diff --git a/flyteidl/.gitattributes b/flyteidl/.gitattributes new file mode 100644 index 0000000000..a2236d5f13 --- /dev/null +++ b/flyteidl/.gitattributes @@ -0,0 +1,2 @@ +gen/** linguist-generated=true +protos/**/*.rst linguist-generated=true diff --git a/flyteidl/.github/config.yml b/flyteidl/.github/config.yml new file mode 100644 index 0000000000..73da252e52 --- /dev/null +++ b/flyteidl/.github/config.yml @@ -0,0 +1,16 @@ +# Comment to be posted on PRs from first-time contributors in your repository +newPRWelcomeComment: | + Thank you for opening this pull request! 🙌 + + These tips will help get your PR across the finish line: + + - Most of the repos have a PR template; if not, fill it out to the best of your knowledge. + - Sign off your commits (Reference: [DCO Guide](https://github.com/src-d/guide/blob/master/developer-community/fix-DCO.md)). + +# Comment to be posted to on pull requests merged by a first time user +firstPRMergeComment: > + Congrats on merging your first pull request! 🎉 + +# Comment to be posted on first-time issues +newIssueWelcomeComment: > + Thank you for opening your first issue here! 🛠 diff --git a/flyteidl/.github/workflows/boilerplate-automation.yml b/flyteidl/.github/workflows/boilerplate-automation.yml new file mode 100644 index 0000000000..7a257af06a --- /dev/null +++ b/flyteidl/.github/workflows/boilerplate-automation.yml @@ -0,0 +1,36 @@ +name: Update Boilerplate Automation +on: + workflow_dispatch: + +jobs: + update-boilerplate: + name: Update Boilerplate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: Update Boilerplate + run: | + make update_boilerplate + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.FLYTE_BOT_PAT }} + commit-message: Update Boilerplate + committer: Flyte-Bot + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + signoff: true + branch: flyte-bot-update-boilerplate + delete-branch: true + title: 'Update Boilerplate' + body: | + Update Boilerplate + - Auto-generated by [flyte-bot] + labels: | + boilerplate + team-reviewers: | + owners + maintainers + draft: false \ No newline at end of file diff --git a/flyteidl/.github/workflows/buf_publish.yaml b/flyteidl/.github/workflows/buf_publish.yaml new file mode 100644 index 0000000000..17ecac2423 --- /dev/null +++ b/flyteidl/.github/workflows/buf_publish.yaml @@ -0,0 +1,16 @@ +name: Publish Buf Package + +on: + release: + types: [created] + +jobs: + buf: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: bufbuild/buf-setup-action@v1 + - uses: bufbuild/buf-push-action@v1 + with: + buf_token: ${{ secrets.BUF_TOKEN }} + input: 'protos' diff --git a/flyteidl/.github/workflows/master.yml b/flyteidl/.github/workflows/master.yml new file mode 100644 index 0000000000..2fc19bbdab --- /dev/null +++ b/flyteidl/.github/workflows/master.yml @@ -0,0 +1,46 @@ +name: Master + +on: + push: + branches: + - master + +jobs: + bump-version: + if: github.repository == 'flyteorg/flyteidl' + name: Bump Version + runs-on: ubuntu-latest + outputs: + version: ${{ steps.bump-version.outputs.tag }} + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: '0' + - name: Bump version and push tag + id: bump-version + uses: anothrNick/github-tag-action@1.36.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WITH_V: true + DEFAULT_BUMP: patch + + goreleaser: + if: github.repository == 'flyteorg/flyteidl' + name: Goreleaser + runs-on: ubuntu-latest + needs: [bump-version] + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} diff --git a/flyteidl/.github/workflows/npmpublish.yaml b/flyteidl/.github/workflows/npmpublish.yaml new file mode 100644 index 0000000000..1101ca0a20 --- /dev/null +++ b/flyteidl/.github/workflows/npmpublish.yaml @@ -0,0 +1,26 @@ +name: Publish NPM Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + registry-url: "https://registry.npmjs.org" + - name: Autobump version + run: | + # from refs/tags/v1.2.3 get 1.2.3 + VERSION=$(echo $GITHUB_REF | sed 's#.*/v##') + VERSION=$VERSION make update_npmversion + shell: bash + - run: npm install + - run: npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/flyteidl/.github/workflows/pythonpublish.yaml b/flyteidl/.github/workflows/pythonpublish.yaml new file mode 100644 index 0000000000..b418b35c1b --- /dev/null +++ b/flyteidl/.github/workflows/pythonpublish.yaml @@ -0,0 +1,32 @@ +name: Upload PyPi Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Autobump version + run: | + # from refs/tags/v1.2.3 get 1.2.3 + VERSION=$(echo $GITHUB_REF | sed 's#.*/v##') + VERSION=$VERSION make update_pyversion + shell: bash + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/flyteidl/.github/workflows/release-automation.yaml b/flyteidl/.github/workflows/release-automation.yaml new file mode 100644 index 0000000000..b0388223da --- /dev/null +++ b/flyteidl/.github/workflows/release-automation.yaml @@ -0,0 +1,20 @@ +name: Invoke Workflow + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + COMPONENT: [flyteadmin, flytepropeller, flyteconsole, flytecopilot, flyteplugins, datacatalog, flytectl] + fail-fast: false + steps: + - uses: actions/checkout@v2 + - name: Update flyteidl version + run: | + WORKFLOW_ID=$(curl -sS https://api.github.com/repos/flyteorg/${{matrix.COMPONENT}}/actions/workflows | jq '.workflows[] | select(.path == ".github/workflows/upgrade_automation.yml") | {id}' | jq .id) + curl -X POST -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/flyteorg/${{matrix.COMPONENT}}/actions/workflows/$WORKFLOW_ID/dispatches -H "Authorization: token ${{ secrets.FLYTE_BOT_PAT }}" -d '{"ref":"master", "inputs": {"component": "flyteidl"}}' + shell: bash diff --git a/flyteidl/.github/workflows/verification.yml b/flyteidl/.github/workflows/verification.yml new file mode 100644 index 0000000000..3a15965727 --- /dev/null +++ b/flyteidl/.github/workflows/verification.yml @@ -0,0 +1,248 @@ +name: Verification Tests + +on: + pull_request: + push: + branches: + - master + +jobs: + lint: + name: Lint + uses: flyteorg/flytetools/.github/workflows/lint.yml@master + with: + go-version: 1.19 + tests: + name: Unit Tests + uses: flyteorg/flytetools/.github/workflows/tests.yml@master + secrets: + FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} + with: + go-version: 1.19 + generate-protos: + runs-on: ubuntu-latest + name: Generate Protos + container: + image: lyft/protocgenerator:8167e11d3b3439373c2f033080a4b550078884a2 + options: --cpus 1 + volumes: + - /github/workspace:/defs + env: + REPO_BLOB_SHA: master + PROJECT_ANNOTATION_PREFIX: flyte.interface + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + # GO Protos + - name: Proto-Service-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service --with_gateway -l go --go_source_relative + - name: Proto-Admin-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin --with_gateway -l go --go_source_relative --validate_out + - name: Proto-Core-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core --with_gateway -l go --go_source_relative --validate_out + - name: Proto-Event-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event --with_gateway -l go --go_source_relative --validate_out + - name: Proto-Plugins-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l go --go_source_relative --validate_out + - name: Proto-Datacatalog-Go + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l go --go_source_relative --validate_out + + # Python is going to be generated using buf + # Python + # - name: Proto-Service-Python + # run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service -l python + # - name: Proto-Admin-Python + # run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin -l python + # - name: Proto-Core-Python + # run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core -l python + # - name: Proto-Event-Python + # run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event -l python + # - name: Proto-Plugins-Python + # run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l python + # - name: Proto-Datacatalog-Python + # run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l python + + # Cpp + - name: Proto-Service-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service -l cpp + - name: Proto-Admin-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin -l cpp + - name: Proto-Core-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core -l cpp + - name: Proto-Event-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event -l cpp + - name: Proto-Plugins-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l cpp + - name: Proto-Datacatalog-Cpp + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l cpp + + # Java + - name: Proto-Service-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/service -l java + - name: Proto-Admin-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/admin -l java + - name: Proto-Core-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/core -l java + - name: Proto-Event-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/event -l java + - name: Proto-Plugins-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/plugins -l java + - name: Proto-Datacatalog-Java + run: python3 /usr/local/bin/entrypoint.py -i ./protos -d protos/flyteidl/datacatalog -l java + + - uses: actions/upload-artifact@master + with: + name: generated + path: ./gen + + generate-protos-buf: + name: Generate python protos using buf + runs-on: ubuntu-latest + needs: [ generate-protos ] + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - uses: bufbuild/buf-setup-action@v1 + - name: "Clean Generated" + run: rm -rf ./gen + - name: "Run buf generate" + run: buf generate + - name: "Include __init__.py files" + run: find gen/pb_python -type d -exec touch {}/__init__.py \; + - uses: actions/upload-artifact@master + with: + name: generated-buf + path: ./gen + + generate-admin-swagger-code: + runs-on: ubuntu-latest + name: Generate Admin Swagger Code + needs: + - generate-protos + - generate-protos-buf + container: + image: lyft/protocgenerator:8167e11d3b3439373c2f033080a4b550078884a2 + options: --cpus 1 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - uses: actions/download-artifact@master + with: + name: generated-buf + path: ./gen + - run: ls gen/pb-go/flyteidl/service/ + - run: cp -R gen/pb-go/flyteidl/service/ ../ + - run: ls ../service/ + # Open API 2 + - name: OpenAPI-Binary + run: go-bindata -pkg service -o ../service/openapi.go -prefix ../service/ -modtime 1562572800 ../service/admin.swagger.json + - run: rm -rf gen/pb-go/flyteidl/service + - run: mkdir -p gen/pb-go/flyteidl/service + - run: cp -R ../service gen/pb-go/flyteidl/ + - run: ls gen/pb-go/flyteidl/ + - run: ls gen/pb-go/flyteidl/service/ + - uses: actions/upload-artifact@master + with: + name: generated + path: ./gen + + generate-js-code: + runs-on: ubuntu-latest + name: Generate JS Code + needs: [ generate-admin-swagger-code ] + container: + image: schottra/docker-protobufjs:v0.0.2 + options: --cpus 1 + volumes: + - /github/workspace:/defs + env: + REPO_BLOB_SHA: master + PROJECT_ANNOTATION_PREFIX: flyte.interface + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - run: mkdir -p /defs + - run: mkdir -p /gen + - run: cp -R . /defs + - run: node /code/generate-protobuf.js --module-name flyteidl -d protos/flyteidl/core -d protos/flyteidl/event -d protos/flyteidl/admin -d protos/flyteidl/service -- --root flyteidl -t static-module -w default --no-delimited --force-long --no-convert -p /defs/protos + - run: ls /defs/gen/ + - uses: actions/upload-artifact@master + with: + name: generated + path: /defs/gen + + generate-swagger-code: + runs-on: ubuntu-latest + name: Generate Swagger Code + needs: [ generate-js-code ] + container: + image: docker.io/lyft/swagger-codegen-cli:dc5ce6ec6d7d4d980fa882d6bd13a83cba3be3c3 + options: --cpus 1 + volumes: + - /github/workspace:/defs + env: + REPO_BLOB_SHA: master + PROJECT_ANNOTATION_PREFIX: flyte.interface + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - run: java -jar /opt/swagger-codegen-cli/swagger-codegen-cli.jar generate -i ./gen/pb-go/flyteidl/service/admin.swagger.json -l go -o ./gen/pb-go/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + - run: java -jar /opt/swagger-codegen-cli/swagger-codegen-cli.jar generate -i ./gen/pb-go/flyteidl/service/admin.swagger.json -l python -o ./gen/pb_python/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + - uses: actions/upload-artifact@master + with: + name: generated + path: ./gen + + test-proto-changes: + runs-on: ubuntu-latest + name: Test Proto Changes + needs: [ generate-swagger-code ] + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: "0" + - name: "Clean Generated" + run: rm -rf ./gen + - uses: actions/download-artifact@master + with: + name: generated + path: ./gen + - name: Test + run: ./scripts/test_diff.sh + + generate: + name: Check Generate + uses: flyteorg/flytetools/.github/workflows/go_generate.yml@master + with: + go-version: 1.19 diff --git a/flyteidl/.gitignore b/flyteidl/.gitignore new file mode 100644 index 0000000000..00b37709eb --- /dev/null +++ b/flyteidl/.gitignore @@ -0,0 +1,21 @@ +.idea/* +.DS_Store +vendor + +# Vim swapfiles +*.swp +*.swo + +dist +gen/pb_python/flyteidl.egg-info/ + +.virtualgo +docs/build/ + +.vscode/ +tmp/ +.python-version +__pycache__/ + +venv/ +build/ diff --git a/flyteidl/.golangci.yml b/flyteidl/.golangci.yml new file mode 100644 index 0000000000..7714cbe5a3 --- /dev/null +++ b/flyteidl/.golangci.yml @@ -0,0 +1,31 @@ +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +run: + skip-dirs: + - pkg/client + - gen + +linters: + disable-all: true + enable: + - deadcode + - errcheck + - gas + - goconst + - goimports + - golint + - gosimple + - govet + - ineffassign + - misspell + - nakedret + - staticcheck + - structcheck + - typecheck + - unconvert + - unparam + - unused + - varcheck diff --git a/flyteidl/.goreleaser.yml b/flyteidl/.goreleaser.yml new file mode 100644 index 0000000000..615bea6ba7 --- /dev/null +++ b/flyteidl/.goreleaser.yml @@ -0,0 +1,9 @@ +project_name: flyteidl +builds: + - skip: true +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' \ No newline at end of file diff --git a/flyteidl/.readthedocs.yml b/flyteidl/.readthedocs.yml new file mode 100644 index 0000000000..7433053ad7 --- /dev/null +++ b/flyteidl/.readthedocs.yml @@ -0,0 +1,16 @@ +# .readthedocs.yml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: conf.py + +# Optionally set the version of Python and requirements required to build your docs +python: + version: 3.8 + install: + - requirements: doc-requirements.txt diff --git a/flyteidl/.swagger-codegen-ignore b/flyteidl/.swagger-codegen-ignore new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/CODE_OF_CONDUCT.md b/flyteidl/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..e12139d691 --- /dev/null +++ b/flyteidl/CODE_OF_CONDUCT.md @@ -0,0 +1,2 @@ +This project is governed by LF AI Foundation's [code of conduct](https://lfprojects.org/policies/code-of-conduct/). +All contributors and participants agree to abide by its terms. diff --git a/flyteidl/LICENSE b/flyteidl/LICENSE new file mode 100644 index 0000000000..bed437514f --- /dev/null +++ b/flyteidl/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Lyft, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/flyteidl/Makefile b/flyteidl/Makefile new file mode 100644 index 0000000000..3b5c9fed46 --- /dev/null +++ b/flyteidl/Makefile @@ -0,0 +1,62 @@ +#!/bin/bash + +export REPOSITORY=flyteidl +include boilerplate/flyte/golang_test_targets/Makefile + +define PIP_COMPILE +pip-compile $(1) --upgrade --verbose +endef + +.PHONY: update_boilerplate +update_boilerplate: + @curl https://raw.githubusercontent.com/flyteorg/boilerplate/master/boilerplate/update.sh -o boilerplate/update.sh + @boilerplate/update.sh + +.PHONY: generate +generate: update_boilerplate install doc_gen_deps # get latest boiler plate, install tools, generate protos, mock, pflags and get doc dependencies + ./generate_protos.sh + ./generate_mocks.sh + go generate ./... + +.PHONY: test +test: install # ensures generate_protos script has been run + git diff + ./generate_mocks.sh + go generate ./... + DELTA_CHECK=true ./generate_protos.sh + +.PHONY: test_unit +test_unit: + # we cannot use test_unit from go.mk because generated files contain commented import statements that + # go tries to intepret. So we need to use go list to get the packages that go understands. + go test -cover `go list ./...` -race + +.PHONY: build_python +build_python: + @python setup.py sdist + +.PHONY: install-piptools +install-piptools: + pip install -U pip-tools + +.PHONY: doc_gen_deps # these dependencies are required by protoc gen doc for the protos which have external library dependencies. +# which includes grpc-gateway, googleapis, k8.io/api and apimachinery, protocolbuffers +doc_gen_deps: + ./scripts/doc_gen_deps.sh + +.PHONY: doc-requirements.txt +doc-requirements.txt: doc-requirements.in install-piptools + $(call PIP_COMPILE,doc-requirements.in) + +PLACEHOLDER := "__version__\ =\ \"0.0.0+develop\"" +PLACEHOLDER_NPM := \"version\": \"0.0.0-develop\" + +.PHONY: update_pyversion +update_pyversion: + grep "$(PLACEHOLDER)" "setup.py" + sed -i "s/$(PLACEHOLDER)/__version__ = \"${VERSION}\"/g" "setup.py" + +.PHONY: update_npmversion +update_npmversion: + grep "$(PLACEHOLDER_NPM)" "package.json" + sed -i "s/$(PLACEHOLDER_NPM)/\"version\": \"${VERSION}\"/g" "package.json" diff --git a/flyteidl/NOTICE b/flyteidl/NOTICE new file mode 100644 index 0000000000..eade7caa5f --- /dev/null +++ b/flyteidl/NOTICE @@ -0,0 +1,4 @@ +flyteidl +Copyright 2019 Lyft Inc. + +This product includes software developed at Lyft Inc. diff --git a/flyteidl/README.md b/flyteidl/README.md new file mode 100644 index 0000000000..a1be04d742 --- /dev/null +++ b/flyteidl/README.md @@ -0,0 +1,79 @@ +# Flyteidl + +This is one of the core repositories of Flyte. It contains the Specification of the Flyte Language using protobuf messages, the Backend API specification in gRPC, and Swagger REST. The repo contains the generated clients and protocol message structures in multiple languages. Along with the generated code, the repository also contains the Golang clients for Flyte's backend APIs (the services grouped under FlyteAdmin). + + +[![Slack](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://slack.flyte.org) + +* [flyte.org](https://flyte.org) +* [Flyte Docs](http://docs.flyte.org) +* [Flyteidl API reference documentation](https://docs.flyte.org/projects/flyteidl/en/stable/index.html) + +## Contributing to Flyteidl + +## Tooling for Flyteidl + +1. Run ``make download_tooling`` to install generator dependencies. + +```bash + make download_tooling +``` + +2. Ensure Docker is installed locally. +3. Run ``make generate`` to generate all the code, mock client, and docs for FlyteAdmin Service. + +```bash + make generate +``` + +4. To add new dependencies for documentation generation, modify ``doc-requirements.in`` and run + +```bash + make doc-requirements.txt +``` + +## Docs structure + +The index.rst files for protos are arranged in parallel under the ``docs`` folder. +All the proto definitions are within ``protos/flyteidl`` and their corresponding docs are in ``protos/docs``. + +``` +docs +├── admin +│   ├── admin.rst +│   └── index.rst +├── core +│   ├── core.rst +│   └── index.rst +├── datacatalog +│   ├── datacatalog.rst +│   └── index.rst +├── event +│   ├── event.rst +│   └── index.rst +├── plugins +│   ├── index.rst +│   └── plugins.rst +├── service +│   ├── index.rst +│   └── service.rst +``` + +Each module in protos has a module in docs with the same name. +For example: ``protos/flyteidl/core`` has a module ``protos/docs/core`` under the ``docs`` folder which has the corresponding index and documentation files. + + +## Generating Documentation + +* If a new module is to be introduced, follow the structure for core files in `generate_protos.sh` file which helps generate the core documentation from its proto files. +``` + core_proto_files=`ls protos/flyteidl/core/*.proto |xargs` + # Remove any currently generated file + ls -d protos/docs/core/* | grep -v index.rst | xargs rm + protoc --doc_out=protos/docs/core --doc_opt=restructuredtext,core.rst -I=protos `echo $core_proto_files` +``` + +* ``make generate`` generates the modified rst files. + +* ``make html`` generates the Sphinx documentation from the docs folder that uses the modified rst files. + diff --git a/flyteidl/_templates/sidebar/brand.html b/flyteidl/_templates/sidebar/brand.html new file mode 100644 index 0000000000..a170d6c6d1 --- /dev/null +++ b/flyteidl/_templates/sidebar/brand.html @@ -0,0 +1,18 @@ + diff --git a/flyteidl/boilerplate/flyte/code_of_conduct/CODE_OF_CONDUCT.md b/flyteidl/boilerplate/flyte/code_of_conduct/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..e12139d691 --- /dev/null +++ b/flyteidl/boilerplate/flyte/code_of_conduct/CODE_OF_CONDUCT.md @@ -0,0 +1,2 @@ +This project is governed by LF AI Foundation's [code of conduct](https://lfprojects.org/policies/code-of-conduct/). +All contributors and participants agree to abide by its terms. diff --git a/flyteidl/boilerplate/flyte/code_of_conduct/README.rst b/flyteidl/boilerplate/flyte/code_of_conduct/README.rst new file mode 100644 index 0000000000..0c9f2f1ec5 --- /dev/null +++ b/flyteidl/boilerplate/flyte/code_of_conduct/README.rst @@ -0,0 +1,2 @@ +CODE OF CONDUCT +~~~~~~~~~~~~~~~ diff --git a/flyteidl/boilerplate/flyte/code_of_conduct/update.sh b/flyteidl/boilerplate/flyte/code_of_conduct/update.sh new file mode 100755 index 0000000000..42f6158460 --- /dev/null +++ b/flyteidl/boilerplate/flyte/code_of_conduct/update.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +cp ${DIR}/CODE_OF_CONDUCT.md ${DIR}/../../../CODE_OF_CONDUCT.md diff --git a/flyteidl/boilerplate/flyte/golang_support_tools/go.mod b/flyteidl/boilerplate/flyte/golang_support_tools/go.mod new file mode 100644 index 0000000000..2cfeb8aa3a --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_support_tools/go.mod @@ -0,0 +1,247 @@ +module github.com/flyteorg/boilerplate + +go 1.19 + +require ( + github.com/EngHabu/mockery v0.0.0-20220405200825-3f76291311cf + github.com/alvaroloes/enumer v1.1.2 + github.com/flyteorg/flytestdlib v0.4.16 + github.com/golangci/golangci-lint v1.53.3 + github.com/pseudomuto/protoc-gen-doc v1.4.1 +) + +require ( + 4d63.com/gocheckcompilerdirectives v1.2.1 // indirect + 4d63.com/gochecknoglobals v0.2.1 // indirect + cloud.google.com/go v0.110.2 // indirect + cloud.google.com/go/compute v1.19.3 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v1.1.2 // indirect + cloud.google.com/go/storage v1.29.0 // indirect + github.com/4meepo/tagalign v1.2.2 // indirect + github.com/Abirdcfly/dupword v0.0.11 // indirect + github.com/Antonboom/errname v0.1.10 // indirect + github.com/Antonboom/nilnil v0.1.5 // indirect + github.com/Azure/azure-sdk-for-go v62.3.0+incompatible // indirect + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 // indirect + github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 // indirect + github.com/Azure/go-autorest v14.2.0+incompatible // indirect + github.com/Azure/go-autorest/autorest v0.11.17 // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.10 // indirect + github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect + github.com/Azure/go-autorest/logger v0.2.0 // indirect + github.com/Azure/go-autorest/tracing v0.6.0 // indirect + github.com/BurntSushi/toml v1.3.2 // indirect + github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect + github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0 // indirect + github.com/Masterminds/semver v1.5.0 // indirect + github.com/Masterminds/sprig v2.15.0+incompatible // indirect + github.com/OpenPeeDeeP/depguard/v2 v2.1.0 // indirect + github.com/alexkohler/nakedret/v2 v2.0.2 // indirect + github.com/alexkohler/prealloc v1.0.0 // indirect + github.com/alingse/asasalint v0.0.11 // indirect + github.com/aokoli/goutils v1.0.1 // indirect + github.com/ashanbrown/forbidigo v1.5.3 // indirect + github.com/ashanbrown/makezero v1.1.1 // indirect + github.com/aws/aws-sdk-go v1.37.1 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bkielbasa/cyclop v1.2.1 // indirect + github.com/blizzy78/varnamelen v0.8.0 // indirect + github.com/bombsimon/wsl/v3 v3.4.0 // indirect + github.com/breml/bidichk v0.2.4 // indirect + github.com/breml/errchkjson v0.3.1 // indirect + github.com/butuzov/ireturn v0.2.0 // indirect + github.com/butuzov/mirror v1.1.0 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/charithe/durationcheck v0.0.10 // indirect + github.com/chavacava/garif v0.0.0-20230227094218-b8c73b2037b8 // indirect + github.com/coocood/freecache v1.1.1 // indirect + github.com/curioswitch/go-reassign v0.2.0 // indirect + github.com/daixiang0/gci v0.10.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/denis-tingaikin/go-header v0.4.3 // indirect + github.com/envoyproxy/protoc-gen-validate v0.10.0 // indirect + github.com/ernesto-jimenez/gogen v0.0.0-20180125220232-d7d4131e6607 // indirect + github.com/esimonov/ifshort v1.0.4 // indirect + github.com/ettle/strcase v0.1.1 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/fatih/structtag v1.2.0 // indirect + github.com/firefart/nonamedreturns v1.0.4 // indirect + github.com/flyteorg/stow v0.3.1 // indirect + github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect + github.com/fsnotify/fsnotify v1.5.4 // indirect + github.com/fzipp/gocyclo v0.6.0 // indirect + github.com/ghodss/yaml v1.0.0 // indirect + github.com/go-critic/go-critic v0.8.1 // indirect + github.com/go-logr/logr v1.2.4 // indirect + github.com/go-toolsmith/astcast v1.1.0 // indirect + github.com/go-toolsmith/astcopy v1.1.0 // indirect + github.com/go-toolsmith/astequal v1.1.0 // indirect + github.com/go-toolsmith/astfmt v1.1.0 // indirect + github.com/go-toolsmith/astp v1.1.0 // indirect + github.com/go-toolsmith/strparse v1.1.0 // indirect + github.com/go-toolsmith/typep v1.1.0 // indirect + github.com/go-xmlfmt/xmlfmt v1.1.2 // indirect + github.com/gobwas/glob v0.2.3 // indirect + github.com/gofrs/flock v0.8.1 // indirect + github.com/gofrs/uuid v4.2.0+incompatible // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect + github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect + github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe // indirect + github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2 // indirect + github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect + github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect + github.com/golangci/misspell v0.4.0 // indirect + github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6 // indirect + github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect + github.com/google/go-cmp v0.5.9 // indirect + github.com/google/s2a-go v0.1.4 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect + github.com/googleapis/gax-go/v2 v2.11.0 // indirect + github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 // indirect + github.com/gostaticanalysis/analysisutil v0.7.1 // indirect + github.com/gostaticanalysis/comment v1.4.2 // indirect + github.com/gostaticanalysis/forcetypeassert v0.1.0 // indirect + github.com/gostaticanalysis/nilerr v0.1.1 // indirect + github.com/hashicorp/errwrap v1.0.0 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-version v1.6.0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hexops/gotextdiff v1.0.3 // indirect + github.com/huandu/xstrings v1.0.0 // indirect + github.com/imdario/mergo v0.3.5 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/jgautheron/goconst v1.5.1 // indirect + github.com/jingyugao/rowserrcheck v1.1.1 // indirect + github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/julz/importas v0.1.0 // indirect + github.com/kisielk/errcheck v1.6.3 // indirect + github.com/kisielk/gotool v1.0.0 // indirect + github.com/kkHAIKE/contextcheck v1.1.4 // indirect + github.com/kulti/thelper v0.6.3 // indirect + github.com/kunwardeep/paralleltest v1.0.7 // indirect + github.com/kyoh86/exportloopref v0.1.11 // indirect + github.com/ldez/gomoddirectives v0.2.3 // indirect + github.com/ldez/tagliatelle v0.5.0 // indirect + github.com/leonklingele/grouper v1.1.1 // indirect + github.com/lufeee/execinquery v1.2.1 // indirect + github.com/magiconair/properties v1.8.6 // indirect + github.com/maratori/testableexamples v1.0.0 // indirect + github.com/maratori/testpackage v1.1.1 // indirect + github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.17 // indirect + github.com/mattn/go-runewidth v0.0.9 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/mbilski/exhaustivestruct v1.2.0 // indirect + github.com/mgechev/revive v1.3.2 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/moricho/tparallel v0.3.1 // indirect + github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007 // indirect + github.com/nakabonne/nestif v0.3.1 // indirect + github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect + github.com/ncw/swift v1.0.53 // indirect + github.com/nishanths/exhaustive v0.11.0 // indirect + github.com/nishanths/predeclared v0.2.2 // indirect + github.com/nunnatsa/ginkgolinter v0.12.1 // indirect + github.com/olekukonko/tablewriter v0.0.5 // indirect + github.com/pascaldekloe/name v0.0.0-20180628100202-0fd16699aae1 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.5 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/polyfloyd/go-errorlint v1.4.2 // indirect + github.com/prometheus/client_golang v1.12.1 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/prometheus/common v0.32.1 // indirect + github.com/prometheus/procfs v0.7.3 // indirect + github.com/pseudomuto/protokit v0.2.0 // indirect + github.com/quasilyte/go-ruleguard v0.3.19 // indirect + github.com/quasilyte/gogrep v0.5.0 // indirect + github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect + github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect + github.com/ryancurrah/gomodguard v1.3.0 // indirect + github.com/ryanrolds/sqlclosecheck v0.4.0 // indirect + github.com/sanposhiho/wastedassign/v2 v2.0.7 // indirect + github.com/sashamelentyev/interfacebloat v1.1.0 // indirect + github.com/sashamelentyev/usestdlibvars v1.23.0 // indirect + github.com/securego/gosec/v2 v2.16.0 // indirect + github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect + github.com/sirupsen/logrus v1.9.3 // indirect + github.com/sivchari/containedctx v1.0.3 // indirect + github.com/sivchari/nosnakecase v1.7.0 // indirect + github.com/sivchari/tenv v1.7.1 // indirect + github.com/sonatard/noctx v0.0.2 // indirect + github.com/sourcegraph/go-diff v0.7.0 // indirect + github.com/spf13/afero v1.8.2 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.12.0 // indirect + github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect + github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect + github.com/stretchr/objx v0.5.0 // indirect + github.com/stretchr/testify v1.8.4 // indirect + github.com/subosito/gotenv v1.4.1 // indirect + github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c // indirect + github.com/tdakkota/asciicheck v0.2.0 // indirect + github.com/tetafro/godot v1.4.11 // indirect + github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 // indirect + github.com/timonwong/loggercheck v0.9.4 // indirect + github.com/tomarrell/wrapcheck/v2 v2.8.1 // indirect + github.com/tommy-muehle/go-mnd/v2 v2.5.1 // indirect + github.com/ultraware/funlen v0.0.3 // indirect + github.com/ultraware/whitespace v0.0.5 // indirect + github.com/uudashr/gocognit v1.0.6 // indirect + github.com/xen0n/gosmopolitan v1.2.1 // indirect + github.com/yagipy/maintidx v1.0.0 // indirect + github.com/yeya24/promlinter v0.2.0 // indirect + github.com/ykadowak/zerologlint v0.1.2 // indirect + gitlab.com/bosi/decorder v0.2.3 // indirect + go.opencensus.io v0.24.0 // indirect + go.tmz.dev/musttag v0.7.0 // indirect + go.uber.org/atomic v1.7.0 // indirect + go.uber.org/multierr v1.6.0 // indirect + go.uber.org/zap v1.24.0 // indirect + golang.org/x/crypto v0.11.0 // indirect + golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea // indirect + golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2 // indirect + golang.org/x/mod v0.12.0 // indirect + golang.org/x/net v0.12.0 // indirect + golang.org/x/oauth2 v0.8.0 // indirect + golang.org/x/sync v0.3.0 // indirect + golang.org/x/sys v0.10.0 // indirect + golang.org/x/text v0.11.0 // indirect + golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect + golang.org/x/tools v0.11.1 // indirect + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + google.golang.org/api v0.126.0 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect + google.golang.org/grpc v1.55.0 // indirect + google.golang.org/protobuf v1.30.0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + honnef.co/go/tools v0.4.3 // indirect + k8s.io/apimachinery v0.20.2 // indirect + k8s.io/client-go v0.0.0-20210217172142-7279fc64d847 // indirect + k8s.io/klog/v2 v2.5.0 // indirect + mvdan.cc/gofumpt v0.5.0 // indirect + mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect + mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect + mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect +) + +replace github.com/pseudomuto/protoc-gen-doc => github.com/flyteorg/protoc-gen-doc v1.4.2 diff --git a/flyteidl/boilerplate/flyte/golang_support_tools/go.sum b/flyteidl/boilerplate/flyte/golang_support_tools/go.sum new file mode 100644 index 0000000000..4cc434803e --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_support_tools/go.sum @@ -0,0 +1,1225 @@ +4d63.com/gocheckcompilerdirectives v1.2.1 h1:AHcMYuw56NPjq/2y615IGg2kYkBdTvOaojYCBcRE7MA= +4d63.com/gocheckcompilerdirectives v1.2.1/go.mod h1:yjDJSxmDTtIHHCqX0ufRYZDL6vQtMG7tJdKVeWwsqvs= +4d63.com/gochecknoglobals v0.2.1 h1:1eiorGsgHOFOuoOiJDy2psSrQbRdIHrlge0IJIkUgDc= +4d63.com/gochecknoglobals v0.2.1/go.mod h1:KRE8wtJB3CXCsb1xy421JfTHIIbmT3U5ruxw2Qu8fSU= +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go v0.110.2 h1:sdFPBr6xG9/wkBbfhmUz/JmZC7X6LavQgcrVINrKiVA= +cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/compute v1.19.3 h1:DcTwsFgGev/wV5+q8o2fzgcHOaac+DKGC91ZlvpsQds= +cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/iam v1.1.2 h1:gacbrBdWcoVmGLozRuStX45YKvJtzIjJdAolzUs1sm4= +cloud.google.com/go/iam v1.1.2/go.mod h1:A5avdyVL2tCppe4unb0951eI9jreack+RJ0/d+KUZOU= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI= +cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/4meepo/tagalign v1.2.2 h1:kQeUTkFTaBRtd/7jm8OKJl9iHk0gAO+TDFPHGSna0aw= +github.com/4meepo/tagalign v1.2.2/go.mod h1:Q9c1rYMZJc9dPRkbQPpcBNCLEmY2njbAsXhQOZFE2dE= +github.com/Abirdcfly/dupword v0.0.11 h1:z6v8rMETchZXUIuHxYNmlUAuKuB21PeaSymTed16wgU= +github.com/Abirdcfly/dupword v0.0.11/go.mod h1:wH8mVGuf3CP5fsBTkfWwwwKTjDnVVCxtU8d8rgeVYXA= +github.com/Antonboom/errname v0.1.10 h1:RZ7cYo/GuZqjr1nuJLNe8ZH+a+Jd9DaZzttWzak9Bls= +github.com/Antonboom/errname v0.1.10/go.mod h1:xLeiCIrvVNpUtsN0wxAh05bNIZpqE22/qDMnTBTttiA= +github.com/Antonboom/nilnil v0.1.5 h1:X2JAdEVcbPaOom2TUa1FxZ3uyuUlex0XMLGYMemu6l0= +github.com/Antonboom/nilnil v0.1.5/go.mod h1:I24toVuBKhfP5teihGWctrRiPbRKHwZIFOvc6v3HZXk= +github.com/Azure/azure-sdk-for-go v62.3.0+incompatible h1:Ctfsn9UoA/BB4HMYQlbPPgNXdX0tZ4tmb85+KFb2+RE= +github.com/Azure/azure-sdk-for-go v62.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 h1:qoVeMsc9/fh/yhxVaA0obYjVH/oI/ihrOoMwsLS9KSA= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 h1:Px2UA+2RvSSvv+RvJNuUB6n7rs5Wsel4dXLe90Um2n4= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= +github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= +github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= +github.com/Azure/go-autorest/autorest v0.11.17 h1:2zCdHwNgRH+St1J+ZMf66xI8aLr/5KMy+wWLH97zwYM= +github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= +github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= +github.com/Azure/go-autorest/autorest/adal v0.9.10 h1:r6fZHMaHD8B6LDCn0o5vyBFHIHrM6Ywwx7mb49lPItI= +github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= +github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= +github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= +github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= +github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/to v0.4.0 h1:oXVqrxakqqV1UZdSazDOPOLvOIz+XA683u8EctwboHk= +github.com/Azure/go-autorest/logger v0.2.0 h1:e4RVHVZKC5p6UANLJHkM4OfR1UKZPj8Wt8Pcx+3oqrE= +github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= +github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= +github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= +github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= +github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= +github.com/EngHabu/mockery v0.0.0-20220405200825-3f76291311cf h1:M7A2Tn3R8rVgsoJHHKkmkpiNOItys4GxJj6JytRjdDg= +github.com/EngHabu/mockery v0.0.0-20220405200825-3f76291311cf/go.mod h1:Kya4Y46gyq/3TEyAzeNe5UkCk+W9apy5KbuX+5KnZ6M= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0 h1:+r1rSv4gvYn0wmRjC8X7IAzX8QezqtFV9m0MUHFJgts= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0/go.mod h1:b3g59n2Y+T5xmcxJL+UEG2f8cQploZm1mR/v6BW0mU0= +github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= +github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= +github.com/Masterminds/sprig v2.15.0+incompatible h1:0gSxPGWS9PAr7U2NsQ2YQg6juRDINkUyuvbb4b2Xm8w= +github.com/Masterminds/sprig v2.15.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= +github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= +github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/OpenPeeDeeP/depguard/v2 v2.1.0 h1:aQl70G173h/GZYhWf36aE5H0KaujXfVMnn/f1kSDVYY= +github.com/OpenPeeDeeP/depguard/v2 v2.1.0/go.mod h1:PUBgk35fX4i7JDmwzlJwJ+GMe6NfO1723wmJMgPThNQ= +github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/alexkohler/nakedret/v2 v2.0.2 h1:qnXuZNvv3/AxkAb22q/sEsEpcA99YxLFACDtEw9TPxE= +github.com/alexkohler/nakedret/v2 v2.0.2/go.mod h1:2b8Gkk0GsOrqQv/gPWjNLDSKwG8I5moSXG1K4VIBcTQ= +github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= +github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= +github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw= +github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I= +github.com/alvaroloes/enumer v1.1.2 h1:5khqHB33TZy1GWCO/lZwcroBFh7u+0j40T83VUbfAMY= +github.com/alvaroloes/enumer v1.1.2/go.mod h1:FxrjvuXoDAx9isTJrv4c+T410zFi0DtXIT0m65DJ+Wo= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/aokoli/goutils v1.0.1 h1:7fpzNGoJ3VA8qcrm++XEE1QUe0mIwNeLa02Nwq7RDkg= +github.com/aokoli/goutils v1.0.1/go.mod h1:SijmP0QR8LtwsmDs8Yii5Z/S4trXFGFC2oO5g9DP+DQ= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/ashanbrown/forbidigo v1.5.3 h1:jfg+fkm/snMx+V9FBwsl1d340BV/99kZGv5jN9hBoXk= +github.com/ashanbrown/forbidigo v1.5.3/go.mod h1:Y8j9jy9ZYAEHXdu723cUlraTqbzjKF1MUyfOKL+AjcU= +github.com/ashanbrown/makezero v1.1.1 h1:iCQ87C0V0vSyO+M9E/FZYbu65auqH0lnsOkf5FcB28s= +github.com/ashanbrown/makezero v1.1.1/go.mod h1:i1bJLCRSCHOcOa9Y6MyF2FTfMZMFdHvxKHxgO5Z1axI= +github.com/aws/aws-sdk-go v1.37.1 h1:BTHmuN+gzhxkvU9sac2tZvaY0gV9ihbHw+KxZOecYvY= +github.com/aws/aws-sdk-go v1.37.1/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= +github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bkielbasa/cyclop v1.2.1 h1:AeF71HZDob1P2/pRm1so9cd1alZnrpyc4q2uP2l0gJY= +github.com/bkielbasa/cyclop v1.2.1/go.mod h1:K/dT/M0FPAiYjBgQGau7tz+3TMh4FWAEqlMhzFWCrgM= +github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= +github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= +github.com/bombsimon/wsl/v3 v3.4.0 h1:RkSxjT3tmlptwfgEgTgU+KYKLI35p/tviNXNXiL2aNU= +github.com/bombsimon/wsl/v3 v3.4.0/go.mod h1:KkIB+TXkqy6MvK9BDZVbZxKNYsE1/oLRJbIFtf14qqo= +github.com/breml/bidichk v0.2.4 h1:i3yedFWWQ7YzjdZJHnPo9d/xURinSq3OM+gyM43K4/8= +github.com/breml/bidichk v0.2.4/go.mod h1:7Zk0kRFt1LIZxtQdl9W9JwGAcLTTkOs+tN7wuEYGJ3s= +github.com/breml/errchkjson v0.3.1 h1:hlIeXuspTyt8Y/UmP5qy1JocGNR00KQHgfaNtRAjoxQ= +github.com/breml/errchkjson v0.3.1/go.mod h1:XroxrzKjdiutFyW3nWhw34VGg7kiMsDQox73yWCGI2U= +github.com/butuzov/ireturn v0.2.0 h1:kCHi+YzC150GE98WFuZQu9yrTn6GEydO2AuPLbTgnO4= +github.com/butuzov/ireturn v0.2.0/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= +github.com/butuzov/mirror v1.1.0 h1:ZqX54gBVMXu78QLoiqdwpl2mgmoOJTk7s4p4o+0avZI= +github.com/butuzov/mirror v1.1.0/go.mod h1:8Q0BdQU6rC6WILDiBM60DBfvV78OLJmMmixe7GF45AE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/charithe/durationcheck v0.0.10 h1:wgw73BiocdBDQPik+zcEoBG/ob8uyBHf2iyoHGPf5w4= +github.com/charithe/durationcheck v0.0.10/go.mod h1:bCWXb7gYRysD1CU3C+u4ceO49LoGOY1C1L6uouGNreQ= +github.com/chavacava/garif v0.0.0-20230227094218-b8c73b2037b8 h1:W9o46d2kbNL06lq7UNDPV0zYLzkrde/bjIqO02eoll0= +github.com/chavacava/garif v0.0.0-20230227094218-b8c73b2037b8/go.mod h1:gakxgyXaaPkxvLw1XQxNGK4I37ys9iBRzNUx/B7pUCo= +github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 h1:SKI1/fuSdodxmNNyVBR8d7X/HuLnRpvvFO0AgyQk764= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/coocood/freecache v1.1.1 h1:uukNF7QKCZEdZ9gAV7WQzvh0SbjwdMF6m3x3rxEkaPc= +github.com/coocood/freecache v1.1.1/go.mod h1:OKrEjkGVoxZhyWAJoeFi5BMLUJm2Tit0kpGkIr7NGYY= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/curioswitch/go-reassign v0.2.0 h1:G9UZyOcpk/d7Gd6mqYgd8XYWFMw/znxwGDUstnC9DIo= +github.com/curioswitch/go-reassign v0.2.0/go.mod h1:x6OpXuWvgfQaMGks2BZybTngWjT84hqJfKoO8Tt/Roc= +github.com/daixiang0/gci v0.10.1 h1:eheNA3ljF6SxnPD/vE4lCBusVHmV3Rs3dkKvFrJ7MR0= +github.com/daixiang0/gci v0.10.1/go.mod h1:xtHP9N7AHdNvtRNfcx9gwTDfw7FRJx4bZUsiEfiNNAI= +github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/denis-tingaikin/go-header v0.4.3 h1:tEaZKAlqql6SKCY++utLmkPLd6K8IBM20Ha7UVm+mtU= +github.com/denis-tingaikin/go-header v0.4.3/go.mod h1:0wOCWuN71D5qIgE2nz9KrKmuYBAC2Mra5RassOIQ2/c= +github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= +github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= +github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= +github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= +github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= +github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v0.3.0-java/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v0.10.0 h1:oIfnZFdC0YhpNNEX+SuIqko4cqqVZeN9IGTrhZje83Y= +github.com/envoyproxy/protoc-gen-validate v0.10.0/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= +github.com/ernesto-jimenez/gogen v0.0.0-20180125220232-d7d4131e6607 h1:cTavhURetDkezJCvxFggiyLeP40Mrk/TtVg2+ycw1Es= +github.com/ernesto-jimenez/gogen v0.0.0-20180125220232-d7d4131e6607/go.mod h1:Cg4fM0vhYWOZdgM7RIOSTRNIc8/VT7CXClC3Ni86lu4= +github.com/esimonov/ifshort v1.0.4 h1:6SID4yGWfRae/M7hkVDVVyppy8q/v9OuxNdmjLQStBA= +github.com/esimonov/ifshort v1.0.4/go.mod h1:Pe8zjlRrJ80+q2CxHLfEOfTwxCZ4O+MuhcHcfgNWTk0= +github.com/ettle/strcase v0.1.1 h1:htFueZyVeE1XNnMEfbqp5r67qAN/4r6ya1ysq8Q+Zcw= +github.com/ettle/strcase v0.1.1/go.mod h1:hzDLsPC7/lwKyBOywSHEP89nt2pDgdy+No1NBA9o9VY= +github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= +github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= +github.com/firefart/nonamedreturns v1.0.4 h1:abzI1p7mAEPYuR4A+VLKn4eNDOycjYo2phmY9sfv40Y= +github.com/firefart/nonamedreturns v1.0.4/go.mod h1:TDhe/tjI1BXo48CmYbUduTV7BdIga8MAO/xbKdcVsGI= +github.com/flyteorg/flytestdlib v0.4.16 h1:r4dCPUOqoE9xCAhOw9KDB7O6cBoCxyEtepIWYcj93H0= +github.com/flyteorg/flytestdlib v0.4.16/go.mod h1:WA5Y4hrcgD0ybGOKJVOQ4sP8q7NLRV+S5SWOlH0axgM= +github.com/flyteorg/protoc-gen-doc v1.4.2 h1:Otw0F+RHaPQ8XlpzhLLgjsCMcrAIcMO01Zh+ALe3rrE= +github.com/flyteorg/protoc-gen-doc v1.4.2/go.mod h1:exDTOVwqpp30eV/EDPFLZy3Pwr2sn6hBC1WIYH/UbIg= +github.com/flyteorg/stow v0.3.1 h1:cBMbWl03Gsy5KoA5mutUYTuYpqtT7Pb8+ANGCLnmFEs= +github.com/flyteorg/stow v0.3.1/go.mod h1:HBld7ud0i4khMHwJjkO8v+NSP7ddKa/ruhf4I8fliaA= +github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk= +github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= +github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= +github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= +github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-critic/go-critic v0.8.1 h1:16omCF1gN3gTzt4j4J6fKI/HnRojhEp+Eks6EuKw3vw= +github.com/go-critic/go-critic v0.8.1/go.mod h1:kpzXl09SIJX1cr9TB/g/sAG+eFEl7ZS9f9cqvZtyNl0= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= +github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= +github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= +github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= +github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= +github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8= +github.com/go-toolsmith/astcast v1.1.0/go.mod h1:qdcuFWeGGS2xX5bLM/c3U9lewg7+Zu4mr+xPwZIB4ZU= +github.com/go-toolsmith/astcopy v1.1.0 h1:YGwBN0WM+ekI/6SS6+52zLDEf8Yvp3n2seZITCUBt5s= +github.com/go-toolsmith/astcopy v1.1.0/go.mod h1:hXM6gan18VA1T/daUEHCFcYiW8Ai1tIwIzHY6srfEAw= +github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4= +github.com/go-toolsmith/astequal v1.1.0 h1:kHKm1AWqClYn15R0K1KKE4RG614D46n+nqUQ06E1dTw= +github.com/go-toolsmith/astequal v1.1.0/go.mod h1:sedf7VIdCL22LD8qIvv7Nn9MuWJruQA/ysswh64lffQ= +github.com/go-toolsmith/astfmt v1.1.0 h1:iJVPDPp6/7AaeLJEruMsBUlOYCmvg0MoCfJprsOmcco= +github.com/go-toolsmith/astfmt v1.1.0/go.mod h1:OrcLlRwu0CuiIBp/8b5PYF9ktGVZUjlNMV634mhwuQ4= +github.com/go-toolsmith/astp v1.1.0 h1:dXPuCl6u2llURjdPLLDxJeZInAeZ0/eZwFJmqZMnpQA= +github.com/go-toolsmith/astp v1.1.0/go.mod h1:0T1xFGz9hicKs8Z5MfAqSUitoUYS30pDMsRVIDHs8CA= +github.com/go-toolsmith/pkgload v1.2.2 h1:0CtmHq/02QhxcF7E9N5LIFcYFsMR5rdovfqTtRKkgIk= +github.com/go-toolsmith/strparse v1.0.0/go.mod h1:YI2nUKP9YGZnL/L1/DLFBfixrcjslWct4wyljWhSRy8= +github.com/go-toolsmith/strparse v1.1.0 h1:GAioeZUK9TGxnLS+qfdqNbA4z0SSm5zVNtCQiyP2Bvw= +github.com/go-toolsmith/strparse v1.1.0/go.mod h1:7ksGy58fsaQkGQlY8WVoBFNyEPMGuJin1rfoPS4lBSQ= +github.com/go-toolsmith/typep v1.1.0 h1:fIRYDyF+JywLfqzyhdiHzRop/GQDxxNhLGQ6gFUNHus= +github.com/go-toolsmith/typep v1.1.0/go.mod h1:fVIw+7zjdsMxDA3ITWnH1yOiw1rnTQKCsF/sk2H/qig= +github.com/go-xmlfmt/xmlfmt v1.1.2 h1:Nea7b4icn8s57fTx1M5AI4qQT5HEM3rVUO8MuE6g80U= +github.com/go-xmlfmt/xmlfmt v1.1.2/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM= +github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= +github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= +github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= +github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= +github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= +github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5DB4XJkc6BU31uODLD1o1gKvZmD0= +github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= +github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= +github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= +github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2 h1:amWTbTGqOZ71ruzrdA+Nx5WA3tV1N0goTspwmKCQvBY= +github.com/golangci/gofmt v0.0.0-20220901101216-f2edd75033f2/go.mod h1:9wOXstvyDRshQ9LggQuzBCGysxs3b6Uo/1MvYCR2NMs= +github.com/golangci/golangci-lint v1.53.3 h1:CUcRafczT4t1F+mvdkUm6KuOpxUZTl0yWN/rSU6sSMo= +github.com/golangci/golangci-lint v1.53.3/go.mod h1:W4Gg3ONq6p3Jl+0s/h9Gr0j7yEgHJWWZO2bHl2tBUXM= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= +github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= +github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca/go.mod h1:tvlJhZqDe4LMs4ZHD0oMUlt9G2LWuDGoisJTBzLMV9o= +github.com/golangci/misspell v0.4.0 h1:KtVB/hTK4bbL/S6bs64rYyk8adjmh1BygbBiaAiX+a0= +github.com/golangci/misspell v0.4.0/go.mod h1:W6O/bwV6lGDxUCChm2ykw9NQdd5bYd1Xkjo88UcWyJc= +github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6 h1:DIPQnGy2Gv2FSA4B/hh8Q7xx3B7AIDk3DAMeHclH1vQ= +github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6/go.mod h1:0AKcRCkMoKvUvlf89F6O7H2LYdhr1zBh736mBItOdRs= +github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 h1:zwtduBRr5SSWhqsYNgcuWO2kFlpdOZbP0+yRjmvPGys= +github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4/go.mod h1:Izgrg8RkN3rCIMLGE9CyYmU9pY2Jer6DgANEnZ/L/cQ= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= +github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/uuid v0.0.0-20161128191214-064e2069ce9c/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= +github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4= +github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= +github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601 h1:mrEEilTAUmaAORhssPPkxj84TsHrPMLBGW2Z4SoTxm8= +github.com/gordonklaus/ineffassign v0.0.0-20230610083614-0e73809eb601/go.mod h1:Qcp2HIAYhR7mNUVSIxZww3Guk4it82ghYcEXIAk+QT0= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= +github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= +github.com/gostaticanalysis/comment v1.4.1/go.mod h1:ih6ZxzTHLdadaiSnF5WY3dxUoXfXAlTaRzuaNDlSado= +github.com/gostaticanalysis/comment v1.4.2 h1:hlnx5+S2fY9Zo9ePo4AhgYsYHbM2+eAv8m/s1JiCd6Q= +github.com/gostaticanalysis/comment v1.4.2/go.mod h1:KLUTGDv6HOCotCH8h2erHKmpci2ZoR8VPu34YA2uzdM= +github.com/gostaticanalysis/forcetypeassert v0.1.0 h1:6eUflI3DiGusXGK6X7cCcIgVCpZ2CiZ1Q7jl6ZxNV70= +github.com/gostaticanalysis/forcetypeassert v0.1.0/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= +github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= +github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= +github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= +github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= +github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/xstrings v1.0.0 h1:pO2K/gKgKaat5LdpAhxhluX2GPQMaI3W5FUz/I/UnWk= +github.com/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/imdario/mergo v0.3.4/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q= +github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jgautheron/goconst v1.5.1 h1:HxVbL1MhydKs8R8n/HE5NPvzfaYmQJA3o879lE4+WcM= +github.com/jgautheron/goconst v1.5.1/go.mod h1:aAosetZ5zaeC/2EfMeRswtxUFBpe2Hr7HzkgX4fanO4= +github.com/jingyugao/rowserrcheck v1.1.1 h1:zibz55j/MJtLsjP1OF4bSdgXxwL1b+Vn7Tjzq7gFzUs= +github.com/jingyugao/rowserrcheck v1.1.1/go.mod h1:4yvlZSDb3IyDTUZJUmpZfm2Hwok+Dtp+nu2qOq+er9c= +github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af h1:KA9BjwUk7KlCh6S9EAGWBt1oExIUv9WyNCiRz5amv48= +github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af/go.mod h1:HEWGJkRDzjJY2sqdDwxccsGicWEf9BQOZsq2tV+xzM0= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/julz/importas v0.1.0 h1:F78HnrsjY3cR7j0etXy5+TU1Zuy7Xt08X/1aJnH5xXY= +github.com/julz/importas v0.1.0/go.mod h1:oSFU2R4XK/P7kNBrnL/FEQlDGN1/6WoxXEjSSXO0DV0= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/errcheck v1.6.3 h1:dEKh+GLHcWm2oN34nMvDzn1sqI0i0WxPvrgiJA5JuM8= +github.com/kisielk/errcheck v1.6.3/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d8NLy0LPw= +github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kkHAIKE/contextcheck v1.1.4 h1:B6zAaLhOEEcjvUgIYEqystmnFk1Oemn8bvJhbt0GMb8= +github.com/kkHAIKE/contextcheck v1.1.4/go.mod h1:1+i/gWqokIa+dm31mqGLZhZJ7Uh44DJGZVmr6QRBNJg= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kulti/thelper v0.6.3 h1:ElhKf+AlItIu+xGnI990no4cE2+XaSu1ULymV2Yulxs= +github.com/kulti/thelper v0.6.3/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= +github.com/kunwardeep/paralleltest v1.0.7 h1:2uCk94js0+nVNQoHZNLBkAR1DQJrVzw6T0RMzJn55dQ= +github.com/kunwardeep/paralleltest v1.0.7/go.mod h1:2C7s65hONVqY7Q5Efj5aLzRCNLjw2h4eMc9EcypGjcY= +github.com/kyoh86/exportloopref v0.1.11 h1:1Z0bcmTypkL3Q4k+IDHMWTcnCliEZcaPiIe0/ymEyhQ= +github.com/kyoh86/exportloopref v0.1.11/go.mod h1:qkV4UF1zGl6EkF1ox8L5t9SwyeBAZ3qLMd6up458uqA= +github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= +github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= +github.com/ldez/tagliatelle v0.5.0 h1:epgfuYt9v0CG3fms0pEgIMNPuFf/LpPIfjk4kyqSioo= +github.com/ldez/tagliatelle v0.5.0/go.mod h1:rj1HmWiL1MiKQuOONhd09iySTEkUuE/8+5jtPYz9xa4= +github.com/leonklingele/grouper v1.1.1 h1:suWXRU57D4/Enn6pXR0QVqqWWrnJ9Osrz+5rjt8ivzU= +github.com/leonklingele/grouper v1.1.1/go.mod h1:uk3I3uDfi9B6PeUjsCKi6ndcf63Uy7snXgR4yDYQVDY= +github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= +github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= +github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/maratori/testableexamples v1.0.0 h1:dU5alXRrD8WKSjOUnmJZuzdxWOEQ57+7s93SLMxb2vI= +github.com/maratori/testableexamples v1.0.0/go.mod h1:4rhjL1n20TUTT4vdh3RDqSizKLyXp7K2u6HgraZCGzE= +github.com/maratori/testpackage v1.1.1 h1:S58XVV5AD7HADMmD0fNnziNHqKvSdDuEKdPD1rNTU04= +github.com/maratori/testpackage v1.1.1/go.mod h1:s4gRK/ym6AMrqpOa/kEbQTV4Q4jb7WeLZzVhVVVOQMc= +github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 h1:gWg6ZQ4JhDfJPqlo2srm/LN17lpybq15AryXIRcWYLE= +github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26/go.mod h1:1BELzlh859Sh1c6+90blK8lbYy0kwQf1bYlBhBysy1s= +github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE= +github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= +github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= +github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= +github.com/mgechev/revive v1.3.2 h1:Wb8NQKBaALBJ3xrrj4zpwJwqwNA6nDpyJSEQWcCka6U= +github.com/mgechev/revive v1.3.2/go.mod h1:UCLtc7o5vg5aXCwdUTU1kEBQ1v+YXPAkYDIDXbrs5I0= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= +github.com/moricho/tparallel v0.3.1 h1:fQKD4U1wRMAYNngDonW5XupoB/ZGJHdpzrWqgyg9krA= +github.com/moricho/tparallel v0.3.1/go.mod h1:leENX2cUv7Sv2qDgdi0D0fCftN8fRC67Bcn8pqzeYNI= +github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007 h1:28i1IjGcx8AofiB4N3q5Yls55VEaitzuEPkFJEVgGkA= +github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= +github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U= +github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE= +github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA= +github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8= +github.com/ncw/swift v1.0.53 h1:luHjjTNtekIEvHg5KdAFIBaH7bWfNkefwFnpDffSIks= +github.com/ncw/swift v1.0.53/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= +github.com/nishanths/exhaustive v0.11.0 h1:T3I8nUGhl/Cwu5Z2hfc92l0e04D2GEW6e0l8pzda2l0= +github.com/nishanths/exhaustive v0.11.0/go.mod h1:RqwDsZ1xY0dNdqHho2z6X+bgzizwbLYOWnZbbl2wLB4= +github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= +github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= +github.com/nunnatsa/ginkgolinter v0.12.1 h1:vwOqb5Nu05OikTXqhvLdHCGcx5uthIYIl0t79UVrERQ= +github.com/nunnatsa/ginkgolinter v0.12.1/go.mod h1:AK8Ab1PypVrcGUusuKD8RDcl2KgsIwvNaaxAlyHSzso= +github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= +github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= +github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.11.0 h1:JAKSXpt1YjtLA7YpPiqO9ss6sNXEsPfSGdwN0UHqzrw= +github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo/v2 v2.9.4 h1:xR7vG4IXt5RWx6FfIjyAtsoMAtnc3C/rFXBBd2AjZwE= +github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE= +github.com/otiai10/copy v1.2.0 h1:HvG945u96iNadPoG2/Ja2+AUJeW5YuFQMixq9yirC+k= +github.com/otiai10/copy v1.2.0/go.mod h1:rrF5dJ5F0t/EWSYODDu4j9/vEeYHMkc8jt0zJChqQWw= +github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= +github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= +github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= +github.com/otiai10/mint v1.3.1/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= +github.com/pascaldekloe/name v0.0.0-20180628100202-0fd16699aae1 h1:/I3lTljEEDNYLho3/FUB7iD/oc2cEFgVmbHzV+O0PtU= +github.com/pascaldekloe/name v0.0.0-20180628100202-0fd16699aae1/go.mod h1:eD5JxqMiuNYyFNmyY9rkJ/slN8y59oEu4Ei7F8OoKWQ= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= +github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/polyfloyd/go-errorlint v1.4.2 h1:CU+O4181IxFDdPH6t/HT7IiDj1I7zxNi1RIUxYwn8d0= +github.com/polyfloyd/go-errorlint v1.4.2/go.mod h1:k6fU/+fQe38ednoZS51T7gSIGQW1y94d6TkSr35OzH8= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/pseudomuto/protokit v0.2.0 h1:hlnBDcy3YEDXH7kc9gV+NLaN0cDzhDvD1s7Y6FZ8RpM= +github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q= +github.com/quasilyte/go-ruleguard v0.3.19 h1:tfMnabXle/HzOb5Xe9CUZYWXKfkS1KwRmZyPmD9nVcc= +github.com/quasilyte/go-ruleguard v0.3.19/go.mod h1:lHSn69Scl48I7Gt9cX3VrbsZYvYiBYszZOZW4A+oTEw= +github.com/quasilyte/gogrep v0.5.0 h1:eTKODPXbI8ffJMN+W2aE0+oL0z/nh8/5eNdiO34SOAo= +github.com/quasilyte/gogrep v0.5.0/go.mod h1:Cm9lpz9NZjEoL1tgZ2OgeUKPIxL1meE7eo60Z6Sk+Ng= +github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 h1:TCg2WBOl980XxGFEZSS6KlBGIV0diGdySzxATTWoqaU= +github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryancurrah/gomodguard v1.3.0 h1:q15RT/pd6UggBXVBuLps8BXRvl5GPBcwVA7BJHMLuTw= +github.com/ryancurrah/gomodguard v1.3.0/go.mod h1:ggBxb3luypPEzqVtq33ee7YSN35V28XeGnid8dnni50= +github.com/ryanrolds/sqlclosecheck v0.4.0 h1:i8SX60Rppc1wRuyQjMciLqIzV3xnoHB7/tXbr6RGYNI= +github.com/ryanrolds/sqlclosecheck v0.4.0/go.mod h1:TBRRjzL31JONc9i4XMinicuo+s+E8yKZ5FN8X3G6CKQ= +github.com/sanposhiho/wastedassign/v2 v2.0.7 h1:J+6nrY4VW+gC9xFzUc+XjPD3g3wF3je/NsJFwFK7Uxc= +github.com/sanposhiho/wastedassign/v2 v2.0.7/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= +github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw= +github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ= +github.com/sashamelentyev/usestdlibvars v1.23.0 h1:01h+/2Kd+NblNItNeux0veSL5cBF1jbEOPrEhDzGYq0= +github.com/sashamelentyev/usestdlibvars v1.23.0/go.mod h1:YPwr/Y1LATzHI93CqoPUN/2BzGQ/6N/cl/KwgR0B/aU= +github.com/securego/gosec/v2 v2.16.0 h1:Pi0JKoasQQ3NnoRao/ww/N/XdynIB9NRYYZT5CyOs5U= +github.com/securego/gosec/v2 v2.16.0/go.mod h1:xvLcVZqUfo4aAQu56TNv7/Ltz6emAOQAEsrZrt7uGlI= +github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= +github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= +github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= +github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE= +github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4= +github.com/sivchari/nosnakecase v1.7.0 h1:7QkpWIRMe8x25gckkFd2A5Pi6Ymo0qgr4JrhGt95do8= +github.com/sivchari/nosnakecase v1.7.0/go.mod h1:CwDzrzPea40/GB6uynrNLiorAlgFRvRbFSgJx2Gs+QY= +github.com/sivchari/tenv v1.7.1 h1:PSpuD4bu6fSmtWMxSGWcvqUUgIn7k3yOJhOIzVWn8Ak= +github.com/sivchari/tenv v1.7.1/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= +github.com/sonatard/noctx v0.0.2 h1:L7Dz4De2zDQhW8S0t+KUjY0MAQJd6SgVwhzNIc4ok00= +github.com/sonatard/noctx v0.0.2/go.mod h1:kzFz+CzWSjQ2OzIm46uJZoXuBpa2+0y3T36U18dWqIo= +github.com/sourcegraph/go-diff v0.7.0 h1:9uLlrd5T46OXs5qpp8L/MTltk0zikUGi0sNNyCpA8G0= +github.com/sourcegraph/go-diff v0.7.0/go.mod h1:iBszgVvyxdc8SFZ7gm69go2KDdt3ag071iBaWPF6cjs= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= +github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo= +github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= +github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ= +github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= +github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= +github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= +github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= +github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v0.0.0-20170130113145-4d4bfba8f1d1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= +github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8= +github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c/go.mod h1:SbErYREK7xXdsRiigaQiQkI9McGRzYMvlKYaP3Nimdk= +github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9qkHM= +github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg= +github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA= +github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0= +github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag= +github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3/go.mod h1:ON8b8w4BN/kE1EOhwT0o+d62W65a6aPw1nouo9LMgyY= +github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= +github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= +github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966 h1:quvGphlmUVU+nhpFa4gg4yJyTRJ13reZMDHrKwYw53M= +github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966/go.mod h1:27bSVNWSBOHm+qRp1T9qzaIpsWEP6TbUnei/43HK+PQ= +github.com/timonwong/loggercheck v0.9.4 h1:HKKhqrjcVj8sxL7K77beXh0adEm6DLjV/QOGeMXEVi4= +github.com/timonwong/loggercheck v0.9.4/go.mod h1:caz4zlPcgvpEkXgVnAJGowHAMW2NwHaNlpS8xDbVhTg= +github.com/tomarrell/wrapcheck/v2 v2.8.1 h1:HxSqDSN0sAt0yJYsrcYVoEeyM4aI9yAm3KQpIXDJRhQ= +github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE= +github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw= +github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= +github.com/ultraware/funlen v0.0.3 h1:5ylVWm8wsNwH5aWo9438pwvsK0QiqVuUrt9bn7S/iLA= +github.com/ultraware/funlen v0.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA= +github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI= +github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA= +github.com/uudashr/gocognit v1.0.6 h1:2Cgi6MweCsdB6kpcVQp7EW4U23iBFQWfTXiWlyp842Y= +github.com/uudashr/gocognit v1.0.6/go.mod h1:nAIUuVBnYU7pcninia3BHOvQkpQCeO76Uscky5BOwcY= +github.com/xen0n/gosmopolitan v1.2.1 h1:3pttnTuFumELBRSh+KQs1zcz4fN6Zy7aB0xlnQSn1Iw= +github.com/xen0n/gosmopolitan v1.2.1/go.mod h1:JsHq/Brs1o050OOdmzHeOr0N7OtlnKRAGAsElF8xBQA= +github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= +github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= +github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= +github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= +github.com/ykadowak/zerologlint v0.1.2 h1:Um4P5RMmelfjQqQJKtE8ZW+dLZrXrENeIzWWKw800U4= +github.com/ykadowak/zerologlint v0.1.2/go.mod h1:KaUskqF3e/v59oPmdq1U1DnKcuHokl2/K1U4pmIELKg= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +gitlab.com/bosi/decorder v0.2.3 h1:gX4/RgK16ijY8V+BRQHAySfQAb354T7/xQpDB2n10P0= +gitlab.com/bosi/decorder v0.2.3/go.mod h1:9K1RB5+VPNQYtXtTDAzd2OEftsZb1oV0IrJrzChSdGE= +go-simpler.org/assert v0.5.0 h1:+5L/lajuQtzmbtEfh69sr5cRf2/xZzyJhFjoOz/PPqs= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.tmz.dev/musttag v0.7.0 h1:QfytzjTWGXZmChoX0L++7uQN+yRCPfyFm+whsM+lfGc= +go.tmz.dev/musttag v0.7.0/go.mod h1:oTFPvgOkJmp5kYL02S8+jrH0eLrBIl57rzWeA26zDEM= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= +go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= +golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= +golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea h1:vLCWI/yYrdEHyN2JzIzPO3aaQJHQdp89IZBA/+azVC4= +golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2 h1:J74nGeMgeFnYQJN59eFwh06jX/V8g0lB7LWpjSLxtgU= +golang.org/x/exp/typeparams v0.0.0-20230224173230-c95f2b4c22f2/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI= +golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= +golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= +golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= +golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190412183630-56d357773e84/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= +golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= +golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= +golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 h1:Hir2P/De0WpUhtrKGGjvSb2YxUgyZ7EFOSLIcSSpiwE= +golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190321232350-e250d351ecad/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524210228-3d17549cdc6b/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190910044552-dd2b5c81c578/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200324003944-a576cf524670/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200329025819-fd4102a86c65/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= +golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA= +golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= +golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.11.1 h1:ojD5zOW8+7dOGzdnNgersm8aPfcDjhMp12UfG93NIMc= +golang.org/x/tools v0.11.1/go.mod h1:anzJrxPjNtfgiYQYirP2CPGzGLxrH2u2QBhn6Bf3qY8= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.126.0 h1:q4GJq+cAdMAC7XP7njvQ4tvohGLiSlytuL4BQxbIZ+o= +google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20181107211654-5fc9ac540362/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc h1:8DyZCyvI8mE1IdLy/60bS+52xfymkE72wv1asokgtao= +google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1:kVKPf/IiYSBWEWtkIn6wZXwWGCnLKcC8oWfZvXjsGnM= +google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= +google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.4.3 h1:o/n5/K5gXqk8Gozvs2cnL0F2S1/g1vcGCAx2vETjITw= +honnef.co/go/tools v0.4.3/go.mod h1:36ZgoUOrqOk1GxwHhyryEkq8FQWkUO2xGuSMhUCcdvA= +k8s.io/api v0.0.0-20210217171935-8e2decd92398/go.mod h1:60tmSUpHxGPFerNHbo/ayI2lKxvtrhbxFyXuEIWJd78= +k8s.io/apimachinery v0.0.0-20210217011835-527a61b4dffe/go.mod h1:Z7ps/g0rjlTeMstYrMOUttJfT2Gg34DEaG/f2PYLCWY= +k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg= +k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= +k8s.io/client-go v0.0.0-20210217172142-7279fc64d847 h1:d+LBRNY3c/KGp7lDblRlUJkayx4Vla7WUTIazoGMdYo= +k8s.io/client-go v0.0.0-20210217172142-7279fc64d847/go.mod h1:q0EaghmVye2uui19vxSZ2NG6ssgUWgjudO6vrwXneSI= +k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= +k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= +k8s.io/klog/v2 v2.5.0 h1:8mOnjf1RmUPW6KRqQCfYSZq/K20Unmp3IhuZUhxl8KI= +k8s.io/klog/v2 v2.5.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= +k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= +k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= +mvdan.cc/gofumpt v0.5.0 h1:0EQ+Z56k8tXjj/6TQD25BFNKQXpCvT0rnansIc7Ug5E= +mvdan.cc/gofumpt v0.5.0/go.mod h1:HBeVDtMKRZpXyxFciAirzdKklDlGu8aAy1wEbH5Y9js= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= +mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= +mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4= +mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d h1:3rvTIIM22r9pvXk+q3swxUQAQOxksVMGK7sml4nG57w= +mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d/go.mod h1:IeHQjmn6TOD+e4Z3RFiZMMsLVL+A96Nvptar8Fj71is= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= +sigs.k8s.io/structured-merge-diff/v4 v4.0.3/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/flyteidl/boilerplate/flyte/golang_support_tools/tools.go b/flyteidl/boilerplate/flyte/golang_support_tools/tools.go new file mode 100644 index 0000000000..43de03450c --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_support_tools/tools.go @@ -0,0 +1,12 @@ +//go:build tools +// +build tools + +package tools + +import ( + _ "github.com/EngHabu/mockery/cmd/mockery" + _ "github.com/alvaroloes/enumer" + _ "github.com/flyteorg/flytestdlib/cli/pflags" + _ "github.com/golangci/golangci-lint/cmd/golangci-lint" + _ "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc" +) diff --git a/flyteidl/boilerplate/flyte/golang_test_targets/Makefile b/flyteidl/boilerplate/flyte/golang_test_targets/Makefile new file mode 100644 index 0000000000..280e1e55e4 --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_test_targets/Makefile @@ -0,0 +1,57 @@ +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + + +.PHONY: download_tooling +download_tooling: #download dependencies (including test deps) for the package + @boilerplate/flyte/golang_test_targets/download_tooling.sh + +.PHONY: generate +generate: download_tooling #generate go code + @boilerplate/flyte/golang_test_targets/go-gen.sh + +.PHONY: lint +lint: download_tooling #lints the package for common code smells + GL_DEBUG=linters_output,env golangci-lint run --deadline=5m --exclude deprecated -v + +# If code is failing goimports linter, this will fix. +# skips 'vendor' +.PHONY: goimports +goimports: + @boilerplate/flyte/golang_test_targets/goimports + +.PHONY: mod_download +mod_download: #download dependencies (including test deps) for the package + go mod download + +.PHONY: install +install: download_tooling mod_download + +.PHONY: show +show: + go list -m all + +.PHONY: test_unit +test_unit: + go test -cover ./... -race + +.PHONY: test_benchmark +test_benchmark: + go test -bench . ./... + +.PHONY: test_unit_cover +test_unit_cover: + go test ./... -coverprofile /tmp/cover.out -covermode=count + go tool cover -func /tmp/cover.out + +.PHONY: test_unit_visual +test_unit_visual: + go test ./... -coverprofile /tmp/cover.out -covermode=count + go tool cover -html=/tmp/cover.out + +.PHONY: test_unit_codecov +test_unit_codecov: + go test ./... -race -coverprofile=coverage.txt -covermode=atomic + curl -s https://codecov.io/bash > codecov_bash.sh && bash codecov_bash.sh diff --git a/flyteidl/boilerplate/flyte/golang_test_targets/Readme.rst b/flyteidl/boilerplate/flyte/golang_test_targets/Readme.rst new file mode 100644 index 0000000000..f9d890fdd7 --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_test_targets/Readme.rst @@ -0,0 +1,31 @@ +Golang Test Targets +~~~~~~~~~~~~~~~~~~~ + +Provides an ``install`` make target that uses ``go mod`` to install golang dependencies. + +Provides a ``lint`` make target that uses golangci to lint your code. + +Provides a ``test_unit`` target for unit tests. + +Provides a ``test_unit_cover`` target for analysing coverage of unit tests, which will output the coverage of each function and total statement coverage. + +Provides a ``test_unit_visual`` target for visualizing coverage of unit tests through an interactive html code heat map. + +Provides a ``test_benchmark`` target for benchmark tests. + +**To Enable:** + +Add ``flyteorg/golang_test_targets`` to your ``boilerplate/update.cfg`` file. + +Make sure you're using ``go mod`` for dependency management. + +Provide a ``.golangci`` configuration (the lint target requires it). + +Add ``include boilerplate/flyte/golang_test_targets/Makefile`` in your main ``Makefile`` _after_ your REPOSITORY environment variable + +:: + + REPOSITORY= + include boilerplate/flyte/golang_test_targets/Makefile + +(this ensures the extra make targets get included in your main Makefile) diff --git a/flyteidl/boilerplate/flyte/golang_test_targets/download_tooling.sh b/flyteidl/boilerplate/flyte/golang_test_targets/download_tooling.sh new file mode 100755 index 0000000000..c7e5577ef3 --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_test_targets/download_tooling.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# Everything in this file needs to be installed outside of current module +# The reason we cannot turn off module entirely and install is that we need the replace statement in go.mod +# because we are installing a mockery fork. Turning it off would result installing the original not the fork. +# We also want to version all the other tools. We also want to be able to run go mod tidy without removing the version +# pins. To facilitate this, we're maintaining two sets of go.mod/sum files - the second one only for tooling. This is +# the same approach that go 1.14 will take as well. +# See: +# https://github.com/flyteorg/flyte/issues/129 +# https://github.com/golang/go/issues/30515 for some background context +# https://github.com/go-modules-by-example/index/blob/5ec250b4b78114a55001bd7c9cb88f6e07270ea5/010_tools/README.md + +set -e + +# List of tools to go get +# In the format of ":" or ":" if no cli +tools=( + "github.com/EngHabu/mockery/cmd/mockery" + "github.com/flyteorg/flytestdlib/cli/pflags@latest" + "github.com/golangci/golangci-lint/cmd/golangci-lint" + "github.com/alvaroloes/enumer" + "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc" +) + +tmp_dir=$(mktemp -d -t gotooling-XXX) +echo "Using temp directory ${tmp_dir}" +cp -R boilerplate/flyte/golang_support_tools/* $tmp_dir +pushd "$tmp_dir" + +for tool in "${tools[@]}" +do + echo "Installing ${tool}" + GO111MODULE=on go install $tool +done + +popd diff --git a/flyteidl/boilerplate/flyte/golang_test_targets/go-gen.sh b/flyteidl/boilerplate/flyte/golang_test_targets/go-gen.sh new file mode 100755 index 0000000000..54bd6af61b --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_test_targets/go-gen.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +set -ex + +echo "Running go generate" +go generate ./... + +# This section is used by GitHub workflow to ensure that the generation step was run +if [ -n "$DELTA_CHECK" ]; then + DIRTY=$(git status --porcelain) + if [ -n "$DIRTY" ]; then + echo "FAILED: Go code updated without commiting generated code." + echo "Ensure make generate has run and all changes are committed." + DIFF=$(git diff) + echo "diff detected: $DIFF" + DIFF=$(git diff --name-only) + echo "files different: $DIFF" + exit 1 + else + echo "SUCCESS: Generated code is up to date." + fi +fi diff --git a/flyteidl/boilerplate/flyte/golang_test_targets/goimports b/flyteidl/boilerplate/flyte/golang_test_targets/goimports new file mode 100755 index 0000000000..af1829036c --- /dev/null +++ b/flyteidl/boilerplate/flyte/golang_test_targets/goimports @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./pkg/client/*" -not -path "./boilerplate/*") diff --git a/flyteidl/boilerplate/flyte/golangci_file/.golangci.yml b/flyteidl/boilerplate/flyte/golangci_file/.golangci.yml new file mode 100644 index 0000000000..5d53f35295 --- /dev/null +++ b/flyteidl/boilerplate/flyte/golangci_file/.golangci.yml @@ -0,0 +1,30 @@ +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +run: + skip-dirs: + - pkg/client + +linters: + disable-all: true + enable: + - deadcode + - errcheck + - gas + - goconst + - goimports + - golint + - gosimple + - govet + - ineffassign + - misspell + - nakedret + - staticcheck + - structcheck + - typecheck + - unconvert + - unparam + - unused + - varcheck diff --git a/flyteidl/boilerplate/flyte/golangci_file/Readme.rst b/flyteidl/boilerplate/flyte/golangci_file/Readme.rst new file mode 100644 index 0000000000..e4cbd18b96 --- /dev/null +++ b/flyteidl/boilerplate/flyte/golangci_file/Readme.rst @@ -0,0 +1,8 @@ +GolangCI File +~~~~~~~~~~~~~ + +Provides a ``.golangci`` file with the linters we've agreed upon. + +**To Enable:** + +Add ``flyteorg/golangci_file`` to your ``boilerplate/update.cfg`` file. diff --git a/flyteidl/boilerplate/flyte/golangci_file/update.sh b/flyteidl/boilerplate/flyte/golangci_file/update.sh new file mode 100755 index 0000000000..ab2f85c680 --- /dev/null +++ b/flyteidl/boilerplate/flyte/golangci_file/update.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +# Clone the .golangci file +echo " - copying ${DIR}/.golangci to the root directory." +cp ${DIR}/.golangci.yml ${DIR}/../../../.golangci.yml diff --git a/flyteidl/boilerplate/flyte/pull_request_template/Readme.rst b/flyteidl/boilerplate/flyte/pull_request_template/Readme.rst new file mode 100644 index 0000000000..ee54437252 --- /dev/null +++ b/flyteidl/boilerplate/flyte/pull_request_template/Readme.rst @@ -0,0 +1,8 @@ +Pull Request Template +~~~~~~~~~~~~~~~~~~~~~ + +Provides a Pull Request template. + +**To Enable:** + +Add ``flyteorg/golang_test_targets`` to your ``boilerplate/update.cfg`` file. diff --git a/flyteidl/boilerplate/flyte/pull_request_template/pull_request_template.md b/flyteidl/boilerplate/flyte/pull_request_template/pull_request_template.md new file mode 100644 index 0000000000..9cdab99b46 --- /dev/null +++ b/flyteidl/boilerplate/flyte/pull_request_template/pull_request_template.md @@ -0,0 +1,35 @@ +## _Read then delete this section_ + +_- Make sure to use a concise title for the pull-request._ + +_- Use #patch, #minor or #major in the pull-request title to bump the corresponding version. Otherwise, the patch version +will be bumped. [More details](https://github.com/marketplace/actions/github-tag-bump)_ + +# TL;DR +_Please replace this text with a description of what this PR accomplishes._ + +## Type + - [ ] Bug Fix + - [ ] Feature + - [ ] Plugin + +## Are all requirements met? + + - [ ] Code completed + - [ ] Smoke tested + - [ ] Unit tests added + - [ ] Code documentation added + - [ ] Any pending items have an associated Issue + +## Complete description + _How did you fix the bug, make the feature etc. Link to any design docs etc_ + +## Tracking Issue +_Remove the '*fixes*' keyword if there will be multiple PRs to fix the linked issue_ + +fixes https://github.com/flyteorg/flyte/issues/ + +## Follow-up issue +_NA_ +OR +_https://github.com/flyteorg/flyte/issues/_ diff --git a/flyteidl/boilerplate/flyte/pull_request_template/update.sh b/flyteidl/boilerplate/flyte/pull_request_template/update.sh new file mode 100755 index 0000000000..051e9dbce0 --- /dev/null +++ b/flyteidl/boilerplate/flyte/pull_request_template/update.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +cp ${DIR}/pull_request_template.md ${DIR}/../../../pull_request_template.md diff --git a/flyteidl/boilerplate/flyte/welcome_bot/Readme.rst b/flyteidl/boilerplate/flyte/welcome_bot/Readme.rst new file mode 100644 index 0000000000..ea18781185 --- /dev/null +++ b/flyteidl/boilerplate/flyte/welcome_bot/Readme.rst @@ -0,0 +1,8 @@ +Config File -- Welcome Bot +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Provides a ``config.yml`` file. + +**To Enable:** + +Add ``flyte/config.yml`` to your ``boilerplate/update.cfg`` file. \ No newline at end of file diff --git a/flyteidl/boilerplate/flyte/welcome_bot/config.yml b/flyteidl/boilerplate/flyte/welcome_bot/config.yml new file mode 100644 index 0000000000..73da252e52 --- /dev/null +++ b/flyteidl/boilerplate/flyte/welcome_bot/config.yml @@ -0,0 +1,16 @@ +# Comment to be posted on PRs from first-time contributors in your repository +newPRWelcomeComment: | + Thank you for opening this pull request! 🙌 + + These tips will help get your PR across the finish line: + + - Most of the repos have a PR template; if not, fill it out to the best of your knowledge. + - Sign off your commits (Reference: [DCO Guide](https://github.com/src-d/guide/blob/master/developer-community/fix-DCO.md)). + +# Comment to be posted to on pull requests merged by a first time user +firstPRMergeComment: > + Congrats on merging your first pull request! 🎉 + +# Comment to be posted on first-time issues +newIssueWelcomeComment: > + Thank you for opening your first issue here! 🛠 diff --git a/flyteidl/boilerplate/flyte/welcome_bot/update.sh b/flyteidl/boilerplate/flyte/welcome_bot/update.sh new file mode 100755 index 0000000000..2db64ac3f1 --- /dev/null +++ b/flyteidl/boilerplate/flyte/welcome_bot/update.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +# Clone the config.yml file +echo " - copying ${DIR}/config.yml to the root directory." +cp "${DIR}"/config.yml "${DIR}"/../../../.github/config.yml + diff --git a/flyteidl/boilerplate/update.cfg b/flyteidl/boilerplate/update.cfg new file mode 100644 index 0000000000..d163cc3e72 --- /dev/null +++ b/flyteidl/boilerplate/update.cfg @@ -0,0 +1,4 @@ +flyte/golang_test_targets +flyte/golang_support_tools +flyte/pull_request_template +flyte/code_of_conduct diff --git a/flyteidl/boilerplate/update.sh b/flyteidl/boilerplate/update.sh new file mode 100755 index 0000000000..73de4dc91c --- /dev/null +++ b/flyteidl/boilerplate/update.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'FLYTEORG/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst + +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +OUT="$(mktemp -d)" +trap 'rm -fr $OUT' EXIT + +git clone https://github.com/flyteorg/boilerplate.git "${OUT}" + +echo "Updating the update.sh script." +cp "${OUT}/boilerplate/update.sh" "${DIR}/update.sh" + +CONFIG_FILE="${DIR}/update.cfg" +README="https://github.com/flyteorg/boilerplate/blob/master/Readme.rst" + +if [ ! -f "$CONFIG_FILE" ]; then + echo "$CONFIG_FILE not found." + echo "This file is required in order to select which features to include." + echo "See $README for more details." + exit 1 +fi + +if [ -z "$REPOSITORY" ]; then + echo "$REPOSITORY is required to run this script" + echo "See $README for more details." + exit 1 +fi + +while read -r directory junk; do + # Skip comment lines (which can have leading whitespace) + if [[ "$directory" == '#'* ]]; then + continue + fi + # Skip blank or whitespace-only lines + if [[ "$directory" == "" ]]; then + continue + fi + # Lines like + # valid/path other_junk + # are not acceptable, unless `other_junk` is a comment + if [[ "$junk" != "" ]] && [[ "$junk" != '#'* ]]; then + echo "Invalid config! Only one directory is allowed per line. Found '$junk'" + exit 1 + fi + + dir_path="${OUT}/boilerplate/${directory}" + # Make sure the directory exists + if ! [[ -d "$dir_path" ]]; then + echo "Invalid boilerplate directory: '$directory'" + exit 1 + fi + + echo "***********************************************************************************" + echo "$directory is configured in update.cfg." + echo "-----------------------------------------------------------------------------------" + echo "syncing files from source." + rm -rf "${DIR:?}/${directory}" + mkdir -p "$(dirname "${DIR}"/"${directory}")" + cp -r "$dir_path" "${DIR}/${directory}" + if [ -f "${DIR}/${directory}/update.sh" ]; then + echo "executing ${DIR}/${directory}/update.sh" + "${DIR}/${directory}/update.sh" + fi + echo "***********************************************************************************" + echo "" +done < "$CONFIG_FILE" diff --git a/flyteidl/buf.gen.yaml b/flyteidl/buf.gen.yaml new file mode 100644 index 0000000000..8d51e7dbc7 --- /dev/null +++ b/flyteidl/buf.gen.yaml @@ -0,0 +1,12 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/grpc/python:v1.53.0 + out: gen/pb_python + - plugin: buf.build/protocolbuffers/python:v22.2 + out: gen/pb_python + - plugin: buf.build/protocolbuffers/pyi:v22.2 + out: gen/pb_python + - plugin: buf.build/community/neoeinstein-prost + out: gen/pb_rust diff --git a/flyteidl/buf.work.yaml b/flyteidl/buf.work.yaml new file mode 100644 index 0000000000..4bddfe6792 --- /dev/null +++ b/flyteidl/buf.work.yaml @@ -0,0 +1,3 @@ +version: v1 +directories: + - protos diff --git a/flyteidl/clients/go/admin/atomic_credentials.go b/flyteidl/clients/go/admin/atomic_credentials.go new file mode 100644 index 0000000000..ca2a4f1776 --- /dev/null +++ b/flyteidl/clients/go/admin/atomic_credentials.go @@ -0,0 +1,89 @@ +package admin + +import ( + "context" + "sync/atomic" + + "google.golang.org/grpc/credentials" + + stdlibAtomic "github.com/flyteorg/flytestdlib/atomic" +) + +// atomicPerRPCCredentials provides a convenience on top of atomic.Value and credentials.PerRPCCredentials to be thread-safe. +type atomicPerRPCCredentials struct { + atomic.Value +} + +func (t *atomicPerRPCCredentials) Store(properties credentials.PerRPCCredentials) { + t.Value.Store(properties) +} + +func (t *atomicPerRPCCredentials) Load() credentials.PerRPCCredentials { + val := t.Value.Load() + if val == nil { + return CustomHeaderTokenSource{} + } + + return val.(credentials.PerRPCCredentials) +} + +func newAtomicPerPRCCredentials() *atomicPerRPCCredentials { + return &atomicPerRPCCredentials{ + Value: atomic.Value{}, + } +} + +// PerRPCCredentialsFuture is a future wrapper for credentials.PerRPCCredentials that can act as one and also be +// materialized later. +type PerRPCCredentialsFuture struct { + perRPCCredentials *atomicPerRPCCredentials + initialized stdlibAtomic.Bool +} + +// GetRequestMetadata gets the authorization metadata as a map using a TokenSource to generate a token +func (ts *PerRPCCredentialsFuture) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) { + if ts.initialized.Load() { + tp := ts.perRPCCredentials.Load() + return tp.GetRequestMetadata(ctx, uri...) + } + + return map[string]string{}, nil +} + +// RequireTransportSecurity returns whether this credentials class requires TLS/SSL. OAuth uses Bearer tokens that are +// susceptible to MITM (Man-In-The-Middle) attacks that are mitigated by TLS/SSL. We may return false here to make it +// easier to setup auth. However, in a production environment, TLS for OAuth2 is a requirement. +// see also: https://tools.ietf.org/html/rfc6749#section-3.1 +func (ts *PerRPCCredentialsFuture) RequireTransportSecurity() bool { + if ts.initialized.Load() { + return ts.perRPCCredentials.Load().RequireTransportSecurity() + } + + return false +} + +func (ts *PerRPCCredentialsFuture) Store(tokenSource credentials.PerRPCCredentials) { + ts.perRPCCredentials.Store(tokenSource) + ts.initialized.Store(true) +} + +func (ts *PerRPCCredentialsFuture) Get() credentials.PerRPCCredentials { + return ts.perRPCCredentials.Load() +} + +func (ts *PerRPCCredentialsFuture) IsInitialized() bool { + return ts.initialized.Load() +} + +// NewPerRPCCredentialsFuture initializes a new PerRPCCredentialsFuture that can act as a credentials.PerRPCCredentials +// and can also be resolved in the future. Users of the future can check if it has been initialized before by calling +// PerRPCCredentialsFuture.IsInitialized(). Calling PerRPCCredentialsFuture.Get() multiple times will return +// the same stored object (unless it changed in between calls). Calling PerRPCCredentialsFuture.Store() multiple +// times is supported and will result in overriding the old value atomically. +func NewPerRPCCredentialsFuture() *PerRPCCredentialsFuture { + tokenSource := PerRPCCredentialsFuture{ + perRPCCredentials: newAtomicPerPRCCredentials(), + } + + return &tokenSource +} diff --git a/flyteidl/clients/go/admin/atomic_credentials_test.go b/flyteidl/clients/go/admin/atomic_credentials_test.go new file mode 100644 index 0000000000..426835d163 --- /dev/null +++ b/flyteidl/clients/go/admin/atomic_credentials_test.go @@ -0,0 +1,57 @@ +package admin + +import ( + "context" + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestAtomicPerRPCCredentials(t *testing.T) { + a := atomicPerRPCCredentials{} + assert.True(t, a.Load().RequireTransportSecurity()) + + tokenSource := DummyTestTokenSource{} + chTokenSource := NewCustomHeaderTokenSource(tokenSource, true, "my_custom_header") + a.Store(chTokenSource) + + assert.False(t, a.Load().RequireTransportSecurity()) +} + +func TestNewPerRPCCredentialsFuture(t *testing.T) { + f := NewPerRPCCredentialsFuture() + assert.False(t, f.RequireTransportSecurity()) + assert.Equal(t, CustomHeaderTokenSource{}, f.Get()) + + tokenSource := DummyTestTokenSource{} + chTokenSource := NewCustomHeaderTokenSource(tokenSource, false, "my_custom_header") + f.Store(chTokenSource) + + assert.True(t, f.Get().RequireTransportSecurity()) + assert.True(t, f.RequireTransportSecurity()) +} + +func ExampleNewPerRPCCredentialsFuture() { + f := NewPerRPCCredentialsFuture() + + // Starts uninitialized + fmt.Println("Initialized:", f.IsInitialized()) + + // Implements credentials.PerRPCCredentials so can be used as one + m, err := f.GetRequestMetadata(context.TODO(), "") + fmt.Println("GetRequestMetadata:", m, "Error:", err) + + // Materialize the value later and populate + tokenSource := DummyTestTokenSource{} + f.Store(NewCustomHeaderTokenSource(tokenSource, false, "my_custom_header")) + + // Future calls to credentials.PerRPCCredentials methods will use the new instance + m, err = f.GetRequestMetadata(context.TODO(), "") + fmt.Println("GetRequestMetadata:", m, "Error:", err) + + // Output: + // Initialized: false + // GetRequestMetadata: map[] Error: + // GetRequestMetadata: map[my_custom_header:Bearer abc] Error: +} diff --git a/flyteidl/clients/go/admin/auth_interceptor.go b/flyteidl/clients/go/admin/auth_interceptor.go new file mode 100644 index 0000000000..3403267847 --- /dev/null +++ b/flyteidl/clients/go/admin/auth_interceptor.go @@ -0,0 +1,104 @@ +package admin + +import ( + "context" + "fmt" + "net/http" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + "github.com/flyteorg/flytestdlib/logger" + "golang.org/x/oauth2" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + "google.golang.org/grpc" +) + +// MaterializeCredentials will attempt to build a TokenSource given the anonymously available information exposed by the server. +// Once established, it'll invoke PerRPCCredentialsFuture.Store() on perRPCCredentials to populate it with the appropriate values. +func MaterializeCredentials(ctx context.Context, cfg *Config, tokenCache cache.TokenCache, perRPCCredentials *PerRPCCredentialsFuture) error { + authMetadataClient, err := InitializeAuthMetadataClient(ctx, cfg) + if err != nil { + return fmt.Errorf("failed to initialized Auth Metadata Client. Error: %w", err) + } + + tokenSourceProvider, err := NewTokenSourceProvider(ctx, cfg, tokenCache, authMetadataClient) + if err != nil { + return fmt.Errorf("failed to initialized token source provider. Err: %w", err) + } + + authorizationMetadataKey := cfg.AuthorizationHeader + if len(authorizationMetadataKey) == 0 { + clientMetadata, err := authMetadataClient.GetPublicClientConfig(ctx, &service.PublicClientAuthConfigRequest{}) + if err != nil { + return fmt.Errorf("failed to fetch client metadata. Error: %v", err) + } + authorizationMetadataKey = clientMetadata.AuthorizationMetadataKey + } + + tokenSource, err := tokenSourceProvider.GetTokenSource(ctx) + if err != nil { + return err + } + + wrappedTokenSource := NewCustomHeaderTokenSource(tokenSource, cfg.UseInsecureConnection, authorizationMetadataKey) + perRPCCredentials.Store(wrappedTokenSource) + return nil +} + +func shouldAttemptToAuthenticate(errorCode codes.Code) bool { + return errorCode == codes.Unauthenticated +} + +// Set up http client used in oauth2 +func setHTTPClientContext(ctx context.Context, cfg *Config) context.Context { + httpClient := &http.Client{} + + if len(cfg.HTTPProxyURL.String()) > 0 { + // create a transport that uses the proxy + transport := &http.Transport{ + Proxy: http.ProxyURL(&cfg.HTTPProxyURL.URL), + } + httpClient.Transport = transport + } + + return context.WithValue(ctx, oauth2.HTTPClient, httpClient) +} + +// NewAuthInterceptor creates a new grpc.UnaryClientInterceptor that forwards the grpc call and inspects the error. +// It will first invoke the grpc pipeline (to proceed with the request) with no modifications. It's expected for the grpc +// pipeline to already have a grpc.WithPerRPCCredentials() DialOption. If the perRPCCredentials has already been initialized, +// it'll take care of refreshing when tokens expire... etc. +// If the first invocation succeeds (either due to grpc.PerRPCCredentials setting the right tokens or the server not +// requiring authentication), the interceptor will be no-op. +// If the first invocation fails with an auth error, this interceptor will then attempt to establish a token source once +// more. It'll fail hard if it couldn't do so (i.e. it will no longer attempt to send an unauthenticated request). Once +// a token source has been created, it'll invoke the grpc pipeline again, this time the grpc.PerRPCCredentials should +// be able to find and acquire a valid AccessToken to annotate the request with. +func NewAuthInterceptor(cfg *Config, tokenCache cache.TokenCache, credentialsFuture *PerRPCCredentialsFuture) grpc.UnaryClientInterceptor { + return func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { + ctx = setHTTPClientContext(ctx, cfg) + + err := invoker(ctx, method, req, reply, cc, opts...) + if err != nil { + logger.Debugf(ctx, "Request failed due to [%v]. If it's an unauthenticated error, we will attempt to establish an authenticated context.", err) + + if st, ok := status.FromError(err); ok { + // If the error we receive from executing the request expects + if shouldAttemptToAuthenticate(st.Code()) { + logger.Debugf(ctx, "Request failed due to [%v]. Attempting to establish an authenticated connection and trying again.", st.Code()) + newErr := MaterializeCredentials(ctx, cfg, tokenCache, credentialsFuture) + if newErr != nil { + return fmt.Errorf("authentication error! Original Error: %v, Auth Error: %w", err, newErr) + } + + return invoker(ctx, method, req, reply, cc, opts...) + } + } + } + + return err + } +} diff --git a/flyteidl/clients/go/admin/auth_interceptor_test.go b/flyteidl/clients/go/admin/auth_interceptor_test.go new file mode 100644 index 0000000000..d5e07a7131 --- /dev/null +++ b/flyteidl/clients/go/admin/auth_interceptor_test.go @@ -0,0 +1,283 @@ +package admin + +import ( + "context" + "errors" + "fmt" + "io" + "net" + "net/http" + "net/http/httptest" + "net/url" + "strings" + "sync" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "k8s.io/apimachinery/pkg/util/rand" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache/mocks" + adminMocks "github.com/flyteorg/flyteidl/clients/go/admin/mocks" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + "github.com/flyteorg/flytestdlib/config" + "github.com/flyteorg/flytestdlib/logger" +) + +// authMetadataServer is a fake AuthMetadataServer that takes in an AuthMetadataServer implementation (usually one +// initialized through mockery) and starts a local server that uses it to respond to grpc requests. +type authMetadataServer struct { + s *httptest.Server + t testing.TB + port int + grpcServer *grpc.Server + netListener net.Listener + impl service.AuthMetadataServiceServer + lck *sync.RWMutex +} + +func (s authMetadataServer) GetOAuth2Metadata(ctx context.Context, in *service.OAuth2MetadataRequest) (*service.OAuth2MetadataResponse, error) { + return s.impl.GetOAuth2Metadata(ctx, in) +} + +func (s authMetadataServer) GetPublicClientConfig(ctx context.Context, in *service.PublicClientAuthConfigRequest) (*service.PublicClientAuthConfigResponse, error) { + return s.impl.GetPublicClientConfig(ctx, in) +} + +func (s authMetadataServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { + var issuer string + switch r.URL.Path { + case "/.well-known/oauth-authorization-server": + w.Header().Set("Content-Type", "application/json") + _, err := io.WriteString(w, strings.ReplaceAll(`{ + "issuer": "https://dev-14186422.okta.com", + "authorization_endpoint": "https://example.com/auth", + "token_endpoint": "https://example.com/token", + "jwks_uri": "https://example.com/keys", + "id_token_signing_alg_values_supported": ["RS256"] + }`, "ISSUER", issuer)) + if !assert.NoError(s.t, err) { + s.t.FailNow() + } + + return + } + + http.NotFound(w, r) +} + +func (s *authMetadataServer) Start(_ context.Context) error { + s.lck.Lock() + defer s.lck.Unlock() + + /***** Set up the server serving channelz service. *****/ + lis, err := net.Listen("tcp", fmt.Sprintf("localhost:%d", s.port)) + if err != nil { + return fmt.Errorf("failed to listen on port [%v]: %w", s.port, err) + } + + grpcS := grpc.NewServer() + service.RegisterAuthMetadataServiceServer(grpcS, s) + go func() { + _ = grpcS.Serve(lis) + //assert.NoError(s.t, err) + }() + + s.grpcServer = grpcS + s.netListener = lis + + s.s = httptest.NewServer(s) + + return nil +} + +func (s *authMetadataServer) Close() { + s.lck.RLock() + defer s.lck.RUnlock() + + s.grpcServer.Stop() + s.s.Close() +} + +func newAuthMetadataServer(t testing.TB, port int, impl service.AuthMetadataServiceServer) *authMetadataServer { + return &authMetadataServer{ + port: port, + t: t, + impl: impl, + lck: &sync.RWMutex{}, + } +} + +func Test_newAuthInterceptor(t *testing.T) { + t.Run("Other Error", func(t *testing.T) { + f := NewPerRPCCredentialsFuture() + interceptor := NewAuthInterceptor(&Config{}, &mocks.TokenCache{}, f) + otherError := func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, opts ...grpc.CallOption) error { + return status.New(codes.Canceled, "").Err() + } + + assert.Error(t, interceptor(context.Background(), "POST", nil, nil, nil, otherError)) + }) + + t.Run("Unauthenticated first time, succeed the second time", func(t *testing.T) { + assert.NoError(t, logger.SetConfig(&logger.Config{ + Level: logger.DebugLevel, + })) + + port := rand.IntnRange(10000, 60000) + m := &adminMocks.AuthMetadataServiceServer{} + m.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(&service.OAuth2MetadataResponse{ + AuthorizationEndpoint: fmt.Sprintf("http://localhost:%d/oauth2/authorize", port), + TokenEndpoint: fmt.Sprintf("http://localhost:%d/oauth2/token", port), + JwksUri: fmt.Sprintf("http://localhost:%d/oauth2/jwks", port), + }, nil) + m.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(&service.PublicClientAuthConfigResponse{ + Scopes: []string{"all"}, + }, nil) + s := newAuthMetadataServer(t, port, m) + ctx := context.Background() + assert.NoError(t, s.Start(ctx)) + defer s.Close() + + u, err := url.Parse(fmt.Sprintf("dns:///localhost:%d", port)) + assert.NoError(t, err) + + f := NewPerRPCCredentialsFuture() + interceptor := NewAuthInterceptor(&Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypeClientSecret, + }, &mocks.TokenCache{}, f) + unauthenticated := func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, opts ...grpc.CallOption) error { + return status.New(codes.Unauthenticated, "").Err() + } + + err = interceptor(ctx, "POST", nil, nil, nil, unauthenticated) + assert.Error(t, err) + assert.Truef(t, f.IsInitialized(), "PerRPCCredentialFuture should be initialized") + assert.False(t, f.Get().RequireTransportSecurity(), "Insecure should be true leading to RequireTLS false") + }) + + t.Run("Already authenticated", func(t *testing.T) { + assert.NoError(t, logger.SetConfig(&logger.Config{ + Level: logger.DebugLevel, + })) + + port := rand.IntnRange(10000, 60000) + m := &adminMocks.AuthMetadataServiceServer{} + s := newAuthMetadataServer(t, port, m) + ctx := context.Background() + assert.NoError(t, s.Start(ctx)) + defer s.Close() + + u, err := url.Parse(fmt.Sprintf("dns:///localhost:%d", port)) + assert.NoError(t, err) + + f := NewPerRPCCredentialsFuture() + interceptor := NewAuthInterceptor(&Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypeClientSecret, + }, &mocks.TokenCache{}, f) + authenticated := func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, opts ...grpc.CallOption) error { + return nil + } + + err = interceptor(ctx, "POST", nil, nil, nil, authenticated) + assert.NoError(t, err) + assert.Falsef(t, f.IsInitialized(), "PerRPCCredentialFuture should not need to be initialized") + }) + + t.Run("Other error, doesn't authenticate", func(t *testing.T) { + assert.NoError(t, logger.SetConfig(&logger.Config{ + Level: logger.DebugLevel, + })) + + port := rand.IntnRange(10000, 60000) + m := &adminMocks.AuthMetadataServiceServer{} + m.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(&service.OAuth2MetadataResponse{ + AuthorizationEndpoint: fmt.Sprintf("http://localhost:%d/oauth2/authorize", port), + TokenEndpoint: fmt.Sprintf("http://localhost:%d/oauth2/token", port), + JwksUri: fmt.Sprintf("http://localhost:%d/oauth2/jwks", port), + }, nil) + m.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(&service.PublicClientAuthConfigResponse{ + Scopes: []string{"all"}, + }, nil) + + s := newAuthMetadataServer(t, port, m) + ctx := context.Background() + assert.NoError(t, s.Start(ctx)) + defer s.Close() + + u, err := url.Parse(fmt.Sprintf("dns:///localhost:%d", port)) + assert.NoError(t, err) + + f := NewPerRPCCredentialsFuture() + interceptor := NewAuthInterceptor(&Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypeClientSecret, + }, &mocks.TokenCache{}, f) + unauthenticated := func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, opts ...grpc.CallOption) error { + return status.New(codes.Aborted, "").Err() + } + + err = interceptor(ctx, "POST", nil, nil, nil, unauthenticated) + assert.Error(t, err) + assert.Falsef(t, f.IsInitialized(), "PerRPCCredentialFuture should not be initialized") + }) +} + +func TestMaterializeCredentials(t *testing.T) { + port := rand.IntnRange(10000, 60000) + t.Run("No oauth2 metadata endpoint or Public client config lookup", func(t *testing.T) { + m := &adminMocks.AuthMetadataServiceServer{} + m.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(nil, errors.New("unexpected call to get oauth2 metadata")) + m.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(nil, errors.New("unexpected call to get public client config")) + s := newAuthMetadataServer(t, port, m) + ctx := context.Background() + assert.NoError(t, s.Start(ctx)) + defer s.Close() + + u, err := url.Parse(fmt.Sprintf("dns:///localhost:%d", port)) + assert.NoError(t, err) + + f := NewPerRPCCredentialsFuture() + err = MaterializeCredentials(ctx, &Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypeClientSecret, + TokenURL: fmt.Sprintf("http://localhost:%d/api/v1/token", port), + Scopes: []string{"all"}, + Audience: "http://localhost:30081", + AuthorizationHeader: "authorization", + }, &mocks.TokenCache{}, f) + assert.NoError(t, err) + }) + t.Run("Failed to fetch client metadata", func(t *testing.T) { + m := &adminMocks.AuthMetadataServiceServer{} + m.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(nil, errors.New("unexpected call to get oauth2 metadata")) + failedPublicClientConfigLookup := errors.New("expected err") + m.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(nil, failedPublicClientConfigLookup) + s := newAuthMetadataServer(t, port, m) + ctx := context.Background() + assert.NoError(t, s.Start(ctx)) + defer s.Close() + + u, err := url.Parse(fmt.Sprintf("dns:///localhost:%d", port)) + assert.NoError(t, err) + + f := NewPerRPCCredentialsFuture() + err = MaterializeCredentials(ctx, &Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypeClientSecret, + TokenURL: fmt.Sprintf("http://localhost:%d/api/v1/token", port), + Scopes: []string{"all"}, + }, &mocks.TokenCache{}, f) + assert.EqualError(t, err, "failed to fetch client metadata. Error: rpc error: code = Unknown desc = expected err") + }) +} diff --git a/flyteidl/clients/go/admin/authtype_enumer.go b/flyteidl/clients/go/admin/authtype_enumer.go new file mode 100644 index 0000000000..33a816637e --- /dev/null +++ b/flyteidl/clients/go/admin/authtype_enumer.go @@ -0,0 +1,86 @@ +// Code generated by "enumer --type=AuthType -json -yaml -trimprefix=AuthType"; DO NOT EDIT. + +package admin + +import ( + "encoding/json" + "fmt" +) + +const _AuthTypeName = "ClientSecretPkceExternalCommandDeviceFlow" + +var _AuthTypeIndex = [...]uint8{0, 12, 16, 31, 41} + +func (i AuthType) String() string { + if i >= AuthType(len(_AuthTypeIndex)-1) { + return fmt.Sprintf("AuthType(%d)", i) + } + return _AuthTypeName[_AuthTypeIndex[i]:_AuthTypeIndex[i+1]] +} + +var _AuthTypeValues = []AuthType{0, 1, 2, 3} + +var _AuthTypeNameToValueMap = map[string]AuthType{ + _AuthTypeName[0:12]: 0, + _AuthTypeName[12:16]: 1, + _AuthTypeName[16:31]: 2, + _AuthTypeName[31:41]: 3, +} + +// AuthTypeString retrieves an enum value from the enum constants string name. +// Throws an error if the param is not part of the enum. +func AuthTypeString(s string) (AuthType, error) { + if val, ok := _AuthTypeNameToValueMap[s]; ok { + return val, nil + } + return 0, fmt.Errorf("%s does not belong to AuthType values", s) +} + +// AuthTypeValues returns all values of the enum +func AuthTypeValues() []AuthType { + return _AuthTypeValues +} + +// IsAAuthType returns "true" if the value is listed in the enum definition. "false" otherwise +func (i AuthType) IsAAuthType() bool { + for _, v := range _AuthTypeValues { + if i == v { + return true + } + } + return false +} + +// MarshalJSON implements the json.Marshaler interface for AuthType +func (i AuthType) MarshalJSON() ([]byte, error) { + return json.Marshal(i.String()) +} + +// UnmarshalJSON implements the json.Unmarshaler interface for AuthType +func (i *AuthType) UnmarshalJSON(data []byte) error { + var s string + if err := json.Unmarshal(data, &s); err != nil { + return fmt.Errorf("AuthType should be a string, got %s", data) + } + + var err error + *i, err = AuthTypeString(s) + return err +} + +// MarshalYAML implements a YAML Marshaler for AuthType +func (i AuthType) MarshalYAML() (interface{}, error) { + return i.String(), nil +} + +// UnmarshalYAML implements a YAML Unmarshaler for AuthType +func (i *AuthType) UnmarshalYAML(unmarshal func(interface{}) error) error { + var s string + if err := unmarshal(&s); err != nil { + return err + } + + var err error + *i, err = AuthTypeString(s) + return err +} diff --git a/flyteidl/clients/go/admin/cache/mocks/token_cache.go b/flyteidl/clients/go/admin/cache/mocks/token_cache.go new file mode 100644 index 0000000000..0af58b381f --- /dev/null +++ b/flyteidl/clients/go/admin/cache/mocks/token_cache.go @@ -0,0 +1,86 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + mock "github.com/stretchr/testify/mock" + oauth2 "golang.org/x/oauth2" +) + +// TokenCache is an autogenerated mock type for the TokenCache type +type TokenCache struct { + mock.Mock +} + +type TokenCache_GetToken struct { + *mock.Call +} + +func (_m TokenCache_GetToken) Return(_a0 *oauth2.Token, _a1 error) *TokenCache_GetToken { + return &TokenCache_GetToken{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *TokenCache) OnGetToken() *TokenCache_GetToken { + c_call := _m.On("GetToken") + return &TokenCache_GetToken{Call: c_call} +} + +func (_m *TokenCache) OnGetTokenMatch(matchers ...interface{}) *TokenCache_GetToken { + c_call := _m.On("GetToken", matchers...) + return &TokenCache_GetToken{Call: c_call} +} + +// GetToken provides a mock function with given fields: +func (_m *TokenCache) GetToken() (*oauth2.Token, error) { + ret := _m.Called() + + var r0 *oauth2.Token + if rf, ok := ret.Get(0).(func() *oauth2.Token); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oauth2.Token) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type TokenCache_SaveToken struct { + *mock.Call +} + +func (_m TokenCache_SaveToken) Return(_a0 error) *TokenCache_SaveToken { + return &TokenCache_SaveToken{Call: _m.Call.Return(_a0)} +} + +func (_m *TokenCache) OnSaveToken(token *oauth2.Token) *TokenCache_SaveToken { + c_call := _m.On("SaveToken", token) + return &TokenCache_SaveToken{Call: c_call} +} + +func (_m *TokenCache) OnSaveTokenMatch(matchers ...interface{}) *TokenCache_SaveToken { + c_call := _m.On("SaveToken", matchers...) + return &TokenCache_SaveToken{Call: c_call} +} + +// SaveToken provides a mock function with given fields: token +func (_m *TokenCache) SaveToken(token *oauth2.Token) error { + ret := _m.Called(token) + + var r0 error + if rf, ok := ret.Get(0).(func(*oauth2.Token) error); ok { + r0 = rf(token) + } else { + r0 = ret.Error(0) + } + + return r0 +} diff --git a/flyteidl/clients/go/admin/cache/token_cache.go b/flyteidl/clients/go/admin/cache/token_cache.go new file mode 100644 index 0000000000..e4e2b7e17f --- /dev/null +++ b/flyteidl/clients/go/admin/cache/token_cache.go @@ -0,0 +1,14 @@ +package cache + +import "golang.org/x/oauth2" + +//go:generate mockery -all -case=underscore + +// TokenCache defines the interface needed to cache and retrieve oauth tokens. +type TokenCache interface { + // SaveToken saves the token securely to cache. + SaveToken(token *oauth2.Token) error + + // Retrieves the token from the cache. + GetToken() (*oauth2.Token, error) +} diff --git a/flyteidl/clients/go/admin/cache/token_cache_inmemory.go b/flyteidl/clients/go/admin/cache/token_cache_inmemory.go new file mode 100644 index 0000000000..9c6223fc06 --- /dev/null +++ b/flyteidl/clients/go/admin/cache/token_cache_inmemory.go @@ -0,0 +1,24 @@ +package cache + +import ( + "fmt" + + "golang.org/x/oauth2" +) + +type TokenCacheInMemoryProvider struct { + token *oauth2.Token +} + +func (t *TokenCacheInMemoryProvider) SaveToken(token *oauth2.Token) error { + t.token = token + return nil +} + +func (t TokenCacheInMemoryProvider) GetToken() (*oauth2.Token, error) { + if t.token == nil { + return nil, fmt.Errorf("cannot find token in cache") + } + + return t.token, nil +} diff --git a/flyteidl/clients/go/admin/cert_loader.go b/flyteidl/clients/go/admin/cert_loader.go new file mode 100644 index 0000000000..2c17c60ee2 --- /dev/null +++ b/flyteidl/clients/go/admin/cert_loader.go @@ -0,0 +1,22 @@ +package admin + +import ( + "fmt" + "io/ioutil" + + "crypto/x509" +) + +// readCACerts from the passed in file at certLoc and return certpool. +func readCACerts(certLoc string) (*x509.CertPool, error) { + rootPEM, err := ioutil.ReadFile(certLoc) + if err != nil { + return nil, fmt.Errorf("unable to read from %v file due to %v", certLoc, err) + } + rootCertPool := x509.NewCertPool() + ok := rootCertPool.AppendCertsFromPEM(rootPEM) + if !ok { + return nil, fmt.Errorf("failed to parse root certificate file %v due to %v", certLoc, err) + } + return rootCertPool, err +} diff --git a/flyteidl/clients/go/admin/cert_loader_test.go b/flyteidl/clients/go/admin/cert_loader_test.go new file mode 100644 index 0000000000..ea0ff19c2e --- /dev/null +++ b/flyteidl/clients/go/admin/cert_loader_test.go @@ -0,0 +1,28 @@ +package admin + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestReadCACerts(t *testing.T) { + + t.Run("legal", func(t *testing.T) { + x509Pool, err := readCACerts("testdata/root.pem") + assert.NoError(t, err) + assert.NotNil(t, x509Pool) + }) + + t.Run("illegal", func(t *testing.T) { + x509Pool, err := readCACerts("testdata/invalid-root.pem") + assert.NotNil(t, err) + assert.Nil(t, x509Pool) + }) + + t.Run("non-existent", func(t *testing.T) { + x509Pool, err := readCACerts("testdata/non-existent.pem") + assert.NotNil(t, err) + assert.Nil(t, x509Pool) + }) +} diff --git a/flyteidl/clients/go/admin/client.go b/flyteidl/clients/go/admin/client.go new file mode 100644 index 0000000000..830c86fe89 --- /dev/null +++ b/flyteidl/clients/go/admin/client.go @@ -0,0 +1,223 @@ +package admin + +import ( + "context" + "crypto/tls" + "crypto/x509" + "errors" + "fmt" + + grpcRetry "github.com/grpc-ecosystem/go-grpc-middleware/retry" + grpcPrometheus "github.com/grpc-ecosystem/go-grpc-prometheus" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials" + "google.golang.org/grpc/health/grpc_health_v1" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + "github.com/flyteorg/flyteidl/clients/go/admin/mocks" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + "github.com/flyteorg/flytestdlib/logger" +) + +// IDE "Go Generate File". This will create a mocks/AdminServiceClient.go file +//go:generate mockery -dir ../../../gen/pb-go/flyteidl/service -name AdminServiceClient -output ../admin/mocks + +// Clientset contains the clients exposed to communicate with various admin services. +type Clientset struct { + adminServiceClient service.AdminServiceClient + authMetadataServiceClient service.AuthMetadataServiceClient + healthServiceClient grpc_health_v1.HealthClient + identityServiceClient service.IdentityServiceClient + dataProxyServiceClient service.DataProxyServiceClient + signalServiceClient service.SignalServiceClient +} + +// AdminClient retrieves the AdminServiceClient +func (c Clientset) AdminClient() service.AdminServiceClient { + return c.adminServiceClient +} + +// AuthMetadataClient retrieves the AuthMetadataServiceClient +func (c Clientset) AuthMetadataClient() service.AuthMetadataServiceClient { + return c.authMetadataServiceClient +} + +// HealthServiceClient retrieves the grpc_health_v1.HealthClient +func (c Clientset) HealthServiceClient() grpc_health_v1.HealthClient { + return c.healthServiceClient +} + +func (c Clientset) IdentityClient() service.IdentityServiceClient { + return c.identityServiceClient +} + +func (c Clientset) DataProxyClient() service.DataProxyServiceClient { + return c.dataProxyServiceClient +} + +func (c Clientset) SignalServiceClient() service.SignalServiceClient { + return c.signalServiceClient +} + +func NewAdminClient(ctx context.Context, conn *grpc.ClientConn) service.AdminServiceClient { + logger.Infof(ctx, "Initialized Admin client") + return service.NewAdminServiceClient(conn) +} + +func GetAdditionalAdminClientConfigOptions(cfg *Config) []grpc.DialOption { + opts := make([]grpc.DialOption, 0, 2) + backoffConfig := grpc.BackoffConfig{ + MaxDelay: cfg.MaxBackoffDelay.Duration, + } + + opts = append(opts, grpc.WithBackoffConfig(backoffConfig)) + + timeoutDialOption := grpcRetry.WithPerRetryTimeout(cfg.PerRetryTimeout.Duration) + maxRetriesOption := grpcRetry.WithMax(uint(cfg.MaxRetries)) + retryInterceptor := grpcRetry.UnaryClientInterceptor(timeoutDialOption, maxRetriesOption) + + // We only make unary calls in this client, no streaming calls. We can add a streaming interceptor if admin + // ever has those endpoints + opts = append(opts, grpc.WithChainUnaryInterceptor(grpcPrometheus.UnaryClientInterceptor, retryInterceptor)) + + return opts +} + +// This retrieves a DialOption that contains a source for generating JWTs for authentication with Flyte Admin. If +// the token endpoint is set in the config, that will be used, otherwise it'll attempt to make a metadata call. +func getAuthenticationDialOption(ctx context.Context, cfg *Config, tokenSourceProvider TokenSourceProvider, + authClient service.AuthMetadataServiceClient) (grpc.DialOption, error) { + if tokenSourceProvider == nil { + return nil, errors.New("can't create authenticated channel without a TokenSourceProvider") + } + + authorizationMetadataKey := cfg.AuthorizationHeader + if len(authorizationMetadataKey) == 0 { + clientMetadata, err := authClient.GetPublicClientConfig(ctx, &service.PublicClientAuthConfigRequest{}) + if err != nil { + return nil, fmt.Errorf("failed to fetch client metadata. Error: %v", err) + } + authorizationMetadataKey = clientMetadata.AuthorizationMetadataKey + } + + tokenSource, err := tokenSourceProvider.GetTokenSource(ctx) + if err != nil { + return nil, err + } + + wrappedTokenSource := NewCustomHeaderTokenSource(tokenSource, cfg.UseInsecureConnection, authorizationMetadataKey) + return grpc.WithPerRPCCredentials(wrappedTokenSource), nil +} + +// InitializeAuthMetadataClient creates a new anonymously Auth Metadata Service client. +func InitializeAuthMetadataClient(ctx context.Context, cfg *Config) (client service.AuthMetadataServiceClient, err error) { + // Create an unauthenticated connection to fetch AuthMetadata + authMetadataConnection, err := NewAdminConnection(ctx, cfg) + if err != nil { + return nil, fmt.Errorf("failed to initialized admin connection. Error: %w", err) + } + + return service.NewAuthMetadataServiceClient(authMetadataConnection), nil +} + +func NewAdminConnection(ctx context.Context, cfg *Config, opts ...grpc.DialOption) (*grpc.ClientConn, error) { + if opts == nil { + // Initialize opts list to the potential number of options we will add. Initialization optimizes memory + // allocation. + opts = make([]grpc.DialOption, 0, 5) + } + + if cfg.UseInsecureConnection { + opts = append(opts, grpc.WithInsecure()) + } else { + var creds credentials.TransportCredentials + var caCerts *x509.CertPool + var err error + tlsConfig := &tls.Config{} //nolint + // Use the cacerts passed in from the config parameter + if len(cfg.CACertFilePath) > 0 { + caCerts, err = readCACerts(cfg.CACertFilePath) + if err != nil { + return nil, err + } + } + if cfg.InsecureSkipVerify { + logger.Warnf(ctx, "using insecureSkipVerify. Server's certificate chain and host name wont be verified. Caution : shouldn't be used for production usecases") + tlsConfig.InsecureSkipVerify = true + creds = credentials.NewTLS(tlsConfig) + } else { + creds = credentials.NewClientTLSFromCert(caCerts, "") + } + opts = append(opts, grpc.WithTransportCredentials(creds)) + } + + opts = append(opts, GetAdditionalAdminClientConfigOptions(cfg)...) + + return grpc.Dial(cfg.Endpoint.String(), opts...) +} + +// InitializeAdminClient creates an AdminClient with a shared Admin connection for the process +// Deprecated: Please use initializeClients instead. +func InitializeAdminClient(ctx context.Context, cfg *Config, opts ...grpc.DialOption) service.AdminServiceClient { + set, err := initializeClients(ctx, cfg, nil, opts...) + if err != nil { + logger.Panicf(ctx, "Failed to initialized client. Error: %v", err) + return nil + } + + return set.AdminClient() +} + +// initializeClients creates an AdminClient, AuthServiceClient and IdentityServiceClient with a shared Admin connection +// for the process. Note that if called with different cfg/dialoptions, it will not refresh the connection. +func initializeClients(ctx context.Context, cfg *Config, tokenCache cache.TokenCache, opts ...grpc.DialOption) (*Clientset, error) { + credentialsFuture := NewPerRPCCredentialsFuture() + opts = append(opts, + grpc.WithChainUnaryInterceptor(NewAuthInterceptor(cfg, tokenCache, credentialsFuture)), + grpc.WithPerRPCCredentials(credentialsFuture)) + + if cfg.DefaultServiceConfig != "" { + opts = append(opts, grpc.WithDefaultServiceConfig(cfg.DefaultServiceConfig)) + } + + adminConnection, err := NewAdminConnection(ctx, cfg, opts...) + if err != nil { + logger.Panicf(ctx, "failed to initialized Admin connection. Err: %s", err.Error()) + } + + var cs Clientset + cs.adminServiceClient = NewAdminClient(ctx, adminConnection) + cs.authMetadataServiceClient = service.NewAuthMetadataServiceClient(adminConnection) + cs.identityServiceClient = service.NewIdentityServiceClient(adminConnection) + cs.healthServiceClient = grpc_health_v1.NewHealthClient(adminConnection) + cs.dataProxyServiceClient = service.NewDataProxyServiceClient(adminConnection) + cs.signalServiceClient = service.NewSignalServiceClient(adminConnection) + + return &cs, nil +} + +// Deprecated: Please use NewClientsetBuilder() instead. +func InitializeAdminClientFromConfig(ctx context.Context, tokenCache cache.TokenCache, opts ...grpc.DialOption) (service.AdminServiceClient, error) { + clientSet, err := initializeClients(ctx, GetConfig(ctx), tokenCache, opts...) + if err != nil { + return nil, err + } + + return clientSet.AdminClient(), nil +} + +func InitializeMockAdminClient() service.AdminServiceClient { + logger.Infof(context.TODO(), "Initialized Mock Admin client") + return &mocks.AdminServiceClient{} +} + +func InitializeMockClientset() *Clientset { + logger.Infof(context.TODO(), "Initialized Mock Clientset") + return &Clientset{ + adminServiceClient: &mocks.AdminServiceClient{}, + authMetadataServiceClient: &mocks.AuthMetadataServiceClient{}, + identityServiceClient: &mocks.IdentityServiceClient{}, + dataProxyServiceClient: &mocks.DataProxyServiceClient{}, + healthServiceClient: grpc_health_v1.NewHealthClient(nil), + } +} diff --git a/flyteidl/clients/go/admin/client_builder.go b/flyteidl/clients/go/admin/client_builder.go new file mode 100644 index 0000000000..a164807399 --- /dev/null +++ b/flyteidl/clients/go/admin/client_builder.go @@ -0,0 +1,55 @@ +package admin + +import ( + "context" + + "google.golang.org/grpc" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" +) + +// ClientsetBuilder is used to build the clientset. This allows custom token cache implementations to be plugged in. +type ClientsetBuilder struct { + config *Config + tokenCache cache.TokenCache + opts []grpc.DialOption +} + +// ClientSetBuilder is constructor function to be used by the clients in interacting with the builder +func ClientSetBuilder() *ClientsetBuilder { + return &ClientsetBuilder{} +} + +// WithConfig provides the admin config to be used for constructing the clientset +func (cb *ClientsetBuilder) WithConfig(config *Config) *ClientsetBuilder { + cb.config = config + return cb +} + +// WithTokenCache allows pluggable token cache implemetations. eg; flytectl uses keyring as tokenCache +func (cb *ClientsetBuilder) WithTokenCache(tokenCache cache.TokenCache) *ClientsetBuilder { + cb.tokenCache = tokenCache + return cb +} + +func (cb *ClientsetBuilder) WithDialOptions(opts ...grpc.DialOption) *ClientsetBuilder { + cb.opts = opts + return cb +} + +// Build the clientset using the current state of the ClientsetBuilder +func (cb *ClientsetBuilder) Build(ctx context.Context) (*Clientset, error) { + if cb.tokenCache == nil { + cb.tokenCache = &cache.TokenCacheInMemoryProvider{} + } + + if cb.config == nil { + cb.config = GetConfig(ctx) + } + + return initializeClients(ctx, cb.config, cb.tokenCache, cb.opts...) +} + +func NewClientsetBuilder() *ClientsetBuilder { + return &ClientsetBuilder{} +} diff --git a/flyteidl/clients/go/admin/client_builder_test.go b/flyteidl/clients/go/admin/client_builder_test.go new file mode 100644 index 0000000000..1067579b45 --- /dev/null +++ b/flyteidl/clients/go/admin/client_builder_test.go @@ -0,0 +1,20 @@ +package admin + +import ( + "context" + "reflect" + "testing" + + "github.com/stretchr/testify/assert" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" +) + +func TestClientsetBuilder_Build(t *testing.T) { + cb := NewClientsetBuilder().WithConfig(&Config{ + UseInsecureConnection: true, + }).WithTokenCache(&cache.TokenCacheInMemoryProvider{}) + _, err := cb.Build(context.Background()) + assert.NoError(t, err) + assert.True(t, reflect.TypeOf(cb.tokenCache) == reflect.TypeOf(&cache.TokenCacheInMemoryProvider{})) +} diff --git a/flyteidl/clients/go/admin/client_test.go b/flyteidl/clients/go/admin/client_test.go new file mode 100644 index 0000000000..017f4e8ff8 --- /dev/null +++ b/flyteidl/clients/go/admin/client_test.go @@ -0,0 +1,360 @@ +package admin + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "io/ioutil" + "net/http" + "net/url" + "os" + "testing" + "time" + + "github.com/jinzhu/copier" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + "golang.org/x/oauth2" + _ "google.golang.org/grpc/balancer/roundrobin" //nolint + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + cachemocks "github.com/flyteorg/flyteidl/clients/go/admin/cache/mocks" + "github.com/flyteorg/flyteidl/clients/go/admin/mocks" + "github.com/flyteorg/flyteidl/clients/go/admin/oauth" + "github.com/flyteorg/flyteidl/clients/go/admin/pkce" + "github.com/flyteorg/flyteidl/clients/go/admin/tokenorchestrator" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + "github.com/flyteorg/flytestdlib/config" + "github.com/flyteorg/flytestdlib/logger" +) + +func TestInitializeAndGetAdminClient(t *testing.T) { + + ctx := context.TODO() + t.Run("legal", func(t *testing.T) { + u, err := url.Parse("http://localhost:8089") + assert.NoError(t, err) + assert.NotNil(t, InitializeAdminClient(ctx, &Config{ + Endpoint: config.URL{URL: *u}, + })) + }) +} + +func TestInitializeMockClientset(t *testing.T) { + c := InitializeMockClientset() + assert.NotNil(t, c) + assert.NotNil(t, c.adminServiceClient) + assert.NotNil(t, c.authMetadataServiceClient) +} + +func TestInitializeMockAdminClient(t *testing.T) { + c := InitializeMockAdminClient() + assert.NotNil(t, c) +} + +func TestGetAdditionalAdminClientConfigOptions(t *testing.T) { + u, _ := url.Parse("localhost:8089") + adminServiceConfig := &Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + PerRetryTimeout: config.Duration{Duration: 1 * time.Second}, + } + + assert.NoError(t, SetConfig(adminServiceConfig)) + + ctx := context.Background() + t.Run("legal", func(t *testing.T) { + u, err := url.Parse("http://localhost:8089") + assert.NoError(t, err) + clientSet, err := ClientSetBuilder().WithConfig(&Config{Endpoint: config.URL{URL: *u}}).Build(ctx) + assert.NoError(t, err) + assert.NotNil(t, clientSet) + assert.NotNil(t, clientSet.AdminClient()) + assert.NotNil(t, clientSet.AuthMetadataClient()) + assert.NotNil(t, clientSet.IdentityClient()) + assert.NotNil(t, clientSet.HealthServiceClient()) + }) + + t.Run("legal-from-config", func(t *testing.T) { + clientSet, err := initializeClients(ctx, &Config{InsecureSkipVerify: true}, nil) + assert.NoError(t, err) + assert.NotNil(t, clientSet) + assert.NotNil(t, clientSet.AuthMetadataClient()) + assert.NotNil(t, clientSet.AdminClient()) + assert.NotNil(t, clientSet.HealthServiceClient()) + }) + t.Run("legal-from-config-with-cacerts", func(t *testing.T) { + clientSet, err := initializeClients(ctx, &Config{CACertFilePath: "testdata/root.pem"}, nil) + assert.NoError(t, err) + assert.NotNil(t, clientSet) + assert.NotNil(t, clientSet.AuthMetadataClient()) + assert.NotNil(t, clientSet.AdminClient()) + }) + t.Run("legal-from-config-with-invalid-cacerts", func(t *testing.T) { + defer func() { + if r := recover(); r == nil { + t.Errorf("The code did not panic") + } + }() + newAdminServiceConfig := &Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: false, + CACertFilePath: "testdata/non-existent.pem", + PerRetryTimeout: config.Duration{Duration: 1 * time.Second}, + } + + assert.NoError(t, SetConfig(newAdminServiceConfig)) + clientSet, err := initializeClients(ctx, newAdminServiceConfig, nil) + assert.NotNil(t, err) + assert.Nil(t, clientSet) + }) +} + +func TestGetAuthenticationDialOptionClientSecret(t *testing.T) { + ctx := context.Background() + + u, _ := url.Parse("localhost:8089") + adminServiceConfig := &Config{ + ClientSecretLocation: "testdata/secret_key", + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypeClientSecret, + PerRetryTimeout: config.Duration{Duration: 1 * time.Second}, + } + t.Run("legal", func(t *testing.T) { + metatdata := &service.OAuth2MetadataResponse{ + TokenEndpoint: "http://localhost:8089/token", + ScopesSupported: []string{"code", "all"}, + } + clientMetatadata := &service.PublicClientAuthConfigResponse{ + AuthorizationMetadataKey: "flyte_authorization", + } + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(metatdata, nil) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(clientMetatadata, nil) + dialOption, err := getAuthenticationDialOption(ctx, adminServiceConfig, nil, mockAuthClient) + assert.Nil(t, dialOption) + assert.NotNil(t, err) + }) + t.Run("legal-no-external-calls", func(t *testing.T) { + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(nil, errors.New("unexpected call to get oauth2 metadata")) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(nil, errors.New("unexpected call to get public client config")) + var adminCfg Config + err := copier.Copy(&adminCfg, adminServiceConfig) + assert.NoError(t, err) + adminCfg.TokenURL = "http://localhost:1000/api/v1/token" + adminCfg.Scopes = []string{"all"} + adminCfg.AuthorizationHeader = "authorization" + dialOption, err := getAuthenticationDialOption(ctx, &adminCfg, nil, mockAuthClient) + assert.Nil(t, dialOption) + assert.NotNil(t, err) + }) + t.Run("error during oauth2Metatdata", func(t *testing.T) { + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(nil, fmt.Errorf("failed")) + dialOption, err := getAuthenticationDialOption(ctx, adminServiceConfig, nil, mockAuthClient) + assert.Nil(t, dialOption) + assert.NotNil(t, err) + }) + t.Run("error during public client config", func(t *testing.T) { + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(nil, errors.New("unexpected call to get oauth2 metadata")) + failedPublicClientConfigLookup := errors.New("expected err") + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(nil, failedPublicClientConfigLookup) + var adminCfg Config + err := copier.Copy(&adminCfg, adminServiceConfig) + assert.NoError(t, err) + adminCfg.TokenURL = "http://localhost:1000/api/v1/token" + adminCfg.Scopes = []string{"all"} + tokenProvider := ClientCredentialsTokenSourceProvider{} + dialOption, err := getAuthenticationDialOption(ctx, &adminCfg, tokenProvider, mockAuthClient) + assert.Nil(t, dialOption) + assert.EqualError(t, err, "failed to fetch client metadata. Error: expected err") + }) + t.Run("error during flyte client", func(t *testing.T) { + metatdata := &service.OAuth2MetadataResponse{ + TokenEndpoint: "/token", + ScopesSupported: []string{"code", "all"}, + } + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(metatdata, nil) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(nil, fmt.Errorf("failed")) + dialOption, err := getAuthenticationDialOption(ctx, adminServiceConfig, nil, mockAuthClient) + assert.Nil(t, dialOption) + assert.NotNil(t, err) + }) + incorrectSecretLocConfig := &Config{ + ClientSecretLocation: "testdata/secret_key_invalid", + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypeClientSecret, + PerRetryTimeout: config.Duration{Duration: 1 * time.Second}, + } + t.Run("incorrect client secret loc", func(t *testing.T) { + metatdata := &service.OAuth2MetadataResponse{ + TokenEndpoint: "http://localhost:8089/token", + ScopesSupported: []string{"code", "all"}, + } + clientMetatadata := &service.PublicClientAuthConfigResponse{ + AuthorizationMetadataKey: "flyte_authorization", + } + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(metatdata, nil) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(clientMetatadata, nil) + dialOption, err := getAuthenticationDialOption(ctx, incorrectSecretLocConfig, nil, mockAuthClient) + assert.Nil(t, dialOption) + assert.NotNil(t, err) + }) +} + +func TestGetAuthenticationDialOptionPkce(t *testing.T) { + ctx := context.Background() + + u, _ := url.Parse("localhost:8089") + adminServiceConfig := &Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: true, + AuthType: AuthTypePkce, + PerRetryTimeout: config.Duration{Duration: 1 * time.Second}, + } + metatdata := &service.OAuth2MetadataResponse{ + TokenEndpoint: "http://localhost:8089/token", + ScopesSupported: []string{"code", "all"}, + } + clientMetatadata := &service.PublicClientAuthConfigResponse{ + AuthorizationMetadataKey: "flyte_authorization", + RedirectUri: "http://localhost:54545/callback", + } + http.DefaultServeMux = http.NewServeMux() + plan, _ := os.ReadFile("tokenorchestrator/testdata/token.json") + var tokenData oauth2.Token + err := json.Unmarshal(plan, &tokenData) + assert.NoError(t, err) + tokenData.Expiry = time.Now().Add(time.Minute) + t.Run("cache hit", func(t *testing.T) { + mockTokenCache := new(cachemocks.TokenCache) + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockTokenCache.OnGetTokenMatch().Return(&tokenData, nil) + mockTokenCache.OnSaveTokenMatch(mock.Anything).Return(nil) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(metatdata, nil) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(clientMetatadata, nil) + tokenSourceProvider, err := NewTokenSourceProvider(ctx, adminServiceConfig, mockTokenCache, mockAuthClient) + assert.Nil(t, err) + dialOption, err := getAuthenticationDialOption(ctx, adminServiceConfig, tokenSourceProvider, mockAuthClient) + assert.NotNil(t, dialOption) + assert.Nil(t, err) + }) + tokenData.Expiry = time.Now().Add(-time.Minute) + t.Run("cache miss auth failure", func(t *testing.T) { + mockTokenCache := new(cachemocks.TokenCache) + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockTokenCache.OnGetTokenMatch().Return(&tokenData, nil) + mockTokenCache.OnSaveTokenMatch(mock.Anything).Return(nil) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(metatdata, nil) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(clientMetatadata, nil) + tokenSourceProvider, err := NewTokenSourceProvider(ctx, adminServiceConfig, mockTokenCache, mockAuthClient) + assert.Nil(t, err) + dialOption, err := getAuthenticationDialOption(ctx, adminServiceConfig, tokenSourceProvider, mockAuthClient) + assert.Nil(t, dialOption) + assert.NotNil(t, err) + }) +} + +func Test_getPkceAuthTokenSource(t *testing.T) { + ctx := context.Background() + mockAuthClient := new(mocks.AuthMetadataServiceClient) + metatdata := &service.OAuth2MetadataResponse{ + TokenEndpoint: "http://localhost:8089/token", + ScopesSupported: []string{"code", "all"}, + } + + clientMetatadata := &service.PublicClientAuthConfigResponse{ + AuthorizationMetadataKey: "flyte_authorization", + RedirectUri: "http://localhost:54546/callback", + } + + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(metatdata, nil) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(clientMetatadata, nil) + + t.Run("cached token expired", func(t *testing.T) { + plan, _ := ioutil.ReadFile("tokenorchestrator/testdata/token.json") + var tokenData oauth2.Token + err := json.Unmarshal(plan, &tokenData) + assert.NoError(t, err) + + // populate the cache + tokenCache := &cache.TokenCacheInMemoryProvider{} + assert.NoError(t, tokenCache.SaveToken(&tokenData)) + + baseOrchestrator := tokenorchestrator.BaseTokenOrchestrator{ + ClientConfig: &oauth.Config{ + Config: &oauth2.Config{ + RedirectURL: "http://localhost:8089/redirect", + Scopes: []string{"code", "all"}, + }, + }, + TokenCache: tokenCache, + } + + orchestrator, err := pkce.NewTokenOrchestrator(baseOrchestrator, pkce.Config{}) + assert.NoError(t, err) + + http.DefaultServeMux = http.NewServeMux() + dialOption, err := GetPKCEAuthTokenSource(ctx, orchestrator) + assert.Nil(t, dialOption) + assert.Error(t, err) + }) +} + +func TestGetDefaultServiceConfig(t *testing.T) { + u, _ := url.Parse("localhost:8089") + adminServiceConfig := &Config{ + Endpoint: config.URL{URL: *u}, + DefaultServiceConfig: `{"loadBalancingConfig": [{"round_robin":{}}]}`, + } + + assert.NoError(t, SetConfig(adminServiceConfig)) + + ctx := context.Background() + t.Run("legal", func(t *testing.T) { + u, err := url.Parse("http://localhost:8089") + assert.NoError(t, err) + clientSet, err := ClientSetBuilder().WithConfig(&Config{Endpoint: config.URL{URL: *u}, DefaultServiceConfig: `{"loadBalancingConfig": [{"round_robin":{}}]}`}).Build(ctx) + assert.NoError(t, err) + assert.NotNil(t, clientSet) + assert.NotNil(t, clientSet.AdminClient()) + assert.NotNil(t, clientSet.AuthMetadataClient()) + assert.NotNil(t, clientSet.IdentityClient()) + assert.NotNil(t, clientSet.HealthServiceClient()) + }) + t.Run("illegal default service config", func(t *testing.T) { + defer func() { + if r := recover(); r == nil { + t.Errorf("The code did not panic") + } + }() + + u, err := url.Parse("http://localhost:8089") + assert.NoError(t, err) + clientSet, err := ClientSetBuilder().WithConfig(&Config{Endpoint: config.URL{URL: *u}, DefaultServiceConfig: `{"loadBalancingConfig": [{"foo":{}}]}`}).Build(ctx) + assert.Error(t, err) + assert.Nil(t, clientSet) + }) +} + +func ExampleClientSetBuilder() { + ctx := context.Background() + // Create a client set that initializes the connection with flyte admin and sets up Auth (if needed). + // See AuthType for a list of supported authentication types. + clientSet, err := NewClientsetBuilder().WithConfig(GetConfig(ctx)).Build(ctx) + if err != nil { + logger.Fatalf(ctx, "failed to initialized clientSet from config. Error: %v", err) + } + + // Access and use the desired client: + _ = clientSet.AdminClient() + _ = clientSet.AuthMetadataClient() + _ = clientSet.IdentityClient() +} diff --git a/flyteidl/clients/go/admin/config.go b/flyteidl/clients/go/admin/config.go new file mode 100644 index 0000000000..e6c5ad06df --- /dev/null +++ b/flyteidl/clients/go/admin/config.go @@ -0,0 +1,125 @@ +// Initializes an Admin Client that exposes all implemented services by FlyteAdmin server. The library supports different +// authentication flows (see AuthType). It initializes the grpc connection once and reuses it. A grpc load balancing policy +// can be configured as well. +package admin + +import ( + "context" + "path/filepath" + "time" + + "github.com/flyteorg/flyteidl/clients/go/admin/deviceflow" + "github.com/flyteorg/flyteidl/clients/go/admin/pkce" + "github.com/flyteorg/flytestdlib/config" + "github.com/flyteorg/flytestdlib/logger" +) + +//go:generate pflags Config --default-var=defaultConfig + +const ( + configSectionKey = "admin" + DefaultClientID = "flytepropeller" +) + +var DefaultClientSecretLocation = filepath.Join(string(filepath.Separator), "etc", "secrets", "client_secret") + +//go:generate enumer --type=AuthType -json -yaml -trimprefix=AuthType +type AuthType uint8 + +const ( + // AuthTypeClientSecret Chooses Client Secret OAuth2 protocol (ref: https://tools.ietf.org/html/rfc6749#section-4.4) + AuthTypeClientSecret AuthType = iota + // AuthTypePkce Chooses Proof Key Code Exchange OAuth2 extension protocol (ref: https://tools.ietf.org/html/rfc7636) + AuthTypePkce + // AuthTypeExternalCommand Chooses an external authentication process + AuthTypeExternalCommand + // AuthTypeDeviceFlow Uses device flow to authenticate in a constrained environment with no access to browser + AuthTypeDeviceFlow +) + +type Config struct { + Endpoint config.URL `json:"endpoint" pflag:",For admin types, specify where the uri of the service is located."` + UseInsecureConnection bool `json:"insecure" pflag:",Use insecure connection."` + InsecureSkipVerify bool `json:"insecureSkipVerify" pflag:",InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name. Caution : shouldn't be use for production usecases'"` + CACertFilePath string `json:"caCertFilePath" pflag:",Use specified certificate file to verify the admin server peer."` + MaxBackoffDelay config.Duration `json:"maxBackoffDelay" pflag:",Max delay for grpc backoff"` + PerRetryTimeout config.Duration `json:"perRetryTimeout" pflag:",gRPC per retry timeout"` + MaxRetries int `json:"maxRetries" pflag:",Max number of gRPC retries"` + AuthType AuthType `json:"authType" pflag:",Type of OAuth2 flow used for communicating with admin.ClientSecret,Pkce,ExternalCommand are valid values"` + TokenRefreshWindow config.Duration `json:"tokenRefreshWindow" pflag:",Max duration between token refresh attempt and token expiry."` + // Deprecated: settings will be discovered dynamically + DeprecatedUseAuth bool `json:"useAuth" pflag:",Deprecated: Auth will be enabled/disabled based on admin's dynamically discovered information."` + ClientID string `json:"clientId" pflag:",Client ID"` + ClientSecretLocation string `json:"clientSecretLocation" pflag:",File containing the client secret"` + ClientSecretEnvVar string `json:"clientSecretEnvVar" pflag:",Environment variable containing the client secret"` + Scopes []string `json:"scopes" pflag:",List of scopes to request"` + UseAudienceFromAdmin bool `json:"useAudienceFromAdmin" pflag:",Use Audience configured from admins public endpoint config."` + Audience string `json:"audience" pflag:",Audience to use when initiating OAuth2 authorization requests."` + + // There are two ways to get the token URL. If the authorization server url is provided, the client will try to use RFC 8414 to + // try to get the token URL. Or it can be specified directly through TokenURL config. + // Deprecated: This will now be discovered through admin's anonymously accessible metadata. + DeprecatedAuthorizationServerURL string `json:"authorizationServerUrl" pflag:",This is the URL to your IdP's authorization server. It'll default to Endpoint"` + // If not provided, it'll be discovered through admin's anonymously accessible metadata endpoint. + TokenURL string `json:"tokenUrl" pflag:",OPTIONAL: Your IdP's token endpoint. It'll be discovered from flyte admin's OAuth Metadata endpoint if not provided."` + + // See the implementation of the 'grpcAuthorizationHeader' option in Flyte Admin for more information. But + // basically we want to be able to use a different string to pass the token from this client to the the Admin service + // because things might be running in a service mesh (like Envoy) that already uses the default 'authorization' header + AuthorizationHeader string `json:"authorizationHeader" pflag:",Custom metadata header to pass JWT"` + + PkceConfig pkce.Config `json:"pkceConfig" pflag:",Config for Pkce authentication flow."` + + DeviceFlowConfig deviceflow.Config `json:"deviceFlowConfig" pflag:",Config for Device authentication flow."` + + Command []string `json:"command" pflag:",Command for external authentication token generation"` + + // Set the gRPC service config formatted as a json string https://github.com/grpc/grpc/blob/master/doc/service_config.md + // eg. {"loadBalancingConfig": [{"round_robin":{}}], "methodConfig": [{"name":[{"service": "foo", "method": "bar"}, {"service": "baz"}], "timeout": "1.000000001s"}]} + // find the full schema here https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto#L625 + // Note that required packages may need to be preloaded to support certain service config. For example "google.golang.org/grpc/balancer/roundrobin" should be preloaded to have round-robin policy supported. + DefaultServiceConfig string `json:"defaultServiceConfig" pdflag:",Set the default service config for the admin gRPC client"` + + // HTTPProxyURL allows operators to access external OAuth2 servers using an external HTTP Proxy + HTTPProxyURL config.URL `json:"httpProxyURL" pflag:",OPTIONAL: HTTP Proxy to be used for OAuth requests."` +} + +var ( + defaultConfig = Config{ + MaxBackoffDelay: config.Duration{Duration: 8 * time.Second}, + PerRetryTimeout: config.Duration{Duration: 15 * time.Second}, + MaxRetries: 4, + ClientID: DefaultClientID, + AuthType: AuthTypeClientSecret, + ClientSecretLocation: DefaultClientSecretLocation, + PkceConfig: pkce.Config{ + TokenRefreshGracePeriod: config.Duration{Duration: 5 * time.Minute}, + BrowserSessionTimeout: config.Duration{Duration: 2 * time.Minute}, + }, + DeviceFlowConfig: deviceflow.Config{ + TokenRefreshGracePeriod: config.Duration{Duration: 5 * time.Minute}, + Timeout: config.Duration{Duration: 10 * time.Minute}, + PollInterval: config.Duration{Duration: 5 * time.Second}, + }, + TokenRefreshWindow: config.Duration{Duration: 0}, + } + + configSection = config.MustRegisterSectionWithUpdates(configSectionKey, &defaultConfig, func(ctx context.Context, newValue config.Config) { + if newValue.(*Config).MaxRetries < 0 { + logger.Panicf(ctx, "Admin configuration given with negative gRPC retry value.") + } + }) +) + +func GetConfig(ctx context.Context) *Config { + if c, ok := configSection.GetConfig().(*Config); ok { + return c + } + + logger.Warnf(ctx, "Failed to retrieve config section [%v].", configSectionKey) + return nil +} + +func SetConfig(cfg *Config) error { + return configSection.SetConfig(cfg) +} diff --git a/flyteidl/clients/go/admin/config_flags.go b/flyteidl/clients/go/admin/config_flags.go new file mode 100755 index 0000000000..0472413b57 --- /dev/null +++ b/flyteidl/clients/go/admin/config_flags.go @@ -0,0 +1,81 @@ +// Code generated by go generate; DO NOT EDIT. +// This file was generated by robots. + +package admin + +import ( + "encoding/json" + "reflect" + + "fmt" + + "github.com/spf13/pflag" +) + +// If v is a pointer, it will get its element value or the zero value of the element type. +// If v is not a pointer, it will return it as is. +func (Config) elemValueOrNil(v interface{}) interface{} { + if t := reflect.TypeOf(v); t.Kind() == reflect.Ptr { + if reflect.ValueOf(v).IsNil() { + return reflect.Zero(t.Elem()).Interface() + } else { + return reflect.ValueOf(v).Interface() + } + } else if v == nil { + return reflect.Zero(t).Interface() + } + + return v +} + +func (Config) mustJsonMarshal(v interface{}) string { + raw, err := json.Marshal(v) + if err != nil { + panic(err) + } + + return string(raw) +} + +func (Config) mustMarshalJSON(v json.Marshaler) string { + raw, err := v.MarshalJSON() + if err != nil { + panic(err) + } + + return string(raw) +} + +// GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the +// flags is json-name.json-sub-name... etc. +func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { + cmdFlags := pflag.NewFlagSet("Config", pflag.ExitOnError) + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "endpoint"), defaultConfig.Endpoint.String(), "For admin types, specify where the uri of the service is located.") + cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "insecure"), defaultConfig.UseInsecureConnection, "Use insecure connection.") + cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "insecureSkipVerify"), defaultConfig.InsecureSkipVerify, "InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name. Caution : shouldn't be use for production usecases'") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "caCertFilePath"), defaultConfig.CACertFilePath, "Use specified certificate file to verify the admin server peer.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "maxBackoffDelay"), defaultConfig.MaxBackoffDelay.String(), "Max delay for grpc backoff") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "perRetryTimeout"), defaultConfig.PerRetryTimeout.String(), "gRPC per retry timeout") + cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "maxRetries"), defaultConfig.MaxRetries, "Max number of gRPC retries") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "authType"), defaultConfig.AuthType.String(), "Type of OAuth2 flow used for communicating with admin.ClientSecret, Pkce, ExternalCommand are valid values") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "tokenRefreshWindow"), defaultConfig.TokenRefreshWindow.String(), "Max duration between token refresh attempt and token expiry.") + cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "useAuth"), defaultConfig.DeprecatedUseAuth, "Deprecated: Auth will be enabled/disabled based on admin's dynamically discovered information.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "clientId"), defaultConfig.ClientID, "Client ID") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "clientSecretLocation"), defaultConfig.ClientSecretLocation, "File containing the client secret") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "clientSecretEnvVar"), defaultConfig.ClientSecretEnvVar, "Environment variable containing the client secret") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "scopes"), defaultConfig.Scopes, "List of scopes to request") + cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "useAudienceFromAdmin"), defaultConfig.UseAudienceFromAdmin, "Use Audience configured from admins public endpoint config.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "audience"), defaultConfig.Audience, "Audience to use when initiating OAuth2 authorization requests.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "authorizationServerUrl"), defaultConfig.DeprecatedAuthorizationServerURL, "This is the URL to your IdP's authorization server. It'll default to Endpoint") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "tokenUrl"), defaultConfig.TokenURL, "OPTIONAL: Your IdP's token endpoint. It'll be discovered from flyte admin's OAuth Metadata endpoint if not provided.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "authorizationHeader"), defaultConfig.AuthorizationHeader, "Custom metadata header to pass JWT") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "pkceConfig.timeout"), defaultConfig.PkceConfig.BrowserSessionTimeout.String(), "Amount of time the browser session would be active for authentication from client app.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "pkceConfig.refreshTime"), defaultConfig.PkceConfig.TokenRefreshGracePeriod.String(), "grace period from the token expiry after which it would refresh the token.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "deviceFlowConfig.refreshTime"), defaultConfig.DeviceFlowConfig.TokenRefreshGracePeriod.String(), "grace period from the token expiry after which it would refresh the token.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "deviceFlowConfig.timeout"), defaultConfig.DeviceFlowConfig.Timeout.String(), "amount of time the device flow should complete or else it will be cancelled.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "deviceFlowConfig.pollInterval"), defaultConfig.DeviceFlowConfig.PollInterval.String(), "amount of time the device flow would poll the token endpoint if auth server doesn't return a polling interval. Okta and google IDP do return an interval'") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "command"), defaultConfig.Command, "Command for external authentication token generation") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "defaultServiceConfig"), defaultConfig.DefaultServiceConfig, "") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "httpProxyURL"), defaultConfig.HTTPProxyURL.String(), "OPTIONAL: HTTP Proxy to be used for OAuth requests.") + return cmdFlags +} diff --git a/flyteidl/clients/go/admin/config_flags_test.go b/flyteidl/clients/go/admin/config_flags_test.go new file mode 100755 index 0000000000..1fb1e2a214 --- /dev/null +++ b/flyteidl/clients/go/admin/config_flags_test.go @@ -0,0 +1,480 @@ +// Code generated by go generate; DO NOT EDIT. +// This file was generated by robots. + +package admin + +import ( + "encoding/json" + "fmt" + "reflect" + "strings" + "testing" + + "github.com/mitchellh/mapstructure" + "github.com/stretchr/testify/assert" +) + +var dereferencableKindsConfig = map[reflect.Kind]struct{}{ + reflect.Array: {}, reflect.Chan: {}, reflect.Map: {}, reflect.Ptr: {}, reflect.Slice: {}, +} + +// Checks if t is a kind that can be dereferenced to get its underlying type. +func canGetElementConfig(t reflect.Kind) bool { + _, exists := dereferencableKindsConfig[t] + return exists +} + +// This decoder hook tests types for json unmarshaling capability. If implemented, it uses json unmarshal to build the +// object. Otherwise, it'll just pass on the original data. +func jsonUnmarshalerHookConfig(_, to reflect.Type, data interface{}) (interface{}, error) { + unmarshalerType := reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() + if to.Implements(unmarshalerType) || reflect.PtrTo(to).Implements(unmarshalerType) || + (canGetElementConfig(to.Kind()) && to.Elem().Implements(unmarshalerType)) { + + raw, err := json.Marshal(data) + if err != nil { + fmt.Printf("Failed to marshal Data: %v. Error: %v. Skipping jsonUnmarshalHook", data, err) + return data, nil + } + + res := reflect.New(to).Interface() + err = json.Unmarshal(raw, &res) + if err != nil { + fmt.Printf("Failed to umarshal Data: %v. Error: %v. Skipping jsonUnmarshalHook", data, err) + return data, nil + } + + return res, nil + } + + return data, nil +} + +func decode_Config(input, result interface{}) error { + config := &mapstructure.DecoderConfig{ + TagName: "json", + WeaklyTypedInput: true, + Result: result, + DecodeHook: mapstructure.ComposeDecodeHookFunc( + mapstructure.StringToTimeDurationHookFunc(), + mapstructure.StringToSliceHookFunc(","), + jsonUnmarshalerHookConfig, + ), + } + + decoder, err := mapstructure.NewDecoder(config) + if err != nil { + return err + } + + return decoder.Decode(input) +} + +func join_Config(arr interface{}, sep string) string { + listValue := reflect.ValueOf(arr) + strs := make([]string, 0, listValue.Len()) + for i := 0; i < listValue.Len(); i++ { + strs = append(strs, fmt.Sprintf("%v", listValue.Index(i))) + } + + return strings.Join(strs, sep) +} + +func testDecodeJson_Config(t *testing.T, val, result interface{}) { + assert.NoError(t, decode_Config(val, result)) +} + +func testDecodeRaw_Config(t *testing.T, vStringSlice, result interface{}) { + assert.NoError(t, decode_Config(vStringSlice, result)) +} + +func TestConfig_GetPFlagSet(t *testing.T) { + val := Config{} + cmdFlags := val.GetPFlagSet("") + assert.True(t, cmdFlags.HasFlags()) +} + +func TestConfig_SetFlags(t *testing.T) { + actual := Config{} + cmdFlags := actual.GetPFlagSet("") + assert.True(t, cmdFlags.HasFlags()) + + t.Run("Test_endpoint", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.Endpoint.String() + + cmdFlags.Set("endpoint", testValue) + if vString, err := cmdFlags.GetString("endpoint"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.Endpoint) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_insecure", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("insecure", testValue) + if vBool, err := cmdFlags.GetBool("insecure"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vBool), &actual.UseInsecureConnection) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_insecureSkipVerify", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("insecureSkipVerify", testValue) + if vBool, err := cmdFlags.GetBool("insecureSkipVerify"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vBool), &actual.InsecureSkipVerify) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_caCertFilePath", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("caCertFilePath", testValue) + if vString, err := cmdFlags.GetString("caCertFilePath"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.CACertFilePath) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_maxBackoffDelay", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.MaxBackoffDelay.String() + + cmdFlags.Set("maxBackoffDelay", testValue) + if vString, err := cmdFlags.GetString("maxBackoffDelay"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.MaxBackoffDelay) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_perRetryTimeout", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.PerRetryTimeout.String() + + cmdFlags.Set("perRetryTimeout", testValue) + if vString, err := cmdFlags.GetString("perRetryTimeout"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.PerRetryTimeout) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_maxRetries", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("maxRetries", testValue) + if vInt, err := cmdFlags.GetInt("maxRetries"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vInt), &actual.MaxRetries) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_authType", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("authType", testValue) + if vString, err := cmdFlags.GetString("authType"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.AuthType) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_tokenRefreshWindow", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.TokenRefreshWindow.String() + + cmdFlags.Set("tokenRefreshWindow", testValue) + if vString, err := cmdFlags.GetString("tokenRefreshWindow"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.TokenRefreshWindow) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_useAuth", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("useAuth", testValue) + if vBool, err := cmdFlags.GetBool("useAuth"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vBool), &actual.DeprecatedUseAuth) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_clientId", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("clientId", testValue) + if vString, err := cmdFlags.GetString("clientId"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.ClientID) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_clientSecretLocation", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("clientSecretLocation", testValue) + if vString, err := cmdFlags.GetString("clientSecretLocation"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.ClientSecretLocation) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_clientSecretEnvVar", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("clientSecretEnvVar", testValue) + if vString, err := cmdFlags.GetString("clientSecretEnvVar"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.ClientSecretEnvVar) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_scopes", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := join_Config(defaultConfig.Scopes, ",") + + cmdFlags.Set("scopes", testValue) + if vStringSlice, err := cmdFlags.GetStringSlice("scopes"); err == nil { + testDecodeRaw_Config(t, join_Config(vStringSlice, ","), &actual.Scopes) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_useAudienceFromAdmin", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("useAudienceFromAdmin", testValue) + if vBool, err := cmdFlags.GetBool("useAudienceFromAdmin"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vBool), &actual.UseAudienceFromAdmin) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_audience", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("audience", testValue) + if vString, err := cmdFlags.GetString("audience"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.Audience) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_authorizationServerUrl", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("authorizationServerUrl", testValue) + if vString, err := cmdFlags.GetString("authorizationServerUrl"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.DeprecatedAuthorizationServerURL) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_tokenUrl", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("tokenUrl", testValue) + if vString, err := cmdFlags.GetString("tokenUrl"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.TokenURL) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_authorizationHeader", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("authorizationHeader", testValue) + if vString, err := cmdFlags.GetString("authorizationHeader"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.AuthorizationHeader) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_pkceConfig.timeout", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.PkceConfig.BrowserSessionTimeout.String() + + cmdFlags.Set("pkceConfig.timeout", testValue) + if vString, err := cmdFlags.GetString("pkceConfig.timeout"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.PkceConfig.BrowserSessionTimeout) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_pkceConfig.refreshTime", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.PkceConfig.TokenRefreshGracePeriod.String() + + cmdFlags.Set("pkceConfig.refreshTime", testValue) + if vString, err := cmdFlags.GetString("pkceConfig.refreshTime"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.PkceConfig.TokenRefreshGracePeriod) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_deviceFlowConfig.refreshTime", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.DeviceFlowConfig.TokenRefreshGracePeriod.String() + + cmdFlags.Set("deviceFlowConfig.refreshTime", testValue) + if vString, err := cmdFlags.GetString("deviceFlowConfig.refreshTime"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.DeviceFlowConfig.TokenRefreshGracePeriod) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_deviceFlowConfig.timeout", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.DeviceFlowConfig.Timeout.String() + + cmdFlags.Set("deviceFlowConfig.timeout", testValue) + if vString, err := cmdFlags.GetString("deviceFlowConfig.timeout"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.DeviceFlowConfig.Timeout) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_deviceFlowConfig.pollInterval", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.DeviceFlowConfig.PollInterval.String() + + cmdFlags.Set("deviceFlowConfig.pollInterval", testValue) + if vString, err := cmdFlags.GetString("deviceFlowConfig.pollInterval"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.DeviceFlowConfig.PollInterval) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_command", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := join_Config(defaultConfig.Command, ",") + + cmdFlags.Set("command", testValue) + if vStringSlice, err := cmdFlags.GetStringSlice("command"); err == nil { + testDecodeRaw_Config(t, join_Config(vStringSlice, ","), &actual.Command) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_defaultServiceConfig", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("defaultServiceConfig", testValue) + if vString, err := cmdFlags.GetString("defaultServiceConfig"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.DefaultServiceConfig) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_httpProxyURL", func(t *testing.T) { + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.HTTPProxyURL.String() + + cmdFlags.Set("httpProxyURL", testValue) + if vString, err := cmdFlags.GetString("httpProxyURL"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.HTTPProxyURL) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) +} diff --git a/flyteidl/clients/go/admin/deviceflow/config.go b/flyteidl/clients/go/admin/deviceflow/config.go new file mode 100644 index 0000000000..4699cd6996 --- /dev/null +++ b/flyteidl/clients/go/admin/deviceflow/config.go @@ -0,0 +1,10 @@ +package deviceflow + +import "github.com/flyteorg/flytestdlib/config" + +// Config defines settings used for Device orchestration flow. +type Config struct { + TokenRefreshGracePeriod config.Duration `json:"refreshTime" pflag:",grace period from the token expiry after which it would refresh the token."` + Timeout config.Duration `json:"timeout" pflag:",amount of time the device flow should complete or else it will be cancelled."` + PollInterval config.Duration `json:"pollInterval" pflag:",amount of time the device flow would poll the token endpoint if auth server doesn't return a polling interval. Okta and google IDP do return an interval'"` +} diff --git a/flyteidl/clients/go/admin/deviceflow/payload.go b/flyteidl/clients/go/admin/deviceflow/payload.go new file mode 100644 index 0000000000..656e1a88d8 --- /dev/null +++ b/flyteidl/clients/go/admin/deviceflow/payload.go @@ -0,0 +1,44 @@ +package deviceflow + +import "golang.org/x/oauth2" + +// DeviceAuthorizationRequest sent to authorization server directly from the client app +type DeviceAuthorizationRequest struct { + // ClientID is the client identifier issued to the client during the registration process of OAuth app with the authorization server + ClientID string `json:"client_id"` + // Scope is the scope parameter of the access request + Scope string `json:"scope"` + // Audience defines at which endpoints the token can be used. + Audience string `json:"audience"` +} + +// DeviceAuthorizationResponse contains the information that the end user would use to authorize the app requesting the +// resource access. +type DeviceAuthorizationResponse struct { + // DeviceCode unique device code generated by the authorization server. + DeviceCode string `json:"device_code"` + // UserCode unique code generated for the user to enter on another device + UserCode string `json:"user_code"` + // VerificationURI url endpoint of the authorization server which host the device and app verification + VerificationURI string `json:"verification_uri"` + // VerificationURIComplete url endpoint of the authorization server which host the device and app verification along with user code + VerificationURIComplete string `json:"verification_uri_complete"` + // ExpiresIn lifetime in seconds of the "device_code" and "user_code" + ExpiresIn int64 `json:"expires_in"` + // Interval minimum amount of time in secs the client app should wait between polling requests to the token endpoint. + Interval int64 `json:"interval"` +} + +type DeviceAccessTokenRequest struct { + // ClientID is the client identifier issued to the client during the registration process of OAuth app with the authorization server + ClientID string `json:"client_id"` + // DeviceCode unique device code generated by the authorization server. + DeviceCode string `json:"device_code"` + // Value MUST be set to "urn:ietf:params:oauth:grant-type:device_code" + GrantType string `json:"grant_type"` +} + +type DeviceAccessTokenResponse struct { + oauth2.Token + Error string `json:"error"` +} diff --git a/flyteidl/clients/go/admin/deviceflow/token_orchestrator.go b/flyteidl/clients/go/admin/deviceflow/token_orchestrator.go new file mode 100644 index 0000000000..c187d586d1 --- /dev/null +++ b/flyteidl/clients/go/admin/deviceflow/token_orchestrator.go @@ -0,0 +1,178 @@ +package deviceflow + +import ( + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "net/url" + "strings" + "time" + + "golang.org/x/net/context/ctxhttp" + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/clients/go/admin/tokenorchestrator" + "github.com/flyteorg/flytestdlib/logger" +) + +const ( + audience = "audience" + clientID = "client_id" + deviceCode = "device_code" + grantType = "grant_type" + scope = "scope" + grantTypeValue = "urn:ietf:params:oauth:grant-type:device_code" +) + +const ( + errSlowDown = "slow_down" + errAuthPending = "authorization_pending" +) + +// OAuthTokenOrError containing the token +type OAuthTokenOrError struct { + *oauth2.Token + Error string `json:"error,omitempty"` +} + +// TokenOrchestrator implements the main logic to initiate device authorization flow +type TokenOrchestrator struct { + Config Config + tokenorchestrator.BaseTokenOrchestrator +} + +// StartDeviceAuthorization will initiate the OAuth2 device authorization flow. +func (t TokenOrchestrator) StartDeviceAuthorization(ctx context.Context, dareq DeviceAuthorizationRequest) (*DeviceAuthorizationResponse, error) { + v := url.Values{clientID: {dareq.ClientID}, scope: {dareq.Scope}, audience: {dareq.Audience}} + httpReq, err := http.NewRequest("POST", t.ClientConfig.DeviceEndpoint, strings.NewReader(v.Encode())) + if err != nil { + return nil, err + } + httpReq.Header.Set("Content-Type", "application/x-www-form-urlencoded") + + logger.Debugf(ctx, "Sending the following request to start device authorization %v with body %v", httpReq.URL, v.Encode()) + + httpResp, err := ctxhttp.Do(ctx, nil, httpReq) + if err != nil { + return nil, err + } + + body, err := io.ReadAll(io.LimitReader(httpResp.Body, 1<<20)) + httpResp.Body.Close() + if err != nil { + return nil, fmt.Errorf("device authorization request failed due to %v", err) + } + + if httpResp.StatusCode != http.StatusOK { + return nil, &oauth2.RetrieveError{ + Response: httpResp, + Body: body, + } + } + + daresp := &DeviceAuthorizationResponse{} + err = json.Unmarshal(body, &daresp) + if err != nil { + return nil, err + } + + if len(daresp.VerificationURIComplete) > 0 { + fmt.Printf("Please open the browser at the url %v containing verification code\n", daresp.VerificationURIComplete) + } else { + fmt.Printf("Please open the browser at the url %v and enter following verification code %v\n", daresp.VerificationURI, daresp.UserCode) + } + return daresp, nil +} + +// PollTokenEndpoint polls the token endpoint until the user authorizes/ denies the app or an error occurs other than slow_down or authorization_pending +func (t TokenOrchestrator) PollTokenEndpoint(ctx context.Context, tokReq DeviceAccessTokenRequest, pollInterval time.Duration) (*oauth2.Token, error) { + v := url.Values{ + clientID: {tokReq.ClientID}, + grantType: {grantTypeValue}, + deviceCode: {tokReq.DeviceCode}, + } + + for { + httpReq, err := http.NewRequest("POST", t.ClientConfig.Endpoint.TokenURL, strings.NewReader(v.Encode())) + if err != nil { + return nil, err + } + httpReq.Header.Set("Content-Type", "application/x-www-form-urlencoded") + + logger.Debugf(ctx, "Sending the following request to fetch the token %v with body %v", httpReq.URL, v.Encode()) + + httpResp, err := ctxhttp.Do(ctx, nil, httpReq) + if err != nil { + return nil, err + } + + body, err := io.ReadAll(io.LimitReader(httpResp.Body, 1<<20)) + httpResp.Body.Close() + if err != nil { + return nil, err + } + + // We cannot check the status code since 400 is returned in case of errAuthPending and errSlowDown in which + // case the polling has to still continue + var tokResp DeviceAccessTokenResponse + err = json.Unmarshal(body, &tokResp) + if err != nil { + return nil, err + } + + // Unmarshalled response if it contains an error then check if we need to increase the polling interval + if len(tokResp.Error) > 0 { + if tokResp.Error == errSlowDown || tokResp.Error == errAuthPending { + pollInterval = pollInterval * 2 + + } else { + return nil, fmt.Errorf("oauth error : %v", tokResp.Error) + } + } else { + // Got the auth token in the response and save it in the cache + err = t.TokenCache.SaveToken(&tokResp.Token) + // Saving into the cache is only considered to be a warning in this case. + if err != nil { + logger.Warnf(ctx, "failed to save token in the token cache. Error: %w", err) + } + return &tokResp.Token, nil + } + fmt.Printf("Waiting for %v secs\n", pollInterval.Seconds()) + time.Sleep(pollInterval) + } +} + +// FetchTokenFromAuthFlow starts a webserver to listen to redirect callback from the authorization server at the end +// of the flow. It then launches the browser to authenticate the user. +func (t TokenOrchestrator) FetchTokenFromAuthFlow(ctx context.Context) (*oauth2.Token, error) { + ctx, cancelNow := context.WithTimeout(ctx, t.Config.Timeout.Duration) + defer cancelNow() + + var scopes string + if len(t.ClientConfig.Scopes) > 0 { + scopes = strings.Join(t.ClientConfig.Scopes, " ") + } + daReq := DeviceAuthorizationRequest{ClientID: t.ClientConfig.ClientID, Scope: scopes, Audience: t.ClientConfig.Audience} + daResp, err := t.StartDeviceAuthorization(ctx, daReq) + if err != nil { + return nil, err + } + + pollInterval := t.Config.PollInterval.Duration // default value of 5 sec poll interval if the authorization response doesn't have interval set + if daResp.Interval > 0 { + pollInterval = time.Duration(daResp.Interval) * time.Second + } + + tokReq := DeviceAccessTokenRequest{ClientID: t.ClientConfig.ClientID, DeviceCode: daResp.DeviceCode, GrantType: grantType} + return t.PollTokenEndpoint(ctx, tokReq, pollInterval) +} + +// NewDeviceFlowTokenOrchestrator creates a new TokenOrchestrator that implements the main logic to start device authorization flow and fetch device code and then poll on the token endpoint until the device authorization is approved/denied by the user +func NewDeviceFlowTokenOrchestrator(baseOrchestrator tokenorchestrator.BaseTokenOrchestrator, cfg Config) (TokenOrchestrator, error) { + return TokenOrchestrator{ + BaseTokenOrchestrator: baseOrchestrator, + Config: cfg, + }, nil +} diff --git a/flyteidl/clients/go/admin/deviceflow/token_orchestrator_test.go b/flyteidl/clients/go/admin/deviceflow/token_orchestrator_test.go new file mode 100644 index 0000000000..7f6debdfdf --- /dev/null +++ b/flyteidl/clients/go/admin/deviceflow/token_orchestrator_test.go @@ -0,0 +1,125 @@ +package deviceflow + +import ( + "context" + "io" + "net/http" + "net/http/httptest" + "net/url" + "strings" + "testing" + "time" + + "k8s.io/apimachinery/pkg/util/json" + + "github.com/flyteorg/flytestdlib/config" + + "github.com/stretchr/testify/assert" + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + "github.com/flyteorg/flyteidl/clients/go/admin/oauth" + "github.com/flyteorg/flyteidl/clients/go/admin/tokenorchestrator" +) + +func TestFetchFromAuthFlow(t *testing.T) { + ctx := context.Background() + t.Run("fetch from auth flow", func(t *testing.T) { + tokenCache := &cache.TokenCacheInMemoryProvider{} + orchestrator, err := NewDeviceFlowTokenOrchestrator(tokenorchestrator.BaseTokenOrchestrator{ + ClientConfig: &oauth.Config{ + Config: &oauth2.Config{ + RedirectURL: "http://localhost:8089/redirect", + Scopes: []string{"code", "all"}, + }, + DeviceEndpoint: "http://dummyDeviceEndpoint", + }, + TokenCache: tokenCache, + }, Config{}) + assert.NoError(t, err) + refreshedToken, err := orchestrator.FetchTokenFromAuthFlow(ctx) + assert.Nil(t, refreshedToken) + assert.NotNil(t, err) + }) + + t.Run("fetch from auth flow", func(t *testing.T) { + fakeServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + body, err := io.ReadAll(r.Body) + assert.Nil(t, err) + isDeviceReq := strings.Contains(string(body), scope) + isTokReq := strings.Contains(string(body), deviceCode) && strings.Contains(string(body), grantType) && strings.Contains(string(body), clientID) + + if isDeviceReq { + for _, urlParm := range strings.Split(string(body), "&") { + paramKeyValue := strings.Split(urlParm, "=") + switch paramKeyValue[0] { + case audience: + assert.Equal(t, "abcd", paramKeyValue[1]) + case clientID: + assert.Equal(t, clientID, paramKeyValue[1]) + } + } + dar := DeviceAuthorizationResponse{ + DeviceCode: "e1db31fe-3b23-4fce-b759-82bf8ea323d6", + UserCode: "RPBQZNRX", + VerificationURI: "https://oauth-server/activate", + VerificationURIComplete: "https://oauth-server/activate?user_code=RPBQZNRX", + Interval: 5, + } + darBytes, err := json.Marshal(dar) + assert.Nil(t, err) + _, err = w.Write(darBytes) + assert.Nil(t, err) + return + } else if isTokReq { + for _, urlParm := range strings.Split(string(body), "&") { + paramKeyValue := strings.Split(urlParm, "=") + switch paramKeyValue[0] { + case grantType: + assert.Equal(t, url.QueryEscape(grantTypeValue), paramKeyValue[1]) + case deviceCode: + assert.Equal(t, "e1db31fe-3b23-4fce-b759-82bf8ea323d6", paramKeyValue[1]) + case clientID: + assert.Equal(t, clientID, paramKeyValue[1]) + } + } + dar := DeviceAccessTokenResponse{ + Token: oauth2.Token{ + AccessToken: "access_token", + }, + } + darBytes, err := json.Marshal(dar) + assert.Nil(t, err) + _, err = w.Write(darBytes) + assert.Nil(t, err) + return + } + t.Fatal("unknown request") + })) + defer fakeServer.Close() + + tokenCache := &cache.TokenCacheInMemoryProvider{} + orchestrator, err := NewDeviceFlowTokenOrchestrator(tokenorchestrator.BaseTokenOrchestrator{ + ClientConfig: &oauth.Config{ + Config: &oauth2.Config{ + ClientID: clientID, + RedirectURL: "http://localhost:8089/redirect", + Scopes: []string{"code", "all"}, + Endpoint: oauth2.Endpoint{ + TokenURL: fakeServer.URL, + }, + }, + DeviceEndpoint: fakeServer.URL, + Audience: "abcd", + }, + TokenCache: tokenCache, + }, Config{ + Timeout: config.Duration{Duration: 1 * time.Minute}, + }) + assert.NoError(t, err) + authToken, err := orchestrator.FetchTokenFromAuthFlow(ctx) + assert.Nil(t, err) + assert.NotNil(t, authToken) + assert.Equal(t, "access_token", authToken.AccessToken) + }) +} diff --git a/flyteidl/clients/go/admin/externalprocess/command_executor.go b/flyteidl/clients/go/admin/externalprocess/command_executor.go new file mode 100644 index 0000000000..5c2c687aea --- /dev/null +++ b/flyteidl/clients/go/admin/externalprocess/command_executor.go @@ -0,0 +1,8 @@ +package externalprocess + +import "os/exec" + +func Execute(command []string) ([]byte, error) { + cmd := exec.Command(command[0], command[1:]...) //nolint + return cmd.Output() +} diff --git a/flyteidl/clients/go/admin/integration_test.go b/flyteidl/clients/go/admin/integration_test.go new file mode 100644 index 0000000000..366f086f27 --- /dev/null +++ b/flyteidl/clients/go/admin/integration_test.go @@ -0,0 +1,76 @@ +//go:build integration +// +build integration + +package admin + +import ( + "context" + "fmt" + "net/url" + "testing" + "time" + + "google.golang.org/grpc" + + "golang.org/x/oauth2/clientcredentials" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + "github.com/flyteorg/flytestdlib/config" + "github.com/stretchr/testify/assert" +) + +func TestLiveAdminClient(t *testing.T) { + ctx := context.Background() + + u, err := url.Parse("dns:///flyte.lyft.net") + assert.NoError(t, err) + client := InitializeAdminClient(ctx, Config{ + Endpoint: config.URL{URL: *u}, + UseInsecureConnection: false, + UseAuth: true, + ClientID: "0oacmtueinpXk72Af1t7", + ClientSecretLocation: "/Users/username/.ssh/admin/propeller_secret", + DeprecatedAuthorizationServerURL: "https://lyft.okta.com/oauth2/ausc5wmjw96cRKvTd1t7", + Scopes: []string{"svc"}, + AuthorizationHeader: "Flyte-Authorization", + }) + + resp, err := client.ListProjects(ctx, &admin.ProjectListRequest{}) + if err != nil { + fmt.Printf("Error %v\n", err) + } + assert.NoError(t, err) + fmt.Printf("Response: %v\n", resp) +} + +func TestGetDialOption(t *testing.T) { + ctx := context.Background() + + cfg := Config{ + DeprecatedAuthorizationServerURL: "https://lyft.okta.com/oauth2/ausc5wmjw96cRKvTd1t7", + } + + dialOption, err := getAuthenticationDialOption(ctx, cfg, []grpc.DialOption{}) + assert.NoError(t, err) + assert.NotNil(t, dialOption) +} + +func TestDirectTokenRetrieval(t *testing.T) { + ctx := context.Background() + ccConfig := clientcredentials.Config{ + ClientID: "client-id", + ClientSecret: "my-secret", + TokenURL: "https://your.idp.com/authserver/v1/token", + Scopes: []string{"svc"}, + } + + tSource := ccConfig.TokenSource(ctx) + + for i := 0; i < 100; i++ { + fmt.Printf("Iteration %d -- ", i) + token, err := tSource.Token() + assert.NoError(t, err) + fmt.Printf("Got token %s\n", token) + time.Sleep(30 * time.Second) + } +} diff --git a/flyteidl/clients/go/admin/mocks/AdminServiceClient.go b/flyteidl/clients/go/admin/mocks/AdminServiceClient.go new file mode 100644 index 0000000000..2a6b65b645 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AdminServiceClient.go @@ -0,0 +1,2562 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" +) + +// AdminServiceClient is an autogenerated mock type for the AdminServiceClient type +type AdminServiceClient struct { + mock.Mock +} + +type AdminServiceClient_CreateExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_CreateExecution) Return(_a0 *admin.ExecutionCreateResponse, _a1 error) *AdminServiceClient_CreateExecution { + return &AdminServiceClient_CreateExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnCreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) *AdminServiceClient_CreateExecution { + c_call := _m.On("CreateExecution", ctx, in, opts) + return &AdminServiceClient_CreateExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnCreateExecutionMatch(matchers ...interface{}) *AdminServiceClient_CreateExecution { + c_call := _m.On("CreateExecution", matchers...) + return &AdminServiceClient_CreateExecution{Call: c_call} +} + +// CreateExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionCreateRequest, ...grpc.CallOption) *admin.ExecutionCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_CreateLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceClient_CreateLaunchPlan) Return(_a0 *admin.LaunchPlanCreateResponse, _a1 error) *AdminServiceClient_CreateLaunchPlan { + return &AdminServiceClient_CreateLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnCreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) *AdminServiceClient_CreateLaunchPlan { + c_call := _m.On("CreateLaunchPlan", ctx, in, opts) + return &AdminServiceClient_CreateLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceClient) OnCreateLaunchPlanMatch(matchers ...interface{}) *AdminServiceClient_CreateLaunchPlan { + c_call := _m.On("CreateLaunchPlan", matchers...) + return &AdminServiceClient_CreateLaunchPlan{Call: c_call} +} + +// CreateLaunchPlan provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.LaunchPlanCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.LaunchPlanCreateRequest, ...grpc.CallOption) *admin.LaunchPlanCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.LaunchPlanCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_CreateNodeEvent struct { + *mock.Call +} + +func (_m AdminServiceClient_CreateNodeEvent) Return(_a0 *admin.NodeExecutionEventResponse, _a1 error) *AdminServiceClient_CreateNodeEvent { + return &AdminServiceClient_CreateNodeEvent{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnCreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) *AdminServiceClient_CreateNodeEvent { + c_call := _m.On("CreateNodeEvent", ctx, in, opts) + return &AdminServiceClient_CreateNodeEvent{Call: c_call} +} + +func (_m *AdminServiceClient) OnCreateNodeEventMatch(matchers ...interface{}) *AdminServiceClient_CreateNodeEvent { + c_call := _m.On("CreateNodeEvent", matchers...) + return &AdminServiceClient_CreateNodeEvent{Call: c_call} +} + +// CreateNodeEvent provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NodeExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionEventRequest, ...grpc.CallOption) *admin.NodeExecutionEventResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionEventRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_CreateTask struct { + *mock.Call +} + +func (_m AdminServiceClient_CreateTask) Return(_a0 *admin.TaskCreateResponse, _a1 error) *AdminServiceClient_CreateTask { + return &AdminServiceClient_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnCreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) *AdminServiceClient_CreateTask { + c_call := _m.On("CreateTask", ctx, in, opts) + return &AdminServiceClient_CreateTask{Call: c_call} +} + +func (_m *AdminServiceClient) OnCreateTaskMatch(matchers ...interface{}) *AdminServiceClient_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AdminServiceClient_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.TaskCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskCreateRequest, ...grpc.CallOption) *admin.TaskCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_CreateTaskEvent struct { + *mock.Call +} + +func (_m AdminServiceClient_CreateTaskEvent) Return(_a0 *admin.TaskExecutionEventResponse, _a1 error) *AdminServiceClient_CreateTaskEvent { + return &AdminServiceClient_CreateTaskEvent{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnCreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) *AdminServiceClient_CreateTaskEvent { + c_call := _m.On("CreateTaskEvent", ctx, in, opts) + return &AdminServiceClient_CreateTaskEvent{Call: c_call} +} + +func (_m *AdminServiceClient) OnCreateTaskEventMatch(matchers ...interface{}) *AdminServiceClient_CreateTaskEvent { + c_call := _m.On("CreateTaskEvent", matchers...) + return &AdminServiceClient_CreateTaskEvent{Call: c_call} +} + +// CreateTaskEvent provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.TaskExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionEventRequest, ...grpc.CallOption) *admin.TaskExecutionEventResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionEventRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_CreateWorkflow struct { + *mock.Call +} + +func (_m AdminServiceClient_CreateWorkflow) Return(_a0 *admin.WorkflowCreateResponse, _a1 error) *AdminServiceClient_CreateWorkflow { + return &AdminServiceClient_CreateWorkflow{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnCreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) *AdminServiceClient_CreateWorkflow { + c_call := _m.On("CreateWorkflow", ctx, in, opts) + return &AdminServiceClient_CreateWorkflow{Call: c_call} +} + +func (_m *AdminServiceClient) OnCreateWorkflowMatch(matchers ...interface{}) *AdminServiceClient_CreateWorkflow { + c_call := _m.On("CreateWorkflow", matchers...) + return &AdminServiceClient_CreateWorkflow{Call: c_call} +} + +// CreateWorkflow provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowCreateRequest, ...grpc.CallOption) *admin.WorkflowCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_CreateWorkflowEvent struct { + *mock.Call +} + +func (_m AdminServiceClient_CreateWorkflowEvent) Return(_a0 *admin.WorkflowExecutionEventResponse, _a1 error) *AdminServiceClient_CreateWorkflowEvent { + return &AdminServiceClient_CreateWorkflowEvent{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnCreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) *AdminServiceClient_CreateWorkflowEvent { + c_call := _m.On("CreateWorkflowEvent", ctx, in, opts) + return &AdminServiceClient_CreateWorkflowEvent{Call: c_call} +} + +func (_m *AdminServiceClient) OnCreateWorkflowEventMatch(matchers ...interface{}) *AdminServiceClient_CreateWorkflowEvent { + c_call := _m.On("CreateWorkflowEvent", matchers...) + return &AdminServiceClient_CreateWorkflowEvent{Call: c_call} +} + +// CreateWorkflowEvent provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionEventRequest, ...grpc.CallOption) *admin.WorkflowExecutionEventResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionEventRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_DeleteProjectAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_DeleteProjectAttributes) Return(_a0 *admin.ProjectAttributesDeleteResponse, _a1 error) *AdminServiceClient_DeleteProjectAttributes { + return &AdminServiceClient_DeleteProjectAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnDeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) *AdminServiceClient_DeleteProjectAttributes { + c_call := _m.On("DeleteProjectAttributes", ctx, in, opts) + return &AdminServiceClient_DeleteProjectAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnDeleteProjectAttributesMatch(matchers ...interface{}) *AdminServiceClient_DeleteProjectAttributes { + c_call := _m.On("DeleteProjectAttributes", matchers...) + return &AdminServiceClient_DeleteProjectAttributes{Call: c_call} +} + +// DeleteProjectAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectAttributesDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectAttributesDeleteRequest, ...grpc.CallOption) *admin.ProjectAttributesDeleteResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectAttributesDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectAttributesDeleteRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_DeleteProjectDomainAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_DeleteProjectDomainAttributes) Return(_a0 *admin.ProjectDomainAttributesDeleteResponse, _a1 error) *AdminServiceClient_DeleteProjectDomainAttributes { + return &AdminServiceClient_DeleteProjectDomainAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnDeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) *AdminServiceClient_DeleteProjectDomainAttributes { + c_call := _m.On("DeleteProjectDomainAttributes", ctx, in, opts) + return &AdminServiceClient_DeleteProjectDomainAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnDeleteProjectDomainAttributesMatch(matchers ...interface{}) *AdminServiceClient_DeleteProjectDomainAttributes { + c_call := _m.On("DeleteProjectDomainAttributes", matchers...) + return &AdminServiceClient_DeleteProjectDomainAttributes{Call: c_call} +} + +// DeleteProjectDomainAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectDomainAttributesDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectDomainAttributesDeleteRequest, ...grpc.CallOption) *admin.ProjectDomainAttributesDeleteResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectDomainAttributesDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectDomainAttributesDeleteRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_DeleteWorkflowAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_DeleteWorkflowAttributes) Return(_a0 *admin.WorkflowAttributesDeleteResponse, _a1 error) *AdminServiceClient_DeleteWorkflowAttributes { + return &AdminServiceClient_DeleteWorkflowAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnDeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) *AdminServiceClient_DeleteWorkflowAttributes { + c_call := _m.On("DeleteWorkflowAttributes", ctx, in, opts) + return &AdminServiceClient_DeleteWorkflowAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnDeleteWorkflowAttributesMatch(matchers ...interface{}) *AdminServiceClient_DeleteWorkflowAttributes { + c_call := _m.On("DeleteWorkflowAttributes", matchers...) + return &AdminServiceClient_DeleteWorkflowAttributes{Call: c_call} +} + +// DeleteWorkflowAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowAttributesDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowAttributesDeleteRequest, ...grpc.CallOption) *admin.WorkflowAttributesDeleteResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowAttributesDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowAttributesDeleteRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetActiveLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceClient_GetActiveLaunchPlan) Return(_a0 *admin.LaunchPlan, _a1 error) *AdminServiceClient_GetActiveLaunchPlan { + return &AdminServiceClient_GetActiveLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) *AdminServiceClient_GetActiveLaunchPlan { + c_call := _m.On("GetActiveLaunchPlan", ctx, in, opts) + return &AdminServiceClient_GetActiveLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetActiveLaunchPlanMatch(matchers ...interface{}) *AdminServiceClient_GetActiveLaunchPlan { + c_call := _m.On("GetActiveLaunchPlan", matchers...) + return &AdminServiceClient_GetActiveLaunchPlan{Call: c_call} +} + +// GetActiveLaunchPlan provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.LaunchPlan + if rf, ok := ret.Get(0).(func(context.Context, *admin.ActiveLaunchPlanRequest, ...grpc.CallOption) *admin.LaunchPlan); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlan) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ActiveLaunchPlanRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetDescriptionEntity struct { + *mock.Call +} + +func (_m AdminServiceClient_GetDescriptionEntity) Return(_a0 *admin.DescriptionEntity, _a1 error) *AdminServiceClient_GetDescriptionEntity { + return &AdminServiceClient_GetDescriptionEntity{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetDescriptionEntity { + c_call := _m.On("GetDescriptionEntity", ctx, in, opts) + return &AdminServiceClient_GetDescriptionEntity{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetDescriptionEntityMatch(matchers ...interface{}) *AdminServiceClient_GetDescriptionEntity { + c_call := _m.On("GetDescriptionEntity", matchers...) + return &AdminServiceClient_GetDescriptionEntity{Call: c_call} +} + +// GetDescriptionEntity provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.DescriptionEntity + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) *admin.DescriptionEntity); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DescriptionEntity) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_GetExecution) Return(_a0 *admin.Execution, _a1 error) *AdminServiceClient_GetExecution { + return &AdminServiceClient_GetExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetExecution { + c_call := _m.On("GetExecution", ctx, in, opts) + return &AdminServiceClient_GetExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetExecutionMatch(matchers ...interface{}) *AdminServiceClient_GetExecution { + c_call := _m.On("GetExecution", matchers...) + return &AdminServiceClient_GetExecution{Call: c_call} +} + +// GetExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.Execution + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetRequest, ...grpc.CallOption) *admin.Execution); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Execution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetExecutionData struct { + *mock.Call +} + +func (_m AdminServiceClient_GetExecutionData) Return(_a0 *admin.WorkflowExecutionGetDataResponse, _a1 error) *AdminServiceClient_GetExecutionData { + return &AdminServiceClient_GetExecutionData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) *AdminServiceClient_GetExecutionData { + c_call := _m.On("GetExecutionData", ctx, in, opts) + return &AdminServiceClient_GetExecutionData{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetExecutionDataMatch(matchers ...interface{}) *AdminServiceClient_GetExecutionData { + c_call := _m.On("GetExecutionData", matchers...) + return &AdminServiceClient_GetExecutionData{Call: c_call} +} + +// GetExecutionData provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetDataRequest, ...grpc.CallOption) *admin.WorkflowExecutionGetDataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetDataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetExecutionMetrics struct { + *mock.Call +} + +func (_m AdminServiceClient_GetExecutionMetrics) Return(_a0 *admin.WorkflowExecutionGetMetricsResponse, _a1 error) *AdminServiceClient_GetExecutionMetrics { + return &AdminServiceClient_GetExecutionMetrics{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) *AdminServiceClient_GetExecutionMetrics { + c_call := _m.On("GetExecutionMetrics", ctx, in, opts) + return &AdminServiceClient_GetExecutionMetrics{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetExecutionMetricsMatch(matchers ...interface{}) *AdminServiceClient_GetExecutionMetrics { + c_call := _m.On("GetExecutionMetrics", matchers...) + return &AdminServiceClient_GetExecutionMetrics{Call: c_call} +} + +// GetExecutionMetrics provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowExecutionGetMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetMetricsRequest, ...grpc.CallOption) *admin.WorkflowExecutionGetMetricsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionGetMetricsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetMetricsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceClient_GetLaunchPlan) Return(_a0 *admin.LaunchPlan, _a1 error) *AdminServiceClient_GetLaunchPlan { + return &AdminServiceClient_GetLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetLaunchPlan { + c_call := _m.On("GetLaunchPlan", ctx, in, opts) + return &AdminServiceClient_GetLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetLaunchPlanMatch(matchers ...interface{}) *AdminServiceClient_GetLaunchPlan { + c_call := _m.On("GetLaunchPlan", matchers...) + return &AdminServiceClient_GetLaunchPlan{Call: c_call} +} + +// GetLaunchPlan provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.LaunchPlan + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) *admin.LaunchPlan); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlan) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetNamedEntity struct { + *mock.Call +} + +func (_m AdminServiceClient_GetNamedEntity) Return(_a0 *admin.NamedEntity, _a1 error) *AdminServiceClient_GetNamedEntity { + return &AdminServiceClient_GetNamedEntity{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetNamedEntity { + c_call := _m.On("GetNamedEntity", ctx, in, opts) + return &AdminServiceClient_GetNamedEntity{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetNamedEntityMatch(matchers ...interface{}) *AdminServiceClient_GetNamedEntity { + c_call := _m.On("GetNamedEntity", matchers...) + return &AdminServiceClient_GetNamedEntity{Call: c_call} +} + +// GetNamedEntity provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NamedEntity + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityGetRequest, ...grpc.CallOption) *admin.NamedEntity); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntity) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetNodeExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_GetNodeExecution) Return(_a0 *admin.NodeExecution, _a1 error) *AdminServiceClient_GetNodeExecution { + return &AdminServiceClient_GetNodeExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetNodeExecution { + c_call := _m.On("GetNodeExecution", ctx, in, opts) + return &AdminServiceClient_GetNodeExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetNodeExecutionMatch(matchers ...interface{}) *AdminServiceClient_GetNodeExecution { + c_call := _m.On("GetNodeExecution", matchers...) + return &AdminServiceClient_GetNodeExecution{Call: c_call} +} + +// GetNodeExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NodeExecution + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionGetRequest, ...grpc.CallOption) *admin.NodeExecution); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetNodeExecutionData struct { + *mock.Call +} + +func (_m AdminServiceClient_GetNodeExecutionData) Return(_a0 *admin.NodeExecutionGetDataResponse, _a1 error) *AdminServiceClient_GetNodeExecutionData { + return &AdminServiceClient_GetNodeExecutionData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) *AdminServiceClient_GetNodeExecutionData { + c_call := _m.On("GetNodeExecutionData", ctx, in, opts) + return &AdminServiceClient_GetNodeExecutionData{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetNodeExecutionDataMatch(matchers ...interface{}) *AdminServiceClient_GetNodeExecutionData { + c_call := _m.On("GetNodeExecutionData", matchers...) + return &AdminServiceClient_GetNodeExecutionData{Call: c_call} +} + +// GetNodeExecutionData provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NodeExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionGetDataRequest, ...grpc.CallOption) *admin.NodeExecutionGetDataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionGetDataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetProjectAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_GetProjectAttributes) Return(_a0 *admin.ProjectAttributesGetResponse, _a1 error) *AdminServiceClient_GetProjectAttributes { + return &AdminServiceClient_GetProjectAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetProjectAttributes { + c_call := _m.On("GetProjectAttributes", ctx, in, opts) + return &AdminServiceClient_GetProjectAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetProjectAttributesMatch(matchers ...interface{}) *AdminServiceClient_GetProjectAttributes { + c_call := _m.On("GetProjectAttributes", matchers...) + return &AdminServiceClient_GetProjectAttributes{Call: c_call} +} + +// GetProjectAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectAttributesGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectAttributesGetRequest, ...grpc.CallOption) *admin.ProjectAttributesGetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectAttributesGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectAttributesGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetProjectDomainAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_GetProjectDomainAttributes) Return(_a0 *admin.ProjectDomainAttributesGetResponse, _a1 error) *AdminServiceClient_GetProjectDomainAttributes { + return &AdminServiceClient_GetProjectDomainAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetProjectDomainAttributes { + c_call := _m.On("GetProjectDomainAttributes", ctx, in, opts) + return &AdminServiceClient_GetProjectDomainAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetProjectDomainAttributesMatch(matchers ...interface{}) *AdminServiceClient_GetProjectDomainAttributes { + c_call := _m.On("GetProjectDomainAttributes", matchers...) + return &AdminServiceClient_GetProjectDomainAttributes{Call: c_call} +} + +// GetProjectDomainAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectDomainAttributesGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectDomainAttributesGetRequest, ...grpc.CallOption) *admin.ProjectDomainAttributesGetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectDomainAttributesGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectDomainAttributesGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetTask struct { + *mock.Call +} + +func (_m AdminServiceClient_GetTask) Return(_a0 *admin.Task, _a1 error) *AdminServiceClient_GetTask { + return &AdminServiceClient_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetTask { + c_call := _m.On("GetTask", ctx, in, opts) + return &AdminServiceClient_GetTask{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetTaskMatch(matchers ...interface{}) *AdminServiceClient_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AdminServiceClient_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.Task + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) *admin.Task); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Task) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetTaskExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_GetTaskExecution) Return(_a0 *admin.TaskExecution, _a1 error) *AdminServiceClient_GetTaskExecution { + return &AdminServiceClient_GetTaskExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetTaskExecution { + c_call := _m.On("GetTaskExecution", ctx, in, opts) + return &AdminServiceClient_GetTaskExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetTaskExecutionMatch(matchers ...interface{}) *AdminServiceClient_GetTaskExecution { + c_call := _m.On("GetTaskExecution", matchers...) + return &AdminServiceClient_GetTaskExecution{Call: c_call} +} + +// GetTaskExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.TaskExecution + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionGetRequest, ...grpc.CallOption) *admin.TaskExecution); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetTaskExecutionData struct { + *mock.Call +} + +func (_m AdminServiceClient_GetTaskExecutionData) Return(_a0 *admin.TaskExecutionGetDataResponse, _a1 error) *AdminServiceClient_GetTaskExecutionData { + return &AdminServiceClient_GetTaskExecutionData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) *AdminServiceClient_GetTaskExecutionData { + c_call := _m.On("GetTaskExecutionData", ctx, in, opts) + return &AdminServiceClient_GetTaskExecutionData{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetTaskExecutionDataMatch(matchers ...interface{}) *AdminServiceClient_GetTaskExecutionData { + c_call := _m.On("GetTaskExecutionData", matchers...) + return &AdminServiceClient_GetTaskExecutionData{Call: c_call} +} + +// GetTaskExecutionData provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.TaskExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionGetDataRequest, ...grpc.CallOption) *admin.TaskExecutionGetDataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionGetDataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetVersion struct { + *mock.Call +} + +func (_m AdminServiceClient_GetVersion) Return(_a0 *admin.GetVersionResponse, _a1 error) *AdminServiceClient_GetVersion { + return &AdminServiceClient_GetVersion{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) *AdminServiceClient_GetVersion { + c_call := _m.On("GetVersion", ctx, in, opts) + return &AdminServiceClient_GetVersion{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetVersionMatch(matchers ...interface{}) *AdminServiceClient_GetVersion { + c_call := _m.On("GetVersion", matchers...) + return &AdminServiceClient_GetVersion{Call: c_call} +} + +// GetVersion provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.GetVersionResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetVersionRequest, ...grpc.CallOption) *admin.GetVersionResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetVersionResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetVersionRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetWorkflow struct { + *mock.Call +} + +func (_m AdminServiceClient_GetWorkflow) Return(_a0 *admin.Workflow, _a1 error) *AdminServiceClient_GetWorkflow { + return &AdminServiceClient_GetWorkflow{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetWorkflow { + c_call := _m.On("GetWorkflow", ctx, in, opts) + return &AdminServiceClient_GetWorkflow{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetWorkflowMatch(matchers ...interface{}) *AdminServiceClient_GetWorkflow { + c_call := _m.On("GetWorkflow", matchers...) + return &AdminServiceClient_GetWorkflow{Call: c_call} +} + +// GetWorkflow provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.Workflow + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) *admin.Workflow); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Workflow) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_GetWorkflowAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_GetWorkflowAttributes) Return(_a0 *admin.WorkflowAttributesGetResponse, _a1 error) *AdminServiceClient_GetWorkflowAttributes { + return &AdminServiceClient_GetWorkflowAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnGetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) *AdminServiceClient_GetWorkflowAttributes { + c_call := _m.On("GetWorkflowAttributes", ctx, in, opts) + return &AdminServiceClient_GetWorkflowAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnGetWorkflowAttributesMatch(matchers ...interface{}) *AdminServiceClient_GetWorkflowAttributes { + c_call := _m.On("GetWorkflowAttributes", matchers...) + return &AdminServiceClient_GetWorkflowAttributes{Call: c_call} +} + +// GetWorkflowAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowAttributesGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowAttributesGetRequest, ...grpc.CallOption) *admin.WorkflowAttributesGetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowAttributesGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowAttributesGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListActiveLaunchPlans struct { + *mock.Call +} + +func (_m AdminServiceClient_ListActiveLaunchPlans) Return(_a0 *admin.LaunchPlanList, _a1 error) *AdminServiceClient_ListActiveLaunchPlans { + return &AdminServiceClient_ListActiveLaunchPlans{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListActiveLaunchPlans { + c_call := _m.On("ListActiveLaunchPlans", ctx, in, opts) + return &AdminServiceClient_ListActiveLaunchPlans{Call: c_call} +} + +func (_m *AdminServiceClient) OnListActiveLaunchPlansMatch(matchers ...interface{}) *AdminServiceClient_ListActiveLaunchPlans { + c_call := _m.On("ListActiveLaunchPlans", matchers...) + return &AdminServiceClient_ListActiveLaunchPlans{Call: c_call} +} + +// ListActiveLaunchPlans provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.LaunchPlanList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ActiveLaunchPlanListRequest, ...grpc.CallOption) *admin.LaunchPlanList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ActiveLaunchPlanListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListDescriptionEntities struct { + *mock.Call +} + +func (_m AdminServiceClient_ListDescriptionEntities) Return(_a0 *admin.DescriptionEntityList, _a1 error) *AdminServiceClient_ListDescriptionEntities { + return &AdminServiceClient_ListDescriptionEntities{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListDescriptionEntities { + c_call := _m.On("ListDescriptionEntities", ctx, in, opts) + return &AdminServiceClient_ListDescriptionEntities{Call: c_call} +} + +func (_m *AdminServiceClient) OnListDescriptionEntitiesMatch(matchers ...interface{}) *AdminServiceClient_ListDescriptionEntities { + c_call := _m.On("ListDescriptionEntities", matchers...) + return &AdminServiceClient_ListDescriptionEntities{Call: c_call} +} + +// ListDescriptionEntities provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.DescriptionEntityList + if rf, ok := ret.Get(0).(func(context.Context, *admin.DescriptionEntityListRequest, ...grpc.CallOption) *admin.DescriptionEntityList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DescriptionEntityList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.DescriptionEntityListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListExecutions struct { + *mock.Call +} + +func (_m AdminServiceClient_ListExecutions) Return(_a0 *admin.ExecutionList, _a1 error) *AdminServiceClient_ListExecutions { + return &AdminServiceClient_ListExecutions{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListExecutions { + c_call := _m.On("ListExecutions", ctx, in, opts) + return &AdminServiceClient_ListExecutions{Call: c_call} +} + +func (_m *AdminServiceClient) OnListExecutionsMatch(matchers ...interface{}) *AdminServiceClient_ListExecutions { + c_call := _m.On("ListExecutions", matchers...) + return &AdminServiceClient_ListExecutions{Call: c_call} +} + +// ListExecutions provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.ExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListLaunchPlanIds struct { + *mock.Call +} + +func (_m AdminServiceClient_ListLaunchPlanIds) Return(_a0 *admin.NamedEntityIdentifierList, _a1 error) *AdminServiceClient_ListLaunchPlanIds { + return &AdminServiceClient_ListLaunchPlanIds{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListLaunchPlanIds { + c_call := _m.On("ListLaunchPlanIds", ctx, in, opts) + return &AdminServiceClient_ListLaunchPlanIds{Call: c_call} +} + +func (_m *AdminServiceClient) OnListLaunchPlanIdsMatch(matchers ...interface{}) *AdminServiceClient_ListLaunchPlanIds { + c_call := _m.On("ListLaunchPlanIds", matchers...) + return &AdminServiceClient_ListLaunchPlanIds{Call: c_call} +} + +// ListLaunchPlanIds provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) *admin.NamedEntityIdentifierList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListLaunchPlans struct { + *mock.Call +} + +func (_m AdminServiceClient_ListLaunchPlans) Return(_a0 *admin.LaunchPlanList, _a1 error) *AdminServiceClient_ListLaunchPlans { + return &AdminServiceClient_ListLaunchPlans{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListLaunchPlans { + c_call := _m.On("ListLaunchPlans", ctx, in, opts) + return &AdminServiceClient_ListLaunchPlans{Call: c_call} +} + +func (_m *AdminServiceClient) OnListLaunchPlansMatch(matchers ...interface{}) *AdminServiceClient_ListLaunchPlans { + c_call := _m.On("ListLaunchPlans", matchers...) + return &AdminServiceClient_ListLaunchPlans{Call: c_call} +} + +// ListLaunchPlans provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.LaunchPlanList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.LaunchPlanList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListMatchableAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_ListMatchableAttributes) Return(_a0 *admin.ListMatchableAttributesResponse, _a1 error) *AdminServiceClient_ListMatchableAttributes { + return &AdminServiceClient_ListMatchableAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) *AdminServiceClient_ListMatchableAttributes { + c_call := _m.On("ListMatchableAttributes", ctx, in, opts) + return &AdminServiceClient_ListMatchableAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnListMatchableAttributesMatch(matchers ...interface{}) *AdminServiceClient_ListMatchableAttributes { + c_call := _m.On("ListMatchableAttributes", matchers...) + return &AdminServiceClient_ListMatchableAttributes{Call: c_call} +} + +// ListMatchableAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ListMatchableAttributesResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ListMatchableAttributesRequest, ...grpc.CallOption) *admin.ListMatchableAttributesResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ListMatchableAttributesResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ListMatchableAttributesRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListNamedEntities struct { + *mock.Call +} + +func (_m AdminServiceClient_ListNamedEntities) Return(_a0 *admin.NamedEntityList, _a1 error) *AdminServiceClient_ListNamedEntities { + return &AdminServiceClient_ListNamedEntities{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListNamedEntities { + c_call := _m.On("ListNamedEntities", ctx, in, opts) + return &AdminServiceClient_ListNamedEntities{Call: c_call} +} + +func (_m *AdminServiceClient) OnListNamedEntitiesMatch(matchers ...interface{}) *AdminServiceClient_ListNamedEntities { + c_call := _m.On("ListNamedEntities", matchers...) + return &AdminServiceClient_ListNamedEntities{Call: c_call} +} + +// ListNamedEntities provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NamedEntityList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityListRequest, ...grpc.CallOption) *admin.NamedEntityList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListNodeExecutions struct { + *mock.Call +} + +func (_m AdminServiceClient_ListNodeExecutions) Return(_a0 *admin.NodeExecutionList, _a1 error) *AdminServiceClient_ListNodeExecutions { + return &AdminServiceClient_ListNodeExecutions{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListNodeExecutions { + c_call := _m.On("ListNodeExecutions", ctx, in, opts) + return &AdminServiceClient_ListNodeExecutions{Call: c_call} +} + +func (_m *AdminServiceClient) OnListNodeExecutionsMatch(matchers ...interface{}) *AdminServiceClient_ListNodeExecutions { + c_call := _m.On("ListNodeExecutions", matchers...) + return &AdminServiceClient_ListNodeExecutions{Call: c_call} +} + +// ListNodeExecutions provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NodeExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionListRequest, ...grpc.CallOption) *admin.NodeExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListNodeExecutionsForTask struct { + *mock.Call +} + +func (_m AdminServiceClient_ListNodeExecutionsForTask) Return(_a0 *admin.NodeExecutionList, _a1 error) *AdminServiceClient_ListNodeExecutionsForTask { + return &AdminServiceClient_ListNodeExecutionsForTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListNodeExecutionsForTask { + c_call := _m.On("ListNodeExecutionsForTask", ctx, in, opts) + return &AdminServiceClient_ListNodeExecutionsForTask{Call: c_call} +} + +func (_m *AdminServiceClient) OnListNodeExecutionsForTaskMatch(matchers ...interface{}) *AdminServiceClient_ListNodeExecutionsForTask { + c_call := _m.On("ListNodeExecutionsForTask", matchers...) + return &AdminServiceClient_ListNodeExecutionsForTask{Call: c_call} +} + +// ListNodeExecutionsForTask provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NodeExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionForTaskListRequest, ...grpc.CallOption) *admin.NodeExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionForTaskListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListProjects struct { + *mock.Call +} + +func (_m AdminServiceClient_ListProjects) Return(_a0 *admin.Projects, _a1 error) *AdminServiceClient_ListProjects { + return &AdminServiceClient_ListProjects{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListProjects { + c_call := _m.On("ListProjects", ctx, in, opts) + return &AdminServiceClient_ListProjects{Call: c_call} +} + +func (_m *AdminServiceClient) OnListProjectsMatch(matchers ...interface{}) *AdminServiceClient_ListProjects { + c_call := _m.On("ListProjects", matchers...) + return &AdminServiceClient_ListProjects{Call: c_call} +} + +// ListProjects provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.Projects + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectListRequest, ...grpc.CallOption) *admin.Projects); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Projects) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListTaskExecutions struct { + *mock.Call +} + +func (_m AdminServiceClient_ListTaskExecutions) Return(_a0 *admin.TaskExecutionList, _a1 error) *AdminServiceClient_ListTaskExecutions { + return &AdminServiceClient_ListTaskExecutions{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListTaskExecutions { + c_call := _m.On("ListTaskExecutions", ctx, in, opts) + return &AdminServiceClient_ListTaskExecutions{Call: c_call} +} + +func (_m *AdminServiceClient) OnListTaskExecutionsMatch(matchers ...interface{}) *AdminServiceClient_ListTaskExecutions { + c_call := _m.On("ListTaskExecutions", matchers...) + return &AdminServiceClient_ListTaskExecutions{Call: c_call} +} + +// ListTaskExecutions provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.TaskExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionListRequest, ...grpc.CallOption) *admin.TaskExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListTaskIds struct { + *mock.Call +} + +func (_m AdminServiceClient_ListTaskIds) Return(_a0 *admin.NamedEntityIdentifierList, _a1 error) *AdminServiceClient_ListTaskIds { + return &AdminServiceClient_ListTaskIds{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListTaskIds { + c_call := _m.On("ListTaskIds", ctx, in, opts) + return &AdminServiceClient_ListTaskIds{Call: c_call} +} + +func (_m *AdminServiceClient) OnListTaskIdsMatch(matchers ...interface{}) *AdminServiceClient_ListTaskIds { + c_call := _m.On("ListTaskIds", matchers...) + return &AdminServiceClient_ListTaskIds{Call: c_call} +} + +// ListTaskIds provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) *admin.NamedEntityIdentifierList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListTasks struct { + *mock.Call +} + +func (_m AdminServiceClient_ListTasks) Return(_a0 *admin.TaskList, _a1 error) *AdminServiceClient_ListTasks { + return &AdminServiceClient_ListTasks{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListTasks { + c_call := _m.On("ListTasks", ctx, in, opts) + return &AdminServiceClient_ListTasks{Call: c_call} +} + +func (_m *AdminServiceClient) OnListTasksMatch(matchers ...interface{}) *AdminServiceClient_ListTasks { + c_call := _m.On("ListTasks", matchers...) + return &AdminServiceClient_ListTasks{Call: c_call} +} + +// ListTasks provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.TaskList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.TaskList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListWorkflowIds struct { + *mock.Call +} + +func (_m AdminServiceClient_ListWorkflowIds) Return(_a0 *admin.NamedEntityIdentifierList, _a1 error) *AdminServiceClient_ListWorkflowIds { + return &AdminServiceClient_ListWorkflowIds{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListWorkflowIds { + c_call := _m.On("ListWorkflowIds", ctx, in, opts) + return &AdminServiceClient_ListWorkflowIds{Call: c_call} +} + +func (_m *AdminServiceClient) OnListWorkflowIdsMatch(matchers ...interface{}) *AdminServiceClient_ListWorkflowIds { + c_call := _m.On("ListWorkflowIds", matchers...) + return &AdminServiceClient_ListWorkflowIds{Call: c_call} +} + +// ListWorkflowIds provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) *admin.NamedEntityIdentifierList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_ListWorkflows struct { + *mock.Call +} + +func (_m AdminServiceClient_ListWorkflows) Return(_a0 *admin.WorkflowList, _a1 error) *AdminServiceClient_ListWorkflows { + return &AdminServiceClient_ListWorkflows{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) *AdminServiceClient_ListWorkflows { + c_call := _m.On("ListWorkflows", ctx, in, opts) + return &AdminServiceClient_ListWorkflows{Call: c_call} +} + +func (_m *AdminServiceClient) OnListWorkflowsMatch(matchers ...interface{}) *AdminServiceClient_ListWorkflows { + c_call := _m.On("ListWorkflows", matchers...) + return &AdminServiceClient_ListWorkflows{Call: c_call} +} + +// ListWorkflows provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.WorkflowList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_RecoverExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_RecoverExecution) Return(_a0 *admin.ExecutionCreateResponse, _a1 error) *AdminServiceClient_RecoverExecution { + return &AdminServiceClient_RecoverExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnRecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) *AdminServiceClient_RecoverExecution { + c_call := _m.On("RecoverExecution", ctx, in, opts) + return &AdminServiceClient_RecoverExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnRecoverExecutionMatch(matchers ...interface{}) *AdminServiceClient_RecoverExecution { + c_call := _m.On("RecoverExecution", matchers...) + return &AdminServiceClient_RecoverExecution{Call: c_call} +} + +// RecoverExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionRecoverRequest, ...grpc.CallOption) *admin.ExecutionCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionRecoverRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_RegisterProject struct { + *mock.Call +} + +func (_m AdminServiceClient_RegisterProject) Return(_a0 *admin.ProjectRegisterResponse, _a1 error) *AdminServiceClient_RegisterProject { + return &AdminServiceClient_RegisterProject{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnRegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) *AdminServiceClient_RegisterProject { + c_call := _m.On("RegisterProject", ctx, in, opts) + return &AdminServiceClient_RegisterProject{Call: c_call} +} + +func (_m *AdminServiceClient) OnRegisterProjectMatch(matchers ...interface{}) *AdminServiceClient_RegisterProject { + c_call := _m.On("RegisterProject", matchers...) + return &AdminServiceClient_RegisterProject{Call: c_call} +} + +// RegisterProject provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectRegisterResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectRegisterRequest, ...grpc.CallOption) *admin.ProjectRegisterResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectRegisterResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectRegisterRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_RelaunchExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_RelaunchExecution) Return(_a0 *admin.ExecutionCreateResponse, _a1 error) *AdminServiceClient_RelaunchExecution { + return &AdminServiceClient_RelaunchExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnRelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) *AdminServiceClient_RelaunchExecution { + c_call := _m.On("RelaunchExecution", ctx, in, opts) + return &AdminServiceClient_RelaunchExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnRelaunchExecutionMatch(matchers ...interface{}) *AdminServiceClient_RelaunchExecution { + c_call := _m.On("RelaunchExecution", matchers...) + return &AdminServiceClient_RelaunchExecution{Call: c_call} +} + +// RelaunchExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionRelaunchRequest, ...grpc.CallOption) *admin.ExecutionCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionRelaunchRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_TerminateExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_TerminateExecution) Return(_a0 *admin.ExecutionTerminateResponse, _a1 error) *AdminServiceClient_TerminateExecution { + return &AdminServiceClient_TerminateExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnTerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) *AdminServiceClient_TerminateExecution { + c_call := _m.On("TerminateExecution", ctx, in, opts) + return &AdminServiceClient_TerminateExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnTerminateExecutionMatch(matchers ...interface{}) *AdminServiceClient_TerminateExecution { + c_call := _m.On("TerminateExecution", matchers...) + return &AdminServiceClient_TerminateExecution{Call: c_call} +} + +// TerminateExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ExecutionTerminateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionTerminateRequest, ...grpc.CallOption) *admin.ExecutionTerminateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionTerminateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionTerminateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_UpdateExecution struct { + *mock.Call +} + +func (_m AdminServiceClient_UpdateExecution) Return(_a0 *admin.ExecutionUpdateResponse, _a1 error) *AdminServiceClient_UpdateExecution { + return &AdminServiceClient_UpdateExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnUpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) *AdminServiceClient_UpdateExecution { + c_call := _m.On("UpdateExecution", ctx, in, opts) + return &AdminServiceClient_UpdateExecution{Call: c_call} +} + +func (_m *AdminServiceClient) OnUpdateExecutionMatch(matchers ...interface{}) *AdminServiceClient_UpdateExecution { + c_call := _m.On("UpdateExecution", matchers...) + return &AdminServiceClient_UpdateExecution{Call: c_call} +} + +// UpdateExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ExecutionUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionUpdateRequest, ...grpc.CallOption) *admin.ExecutionUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionUpdateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_UpdateLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceClient_UpdateLaunchPlan) Return(_a0 *admin.LaunchPlanUpdateResponse, _a1 error) *AdminServiceClient_UpdateLaunchPlan { + return &AdminServiceClient_UpdateLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnUpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) *AdminServiceClient_UpdateLaunchPlan { + c_call := _m.On("UpdateLaunchPlan", ctx, in, opts) + return &AdminServiceClient_UpdateLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceClient) OnUpdateLaunchPlanMatch(matchers ...interface{}) *AdminServiceClient_UpdateLaunchPlan { + c_call := _m.On("UpdateLaunchPlan", matchers...) + return &AdminServiceClient_UpdateLaunchPlan{Call: c_call} +} + +// UpdateLaunchPlan provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.LaunchPlanUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.LaunchPlanUpdateRequest, ...grpc.CallOption) *admin.LaunchPlanUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.LaunchPlanUpdateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_UpdateNamedEntity struct { + *mock.Call +} + +func (_m AdminServiceClient_UpdateNamedEntity) Return(_a0 *admin.NamedEntityUpdateResponse, _a1 error) *AdminServiceClient_UpdateNamedEntity { + return &AdminServiceClient_UpdateNamedEntity{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnUpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) *AdminServiceClient_UpdateNamedEntity { + c_call := _m.On("UpdateNamedEntity", ctx, in, opts) + return &AdminServiceClient_UpdateNamedEntity{Call: c_call} +} + +func (_m *AdminServiceClient) OnUpdateNamedEntityMatch(matchers ...interface{}) *AdminServiceClient_UpdateNamedEntity { + c_call := _m.On("UpdateNamedEntity", matchers...) + return &AdminServiceClient_UpdateNamedEntity{Call: c_call} +} + +// UpdateNamedEntity provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.NamedEntityUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityUpdateRequest, ...grpc.CallOption) *admin.NamedEntityUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityUpdateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_UpdateProject struct { + *mock.Call +} + +func (_m AdminServiceClient_UpdateProject) Return(_a0 *admin.ProjectUpdateResponse, _a1 error) *AdminServiceClient_UpdateProject { + return &AdminServiceClient_UpdateProject{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnUpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) *AdminServiceClient_UpdateProject { + c_call := _m.On("UpdateProject", ctx, in, opts) + return &AdminServiceClient_UpdateProject{Call: c_call} +} + +func (_m *AdminServiceClient) OnUpdateProjectMatch(matchers ...interface{}) *AdminServiceClient_UpdateProject { + c_call := _m.On("UpdateProject", matchers...) + return &AdminServiceClient_UpdateProject{Call: c_call} +} + +// UpdateProject provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.Project, ...grpc.CallOption) *admin.ProjectUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.Project, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_UpdateProjectAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_UpdateProjectAttributes) Return(_a0 *admin.ProjectAttributesUpdateResponse, _a1 error) *AdminServiceClient_UpdateProjectAttributes { + return &AdminServiceClient_UpdateProjectAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnUpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) *AdminServiceClient_UpdateProjectAttributes { + c_call := _m.On("UpdateProjectAttributes", ctx, in, opts) + return &AdminServiceClient_UpdateProjectAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnUpdateProjectAttributesMatch(matchers ...interface{}) *AdminServiceClient_UpdateProjectAttributes { + c_call := _m.On("UpdateProjectAttributes", matchers...) + return &AdminServiceClient_UpdateProjectAttributes{Call: c_call} +} + +// UpdateProjectAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectAttributesUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectAttributesUpdateRequest, ...grpc.CallOption) *admin.ProjectAttributesUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectAttributesUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectAttributesUpdateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_UpdateProjectDomainAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_UpdateProjectDomainAttributes) Return(_a0 *admin.ProjectDomainAttributesUpdateResponse, _a1 error) *AdminServiceClient_UpdateProjectDomainAttributes { + return &AdminServiceClient_UpdateProjectDomainAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnUpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) *AdminServiceClient_UpdateProjectDomainAttributes { + c_call := _m.On("UpdateProjectDomainAttributes", ctx, in, opts) + return &AdminServiceClient_UpdateProjectDomainAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnUpdateProjectDomainAttributesMatch(matchers ...interface{}) *AdminServiceClient_UpdateProjectDomainAttributes { + c_call := _m.On("UpdateProjectDomainAttributes", matchers...) + return &AdminServiceClient_UpdateProjectDomainAttributes{Call: c_call} +} + +// UpdateProjectDomainAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.ProjectDomainAttributesUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectDomainAttributesUpdateRequest, ...grpc.CallOption) *admin.ProjectDomainAttributesUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectDomainAttributesUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectDomainAttributesUpdateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceClient_UpdateWorkflowAttributes struct { + *mock.Call +} + +func (_m AdminServiceClient_UpdateWorkflowAttributes) Return(_a0 *admin.WorkflowAttributesUpdateResponse, _a1 error) *AdminServiceClient_UpdateWorkflowAttributes { + return &AdminServiceClient_UpdateWorkflowAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceClient) OnUpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) *AdminServiceClient_UpdateWorkflowAttributes { + c_call := _m.On("UpdateWorkflowAttributes", ctx, in, opts) + return &AdminServiceClient_UpdateWorkflowAttributes{Call: c_call} +} + +func (_m *AdminServiceClient) OnUpdateWorkflowAttributesMatch(matchers ...interface{}) *AdminServiceClient_UpdateWorkflowAttributes { + c_call := _m.On("UpdateWorkflowAttributes", matchers...) + return &AdminServiceClient_UpdateWorkflowAttributes{Call: c_call} +} + +// UpdateWorkflowAttributes provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.WorkflowAttributesUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowAttributesUpdateRequest, ...grpc.CallOption) *admin.WorkflowAttributesUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowAttributesUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowAttributesUpdateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AdminServiceServer.go b/flyteidl/clients/go/admin/mocks/AdminServiceServer.go new file mode 100644 index 0000000000..cf06b26b14 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AdminServiceServer.go @@ -0,0 +1,2189 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + mock "github.com/stretchr/testify/mock" +) + +// AdminServiceServer is an autogenerated mock type for the AdminServiceServer type +type AdminServiceServer struct { + mock.Mock +} + +type AdminServiceServer_CreateExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_CreateExecution) Return(_a0 *admin.ExecutionCreateResponse, _a1 error) *AdminServiceServer_CreateExecution { + return &AdminServiceServer_CreateExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnCreateExecution(_a0 context.Context, _a1 *admin.ExecutionCreateRequest) *AdminServiceServer_CreateExecution { + c_call := _m.On("CreateExecution", _a0, _a1) + return &AdminServiceServer_CreateExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnCreateExecutionMatch(matchers ...interface{}) *AdminServiceServer_CreateExecution { + c_call := _m.On("CreateExecution", matchers...) + return &AdminServiceServer_CreateExecution{Call: c_call} +} + +// CreateExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) CreateExecution(_a0 context.Context, _a1 *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionCreateRequest) *admin.ExecutionCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionCreateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_CreateLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceServer_CreateLaunchPlan) Return(_a0 *admin.LaunchPlanCreateResponse, _a1 error) *AdminServiceServer_CreateLaunchPlan { + return &AdminServiceServer_CreateLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnCreateLaunchPlan(_a0 context.Context, _a1 *admin.LaunchPlanCreateRequest) *AdminServiceServer_CreateLaunchPlan { + c_call := _m.On("CreateLaunchPlan", _a0, _a1) + return &AdminServiceServer_CreateLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceServer) OnCreateLaunchPlanMatch(matchers ...interface{}) *AdminServiceServer_CreateLaunchPlan { + c_call := _m.On("CreateLaunchPlan", matchers...) + return &AdminServiceServer_CreateLaunchPlan{Call: c_call} +} + +// CreateLaunchPlan provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) CreateLaunchPlan(_a0 context.Context, _a1 *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.LaunchPlanCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.LaunchPlanCreateRequest) *admin.LaunchPlanCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.LaunchPlanCreateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_CreateNodeEvent struct { + *mock.Call +} + +func (_m AdminServiceServer_CreateNodeEvent) Return(_a0 *admin.NodeExecutionEventResponse, _a1 error) *AdminServiceServer_CreateNodeEvent { + return &AdminServiceServer_CreateNodeEvent{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnCreateNodeEvent(_a0 context.Context, _a1 *admin.NodeExecutionEventRequest) *AdminServiceServer_CreateNodeEvent { + c_call := _m.On("CreateNodeEvent", _a0, _a1) + return &AdminServiceServer_CreateNodeEvent{Call: c_call} +} + +func (_m *AdminServiceServer) OnCreateNodeEventMatch(matchers ...interface{}) *AdminServiceServer_CreateNodeEvent { + c_call := _m.On("CreateNodeEvent", matchers...) + return &AdminServiceServer_CreateNodeEvent{Call: c_call} +} + +// CreateNodeEvent provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) CreateNodeEvent(_a0 context.Context, _a1 *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NodeExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionEventRequest) *admin.NodeExecutionEventResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionEventRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_CreateTask struct { + *mock.Call +} + +func (_m AdminServiceServer_CreateTask) Return(_a0 *admin.TaskCreateResponse, _a1 error) *AdminServiceServer_CreateTask { + return &AdminServiceServer_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnCreateTask(_a0 context.Context, _a1 *admin.TaskCreateRequest) *AdminServiceServer_CreateTask { + c_call := _m.On("CreateTask", _a0, _a1) + return &AdminServiceServer_CreateTask{Call: c_call} +} + +func (_m *AdminServiceServer) OnCreateTaskMatch(matchers ...interface{}) *AdminServiceServer_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AdminServiceServer_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) CreateTask(_a0 context.Context, _a1 *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.TaskCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskCreateRequest) *admin.TaskCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskCreateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_CreateTaskEvent struct { + *mock.Call +} + +func (_m AdminServiceServer_CreateTaskEvent) Return(_a0 *admin.TaskExecutionEventResponse, _a1 error) *AdminServiceServer_CreateTaskEvent { + return &AdminServiceServer_CreateTaskEvent{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnCreateTaskEvent(_a0 context.Context, _a1 *admin.TaskExecutionEventRequest) *AdminServiceServer_CreateTaskEvent { + c_call := _m.On("CreateTaskEvent", _a0, _a1) + return &AdminServiceServer_CreateTaskEvent{Call: c_call} +} + +func (_m *AdminServiceServer) OnCreateTaskEventMatch(matchers ...interface{}) *AdminServiceServer_CreateTaskEvent { + c_call := _m.On("CreateTaskEvent", matchers...) + return &AdminServiceServer_CreateTaskEvent{Call: c_call} +} + +// CreateTaskEvent provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) CreateTaskEvent(_a0 context.Context, _a1 *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.TaskExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionEventRequest) *admin.TaskExecutionEventResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionEventRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_CreateWorkflow struct { + *mock.Call +} + +func (_m AdminServiceServer_CreateWorkflow) Return(_a0 *admin.WorkflowCreateResponse, _a1 error) *AdminServiceServer_CreateWorkflow { + return &AdminServiceServer_CreateWorkflow{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnCreateWorkflow(_a0 context.Context, _a1 *admin.WorkflowCreateRequest) *AdminServiceServer_CreateWorkflow { + c_call := _m.On("CreateWorkflow", _a0, _a1) + return &AdminServiceServer_CreateWorkflow{Call: c_call} +} + +func (_m *AdminServiceServer) OnCreateWorkflowMatch(matchers ...interface{}) *AdminServiceServer_CreateWorkflow { + c_call := _m.On("CreateWorkflow", matchers...) + return &AdminServiceServer_CreateWorkflow{Call: c_call} +} + +// CreateWorkflow provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) CreateWorkflow(_a0 context.Context, _a1 *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowCreateRequest) *admin.WorkflowCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowCreateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_CreateWorkflowEvent struct { + *mock.Call +} + +func (_m AdminServiceServer_CreateWorkflowEvent) Return(_a0 *admin.WorkflowExecutionEventResponse, _a1 error) *AdminServiceServer_CreateWorkflowEvent { + return &AdminServiceServer_CreateWorkflowEvent{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnCreateWorkflowEvent(_a0 context.Context, _a1 *admin.WorkflowExecutionEventRequest) *AdminServiceServer_CreateWorkflowEvent { + c_call := _m.On("CreateWorkflowEvent", _a0, _a1) + return &AdminServiceServer_CreateWorkflowEvent{Call: c_call} +} + +func (_m *AdminServiceServer) OnCreateWorkflowEventMatch(matchers ...interface{}) *AdminServiceServer_CreateWorkflowEvent { + c_call := _m.On("CreateWorkflowEvent", matchers...) + return &AdminServiceServer_CreateWorkflowEvent{Call: c_call} +} + +// CreateWorkflowEvent provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) CreateWorkflowEvent(_a0 context.Context, _a1 *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionEventRequest) *admin.WorkflowExecutionEventResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionEventRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_DeleteProjectAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_DeleteProjectAttributes) Return(_a0 *admin.ProjectAttributesDeleteResponse, _a1 error) *AdminServiceServer_DeleteProjectAttributes { + return &AdminServiceServer_DeleteProjectAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnDeleteProjectAttributes(_a0 context.Context, _a1 *admin.ProjectAttributesDeleteRequest) *AdminServiceServer_DeleteProjectAttributes { + c_call := _m.On("DeleteProjectAttributes", _a0, _a1) + return &AdminServiceServer_DeleteProjectAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnDeleteProjectAttributesMatch(matchers ...interface{}) *AdminServiceServer_DeleteProjectAttributes { + c_call := _m.On("DeleteProjectAttributes", matchers...) + return &AdminServiceServer_DeleteProjectAttributes{Call: c_call} +} + +// DeleteProjectAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) DeleteProjectAttributes(_a0 context.Context, _a1 *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectAttributesDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectAttributesDeleteRequest) *admin.ProjectAttributesDeleteResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectAttributesDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectAttributesDeleteRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_DeleteProjectDomainAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_DeleteProjectDomainAttributes) Return(_a0 *admin.ProjectDomainAttributesDeleteResponse, _a1 error) *AdminServiceServer_DeleteProjectDomainAttributes { + return &AdminServiceServer_DeleteProjectDomainAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnDeleteProjectDomainAttributes(_a0 context.Context, _a1 *admin.ProjectDomainAttributesDeleteRequest) *AdminServiceServer_DeleteProjectDomainAttributes { + c_call := _m.On("DeleteProjectDomainAttributes", _a0, _a1) + return &AdminServiceServer_DeleteProjectDomainAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnDeleteProjectDomainAttributesMatch(matchers ...interface{}) *AdminServiceServer_DeleteProjectDomainAttributes { + c_call := _m.On("DeleteProjectDomainAttributes", matchers...) + return &AdminServiceServer_DeleteProjectDomainAttributes{Call: c_call} +} + +// DeleteProjectDomainAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) DeleteProjectDomainAttributes(_a0 context.Context, _a1 *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectDomainAttributesDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectDomainAttributesDeleteRequest) *admin.ProjectDomainAttributesDeleteResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectDomainAttributesDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectDomainAttributesDeleteRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_DeleteWorkflowAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_DeleteWorkflowAttributes) Return(_a0 *admin.WorkflowAttributesDeleteResponse, _a1 error) *AdminServiceServer_DeleteWorkflowAttributes { + return &AdminServiceServer_DeleteWorkflowAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnDeleteWorkflowAttributes(_a0 context.Context, _a1 *admin.WorkflowAttributesDeleteRequest) *AdminServiceServer_DeleteWorkflowAttributes { + c_call := _m.On("DeleteWorkflowAttributes", _a0, _a1) + return &AdminServiceServer_DeleteWorkflowAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnDeleteWorkflowAttributesMatch(matchers ...interface{}) *AdminServiceServer_DeleteWorkflowAttributes { + c_call := _m.On("DeleteWorkflowAttributes", matchers...) + return &AdminServiceServer_DeleteWorkflowAttributes{Call: c_call} +} + +// DeleteWorkflowAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) DeleteWorkflowAttributes(_a0 context.Context, _a1 *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowAttributesDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowAttributesDeleteRequest) *admin.WorkflowAttributesDeleteResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowAttributesDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowAttributesDeleteRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetActiveLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceServer_GetActiveLaunchPlan) Return(_a0 *admin.LaunchPlan, _a1 error) *AdminServiceServer_GetActiveLaunchPlan { + return &AdminServiceServer_GetActiveLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetActiveLaunchPlan(_a0 context.Context, _a1 *admin.ActiveLaunchPlanRequest) *AdminServiceServer_GetActiveLaunchPlan { + c_call := _m.On("GetActiveLaunchPlan", _a0, _a1) + return &AdminServiceServer_GetActiveLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetActiveLaunchPlanMatch(matchers ...interface{}) *AdminServiceServer_GetActiveLaunchPlan { + c_call := _m.On("GetActiveLaunchPlan", matchers...) + return &AdminServiceServer_GetActiveLaunchPlan{Call: c_call} +} + +// GetActiveLaunchPlan provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetActiveLaunchPlan(_a0 context.Context, _a1 *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.LaunchPlan + if rf, ok := ret.Get(0).(func(context.Context, *admin.ActiveLaunchPlanRequest) *admin.LaunchPlan); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlan) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ActiveLaunchPlanRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetDescriptionEntity struct { + *mock.Call +} + +func (_m AdminServiceServer_GetDescriptionEntity) Return(_a0 *admin.DescriptionEntity, _a1 error) *AdminServiceServer_GetDescriptionEntity { + return &AdminServiceServer_GetDescriptionEntity{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetDescriptionEntity(_a0 context.Context, _a1 *admin.ObjectGetRequest) *AdminServiceServer_GetDescriptionEntity { + c_call := _m.On("GetDescriptionEntity", _a0, _a1) + return &AdminServiceServer_GetDescriptionEntity{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetDescriptionEntityMatch(matchers ...interface{}) *AdminServiceServer_GetDescriptionEntity { + c_call := _m.On("GetDescriptionEntity", matchers...) + return &AdminServiceServer_GetDescriptionEntity{Call: c_call} +} + +// GetDescriptionEntity provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetDescriptionEntity(_a0 context.Context, _a1 *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.DescriptionEntity + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest) *admin.DescriptionEntity); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DescriptionEntity) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_GetExecution) Return(_a0 *admin.Execution, _a1 error) *AdminServiceServer_GetExecution { + return &AdminServiceServer_GetExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetExecution(_a0 context.Context, _a1 *admin.WorkflowExecutionGetRequest) *AdminServiceServer_GetExecution { + c_call := _m.On("GetExecution", _a0, _a1) + return &AdminServiceServer_GetExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetExecutionMatch(matchers ...interface{}) *AdminServiceServer_GetExecution { + c_call := _m.On("GetExecution", matchers...) + return &AdminServiceServer_GetExecution{Call: c_call} +} + +// GetExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetExecution(_a0 context.Context, _a1 *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.Execution + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetRequest) *admin.Execution); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Execution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetExecutionData struct { + *mock.Call +} + +func (_m AdminServiceServer_GetExecutionData) Return(_a0 *admin.WorkflowExecutionGetDataResponse, _a1 error) *AdminServiceServer_GetExecutionData { + return &AdminServiceServer_GetExecutionData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetExecutionData(_a0 context.Context, _a1 *admin.WorkflowExecutionGetDataRequest) *AdminServiceServer_GetExecutionData { + c_call := _m.On("GetExecutionData", _a0, _a1) + return &AdminServiceServer_GetExecutionData{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetExecutionDataMatch(matchers ...interface{}) *AdminServiceServer_GetExecutionData { + c_call := _m.On("GetExecutionData", matchers...) + return &AdminServiceServer_GetExecutionData{Call: c_call} +} + +// GetExecutionData provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetExecutionData(_a0 context.Context, _a1 *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetDataRequest) *admin.WorkflowExecutionGetDataResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetDataRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetExecutionMetrics struct { + *mock.Call +} + +func (_m AdminServiceServer_GetExecutionMetrics) Return(_a0 *admin.WorkflowExecutionGetMetricsResponse, _a1 error) *AdminServiceServer_GetExecutionMetrics { + return &AdminServiceServer_GetExecutionMetrics{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetExecutionMetrics(_a0 context.Context, _a1 *admin.WorkflowExecutionGetMetricsRequest) *AdminServiceServer_GetExecutionMetrics { + c_call := _m.On("GetExecutionMetrics", _a0, _a1) + return &AdminServiceServer_GetExecutionMetrics{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetExecutionMetricsMatch(matchers ...interface{}) *AdminServiceServer_GetExecutionMetrics { + c_call := _m.On("GetExecutionMetrics", matchers...) + return &AdminServiceServer_GetExecutionMetrics{Call: c_call} +} + +// GetExecutionMetrics provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetExecutionMetrics(_a0 context.Context, _a1 *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowExecutionGetMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetMetricsRequest) *admin.WorkflowExecutionGetMetricsResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionGetMetricsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetMetricsRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceServer_GetLaunchPlan) Return(_a0 *admin.LaunchPlan, _a1 error) *AdminServiceServer_GetLaunchPlan { + return &AdminServiceServer_GetLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetLaunchPlan(_a0 context.Context, _a1 *admin.ObjectGetRequest) *AdminServiceServer_GetLaunchPlan { + c_call := _m.On("GetLaunchPlan", _a0, _a1) + return &AdminServiceServer_GetLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetLaunchPlanMatch(matchers ...interface{}) *AdminServiceServer_GetLaunchPlan { + c_call := _m.On("GetLaunchPlan", matchers...) + return &AdminServiceServer_GetLaunchPlan{Call: c_call} +} + +// GetLaunchPlan provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetLaunchPlan(_a0 context.Context, _a1 *admin.ObjectGetRequest) (*admin.LaunchPlan, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.LaunchPlan + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest) *admin.LaunchPlan); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlan) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetNamedEntity struct { + *mock.Call +} + +func (_m AdminServiceServer_GetNamedEntity) Return(_a0 *admin.NamedEntity, _a1 error) *AdminServiceServer_GetNamedEntity { + return &AdminServiceServer_GetNamedEntity{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetNamedEntity(_a0 context.Context, _a1 *admin.NamedEntityGetRequest) *AdminServiceServer_GetNamedEntity { + c_call := _m.On("GetNamedEntity", _a0, _a1) + return &AdminServiceServer_GetNamedEntity{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetNamedEntityMatch(matchers ...interface{}) *AdminServiceServer_GetNamedEntity { + c_call := _m.On("GetNamedEntity", matchers...) + return &AdminServiceServer_GetNamedEntity{Call: c_call} +} + +// GetNamedEntity provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetNamedEntity(_a0 context.Context, _a1 *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NamedEntity + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityGetRequest) *admin.NamedEntity); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntity) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetNodeExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_GetNodeExecution) Return(_a0 *admin.NodeExecution, _a1 error) *AdminServiceServer_GetNodeExecution { + return &AdminServiceServer_GetNodeExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetNodeExecution(_a0 context.Context, _a1 *admin.NodeExecutionGetRequest) *AdminServiceServer_GetNodeExecution { + c_call := _m.On("GetNodeExecution", _a0, _a1) + return &AdminServiceServer_GetNodeExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetNodeExecutionMatch(matchers ...interface{}) *AdminServiceServer_GetNodeExecution { + c_call := _m.On("GetNodeExecution", matchers...) + return &AdminServiceServer_GetNodeExecution{Call: c_call} +} + +// GetNodeExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetNodeExecution(_a0 context.Context, _a1 *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NodeExecution + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionGetRequest) *admin.NodeExecution); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetNodeExecutionData struct { + *mock.Call +} + +func (_m AdminServiceServer_GetNodeExecutionData) Return(_a0 *admin.NodeExecutionGetDataResponse, _a1 error) *AdminServiceServer_GetNodeExecutionData { + return &AdminServiceServer_GetNodeExecutionData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetNodeExecutionData(_a0 context.Context, _a1 *admin.NodeExecutionGetDataRequest) *AdminServiceServer_GetNodeExecutionData { + c_call := _m.On("GetNodeExecutionData", _a0, _a1) + return &AdminServiceServer_GetNodeExecutionData{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetNodeExecutionDataMatch(matchers ...interface{}) *AdminServiceServer_GetNodeExecutionData { + c_call := _m.On("GetNodeExecutionData", matchers...) + return &AdminServiceServer_GetNodeExecutionData{Call: c_call} +} + +// GetNodeExecutionData provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetNodeExecutionData(_a0 context.Context, _a1 *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NodeExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionGetDataRequest) *admin.NodeExecutionGetDataResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionGetDataRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetProjectAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_GetProjectAttributes) Return(_a0 *admin.ProjectAttributesGetResponse, _a1 error) *AdminServiceServer_GetProjectAttributes { + return &AdminServiceServer_GetProjectAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetProjectAttributes(_a0 context.Context, _a1 *admin.ProjectAttributesGetRequest) *AdminServiceServer_GetProjectAttributes { + c_call := _m.On("GetProjectAttributes", _a0, _a1) + return &AdminServiceServer_GetProjectAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetProjectAttributesMatch(matchers ...interface{}) *AdminServiceServer_GetProjectAttributes { + c_call := _m.On("GetProjectAttributes", matchers...) + return &AdminServiceServer_GetProjectAttributes{Call: c_call} +} + +// GetProjectAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetProjectAttributes(_a0 context.Context, _a1 *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectAttributesGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectAttributesGetRequest) *admin.ProjectAttributesGetResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectAttributesGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectAttributesGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetProjectDomainAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_GetProjectDomainAttributes) Return(_a0 *admin.ProjectDomainAttributesGetResponse, _a1 error) *AdminServiceServer_GetProjectDomainAttributes { + return &AdminServiceServer_GetProjectDomainAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetProjectDomainAttributes(_a0 context.Context, _a1 *admin.ProjectDomainAttributesGetRequest) *AdminServiceServer_GetProjectDomainAttributes { + c_call := _m.On("GetProjectDomainAttributes", _a0, _a1) + return &AdminServiceServer_GetProjectDomainAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetProjectDomainAttributesMatch(matchers ...interface{}) *AdminServiceServer_GetProjectDomainAttributes { + c_call := _m.On("GetProjectDomainAttributes", matchers...) + return &AdminServiceServer_GetProjectDomainAttributes{Call: c_call} +} + +// GetProjectDomainAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetProjectDomainAttributes(_a0 context.Context, _a1 *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectDomainAttributesGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectDomainAttributesGetRequest) *admin.ProjectDomainAttributesGetResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectDomainAttributesGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectDomainAttributesGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetTask struct { + *mock.Call +} + +func (_m AdminServiceServer_GetTask) Return(_a0 *admin.Task, _a1 error) *AdminServiceServer_GetTask { + return &AdminServiceServer_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetTask(_a0 context.Context, _a1 *admin.ObjectGetRequest) *AdminServiceServer_GetTask { + c_call := _m.On("GetTask", _a0, _a1) + return &AdminServiceServer_GetTask{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetTaskMatch(matchers ...interface{}) *AdminServiceServer_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AdminServiceServer_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetTask(_a0 context.Context, _a1 *admin.ObjectGetRequest) (*admin.Task, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.Task + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest) *admin.Task); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Task) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetTaskExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_GetTaskExecution) Return(_a0 *admin.TaskExecution, _a1 error) *AdminServiceServer_GetTaskExecution { + return &AdminServiceServer_GetTaskExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetTaskExecution(_a0 context.Context, _a1 *admin.TaskExecutionGetRequest) *AdminServiceServer_GetTaskExecution { + c_call := _m.On("GetTaskExecution", _a0, _a1) + return &AdminServiceServer_GetTaskExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetTaskExecutionMatch(matchers ...interface{}) *AdminServiceServer_GetTaskExecution { + c_call := _m.On("GetTaskExecution", matchers...) + return &AdminServiceServer_GetTaskExecution{Call: c_call} +} + +// GetTaskExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetTaskExecution(_a0 context.Context, _a1 *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.TaskExecution + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionGetRequest) *admin.TaskExecution); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetTaskExecutionData struct { + *mock.Call +} + +func (_m AdminServiceServer_GetTaskExecutionData) Return(_a0 *admin.TaskExecutionGetDataResponse, _a1 error) *AdminServiceServer_GetTaskExecutionData { + return &AdminServiceServer_GetTaskExecutionData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetTaskExecutionData(_a0 context.Context, _a1 *admin.TaskExecutionGetDataRequest) *AdminServiceServer_GetTaskExecutionData { + c_call := _m.On("GetTaskExecutionData", _a0, _a1) + return &AdminServiceServer_GetTaskExecutionData{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetTaskExecutionDataMatch(matchers ...interface{}) *AdminServiceServer_GetTaskExecutionData { + c_call := _m.On("GetTaskExecutionData", matchers...) + return &AdminServiceServer_GetTaskExecutionData{Call: c_call} +} + +// GetTaskExecutionData provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetTaskExecutionData(_a0 context.Context, _a1 *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.TaskExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionGetDataRequest) *admin.TaskExecutionGetDataResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionGetDataRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetVersion struct { + *mock.Call +} + +func (_m AdminServiceServer_GetVersion) Return(_a0 *admin.GetVersionResponse, _a1 error) *AdminServiceServer_GetVersion { + return &AdminServiceServer_GetVersion{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetVersion(_a0 context.Context, _a1 *admin.GetVersionRequest) *AdminServiceServer_GetVersion { + c_call := _m.On("GetVersion", _a0, _a1) + return &AdminServiceServer_GetVersion{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetVersionMatch(matchers ...interface{}) *AdminServiceServer_GetVersion { + c_call := _m.On("GetVersion", matchers...) + return &AdminServiceServer_GetVersion{Call: c_call} +} + +// GetVersion provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetVersion(_a0 context.Context, _a1 *admin.GetVersionRequest) (*admin.GetVersionResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetVersionResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetVersionRequest) *admin.GetVersionResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetVersionResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetVersionRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetWorkflow struct { + *mock.Call +} + +func (_m AdminServiceServer_GetWorkflow) Return(_a0 *admin.Workflow, _a1 error) *AdminServiceServer_GetWorkflow { + return &AdminServiceServer_GetWorkflow{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetWorkflow(_a0 context.Context, _a1 *admin.ObjectGetRequest) *AdminServiceServer_GetWorkflow { + c_call := _m.On("GetWorkflow", _a0, _a1) + return &AdminServiceServer_GetWorkflow{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetWorkflowMatch(matchers ...interface{}) *AdminServiceServer_GetWorkflow { + c_call := _m.On("GetWorkflow", matchers...) + return &AdminServiceServer_GetWorkflow{Call: c_call} +} + +// GetWorkflow provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetWorkflow(_a0 context.Context, _a1 *admin.ObjectGetRequest) (*admin.Workflow, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.Workflow + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest) *admin.Workflow); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Workflow) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_GetWorkflowAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_GetWorkflowAttributes) Return(_a0 *admin.WorkflowAttributesGetResponse, _a1 error) *AdminServiceServer_GetWorkflowAttributes { + return &AdminServiceServer_GetWorkflowAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnGetWorkflowAttributes(_a0 context.Context, _a1 *admin.WorkflowAttributesGetRequest) *AdminServiceServer_GetWorkflowAttributes { + c_call := _m.On("GetWorkflowAttributes", _a0, _a1) + return &AdminServiceServer_GetWorkflowAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnGetWorkflowAttributesMatch(matchers ...interface{}) *AdminServiceServer_GetWorkflowAttributes { + c_call := _m.On("GetWorkflowAttributes", matchers...) + return &AdminServiceServer_GetWorkflowAttributes{Call: c_call} +} + +// GetWorkflowAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) GetWorkflowAttributes(_a0 context.Context, _a1 *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowAttributesGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowAttributesGetRequest) *admin.WorkflowAttributesGetResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowAttributesGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowAttributesGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListActiveLaunchPlans struct { + *mock.Call +} + +func (_m AdminServiceServer_ListActiveLaunchPlans) Return(_a0 *admin.LaunchPlanList, _a1 error) *AdminServiceServer_ListActiveLaunchPlans { + return &AdminServiceServer_ListActiveLaunchPlans{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListActiveLaunchPlans(_a0 context.Context, _a1 *admin.ActiveLaunchPlanListRequest) *AdminServiceServer_ListActiveLaunchPlans { + c_call := _m.On("ListActiveLaunchPlans", _a0, _a1) + return &AdminServiceServer_ListActiveLaunchPlans{Call: c_call} +} + +func (_m *AdminServiceServer) OnListActiveLaunchPlansMatch(matchers ...interface{}) *AdminServiceServer_ListActiveLaunchPlans { + c_call := _m.On("ListActiveLaunchPlans", matchers...) + return &AdminServiceServer_ListActiveLaunchPlans{Call: c_call} +} + +// ListActiveLaunchPlans provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListActiveLaunchPlans(_a0 context.Context, _a1 *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.LaunchPlanList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ActiveLaunchPlanListRequest) *admin.LaunchPlanList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ActiveLaunchPlanListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListDescriptionEntities struct { + *mock.Call +} + +func (_m AdminServiceServer_ListDescriptionEntities) Return(_a0 *admin.DescriptionEntityList, _a1 error) *AdminServiceServer_ListDescriptionEntities { + return &AdminServiceServer_ListDescriptionEntities{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListDescriptionEntities(_a0 context.Context, _a1 *admin.DescriptionEntityListRequest) *AdminServiceServer_ListDescriptionEntities { + c_call := _m.On("ListDescriptionEntities", _a0, _a1) + return &AdminServiceServer_ListDescriptionEntities{Call: c_call} +} + +func (_m *AdminServiceServer) OnListDescriptionEntitiesMatch(matchers ...interface{}) *AdminServiceServer_ListDescriptionEntities { + c_call := _m.On("ListDescriptionEntities", matchers...) + return &AdminServiceServer_ListDescriptionEntities{Call: c_call} +} + +// ListDescriptionEntities provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListDescriptionEntities(_a0 context.Context, _a1 *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.DescriptionEntityList + if rf, ok := ret.Get(0).(func(context.Context, *admin.DescriptionEntityListRequest) *admin.DescriptionEntityList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DescriptionEntityList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.DescriptionEntityListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListExecutions struct { + *mock.Call +} + +func (_m AdminServiceServer_ListExecutions) Return(_a0 *admin.ExecutionList, _a1 error) *AdminServiceServer_ListExecutions { + return &AdminServiceServer_ListExecutions{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListExecutions(_a0 context.Context, _a1 *admin.ResourceListRequest) *AdminServiceServer_ListExecutions { + c_call := _m.On("ListExecutions", _a0, _a1) + return &AdminServiceServer_ListExecutions{Call: c_call} +} + +func (_m *AdminServiceServer) OnListExecutionsMatch(matchers ...interface{}) *AdminServiceServer_ListExecutions { + c_call := _m.On("ListExecutions", matchers...) + return &AdminServiceServer_ListExecutions{Call: c_call} +} + +// ListExecutions provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListExecutions(_a0 context.Context, _a1 *admin.ResourceListRequest) (*admin.ExecutionList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest) *admin.ExecutionList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListLaunchPlanIds struct { + *mock.Call +} + +func (_m AdminServiceServer_ListLaunchPlanIds) Return(_a0 *admin.NamedEntityIdentifierList, _a1 error) *AdminServiceServer_ListLaunchPlanIds { + return &AdminServiceServer_ListLaunchPlanIds{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListLaunchPlanIds(_a0 context.Context, _a1 *admin.NamedEntityIdentifierListRequest) *AdminServiceServer_ListLaunchPlanIds { + c_call := _m.On("ListLaunchPlanIds", _a0, _a1) + return &AdminServiceServer_ListLaunchPlanIds{Call: c_call} +} + +func (_m *AdminServiceServer) OnListLaunchPlanIdsMatch(matchers ...interface{}) *AdminServiceServer_ListLaunchPlanIds { + c_call := _m.On("ListLaunchPlanIds", matchers...) + return &AdminServiceServer_ListLaunchPlanIds{Call: c_call} +} + +// ListLaunchPlanIds provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListLaunchPlanIds(_a0 context.Context, _a1 *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest) *admin.NamedEntityIdentifierList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListLaunchPlans struct { + *mock.Call +} + +func (_m AdminServiceServer_ListLaunchPlans) Return(_a0 *admin.LaunchPlanList, _a1 error) *AdminServiceServer_ListLaunchPlans { + return &AdminServiceServer_ListLaunchPlans{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListLaunchPlans(_a0 context.Context, _a1 *admin.ResourceListRequest) *AdminServiceServer_ListLaunchPlans { + c_call := _m.On("ListLaunchPlans", _a0, _a1) + return &AdminServiceServer_ListLaunchPlans{Call: c_call} +} + +func (_m *AdminServiceServer) OnListLaunchPlansMatch(matchers ...interface{}) *AdminServiceServer_ListLaunchPlans { + c_call := _m.On("ListLaunchPlans", matchers...) + return &AdminServiceServer_ListLaunchPlans{Call: c_call} +} + +// ListLaunchPlans provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListLaunchPlans(_a0 context.Context, _a1 *admin.ResourceListRequest) (*admin.LaunchPlanList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.LaunchPlanList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest) *admin.LaunchPlanList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListMatchableAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_ListMatchableAttributes) Return(_a0 *admin.ListMatchableAttributesResponse, _a1 error) *AdminServiceServer_ListMatchableAttributes { + return &AdminServiceServer_ListMatchableAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListMatchableAttributes(_a0 context.Context, _a1 *admin.ListMatchableAttributesRequest) *AdminServiceServer_ListMatchableAttributes { + c_call := _m.On("ListMatchableAttributes", _a0, _a1) + return &AdminServiceServer_ListMatchableAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnListMatchableAttributesMatch(matchers ...interface{}) *AdminServiceServer_ListMatchableAttributes { + c_call := _m.On("ListMatchableAttributes", matchers...) + return &AdminServiceServer_ListMatchableAttributes{Call: c_call} +} + +// ListMatchableAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListMatchableAttributes(_a0 context.Context, _a1 *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ListMatchableAttributesResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ListMatchableAttributesRequest) *admin.ListMatchableAttributesResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ListMatchableAttributesResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ListMatchableAttributesRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListNamedEntities struct { + *mock.Call +} + +func (_m AdminServiceServer_ListNamedEntities) Return(_a0 *admin.NamedEntityList, _a1 error) *AdminServiceServer_ListNamedEntities { + return &AdminServiceServer_ListNamedEntities{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListNamedEntities(_a0 context.Context, _a1 *admin.NamedEntityListRequest) *AdminServiceServer_ListNamedEntities { + c_call := _m.On("ListNamedEntities", _a0, _a1) + return &AdminServiceServer_ListNamedEntities{Call: c_call} +} + +func (_m *AdminServiceServer) OnListNamedEntitiesMatch(matchers ...interface{}) *AdminServiceServer_ListNamedEntities { + c_call := _m.On("ListNamedEntities", matchers...) + return &AdminServiceServer_ListNamedEntities{Call: c_call} +} + +// ListNamedEntities provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListNamedEntities(_a0 context.Context, _a1 *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NamedEntityList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityListRequest) *admin.NamedEntityList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListNodeExecutions struct { + *mock.Call +} + +func (_m AdminServiceServer_ListNodeExecutions) Return(_a0 *admin.NodeExecutionList, _a1 error) *AdminServiceServer_ListNodeExecutions { + return &AdminServiceServer_ListNodeExecutions{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListNodeExecutions(_a0 context.Context, _a1 *admin.NodeExecutionListRequest) *AdminServiceServer_ListNodeExecutions { + c_call := _m.On("ListNodeExecutions", _a0, _a1) + return &AdminServiceServer_ListNodeExecutions{Call: c_call} +} + +func (_m *AdminServiceServer) OnListNodeExecutionsMatch(matchers ...interface{}) *AdminServiceServer_ListNodeExecutions { + c_call := _m.On("ListNodeExecutions", matchers...) + return &AdminServiceServer_ListNodeExecutions{Call: c_call} +} + +// ListNodeExecutions provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListNodeExecutions(_a0 context.Context, _a1 *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NodeExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionListRequest) *admin.NodeExecutionList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListNodeExecutionsForTask struct { + *mock.Call +} + +func (_m AdminServiceServer_ListNodeExecutionsForTask) Return(_a0 *admin.NodeExecutionList, _a1 error) *AdminServiceServer_ListNodeExecutionsForTask { + return &AdminServiceServer_ListNodeExecutionsForTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListNodeExecutionsForTask(_a0 context.Context, _a1 *admin.NodeExecutionForTaskListRequest) *AdminServiceServer_ListNodeExecutionsForTask { + c_call := _m.On("ListNodeExecutionsForTask", _a0, _a1) + return &AdminServiceServer_ListNodeExecutionsForTask{Call: c_call} +} + +func (_m *AdminServiceServer) OnListNodeExecutionsForTaskMatch(matchers ...interface{}) *AdminServiceServer_ListNodeExecutionsForTask { + c_call := _m.On("ListNodeExecutionsForTask", matchers...) + return &AdminServiceServer_ListNodeExecutionsForTask{Call: c_call} +} + +// ListNodeExecutionsForTask provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListNodeExecutionsForTask(_a0 context.Context, _a1 *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NodeExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionForTaskListRequest) *admin.NodeExecutionList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionForTaskListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListProjects struct { + *mock.Call +} + +func (_m AdminServiceServer_ListProjects) Return(_a0 *admin.Projects, _a1 error) *AdminServiceServer_ListProjects { + return &AdminServiceServer_ListProjects{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListProjects(_a0 context.Context, _a1 *admin.ProjectListRequest) *AdminServiceServer_ListProjects { + c_call := _m.On("ListProjects", _a0, _a1) + return &AdminServiceServer_ListProjects{Call: c_call} +} + +func (_m *AdminServiceServer) OnListProjectsMatch(matchers ...interface{}) *AdminServiceServer_ListProjects { + c_call := _m.On("ListProjects", matchers...) + return &AdminServiceServer_ListProjects{Call: c_call} +} + +// ListProjects provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListProjects(_a0 context.Context, _a1 *admin.ProjectListRequest) (*admin.Projects, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.Projects + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectListRequest) *admin.Projects); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Projects) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListTaskExecutions struct { + *mock.Call +} + +func (_m AdminServiceServer_ListTaskExecutions) Return(_a0 *admin.TaskExecutionList, _a1 error) *AdminServiceServer_ListTaskExecutions { + return &AdminServiceServer_ListTaskExecutions{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListTaskExecutions(_a0 context.Context, _a1 *admin.TaskExecutionListRequest) *AdminServiceServer_ListTaskExecutions { + c_call := _m.On("ListTaskExecutions", _a0, _a1) + return &AdminServiceServer_ListTaskExecutions{Call: c_call} +} + +func (_m *AdminServiceServer) OnListTaskExecutionsMatch(matchers ...interface{}) *AdminServiceServer_ListTaskExecutions { + c_call := _m.On("ListTaskExecutions", matchers...) + return &AdminServiceServer_ListTaskExecutions{Call: c_call} +} + +// ListTaskExecutions provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListTaskExecutions(_a0 context.Context, _a1 *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.TaskExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionListRequest) *admin.TaskExecutionList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListTaskIds struct { + *mock.Call +} + +func (_m AdminServiceServer_ListTaskIds) Return(_a0 *admin.NamedEntityIdentifierList, _a1 error) *AdminServiceServer_ListTaskIds { + return &AdminServiceServer_ListTaskIds{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListTaskIds(_a0 context.Context, _a1 *admin.NamedEntityIdentifierListRequest) *AdminServiceServer_ListTaskIds { + c_call := _m.On("ListTaskIds", _a0, _a1) + return &AdminServiceServer_ListTaskIds{Call: c_call} +} + +func (_m *AdminServiceServer) OnListTaskIdsMatch(matchers ...interface{}) *AdminServiceServer_ListTaskIds { + c_call := _m.On("ListTaskIds", matchers...) + return &AdminServiceServer_ListTaskIds{Call: c_call} +} + +// ListTaskIds provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListTaskIds(_a0 context.Context, _a1 *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest) *admin.NamedEntityIdentifierList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListTasks struct { + *mock.Call +} + +func (_m AdminServiceServer_ListTasks) Return(_a0 *admin.TaskList, _a1 error) *AdminServiceServer_ListTasks { + return &AdminServiceServer_ListTasks{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListTasks(_a0 context.Context, _a1 *admin.ResourceListRequest) *AdminServiceServer_ListTasks { + c_call := _m.On("ListTasks", _a0, _a1) + return &AdminServiceServer_ListTasks{Call: c_call} +} + +func (_m *AdminServiceServer) OnListTasksMatch(matchers ...interface{}) *AdminServiceServer_ListTasks { + c_call := _m.On("ListTasks", matchers...) + return &AdminServiceServer_ListTasks{Call: c_call} +} + +// ListTasks provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListTasks(_a0 context.Context, _a1 *admin.ResourceListRequest) (*admin.TaskList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.TaskList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest) *admin.TaskList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListWorkflowIds struct { + *mock.Call +} + +func (_m AdminServiceServer_ListWorkflowIds) Return(_a0 *admin.NamedEntityIdentifierList, _a1 error) *AdminServiceServer_ListWorkflowIds { + return &AdminServiceServer_ListWorkflowIds{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListWorkflowIds(_a0 context.Context, _a1 *admin.NamedEntityIdentifierListRequest) *AdminServiceServer_ListWorkflowIds { + c_call := _m.On("ListWorkflowIds", _a0, _a1) + return &AdminServiceServer_ListWorkflowIds{Call: c_call} +} + +func (_m *AdminServiceServer) OnListWorkflowIdsMatch(matchers ...interface{}) *AdminServiceServer_ListWorkflowIds { + c_call := _m.On("ListWorkflowIds", matchers...) + return &AdminServiceServer_ListWorkflowIds{Call: c_call} +} + +// ListWorkflowIds provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListWorkflowIds(_a0 context.Context, _a1 *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest) *admin.NamedEntityIdentifierList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_ListWorkflows struct { + *mock.Call +} + +func (_m AdminServiceServer_ListWorkflows) Return(_a0 *admin.WorkflowList, _a1 error) *AdminServiceServer_ListWorkflows { + return &AdminServiceServer_ListWorkflows{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnListWorkflows(_a0 context.Context, _a1 *admin.ResourceListRequest) *AdminServiceServer_ListWorkflows { + c_call := _m.On("ListWorkflows", _a0, _a1) + return &AdminServiceServer_ListWorkflows{Call: c_call} +} + +func (_m *AdminServiceServer) OnListWorkflowsMatch(matchers ...interface{}) *AdminServiceServer_ListWorkflows { + c_call := _m.On("ListWorkflows", matchers...) + return &AdminServiceServer_ListWorkflows{Call: c_call} +} + +// ListWorkflows provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) ListWorkflows(_a0 context.Context, _a1 *admin.ResourceListRequest) (*admin.WorkflowList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest) *admin.WorkflowList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_RecoverExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_RecoverExecution) Return(_a0 *admin.ExecutionCreateResponse, _a1 error) *AdminServiceServer_RecoverExecution { + return &AdminServiceServer_RecoverExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnRecoverExecution(_a0 context.Context, _a1 *admin.ExecutionRecoverRequest) *AdminServiceServer_RecoverExecution { + c_call := _m.On("RecoverExecution", _a0, _a1) + return &AdminServiceServer_RecoverExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnRecoverExecutionMatch(matchers ...interface{}) *AdminServiceServer_RecoverExecution { + c_call := _m.On("RecoverExecution", matchers...) + return &AdminServiceServer_RecoverExecution{Call: c_call} +} + +// RecoverExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) RecoverExecution(_a0 context.Context, _a1 *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionRecoverRequest) *admin.ExecutionCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionRecoverRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_RegisterProject struct { + *mock.Call +} + +func (_m AdminServiceServer_RegisterProject) Return(_a0 *admin.ProjectRegisterResponse, _a1 error) *AdminServiceServer_RegisterProject { + return &AdminServiceServer_RegisterProject{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnRegisterProject(_a0 context.Context, _a1 *admin.ProjectRegisterRequest) *AdminServiceServer_RegisterProject { + c_call := _m.On("RegisterProject", _a0, _a1) + return &AdminServiceServer_RegisterProject{Call: c_call} +} + +func (_m *AdminServiceServer) OnRegisterProjectMatch(matchers ...interface{}) *AdminServiceServer_RegisterProject { + c_call := _m.On("RegisterProject", matchers...) + return &AdminServiceServer_RegisterProject{Call: c_call} +} + +// RegisterProject provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) RegisterProject(_a0 context.Context, _a1 *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectRegisterResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectRegisterRequest) *admin.ProjectRegisterResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectRegisterResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectRegisterRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_RelaunchExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_RelaunchExecution) Return(_a0 *admin.ExecutionCreateResponse, _a1 error) *AdminServiceServer_RelaunchExecution { + return &AdminServiceServer_RelaunchExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnRelaunchExecution(_a0 context.Context, _a1 *admin.ExecutionRelaunchRequest) *AdminServiceServer_RelaunchExecution { + c_call := _m.On("RelaunchExecution", _a0, _a1) + return &AdminServiceServer_RelaunchExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnRelaunchExecutionMatch(matchers ...interface{}) *AdminServiceServer_RelaunchExecution { + c_call := _m.On("RelaunchExecution", matchers...) + return &AdminServiceServer_RelaunchExecution{Call: c_call} +} + +// RelaunchExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) RelaunchExecution(_a0 context.Context, _a1 *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionRelaunchRequest) *admin.ExecutionCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionRelaunchRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_TerminateExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_TerminateExecution) Return(_a0 *admin.ExecutionTerminateResponse, _a1 error) *AdminServiceServer_TerminateExecution { + return &AdminServiceServer_TerminateExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnTerminateExecution(_a0 context.Context, _a1 *admin.ExecutionTerminateRequest) *AdminServiceServer_TerminateExecution { + c_call := _m.On("TerminateExecution", _a0, _a1) + return &AdminServiceServer_TerminateExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnTerminateExecutionMatch(matchers ...interface{}) *AdminServiceServer_TerminateExecution { + c_call := _m.On("TerminateExecution", matchers...) + return &AdminServiceServer_TerminateExecution{Call: c_call} +} + +// TerminateExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) TerminateExecution(_a0 context.Context, _a1 *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ExecutionTerminateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionTerminateRequest) *admin.ExecutionTerminateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionTerminateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionTerminateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_UpdateExecution struct { + *mock.Call +} + +func (_m AdminServiceServer_UpdateExecution) Return(_a0 *admin.ExecutionUpdateResponse, _a1 error) *AdminServiceServer_UpdateExecution { + return &AdminServiceServer_UpdateExecution{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnUpdateExecution(_a0 context.Context, _a1 *admin.ExecutionUpdateRequest) *AdminServiceServer_UpdateExecution { + c_call := _m.On("UpdateExecution", _a0, _a1) + return &AdminServiceServer_UpdateExecution{Call: c_call} +} + +func (_m *AdminServiceServer) OnUpdateExecutionMatch(matchers ...interface{}) *AdminServiceServer_UpdateExecution { + c_call := _m.On("UpdateExecution", matchers...) + return &AdminServiceServer_UpdateExecution{Call: c_call} +} + +// UpdateExecution provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) UpdateExecution(_a0 context.Context, _a1 *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ExecutionUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionUpdateRequest) *admin.ExecutionUpdateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionUpdateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_UpdateLaunchPlan struct { + *mock.Call +} + +func (_m AdminServiceServer_UpdateLaunchPlan) Return(_a0 *admin.LaunchPlanUpdateResponse, _a1 error) *AdminServiceServer_UpdateLaunchPlan { + return &AdminServiceServer_UpdateLaunchPlan{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnUpdateLaunchPlan(_a0 context.Context, _a1 *admin.LaunchPlanUpdateRequest) *AdminServiceServer_UpdateLaunchPlan { + c_call := _m.On("UpdateLaunchPlan", _a0, _a1) + return &AdminServiceServer_UpdateLaunchPlan{Call: c_call} +} + +func (_m *AdminServiceServer) OnUpdateLaunchPlanMatch(matchers ...interface{}) *AdminServiceServer_UpdateLaunchPlan { + c_call := _m.On("UpdateLaunchPlan", matchers...) + return &AdminServiceServer_UpdateLaunchPlan{Call: c_call} +} + +// UpdateLaunchPlan provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) UpdateLaunchPlan(_a0 context.Context, _a1 *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.LaunchPlanUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.LaunchPlanUpdateRequest) *admin.LaunchPlanUpdateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.LaunchPlanUpdateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_UpdateNamedEntity struct { + *mock.Call +} + +func (_m AdminServiceServer_UpdateNamedEntity) Return(_a0 *admin.NamedEntityUpdateResponse, _a1 error) *AdminServiceServer_UpdateNamedEntity { + return &AdminServiceServer_UpdateNamedEntity{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnUpdateNamedEntity(_a0 context.Context, _a1 *admin.NamedEntityUpdateRequest) *AdminServiceServer_UpdateNamedEntity { + c_call := _m.On("UpdateNamedEntity", _a0, _a1) + return &AdminServiceServer_UpdateNamedEntity{Call: c_call} +} + +func (_m *AdminServiceServer) OnUpdateNamedEntityMatch(matchers ...interface{}) *AdminServiceServer_UpdateNamedEntity { + c_call := _m.On("UpdateNamedEntity", matchers...) + return &AdminServiceServer_UpdateNamedEntity{Call: c_call} +} + +// UpdateNamedEntity provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) UpdateNamedEntity(_a0 context.Context, _a1 *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.NamedEntityUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityUpdateRequest) *admin.NamedEntityUpdateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityUpdateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_UpdateProject struct { + *mock.Call +} + +func (_m AdminServiceServer_UpdateProject) Return(_a0 *admin.ProjectUpdateResponse, _a1 error) *AdminServiceServer_UpdateProject { + return &AdminServiceServer_UpdateProject{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnUpdateProject(_a0 context.Context, _a1 *admin.Project) *AdminServiceServer_UpdateProject { + c_call := _m.On("UpdateProject", _a0, _a1) + return &AdminServiceServer_UpdateProject{Call: c_call} +} + +func (_m *AdminServiceServer) OnUpdateProjectMatch(matchers ...interface{}) *AdminServiceServer_UpdateProject { + c_call := _m.On("UpdateProject", matchers...) + return &AdminServiceServer_UpdateProject{Call: c_call} +} + +// UpdateProject provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) UpdateProject(_a0 context.Context, _a1 *admin.Project) (*admin.ProjectUpdateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.Project) *admin.ProjectUpdateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.Project) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_UpdateProjectAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_UpdateProjectAttributes) Return(_a0 *admin.ProjectAttributesUpdateResponse, _a1 error) *AdminServiceServer_UpdateProjectAttributes { + return &AdminServiceServer_UpdateProjectAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnUpdateProjectAttributes(_a0 context.Context, _a1 *admin.ProjectAttributesUpdateRequest) *AdminServiceServer_UpdateProjectAttributes { + c_call := _m.On("UpdateProjectAttributes", _a0, _a1) + return &AdminServiceServer_UpdateProjectAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnUpdateProjectAttributesMatch(matchers ...interface{}) *AdminServiceServer_UpdateProjectAttributes { + c_call := _m.On("UpdateProjectAttributes", matchers...) + return &AdminServiceServer_UpdateProjectAttributes{Call: c_call} +} + +// UpdateProjectAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) UpdateProjectAttributes(_a0 context.Context, _a1 *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectAttributesUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectAttributesUpdateRequest) *admin.ProjectAttributesUpdateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectAttributesUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectAttributesUpdateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_UpdateProjectDomainAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_UpdateProjectDomainAttributes) Return(_a0 *admin.ProjectDomainAttributesUpdateResponse, _a1 error) *AdminServiceServer_UpdateProjectDomainAttributes { + return &AdminServiceServer_UpdateProjectDomainAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnUpdateProjectDomainAttributes(_a0 context.Context, _a1 *admin.ProjectDomainAttributesUpdateRequest) *AdminServiceServer_UpdateProjectDomainAttributes { + c_call := _m.On("UpdateProjectDomainAttributes", _a0, _a1) + return &AdminServiceServer_UpdateProjectDomainAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnUpdateProjectDomainAttributesMatch(matchers ...interface{}) *AdminServiceServer_UpdateProjectDomainAttributes { + c_call := _m.On("UpdateProjectDomainAttributes", matchers...) + return &AdminServiceServer_UpdateProjectDomainAttributes{Call: c_call} +} + +// UpdateProjectDomainAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) UpdateProjectDomainAttributes(_a0 context.Context, _a1 *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.ProjectDomainAttributesUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectDomainAttributesUpdateRequest) *admin.ProjectDomainAttributesUpdateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectDomainAttributesUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectDomainAttributesUpdateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AdminServiceServer_UpdateWorkflowAttributes struct { + *mock.Call +} + +func (_m AdminServiceServer_UpdateWorkflowAttributes) Return(_a0 *admin.WorkflowAttributesUpdateResponse, _a1 error) *AdminServiceServer_UpdateWorkflowAttributes { + return &AdminServiceServer_UpdateWorkflowAttributes{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AdminServiceServer) OnUpdateWorkflowAttributes(_a0 context.Context, _a1 *admin.WorkflowAttributesUpdateRequest) *AdminServiceServer_UpdateWorkflowAttributes { + c_call := _m.On("UpdateWorkflowAttributes", _a0, _a1) + return &AdminServiceServer_UpdateWorkflowAttributes{Call: c_call} +} + +func (_m *AdminServiceServer) OnUpdateWorkflowAttributesMatch(matchers ...interface{}) *AdminServiceServer_UpdateWorkflowAttributes { + c_call := _m.On("UpdateWorkflowAttributes", matchers...) + return &AdminServiceServer_UpdateWorkflowAttributes{Call: c_call} +} + +// UpdateWorkflowAttributes provides a mock function with given fields: _a0, _a1 +func (_m *AdminServiceServer) UpdateWorkflowAttributes(_a0 context.Context, _a1 *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.WorkflowAttributesUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowAttributesUpdateRequest) *admin.WorkflowAttributesUpdateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowAttributesUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowAttributesUpdateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AgentServiceClient.go new file mode 100644 index 0000000000..0fcc10b77c --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AgentServiceClient.go @@ -0,0 +1,162 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" +) + +// AgentServiceClient is an autogenerated mock type for the AgentServiceClient type +type AgentServiceClient struct { + mock.Mock +} + +type AgentServiceClient_CreateTask struct { + *mock.Call +} + +func (_m AgentServiceClient_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AgentServiceClient_CreateTask { + return &AgentServiceClient_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AgentServiceClient) OnCreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_CreateTask { + c_call := _m.On("CreateTask", ctx, in, opts) + return &AgentServiceClient_CreateTask{Call: c_call} +} + +func (_m *AgentServiceClient) OnCreateTaskMatch(matchers ...interface{}) *AgentServiceClient_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AgentServiceClient_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: ctx, in, opts +func (_m *AgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.CreateTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest, ...grpc.CallOption) *admin.CreateTaskResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.CreateTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.CreateTaskRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceClient_DeleteTask struct { + *mock.Call +} + +func (_m AgentServiceClient_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AgentServiceClient_DeleteTask { + return &AgentServiceClient_DeleteTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AgentServiceClient) OnDeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_DeleteTask { + c_call := _m.On("DeleteTask", ctx, in, opts) + return &AgentServiceClient_DeleteTask{Call: c_call} +} + +func (_m *AgentServiceClient) OnDeleteTaskMatch(matchers ...interface{}) *AgentServiceClient_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &AgentServiceClient_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: ctx, in, opts +func (_m *AgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.DeleteTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest, ...grpc.CallOption) *admin.DeleteTaskResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DeleteTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.DeleteTaskRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceClient_GetTask struct { + *mock.Call +} + +func (_m AgentServiceClient_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AgentServiceClient_GetTask { + return &AgentServiceClient_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AgentServiceClient) OnGetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) *AgentServiceClient_GetTask { + c_call := _m.On("GetTask", ctx, in, opts) + return &AgentServiceClient_GetTask{Call: c_call} +} + +func (_m *AgentServiceClient) OnGetTaskMatch(matchers ...interface{}) *AgentServiceClient_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AgentServiceClient_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: ctx, in, opts +func (_m *AgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.GetTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest, ...grpc.CallOption) *admin.GetTaskResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AgentServiceServer.go new file mode 100644 index 0000000000..df417a132c --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AgentServiceServer.go @@ -0,0 +1,139 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + mock "github.com/stretchr/testify/mock" +) + +// AgentServiceServer is an autogenerated mock type for the AgentServiceServer type +type AgentServiceServer struct { + mock.Mock +} + +type AgentServiceServer_CreateTask struct { + *mock.Call +} + +func (_m AgentServiceServer_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AgentServiceServer_CreateTask { + return &AgentServiceServer_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AgentServiceServer) OnCreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) *AgentServiceServer_CreateTask { + c_call := _m.On("CreateTask", _a0, _a1) + return &AgentServiceServer_CreateTask{Call: c_call} +} + +func (_m *AgentServiceServer) OnCreateTaskMatch(matchers ...interface{}) *AgentServiceServer_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AgentServiceServer_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: _a0, _a1 +func (_m *AgentServiceServer) CreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.CreateTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest) *admin.CreateTaskResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.CreateTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.CreateTaskRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceServer_DeleteTask struct { + *mock.Call +} + +func (_m AgentServiceServer_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AgentServiceServer_DeleteTask { + return &AgentServiceServer_DeleteTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AgentServiceServer) OnDeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) *AgentServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", _a0, _a1) + return &AgentServiceServer_DeleteTask{Call: c_call} +} + +func (_m *AgentServiceServer) OnDeleteTaskMatch(matchers ...interface{}) *AgentServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &AgentServiceServer_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: _a0, _a1 +func (_m *AgentServiceServer) DeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.DeleteTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest) *admin.DeleteTaskResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DeleteTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.DeleteTaskRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AgentServiceServer_GetTask struct { + *mock.Call +} + +func (_m AgentServiceServer_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AgentServiceServer_GetTask { + return &AgentServiceServer_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AgentServiceServer) OnGetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) *AgentServiceServer_GetTask { + c_call := _m.On("GetTask", _a0, _a1) + return &AgentServiceServer_GetTask{Call: c_call} +} + +func (_m *AgentServiceServer) OnGetTaskMatch(matchers ...interface{}) *AgentServiceServer_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AgentServiceServer_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: _a0, _a1 +func (_m *AgentServiceServer) GetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest) *admin.GetTaskResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go new file mode 100644 index 0000000000..84a804843f --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go @@ -0,0 +1,162 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentServiceClient is an autogenerated mock type for the AsyncAgentServiceClient type +type AsyncAgentServiceClient struct { + mock.Mock +} + +type AsyncAgentServiceClient_CreateTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AsyncAgentServiceClient_CreateTask { + return &AsyncAgentServiceClient_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnCreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_CreateTask { + c_call := _m.On("CreateTask", ctx, in, opts) + return &AsyncAgentServiceClient_CreateTask{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnCreateTaskMatch(matchers ...interface{}) *AsyncAgentServiceClient_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AsyncAgentServiceClient_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: ctx, in, opts +func (_m *AsyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.CreateTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest, ...grpc.CallOption) *admin.CreateTaskResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.CreateTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.CreateTaskRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceClient_DeleteTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AsyncAgentServiceClient_DeleteTask { + return &AsyncAgentServiceClient_DeleteTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnDeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_DeleteTask { + c_call := _m.On("DeleteTask", ctx, in, opts) + return &AsyncAgentServiceClient_DeleteTask{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnDeleteTaskMatch(matchers ...interface{}) *AsyncAgentServiceClient_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &AsyncAgentServiceClient_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: ctx, in, opts +func (_m *AsyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.DeleteTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest, ...grpc.CallOption) *admin.DeleteTaskResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DeleteTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.DeleteTaskRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceClient_GetTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AsyncAgentServiceClient_GetTask { + return &AsyncAgentServiceClient_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnGetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTask { + c_call := _m.On("GetTask", ctx, in, opts) + return &AsyncAgentServiceClient_GetTask{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AsyncAgentServiceClient_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: ctx, in, opts +func (_m *AsyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.GetTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest, ...grpc.CallOption) *admin.GetTaskResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go new file mode 100644 index 0000000000..d24c63ea37 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go @@ -0,0 +1,139 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentServiceServer is an autogenerated mock type for the AsyncAgentServiceServer type +type AsyncAgentServiceServer struct { + mock.Mock +} + +type AsyncAgentServiceServer_CreateTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AsyncAgentServiceServer_CreateTask { + return &AsyncAgentServiceServer_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnCreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) *AsyncAgentServiceServer_CreateTask { + c_call := _m.On("CreateTask", _a0, _a1) + return &AsyncAgentServiceServer_CreateTask{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnCreateTaskMatch(matchers ...interface{}) *AsyncAgentServiceServer_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &AsyncAgentServiceServer_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) CreateTask(_a0 context.Context, _a1 *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.CreateTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest) *admin.CreateTaskResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.CreateTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.CreateTaskRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceServer_DeleteTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AsyncAgentServiceServer_DeleteTask { + return &AsyncAgentServiceServer_DeleteTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnDeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) *AsyncAgentServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", _a0, _a1) + return &AsyncAgentServiceServer_DeleteTask{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnDeleteTaskMatch(matchers ...interface{}) *AsyncAgentServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &AsyncAgentServiceServer_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) DeleteTask(_a0 context.Context, _a1 *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.DeleteTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest) *admin.DeleteTaskResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.DeleteTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.DeleteTaskRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceServer_GetTask struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AsyncAgentServiceServer_GetTask { + return &AsyncAgentServiceServer_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnGetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) *AsyncAgentServiceServer_GetTask { + c_call := _m.On("GetTask", _a0, _a1) + return &AsyncAgentServiceServer_GetTask{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskMatch(matchers ...interface{}) *AsyncAgentServiceServer_GetTask { + c_call := _m.On("GetTask", matchers...) + return &AsyncAgentServiceServer_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) GetTask(_a0 context.Context, _a1 *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest) *admin.GetTaskResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AuthMetadataServiceClient.go b/flyteidl/clients/go/admin/mocks/AuthMetadataServiceClient.go new file mode 100644 index 0000000000..29dbb8d990 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AuthMetadataServiceClient.go @@ -0,0 +1,114 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +// AuthMetadataServiceClient is an autogenerated mock type for the AuthMetadataServiceClient type +type AuthMetadataServiceClient struct { + mock.Mock +} + +type AuthMetadataServiceClient_GetOAuth2Metadata struct { + *mock.Call +} + +func (_m AuthMetadataServiceClient_GetOAuth2Metadata) Return(_a0 *service.OAuth2MetadataResponse, _a1 error) *AuthMetadataServiceClient_GetOAuth2Metadata { + return &AuthMetadataServiceClient_GetOAuth2Metadata{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AuthMetadataServiceClient) OnGetOAuth2Metadata(ctx context.Context, in *service.OAuth2MetadataRequest, opts ...grpc.CallOption) *AuthMetadataServiceClient_GetOAuth2Metadata { + c_call := _m.On("GetOAuth2Metadata", ctx, in, opts) + return &AuthMetadataServiceClient_GetOAuth2Metadata{Call: c_call} +} + +func (_m *AuthMetadataServiceClient) OnGetOAuth2MetadataMatch(matchers ...interface{}) *AuthMetadataServiceClient_GetOAuth2Metadata { + c_call := _m.On("GetOAuth2Metadata", matchers...) + return &AuthMetadataServiceClient_GetOAuth2Metadata{Call: c_call} +} + +// GetOAuth2Metadata provides a mock function with given fields: ctx, in, opts +func (_m *AuthMetadataServiceClient) GetOAuth2Metadata(ctx context.Context, in *service.OAuth2MetadataRequest, opts ...grpc.CallOption) (*service.OAuth2MetadataResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.OAuth2MetadataResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.OAuth2MetadataRequest, ...grpc.CallOption) *service.OAuth2MetadataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.OAuth2MetadataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.OAuth2MetadataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AuthMetadataServiceClient_GetPublicClientConfig struct { + *mock.Call +} + +func (_m AuthMetadataServiceClient_GetPublicClientConfig) Return(_a0 *service.PublicClientAuthConfigResponse, _a1 error) *AuthMetadataServiceClient_GetPublicClientConfig { + return &AuthMetadataServiceClient_GetPublicClientConfig{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AuthMetadataServiceClient) OnGetPublicClientConfig(ctx context.Context, in *service.PublicClientAuthConfigRequest, opts ...grpc.CallOption) *AuthMetadataServiceClient_GetPublicClientConfig { + c_call := _m.On("GetPublicClientConfig", ctx, in, opts) + return &AuthMetadataServiceClient_GetPublicClientConfig{Call: c_call} +} + +func (_m *AuthMetadataServiceClient) OnGetPublicClientConfigMatch(matchers ...interface{}) *AuthMetadataServiceClient_GetPublicClientConfig { + c_call := _m.On("GetPublicClientConfig", matchers...) + return &AuthMetadataServiceClient_GetPublicClientConfig{Call: c_call} +} + +// GetPublicClientConfig provides a mock function with given fields: ctx, in, opts +func (_m *AuthMetadataServiceClient) GetPublicClientConfig(ctx context.Context, in *service.PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*service.PublicClientAuthConfigResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.PublicClientAuthConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.PublicClientAuthConfigRequest, ...grpc.CallOption) *service.PublicClientAuthConfigResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.PublicClientAuthConfigResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.PublicClientAuthConfigRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AuthMetadataServiceServer.go b/flyteidl/clients/go/admin/mocks/AuthMetadataServiceServer.go new file mode 100644 index 0000000000..59f8533d91 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AuthMetadataServiceServer.go @@ -0,0 +1,97 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + mock "github.com/stretchr/testify/mock" +) + +// AuthMetadataServiceServer is an autogenerated mock type for the AuthMetadataServiceServer type +type AuthMetadataServiceServer struct { + mock.Mock +} + +type AuthMetadataServiceServer_GetOAuth2Metadata struct { + *mock.Call +} + +func (_m AuthMetadataServiceServer_GetOAuth2Metadata) Return(_a0 *service.OAuth2MetadataResponse, _a1 error) *AuthMetadataServiceServer_GetOAuth2Metadata { + return &AuthMetadataServiceServer_GetOAuth2Metadata{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AuthMetadataServiceServer) OnGetOAuth2Metadata(_a0 context.Context, _a1 *service.OAuth2MetadataRequest) *AuthMetadataServiceServer_GetOAuth2Metadata { + c_call := _m.On("GetOAuth2Metadata", _a0, _a1) + return &AuthMetadataServiceServer_GetOAuth2Metadata{Call: c_call} +} + +func (_m *AuthMetadataServiceServer) OnGetOAuth2MetadataMatch(matchers ...interface{}) *AuthMetadataServiceServer_GetOAuth2Metadata { + c_call := _m.On("GetOAuth2Metadata", matchers...) + return &AuthMetadataServiceServer_GetOAuth2Metadata{Call: c_call} +} + +// GetOAuth2Metadata provides a mock function with given fields: _a0, _a1 +func (_m *AuthMetadataServiceServer) GetOAuth2Metadata(_a0 context.Context, _a1 *service.OAuth2MetadataRequest) (*service.OAuth2MetadataResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.OAuth2MetadataResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.OAuth2MetadataRequest) *service.OAuth2MetadataResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.OAuth2MetadataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.OAuth2MetadataRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AuthMetadataServiceServer_GetPublicClientConfig struct { + *mock.Call +} + +func (_m AuthMetadataServiceServer_GetPublicClientConfig) Return(_a0 *service.PublicClientAuthConfigResponse, _a1 error) *AuthMetadataServiceServer_GetPublicClientConfig { + return &AuthMetadataServiceServer_GetPublicClientConfig{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AuthMetadataServiceServer) OnGetPublicClientConfig(_a0 context.Context, _a1 *service.PublicClientAuthConfigRequest) *AuthMetadataServiceServer_GetPublicClientConfig { + c_call := _m.On("GetPublicClientConfig", _a0, _a1) + return &AuthMetadataServiceServer_GetPublicClientConfig{Call: c_call} +} + +func (_m *AuthMetadataServiceServer) OnGetPublicClientConfigMatch(matchers ...interface{}) *AuthMetadataServiceServer_GetPublicClientConfig { + c_call := _m.On("GetPublicClientConfig", matchers...) + return &AuthMetadataServiceServer_GetPublicClientConfig{Call: c_call} +} + +// GetPublicClientConfig provides a mock function with given fields: _a0, _a1 +func (_m *AuthMetadataServiceServer) GetPublicClientConfig(_a0 context.Context, _a1 *service.PublicClientAuthConfigRequest) (*service.PublicClientAuthConfigResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.PublicClientAuthConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.PublicClientAuthConfigRequest) *service.PublicClientAuthConfigResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.PublicClientAuthConfigResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.PublicClientAuthConfigRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/DataProxyServiceClient.go b/flyteidl/clients/go/admin/mocks/DataProxyServiceClient.go new file mode 100644 index 0000000000..ce7b9de11d --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/DataProxyServiceClient.go @@ -0,0 +1,210 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +// DataProxyServiceClient is an autogenerated mock type for the DataProxyServiceClient type +type DataProxyServiceClient struct { + mock.Mock +} + +type DataProxyServiceClient_CreateDownloadLink struct { + *mock.Call +} + +func (_m DataProxyServiceClient_CreateDownloadLink) Return(_a0 *service.CreateDownloadLinkResponse, _a1 error) *DataProxyServiceClient_CreateDownloadLink { + return &DataProxyServiceClient_CreateDownloadLink{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceClient) OnCreateDownloadLink(ctx context.Context, in *service.CreateDownloadLinkRequest, opts ...grpc.CallOption) *DataProxyServiceClient_CreateDownloadLink { + c_call := _m.On("CreateDownloadLink", ctx, in, opts) + return &DataProxyServiceClient_CreateDownloadLink{Call: c_call} +} + +func (_m *DataProxyServiceClient) OnCreateDownloadLinkMatch(matchers ...interface{}) *DataProxyServiceClient_CreateDownloadLink { + c_call := _m.On("CreateDownloadLink", matchers...) + return &DataProxyServiceClient_CreateDownloadLink{Call: c_call} +} + +// CreateDownloadLink provides a mock function with given fields: ctx, in, opts +func (_m *DataProxyServiceClient) CreateDownloadLink(ctx context.Context, in *service.CreateDownloadLinkRequest, opts ...grpc.CallOption) (*service.CreateDownloadLinkResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.CreateDownloadLinkResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.CreateDownloadLinkRequest, ...grpc.CallOption) *service.CreateDownloadLinkResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.CreateDownloadLinkResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.CreateDownloadLinkRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataProxyServiceClient_CreateDownloadLocation struct { + *mock.Call +} + +func (_m DataProxyServiceClient_CreateDownloadLocation) Return(_a0 *service.CreateDownloadLocationResponse, _a1 error) *DataProxyServiceClient_CreateDownloadLocation { + return &DataProxyServiceClient_CreateDownloadLocation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceClient) OnCreateDownloadLocation(ctx context.Context, in *service.CreateDownloadLocationRequest, opts ...grpc.CallOption) *DataProxyServiceClient_CreateDownloadLocation { + c_call := _m.On("CreateDownloadLocation", ctx, in, opts) + return &DataProxyServiceClient_CreateDownloadLocation{Call: c_call} +} + +func (_m *DataProxyServiceClient) OnCreateDownloadLocationMatch(matchers ...interface{}) *DataProxyServiceClient_CreateDownloadLocation { + c_call := _m.On("CreateDownloadLocation", matchers...) + return &DataProxyServiceClient_CreateDownloadLocation{Call: c_call} +} + +// CreateDownloadLocation provides a mock function with given fields: ctx, in, opts +func (_m *DataProxyServiceClient) CreateDownloadLocation(ctx context.Context, in *service.CreateDownloadLocationRequest, opts ...grpc.CallOption) (*service.CreateDownloadLocationResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.CreateDownloadLocationResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.CreateDownloadLocationRequest, ...grpc.CallOption) *service.CreateDownloadLocationResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.CreateDownloadLocationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.CreateDownloadLocationRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataProxyServiceClient_CreateUploadLocation struct { + *mock.Call +} + +func (_m DataProxyServiceClient_CreateUploadLocation) Return(_a0 *service.CreateUploadLocationResponse, _a1 error) *DataProxyServiceClient_CreateUploadLocation { + return &DataProxyServiceClient_CreateUploadLocation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceClient) OnCreateUploadLocation(ctx context.Context, in *service.CreateUploadLocationRequest, opts ...grpc.CallOption) *DataProxyServiceClient_CreateUploadLocation { + c_call := _m.On("CreateUploadLocation", ctx, in, opts) + return &DataProxyServiceClient_CreateUploadLocation{Call: c_call} +} + +func (_m *DataProxyServiceClient) OnCreateUploadLocationMatch(matchers ...interface{}) *DataProxyServiceClient_CreateUploadLocation { + c_call := _m.On("CreateUploadLocation", matchers...) + return &DataProxyServiceClient_CreateUploadLocation{Call: c_call} +} + +// CreateUploadLocation provides a mock function with given fields: ctx, in, opts +func (_m *DataProxyServiceClient) CreateUploadLocation(ctx context.Context, in *service.CreateUploadLocationRequest, opts ...grpc.CallOption) (*service.CreateUploadLocationResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.CreateUploadLocationResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.CreateUploadLocationRequest, ...grpc.CallOption) *service.CreateUploadLocationResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.CreateUploadLocationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.CreateUploadLocationRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataProxyServiceClient_GetData struct { + *mock.Call +} + +func (_m DataProxyServiceClient_GetData) Return(_a0 *service.GetDataResponse, _a1 error) *DataProxyServiceClient_GetData { + return &DataProxyServiceClient_GetData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceClient) OnGetData(ctx context.Context, in *service.GetDataRequest, opts ...grpc.CallOption) *DataProxyServiceClient_GetData { + c_call := _m.On("GetData", ctx, in, opts) + return &DataProxyServiceClient_GetData{Call: c_call} +} + +func (_m *DataProxyServiceClient) OnGetDataMatch(matchers ...interface{}) *DataProxyServiceClient_GetData { + c_call := _m.On("GetData", matchers...) + return &DataProxyServiceClient_GetData{Call: c_call} +} + +// GetData provides a mock function with given fields: ctx, in, opts +func (_m *DataProxyServiceClient) GetData(ctx context.Context, in *service.GetDataRequest, opts ...grpc.CallOption) (*service.GetDataResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.GetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.GetDataRequest, ...grpc.CallOption) *service.GetDataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.GetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.GetDataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/DataProxyServiceServer.go b/flyteidl/clients/go/admin/mocks/DataProxyServiceServer.go new file mode 100644 index 0000000000..ce2dae0daa --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/DataProxyServiceServer.go @@ -0,0 +1,179 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + mock "github.com/stretchr/testify/mock" +) + +// DataProxyServiceServer is an autogenerated mock type for the DataProxyServiceServer type +type DataProxyServiceServer struct { + mock.Mock +} + +type DataProxyServiceServer_CreateDownloadLink struct { + *mock.Call +} + +func (_m DataProxyServiceServer_CreateDownloadLink) Return(_a0 *service.CreateDownloadLinkResponse, _a1 error) *DataProxyServiceServer_CreateDownloadLink { + return &DataProxyServiceServer_CreateDownloadLink{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceServer) OnCreateDownloadLink(_a0 context.Context, _a1 *service.CreateDownloadLinkRequest) *DataProxyServiceServer_CreateDownloadLink { + c_call := _m.On("CreateDownloadLink", _a0, _a1) + return &DataProxyServiceServer_CreateDownloadLink{Call: c_call} +} + +func (_m *DataProxyServiceServer) OnCreateDownloadLinkMatch(matchers ...interface{}) *DataProxyServiceServer_CreateDownloadLink { + c_call := _m.On("CreateDownloadLink", matchers...) + return &DataProxyServiceServer_CreateDownloadLink{Call: c_call} +} + +// CreateDownloadLink provides a mock function with given fields: _a0, _a1 +func (_m *DataProxyServiceServer) CreateDownloadLink(_a0 context.Context, _a1 *service.CreateDownloadLinkRequest) (*service.CreateDownloadLinkResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.CreateDownloadLinkResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.CreateDownloadLinkRequest) *service.CreateDownloadLinkResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.CreateDownloadLinkResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.CreateDownloadLinkRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataProxyServiceServer_CreateDownloadLocation struct { + *mock.Call +} + +func (_m DataProxyServiceServer_CreateDownloadLocation) Return(_a0 *service.CreateDownloadLocationResponse, _a1 error) *DataProxyServiceServer_CreateDownloadLocation { + return &DataProxyServiceServer_CreateDownloadLocation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceServer) OnCreateDownloadLocation(_a0 context.Context, _a1 *service.CreateDownloadLocationRequest) *DataProxyServiceServer_CreateDownloadLocation { + c_call := _m.On("CreateDownloadLocation", _a0, _a1) + return &DataProxyServiceServer_CreateDownloadLocation{Call: c_call} +} + +func (_m *DataProxyServiceServer) OnCreateDownloadLocationMatch(matchers ...interface{}) *DataProxyServiceServer_CreateDownloadLocation { + c_call := _m.On("CreateDownloadLocation", matchers...) + return &DataProxyServiceServer_CreateDownloadLocation{Call: c_call} +} + +// CreateDownloadLocation provides a mock function with given fields: _a0, _a1 +func (_m *DataProxyServiceServer) CreateDownloadLocation(_a0 context.Context, _a1 *service.CreateDownloadLocationRequest) (*service.CreateDownloadLocationResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.CreateDownloadLocationResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.CreateDownloadLocationRequest) *service.CreateDownloadLocationResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.CreateDownloadLocationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.CreateDownloadLocationRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataProxyServiceServer_CreateUploadLocation struct { + *mock.Call +} + +func (_m DataProxyServiceServer_CreateUploadLocation) Return(_a0 *service.CreateUploadLocationResponse, _a1 error) *DataProxyServiceServer_CreateUploadLocation { + return &DataProxyServiceServer_CreateUploadLocation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceServer) OnCreateUploadLocation(_a0 context.Context, _a1 *service.CreateUploadLocationRequest) *DataProxyServiceServer_CreateUploadLocation { + c_call := _m.On("CreateUploadLocation", _a0, _a1) + return &DataProxyServiceServer_CreateUploadLocation{Call: c_call} +} + +func (_m *DataProxyServiceServer) OnCreateUploadLocationMatch(matchers ...interface{}) *DataProxyServiceServer_CreateUploadLocation { + c_call := _m.On("CreateUploadLocation", matchers...) + return &DataProxyServiceServer_CreateUploadLocation{Call: c_call} +} + +// CreateUploadLocation provides a mock function with given fields: _a0, _a1 +func (_m *DataProxyServiceServer) CreateUploadLocation(_a0 context.Context, _a1 *service.CreateUploadLocationRequest) (*service.CreateUploadLocationResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.CreateUploadLocationResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.CreateUploadLocationRequest) *service.CreateUploadLocationResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.CreateUploadLocationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.CreateUploadLocationRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataProxyServiceServer_GetData struct { + *mock.Call +} + +func (_m DataProxyServiceServer_GetData) Return(_a0 *service.GetDataResponse, _a1 error) *DataProxyServiceServer_GetData { + return &DataProxyServiceServer_GetData{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataProxyServiceServer) OnGetData(_a0 context.Context, _a1 *service.GetDataRequest) *DataProxyServiceServer_GetData { + c_call := _m.On("GetData", _a0, _a1) + return &DataProxyServiceServer_GetData{Call: c_call} +} + +func (_m *DataProxyServiceServer) OnGetDataMatch(matchers ...interface{}) *DataProxyServiceServer_GetData { + c_call := _m.On("GetData", matchers...) + return &DataProxyServiceServer_GetData{Call: c_call} +} + +// GetData provides a mock function with given fields: _a0, _a1 +func (_m *DataProxyServiceServer) GetData(_a0 context.Context, _a1 *service.GetDataRequest) (*service.GetDataResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.GetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.GetDataRequest) *service.GetDataResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.GetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.GetDataRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/ExternalPluginServiceClient.go b/flyteidl/clients/go/admin/mocks/ExternalPluginServiceClient.go new file mode 100644 index 0000000000..05df34213f --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/ExternalPluginServiceClient.go @@ -0,0 +1,162 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +// ExternalPluginServiceClient is an autogenerated mock type for the ExternalPluginServiceClient type +type ExternalPluginServiceClient struct { + mock.Mock +} + +type ExternalPluginServiceClient_CreateTask struct { + *mock.Call +} + +func (_m ExternalPluginServiceClient_CreateTask) Return(_a0 *service.TaskCreateResponse, _a1 error) *ExternalPluginServiceClient_CreateTask { + return &ExternalPluginServiceClient_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *ExternalPluginServiceClient) OnCreateTask(ctx context.Context, in *service.TaskCreateRequest, opts ...grpc.CallOption) *ExternalPluginServiceClient_CreateTask { + c_call := _m.On("CreateTask", ctx, in, opts) + return &ExternalPluginServiceClient_CreateTask{Call: c_call} +} + +func (_m *ExternalPluginServiceClient) OnCreateTaskMatch(matchers ...interface{}) *ExternalPluginServiceClient_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &ExternalPluginServiceClient_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: ctx, in, opts +func (_m *ExternalPluginServiceClient) CreateTask(ctx context.Context, in *service.TaskCreateRequest, opts ...grpc.CallOption) (*service.TaskCreateResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.TaskCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskCreateRequest, ...grpc.CallOption) *service.TaskCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type ExternalPluginServiceClient_DeleteTask struct { + *mock.Call +} + +func (_m ExternalPluginServiceClient_DeleteTask) Return(_a0 *service.TaskDeleteResponse, _a1 error) *ExternalPluginServiceClient_DeleteTask { + return &ExternalPluginServiceClient_DeleteTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *ExternalPluginServiceClient) OnDeleteTask(ctx context.Context, in *service.TaskDeleteRequest, opts ...grpc.CallOption) *ExternalPluginServiceClient_DeleteTask { + c_call := _m.On("DeleteTask", ctx, in, opts) + return &ExternalPluginServiceClient_DeleteTask{Call: c_call} +} + +func (_m *ExternalPluginServiceClient) OnDeleteTaskMatch(matchers ...interface{}) *ExternalPluginServiceClient_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &ExternalPluginServiceClient_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: ctx, in, opts +func (_m *ExternalPluginServiceClient) DeleteTask(ctx context.Context, in *service.TaskDeleteRequest, opts ...grpc.CallOption) (*service.TaskDeleteResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.TaskDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskDeleteRequest, ...grpc.CallOption) *service.TaskDeleteResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskDeleteRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type ExternalPluginServiceClient_GetTask struct { + *mock.Call +} + +func (_m ExternalPluginServiceClient_GetTask) Return(_a0 *service.TaskGetResponse, _a1 error) *ExternalPluginServiceClient_GetTask { + return &ExternalPluginServiceClient_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *ExternalPluginServiceClient) OnGetTask(ctx context.Context, in *service.TaskGetRequest, opts ...grpc.CallOption) *ExternalPluginServiceClient_GetTask { + c_call := _m.On("GetTask", ctx, in, opts) + return &ExternalPluginServiceClient_GetTask{Call: c_call} +} + +func (_m *ExternalPluginServiceClient) OnGetTaskMatch(matchers ...interface{}) *ExternalPluginServiceClient_GetTask { + c_call := _m.On("GetTask", matchers...) + return &ExternalPluginServiceClient_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: ctx, in, opts +func (_m *ExternalPluginServiceClient) GetTask(ctx context.Context, in *service.TaskGetRequest, opts ...grpc.CallOption) (*service.TaskGetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.TaskGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskGetRequest, ...grpc.CallOption) *service.TaskGetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/ExternalPluginServiceServer.go b/flyteidl/clients/go/admin/mocks/ExternalPluginServiceServer.go new file mode 100644 index 0000000000..34dae1432d --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/ExternalPluginServiceServer.go @@ -0,0 +1,138 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + mock "github.com/stretchr/testify/mock" +) + +// ExternalPluginServiceServer is an autogenerated mock type for the ExternalPluginServiceServer type +type ExternalPluginServiceServer struct { + mock.Mock +} + +type ExternalPluginServiceServer_CreateTask struct { + *mock.Call +} + +func (_m ExternalPluginServiceServer_CreateTask) Return(_a0 *service.TaskCreateResponse, _a1 error) *ExternalPluginServiceServer_CreateTask { + return &ExternalPluginServiceServer_CreateTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *ExternalPluginServiceServer) OnCreateTask(_a0 context.Context, _a1 *service.TaskCreateRequest) *ExternalPluginServiceServer_CreateTask { + c_call := _m.On("CreateTask", _a0, _a1) + return &ExternalPluginServiceServer_CreateTask{Call: c_call} +} + +func (_m *ExternalPluginServiceServer) OnCreateTaskMatch(matchers ...interface{}) *ExternalPluginServiceServer_CreateTask { + c_call := _m.On("CreateTask", matchers...) + return &ExternalPluginServiceServer_CreateTask{Call: c_call} +} + +// CreateTask provides a mock function with given fields: _a0, _a1 +func (_m *ExternalPluginServiceServer) CreateTask(_a0 context.Context, _a1 *service.TaskCreateRequest) (*service.TaskCreateResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.TaskCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskCreateRequest) *service.TaskCreateResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskCreateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type ExternalPluginServiceServer_DeleteTask struct { + *mock.Call +} + +func (_m ExternalPluginServiceServer_DeleteTask) Return(_a0 *service.TaskDeleteResponse, _a1 error) *ExternalPluginServiceServer_DeleteTask { + return &ExternalPluginServiceServer_DeleteTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *ExternalPluginServiceServer) OnDeleteTask(_a0 context.Context, _a1 *service.TaskDeleteRequest) *ExternalPluginServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", _a0, _a1) + return &ExternalPluginServiceServer_DeleteTask{Call: c_call} +} + +func (_m *ExternalPluginServiceServer) OnDeleteTaskMatch(matchers ...interface{}) *ExternalPluginServiceServer_DeleteTask { + c_call := _m.On("DeleteTask", matchers...) + return &ExternalPluginServiceServer_DeleteTask{Call: c_call} +} + +// DeleteTask provides a mock function with given fields: _a0, _a1 +func (_m *ExternalPluginServiceServer) DeleteTask(_a0 context.Context, _a1 *service.TaskDeleteRequest) (*service.TaskDeleteResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.TaskDeleteResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskDeleteRequest) *service.TaskDeleteResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskDeleteResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskDeleteRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type ExternalPluginServiceServer_GetTask struct { + *mock.Call +} + +func (_m ExternalPluginServiceServer_GetTask) Return(_a0 *service.TaskGetResponse, _a1 error) *ExternalPluginServiceServer_GetTask { + return &ExternalPluginServiceServer_GetTask{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *ExternalPluginServiceServer) OnGetTask(_a0 context.Context, _a1 *service.TaskGetRequest) *ExternalPluginServiceServer_GetTask { + c_call := _m.On("GetTask", _a0, _a1) + return &ExternalPluginServiceServer_GetTask{Call: c_call} +} + +func (_m *ExternalPluginServiceServer) OnGetTaskMatch(matchers ...interface{}) *ExternalPluginServiceServer_GetTask { + c_call := _m.On("GetTask", matchers...) + return &ExternalPluginServiceServer_GetTask{Call: c_call} +} + +// GetTask provides a mock function with given fields: _a0, _a1 +func (_m *ExternalPluginServiceServer) GetTask(_a0 context.Context, _a1 *service.TaskGetRequest) (*service.TaskGetResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.TaskGetResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.TaskGetRequest) *service.TaskGetResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.TaskGetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.TaskGetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/IdentityServiceClient.go b/flyteidl/clients/go/admin/mocks/IdentityServiceClient.go new file mode 100644 index 0000000000..42868ad88e --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/IdentityServiceClient.go @@ -0,0 +1,66 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +// IdentityServiceClient is an autogenerated mock type for the IdentityServiceClient type +type IdentityServiceClient struct { + mock.Mock +} + +type IdentityServiceClient_UserInfo struct { + *mock.Call +} + +func (_m IdentityServiceClient_UserInfo) Return(_a0 *service.UserInfoResponse, _a1 error) *IdentityServiceClient_UserInfo { + return &IdentityServiceClient_UserInfo{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *IdentityServiceClient) OnUserInfo(ctx context.Context, in *service.UserInfoRequest, opts ...grpc.CallOption) *IdentityServiceClient_UserInfo { + c_call := _m.On("UserInfo", ctx, in, opts) + return &IdentityServiceClient_UserInfo{Call: c_call} +} + +func (_m *IdentityServiceClient) OnUserInfoMatch(matchers ...interface{}) *IdentityServiceClient_UserInfo { + c_call := _m.On("UserInfo", matchers...) + return &IdentityServiceClient_UserInfo{Call: c_call} +} + +// UserInfo provides a mock function with given fields: ctx, in, opts +func (_m *IdentityServiceClient) UserInfo(ctx context.Context, in *service.UserInfoRequest, opts ...grpc.CallOption) (*service.UserInfoResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *service.UserInfoResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.UserInfoRequest, ...grpc.CallOption) *service.UserInfoResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.UserInfoResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.UserInfoRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/IdentityServiceServer.go b/flyteidl/clients/go/admin/mocks/IdentityServiceServer.go new file mode 100644 index 0000000000..597956ab9b --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/IdentityServiceServer.go @@ -0,0 +1,56 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + service "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + mock "github.com/stretchr/testify/mock" +) + +// IdentityServiceServer is an autogenerated mock type for the IdentityServiceServer type +type IdentityServiceServer struct { + mock.Mock +} + +type IdentityServiceServer_UserInfo struct { + *mock.Call +} + +func (_m IdentityServiceServer_UserInfo) Return(_a0 *service.UserInfoResponse, _a1 error) *IdentityServiceServer_UserInfo { + return &IdentityServiceServer_UserInfo{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *IdentityServiceServer) OnUserInfo(_a0 context.Context, _a1 *service.UserInfoRequest) *IdentityServiceServer_UserInfo { + c_call := _m.On("UserInfo", _a0, _a1) + return &IdentityServiceServer_UserInfo{Call: c_call} +} + +func (_m *IdentityServiceServer) OnUserInfoMatch(matchers ...interface{}) *IdentityServiceServer_UserInfo { + c_call := _m.On("UserInfo", matchers...) + return &IdentityServiceServer_UserInfo{Call: c_call} +} + +// UserInfo provides a mock function with given fields: _a0, _a1 +func (_m *IdentityServiceServer) UserInfo(_a0 context.Context, _a1 *service.UserInfoRequest) (*service.UserInfoResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *service.UserInfoResponse + if rf, ok := ret.Get(0).(func(context.Context, *service.UserInfoRequest) *service.UserInfoResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*service.UserInfoResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *service.UserInfoRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/SignalServiceClient.go b/flyteidl/clients/go/admin/mocks/SignalServiceClient.go new file mode 100644 index 0000000000..d0a819e2b0 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/SignalServiceClient.go @@ -0,0 +1,162 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" +) + +// SignalServiceClient is an autogenerated mock type for the SignalServiceClient type +type SignalServiceClient struct { + mock.Mock +} + +type SignalServiceClient_GetOrCreateSignal struct { + *mock.Call +} + +func (_m SignalServiceClient_GetOrCreateSignal) Return(_a0 *admin.Signal, _a1 error) *SignalServiceClient_GetOrCreateSignal { + return &SignalServiceClient_GetOrCreateSignal{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SignalServiceClient) OnGetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) *SignalServiceClient_GetOrCreateSignal { + c_call := _m.On("GetOrCreateSignal", ctx, in, opts) + return &SignalServiceClient_GetOrCreateSignal{Call: c_call} +} + +func (_m *SignalServiceClient) OnGetOrCreateSignalMatch(matchers ...interface{}) *SignalServiceClient_GetOrCreateSignal { + c_call := _m.On("GetOrCreateSignal", matchers...) + return &SignalServiceClient_GetOrCreateSignal{Call: c_call} +} + +// GetOrCreateSignal provides a mock function with given fields: ctx, in, opts +func (_m *SignalServiceClient) GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.Signal + if rf, ok := ret.Get(0).(func(context.Context, *admin.SignalGetOrCreateRequest, ...grpc.CallOption) *admin.Signal); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Signal) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.SignalGetOrCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type SignalServiceClient_ListSignals struct { + *mock.Call +} + +func (_m SignalServiceClient_ListSignals) Return(_a0 *admin.SignalList, _a1 error) *SignalServiceClient_ListSignals { + return &SignalServiceClient_ListSignals{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SignalServiceClient) OnListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) *SignalServiceClient_ListSignals { + c_call := _m.On("ListSignals", ctx, in, opts) + return &SignalServiceClient_ListSignals{Call: c_call} +} + +func (_m *SignalServiceClient) OnListSignalsMatch(matchers ...interface{}) *SignalServiceClient_ListSignals { + c_call := _m.On("ListSignals", matchers...) + return &SignalServiceClient_ListSignals{Call: c_call} +} + +// ListSignals provides a mock function with given fields: ctx, in, opts +func (_m *SignalServiceClient) ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.SignalList + if rf, ok := ret.Get(0).(func(context.Context, *admin.SignalListRequest, ...grpc.CallOption) *admin.SignalList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.SignalList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.SignalListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type SignalServiceClient_SetSignal struct { + *mock.Call +} + +func (_m SignalServiceClient_SetSignal) Return(_a0 *admin.SignalSetResponse, _a1 error) *SignalServiceClient_SetSignal { + return &SignalServiceClient_SetSignal{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SignalServiceClient) OnSetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) *SignalServiceClient_SetSignal { + c_call := _m.On("SetSignal", ctx, in, opts) + return &SignalServiceClient_SetSignal{Call: c_call} +} + +func (_m *SignalServiceClient) OnSetSignalMatch(matchers ...interface{}) *SignalServiceClient_SetSignal { + c_call := _m.On("SetSignal", matchers...) + return &SignalServiceClient_SetSignal{Call: c_call} +} + +// SetSignal provides a mock function with given fields: ctx, in, opts +func (_m *SignalServiceClient) SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.SignalSetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.SignalSetRequest, ...grpc.CallOption) *admin.SignalSetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.SignalSetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.SignalSetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/SignalServiceServer.go b/flyteidl/clients/go/admin/mocks/SignalServiceServer.go new file mode 100644 index 0000000000..daad4a86c8 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/SignalServiceServer.go @@ -0,0 +1,139 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + + mock "github.com/stretchr/testify/mock" +) + +// SignalServiceServer is an autogenerated mock type for the SignalServiceServer type +type SignalServiceServer struct { + mock.Mock +} + +type SignalServiceServer_GetOrCreateSignal struct { + *mock.Call +} + +func (_m SignalServiceServer_GetOrCreateSignal) Return(_a0 *admin.Signal, _a1 error) *SignalServiceServer_GetOrCreateSignal { + return &SignalServiceServer_GetOrCreateSignal{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SignalServiceServer) OnGetOrCreateSignal(_a0 context.Context, _a1 *admin.SignalGetOrCreateRequest) *SignalServiceServer_GetOrCreateSignal { + c_call := _m.On("GetOrCreateSignal", _a0, _a1) + return &SignalServiceServer_GetOrCreateSignal{Call: c_call} +} + +func (_m *SignalServiceServer) OnGetOrCreateSignalMatch(matchers ...interface{}) *SignalServiceServer_GetOrCreateSignal { + c_call := _m.On("GetOrCreateSignal", matchers...) + return &SignalServiceServer_GetOrCreateSignal{Call: c_call} +} + +// GetOrCreateSignal provides a mock function with given fields: _a0, _a1 +func (_m *SignalServiceServer) GetOrCreateSignal(_a0 context.Context, _a1 *admin.SignalGetOrCreateRequest) (*admin.Signal, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.Signal + if rf, ok := ret.Get(0).(func(context.Context, *admin.SignalGetOrCreateRequest) *admin.Signal); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Signal) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.SignalGetOrCreateRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type SignalServiceServer_ListSignals struct { + *mock.Call +} + +func (_m SignalServiceServer_ListSignals) Return(_a0 *admin.SignalList, _a1 error) *SignalServiceServer_ListSignals { + return &SignalServiceServer_ListSignals{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SignalServiceServer) OnListSignals(_a0 context.Context, _a1 *admin.SignalListRequest) *SignalServiceServer_ListSignals { + c_call := _m.On("ListSignals", _a0, _a1) + return &SignalServiceServer_ListSignals{Call: c_call} +} + +func (_m *SignalServiceServer) OnListSignalsMatch(matchers ...interface{}) *SignalServiceServer_ListSignals { + c_call := _m.On("ListSignals", matchers...) + return &SignalServiceServer_ListSignals{Call: c_call} +} + +// ListSignals provides a mock function with given fields: _a0, _a1 +func (_m *SignalServiceServer) ListSignals(_a0 context.Context, _a1 *admin.SignalListRequest) (*admin.SignalList, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.SignalList + if rf, ok := ret.Get(0).(func(context.Context, *admin.SignalListRequest) *admin.SignalList); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.SignalList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.SignalListRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type SignalServiceServer_SetSignal struct { + *mock.Call +} + +func (_m SignalServiceServer_SetSignal) Return(_a0 *admin.SignalSetResponse, _a1 error) *SignalServiceServer_SetSignal { + return &SignalServiceServer_SetSignal{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SignalServiceServer) OnSetSignal(_a0 context.Context, _a1 *admin.SignalSetRequest) *SignalServiceServer_SetSignal { + c_call := _m.On("SetSignal", _a0, _a1) + return &SignalServiceServer_SetSignal{Call: c_call} +} + +func (_m *SignalServiceServer) OnSetSignalMatch(matchers ...interface{}) *SignalServiceServer_SetSignal { + c_call := _m.On("SetSignal", matchers...) + return &SignalServiceServer_SetSignal{Call: c_call} +} + +// SetSignal provides a mock function with given fields: _a0, _a1 +func (_m *SignalServiceServer) SetSignal(_a0 context.Context, _a1 *admin.SignalSetRequest) (*admin.SignalSetResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.SignalSetResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.SignalSetRequest) *admin.SignalSetResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.SignalSetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.SignalSetRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/TokenSource.go b/flyteidl/clients/go/admin/mocks/TokenSource.go new file mode 100644 index 0000000000..60cc872367 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/TokenSource.go @@ -0,0 +1,54 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + mock "github.com/stretchr/testify/mock" + oauth2 "golang.org/x/oauth2" +) + +// TokenSource is an autogenerated mock type for the TokenSource type +type TokenSource struct { + mock.Mock +} + +type TokenSource_Token struct { + *mock.Call +} + +func (_m TokenSource_Token) Return(_a0 *oauth2.Token, _a1 error) *TokenSource_Token { + return &TokenSource_Token{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *TokenSource) OnToken() *TokenSource_Token { + c_call := _m.On("Token") + return &TokenSource_Token{Call: c_call} +} + +func (_m *TokenSource) OnTokenMatch(matchers ...interface{}) *TokenSource_Token { + c_call := _m.On("Token", matchers...) + return &TokenSource_Token{Call: c_call} +} + +// Token provides a mock function with given fields: +func (_m *TokenSource) Token() (*oauth2.Token, error) { + ret := _m.Called() + + var r0 *oauth2.Token + if rf, ok := ret.Get(0).(func() *oauth2.Token); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oauth2.Token) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/isCreateDownloadLinkRequest_Source.go b/flyteidl/clients/go/admin/mocks/isCreateDownloadLinkRequest_Source.go new file mode 100644 index 0000000000..cd799dc9d7 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/isCreateDownloadLinkRequest_Source.go @@ -0,0 +1,15 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" + +// isCreateDownloadLinkRequest_Source is an autogenerated mock type for the isCreateDownloadLinkRequest_Source type +type isCreateDownloadLinkRequest_Source struct { + mock.Mock +} + +// isCreateDownloadLinkRequest_Source provides a mock function with given fields: +func (_m *isCreateDownloadLinkRequest_Source) isCreateDownloadLinkRequest_Source() { + _m.Called() +} diff --git a/flyteidl/clients/go/admin/mocks/isDataResponse_Data.go b/flyteidl/clients/go/admin/mocks/isDataResponse_Data.go new file mode 100644 index 0000000000..a42a9f210f --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/isDataResponse_Data.go @@ -0,0 +1,15 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" + +// isDataResponse_Data is an autogenerated mock type for the isDataResponse_Data type +type isDataResponse_Data struct { + mock.Mock +} + +// isDataResponse_Data provides a mock function with given fields: +func (_m *isDataResponse_Data) isDataResponse_Data() { + _m.Called() +} diff --git a/flyteidl/clients/go/admin/mocks/isGetDataResponse_Data.go b/flyteidl/clients/go/admin/mocks/isGetDataResponse_Data.go new file mode 100644 index 0000000000..3300b7e1b9 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/isGetDataResponse_Data.go @@ -0,0 +1,15 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" + +// isGetDataResponse_Data is an autogenerated mock type for the isGetDataResponse_Data type +type isGetDataResponse_Data struct { + mock.Mock +} + +// isGetDataResponse_Data provides a mock function with given fields: +func (_m *isGetDataResponse_Data) isGetDataResponse_Data() { + _m.Called() +} diff --git a/flyteidl/clients/go/admin/mocks/isTaskCreateResponse_Value.go b/flyteidl/clients/go/admin/mocks/isTaskCreateResponse_Value.go new file mode 100644 index 0000000000..b692f16f9d --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/isTaskCreateResponse_Value.go @@ -0,0 +1,15 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" + +// isTaskCreateResponse_Value is an autogenerated mock type for the isTaskCreateResponse_Value type +type isTaskCreateResponse_Value struct { + mock.Mock +} + +// isTaskCreateResponse_Value provides a mock function with given fields: +func (_m *isTaskCreateResponse_Value) isTaskCreateResponse_Value() { + _m.Called() +} diff --git a/flyteidl/clients/go/admin/oauth/config.go b/flyteidl/clients/go/admin/oauth/config.go new file mode 100644 index 0000000000..1048c91cdc --- /dev/null +++ b/flyteidl/clients/go/admin/oauth/config.go @@ -0,0 +1,46 @@ +package oauth + +import ( + "context" + + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +// Config oauth2.Config overridden with device endpoint for supporting Device Authorization Grant flow [RFC8268] +type Config struct { + *oauth2.Config + DeviceEndpoint string + // Audience value to be passed when requesting access token using device flow.This needs to be passed in the first request of the device flow currently and is configured in admin public client config.Required when auth server hasn't been configured with default audience"` + Audience string +} + +// BuildConfigFromMetadataService builds OAuth2 config from information retrieved through the anonymous auth metadata service. +func BuildConfigFromMetadataService(ctx context.Context, authMetadataClient service.AuthMetadataServiceClient) (clientConf *Config, err error) { + var clientResp *service.PublicClientAuthConfigResponse + if clientResp, err = authMetadataClient.GetPublicClientConfig(ctx, &service.PublicClientAuthConfigRequest{}); err != nil { + return nil, err + } + + var oauthMetaResp *service.OAuth2MetadataResponse + if oauthMetaResp, err = authMetadataClient.GetOAuth2Metadata(ctx, &service.OAuth2MetadataRequest{}); err != nil { + return nil, err + } + + clientConf = &Config{ + Config: &oauth2.Config{ + ClientID: clientResp.ClientId, + RedirectURL: clientResp.RedirectUri, + Scopes: clientResp.Scopes, + Endpoint: oauth2.Endpoint{ + TokenURL: oauthMetaResp.TokenEndpoint, + AuthURL: oauthMetaResp.AuthorizationEndpoint, + }, + }, + DeviceEndpoint: oauthMetaResp.DeviceAuthorizationEndpoint, + Audience: clientResp.Audience, + } + + return clientConf, nil +} diff --git a/flyteidl/clients/go/admin/oauth/config_test.go b/flyteidl/clients/go/admin/oauth/config_test.go new file mode 100644 index 0000000000..3e537aeec4 --- /dev/null +++ b/flyteidl/clients/go/admin/oauth/config_test.go @@ -0,0 +1,41 @@ +package oauth + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + + "github.com/flyteorg/flyteidl/clients/go/admin/mocks" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +func TestGenerateClientConfig(t *testing.T) { + ctx := context.Background() + mockAuthClient := new(mocks.AuthMetadataServiceClient) + flyteClientResp := &service.PublicClientAuthConfigResponse{ + ClientId: "dummyClient", + RedirectUri: "dummyRedirectUri", + Scopes: []string{"dummyScopes"}, + Audience: "dummyAudience", + } + oauthMetaDataResp := &service.OAuth2MetadataResponse{ + Issuer: "dummyIssuer", + AuthorizationEndpoint: "dummyAuthEndPoint", + TokenEndpoint: "dummyTokenEndpoint", + CodeChallengeMethodsSupported: []string{"dummyCodeChallenege"}, + DeviceAuthorizationEndpoint: "dummyDeviceEndpoint", + } + mockAuthClient.OnGetPublicClientConfigMatch(ctx, mock.Anything).Return(flyteClientResp, nil) + mockAuthClient.OnGetOAuth2MetadataMatch(ctx, mock.Anything).Return(oauthMetaDataResp, nil) + oauthConfig, err := BuildConfigFromMetadataService(ctx, mockAuthClient) + assert.Nil(t, err) + assert.NotNil(t, oauthConfig) + assert.Equal(t, "dummyClient", oauthConfig.ClientID) + assert.Equal(t, "dummyRedirectUri", oauthConfig.RedirectURL) + assert.Equal(t, "dummyTokenEndpoint", oauthConfig.Endpoint.TokenURL) + assert.Equal(t, "dummyAuthEndPoint", oauthConfig.Endpoint.AuthURL) + assert.Equal(t, "dummyDeviceEndpoint", oauthConfig.DeviceEndpoint) + assert.Equal(t, "dummyAudience", oauthConfig.Audience) +} diff --git a/flyteidl/clients/go/admin/pkce/auth_flow_orchestrator.go b/flyteidl/clients/go/admin/pkce/auth_flow_orchestrator.go new file mode 100644 index 0000000000..e2eee411da --- /dev/null +++ b/flyteidl/clients/go/admin/pkce/auth_flow_orchestrator.go @@ -0,0 +1,107 @@ +package pkce + +import ( + "context" + "fmt" + "net/http" + "net/url" + + "github.com/pkg/browser" + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/clients/go/admin/tokenorchestrator" + "github.com/flyteorg/flytestdlib/logger" +) + +const ( + stateKey = "state" + nonceKey = "nonce" + codeChallengeKey = "code_challenge" + codeChallengeMethodKey = "code_challenge_method" + codeChallengeMethodVal = "S256" +) + +// TokenOrchestrator implements the main logic to initiate Pkce flow to issue access token and refresh token as well as +// refreshing the access token if a refresh token is present. +type TokenOrchestrator struct { + tokenorchestrator.BaseTokenOrchestrator + Config Config +} + +// FetchTokenFromAuthFlow starts a webserver to listen to redirect callback from the authorization server at the end +// of the flow. It then launches the browser to authenticate the user. +func (f TokenOrchestrator) FetchTokenFromAuthFlow(ctx context.Context) (*oauth2.Token, error) { + var err error + var redirectURL *url.URL + if redirectURL, err = url.Parse(f.ClientConfig.RedirectURL); err != nil { + return nil, err + } + + // pkceCodeVerifier stores the generated random value which the client will on-send to the auth server with the received + // authorization code. This way the oauth server can verify that the base64URLEncoded(sha265(codeVerifier)) matches + // the stored code challenge, which was initially sent through with the code+PKCE authorization request to ensure + // that this is the original user-agent who requested the access token. + pkceCodeVerifier := generateCodeVerifier(64) + + // pkceCodeChallenge stores the base64(sha256(codeVerifier)) which is sent from the + // client to the auth server as required for PKCE. + pkceCodeChallenge := generateCodeChallenge(pkceCodeVerifier) + + stateString := state(32) + nonces := state(32) + + tokenChannel := make(chan *oauth2.Token, 1) + errorChannel := make(chan error, 1) + + values := url.Values{} + values.Add(stateKey, stateString) + values.Add(nonceKey, nonces) + values.Add(codeChallengeKey, pkceCodeChallenge) + values.Add(codeChallengeMethodKey, codeChallengeMethodVal) + urlToOpen := fmt.Sprintf("%s&%s", f.ClientConfig.AuthCodeURL(""), values.Encode()) + + serveMux := http.NewServeMux() + server := &http.Server{Addr: redirectURL.Host, Handler: serveMux, ReadHeaderTimeout: 0} + // Register the call back handler + serveMux.HandleFunc(redirectURL.Path, getAuthServerCallbackHandler(f.ClientConfig, pkceCodeVerifier, + tokenChannel, errorChannel, stateString)) // the oauth2 callback endpoint + defer server.Close() + + go func() { + if err = server.ListenAndServe(); err != nil && err != http.ErrServerClosed { + logger.Fatal(ctx, "Couldn't start the callback http server on host %v due to %v", redirectURL.Host, + err) + } + }() + + logger.Infof(ctx, "Opening the browser at %s", urlToOpen) + if err = browser.OpenURL(urlToOpen); err != nil { + return nil, err + } + + ctx, cancelNow := context.WithTimeout(ctx, f.Config.BrowserSessionTimeout.Duration) + defer cancelNow() + + var token *oauth2.Token + select { + case err = <-errorChannel: + return nil, err + case <-ctx.Done(): + return nil, fmt.Errorf("context was canceled during auth flow") + case token = <-tokenChannel: + if err = f.TokenCache.SaveToken(token); err != nil { + logger.Errorf(ctx, "unable to save the new token due to. Will ignore the error and use the issued token. Error: %v", err) + } + + return token, nil + } +} + +// NewTokenOrchestrator creates a new TokenOrchestrator that implements the main logic to initiate Pkce flow to issue +// access token and refresh token as well as refreshing the access token if a refresh token is present. +func NewTokenOrchestrator(baseOrchestrator tokenorchestrator.BaseTokenOrchestrator, cfg Config) (TokenOrchestrator, error) { + return TokenOrchestrator{ + BaseTokenOrchestrator: baseOrchestrator, + Config: cfg, + }, nil +} diff --git a/flyteidl/clients/go/admin/pkce/auth_flow_orchestrator_test.go b/flyteidl/clients/go/admin/pkce/auth_flow_orchestrator_test.go new file mode 100644 index 0000000000..76225de4ad --- /dev/null +++ b/flyteidl/clients/go/admin/pkce/auth_flow_orchestrator_test.go @@ -0,0 +1,33 @@ +package pkce + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + "github.com/flyteorg/flyteidl/clients/go/admin/oauth" + "github.com/flyteorg/flyteidl/clients/go/admin/tokenorchestrator" +) + +func TestFetchFromAuthFlow(t *testing.T) { + ctx := context.Background() + t.Run("fetch from auth flow", func(t *testing.T) { + tokenCache := &cache.TokenCacheInMemoryProvider{} + orchestrator, err := NewTokenOrchestrator(tokenorchestrator.BaseTokenOrchestrator{ + ClientConfig: &oauth.Config{ + Config: &oauth2.Config{ + RedirectURL: "http://localhost:8089/redirect", + Scopes: []string{"code", "all"}, + }, + }, + TokenCache: tokenCache, + }, Config{}) + assert.NoError(t, err) + refreshedToken, err := orchestrator.FetchTokenFromAuthFlow(ctx) + assert.Nil(t, refreshedToken) + assert.NotNil(t, err) + }) +} diff --git a/flyteidl/clients/go/admin/pkce/config.go b/flyteidl/clients/go/admin/pkce/config.go new file mode 100644 index 0000000000..320afa0a44 --- /dev/null +++ b/flyteidl/clients/go/admin/pkce/config.go @@ -0,0 +1,9 @@ +package pkce + +import "github.com/flyteorg/flytestdlib/config" + +// Config defines settings used for PKCE flow. +type Config struct { + BrowserSessionTimeout config.Duration `json:"timeout" pflag:",Amount of time the browser session would be active for authentication from client app."` + TokenRefreshGracePeriod config.Duration `json:"refreshTime" pflag:",grace period from the token expiry after which it would refresh the token."` +} diff --git a/flyteidl/clients/go/admin/pkce/handle_app_call_back.go b/flyteidl/clients/go/admin/pkce/handle_app_call_back.go new file mode 100644 index 0000000000..0874a5a4c4 --- /dev/null +++ b/flyteidl/clients/go/admin/pkce/handle_app_call_back.go @@ -0,0 +1,55 @@ +package pkce + +import ( + "context" + "fmt" + "net/http" + + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/clients/go/admin/oauth" +) + +func getAuthServerCallbackHandler(c *oauth.Config, codeVerifier string, tokenChannel chan *oauth2.Token, + errorChannel chan error, stateString string) func(rw http.ResponseWriter, req *http.Request) { + + return func(rw http.ResponseWriter, req *http.Request) { + _, _ = rw.Write([]byte(`

Flyte Authentication

`)) + rw.Header().Set("Content-Type", "text/html; charset=utf-8") + if req.URL.Query().Get("error") != "" { + errorChannel <- fmt.Errorf("error on callback during authorization due to %v", req.URL.Query().Get("error")) + _, _ = rw.Write([]byte(fmt.Sprintf(`

Error!

+ Error: %s
+ Error Hint: %s
+ Description: %s
+
`, + req.URL.Query().Get("error"), + req.URL.Query().Get("error_hint"), + req.URL.Query().Get("error_description"), + ))) + return + } + if req.URL.Query().Get("code") == "" { + errorChannel <- fmt.Errorf("could not find the authorize code") + _, _ = rw.Write([]byte(fmt.Sprintln(`

Could not find the authorize code.

`))) + return + } + if req.URL.Query().Get("state") != stateString { + errorChannel <- fmt.Errorf("possibly a csrf attack") + _, _ = rw.Write([]byte(fmt.Sprintln(`

Sorry we can't serve your request'.

`))) + return + } + // We'll check whether we sent a code+PKCE request, and if so, send the code_verifier along when requesting the access token. + var opts []oauth2.AuthCodeOption + opts = append(opts, oauth2.SetAuthURLParam("code_verifier", codeVerifier)) + + token, err := c.Exchange(context.Background(), req.URL.Query().Get("code"), opts...) + if err != nil { + errorChannel <- fmt.Errorf("error while exchanging auth code due to %v", err) + _, _ = rw.Write([]byte(fmt.Sprintf(`

Couldn't get access token due to error: %s

`, err.Error()))) + return + } + _, _ = rw.Write([]byte(`

Cool! Your authentication was successful and you can close the window.

`)) + tokenChannel <- token + } +} diff --git a/flyteidl/clients/go/admin/pkce/handle_app_call_back_test.go b/flyteidl/clients/go/admin/pkce/handle_app_call_back_test.go new file mode 100644 index 0000000000..91eed672c3 --- /dev/null +++ b/flyteidl/clients/go/admin/pkce/handle_app_call_back_test.go @@ -0,0 +1,133 @@ +package pkce + +import ( + "errors" + "net/http" + "net/url" + "strings" + "testing" + + "github.com/flyteorg/flyteidl/clients/go/admin/oauth" + + "github.com/stretchr/testify/assert" + testhttp "github.com/stretchr/testify/http" + "golang.org/x/oauth2" +) + +var ( + rw *testhttp.TestResponseWriter + req *http.Request + callBackFn func(rw http.ResponseWriter, req *http.Request) +) + +func HandleAppCallBackSetup(t *testing.T, state string) (tokenChannel chan *oauth2.Token, errorChannel chan error) { + var testAuthConfig *oauth.Config + errorChannel = make(chan error, 1) + tokenChannel = make(chan *oauth2.Token) + testAuthConfig = &oauth.Config{Config: &oauth2.Config{}, DeviceEndpoint: "dummyDeviceEndpoint"} + callBackFn = getAuthServerCallbackHandler(testAuthConfig, "", tokenChannel, errorChannel, state) + assert.NotNil(t, callBackFn) + req = &http.Request{ + Method: http.MethodGet, + URL: &url.URL{ + Scheme: "http", + Host: "dummyHost", + Path: "dummyPath", + RawQuery: "&error=invalid_request", + }, + } + rw = &testhttp.TestResponseWriter{} + return +} + +func TestHandleAppCallBackWithErrorInRequest(t *testing.T) { + tokenChannel, errorChannel := HandleAppCallBackSetup(t, "") + req = &http.Request{ + Method: http.MethodGet, + URL: &url.URL{ + Scheme: "http", + Host: "dummyHost", + Path: "dummyPath", + RawQuery: "&error=invalid_request", + }, + } + callBackFn(rw, req) + var errorValue error + select { + case errorValue = <-errorChannel: + assert.NotNil(t, errorValue) + assert.True(t, strings.Contains(rw.Output, "invalid_request")) + assert.Equal(t, errors.New("error on callback during authorization due to invalid_request"), errorValue) + case <-tokenChannel: + assert.Fail(t, "received a token for a failed test") + } +} + +func TestHandleAppCallBackWithCodeNotFound(t *testing.T) { + tokenChannel, errorChannel := HandleAppCallBackSetup(t, "") + req = &http.Request{ + Method: http.MethodGet, + URL: &url.URL{ + Scheme: "http", + Host: "dummyHost", + Path: "dummyPath", + RawQuery: "", + }, + } + callBackFn(rw, req) + var errorValue error + select { + case errorValue = <-errorChannel: + assert.NotNil(t, errorValue) + assert.True(t, strings.Contains(rw.Output, "Could not find the authorize code")) + assert.Equal(t, errors.New("could not find the authorize code"), errorValue) + case <-tokenChannel: + assert.Fail(t, "received a token for a failed test") + } +} + +func TestHandleAppCallBackCsrfAttach(t *testing.T) { + tokenChannel, errorChannel := HandleAppCallBackSetup(t, "the real state") + req = &http.Request{ + Method: http.MethodGet, + URL: &url.URL{ + Scheme: "http", + Host: "dummyHost", + Path: "dummyPath", + RawQuery: "&code=dummyCode&state=imposterString", + }, + } + callBackFn(rw, req) + var errorValue error + select { + case errorValue = <-errorChannel: + assert.NotNil(t, errorValue) + assert.True(t, strings.Contains(rw.Output, "Sorry we can't serve your request")) + assert.Equal(t, errors.New("possibly a csrf attack"), errorValue) + case <-tokenChannel: + assert.Fail(t, "received a token for a failed test") + } +} + +func TestHandleAppCallBackFailedTokenExchange(t *testing.T) { + tokenChannel, errorChannel := HandleAppCallBackSetup(t, "realStateString") + req = &http.Request{ + Method: http.MethodGet, + URL: &url.URL{ + Scheme: "http", + Host: "dummyHost", + Path: "dummyPath", + RawQuery: "&code=dummyCode&state=realStateString", + }, + } + rw = &testhttp.TestResponseWriter{} + callBackFn(rw, req) + var errorValue error + select { + case errorValue = <-errorChannel: + assert.NotNil(t, errorValue) + assert.True(t, strings.Contains(errorValue.Error(), "error while exchanging auth code due")) + case <-tokenChannel: + assert.Fail(t, "received a token for a failed test") + } +} diff --git a/flyteidl/clients/go/admin/pkce/oauth2_client.go b/flyteidl/clients/go/admin/pkce/oauth2_client.go new file mode 100644 index 0000000000..cab56df132 --- /dev/null +++ b/flyteidl/clients/go/admin/pkce/oauth2_client.go @@ -0,0 +1,59 @@ +// Provides the setup required for the client to perform the "Authorization Code" flow with PKCE in order to obtain an +// access token for public/untrusted clients. +package pkce + +import ( + "crypto/sha256" + "encoding/base64" + + "golang.org/x/oauth2" + rand2 "k8s.io/apimachinery/pkg/util/rand" +) + +// The following sets up the requirements for generating a standards compliant PKCE code verifier. +const codeVerifierLenMin = 43 +const codeVerifierLenMax = 128 + +// generateCodeVerifier provides an easy way to generate an n-length randomised +// code verifier. +func generateCodeVerifier(n int) string { + // Enforce standards compliance... + if n < codeVerifierLenMin { + n = codeVerifierLenMin + } + + if n > codeVerifierLenMax { + n = codeVerifierLenMax + } + + return randomString(n) +} + +func randomString(length int) string { + return rand2.String(length) +} + +// generateCodeChallenge returns a standards compliant PKCE S(HA)256 code +// challenge. +func generateCodeChallenge(codeVerifier string) string { + // Create a sha-265 hash from the code verifier... + s256 := sha256.New() + _, _ = s256.Write([]byte(codeVerifier)) + // Then base64 encode the hash sum to create a code challenge... + return base64.RawURLEncoding.EncodeToString(s256.Sum(nil)) +} + +func state(n int) string { + data := randomString(n) + return base64.RawURLEncoding.EncodeToString([]byte(data)) +} + +// SimpleTokenSource defines a simple token source that caches a token in memory. +type SimpleTokenSource struct { + CachedToken *oauth2.Token +} + +func (ts *SimpleTokenSource) Token() (*oauth2.Token, error) { + t := ts.CachedToken + return t, nil +} diff --git a/flyteidl/clients/go/admin/pkce/testdata/empty_access_token.json b/flyteidl/clients/go/admin/pkce/testdata/empty_access_token.json new file mode 100644 index 0000000000..474f4762e0 --- /dev/null +++ b/flyteidl/clients/go/admin/pkce/testdata/empty_access_token.json @@ -0,0 +1,6 @@ +{ + "access_token":"", + "token_type":"bearer", + "refresh_token":"eyJhbGciOiJSUzI1NiIsImtleV9pZCI6IjlLZlNILXphZjRjY1dmTlNPbm91YmZUbnItVW5kMHVuY3ctWF9KNUJVdWciLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiaHR0cHM6Ly9kZW1vLm51Y2x5ZGUuaW8iXSwiY2xpZW50X2lkIjoiZmx5dGVjdGwiLCJleHAiOjE2MTk1MzM1MjcsImZvcm0iOnsiY29kZV9jaGFsbGVuZ2UiOiJ2bWNxazArZnJRS3Vvb2FMUHZwUDJCeUtod2VKR2VaeG1mdGtkMml0T042Tk13SVBQNWwySmNpWDd3NTdlaS9iVW1LTWhPSjJVUERnK0F5RXRaTG94SFJiMDl1cWRKSSIsImNvZGVfY2hhbGxlbmdlX21ldGhvZCI6IlN2WEgyeDh2UDUrSkJxQ0NjT2dCL0hNWjdLSmE3bkdLMDBaUVA0ekd4WGcifSwiaWF0IjoxNjE5NTAyNTM1LCJpc3MiOiJodHRwczovL2RlbW8ubnVjbHlkZS5pbyIsImp0aSI6IjQzMTM1ZWY2LTA5NjEtNGFlZC1hOTYxLWQyZGI1YWJmM2U1YyIsInNjcCI6WyJvZmZsaW5lIiwiZi5hbGwiLCJhY2Nlc3NfdG9rZW4iXSwic3ViIjoiMTE0NTI3ODE1MzA1MTI4OTc0NDcwIiwidXNlcl9pbmZvIjp7ImZhbWlseV9uYW1lIjoiTWFoaW5kcmFrYXIiLCJnaXZlbl9uYW1lIjoiUHJhZnVsbGEiLCJuYW1lIjoiUHJhZnVsbGEgTWFoaW5kcmFrYXIiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EtL0FPaDE0R2p1VDFrOC04YTV2QkdPSUYxYURnaFltRng4aEQ5S05pUjVqblp1PXM5Ni1jIiwic3ViamVjdCI6IjExNDUyNzgxNTMwNTEyODk3NDQ3MCJ9fQ.YKom5-gE4e84rJJIfxcpbMzgjZT33UZ27UTa1y8pK2BAWaPjIZtwudwDHQ5Rd3m0mJJWhBp0j0e8h9DvzBUdpsnGMXSCYKP-ag9y9k5OW59FMm9RqIakWHtj6NPnxGO1jAsaNCYePj8knR7pBLCLCse2taDHUJ8RU1F0DeHNr2y-JupgG5y1vjBcb-9eD8OwOSTp686_hm7XoJlxiKx8dj2O7HPH7M2pAHA_0bVrKKj7Y_s3fRhkm_Aq6LRdA-IiTl9xJQxgVUreejls9-RR9mSTKj6A81-Isz3qAUttVVaA4OT5OdW879_yT7OSLw_QwpXzNZ7qOR7OIpmL_xZXig", + "expiry":"2021-04-27T19:55:26.658635+05:30" +} \ No newline at end of file diff --git a/flyteidl/clients/go/admin/testdata/invalid-root.pem b/flyteidl/clients/go/admin/testdata/invalid-root.pem new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/clients/go/admin/testdata/root.pem b/flyteidl/clients/go/admin/testdata/root.pem new file mode 100644 index 0000000000..856c15ad90 --- /dev/null +++ b/flyteidl/clients/go/admin/testdata/root.pem @@ -0,0 +1,24 @@ +-----BEGIN CERTIFICATE----- +MIIEBDCCAuygAwIBAgIDAjppMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT +MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i +YWwgQ0EwHhcNMTMwNDA1MTUxNTU1WhcNMTUwNDA0MTUxNTU1WjBJMQswCQYDVQQG +EwJVUzETMBEGA1UEChMKR29vZ2xlIEluYzElMCMGA1UEAxMcR29vZ2xlIEludGVy +bmV0IEF1dGhvcml0eSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB +AJwqBHdc2FCROgajguDYUEi8iT/xGXAaiEZ+4I/F8YnOIe5a/mENtzJEiaB0C1NP +VaTOgmKV7utZX8bhBYASxF6UP7xbSDj0U/ck5vuR6RXEz/RTDfRK/J9U3n2+oGtv +h8DQUB8oMANA2ghzUWx//zo8pzcGjr1LEQTrfSTe5vn8MXH7lNVg8y5Kr0LSy+rE +ahqyzFPdFUuLH8gZYR/Nnag+YyuENWllhMgZxUYi+FOVvuOAShDGKuy6lyARxzmZ +EASg8GF6lSWMTlJ14rbtCMoU/M4iarNOz0YDl5cDfsCx3nuvRTPPuj5xt970JSXC +DTWJnZ37DhF5iR43xa+OcmkCAwEAAaOB+zCB+DAfBgNVHSMEGDAWgBTAephojYn7 +qwVkDBF9qn1luMrMTjAdBgNVHQ4EFgQUSt0GFhu89mi1dvWBtrtiGrpagS8wEgYD +VR0TAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAQYwOgYDVR0fBDMwMTAvoC2g +K4YpaHR0cDovL2NybC5nZW90cnVzdC5jb20vY3Jscy9ndGdsb2JhbC5jcmwwPQYI +KwYBBQUHAQEEMTAvMC0GCCsGAQUFBzABhiFodHRwOi8vZ3RnbG9iYWwtb2NzcC5n +ZW90cnVzdC5jb20wFwYDVR0gBBAwDjAMBgorBgEEAdZ5AgUBMA0GCSqGSIb3DQEB +BQUAA4IBAQA21waAESetKhSbOHezI6B1WLuxfoNCunLaHtiONgaX4PCVOzf9G0JY +/iLIa704XtE7JW4S615ndkZAkNoUyHgN7ZVm2o6Gb4ChulYylYbc3GrKBIxbf/a/ +zG+FA1jDaFETzf3I93k9mTXwVqO94FntT0QJo544evZG0R0SnU++0ED8Vf4GXjza +HFa9llF7b1cq26KqltyMdMKVvvBulRP/F/A8rLIQjcxz++iPAsbw+zOzlTvjwsto +WHPbqCRiOwY1nQ2pM714A5AuTHhdUDqB1O6gyHA43LL5Z/qHQF1hwFGPa4NrzQU6 +yuGnBXj8ytqU0CwIPX4WecigUCAkVDNx +-----END CERTIFICATE----- \ No newline at end of file diff --git a/flyteidl/clients/go/admin/testdata/secret_key b/flyteidl/clients/go/admin/testdata/secret_key new file mode 100755 index 0000000000..b23f84a846 --- /dev/null +++ b/flyteidl/clients/go/admin/testdata/secret_key @@ -0,0 +1 @@ +pptDrk6qoJfM0Z1iFxvgUjxx9vEc46UuE6TvOmBJ4aY \ No newline at end of file diff --git a/flyteidl/clients/go/admin/token_source.go b/flyteidl/clients/go/admin/token_source.go new file mode 100644 index 0000000000..33610e2877 --- /dev/null +++ b/flyteidl/clients/go/admin/token_source.go @@ -0,0 +1,51 @@ +package admin + +import ( + "context" + + "golang.org/x/oauth2" +) + +// CustomHeaderTokenSource class is here because we cannot use the normal "github.com/grpc/grpc-go/credentials/oauth" package to satisfy +// the credentials.PerRPCCredentials interface. This is because we want to be able to support a different 'header' +// when passing the token in the gRPC call's metadata. The default is filled in in the constructor if none is supplied. +type CustomHeaderTokenSource struct { + tokenSource oauth2.TokenSource + customHeader string + insecure bool +} + +const DefaultAuthorizationHeader = "authorization" + +// RequireTransportSecurity returns whether this credentials class requires TLS/SSL. OAuth uses Bearer tokens that are +// susceptible to MITM (Man-In-The-Middle) attacks that are mitigated by TLS/SSL. We may return false here to make it +// easier to setup auth. However, in a production environment, TLS for OAuth2 is a requirement. +// see also: https://tools.ietf.org/html/rfc6749#section-3.1 +func (ts CustomHeaderTokenSource) RequireTransportSecurity() bool { + return !ts.insecure +} + +// GetRequestMetadata gets the authorization metadata as a map using a TokenSource to generate a token +func (ts CustomHeaderTokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) { + token, err := ts.tokenSource.Token() + if err != nil { + return nil, err + } + + return map[string]string{ + ts.customHeader: token.Type() + " " + token.AccessToken, + }, nil +} + +func NewCustomHeaderTokenSource(source oauth2.TokenSource, insecure bool, customHeader string) CustomHeaderTokenSource { + header := DefaultAuthorizationHeader + if customHeader != "" { + header = customHeader + } + + return CustomHeaderTokenSource{ + tokenSource: source, + customHeader: header, + insecure: insecure, + } +} diff --git a/flyteidl/clients/go/admin/token_source_provider.go b/flyteidl/clients/go/admin/token_source_provider.go new file mode 100644 index 0000000000..e836bf81a6 --- /dev/null +++ b/flyteidl/clients/go/admin/token_source_provider.go @@ -0,0 +1,280 @@ +package admin + +import ( + "context" + "fmt" + "io/ioutil" + "net/url" + "os" + "strings" + "sync" + + "golang.org/x/oauth2" + "golang.org/x/oauth2/clientcredentials" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + "github.com/flyteorg/flyteidl/clients/go/admin/deviceflow" + "github.com/flyteorg/flyteidl/clients/go/admin/externalprocess" + "github.com/flyteorg/flyteidl/clients/go/admin/pkce" + "github.com/flyteorg/flyteidl/clients/go/admin/tokenorchestrator" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + "github.com/flyteorg/flytestdlib/logger" +) + +//go:generate mockery -name TokenSource +type TokenSource interface { + Token() (*oauth2.Token, error) +} + +const ( + audienceKey = "audience" +) + +// TokenSourceProvider defines the interface needed to provide a TokenSource that is used to +// create a client with authentication enabled. +type TokenSourceProvider interface { + GetTokenSource(ctx context.Context) (oauth2.TokenSource, error) +} + +func NewTokenSourceProvider(ctx context.Context, cfg *Config, tokenCache cache.TokenCache, + authClient service.AuthMetadataServiceClient) (TokenSourceProvider, error) { + + var tokenProvider TokenSourceProvider + var err error + switch cfg.AuthType { + case AuthTypeClientSecret: + tokenURL := cfg.TokenURL + if len(tokenURL) == 0 { + metadata, err := authClient.GetOAuth2Metadata(ctx, &service.OAuth2MetadataRequest{}) + if err != nil { + return nil, fmt.Errorf("failed to fetch auth metadata. Error: %v", err) + } + + tokenURL = metadata.TokenEndpoint + } + + scopes := cfg.Scopes + audienceValue := cfg.Audience + + if len(scopes) == 0 || cfg.UseAudienceFromAdmin { + publicClientConfig, err := authClient.GetPublicClientConfig(ctx, &service.PublicClientAuthConfigRequest{}) + if err != nil { + return nil, fmt.Errorf("failed to fetch client metadata. Error: %v", err) + } + // Update scopes from publicClientConfig + if len(scopes) == 0 { + scopes = publicClientConfig.Scopes + } + // Update audience from publicClientConfig + if cfg.UseAudienceFromAdmin { + audienceValue = publicClientConfig.Audience + } + } + + tokenProvider, err = NewClientCredentialsTokenSourceProvider(ctx, cfg, scopes, tokenURL, tokenCache, audienceValue) + if err != nil { + return nil, err + } + case AuthTypePkce: + baseTokenOrchestrator, err := tokenorchestrator.NewBaseTokenOrchestrator(ctx, tokenCache, authClient) + if err != nil { + return nil, err + } + + tokenProvider, err = NewPKCETokenSourceProvider(baseTokenOrchestrator, cfg.PkceConfig) + if err != nil { + return nil, err + } + case AuthTypeExternalCommand: + tokenProvider, err = NewExternalTokenSourceProvider(cfg.Command) + if err != nil { + return nil, err + } + case AuthTypeDeviceFlow: + baseTokenOrchestrator, err := tokenorchestrator.NewBaseTokenOrchestrator(ctx, tokenCache, authClient) + if err != nil { + return nil, err + } + + tokenProvider, err = NewDeviceFlowTokenSourceProvider(baseTokenOrchestrator, cfg.DeviceFlowConfig) + if err != nil { + return nil, err + } + default: + return nil, fmt.Errorf("unsupported type %v", cfg.AuthType) + } + + return tokenProvider, nil +} + +type ExternalTokenSourceProvider struct { + command []string +} + +func NewExternalTokenSourceProvider(command []string) (TokenSourceProvider, error) { + return &ExternalTokenSourceProvider{command: command}, nil +} + +func (e ExternalTokenSourceProvider) GetTokenSource(ctx context.Context) (oauth2.TokenSource, error) { + output, err := externalprocess.Execute(e.command) + if err != nil { + return nil, err + } + + return oauth2.StaticTokenSource(&oauth2.Token{ + AccessToken: strings.Trim(string(output), "\t \n"), + TokenType: "bearer", + }), nil +} + +type PKCETokenSourceProvider struct { + tokenOrchestrator pkce.TokenOrchestrator +} + +func NewPKCETokenSourceProvider(baseTokenOrchestrator tokenorchestrator.BaseTokenOrchestrator, pkceCfg pkce.Config) (TokenSourceProvider, error) { + tokenOrchestrator, err := pkce.NewTokenOrchestrator(baseTokenOrchestrator, pkceCfg) + if err != nil { + return nil, err + } + return PKCETokenSourceProvider{tokenOrchestrator: tokenOrchestrator}, nil +} + +func (p PKCETokenSourceProvider) GetTokenSource(ctx context.Context) (oauth2.TokenSource, error) { + return GetPKCEAuthTokenSource(ctx, p.tokenOrchestrator) +} + +// Returns the token source which would be used for three legged oauth. eg : for admin to authorize access to flytectl +func GetPKCEAuthTokenSource(ctx context.Context, pkceTokenOrchestrator pkce.TokenOrchestrator) (oauth2.TokenSource, error) { + // explicitly ignore error while fetching token from cache. + authToken, err := pkceTokenOrchestrator.FetchTokenFromCacheOrRefreshIt(ctx, pkceTokenOrchestrator.Config.BrowserSessionTimeout) + if err != nil { + logger.Warnf(ctx, "Failed fetching from cache. Will restart the flow. Error: %v", err) + } + + if authToken == nil { + // Fetch using auth flow + if authToken, err = pkceTokenOrchestrator.FetchTokenFromAuthFlow(ctx); err != nil { + logger.Errorf(ctx, "Error fetching token using auth flow due to %v", err) + return nil, err + } + } + + return &pkce.SimpleTokenSource{ + CachedToken: authToken, + }, nil +} + +type ClientCredentialsTokenSourceProvider struct { + ccConfig clientcredentials.Config + tokenCache cache.TokenCache +} + +func NewClientCredentialsTokenSourceProvider(ctx context.Context, cfg *Config, scopes []string, tokenURL string, + tokenCache cache.TokenCache, audience string) (TokenSourceProvider, error) { + var secret string + if len(cfg.ClientSecretEnvVar) > 0 { + secret = os.Getenv(cfg.ClientSecretEnvVar) + } else if len(cfg.ClientSecretLocation) > 0 { + secretBytes, err := ioutil.ReadFile(cfg.ClientSecretLocation) + if err != nil { + logger.Errorf(ctx, "Error reading secret from location %s", cfg.ClientSecretLocation) + return nil, err + } + secret = string(secretBytes) + } + endpointParams := url.Values{} + if len(audience) > 0 { + endpointParams = url.Values{audienceKey: {audience}} + } + secret = strings.TrimSpace(secret) + if tokenCache == nil { + tokenCache = &cache.TokenCacheInMemoryProvider{} + } + return ClientCredentialsTokenSourceProvider{ + ccConfig: clientcredentials.Config{ + ClientID: cfg.ClientID, + ClientSecret: secret, + TokenURL: tokenURL, + Scopes: scopes, + EndpointParams: endpointParams, + }, + tokenCache: tokenCache}, nil +} + +func (p ClientCredentialsTokenSourceProvider) GetTokenSource(ctx context.Context) (oauth2.TokenSource, error) { + return &customTokenSource{ + ctx: ctx, + new: p.ccConfig.TokenSource(ctx), + mu: sync.Mutex{}, + tokenCache: p.tokenCache, + }, nil +} + +type customTokenSource struct { + ctx context.Context + mu sync.Mutex // guards everything else + new oauth2.TokenSource + tokenCache cache.TokenCache +} + +func (s *customTokenSource) Token() (*oauth2.Token, error) { + s.mu.Lock() + defer s.mu.Unlock() + + if token, err := s.tokenCache.GetToken(); err == nil && token.Valid() { + return token, nil + } + + token, err := s.new.Token() + if err != nil { + logger.Warnf(s.ctx, "failed to get token: %w", err) + return nil, fmt.Errorf("failed to get token: %w", err) + } + logger.Infof(s.ctx, "retrieved token with expiry %v", token.Expiry) + + err = s.tokenCache.SaveToken(token) + if err != nil { + logger.Warnf(s.ctx, "failed to cache token: %w", err) + } + + return token, nil +} + +type DeviceFlowTokenSourceProvider struct { + tokenOrchestrator deviceflow.TokenOrchestrator +} + +func NewDeviceFlowTokenSourceProvider(baseTokenOrchestrator tokenorchestrator.BaseTokenOrchestrator, deviceFlowConfig deviceflow.Config) (TokenSourceProvider, error) { + + tokenOrchestrator, err := deviceflow.NewDeviceFlowTokenOrchestrator(baseTokenOrchestrator, deviceFlowConfig) + if err != nil { + return nil, err + } + + return DeviceFlowTokenSourceProvider{tokenOrchestrator: tokenOrchestrator}, nil +} + +func (p DeviceFlowTokenSourceProvider) GetTokenSource(ctx context.Context) (oauth2.TokenSource, error) { + return GetDeviceFlowAuthTokenSource(ctx, p.tokenOrchestrator) +} + +// GetDeviceFlowAuthTokenSource Returns the token source which would be used for device auth flow +func GetDeviceFlowAuthTokenSource(ctx context.Context, deviceFlowOrchestrator deviceflow.TokenOrchestrator) (oauth2.TokenSource, error) { + // explicitly ignore error while fetching token from cache. + authToken, err := deviceFlowOrchestrator.FetchTokenFromCacheOrRefreshIt(ctx, deviceFlowOrchestrator.Config.TokenRefreshGracePeriod) + if err != nil { + logger.Warnf(ctx, "Failed fetching from cache. Will restart the flow. Error: %v", err) + } + + if authToken == nil { + // Fetch using auth flow + if authToken, err = deviceFlowOrchestrator.FetchTokenFromAuthFlow(ctx); err != nil { + logger.Errorf(ctx, "Error fetching token using auth flow due to %v", err) + return nil, err + } + } + + return &pkce.SimpleTokenSource{ + CachedToken: authToken, + }, nil +} diff --git a/flyteidl/clients/go/admin/token_source_provider_test.go b/flyteidl/clients/go/admin/token_source_provider_test.go new file mode 100644 index 0000000000..a0d4cb240c --- /dev/null +++ b/flyteidl/clients/go/admin/token_source_provider_test.go @@ -0,0 +1,162 @@ +package admin + +import ( + "context" + "fmt" + "net/url" + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + "golang.org/x/oauth2" + + tokenCacheMocks "github.com/flyteorg/flyteidl/clients/go/admin/cache/mocks" + adminMocks "github.com/flyteorg/flyteidl/clients/go/admin/mocks" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" +) + +func TestNewTokenSourceProvider(t *testing.T) { + ctx := context.Background() + tests := []struct { + name string + audienceCfg string + scopesCfg []string + useAudienceFromAdmin bool + clientConfigResponse service.PublicClientAuthConfigResponse + expectedAudience string + expectedScopes []string + expectedCallsPubEndpoint int + }{ + { + name: "audience from client config", + audienceCfg: "clientConfiguredAud", + scopesCfg: []string{"all"}, + clientConfigResponse: service.PublicClientAuthConfigResponse{}, + expectedAudience: "clientConfiguredAud", + expectedScopes: []string{"all"}, + expectedCallsPubEndpoint: 0, + }, + { + name: "audience from public client response", + audienceCfg: "clientConfiguredAud", + useAudienceFromAdmin: true, + scopesCfg: []string{"all"}, + clientConfigResponse: service.PublicClientAuthConfigResponse{Audience: "AdminConfiguredAud", Scopes: []string{}}, + expectedAudience: "AdminConfiguredAud", + expectedScopes: []string{"all"}, + expectedCallsPubEndpoint: 1, + }, + + { + name: "audience from client with useAudience from admin false", + audienceCfg: "clientConfiguredAud", + useAudienceFromAdmin: false, + scopesCfg: []string{"all"}, + clientConfigResponse: service.PublicClientAuthConfigResponse{Audience: "AdminConfiguredAud", Scopes: []string{}}, + expectedAudience: "clientConfiguredAud", + expectedScopes: []string{"all"}, + expectedCallsPubEndpoint: 0, + }, + } + for _, test := range tests { + cfg := GetConfig(ctx) + tokenCache := &tokenCacheMocks.TokenCache{} + metadataClient := &adminMocks.AuthMetadataServiceClient{} + metadataClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(&service.OAuth2MetadataResponse{}, nil) + metadataClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(&test.clientConfigResponse, nil) + cfg.AuthType = AuthTypeClientSecret + cfg.Audience = test.audienceCfg + cfg.Scopes = test.scopesCfg + cfg.UseAudienceFromAdmin = test.useAudienceFromAdmin + flyteTokenSource, err := NewTokenSourceProvider(ctx, cfg, tokenCache, metadataClient) + assert.True(t, metadataClient.AssertNumberOfCalls(t, "GetPublicClientConfig", test.expectedCallsPubEndpoint)) + assert.NoError(t, err) + assert.NotNil(t, flyteTokenSource) + clientCredSourceProvider, ok := flyteTokenSource.(ClientCredentialsTokenSourceProvider) + assert.True(t, ok) + assert.Equal(t, test.expectedScopes, clientCredSourceProvider.ccConfig.Scopes) + assert.Equal(t, url.Values{audienceKey: {test.expectedAudience}}, clientCredSourceProvider.ccConfig.EndpointParams) + } +} + +func TestCustomTokenSource_Token(t *testing.T) { + ctx := context.Background() + cfg := GetConfig(ctx) + cfg.ClientSecretLocation = "" + + minuteAgo := time.Now().Add(-time.Minute) + hourAhead := time.Now().Add(time.Hour) + twoHourAhead := time.Now().Add(2 * time.Hour) + invalidToken := oauth2.Token{AccessToken: "foo", Expiry: minuteAgo} + validToken := oauth2.Token{AccessToken: "foo", Expiry: hourAhead} + newToken := oauth2.Token{AccessToken: "foo", Expiry: twoHourAhead} + + tests := []struct { + name string + token *oauth2.Token + newToken *oauth2.Token + expectedToken *oauth2.Token + }{ + { + name: "no cached token", + token: nil, + newToken: &newToken, + expectedToken: &newToken, + }, + { + name: "cached token valid", + token: &validToken, + newToken: nil, + expectedToken: &validToken, + }, + { + name: "cached token expired", + token: &invalidToken, + newToken: &newToken, + expectedToken: &newToken, + }, + { + name: "failed new token", + token: &invalidToken, + newToken: nil, + expectedToken: nil, + }, + } + + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + tokenCache := &tokenCacheMocks.TokenCache{} + tokenCache.OnGetToken().Return(test.token, nil).Once() + provider, err := NewClientCredentialsTokenSourceProvider(ctx, cfg, []string{}, "", tokenCache, "") + assert.NoError(t, err) + source, err := provider.GetTokenSource(ctx) + assert.NoError(t, err) + customSource, ok := source.(*customTokenSource) + assert.True(t, ok) + + mockSource := &adminMocks.TokenSource{} + if test.token != &validToken { + if test.newToken != nil { + mockSource.OnToken().Return(test.newToken, nil) + } else { + mockSource.OnToken().Return(nil, fmt.Errorf("refresh token failed")) + } + } + customSource.new = mockSource + if test.newToken != nil { + tokenCache.OnSaveToken(test.newToken).Return(nil).Once() + } + token, err := source.Token() + if test.expectedToken != nil { + assert.Equal(t, test.expectedToken, token) + assert.NoError(t, err) + } else { + assert.Nil(t, token) + assert.Error(t, err) + } + tokenCache.AssertExpectations(t) + mockSource.AssertExpectations(t) + }) + } +} diff --git a/flyteidl/clients/go/admin/token_source_test.go b/flyteidl/clients/go/admin/token_source_test.go new file mode 100644 index 0000000000..0e247bfe81 --- /dev/null +++ b/flyteidl/clients/go/admin/token_source_test.go @@ -0,0 +1,27 @@ +package admin + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "golang.org/x/oauth2" +) + +type DummyTestTokenSource struct { + oauth2.TokenSource +} + +func (d DummyTestTokenSource) Token() (*oauth2.Token, error) { + return &oauth2.Token{ + AccessToken: "abc", + }, nil +} + +func TestNewTokenSource(t *testing.T) { + tokenSource := DummyTestTokenSource{} + flyteTokenSource := NewCustomHeaderTokenSource(tokenSource, true, "test") + metadata, err := flyteTokenSource.GetRequestMetadata(context.Background()) + assert.NoError(t, err) + assert.Equal(t, "Bearer abc", metadata["test"]) +} diff --git a/flyteidl/clients/go/admin/tokenorchestrator/base_token_orchestrator.go b/flyteidl/clients/go/admin/tokenorchestrator/base_token_orchestrator.go new file mode 100644 index 0000000000..1136435da5 --- /dev/null +++ b/flyteidl/clients/go/admin/tokenorchestrator/base_token_orchestrator.go @@ -0,0 +1,94 @@ +package tokenorchestrator + +import ( + "context" + "fmt" + "time" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + "github.com/flyteorg/flyteidl/clients/go/admin/oauth" + "github.com/flyteorg/flytestdlib/config" + "github.com/flyteorg/flytestdlib/logger" +) + +// BaseTokenOrchestrator implements the main logic to initiate device authorization flow +type BaseTokenOrchestrator struct { + ClientConfig *oauth.Config + TokenCache cache.TokenCache +} + +// RefreshToken attempts to refresh the access token if a refresh token is provided. +func (t BaseTokenOrchestrator) RefreshToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error) { + ts := t.ClientConfig.TokenSource(ctx, token) + var refreshedToken *oauth2.Token + var err error + refreshedToken, err = ts.Token() + if err != nil { + logger.Warnf(ctx, "failed to refresh the token due to %v and will be doing re-auth", err) + return nil, err + } + + if refreshedToken != nil { + logger.Debugf(ctx, "got a response from the refresh grant for old expiry %v with new expiry %v", + token.Expiry, refreshedToken.Expiry) + if refreshedToken.AccessToken != token.AccessToken { + if err = t.TokenCache.SaveToken(refreshedToken); err != nil { + logger.Errorf(ctx, "unable to save the new token due to %v", err) + return nil, err + } + } + } + + return refreshedToken, nil +} + +// FetchTokenFromCacheOrRefreshIt fetches the token from cache and refreshes it if it'll expire within the +// Config.TokenRefreshGracePeriod period. +func (t BaseTokenOrchestrator) FetchTokenFromCacheOrRefreshIt(ctx context.Context, tokenRefreshGracePeriod config.Duration) (token *oauth2.Token, err error) { + token, err = t.TokenCache.GetToken() + if err != nil { + return nil, err + } + + if !token.Valid() { + return nil, fmt.Errorf("token from cache is invalid") + } + + // If token doesn't need to be refreshed, return it. + if time.Now().Before(token.Expiry.Add(-tokenRefreshGracePeriod.Duration)) { + logger.Infof(ctx, "found the token in the cache") + return token, nil + } + token.Expiry = token.Expiry.Add(-tokenRefreshGracePeriod.Duration) + + token, err = t.RefreshToken(ctx, token) + if err != nil { + return nil, fmt.Errorf("failed to refresh token using cached token. Error: %w", err) + } + + if !token.Valid() { + return nil, fmt.Errorf("refreshed token is invalid") + } + + err = t.TokenCache.SaveToken(token) + if err != nil { + return nil, fmt.Errorf("failed to save token in the token cache. Error: %w", err) + } + + return token, nil +} + +func NewBaseTokenOrchestrator(ctx context.Context, tokenCache cache.TokenCache, authClient service.AuthMetadataServiceClient) (BaseTokenOrchestrator, error) { + clientConfig, err := oauth.BuildConfigFromMetadataService(ctx, authClient) + if err != nil { + return BaseTokenOrchestrator{}, err + } + return BaseTokenOrchestrator{ + ClientConfig: clientConfig, + TokenCache: tokenCache, + }, nil +} diff --git a/flyteidl/clients/go/admin/tokenorchestrator/base_token_orchestrator_test.go b/flyteidl/clients/go/admin/tokenorchestrator/base_token_orchestrator_test.go new file mode 100644 index 0000000000..136719a933 --- /dev/null +++ b/flyteidl/clients/go/admin/tokenorchestrator/base_token_orchestrator_test.go @@ -0,0 +1,137 @@ +package tokenorchestrator + +import ( + "context" + "encoding/json" + "os" + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + "golang.org/x/oauth2" + + "github.com/flyteorg/flyteidl/clients/go/admin/cache" + cacheMocks "github.com/flyteorg/flyteidl/clients/go/admin/cache/mocks" + "github.com/flyteorg/flyteidl/clients/go/admin/mocks" + "github.com/flyteorg/flyteidl/clients/go/admin/oauth" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service" + "github.com/flyteorg/flytestdlib/config" +) + +func TestRefreshTheToken(t *testing.T) { + ctx := context.Background() + clientConf := &oauth.Config{ + Config: &oauth2.Config{ + ClientID: "dummyClient", + }, + } + tokenCacheProvider := &cache.TokenCacheInMemoryProvider{} + orchestrator := BaseTokenOrchestrator{ + ClientConfig: clientConf, + TokenCache: tokenCacheProvider, + } + + plan, _ := os.ReadFile("testdata/token.json") + var tokenData oauth2.Token + err := json.Unmarshal(plan, &tokenData) + assert.Nil(t, err) + t.Run("bad url in Config", func(t *testing.T) { + refreshedToken, err := orchestrator.RefreshToken(ctx, &tokenData) + assert.Nil(t, refreshedToken) + assert.NotNil(t, err) + }) +} + +func TestFetchFromCache(t *testing.T) { + ctx := context.Background() + metatdata := &service.OAuth2MetadataResponse{ + TokenEndpoint: "/token", + ScopesSupported: []string{"code", "all"}, + } + clientMetatadata := &service.PublicClientAuthConfigResponse{ + AuthorizationMetadataKey: "flyte_authorization", + RedirectUri: "http://localhost:8089/redirect", + } + mockAuthClient := new(mocks.AuthMetadataServiceClient) + mockAuthClient.OnGetOAuth2MetadataMatch(mock.Anything, mock.Anything).Return(metatdata, nil) + mockAuthClient.OnGetPublicClientConfigMatch(mock.Anything, mock.Anything).Return(clientMetatadata, nil) + + t.Run("no token in cache", func(t *testing.T) { + tokenCacheProvider := &cache.TokenCacheInMemoryProvider{} + + orchestrator, err := NewBaseTokenOrchestrator(ctx, tokenCacheProvider, mockAuthClient) + + assert.NoError(t, err) + refreshedToken, err := orchestrator.FetchTokenFromCacheOrRefreshIt(ctx, config.Duration{Duration: 5 * time.Minute}) + assert.Nil(t, refreshedToken) + assert.NotNil(t, err) + }) + + t.Run("token in cache", func(t *testing.T) { + tokenCacheProvider := &cache.TokenCacheInMemoryProvider{} + orchestrator, err := NewBaseTokenOrchestrator(ctx, tokenCacheProvider, mockAuthClient) + assert.NoError(t, err) + fileData, _ := os.ReadFile("testdata/token.json") + var tokenData oauth2.Token + err = json.Unmarshal(fileData, &tokenData) + assert.Nil(t, err) + tokenData.Expiry = time.Now().Add(20 * time.Minute) + err = tokenCacheProvider.SaveToken(&tokenData) + assert.Nil(t, err) + cachedToken, err := orchestrator.FetchTokenFromCacheOrRefreshIt(ctx, config.Duration{Duration: 5 * time.Minute}) + assert.Nil(t, err) + assert.NotNil(t, cachedToken) + assert.Equal(t, tokenData.AccessToken, cachedToken.AccessToken) + }) + + t.Run("expired token in cache", func(t *testing.T) { + tokenCacheProvider := &cache.TokenCacheInMemoryProvider{} + orchestrator, err := NewBaseTokenOrchestrator(ctx, tokenCacheProvider, mockAuthClient) + assert.NoError(t, err) + fileData, _ := os.ReadFile("testdata/token.json") + var tokenData oauth2.Token + err = json.Unmarshal(fileData, &tokenData) + assert.Nil(t, err) + tokenData.Expiry = time.Now().Add(-20 * time.Minute) + err = tokenCacheProvider.SaveToken(&tokenData) + assert.Nil(t, err) + _, err = orchestrator.FetchTokenFromCacheOrRefreshIt(ctx, config.Duration{Duration: 5 * time.Minute}) + assert.NotNil(t, err) + }) + + t.Run("token fetch before grace period", func(t *testing.T) { + mockTokenCacheProvider := new(cacheMocks.TokenCache) + orchestrator, err := NewBaseTokenOrchestrator(ctx, mockTokenCacheProvider, mockAuthClient) + assert.NoError(t, err) + fileData, _ := os.ReadFile("testdata/token.json") + var tokenData oauth2.Token + err = json.Unmarshal(fileData, &tokenData) + assert.Nil(t, err) + tokenData.Expiry = time.Now().Add(20 * time.Minute) + mockTokenCacheProvider.OnGetTokenMatch(mock.Anything).Return(&tokenData, nil) + mockTokenCacheProvider.OnSaveTokenMatch(mock.Anything).Return(nil) + assert.Nil(t, err) + refreshedToken, err := orchestrator.FetchTokenFromCacheOrRefreshIt(ctx, config.Duration{Duration: 5 * time.Minute}) + assert.Nil(t, err) + assert.NotNil(t, refreshedToken) + mockTokenCacheProvider.AssertNotCalled(t, "SaveToken") + }) + + t.Run("token fetch after grace period with refresh", func(t *testing.T) { + mockTokenCacheProvider := new(cacheMocks.TokenCache) + orchestrator, err := NewBaseTokenOrchestrator(ctx, mockTokenCacheProvider, mockAuthClient) + assert.NoError(t, err) + fileData, _ := os.ReadFile("testdata/token.json") + var tokenData oauth2.Token + err = json.Unmarshal(fileData, &tokenData) + assert.Nil(t, err) + tokenData.Expiry = time.Now().Add(20 * time.Minute) + mockTokenCacheProvider.OnGetTokenMatch(mock.Anything).Return(&tokenData, nil) + assert.Nil(t, err) + refreshedToken, err := orchestrator.FetchTokenFromCacheOrRefreshIt(ctx, config.Duration{Duration: 5 * time.Minute}) + assert.Nil(t, err) + assert.NotNil(t, refreshedToken) + mockTokenCacheProvider.AssertNotCalled(t, "SaveToken") + }) +} diff --git a/flyteidl/clients/go/admin/tokenorchestrator/testdata/token.json b/flyteidl/clients/go/admin/tokenorchestrator/testdata/token.json new file mode 100644 index 0000000000..721cecc5f6 --- /dev/null +++ b/flyteidl/clients/go/admin/tokenorchestrator/testdata/token.json @@ -0,0 +1,6 @@ +{ + "access_token":"eyJhbGciOiJSUzI1NiIsImtleV9pZCI6IjlLZlNILXphZjRjY1dmTlNPbm91YmZUbnItVW5kMHVuY3ctWF9KNUJVdWciLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiaHR0cHM6Ly9kZW1vLm51Y2x5ZGUuaW8iXSwiY2xpZW50X2lkIjoiZmx5dGVjdGwiLCJleHAiOjE2MTk1Mjk5MjcsImZvcm0iOnsiY29kZV9jaGFsbGVuZ2UiOiJ2bWNxazArZnJRS3Vvb2FMUHZwUDJCeUtod2VKR2VaeG1mdGtkMml0T042Tk13SVBQNWwySmNpWDd3NTdlaS9iVW1LTWhPSjJVUERnK0F5RXRaTG94SFJiMDl1cWRKSSIsImNvZGVfY2hhbGxlbmdlX21ldGhvZCI6IlN2WEgyeDh2UDUrSkJxQ0NjT2dCL0hNWjdLSmE3bkdLMDBaUVA0ekd4WGcifSwiaWF0IjoxNjE5NTAyNTM1LCJpc3MiOiJodHRwczovL2RlbW8ubnVjbHlkZS5pbyIsImp0aSI6IjQzMTM1ZWY2LTA5NjEtNGFlZC1hOTYxLWQyZGI1YWJmM2U1YyIsInNjcCI6WyJvZmZsaW5lIiwiYWxsIiwiYWNjZXNzX3Rva2VuIl0sInN1YiI6IjExNDUyNzgxNTMwNTEyODk3NDQ3MCIsInVzZXJfaW5mbyI6eyJmYW1pbHlfbmFtZSI6Ik1haGluZHJha2FyIiwiZ2l2ZW5fbmFtZSI6IlByYWZ1bGxhIiwibmFtZSI6IlByYWZ1bGxhIE1haGluZHJha2FyIiwicGljdHVyZSI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hLS9BT2gxNEdqdVQxazgtOGE1dkJHT0lGMWFEZ2hZbUZ4OGhEOUtOaVI1am5adT1zOTYtYyIsInN1YmplY3QiOiIxMTQ1Mjc4MTUzMDUxMjg5NzQ0NzAifX0.ojbUOy2tF6HL8fIp1FJAQchU2MimlVMr3EGVPxMvYyahpW5YsWh6mz7qn4vpEnBuYZDf6cTaN50pJ8krlDX9RqtxF3iEfV2ZYHwyKMThI9sWh_kEBgGwUpyHyk98ZeqQX1uFOH3iwwhR-lPPUlpgdFGzKsxfxeFLOtu1y0V7BgA08KFqgYzl0lJqDYWBkJh_wUAv5g_r0NzSQCsMqb-B3Lno5ScMnlA3SZ_Hg-XdW8hnFIlrwJj4Cv47j3fcZxpqLbTNDXWWogmRbJb3YPlgn_LEnRAyZnFERHKMCE9vaBSTu-1Qstp-gRTORjyV7l3y680dEygQS-99KV3OSBlz6g", + "token_type":"bearer", + "refresh_token":"eyJhbGciOiJSUzI1NiIsImtleV9pZCI6IjlLZlNILXphZjRjY1dmTlNPbm91YmZUbnItVW5kMHVuY3ctWF9KNUJVdWciLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiaHR0cHM6Ly9kZW1vLm51Y2x5ZGUuaW8iXSwiY2xpZW50X2lkIjoiZmx5dGVjdGwiLCJleHAiOjE2MTk1MzM1MjcsImZvcm0iOnsiY29kZV9jaGFsbGVuZ2UiOiJ2bWNxazArZnJRS3Vvb2FMUHZwUDJCeUtod2VKR2VaeG1mdGtkMml0T042Tk13SVBQNWwySmNpWDd3NTdlaS9iVW1LTWhPSjJVUERnK0F5RXRaTG94SFJiMDl1cWRKSSIsImNvZGVfY2hhbGxlbmdlX21ldGhvZCI6IlN2WEgyeDh2UDUrSkJxQ0NjT2dCL0hNWjdLSmE3bkdLMDBaUVA0ekd4WGcifSwiaWF0IjoxNjE5NTAyNTM1LCJpc3MiOiJodHRwczovL2RlbW8ubnVjbHlkZS5pbyIsImp0aSI6IjQzMTM1ZWY2LTA5NjEtNGFlZC1hOTYxLWQyZGI1YWJmM2U1YyIsInNjcCI6WyJvZmZsaW5lIiwiZi5hbGwiLCJhY2Nlc3NfdG9rZW4iXSwic3ViIjoiMTE0NTI3ODE1MzA1MTI4OTc0NDcwIiwidXNlcl9pbmZvIjp7ImZhbWlseV9uYW1lIjoiTWFoaW5kcmFrYXIiLCJnaXZlbl9uYW1lIjoiUHJhZnVsbGEiLCJuYW1lIjoiUHJhZnVsbGEgTWFoaW5kcmFrYXIiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EtL0FPaDE0R2p1VDFrOC04YTV2QkdPSUYxYURnaFltRng4aEQ5S05pUjVqblp1PXM5Ni1jIiwic3ViamVjdCI6IjExNDUyNzgxNTMwNTEyODk3NDQ3MCJ9fQ.YKom5-gE4e84rJJIfxcpbMzgjZT33UZ27UTa1y8pK2BAWaPjIZtwudwDHQ5Rd3m0mJJWhBp0j0e8h9DvzBUdpsnGMXSCYKP-ag9y9k5OW59FMm9RqIakWHtj6NPnxGO1jAsaNCYePj8knR7pBLCLCse2taDHUJ8RU1F0DeHNr2y-JupgG5y1vjBcb-9eD8OwOSTp686_hm7XoJlxiKx8dj2O7HPH7M2pAHA_0bVrKKj7Y_s3fRhkm_Aq6LRdA-IiTl9xJQxgVUreejls9-RR9mSTKj6A81-Isz3qAUttVVaA4OT5OdW879_yT7OSLw_QwpXzNZ7qOR7OIpmL_xZXig", + "expiry":"2021-04-27T19:55:26.658635+05:30" +} \ No newline at end of file diff --git a/flyteidl/clients/go/coreutils/extract_literal.go b/flyteidl/clients/go/coreutils/extract_literal.go new file mode 100644 index 0000000000..e3bf6b25cf --- /dev/null +++ b/flyteidl/clients/go/coreutils/extract_literal.go @@ -0,0 +1,101 @@ +// extract_literal.go +// Utility methods to extract a native golang value from a given Literal. +// Usage: +// 1] string literal extraction +// lit, _ := MakeLiteral("test_string") +// val, _ := ExtractFromLiteral(lit) +// 2] integer literal extraction. integer would be extracted in type int64. +// lit, _ := MakeLiteral([]interface{}{1, 2, 3}) +// val, _ := ExtractFromLiteral(lit) +// 3] float literal extraction. float would be extracted in type float64. +// lit, _ := MakeLiteral([]interface{}{1.0, 2.0, 3.0}) +// val, _ := ExtractFromLiteral(lit) +// 4] map of boolean literal extraction. +// mapInstance := map[string]interface{}{ +// "key1": []interface{}{1, 2, 3}, +// "key2": []interface{}{5}, +// } +// lit, _ := MakeLiteral(mapInstance) +// val, _ := ExtractFromLiteral(lit) +// For further examples check the test TestFetchLiteral in extract_literal_test.go + +package coreutils + +import ( + "fmt" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +func ExtractFromLiteral(literal *core.Literal) (interface{}, error) { + switch literalValue := literal.Value.(type) { + case *core.Literal_Scalar: + switch scalarValue := literalValue.Scalar.Value.(type) { + case *core.Scalar_Primitive: + switch scalarPrimitive := scalarValue.Primitive.Value.(type) { + case *core.Primitive_Integer: + scalarPrimitiveInt := scalarPrimitive.Integer + return scalarPrimitiveInt, nil + case *core.Primitive_FloatValue: + scalarPrimitiveFloat := scalarPrimitive.FloatValue + return scalarPrimitiveFloat, nil + case *core.Primitive_StringValue: + scalarPrimitiveString := scalarPrimitive.StringValue + return scalarPrimitiveString, nil + case *core.Primitive_Boolean: + scalarPrimitiveBoolean := scalarPrimitive.Boolean + return scalarPrimitiveBoolean, nil + case *core.Primitive_Datetime: + scalarPrimitiveDateTime := scalarPrimitive.Datetime.AsTime() + return scalarPrimitiveDateTime, nil + case *core.Primitive_Duration: + scalarPrimitiveDuration := scalarPrimitive.Duration.AsDuration() + return scalarPrimitiveDuration, nil + default: + return nil, fmt.Errorf("unsupported literal scalar primitive type %T", scalarValue) + } + case *core.Scalar_Blob: + return scalarValue.Blob.Uri, nil + case *core.Scalar_Schema: + return scalarValue.Schema.Uri, nil + case *core.Scalar_Generic: + return scalarValue.Generic, nil + case *core.Scalar_StructuredDataset: + return scalarValue.StructuredDataset.Uri, nil + case *core.Scalar_Union: + // extract the value of the union but not the actual union object + extractedVal, err := ExtractFromLiteral(scalarValue.Union.Value) + if err != nil { + return nil, err + } + return extractedVal, nil + case *core.Scalar_NoneType: + return nil, nil + default: + return nil, fmt.Errorf("unsupported literal scalar type %T", scalarValue) + } + case *core.Literal_Collection: + collectionValue := literalValue.Collection.Literals + collection := make([]interface{}, len(collectionValue)) + for index, val := range collectionValue { + if collectionElem, err := ExtractFromLiteral(val); err == nil { + collection[index] = collectionElem + } else { + return nil, err + } + } + return collection, nil + case *core.Literal_Map: + mapLiteralValue := literalValue.Map.Literals + mapResult := make(map[string]interface{}, len(mapLiteralValue)) + for key, val := range mapLiteralValue { + if val, err := ExtractFromLiteral(val); err == nil { + mapResult[key] = val + } else { + return nil, err + } + } + return mapResult, nil + } + return nil, fmt.Errorf("unsupported literal type %T", literal) +} diff --git a/flyteidl/clients/go/coreutils/extract_literal_test.go b/flyteidl/clients/go/coreutils/extract_literal_test.go new file mode 100644 index 0000000000..39855e8e5f --- /dev/null +++ b/flyteidl/clients/go/coreutils/extract_literal_test.go @@ -0,0 +1,240 @@ +// extract_literal_test.go +// Test class for the utility methods which extract a native golang value from a flyte Literal. + +package coreutils + +import ( + "testing" + "time" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + + structpb "github.com/golang/protobuf/ptypes/struct" + "github.com/stretchr/testify/assert" +) + +func TestFetchLiteral(t *testing.T) { + t.Run("Primitive", func(t *testing.T) { + lit, err := MakeLiteral("test_string") + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + assert.Equal(t, "test_string", val) + }) + + t.Run("Timestamp", func(t *testing.T) { + now := time.Now().UTC() + lit, err := MakeLiteral(now) + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + assert.Equal(t, now, val) + }) + + t.Run("Duration", func(t *testing.T) { + duration := time.Second * 10 + lit, err := MakeLiteral(duration) + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + assert.Equal(t, duration, val) + }) + + t.Run("Array", func(t *testing.T) { + lit, err := MakeLiteral([]interface{}{1, 2, 3}) + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + arr := []interface{}{int64(1), int64(2), int64(3)} + assert.Equal(t, arr, val) + }) + + t.Run("Map", func(t *testing.T) { + mapInstance := map[string]interface{}{ + "key1": []interface{}{1, 2, 3}, + "key2": []interface{}{5}, + } + lit, err := MakeLiteral(mapInstance) + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + expectedMapInstance := map[string]interface{}{ + "key1": []interface{}{int64(1), int64(2), int64(3)}, + "key2": []interface{}{int64(5)}, + } + assert.Equal(t, expectedMapInstance, val) + }) + + t.Run("Map_Booleans", func(t *testing.T) { + mapInstance := map[string]interface{}{ + "key1": []interface{}{true, false, true}, + "key2": []interface{}{false}, + } + lit, err := MakeLiteral(mapInstance) + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + assert.Equal(t, mapInstance, val) + }) + + t.Run("Map_Floats", func(t *testing.T) { + mapInstance := map[string]interface{}{ + "key1": []interface{}{1.0, 2.0, 3.0}, + "key2": []interface{}{1.0}, + } + lit, err := MakeLiteral(mapInstance) + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + expectedMapInstance := map[string]interface{}{ + "key1": []interface{}{float64(1.0), float64(2.0), float64(3.0)}, + "key2": []interface{}{float64(1.0)}, + } + assert.Equal(t, expectedMapInstance, val) + }) + + t.Run("NestedMap", func(t *testing.T) { + mapInstance := map[string]interface{}{ + "key1": map[string]interface{}{"key11": 1.0, "key12": 2.0, "key13": 3.0}, + "key2": map[string]interface{}{"key21": 1.0}, + } + lit, err := MakeLiteral(mapInstance) + assert.NoError(t, err) + val, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + expectedMapInstance := map[string]interface{}{ + "key1": map[string]interface{}{"key11": float64(1.0), "key12": float64(2.0), "key13": float64(3.0)}, + "key2": map[string]interface{}{"key21": float64(1.0)}, + } + assert.Equal(t, expectedMapInstance, val) + }) + + t.Run("Binary", func(t *testing.T) { + s := MakeBinaryLiteral([]byte{'h'}) + assert.Equal(t, []byte{'h'}, s.GetScalar().GetBinary().GetValue()) + _, err := ExtractFromLiteral(s) + assert.NotNil(t, err) + }) + + t.Run("NoneType", func(t *testing.T) { + p, err := MakeLiteral(nil) + assert.NoError(t, err) + assert.NotNil(t, p.GetScalar()) + _, err = ExtractFromLiteral(p) + assert.Nil(t, err) + }) + + t.Run("Generic", func(t *testing.T) { + literalVal := map[string]interface{}{ + "x": 1, + "y": "ystringvalue", + } + var literalType = &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRUCT}} + lit, err := MakeLiteralForType(literalType, literalVal) + assert.NoError(t, err) + extractedLiteralVal, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + fieldsMap := map[string]*structpb.Value{ + "x": { + Kind: &structpb.Value_NumberValue{NumberValue: 1}, + }, + "y": { + Kind: &structpb.Value_StringValue{StringValue: "ystringvalue"}, + }, + } + expectedStructVal := &structpb.Struct{ + Fields: fieldsMap, + } + extractedStructValue := extractedLiteralVal.(*structpb.Struct) + assert.Equal(t, len(expectedStructVal.Fields), len(extractedStructValue.Fields)) + for key, val := range expectedStructVal.Fields { + assert.Equal(t, val.Kind, extractedStructValue.Fields[key].Kind) + } + }) + + t.Run("Generic Passed As String", func(t *testing.T) { + literalVal := "{\"x\": 1,\"y\": \"ystringvalue\"}" + var literalType = &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRUCT}} + lit, err := MakeLiteralForType(literalType, literalVal) + assert.NoError(t, err) + extractedLiteralVal, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + fieldsMap := map[string]*structpb.Value{ + "x": { + Kind: &structpb.Value_NumberValue{NumberValue: 1}, + }, + "y": { + Kind: &structpb.Value_StringValue{StringValue: "ystringvalue"}, + }, + } + expectedStructVal := &structpb.Struct{ + Fields: fieldsMap, + } + extractedStructValue := extractedLiteralVal.(*structpb.Struct) + assert.Equal(t, len(expectedStructVal.Fields), len(extractedStructValue.Fields)) + for key, val := range expectedStructVal.Fields { + assert.Equal(t, val.Kind, extractedStructValue.Fields[key].Kind) + } + }) + + t.Run("Structured dataset", func(t *testing.T) { + literalVal := "s3://blah/blah/blah" + var dataSetColumns []*core.StructuredDatasetType_DatasetColumn + dataSetColumns = append(dataSetColumns, &core.StructuredDatasetType_DatasetColumn{ + Name: "Price", + LiteralType: &core.LiteralType{ + Type: &core.LiteralType_Simple{ + Simple: core.SimpleType_FLOAT, + }, + }, + }) + var literalType = &core.LiteralType{Type: &core.LiteralType_StructuredDatasetType{StructuredDatasetType: &core.StructuredDatasetType{ + Columns: dataSetColumns, + Format: "testFormat", + }}} + + lit, err := MakeLiteralForType(literalType, literalVal) + assert.NoError(t, err) + extractedLiteralVal, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + assert.Equal(t, literalVal, extractedLiteralVal) + }) + + t.Run("Union", func(t *testing.T) { + literalVal := int64(1) + var literalType = &core.LiteralType{ + Type: &core.LiteralType_UnionType{ + UnionType: &core.UnionType{ + Variants: []*core.LiteralType{ + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}}, + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_FLOAT}}, + }, + }, + }, + } + lit, err := MakeLiteralForType(literalType, literalVal) + assert.NoError(t, err) + extractedLiteralVal, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + assert.Equal(t, literalVal, extractedLiteralVal) + }) + + t.Run("Union with None", func(t *testing.T) { + var literalType = &core.LiteralType{ + Type: &core.LiteralType_UnionType{ + UnionType: &core.UnionType{ + Variants: []*core.LiteralType{ + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}}, + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_NONE}}, + }, + }, + }, + } + lit, err := MakeLiteralForType(literalType, nil) + + assert.NoError(t, err) + extractedLiteralVal, err := ExtractFromLiteral(lit) + assert.NoError(t, err) + assert.Nil(t, extractedLiteralVal) + }) +} diff --git a/flyteidl/clients/go/coreutils/literals.go b/flyteidl/clients/go/coreutils/literals.go new file mode 100644 index 0000000000..fb21056547 --- /dev/null +++ b/flyteidl/clients/go/coreutils/literals.go @@ -0,0 +1,644 @@ +// Contains convenience methods for constructing core types. +package coreutils + +import ( + "encoding/json" + "fmt" + "math" + "reflect" + "strconv" + "strings" + "time" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + "github.com/flyteorg/flytestdlib/storage" + + "github.com/golang/protobuf/jsonpb" + "github.com/golang/protobuf/ptypes" + structpb "github.com/golang/protobuf/ptypes/struct" + "github.com/pkg/errors" +) + +func MakePrimitive(v interface{}) (*core.Primitive, error) { + switch p := v.(type) { + case int: + return &core.Primitive{ + Value: &core.Primitive_Integer{ + Integer: int64(p), + }, + }, nil + case int64: + return &core.Primitive{ + Value: &core.Primitive_Integer{ + Integer: p, + }, + }, nil + case float64: + return &core.Primitive{ + Value: &core.Primitive_FloatValue{ + FloatValue: p, + }, + }, nil + case time.Time: + t, err := ptypes.TimestampProto(p) + if err != nil { + return nil, err + } + return &core.Primitive{ + Value: &core.Primitive_Datetime{ + Datetime: t, + }, + }, nil + case time.Duration: + d := ptypes.DurationProto(p) + return &core.Primitive{ + Value: &core.Primitive_Duration{ + Duration: d, + }, + }, nil + case string: + return &core.Primitive{ + Value: &core.Primitive_StringValue{ + StringValue: p, + }, + }, nil + case bool: + return &core.Primitive{ + Value: &core.Primitive_Boolean{ + Boolean: p, + }, + }, nil + } + return nil, fmt.Errorf("failed to convert to a known primitive type. Input Type [%v] not supported", reflect.TypeOf(v).String()) +} + +func MustMakePrimitive(v interface{}) *core.Primitive { + f, err := MakePrimitive(v) + if err != nil { + panic(err) + } + return f +} + +func MakePrimitiveLiteral(v interface{}) (*core.Literal, error) { + p, err := MakePrimitive(v) + if err != nil { + return nil, err + } + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{ + Primitive: p, + }, + }, + }, + }, nil +} + +func MustMakePrimitiveLiteral(v interface{}) *core.Literal { + p, err := MakePrimitiveLiteral(v) + if err != nil { + panic(err) + } + return p +} + +func MakeLiteralForMap(v map[string]interface{}) (*core.Literal, error) { + m, err := MakeLiteralMap(v) + if err != nil { + return nil, err + } + + return &core.Literal{ + Value: &core.Literal_Map{ + Map: m, + }, + }, nil +} + +func MakeLiteralForCollection(v []interface{}) (*core.Literal, error) { + literals := make([]*core.Literal, 0, len(v)) + for _, val := range v { + l, err := MakeLiteral(val) + if err != nil { + return nil, err + } + + literals = append(literals, l) + } + + return &core.Literal{ + Value: &core.Literal_Collection{ + Collection: &core.LiteralCollection{ + Literals: literals, + }, + }, + }, nil +} + +func MakeBinaryLiteral(v []byte) *core.Literal { + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Binary{ + Binary: &core.Binary{ + Value: v, + }, + }, + }, + }, + } +} + +func MakeGenericLiteral(v *structpb.Struct) *core.Literal { + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Generic{ + Generic: v, + }, + }, + }} +} + +func MakeLiteral(v interface{}) (*core.Literal, error) { + if v == nil { + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_NoneType{ + NoneType: &core.Void{}, + }, + }, + }, + }, nil + } + switch o := v.(type) { + case *core.Literal: + return o, nil + case []interface{}: + return MakeLiteralForCollection(o) + case map[string]interface{}: + return MakeLiteralForMap(o) + case []byte: + return MakeBinaryLiteral(v.([]byte)), nil + case *structpb.Struct: + return MakeGenericLiteral(v.(*structpb.Struct)), nil + case *core.Error: + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Error{ + Error: v.(*core.Error), + }, + }, + }, + }, nil + default: + return MakePrimitiveLiteral(o) + } +} + +func MustMakeDefaultLiteralForType(typ *core.LiteralType) *core.Literal { + if res, err := MakeDefaultLiteralForType(typ); err != nil { + panic(err) + } else { + return res + } +} + +func MakeDefaultLiteralForType(typ *core.LiteralType) (*core.Literal, error) { + switch t := typ.GetType().(type) { + case *core.LiteralType_Simple: + switch t.Simple { + case core.SimpleType_NONE: + return MakeLiteral(nil) + case core.SimpleType_INTEGER: + return MakeLiteral(int(0)) + case core.SimpleType_FLOAT: + return MakeLiteral(float64(0)) + case core.SimpleType_STRING: + return MakeLiteral("") + case core.SimpleType_BOOLEAN: + return MakeLiteral(false) + case core.SimpleType_DATETIME: + return MakeLiteral(time.Now()) + case core.SimpleType_DURATION: + return MakeLiteral(time.Second) + case core.SimpleType_BINARY: + return MakeLiteral([]byte{}) + case core.SimpleType_ERROR: + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Error{ + Error: &core.Error{ + Message: "Default Error message", + }, + }, + }, + }, + }, nil + case core.SimpleType_STRUCT: + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Generic{ + Generic: &structpb.Struct{}, + }, + }, + }, + }, nil + } + return nil, errors.Errorf("Not yet implemented. Default creation is not yet implemented for [%s] ", t.Simple.String()) + case *core.LiteralType_Blob: + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Blob{ + Blob: &core.Blob{ + Metadata: &core.BlobMetadata{ + Type: t.Blob, + }, + Uri: "/tmp/somepath", + }, + }, + }, + }, + }, nil + case *core.LiteralType_CollectionType: + single, err := MakeDefaultLiteralForType(t.CollectionType) + if err != nil { + return nil, err + } + + return &core.Literal{ + Value: &core.Literal_Collection{ + Collection: &core.LiteralCollection{ + Literals: []*core.Literal{single}, + }, + }, + }, nil + case *core.LiteralType_MapValueType: + single, err := MakeDefaultLiteralForType(t.MapValueType) + if err != nil { + return nil, err + } + + return &core.Literal{ + Value: &core.Literal_Map{ + Map: &core.LiteralMap{ + Literals: map[string]*core.Literal{ + "itemKey": single, + }, + }, + }, + }, nil + case *core.LiteralType_EnumType: + return MakeLiteralForType(typ, nil) + case *core.LiteralType_Schema: + return MakeLiteralForType(typ, nil) + case *core.LiteralType_UnionType: + if len(t.UnionType.Variants) == 0 { + return nil, errors.Errorf("Union type must have at least one variant") + } + // For union types, we just return the default for the first variant + val, err := MakeDefaultLiteralForType(t.UnionType.Variants[0]) + if err != nil { + return nil, errors.Errorf("Failed to create default literal for first union type variant [%v]", t.UnionType.Variants[0]) + } + res := &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Union{ + Union: &core.Union{ + Type: t.UnionType.Variants[0], + Value: val, + }, + }, + }, + }, + } + return res, nil + } + + return nil, fmt.Errorf("failed to convert to a known Literal. Input Type [%v] not supported", typ.String()) +} + +func MakePrimitiveForType(t core.SimpleType, s string) (*core.Primitive, error) { + p := &core.Primitive{} + switch t { + case core.SimpleType_INTEGER: + v, err := strconv.ParseInt(s, 10, 64) + if err != nil { + return nil, errors.Wrap(err, "failed to parse integer value") + } + p.Value = &core.Primitive_Integer{Integer: v} + case core.SimpleType_FLOAT: + v, err := strconv.ParseFloat(s, 64) + if err != nil { + return nil, errors.Wrap(err, "failed to parse Float value") + } + p.Value = &core.Primitive_FloatValue{FloatValue: v} + case core.SimpleType_BOOLEAN: + v, err := strconv.ParseBool(s) + if err != nil { + return nil, errors.Wrap(err, "failed to parse Bool value") + } + p.Value = &core.Primitive_Boolean{Boolean: v} + case core.SimpleType_STRING: + p.Value = &core.Primitive_StringValue{StringValue: s} + case core.SimpleType_DURATION: + v, err := time.ParseDuration(s) + if err != nil { + return nil, errors.Wrap(err, "failed to parse Duration, valid formats: e.g. 300ms, -1.5h, 2h45m") + } + p.Value = &core.Primitive_Duration{Duration: ptypes.DurationProto(v)} + case core.SimpleType_DATETIME: + v, err := time.Parse(time.RFC3339, s) + if err != nil { + return nil, errors.Wrap(err, "failed to parse Datetime in RFC3339 format") + } + ts, err := ptypes.TimestampProto(v) + if err != nil { + return nil, errors.Wrap(err, "failed to convert datetime to proto") + } + p.Value = &core.Primitive_Datetime{Datetime: ts} + default: + return nil, fmt.Errorf("unsupported type %s", t.String()) + } + return p, nil +} + +func MakeLiteralForSimpleType(t core.SimpleType, s string) (*core.Literal, error) { + s = strings.Trim(s, " \n\t") + scalar := &core.Scalar{} + switch t { + case core.SimpleType_STRUCT: + st := &structpb.Struct{} + err := jsonpb.UnmarshalString(s, st) + if err != nil { + return nil, errors.Wrapf(err, "failed to load generic type as json.") + } + scalar.Value = &core.Scalar_Generic{ + Generic: st, + } + case core.SimpleType_BINARY: + scalar.Value = &core.Scalar_Binary{ + Binary: &core.Binary{ + Value: []byte(s), + // TODO Tag not supported at the moment + }, + } + case core.SimpleType_ERROR: + scalar.Value = &core.Scalar_Error{ + Error: &core.Error{ + Message: s, + }, + } + case core.SimpleType_NONE: + scalar.Value = &core.Scalar_NoneType{ + NoneType: &core.Void{}, + } + default: + p, err := MakePrimitiveForType(t, s) + if err != nil { + return nil, err + } + scalar.Value = &core.Scalar_Primitive{Primitive: p} + } + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: scalar, + }, + }, nil +} + +func MustMakeLiteral(v interface{}) *core.Literal { + p, err := MakeLiteral(v) + if err != nil { + panic(err) + } + + return p +} + +func MakeLiteralMap(v map[string]interface{}) (*core.LiteralMap, error) { + + literals := make(map[string]*core.Literal, len(v)) + for key, val := range v { + l, err := MakeLiteral(val) + if err != nil { + return nil, err + } + + literals[key] = l + } + + return &core.LiteralMap{ + Literals: literals, + }, nil +} + +func MakeLiteralForSchema(path storage.DataReference, columns []*core.SchemaType_SchemaColumn) *core.Literal { + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Schema{ + Schema: &core.Schema{ + Uri: path.String(), + Type: &core.SchemaType{ + Columns: columns, + }, + }, + }, + }, + }, + } +} + +func MakeLiteralForStructuredDataSet(path storage.DataReference, columns []*core.StructuredDatasetType_DatasetColumn, format string) *core.Literal { + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_StructuredDataset{ + StructuredDataset: &core.StructuredDataset{ + Uri: path.String(), + Metadata: &core.StructuredDatasetMetadata{ + StructuredDatasetType: &core.StructuredDatasetType{ + Columns: columns, + Format: format, + }, + }, + }, + }, + }, + }, + } +} + +func MakeLiteralForBlob(path storage.DataReference, isDir bool, format string) *core.Literal { + dim := core.BlobType_SINGLE + if isDir { + dim = core.BlobType_MULTIPART + } + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Blob{ + Blob: &core.Blob{ + Uri: path.String(), + Metadata: &core.BlobMetadata{ + Type: &core.BlobType{ + Dimensionality: dim, + Format: format, + }, + }, + }, + }, + }, + }, + } +} + +func MakeLiteralForType(t *core.LiteralType, v interface{}) (*core.Literal, error) { + l := &core.Literal{} + switch newT := t.Type.(type) { + case *core.LiteralType_MapValueType: + newV, ok := v.(map[string]interface{}) + if !ok { + return nil, fmt.Errorf("map value types can only be of type map[string]interface{}, but found %v", reflect.TypeOf(v)) + } + + literals := make(map[string]*core.Literal, len(newV)) + for key, val := range newV { + lv, err := MakeLiteralForType(newT.MapValueType, val) + if err != nil { + return nil, err + } + literals[key] = lv + } + l.Value = &core.Literal_Map{ + Map: &core.LiteralMap{ + Literals: literals, + }, + } + + case *core.LiteralType_CollectionType: + newV, ok := v.([]interface{}) + if !ok { + return nil, fmt.Errorf("collection type expected but found %v", reflect.TypeOf(v)) + } + + literals := make([]*core.Literal, 0, len(newV)) + for _, val := range newV { + lv, err := MakeLiteralForType(newT.CollectionType, val) + if err != nil { + return nil, err + } + literals = append(literals, lv) + } + l.Value = &core.Literal_Collection{ + Collection: &core.LiteralCollection{ + Literals: literals, + }, + } + + case *core.LiteralType_Simple: + strValue := fmt.Sprintf("%v", v) + if v == nil { + strValue = "" + } + // Note this is to support large integers which by default when passed from an unmarshalled json will be + // converted to float64 and printed as exponential format by Sprintf. + // eg : 8888888 get converted to 8.888888e+06 and which causes strconv.ParseInt to fail + // Inorder to avoid this we explicitly add this check. + if f, ok := v.(float64); ok && math.Trunc(f) == f { + strValue = fmt.Sprintf("%.0f", math.Trunc(f)) + } + if newT.Simple == core.SimpleType_STRUCT { + if _, isValueStringType := v.(string); !isValueStringType { + byteValue, err := json.Marshal(v) + if err != nil { + return nil, fmt.Errorf("unable to marshal to json string for struct value %v", v) + } + strValue = string(byteValue) + } + } + lv, err := MakeLiteralForSimpleType(newT.Simple, strValue) + if err != nil { + return nil, err + } + return lv, nil + + case *core.LiteralType_Blob: + isDir := newT.Blob.Dimensionality == core.BlobType_MULTIPART + lv := MakeLiteralForBlob(storage.DataReference(fmt.Sprintf("%v", v)), isDir, newT.Blob.Format) + return lv, nil + + case *core.LiteralType_Schema: + lv := MakeLiteralForSchema(storage.DataReference(fmt.Sprintf("%v", v)), newT.Schema.Columns) + return lv, nil + case *core.LiteralType_StructuredDatasetType: + lv := MakeLiteralForStructuredDataSet(storage.DataReference(fmt.Sprintf("%v", v)), newT.StructuredDatasetType.Columns, newT.StructuredDatasetType.Format) + return lv, nil + + case *core.LiteralType_EnumType: + var newV string + if v == nil { + if len(t.GetEnumType().Values) == 0 { + return nil, fmt.Errorf("enum types need atleast one value") + } + newV = t.GetEnumType().Values[0] + } else { + var ok bool + newV, ok = v.(string) + if !ok { + return nil, fmt.Errorf("cannot convert [%v] to enum representations, only string values are supported in enum literals", reflect.TypeOf(v)) + } + found := false + for _, val := range t.GetEnumType().GetValues() { + if val == newV { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("incorrect enum value [%s], supported values %+v", newV, t.GetEnumType().GetValues()) + } + } + return MakePrimitiveLiteral(newV) + + case *core.LiteralType_UnionType: + // Try different types in the variants, return the first one matched + found := false + for _, subType := range newT.UnionType.Variants { + lv, err := MakeLiteralForType(subType, v) + if err == nil { + l = &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Union{ + Union: &core.Union{ + Value: lv, + Type: subType, + }, + }, + }, + }, + } + found = true + break + } + } + if !found { + return nil, fmt.Errorf("incorrect union value [%s], supported values %+v", v, newT.UnionType.Variants) + } + + default: + return nil, fmt.Errorf("unsupported type %s", t.String()) + } + + return l, nil +} diff --git a/flyteidl/clients/go/coreutils/literals_test.go b/flyteidl/clients/go/coreutils/literals_test.go new file mode 100644 index 0000000000..61910ac52d --- /dev/null +++ b/flyteidl/clients/go/coreutils/literals_test.go @@ -0,0 +1,765 @@ +// extract_literal_test.go +// Test class for the utility methods which construct flyte literals. + +package coreutils + +import ( + "fmt" + "reflect" + "strconv" + "testing" + "time" + + "github.com/go-test/deep" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + "github.com/flyteorg/flytestdlib/storage" + + "github.com/golang/protobuf/ptypes" + structpb "github.com/golang/protobuf/ptypes/struct" + "github.com/pkg/errors" + "github.com/stretchr/testify/assert" +) + +func TestMakePrimitive(t *testing.T) { + { + v := 1 + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Integer", reflect.TypeOf(p.Value).String()) + assert.Equal(t, int64(v), p.GetInteger()) + } + { + v := int64(1) + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Integer", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetInteger()) + } + { + v := 1.0 + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_FloatValue", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetFloatValue()) + } + { + v := "blah" + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_StringValue", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetStringValue()) + } + { + v := true + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Boolean", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetBoolean()) + } + { + v := time.Now() + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Datetime", reflect.TypeOf(p.Value).String()) + j, err := ptypes.TimestampProto(v) + assert.NoError(t, err) + assert.Equal(t, j, p.GetDatetime()) + _, err = MakePrimitive(time.Date(0, 0, 0, 0, 0, 0, 0, time.UTC)) + assert.Error(t, err) + } + { + v := time.Second * 10 + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Duration", reflect.TypeOf(p.Value).String()) + assert.Equal(t, ptypes.DurationProto(v), p.GetDuration()) + } + { + v := struct { + }{} + _, err := MakePrimitive(v) + assert.Error(t, err) + } +} + +func TestMustMakePrimitive(t *testing.T) { + { + v := struct { + }{} + assert.Panics(t, func() { + MustMakePrimitive(v) + }) + } + { + v := time.Second * 10 + p := MustMakePrimitive(v) + assert.Equal(t, "*core.Primitive_Duration", reflect.TypeOf(p.Value).String()) + assert.Equal(t, ptypes.DurationProto(v), p.GetDuration()) + } +} + +func TestMakePrimitiveLiteral(t *testing.T) { + { + v := 1.0 + p, err := MakePrimitiveLiteral(v) + assert.NoError(t, err) + assert.NotNil(t, p.GetScalar()) + assert.Equal(t, "*core.Primitive_FloatValue", reflect.TypeOf(p.GetScalar().GetPrimitive().Value).String()) + assert.Equal(t, v, p.GetScalar().GetPrimitive().GetFloatValue()) + } + { + v := struct { + }{} + _, err := MakePrimitiveLiteral(v) + assert.Error(t, err) + } +} + +func TestMustMakePrimitiveLiteral(t *testing.T) { + t.Run("Panic", func(t *testing.T) { + v := struct { + }{} + assert.Panics(t, func() { + MustMakePrimitiveLiteral(v) + }) + }) + t.Run("FloatValue", func(t *testing.T) { + v := 1.0 + p := MustMakePrimitiveLiteral(v) + assert.NotNil(t, p.GetScalar()) + assert.Equal(t, "*core.Primitive_FloatValue", reflect.TypeOf(p.GetScalar().GetPrimitive().Value).String()) + assert.Equal(t, v, p.GetScalar().GetPrimitive().GetFloatValue()) + }) +} + +func TestMakeLiteral(t *testing.T) { + t.Run("Primitive", func(t *testing.T) { + lit, err := MakeLiteral("test_string") + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_StringValue", reflect.TypeOf(lit.GetScalar().GetPrimitive().Value).String()) + }) + + t.Run("Array", func(t *testing.T) { + lit, err := MakeLiteral([]interface{}{1, 2, 3}) + assert.NoError(t, err) + assert.Equal(t, "*core.Literal_Collection", reflect.TypeOf(lit.GetValue()).String()) + assert.Equal(t, "*core.Primitive_Integer", reflect.TypeOf(lit.GetCollection().Literals[0].GetScalar().GetPrimitive().Value).String()) + }) + + t.Run("Map", func(t *testing.T) { + lit, err := MakeLiteral(map[string]interface{}{ + "key1": []interface{}{1, 2, 3}, + "key2": []interface{}{5}, + }) + assert.NoError(t, err) + assert.Equal(t, "*core.Literal_Map", reflect.TypeOf(lit.GetValue()).String()) + assert.Equal(t, "*core.Literal_Collection", reflect.TypeOf(lit.GetMap().Literals["key1"].GetValue()).String()) + }) + + t.Run("Binary", func(t *testing.T) { + s := MakeBinaryLiteral([]byte{'h'}) + assert.Equal(t, []byte{'h'}, s.GetScalar().GetBinary().GetValue()) + }) + + t.Run("NoneType", func(t *testing.T) { + p, err := MakeLiteral(nil) + assert.NoError(t, err) + assert.NotNil(t, p.GetScalar()) + assert.Equal(t, "*core.Scalar_NoneType", reflect.TypeOf(p.GetScalar().Value).String()) + }) +} + +func TestMustMakeLiteral(t *testing.T) { + v := "hello" + l := MustMakeLiteral(v) + assert.NotNil(t, l.GetScalar()) + assert.Equal(t, v, l.GetScalar().GetPrimitive().GetStringValue()) +} + +func TestMakeBinaryLiteral(t *testing.T) { + s := MakeBinaryLiteral([]byte{'h'}) + assert.Equal(t, []byte{'h'}, s.GetScalar().GetBinary().GetValue()) +} + +func TestMakeDefaultLiteralForType(t *testing.T) { + type args struct { + name string + ty core.SimpleType + tyName string + isPrimitive bool + } + tests := []args{ + {"None", core.SimpleType_NONE, "*core.Scalar_NoneType", false}, + {"Binary", core.SimpleType_BINARY, "*core.Scalar_Binary", false}, + {"Integer", core.SimpleType_INTEGER, "*core.Primitive_Integer", true}, + {"Float", core.SimpleType_FLOAT, "*core.Primitive_FloatValue", true}, + {"String", core.SimpleType_STRING, "*core.Primitive_StringValue", true}, + {"Boolean", core.SimpleType_BOOLEAN, "*core.Primitive_Boolean", true}, + {"Duration", core.SimpleType_DURATION, "*core.Primitive_Duration", true}, + {"Datetime", core.SimpleType_DATETIME, "*core.Primitive_Datetime", true}, + } + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_Simple{Simple: test.ty}}) + assert.NoError(t, err) + if test.isPrimitive { + assert.Equal(t, test.tyName, reflect.TypeOf(l.GetScalar().GetPrimitive().Value).String()) + } else { + assert.Equal(t, test.tyName, reflect.TypeOf(l.GetScalar().Value).String()) + } + }) + } + + t.Run("Binary", func(t *testing.T) { + s, err := MakeLiteral([]byte{'h'}) + assert.NoError(t, err) + assert.Equal(t, []byte{'h'}, s.GetScalar().GetBinary().GetValue()) + }) + + t.Run("Blob", func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_Blob{}}) + assert.NoError(t, err) + assert.Equal(t, "*core.Scalar_Blob", reflect.TypeOf(l.GetScalar().Value).String()) + }) + + t.Run("Collection", func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_CollectionType{CollectionType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}}}}) + assert.NoError(t, err) + assert.Equal(t, "*core.LiteralCollection", reflect.TypeOf(l.GetCollection()).String()) + }) + + t.Run("Map", func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_MapValueType{MapValueType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}}}}) + assert.NoError(t, err) + assert.Equal(t, "*core.LiteralMap", reflect.TypeOf(l.GetMap()).String()) + }) + + t.Run("error", func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_Simple{ + Simple: core.SimpleType_ERROR, + }}) + assert.NoError(t, err) + assert.NotNil(t, l.GetScalar().GetError()) + }) + + t.Run("struct", func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_Simple{ + Simple: core.SimpleType_STRUCT, + }}) + assert.NoError(t, err) + assert.NotNil(t, l.GetScalar().GetGeneric()) + }) + + t.Run("enum", func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_EnumType{ + EnumType: &core.EnumType{Values: []string{"x", "y", "z"}}, + }}) + assert.NoError(t, err) + assert.NotNil(t, l.GetScalar().GetPrimitive().GetStringValue()) + expected := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "x"}}}}}} + assert.Equal(t, expected, l) + }) + + t.Run("union", func(t *testing.T) { + l, err := MakeDefaultLiteralForType( + &core.LiteralType{ + Type: &core.LiteralType_UnionType{ + UnionType: &core.UnionType{ + Variants: []*core.LiteralType{ + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}}, + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_FLOAT}}, + }, + }, + }, + }, + ) + assert.NoError(t, err) + assert.Equal(t, "*core.Union", reflect.TypeOf(l.GetScalar().GetUnion()).String()) + }) +} + +func TestMustMakeDefaultLiteralForType(t *testing.T) { + t.Run("error", func(t *testing.T) { + assert.Panics(t, func() { + MustMakeDefaultLiteralForType(nil) + }) + }) + + t.Run("Blob", func(t *testing.T) { + l := MustMakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_Blob{}}) + assert.Equal(t, "*core.Scalar_Blob", reflect.TypeOf(l.GetScalar().Value).String()) + }) +} + +func TestMakePrimitiveForType(t *testing.T) { + n := time.Now() + type args struct { + t core.SimpleType + s string + } + tests := []struct { + name string + args args + want *core.Primitive + wantErr bool + }{ + {"error-type", args{core.SimpleType_NONE, "x"}, nil, true}, + + {"error-int", args{core.SimpleType_INTEGER, "x"}, nil, true}, + {"int", args{core.SimpleType_INTEGER, "1"}, MustMakePrimitive(1), false}, + + {"error-bool", args{core.SimpleType_BOOLEAN, "x"}, nil, true}, + {"bool", args{core.SimpleType_BOOLEAN, "true"}, MustMakePrimitive(true), false}, + + {"error-float", args{core.SimpleType_FLOAT, "x"}, nil, true}, + {"float", args{core.SimpleType_FLOAT, "3.1416"}, MustMakePrimitive(3.1416), false}, + + {"string", args{core.SimpleType_STRING, "string"}, MustMakePrimitive("string"), false}, + + {"error-dt", args{core.SimpleType_DATETIME, "x"}, nil, true}, + {"dt", args{core.SimpleType_DATETIME, n.Format(time.RFC3339Nano)}, MustMakePrimitive(n), false}, + + {"error-dur", args{core.SimpleType_DURATION, "x"}, nil, true}, + {"dur", args{core.SimpleType_DURATION, time.Hour.String()}, MustMakePrimitive(time.Hour), false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := MakePrimitiveForType(tt.args.t, tt.args.s) + if (err != nil) != tt.wantErr { + t.Errorf("MakePrimitiveForType() error = %v, wantErr %v", err, tt.wantErr) + return + } + if !reflect.DeepEqual(got, tt.want) { + t.Errorf("MakePrimitiveForType() got = %v, want %v", got, tt.want) + } + }) + } +} + +func TestMakeLiteralForSimpleType(t *testing.T) { + type args struct { + t core.SimpleType + s string + } + tests := []struct { + name string + args args + want *core.Literal + wantErr bool + }{ + {"error-int", args{core.SimpleType_INTEGER, "x"}, nil, true}, + {"int", args{core.SimpleType_INTEGER, "1"}, MustMakeLiteral(1), false}, + + {"error-struct", args{core.SimpleType_STRUCT, "x"}, nil, true}, + {"struct", args{core.SimpleType_STRUCT, `{"x": 1}`}, MustMakeLiteral(&structpb.Struct{Fields: map[string]*structpb.Value{"x": {Kind: &structpb.Value_NumberValue{NumberValue: 1}}}}), false}, + + {"bin", args{core.SimpleType_BINARY, "x"}, MustMakeLiteral([]byte("x")), false}, + + {"error", args{core.SimpleType_ERROR, "err"}, MustMakeLiteral(&core.Error{Message: "err"}), false}, + + {"none", args{core.SimpleType_NONE, "null"}, MustMakeLiteral(nil), false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := MakeLiteralForSimpleType(tt.args.t, tt.args.s) + if (err != nil) != tt.wantErr { + t.Errorf("MakeLiteralForSimpleType() error = %v, wantErr %v", err, tt.wantErr) + return + } + if diff := deep.Equal(tt.want, got); diff != nil { + t.Errorf("MakeLiteralForSimpleType() got = %v, want %v", got, tt.want) + } + }) + } +} + +func TestMakeLiteralForBlob(t *testing.T) { + type args struct { + path storage.DataReference + isDir bool + format string + } + tests := []struct { + name string + args args + want *core.Blob + }{ + {"simple-key", args{path: "/key", isDir: false, format: "xyz"}, &core.Blob{Uri: "/key", Metadata: &core.BlobMetadata{Type: &core.BlobType{Format: "xyz", Dimensionality: core.BlobType_SINGLE}}}}, + {"simple-dir", args{path: "/key", isDir: true, format: "xyz"}, &core.Blob{Uri: "/key", Metadata: &core.BlobMetadata{Type: &core.BlobType{Format: "xyz", Dimensionality: core.BlobType_MULTIPART}}}}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := MakeLiteralForBlob(tt.args.path, tt.args.isDir, tt.args.format); !reflect.DeepEqual(got.GetScalar().GetBlob(), tt.want) { + t.Errorf("MakeLiteralForBlob() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestMakeLiteralForType(t *testing.T) { + t.Run("SimpleInteger", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}} + val, err := MakeLiteralForType(literalType, 1) + assert.NoError(t, err) + literalVal := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_Integer{Integer: 1}}}}}} + expectedVal, _ := ExtractFromLiteral(literalVal) + actualVal, _ := ExtractFromLiteral(val) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("IntegerComingInAsFloatOverFlow", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}} + _, err := MakeLiteralForType(literalType, 8.888888e+19) + assert.NotNil(t, err) + numError := &strconv.NumError{ + Func: "ParseInt", + Num: "88888880000000000000", + Err: fmt.Errorf("value out of range"), + } + parseIntError := errors.WithMessage(numError, "failed to parse integer value") + assert.Equal(t, errors.WithStack(parseIntError).Error(), err.Error()) + }) + + t.Run("IntegerComingInAsFloat", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}} + val, err := MakeLiteralForType(literalType, 8.888888e+18) + assert.NoError(t, err) + literalVal := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_Integer{Integer: 8.888888e+18}}}}}} + expectedVal, _ := ExtractFromLiteral(literalVal) + actualVal, _ := ExtractFromLiteral(val) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("SimpleFloat", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_FLOAT}} + val, err := MakeLiteralForType(literalType, 1) + assert.NoError(t, err) + literalVal := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_FloatValue{FloatValue: 1.0}}}}}} + expectedVal, _ := ExtractFromLiteral(literalVal) + actualVal, _ := ExtractFromLiteral(val) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("ArrayStrings", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_CollectionType{ + CollectionType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}}}} + strArray := []interface{}{"hello", "world"} + val, err := MakeLiteralForType(literalType, strArray) + assert.NoError(t, err) + literalVal1 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "hello"}}}}}} + literalVal2 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world"}}}}}} + literalCollection := []*core.Literal{literalVal1, literalVal2} + literalVal := &core.Literal{Value: &core.Literal_Collection{Collection: &core.LiteralCollection{Literals: literalCollection}}} + expectedVal, _ := ExtractFromLiteral(literalVal) + actualVal, _ := ExtractFromLiteral(val) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("ArrayOfArrayStringsNotSupported", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_CollectionType{ + CollectionType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}}}} + strArrayOfArray := [][]interface{}{{"hello1", "world1"}, {"hello2", "world2"}} + _, err := MakeLiteralForType(literalType, strArrayOfArray) + expectedErrorf := fmt.Errorf("collection type expected but found [][]interface {}") + assert.Equal(t, expectedErrorf, err) + }) + + t.Run("ArrayOfArrayStringsTypeErasure", func(t *testing.T) { + var collectionType = &core.LiteralType{Type: &core.LiteralType_CollectionType{ + CollectionType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}}}} + var literalType = &core.LiteralType{Type: &core.LiteralType_CollectionType{ + CollectionType: collectionType}} + + createList1 := func() interface{} { + return []interface{}{"hello1", "world1"} + } + createList2 := func() interface{} { + return []interface{}{"hello2", "world2"} + } + createNestedList := func() interface{} { + return []interface{}{createList1(), createList2()} + } + var strArrayOfArray = createNestedList() + val, err := MakeLiteralForType(literalType, strArrayOfArray) + assert.NoError(t, err) + literalVal11 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "hello1"}}}}}} + literalVal12 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world1"}}}}}} + literalCollection1Val := []*core.Literal{literalVal11, literalVal12} + + literalCollection1 := &core.Literal{Value: &core.Literal_Collection{Collection: &core.LiteralCollection{Literals: literalCollection1Val}}} + + literalVal21 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "hello2"}}}}}} + literalVal22 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world2"}}}}}} + literalCollection2Val := []*core.Literal{literalVal21, literalVal22} + literalCollection2 := &core.Literal{Value: &core.Literal_Collection{Collection: &core.LiteralCollection{Literals: literalCollection2Val}}} + literalCollection := []*core.Literal{literalCollection1, literalCollection2} + + literalVal := &core.Literal{Value: &core.Literal_Collection{Collection: &core.LiteralCollection{Literals: literalCollection}}} + expectedVal, _ := ExtractFromLiteral(literalVal) + actualVal, _ := ExtractFromLiteral(val) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("MapStrings", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_MapValueType{ + MapValueType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}}}} + mapVal := map[string]interface{}{"hello1": "world1", "hello2": "world2"} + val, err := MakeLiteralForType(literalType, mapVal) + assert.NoError(t, err) + literalVal1 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world1"}}}}}} + literalVal2 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world2"}}}}}} + literalMapVal := map[string]*core.Literal{"hello1": literalVal1, "hello2": literalVal2} + literalVal := &core.Literal{Value: &core.Literal_Map{Map: &core.LiteralMap{Literals: literalMapVal}}} + expectedVal, _ := ExtractFromLiteral(literalVal) + actualVal, _ := ExtractFromLiteral(val) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("MapArrayOfStringsFail", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_MapValueType{ + MapValueType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}}}} + strArray := map[string][]interface{}{"hello1": {"world11", "world12"}, "hello2": {"world21", "world22"}} + _, err := MakeLiteralForType(literalType, strArray) + expectedErrorf := fmt.Errorf("map value types can only be of type map[string]interface{}, but found map[string][]interface {}") + assert.Equal(t, expectedErrorf, err) + }) + + t.Run("MapArrayOfStringsTypeErasure", func(t *testing.T) { + var collectionType = &core.LiteralType{Type: &core.LiteralType_CollectionType{ + CollectionType: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}}}} + var literalType = &core.LiteralType{Type: &core.LiteralType_MapValueType{ + MapValueType: collectionType}} + createList1 := func() interface{} { + return []interface{}{"world11", "world12"} + } + createList2 := func() interface{} { + return []interface{}{"world21", "world22"} + } + strArray := map[string]interface{}{"hello1": createList1(), "hello2": createList2()} + val, err := MakeLiteralForType(literalType, strArray) + assert.NoError(t, err) + literalVal11 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world11"}}}}}} + literalVal12 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world12"}}}}}} + literalCollection1 := []*core.Literal{literalVal11, literalVal12} + literalVal1 := &core.Literal{Value: &core.Literal_Collection{Collection: &core.LiteralCollection{Literals: literalCollection1}}} + literalVal21 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world21"}}}}}} + literalVal22 := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "world22"}}}}}} + literalCollection2 := []*core.Literal{literalVal21, literalVal22} + literalVal2 := &core.Literal{Value: &core.Literal_Collection{Collection: &core.LiteralCollection{Literals: literalCollection2}}} + literalMapVal := map[string]*core.Literal{"hello1": literalVal1, "hello2": literalVal2} + literalVal := &core.Literal{Value: &core.Literal_Map{Map: &core.LiteralMap{Literals: literalMapVal}}} + expectedVal, _ := ExtractFromLiteral(literalVal) + actualVal, _ := ExtractFromLiteral(val) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("Schema", func(t *testing.T) { + var schemaColumns []*core.SchemaType_SchemaColumn + schemaColumns = append(schemaColumns, &core.SchemaType_SchemaColumn{ + Name: "Price", + Type: core.SchemaType_SchemaColumn_FLOAT, + }) + var literalType = &core.LiteralType{Type: &core.LiteralType_Schema{Schema: &core.SchemaType{ + Columns: schemaColumns, + }}} + + expectedLV := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Schema{ + Schema: &core.Schema{ + Uri: "s3://blah/blah/blah", + Type: &core.SchemaType{ + Columns: schemaColumns, + }, + }, + }, + }}} + lv, err := MakeLiteralForType(literalType, "s3://blah/blah/blah") + assert.NoError(t, err) + + assert.Equal(t, expectedLV, lv) + + expectedVal, err := ExtractFromLiteral(expectedLV) + assert.NoError(t, err) + actualVal, err := ExtractFromLiteral(lv) + assert.NoError(t, err) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("Blob", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_Blob{Blob: &core.BlobType{ + Dimensionality: core.BlobType_SINGLE, + }}} + expectedLV := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Blob{ + Blob: &core.Blob{ + Uri: "s3://blah/blah/blah", + Metadata: &core.BlobMetadata{ + Type: &core.BlobType{ + Dimensionality: core.BlobType_SINGLE, + }, + }, + }, + }, + }}} + lv, err := MakeLiteralForType(literalType, "s3://blah/blah/blah") + assert.NoError(t, err) + + assert.Equal(t, expectedLV, lv) + + expectedVal, err := ExtractFromLiteral(expectedLV) + assert.NoError(t, err) + actualVal, err := ExtractFromLiteral(lv) + assert.NoError(t, err) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("MultipartBlob", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_Blob{Blob: &core.BlobType{ + Dimensionality: core.BlobType_MULTIPART, + }}} + expectedLV := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Blob{ + Blob: &core.Blob{ + Uri: "s3://blah/blah/blah", + Metadata: &core.BlobMetadata{ + Type: &core.BlobType{ + Dimensionality: core.BlobType_MULTIPART, + }, + }, + }, + }, + }}} + lv, err := MakeLiteralForType(literalType, "s3://blah/blah/blah") + assert.NoError(t, err) + + assert.Equal(t, expectedLV, lv) + + expectedVal, err := ExtractFromLiteral(expectedLV) + assert.NoError(t, err) + actualVal, err := ExtractFromLiteral(lv) + assert.NoError(t, err) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("enumtype-nil", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_EnumType{EnumType: &core.EnumType{}}} + _, err := MakeLiteralForType(literalType, nil) + assert.Error(t, err) + _, err = MakeLiteralForType(literalType, "") + assert.Error(t, err) + }) + + t.Run("enumtype-happy", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_EnumType{EnumType: &core.EnumType{Values: []string{"x", "y", "z"}}}} + expected := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_StringValue{StringValue: "x"}}}}}} + v, err := MakeLiteralForType(literalType, "x") + assert.NoError(t, err) + assert.Equal(t, expected, v) + _, err = MakeLiteralForType(literalType, "") + assert.Error(t, err) + }) + + t.Run("enumtype-illegal-val", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_EnumType{EnumType: &core.EnumType{Values: []string{"x", "y", "z"}}}} + _, err := MakeLiteralForType(literalType, "m") + assert.Error(t, err) + }) + + t.Run("Nil string", func(t *testing.T) { + var literalType = &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_STRING}} + l, err := MakeLiteralForType(literalType, nil) + assert.NoError(t, err) + assert.Equal(t, "", l.GetScalar().GetPrimitive().GetStringValue()) + l, err = MakeLiteralForType(literalType, "") + assert.NoError(t, err) + assert.Equal(t, "", l.GetScalar().GetPrimitive().GetStringValue()) + }) + + t.Run("Structured Data Set", func(t *testing.T) { + var dataSetColumns []*core.StructuredDatasetType_DatasetColumn + dataSetColumns = append(dataSetColumns, &core.StructuredDatasetType_DatasetColumn{ + Name: "Price", + LiteralType: &core.LiteralType{ + Type: &core.LiteralType_Simple{ + Simple: core.SimpleType_FLOAT, + }, + }, + }) + var literalType = &core.LiteralType{Type: &core.LiteralType_StructuredDatasetType{StructuredDatasetType: &core.StructuredDatasetType{ + Columns: dataSetColumns, + Format: "testFormat", + }}} + + expectedLV := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_StructuredDataset{ + StructuredDataset: &core.StructuredDataset{ + Uri: "s3://blah/blah/blah", + Metadata: &core.StructuredDatasetMetadata{ + StructuredDatasetType: &core.StructuredDatasetType{ + Columns: dataSetColumns, + Format: "testFormat", + }, + }, + }, + }, + }}} + lv, err := MakeLiteralForType(literalType, "s3://blah/blah/blah") + assert.NoError(t, err) + + assert.Equal(t, expectedLV, lv) + + expectedVal, err := ExtractFromLiteral(expectedLV) + assert.NoError(t, err) + actualVal, err := ExtractFromLiteral(lv) + assert.NoError(t, err) + assert.Equal(t, expectedVal, actualVal) + }) + + t.Run("Union", func(t *testing.T) { + var literalType = &core.LiteralType{ + Type: &core.LiteralType_UnionType{ + UnionType: &core.UnionType{ + Variants: []*core.LiteralType{ + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}}, + {Type: &core.LiteralType_Simple{Simple: core.SimpleType_FLOAT}}, + }, + }, + }, + } + expectedLV := &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Union{ + Union: &core.Union{ + Type: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_FLOAT}}, + Value: &core.Literal{Value: &core.Literal_Scalar{Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{Primitive: &core.Primitive{Value: &core.Primitive_FloatValue{FloatValue: 0.1}}}}}}, + }, + }, + }}} + lv, err := MakeLiteralForType(literalType, float64(0.1)) + assert.NoError(t, err) + assert.Equal(t, expectedLV, lv) + expectedVal, err := ExtractFromLiteral(expectedLV) + assert.NoError(t, err) + actualVal, err := ExtractFromLiteral(lv) + assert.NoError(t, err) + assert.Equal(t, expectedVal, actualVal) + }) +} diff --git a/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go b/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go new file mode 100644 index 0000000000..28e347f66c --- /dev/null +++ b/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go @@ -0,0 +1,497 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + datacatalog "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog" + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" +) + +// DataCatalogClient is an autogenerated mock type for the DataCatalogClient type +type DataCatalogClient struct { + mock.Mock +} + +type DataCatalogClient_AddTag struct { + *mock.Call +} + +func (_m DataCatalogClient_AddTag) Return(_a0 *datacatalog.AddTagResponse, _a1 error) *DataCatalogClient_AddTag { + return &DataCatalogClient_AddTag{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnAddTag(ctx context.Context, in *datacatalog.AddTagRequest, opts ...grpc.CallOption) *DataCatalogClient_AddTag { + c_call := _m.On("AddTag", ctx, in, opts) + return &DataCatalogClient_AddTag{Call: c_call} +} + +func (_m *DataCatalogClient) OnAddTagMatch(matchers ...interface{}) *DataCatalogClient_AddTag { + c_call := _m.On("AddTag", matchers...) + return &DataCatalogClient_AddTag{Call: c_call} +} + +// AddTag provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) AddTag(ctx context.Context, in *datacatalog.AddTagRequest, opts ...grpc.CallOption) (*datacatalog.AddTagResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.AddTagResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.AddTagRequest, ...grpc.CallOption) *datacatalog.AddTagResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.AddTagResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.AddTagRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_CreateArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_CreateArtifact) Return(_a0 *datacatalog.CreateArtifactResponse, _a1 error) *DataCatalogClient_CreateArtifact { + return &DataCatalogClient_CreateArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnCreateArtifact(ctx context.Context, in *datacatalog.CreateArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_CreateArtifact { + c_call := _m.On("CreateArtifact", ctx, in, opts) + return &DataCatalogClient_CreateArtifact{Call: c_call} +} + +func (_m *DataCatalogClient) OnCreateArtifactMatch(matchers ...interface{}) *DataCatalogClient_CreateArtifact { + c_call := _m.On("CreateArtifact", matchers...) + return &DataCatalogClient_CreateArtifact{Call: c_call} +} + +// CreateArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) CreateArtifact(ctx context.Context, in *datacatalog.CreateArtifactRequest, opts ...grpc.CallOption) (*datacatalog.CreateArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.CreateArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateArtifactRequest, ...grpc.CallOption) *datacatalog.CreateArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.CreateArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_CreateDataset struct { + *mock.Call +} + +func (_m DataCatalogClient_CreateDataset) Return(_a0 *datacatalog.CreateDatasetResponse, _a1 error) *DataCatalogClient_CreateDataset { + return &DataCatalogClient_CreateDataset{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnCreateDataset(ctx context.Context, in *datacatalog.CreateDatasetRequest, opts ...grpc.CallOption) *DataCatalogClient_CreateDataset { + c_call := _m.On("CreateDataset", ctx, in, opts) + return &DataCatalogClient_CreateDataset{Call: c_call} +} + +func (_m *DataCatalogClient) OnCreateDatasetMatch(matchers ...interface{}) *DataCatalogClient_CreateDataset { + c_call := _m.On("CreateDataset", matchers...) + return &DataCatalogClient_CreateDataset{Call: c_call} +} + +// CreateDataset provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) CreateDataset(ctx context.Context, in *datacatalog.CreateDatasetRequest, opts ...grpc.CallOption) (*datacatalog.CreateDatasetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.CreateDatasetResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateDatasetRequest, ...grpc.CallOption) *datacatalog.CreateDatasetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.CreateDatasetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateDatasetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_GetArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_GetArtifact) Return(_a0 *datacatalog.GetArtifactResponse, _a1 error) *DataCatalogClient_GetArtifact { + return &DataCatalogClient_GetArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetArtifact(ctx context.Context, in *datacatalog.GetArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_GetArtifact { + c_call := _m.On("GetArtifact", ctx, in, opts) + return &DataCatalogClient_GetArtifact{Call: c_call} +} + +func (_m *DataCatalogClient) OnGetArtifactMatch(matchers ...interface{}) *DataCatalogClient_GetArtifact { + c_call := _m.On("GetArtifact", matchers...) + return &DataCatalogClient_GetArtifact{Call: c_call} +} + +// GetArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetArtifact(ctx context.Context, in *datacatalog.GetArtifactRequest, opts ...grpc.CallOption) (*datacatalog.GetArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.GetArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetArtifactRequest, ...grpc.CallOption) *datacatalog.GetArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_GetDataset struct { + *mock.Call +} + +func (_m DataCatalogClient_GetDataset) Return(_a0 *datacatalog.GetDatasetResponse, _a1 error) *DataCatalogClient_GetDataset { + return &DataCatalogClient_GetDataset{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetDataset(ctx context.Context, in *datacatalog.GetDatasetRequest, opts ...grpc.CallOption) *DataCatalogClient_GetDataset { + c_call := _m.On("GetDataset", ctx, in, opts) + return &DataCatalogClient_GetDataset{Call: c_call} +} + +func (_m *DataCatalogClient) OnGetDatasetMatch(matchers ...interface{}) *DataCatalogClient_GetDataset { + c_call := _m.On("GetDataset", matchers...) + return &DataCatalogClient_GetDataset{Call: c_call} +} + +// GetDataset provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetDataset(ctx context.Context, in *datacatalog.GetDatasetRequest, opts ...grpc.CallOption) (*datacatalog.GetDatasetResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.GetDatasetResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetDatasetRequest, ...grpc.CallOption) *datacatalog.GetDatasetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetDatasetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetDatasetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_GetOrExtendReservation struct { + *mock.Call +} + +func (_m DataCatalogClient_GetOrExtendReservation) Return(_a0 *datacatalog.GetOrExtendReservationResponse, _a1 error) *DataCatalogClient_GetOrExtendReservation { + return &DataCatalogClient_GetOrExtendReservation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnGetOrExtendReservation(ctx context.Context, in *datacatalog.GetOrExtendReservationRequest, opts ...grpc.CallOption) *DataCatalogClient_GetOrExtendReservation { + c_call := _m.On("GetOrExtendReservation", ctx, in, opts) + return &DataCatalogClient_GetOrExtendReservation{Call: c_call} +} + +func (_m *DataCatalogClient) OnGetOrExtendReservationMatch(matchers ...interface{}) *DataCatalogClient_GetOrExtendReservation { + c_call := _m.On("GetOrExtendReservation", matchers...) + return &DataCatalogClient_GetOrExtendReservation{Call: c_call} +} + +// GetOrExtendReservation provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) GetOrExtendReservation(ctx context.Context, in *datacatalog.GetOrExtendReservationRequest, opts ...grpc.CallOption) (*datacatalog.GetOrExtendReservationResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.GetOrExtendReservationResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetOrExtendReservationRequest, ...grpc.CallOption) *datacatalog.GetOrExtendReservationResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetOrExtendReservationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetOrExtendReservationRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_ListArtifacts struct { + *mock.Call +} + +func (_m DataCatalogClient_ListArtifacts) Return(_a0 *datacatalog.ListArtifactsResponse, _a1 error) *DataCatalogClient_ListArtifacts { + return &DataCatalogClient_ListArtifacts{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnListArtifacts(ctx context.Context, in *datacatalog.ListArtifactsRequest, opts ...grpc.CallOption) *DataCatalogClient_ListArtifacts { + c_call := _m.On("ListArtifacts", ctx, in, opts) + return &DataCatalogClient_ListArtifacts{Call: c_call} +} + +func (_m *DataCatalogClient) OnListArtifactsMatch(matchers ...interface{}) *DataCatalogClient_ListArtifacts { + c_call := _m.On("ListArtifacts", matchers...) + return &DataCatalogClient_ListArtifacts{Call: c_call} +} + +// ListArtifacts provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ListArtifacts(ctx context.Context, in *datacatalog.ListArtifactsRequest, opts ...grpc.CallOption) (*datacatalog.ListArtifactsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.ListArtifactsResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ListArtifactsRequest, ...grpc.CallOption) *datacatalog.ListArtifactsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ListArtifactsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ListArtifactsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_ListDatasets struct { + *mock.Call +} + +func (_m DataCatalogClient_ListDatasets) Return(_a0 *datacatalog.ListDatasetsResponse, _a1 error) *DataCatalogClient_ListDatasets { + return &DataCatalogClient_ListDatasets{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnListDatasets(ctx context.Context, in *datacatalog.ListDatasetsRequest, opts ...grpc.CallOption) *DataCatalogClient_ListDatasets { + c_call := _m.On("ListDatasets", ctx, in, opts) + return &DataCatalogClient_ListDatasets{Call: c_call} +} + +func (_m *DataCatalogClient) OnListDatasetsMatch(matchers ...interface{}) *DataCatalogClient_ListDatasets { + c_call := _m.On("ListDatasets", matchers...) + return &DataCatalogClient_ListDatasets{Call: c_call} +} + +// ListDatasets provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ListDatasets(ctx context.Context, in *datacatalog.ListDatasetsRequest, opts ...grpc.CallOption) (*datacatalog.ListDatasetsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.ListDatasetsResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ListDatasetsRequest, ...grpc.CallOption) *datacatalog.ListDatasetsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ListDatasetsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ListDatasetsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_ReleaseReservation struct { + *mock.Call +} + +func (_m DataCatalogClient_ReleaseReservation) Return(_a0 *datacatalog.ReleaseReservationResponse, _a1 error) *DataCatalogClient_ReleaseReservation { + return &DataCatalogClient_ReleaseReservation{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnReleaseReservation(ctx context.Context, in *datacatalog.ReleaseReservationRequest, opts ...grpc.CallOption) *DataCatalogClient_ReleaseReservation { + c_call := _m.On("ReleaseReservation", ctx, in, opts) + return &DataCatalogClient_ReleaseReservation{Call: c_call} +} + +func (_m *DataCatalogClient) OnReleaseReservationMatch(matchers ...interface{}) *DataCatalogClient_ReleaseReservation { + c_call := _m.On("ReleaseReservation", matchers...) + return &DataCatalogClient_ReleaseReservation{Call: c_call} +} + +// ReleaseReservation provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) ReleaseReservation(ctx context.Context, in *datacatalog.ReleaseReservationRequest, opts ...grpc.CallOption) (*datacatalog.ReleaseReservationResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.ReleaseReservationResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ReleaseReservationRequest, ...grpc.CallOption) *datacatalog.ReleaseReservationResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.ReleaseReservationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ReleaseReservationRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type DataCatalogClient_UpdateArtifact struct { + *mock.Call +} + +func (_m DataCatalogClient_UpdateArtifact) Return(_a0 *datacatalog.UpdateArtifactResponse, _a1 error) *DataCatalogClient_UpdateArtifact { + return &DataCatalogClient_UpdateArtifact{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *DataCatalogClient) OnUpdateArtifact(ctx context.Context, in *datacatalog.UpdateArtifactRequest, opts ...grpc.CallOption) *DataCatalogClient_UpdateArtifact { + c_call := _m.On("UpdateArtifact", ctx, in, opts) + return &DataCatalogClient_UpdateArtifact{Call: c_call} +} + +func (_m *DataCatalogClient) OnUpdateArtifactMatch(matchers ...interface{}) *DataCatalogClient_UpdateArtifact { + c_call := _m.On("UpdateArtifact", matchers...) + return &DataCatalogClient_UpdateArtifact{Call: c_call} +} + +// UpdateArtifact provides a mock function with given fields: ctx, in, opts +func (_m *DataCatalogClient) UpdateArtifact(ctx context.Context, in *datacatalog.UpdateArtifactRequest, opts ...grpc.CallOption) (*datacatalog.UpdateArtifactResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *datacatalog.UpdateArtifactResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.UpdateArtifactRequest, ...grpc.CallOption) *datacatalog.UpdateArtifactResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.UpdateArtifactResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.UpdateArtifactRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/conf.py b/flyteidl/conf.py new file mode 100644 index 0000000000..1aa29d6025 --- /dev/null +++ b/flyteidl/conf.py @@ -0,0 +1,224 @@ +# -*- coding: utf-8 -*- +# +# Configuration file for the Sphinx documentation builder. +# +# This file does only contain a selection of the most common options. For a +# full list see the documentation: +# http://www.sphinx-doc.org/en/stable/config + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import re +import sys + +import recommonmark +import sphinx_fontawesome +from recommonmark.transform import AutoStructify + + +# -- Project information ----------------------------------------------------- + +project = "Flyte Language Specification" +copyright = "2021, Flyte" +author = "Flyte" + +# The full version, including alpha/beta/rc tags +release = re.sub("^v", "", os.popen("git describe").read().strip()) +version = release + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + "sphinx.ext.autodoc", + "sphinx.ext.autosummary", + "sphinx.ext.autosectionlabel", + "sphinx.ext.napoleon", + "sphinx.ext.todo", + "sphinx.ext.viewcode", + "sphinx.ext.doctest", + "sphinx.ext.intersphinx", + "sphinx.ext.coverage", + "sphinx-prompt", + "sphinx_copybutton", + "recommonmark", + "sphinx_markdown_tables", + "sphinx_fontawesome", + "sphinx_panels", +] + +# build the templated autosummary files +autosummary_generate = True + +# autosectionlabel throws warnings if section names are duplicated. +# The following tells autosectionlabel to not throw a warning for +# duplicated section names that are in different documents. +autosectionlabel_prefix_document = True + +# Add any paths that contain templates here, relative to this directory. +templates_path = ["_templates"] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +source_suffix = [".rst"] + +# The master toctree document. +master_doc = "index" + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path . +exclude_patterns = [ + u"_build", + "Thumbs.db", + ".DS_Store", + "tmp/doc_gen_deps", + "gen/*/*/*/*/*", + "CODE_OF_CONDUCT.md", + "pull_request_template.md", + "boilerplate", +] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = "tango" +pygments_dark_style = "native" + + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = "furo" +html_title = "Flyte" +html_favicon = "docs/images/flyte_circle_gradient_1_4x4.png" +html_logo = "docs/images/flyte_circle_gradient_1_4x4.png" + +html_theme_options = { + "light_css_variables": { + "color-brand-primary": "#4300c9", + "color-brand-content": "#4300c9", + }, + "dark_css_variables": { + "color-brand-primary": "#9D68E4", + "color-brand-content": "#9D68E4", + }, + # custom flyteorg furo theme options + "github_repo": "flyteidl", + "github_username": "flyteorg", + "github_commit": "master", + "docs_path": ".", # path to documentation source +} + +html_context = { + "home_page": "https://docs.flyte.org", +} + +# The default sidebars (for documents that don't match any pattern) are +# defined by theme itself. Builtin themes are using these templates by +# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', +# 'searchbox.html']``. +# html_sidebars = {"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]} + + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ["docs/_static"] +html_css_files = ["css/fix_toc.css"] + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# + + +# -- Options for HTMLHelp output --------------------------------------------- + +# Output file base name for HTML help builder. +htmlhelp_basename = "flyteidldoc" + + +# -- Options for LaTeX output ------------------------------------------------ + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, "flyteidl.tex", "flyteidl Documentation", "Flyte", "manual"), +] + + +# -- Options for manual page output ------------------------------------------ + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [(master_doc, "flyteidl", "flyteidl Documentation", [author], 1)] + + +# -- Options for Texinfo output ---------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ( + master_doc, + "flyteidl", + "flyteidl Documentation", + author, + "flyteidl", + "Python SDK for Flyte (https://flyte.org).", + "Miscellaneous", + ), +] + + +# -- Extension configuration ------------------------------------------------- +# intersphinx configuration +intersphinx_mapping = { + "python": ("https://docs.python.org/{.major}".format(sys.version_info), None), +} + + +def setup(app): + app.add_config_value( + "recommonmark_config", + { + "auto_toc_tree_section": "Contents", + "enable_math": False, + "enable_inline_math": False, + "enable_eval_rst": True, + }, + True, + ) + app.add_transform(AutoStructify) diff --git a/flyteidl/doc-requirements.in b/flyteidl/doc-requirements.in new file mode 100644 index 0000000000..3f48edd16d --- /dev/null +++ b/flyteidl/doc-requirements.in @@ -0,0 +1,10 @@ +git+https://github.com/flyteorg/furo.git@main +recommonmark +sphinx +sphinx-prompt +sphinx-material +sphinx-code-include +sphinx-copybutton +sphinx_markdown_tables +sphinx_fontawesome +sphinx-panels diff --git a/flyteidl/doc-requirements.txt b/flyteidl/doc-requirements.txt new file mode 100644 index 0000000000..6adef8b8ad --- /dev/null +++ b/flyteidl/doc-requirements.txt @@ -0,0 +1,114 @@ +# +# This file is autogenerated by pip-compile with python 3.8 +# To update, run: +# +# pip-compile doc-requirements.in +# +alabaster==0.7.12 + # via sphinx +babel==2.9.1 + # via sphinx +beautifulsoup4==4.10.0 + # via + # furo + # sphinx-code-include + # sphinx-material +certifi==2021.10.8 + # via requests +charset-normalizer==2.0.10 + # via requests +commonmark==0.9.1 + # via recommonmark +css-html-js-minify==2.5.5 + # via sphinx-material +docutils==0.17.1 + # via + # recommonmark + # sphinx + # sphinx-panels +furo @ git+https://github.com/flyteorg/furo.git@main + # via -r doc-requirements.in +idna==3.3 + # via requests +imagesize==1.3.0 + # via sphinx +importlib-metadata==4.10.0 + # via markdown +jinja2==3.0.3 + # via sphinx +lxml==4.7.1 + # via sphinx-material +markdown==3.3.6 + # via sphinx-markdown-tables +markupsafe==2.0.1 + # via jinja2 +packaging==21.3 + # via sphinx +pygments==2.11.2 + # via + # sphinx + # sphinx-prompt +pyparsing==3.0.6 + # via packaging +python-slugify[unidecode]==5.0.2 + # via sphinx-material +pytz==2021.3 + # via babel +recommonmark==0.7.1 + # via -r doc-requirements.in +requests==2.27.1 + # via sphinx +six==1.16.0 + # via sphinx-code-include +snowballstemmer==2.2.0 + # via sphinx +soupsieve==2.3.1 + # via beautifulsoup4 +sphinx==4.3.2 + # via + # -r doc-requirements.in + # furo + # recommonmark + # sphinx-code-include + # sphinx-copybutton + # sphinx-fontawesome + # sphinx-material + # sphinx-panels + # sphinx-prompt +sphinx-code-include==1.1.1 + # via -r doc-requirements.in +sphinx-copybutton==0.4.0 + # via -r doc-requirements.in +sphinx-fontawesome==0.0.6 + # via -r doc-requirements.in +sphinx-markdown-tables==0.0.15 + # via -r doc-requirements.in +sphinx-material==0.0.35 + # via -r doc-requirements.in +sphinx-panels==0.6.0 + # via -r doc-requirements.in +sphinx-prompt==1.5.0 + # via -r doc-requirements.in +sphinxcontrib-applehelp==1.0.2 + # via sphinx +sphinxcontrib-devhelp==1.0.2 + # via sphinx +sphinxcontrib-htmlhelp==2.0.0 + # via sphinx +sphinxcontrib-jsmath==1.0.1 + # via sphinx +sphinxcontrib-qthelp==1.0.3 + # via sphinx +sphinxcontrib-serializinghtml==1.1.5 + # via sphinx +text-unidecode==1.3 + # via python-slugify +unidecode==1.3.2 + # via python-slugify +urllib3==1.26.8 + # via requests +zipp==3.7.0 + # via importlib-metadata + +# The following packages are considered to be unsafe in a requirements file: +# setuptools diff --git a/flyteidl/docs/Makefile b/flyteidl/docs/Makefile new file mode 100644 index 0000000000..e31a5fb038 --- /dev/null +++ b/flyteidl/docs/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +SPHINXPROJ = flyteidl +SOURCEDIR = ../ +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/flyteidl/docs/_static/css/fix_toc.css b/flyteidl/docs/_static/css/fix_toc.css new file mode 100644 index 0000000000..9d4302546c --- /dev/null +++ b/flyteidl/docs/_static/css/fix_toc.css @@ -0,0 +1,3 @@ +.sidebar-tree > :not(:first-child) { + display: block !important; +} \ No newline at end of file diff --git a/flyteidl/docs/images/flyte_circle_gradient_1_4x4.png b/flyteidl/docs/images/flyte_circle_gradient_1_4x4.png new file mode 100644 index 0000000000..49cdbbbc34 Binary files /dev/null and b/flyteidl/docs/images/flyte_circle_gradient_1_4x4.png differ diff --git a/flyteidl/docs/make.bat b/flyteidl/docs/make.bat new file mode 100644 index 0000000000..47d656bb74 --- /dev/null +++ b/flyteidl/docs/make.bat @@ -0,0 +1,36 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=source +set BUILDDIR=build +set SPHINXPROJ=simpleble + +if "%1" == "" goto help + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% + +:end +popd diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc new file mode 100644 index 0000000000..cb40aaf5c9 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/agent.proto + +#include "flyteidl/admin/agent.pb.h" +#include "flyteidl/admin/agent.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h new file mode 100644 index 0000000000..e12178767a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/agent.proto +#ifndef GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED + +#include "flyteidl/admin/agent.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc new file mode 100644 index 0000000000..3948427bc8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc @@ -0,0 +1,3891 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/agent.proto + +#include "flyteidl/admin/agent.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +namespace flyteidl { +namespace admin { +class TaskExecutionMetadata_LabelsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_; +class TaskExecutionMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_; +class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_; +class TaskExecutionMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionMetadata_default_instance_; +class CreateTaskRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateTaskRequest_default_instance_; +class CreateTaskResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateTaskResponse_default_instance_; +class GetTaskRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskRequest_default_instance_; +class GetTaskResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetTaskResponse_default_instance_; +class ResourceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Resource_default_instance_; +class DeleteTaskRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DeleteTaskRequest_default_instance_; +class DeleteTaskResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DeleteTaskResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsTaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse(); + } + ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsTaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse(); + } + ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsTaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(); + } + ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsTaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base, + &scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base, + &scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base,}}; + +static void InitDefaultsCreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_CreateTaskRequest_default_instance_; + new (ptr) ::flyteidl::admin::CreateTaskRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::CreateTaskRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsCreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base,}}; + +static void InitDefaultsCreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_CreateTaskResponse_default_instance_; + new (ptr) ::flyteidl::admin::CreateTaskResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::CreateTaskResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsGetTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskRequest_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsGetTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetTaskResponse_default_instance_; + new (ptr) ::flyteidl::admin::GetTaskResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetTaskResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base,}}; + +static void InitDefaultsResource_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Resource_default_instance_; + new (ptr) ::flyteidl::admin::Resource(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Resource::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsResource_flyteidl_2fadmin_2fagent_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsDeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DeleteTaskRequest_default_instance_; + new (ptr) ::flyteidl::admin::DeleteTaskRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DeleteTaskRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +static void InitDefaultsDeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DeleteTaskResponse_default_instance_; + new (ptr) ::flyteidl::admin::DeleteTaskResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DeleteTaskResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fagent_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[11]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fagent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, task_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, namespace__), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, labels_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, annotations_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, k8s_service_account_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, environment_variables_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, template__), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, output_prefix_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, task_execution_metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskResponse, resource_meta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, resource_meta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskResponse, resource_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, state_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, outputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, resource_meta_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, 7, sizeof(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse)}, + { 9, 16, sizeof(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse)}, + { 18, 25, sizeof(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse)}, + { 27, -1, sizeof(::flyteidl::admin::TaskExecutionMetadata)}, + { 38, -1, sizeof(::flyteidl::admin::CreateTaskRequest)}, + { 47, -1, sizeof(::flyteidl::admin::CreateTaskResponse)}, + { 53, -1, sizeof(::flyteidl::admin::GetTaskRequest)}, + { 60, -1, sizeof(::flyteidl::admin::GetTaskResponse)}, + { 66, -1, sizeof(::flyteidl::admin::Resource)}, + { 73, -1, sizeof(::flyteidl::admin::DeleteTaskRequest)}, + { 80, -1, sizeof(::flyteidl::admin::DeleteTaskResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_CreateTaskRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_CreateTaskResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetTaskResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Resource_default_instance_), + reinterpret_cast(&::flyteidl::admin::_DeleteTaskRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_DeleteTaskResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fagent_2eproto, "flyteidl/admin/agent.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fagent_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fagent_2eproto, 11, file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto[] = + "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" + "dmin\032\034flyteidl/core/literals.proto\032\031flyt" + "eidl/core/tasks.proto\032\035flyteidl/core/int" + "erface.proto\032\036flyteidl/core/identifier.p" + "roto\"\232\004\n\025TaskExecutionMetadata\022A\n\021task_e" + "xecution_id\030\001 \001(\0132&.flyteidl.core.TaskEx" + "ecutionIdentifier\022\021\n\tnamespace\030\002 \001(\t\022A\n\006" + "labels\030\003 \003(\01321.flyteidl.admin.TaskExecut" + "ionMetadata.LabelsEntry\022K\n\013annotations\030\004" + " \003(\01326.flyteidl.admin.TaskExecutionMetad" + "ata.AnnotationsEntry\022\033\n\023k8s_service_acco" + "unt\030\005 \001(\t\022^\n\025environment_variables\030\006 \003(\013" + "2\?.flyteidl.admin.TaskExecutionMetadata." + "EnvironmentVariablesEntry\032-\n\013LabelsEntry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Anno" + "tationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + ":\0028\001\032;\n\031EnvironmentVariablesEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\314\001\n\021CreateTask" + "Request\022)\n\006inputs\030\001 \001(\0132\031.flyteidl.core." + "LiteralMap\022-\n\010template\030\002 \001(\0132\033.flyteidl." + "core.TaskTemplate\022\025\n\routput_prefix\030\003 \001(\t" + "\022F\n\027task_execution_metadata\030\004 \001(\0132%.flyt" + "eidl.admin.TaskExecutionMetadata\"+\n\022Crea" + "teTaskResponse\022\025\n\rresource_meta\030\001 \001(\014\":\n" + "\016GetTaskRequest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rre" + "source_meta\030\002 \001(\014\"=\n\017GetTaskResponse\022*\n\010" + "resource\030\001 \001(\0132\030.flyteidl.admin.Resource" + "\"\\\n\010Resource\022$\n\005state\030\001 \001(\0162\025.flyteidl.a" + "dmin.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl.c" + "ore.LiteralMap\"=\n\021DeleteTaskRequest\022\021\n\tt" + "ask_type\030\001 \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n" + "\022DeleteTaskResponse*^\n\005State\022\025\n\021RETRYABL" + "E_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001\022\013\n\007PE" + "NDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004B7Z5g" + "ithub.com/flyteorg/flyteidl/gen/pb-go/fl" + "yteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fagent_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fagent_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto, + "flyteidl/admin/agent.proto", &assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto, 1420, +}; + +void AddDescriptors_flyteidl_2fadmin_2fagent_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[4] = + { + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fagent_2eproto, deps, 4); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fagent_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fagent_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* State_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto[0]; +} +bool State_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +TaskExecutionMetadata_LabelsEntry_DoNotUse::TaskExecutionMetadata_LabelsEntry_DoNotUse() {} +TaskExecutionMetadata_LabelsEntry_DoNotUse::TaskExecutionMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void TaskExecutionMetadata_LabelsEntry_DoNotUse::MergeFrom(const TaskExecutionMetadata_LabelsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata TaskExecutionMetadata_LabelsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[0]; +} +void TaskExecutionMetadata_LabelsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionMetadata_LabelsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + TaskExecutionMetadata_LabelsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +TaskExecutionMetadata_AnnotationsEntry_DoNotUse::TaskExecutionMetadata_AnnotationsEntry_DoNotUse() {} +TaskExecutionMetadata_AnnotationsEntry_DoNotUse::TaskExecutionMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void TaskExecutionMetadata_AnnotationsEntry_DoNotUse::MergeFrom(const TaskExecutionMetadata_AnnotationsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata TaskExecutionMetadata_AnnotationsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[1]; +} +void TaskExecutionMetadata_AnnotationsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionMetadata_AnnotationsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + TaskExecutionMetadata_AnnotationsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse() {} +TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::MergeFrom(const TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[2]; +} +void TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void TaskExecutionMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionMetadata_default_instance_._instance.get_mutable()->task_execution_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +class TaskExecutionMetadata::HasBitSetters { + public: + static const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id(const TaskExecutionMetadata* msg); +}; + +const ::flyteidl::core::TaskExecutionIdentifier& +TaskExecutionMetadata::HasBitSetters::task_execution_id(const TaskExecutionMetadata* msg) { + return *msg->task_execution_id_; +} +void TaskExecutionMetadata::clear_task_execution_id() { + if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { + delete task_execution_id_; + } + task_execution_id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionMetadata::kTaskExecutionIdFieldNumber; +const int TaskExecutionMetadata::kNamespaceFieldNumber; +const int TaskExecutionMetadata::kLabelsFieldNumber; +const int TaskExecutionMetadata::kAnnotationsFieldNumber; +const int TaskExecutionMetadata::kK8SServiceAccountFieldNumber; +const int TaskExecutionMetadata::kEnvironmentVariablesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionMetadata::TaskExecutionMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionMetadata) +} +TaskExecutionMetadata::TaskExecutionMetadata(const TaskExecutionMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + labels_.MergeFrom(from.labels_); + annotations_.MergeFrom(from.annotations_); + environment_variables_.MergeFrom(from.environment_variables_); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.namespace_().size() > 0) { + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.k8s_service_account().size() > 0) { + k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); + } + if (from.has_task_execution_id()) { + task_execution_id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_execution_id_); + } else { + task_execution_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionMetadata) +} + +void TaskExecutionMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + task_execution_id_ = nullptr; +} + +TaskExecutionMetadata::~TaskExecutionMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionMetadata) + SharedDtor(); +} + +void TaskExecutionMetadata::SharedDtor() { + namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + k8s_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete task_execution_id_; +} + +void TaskExecutionMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionMetadata& TaskExecutionMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + labels_.Clear(); + annotations_.Clear(); + environment_variables_.Clear(); + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { + delete task_execution_id_; + } + task_execution_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_task_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string namespace = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionMetadata.namespace"); + object = msg->mutable_namespace_(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // map labels = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->labels_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // map annotations = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->annotations_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // string k8s_service_account = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionMetadata.k8s_service_account"); + object = msg->mutable_k8s_service_account(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // map environment_variables = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->environment_variables_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // string namespace = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.namespace")); + } else { + goto handle_unusual; + } + break; + } + + // map labels = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + TaskExecutionMetadata_LabelsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + TaskExecutionMetadata_LabelsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&labels_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // map annotations = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + TaskExecutionMetadata_AnnotationsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + TaskExecutionMetadata_AnnotationsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&annotations_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // string k8s_service_account = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_k8s_service_account())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.k8s_service_account")); + } else { + goto handle_unusual; + } + break; + } + + // map environment_variables = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&environment_variables_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::task_execution_id(this), output); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->namespace_(), output); + } + + // map labels = 3; + if (!this->labels().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->labels().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->labels().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it) { + entry.reset(labels_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // map annotations = 4; + if (!this->annotations().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->annotations().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->annotations().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it) { + entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // string k8s_service_account = 5; + if (this->k8s_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.k8s_service_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->k8s_service_account(), output); + } + + // map environment_variables = 6; + if (!this->environment_variables().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->environment_variables().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->environment_variables().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->environment_variables().begin(); + it != this->environment_variables().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(environment_variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(6, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->environment_variables().begin(); + it != this->environment_variables().end(); ++it) { + entry.reset(environment_variables_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(6, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionMetadata) +} + +::google::protobuf::uint8* TaskExecutionMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::task_execution_id(this), target); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->namespace_(), target); + } + + // map labels = 3; + if (!this->labels().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value"); + } + }; + + if (false && + this->labels().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->labels().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it) { + entry.reset(labels_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // map annotations = 4; + if (!this->annotations().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value"); + } + }; + + if (false && + this->annotations().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->annotations().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it) { + entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // string k8s_service_account = 5; + if (this->k8s_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.k8s_service_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->k8s_service_account(), target); + } + + // map environment_variables = 6; + if (!this->environment_variables().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value"); + } + }; + + if (false && + this->environment_variables().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->environment_variables().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->environment_variables().begin(); + it != this->environment_variables().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(environment_variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(6, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->environment_variables().begin(); + it != this->environment_variables().end(); ++it) { + entry.reset(environment_variables_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(6, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionMetadata) + return target; +} + +size_t TaskExecutionMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map labels = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->labels_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it) { + entry.reset(labels_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // map annotations = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->annotations_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it) { + entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // map environment_variables = 6; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->environment_variables_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->environment_variables().begin(); + it != this->environment_variables().end(); ++it) { + entry.reset(environment_variables_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + // string k8s_service_account = 5; + if (this->k8s_service_account().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->k8s_service_account()); + } + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *task_execution_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionMetadata) + MergeFrom(*source); + } +} + +void TaskExecutionMetadata::MergeFrom(const TaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + labels_.MergeFrom(from.labels_); + annotations_.MergeFrom(from.annotations_); + environment_variables_.MergeFrom(from.environment_variables_); + if (from.namespace_().size() > 0) { + + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + if (from.k8s_service_account().size() > 0) { + + k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); + } + if (from.has_task_execution_id()) { + mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); + } +} + +void TaskExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionMetadata::CopyFrom(const TaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionMetadata::IsInitialized() const { + return true; +} + +void TaskExecutionMetadata::Swap(TaskExecutionMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionMetadata::InternalSwap(TaskExecutionMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + labels_.Swap(&other->labels_); + annotations_.Swap(&other->annotations_); + environment_variables_.Swap(&other->environment_variables_); + namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + k8s_service_account_.Swap(&other->k8s_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(task_execution_id_, other->task_execution_id_); +} + +::google::protobuf::Metadata TaskExecutionMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateTaskRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); + ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->task_execution_metadata_ = const_cast< ::flyteidl::admin::TaskExecutionMetadata*>( + ::flyteidl::admin::TaskExecutionMetadata::internal_default_instance()); +} +class CreateTaskRequest::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& inputs(const CreateTaskRequest* msg); + static const ::flyteidl::core::TaskTemplate& template_(const CreateTaskRequest* msg); + static const ::flyteidl::admin::TaskExecutionMetadata& task_execution_metadata(const CreateTaskRequest* msg); +}; + +const ::flyteidl::core::LiteralMap& +CreateTaskRequest::HasBitSetters::inputs(const CreateTaskRequest* msg) { + return *msg->inputs_; +} +const ::flyteidl::core::TaskTemplate& +CreateTaskRequest::HasBitSetters::template_(const CreateTaskRequest* msg) { + return *msg->template__; +} +const ::flyteidl::admin::TaskExecutionMetadata& +CreateTaskRequest::HasBitSetters::task_execution_metadata(const CreateTaskRequest* msg) { + return *msg->task_execution_metadata_; +} +void CreateTaskRequest::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +void CreateTaskRequest::clear_template_() { + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateTaskRequest::kInputsFieldNumber; +const int CreateTaskRequest::kTemplateFieldNumber; +const int CreateTaskRequest::kOutputPrefixFieldNumber; +const int CreateTaskRequest::kTaskExecutionMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateTaskRequest::CreateTaskRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.CreateTaskRequest) +} +CreateTaskRequest::CreateTaskRequest(const CreateTaskRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.output_prefix().size() > 0) { + output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); + } + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_template_()) { + template__ = new ::flyteidl::core::TaskTemplate(*from.template__); + } else { + template__ = nullptr; + } + if (from.has_task_execution_metadata()) { + task_execution_metadata_ = new ::flyteidl::admin::TaskExecutionMetadata(*from.task_execution_metadata_); + } else { + task_execution_metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateTaskRequest) +} + +void CreateTaskRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&task_execution_metadata_) - + reinterpret_cast(&inputs_)) + sizeof(task_execution_metadata_)); +} + +CreateTaskRequest::~CreateTaskRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.CreateTaskRequest) + SharedDtor(); +} + +void CreateTaskRequest::SharedDtor() { + output_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete template__; + if (this != internal_default_instance()) delete task_execution_metadata_; +} + +void CreateTaskRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateTaskRequest& CreateTaskRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void CreateTaskRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; + if (GetArenaNoVirtual() == nullptr && task_execution_metadata_ != nullptr) { + delete task_execution_metadata_; + } + task_execution_metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateTaskRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.LiteralMap inputs = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskTemplate template = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->mutable_template_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string output_prefix = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.CreateTaskRequest.output_prefix"); + object = msg->mutable_output_prefix(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskExecutionMetadata::_InternalParse; + object = msg->mutable_task_execution_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateTaskRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.CreateTaskRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.LiteralMap inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskTemplate template = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + // string output_prefix = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_prefix())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.CreateTaskRequest.output_prefix")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_execution_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.CreateTaskRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateTaskRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateTaskRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::inputs(this), output); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::template_(this), output); + } + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CreateTaskRequest.output_prefix"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->output_prefix(), output); + } + + // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + if (this->has_task_execution_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::task_execution_metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.CreateTaskRequest) +} + +::google::protobuf::uint8* CreateTaskRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::inputs(this), target); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::template_(this), target); + } + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CreateTaskRequest.output_prefix"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->output_prefix(), target); + } + + // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + if (this->has_task_execution_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::task_execution_metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.CreateTaskRequest) + return target; +} + +size_t CreateTaskRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateTaskRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_prefix()); + } + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *template__); + } + + // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + if (this->has_task_execution_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *task_execution_metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateTaskRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateTaskRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateTaskRequest) + MergeFrom(*source); + } +} + +void CreateTaskRequest::MergeFrom(const CreateTaskRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.output_prefix().size() > 0) { + + output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); + } + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); + } + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); + } + if (from.has_task_execution_metadata()) { + mutable_task_execution_metadata()->::flyteidl::admin::TaskExecutionMetadata::MergeFrom(from.task_execution_metadata()); + } +} + +void CreateTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateTaskRequest::CopyFrom(const CreateTaskRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateTaskRequest::IsInitialized() const { + return true; +} + +void CreateTaskRequest::Swap(CreateTaskRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateTaskRequest::InternalSwap(CreateTaskRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + output_prefix_.Swap(&other->output_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(inputs_, other->inputs_); + swap(template__, other->template__); + swap(task_execution_metadata_, other->task_execution_metadata_); +} + +::google::protobuf::Metadata CreateTaskRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateTaskResponse::InitAsDefaultInstance() { +} +class CreateTaskResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateTaskResponse::kResourceMetaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateTaskResponse::CreateTaskResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.CreateTaskResponse) +} +CreateTaskResponse::CreateTaskResponse(const CreateTaskResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateTaskResponse) +} + +void CreateTaskResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CreateTaskResponse::~CreateTaskResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.CreateTaskResponse) + SharedDtor(); +} + +void CreateTaskResponse::SharedDtor() { + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CreateTaskResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateTaskResponse& CreateTaskResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void CreateTaskResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateTaskResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // bytes resource_meta = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateTaskResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.CreateTaskResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bytes resource_meta = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.CreateTaskResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateTaskResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateTaskResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes resource_meta = 1; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->resource_meta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.CreateTaskResponse) +} + +::google::protobuf::uint8* CreateTaskResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes resource_meta = 1; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->resource_meta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.CreateTaskResponse) + return target; +} + +size_t CreateTaskResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateTaskResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes resource_meta = 1; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateTaskResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateTaskResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateTaskResponse) + MergeFrom(*source); + } +} + +void CreateTaskResponse::MergeFrom(const CreateTaskResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } +} + +void CreateTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateTaskResponse::CopyFrom(const CreateTaskResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateTaskResponse::IsInitialized() const { + return true; +} + +void CreateTaskResponse::Swap(CreateTaskResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateTaskResponse::InternalSwap(CreateTaskResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata CreateTaskResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetTaskRequest::InitAsDefaultInstance() { +} +class GetTaskRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskRequest::kTaskTypeFieldNumber; +const int GetTaskRequest::kResourceMetaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskRequest::GetTaskRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskRequest) +} +GetTaskRequest::GetTaskRequest(const GetTaskRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskRequest) +} + +void GetTaskRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +GetTaskRequest::~GetTaskRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskRequest) + SharedDtor(); +} + +void GetTaskRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetTaskRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetTaskRequest& GetTaskRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetTaskRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bytes resource_meta = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.GetTaskRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // bytes resource_meta = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->resource_meta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskRequest) +} + +::google::protobuf::uint8* GetTaskRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.GetTaskRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->resource_meta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskRequest) + return target; +} + +size_t GetTaskRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskRequest) + MergeFrom(*source); + } +} + +void GetTaskRequest::MergeFrom(const GetTaskRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } +} + +void GetTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskRequest::CopyFrom(const GetTaskRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskRequest::IsInitialized() const { + return true; +} + +void GetTaskRequest::Swap(GetTaskRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskRequest::InternalSwap(GetTaskRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata GetTaskRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetTaskResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_GetTaskResponse_default_instance_._instance.get_mutable()->resource_ = const_cast< ::flyteidl::admin::Resource*>( + ::flyteidl::admin::Resource::internal_default_instance()); +} +class GetTaskResponse::HasBitSetters { + public: + static const ::flyteidl::admin::Resource& resource(const GetTaskResponse* msg); +}; + +const ::flyteidl::admin::Resource& +GetTaskResponse::HasBitSetters::resource(const GetTaskResponse* msg) { + return *msg->resource_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetTaskResponse::kResourceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetTaskResponse::GetTaskResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskResponse) +} +GetTaskResponse::GetTaskResponse(const GetTaskResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_resource()) { + resource_ = new ::flyteidl::admin::Resource(*from.resource_); + } else { + resource_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskResponse) +} + +void GetTaskResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + resource_ = nullptr; +} + +GetTaskResponse::~GetTaskResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskResponse) + SharedDtor(); +} + +void GetTaskResponse::SharedDtor() { + if (this != internal_default_instance()) delete resource_; +} + +void GetTaskResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetTaskResponse& GetTaskResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void GetTaskResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { + delete resource_; + } + resource_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetTaskResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.Resource resource = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Resource::_InternalParse; + object = msg->mutable_resource(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetTaskResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetTaskResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.Resource resource = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resource())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetTaskResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetTaskResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Resource resource = 1; + if (this->has_resource()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::resource(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskResponse) +} + +::google::protobuf::uint8* GetTaskResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Resource resource = 1; + if (this->has_resource()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::resource(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetTaskResponse) + return target; +} + +size_t GetTaskResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.Resource resource = 1; + if (this->has_resource()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resource_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetTaskResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskResponse) + MergeFrom(*source); + } +} + +void GetTaskResponse::MergeFrom(const GetTaskResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_resource()) { + mutable_resource()->::flyteidl::admin::Resource::MergeFrom(from.resource()); + } +} + +void GetTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetTaskResponse::CopyFrom(const GetTaskResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetTaskResponse::IsInitialized() const { + return true; +} + +void GetTaskResponse::Swap(GetTaskResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetTaskResponse::InternalSwap(GetTaskResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(resource_, other->resource_); +} + +::google::protobuf::Metadata GetTaskResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Resource::InitAsDefaultInstance() { + ::flyteidl::admin::_Resource_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +class Resource::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& outputs(const Resource* msg); +}; + +const ::flyteidl::core::LiteralMap& +Resource::HasBitSetters::outputs(const Resource* msg) { + return *msg->outputs_; +} +void Resource::clear_outputs() { + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Resource::kStateFieldNumber; +const int Resource::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Resource::Resource() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Resource) +} +Resource::Resource(const Resource& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_outputs()) { + outputs_ = new ::flyteidl::core::LiteralMap(*from.outputs_); + } else { + outputs_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Resource) +} + +void Resource::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); + ::memset(&outputs_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&outputs_)) + sizeof(state_)); +} + +Resource::~Resource() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Resource) + SharedDtor(); +} + +void Resource::SharedDtor() { + if (this != internal_default_instance()) delete outputs_; +} + +void Resource::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Resource& Resource::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void Resource::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Resource) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Resource::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.State state = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::State>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.LiteralMap outputs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Resource::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Resource) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.State state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::State >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Resource) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Resource) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Resource::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Resource) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.State state = 1; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::outputs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Resource) +} + +::google::protobuf::uint8* Resource::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Resource) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.State state = 1; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::outputs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Resource) + return target; +} + +size_t Resource::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Resource) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *outputs_); + } + + // .flyteidl.admin.State state = 1; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Resource::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Resource) + GOOGLE_DCHECK_NE(&from, this); + const Resource* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Resource) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Resource) + MergeFrom(*source); + } +} + +void Resource::MergeFrom(const Resource& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Resource) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.outputs()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void Resource::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Resource) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Resource::CopyFrom(const Resource& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Resource) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Resource::IsInitialized() const { + return true; +} + +void Resource::Swap(Resource* other) { + if (other == this) return; + InternalSwap(other); +} +void Resource::InternalSwap(Resource* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(outputs_, other->outputs_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata Resource::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DeleteTaskRequest::InitAsDefaultInstance() { +} +class DeleteTaskRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeleteTaskRequest::kTaskTypeFieldNumber; +const int DeleteTaskRequest::kResourceMetaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DeleteTaskRequest::DeleteTaskRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DeleteTaskRequest) +} +DeleteTaskRequest::DeleteTaskRequest(const DeleteTaskRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.resource_meta().size() > 0) { + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DeleteTaskRequest) +} + +void DeleteTaskRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +DeleteTaskRequest::~DeleteTaskRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DeleteTaskRequest) + SharedDtor(); +} + +void DeleteTaskRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DeleteTaskRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DeleteTaskRequest& DeleteTaskRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void DeleteTaskRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DeleteTaskRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DeleteTaskRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bytes resource_meta = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_resource_meta(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DeleteTaskRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DeleteTaskRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DeleteTaskRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // bytes resource_meta = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_resource_meta())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DeleteTaskRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DeleteTaskRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DeleteTaskRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DeleteTaskRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->resource_meta(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DeleteTaskRequest) +} + +::google::protobuf::uint8* DeleteTaskRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DeleteTaskRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->resource_meta(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DeleteTaskRequest) + return target; +} + +size_t DeleteTaskRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DeleteTaskRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // bytes resource_meta = 2; + if (this->resource_meta().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->resource_meta()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DeleteTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DeleteTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + const DeleteTaskRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DeleteTaskRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DeleteTaskRequest) + MergeFrom(*source); + } +} + +void DeleteTaskRequest::MergeFrom(const DeleteTaskRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DeleteTaskRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.resource_meta().size() > 0) { + + resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); + } +} + +void DeleteTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DeleteTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteTaskRequest::CopyFrom(const DeleteTaskRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DeleteTaskRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteTaskRequest::IsInitialized() const { + return true; +} + +void DeleteTaskRequest::Swap(DeleteTaskRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void DeleteTaskRequest::InternalSwap(DeleteTaskRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata DeleteTaskRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DeleteTaskResponse::InitAsDefaultInstance() { +} +class DeleteTaskResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DeleteTaskResponse::DeleteTaskResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DeleteTaskResponse) +} +DeleteTaskResponse::DeleteTaskResponse(const DeleteTaskResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DeleteTaskResponse) +} + +void DeleteTaskResponse::SharedCtor() { +} + +DeleteTaskResponse::~DeleteTaskResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DeleteTaskResponse) + SharedDtor(); +} + +void DeleteTaskResponse::SharedDtor() { +} + +void DeleteTaskResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DeleteTaskResponse& DeleteTaskResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); + return *internal_default_instance(); +} + + +void DeleteTaskResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DeleteTaskResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DeleteTaskResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DeleteTaskResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DeleteTaskResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DeleteTaskResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DeleteTaskResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DeleteTaskResponse) +} + +::google::protobuf::uint8* DeleteTaskResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DeleteTaskResponse) + return target; +} + +size_t DeleteTaskResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DeleteTaskResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DeleteTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DeleteTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + const DeleteTaskResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DeleteTaskResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DeleteTaskResponse) + MergeFrom(*source); + } +} + +void DeleteTaskResponse::MergeFrom(const DeleteTaskResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DeleteTaskResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void DeleteTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DeleteTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteTaskResponse::CopyFrom(const DeleteTaskResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DeleteTaskResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteTaskResponse::IsInitialized() const { + return true; +} + +void DeleteTaskResponse::Swap(DeleteTaskResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void DeleteTaskResponse::InternalSwap(DeleteTaskResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DeleteTaskResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateTaskResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetTaskResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Resource* Arena::CreateMaybeMessage< ::flyteidl::admin::Resource >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Resource >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h new file mode 100644 index 0000000000..5ee08079fc --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h @@ -0,0 +1,2146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/agent.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/identifier.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fagent_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[11] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fagent_2eproto(); +namespace flyteidl { +namespace admin { +class CreateTaskRequest; +class CreateTaskRequestDefaultTypeInternal; +extern CreateTaskRequestDefaultTypeInternal _CreateTaskRequest_default_instance_; +class CreateTaskResponse; +class CreateTaskResponseDefaultTypeInternal; +extern CreateTaskResponseDefaultTypeInternal _CreateTaskResponse_default_instance_; +class DeleteTaskRequest; +class DeleteTaskRequestDefaultTypeInternal; +extern DeleteTaskRequestDefaultTypeInternal _DeleteTaskRequest_default_instance_; +class DeleteTaskResponse; +class DeleteTaskResponseDefaultTypeInternal; +extern DeleteTaskResponseDefaultTypeInternal _DeleteTaskResponse_default_instance_; +class GetTaskRequest; +class GetTaskRequestDefaultTypeInternal; +extern GetTaskRequestDefaultTypeInternal _GetTaskRequest_default_instance_; +class GetTaskResponse; +class GetTaskResponseDefaultTypeInternal; +extern GetTaskResponseDefaultTypeInternal _GetTaskResponse_default_instance_; +class Resource; +class ResourceDefaultTypeInternal; +extern ResourceDefaultTypeInternal _Resource_default_instance_; +class TaskExecutionMetadata; +class TaskExecutionMetadataDefaultTypeInternal; +extern TaskExecutionMetadataDefaultTypeInternal _TaskExecutionMetadata_default_instance_; +class TaskExecutionMetadata_AnnotationsEntry_DoNotUse; +class TaskExecutionMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal; +extern TaskExecutionMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal _TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_; +class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse; +class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUseDefaultTypeInternal; +extern TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUseDefaultTypeInternal _TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_; +class TaskExecutionMetadata_LabelsEntry_DoNotUse; +class TaskExecutionMetadata_LabelsEntry_DoNotUseDefaultTypeInternal; +extern TaskExecutionMetadata_LabelsEntry_DoNotUseDefaultTypeInternal _TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::CreateTaskRequest>(Arena*); +template<> ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::CreateTaskResponse>(Arena*); +template<> ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::DeleteTaskRequest>(Arena*); +template<> ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::DeleteTaskResponse>(Arena*); +template<> ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskRequest>(Arena*); +template<> ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskResponse>(Arena*); +template<> ::flyteidl::admin::Resource* Arena::CreateMaybeMessage<::flyteidl::admin::Resource>(Arena*); +template<> ::flyteidl::admin::TaskExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata>(Arena*); +template<> ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse>(Arena*); +template<> ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4, + State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool State_IsValid(int value); +const State State_MIN = RETRYABLE_FAILURE; +const State State_MAX = SUCCEEDED; +const int State_ARRAYSIZE = State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* State_descriptor(); +inline const ::std::string& State_Name(State value) { + return ::google::protobuf::internal::NameOfEnum( + State_descriptor(), value); +} +inline bool State_Parse( + const ::std::string& name, State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + State_descriptor(), name, value); +} +// =================================================================== + +class TaskExecutionMetadata_LabelsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + TaskExecutionMetadata_LabelsEntry_DoNotUse(); + TaskExecutionMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const TaskExecutionMetadata_LabelsEntry_DoNotUse& other); + static const TaskExecutionMetadata_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class TaskExecutionMetadata_AnnotationsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + TaskExecutionMetadata_AnnotationsEntry_DoNotUse(); + TaskExecutionMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const TaskExecutionMetadata_AnnotationsEntry_DoNotUse& other); + static const TaskExecutionMetadata_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(); + TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse& other); + static const TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class TaskExecutionMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionMetadata) */ { + public: + TaskExecutionMetadata(); + virtual ~TaskExecutionMetadata(); + + TaskExecutionMetadata(const TaskExecutionMetadata& from); + + inline TaskExecutionMetadata& operator=(const TaskExecutionMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionMetadata(TaskExecutionMetadata&& from) noexcept + : TaskExecutionMetadata() { + *this = ::std::move(from); + } + + inline TaskExecutionMetadata& operator=(TaskExecutionMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionMetadata* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TaskExecutionMetadata* other); + friend void swap(TaskExecutionMetadata& a, TaskExecutionMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionMetadata& from); + void MergeFrom(const TaskExecutionMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map labels = 3; + int labels_size() const; + void clear_labels(); + static const int kLabelsFieldNumber = 3; + const ::google::protobuf::Map< ::std::string, ::std::string >& + labels() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_labels(); + + // map annotations = 4; + int annotations_size() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 4; + const ::google::protobuf::Map< ::std::string, ::std::string >& + annotations() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_annotations(); + + // map environment_variables = 6; + int environment_variables_size() const; + void clear_environment_variables(); + static const int kEnvironmentVariablesFieldNumber = 6; + const ::google::protobuf::Map< ::std::string, ::std::string >& + environment_variables() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_environment_variables(); + + // string namespace = 2; + void clear_namespace_(); + static const int kNamespaceFieldNumber = 2; + const ::std::string& namespace_() const; + void set_namespace_(const ::std::string& value); + #if LANG_CXX11 + void set_namespace_(::std::string&& value); + #endif + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + ::std::string* mutable_namespace_(); + ::std::string* release_namespace_(); + void set_allocated_namespace_(::std::string* namespace_); + + // string k8s_service_account = 5; + void clear_k8s_service_account(); + static const int kK8SServiceAccountFieldNumber = 5; + const ::std::string& k8s_service_account() const; + void set_k8s_service_account(const ::std::string& value); + #if LANG_CXX11 + void set_k8s_service_account(::std::string&& value); + #endif + void set_k8s_service_account(const char* value); + void set_k8s_service_account(const char* value, size_t size); + ::std::string* mutable_k8s_service_account(); + ::std::string* release_k8s_service_account(); + void set_allocated_k8s_service_account(::std::string* k8s_service_account); + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + bool has_task_execution_id() const; + void clear_task_execution_id(); + static const int kTaskExecutionIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_task_execution_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_task_execution_id(); + void set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + TaskExecutionMetadata_LabelsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > labels_; + ::google::protobuf::internal::MapField< + TaskExecutionMetadata_AnnotationsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > annotations_; + ::google::protobuf::internal::MapField< + TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > environment_variables_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + ::google::protobuf::internal::ArenaStringPtr k8s_service_account_; + ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateTaskRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateTaskRequest) */ { + public: + CreateTaskRequest(); + virtual ~CreateTaskRequest(); + + CreateTaskRequest(const CreateTaskRequest& from); + + inline CreateTaskRequest& operator=(const CreateTaskRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateTaskRequest(CreateTaskRequest&& from) noexcept + : CreateTaskRequest() { + *this = ::std::move(from); + } + + inline CreateTaskRequest& operator=(CreateTaskRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateTaskRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateTaskRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateTaskRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(CreateTaskRequest* other); + friend void swap(CreateTaskRequest& a, CreateTaskRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateTaskRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateTaskRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateTaskRequest& from); + void MergeFrom(const CreateTaskRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateTaskRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string output_prefix = 3; + void clear_output_prefix(); + static const int kOutputPrefixFieldNumber = 3; + const ::std::string& output_prefix() const; + void set_output_prefix(const ::std::string& value); + #if LANG_CXX11 + void set_output_prefix(::std::string&& value); + #endif + void set_output_prefix(const char* value); + void set_output_prefix(const char* value, size_t size); + ::std::string* mutable_output_prefix(); + ::std::string* release_output_prefix(); + void set_allocated_output_prefix(::std::string* output_prefix); + + // .flyteidl.core.LiteralMap inputs = 1; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::flyteidl::core::LiteralMap& inputs() const; + ::flyteidl::core::LiteralMap* release_inputs(); + ::flyteidl::core::LiteralMap* mutable_inputs(); + void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); + + // .flyteidl.core.TaskTemplate template = 2; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 2; + const ::flyteidl::core::TaskTemplate& template_() const; + ::flyteidl::core::TaskTemplate* release_template_(); + ::flyteidl::core::TaskTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); + + // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + bool has_task_execution_metadata() const; + void clear_task_execution_metadata(); + static const int kTaskExecutionMetadataFieldNumber = 4; + const ::flyteidl::admin::TaskExecutionMetadata& task_execution_metadata() const; + ::flyteidl::admin::TaskExecutionMetadata* release_task_execution_metadata(); + ::flyteidl::admin::TaskExecutionMetadata* mutable_task_execution_metadata(); + void set_allocated_task_execution_metadata(::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr output_prefix_; + ::flyteidl::core::LiteralMap* inputs_; + ::flyteidl::core::TaskTemplate* template__; + ::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateTaskResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateTaskResponse) */ { + public: + CreateTaskResponse(); + virtual ~CreateTaskResponse(); + + CreateTaskResponse(const CreateTaskResponse& from); + + inline CreateTaskResponse& operator=(const CreateTaskResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateTaskResponse(CreateTaskResponse&& from) noexcept + : CreateTaskResponse() { + *this = ::std::move(from); + } + + inline CreateTaskResponse& operator=(CreateTaskResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateTaskResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateTaskResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateTaskResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(CreateTaskResponse* other); + friend void swap(CreateTaskResponse& a, CreateTaskResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateTaskResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateTaskResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateTaskResponse& from); + void MergeFrom(const CreateTaskResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateTaskResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bytes resource_meta = 1; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 1; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTaskRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskRequest) */ { + public: + GetTaskRequest(); + virtual ~GetTaskRequest(); + + GetTaskRequest(const GetTaskRequest& from); + + inline GetTaskRequest& operator=(const GetTaskRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskRequest(GetTaskRequest&& from) noexcept + : GetTaskRequest() { + *this = ::std::move(from); + } + + inline GetTaskRequest& operator=(GetTaskRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskRequest* internal_default_instance() { + return reinterpret_cast( + &_GetTaskRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(GetTaskRequest* other); + friend void swap(GetTaskRequest& a, GetTaskRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskRequest& from); + void MergeFrom(const GetTaskRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // bytes resource_meta = 2; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 2; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class GetTaskResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskResponse) */ { + public: + GetTaskResponse(); + virtual ~GetTaskResponse(); + + GetTaskResponse(const GetTaskResponse& from); + + inline GetTaskResponse& operator=(const GetTaskResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetTaskResponse(GetTaskResponse&& from) noexcept + : GetTaskResponse() { + *this = ::std::move(from); + } + + inline GetTaskResponse& operator=(GetTaskResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetTaskResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetTaskResponse* internal_default_instance() { + return reinterpret_cast( + &_GetTaskResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(GetTaskResponse* other); + friend void swap(GetTaskResponse& a, GetTaskResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetTaskResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetTaskResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetTaskResponse& from); + void MergeFrom(const GetTaskResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetTaskResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.Resource resource = 1; + bool has_resource() const; + void clear_resource(); + static const int kResourceFieldNumber = 1; + const ::flyteidl::admin::Resource& resource() const; + ::flyteidl::admin::Resource* release_resource(); + ::flyteidl::admin::Resource* mutable_resource(); + void set_allocated_resource(::flyteidl::admin::Resource* resource); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::Resource* resource_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class Resource final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Resource) */ { + public: + Resource(); + virtual ~Resource(); + + Resource(const Resource& from); + + inline Resource& operator=(const Resource& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Resource(Resource&& from) noexcept + : Resource() { + *this = ::std::move(from); + } + + inline Resource& operator=(Resource&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Resource& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Resource* internal_default_instance() { + return reinterpret_cast( + &_Resource_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(Resource* other); + friend void swap(Resource& a, Resource& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Resource* New() const final { + return CreateMaybeMessage(nullptr); + } + + Resource* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Resource& from); + void MergeFrom(const Resource& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Resource* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.LiteralMap outputs = 2; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::flyteidl::core::LiteralMap& outputs() const; + ::flyteidl::core::LiteralMap* release_outputs(); + ::flyteidl::core::LiteralMap* mutable_outputs(); + void set_allocated_outputs(::flyteidl::core::LiteralMap* outputs); + + // .flyteidl.admin.State state = 1; + void clear_state(); + static const int kStateFieldNumber = 1; + ::flyteidl::admin::State state() const; + void set_state(::flyteidl::admin::State value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Resource) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::LiteralMap* outputs_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteTaskRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DeleteTaskRequest) */ { + public: + DeleteTaskRequest(); + virtual ~DeleteTaskRequest(); + + DeleteTaskRequest(const DeleteTaskRequest& from); + + inline DeleteTaskRequest& operator=(const DeleteTaskRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DeleteTaskRequest(DeleteTaskRequest&& from) noexcept + : DeleteTaskRequest() { + *this = ::std::move(from); + } + + inline DeleteTaskRequest& operator=(DeleteTaskRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DeleteTaskRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DeleteTaskRequest* internal_default_instance() { + return reinterpret_cast( + &_DeleteTaskRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(DeleteTaskRequest* other); + friend void swap(DeleteTaskRequest& a, DeleteTaskRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DeleteTaskRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + DeleteTaskRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DeleteTaskRequest& from); + void MergeFrom(const DeleteTaskRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteTaskRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // bytes resource_meta = 2; + void clear_resource_meta(); + static const int kResourceMetaFieldNumber = 2; + const ::std::string& resource_meta() const; + void set_resource_meta(const ::std::string& value); + #if LANG_CXX11 + void set_resource_meta(::std::string&& value); + #endif + void set_resource_meta(const char* value); + void set_resource_meta(const void* value, size_t size); + ::std::string* mutable_resource_meta(); + ::std::string* release_resource_meta(); + void set_allocated_resource_meta(::std::string* resource_meta); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr resource_meta_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteTaskResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DeleteTaskResponse) */ { + public: + DeleteTaskResponse(); + virtual ~DeleteTaskResponse(); + + DeleteTaskResponse(const DeleteTaskResponse& from); + + inline DeleteTaskResponse& operator=(const DeleteTaskResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DeleteTaskResponse(DeleteTaskResponse&& from) noexcept + : DeleteTaskResponse() { + *this = ::std::move(from); + } + + inline DeleteTaskResponse& operator=(DeleteTaskResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DeleteTaskResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DeleteTaskResponse* internal_default_instance() { + return reinterpret_cast( + &_DeleteTaskResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(DeleteTaskResponse* other); + friend void swap(DeleteTaskResponse& a, DeleteTaskResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DeleteTaskResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + DeleteTaskResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DeleteTaskResponse& from); + void MergeFrom(const DeleteTaskResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeleteTaskResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// TaskExecutionMetadata + +// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; +inline bool TaskExecutionMetadata::has_task_execution_id() const { + return this != internal_default_instance() && task_execution_id_ != nullptr; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionMetadata::task_execution_id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.task_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::release_task_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.task_execution_id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; + task_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::mutable_task_execution_id() { + + if (task_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + task_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.task_execution_id) + return task_execution_id_; +} +inline void TaskExecutionMetadata::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); + } + if (task_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_execution_id, submessage_arena); + } + + } else { + + } + task_execution_id_ = task_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.task_execution_id) +} + +// string namespace = 2; +inline void TaskExecutionMetadata::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionMetadata::namespace_() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.namespace) + return namespace__.GetNoArena(); +} +inline void TaskExecutionMetadata::set_namespace_(const ::std::string& value) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.namespace) +} +#if LANG_CXX11 +inline void TaskExecutionMetadata::set_namespace_(::std::string&& value) { + + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.namespace) +} +#endif +inline void TaskExecutionMetadata::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.namespace) +} +inline void TaskExecutionMetadata::set_namespace_(const char* value, size_t size) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.namespace) +} +inline ::std::string* TaskExecutionMetadata::mutable_namespace_() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionMetadata::release_namespace_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.namespace) + + return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionMetadata::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.namespace) +} + +// map labels = 3; +inline int TaskExecutionMetadata::labels_size() const { + return labels_.size(); +} +inline void TaskExecutionMetadata::clear_labels() { + labels_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskExecutionMetadata::labels() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.labels) + return labels_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskExecutionMetadata::mutable_labels() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.labels) + return labels_.MutableMap(); +} + +// map annotations = 4; +inline int TaskExecutionMetadata::annotations_size() const { + return annotations_.size(); +} +inline void TaskExecutionMetadata::clear_annotations() { + annotations_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskExecutionMetadata::annotations() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.annotations) + return annotations_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskExecutionMetadata::mutable_annotations() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.annotations) + return annotations_.MutableMap(); +} + +// string k8s_service_account = 5; +inline void TaskExecutionMetadata::clear_k8s_service_account() { + k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionMetadata::k8s_service_account() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + return k8s_service_account_.GetNoArena(); +} +inline void TaskExecutionMetadata::set_k8s_service_account(const ::std::string& value) { + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +#if LANG_CXX11 +inline void TaskExecutionMetadata::set_k8s_service_account(::std::string&& value) { + + k8s_service_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +#endif +inline void TaskExecutionMetadata::set_k8s_service_account(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +inline void TaskExecutionMetadata::set_k8s_service_account(const char* value, size_t size) { + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} +inline ::std::string* TaskExecutionMetadata::mutable_k8s_service_account() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + return k8s_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionMetadata::release_k8s_service_account() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) + + return k8s_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionMetadata::set_allocated_k8s_service_account(::std::string* k8s_service_account) { + if (k8s_service_account != nullptr) { + + } else { + + } + k8s_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), k8s_service_account); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) +} + +// map environment_variables = 6; +inline int TaskExecutionMetadata::environment_variables_size() const { + return environment_variables_.size(); +} +inline void TaskExecutionMetadata::clear_environment_variables() { + environment_variables_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskExecutionMetadata::environment_variables() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) + return environment_variables_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskExecutionMetadata::mutable_environment_variables() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) + return environment_variables_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// CreateTaskRequest + +// .flyteidl.core.LiteralMap inputs = 1; +inline bool CreateTaskRequest::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& CreateTaskRequest::inputs() const { + const ::flyteidl::core::LiteralMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* CreateTaskRequest::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.inputs) + + ::flyteidl::core::LiteralMap* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* CreateTaskRequest::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.inputs) + return inputs_; +} +inline void CreateTaskRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.inputs) +} + +// .flyteidl.core.TaskTemplate template = 2; +inline bool CreateTaskRequest::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::TaskTemplate& CreateTaskRequest::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.template) + return template__; +} +inline void CreateTaskRequest::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.template) +} + +// string output_prefix = 3; +inline void CreateTaskRequest::clear_output_prefix() { + output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateTaskRequest::output_prefix() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.output_prefix) + return output_prefix_.GetNoArena(); +} +inline void CreateTaskRequest::set_output_prefix(const ::std::string& value) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskRequest.output_prefix) +} +#if LANG_CXX11 +inline void CreateTaskRequest::set_output_prefix(::std::string&& value) { + + output_prefix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskRequest.output_prefix) +} +#endif +inline void CreateTaskRequest::set_output_prefix(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskRequest.output_prefix) +} +inline void CreateTaskRequest::set_output_prefix(const char* value, size_t size) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskRequest.output_prefix) +} +inline ::std::string* CreateTaskRequest::mutable_output_prefix() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.output_prefix) + return output_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateTaskRequest::release_output_prefix() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.output_prefix) + + return output_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateTaskRequest::set_allocated_output_prefix(::std::string* output_prefix) { + if (output_prefix != nullptr) { + + } else { + + } + output_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_prefix); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.output_prefix) +} + +// .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; +inline bool CreateTaskRequest::has_task_execution_metadata() const { + return this != internal_default_instance() && task_execution_metadata_ != nullptr; +} +inline void CreateTaskRequest::clear_task_execution_metadata() { + if (GetArenaNoVirtual() == nullptr && task_execution_metadata_ != nullptr) { + delete task_execution_metadata_; + } + task_execution_metadata_ = nullptr; +} +inline const ::flyteidl::admin::TaskExecutionMetadata& CreateTaskRequest::task_execution_metadata() const { + const ::flyteidl::admin::TaskExecutionMetadata* p = task_execution_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.task_execution_metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskExecutionMetadata_default_instance_); +} +inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::release_task_execution_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.task_execution_metadata) + + ::flyteidl::admin::TaskExecutionMetadata* temp = task_execution_metadata_; + task_execution_metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::mutable_task_execution_metadata() { + + if (task_execution_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata>(GetArenaNoVirtual()); + task_execution_metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.task_execution_metadata) + return task_execution_metadata_; +} +inline void CreateTaskRequest::set_allocated_task_execution_metadata(::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete task_execution_metadata_; + } + if (task_execution_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_execution_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_execution_metadata, submessage_arena); + } + + } else { + + } + task_execution_metadata_ = task_execution_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.task_execution_metadata) +} + +// ------------------------------------------------------------------- + +// CreateTaskResponse + +// bytes resource_meta = 1; +inline void CreateTaskResponse::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateTaskResponse::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void CreateTaskResponse::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) +} +#if LANG_CXX11 +inline void CreateTaskResponse::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskResponse.resource_meta) +} +#endif +inline void CreateTaskResponse::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskResponse.resource_meta) +} +inline void CreateTaskResponse::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskResponse.resource_meta) +} +inline ::std::string* CreateTaskResponse::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateTaskResponse::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource_meta) + + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateTaskResponse::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { + + } else { + + } + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskResponse.resource_meta) +} + +// ------------------------------------------------------------------- + +// GetTaskRequest + +// string task_type = 1; +inline void GetTaskRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetTaskRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.task_type) + return task_type_.GetNoArena(); +} +inline void GetTaskRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.task_type) +} +#if LANG_CXX11 +inline void GetTaskRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.task_type) +} +#endif +inline void GetTaskRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.task_type) +} +inline void GetTaskRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.task_type) +} +inline ::std::string* GetTaskRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetTaskRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetTaskRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.task_type) +} + +// bytes resource_meta = 2; +inline void GetTaskRequest::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetTaskRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void GetTaskRequest::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.resource_meta) +} +#if LANG_CXX11 +inline void GetTaskRequest::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.resource_meta) +} +#endif +inline void GetTaskRequest::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.resource_meta) +} +inline void GetTaskRequest::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.resource_meta) +} +inline ::std::string* GetTaskRequest::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetTaskRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.resource_meta) + + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { + + } else { + + } + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.resource_meta) +} + +// ------------------------------------------------------------------- + +// GetTaskResponse + +// .flyteidl.admin.Resource resource = 1; +inline bool GetTaskResponse::has_resource() const { + return this != internal_default_instance() && resource_ != nullptr; +} +inline void GetTaskResponse::clear_resource() { + if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { + delete resource_; + } + resource_ = nullptr; +} +inline const ::flyteidl::admin::Resource& GetTaskResponse::resource() const { + const ::flyteidl::admin::Resource* p = resource_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.resource) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Resource_default_instance_); +} +inline ::flyteidl::admin::Resource* GetTaskResponse::release_resource() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskResponse.resource) + + ::flyteidl::admin::Resource* temp = resource_; + resource_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Resource* GetTaskResponse::mutable_resource() { + + if (resource_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Resource>(GetArenaNoVirtual()); + resource_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.resource) + return resource_; +} +inline void GetTaskResponse::set_allocated_resource(::flyteidl::admin::Resource* resource) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete resource_; + } + if (resource) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resource = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resource, submessage_arena); + } + + } else { + + } + resource_ = resource; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskResponse.resource) +} + +// ------------------------------------------------------------------- + +// Resource + +// .flyteidl.admin.State state = 1; +inline void Resource::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::State Resource::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.state) + return static_cast< ::flyteidl::admin::State >(state_); +} +inline void Resource::set_state(::flyteidl::admin::State value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.state) +} + +// .flyteidl.core.LiteralMap outputs = 2; +inline bool Resource::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& Resource::outputs() const { + const ::flyteidl::core::LiteralMap* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* Resource::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.outputs) + + ::flyteidl::core::LiteralMap* temp = outputs_; + outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* Resource::mutable_outputs() { + + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.outputs) + return outputs_; +} +inline void Resource::set_allocated_outputs(::flyteidl::core::LiteralMap* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.outputs) +} + +// ------------------------------------------------------------------- + +// DeleteTaskRequest + +// string task_type = 1; +inline void DeleteTaskRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteTaskRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.task_type) + return task_type_.GetNoArena(); +} +inline void DeleteTaskRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.task_type) +} +#if LANG_CXX11 +inline void DeleteTaskRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.task_type) +} +#endif +inline void DeleteTaskRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.task_type) +} +inline void DeleteTaskRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.task_type) +} +inline ::std::string* DeleteTaskRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteTaskRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteTaskRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.task_type) +} + +// bytes resource_meta = 2; +inline void DeleteTaskRequest::clear_resource_meta() { + resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DeleteTaskRequest::resource_meta() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.resource_meta) + return resource_meta_.GetNoArena(); +} +inline void DeleteTaskRequest::set_resource_meta(const ::std::string& value) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +#if LANG_CXX11 +inline void DeleteTaskRequest::set_resource_meta(::std::string&& value) { + + resource_meta_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +#endif +inline void DeleteTaskRequest::set_resource_meta(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +inline void DeleteTaskRequest::set_resource_meta(const void* value, size_t size) { + + resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.resource_meta) +} +inline ::std::string* DeleteTaskRequest::mutable_resource_meta() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.resource_meta) + return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DeleteTaskRequest::release_resource_meta() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.resource_meta) + + return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DeleteTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { + if (resource_meta != nullptr) { + + } else { + + } + resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.resource_meta) +} + +// ------------------------------------------------------------------- + +// DeleteTaskResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::State> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::State>() { + return ::flyteidl::admin::State_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.cc new file mode 100644 index 0000000000..a2eafa3ca3 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/cluster_assignment.proto + +#include "flyteidl/admin/cluster_assignment.pb.h" +#include "flyteidl/admin/cluster_assignment.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.h new file mode 100644 index 0000000000..1262172673 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/cluster_assignment.proto +#ifndef GRPC_flyteidl_2fadmin_2fcluster_5fassignment_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fcluster_5fassignment_2eproto__INCLUDED + +#include "flyteidl/admin/cluster_assignment.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fcluster_5fassignment_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.cc new file mode 100644 index 0000000000..84784fabd5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.cc @@ -0,0 +1,405 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/cluster_assignment.proto + +#include "flyteidl/admin/cluster_assignment.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace admin { +class ClusterAssignmentDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ClusterAssignment_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ClusterAssignment_default_instance_; + new (ptr) ::flyteidl::admin::ClusterAssignment(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ClusterAssignment::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fcluster_5fassignment_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fcluster_5fassignment_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterAssignment, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterAssignment, cluster_pool_name_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::ClusterAssignment)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_ClusterAssignment_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, "flyteidl/admin/cluster_assignment.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, 1, file_level_enum_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fcluster_5fassignment_2eproto[] = + "\n\'flyteidl/admin/cluster_assignment.prot" + "o\022\016flyteidl.admin\":\n\021ClusterAssignment\022\031" + "\n\021cluster_pool_name\030\003 \001(\tJ\004\010\001\020\002J\004\010\002\020\003B7Z" + "5github.com/flyteorg/flyteidl/gen/pb-go/" + "flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, + "flyteidl/admin/cluster_assignment.proto", &assign_descriptors_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, 182, +}; + +void AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void ClusterAssignment::InitAsDefaultInstance() { +} +class ClusterAssignment::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ClusterAssignment::kClusterPoolNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ClusterAssignment::ClusterAssignment() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ClusterAssignment) +} +ClusterAssignment::ClusterAssignment(const ClusterAssignment& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cluster_pool_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cluster_pool_name().size() > 0) { + cluster_pool_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_pool_name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ClusterAssignment) +} + +void ClusterAssignment::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base); + cluster_pool_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ClusterAssignment::~ClusterAssignment() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ClusterAssignment) + SharedDtor(); +} + +void ClusterAssignment::SharedDtor() { + cluster_pool_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ClusterAssignment::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ClusterAssignment& ClusterAssignment::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base); + return *internal_default_instance(); +} + + +void ClusterAssignment::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ClusterAssignment) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cluster_pool_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ClusterAssignment::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string cluster_pool_name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ClusterAssignment.cluster_pool_name"); + object = msg->mutable_cluster_pool_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ClusterAssignment::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ClusterAssignment) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string cluster_pool_name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cluster_pool_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_pool_name().data(), static_cast(this->cluster_pool_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ClusterAssignment.cluster_pool_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ClusterAssignment) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ClusterAssignment) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ClusterAssignment::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ClusterAssignment) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster_pool_name = 3; + if (this->cluster_pool_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_pool_name().data(), static_cast(this->cluster_pool_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ClusterAssignment.cluster_pool_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->cluster_pool_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ClusterAssignment) +} + +::google::protobuf::uint8* ClusterAssignment::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ClusterAssignment) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster_pool_name = 3; + if (this->cluster_pool_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_pool_name().data(), static_cast(this->cluster_pool_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ClusterAssignment.cluster_pool_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->cluster_pool_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ClusterAssignment) + return target; +} + +size_t ClusterAssignment::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ClusterAssignment) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string cluster_pool_name = 3; + if (this->cluster_pool_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cluster_pool_name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ClusterAssignment::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ClusterAssignment) + GOOGLE_DCHECK_NE(&from, this); + const ClusterAssignment* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ClusterAssignment) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ClusterAssignment) + MergeFrom(*source); + } +} + +void ClusterAssignment::MergeFrom(const ClusterAssignment& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ClusterAssignment) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cluster_pool_name().size() > 0) { + + cluster_pool_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_pool_name_); + } +} + +void ClusterAssignment::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ClusterAssignment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ClusterAssignment::CopyFrom(const ClusterAssignment& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ClusterAssignment) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClusterAssignment::IsInitialized() const { + return true; +} + +void ClusterAssignment::Swap(ClusterAssignment* other) { + if (other == this) return; + InternalSwap(other); +} +void ClusterAssignment::InternalSwap(ClusterAssignment* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + cluster_pool_name_.Swap(&other->cluster_pool_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ClusterAssignment::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcluster_5fassignment_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ClusterAssignment* Arena::CreateMaybeMessage< ::flyteidl::admin::ClusterAssignment >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ClusterAssignment >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.h new file mode 100644 index 0000000000..79c7743714 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.h @@ -0,0 +1,262 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/cluster_assignment.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcluster_5fassignment_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcluster_5fassignment_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcluster_5fassignment_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto(); +namespace flyteidl { +namespace admin { +class ClusterAssignment; +class ClusterAssignmentDefaultTypeInternal; +extern ClusterAssignmentDefaultTypeInternal _ClusterAssignment_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::ClusterAssignment* Arena::CreateMaybeMessage<::flyteidl::admin::ClusterAssignment>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class ClusterAssignment final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ClusterAssignment) */ { + public: + ClusterAssignment(); + virtual ~ClusterAssignment(); + + ClusterAssignment(const ClusterAssignment& from); + + inline ClusterAssignment& operator=(const ClusterAssignment& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ClusterAssignment(ClusterAssignment&& from) noexcept + : ClusterAssignment() { + *this = ::std::move(from); + } + + inline ClusterAssignment& operator=(ClusterAssignment&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ClusterAssignment& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ClusterAssignment* internal_default_instance() { + return reinterpret_cast( + &_ClusterAssignment_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ClusterAssignment* other); + friend void swap(ClusterAssignment& a, ClusterAssignment& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ClusterAssignment* New() const final { + return CreateMaybeMessage(nullptr); + } + + ClusterAssignment* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ClusterAssignment& from); + void MergeFrom(const ClusterAssignment& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClusterAssignment* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string cluster_pool_name = 3; + void clear_cluster_pool_name(); + static const int kClusterPoolNameFieldNumber = 3; + const ::std::string& cluster_pool_name() const; + void set_cluster_pool_name(const ::std::string& value); + #if LANG_CXX11 + void set_cluster_pool_name(::std::string&& value); + #endif + void set_cluster_pool_name(const char* value); + void set_cluster_pool_name(const char* value, size_t size); + ::std::string* mutable_cluster_pool_name(); + ::std::string* release_cluster_pool_name(); + void set_allocated_cluster_pool_name(::std::string* cluster_pool_name); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterAssignment) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cluster_pool_name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ClusterAssignment + +// string cluster_pool_name = 3; +inline void ClusterAssignment::clear_cluster_pool_name() { + cluster_pool_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ClusterAssignment::cluster_pool_name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ClusterAssignment.cluster_pool_name) + return cluster_pool_name_.GetNoArena(); +} +inline void ClusterAssignment::set_cluster_pool_name(const ::std::string& value) { + + cluster_pool_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ClusterAssignment.cluster_pool_name) +} +#if LANG_CXX11 +inline void ClusterAssignment::set_cluster_pool_name(::std::string&& value) { + + cluster_pool_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ClusterAssignment.cluster_pool_name) +} +#endif +inline void ClusterAssignment::set_cluster_pool_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + cluster_pool_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ClusterAssignment.cluster_pool_name) +} +inline void ClusterAssignment::set_cluster_pool_name(const char* value, size_t size) { + + cluster_pool_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ClusterAssignment.cluster_pool_name) +} +inline ::std::string* ClusterAssignment::mutable_cluster_pool_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ClusterAssignment.cluster_pool_name) + return cluster_pool_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ClusterAssignment::release_cluster_pool_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ClusterAssignment.cluster_pool_name) + + return cluster_pool_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ClusterAssignment::set_allocated_cluster_pool_name(::std::string* cluster_pool_name) { + if (cluster_pool_name != nullptr) { + + } else { + + } + cluster_pool_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster_pool_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ClusterAssignment.cluster_pool_name) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcluster_5fassignment_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc new file mode 100644 index 0000000000..81425fdda9 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/common.proto + +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/admin/common.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h new file mode 100644 index 0000000000..b6d8d3677c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/common.proto +#ifndef GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED + +#include "flyteidl/admin/common.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc new file mode 100644 index 0000000000..2dd2d2376d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc @@ -0,0 +1,10418 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +#include "flyteidl/admin/common.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto; +namespace flyteidl { +namespace admin { +class NamedEntityIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityIdentifier_default_instance_; +class NamedEntityMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityMetadata_default_instance_; +class NamedEntityDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntity_default_instance_; +class SortDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Sort_default_instance_; +class NamedEntityIdentifierListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityIdentifierListRequest_default_instance_; +class NamedEntityListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityListRequest_default_instance_; +class NamedEntityIdentifierListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityIdentifierList_default_instance_; +class NamedEntityListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityList_default_instance_; +class NamedEntityGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityGetRequest_default_instance_; +class NamedEntityUpdateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityUpdateRequest_default_instance_; +class NamedEntityUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NamedEntityUpdateResponse_default_instance_; +class ObjectGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ObjectGetRequest_default_instance_; +class ResourceListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ResourceListRequest_default_instance_; +class EmailNotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _EmailNotification_default_instance_; +class PagerDutyNotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PagerDutyNotification_default_instance_; +class SlackNotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SlackNotification_default_instance_; +class NotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::admin::EmailNotification* email_; + const ::flyteidl::admin::PagerDutyNotification* pager_duty_; + const ::flyteidl::admin::SlackNotification* slack_; +} _Notification_default_instance_; +class UrlBlobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _UrlBlob_default_instance_; +class Labels_ValuesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Labels_ValuesEntry_DoNotUse_default_instance_; +class LabelsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Labels_default_instance_; +class Annotations_ValuesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Annotations_ValuesEntry_DoNotUse_default_instance_; +class AnnotationsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Annotations_default_instance_; +class EnvsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Envs_default_instance_; +class AuthRoleDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AuthRole_default_instance_; +class RawOutputDataConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _RawOutputDataConfig_default_instance_; +class FlyteURLsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _FlyteURLs_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsNamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityIdentifier_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityIdentifier::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsNamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityMetadata_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsNamedEntity_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntity_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntity(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntity::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNamedEntity_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsSort_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Sort_default_instance_; + new (ptr) ::flyteidl::admin::Sort(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Sort::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSort_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsNamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityIdentifierListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityIdentifierListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityListRequest_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityIdentifierList_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityIdentifierList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityIdentifierList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNamedEntityList_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityList_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityList_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityUpdateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityUpdateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NamedEntityUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityUpdateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ObjectGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::ObjectGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ObjectGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ResourceListRequest_default_instance_; + new (ptr) ::flyteidl::admin::ResourceListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ResourceListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsEmailNotification_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_EmailNotification_default_instance_; + new (ptr) ::flyteidl::admin::EmailNotification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EmailNotification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEmailNotification_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsPagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_PagerDutyNotification_default_instance_; + new (ptr) ::flyteidl::admin::PagerDutyNotification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::PagerDutyNotification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsSlackNotification_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SlackNotification_default_instance_; + new (ptr) ::flyteidl::admin::SlackNotification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SlackNotification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSlackNotification_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsNotification_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Notification_default_instance_; + new (ptr) ::flyteidl::admin::Notification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Notification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsNotification_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsUrlBlob_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_UrlBlob_default_instance_; + new (ptr) ::flyteidl::admin::UrlBlob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::UrlBlob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUrlBlob_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsLabels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Labels_ValuesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::Labels_ValuesEntry_DoNotUse(); + } + ::flyteidl::admin::Labels_ValuesEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLabels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsLabels_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Labels_default_instance_; + new (ptr) ::flyteidl::admin::Labels(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Labels::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLabels_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsAnnotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Annotations_ValuesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse(); + } + ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAnnotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsAnnotations_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Annotations_default_instance_; + new (ptr) ::flyteidl::admin::Annotations(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Annotations::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAnnotations_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsEnvs_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Envs_default_instance_; + new (ptr) ::flyteidl::admin::Envs(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Envs::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEnvs_flyteidl_2fadmin_2fcommon_2eproto}, { + &scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsAuthRole_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_AuthRole_default_instance_; + new (ptr) ::flyteidl::admin::AuthRole(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::AuthRole::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAuthRole_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsRawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_RawOutputDataConfig_default_instance_; + new (ptr) ::flyteidl::admin::RawOutputDataConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::RawOutputDataConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +static void InitDefaultsFlyteURLs_flyteidl_2fadmin_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_FlyteURLs_default_instance_; + new (ptr) ::flyteidl::admin::FlyteURLs(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::FlyteURLs::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFlyteURLs_flyteidl_2fadmin_2fcommon_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fcommon_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[26]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fcommon_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityMetadata, description_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityMetadata, state_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, resource_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Sort, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Sort, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Sort, direction_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, sort_by_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, filters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, resource_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, sort_by_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, filters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, entities_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityList, entities_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityGetRequest, resource_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityGetRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, resource_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ObjectGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ObjectGetRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, sort_by_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailNotification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailNotification, recipients_email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PagerDutyNotification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PagerDutyNotification, recipients_email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SlackNotification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SlackNotification, recipients_email_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, phases_), + offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, email_), + offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, pager_duty_), + offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, slack_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::UrlBlob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::UrlBlob, url_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::UrlBlob, bytes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels, values_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Envs, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Envs, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AuthRole, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AuthRole, assumable_iam_role_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AuthRole, kubernetes_service_account_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::RawOutputDataConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::RawOutputDataConfig, output_location_prefix_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, deck_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::NamedEntityIdentifier)}, + { 8, -1, sizeof(::flyteidl::admin::NamedEntityMetadata)}, + { 15, -1, sizeof(::flyteidl::admin::NamedEntity)}, + { 23, -1, sizeof(::flyteidl::admin::Sort)}, + { 30, -1, sizeof(::flyteidl::admin::NamedEntityIdentifierListRequest)}, + { 41, -1, sizeof(::flyteidl::admin::NamedEntityListRequest)}, + { 53, -1, sizeof(::flyteidl::admin::NamedEntityIdentifierList)}, + { 60, -1, sizeof(::flyteidl::admin::NamedEntityList)}, + { 67, -1, sizeof(::flyteidl::admin::NamedEntityGetRequest)}, + { 74, -1, sizeof(::flyteidl::admin::NamedEntityUpdateRequest)}, + { 82, -1, sizeof(::flyteidl::admin::NamedEntityUpdateResponse)}, + { 87, -1, sizeof(::flyteidl::admin::ObjectGetRequest)}, + { 93, -1, sizeof(::flyteidl::admin::ResourceListRequest)}, + { 103, -1, sizeof(::flyteidl::admin::EmailNotification)}, + { 109, -1, sizeof(::flyteidl::admin::PagerDutyNotification)}, + { 115, -1, sizeof(::flyteidl::admin::SlackNotification)}, + { 121, -1, sizeof(::flyteidl::admin::Notification)}, + { 131, -1, sizeof(::flyteidl::admin::UrlBlob)}, + { 138, 145, sizeof(::flyteidl::admin::Labels_ValuesEntry_DoNotUse)}, + { 147, -1, sizeof(::flyteidl::admin::Labels)}, + { 153, 160, sizeof(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse)}, + { 162, -1, sizeof(::flyteidl::admin::Annotations)}, + { 168, -1, sizeof(::flyteidl::admin::Envs)}, + { 174, -1, sizeof(::flyteidl::admin::AuthRole)}, + { 181, -1, sizeof(::flyteidl::admin::RawOutputDataConfig)}, + { 187, -1, sizeof(::flyteidl::admin::FlyteURLs)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifier_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntity_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Sort_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifierList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityUpdateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ObjectGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ResourceListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_EmailNotification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_PagerDutyNotification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SlackNotification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Notification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_UrlBlob_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Labels_ValuesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Labels_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Annotations_ValuesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Annotations_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Envs_default_instance_), + reinterpret_cast(&::flyteidl::admin::_AuthRole_default_instance_), + reinterpret_cast(&::flyteidl::admin::_RawOutputDataConfig_default_instance_), + reinterpret_cast(&::flyteidl::admin::_FlyteURLs_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, "flyteidl/admin/common.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fcommon_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto, 26, file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fcommon_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fcommon_2eproto[] = + "\n\033flyteidl/admin/common.proto\022\016flyteidl." + "admin\032\035flyteidl/core/execution.proto\032\036fl" + "yteidl/core/identifier.proto\032\034flyteidl/c" + "ore/literals.proto\032\037google/protobuf/time" + "stamp.proto\"F\n\025NamedEntityIdentifier\022\017\n\007" + "project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 " + "\001(\t\"[\n\023NamedEntityMetadata\022\023\n\013descriptio" + "n\030\001 \001(\t\022/\n\005state\030\002 \001(\0162 .flyteidl.admin." + "NamedEntityState\"\253\001\n\013NamedEntity\0222\n\rreso" + "urce_type\030\001 \001(\0162\033.flyteidl.core.Resource" + "Type\0221\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedE" + "ntityIdentifier\0225\n\010metadata\030\003 \001(\0132#.flyt" + "eidl.admin.NamedEntityMetadata\"r\n\004Sort\022\013" + "\n\003key\030\001 \001(\t\0221\n\tdirection\030\002 \001(\0162\036.flyteid" + "l.admin.Sort.Direction\"*\n\tDirection\022\016\n\nD" + "ESCENDING\020\000\022\r\n\tASCENDING\020\001\"\231\001\n NamedEnti" + "tyIdentifierListRequest\022\017\n\007project\030\001 \001(\t" + "\022\016\n\006domain\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token" + "\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin" + ".Sort\022\017\n\007filters\030\006 \001(\t\"\303\001\n\026NamedEntityLi" + "stRequest\0222\n\rresource_type\030\001 \001(\0162\033.flyte" + "idl.core.ResourceType\022\017\n\007project\030\002 \001(\t\022\016" + "\n\006domain\030\003 \001(\t\022\r\n\005limit\030\004 \001(\r\022\r\n\005token\030\005" + " \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admin.S" + "ort\022\017\n\007filters\030\007 \001(\t\"c\n\031NamedEntityIdent" + "ifierList\0227\n\010entities\030\001 \003(\0132%.flyteidl.a" + "dmin.NamedEntityIdentifier\022\r\n\005token\030\002 \001(" + "\t\"O\n\017NamedEntityList\022-\n\010entities\030\001 \003(\0132\033" + ".flyteidl.admin.NamedEntity\022\r\n\005token\030\002 \001" + "(\t\"~\n\025NamedEntityGetRequest\0222\n\rresource_" + "type\030\001 \001(\0162\033.flyteidl.core.ResourceType\022" + "1\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedEntity" + "Identifier\"\270\001\n\030NamedEntityUpdateRequest\022" + "2\n\rresource_type\030\001 \001(\0162\033.flyteidl.core.R" + "esourceType\0221\n\002id\030\002 \001(\0132%.flyteidl.admin" + ".NamedEntityIdentifier\0225\n\010metadata\030\003 \001(\013" + "2#.flyteidl.admin.NamedEntityMetadata\"\033\n" + "\031NamedEntityUpdateResponse\"9\n\020ObjectGetR" + "equest\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Ident" + "ifier\"\236\001\n\023ResourceListRequest\0221\n\002id\030\001 \001(" + "\0132%.flyteidl.admin.NamedEntityIdentifier" + "\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filter" + "s\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admi" + "n.Sort\"-\n\021EmailNotification\022\030\n\020recipient" + "s_email\030\001 \003(\t\"1\n\025PagerDutyNotification\022\030" + "\n\020recipients_email\030\001 \003(\t\"-\n\021SlackNotific" + "ation\022\030\n\020recipients_email\030\001 \003(\t\"\363\001\n\014Noti" + "fication\0226\n\006phases\030\001 \003(\0162&.flyteidl.core" + ".WorkflowExecution.Phase\0222\n\005email\030\002 \001(\0132" + "!.flyteidl.admin.EmailNotificationH\000\022;\n\n" + "pager_duty\030\003 \001(\0132%.flyteidl.admin.PagerD" + "utyNotificationH\000\0222\n\005slack\030\004 \001(\0132!.flyte" + "idl.admin.SlackNotificationH\000B\006\n\004type\")\n" + "\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r\n\005bytes\030\002 \001(\003:\002\030\001" + "\"k\n\006Labels\0222\n\006values\030\001 \003(\0132\".flyteidl.ad" + "min.Labels.ValuesEntry\032-\n\013ValuesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\013Annotat" + "ions\0227\n\006values\030\001 \003(\0132\'.flyteidl.admin.An" + "notations.ValuesEntry\032-\n\013ValuesEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\004Envs\022+\n\006" + "values\030\001 \003(\0132\033.flyteidl.core.KeyValuePai" + "r\"N\n\010AuthRole\022\032\n\022assumable_iam_role\030\001 \001(" + "\t\022\"\n\032kubernetes_service_account\030\002 \001(\t:\002\030" + "\001\"5\n\023RawOutputDataConfig\022\036\n\026output_locat" + "ion_prefix\030\001 \001(\t\":\n\tFlyteURLs\022\016\n\006inputs\030" + "\001 \001(\t\022\017\n\007outputs\030\002 \001(\t\022\014\n\004deck\030\003 \001(\t*\\\n\020" + "NamedEntityState\022\027\n\023NAMED_ENTITY_ACTIVE\020" + "\000\022\031\n\025NAMED_ENTITY_ARCHIVED\020\001\022\024\n\020SYSTEM_G" + "ENERATED\020\002B7Z5github.com/flyteorg/flytei" + "dl/gen/pb-go/flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fcommon_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fcommon_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fcommon_2eproto, + "flyteidl/admin/common.proto", &assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto, 2795, +}; + +void AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[4] = + { + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fcommon_2eproto, deps, 4); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fcommon_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* Sort_Direction_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto[0]; +} +bool Sort_Direction_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Sort_Direction Sort::DESCENDING; +const Sort_Direction Sort::ASCENDING; +const Sort_Direction Sort::Direction_MIN; +const Sort_Direction Sort::Direction_MAX; +const int Sort::Direction_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* NamedEntityState_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto[1]; +} +bool NamedEntityState_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +void NamedEntityIdentifier::InitAsDefaultInstance() { +} +class NamedEntityIdentifier::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityIdentifier::kProjectFieldNumber; +const int NamedEntityIdentifier::kDomainFieldNumber; +const int NamedEntityIdentifier::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityIdentifier::NamedEntityIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifier) +} +NamedEntityIdentifier::NamedEntityIdentifier(const NamedEntityIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifier) +} + +void NamedEntityIdentifier::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +NamedEntityIdentifier::~NamedEntityIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifier) + SharedDtor(); +} + +void NamedEntityIdentifier::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NamedEntityIdentifier::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityIdentifier& NamedEntityIdentifier::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityIdentifier::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifier.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifier.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifier.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityIdentifier) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifier.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifier.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifier.name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifier) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifier) +} + +::google::protobuf::uint8* NamedEntityIdentifier::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityIdentifier) + return target; +} + +size_t NamedEntityIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifier) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 3; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityIdentifier* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifier) + MergeFrom(*source); + } +} + +void NamedEntityIdentifier::MergeFrom(const NamedEntityIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void NamedEntityIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityIdentifier::CopyFrom(const NamedEntityIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityIdentifier::IsInitialized() const { + return true; +} + +void NamedEntityIdentifier::Swap(NamedEntityIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityIdentifier::InternalSwap(NamedEntityIdentifier* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata NamedEntityIdentifier::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityMetadata::InitAsDefaultInstance() { +} +class NamedEntityMetadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityMetadata::kDescriptionFieldNumber; +const int NamedEntityMetadata::kStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityMetadata::NamedEntityMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityMetadata) +} +NamedEntityMetadata::NamedEntityMetadata(const NamedEntityMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.description().size() > 0) { + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityMetadata) +} + +void NamedEntityMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + state_ = 0; +} + +NamedEntityMetadata::~NamedEntityMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityMetadata) + SharedDtor(); +} + +void NamedEntityMetadata::SharedDtor() { + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NamedEntityMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityMetadata& NamedEntityMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string description = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityMetadata.description"); + object = msg->mutable_description(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.NamedEntityState state = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::NamedEntityState>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string description = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityMetadata.description")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NamedEntityState state = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::NamedEntityState >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string description = 1; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityMetadata.description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->description(), output); + } + + // .flyteidl.admin.NamedEntityState state = 2; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->state(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityMetadata) +} + +::google::protobuf::uint8* NamedEntityMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string description = 1; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityMetadata.description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->description(), target); + } + + // .flyteidl.admin.NamedEntityState state = 2; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->state(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityMetadata) + return target; +} + +size_t NamedEntityMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string description = 1; + if (this->description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->description()); + } + + // .flyteidl.admin.NamedEntityState state = 2; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityMetadata) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityMetadata) + MergeFrom(*source); + } +} + +void NamedEntityMetadata::MergeFrom(const NamedEntityMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.description().size() > 0) { + + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void NamedEntityMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityMetadata::CopyFrom(const NamedEntityMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityMetadata::IsInitialized() const { + return true; +} + +void NamedEntityMetadata::Swap(NamedEntityMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityMetadata::InternalSwap(NamedEntityMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(state_, other->state_); +} + +::google::protobuf::Metadata NamedEntityMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntity::InitAsDefaultInstance() { + ::flyteidl::admin::_NamedEntity_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( + ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); + ::flyteidl::admin::_NamedEntity_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::NamedEntityMetadata*>( + ::flyteidl::admin::NamedEntityMetadata::internal_default_instance()); +} +class NamedEntity::HasBitSetters { + public: + static const ::flyteidl::admin::NamedEntityIdentifier& id(const NamedEntity* msg); + static const ::flyteidl::admin::NamedEntityMetadata& metadata(const NamedEntity* msg); +}; + +const ::flyteidl::admin::NamedEntityIdentifier& +NamedEntity::HasBitSetters::id(const NamedEntity* msg) { + return *msg->id_; +} +const ::flyteidl::admin::NamedEntityMetadata& +NamedEntity::HasBitSetters::metadata(const NamedEntity* msg) { + return *msg->metadata_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntity::kResourceTypeFieldNumber; +const int NamedEntity::kIdFieldNumber; +const int NamedEntity::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntity::NamedEntity() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntity) +} +NamedEntity::NamedEntity(const NamedEntity& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::admin::NamedEntityMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntity) +} + +void NamedEntity::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&resource_type_) - + reinterpret_cast(&id_)) + sizeof(resource_type_)); +} + +NamedEntity::~NamedEntity() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntity) + SharedDtor(); +} + +void NamedEntity::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; +} + +void NamedEntity::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntity& NamedEntity::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntity::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntity) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntity::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntity::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntity) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntity) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntity) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntity::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntity) +} + +::google::protobuf::uint8* NamedEntity::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntity) + return target; +} + +size_t NamedEntity::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntity) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntity::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntity) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntity* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntity) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntity) + MergeFrom(*source); + } +} + +void NamedEntity::MergeFrom(const NamedEntity& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntity) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::admin::NamedEntityMetadata::MergeFrom(from.metadata()); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void NamedEntity::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntity::CopyFrom(const NamedEntity& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntity::IsInitialized() const { + return true; +} + +void NamedEntity::Swap(NamedEntity* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntity::InternalSwap(NamedEntity* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(metadata_, other->metadata_); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata NamedEntity::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Sort::InitAsDefaultInstance() { +} +class Sort::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Sort::kKeyFieldNumber; +const int Sort::kDirectionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Sort::Sort() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Sort) +} +Sort::Sort(const Sort& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + direction_ = from.direction_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Sort) +} + +void Sort::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + direction_ = 0; +} + +Sort::~Sort() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Sort) + SharedDtor(); +} + +void Sort::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Sort::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Sort& Sort::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void Sort::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Sort) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + direction_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Sort::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string key = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Sort.key"); + object = msg->mutable_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort.Direction direction = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_direction(static_cast<::flyteidl::admin::Sort_Direction>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Sort::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Sort) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Sort.key")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort.Direction direction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_direction(static_cast< ::flyteidl::admin::Sort_Direction >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Sort) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Sort) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Sort::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Sort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Sort.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // .flyteidl.admin.Sort.Direction direction = 2; + if (this->direction() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->direction(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Sort) +} + +::google::protobuf::uint8* Sort::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Sort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Sort.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // .flyteidl.admin.Sort.Direction direction = 2; + if (this->direction() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->direction(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Sort) + return target; +} + +size_t Sort::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Sort) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // .flyteidl.admin.Sort.Direction direction = 2; + if (this->direction() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Sort::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Sort) + GOOGLE_DCHECK_NE(&from, this); + const Sort* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Sort) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Sort) + MergeFrom(*source); + } +} + +void Sort::MergeFrom(const Sort& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Sort) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.direction() != 0) { + set_direction(from.direction()); + } +} + +void Sort::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Sort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Sort::CopyFrom(const Sort& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Sort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Sort::IsInitialized() const { + return true; +} + +void Sort::Swap(Sort* other) { + if (other == this) return; + InternalSwap(other); +} +void Sort::InternalSwap(Sort* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(direction_, other->direction_); +} + +::google::protobuf::Metadata Sort::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityIdentifierListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class NamedEntityIdentifierListRequest::HasBitSetters { + public: + static const ::flyteidl::admin::Sort& sort_by(const NamedEntityIdentifierListRequest* msg); +}; + +const ::flyteidl::admin::Sort& +NamedEntityIdentifierListRequest::HasBitSetters::sort_by(const NamedEntityIdentifierListRequest* msg) { + return *msg->sort_by_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityIdentifierListRequest::kProjectFieldNumber; +const int NamedEntityIdentifierListRequest::kDomainFieldNumber; +const int NamedEntityIdentifierListRequest::kLimitFieldNumber; +const int NamedEntityIdentifierListRequest::kTokenFieldNumber; +const int NamedEntityIdentifierListRequest::kSortByFieldNumber; +const int NamedEntityIdentifierListRequest::kFiltersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityIdentifierListRequest::NamedEntityIdentifierListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifierListRequest) +} +NamedEntityIdentifierListRequest::NamedEntityIdentifierListRequest(const NamedEntityIdentifierListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifierListRequest) +} + +void NamedEntityIdentifierListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&sort_by_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&sort_by_)) + sizeof(limit_)); +} + +NamedEntityIdentifierListRequest::~NamedEntityIdentifierListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifierListRequest) + SharedDtor(); +} + +void NamedEntityIdentifierListRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete sort_by_; +} + +void NamedEntityIdentifierListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityIdentifierListRequest& NamedEntityIdentifierListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityIdentifierListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityIdentifierListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // uint32 limit = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string filters = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityIdentifierListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityIdentifierListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifierListRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifierListRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifierListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifierListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityIdentifierListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifierListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityIdentifierListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->limit(), output); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->token(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::sort_by(this), output); + } + + // string filters = 6; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->filters(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifierListRequest) +} + +::google::protobuf::uint8* NamedEntityIdentifierListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->limit(), target); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->token(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::sort_by(this), target); + } + + // string filters = 6; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->filters(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityIdentifierListRequest) + return target; +} + +size_t NamedEntityIdentifierListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifierListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string token = 4; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 6; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityIdentifierListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityIdentifierListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifierListRequest) + MergeFrom(*source); + } +} + +void NamedEntityIdentifierListRequest::MergeFrom(const NamedEntityIdentifierListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void NamedEntityIdentifierListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityIdentifierListRequest::CopyFrom(const NamedEntityIdentifierListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityIdentifierListRequest::IsInitialized() const { + return true; +} + +void NamedEntityIdentifierListRequest::Swap(NamedEntityIdentifierListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityIdentifierListRequest::InternalSwap(NamedEntityIdentifierListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata NamedEntityIdentifierListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NamedEntityListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class NamedEntityListRequest::HasBitSetters { + public: + static const ::flyteidl::admin::Sort& sort_by(const NamedEntityListRequest* msg); +}; + +const ::flyteidl::admin::Sort& +NamedEntityListRequest::HasBitSetters::sort_by(const NamedEntityListRequest* msg) { + return *msg->sort_by_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityListRequest::kResourceTypeFieldNumber; +const int NamedEntityListRequest::kProjectFieldNumber; +const int NamedEntityListRequest::kDomainFieldNumber; +const int NamedEntityListRequest::kLimitFieldNumber; +const int NamedEntityListRequest::kTokenFieldNumber; +const int NamedEntityListRequest::kSortByFieldNumber; +const int NamedEntityListRequest::kFiltersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityListRequest::NamedEntityListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityListRequest) +} +NamedEntityListRequest::NamedEntityListRequest(const NamedEntityListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + ::memcpy(&resource_type_, &from.resource_type_, + static_cast(reinterpret_cast(&limit_) - + reinterpret_cast(&resource_type_)) + sizeof(limit_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityListRequest) +} + +void NamedEntityListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&sort_by_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&sort_by_)) + sizeof(limit_)); +} + +NamedEntityListRequest::~NamedEntityListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityListRequest) + SharedDtor(); +} + +void NamedEntityListRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete sort_by_; +} + +void NamedEntityListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityListRequest& NamedEntityListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + ::memset(&resource_type_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&resource_type_)) + sizeof(limit_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string project = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // uint32 limit = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string filters = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string project = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityListRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityListRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + // string project = 2; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->project(), output); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->domain(), output); + } + + // uint32 limit = 4; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->limit(), output); + } + + // string token = 5; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->token(), output); + } + + // .flyteidl.admin.Sort sort_by = 6; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::sort_by(this), output); + } + + // string filters = 7; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->filters(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityListRequest) +} + +::google::protobuf::uint8* NamedEntityListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + // string project = 2; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->project(), target); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->domain(), target); + } + + // uint32 limit = 4; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->limit(), target); + } + + // string token = 5; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->token(), target); + } + + // .flyteidl.admin.Sort sort_by = 6; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::sort_by(this), target); + } + + // string filters = 7; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->filters(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityListRequest) + return target; +} + +size_t NamedEntityListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 2; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 3; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string token = 5; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 7; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.admin.Sort sort_by = 6; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + // uint32 limit = 4; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityListRequest) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityListRequest) + MergeFrom(*source); + } +} + +void NamedEntityListRequest::MergeFrom(const NamedEntityListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void NamedEntityListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityListRequest::CopyFrom(const NamedEntityListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityListRequest::IsInitialized() const { + return true; +} + +void NamedEntityListRequest::Swap(NamedEntityListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityListRequest::InternalSwap(NamedEntityListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(sort_by_, other->sort_by_); + swap(resource_type_, other->resource_type_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata NamedEntityListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityIdentifierList::InitAsDefaultInstance() { +} +class NamedEntityIdentifierList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityIdentifierList::kEntitiesFieldNumber; +const int NamedEntityIdentifierList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityIdentifierList::NamedEntityIdentifierList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifierList) +} +NamedEntityIdentifierList::NamedEntityIdentifierList(const NamedEntityIdentifierList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + entities_(from.entities_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifierList) +} + +void NamedEntityIdentifierList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +NamedEntityIdentifierList::~NamedEntityIdentifierList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifierList) + SharedDtor(); +} + +void NamedEntityIdentifierList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NamedEntityIdentifierList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityIdentifierList& NamedEntityIdentifierList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityIdentifierList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + entities_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityIdentifierList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; + object = msg->add_entities(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityIdentifierList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityIdentifierList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_entities())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifierList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityIdentifierList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifierList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityIdentifierList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + for (unsigned int i = 0, + n = static_cast(this->entities_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->entities(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifierList) +} + +::google::protobuf::uint8* NamedEntityIdentifierList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + for (unsigned int i = 0, + n = static_cast(this->entities_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->entities(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityIdentifierList) + return target; +} + +size_t NamedEntityIdentifierList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifierList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + { + unsigned int count = static_cast(this->entities_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->entities(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityIdentifierList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifierList) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityIdentifierList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifierList) + MergeFrom(*source); + } +} + +void NamedEntityIdentifierList::MergeFrom(const NamedEntityIdentifierList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifierList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + entities_.MergeFrom(from.entities_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void NamedEntityIdentifierList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifierList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityIdentifierList::CopyFrom(const NamedEntityIdentifierList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifierList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityIdentifierList::IsInitialized() const { + return true; +} + +void NamedEntityIdentifierList::Swap(NamedEntityIdentifierList* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityIdentifierList::InternalSwap(NamedEntityIdentifierList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&entities_)->InternalSwap(CastToBase(&other->entities_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata NamedEntityIdentifierList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityList::InitAsDefaultInstance() { +} +class NamedEntityList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityList::kEntitiesFieldNumber; +const int NamedEntityList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityList::NamedEntityList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityList) +} +NamedEntityList::NamedEntityList(const NamedEntityList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + entities_(from.entities_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityList) +} + +void NamedEntityList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +NamedEntityList::~NamedEntityList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityList) + SharedDtor(); +} + +void NamedEntityList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NamedEntityList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityList& NamedEntityList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + entities_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.NamedEntity entities = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntity::_InternalParse; + object = msg->add_entities(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.NamedEntity entities = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_entities())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntity entities = 1; + for (unsigned int i = 0, + n = static_cast(this->entities_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->entities(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityList) +} + +::google::protobuf::uint8* NamedEntityList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntity entities = 1; + for (unsigned int i = 0, + n = static_cast(this->entities_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->entities(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityList) + return target; +} + +size_t NamedEntityList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntity entities = 1; + { + unsigned int count = static_cast(this->entities_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->entities(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityList) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityList) + MergeFrom(*source); + } +} + +void NamedEntityList::MergeFrom(const NamedEntityList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + entities_.MergeFrom(from.entities_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void NamedEntityList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityList::CopyFrom(const NamedEntityList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityList::IsInitialized() const { + return true; +} + +void NamedEntityList::Swap(NamedEntityList* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityList::InternalSwap(NamedEntityList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&entities_)->InternalSwap(CastToBase(&other->entities_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata NamedEntityList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NamedEntityGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( + ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); +} +class NamedEntityGetRequest::HasBitSetters { + public: + static const ::flyteidl::admin::NamedEntityIdentifier& id(const NamedEntityGetRequest* msg); +}; + +const ::flyteidl::admin::NamedEntityIdentifier& +NamedEntityGetRequest::HasBitSetters::id(const NamedEntityGetRequest* msg) { + return *msg->id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityGetRequest::kResourceTypeFieldNumber; +const int NamedEntityGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityGetRequest::NamedEntityGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityGetRequest) +} +NamedEntityGetRequest::NamedEntityGetRequest(const NamedEntityGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); + } else { + id_ = nullptr; + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityGetRequest) +} + +void NamedEntityGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&resource_type_) - + reinterpret_cast(&id_)) + sizeof(resource_type_)); +} + +NamedEntityGetRequest::~NamedEntityGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityGetRequest) + SharedDtor(); +} + +void NamedEntityGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void NamedEntityGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityGetRequest& NamedEntityGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityGetRequest) +} + +::google::protobuf::uint8* NamedEntityGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityGetRequest) + return target; +} + +size_t NamedEntityGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityGetRequest) + MergeFrom(*source); + } +} + +void NamedEntityGetRequest::MergeFrom(const NamedEntityGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void NamedEntityGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityGetRequest::CopyFrom(const NamedEntityGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityGetRequest::IsInitialized() const { + return true; +} + +void NamedEntityGetRequest::Swap(NamedEntityGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityGetRequest::InternalSwap(NamedEntityGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata NamedEntityGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityUpdateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( + ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); + ::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::NamedEntityMetadata*>( + ::flyteidl::admin::NamedEntityMetadata::internal_default_instance()); +} +class NamedEntityUpdateRequest::HasBitSetters { + public: + static const ::flyteidl::admin::NamedEntityIdentifier& id(const NamedEntityUpdateRequest* msg); + static const ::flyteidl::admin::NamedEntityMetadata& metadata(const NamedEntityUpdateRequest* msg); +}; + +const ::flyteidl::admin::NamedEntityIdentifier& +NamedEntityUpdateRequest::HasBitSetters::id(const NamedEntityUpdateRequest* msg) { + return *msg->id_; +} +const ::flyteidl::admin::NamedEntityMetadata& +NamedEntityUpdateRequest::HasBitSetters::metadata(const NamedEntityUpdateRequest* msg) { + return *msg->metadata_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityUpdateRequest::kResourceTypeFieldNumber; +const int NamedEntityUpdateRequest::kIdFieldNumber; +const int NamedEntityUpdateRequest::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityUpdateRequest::NamedEntityUpdateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityUpdateRequest) +} +NamedEntityUpdateRequest::NamedEntityUpdateRequest(const NamedEntityUpdateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::admin::NamedEntityMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityUpdateRequest) +} + +void NamedEntityUpdateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&resource_type_) - + reinterpret_cast(&id_)) + sizeof(resource_type_)); +} + +NamedEntityUpdateRequest::~NamedEntityUpdateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityUpdateRequest) + SharedDtor(); +} + +void NamedEntityUpdateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; +} + +void NamedEntityUpdateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityUpdateRequest& NamedEntityUpdateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityUpdateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityUpdateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityUpdateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityUpdateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityUpdateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityUpdateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityUpdateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityUpdateRequest) +} + +::google::protobuf::uint8* NamedEntityUpdateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityUpdateRequest) + return target; +} + +size_t NamedEntityUpdateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityUpdateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityUpdateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityUpdateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityUpdateRequest) + MergeFrom(*source); + } +} + +void NamedEntityUpdateRequest::MergeFrom(const NamedEntityUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::admin::NamedEntityMetadata::MergeFrom(from.metadata()); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void NamedEntityUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityUpdateRequest::CopyFrom(const NamedEntityUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityUpdateRequest::IsInitialized() const { + return true; +} + +void NamedEntityUpdateRequest::Swap(NamedEntityUpdateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityUpdateRequest::InternalSwap(NamedEntityUpdateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(metadata_, other->metadata_); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata NamedEntityUpdateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityUpdateResponse::InitAsDefaultInstance() { +} +class NamedEntityUpdateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityUpdateResponse::NamedEntityUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityUpdateResponse) +} +NamedEntityUpdateResponse::NamedEntityUpdateResponse(const NamedEntityUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityUpdateResponse) +} + +void NamedEntityUpdateResponse::SharedCtor() { +} + +NamedEntityUpdateResponse::~NamedEntityUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityUpdateResponse) + SharedDtor(); +} + +void NamedEntityUpdateResponse::SharedDtor() { +} + +void NamedEntityUpdateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NamedEntityUpdateResponse& NamedEntityUpdateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void NamedEntityUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NamedEntityUpdateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NamedEntityUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityUpdateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityUpdateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NamedEntityUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityUpdateResponse) +} + +::google::protobuf::uint8* NamedEntityUpdateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityUpdateResponse) + return target; +} + +size_t NamedEntityUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityUpdateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NamedEntityUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityUpdateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityUpdateResponse) + MergeFrom(*source); + } +} + +void NamedEntityUpdateResponse::MergeFrom(const NamedEntityUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void NamedEntityUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityUpdateResponse::CopyFrom(const NamedEntityUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityUpdateResponse::IsInitialized() const { + return true; +} + +void NamedEntityUpdateResponse::Swap(NamedEntityUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityUpdateResponse::InternalSwap(NamedEntityUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NamedEntityUpdateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ObjectGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ObjectGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +class ObjectGetRequest::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const ObjectGetRequest* msg); +}; + +const ::flyteidl::core::Identifier& +ObjectGetRequest::HasBitSetters::id(const ObjectGetRequest* msg) { + return *msg->id_; +} +void ObjectGetRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ObjectGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ObjectGetRequest::ObjectGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ObjectGetRequest) +} +ObjectGetRequest::ObjectGetRequest(const ObjectGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ObjectGetRequest) +} + +void ObjectGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + id_ = nullptr; +} + +ObjectGetRequest::~ObjectGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ObjectGetRequest) + SharedDtor(); +} + +void ObjectGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ObjectGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ObjectGetRequest& ObjectGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void ObjectGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ObjectGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ObjectGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ObjectGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ObjectGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ObjectGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ObjectGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ObjectGetRequest) +} + +::google::protobuf::uint8* ObjectGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ObjectGetRequest) + return target; +} + +size_t ObjectGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ObjectGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ObjectGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ObjectGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const ObjectGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ObjectGetRequest) + MergeFrom(*source); + } +} + +void ObjectGetRequest::MergeFrom(const ObjectGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ObjectGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } +} + +void ObjectGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ObjectGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ObjectGetRequest::CopyFrom(const ObjectGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ObjectGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ObjectGetRequest::IsInitialized() const { + return true; +} + +void ObjectGetRequest::Swap(ObjectGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ObjectGetRequest::InternalSwap(ObjectGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata ObjectGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ResourceListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ResourceListRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( + ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); + ::flyteidl::admin::_ResourceListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class ResourceListRequest::HasBitSetters { + public: + static const ::flyteidl::admin::NamedEntityIdentifier& id(const ResourceListRequest* msg); + static const ::flyteidl::admin::Sort& sort_by(const ResourceListRequest* msg); +}; + +const ::flyteidl::admin::NamedEntityIdentifier& +ResourceListRequest::HasBitSetters::id(const ResourceListRequest* msg) { + return *msg->id_; +} +const ::flyteidl::admin::Sort& +ResourceListRequest::HasBitSetters::sort_by(const ResourceListRequest* msg) { + return *msg->sort_by_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ResourceListRequest::kIdFieldNumber; +const int ResourceListRequest::kLimitFieldNumber; +const int ResourceListRequest::kTokenFieldNumber; +const int ResourceListRequest::kFiltersFieldNumber; +const int ResourceListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ResourceListRequest::ResourceListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ResourceListRequest) +} +ResourceListRequest::ResourceListRequest(const ResourceListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_id()) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ResourceListRequest) +} + +void ResourceListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&id_)) + sizeof(limit_)); +} + +ResourceListRequest::~ResourceListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ResourceListRequest) + SharedDtor(); +} + +void ResourceListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void ResourceListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ResourceListRequest& ResourceListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void ResourceListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ResourceListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ResourceListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.NamedEntityIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 limit = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ResourceListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filters = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ResourceListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ResourceListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ResourceListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.NamedEntityIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ResourceListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ResourceListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ResourceListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ResourceListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ResourceListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ResourceListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ResourceListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ResourceListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::sort_by(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ResourceListRequest) +} + +::google::protobuf::uint8* ResourceListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ResourceListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ResourceListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ResourceListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::sort_by(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ResourceListRequest) + return target; +} + +size_t ResourceListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ResourceListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ResourceListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ResourceListRequest) + GOOGLE_DCHECK_NE(&from, this); + const ResourceListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ResourceListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ResourceListRequest) + MergeFrom(*source); + } +} + +void ResourceListRequest::MergeFrom(const ResourceListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ResourceListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void ResourceListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ResourceListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResourceListRequest::CopyFrom(const ResourceListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ResourceListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceListRequest::IsInitialized() const { + return true; +} + +void ResourceListRequest::Swap(ResourceListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ResourceListRequest::InternalSwap(ResourceListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata ResourceListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void EmailNotification::InitAsDefaultInstance() { +} +class EmailNotification::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EmailNotification::kRecipientsEmailFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EmailNotification::EmailNotification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EmailNotification) +} +EmailNotification::EmailNotification(const EmailNotification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + recipients_email_(from.recipients_email_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EmailNotification) +} + +void EmailNotification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base); +} + +EmailNotification::~EmailNotification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EmailNotification) + SharedDtor(); +} + +void EmailNotification::SharedDtor() { +} + +void EmailNotification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EmailNotification& EmailNotification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void EmailNotification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EmailNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EmailNotification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailNotification.recipients_email"); + object = msg->add_recipients_email(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool EmailNotification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EmailNotification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailNotification.recipients_email")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.EmailNotification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EmailNotification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void EmailNotification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EmailNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailNotification.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EmailNotification) +} + +::google::protobuf::uint8* EmailNotification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EmailNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailNotification.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EmailNotification) + return target; +} + +size_t EmailNotification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EmailNotification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EmailNotification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EmailNotification) + GOOGLE_DCHECK_NE(&from, this); + const EmailNotification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EmailNotification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EmailNotification) + MergeFrom(*source); + } +} + +void EmailNotification::MergeFrom(const EmailNotification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EmailNotification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); +} + +void EmailNotification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EmailNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EmailNotification::CopyFrom(const EmailNotification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EmailNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EmailNotification::IsInitialized() const { + return true; +} + +void EmailNotification::Swap(EmailNotification* other) { + if (other == this) return; + InternalSwap(other); +} +void EmailNotification::InternalSwap(EmailNotification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); +} + +::google::protobuf::Metadata EmailNotification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PagerDutyNotification::InitAsDefaultInstance() { +} +class PagerDutyNotification::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PagerDutyNotification::kRecipientsEmailFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PagerDutyNotification::PagerDutyNotification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.PagerDutyNotification) +} +PagerDutyNotification::PagerDutyNotification(const PagerDutyNotification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + recipients_email_(from.recipients_email_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.PagerDutyNotification) +} + +void PagerDutyNotification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base); +} + +PagerDutyNotification::~PagerDutyNotification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.PagerDutyNotification) + SharedDtor(); +} + +void PagerDutyNotification::SharedDtor() { +} + +void PagerDutyNotification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PagerDutyNotification& PagerDutyNotification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void PagerDutyNotification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PagerDutyNotification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.PagerDutyNotification.recipients_email"); + object = msg->add_recipients_email(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PagerDutyNotification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.PagerDutyNotification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.PagerDutyNotification.recipients_email")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.PagerDutyNotification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.PagerDutyNotification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PagerDutyNotification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PagerDutyNotification.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.PagerDutyNotification) +} + +::google::protobuf::uint8* PagerDutyNotification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PagerDutyNotification.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.PagerDutyNotification) + return target; +} + +size_t PagerDutyNotification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.PagerDutyNotification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PagerDutyNotification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.PagerDutyNotification) + GOOGLE_DCHECK_NE(&from, this); + const PagerDutyNotification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.PagerDutyNotification) + MergeFrom(*source); + } +} + +void PagerDutyNotification::MergeFrom(const PagerDutyNotification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.PagerDutyNotification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); +} + +void PagerDutyNotification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.PagerDutyNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PagerDutyNotification::CopyFrom(const PagerDutyNotification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.PagerDutyNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PagerDutyNotification::IsInitialized() const { + return true; +} + +void PagerDutyNotification::Swap(PagerDutyNotification* other) { + if (other == this) return; + InternalSwap(other); +} +void PagerDutyNotification::InternalSwap(PagerDutyNotification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); +} + +::google::protobuf::Metadata PagerDutyNotification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SlackNotification::InitAsDefaultInstance() { +} +class SlackNotification::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SlackNotification::kRecipientsEmailFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SlackNotification::SlackNotification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SlackNotification) +} +SlackNotification::SlackNotification(const SlackNotification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + recipients_email_(from.recipients_email_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SlackNotification) +} + +void SlackNotification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base); +} + +SlackNotification::~SlackNotification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SlackNotification) + SharedDtor(); +} + +void SlackNotification::SharedDtor() { +} + +void SlackNotification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SlackNotification& SlackNotification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void SlackNotification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SlackNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SlackNotification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.SlackNotification.recipients_email"); + object = msg->add_recipients_email(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SlackNotification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SlackNotification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SlackNotification.recipients_email")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SlackNotification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SlackNotification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SlackNotification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SlackNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SlackNotification.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SlackNotification) +} + +::google::protobuf::uint8* SlackNotification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SlackNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SlackNotification.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SlackNotification) + return target; +} + +size_t SlackNotification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SlackNotification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SlackNotification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SlackNotification) + GOOGLE_DCHECK_NE(&from, this); + const SlackNotification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SlackNotification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SlackNotification) + MergeFrom(*source); + } +} + +void SlackNotification::MergeFrom(const SlackNotification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SlackNotification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); +} + +void SlackNotification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SlackNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SlackNotification::CopyFrom(const SlackNotification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SlackNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SlackNotification::IsInitialized() const { + return true; +} + +void SlackNotification::Swap(SlackNotification* other) { + if (other == this) return; + InternalSwap(other); +} +void SlackNotification::InternalSwap(SlackNotification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); +} + +::google::protobuf::Metadata SlackNotification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Notification::InitAsDefaultInstance() { + ::flyteidl::admin::_Notification_default_instance_.email_ = const_cast< ::flyteidl::admin::EmailNotification*>( + ::flyteidl::admin::EmailNotification::internal_default_instance()); + ::flyteidl::admin::_Notification_default_instance_.pager_duty_ = const_cast< ::flyteidl::admin::PagerDutyNotification*>( + ::flyteidl::admin::PagerDutyNotification::internal_default_instance()); + ::flyteidl::admin::_Notification_default_instance_.slack_ = const_cast< ::flyteidl::admin::SlackNotification*>( + ::flyteidl::admin::SlackNotification::internal_default_instance()); +} +class Notification::HasBitSetters { + public: + static const ::flyteidl::admin::EmailNotification& email(const Notification* msg); + static const ::flyteidl::admin::PagerDutyNotification& pager_duty(const Notification* msg); + static const ::flyteidl::admin::SlackNotification& slack(const Notification* msg); +}; + +const ::flyteidl::admin::EmailNotification& +Notification::HasBitSetters::email(const Notification* msg) { + return *msg->type_.email_; +} +const ::flyteidl::admin::PagerDutyNotification& +Notification::HasBitSetters::pager_duty(const Notification* msg) { + return *msg->type_.pager_duty_; +} +const ::flyteidl::admin::SlackNotification& +Notification::HasBitSetters::slack(const Notification* msg) { + return *msg->type_.slack_; +} +void Notification::set_allocated_email(::flyteidl::admin::EmailNotification* email) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (email) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + email = ::google::protobuf::internal::GetOwnedMessage( + message_arena, email, submessage_arena); + } + set_has_email(); + type_.email_ = email; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.email) +} +void Notification::set_allocated_pager_duty(::flyteidl::admin::PagerDutyNotification* pager_duty) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (pager_duty) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + pager_duty = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pager_duty, submessage_arena); + } + set_has_pager_duty(); + type_.pager_duty_ = pager_duty; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.pager_duty) +} +void Notification::set_allocated_slack(::flyteidl::admin::SlackNotification* slack) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (slack) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + slack = ::google::protobuf::internal::GetOwnedMessage( + message_arena, slack, submessage_arena); + } + set_has_slack(); + type_.slack_ = slack; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.slack) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Notification::kPhasesFieldNumber; +const int Notification::kEmailFieldNumber; +const int Notification::kPagerDutyFieldNumber; +const int Notification::kSlackFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Notification::Notification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Notification) +} +Notification::Notification(const Notification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + phases_(from.phases_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_type(); + switch (from.type_case()) { + case kEmail: { + mutable_email()->::flyteidl::admin::EmailNotification::MergeFrom(from.email()); + break; + } + case kPagerDuty: { + mutable_pager_duty()->::flyteidl::admin::PagerDutyNotification::MergeFrom(from.pager_duty()); + break; + } + case kSlack: { + mutable_slack()->::flyteidl::admin::SlackNotification::MergeFrom(from.slack()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Notification) +} + +void Notification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base); + clear_has_type(); +} + +Notification::~Notification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Notification) + SharedDtor(); +} + +void Notification::SharedDtor() { + if (has_type()) { + clear_type(); + } +} + +void Notification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Notification& Notification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void Notification::clear_type() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Notification) + switch (type_case()) { + case kEmail: { + delete type_.email_; + break; + } + case kPagerDuty: { + delete type_.pager_duty_; + break; + } + case kSlack: { + delete type_.slack_; + break; + } + case TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = TYPE_NOT_SET; +} + + +void Notification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Notification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + phases_.Clear(); + clear_type(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Notification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) == 10) { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::PackedEnumParser; + object = msg->mutable_phases(); + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + if (size) ptr = parser_till_end(ptr, newend, object, ctx); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); + break; + } else if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + do { + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->add_phases(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 8 && (ptr += 1)); + break; + } + // .flyteidl.admin.EmailNotification email = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::EmailNotification::_InternalParse; + object = msg->mutable_email(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::PagerDutyNotification::_InternalParse; + object = msg->mutable_pager_duty(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.SlackNotification slack = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::SlackNotification::_InternalParse; + object = msg->mutable_slack(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Notification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Notification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + ::google::protobuf::uint32 length; + DO_(input->ReadVarint32(&length)); + ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast(length)); + while (input->BytesUntilLimit() > 0) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + add_phases(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } + input->PopLimit(limit); + } else if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + add_phases(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.EmailNotification email = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_email())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pager_duty())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.SlackNotification slack = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_slack())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Notification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Notification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Notification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Notification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + if (this->phases_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag( + 1, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + output); + output->WriteVarint32(_phases_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->phases_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag( + this->phases(i), output); + } + + // .flyteidl.admin.EmailNotification email = 2; + if (has_email()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::email(this), output); + } + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + if (has_pager_duty()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::pager_duty(this), output); + } + + // .flyteidl.admin.SlackNotification slack = 4; + if (has_slack()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::slack(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Notification) +} + +::google::protobuf::uint8* Notification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Notification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + if (this->phases_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 1, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _phases_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray( + this->phases_, target); + } + + // .flyteidl.admin.EmailNotification email = 2; + if (has_email()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::email(this), target); + } + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + if (has_pager_duty()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::pager_duty(this), target); + } + + // .flyteidl.admin.SlackNotification slack = 4; + if (has_slack()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::slack(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Notification) + return target; +} + +size_t Notification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Notification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + { + size_t data_size = 0; + unsigned int count = static_cast(this->phases_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->phases(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast<::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + _phases_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + switch (type_case()) { + // .flyteidl.admin.EmailNotification email = 2; + case kEmail: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.email_); + break; + } + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + case kPagerDuty: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.pager_duty_); + break; + } + // .flyteidl.admin.SlackNotification slack = 4; + case kSlack: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.slack_); + break; + } + case TYPE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Notification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Notification) + GOOGLE_DCHECK_NE(&from, this); + const Notification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Notification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Notification) + MergeFrom(*source); + } +} + +void Notification::MergeFrom(const Notification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Notification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + phases_.MergeFrom(from.phases_); + switch (from.type_case()) { + case kEmail: { + mutable_email()->::flyteidl::admin::EmailNotification::MergeFrom(from.email()); + break; + } + case kPagerDuty: { + mutable_pager_duty()->::flyteidl::admin::PagerDutyNotification::MergeFrom(from.pager_duty()); + break; + } + case kSlack: { + mutable_slack()->::flyteidl::admin::SlackNotification::MergeFrom(from.slack()); + break; + } + case TYPE_NOT_SET: { + break; + } + } +} + +void Notification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Notification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Notification::CopyFrom(const Notification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Notification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Notification::IsInitialized() const { + return true; +} + +void Notification::Swap(Notification* other) { + if (other == this) return; + InternalSwap(other); +} +void Notification::InternalSwap(Notification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + phases_.InternalSwap(&other->phases_); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Notification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void UrlBlob::InitAsDefaultInstance() { +} +class UrlBlob::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UrlBlob::kUrlFieldNumber; +const int UrlBlob::kBytesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UrlBlob::UrlBlob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.UrlBlob) +} +UrlBlob::UrlBlob(const UrlBlob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.url().size() > 0) { + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + bytes_ = from.bytes_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.UrlBlob) +} + +void UrlBlob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base); + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + bytes_ = PROTOBUF_LONGLONG(0); +} + +UrlBlob::~UrlBlob() { + // @@protoc_insertion_point(destructor:flyteidl.admin.UrlBlob) + SharedDtor(); +} + +void UrlBlob::SharedDtor() { + url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void UrlBlob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UrlBlob& UrlBlob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void UrlBlob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.UrlBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + bytes_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UrlBlob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string url = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.UrlBlob.url"); + object = msg->mutable_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int64 bytes = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_bytes(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UrlBlob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.UrlBlob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.UrlBlob.url")); + } else { + goto handle_unusual; + } + break; + } + + // int64 bytes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &bytes_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.UrlBlob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.UrlBlob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UrlBlob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.UrlBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string url = 1; + if (this->url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.UrlBlob.url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->url(), output); + } + + // int64 bytes = 2; + if (this->bytes() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->bytes(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.UrlBlob) +} + +::google::protobuf::uint8* UrlBlob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.UrlBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string url = 1; + if (this->url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.UrlBlob.url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->url(), target); + } + + // int64 bytes = 2; + if (this->bytes() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->bytes(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.UrlBlob) + return target; +} + +size_t UrlBlob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.UrlBlob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string url = 1; + if (this->url().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->url()); + } + + // int64 bytes = 2; + if (this->bytes() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->bytes()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UrlBlob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.UrlBlob) + GOOGLE_DCHECK_NE(&from, this); + const UrlBlob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.UrlBlob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.UrlBlob) + MergeFrom(*source); + } +} + +void UrlBlob::MergeFrom(const UrlBlob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.UrlBlob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.url().size() > 0) { + + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + if (from.bytes() != 0) { + set_bytes(from.bytes()); + } +} + +void UrlBlob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.UrlBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UrlBlob::CopyFrom(const UrlBlob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.UrlBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UrlBlob::IsInitialized() const { + return true; +} + +void UrlBlob::Swap(UrlBlob* other) { + if (other == this) return; + InternalSwap(other); +} +void UrlBlob::InternalSwap(UrlBlob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + url_.Swap(&other->url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(bytes_, other->bytes_); +} + +::google::protobuf::Metadata UrlBlob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +Labels_ValuesEntry_DoNotUse::Labels_ValuesEntry_DoNotUse() {} +Labels_ValuesEntry_DoNotUse::Labels_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void Labels_ValuesEntry_DoNotUse::MergeFrom(const Labels_ValuesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata Labels_ValuesEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[18]; +} +void Labels_ValuesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Labels_ValuesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + Labels_ValuesEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Labels.ValuesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Labels.ValuesEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void Labels::InitAsDefaultInstance() { +} +class Labels::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Labels::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Labels::Labels() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Labels) +} +Labels::Labels(const Labels& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + values_.MergeFrom(from.values_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Labels) +} + +void Labels::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base); +} + +Labels::~Labels() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Labels) + SharedDtor(); +} + +void Labels::SharedDtor() { +} + +void Labels::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Labels& Labels::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void Labels::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Labels) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Labels::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map values = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::admin::Labels_ValuesEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->values_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Labels::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Labels) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + Labels_ValuesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + Labels_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&values_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Labels.ValuesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Labels.ValuesEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Labels) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Labels) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Labels::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Labels) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->values().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Labels) +} + +::google::protobuf::uint8* Labels::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Labels) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.value"); + } + }; + + if (false && + this->values().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Labels) + return target; +} + +size_t Labels::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Labels) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Labels::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Labels) + GOOGLE_DCHECK_NE(&from, this); + const Labels* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Labels) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Labels) + MergeFrom(*source); + } +} + +void Labels::MergeFrom(const Labels& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Labels) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void Labels::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Labels) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Labels::CopyFrom(const Labels& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Labels) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Labels::IsInitialized() const { + return true; +} + +void Labels::Swap(Labels* other) { + if (other == this) return; + InternalSwap(other); +} +void Labels::InternalSwap(Labels* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.Swap(&other->values_); +} + +::google::protobuf::Metadata Labels::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +Annotations_ValuesEntry_DoNotUse::Annotations_ValuesEntry_DoNotUse() {} +Annotations_ValuesEntry_DoNotUse::Annotations_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void Annotations_ValuesEntry_DoNotUse::MergeFrom(const Annotations_ValuesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata Annotations_ValuesEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[20]; +} +void Annotations_ValuesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Annotations_ValuesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + Annotations_ValuesEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Annotations.ValuesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Annotations.ValuesEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void Annotations::InitAsDefaultInstance() { +} +class Annotations::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Annotations::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Annotations::Annotations() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Annotations) +} +Annotations::Annotations(const Annotations& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + values_.MergeFrom(from.values_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Annotations) +} + +void Annotations::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base); +} + +Annotations::~Annotations() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Annotations) + SharedDtor(); +} + +void Annotations::SharedDtor() { +} + +void Annotations::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Annotations& Annotations::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void Annotations::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Annotations) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Annotations::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map values = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->values_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Annotations::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Annotations) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + Annotations_ValuesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + Annotations_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&values_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Annotations.ValuesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Annotations.ValuesEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Annotations) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Annotations) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Annotations::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Annotations) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->values().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Annotations) +} + +::google::protobuf::uint8* Annotations::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Annotations) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.value"); + } + }; + + if (false && + this->values().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Annotations) + return target; +} + +size_t Annotations::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Annotations) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Annotations::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Annotations) + GOOGLE_DCHECK_NE(&from, this); + const Annotations* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Annotations) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Annotations) + MergeFrom(*source); + } +} + +void Annotations::MergeFrom(const Annotations& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Annotations) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void Annotations::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Annotations) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Annotations::CopyFrom(const Annotations& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Annotations) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Annotations::IsInitialized() const { + return true; +} + +void Annotations::Swap(Annotations* other) { + if (other == this) return; + InternalSwap(other); +} +void Annotations::InternalSwap(Annotations* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.Swap(&other->values_); +} + +::google::protobuf::Metadata Annotations::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Envs::InitAsDefaultInstance() { +} +class Envs::HasBitSetters { + public: +}; + +void Envs::clear_values() { + values_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Envs::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Envs::Envs() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Envs) +} +Envs::Envs(const Envs& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + values_(from.values_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Envs) +} + +void Envs::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base); +} + +Envs::~Envs() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Envs) + SharedDtor(); +} + +void Envs::SharedDtor() { +} + +void Envs::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Envs& Envs::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void Envs::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Envs) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Envs::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.KeyValuePair values = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::KeyValuePair::_InternalParse; + object = msg->add_values(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Envs::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Envs) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.KeyValuePair values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_values())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Envs) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Envs) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Envs::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Envs) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.KeyValuePair values = 1; + for (unsigned int i = 0, + n = static_cast(this->values_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->values(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Envs) +} + +::google::protobuf::uint8* Envs::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Envs) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.KeyValuePair values = 1; + for (unsigned int i = 0, + n = static_cast(this->values_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->values(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Envs) + return target; +} + +size_t Envs::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Envs) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.KeyValuePair values = 1; + { + unsigned int count = static_cast(this->values_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->values(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Envs::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Envs) + GOOGLE_DCHECK_NE(&from, this); + const Envs* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Envs) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Envs) + MergeFrom(*source); + } +} + +void Envs::MergeFrom(const Envs& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Envs) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void Envs::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Envs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Envs::CopyFrom(const Envs& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Envs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Envs::IsInitialized() const { + return true; +} + +void Envs::Swap(Envs* other) { + if (other == this) return; + InternalSwap(other); +} +void Envs::InternalSwap(Envs* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&values_)->InternalSwap(CastToBase(&other->values_)); +} + +::google::protobuf::Metadata Envs::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AuthRole::InitAsDefaultInstance() { +} +class AuthRole::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AuthRole::kAssumableIamRoleFieldNumber; +const int AuthRole::kKubernetesServiceAccountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AuthRole::AuthRole() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.AuthRole) +} +AuthRole::AuthRole(const AuthRole& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.assumable_iam_role().size() > 0) { + assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); + } + kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.kubernetes_service_account().size() > 0) { + kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.AuthRole) +} + +void AuthRole::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base); + assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +AuthRole::~AuthRole() { + // @@protoc_insertion_point(destructor:flyteidl.admin.AuthRole) + SharedDtor(); +} + +void AuthRole::SharedDtor() { + assumable_iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kubernetes_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AuthRole::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AuthRole& AuthRole::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void AuthRole::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.AuthRole) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AuthRole::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string assumable_iam_role = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.AuthRole.assumable_iam_role"); + object = msg->mutable_assumable_iam_role(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string kubernetes_service_account = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.AuthRole.kubernetes_service_account"); + object = msg->mutable_kubernetes_service_account(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AuthRole::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.AuthRole) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string assumable_iam_role = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_assumable_iam_role())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.AuthRole.assumable_iam_role")); + } else { + goto handle_unusual; + } + break; + } + + // string kubernetes_service_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_kubernetes_service_account())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.AuthRole.kubernetes_service_account")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.AuthRole) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.AuthRole) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AuthRole::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.AuthRole) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (this->assumable_iam_role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AuthRole.assumable_iam_role"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->assumable_iam_role(), output); + } + + // string kubernetes_service_account = 2; + if (this->kubernetes_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AuthRole.kubernetes_service_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->kubernetes_service_account(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.AuthRole) +} + +::google::protobuf::uint8* AuthRole::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.AuthRole) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (this->assumable_iam_role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AuthRole.assumable_iam_role"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->assumable_iam_role(), target); + } + + // string kubernetes_service_account = 2; + if (this->kubernetes_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AuthRole.kubernetes_service_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->kubernetes_service_account(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.AuthRole) + return target; +} + +size_t AuthRole::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.AuthRole) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (this->assumable_iam_role().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->assumable_iam_role()); + } + + // string kubernetes_service_account = 2; + if (this->kubernetes_service_account().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->kubernetes_service_account()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AuthRole::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.AuthRole) + GOOGLE_DCHECK_NE(&from, this); + const AuthRole* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.AuthRole) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.AuthRole) + MergeFrom(*source); + } +} + +void AuthRole::MergeFrom(const AuthRole& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.AuthRole) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.assumable_iam_role().size() > 0) { + + assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); + } + if (from.kubernetes_service_account().size() > 0) { + + kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); + } +} + +void AuthRole::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.AuthRole) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AuthRole::CopyFrom(const AuthRole& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.AuthRole) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthRole::IsInitialized() const { + return true; +} + +void AuthRole::Swap(AuthRole* other) { + if (other == this) return; + InternalSwap(other); +} +void AuthRole::InternalSwap(AuthRole* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + assumable_iam_role_.Swap(&other->assumable_iam_role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + kubernetes_service_account_.Swap(&other->kubernetes_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata AuthRole::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void RawOutputDataConfig::InitAsDefaultInstance() { +} +class RawOutputDataConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RawOutputDataConfig::kOutputLocationPrefixFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RawOutputDataConfig::RawOutputDataConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.RawOutputDataConfig) +} +RawOutputDataConfig::RawOutputDataConfig(const RawOutputDataConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + output_location_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.output_location_prefix().size() > 0) { + output_location_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_location_prefix_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.RawOutputDataConfig) +} + +void RawOutputDataConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base); + output_location_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +RawOutputDataConfig::~RawOutputDataConfig() { + // @@protoc_insertion_point(destructor:flyteidl.admin.RawOutputDataConfig) + SharedDtor(); +} + +void RawOutputDataConfig::SharedDtor() { + output_location_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void RawOutputDataConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RawOutputDataConfig& RawOutputDataConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void RawOutputDataConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.RawOutputDataConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + output_location_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RawOutputDataConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string output_location_prefix = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.RawOutputDataConfig.output_location_prefix"); + object = msg->mutable_output_location_prefix(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RawOutputDataConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.RawOutputDataConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string output_location_prefix = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_location_prefix())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_location_prefix().data(), static_cast(this->output_location_prefix().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.RawOutputDataConfig.output_location_prefix")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.RawOutputDataConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.RawOutputDataConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RawOutputDataConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.RawOutputDataConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_location_prefix = 1; + if (this->output_location_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_location_prefix().data(), static_cast(this->output_location_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.RawOutputDataConfig.output_location_prefix"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->output_location_prefix(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.RawOutputDataConfig) +} + +::google::protobuf::uint8* RawOutputDataConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.RawOutputDataConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_location_prefix = 1; + if (this->output_location_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_location_prefix().data(), static_cast(this->output_location_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.RawOutputDataConfig.output_location_prefix"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->output_location_prefix(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.RawOutputDataConfig) + return target; +} + +size_t RawOutputDataConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.RawOutputDataConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string output_location_prefix = 1; + if (this->output_location_prefix().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_location_prefix()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RawOutputDataConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.RawOutputDataConfig) + GOOGLE_DCHECK_NE(&from, this); + const RawOutputDataConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.RawOutputDataConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.RawOutputDataConfig) + MergeFrom(*source); + } +} + +void RawOutputDataConfig::MergeFrom(const RawOutputDataConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.RawOutputDataConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.output_location_prefix().size() > 0) { + + output_location_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_location_prefix_); + } +} + +void RawOutputDataConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.RawOutputDataConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RawOutputDataConfig::CopyFrom(const RawOutputDataConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.RawOutputDataConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RawOutputDataConfig::IsInitialized() const { + return true; +} + +void RawOutputDataConfig::Swap(RawOutputDataConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void RawOutputDataConfig::InternalSwap(RawOutputDataConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + output_location_prefix_.Swap(&other->output_location_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata RawOutputDataConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void FlyteURLs::InitAsDefaultInstance() { +} +class FlyteURLs::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FlyteURLs::kInputsFieldNumber; +const int FlyteURLs::kOutputsFieldNumber; +const int FlyteURLs::kDeckFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FlyteURLs::FlyteURLs() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.FlyteURLs) +} +FlyteURLs::FlyteURLs(const FlyteURLs& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + inputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.inputs().size() > 0) { + inputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inputs_); + } + outputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.outputs().size() > 0) { + outputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.outputs_); + } + deck_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.deck().size() > 0) { + deck_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.FlyteURLs) +} + +void FlyteURLs::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base); + inputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + outputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deck_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +FlyteURLs::~FlyteURLs() { + // @@protoc_insertion_point(destructor:flyteidl.admin.FlyteURLs) + SharedDtor(); +} + +void FlyteURLs::SharedDtor() { + inputs_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + outputs_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deck_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void FlyteURLs::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FlyteURLs& FlyteURLs::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void FlyteURLs::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.FlyteURLs) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + inputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + outputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deck_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FlyteURLs::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string inputs = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.FlyteURLs.inputs"); + object = msg->mutable_inputs(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string outputs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.FlyteURLs.outputs"); + object = msg->mutable_outputs(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string deck = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.FlyteURLs.deck"); + object = msg->mutable_deck(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FlyteURLs::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.FlyteURLs) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_inputs())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->inputs().data(), static_cast(this->inputs().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.FlyteURLs.inputs")); + } else { + goto handle_unusual; + } + break; + } + + // string outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_outputs())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->outputs().data(), static_cast(this->outputs().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.FlyteURLs.outputs")); + } else { + goto handle_unusual; + } + break; + } + + // string deck = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_deck())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck().data(), static_cast(this->deck().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.FlyteURLs.deck")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.FlyteURLs) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.FlyteURLs) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FlyteURLs::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.FlyteURLs) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string inputs = 1; + if (this->inputs().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->inputs().data(), static_cast(this->inputs().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.FlyteURLs.inputs"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->inputs(), output); + } + + // string outputs = 2; + if (this->outputs().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->outputs().data(), static_cast(this->outputs().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.FlyteURLs.outputs"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->outputs(), output); + } + + // string deck = 3; + if (this->deck().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck().data(), static_cast(this->deck().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.FlyteURLs.deck"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->deck(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.FlyteURLs) +} + +::google::protobuf::uint8* FlyteURLs::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.FlyteURLs) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string inputs = 1; + if (this->inputs().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->inputs().data(), static_cast(this->inputs().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.FlyteURLs.inputs"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->inputs(), target); + } + + // string outputs = 2; + if (this->outputs().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->outputs().data(), static_cast(this->outputs().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.FlyteURLs.outputs"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->outputs(), target); + } + + // string deck = 3; + if (this->deck().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck().data(), static_cast(this->deck().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.FlyteURLs.deck"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->deck(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.FlyteURLs) + return target; +} + +size_t FlyteURLs::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.FlyteURLs) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string inputs = 1; + if (this->inputs().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->inputs()); + } + + // string outputs = 2; + if (this->outputs().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->outputs()); + } + + // string deck = 3; + if (this->deck().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->deck()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FlyteURLs::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.FlyteURLs) + GOOGLE_DCHECK_NE(&from, this); + const FlyteURLs* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.FlyteURLs) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.FlyteURLs) + MergeFrom(*source); + } +} + +void FlyteURLs::MergeFrom(const FlyteURLs& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.FlyteURLs) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.inputs().size() > 0) { + + inputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inputs_); + } + if (from.outputs().size() > 0) { + + outputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.outputs_); + } + if (from.deck().size() > 0) { + + deck_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_); + } +} + +void FlyteURLs::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.FlyteURLs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FlyteURLs::CopyFrom(const FlyteURLs& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.FlyteURLs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlyteURLs::IsInitialized() const { + return true; +} + +void FlyteURLs::Swap(FlyteURLs* other) { + if (other == this) return; + InternalSwap(other); +} +void FlyteURLs::InternalSwap(FlyteURLs* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + inputs_.Swap(&other->inputs_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + outputs_.Swap(&other->outputs_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + deck_.Swap(&other->deck_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata FlyteURLs::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityIdentifier* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityIdentifier >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityIdentifier >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntity* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntity >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntity >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Sort* Arena::CreateMaybeMessage< ::flyteidl::admin::Sort >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Sort >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityIdentifierListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityIdentifierListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityIdentifierListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityIdentifierList* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityIdentifierList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityIdentifierList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityList* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityUpdateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityUpdateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityUpdateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NamedEntityUpdateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ObjectGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ObjectGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ObjectGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ResourceListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ResourceListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ResourceListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::EmailNotification* Arena::CreateMaybeMessage< ::flyteidl::admin::EmailNotification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::EmailNotification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::PagerDutyNotification* Arena::CreateMaybeMessage< ::flyteidl::admin::PagerDutyNotification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::PagerDutyNotification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SlackNotification* Arena::CreateMaybeMessage< ::flyteidl::admin::SlackNotification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SlackNotification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Notification* Arena::CreateMaybeMessage< ::flyteidl::admin::Notification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Notification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::UrlBlob* Arena::CreateMaybeMessage< ::flyteidl::admin::UrlBlob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::UrlBlob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Labels_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::Labels_ValuesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Labels_ValuesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Labels* Arena::CreateMaybeMessage< ::flyteidl::admin::Labels >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Labels >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Annotations* Arena::CreateMaybeMessage< ::flyteidl::admin::Annotations >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Annotations >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Envs* Arena::CreateMaybeMessage< ::flyteidl::admin::Envs >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Envs >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::AuthRole* Arena::CreateMaybeMessage< ::flyteidl::admin::AuthRole >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::AuthRole >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::RawOutputDataConfig* Arena::CreateMaybeMessage< ::flyteidl::admin::RawOutputDataConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::RawOutputDataConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::FlyteURLs* Arena::CreateMaybeMessage< ::flyteidl::admin::FlyteURLs >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::FlyteURLs >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h new file mode 100644 index 0000000000..b2eb1cb4e5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h @@ -0,0 +1,6137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcommon_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcommon_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/literals.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fcommon_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[26] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto(); +namespace flyteidl { +namespace admin { +class Annotations; +class AnnotationsDefaultTypeInternal; +extern AnnotationsDefaultTypeInternal _Annotations_default_instance_; +class Annotations_ValuesEntry_DoNotUse; +class Annotations_ValuesEntry_DoNotUseDefaultTypeInternal; +extern Annotations_ValuesEntry_DoNotUseDefaultTypeInternal _Annotations_ValuesEntry_DoNotUse_default_instance_; +class AuthRole; +class AuthRoleDefaultTypeInternal; +extern AuthRoleDefaultTypeInternal _AuthRole_default_instance_; +class EmailNotification; +class EmailNotificationDefaultTypeInternal; +extern EmailNotificationDefaultTypeInternal _EmailNotification_default_instance_; +class Envs; +class EnvsDefaultTypeInternal; +extern EnvsDefaultTypeInternal _Envs_default_instance_; +class FlyteURLs; +class FlyteURLsDefaultTypeInternal; +extern FlyteURLsDefaultTypeInternal _FlyteURLs_default_instance_; +class Labels; +class LabelsDefaultTypeInternal; +extern LabelsDefaultTypeInternal _Labels_default_instance_; +class Labels_ValuesEntry_DoNotUse; +class Labels_ValuesEntry_DoNotUseDefaultTypeInternal; +extern Labels_ValuesEntry_DoNotUseDefaultTypeInternal _Labels_ValuesEntry_DoNotUse_default_instance_; +class NamedEntity; +class NamedEntityDefaultTypeInternal; +extern NamedEntityDefaultTypeInternal _NamedEntity_default_instance_; +class NamedEntityGetRequest; +class NamedEntityGetRequestDefaultTypeInternal; +extern NamedEntityGetRequestDefaultTypeInternal _NamedEntityGetRequest_default_instance_; +class NamedEntityIdentifier; +class NamedEntityIdentifierDefaultTypeInternal; +extern NamedEntityIdentifierDefaultTypeInternal _NamedEntityIdentifier_default_instance_; +class NamedEntityIdentifierList; +class NamedEntityIdentifierListDefaultTypeInternal; +extern NamedEntityIdentifierListDefaultTypeInternal _NamedEntityIdentifierList_default_instance_; +class NamedEntityIdentifierListRequest; +class NamedEntityIdentifierListRequestDefaultTypeInternal; +extern NamedEntityIdentifierListRequestDefaultTypeInternal _NamedEntityIdentifierListRequest_default_instance_; +class NamedEntityList; +class NamedEntityListDefaultTypeInternal; +extern NamedEntityListDefaultTypeInternal _NamedEntityList_default_instance_; +class NamedEntityListRequest; +class NamedEntityListRequestDefaultTypeInternal; +extern NamedEntityListRequestDefaultTypeInternal _NamedEntityListRequest_default_instance_; +class NamedEntityMetadata; +class NamedEntityMetadataDefaultTypeInternal; +extern NamedEntityMetadataDefaultTypeInternal _NamedEntityMetadata_default_instance_; +class NamedEntityUpdateRequest; +class NamedEntityUpdateRequestDefaultTypeInternal; +extern NamedEntityUpdateRequestDefaultTypeInternal _NamedEntityUpdateRequest_default_instance_; +class NamedEntityUpdateResponse; +class NamedEntityUpdateResponseDefaultTypeInternal; +extern NamedEntityUpdateResponseDefaultTypeInternal _NamedEntityUpdateResponse_default_instance_; +class Notification; +class NotificationDefaultTypeInternal; +extern NotificationDefaultTypeInternal _Notification_default_instance_; +class ObjectGetRequest; +class ObjectGetRequestDefaultTypeInternal; +extern ObjectGetRequestDefaultTypeInternal _ObjectGetRequest_default_instance_; +class PagerDutyNotification; +class PagerDutyNotificationDefaultTypeInternal; +extern PagerDutyNotificationDefaultTypeInternal _PagerDutyNotification_default_instance_; +class RawOutputDataConfig; +class RawOutputDataConfigDefaultTypeInternal; +extern RawOutputDataConfigDefaultTypeInternal _RawOutputDataConfig_default_instance_; +class ResourceListRequest; +class ResourceListRequestDefaultTypeInternal; +extern ResourceListRequestDefaultTypeInternal _ResourceListRequest_default_instance_; +class SlackNotification; +class SlackNotificationDefaultTypeInternal; +extern SlackNotificationDefaultTypeInternal _SlackNotification_default_instance_; +class Sort; +class SortDefaultTypeInternal; +extern SortDefaultTypeInternal _Sort_default_instance_; +class UrlBlob; +class UrlBlobDefaultTypeInternal; +extern UrlBlobDefaultTypeInternal _UrlBlob_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::Annotations* Arena::CreateMaybeMessage<::flyteidl::admin::Annotations>(Arena*); +template<> ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::Annotations_ValuesEntry_DoNotUse>(Arena*); +template<> ::flyteidl::admin::AuthRole* Arena::CreateMaybeMessage<::flyteidl::admin::AuthRole>(Arena*); +template<> ::flyteidl::admin::EmailNotification* Arena::CreateMaybeMessage<::flyteidl::admin::EmailNotification>(Arena*); +template<> ::flyteidl::admin::Envs* Arena::CreateMaybeMessage<::flyteidl::admin::Envs>(Arena*); +template<> ::flyteidl::admin::FlyteURLs* Arena::CreateMaybeMessage<::flyteidl::admin::FlyteURLs>(Arena*); +template<> ::flyteidl::admin::Labels* Arena::CreateMaybeMessage<::flyteidl::admin::Labels>(Arena*); +template<> ::flyteidl::admin::Labels_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::Labels_ValuesEntry_DoNotUse>(Arena*); +template<> ::flyteidl::admin::NamedEntity* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntity>(Arena*); +template<> ::flyteidl::admin::NamedEntityGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityGetRequest>(Arena*); +template<> ::flyteidl::admin::NamedEntityIdentifier* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(Arena*); +template<> ::flyteidl::admin::NamedEntityIdentifierList* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifierList>(Arena*); +template<> ::flyteidl::admin::NamedEntityIdentifierListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifierListRequest>(Arena*); +template<> ::flyteidl::admin::NamedEntityList* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityList>(Arena*); +template<> ::flyteidl::admin::NamedEntityListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityListRequest>(Arena*); +template<> ::flyteidl::admin::NamedEntityMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityMetadata>(Arena*); +template<> ::flyteidl::admin::NamedEntityUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityUpdateRequest>(Arena*); +template<> ::flyteidl::admin::NamedEntityUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityUpdateResponse>(Arena*); +template<> ::flyteidl::admin::Notification* Arena::CreateMaybeMessage<::flyteidl::admin::Notification>(Arena*); +template<> ::flyteidl::admin::ObjectGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ObjectGetRequest>(Arena*); +template<> ::flyteidl::admin::PagerDutyNotification* Arena::CreateMaybeMessage<::flyteidl::admin::PagerDutyNotification>(Arena*); +template<> ::flyteidl::admin::RawOutputDataConfig* Arena::CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(Arena*); +template<> ::flyteidl::admin::ResourceListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ResourceListRequest>(Arena*); +template<> ::flyteidl::admin::SlackNotification* Arena::CreateMaybeMessage<::flyteidl::admin::SlackNotification>(Arena*); +template<> ::flyteidl::admin::Sort* Arena::CreateMaybeMessage<::flyteidl::admin::Sort>(Arena*); +template<> ::flyteidl::admin::UrlBlob* Arena::CreateMaybeMessage<::flyteidl::admin::UrlBlob>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum Sort_Direction { + Sort_Direction_DESCENDING = 0, + Sort_Direction_ASCENDING = 1, + Sort_Direction_Sort_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + Sort_Direction_Sort_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool Sort_Direction_IsValid(int value); +const Sort_Direction Sort_Direction_Direction_MIN = Sort_Direction_DESCENDING; +const Sort_Direction Sort_Direction_Direction_MAX = Sort_Direction_ASCENDING; +const int Sort_Direction_Direction_ARRAYSIZE = Sort_Direction_Direction_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Sort_Direction_descriptor(); +inline const ::std::string& Sort_Direction_Name(Sort_Direction value) { + return ::google::protobuf::internal::NameOfEnum( + Sort_Direction_descriptor(), value); +} +inline bool Sort_Direction_Parse( + const ::std::string& name, Sort_Direction* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Sort_Direction_descriptor(), name, value); +} +enum NamedEntityState { + NAMED_ENTITY_ACTIVE = 0, + NAMED_ENTITY_ARCHIVED = 1, + SYSTEM_GENERATED = 2, + NamedEntityState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + NamedEntityState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool NamedEntityState_IsValid(int value); +const NamedEntityState NamedEntityState_MIN = NAMED_ENTITY_ACTIVE; +const NamedEntityState NamedEntityState_MAX = SYSTEM_GENERATED; +const int NamedEntityState_ARRAYSIZE = NamedEntityState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NamedEntityState_descriptor(); +inline const ::std::string& NamedEntityState_Name(NamedEntityState value) { + return ::google::protobuf::internal::NameOfEnum( + NamedEntityState_descriptor(), value); +} +inline bool NamedEntityState_Parse( + const ::std::string& name, NamedEntityState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NamedEntityState_descriptor(), name, value); +} +// =================================================================== + +class NamedEntityIdentifier final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifier) */ { + public: + NamedEntityIdentifier(); + virtual ~NamedEntityIdentifier(); + + NamedEntityIdentifier(const NamedEntityIdentifier& from); + + inline NamedEntityIdentifier& operator=(const NamedEntityIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityIdentifier(NamedEntityIdentifier&& from) noexcept + : NamedEntityIdentifier() { + *this = ::std::move(from); + } + + inline NamedEntityIdentifier& operator=(NamedEntityIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityIdentifier* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityIdentifier_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(NamedEntityIdentifier* other); + friend void swap(NamedEntityIdentifier& a, NamedEntityIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityIdentifier* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityIdentifier* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityIdentifier& from); + void MergeFrom(const NamedEntityIdentifier& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 3; + void clear_name(); + static const int kNameFieldNumber = 3; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityMetadata) */ { + public: + NamedEntityMetadata(); + virtual ~NamedEntityMetadata(); + + NamedEntityMetadata(const NamedEntityMetadata& from); + + inline NamedEntityMetadata& operator=(const NamedEntityMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityMetadata(NamedEntityMetadata&& from) noexcept + : NamedEntityMetadata() { + *this = ::std::move(from); + } + + inline NamedEntityMetadata& operator=(NamedEntityMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityMetadata* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(NamedEntityMetadata* other); + friend void swap(NamedEntityMetadata& a, NamedEntityMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityMetadata& from); + void MergeFrom(const NamedEntityMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string description = 1; + void clear_description(); + static const int kDescriptionFieldNumber = 1; + const ::std::string& description() const; + void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif + void set_description(const char* value); + void set_description(const char* value, size_t size); + ::std::string* mutable_description(); + ::std::string* release_description(); + void set_allocated_description(::std::string* description); + + // .flyteidl.admin.NamedEntityState state = 2; + void clear_state(); + static const int kStateFieldNumber = 2; + ::flyteidl::admin::NamedEntityState state() const; + void set_state(::flyteidl::admin::NamedEntityState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr description_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntity final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntity) */ { + public: + NamedEntity(); + virtual ~NamedEntity(); + + NamedEntity(const NamedEntity& from); + + inline NamedEntity& operator=(const NamedEntity& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntity(NamedEntity&& from) noexcept + : NamedEntity() { + *this = ::std::move(from); + } + + inline NamedEntity& operator=(NamedEntity&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntity& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntity* internal_default_instance() { + return reinterpret_cast( + &_NamedEntity_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(NamedEntity* other); + friend void swap(NamedEntity& a, NamedEntity& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntity* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntity* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntity& from); + void MergeFrom(const NamedEntity& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntity* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 2; + const ::flyteidl::admin::NamedEntityIdentifier& id() const; + ::flyteidl::admin::NamedEntityIdentifier* release_id(); + ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::flyteidl::admin::NamedEntityMetadata& metadata() const; + ::flyteidl::admin::NamedEntityMetadata* release_metadata(); + ::flyteidl::admin::NamedEntityMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata); + + // .flyteidl.core.ResourceType resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::core::ResourceType resource_type() const; + void set_resource_type(::flyteidl::core::ResourceType value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::NamedEntityIdentifier* id_; + ::flyteidl::admin::NamedEntityMetadata* metadata_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Sort final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Sort) */ { + public: + Sort(); + virtual ~Sort(); + + Sort(const Sort& from); + + inline Sort& operator=(const Sort& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Sort(Sort&& from) noexcept + : Sort() { + *this = ::std::move(from); + } + + inline Sort& operator=(Sort&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Sort& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Sort* internal_default_instance() { + return reinterpret_cast( + &_Sort_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(Sort* other); + friend void swap(Sort& a, Sort& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Sort* New() const final { + return CreateMaybeMessage(nullptr); + } + + Sort* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Sort& from); + void MergeFrom(const Sort& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Sort* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Sort_Direction Direction; + static const Direction DESCENDING = + Sort_Direction_DESCENDING; + static const Direction ASCENDING = + Sort_Direction_ASCENDING; + static inline bool Direction_IsValid(int value) { + return Sort_Direction_IsValid(value); + } + static const Direction Direction_MIN = + Sort_Direction_Direction_MIN; + static const Direction Direction_MAX = + Sort_Direction_Direction_MAX; + static const int Direction_ARRAYSIZE = + Sort_Direction_Direction_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Direction_descriptor() { + return Sort_Direction_descriptor(); + } + static inline const ::std::string& Direction_Name(Direction value) { + return Sort_Direction_Name(value); + } + static inline bool Direction_Parse(const ::std::string& name, + Direction* value) { + return Sort_Direction_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // .flyteidl.admin.Sort.Direction direction = 2; + void clear_direction(); + static const int kDirectionFieldNumber = 2; + ::flyteidl::admin::Sort_Direction direction() const; + void set_direction(::flyteidl::admin::Sort_Direction value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + int direction_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityIdentifierListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifierListRequest) */ { + public: + NamedEntityIdentifierListRequest(); + virtual ~NamedEntityIdentifierListRequest(); + + NamedEntityIdentifierListRequest(const NamedEntityIdentifierListRequest& from); + + inline NamedEntityIdentifierListRequest& operator=(const NamedEntityIdentifierListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityIdentifierListRequest(NamedEntityIdentifierListRequest&& from) noexcept + : NamedEntityIdentifierListRequest() { + *this = ::std::move(from); + } + + inline NamedEntityIdentifierListRequest& operator=(NamedEntityIdentifierListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityIdentifierListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityIdentifierListRequest* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityIdentifierListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(NamedEntityIdentifierListRequest* other); + friend void swap(NamedEntityIdentifierListRequest& a, NamedEntityIdentifierListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityIdentifierListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityIdentifierListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityIdentifierListRequest& from); + void MergeFrom(const NamedEntityIdentifierListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityIdentifierListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string token = 4; + void clear_token(); + static const int kTokenFieldNumber = 4; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 6; + void clear_filters(); + static const int kFiltersFieldNumber = 6; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 3; + void clear_limit(); + static const int kLimitFieldNumber = 3; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityListRequest) */ { + public: + NamedEntityListRequest(); + virtual ~NamedEntityListRequest(); + + NamedEntityListRequest(const NamedEntityListRequest& from); + + inline NamedEntityListRequest& operator=(const NamedEntityListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityListRequest(NamedEntityListRequest&& from) noexcept + : NamedEntityListRequest() { + *this = ::std::move(from); + } + + inline NamedEntityListRequest& operator=(NamedEntityListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityListRequest* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(NamedEntityListRequest* other); + friend void swap(NamedEntityListRequest& a, NamedEntityListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityListRequest& from); + void MergeFrom(const NamedEntityListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 2; + void clear_project(); + static const int kProjectFieldNumber = 2; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 3; + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string token = 5; + void clear_token(); + static const int kTokenFieldNumber = 5; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 7; + void clear_filters(); + static const int kFiltersFieldNumber = 7; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.admin.Sort sort_by = 6; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 6; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // .flyteidl.core.ResourceType resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::core::ResourceType resource_type() const; + void set_resource_type(::flyteidl::core::ResourceType value); + + // uint32 limit = 4; + void clear_limit(); + static const int kLimitFieldNumber = 4; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::admin::Sort* sort_by_; + int resource_type_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityIdentifierList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifierList) */ { + public: + NamedEntityIdentifierList(); + virtual ~NamedEntityIdentifierList(); + + NamedEntityIdentifierList(const NamedEntityIdentifierList& from); + + inline NamedEntityIdentifierList& operator=(const NamedEntityIdentifierList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityIdentifierList(NamedEntityIdentifierList&& from) noexcept + : NamedEntityIdentifierList() { + *this = ::std::move(from); + } + + inline NamedEntityIdentifierList& operator=(NamedEntityIdentifierList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityIdentifierList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityIdentifierList* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityIdentifierList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(NamedEntityIdentifierList* other); + friend void swap(NamedEntityIdentifierList& a, NamedEntityIdentifierList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityIdentifierList* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityIdentifierList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityIdentifierList& from); + void MergeFrom(const NamedEntityIdentifierList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityIdentifierList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + int entities_size() const; + void clear_entities(); + static const int kEntitiesFieldNumber = 1; + ::flyteidl::admin::NamedEntityIdentifier* mutable_entities(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >* + mutable_entities(); + const ::flyteidl::admin::NamedEntityIdentifier& entities(int index) const; + ::flyteidl::admin::NamedEntityIdentifier* add_entities(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >& + entities() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier > entities_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityList) */ { + public: + NamedEntityList(); + virtual ~NamedEntityList(); + + NamedEntityList(const NamedEntityList& from); + + inline NamedEntityList& operator=(const NamedEntityList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityList(NamedEntityList&& from) noexcept + : NamedEntityList() { + *this = ::std::move(from); + } + + inline NamedEntityList& operator=(NamedEntityList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityList* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(NamedEntityList* other); + friend void swap(NamedEntityList& a, NamedEntityList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityList* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityList& from); + void MergeFrom(const NamedEntityList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.NamedEntity entities = 1; + int entities_size() const; + void clear_entities(); + static const int kEntitiesFieldNumber = 1; + ::flyteidl::admin::NamedEntity* mutable_entities(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >* + mutable_entities(); + const ::flyteidl::admin::NamedEntity& entities(int index) const; + ::flyteidl::admin::NamedEntity* add_entities(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >& + entities() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity > entities_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityGetRequest) */ { + public: + NamedEntityGetRequest(); + virtual ~NamedEntityGetRequest(); + + NamedEntityGetRequest(const NamedEntityGetRequest& from); + + inline NamedEntityGetRequest& operator=(const NamedEntityGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityGetRequest(NamedEntityGetRequest&& from) noexcept + : NamedEntityGetRequest() { + *this = ::std::move(from); + } + + inline NamedEntityGetRequest& operator=(NamedEntityGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityGetRequest* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(NamedEntityGetRequest* other); + friend void swap(NamedEntityGetRequest& a, NamedEntityGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityGetRequest& from); + void MergeFrom(const NamedEntityGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 2; + const ::flyteidl::admin::NamedEntityIdentifier& id() const; + ::flyteidl::admin::NamedEntityIdentifier* release_id(); + ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); + + // .flyteidl.core.ResourceType resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::core::ResourceType resource_type() const; + void set_resource_type(::flyteidl::core::ResourceType value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::NamedEntityIdentifier* id_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityUpdateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityUpdateRequest) */ { + public: + NamedEntityUpdateRequest(); + virtual ~NamedEntityUpdateRequest(); + + NamedEntityUpdateRequest(const NamedEntityUpdateRequest& from); + + inline NamedEntityUpdateRequest& operator=(const NamedEntityUpdateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityUpdateRequest(NamedEntityUpdateRequest&& from) noexcept + : NamedEntityUpdateRequest() { + *this = ::std::move(from); + } + + inline NamedEntityUpdateRequest& operator=(NamedEntityUpdateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityUpdateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityUpdateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(NamedEntityUpdateRequest* other); + friend void swap(NamedEntityUpdateRequest& a, NamedEntityUpdateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityUpdateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityUpdateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityUpdateRequest& from); + void MergeFrom(const NamedEntityUpdateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityUpdateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 2; + const ::flyteidl::admin::NamedEntityIdentifier& id() const; + ::flyteidl::admin::NamedEntityIdentifier* release_id(); + ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); + + // .flyteidl.admin.NamedEntityMetadata metadata = 3; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::flyteidl::admin::NamedEntityMetadata& metadata() const; + ::flyteidl::admin::NamedEntityMetadata* release_metadata(); + ::flyteidl::admin::NamedEntityMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata); + + // .flyteidl.core.ResourceType resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::core::ResourceType resource_type() const; + void set_resource_type(::flyteidl::core::ResourceType value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::NamedEntityIdentifier* id_; + ::flyteidl::admin::NamedEntityMetadata* metadata_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class NamedEntityUpdateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityUpdateResponse) */ { + public: + NamedEntityUpdateResponse(); + virtual ~NamedEntityUpdateResponse(); + + NamedEntityUpdateResponse(const NamedEntityUpdateResponse& from); + + inline NamedEntityUpdateResponse& operator=(const NamedEntityUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityUpdateResponse(NamedEntityUpdateResponse&& from) noexcept + : NamedEntityUpdateResponse() { + *this = ::std::move(from); + } + + inline NamedEntityUpdateResponse& operator=(NamedEntityUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NamedEntityUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityUpdateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(NamedEntityUpdateResponse* other); + friend void swap(NamedEntityUpdateResponse& a, NamedEntityUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityUpdateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + NamedEntityUpdateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NamedEntityUpdateResponse& from); + void MergeFrom(const NamedEntityUpdateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NamedEntityUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class ObjectGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ObjectGetRequest) */ { + public: + ObjectGetRequest(); + virtual ~ObjectGetRequest(); + + ObjectGetRequest(const ObjectGetRequest& from); + + inline ObjectGetRequest& operator=(const ObjectGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ObjectGetRequest(ObjectGetRequest&& from) noexcept + : ObjectGetRequest() { + *this = ::std::move(from); + } + + inline ObjectGetRequest& operator=(ObjectGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ObjectGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ObjectGetRequest* internal_default_instance() { + return reinterpret_cast( + &_ObjectGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(ObjectGetRequest* other); + friend void swap(ObjectGetRequest& a, ObjectGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ObjectGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ObjectGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ObjectGetRequest& from); + void MergeFrom(const ObjectGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ObjectGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourceListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ResourceListRequest) */ { + public: + ResourceListRequest(); + virtual ~ResourceListRequest(); + + ResourceListRequest(const ResourceListRequest& from); + + inline ResourceListRequest& operator=(const ResourceListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ResourceListRequest(ResourceListRequest&& from) noexcept + : ResourceListRequest() { + *this = ::std::move(from); + } + + inline ResourceListRequest& operator=(ResourceListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ResourceListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ResourceListRequest* internal_default_instance() { + return reinterpret_cast( + &_ResourceListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(ResourceListRequest* other); + friend void swap(ResourceListRequest& a, ResourceListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ResourceListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ResourceListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ResourceListRequest& from); + void MergeFrom(const ResourceListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourceListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::admin::NamedEntityIdentifier& id() const; + ::flyteidl::admin::NamedEntityIdentifier* release_id(); + ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::admin::NamedEntityIdentifier* id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class EmailNotification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EmailNotification) */ { + public: + EmailNotification(); + virtual ~EmailNotification(); + + EmailNotification(const EmailNotification& from); + + inline EmailNotification& operator=(const EmailNotification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EmailNotification(EmailNotification&& from) noexcept + : EmailNotification() { + *this = ::std::move(from); + } + + inline EmailNotification& operator=(EmailNotification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const EmailNotification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EmailNotification* internal_default_instance() { + return reinterpret_cast( + &_EmailNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(EmailNotification* other); + friend void swap(EmailNotification& a, EmailNotification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EmailNotification* New() const final { + return CreateMaybeMessage(nullptr); + } + + EmailNotification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EmailNotification& from); + void MergeFrom(const EmailNotification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EmailNotification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class PagerDutyNotification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.PagerDutyNotification) */ { + public: + PagerDutyNotification(); + virtual ~PagerDutyNotification(); + + PagerDutyNotification(const PagerDutyNotification& from); + + inline PagerDutyNotification& operator=(const PagerDutyNotification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PagerDutyNotification(PagerDutyNotification&& from) noexcept + : PagerDutyNotification() { + *this = ::std::move(from); + } + + inline PagerDutyNotification& operator=(PagerDutyNotification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PagerDutyNotification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PagerDutyNotification* internal_default_instance() { + return reinterpret_cast( + &_PagerDutyNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(PagerDutyNotification* other); + friend void swap(PagerDutyNotification& a, PagerDutyNotification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PagerDutyNotification* New() const final { + return CreateMaybeMessage(nullptr); + } + + PagerDutyNotification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PagerDutyNotification& from); + void MergeFrom(const PagerDutyNotification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PagerDutyNotification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class SlackNotification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SlackNotification) */ { + public: + SlackNotification(); + virtual ~SlackNotification(); + + SlackNotification(const SlackNotification& from); + + inline SlackNotification& operator=(const SlackNotification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SlackNotification(SlackNotification&& from) noexcept + : SlackNotification() { + *this = ::std::move(from); + } + + inline SlackNotification& operator=(SlackNotification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SlackNotification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SlackNotification* internal_default_instance() { + return reinterpret_cast( + &_SlackNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(SlackNotification* other); + friend void swap(SlackNotification& a, SlackNotification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SlackNotification* New() const final { + return CreateMaybeMessage(nullptr); + } + + SlackNotification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SlackNotification& from); + void MergeFrom(const SlackNotification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SlackNotification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Notification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Notification) */ { + public: + Notification(); + virtual ~Notification(); + + Notification(const Notification& from); + + inline Notification& operator=(const Notification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Notification(Notification&& from) noexcept + : Notification() { + *this = ::std::move(from); + } + + inline Notification& operator=(Notification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Notification& default_instance(); + + enum TypeCase { + kEmail = 2, + kPagerDuty = 3, + kSlack = 4, + TYPE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Notification* internal_default_instance() { + return reinterpret_cast( + &_Notification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(Notification* other); + friend void swap(Notification& a, Notification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Notification* New() const final { + return CreateMaybeMessage(nullptr); + } + + Notification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Notification& from); + void MergeFrom(const Notification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Notification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + int phases_size() const; + void clear_phases(); + static const int kPhasesFieldNumber = 1; + ::flyteidl::core::WorkflowExecution_Phase phases(int index) const; + void set_phases(int index, ::flyteidl::core::WorkflowExecution_Phase value); + void add_phases(::flyteidl::core::WorkflowExecution_Phase value); + const ::google::protobuf::RepeatedField& phases() const; + ::google::protobuf::RepeatedField* mutable_phases(); + + // .flyteidl.admin.EmailNotification email = 2; + bool has_email() const; + void clear_email(); + static const int kEmailFieldNumber = 2; + const ::flyteidl::admin::EmailNotification& email() const; + ::flyteidl::admin::EmailNotification* release_email(); + ::flyteidl::admin::EmailNotification* mutable_email(); + void set_allocated_email(::flyteidl::admin::EmailNotification* email); + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + bool has_pager_duty() const; + void clear_pager_duty(); + static const int kPagerDutyFieldNumber = 3; + const ::flyteidl::admin::PagerDutyNotification& pager_duty() const; + ::flyteidl::admin::PagerDutyNotification* release_pager_duty(); + ::flyteidl::admin::PagerDutyNotification* mutable_pager_duty(); + void set_allocated_pager_duty(::flyteidl::admin::PagerDutyNotification* pager_duty); + + // .flyteidl.admin.SlackNotification slack = 4; + bool has_slack() const; + void clear_slack(); + static const int kSlackFieldNumber = 4; + const ::flyteidl::admin::SlackNotification& slack() const; + ::flyteidl::admin::SlackNotification* release_slack(); + ::flyteidl::admin::SlackNotification* mutable_slack(); + void set_allocated_slack(::flyteidl::admin::SlackNotification* slack); + + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) + private: + class HasBitSetters; + void set_has_email(); + void set_has_pager_duty(); + void set_has_slack(); + + inline bool has_type() const; + inline void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedField phases_; + mutable std::atomic _phases_cached_byte_size_; + union TypeUnion { + TypeUnion() {} + ::flyteidl::admin::EmailNotification* email_; + ::flyteidl::admin::PagerDutyNotification* pager_duty_; + ::flyteidl::admin::SlackNotification* slack_; + } type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class UrlBlob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.UrlBlob) */ { + public: + UrlBlob(); + virtual ~UrlBlob(); + + UrlBlob(const UrlBlob& from); + + inline UrlBlob& operator=(const UrlBlob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UrlBlob(UrlBlob&& from) noexcept + : UrlBlob() { + *this = ::std::move(from); + } + + inline UrlBlob& operator=(UrlBlob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const UrlBlob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UrlBlob* internal_default_instance() { + return reinterpret_cast( + &_UrlBlob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(UrlBlob* other); + friend void swap(UrlBlob& a, UrlBlob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UrlBlob* New() const final { + return CreateMaybeMessage(nullptr); + } + + UrlBlob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const UrlBlob& from); + void MergeFrom(const UrlBlob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UrlBlob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string url = 1; + void clear_url(); + static const int kUrlFieldNumber = 1; + const ::std::string& url() const; + void set_url(const ::std::string& value); + #if LANG_CXX11 + void set_url(::std::string&& value); + #endif + void set_url(const char* value); + void set_url(const char* value, size_t size); + ::std::string* mutable_url(); + ::std::string* release_url(); + void set_allocated_url(::std::string* url); + + // int64 bytes = 2; + void clear_bytes(); + static const int kBytesFieldNumber = 2; + ::google::protobuf::int64 bytes() const; + void set_bytes(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr url_; + ::google::protobuf::int64 bytes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Labels_ValuesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + Labels_ValuesEntry_DoNotUse(); + Labels_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const Labels_ValuesEntry_DoNotUse& other); + static const Labels_ValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Labels_ValuesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class Labels final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Labels) */ { + public: + Labels(); + virtual ~Labels(); + + Labels(const Labels& from); + + inline Labels& operator=(const Labels& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Labels(Labels&& from) noexcept + : Labels() { + *this = ::std::move(from); + } + + inline Labels& operator=(Labels&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Labels& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Labels* internal_default_instance() { + return reinterpret_cast( + &_Labels_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(Labels* other); + friend void swap(Labels& a, Labels& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Labels* New() const final { + return CreateMaybeMessage(nullptr); + } + + Labels* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Labels& from); + void MergeFrom(const Labels& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Labels* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + values() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + Labels_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Annotations_ValuesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + Annotations_ValuesEntry_DoNotUse(); + Annotations_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const Annotations_ValuesEntry_DoNotUse& other); + static const Annotations_ValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Annotations_ValuesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class Annotations final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Annotations) */ { + public: + Annotations(); + virtual ~Annotations(); + + Annotations(const Annotations& from); + + inline Annotations& operator=(const Annotations& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Annotations(Annotations&& from) noexcept + : Annotations() { + *this = ::std::move(from); + } + + inline Annotations& operator=(Annotations&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Annotations& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Annotations* internal_default_instance() { + return reinterpret_cast( + &_Annotations_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(Annotations* other); + friend void swap(Annotations& a, Annotations& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Annotations* New() const final { + return CreateMaybeMessage(nullptr); + } + + Annotations* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Annotations& from); + void MergeFrom(const Annotations& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Annotations* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + values() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + Annotations_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class Envs final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Envs) */ { + public: + Envs(); + virtual ~Envs(); + + Envs(const Envs& from); + + inline Envs& operator=(const Envs& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Envs(Envs&& from) noexcept + : Envs() { + *this = ::std::move(from); + } + + inline Envs& operator=(Envs&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Envs& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Envs* internal_default_instance() { + return reinterpret_cast( + &_Envs_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(Envs* other); + friend void swap(Envs& a, Envs& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Envs* New() const final { + return CreateMaybeMessage(nullptr); + } + + Envs* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Envs& from); + void MergeFrom(const Envs& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Envs* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.KeyValuePair values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + ::flyteidl::core::KeyValuePair* mutable_values(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* + mutable_values(); + const ::flyteidl::core::KeyValuePair& values(int index) const; + ::flyteidl::core::KeyValuePair* add_values(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& + values() const; + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Envs) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class AuthRole final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.AuthRole) */ { + public: + AuthRole(); + virtual ~AuthRole(); + + AuthRole(const AuthRole& from); + + inline AuthRole& operator=(const AuthRole& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AuthRole(AuthRole&& from) noexcept + : AuthRole() { + *this = ::std::move(from); + } + + inline AuthRole& operator=(AuthRole&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AuthRole& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AuthRole* internal_default_instance() { + return reinterpret_cast( + &_AuthRole_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + void Swap(AuthRole* other); + friend void swap(AuthRole& a, AuthRole& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AuthRole* New() const final { + return CreateMaybeMessage(nullptr); + } + + AuthRole* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AuthRole& from); + void MergeFrom(const AuthRole& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AuthRole* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string assumable_iam_role = 1; + void clear_assumable_iam_role(); + static const int kAssumableIamRoleFieldNumber = 1; + const ::std::string& assumable_iam_role() const; + void set_assumable_iam_role(const ::std::string& value); + #if LANG_CXX11 + void set_assumable_iam_role(::std::string&& value); + #endif + void set_assumable_iam_role(const char* value); + void set_assumable_iam_role(const char* value, size_t size); + ::std::string* mutable_assumable_iam_role(); + ::std::string* release_assumable_iam_role(); + void set_allocated_assumable_iam_role(::std::string* assumable_iam_role); + + // string kubernetes_service_account = 2; + void clear_kubernetes_service_account(); + static const int kKubernetesServiceAccountFieldNumber = 2; + const ::std::string& kubernetes_service_account() const; + void set_kubernetes_service_account(const ::std::string& value); + #if LANG_CXX11 + void set_kubernetes_service_account(::std::string&& value); + #endif + void set_kubernetes_service_account(const char* value); + void set_kubernetes_service_account(const char* value, size_t size); + ::std::string* mutable_kubernetes_service_account(); + ::std::string* release_kubernetes_service_account(); + void set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr assumable_iam_role_; + ::google::protobuf::internal::ArenaStringPtr kubernetes_service_account_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class RawOutputDataConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.RawOutputDataConfig) */ { + public: + RawOutputDataConfig(); + virtual ~RawOutputDataConfig(); + + RawOutputDataConfig(const RawOutputDataConfig& from); + + inline RawOutputDataConfig& operator=(const RawOutputDataConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RawOutputDataConfig(RawOutputDataConfig&& from) noexcept + : RawOutputDataConfig() { + *this = ::std::move(from); + } + + inline RawOutputDataConfig& operator=(RawOutputDataConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const RawOutputDataConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RawOutputDataConfig* internal_default_instance() { + return reinterpret_cast( + &_RawOutputDataConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + void Swap(RawOutputDataConfig* other); + friend void swap(RawOutputDataConfig& a, RawOutputDataConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RawOutputDataConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + RawOutputDataConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RawOutputDataConfig& from); + void MergeFrom(const RawOutputDataConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RawOutputDataConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string output_location_prefix = 1; + void clear_output_location_prefix(); + static const int kOutputLocationPrefixFieldNumber = 1; + const ::std::string& output_location_prefix() const; + void set_output_location_prefix(const ::std::string& value); + #if LANG_CXX11 + void set_output_location_prefix(::std::string&& value); + #endif + void set_output_location_prefix(const char* value); + void set_output_location_prefix(const char* value, size_t size); + ::std::string* mutable_output_location_prefix(); + ::std::string* release_output_location_prefix(); + void set_allocated_output_location_prefix(::std::string* output_location_prefix); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.RawOutputDataConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr output_location_prefix_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class FlyteURLs final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.FlyteURLs) */ { + public: + FlyteURLs(); + virtual ~FlyteURLs(); + + FlyteURLs(const FlyteURLs& from); + + inline FlyteURLs& operator=(const FlyteURLs& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FlyteURLs(FlyteURLs&& from) noexcept + : FlyteURLs() { + *this = ::std::move(from); + } + + inline FlyteURLs& operator=(FlyteURLs&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const FlyteURLs& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FlyteURLs* internal_default_instance() { + return reinterpret_cast( + &_FlyteURLs_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + void Swap(FlyteURLs* other); + friend void swap(FlyteURLs& a, FlyteURLs& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FlyteURLs* New() const final { + return CreateMaybeMessage(nullptr); + } + + FlyteURLs* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FlyteURLs& from); + void MergeFrom(const FlyteURLs& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FlyteURLs* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string inputs = 1; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::std::string& inputs() const; + void set_inputs(const ::std::string& value); + #if LANG_CXX11 + void set_inputs(::std::string&& value); + #endif + void set_inputs(const char* value); + void set_inputs(const char* value, size_t size); + ::std::string* mutable_inputs(); + ::std::string* release_inputs(); + void set_allocated_inputs(::std::string* inputs); + + // string outputs = 2; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::std::string& outputs() const; + void set_outputs(const ::std::string& value); + #if LANG_CXX11 + void set_outputs(::std::string&& value); + #endif + void set_outputs(const char* value); + void set_outputs(const char* value, size_t size); + ::std::string* mutable_outputs(); + ::std::string* release_outputs(); + void set_allocated_outputs(::std::string* outputs); + + // string deck = 3; + void clear_deck(); + static const int kDeckFieldNumber = 3; + const ::std::string& deck() const; + void set_deck(const ::std::string& value); + #if LANG_CXX11 + void set_deck(::std::string&& value); + #endif + void set_deck(const char* value); + void set_deck(const char* value, size_t size); + ::std::string* mutable_deck(); + ::std::string* release_deck(); + void set_allocated_deck(::std::string* deck); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FlyteURLs) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr inputs_; + ::google::protobuf::internal::ArenaStringPtr outputs_; + ::google::protobuf::internal::ArenaStringPtr deck_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// NamedEntityIdentifier + +// string project = 1; +inline void NamedEntityIdentifier::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifier::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.project) + return project_.GetNoArena(); +} +inline void NamedEntityIdentifier::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.project) +} +#if LANG_CXX11 +inline void NamedEntityIdentifier::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.project) +} +#endif +inline void NamedEntityIdentifier::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.project) +} +inline void NamedEntityIdentifier::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.project) +} +inline ::std::string* NamedEntityIdentifier::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifier::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifier::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.project) +} + +// string domain = 2; +inline void NamedEntityIdentifier::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifier::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.domain) + return domain_.GetNoArena(); +} +inline void NamedEntityIdentifier::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.domain) +} +#if LANG_CXX11 +inline void NamedEntityIdentifier::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.domain) +} +#endif +inline void NamedEntityIdentifier::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.domain) +} +inline void NamedEntityIdentifier::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.domain) +} +inline ::std::string* NamedEntityIdentifier::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifier::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifier::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.domain) +} + +// string name = 3; +inline void NamedEntityIdentifier::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifier::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.name) + return name_.GetNoArena(); +} +inline void NamedEntityIdentifier::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.name) +} +#if LANG_CXX11 +inline void NamedEntityIdentifier::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.name) +} +#endif +inline void NamedEntityIdentifier::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.name) +} +inline void NamedEntityIdentifier::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.name) +} +inline ::std::string* NamedEntityIdentifier::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifier::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifier::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.name) +} + +// ------------------------------------------------------------------- + +// NamedEntityMetadata + +// string description = 1; +inline void NamedEntityMetadata::clear_description() { + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityMetadata::description() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityMetadata.description) + return description_.GetNoArena(); +} +inline void NamedEntityMetadata::set_description(const ::std::string& value) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityMetadata.description) +} +#if LANG_CXX11 +inline void NamedEntityMetadata::set_description(::std::string&& value) { + + description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityMetadata.description) +} +#endif +inline void NamedEntityMetadata::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityMetadata.description) +} +inline void NamedEntityMetadata::set_description(const char* value, size_t size) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityMetadata.description) +} +inline ::std::string* NamedEntityMetadata::mutable_description() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityMetadata.description) + return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityMetadata::release_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityMetadata.description) + + return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityMetadata::set_allocated_description(::std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityMetadata.description) +} + +// .flyteidl.admin.NamedEntityState state = 2; +inline void NamedEntityMetadata::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::NamedEntityState NamedEntityMetadata::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityMetadata.state) + return static_cast< ::flyteidl::admin::NamedEntityState >(state_); +} +inline void NamedEntityMetadata::set_state(::flyteidl::admin::NamedEntityState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityMetadata.state) +} + +// ------------------------------------------------------------------- + +// NamedEntity + +// .flyteidl.core.ResourceType resource_type = 1; +inline void NamedEntity::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::core::ResourceType NamedEntity::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntity.resource_type) + return static_cast< ::flyteidl::core::ResourceType >(resource_type_); +} +inline void NamedEntity::set_resource_type(::flyteidl::core::ResourceType value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntity.resource_type) +} + +// .flyteidl.admin.NamedEntityIdentifier id = 2; +inline bool NamedEntity::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline void NamedEntity::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntity::id() const { + const ::flyteidl::admin::NamedEntityIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntity.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntity::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntity.id) + + ::flyteidl::admin::NamedEntityIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntity::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntity.id) + return id_; +} +inline void NamedEntity::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntity.id) +} + +// .flyteidl.admin.NamedEntityMetadata metadata = 3; +inline bool NamedEntity::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void NamedEntity::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::admin::NamedEntityMetadata& NamedEntity::metadata() const { + const ::flyteidl::admin::NamedEntityMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntity.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityMetadata_default_instance_); +} +inline ::flyteidl::admin::NamedEntityMetadata* NamedEntity::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntity.metadata) + + ::flyteidl::admin::NamedEntityMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityMetadata* NamedEntity::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntity.metadata) + return metadata_; +} +inline void NamedEntity::set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntity.metadata) +} + +// ------------------------------------------------------------------- + +// Sort + +// string key = 1; +inline void Sort::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Sort::key() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Sort.key) + return key_.GetNoArena(); +} +inline void Sort::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Sort.key) +} +#if LANG_CXX11 +inline void Sort::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Sort.key) +} +#endif +inline void Sort::set_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Sort.key) +} +inline void Sort::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Sort.key) +} +inline ::std::string* Sort::mutable_key() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Sort.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Sort::release_key() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Sort.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Sort::set_allocated_key(::std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Sort.key) +} + +// .flyteidl.admin.Sort.Direction direction = 2; +inline void Sort::clear_direction() { + direction_ = 0; +} +inline ::flyteidl::admin::Sort_Direction Sort::direction() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Sort.direction) + return static_cast< ::flyteidl::admin::Sort_Direction >(direction_); +} +inline void Sort::set_direction(::flyteidl::admin::Sort_Direction value) { + + direction_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.Sort.direction) +} + +// ------------------------------------------------------------------- + +// NamedEntityIdentifierListRequest + +// string project = 1; +inline void NamedEntityIdentifierListRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierListRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.project) + return project_.GetNoArena(); +} +inline void NamedEntityIdentifierListRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierListRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +#endif +inline void NamedEntityIdentifierListRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +inline void NamedEntityIdentifierListRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +inline ::std::string* NamedEntityIdentifierListRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierListRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierListRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} + +// string domain = 2; +inline void NamedEntityIdentifierListRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierListRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.domain) + return domain_.GetNoArena(); +} +inline void NamedEntityIdentifierListRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierListRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +#endif +inline void NamedEntityIdentifierListRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +inline void NamedEntityIdentifierListRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +inline ::std::string* NamedEntityIdentifierListRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierListRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierListRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} + +// uint32 limit = 3; +inline void NamedEntityIdentifierListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 NamedEntityIdentifierListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.limit) + return limit_; +} +inline void NamedEntityIdentifierListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.limit) +} + +// string token = 4; +inline void NamedEntityIdentifierListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.token) + return token_.GetNoArena(); +} +inline void NamedEntityIdentifierListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +#endif +inline void NamedEntityIdentifierListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +inline void NamedEntityIdentifierListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +inline ::std::string* NamedEntityIdentifierListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool NamedEntityIdentifierListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline void NamedEntityIdentifierListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +inline const ::flyteidl::admin::Sort& NamedEntityIdentifierListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* NamedEntityIdentifierListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* NamedEntityIdentifierListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) + return sort_by_; +} +inline void NamedEntityIdentifierListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete sort_by_; + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) +} + +// string filters = 6; +inline void NamedEntityIdentifierListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.filters) + return filters_.GetNoArena(); +} +inline void NamedEntityIdentifierListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.filters) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.filters) +} +#endif +inline void NamedEntityIdentifierListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.filters) +} +inline void NamedEntityIdentifierListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.filters) +} +inline ::std::string* NamedEntityIdentifierListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.filters) +} + +// ------------------------------------------------------------------- + +// NamedEntityListRequest + +// .flyteidl.core.ResourceType resource_type = 1; +inline void NamedEntityListRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::core::ResourceType NamedEntityListRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.resource_type) + return static_cast< ::flyteidl::core::ResourceType >(resource_type_); +} +inline void NamedEntityListRequest::set_resource_type(::flyteidl::core::ResourceType value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.resource_type) +} + +// string project = 2; +inline void NamedEntityListRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityListRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.project) + return project_.GetNoArena(); +} +inline void NamedEntityListRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.project) +} +#if LANG_CXX11 +inline void NamedEntityListRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.project) +} +#endif +inline void NamedEntityListRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.project) +} +inline void NamedEntityListRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.project) +} +inline ::std::string* NamedEntityListRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityListRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityListRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.project) +} + +// string domain = 3; +inline void NamedEntityListRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityListRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.domain) + return domain_.GetNoArena(); +} +inline void NamedEntityListRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.domain) +} +#if LANG_CXX11 +inline void NamedEntityListRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.domain) +} +#endif +inline void NamedEntityListRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.domain) +} +inline void NamedEntityListRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.domain) +} +inline ::std::string* NamedEntityListRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityListRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityListRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.domain) +} + +// uint32 limit = 4; +inline void NamedEntityListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 NamedEntityListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.limit) + return limit_; +} +inline void NamedEntityListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.limit) +} + +// string token = 5; +inline void NamedEntityListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.token) + return token_.GetNoArena(); +} +inline void NamedEntityListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.token) +} +#if LANG_CXX11 +inline void NamedEntityListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.token) +} +#endif +inline void NamedEntityListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.token) +} +inline void NamedEntityListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.token) +} +inline ::std::string* NamedEntityListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.token) +} + +// .flyteidl.admin.Sort sort_by = 6; +inline bool NamedEntityListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline void NamedEntityListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +inline const ::flyteidl::admin::Sort& NamedEntityListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* NamedEntityListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* NamedEntityListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.sort_by) + return sort_by_; +} +inline void NamedEntityListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete sort_by_; + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.sort_by) +} + +// string filters = 7; +inline void NamedEntityListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.filters) + return filters_.GetNoArena(); +} +inline void NamedEntityListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.filters) +} +#if LANG_CXX11 +inline void NamedEntityListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.filters) +} +#endif +inline void NamedEntityListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.filters) +} +inline void NamedEntityListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.filters) +} +inline ::std::string* NamedEntityListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.filters) +} + +// ------------------------------------------------------------------- + +// NamedEntityIdentifierList + +// repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; +inline int NamedEntityIdentifierList::entities_size() const { + return entities_.size(); +} +inline void NamedEntityIdentifierList::clear_entities() { + entities_.Clear(); +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityIdentifierList::mutable_entities(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >* +NamedEntityIdentifierList::mutable_entities() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NamedEntityIdentifierList.entities) + return &entities_; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntityIdentifierList::entities(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_.Get(index); +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityIdentifierList::add_entities() { + // @@protoc_insertion_point(field_add:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >& +NamedEntityIdentifierList::entities() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_; +} + +// string token = 2; +inline void NamedEntityIdentifierList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierList.token) + return token_.GetNoArena(); +} +inline void NamedEntityIdentifierList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierList.token) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierList.token) +} +#endif +inline void NamedEntityIdentifierList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierList.token) +} +inline void NamedEntityIdentifierList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierList.token) +} +inline ::std::string* NamedEntityIdentifierList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierList.token) +} + +// ------------------------------------------------------------------- + +// NamedEntityList + +// repeated .flyteidl.admin.NamedEntity entities = 1; +inline int NamedEntityList::entities_size() const { + return entities_.size(); +} +inline void NamedEntityList::clear_entities() { + entities_.Clear(); +} +inline ::flyteidl::admin::NamedEntity* NamedEntityList::mutable_entities(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityList.entities) + return entities_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >* +NamedEntityList::mutable_entities() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NamedEntityList.entities) + return &entities_; +} +inline const ::flyteidl::admin::NamedEntity& NamedEntityList::entities(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityList.entities) + return entities_.Get(index); +} +inline ::flyteidl::admin::NamedEntity* NamedEntityList::add_entities() { + // @@protoc_insertion_point(field_add:flyteidl.admin.NamedEntityList.entities) + return entities_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >& +NamedEntityList::entities() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.NamedEntityList.entities) + return entities_; +} + +// string token = 2; +inline void NamedEntityList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityList.token) + return token_.GetNoArena(); +} +inline void NamedEntityList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityList.token) +} +#if LANG_CXX11 +inline void NamedEntityList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityList.token) +} +#endif +inline void NamedEntityList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityList.token) +} +inline void NamedEntityList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityList.token) +} +inline ::std::string* NamedEntityList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityList.token) +} + +// ------------------------------------------------------------------- + +// NamedEntityGetRequest + +// .flyteidl.core.ResourceType resource_type = 1; +inline void NamedEntityGetRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::core::ResourceType NamedEntityGetRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityGetRequest.resource_type) + return static_cast< ::flyteidl::core::ResourceType >(resource_type_); +} +inline void NamedEntityGetRequest::set_resource_type(::flyteidl::core::ResourceType value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityGetRequest.resource_type) +} + +// .flyteidl.admin.NamedEntityIdentifier id = 2; +inline bool NamedEntityGetRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline void NamedEntityGetRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntityGetRequest::id() const { + const ::flyteidl::admin::NamedEntityIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityGetRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityGetRequest.id) + + ::flyteidl::admin::NamedEntityIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityGetRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityGetRequest.id) + return id_; +} +inline void NamedEntityGetRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityGetRequest.id) +} + +// ------------------------------------------------------------------- + +// NamedEntityUpdateRequest + +// .flyteidl.core.ResourceType resource_type = 1; +inline void NamedEntityUpdateRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::core::ResourceType NamedEntityUpdateRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityUpdateRequest.resource_type) + return static_cast< ::flyteidl::core::ResourceType >(resource_type_); +} +inline void NamedEntityUpdateRequest::set_resource_type(::flyteidl::core::ResourceType value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityUpdateRequest.resource_type) +} + +// .flyteidl.admin.NamedEntityIdentifier id = 2; +inline bool NamedEntityUpdateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline void NamedEntityUpdateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntityUpdateRequest::id() const { + const ::flyteidl::admin::NamedEntityIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityUpdateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityUpdateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityUpdateRequest.id) + + ::flyteidl::admin::NamedEntityIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityUpdateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityUpdateRequest.id) + return id_; +} +inline void NamedEntityUpdateRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityUpdateRequest.id) +} + +// .flyteidl.admin.NamedEntityMetadata metadata = 3; +inline bool NamedEntityUpdateRequest::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void NamedEntityUpdateRequest::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::admin::NamedEntityMetadata& NamedEntityUpdateRequest::metadata() const { + const ::flyteidl::admin::NamedEntityMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityUpdateRequest.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityMetadata_default_instance_); +} +inline ::flyteidl::admin::NamedEntityMetadata* NamedEntityUpdateRequest::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityUpdateRequest.metadata) + + ::flyteidl::admin::NamedEntityMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityMetadata* NamedEntityUpdateRequest::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityUpdateRequest.metadata) + return metadata_; +} +inline void NamedEntityUpdateRequest::set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityUpdateRequest.metadata) +} + +// ------------------------------------------------------------------- + +// NamedEntityUpdateResponse + +// ------------------------------------------------------------------- + +// ObjectGetRequest + +// .flyteidl.core.Identifier id = 1; +inline bool ObjectGetRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& ObjectGetRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ObjectGetRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* ObjectGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ObjectGetRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* ObjectGetRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ObjectGetRequest.id) + return id_; +} +inline void ObjectGetRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ObjectGetRequest.id) +} + +// ------------------------------------------------------------------- + +// ResourceListRequest + +// .flyteidl.admin.NamedEntityIdentifier id = 1; +inline bool ResourceListRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline void ResourceListRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& ResourceListRequest::id() const { + const ::flyteidl::admin::NamedEntityIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); +} +inline ::flyteidl::admin::NamedEntityIdentifier* ResourceListRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.id) + + ::flyteidl::admin::NamedEntityIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityIdentifier* ResourceListRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.id) + return id_; +} +inline void ResourceListRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.id) +} + +// uint32 limit = 2; +inline void ResourceListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 ResourceListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.limit) + return limit_; +} +inline void ResourceListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.limit) +} + +// string token = 3; +inline void ResourceListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.token) + return token_.GetNoArena(); +} +inline void ResourceListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.token) +} +#if LANG_CXX11 +inline void ResourceListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ResourceListRequest.token) +} +#endif +inline void ResourceListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ResourceListRequest.token) +} +inline void ResourceListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ResourceListRequest.token) +} +inline ::std::string* ResourceListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.token) +} + +// string filters = 4; +inline void ResourceListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.filters) + return filters_.GetNoArena(); +} +inline void ResourceListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.filters) +} +#if LANG_CXX11 +inline void ResourceListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ResourceListRequest.filters) +} +#endif +inline void ResourceListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ResourceListRequest.filters) +} +inline void ResourceListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ResourceListRequest.filters) +} +inline ::std::string* ResourceListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool ResourceListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline void ResourceListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +inline const ::flyteidl::admin::Sort& ResourceListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* ResourceListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* ResourceListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.sort_by) + return sort_by_; +} +inline void ResourceListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete sort_by_; + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// EmailNotification + +// repeated string recipients_email = 1; +inline int EmailNotification::recipients_email_size() const { + return recipients_email_.size(); +} +inline void EmailNotification::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& EmailNotification::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* EmailNotification::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_.Mutable(index); +} +inline void EmailNotification::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailNotification.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void EmailNotification::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailNotification.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void EmailNotification::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailNotification.recipients_email) +} +inline void EmailNotification::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailNotification.recipients_email) +} +inline ::std::string* EmailNotification::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_.Add(); +} +inline void EmailNotification::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailNotification.recipients_email) +} +#if LANG_CXX11 +inline void EmailNotification::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailNotification.recipients_email) +} +#endif +inline void EmailNotification::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.EmailNotification.recipients_email) +} +inline void EmailNotification::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.EmailNotification.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +EmailNotification::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +EmailNotification::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.EmailNotification.recipients_email) + return &recipients_email_; +} + +// ------------------------------------------------------------------- + +// PagerDutyNotification + +// repeated string recipients_email = 1; +inline int PagerDutyNotification::recipients_email_size() const { + return recipients_email_.size(); +} +inline void PagerDutyNotification::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& PagerDutyNotification::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* PagerDutyNotification::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_.Mutable(index); +} +inline void PagerDutyNotification::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.PagerDutyNotification.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void PagerDutyNotification::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.PagerDutyNotification.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void PagerDutyNotification::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline void PagerDutyNotification::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline ::std::string* PagerDutyNotification::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_.Add(); +} +inline void PagerDutyNotification::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.PagerDutyNotification.recipients_email) +} +#if LANG_CXX11 +inline void PagerDutyNotification::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.PagerDutyNotification.recipients_email) +} +#endif +inline void PagerDutyNotification::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline void PagerDutyNotification::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +PagerDutyNotification::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +PagerDutyNotification::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.PagerDutyNotification.recipients_email) + return &recipients_email_; +} + +// ------------------------------------------------------------------- + +// SlackNotification + +// repeated string recipients_email = 1; +inline int SlackNotification::recipients_email_size() const { + return recipients_email_.size(); +} +inline void SlackNotification::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& SlackNotification::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* SlackNotification::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_.Mutable(index); +} +inline void SlackNotification::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.SlackNotification.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void SlackNotification::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.SlackNotification.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void SlackNotification::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SlackNotification.recipients_email) +} +inline void SlackNotification::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SlackNotification.recipients_email) +} +inline ::std::string* SlackNotification::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_.Add(); +} +inline void SlackNotification::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.SlackNotification.recipients_email) +} +#if LANG_CXX11 +inline void SlackNotification::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.SlackNotification.recipients_email) +} +#endif +inline void SlackNotification::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.SlackNotification.recipients_email) +} +inline void SlackNotification::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.SlackNotification.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +SlackNotification::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +SlackNotification::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.SlackNotification.recipients_email) + return &recipients_email_; +} + +// ------------------------------------------------------------------- + +// Notification + +// repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; +inline int Notification::phases_size() const { + return phases_.size(); +} +inline void Notification::clear_phases() { + phases_.Clear(); +} +inline ::flyteidl::core::WorkflowExecution_Phase Notification::phases(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.phases) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phases_.Get(index)); +} +inline void Notification::set_phases(int index, ::flyteidl::core::WorkflowExecution_Phase value) { + phases_.Set(index, value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Notification.phases) +} +inline void Notification::add_phases(::flyteidl::core::WorkflowExecution_Phase value) { + phases_.Add(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.Notification.phases) +} +inline const ::google::protobuf::RepeatedField& +Notification::phases() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Notification.phases) + return phases_; +} +inline ::google::protobuf::RepeatedField* +Notification::mutable_phases() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Notification.phases) + return &phases_; +} + +// .flyteidl.admin.EmailNotification email = 2; +inline bool Notification::has_email() const { + return type_case() == kEmail; +} +inline void Notification::set_has_email() { + _oneof_case_[0] = kEmail; +} +inline void Notification::clear_email() { + if (has_email()) { + delete type_.email_; + clear_has_type(); + } +} +inline ::flyteidl::admin::EmailNotification* Notification::release_email() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.email) + if (has_email()) { + clear_has_type(); + ::flyteidl::admin::EmailNotification* temp = type_.email_; + type_.email_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::EmailNotification& Notification::email() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.email) + return has_email() + ? *type_.email_ + : *reinterpret_cast< ::flyteidl::admin::EmailNotification*>(&::flyteidl::admin::_EmailNotification_default_instance_); +} +inline ::flyteidl::admin::EmailNotification* Notification::mutable_email() { + if (!has_email()) { + clear_type(); + set_has_email(); + type_.email_ = CreateMaybeMessage< ::flyteidl::admin::EmailNotification >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.email) + return type_.email_; +} + +// .flyteidl.admin.PagerDutyNotification pager_duty = 3; +inline bool Notification::has_pager_duty() const { + return type_case() == kPagerDuty; +} +inline void Notification::set_has_pager_duty() { + _oneof_case_[0] = kPagerDuty; +} +inline void Notification::clear_pager_duty() { + if (has_pager_duty()) { + delete type_.pager_duty_; + clear_has_type(); + } +} +inline ::flyteidl::admin::PagerDutyNotification* Notification::release_pager_duty() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.pager_duty) + if (has_pager_duty()) { + clear_has_type(); + ::flyteidl::admin::PagerDutyNotification* temp = type_.pager_duty_; + type_.pager_duty_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::PagerDutyNotification& Notification::pager_duty() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.pager_duty) + return has_pager_duty() + ? *type_.pager_duty_ + : *reinterpret_cast< ::flyteidl::admin::PagerDutyNotification*>(&::flyteidl::admin::_PagerDutyNotification_default_instance_); +} +inline ::flyteidl::admin::PagerDutyNotification* Notification::mutable_pager_duty() { + if (!has_pager_duty()) { + clear_type(); + set_has_pager_duty(); + type_.pager_duty_ = CreateMaybeMessage< ::flyteidl::admin::PagerDutyNotification >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.pager_duty) + return type_.pager_duty_; +} + +// .flyteidl.admin.SlackNotification slack = 4; +inline bool Notification::has_slack() const { + return type_case() == kSlack; +} +inline void Notification::set_has_slack() { + _oneof_case_[0] = kSlack; +} +inline void Notification::clear_slack() { + if (has_slack()) { + delete type_.slack_; + clear_has_type(); + } +} +inline ::flyteidl::admin::SlackNotification* Notification::release_slack() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.slack) + if (has_slack()) { + clear_has_type(); + ::flyteidl::admin::SlackNotification* temp = type_.slack_; + type_.slack_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::SlackNotification& Notification::slack() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.slack) + return has_slack() + ? *type_.slack_ + : *reinterpret_cast< ::flyteidl::admin::SlackNotification*>(&::flyteidl::admin::_SlackNotification_default_instance_); +} +inline ::flyteidl::admin::SlackNotification* Notification::mutable_slack() { + if (!has_slack()) { + clear_type(); + set_has_slack(); + type_.slack_ = CreateMaybeMessage< ::flyteidl::admin::SlackNotification >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.slack) + return type_.slack_; +} + +inline bool Notification::has_type() const { + return type_case() != TYPE_NOT_SET; +} +inline void Notification::clear_has_type() { + _oneof_case_[0] = TYPE_NOT_SET; +} +inline Notification::TypeCase Notification::type_case() const { + return Notification::TypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// UrlBlob + +// string url = 1; +inline void UrlBlob::clear_url() { + url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UrlBlob::url() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.UrlBlob.url) + return url_.GetNoArena(); +} +inline void UrlBlob::set_url(const ::std::string& value) { + + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.UrlBlob.url) +} +#if LANG_CXX11 +inline void UrlBlob::set_url(::std::string&& value) { + + url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.UrlBlob.url) +} +#endif +inline void UrlBlob::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.UrlBlob.url) +} +inline void UrlBlob::set_url(const char* value, size_t size) { + + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.UrlBlob.url) +} +inline ::std::string* UrlBlob::mutable_url() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.UrlBlob.url) + return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UrlBlob::release_url() { + // @@protoc_insertion_point(field_release:flyteidl.admin.UrlBlob.url) + + return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UrlBlob::set_allocated_url(::std::string* url) { + if (url != nullptr) { + + } else { + + } + url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.UrlBlob.url) +} + +// int64 bytes = 2; +inline void UrlBlob::clear_bytes() { + bytes_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 UrlBlob::bytes() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.UrlBlob.bytes) + return bytes_; +} +inline void UrlBlob::set_bytes(::google::protobuf::int64 value) { + + bytes_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.UrlBlob.bytes) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Labels + +// map values = 1; +inline int Labels::values_size() const { + return values_.size(); +} +inline void Labels::clear_values() { + values_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +Labels::values() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.Labels.values) + return values_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +Labels::mutable_values() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.Labels.values) + return values_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Annotations + +// map values = 1; +inline int Annotations::values_size() const { + return values_.size(); +} +inline void Annotations::clear_values() { + values_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +Annotations::values() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.Annotations.values) + return values_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +Annotations::mutable_values() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.Annotations.values) + return values_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// Envs + +// repeated .flyteidl.core.KeyValuePair values = 1; +inline int Envs::values_size() const { + return values_.size(); +} +inline ::flyteidl::core::KeyValuePair* Envs::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Envs.values) + return values_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* +Envs::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Envs.values) + return &values_; +} +inline const ::flyteidl::core::KeyValuePair& Envs::values(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Envs.values) + return values_.Get(index); +} +inline ::flyteidl::core::KeyValuePair* Envs::add_values() { + // @@protoc_insertion_point(field_add:flyteidl.admin.Envs.values) + return values_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& +Envs::values() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Envs.values) + return values_; +} + +// ------------------------------------------------------------------- + +// AuthRole + +// string assumable_iam_role = 1; +inline void AuthRole::clear_assumable_iam_role() { + assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AuthRole::assumable_iam_role() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.AuthRole.assumable_iam_role) + return assumable_iam_role_.GetNoArena(); +} +inline void AuthRole::set_assumable_iam_role(const ::std::string& value) { + + assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.AuthRole.assumable_iam_role) +} +#if LANG_CXX11 +inline void AuthRole::set_assumable_iam_role(::std::string&& value) { + + assumable_iam_role_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AuthRole.assumable_iam_role) +} +#endif +inline void AuthRole::set_assumable_iam_role(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.AuthRole.assumable_iam_role) +} +inline void AuthRole::set_assumable_iam_role(const char* value, size_t size) { + + assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AuthRole.assumable_iam_role) +} +inline ::std::string* AuthRole::mutable_assumable_iam_role() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.AuthRole.assumable_iam_role) + return assumable_iam_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AuthRole::release_assumable_iam_role() { + // @@protoc_insertion_point(field_release:flyteidl.admin.AuthRole.assumable_iam_role) + + return assumable_iam_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AuthRole::set_allocated_assumable_iam_role(::std::string* assumable_iam_role) { + if (assumable_iam_role != nullptr) { + + } else { + + } + assumable_iam_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assumable_iam_role); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AuthRole.assumable_iam_role) +} + +// string kubernetes_service_account = 2; +inline void AuthRole::clear_kubernetes_service_account() { + kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AuthRole::kubernetes_service_account() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.AuthRole.kubernetes_service_account) + return kubernetes_service_account_.GetNoArena(); +} +inline void AuthRole::set_kubernetes_service_account(const ::std::string& value) { + + kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.AuthRole.kubernetes_service_account) +} +#if LANG_CXX11 +inline void AuthRole::set_kubernetes_service_account(::std::string&& value) { + + kubernetes_service_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AuthRole.kubernetes_service_account) +} +#endif +inline void AuthRole::set_kubernetes_service_account(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.AuthRole.kubernetes_service_account) +} +inline void AuthRole::set_kubernetes_service_account(const char* value, size_t size) { + + kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AuthRole.kubernetes_service_account) +} +inline ::std::string* AuthRole::mutable_kubernetes_service_account() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.AuthRole.kubernetes_service_account) + return kubernetes_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AuthRole::release_kubernetes_service_account() { + // @@protoc_insertion_point(field_release:flyteidl.admin.AuthRole.kubernetes_service_account) + + return kubernetes_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AuthRole::set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account) { + if (kubernetes_service_account != nullptr) { + + } else { + + } + kubernetes_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kubernetes_service_account); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AuthRole.kubernetes_service_account) +} + +// ------------------------------------------------------------------- + +// RawOutputDataConfig + +// string output_location_prefix = 1; +inline void RawOutputDataConfig::clear_output_location_prefix() { + output_location_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& RawOutputDataConfig::output_location_prefix() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.RawOutputDataConfig.output_location_prefix) + return output_location_prefix_.GetNoArena(); +} +inline void RawOutputDataConfig::set_output_location_prefix(const ::std::string& value) { + + output_location_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.RawOutputDataConfig.output_location_prefix) +} +#if LANG_CXX11 +inline void RawOutputDataConfig::set_output_location_prefix(::std::string&& value) { + + output_location_prefix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.RawOutputDataConfig.output_location_prefix) +} +#endif +inline void RawOutputDataConfig::set_output_location_prefix(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + output_location_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.RawOutputDataConfig.output_location_prefix) +} +inline void RawOutputDataConfig::set_output_location_prefix(const char* value, size_t size) { + + output_location_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.RawOutputDataConfig.output_location_prefix) +} +inline ::std::string* RawOutputDataConfig::mutable_output_location_prefix() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.RawOutputDataConfig.output_location_prefix) + return output_location_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RawOutputDataConfig::release_output_location_prefix() { + // @@protoc_insertion_point(field_release:flyteidl.admin.RawOutputDataConfig.output_location_prefix) + + return output_location_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RawOutputDataConfig::set_allocated_output_location_prefix(::std::string* output_location_prefix) { + if (output_location_prefix != nullptr) { + + } else { + + } + output_location_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_location_prefix); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.RawOutputDataConfig.output_location_prefix) +} + +// ------------------------------------------------------------------- + +// FlyteURLs + +// string inputs = 1; +inline void FlyteURLs::clear_inputs() { + inputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& FlyteURLs::inputs() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.FlyteURLs.inputs) + return inputs_.GetNoArena(); +} +inline void FlyteURLs::set_inputs(const ::std::string& value) { + + inputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.FlyteURLs.inputs) +} +#if LANG_CXX11 +inline void FlyteURLs::set_inputs(::std::string&& value) { + + inputs_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.FlyteURLs.inputs) +} +#endif +inline void FlyteURLs::set_inputs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + inputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.FlyteURLs.inputs) +} +inline void FlyteURLs::set_inputs(const char* value, size_t size) { + + inputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.FlyteURLs.inputs) +} +inline ::std::string* FlyteURLs::mutable_inputs() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.FlyteURLs.inputs) + return inputs_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FlyteURLs::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.FlyteURLs.inputs) + + return inputs_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FlyteURLs::set_allocated_inputs(::std::string* inputs) { + if (inputs != nullptr) { + + } else { + + } + inputs_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inputs); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.FlyteURLs.inputs) +} + +// string outputs = 2; +inline void FlyteURLs::clear_outputs() { + outputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& FlyteURLs::outputs() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.FlyteURLs.outputs) + return outputs_.GetNoArena(); +} +inline void FlyteURLs::set_outputs(const ::std::string& value) { + + outputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.FlyteURLs.outputs) +} +#if LANG_CXX11 +inline void FlyteURLs::set_outputs(::std::string&& value) { + + outputs_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.FlyteURLs.outputs) +} +#endif +inline void FlyteURLs::set_outputs(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + outputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.FlyteURLs.outputs) +} +inline void FlyteURLs::set_outputs(const char* value, size_t size) { + + outputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.FlyteURLs.outputs) +} +inline ::std::string* FlyteURLs::mutable_outputs() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.FlyteURLs.outputs) + return outputs_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FlyteURLs::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.FlyteURLs.outputs) + + return outputs_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FlyteURLs::set_allocated_outputs(::std::string* outputs) { + if (outputs != nullptr) { + + } else { + + } + outputs_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), outputs); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.FlyteURLs.outputs) +} + +// string deck = 3; +inline void FlyteURLs::clear_deck() { + deck_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& FlyteURLs::deck() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.FlyteURLs.deck) + return deck_.GetNoArena(); +} +inline void FlyteURLs::set_deck(const ::std::string& value) { + + deck_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.FlyteURLs.deck) +} +#if LANG_CXX11 +inline void FlyteURLs::set_deck(::std::string&& value) { + + deck_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.FlyteURLs.deck) +} +#endif +inline void FlyteURLs::set_deck(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + deck_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.FlyteURLs.deck) +} +inline void FlyteURLs::set_deck(const char* value, size_t size) { + + deck_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.FlyteURLs.deck) +} +inline ::std::string* FlyteURLs::mutable_deck() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.FlyteURLs.deck) + return deck_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* FlyteURLs::release_deck() { + // @@protoc_insertion_point(field_release:flyteidl.admin.FlyteURLs.deck) + + return deck_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void FlyteURLs::set_allocated_deck(::std::string* deck) { + if (deck != nullptr) { + + } else { + + } + deck_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deck); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.FlyteURLs.deck) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::Sort_Direction> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::Sort_Direction>() { + return ::flyteidl::admin::Sort_Direction_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::admin::NamedEntityState> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::NamedEntityState>() { + return ::flyteidl::admin::NamedEntityState_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcommon_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.cc new file mode 100644 index 0000000000..3970997357 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/description_entity.proto + +#include "flyteidl/admin/description_entity.pb.h" +#include "flyteidl/admin/description_entity.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.h new file mode 100644 index 0000000000..0b4ebc8077 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/description_entity.proto +#ifndef GRPC_flyteidl_2fadmin_2fdescription_5fentity_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fdescription_5fentity_2eproto__INCLUDED + +#include "flyteidl/admin/description_entity.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fdescription_5fentity_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.cc new file mode 100644 index 0000000000..5f2e78e8c7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.cc @@ -0,0 +1,2658 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/description_entity.proto + +#include "flyteidl/admin/description_entity.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +namespace flyteidl { +namespace admin { +class DescriptionEntityDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DescriptionEntity_default_instance_; +class DescriptionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr uri_; +} _Description_default_instance_; +class SourceCodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SourceCode_default_instance_; +class DescriptionEntityListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DescriptionEntityList_default_instance_; +class DescriptionEntityListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DescriptionEntityListRequest_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsDescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DescriptionEntity_default_instance_; + new (ptr) ::flyteidl::admin::DescriptionEntity(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DescriptionEntity::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsDescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base, + &scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; + +static void InitDefaultsDescription_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Description_default_instance_; + new (ptr) ::flyteidl::admin::Description(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Description::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDescription_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, {}}; + +static void InitDefaultsSourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SourceCode_default_instance_; + new (ptr) ::flyteidl::admin::SourceCode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SourceCode::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, {}}; + +static void InitDefaultsDescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DescriptionEntityList_default_instance_; + new (ptr) ::flyteidl::admin::DescriptionEntityList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DescriptionEntityList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, { + &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; + +static void InitDefaultsDescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DescriptionEntityListRequest_default_instance_; + new (ptr) ::flyteidl::admin::DescriptionEntityListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DescriptionEntityListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, { + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[5]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, short_description_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, long_description_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, source_code_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, tags_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::DescriptionDefaultTypeInternal, value_), + offsetof(::flyteidl::admin::DescriptionDefaultTypeInternal, uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, format_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, icon_link_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, content_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SourceCode, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SourceCode, link_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityList, descriptionentities_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, resource_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, sort_by_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::DescriptionEntity)}, + { 10, -1, sizeof(::flyteidl::admin::Description)}, + { 20, -1, sizeof(::flyteidl::admin::SourceCode)}, + { 26, -1, sizeof(::flyteidl::admin::DescriptionEntityList)}, + { 33, -1, sizeof(::flyteidl::admin::DescriptionEntityListRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_DescriptionEntity_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Description_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SourceCode_default_instance_), + reinterpret_cast(&::flyteidl::admin::_DescriptionEntityList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_DescriptionEntityListRequest_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, "flyteidl/admin/description_entity.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto, 5, file_level_enum_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fdescription_5fentity_2eproto[] = + "\n\'flyteidl/admin/description_entity.prot" + "o\022\016flyteidl.admin\032\036flyteidl/core/identif" + "ier.proto\032\033flyteidl/admin/common.proto\"\313" + "\001\n\021DescriptionEntity\022%\n\002id\030\001 \001(\0132\031.flyte" + "idl.core.Identifier\022\031\n\021short_description" + "\030\002 \001(\t\0225\n\020long_description\030\003 \001(\0132\033.flyte" + "idl.admin.Description\022/\n\013source_code\030\004 \001" + "(\0132\032.flyteidl.admin.SourceCode\022\014\n\004tags\030\005" + " \003(\t\"~\n\013Description\022\017\n\005value\030\001 \001(\tH\000\022\r\n\003" + "uri\030\002 \001(\tH\000\0221\n\006format\030\003 \001(\0162!.flyteidl.a" + "dmin.DescriptionFormat\022\021\n\ticon_link\030\004 \001(" + "\tB\t\n\007content\"\032\n\nSourceCode\022\014\n\004link\030\001 \001(\t" + "\"f\n\025DescriptionEntityList\022>\n\023description" + "Entities\030\001 \003(\0132!.flyteidl.admin.Descript" + "ionEntity\022\r\n\005token\030\002 \001(\t\"\333\001\n\034Description" + "EntityListRequest\0222\n\rresource_type\030\001 \001(\016" + "2\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(" + "\0132%.flyteidl.admin.NamedEntityIdentifier" + "\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022\017\n\007filter" + "s\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admi" + "n.Sort*\215\001\n\021DescriptionFormat\022\036\n\032DESCRIPT" + "ION_FORMAT_UNKNOWN\020\000\022\037\n\033DESCRIPTION_FORM" + "AT_MARKDOWN\020\001\022\033\n\027DESCRIPTION_FORMAT_HTML" + "\020\002\022\032\n\026DESCRIPTION_FORMAT_RST\020\003B7Z5github" + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + "l/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fdescription_5fentity_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fdescription_5fentity_2eproto, + "flyteidl/admin/description_entity.proto", &assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto, 1015, +}; + +void AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fdescription_5fentity_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* DescriptionFormat_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto[0]; +} +bool DescriptionFormat_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + + +// =================================================================== + +void DescriptionEntity::InitAsDefaultInstance() { + ::flyteidl::admin::_DescriptionEntity_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_DescriptionEntity_default_instance_._instance.get_mutable()->long_description_ = const_cast< ::flyteidl::admin::Description*>( + ::flyteidl::admin::Description::internal_default_instance()); + ::flyteidl::admin::_DescriptionEntity_default_instance_._instance.get_mutable()->source_code_ = const_cast< ::flyteidl::admin::SourceCode*>( + ::flyteidl::admin::SourceCode::internal_default_instance()); +} +class DescriptionEntity::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const DescriptionEntity* msg); + static const ::flyteidl::admin::Description& long_description(const DescriptionEntity* msg); + static const ::flyteidl::admin::SourceCode& source_code(const DescriptionEntity* msg); +}; + +const ::flyteidl::core::Identifier& +DescriptionEntity::HasBitSetters::id(const DescriptionEntity* msg) { + return *msg->id_; +} +const ::flyteidl::admin::Description& +DescriptionEntity::HasBitSetters::long_description(const DescriptionEntity* msg) { + return *msg->long_description_; +} +const ::flyteidl::admin::SourceCode& +DescriptionEntity::HasBitSetters::source_code(const DescriptionEntity* msg) { + return *msg->source_code_; +} +void DescriptionEntity::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DescriptionEntity::kIdFieldNumber; +const int DescriptionEntity::kShortDescriptionFieldNumber; +const int DescriptionEntity::kLongDescriptionFieldNumber; +const int DescriptionEntity::kSourceCodeFieldNumber; +const int DescriptionEntity::kTagsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DescriptionEntity::DescriptionEntity() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DescriptionEntity) +} +DescriptionEntity::DescriptionEntity(const DescriptionEntity& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + tags_(from.tags_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.short_description().size() > 0) { + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_long_description()) { + long_description_ = new ::flyteidl::admin::Description(*from.long_description_); + } else { + long_description_ = nullptr; + } + if (from.has_source_code()) { + source_code_ = new ::flyteidl::admin::SourceCode(*from.source_code_); + } else { + source_code_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DescriptionEntity) +} + +void DescriptionEntity::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&source_code_) - + reinterpret_cast(&id_)) + sizeof(source_code_)); +} + +DescriptionEntity::~DescriptionEntity() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DescriptionEntity) + SharedDtor(); +} + +void DescriptionEntity::SharedDtor() { + short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete long_description_; + if (this != internal_default_instance()) delete source_code_; +} + +void DescriptionEntity::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescriptionEntity& DescriptionEntity::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + return *internal_default_instance(); +} + + +void DescriptionEntity::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DescriptionEntity) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && long_description_ != nullptr) { + delete long_description_; + } + long_description_ = nullptr; + if (GetArenaNoVirtual() == nullptr && source_code_ != nullptr) { + delete source_code_; + } + source_code_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescriptionEntity::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string short_description = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntity.short_description"); + object = msg->mutable_short_description(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Description long_description = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Description::_InternalParse; + object = msg->mutable_long_description(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.SourceCode source_code = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::SourceCode::_InternalParse; + object = msg->mutable_source_code(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated string tags = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntity.tags"); + object = msg->add_tags(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DescriptionEntity::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DescriptionEntity) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string short_description = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_short_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DescriptionEntity.short_description")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Description long_description = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_long_description())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.SourceCode source_code = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source_code())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string tags = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_tags())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(this->tags_size() - 1).data(), + static_cast(this->tags(this->tags_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DescriptionEntity.tags")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DescriptionEntity) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DescriptionEntity) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescriptionEntity::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DescriptionEntity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string short_description = 2; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntity.short_description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->short_description(), output); + } + + // .flyteidl.admin.Description long_description = 3; + if (this->has_long_description()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::long_description(this), output); + } + + // .flyteidl.admin.SourceCode source_code = 4; + if (this->has_source_code()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::source_code(this), output); + } + + // repeated string tags = 5; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntity.tags"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->tags(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DescriptionEntity) +} + +::google::protobuf::uint8* DescriptionEntity::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DescriptionEntity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string short_description = 2; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntity.short_description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->short_description(), target); + } + + // .flyteidl.admin.Description long_description = 3; + if (this->has_long_description()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::long_description(this), target); + } + + // .flyteidl.admin.SourceCode source_code = 4; + if (this->has_source_code()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::source_code(this), target); + } + + // repeated string tags = 5; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntity.tags"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(5, this->tags(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DescriptionEntity) + return target; +} + +size_t DescriptionEntity::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DescriptionEntity) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string tags = 5; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + for (int i = 0, n = this->tags_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->tags(i)); + } + + // string short_description = 2; + if (this->short_description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->short_description()); + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.Description long_description = 3; + if (this->has_long_description()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *long_description_); + } + + // .flyteidl.admin.SourceCode source_code = 4; + if (this->has_source_code()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_code_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescriptionEntity::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DescriptionEntity) + GOOGLE_DCHECK_NE(&from, this); + const DescriptionEntity* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DescriptionEntity) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DescriptionEntity) + MergeFrom(*source); + } +} + +void DescriptionEntity::MergeFrom(const DescriptionEntity& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DescriptionEntity) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.short_description().size() > 0) { + + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_long_description()) { + mutable_long_description()->::flyteidl::admin::Description::MergeFrom(from.long_description()); + } + if (from.has_source_code()) { + mutable_source_code()->::flyteidl::admin::SourceCode::MergeFrom(from.source_code()); + } +} + +void DescriptionEntity::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DescriptionEntity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescriptionEntity::CopyFrom(const DescriptionEntity& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DescriptionEntity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescriptionEntity::IsInitialized() const { + return true; +} + +void DescriptionEntity::Swap(DescriptionEntity* other) { + if (other == this) return; + InternalSwap(other); +} +void DescriptionEntity::InternalSwap(DescriptionEntity* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.InternalSwap(CastToBase(&other->tags_)); + short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(long_description_, other->long_description_); + swap(source_code_, other->source_code_); +} + +::google::protobuf::Metadata DescriptionEntity::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Description::InitAsDefaultInstance() { + ::flyteidl::admin::_Description_default_instance_.value_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_Description_default_instance_.uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class Description::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Description::kValueFieldNumber; +const int Description::kUriFieldNumber; +const int Description::kFormatFieldNumber; +const int Description::kIconLinkFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Description::Description() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Description) +} +Description::Description(const Description& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + icon_link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.icon_link().size() > 0) { + icon_link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.icon_link_); + } + format_ = from.format_; + clear_has_content(); + switch (from.content_case()) { + case kValue: { + set_value(from.value()); + break; + } + case kUri: { + set_uri(from.uri()); + break; + } + case CONTENT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Description) +} + +void Description::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + icon_link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + format_ = 0; + clear_has_content(); +} + +Description::~Description() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Description) + SharedDtor(); +} + +void Description::SharedDtor() { + icon_link_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (has_content()) { + clear_content(); + } +} + +void Description::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Description& Description::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + return *internal_default_instance(); +} + + +void Description::clear_content() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Description) + switch (content_case()) { + case kValue: { + content_.value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kUri: { + content_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case CONTENT_NOT_SET: { + break; + } + } + _oneof_case_[0] = CONTENT_NOT_SET; +} + + +void Description::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Description) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + icon_link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + format_ = 0; + clear_content(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Description::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Description.value"); + object = msg->mutable_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string uri = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Description.uri"); + object = msg->mutable_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.DescriptionFormat format = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_format(static_cast<::flyteidl::admin::DescriptionFormat>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string icon_link = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Description.icon_link"); + object = msg->mutable_icon_link(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Description::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Description) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Description.value")); + } else { + goto handle_unusual; + } + break; + } + + // string uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Description.uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.DescriptionFormat format = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_format(static_cast< ::flyteidl::admin::DescriptionFormat >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string icon_link = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_icon_link())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->icon_link().data(), static_cast(this->icon_link().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Description.icon_link")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Description) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Description) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Description::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Description) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string value = 1; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Description.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->value(), output); + } + + // string uri = 2; + if (has_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Description.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->uri(), output); + } + + // .flyteidl.admin.DescriptionFormat format = 3; + if (this->format() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->format(), output); + } + + // string icon_link = 4; + if (this->icon_link().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->icon_link().data(), static_cast(this->icon_link().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Description.icon_link"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->icon_link(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Description) +} + +::google::protobuf::uint8* Description::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Description) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string value = 1; + if (has_value()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Description.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->value(), target); + } + + // string uri = 2; + if (has_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Description.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->uri(), target); + } + + // .flyteidl.admin.DescriptionFormat format = 3; + if (this->format() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->format(), target); + } + + // string icon_link = 4; + if (this->icon_link().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->icon_link().data(), static_cast(this->icon_link().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Description.icon_link"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->icon_link(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Description) + return target; +} + +size_t Description::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Description) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string icon_link = 4; + if (this->icon_link().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->icon_link()); + } + + // .flyteidl.admin.DescriptionFormat format = 3; + if (this->format() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->format()); + } + + switch (content_case()) { + // string value = 1; + case kValue: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + break; + } + // string uri = 2; + case kUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + break; + } + case CONTENT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Description::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Description) + GOOGLE_DCHECK_NE(&from, this); + const Description* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Description) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Description) + MergeFrom(*source); + } +} + +void Description::MergeFrom(const Description& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Description) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.icon_link().size() > 0) { + + icon_link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.icon_link_); + } + if (from.format() != 0) { + set_format(from.format()); + } + switch (from.content_case()) { + case kValue: { + set_value(from.value()); + break; + } + case kUri: { + set_uri(from.uri()); + break; + } + case CONTENT_NOT_SET: { + break; + } + } +} + +void Description::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Description) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Description::CopyFrom(const Description& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Description) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Description::IsInitialized() const { + return true; +} + +void Description::Swap(Description* other) { + if (other == this) return; + InternalSwap(other); +} +void Description::InternalSwap(Description* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + icon_link_.Swap(&other->icon_link_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(format_, other->format_); + swap(content_, other->content_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Description::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SourceCode::InitAsDefaultInstance() { +} +class SourceCode::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SourceCode::kLinkFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SourceCode::SourceCode() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SourceCode) +} +SourceCode::SourceCode(const SourceCode& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.link().size() > 0) { + link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.link_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SourceCode) +} + +void SourceCode::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +SourceCode::~SourceCode() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SourceCode) + SharedDtor(); +} + +void SourceCode::SharedDtor() { + link_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SourceCode::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SourceCode& SourceCode::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + return *internal_default_instance(); +} + + +void SourceCode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SourceCode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SourceCode::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string link = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.SourceCode.link"); + object = msg->mutable_link(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SourceCode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SourceCode) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string link = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_link())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->link().data(), static_cast(this->link().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SourceCode.link")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SourceCode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SourceCode) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SourceCode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SourceCode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string link = 1; + if (this->link().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->link().data(), static_cast(this->link().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SourceCode.link"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->link(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SourceCode) +} + +::google::protobuf::uint8* SourceCode::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SourceCode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string link = 1; + if (this->link().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->link().data(), static_cast(this->link().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SourceCode.link"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->link(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SourceCode) + return target; +} + +size_t SourceCode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SourceCode) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string link = 1; + if (this->link().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->link()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SourceCode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SourceCode) + GOOGLE_DCHECK_NE(&from, this); + const SourceCode* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SourceCode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SourceCode) + MergeFrom(*source); + } +} + +void SourceCode::MergeFrom(const SourceCode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SourceCode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.link().size() > 0) { + + link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.link_); + } +} + +void SourceCode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SourceCode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SourceCode::CopyFrom(const SourceCode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SourceCode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SourceCode::IsInitialized() const { + return true; +} + +void SourceCode::Swap(SourceCode* other) { + if (other == this) return; + InternalSwap(other); +} +void SourceCode::InternalSwap(SourceCode* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + link_.Swap(&other->link_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata SourceCode::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DescriptionEntityList::InitAsDefaultInstance() { +} +class DescriptionEntityList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DescriptionEntityList::kDescriptionEntitiesFieldNumber; +const int DescriptionEntityList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DescriptionEntityList::DescriptionEntityList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DescriptionEntityList) +} +DescriptionEntityList::DescriptionEntityList(const DescriptionEntityList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + descriptionentities_(from.descriptionentities_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DescriptionEntityList) +} + +void DescriptionEntityList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +DescriptionEntityList::~DescriptionEntityList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DescriptionEntityList) + SharedDtor(); +} + +void DescriptionEntityList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DescriptionEntityList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescriptionEntityList& DescriptionEntityList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + return *internal_default_instance(); +} + + +void DescriptionEntityList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DescriptionEntityList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + descriptionentities_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescriptionEntityList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::DescriptionEntity::_InternalParse; + object = msg->add_descriptionentities(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntityList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DescriptionEntityList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DescriptionEntityList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_descriptionentities())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DescriptionEntityList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DescriptionEntityList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DescriptionEntityList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescriptionEntityList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DescriptionEntityList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + for (unsigned int i = 0, + n = static_cast(this->descriptionentities_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->descriptionentities(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntityList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DescriptionEntityList) +} + +::google::protobuf::uint8* DescriptionEntityList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DescriptionEntityList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + for (unsigned int i = 0, + n = static_cast(this->descriptionentities_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->descriptionentities(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntityList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DescriptionEntityList) + return target; +} + +size_t DescriptionEntityList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DescriptionEntityList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + { + unsigned int count = static_cast(this->descriptionentities_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->descriptionentities(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescriptionEntityList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DescriptionEntityList) + GOOGLE_DCHECK_NE(&from, this); + const DescriptionEntityList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DescriptionEntityList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DescriptionEntityList) + MergeFrom(*source); + } +} + +void DescriptionEntityList::MergeFrom(const DescriptionEntityList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DescriptionEntityList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + descriptionentities_.MergeFrom(from.descriptionentities_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void DescriptionEntityList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DescriptionEntityList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescriptionEntityList::CopyFrom(const DescriptionEntityList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DescriptionEntityList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescriptionEntityList::IsInitialized() const { + return true; +} + +void DescriptionEntityList::Swap(DescriptionEntityList* other) { + if (other == this) return; + InternalSwap(other); +} +void DescriptionEntityList::InternalSwap(DescriptionEntityList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&descriptionentities_)->InternalSwap(CastToBase(&other->descriptionentities_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata DescriptionEntityList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DescriptionEntityListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_DescriptionEntityListRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( + ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); + ::flyteidl::admin::_DescriptionEntityListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class DescriptionEntityListRequest::HasBitSetters { + public: + static const ::flyteidl::admin::NamedEntityIdentifier& id(const DescriptionEntityListRequest* msg); + static const ::flyteidl::admin::Sort& sort_by(const DescriptionEntityListRequest* msg); +}; + +const ::flyteidl::admin::NamedEntityIdentifier& +DescriptionEntityListRequest::HasBitSetters::id(const DescriptionEntityListRequest* msg) { + return *msg->id_; +} +const ::flyteidl::admin::Sort& +DescriptionEntityListRequest::HasBitSetters::sort_by(const DescriptionEntityListRequest* msg) { + return *msg->sort_by_; +} +void DescriptionEntityListRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void DescriptionEntityListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DescriptionEntityListRequest::kResourceTypeFieldNumber; +const int DescriptionEntityListRequest::kIdFieldNumber; +const int DescriptionEntityListRequest::kLimitFieldNumber; +const int DescriptionEntityListRequest::kTokenFieldNumber; +const int DescriptionEntityListRequest::kFiltersFieldNumber; +const int DescriptionEntityListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DescriptionEntityListRequest::DescriptionEntityListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DescriptionEntityListRequest) +} +DescriptionEntityListRequest::DescriptionEntityListRequest(const DescriptionEntityListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_id()) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + ::memcpy(&resource_type_, &from.resource_type_, + static_cast(reinterpret_cast(&limit_) - + reinterpret_cast(&resource_type_)) + sizeof(limit_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DescriptionEntityListRequest) +} + +void DescriptionEntityListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&id_)) + sizeof(limit_)); +} + +DescriptionEntityListRequest::~DescriptionEntityListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DescriptionEntityListRequest) + SharedDtor(); +} + +void DescriptionEntityListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void DescriptionEntityListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescriptionEntityListRequest& DescriptionEntityListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); + return *internal_default_instance(); +} + + +void DescriptionEntityListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DescriptionEntityListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + ::memset(&resource_type_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&resource_type_)) + sizeof(limit_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescriptionEntityListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 limit = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntityListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filters = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntityListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DescriptionEntityListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DescriptionEntityListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DescriptionEntityListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DescriptionEntityListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DescriptionEntityListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DescriptionEntityListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescriptionEntityListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DescriptionEntityListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::id(this), output); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->limit(), output); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntityListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->token(), output); + } + + // string filters = 5; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntityListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 6; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::sort_by(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DescriptionEntityListRequest) +} + +::google::protobuf::uint8* DescriptionEntityListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DescriptionEntityListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::id(this), target); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->limit(), target); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntityListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->token(), target); + } + + // string filters = 5; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DescriptionEntityListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 6; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::sort_by(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DescriptionEntityListRequest) + return target; +} + +size_t DescriptionEntityListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DescriptionEntityListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 4; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 5; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.Sort sort_by = 6; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescriptionEntityListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DescriptionEntityListRequest) + GOOGLE_DCHECK_NE(&from, this); + const DescriptionEntityListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DescriptionEntityListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DescriptionEntityListRequest) + MergeFrom(*source); + } +} + +void DescriptionEntityListRequest::MergeFrom(const DescriptionEntityListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DescriptionEntityListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void DescriptionEntityListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DescriptionEntityListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescriptionEntityListRequest::CopyFrom(const DescriptionEntityListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DescriptionEntityListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescriptionEntityListRequest::IsInitialized() const { + return true; +} + +void DescriptionEntityListRequest::Swap(DescriptionEntityListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void DescriptionEntityListRequest::InternalSwap(DescriptionEntityListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(sort_by_, other->sort_by_); + swap(resource_type_, other->resource_type_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata DescriptionEntityListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DescriptionEntity* Arena::CreateMaybeMessage< ::flyteidl::admin::DescriptionEntity >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DescriptionEntity >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Description* Arena::CreateMaybeMessage< ::flyteidl::admin::Description >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Description >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SourceCode* Arena::CreateMaybeMessage< ::flyteidl::admin::SourceCode >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SourceCode >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DescriptionEntityList* Arena::CreateMaybeMessage< ::flyteidl::admin::DescriptionEntityList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DescriptionEntityList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DescriptionEntityListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::DescriptionEntityListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DescriptionEntityListRequest >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.h new file mode 100644 index 0000000000..13eb991d54 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.h @@ -0,0 +1,1832 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/description_entity.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fdescription_5fentity_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fdescription_5fentity_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/admin/common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[5] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto(); +namespace flyteidl { +namespace admin { +class Description; +class DescriptionDefaultTypeInternal; +extern DescriptionDefaultTypeInternal _Description_default_instance_; +class DescriptionEntity; +class DescriptionEntityDefaultTypeInternal; +extern DescriptionEntityDefaultTypeInternal _DescriptionEntity_default_instance_; +class DescriptionEntityList; +class DescriptionEntityListDefaultTypeInternal; +extern DescriptionEntityListDefaultTypeInternal _DescriptionEntityList_default_instance_; +class DescriptionEntityListRequest; +class DescriptionEntityListRequestDefaultTypeInternal; +extern DescriptionEntityListRequestDefaultTypeInternal _DescriptionEntityListRequest_default_instance_; +class SourceCode; +class SourceCodeDefaultTypeInternal; +extern SourceCodeDefaultTypeInternal _SourceCode_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::Description* Arena::CreateMaybeMessage<::flyteidl::admin::Description>(Arena*); +template<> ::flyteidl::admin::DescriptionEntity* Arena::CreateMaybeMessage<::flyteidl::admin::DescriptionEntity>(Arena*); +template<> ::flyteidl::admin::DescriptionEntityList* Arena::CreateMaybeMessage<::flyteidl::admin::DescriptionEntityList>(Arena*); +template<> ::flyteidl::admin::DescriptionEntityListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::DescriptionEntityListRequest>(Arena*); +template<> ::flyteidl::admin::SourceCode* Arena::CreateMaybeMessage<::flyteidl::admin::SourceCode>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum DescriptionFormat { + DESCRIPTION_FORMAT_UNKNOWN = 0, + DESCRIPTION_FORMAT_MARKDOWN = 1, + DESCRIPTION_FORMAT_HTML = 2, + DESCRIPTION_FORMAT_RST = 3, + DescriptionFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + DescriptionFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool DescriptionFormat_IsValid(int value); +const DescriptionFormat DescriptionFormat_MIN = DESCRIPTION_FORMAT_UNKNOWN; +const DescriptionFormat DescriptionFormat_MAX = DESCRIPTION_FORMAT_RST; +const int DescriptionFormat_ARRAYSIZE = DescriptionFormat_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DescriptionFormat_descriptor(); +inline const ::std::string& DescriptionFormat_Name(DescriptionFormat value) { + return ::google::protobuf::internal::NameOfEnum( + DescriptionFormat_descriptor(), value); +} +inline bool DescriptionFormat_Parse( + const ::std::string& name, DescriptionFormat* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DescriptionFormat_descriptor(), name, value); +} +// =================================================================== + +class DescriptionEntity final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DescriptionEntity) */ { + public: + DescriptionEntity(); + virtual ~DescriptionEntity(); + + DescriptionEntity(const DescriptionEntity& from); + + inline DescriptionEntity& operator=(const DescriptionEntity& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DescriptionEntity(DescriptionEntity&& from) noexcept + : DescriptionEntity() { + *this = ::std::move(from); + } + + inline DescriptionEntity& operator=(DescriptionEntity&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DescriptionEntity& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescriptionEntity* internal_default_instance() { + return reinterpret_cast( + &_DescriptionEntity_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DescriptionEntity* other); + friend void swap(DescriptionEntity& a, DescriptionEntity& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DescriptionEntity* New() const final { + return CreateMaybeMessage(nullptr); + } + + DescriptionEntity* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DescriptionEntity& from); + void MergeFrom(const DescriptionEntity& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescriptionEntity* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string tags = 5; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 5; + const ::std::string& tags(int index) const; + ::std::string* mutable_tags(int index); + void set_tags(int index, const ::std::string& value); + #if LANG_CXX11 + void set_tags(int index, ::std::string&& value); + #endif + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + ::std::string* add_tags(); + void add_tags(const ::std::string& value); + #if LANG_CXX11 + void add_tags(::std::string&& value); + #endif + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); + + // string short_description = 2; + void clear_short_description(); + static const int kShortDescriptionFieldNumber = 2; + const ::std::string& short_description() const; + void set_short_description(const ::std::string& value); + #if LANG_CXX11 + void set_short_description(::std::string&& value); + #endif + void set_short_description(const char* value); + void set_short_description(const char* value, size_t size); + ::std::string* mutable_short_description(); + ::std::string* release_short_description(); + void set_allocated_short_description(::std::string* short_description); + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.Description long_description = 3; + bool has_long_description() const; + void clear_long_description(); + static const int kLongDescriptionFieldNumber = 3; + const ::flyteidl::admin::Description& long_description() const; + ::flyteidl::admin::Description* release_long_description(); + ::flyteidl::admin::Description* mutable_long_description(); + void set_allocated_long_description(::flyteidl::admin::Description* long_description); + + // .flyteidl.admin.SourceCode source_code = 4; + bool has_source_code() const; + void clear_source_code(); + static const int kSourceCodeFieldNumber = 4; + const ::flyteidl::admin::SourceCode& source_code() const; + ::flyteidl::admin::SourceCode* release_source_code(); + ::flyteidl::admin::SourceCode* mutable_source_code(); + void set_allocated_source_code(::flyteidl::admin::SourceCode* source_code); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntity) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> tags_; + ::google::protobuf::internal::ArenaStringPtr short_description_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::Description* long_description_; + ::flyteidl::admin::SourceCode* source_code_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +}; +// ------------------------------------------------------------------- + +class Description final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Description) */ { + public: + Description(); + virtual ~Description(); + + Description(const Description& from); + + inline Description& operator=(const Description& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Description(Description&& from) noexcept + : Description() { + *this = ::std::move(from); + } + + inline Description& operator=(Description&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Description& default_instance(); + + enum ContentCase { + kValue = 1, + kUri = 2, + CONTENT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Description* internal_default_instance() { + return reinterpret_cast( + &_Description_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Description* other); + friend void swap(Description& a, Description& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Description* New() const final { + return CreateMaybeMessage(nullptr); + } + + Description* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Description& from); + void MergeFrom(const Description& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Description* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string icon_link = 4; + void clear_icon_link(); + static const int kIconLinkFieldNumber = 4; + const ::std::string& icon_link() const; + void set_icon_link(const ::std::string& value); + #if LANG_CXX11 + void set_icon_link(::std::string&& value); + #endif + void set_icon_link(const char* value); + void set_icon_link(const char* value, size_t size); + ::std::string* mutable_icon_link(); + ::std::string* release_icon_link(); + void set_allocated_icon_link(::std::string* icon_link); + + // .flyteidl.admin.DescriptionFormat format = 3; + void clear_format(); + static const int kFormatFieldNumber = 3; + ::flyteidl::admin::DescriptionFormat format() const; + void set_format(::flyteidl::admin::DescriptionFormat value); + + // string value = 1; + private: + bool has_value() const; + public: + void clear_value(); + static const int kValueFieldNumber = 1; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // string uri = 2; + private: + bool has_uri() const; + public: + void clear_uri(); + static const int kUriFieldNumber = 2; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + void clear_content(); + ContentCase content_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.Description) + private: + class HasBitSetters; + void set_has_value(); + void set_has_uri(); + + inline bool has_content() const; + inline void clear_has_content(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr icon_link_; + int format_; + union ContentUnion { + ContentUnion() {} + ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr uri_; + } content_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +}; +// ------------------------------------------------------------------- + +class SourceCode final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SourceCode) */ { + public: + SourceCode(); + virtual ~SourceCode(); + + SourceCode(const SourceCode& from); + + inline SourceCode& operator=(const SourceCode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SourceCode(SourceCode&& from) noexcept + : SourceCode() { + *this = ::std::move(from); + } + + inline SourceCode& operator=(SourceCode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SourceCode& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SourceCode* internal_default_instance() { + return reinterpret_cast( + &_SourceCode_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(SourceCode* other); + friend void swap(SourceCode& a, SourceCode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SourceCode* New() const final { + return CreateMaybeMessage(nullptr); + } + + SourceCode* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SourceCode& from); + void MergeFrom(const SourceCode& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SourceCode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string link = 1; + void clear_link(); + static const int kLinkFieldNumber = 1; + const ::std::string& link() const; + void set_link(const ::std::string& value); + #if LANG_CXX11 + void set_link(::std::string&& value); + #endif + void set_link(const char* value); + void set_link(const char* value, size_t size); + ::std::string* mutable_link(); + ::std::string* release_link(); + void set_allocated_link(::std::string* link); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SourceCode) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr link_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +}; +// ------------------------------------------------------------------- + +class DescriptionEntityList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DescriptionEntityList) */ { + public: + DescriptionEntityList(); + virtual ~DescriptionEntityList(); + + DescriptionEntityList(const DescriptionEntityList& from); + + inline DescriptionEntityList& operator=(const DescriptionEntityList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DescriptionEntityList(DescriptionEntityList&& from) noexcept + : DescriptionEntityList() { + *this = ::std::move(from); + } + + inline DescriptionEntityList& operator=(DescriptionEntityList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DescriptionEntityList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescriptionEntityList* internal_default_instance() { + return reinterpret_cast( + &_DescriptionEntityList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(DescriptionEntityList* other); + friend void swap(DescriptionEntityList& a, DescriptionEntityList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DescriptionEntityList* New() const final { + return CreateMaybeMessage(nullptr); + } + + DescriptionEntityList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DescriptionEntityList& from); + void MergeFrom(const DescriptionEntityList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescriptionEntityList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + int descriptionentities_size() const; + void clear_descriptionentities(); + static const int kDescriptionEntitiesFieldNumber = 1; + ::flyteidl::admin::DescriptionEntity* mutable_descriptionentities(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >* + mutable_descriptionentities(); + const ::flyteidl::admin::DescriptionEntity& descriptionentities(int index) const; + ::flyteidl::admin::DescriptionEntity* add_descriptionentities(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >& + descriptionentities() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity > descriptionentities_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +}; +// ------------------------------------------------------------------- + +class DescriptionEntityListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DescriptionEntityListRequest) */ { + public: + DescriptionEntityListRequest(); + virtual ~DescriptionEntityListRequest(); + + DescriptionEntityListRequest(const DescriptionEntityListRequest& from); + + inline DescriptionEntityListRequest& operator=(const DescriptionEntityListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DescriptionEntityListRequest(DescriptionEntityListRequest&& from) noexcept + : DescriptionEntityListRequest() { + *this = ::std::move(from); + } + + inline DescriptionEntityListRequest& operator=(DescriptionEntityListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DescriptionEntityListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescriptionEntityListRequest* internal_default_instance() { + return reinterpret_cast( + &_DescriptionEntityListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(DescriptionEntityListRequest* other); + friend void swap(DescriptionEntityListRequest& a, DescriptionEntityListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DescriptionEntityListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + DescriptionEntityListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DescriptionEntityListRequest& from); + void MergeFrom(const DescriptionEntityListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescriptionEntityListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 4; + void clear_token(); + static const int kTokenFieldNumber = 4; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 5; + void clear_filters(); + static const int kFiltersFieldNumber = 5; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.admin.NamedEntityIdentifier id = 2; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 2; + const ::flyteidl::admin::NamedEntityIdentifier& id() const; + ::flyteidl::admin::NamedEntityIdentifier* release_id(); + ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); + + // .flyteidl.admin.Sort sort_by = 6; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 6; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // .flyteidl.core.ResourceType resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::core::ResourceType resource_type() const; + void set_resource_type(::flyteidl::core::ResourceType value); + + // uint32 limit = 3; + void clear_limit(); + static const int kLimitFieldNumber = 3; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::admin::NamedEntityIdentifier* id_; + ::flyteidl::admin::Sort* sort_by_; + int resource_type_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DescriptionEntity + +// .flyteidl.core.Identifier id = 1; +inline bool DescriptionEntity::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& DescriptionEntity::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* DescriptionEntity::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* DescriptionEntity::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.id) + return id_; +} +inline void DescriptionEntity::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntity.id) +} + +// string short_description = 2; +inline void DescriptionEntity::clear_short_description() { + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DescriptionEntity::short_description() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.short_description) + return short_description_.GetNoArena(); +} +inline void DescriptionEntity::set_short_description(const ::std::string& value) { + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntity.short_description) +} +#if LANG_CXX11 +inline void DescriptionEntity::set_short_description(::std::string&& value) { + + short_description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntity.short_description) +} +#endif +inline void DescriptionEntity::set_short_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntity.short_description) +} +inline void DescriptionEntity::set_short_description(const char* value, size_t size) { + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntity.short_description) +} +inline ::std::string* DescriptionEntity::mutable_short_description() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.short_description) + return short_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DescriptionEntity::release_short_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.short_description) + + return short_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DescriptionEntity::set_allocated_short_description(::std::string* short_description) { + if (short_description != nullptr) { + + } else { + + } + short_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_description); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntity.short_description) +} + +// .flyteidl.admin.Description long_description = 3; +inline bool DescriptionEntity::has_long_description() const { + return this != internal_default_instance() && long_description_ != nullptr; +} +inline void DescriptionEntity::clear_long_description() { + if (GetArenaNoVirtual() == nullptr && long_description_ != nullptr) { + delete long_description_; + } + long_description_ = nullptr; +} +inline const ::flyteidl::admin::Description& DescriptionEntity::long_description() const { + const ::flyteidl::admin::Description* p = long_description_; + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.long_description) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Description_default_instance_); +} +inline ::flyteidl::admin::Description* DescriptionEntity::release_long_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.long_description) + + ::flyteidl::admin::Description* temp = long_description_; + long_description_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Description* DescriptionEntity::mutable_long_description() { + + if (long_description_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Description>(GetArenaNoVirtual()); + long_description_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.long_description) + return long_description_; +} +inline void DescriptionEntity::set_allocated_long_description(::flyteidl::admin::Description* long_description) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete long_description_; + } + if (long_description) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + long_description = ::google::protobuf::internal::GetOwnedMessage( + message_arena, long_description, submessage_arena); + } + + } else { + + } + long_description_ = long_description; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntity.long_description) +} + +// .flyteidl.admin.SourceCode source_code = 4; +inline bool DescriptionEntity::has_source_code() const { + return this != internal_default_instance() && source_code_ != nullptr; +} +inline void DescriptionEntity::clear_source_code() { + if (GetArenaNoVirtual() == nullptr && source_code_ != nullptr) { + delete source_code_; + } + source_code_ = nullptr; +} +inline const ::flyteidl::admin::SourceCode& DescriptionEntity::source_code() const { + const ::flyteidl::admin::SourceCode* p = source_code_; + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.source_code) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_SourceCode_default_instance_); +} +inline ::flyteidl::admin::SourceCode* DescriptionEntity::release_source_code() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.source_code) + + ::flyteidl::admin::SourceCode* temp = source_code_; + source_code_ = nullptr; + return temp; +} +inline ::flyteidl::admin::SourceCode* DescriptionEntity::mutable_source_code() { + + if (source_code_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::SourceCode>(GetArenaNoVirtual()); + source_code_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.source_code) + return source_code_; +} +inline void DescriptionEntity::set_allocated_source_code(::flyteidl::admin::SourceCode* source_code) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete source_code_; + } + if (source_code) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + source_code = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source_code, submessage_arena); + } + + } else { + + } + source_code_ = source_code; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntity.source_code) +} + +// repeated string tags = 5; +inline int DescriptionEntity::tags_size() const { + return tags_.size(); +} +inline void DescriptionEntity::clear_tags() { + tags_.Clear(); +} +inline const ::std::string& DescriptionEntity::tags(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.tags) + return tags_.Get(index); +} +inline ::std::string* DescriptionEntity::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.tags) + return tags_.Mutable(index); +} +inline void DescriptionEntity::set_tags(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntity.tags) + tags_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void DescriptionEntity::set_tags(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntity.tags) + tags_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void DescriptionEntity::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntity.tags) +} +inline void DescriptionEntity::set_tags(int index, const char* value, size_t size) { + tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntity.tags) +} +inline ::std::string* DescriptionEntity::add_tags() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.DescriptionEntity.tags) + return tags_.Add(); +} +inline void DescriptionEntity::add_tags(const ::std::string& value) { + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.DescriptionEntity.tags) +} +#if LANG_CXX11 +inline void DescriptionEntity::add_tags(::std::string&& value) { + tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.DescriptionEntity.tags) +} +#endif +inline void DescriptionEntity::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.DescriptionEntity.tags) +} +inline void DescriptionEntity::add_tags(const char* value, size_t size) { + tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.DescriptionEntity.tags) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +DescriptionEntity::tags() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.DescriptionEntity.tags) + return tags_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +DescriptionEntity::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.DescriptionEntity.tags) + return &tags_; +} + +// ------------------------------------------------------------------- + +// Description + +// string value = 1; +inline bool Description::has_value() const { + return content_case() == kValue; +} +inline void Description::set_has_value() { + _oneof_case_[0] = kValue; +} +inline void Description::clear_value() { + if (has_value()) { + content_.value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_content(); + } +} +inline const ::std::string& Description::value() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Description.value) + if (has_value()) { + return content_.value_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Description::set_value(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.value) + if (!has_value()) { + clear_content(); + set_has_value(); + content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.value) +} +#if LANG_CXX11 +inline void Description::set_value(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.value) + if (!has_value()) { + clear_content(); + set_has_value(); + content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Description.value) +} +#endif +inline void Description::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_value()) { + clear_content(); + set_has_value(); + content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Description.value) +} +inline void Description::set_value(const char* value, size_t size) { + if (!has_value()) { + clear_content(); + set_has_value(); + content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Description.value) +} +inline ::std::string* Description::mutable_value() { + if (!has_value()) { + clear_content(); + set_has_value(); + content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Description.value) + return content_.value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Description::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Description.value) + if (has_value()) { + clear_has_content(); + return content_.value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void Description::set_allocated_value(::std::string* value) { + if (has_content()) { + clear_content(); + } + if (value != nullptr) { + set_has_value(); + content_.value_.UnsafeSetDefault(value); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Description.value) +} + +// string uri = 2; +inline bool Description::has_uri() const { + return content_case() == kUri; +} +inline void Description::set_has_uri() { + _oneof_case_[0] = kUri; +} +inline void Description::clear_uri() { + if (has_uri()) { + content_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_content(); + } +} +inline const ::std::string& Description::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Description.uri) + if (has_uri()) { + return content_.uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Description::set_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.uri) + if (!has_uri()) { + clear_content(); + set_has_uri(); + content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.uri) +} +#if LANG_CXX11 +inline void Description::set_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.uri) + if (!has_uri()) { + clear_content(); + set_has_uri(); + content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Description.uri) +} +#endif +inline void Description::set_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_uri()) { + clear_content(); + set_has_uri(); + content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Description.uri) +} +inline void Description::set_uri(const char* value, size_t size) { + if (!has_uri()) { + clear_content(); + set_has_uri(); + content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Description.uri) +} +inline ::std::string* Description::mutable_uri() { + if (!has_uri()) { + clear_content(); + set_has_uri(); + content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Description.uri) + return content_.uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Description::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Description.uri) + if (has_uri()) { + clear_has_content(); + return content_.uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void Description::set_allocated_uri(::std::string* uri) { + if (has_content()) { + clear_content(); + } + if (uri != nullptr) { + set_has_uri(); + content_.uri_.UnsafeSetDefault(uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Description.uri) +} + +// .flyteidl.admin.DescriptionFormat format = 3; +inline void Description::clear_format() { + format_ = 0; +} +inline ::flyteidl::admin::DescriptionFormat Description::format() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Description.format) + return static_cast< ::flyteidl::admin::DescriptionFormat >(format_); +} +inline void Description::set_format(::flyteidl::admin::DescriptionFormat value) { + + format_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.format) +} + +// string icon_link = 4; +inline void Description::clear_icon_link() { + icon_link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Description::icon_link() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Description.icon_link) + return icon_link_.GetNoArena(); +} +inline void Description::set_icon_link(const ::std::string& value) { + + icon_link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Description.icon_link) +} +#if LANG_CXX11 +inline void Description::set_icon_link(::std::string&& value) { + + icon_link_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Description.icon_link) +} +#endif +inline void Description::set_icon_link(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + icon_link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Description.icon_link) +} +inline void Description::set_icon_link(const char* value, size_t size) { + + icon_link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Description.icon_link) +} +inline ::std::string* Description::mutable_icon_link() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Description.icon_link) + return icon_link_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Description::release_icon_link() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Description.icon_link) + + return icon_link_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Description::set_allocated_icon_link(::std::string* icon_link) { + if (icon_link != nullptr) { + + } else { + + } + icon_link_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), icon_link); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Description.icon_link) +} + +inline bool Description::has_content() const { + return content_case() != CONTENT_NOT_SET; +} +inline void Description::clear_has_content() { + _oneof_case_[0] = CONTENT_NOT_SET; +} +inline Description::ContentCase Description::content_case() const { + return Description::ContentCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// SourceCode + +// string link = 1; +inline void SourceCode::clear_link() { + link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SourceCode::link() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SourceCode.link) + return link_.GetNoArena(); +} +inline void SourceCode::set_link(const ::std::string& value) { + + link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.SourceCode.link) +} +#if LANG_CXX11 +inline void SourceCode::set_link(::std::string&& value) { + + link_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SourceCode.link) +} +#endif +inline void SourceCode::set_link(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SourceCode.link) +} +inline void SourceCode::set_link(const char* value, size_t size) { + + link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SourceCode.link) +} +inline ::std::string* SourceCode::mutable_link() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SourceCode.link) + return link_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SourceCode::release_link() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SourceCode.link) + + return link_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SourceCode::set_allocated_link(::std::string* link) { + if (link != nullptr) { + + } else { + + } + link_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), link); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SourceCode.link) +} + +// ------------------------------------------------------------------- + +// DescriptionEntityList + +// repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; +inline int DescriptionEntityList::descriptionentities_size() const { + return descriptionentities_.size(); +} +inline void DescriptionEntityList::clear_descriptionentities() { + descriptionentities_.Clear(); +} +inline ::flyteidl::admin::DescriptionEntity* DescriptionEntityList::mutable_descriptionentities(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityList.descriptionEntities) + return descriptionentities_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >* +DescriptionEntityList::mutable_descriptionentities() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.DescriptionEntityList.descriptionEntities) + return &descriptionentities_; +} +inline const ::flyteidl::admin::DescriptionEntity& DescriptionEntityList::descriptionentities(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityList.descriptionEntities) + return descriptionentities_.Get(index); +} +inline ::flyteidl::admin::DescriptionEntity* DescriptionEntityList::add_descriptionentities() { + // @@protoc_insertion_point(field_add:flyteidl.admin.DescriptionEntityList.descriptionEntities) + return descriptionentities_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >& +DescriptionEntityList::descriptionentities() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.DescriptionEntityList.descriptionEntities) + return descriptionentities_; +} + +// string token = 2; +inline void DescriptionEntityList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DescriptionEntityList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityList.token) + return token_.GetNoArena(); +} +inline void DescriptionEntityList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityList.token) +} +#if LANG_CXX11 +inline void DescriptionEntityList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntityList.token) +} +#endif +inline void DescriptionEntityList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntityList.token) +} +inline void DescriptionEntityList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntityList.token) +} +inline ::std::string* DescriptionEntityList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DescriptionEntityList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DescriptionEntityList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityList.token) +} + +// ------------------------------------------------------------------- + +// DescriptionEntityListRequest + +// .flyteidl.core.ResourceType resource_type = 1; +inline void DescriptionEntityListRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::core::ResourceType DescriptionEntityListRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.resource_type) + return static_cast< ::flyteidl::core::ResourceType >(resource_type_); +} +inline void DescriptionEntityListRequest::set_resource_type(::flyteidl::core::ResourceType value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.resource_type) +} + +// .flyteidl.admin.NamedEntityIdentifier id = 2; +inline bool DescriptionEntityListRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& DescriptionEntityListRequest::id() const { + const ::flyteidl::admin::NamedEntityIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); +} +inline ::flyteidl::admin::NamedEntityIdentifier* DescriptionEntityListRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.id) + + ::flyteidl::admin::NamedEntityIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityIdentifier* DescriptionEntityListRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.id) + return id_; +} +inline void DescriptionEntityListRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityListRequest.id) +} + +// uint32 limit = 3; +inline void DescriptionEntityListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 DescriptionEntityListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.limit) + return limit_; +} +inline void DescriptionEntityListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.limit) +} + +// string token = 4; +inline void DescriptionEntityListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DescriptionEntityListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.token) + return token_.GetNoArena(); +} +inline void DescriptionEntityListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.token) +} +#if LANG_CXX11 +inline void DescriptionEntityListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntityListRequest.token) +} +#endif +inline void DescriptionEntityListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntityListRequest.token) +} +inline void DescriptionEntityListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntityListRequest.token) +} +inline ::std::string* DescriptionEntityListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DescriptionEntityListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DescriptionEntityListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityListRequest.token) +} + +// string filters = 5; +inline void DescriptionEntityListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DescriptionEntityListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.filters) + return filters_.GetNoArena(); +} +inline void DescriptionEntityListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.filters) +} +#if LANG_CXX11 +inline void DescriptionEntityListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntityListRequest.filters) +} +#endif +inline void DescriptionEntityListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntityListRequest.filters) +} +inline void DescriptionEntityListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntityListRequest.filters) +} +inline ::std::string* DescriptionEntityListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DescriptionEntityListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DescriptionEntityListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 6; +inline bool DescriptionEntityListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline const ::flyteidl::admin::Sort& DescriptionEntityListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* DescriptionEntityListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* DescriptionEntityListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.sort_by) + return sort_by_; +} +inline void DescriptionEntityListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityListRequest.sort_by) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::DescriptionFormat> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::DescriptionFormat>() { + return ::flyteidl::admin::DescriptionFormat_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fdescription_5fentity_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc new file mode 100644 index 0000000000..f62d0ba8c8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/event.proto + +#include "flyteidl/admin/event.pb.h" +#include "flyteidl/admin/event.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h new file mode 100644 index 0000000000..ec8ae4e8c4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/event.proto +#ifndef GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED + +#include "flyteidl/admin/event.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc new file mode 100644 index 0000000000..1d1100c3f6 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc @@ -0,0 +1,3121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +#include "flyteidl/admin/event.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto; +namespace flyteidl { +namespace admin { +class EventErrorAlreadyInTerminalStateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _EventErrorAlreadyInTerminalState_default_instance_; +class EventErrorIncompatibleClusterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _EventErrorIncompatibleCluster_default_instance_; +class EventFailureReasonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state_; + const ::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster_; +} _EventFailureReason_default_instance_; +class WorkflowExecutionEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionEventRequest_default_instance_; +class WorkflowExecutionEventResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionEventResponse_default_instance_; +class NodeExecutionEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionEventRequest_default_instance_; +class NodeExecutionEventResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionEventResponse_default_instance_; +class TaskExecutionEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionEventRequest_default_instance_; +class TaskExecutionEventResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionEventResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsEventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_; + new (ptr) ::flyteidl::admin::EventErrorAlreadyInTerminalState(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EventErrorAlreadyInTerminalState::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto}, {}}; + +static void InitDefaultsEventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_EventErrorIncompatibleCluster_default_instance_; + new (ptr) ::flyteidl::admin::EventErrorIncompatibleCluster(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EventErrorIncompatibleCluster::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto}, {}}; + +static void InitDefaultsEventFailureReason_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_EventFailureReason_default_instance_; + new (ptr) ::flyteidl::admin::EventFailureReason(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EventFailureReason::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEventFailureReason_flyteidl_2fadmin_2fevent_2eproto}, { + &scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base, + &scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base,}}; + +static void InitDefaultsWorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionEventRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto}, { + &scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; + +static void InitDefaultsWorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionEventResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionEventResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionEventResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto}, {}}; + +static void InitDefaultsNodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionEventRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionEventRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto}, { + &scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; + +static void InitDefaultsNodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionEventResponse_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionEventResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionEventResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto}, {}}; + +static void InitDefaultsTaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionEventRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionEventRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto}, { + &scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; + +static void InitDefaultsTaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionEventResponse_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionEventResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionEventResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fevent_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[9]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fevent_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fevent_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fevent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorAlreadyInTerminalState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorAlreadyInTerminalState, current_phase_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorIncompatibleCluster, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorIncompatibleCluster, cluster_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::EventFailureReasonDefaultTypeInternal, already_in_terminal_state_), + offsetof(::flyteidl::admin::EventFailureReasonDefaultTypeInternal, incompatible_cluster_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, reason_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, request_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, event_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, request_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, event_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, request_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, event_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::EventErrorAlreadyInTerminalState)}, + { 6, -1, sizeof(::flyteidl::admin::EventErrorIncompatibleCluster)}, + { 12, -1, sizeof(::flyteidl::admin::EventFailureReason)}, + { 20, -1, sizeof(::flyteidl::admin::WorkflowExecutionEventRequest)}, + { 27, -1, sizeof(::flyteidl::admin::WorkflowExecutionEventResponse)}, + { 32, -1, sizeof(::flyteidl::admin::NodeExecutionEventRequest)}, + { 39, -1, sizeof(::flyteidl::admin::NodeExecutionEventResponse)}, + { 44, -1, sizeof(::flyteidl::admin::TaskExecutionEventRequest)}, + { 51, -1, sizeof(::flyteidl::admin::TaskExecutionEventResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_), + reinterpret_cast(&::flyteidl::admin::_EventErrorIncompatibleCluster_default_instance_), + reinterpret_cast(&::flyteidl::admin::_EventFailureReason_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionEventResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionEventRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionEventResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionEventRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionEventResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fevent_2eproto, "flyteidl/admin/event.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fevent_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fevent_2eproto, 9, file_level_enum_descriptors_flyteidl_2fadmin_2fevent_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fevent_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fevent_2eproto[] = + "\n\032flyteidl/admin/event.proto\022\016flyteidl.a" + "dmin\032\032flyteidl/event/event.proto\"9\n Even" + "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + "phase\030\001 \001(\t\"0\n\035EventErrorIncompatibleClu" + "ster\022\017\n\007cluster\030\001 \001(\t\"\304\001\n\022EventFailureRe" + "ason\022U\n\031already_in_terminal_state\030\001 \001(\0132" + "0.flyteidl.admin.EventErrorAlreadyInTerm" + "inalStateH\000\022M\n\024incompatible_cluster\030\002 \001(" + "\0132-.flyteidl.admin.EventErrorIncompatibl" + "eClusterH\000B\010\n\006reason\"j\n\035WorkflowExecutio" + "nEventRequest\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005eve" + "nt\030\002 \001(\0132&.flyteidl.event.WorkflowExecut" + "ionEvent\" \n\036WorkflowExecutionEventRespon" + "se\"b\n\031NodeExecutionEventRequest\022\022\n\nreque" + "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + "ent.NodeExecutionEvent\"\034\n\032NodeExecutionE" + "ventResponse\"b\n\031TaskExecutionEventReques" + "t\022\022\n\nrequest_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".f" + "lyteidl.event.TaskExecutionEvent\"\034\n\032Task" + "ExecutionEventResponseB7Z5github.com/fly" + "teorg/flyteidl/gen/pb-go/flyteidl/adminb" + "\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fevent_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fevent_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fevent_2eproto, + "flyteidl/admin/event.proto", &assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto, 847, +}; + +void AddDescriptors_flyteidl_2fadmin_2fevent_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fevent_2fevent_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fevent_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fevent_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fevent_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void EventErrorAlreadyInTerminalState::InitAsDefaultInstance() { +} +class EventErrorAlreadyInTerminalState::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EventErrorAlreadyInTerminalState::kCurrentPhaseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EventErrorAlreadyInTerminalState::EventErrorAlreadyInTerminalState() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EventErrorAlreadyInTerminalState) +} +EventErrorAlreadyInTerminalState::EventErrorAlreadyInTerminalState(const EventErrorAlreadyInTerminalState& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + current_phase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.current_phase().size() > 0) { + current_phase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_phase_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventErrorAlreadyInTerminalState) +} + +void EventErrorAlreadyInTerminalState::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base); + current_phase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EventErrorAlreadyInTerminalState::~EventErrorAlreadyInTerminalState() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EventErrorAlreadyInTerminalState) + SharedDtor(); +} + +void EventErrorAlreadyInTerminalState::SharedDtor() { + current_phase_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EventErrorAlreadyInTerminalState::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EventErrorAlreadyInTerminalState& EventErrorAlreadyInTerminalState::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void EventErrorAlreadyInTerminalState::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + current_phase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EventErrorAlreadyInTerminalState::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string current_phase = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); + object = msg->mutable_current_phase(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool EventErrorAlreadyInTerminalState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string current_phase = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_current_phase())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->current_phase().data(), static_cast(this->current_phase().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.EventErrorAlreadyInTerminalState) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventErrorAlreadyInTerminalState) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void EventErrorAlreadyInTerminalState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string current_phase = 1; + if (this->current_phase().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->current_phase().data(), static_cast(this->current_phase().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->current_phase(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EventErrorAlreadyInTerminalState) +} + +::google::protobuf::uint8* EventErrorAlreadyInTerminalState::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string current_phase = 1; + if (this->current_phase().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->current_phase().data(), static_cast(this->current_phase().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->current_phase(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EventErrorAlreadyInTerminalState) + return target; +} + +size_t EventErrorAlreadyInTerminalState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string current_phase = 1; + if (this->current_phase().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->current_phase()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EventErrorAlreadyInTerminalState::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + GOOGLE_DCHECK_NE(&from, this); + const EventErrorAlreadyInTerminalState* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventErrorAlreadyInTerminalState) + MergeFrom(*source); + } +} + +void EventErrorAlreadyInTerminalState::MergeFrom(const EventErrorAlreadyInTerminalState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.current_phase().size() > 0) { + + current_phase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_phase_); + } +} + +void EventErrorAlreadyInTerminalState::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EventErrorAlreadyInTerminalState::CopyFrom(const EventErrorAlreadyInTerminalState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EventErrorAlreadyInTerminalState::IsInitialized() const { + return true; +} + +void EventErrorAlreadyInTerminalState::Swap(EventErrorAlreadyInTerminalState* other) { + if (other == this) return; + InternalSwap(other); +} +void EventErrorAlreadyInTerminalState::InternalSwap(EventErrorAlreadyInTerminalState* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + current_phase_.Swap(&other->current_phase_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata EventErrorAlreadyInTerminalState::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void EventErrorIncompatibleCluster::InitAsDefaultInstance() { +} +class EventErrorIncompatibleCluster::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EventErrorIncompatibleCluster::kClusterFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EventErrorIncompatibleCluster::EventErrorIncompatibleCluster() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EventErrorIncompatibleCluster) +} +EventErrorIncompatibleCluster::EventErrorIncompatibleCluster(const EventErrorIncompatibleCluster& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cluster().size() > 0) { + cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventErrorIncompatibleCluster) +} + +void EventErrorIncompatibleCluster::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base); + cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EventErrorIncompatibleCluster::~EventErrorIncompatibleCluster() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EventErrorIncompatibleCluster) + SharedDtor(); +} + +void EventErrorIncompatibleCluster::SharedDtor() { + cluster_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EventErrorIncompatibleCluster::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EventErrorIncompatibleCluster& EventErrorIncompatibleCluster::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void EventErrorIncompatibleCluster::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventErrorIncompatibleCluster) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EventErrorIncompatibleCluster::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string cluster = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.EventErrorIncompatibleCluster.cluster"); + object = msg->mutable_cluster(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool EventErrorIncompatibleCluster::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EventErrorIncompatibleCluster) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string cluster = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cluster())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster().data(), static_cast(this->cluster().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EventErrorIncompatibleCluster.cluster")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.EventErrorIncompatibleCluster) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventErrorIncompatibleCluster) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void EventErrorIncompatibleCluster::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventErrorIncompatibleCluster) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster = 1; + if (this->cluster().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster().data(), static_cast(this->cluster().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EventErrorIncompatibleCluster.cluster"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cluster(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EventErrorIncompatibleCluster) +} + +::google::protobuf::uint8* EventErrorIncompatibleCluster::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventErrorIncompatibleCluster) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster = 1; + if (this->cluster().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster().data(), static_cast(this->cluster().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EventErrorIncompatibleCluster.cluster"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cluster(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EventErrorIncompatibleCluster) + return target; +} + +size_t EventErrorIncompatibleCluster::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventErrorIncompatibleCluster) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string cluster = 1; + if (this->cluster().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cluster()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EventErrorIncompatibleCluster::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventErrorIncompatibleCluster) + GOOGLE_DCHECK_NE(&from, this); + const EventErrorIncompatibleCluster* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventErrorIncompatibleCluster) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventErrorIncompatibleCluster) + MergeFrom(*source); + } +} + +void EventErrorIncompatibleCluster::MergeFrom(const EventErrorIncompatibleCluster& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventErrorIncompatibleCluster) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cluster().size() > 0) { + + cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_); + } +} + +void EventErrorIncompatibleCluster::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventErrorIncompatibleCluster) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EventErrorIncompatibleCluster::CopyFrom(const EventErrorIncompatibleCluster& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventErrorIncompatibleCluster) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EventErrorIncompatibleCluster::IsInitialized() const { + return true; +} + +void EventErrorIncompatibleCluster::Swap(EventErrorIncompatibleCluster* other) { + if (other == this) return; + InternalSwap(other); +} +void EventErrorIncompatibleCluster::InternalSwap(EventErrorIncompatibleCluster* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + cluster_.Swap(&other->cluster_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata EventErrorIncompatibleCluster::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void EventFailureReason::InitAsDefaultInstance() { + ::flyteidl::admin::_EventFailureReason_default_instance_.already_in_terminal_state_ = const_cast< ::flyteidl::admin::EventErrorAlreadyInTerminalState*>( + ::flyteidl::admin::EventErrorAlreadyInTerminalState::internal_default_instance()); + ::flyteidl::admin::_EventFailureReason_default_instance_.incompatible_cluster_ = const_cast< ::flyteidl::admin::EventErrorIncompatibleCluster*>( + ::flyteidl::admin::EventErrorIncompatibleCluster::internal_default_instance()); +} +class EventFailureReason::HasBitSetters { + public: + static const ::flyteidl::admin::EventErrorAlreadyInTerminalState& already_in_terminal_state(const EventFailureReason* msg); + static const ::flyteidl::admin::EventErrorIncompatibleCluster& incompatible_cluster(const EventFailureReason* msg); +}; + +const ::flyteidl::admin::EventErrorAlreadyInTerminalState& +EventFailureReason::HasBitSetters::already_in_terminal_state(const EventFailureReason* msg) { + return *msg->reason_.already_in_terminal_state_; +} +const ::flyteidl::admin::EventErrorIncompatibleCluster& +EventFailureReason::HasBitSetters::incompatible_cluster(const EventFailureReason* msg) { + return *msg->reason_.incompatible_cluster_; +} +void EventFailureReason::set_allocated_already_in_terminal_state(::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reason(); + if (already_in_terminal_state) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + already_in_terminal_state = ::google::protobuf::internal::GetOwnedMessage( + message_arena, already_in_terminal_state, submessage_arena); + } + set_has_already_in_terminal_state(); + reason_.already_in_terminal_state_ = already_in_terminal_state; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventFailureReason.already_in_terminal_state) +} +void EventFailureReason::set_allocated_incompatible_cluster(::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reason(); + if (incompatible_cluster) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + incompatible_cluster = ::google::protobuf::internal::GetOwnedMessage( + message_arena, incompatible_cluster, submessage_arena); + } + set_has_incompatible_cluster(); + reason_.incompatible_cluster_ = incompatible_cluster; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventFailureReason.incompatible_cluster) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EventFailureReason::kAlreadyInTerminalStateFieldNumber; +const int EventFailureReason::kIncompatibleClusterFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EventFailureReason::EventFailureReason() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EventFailureReason) +} +EventFailureReason::EventFailureReason(const EventFailureReason& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_reason(); + switch (from.reason_case()) { + case kAlreadyInTerminalState: { + mutable_already_in_terminal_state()->::flyteidl::admin::EventErrorAlreadyInTerminalState::MergeFrom(from.already_in_terminal_state()); + break; + } + case kIncompatibleCluster: { + mutable_incompatible_cluster()->::flyteidl::admin::EventErrorIncompatibleCluster::MergeFrom(from.incompatible_cluster()); + break; + } + case REASON_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventFailureReason) +} + +void EventFailureReason::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto.base); + clear_has_reason(); +} + +EventFailureReason::~EventFailureReason() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EventFailureReason) + SharedDtor(); +} + +void EventFailureReason::SharedDtor() { + if (has_reason()) { + clear_reason(); + } +} + +void EventFailureReason::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EventFailureReason& EventFailureReason::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void EventFailureReason::clear_reason() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.EventFailureReason) + switch (reason_case()) { + case kAlreadyInTerminalState: { + delete reason_.already_in_terminal_state_; + break; + } + case kIncompatibleCluster: { + delete reason_.incompatible_cluster_; + break; + } + case REASON_NOT_SET: { + break; + } + } + _oneof_case_[0] = REASON_NOT_SET; +} + + +void EventFailureReason::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_reason(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EventFailureReason::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::EventErrorAlreadyInTerminalState::_InternalParse; + object = msg->mutable_already_in_terminal_state(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::EventErrorIncompatibleCluster::_InternalParse; + object = msg->mutable_incompatible_cluster(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool EventFailureReason::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EventFailureReason) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_already_in_terminal_state())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_incompatible_cluster())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.EventFailureReason) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventFailureReason) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void EventFailureReason::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + if (has_already_in_terminal_state()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::already_in_terminal_state(this), output); + } + + // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + if (has_incompatible_cluster()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::incompatible_cluster(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EventFailureReason) +} + +::google::protobuf::uint8* EventFailureReason::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + if (has_already_in_terminal_state()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::already_in_terminal_state(this), target); + } + + // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + if (has_incompatible_cluster()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::incompatible_cluster(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EventFailureReason) + return target; +} + +size_t EventFailureReason::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventFailureReason) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (reason_case()) { + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + case kAlreadyInTerminalState: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reason_.already_in_terminal_state_); + break; + } + // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + case kIncompatibleCluster: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reason_.incompatible_cluster_); + break; + } + case REASON_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EventFailureReason::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventFailureReason) + GOOGLE_DCHECK_NE(&from, this); + const EventFailureReason* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventFailureReason) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventFailureReason) + MergeFrom(*source); + } +} + +void EventFailureReason::MergeFrom(const EventFailureReason& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventFailureReason) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.reason_case()) { + case kAlreadyInTerminalState: { + mutable_already_in_terminal_state()->::flyteidl::admin::EventErrorAlreadyInTerminalState::MergeFrom(from.already_in_terminal_state()); + break; + } + case kIncompatibleCluster: { + mutable_incompatible_cluster()->::flyteidl::admin::EventErrorIncompatibleCluster::MergeFrom(from.incompatible_cluster()); + break; + } + case REASON_NOT_SET: { + break; + } + } +} + +void EventFailureReason::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EventFailureReason::CopyFrom(const EventFailureReason& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EventFailureReason::IsInitialized() const { + return true; +} + +void EventFailureReason::Swap(EventFailureReason* other) { + if (other == this) return; + InternalSwap(other); +} +void EventFailureReason::InternalSwap(EventFailureReason* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(reason_, other->reason_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata EventFailureReason::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionEventRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::WorkflowExecutionEvent*>( + ::flyteidl::event::WorkflowExecutionEvent::internal_default_instance()); +} +class WorkflowExecutionEventRequest::HasBitSetters { + public: + static const ::flyteidl::event::WorkflowExecutionEvent& event(const WorkflowExecutionEventRequest* msg); +}; + +const ::flyteidl::event::WorkflowExecutionEvent& +WorkflowExecutionEventRequest::HasBitSetters::event(const WorkflowExecutionEventRequest* msg) { + return *msg->event_; +} +void WorkflowExecutionEventRequest::clear_event() { + if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionEventRequest::kRequestIdFieldNumber; +const int WorkflowExecutionEventRequest::kEventFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionEventRequest::WorkflowExecutionEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionEventRequest) +} +WorkflowExecutionEventRequest::WorkflowExecutionEventRequest(const WorkflowExecutionEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.request_id().size() > 0) { + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + event_ = new ::flyteidl::event::WorkflowExecutionEvent(*from.event_); + } else { + event_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionEventRequest) +} + +void WorkflowExecutionEventRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + event_ = nullptr; +} + +WorkflowExecutionEventRequest::~WorkflowExecutionEventRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionEventRequest) + SharedDtor(); +} + +void WorkflowExecutionEventRequest::SharedDtor() { + request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete event_; +} + +void WorkflowExecutionEventRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionEventRequest& WorkflowExecutionEventRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionEventRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string request_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowExecutionEventRequest.request_id"); + object = msg->mutable_request_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.event.WorkflowExecutionEvent event = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::WorkflowExecutionEvent::_InternalParse; + object = msg->mutable_event(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionEventRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string request_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_request_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowExecutionEventRequest.request_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_event())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionEventRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowExecutionEventRequest.request_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->request_id(), output); + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + if (this->has_event()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::event(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionEventRequest) +} + +::google::protobuf::uint8* WorkflowExecutionEventRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowExecutionEventRequest.request_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->request_id(), target); + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + if (this->has_event()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::event(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionEventRequest) + return target; +} + +size_t WorkflowExecutionEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionEventRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->request_id()); + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + if (this->has_event()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *event_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionEventRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionEventRequest) + MergeFrom(*source); + } +} + +void WorkflowExecutionEventRequest::MergeFrom(const WorkflowExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + mutable_event()->::flyteidl::event::WorkflowExecutionEvent::MergeFrom(from.event()); + } +} + +void WorkflowExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionEventRequest::CopyFrom(const WorkflowExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionEventRequest::IsInitialized() const { + return true; +} + +void WorkflowExecutionEventRequest::Swap(WorkflowExecutionEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionEventRequest::InternalSwap(WorkflowExecutionEventRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(event_, other->event_); +} + +::google::protobuf::Metadata WorkflowExecutionEventRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionEventResponse::InitAsDefaultInstance() { +} +class WorkflowExecutionEventResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionEventResponse::WorkflowExecutionEventResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionEventResponse) +} +WorkflowExecutionEventResponse::WorkflowExecutionEventResponse(const WorkflowExecutionEventResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionEventResponse) +} + +void WorkflowExecutionEventResponse::SharedCtor() { +} + +WorkflowExecutionEventResponse::~WorkflowExecutionEventResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionEventResponse) + SharedDtor(); +} + +void WorkflowExecutionEventResponse::SharedDtor() { +} + +void WorkflowExecutionEventResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionEventResponse& WorkflowExecutionEventResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionEventResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionEventResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionEventResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionEventResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionEventResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionEventResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionEventResponse) +} + +::google::protobuf::uint8* WorkflowExecutionEventResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionEventResponse) + return target; +} + +size_t WorkflowExecutionEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionEventResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionEventResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionEventResponse) + MergeFrom(*source); + } +} + +void WorkflowExecutionEventResponse::MergeFrom(const WorkflowExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionEventResponse::CopyFrom(const WorkflowExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionEventResponse::IsInitialized() const { + return true; +} + +void WorkflowExecutionEventResponse::Swap(WorkflowExecutionEventResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionEventResponse::InternalSwap(WorkflowExecutionEventResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WorkflowExecutionEventResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionEventRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::NodeExecutionEvent*>( + ::flyteidl::event::NodeExecutionEvent::internal_default_instance()); +} +class NodeExecutionEventRequest::HasBitSetters { + public: + static const ::flyteidl::event::NodeExecutionEvent& event(const NodeExecutionEventRequest* msg); +}; + +const ::flyteidl::event::NodeExecutionEvent& +NodeExecutionEventRequest::HasBitSetters::event(const NodeExecutionEventRequest* msg) { + return *msg->event_; +} +void NodeExecutionEventRequest::clear_event() { + if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionEventRequest::kRequestIdFieldNumber; +const int NodeExecutionEventRequest::kEventFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionEventRequest::NodeExecutionEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionEventRequest) +} +NodeExecutionEventRequest::NodeExecutionEventRequest(const NodeExecutionEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.request_id().size() > 0) { + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + event_ = new ::flyteidl::event::NodeExecutionEvent(*from.event_); + } else { + event_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionEventRequest) +} + +void NodeExecutionEventRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + event_ = nullptr; +} + +NodeExecutionEventRequest::~NodeExecutionEventRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionEventRequest) + SharedDtor(); +} + +void NodeExecutionEventRequest::SharedDtor() { + request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete event_; +} + +void NodeExecutionEventRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionEventRequest& NodeExecutionEventRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionEventRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string request_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionEventRequest.request_id"); + object = msg->mutable_request_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.event.NodeExecutionEvent event = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::NodeExecutionEvent::_InternalParse; + object = msg->mutable_event(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionEventRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string request_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_request_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionEventRequest.request_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_event())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionEventRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionEventRequest.request_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->request_id(), output); + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + if (this->has_event()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::event(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionEventRequest) +} + +::google::protobuf::uint8* NodeExecutionEventRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionEventRequest.request_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->request_id(), target); + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + if (this->has_event()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::event(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionEventRequest) + return target; +} + +size_t NodeExecutionEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionEventRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->request_id()); + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + if (this->has_event()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *event_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionEventRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionEventRequest) + MergeFrom(*source); + } +} + +void NodeExecutionEventRequest::MergeFrom(const NodeExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + mutable_event()->::flyteidl::event::NodeExecutionEvent::MergeFrom(from.event()); + } +} + +void NodeExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionEventRequest::CopyFrom(const NodeExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionEventRequest::IsInitialized() const { + return true; +} + +void NodeExecutionEventRequest::Swap(NodeExecutionEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionEventRequest::InternalSwap(NodeExecutionEventRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(event_, other->event_); +} + +::google::protobuf::Metadata NodeExecutionEventRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionEventResponse::InitAsDefaultInstance() { +} +class NodeExecutionEventResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionEventResponse::NodeExecutionEventResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionEventResponse) +} +NodeExecutionEventResponse::NodeExecutionEventResponse(const NodeExecutionEventResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionEventResponse) +} + +void NodeExecutionEventResponse::SharedCtor() { +} + +NodeExecutionEventResponse::~NodeExecutionEventResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionEventResponse) + SharedDtor(); +} + +void NodeExecutionEventResponse::SharedDtor() { +} + +void NodeExecutionEventResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionEventResponse& NodeExecutionEventResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionEventResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionEventResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionEventResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionEventResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionEventResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionEventResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionEventResponse) +} + +::google::protobuf::uint8* NodeExecutionEventResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionEventResponse) + return target; +} + +size_t NodeExecutionEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionEventResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionEventResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionEventResponse) + MergeFrom(*source); + } +} + +void NodeExecutionEventResponse::MergeFrom(const NodeExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void NodeExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionEventResponse::CopyFrom(const NodeExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionEventResponse::IsInitialized() const { + return true; +} + +void NodeExecutionEventResponse::Swap(NodeExecutionEventResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionEventResponse::InternalSwap(NodeExecutionEventResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NodeExecutionEventResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionEventRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::TaskExecutionEvent*>( + ::flyteidl::event::TaskExecutionEvent::internal_default_instance()); +} +class TaskExecutionEventRequest::HasBitSetters { + public: + static const ::flyteidl::event::TaskExecutionEvent& event(const TaskExecutionEventRequest* msg); +}; + +const ::flyteidl::event::TaskExecutionEvent& +TaskExecutionEventRequest::HasBitSetters::event(const TaskExecutionEventRequest* msg) { + return *msg->event_; +} +void TaskExecutionEventRequest::clear_event() { + if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionEventRequest::kRequestIdFieldNumber; +const int TaskExecutionEventRequest::kEventFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionEventRequest::TaskExecutionEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionEventRequest) +} +TaskExecutionEventRequest::TaskExecutionEventRequest(const TaskExecutionEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.request_id().size() > 0) { + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + event_ = new ::flyteidl::event::TaskExecutionEvent(*from.event_); + } else { + event_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionEventRequest) +} + +void TaskExecutionEventRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + event_ = nullptr; +} + +TaskExecutionEventRequest::~TaskExecutionEventRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionEventRequest) + SharedDtor(); +} + +void TaskExecutionEventRequest::SharedDtor() { + request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete event_; +} + +void TaskExecutionEventRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionEventRequest& TaskExecutionEventRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { + delete event_; + } + event_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionEventRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string request_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionEventRequest.request_id"); + object = msg->mutable_request_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.event.TaskExecutionEvent event = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::TaskExecutionEvent::_InternalParse; + object = msg->mutable_event(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionEventRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string request_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_request_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionEventRequest.request_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_event())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionEventRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionEventRequest.request_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->request_id(), output); + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + if (this->has_event()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::event(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionEventRequest) +} + +::google::protobuf::uint8* TaskExecutionEventRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionEventRequest.request_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->request_id(), target); + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + if (this->has_event()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::event(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionEventRequest) + return target; +} + +size_t TaskExecutionEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionEventRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->request_id()); + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + if (this->has_event()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *event_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionEventRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionEventRequest) + MergeFrom(*source); + } +} + +void TaskExecutionEventRequest::MergeFrom(const TaskExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + mutable_event()->::flyteidl::event::TaskExecutionEvent::MergeFrom(from.event()); + } +} + +void TaskExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionEventRequest::CopyFrom(const TaskExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionEventRequest::IsInitialized() const { + return true; +} + +void TaskExecutionEventRequest::Swap(TaskExecutionEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionEventRequest::InternalSwap(TaskExecutionEventRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(event_, other->event_); +} + +::google::protobuf::Metadata TaskExecutionEventRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionEventResponse::InitAsDefaultInstance() { +} +class TaskExecutionEventResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionEventResponse::TaskExecutionEventResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionEventResponse) +} +TaskExecutionEventResponse::TaskExecutionEventResponse(const TaskExecutionEventResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionEventResponse) +} + +void TaskExecutionEventResponse::SharedCtor() { +} + +TaskExecutionEventResponse::~TaskExecutionEventResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionEventResponse) + SharedDtor(); +} + +void TaskExecutionEventResponse::SharedDtor() { +} + +void TaskExecutionEventResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionEventResponse& TaskExecutionEventResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionEventResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionEventResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionEventResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionEventResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionEventResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionEventResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionEventResponse) +} + +::google::protobuf::uint8* TaskExecutionEventResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionEventResponse) + return target; +} + +size_t TaskExecutionEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionEventResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionEventResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionEventResponse) + MergeFrom(*source); + } +} + +void TaskExecutionEventResponse::MergeFrom(const TaskExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TaskExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionEventResponse::CopyFrom(const TaskExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionEventResponse::IsInitialized() const { + return true; +} + +void TaskExecutionEventResponse::Swap(TaskExecutionEventResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionEventResponse::InternalSwap(TaskExecutionEventResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TaskExecutionEventResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::EventErrorAlreadyInTerminalState* Arena::CreateMaybeMessage< ::flyteidl::admin::EventErrorAlreadyInTerminalState >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::EventErrorAlreadyInTerminalState >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::EventErrorIncompatibleCluster* Arena::CreateMaybeMessage< ::flyteidl::admin::EventErrorIncompatibleCluster >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::EventErrorIncompatibleCluster >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::EventFailureReason* Arena::CreateMaybeMessage< ::flyteidl::admin::EventFailureReason >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::EventFailureReason >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionEventRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionEventRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionEventRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionEventResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionEventResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionEventResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionEventRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionEventRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionEventRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionEventResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionEventResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionEventResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionEventRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionEventRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionEventRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionEventResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionEventResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionEventResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h new file mode 100644 index 0000000000..0301c4c77a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h @@ -0,0 +1,1749 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fevent_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fevent_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/event/event.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fevent_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fevent_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[9] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fevent_2eproto(); +namespace flyteidl { +namespace admin { +class EventErrorAlreadyInTerminalState; +class EventErrorAlreadyInTerminalStateDefaultTypeInternal; +extern EventErrorAlreadyInTerminalStateDefaultTypeInternal _EventErrorAlreadyInTerminalState_default_instance_; +class EventErrorIncompatibleCluster; +class EventErrorIncompatibleClusterDefaultTypeInternal; +extern EventErrorIncompatibleClusterDefaultTypeInternal _EventErrorIncompatibleCluster_default_instance_; +class EventFailureReason; +class EventFailureReasonDefaultTypeInternal; +extern EventFailureReasonDefaultTypeInternal _EventFailureReason_default_instance_; +class NodeExecutionEventRequest; +class NodeExecutionEventRequestDefaultTypeInternal; +extern NodeExecutionEventRequestDefaultTypeInternal _NodeExecutionEventRequest_default_instance_; +class NodeExecutionEventResponse; +class NodeExecutionEventResponseDefaultTypeInternal; +extern NodeExecutionEventResponseDefaultTypeInternal _NodeExecutionEventResponse_default_instance_; +class TaskExecutionEventRequest; +class TaskExecutionEventRequestDefaultTypeInternal; +extern TaskExecutionEventRequestDefaultTypeInternal _TaskExecutionEventRequest_default_instance_; +class TaskExecutionEventResponse; +class TaskExecutionEventResponseDefaultTypeInternal; +extern TaskExecutionEventResponseDefaultTypeInternal _TaskExecutionEventResponse_default_instance_; +class WorkflowExecutionEventRequest; +class WorkflowExecutionEventRequestDefaultTypeInternal; +extern WorkflowExecutionEventRequestDefaultTypeInternal _WorkflowExecutionEventRequest_default_instance_; +class WorkflowExecutionEventResponse; +class WorkflowExecutionEventResponseDefaultTypeInternal; +extern WorkflowExecutionEventResponseDefaultTypeInternal _WorkflowExecutionEventResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::EventErrorAlreadyInTerminalState* Arena::CreateMaybeMessage<::flyteidl::admin::EventErrorAlreadyInTerminalState>(Arena*); +template<> ::flyteidl::admin::EventErrorIncompatibleCluster* Arena::CreateMaybeMessage<::flyteidl::admin::EventErrorIncompatibleCluster>(Arena*); +template<> ::flyteidl::admin::EventFailureReason* Arena::CreateMaybeMessage<::flyteidl::admin::EventFailureReason>(Arena*); +template<> ::flyteidl::admin::NodeExecutionEventRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionEventRequest>(Arena*); +template<> ::flyteidl::admin::NodeExecutionEventResponse* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionEventResponse>(Arena*); +template<> ::flyteidl::admin::TaskExecutionEventRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionEventRequest>(Arena*); +template<> ::flyteidl::admin::TaskExecutionEventResponse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionEventResponse>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionEventRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionEventRequest>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionEventResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionEventResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class EventErrorAlreadyInTerminalState final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventErrorAlreadyInTerminalState) */ { + public: + EventErrorAlreadyInTerminalState(); + virtual ~EventErrorAlreadyInTerminalState(); + + EventErrorAlreadyInTerminalState(const EventErrorAlreadyInTerminalState& from); + + inline EventErrorAlreadyInTerminalState& operator=(const EventErrorAlreadyInTerminalState& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EventErrorAlreadyInTerminalState(EventErrorAlreadyInTerminalState&& from) noexcept + : EventErrorAlreadyInTerminalState() { + *this = ::std::move(from); + } + + inline EventErrorAlreadyInTerminalState& operator=(EventErrorAlreadyInTerminalState&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const EventErrorAlreadyInTerminalState& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EventErrorAlreadyInTerminalState* internal_default_instance() { + return reinterpret_cast( + &_EventErrorAlreadyInTerminalState_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(EventErrorAlreadyInTerminalState* other); + friend void swap(EventErrorAlreadyInTerminalState& a, EventErrorAlreadyInTerminalState& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EventErrorAlreadyInTerminalState* New() const final { + return CreateMaybeMessage(nullptr); + } + + EventErrorAlreadyInTerminalState* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EventErrorAlreadyInTerminalState& from); + void MergeFrom(const EventErrorAlreadyInTerminalState& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EventErrorAlreadyInTerminalState* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string current_phase = 1; + void clear_current_phase(); + static const int kCurrentPhaseFieldNumber = 1; + const ::std::string& current_phase() const; + void set_current_phase(const ::std::string& value); + #if LANG_CXX11 + void set_current_phase(::std::string&& value); + #endif + void set_current_phase(const char* value); + void set_current_phase(const char* value, size_t size); + ::std::string* mutable_current_phase(); + ::std::string* release_current_phase(); + void set_allocated_current_phase(::std::string* current_phase); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr current_phase_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class EventErrorIncompatibleCluster final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventErrorIncompatibleCluster) */ { + public: + EventErrorIncompatibleCluster(); + virtual ~EventErrorIncompatibleCluster(); + + EventErrorIncompatibleCluster(const EventErrorIncompatibleCluster& from); + + inline EventErrorIncompatibleCluster& operator=(const EventErrorIncompatibleCluster& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EventErrorIncompatibleCluster(EventErrorIncompatibleCluster&& from) noexcept + : EventErrorIncompatibleCluster() { + *this = ::std::move(from); + } + + inline EventErrorIncompatibleCluster& operator=(EventErrorIncompatibleCluster&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const EventErrorIncompatibleCluster& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EventErrorIncompatibleCluster* internal_default_instance() { + return reinterpret_cast( + &_EventErrorIncompatibleCluster_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(EventErrorIncompatibleCluster* other); + friend void swap(EventErrorIncompatibleCluster& a, EventErrorIncompatibleCluster& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EventErrorIncompatibleCluster* New() const final { + return CreateMaybeMessage(nullptr); + } + + EventErrorIncompatibleCluster* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EventErrorIncompatibleCluster& from); + void MergeFrom(const EventErrorIncompatibleCluster& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EventErrorIncompatibleCluster* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string cluster = 1; + void clear_cluster(); + static const int kClusterFieldNumber = 1; + const ::std::string& cluster() const; + void set_cluster(const ::std::string& value); + #if LANG_CXX11 + void set_cluster(::std::string&& value); + #endif + void set_cluster(const char* value); + void set_cluster(const char* value, size_t size); + ::std::string* mutable_cluster(); + ::std::string* release_cluster(); + void set_allocated_cluster(::std::string* cluster); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorIncompatibleCluster) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cluster_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class EventFailureReason final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventFailureReason) */ { + public: + EventFailureReason(); + virtual ~EventFailureReason(); + + EventFailureReason(const EventFailureReason& from); + + inline EventFailureReason& operator=(const EventFailureReason& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EventFailureReason(EventFailureReason&& from) noexcept + : EventFailureReason() { + *this = ::std::move(from); + } + + inline EventFailureReason& operator=(EventFailureReason&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const EventFailureReason& default_instance(); + + enum ReasonCase { + kAlreadyInTerminalState = 1, + kIncompatibleCluster = 2, + REASON_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EventFailureReason* internal_default_instance() { + return reinterpret_cast( + &_EventFailureReason_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(EventFailureReason* other); + friend void swap(EventFailureReason& a, EventFailureReason& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EventFailureReason* New() const final { + return CreateMaybeMessage(nullptr); + } + + EventFailureReason* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EventFailureReason& from); + void MergeFrom(const EventFailureReason& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EventFailureReason* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + bool has_already_in_terminal_state() const; + void clear_already_in_terminal_state(); + static const int kAlreadyInTerminalStateFieldNumber = 1; + const ::flyteidl::admin::EventErrorAlreadyInTerminalState& already_in_terminal_state() const; + ::flyteidl::admin::EventErrorAlreadyInTerminalState* release_already_in_terminal_state(); + ::flyteidl::admin::EventErrorAlreadyInTerminalState* mutable_already_in_terminal_state(); + void set_allocated_already_in_terminal_state(::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state); + + // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + bool has_incompatible_cluster() const; + void clear_incompatible_cluster(); + static const int kIncompatibleClusterFieldNumber = 2; + const ::flyteidl::admin::EventErrorIncompatibleCluster& incompatible_cluster() const; + ::flyteidl::admin::EventErrorIncompatibleCluster* release_incompatible_cluster(); + ::flyteidl::admin::EventErrorIncompatibleCluster* mutable_incompatible_cluster(); + void set_allocated_incompatible_cluster(::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster); + + void clear_reason(); + ReasonCase reason_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) + private: + class HasBitSetters; + void set_has_already_in_terminal_state(); + void set_has_incompatible_cluster(); + + inline bool has_reason() const; + inline void clear_has_reason(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ReasonUnion { + ReasonUnion() {} + ::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state_; + ::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster_; + } reason_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionEventRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionEventRequest) */ { + public: + WorkflowExecutionEventRequest(); + virtual ~WorkflowExecutionEventRequest(); + + WorkflowExecutionEventRequest(const WorkflowExecutionEventRequest& from); + + inline WorkflowExecutionEventRequest& operator=(const WorkflowExecutionEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionEventRequest(WorkflowExecutionEventRequest&& from) noexcept + : WorkflowExecutionEventRequest() { + *this = ::std::move(from); + } + + inline WorkflowExecutionEventRequest& operator=(WorkflowExecutionEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionEventRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionEventRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(WorkflowExecutionEventRequest* other); + friend void swap(WorkflowExecutionEventRequest& a, WorkflowExecutionEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionEventRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionEventRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionEventRequest& from); + void MergeFrom(const WorkflowExecutionEventRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string request_id = 1; + void clear_request_id(); + static const int kRequestIdFieldNumber = 1; + const ::std::string& request_id() const; + void set_request_id(const ::std::string& value); + #if LANG_CXX11 + void set_request_id(::std::string&& value); + #endif + void set_request_id(const char* value); + void set_request_id(const char* value, size_t size); + ::std::string* mutable_request_id(); + ::std::string* release_request_id(); + void set_allocated_request_id(::std::string* request_id); + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + bool has_event() const; + void clear_event(); + static const int kEventFieldNumber = 2; + const ::flyteidl::event::WorkflowExecutionEvent& event() const; + ::flyteidl::event::WorkflowExecutionEvent* release_event(); + ::flyteidl::event::WorkflowExecutionEvent* mutable_event(); + void set_allocated_event(::flyteidl::event::WorkflowExecutionEvent* event); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr request_id_; + ::flyteidl::event::WorkflowExecutionEvent* event_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionEventResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionEventResponse) */ { + public: + WorkflowExecutionEventResponse(); + virtual ~WorkflowExecutionEventResponse(); + + WorkflowExecutionEventResponse(const WorkflowExecutionEventResponse& from); + + inline WorkflowExecutionEventResponse& operator=(const WorkflowExecutionEventResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionEventResponse(WorkflowExecutionEventResponse&& from) noexcept + : WorkflowExecutionEventResponse() { + *this = ::std::move(from); + } + + inline WorkflowExecutionEventResponse& operator=(WorkflowExecutionEventResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionEventResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionEventResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionEventResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(WorkflowExecutionEventResponse* other); + friend void swap(WorkflowExecutionEventResponse& a, WorkflowExecutionEventResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionEventResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionEventResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionEventResponse& from); + void MergeFrom(const WorkflowExecutionEventResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionEventResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionEventRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionEventRequest) */ { + public: + NodeExecutionEventRequest(); + virtual ~NodeExecutionEventRequest(); + + NodeExecutionEventRequest(const NodeExecutionEventRequest& from); + + inline NodeExecutionEventRequest& operator=(const NodeExecutionEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionEventRequest(NodeExecutionEventRequest&& from) noexcept + : NodeExecutionEventRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionEventRequest& operator=(NodeExecutionEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionEventRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionEventRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(NodeExecutionEventRequest* other); + friend void swap(NodeExecutionEventRequest& a, NodeExecutionEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionEventRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionEventRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionEventRequest& from); + void MergeFrom(const NodeExecutionEventRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string request_id = 1; + void clear_request_id(); + static const int kRequestIdFieldNumber = 1; + const ::std::string& request_id() const; + void set_request_id(const ::std::string& value); + #if LANG_CXX11 + void set_request_id(::std::string&& value); + #endif + void set_request_id(const char* value); + void set_request_id(const char* value, size_t size); + ::std::string* mutable_request_id(); + ::std::string* release_request_id(); + void set_allocated_request_id(::std::string* request_id); + + // .flyteidl.event.NodeExecutionEvent event = 2; + bool has_event() const; + void clear_event(); + static const int kEventFieldNumber = 2; + const ::flyteidl::event::NodeExecutionEvent& event() const; + ::flyteidl::event::NodeExecutionEvent* release_event(); + ::flyteidl::event::NodeExecutionEvent* mutable_event(); + void set_allocated_event(::flyteidl::event::NodeExecutionEvent* event); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr request_id_; + ::flyteidl::event::NodeExecutionEvent* event_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionEventResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionEventResponse) */ { + public: + NodeExecutionEventResponse(); + virtual ~NodeExecutionEventResponse(); + + NodeExecutionEventResponse(const NodeExecutionEventResponse& from); + + inline NodeExecutionEventResponse& operator=(const NodeExecutionEventResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionEventResponse(NodeExecutionEventResponse&& from) noexcept + : NodeExecutionEventResponse() { + *this = ::std::move(from); + } + + inline NodeExecutionEventResponse& operator=(NodeExecutionEventResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionEventResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionEventResponse* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionEventResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(NodeExecutionEventResponse* other); + friend void swap(NodeExecutionEventResponse& a, NodeExecutionEventResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionEventResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionEventResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionEventResponse& from); + void MergeFrom(const NodeExecutionEventResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionEventResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionEventRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionEventRequest) */ { + public: + TaskExecutionEventRequest(); + virtual ~TaskExecutionEventRequest(); + + TaskExecutionEventRequest(const TaskExecutionEventRequest& from); + + inline TaskExecutionEventRequest& operator=(const TaskExecutionEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionEventRequest(TaskExecutionEventRequest&& from) noexcept + : TaskExecutionEventRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionEventRequest& operator=(TaskExecutionEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionEventRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionEventRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(TaskExecutionEventRequest* other); + friend void swap(TaskExecutionEventRequest& a, TaskExecutionEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionEventRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionEventRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionEventRequest& from); + void MergeFrom(const TaskExecutionEventRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string request_id = 1; + void clear_request_id(); + static const int kRequestIdFieldNumber = 1; + const ::std::string& request_id() const; + void set_request_id(const ::std::string& value); + #if LANG_CXX11 + void set_request_id(::std::string&& value); + #endif + void set_request_id(const char* value); + void set_request_id(const char* value, size_t size); + ::std::string* mutable_request_id(); + ::std::string* release_request_id(); + void set_allocated_request_id(::std::string* request_id); + + // .flyteidl.event.TaskExecutionEvent event = 2; + bool has_event() const; + void clear_event(); + static const int kEventFieldNumber = 2; + const ::flyteidl::event::TaskExecutionEvent& event() const; + ::flyteidl::event::TaskExecutionEvent* release_event(); + ::flyteidl::event::TaskExecutionEvent* mutable_event(); + void set_allocated_event(::flyteidl::event::TaskExecutionEvent* event); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr request_id_; + ::flyteidl::event::TaskExecutionEvent* event_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionEventResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionEventResponse) */ { + public: + TaskExecutionEventResponse(); + virtual ~TaskExecutionEventResponse(); + + TaskExecutionEventResponse(const TaskExecutionEventResponse& from); + + inline TaskExecutionEventResponse& operator=(const TaskExecutionEventResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionEventResponse(TaskExecutionEventResponse&& from) noexcept + : TaskExecutionEventResponse() { + *this = ::std::move(from); + } + + inline TaskExecutionEventResponse& operator=(TaskExecutionEventResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionEventResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionEventResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionEventResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(TaskExecutionEventResponse* other); + friend void swap(TaskExecutionEventResponse& a, TaskExecutionEventResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionEventResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionEventResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionEventResponse& from); + void MergeFrom(const TaskExecutionEventResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionEventResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EventErrorAlreadyInTerminalState + +// string current_phase = 1; +inline void EventErrorAlreadyInTerminalState::clear_current_phase() { + current_phase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EventErrorAlreadyInTerminalState::current_phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) + return current_phase_.GetNoArena(); +} +inline void EventErrorAlreadyInTerminalState::set_current_phase(const ::std::string& value) { + + current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +#if LANG_CXX11 +inline void EventErrorAlreadyInTerminalState::set_current_phase(::std::string&& value) { + + current_phase_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +#endif +inline void EventErrorAlreadyInTerminalState::set_current_phase(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +inline void EventErrorAlreadyInTerminalState::set_current_phase(const char* value, size_t size) { + + current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +inline ::std::string* EventErrorAlreadyInTerminalState::mutable_current_phase() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) + return current_phase_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EventErrorAlreadyInTerminalState::release_current_phase() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) + + return current_phase_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EventErrorAlreadyInTerminalState::set_allocated_current_phase(::std::string* current_phase) { + if (current_phase != nullptr) { + + } else { + + } + current_phase_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), current_phase); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} + +// ------------------------------------------------------------------- + +// EventErrorIncompatibleCluster + +// string cluster = 1; +inline void EventErrorIncompatibleCluster::clear_cluster() { + cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EventErrorIncompatibleCluster::cluster() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EventErrorIncompatibleCluster.cluster) + return cluster_.GetNoArena(); +} +inline void EventErrorIncompatibleCluster::set_cluster(const ::std::string& value) { + + cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EventErrorIncompatibleCluster.cluster) +} +#if LANG_CXX11 +inline void EventErrorIncompatibleCluster::set_cluster(::std::string&& value) { + + cluster_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EventErrorIncompatibleCluster.cluster) +} +#endif +inline void EventErrorIncompatibleCluster::set_cluster(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EventErrorIncompatibleCluster.cluster) +} +inline void EventErrorIncompatibleCluster::set_cluster(const char* value, size_t size) { + + cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EventErrorIncompatibleCluster.cluster) +} +inline ::std::string* EventErrorIncompatibleCluster::mutable_cluster() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventErrorIncompatibleCluster.cluster) + return cluster_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EventErrorIncompatibleCluster::release_cluster() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EventErrorIncompatibleCluster.cluster) + + return cluster_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EventErrorIncompatibleCluster::set_allocated_cluster(::std::string* cluster) { + if (cluster != nullptr) { + + } else { + + } + cluster_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventErrorIncompatibleCluster.cluster) +} + +// ------------------------------------------------------------------- + +// EventFailureReason + +// .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; +inline bool EventFailureReason::has_already_in_terminal_state() const { + return reason_case() == kAlreadyInTerminalState; +} +inline void EventFailureReason::set_has_already_in_terminal_state() { + _oneof_case_[0] = kAlreadyInTerminalState; +} +inline void EventFailureReason::clear_already_in_terminal_state() { + if (has_already_in_terminal_state()) { + delete reason_.already_in_terminal_state_; + clear_has_reason(); + } +} +inline ::flyteidl::admin::EventErrorAlreadyInTerminalState* EventFailureReason::release_already_in_terminal_state() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EventFailureReason.already_in_terminal_state) + if (has_already_in_terminal_state()) { + clear_has_reason(); + ::flyteidl::admin::EventErrorAlreadyInTerminalState* temp = reason_.already_in_terminal_state_; + reason_.already_in_terminal_state_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::EventErrorAlreadyInTerminalState& EventFailureReason::already_in_terminal_state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EventFailureReason.already_in_terminal_state) + return has_already_in_terminal_state() + ? *reason_.already_in_terminal_state_ + : *reinterpret_cast< ::flyteidl::admin::EventErrorAlreadyInTerminalState*>(&::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_); +} +inline ::flyteidl::admin::EventErrorAlreadyInTerminalState* EventFailureReason::mutable_already_in_terminal_state() { + if (!has_already_in_terminal_state()) { + clear_reason(); + set_has_already_in_terminal_state(); + reason_.already_in_terminal_state_ = CreateMaybeMessage< ::flyteidl::admin::EventErrorAlreadyInTerminalState >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventFailureReason.already_in_terminal_state) + return reason_.already_in_terminal_state_; +} + +// .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; +inline bool EventFailureReason::has_incompatible_cluster() const { + return reason_case() == kIncompatibleCluster; +} +inline void EventFailureReason::set_has_incompatible_cluster() { + _oneof_case_[0] = kIncompatibleCluster; +} +inline void EventFailureReason::clear_incompatible_cluster() { + if (has_incompatible_cluster()) { + delete reason_.incompatible_cluster_; + clear_has_reason(); + } +} +inline ::flyteidl::admin::EventErrorIncompatibleCluster* EventFailureReason::release_incompatible_cluster() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EventFailureReason.incompatible_cluster) + if (has_incompatible_cluster()) { + clear_has_reason(); + ::flyteidl::admin::EventErrorIncompatibleCluster* temp = reason_.incompatible_cluster_; + reason_.incompatible_cluster_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::EventErrorIncompatibleCluster& EventFailureReason::incompatible_cluster() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EventFailureReason.incompatible_cluster) + return has_incompatible_cluster() + ? *reason_.incompatible_cluster_ + : *reinterpret_cast< ::flyteidl::admin::EventErrorIncompatibleCluster*>(&::flyteidl::admin::_EventErrorIncompatibleCluster_default_instance_); +} +inline ::flyteidl::admin::EventErrorIncompatibleCluster* EventFailureReason::mutable_incompatible_cluster() { + if (!has_incompatible_cluster()) { + clear_reason(); + set_has_incompatible_cluster(); + reason_.incompatible_cluster_ = CreateMaybeMessage< ::flyteidl::admin::EventErrorIncompatibleCluster >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventFailureReason.incompatible_cluster) + return reason_.incompatible_cluster_; +} + +inline bool EventFailureReason::has_reason() const { + return reason_case() != REASON_NOT_SET; +} +inline void EventFailureReason::clear_has_reason() { + _oneof_case_[0] = REASON_NOT_SET; +} +inline EventFailureReason::ReasonCase EventFailureReason::reason_case() const { + return EventFailureReason::ReasonCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// WorkflowExecutionEventRequest + +// string request_id = 1; +inline void WorkflowExecutionEventRequest::clear_request_id() { + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionEventRequest::request_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionEventRequest.request_id) + return request_id_.GetNoArena(); +} +inline void WorkflowExecutionEventRequest::set_request_id(const ::std::string& value) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +#if LANG_CXX11 +inline void WorkflowExecutionEventRequest::set_request_id(::std::string&& value) { + + request_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +#endif +inline void WorkflowExecutionEventRequest::set_request_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +inline void WorkflowExecutionEventRequest::set_request_id(const char* value, size_t size) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +inline ::std::string* WorkflowExecutionEventRequest::mutable_request_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionEventRequest.request_id) + return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionEventRequest::release_request_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionEventRequest.request_id) + + return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} + +// .flyteidl.event.WorkflowExecutionEvent event = 2; +inline bool WorkflowExecutionEventRequest::has_event() const { + return this != internal_default_instance() && event_ != nullptr; +} +inline const ::flyteidl::event::WorkflowExecutionEvent& WorkflowExecutionEventRequest::event() const { + const ::flyteidl::event::WorkflowExecutionEvent* p = event_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionEventRequest.event) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_WorkflowExecutionEvent_default_instance_); +} +inline ::flyteidl::event::WorkflowExecutionEvent* WorkflowExecutionEventRequest::release_event() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionEventRequest.event) + + ::flyteidl::event::WorkflowExecutionEvent* temp = event_; + event_ = nullptr; + return temp; +} +inline ::flyteidl::event::WorkflowExecutionEvent* WorkflowExecutionEventRequest::mutable_event() { + + if (event_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::WorkflowExecutionEvent>(GetArenaNoVirtual()); + event_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionEventRequest.event) + return event_; +} +inline void WorkflowExecutionEventRequest::set_allocated_event(::flyteidl::event::WorkflowExecutionEvent* event) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); + } + if (event) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + event = ::google::protobuf::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + event_ = event; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionEventRequest.event) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionEventResponse + +// ------------------------------------------------------------------- + +// NodeExecutionEventRequest + +// string request_id = 1; +inline void NodeExecutionEventRequest::clear_request_id() { + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEventRequest::request_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionEventRequest.request_id) + return request_id_.GetNoArena(); +} +inline void NodeExecutionEventRequest::set_request_id(const ::std::string& value) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +#if LANG_CXX11 +inline void NodeExecutionEventRequest::set_request_id(::std::string&& value) { + + request_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +#endif +inline void NodeExecutionEventRequest::set_request_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +inline void NodeExecutionEventRequest::set_request_id(const char* value, size_t size) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +inline ::std::string* NodeExecutionEventRequest::mutable_request_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionEventRequest.request_id) + return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEventRequest::release_request_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionEventRequest.request_id) + + return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionEventRequest.request_id) +} + +// .flyteidl.event.NodeExecutionEvent event = 2; +inline bool NodeExecutionEventRequest::has_event() const { + return this != internal_default_instance() && event_ != nullptr; +} +inline const ::flyteidl::event::NodeExecutionEvent& NodeExecutionEventRequest::event() const { + const ::flyteidl::event::NodeExecutionEvent* p = event_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionEventRequest.event) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_NodeExecutionEvent_default_instance_); +} +inline ::flyteidl::event::NodeExecutionEvent* NodeExecutionEventRequest::release_event() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionEventRequest.event) + + ::flyteidl::event::NodeExecutionEvent* temp = event_; + event_ = nullptr; + return temp; +} +inline ::flyteidl::event::NodeExecutionEvent* NodeExecutionEventRequest::mutable_event() { + + if (event_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::NodeExecutionEvent>(GetArenaNoVirtual()); + event_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionEventRequest.event) + return event_; +} +inline void NodeExecutionEventRequest::set_allocated_event(::flyteidl::event::NodeExecutionEvent* event) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); + } + if (event) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + event = ::google::protobuf::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + event_ = event; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionEventRequest.event) +} + +// ------------------------------------------------------------------- + +// NodeExecutionEventResponse + +// ------------------------------------------------------------------- + +// TaskExecutionEventRequest + +// string request_id = 1; +inline void TaskExecutionEventRequest::clear_request_id() { + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionEventRequest::request_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionEventRequest.request_id) + return request_id_.GetNoArena(); +} +inline void TaskExecutionEventRequest::set_request_id(const ::std::string& value) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +#if LANG_CXX11 +inline void TaskExecutionEventRequest::set_request_id(::std::string&& value) { + + request_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +#endif +inline void TaskExecutionEventRequest::set_request_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +inline void TaskExecutionEventRequest::set_request_id(const char* value, size_t size) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +inline ::std::string* TaskExecutionEventRequest::mutable_request_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionEventRequest.request_id) + return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEventRequest::release_request_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionEventRequest.request_id) + + return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { + if (request_id != nullptr) { + + } else { + + } + request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionEventRequest.request_id) +} + +// .flyteidl.event.TaskExecutionEvent event = 2; +inline bool TaskExecutionEventRequest::has_event() const { + return this != internal_default_instance() && event_ != nullptr; +} +inline const ::flyteidl::event::TaskExecutionEvent& TaskExecutionEventRequest::event() const { + const ::flyteidl::event::TaskExecutionEvent* p = event_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionEventRequest.event) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_TaskExecutionEvent_default_instance_); +} +inline ::flyteidl::event::TaskExecutionEvent* TaskExecutionEventRequest::release_event() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionEventRequest.event) + + ::flyteidl::event::TaskExecutionEvent* temp = event_; + event_ = nullptr; + return temp; +} +inline ::flyteidl::event::TaskExecutionEvent* TaskExecutionEventRequest::mutable_event() { + + if (event_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionEvent>(GetArenaNoVirtual()); + event_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionEventRequest.event) + return event_; +} +inline void TaskExecutionEventRequest::set_allocated_event(::flyteidl::event::TaskExecutionEvent* event) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); + } + if (event) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + event = ::google::protobuf::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + event_ = event; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionEventRequest.event) +} + +// ------------------------------------------------------------------- + +// TaskExecutionEventResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fevent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc new file mode 100644 index 0000000000..2f53b42b6c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/execution.proto + +#include "flyteidl/admin/execution.pb.h" +#include "flyteidl/admin/execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h new file mode 100644 index 0000000000..46d43a8284 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/execution.proto +#ifndef GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED + +#include "flyteidl/admin/execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc new file mode 100644 index 0000000000..912181feda --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc @@ -0,0 +1,11649 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +#include "flyteidl/admin/execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcluster_5fassignment_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<13> scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto; +namespace flyteidl { +namespace admin { +class ExecutionCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionCreateRequest_default_instance_; +class ExecutionRelaunchRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionRelaunchRequest_default_instance_; +class ExecutionRecoverRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionRecoverRequest_default_instance_; +class ExecutionCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionCreateResponse_default_instance_; +class WorkflowExecutionGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionGetRequest_default_instance_; +class ExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Execution_default_instance_; +class ExecutionListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionList_default_instance_; +class LiteralMapBlobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::LiteralMap* values_; + ::google::protobuf::internal::ArenaStringPtr uri_; +} _LiteralMapBlob_default_instance_; +class AbortMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AbortMetadata_default_instance_; +class ExecutionClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::admin::LiteralMapBlob* outputs_; + const ::flyteidl::core::ExecutionError* error_; + ::google::protobuf::internal::ArenaStringPtr abort_cause_; + const ::flyteidl::admin::AbortMetadata* abort_metadata_; + const ::flyteidl::core::LiteralMap* output_data_; +} _ExecutionClosure_default_instance_; +class SystemMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SystemMetadata_default_instance_; +class ExecutionMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionMetadata_default_instance_; +class NotificationListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NotificationList_default_instance_; +class ExecutionSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::admin::NotificationList* notifications_; + bool disable_all_; +} _ExecutionSpec_default_instance_; +class ExecutionTerminateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionTerminateRequest_default_instance_; +class ExecutionTerminateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionTerminateResponse_default_instance_; +class WorkflowExecutionGetDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionGetDataRequest_default_instance_; +class WorkflowExecutionGetDataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionGetDataResponse_default_instance_; +class ExecutionUpdateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionUpdateRequest_default_instance_; +class ExecutionStateChangeDetailsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionStateChangeDetails_default_instance_; +class ExecutionUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionUpdateResponse_default_instance_; +class WorkflowExecutionGetMetricsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionGetMetricsRequest_default_instance_; +class WorkflowExecutionGetMetricsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionGetMetricsResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionCreateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionRelaunchRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionRelaunchRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionRecoverRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionRecoverRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionRecoverRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base,}}; + +static void InitDefaultsExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionCreateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsWorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsExecution_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Execution_default_instance_; + new (ptr) ::flyteidl::admin::Execution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Execution::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsExecution_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base, + &scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base,}}; + +static void InitDefaultsExecutionList_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionList_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionList_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base,}}; + +static void InitDefaultsLiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LiteralMapBlob_default_instance_; + new (ptr) ::flyteidl::admin::LiteralMapBlob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LiteralMapBlob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsAbortMetadata_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_AbortMetadata_default_instance_; + new (ptr) ::flyteidl::admin::AbortMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::AbortMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAbortMetadata_flyteidl_2fadmin_2fexecution_2eproto}, {}}; + +static void InitDefaultsExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionClosure_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<9> scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base, + &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, + &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base,}}; + +static void InitDefaultsSystemMetadata_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SystemMetadata_default_instance_; + new (ptr) ::flyteidl::admin::SystemMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SystemMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSystemMetadata_flyteidl_2fadmin_2fexecution_2eproto}, {}}; + +static void InitDefaultsExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionMetadata_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base,}}; + +static void InitDefaultsNotificationList_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NotificationList_default_instance_; + new (ptr) ::flyteidl::admin::NotificationList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NotificationList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNotificationList_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionSpec_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<13> scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 13, InitDefaultsExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base, + &scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base, + &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, + &scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base, + &scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto.base, + &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionTerminateRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionTerminateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionTerminateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionTerminateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionTerminateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionTerminateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto}, {}}; + +static void InitDefaultsWorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetDataRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsWorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetDataResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionUpdateRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionUpdateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionUpdateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionStateChangeDetails(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionStateChangeDetails::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionUpdateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto}, {}}; + +static void InitDefaultsWorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetMetricsRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetMetricsRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetMetricsRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsWorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetMetricsResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetMetricsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetMetricsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto}, { + &scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2fexecution_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[23]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fexecution_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, inputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, overwrite_cache_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, closure_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, executions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, values_), + offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AbortMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AbortMetadata, cause_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AbortMetadata, principal_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, outputs_), + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, error_), + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, abort_cause_), + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, abort_metadata_), + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, output_data_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, computed_inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, started_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, duration_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, created_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, updated_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, notifications_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, workflow_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, state_change_details_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, output_result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SystemMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SystemMetadata, execution_cluster_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SystemMetadata, namespace__), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, mode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, principal_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, nesting_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, scheduled_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, parent_node_execution_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, reference_execution_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, system_metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NotificationList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NotificationList, notifications_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, launch_plan_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, metadata_), + offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, notifications_), + offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, disable_all_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, labels_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, annotations_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, security_context_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, auth_role_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, quality_of_service_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, max_parallelism_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, raw_output_data_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, cluster_assignment_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, interruptible_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, overwrite_cache_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, envs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, tags_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, notification_overrides_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, cause_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, full_inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, full_outputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateRequest, state_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, state_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, occurred_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, principal_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsRequest, depth_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsResponse, span_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::ExecutionCreateRequest)}, + { 10, -1, sizeof(::flyteidl::admin::ExecutionRelaunchRequest)}, + { 18, -1, sizeof(::flyteidl::admin::ExecutionRecoverRequest)}, + { 26, -1, sizeof(::flyteidl::admin::ExecutionCreateResponse)}, + { 32, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetRequest)}, + { 38, -1, sizeof(::flyteidl::admin::Execution)}, + { 46, -1, sizeof(::flyteidl::admin::ExecutionList)}, + { 53, -1, sizeof(::flyteidl::admin::LiteralMapBlob)}, + { 61, -1, sizeof(::flyteidl::admin::AbortMetadata)}, + { 68, -1, sizeof(::flyteidl::admin::ExecutionClosure)}, + { 88, -1, sizeof(::flyteidl::admin::SystemMetadata)}, + { 95, -1, sizeof(::flyteidl::admin::ExecutionMetadata)}, + { 107, -1, sizeof(::flyteidl::admin::NotificationList)}, + { 113, -1, sizeof(::flyteidl::admin::ExecutionSpec)}, + { 136, -1, sizeof(::flyteidl::admin::ExecutionTerminateRequest)}, + { 143, -1, sizeof(::flyteidl::admin::ExecutionTerminateResponse)}, + { 148, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataRequest)}, + { 154, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataResponse)}, + { 163, -1, sizeof(::flyteidl::admin::ExecutionUpdateRequest)}, + { 170, -1, sizeof(::flyteidl::admin::ExecutionStateChangeDetails)}, + { 178, -1, sizeof(::flyteidl::admin::ExecutionUpdateResponse)}, + { 183, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetMetricsRequest)}, + { 190, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetMetricsResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_ExecutionCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionRecoverRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Execution_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LiteralMapBlob_default_instance_), + reinterpret_cast(&::flyteidl::admin::_AbortMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SystemMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NotificationList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionTerminateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionTerminateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionUpdateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionUpdateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetMetricsRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetMetricsResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto, "flyteidl/admin/execution.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fexecution_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto, 23, file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fexecution_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fexecution_2eproto[] = + "\n\036flyteidl/admin/execution.proto\022\016flytei" + "dl.admin\032\'flyteidl/admin/cluster_assignm" + "ent.proto\032\033flyteidl/admin/common.proto\032\034" + "flyteidl/core/literals.proto\032\035flyteidl/c" + "ore/execution.proto\032\036flyteidl/core/ident" + "ifier.proto\032\033flyteidl/core/metrics.proto" + "\032\034flyteidl/core/security.proto\032\036google/p" + "rotobuf/duration.proto\032\037google/protobuf/" + "timestamp.proto\032\036google/protobuf/wrapper" + "s.proto\"\237\001\n\026ExecutionCreateRequest\022\017\n\007pr" + "oject\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(" + "\t\022+\n\004spec\030\004 \001(\0132\035.flyteidl.admin.Executi" + "onSpec\022)\n\006inputs\030\005 \001(\0132\031.flyteidl.core.L" + "iteralMap\"\177\n\030ExecutionRelaunchRequest\0226\n" + "\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExecut" + "ionIdentifier\022\014\n\004name\030\003 \001(\t\022\027\n\017overwrite" + "_cache\030\004 \001(\010J\004\010\002\020\003\"\224\001\n\027ExecutionRecoverR" + "equest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Workf" + "lowExecutionIdentifier\022\014\n\004name\030\002 \001(\t\0223\n\010" + "metadata\030\003 \001(\0132!.flyteidl.admin.Executio" + "nMetadata\"Q\n\027ExecutionCreateResponse\0226\n\002" + "id\030\001 \001(\0132*.flyteidl.core.WorkflowExecuti" + "onIdentifier\"U\n\033WorkflowExecutionGetRequ" + "est\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Workflow" + "ExecutionIdentifier\"\243\001\n\tExecution\0226\n\002id\030" + "\001 \001(\0132*.flyteidl.core.WorkflowExecutionI" + "dentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl.admin" + ".ExecutionSpec\0221\n\007closure\030\003 \001(\0132 .flytei" + "dl.admin.ExecutionClosure\"M\n\rExecutionLi" + "st\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl.admin." + "Execution\022\r\n\005token\030\002 \001(\t\"X\n\016LiteralMapBl" + "ob\022/\n\006values\030\001 \001(\0132\031.flyteidl.core.Liter" + "alMapB\002\030\001H\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\rAb" + "ortMetadata\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipal\030" + "\002 \001(\t\"\360\005\n\020ExecutionClosure\0225\n\007outputs\030\001 " + "\001(\0132\036.flyteidl.admin.LiteralMapBlobB\002\030\001H" + "\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Executi" + "onErrorH\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016" + "abort_metadata\030\014 \001(\0132\035.flyteidl.admin.Ab" + "ortMetadataH\000\0224\n\013output_data\030\r \001(\0132\031.fly" + "teidl.core.LiteralMapB\002\030\001H\000\0226\n\017computed_" + "inputs\030\003 \001(\0132\031.flyteidl.core.LiteralMapB" + "\002\030\001\0225\n\005phase\030\004 \001(\0162&.flyteidl.core.Workf" + "lowExecution.Phase\022.\n\nstarted_at\030\005 \001(\0132\032" + ".google.protobuf.Timestamp\022+\n\010duration\030\006" + " \001(\0132\031.google.protobuf.Duration\022.\n\ncreat" + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + ".\n\nupdated_at\030\010 \001(\0132\032.google.protobuf.Ti" + "mestamp\0223\n\rnotifications\030\t \003(\0132\034.flyteid" + "l.admin.Notification\022.\n\013workflow_id\030\013 \001(" + "\0132\031.flyteidl.core.Identifier\022I\n\024state_ch" + "ange_details\030\016 \001(\0132+.flyteidl.admin.Exec" + "utionStateChangeDetailsB\017\n\routput_result" + "\">\n\016SystemMetadata\022\031\n\021execution_cluster\030" + "\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\"\332\003\n\021ExecutionMe" + "tadata\022=\n\004mode\030\001 \001(\0162/.flyteidl.admin.Ex" + "ecutionMetadata.ExecutionMode\022\021\n\tprincip" + "al\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014scheduled_a" + "t\030\004 \001(\0132\032.google.protobuf.Timestamp\022E\n\025p" + "arent_node_execution\030\005 \001(\0132&.flyteidl.co" + "re.NodeExecutionIdentifier\022G\n\023reference_" + "execution\030\020 \001(\0132*.flyteidl.core.Workflow" + "ExecutionIdentifier\0227\n\017system_metadata\030\021" + " \001(\0132\036.flyteidl.admin.SystemMetadata\"g\n\r" + "ExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tSCHEDULED\020\001" + "\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016CHILD_WORK" + "FLOW\020\004\022\r\n\tRECOVERED\020\005\"G\n\020NotificationLis" + "t\0223\n\rnotifications\030\001 \003(\0132\034.flyteidl.admi" + "n.Notification\"\262\006\n\rExecutionSpec\022.\n\013laun" + "ch_plan\030\001 \001(\0132\031.flyteidl.core.Identifier" + "\022-\n\006inputs\030\002 \001(\0132\031.flyteidl.core.Literal" + "MapB\002\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.adm" + "in.ExecutionMetadata\0229\n\rnotifications\030\005 " + "\001(\0132 .flyteidl.admin.NotificationListH\000\022" + "\025\n\013disable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\0132\026" + ".flyteidl.admin.Labels\0220\n\013annotations\030\010 " + "\001(\0132\033.flyteidl.admin.Annotations\0228\n\020secu" + "rity_context\030\n \001(\0132\036.flyteidl.core.Secur" + "ityContext\022/\n\tauth_role\030\020 \001(\0132\030.flyteidl" + ".admin.AuthRoleB\002\030\001\022;\n\022quality_of_servic" + "e\030\021 \001(\0132\037.flyteidl.core.QualityOfService" + "\022\027\n\017max_parallelism\030\022 \001(\005\022C\n\026raw_output_" + "data_config\030\023 \001(\0132#.flyteidl.admin.RawOu" + "tputDataConfig\022=\n\022cluster_assignment\030\024 \001" + "(\0132!.flyteidl.admin.ClusterAssignment\0221\n" + "\rinterruptible\030\025 \001(\0132\032.google.protobuf.B" + "oolValue\022\027\n\017overwrite_cache\030\026 \001(\010\022\"\n\004env" + "s\030\027 \001(\0132\024.flyteidl.admin.Envs\022\014\n\004tags\030\030 " + "\003(\tB\030\n\026notification_overridesJ\004\010\004\020\005\"b\n\031E" + "xecutionTerminateRequest\0226\n\002id\030\001 \001(\0132*.f" + "lyteidl.core.WorkflowExecutionIdentifier" + "\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTerminateRes" + "ponse\"Y\n\037WorkflowExecutionGetDataRequest" + "\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExe" + "cutionIdentifier\"\336\001\n WorkflowExecutionGe" + "tDataResponse\022,\n\007outputs\030\001 \001(\0132\027.flyteid" + "l.admin.UrlBlobB\002\030\001\022+\n\006inputs\030\002 \001(\0132\027.fl" + "yteidl.admin.UrlBlobB\002\030\001\022.\n\013full_inputs\030" + "\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014full" + "_outputs\030\004 \001(\0132\031.flyteidl.core.LiteralMa" + "p\"\177\n\026ExecutionUpdateRequest\0226\n\002id\030\001 \001(\0132" + "*.flyteidl.core.WorkflowExecutionIdentif" + "ier\022-\n\005state\030\002 \001(\0162\036.flyteidl.admin.Exec" + "utionState\"\220\001\n\033ExecutionStateChangeDetai" + "ls\022-\n\005state\030\001 \001(\0162\036.flyteidl.admin.Execu" + "tionState\022/\n\013occurred_at\030\002 \001(\0132\032.google." + "protobuf.Timestamp\022\021\n\tprincipal\030\003 \001(\t\"\031\n" + "\027ExecutionUpdateResponse\"k\n\"WorkflowExec" + "utionGetMetricsRequest\0226\n\002id\030\001 \001(\0132*.fly" + "teidl.core.WorkflowExecutionIdentifier\022\r" + "\n\005depth\030\002 \001(\005\"H\n#WorkflowExecutionGetMet" + "ricsResponse\022!\n\004span\030\001 \001(\0132\023.flyteidl.co" + "re.Span*>\n\016ExecutionState\022\024\n\020EXECUTION_A" + "CTIVE\020\000\022\026\n\022EXECUTION_ARCHIVED\020\001B7Z5githu" + "b.com/flyteorg/flyteidl/gen/pb-go/flytei" + "dl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fexecution_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fexecution_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fexecution_2eproto, + "flyteidl/admin/execution.proto", &assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto, 4616, +}; + +void AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[10] = + { + ::AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + ::AddDescriptors_google_2fprotobuf_2fwrappers_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fexecution_2eproto, deps, 10); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fexecution_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* ExecutionMetadata_ExecutionMode_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[0]; +} +bool ExecutionMetadata_ExecutionMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ExecutionMetadata_ExecutionMode ExecutionMetadata::MANUAL; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::SCHEDULED; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::SYSTEM; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::RELAUNCH; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::CHILD_WORKFLOW; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::RECOVERED; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MIN; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MAX; +const int ExecutionMetadata::ExecutionMode_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* ExecutionState_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[1]; +} +bool ExecutionState_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +void ExecutionCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( + ::flyteidl::admin::ExecutionSpec::internal_default_instance()); + ::flyteidl::admin::_ExecutionCreateRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +class ExecutionCreateRequest::HasBitSetters { + public: + static const ::flyteidl::admin::ExecutionSpec& spec(const ExecutionCreateRequest* msg); + static const ::flyteidl::core::LiteralMap& inputs(const ExecutionCreateRequest* msg); +}; + +const ::flyteidl::admin::ExecutionSpec& +ExecutionCreateRequest::HasBitSetters::spec(const ExecutionCreateRequest* msg) { + return *msg->spec_; +} +const ::flyteidl::core::LiteralMap& +ExecutionCreateRequest::HasBitSetters::inputs(const ExecutionCreateRequest* msg) { + return *msg->inputs_; +} +void ExecutionCreateRequest::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionCreateRequest::kProjectFieldNumber; +const int ExecutionCreateRequest::kDomainFieldNumber; +const int ExecutionCreateRequest::kNameFieldNumber; +const int ExecutionCreateRequest::kSpecFieldNumber; +const int ExecutionCreateRequest::kInputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionCreateRequest::ExecutionCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateRequest) +} +ExecutionCreateRequest::ExecutionCreateRequest(const ExecutionCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); + } else { + spec_ = nullptr; + } + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); + } else { + inputs_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateRequest) +} + +void ExecutionCreateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&spec_, 0, static_cast( + reinterpret_cast(&inputs_) - + reinterpret_cast(&spec_)) + sizeof(inputs_)); +} + +ExecutionCreateRequest::~ExecutionCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateRequest) + SharedDtor(); +} + +void ExecutionCreateRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete spec_; + if (this != internal_default_instance()) delete inputs_; +} + +void ExecutionCreateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionCreateRequest& ExecutionCreateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionCreateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.ExecutionSpec spec = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionSpec::_InternalParse; + object = msg->mutable_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap inputs = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionCreateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionCreateRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionCreateRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionCreateRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap inputs = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->name(), output); + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::spec(this), output); + } + + // .flyteidl.core.LiteralMap inputs = 5; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::inputs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionCreateRequest) +} + +::google::protobuf::uint8* ExecutionCreateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->name(), target); + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::spec(this), target); + } + + // .flyteidl.core.LiteralMap inputs = 5; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::inputs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionCreateRequest) + return target; +} + +size_t ExecutionCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 3; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *spec_); + } + + // .flyteidl.core.LiteralMap inputs = 5; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionCreateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateRequest) + MergeFrom(*source); + } +} + +void ExecutionCreateRequest::MergeFrom(const ExecutionCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); + } + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); + } +} + +void ExecutionCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionCreateRequest::CopyFrom(const ExecutionCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionCreateRequest::IsInitialized() const { + return true; +} + +void ExecutionCreateRequest::Swap(ExecutionCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionCreateRequest::InternalSwap(ExecutionCreateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(spec_, other->spec_); + swap(inputs_, other->inputs_); +} + +::google::protobuf::Metadata ExecutionCreateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionRelaunchRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class ExecutionRelaunchRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionRelaunchRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +ExecutionRelaunchRequest::HasBitSetters::id(const ExecutionRelaunchRequest* msg) { + return *msg->id_; +} +void ExecutionRelaunchRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionRelaunchRequest::kIdFieldNumber; +const int ExecutionRelaunchRequest::kNameFieldNumber; +const int ExecutionRelaunchRequest::kOverwriteCacheFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionRelaunchRequest::ExecutionRelaunchRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionRelaunchRequest) +} +ExecutionRelaunchRequest::ExecutionRelaunchRequest(const ExecutionRelaunchRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + overwrite_cache_ = from.overwrite_cache_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionRelaunchRequest) +} + +void ExecutionRelaunchRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&id_)) + sizeof(overwrite_cache_)); +} + +ExecutionRelaunchRequest::~ExecutionRelaunchRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionRelaunchRequest) + SharedDtor(); +} + +void ExecutionRelaunchRequest::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; +} + +void ExecutionRelaunchRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionRelaunchRequest& ExecutionRelaunchRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionRelaunchRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + overwrite_cache_ = false; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionRelaunchRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionRelaunchRequest.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bool overwrite_cache = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionRelaunchRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionRelaunchRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionRelaunchRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // bool overwrite_cache = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &overwrite_cache_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionRelaunchRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionRelaunchRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionRelaunchRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionRelaunchRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->name(), output); + } + + // bool overwrite_cache = 4; + if (this->overwrite_cache() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->overwrite_cache(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionRelaunchRequest) +} + +::google::protobuf::uint8* ExecutionRelaunchRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionRelaunchRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->name(), target); + } + + // bool overwrite_cache = 4; + if (this->overwrite_cache() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->overwrite_cache(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionRelaunchRequest) + return target; +} + +size_t ExecutionRelaunchRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionRelaunchRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 3; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // bool overwrite_cache = 4; + if (this->overwrite_cache() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionRelaunchRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionRelaunchRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionRelaunchRequest) + MergeFrom(*source); + } +} + +void ExecutionRelaunchRequest::MergeFrom(const ExecutionRelaunchRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } + if (from.overwrite_cache() != 0) { + set_overwrite_cache(from.overwrite_cache()); + } +} + +void ExecutionRelaunchRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionRelaunchRequest::CopyFrom(const ExecutionRelaunchRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionRelaunchRequest::IsInitialized() const { + return true; +} + +void ExecutionRelaunchRequest::Swap(ExecutionRelaunchRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionRelaunchRequest::InternalSwap(ExecutionRelaunchRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(overwrite_cache_, other->overwrite_cache_); +} + +::google::protobuf::Metadata ExecutionRelaunchRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionRecoverRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionRecoverRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_ExecutionRecoverRequest_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::ExecutionMetadata*>( + ::flyteidl::admin::ExecutionMetadata::internal_default_instance()); +} +class ExecutionRecoverRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionRecoverRequest* msg); + static const ::flyteidl::admin::ExecutionMetadata& metadata(const ExecutionRecoverRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +ExecutionRecoverRequest::HasBitSetters::id(const ExecutionRecoverRequest* msg) { + return *msg->id_; +} +const ::flyteidl::admin::ExecutionMetadata& +ExecutionRecoverRequest::HasBitSetters::metadata(const ExecutionRecoverRequest* msg) { + return *msg->metadata_; +} +void ExecutionRecoverRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionRecoverRequest::kIdFieldNumber; +const int ExecutionRecoverRequest::kNameFieldNumber; +const int ExecutionRecoverRequest::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionRecoverRequest::ExecutionRecoverRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionRecoverRequest) +} +ExecutionRecoverRequest::ExecutionRecoverRequest(const ExecutionRecoverRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::admin::ExecutionMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionRecoverRequest) +} + +void ExecutionRecoverRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&metadata_) - + reinterpret_cast(&id_)) + sizeof(metadata_)); +} + +ExecutionRecoverRequest::~ExecutionRecoverRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionRecoverRequest) + SharedDtor(); +} + +void ExecutionRecoverRequest::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; +} + +void ExecutionRecoverRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionRecoverRequest& ExecutionRecoverRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionRecoverRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionRecoverRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionRecoverRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionRecoverRequest.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.ExecutionMetadata metadata = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionRecoverRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionRecoverRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionRecoverRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionRecoverRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionRecoverRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionRecoverRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionRecoverRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionRecoverRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionRecoverRequest) +} + +::google::protobuf::uint8* ExecutionRecoverRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionRecoverRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionRecoverRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionRecoverRequest) + return target; +} + +size_t ExecutionRecoverRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionRecoverRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionRecoverRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionRecoverRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionRecoverRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionRecoverRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionRecoverRequest) + MergeFrom(*source); + } +} + +void ExecutionRecoverRequest::MergeFrom(const ExecutionRecoverRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionRecoverRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::admin::ExecutionMetadata::MergeFrom(from.metadata()); + } +} + +void ExecutionRecoverRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionRecoverRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionRecoverRequest::CopyFrom(const ExecutionRecoverRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionRecoverRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionRecoverRequest::IsInitialized() const { + return true; +} + +void ExecutionRecoverRequest::Swap(ExecutionRecoverRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionRecoverRequest::InternalSwap(ExecutionRecoverRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(metadata_, other->metadata_); +} + +::google::protobuf::Metadata ExecutionRecoverRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionCreateResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionCreateResponse_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class ExecutionCreateResponse::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionCreateResponse* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +ExecutionCreateResponse::HasBitSetters::id(const ExecutionCreateResponse* msg) { + return *msg->id_; +} +void ExecutionCreateResponse::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionCreateResponse::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionCreateResponse::ExecutionCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateResponse) +} +ExecutionCreateResponse::ExecutionCreateResponse(const ExecutionCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateResponse) +} + +void ExecutionCreateResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + id_ = nullptr; +} + +ExecutionCreateResponse::~ExecutionCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateResponse) + SharedDtor(); +} + +void ExecutionCreateResponse::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ExecutionCreateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionCreateResponse& ExecutionCreateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionCreateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionCreateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionCreateResponse) +} + +::google::protobuf::uint8* ExecutionCreateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionCreateResponse) + return target; +} + +size_t ExecutionCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionCreateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateResponse) + MergeFrom(*source); + } +} + +void ExecutionCreateResponse::MergeFrom(const ExecutionCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void ExecutionCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionCreateResponse::CopyFrom(const ExecutionCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionCreateResponse::IsInitialized() const { + return true; +} + +void ExecutionCreateResponse::Swap(ExecutionCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionCreateResponse::InternalSwap(ExecutionCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata ExecutionCreateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class WorkflowExecutionGetRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +WorkflowExecutionGetRequest::HasBitSetters::id(const WorkflowExecutionGetRequest* msg) { + return *msg->id_; +} +void WorkflowExecutionGetRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetRequest::WorkflowExecutionGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetRequest) +} +WorkflowExecutionGetRequest::WorkflowExecutionGetRequest(const WorkflowExecutionGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetRequest) +} + +void WorkflowExecutionGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + id_ = nullptr; +} + +WorkflowExecutionGetRequest::~WorkflowExecutionGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetRequest) + SharedDtor(); +} + +void WorkflowExecutionGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowExecutionGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionGetRequest& WorkflowExecutionGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetRequest) +} + +::google::protobuf::uint8* WorkflowExecutionGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetRequest) + return target; +} + +size_t WorkflowExecutionGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetRequest) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetRequest::MergeFrom(const WorkflowExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void WorkflowExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetRequest::CopyFrom(const WorkflowExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetRequest::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetRequest::Swap(WorkflowExecutionGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetRequest::InternalSwap(WorkflowExecutionGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata WorkflowExecutionGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Execution::InitAsDefaultInstance() { + ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( + ::flyteidl::admin::ExecutionSpec::internal_default_instance()); + ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::ExecutionClosure*>( + ::flyteidl::admin::ExecutionClosure::internal_default_instance()); +} +class Execution::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const Execution* msg); + static const ::flyteidl::admin::ExecutionSpec& spec(const Execution* msg); + static const ::flyteidl::admin::ExecutionClosure& closure(const Execution* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +Execution::HasBitSetters::id(const Execution* msg) { + return *msg->id_; +} +const ::flyteidl::admin::ExecutionSpec& +Execution::HasBitSetters::spec(const Execution* msg) { + return *msg->spec_; +} +const ::flyteidl::admin::ExecutionClosure& +Execution::HasBitSetters::closure(const Execution* msg) { + return *msg->closure_; +} +void Execution::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Execution::kIdFieldNumber; +const int Execution::kSpecFieldNumber; +const int Execution::kClosureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Execution::Execution() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Execution) +} +Execution::Execution(const Execution& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); + } else { + spec_ = nullptr; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::ExecutionClosure(*from.closure_); + } else { + closure_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Execution) +} + +void Execution::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); +} + +Execution::~Execution() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Execution) + SharedDtor(); +} + +void Execution::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; + if (this != internal_default_instance()) delete closure_; +} + +void Execution::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Execution& Execution::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void Execution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Execution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Execution::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ExecutionSpec spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionSpec::_InternalParse; + object = msg->mutable_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ExecutionClosure closure = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionClosure::_InternalParse; + object = msg->mutable_closure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Execution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Execution) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Execution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Execution) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Execution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Execution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::spec(this), output); + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::closure(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Execution) +} + +::google::protobuf::uint8* Execution::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Execution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::spec(this), target); + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::closure(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Execution) + return target; +} + +size_t Execution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Execution) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *spec_); + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Execution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Execution) + GOOGLE_DCHECK_NE(&from, this); + const Execution* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Execution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Execution) + MergeFrom(*source); + } +} + +void Execution::MergeFrom(const Execution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Execution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::ExecutionClosure::MergeFrom(from.closure()); + } +} + +void Execution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Execution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Execution::CopyFrom(const Execution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Execution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Execution::IsInitialized() const { + return true; +} + +void Execution::Swap(Execution* other) { + if (other == this) return; + InternalSwap(other); +} +void Execution::InternalSwap(Execution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(spec_, other->spec_); + swap(closure_, other->closure_); +} + +::google::protobuf::Metadata Execution::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionList::InitAsDefaultInstance() { +} +class ExecutionList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionList::kExecutionsFieldNumber; +const int ExecutionList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionList::ExecutionList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionList) +} +ExecutionList::ExecutionList(const ExecutionList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + executions_(from.executions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionList) +} + +void ExecutionList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ExecutionList::~ExecutionList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionList) + SharedDtor(); +} + +void ExecutionList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ExecutionList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionList& ExecutionList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + executions_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.Execution executions = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Execution::_InternalParse; + object = msg->add_executions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.Execution executions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_executions())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Execution executions = 1; + for (unsigned int i = 0, + n = static_cast(this->executions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->executions(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionList) +} + +::google::protobuf::uint8* ExecutionList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Execution executions = 1; + for (unsigned int i = 0, + n = static_cast(this->executions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->executions(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionList) + return target; +} + +size_t ExecutionList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Execution executions = 1; + { + unsigned int count = static_cast(this->executions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->executions(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionList) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionList) + MergeFrom(*source); + } +} + +void ExecutionList::MergeFrom(const ExecutionList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + executions_.MergeFrom(from.executions_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void ExecutionList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionList::CopyFrom(const ExecutionList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionList::IsInitialized() const { + return true; +} + +void ExecutionList::Swap(ExecutionList* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionList::InternalSwap(ExecutionList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&executions_)->InternalSwap(CastToBase(&other->executions_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ExecutionList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiteralMapBlob::InitAsDefaultInstance() { + ::flyteidl::admin::_LiteralMapBlob_default_instance_.values_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_LiteralMapBlob_default_instance_.uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class LiteralMapBlob::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& values(const LiteralMapBlob* msg); +}; + +const ::flyteidl::core::LiteralMap& +LiteralMapBlob::HasBitSetters::values(const LiteralMapBlob* msg) { + return *msg->data_.values_; +} +void LiteralMapBlob::set_allocated_values(::flyteidl::core::LiteralMap* values) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (values) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + values = ::google::protobuf::internal::GetOwnedMessage( + message_arena, values, submessage_arena); + } + set_has_values(); + data_.values_ = values; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LiteralMapBlob.values) +} +void LiteralMapBlob::clear_values() { + if (has_values()) { + delete data_.values_; + clear_has_data(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralMapBlob::kValuesFieldNumber; +const int LiteralMapBlob::kUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralMapBlob::LiteralMapBlob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LiteralMapBlob) +} +LiteralMapBlob::LiteralMapBlob(const LiteralMapBlob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_data(); + switch (from.data_case()) { + case kValues: { + mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); + break; + } + case kUri: { + set_uri(from.uri()); + break; + } + case DATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LiteralMapBlob) +} + +void LiteralMapBlob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); + clear_has_data(); +} + +LiteralMapBlob::~LiteralMapBlob() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LiteralMapBlob) + SharedDtor(); +} + +void LiteralMapBlob::SharedDtor() { + if (has_data()) { + clear_data(); + } +} + +void LiteralMapBlob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LiteralMapBlob& LiteralMapBlob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void LiteralMapBlob::clear_data() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.LiteralMapBlob) + switch (data_case()) { + case kValues: { + delete data_.values_; + break; + } + case kUri: { + data_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case DATA_NOT_SET: { + break; + } + } + _oneof_case_[0] = DATA_NOT_SET; +} + + +void LiteralMapBlob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_data(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LiteralMapBlob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_values(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string uri = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.LiteralMapBlob.uri"); + object = msg->mutable_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LiteralMapBlob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LiteralMapBlob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_values())); + } else { + goto handle_unusual; + } + break; + } + + // string uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.LiteralMapBlob.uri")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LiteralMapBlob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LiteralMapBlob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LiteralMapBlob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + if (has_values()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::values(this), output); + } + + // string uri = 2; + if (has_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LiteralMapBlob.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->uri(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LiteralMapBlob) +} + +::google::protobuf::uint8* LiteralMapBlob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + if (has_values()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::values(this), target); + } + + // string uri = 2; + if (has_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LiteralMapBlob.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->uri(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LiteralMapBlob) + return target; +} + +size_t LiteralMapBlob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LiteralMapBlob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (data_case()) { + // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + case kValues: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_.values_); + break; + } + // string uri = 2; + case kUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + break; + } + case DATA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiteralMapBlob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LiteralMapBlob) + GOOGLE_DCHECK_NE(&from, this); + const LiteralMapBlob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LiteralMapBlob) + MergeFrom(*source); + } +} + +void LiteralMapBlob::MergeFrom(const LiteralMapBlob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LiteralMapBlob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.data_case()) { + case kValues: { + mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); + break; + } + case kUri: { + set_uri(from.uri()); + break; + } + case DATA_NOT_SET: { + break; + } + } +} + +void LiteralMapBlob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LiteralMapBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralMapBlob::CopyFrom(const LiteralMapBlob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LiteralMapBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralMapBlob::IsInitialized() const { + return true; +} + +void LiteralMapBlob::Swap(LiteralMapBlob* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralMapBlob::InternalSwap(LiteralMapBlob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(data_, other->data_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata LiteralMapBlob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AbortMetadata::InitAsDefaultInstance() { +} +class AbortMetadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AbortMetadata::kCauseFieldNumber; +const int AbortMetadata::kPrincipalFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AbortMetadata::AbortMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.AbortMetadata) +} +AbortMetadata::AbortMetadata(const AbortMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cause().size() > 0) { + cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); + } + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.AbortMetadata) +} + +void AbortMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +AbortMetadata::~AbortMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.AbortMetadata) + SharedDtor(); +} + +void AbortMetadata::SharedDtor() { + cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AbortMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AbortMetadata& AbortMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void AbortMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.AbortMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AbortMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string cause = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.AbortMetadata.cause"); + object = msg->mutable_cause(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string principal = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.AbortMetadata.principal"); + object = msg->mutable_principal(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AbortMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.AbortMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string cause = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cause())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.AbortMetadata.cause")); + } else { + goto handle_unusual; + } + break; + } + + // string principal = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.AbortMetadata.principal")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.AbortMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.AbortMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AbortMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.AbortMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cause = 1; + if (this->cause().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AbortMetadata.cause"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cause(), output); + } + + // string principal = 2; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AbortMetadata.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->principal(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.AbortMetadata) +} + +::google::protobuf::uint8* AbortMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.AbortMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cause = 1; + if (this->cause().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AbortMetadata.cause"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cause(), target); + } + + // string principal = 2; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.AbortMetadata.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->principal(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.AbortMetadata) + return target; +} + +size_t AbortMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.AbortMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string cause = 1; + if (this->cause().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cause()); + } + + // string principal = 2; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AbortMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.AbortMetadata) + GOOGLE_DCHECK_NE(&from, this); + const AbortMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.AbortMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.AbortMetadata) + MergeFrom(*source); + } +} + +void AbortMetadata::MergeFrom(const AbortMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.AbortMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cause().size() > 0) { + + cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); + } + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } +} + +void AbortMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.AbortMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AbortMetadata::CopyFrom(const AbortMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.AbortMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AbortMetadata::IsInitialized() const { + return true; +} + +void AbortMetadata::Swap(AbortMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void AbortMetadata::InternalSwap(AbortMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + cause_.Swap(&other->cause_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata AbortMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionClosure_default_instance_.outputs_ = const_cast< ::flyteidl::admin::LiteralMapBlob*>( + ::flyteidl::admin::LiteralMapBlob::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_.abort_cause_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_ExecutionClosure_default_instance_.abort_metadata_ = const_cast< ::flyteidl::admin::AbortMetadata*>( + ::flyteidl::admin::AbortMetadata::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->computed_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->state_change_details_ = const_cast< ::flyteidl::admin::ExecutionStateChangeDetails*>( + ::flyteidl::admin::ExecutionStateChangeDetails::internal_default_instance()); +} +class ExecutionClosure::HasBitSetters { + public: + static const ::flyteidl::admin::LiteralMapBlob& outputs(const ExecutionClosure* msg); + static const ::flyteidl::core::ExecutionError& error(const ExecutionClosure* msg); + static const ::flyteidl::admin::AbortMetadata& abort_metadata(const ExecutionClosure* msg); + static const ::flyteidl::core::LiteralMap& output_data(const ExecutionClosure* msg); + static const ::flyteidl::core::LiteralMap& computed_inputs(const ExecutionClosure* msg); + static const ::google::protobuf::Timestamp& started_at(const ExecutionClosure* msg); + static const ::google::protobuf::Duration& duration(const ExecutionClosure* msg); + static const ::google::protobuf::Timestamp& created_at(const ExecutionClosure* msg); + static const ::google::protobuf::Timestamp& updated_at(const ExecutionClosure* msg); + static const ::flyteidl::core::Identifier& workflow_id(const ExecutionClosure* msg); + static const ::flyteidl::admin::ExecutionStateChangeDetails& state_change_details(const ExecutionClosure* msg); +}; + +const ::flyteidl::admin::LiteralMapBlob& +ExecutionClosure::HasBitSetters::outputs(const ExecutionClosure* msg) { + return *msg->output_result_.outputs_; +} +const ::flyteidl::core::ExecutionError& +ExecutionClosure::HasBitSetters::error(const ExecutionClosure* msg) { + return *msg->output_result_.error_; +} +const ::flyteidl::admin::AbortMetadata& +ExecutionClosure::HasBitSetters::abort_metadata(const ExecutionClosure* msg) { + return *msg->output_result_.abort_metadata_; +} +const ::flyteidl::core::LiteralMap& +ExecutionClosure::HasBitSetters::output_data(const ExecutionClosure* msg) { + return *msg->output_result_.output_data_; +} +const ::flyteidl::core::LiteralMap& +ExecutionClosure::HasBitSetters::computed_inputs(const ExecutionClosure* msg) { + return *msg->computed_inputs_; +} +const ::google::protobuf::Timestamp& +ExecutionClosure::HasBitSetters::started_at(const ExecutionClosure* msg) { + return *msg->started_at_; +} +const ::google::protobuf::Duration& +ExecutionClosure::HasBitSetters::duration(const ExecutionClosure* msg) { + return *msg->duration_; +} +const ::google::protobuf::Timestamp& +ExecutionClosure::HasBitSetters::created_at(const ExecutionClosure* msg) { + return *msg->created_at_; +} +const ::google::protobuf::Timestamp& +ExecutionClosure::HasBitSetters::updated_at(const ExecutionClosure* msg) { + return *msg->updated_at_; +} +const ::flyteidl::core::Identifier& +ExecutionClosure::HasBitSetters::workflow_id(const ExecutionClosure* msg) { + return *msg->workflow_id_; +} +const ::flyteidl::admin::ExecutionStateChangeDetails& +ExecutionClosure::HasBitSetters::state_change_details(const ExecutionClosure* msg) { + return *msg->state_change_details_; +} +void ExecutionClosure::set_allocated_outputs(::flyteidl::admin::LiteralMapBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + set_has_outputs(); + output_result_.outputs_ = outputs; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.outputs) +} +void ExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.error) +} +void ExecutionClosure::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void ExecutionClosure::set_allocated_abort_metadata(::flyteidl::admin::AbortMetadata* abort_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (abort_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + abort_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, abort_metadata, submessage_arena); + } + set_has_abort_metadata(); + output_result_.abort_metadata_ = abort_metadata; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.abort_metadata) +} +void ExecutionClosure::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (output_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + output_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, output_data, submessage_arena); + } + set_has_output_data(); + output_result_.output_data_ = output_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.output_data) +} +void ExecutionClosure::clear_output_data() { + if (has_output_data()) { + delete output_result_.output_data_; + clear_has_output_result(); + } +} +void ExecutionClosure::clear_computed_inputs() { + if (GetArenaNoVirtual() == nullptr && computed_inputs_ != nullptr) { + delete computed_inputs_; + } + computed_inputs_ = nullptr; +} +void ExecutionClosure::clear_started_at() { + if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { + delete started_at_; + } + started_at_ = nullptr; +} +void ExecutionClosure::clear_duration() { + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; +} +void ExecutionClosure::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} +void ExecutionClosure::clear_updated_at() { + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; +} +void ExecutionClosure::clear_notifications() { + notifications_.Clear(); +} +void ExecutionClosure::clear_workflow_id() { + if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { + delete workflow_id_; + } + workflow_id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionClosure::kOutputsFieldNumber; +const int ExecutionClosure::kErrorFieldNumber; +const int ExecutionClosure::kAbortCauseFieldNumber; +const int ExecutionClosure::kAbortMetadataFieldNumber; +const int ExecutionClosure::kOutputDataFieldNumber; +const int ExecutionClosure::kComputedInputsFieldNumber; +const int ExecutionClosure::kPhaseFieldNumber; +const int ExecutionClosure::kStartedAtFieldNumber; +const int ExecutionClosure::kDurationFieldNumber; +const int ExecutionClosure::kCreatedAtFieldNumber; +const int ExecutionClosure::kUpdatedAtFieldNumber; +const int ExecutionClosure::kNotificationsFieldNumber; +const int ExecutionClosure::kWorkflowIdFieldNumber; +const int ExecutionClosure::kStateChangeDetailsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionClosure::ExecutionClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionClosure) +} +ExecutionClosure::ExecutionClosure(const ExecutionClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + notifications_(from.notifications_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_computed_inputs()) { + computed_inputs_ = new ::flyteidl::core::LiteralMap(*from.computed_inputs_); + } else { + computed_inputs_ = nullptr; + } + if (from.has_started_at()) { + started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); + } else { + started_at_ = nullptr; + } + if (from.has_duration()) { + duration_ = new ::google::protobuf::Duration(*from.duration_); + } else { + duration_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = nullptr; + } + if (from.has_workflow_id()) { + workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); + } else { + workflow_id_ = nullptr; + } + if (from.has_state_change_details()) { + state_change_details_ = new ::flyteidl::admin::ExecutionStateChangeDetails(*from.state_change_details_); + } else { + state_change_details_ = nullptr; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputs: { + mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kAbortCause: { + set_abort_cause(from.abort_cause()); + break; + } + case kAbortMetadata: { + mutable_abort_metadata()->::flyteidl::admin::AbortMetadata::MergeFrom(from.abort_metadata()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionClosure) +} + +void ExecutionClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); + ::memset(&computed_inputs_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&computed_inputs_)) + sizeof(phase_)); + clear_has_output_result(); +} + +ExecutionClosure::~ExecutionClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionClosure) + SharedDtor(); +} + +void ExecutionClosure::SharedDtor() { + if (this != internal_default_instance()) delete computed_inputs_; + if (this != internal_default_instance()) delete started_at_; + if (this != internal_default_instance()) delete duration_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; + if (this != internal_default_instance()) delete workflow_id_; + if (this != internal_default_instance()) delete state_change_details_; + if (has_output_result()) { + clear_output_result(); + } +} + +void ExecutionClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionClosure& ExecutionClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionClosure::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionClosure) + switch (output_result_case()) { + case kOutputs: { + delete output_result_.outputs_; + break; + } + case kError: { + delete output_result_.error_; + break; + } + case kAbortCause: { + output_result_.abort_cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kAbortMetadata: { + delete output_result_.abort_metadata_; + break; + } + case kOutputData: { + delete output_result_.output_data_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + + +void ExecutionClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + notifications_.Clear(); + if (GetArenaNoVirtual() == nullptr && computed_inputs_ != nullptr) { + delete computed_inputs_; + } + computed_inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { + delete started_at_; + } + started_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { + delete workflow_id_; + } + workflow_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && state_change_details_ != nullptr) { + delete state_change_details_; + } + state_change_details_ = nullptr; + phase_ = 0; + clear_output_result(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::LiteralMapBlob::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_computed_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Timestamp started_at = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_started_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_duration(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp updated_at = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_updated_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.admin.Notification notifications = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Notification::_InternalParse; + object = msg->add_notifications(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 74 && (ptr += 1)); + break; + } + // string abort_cause = 10 [deprecated = true]; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionClosure.abort_cause"); + object = msg->mutable_abort_cause(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Identifier workflow_id = 11; + case 11: { + if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_workflow_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.AbortMetadata abort_metadata = 12; + case 12: { + if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::AbortMetadata::_InternalParse; + object = msg->mutable_abort_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + case 13: { + if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_output_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + case 14: { + if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionStateChangeDetails::_InternalParse; + object = msg->mutable_state_change_details(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_computed_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp started_at = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_started_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.admin.Notification notifications = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_notifications())); + } else { + goto handle_unusual; + } + break; + } + + // string abort_cause = 10 [deprecated = true]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_abort_cause())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->abort_cause().data(), static_cast(this->abort_cause().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionClosure.abort_cause")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Identifier workflow_id = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.AbortMetadata abort_metadata = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_abort_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_output_data())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_state_change_details())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + if (has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::outputs(this), output); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::error(this), output); + } + + // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + if (this->has_computed_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::computed_inputs(this), output); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->phase(), output); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::started_at(this), output); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::duration(this), output); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::created_at(this), output); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::updated_at(this), output); + } + + // repeated .flyteidl.admin.Notification notifications = 9; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, + this->notifications(static_cast(i)), + output); + } + + // string abort_cause = 10 [deprecated = true]; + if (has_abort_cause()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->abort_cause().data(), static_cast(this->abort_cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionClosure.abort_cause"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 10, this->abort_cause(), output); + } + + // .flyteidl.core.Identifier workflow_id = 11; + if (this->has_workflow_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, HasBitSetters::workflow_id(this), output); + } + + // .flyteidl.admin.AbortMetadata abort_metadata = 12; + if (has_abort_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, HasBitSetters::abort_metadata(this), output); + } + + // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + if (has_output_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 13, HasBitSetters::output_data(this), output); + } + + // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + if (this->has_state_change_details()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 14, HasBitSetters::state_change_details(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionClosure) +} + +::google::protobuf::uint8* ExecutionClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + if (has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::outputs(this), target); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::error(this), target); + } + + // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + if (this->has_computed_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::computed_inputs(this), target); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->phase(), target); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::started_at(this), target); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::duration(this), target); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::created_at(this), target); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::updated_at(this), target); + } + + // repeated .flyteidl.admin.Notification notifications = 9; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->notifications(static_cast(i)), target); + } + + // string abort_cause = 10 [deprecated = true]; + if (has_abort_cause()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->abort_cause().data(), static_cast(this->abort_cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionClosure.abort_cause"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 10, this->abort_cause(), target); + } + + // .flyteidl.core.Identifier workflow_id = 11; + if (this->has_workflow_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, HasBitSetters::workflow_id(this), target); + } + + // .flyteidl.admin.AbortMetadata abort_metadata = 12; + if (has_abort_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 12, HasBitSetters::abort_metadata(this), target); + } + + // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + if (has_output_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 13, HasBitSetters::output_data(this), target); + } + + // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + if (this->has_state_change_details()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 14, HasBitSetters::state_change_details(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionClosure) + return target; +} + +size_t ExecutionClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Notification notifications = 9; + { + unsigned int count = static_cast(this->notifications_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->notifications(static_cast(i))); + } + } + + // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + if (this->has_computed_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *computed_inputs_); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *started_at_); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *duration_); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *updated_at_); + } + + // .flyteidl.core.Identifier workflow_id = 11; + if (this->has_workflow_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *workflow_id_); + } + + // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + if (this->has_state_change_details()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *state_change_details_); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + case kOutputs: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.outputs_); + break; + } + // .flyteidl.core.ExecutionError error = 2; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + // string abort_cause = 10 [deprecated = true]; + case kAbortCause: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->abort_cause()); + break; + } + // .flyteidl.admin.AbortMetadata abort_metadata = 12; + case kAbortMetadata: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.abort_metadata_); + break; + } + // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + case kOutputData: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.output_data_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionClosure) + MergeFrom(*source); + } +} + +void ExecutionClosure::MergeFrom(const ExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + notifications_.MergeFrom(from.notifications_); + if (from.has_computed_inputs()) { + mutable_computed_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.computed_inputs()); + } + if (from.has_started_at()) { + mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); + } + if (from.has_duration()) { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.has_workflow_id()) { + mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); + } + if (from.has_state_change_details()) { + mutable_state_change_details()->::flyteidl::admin::ExecutionStateChangeDetails::MergeFrom(from.state_change_details()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputs: { + mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kAbortCause: { + set_abort_cause(from.abort_cause()); + break; + } + case kAbortMetadata: { + mutable_abort_metadata()->::flyteidl::admin::AbortMetadata::MergeFrom(from.abort_metadata()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void ExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionClosure::CopyFrom(const ExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionClosure::IsInitialized() const { + return true; +} + +void ExecutionClosure::Swap(ExecutionClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionClosure::InternalSwap(ExecutionClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(¬ifications_)->InternalSwap(CastToBase(&other->notifications_)); + swap(computed_inputs_, other->computed_inputs_); + swap(started_at_, other->started_at_); + swap(duration_, other->duration_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(workflow_id_, other->workflow_id_); + swap(state_change_details_, other->state_change_details_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ExecutionClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SystemMetadata::InitAsDefaultInstance() { +} +class SystemMetadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SystemMetadata::kExecutionClusterFieldNumber; +const int SystemMetadata::kNamespaceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SystemMetadata::SystemMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SystemMetadata) +} +SystemMetadata::SystemMetadata(const SystemMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + execution_cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.execution_cluster().size() > 0) { + execution_cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_cluster_); + } + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.namespace_().size() > 0) { + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SystemMetadata) +} + +void SystemMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + execution_cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +SystemMetadata::~SystemMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SystemMetadata) + SharedDtor(); +} + +void SystemMetadata::SharedDtor() { + execution_cluster_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SystemMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SystemMetadata& SystemMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void SystemMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SystemMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + execution_cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SystemMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string execution_cluster = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.SystemMetadata.execution_cluster"); + object = msg->mutable_execution_cluster(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string namespace = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.SystemMetadata.namespace"); + object = msg->mutable_namespace_(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SystemMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SystemMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string execution_cluster = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_execution_cluster())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->execution_cluster().data(), static_cast(this->execution_cluster().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SystemMetadata.execution_cluster")); + } else { + goto handle_unusual; + } + break; + } + + // string namespace = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SystemMetadata.namespace")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SystemMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SystemMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SystemMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SystemMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string execution_cluster = 1; + if (this->execution_cluster().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->execution_cluster().data(), static_cast(this->execution_cluster().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SystemMetadata.execution_cluster"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->execution_cluster(), output); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SystemMetadata.namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->namespace_(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SystemMetadata) +} + +::google::protobuf::uint8* SystemMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SystemMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string execution_cluster = 1; + if (this->execution_cluster().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->execution_cluster().data(), static_cast(this->execution_cluster().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SystemMetadata.execution_cluster"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->execution_cluster(), target); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SystemMetadata.namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->namespace_(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SystemMetadata) + return target; +} + +size_t SystemMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SystemMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string execution_cluster = 1; + if (this->execution_cluster().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->execution_cluster()); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SystemMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SystemMetadata) + GOOGLE_DCHECK_NE(&from, this); + const SystemMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SystemMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SystemMetadata) + MergeFrom(*source); + } +} + +void SystemMetadata::MergeFrom(const SystemMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SystemMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.execution_cluster().size() > 0) { + + execution_cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_cluster_); + } + if (from.namespace_().size() > 0) { + + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } +} + +void SystemMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SystemMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SystemMetadata::CopyFrom(const SystemMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SystemMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SystemMetadata::IsInitialized() const { + return true; +} + +void SystemMetadata::Swap(SystemMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void SystemMetadata::InternalSwap(SystemMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + execution_cluster_.Swap(&other->execution_cluster_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata SystemMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->scheduled_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->parent_node_execution_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->reference_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->system_metadata_ = const_cast< ::flyteidl::admin::SystemMetadata*>( + ::flyteidl::admin::SystemMetadata::internal_default_instance()); +} +class ExecutionMetadata::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& scheduled_at(const ExecutionMetadata* msg); + static const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution(const ExecutionMetadata* msg); + static const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution(const ExecutionMetadata* msg); + static const ::flyteidl::admin::SystemMetadata& system_metadata(const ExecutionMetadata* msg); +}; + +const ::google::protobuf::Timestamp& +ExecutionMetadata::HasBitSetters::scheduled_at(const ExecutionMetadata* msg) { + return *msg->scheduled_at_; +} +const ::flyteidl::core::NodeExecutionIdentifier& +ExecutionMetadata::HasBitSetters::parent_node_execution(const ExecutionMetadata* msg) { + return *msg->parent_node_execution_; +} +const ::flyteidl::core::WorkflowExecutionIdentifier& +ExecutionMetadata::HasBitSetters::reference_execution(const ExecutionMetadata* msg) { + return *msg->reference_execution_; +} +const ::flyteidl::admin::SystemMetadata& +ExecutionMetadata::HasBitSetters::system_metadata(const ExecutionMetadata* msg) { + return *msg->system_metadata_; +} +void ExecutionMetadata::clear_scheduled_at() { + if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { + delete scheduled_at_; + } + scheduled_at_ = nullptr; +} +void ExecutionMetadata::clear_parent_node_execution() { + if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { + delete parent_node_execution_; + } + parent_node_execution_ = nullptr; +} +void ExecutionMetadata::clear_reference_execution() { + if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { + delete reference_execution_; + } + reference_execution_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionMetadata::kModeFieldNumber; +const int ExecutionMetadata::kPrincipalFieldNumber; +const int ExecutionMetadata::kNestingFieldNumber; +const int ExecutionMetadata::kScheduledAtFieldNumber; +const int ExecutionMetadata::kParentNodeExecutionFieldNumber; +const int ExecutionMetadata::kReferenceExecutionFieldNumber; +const int ExecutionMetadata::kSystemMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionMetadata::ExecutionMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionMetadata) +} +ExecutionMetadata::ExecutionMetadata(const ExecutionMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + if (from.has_scheduled_at()) { + scheduled_at_ = new ::google::protobuf::Timestamp(*from.scheduled_at_); + } else { + scheduled_at_ = nullptr; + } + if (from.has_parent_node_execution()) { + parent_node_execution_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.parent_node_execution_); + } else { + parent_node_execution_ = nullptr; + } + if (from.has_reference_execution()) { + reference_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.reference_execution_); + } else { + reference_execution_ = nullptr; + } + if (from.has_system_metadata()) { + system_metadata_ = new ::flyteidl::admin::SystemMetadata(*from.system_metadata_); + } else { + system_metadata_ = nullptr; + } + ::memcpy(&mode_, &from.mode_, + static_cast(reinterpret_cast(&nesting_) - + reinterpret_cast(&mode_)) + sizeof(nesting_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionMetadata) +} + +void ExecutionMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&scheduled_at_, 0, static_cast( + reinterpret_cast(&nesting_) - + reinterpret_cast(&scheduled_at_)) + sizeof(nesting_)); +} + +ExecutionMetadata::~ExecutionMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionMetadata) + SharedDtor(); +} + +void ExecutionMetadata::SharedDtor() { + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete scheduled_at_; + if (this != internal_default_instance()) delete parent_node_execution_; + if (this != internal_default_instance()) delete reference_execution_; + if (this != internal_default_instance()) delete system_metadata_; +} + +void ExecutionMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionMetadata& ExecutionMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { + delete scheduled_at_; + } + scheduled_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { + delete parent_node_execution_; + } + parent_node_execution_ = nullptr; + if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { + delete reference_execution_; + } + reference_execution_ = nullptr; + if (GetArenaNoVirtual() == nullptr && system_metadata_ != nullptr) { + delete system_metadata_; + } + system_metadata_ = nullptr; + ::memset(&mode_, 0, static_cast( + reinterpret_cast(&nesting_) - + reinterpret_cast(&mode_)) + sizeof(nesting_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_mode(static_cast<::flyteidl::admin::ExecutionMetadata_ExecutionMode>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string principal = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionMetadata.principal"); + object = msg->mutable_principal(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // uint32 nesting = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_nesting(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Timestamp scheduled_at = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_scheduled_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_parent_node_execution(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_reference_execution(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.SystemMetadata system_metadata = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::SystemMetadata::_InternalParse; + object = msg->mutable_system_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_mode(static_cast< ::flyteidl::admin::ExecutionMetadata_ExecutionMode >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string principal = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionMetadata.principal")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 nesting = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &nesting_))); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp scheduled_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scheduled_at())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parent_node_execution())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reference_execution())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.SystemMetadata system_metadata = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_system_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + if (this->mode() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->mode(), output); + } + + // string principal = 2; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionMetadata.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->principal(), output); + } + + // uint32 nesting = 3; + if (this->nesting() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->nesting(), output); + } + + // .google.protobuf.Timestamp scheduled_at = 4; + if (this->has_scheduled_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::scheduled_at(this), output); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + if (this->has_parent_node_execution()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::parent_node_execution(this), output); + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + if (this->has_reference_execution()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, HasBitSetters::reference_execution(this), output); + } + + // .flyteidl.admin.SystemMetadata system_metadata = 17; + if (this->has_system_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, HasBitSetters::system_metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionMetadata) +} + +::google::protobuf::uint8* ExecutionMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + if (this->mode() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->mode(), target); + } + + // string principal = 2; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionMetadata.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->principal(), target); + } + + // uint32 nesting = 3; + if (this->nesting() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->nesting(), target); + } + + // .google.protobuf.Timestamp scheduled_at = 4; + if (this->has_scheduled_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::scheduled_at(this), target); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + if (this->has_parent_node_execution()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::parent_node_execution(this), target); + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + if (this->has_reference_execution()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, HasBitSetters::reference_execution(this), target); + } + + // .flyteidl.admin.SystemMetadata system_metadata = 17; + if (this->has_system_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 17, HasBitSetters::system_metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionMetadata) + return target; +} + +size_t ExecutionMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string principal = 2; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + + // .google.protobuf.Timestamp scheduled_at = 4; + if (this->has_scheduled_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *scheduled_at_); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + if (this->has_parent_node_execution()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parent_node_execution_); + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + if (this->has_reference_execution()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reference_execution_); + } + + // .flyteidl.admin.SystemMetadata system_metadata = 17; + if (this->has_system_metadata()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *system_metadata_); + } + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + if (this->mode() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); + } + + // uint32 nesting = 3; + if (this->nesting() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->nesting()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionMetadata) + MergeFrom(*source); + } +} + +void ExecutionMetadata::MergeFrom(const ExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + if (from.has_scheduled_at()) { + mutable_scheduled_at()->::google::protobuf::Timestamp::MergeFrom(from.scheduled_at()); + } + if (from.has_parent_node_execution()) { + mutable_parent_node_execution()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.parent_node_execution()); + } + if (from.has_reference_execution()) { + mutable_reference_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.reference_execution()); + } + if (from.has_system_metadata()) { + mutable_system_metadata()->::flyteidl::admin::SystemMetadata::MergeFrom(from.system_metadata()); + } + if (from.mode() != 0) { + set_mode(from.mode()); + } + if (from.nesting() != 0) { + set_nesting(from.nesting()); + } +} + +void ExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionMetadata::CopyFrom(const ExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionMetadata::IsInitialized() const { + return true; +} + +void ExecutionMetadata::Swap(ExecutionMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionMetadata::InternalSwap(ExecutionMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(scheduled_at_, other->scheduled_at_); + swap(parent_node_execution_, other->parent_node_execution_); + swap(reference_execution_, other->reference_execution_); + swap(system_metadata_, other->system_metadata_); + swap(mode_, other->mode_); + swap(nesting_, other->nesting_); +} + +::google::protobuf::Metadata ExecutionMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NotificationList::InitAsDefaultInstance() { +} +class NotificationList::HasBitSetters { + public: +}; + +void NotificationList::clear_notifications() { + notifications_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NotificationList::kNotificationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NotificationList::NotificationList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NotificationList) +} +NotificationList::NotificationList(const NotificationList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + notifications_(from.notifications_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NotificationList) +} + +void NotificationList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); +} + +NotificationList::~NotificationList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NotificationList) + SharedDtor(); +} + +void NotificationList::SharedDtor() { +} + +void NotificationList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NotificationList& NotificationList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NotificationList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NotificationList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + notifications_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NotificationList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.Notification notifications = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Notification::_InternalParse; + object = msg->add_notifications(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NotificationList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NotificationList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.Notification notifications = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_notifications())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NotificationList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NotificationList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NotificationList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NotificationList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Notification notifications = 1; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->notifications(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NotificationList) +} + +::google::protobuf::uint8* NotificationList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NotificationList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Notification notifications = 1; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->notifications(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NotificationList) + return target; +} + +size_t NotificationList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NotificationList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Notification notifications = 1; + { + unsigned int count = static_cast(this->notifications_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->notifications(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NotificationList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NotificationList) + GOOGLE_DCHECK_NE(&from, this); + const NotificationList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NotificationList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NotificationList) + MergeFrom(*source); + } +} + +void NotificationList::MergeFrom(const NotificationList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NotificationList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + notifications_.MergeFrom(from.notifications_); +} + +void NotificationList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NotificationList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NotificationList::CopyFrom(const NotificationList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NotificationList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NotificationList::IsInitialized() const { + return true; +} + +void NotificationList::Swap(NotificationList* other) { + if (other == this) return; + InternalSwap(other); +} +void NotificationList::InternalSwap(NotificationList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(¬ifications_)->InternalSwap(CastToBase(&other->notifications_)); +} + +::google::protobuf::Metadata NotificationList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->launch_plan_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::ExecutionMetadata*>( + ::flyteidl::admin::ExecutionMetadata::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_.notifications_ = const_cast< ::flyteidl::admin::NotificationList*>( + ::flyteidl::admin::NotificationList::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_.disable_all_ = false; + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( + ::flyteidl::admin::Labels::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( + ::flyteidl::admin::Annotations::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( + ::flyteidl::core::SecurityContext::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->auth_role_ = const_cast< ::flyteidl::admin::AuthRole*>( + ::flyteidl::admin::AuthRole::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( + ::flyteidl::core::QualityOfService::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->raw_output_data_config_ = const_cast< ::flyteidl::admin::RawOutputDataConfig*>( + ::flyteidl::admin::RawOutputDataConfig::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->cluster_assignment_ = const_cast< ::flyteidl::admin::ClusterAssignment*>( + ::flyteidl::admin::ClusterAssignment::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->interruptible_ = const_cast< ::google::protobuf::BoolValue*>( + ::google::protobuf::BoolValue::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->envs_ = const_cast< ::flyteidl::admin::Envs*>( + ::flyteidl::admin::Envs::internal_default_instance()); +} +class ExecutionSpec::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& launch_plan(const ExecutionSpec* msg); + static const ::flyteidl::core::LiteralMap& inputs(const ExecutionSpec* msg); + static const ::flyteidl::admin::ExecutionMetadata& metadata(const ExecutionSpec* msg); + static const ::flyteidl::admin::NotificationList& notifications(const ExecutionSpec* msg); + static const ::flyteidl::admin::Labels& labels(const ExecutionSpec* msg); + static const ::flyteidl::admin::Annotations& annotations(const ExecutionSpec* msg); + static const ::flyteidl::core::SecurityContext& security_context(const ExecutionSpec* msg); + static const ::flyteidl::admin::AuthRole& auth_role(const ExecutionSpec* msg); + static const ::flyteidl::core::QualityOfService& quality_of_service(const ExecutionSpec* msg); + static const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config(const ExecutionSpec* msg); + static const ::flyteidl::admin::ClusterAssignment& cluster_assignment(const ExecutionSpec* msg); + static const ::google::protobuf::BoolValue& interruptible(const ExecutionSpec* msg); + static const ::flyteidl::admin::Envs& envs(const ExecutionSpec* msg); +}; + +const ::flyteidl::core::Identifier& +ExecutionSpec::HasBitSetters::launch_plan(const ExecutionSpec* msg) { + return *msg->launch_plan_; +} +const ::flyteidl::core::LiteralMap& +ExecutionSpec::HasBitSetters::inputs(const ExecutionSpec* msg) { + return *msg->inputs_; +} +const ::flyteidl::admin::ExecutionMetadata& +ExecutionSpec::HasBitSetters::metadata(const ExecutionSpec* msg) { + return *msg->metadata_; +} +const ::flyteidl::admin::NotificationList& +ExecutionSpec::HasBitSetters::notifications(const ExecutionSpec* msg) { + return *msg->notification_overrides_.notifications_; +} +const ::flyteidl::admin::Labels& +ExecutionSpec::HasBitSetters::labels(const ExecutionSpec* msg) { + return *msg->labels_; +} +const ::flyteidl::admin::Annotations& +ExecutionSpec::HasBitSetters::annotations(const ExecutionSpec* msg) { + return *msg->annotations_; +} +const ::flyteidl::core::SecurityContext& +ExecutionSpec::HasBitSetters::security_context(const ExecutionSpec* msg) { + return *msg->security_context_; +} +const ::flyteidl::admin::AuthRole& +ExecutionSpec::HasBitSetters::auth_role(const ExecutionSpec* msg) { + return *msg->auth_role_; +} +const ::flyteidl::core::QualityOfService& +ExecutionSpec::HasBitSetters::quality_of_service(const ExecutionSpec* msg) { + return *msg->quality_of_service_; +} +const ::flyteidl::admin::RawOutputDataConfig& +ExecutionSpec::HasBitSetters::raw_output_data_config(const ExecutionSpec* msg) { + return *msg->raw_output_data_config_; +} +const ::flyteidl::admin::ClusterAssignment& +ExecutionSpec::HasBitSetters::cluster_assignment(const ExecutionSpec* msg) { + return *msg->cluster_assignment_; +} +const ::google::protobuf::BoolValue& +ExecutionSpec::HasBitSetters::interruptible(const ExecutionSpec* msg) { + return *msg->interruptible_; +} +const ::flyteidl::admin::Envs& +ExecutionSpec::HasBitSetters::envs(const ExecutionSpec* msg) { + return *msg->envs_; +} +void ExecutionSpec::clear_launch_plan() { + if (GetArenaNoVirtual() == nullptr && launch_plan_ != nullptr) { + delete launch_plan_; + } + launch_plan_ = nullptr; +} +void ExecutionSpec::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +void ExecutionSpec::set_allocated_notifications(::flyteidl::admin::NotificationList* notifications) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_notification_overrides(); + if (notifications) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + notifications = ::google::protobuf::internal::GetOwnedMessage( + message_arena, notifications, submessage_arena); + } + set_has_notifications(); + notification_overrides_.notifications_ = notifications; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.notifications) +} +void ExecutionSpec::clear_labels() { + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; +} +void ExecutionSpec::clear_annotations() { + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; +} +void ExecutionSpec::clear_security_context() { + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; +} +void ExecutionSpec::clear_auth_role() { + if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { + delete auth_role_; + } + auth_role_ = nullptr; +} +void ExecutionSpec::clear_quality_of_service() { + if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { + delete quality_of_service_; + } + quality_of_service_ = nullptr; +} +void ExecutionSpec::clear_raw_output_data_config() { + if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { + delete raw_output_data_config_; + } + raw_output_data_config_ = nullptr; +} +void ExecutionSpec::clear_cluster_assignment() { + if (GetArenaNoVirtual() == nullptr && cluster_assignment_ != nullptr) { + delete cluster_assignment_; + } + cluster_assignment_ = nullptr; +} +void ExecutionSpec::clear_interruptible() { + if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { + delete interruptible_; + } + interruptible_ = nullptr; +} +void ExecutionSpec::clear_envs() { + if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { + delete envs_; + } + envs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionSpec::kLaunchPlanFieldNumber; +const int ExecutionSpec::kInputsFieldNumber; +const int ExecutionSpec::kMetadataFieldNumber; +const int ExecutionSpec::kNotificationsFieldNumber; +const int ExecutionSpec::kDisableAllFieldNumber; +const int ExecutionSpec::kLabelsFieldNumber; +const int ExecutionSpec::kAnnotationsFieldNumber; +const int ExecutionSpec::kSecurityContextFieldNumber; +const int ExecutionSpec::kAuthRoleFieldNumber; +const int ExecutionSpec::kQualityOfServiceFieldNumber; +const int ExecutionSpec::kMaxParallelismFieldNumber; +const int ExecutionSpec::kRawOutputDataConfigFieldNumber; +const int ExecutionSpec::kClusterAssignmentFieldNumber; +const int ExecutionSpec::kInterruptibleFieldNumber; +const int ExecutionSpec::kOverwriteCacheFieldNumber; +const int ExecutionSpec::kEnvsFieldNumber; +const int ExecutionSpec::kTagsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionSpec::ExecutionSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionSpec) +} +ExecutionSpec::ExecutionSpec(const ExecutionSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + tags_(from.tags_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_launch_plan()) { + launch_plan_ = new ::flyteidl::core::Identifier(*from.launch_plan_); + } else { + launch_plan_ = nullptr; + } + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::admin::ExecutionMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_labels()) { + labels_ = new ::flyteidl::admin::Labels(*from.labels_); + } else { + labels_ = nullptr; + } + if (from.has_annotations()) { + annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); + } else { + annotations_ = nullptr; + } + if (from.has_security_context()) { + security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); + } else { + security_context_ = nullptr; + } + if (from.has_auth_role()) { + auth_role_ = new ::flyteidl::admin::AuthRole(*from.auth_role_); + } else { + auth_role_ = nullptr; + } + if (from.has_quality_of_service()) { + quality_of_service_ = new ::flyteidl::core::QualityOfService(*from.quality_of_service_); + } else { + quality_of_service_ = nullptr; + } + if (from.has_raw_output_data_config()) { + raw_output_data_config_ = new ::flyteidl::admin::RawOutputDataConfig(*from.raw_output_data_config_); + } else { + raw_output_data_config_ = nullptr; + } + if (from.has_cluster_assignment()) { + cluster_assignment_ = new ::flyteidl::admin::ClusterAssignment(*from.cluster_assignment_); + } else { + cluster_assignment_ = nullptr; + } + if (from.has_interruptible()) { + interruptible_ = new ::google::protobuf::BoolValue(*from.interruptible_); + } else { + interruptible_ = nullptr; + } + if (from.has_envs()) { + envs_ = new ::flyteidl::admin::Envs(*from.envs_); + } else { + envs_ = nullptr; + } + ::memcpy(&max_parallelism_, &from.max_parallelism_, + static_cast(reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); + clear_has_notification_overrides(); + switch (from.notification_overrides_case()) { + case kNotifications: { + mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); + break; + } + case kDisableAll: { + set_disable_all(from.disable_all()); + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionSpec) +} + +void ExecutionSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); + ::memset(&launch_plan_, 0, static_cast( + reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&launch_plan_)) + sizeof(overwrite_cache_)); + clear_has_notification_overrides(); +} + +ExecutionSpec::~ExecutionSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionSpec) + SharedDtor(); +} + +void ExecutionSpec::SharedDtor() { + if (this != internal_default_instance()) delete launch_plan_; + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete labels_; + if (this != internal_default_instance()) delete annotations_; + if (this != internal_default_instance()) delete security_context_; + if (this != internal_default_instance()) delete auth_role_; + if (this != internal_default_instance()) delete quality_of_service_; + if (this != internal_default_instance()) delete raw_output_data_config_; + if (this != internal_default_instance()) delete cluster_assignment_; + if (this != internal_default_instance()) delete interruptible_; + if (this != internal_default_instance()) delete envs_; + if (has_notification_overrides()) { + clear_notification_overrides(); + } +} + +void ExecutionSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionSpec& ExecutionSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionSpec::clear_notification_overrides() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionSpec) + switch (notification_overrides_case()) { + case kNotifications: { + delete notification_overrides_.notifications_; + break; + } + case kDisableAll: { + // No need to clear + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } + _oneof_case_[0] = NOTIFICATION_OVERRIDES_NOT_SET; +} + + +void ExecutionSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + if (GetArenaNoVirtual() == nullptr && launch_plan_ != nullptr) { + delete launch_plan_; + } + launch_plan_ = nullptr; + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; + if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { + delete auth_role_; + } + auth_role_ = nullptr; + if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { + delete quality_of_service_; + } + quality_of_service_ = nullptr; + if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { + delete raw_output_data_config_; + } + raw_output_data_config_ = nullptr; + if (GetArenaNoVirtual() == nullptr && cluster_assignment_ != nullptr) { + delete cluster_assignment_; + } + cluster_assignment_ = nullptr; + if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { + delete interruptible_; + } + interruptible_ = nullptr; + if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { + delete envs_; + } + envs_ = nullptr; + ::memset(&max_parallelism_, 0, static_cast( + reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); + clear_notification_overrides(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier launch_plan = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_launch_plan(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ExecutionMetadata metadata = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.NotificationList notifications = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NotificationList::_InternalParse; + object = msg->mutable_notifications(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool disable_all = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; + msg->set_disable_all(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.Labels labels = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Labels::_InternalParse; + object = msg->mutable_labels(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.Annotations annotations = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Annotations::_InternalParse; + object = msg->mutable_annotations(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.SecurityContext security_context = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SecurityContext::_InternalParse; + object = msg->mutable_security_context(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::AuthRole::_InternalParse; + object = msg->mutable_auth_role(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.QualityOfService quality_of_service = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::QualityOfService::_InternalParse; + object = msg->mutable_quality_of_service(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 max_parallelism = 18; + case 18: { + if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; + msg->set_max_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + case 19: { + if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::RawOutputDataConfig::_InternalParse; + object = msg->mutable_raw_output_data_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + case 20: { + if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ClusterAssignment::_InternalParse; + object = msg->mutable_cluster_assignment(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.BoolValue interruptible = 21; + case 21: { + if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::BoolValue::_InternalParse; + object = msg->mutable_interruptible(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool overwrite_cache = 22; + case 22: { + if (static_cast<::google::protobuf::uint8>(tag) != 176) goto handle_unusual; + msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.Envs envs = 23; + case 23: { + if (static_cast<::google::protobuf::uint8>(tag) != 186) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Envs::_InternalParse; + object = msg->mutable_envs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated string tags = 24; + case 24: { + if (static_cast<::google::protobuf::uint8>(tag) != 194) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionSpec.tags"); + object = msg->add_tags(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 450 && (ptr += 2)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier launch_plan = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_launch_plan())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NotificationList notifications = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_notifications())); + } else { + goto handle_unusual; + } + break; + } + + // bool disable_all = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { + clear_notification_overrides(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, ¬ification_overrides_.disable_all_))); + set_has_disable_all(); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Labels labels = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_labels())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Annotations annotations = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_annotations())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SecurityContext security_context = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_security_context())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_auth_role())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.QualityOfService quality_of_service = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_quality_of_service())); + } else { + goto handle_unusual; + } + break; + } + + // int32 max_parallelism = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_parallelism_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + case 19: { + if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_raw_output_data_config())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + case 20: { + if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_cluster_assignment())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.BoolValue interruptible = 21; + case 21: { + if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interruptible())); + } else { + goto handle_unusual; + } + break; + } + + // bool overwrite_cache = 22; + case 22: { + if (static_cast< ::google::protobuf::uint8>(tag) == (176 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &overwrite_cache_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Envs envs = 23; + case 23: { + if (static_cast< ::google::protobuf::uint8>(tag) == (186 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_envs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string tags = 24; + case 24: { + if (static_cast< ::google::protobuf::uint8>(tag) == (194 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_tags())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(this->tags_size() - 1).data(), + static_cast(this->tags(this->tags_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionSpec.tags")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launch_plan = 1; + if (this->has_launch_plan()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::launch_plan(this), output); + } + + // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::inputs(this), output); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::metadata(this), output); + } + + // .flyteidl.admin.NotificationList notifications = 5; + if (has_notifications()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::notifications(this), output); + } + + // bool disable_all = 6; + if (has_disable_all()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->disable_all(), output); + } + + // .flyteidl.admin.Labels labels = 7; + if (this->has_labels()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::labels(this), output); + } + + // .flyteidl.admin.Annotations annotations = 8; + if (this->has_annotations()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::annotations(this), output); + } + + // .flyteidl.core.SecurityContext security_context = 10; + if (this->has_security_context()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::security_context(this), output); + } + + // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + if (this->has_auth_role()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, HasBitSetters::auth_role(this), output); + } + + // .flyteidl.core.QualityOfService quality_of_service = 17; + if (this->has_quality_of_service()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, HasBitSetters::quality_of_service(this), output); + } + + // int32 max_parallelism = 18; + if (this->max_parallelism() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->max_parallelism(), output); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + if (this->has_raw_output_data_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 19, HasBitSetters::raw_output_data_config(this), output); + } + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + if (this->has_cluster_assignment()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 20, HasBitSetters::cluster_assignment(this), output); + } + + // .google.protobuf.BoolValue interruptible = 21; + if (this->has_interruptible()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 21, HasBitSetters::interruptible(this), output); + } + + // bool overwrite_cache = 22; + if (this->overwrite_cache() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(22, this->overwrite_cache(), output); + } + + // .flyteidl.admin.Envs envs = 23; + if (this->has_envs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 23, HasBitSetters::envs(this), output); + } + + // repeated string tags = 24; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionSpec.tags"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 24, this->tags(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionSpec) +} + +::google::protobuf::uint8* ExecutionSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launch_plan = 1; + if (this->has_launch_plan()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::launch_plan(this), target); + } + + // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::inputs(this), target); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::metadata(this), target); + } + + // .flyteidl.admin.NotificationList notifications = 5; + if (has_notifications()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::notifications(this), target); + } + + // bool disable_all = 6; + if (has_disable_all()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->disable_all(), target); + } + + // .flyteidl.admin.Labels labels = 7; + if (this->has_labels()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::labels(this), target); + } + + // .flyteidl.admin.Annotations annotations = 8; + if (this->has_annotations()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::annotations(this), target); + } + + // .flyteidl.core.SecurityContext security_context = 10; + if (this->has_security_context()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::security_context(this), target); + } + + // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + if (this->has_auth_role()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, HasBitSetters::auth_role(this), target); + } + + // .flyteidl.core.QualityOfService quality_of_service = 17; + if (this->has_quality_of_service()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 17, HasBitSetters::quality_of_service(this), target); + } + + // int32 max_parallelism = 18; + if (this->max_parallelism() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->max_parallelism(), target); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + if (this->has_raw_output_data_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 19, HasBitSetters::raw_output_data_config(this), target); + } + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + if (this->has_cluster_assignment()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 20, HasBitSetters::cluster_assignment(this), target); + } + + // .google.protobuf.BoolValue interruptible = 21; + if (this->has_interruptible()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 21, HasBitSetters::interruptible(this), target); + } + + // bool overwrite_cache = 22; + if (this->overwrite_cache() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(22, this->overwrite_cache(), target); + } + + // .flyteidl.admin.Envs envs = 23; + if (this->has_envs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 23, HasBitSetters::envs(this), target); + } + + // repeated string tags = 24; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionSpec.tags"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(24, this->tags(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionSpec) + return target; +} + +size_t ExecutionSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string tags = 24; + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + for (int i = 0, n = this->tags_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->tags(i)); + } + + // .flyteidl.core.Identifier launch_plan = 1; + if (this->has_launch_plan()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *launch_plan_); + } + + // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flyteidl.admin.Labels labels = 7; + if (this->has_labels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *labels_); + } + + // .flyteidl.admin.Annotations annotations = 8; + if (this->has_annotations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *annotations_); + } + + // .flyteidl.core.SecurityContext security_context = 10; + if (this->has_security_context()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *security_context_); + } + + // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + if (this->has_auth_role()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *auth_role_); + } + + // .flyteidl.core.QualityOfService quality_of_service = 17; + if (this->has_quality_of_service()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *quality_of_service_); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + if (this->has_raw_output_data_config()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *raw_output_data_config_); + } + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + if (this->has_cluster_assignment()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cluster_assignment_); + } + + // .google.protobuf.BoolValue interruptible = 21; + if (this->has_interruptible()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *interruptible_); + } + + // .flyteidl.admin.Envs envs = 23; + if (this->has_envs()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *envs_); + } + + // int32 max_parallelism = 18; + if (this->max_parallelism() != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_parallelism()); + } + + // bool overwrite_cache = 22; + if (this->overwrite_cache() != 0) { + total_size += 2 + 1; + } + + switch (notification_overrides_case()) { + // .flyteidl.admin.NotificationList notifications = 5; + case kNotifications: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *notification_overrides_.notifications_); + break; + } + // bool disable_all = 6; + case kDisableAll: { + total_size += 1 + 1; + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionSpec) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionSpec) + MergeFrom(*source); + } +} + +void ExecutionSpec::MergeFrom(const ExecutionSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.has_launch_plan()) { + mutable_launch_plan()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan()); + } + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::admin::ExecutionMetadata::MergeFrom(from.metadata()); + } + if (from.has_labels()) { + mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); + } + if (from.has_annotations()) { + mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); + } + if (from.has_security_context()) { + mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); + } + if (from.has_auth_role()) { + mutable_auth_role()->::flyteidl::admin::AuthRole::MergeFrom(from.auth_role()); + } + if (from.has_quality_of_service()) { + mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); + } + if (from.has_raw_output_data_config()) { + mutable_raw_output_data_config()->::flyteidl::admin::RawOutputDataConfig::MergeFrom(from.raw_output_data_config()); + } + if (from.has_cluster_assignment()) { + mutable_cluster_assignment()->::flyteidl::admin::ClusterAssignment::MergeFrom(from.cluster_assignment()); + } + if (from.has_interruptible()) { + mutable_interruptible()->::google::protobuf::BoolValue::MergeFrom(from.interruptible()); + } + if (from.has_envs()) { + mutable_envs()->::flyteidl::admin::Envs::MergeFrom(from.envs()); + } + if (from.max_parallelism() != 0) { + set_max_parallelism(from.max_parallelism()); + } + if (from.overwrite_cache() != 0) { + set_overwrite_cache(from.overwrite_cache()); + } + switch (from.notification_overrides_case()) { + case kNotifications: { + mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); + break; + } + case kDisableAll: { + set_disable_all(from.disable_all()); + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } +} + +void ExecutionSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionSpec::CopyFrom(const ExecutionSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionSpec::IsInitialized() const { + return true; +} + +void ExecutionSpec::Swap(ExecutionSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionSpec::InternalSwap(ExecutionSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.InternalSwap(CastToBase(&other->tags_)); + swap(launch_plan_, other->launch_plan_); + swap(inputs_, other->inputs_); + swap(metadata_, other->metadata_); + swap(labels_, other->labels_); + swap(annotations_, other->annotations_); + swap(security_context_, other->security_context_); + swap(auth_role_, other->auth_role_); + swap(quality_of_service_, other->quality_of_service_); + swap(raw_output_data_config_, other->raw_output_data_config_); + swap(cluster_assignment_, other->cluster_assignment_); + swap(interruptible_, other->interruptible_); + swap(envs_, other->envs_); + swap(max_parallelism_, other->max_parallelism_); + swap(overwrite_cache_, other->overwrite_cache_); + swap(notification_overrides_, other->notification_overrides_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ExecutionSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionTerminateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionTerminateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class ExecutionTerminateRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionTerminateRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +ExecutionTerminateRequest::HasBitSetters::id(const ExecutionTerminateRequest* msg) { + return *msg->id_; +} +void ExecutionTerminateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionTerminateRequest::kIdFieldNumber; +const int ExecutionTerminateRequest::kCauseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionTerminateRequest::ExecutionTerminateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateRequest) +} +ExecutionTerminateRequest::ExecutionTerminateRequest(const ExecutionTerminateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cause().size() > 0) { + cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateRequest) +} + +void ExecutionTerminateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + id_ = nullptr; +} + +ExecutionTerminateRequest::~ExecutionTerminateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateRequest) + SharedDtor(); +} + +void ExecutionTerminateRequest::SharedDtor() { + cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; +} + +void ExecutionTerminateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionTerminateRequest& ExecutionTerminateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionTerminateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionTerminateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string cause = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionTerminateRequest.cause"); + object = msg->mutable_cause(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionTerminateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionTerminateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string cause = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cause())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionTerminateRequest.cause")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionTerminateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionTerminateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string cause = 2; + if (this->cause().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionTerminateRequest.cause"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->cause(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateRequest) +} + +::google::protobuf::uint8* ExecutionTerminateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string cause = 2; + if (this->cause().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionTerminateRequest.cause"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->cause(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionTerminateRequest) + return target; +} + +size_t ExecutionTerminateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string cause = 2; + if (this->cause().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cause()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionTerminateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionTerminateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateRequest) + MergeFrom(*source); + } +} + +void ExecutionTerminateRequest::MergeFrom(const ExecutionTerminateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cause().size() > 0) { + + cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void ExecutionTerminateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionTerminateRequest::CopyFrom(const ExecutionTerminateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionTerminateRequest::IsInitialized() const { + return true; +} + +void ExecutionTerminateRequest::Swap(ExecutionTerminateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionTerminateRequest::InternalSwap(ExecutionTerminateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + cause_.Swap(&other->cause_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); +} + +::google::protobuf::Metadata ExecutionTerminateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionTerminateResponse::InitAsDefaultInstance() { +} +class ExecutionTerminateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionTerminateResponse::ExecutionTerminateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateResponse) +} +ExecutionTerminateResponse::ExecutionTerminateResponse(const ExecutionTerminateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateResponse) +} + +void ExecutionTerminateResponse::SharedCtor() { +} + +ExecutionTerminateResponse::~ExecutionTerminateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateResponse) + SharedDtor(); +} + +void ExecutionTerminateResponse::SharedDtor() { +} + +void ExecutionTerminateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionTerminateResponse& ExecutionTerminateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionTerminateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionTerminateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionTerminateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionTerminateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionTerminateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionTerminateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateResponse) +} + +::google::protobuf::uint8* ExecutionTerminateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionTerminateResponse) + return target; +} + +size_t ExecutionTerminateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionTerminateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionTerminateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateResponse) + MergeFrom(*source); + } +} + +void ExecutionTerminateResponse::MergeFrom(const ExecutionTerminateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ExecutionTerminateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionTerminateResponse::CopyFrom(const ExecutionTerminateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionTerminateResponse::IsInitialized() const { + return true; +} + +void ExecutionTerminateResponse::Swap(ExecutionTerminateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionTerminateResponse::InternalSwap(ExecutionTerminateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ExecutionTerminateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetDataRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class WorkflowExecutionGetDataRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetDataRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +WorkflowExecutionGetDataRequest::HasBitSetters::id(const WorkflowExecutionGetDataRequest* msg) { + return *msg->id_; +} +void WorkflowExecutionGetDataRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetDataRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) +} +WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest(const WorkflowExecutionGetDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) +} + +void WorkflowExecutionGetDataRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + id_ = nullptr; +} + +WorkflowExecutionGetDataRequest::~WorkflowExecutionGetDataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataRequest) + SharedDtor(); +} + +void WorkflowExecutionGetDataRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowExecutionGetDataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionGetDataRequest& WorkflowExecutionGetDataRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionGetDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionGetDataRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionGetDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionGetDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetDataRequest) +} + +::google::protobuf::uint8* WorkflowExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetDataRequest) + return target; +} + +size_t WorkflowExecutionGetDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetDataRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataRequest) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetDataRequest::MergeFrom(const WorkflowExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void WorkflowExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetDataRequest::CopyFrom(const WorkflowExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetDataRequest::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetDataRequest::Swap(WorkflowExecutionGetDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetDataRequest::InternalSwap(WorkflowExecutionGetDataRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata WorkflowExecutionGetDataRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetDataResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +class WorkflowExecutionGetDataResponse::HasBitSetters { + public: + static const ::flyteidl::admin::UrlBlob& outputs(const WorkflowExecutionGetDataResponse* msg); + static const ::flyteidl::admin::UrlBlob& inputs(const WorkflowExecutionGetDataResponse* msg); + static const ::flyteidl::core::LiteralMap& full_inputs(const WorkflowExecutionGetDataResponse* msg); + static const ::flyteidl::core::LiteralMap& full_outputs(const WorkflowExecutionGetDataResponse* msg); +}; + +const ::flyteidl::admin::UrlBlob& +WorkflowExecutionGetDataResponse::HasBitSetters::outputs(const WorkflowExecutionGetDataResponse* msg) { + return *msg->outputs_; +} +const ::flyteidl::admin::UrlBlob& +WorkflowExecutionGetDataResponse::HasBitSetters::inputs(const WorkflowExecutionGetDataResponse* msg) { + return *msg->inputs_; +} +const ::flyteidl::core::LiteralMap& +WorkflowExecutionGetDataResponse::HasBitSetters::full_inputs(const WorkflowExecutionGetDataResponse* msg) { + return *msg->full_inputs_; +} +const ::flyteidl::core::LiteralMap& +WorkflowExecutionGetDataResponse::HasBitSetters::full_outputs(const WorkflowExecutionGetDataResponse* msg) { + return *msg->full_outputs_; +} +void WorkflowExecutionGetDataResponse::clear_outputs() { + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; +} +void WorkflowExecutionGetDataResponse::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +void WorkflowExecutionGetDataResponse::clear_full_inputs() { + if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { + delete full_inputs_; + } + full_inputs_ = nullptr; +} +void WorkflowExecutionGetDataResponse::clear_full_outputs() { + if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { + delete full_outputs_; + } + full_outputs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetDataResponse::kOutputsFieldNumber; +const int WorkflowExecutionGetDataResponse::kInputsFieldNumber; +const int WorkflowExecutionGetDataResponse::kFullInputsFieldNumber; +const int WorkflowExecutionGetDataResponse::kFullOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) +} +WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse(const WorkflowExecutionGetDataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_outputs()) { + outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); + } else { + outputs_ = nullptr; + } + if (from.has_inputs()) { + inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_full_inputs()) { + full_inputs_ = new ::flyteidl::core::LiteralMap(*from.full_inputs_); + } else { + full_inputs_ = nullptr; + } + if (from.has_full_outputs()) { + full_outputs_ = new ::flyteidl::core::LiteralMap(*from.full_outputs_); + } else { + full_outputs_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) +} + +void WorkflowExecutionGetDataResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + ::memset(&outputs_, 0, static_cast( + reinterpret_cast(&full_outputs_) - + reinterpret_cast(&outputs_)) + sizeof(full_outputs_)); +} + +WorkflowExecutionGetDataResponse::~WorkflowExecutionGetDataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataResponse) + SharedDtor(); +} + +void WorkflowExecutionGetDataResponse::SharedDtor() { + if (this != internal_default_instance()) delete outputs_; + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete full_inputs_; + if (this != internal_default_instance()) delete full_outputs_; +} + +void WorkflowExecutionGetDataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionGetDataResponse& WorkflowExecutionGetDataResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionGetDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { + delete full_inputs_; + } + full_inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { + delete full_outputs_; + } + full_outputs_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionGetDataResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap full_inputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_full_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap full_outputs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_full_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionGetDataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_full_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_full_outputs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetDataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionGetDataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::outputs(this), output); + } + + // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::inputs(this), output); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::full_inputs(this), output); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::full_outputs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetDataResponse) +} + +::google::protobuf::uint8* WorkflowExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::outputs(this), target); + } + + // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::inputs(this), target); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::full_inputs(this), target); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::full_outputs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetDataResponse) + return target; +} + +size_t WorkflowExecutionGetDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *outputs_); + } + + // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *full_inputs_); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *full_outputs_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetDataResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataResponse) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetDataResponse::MergeFrom(const WorkflowExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); + } + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); + } + if (from.has_full_inputs()) { + mutable_full_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_inputs()); + } + if (from.has_full_outputs()) { + mutable_full_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_outputs()); + } +} + +void WorkflowExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetDataResponse::CopyFrom(const WorkflowExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetDataResponse::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetDataResponse::Swap(WorkflowExecutionGetDataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetDataResponse::InternalSwap(WorkflowExecutionGetDataResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(outputs_, other->outputs_); + swap(inputs_, other->inputs_); + swap(full_inputs_, other->full_inputs_); + swap(full_outputs_, other->full_outputs_); +} + +::google::protobuf::Metadata WorkflowExecutionGetDataResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionUpdateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionUpdateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class ExecutionUpdateRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionUpdateRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +ExecutionUpdateRequest::HasBitSetters::id(const ExecutionUpdateRequest* msg) { + return *msg->id_; +} +void ExecutionUpdateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionUpdateRequest::kIdFieldNumber; +const int ExecutionUpdateRequest::kStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionUpdateRequest::ExecutionUpdateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionUpdateRequest) +} +ExecutionUpdateRequest::ExecutionUpdateRequest(const ExecutionUpdateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionUpdateRequest) +} + +void ExecutionUpdateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&id_)) + sizeof(state_)); +} + +ExecutionUpdateRequest::~ExecutionUpdateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionUpdateRequest) + SharedDtor(); +} + +void ExecutionUpdateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ExecutionUpdateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionUpdateRequest& ExecutionUpdateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionUpdateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionUpdateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ExecutionState state = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::ExecutionState>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionUpdateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionUpdateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionState state = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::ExecutionState >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionUpdateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionUpdateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionUpdateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.ExecutionState state = 2; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->state(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionUpdateRequest) +} + +::google::protobuf::uint8* ExecutionUpdateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.ExecutionState state = 2; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->state(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionUpdateRequest) + return target; +} + +size_t ExecutionUpdateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionUpdateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.ExecutionState state = 2; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionUpdateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionUpdateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionUpdateRequest) + MergeFrom(*source); + } +} + +void ExecutionUpdateRequest::MergeFrom(const ExecutionUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void ExecutionUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionUpdateRequest::CopyFrom(const ExecutionUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionUpdateRequest::IsInitialized() const { + return true; +} + +void ExecutionUpdateRequest::Swap(ExecutionUpdateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionUpdateRequest::InternalSwap(ExecutionUpdateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata ExecutionUpdateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionStateChangeDetails::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class ExecutionStateChangeDetails::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& occurred_at(const ExecutionStateChangeDetails* msg); +}; + +const ::google::protobuf::Timestamp& +ExecutionStateChangeDetails::HasBitSetters::occurred_at(const ExecutionStateChangeDetails* msg) { + return *msg->occurred_at_; +} +void ExecutionStateChangeDetails::clear_occurred_at() { + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionStateChangeDetails::kStateFieldNumber; +const int ExecutionStateChangeDetails::kOccurredAtFieldNumber; +const int ExecutionStateChangeDetails::kPrincipalFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionStateChangeDetails::ExecutionStateChangeDetails() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionStateChangeDetails) +} +ExecutionStateChangeDetails::ExecutionStateChangeDetails(const ExecutionStateChangeDetails& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionStateChangeDetails) +} + +void ExecutionStateChangeDetails::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&occurred_at_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&occurred_at_)) + sizeof(state_)); +} + +ExecutionStateChangeDetails::~ExecutionStateChangeDetails() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionStateChangeDetails) + SharedDtor(); +} + +void ExecutionStateChangeDetails::SharedDtor() { + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete occurred_at_; +} + +void ExecutionStateChangeDetails::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionStateChangeDetails& ExecutionStateChangeDetails::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionStateChangeDetails::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionStateChangeDetails) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionStateChangeDetails::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.ExecutionState state = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::ExecutionState>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Timestamp occurred_at = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_occurred_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string principal = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionStateChangeDetails.principal"); + object = msg->mutable_principal(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionStateChangeDetails::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionStateChangeDetails) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.ExecutionState state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::ExecutionState >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp occurred_at = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string principal = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionStateChangeDetails.principal")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionStateChangeDetails) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionStateChangeDetails) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionStateChangeDetails::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionStateChangeDetails) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ExecutionState state = 1; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // .google.protobuf.Timestamp occurred_at = 2; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::occurred_at(this), output); + } + + // string principal = 3; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionStateChangeDetails.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->principal(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionStateChangeDetails) +} + +::google::protobuf::uint8* ExecutionStateChangeDetails::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionStateChangeDetails) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ExecutionState state = 1; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // .google.protobuf.Timestamp occurred_at = 2; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::occurred_at(this), target); + } + + // string principal = 3; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionStateChangeDetails.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->principal(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionStateChangeDetails) + return target; +} + +size_t ExecutionStateChangeDetails::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionStateChangeDetails) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string principal = 3; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + + // .google.protobuf.Timestamp occurred_at = 2; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *occurred_at_); + } + + // .flyteidl.admin.ExecutionState state = 1; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionStateChangeDetails::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionStateChangeDetails) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionStateChangeDetails* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionStateChangeDetails) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionStateChangeDetails) + MergeFrom(*source); + } +} + +void ExecutionStateChangeDetails::MergeFrom(const ExecutionStateChangeDetails& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionStateChangeDetails) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void ExecutionStateChangeDetails::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionStateChangeDetails) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionStateChangeDetails::CopyFrom(const ExecutionStateChangeDetails& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionStateChangeDetails) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionStateChangeDetails::IsInitialized() const { + return true; +} + +void ExecutionStateChangeDetails::Swap(ExecutionStateChangeDetails* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionStateChangeDetails::InternalSwap(ExecutionStateChangeDetails* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(occurred_at_, other->occurred_at_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata ExecutionStateChangeDetails::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionUpdateResponse::InitAsDefaultInstance() { +} +class ExecutionUpdateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionUpdateResponse::ExecutionUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionUpdateResponse) +} +ExecutionUpdateResponse::ExecutionUpdateResponse(const ExecutionUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionUpdateResponse) +} + +void ExecutionUpdateResponse::SharedCtor() { +} + +ExecutionUpdateResponse::~ExecutionUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionUpdateResponse) + SharedDtor(); +} + +void ExecutionUpdateResponse::SharedDtor() { +} + +void ExecutionUpdateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionUpdateResponse& ExecutionUpdateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionUpdateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionUpdateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionUpdateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionUpdateResponse) +} + +::google::protobuf::uint8* ExecutionUpdateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionUpdateResponse) + return target; +} + +size_t ExecutionUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionUpdateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionUpdateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionUpdateResponse) + MergeFrom(*source); + } +} + +void ExecutionUpdateResponse::MergeFrom(const ExecutionUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ExecutionUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionUpdateResponse::CopyFrom(const ExecutionUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionUpdateResponse::IsInitialized() const { + return true; +} + +void ExecutionUpdateResponse::Swap(ExecutionUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionUpdateResponse::InternalSwap(ExecutionUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ExecutionUpdateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetMetricsRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetMetricsRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class WorkflowExecutionGetMetricsRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetMetricsRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +WorkflowExecutionGetMetricsRequest::HasBitSetters::id(const WorkflowExecutionGetMetricsRequest* msg) { + return *msg->id_; +} +void WorkflowExecutionGetMetricsRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetMetricsRequest::kIdFieldNumber; +const int WorkflowExecutionGetMetricsRequest::kDepthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetMetricsRequest::WorkflowExecutionGetMetricsRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetMetricsRequest) +} +WorkflowExecutionGetMetricsRequest::WorkflowExecutionGetMetricsRequest(const WorkflowExecutionGetMetricsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + depth_ = from.depth_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetMetricsRequest) +} + +void WorkflowExecutionGetMetricsRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&depth_) - + reinterpret_cast(&id_)) + sizeof(depth_)); +} + +WorkflowExecutionGetMetricsRequest::~WorkflowExecutionGetMetricsRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + SharedDtor(); +} + +void WorkflowExecutionGetMetricsRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowExecutionGetMetricsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionGetMetricsRequest& WorkflowExecutionGetMetricsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionGetMetricsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + depth_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionGetMetricsRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 depth = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_depth(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionGetMetricsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // int32 depth = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &depth_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionGetMetricsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // int32 depth = 2; + if (this->depth() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->depth(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetMetricsRequest) +} + +::google::protobuf::uint8* WorkflowExecutionGetMetricsRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // int32 depth = 2; + if (this->depth() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->depth(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + return target; +} + +size_t WorkflowExecutionGetMetricsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // int32 depth = 2; + if (this->depth() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->depth()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionGetMetricsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetMetricsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetMetricsRequest::MergeFrom(const WorkflowExecutionGetMetricsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } + if (from.depth() != 0) { + set_depth(from.depth()); + } +} + +void WorkflowExecutionGetMetricsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetMetricsRequest::CopyFrom(const WorkflowExecutionGetMetricsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetMetricsRequest::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetMetricsRequest::Swap(WorkflowExecutionGetMetricsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetMetricsRequest::InternalSwap(WorkflowExecutionGetMetricsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(depth_, other->depth_); +} + +::google::protobuf::Metadata WorkflowExecutionGetMetricsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetMetricsResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetMetricsResponse_default_instance_._instance.get_mutable()->span_ = const_cast< ::flyteidl::core::Span*>( + ::flyteidl::core::Span::internal_default_instance()); +} +class WorkflowExecutionGetMetricsResponse::HasBitSetters { + public: + static const ::flyteidl::core::Span& span(const WorkflowExecutionGetMetricsResponse* msg); +}; + +const ::flyteidl::core::Span& +WorkflowExecutionGetMetricsResponse::HasBitSetters::span(const WorkflowExecutionGetMetricsResponse* msg) { + return *msg->span_; +} +void WorkflowExecutionGetMetricsResponse::clear_span() { + if (GetArenaNoVirtual() == nullptr && span_ != nullptr) { + delete span_; + } + span_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetMetricsResponse::kSpanFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetMetricsResponse::WorkflowExecutionGetMetricsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetMetricsResponse) +} +WorkflowExecutionGetMetricsResponse::WorkflowExecutionGetMetricsResponse(const WorkflowExecutionGetMetricsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_span()) { + span_ = new ::flyteidl::core::Span(*from.span_); + } else { + span_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetMetricsResponse) +} + +void WorkflowExecutionGetMetricsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + span_ = nullptr; +} + +WorkflowExecutionGetMetricsResponse::~WorkflowExecutionGetMetricsResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + SharedDtor(); +} + +void WorkflowExecutionGetMetricsResponse::SharedDtor() { + if (this != internal_default_instance()) delete span_; +} + +void WorkflowExecutionGetMetricsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionGetMetricsResponse& WorkflowExecutionGetMetricsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionGetMetricsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && span_ != nullptr) { + delete span_; + } + span_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionGetMetricsResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Span span = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Span::_InternalParse; + object = msg->mutable_span(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionGetMetricsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Span span = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_span())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionGetMetricsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Span span = 1; + if (this->has_span()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::span(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetMetricsResponse) +} + +::google::protobuf::uint8* WorkflowExecutionGetMetricsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Span span = 1; + if (this->has_span()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::span(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + return target; +} + +size_t WorkflowExecutionGetMetricsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Span span = 1; + if (this->has_span()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *span_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionGetMetricsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetMetricsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetMetricsResponse::MergeFrom(const WorkflowExecutionGetMetricsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_span()) { + mutable_span()->::flyteidl::core::Span::MergeFrom(from.span()); + } +} + +void WorkflowExecutionGetMetricsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetMetricsResponse::CopyFrom(const WorkflowExecutionGetMetricsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetMetricsResponse::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetMetricsResponse::Swap(WorkflowExecutionGetMetricsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetMetricsResponse::InternalSwap(WorkflowExecutionGetMetricsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(span_, other->span_); +} + +::google::protobuf::Metadata WorkflowExecutionGetMetricsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionCreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionCreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionRelaunchRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionRelaunchRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionRelaunchRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionRecoverRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionRecoverRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionRecoverRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionCreateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionCreateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Execution* Arena::CreateMaybeMessage< ::flyteidl::admin::Execution >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Execution >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionList* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LiteralMapBlob* Arena::CreateMaybeMessage< ::flyteidl::admin::LiteralMapBlob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LiteralMapBlob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::AbortMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::AbortMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::AbortMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionClosure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SystemMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::SystemMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SystemMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NotificationList* Arena::CreateMaybeMessage< ::flyteidl::admin::NotificationList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NotificationList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionTerminateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionTerminateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionTerminateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionTerminateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionTerminateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionTerminateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetDataRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetDataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetDataResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetDataResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionUpdateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionUpdateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionStateChangeDetails* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionStateChangeDetails >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionStateChangeDetails >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionUpdateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionUpdateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h new file mode 100644 index 0000000000..9665aff4c4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h @@ -0,0 +1,7168 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fexecution_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fexecution_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/admin/cluster_assignment.pb.h" +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/metrics.pb.h" +#include "flyteidl/core/security.pb.h" +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fexecution_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[23] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto(); +namespace flyteidl { +namespace admin { +class AbortMetadata; +class AbortMetadataDefaultTypeInternal; +extern AbortMetadataDefaultTypeInternal _AbortMetadata_default_instance_; +class Execution; +class ExecutionDefaultTypeInternal; +extern ExecutionDefaultTypeInternal _Execution_default_instance_; +class ExecutionClosure; +class ExecutionClosureDefaultTypeInternal; +extern ExecutionClosureDefaultTypeInternal _ExecutionClosure_default_instance_; +class ExecutionCreateRequest; +class ExecutionCreateRequestDefaultTypeInternal; +extern ExecutionCreateRequestDefaultTypeInternal _ExecutionCreateRequest_default_instance_; +class ExecutionCreateResponse; +class ExecutionCreateResponseDefaultTypeInternal; +extern ExecutionCreateResponseDefaultTypeInternal _ExecutionCreateResponse_default_instance_; +class ExecutionList; +class ExecutionListDefaultTypeInternal; +extern ExecutionListDefaultTypeInternal _ExecutionList_default_instance_; +class ExecutionMetadata; +class ExecutionMetadataDefaultTypeInternal; +extern ExecutionMetadataDefaultTypeInternal _ExecutionMetadata_default_instance_; +class ExecutionRecoverRequest; +class ExecutionRecoverRequestDefaultTypeInternal; +extern ExecutionRecoverRequestDefaultTypeInternal _ExecutionRecoverRequest_default_instance_; +class ExecutionRelaunchRequest; +class ExecutionRelaunchRequestDefaultTypeInternal; +extern ExecutionRelaunchRequestDefaultTypeInternal _ExecutionRelaunchRequest_default_instance_; +class ExecutionSpec; +class ExecutionSpecDefaultTypeInternal; +extern ExecutionSpecDefaultTypeInternal _ExecutionSpec_default_instance_; +class ExecutionStateChangeDetails; +class ExecutionStateChangeDetailsDefaultTypeInternal; +extern ExecutionStateChangeDetailsDefaultTypeInternal _ExecutionStateChangeDetails_default_instance_; +class ExecutionTerminateRequest; +class ExecutionTerminateRequestDefaultTypeInternal; +extern ExecutionTerminateRequestDefaultTypeInternal _ExecutionTerminateRequest_default_instance_; +class ExecutionTerminateResponse; +class ExecutionTerminateResponseDefaultTypeInternal; +extern ExecutionTerminateResponseDefaultTypeInternal _ExecutionTerminateResponse_default_instance_; +class ExecutionUpdateRequest; +class ExecutionUpdateRequestDefaultTypeInternal; +extern ExecutionUpdateRequestDefaultTypeInternal _ExecutionUpdateRequest_default_instance_; +class ExecutionUpdateResponse; +class ExecutionUpdateResponseDefaultTypeInternal; +extern ExecutionUpdateResponseDefaultTypeInternal _ExecutionUpdateResponse_default_instance_; +class LiteralMapBlob; +class LiteralMapBlobDefaultTypeInternal; +extern LiteralMapBlobDefaultTypeInternal _LiteralMapBlob_default_instance_; +class NotificationList; +class NotificationListDefaultTypeInternal; +extern NotificationListDefaultTypeInternal _NotificationList_default_instance_; +class SystemMetadata; +class SystemMetadataDefaultTypeInternal; +extern SystemMetadataDefaultTypeInternal _SystemMetadata_default_instance_; +class WorkflowExecutionGetDataRequest; +class WorkflowExecutionGetDataRequestDefaultTypeInternal; +extern WorkflowExecutionGetDataRequestDefaultTypeInternal _WorkflowExecutionGetDataRequest_default_instance_; +class WorkflowExecutionGetDataResponse; +class WorkflowExecutionGetDataResponseDefaultTypeInternal; +extern WorkflowExecutionGetDataResponseDefaultTypeInternal _WorkflowExecutionGetDataResponse_default_instance_; +class WorkflowExecutionGetMetricsRequest; +class WorkflowExecutionGetMetricsRequestDefaultTypeInternal; +extern WorkflowExecutionGetMetricsRequestDefaultTypeInternal _WorkflowExecutionGetMetricsRequest_default_instance_; +class WorkflowExecutionGetMetricsResponse; +class WorkflowExecutionGetMetricsResponseDefaultTypeInternal; +extern WorkflowExecutionGetMetricsResponseDefaultTypeInternal _WorkflowExecutionGetMetricsResponse_default_instance_; +class WorkflowExecutionGetRequest; +class WorkflowExecutionGetRequestDefaultTypeInternal; +extern WorkflowExecutionGetRequestDefaultTypeInternal _WorkflowExecutionGetRequest_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::AbortMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::AbortMetadata>(Arena*); +template<> ::flyteidl::admin::Execution* Arena::CreateMaybeMessage<::flyteidl::admin::Execution>(Arena*); +template<> ::flyteidl::admin::ExecutionClosure* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionClosure>(Arena*); +template<> ::flyteidl::admin::ExecutionCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionCreateRequest>(Arena*); +template<> ::flyteidl::admin::ExecutionCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionCreateResponse>(Arena*); +template<> ::flyteidl::admin::ExecutionList* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionList>(Arena*); +template<> ::flyteidl::admin::ExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionMetadata>(Arena*); +template<> ::flyteidl::admin::ExecutionRecoverRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionRecoverRequest>(Arena*); +template<> ::flyteidl::admin::ExecutionRelaunchRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionRelaunchRequest>(Arena*); +template<> ::flyteidl::admin::ExecutionSpec* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionSpec>(Arena*); +template<> ::flyteidl::admin::ExecutionStateChangeDetails* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionStateChangeDetails>(Arena*); +template<> ::flyteidl::admin::ExecutionTerminateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionTerminateRequest>(Arena*); +template<> ::flyteidl::admin::ExecutionTerminateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionTerminateResponse>(Arena*); +template<> ::flyteidl::admin::ExecutionUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionUpdateRequest>(Arena*); +template<> ::flyteidl::admin::ExecutionUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionUpdateResponse>(Arena*); +template<> ::flyteidl::admin::LiteralMapBlob* Arena::CreateMaybeMessage<::flyteidl::admin::LiteralMapBlob>(Arena*); +template<> ::flyteidl::admin::NotificationList* Arena::CreateMaybeMessage<::flyteidl::admin::NotificationList>(Arena*); +template<> ::flyteidl::admin::SystemMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::SystemMetadata>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionGetDataRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetDataRequest>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionGetDataResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetDataResponse>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetMetricsRequest>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetMetricsResponse>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetRequest>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum ExecutionMetadata_ExecutionMode { + ExecutionMetadata_ExecutionMode_MANUAL = 0, + ExecutionMetadata_ExecutionMode_SCHEDULED = 1, + ExecutionMetadata_ExecutionMode_SYSTEM = 2, + ExecutionMetadata_ExecutionMode_RELAUNCH = 3, + ExecutionMetadata_ExecutionMode_CHILD_WORKFLOW = 4, + ExecutionMetadata_ExecutionMode_RECOVERED = 5, + ExecutionMetadata_ExecutionMode_ExecutionMetadata_ExecutionMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ExecutionMetadata_ExecutionMode_ExecutionMetadata_ExecutionMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ExecutionMetadata_ExecutionMode_IsValid(int value); +const ExecutionMetadata_ExecutionMode ExecutionMetadata_ExecutionMode_ExecutionMode_MIN = ExecutionMetadata_ExecutionMode_MANUAL; +const ExecutionMetadata_ExecutionMode ExecutionMetadata_ExecutionMode_ExecutionMode_MAX = ExecutionMetadata_ExecutionMode_RECOVERED; +const int ExecutionMetadata_ExecutionMode_ExecutionMode_ARRAYSIZE = ExecutionMetadata_ExecutionMode_ExecutionMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ExecutionMetadata_ExecutionMode_descriptor(); +inline const ::std::string& ExecutionMetadata_ExecutionMode_Name(ExecutionMetadata_ExecutionMode value) { + return ::google::protobuf::internal::NameOfEnum( + ExecutionMetadata_ExecutionMode_descriptor(), value); +} +inline bool ExecutionMetadata_ExecutionMode_Parse( + const ::std::string& name, ExecutionMetadata_ExecutionMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ExecutionMetadata_ExecutionMode_descriptor(), name, value); +} +enum ExecutionState { + EXECUTION_ACTIVE = 0, + EXECUTION_ARCHIVED = 1, + ExecutionState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ExecutionState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ExecutionState_IsValid(int value); +const ExecutionState ExecutionState_MIN = EXECUTION_ACTIVE; +const ExecutionState ExecutionState_MAX = EXECUTION_ARCHIVED; +const int ExecutionState_ARRAYSIZE = ExecutionState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ExecutionState_descriptor(); +inline const ::std::string& ExecutionState_Name(ExecutionState value) { + return ::google::protobuf::internal::NameOfEnum( + ExecutionState_descriptor(), value); +} +inline bool ExecutionState_Parse( + const ::std::string& name, ExecutionState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ExecutionState_descriptor(), name, value); +} +// =================================================================== + +class ExecutionCreateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionCreateRequest) */ { + public: + ExecutionCreateRequest(); + virtual ~ExecutionCreateRequest(); + + ExecutionCreateRequest(const ExecutionCreateRequest& from); + + inline ExecutionCreateRequest& operator=(const ExecutionCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionCreateRequest(ExecutionCreateRequest&& from) noexcept + : ExecutionCreateRequest() { + *this = ::std::move(from); + } + + inline ExecutionCreateRequest& operator=(ExecutionCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionCreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ExecutionCreateRequest* other); + friend void swap(ExecutionCreateRequest& a, ExecutionCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionCreateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionCreateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionCreateRequest& from); + void MergeFrom(const ExecutionCreateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 3; + void clear_name(); + static const int kNameFieldNumber = 3; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.admin.ExecutionSpec spec = 4; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 4; + const ::flyteidl::admin::ExecutionSpec& spec() const; + ::flyteidl::admin::ExecutionSpec* release_spec(); + ::flyteidl::admin::ExecutionSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec); + + // .flyteidl.core.LiteralMap inputs = 5; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 5; + const ::flyteidl::core::LiteralMap& inputs() const; + ::flyteidl::core::LiteralMap* release_inputs(); + ::flyteidl::core::LiteralMap* mutable_inputs(); + void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::admin::ExecutionSpec* spec_; + ::flyteidl::core::LiteralMap* inputs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionRelaunchRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionRelaunchRequest) */ { + public: + ExecutionRelaunchRequest(); + virtual ~ExecutionRelaunchRequest(); + + ExecutionRelaunchRequest(const ExecutionRelaunchRequest& from); + + inline ExecutionRelaunchRequest& operator=(const ExecutionRelaunchRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionRelaunchRequest(ExecutionRelaunchRequest&& from) noexcept + : ExecutionRelaunchRequest() { + *this = ::std::move(from); + } + + inline ExecutionRelaunchRequest& operator=(ExecutionRelaunchRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionRelaunchRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionRelaunchRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionRelaunchRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(ExecutionRelaunchRequest* other); + friend void swap(ExecutionRelaunchRequest& a, ExecutionRelaunchRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionRelaunchRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionRelaunchRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionRelaunchRequest& from); + void MergeFrom(const ExecutionRelaunchRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionRelaunchRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 3; + void clear_name(); + static const int kNameFieldNumber = 3; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // bool overwrite_cache = 4; + void clear_overwrite_cache(); + static const int kOverwriteCacheFieldNumber = 4; + bool overwrite_cache() const; + void set_overwrite_cache(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + bool overwrite_cache_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionRecoverRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionRecoverRequest) */ { + public: + ExecutionRecoverRequest(); + virtual ~ExecutionRecoverRequest(); + + ExecutionRecoverRequest(const ExecutionRecoverRequest& from); + + inline ExecutionRecoverRequest& operator=(const ExecutionRecoverRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionRecoverRequest(ExecutionRecoverRequest&& from) noexcept + : ExecutionRecoverRequest() { + *this = ::std::move(from); + } + + inline ExecutionRecoverRequest& operator=(ExecutionRecoverRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionRecoverRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionRecoverRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionRecoverRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(ExecutionRecoverRequest* other); + friend void swap(ExecutionRecoverRequest& a, ExecutionRecoverRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionRecoverRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionRecoverRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionRecoverRequest& from); + void MergeFrom(const ExecutionRecoverRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionRecoverRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::flyteidl::admin::ExecutionMetadata& metadata() const; + ::flyteidl::admin::ExecutionMetadata* release_metadata(); + ::flyteidl::admin::ExecutionMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRecoverRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + ::flyteidl::admin::ExecutionMetadata* metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionCreateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionCreateResponse) */ { + public: + ExecutionCreateResponse(); + virtual ~ExecutionCreateResponse(); + + ExecutionCreateResponse(const ExecutionCreateResponse& from); + + inline ExecutionCreateResponse& operator=(const ExecutionCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionCreateResponse(ExecutionCreateResponse&& from) noexcept + : ExecutionCreateResponse() { + *this = ::std::move(from); + } + + inline ExecutionCreateResponse& operator=(ExecutionCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_ExecutionCreateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ExecutionCreateResponse* other); + friend void swap(ExecutionCreateResponse& a, ExecutionCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionCreateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionCreateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionCreateResponse& from); + void MergeFrom(const ExecutionCreateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetRequest) */ { + public: + WorkflowExecutionGetRequest(); + virtual ~WorkflowExecutionGetRequest(); + + WorkflowExecutionGetRequest(const WorkflowExecutionGetRequest& from); + + inline WorkflowExecutionGetRequest& operator=(const WorkflowExecutionGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetRequest(WorkflowExecutionGetRequest&& from) noexcept + : WorkflowExecutionGetRequest() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetRequest& operator=(WorkflowExecutionGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(WorkflowExecutionGetRequest* other); + friend void swap(WorkflowExecutionGetRequest& a, WorkflowExecutionGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionGetRequest& from); + void MergeFrom(const WorkflowExecutionGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class Execution final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Execution) */ { + public: + Execution(); + virtual ~Execution(); + + Execution(const Execution& from); + + inline Execution& operator=(const Execution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Execution(Execution&& from) noexcept + : Execution() { + *this = ::std::move(from); + } + + inline Execution& operator=(Execution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Execution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Execution* internal_default_instance() { + return reinterpret_cast( + &_Execution_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(Execution* other); + friend void swap(Execution& a, Execution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Execution* New() const final { + return CreateMaybeMessage(nullptr); + } + + Execution* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Execution& from); + void MergeFrom(const Execution& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Execution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // .flyteidl.admin.ExecutionSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::ExecutionSpec& spec() const; + ::flyteidl::admin::ExecutionSpec* release_spec(); + ::flyteidl::admin::ExecutionSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec); + + // .flyteidl.admin.ExecutionClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::ExecutionClosure& closure() const; + ::flyteidl::admin::ExecutionClosure* release_closure(); + ::flyteidl::admin::ExecutionClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::ExecutionClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + ::flyteidl::admin::ExecutionSpec* spec_; + ::flyteidl::admin::ExecutionClosure* closure_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionList) */ { + public: + ExecutionList(); + virtual ~ExecutionList(); + + ExecutionList(const ExecutionList& from); + + inline ExecutionList& operator=(const ExecutionList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionList(ExecutionList&& from) noexcept + : ExecutionList() { + *this = ::std::move(from); + } + + inline ExecutionList& operator=(ExecutionList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionList* internal_default_instance() { + return reinterpret_cast( + &_ExecutionList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ExecutionList* other); + friend void swap(ExecutionList& a, ExecutionList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionList* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionList& from); + void MergeFrom(const ExecutionList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Execution executions = 1; + int executions_size() const; + void clear_executions(); + static const int kExecutionsFieldNumber = 1; + ::flyteidl::admin::Execution* mutable_executions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >* + mutable_executions(); + const ::flyteidl::admin::Execution& executions(int index) const; + ::flyteidl::admin::Execution* add_executions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >& + executions() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution > executions_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class LiteralMapBlob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LiteralMapBlob) */ { + public: + LiteralMapBlob(); + virtual ~LiteralMapBlob(); + + LiteralMapBlob(const LiteralMapBlob& from); + + inline LiteralMapBlob& operator=(const LiteralMapBlob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralMapBlob(LiteralMapBlob&& from) noexcept + : LiteralMapBlob() { + *this = ::std::move(from); + } + + inline LiteralMapBlob& operator=(LiteralMapBlob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LiteralMapBlob& default_instance(); + + enum DataCase { + kValues = 1, + kUri = 2, + DATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralMapBlob* internal_default_instance() { + return reinterpret_cast( + &_LiteralMapBlob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(LiteralMapBlob* other); + friend void swap(LiteralMapBlob& a, LiteralMapBlob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralMapBlob* New() const final { + return CreateMaybeMessage(nullptr); + } + + LiteralMapBlob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiteralMapBlob& from); + void MergeFrom(const LiteralMapBlob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiteralMapBlob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_values() const; + PROTOBUF_DEPRECATED void clear_values(); + PROTOBUF_DEPRECATED static const int kValuesFieldNumber = 1; + PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& values() const; + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_values(); + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_values(); + PROTOBUF_DEPRECATED void set_allocated_values(::flyteidl::core::LiteralMap* values); + + // string uri = 2; + private: + bool has_uri() const; + public: + void clear_uri(); + static const int kUriFieldNumber = 2; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) + private: + class HasBitSetters; + void set_has_values(); + void set_has_uri(); + + inline bool has_data() const; + inline void clear_has_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union DataUnion { + DataUnion() {} + ::flyteidl::core::LiteralMap* values_; + ::google::protobuf::internal::ArenaStringPtr uri_; + } data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class AbortMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.AbortMetadata) */ { + public: + AbortMetadata(); + virtual ~AbortMetadata(); + + AbortMetadata(const AbortMetadata& from); + + inline AbortMetadata& operator=(const AbortMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AbortMetadata(AbortMetadata&& from) noexcept + : AbortMetadata() { + *this = ::std::move(from); + } + + inline AbortMetadata& operator=(AbortMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AbortMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AbortMetadata* internal_default_instance() { + return reinterpret_cast( + &_AbortMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(AbortMetadata* other); + friend void swap(AbortMetadata& a, AbortMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AbortMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + AbortMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AbortMetadata& from); + void MergeFrom(const AbortMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AbortMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string cause = 1; + void clear_cause(); + static const int kCauseFieldNumber = 1; + const ::std::string& cause() const; + void set_cause(const ::std::string& value); + #if LANG_CXX11 + void set_cause(::std::string&& value); + #endif + void set_cause(const char* value); + void set_cause(const char* value, size_t size); + ::std::string* mutable_cause(); + ::std::string* release_cause(); + void set_allocated_cause(::std::string* cause); + + // string principal = 2; + void clear_principal(); + static const int kPrincipalFieldNumber = 2; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cause_; + ::google::protobuf::internal::ArenaStringPtr principal_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionClosure) */ { + public: + ExecutionClosure(); + virtual ~ExecutionClosure(); + + ExecutionClosure(const ExecutionClosure& from); + + inline ExecutionClosure& operator=(const ExecutionClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionClosure(ExecutionClosure&& from) noexcept + : ExecutionClosure() { + *this = ::std::move(from); + } + + inline ExecutionClosure& operator=(ExecutionClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionClosure& default_instance(); + + enum OutputResultCase { + kOutputs = 1, + kError = 2, + kAbortCause = 10, + kAbortMetadata = 12, + kOutputData = 13, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionClosure* internal_default_instance() { + return reinterpret_cast( + &_ExecutionClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(ExecutionClosure* other); + friend void swap(ExecutionClosure& a, ExecutionClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionClosure& from); + void MergeFrom(const ExecutionClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Notification notifications = 9; + int notifications_size() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 9; + ::flyteidl::admin::Notification* mutable_notifications(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* + mutable_notifications(); + const ::flyteidl::admin::Notification& notifications(int index) const; + ::flyteidl::admin::Notification* add_notifications(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& + notifications() const; + + // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_computed_inputs() const; + PROTOBUF_DEPRECATED void clear_computed_inputs(); + PROTOBUF_DEPRECATED static const int kComputedInputsFieldNumber = 3; + PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& computed_inputs() const; + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_computed_inputs(); + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_computed_inputs(); + PROTOBUF_DEPRECATED void set_allocated_computed_inputs(::flyteidl::core::LiteralMap* computed_inputs); + + // .google.protobuf.Timestamp started_at = 5; + bool has_started_at() const; + void clear_started_at(); + static const int kStartedAtFieldNumber = 5; + const ::google::protobuf::Timestamp& started_at() const; + ::google::protobuf::Timestamp* release_started_at(); + ::google::protobuf::Timestamp* mutable_started_at(); + void set_allocated_started_at(::google::protobuf::Timestamp* started_at); + + // .google.protobuf.Duration duration = 6; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 6; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + // .google.protobuf.Timestamp created_at = 7; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 8; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 8; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .flyteidl.core.Identifier workflow_id = 11; + bool has_workflow_id() const; + void clear_workflow_id(); + static const int kWorkflowIdFieldNumber = 11; + const ::flyteidl::core::Identifier& workflow_id() const; + ::flyteidl::core::Identifier* release_workflow_id(); + ::flyteidl::core::Identifier* mutable_workflow_id(); + void set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id); + + // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + bool has_state_change_details() const; + void clear_state_change_details(); + static const int kStateChangeDetailsFieldNumber = 14; + const ::flyteidl::admin::ExecutionStateChangeDetails& state_change_details() const; + ::flyteidl::admin::ExecutionStateChangeDetails* release_state_change_details(); + ::flyteidl::admin::ExecutionStateChangeDetails* mutable_state_change_details(); + void set_allocated_state_change_details(::flyteidl::admin::ExecutionStateChangeDetails* state_change_details); + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + void clear_phase(); + static const int kPhaseFieldNumber = 4; + ::flyteidl::core::WorkflowExecution_Phase phase() const; + void set_phase(::flyteidl::core::WorkflowExecution_Phase value); + + // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_outputs() const; + PROTOBUF_DEPRECATED void clear_outputs(); + PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 1; + PROTOBUF_DEPRECATED const ::flyteidl::admin::LiteralMapBlob& outputs() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::LiteralMapBlob* release_outputs(); + PROTOBUF_DEPRECATED ::flyteidl::admin::LiteralMapBlob* mutable_outputs(); + PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::LiteralMapBlob* outputs); + + // .flyteidl.core.ExecutionError error = 2; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 2; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // string abort_cause = 10 [deprecated = true]; + private: + bool has_abort_cause() const; + public: + PROTOBUF_DEPRECATED void clear_abort_cause(); + PROTOBUF_DEPRECATED static const int kAbortCauseFieldNumber = 10; + PROTOBUF_DEPRECATED const ::std::string& abort_cause() const; + PROTOBUF_DEPRECATED void set_abort_cause(const ::std::string& value); + #if LANG_CXX11 + PROTOBUF_DEPRECATED void set_abort_cause(::std::string&& value); + #endif + PROTOBUF_DEPRECATED void set_abort_cause(const char* value); + PROTOBUF_DEPRECATED void set_abort_cause(const char* value, size_t size); + PROTOBUF_DEPRECATED ::std::string* mutable_abort_cause(); + PROTOBUF_DEPRECATED ::std::string* release_abort_cause(); + PROTOBUF_DEPRECATED void set_allocated_abort_cause(::std::string* abort_cause); + + // .flyteidl.admin.AbortMetadata abort_metadata = 12; + bool has_abort_metadata() const; + void clear_abort_metadata(); + static const int kAbortMetadataFieldNumber = 12; + const ::flyteidl::admin::AbortMetadata& abort_metadata() const; + ::flyteidl::admin::AbortMetadata* release_abort_metadata(); + ::flyteidl::admin::AbortMetadata* mutable_abort_metadata(); + void set_allocated_abort_metadata(::flyteidl::admin::AbortMetadata* abort_metadata); + + // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_output_data() const; + PROTOBUF_DEPRECATED void clear_output_data(); + PROTOBUF_DEPRECATED static const int kOutputDataFieldNumber = 13; + PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& output_data() const; + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_output_data(); + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_output_data(); + PROTOBUF_DEPRECATED void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); + + void clear_output_result(); + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) + private: + class HasBitSetters; + void set_has_outputs(); + void set_has_error(); + void set_has_abort_cause(); + void set_has_abort_metadata(); + void set_has_output_data(); + + inline bool has_output_result() const; + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; + ::flyteidl::core::LiteralMap* computed_inputs_; + ::google::protobuf::Timestamp* started_at_; + ::google::protobuf::Duration* duration_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + ::flyteidl::core::Identifier* workflow_id_; + ::flyteidl::admin::ExecutionStateChangeDetails* state_change_details_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::flyteidl::admin::LiteralMapBlob* outputs_; + ::flyteidl::core::ExecutionError* error_; + ::google::protobuf::internal::ArenaStringPtr abort_cause_; + ::flyteidl::admin::AbortMetadata* abort_metadata_; + ::flyteidl::core::LiteralMap* output_data_; + } output_result_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class SystemMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SystemMetadata) */ { + public: + SystemMetadata(); + virtual ~SystemMetadata(); + + SystemMetadata(const SystemMetadata& from); + + inline SystemMetadata& operator=(const SystemMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SystemMetadata(SystemMetadata&& from) noexcept + : SystemMetadata() { + *this = ::std::move(from); + } + + inline SystemMetadata& operator=(SystemMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SystemMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SystemMetadata* internal_default_instance() { + return reinterpret_cast( + &_SystemMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(SystemMetadata* other); + friend void swap(SystemMetadata& a, SystemMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SystemMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + SystemMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SystemMetadata& from); + void MergeFrom(const SystemMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SystemMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string execution_cluster = 1; + void clear_execution_cluster(); + static const int kExecutionClusterFieldNumber = 1; + const ::std::string& execution_cluster() const; + void set_execution_cluster(const ::std::string& value); + #if LANG_CXX11 + void set_execution_cluster(::std::string&& value); + #endif + void set_execution_cluster(const char* value); + void set_execution_cluster(const char* value, size_t size); + ::std::string* mutable_execution_cluster(); + ::std::string* release_execution_cluster(); + void set_allocated_execution_cluster(::std::string* execution_cluster); + + // string namespace = 2; + void clear_namespace_(); + static const int kNamespaceFieldNumber = 2; + const ::std::string& namespace_() const; + void set_namespace_(const ::std::string& value); + #if LANG_CXX11 + void set_namespace_(::std::string&& value); + #endif + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + ::std::string* mutable_namespace_(); + ::std::string* release_namespace_(); + void set_allocated_namespace_(::std::string* namespace_); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr execution_cluster_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionMetadata) */ { + public: + ExecutionMetadata(); + virtual ~ExecutionMetadata(); + + ExecutionMetadata(const ExecutionMetadata& from); + + inline ExecutionMetadata& operator=(const ExecutionMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionMetadata(ExecutionMetadata&& from) noexcept + : ExecutionMetadata() { + *this = ::std::move(from); + } + + inline ExecutionMetadata& operator=(ExecutionMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionMetadata* internal_default_instance() { + return reinterpret_cast( + &_ExecutionMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(ExecutionMetadata* other); + friend void swap(ExecutionMetadata& a, ExecutionMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionMetadata& from); + void MergeFrom(const ExecutionMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ExecutionMetadata_ExecutionMode ExecutionMode; + static const ExecutionMode MANUAL = + ExecutionMetadata_ExecutionMode_MANUAL; + static const ExecutionMode SCHEDULED = + ExecutionMetadata_ExecutionMode_SCHEDULED; + static const ExecutionMode SYSTEM = + ExecutionMetadata_ExecutionMode_SYSTEM; + static const ExecutionMode RELAUNCH = + ExecutionMetadata_ExecutionMode_RELAUNCH; + static const ExecutionMode CHILD_WORKFLOW = + ExecutionMetadata_ExecutionMode_CHILD_WORKFLOW; + static const ExecutionMode RECOVERED = + ExecutionMetadata_ExecutionMode_RECOVERED; + static inline bool ExecutionMode_IsValid(int value) { + return ExecutionMetadata_ExecutionMode_IsValid(value); + } + static const ExecutionMode ExecutionMode_MIN = + ExecutionMetadata_ExecutionMode_ExecutionMode_MIN; + static const ExecutionMode ExecutionMode_MAX = + ExecutionMetadata_ExecutionMode_ExecutionMode_MAX; + static const int ExecutionMode_ARRAYSIZE = + ExecutionMetadata_ExecutionMode_ExecutionMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ExecutionMode_descriptor() { + return ExecutionMetadata_ExecutionMode_descriptor(); + } + static inline const ::std::string& ExecutionMode_Name(ExecutionMode value) { + return ExecutionMetadata_ExecutionMode_Name(value); + } + static inline bool ExecutionMode_Parse(const ::std::string& name, + ExecutionMode* value) { + return ExecutionMetadata_ExecutionMode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string principal = 2; + void clear_principal(); + static const int kPrincipalFieldNumber = 2; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + + // .google.protobuf.Timestamp scheduled_at = 4; + bool has_scheduled_at() const; + void clear_scheduled_at(); + static const int kScheduledAtFieldNumber = 4; + const ::google::protobuf::Timestamp& scheduled_at() const; + ::google::protobuf::Timestamp* release_scheduled_at(); + ::google::protobuf::Timestamp* mutable_scheduled_at(); + void set_allocated_scheduled_at(::google::protobuf::Timestamp* scheduled_at); + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + bool has_parent_node_execution() const; + void clear_parent_node_execution(); + static const int kParentNodeExecutionFieldNumber = 5; + const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution() const; + ::flyteidl::core::NodeExecutionIdentifier* release_parent_node_execution(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_parent_node_execution(); + void set_allocated_parent_node_execution(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution); + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + bool has_reference_execution() const; + void clear_reference_execution(); + static const int kReferenceExecutionFieldNumber = 16; + const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_reference_execution(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_reference_execution(); + void set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution); + + // .flyteidl.admin.SystemMetadata system_metadata = 17; + bool has_system_metadata() const; + void clear_system_metadata(); + static const int kSystemMetadataFieldNumber = 17; + const ::flyteidl::admin::SystemMetadata& system_metadata() const; + ::flyteidl::admin::SystemMetadata* release_system_metadata(); + ::flyteidl::admin::SystemMetadata* mutable_system_metadata(); + void set_allocated_system_metadata(::flyteidl::admin::SystemMetadata* system_metadata); + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + void clear_mode(); + static const int kModeFieldNumber = 1; + ::flyteidl::admin::ExecutionMetadata_ExecutionMode mode() const; + void set_mode(::flyteidl::admin::ExecutionMetadata_ExecutionMode value); + + // uint32 nesting = 3; + void clear_nesting(); + static const int kNestingFieldNumber = 3; + ::google::protobuf::uint32 nesting() const; + void set_nesting(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr principal_; + ::google::protobuf::Timestamp* scheduled_at_; + ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_; + ::flyteidl::core::WorkflowExecutionIdentifier* reference_execution_; + ::flyteidl::admin::SystemMetadata* system_metadata_; + int mode_; + ::google::protobuf::uint32 nesting_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NotificationList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NotificationList) */ { + public: + NotificationList(); + virtual ~NotificationList(); + + NotificationList(const NotificationList& from); + + inline NotificationList& operator=(const NotificationList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NotificationList(NotificationList&& from) noexcept + : NotificationList() { + *this = ::std::move(from); + } + + inline NotificationList& operator=(NotificationList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NotificationList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NotificationList* internal_default_instance() { + return reinterpret_cast( + &_NotificationList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(NotificationList* other); + friend void swap(NotificationList& a, NotificationList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NotificationList* New() const final { + return CreateMaybeMessage(nullptr); + } + + NotificationList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NotificationList& from); + void MergeFrom(const NotificationList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NotificationList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Notification notifications = 1; + int notifications_size() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 1; + ::flyteidl::admin::Notification* mutable_notifications(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* + mutable_notifications(); + const ::flyteidl::admin::Notification& notifications(int index) const; + ::flyteidl::admin::Notification* add_notifications(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& + notifications() const; + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionSpec) */ { + public: + ExecutionSpec(); + virtual ~ExecutionSpec(); + + ExecutionSpec(const ExecutionSpec& from); + + inline ExecutionSpec& operator=(const ExecutionSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionSpec(ExecutionSpec&& from) noexcept + : ExecutionSpec() { + *this = ::std::move(from); + } + + inline ExecutionSpec& operator=(ExecutionSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionSpec& default_instance(); + + enum NotificationOverridesCase { + kNotifications = 5, + kDisableAll = 6, + NOTIFICATION_OVERRIDES_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionSpec* internal_default_instance() { + return reinterpret_cast( + &_ExecutionSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(ExecutionSpec* other); + friend void swap(ExecutionSpec& a, ExecutionSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionSpec& from); + void MergeFrom(const ExecutionSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string tags = 24; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 24; + const ::std::string& tags(int index) const; + ::std::string* mutable_tags(int index); + void set_tags(int index, const ::std::string& value); + #if LANG_CXX11 + void set_tags(int index, ::std::string&& value); + #endif + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + ::std::string* add_tags(); + void add_tags(const ::std::string& value); + #if LANG_CXX11 + void add_tags(::std::string&& value); + #endif + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); + + // .flyteidl.core.Identifier launch_plan = 1; + bool has_launch_plan() const; + void clear_launch_plan(); + static const int kLaunchPlanFieldNumber = 1; + const ::flyteidl::core::Identifier& launch_plan() const; + ::flyteidl::core::Identifier* release_launch_plan(); + ::flyteidl::core::Identifier* mutable_launch_plan(); + void set_allocated_launch_plan(::flyteidl::core::Identifier* launch_plan); + + // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_inputs() const; + PROTOBUF_DEPRECATED void clear_inputs(); + PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 2; + PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& inputs() const; + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_inputs(); + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_inputs(); + PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::flyteidl::admin::ExecutionMetadata& metadata() const; + ::flyteidl::admin::ExecutionMetadata* release_metadata(); + ::flyteidl::admin::ExecutionMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata); + + // .flyteidl.admin.Labels labels = 7; + bool has_labels() const; + void clear_labels(); + static const int kLabelsFieldNumber = 7; + const ::flyteidl::admin::Labels& labels() const; + ::flyteidl::admin::Labels* release_labels(); + ::flyteidl::admin::Labels* mutable_labels(); + void set_allocated_labels(::flyteidl::admin::Labels* labels); + + // .flyteidl.admin.Annotations annotations = 8; + bool has_annotations() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 8; + const ::flyteidl::admin::Annotations& annotations() const; + ::flyteidl::admin::Annotations* release_annotations(); + ::flyteidl::admin::Annotations* mutable_annotations(); + void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); + + // .flyteidl.core.SecurityContext security_context = 10; + bool has_security_context() const; + void clear_security_context(); + static const int kSecurityContextFieldNumber = 10; + const ::flyteidl::core::SecurityContext& security_context() const; + ::flyteidl::core::SecurityContext* release_security_context(); + ::flyteidl::core::SecurityContext* mutable_security_context(); + void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); + + // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_auth_role() const; + PROTOBUF_DEPRECATED void clear_auth_role(); + PROTOBUF_DEPRECATED static const int kAuthRoleFieldNumber = 16; + PROTOBUF_DEPRECATED const ::flyteidl::admin::AuthRole& auth_role() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* release_auth_role(); + PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* mutable_auth_role(); + PROTOBUF_DEPRECATED void set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role); + + // .flyteidl.core.QualityOfService quality_of_service = 17; + bool has_quality_of_service() const; + void clear_quality_of_service(); + static const int kQualityOfServiceFieldNumber = 17; + const ::flyteidl::core::QualityOfService& quality_of_service() const; + ::flyteidl::core::QualityOfService* release_quality_of_service(); + ::flyteidl::core::QualityOfService* mutable_quality_of_service(); + void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + bool has_raw_output_data_config() const; + void clear_raw_output_data_config(); + static const int kRawOutputDataConfigFieldNumber = 19; + const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config() const; + ::flyteidl::admin::RawOutputDataConfig* release_raw_output_data_config(); + ::flyteidl::admin::RawOutputDataConfig* mutable_raw_output_data_config(); + void set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config); + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + bool has_cluster_assignment() const; + void clear_cluster_assignment(); + static const int kClusterAssignmentFieldNumber = 20; + const ::flyteidl::admin::ClusterAssignment& cluster_assignment() const; + ::flyteidl::admin::ClusterAssignment* release_cluster_assignment(); + ::flyteidl::admin::ClusterAssignment* mutable_cluster_assignment(); + void set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment); + + // .google.protobuf.BoolValue interruptible = 21; + bool has_interruptible() const; + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 21; + const ::google::protobuf::BoolValue& interruptible() const; + ::google::protobuf::BoolValue* release_interruptible(); + ::google::protobuf::BoolValue* mutable_interruptible(); + void set_allocated_interruptible(::google::protobuf::BoolValue* interruptible); + + // .flyteidl.admin.Envs envs = 23; + bool has_envs() const; + void clear_envs(); + static const int kEnvsFieldNumber = 23; + const ::flyteidl::admin::Envs& envs() const; + ::flyteidl::admin::Envs* release_envs(); + ::flyteidl::admin::Envs* mutable_envs(); + void set_allocated_envs(::flyteidl::admin::Envs* envs); + + // int32 max_parallelism = 18; + void clear_max_parallelism(); + static const int kMaxParallelismFieldNumber = 18; + ::google::protobuf::int32 max_parallelism() const; + void set_max_parallelism(::google::protobuf::int32 value); + + // bool overwrite_cache = 22; + void clear_overwrite_cache(); + static const int kOverwriteCacheFieldNumber = 22; + bool overwrite_cache() const; + void set_overwrite_cache(bool value); + + // .flyteidl.admin.NotificationList notifications = 5; + bool has_notifications() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 5; + const ::flyteidl::admin::NotificationList& notifications() const; + ::flyteidl::admin::NotificationList* release_notifications(); + ::flyteidl::admin::NotificationList* mutable_notifications(); + void set_allocated_notifications(::flyteidl::admin::NotificationList* notifications); + + // bool disable_all = 6; + private: + bool has_disable_all() const; + public: + void clear_disable_all(); + static const int kDisableAllFieldNumber = 6; + bool disable_all() const; + void set_disable_all(bool value); + + void clear_notification_overrides(); + NotificationOverridesCase notification_overrides_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) + private: + class HasBitSetters; + void set_has_notifications(); + void set_has_disable_all(); + + inline bool has_notification_overrides() const; + inline void clear_has_notification_overrides(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> tags_; + ::flyteidl::core::Identifier* launch_plan_; + ::flyteidl::core::LiteralMap* inputs_; + ::flyteidl::admin::ExecutionMetadata* metadata_; + ::flyteidl::admin::Labels* labels_; + ::flyteidl::admin::Annotations* annotations_; + ::flyteidl::core::SecurityContext* security_context_; + ::flyteidl::admin::AuthRole* auth_role_; + ::flyteidl::core::QualityOfService* quality_of_service_; + ::flyteidl::admin::RawOutputDataConfig* raw_output_data_config_; + ::flyteidl::admin::ClusterAssignment* cluster_assignment_; + ::google::protobuf::BoolValue* interruptible_; + ::flyteidl::admin::Envs* envs_; + ::google::protobuf::int32 max_parallelism_; + bool overwrite_cache_; + union NotificationOverridesUnion { + NotificationOverridesUnion() {} + ::flyteidl::admin::NotificationList* notifications_; + bool disable_all_; + } notification_overrides_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionTerminateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionTerminateRequest) */ { + public: + ExecutionTerminateRequest(); + virtual ~ExecutionTerminateRequest(); + + ExecutionTerminateRequest(const ExecutionTerminateRequest& from); + + inline ExecutionTerminateRequest& operator=(const ExecutionTerminateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionTerminateRequest(ExecutionTerminateRequest&& from) noexcept + : ExecutionTerminateRequest() { + *this = ::std::move(from); + } + + inline ExecutionTerminateRequest& operator=(ExecutionTerminateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionTerminateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionTerminateRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionTerminateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(ExecutionTerminateRequest* other); + friend void swap(ExecutionTerminateRequest& a, ExecutionTerminateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionTerminateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionTerminateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionTerminateRequest& from); + void MergeFrom(const ExecutionTerminateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionTerminateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string cause = 2; + void clear_cause(); + static const int kCauseFieldNumber = 2; + const ::std::string& cause() const; + void set_cause(const ::std::string& value); + #if LANG_CXX11 + void set_cause(::std::string&& value); + #endif + void set_cause(const char* value); + void set_cause(const char* value, size_t size); + ::std::string* mutable_cause(); + ::std::string* release_cause(); + void set_allocated_cause(::std::string* cause); + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cause_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionTerminateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionTerminateResponse) */ { + public: + ExecutionTerminateResponse(); + virtual ~ExecutionTerminateResponse(); + + ExecutionTerminateResponse(const ExecutionTerminateResponse& from); + + inline ExecutionTerminateResponse& operator=(const ExecutionTerminateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionTerminateResponse(ExecutionTerminateResponse&& from) noexcept + : ExecutionTerminateResponse() { + *this = ::std::move(from); + } + + inline ExecutionTerminateResponse& operator=(ExecutionTerminateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionTerminateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionTerminateResponse* internal_default_instance() { + return reinterpret_cast( + &_ExecutionTerminateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(ExecutionTerminateResponse* other); + friend void swap(ExecutionTerminateResponse& a, ExecutionTerminateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionTerminateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionTerminateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionTerminateResponse& from); + void MergeFrom(const ExecutionTerminateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionTerminateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetDataRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetDataRequest) */ { + public: + WorkflowExecutionGetDataRequest(); + virtual ~WorkflowExecutionGetDataRequest(); + + WorkflowExecutionGetDataRequest(const WorkflowExecutionGetDataRequest& from); + + inline WorkflowExecutionGetDataRequest& operator=(const WorkflowExecutionGetDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetDataRequest(WorkflowExecutionGetDataRequest&& from) noexcept + : WorkflowExecutionGetDataRequest() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetDataRequest& operator=(WorkflowExecutionGetDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionGetDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetDataRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetDataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(WorkflowExecutionGetDataRequest* other); + friend void swap(WorkflowExecutionGetDataRequest& a, WorkflowExecutionGetDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetDataRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionGetDataRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionGetDataRequest& from); + void MergeFrom(const WorkflowExecutionGetDataRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionGetDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetDataResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetDataResponse) */ { + public: + WorkflowExecutionGetDataResponse(); + virtual ~WorkflowExecutionGetDataResponse(); + + WorkflowExecutionGetDataResponse(const WorkflowExecutionGetDataResponse& from); + + inline WorkflowExecutionGetDataResponse& operator=(const WorkflowExecutionGetDataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetDataResponse(WorkflowExecutionGetDataResponse&& from) noexcept + : WorkflowExecutionGetDataResponse() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetDataResponse& operator=(WorkflowExecutionGetDataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionGetDataResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetDataResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetDataResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(WorkflowExecutionGetDataResponse* other); + friend void swap(WorkflowExecutionGetDataResponse& a, WorkflowExecutionGetDataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetDataResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionGetDataResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionGetDataResponse& from); + void MergeFrom(const WorkflowExecutionGetDataResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionGetDataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_outputs() const; + PROTOBUF_DEPRECATED void clear_outputs(); + PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 1; + PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& outputs() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_outputs(); + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_outputs(); + PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); + + // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_inputs() const; + PROTOBUF_DEPRECATED void clear_inputs(); + PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 2; + PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& inputs() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_inputs(); + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_inputs(); + PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); + + // .flyteidl.core.LiteralMap full_inputs = 3; + bool has_full_inputs() const; + void clear_full_inputs(); + static const int kFullInputsFieldNumber = 3; + const ::flyteidl::core::LiteralMap& full_inputs() const; + ::flyteidl::core::LiteralMap* release_full_inputs(); + ::flyteidl::core::LiteralMap* mutable_full_inputs(); + void set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs); + + // .flyteidl.core.LiteralMap full_outputs = 4; + bool has_full_outputs() const; + void clear_full_outputs(); + static const int kFullOutputsFieldNumber = 4; + const ::flyteidl::core::LiteralMap& full_outputs() const; + ::flyteidl::core::LiteralMap* release_full_outputs(); + ::flyteidl::core::LiteralMap* mutable_full_outputs(); + void set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::UrlBlob* outputs_; + ::flyteidl::admin::UrlBlob* inputs_; + ::flyteidl::core::LiteralMap* full_inputs_; + ::flyteidl::core::LiteralMap* full_outputs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionUpdateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionUpdateRequest) */ { + public: + ExecutionUpdateRequest(); + virtual ~ExecutionUpdateRequest(); + + ExecutionUpdateRequest(const ExecutionUpdateRequest& from); + + inline ExecutionUpdateRequest& operator=(const ExecutionUpdateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionUpdateRequest(ExecutionUpdateRequest&& from) noexcept + : ExecutionUpdateRequest() { + *this = ::std::move(from); + } + + inline ExecutionUpdateRequest& operator=(ExecutionUpdateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionUpdateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionUpdateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(ExecutionUpdateRequest* other); + friend void swap(ExecutionUpdateRequest& a, ExecutionUpdateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionUpdateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionUpdateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionUpdateRequest& from); + void MergeFrom(const ExecutionUpdateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionUpdateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // .flyteidl.admin.ExecutionState state = 2; + void clear_state(); + static const int kStateFieldNumber = 2; + ::flyteidl::admin::ExecutionState state() const; + void set_state(::flyteidl::admin::ExecutionState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionStateChangeDetails final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionStateChangeDetails) */ { + public: + ExecutionStateChangeDetails(); + virtual ~ExecutionStateChangeDetails(); + + ExecutionStateChangeDetails(const ExecutionStateChangeDetails& from); + + inline ExecutionStateChangeDetails& operator=(const ExecutionStateChangeDetails& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionStateChangeDetails(ExecutionStateChangeDetails&& from) noexcept + : ExecutionStateChangeDetails() { + *this = ::std::move(from); + } + + inline ExecutionStateChangeDetails& operator=(ExecutionStateChangeDetails&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionStateChangeDetails& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionStateChangeDetails* internal_default_instance() { + return reinterpret_cast( + &_ExecutionStateChangeDetails_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(ExecutionStateChangeDetails* other); + friend void swap(ExecutionStateChangeDetails& a, ExecutionStateChangeDetails& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionStateChangeDetails* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionStateChangeDetails* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionStateChangeDetails& from); + void MergeFrom(const ExecutionStateChangeDetails& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionStateChangeDetails* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string principal = 3; + void clear_principal(); + static const int kPrincipalFieldNumber = 3; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + + // .google.protobuf.Timestamp occurred_at = 2; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 2; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // .flyteidl.admin.ExecutionState state = 1; + void clear_state(); + static const int kStateFieldNumber = 1; + ::flyteidl::admin::ExecutionState state() const; + void set_state(::flyteidl::admin::ExecutionState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionStateChangeDetails) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr principal_; + ::google::protobuf::Timestamp* occurred_at_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionUpdateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionUpdateResponse) */ { + public: + ExecutionUpdateResponse(); + virtual ~ExecutionUpdateResponse(); + + ExecutionUpdateResponse(const ExecutionUpdateResponse& from); + + inline ExecutionUpdateResponse& operator=(const ExecutionUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionUpdateResponse(ExecutionUpdateResponse&& from) noexcept + : ExecutionUpdateResponse() { + *this = ::std::move(from); + } + + inline ExecutionUpdateResponse& operator=(ExecutionUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_ExecutionUpdateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(ExecutionUpdateResponse* other); + friend void swap(ExecutionUpdateResponse& a, ExecutionUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionUpdateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionUpdateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionUpdateResponse& from); + void MergeFrom(const ExecutionUpdateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetMetricsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetMetricsRequest) */ { + public: + WorkflowExecutionGetMetricsRequest(); + virtual ~WorkflowExecutionGetMetricsRequest(); + + WorkflowExecutionGetMetricsRequest(const WorkflowExecutionGetMetricsRequest& from); + + inline WorkflowExecutionGetMetricsRequest& operator=(const WorkflowExecutionGetMetricsRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetMetricsRequest(WorkflowExecutionGetMetricsRequest&& from) noexcept + : WorkflowExecutionGetMetricsRequest() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetMetricsRequest& operator=(WorkflowExecutionGetMetricsRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionGetMetricsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetMetricsRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetMetricsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(WorkflowExecutionGetMetricsRequest* other); + friend void swap(WorkflowExecutionGetMetricsRequest& a, WorkflowExecutionGetMetricsRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetMetricsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionGetMetricsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionGetMetricsRequest& from); + void MergeFrom(const WorkflowExecutionGetMetricsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionGetMetricsRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // int32 depth = 2; + void clear_depth(); + static const int kDepthFieldNumber = 2; + ::google::protobuf::int32 depth() const; + void set_depth(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + ::google::protobuf::int32 depth_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetMetricsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetMetricsResponse) */ { + public: + WorkflowExecutionGetMetricsResponse(); + virtual ~WorkflowExecutionGetMetricsResponse(); + + WorkflowExecutionGetMetricsResponse(const WorkflowExecutionGetMetricsResponse& from); + + inline WorkflowExecutionGetMetricsResponse& operator=(const WorkflowExecutionGetMetricsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetMetricsResponse(WorkflowExecutionGetMetricsResponse&& from) noexcept + : WorkflowExecutionGetMetricsResponse() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetMetricsResponse& operator=(WorkflowExecutionGetMetricsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionGetMetricsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetMetricsResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetMetricsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(WorkflowExecutionGetMetricsResponse* other); + friend void swap(WorkflowExecutionGetMetricsResponse& a, WorkflowExecutionGetMetricsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetMetricsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionGetMetricsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionGetMetricsResponse& from); + void MergeFrom(const WorkflowExecutionGetMetricsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionGetMetricsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Span span = 1; + bool has_span() const; + void clear_span(); + static const int kSpanFieldNumber = 1; + const ::flyteidl::core::Span& span() const; + ::flyteidl::core::Span* release_span(); + ::flyteidl::core::Span* mutable_span(); + void set_allocated_span(::flyteidl::core::Span* span); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Span* span_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ExecutionCreateRequest + +// string project = 1; +inline void ExecutionCreateRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionCreateRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.project) + return project_.GetNoArena(); +} +inline void ExecutionCreateRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.project) +} +#if LANG_CXX11 +inline void ExecutionCreateRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.project) +} +#endif +inline void ExecutionCreateRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.project) +} +inline void ExecutionCreateRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.project) +} +inline ::std::string* ExecutionCreateRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionCreateRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionCreateRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.project) +} + +// string domain = 2; +inline void ExecutionCreateRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionCreateRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.domain) + return domain_.GetNoArena(); +} +inline void ExecutionCreateRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.domain) +} +#if LANG_CXX11 +inline void ExecutionCreateRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.domain) +} +#endif +inline void ExecutionCreateRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.domain) +} +inline void ExecutionCreateRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.domain) +} +inline ::std::string* ExecutionCreateRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionCreateRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionCreateRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.domain) +} + +// string name = 3; +inline void ExecutionCreateRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionCreateRequest::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.name) + return name_.GetNoArena(); +} +inline void ExecutionCreateRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.name) +} +#if LANG_CXX11 +inline void ExecutionCreateRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.name) +} +#endif +inline void ExecutionCreateRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.name) +} +inline void ExecutionCreateRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.name) +} +inline ::std::string* ExecutionCreateRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionCreateRequest::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionCreateRequest::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.name) +} + +// .flyteidl.admin.ExecutionSpec spec = 4; +inline bool ExecutionCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline void ExecutionCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::flyteidl::admin::ExecutionSpec& ExecutionCreateRequest::spec() const { + const ::flyteidl::admin::ExecutionSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionSpec_default_instance_); +} +inline ::flyteidl::admin::ExecutionSpec* ExecutionCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.spec) + + ::flyteidl::admin::ExecutionSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ExecutionSpec* ExecutionCreateRequest::mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionSpec>(GetArenaNoVirtual()); + spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.spec) + return spec_; +} +inline void ExecutionCreateRequest::set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.spec) +} + +// .flyteidl.core.LiteralMap inputs = 5; +inline bool ExecutionCreateRequest::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& ExecutionCreateRequest::inputs() const { + const ::flyteidl::core::LiteralMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* ExecutionCreateRequest::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.inputs) + + ::flyteidl::core::LiteralMap* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* ExecutionCreateRequest::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.inputs) + return inputs_; +} +inline void ExecutionCreateRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.inputs) +} + +// ------------------------------------------------------------------- + +// ExecutionRelaunchRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionRelaunchRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionRelaunchRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRelaunchRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRelaunchRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRelaunchRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRelaunchRequest.id) + return id_; +} +inline void ExecutionRelaunchRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRelaunchRequest.id) +} + +// string name = 3; +inline void ExecutionRelaunchRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionRelaunchRequest::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.name) + return name_.GetNoArena(); +} +inline void ExecutionRelaunchRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionRelaunchRequest.name) +} +#if LANG_CXX11 +inline void ExecutionRelaunchRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionRelaunchRequest.name) +} +#endif +inline void ExecutionRelaunchRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionRelaunchRequest.name) +} +inline void ExecutionRelaunchRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionRelaunchRequest.name) +} +inline ::std::string* ExecutionRelaunchRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRelaunchRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionRelaunchRequest::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRelaunchRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionRelaunchRequest::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRelaunchRequest.name) +} + +// bool overwrite_cache = 4; +inline void ExecutionRelaunchRequest::clear_overwrite_cache() { + overwrite_cache_ = false; +} +inline bool ExecutionRelaunchRequest::overwrite_cache() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.overwrite_cache) + return overwrite_cache_; +} +inline void ExecutionRelaunchRequest::set_overwrite_cache(bool value) { + + overwrite_cache_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionRelaunchRequest.overwrite_cache) +} + +// ------------------------------------------------------------------- + +// ExecutionRecoverRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionRecoverRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionRecoverRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRecoverRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRecoverRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRecoverRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRecoverRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRecoverRequest.id) + return id_; +} +inline void ExecutionRecoverRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRecoverRequest.id) +} + +// string name = 2; +inline void ExecutionRecoverRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionRecoverRequest::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRecoverRequest.name) + return name_.GetNoArena(); +} +inline void ExecutionRecoverRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionRecoverRequest.name) +} +#if LANG_CXX11 +inline void ExecutionRecoverRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionRecoverRequest.name) +} +#endif +inline void ExecutionRecoverRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionRecoverRequest.name) +} +inline void ExecutionRecoverRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionRecoverRequest.name) +} +inline ::std::string* ExecutionRecoverRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRecoverRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionRecoverRequest::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRecoverRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionRecoverRequest::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRecoverRequest.name) +} + +// .flyteidl.admin.ExecutionMetadata metadata = 3; +inline bool ExecutionRecoverRequest::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void ExecutionRecoverRequest::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::admin::ExecutionMetadata& ExecutionRecoverRequest::metadata() const { + const ::flyteidl::admin::ExecutionMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRecoverRequest.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionMetadata_default_instance_); +} +inline ::flyteidl::admin::ExecutionMetadata* ExecutionRecoverRequest::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRecoverRequest.metadata) + + ::flyteidl::admin::ExecutionMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ExecutionMetadata* ExecutionRecoverRequest::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRecoverRequest.metadata) + return metadata_; +} +inline void ExecutionRecoverRequest::set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRecoverRequest.metadata) +} + +// ------------------------------------------------------------------- + +// ExecutionCreateResponse + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionCreateResponse::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionCreateResponse::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateResponse.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionCreateResponse::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateResponse.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionCreateResponse::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateResponse.id) + return id_; +} +inline void ExecutionCreateResponse::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateResponse.id) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool WorkflowExecutionGetRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetRequest.id) + return id_; +} +inline void WorkflowExecutionGetRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetRequest.id) +} + +// ------------------------------------------------------------------- + +// Execution + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool Execution::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& Execution::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Execution::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Execution::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.id) + return id_; +} +inline void Execution::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.id) +} + +// .flyteidl.admin.ExecutionSpec spec = 2; +inline bool Execution::has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline void Execution::clear_spec() { + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::flyteidl::admin::ExecutionSpec& Execution::spec() const { + const ::flyteidl::admin::ExecutionSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionSpec_default_instance_); +} +inline ::flyteidl::admin::ExecutionSpec* Execution::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.spec) + + ::flyteidl::admin::ExecutionSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ExecutionSpec* Execution::mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionSpec>(GetArenaNoVirtual()); + spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.spec) + return spec_; +} +inline void Execution::set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.spec) +} + +// .flyteidl.admin.ExecutionClosure closure = 3; +inline bool Execution::has_closure() const { + return this != internal_default_instance() && closure_ != nullptr; +} +inline void Execution::clear_closure() { + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; +} +inline const ::flyteidl::admin::ExecutionClosure& Execution::closure() const { + const ::flyteidl::admin::ExecutionClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.closure) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionClosure_default_instance_); +} +inline ::flyteidl::admin::ExecutionClosure* Execution::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.closure) + + ::flyteidl::admin::ExecutionClosure* temp = closure_; + closure_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ExecutionClosure* Execution::mutable_closure() { + + if (closure_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionClosure>(GetArenaNoVirtual()); + closure_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.closure) + return closure_; +} +inline void Execution::set_allocated_closure(::flyteidl::admin::ExecutionClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.closure) +} + +// ------------------------------------------------------------------- + +// ExecutionList + +// repeated .flyteidl.admin.Execution executions = 1; +inline int ExecutionList::executions_size() const { + return executions_.size(); +} +inline void ExecutionList::clear_executions() { + executions_.Clear(); +} +inline ::flyteidl::admin::Execution* ExecutionList::mutable_executions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionList.executions) + return executions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >* +ExecutionList::mutable_executions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionList.executions) + return &executions_; +} +inline const ::flyteidl::admin::Execution& ExecutionList::executions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionList.executions) + return executions_.Get(index); +} +inline ::flyteidl::admin::Execution* ExecutionList::add_executions() { + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionList.executions) + return executions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >& +ExecutionList::executions() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionList.executions) + return executions_; +} + +// string token = 2; +inline void ExecutionList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionList.token) + return token_.GetNoArena(); +} +inline void ExecutionList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionList.token) +} +#if LANG_CXX11 +inline void ExecutionList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionList.token) +} +#endif +inline void ExecutionList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionList.token) +} +inline void ExecutionList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionList.token) +} +inline ::std::string* ExecutionList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionList.token) +} + +// ------------------------------------------------------------------- + +// LiteralMapBlob + +// .flyteidl.core.LiteralMap values = 1 [deprecated = true]; +inline bool LiteralMapBlob::has_values() const { + return data_case() == kValues; +} +inline void LiteralMapBlob::set_has_values() { + _oneof_case_[0] = kValues; +} +inline ::flyteidl::core::LiteralMap* LiteralMapBlob::release_values() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LiteralMapBlob.values) + if (has_values()) { + clear_has_data(); + ::flyteidl::core::LiteralMap* temp = data_.values_; + data_.values_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& LiteralMapBlob::values() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LiteralMapBlob.values) + return has_values() + ? *data_.values_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* LiteralMapBlob::mutable_values() { + if (!has_values()) { + clear_data(); + set_has_values(); + data_.values_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LiteralMapBlob.values) + return data_.values_; +} + +// string uri = 2; +inline bool LiteralMapBlob::has_uri() const { + return data_case() == kUri; +} +inline void LiteralMapBlob::set_has_uri() { + _oneof_case_[0] = kUri; +} +inline void LiteralMapBlob::clear_uri() { + if (has_uri()) { + data_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); + } +} +inline const ::std::string& LiteralMapBlob::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LiteralMapBlob.uri) + if (has_uri()) { + return data_.uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void LiteralMapBlob::set_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) +} +#if LANG_CXX11 +inline void LiteralMapBlob::set_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LiteralMapBlob.uri) +} +#endif +inline void LiteralMapBlob::set_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.LiteralMapBlob.uri) +} +inline void LiteralMapBlob::set_uri(const char* value, size_t size) { + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LiteralMapBlob.uri) +} +inline ::std::string* LiteralMapBlob::mutable_uri() { + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LiteralMapBlob.uri) + return data_.uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiteralMapBlob::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LiteralMapBlob.uri) + if (has_uri()) { + clear_has_data(); + return data_.uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void LiteralMapBlob::set_allocated_uri(::std::string* uri) { + if (has_data()) { + clear_data(); + } + if (uri != nullptr) { + set_has_uri(); + data_.uri_.UnsafeSetDefault(uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LiteralMapBlob.uri) +} + +inline bool LiteralMapBlob::has_data() const { + return data_case() != DATA_NOT_SET; +} +inline void LiteralMapBlob::clear_has_data() { + _oneof_case_[0] = DATA_NOT_SET; +} +inline LiteralMapBlob::DataCase LiteralMapBlob::data_case() const { + return LiteralMapBlob::DataCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// AbortMetadata + +// string cause = 1; +inline void AbortMetadata::clear_cause() { + cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AbortMetadata::cause() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.AbortMetadata.cause) + return cause_.GetNoArena(); +} +inline void AbortMetadata::set_cause(const ::std::string& value) { + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.AbortMetadata.cause) +} +#if LANG_CXX11 +inline void AbortMetadata::set_cause(::std::string&& value) { + + cause_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AbortMetadata.cause) +} +#endif +inline void AbortMetadata::set_cause(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.AbortMetadata.cause) +} +inline void AbortMetadata::set_cause(const char* value, size_t size) { + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AbortMetadata.cause) +} +inline ::std::string* AbortMetadata::mutable_cause() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.AbortMetadata.cause) + return cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AbortMetadata::release_cause() { + // @@protoc_insertion_point(field_release:flyteidl.admin.AbortMetadata.cause) + + return cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AbortMetadata::set_allocated_cause(::std::string* cause) { + if (cause != nullptr) { + + } else { + + } + cause_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cause); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AbortMetadata.cause) +} + +// string principal = 2; +inline void AbortMetadata::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AbortMetadata::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.AbortMetadata.principal) + return principal_.GetNoArena(); +} +inline void AbortMetadata::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.AbortMetadata.principal) +} +#if LANG_CXX11 +inline void AbortMetadata::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AbortMetadata.principal) +} +#endif +inline void AbortMetadata::set_principal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.AbortMetadata.principal) +} +inline void AbortMetadata::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AbortMetadata.principal) +} +inline ::std::string* AbortMetadata::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.AbortMetadata.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AbortMetadata::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.admin.AbortMetadata.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AbortMetadata::set_allocated_principal(::std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AbortMetadata.principal) +} + +// ------------------------------------------------------------------- + +// ExecutionClosure + +// .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; +inline bool ExecutionClosure::has_outputs() const { + return output_result_case() == kOutputs; +} +inline void ExecutionClosure::set_has_outputs() { + _oneof_case_[0] = kOutputs; +} +inline void ExecutionClosure::clear_outputs() { + if (has_outputs()) { + delete output_result_.outputs_; + clear_has_output_result(); + } +} +inline ::flyteidl::admin::LiteralMapBlob* ExecutionClosure::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.outputs) + if (has_outputs()) { + clear_has_output_result(); + ::flyteidl::admin::LiteralMapBlob* temp = output_result_.outputs_; + output_result_.outputs_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::LiteralMapBlob& ExecutionClosure::outputs() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.outputs) + return has_outputs() + ? *output_result_.outputs_ + : *reinterpret_cast< ::flyteidl::admin::LiteralMapBlob*>(&::flyteidl::admin::_LiteralMapBlob_default_instance_); +} +inline ::flyteidl::admin::LiteralMapBlob* ExecutionClosure::mutable_outputs() { + if (!has_outputs()) { + clear_output_result(); + set_has_outputs(); + output_result_.outputs_ = CreateMaybeMessage< ::flyteidl::admin::LiteralMapBlob >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.outputs) + return output_result_.outputs_; +} + +// .flyteidl.core.ExecutionError error = 2; +inline bool ExecutionClosure::has_error() const { + return output_result_case() == kError; +} +inline void ExecutionClosure::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* ExecutionClosure::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ExecutionError& ExecutionClosure::error() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* ExecutionClosure::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.error) + return output_result_.error_; +} + +// string abort_cause = 10 [deprecated = true]; +inline bool ExecutionClosure::has_abort_cause() const { + return output_result_case() == kAbortCause; +} +inline void ExecutionClosure::set_has_abort_cause() { + _oneof_case_[0] = kAbortCause; +} +inline void ExecutionClosure::clear_abort_cause() { + if (has_abort_cause()) { + output_result_.abort_cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& ExecutionClosure::abort_cause() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.abort_cause) + if (has_abort_cause()) { + return output_result_.abort_cause_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void ExecutionClosure::set_abort_cause(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) +} +#if LANG_CXX11 +inline void ExecutionClosure::set_abort_cause(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionClosure.abort_cause) +} +#endif +inline void ExecutionClosure::set_abort_cause(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionClosure.abort_cause) +} +inline void ExecutionClosure::set_abort_cause(const char* value, size_t size) { + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionClosure.abort_cause) +} +inline ::std::string* ExecutionClosure::mutable_abort_cause() { + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.abort_cause) + return output_result_.abort_cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionClosure::release_abort_cause() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.abort_cause) + if (has_abort_cause()) { + clear_has_output_result(); + return output_result_.abort_cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void ExecutionClosure::set_allocated_abort_cause(::std::string* abort_cause) { + if (has_output_result()) { + clear_output_result(); + } + if (abort_cause != nullptr) { + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(abort_cause); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.abort_cause) +} + +// .flyteidl.admin.AbortMetadata abort_metadata = 12; +inline bool ExecutionClosure::has_abort_metadata() const { + return output_result_case() == kAbortMetadata; +} +inline void ExecutionClosure::set_has_abort_metadata() { + _oneof_case_[0] = kAbortMetadata; +} +inline void ExecutionClosure::clear_abort_metadata() { + if (has_abort_metadata()) { + delete output_result_.abort_metadata_; + clear_has_output_result(); + } +} +inline ::flyteidl::admin::AbortMetadata* ExecutionClosure::release_abort_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.abort_metadata) + if (has_abort_metadata()) { + clear_has_output_result(); + ::flyteidl::admin::AbortMetadata* temp = output_result_.abort_metadata_; + output_result_.abort_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::AbortMetadata& ExecutionClosure::abort_metadata() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.abort_metadata) + return has_abort_metadata() + ? *output_result_.abort_metadata_ + : *reinterpret_cast< ::flyteidl::admin::AbortMetadata*>(&::flyteidl::admin::_AbortMetadata_default_instance_); +} +inline ::flyteidl::admin::AbortMetadata* ExecutionClosure::mutable_abort_metadata() { + if (!has_abort_metadata()) { + clear_output_result(); + set_has_abort_metadata(); + output_result_.abort_metadata_ = CreateMaybeMessage< ::flyteidl::admin::AbortMetadata >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.abort_metadata) + return output_result_.abort_metadata_; +} + +// .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; +inline bool ExecutionClosure::has_output_data() const { + return output_result_case() == kOutputData; +} +inline void ExecutionClosure::set_has_output_data() { + _oneof_case_[0] = kOutputData; +} +inline ::flyteidl::core::LiteralMap* ExecutionClosure::release_output_data() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.output_data) + if (has_output_data()) { + clear_has_output_result(); + ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; + output_result_.output_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& ExecutionClosure::output_data() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.output_data) + return has_output_data() + ? *output_result_.output_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* ExecutionClosure::mutable_output_data() { + if (!has_output_data()) { + clear_output_result(); + set_has_output_data(); + output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.output_data) + return output_result_.output_data_; +} + +// .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; +inline bool ExecutionClosure::has_computed_inputs() const { + return this != internal_default_instance() && computed_inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& ExecutionClosure::computed_inputs() const { + const ::flyteidl::core::LiteralMap* p = computed_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.computed_inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* ExecutionClosure::release_computed_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.computed_inputs) + + ::flyteidl::core::LiteralMap* temp = computed_inputs_; + computed_inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* ExecutionClosure::mutable_computed_inputs() { + + if (computed_inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + computed_inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.computed_inputs) + return computed_inputs_; +} +inline void ExecutionClosure::set_allocated_computed_inputs(::flyteidl::core::LiteralMap* computed_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(computed_inputs_); + } + if (computed_inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + computed_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, computed_inputs, submessage_arena); + } + + } else { + + } + computed_inputs_ = computed_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.computed_inputs) +} + +// .flyteidl.core.WorkflowExecution.Phase phase = 4; +inline void ExecutionClosure::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::WorkflowExecution_Phase ExecutionClosure::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.phase) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); +} +inline void ExecutionClosure::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.phase) +} + +// .google.protobuf.Timestamp started_at = 5; +inline bool ExecutionClosure::has_started_at() const { + return this != internal_default_instance() && started_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& ExecutionClosure::started_at() const { + const ::google::protobuf::Timestamp* p = started_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.started_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionClosure::release_started_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.started_at) + + ::google::protobuf::Timestamp* temp = started_at_; + started_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_started_at() { + + if (started_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + started_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.started_at) + return started_at_; +} +inline void ExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); + } + if (started_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(started_at)->GetArena(); + if (message_arena != submessage_arena) { + started_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, started_at, submessage_arena); + } + + } else { + + } + started_at_ = started_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.started_at) +} + +// .google.protobuf.Duration duration = 6; +inline bool ExecutionClosure::has_duration() const { + return this != internal_default_instance() && duration_ != nullptr; +} +inline const ::google::protobuf::Duration& ExecutionClosure::duration() const { + const ::google::protobuf::Duration* p = duration_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.duration) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* ExecutionClosure::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.duration) + + ::google::protobuf::Duration* temp = duration_; + duration_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* ExecutionClosure::mutable_duration() { + + if (duration_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + duration_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.duration) + return duration_; +} +inline void ExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); + } + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.duration) +} + +// .google.protobuf.Timestamp created_at = 7; +inline bool ExecutionClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& ExecutionClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.created_at) + return created_at_; +} +inline void ExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 8; +inline bool ExecutionClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& ExecutionClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.updated_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_updated_at() { + + if (updated_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + updated_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.updated_at) + return updated_at_; +} +inline void ExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.updated_at) +} + +// repeated .flyteidl.admin.Notification notifications = 9; +inline int ExecutionClosure::notifications_size() const { + return notifications_.size(); +} +inline ::flyteidl::admin::Notification* ExecutionClosure::mutable_notifications(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.notifications) + return notifications_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* +ExecutionClosure::mutable_notifications() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionClosure.notifications) + return ¬ifications_; +} +inline const ::flyteidl::admin::Notification& ExecutionClosure::notifications(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.notifications) + return notifications_.Get(index); +} +inline ::flyteidl::admin::Notification* ExecutionClosure::add_notifications() { + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionClosure.notifications) + return notifications_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& +ExecutionClosure::notifications() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionClosure.notifications) + return notifications_; +} + +// .flyteidl.core.Identifier workflow_id = 11; +inline bool ExecutionClosure::has_workflow_id() const { + return this != internal_default_instance() && workflow_id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& ExecutionClosure::workflow_id() const { + const ::flyteidl::core::Identifier* p = workflow_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.workflow_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* ExecutionClosure::release_workflow_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.workflow_id) + + ::flyteidl::core::Identifier* temp = workflow_id_; + workflow_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* ExecutionClosure::mutable_workflow_id() { + + if (workflow_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + workflow_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.workflow_id) + return workflow_id_; +} +inline void ExecutionClosure::set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_id_); + } + if (workflow_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_id, submessage_arena); + } + + } else { + + } + workflow_id_ = workflow_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.workflow_id) +} + +// .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; +inline bool ExecutionClosure::has_state_change_details() const { + return this != internal_default_instance() && state_change_details_ != nullptr; +} +inline void ExecutionClosure::clear_state_change_details() { + if (GetArenaNoVirtual() == nullptr && state_change_details_ != nullptr) { + delete state_change_details_; + } + state_change_details_ = nullptr; +} +inline const ::flyteidl::admin::ExecutionStateChangeDetails& ExecutionClosure::state_change_details() const { + const ::flyteidl::admin::ExecutionStateChangeDetails* p = state_change_details_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.state_change_details) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_); +} +inline ::flyteidl::admin::ExecutionStateChangeDetails* ExecutionClosure::release_state_change_details() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.state_change_details) + + ::flyteidl::admin::ExecutionStateChangeDetails* temp = state_change_details_; + state_change_details_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ExecutionStateChangeDetails* ExecutionClosure::mutable_state_change_details() { + + if (state_change_details_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionStateChangeDetails>(GetArenaNoVirtual()); + state_change_details_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.state_change_details) + return state_change_details_; +} +inline void ExecutionClosure::set_allocated_state_change_details(::flyteidl::admin::ExecutionStateChangeDetails* state_change_details) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete state_change_details_; + } + if (state_change_details) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + state_change_details = ::google::protobuf::internal::GetOwnedMessage( + message_arena, state_change_details, submessage_arena); + } + + } else { + + } + state_change_details_ = state_change_details; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.state_change_details) +} + +inline bool ExecutionClosure::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void ExecutionClosure::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline ExecutionClosure::OutputResultCase ExecutionClosure::output_result_case() const { + return ExecutionClosure::OutputResultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// SystemMetadata + +// string execution_cluster = 1; +inline void SystemMetadata::clear_execution_cluster() { + execution_cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SystemMetadata::execution_cluster() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SystemMetadata.execution_cluster) + return execution_cluster_.GetNoArena(); +} +inline void SystemMetadata::set_execution_cluster(const ::std::string& value) { + + execution_cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.SystemMetadata.execution_cluster) +} +#if LANG_CXX11 +inline void SystemMetadata::set_execution_cluster(::std::string&& value) { + + execution_cluster_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SystemMetadata.execution_cluster) +} +#endif +inline void SystemMetadata::set_execution_cluster(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + execution_cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SystemMetadata.execution_cluster) +} +inline void SystemMetadata::set_execution_cluster(const char* value, size_t size) { + + execution_cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SystemMetadata.execution_cluster) +} +inline ::std::string* SystemMetadata::mutable_execution_cluster() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SystemMetadata.execution_cluster) + return execution_cluster_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SystemMetadata::release_execution_cluster() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SystemMetadata.execution_cluster) + + return execution_cluster_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SystemMetadata::set_allocated_execution_cluster(::std::string* execution_cluster) { + if (execution_cluster != nullptr) { + + } else { + + } + execution_cluster_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), execution_cluster); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SystemMetadata.execution_cluster) +} + +// string namespace = 2; +inline void SystemMetadata::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SystemMetadata::namespace_() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SystemMetadata.namespace) + return namespace__.GetNoArena(); +} +inline void SystemMetadata::set_namespace_(const ::std::string& value) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.SystemMetadata.namespace) +} +#if LANG_CXX11 +inline void SystemMetadata::set_namespace_(::std::string&& value) { + + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SystemMetadata.namespace) +} +#endif +inline void SystemMetadata::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SystemMetadata.namespace) +} +inline void SystemMetadata::set_namespace_(const char* value, size_t size) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SystemMetadata.namespace) +} +inline ::std::string* SystemMetadata::mutable_namespace_() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SystemMetadata.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SystemMetadata::release_namespace_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SystemMetadata.namespace) + + return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SystemMetadata::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SystemMetadata.namespace) +} + +// ------------------------------------------------------------------- + +// ExecutionMetadata + +// .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; +inline void ExecutionMetadata::clear_mode() { + mode_ = 0; +} +inline ::flyteidl::admin::ExecutionMetadata_ExecutionMode ExecutionMetadata::mode() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.mode) + return static_cast< ::flyteidl::admin::ExecutionMetadata_ExecutionMode >(mode_); +} +inline void ExecutionMetadata::set_mode(::flyteidl::admin::ExecutionMetadata_ExecutionMode value) { + + mode_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.mode) +} + +// string principal = 2; +inline void ExecutionMetadata::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionMetadata::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.principal) + return principal_.GetNoArena(); +} +inline void ExecutionMetadata::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.principal) +} +#if LANG_CXX11 +inline void ExecutionMetadata::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionMetadata.principal) +} +#endif +inline void ExecutionMetadata::set_principal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionMetadata.principal) +} +inline void ExecutionMetadata::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionMetadata.principal) +} +inline ::std::string* ExecutionMetadata::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionMetadata::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionMetadata::set_allocated_principal(::std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.principal) +} + +// uint32 nesting = 3; +inline void ExecutionMetadata::clear_nesting() { + nesting_ = 0u; +} +inline ::google::protobuf::uint32 ExecutionMetadata::nesting() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.nesting) + return nesting_; +} +inline void ExecutionMetadata::set_nesting(::google::protobuf::uint32 value) { + + nesting_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.nesting) +} + +// .google.protobuf.Timestamp scheduled_at = 4; +inline bool ExecutionMetadata::has_scheduled_at() const { + return this != internal_default_instance() && scheduled_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& ExecutionMetadata::scheduled_at() const { + const ::google::protobuf::Timestamp* p = scheduled_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.scheduled_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionMetadata::release_scheduled_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.scheduled_at) + + ::google::protobuf::Timestamp* temp = scheduled_at_; + scheduled_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionMetadata::mutable_scheduled_at() { + + if (scheduled_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + scheduled_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.scheduled_at) + return scheduled_at_; +} +inline void ExecutionMetadata::set_allocated_scheduled_at(::google::protobuf::Timestamp* scheduled_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(scheduled_at_); + } + if (scheduled_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(scheduled_at)->GetArena(); + if (message_arena != submessage_arena) { + scheduled_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scheduled_at, submessage_arena); + } + + } else { + + } + scheduled_at_ = scheduled_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.scheduled_at) +} + +// .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; +inline bool ExecutionMetadata::has_parent_node_execution() const { + return this != internal_default_instance() && parent_node_execution_ != nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& ExecutionMetadata::parent_node_execution() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.parent_node_execution) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* ExecutionMetadata::release_parent_node_execution() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.parent_node_execution) + + ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_; + parent_node_execution_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* ExecutionMetadata::mutable_parent_node_execution() { + + if (parent_node_execution_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + parent_node_execution_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.parent_node_execution) + return parent_node_execution_; +} +inline void ExecutionMetadata::set_allocated_parent_node_execution(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(parent_node_execution_); + } + if (parent_node_execution) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + parent_node_execution = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parent_node_execution, submessage_arena); + } + + } else { + + } + parent_node_execution_ = parent_node_execution; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.parent_node_execution) +} + +// .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; +inline bool ExecutionMetadata::has_reference_execution() const { + return this != internal_default_instance() && reference_execution_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionMetadata::reference_execution() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = reference_execution_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.reference_execution) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionMetadata::release_reference_execution() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.reference_execution) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = reference_execution_; + reference_execution_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionMetadata::mutable_reference_execution() { + + if (reference_execution_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + reference_execution_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.reference_execution) + return reference_execution_; +} +inline void ExecutionMetadata::set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(reference_execution_); + } + if (reference_execution) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + reference_execution = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reference_execution, submessage_arena); + } + + } else { + + } + reference_execution_ = reference_execution; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.reference_execution) +} + +// .flyteidl.admin.SystemMetadata system_metadata = 17; +inline bool ExecutionMetadata::has_system_metadata() const { + return this != internal_default_instance() && system_metadata_ != nullptr; +} +inline void ExecutionMetadata::clear_system_metadata() { + if (GetArenaNoVirtual() == nullptr && system_metadata_ != nullptr) { + delete system_metadata_; + } + system_metadata_ = nullptr; +} +inline const ::flyteidl::admin::SystemMetadata& ExecutionMetadata::system_metadata() const { + const ::flyteidl::admin::SystemMetadata* p = system_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.system_metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_SystemMetadata_default_instance_); +} +inline ::flyteidl::admin::SystemMetadata* ExecutionMetadata::release_system_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.system_metadata) + + ::flyteidl::admin::SystemMetadata* temp = system_metadata_; + system_metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::SystemMetadata* ExecutionMetadata::mutable_system_metadata() { + + if (system_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::SystemMetadata>(GetArenaNoVirtual()); + system_metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.system_metadata) + return system_metadata_; +} +inline void ExecutionMetadata::set_allocated_system_metadata(::flyteidl::admin::SystemMetadata* system_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete system_metadata_; + } + if (system_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + system_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, system_metadata, submessage_arena); + } + + } else { + + } + system_metadata_ = system_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.system_metadata) +} + +// ------------------------------------------------------------------- + +// NotificationList + +// repeated .flyteidl.admin.Notification notifications = 1; +inline int NotificationList::notifications_size() const { + return notifications_.size(); +} +inline ::flyteidl::admin::Notification* NotificationList::mutable_notifications(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NotificationList.notifications) + return notifications_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* +NotificationList::mutable_notifications() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NotificationList.notifications) + return ¬ifications_; +} +inline const ::flyteidl::admin::Notification& NotificationList::notifications(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NotificationList.notifications) + return notifications_.Get(index); +} +inline ::flyteidl::admin::Notification* NotificationList::add_notifications() { + // @@protoc_insertion_point(field_add:flyteidl.admin.NotificationList.notifications) + return notifications_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& +NotificationList::notifications() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.NotificationList.notifications) + return notifications_; +} + +// ------------------------------------------------------------------- + +// ExecutionSpec + +// .flyteidl.core.Identifier launch_plan = 1; +inline bool ExecutionSpec::has_launch_plan() const { + return this != internal_default_instance() && launch_plan_ != nullptr; +} +inline const ::flyteidl::core::Identifier& ExecutionSpec::launch_plan() const { + const ::flyteidl::core::Identifier* p = launch_plan_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.launch_plan) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* ExecutionSpec::release_launch_plan() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.launch_plan) + + ::flyteidl::core::Identifier* temp = launch_plan_; + launch_plan_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* ExecutionSpec::mutable_launch_plan() { + + if (launch_plan_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + launch_plan_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.launch_plan) + return launch_plan_; +} +inline void ExecutionSpec::set_allocated_launch_plan(::flyteidl::core::Identifier* launch_plan) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_plan_); + } + if (launch_plan) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + launch_plan = ::google::protobuf::internal::GetOwnedMessage( + message_arena, launch_plan, submessage_arena); + } + + } else { + + } + launch_plan_ = launch_plan; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.launch_plan) +} + +// .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; +inline bool ExecutionSpec::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& ExecutionSpec::inputs() const { + const ::flyteidl::core::LiteralMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* ExecutionSpec::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.inputs) + + ::flyteidl::core::LiteralMap* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* ExecutionSpec::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.inputs) + return inputs_; +} +inline void ExecutionSpec::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.inputs) +} + +// .flyteidl.admin.ExecutionMetadata metadata = 3; +inline bool ExecutionSpec::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void ExecutionSpec::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::admin::ExecutionMetadata& ExecutionSpec::metadata() const { + const ::flyteidl::admin::ExecutionMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionMetadata_default_instance_); +} +inline ::flyteidl::admin::ExecutionMetadata* ExecutionSpec::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.metadata) + + ::flyteidl::admin::ExecutionMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ExecutionMetadata* ExecutionSpec::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.metadata) + return metadata_; +} +inline void ExecutionSpec::set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.metadata) +} + +// .flyteidl.admin.NotificationList notifications = 5; +inline bool ExecutionSpec::has_notifications() const { + return notification_overrides_case() == kNotifications; +} +inline void ExecutionSpec::set_has_notifications() { + _oneof_case_[0] = kNotifications; +} +inline void ExecutionSpec::clear_notifications() { + if (has_notifications()) { + delete notification_overrides_.notifications_; + clear_has_notification_overrides(); + } +} +inline ::flyteidl::admin::NotificationList* ExecutionSpec::release_notifications() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.notifications) + if (has_notifications()) { + clear_has_notification_overrides(); + ::flyteidl::admin::NotificationList* temp = notification_overrides_.notifications_; + notification_overrides_.notifications_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::NotificationList& ExecutionSpec::notifications() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.notifications) + return has_notifications() + ? *notification_overrides_.notifications_ + : *reinterpret_cast< ::flyteidl::admin::NotificationList*>(&::flyteidl::admin::_NotificationList_default_instance_); +} +inline ::flyteidl::admin::NotificationList* ExecutionSpec::mutable_notifications() { + if (!has_notifications()) { + clear_notification_overrides(); + set_has_notifications(); + notification_overrides_.notifications_ = CreateMaybeMessage< ::flyteidl::admin::NotificationList >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.notifications) + return notification_overrides_.notifications_; +} + +// bool disable_all = 6; +inline bool ExecutionSpec::has_disable_all() const { + return notification_overrides_case() == kDisableAll; +} +inline void ExecutionSpec::set_has_disable_all() { + _oneof_case_[0] = kDisableAll; +} +inline void ExecutionSpec::clear_disable_all() { + if (has_disable_all()) { + notification_overrides_.disable_all_ = false; + clear_has_notification_overrides(); + } +} +inline bool ExecutionSpec::disable_all() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.disable_all) + if (has_disable_all()) { + return notification_overrides_.disable_all_; + } + return false; +} +inline void ExecutionSpec::set_disable_all(bool value) { + if (!has_disable_all()) { + clear_notification_overrides(); + set_has_disable_all(); + } + notification_overrides_.disable_all_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.disable_all) +} + +// .flyteidl.admin.Labels labels = 7; +inline bool ExecutionSpec::has_labels() const { + return this != internal_default_instance() && labels_ != nullptr; +} +inline const ::flyteidl::admin::Labels& ExecutionSpec::labels() const { + const ::flyteidl::admin::Labels* p = labels_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.labels) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Labels_default_instance_); +} +inline ::flyteidl::admin::Labels* ExecutionSpec::release_labels() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.labels) + + ::flyteidl::admin::Labels* temp = labels_; + labels_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Labels* ExecutionSpec::mutable_labels() { + + if (labels_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); + labels_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.labels) + return labels_; +} +inline void ExecutionSpec::set_allocated_labels(::flyteidl::admin::Labels* labels) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); + } + if (labels) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + labels = ::google::protobuf::internal::GetOwnedMessage( + message_arena, labels, submessage_arena); + } + + } else { + + } + labels_ = labels; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.labels) +} + +// .flyteidl.admin.Annotations annotations = 8; +inline bool ExecutionSpec::has_annotations() const { + return this != internal_default_instance() && annotations_ != nullptr; +} +inline const ::flyteidl::admin::Annotations& ExecutionSpec::annotations() const { + const ::flyteidl::admin::Annotations* p = annotations_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.annotations) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Annotations_default_instance_); +} +inline ::flyteidl::admin::Annotations* ExecutionSpec::release_annotations() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.annotations) + + ::flyteidl::admin::Annotations* temp = annotations_; + annotations_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Annotations* ExecutionSpec::mutable_annotations() { + + if (annotations_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Annotations>(GetArenaNoVirtual()); + annotations_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.annotations) + return annotations_; +} +inline void ExecutionSpec::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); + } + if (annotations) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + annotations = ::google::protobuf::internal::GetOwnedMessage( + message_arena, annotations, submessage_arena); + } + + } else { + + } + annotations_ = annotations; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.annotations) +} + +// .flyteidl.core.SecurityContext security_context = 10; +inline bool ExecutionSpec::has_security_context() const { + return this != internal_default_instance() && security_context_ != nullptr; +} +inline const ::flyteidl::core::SecurityContext& ExecutionSpec::security_context() const { + const ::flyteidl::core::SecurityContext* p = security_context_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.security_context) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SecurityContext_default_instance_); +} +inline ::flyteidl::core::SecurityContext* ExecutionSpec::release_security_context() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.security_context) + + ::flyteidl::core::SecurityContext* temp = security_context_; + security_context_ = nullptr; + return temp; +} +inline ::flyteidl::core::SecurityContext* ExecutionSpec::mutable_security_context() { + + if (security_context_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); + security_context_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.security_context) + return security_context_; +} +inline void ExecutionSpec::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); + } + if (security_context) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + security_context = ::google::protobuf::internal::GetOwnedMessage( + message_arena, security_context, submessage_arena); + } + + } else { + + } + security_context_ = security_context; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.security_context) +} + +// .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; +inline bool ExecutionSpec::has_auth_role() const { + return this != internal_default_instance() && auth_role_ != nullptr; +} +inline const ::flyteidl::admin::AuthRole& ExecutionSpec::auth_role() const { + const ::flyteidl::admin::AuthRole* p = auth_role_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.auth_role) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_AuthRole_default_instance_); +} +inline ::flyteidl::admin::AuthRole* ExecutionSpec::release_auth_role() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.auth_role) + + ::flyteidl::admin::AuthRole* temp = auth_role_; + auth_role_ = nullptr; + return temp; +} +inline ::flyteidl::admin::AuthRole* ExecutionSpec::mutable_auth_role() { + + if (auth_role_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::AuthRole>(GetArenaNoVirtual()); + auth_role_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.auth_role) + return auth_role_; +} +inline void ExecutionSpec::set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(auth_role_); + } + if (auth_role) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + auth_role = ::google::protobuf::internal::GetOwnedMessage( + message_arena, auth_role, submessage_arena); + } + + } else { + + } + auth_role_ = auth_role; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.auth_role) +} + +// .flyteidl.core.QualityOfService quality_of_service = 17; +inline bool ExecutionSpec::has_quality_of_service() const { + return this != internal_default_instance() && quality_of_service_ != nullptr; +} +inline const ::flyteidl::core::QualityOfService& ExecutionSpec::quality_of_service() const { + const ::flyteidl::core::QualityOfService* p = quality_of_service_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.quality_of_service) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_QualityOfService_default_instance_); +} +inline ::flyteidl::core::QualityOfService* ExecutionSpec::release_quality_of_service() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.quality_of_service) + + ::flyteidl::core::QualityOfService* temp = quality_of_service_; + quality_of_service_ = nullptr; + return temp; +} +inline ::flyteidl::core::QualityOfService* ExecutionSpec::mutable_quality_of_service() { + + if (quality_of_service_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::QualityOfService>(GetArenaNoVirtual()); + quality_of_service_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.quality_of_service) + return quality_of_service_; +} +inline void ExecutionSpec::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(quality_of_service_); + } + if (quality_of_service) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + quality_of_service = ::google::protobuf::internal::GetOwnedMessage( + message_arena, quality_of_service, submessage_arena); + } + + } else { + + } + quality_of_service_ = quality_of_service; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.quality_of_service) +} + +// int32 max_parallelism = 18; +inline void ExecutionSpec::clear_max_parallelism() { + max_parallelism_ = 0; +} +inline ::google::protobuf::int32 ExecutionSpec::max_parallelism() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.max_parallelism) + return max_parallelism_; +} +inline void ExecutionSpec::set_max_parallelism(::google::protobuf::int32 value) { + + max_parallelism_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.max_parallelism) +} + +// .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; +inline bool ExecutionSpec::has_raw_output_data_config() const { + return this != internal_default_instance() && raw_output_data_config_ != nullptr; +} +inline const ::flyteidl::admin::RawOutputDataConfig& ExecutionSpec::raw_output_data_config() const { + const ::flyteidl::admin::RawOutputDataConfig* p = raw_output_data_config_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.raw_output_data_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_RawOutputDataConfig_default_instance_); +} +inline ::flyteidl::admin::RawOutputDataConfig* ExecutionSpec::release_raw_output_data_config() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.raw_output_data_config) + + ::flyteidl::admin::RawOutputDataConfig* temp = raw_output_data_config_; + raw_output_data_config_ = nullptr; + return temp; +} +inline ::flyteidl::admin::RawOutputDataConfig* ExecutionSpec::mutable_raw_output_data_config() { + + if (raw_output_data_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(GetArenaNoVirtual()); + raw_output_data_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.raw_output_data_config) + return raw_output_data_config_; +} +inline void ExecutionSpec::set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_output_data_config_); + } + if (raw_output_data_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + raw_output_data_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, raw_output_data_config, submessage_arena); + } + + } else { + + } + raw_output_data_config_ = raw_output_data_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.raw_output_data_config) +} + +// .flyteidl.admin.ClusterAssignment cluster_assignment = 20; +inline bool ExecutionSpec::has_cluster_assignment() const { + return this != internal_default_instance() && cluster_assignment_ != nullptr; +} +inline const ::flyteidl::admin::ClusterAssignment& ExecutionSpec::cluster_assignment() const { + const ::flyteidl::admin::ClusterAssignment* p = cluster_assignment_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.cluster_assignment) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ClusterAssignment_default_instance_); +} +inline ::flyteidl::admin::ClusterAssignment* ExecutionSpec::release_cluster_assignment() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.cluster_assignment) + + ::flyteidl::admin::ClusterAssignment* temp = cluster_assignment_; + cluster_assignment_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ClusterAssignment* ExecutionSpec::mutable_cluster_assignment() { + + if (cluster_assignment_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ClusterAssignment>(GetArenaNoVirtual()); + cluster_assignment_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.cluster_assignment) + return cluster_assignment_; +} +inline void ExecutionSpec::set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(cluster_assignment_); + } + if (cluster_assignment) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + cluster_assignment = ::google::protobuf::internal::GetOwnedMessage( + message_arena, cluster_assignment, submessage_arena); + } + + } else { + + } + cluster_assignment_ = cluster_assignment; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.cluster_assignment) +} + +// .google.protobuf.BoolValue interruptible = 21; +inline bool ExecutionSpec::has_interruptible() const { + return this != internal_default_instance() && interruptible_ != nullptr; +} +inline const ::google::protobuf::BoolValue& ExecutionSpec::interruptible() const { + const ::google::protobuf::BoolValue* p = interruptible_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.interruptible) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_BoolValue_default_instance_); +} +inline ::google::protobuf::BoolValue* ExecutionSpec::release_interruptible() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.interruptible) + + ::google::protobuf::BoolValue* temp = interruptible_; + interruptible_ = nullptr; + return temp; +} +inline ::google::protobuf::BoolValue* ExecutionSpec::mutable_interruptible() { + + if (interruptible_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual()); + interruptible_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.interruptible) + return interruptible_; +} +inline void ExecutionSpec::set_allocated_interruptible(::google::protobuf::BoolValue* interruptible) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interruptible_); + } + if (interruptible) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(interruptible)->GetArena(); + if (message_arena != submessage_arena) { + interruptible = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interruptible, submessage_arena); + } + + } else { + + } + interruptible_ = interruptible; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.interruptible) +} + +// bool overwrite_cache = 22; +inline void ExecutionSpec::clear_overwrite_cache() { + overwrite_cache_ = false; +} +inline bool ExecutionSpec::overwrite_cache() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.overwrite_cache) + return overwrite_cache_; +} +inline void ExecutionSpec::set_overwrite_cache(bool value) { + + overwrite_cache_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.overwrite_cache) +} + +// .flyteidl.admin.Envs envs = 23; +inline bool ExecutionSpec::has_envs() const { + return this != internal_default_instance() && envs_ != nullptr; +} +inline const ::flyteidl::admin::Envs& ExecutionSpec::envs() const { + const ::flyteidl::admin::Envs* p = envs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.envs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Envs_default_instance_); +} +inline ::flyteidl::admin::Envs* ExecutionSpec::release_envs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.envs) + + ::flyteidl::admin::Envs* temp = envs_; + envs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Envs* ExecutionSpec::mutable_envs() { + + if (envs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Envs>(GetArenaNoVirtual()); + envs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.envs) + return envs_; +} +inline void ExecutionSpec::set_allocated_envs(::flyteidl::admin::Envs* envs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(envs_); + } + if (envs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + envs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, envs, submessage_arena); + } + + } else { + + } + envs_ = envs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.envs) +} + +// repeated string tags = 24; +inline int ExecutionSpec::tags_size() const { + return tags_.size(); +} +inline void ExecutionSpec::clear_tags() { + tags_.Clear(); +} +inline const ::std::string& ExecutionSpec::tags(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.tags) + return tags_.Get(index); +} +inline ::std::string* ExecutionSpec::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.tags) + return tags_.Mutable(index); +} +inline void ExecutionSpec::set_tags(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.tags) + tags_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void ExecutionSpec::set_tags(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.tags) + tags_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void ExecutionSpec::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionSpec.tags) +} +inline void ExecutionSpec::set_tags(int index, const char* value, size_t size) { + tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionSpec.tags) +} +inline ::std::string* ExecutionSpec::add_tags() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.ExecutionSpec.tags) + return tags_.Add(); +} +inline void ExecutionSpec::add_tags(const ::std::string& value) { + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionSpec.tags) +} +#if LANG_CXX11 +inline void ExecutionSpec::add_tags(::std::string&& value) { + tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionSpec.tags) +} +#endif +inline void ExecutionSpec::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.ExecutionSpec.tags) +} +inline void ExecutionSpec::add_tags(const char* value, size_t size) { + tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.ExecutionSpec.tags) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +ExecutionSpec::tags() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionSpec.tags) + return tags_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +ExecutionSpec::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionSpec.tags) + return &tags_; +} + +inline bool ExecutionSpec::has_notification_overrides() const { + return notification_overrides_case() != NOTIFICATION_OVERRIDES_NOT_SET; +} +inline void ExecutionSpec::clear_has_notification_overrides() { + _oneof_case_[0] = NOTIFICATION_OVERRIDES_NOT_SET; +} +inline ExecutionSpec::NotificationOverridesCase ExecutionSpec::notification_overrides_case() const { + return ExecutionSpec::NotificationOverridesCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ExecutionTerminateRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionTerminateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionTerminateRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionTerminateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionTerminateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionTerminateRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionTerminateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionTerminateRequest.id) + return id_; +} +inline void ExecutionTerminateRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionTerminateRequest.id) +} + +// string cause = 2; +inline void ExecutionTerminateRequest::clear_cause() { + cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionTerminateRequest::cause() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionTerminateRequest.cause) + return cause_.GetNoArena(); +} +inline void ExecutionTerminateRequest::set_cause(const ::std::string& value) { + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionTerminateRequest.cause) +} +#if LANG_CXX11 +inline void ExecutionTerminateRequest::set_cause(::std::string&& value) { + + cause_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionTerminateRequest.cause) +} +#endif +inline void ExecutionTerminateRequest::set_cause(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionTerminateRequest.cause) +} +inline void ExecutionTerminateRequest::set_cause(const char* value, size_t size) { + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionTerminateRequest.cause) +} +inline ::std::string* ExecutionTerminateRequest::mutable_cause() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionTerminateRequest.cause) + return cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionTerminateRequest::release_cause() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionTerminateRequest.cause) + + return cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionTerminateRequest::set_allocated_cause(::std::string* cause) { + if (cause != nullptr) { + + } else { + + } + cause_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cause); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionTerminateRequest.cause) +} + +// ------------------------------------------------------------------- + +// ExecutionTerminateResponse + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetDataRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool WorkflowExecutionGetDataRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetDataRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetDataRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetDataRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataRequest.id) + return id_; +} +inline void WorkflowExecutionGetDataRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataRequest.id) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetDataResponse + +// .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; +inline bool WorkflowExecutionGetDataResponse::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; +} +inline const ::flyteidl::admin::UrlBlob& WorkflowExecutionGetDataResponse::outputs() const { + const ::flyteidl::admin::UrlBlob* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) + + ::flyteidl::admin::UrlBlob* temp = outputs_; + outputs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::mutable_outputs() { + + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); + outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) + return outputs_; +} +inline void WorkflowExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) +} + +// .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; +inline bool WorkflowExecutionGetDataResponse::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::admin::UrlBlob& WorkflowExecutionGetDataResponse::inputs() const { + const ::flyteidl::admin::UrlBlob* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) + + ::flyteidl::admin::UrlBlob* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) + return inputs_; +} +inline void WorkflowExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) +} + +// .flyteidl.core.LiteralMap full_inputs = 3; +inline bool WorkflowExecutionGetDataResponse::has_full_inputs() const { + return this != internal_default_instance() && full_inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& WorkflowExecutionGetDataResponse::full_inputs() const { + const ::flyteidl::core::LiteralMap* p = full_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::release_full_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) + + ::flyteidl::core::LiteralMap* temp = full_inputs_; + full_inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::mutable_full_inputs() { + + if (full_inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + full_inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) + return full_inputs_; +} +inline void WorkflowExecutionGetDataResponse::set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_inputs_); + } + if (full_inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + full_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, full_inputs, submessage_arena); + } + + } else { + + } + full_inputs_ = full_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) +} + +// .flyteidl.core.LiteralMap full_outputs = 4; +inline bool WorkflowExecutionGetDataResponse::has_full_outputs() const { + return this != internal_default_instance() && full_outputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& WorkflowExecutionGetDataResponse::full_outputs() const { + const ::flyteidl::core::LiteralMap* p = full_outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::release_full_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) + + ::flyteidl::core::LiteralMap* temp = full_outputs_; + full_outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::mutable_full_outputs() { + + if (full_outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + full_outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) + return full_outputs_; +} +inline void WorkflowExecutionGetDataResponse::set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_outputs_); + } + if (full_outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + full_outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, full_outputs, submessage_arena); + } + + } else { + + } + full_outputs_ = full_outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) +} + +// ------------------------------------------------------------------- + +// ExecutionUpdateRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionUpdateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionUpdateRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionUpdateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionUpdateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionUpdateRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionUpdateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionUpdateRequest.id) + return id_; +} +inline void ExecutionUpdateRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionUpdateRequest.id) +} + +// .flyteidl.admin.ExecutionState state = 2; +inline void ExecutionUpdateRequest::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::ExecutionState ExecutionUpdateRequest::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionUpdateRequest.state) + return static_cast< ::flyteidl::admin::ExecutionState >(state_); +} +inline void ExecutionUpdateRequest::set_state(::flyteidl::admin::ExecutionState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionUpdateRequest.state) +} + +// ------------------------------------------------------------------- + +// ExecutionStateChangeDetails + +// .flyteidl.admin.ExecutionState state = 1; +inline void ExecutionStateChangeDetails::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::ExecutionState ExecutionStateChangeDetails::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionStateChangeDetails.state) + return static_cast< ::flyteidl::admin::ExecutionState >(state_); +} +inline void ExecutionStateChangeDetails::set_state(::flyteidl::admin::ExecutionState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionStateChangeDetails.state) +} + +// .google.protobuf.Timestamp occurred_at = 2; +inline bool ExecutionStateChangeDetails::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& ExecutionStateChangeDetails::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionStateChangeDetails::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionStateChangeDetails::mutable_occurred_at() { + + if (occurred_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + occurred_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) + return occurred_at_; +} +inline void ExecutionStateChangeDetails::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) +} + +// string principal = 3; +inline void ExecutionStateChangeDetails::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionStateChangeDetails::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionStateChangeDetails.principal) + return principal_.GetNoArena(); +} +inline void ExecutionStateChangeDetails::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionStateChangeDetails.principal) +} +#if LANG_CXX11 +inline void ExecutionStateChangeDetails::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionStateChangeDetails.principal) +} +#endif +inline void ExecutionStateChangeDetails::set_principal(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionStateChangeDetails.principal) +} +inline void ExecutionStateChangeDetails::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionStateChangeDetails.principal) +} +inline ::std::string* ExecutionStateChangeDetails::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionStateChangeDetails.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionStateChangeDetails::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionStateChangeDetails.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionStateChangeDetails::set_allocated_principal(::std::string* principal) { + if (principal != nullptr) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionStateChangeDetails.principal) +} + +// ------------------------------------------------------------------- + +// ExecutionUpdateResponse + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetMetricsRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool WorkflowExecutionGetMetricsRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetMetricsRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetMetricsRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetMetricsRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetMetricsRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetMetricsRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetMetricsRequest.id) + return id_; +} +inline void WorkflowExecutionGetMetricsRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetMetricsRequest.id) +} + +// int32 depth = 2; +inline void WorkflowExecutionGetMetricsRequest::clear_depth() { + depth_ = 0; +} +inline ::google::protobuf::int32 WorkflowExecutionGetMetricsRequest::depth() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetMetricsRequest.depth) + return depth_; +} +inline void WorkflowExecutionGetMetricsRequest::set_depth(::google::protobuf::int32 value) { + + depth_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionGetMetricsRequest.depth) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetMetricsResponse + +// .flyteidl.core.Span span = 1; +inline bool WorkflowExecutionGetMetricsResponse::has_span() const { + return this != internal_default_instance() && span_ != nullptr; +} +inline const ::flyteidl::core::Span& WorkflowExecutionGetMetricsResponse::span() const { + const ::flyteidl::core::Span* p = span_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Span_default_instance_); +} +inline ::flyteidl::core::Span* WorkflowExecutionGetMetricsResponse::release_span() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) + + ::flyteidl::core::Span* temp = span_; + span_ = nullptr; + return temp; +} +inline ::flyteidl::core::Span* WorkflowExecutionGetMetricsResponse::mutable_span() { + + if (span_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Span>(GetArenaNoVirtual()); + span_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) + return span_; +} +inline void WorkflowExecutionGetMetricsResponse::set_allocated_span(::flyteidl::core::Span* span) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(span_); + } + if (span) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + span = ::google::protobuf::internal::GetOwnedMessage( + message_arena, span, submessage_arena); + } + + } else { + + } + span_ = span; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::ExecutionMetadata_ExecutionMode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::ExecutionMetadata_ExecutionMode>() { + return ::flyteidl::admin::ExecutionMetadata_ExecutionMode_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::admin::ExecutionState> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::ExecutionState>() { + return ::flyteidl::admin::ExecutionState_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc new file mode 100644 index 0000000000..9b9cda22fd --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/launch_plan.proto + +#include "flyteidl/admin/launch_plan.pb.h" +#include "flyteidl/admin/launch_plan.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h new file mode 100644 index 0000000000..31b99cb08b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/launch_plan.proto +#ifndef GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED + +#include "flyteidl/admin/launch_plan.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc new file mode 100644 index 0000000000..a0c5b2b23f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc @@ -0,0 +1,5949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +#include "flyteidl/admin/launch_plan.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<13> scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto; +namespace flyteidl { +namespace admin { +class LaunchPlanCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanCreateRequest_default_instance_; +class LaunchPlanCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanCreateResponse_default_instance_; +class LaunchPlanDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlan_default_instance_; +class LaunchPlanListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanList_default_instance_; +class AuthDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Auth_default_instance_; +class LaunchPlanSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanSpec_default_instance_; +class LaunchPlanClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanClosure_default_instance_; +class LaunchPlanMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanMetadata_default_instance_; +class LaunchPlanUpdateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanUpdateRequest_default_instance_; +class LaunchPlanUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LaunchPlanUpdateResponse_default_instance_; +class ActiveLaunchPlanRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ActiveLaunchPlanRequest_default_instance_; +class ActiveLaunchPlanListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ActiveLaunchPlanListRequest_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsLaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanCreateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsLaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base,}}; + +static void InitDefaultsLaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanCreateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, {}}; + +static void InitDefaultsLaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlan_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlan(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlan::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsLaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base, + &scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base,}}; + +static void InitDefaultsLaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanList_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base,}}; + +static void InitDefaultsAuth_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Auth_default_instance_; + new (ptr) ::flyteidl::admin::Auth(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Auth::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAuth_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, {}}; + +static void InitDefaultsLaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanSpec_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<13> scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 13, InitDefaultsLaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base, + &scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base, + &scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, + &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto.base, + &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsLaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanClosure_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsLaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base, + &scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsLaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanMetadata_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsLaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base, + &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsLaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanUpdateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanUpdateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsLaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_LaunchPlanUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanUpdateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_LaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, {}}; + +static void InitDefaultsActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ActiveLaunchPlanRequest_default_instance_; + new (ptr) ::flyteidl::admin::ActiveLaunchPlanRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ActiveLaunchPlanRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ActiveLaunchPlanListRequest_default_instance_; + new (ptr) ::flyteidl::admin::ActiveLaunchPlanListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ActiveLaunchPlanListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[12]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, spec_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, closure_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, launch_plans_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Auth, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Auth, assumable_iam_role_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Auth, kubernetes_service_account_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, workflow_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, entity_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, default_inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, fixed_inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, role_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, labels_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, annotations_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, auth_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, auth_role_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, security_context_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, quality_of_service_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, raw_output_data_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, max_parallelism_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, interruptible_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, overwrite_cache_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, envs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, state_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, expected_inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, expected_outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, created_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, updated_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, schedule_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, notifications_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, state_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, sort_by_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::LaunchPlanCreateRequest)}, + { 7, -1, sizeof(::flyteidl::admin::LaunchPlanCreateResponse)}, + { 12, -1, sizeof(::flyteidl::admin::LaunchPlan)}, + { 20, -1, sizeof(::flyteidl::admin::LaunchPlanList)}, + { 27, -1, sizeof(::flyteidl::admin::Auth)}, + { 34, -1, sizeof(::flyteidl::admin::LaunchPlanSpec)}, + { 55, -1, sizeof(::flyteidl::admin::LaunchPlanClosure)}, + { 65, -1, sizeof(::flyteidl::admin::LaunchPlanMetadata)}, + { 72, -1, sizeof(::flyteidl::admin::LaunchPlanUpdateRequest)}, + { 79, -1, sizeof(::flyteidl::admin::LaunchPlanUpdateResponse)}, + { 84, -1, sizeof(::flyteidl::admin::ActiveLaunchPlanRequest)}, + { 90, -1, sizeof(::flyteidl::admin::ActiveLaunchPlanListRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlan_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Auth_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanUpdateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ActiveLaunchPlanRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ActiveLaunchPlanListRequest_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, "flyteidl/admin/launch_plan.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto, 12, file_level_enum_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2flaunch_5fplan_2eproto[] = + "\n flyteidl/admin/launch_plan.proto\022\016flyt" + "eidl.admin\032\035flyteidl/core/execution.prot" + "o\032\034flyteidl/core/literals.proto\032\036flyteid" + "l/core/identifier.proto\032\035flyteidl/core/i" + "nterface.proto\032\034flyteidl/core/security.p" + "roto\032\035flyteidl/admin/schedule.proto\032\033fly" + "teidl/admin/common.proto\032\037google/protobu" + "f/timestamp.proto\032\036google/protobuf/wrapp" + "ers.proto\"n\n\027LaunchPlanCreateRequest\022%\n\002" + "id\030\001 \001(\0132\031.flyteidl.core.Identifier\022,\n\004s" + "pec\030\002 \001(\0132\036.flyteidl.admin.LaunchPlanSpe" + "c\"\032\n\030LaunchPlanCreateResponse\"\225\001\n\nLaunch" + "Plan\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identif" + "ier\022,\n\004spec\030\002 \001(\0132\036.flyteidl.admin.Launc" + "hPlanSpec\0222\n\007closure\030\003 \001(\0132!.flyteidl.ad" + "min.LaunchPlanClosure\"Q\n\016LaunchPlanList\022" + "0\n\014launch_plans\030\001 \003(\0132\032.flyteidl.admin.L" + "aunchPlan\022\r\n\005token\030\002 \001(\t\"J\n\004Auth\022\032\n\022assu" + "mable_iam_role\030\001 \001(\t\022\"\n\032kubernetes_servi" + "ce_account\030\002 \001(\t:\002\030\001\"\355\005\n\016LaunchPlanSpec\022" + ".\n\013workflow_id\030\001 \001(\0132\031.flyteidl.core.Ide" + "ntifier\022;\n\017entity_metadata\030\002 \001(\0132\".flyte" + "idl.admin.LaunchPlanMetadata\0223\n\016default_" + "inputs\030\003 \001(\0132\033.flyteidl.core.ParameterMa" + "p\022/\n\014fixed_inputs\030\004 \001(\0132\031.flyteidl.core." + "LiteralMap\022\020\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006" + " \001(\0132\026.flyteidl.admin.Labels\0220\n\013annotati" + "ons\030\007 \001(\0132\033.flyteidl.admin.Annotations\022&" + "\n\004auth\030\010 \001(\0132\024.flyteidl.admin.AuthB\002\030\001\022/" + "\n\tauth_role\030\t \001(\0132\030.flyteidl.admin.AuthR" + "oleB\002\030\001\0228\n\020security_context\030\n \001(\0132\036.flyt" + "eidl.core.SecurityContext\022;\n\022quality_of_" + "service\030\020 \001(\0132\037.flyteidl.core.QualityOfS" + "ervice\022C\n\026raw_output_data_config\030\021 \001(\0132#" + ".flyteidl.admin.RawOutputDataConfig\022\027\n\017m" + "ax_parallelism\030\022 \001(\005\0221\n\rinterruptible\030\023 " + "\001(\0132\032.google.protobuf.BoolValue\022\027\n\017overw" + "rite_cache\030\024 \001(\010\022\"\n\004envs\030\025 \001(\0132\024.flyteid" + "l.admin.Envs\"\217\002\n\021LaunchPlanClosure\022.\n\005st" + "ate\030\001 \001(\0162\037.flyteidl.admin.LaunchPlanSta" + "te\0224\n\017expected_inputs\030\002 \001(\0132\033.flyteidl.c" + "ore.ParameterMap\0224\n\020expected_outputs\030\003 \001" + "(\0132\032.flyteidl.core.VariableMap\022.\n\ncreate" + "d_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022." + "\n\nupdated_at\030\005 \001(\0132\032.google.protobuf.Tim" + "estamp\"u\n\022LaunchPlanMetadata\022*\n\010schedule" + "\030\001 \001(\0132\030.flyteidl.admin.Schedule\0223\n\rnoti" + "fications\030\002 \003(\0132\034.flyteidl.admin.Notific" + "ation\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001" + " \001(\0132\031.flyteidl.core.Identifier\022.\n\005state" + "\030\002 \001(\0162\037.flyteidl.admin.LaunchPlanState\"" + "\032\n\030LaunchPlanUpdateResponse\"L\n\027ActiveLau" + "nchPlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.ad" + "min.NamedEntityIdentifier\"\203\001\n\033ActiveLaun" + "chPlanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006do" + "main\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t" + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*" + "+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTI" + "VE\020\001B7Z5github.com/flyteorg/flyteidl/gen" + "/pb-go/flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2flaunch_5fplan_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2flaunch_5fplan_2eproto, + "flyteidl/admin/launch_plan.proto", &assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto, 2389, +}; + +void AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[9] = + { + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + ::AddDescriptors_google_2fprotobuf_2fwrappers_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto, deps, 9); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2flaunch_5fplan_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* LaunchPlanState_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto[0]; +} +bool LaunchPlanState_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +void LaunchPlanCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::LaunchPlanSpec*>( + ::flyteidl::admin::LaunchPlanSpec::internal_default_instance()); +} +class LaunchPlanCreateRequest::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const LaunchPlanCreateRequest* msg); + static const ::flyteidl::admin::LaunchPlanSpec& spec(const LaunchPlanCreateRequest* msg); +}; + +const ::flyteidl::core::Identifier& +LaunchPlanCreateRequest::HasBitSetters::id(const LaunchPlanCreateRequest* msg) { + return *msg->id_; +} +const ::flyteidl::admin::LaunchPlanSpec& +LaunchPlanCreateRequest::HasBitSetters::spec(const LaunchPlanCreateRequest* msg) { + return *msg->spec_; +} +void LaunchPlanCreateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanCreateRequest::kIdFieldNumber; +const int LaunchPlanCreateRequest::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanCreateRequest::LaunchPlanCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanCreateRequest) +} +LaunchPlanCreateRequest::LaunchPlanCreateRequest(const LaunchPlanCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::LaunchPlanSpec(*from.spec_); + } else { + spec_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanCreateRequest) +} + +void LaunchPlanCreateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&spec_) - + reinterpret_cast(&id_)) + sizeof(spec_)); +} + +LaunchPlanCreateRequest::~LaunchPlanCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanCreateRequest) + SharedDtor(); +} + +void LaunchPlanCreateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; +} + +void LaunchPlanCreateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanCreateRequest& LaunchPlanCreateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanCreateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.LaunchPlanSpec spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::LaunchPlanSpec::_InternalParse; + object = msg->mutable_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanCreateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanCreateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::spec(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanCreateRequest) +} + +::google::protobuf::uint8* LaunchPlanCreateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::spec(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanCreateRequest) + return target; +} + +size_t LaunchPlanCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanCreateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanCreateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanCreateRequest) + MergeFrom(*source); + } +} + +void LaunchPlanCreateRequest::MergeFrom(const LaunchPlanCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::LaunchPlanSpec::MergeFrom(from.spec()); + } +} + +void LaunchPlanCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanCreateRequest::CopyFrom(const LaunchPlanCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanCreateRequest::IsInitialized() const { + return true; +} + +void LaunchPlanCreateRequest::Swap(LaunchPlanCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanCreateRequest::InternalSwap(LaunchPlanCreateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(spec_, other->spec_); +} + +::google::protobuf::Metadata LaunchPlanCreateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanCreateResponse::InitAsDefaultInstance() { +} +class LaunchPlanCreateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanCreateResponse::LaunchPlanCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanCreateResponse) +} +LaunchPlanCreateResponse::LaunchPlanCreateResponse(const LaunchPlanCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanCreateResponse) +} + +void LaunchPlanCreateResponse::SharedCtor() { +} + +LaunchPlanCreateResponse::~LaunchPlanCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanCreateResponse) + SharedDtor(); +} + +void LaunchPlanCreateResponse::SharedDtor() { +} + +void LaunchPlanCreateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanCreateResponse& LaunchPlanCreateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanCreateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanCreateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanCreateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanCreateResponse) +} + +::google::protobuf::uint8* LaunchPlanCreateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanCreateResponse) + return target; +} + +size_t LaunchPlanCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanCreateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanCreateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanCreateResponse) + MergeFrom(*source); + } +} + +void LaunchPlanCreateResponse::MergeFrom(const LaunchPlanCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void LaunchPlanCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanCreateResponse::CopyFrom(const LaunchPlanCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanCreateResponse::IsInitialized() const { + return true; +} + +void LaunchPlanCreateResponse::Swap(LaunchPlanCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanCreateResponse::InternalSwap(LaunchPlanCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LaunchPlanCreateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlan::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::LaunchPlanSpec*>( + ::flyteidl::admin::LaunchPlanSpec::internal_default_instance()); + ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::LaunchPlanClosure*>( + ::flyteidl::admin::LaunchPlanClosure::internal_default_instance()); +} +class LaunchPlan::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const LaunchPlan* msg); + static const ::flyteidl::admin::LaunchPlanSpec& spec(const LaunchPlan* msg); + static const ::flyteidl::admin::LaunchPlanClosure& closure(const LaunchPlan* msg); +}; + +const ::flyteidl::core::Identifier& +LaunchPlan::HasBitSetters::id(const LaunchPlan* msg) { + return *msg->id_; +} +const ::flyteidl::admin::LaunchPlanSpec& +LaunchPlan::HasBitSetters::spec(const LaunchPlan* msg) { + return *msg->spec_; +} +const ::flyteidl::admin::LaunchPlanClosure& +LaunchPlan::HasBitSetters::closure(const LaunchPlan* msg) { + return *msg->closure_; +} +void LaunchPlan::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlan::kIdFieldNumber; +const int LaunchPlan::kSpecFieldNumber; +const int LaunchPlan::kClosureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlan::LaunchPlan() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlan) +} +LaunchPlan::LaunchPlan(const LaunchPlan& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::LaunchPlanSpec(*from.spec_); + } else { + spec_ = nullptr; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::LaunchPlanClosure(*from.closure_); + } else { + closure_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlan) +} + +void LaunchPlan::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); +} + +LaunchPlan::~LaunchPlan() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlan) + SharedDtor(); +} + +void LaunchPlan::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; + if (this != internal_default_instance()) delete closure_; +} + +void LaunchPlan::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlan& LaunchPlan::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlan::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlan) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlan::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.LaunchPlanSpec spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::LaunchPlanSpec::_InternalParse; + object = msg->mutable_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.LaunchPlanClosure closure = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::LaunchPlanClosure::_InternalParse; + object = msg->mutable_closure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlan::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlan) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlan) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlan) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlan::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlan) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::spec(this), output); + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::closure(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlan) +} + +::google::protobuf::uint8* LaunchPlan::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlan) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::spec(this), target); + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::closure(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlan) + return target; +} + +size_t LaunchPlan::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlan) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *spec_); + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlan::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlan) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlan* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlan) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlan) + MergeFrom(*source); + } +} + +void LaunchPlan::MergeFrom(const LaunchPlan& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlan) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::LaunchPlanSpec::MergeFrom(from.spec()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::LaunchPlanClosure::MergeFrom(from.closure()); + } +} + +void LaunchPlan::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlan) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlan::CopyFrom(const LaunchPlan& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlan) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlan::IsInitialized() const { + return true; +} + +void LaunchPlan::Swap(LaunchPlan* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlan::InternalSwap(LaunchPlan* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(spec_, other->spec_); + swap(closure_, other->closure_); +} + +::google::protobuf::Metadata LaunchPlan::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanList::InitAsDefaultInstance() { +} +class LaunchPlanList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanList::kLaunchPlansFieldNumber; +const int LaunchPlanList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanList::LaunchPlanList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanList) +} +LaunchPlanList::LaunchPlanList(const LaunchPlanList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + launch_plans_(from.launch_plans_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanList) +} + +void LaunchPlanList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +LaunchPlanList::~LaunchPlanList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanList) + SharedDtor(); +} + +void LaunchPlanList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LaunchPlanList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanList& LaunchPlanList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + launch_plans_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::LaunchPlan::_InternalParse; + object = msg->add_launch_plans(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.LaunchPlanList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_launch_plans())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.LaunchPlanList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + for (unsigned int i = 0, + n = static_cast(this->launch_plans_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->launch_plans(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LaunchPlanList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanList) +} + +::google::protobuf::uint8* LaunchPlanList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + for (unsigned int i = 0, + n = static_cast(this->launch_plans_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->launch_plans(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LaunchPlanList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanList) + return target; +} + +size_t LaunchPlanList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + { + unsigned int count = static_cast(this->launch_plans_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->launch_plans(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanList) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanList) + MergeFrom(*source); + } +} + +void LaunchPlanList::MergeFrom(const LaunchPlanList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + launch_plans_.MergeFrom(from.launch_plans_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void LaunchPlanList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanList::CopyFrom(const LaunchPlanList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanList::IsInitialized() const { + return true; +} + +void LaunchPlanList::Swap(LaunchPlanList* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanList::InternalSwap(LaunchPlanList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&launch_plans_)->InternalSwap(CastToBase(&other->launch_plans_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata LaunchPlanList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Auth::InitAsDefaultInstance() { +} +class Auth::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Auth::kAssumableIamRoleFieldNumber; +const int Auth::kKubernetesServiceAccountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Auth::Auth() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Auth) +} +Auth::Auth(const Auth& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.assumable_iam_role().size() > 0) { + assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); + } + kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.kubernetes_service_account().size() > 0) { + kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Auth) +} + +void Auth::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Auth::~Auth() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Auth) + SharedDtor(); +} + +void Auth::SharedDtor() { + assumable_iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kubernetes_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Auth::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Auth& Auth::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void Auth::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Auth) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Auth::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string assumable_iam_role = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Auth.assumable_iam_role"); + object = msg->mutable_assumable_iam_role(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string kubernetes_service_account = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Auth.kubernetes_service_account"); + object = msg->mutable_kubernetes_service_account(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Auth::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Auth) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string assumable_iam_role = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_assumable_iam_role())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Auth.assumable_iam_role")); + } else { + goto handle_unusual; + } + break; + } + + // string kubernetes_service_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_kubernetes_service_account())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Auth.kubernetes_service_account")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Auth) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Auth) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Auth::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Auth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (this->assumable_iam_role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.assumable_iam_role"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->assumable_iam_role(), output); + } + + // string kubernetes_service_account = 2; + if (this->kubernetes_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.kubernetes_service_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->kubernetes_service_account(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Auth) +} + +::google::protobuf::uint8* Auth::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Auth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (this->assumable_iam_role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.assumable_iam_role"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->assumable_iam_role(), target); + } + + // string kubernetes_service_account = 2; + if (this->kubernetes_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.kubernetes_service_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->kubernetes_service_account(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Auth) + return target; +} + +size_t Auth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Auth) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (this->assumable_iam_role().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->assumable_iam_role()); + } + + // string kubernetes_service_account = 2; + if (this->kubernetes_service_account().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->kubernetes_service_account()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Auth::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Auth) + GOOGLE_DCHECK_NE(&from, this); + const Auth* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Auth) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Auth) + MergeFrom(*source); + } +} + +void Auth::MergeFrom(const Auth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Auth) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.assumable_iam_role().size() > 0) { + + assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); + } + if (from.kubernetes_service_account().size() > 0) { + + kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); + } +} + +void Auth::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Auth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Auth::CopyFrom(const Auth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Auth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Auth::IsInitialized() const { + return true; +} + +void Auth::Swap(Auth* other) { + if (other == this) return; + InternalSwap(other); +} +void Auth::InternalSwap(Auth* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + assumable_iam_role_.Swap(&other->assumable_iam_role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + kubernetes_service_account_.Swap(&other->kubernetes_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Auth::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->entity_metadata_ = const_cast< ::flyteidl::admin::LaunchPlanMetadata*>( + ::flyteidl::admin::LaunchPlanMetadata::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->default_inputs_ = const_cast< ::flyteidl::core::ParameterMap*>( + ::flyteidl::core::ParameterMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->fixed_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( + ::flyteidl::admin::Labels::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( + ::flyteidl::admin::Annotations::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->auth_ = const_cast< ::flyteidl::admin::Auth*>( + ::flyteidl::admin::Auth::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->auth_role_ = const_cast< ::flyteidl::admin::AuthRole*>( + ::flyteidl::admin::AuthRole::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( + ::flyteidl::core::SecurityContext::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( + ::flyteidl::core::QualityOfService::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->raw_output_data_config_ = const_cast< ::flyteidl::admin::RawOutputDataConfig*>( + ::flyteidl::admin::RawOutputDataConfig::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->interruptible_ = const_cast< ::google::protobuf::BoolValue*>( + ::google::protobuf::BoolValue::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->envs_ = const_cast< ::flyteidl::admin::Envs*>( + ::flyteidl::admin::Envs::internal_default_instance()); +} +class LaunchPlanSpec::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& workflow_id(const LaunchPlanSpec* msg); + static const ::flyteidl::admin::LaunchPlanMetadata& entity_metadata(const LaunchPlanSpec* msg); + static const ::flyteidl::core::ParameterMap& default_inputs(const LaunchPlanSpec* msg); + static const ::flyteidl::core::LiteralMap& fixed_inputs(const LaunchPlanSpec* msg); + static const ::flyteidl::admin::Labels& labels(const LaunchPlanSpec* msg); + static const ::flyteidl::admin::Annotations& annotations(const LaunchPlanSpec* msg); + static const ::flyteidl::admin::Auth& auth(const LaunchPlanSpec* msg); + static const ::flyteidl::admin::AuthRole& auth_role(const LaunchPlanSpec* msg); + static const ::flyteidl::core::SecurityContext& security_context(const LaunchPlanSpec* msg); + static const ::flyteidl::core::QualityOfService& quality_of_service(const LaunchPlanSpec* msg); + static const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config(const LaunchPlanSpec* msg); + static const ::google::protobuf::BoolValue& interruptible(const LaunchPlanSpec* msg); + static const ::flyteidl::admin::Envs& envs(const LaunchPlanSpec* msg); +}; + +const ::flyteidl::core::Identifier& +LaunchPlanSpec::HasBitSetters::workflow_id(const LaunchPlanSpec* msg) { + return *msg->workflow_id_; +} +const ::flyteidl::admin::LaunchPlanMetadata& +LaunchPlanSpec::HasBitSetters::entity_metadata(const LaunchPlanSpec* msg) { + return *msg->entity_metadata_; +} +const ::flyteidl::core::ParameterMap& +LaunchPlanSpec::HasBitSetters::default_inputs(const LaunchPlanSpec* msg) { + return *msg->default_inputs_; +} +const ::flyteidl::core::LiteralMap& +LaunchPlanSpec::HasBitSetters::fixed_inputs(const LaunchPlanSpec* msg) { + return *msg->fixed_inputs_; +} +const ::flyteidl::admin::Labels& +LaunchPlanSpec::HasBitSetters::labels(const LaunchPlanSpec* msg) { + return *msg->labels_; +} +const ::flyteidl::admin::Annotations& +LaunchPlanSpec::HasBitSetters::annotations(const LaunchPlanSpec* msg) { + return *msg->annotations_; +} +const ::flyteidl::admin::Auth& +LaunchPlanSpec::HasBitSetters::auth(const LaunchPlanSpec* msg) { + return *msg->auth_; +} +const ::flyteidl::admin::AuthRole& +LaunchPlanSpec::HasBitSetters::auth_role(const LaunchPlanSpec* msg) { + return *msg->auth_role_; +} +const ::flyteidl::core::SecurityContext& +LaunchPlanSpec::HasBitSetters::security_context(const LaunchPlanSpec* msg) { + return *msg->security_context_; +} +const ::flyteidl::core::QualityOfService& +LaunchPlanSpec::HasBitSetters::quality_of_service(const LaunchPlanSpec* msg) { + return *msg->quality_of_service_; +} +const ::flyteidl::admin::RawOutputDataConfig& +LaunchPlanSpec::HasBitSetters::raw_output_data_config(const LaunchPlanSpec* msg) { + return *msg->raw_output_data_config_; +} +const ::google::protobuf::BoolValue& +LaunchPlanSpec::HasBitSetters::interruptible(const LaunchPlanSpec* msg) { + return *msg->interruptible_; +} +const ::flyteidl::admin::Envs& +LaunchPlanSpec::HasBitSetters::envs(const LaunchPlanSpec* msg) { + return *msg->envs_; +} +void LaunchPlanSpec::clear_workflow_id() { + if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { + delete workflow_id_; + } + workflow_id_ = nullptr; +} +void LaunchPlanSpec::clear_default_inputs() { + if (GetArenaNoVirtual() == nullptr && default_inputs_ != nullptr) { + delete default_inputs_; + } + default_inputs_ = nullptr; +} +void LaunchPlanSpec::clear_fixed_inputs() { + if (GetArenaNoVirtual() == nullptr && fixed_inputs_ != nullptr) { + delete fixed_inputs_; + } + fixed_inputs_ = nullptr; +} +void LaunchPlanSpec::clear_labels() { + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; +} +void LaunchPlanSpec::clear_annotations() { + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; +} +void LaunchPlanSpec::clear_auth_role() { + if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { + delete auth_role_; + } + auth_role_ = nullptr; +} +void LaunchPlanSpec::clear_security_context() { + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; +} +void LaunchPlanSpec::clear_quality_of_service() { + if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { + delete quality_of_service_; + } + quality_of_service_ = nullptr; +} +void LaunchPlanSpec::clear_raw_output_data_config() { + if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { + delete raw_output_data_config_; + } + raw_output_data_config_ = nullptr; +} +void LaunchPlanSpec::clear_interruptible() { + if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { + delete interruptible_; + } + interruptible_ = nullptr; +} +void LaunchPlanSpec::clear_envs() { + if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { + delete envs_; + } + envs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanSpec::kWorkflowIdFieldNumber; +const int LaunchPlanSpec::kEntityMetadataFieldNumber; +const int LaunchPlanSpec::kDefaultInputsFieldNumber; +const int LaunchPlanSpec::kFixedInputsFieldNumber; +const int LaunchPlanSpec::kRoleFieldNumber; +const int LaunchPlanSpec::kLabelsFieldNumber; +const int LaunchPlanSpec::kAnnotationsFieldNumber; +const int LaunchPlanSpec::kAuthFieldNumber; +const int LaunchPlanSpec::kAuthRoleFieldNumber; +const int LaunchPlanSpec::kSecurityContextFieldNumber; +const int LaunchPlanSpec::kQualityOfServiceFieldNumber; +const int LaunchPlanSpec::kRawOutputDataConfigFieldNumber; +const int LaunchPlanSpec::kMaxParallelismFieldNumber; +const int LaunchPlanSpec::kInterruptibleFieldNumber; +const int LaunchPlanSpec::kOverwriteCacheFieldNumber; +const int LaunchPlanSpec::kEnvsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanSpec::LaunchPlanSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanSpec) +} +LaunchPlanSpec::LaunchPlanSpec(const LaunchPlanSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.role().size() > 0) { + role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_); + } + if (from.has_workflow_id()) { + workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); + } else { + workflow_id_ = nullptr; + } + if (from.has_entity_metadata()) { + entity_metadata_ = new ::flyteidl::admin::LaunchPlanMetadata(*from.entity_metadata_); + } else { + entity_metadata_ = nullptr; + } + if (from.has_default_inputs()) { + default_inputs_ = new ::flyteidl::core::ParameterMap(*from.default_inputs_); + } else { + default_inputs_ = nullptr; + } + if (from.has_fixed_inputs()) { + fixed_inputs_ = new ::flyteidl::core::LiteralMap(*from.fixed_inputs_); + } else { + fixed_inputs_ = nullptr; + } + if (from.has_labels()) { + labels_ = new ::flyteidl::admin::Labels(*from.labels_); + } else { + labels_ = nullptr; + } + if (from.has_annotations()) { + annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); + } else { + annotations_ = nullptr; + } + if (from.has_auth()) { + auth_ = new ::flyteidl::admin::Auth(*from.auth_); + } else { + auth_ = nullptr; + } + if (from.has_auth_role()) { + auth_role_ = new ::flyteidl::admin::AuthRole(*from.auth_role_); + } else { + auth_role_ = nullptr; + } + if (from.has_security_context()) { + security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); + } else { + security_context_ = nullptr; + } + if (from.has_quality_of_service()) { + quality_of_service_ = new ::flyteidl::core::QualityOfService(*from.quality_of_service_); + } else { + quality_of_service_ = nullptr; + } + if (from.has_raw_output_data_config()) { + raw_output_data_config_ = new ::flyteidl::admin::RawOutputDataConfig(*from.raw_output_data_config_); + } else { + raw_output_data_config_ = nullptr; + } + if (from.has_interruptible()) { + interruptible_ = new ::google::protobuf::BoolValue(*from.interruptible_); + } else { + interruptible_ = nullptr; + } + if (from.has_envs()) { + envs_ = new ::flyteidl::admin::Envs(*from.envs_); + } else { + envs_ = nullptr; + } + ::memcpy(&max_parallelism_, &from.max_parallelism_, + static_cast(reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanSpec) +} + +void LaunchPlanSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&workflow_id_, 0, static_cast( + reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&workflow_id_)) + sizeof(overwrite_cache_)); +} + +LaunchPlanSpec::~LaunchPlanSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanSpec) + SharedDtor(); +} + +void LaunchPlanSpec::SharedDtor() { + role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete workflow_id_; + if (this != internal_default_instance()) delete entity_metadata_; + if (this != internal_default_instance()) delete default_inputs_; + if (this != internal_default_instance()) delete fixed_inputs_; + if (this != internal_default_instance()) delete labels_; + if (this != internal_default_instance()) delete annotations_; + if (this != internal_default_instance()) delete auth_; + if (this != internal_default_instance()) delete auth_role_; + if (this != internal_default_instance()) delete security_context_; + if (this != internal_default_instance()) delete quality_of_service_; + if (this != internal_default_instance()) delete raw_output_data_config_; + if (this != internal_default_instance()) delete interruptible_; + if (this != internal_default_instance()) delete envs_; +} + +void LaunchPlanSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanSpec& LaunchPlanSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { + delete workflow_id_; + } + workflow_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && entity_metadata_ != nullptr) { + delete entity_metadata_; + } + entity_metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && default_inputs_ != nullptr) { + delete default_inputs_; + } + default_inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && fixed_inputs_ != nullptr) { + delete fixed_inputs_; + } + fixed_inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; + if (GetArenaNoVirtual() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; + if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { + delete auth_role_; + } + auth_role_ = nullptr; + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; + if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { + delete quality_of_service_; + } + quality_of_service_ = nullptr; + if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { + delete raw_output_data_config_; + } + raw_output_data_config_ = nullptr; + if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { + delete interruptible_; + } + interruptible_ = nullptr; + if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { + delete envs_; + } + envs_ = nullptr; + ::memset(&max_parallelism_, 0, static_cast( + reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier workflow_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_workflow_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::LaunchPlanMetadata::_InternalParse; + object = msg->mutable_entity_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.ParameterMap default_inputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ParameterMap::_InternalParse; + object = msg->mutable_default_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap fixed_inputs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_fixed_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string role = 5 [deprecated = true]; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.LaunchPlanSpec.role"); + object = msg->mutable_role(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Labels labels = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Labels::_InternalParse; + object = msg->mutable_labels(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.Annotations annotations = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Annotations::_InternalParse; + object = msg->mutable_annotations(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.Auth auth = 8 [deprecated = true]; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Auth::_InternalParse; + object = msg->mutable_auth(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::AuthRole::_InternalParse; + object = msg->mutable_auth_role(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.SecurityContext security_context = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SecurityContext::_InternalParse; + object = msg->mutable_security_context(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.QualityOfService quality_of_service = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::QualityOfService::_InternalParse; + object = msg->mutable_quality_of_service(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::RawOutputDataConfig::_InternalParse; + object = msg->mutable_raw_output_data_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 max_parallelism = 18; + case 18: { + if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; + msg->set_max_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.BoolValue interruptible = 19; + case 19: { + if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::BoolValue::_InternalParse; + object = msg->mutable_interruptible(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool overwrite_cache = 20; + case 20: { + if (static_cast<::google::protobuf::uint8>(tag) != 160) goto handle_unusual; + msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.Envs envs = 21; + case 21: { + if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Envs::_InternalParse; + object = msg->mutable_envs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier workflow_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_entity_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_default_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_fixed_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // string role = 5 [deprecated = true]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_role())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->role().data(), static_cast(this->role().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.LaunchPlanSpec.role")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Labels labels = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_labels())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Annotations annotations = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_annotations())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Auth auth = 8 [deprecated = true]; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_auth())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_auth_role())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SecurityContext security_context = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_security_context())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.QualityOfService quality_of_service = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_quality_of_service())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_raw_output_data_config())); + } else { + goto handle_unusual; + } + break; + } + + // int32 max_parallelism = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_parallelism_))); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.BoolValue interruptible = 19; + case 19: { + if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interruptible())); + } else { + goto handle_unusual; + } + break; + } + + // bool overwrite_cache = 20; + case 20: { + if (static_cast< ::google::protobuf::uint8>(tag) == (160 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &overwrite_cache_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Envs envs = 21; + case 21: { + if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_envs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier workflow_id = 1; + if (this->has_workflow_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::workflow_id(this), output); + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + if (this->has_entity_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::entity_metadata(this), output); + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + if (this->has_default_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::default_inputs(this), output); + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + if (this->has_fixed_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::fixed_inputs(this), output); + } + + // string role = 5 [deprecated = true]; + if (this->role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->role().data(), static_cast(this->role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LaunchPlanSpec.role"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->role(), output); + } + + // .flyteidl.admin.Labels labels = 6; + if (this->has_labels()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::labels(this), output); + } + + // .flyteidl.admin.Annotations annotations = 7; + if (this->has_annotations()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::annotations(this), output); + } + + // .flyteidl.admin.Auth auth = 8 [deprecated = true]; + if (this->has_auth()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::auth(this), output); + } + + // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + if (this->has_auth_role()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::auth_role(this), output); + } + + // .flyteidl.core.SecurityContext security_context = 10; + if (this->has_security_context()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::security_context(this), output); + } + + // .flyteidl.core.QualityOfService quality_of_service = 16; + if (this->has_quality_of_service()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, HasBitSetters::quality_of_service(this), output); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + if (this->has_raw_output_data_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, HasBitSetters::raw_output_data_config(this), output); + } + + // int32 max_parallelism = 18; + if (this->max_parallelism() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->max_parallelism(), output); + } + + // .google.protobuf.BoolValue interruptible = 19; + if (this->has_interruptible()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 19, HasBitSetters::interruptible(this), output); + } + + // bool overwrite_cache = 20; + if (this->overwrite_cache() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->overwrite_cache(), output); + } + + // .flyteidl.admin.Envs envs = 21; + if (this->has_envs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 21, HasBitSetters::envs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanSpec) +} + +::google::protobuf::uint8* LaunchPlanSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier workflow_id = 1; + if (this->has_workflow_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::workflow_id(this), target); + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + if (this->has_entity_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::entity_metadata(this), target); + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + if (this->has_default_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::default_inputs(this), target); + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + if (this->has_fixed_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::fixed_inputs(this), target); + } + + // string role = 5 [deprecated = true]; + if (this->role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->role().data(), static_cast(this->role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LaunchPlanSpec.role"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->role(), target); + } + + // .flyteidl.admin.Labels labels = 6; + if (this->has_labels()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::labels(this), target); + } + + // .flyteidl.admin.Annotations annotations = 7; + if (this->has_annotations()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::annotations(this), target); + } + + // .flyteidl.admin.Auth auth = 8 [deprecated = true]; + if (this->has_auth()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::auth(this), target); + } + + // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + if (this->has_auth_role()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::auth_role(this), target); + } + + // .flyteidl.core.SecurityContext security_context = 10; + if (this->has_security_context()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::security_context(this), target); + } + + // .flyteidl.core.QualityOfService quality_of_service = 16; + if (this->has_quality_of_service()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, HasBitSetters::quality_of_service(this), target); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + if (this->has_raw_output_data_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 17, HasBitSetters::raw_output_data_config(this), target); + } + + // int32 max_parallelism = 18; + if (this->max_parallelism() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->max_parallelism(), target); + } + + // .google.protobuf.BoolValue interruptible = 19; + if (this->has_interruptible()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 19, HasBitSetters::interruptible(this), target); + } + + // bool overwrite_cache = 20; + if (this->overwrite_cache() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->overwrite_cache(), target); + } + + // .flyteidl.admin.Envs envs = 21; + if (this->has_envs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 21, HasBitSetters::envs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanSpec) + return target; +} + +size_t LaunchPlanSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string role = 5 [deprecated = true]; + if (this->role().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->role()); + } + + // .flyteidl.core.Identifier workflow_id = 1; + if (this->has_workflow_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *workflow_id_); + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + if (this->has_entity_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *entity_metadata_); + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + if (this->has_default_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *default_inputs_); + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + if (this->has_fixed_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *fixed_inputs_); + } + + // .flyteidl.admin.Labels labels = 6; + if (this->has_labels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *labels_); + } + + // .flyteidl.admin.Annotations annotations = 7; + if (this->has_annotations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *annotations_); + } + + // .flyteidl.admin.Auth auth = 8 [deprecated = true]; + if (this->has_auth()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *auth_); + } + + // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + if (this->has_auth_role()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *auth_role_); + } + + // .flyteidl.core.SecurityContext security_context = 10; + if (this->has_security_context()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *security_context_); + } + + // .flyteidl.core.QualityOfService quality_of_service = 16; + if (this->has_quality_of_service()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *quality_of_service_); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + if (this->has_raw_output_data_config()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *raw_output_data_config_); + } + + // .google.protobuf.BoolValue interruptible = 19; + if (this->has_interruptible()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *interruptible_); + } + + // .flyteidl.admin.Envs envs = 21; + if (this->has_envs()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *envs_); + } + + // int32 max_parallelism = 18; + if (this->max_parallelism() != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_parallelism()); + } + + // bool overwrite_cache = 20; + if (this->overwrite_cache() != 0) { + total_size += 2 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanSpec) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanSpec) + MergeFrom(*source); + } +} + +void LaunchPlanSpec::MergeFrom(const LaunchPlanSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.role().size() > 0) { + + role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_); + } + if (from.has_workflow_id()) { + mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); + } + if (from.has_entity_metadata()) { + mutable_entity_metadata()->::flyteidl::admin::LaunchPlanMetadata::MergeFrom(from.entity_metadata()); + } + if (from.has_default_inputs()) { + mutable_default_inputs()->::flyteidl::core::ParameterMap::MergeFrom(from.default_inputs()); + } + if (from.has_fixed_inputs()) { + mutable_fixed_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.fixed_inputs()); + } + if (from.has_labels()) { + mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); + } + if (from.has_annotations()) { + mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); + } + if (from.has_auth()) { + mutable_auth()->::flyteidl::admin::Auth::MergeFrom(from.auth()); + } + if (from.has_auth_role()) { + mutable_auth_role()->::flyteidl::admin::AuthRole::MergeFrom(from.auth_role()); + } + if (from.has_security_context()) { + mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); + } + if (from.has_quality_of_service()) { + mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); + } + if (from.has_raw_output_data_config()) { + mutable_raw_output_data_config()->::flyteidl::admin::RawOutputDataConfig::MergeFrom(from.raw_output_data_config()); + } + if (from.has_interruptible()) { + mutable_interruptible()->::google::protobuf::BoolValue::MergeFrom(from.interruptible()); + } + if (from.has_envs()) { + mutable_envs()->::flyteidl::admin::Envs::MergeFrom(from.envs()); + } + if (from.max_parallelism() != 0) { + set_max_parallelism(from.max_parallelism()); + } + if (from.overwrite_cache() != 0) { + set_overwrite_cache(from.overwrite_cache()); + } +} + +void LaunchPlanSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanSpec::CopyFrom(const LaunchPlanSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanSpec::IsInitialized() const { + return true; +} + +void LaunchPlanSpec::Swap(LaunchPlanSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanSpec::InternalSwap(LaunchPlanSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + role_.Swap(&other->role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(workflow_id_, other->workflow_id_); + swap(entity_metadata_, other->entity_metadata_); + swap(default_inputs_, other->default_inputs_); + swap(fixed_inputs_, other->fixed_inputs_); + swap(labels_, other->labels_); + swap(annotations_, other->annotations_); + swap(auth_, other->auth_); + swap(auth_role_, other->auth_role_); + swap(security_context_, other->security_context_); + swap(quality_of_service_, other->quality_of_service_); + swap(raw_output_data_config_, other->raw_output_data_config_); + swap(interruptible_, other->interruptible_); + swap(envs_, other->envs_); + swap(max_parallelism_, other->max_parallelism_); + swap(overwrite_cache_, other->overwrite_cache_); +} + +::google::protobuf::Metadata LaunchPlanSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->expected_inputs_ = const_cast< ::flyteidl::core::ParameterMap*>( + ::flyteidl::core::ParameterMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->expected_outputs_ = const_cast< ::flyteidl::core::VariableMap*>( + ::flyteidl::core::VariableMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class LaunchPlanClosure::HasBitSetters { + public: + static const ::flyteidl::core::ParameterMap& expected_inputs(const LaunchPlanClosure* msg); + static const ::flyteidl::core::VariableMap& expected_outputs(const LaunchPlanClosure* msg); + static const ::google::protobuf::Timestamp& created_at(const LaunchPlanClosure* msg); + static const ::google::protobuf::Timestamp& updated_at(const LaunchPlanClosure* msg); +}; + +const ::flyteidl::core::ParameterMap& +LaunchPlanClosure::HasBitSetters::expected_inputs(const LaunchPlanClosure* msg) { + return *msg->expected_inputs_; +} +const ::flyteidl::core::VariableMap& +LaunchPlanClosure::HasBitSetters::expected_outputs(const LaunchPlanClosure* msg) { + return *msg->expected_outputs_; +} +const ::google::protobuf::Timestamp& +LaunchPlanClosure::HasBitSetters::created_at(const LaunchPlanClosure* msg) { + return *msg->created_at_; +} +const ::google::protobuf::Timestamp& +LaunchPlanClosure::HasBitSetters::updated_at(const LaunchPlanClosure* msg) { + return *msg->updated_at_; +} +void LaunchPlanClosure::clear_expected_inputs() { + if (GetArenaNoVirtual() == nullptr && expected_inputs_ != nullptr) { + delete expected_inputs_; + } + expected_inputs_ = nullptr; +} +void LaunchPlanClosure::clear_expected_outputs() { + if (GetArenaNoVirtual() == nullptr && expected_outputs_ != nullptr) { + delete expected_outputs_; + } + expected_outputs_ = nullptr; +} +void LaunchPlanClosure::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} +void LaunchPlanClosure::clear_updated_at() { + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanClosure::kStateFieldNumber; +const int LaunchPlanClosure::kExpectedInputsFieldNumber; +const int LaunchPlanClosure::kExpectedOutputsFieldNumber; +const int LaunchPlanClosure::kCreatedAtFieldNumber; +const int LaunchPlanClosure::kUpdatedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanClosure::LaunchPlanClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanClosure) +} +LaunchPlanClosure::LaunchPlanClosure(const LaunchPlanClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_expected_inputs()) { + expected_inputs_ = new ::flyteidl::core::ParameterMap(*from.expected_inputs_); + } else { + expected_inputs_ = nullptr; + } + if (from.has_expected_outputs()) { + expected_outputs_ = new ::flyteidl::core::VariableMap(*from.expected_outputs_); + } else { + expected_outputs_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanClosure) +} + +void LaunchPlanClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::memset(&expected_inputs_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&expected_inputs_)) + sizeof(state_)); +} + +LaunchPlanClosure::~LaunchPlanClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanClosure) + SharedDtor(); +} + +void LaunchPlanClosure::SharedDtor() { + if (this != internal_default_instance()) delete expected_inputs_; + if (this != internal_default_instance()) delete expected_outputs_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; +} + +void LaunchPlanClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanClosure& LaunchPlanClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && expected_inputs_ != nullptr) { + delete expected_inputs_; + } + expected_inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && expected_outputs_ != nullptr) { + delete expected_outputs_; + } + expected_outputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.LaunchPlanState state = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::LaunchPlanState>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.ParameterMap expected_inputs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ParameterMap::_InternalParse; + object = msg->mutable_expected_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.VariableMap expected_outputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::VariableMap::_InternalParse; + object = msg->mutable_expected_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp created_at = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp updated_at = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_updated_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.LaunchPlanState state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::LaunchPlanState >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ParameterMap expected_inputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expected_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expected_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LaunchPlanState state = 1; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // .flyteidl.core.ParameterMap expected_inputs = 2; + if (this->has_expected_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::expected_inputs(this), output); + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + if (this->has_expected_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::expected_outputs(this), output); + } + + // .google.protobuf.Timestamp created_at = 4; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::created_at(this), output); + } + + // .google.protobuf.Timestamp updated_at = 5; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::updated_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanClosure) +} + +::google::protobuf::uint8* LaunchPlanClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LaunchPlanState state = 1; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // .flyteidl.core.ParameterMap expected_inputs = 2; + if (this->has_expected_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::expected_inputs(this), target); + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + if (this->has_expected_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::expected_outputs(this), target); + } + + // .google.protobuf.Timestamp created_at = 4; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::created_at(this), target); + } + + // .google.protobuf.Timestamp updated_at = 5; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::updated_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanClosure) + return target; +} + +size_t LaunchPlanClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.ParameterMap expected_inputs = 2; + if (this->has_expected_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expected_inputs_); + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + if (this->has_expected_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expected_outputs_); + } + + // .google.protobuf.Timestamp created_at = 4; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); + } + + // .google.protobuf.Timestamp updated_at = 5; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *updated_at_); + } + + // .flyteidl.admin.LaunchPlanState state = 1; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanClosure) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanClosure) + MergeFrom(*source); + } +} + +void LaunchPlanClosure::MergeFrom(const LaunchPlanClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_expected_inputs()) { + mutable_expected_inputs()->::flyteidl::core::ParameterMap::MergeFrom(from.expected_inputs()); + } + if (from.has_expected_outputs()) { + mutable_expected_outputs()->::flyteidl::core::VariableMap::MergeFrom(from.expected_outputs()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void LaunchPlanClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanClosure::CopyFrom(const LaunchPlanClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanClosure::IsInitialized() const { + return true; +} + +void LaunchPlanClosure::Swap(LaunchPlanClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanClosure::InternalSwap(LaunchPlanClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(expected_inputs_, other->expected_inputs_); + swap(expected_outputs_, other->expected_outputs_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata LaunchPlanClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanMetadata_default_instance_._instance.get_mutable()->schedule_ = const_cast< ::flyteidl::admin::Schedule*>( + ::flyteidl::admin::Schedule::internal_default_instance()); +} +class LaunchPlanMetadata::HasBitSetters { + public: + static const ::flyteidl::admin::Schedule& schedule(const LaunchPlanMetadata* msg); +}; + +const ::flyteidl::admin::Schedule& +LaunchPlanMetadata::HasBitSetters::schedule(const LaunchPlanMetadata* msg) { + return *msg->schedule_; +} +void LaunchPlanMetadata::clear_schedule() { + if (GetArenaNoVirtual() == nullptr && schedule_ != nullptr) { + delete schedule_; + } + schedule_ = nullptr; +} +void LaunchPlanMetadata::clear_notifications() { + notifications_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanMetadata::kScheduleFieldNumber; +const int LaunchPlanMetadata::kNotificationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanMetadata::LaunchPlanMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanMetadata) +} +LaunchPlanMetadata::LaunchPlanMetadata(const LaunchPlanMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + notifications_(from.notifications_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_schedule()) { + schedule_ = new ::flyteidl::admin::Schedule(*from.schedule_); + } else { + schedule_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanMetadata) +} + +void LaunchPlanMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + schedule_ = nullptr; +} + +LaunchPlanMetadata::~LaunchPlanMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanMetadata) + SharedDtor(); +} + +void LaunchPlanMetadata::SharedDtor() { + if (this != internal_default_instance()) delete schedule_; +} + +void LaunchPlanMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanMetadata& LaunchPlanMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + notifications_.Clear(); + if (GetArenaNoVirtual() == nullptr && schedule_ != nullptr) { + delete schedule_; + } + schedule_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.Schedule schedule = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Schedule::_InternalParse; + object = msg->mutable_schedule(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.admin.Notification notifications = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Notification::_InternalParse; + object = msg->add_notifications(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.Schedule schedule = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_schedule())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.admin.Notification notifications = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_notifications())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Schedule schedule = 1; + if (this->has_schedule()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::schedule(this), output); + } + + // repeated .flyteidl.admin.Notification notifications = 2; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->notifications(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanMetadata) +} + +::google::protobuf::uint8* LaunchPlanMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Schedule schedule = 1; + if (this->has_schedule()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::schedule(this), target); + } + + // repeated .flyteidl.admin.Notification notifications = 2; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->notifications(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanMetadata) + return target; +} + +size_t LaunchPlanMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Notification notifications = 2; + { + unsigned int count = static_cast(this->notifications_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->notifications(static_cast(i))); + } + } + + // .flyteidl.admin.Schedule schedule = 1; + if (this->has_schedule()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *schedule_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanMetadata) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanMetadata) + MergeFrom(*source); + } +} + +void LaunchPlanMetadata::MergeFrom(const LaunchPlanMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + notifications_.MergeFrom(from.notifications_); + if (from.has_schedule()) { + mutable_schedule()->::flyteidl::admin::Schedule::MergeFrom(from.schedule()); + } +} + +void LaunchPlanMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanMetadata::CopyFrom(const LaunchPlanMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanMetadata::IsInitialized() const { + return true; +} + +void LaunchPlanMetadata::Swap(LaunchPlanMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanMetadata::InternalSwap(LaunchPlanMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(¬ifications_)->InternalSwap(CastToBase(&other->notifications_)); + swap(schedule_, other->schedule_); +} + +::google::protobuf::Metadata LaunchPlanMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanUpdateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +class LaunchPlanUpdateRequest::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const LaunchPlanUpdateRequest* msg); +}; + +const ::flyteidl::core::Identifier& +LaunchPlanUpdateRequest::HasBitSetters::id(const LaunchPlanUpdateRequest* msg) { + return *msg->id_; +} +void LaunchPlanUpdateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanUpdateRequest::kIdFieldNumber; +const int LaunchPlanUpdateRequest::kStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanUpdateRequest::LaunchPlanUpdateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanUpdateRequest) +} +LaunchPlanUpdateRequest::LaunchPlanUpdateRequest(const LaunchPlanUpdateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanUpdateRequest) +} + +void LaunchPlanUpdateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&id_)) + sizeof(state_)); +} + +LaunchPlanUpdateRequest::~LaunchPlanUpdateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanUpdateRequest) + SharedDtor(); +} + +void LaunchPlanUpdateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void LaunchPlanUpdateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanUpdateRequest& LaunchPlanUpdateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanUpdateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanUpdateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.LaunchPlanState state = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::LaunchPlanState>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanUpdateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanUpdateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanState state = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::LaunchPlanState >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanUpdateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanUpdateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanUpdateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.LaunchPlanState state = 2; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->state(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanUpdateRequest) +} + +::google::protobuf::uint8* LaunchPlanUpdateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.LaunchPlanState state = 2; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->state(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanUpdateRequest) + return target; +} + +size_t LaunchPlanUpdateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanUpdateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.LaunchPlanState state = 2; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanUpdateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanUpdateRequest) + MergeFrom(*source); + } +} + +void LaunchPlanUpdateRequest::MergeFrom(const LaunchPlanUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void LaunchPlanUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanUpdateRequest::CopyFrom(const LaunchPlanUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanUpdateRequest::IsInitialized() const { + return true; +} + +void LaunchPlanUpdateRequest::Swap(LaunchPlanUpdateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanUpdateRequest::InternalSwap(LaunchPlanUpdateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata LaunchPlanUpdateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanUpdateResponse::InitAsDefaultInstance() { +} +class LaunchPlanUpdateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanUpdateResponse::LaunchPlanUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanUpdateResponse) +} +LaunchPlanUpdateResponse::LaunchPlanUpdateResponse(const LaunchPlanUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanUpdateResponse) +} + +void LaunchPlanUpdateResponse::SharedCtor() { +} + +LaunchPlanUpdateResponse::~LaunchPlanUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanUpdateResponse) + SharedDtor(); +} + +void LaunchPlanUpdateResponse::SharedDtor() { +} + +void LaunchPlanUpdateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LaunchPlanUpdateResponse& LaunchPlanUpdateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void LaunchPlanUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LaunchPlanUpdateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LaunchPlanUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanUpdateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanUpdateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LaunchPlanUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanUpdateResponse) +} + +::google::protobuf::uint8* LaunchPlanUpdateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanUpdateResponse) + return target; +} + +size_t LaunchPlanUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanUpdateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LaunchPlanUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanUpdateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanUpdateResponse) + MergeFrom(*source); + } +} + +void LaunchPlanUpdateResponse::MergeFrom(const LaunchPlanUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void LaunchPlanUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanUpdateResponse::CopyFrom(const LaunchPlanUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanUpdateResponse::IsInitialized() const { + return true; +} + +void LaunchPlanUpdateResponse::Swap(LaunchPlanUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanUpdateResponse::InternalSwap(LaunchPlanUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata LaunchPlanUpdateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ActiveLaunchPlanRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ActiveLaunchPlanRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( + ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); +} +class ActiveLaunchPlanRequest::HasBitSetters { + public: + static const ::flyteidl::admin::NamedEntityIdentifier& id(const ActiveLaunchPlanRequest* msg); +}; + +const ::flyteidl::admin::NamedEntityIdentifier& +ActiveLaunchPlanRequest::HasBitSetters::id(const ActiveLaunchPlanRequest* msg) { + return *msg->id_; +} +void ActiveLaunchPlanRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ActiveLaunchPlanRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ActiveLaunchPlanRequest::ActiveLaunchPlanRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ActiveLaunchPlanRequest) +} +ActiveLaunchPlanRequest::ActiveLaunchPlanRequest(const ActiveLaunchPlanRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ActiveLaunchPlanRequest) +} + +void ActiveLaunchPlanRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + id_ = nullptr; +} + +ActiveLaunchPlanRequest::~ActiveLaunchPlanRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ActiveLaunchPlanRequest) + SharedDtor(); +} + +void ActiveLaunchPlanRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ActiveLaunchPlanRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ActiveLaunchPlanRequest& ActiveLaunchPlanRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void ActiveLaunchPlanRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ActiveLaunchPlanRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ActiveLaunchPlanRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.NamedEntityIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ActiveLaunchPlanRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ActiveLaunchPlanRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.NamedEntityIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ActiveLaunchPlanRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ActiveLaunchPlanRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ActiveLaunchPlanRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ActiveLaunchPlanRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ActiveLaunchPlanRequest) +} + +::google::protobuf::uint8* ActiveLaunchPlanRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ActiveLaunchPlanRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ActiveLaunchPlanRequest) + return target; +} + +size_t ActiveLaunchPlanRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ActiveLaunchPlanRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ActiveLaunchPlanRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ActiveLaunchPlanRequest) + GOOGLE_DCHECK_NE(&from, this); + const ActiveLaunchPlanRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ActiveLaunchPlanRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ActiveLaunchPlanRequest) + MergeFrom(*source); + } +} + +void ActiveLaunchPlanRequest::MergeFrom(const ActiveLaunchPlanRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ActiveLaunchPlanRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); + } +} + +void ActiveLaunchPlanRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ActiveLaunchPlanRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ActiveLaunchPlanRequest::CopyFrom(const ActiveLaunchPlanRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ActiveLaunchPlanRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ActiveLaunchPlanRequest::IsInitialized() const { + return true; +} + +void ActiveLaunchPlanRequest::Swap(ActiveLaunchPlanRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ActiveLaunchPlanRequest::InternalSwap(ActiveLaunchPlanRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata ActiveLaunchPlanRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ActiveLaunchPlanListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ActiveLaunchPlanListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class ActiveLaunchPlanListRequest::HasBitSetters { + public: + static const ::flyteidl::admin::Sort& sort_by(const ActiveLaunchPlanListRequest* msg); +}; + +const ::flyteidl::admin::Sort& +ActiveLaunchPlanListRequest::HasBitSetters::sort_by(const ActiveLaunchPlanListRequest* msg) { + return *msg->sort_by_; +} +void ActiveLaunchPlanListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ActiveLaunchPlanListRequest::kProjectFieldNumber; +const int ActiveLaunchPlanListRequest::kDomainFieldNumber; +const int ActiveLaunchPlanListRequest::kLimitFieldNumber; +const int ActiveLaunchPlanListRequest::kTokenFieldNumber; +const int ActiveLaunchPlanListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ActiveLaunchPlanListRequest::ActiveLaunchPlanListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ActiveLaunchPlanListRequest) +} +ActiveLaunchPlanListRequest::ActiveLaunchPlanListRequest(const ActiveLaunchPlanListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ActiveLaunchPlanListRequest) +} + +void ActiveLaunchPlanListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&sort_by_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&sort_by_)) + sizeof(limit_)); +} + +ActiveLaunchPlanListRequest::~ActiveLaunchPlanListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ActiveLaunchPlanListRequest) + SharedDtor(); +} + +void ActiveLaunchPlanListRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete sort_by_; +} + +void ActiveLaunchPlanListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ActiveLaunchPlanListRequest& ActiveLaunchPlanListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); + return *internal_default_instance(); +} + + +void ActiveLaunchPlanListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ActiveLaunchPlanListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ActiveLaunchPlanListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ActiveLaunchPlanListRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ActiveLaunchPlanListRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // uint32 limit = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ActiveLaunchPlanListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ActiveLaunchPlanListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ActiveLaunchPlanListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ActiveLaunchPlanListRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ActiveLaunchPlanListRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ActiveLaunchPlanListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ActiveLaunchPlanListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ActiveLaunchPlanListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ActiveLaunchPlanListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ActiveLaunchPlanListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ActiveLaunchPlanListRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ActiveLaunchPlanListRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->limit(), output); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ActiveLaunchPlanListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->token(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::sort_by(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ActiveLaunchPlanListRequest) +} + +::google::protobuf::uint8* ActiveLaunchPlanListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ActiveLaunchPlanListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ActiveLaunchPlanListRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ActiveLaunchPlanListRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->limit(), target); + } + + // string token = 4; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ActiveLaunchPlanListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->token(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::sort_by(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ActiveLaunchPlanListRequest) + return target; +} + +size_t ActiveLaunchPlanListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ActiveLaunchPlanListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string token = 4; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ActiveLaunchPlanListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) + GOOGLE_DCHECK_NE(&from, this); + const ActiveLaunchPlanListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ActiveLaunchPlanListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ActiveLaunchPlanListRequest) + MergeFrom(*source); + } +} + +void ActiveLaunchPlanListRequest::MergeFrom(const ActiveLaunchPlanListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void ActiveLaunchPlanListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ActiveLaunchPlanListRequest::CopyFrom(const ActiveLaunchPlanListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ActiveLaunchPlanListRequest::IsInitialized() const { + return true; +} + +void ActiveLaunchPlanListRequest::Swap(ActiveLaunchPlanListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ActiveLaunchPlanListRequest::InternalSwap(ActiveLaunchPlanListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata ActiveLaunchPlanListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanCreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanCreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanCreateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanCreateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlan* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlan >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlan >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanList* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Auth* Arena::CreateMaybeMessage< ::flyteidl::admin::Auth >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Auth >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanClosure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanUpdateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanUpdateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanUpdateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanUpdateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ActiveLaunchPlanRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ActiveLaunchPlanRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ActiveLaunchPlanRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ActiveLaunchPlanListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ActiveLaunchPlanListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ActiveLaunchPlanListRequest >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h new file mode 100644 index 0000000000..122f1b8c24 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h @@ -0,0 +1,3629 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2flaunch_5fplan_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2flaunch_5fplan_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/security.pb.h" +#include "flyteidl/admin/schedule.pb.h" +#include "flyteidl/admin/common.pb.h" +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[12] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto(); +namespace flyteidl { +namespace admin { +class ActiveLaunchPlanListRequest; +class ActiveLaunchPlanListRequestDefaultTypeInternal; +extern ActiveLaunchPlanListRequestDefaultTypeInternal _ActiveLaunchPlanListRequest_default_instance_; +class ActiveLaunchPlanRequest; +class ActiveLaunchPlanRequestDefaultTypeInternal; +extern ActiveLaunchPlanRequestDefaultTypeInternal _ActiveLaunchPlanRequest_default_instance_; +class Auth; +class AuthDefaultTypeInternal; +extern AuthDefaultTypeInternal _Auth_default_instance_; +class LaunchPlan; +class LaunchPlanDefaultTypeInternal; +extern LaunchPlanDefaultTypeInternal _LaunchPlan_default_instance_; +class LaunchPlanClosure; +class LaunchPlanClosureDefaultTypeInternal; +extern LaunchPlanClosureDefaultTypeInternal _LaunchPlanClosure_default_instance_; +class LaunchPlanCreateRequest; +class LaunchPlanCreateRequestDefaultTypeInternal; +extern LaunchPlanCreateRequestDefaultTypeInternal _LaunchPlanCreateRequest_default_instance_; +class LaunchPlanCreateResponse; +class LaunchPlanCreateResponseDefaultTypeInternal; +extern LaunchPlanCreateResponseDefaultTypeInternal _LaunchPlanCreateResponse_default_instance_; +class LaunchPlanList; +class LaunchPlanListDefaultTypeInternal; +extern LaunchPlanListDefaultTypeInternal _LaunchPlanList_default_instance_; +class LaunchPlanMetadata; +class LaunchPlanMetadataDefaultTypeInternal; +extern LaunchPlanMetadataDefaultTypeInternal _LaunchPlanMetadata_default_instance_; +class LaunchPlanSpec; +class LaunchPlanSpecDefaultTypeInternal; +extern LaunchPlanSpecDefaultTypeInternal _LaunchPlanSpec_default_instance_; +class LaunchPlanUpdateRequest; +class LaunchPlanUpdateRequestDefaultTypeInternal; +extern LaunchPlanUpdateRequestDefaultTypeInternal _LaunchPlanUpdateRequest_default_instance_; +class LaunchPlanUpdateResponse; +class LaunchPlanUpdateResponseDefaultTypeInternal; +extern LaunchPlanUpdateResponseDefaultTypeInternal _LaunchPlanUpdateResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::ActiveLaunchPlanListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ActiveLaunchPlanListRequest>(Arena*); +template<> ::flyteidl::admin::ActiveLaunchPlanRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ActiveLaunchPlanRequest>(Arena*); +template<> ::flyteidl::admin::Auth* Arena::CreateMaybeMessage<::flyteidl::admin::Auth>(Arena*); +template<> ::flyteidl::admin::LaunchPlan* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlan>(Arena*); +template<> ::flyteidl::admin::LaunchPlanClosure* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanClosure>(Arena*); +template<> ::flyteidl::admin::LaunchPlanCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanCreateRequest>(Arena*); +template<> ::flyteidl::admin::LaunchPlanCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanCreateResponse>(Arena*); +template<> ::flyteidl::admin::LaunchPlanList* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanList>(Arena*); +template<> ::flyteidl::admin::LaunchPlanMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanMetadata>(Arena*); +template<> ::flyteidl::admin::LaunchPlanSpec* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanSpec>(Arena*); +template<> ::flyteidl::admin::LaunchPlanUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanUpdateRequest>(Arena*); +template<> ::flyteidl::admin::LaunchPlanUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanUpdateResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum LaunchPlanState { + INACTIVE = 0, + ACTIVE = 1, + LaunchPlanState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + LaunchPlanState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool LaunchPlanState_IsValid(int value); +const LaunchPlanState LaunchPlanState_MIN = INACTIVE; +const LaunchPlanState LaunchPlanState_MAX = ACTIVE; +const int LaunchPlanState_ARRAYSIZE = LaunchPlanState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* LaunchPlanState_descriptor(); +inline const ::std::string& LaunchPlanState_Name(LaunchPlanState value) { + return ::google::protobuf::internal::NameOfEnum( + LaunchPlanState_descriptor(), value); +} +inline bool LaunchPlanState_Parse( + const ::std::string& name, LaunchPlanState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + LaunchPlanState_descriptor(), name, value); +} +// =================================================================== + +class LaunchPlanCreateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanCreateRequest) */ { + public: + LaunchPlanCreateRequest(); + virtual ~LaunchPlanCreateRequest(); + + LaunchPlanCreateRequest(const LaunchPlanCreateRequest& from); + + inline LaunchPlanCreateRequest& operator=(const LaunchPlanCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanCreateRequest(LaunchPlanCreateRequest&& from) noexcept + : LaunchPlanCreateRequest() { + *this = ::std::move(from); + } + + inline LaunchPlanCreateRequest& operator=(LaunchPlanCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanCreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(LaunchPlanCreateRequest* other); + friend void swap(LaunchPlanCreateRequest& a, LaunchPlanCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanCreateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanCreateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanCreateRequest& from); + void MergeFrom(const LaunchPlanCreateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::LaunchPlanSpec& spec() const; + ::flyteidl::admin::LaunchPlanSpec* release_spec(); + ::flyteidl::admin::LaunchPlanSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::LaunchPlanSpec* spec_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlanCreateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanCreateResponse) */ { + public: + LaunchPlanCreateResponse(); + virtual ~LaunchPlanCreateResponse(); + + LaunchPlanCreateResponse(const LaunchPlanCreateResponse& from); + + inline LaunchPlanCreateResponse& operator=(const LaunchPlanCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanCreateResponse(LaunchPlanCreateResponse&& from) noexcept + : LaunchPlanCreateResponse() { + *this = ::std::move(from); + } + + inline LaunchPlanCreateResponse& operator=(LaunchPlanCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanCreateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(LaunchPlanCreateResponse* other); + friend void swap(LaunchPlanCreateResponse& a, LaunchPlanCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanCreateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanCreateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanCreateResponse& from); + void MergeFrom(const LaunchPlanCreateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlan final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlan) */ { + public: + LaunchPlan(); + virtual ~LaunchPlan(); + + LaunchPlan(const LaunchPlan& from); + + inline LaunchPlan& operator=(const LaunchPlan& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlan(LaunchPlan&& from) noexcept + : LaunchPlan() { + *this = ::std::move(from); + } + + inline LaunchPlan& operator=(LaunchPlan&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlan& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlan* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlan_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(LaunchPlan* other); + friend void swap(LaunchPlan& a, LaunchPlan& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlan* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlan* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlan& from); + void MergeFrom(const LaunchPlan& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlan* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::LaunchPlanSpec& spec() const; + ::flyteidl::admin::LaunchPlanSpec* release_spec(); + ::flyteidl::admin::LaunchPlanSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec); + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::LaunchPlanClosure& closure() const; + ::flyteidl::admin::LaunchPlanClosure* release_closure(); + ::flyteidl::admin::LaunchPlanClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::LaunchPlanClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::LaunchPlanSpec* spec_; + ::flyteidl::admin::LaunchPlanClosure* closure_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlanList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanList) */ { + public: + LaunchPlanList(); + virtual ~LaunchPlanList(); + + LaunchPlanList(const LaunchPlanList& from); + + inline LaunchPlanList& operator=(const LaunchPlanList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanList(LaunchPlanList&& from) noexcept + : LaunchPlanList() { + *this = ::std::move(from); + } + + inline LaunchPlanList& operator=(LaunchPlanList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanList* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(LaunchPlanList* other); + friend void swap(LaunchPlanList& a, LaunchPlanList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanList* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanList& from); + void MergeFrom(const LaunchPlanList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + int launch_plans_size() const; + void clear_launch_plans(); + static const int kLaunchPlansFieldNumber = 1; + ::flyteidl::admin::LaunchPlan* mutable_launch_plans(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >* + mutable_launch_plans(); + const ::flyteidl::admin::LaunchPlan& launch_plans(int index) const; + ::flyteidl::admin::LaunchPlan* add_launch_plans(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >& + launch_plans() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan > launch_plans_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class Auth final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Auth) */ { + public: + Auth(); + virtual ~Auth(); + + Auth(const Auth& from); + + inline Auth& operator=(const Auth& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Auth(Auth&& from) noexcept + : Auth() { + *this = ::std::move(from); + } + + inline Auth& operator=(Auth&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Auth& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Auth* internal_default_instance() { + return reinterpret_cast( + &_Auth_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(Auth* other); + friend void swap(Auth& a, Auth& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Auth* New() const final { + return CreateMaybeMessage(nullptr); + } + + Auth* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Auth& from); + void MergeFrom(const Auth& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Auth* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string assumable_iam_role = 1; + void clear_assumable_iam_role(); + static const int kAssumableIamRoleFieldNumber = 1; + const ::std::string& assumable_iam_role() const; + void set_assumable_iam_role(const ::std::string& value); + #if LANG_CXX11 + void set_assumable_iam_role(::std::string&& value); + #endif + void set_assumable_iam_role(const char* value); + void set_assumable_iam_role(const char* value, size_t size); + ::std::string* mutable_assumable_iam_role(); + ::std::string* release_assumable_iam_role(); + void set_allocated_assumable_iam_role(::std::string* assumable_iam_role); + + // string kubernetes_service_account = 2; + void clear_kubernetes_service_account(); + static const int kKubernetesServiceAccountFieldNumber = 2; + const ::std::string& kubernetes_service_account() const; + void set_kubernetes_service_account(const ::std::string& value); + #if LANG_CXX11 + void set_kubernetes_service_account(::std::string&& value); + #endif + void set_kubernetes_service_account(const char* value); + void set_kubernetes_service_account(const char* value, size_t size); + ::std::string* mutable_kubernetes_service_account(); + ::std::string* release_kubernetes_service_account(); + void set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr assumable_iam_role_; + ::google::protobuf::internal::ArenaStringPtr kubernetes_service_account_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlanSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanSpec) */ { + public: + LaunchPlanSpec(); + virtual ~LaunchPlanSpec(); + + LaunchPlanSpec(const LaunchPlanSpec& from); + + inline LaunchPlanSpec& operator=(const LaunchPlanSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanSpec(LaunchPlanSpec&& from) noexcept + : LaunchPlanSpec() { + *this = ::std::move(from); + } + + inline LaunchPlanSpec& operator=(LaunchPlanSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanSpec* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(LaunchPlanSpec* other); + friend void swap(LaunchPlanSpec& a, LaunchPlanSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanSpec& from); + void MergeFrom(const LaunchPlanSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string role = 5 [deprecated = true]; + PROTOBUF_DEPRECATED void clear_role(); + PROTOBUF_DEPRECATED static const int kRoleFieldNumber = 5; + PROTOBUF_DEPRECATED const ::std::string& role() const; + PROTOBUF_DEPRECATED void set_role(const ::std::string& value); + #if LANG_CXX11 + PROTOBUF_DEPRECATED void set_role(::std::string&& value); + #endif + PROTOBUF_DEPRECATED void set_role(const char* value); + PROTOBUF_DEPRECATED void set_role(const char* value, size_t size); + PROTOBUF_DEPRECATED ::std::string* mutable_role(); + PROTOBUF_DEPRECATED ::std::string* release_role(); + PROTOBUF_DEPRECATED void set_allocated_role(::std::string* role); + + // .flyteidl.core.Identifier workflow_id = 1; + bool has_workflow_id() const; + void clear_workflow_id(); + static const int kWorkflowIdFieldNumber = 1; + const ::flyteidl::core::Identifier& workflow_id() const; + ::flyteidl::core::Identifier* release_workflow_id(); + ::flyteidl::core::Identifier* mutable_workflow_id(); + void set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id); + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + bool has_entity_metadata() const; + void clear_entity_metadata(); + static const int kEntityMetadataFieldNumber = 2; + const ::flyteidl::admin::LaunchPlanMetadata& entity_metadata() const; + ::flyteidl::admin::LaunchPlanMetadata* release_entity_metadata(); + ::flyteidl::admin::LaunchPlanMetadata* mutable_entity_metadata(); + void set_allocated_entity_metadata(::flyteidl::admin::LaunchPlanMetadata* entity_metadata); + + // .flyteidl.core.ParameterMap default_inputs = 3; + bool has_default_inputs() const; + void clear_default_inputs(); + static const int kDefaultInputsFieldNumber = 3; + const ::flyteidl::core::ParameterMap& default_inputs() const; + ::flyteidl::core::ParameterMap* release_default_inputs(); + ::flyteidl::core::ParameterMap* mutable_default_inputs(); + void set_allocated_default_inputs(::flyteidl::core::ParameterMap* default_inputs); + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + bool has_fixed_inputs() const; + void clear_fixed_inputs(); + static const int kFixedInputsFieldNumber = 4; + const ::flyteidl::core::LiteralMap& fixed_inputs() const; + ::flyteidl::core::LiteralMap* release_fixed_inputs(); + ::flyteidl::core::LiteralMap* mutable_fixed_inputs(); + void set_allocated_fixed_inputs(::flyteidl::core::LiteralMap* fixed_inputs); + + // .flyteidl.admin.Labels labels = 6; + bool has_labels() const; + void clear_labels(); + static const int kLabelsFieldNumber = 6; + const ::flyteidl::admin::Labels& labels() const; + ::flyteidl::admin::Labels* release_labels(); + ::flyteidl::admin::Labels* mutable_labels(); + void set_allocated_labels(::flyteidl::admin::Labels* labels); + + // .flyteidl.admin.Annotations annotations = 7; + bool has_annotations() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 7; + const ::flyteidl::admin::Annotations& annotations() const; + ::flyteidl::admin::Annotations* release_annotations(); + ::flyteidl::admin::Annotations* mutable_annotations(); + void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); + + // .flyteidl.admin.Auth auth = 8 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_auth() const; + PROTOBUF_DEPRECATED void clear_auth(); + PROTOBUF_DEPRECATED static const int kAuthFieldNumber = 8; + PROTOBUF_DEPRECATED const ::flyteidl::admin::Auth& auth() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::Auth* release_auth(); + PROTOBUF_DEPRECATED ::flyteidl::admin::Auth* mutable_auth(); + PROTOBUF_DEPRECATED void set_allocated_auth(::flyteidl::admin::Auth* auth); + + // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_auth_role() const; + PROTOBUF_DEPRECATED void clear_auth_role(); + PROTOBUF_DEPRECATED static const int kAuthRoleFieldNumber = 9; + PROTOBUF_DEPRECATED const ::flyteidl::admin::AuthRole& auth_role() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* release_auth_role(); + PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* mutable_auth_role(); + PROTOBUF_DEPRECATED void set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role); + + // .flyteidl.core.SecurityContext security_context = 10; + bool has_security_context() const; + void clear_security_context(); + static const int kSecurityContextFieldNumber = 10; + const ::flyteidl::core::SecurityContext& security_context() const; + ::flyteidl::core::SecurityContext* release_security_context(); + ::flyteidl::core::SecurityContext* mutable_security_context(); + void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); + + // .flyteidl.core.QualityOfService quality_of_service = 16; + bool has_quality_of_service() const; + void clear_quality_of_service(); + static const int kQualityOfServiceFieldNumber = 16; + const ::flyteidl::core::QualityOfService& quality_of_service() const; + ::flyteidl::core::QualityOfService* release_quality_of_service(); + ::flyteidl::core::QualityOfService* mutable_quality_of_service(); + void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + bool has_raw_output_data_config() const; + void clear_raw_output_data_config(); + static const int kRawOutputDataConfigFieldNumber = 17; + const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config() const; + ::flyteidl::admin::RawOutputDataConfig* release_raw_output_data_config(); + ::flyteidl::admin::RawOutputDataConfig* mutable_raw_output_data_config(); + void set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config); + + // .google.protobuf.BoolValue interruptible = 19; + bool has_interruptible() const; + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 19; + const ::google::protobuf::BoolValue& interruptible() const; + ::google::protobuf::BoolValue* release_interruptible(); + ::google::protobuf::BoolValue* mutable_interruptible(); + void set_allocated_interruptible(::google::protobuf::BoolValue* interruptible); + + // .flyteidl.admin.Envs envs = 21; + bool has_envs() const; + void clear_envs(); + static const int kEnvsFieldNumber = 21; + const ::flyteidl::admin::Envs& envs() const; + ::flyteidl::admin::Envs* release_envs(); + ::flyteidl::admin::Envs* mutable_envs(); + void set_allocated_envs(::flyteidl::admin::Envs* envs); + + // int32 max_parallelism = 18; + void clear_max_parallelism(); + static const int kMaxParallelismFieldNumber = 18; + ::google::protobuf::int32 max_parallelism() const; + void set_max_parallelism(::google::protobuf::int32 value); + + // bool overwrite_cache = 20; + void clear_overwrite_cache(); + static const int kOverwriteCacheFieldNumber = 20; + bool overwrite_cache() const; + void set_overwrite_cache(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr role_; + ::flyteidl::core::Identifier* workflow_id_; + ::flyteidl::admin::LaunchPlanMetadata* entity_metadata_; + ::flyteidl::core::ParameterMap* default_inputs_; + ::flyteidl::core::LiteralMap* fixed_inputs_; + ::flyteidl::admin::Labels* labels_; + ::flyteidl::admin::Annotations* annotations_; + ::flyteidl::admin::Auth* auth_; + ::flyteidl::admin::AuthRole* auth_role_; + ::flyteidl::core::SecurityContext* security_context_; + ::flyteidl::core::QualityOfService* quality_of_service_; + ::flyteidl::admin::RawOutputDataConfig* raw_output_data_config_; + ::google::protobuf::BoolValue* interruptible_; + ::flyteidl::admin::Envs* envs_; + ::google::protobuf::int32 max_parallelism_; + bool overwrite_cache_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlanClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanClosure) */ { + public: + LaunchPlanClosure(); + virtual ~LaunchPlanClosure(); + + LaunchPlanClosure(const LaunchPlanClosure& from); + + inline LaunchPlanClosure& operator=(const LaunchPlanClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanClosure(LaunchPlanClosure&& from) noexcept + : LaunchPlanClosure() { + *this = ::std::move(from); + } + + inline LaunchPlanClosure& operator=(LaunchPlanClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanClosure* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(LaunchPlanClosure* other); + friend void swap(LaunchPlanClosure& a, LaunchPlanClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanClosure& from); + void MergeFrom(const LaunchPlanClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.ParameterMap expected_inputs = 2; + bool has_expected_inputs() const; + void clear_expected_inputs(); + static const int kExpectedInputsFieldNumber = 2; + const ::flyteidl::core::ParameterMap& expected_inputs() const; + ::flyteidl::core::ParameterMap* release_expected_inputs(); + ::flyteidl::core::ParameterMap* mutable_expected_inputs(); + void set_allocated_expected_inputs(::flyteidl::core::ParameterMap* expected_inputs); + + // .flyteidl.core.VariableMap expected_outputs = 3; + bool has_expected_outputs() const; + void clear_expected_outputs(); + static const int kExpectedOutputsFieldNumber = 3; + const ::flyteidl::core::VariableMap& expected_outputs() const; + ::flyteidl::core::VariableMap* release_expected_outputs(); + ::flyteidl::core::VariableMap* mutable_expected_outputs(); + void set_allocated_expected_outputs(::flyteidl::core::VariableMap* expected_outputs); + + // .google.protobuf.Timestamp created_at = 4; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 4; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 5; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 5; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .flyteidl.admin.LaunchPlanState state = 1; + void clear_state(); + static const int kStateFieldNumber = 1; + ::flyteidl::admin::LaunchPlanState state() const; + void set_state(::flyteidl::admin::LaunchPlanState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::ParameterMap* expected_inputs_; + ::flyteidl::core::VariableMap* expected_outputs_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlanMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanMetadata) */ { + public: + LaunchPlanMetadata(); + virtual ~LaunchPlanMetadata(); + + LaunchPlanMetadata(const LaunchPlanMetadata& from); + + inline LaunchPlanMetadata& operator=(const LaunchPlanMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanMetadata(LaunchPlanMetadata&& from) noexcept + : LaunchPlanMetadata() { + *this = ::std::move(from); + } + + inline LaunchPlanMetadata& operator=(LaunchPlanMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanMetadata* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(LaunchPlanMetadata* other); + friend void swap(LaunchPlanMetadata& a, LaunchPlanMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanMetadata& from); + void MergeFrom(const LaunchPlanMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Notification notifications = 2; + int notifications_size() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 2; + ::flyteidl::admin::Notification* mutable_notifications(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* + mutable_notifications(); + const ::flyteidl::admin::Notification& notifications(int index) const; + ::flyteidl::admin::Notification* add_notifications(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& + notifications() const; + + // .flyteidl.admin.Schedule schedule = 1; + bool has_schedule() const; + void clear_schedule(); + static const int kScheduleFieldNumber = 1; + const ::flyteidl::admin::Schedule& schedule() const; + ::flyteidl::admin::Schedule* release_schedule(); + ::flyteidl::admin::Schedule* mutable_schedule(); + void set_allocated_schedule(::flyteidl::admin::Schedule* schedule); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; + ::flyteidl::admin::Schedule* schedule_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlanUpdateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanUpdateRequest) */ { + public: + LaunchPlanUpdateRequest(); + virtual ~LaunchPlanUpdateRequest(); + + LaunchPlanUpdateRequest(const LaunchPlanUpdateRequest& from); + + inline LaunchPlanUpdateRequest& operator=(const LaunchPlanUpdateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanUpdateRequest(LaunchPlanUpdateRequest&& from) noexcept + : LaunchPlanUpdateRequest() { + *this = ::std::move(from); + } + + inline LaunchPlanUpdateRequest& operator=(LaunchPlanUpdateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanUpdateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanUpdateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(LaunchPlanUpdateRequest* other); + friend void swap(LaunchPlanUpdateRequest& a, LaunchPlanUpdateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanUpdateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanUpdateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanUpdateRequest& from); + void MergeFrom(const LaunchPlanUpdateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanUpdateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.LaunchPlanState state = 2; + void clear_state(); + static const int kStateFieldNumber = 2; + ::flyteidl::admin::LaunchPlanState state() const; + void set_state(::flyteidl::admin::LaunchPlanState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class LaunchPlanUpdateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanUpdateResponse) */ { + public: + LaunchPlanUpdateResponse(); + virtual ~LaunchPlanUpdateResponse(); + + LaunchPlanUpdateResponse(const LaunchPlanUpdateResponse& from); + + inline LaunchPlanUpdateResponse& operator=(const LaunchPlanUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanUpdateResponse(LaunchPlanUpdateResponse&& from) noexcept + : LaunchPlanUpdateResponse() { + *this = ::std::move(from); + } + + inline LaunchPlanUpdateResponse& operator=(LaunchPlanUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LaunchPlanUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanUpdateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(LaunchPlanUpdateResponse* other); + friend void swap(LaunchPlanUpdateResponse& a, LaunchPlanUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanUpdateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + LaunchPlanUpdateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LaunchPlanUpdateResponse& from); + void MergeFrom(const LaunchPlanUpdateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LaunchPlanUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class ActiveLaunchPlanRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ActiveLaunchPlanRequest) */ { + public: + ActiveLaunchPlanRequest(); + virtual ~ActiveLaunchPlanRequest(); + + ActiveLaunchPlanRequest(const ActiveLaunchPlanRequest& from); + + inline ActiveLaunchPlanRequest& operator=(const ActiveLaunchPlanRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ActiveLaunchPlanRequest(ActiveLaunchPlanRequest&& from) noexcept + : ActiveLaunchPlanRequest() { + *this = ::std::move(from); + } + + inline ActiveLaunchPlanRequest& operator=(ActiveLaunchPlanRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ActiveLaunchPlanRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ActiveLaunchPlanRequest* internal_default_instance() { + return reinterpret_cast( + &_ActiveLaunchPlanRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(ActiveLaunchPlanRequest* other); + friend void swap(ActiveLaunchPlanRequest& a, ActiveLaunchPlanRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ActiveLaunchPlanRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ActiveLaunchPlanRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ActiveLaunchPlanRequest& from); + void MergeFrom(const ActiveLaunchPlanRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ActiveLaunchPlanRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::admin::NamedEntityIdentifier& id() const; + ::flyteidl::admin::NamedEntityIdentifier* release_id(); + ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::NamedEntityIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// ------------------------------------------------------------------- + +class ActiveLaunchPlanListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ActiveLaunchPlanListRequest) */ { + public: + ActiveLaunchPlanListRequest(); + virtual ~ActiveLaunchPlanListRequest(); + + ActiveLaunchPlanListRequest(const ActiveLaunchPlanListRequest& from); + + inline ActiveLaunchPlanListRequest& operator=(const ActiveLaunchPlanListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ActiveLaunchPlanListRequest(ActiveLaunchPlanListRequest&& from) noexcept + : ActiveLaunchPlanListRequest() { + *this = ::std::move(from); + } + + inline ActiveLaunchPlanListRequest& operator=(ActiveLaunchPlanListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ActiveLaunchPlanListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ActiveLaunchPlanListRequest* internal_default_instance() { + return reinterpret_cast( + &_ActiveLaunchPlanListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(ActiveLaunchPlanListRequest* other); + friend void swap(ActiveLaunchPlanListRequest& a, ActiveLaunchPlanListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ActiveLaunchPlanListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ActiveLaunchPlanListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ActiveLaunchPlanListRequest& from); + void MergeFrom(const ActiveLaunchPlanListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ActiveLaunchPlanListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string token = 4; + void clear_token(); + static const int kTokenFieldNumber = 4; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 3; + void clear_limit(); + static const int kLimitFieldNumber = 3; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// LaunchPlanCreateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool LaunchPlanCreateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& LaunchPlanCreateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanCreateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlanCreateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanCreateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlanCreateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanCreateRequest.id) + return id_; +} +inline void LaunchPlanCreateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanCreateRequest.id) +} + +// .flyteidl.admin.LaunchPlanSpec spec = 2; +inline bool LaunchPlanCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline void LaunchPlanCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::flyteidl::admin::LaunchPlanSpec& LaunchPlanCreateRequest::spec() const { + const ::flyteidl::admin::LaunchPlanSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanCreateRequest.spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanSpec_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlanCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanCreateRequest.spec) + + ::flyteidl::admin::LaunchPlanSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlanCreateRequest::mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanSpec>(GetArenaNoVirtual()); + spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanCreateRequest.spec) + return spec_; +} +inline void LaunchPlanCreateRequest::set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanCreateRequest.spec) +} + +// ------------------------------------------------------------------- + +// LaunchPlanCreateResponse + +// ------------------------------------------------------------------- + +// LaunchPlan + +// .flyteidl.core.Identifier id = 1; +inline bool LaunchPlan::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& LaunchPlan::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlan::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlan::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.id) + return id_; +} +inline void LaunchPlan::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.id) +} + +// .flyteidl.admin.LaunchPlanSpec spec = 2; +inline bool LaunchPlan::has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline void LaunchPlan::clear_spec() { + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::flyteidl::admin::LaunchPlanSpec& LaunchPlan::spec() const { + const ::flyteidl::admin::LaunchPlanSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanSpec_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlan::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.spec) + + ::flyteidl::admin::LaunchPlanSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlan::mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanSpec>(GetArenaNoVirtual()); + spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.spec) + return spec_; +} +inline void LaunchPlan::set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.spec) +} + +// .flyteidl.admin.LaunchPlanClosure closure = 3; +inline bool LaunchPlan::has_closure() const { + return this != internal_default_instance() && closure_ != nullptr; +} +inline void LaunchPlan::clear_closure() { + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; +} +inline const ::flyteidl::admin::LaunchPlanClosure& LaunchPlan::closure() const { + const ::flyteidl::admin::LaunchPlanClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.closure) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanClosure_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanClosure* LaunchPlan::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.closure) + + ::flyteidl::admin::LaunchPlanClosure* temp = closure_; + closure_ = nullptr; + return temp; +} +inline ::flyteidl::admin::LaunchPlanClosure* LaunchPlan::mutable_closure() { + + if (closure_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanClosure>(GetArenaNoVirtual()); + closure_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.closure) + return closure_; +} +inline void LaunchPlan::set_allocated_closure(::flyteidl::admin::LaunchPlanClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.closure) +} + +// ------------------------------------------------------------------- + +// LaunchPlanList + +// repeated .flyteidl.admin.LaunchPlan launch_plans = 1; +inline int LaunchPlanList::launch_plans_size() const { + return launch_plans_.size(); +} +inline void LaunchPlanList::clear_launch_plans() { + launch_plans_.Clear(); +} +inline ::flyteidl::admin::LaunchPlan* LaunchPlanList::mutable_launch_plans(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >* +LaunchPlanList::mutable_launch_plans() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.LaunchPlanList.launch_plans) + return &launch_plans_; +} +inline const ::flyteidl::admin::LaunchPlan& LaunchPlanList::launch_plans(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_.Get(index); +} +inline ::flyteidl::admin::LaunchPlan* LaunchPlanList::add_launch_plans() { + // @@protoc_insertion_point(field_add:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >& +LaunchPlanList::launch_plans() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_; +} + +// string token = 2; +inline void LaunchPlanList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& LaunchPlanList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanList.token) + return token_.GetNoArena(); +} +inline void LaunchPlanList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanList.token) +} +#if LANG_CXX11 +inline void LaunchPlanList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LaunchPlanList.token) +} +#endif +inline void LaunchPlanList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.LaunchPlanList.token) +} +inline void LaunchPlanList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LaunchPlanList.token) +} +inline ::std::string* LaunchPlanList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LaunchPlanList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LaunchPlanList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanList.token) +} + +// ------------------------------------------------------------------- + +// Auth + +// string assumable_iam_role = 1; +inline void Auth::clear_assumable_iam_role() { + assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Auth::assumable_iam_role() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Auth.assumable_iam_role) + return assumable_iam_role_.GetNoArena(); +} +inline void Auth::set_assumable_iam_role(const ::std::string& value) { + + assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.assumable_iam_role) +} +#if LANG_CXX11 +inline void Auth::set_assumable_iam_role(::std::string&& value) { + + assumable_iam_role_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Auth.assumable_iam_role) +} +#endif +inline void Auth::set_assumable_iam_role(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Auth.assumable_iam_role) +} +inline void Auth::set_assumable_iam_role(const char* value, size_t size) { + + assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Auth.assumable_iam_role) +} +inline ::std::string* Auth::mutable_assumable_iam_role() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Auth.assumable_iam_role) + return assumable_iam_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Auth::release_assumable_iam_role() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Auth.assumable_iam_role) + + return assumable_iam_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Auth::set_allocated_assumable_iam_role(::std::string* assumable_iam_role) { + if (assumable_iam_role != nullptr) { + + } else { + + } + assumable_iam_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assumable_iam_role); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Auth.assumable_iam_role) +} + +// string kubernetes_service_account = 2; +inline void Auth::clear_kubernetes_service_account() { + kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Auth::kubernetes_service_account() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Auth.kubernetes_service_account) + return kubernetes_service_account_.GetNoArena(); +} +inline void Auth::set_kubernetes_service_account(const ::std::string& value) { + + kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.kubernetes_service_account) +} +#if LANG_CXX11 +inline void Auth::set_kubernetes_service_account(::std::string&& value) { + + kubernetes_service_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Auth.kubernetes_service_account) +} +#endif +inline void Auth::set_kubernetes_service_account(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Auth.kubernetes_service_account) +} +inline void Auth::set_kubernetes_service_account(const char* value, size_t size) { + + kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Auth.kubernetes_service_account) +} +inline ::std::string* Auth::mutable_kubernetes_service_account() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Auth.kubernetes_service_account) + return kubernetes_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Auth::release_kubernetes_service_account() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Auth.kubernetes_service_account) + + return kubernetes_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Auth::set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account) { + if (kubernetes_service_account != nullptr) { + + } else { + + } + kubernetes_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kubernetes_service_account); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Auth.kubernetes_service_account) +} + +// ------------------------------------------------------------------- + +// LaunchPlanSpec + +// .flyteidl.core.Identifier workflow_id = 1; +inline bool LaunchPlanSpec::has_workflow_id() const { + return this != internal_default_instance() && workflow_id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& LaunchPlanSpec::workflow_id() const { + const ::flyteidl::core::Identifier* p = workflow_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.workflow_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlanSpec::release_workflow_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.workflow_id) + + ::flyteidl::core::Identifier* temp = workflow_id_; + workflow_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlanSpec::mutable_workflow_id() { + + if (workflow_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + workflow_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.workflow_id) + return workflow_id_; +} +inline void LaunchPlanSpec::set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_id_); + } + if (workflow_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_id, submessage_arena); + } + + } else { + + } + workflow_id_ = workflow_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.workflow_id) +} + +// .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; +inline bool LaunchPlanSpec::has_entity_metadata() const { + return this != internal_default_instance() && entity_metadata_ != nullptr; +} +inline void LaunchPlanSpec::clear_entity_metadata() { + if (GetArenaNoVirtual() == nullptr && entity_metadata_ != nullptr) { + delete entity_metadata_; + } + entity_metadata_ = nullptr; +} +inline const ::flyteidl::admin::LaunchPlanMetadata& LaunchPlanSpec::entity_metadata() const { + const ::flyteidl::admin::LaunchPlanMetadata* p = entity_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.entity_metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanMetadata_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanMetadata* LaunchPlanSpec::release_entity_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.entity_metadata) + + ::flyteidl::admin::LaunchPlanMetadata* temp = entity_metadata_; + entity_metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::LaunchPlanMetadata* LaunchPlanSpec::mutable_entity_metadata() { + + if (entity_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanMetadata>(GetArenaNoVirtual()); + entity_metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.entity_metadata) + return entity_metadata_; +} +inline void LaunchPlanSpec::set_allocated_entity_metadata(::flyteidl::admin::LaunchPlanMetadata* entity_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete entity_metadata_; + } + if (entity_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + entity_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, entity_metadata, submessage_arena); + } + + } else { + + } + entity_metadata_ = entity_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.entity_metadata) +} + +// .flyteidl.core.ParameterMap default_inputs = 3; +inline bool LaunchPlanSpec::has_default_inputs() const { + return this != internal_default_instance() && default_inputs_ != nullptr; +} +inline const ::flyteidl::core::ParameterMap& LaunchPlanSpec::default_inputs() const { + const ::flyteidl::core::ParameterMap* p = default_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.default_inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_ParameterMap_default_instance_); +} +inline ::flyteidl::core::ParameterMap* LaunchPlanSpec::release_default_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.default_inputs) + + ::flyteidl::core::ParameterMap* temp = default_inputs_; + default_inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::ParameterMap* LaunchPlanSpec::mutable_default_inputs() { + + if (default_inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::ParameterMap>(GetArenaNoVirtual()); + default_inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.default_inputs) + return default_inputs_; +} +inline void LaunchPlanSpec::set_allocated_default_inputs(::flyteidl::core::ParameterMap* default_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_inputs_); + } + if (default_inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + default_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, default_inputs, submessage_arena); + } + + } else { + + } + default_inputs_ = default_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.default_inputs) +} + +// .flyteidl.core.LiteralMap fixed_inputs = 4; +inline bool LaunchPlanSpec::has_fixed_inputs() const { + return this != internal_default_instance() && fixed_inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& LaunchPlanSpec::fixed_inputs() const { + const ::flyteidl::core::LiteralMap* p = fixed_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.fixed_inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* LaunchPlanSpec::release_fixed_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.fixed_inputs) + + ::flyteidl::core::LiteralMap* temp = fixed_inputs_; + fixed_inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* LaunchPlanSpec::mutable_fixed_inputs() { + + if (fixed_inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + fixed_inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.fixed_inputs) + return fixed_inputs_; +} +inline void LaunchPlanSpec::set_allocated_fixed_inputs(::flyteidl::core::LiteralMap* fixed_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(fixed_inputs_); + } + if (fixed_inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + fixed_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, fixed_inputs, submessage_arena); + } + + } else { + + } + fixed_inputs_ = fixed_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.fixed_inputs) +} + +// string role = 5 [deprecated = true]; +inline void LaunchPlanSpec::clear_role() { + role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& LaunchPlanSpec::role() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.role) + return role_.GetNoArena(); +} +inline void LaunchPlanSpec::set_role(const ::std::string& value) { + + role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanSpec.role) +} +#if LANG_CXX11 +inline void LaunchPlanSpec::set_role(::std::string&& value) { + + role_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LaunchPlanSpec.role) +} +#endif +inline void LaunchPlanSpec::set_role(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.LaunchPlanSpec.role) +} +inline void LaunchPlanSpec::set_role(const char* value, size_t size) { + + role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LaunchPlanSpec.role) +} +inline ::std::string* LaunchPlanSpec::mutable_role() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.role) + return role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LaunchPlanSpec::release_role() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.role) + + return role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LaunchPlanSpec::set_allocated_role(::std::string* role) { + if (role != nullptr) { + + } else { + + } + role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), role); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.role) +} + +// .flyteidl.admin.Labels labels = 6; +inline bool LaunchPlanSpec::has_labels() const { + return this != internal_default_instance() && labels_ != nullptr; +} +inline const ::flyteidl::admin::Labels& LaunchPlanSpec::labels() const { + const ::flyteidl::admin::Labels* p = labels_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.labels) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Labels_default_instance_); +} +inline ::flyteidl::admin::Labels* LaunchPlanSpec::release_labels() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.labels) + + ::flyteidl::admin::Labels* temp = labels_; + labels_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Labels* LaunchPlanSpec::mutable_labels() { + + if (labels_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); + labels_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.labels) + return labels_; +} +inline void LaunchPlanSpec::set_allocated_labels(::flyteidl::admin::Labels* labels) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); + } + if (labels) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + labels = ::google::protobuf::internal::GetOwnedMessage( + message_arena, labels, submessage_arena); + } + + } else { + + } + labels_ = labels; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.labels) +} + +// .flyteidl.admin.Annotations annotations = 7; +inline bool LaunchPlanSpec::has_annotations() const { + return this != internal_default_instance() && annotations_ != nullptr; +} +inline const ::flyteidl::admin::Annotations& LaunchPlanSpec::annotations() const { + const ::flyteidl::admin::Annotations* p = annotations_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.annotations) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Annotations_default_instance_); +} +inline ::flyteidl::admin::Annotations* LaunchPlanSpec::release_annotations() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.annotations) + + ::flyteidl::admin::Annotations* temp = annotations_; + annotations_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Annotations* LaunchPlanSpec::mutable_annotations() { + + if (annotations_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Annotations>(GetArenaNoVirtual()); + annotations_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.annotations) + return annotations_; +} +inline void LaunchPlanSpec::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); + } + if (annotations) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + annotations = ::google::protobuf::internal::GetOwnedMessage( + message_arena, annotations, submessage_arena); + } + + } else { + + } + annotations_ = annotations; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.annotations) +} + +// .flyteidl.admin.Auth auth = 8 [deprecated = true]; +inline bool LaunchPlanSpec::has_auth() const { + return this != internal_default_instance() && auth_ != nullptr; +} +inline void LaunchPlanSpec::clear_auth() { + if (GetArenaNoVirtual() == nullptr && auth_ != nullptr) { + delete auth_; + } + auth_ = nullptr; +} +inline const ::flyteidl::admin::Auth& LaunchPlanSpec::auth() const { + const ::flyteidl::admin::Auth* p = auth_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.auth) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Auth_default_instance_); +} +inline ::flyteidl::admin::Auth* LaunchPlanSpec::release_auth() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.auth) + + ::flyteidl::admin::Auth* temp = auth_; + auth_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Auth* LaunchPlanSpec::mutable_auth() { + + if (auth_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Auth>(GetArenaNoVirtual()); + auth_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.auth) + return auth_; +} +inline void LaunchPlanSpec::set_allocated_auth(::flyteidl::admin::Auth* auth) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete auth_; + } + if (auth) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + auth = ::google::protobuf::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + + } else { + + } + auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.auth) +} + +// .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; +inline bool LaunchPlanSpec::has_auth_role() const { + return this != internal_default_instance() && auth_role_ != nullptr; +} +inline const ::flyteidl::admin::AuthRole& LaunchPlanSpec::auth_role() const { + const ::flyteidl::admin::AuthRole* p = auth_role_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.auth_role) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_AuthRole_default_instance_); +} +inline ::flyteidl::admin::AuthRole* LaunchPlanSpec::release_auth_role() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.auth_role) + + ::flyteidl::admin::AuthRole* temp = auth_role_; + auth_role_ = nullptr; + return temp; +} +inline ::flyteidl::admin::AuthRole* LaunchPlanSpec::mutable_auth_role() { + + if (auth_role_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::AuthRole>(GetArenaNoVirtual()); + auth_role_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.auth_role) + return auth_role_; +} +inline void LaunchPlanSpec::set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(auth_role_); + } + if (auth_role) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + auth_role = ::google::protobuf::internal::GetOwnedMessage( + message_arena, auth_role, submessage_arena); + } + + } else { + + } + auth_role_ = auth_role; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.auth_role) +} + +// .flyteidl.core.SecurityContext security_context = 10; +inline bool LaunchPlanSpec::has_security_context() const { + return this != internal_default_instance() && security_context_ != nullptr; +} +inline const ::flyteidl::core::SecurityContext& LaunchPlanSpec::security_context() const { + const ::flyteidl::core::SecurityContext* p = security_context_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.security_context) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SecurityContext_default_instance_); +} +inline ::flyteidl::core::SecurityContext* LaunchPlanSpec::release_security_context() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.security_context) + + ::flyteidl::core::SecurityContext* temp = security_context_; + security_context_ = nullptr; + return temp; +} +inline ::flyteidl::core::SecurityContext* LaunchPlanSpec::mutable_security_context() { + + if (security_context_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); + security_context_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.security_context) + return security_context_; +} +inline void LaunchPlanSpec::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); + } + if (security_context) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + security_context = ::google::protobuf::internal::GetOwnedMessage( + message_arena, security_context, submessage_arena); + } + + } else { + + } + security_context_ = security_context; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.security_context) +} + +// .flyteidl.core.QualityOfService quality_of_service = 16; +inline bool LaunchPlanSpec::has_quality_of_service() const { + return this != internal_default_instance() && quality_of_service_ != nullptr; +} +inline const ::flyteidl::core::QualityOfService& LaunchPlanSpec::quality_of_service() const { + const ::flyteidl::core::QualityOfService* p = quality_of_service_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.quality_of_service) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_QualityOfService_default_instance_); +} +inline ::flyteidl::core::QualityOfService* LaunchPlanSpec::release_quality_of_service() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.quality_of_service) + + ::flyteidl::core::QualityOfService* temp = quality_of_service_; + quality_of_service_ = nullptr; + return temp; +} +inline ::flyteidl::core::QualityOfService* LaunchPlanSpec::mutable_quality_of_service() { + + if (quality_of_service_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::QualityOfService>(GetArenaNoVirtual()); + quality_of_service_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.quality_of_service) + return quality_of_service_; +} +inline void LaunchPlanSpec::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(quality_of_service_); + } + if (quality_of_service) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + quality_of_service = ::google::protobuf::internal::GetOwnedMessage( + message_arena, quality_of_service, submessage_arena); + } + + } else { + + } + quality_of_service_ = quality_of_service; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.quality_of_service) +} + +// .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; +inline bool LaunchPlanSpec::has_raw_output_data_config() const { + return this != internal_default_instance() && raw_output_data_config_ != nullptr; +} +inline const ::flyteidl::admin::RawOutputDataConfig& LaunchPlanSpec::raw_output_data_config() const { + const ::flyteidl::admin::RawOutputDataConfig* p = raw_output_data_config_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_RawOutputDataConfig_default_instance_); +} +inline ::flyteidl::admin::RawOutputDataConfig* LaunchPlanSpec::release_raw_output_data_config() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) + + ::flyteidl::admin::RawOutputDataConfig* temp = raw_output_data_config_; + raw_output_data_config_ = nullptr; + return temp; +} +inline ::flyteidl::admin::RawOutputDataConfig* LaunchPlanSpec::mutable_raw_output_data_config() { + + if (raw_output_data_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(GetArenaNoVirtual()); + raw_output_data_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) + return raw_output_data_config_; +} +inline void LaunchPlanSpec::set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_output_data_config_); + } + if (raw_output_data_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + raw_output_data_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, raw_output_data_config, submessage_arena); + } + + } else { + + } + raw_output_data_config_ = raw_output_data_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) +} + +// int32 max_parallelism = 18; +inline void LaunchPlanSpec::clear_max_parallelism() { + max_parallelism_ = 0; +} +inline ::google::protobuf::int32 LaunchPlanSpec::max_parallelism() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.max_parallelism) + return max_parallelism_; +} +inline void LaunchPlanSpec::set_max_parallelism(::google::protobuf::int32 value) { + + max_parallelism_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanSpec.max_parallelism) +} + +// .google.protobuf.BoolValue interruptible = 19; +inline bool LaunchPlanSpec::has_interruptible() const { + return this != internal_default_instance() && interruptible_ != nullptr; +} +inline const ::google::protobuf::BoolValue& LaunchPlanSpec::interruptible() const { + const ::google::protobuf::BoolValue* p = interruptible_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.interruptible) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_BoolValue_default_instance_); +} +inline ::google::protobuf::BoolValue* LaunchPlanSpec::release_interruptible() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.interruptible) + + ::google::protobuf::BoolValue* temp = interruptible_; + interruptible_ = nullptr; + return temp; +} +inline ::google::protobuf::BoolValue* LaunchPlanSpec::mutable_interruptible() { + + if (interruptible_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual()); + interruptible_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.interruptible) + return interruptible_; +} +inline void LaunchPlanSpec::set_allocated_interruptible(::google::protobuf::BoolValue* interruptible) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interruptible_); + } + if (interruptible) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(interruptible)->GetArena(); + if (message_arena != submessage_arena) { + interruptible = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interruptible, submessage_arena); + } + + } else { + + } + interruptible_ = interruptible; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.interruptible) +} + +// bool overwrite_cache = 20; +inline void LaunchPlanSpec::clear_overwrite_cache() { + overwrite_cache_ = false; +} +inline bool LaunchPlanSpec::overwrite_cache() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.overwrite_cache) + return overwrite_cache_; +} +inline void LaunchPlanSpec::set_overwrite_cache(bool value) { + + overwrite_cache_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanSpec.overwrite_cache) +} + +// .flyteidl.admin.Envs envs = 21; +inline bool LaunchPlanSpec::has_envs() const { + return this != internal_default_instance() && envs_ != nullptr; +} +inline const ::flyteidl::admin::Envs& LaunchPlanSpec::envs() const { + const ::flyteidl::admin::Envs* p = envs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.envs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Envs_default_instance_); +} +inline ::flyteidl::admin::Envs* LaunchPlanSpec::release_envs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.envs) + + ::flyteidl::admin::Envs* temp = envs_; + envs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Envs* LaunchPlanSpec::mutable_envs() { + + if (envs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Envs>(GetArenaNoVirtual()); + envs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.envs) + return envs_; +} +inline void LaunchPlanSpec::set_allocated_envs(::flyteidl::admin::Envs* envs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(envs_); + } + if (envs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + envs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, envs, submessage_arena); + } + + } else { + + } + envs_ = envs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.envs) +} + +// ------------------------------------------------------------------- + +// LaunchPlanClosure + +// .flyteidl.admin.LaunchPlanState state = 1; +inline void LaunchPlanClosure::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::LaunchPlanState LaunchPlanClosure::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.state) + return static_cast< ::flyteidl::admin::LaunchPlanState >(state_); +} +inline void LaunchPlanClosure::set_state(::flyteidl::admin::LaunchPlanState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanClosure.state) +} + +// .flyteidl.core.ParameterMap expected_inputs = 2; +inline bool LaunchPlanClosure::has_expected_inputs() const { + return this != internal_default_instance() && expected_inputs_ != nullptr; +} +inline const ::flyteidl::core::ParameterMap& LaunchPlanClosure::expected_inputs() const { + const ::flyteidl::core::ParameterMap* p = expected_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.expected_inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_ParameterMap_default_instance_); +} +inline ::flyteidl::core::ParameterMap* LaunchPlanClosure::release_expected_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.expected_inputs) + + ::flyteidl::core::ParameterMap* temp = expected_inputs_; + expected_inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::ParameterMap* LaunchPlanClosure::mutable_expected_inputs() { + + if (expected_inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::ParameterMap>(GetArenaNoVirtual()); + expected_inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.expected_inputs) + return expected_inputs_; +} +inline void LaunchPlanClosure::set_allocated_expected_inputs(::flyteidl::core::ParameterMap* expected_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expected_inputs_); + } + if (expected_inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + expected_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expected_inputs, submessage_arena); + } + + } else { + + } + expected_inputs_ = expected_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.expected_inputs) +} + +// .flyteidl.core.VariableMap expected_outputs = 3; +inline bool LaunchPlanClosure::has_expected_outputs() const { + return this != internal_default_instance() && expected_outputs_ != nullptr; +} +inline const ::flyteidl::core::VariableMap& LaunchPlanClosure::expected_outputs() const { + const ::flyteidl::core::VariableMap* p = expected_outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.expected_outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_VariableMap_default_instance_); +} +inline ::flyteidl::core::VariableMap* LaunchPlanClosure::release_expected_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.expected_outputs) + + ::flyteidl::core::VariableMap* temp = expected_outputs_; + expected_outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::VariableMap* LaunchPlanClosure::mutable_expected_outputs() { + + if (expected_outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::VariableMap>(GetArenaNoVirtual()); + expected_outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.expected_outputs) + return expected_outputs_; +} +inline void LaunchPlanClosure::set_allocated_expected_outputs(::flyteidl::core::VariableMap* expected_outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expected_outputs_); + } + if (expected_outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + expected_outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expected_outputs, submessage_arena); + } + + } else { + + } + expected_outputs_ = expected_outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.expected_outputs) +} + +// .google.protobuf.Timestamp created_at = 4; +inline bool LaunchPlanClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& LaunchPlanClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.created_at) + return created_at_; +} +inline void LaunchPlanClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 5; +inline bool LaunchPlanClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& LaunchPlanClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.updated_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::mutable_updated_at() { + + if (updated_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + updated_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.updated_at) + return updated_at_; +} +inline void LaunchPlanClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.updated_at) +} + +// ------------------------------------------------------------------- + +// LaunchPlanMetadata + +// .flyteidl.admin.Schedule schedule = 1; +inline bool LaunchPlanMetadata::has_schedule() const { + return this != internal_default_instance() && schedule_ != nullptr; +} +inline const ::flyteidl::admin::Schedule& LaunchPlanMetadata::schedule() const { + const ::flyteidl::admin::Schedule* p = schedule_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanMetadata.schedule) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Schedule_default_instance_); +} +inline ::flyteidl::admin::Schedule* LaunchPlanMetadata::release_schedule() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanMetadata.schedule) + + ::flyteidl::admin::Schedule* temp = schedule_; + schedule_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Schedule* LaunchPlanMetadata::mutable_schedule() { + + if (schedule_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Schedule>(GetArenaNoVirtual()); + schedule_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanMetadata.schedule) + return schedule_; +} +inline void LaunchPlanMetadata::set_allocated_schedule(::flyteidl::admin::Schedule* schedule) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(schedule_); + } + if (schedule) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + schedule = ::google::protobuf::internal::GetOwnedMessage( + message_arena, schedule, submessage_arena); + } + + } else { + + } + schedule_ = schedule; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanMetadata.schedule) +} + +// repeated .flyteidl.admin.Notification notifications = 2; +inline int LaunchPlanMetadata::notifications_size() const { + return notifications_.size(); +} +inline ::flyteidl::admin::Notification* LaunchPlanMetadata::mutable_notifications(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* +LaunchPlanMetadata::mutable_notifications() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.LaunchPlanMetadata.notifications) + return ¬ifications_; +} +inline const ::flyteidl::admin::Notification& LaunchPlanMetadata::notifications(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_.Get(index); +} +inline ::flyteidl::admin::Notification* LaunchPlanMetadata::add_notifications() { + // @@protoc_insertion_point(field_add:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& +LaunchPlanMetadata::notifications() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_; +} + +// ------------------------------------------------------------------- + +// LaunchPlanUpdateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool LaunchPlanUpdateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& LaunchPlanUpdateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanUpdateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlanUpdateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanUpdateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlanUpdateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanUpdateRequest.id) + return id_; +} +inline void LaunchPlanUpdateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanUpdateRequest.id) +} + +// .flyteidl.admin.LaunchPlanState state = 2; +inline void LaunchPlanUpdateRequest::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::LaunchPlanState LaunchPlanUpdateRequest::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanUpdateRequest.state) + return static_cast< ::flyteidl::admin::LaunchPlanState >(state_); +} +inline void LaunchPlanUpdateRequest::set_state(::flyteidl::admin::LaunchPlanState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanUpdateRequest.state) +} + +// ------------------------------------------------------------------- + +// LaunchPlanUpdateResponse + +// ------------------------------------------------------------------- + +// ActiveLaunchPlanRequest + +// .flyteidl.admin.NamedEntityIdentifier id = 1; +inline bool ActiveLaunchPlanRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& ActiveLaunchPlanRequest::id() const { + const ::flyteidl::admin::NamedEntityIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); +} +inline ::flyteidl::admin::NamedEntityIdentifier* ActiveLaunchPlanRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanRequest.id) + + ::flyteidl::admin::NamedEntityIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NamedEntityIdentifier* ActiveLaunchPlanRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanRequest.id) + return id_; +} +inline void ActiveLaunchPlanRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanRequest.id) +} + +// ------------------------------------------------------------------- + +// ActiveLaunchPlanListRequest + +// string project = 1; +inline void ActiveLaunchPlanListRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ActiveLaunchPlanListRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.project) + return project_.GetNoArena(); +} +inline void ActiveLaunchPlanListRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.project) +} +#if LANG_CXX11 +inline void ActiveLaunchPlanListRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ActiveLaunchPlanListRequest.project) +} +#endif +inline void ActiveLaunchPlanListRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ActiveLaunchPlanListRequest.project) +} +inline void ActiveLaunchPlanListRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ActiveLaunchPlanListRequest.project) +} +inline ::std::string* ActiveLaunchPlanListRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ActiveLaunchPlanListRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ActiveLaunchPlanListRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.project) +} + +// string domain = 2; +inline void ActiveLaunchPlanListRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ActiveLaunchPlanListRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.domain) + return domain_.GetNoArena(); +} +inline void ActiveLaunchPlanListRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.domain) +} +#if LANG_CXX11 +inline void ActiveLaunchPlanListRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ActiveLaunchPlanListRequest.domain) +} +#endif +inline void ActiveLaunchPlanListRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ActiveLaunchPlanListRequest.domain) +} +inline void ActiveLaunchPlanListRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ActiveLaunchPlanListRequest.domain) +} +inline ::std::string* ActiveLaunchPlanListRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ActiveLaunchPlanListRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ActiveLaunchPlanListRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.domain) +} + +// uint32 limit = 3; +inline void ActiveLaunchPlanListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 ActiveLaunchPlanListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.limit) + return limit_; +} +inline void ActiveLaunchPlanListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.limit) +} + +// string token = 4; +inline void ActiveLaunchPlanListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ActiveLaunchPlanListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.token) + return token_.GetNoArena(); +} +inline void ActiveLaunchPlanListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.token) +} +#if LANG_CXX11 +inline void ActiveLaunchPlanListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ActiveLaunchPlanListRequest.token) +} +#endif +inline void ActiveLaunchPlanListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ActiveLaunchPlanListRequest.token) +} +inline void ActiveLaunchPlanListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ActiveLaunchPlanListRequest.token) +} +inline ::std::string* ActiveLaunchPlanListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ActiveLaunchPlanListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ActiveLaunchPlanListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.token) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool ActiveLaunchPlanListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline const ::flyteidl::admin::Sort& ActiveLaunchPlanListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* ActiveLaunchPlanListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* ActiveLaunchPlanListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) + return sort_by_; +} +inline void ActiveLaunchPlanListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::LaunchPlanState> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::LaunchPlanState>() { + return ::flyteidl::admin::LaunchPlanState_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2flaunch_5fplan_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.cc new file mode 100644 index 0000000000..0574051979 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/matchable_resource.proto + +#include "flyteidl/admin/matchable_resource.pb.h" +#include "flyteidl/admin/matchable_resource.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.h new file mode 100644 index 0000000000..c6fe673d08 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/matchable_resource.proto +#ifndef GRPC_flyteidl_2fadmin_2fmatchable_5fresource_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fmatchable_5fresource_2eproto__INCLUDED + +#include "flyteidl/admin/matchable_resource.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fmatchable_5fresource_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.cc new file mode 100644 index 0000000000..9da024066b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.cc @@ -0,0 +1,6057 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/matchable_resource.proto + +#include "flyteidl/admin/matchable_resource.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcluster_5fassignment_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto; +namespace flyteidl { +namespace admin { +class TaskResourceSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskResourceSpec_default_instance_; +class TaskResourceAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskResourceAttributes_default_instance_; +class ClusterResourceAttributes_AttributesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_; +class ClusterResourceAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ClusterResourceAttributes_default_instance_; +class ExecutionQueueAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionQueueAttributes_default_instance_; +class ExecutionClusterLabelDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionClusterLabel_default_instance_; +class PluginOverrideDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PluginOverride_default_instance_; +class PluginOverridesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PluginOverrides_default_instance_; +class WorkflowExecutionConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionConfig_default_instance_; +class MatchingAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::admin::TaskResourceAttributes* task_resource_attributes_; + const ::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes_; + const ::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes_; + const ::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label_; + const ::flyteidl::core::QualityOfService* quality_of_service_; + const ::flyteidl::admin::PluginOverrides* plugin_overrides_; + const ::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config_; + const ::flyteidl::admin::ClusterAssignment* cluster_assignment_; +} _MatchingAttributes_default_instance_; +class MatchableAttributesConfigurationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _MatchableAttributesConfiguration_default_instance_; +class ListMatchableAttributesRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListMatchableAttributesRequest_default_instance_; +class ListMatchableAttributesResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListMatchableAttributesResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsTaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskResourceSpec_default_instance_; + new (ptr) ::flyteidl::admin::TaskResourceSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskResourceSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; + +static void InitDefaultsTaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskResourceAttributes_default_instance_; + new (ptr) ::flyteidl::admin::TaskResourceAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskResourceAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { + &scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +static void InitDefaultsClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse(); + } + ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; + +static void InitDefaultsClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ClusterResourceAttributes_default_instance_; + new (ptr) ::flyteidl::admin::ClusterResourceAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ClusterResourceAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { + &scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +static void InitDefaultsExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionQueueAttributes_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionQueueAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionQueueAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; + +static void InitDefaultsExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ExecutionClusterLabel_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionClusterLabel(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionClusterLabel::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; + +static void InitDefaultsPluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_PluginOverride_default_instance_; + new (ptr) ::flyteidl::admin::PluginOverride(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::PluginOverride::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; + +static void InitDefaultsPluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_PluginOverrides_default_instance_; + new (ptr) ::flyteidl::admin::PluginOverrides(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::PluginOverrides::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { + &scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +static void InitDefaultsWorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionConfig_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsWorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { + &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, + &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto.base, + &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsMatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_MatchingAttributes_default_instance_; + new (ptr) ::flyteidl::admin::MatchingAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::MatchingAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsMatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { + &scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, + &scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, + &scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, + &scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, + &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, + &scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, + &scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base,}}; + +static void InitDefaultsMatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_MatchableAttributesConfiguration_default_instance_; + new (ptr) ::flyteidl::admin::MatchableAttributesConfiguration(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::MatchableAttributesConfiguration::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { + &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +static void InitDefaultsListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ListMatchableAttributesRequest_default_instance_; + new (ptr) ::flyteidl::admin::ListMatchableAttributesRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ListMatchableAttributesRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; + +static void InitDefaultsListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ListMatchableAttributesResponse_default_instance_; + new (ptr) ::flyteidl::admin::ListMatchableAttributesResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ListMatchableAttributesResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { + &scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[13]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, cpu_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, gpu_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, memory_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, storage_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, ephemeral_storage_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceAttributes, defaults_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceAttributes, limits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes, attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionQueueAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionQueueAttributes, tags_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClusterLabel, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClusterLabel, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, plugin_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, missing_plugin_behavior_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverrides, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverrides, overrides_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, max_parallelism_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, security_context_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, raw_output_data_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, labels_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, annotations_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, interruptible_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, overwrite_cache_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, envs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchingAttributes, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchingAttributes, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, task_resource_attributes_), + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, cluster_resource_attributes_), + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, execution_queue_attributes_), + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, execution_cluster_label_), + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, quality_of_service_), + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, plugin_overrides_), + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, workflow_execution_config_), + offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, cluster_assignment_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchingAttributes, target_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, attributes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, launch_plan_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesRequest, resource_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesResponse, configurations_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::TaskResourceSpec)}, + { 10, -1, sizeof(::flyteidl::admin::TaskResourceAttributes)}, + { 17, 24, sizeof(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse)}, + { 26, -1, sizeof(::flyteidl::admin::ClusterResourceAttributes)}, + { 32, -1, sizeof(::flyteidl::admin::ExecutionQueueAttributes)}, + { 38, -1, sizeof(::flyteidl::admin::ExecutionClusterLabel)}, + { 44, -1, sizeof(::flyteidl::admin::PluginOverride)}, + { 52, -1, sizeof(::flyteidl::admin::PluginOverrides)}, + { 58, -1, sizeof(::flyteidl::admin::WorkflowExecutionConfig)}, + { 71, -1, sizeof(::flyteidl::admin::MatchingAttributes)}, + { 85, -1, sizeof(::flyteidl::admin::MatchableAttributesConfiguration)}, + { 95, -1, sizeof(::flyteidl::admin::ListMatchableAttributesRequest)}, + { 101, -1, sizeof(::flyteidl::admin::ListMatchableAttributesResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_TaskResourceSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskResourceAttributes_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ClusterResourceAttributes_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionQueueAttributes_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionClusterLabel_default_instance_), + reinterpret_cast(&::flyteidl::admin::_PluginOverride_default_instance_), + reinterpret_cast(&::flyteidl::admin::_PluginOverrides_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionConfig_default_instance_), + reinterpret_cast(&::flyteidl::admin::_MatchingAttributes_default_instance_), + reinterpret_cast(&::flyteidl::admin::_MatchableAttributesConfiguration_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ListMatchableAttributesRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ListMatchableAttributesResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, "flyteidl/admin/matchable_resource.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, 13, file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[] = + "\n\'flyteidl/admin/matchable_resource.prot" + "o\022\016flyteidl.admin\032\033flyteidl/admin/common" + ".proto\032\'flyteidl/admin/cluster_assignmen" + "t.proto\032\035flyteidl/core/execution.proto\032\034" + "flyteidl/core/security.proto\032\036google/pro" + "tobuf/wrappers.proto\"h\n\020TaskResourceSpec" + "\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 \001(\t\022\016\n\006memory\030\003 \001" + "(\t\022\017\n\007storage\030\004 \001(\t\022\031\n\021ephemeral_storage" + "\030\005 \001(\t\"~\n\026TaskResourceAttributes\0222\n\010defa" + "ults\030\001 \001(\0132 .flyteidl.admin.TaskResource" + "Spec\0220\n\006limits\030\002 \001(\0132 .flyteidl.admin.Ta" + "skResourceSpec\"\235\001\n\031ClusterResourceAttrib" + "utes\022M\n\nattributes\030\001 \003(\01329.flyteidl.admi" + "n.ClusterResourceAttributes.AttributesEn" + "try\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t:\0028\001\"(\n\030ExecutionQueueAttribut" + "es\022\014\n\004tags\030\001 \003(\t\"&\n\025ExecutionClusterLabe" + "l\022\r\n\005value\030\001 \001(\t\"\301\001\n\016PluginOverride\022\021\n\tt" + "ask_type\030\001 \001(\t\022\021\n\tplugin_id\030\002 \003(\t\022U\n\027mis" + "sing_plugin_behavior\030\004 \001(\01624.flyteidl.ad" + "min.PluginOverride.MissingPluginBehavior" + "\"2\n\025MissingPluginBehavior\022\010\n\004FAIL\020\000\022\017\n\013U" + "SE_DEFAULT\020\001\"D\n\017PluginOverrides\0221\n\toverr" + "ides\030\001 \003(\0132\036.flyteidl.admin.PluginOverri" + "de\"\373\002\n\027WorkflowExecutionConfig\022\027\n\017max_pa" + "rallelism\030\001 \001(\005\0228\n\020security_context\030\002 \001(" + "\0132\036.flyteidl.core.SecurityContext\022C\n\026raw" + "_output_data_config\030\003 \001(\0132#.flyteidl.adm" + "in.RawOutputDataConfig\022&\n\006labels\030\004 \001(\0132\026" + ".flyteidl.admin.Labels\0220\n\013annotations\030\005 " + "\001(\0132\033.flyteidl.admin.Annotations\0221\n\rinte" + "rruptible\030\006 \001(\0132\032.google.protobuf.BoolVa" + "lue\022\027\n\017overwrite_cache\030\007 \001(\010\022\"\n\004envs\030\010 \001" + "(\0132\024.flyteidl.admin.Envs\"\341\004\n\022MatchingAtt" + "ributes\022J\n\030task_resource_attributes\030\001 \001(" + "\0132&.flyteidl.admin.TaskResourceAttribute" + "sH\000\022P\n\033cluster_resource_attributes\030\002 \001(\013" + "2).flyteidl.admin.ClusterResourceAttribu" + "tesH\000\022N\n\032execution_queue_attributes\030\003 \001(" + "\0132(.flyteidl.admin.ExecutionQueueAttribu" + "tesH\000\022H\n\027execution_cluster_label\030\004 \001(\0132%" + ".flyteidl.admin.ExecutionClusterLabelH\000\022" + "=\n\022quality_of_service\030\005 \001(\0132\037.flyteidl.c" + "ore.QualityOfServiceH\000\022;\n\020plugin_overrid" + "es\030\006 \001(\0132\037.flyteidl.admin.PluginOverride" + "sH\000\022L\n\031workflow_execution_config\030\007 \001(\0132\'" + ".flyteidl.admin.WorkflowExecutionConfigH" + "\000\022\?\n\022cluster_assignment\030\010 \001(\0132!.flyteidl" + ".admin.ClusterAssignmentH\000B\010\n\006target\"\242\001\n" + " MatchableAttributesConfiguration\0226\n\natt" + "ributes\030\001 \001(\0132\".flyteidl.admin.MatchingA" + "ttributes\022\016\n\006domain\030\002 \001(\t\022\017\n\007project\030\003 \001" + "(\t\022\020\n\010workflow\030\004 \001(\t\022\023\n\013launch_plan\030\005 \001(" + "\t\"Z\n\036ListMatchableAttributesRequest\0228\n\rr" + "esource_type\030\001 \001(\0162!.flyteidl.admin.Matc" + "hableResource\"k\n\037ListMatchableAttributes" + "Response\022H\n\016configurations\030\001 \003(\01320.flyte" + "idl.admin.MatchableAttributesConfigurati" + "on*\340\001\n\021MatchableResource\022\021\n\rTASK_RESOURC" + "E\020\000\022\024\n\020CLUSTER_RESOURCE\020\001\022\023\n\017EXECUTION_Q" + "UEUE\020\002\022\033\n\027EXECUTION_CLUSTER_LABEL\020\003\022$\n Q" + "UALITY_OF_SERVICE_SPECIFICATION\020\004\022\023\n\017PLU" + "GIN_OVERRIDE\020\005\022\035\n\031WORKFLOW_EXECUTION_CON" + "FIG\020\006\022\026\n\022CLUSTER_ASSIGNMENT\020\007B7Z5github." + "com/flyteorg/flyteidl/gen/pb-go/flyteidl" + "/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, + "flyteidl/admin/matchable_resource.proto", &assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, 2614, +}; + +void AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[5] = + { + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, + ::AddDescriptors_google_2fprotobuf_2fwrappers_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, deps, 5); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* PluginOverride_MissingPluginBehavior_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[0]; +} +bool PluginOverride_MissingPluginBehavior_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const PluginOverride_MissingPluginBehavior PluginOverride::FAIL; +const PluginOverride_MissingPluginBehavior PluginOverride::USE_DEFAULT; +const PluginOverride_MissingPluginBehavior PluginOverride::MissingPluginBehavior_MIN; +const PluginOverride_MissingPluginBehavior PluginOverride::MissingPluginBehavior_MAX; +const int PluginOverride::MissingPluginBehavior_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* MatchableResource_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[1]; +} +bool MatchableResource_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + + +// =================================================================== + +void TaskResourceSpec::InitAsDefaultInstance() { +} +class TaskResourceSpec::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskResourceSpec::kCpuFieldNumber; +const int TaskResourceSpec::kGpuFieldNumber; +const int TaskResourceSpec::kMemoryFieldNumber; +const int TaskResourceSpec::kStorageFieldNumber; +const int TaskResourceSpec::kEphemeralStorageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskResourceSpec::TaskResourceSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskResourceSpec) +} +TaskResourceSpec::TaskResourceSpec(const TaskResourceSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cpu().size() > 0) { + cpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cpu_); + } + gpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.gpu().size() > 0) { + gpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gpu_); + } + memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.memory().size() > 0) { + memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); + } + storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.storage().size() > 0) { + storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.storage_); + } + ephemeral_storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.ephemeral_storage().size() > 0) { + ephemeral_storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ephemeral_storage_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskResourceSpec) +} + +void TaskResourceSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + cpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ephemeral_storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TaskResourceSpec::~TaskResourceSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskResourceSpec) + SharedDtor(); +} + +void TaskResourceSpec::SharedDtor() { + cpu_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gpu_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + memory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + storage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ephemeral_storage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskResourceSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskResourceSpec& TaskResourceSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void TaskResourceSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskResourceSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + memory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ephemeral_storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskResourceSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string cpu = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.cpu"); + object = msg->mutable_cpu(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string gpu = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.gpu"); + object = msg->mutable_gpu(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string memory = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.memory"); + object = msg->mutable_memory(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string storage = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.storage"); + object = msg->mutable_storage(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string ephemeral_storage = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.ephemeral_storage"); + object = msg->mutable_ephemeral_storage(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskResourceSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskResourceSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string cpu = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cpu())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cpu().data(), static_cast(this->cpu().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskResourceSpec.cpu")); + } else { + goto handle_unusual; + } + break; + } + + // string gpu = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_gpu())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->gpu().data(), static_cast(this->gpu().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskResourceSpec.gpu")); + } else { + goto handle_unusual; + } + break; + } + + // string memory = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_memory())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->memory().data(), static_cast(this->memory().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskResourceSpec.memory")); + } else { + goto handle_unusual; + } + break; + } + + // string storage = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_storage())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->storage().data(), static_cast(this->storage().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskResourceSpec.storage")); + } else { + goto handle_unusual; + } + break; + } + + // string ephemeral_storage = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_ephemeral_storage())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ephemeral_storage().data(), static_cast(this->ephemeral_storage().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskResourceSpec.ephemeral_storage")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskResourceSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskResourceSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskResourceSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskResourceSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cpu = 1; + if (this->cpu().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cpu().data(), static_cast(this->cpu().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.cpu"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cpu(), output); + } + + // string gpu = 2; + if (this->gpu().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->gpu().data(), static_cast(this->gpu().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.gpu"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->gpu(), output); + } + + // string memory = 3; + if (this->memory().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->memory().data(), static_cast(this->memory().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.memory"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->memory(), output); + } + + // string storage = 4; + if (this->storage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->storage().data(), static_cast(this->storage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.storage"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->storage(), output); + } + + // string ephemeral_storage = 5; + if (this->ephemeral_storage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ephemeral_storage().data(), static_cast(this->ephemeral_storage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.ephemeral_storage"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->ephemeral_storage(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskResourceSpec) +} + +::google::protobuf::uint8* TaskResourceSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskResourceSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cpu = 1; + if (this->cpu().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cpu().data(), static_cast(this->cpu().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.cpu"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cpu(), target); + } + + // string gpu = 2; + if (this->gpu().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->gpu().data(), static_cast(this->gpu().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.gpu"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->gpu(), target); + } + + // string memory = 3; + if (this->memory().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->memory().data(), static_cast(this->memory().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.memory"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->memory(), target); + } + + // string storage = 4; + if (this->storage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->storage().data(), static_cast(this->storage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.storage"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->storage(), target); + } + + // string ephemeral_storage = 5; + if (this->ephemeral_storage().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ephemeral_storage().data(), static_cast(this->ephemeral_storage().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskResourceSpec.ephemeral_storage"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->ephemeral_storage(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskResourceSpec) + return target; +} + +size_t TaskResourceSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskResourceSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string cpu = 1; + if (this->cpu().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cpu()); + } + + // string gpu = 2; + if (this->gpu().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->gpu()); + } + + // string memory = 3; + if (this->memory().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->memory()); + } + + // string storage = 4; + if (this->storage().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->storage()); + } + + // string ephemeral_storage = 5; + if (this->ephemeral_storage().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->ephemeral_storage()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskResourceSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskResourceSpec) + GOOGLE_DCHECK_NE(&from, this); + const TaskResourceSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskResourceSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskResourceSpec) + MergeFrom(*source); + } +} + +void TaskResourceSpec::MergeFrom(const TaskResourceSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskResourceSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cpu().size() > 0) { + + cpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cpu_); + } + if (from.gpu().size() > 0) { + + gpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gpu_); + } + if (from.memory().size() > 0) { + + memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); + } + if (from.storage().size() > 0) { + + storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.storage_); + } + if (from.ephemeral_storage().size() > 0) { + + ephemeral_storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ephemeral_storage_); + } +} + +void TaskResourceSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskResourceSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskResourceSpec::CopyFrom(const TaskResourceSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskResourceSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskResourceSpec::IsInitialized() const { + return true; +} + +void TaskResourceSpec::Swap(TaskResourceSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskResourceSpec::InternalSwap(TaskResourceSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + cpu_.Swap(&other->cpu_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + gpu_.Swap(&other->gpu_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + memory_.Swap(&other->memory_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + storage_.Swap(&other->storage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + ephemeral_storage_.Swap(&other->ephemeral_storage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata TaskResourceSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskResourceAttributes::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskResourceAttributes_default_instance_._instance.get_mutable()->defaults_ = const_cast< ::flyteidl::admin::TaskResourceSpec*>( + ::flyteidl::admin::TaskResourceSpec::internal_default_instance()); + ::flyteidl::admin::_TaskResourceAttributes_default_instance_._instance.get_mutable()->limits_ = const_cast< ::flyteidl::admin::TaskResourceSpec*>( + ::flyteidl::admin::TaskResourceSpec::internal_default_instance()); +} +class TaskResourceAttributes::HasBitSetters { + public: + static const ::flyteidl::admin::TaskResourceSpec& defaults(const TaskResourceAttributes* msg); + static const ::flyteidl::admin::TaskResourceSpec& limits(const TaskResourceAttributes* msg); +}; + +const ::flyteidl::admin::TaskResourceSpec& +TaskResourceAttributes::HasBitSetters::defaults(const TaskResourceAttributes* msg) { + return *msg->defaults_; +} +const ::flyteidl::admin::TaskResourceSpec& +TaskResourceAttributes::HasBitSetters::limits(const TaskResourceAttributes* msg) { + return *msg->limits_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskResourceAttributes::kDefaultsFieldNumber; +const int TaskResourceAttributes::kLimitsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskResourceAttributes::TaskResourceAttributes() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskResourceAttributes) +} +TaskResourceAttributes::TaskResourceAttributes(const TaskResourceAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_defaults()) { + defaults_ = new ::flyteidl::admin::TaskResourceSpec(*from.defaults_); + } else { + defaults_ = nullptr; + } + if (from.has_limits()) { + limits_ = new ::flyteidl::admin::TaskResourceSpec(*from.limits_); + } else { + limits_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskResourceAttributes) +} + +void TaskResourceAttributes::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::memset(&defaults_, 0, static_cast( + reinterpret_cast(&limits_) - + reinterpret_cast(&defaults_)) + sizeof(limits_)); +} + +TaskResourceAttributes::~TaskResourceAttributes() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskResourceAttributes) + SharedDtor(); +} + +void TaskResourceAttributes::SharedDtor() { + if (this != internal_default_instance()) delete defaults_; + if (this != internal_default_instance()) delete limits_; +} + +void TaskResourceAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskResourceAttributes& TaskResourceAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void TaskResourceAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskResourceAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && defaults_ != nullptr) { + delete defaults_; + } + defaults_ = nullptr; + if (GetArenaNoVirtual() == nullptr && limits_ != nullptr) { + delete limits_; + } + limits_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskResourceAttributes::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.TaskResourceSpec defaults = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskResourceSpec::_InternalParse; + object = msg->mutable_defaults(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.TaskResourceSpec limits = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskResourceSpec::_InternalParse; + object = msg->mutable_limits(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskResourceAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskResourceAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.TaskResourceSpec defaults = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_defaults())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskResourceSpec limits = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_limits())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskResourceAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskResourceAttributes) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskResourceAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskResourceAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.TaskResourceSpec defaults = 1; + if (this->has_defaults()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::defaults(this), output); + } + + // .flyteidl.admin.TaskResourceSpec limits = 2; + if (this->has_limits()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::limits(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskResourceAttributes) +} + +::google::protobuf::uint8* TaskResourceAttributes::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskResourceAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.TaskResourceSpec defaults = 1; + if (this->has_defaults()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::defaults(this), target); + } + + // .flyteidl.admin.TaskResourceSpec limits = 2; + if (this->has_limits()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::limits(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskResourceAttributes) + return target; +} + +size_t TaskResourceAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskResourceAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.TaskResourceSpec defaults = 1; + if (this->has_defaults()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *defaults_); + } + + // .flyteidl.admin.TaskResourceSpec limits = 2; + if (this->has_limits()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *limits_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskResourceAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskResourceAttributes) + GOOGLE_DCHECK_NE(&from, this); + const TaskResourceAttributes* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskResourceAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskResourceAttributes) + MergeFrom(*source); + } +} + +void TaskResourceAttributes::MergeFrom(const TaskResourceAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskResourceAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_defaults()) { + mutable_defaults()->::flyteidl::admin::TaskResourceSpec::MergeFrom(from.defaults()); + } + if (from.has_limits()) { + mutable_limits()->::flyteidl::admin::TaskResourceSpec::MergeFrom(from.limits()); + } +} + +void TaskResourceAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskResourceAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskResourceAttributes::CopyFrom(const TaskResourceAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskResourceAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskResourceAttributes::IsInitialized() const { + return true; +} + +void TaskResourceAttributes::Swap(TaskResourceAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskResourceAttributes::InternalSwap(TaskResourceAttributes* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(defaults_, other->defaults_); + swap(limits_, other->limits_); +} + +::google::protobuf::Metadata TaskResourceAttributes::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +ClusterResourceAttributes_AttributesEntry_DoNotUse::ClusterResourceAttributes_AttributesEntry_DoNotUse() {} +ClusterResourceAttributes_AttributesEntry_DoNotUse::ClusterResourceAttributes_AttributesEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ClusterResourceAttributes_AttributesEntry_DoNotUse::MergeFrom(const ClusterResourceAttributes_AttributesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ClusterResourceAttributes_AttributesEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[2]; +} +void ClusterResourceAttributes_AttributesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ClusterResourceAttributes_AttributesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ClusterResourceAttributes_AttributesEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void ClusterResourceAttributes::InitAsDefaultInstance() { +} +class ClusterResourceAttributes::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ClusterResourceAttributes::kAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ClusterResourceAttributes::ClusterResourceAttributes() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ClusterResourceAttributes) +} +ClusterResourceAttributes::ClusterResourceAttributes(const ClusterResourceAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + attributes_.MergeFrom(from.attributes_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ClusterResourceAttributes) +} + +void ClusterResourceAttributes::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); +} + +ClusterResourceAttributes::~ClusterResourceAttributes() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ClusterResourceAttributes) + SharedDtor(); +} + +void ClusterResourceAttributes::SharedDtor() { +} + +void ClusterResourceAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ClusterResourceAttributes& ClusterResourceAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void ClusterResourceAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ClusterResourceAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + attributes_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ClusterResourceAttributes::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->attributes_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ClusterResourceAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ClusterResourceAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + ClusterResourceAttributes_AttributesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ClusterResourceAttributes_AttributesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&attributes_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ClusterResourceAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ClusterResourceAttributes) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ClusterResourceAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ClusterResourceAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map attributes = 1; + if (!this->attributes().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->attributes().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->attributes().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->attributes().begin(); + it != this->attributes().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(attributes_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->attributes().begin(); + it != this->attributes().end(); ++it) { + entry.reset(attributes_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ClusterResourceAttributes) +} + +::google::protobuf::uint8* ClusterResourceAttributes::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ClusterResourceAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map attributes = 1; + if (!this->attributes().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value"); + } + }; + + if (false && + this->attributes().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->attributes().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->attributes().begin(); + it != this->attributes().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(attributes_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->attributes().begin(); + it != this->attributes().end(); ++it) { + entry.reset(attributes_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ClusterResourceAttributes) + return target; +} + +size_t ClusterResourceAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ClusterResourceAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map attributes = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->attributes_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->attributes().begin(); + it != this->attributes().end(); ++it) { + entry.reset(attributes_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ClusterResourceAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ClusterResourceAttributes) + GOOGLE_DCHECK_NE(&from, this); + const ClusterResourceAttributes* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ClusterResourceAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ClusterResourceAttributes) + MergeFrom(*source); + } +} + +void ClusterResourceAttributes::MergeFrom(const ClusterResourceAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ClusterResourceAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + attributes_.MergeFrom(from.attributes_); +} + +void ClusterResourceAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ClusterResourceAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ClusterResourceAttributes::CopyFrom(const ClusterResourceAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ClusterResourceAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ClusterResourceAttributes::IsInitialized() const { + return true; +} + +void ClusterResourceAttributes::Swap(ClusterResourceAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void ClusterResourceAttributes::InternalSwap(ClusterResourceAttributes* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + attributes_.Swap(&other->attributes_); +} + +::google::protobuf::Metadata ClusterResourceAttributes::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionQueueAttributes::InitAsDefaultInstance() { +} +class ExecutionQueueAttributes::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionQueueAttributes::kTagsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionQueueAttributes::ExecutionQueueAttributes() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionQueueAttributes) +} +ExecutionQueueAttributes::ExecutionQueueAttributes(const ExecutionQueueAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + tags_(from.tags_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionQueueAttributes) +} + +void ExecutionQueueAttributes::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); +} + +ExecutionQueueAttributes::~ExecutionQueueAttributes() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionQueueAttributes) + SharedDtor(); +} + +void ExecutionQueueAttributes::SharedDtor() { +} + +void ExecutionQueueAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionQueueAttributes& ExecutionQueueAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionQueueAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionQueueAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionQueueAttributes::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string tags = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionQueueAttributes.tags"); + object = msg->add_tags(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionQueueAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionQueueAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string tags = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_tags())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(this->tags_size() - 1).data(), + static_cast(this->tags(this->tags_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionQueueAttributes.tags")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionQueueAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionQueueAttributes) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionQueueAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionQueueAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string tags = 1; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionQueueAttributes.tags"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->tags(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionQueueAttributes) +} + +::google::protobuf::uint8* ExecutionQueueAttributes::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionQueueAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string tags = 1; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionQueueAttributes.tags"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->tags(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionQueueAttributes) + return target; +} + +size_t ExecutionQueueAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionQueueAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string tags = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + for (int i = 0, n = this->tags_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->tags(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionQueueAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionQueueAttributes) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionQueueAttributes* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionQueueAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionQueueAttributes) + MergeFrom(*source); + } +} + +void ExecutionQueueAttributes::MergeFrom(const ExecutionQueueAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionQueueAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); +} + +void ExecutionQueueAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionQueueAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionQueueAttributes::CopyFrom(const ExecutionQueueAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionQueueAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionQueueAttributes::IsInitialized() const { + return true; +} + +void ExecutionQueueAttributes::Swap(ExecutionQueueAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionQueueAttributes::InternalSwap(ExecutionQueueAttributes* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.InternalSwap(CastToBase(&other->tags_)); +} + +::google::protobuf::Metadata ExecutionQueueAttributes::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionClusterLabel::InitAsDefaultInstance() { +} +class ExecutionClusterLabel::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionClusterLabel::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionClusterLabel::ExecutionClusterLabel() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionClusterLabel) +} +ExecutionClusterLabel::ExecutionClusterLabel(const ExecutionClusterLabel& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionClusterLabel) +} + +void ExecutionClusterLabel::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ExecutionClusterLabel::~ExecutionClusterLabel() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionClusterLabel) + SharedDtor(); +} + +void ExecutionClusterLabel::SharedDtor() { + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ExecutionClusterLabel::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionClusterLabel& ExecutionClusterLabel::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionClusterLabel::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionClusterLabel) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionClusterLabel::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionClusterLabel.value"); + object = msg->mutable_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionClusterLabel::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionClusterLabel) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionClusterLabel.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionClusterLabel) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionClusterLabel) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionClusterLabel::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionClusterLabel) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string value = 1; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionClusterLabel.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionClusterLabel) +} + +::google::protobuf::uint8* ExecutionClusterLabel::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionClusterLabel) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string value = 1; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionClusterLabel.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionClusterLabel) + return target; +} + +size_t ExecutionClusterLabel::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionClusterLabel) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string value = 1; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionClusterLabel::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionClusterLabel) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionClusterLabel* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionClusterLabel) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionClusterLabel) + MergeFrom(*source); + } +} + +void ExecutionClusterLabel::MergeFrom(const ExecutionClusterLabel& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionClusterLabel) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } +} + +void ExecutionClusterLabel::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionClusterLabel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionClusterLabel::CopyFrom(const ExecutionClusterLabel& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionClusterLabel) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionClusterLabel::IsInitialized() const { + return true; +} + +void ExecutionClusterLabel::Swap(ExecutionClusterLabel* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionClusterLabel::InternalSwap(ExecutionClusterLabel* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ExecutionClusterLabel::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PluginOverride::InitAsDefaultInstance() { +} +class PluginOverride::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PluginOverride::kTaskTypeFieldNumber; +const int PluginOverride::kPluginIdFieldNumber; +const int PluginOverride::kMissingPluginBehaviorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PluginOverride::PluginOverride() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.PluginOverride) +} +PluginOverride::PluginOverride(const PluginOverride& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + plugin_id_(from.plugin_id_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + missing_plugin_behavior_ = from.missing_plugin_behavior_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.PluginOverride) +} + +void PluginOverride::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + missing_plugin_behavior_ = 0; +} + +PluginOverride::~PluginOverride() { + // @@protoc_insertion_point(destructor:flyteidl.admin.PluginOverride) + SharedDtor(); +} + +void PluginOverride::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PluginOverride::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PluginOverride& PluginOverride::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void PluginOverride::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.PluginOverride) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + plugin_id_.Clear(); + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + missing_plugin_behavior_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PluginOverride::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.PluginOverride.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated string plugin_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.PluginOverride.plugin_id"); + object = msg->add_plugin_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_missing_plugin_behavior(static_cast<::flyteidl::admin::PluginOverride_MissingPluginBehavior>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PluginOverride::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.PluginOverride) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.PluginOverride.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string plugin_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_plugin_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->plugin_id(this->plugin_id_size() - 1).data(), + static_cast(this->plugin_id(this->plugin_id_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.PluginOverride.plugin_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_missing_plugin_behavior(static_cast< ::flyteidl::admin::PluginOverride_MissingPluginBehavior >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.PluginOverride) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.PluginOverride) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PluginOverride::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.PluginOverride) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PluginOverride.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // repeated string plugin_id = 2; + for (int i = 0, n = this->plugin_id_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->plugin_id(i).data(), static_cast(this->plugin_id(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PluginOverride.plugin_id"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->plugin_id(i), output); + } + + // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + if (this->missing_plugin_behavior() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->missing_plugin_behavior(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.PluginOverride) +} + +::google::protobuf::uint8* PluginOverride::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.PluginOverride) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PluginOverride.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // repeated string plugin_id = 2; + for (int i = 0, n = this->plugin_id_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->plugin_id(i).data(), static_cast(this->plugin_id(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PluginOverride.plugin_id"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->plugin_id(i), target); + } + + // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + if (this->missing_plugin_behavior() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->missing_plugin_behavior(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.PluginOverride) + return target; +} + +size_t PluginOverride::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.PluginOverride) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string plugin_id = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->plugin_id_size()); + for (int i = 0, n = this->plugin_id_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->plugin_id(i)); + } + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + if (this->missing_plugin_behavior() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->missing_plugin_behavior()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PluginOverride::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.PluginOverride) + GOOGLE_DCHECK_NE(&from, this); + const PluginOverride* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.PluginOverride) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.PluginOverride) + MergeFrom(*source); + } +} + +void PluginOverride::MergeFrom(const PluginOverride& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.PluginOverride) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + plugin_id_.MergeFrom(from.plugin_id_); + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.missing_plugin_behavior() != 0) { + set_missing_plugin_behavior(from.missing_plugin_behavior()); + } +} + +void PluginOverride::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.PluginOverride) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PluginOverride::CopyFrom(const PluginOverride& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.PluginOverride) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PluginOverride::IsInitialized() const { + return true; +} + +void PluginOverride::Swap(PluginOverride* other) { + if (other == this) return; + InternalSwap(other); +} +void PluginOverride::InternalSwap(PluginOverride* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + plugin_id_.InternalSwap(CastToBase(&other->plugin_id_)); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(missing_plugin_behavior_, other->missing_plugin_behavior_); +} + +::google::protobuf::Metadata PluginOverride::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PluginOverrides::InitAsDefaultInstance() { +} +class PluginOverrides::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PluginOverrides::kOverridesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PluginOverrides::PluginOverrides() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.PluginOverrides) +} +PluginOverrides::PluginOverrides(const PluginOverrides& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + overrides_(from.overrides_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.PluginOverrides) +} + +void PluginOverrides::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); +} + +PluginOverrides::~PluginOverrides() { + // @@protoc_insertion_point(destructor:flyteidl.admin.PluginOverrides) + SharedDtor(); +} + +void PluginOverrides::SharedDtor() { +} + +void PluginOverrides::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PluginOverrides& PluginOverrides::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void PluginOverrides::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.PluginOverrides) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + overrides_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PluginOverrides::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.PluginOverride overrides = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::PluginOverride::_InternalParse; + object = msg->add_overrides(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PluginOverrides::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.PluginOverrides) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.PluginOverride overrides = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_overrides())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.PluginOverrides) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.PluginOverrides) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PluginOverrides::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.PluginOverrides) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.PluginOverride overrides = 1; + for (unsigned int i = 0, + n = static_cast(this->overrides_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->overrides(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.PluginOverrides) +} + +::google::protobuf::uint8* PluginOverrides::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.PluginOverrides) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.PluginOverride overrides = 1; + for (unsigned int i = 0, + n = static_cast(this->overrides_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->overrides(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.PluginOverrides) + return target; +} + +size_t PluginOverrides::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.PluginOverrides) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.PluginOverride overrides = 1; + { + unsigned int count = static_cast(this->overrides_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->overrides(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PluginOverrides::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.PluginOverrides) + GOOGLE_DCHECK_NE(&from, this); + const PluginOverrides* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.PluginOverrides) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.PluginOverrides) + MergeFrom(*source); + } +} + +void PluginOverrides::MergeFrom(const PluginOverrides& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.PluginOverrides) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + overrides_.MergeFrom(from.overrides_); +} + +void PluginOverrides::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.PluginOverrides) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PluginOverrides::CopyFrom(const PluginOverrides& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.PluginOverrides) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PluginOverrides::IsInitialized() const { + return true; +} + +void PluginOverrides::Swap(PluginOverrides* other) { + if (other == this) return; + InternalSwap(other); +} +void PluginOverrides::InternalSwap(PluginOverrides* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&overrides_)->InternalSwap(CastToBase(&other->overrides_)); +} + +::google::protobuf::Metadata PluginOverrides::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionConfig::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( + ::flyteidl::core::SecurityContext::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->raw_output_data_config_ = const_cast< ::flyteidl::admin::RawOutputDataConfig*>( + ::flyteidl::admin::RawOutputDataConfig::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( + ::flyteidl::admin::Labels::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( + ::flyteidl::admin::Annotations::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->interruptible_ = const_cast< ::google::protobuf::BoolValue*>( + ::google::protobuf::BoolValue::internal_default_instance()); + ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->envs_ = const_cast< ::flyteidl::admin::Envs*>( + ::flyteidl::admin::Envs::internal_default_instance()); +} +class WorkflowExecutionConfig::HasBitSetters { + public: + static const ::flyteidl::core::SecurityContext& security_context(const WorkflowExecutionConfig* msg); + static const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config(const WorkflowExecutionConfig* msg); + static const ::flyteidl::admin::Labels& labels(const WorkflowExecutionConfig* msg); + static const ::flyteidl::admin::Annotations& annotations(const WorkflowExecutionConfig* msg); + static const ::google::protobuf::BoolValue& interruptible(const WorkflowExecutionConfig* msg); + static const ::flyteidl::admin::Envs& envs(const WorkflowExecutionConfig* msg); +}; + +const ::flyteidl::core::SecurityContext& +WorkflowExecutionConfig::HasBitSetters::security_context(const WorkflowExecutionConfig* msg) { + return *msg->security_context_; +} +const ::flyteidl::admin::RawOutputDataConfig& +WorkflowExecutionConfig::HasBitSetters::raw_output_data_config(const WorkflowExecutionConfig* msg) { + return *msg->raw_output_data_config_; +} +const ::flyteidl::admin::Labels& +WorkflowExecutionConfig::HasBitSetters::labels(const WorkflowExecutionConfig* msg) { + return *msg->labels_; +} +const ::flyteidl::admin::Annotations& +WorkflowExecutionConfig::HasBitSetters::annotations(const WorkflowExecutionConfig* msg) { + return *msg->annotations_; +} +const ::google::protobuf::BoolValue& +WorkflowExecutionConfig::HasBitSetters::interruptible(const WorkflowExecutionConfig* msg) { + return *msg->interruptible_; +} +const ::flyteidl::admin::Envs& +WorkflowExecutionConfig::HasBitSetters::envs(const WorkflowExecutionConfig* msg) { + return *msg->envs_; +} +void WorkflowExecutionConfig::clear_security_context() { + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; +} +void WorkflowExecutionConfig::clear_raw_output_data_config() { + if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { + delete raw_output_data_config_; + } + raw_output_data_config_ = nullptr; +} +void WorkflowExecutionConfig::clear_labels() { + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; +} +void WorkflowExecutionConfig::clear_annotations() { + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; +} +void WorkflowExecutionConfig::clear_interruptible() { + if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { + delete interruptible_; + } + interruptible_ = nullptr; +} +void WorkflowExecutionConfig::clear_envs() { + if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { + delete envs_; + } + envs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionConfig::kMaxParallelismFieldNumber; +const int WorkflowExecutionConfig::kSecurityContextFieldNumber; +const int WorkflowExecutionConfig::kRawOutputDataConfigFieldNumber; +const int WorkflowExecutionConfig::kLabelsFieldNumber; +const int WorkflowExecutionConfig::kAnnotationsFieldNumber; +const int WorkflowExecutionConfig::kInterruptibleFieldNumber; +const int WorkflowExecutionConfig::kOverwriteCacheFieldNumber; +const int WorkflowExecutionConfig::kEnvsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionConfig::WorkflowExecutionConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionConfig) +} +WorkflowExecutionConfig::WorkflowExecutionConfig(const WorkflowExecutionConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_security_context()) { + security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); + } else { + security_context_ = nullptr; + } + if (from.has_raw_output_data_config()) { + raw_output_data_config_ = new ::flyteidl::admin::RawOutputDataConfig(*from.raw_output_data_config_); + } else { + raw_output_data_config_ = nullptr; + } + if (from.has_labels()) { + labels_ = new ::flyteidl::admin::Labels(*from.labels_); + } else { + labels_ = nullptr; + } + if (from.has_annotations()) { + annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); + } else { + annotations_ = nullptr; + } + if (from.has_interruptible()) { + interruptible_ = new ::google::protobuf::BoolValue(*from.interruptible_); + } else { + interruptible_ = nullptr; + } + if (from.has_envs()) { + envs_ = new ::flyteidl::admin::Envs(*from.envs_); + } else { + envs_ = nullptr; + } + ::memcpy(&max_parallelism_, &from.max_parallelism_, + static_cast(reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionConfig) +} + +void WorkflowExecutionConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + ::memset(&security_context_, 0, static_cast( + reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&security_context_)) + sizeof(overwrite_cache_)); +} + +WorkflowExecutionConfig::~WorkflowExecutionConfig() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionConfig) + SharedDtor(); +} + +void WorkflowExecutionConfig::SharedDtor() { + if (this != internal_default_instance()) delete security_context_; + if (this != internal_default_instance()) delete raw_output_data_config_; + if (this != internal_default_instance()) delete labels_; + if (this != internal_default_instance()) delete annotations_; + if (this != internal_default_instance()) delete interruptible_; + if (this != internal_default_instance()) delete envs_; +} + +void WorkflowExecutionConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionConfig& WorkflowExecutionConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; + if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { + delete raw_output_data_config_; + } + raw_output_data_config_ = nullptr; + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; + if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { + delete interruptible_; + } + interruptible_ = nullptr; + if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { + delete envs_; + } + envs_ = nullptr; + ::memset(&max_parallelism_, 0, static_cast( + reinterpret_cast(&overwrite_cache_) - + reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 max_parallelism = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_max_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.SecurityContext security_context = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SecurityContext::_InternalParse; + object = msg->mutable_security_context(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::RawOutputDataConfig::_InternalParse; + object = msg->mutable_raw_output_data_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.Labels labels = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Labels::_InternalParse; + object = msg->mutable_labels(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.Annotations annotations = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Annotations::_InternalParse; + object = msg->mutable_annotations(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.BoolValue interruptible = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::BoolValue::_InternalParse; + object = msg->mutable_interruptible(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool overwrite_cache = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; + msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.Envs envs = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Envs::_InternalParse; + object = msg->mutable_envs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 max_parallelism = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_parallelism_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SecurityContext security_context = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_security_context())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_raw_output_data_config())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Labels labels = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_labels())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Annotations annotations = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_annotations())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.BoolValue interruptible = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interruptible())); + } else { + goto handle_unusual; + } + break; + } + + // bool overwrite_cache = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &overwrite_cache_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Envs envs = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_envs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 max_parallelism = 1; + if (this->max_parallelism() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->max_parallelism(), output); + } + + // .flyteidl.core.SecurityContext security_context = 2; + if (this->has_security_context()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::security_context(this), output); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + if (this->has_raw_output_data_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::raw_output_data_config(this), output); + } + + // .flyteidl.admin.Labels labels = 4; + if (this->has_labels()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::labels(this), output); + } + + // .flyteidl.admin.Annotations annotations = 5; + if (this->has_annotations()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::annotations(this), output); + } + + // .google.protobuf.BoolValue interruptible = 6; + if (this->has_interruptible()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::interruptible(this), output); + } + + // bool overwrite_cache = 7; + if (this->overwrite_cache() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->overwrite_cache(), output); + } + + // .flyteidl.admin.Envs envs = 8; + if (this->has_envs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::envs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionConfig) +} + +::google::protobuf::uint8* WorkflowExecutionConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 max_parallelism = 1; + if (this->max_parallelism() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->max_parallelism(), target); + } + + // .flyteidl.core.SecurityContext security_context = 2; + if (this->has_security_context()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::security_context(this), target); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + if (this->has_raw_output_data_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::raw_output_data_config(this), target); + } + + // .flyteidl.admin.Labels labels = 4; + if (this->has_labels()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::labels(this), target); + } + + // .flyteidl.admin.Annotations annotations = 5; + if (this->has_annotations()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::annotations(this), target); + } + + // .google.protobuf.BoolValue interruptible = 6; + if (this->has_interruptible()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::interruptible(this), target); + } + + // bool overwrite_cache = 7; + if (this->overwrite_cache() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->overwrite_cache(), target); + } + + // .flyteidl.admin.Envs envs = 8; + if (this->has_envs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::envs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionConfig) + return target; +} + +size_t WorkflowExecutionConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.SecurityContext security_context = 2; + if (this->has_security_context()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *security_context_); + } + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + if (this->has_raw_output_data_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *raw_output_data_config_); + } + + // .flyteidl.admin.Labels labels = 4; + if (this->has_labels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *labels_); + } + + // .flyteidl.admin.Annotations annotations = 5; + if (this->has_annotations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *annotations_); + } + + // .google.protobuf.BoolValue interruptible = 6; + if (this->has_interruptible()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *interruptible_); + } + + // .flyteidl.admin.Envs envs = 8; + if (this->has_envs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *envs_); + } + + // int32 max_parallelism = 1; + if (this->max_parallelism() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_parallelism()); + } + + // bool overwrite_cache = 7; + if (this->overwrite_cache() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionConfig) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionConfig) + MergeFrom(*source); + } +} + +void WorkflowExecutionConfig::MergeFrom(const WorkflowExecutionConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_security_context()) { + mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); + } + if (from.has_raw_output_data_config()) { + mutable_raw_output_data_config()->::flyteidl::admin::RawOutputDataConfig::MergeFrom(from.raw_output_data_config()); + } + if (from.has_labels()) { + mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); + } + if (from.has_annotations()) { + mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); + } + if (from.has_interruptible()) { + mutable_interruptible()->::google::protobuf::BoolValue::MergeFrom(from.interruptible()); + } + if (from.has_envs()) { + mutable_envs()->::flyteidl::admin::Envs::MergeFrom(from.envs()); + } + if (from.max_parallelism() != 0) { + set_max_parallelism(from.max_parallelism()); + } + if (from.overwrite_cache() != 0) { + set_overwrite_cache(from.overwrite_cache()); + } +} + +void WorkflowExecutionConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionConfig::CopyFrom(const WorkflowExecutionConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionConfig::IsInitialized() const { + return true; +} + +void WorkflowExecutionConfig::Swap(WorkflowExecutionConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionConfig::InternalSwap(WorkflowExecutionConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(security_context_, other->security_context_); + swap(raw_output_data_config_, other->raw_output_data_config_); + swap(labels_, other->labels_); + swap(annotations_, other->annotations_); + swap(interruptible_, other->interruptible_); + swap(envs_, other->envs_); + swap(max_parallelism_, other->max_parallelism_); + swap(overwrite_cache_, other->overwrite_cache_); +} + +::google::protobuf::Metadata WorkflowExecutionConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void MatchingAttributes::InitAsDefaultInstance() { + ::flyteidl::admin::_MatchingAttributes_default_instance_.task_resource_attributes_ = const_cast< ::flyteidl::admin::TaskResourceAttributes*>( + ::flyteidl::admin::TaskResourceAttributes::internal_default_instance()); + ::flyteidl::admin::_MatchingAttributes_default_instance_.cluster_resource_attributes_ = const_cast< ::flyteidl::admin::ClusterResourceAttributes*>( + ::flyteidl::admin::ClusterResourceAttributes::internal_default_instance()); + ::flyteidl::admin::_MatchingAttributes_default_instance_.execution_queue_attributes_ = const_cast< ::flyteidl::admin::ExecutionQueueAttributes*>( + ::flyteidl::admin::ExecutionQueueAttributes::internal_default_instance()); + ::flyteidl::admin::_MatchingAttributes_default_instance_.execution_cluster_label_ = const_cast< ::flyteidl::admin::ExecutionClusterLabel*>( + ::flyteidl::admin::ExecutionClusterLabel::internal_default_instance()); + ::flyteidl::admin::_MatchingAttributes_default_instance_.quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( + ::flyteidl::core::QualityOfService::internal_default_instance()); + ::flyteidl::admin::_MatchingAttributes_default_instance_.plugin_overrides_ = const_cast< ::flyteidl::admin::PluginOverrides*>( + ::flyteidl::admin::PluginOverrides::internal_default_instance()); + ::flyteidl::admin::_MatchingAttributes_default_instance_.workflow_execution_config_ = const_cast< ::flyteidl::admin::WorkflowExecutionConfig*>( + ::flyteidl::admin::WorkflowExecutionConfig::internal_default_instance()); + ::flyteidl::admin::_MatchingAttributes_default_instance_.cluster_assignment_ = const_cast< ::flyteidl::admin::ClusterAssignment*>( + ::flyteidl::admin::ClusterAssignment::internal_default_instance()); +} +class MatchingAttributes::HasBitSetters { + public: + static const ::flyteidl::admin::TaskResourceAttributes& task_resource_attributes(const MatchingAttributes* msg); + static const ::flyteidl::admin::ClusterResourceAttributes& cluster_resource_attributes(const MatchingAttributes* msg); + static const ::flyteidl::admin::ExecutionQueueAttributes& execution_queue_attributes(const MatchingAttributes* msg); + static const ::flyteidl::admin::ExecutionClusterLabel& execution_cluster_label(const MatchingAttributes* msg); + static const ::flyteidl::core::QualityOfService& quality_of_service(const MatchingAttributes* msg); + static const ::flyteidl::admin::PluginOverrides& plugin_overrides(const MatchingAttributes* msg); + static const ::flyteidl::admin::WorkflowExecutionConfig& workflow_execution_config(const MatchingAttributes* msg); + static const ::flyteidl::admin::ClusterAssignment& cluster_assignment(const MatchingAttributes* msg); +}; + +const ::flyteidl::admin::TaskResourceAttributes& +MatchingAttributes::HasBitSetters::task_resource_attributes(const MatchingAttributes* msg) { + return *msg->target_.task_resource_attributes_; +} +const ::flyteidl::admin::ClusterResourceAttributes& +MatchingAttributes::HasBitSetters::cluster_resource_attributes(const MatchingAttributes* msg) { + return *msg->target_.cluster_resource_attributes_; +} +const ::flyteidl::admin::ExecutionQueueAttributes& +MatchingAttributes::HasBitSetters::execution_queue_attributes(const MatchingAttributes* msg) { + return *msg->target_.execution_queue_attributes_; +} +const ::flyteidl::admin::ExecutionClusterLabel& +MatchingAttributes::HasBitSetters::execution_cluster_label(const MatchingAttributes* msg) { + return *msg->target_.execution_cluster_label_; +} +const ::flyteidl::core::QualityOfService& +MatchingAttributes::HasBitSetters::quality_of_service(const MatchingAttributes* msg) { + return *msg->target_.quality_of_service_; +} +const ::flyteidl::admin::PluginOverrides& +MatchingAttributes::HasBitSetters::plugin_overrides(const MatchingAttributes* msg) { + return *msg->target_.plugin_overrides_; +} +const ::flyteidl::admin::WorkflowExecutionConfig& +MatchingAttributes::HasBitSetters::workflow_execution_config(const MatchingAttributes* msg) { + return *msg->target_.workflow_execution_config_; +} +const ::flyteidl::admin::ClusterAssignment& +MatchingAttributes::HasBitSetters::cluster_assignment(const MatchingAttributes* msg) { + return *msg->target_.cluster_assignment_; +} +void MatchingAttributes::set_allocated_task_resource_attributes(::flyteidl::admin::TaskResourceAttributes* task_resource_attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (task_resource_attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_resource_attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_resource_attributes, submessage_arena); + } + set_has_task_resource_attributes(); + target_.task_resource_attributes_ = task_resource_attributes; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.task_resource_attributes) +} +void MatchingAttributes::set_allocated_cluster_resource_attributes(::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (cluster_resource_attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + cluster_resource_attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, cluster_resource_attributes, submessage_arena); + } + set_has_cluster_resource_attributes(); + target_.cluster_resource_attributes_ = cluster_resource_attributes; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) +} +void MatchingAttributes::set_allocated_execution_queue_attributes(::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (execution_queue_attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + execution_queue_attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_queue_attributes, submessage_arena); + } + set_has_execution_queue_attributes(); + target_.execution_queue_attributes_ = execution_queue_attributes; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.execution_queue_attributes) +} +void MatchingAttributes::set_allocated_execution_cluster_label(::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (execution_cluster_label) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + execution_cluster_label = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_cluster_label, submessage_arena); + } + set_has_execution_cluster_label(); + target_.execution_cluster_label_ = execution_cluster_label; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.execution_cluster_label) +} +void MatchingAttributes::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (quality_of_service) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + quality_of_service = ::google::protobuf::internal::GetOwnedMessage( + message_arena, quality_of_service, submessage_arena); + } + set_has_quality_of_service(); + target_.quality_of_service_ = quality_of_service; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.quality_of_service) +} +void MatchingAttributes::clear_quality_of_service() { + if (has_quality_of_service()) { + delete target_.quality_of_service_; + clear_has_target(); + } +} +void MatchingAttributes::set_allocated_plugin_overrides(::flyteidl::admin::PluginOverrides* plugin_overrides) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (plugin_overrides) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + plugin_overrides = ::google::protobuf::internal::GetOwnedMessage( + message_arena, plugin_overrides, submessage_arena); + } + set_has_plugin_overrides(); + target_.plugin_overrides_ = plugin_overrides; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.plugin_overrides) +} +void MatchingAttributes::set_allocated_workflow_execution_config(::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (workflow_execution_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_execution_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_execution_config, submessage_arena); + } + set_has_workflow_execution_config(); + target_.workflow_execution_config_ = workflow_execution_config; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.workflow_execution_config) +} +void MatchingAttributes::set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (cluster_assignment) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + cluster_assignment = ::google::protobuf::internal::GetOwnedMessage( + message_arena, cluster_assignment, submessage_arena); + } + set_has_cluster_assignment(); + target_.cluster_assignment_ = cluster_assignment; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.cluster_assignment) +} +void MatchingAttributes::clear_cluster_assignment() { + if (has_cluster_assignment()) { + delete target_.cluster_assignment_; + clear_has_target(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MatchingAttributes::kTaskResourceAttributesFieldNumber; +const int MatchingAttributes::kClusterResourceAttributesFieldNumber; +const int MatchingAttributes::kExecutionQueueAttributesFieldNumber; +const int MatchingAttributes::kExecutionClusterLabelFieldNumber; +const int MatchingAttributes::kQualityOfServiceFieldNumber; +const int MatchingAttributes::kPluginOverridesFieldNumber; +const int MatchingAttributes::kWorkflowExecutionConfigFieldNumber; +const int MatchingAttributes::kClusterAssignmentFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MatchingAttributes::MatchingAttributes() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.MatchingAttributes) +} +MatchingAttributes::MatchingAttributes(const MatchingAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_target(); + switch (from.target_case()) { + case kTaskResourceAttributes: { + mutable_task_resource_attributes()->::flyteidl::admin::TaskResourceAttributes::MergeFrom(from.task_resource_attributes()); + break; + } + case kClusterResourceAttributes: { + mutable_cluster_resource_attributes()->::flyteidl::admin::ClusterResourceAttributes::MergeFrom(from.cluster_resource_attributes()); + break; + } + case kExecutionQueueAttributes: { + mutable_execution_queue_attributes()->::flyteidl::admin::ExecutionQueueAttributes::MergeFrom(from.execution_queue_attributes()); + break; + } + case kExecutionClusterLabel: { + mutable_execution_cluster_label()->::flyteidl::admin::ExecutionClusterLabel::MergeFrom(from.execution_cluster_label()); + break; + } + case kQualityOfService: { + mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); + break; + } + case kPluginOverrides: { + mutable_plugin_overrides()->::flyteidl::admin::PluginOverrides::MergeFrom(from.plugin_overrides()); + break; + } + case kWorkflowExecutionConfig: { + mutable_workflow_execution_config()->::flyteidl::admin::WorkflowExecutionConfig::MergeFrom(from.workflow_execution_config()); + break; + } + case kClusterAssignment: { + mutable_cluster_assignment()->::flyteidl::admin::ClusterAssignment::MergeFrom(from.cluster_assignment()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.MatchingAttributes) +} + +void MatchingAttributes::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + clear_has_target(); +} + +MatchingAttributes::~MatchingAttributes() { + // @@protoc_insertion_point(destructor:flyteidl.admin.MatchingAttributes) + SharedDtor(); +} + +void MatchingAttributes::SharedDtor() { + if (has_target()) { + clear_target(); + } +} + +void MatchingAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const MatchingAttributes& MatchingAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void MatchingAttributes::clear_target() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.MatchingAttributes) + switch (target_case()) { + case kTaskResourceAttributes: { + delete target_.task_resource_attributes_; + break; + } + case kClusterResourceAttributes: { + delete target_.cluster_resource_attributes_; + break; + } + case kExecutionQueueAttributes: { + delete target_.execution_queue_attributes_; + break; + } + case kExecutionClusterLabel: { + delete target_.execution_cluster_label_; + break; + } + case kQualityOfService: { + delete target_.quality_of_service_; + break; + } + case kPluginOverrides: { + delete target_.plugin_overrides_; + break; + } + case kWorkflowExecutionConfig: { + delete target_.workflow_execution_config_; + break; + } + case kClusterAssignment: { + delete target_.cluster_assignment_; + break; + } + case TARGET_NOT_SET: { + break; + } + } + _oneof_case_[0] = TARGET_NOT_SET; +} + + +void MatchingAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.MatchingAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_target(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* MatchingAttributes::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskResourceAttributes::_InternalParse; + object = msg->mutable_task_resource_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ClusterResourceAttributes::_InternalParse; + object = msg->mutable_cluster_resource_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionQueueAttributes::_InternalParse; + object = msg->mutable_execution_queue_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ExecutionClusterLabel::_InternalParse; + object = msg->mutable_execution_cluster_label(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.QualityOfService quality_of_service = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::QualityOfService::_InternalParse; + object = msg->mutable_quality_of_service(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.PluginOverrides plugin_overrides = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::PluginOverrides::_InternalParse; + object = msg->mutable_plugin_overrides(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowExecutionConfig::_InternalParse; + object = msg->mutable_workflow_execution_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ClusterAssignment::_InternalParse; + object = msg->mutable_cluster_assignment(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool MatchingAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.MatchingAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_resource_attributes())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_cluster_resource_attributes())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_queue_attributes())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_cluster_label())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.QualityOfService quality_of_service = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_quality_of_service())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.PluginOverrides plugin_overrides = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_plugin_overrides())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_execution_config())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_cluster_assignment())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.MatchingAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.MatchingAttributes) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void MatchingAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.MatchingAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + if (has_task_resource_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::task_resource_attributes(this), output); + } + + // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + if (has_cluster_resource_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::cluster_resource_attributes(this), output); + } + + // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + if (has_execution_queue_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::execution_queue_attributes(this), output); + } + + // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + if (has_execution_cluster_label()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::execution_cluster_label(this), output); + } + + // .flyteidl.core.QualityOfService quality_of_service = 5; + if (has_quality_of_service()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::quality_of_service(this), output); + } + + // .flyteidl.admin.PluginOverrides plugin_overrides = 6; + if (has_plugin_overrides()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::plugin_overrides(this), output); + } + + // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + if (has_workflow_execution_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::workflow_execution_config(this), output); + } + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + if (has_cluster_assignment()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::cluster_assignment(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.MatchingAttributes) +} + +::google::protobuf::uint8* MatchingAttributes::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.MatchingAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + if (has_task_resource_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::task_resource_attributes(this), target); + } + + // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + if (has_cluster_resource_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::cluster_resource_attributes(this), target); + } + + // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + if (has_execution_queue_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::execution_queue_attributes(this), target); + } + + // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + if (has_execution_cluster_label()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::execution_cluster_label(this), target); + } + + // .flyteidl.core.QualityOfService quality_of_service = 5; + if (has_quality_of_service()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::quality_of_service(this), target); + } + + // .flyteidl.admin.PluginOverrides plugin_overrides = 6; + if (has_plugin_overrides()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::plugin_overrides(this), target); + } + + // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + if (has_workflow_execution_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::workflow_execution_config(this), target); + } + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + if (has_cluster_assignment()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::cluster_assignment(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.MatchingAttributes) + return target; +} + +size_t MatchingAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.MatchingAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (target_case()) { + // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + case kTaskResourceAttributes: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.task_resource_attributes_); + break; + } + // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + case kClusterResourceAttributes: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.cluster_resource_attributes_); + break; + } + // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + case kExecutionQueueAttributes: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.execution_queue_attributes_); + break; + } + // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + case kExecutionClusterLabel: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.execution_cluster_label_); + break; + } + // .flyteidl.core.QualityOfService quality_of_service = 5; + case kQualityOfService: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.quality_of_service_); + break; + } + // .flyteidl.admin.PluginOverrides plugin_overrides = 6; + case kPluginOverrides: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.plugin_overrides_); + break; + } + // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + case kWorkflowExecutionConfig: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.workflow_execution_config_); + break; + } + // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + case kClusterAssignment: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.cluster_assignment_); + break; + } + case TARGET_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MatchingAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.MatchingAttributes) + GOOGLE_DCHECK_NE(&from, this); + const MatchingAttributes* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.MatchingAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.MatchingAttributes) + MergeFrom(*source); + } +} + +void MatchingAttributes::MergeFrom(const MatchingAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.MatchingAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.target_case()) { + case kTaskResourceAttributes: { + mutable_task_resource_attributes()->::flyteidl::admin::TaskResourceAttributes::MergeFrom(from.task_resource_attributes()); + break; + } + case kClusterResourceAttributes: { + mutable_cluster_resource_attributes()->::flyteidl::admin::ClusterResourceAttributes::MergeFrom(from.cluster_resource_attributes()); + break; + } + case kExecutionQueueAttributes: { + mutable_execution_queue_attributes()->::flyteidl::admin::ExecutionQueueAttributes::MergeFrom(from.execution_queue_attributes()); + break; + } + case kExecutionClusterLabel: { + mutable_execution_cluster_label()->::flyteidl::admin::ExecutionClusterLabel::MergeFrom(from.execution_cluster_label()); + break; + } + case kQualityOfService: { + mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); + break; + } + case kPluginOverrides: { + mutable_plugin_overrides()->::flyteidl::admin::PluginOverrides::MergeFrom(from.plugin_overrides()); + break; + } + case kWorkflowExecutionConfig: { + mutable_workflow_execution_config()->::flyteidl::admin::WorkflowExecutionConfig::MergeFrom(from.workflow_execution_config()); + break; + } + case kClusterAssignment: { + mutable_cluster_assignment()->::flyteidl::admin::ClusterAssignment::MergeFrom(from.cluster_assignment()); + break; + } + case TARGET_NOT_SET: { + break; + } + } +} + +void MatchingAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.MatchingAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MatchingAttributes::CopyFrom(const MatchingAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.MatchingAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MatchingAttributes::IsInitialized() const { + return true; +} + +void MatchingAttributes::Swap(MatchingAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void MatchingAttributes::InternalSwap(MatchingAttributes* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(target_, other->target_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata MatchingAttributes::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void MatchableAttributesConfiguration::InitAsDefaultInstance() { + ::flyteidl::admin::_MatchableAttributesConfiguration_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( + ::flyteidl::admin::MatchingAttributes::internal_default_instance()); +} +class MatchableAttributesConfiguration::HasBitSetters { + public: + static const ::flyteidl::admin::MatchingAttributes& attributes(const MatchableAttributesConfiguration* msg); +}; + +const ::flyteidl::admin::MatchingAttributes& +MatchableAttributesConfiguration::HasBitSetters::attributes(const MatchableAttributesConfiguration* msg) { + return *msg->attributes_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MatchableAttributesConfiguration::kAttributesFieldNumber; +const int MatchableAttributesConfiguration::kDomainFieldNumber; +const int MatchableAttributesConfiguration::kProjectFieldNumber; +const int MatchableAttributesConfiguration::kWorkflowFieldNumber; +const int MatchableAttributesConfiguration::kLaunchPlanFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MatchableAttributesConfiguration::MatchableAttributesConfiguration() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.MatchableAttributesConfiguration) +} +MatchableAttributesConfiguration::MatchableAttributesConfiguration(const MatchableAttributesConfiguration& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.workflow().size() > 0) { + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + launch_plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.launch_plan().size() > 0) { + launch_plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.launch_plan_); + } + if (from.has_attributes()) { + attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.attributes_); + } else { + attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.MatchableAttributesConfiguration) +} + +void MatchableAttributesConfiguration::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + launch_plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + attributes_ = nullptr; +} + +MatchableAttributesConfiguration::~MatchableAttributesConfiguration() { + // @@protoc_insertion_point(destructor:flyteidl.admin.MatchableAttributesConfiguration) + SharedDtor(); +} + +void MatchableAttributesConfiguration::SharedDtor() { + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + launch_plan_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete attributes_; +} + +void MatchableAttributesConfiguration::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const MatchableAttributesConfiguration& MatchableAttributesConfiguration::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void MatchableAttributesConfiguration::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.MatchableAttributesConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + launch_plan_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* MatchableAttributesConfiguration::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.MatchingAttributes attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::MatchingAttributes::_InternalParse; + object = msg->mutable_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string project = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string workflow = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.workflow"); + object = msg->mutable_workflow(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string launch_plan = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.launch_plan"); + object = msg->mutable_launch_plan(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool MatchableAttributesConfiguration::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.MatchableAttributesConfiguration) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.MatchingAttributes attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_attributes())); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.MatchableAttributesConfiguration.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string project = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.MatchableAttributesConfiguration.project")); + } else { + goto handle_unusual; + } + break; + } + + // string workflow = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_workflow())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.MatchableAttributesConfiguration.workflow")); + } else { + goto handle_unusual; + } + break; + } + + // string launch_plan = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_launch_plan())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->launch_plan().data(), static_cast(this->launch_plan().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.MatchableAttributesConfiguration.launch_plan")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.MatchableAttributesConfiguration) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.MatchableAttributesConfiguration) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void MatchableAttributesConfiguration::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.MatchableAttributesConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.MatchingAttributes attributes = 1; + if (this->has_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::attributes(this), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string project = 3; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->project(), output); + } + + // string workflow = 4; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.workflow"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->workflow(), output); + } + + // string launch_plan = 5; + if (this->launch_plan().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->launch_plan().data(), static_cast(this->launch_plan().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.launch_plan"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->launch_plan(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.MatchableAttributesConfiguration) +} + +::google::protobuf::uint8* MatchableAttributesConfiguration::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.MatchableAttributesConfiguration) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.MatchingAttributes attributes = 1; + if (this->has_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::attributes(this), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string project = 3; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->project(), target); + } + + // string workflow = 4; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.workflow"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->workflow(), target); + } + + // string launch_plan = 5; + if (this->launch_plan().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->launch_plan().data(), static_cast(this->launch_plan().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.MatchableAttributesConfiguration.launch_plan"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->launch_plan(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.MatchableAttributesConfiguration) + return target; +} + +size_t MatchableAttributesConfiguration::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.MatchableAttributesConfiguration) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string project = 3; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string workflow = 4; + if (this->workflow().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->workflow()); + } + + // string launch_plan = 5; + if (this->launch_plan().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->launch_plan()); + } + + // .flyteidl.admin.MatchingAttributes attributes = 1; + if (this->has_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MatchableAttributesConfiguration::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.MatchableAttributesConfiguration) + GOOGLE_DCHECK_NE(&from, this); + const MatchableAttributesConfiguration* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.MatchableAttributesConfiguration) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.MatchableAttributesConfiguration) + MergeFrom(*source); + } +} + +void MatchableAttributesConfiguration::MergeFrom(const MatchableAttributesConfiguration& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.MatchableAttributesConfiguration) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.workflow().size() > 0) { + + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + if (from.launch_plan().size() > 0) { + + launch_plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.launch_plan_); + } + if (from.has_attributes()) { + mutable_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.attributes()); + } +} + +void MatchableAttributesConfiguration::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.MatchableAttributesConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MatchableAttributesConfiguration::CopyFrom(const MatchableAttributesConfiguration& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.MatchableAttributesConfiguration) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MatchableAttributesConfiguration::IsInitialized() const { + return true; +} + +void MatchableAttributesConfiguration::Swap(MatchableAttributesConfiguration* other) { + if (other == this) return; + InternalSwap(other); +} +void MatchableAttributesConfiguration::InternalSwap(MatchableAttributesConfiguration* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + launch_plan_.Swap(&other->launch_plan_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(attributes_, other->attributes_); +} + +::google::protobuf::Metadata MatchableAttributesConfiguration::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListMatchableAttributesRequest::InitAsDefaultInstance() { +} +class ListMatchableAttributesRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListMatchableAttributesRequest::kResourceTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListMatchableAttributesRequest::ListMatchableAttributesRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ListMatchableAttributesRequest) +} +ListMatchableAttributesRequest::ListMatchableAttributesRequest(const ListMatchableAttributesRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ListMatchableAttributesRequest) +} + +void ListMatchableAttributesRequest::SharedCtor() { + resource_type_ = 0; +} + +ListMatchableAttributesRequest::~ListMatchableAttributesRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ListMatchableAttributesRequest) + SharedDtor(); +} + +void ListMatchableAttributesRequest::SharedDtor() { +} + +void ListMatchableAttributesRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListMatchableAttributesRequest& ListMatchableAttributesRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void ListMatchableAttributesRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ListMatchableAttributesRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListMatchableAttributesRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.MatchableResource resource_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListMatchableAttributesRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ListMatchableAttributesRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.MatchableResource resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ListMatchableAttributesRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ListMatchableAttributesRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListMatchableAttributesRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ListMatchableAttributesRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.MatchableResource resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ListMatchableAttributesRequest) +} + +::google::protobuf::uint8* ListMatchableAttributesRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ListMatchableAttributesRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.MatchableResource resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ListMatchableAttributesRequest) + return target; +} + +size_t ListMatchableAttributesRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ListMatchableAttributesRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.MatchableResource resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListMatchableAttributesRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ListMatchableAttributesRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListMatchableAttributesRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ListMatchableAttributesRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ListMatchableAttributesRequest) + MergeFrom(*source); + } +} + +void ListMatchableAttributesRequest::MergeFrom(const ListMatchableAttributesRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ListMatchableAttributesRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void ListMatchableAttributesRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ListMatchableAttributesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListMatchableAttributesRequest::CopyFrom(const ListMatchableAttributesRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ListMatchableAttributesRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListMatchableAttributesRequest::IsInitialized() const { + return true; +} + +void ListMatchableAttributesRequest::Swap(ListMatchableAttributesRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ListMatchableAttributesRequest::InternalSwap(ListMatchableAttributesRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata ListMatchableAttributesRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListMatchableAttributesResponse::InitAsDefaultInstance() { +} +class ListMatchableAttributesResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListMatchableAttributesResponse::kConfigurationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListMatchableAttributesResponse::ListMatchableAttributesResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ListMatchableAttributesResponse) +} +ListMatchableAttributesResponse::ListMatchableAttributesResponse(const ListMatchableAttributesResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + configurations_(from.configurations_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ListMatchableAttributesResponse) +} + +void ListMatchableAttributesResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); +} + +ListMatchableAttributesResponse::~ListMatchableAttributesResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ListMatchableAttributesResponse) + SharedDtor(); +} + +void ListMatchableAttributesResponse::SharedDtor() { +} + +void ListMatchableAttributesResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListMatchableAttributesResponse& ListMatchableAttributesResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); + return *internal_default_instance(); +} + + +void ListMatchableAttributesResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ListMatchableAttributesResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + configurations_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListMatchableAttributesResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::MatchableAttributesConfiguration::_InternalParse; + object = msg->add_configurations(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListMatchableAttributesResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ListMatchableAttributesResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_configurations())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ListMatchableAttributesResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ListMatchableAttributesResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListMatchableAttributesResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ListMatchableAttributesResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + for (unsigned int i = 0, + n = static_cast(this->configurations_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->configurations(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ListMatchableAttributesResponse) +} + +::google::protobuf::uint8* ListMatchableAttributesResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ListMatchableAttributesResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + for (unsigned int i = 0, + n = static_cast(this->configurations_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->configurations(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ListMatchableAttributesResponse) + return target; +} + +size_t ListMatchableAttributesResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ListMatchableAttributesResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + { + unsigned int count = static_cast(this->configurations_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->configurations(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListMatchableAttributesResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ListMatchableAttributesResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListMatchableAttributesResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ListMatchableAttributesResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ListMatchableAttributesResponse) + MergeFrom(*source); + } +} + +void ListMatchableAttributesResponse::MergeFrom(const ListMatchableAttributesResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ListMatchableAttributesResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + configurations_.MergeFrom(from.configurations_); +} + +void ListMatchableAttributesResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ListMatchableAttributesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListMatchableAttributesResponse::CopyFrom(const ListMatchableAttributesResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ListMatchableAttributesResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListMatchableAttributesResponse::IsInitialized() const { + return true; +} + +void ListMatchableAttributesResponse::Swap(ListMatchableAttributesResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListMatchableAttributesResponse::InternalSwap(ListMatchableAttributesResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&configurations_)->InternalSwap(CastToBase(&other->configurations_)); +} + +::google::protobuf::Metadata ListMatchableAttributesResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskResourceSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskResourceSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskResourceSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskResourceAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskResourceAttributes >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskResourceAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ClusterResourceAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ClusterResourceAttributes >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ClusterResourceAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionQueueAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionQueueAttributes >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionQueueAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionClusterLabel* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionClusterLabel >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ExecutionClusterLabel >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::PluginOverride* Arena::CreateMaybeMessage< ::flyteidl::admin::PluginOverride >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::PluginOverride >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::PluginOverrides* Arena::CreateMaybeMessage< ::flyteidl::admin::PluginOverrides >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::PluginOverrides >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionConfig* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::MatchingAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::MatchingAttributes >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::MatchingAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::MatchableAttributesConfiguration* Arena::CreateMaybeMessage< ::flyteidl::admin::MatchableAttributesConfiguration >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::MatchableAttributesConfiguration >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListMatchableAttributesRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ListMatchableAttributesRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ListMatchableAttributesRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListMatchableAttributesResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ListMatchableAttributesResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ListMatchableAttributesResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.h new file mode 100644 index 0000000000..12ea29fdf1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.h @@ -0,0 +1,3676 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/matchable_resource.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fmatchable_5fresource_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fmatchable_5fresource_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/admin/cluster_assignment.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/security.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[13] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto(); +namespace flyteidl { +namespace admin { +class ClusterResourceAttributes; +class ClusterResourceAttributesDefaultTypeInternal; +extern ClusterResourceAttributesDefaultTypeInternal _ClusterResourceAttributes_default_instance_; +class ClusterResourceAttributes_AttributesEntry_DoNotUse; +class ClusterResourceAttributes_AttributesEntry_DoNotUseDefaultTypeInternal; +extern ClusterResourceAttributes_AttributesEntry_DoNotUseDefaultTypeInternal _ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_; +class ExecutionClusterLabel; +class ExecutionClusterLabelDefaultTypeInternal; +extern ExecutionClusterLabelDefaultTypeInternal _ExecutionClusterLabel_default_instance_; +class ExecutionQueueAttributes; +class ExecutionQueueAttributesDefaultTypeInternal; +extern ExecutionQueueAttributesDefaultTypeInternal _ExecutionQueueAttributes_default_instance_; +class ListMatchableAttributesRequest; +class ListMatchableAttributesRequestDefaultTypeInternal; +extern ListMatchableAttributesRequestDefaultTypeInternal _ListMatchableAttributesRequest_default_instance_; +class ListMatchableAttributesResponse; +class ListMatchableAttributesResponseDefaultTypeInternal; +extern ListMatchableAttributesResponseDefaultTypeInternal _ListMatchableAttributesResponse_default_instance_; +class MatchableAttributesConfiguration; +class MatchableAttributesConfigurationDefaultTypeInternal; +extern MatchableAttributesConfigurationDefaultTypeInternal _MatchableAttributesConfiguration_default_instance_; +class MatchingAttributes; +class MatchingAttributesDefaultTypeInternal; +extern MatchingAttributesDefaultTypeInternal _MatchingAttributes_default_instance_; +class PluginOverride; +class PluginOverrideDefaultTypeInternal; +extern PluginOverrideDefaultTypeInternal _PluginOverride_default_instance_; +class PluginOverrides; +class PluginOverridesDefaultTypeInternal; +extern PluginOverridesDefaultTypeInternal _PluginOverrides_default_instance_; +class TaskResourceAttributes; +class TaskResourceAttributesDefaultTypeInternal; +extern TaskResourceAttributesDefaultTypeInternal _TaskResourceAttributes_default_instance_; +class TaskResourceSpec; +class TaskResourceSpecDefaultTypeInternal; +extern TaskResourceSpecDefaultTypeInternal _TaskResourceSpec_default_instance_; +class WorkflowExecutionConfig; +class WorkflowExecutionConfigDefaultTypeInternal; +extern WorkflowExecutionConfigDefaultTypeInternal _WorkflowExecutionConfig_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::ClusterResourceAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ClusterResourceAttributes>(Arena*); +template<> ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse>(Arena*); +template<> ::flyteidl::admin::ExecutionClusterLabel* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionClusterLabel>(Arena*); +template<> ::flyteidl::admin::ExecutionQueueAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionQueueAttributes>(Arena*); +template<> ::flyteidl::admin::ListMatchableAttributesRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ListMatchableAttributesRequest>(Arena*); +template<> ::flyteidl::admin::ListMatchableAttributesResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ListMatchableAttributesResponse>(Arena*); +template<> ::flyteidl::admin::MatchableAttributesConfiguration* Arena::CreateMaybeMessage<::flyteidl::admin::MatchableAttributesConfiguration>(Arena*); +template<> ::flyteidl::admin::MatchingAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(Arena*); +template<> ::flyteidl::admin::PluginOverride* Arena::CreateMaybeMessage<::flyteidl::admin::PluginOverride>(Arena*); +template<> ::flyteidl::admin::PluginOverrides* Arena::CreateMaybeMessage<::flyteidl::admin::PluginOverrides>(Arena*); +template<> ::flyteidl::admin::TaskResourceAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::TaskResourceAttributes>(Arena*); +template<> ::flyteidl::admin::TaskResourceSpec* Arena::CreateMaybeMessage<::flyteidl::admin::TaskResourceSpec>(Arena*); +template<> ::flyteidl::admin::WorkflowExecutionConfig* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionConfig>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum PluginOverride_MissingPluginBehavior { + PluginOverride_MissingPluginBehavior_FAIL = 0, + PluginOverride_MissingPluginBehavior_USE_DEFAULT = 1, + PluginOverride_MissingPluginBehavior_PluginOverride_MissingPluginBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + PluginOverride_MissingPluginBehavior_PluginOverride_MissingPluginBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool PluginOverride_MissingPluginBehavior_IsValid(int value); +const PluginOverride_MissingPluginBehavior PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MIN = PluginOverride_MissingPluginBehavior_FAIL; +const PluginOverride_MissingPluginBehavior PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MAX = PluginOverride_MissingPluginBehavior_USE_DEFAULT; +const int PluginOverride_MissingPluginBehavior_MissingPluginBehavior_ARRAYSIZE = PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PluginOverride_MissingPluginBehavior_descriptor(); +inline const ::std::string& PluginOverride_MissingPluginBehavior_Name(PluginOverride_MissingPluginBehavior value) { + return ::google::protobuf::internal::NameOfEnum( + PluginOverride_MissingPluginBehavior_descriptor(), value); +} +inline bool PluginOverride_MissingPluginBehavior_Parse( + const ::std::string& name, PluginOverride_MissingPluginBehavior* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PluginOverride_MissingPluginBehavior_descriptor(), name, value); +} +enum MatchableResource { + TASK_RESOURCE = 0, + CLUSTER_RESOURCE = 1, + EXECUTION_QUEUE = 2, + EXECUTION_CLUSTER_LABEL = 3, + QUALITY_OF_SERVICE_SPECIFICATION = 4, + PLUGIN_OVERRIDE = 5, + WORKFLOW_EXECUTION_CONFIG = 6, + CLUSTER_ASSIGNMENT = 7, + MatchableResource_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + MatchableResource_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool MatchableResource_IsValid(int value); +const MatchableResource MatchableResource_MIN = TASK_RESOURCE; +const MatchableResource MatchableResource_MAX = CLUSTER_ASSIGNMENT; +const int MatchableResource_ARRAYSIZE = MatchableResource_MAX + 1; + +const ::google::protobuf::EnumDescriptor* MatchableResource_descriptor(); +inline const ::std::string& MatchableResource_Name(MatchableResource value) { + return ::google::protobuf::internal::NameOfEnum( + MatchableResource_descriptor(), value); +} +inline bool MatchableResource_Parse( + const ::std::string& name, MatchableResource* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MatchableResource_descriptor(), name, value); +} +// =================================================================== + +class TaskResourceSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskResourceSpec) */ { + public: + TaskResourceSpec(); + virtual ~TaskResourceSpec(); + + TaskResourceSpec(const TaskResourceSpec& from); + + inline TaskResourceSpec& operator=(const TaskResourceSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskResourceSpec(TaskResourceSpec&& from) noexcept + : TaskResourceSpec() { + *this = ::std::move(from); + } + + inline TaskResourceSpec& operator=(TaskResourceSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskResourceSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskResourceSpec* internal_default_instance() { + return reinterpret_cast( + &_TaskResourceSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(TaskResourceSpec* other); + friend void swap(TaskResourceSpec& a, TaskResourceSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskResourceSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskResourceSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskResourceSpec& from); + void MergeFrom(const TaskResourceSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskResourceSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string cpu = 1; + void clear_cpu(); + static const int kCpuFieldNumber = 1; + const ::std::string& cpu() const; + void set_cpu(const ::std::string& value); + #if LANG_CXX11 + void set_cpu(::std::string&& value); + #endif + void set_cpu(const char* value); + void set_cpu(const char* value, size_t size); + ::std::string* mutable_cpu(); + ::std::string* release_cpu(); + void set_allocated_cpu(::std::string* cpu); + + // string gpu = 2; + void clear_gpu(); + static const int kGpuFieldNumber = 2; + const ::std::string& gpu() const; + void set_gpu(const ::std::string& value); + #if LANG_CXX11 + void set_gpu(::std::string&& value); + #endif + void set_gpu(const char* value); + void set_gpu(const char* value, size_t size); + ::std::string* mutable_gpu(); + ::std::string* release_gpu(); + void set_allocated_gpu(::std::string* gpu); + + // string memory = 3; + void clear_memory(); + static const int kMemoryFieldNumber = 3; + const ::std::string& memory() const; + void set_memory(const ::std::string& value); + #if LANG_CXX11 + void set_memory(::std::string&& value); + #endif + void set_memory(const char* value); + void set_memory(const char* value, size_t size); + ::std::string* mutable_memory(); + ::std::string* release_memory(); + void set_allocated_memory(::std::string* memory); + + // string storage = 4; + void clear_storage(); + static const int kStorageFieldNumber = 4; + const ::std::string& storage() const; + void set_storage(const ::std::string& value); + #if LANG_CXX11 + void set_storage(::std::string&& value); + #endif + void set_storage(const char* value); + void set_storage(const char* value, size_t size); + ::std::string* mutable_storage(); + ::std::string* release_storage(); + void set_allocated_storage(::std::string* storage); + + // string ephemeral_storage = 5; + void clear_ephemeral_storage(); + static const int kEphemeralStorageFieldNumber = 5; + const ::std::string& ephemeral_storage() const; + void set_ephemeral_storage(const ::std::string& value); + #if LANG_CXX11 + void set_ephemeral_storage(::std::string&& value); + #endif + void set_ephemeral_storage(const char* value); + void set_ephemeral_storage(const char* value, size_t size); + ::std::string* mutable_ephemeral_storage(); + ::std::string* release_ephemeral_storage(); + void set_allocated_ephemeral_storage(::std::string* ephemeral_storage); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cpu_; + ::google::protobuf::internal::ArenaStringPtr gpu_; + ::google::protobuf::internal::ArenaStringPtr memory_; + ::google::protobuf::internal::ArenaStringPtr storage_; + ::google::protobuf::internal::ArenaStringPtr ephemeral_storage_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskResourceAttributes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskResourceAttributes) */ { + public: + TaskResourceAttributes(); + virtual ~TaskResourceAttributes(); + + TaskResourceAttributes(const TaskResourceAttributes& from); + + inline TaskResourceAttributes& operator=(const TaskResourceAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskResourceAttributes(TaskResourceAttributes&& from) noexcept + : TaskResourceAttributes() { + *this = ::std::move(from); + } + + inline TaskResourceAttributes& operator=(TaskResourceAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskResourceAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskResourceAttributes* internal_default_instance() { + return reinterpret_cast( + &_TaskResourceAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(TaskResourceAttributes* other); + friend void swap(TaskResourceAttributes& a, TaskResourceAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskResourceAttributes* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskResourceAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskResourceAttributes& from); + void MergeFrom(const TaskResourceAttributes& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskResourceAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.TaskResourceSpec defaults = 1; + bool has_defaults() const; + void clear_defaults(); + static const int kDefaultsFieldNumber = 1; + const ::flyteidl::admin::TaskResourceSpec& defaults() const; + ::flyteidl::admin::TaskResourceSpec* release_defaults(); + ::flyteidl::admin::TaskResourceSpec* mutable_defaults(); + void set_allocated_defaults(::flyteidl::admin::TaskResourceSpec* defaults); + + // .flyteidl.admin.TaskResourceSpec limits = 2; + bool has_limits() const; + void clear_limits(); + static const int kLimitsFieldNumber = 2; + const ::flyteidl::admin::TaskResourceSpec& limits() const; + ::flyteidl::admin::TaskResourceSpec* release_limits(); + ::flyteidl::admin::TaskResourceSpec* mutable_limits(); + void set_allocated_limits(::flyteidl::admin::TaskResourceSpec* limits); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::TaskResourceSpec* defaults_; + ::flyteidl::admin::TaskResourceSpec* limits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class ClusterResourceAttributes_AttributesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ClusterResourceAttributes_AttributesEntry_DoNotUse(); + ClusterResourceAttributes_AttributesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ClusterResourceAttributes_AttributesEntry_DoNotUse& other); + static const ClusterResourceAttributes_AttributesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ClusterResourceAttributes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ClusterResourceAttributes) */ { + public: + ClusterResourceAttributes(); + virtual ~ClusterResourceAttributes(); + + ClusterResourceAttributes(const ClusterResourceAttributes& from); + + inline ClusterResourceAttributes& operator=(const ClusterResourceAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ClusterResourceAttributes(ClusterResourceAttributes&& from) noexcept + : ClusterResourceAttributes() { + *this = ::std::move(from); + } + + inline ClusterResourceAttributes& operator=(ClusterResourceAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ClusterResourceAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ClusterResourceAttributes* internal_default_instance() { + return reinterpret_cast( + &_ClusterResourceAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ClusterResourceAttributes* other); + friend void swap(ClusterResourceAttributes& a, ClusterResourceAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ClusterResourceAttributes* New() const final { + return CreateMaybeMessage(nullptr); + } + + ClusterResourceAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ClusterResourceAttributes& from); + void MergeFrom(const ClusterResourceAttributes& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ClusterResourceAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map attributes = 1; + int attributes_size() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + attributes() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_attributes(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ClusterResourceAttributes_AttributesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionQueueAttributes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionQueueAttributes) */ { + public: + ExecutionQueueAttributes(); + virtual ~ExecutionQueueAttributes(); + + ExecutionQueueAttributes(const ExecutionQueueAttributes& from); + + inline ExecutionQueueAttributes& operator=(const ExecutionQueueAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionQueueAttributes(ExecutionQueueAttributes&& from) noexcept + : ExecutionQueueAttributes() { + *this = ::std::move(from); + } + + inline ExecutionQueueAttributes& operator=(ExecutionQueueAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionQueueAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionQueueAttributes* internal_default_instance() { + return reinterpret_cast( + &_ExecutionQueueAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(ExecutionQueueAttributes* other); + friend void swap(ExecutionQueueAttributes& a, ExecutionQueueAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionQueueAttributes* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionQueueAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionQueueAttributes& from); + void MergeFrom(const ExecutionQueueAttributes& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionQueueAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string tags = 1; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 1; + const ::std::string& tags(int index) const; + ::std::string* mutable_tags(int index); + void set_tags(int index, const ::std::string& value); + #if LANG_CXX11 + void set_tags(int index, ::std::string&& value); + #endif + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + ::std::string* add_tags(); + void add_tags(const ::std::string& value); + #if LANG_CXX11 + void add_tags(::std::string&& value); + #endif + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> tags_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionClusterLabel final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionClusterLabel) */ { + public: + ExecutionClusterLabel(); + virtual ~ExecutionClusterLabel(); + + ExecutionClusterLabel(const ExecutionClusterLabel& from); + + inline ExecutionClusterLabel& operator=(const ExecutionClusterLabel& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionClusterLabel(ExecutionClusterLabel&& from) noexcept + : ExecutionClusterLabel() { + *this = ::std::move(from); + } + + inline ExecutionClusterLabel& operator=(ExecutionClusterLabel&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionClusterLabel& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionClusterLabel* internal_default_instance() { + return reinterpret_cast( + &_ExecutionClusterLabel_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ExecutionClusterLabel* other); + friend void swap(ExecutionClusterLabel& a, ExecutionClusterLabel& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionClusterLabel* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionClusterLabel* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionClusterLabel& from); + void MergeFrom(const ExecutionClusterLabel& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionClusterLabel* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string value = 1; + void clear_value(); + static const int kValueFieldNumber = 1; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class PluginOverride final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.PluginOverride) */ { + public: + PluginOverride(); + virtual ~PluginOverride(); + + PluginOverride(const PluginOverride& from); + + inline PluginOverride& operator=(const PluginOverride& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PluginOverride(PluginOverride&& from) noexcept + : PluginOverride() { + *this = ::std::move(from); + } + + inline PluginOverride& operator=(PluginOverride&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PluginOverride& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PluginOverride* internal_default_instance() { + return reinterpret_cast( + &_PluginOverride_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(PluginOverride* other); + friend void swap(PluginOverride& a, PluginOverride& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PluginOverride* New() const final { + return CreateMaybeMessage(nullptr); + } + + PluginOverride* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PluginOverride& from); + void MergeFrom(const PluginOverride& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PluginOverride* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef PluginOverride_MissingPluginBehavior MissingPluginBehavior; + static const MissingPluginBehavior FAIL = + PluginOverride_MissingPluginBehavior_FAIL; + static const MissingPluginBehavior USE_DEFAULT = + PluginOverride_MissingPluginBehavior_USE_DEFAULT; + static inline bool MissingPluginBehavior_IsValid(int value) { + return PluginOverride_MissingPluginBehavior_IsValid(value); + } + static const MissingPluginBehavior MissingPluginBehavior_MIN = + PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MIN; + static const MissingPluginBehavior MissingPluginBehavior_MAX = + PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MAX; + static const int MissingPluginBehavior_ARRAYSIZE = + PluginOverride_MissingPluginBehavior_MissingPluginBehavior_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + MissingPluginBehavior_descriptor() { + return PluginOverride_MissingPluginBehavior_descriptor(); + } + static inline const ::std::string& MissingPluginBehavior_Name(MissingPluginBehavior value) { + return PluginOverride_MissingPluginBehavior_Name(value); + } + static inline bool MissingPluginBehavior_Parse(const ::std::string& name, + MissingPluginBehavior* value) { + return PluginOverride_MissingPluginBehavior_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated string plugin_id = 2; + int plugin_id_size() const; + void clear_plugin_id(); + static const int kPluginIdFieldNumber = 2; + const ::std::string& plugin_id(int index) const; + ::std::string* mutable_plugin_id(int index); + void set_plugin_id(int index, const ::std::string& value); + #if LANG_CXX11 + void set_plugin_id(int index, ::std::string&& value); + #endif + void set_plugin_id(int index, const char* value); + void set_plugin_id(int index, const char* value, size_t size); + ::std::string* add_plugin_id(); + void add_plugin_id(const ::std::string& value); + #if LANG_CXX11 + void add_plugin_id(::std::string&& value); + #endif + void add_plugin_id(const char* value); + void add_plugin_id(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& plugin_id() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_plugin_id(); + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + void clear_missing_plugin_behavior(); + static const int kMissingPluginBehaviorFieldNumber = 4; + ::flyteidl::admin::PluginOverride_MissingPluginBehavior missing_plugin_behavior() const; + void set_missing_plugin_behavior(::flyteidl::admin::PluginOverride_MissingPluginBehavior value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverride) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> plugin_id_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + int missing_plugin_behavior_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class PluginOverrides final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.PluginOverrides) */ { + public: + PluginOverrides(); + virtual ~PluginOverrides(); + + PluginOverrides(const PluginOverrides& from); + + inline PluginOverrides& operator=(const PluginOverrides& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PluginOverrides(PluginOverrides&& from) noexcept + : PluginOverrides() { + *this = ::std::move(from); + } + + inline PluginOverrides& operator=(PluginOverrides&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PluginOverrides& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PluginOverrides* internal_default_instance() { + return reinterpret_cast( + &_PluginOverrides_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(PluginOverrides* other); + friend void swap(PluginOverrides& a, PluginOverrides& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PluginOverrides* New() const final { + return CreateMaybeMessage(nullptr); + } + + PluginOverrides* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PluginOverrides& from); + void MergeFrom(const PluginOverrides& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PluginOverrides* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.PluginOverride overrides = 1; + int overrides_size() const; + void clear_overrides(); + static const int kOverridesFieldNumber = 1; + ::flyteidl::admin::PluginOverride* mutable_overrides(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >* + mutable_overrides(); + const ::flyteidl::admin::PluginOverride& overrides(int index) const; + ::flyteidl::admin::PluginOverride* add_overrides(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >& + overrides() const; + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverrides) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride > overrides_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionConfig) */ { + public: + WorkflowExecutionConfig(); + virtual ~WorkflowExecutionConfig(); + + WorkflowExecutionConfig(const WorkflowExecutionConfig& from); + + inline WorkflowExecutionConfig& operator=(const WorkflowExecutionConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionConfig(WorkflowExecutionConfig&& from) noexcept + : WorkflowExecutionConfig() { + *this = ::std::move(from); + } + + inline WorkflowExecutionConfig& operator=(WorkflowExecutionConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionConfig* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(WorkflowExecutionConfig* other); + friend void swap(WorkflowExecutionConfig& a, WorkflowExecutionConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionConfig& from); + void MergeFrom(const WorkflowExecutionConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.SecurityContext security_context = 2; + bool has_security_context() const; + void clear_security_context(); + static const int kSecurityContextFieldNumber = 2; + const ::flyteidl::core::SecurityContext& security_context() const; + ::flyteidl::core::SecurityContext* release_security_context(); + ::flyteidl::core::SecurityContext* mutable_security_context(); + void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); + + // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + bool has_raw_output_data_config() const; + void clear_raw_output_data_config(); + static const int kRawOutputDataConfigFieldNumber = 3; + const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config() const; + ::flyteidl::admin::RawOutputDataConfig* release_raw_output_data_config(); + ::flyteidl::admin::RawOutputDataConfig* mutable_raw_output_data_config(); + void set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config); + + // .flyteidl.admin.Labels labels = 4; + bool has_labels() const; + void clear_labels(); + static const int kLabelsFieldNumber = 4; + const ::flyteidl::admin::Labels& labels() const; + ::flyteidl::admin::Labels* release_labels(); + ::flyteidl::admin::Labels* mutable_labels(); + void set_allocated_labels(::flyteidl::admin::Labels* labels); + + // .flyteidl.admin.Annotations annotations = 5; + bool has_annotations() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 5; + const ::flyteidl::admin::Annotations& annotations() const; + ::flyteidl::admin::Annotations* release_annotations(); + ::flyteidl::admin::Annotations* mutable_annotations(); + void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); + + // .google.protobuf.BoolValue interruptible = 6; + bool has_interruptible() const; + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 6; + const ::google::protobuf::BoolValue& interruptible() const; + ::google::protobuf::BoolValue* release_interruptible(); + ::google::protobuf::BoolValue* mutable_interruptible(); + void set_allocated_interruptible(::google::protobuf::BoolValue* interruptible); + + // .flyteidl.admin.Envs envs = 8; + bool has_envs() const; + void clear_envs(); + static const int kEnvsFieldNumber = 8; + const ::flyteidl::admin::Envs& envs() const; + ::flyteidl::admin::Envs* release_envs(); + ::flyteidl::admin::Envs* mutable_envs(); + void set_allocated_envs(::flyteidl::admin::Envs* envs); + + // int32 max_parallelism = 1; + void clear_max_parallelism(); + static const int kMaxParallelismFieldNumber = 1; + ::google::protobuf::int32 max_parallelism() const; + void set_max_parallelism(::google::protobuf::int32 value); + + // bool overwrite_cache = 7; + void clear_overwrite_cache(); + static const int kOverwriteCacheFieldNumber = 7; + bool overwrite_cache() const; + void set_overwrite_cache(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::SecurityContext* security_context_; + ::flyteidl::admin::RawOutputDataConfig* raw_output_data_config_; + ::flyteidl::admin::Labels* labels_; + ::flyteidl::admin::Annotations* annotations_; + ::google::protobuf::BoolValue* interruptible_; + ::flyteidl::admin::Envs* envs_; + ::google::protobuf::int32 max_parallelism_; + bool overwrite_cache_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class MatchingAttributes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.MatchingAttributes) */ { + public: + MatchingAttributes(); + virtual ~MatchingAttributes(); + + MatchingAttributes(const MatchingAttributes& from); + + inline MatchingAttributes& operator=(const MatchingAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MatchingAttributes(MatchingAttributes&& from) noexcept + : MatchingAttributes() { + *this = ::std::move(from); + } + + inline MatchingAttributes& operator=(MatchingAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const MatchingAttributes& default_instance(); + + enum TargetCase { + kTaskResourceAttributes = 1, + kClusterResourceAttributes = 2, + kExecutionQueueAttributes = 3, + kExecutionClusterLabel = 4, + kQualityOfService = 5, + kPluginOverrides = 6, + kWorkflowExecutionConfig = 7, + kClusterAssignment = 8, + TARGET_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MatchingAttributes* internal_default_instance() { + return reinterpret_cast( + &_MatchingAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(MatchingAttributes* other); + friend void swap(MatchingAttributes& a, MatchingAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MatchingAttributes* New() const final { + return CreateMaybeMessage(nullptr); + } + + MatchingAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MatchingAttributes& from); + void MergeFrom(const MatchingAttributes& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MatchingAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + bool has_task_resource_attributes() const; + void clear_task_resource_attributes(); + static const int kTaskResourceAttributesFieldNumber = 1; + const ::flyteidl::admin::TaskResourceAttributes& task_resource_attributes() const; + ::flyteidl::admin::TaskResourceAttributes* release_task_resource_attributes(); + ::flyteidl::admin::TaskResourceAttributes* mutable_task_resource_attributes(); + void set_allocated_task_resource_attributes(::flyteidl::admin::TaskResourceAttributes* task_resource_attributes); + + // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + bool has_cluster_resource_attributes() const; + void clear_cluster_resource_attributes(); + static const int kClusterResourceAttributesFieldNumber = 2; + const ::flyteidl::admin::ClusterResourceAttributes& cluster_resource_attributes() const; + ::flyteidl::admin::ClusterResourceAttributes* release_cluster_resource_attributes(); + ::flyteidl::admin::ClusterResourceAttributes* mutable_cluster_resource_attributes(); + void set_allocated_cluster_resource_attributes(::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes); + + // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + bool has_execution_queue_attributes() const; + void clear_execution_queue_attributes(); + static const int kExecutionQueueAttributesFieldNumber = 3; + const ::flyteidl::admin::ExecutionQueueAttributes& execution_queue_attributes() const; + ::flyteidl::admin::ExecutionQueueAttributes* release_execution_queue_attributes(); + ::flyteidl::admin::ExecutionQueueAttributes* mutable_execution_queue_attributes(); + void set_allocated_execution_queue_attributes(::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes); + + // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + bool has_execution_cluster_label() const; + void clear_execution_cluster_label(); + static const int kExecutionClusterLabelFieldNumber = 4; + const ::flyteidl::admin::ExecutionClusterLabel& execution_cluster_label() const; + ::flyteidl::admin::ExecutionClusterLabel* release_execution_cluster_label(); + ::flyteidl::admin::ExecutionClusterLabel* mutable_execution_cluster_label(); + void set_allocated_execution_cluster_label(::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label); + + // .flyteidl.core.QualityOfService quality_of_service = 5; + bool has_quality_of_service() const; + void clear_quality_of_service(); + static const int kQualityOfServiceFieldNumber = 5; + const ::flyteidl::core::QualityOfService& quality_of_service() const; + ::flyteidl::core::QualityOfService* release_quality_of_service(); + ::flyteidl::core::QualityOfService* mutable_quality_of_service(); + void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); + + // .flyteidl.admin.PluginOverrides plugin_overrides = 6; + bool has_plugin_overrides() const; + void clear_plugin_overrides(); + static const int kPluginOverridesFieldNumber = 6; + const ::flyteidl::admin::PluginOverrides& plugin_overrides() const; + ::flyteidl::admin::PluginOverrides* release_plugin_overrides(); + ::flyteidl::admin::PluginOverrides* mutable_plugin_overrides(); + void set_allocated_plugin_overrides(::flyteidl::admin::PluginOverrides* plugin_overrides); + + // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + bool has_workflow_execution_config() const; + void clear_workflow_execution_config(); + static const int kWorkflowExecutionConfigFieldNumber = 7; + const ::flyteidl::admin::WorkflowExecutionConfig& workflow_execution_config() const; + ::flyteidl::admin::WorkflowExecutionConfig* release_workflow_execution_config(); + ::flyteidl::admin::WorkflowExecutionConfig* mutable_workflow_execution_config(); + void set_allocated_workflow_execution_config(::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config); + + // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + bool has_cluster_assignment() const; + void clear_cluster_assignment(); + static const int kClusterAssignmentFieldNumber = 8; + const ::flyteidl::admin::ClusterAssignment& cluster_assignment() const; + ::flyteidl::admin::ClusterAssignment* release_cluster_assignment(); + ::flyteidl::admin::ClusterAssignment* mutable_cluster_assignment(); + void set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment); + + void clear_target(); + TargetCase target_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) + private: + class HasBitSetters; + void set_has_task_resource_attributes(); + void set_has_cluster_resource_attributes(); + void set_has_execution_queue_attributes(); + void set_has_execution_cluster_label(); + void set_has_quality_of_service(); + void set_has_plugin_overrides(); + void set_has_workflow_execution_config(); + void set_has_cluster_assignment(); + + inline bool has_target() const; + inline void clear_has_target(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union TargetUnion { + TargetUnion() {} + ::flyteidl::admin::TaskResourceAttributes* task_resource_attributes_; + ::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes_; + ::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes_; + ::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label_; + ::flyteidl::core::QualityOfService* quality_of_service_; + ::flyteidl::admin::PluginOverrides* plugin_overrides_; + ::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config_; + ::flyteidl::admin::ClusterAssignment* cluster_assignment_; + } target_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class MatchableAttributesConfiguration final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.MatchableAttributesConfiguration) */ { + public: + MatchableAttributesConfiguration(); + virtual ~MatchableAttributesConfiguration(); + + MatchableAttributesConfiguration(const MatchableAttributesConfiguration& from); + + inline MatchableAttributesConfiguration& operator=(const MatchableAttributesConfiguration& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MatchableAttributesConfiguration(MatchableAttributesConfiguration&& from) noexcept + : MatchableAttributesConfiguration() { + *this = ::std::move(from); + } + + inline MatchableAttributesConfiguration& operator=(MatchableAttributesConfiguration&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const MatchableAttributesConfiguration& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MatchableAttributesConfiguration* internal_default_instance() { + return reinterpret_cast( + &_MatchableAttributesConfiguration_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(MatchableAttributesConfiguration* other); + friend void swap(MatchableAttributesConfiguration& a, MatchableAttributesConfiguration& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MatchableAttributesConfiguration* New() const final { + return CreateMaybeMessage(nullptr); + } + + MatchableAttributesConfiguration* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MatchableAttributesConfiguration& from); + void MergeFrom(const MatchableAttributesConfiguration& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MatchableAttributesConfiguration* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string project = 3; + void clear_project(); + static const int kProjectFieldNumber = 3; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string workflow = 4; + void clear_workflow(); + static const int kWorkflowFieldNumber = 4; + const ::std::string& workflow() const; + void set_workflow(const ::std::string& value); + #if LANG_CXX11 + void set_workflow(::std::string&& value); + #endif + void set_workflow(const char* value); + void set_workflow(const char* value, size_t size); + ::std::string* mutable_workflow(); + ::std::string* release_workflow(); + void set_allocated_workflow(::std::string* workflow); + + // string launch_plan = 5; + void clear_launch_plan(); + static const int kLaunchPlanFieldNumber = 5; + const ::std::string& launch_plan() const; + void set_launch_plan(const ::std::string& value); + #if LANG_CXX11 + void set_launch_plan(::std::string&& value); + #endif + void set_launch_plan(const char* value); + void set_launch_plan(const char* value, size_t size); + ::std::string* mutable_launch_plan(); + ::std::string* release_launch_plan(); + void set_allocated_launch_plan(::std::string* launch_plan); + + // .flyteidl.admin.MatchingAttributes attributes = 1; + bool has_attributes() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::flyteidl::admin::MatchingAttributes& attributes() const; + ::flyteidl::admin::MatchingAttributes* release_attributes(); + ::flyteidl::admin::MatchingAttributes* mutable_attributes(); + void set_allocated_attributes(::flyteidl::admin::MatchingAttributes* attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr workflow_; + ::google::protobuf::internal::ArenaStringPtr launch_plan_; + ::flyteidl::admin::MatchingAttributes* attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class ListMatchableAttributesRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ListMatchableAttributesRequest) */ { + public: + ListMatchableAttributesRequest(); + virtual ~ListMatchableAttributesRequest(); + + ListMatchableAttributesRequest(const ListMatchableAttributesRequest& from); + + inline ListMatchableAttributesRequest& operator=(const ListMatchableAttributesRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListMatchableAttributesRequest(ListMatchableAttributesRequest&& from) noexcept + : ListMatchableAttributesRequest() { + *this = ::std::move(from); + } + + inline ListMatchableAttributesRequest& operator=(ListMatchableAttributesRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ListMatchableAttributesRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListMatchableAttributesRequest* internal_default_instance() { + return reinterpret_cast( + &_ListMatchableAttributesRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(ListMatchableAttributesRequest* other); + friend void swap(ListMatchableAttributesRequest& a, ListMatchableAttributesRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListMatchableAttributesRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListMatchableAttributesRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListMatchableAttributesRequest& from); + void MergeFrom(const ListMatchableAttributesRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMatchableAttributesRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.MatchableResource resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::admin::MatchableResource resource_type() const; + void set_resource_type(::flyteidl::admin::MatchableResource value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// ------------------------------------------------------------------- + +class ListMatchableAttributesResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ListMatchableAttributesResponse) */ { + public: + ListMatchableAttributesResponse(); + virtual ~ListMatchableAttributesResponse(); + + ListMatchableAttributesResponse(const ListMatchableAttributesResponse& from); + + inline ListMatchableAttributesResponse& operator=(const ListMatchableAttributesResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListMatchableAttributesResponse(ListMatchableAttributesResponse&& from) noexcept + : ListMatchableAttributesResponse() { + *this = ::std::move(from); + } + + inline ListMatchableAttributesResponse& operator=(ListMatchableAttributesResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ListMatchableAttributesResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListMatchableAttributesResponse* internal_default_instance() { + return reinterpret_cast( + &_ListMatchableAttributesResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(ListMatchableAttributesResponse* other); + friend void swap(ListMatchableAttributesResponse& a, ListMatchableAttributesResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListMatchableAttributesResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListMatchableAttributesResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListMatchableAttributesResponse& from); + void MergeFrom(const ListMatchableAttributesResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMatchableAttributesResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + int configurations_size() const; + void clear_configurations(); + static const int kConfigurationsFieldNumber = 1; + ::flyteidl::admin::MatchableAttributesConfiguration* mutable_configurations(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >* + mutable_configurations(); + const ::flyteidl::admin::MatchableAttributesConfiguration& configurations(int index) const; + ::flyteidl::admin::MatchableAttributesConfiguration* add_configurations(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >& + configurations() const; + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration > configurations_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TaskResourceSpec + +// string cpu = 1; +inline void TaskResourceSpec::clear_cpu() { + cpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskResourceSpec::cpu() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.cpu) + return cpu_.GetNoArena(); +} +inline void TaskResourceSpec::set_cpu(const ::std::string& value) { + + cpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.cpu) +} +#if LANG_CXX11 +inline void TaskResourceSpec::set_cpu(::std::string&& value) { + + cpu_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.cpu) +} +#endif +inline void TaskResourceSpec::set_cpu(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + cpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.cpu) +} +inline void TaskResourceSpec::set_cpu(const char* value, size_t size) { + + cpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.cpu) +} +inline ::std::string* TaskResourceSpec::mutable_cpu() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.cpu) + return cpu_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskResourceSpec::release_cpu() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.cpu) + + return cpu_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskResourceSpec::set_allocated_cpu(::std::string* cpu) { + if (cpu != nullptr) { + + } else { + + } + cpu_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cpu); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.cpu) +} + +// string gpu = 2; +inline void TaskResourceSpec::clear_gpu() { + gpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskResourceSpec::gpu() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.gpu) + return gpu_.GetNoArena(); +} +inline void TaskResourceSpec::set_gpu(const ::std::string& value) { + + gpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.gpu) +} +#if LANG_CXX11 +inline void TaskResourceSpec::set_gpu(::std::string&& value) { + + gpu_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.gpu) +} +#endif +inline void TaskResourceSpec::set_gpu(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + gpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.gpu) +} +inline void TaskResourceSpec::set_gpu(const char* value, size_t size) { + + gpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.gpu) +} +inline ::std::string* TaskResourceSpec::mutable_gpu() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.gpu) + return gpu_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskResourceSpec::release_gpu() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.gpu) + + return gpu_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskResourceSpec::set_allocated_gpu(::std::string* gpu) { + if (gpu != nullptr) { + + } else { + + } + gpu_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gpu); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.gpu) +} + +// string memory = 3; +inline void TaskResourceSpec::clear_memory() { + memory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskResourceSpec::memory() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.memory) + return memory_.GetNoArena(); +} +inline void TaskResourceSpec::set_memory(const ::std::string& value) { + + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.memory) +} +#if LANG_CXX11 +inline void TaskResourceSpec::set_memory(::std::string&& value) { + + memory_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.memory) +} +#endif +inline void TaskResourceSpec::set_memory(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.memory) +} +inline void TaskResourceSpec::set_memory(const char* value, size_t size) { + + memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.memory) +} +inline ::std::string* TaskResourceSpec::mutable_memory() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.memory) + return memory_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskResourceSpec::release_memory() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.memory) + + return memory_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskResourceSpec::set_allocated_memory(::std::string* memory) { + if (memory != nullptr) { + + } else { + + } + memory_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), memory); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.memory) +} + +// string storage = 4; +inline void TaskResourceSpec::clear_storage() { + storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskResourceSpec::storage() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.storage) + return storage_.GetNoArena(); +} +inline void TaskResourceSpec::set_storage(const ::std::string& value) { + + storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.storage) +} +#if LANG_CXX11 +inline void TaskResourceSpec::set_storage(::std::string&& value) { + + storage_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.storage) +} +#endif +inline void TaskResourceSpec::set_storage(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.storage) +} +inline void TaskResourceSpec::set_storage(const char* value, size_t size) { + + storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.storage) +} +inline ::std::string* TaskResourceSpec::mutable_storage() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.storage) + return storage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskResourceSpec::release_storage() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.storage) + + return storage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskResourceSpec::set_allocated_storage(::std::string* storage) { + if (storage != nullptr) { + + } else { + + } + storage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), storage); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.storage) +} + +// string ephemeral_storage = 5; +inline void TaskResourceSpec::clear_ephemeral_storage() { + ephemeral_storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskResourceSpec::ephemeral_storage() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.ephemeral_storage) + return ephemeral_storage_.GetNoArena(); +} +inline void TaskResourceSpec::set_ephemeral_storage(const ::std::string& value) { + + ephemeral_storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.ephemeral_storage) +} +#if LANG_CXX11 +inline void TaskResourceSpec::set_ephemeral_storage(::std::string&& value) { + + ephemeral_storage_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.ephemeral_storage) +} +#endif +inline void TaskResourceSpec::set_ephemeral_storage(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + ephemeral_storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.ephemeral_storage) +} +inline void TaskResourceSpec::set_ephemeral_storage(const char* value, size_t size) { + + ephemeral_storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.ephemeral_storage) +} +inline ::std::string* TaskResourceSpec::mutable_ephemeral_storage() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.ephemeral_storage) + return ephemeral_storage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskResourceSpec::release_ephemeral_storage() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.ephemeral_storage) + + return ephemeral_storage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskResourceSpec::set_allocated_ephemeral_storage(::std::string* ephemeral_storage) { + if (ephemeral_storage != nullptr) { + + } else { + + } + ephemeral_storage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ephemeral_storage); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.ephemeral_storage) +} + +// ------------------------------------------------------------------- + +// TaskResourceAttributes + +// .flyteidl.admin.TaskResourceSpec defaults = 1; +inline bool TaskResourceAttributes::has_defaults() const { + return this != internal_default_instance() && defaults_ != nullptr; +} +inline void TaskResourceAttributes::clear_defaults() { + if (GetArenaNoVirtual() == nullptr && defaults_ != nullptr) { + delete defaults_; + } + defaults_ = nullptr; +} +inline const ::flyteidl::admin::TaskResourceSpec& TaskResourceAttributes::defaults() const { + const ::flyteidl::admin::TaskResourceSpec* p = defaults_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceAttributes.defaults) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskResourceSpec_default_instance_); +} +inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::release_defaults() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceAttributes.defaults) + + ::flyteidl::admin::TaskResourceSpec* temp = defaults_; + defaults_ = nullptr; + return temp; +} +inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::mutable_defaults() { + + if (defaults_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::TaskResourceSpec>(GetArenaNoVirtual()); + defaults_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceAttributes.defaults) + return defaults_; +} +inline void TaskResourceAttributes::set_allocated_defaults(::flyteidl::admin::TaskResourceSpec* defaults) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete defaults_; + } + if (defaults) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + defaults = ::google::protobuf::internal::GetOwnedMessage( + message_arena, defaults, submessage_arena); + } + + } else { + + } + defaults_ = defaults; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceAttributes.defaults) +} + +// .flyteidl.admin.TaskResourceSpec limits = 2; +inline bool TaskResourceAttributes::has_limits() const { + return this != internal_default_instance() && limits_ != nullptr; +} +inline void TaskResourceAttributes::clear_limits() { + if (GetArenaNoVirtual() == nullptr && limits_ != nullptr) { + delete limits_; + } + limits_ = nullptr; +} +inline const ::flyteidl::admin::TaskResourceSpec& TaskResourceAttributes::limits() const { + const ::flyteidl::admin::TaskResourceSpec* p = limits_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceAttributes.limits) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskResourceSpec_default_instance_); +} +inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::release_limits() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceAttributes.limits) + + ::flyteidl::admin::TaskResourceSpec* temp = limits_; + limits_ = nullptr; + return temp; +} +inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::mutable_limits() { + + if (limits_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::TaskResourceSpec>(GetArenaNoVirtual()); + limits_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceAttributes.limits) + return limits_; +} +inline void TaskResourceAttributes::set_allocated_limits(::flyteidl::admin::TaskResourceSpec* limits) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete limits_; + } + if (limits) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + limits = ::google::protobuf::internal::GetOwnedMessage( + message_arena, limits, submessage_arena); + } + + } else { + + } + limits_ = limits; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceAttributes.limits) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ClusterResourceAttributes + +// map attributes = 1; +inline int ClusterResourceAttributes::attributes_size() const { + return attributes_.size(); +} +inline void ClusterResourceAttributes::clear_attributes() { + attributes_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +ClusterResourceAttributes::attributes() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.ClusterResourceAttributes.attributes) + return attributes_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +ClusterResourceAttributes::mutable_attributes() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.ClusterResourceAttributes.attributes) + return attributes_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ExecutionQueueAttributes + +// repeated string tags = 1; +inline int ExecutionQueueAttributes::tags_size() const { + return tags_.size(); +} +inline void ExecutionQueueAttributes::clear_tags() { + tags_.Clear(); +} +inline const ::std::string& ExecutionQueueAttributes::tags(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionQueueAttributes.tags) + return tags_.Get(index); +} +inline ::std::string* ExecutionQueueAttributes::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionQueueAttributes.tags) + return tags_.Mutable(index); +} +inline void ExecutionQueueAttributes::set_tags(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionQueueAttributes.tags) + tags_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void ExecutionQueueAttributes::set_tags(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionQueueAttributes.tags) + tags_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void ExecutionQueueAttributes::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionQueueAttributes.tags) +} +inline void ExecutionQueueAttributes::set_tags(int index, const char* value, size_t size) { + tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionQueueAttributes.tags) +} +inline ::std::string* ExecutionQueueAttributes::add_tags() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.ExecutionQueueAttributes.tags) + return tags_.Add(); +} +inline void ExecutionQueueAttributes::add_tags(const ::std::string& value) { + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionQueueAttributes.tags) +} +#if LANG_CXX11 +inline void ExecutionQueueAttributes::add_tags(::std::string&& value) { + tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionQueueAttributes.tags) +} +#endif +inline void ExecutionQueueAttributes::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.ExecutionQueueAttributes.tags) +} +inline void ExecutionQueueAttributes::add_tags(const char* value, size_t size) { + tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.ExecutionQueueAttributes.tags) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +ExecutionQueueAttributes::tags() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionQueueAttributes.tags) + return tags_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +ExecutionQueueAttributes::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionQueueAttributes.tags) + return &tags_; +} + +// ------------------------------------------------------------------- + +// ExecutionClusterLabel + +// string value = 1; +inline void ExecutionClusterLabel::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionClusterLabel::value() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClusterLabel.value) + return value_.GetNoArena(); +} +inline void ExecutionClusterLabel::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClusterLabel.value) +} +#if LANG_CXX11 +inline void ExecutionClusterLabel::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionClusterLabel.value) +} +#endif +inline void ExecutionClusterLabel::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionClusterLabel.value) +} +inline void ExecutionClusterLabel::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionClusterLabel.value) +} +inline ::std::string* ExecutionClusterLabel::mutable_value() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClusterLabel.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionClusterLabel::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClusterLabel.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionClusterLabel::set_allocated_value(::std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClusterLabel.value) +} + +// ------------------------------------------------------------------- + +// PluginOverride + +// string task_type = 1; +inline void PluginOverride::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PluginOverride::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverride.task_type) + return task_type_.GetNoArena(); +} +inline void PluginOverride::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.task_type) +} +#if LANG_CXX11 +inline void PluginOverride::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.PluginOverride.task_type) +} +#endif +inline void PluginOverride::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.PluginOverride.task_type) +} +inline void PluginOverride::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.PluginOverride.task_type) +} +inline ::std::string* PluginOverride::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.PluginOverride.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PluginOverride::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.PluginOverride.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PluginOverride::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.PluginOverride.task_type) +} + +// repeated string plugin_id = 2; +inline int PluginOverride::plugin_id_size() const { + return plugin_id_.size(); +} +inline void PluginOverride::clear_plugin_id() { + plugin_id_.Clear(); +} +inline const ::std::string& PluginOverride::plugin_id(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverride.plugin_id) + return plugin_id_.Get(index); +} +inline ::std::string* PluginOverride::mutable_plugin_id(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.PluginOverride.plugin_id) + return plugin_id_.Mutable(index); +} +inline void PluginOverride::set_plugin_id(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.plugin_id) + plugin_id_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void PluginOverride::set_plugin_id(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.plugin_id) + plugin_id_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void PluginOverride::set_plugin_id(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + plugin_id_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.PluginOverride.plugin_id) +} +inline void PluginOverride::set_plugin_id(int index, const char* value, size_t size) { + plugin_id_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.PluginOverride.plugin_id) +} +inline ::std::string* PluginOverride::add_plugin_id() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.PluginOverride.plugin_id) + return plugin_id_.Add(); +} +inline void PluginOverride::add_plugin_id(const ::std::string& value) { + plugin_id_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.PluginOverride.plugin_id) +} +#if LANG_CXX11 +inline void PluginOverride::add_plugin_id(::std::string&& value) { + plugin_id_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.PluginOverride.plugin_id) +} +#endif +inline void PluginOverride::add_plugin_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + plugin_id_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.PluginOverride.plugin_id) +} +inline void PluginOverride::add_plugin_id(const char* value, size_t size) { + plugin_id_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.PluginOverride.plugin_id) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +PluginOverride::plugin_id() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.PluginOverride.plugin_id) + return plugin_id_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +PluginOverride::mutable_plugin_id() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.PluginOverride.plugin_id) + return &plugin_id_; +} + +// .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; +inline void PluginOverride::clear_missing_plugin_behavior() { + missing_plugin_behavior_ = 0; +} +inline ::flyteidl::admin::PluginOverride_MissingPluginBehavior PluginOverride::missing_plugin_behavior() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverride.missing_plugin_behavior) + return static_cast< ::flyteidl::admin::PluginOverride_MissingPluginBehavior >(missing_plugin_behavior_); +} +inline void PluginOverride::set_missing_plugin_behavior(::flyteidl::admin::PluginOverride_MissingPluginBehavior value) { + + missing_plugin_behavior_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.missing_plugin_behavior) +} + +// ------------------------------------------------------------------- + +// PluginOverrides + +// repeated .flyteidl.admin.PluginOverride overrides = 1; +inline int PluginOverrides::overrides_size() const { + return overrides_.size(); +} +inline void PluginOverrides::clear_overrides() { + overrides_.Clear(); +} +inline ::flyteidl::admin::PluginOverride* PluginOverrides::mutable_overrides(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.PluginOverrides.overrides) + return overrides_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >* +PluginOverrides::mutable_overrides() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.PluginOverrides.overrides) + return &overrides_; +} +inline const ::flyteidl::admin::PluginOverride& PluginOverrides::overrides(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverrides.overrides) + return overrides_.Get(index); +} +inline ::flyteidl::admin::PluginOverride* PluginOverrides::add_overrides() { + // @@protoc_insertion_point(field_add:flyteidl.admin.PluginOverrides.overrides) + return overrides_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >& +PluginOverrides::overrides() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.PluginOverrides.overrides) + return overrides_; +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionConfig + +// int32 max_parallelism = 1; +inline void WorkflowExecutionConfig::clear_max_parallelism() { + max_parallelism_ = 0; +} +inline ::google::protobuf::int32 WorkflowExecutionConfig::max_parallelism() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.max_parallelism) + return max_parallelism_; +} +inline void WorkflowExecutionConfig::set_max_parallelism(::google::protobuf::int32 value) { + + max_parallelism_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionConfig.max_parallelism) +} + +// .flyteidl.core.SecurityContext security_context = 2; +inline bool WorkflowExecutionConfig::has_security_context() const { + return this != internal_default_instance() && security_context_ != nullptr; +} +inline const ::flyteidl::core::SecurityContext& WorkflowExecutionConfig::security_context() const { + const ::flyteidl::core::SecurityContext* p = security_context_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.security_context) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SecurityContext_default_instance_); +} +inline ::flyteidl::core::SecurityContext* WorkflowExecutionConfig::release_security_context() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.security_context) + + ::flyteidl::core::SecurityContext* temp = security_context_; + security_context_ = nullptr; + return temp; +} +inline ::flyteidl::core::SecurityContext* WorkflowExecutionConfig::mutable_security_context() { + + if (security_context_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); + security_context_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.security_context) + return security_context_; +} +inline void WorkflowExecutionConfig::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); + } + if (security_context) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + security_context = ::google::protobuf::internal::GetOwnedMessage( + message_arena, security_context, submessage_arena); + } + + } else { + + } + security_context_ = security_context; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.security_context) +} + +// .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; +inline bool WorkflowExecutionConfig::has_raw_output_data_config() const { + return this != internal_default_instance() && raw_output_data_config_ != nullptr; +} +inline const ::flyteidl::admin::RawOutputDataConfig& WorkflowExecutionConfig::raw_output_data_config() const { + const ::flyteidl::admin::RawOutputDataConfig* p = raw_output_data_config_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_RawOutputDataConfig_default_instance_); +} +inline ::flyteidl::admin::RawOutputDataConfig* WorkflowExecutionConfig::release_raw_output_data_config() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) + + ::flyteidl::admin::RawOutputDataConfig* temp = raw_output_data_config_; + raw_output_data_config_ = nullptr; + return temp; +} +inline ::flyteidl::admin::RawOutputDataConfig* WorkflowExecutionConfig::mutable_raw_output_data_config() { + + if (raw_output_data_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(GetArenaNoVirtual()); + raw_output_data_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) + return raw_output_data_config_; +} +inline void WorkflowExecutionConfig::set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_output_data_config_); + } + if (raw_output_data_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + raw_output_data_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, raw_output_data_config, submessage_arena); + } + + } else { + + } + raw_output_data_config_ = raw_output_data_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) +} + +// .flyteidl.admin.Labels labels = 4; +inline bool WorkflowExecutionConfig::has_labels() const { + return this != internal_default_instance() && labels_ != nullptr; +} +inline const ::flyteidl::admin::Labels& WorkflowExecutionConfig::labels() const { + const ::flyteidl::admin::Labels* p = labels_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.labels) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Labels_default_instance_); +} +inline ::flyteidl::admin::Labels* WorkflowExecutionConfig::release_labels() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.labels) + + ::flyteidl::admin::Labels* temp = labels_; + labels_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Labels* WorkflowExecutionConfig::mutable_labels() { + + if (labels_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); + labels_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.labels) + return labels_; +} +inline void WorkflowExecutionConfig::set_allocated_labels(::flyteidl::admin::Labels* labels) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); + } + if (labels) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + labels = ::google::protobuf::internal::GetOwnedMessage( + message_arena, labels, submessage_arena); + } + + } else { + + } + labels_ = labels; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.labels) +} + +// .flyteidl.admin.Annotations annotations = 5; +inline bool WorkflowExecutionConfig::has_annotations() const { + return this != internal_default_instance() && annotations_ != nullptr; +} +inline const ::flyteidl::admin::Annotations& WorkflowExecutionConfig::annotations() const { + const ::flyteidl::admin::Annotations* p = annotations_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.annotations) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Annotations_default_instance_); +} +inline ::flyteidl::admin::Annotations* WorkflowExecutionConfig::release_annotations() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.annotations) + + ::flyteidl::admin::Annotations* temp = annotations_; + annotations_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Annotations* WorkflowExecutionConfig::mutable_annotations() { + + if (annotations_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Annotations>(GetArenaNoVirtual()); + annotations_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.annotations) + return annotations_; +} +inline void WorkflowExecutionConfig::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); + } + if (annotations) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + annotations = ::google::protobuf::internal::GetOwnedMessage( + message_arena, annotations, submessage_arena); + } + + } else { + + } + annotations_ = annotations; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.annotations) +} + +// .google.protobuf.BoolValue interruptible = 6; +inline bool WorkflowExecutionConfig::has_interruptible() const { + return this != internal_default_instance() && interruptible_ != nullptr; +} +inline const ::google::protobuf::BoolValue& WorkflowExecutionConfig::interruptible() const { + const ::google::protobuf::BoolValue* p = interruptible_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.interruptible) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_BoolValue_default_instance_); +} +inline ::google::protobuf::BoolValue* WorkflowExecutionConfig::release_interruptible() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.interruptible) + + ::google::protobuf::BoolValue* temp = interruptible_; + interruptible_ = nullptr; + return temp; +} +inline ::google::protobuf::BoolValue* WorkflowExecutionConfig::mutable_interruptible() { + + if (interruptible_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual()); + interruptible_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.interruptible) + return interruptible_; +} +inline void WorkflowExecutionConfig::set_allocated_interruptible(::google::protobuf::BoolValue* interruptible) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interruptible_); + } + if (interruptible) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(interruptible)->GetArena(); + if (message_arena != submessage_arena) { + interruptible = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interruptible, submessage_arena); + } + + } else { + + } + interruptible_ = interruptible; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.interruptible) +} + +// bool overwrite_cache = 7; +inline void WorkflowExecutionConfig::clear_overwrite_cache() { + overwrite_cache_ = false; +} +inline bool WorkflowExecutionConfig::overwrite_cache() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.overwrite_cache) + return overwrite_cache_; +} +inline void WorkflowExecutionConfig::set_overwrite_cache(bool value) { + + overwrite_cache_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionConfig.overwrite_cache) +} + +// .flyteidl.admin.Envs envs = 8; +inline bool WorkflowExecutionConfig::has_envs() const { + return this != internal_default_instance() && envs_ != nullptr; +} +inline const ::flyteidl::admin::Envs& WorkflowExecutionConfig::envs() const { + const ::flyteidl::admin::Envs* p = envs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.envs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Envs_default_instance_); +} +inline ::flyteidl::admin::Envs* WorkflowExecutionConfig::release_envs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.envs) + + ::flyteidl::admin::Envs* temp = envs_; + envs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Envs* WorkflowExecutionConfig::mutable_envs() { + + if (envs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Envs>(GetArenaNoVirtual()); + envs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.envs) + return envs_; +} +inline void WorkflowExecutionConfig::set_allocated_envs(::flyteidl::admin::Envs* envs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(envs_); + } + if (envs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + envs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, envs, submessage_arena); + } + + } else { + + } + envs_ = envs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.envs) +} + +// ------------------------------------------------------------------- + +// MatchingAttributes + +// .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; +inline bool MatchingAttributes::has_task_resource_attributes() const { + return target_case() == kTaskResourceAttributes; +} +inline void MatchingAttributes::set_has_task_resource_attributes() { + _oneof_case_[0] = kTaskResourceAttributes; +} +inline void MatchingAttributes::clear_task_resource_attributes() { + if (has_task_resource_attributes()) { + delete target_.task_resource_attributes_; + clear_has_target(); + } +} +inline ::flyteidl::admin::TaskResourceAttributes* MatchingAttributes::release_task_resource_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.task_resource_attributes) + if (has_task_resource_attributes()) { + clear_has_target(); + ::flyteidl::admin::TaskResourceAttributes* temp = target_.task_resource_attributes_; + target_.task_resource_attributes_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::TaskResourceAttributes& MatchingAttributes::task_resource_attributes() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.task_resource_attributes) + return has_task_resource_attributes() + ? *target_.task_resource_attributes_ + : *reinterpret_cast< ::flyteidl::admin::TaskResourceAttributes*>(&::flyteidl::admin::_TaskResourceAttributes_default_instance_); +} +inline ::flyteidl::admin::TaskResourceAttributes* MatchingAttributes::mutable_task_resource_attributes() { + if (!has_task_resource_attributes()) { + clear_target(); + set_has_task_resource_attributes(); + target_.task_resource_attributes_ = CreateMaybeMessage< ::flyteidl::admin::TaskResourceAttributes >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.task_resource_attributes) + return target_.task_resource_attributes_; +} + +// .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; +inline bool MatchingAttributes::has_cluster_resource_attributes() const { + return target_case() == kClusterResourceAttributes; +} +inline void MatchingAttributes::set_has_cluster_resource_attributes() { + _oneof_case_[0] = kClusterResourceAttributes; +} +inline void MatchingAttributes::clear_cluster_resource_attributes() { + if (has_cluster_resource_attributes()) { + delete target_.cluster_resource_attributes_; + clear_has_target(); + } +} +inline ::flyteidl::admin::ClusterResourceAttributes* MatchingAttributes::release_cluster_resource_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) + if (has_cluster_resource_attributes()) { + clear_has_target(); + ::flyteidl::admin::ClusterResourceAttributes* temp = target_.cluster_resource_attributes_; + target_.cluster_resource_attributes_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::ClusterResourceAttributes& MatchingAttributes::cluster_resource_attributes() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) + return has_cluster_resource_attributes() + ? *target_.cluster_resource_attributes_ + : *reinterpret_cast< ::flyteidl::admin::ClusterResourceAttributes*>(&::flyteidl::admin::_ClusterResourceAttributes_default_instance_); +} +inline ::flyteidl::admin::ClusterResourceAttributes* MatchingAttributes::mutable_cluster_resource_attributes() { + if (!has_cluster_resource_attributes()) { + clear_target(); + set_has_cluster_resource_attributes(); + target_.cluster_resource_attributes_ = CreateMaybeMessage< ::flyteidl::admin::ClusterResourceAttributes >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) + return target_.cluster_resource_attributes_; +} + +// .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; +inline bool MatchingAttributes::has_execution_queue_attributes() const { + return target_case() == kExecutionQueueAttributes; +} +inline void MatchingAttributes::set_has_execution_queue_attributes() { + _oneof_case_[0] = kExecutionQueueAttributes; +} +inline void MatchingAttributes::clear_execution_queue_attributes() { + if (has_execution_queue_attributes()) { + delete target_.execution_queue_attributes_; + clear_has_target(); + } +} +inline ::flyteidl::admin::ExecutionQueueAttributes* MatchingAttributes::release_execution_queue_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.execution_queue_attributes) + if (has_execution_queue_attributes()) { + clear_has_target(); + ::flyteidl::admin::ExecutionQueueAttributes* temp = target_.execution_queue_attributes_; + target_.execution_queue_attributes_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::ExecutionQueueAttributes& MatchingAttributes::execution_queue_attributes() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.execution_queue_attributes) + return has_execution_queue_attributes() + ? *target_.execution_queue_attributes_ + : *reinterpret_cast< ::flyteidl::admin::ExecutionQueueAttributes*>(&::flyteidl::admin::_ExecutionQueueAttributes_default_instance_); +} +inline ::flyteidl::admin::ExecutionQueueAttributes* MatchingAttributes::mutable_execution_queue_attributes() { + if (!has_execution_queue_attributes()) { + clear_target(); + set_has_execution_queue_attributes(); + target_.execution_queue_attributes_ = CreateMaybeMessage< ::flyteidl::admin::ExecutionQueueAttributes >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.execution_queue_attributes) + return target_.execution_queue_attributes_; +} + +// .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; +inline bool MatchingAttributes::has_execution_cluster_label() const { + return target_case() == kExecutionClusterLabel; +} +inline void MatchingAttributes::set_has_execution_cluster_label() { + _oneof_case_[0] = kExecutionClusterLabel; +} +inline void MatchingAttributes::clear_execution_cluster_label() { + if (has_execution_cluster_label()) { + delete target_.execution_cluster_label_; + clear_has_target(); + } +} +inline ::flyteidl::admin::ExecutionClusterLabel* MatchingAttributes::release_execution_cluster_label() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.execution_cluster_label) + if (has_execution_cluster_label()) { + clear_has_target(); + ::flyteidl::admin::ExecutionClusterLabel* temp = target_.execution_cluster_label_; + target_.execution_cluster_label_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::ExecutionClusterLabel& MatchingAttributes::execution_cluster_label() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.execution_cluster_label) + return has_execution_cluster_label() + ? *target_.execution_cluster_label_ + : *reinterpret_cast< ::flyteidl::admin::ExecutionClusterLabel*>(&::flyteidl::admin::_ExecutionClusterLabel_default_instance_); +} +inline ::flyteidl::admin::ExecutionClusterLabel* MatchingAttributes::mutable_execution_cluster_label() { + if (!has_execution_cluster_label()) { + clear_target(); + set_has_execution_cluster_label(); + target_.execution_cluster_label_ = CreateMaybeMessage< ::flyteidl::admin::ExecutionClusterLabel >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.execution_cluster_label) + return target_.execution_cluster_label_; +} + +// .flyteidl.core.QualityOfService quality_of_service = 5; +inline bool MatchingAttributes::has_quality_of_service() const { + return target_case() == kQualityOfService; +} +inline void MatchingAttributes::set_has_quality_of_service() { + _oneof_case_[0] = kQualityOfService; +} +inline ::flyteidl::core::QualityOfService* MatchingAttributes::release_quality_of_service() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.quality_of_service) + if (has_quality_of_service()) { + clear_has_target(); + ::flyteidl::core::QualityOfService* temp = target_.quality_of_service_; + target_.quality_of_service_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::QualityOfService& MatchingAttributes::quality_of_service() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.quality_of_service) + return has_quality_of_service() + ? *target_.quality_of_service_ + : *reinterpret_cast< ::flyteidl::core::QualityOfService*>(&::flyteidl::core::_QualityOfService_default_instance_); +} +inline ::flyteidl::core::QualityOfService* MatchingAttributes::mutable_quality_of_service() { + if (!has_quality_of_service()) { + clear_target(); + set_has_quality_of_service(); + target_.quality_of_service_ = CreateMaybeMessage< ::flyteidl::core::QualityOfService >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.quality_of_service) + return target_.quality_of_service_; +} + +// .flyteidl.admin.PluginOverrides plugin_overrides = 6; +inline bool MatchingAttributes::has_plugin_overrides() const { + return target_case() == kPluginOverrides; +} +inline void MatchingAttributes::set_has_plugin_overrides() { + _oneof_case_[0] = kPluginOverrides; +} +inline void MatchingAttributes::clear_plugin_overrides() { + if (has_plugin_overrides()) { + delete target_.plugin_overrides_; + clear_has_target(); + } +} +inline ::flyteidl::admin::PluginOverrides* MatchingAttributes::release_plugin_overrides() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.plugin_overrides) + if (has_plugin_overrides()) { + clear_has_target(); + ::flyteidl::admin::PluginOverrides* temp = target_.plugin_overrides_; + target_.plugin_overrides_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::PluginOverrides& MatchingAttributes::plugin_overrides() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.plugin_overrides) + return has_plugin_overrides() + ? *target_.plugin_overrides_ + : *reinterpret_cast< ::flyteidl::admin::PluginOverrides*>(&::flyteidl::admin::_PluginOverrides_default_instance_); +} +inline ::flyteidl::admin::PluginOverrides* MatchingAttributes::mutable_plugin_overrides() { + if (!has_plugin_overrides()) { + clear_target(); + set_has_plugin_overrides(); + target_.plugin_overrides_ = CreateMaybeMessage< ::flyteidl::admin::PluginOverrides >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.plugin_overrides) + return target_.plugin_overrides_; +} + +// .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; +inline bool MatchingAttributes::has_workflow_execution_config() const { + return target_case() == kWorkflowExecutionConfig; +} +inline void MatchingAttributes::set_has_workflow_execution_config() { + _oneof_case_[0] = kWorkflowExecutionConfig; +} +inline void MatchingAttributes::clear_workflow_execution_config() { + if (has_workflow_execution_config()) { + delete target_.workflow_execution_config_; + clear_has_target(); + } +} +inline ::flyteidl::admin::WorkflowExecutionConfig* MatchingAttributes::release_workflow_execution_config() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.workflow_execution_config) + if (has_workflow_execution_config()) { + clear_has_target(); + ::flyteidl::admin::WorkflowExecutionConfig* temp = target_.workflow_execution_config_; + target_.workflow_execution_config_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::WorkflowExecutionConfig& MatchingAttributes::workflow_execution_config() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.workflow_execution_config) + return has_workflow_execution_config() + ? *target_.workflow_execution_config_ + : *reinterpret_cast< ::flyteidl::admin::WorkflowExecutionConfig*>(&::flyteidl::admin::_WorkflowExecutionConfig_default_instance_); +} +inline ::flyteidl::admin::WorkflowExecutionConfig* MatchingAttributes::mutable_workflow_execution_config() { + if (!has_workflow_execution_config()) { + clear_target(); + set_has_workflow_execution_config(); + target_.workflow_execution_config_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionConfig >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.workflow_execution_config) + return target_.workflow_execution_config_; +} + +// .flyteidl.admin.ClusterAssignment cluster_assignment = 8; +inline bool MatchingAttributes::has_cluster_assignment() const { + return target_case() == kClusterAssignment; +} +inline void MatchingAttributes::set_has_cluster_assignment() { + _oneof_case_[0] = kClusterAssignment; +} +inline ::flyteidl::admin::ClusterAssignment* MatchingAttributes::release_cluster_assignment() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.cluster_assignment) + if (has_cluster_assignment()) { + clear_has_target(); + ::flyteidl::admin::ClusterAssignment* temp = target_.cluster_assignment_; + target_.cluster_assignment_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::ClusterAssignment& MatchingAttributes::cluster_assignment() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.cluster_assignment) + return has_cluster_assignment() + ? *target_.cluster_assignment_ + : *reinterpret_cast< ::flyteidl::admin::ClusterAssignment*>(&::flyteidl::admin::_ClusterAssignment_default_instance_); +} +inline ::flyteidl::admin::ClusterAssignment* MatchingAttributes::mutable_cluster_assignment() { + if (!has_cluster_assignment()) { + clear_target(); + set_has_cluster_assignment(); + target_.cluster_assignment_ = CreateMaybeMessage< ::flyteidl::admin::ClusterAssignment >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.cluster_assignment) + return target_.cluster_assignment_; +} + +inline bool MatchingAttributes::has_target() const { + return target_case() != TARGET_NOT_SET; +} +inline void MatchingAttributes::clear_has_target() { + _oneof_case_[0] = TARGET_NOT_SET; +} +inline MatchingAttributes::TargetCase MatchingAttributes::target_case() const { + return MatchingAttributes::TargetCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// MatchableAttributesConfiguration + +// .flyteidl.admin.MatchingAttributes attributes = 1; +inline bool MatchableAttributesConfiguration::has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} +inline void MatchableAttributesConfiguration::clear_attributes() { + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; +} +inline const ::flyteidl::admin::MatchingAttributes& MatchableAttributesConfiguration::attributes() const { + const ::flyteidl::admin::MatchingAttributes* p = attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_MatchingAttributes_default_instance_); +} +inline ::flyteidl::admin::MatchingAttributes* MatchableAttributesConfiguration::release_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.attributes) + + ::flyteidl::admin::MatchingAttributes* temp = attributes_; + attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::MatchingAttributes* MatchableAttributesConfiguration::mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); + attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.attributes) + return attributes_; +} +inline void MatchableAttributesConfiguration::set_allocated_attributes(::flyteidl::admin::MatchingAttributes* attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete attributes_; + } + if (attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.attributes) +} + +// string domain = 2; +inline void MatchableAttributesConfiguration::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& MatchableAttributesConfiguration::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.domain) + return domain_.GetNoArena(); +} +inline void MatchableAttributesConfiguration::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.domain) +} +#if LANG_CXX11 +inline void MatchableAttributesConfiguration::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.domain) +} +#endif +inline void MatchableAttributesConfiguration::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.domain) +} +inline void MatchableAttributesConfiguration::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.domain) +} +inline ::std::string* MatchableAttributesConfiguration::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MatchableAttributesConfiguration::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MatchableAttributesConfiguration::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.domain) +} + +// string project = 3; +inline void MatchableAttributesConfiguration::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& MatchableAttributesConfiguration::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.project) + return project_.GetNoArena(); +} +inline void MatchableAttributesConfiguration::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.project) +} +#if LANG_CXX11 +inline void MatchableAttributesConfiguration::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.project) +} +#endif +inline void MatchableAttributesConfiguration::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.project) +} +inline void MatchableAttributesConfiguration::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.project) +} +inline ::std::string* MatchableAttributesConfiguration::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MatchableAttributesConfiguration::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MatchableAttributesConfiguration::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.project) +} + +// string workflow = 4; +inline void MatchableAttributesConfiguration::clear_workflow() { + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& MatchableAttributesConfiguration::workflow() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.workflow) + return workflow_.GetNoArena(); +} +inline void MatchableAttributesConfiguration::set_workflow(const ::std::string& value) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.workflow) +} +#if LANG_CXX11 +inline void MatchableAttributesConfiguration::set_workflow(::std::string&& value) { + + workflow_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.workflow) +} +#endif +inline void MatchableAttributesConfiguration::set_workflow(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.workflow) +} +inline void MatchableAttributesConfiguration::set_workflow(const char* value, size_t size) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.workflow) +} +inline ::std::string* MatchableAttributesConfiguration::mutable_workflow() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.workflow) + return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MatchableAttributesConfiguration::release_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.workflow) + + return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MatchableAttributesConfiguration::set_allocated_workflow(::std::string* workflow) { + if (workflow != nullptr) { + + } else { + + } + workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.workflow) +} + +// string launch_plan = 5; +inline void MatchableAttributesConfiguration::clear_launch_plan() { + launch_plan_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& MatchableAttributesConfiguration::launch_plan() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) + return launch_plan_.GetNoArena(); +} +inline void MatchableAttributesConfiguration::set_launch_plan(const ::std::string& value) { + + launch_plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) +} +#if LANG_CXX11 +inline void MatchableAttributesConfiguration::set_launch_plan(::std::string&& value) { + + launch_plan_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) +} +#endif +inline void MatchableAttributesConfiguration::set_launch_plan(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + launch_plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) +} +inline void MatchableAttributesConfiguration::set_launch_plan(const char* value, size_t size) { + + launch_plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) +} +inline ::std::string* MatchableAttributesConfiguration::mutable_launch_plan() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) + return launch_plan_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MatchableAttributesConfiguration::release_launch_plan() { + // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) + + return launch_plan_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MatchableAttributesConfiguration::set_allocated_launch_plan(::std::string* launch_plan) { + if (launch_plan != nullptr) { + + } else { + + } + launch_plan_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), launch_plan); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) +} + +// ------------------------------------------------------------------- + +// ListMatchableAttributesRequest + +// .flyteidl.admin.MatchableResource resource_type = 1; +inline void ListMatchableAttributesRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::admin::MatchableResource ListMatchableAttributesRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ListMatchableAttributesRequest.resource_type) + return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); +} +inline void ListMatchableAttributesRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ListMatchableAttributesRequest.resource_type) +} + +// ------------------------------------------------------------------- + +// ListMatchableAttributesResponse + +// repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; +inline int ListMatchableAttributesResponse::configurations_size() const { + return configurations_.size(); +} +inline void ListMatchableAttributesResponse::clear_configurations() { + configurations_.Clear(); +} +inline ::flyteidl::admin::MatchableAttributesConfiguration* ListMatchableAttributesResponse::mutable_configurations(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ListMatchableAttributesResponse.configurations) + return configurations_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >* +ListMatchableAttributesResponse::mutable_configurations() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ListMatchableAttributesResponse.configurations) + return &configurations_; +} +inline const ::flyteidl::admin::MatchableAttributesConfiguration& ListMatchableAttributesResponse::configurations(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ListMatchableAttributesResponse.configurations) + return configurations_.Get(index); +} +inline ::flyteidl::admin::MatchableAttributesConfiguration* ListMatchableAttributesResponse::add_configurations() { + // @@protoc_insertion_point(field_add:flyteidl.admin.ListMatchableAttributesResponse.configurations) + return configurations_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >& +ListMatchableAttributesResponse::configurations() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ListMatchableAttributesResponse.configurations) + return configurations_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::PluginOverride_MissingPluginBehavior> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::PluginOverride_MissingPluginBehavior>() { + return ::flyteidl::admin::PluginOverride_MissingPluginBehavior_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::admin::MatchableResource> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::MatchableResource>() { + return ::flyteidl::admin::MatchableResource_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fmatchable_5fresource_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc new file mode 100644 index 0000000000..8a7c5d1e52 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/node_execution.proto + +#include "flyteidl/admin/node_execution.pb.h" +#include "flyteidl/admin/node_execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h new file mode 100644 index 0000000000..f035c0f44f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/node_execution.proto +#ifndef GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED + +#include "flyteidl/admin/node_execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc new file mode 100644 index 0000000000..1a175add0b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc @@ -0,0 +1,6674 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +#include "flyteidl/admin/node_execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace admin { +class NodeExecutionGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionGetRequest_default_instance_; +class NodeExecutionListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionListRequest_default_instance_; +class NodeExecutionForTaskListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionForTaskListRequest_default_instance_; +class NodeExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecution_default_instance_; +class NodeExecutionMetaDataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionMetaData_default_instance_; +class NodeExecutionListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionList_default_instance_; +class NodeExecutionClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; + const ::flyteidl::core::LiteralMap* output_data_; + const ::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata_; + const ::flyteidl::admin::TaskNodeMetadata* task_node_metadata_; +} _NodeExecutionClosure_default_instance_; +class WorkflowNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowNodeMetadata_default_instance_; +class TaskNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskNodeMetadata_default_instance_; +class DynamicWorkflowNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DynamicWorkflowNodeMetadata_default_instance_; +class NodeExecutionGetDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionGetDataRequest_default_instance_; +class NodeExecutionGetDataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionGetDataResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsNodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsNodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionListRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionForTaskListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionForTaskListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsNodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecution_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecution::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsNodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base, + &scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base,}}; + +static void InitDefaultsNodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionMetaData_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionMetaData(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionMetaData::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, {}}; + +static void InitDefaultsNodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionList_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base,}}; + +static void InitDefaultsNodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionClosure_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<6> scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsNodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, + &scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base, + &scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base,}}; + +static void InitDefaultsWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowNodeMetadata_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowNodeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsTaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskNodeMetadata_default_instance_; + new (ptr) ::flyteidl::admin::TaskNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskNodeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base,}}; + +static void InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_; + new (ptr) ::flyteidl::admin::DynamicWorkflowNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::DynamicWorkflowNodeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base,}}; + +static void InitDefaultsNodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionGetDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionGetDataRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsNodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionGetDataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionGetDataResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsNodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { + &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base, + &scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[12]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, workflow_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, sort_by_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, unique_parent_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, task_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, sort_by_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, input_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, closure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, retry_group_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, is_parent_node_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, spec_node_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, is_dynamic_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, node_executions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, error_), + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, output_data_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, started_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, duration_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, created_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, updated_at_), + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, workflow_node_metadata_), + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, task_node_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, deck_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, dynamic_job_spec_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, output_result_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, target_metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowNodeMetadata, executionid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, cache_status_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, catalog_key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, checkpoint_uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, compiled_workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, dynamic_job_spec_uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, full_inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, full_outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, dynamic_workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, flyte_urls_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::NodeExecutionGetRequest)}, + { 6, -1, sizeof(::flyteidl::admin::NodeExecutionListRequest)}, + { 17, -1, sizeof(::flyteidl::admin::NodeExecutionForTaskListRequest)}, + { 27, -1, sizeof(::flyteidl::admin::NodeExecution)}, + { 36, -1, sizeof(::flyteidl::admin::NodeExecutionMetaData)}, + { 45, -1, sizeof(::flyteidl::admin::NodeExecutionList)}, + { 52, -1, sizeof(::flyteidl::admin::NodeExecutionClosure)}, + { 71, -1, sizeof(::flyteidl::admin::WorkflowNodeMetadata)}, + { 77, -1, sizeof(::flyteidl::admin::TaskNodeMetadata)}, + { 85, -1, sizeof(::flyteidl::admin::DynamicWorkflowNodeMetadata)}, + { 93, -1, sizeof(::flyteidl::admin::NodeExecutionGetDataRequest)}, + { 99, -1, sizeof(::flyteidl::admin::NodeExecutionGetDataResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecution_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionMetaData_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, "flyteidl/admin/node_execution.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto, 12, file_level_enum_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fnode_5fexecution_2eproto[] = + "\n#flyteidl/admin/node_execution.proto\022\016f" + "lyteidl.admin\032\033flyteidl/admin/common.pro" + "to\032\035flyteidl/core/execution.proto\032\033flyte" + "idl/core/catalog.proto\032\034flyteidl/core/co" + "mpiler.proto\032\036flyteidl/core/identifier.p" + "roto\032\034flyteidl/core/literals.proto\032\037goog" + "le/protobuf/timestamp.proto\032\036google/prot" + "obuf/duration.proto\"M\n\027NodeExecutionGetR" + "equest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + "xecutionIdentifier\"\325\001\n\030NodeExecutionList" + "Request\022I\n\025workflow_execution_id\030\001 \001(\0132*" + ".flyteidl.core.WorkflowExecutionIdentifi" + "er\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filt" + "ers\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.ad" + "min.Sort\022\030\n\020unique_parent_id\030\006 \001(\t\"\272\001\n\037N" + "odeExecutionForTaskListRequest\022A\n\021task_e" + "xecution_id\030\001 \001(\0132&.flyteidl.core.TaskEx" + "ecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" + "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" + "\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExecutio" + "n\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeExecut" + "ionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007clos" + "ure\030\003 \001(\0132$.flyteidl.admin.NodeExecution" + "Closure\0227\n\010metadata\030\004 \001(\0132%.flyteidl.adm" + "in.NodeExecutionMetaData\"n\n\025NodeExecutio" + "nMetaData\022\023\n\013retry_group\030\001 \001(\t\022\026\n\016is_par" + "ent_node\030\002 \001(\010\022\024\n\014spec_node_id\030\003 \001(\t\022\022\n\n" + "is_dynamic\030\004 \001(\010\"Z\n\021NodeExecutionList\0226\n" + "\017node_executions\030\001 \003(\0132\035.flyteidl.admin." + "NodeExecution\022\r\n\005token\030\002 \001(\t\"\342\004\n\024NodeExe" + "cutionClosure\022\030\n\noutput_uri\030\001 \001(\tB\002\030\001H\000\022" + ".\n\005error\030\002 \001(\0132\035.flyteidl.core.Execution" + "ErrorH\000\0224\n\013output_data\030\n \001(\0132\031.flyteidl." + "core.LiteralMapB\002\030\001H\000\0221\n\005phase\030\003 \001(\0162\".f" + "lyteidl.core.NodeExecution.Phase\022.\n\nstar" + "ted_at\030\004 \001(\0132\032.google.protobuf.Timestamp" + "\022+\n\010duration\030\005 \001(\0132\031.google.protobuf.Dur" + "ation\022.\n\ncreated_at\030\006 \001(\0132\032.google.proto" + "buf.Timestamp\022.\n\nupdated_at\030\007 \001(\0132\032.goog" + "le.protobuf.Timestamp\022F\n\026workflow_node_m" + "etadata\030\010 \001(\0132$.flyteidl.admin.WorkflowN" + "odeMetadataH\001\022>\n\022task_node_metadata\030\t \001(" + "\0132 .flyteidl.admin.TaskNodeMetadataH\001\022\020\n" + "\010deck_uri\030\013 \001(\t\022\034\n\024dynamic_job_spec_uri\030" + "\014 \001(\tB\017\n\routput_resultB\021\n\017target_metadat" + "a\"W\n\024WorkflowNodeMetadata\022\?\n\013executionId" + "\030\001 \001(\0132*.flyteidl.core.WorkflowExecution" + "Identifier\"\230\001\n\020TaskNodeMetadata\0227\n\014cache" + "_status\030\001 \001(\0162!.flyteidl.core.CatalogCac" + "heStatus\0223\n\013catalog_key\030\002 \001(\0132\036.flyteidl" + ".core.CatalogMetadata\022\026\n\016checkpoint_uri\030" + "\004 \001(\t\"\245\001\n\033DynamicWorkflowNodeMetadata\022%\n" + "\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A\n\021" + "compiled_workflow\030\002 \001(\0132&.flyteidl.core." + "CompiledWorkflowClosure\022\034\n\024dynamic_job_s" + "pec_uri\030\003 \001(\t\"Q\n\033NodeExecutionGetDataReq" + "uest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeExe" + "cutionIdentifier\"\320\002\n\034NodeExecutionGetDat" + "aResponse\022+\n\006inputs\030\001 \001(\0132\027.flyteidl.adm" + "in.UrlBlobB\002\030\001\022,\n\007outputs\030\002 \001(\0132\027.flytei" + "dl.admin.UrlBlobB\002\030\001\022.\n\013full_inputs\030\003 \001(" + "\0132\031.flyteidl.core.LiteralMap\022/\n\014full_out" + "puts\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022E\n" + "\020dynamic_workflow\030\020 \001(\0132+.flyteidl.admin" + ".DynamicWorkflowNodeMetadata\022-\n\nflyte_ur" + "ls\030\021 \001(\0132\031.flyteidl.admin.FlyteURLsB7Z5g" + "ithub.com/flyteorg/flyteidl/gen/pb-go/fl" + "yteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fnode_5fexecution_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fnode_5fexecution_2eproto, + "flyteidl/admin/node_execution.proto", &assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto, 2700, +}; + +void AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[8] = + { + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto, deps, 8); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fnode_5fexecution_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void NodeExecutionGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); +} +class NodeExecutionGetRequest::HasBitSetters { + public: + static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecutionGetRequest* msg); +}; + +const ::flyteidl::core::NodeExecutionIdentifier& +NodeExecutionGetRequest::HasBitSetters::id(const NodeExecutionGetRequest* msg) { + return *msg->id_; +} +void NodeExecutionGetRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionGetRequest::NodeExecutionGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetRequest) +} +NodeExecutionGetRequest::NodeExecutionGetRequest(const NodeExecutionGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetRequest) +} + +void NodeExecutionGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + id_ = nullptr; +} + +NodeExecutionGetRequest::~NodeExecutionGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetRequest) + SharedDtor(); +} + +void NodeExecutionGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void NodeExecutionGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionGetRequest& NodeExecutionGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionGetRequest) +} + +::google::protobuf::uint8* NodeExecutionGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionGetRequest) + return target; +} + +size_t NodeExecutionGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetRequest) + MergeFrom(*source); + } +} + +void NodeExecutionGetRequest::MergeFrom(const NodeExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } +} + +void NodeExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionGetRequest::CopyFrom(const NodeExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionGetRequest::IsInitialized() const { + return true; +} + +void NodeExecutionGetRequest::Swap(NodeExecutionGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionGetRequest::InternalSwap(NodeExecutionGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata NodeExecutionGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionListRequest_default_instance_._instance.get_mutable()->workflow_execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class NodeExecutionListRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id(const NodeExecutionListRequest* msg); + static const ::flyteidl::admin::Sort& sort_by(const NodeExecutionListRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +NodeExecutionListRequest::HasBitSetters::workflow_execution_id(const NodeExecutionListRequest* msg) { + return *msg->workflow_execution_id_; +} +const ::flyteidl::admin::Sort& +NodeExecutionListRequest::HasBitSetters::sort_by(const NodeExecutionListRequest* msg) { + return *msg->sort_by_; +} +void NodeExecutionListRequest::clear_workflow_execution_id() { + if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { + delete workflow_execution_id_; + } + workflow_execution_id_ = nullptr; +} +void NodeExecutionListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionListRequest::kWorkflowExecutionIdFieldNumber; +const int NodeExecutionListRequest::kLimitFieldNumber; +const int NodeExecutionListRequest::kTokenFieldNumber; +const int NodeExecutionListRequest::kFiltersFieldNumber; +const int NodeExecutionListRequest::kSortByFieldNumber; +const int NodeExecutionListRequest::kUniqueParentIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionListRequest::NodeExecutionListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionListRequest) +} +NodeExecutionListRequest::NodeExecutionListRequest(const NodeExecutionListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + unique_parent_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.unique_parent_id().size() > 0) { + unique_parent_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unique_parent_id_); + } + if (from.has_workflow_execution_id()) { + workflow_execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_id_); + } else { + workflow_execution_id_ = nullptr; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionListRequest) +} + +void NodeExecutionListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + unique_parent_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&workflow_execution_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&workflow_execution_id_)) + sizeof(limit_)); +} + +NodeExecutionListRequest::~NodeExecutionListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionListRequest) + SharedDtor(); +} + +void NodeExecutionListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + unique_parent_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete workflow_execution_id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void NodeExecutionListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionListRequest& NodeExecutionListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + unique_parent_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { + delete workflow_execution_id_; + } + workflow_execution_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_workflow_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 limit = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filters = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string unique_parent_id = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionListRequest.unique_parent_id"); + object = msg->mutable_unique_parent_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + // string unique_parent_id = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_unique_parent_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->unique_parent_id().data(), static_cast(this->unique_parent_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionListRequest.unique_parent_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::workflow_execution_id(this), output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::sort_by(this), output); + } + + // string unique_parent_id = 6; + if (this->unique_parent_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->unique_parent_id().data(), static_cast(this->unique_parent_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.unique_parent_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->unique_parent_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionListRequest) +} + +::google::protobuf::uint8* NodeExecutionListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::workflow_execution_id(this), target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::sort_by(this), target); + } + + // string unique_parent_id = 6; + if (this->unique_parent_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->unique_parent_id().data(), static_cast(this->unique_parent_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.unique_parent_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->unique_parent_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionListRequest) + return target; +} + +size_t NodeExecutionListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // string unique_parent_id = 6; + if (this->unique_parent_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->unique_parent_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *workflow_execution_id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionListRequest) + MergeFrom(*source); + } +} + +void NodeExecutionListRequest::MergeFrom(const NodeExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.unique_parent_id().size() > 0) { + + unique_parent_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unique_parent_id_); + } + if (from.has_workflow_execution_id()) { + mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void NodeExecutionListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionListRequest::CopyFrom(const NodeExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionListRequest::IsInitialized() const { + return true; +} + +void NodeExecutionListRequest::Swap(NodeExecutionListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionListRequest::InternalSwap(NodeExecutionListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + unique_parent_id_.Swap(&other->unique_parent_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(workflow_execution_id_, other->workflow_execution_id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata NodeExecutionListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionForTaskListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_._instance.get_mutable()->task_execution_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class NodeExecutionForTaskListRequest::HasBitSetters { + public: + static const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id(const NodeExecutionForTaskListRequest* msg); + static const ::flyteidl::admin::Sort& sort_by(const NodeExecutionForTaskListRequest* msg); +}; + +const ::flyteidl::core::TaskExecutionIdentifier& +NodeExecutionForTaskListRequest::HasBitSetters::task_execution_id(const NodeExecutionForTaskListRequest* msg) { + return *msg->task_execution_id_; +} +const ::flyteidl::admin::Sort& +NodeExecutionForTaskListRequest::HasBitSetters::sort_by(const NodeExecutionForTaskListRequest* msg) { + return *msg->sort_by_; +} +void NodeExecutionForTaskListRequest::clear_task_execution_id() { + if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { + delete task_execution_id_; + } + task_execution_id_ = nullptr; +} +void NodeExecutionForTaskListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionForTaskListRequest::kTaskExecutionIdFieldNumber; +const int NodeExecutionForTaskListRequest::kLimitFieldNumber; +const int NodeExecutionForTaskListRequest::kTokenFieldNumber; +const int NodeExecutionForTaskListRequest::kFiltersFieldNumber; +const int NodeExecutionForTaskListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionForTaskListRequest::NodeExecutionForTaskListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionForTaskListRequest) +} +NodeExecutionForTaskListRequest::NodeExecutionForTaskListRequest(const NodeExecutionForTaskListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_task_execution_id()) { + task_execution_id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_execution_id_); + } else { + task_execution_id_ = nullptr; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionForTaskListRequest) +} + +void NodeExecutionForTaskListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&task_execution_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&task_execution_id_)) + sizeof(limit_)); +} + +NodeExecutionForTaskListRequest::~NodeExecutionForTaskListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionForTaskListRequest) + SharedDtor(); +} + +void NodeExecutionForTaskListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete task_execution_id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void NodeExecutionForTaskListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionForTaskListRequest& NodeExecutionForTaskListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionForTaskListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { + delete task_execution_id_; + } + task_execution_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionForTaskListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_task_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 limit = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionForTaskListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filters = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionForTaskListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionForTaskListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionForTaskListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionForTaskListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionForTaskListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionForTaskListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionForTaskListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionForTaskListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::task_execution_id(this), output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionForTaskListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionForTaskListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::sort_by(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionForTaskListRequest) +} + +::google::protobuf::uint8* NodeExecutionForTaskListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::task_execution_id(this), target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionForTaskListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionForTaskListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::sort_by(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionForTaskListRequest) + return target; +} + +size_t NodeExecutionForTaskListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionForTaskListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *task_execution_id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionForTaskListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionForTaskListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionForTaskListRequest) + MergeFrom(*source); + } +} + +void NodeExecutionForTaskListRequest::MergeFrom(const NodeExecutionForTaskListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_task_execution_id()) { + mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void NodeExecutionForTaskListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionForTaskListRequest::CopyFrom(const NodeExecutionForTaskListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionForTaskListRequest::IsInitialized() const { + return true; +} + +void NodeExecutionForTaskListRequest::Swap(NodeExecutionForTaskListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionForTaskListRequest::InternalSwap(NodeExecutionForTaskListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(task_execution_id_, other->task_execution_id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata NodeExecutionForTaskListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecution::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::NodeExecutionClosure*>( + ::flyteidl::admin::NodeExecutionClosure::internal_default_instance()); + ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::NodeExecutionMetaData*>( + ::flyteidl::admin::NodeExecutionMetaData::internal_default_instance()); +} +class NodeExecution::HasBitSetters { + public: + static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecution* msg); + static const ::flyteidl::admin::NodeExecutionClosure& closure(const NodeExecution* msg); + static const ::flyteidl::admin::NodeExecutionMetaData& metadata(const NodeExecution* msg); +}; + +const ::flyteidl::core::NodeExecutionIdentifier& +NodeExecution::HasBitSetters::id(const NodeExecution* msg) { + return *msg->id_; +} +const ::flyteidl::admin::NodeExecutionClosure& +NodeExecution::HasBitSetters::closure(const NodeExecution* msg) { + return *msg->closure_; +} +const ::flyteidl::admin::NodeExecutionMetaData& +NodeExecution::HasBitSetters::metadata(const NodeExecution* msg) { + return *msg->metadata_; +} +void NodeExecution::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecution::kIdFieldNumber; +const int NodeExecution::kInputUriFieldNumber; +const int NodeExecution::kClosureFieldNumber; +const int NodeExecution::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecution::NodeExecution() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecution) +} +NodeExecution::NodeExecution(const NodeExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.input_uri().size() > 0) { + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::NodeExecutionClosure(*from.closure_); + } else { + closure_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::admin::NodeExecutionMetaData(*from.metadata_); + } else { + metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecution) +} + +void NodeExecution::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&metadata_) - + reinterpret_cast(&id_)) + sizeof(metadata_)); +} + +NodeExecution::~NodeExecution() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecution) + SharedDtor(); +} + +void NodeExecution::SharedDtor() { + input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; + if (this != internal_default_instance()) delete metadata_; +} + +void NodeExecution::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecution& NodeExecution::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecution::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string input_uri = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecution.input_uri"); + object = msg->mutable_input_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.NodeExecutionClosure closure = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NodeExecutionClosure::_InternalParse; + object = msg->mutable_closure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.NodeExecutionMetaData metadata = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NodeExecutionMetaData::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecution) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecution.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NodeExecutionMetaData metadata = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecution) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecution.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->input_uri(), output); + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::closure(this), output); + } + + // .flyteidl.admin.NodeExecutionMetaData metadata = 4; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecution) +} + +::google::protobuf::uint8* NodeExecution::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecution.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->input_uri(), target); + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::closure(this), target); + } + + // .flyteidl.admin.NodeExecutionMetaData metadata = 4; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecution) + return target; +} + +size_t NodeExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecution) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + } + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *closure_); + } + + // .flyteidl.admin.NodeExecutionMetaData metadata = 4; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecution* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecution) + MergeFrom(*source); + } +} + +void NodeExecution::MergeFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.input_uri().size() > 0) { + + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::NodeExecutionClosure::MergeFrom(from.closure()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::admin::NodeExecutionMetaData::MergeFrom(from.metadata()); + } +} + +void NodeExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecution::CopyFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecution::IsInitialized() const { + return true; +} + +void NodeExecution::Swap(NodeExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecution::InternalSwap(NodeExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + input_uri_.Swap(&other->input_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(closure_, other->closure_); + swap(metadata_, other->metadata_); +} + +::google::protobuf::Metadata NodeExecution::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionMetaData::InitAsDefaultInstance() { +} +class NodeExecutionMetaData::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionMetaData::kRetryGroupFieldNumber; +const int NodeExecutionMetaData::kIsParentNodeFieldNumber; +const int NodeExecutionMetaData::kSpecNodeIdFieldNumber; +const int NodeExecutionMetaData::kIsDynamicFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionMetaData::NodeExecutionMetaData() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionMetaData) +} +NodeExecutionMetaData::NodeExecutionMetaData(const NodeExecutionMetaData& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.retry_group().size() > 0) { + retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); + } + spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.spec_node_id().size() > 0) { + spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); + } + ::memcpy(&is_parent_node_, &from.is_parent_node_, + static_cast(reinterpret_cast(&is_dynamic_) - + reinterpret_cast(&is_parent_node_)) + sizeof(is_dynamic_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionMetaData) +} + +void NodeExecutionMetaData::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&is_parent_node_, 0, static_cast( + reinterpret_cast(&is_dynamic_) - + reinterpret_cast(&is_parent_node_)) + sizeof(is_dynamic_)); +} + +NodeExecutionMetaData::~NodeExecutionMetaData() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionMetaData) + SharedDtor(); +} + +void NodeExecutionMetaData::SharedDtor() { + retry_group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NodeExecutionMetaData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionMetaData& NodeExecutionMetaData::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionMetaData::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionMetaData) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&is_parent_node_, 0, static_cast( + reinterpret_cast(&is_dynamic_) - + reinterpret_cast(&is_parent_node_)) + sizeof(is_dynamic_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionMetaData::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string retry_group = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionMetaData.retry_group"); + object = msg->mutable_retry_group(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bool is_parent_node = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_is_parent_node(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string spec_node_id = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionMetaData.spec_node_id"); + object = msg->mutable_spec_node_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bool is_dynamic = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_is_dynamic(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionMetaData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionMetaData) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string retry_group = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_retry_group())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->retry_group().data(), static_cast(this->retry_group().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionMetaData.retry_group")); + } else { + goto handle_unusual; + } + break; + } + + // bool is_parent_node = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_parent_node_))); + } else { + goto handle_unusual; + } + break; + } + + // string spec_node_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_spec_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_node_id().data(), static_cast(this->spec_node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionMetaData.spec_node_id")); + } else { + goto handle_unusual; + } + break; + } + + // bool is_dynamic = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_dynamic_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionMetaData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionMetaData) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionMetaData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionMetaData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string retry_group = 1; + if (this->retry_group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->retry_group().data(), static_cast(this->retry_group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionMetaData.retry_group"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->retry_group(), output); + } + + // bool is_parent_node = 2; + if (this->is_parent_node() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_parent_node(), output); + } + + // string spec_node_id = 3; + if (this->spec_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_node_id().data(), static_cast(this->spec_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionMetaData.spec_node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->spec_node_id(), output); + } + + // bool is_dynamic = 4; + if (this->is_dynamic() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_dynamic(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionMetaData) +} + +::google::protobuf::uint8* NodeExecutionMetaData::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionMetaData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string retry_group = 1; + if (this->retry_group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->retry_group().data(), static_cast(this->retry_group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionMetaData.retry_group"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->retry_group(), target); + } + + // bool is_parent_node = 2; + if (this->is_parent_node() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_parent_node(), target); + } + + // string spec_node_id = 3; + if (this->spec_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_node_id().data(), static_cast(this->spec_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionMetaData.spec_node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->spec_node_id(), target); + } + + // bool is_dynamic = 4; + if (this->is_dynamic() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_dynamic(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionMetaData) + return target; +} + +size_t NodeExecutionMetaData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionMetaData) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string retry_group = 1; + if (this->retry_group().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->retry_group()); + } + + // string spec_node_id = 3; + if (this->spec_node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->spec_node_id()); + } + + // bool is_parent_node = 2; + if (this->is_parent_node() != 0) { + total_size += 1 + 1; + } + + // bool is_dynamic = 4; + if (this->is_dynamic() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionMetaData::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionMetaData) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionMetaData* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionMetaData) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionMetaData) + MergeFrom(*source); + } +} + +void NodeExecutionMetaData::MergeFrom(const NodeExecutionMetaData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionMetaData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.retry_group().size() > 0) { + + retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); + } + if (from.spec_node_id().size() > 0) { + + spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); + } + if (from.is_parent_node() != 0) { + set_is_parent_node(from.is_parent_node()); + } + if (from.is_dynamic() != 0) { + set_is_dynamic(from.is_dynamic()); + } +} + +void NodeExecutionMetaData::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionMetaData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionMetaData::CopyFrom(const NodeExecutionMetaData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionMetaData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionMetaData::IsInitialized() const { + return true; +} + +void NodeExecutionMetaData::Swap(NodeExecutionMetaData* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionMetaData::InternalSwap(NodeExecutionMetaData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + retry_group_.Swap(&other->retry_group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + spec_node_id_.Swap(&other->spec_node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(is_parent_node_, other->is_parent_node_); + swap(is_dynamic_, other->is_dynamic_); +} + +::google::protobuf::Metadata NodeExecutionMetaData::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionList::InitAsDefaultInstance() { +} +class NodeExecutionList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionList::kNodeExecutionsFieldNumber; +const int NodeExecutionList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionList::NodeExecutionList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionList) +} +NodeExecutionList::NodeExecutionList(const NodeExecutionList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + node_executions_(from.node_executions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionList) +} + +void NodeExecutionList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +NodeExecutionList::~NodeExecutionList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionList) + SharedDtor(); +} + +void NodeExecutionList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NodeExecutionList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionList& NodeExecutionList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_executions_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::NodeExecution::_InternalParse; + object = msg->add_node_executions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_node_executions())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->node_executions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->node_executions(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionList) +} + +::google::protobuf::uint8* NodeExecutionList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->node_executions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->node_executions(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionList) + return target; +} + +size_t NodeExecutionList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + { + unsigned int count = static_cast(this->node_executions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->node_executions(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionList) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionList) + MergeFrom(*source); + } +} + +void NodeExecutionList::MergeFrom(const NodeExecutionList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + node_executions_.MergeFrom(from.node_executions_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void NodeExecutionList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionList::CopyFrom(const NodeExecutionList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionList::IsInitialized() const { + return true; +} + +void NodeExecutionList::Swap(NodeExecutionList* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionList::InternalSwap(NodeExecutionList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&node_executions_)->InternalSwap(CastToBase(&other->node_executions_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata NodeExecutionList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.workflow_node_metadata_ = const_cast< ::flyteidl::admin::WorkflowNodeMetadata*>( + ::flyteidl::admin::WorkflowNodeMetadata::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.task_node_metadata_ = const_cast< ::flyteidl::admin::TaskNodeMetadata*>( + ::flyteidl::admin::TaskNodeMetadata::internal_default_instance()); +} +class NodeExecutionClosure::HasBitSetters { + public: + static const ::flyteidl::core::ExecutionError& error(const NodeExecutionClosure* msg); + static const ::flyteidl::core::LiteralMap& output_data(const NodeExecutionClosure* msg); + static const ::google::protobuf::Timestamp& started_at(const NodeExecutionClosure* msg); + static const ::google::protobuf::Duration& duration(const NodeExecutionClosure* msg); + static const ::google::protobuf::Timestamp& created_at(const NodeExecutionClosure* msg); + static const ::google::protobuf::Timestamp& updated_at(const NodeExecutionClosure* msg); + static const ::flyteidl::admin::WorkflowNodeMetadata& workflow_node_metadata(const NodeExecutionClosure* msg); + static const ::flyteidl::admin::TaskNodeMetadata& task_node_metadata(const NodeExecutionClosure* msg); +}; + +const ::flyteidl::core::ExecutionError& +NodeExecutionClosure::HasBitSetters::error(const NodeExecutionClosure* msg) { + return *msg->output_result_.error_; +} +const ::flyteidl::core::LiteralMap& +NodeExecutionClosure::HasBitSetters::output_data(const NodeExecutionClosure* msg) { + return *msg->output_result_.output_data_; +} +const ::google::protobuf::Timestamp& +NodeExecutionClosure::HasBitSetters::started_at(const NodeExecutionClosure* msg) { + return *msg->started_at_; +} +const ::google::protobuf::Duration& +NodeExecutionClosure::HasBitSetters::duration(const NodeExecutionClosure* msg) { + return *msg->duration_; +} +const ::google::protobuf::Timestamp& +NodeExecutionClosure::HasBitSetters::created_at(const NodeExecutionClosure* msg) { + return *msg->created_at_; +} +const ::google::protobuf::Timestamp& +NodeExecutionClosure::HasBitSetters::updated_at(const NodeExecutionClosure* msg) { + return *msg->updated_at_; +} +const ::flyteidl::admin::WorkflowNodeMetadata& +NodeExecutionClosure::HasBitSetters::workflow_node_metadata(const NodeExecutionClosure* msg) { + return *msg->target_metadata_.workflow_node_metadata_; +} +const ::flyteidl::admin::TaskNodeMetadata& +NodeExecutionClosure::HasBitSetters::task_node_metadata(const NodeExecutionClosure* msg) { + return *msg->target_metadata_.task_node_metadata_; +} +void NodeExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.error) +} +void NodeExecutionClosure::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void NodeExecutionClosure::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (output_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + output_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, output_data, submessage_arena); + } + set_has_output_data(); + output_result_.output_data_ = output_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.output_data) +} +void NodeExecutionClosure::clear_output_data() { + if (has_output_data()) { + delete output_result_.output_data_; + clear_has_output_result(); + } +} +void NodeExecutionClosure::clear_started_at() { + if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { + delete started_at_; + } + started_at_ = nullptr; +} +void NodeExecutionClosure::clear_duration() { + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; +} +void NodeExecutionClosure::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} +void NodeExecutionClosure::clear_updated_at() { + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; +} +void NodeExecutionClosure::set_allocated_workflow_node_metadata(::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target_metadata(); + if (workflow_node_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_node_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_node_metadata, submessage_arena); + } + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = workflow_node_metadata; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) +} +void NodeExecutionClosure::set_allocated_task_node_metadata(::flyteidl::admin::TaskNodeMetadata* task_node_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target_metadata(); + if (task_node_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_node_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_node_metadata, submessage_arena); + } + set_has_task_node_metadata(); + target_metadata_.task_node_metadata_ = task_node_metadata; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.task_node_metadata) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionClosure::kOutputUriFieldNumber; +const int NodeExecutionClosure::kErrorFieldNumber; +const int NodeExecutionClosure::kOutputDataFieldNumber; +const int NodeExecutionClosure::kPhaseFieldNumber; +const int NodeExecutionClosure::kStartedAtFieldNumber; +const int NodeExecutionClosure::kDurationFieldNumber; +const int NodeExecutionClosure::kCreatedAtFieldNumber; +const int NodeExecutionClosure::kUpdatedAtFieldNumber; +const int NodeExecutionClosure::kWorkflowNodeMetadataFieldNumber; +const int NodeExecutionClosure::kTaskNodeMetadataFieldNumber; +const int NodeExecutionClosure::kDeckUriFieldNumber; +const int NodeExecutionClosure::kDynamicJobSpecUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionClosure::NodeExecutionClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionClosure) +} +NodeExecutionClosure::NodeExecutionClosure(const NodeExecutionClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.deck_uri().size() > 0) { + deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); + } + dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.dynamic_job_spec_uri().size() > 0) { + dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); + } + if (from.has_started_at()) { + started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); + } else { + started_at_ = nullptr; + } + if (from.has_duration()) { + duration_ = new ::google::protobuf::Duration(*from.duration_); + } else { + duration_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = nullptr; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + clear_has_target_metadata(); + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::admin::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case kTaskNodeMetadata: { + mutable_task_node_metadata()->::flyteidl::admin::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionClosure) +} + +void NodeExecutionClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&started_at_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&started_at_)) + sizeof(phase_)); + clear_has_output_result(); + clear_has_target_metadata(); +} + +NodeExecutionClosure::~NodeExecutionClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionClosure) + SharedDtor(); +} + +void NodeExecutionClosure::SharedDtor() { + deck_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dynamic_job_spec_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete started_at_; + if (this != internal_default_instance()) delete duration_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; + if (has_output_result()) { + clear_output_result(); + } + if (has_target_metadata()) { + clear_target_metadata(); + } +} + +void NodeExecutionClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionClosure& NodeExecutionClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionClosure::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.NodeExecutionClosure) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case kOutputData: { + delete output_result_.output_data_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + +void NodeExecutionClosure::clear_target_metadata() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.NodeExecutionClosure) + switch (target_metadata_case()) { + case kWorkflowNodeMetadata: { + delete target_metadata_.workflow_node_metadata_; + break; + } + case kTaskNodeMetadata: { + delete target_metadata_.task_node_metadata_; + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + _oneof_case_[1] = TARGET_METADATA_NOT_SET; +} + + +void NodeExecutionClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { + delete started_at_; + } + started_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; + phase_ = 0; + clear_output_result(); + clear_target_metadata(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string output_uri = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionClosure.output_uri"); + object = msg->mutable_output_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.NodeExecution.Phase phase = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::NodeExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Timestamp started_at = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_started_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Duration duration = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_duration(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp created_at = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp updated_at = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_updated_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowNodeMetadata::_InternalParse; + object = msg->mutable_workflow_node_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskNodeMetadata::_InternalParse; + object = msg->mutable_task_node_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_output_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string deck_uri = 11; + case 11: { + if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionClosure.deck_uri"); + object = msg->mutable_deck_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string dynamic_job_spec_uri = 12; + case 12: { + if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri"); + object = msg->mutable_dynamic_job_spec_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string output_uri = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionClosure.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::NodeExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp started_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_started_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_node_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_node_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_output_data())); + } else { + goto handle_unusual; + } + break; + } + + // string deck_uri = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_deck_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck_uri().data(), static_cast(this->deck_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionClosure.deck_uri")); + } else { + goto handle_unusual; + } + break; + } + + // string dynamic_job_spec_uri = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_dynamic_job_spec_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1 [deprecated = true]; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::error(this), output); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // .google.protobuf.Timestamp started_at = 4; + if (this->has_started_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::started_at(this), output); + } + + // .google.protobuf.Duration duration = 5; + if (this->has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::duration(this), output); + } + + // .google.protobuf.Timestamp created_at = 6; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::created_at(this), output); + } + + // .google.protobuf.Timestamp updated_at = 7; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::updated_at(this), output); + } + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::workflow_node_metadata(this), output); + } + + // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + if (has_task_node_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::task_node_metadata(this), output); + } + + // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + if (has_output_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::output_data(this), output); + } + + // string deck_uri = 11; + if (this->deck_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck_uri().data(), static_cast(this->deck_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.deck_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 11, this->deck_uri(), output); + } + + // string dynamic_job_spec_uri = 12; + if (this->dynamic_job_spec_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 12, this->dynamic_job_spec_uri(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionClosure) +} + +::google::protobuf::uint8* NodeExecutionClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1 [deprecated = true]; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::error(this), target); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // .google.protobuf.Timestamp started_at = 4; + if (this->has_started_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::started_at(this), target); + } + + // .google.protobuf.Duration duration = 5; + if (this->has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::duration(this), target); + } + + // .google.protobuf.Timestamp created_at = 6; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::created_at(this), target); + } + + // .google.protobuf.Timestamp updated_at = 7; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::updated_at(this), target); + } + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::workflow_node_metadata(this), target); + } + + // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + if (has_task_node_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::task_node_metadata(this), target); + } + + // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + if (has_output_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::output_data(this), target); + } + + // string deck_uri = 11; + if (this->deck_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck_uri().data(), static_cast(this->deck_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.deck_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->deck_uri(), target); + } + + // string dynamic_job_spec_uri = 12; + if (this->dynamic_job_spec_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 12, this->dynamic_job_spec_uri(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionClosure) + return target; +} + +size_t NodeExecutionClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string deck_uri = 11; + if (this->deck_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->deck_uri()); + } + + // string dynamic_job_spec_uri = 12; + if (this->dynamic_job_spec_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->dynamic_job_spec_uri()); + } + + // .google.protobuf.Timestamp started_at = 4; + if (this->has_started_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *started_at_); + } + + // .google.protobuf.Duration duration = 5; + if (this->has_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *duration_); + } + + // .google.protobuf.Timestamp created_at = 6; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); + } + + // .google.protobuf.Timestamp updated_at = 7; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *updated_at_); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // string output_uri = 1 [deprecated = true]; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 2; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + case kOutputData: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.output_data_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (target_metadata_case()) { + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + case kWorkflowNodeMetadata: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_metadata_.workflow_node_metadata_); + break; + } + // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + case kTaskNodeMetadata: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_metadata_.task_node_metadata_); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionClosure) + MergeFrom(*source); + } +} + +void NodeExecutionClosure::MergeFrom(const NodeExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.deck_uri().size() > 0) { + + deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); + } + if (from.dynamic_job_spec_uri().size() > 0) { + + dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); + } + if (from.has_started_at()) { + mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); + } + if (from.has_duration()) { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::admin::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case kTaskNodeMetadata: { + mutable_task_node_metadata()->::flyteidl::admin::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } +} + +void NodeExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionClosure::CopyFrom(const NodeExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionClosure::IsInitialized() const { + return true; +} + +void NodeExecutionClosure::Swap(NodeExecutionClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionClosure::InternalSwap(NodeExecutionClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + deck_uri_.Swap(&other->deck_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + dynamic_job_spec_uri_.Swap(&other->dynamic_job_spec_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(started_at_, other->started_at_); + swap(duration_, other->duration_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(target_metadata_, other->target_metadata_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_oneof_case_[1], other->_oneof_case_[1]); +} + +::google::protobuf::Metadata NodeExecutionClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowNodeMetadata_default_instance_._instance.get_mutable()->executionid_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class WorkflowNodeMetadata::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& executionid(const WorkflowNodeMetadata* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +WorkflowNodeMetadata::HasBitSetters::executionid(const WorkflowNodeMetadata* msg) { + return *msg->executionid_; +} +void WorkflowNodeMetadata::clear_executionid() { + if (GetArenaNoVirtual() == nullptr && executionid_ != nullptr) { + delete executionid_; + } + executionid_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowNodeMetadata::kExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowNodeMetadata::WorkflowNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowNodeMetadata) +} +WorkflowNodeMetadata::WorkflowNodeMetadata(const WorkflowNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_executionid()) { + executionid_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.executionid_); + } else { + executionid_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowNodeMetadata) +} + +void WorkflowNodeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + executionid_ = nullptr; +} + +WorkflowNodeMetadata::~WorkflowNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowNodeMetadata) + SharedDtor(); +} + +void WorkflowNodeMetadata::SharedDtor() { + if (this != internal_default_instance()) delete executionid_; +} + +void WorkflowNodeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowNodeMetadata& WorkflowNodeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && executionid_ != nullptr) { + delete executionid_; + } + executionid_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowNodeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_executionid(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowNodeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_executionid())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowNodeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + if (this->has_executionid()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::executionid(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowNodeMetadata) +} + +::google::protobuf::uint8* WorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + if (this->has_executionid()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::executionid(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowNodeMetadata) + return target; +} + +size_t WorkflowNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowNodeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + if (this->has_executionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *executionid_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowNodeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowNodeMetadata) + MergeFrom(*source); + } +} + +void WorkflowNodeMetadata::MergeFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_executionid()) { + mutable_executionid()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.executionid()); + } +} + +void WorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowNodeMetadata::CopyFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowNodeMetadata::IsInitialized() const { + return true; +} + +void WorkflowNodeMetadata::Swap(WorkflowNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowNodeMetadata::InternalSwap(WorkflowNodeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(executionid_, other->executionid_); +} + +::google::protobuf::Metadata WorkflowNodeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskNodeMetadata_default_instance_._instance.get_mutable()->catalog_key_ = const_cast< ::flyteidl::core::CatalogMetadata*>( + ::flyteidl::core::CatalogMetadata::internal_default_instance()); +} +class TaskNodeMetadata::HasBitSetters { + public: + static const ::flyteidl::core::CatalogMetadata& catalog_key(const TaskNodeMetadata* msg); +}; + +const ::flyteidl::core::CatalogMetadata& +TaskNodeMetadata::HasBitSetters::catalog_key(const TaskNodeMetadata* msg) { + return *msg->catalog_key_; +} +void TaskNodeMetadata::clear_catalog_key() { + if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { + delete catalog_key_; + } + catalog_key_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskNodeMetadata::kCacheStatusFieldNumber; +const int TaskNodeMetadata::kCatalogKeyFieldNumber; +const int TaskNodeMetadata::kCheckpointUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskNodeMetadata::TaskNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskNodeMetadata) +} +TaskNodeMetadata::TaskNodeMetadata(const TaskNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.checkpoint_uri().size() > 0) { + checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); + } + if (from.has_catalog_key()) { + catalog_key_ = new ::flyteidl::core::CatalogMetadata(*from.catalog_key_); + } else { + catalog_key_ = nullptr; + } + cache_status_ = from.cache_status_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskNodeMetadata) +} + +void TaskNodeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&catalog_key_, 0, static_cast( + reinterpret_cast(&cache_status_) - + reinterpret_cast(&catalog_key_)) + sizeof(cache_status_)); +} + +TaskNodeMetadata::~TaskNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskNodeMetadata) + SharedDtor(); +} + +void TaskNodeMetadata::SharedDtor() { + checkpoint_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete catalog_key_; +} + +void TaskNodeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskNodeMetadata& TaskNodeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { + delete catalog_key_; + } + catalog_key_ = nullptr; + cache_status_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskNodeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_cache_status(static_cast<::flyteidl::core::CatalogCacheStatus>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.CatalogMetadata catalog_key = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CatalogMetadata::_InternalParse; + object = msg->mutable_catalog_key(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string checkpoint_uri = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskNodeMetadata.checkpoint_uri"); + object = msg->mutable_checkpoint_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskNodeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_cache_status(static_cast< ::flyteidl::core::CatalogCacheStatus >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_catalog_key())); + } else { + goto handle_unusual; + } + break; + } + + // string checkpoint_uri = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_checkpoint_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskNodeMetadata.checkpoint_uri")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskNodeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + if (this->cache_status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->cache_status(), output); + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + if (this->has_catalog_key()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::catalog_key(this), output); + } + + // string checkpoint_uri = 4; + if (this->checkpoint_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskNodeMetadata.checkpoint_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->checkpoint_uri(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskNodeMetadata) +} + +::google::protobuf::uint8* TaskNodeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + if (this->cache_status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->cache_status(), target); + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + if (this->has_catalog_key()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::catalog_key(this), target); + } + + // string checkpoint_uri = 4; + if (this->checkpoint_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskNodeMetadata.checkpoint_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->checkpoint_uri(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskNodeMetadata) + return target; +} + +size_t TaskNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskNodeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string checkpoint_uri = 4; + if (this->checkpoint_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->checkpoint_uri()); + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + if (this->has_catalog_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *catalog_key_); + } + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + if (this->cache_status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cache_status()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const TaskNodeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskNodeMetadata) + MergeFrom(*source); + } +} + +void TaskNodeMetadata::MergeFrom(const TaskNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.checkpoint_uri().size() > 0) { + + checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); + } + if (from.has_catalog_key()) { + mutable_catalog_key()->::flyteidl::core::CatalogMetadata::MergeFrom(from.catalog_key()); + } + if (from.cache_status() != 0) { + set_cache_status(from.cache_status()); + } +} + +void TaskNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskNodeMetadata::CopyFrom(const TaskNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskNodeMetadata::IsInitialized() const { + return true; +} + +void TaskNodeMetadata::Swap(TaskNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskNodeMetadata::InternalSwap(TaskNodeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + checkpoint_uri_.Swap(&other->checkpoint_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(catalog_key_, other->catalog_key_); + swap(cache_status_, other->cache_status_); +} + +::google::protobuf::Metadata TaskNodeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DynamicWorkflowNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->compiled_workflow_ = const_cast< ::flyteidl::core::CompiledWorkflowClosure*>( + ::flyteidl::core::CompiledWorkflowClosure::internal_default_instance()); +} +class DynamicWorkflowNodeMetadata::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const DynamicWorkflowNodeMetadata* msg); + static const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow(const DynamicWorkflowNodeMetadata* msg); +}; + +const ::flyteidl::core::Identifier& +DynamicWorkflowNodeMetadata::HasBitSetters::id(const DynamicWorkflowNodeMetadata* msg) { + return *msg->id_; +} +const ::flyteidl::core::CompiledWorkflowClosure& +DynamicWorkflowNodeMetadata::HasBitSetters::compiled_workflow(const DynamicWorkflowNodeMetadata* msg) { + return *msg->compiled_workflow_; +} +void DynamicWorkflowNodeMetadata::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void DynamicWorkflowNodeMetadata::clear_compiled_workflow() { + if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { + delete compiled_workflow_; + } + compiled_workflow_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DynamicWorkflowNodeMetadata::kIdFieldNumber; +const int DynamicWorkflowNodeMetadata::kCompiledWorkflowFieldNumber; +const int DynamicWorkflowNodeMetadata::kDynamicJobSpecUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.DynamicWorkflowNodeMetadata) +} +DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.dynamic_job_spec_uri().size() > 0) { + dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_compiled_workflow()) { + compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure(*from.compiled_workflow_); + } else { + compiled_workflow_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DynamicWorkflowNodeMetadata) +} + +void DynamicWorkflowNodeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&compiled_workflow_) - + reinterpret_cast(&id_)) + sizeof(compiled_workflow_)); +} + +DynamicWorkflowNodeMetadata::~DynamicWorkflowNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.DynamicWorkflowNodeMetadata) + SharedDtor(); +} + +void DynamicWorkflowNodeMetadata::SharedDtor() { + dynamic_job_spec_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete compiled_workflow_; +} + +void DynamicWorkflowNodeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DynamicWorkflowNodeMetadata& DynamicWorkflowNodeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void DynamicWorkflowNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { + delete compiled_workflow_; + } + compiled_workflow_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DynamicWorkflowNodeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CompiledWorkflowClosure::_InternalParse; + object = msg->mutable_compiled_workflow(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string dynamic_job_spec_uri = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); + object = msg->mutable_dynamic_job_spec_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DynamicWorkflowNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_compiled_workflow())); + } else { + goto handle_unusual; + } + break; + } + + // string dynamic_job_spec_uri = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_dynamic_job_spec_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.DynamicWorkflowNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.DynamicWorkflowNodeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DynamicWorkflowNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + if (this->has_compiled_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::compiled_workflow(this), output); + } + + // string dynamic_job_spec_uri = 3; + if (this->dynamic_job_spec_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->dynamic_job_spec_uri(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.DynamicWorkflowNodeMetadata) +} + +::google::protobuf::uint8* DynamicWorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + if (this->has_compiled_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::compiled_workflow(this), target); + } + + // string dynamic_job_spec_uri = 3; + if (this->dynamic_job_spec_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->dynamic_job_spec_uri(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.DynamicWorkflowNodeMetadata) + return target; +} + +size_t DynamicWorkflowNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string dynamic_job_spec_uri = 3; + if (this->dynamic_job_spec_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->dynamic_job_spec_uri()); + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + if (this->has_compiled_workflow()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *compiled_workflow_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DynamicWorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const DynamicWorkflowNodeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DynamicWorkflowNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DynamicWorkflowNodeMetadata) + MergeFrom(*source); + } +} + +void DynamicWorkflowNodeMetadata::MergeFrom(const DynamicWorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.dynamic_job_spec_uri().size() > 0) { + + dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_compiled_workflow()) { + mutable_compiled_workflow()->::flyteidl::core::CompiledWorkflowClosure::MergeFrom(from.compiled_workflow()); + } +} + +void DynamicWorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DynamicWorkflowNodeMetadata::CopyFrom(const DynamicWorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DynamicWorkflowNodeMetadata::IsInitialized() const { + return true; +} + +void DynamicWorkflowNodeMetadata::Swap(DynamicWorkflowNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void DynamicWorkflowNodeMetadata::InternalSwap(DynamicWorkflowNodeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + dynamic_job_spec_uri_.Swap(&other->dynamic_job_spec_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(compiled_workflow_, other->compiled_workflow_); +} + +::google::protobuf::Metadata DynamicWorkflowNodeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionGetDataRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); +} +class NodeExecutionGetDataRequest::HasBitSetters { + public: + static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecutionGetDataRequest* msg); +}; + +const ::flyteidl::core::NodeExecutionIdentifier& +NodeExecutionGetDataRequest::HasBitSetters::id(const NodeExecutionGetDataRequest* msg) { + return *msg->id_; +} +void NodeExecutionGetDataRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionGetDataRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionGetDataRequest::NodeExecutionGetDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetDataRequest) +} +NodeExecutionGetDataRequest::NodeExecutionGetDataRequest(const NodeExecutionGetDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetDataRequest) +} + +void NodeExecutionGetDataRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + id_ = nullptr; +} + +NodeExecutionGetDataRequest::~NodeExecutionGetDataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetDataRequest) + SharedDtor(); +} + +void NodeExecutionGetDataRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void NodeExecutionGetDataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionGetDataRequest& NodeExecutionGetDataRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionGetDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionGetDataRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionGetDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionGetDataRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionGetDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetDataRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionGetDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionGetDataRequest) +} + +::google::protobuf::uint8* NodeExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionGetDataRequest) + return target; +} + +size_t NodeExecutionGetDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetDataRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionGetDataRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetDataRequest) + MergeFrom(*source); + } +} + +void NodeExecutionGetDataRequest::MergeFrom(const NodeExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } +} + +void NodeExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionGetDataRequest::CopyFrom(const NodeExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionGetDataRequest::IsInitialized() const { + return true; +} + +void NodeExecutionGetDataRequest::Swap(NodeExecutionGetDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionGetDataRequest::InternalSwap(NodeExecutionGetDataRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata NodeExecutionGetDataRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionGetDataResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->dynamic_workflow_ = const_cast< ::flyteidl::admin::DynamicWorkflowNodeMetadata*>( + ::flyteidl::admin::DynamicWorkflowNodeMetadata::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->flyte_urls_ = const_cast< ::flyteidl::admin::FlyteURLs*>( + ::flyteidl::admin::FlyteURLs::internal_default_instance()); +} +class NodeExecutionGetDataResponse::HasBitSetters { + public: + static const ::flyteidl::admin::UrlBlob& inputs(const NodeExecutionGetDataResponse* msg); + static const ::flyteidl::admin::UrlBlob& outputs(const NodeExecutionGetDataResponse* msg); + static const ::flyteidl::core::LiteralMap& full_inputs(const NodeExecutionGetDataResponse* msg); + static const ::flyteidl::core::LiteralMap& full_outputs(const NodeExecutionGetDataResponse* msg); + static const ::flyteidl::admin::DynamicWorkflowNodeMetadata& dynamic_workflow(const NodeExecutionGetDataResponse* msg); + static const ::flyteidl::admin::FlyteURLs& flyte_urls(const NodeExecutionGetDataResponse* msg); +}; + +const ::flyteidl::admin::UrlBlob& +NodeExecutionGetDataResponse::HasBitSetters::inputs(const NodeExecutionGetDataResponse* msg) { + return *msg->inputs_; +} +const ::flyteidl::admin::UrlBlob& +NodeExecutionGetDataResponse::HasBitSetters::outputs(const NodeExecutionGetDataResponse* msg) { + return *msg->outputs_; +} +const ::flyteidl::core::LiteralMap& +NodeExecutionGetDataResponse::HasBitSetters::full_inputs(const NodeExecutionGetDataResponse* msg) { + return *msg->full_inputs_; +} +const ::flyteidl::core::LiteralMap& +NodeExecutionGetDataResponse::HasBitSetters::full_outputs(const NodeExecutionGetDataResponse* msg) { + return *msg->full_outputs_; +} +const ::flyteidl::admin::DynamicWorkflowNodeMetadata& +NodeExecutionGetDataResponse::HasBitSetters::dynamic_workflow(const NodeExecutionGetDataResponse* msg) { + return *msg->dynamic_workflow_; +} +const ::flyteidl::admin::FlyteURLs& +NodeExecutionGetDataResponse::HasBitSetters::flyte_urls(const NodeExecutionGetDataResponse* msg) { + return *msg->flyte_urls_; +} +void NodeExecutionGetDataResponse::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +void NodeExecutionGetDataResponse::clear_outputs() { + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; +} +void NodeExecutionGetDataResponse::clear_full_inputs() { + if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { + delete full_inputs_; + } + full_inputs_ = nullptr; +} +void NodeExecutionGetDataResponse::clear_full_outputs() { + if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { + delete full_outputs_; + } + full_outputs_ = nullptr; +} +void NodeExecutionGetDataResponse::clear_flyte_urls() { + if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { + delete flyte_urls_; + } + flyte_urls_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionGetDataResponse::kInputsFieldNumber; +const int NodeExecutionGetDataResponse::kOutputsFieldNumber; +const int NodeExecutionGetDataResponse::kFullInputsFieldNumber; +const int NodeExecutionGetDataResponse::kFullOutputsFieldNumber; +const int NodeExecutionGetDataResponse::kDynamicWorkflowFieldNumber; +const int NodeExecutionGetDataResponse::kFlyteUrlsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionGetDataResponse::NodeExecutionGetDataResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetDataResponse) +} +NodeExecutionGetDataResponse::NodeExecutionGetDataResponse(const NodeExecutionGetDataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_inputs()) { + inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_outputs()) { + outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); + } else { + outputs_ = nullptr; + } + if (from.has_full_inputs()) { + full_inputs_ = new ::flyteidl::core::LiteralMap(*from.full_inputs_); + } else { + full_inputs_ = nullptr; + } + if (from.has_full_outputs()) { + full_outputs_ = new ::flyteidl::core::LiteralMap(*from.full_outputs_); + } else { + full_outputs_ = nullptr; + } + if (from.has_dynamic_workflow()) { + dynamic_workflow_ = new ::flyteidl::admin::DynamicWorkflowNodeMetadata(*from.dynamic_workflow_); + } else { + dynamic_workflow_ = nullptr; + } + if (from.has_flyte_urls()) { + flyte_urls_ = new ::flyteidl::admin::FlyteURLs(*from.flyte_urls_); + } else { + flyte_urls_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetDataResponse) +} + +void NodeExecutionGetDataResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&flyte_urls_) - + reinterpret_cast(&inputs_)) + sizeof(flyte_urls_)); +} + +NodeExecutionGetDataResponse::~NodeExecutionGetDataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetDataResponse) + SharedDtor(); +} + +void NodeExecutionGetDataResponse::SharedDtor() { + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete outputs_; + if (this != internal_default_instance()) delete full_inputs_; + if (this != internal_default_instance()) delete full_outputs_; + if (this != internal_default_instance()) delete dynamic_workflow_; + if (this != internal_default_instance()) delete flyte_urls_; +} + +void NodeExecutionGetDataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionGetDataResponse& NodeExecutionGetDataResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionGetDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { + delete full_inputs_; + } + full_inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { + delete full_outputs_; + } + full_outputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { + delete dynamic_workflow_; + } + dynamic_workflow_ = nullptr; + if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { + delete flyte_urls_; + } + flyte_urls_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionGetDataResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap full_inputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_full_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap full_outputs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_full_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::DynamicWorkflowNodeMetadata::_InternalParse; + object = msg->mutable_dynamic_workflow(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.FlyteURLs flyte_urls = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::FlyteURLs::_InternalParse; + object = msg->mutable_flyte_urls(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionGetDataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionGetDataResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_full_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_full_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dynamic_workflow())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_flyte_urls())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionGetDataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetDataResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionGetDataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::inputs(this), output); + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::outputs(this), output); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::full_inputs(this), output); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::full_outputs(this), output); + } + + // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + if (this->has_dynamic_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, HasBitSetters::dynamic_workflow(this), output); + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 17; + if (this->has_flyte_urls()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, HasBitSetters::flyte_urls(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionGetDataResponse) +} + +::google::protobuf::uint8* NodeExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::inputs(this), target); + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::outputs(this), target); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::full_inputs(this), target); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::full_outputs(this), target); + } + + // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + if (this->has_dynamic_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, HasBitSetters::dynamic_workflow(this), target); + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 17; + if (this->has_flyte_urls()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 17, HasBitSetters::flyte_urls(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionGetDataResponse) + return target; +} + +size_t NodeExecutionGetDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetDataResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *outputs_); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *full_inputs_); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *full_outputs_); + } + + // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + if (this->has_dynamic_workflow()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dynamic_workflow_); + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 17; + if (this->has_flyte_urls()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *flyte_urls_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionGetDataResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetDataResponse) + MergeFrom(*source); + } +} + +void NodeExecutionGetDataResponse::MergeFrom(const NodeExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); + } + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); + } + if (from.has_full_inputs()) { + mutable_full_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_inputs()); + } + if (from.has_full_outputs()) { + mutable_full_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_outputs()); + } + if (from.has_dynamic_workflow()) { + mutable_dynamic_workflow()->::flyteidl::admin::DynamicWorkflowNodeMetadata::MergeFrom(from.dynamic_workflow()); + } + if (from.has_flyte_urls()) { + mutable_flyte_urls()->::flyteidl::admin::FlyteURLs::MergeFrom(from.flyte_urls()); + } +} + +void NodeExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionGetDataResponse::CopyFrom(const NodeExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionGetDataResponse::IsInitialized() const { + return true; +} + +void NodeExecutionGetDataResponse::Swap(NodeExecutionGetDataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionGetDataResponse::InternalSwap(NodeExecutionGetDataResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(inputs_, other->inputs_); + swap(outputs_, other->outputs_); + swap(full_inputs_, other->full_inputs_); + swap(full_outputs_, other->full_outputs_); + swap(dynamic_workflow_, other->dynamic_workflow_); + swap(flyte_urls_, other->flyte_urls_); +} + +::google::protobuf::Metadata NodeExecutionGetDataResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionForTaskListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionForTaskListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionForTaskListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecution* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecution >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecution >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionMetaData* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionMetaData >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionMetaData >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionList* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionClosure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowNodeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowNodeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskNodeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskNodeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::DynamicWorkflowNodeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::DynamicWorkflowNodeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionGetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionGetDataRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionGetDataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionGetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionGetDataResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionGetDataResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h new file mode 100644 index 0000000000..f3646427ec --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h @@ -0,0 +1,4163 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnode_5fexecution_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnode_5fexecution_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/catalog.pb.h" +#include "flyteidl/core/compiler.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/literals.pb.h" +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[12] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto(); +namespace flyteidl { +namespace admin { +class DynamicWorkflowNodeMetadata; +class DynamicWorkflowNodeMetadataDefaultTypeInternal; +extern DynamicWorkflowNodeMetadataDefaultTypeInternal _DynamicWorkflowNodeMetadata_default_instance_; +class NodeExecution; +class NodeExecutionDefaultTypeInternal; +extern NodeExecutionDefaultTypeInternal _NodeExecution_default_instance_; +class NodeExecutionClosure; +class NodeExecutionClosureDefaultTypeInternal; +extern NodeExecutionClosureDefaultTypeInternal _NodeExecutionClosure_default_instance_; +class NodeExecutionForTaskListRequest; +class NodeExecutionForTaskListRequestDefaultTypeInternal; +extern NodeExecutionForTaskListRequestDefaultTypeInternal _NodeExecutionForTaskListRequest_default_instance_; +class NodeExecutionGetDataRequest; +class NodeExecutionGetDataRequestDefaultTypeInternal; +extern NodeExecutionGetDataRequestDefaultTypeInternal _NodeExecutionGetDataRequest_default_instance_; +class NodeExecutionGetDataResponse; +class NodeExecutionGetDataResponseDefaultTypeInternal; +extern NodeExecutionGetDataResponseDefaultTypeInternal _NodeExecutionGetDataResponse_default_instance_; +class NodeExecutionGetRequest; +class NodeExecutionGetRequestDefaultTypeInternal; +extern NodeExecutionGetRequestDefaultTypeInternal _NodeExecutionGetRequest_default_instance_; +class NodeExecutionList; +class NodeExecutionListDefaultTypeInternal; +extern NodeExecutionListDefaultTypeInternal _NodeExecutionList_default_instance_; +class NodeExecutionListRequest; +class NodeExecutionListRequestDefaultTypeInternal; +extern NodeExecutionListRequestDefaultTypeInternal _NodeExecutionListRequest_default_instance_; +class NodeExecutionMetaData; +class NodeExecutionMetaDataDefaultTypeInternal; +extern NodeExecutionMetaDataDefaultTypeInternal _NodeExecutionMetaData_default_instance_; +class TaskNodeMetadata; +class TaskNodeMetadataDefaultTypeInternal; +extern TaskNodeMetadataDefaultTypeInternal _TaskNodeMetadata_default_instance_; +class WorkflowNodeMetadata; +class WorkflowNodeMetadataDefaultTypeInternal; +extern WorkflowNodeMetadataDefaultTypeInternal _WorkflowNodeMetadata_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::DynamicWorkflowNodeMetadata>(Arena*); +template<> ::flyteidl::admin::NodeExecution* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecution>(Arena*); +template<> ::flyteidl::admin::NodeExecutionClosure* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionClosure>(Arena*); +template<> ::flyteidl::admin::NodeExecutionForTaskListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionForTaskListRequest>(Arena*); +template<> ::flyteidl::admin::NodeExecutionGetDataRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionGetDataRequest>(Arena*); +template<> ::flyteidl::admin::NodeExecutionGetDataResponse* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionGetDataResponse>(Arena*); +template<> ::flyteidl::admin::NodeExecutionGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionGetRequest>(Arena*); +template<> ::flyteidl::admin::NodeExecutionList* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionList>(Arena*); +template<> ::flyteidl::admin::NodeExecutionListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionListRequest>(Arena*); +template<> ::flyteidl::admin::NodeExecutionMetaData* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionMetaData>(Arena*); +template<> ::flyteidl::admin::TaskNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::TaskNodeMetadata>(Arena*); +template<> ::flyteidl::admin::WorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowNodeMetadata>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class NodeExecutionGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetRequest) */ { + public: + NodeExecutionGetRequest(); + virtual ~NodeExecutionGetRequest(); + + NodeExecutionGetRequest(const NodeExecutionGetRequest& from); + + inline NodeExecutionGetRequest& operator=(const NodeExecutionGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionGetRequest(NodeExecutionGetRequest&& from) noexcept + : NodeExecutionGetRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionGetRequest& operator=(NodeExecutionGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionGetRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(NodeExecutionGetRequest* other); + friend void swap(NodeExecutionGetRequest& a, NodeExecutionGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionGetRequest& from); + void MergeFrom(const NodeExecutionGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionListRequest) */ { + public: + NodeExecutionListRequest(); + virtual ~NodeExecutionListRequest(); + + NodeExecutionListRequest(const NodeExecutionListRequest& from); + + inline NodeExecutionListRequest& operator=(const NodeExecutionListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionListRequest(NodeExecutionListRequest&& from) noexcept + : NodeExecutionListRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionListRequest& operator=(NodeExecutionListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionListRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(NodeExecutionListRequest* other); + friend void swap(NodeExecutionListRequest& a, NodeExecutionListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionListRequest& from); + void MergeFrom(const NodeExecutionListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // string unique_parent_id = 6; + void clear_unique_parent_id(); + static const int kUniqueParentIdFieldNumber = 6; + const ::std::string& unique_parent_id() const; + void set_unique_parent_id(const ::std::string& value); + #if LANG_CXX11 + void set_unique_parent_id(::std::string&& value); + #endif + void set_unique_parent_id(const char* value); + void set_unique_parent_id(const char* value, size_t size); + ::std::string* mutable_unique_parent_id(); + ::std::string* release_unique_parent_id(); + void set_allocated_unique_parent_id(::std::string* unique_parent_id); + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + bool has_workflow_execution_id() const; + void clear_workflow_execution_id(); + static const int kWorkflowExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution_id(); + void set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::google::protobuf::internal::ArenaStringPtr unique_parent_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionForTaskListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionForTaskListRequest) */ { + public: + NodeExecutionForTaskListRequest(); + virtual ~NodeExecutionForTaskListRequest(); + + NodeExecutionForTaskListRequest(const NodeExecutionForTaskListRequest& from); + + inline NodeExecutionForTaskListRequest& operator=(const NodeExecutionForTaskListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionForTaskListRequest(NodeExecutionForTaskListRequest&& from) noexcept + : NodeExecutionForTaskListRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionForTaskListRequest& operator=(NodeExecutionForTaskListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionForTaskListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionForTaskListRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionForTaskListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(NodeExecutionForTaskListRequest* other); + friend void swap(NodeExecutionForTaskListRequest& a, NodeExecutionForTaskListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionForTaskListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionForTaskListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionForTaskListRequest& from); + void MergeFrom(const NodeExecutionForTaskListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionForTaskListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + bool has_task_execution_id() const; + void clear_task_execution_id(); + static const int kTaskExecutionIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_task_execution_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_task_execution_id(); + void set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecution final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecution) */ { + public: + NodeExecution(); + virtual ~NodeExecution(); + + NodeExecution(const NodeExecution& from); + + inline NodeExecution& operator=(const NodeExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecution(NodeExecution&& from) noexcept + : NodeExecution() { + *this = ::std::move(from); + } + + inline NodeExecution& operator=(NodeExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecution* internal_default_instance() { + return reinterpret_cast( + &_NodeExecution_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(NodeExecution* other); + friend void swap(NodeExecution& a, NodeExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecution* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecution* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecution& from); + void MergeFrom(const NodeExecution& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string input_uri = 2; + void clear_input_uri(); + static const int kInputUriFieldNumber = 2; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::NodeExecutionClosure& closure() const; + ::flyteidl::admin::NodeExecutionClosure* release_closure(); + ::flyteidl::admin::NodeExecutionClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::NodeExecutionClosure* closure); + + // .flyteidl.admin.NodeExecutionMetaData metadata = 4; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 4; + const ::flyteidl::admin::NodeExecutionMetaData& metadata() const; + ::flyteidl::admin::NodeExecutionMetaData* release_metadata(); + ::flyteidl::admin::NodeExecutionMetaData* mutable_metadata(); + void set_allocated_metadata(::flyteidl::admin::NodeExecutionMetaData* metadata); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + ::flyteidl::admin::NodeExecutionClosure* closure_; + ::flyteidl::admin::NodeExecutionMetaData* metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionMetaData final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionMetaData) */ { + public: + NodeExecutionMetaData(); + virtual ~NodeExecutionMetaData(); + + NodeExecutionMetaData(const NodeExecutionMetaData& from); + + inline NodeExecutionMetaData& operator=(const NodeExecutionMetaData& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionMetaData(NodeExecutionMetaData&& from) noexcept + : NodeExecutionMetaData() { + *this = ::std::move(from); + } + + inline NodeExecutionMetaData& operator=(NodeExecutionMetaData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionMetaData& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionMetaData* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionMetaData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(NodeExecutionMetaData* other); + friend void swap(NodeExecutionMetaData& a, NodeExecutionMetaData& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionMetaData* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionMetaData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionMetaData& from); + void MergeFrom(const NodeExecutionMetaData& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionMetaData* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string retry_group = 1; + void clear_retry_group(); + static const int kRetryGroupFieldNumber = 1; + const ::std::string& retry_group() const; + void set_retry_group(const ::std::string& value); + #if LANG_CXX11 + void set_retry_group(::std::string&& value); + #endif + void set_retry_group(const char* value); + void set_retry_group(const char* value, size_t size); + ::std::string* mutable_retry_group(); + ::std::string* release_retry_group(); + void set_allocated_retry_group(::std::string* retry_group); + + // string spec_node_id = 3; + void clear_spec_node_id(); + static const int kSpecNodeIdFieldNumber = 3; + const ::std::string& spec_node_id() const; + void set_spec_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_spec_node_id(::std::string&& value); + #endif + void set_spec_node_id(const char* value); + void set_spec_node_id(const char* value, size_t size); + ::std::string* mutable_spec_node_id(); + ::std::string* release_spec_node_id(); + void set_allocated_spec_node_id(::std::string* spec_node_id); + + // bool is_parent_node = 2; + void clear_is_parent_node(); + static const int kIsParentNodeFieldNumber = 2; + bool is_parent_node() const; + void set_is_parent_node(bool value); + + // bool is_dynamic = 4; + void clear_is_dynamic(); + static const int kIsDynamicFieldNumber = 4; + bool is_dynamic() const; + void set_is_dynamic(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr retry_group_; + ::google::protobuf::internal::ArenaStringPtr spec_node_id_; + bool is_parent_node_; + bool is_dynamic_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionList) */ { + public: + NodeExecutionList(); + virtual ~NodeExecutionList(); + + NodeExecutionList(const NodeExecutionList& from); + + inline NodeExecutionList& operator=(const NodeExecutionList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionList(NodeExecutionList&& from) noexcept + : NodeExecutionList() { + *this = ::std::move(from); + } + + inline NodeExecutionList& operator=(NodeExecutionList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionList* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(NodeExecutionList* other); + friend void swap(NodeExecutionList& a, NodeExecutionList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionList* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionList& from); + void MergeFrom(const NodeExecutionList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + int node_executions_size() const; + void clear_node_executions(); + static const int kNodeExecutionsFieldNumber = 1; + ::flyteidl::admin::NodeExecution* mutable_node_executions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >* + mutable_node_executions(); + const ::flyteidl::admin::NodeExecution& node_executions(int index) const; + ::flyteidl::admin::NodeExecution* add_node_executions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >& + node_executions() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution > node_executions_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionClosure) */ { + public: + NodeExecutionClosure(); + virtual ~NodeExecutionClosure(); + + NodeExecutionClosure(const NodeExecutionClosure& from); + + inline NodeExecutionClosure& operator=(const NodeExecutionClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionClosure(NodeExecutionClosure&& from) noexcept + : NodeExecutionClosure() { + *this = ::std::move(from); + } + + inline NodeExecutionClosure& operator=(NodeExecutionClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionClosure& default_instance(); + + enum OutputResultCase { + kOutputUri = 1, + kError = 2, + kOutputData = 10, + OUTPUT_RESULT_NOT_SET = 0, + }; + + enum TargetMetadataCase { + kWorkflowNodeMetadata = 8, + kTaskNodeMetadata = 9, + TARGET_METADATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionClosure* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(NodeExecutionClosure* other); + friend void swap(NodeExecutionClosure& a, NodeExecutionClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionClosure& from); + void MergeFrom(const NodeExecutionClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string deck_uri = 11; + void clear_deck_uri(); + static const int kDeckUriFieldNumber = 11; + const ::std::string& deck_uri() const; + void set_deck_uri(const ::std::string& value); + #if LANG_CXX11 + void set_deck_uri(::std::string&& value); + #endif + void set_deck_uri(const char* value); + void set_deck_uri(const char* value, size_t size); + ::std::string* mutable_deck_uri(); + ::std::string* release_deck_uri(); + void set_allocated_deck_uri(::std::string* deck_uri); + + // string dynamic_job_spec_uri = 12; + void clear_dynamic_job_spec_uri(); + static const int kDynamicJobSpecUriFieldNumber = 12; + const ::std::string& dynamic_job_spec_uri() const; + void set_dynamic_job_spec_uri(const ::std::string& value); + #if LANG_CXX11 + void set_dynamic_job_spec_uri(::std::string&& value); + #endif + void set_dynamic_job_spec_uri(const char* value); + void set_dynamic_job_spec_uri(const char* value, size_t size); + ::std::string* mutable_dynamic_job_spec_uri(); + ::std::string* release_dynamic_job_spec_uri(); + void set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri); + + // .google.protobuf.Timestamp started_at = 4; + bool has_started_at() const; + void clear_started_at(); + static const int kStartedAtFieldNumber = 4; + const ::google::protobuf::Timestamp& started_at() const; + ::google::protobuf::Timestamp* release_started_at(); + ::google::protobuf::Timestamp* mutable_started_at(); + void set_allocated_started_at(::google::protobuf::Timestamp* started_at); + + // .google.protobuf.Duration duration = 5; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 5; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + // .google.protobuf.Timestamp created_at = 6; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 6; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 7; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .flyteidl.core.NodeExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::NodeExecution_Phase phase() const; + void set_phase(::flyteidl::core::NodeExecution_Phase value); + + // string output_uri = 1 [deprecated = true]; + private: + bool has_output_uri() const; + public: + PROTOBUF_DEPRECATED void clear_output_uri(); + PROTOBUF_DEPRECATED static const int kOutputUriFieldNumber = 1; + PROTOBUF_DEPRECATED const ::std::string& output_uri() const; + PROTOBUF_DEPRECATED void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + PROTOBUF_DEPRECATED void set_output_uri(::std::string&& value); + #endif + PROTOBUF_DEPRECATED void set_output_uri(const char* value); + PROTOBUF_DEPRECATED void set_output_uri(const char* value, size_t size); + PROTOBUF_DEPRECATED ::std::string* mutable_output_uri(); + PROTOBUF_DEPRECATED ::std::string* release_output_uri(); + PROTOBUF_DEPRECATED void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 2; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 2; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_output_data() const; + PROTOBUF_DEPRECATED void clear_output_data(); + PROTOBUF_DEPRECATED static const int kOutputDataFieldNumber = 10; + PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& output_data() const; + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_output_data(); + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_output_data(); + PROTOBUF_DEPRECATED void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + bool has_workflow_node_metadata() const; + void clear_workflow_node_metadata(); + static const int kWorkflowNodeMetadataFieldNumber = 8; + const ::flyteidl::admin::WorkflowNodeMetadata& workflow_node_metadata() const; + ::flyteidl::admin::WorkflowNodeMetadata* release_workflow_node_metadata(); + ::flyteidl::admin::WorkflowNodeMetadata* mutable_workflow_node_metadata(); + void set_allocated_workflow_node_metadata(::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata); + + // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + bool has_task_node_metadata() const; + void clear_task_node_metadata(); + static const int kTaskNodeMetadataFieldNumber = 9; + const ::flyteidl::admin::TaskNodeMetadata& task_node_metadata() const; + ::flyteidl::admin::TaskNodeMetadata* release_task_node_metadata(); + ::flyteidl::admin::TaskNodeMetadata* mutable_task_node_metadata(); + void set_allocated_task_node_metadata(::flyteidl::admin::TaskNodeMetadata* task_node_metadata); + + void clear_output_result(); + OutputResultCase output_result_case() const; + void clear_target_metadata(); + TargetMetadataCase target_metadata_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) + private: + class HasBitSetters; + void set_has_output_uri(); + void set_has_error(); + void set_has_output_data(); + void set_has_workflow_node_metadata(); + void set_has_task_node_metadata(); + + inline bool has_output_result() const; + inline void clear_has_output_result(); + + inline bool has_target_metadata() const; + inline void clear_has_target_metadata(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr deck_uri_; + ::google::protobuf::internal::ArenaStringPtr dynamic_job_spec_uri_; + ::google::protobuf::Timestamp* started_at_; + ::google::protobuf::Duration* duration_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + ::flyteidl::core::LiteralMap* output_data_; + } output_result_; + union TargetMetadataUnion { + TargetMetadataUnion() {} + ::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata_; + ::flyteidl::admin::TaskNodeMetadata* task_node_metadata_; + } target_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[2]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowNodeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowNodeMetadata) */ { + public: + WorkflowNodeMetadata(); + virtual ~WorkflowNodeMetadata(); + + WorkflowNodeMetadata(const WorkflowNodeMetadata& from); + + inline WorkflowNodeMetadata& operator=(const WorkflowNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowNodeMetadata(WorkflowNodeMetadata&& from) noexcept + : WorkflowNodeMetadata() { + *this = ::std::move(from); + } + + inline WorkflowNodeMetadata& operator=(WorkflowNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_WorkflowNodeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(WorkflowNodeMetadata* other); + friend void swap(WorkflowNodeMetadata& a, WorkflowNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowNodeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowNodeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowNodeMetadata& from); + void MergeFrom(const WorkflowNodeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + bool has_executionid() const; + void clear_executionid(); + static const int kExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& executionid() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_executionid(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_executionid(); + void set_allocated_executionid(::flyteidl::core::WorkflowExecutionIdentifier* executionid); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* executionid_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskNodeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskNodeMetadata) */ { + public: + TaskNodeMetadata(); + virtual ~TaskNodeMetadata(); + + TaskNodeMetadata(const TaskNodeMetadata& from); + + inline TaskNodeMetadata& operator=(const TaskNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskNodeMetadata(TaskNodeMetadata&& from) noexcept + : TaskNodeMetadata() { + *this = ::std::move(from); + } + + inline TaskNodeMetadata& operator=(TaskNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_TaskNodeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(TaskNodeMetadata* other); + friend void swap(TaskNodeMetadata& a, TaskNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskNodeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskNodeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskNodeMetadata& from); + void MergeFrom(const TaskNodeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string checkpoint_uri = 4; + void clear_checkpoint_uri(); + static const int kCheckpointUriFieldNumber = 4; + const ::std::string& checkpoint_uri() const; + void set_checkpoint_uri(const ::std::string& value); + #if LANG_CXX11 + void set_checkpoint_uri(::std::string&& value); + #endif + void set_checkpoint_uri(const char* value); + void set_checkpoint_uri(const char* value, size_t size); + ::std::string* mutable_checkpoint_uri(); + ::std::string* release_checkpoint_uri(); + void set_allocated_checkpoint_uri(::std::string* checkpoint_uri); + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + bool has_catalog_key() const; + void clear_catalog_key(); + static const int kCatalogKeyFieldNumber = 2; + const ::flyteidl::core::CatalogMetadata& catalog_key() const; + ::flyteidl::core::CatalogMetadata* release_catalog_key(); + ::flyteidl::core::CatalogMetadata* mutable_catalog_key(); + void set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key); + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + void clear_cache_status(); + static const int kCacheStatusFieldNumber = 1; + ::flyteidl::core::CatalogCacheStatus cache_status() const; + void set_cache_status(::flyteidl::core::CatalogCacheStatus value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskNodeMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr checkpoint_uri_; + ::flyteidl::core::CatalogMetadata* catalog_key_; + int cache_status_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class DynamicWorkflowNodeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DynamicWorkflowNodeMetadata) */ { + public: + DynamicWorkflowNodeMetadata(); + virtual ~DynamicWorkflowNodeMetadata(); + + DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from); + + inline DynamicWorkflowNodeMetadata& operator=(const DynamicWorkflowNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DynamicWorkflowNodeMetadata(DynamicWorkflowNodeMetadata&& from) noexcept + : DynamicWorkflowNodeMetadata() { + *this = ::std::move(from); + } + + inline DynamicWorkflowNodeMetadata& operator=(DynamicWorkflowNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DynamicWorkflowNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DynamicWorkflowNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_DynamicWorkflowNodeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(DynamicWorkflowNodeMetadata* other); + friend void swap(DynamicWorkflowNodeMetadata& a, DynamicWorkflowNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DynamicWorkflowNodeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + DynamicWorkflowNodeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DynamicWorkflowNodeMetadata& from); + void MergeFrom(const DynamicWorkflowNodeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DynamicWorkflowNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string dynamic_job_spec_uri = 3; + void clear_dynamic_job_spec_uri(); + static const int kDynamicJobSpecUriFieldNumber = 3; + const ::std::string& dynamic_job_spec_uri() const; + void set_dynamic_job_spec_uri(const ::std::string& value); + #if LANG_CXX11 + void set_dynamic_job_spec_uri(::std::string&& value); + #endif + void set_dynamic_job_spec_uri(const char* value); + void set_dynamic_job_spec_uri(const char* value, size_t size); + ::std::string* mutable_dynamic_job_spec_uri(); + ::std::string* release_dynamic_job_spec_uri(); + void set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri); + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + bool has_compiled_workflow() const; + void clear_compiled_workflow(); + static const int kCompiledWorkflowFieldNumber = 2; + const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow() const; + ::flyteidl::core::CompiledWorkflowClosure* release_compiled_workflow(); + ::flyteidl::core::CompiledWorkflowClosure* mutable_compiled_workflow(); + void set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DynamicWorkflowNodeMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr dynamic_job_spec_uri_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::core::CompiledWorkflowClosure* compiled_workflow_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionGetDataRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetDataRequest) */ { + public: + NodeExecutionGetDataRequest(); + virtual ~NodeExecutionGetDataRequest(); + + NodeExecutionGetDataRequest(const NodeExecutionGetDataRequest& from); + + inline NodeExecutionGetDataRequest& operator=(const NodeExecutionGetDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionGetDataRequest(NodeExecutionGetDataRequest&& from) noexcept + : NodeExecutionGetDataRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionGetDataRequest& operator=(NodeExecutionGetDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionGetDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionGetDataRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionGetDataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(NodeExecutionGetDataRequest* other); + friend void swap(NodeExecutionGetDataRequest& a, NodeExecutionGetDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionGetDataRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionGetDataRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionGetDataRequest& from); + void MergeFrom(const NodeExecutionGetDataRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionGetDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionGetDataResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetDataResponse) */ { + public: + NodeExecutionGetDataResponse(); + virtual ~NodeExecutionGetDataResponse(); + + NodeExecutionGetDataResponse(const NodeExecutionGetDataResponse& from); + + inline NodeExecutionGetDataResponse& operator=(const NodeExecutionGetDataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionGetDataResponse(NodeExecutionGetDataResponse&& from) noexcept + : NodeExecutionGetDataResponse() { + *this = ::std::move(from); + } + + inline NodeExecutionGetDataResponse& operator=(NodeExecutionGetDataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionGetDataResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionGetDataResponse* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionGetDataResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(NodeExecutionGetDataResponse* other); + friend void swap(NodeExecutionGetDataResponse& a, NodeExecutionGetDataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionGetDataResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionGetDataResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionGetDataResponse& from); + void MergeFrom(const NodeExecutionGetDataResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionGetDataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_inputs() const; + PROTOBUF_DEPRECATED void clear_inputs(); + PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 1; + PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& inputs() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_inputs(); + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_inputs(); + PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_outputs() const; + PROTOBUF_DEPRECATED void clear_outputs(); + PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 2; + PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& outputs() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_outputs(); + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_outputs(); + PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); + + // .flyteidl.core.LiteralMap full_inputs = 3; + bool has_full_inputs() const; + void clear_full_inputs(); + static const int kFullInputsFieldNumber = 3; + const ::flyteidl::core::LiteralMap& full_inputs() const; + ::flyteidl::core::LiteralMap* release_full_inputs(); + ::flyteidl::core::LiteralMap* mutable_full_inputs(); + void set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs); + + // .flyteidl.core.LiteralMap full_outputs = 4; + bool has_full_outputs() const; + void clear_full_outputs(); + static const int kFullOutputsFieldNumber = 4; + const ::flyteidl::core::LiteralMap& full_outputs() const; + ::flyteidl::core::LiteralMap* release_full_outputs(); + ::flyteidl::core::LiteralMap* mutable_full_outputs(); + void set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs); + + // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + bool has_dynamic_workflow() const; + void clear_dynamic_workflow(); + static const int kDynamicWorkflowFieldNumber = 16; + const ::flyteidl::admin::DynamicWorkflowNodeMetadata& dynamic_workflow() const; + ::flyteidl::admin::DynamicWorkflowNodeMetadata* release_dynamic_workflow(); + ::flyteidl::admin::DynamicWorkflowNodeMetadata* mutable_dynamic_workflow(); + void set_allocated_dynamic_workflow(::flyteidl::admin::DynamicWorkflowNodeMetadata* dynamic_workflow); + + // .flyteidl.admin.FlyteURLs flyte_urls = 17; + bool has_flyte_urls() const; + void clear_flyte_urls(); + static const int kFlyteUrlsFieldNumber = 17; + const ::flyteidl::admin::FlyteURLs& flyte_urls() const; + ::flyteidl::admin::FlyteURLs* release_flyte_urls(); + ::flyteidl::admin::FlyteURLs* mutable_flyte_urls(); + void set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::UrlBlob* inputs_; + ::flyteidl::admin::UrlBlob* outputs_; + ::flyteidl::core::LiteralMap* full_inputs_; + ::flyteidl::core::LiteralMap* full_outputs_; + ::flyteidl::admin::DynamicWorkflowNodeMetadata* dynamic_workflow_; + ::flyteidl::admin::FlyteURLs* flyte_urls_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// NodeExecutionGetRequest + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecutionGetRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionGetRequest::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetRequest.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetRequest.id) + return id_; +} +inline void NodeExecutionGetRequest::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetRequest.id) +} + +// ------------------------------------------------------------------- + +// NodeExecutionListRequest + +// .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; +inline bool NodeExecutionListRequest::has_workflow_execution_id() const { + return this != internal_default_instance() && workflow_execution_id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& NodeExecutionListRequest::workflow_execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionListRequest::release_workflow_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_id_; + workflow_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionListRequest::mutable_workflow_execution_id() { + + if (workflow_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + workflow_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) + return workflow_execution_id_; +} +inline void NodeExecutionListRequest::set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_id_); + } + if (workflow_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_execution_id, submessage_arena); + } + + } else { + + } + workflow_execution_id_ = workflow_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) +} + +// uint32 limit = 2; +inline void NodeExecutionListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 NodeExecutionListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.limit) + return limit_; +} +inline void NodeExecutionListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.limit) +} + +// string token = 3; +inline void NodeExecutionListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.token) + return token_.GetNoArena(); +} +inline void NodeExecutionListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.token) +} +#if LANG_CXX11 +inline void NodeExecutionListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.token) +} +#endif +inline void NodeExecutionListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.token) +} +inline void NodeExecutionListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.token) +} +inline ::std::string* NodeExecutionListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.token) +} + +// string filters = 4; +inline void NodeExecutionListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.filters) + return filters_.GetNoArena(); +} +inline void NodeExecutionListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.filters) +} +#if LANG_CXX11 +inline void NodeExecutionListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.filters) +} +#endif +inline void NodeExecutionListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.filters) +} +inline void NodeExecutionListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.filters) +} +inline ::std::string* NodeExecutionListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool NodeExecutionListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline const ::flyteidl::admin::Sort& NodeExecutionListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* NodeExecutionListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* NodeExecutionListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.sort_by) + return sort_by_; +} +inline void NodeExecutionListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.sort_by) +} + +// string unique_parent_id = 6; +inline void NodeExecutionListRequest::clear_unique_parent_id() { + unique_parent_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionListRequest::unique_parent_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) + return unique_parent_id_.GetNoArena(); +} +inline void NodeExecutionListRequest::set_unique_parent_id(const ::std::string& value) { + + unique_parent_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) +} +#if LANG_CXX11 +inline void NodeExecutionListRequest::set_unique_parent_id(::std::string&& value) { + + unique_parent_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) +} +#endif +inline void NodeExecutionListRequest::set_unique_parent_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + unique_parent_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) +} +inline void NodeExecutionListRequest::set_unique_parent_id(const char* value, size_t size) { + + unique_parent_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) +} +inline ::std::string* NodeExecutionListRequest::mutable_unique_parent_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) + return unique_parent_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionListRequest::release_unique_parent_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) + + return unique_parent_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionListRequest::set_allocated_unique_parent_id(::std::string* unique_parent_id) { + if (unique_parent_id != nullptr) { + + } else { + + } + unique_parent_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), unique_parent_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) +} + +// ------------------------------------------------------------------- + +// NodeExecutionForTaskListRequest + +// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; +inline bool NodeExecutionForTaskListRequest::has_task_execution_id() const { + return this != internal_default_instance() && task_execution_id_ != nullptr; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& NodeExecutionForTaskListRequest::task_execution_id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* NodeExecutionForTaskListRequest::release_task_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; + task_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* NodeExecutionForTaskListRequest::mutable_task_execution_id() { + + if (task_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + task_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) + return task_execution_id_; +} +inline void NodeExecutionForTaskListRequest::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); + } + if (task_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_execution_id, submessage_arena); + } + + } else { + + } + task_execution_id_ = task_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) +} + +// uint32 limit = 2; +inline void NodeExecutionForTaskListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 NodeExecutionForTaskListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.limit) + return limit_; +} +inline void NodeExecutionForTaskListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.limit) +} + +// string token = 3; +inline void NodeExecutionForTaskListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionForTaskListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.token) + return token_.GetNoArena(); +} +inline void NodeExecutionForTaskListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +#if LANG_CXX11 +inline void NodeExecutionForTaskListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +#endif +inline void NodeExecutionForTaskListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +inline void NodeExecutionForTaskListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +inline ::std::string* NodeExecutionForTaskListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionForTaskListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionForTaskListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} + +// string filters = 4; +inline void NodeExecutionForTaskListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionForTaskListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.filters) + return filters_.GetNoArena(); +} +inline void NodeExecutionForTaskListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +#if LANG_CXX11 +inline void NodeExecutionForTaskListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +#endif +inline void NodeExecutionForTaskListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +inline void NodeExecutionForTaskListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +inline ::std::string* NodeExecutionForTaskListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionForTaskListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionForTaskListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool NodeExecutionForTaskListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline const ::flyteidl::admin::Sort& NodeExecutionForTaskListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* NodeExecutionForTaskListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* NodeExecutionForTaskListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) + return sort_by_; +} +inline void NodeExecutionForTaskListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// NodeExecution + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecution::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecution::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecution::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecution::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.id) + return id_; +} +inline void NodeExecution::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.id) +} + +// string input_uri = 2; +inline void NodeExecution::clear_input_uri() { + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecution::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.input_uri) + return input_uri_.GetNoArena(); +} +inline void NodeExecution::set_input_uri(const ::std::string& value) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecution.input_uri) +} +#if LANG_CXX11 +inline void NodeExecution::set_input_uri(::std::string&& value) { + + input_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecution.input_uri) +} +#endif +inline void NodeExecution::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecution.input_uri) +} +inline void NodeExecution::set_input_uri(const char* value, size_t size) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecution.input_uri) +} +inline ::std::string* NodeExecution::mutable_input_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.input_uri) + return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecution::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.input_uri) + + return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecution::set_allocated_input_uri(::std::string* input_uri) { + if (input_uri != nullptr) { + + } else { + + } + input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.input_uri) +} + +// .flyteidl.admin.NodeExecutionClosure closure = 3; +inline bool NodeExecution::has_closure() const { + return this != internal_default_instance() && closure_ != nullptr; +} +inline void NodeExecution::clear_closure() { + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; +} +inline const ::flyteidl::admin::NodeExecutionClosure& NodeExecution::closure() const { + const ::flyteidl::admin::NodeExecutionClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.closure) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NodeExecutionClosure_default_instance_); +} +inline ::flyteidl::admin::NodeExecutionClosure* NodeExecution::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.closure) + + ::flyteidl::admin::NodeExecutionClosure* temp = closure_; + closure_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NodeExecutionClosure* NodeExecution::mutable_closure() { + + if (closure_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NodeExecutionClosure>(GetArenaNoVirtual()); + closure_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.closure) + return closure_; +} +inline void NodeExecution::set_allocated_closure(::flyteidl::admin::NodeExecutionClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.closure) +} + +// .flyteidl.admin.NodeExecutionMetaData metadata = 4; +inline bool NodeExecution::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void NodeExecution::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::admin::NodeExecutionMetaData& NodeExecution::metadata() const { + const ::flyteidl::admin::NodeExecutionMetaData* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_NodeExecutionMetaData_default_instance_); +} +inline ::flyteidl::admin::NodeExecutionMetaData* NodeExecution::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.metadata) + + ::flyteidl::admin::NodeExecutionMetaData* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::admin::NodeExecutionMetaData* NodeExecution::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::NodeExecutionMetaData>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.metadata) + return metadata_; +} +inline void NodeExecution::set_allocated_metadata(::flyteidl::admin::NodeExecutionMetaData* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.metadata) +} + +// ------------------------------------------------------------------- + +// NodeExecutionMetaData + +// string retry_group = 1; +inline void NodeExecutionMetaData::clear_retry_group() { + retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionMetaData::retry_group() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.retry_group) + return retry_group_.GetNoArena(); +} +inline void NodeExecutionMetaData::set_retry_group(const ::std::string& value) { + + retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.retry_group) +} +#if LANG_CXX11 +inline void NodeExecutionMetaData::set_retry_group(::std::string&& value) { + + retry_group_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionMetaData.retry_group) +} +#endif +inline void NodeExecutionMetaData::set_retry_group(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionMetaData.retry_group) +} +inline void NodeExecutionMetaData::set_retry_group(const char* value, size_t size) { + + retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionMetaData.retry_group) +} +inline ::std::string* NodeExecutionMetaData::mutable_retry_group() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionMetaData.retry_group) + return retry_group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionMetaData::release_retry_group() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionMetaData.retry_group) + + return retry_group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionMetaData::set_allocated_retry_group(::std::string* retry_group) { + if (retry_group != nullptr) { + + } else { + + } + retry_group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), retry_group); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionMetaData.retry_group) +} + +// bool is_parent_node = 2; +inline void NodeExecutionMetaData::clear_is_parent_node() { + is_parent_node_ = false; +} +inline bool NodeExecutionMetaData::is_parent_node() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.is_parent_node) + return is_parent_node_; +} +inline void NodeExecutionMetaData::set_is_parent_node(bool value) { + + is_parent_node_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.is_parent_node) +} + +// string spec_node_id = 3; +inline void NodeExecutionMetaData::clear_spec_node_id() { + spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionMetaData::spec_node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.spec_node_id) + return spec_node_id_.GetNoArena(); +} +inline void NodeExecutionMetaData::set_spec_node_id(const ::std::string& value) { + + spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.spec_node_id) +} +#if LANG_CXX11 +inline void NodeExecutionMetaData::set_spec_node_id(::std::string&& value) { + + spec_node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionMetaData.spec_node_id) +} +#endif +inline void NodeExecutionMetaData::set_spec_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionMetaData.spec_node_id) +} +inline void NodeExecutionMetaData::set_spec_node_id(const char* value, size_t size) { + + spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionMetaData.spec_node_id) +} +inline ::std::string* NodeExecutionMetaData::mutable_spec_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionMetaData.spec_node_id) + return spec_node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionMetaData::release_spec_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionMetaData.spec_node_id) + + return spec_node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionMetaData::set_allocated_spec_node_id(::std::string* spec_node_id) { + if (spec_node_id != nullptr) { + + } else { + + } + spec_node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec_node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionMetaData.spec_node_id) +} + +// bool is_dynamic = 4; +inline void NodeExecutionMetaData::clear_is_dynamic() { + is_dynamic_ = false; +} +inline bool NodeExecutionMetaData::is_dynamic() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.is_dynamic) + return is_dynamic_; +} +inline void NodeExecutionMetaData::set_is_dynamic(bool value) { + + is_dynamic_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.is_dynamic) +} + +// ------------------------------------------------------------------- + +// NodeExecutionList + +// repeated .flyteidl.admin.NodeExecution node_executions = 1; +inline int NodeExecutionList::node_executions_size() const { + return node_executions_.size(); +} +inline void NodeExecutionList::clear_node_executions() { + node_executions_.Clear(); +} +inline ::flyteidl::admin::NodeExecution* NodeExecutionList::mutable_node_executions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >* +NodeExecutionList::mutable_node_executions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NodeExecutionList.node_executions) + return &node_executions_; +} +inline const ::flyteidl::admin::NodeExecution& NodeExecutionList::node_executions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_.Get(index); +} +inline ::flyteidl::admin::NodeExecution* NodeExecutionList::add_node_executions() { + // @@protoc_insertion_point(field_add:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >& +NodeExecutionList::node_executions() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_; +} + +// string token = 2; +inline void NodeExecutionList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionList.token) + return token_.GetNoArena(); +} +inline void NodeExecutionList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionList.token) +} +#if LANG_CXX11 +inline void NodeExecutionList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionList.token) +} +#endif +inline void NodeExecutionList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionList.token) +} +inline void NodeExecutionList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionList.token) +} +inline ::std::string* NodeExecutionList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionList.token) +} + +// ------------------------------------------------------------------- + +// NodeExecutionClosure + +// string output_uri = 1 [deprecated = true]; +inline bool NodeExecutionClosure::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void NodeExecutionClosure::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void NodeExecutionClosure::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& NodeExecutionClosure::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void NodeExecutionClosure::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) +} +#if LANG_CXX11 +inline void NodeExecutionClosure::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionClosure.output_uri) +} +#endif +inline void NodeExecutionClosure::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionClosure.output_uri) +} +inline void NodeExecutionClosure::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionClosure.output_uri) +} +inline ::std::string* NodeExecutionClosure::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionClosure::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void NodeExecutionClosure::set_allocated_output_uri(::std::string* output_uri) { + if (has_output_result()) { + clear_output_result(); + } + if (output_uri != nullptr) { + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.output_uri) +} + +// .flyteidl.core.ExecutionError error = 2; +inline bool NodeExecutionClosure::has_error() const { + return output_result_case() == kError; +} +inline void NodeExecutionClosure::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* NodeExecutionClosure::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ExecutionError& NodeExecutionClosure::error() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* NodeExecutionClosure::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.error) + return output_result_.error_; +} + +// .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; +inline bool NodeExecutionClosure::has_output_data() const { + return output_result_case() == kOutputData; +} +inline void NodeExecutionClosure::set_has_output_data() { + _oneof_case_[0] = kOutputData; +} +inline ::flyteidl::core::LiteralMap* NodeExecutionClosure::release_output_data() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.output_data) + if (has_output_data()) { + clear_has_output_result(); + ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; + output_result_.output_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& NodeExecutionClosure::output_data() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.output_data) + return has_output_data() + ? *output_result_.output_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* NodeExecutionClosure::mutable_output_data() { + if (!has_output_data()) { + clear_output_result(); + set_has_output_data(); + output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.output_data) + return output_result_.output_data_; +} + +// .flyteidl.core.NodeExecution.Phase phase = 3; +inline void NodeExecutionClosure::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::NodeExecution_Phase NodeExecutionClosure::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.phase) + return static_cast< ::flyteidl::core::NodeExecution_Phase >(phase_); +} +inline void NodeExecutionClosure::set_phase(::flyteidl::core::NodeExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.phase) +} + +// .google.protobuf.Timestamp started_at = 4; +inline bool NodeExecutionClosure::has_started_at() const { + return this != internal_default_instance() && started_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& NodeExecutionClosure::started_at() const { + const ::google::protobuf::Timestamp* p = started_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.started_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_started_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.started_at) + + ::google::protobuf::Timestamp* temp = started_at_; + started_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_started_at() { + + if (started_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + started_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.started_at) + return started_at_; +} +inline void NodeExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); + } + if (started_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(started_at)->GetArena(); + if (message_arena != submessage_arena) { + started_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, started_at, submessage_arena); + } + + } else { + + } + started_at_ = started_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.started_at) +} + +// .google.protobuf.Duration duration = 5; +inline bool NodeExecutionClosure::has_duration() const { + return this != internal_default_instance() && duration_ != nullptr; +} +inline const ::google::protobuf::Duration& NodeExecutionClosure::duration() const { + const ::google::protobuf::Duration* p = duration_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.duration) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* NodeExecutionClosure::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.duration) + + ::google::protobuf::Duration* temp = duration_; + duration_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* NodeExecutionClosure::mutable_duration() { + + if (duration_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + duration_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.duration) + return duration_; +} +inline void NodeExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); + } + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.duration) +} + +// .google.protobuf.Timestamp created_at = 6; +inline bool NodeExecutionClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& NodeExecutionClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.created_at) + return created_at_; +} +inline void NodeExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 7; +inline bool NodeExecutionClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& NodeExecutionClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.updated_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_updated_at() { + + if (updated_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + updated_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.updated_at) + return updated_at_; +} +inline void NodeExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.updated_at) +} + +// .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; +inline bool NodeExecutionClosure::has_workflow_node_metadata() const { + return target_metadata_case() == kWorkflowNodeMetadata; +} +inline void NodeExecutionClosure::set_has_workflow_node_metadata() { + _oneof_case_[1] = kWorkflowNodeMetadata; +} +inline void NodeExecutionClosure::clear_workflow_node_metadata() { + if (has_workflow_node_metadata()) { + delete target_metadata_.workflow_node_metadata_; + clear_has_target_metadata(); + } +} +inline ::flyteidl::admin::WorkflowNodeMetadata* NodeExecutionClosure::release_workflow_node_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) + if (has_workflow_node_metadata()) { + clear_has_target_metadata(); + ::flyteidl::admin::WorkflowNodeMetadata* temp = target_metadata_.workflow_node_metadata_; + target_metadata_.workflow_node_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::WorkflowNodeMetadata& NodeExecutionClosure::workflow_node_metadata() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) + return has_workflow_node_metadata() + ? *target_metadata_.workflow_node_metadata_ + : *reinterpret_cast< ::flyteidl::admin::WorkflowNodeMetadata*>(&::flyteidl::admin::_WorkflowNodeMetadata_default_instance_); +} +inline ::flyteidl::admin::WorkflowNodeMetadata* NodeExecutionClosure::mutable_workflow_node_metadata() { + if (!has_workflow_node_metadata()) { + clear_target_metadata(); + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowNodeMetadata >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) + return target_metadata_.workflow_node_metadata_; +} + +// .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; +inline bool NodeExecutionClosure::has_task_node_metadata() const { + return target_metadata_case() == kTaskNodeMetadata; +} +inline void NodeExecutionClosure::set_has_task_node_metadata() { + _oneof_case_[1] = kTaskNodeMetadata; +} +inline void NodeExecutionClosure::clear_task_node_metadata() { + if (has_task_node_metadata()) { + delete target_metadata_.task_node_metadata_; + clear_has_target_metadata(); + } +} +inline ::flyteidl::admin::TaskNodeMetadata* NodeExecutionClosure::release_task_node_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.task_node_metadata) + if (has_task_node_metadata()) { + clear_has_target_metadata(); + ::flyteidl::admin::TaskNodeMetadata* temp = target_metadata_.task_node_metadata_; + target_metadata_.task_node_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::TaskNodeMetadata& NodeExecutionClosure::task_node_metadata() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.task_node_metadata) + return has_task_node_metadata() + ? *target_metadata_.task_node_metadata_ + : *reinterpret_cast< ::flyteidl::admin::TaskNodeMetadata*>(&::flyteidl::admin::_TaskNodeMetadata_default_instance_); +} +inline ::flyteidl::admin::TaskNodeMetadata* NodeExecutionClosure::mutable_task_node_metadata() { + if (!has_task_node_metadata()) { + clear_target_metadata(); + set_has_task_node_metadata(); + target_metadata_.task_node_metadata_ = CreateMaybeMessage< ::flyteidl::admin::TaskNodeMetadata >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.task_node_metadata) + return target_metadata_.task_node_metadata_; +} + +// string deck_uri = 11; +inline void NodeExecutionClosure::clear_deck_uri() { + deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionClosure::deck_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.deck_uri) + return deck_uri_.GetNoArena(); +} +inline void NodeExecutionClosure::set_deck_uri(const ::std::string& value) { + + deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.deck_uri) +} +#if LANG_CXX11 +inline void NodeExecutionClosure::set_deck_uri(::std::string&& value) { + + deck_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionClosure.deck_uri) +} +#endif +inline void NodeExecutionClosure::set_deck_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionClosure.deck_uri) +} +inline void NodeExecutionClosure::set_deck_uri(const char* value, size_t size) { + + deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionClosure.deck_uri) +} +inline ::std::string* NodeExecutionClosure::mutable_deck_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.deck_uri) + return deck_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionClosure::release_deck_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.deck_uri) + + return deck_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionClosure::set_allocated_deck_uri(::std::string* deck_uri) { + if (deck_uri != nullptr) { + + } else { + + } + deck_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deck_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.deck_uri) +} + +// string dynamic_job_spec_uri = 12; +inline void NodeExecutionClosure::clear_dynamic_job_spec_uri() { + dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionClosure::dynamic_job_spec_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) + return dynamic_job_spec_uri_.GetNoArena(); +} +inline void NodeExecutionClosure::set_dynamic_job_spec_uri(const ::std::string& value) { + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) +} +#if LANG_CXX11 +inline void NodeExecutionClosure::set_dynamic_job_spec_uri(::std::string&& value) { + + dynamic_job_spec_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) +} +#endif +inline void NodeExecutionClosure::set_dynamic_job_spec_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) +} +inline void NodeExecutionClosure::set_dynamic_job_spec_uri(const char* value, size_t size) { + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) +} +inline ::std::string* NodeExecutionClosure::mutable_dynamic_job_spec_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) + return dynamic_job_spec_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionClosure::release_dynamic_job_spec_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) + + return dynamic_job_spec_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionClosure::set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri) { + if (dynamic_job_spec_uri != nullptr) { + + } else { + + } + dynamic_job_spec_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dynamic_job_spec_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) +} + +inline bool NodeExecutionClosure::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void NodeExecutionClosure::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline bool NodeExecutionClosure::has_target_metadata() const { + return target_metadata_case() != TARGET_METADATA_NOT_SET; +} +inline void NodeExecutionClosure::clear_has_target_metadata() { + _oneof_case_[1] = TARGET_METADATA_NOT_SET; +} +inline NodeExecutionClosure::OutputResultCase NodeExecutionClosure::output_result_case() const { + return NodeExecutionClosure::OutputResultCase(_oneof_case_[0]); +} +inline NodeExecutionClosure::TargetMetadataCase NodeExecutionClosure::target_metadata_case() const { + return NodeExecutionClosure::TargetMetadataCase(_oneof_case_[1]); +} +// ------------------------------------------------------------------- + +// WorkflowNodeMetadata + +// .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; +inline bool WorkflowNodeMetadata::has_executionid() const { + return this != internal_default_instance() && executionid_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowNodeMetadata::executionid() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = executionid_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowNodeMetadata.executionId) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::release_executionid() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowNodeMetadata.executionId) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = executionid_; + executionid_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::mutable_executionid() { + + if (executionid_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + executionid_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowNodeMetadata.executionId) + return executionid_; +} +inline void WorkflowNodeMetadata::set_allocated_executionid(::flyteidl::core::WorkflowExecutionIdentifier* executionid) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(executionid_); + } + if (executionid) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + executionid = ::google::protobuf::internal::GetOwnedMessage( + message_arena, executionid, submessage_arena); + } + + } else { + + } + executionid_ = executionid; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowNodeMetadata.executionId) +} + +// ------------------------------------------------------------------- + +// TaskNodeMetadata + +// .flyteidl.core.CatalogCacheStatus cache_status = 1; +inline void TaskNodeMetadata::clear_cache_status() { + cache_status_ = 0; +} +inline ::flyteidl::core::CatalogCacheStatus TaskNodeMetadata::cache_status() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskNodeMetadata.cache_status) + return static_cast< ::flyteidl::core::CatalogCacheStatus >(cache_status_); +} +inline void TaskNodeMetadata::set_cache_status(::flyteidl::core::CatalogCacheStatus value) { + + cache_status_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskNodeMetadata.cache_status) +} + +// .flyteidl.core.CatalogMetadata catalog_key = 2; +inline bool TaskNodeMetadata::has_catalog_key() const { + return this != internal_default_instance() && catalog_key_ != nullptr; +} +inline const ::flyteidl::core::CatalogMetadata& TaskNodeMetadata::catalog_key() const { + const ::flyteidl::core::CatalogMetadata* p = catalog_key_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskNodeMetadata.catalog_key) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CatalogMetadata_default_instance_); +} +inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::release_catalog_key() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskNodeMetadata.catalog_key) + + ::flyteidl::core::CatalogMetadata* temp = catalog_key_; + catalog_key_ = nullptr; + return temp; +} +inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::mutable_catalog_key() { + + if (catalog_key_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CatalogMetadata>(GetArenaNoVirtual()); + catalog_key_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskNodeMetadata.catalog_key) + return catalog_key_; +} +inline void TaskNodeMetadata::set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(catalog_key_); + } + if (catalog_key) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + catalog_key = ::google::protobuf::internal::GetOwnedMessage( + message_arena, catalog_key, submessage_arena); + } + + } else { + + } + catalog_key_ = catalog_key; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskNodeMetadata.catalog_key) +} + +// string checkpoint_uri = 4; +inline void TaskNodeMetadata::clear_checkpoint_uri() { + checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskNodeMetadata::checkpoint_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) + return checkpoint_uri_.GetNoArena(); +} +inline void TaskNodeMetadata::set_checkpoint_uri(const ::std::string& value) { + + checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) +} +#if LANG_CXX11 +inline void TaskNodeMetadata::set_checkpoint_uri(::std::string&& value) { + + checkpoint_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) +} +#endif +inline void TaskNodeMetadata::set_checkpoint_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) +} +inline void TaskNodeMetadata::set_checkpoint_uri(const char* value, size_t size) { + + checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) +} +inline ::std::string* TaskNodeMetadata::mutable_checkpoint_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) + return checkpoint_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskNodeMetadata::release_checkpoint_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) + + return checkpoint_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskNodeMetadata::set_allocated_checkpoint_uri(::std::string* checkpoint_uri) { + if (checkpoint_uri != nullptr) { + + } else { + + } + checkpoint_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), checkpoint_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) +} + +// ------------------------------------------------------------------- + +// DynamicWorkflowNodeMetadata + +// .flyteidl.core.Identifier id = 1; +inline bool DynamicWorkflowNodeMetadata::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& DynamicWorkflowNodeMetadata::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.DynamicWorkflowNodeMetadata.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DynamicWorkflowNodeMetadata.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DynamicWorkflowNodeMetadata.id) + return id_; +} +inline void DynamicWorkflowNodeMetadata::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DynamicWorkflowNodeMetadata.id) +} + +// .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; +inline bool DynamicWorkflowNodeMetadata::has_compiled_workflow() const { + return this != internal_default_instance() && compiled_workflow_ != nullptr; +} +inline const ::flyteidl::core::CompiledWorkflowClosure& DynamicWorkflowNodeMetadata::compiled_workflow() const { + const ::flyteidl::core::CompiledWorkflowClosure* p = compiled_workflow_; + // @@protoc_insertion_point(field_get:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledWorkflowClosure_default_instance_); +} +inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::release_compiled_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) + + ::flyteidl::core::CompiledWorkflowClosure* temp = compiled_workflow_; + compiled_workflow_ = nullptr; + return temp; +} +inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::mutable_compiled_workflow() { + + if (compiled_workflow_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(GetArenaNoVirtual()); + compiled_workflow_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) + return compiled_workflow_; +} +inline void DynamicWorkflowNodeMetadata::set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_workflow_); + } + if (compiled_workflow) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + compiled_workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, compiled_workflow, submessage_arena); + } + + } else { + + } + compiled_workflow_ = compiled_workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) +} + +// string dynamic_job_spec_uri = 3; +inline void DynamicWorkflowNodeMetadata::clear_dynamic_job_spec_uri() { + dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DynamicWorkflowNodeMetadata::dynamic_job_spec_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) + return dynamic_job_spec_uri_.GetNoArena(); +} +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const ::std::string& value) { + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +#if LANG_CXX11 +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(::std::string&& value) { + + dynamic_job_spec_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +#endif +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value, size_t size) { + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +inline ::std::string* DynamicWorkflowNodeMetadata::mutable_dynamic_job_spec_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) + return dynamic_job_spec_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DynamicWorkflowNodeMetadata::release_dynamic_job_spec_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) + + return dynamic_job_spec_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DynamicWorkflowNodeMetadata::set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri) { + if (dynamic_job_spec_uri != nullptr) { + + } else { + + } + dynamic_job_spec_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dynamic_job_spec_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} + +// ------------------------------------------------------------------- + +// NodeExecutionGetDataRequest + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecutionGetDataRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionGetDataRequest::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetDataRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataRequest.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetDataRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataRequest.id) + return id_; +} +inline void NodeExecutionGetDataRequest::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataRequest.id) +} + +// ------------------------------------------------------------------- + +// NodeExecutionGetDataResponse + +// .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; +inline bool NodeExecutionGetDataResponse::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::admin::UrlBlob& NodeExecutionGetDataResponse::inputs() const { + const ::flyteidl::admin::UrlBlob* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.inputs) + + ::flyteidl::admin::UrlBlob* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.inputs) + return inputs_; +} +inline void NodeExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.inputs) +} + +// .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; +inline bool NodeExecutionGetDataResponse::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; +} +inline const ::flyteidl::admin::UrlBlob& NodeExecutionGetDataResponse::outputs() const { + const ::flyteidl::admin::UrlBlob* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.outputs) + + ::flyteidl::admin::UrlBlob* temp = outputs_; + outputs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::mutable_outputs() { + + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); + outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.outputs) + return outputs_; +} +inline void NodeExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.outputs) +} + +// .flyteidl.core.LiteralMap full_inputs = 3; +inline bool NodeExecutionGetDataResponse::has_full_inputs() const { + return this != internal_default_instance() && full_inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& NodeExecutionGetDataResponse::full_inputs() const { + const ::flyteidl::core::LiteralMap* p = full_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::release_full_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) + + ::flyteidl::core::LiteralMap* temp = full_inputs_; + full_inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::mutable_full_inputs() { + + if (full_inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + full_inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) + return full_inputs_; +} +inline void NodeExecutionGetDataResponse::set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_inputs_); + } + if (full_inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + full_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, full_inputs, submessage_arena); + } + + } else { + + } + full_inputs_ = full_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) +} + +// .flyteidl.core.LiteralMap full_outputs = 4; +inline bool NodeExecutionGetDataResponse::has_full_outputs() const { + return this != internal_default_instance() && full_outputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& NodeExecutionGetDataResponse::full_outputs() const { + const ::flyteidl::core::LiteralMap* p = full_outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::release_full_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) + + ::flyteidl::core::LiteralMap* temp = full_outputs_; + full_outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::mutable_full_outputs() { + + if (full_outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + full_outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) + return full_outputs_; +} +inline void NodeExecutionGetDataResponse::set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_outputs_); + } + if (full_outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + full_outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, full_outputs, submessage_arena); + } + + } else { + + } + full_outputs_ = full_outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) +} + +// .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; +inline bool NodeExecutionGetDataResponse::has_dynamic_workflow() const { + return this != internal_default_instance() && dynamic_workflow_ != nullptr; +} +inline void NodeExecutionGetDataResponse::clear_dynamic_workflow() { + if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { + delete dynamic_workflow_; + } + dynamic_workflow_ = nullptr; +} +inline const ::flyteidl::admin::DynamicWorkflowNodeMetadata& NodeExecutionGetDataResponse::dynamic_workflow() const { + const ::flyteidl::admin::DynamicWorkflowNodeMetadata* p = dynamic_workflow_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_); +} +inline ::flyteidl::admin::DynamicWorkflowNodeMetadata* NodeExecutionGetDataResponse::release_dynamic_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) + + ::flyteidl::admin::DynamicWorkflowNodeMetadata* temp = dynamic_workflow_; + dynamic_workflow_ = nullptr; + return temp; +} +inline ::flyteidl::admin::DynamicWorkflowNodeMetadata* NodeExecutionGetDataResponse::mutable_dynamic_workflow() { + + if (dynamic_workflow_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::DynamicWorkflowNodeMetadata>(GetArenaNoVirtual()); + dynamic_workflow_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) + return dynamic_workflow_; +} +inline void NodeExecutionGetDataResponse::set_allocated_dynamic_workflow(::flyteidl::admin::DynamicWorkflowNodeMetadata* dynamic_workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dynamic_workflow_; + } + if (dynamic_workflow) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dynamic_workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dynamic_workflow, submessage_arena); + } + + } else { + + } + dynamic_workflow_ = dynamic_workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) +} + +// .flyteidl.admin.FlyteURLs flyte_urls = 17; +inline bool NodeExecutionGetDataResponse::has_flyte_urls() const { + return this != internal_default_instance() && flyte_urls_ != nullptr; +} +inline const ::flyteidl::admin::FlyteURLs& NodeExecutionGetDataResponse::flyte_urls() const { + const ::flyteidl::admin::FlyteURLs* p = flyte_urls_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_FlyteURLs_default_instance_); +} +inline ::flyteidl::admin::FlyteURLs* NodeExecutionGetDataResponse::release_flyte_urls() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) + + ::flyteidl::admin::FlyteURLs* temp = flyte_urls_; + flyte_urls_ = nullptr; + return temp; +} +inline ::flyteidl::admin::FlyteURLs* NodeExecutionGetDataResponse::mutable_flyte_urls() { + + if (flyte_urls_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::FlyteURLs>(GetArenaNoVirtual()); + flyte_urls_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) + return flyte_urls_; +} +inline void NodeExecutionGetDataResponse::set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(flyte_urls_); + } + if (flyte_urls) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + flyte_urls = ::google::protobuf::internal::GetOwnedMessage( + message_arena, flyte_urls, submessage_arena); + } + + } else { + + } + flyte_urls_ = flyte_urls; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnode_5fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc new file mode 100644 index 0000000000..ae50a37648 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/notification.proto + +#include "flyteidl/admin/notification.pb.h" +#include "flyteidl/admin/notification.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h new file mode 100644 index 0000000000..61ec99c537 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/notification.proto +#ifndef GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED + +#include "flyteidl/admin/notification.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc new file mode 100644 index 0000000000..1dca62cf01 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc @@ -0,0 +1,623 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +#include "flyteidl/admin/notification.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace admin { +class EmailMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _EmailMessage_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsEmailMessage_flyteidl_2fadmin_2fnotification_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_EmailMessage_default_instance_; + new (ptr) ::flyteidl::admin::EmailMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EmailMessage::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEmailMessage_flyteidl_2fadmin_2fnotification_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fnotification_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fnotification_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fnotification_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fnotification_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fnotification_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, recipients_email_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, sender_email_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, subject_line_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, body_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::EmailMessage)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_EmailMessage_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fnotification_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto, "flyteidl/admin/notification.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fnotification_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fnotification_2eproto, 1, file_level_enum_descriptors_flyteidl_2fadmin_2fnotification_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fnotification_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fnotification_2eproto[] = + "\n!flyteidl/admin/notification.proto\022\016fly" + "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB7Z5githu" + "b.com/flyteorg/flyteidl/gen/pb-go/flytei" + "dl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fnotification_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fnotification_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fnotification_2eproto, + "flyteidl/admin/notification.proto", &assign_descriptors_table_flyteidl_2fadmin_2fnotification_2eproto, 216, +}; + +void AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fnotification_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fnotification_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void EmailMessage::InitAsDefaultInstance() { +} +class EmailMessage::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EmailMessage::kRecipientsEmailFieldNumber; +const int EmailMessage::kSenderEmailFieldNumber; +const int EmailMessage::kSubjectLineFieldNumber; +const int EmailMessage::kBodyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EmailMessage::EmailMessage() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EmailMessage) +} +EmailMessage::EmailMessage(const EmailMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + recipients_email_(from.recipients_email_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + sender_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.sender_email().size() > 0) { + sender_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_email_); + } + subject_line_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.subject_line().size() > 0) { + subject_line_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_line_); + } + body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.body().size() > 0) { + body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EmailMessage) +} + +void EmailMessage::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto.base); + sender_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + subject_line_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +EmailMessage::~EmailMessage() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EmailMessage) + SharedDtor(); +} + +void EmailMessage::SharedDtor() { + sender_email_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + subject_line_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EmailMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EmailMessage& EmailMessage::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto.base); + return *internal_default_instance(); +} + + +void EmailMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EmailMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + sender_email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + subject_line_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EmailMessage::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.recipients_email"); + object = msg->add_recipients_email(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string sender_email = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.sender_email"); + object = msg->mutable_sender_email(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string subject_line = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.subject_line"); + object = msg->mutable_subject_line(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string body = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.body"); + object = msg->mutable_body(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool EmailMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EmailMessage) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.recipients_email")); + } else { + goto handle_unusual; + } + break; + } + + // string sender_email = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_sender_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->sender_email().data(), static_cast(this->sender_email().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.sender_email")); + } else { + goto handle_unusual; + } + break; + } + + // string subject_line = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_subject_line())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject_line().data(), static_cast(this->subject_line().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.subject_line")); + } else { + goto handle_unusual; + } + break; + } + + // string body = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_body())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->body().data(), static_cast(this->body().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.body")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.EmailMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EmailMessage) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void EmailMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EmailMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + // string sender_email = 2; + if (this->sender_email().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->sender_email().data(), static_cast(this->sender_email().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.sender_email"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->sender_email(), output); + } + + // string subject_line = 3; + if (this->subject_line().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject_line().data(), static_cast(this->subject_line().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.subject_line"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->subject_line(), output); + } + + // string body = 4; + if (this->body().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->body().data(), static_cast(this->body().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.body"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->body(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EmailMessage) +} + +::google::protobuf::uint8* EmailMessage::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EmailMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + // string sender_email = 2; + if (this->sender_email().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->sender_email().data(), static_cast(this->sender_email().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.sender_email"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->sender_email(), target); + } + + // string subject_line = 3; + if (this->subject_line().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject_line().data(), static_cast(this->subject_line().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.subject_line"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->subject_line(), target); + } + + // string body = 4; + if (this->body().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->body().data(), static_cast(this->body().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.body"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->body(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EmailMessage) + return target; +} + +size_t EmailMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EmailMessage) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + // string sender_email = 2; + if (this->sender_email().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->sender_email()); + } + + // string subject_line = 3; + if (this->subject_line().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->subject_line()); + } + + // string body = 4; + if (this->body().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->body()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EmailMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EmailMessage) + GOOGLE_DCHECK_NE(&from, this); + const EmailMessage* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EmailMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EmailMessage) + MergeFrom(*source); + } +} + +void EmailMessage::MergeFrom(const EmailMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EmailMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); + if (from.sender_email().size() > 0) { + + sender_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_email_); + } + if (from.subject_line().size() > 0) { + + subject_line_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_line_); + } + if (from.body().size() > 0) { + + body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_); + } +} + +void EmailMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EmailMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EmailMessage::CopyFrom(const EmailMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EmailMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EmailMessage::IsInitialized() const { + return true; +} + +void EmailMessage::Swap(EmailMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void EmailMessage::InternalSwap(EmailMessage* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); + sender_email_.Swap(&other->sender_email_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + subject_line_.Swap(&other->subject_line_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + body_.Swap(&other->body_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata EmailMessage::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnotification_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fnotification_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::EmailMessage* Arena::CreateMaybeMessage< ::flyteidl::admin::EmailMessage >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::EmailMessage >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h new file mode 100644 index 0000000000..f73d432fec --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h @@ -0,0 +1,490 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnotification_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnotification_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnotification_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fnotification_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto(); +namespace flyteidl { +namespace admin { +class EmailMessage; +class EmailMessageDefaultTypeInternal; +extern EmailMessageDefaultTypeInternal _EmailMessage_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::EmailMessage* Arena::CreateMaybeMessage<::flyteidl::admin::EmailMessage>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class EmailMessage final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EmailMessage) */ { + public: + EmailMessage(); + virtual ~EmailMessage(); + + EmailMessage(const EmailMessage& from); + + inline EmailMessage& operator=(const EmailMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EmailMessage(EmailMessage&& from) noexcept + : EmailMessage() { + *this = ::std::move(from); + } + + inline EmailMessage& operator=(EmailMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const EmailMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EmailMessage* internal_default_instance() { + return reinterpret_cast( + &_EmailMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(EmailMessage* other); + friend void swap(EmailMessage& a, EmailMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EmailMessage* New() const final { + return CreateMaybeMessage(nullptr); + } + + EmailMessage* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EmailMessage& from); + void MergeFrom(const EmailMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EmailMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); + + // string sender_email = 2; + void clear_sender_email(); + static const int kSenderEmailFieldNumber = 2; + const ::std::string& sender_email() const; + void set_sender_email(const ::std::string& value); + #if LANG_CXX11 + void set_sender_email(::std::string&& value); + #endif + void set_sender_email(const char* value); + void set_sender_email(const char* value, size_t size); + ::std::string* mutable_sender_email(); + ::std::string* release_sender_email(); + void set_allocated_sender_email(::std::string* sender_email); + + // string subject_line = 3; + void clear_subject_line(); + static const int kSubjectLineFieldNumber = 3; + const ::std::string& subject_line() const; + void set_subject_line(const ::std::string& value); + #if LANG_CXX11 + void set_subject_line(::std::string&& value); + #endif + void set_subject_line(const char* value); + void set_subject_line(const char* value, size_t size); + ::std::string* mutable_subject_line(); + ::std::string* release_subject_line(); + void set_allocated_subject_line(::std::string* subject_line); + + // string body = 4; + void clear_body(); + static const int kBodyFieldNumber = 4; + const ::std::string& body() const; + void set_body(const ::std::string& value); + #if LANG_CXX11 + void set_body(::std::string&& value); + #endif + void set_body(const char* value); + void set_body(const char* value, size_t size); + ::std::string* mutable_body(); + ::std::string* release_body(); + void set_allocated_body(::std::string* body); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; + ::google::protobuf::internal::ArenaStringPtr sender_email_; + ::google::protobuf::internal::ArenaStringPtr subject_line_; + ::google::protobuf::internal::ArenaStringPtr body_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fnotification_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EmailMessage + +// repeated string recipients_email = 1; +inline int EmailMessage::recipients_email_size() const { + return recipients_email_.size(); +} +inline void EmailMessage::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& EmailMessage::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* EmailMessage::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_.Mutable(index); +} +inline void EmailMessage::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void EmailMessage::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void EmailMessage::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.recipients_email) +} +inline void EmailMessage::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.recipients_email) +} +inline ::std::string* EmailMessage::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_.Add(); +} +inline void EmailMessage::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailMessage.recipients_email) +} +#if LANG_CXX11 +inline void EmailMessage::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailMessage.recipients_email) +} +#endif +inline void EmailMessage::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != nullptr); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.EmailMessage.recipients_email) +} +inline void EmailMessage::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.EmailMessage.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +EmailMessage::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +EmailMessage::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.EmailMessage.recipients_email) + return &recipients_email_; +} + +// string sender_email = 2; +inline void EmailMessage::clear_sender_email() { + sender_email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EmailMessage::sender_email() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.sender_email) + return sender_email_.GetNoArena(); +} +inline void EmailMessage::set_sender_email(const ::std::string& value) { + + sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.sender_email) +} +#if LANG_CXX11 +inline void EmailMessage::set_sender_email(::std::string&& value) { + + sender_email_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.sender_email) +} +#endif +inline void EmailMessage::set_sender_email(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.sender_email) +} +inline void EmailMessage::set_sender_email(const char* value, size_t size) { + + sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.sender_email) +} +inline ::std::string* EmailMessage::mutable_sender_email() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.sender_email) + return sender_email_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EmailMessage::release_sender_email() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.sender_email) + + return sender_email_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EmailMessage::set_allocated_sender_email(::std::string* sender_email) { + if (sender_email != nullptr) { + + } else { + + } + sender_email_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_email); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.sender_email) +} + +// string subject_line = 3; +inline void EmailMessage::clear_subject_line() { + subject_line_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EmailMessage::subject_line() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.subject_line) + return subject_line_.GetNoArena(); +} +inline void EmailMessage::set_subject_line(const ::std::string& value) { + + subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.subject_line) +} +#if LANG_CXX11 +inline void EmailMessage::set_subject_line(::std::string&& value) { + + subject_line_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.subject_line) +} +#endif +inline void EmailMessage::set_subject_line(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.subject_line) +} +inline void EmailMessage::set_subject_line(const char* value, size_t size) { + + subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.subject_line) +} +inline ::std::string* EmailMessage::mutable_subject_line() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.subject_line) + return subject_line_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EmailMessage::release_subject_line() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.subject_line) + + return subject_line_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EmailMessage::set_allocated_subject_line(::std::string* subject_line) { + if (subject_line != nullptr) { + + } else { + + } + subject_line_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), subject_line); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.subject_line) +} + +// string body = 4; +inline void EmailMessage::clear_body() { + body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EmailMessage::body() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.body) + return body_.GetNoArena(); +} +inline void EmailMessage::set_body(const ::std::string& value) { + + body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.body) +} +#if LANG_CXX11 +inline void EmailMessage::set_body(::std::string&& value) { + + body_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.body) +} +#endif +inline void EmailMessage::set_body(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.body) +} +inline void EmailMessage::set_body(const char* value, size_t size) { + + body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.body) +} +inline ::std::string* EmailMessage::mutable_body() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.body) + return body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EmailMessage::release_body() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.body) + + return body_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EmailMessage::set_allocated_body(::std::string* body) { + if (body != nullptr) { + + } else { + + } + body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.body) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnotification_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc new file mode 100644 index 0000000000..278f924864 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project.proto + +#include "flyteidl/admin/project.pb.h" +#include "flyteidl/admin/project.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h new file mode 100644 index 0000000000..68aafe8e67 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project.proto +#ifndef GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED + +#include "flyteidl/admin/project.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc new file mode 100644 index 0000000000..16932307c7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc @@ -0,0 +1,2889 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +#include "flyteidl/admin/project.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Project_flyteidl_2fadmin_2fproject_2eproto; +namespace flyteidl { +namespace admin { +class DomainDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Domain_default_instance_; +class ProjectDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Project_default_instance_; +class ProjectsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Projects_default_instance_; +class ProjectListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectListRequest_default_instance_; +class ProjectRegisterRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectRegisterRequest_default_instance_; +class ProjectRegisterResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectRegisterResponse_default_instance_; +class ProjectUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectUpdateResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsDomain_flyteidl_2fadmin_2fproject_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Domain_default_instance_; + new (ptr) ::flyteidl::admin::Domain(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Domain::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDomain_flyteidl_2fadmin_2fproject_2eproto}, {}}; + +static void InitDefaultsProject_flyteidl_2fadmin_2fproject_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Project_default_instance_; + new (ptr) ::flyteidl::admin::Project(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Project::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Project_flyteidl_2fadmin_2fproject_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsProject_flyteidl_2fadmin_2fproject_2eproto}, { + &scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base, + &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsProjects_flyteidl_2fadmin_2fproject_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Projects_default_instance_; + new (ptr) ::flyteidl::admin::Projects(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Projects::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjects_flyteidl_2fadmin_2fproject_2eproto}, { + &scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base,}}; + +static void InitDefaultsProjectListRequest_flyteidl_2fadmin_2fproject_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectListRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectListRequest_flyteidl_2fadmin_2fproject_2eproto}, { + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectRegisterRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectRegisterRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectRegisterRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto}, { + &scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base,}}; + +static void InitDefaultsProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectRegisterResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectRegisterResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectRegisterResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto}, {}}; + +static void InitDefaultsProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectUpdateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fproject_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[7]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fproject_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fproject_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fproject_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Domain, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Domain, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Domain, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, domains_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, description_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, labels_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, state_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Projects, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Projects, projects_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Projects, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, sort_by_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterRequest, project_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::Domain)}, + { 7, -1, sizeof(::flyteidl::admin::Project)}, + { 18, -1, sizeof(::flyteidl::admin::Projects)}, + { 25, -1, sizeof(::flyteidl::admin::ProjectListRequest)}, + { 34, -1, sizeof(::flyteidl::admin::ProjectRegisterRequest)}, + { 40, -1, sizeof(::flyteidl::admin::ProjectRegisterResponse)}, + { 45, -1, sizeof(::flyteidl::admin::ProjectUpdateResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_Domain_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Project_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Projects_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectRegisterRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectRegisterResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectUpdateResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fproject_2eproto, "flyteidl/admin/project.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fproject_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fproject_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fproject_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fproject_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fproject_2eproto[] = + "\n\034flyteidl/admin/project.proto\022\016flyteidl" + ".admin\032\033flyteidl/admin/common.proto\"\"\n\006D" + "omain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"\376\001\n\007Proj" + "ect\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\'\n\007domains" + "\030\003 \003(\0132\026.flyteidl.admin.Domain\022\023\n\013descri" + "ption\030\004 \001(\t\022&\n\006labels\030\005 \001(\0132\026.flyteidl.a" + "dmin.Labels\0223\n\005state\030\006 \001(\0162$.flyteidl.ad" + "min.Project.ProjectState\">\n\014ProjectState" + "\022\n\n\006ACTIVE\020\000\022\014\n\010ARCHIVED\020\001\022\024\n\020SYSTEM_GEN" + "ERATED\020\002\"D\n\010Projects\022)\n\010projects\030\001 \003(\0132\027" + ".flyteidl.admin.Project\022\r\n\005token\030\002 \001(\t\"j" + "\n\022ProjectListRequest\022\r\n\005limit\030\001 \001(\r\022\r\n\005t" + "oken\030\002 \001(\t\022\017\n\007filters\030\003 \001(\t\022%\n\007sort_by\030\004" + " \001(\0132\024.flyteidl.admin.Sort\"B\n\026ProjectReg" + "isterRequest\022(\n\007project\030\001 \001(\0132\027.flyteidl" + ".admin.Project\"\031\n\027ProjectRegisterRespons" + "e\"\027\n\025ProjectUpdateResponseB7Z5github.com" + "/flyteorg/flyteidl/gen/pb-go/flyteidl/ad" + "minb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fproject_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fproject_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fproject_2eproto, + "flyteidl/admin/project.proto", &assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto, 731, +}; + +void AddDescriptors_flyteidl_2fadmin_2fproject_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fproject_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fproject_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fproject_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* Project_ProjectState_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fproject_2eproto[0]; +} +bool Project_ProjectState_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Project_ProjectState Project::ACTIVE; +const Project_ProjectState Project::ARCHIVED; +const Project_ProjectState Project::SYSTEM_GENERATED; +const Project_ProjectState Project::ProjectState_MIN; +const Project_ProjectState Project::ProjectState_MAX; +const int Project::ProjectState_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void Domain::InitAsDefaultInstance() { +} +class Domain::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Domain::kIdFieldNumber; +const int Domain::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Domain::Domain() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Domain) +} +Domain::Domain(const Domain& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Domain) +} + +void Domain::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Domain::~Domain() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Domain) + SharedDtor(); +} + +void Domain::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Domain::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Domain& Domain::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base); + return *internal_default_instance(); +} + + +void Domain::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Domain) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Domain::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Domain.id"); + object = msg->mutable_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Domain.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Domain::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Domain) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Domain.id")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Domain.name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Domain) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Domain) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Domain::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Domain) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Domain) +} + +::google::protobuf::uint8* Domain::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Domain) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Domain) + return target; +} + +size_t Domain::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Domain) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Domain::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Domain) + GOOGLE_DCHECK_NE(&from, this); + const Domain* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Domain) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Domain) + MergeFrom(*source); + } +} + +void Domain::MergeFrom(const Domain& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Domain) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void Domain::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Domain) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Domain::CopyFrom(const Domain& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Domain) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Domain::IsInitialized() const { + return true; +} + +void Domain::Swap(Domain* other) { + if (other == this) return; + InternalSwap(other); +} +void Domain::InternalSwap(Domain* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Domain::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Project::InitAsDefaultInstance() { + ::flyteidl::admin::_Project_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( + ::flyteidl::admin::Labels::internal_default_instance()); +} +class Project::HasBitSetters { + public: + static const ::flyteidl::admin::Labels& labels(const Project* msg); +}; + +const ::flyteidl::admin::Labels& +Project::HasBitSetters::labels(const Project* msg) { + return *msg->labels_; +} +void Project::clear_labels() { + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Project::kIdFieldNumber; +const int Project::kNameFieldNumber; +const int Project::kDomainsFieldNumber; +const int Project::kDescriptionFieldNumber; +const int Project::kLabelsFieldNumber; +const int Project::kStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Project::Project() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Project) +} +Project::Project(const Project& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + domains_(from.domains_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.description().size() > 0) { + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (from.has_labels()) { + labels_ = new ::flyteidl::admin::Labels(*from.labels_); + } else { + labels_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Project) +} + +void Project::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&labels_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&labels_)) + sizeof(state_)); +} + +Project::~Project() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Project) + SharedDtor(); +} + +void Project::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete labels_; +} + +void Project::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Project& Project::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base); + return *internal_default_instance(); +} + + +void Project::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Project) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + domains_.Clear(); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { + delete labels_; + } + labels_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Project::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Project.id"); + object = msg->mutable_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Project.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyteidl.admin.Domain domains = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Domain::_InternalParse; + object = msg->add_domains(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // string description = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Project.description"); + object = msg->mutable_description(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Labels labels = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Labels::_InternalParse; + object = msg->mutable_labels(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.Project.ProjectState state = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::admin::Project_ProjectState>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Project::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Project) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Project.id")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Project.name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.admin.Domain domains = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_domains())); + } else { + goto handle_unusual; + } + break; + } + + // string description = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Project.description")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Labels labels = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_labels())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Project.ProjectState state = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::Project_ProjectState >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Project) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Project) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Project::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Project) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // repeated .flyteidl.admin.Domain domains = 3; + for (unsigned int i = 0, + n = static_cast(this->domains_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->domains(static_cast(i)), + output); + } + + // string description = 4; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->description(), output); + } + + // .flyteidl.admin.Labels labels = 5; + if (this->has_labels()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::labels(this), output); + } + + // .flyteidl.admin.Project.ProjectState state = 6; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->state(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Project) +} + +::google::protobuf::uint8* Project::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Project) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // repeated .flyteidl.admin.Domain domains = 3; + for (unsigned int i = 0, + n = static_cast(this->domains_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->domains(static_cast(i)), target); + } + + // string description = 4; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->description(), target); + } + + // .flyteidl.admin.Labels labels = 5; + if (this->has_labels()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::labels(this), target); + } + + // .flyteidl.admin.Project.ProjectState state = 6; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->state(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Project) + return target; +} + +size_t Project::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Project) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Domain domains = 3; + { + unsigned int count = static_cast(this->domains_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->domains(static_cast(i))); + } + } + + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string description = 4; + if (this->description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->description()); + } + + // .flyteidl.admin.Labels labels = 5; + if (this->has_labels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *labels_); + } + + // .flyteidl.admin.Project.ProjectState state = 6; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Project::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Project) + GOOGLE_DCHECK_NE(&from, this); + const Project* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Project) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Project) + MergeFrom(*source); + } +} + +void Project::MergeFrom(const Project& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Project) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + domains_.MergeFrom(from.domains_); + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.description().size() > 0) { + + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (from.has_labels()) { + mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void Project::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Project) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Project::CopyFrom(const Project& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Project) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Project::IsInitialized() const { + return true; +} + +void Project::Swap(Project* other) { + if (other == this) return; + InternalSwap(other); +} +void Project::InternalSwap(Project* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&domains_)->InternalSwap(CastToBase(&other->domains_)); + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(labels_, other->labels_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata Project::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Projects::InitAsDefaultInstance() { +} +class Projects::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Projects::kProjectsFieldNumber; +const int Projects::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Projects::Projects() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Projects) +} +Projects::Projects(const Projects& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + projects_(from.projects_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Projects) +} + +void Projects::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Projects::~Projects() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Projects) + SharedDtor(); +} + +void Projects::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Projects::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Projects& Projects::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto.base); + return *internal_default_instance(); +} + + +void Projects::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Projects) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + projects_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Projects::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.Project projects = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Project::_InternalParse; + object = msg->add_projects(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Projects.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Projects::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Projects) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.Project projects = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_projects())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Projects.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Projects) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Projects) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Projects::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Projects) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Project projects = 1; + for (unsigned int i = 0, + n = static_cast(this->projects_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->projects(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Projects.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Projects) +} + +::google::protobuf::uint8* Projects::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Projects) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Project projects = 1; + for (unsigned int i = 0, + n = static_cast(this->projects_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->projects(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Projects.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Projects) + return target; +} + +size_t Projects::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Projects) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Project projects = 1; + { + unsigned int count = static_cast(this->projects_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->projects(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Projects::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Projects) + GOOGLE_DCHECK_NE(&from, this); + const Projects* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Projects) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Projects) + MergeFrom(*source); + } +} + +void Projects::MergeFrom(const Projects& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Projects) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + projects_.MergeFrom(from.projects_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void Projects::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Projects) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Projects::CopyFrom(const Projects& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Projects) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Projects::IsInitialized() const { + return true; +} + +void Projects::Swap(Projects* other) { + if (other == this) return; + InternalSwap(other); +} +void Projects::InternalSwap(Projects* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&projects_)->InternalSwap(CastToBase(&other->projects_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Projects::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class ProjectListRequest::HasBitSetters { + public: + static const ::flyteidl::admin::Sort& sort_by(const ProjectListRequest* msg); +}; + +const ::flyteidl::admin::Sort& +ProjectListRequest::HasBitSetters::sort_by(const ProjectListRequest* msg) { + return *msg->sort_by_; +} +void ProjectListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectListRequest::kLimitFieldNumber; +const int ProjectListRequest::kTokenFieldNumber; +const int ProjectListRequest::kFiltersFieldNumber; +const int ProjectListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectListRequest::ProjectListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectListRequest) +} +ProjectListRequest::ProjectListRequest(const ProjectListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectListRequest) +} + +void ProjectListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&sort_by_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&sort_by_)) + sizeof(limit_)); +} + +ProjectListRequest::~ProjectListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectListRequest) + SharedDtor(); +} + +void ProjectListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete sort_by_; +} + +void ProjectListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectListRequest& ProjectListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // uint32 limit = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filters = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // uint32 limit = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 limit = 1; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limit(), output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + // string filters = 3; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 4; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::sort_by(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectListRequest) +} + +::google::protobuf::uint8* ProjectListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 limit = 1; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limit(), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + // string filters = 3; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 4; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::sort_by(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectListRequest) + return target; +} + +size_t ProjectListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 3; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.admin.Sort sort_by = 4; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 1; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectListRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectListRequest) + MergeFrom(*source); + } +} + +void ProjectListRequest::MergeFrom(const ProjectListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void ProjectListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectListRequest::CopyFrom(const ProjectListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectListRequest::IsInitialized() const { + return true; +} + +void ProjectListRequest::Swap(ProjectListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectListRequest::InternalSwap(ProjectListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata ProjectListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectRegisterRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectRegisterRequest_default_instance_._instance.get_mutable()->project_ = const_cast< ::flyteidl::admin::Project*>( + ::flyteidl::admin::Project::internal_default_instance()); +} +class ProjectRegisterRequest::HasBitSetters { + public: + static const ::flyteidl::admin::Project& project(const ProjectRegisterRequest* msg); +}; + +const ::flyteidl::admin::Project& +ProjectRegisterRequest::HasBitSetters::project(const ProjectRegisterRequest* msg) { + return *msg->project_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectRegisterRequest::kProjectFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectRegisterRequest::ProjectRegisterRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectRegisterRequest) +} +ProjectRegisterRequest::ProjectRegisterRequest(const ProjectRegisterRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_project()) { + project_ = new ::flyteidl::admin::Project(*from.project_); + } else { + project_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectRegisterRequest) +} + +void ProjectRegisterRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto.base); + project_ = nullptr; +} + +ProjectRegisterRequest::~ProjectRegisterRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectRegisterRequest) + SharedDtor(); +} + +void ProjectRegisterRequest::SharedDtor() { + if (this != internal_default_instance()) delete project_; +} + +void ProjectRegisterRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectRegisterRequest& ProjectRegisterRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectRegisterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && project_ != nullptr) { + delete project_; + } + project_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectRegisterRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.Project project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Project::_InternalParse; + object = msg->mutable_project(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectRegisterRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectRegisterRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.Project project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_project())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectRegisterRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectRegisterRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectRegisterRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Project project = 1; + if (this->has_project()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::project(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectRegisterRequest) +} + +::google::protobuf::uint8* ProjectRegisterRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Project project = 1; + if (this->has_project()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::project(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectRegisterRequest) + return target; +} + +size_t ProjectRegisterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectRegisterRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.Project project = 1; + if (this->has_project()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *project_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectRegisterRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectRegisterRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectRegisterRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectRegisterRequest) + MergeFrom(*source); + } +} + +void ProjectRegisterRequest::MergeFrom(const ProjectRegisterRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectRegisterRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_project()) { + mutable_project()->::flyteidl::admin::Project::MergeFrom(from.project()); + } +} + +void ProjectRegisterRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectRegisterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectRegisterRequest::CopyFrom(const ProjectRegisterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectRegisterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectRegisterRequest::IsInitialized() const { + return true; +} + +void ProjectRegisterRequest::Swap(ProjectRegisterRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectRegisterRequest::InternalSwap(ProjectRegisterRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(project_, other->project_); +} + +::google::protobuf::Metadata ProjectRegisterRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectRegisterResponse::InitAsDefaultInstance() { +} +class ProjectRegisterResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectRegisterResponse::ProjectRegisterResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectRegisterResponse) +} +ProjectRegisterResponse::ProjectRegisterResponse(const ProjectRegisterResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectRegisterResponse) +} + +void ProjectRegisterResponse::SharedCtor() { +} + +ProjectRegisterResponse::~ProjectRegisterResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectRegisterResponse) + SharedDtor(); +} + +void ProjectRegisterResponse::SharedDtor() { +} + +void ProjectRegisterResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectRegisterResponse& ProjectRegisterResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectRegisterResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectRegisterResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectRegisterResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectRegisterResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectRegisterResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectRegisterResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectRegisterResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectRegisterResponse) +} + +::google::protobuf::uint8* ProjectRegisterResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectRegisterResponse) + return target; +} + +size_t ProjectRegisterResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectRegisterResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectRegisterResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectRegisterResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectRegisterResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectRegisterResponse) + MergeFrom(*source); + } +} + +void ProjectRegisterResponse::MergeFrom(const ProjectRegisterResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectRegisterResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectRegisterResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectRegisterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectRegisterResponse::CopyFrom(const ProjectRegisterResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectRegisterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectRegisterResponse::IsInitialized() const { + return true; +} + +void ProjectRegisterResponse::Swap(ProjectRegisterResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectRegisterResponse::InternalSwap(ProjectRegisterResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ProjectRegisterResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectUpdateResponse::InitAsDefaultInstance() { +} +class ProjectUpdateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectUpdateResponse::ProjectUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectUpdateResponse) +} +ProjectUpdateResponse::ProjectUpdateResponse(const ProjectUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectUpdateResponse) +} + +void ProjectUpdateResponse::SharedCtor() { +} + +ProjectUpdateResponse::~ProjectUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectUpdateResponse) + SharedDtor(); +} + +void ProjectUpdateResponse::SharedDtor() { +} + +void ProjectUpdateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectUpdateResponse& ProjectUpdateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectUpdateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectUpdateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectUpdateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectUpdateResponse) +} + +::google::protobuf::uint8* ProjectUpdateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectUpdateResponse) + return target; +} + +size_t ProjectUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectUpdateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectUpdateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectUpdateResponse) + MergeFrom(*source); + } +} + +void ProjectUpdateResponse::MergeFrom(const ProjectUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectUpdateResponse::CopyFrom(const ProjectUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectUpdateResponse::IsInitialized() const { + return true; +} + +void ProjectUpdateResponse::Swap(ProjectUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectUpdateResponse::InternalSwap(ProjectUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ProjectUpdateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Domain* Arena::CreateMaybeMessage< ::flyteidl::admin::Domain >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Domain >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Project* Arena::CreateMaybeMessage< ::flyteidl::admin::Project >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Project >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Projects* Arena::CreateMaybeMessage< ::flyteidl::admin::Projects >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Projects >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectRegisterRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectRegisterRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectRegisterRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectRegisterResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectRegisterResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectRegisterResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectUpdateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectUpdateResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h new file mode 100644 index 0000000000..b1fa7e9e3b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h @@ -0,0 +1,1791 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/admin/common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fproject_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fproject_2eproto(); +namespace flyteidl { +namespace admin { +class Domain; +class DomainDefaultTypeInternal; +extern DomainDefaultTypeInternal _Domain_default_instance_; +class Project; +class ProjectDefaultTypeInternal; +extern ProjectDefaultTypeInternal _Project_default_instance_; +class ProjectListRequest; +class ProjectListRequestDefaultTypeInternal; +extern ProjectListRequestDefaultTypeInternal _ProjectListRequest_default_instance_; +class ProjectRegisterRequest; +class ProjectRegisterRequestDefaultTypeInternal; +extern ProjectRegisterRequestDefaultTypeInternal _ProjectRegisterRequest_default_instance_; +class ProjectRegisterResponse; +class ProjectRegisterResponseDefaultTypeInternal; +extern ProjectRegisterResponseDefaultTypeInternal _ProjectRegisterResponse_default_instance_; +class ProjectUpdateResponse; +class ProjectUpdateResponseDefaultTypeInternal; +extern ProjectUpdateResponseDefaultTypeInternal _ProjectUpdateResponse_default_instance_; +class Projects; +class ProjectsDefaultTypeInternal; +extern ProjectsDefaultTypeInternal _Projects_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::Domain* Arena::CreateMaybeMessage<::flyteidl::admin::Domain>(Arena*); +template<> ::flyteidl::admin::Project* Arena::CreateMaybeMessage<::flyteidl::admin::Project>(Arena*); +template<> ::flyteidl::admin::ProjectListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectListRequest>(Arena*); +template<> ::flyteidl::admin::ProjectRegisterRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectRegisterRequest>(Arena*); +template<> ::flyteidl::admin::ProjectRegisterResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectRegisterResponse>(Arena*); +template<> ::flyteidl::admin::ProjectUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectUpdateResponse>(Arena*); +template<> ::flyteidl::admin::Projects* Arena::CreateMaybeMessage<::flyteidl::admin::Projects>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum Project_ProjectState { + Project_ProjectState_ACTIVE = 0, + Project_ProjectState_ARCHIVED = 1, + Project_ProjectState_SYSTEM_GENERATED = 2, + Project_ProjectState_Project_ProjectState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + Project_ProjectState_Project_ProjectState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool Project_ProjectState_IsValid(int value); +const Project_ProjectState Project_ProjectState_ProjectState_MIN = Project_ProjectState_ACTIVE; +const Project_ProjectState Project_ProjectState_ProjectState_MAX = Project_ProjectState_SYSTEM_GENERATED; +const int Project_ProjectState_ProjectState_ARRAYSIZE = Project_ProjectState_ProjectState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Project_ProjectState_descriptor(); +inline const ::std::string& Project_ProjectState_Name(Project_ProjectState value) { + return ::google::protobuf::internal::NameOfEnum( + Project_ProjectState_descriptor(), value); +} +inline bool Project_ProjectState_Parse( + const ::std::string& name, Project_ProjectState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Project_ProjectState_descriptor(), name, value); +} +// =================================================================== + +class Domain final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Domain) */ { + public: + Domain(); + virtual ~Domain(); + + Domain(const Domain& from); + + inline Domain& operator=(const Domain& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Domain(Domain&& from) noexcept + : Domain() { + *this = ::std::move(from); + } + + inline Domain& operator=(Domain&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Domain& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Domain* internal_default_instance() { + return reinterpret_cast( + &_Domain_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Domain* other); + friend void swap(Domain& a, Domain& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Domain* New() const final { + return CreateMaybeMessage(nullptr); + } + + Domain* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Domain& from); + void MergeFrom(const Domain& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Domain* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; +}; +// ------------------------------------------------------------------- + +class Project final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Project) */ { + public: + Project(); + virtual ~Project(); + + Project(const Project& from); + + inline Project& operator=(const Project& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Project(Project&& from) noexcept + : Project() { + *this = ::std::move(from); + } + + inline Project& operator=(Project&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Project& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Project* internal_default_instance() { + return reinterpret_cast( + &_Project_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Project* other); + friend void swap(Project& a, Project& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Project* New() const final { + return CreateMaybeMessage(nullptr); + } + + Project* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Project& from); + void MergeFrom(const Project& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Project* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Project_ProjectState ProjectState; + static const ProjectState ACTIVE = + Project_ProjectState_ACTIVE; + static const ProjectState ARCHIVED = + Project_ProjectState_ARCHIVED; + static const ProjectState SYSTEM_GENERATED = + Project_ProjectState_SYSTEM_GENERATED; + static inline bool ProjectState_IsValid(int value) { + return Project_ProjectState_IsValid(value); + } + static const ProjectState ProjectState_MIN = + Project_ProjectState_ProjectState_MIN; + static const ProjectState ProjectState_MAX = + Project_ProjectState_ProjectState_MAX; + static const int ProjectState_ARRAYSIZE = + Project_ProjectState_ProjectState_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ProjectState_descriptor() { + return Project_ProjectState_descriptor(); + } + static inline const ::std::string& ProjectState_Name(ProjectState value) { + return Project_ProjectState_Name(value); + } + static inline bool ProjectState_Parse(const ::std::string& name, + ProjectState* value) { + return Project_ProjectState_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Domain domains = 3; + int domains_size() const; + void clear_domains(); + static const int kDomainsFieldNumber = 3; + ::flyteidl::admin::Domain* mutable_domains(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >* + mutable_domains(); + const ::flyteidl::admin::Domain& domains(int index) const; + ::flyteidl::admin::Domain* add_domains(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >& + domains() const; + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string description = 4; + void clear_description(); + static const int kDescriptionFieldNumber = 4; + const ::std::string& description() const; + void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif + void set_description(const char* value); + void set_description(const char* value, size_t size); + ::std::string* mutable_description(); + ::std::string* release_description(); + void set_allocated_description(::std::string* description); + + // .flyteidl.admin.Labels labels = 5; + bool has_labels() const; + void clear_labels(); + static const int kLabelsFieldNumber = 5; + const ::flyteidl::admin::Labels& labels() const; + ::flyteidl::admin::Labels* release_labels(); + ::flyteidl::admin::Labels* mutable_labels(); + void set_allocated_labels(::flyteidl::admin::Labels* labels); + + // .flyteidl.admin.Project.ProjectState state = 6; + void clear_state(); + static const int kStateFieldNumber = 6; + ::flyteidl::admin::Project_ProjectState state() const; + void set_state(::flyteidl::admin::Project_ProjectState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain > domains_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::flyteidl::admin::Labels* labels_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; +}; +// ------------------------------------------------------------------- + +class Projects final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Projects) */ { + public: + Projects(); + virtual ~Projects(); + + Projects(const Projects& from); + + inline Projects& operator=(const Projects& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Projects(Projects&& from) noexcept + : Projects() { + *this = ::std::move(from); + } + + inline Projects& operator=(Projects&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Projects& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Projects* internal_default_instance() { + return reinterpret_cast( + &_Projects_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(Projects* other); + friend void swap(Projects& a, Projects& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Projects* New() const final { + return CreateMaybeMessage(nullptr); + } + + Projects* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Projects& from); + void MergeFrom(const Projects& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Projects* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Project projects = 1; + int projects_size() const; + void clear_projects(); + static const int kProjectsFieldNumber = 1; + ::flyteidl::admin::Project* mutable_projects(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >* + mutable_projects(); + const ::flyteidl::admin::Project& projects(int index) const; + ::flyteidl::admin::Project* add_projects(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >& + projects() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project > projects_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectListRequest) */ { + public: + ProjectListRequest(); + virtual ~ProjectListRequest(); + + ProjectListRequest(const ProjectListRequest& from); + + inline ProjectListRequest& operator=(const ProjectListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectListRequest(ProjectListRequest&& from) noexcept + : ProjectListRequest() { + *this = ::std::move(from); + } + + inline ProjectListRequest& operator=(ProjectListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectListRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ProjectListRequest* other); + friend void swap(ProjectListRequest& a, ProjectListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectListRequest& from); + void MergeFrom(const ProjectListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 3; + void clear_filters(); + static const int kFiltersFieldNumber = 3; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.admin.Sort sort_by = 4; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 4; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 1; + void clear_limit(); + static const int kLimitFieldNumber = 1; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectRegisterRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectRegisterRequest) */ { + public: + ProjectRegisterRequest(); + virtual ~ProjectRegisterRequest(); + + ProjectRegisterRequest(const ProjectRegisterRequest& from); + + inline ProjectRegisterRequest& operator=(const ProjectRegisterRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectRegisterRequest(ProjectRegisterRequest&& from) noexcept + : ProjectRegisterRequest() { + *this = ::std::move(from); + } + + inline ProjectRegisterRequest& operator=(ProjectRegisterRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectRegisterRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectRegisterRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectRegisterRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(ProjectRegisterRequest* other); + friend void swap(ProjectRegisterRequest& a, ProjectRegisterRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectRegisterRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectRegisterRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectRegisterRequest& from); + void MergeFrom(const ProjectRegisterRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectRegisterRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.Project project = 1; + bool has_project() const; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::flyteidl::admin::Project& project() const; + ::flyteidl::admin::Project* release_project(); + ::flyteidl::admin::Project* mutable_project(); + void set_allocated_project(::flyteidl::admin::Project* project); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::Project* project_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectRegisterResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectRegisterResponse) */ { + public: + ProjectRegisterResponse(); + virtual ~ProjectRegisterResponse(); + + ProjectRegisterResponse(const ProjectRegisterResponse& from); + + inline ProjectRegisterResponse& operator=(const ProjectRegisterResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectRegisterResponse(ProjectRegisterResponse&& from) noexcept + : ProjectRegisterResponse() { + *this = ::std::move(from); + } + + inline ProjectRegisterResponse& operator=(ProjectRegisterResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectRegisterResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectRegisterResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectRegisterResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ProjectRegisterResponse* other); + friend void swap(ProjectRegisterResponse& a, ProjectRegisterResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectRegisterResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectRegisterResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectRegisterResponse& from); + void MergeFrom(const ProjectRegisterResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectRegisterResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectUpdateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectUpdateResponse) */ { + public: + ProjectUpdateResponse(); + virtual ~ProjectUpdateResponse(); + + ProjectUpdateResponse(const ProjectUpdateResponse& from); + + inline ProjectUpdateResponse& operator=(const ProjectUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectUpdateResponse(ProjectUpdateResponse&& from) noexcept + : ProjectUpdateResponse() { + *this = ::std::move(from); + } + + inline ProjectUpdateResponse& operator=(ProjectUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectUpdateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ProjectUpdateResponse* other); + friend void swap(ProjectUpdateResponse& a, ProjectUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectUpdateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectUpdateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectUpdateResponse& from); + void MergeFrom(const ProjectUpdateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectUpdateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Domain + +// string id = 1; +inline void Domain::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Domain::id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Domain.id) + return id_.GetNoArena(); +} +inline void Domain::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Domain.id) +} +#if LANG_CXX11 +inline void Domain::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Domain.id) +} +#endif +inline void Domain::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Domain.id) +} +inline void Domain::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Domain.id) +} +inline ::std::string* Domain::mutable_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Domain.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Domain::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Domain.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Domain::set_allocated_id(::std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Domain.id) +} + +// string name = 2; +inline void Domain::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Domain::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Domain.name) + return name_.GetNoArena(); +} +inline void Domain::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Domain.name) +} +#if LANG_CXX11 +inline void Domain::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Domain.name) +} +#endif +inline void Domain::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Domain.name) +} +inline void Domain::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Domain.name) +} +inline ::std::string* Domain::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Domain.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Domain::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Domain.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Domain::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Domain.name) +} + +// ------------------------------------------------------------------- + +// Project + +// string id = 1; +inline void Project::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Project::id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.id) + return id_.GetNoArena(); +} +inline void Project::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Project.id) +} +#if LANG_CXX11 +inline void Project::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.id) +} +#endif +inline void Project::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.id) +} +inline void Project::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.id) +} +inline ::std::string* Project::mutable_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Project::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Project.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Project::set_allocated_id(::std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.id) +} + +// string name = 2; +inline void Project::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Project::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.name) + return name_.GetNoArena(); +} +inline void Project::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Project.name) +} +#if LANG_CXX11 +inline void Project::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.name) +} +#endif +inline void Project::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.name) +} +inline void Project::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.name) +} +inline ::std::string* Project::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Project::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Project.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Project::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.name) +} + +// repeated .flyteidl.admin.Domain domains = 3; +inline int Project::domains_size() const { + return domains_.size(); +} +inline void Project::clear_domains() { + domains_.Clear(); +} +inline ::flyteidl::admin::Domain* Project::mutable_domains(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.domains) + return domains_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >* +Project::mutable_domains() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Project.domains) + return &domains_; +} +inline const ::flyteidl::admin::Domain& Project::domains(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.domains) + return domains_.Get(index); +} +inline ::flyteidl::admin::Domain* Project::add_domains() { + // @@protoc_insertion_point(field_add:flyteidl.admin.Project.domains) + return domains_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >& +Project::domains() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Project.domains) + return domains_; +} + +// string description = 4; +inline void Project::clear_description() { + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Project::description() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.description) + return description_.GetNoArena(); +} +inline void Project::set_description(const ::std::string& value) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Project.description) +} +#if LANG_CXX11 +inline void Project::set_description(::std::string&& value) { + + description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.description) +} +#endif +inline void Project::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.description) +} +inline void Project::set_description(const char* value, size_t size) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.description) +} +inline ::std::string* Project::mutable_description() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.description) + return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Project::release_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Project.description) + + return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Project::set_allocated_description(::std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.description) +} + +// .flyteidl.admin.Labels labels = 5; +inline bool Project::has_labels() const { + return this != internal_default_instance() && labels_ != nullptr; +} +inline const ::flyteidl::admin::Labels& Project::labels() const { + const ::flyteidl::admin::Labels* p = labels_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.labels) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Labels_default_instance_); +} +inline ::flyteidl::admin::Labels* Project::release_labels() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Project.labels) + + ::flyteidl::admin::Labels* temp = labels_; + labels_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Labels* Project::mutable_labels() { + + if (labels_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); + labels_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.labels) + return labels_; +} +inline void Project::set_allocated_labels(::flyteidl::admin::Labels* labels) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); + } + if (labels) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + labels = ::google::protobuf::internal::GetOwnedMessage( + message_arena, labels, submessage_arena); + } + + } else { + + } + labels_ = labels; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.labels) +} + +// .flyteidl.admin.Project.ProjectState state = 6; +inline void Project::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::Project_ProjectState Project::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.state) + return static_cast< ::flyteidl::admin::Project_ProjectState >(state_); +} +inline void Project::set_state(::flyteidl::admin::Project_ProjectState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.Project.state) +} + +// ------------------------------------------------------------------- + +// Projects + +// repeated .flyteidl.admin.Project projects = 1; +inline int Projects::projects_size() const { + return projects_.size(); +} +inline void Projects::clear_projects() { + projects_.Clear(); +} +inline ::flyteidl::admin::Project* Projects::mutable_projects(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Projects.projects) + return projects_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >* +Projects::mutable_projects() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Projects.projects) + return &projects_; +} +inline const ::flyteidl::admin::Project& Projects::projects(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Projects.projects) + return projects_.Get(index); +} +inline ::flyteidl::admin::Project* Projects::add_projects() { + // @@protoc_insertion_point(field_add:flyteidl.admin.Projects.projects) + return projects_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >& +Projects::projects() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Projects.projects) + return projects_; +} + +// string token = 2; +inline void Projects::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Projects::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Projects.token) + return token_.GetNoArena(); +} +inline void Projects::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Projects.token) +} +#if LANG_CXX11 +inline void Projects::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Projects.token) +} +#endif +inline void Projects::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Projects.token) +} +inline void Projects::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Projects.token) +} +inline ::std::string* Projects::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Projects.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Projects::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Projects.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Projects::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Projects.token) +} + +// ------------------------------------------------------------------- + +// ProjectListRequest + +// uint32 limit = 1; +inline void ProjectListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 ProjectListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.limit) + return limit_; +} +inline void ProjectListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectListRequest.limit) +} + +// string token = 2; +inline void ProjectListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.token) + return token_.GetNoArena(); +} +inline void ProjectListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectListRequest.token) +} +#if LANG_CXX11 +inline void ProjectListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectListRequest.token) +} +#endif +inline void ProjectListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectListRequest.token) +} +inline void ProjectListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectListRequest.token) +} +inline ::std::string* ProjectListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectListRequest.token) +} + +// string filters = 3; +inline void ProjectListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.filters) + return filters_.GetNoArena(); +} +inline void ProjectListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectListRequest.filters) +} +#if LANG_CXX11 +inline void ProjectListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectListRequest.filters) +} +#endif +inline void ProjectListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectListRequest.filters) +} +inline void ProjectListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectListRequest.filters) +} +inline ::std::string* ProjectListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 4; +inline bool ProjectListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline const ::flyteidl::admin::Sort& ProjectListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* ProjectListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* ProjectListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectListRequest.sort_by) + return sort_by_; +} +inline void ProjectListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// ProjectRegisterRequest + +// .flyteidl.admin.Project project = 1; +inline bool ProjectRegisterRequest::has_project() const { + return this != internal_default_instance() && project_ != nullptr; +} +inline void ProjectRegisterRequest::clear_project() { + if (GetArenaNoVirtual() == nullptr && project_ != nullptr) { + delete project_; + } + project_ = nullptr; +} +inline const ::flyteidl::admin::Project& ProjectRegisterRequest::project() const { + const ::flyteidl::admin::Project* p = project_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectRegisterRequest.project) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Project_default_instance_); +} +inline ::flyteidl::admin::Project* ProjectRegisterRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectRegisterRequest.project) + + ::flyteidl::admin::Project* temp = project_; + project_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Project* ProjectRegisterRequest::mutable_project() { + + if (project_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Project>(GetArenaNoVirtual()); + project_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectRegisterRequest.project) + return project_; +} +inline void ProjectRegisterRequest::set_allocated_project(::flyteidl::admin::Project* project) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete project_; + } + if (project) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + project = ::google::protobuf::internal::GetOwnedMessage( + message_arena, project, submessage_arena); + } + + } else { + + } + project_ = project; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectRegisterRequest.project) +} + +// ------------------------------------------------------------------- + +// ProjectRegisterResponse + +// ------------------------------------------------------------------- + +// ProjectUpdateResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::Project_ProjectState> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::Project_ProjectState>() { + return ::flyteidl::admin::Project_ProjectState_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.cc new file mode 100644 index 0000000000..ecf7b1271b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project_attributes.proto + +#include "flyteidl/admin/project_attributes.pb.h" +#include "flyteidl/admin/project_attributes.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.h new file mode 100644 index 0000000000..8957c5cb16 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project_attributes.proto +#ifndef GRPC_flyteidl_2fadmin_2fproject_5fattributes_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fproject_5fattributes_2eproto__INCLUDED + +#include "flyteidl/admin/project_attributes.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fproject_5fattributes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.cc new file mode 100644 index 0000000000..ac548e5d6c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.cc @@ -0,0 +1,2361 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_attributes.proto + +#include "flyteidl/admin/project_attributes.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fattributes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +namespace flyteidl { +namespace admin { +class ProjectAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectAttributes_default_instance_; +class ProjectAttributesUpdateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectAttributesUpdateRequest_default_instance_; +class ProjectAttributesUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectAttributesUpdateResponse_default_instance_; +class ProjectAttributesGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectAttributesGetRequest_default_instance_; +class ProjectAttributesGetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectAttributesGetResponse_default_instance_; +class ProjectAttributesDeleteRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectAttributesDeleteRequest_default_instance_; +class ProjectAttributesDeleteResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectAttributesDeleteResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectAttributes_default_instance_; + new (ptr) ::flyteidl::admin::ProjectAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, { + &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +static void InitDefaultsProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectAttributesUpdateRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectAttributesUpdateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectAttributesUpdateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, { + &scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base,}}; + +static void InitDefaultsProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectAttributesUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectAttributesUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectAttributesUpdateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; + +static void InitDefaultsProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectAttributesGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectAttributesGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectAttributesGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; + +static void InitDefaultsProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectAttributesGetResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectAttributesGetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectAttributesGetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, { + &scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base,}}; + +static void InitDefaultsProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectAttributesDeleteRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectAttributesDeleteRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectAttributesDeleteRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; + +static void InitDefaultsProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectAttributesDeleteResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectAttributesDeleteResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectAttributesDeleteResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[7]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributes, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributes, matching_attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesUpdateRequest, attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetRequest, resource_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetResponse, attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteRequest, resource_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::ProjectAttributes)}, + { 7, -1, sizeof(::flyteidl::admin::ProjectAttributesUpdateRequest)}, + { 13, -1, sizeof(::flyteidl::admin::ProjectAttributesUpdateResponse)}, + { 18, -1, sizeof(::flyteidl::admin::ProjectAttributesGetRequest)}, + { 25, -1, sizeof(::flyteidl::admin::ProjectAttributesGetResponse)}, + { 31, -1, sizeof(::flyteidl::admin::ProjectAttributesDeleteRequest)}, + { 38, -1, sizeof(::flyteidl::admin::ProjectAttributesDeleteResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_ProjectAttributes_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectAttributesUpdateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectAttributesUpdateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectAttributesGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectAttributesGetResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectAttributesDeleteRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectAttributesDeleteResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, "flyteidl/admin/project_attributes.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fattributes_2eproto[] = + "\n\'flyteidl/admin/project_attributes.prot" + "o\022\016flyteidl.admin\032\'flyteidl/admin/matcha" + "ble_resource.proto\"e\n\021ProjectAttributes\022" + "\017\n\007project\030\001 \001(\t\022\?\n\023matching_attributes\030" + "\002 \001(\0132\".flyteidl.admin.MatchingAttribute" + "s\"W\n\036ProjectAttributesUpdateRequest\0225\n\na" + "ttributes\030\001 \001(\0132!.flyteidl.admin.Project" + "Attributes\"!\n\037ProjectAttributesUpdateRes" + "ponse\"h\n\033ProjectAttributesGetRequest\022\017\n\007" + "project\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.f" + "lyteidl.admin.MatchableResource\"U\n\034Proje" + "ctAttributesGetResponse\0225\n\nattributes\030\001 " + "\001(\0132!.flyteidl.admin.ProjectAttributes\"k" + "\n\036ProjectAttributesDeleteRequest\022\017\n\007proj" + "ect\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.flyte" + "idl.admin.MatchableResource\"!\n\037ProjectAt" + "tributesDeleteResponseB7Z5github.com/fly" + "teorg/flyteidl/gen/pb-go/flyteidl/adminb" + "\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fproject_5fattributes_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fattributes_2eproto, + "flyteidl/admin/project_attributes.proto", &assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto, 727, +}; + +void AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fproject_5fattributes_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void ProjectAttributes::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectAttributes_default_instance_._instance.get_mutable()->matching_attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( + ::flyteidl::admin::MatchingAttributes::internal_default_instance()); +} +class ProjectAttributes::HasBitSetters { + public: + static const ::flyteidl::admin::MatchingAttributes& matching_attributes(const ProjectAttributes* msg); +}; + +const ::flyteidl::admin::MatchingAttributes& +ProjectAttributes::HasBitSetters::matching_attributes(const ProjectAttributes* msg) { + return *msg->matching_attributes_; +} +void ProjectAttributes::clear_matching_attributes() { + if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { + delete matching_attributes_; + } + matching_attributes_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectAttributes::kProjectFieldNumber; +const int ProjectAttributes::kMatchingAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectAttributes::ProjectAttributes() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributes) +} +ProjectAttributes::ProjectAttributes(const ProjectAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.has_matching_attributes()) { + matching_attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.matching_attributes_); + } else { + matching_attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributes) +} + +void ProjectAttributes::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + matching_attributes_ = nullptr; +} + +ProjectAttributes::~ProjectAttributes() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributes) + SharedDtor(); +} + +void ProjectAttributes::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete matching_attributes_; +} + +void ProjectAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectAttributes& ProjectAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { + delete matching_attributes_; + } + matching_attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectAttributes::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectAttributes.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchingAttributes matching_attributes = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::MatchingAttributes::_InternalParse; + object = msg->mutable_matching_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectAttributes.project")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_matching_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributes) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectAttributes.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 2; + if (this->has_matching_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::matching_attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributes) +} + +::google::protobuf::uint8* ProjectAttributes::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectAttributes.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 2; + if (this->has_matching_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::matching_attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectAttributes) + return target; +} + +size_t ProjectAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 2; + if (this->has_matching_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *matching_attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributes) + GOOGLE_DCHECK_NE(&from, this); + const ProjectAttributes* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributes) + MergeFrom(*source); + } +} + +void ProjectAttributes::MergeFrom(const ProjectAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.has_matching_attributes()) { + mutable_matching_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.matching_attributes()); + } +} + +void ProjectAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectAttributes::CopyFrom(const ProjectAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectAttributes::IsInitialized() const { + return true; +} + +void ProjectAttributes::Swap(ProjectAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectAttributes::InternalSwap(ProjectAttributes* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(matching_attributes_, other->matching_attributes_); +} + +::google::protobuf::Metadata ProjectAttributes::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectAttributesUpdateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectAttributesUpdateRequest_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectAttributes*>( + ::flyteidl::admin::ProjectAttributes::internal_default_instance()); +} +class ProjectAttributesUpdateRequest::HasBitSetters { + public: + static const ::flyteidl::admin::ProjectAttributes& attributes(const ProjectAttributesUpdateRequest* msg); +}; + +const ::flyteidl::admin::ProjectAttributes& +ProjectAttributesUpdateRequest::HasBitSetters::attributes(const ProjectAttributesUpdateRequest* msg) { + return *msg->attributes_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectAttributesUpdateRequest::kAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectAttributesUpdateRequest::ProjectAttributesUpdateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesUpdateRequest) +} +ProjectAttributesUpdateRequest::ProjectAttributesUpdateRequest(const ProjectAttributesUpdateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_attributes()) { + attributes_ = new ::flyteidl::admin::ProjectAttributes(*from.attributes_); + } else { + attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesUpdateRequest) +} + +void ProjectAttributesUpdateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + attributes_ = nullptr; +} + +ProjectAttributesUpdateRequest::~ProjectAttributesUpdateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesUpdateRequest) + SharedDtor(); +} + +void ProjectAttributesUpdateRequest::SharedDtor() { + if (this != internal_default_instance()) delete attributes_; +} + +void ProjectAttributesUpdateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectAttributesUpdateRequest& ProjectAttributesUpdateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectAttributesUpdateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectAttributesUpdateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.ProjectAttributes attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ProjectAttributes::_InternalParse; + object = msg->mutable_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectAttributesUpdateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectAttributesUpdateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.ProjectAttributes attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesUpdateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesUpdateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectAttributesUpdateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectAttributes attributes = 1; + if (this->has_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesUpdateRequest) +} + +::google::protobuf::uint8* ProjectAttributesUpdateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectAttributes attributes = 1; + if (this->has_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectAttributesUpdateRequest) + return target; +} + +size_t ProjectAttributesUpdateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesUpdateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.ProjectAttributes attributes = 1; + if (this->has_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectAttributesUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectAttributesUpdateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesUpdateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesUpdateRequest) + MergeFrom(*source); + } +} + +void ProjectAttributesUpdateRequest::MergeFrom(const ProjectAttributesUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_attributes()) { + mutable_attributes()->::flyteidl::admin::ProjectAttributes::MergeFrom(from.attributes()); + } +} + +void ProjectAttributesUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectAttributesUpdateRequest::CopyFrom(const ProjectAttributesUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectAttributesUpdateRequest::IsInitialized() const { + return true; +} + +void ProjectAttributesUpdateRequest::Swap(ProjectAttributesUpdateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectAttributesUpdateRequest::InternalSwap(ProjectAttributesUpdateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(attributes_, other->attributes_); +} + +::google::protobuf::Metadata ProjectAttributesUpdateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectAttributesUpdateResponse::InitAsDefaultInstance() { +} +class ProjectAttributesUpdateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectAttributesUpdateResponse::ProjectAttributesUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesUpdateResponse) +} +ProjectAttributesUpdateResponse::ProjectAttributesUpdateResponse(const ProjectAttributesUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesUpdateResponse) +} + +void ProjectAttributesUpdateResponse::SharedCtor() { +} + +ProjectAttributesUpdateResponse::~ProjectAttributesUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesUpdateResponse) + SharedDtor(); +} + +void ProjectAttributesUpdateResponse::SharedDtor() { +} + +void ProjectAttributesUpdateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectAttributesUpdateResponse& ProjectAttributesUpdateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectAttributesUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectAttributesUpdateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectAttributesUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectAttributesUpdateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesUpdateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectAttributesUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesUpdateResponse) +} + +::google::protobuf::uint8* ProjectAttributesUpdateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectAttributesUpdateResponse) + return target; +} + +size_t ProjectAttributesUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesUpdateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectAttributesUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectAttributesUpdateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesUpdateResponse) + MergeFrom(*source); + } +} + +void ProjectAttributesUpdateResponse::MergeFrom(const ProjectAttributesUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectAttributesUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectAttributesUpdateResponse::CopyFrom(const ProjectAttributesUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectAttributesUpdateResponse::IsInitialized() const { + return true; +} + +void ProjectAttributesUpdateResponse::Swap(ProjectAttributesUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectAttributesUpdateResponse::InternalSwap(ProjectAttributesUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ProjectAttributesUpdateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectAttributesGetRequest::InitAsDefaultInstance() { +} +class ProjectAttributesGetRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectAttributesGetRequest::kProjectFieldNumber; +const int ProjectAttributesGetRequest::kResourceTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectAttributesGetRequest::ProjectAttributesGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesGetRequest) +} +ProjectAttributesGetRequest::ProjectAttributesGetRequest(const ProjectAttributesGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesGetRequest) +} + +void ProjectAttributesGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; +} + +ProjectAttributesGetRequest::~ProjectAttributesGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesGetRequest) + SharedDtor(); +} + +void ProjectAttributesGetRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ProjectAttributesGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectAttributesGetRequest& ProjectAttributesGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectAttributesGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectAttributesGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectAttributesGetRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchableResource resource_type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectAttributesGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectAttributesGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectAttributesGetRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectAttributesGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectAttributesGetRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->resource_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesGetRequest) +} + +::google::protobuf::uint8* ProjectAttributesGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectAttributesGetRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->resource_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectAttributesGetRequest) + return target; +} + +size_t ProjectAttributesGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectAttributesGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectAttributesGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesGetRequest) + MergeFrom(*source); + } +} + +void ProjectAttributesGetRequest::MergeFrom(const ProjectAttributesGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void ProjectAttributesGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectAttributesGetRequest::CopyFrom(const ProjectAttributesGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectAttributesGetRequest::IsInitialized() const { + return true; +} + +void ProjectAttributesGetRequest::Swap(ProjectAttributesGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectAttributesGetRequest::InternalSwap(ProjectAttributesGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata ProjectAttributesGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectAttributesGetResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectAttributesGetResponse_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectAttributes*>( + ::flyteidl::admin::ProjectAttributes::internal_default_instance()); +} +class ProjectAttributesGetResponse::HasBitSetters { + public: + static const ::flyteidl::admin::ProjectAttributes& attributes(const ProjectAttributesGetResponse* msg); +}; + +const ::flyteidl::admin::ProjectAttributes& +ProjectAttributesGetResponse::HasBitSetters::attributes(const ProjectAttributesGetResponse* msg) { + return *msg->attributes_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectAttributesGetResponse::kAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectAttributesGetResponse::ProjectAttributesGetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesGetResponse) +} +ProjectAttributesGetResponse::ProjectAttributesGetResponse(const ProjectAttributesGetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_attributes()) { + attributes_ = new ::flyteidl::admin::ProjectAttributes(*from.attributes_); + } else { + attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesGetResponse) +} + +void ProjectAttributesGetResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + attributes_ = nullptr; +} + +ProjectAttributesGetResponse::~ProjectAttributesGetResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesGetResponse) + SharedDtor(); +} + +void ProjectAttributesGetResponse::SharedDtor() { + if (this != internal_default_instance()) delete attributes_; +} + +void ProjectAttributesGetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectAttributesGetResponse& ProjectAttributesGetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectAttributesGetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectAttributesGetResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.ProjectAttributes attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ProjectAttributes::_InternalParse; + object = msg->mutable_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectAttributesGetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectAttributesGetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.ProjectAttributes attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesGetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesGetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectAttributesGetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectAttributes attributes = 1; + if (this->has_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesGetResponse) +} + +::google::protobuf::uint8* ProjectAttributesGetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectAttributes attributes = 1; + if (this->has_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectAttributesGetResponse) + return target; +} + +size_t ProjectAttributesGetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesGetResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.ProjectAttributes attributes = 1; + if (this->has_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectAttributesGetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesGetResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectAttributesGetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesGetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesGetResponse) + MergeFrom(*source); + } +} + +void ProjectAttributesGetResponse::MergeFrom(const ProjectAttributesGetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesGetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_attributes()) { + mutable_attributes()->::flyteidl::admin::ProjectAttributes::MergeFrom(from.attributes()); + } +} + +void ProjectAttributesGetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectAttributesGetResponse::CopyFrom(const ProjectAttributesGetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectAttributesGetResponse::IsInitialized() const { + return true; +} + +void ProjectAttributesGetResponse::Swap(ProjectAttributesGetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectAttributesGetResponse::InternalSwap(ProjectAttributesGetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(attributes_, other->attributes_); +} + +::google::protobuf::Metadata ProjectAttributesGetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectAttributesDeleteRequest::InitAsDefaultInstance() { +} +class ProjectAttributesDeleteRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectAttributesDeleteRequest::kProjectFieldNumber; +const int ProjectAttributesDeleteRequest::kResourceTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectAttributesDeleteRequest::ProjectAttributesDeleteRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesDeleteRequest) +} +ProjectAttributesDeleteRequest::ProjectAttributesDeleteRequest(const ProjectAttributesDeleteRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesDeleteRequest) +} + +void ProjectAttributesDeleteRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; +} + +ProjectAttributesDeleteRequest::~ProjectAttributesDeleteRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesDeleteRequest) + SharedDtor(); +} + +void ProjectAttributesDeleteRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ProjectAttributesDeleteRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectAttributesDeleteRequest& ProjectAttributesDeleteRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectAttributesDeleteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectAttributesDeleteRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectAttributesDeleteRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchableResource resource_type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectAttributesDeleteRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectAttributesDeleteRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectAttributesDeleteRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesDeleteRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesDeleteRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectAttributesDeleteRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectAttributesDeleteRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->resource_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesDeleteRequest) +} + +::google::protobuf::uint8* ProjectAttributesDeleteRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectAttributesDeleteRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->resource_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectAttributesDeleteRequest) + return target; +} + +size_t ProjectAttributesDeleteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesDeleteRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // .flyteidl.admin.MatchableResource resource_type = 2; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectAttributesDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectAttributesDeleteRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesDeleteRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesDeleteRequest) + MergeFrom(*source); + } +} + +void ProjectAttributesDeleteRequest::MergeFrom(const ProjectAttributesDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void ProjectAttributesDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectAttributesDeleteRequest::CopyFrom(const ProjectAttributesDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectAttributesDeleteRequest::IsInitialized() const { + return true; +} + +void ProjectAttributesDeleteRequest::Swap(ProjectAttributesDeleteRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectAttributesDeleteRequest::InternalSwap(ProjectAttributesDeleteRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata ProjectAttributesDeleteRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectAttributesDeleteResponse::InitAsDefaultInstance() { +} +class ProjectAttributesDeleteResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectAttributesDeleteResponse::ProjectAttributesDeleteResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesDeleteResponse) +} +ProjectAttributesDeleteResponse::ProjectAttributesDeleteResponse(const ProjectAttributesDeleteResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesDeleteResponse) +} + +void ProjectAttributesDeleteResponse::SharedCtor() { +} + +ProjectAttributesDeleteResponse::~ProjectAttributesDeleteResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesDeleteResponse) + SharedDtor(); +} + +void ProjectAttributesDeleteResponse::SharedDtor() { +} + +void ProjectAttributesDeleteResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectAttributesDeleteResponse& ProjectAttributesDeleteResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectAttributesDeleteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectAttributesDeleteResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectAttributesDeleteResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectAttributesDeleteResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesDeleteResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesDeleteResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectAttributesDeleteResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesDeleteResponse) +} + +::google::protobuf::uint8* ProjectAttributesDeleteResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectAttributesDeleteResponse) + return target; +} + +size_t ProjectAttributesDeleteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesDeleteResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectAttributesDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectAttributesDeleteResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesDeleteResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesDeleteResponse) + MergeFrom(*source); + } +} + +void ProjectAttributesDeleteResponse::MergeFrom(const ProjectAttributesDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectAttributesDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectAttributesDeleteResponse::CopyFrom(const ProjectAttributesDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectAttributesDeleteResponse::IsInitialized() const { + return true; +} + +void ProjectAttributesDeleteResponse::Swap(ProjectAttributesDeleteResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectAttributesDeleteResponse::InternalSwap(ProjectAttributesDeleteResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ProjectAttributesDeleteResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributes >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesUpdateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesUpdateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesUpdateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesUpdateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesGetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesGetResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesGetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesDeleteRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesDeleteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesDeleteResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesDeleteResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.h new file mode 100644 index 0000000000..3c859a5e4a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.h @@ -0,0 +1,1308 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_attributes.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fattributes_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fattributes_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/matchable_resource.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fattributes_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto(); +namespace flyteidl { +namespace admin { +class ProjectAttributes; +class ProjectAttributesDefaultTypeInternal; +extern ProjectAttributesDefaultTypeInternal _ProjectAttributes_default_instance_; +class ProjectAttributesDeleteRequest; +class ProjectAttributesDeleteRequestDefaultTypeInternal; +extern ProjectAttributesDeleteRequestDefaultTypeInternal _ProjectAttributesDeleteRequest_default_instance_; +class ProjectAttributesDeleteResponse; +class ProjectAttributesDeleteResponseDefaultTypeInternal; +extern ProjectAttributesDeleteResponseDefaultTypeInternal _ProjectAttributesDeleteResponse_default_instance_; +class ProjectAttributesGetRequest; +class ProjectAttributesGetRequestDefaultTypeInternal; +extern ProjectAttributesGetRequestDefaultTypeInternal _ProjectAttributesGetRequest_default_instance_; +class ProjectAttributesGetResponse; +class ProjectAttributesGetResponseDefaultTypeInternal; +extern ProjectAttributesGetResponseDefaultTypeInternal _ProjectAttributesGetResponse_default_instance_; +class ProjectAttributesUpdateRequest; +class ProjectAttributesUpdateRequestDefaultTypeInternal; +extern ProjectAttributesUpdateRequestDefaultTypeInternal _ProjectAttributesUpdateRequest_default_instance_; +class ProjectAttributesUpdateResponse; +class ProjectAttributesUpdateResponseDefaultTypeInternal; +extern ProjectAttributesUpdateResponseDefaultTypeInternal _ProjectAttributesUpdateResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::ProjectAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributes>(Arena*); +template<> ::flyteidl::admin::ProjectAttributesDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesDeleteRequest>(Arena*); +template<> ::flyteidl::admin::ProjectAttributesDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesDeleteResponse>(Arena*); +template<> ::flyteidl::admin::ProjectAttributesGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesGetRequest>(Arena*); +template<> ::flyteidl::admin::ProjectAttributesGetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesGetResponse>(Arena*); +template<> ::flyteidl::admin::ProjectAttributesUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesUpdateRequest>(Arena*); +template<> ::flyteidl::admin::ProjectAttributesUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesUpdateResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class ProjectAttributes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributes) */ { + public: + ProjectAttributes(); + virtual ~ProjectAttributes(); + + ProjectAttributes(const ProjectAttributes& from); + + inline ProjectAttributes& operator=(const ProjectAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectAttributes(ProjectAttributes&& from) noexcept + : ProjectAttributes() { + *this = ::std::move(from); + } + + inline ProjectAttributes& operator=(ProjectAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectAttributes* internal_default_instance() { + return reinterpret_cast( + &_ProjectAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ProjectAttributes* other); + friend void swap(ProjectAttributes& a, ProjectAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectAttributes* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectAttributes& from); + void MergeFrom(const ProjectAttributes& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // .flyteidl.admin.MatchingAttributes matching_attributes = 2; + bool has_matching_attributes() const; + void clear_matching_attributes(); + static const int kMatchingAttributesFieldNumber = 2; + const ::flyteidl::admin::MatchingAttributes& matching_attributes() const; + ::flyteidl::admin::MatchingAttributes* release_matching_attributes(); + ::flyteidl::admin::MatchingAttributes* mutable_matching_attributes(); + void set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributes) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::flyteidl::admin::MatchingAttributes* matching_attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectAttributesUpdateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesUpdateRequest) */ { + public: + ProjectAttributesUpdateRequest(); + virtual ~ProjectAttributesUpdateRequest(); + + ProjectAttributesUpdateRequest(const ProjectAttributesUpdateRequest& from); + + inline ProjectAttributesUpdateRequest& operator=(const ProjectAttributesUpdateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectAttributesUpdateRequest(ProjectAttributesUpdateRequest&& from) noexcept + : ProjectAttributesUpdateRequest() { + *this = ::std::move(from); + } + + inline ProjectAttributesUpdateRequest& operator=(ProjectAttributesUpdateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectAttributesUpdateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectAttributesUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectAttributesUpdateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(ProjectAttributesUpdateRequest* other); + friend void swap(ProjectAttributesUpdateRequest& a, ProjectAttributesUpdateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectAttributesUpdateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectAttributesUpdateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectAttributesUpdateRequest& from); + void MergeFrom(const ProjectAttributesUpdateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectAttributesUpdateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.ProjectAttributes attributes = 1; + bool has_attributes() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::flyteidl::admin::ProjectAttributes& attributes() const; + ::flyteidl::admin::ProjectAttributes* release_attributes(); + ::flyteidl::admin::ProjectAttributes* mutable_attributes(); + void set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::ProjectAttributes* attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectAttributesUpdateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesUpdateResponse) */ { + public: + ProjectAttributesUpdateResponse(); + virtual ~ProjectAttributesUpdateResponse(); + + ProjectAttributesUpdateResponse(const ProjectAttributesUpdateResponse& from); + + inline ProjectAttributesUpdateResponse& operator=(const ProjectAttributesUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectAttributesUpdateResponse(ProjectAttributesUpdateResponse&& from) noexcept + : ProjectAttributesUpdateResponse() { + *this = ::std::move(from); + } + + inline ProjectAttributesUpdateResponse& operator=(ProjectAttributesUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectAttributesUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectAttributesUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectAttributesUpdateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(ProjectAttributesUpdateResponse* other); + friend void swap(ProjectAttributesUpdateResponse& a, ProjectAttributesUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectAttributesUpdateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectAttributesUpdateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectAttributesUpdateResponse& from); + void MergeFrom(const ProjectAttributesUpdateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectAttributesUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectAttributesGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesGetRequest) */ { + public: + ProjectAttributesGetRequest(); + virtual ~ProjectAttributesGetRequest(); + + ProjectAttributesGetRequest(const ProjectAttributesGetRequest& from); + + inline ProjectAttributesGetRequest& operator=(const ProjectAttributesGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectAttributesGetRequest(ProjectAttributesGetRequest&& from) noexcept + : ProjectAttributesGetRequest() { + *this = ::std::move(from); + } + + inline ProjectAttributesGetRequest& operator=(ProjectAttributesGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectAttributesGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectAttributesGetRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectAttributesGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ProjectAttributesGetRequest* other); + friend void swap(ProjectAttributesGetRequest& a, ProjectAttributesGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectAttributesGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectAttributesGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectAttributesGetRequest& from); + void MergeFrom(const ProjectAttributesGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectAttributesGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // .flyteidl.admin.MatchableResource resource_type = 2; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 2; + ::flyteidl::admin::MatchableResource resource_type() const; + void set_resource_type(::flyteidl::admin::MatchableResource value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectAttributesGetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesGetResponse) */ { + public: + ProjectAttributesGetResponse(); + virtual ~ProjectAttributesGetResponse(); + + ProjectAttributesGetResponse(const ProjectAttributesGetResponse& from); + + inline ProjectAttributesGetResponse& operator=(const ProjectAttributesGetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectAttributesGetResponse(ProjectAttributesGetResponse&& from) noexcept + : ProjectAttributesGetResponse() { + *this = ::std::move(from); + } + + inline ProjectAttributesGetResponse& operator=(ProjectAttributesGetResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectAttributesGetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectAttributesGetResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectAttributesGetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(ProjectAttributesGetResponse* other); + friend void swap(ProjectAttributesGetResponse& a, ProjectAttributesGetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectAttributesGetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectAttributesGetResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectAttributesGetResponse& from); + void MergeFrom(const ProjectAttributesGetResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectAttributesGetResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.ProjectAttributes attributes = 1; + bool has_attributes() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::flyteidl::admin::ProjectAttributes& attributes() const; + ::flyteidl::admin::ProjectAttributes* release_attributes(); + ::flyteidl::admin::ProjectAttributes* mutable_attributes(); + void set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::ProjectAttributes* attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectAttributesDeleteRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesDeleteRequest) */ { + public: + ProjectAttributesDeleteRequest(); + virtual ~ProjectAttributesDeleteRequest(); + + ProjectAttributesDeleteRequest(const ProjectAttributesDeleteRequest& from); + + inline ProjectAttributesDeleteRequest& operator=(const ProjectAttributesDeleteRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectAttributesDeleteRequest(ProjectAttributesDeleteRequest&& from) noexcept + : ProjectAttributesDeleteRequest() { + *this = ::std::move(from); + } + + inline ProjectAttributesDeleteRequest& operator=(ProjectAttributesDeleteRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectAttributesDeleteRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectAttributesDeleteRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectAttributesDeleteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ProjectAttributesDeleteRequest* other); + friend void swap(ProjectAttributesDeleteRequest& a, ProjectAttributesDeleteRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectAttributesDeleteRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectAttributesDeleteRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectAttributesDeleteRequest& from); + void MergeFrom(const ProjectAttributesDeleteRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectAttributesDeleteRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // .flyteidl.admin.MatchableResource resource_type = 2; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 2; + ::flyteidl::admin::MatchableResource resource_type() const; + void set_resource_type(::flyteidl::admin::MatchableResource value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectAttributesDeleteResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesDeleteResponse) */ { + public: + ProjectAttributesDeleteResponse(); + virtual ~ProjectAttributesDeleteResponse(); + + ProjectAttributesDeleteResponse(const ProjectAttributesDeleteResponse& from); + + inline ProjectAttributesDeleteResponse& operator=(const ProjectAttributesDeleteResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectAttributesDeleteResponse(ProjectAttributesDeleteResponse&& from) noexcept + : ProjectAttributesDeleteResponse() { + *this = ::std::move(from); + } + + inline ProjectAttributesDeleteResponse& operator=(ProjectAttributesDeleteResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectAttributesDeleteResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectAttributesDeleteResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectAttributesDeleteResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ProjectAttributesDeleteResponse* other); + friend void swap(ProjectAttributesDeleteResponse& a, ProjectAttributesDeleteResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectAttributesDeleteResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectAttributesDeleteResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectAttributesDeleteResponse& from); + void MergeFrom(const ProjectAttributesDeleteResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectAttributesDeleteResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ProjectAttributes + +// string project = 1; +inline void ProjectAttributes::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectAttributes::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributes.project) + return project_.GetNoArena(); +} +inline void ProjectAttributes::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributes.project) +} +#if LANG_CXX11 +inline void ProjectAttributes::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectAttributes.project) +} +#endif +inline void ProjectAttributes::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectAttributes.project) +} +inline void ProjectAttributes::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectAttributes.project) +} +inline ::std::string* ProjectAttributes::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributes.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectAttributes::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributes.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectAttributes::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributes.project) +} + +// .flyteidl.admin.MatchingAttributes matching_attributes = 2; +inline bool ProjectAttributes::has_matching_attributes() const { + return this != internal_default_instance() && matching_attributes_ != nullptr; +} +inline const ::flyteidl::admin::MatchingAttributes& ProjectAttributes::matching_attributes() const { + const ::flyteidl::admin::MatchingAttributes* p = matching_attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributes.matching_attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_MatchingAttributes_default_instance_); +} +inline ::flyteidl::admin::MatchingAttributes* ProjectAttributes::release_matching_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributes.matching_attributes) + + ::flyteidl::admin::MatchingAttributes* temp = matching_attributes_; + matching_attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::MatchingAttributes* ProjectAttributes::mutable_matching_attributes() { + + if (matching_attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); + matching_attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributes.matching_attributes) + return matching_attributes_; +} +inline void ProjectAttributes::set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(matching_attributes_); + } + if (matching_attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + matching_attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, matching_attributes, submessage_arena); + } + + } else { + + } + matching_attributes_ = matching_attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributes.matching_attributes) +} + +// ------------------------------------------------------------------- + +// ProjectAttributesUpdateRequest + +// .flyteidl.admin.ProjectAttributes attributes = 1; +inline bool ProjectAttributesUpdateRequest::has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} +inline void ProjectAttributesUpdateRequest::clear_attributes() { + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; +} +inline const ::flyteidl::admin::ProjectAttributes& ProjectAttributesUpdateRequest::attributes() const { + const ::flyteidl::admin::ProjectAttributes* p = attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ProjectAttributes_default_instance_); +} +inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesUpdateRequest::release_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) + + ::flyteidl::admin::ProjectAttributes* temp = attributes_; + attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesUpdateRequest::mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectAttributes>(GetArenaNoVirtual()); + attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) + return attributes_; +} +inline void ProjectAttributesUpdateRequest::set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete attributes_; + } + if (attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) +} + +// ------------------------------------------------------------------- + +// ProjectAttributesUpdateResponse + +// ------------------------------------------------------------------- + +// ProjectAttributesGetRequest + +// string project = 1; +inline void ProjectAttributesGetRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectAttributesGetRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesGetRequest.project) + return project_.GetNoArena(); +} +inline void ProjectAttributesGetRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesGetRequest.project) +} +#if LANG_CXX11 +inline void ProjectAttributesGetRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectAttributesGetRequest.project) +} +#endif +inline void ProjectAttributesGetRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectAttributesGetRequest.project) +} +inline void ProjectAttributesGetRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectAttributesGetRequest.project) +} +inline ::std::string* ProjectAttributesGetRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesGetRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectAttributesGetRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesGetRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectAttributesGetRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesGetRequest.project) +} + +// .flyteidl.admin.MatchableResource resource_type = 2; +inline void ProjectAttributesGetRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::admin::MatchableResource ProjectAttributesGetRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesGetRequest.resource_type) + return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); +} +inline void ProjectAttributesGetRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesGetRequest.resource_type) +} + +// ------------------------------------------------------------------- + +// ProjectAttributesGetResponse + +// .flyteidl.admin.ProjectAttributes attributes = 1; +inline bool ProjectAttributesGetResponse::has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} +inline void ProjectAttributesGetResponse::clear_attributes() { + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; +} +inline const ::flyteidl::admin::ProjectAttributes& ProjectAttributesGetResponse::attributes() const { + const ::flyteidl::admin::ProjectAttributes* p = attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesGetResponse.attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ProjectAttributes_default_instance_); +} +inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesGetResponse::release_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesGetResponse.attributes) + + ::flyteidl::admin::ProjectAttributes* temp = attributes_; + attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesGetResponse::mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectAttributes>(GetArenaNoVirtual()); + attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesGetResponse.attributes) + return attributes_; +} +inline void ProjectAttributesGetResponse::set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete attributes_; + } + if (attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesGetResponse.attributes) +} + +// ------------------------------------------------------------------- + +// ProjectAttributesDeleteRequest + +// string project = 1; +inline void ProjectAttributesDeleteRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectAttributesDeleteRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesDeleteRequest.project) + return project_.GetNoArena(); +} +inline void ProjectAttributesDeleteRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesDeleteRequest.project) +} +#if LANG_CXX11 +inline void ProjectAttributesDeleteRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectAttributesDeleteRequest.project) +} +#endif +inline void ProjectAttributesDeleteRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectAttributesDeleteRequest.project) +} +inline void ProjectAttributesDeleteRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectAttributesDeleteRequest.project) +} +inline ::std::string* ProjectAttributesDeleteRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesDeleteRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectAttributesDeleteRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesDeleteRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectAttributesDeleteRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesDeleteRequest.project) +} + +// .flyteidl.admin.MatchableResource resource_type = 2; +inline void ProjectAttributesDeleteRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::admin::MatchableResource ProjectAttributesDeleteRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesDeleteRequest.resource_type) + return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); +} +inline void ProjectAttributesDeleteRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesDeleteRequest.resource_type) +} + +// ------------------------------------------------------------------- + +// ProjectAttributesDeleteResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fattributes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.cc new file mode 100644 index 0000000000..e9326ab1fc --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project_domain_attributes.proto + +#include "flyteidl/admin/project_domain_attributes.pb.h" +#include "flyteidl/admin/project_domain_attributes.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.h new file mode 100644 index 0000000000..13b9f39b53 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project_domain_attributes.proto +#ifndef GRPC_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto__INCLUDED + +#include "flyteidl/admin/project_domain_attributes.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.cc new file mode 100644 index 0000000000..dfb07e0b83 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.cc @@ -0,0 +1,2585 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_domain_attributes.proto + +#include "flyteidl/admin/project_domain_attributes.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +namespace flyteidl { +namespace admin { +class ProjectDomainAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectDomainAttributes_default_instance_; +class ProjectDomainAttributesUpdateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectDomainAttributesUpdateRequest_default_instance_; +class ProjectDomainAttributesUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectDomainAttributesUpdateResponse_default_instance_; +class ProjectDomainAttributesGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectDomainAttributesGetRequest_default_instance_; +class ProjectDomainAttributesGetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectDomainAttributesGetResponse_default_instance_; +class ProjectDomainAttributesDeleteRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectDomainAttributesDeleteRequest_default_instance_; +class ProjectDomainAttributesDeleteResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ProjectDomainAttributesDeleteResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectDomainAttributes_default_instance_; + new (ptr) ::flyteidl::admin::ProjectDomainAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectDomainAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, { + &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +static void InitDefaultsProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectDomainAttributesUpdateRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectDomainAttributesUpdateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectDomainAttributesUpdateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, { + &scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base,}}; + +static void InitDefaultsProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectDomainAttributesUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectDomainAttributesUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectDomainAttributesUpdateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; + +static void InitDefaultsProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectDomainAttributesGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectDomainAttributesGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectDomainAttributesGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; + +static void InitDefaultsProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectDomainAttributesGetResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectDomainAttributesGetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectDomainAttributesGetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, { + &scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base,}}; + +static void InitDefaultsProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectDomainAttributesDeleteRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectDomainAttributesDeleteRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectDomainAttributesDeleteRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; + +static void InitDefaultsProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_ProjectDomainAttributesDeleteResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectDomainAttributesDeleteResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectDomainAttributesDeleteResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[7]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, matching_attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesUpdateRequest, attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, resource_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetResponse, attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, resource_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::ProjectDomainAttributes)}, + { 8, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesUpdateRequest)}, + { 14, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesUpdateResponse)}, + { 19, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesGetRequest)}, + { 27, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesGetResponse)}, + { 33, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesDeleteRequest)}, + { 41, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesDeleteResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributes_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesUpdateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesUpdateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesGetResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesDeleteRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesDeleteResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, "flyteidl/admin/project_domain_attributes.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[] = + "\n.flyteidl/admin/project_domain_attribut" + "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" + "/matchable_resource.proto\"{\n\027ProjectDoma" + "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" + "\002 \001(\t\022\?\n\023matching_attributes\030\003 \001(\0132\".fly" + "teidl.admin.MatchingAttributes\"c\n$Projec" + "tDomainAttributesUpdateRequest\022;\n\nattrib" + "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" + "nAttributes\"\'\n%ProjectDomainAttributesUp" + "dateResponse\"~\n!ProjectDomainAttributesG" + "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" + "in.MatchableResource\"a\n\"ProjectDomainAtt" + "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" + ".flyteidl.admin.ProjectDomainAttributes\"" + "\201\001\n$ProjectDomainAttributesDeleteRequest" + "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" + "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" + "bleResource\"\'\n%ProjectDomainAttributesDe" + "leteResponseB7Z5github.com/flyteorg/flyt" + "eidl/gen/pb-go/flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, + "flyteidl/admin/project_domain_attributes.proto", &assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, 837, +}; + +void AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void ProjectDomainAttributes::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectDomainAttributes_default_instance_._instance.get_mutable()->matching_attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( + ::flyteidl::admin::MatchingAttributes::internal_default_instance()); +} +class ProjectDomainAttributes::HasBitSetters { + public: + static const ::flyteidl::admin::MatchingAttributes& matching_attributes(const ProjectDomainAttributes* msg); +}; + +const ::flyteidl::admin::MatchingAttributes& +ProjectDomainAttributes::HasBitSetters::matching_attributes(const ProjectDomainAttributes* msg) { + return *msg->matching_attributes_; +} +void ProjectDomainAttributes::clear_matching_attributes() { + if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { + delete matching_attributes_; + } + matching_attributes_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectDomainAttributes::kProjectFieldNumber; +const int ProjectDomainAttributes::kDomainFieldNumber; +const int ProjectDomainAttributes::kMatchingAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectDomainAttributes::ProjectDomainAttributes() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributes) +} +ProjectDomainAttributes::ProjectDomainAttributes(const ProjectDomainAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.has_matching_attributes()) { + matching_attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.matching_attributes_); + } else { + matching_attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributes) +} + +void ProjectDomainAttributes::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + matching_attributes_ = nullptr; +} + +ProjectDomainAttributes::~ProjectDomainAttributes() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributes) + SharedDtor(); +} + +void ProjectDomainAttributes::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete matching_attributes_; +} + +void ProjectDomainAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectDomainAttributes& ProjectDomainAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectDomainAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { + delete matching_attributes_; + } + matching_attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectDomainAttributes::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributes.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributes.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchingAttributes matching_attributes = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::MatchingAttributes::_InternalParse; + object = msg->mutable_matching_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectDomainAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectDomainAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectDomainAttributes.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectDomainAttributes.domain")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_matching_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributes) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectDomainAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributes.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributes.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 3; + if (this->has_matching_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::matching_attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributes) +} + +::google::protobuf::uint8* ProjectDomainAttributes::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributes.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributes.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 3; + if (this->has_matching_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::matching_attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectDomainAttributes) + return target; +} + +size_t ProjectDomainAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 3; + if (this->has_matching_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *matching_attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectDomainAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributes) + GOOGLE_DCHECK_NE(&from, this); + const ProjectDomainAttributes* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributes) + MergeFrom(*source); + } +} + +void ProjectDomainAttributes::MergeFrom(const ProjectDomainAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.has_matching_attributes()) { + mutable_matching_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.matching_attributes()); + } +} + +void ProjectDomainAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectDomainAttributes::CopyFrom(const ProjectDomainAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectDomainAttributes::IsInitialized() const { + return true; +} + +void ProjectDomainAttributes::Swap(ProjectDomainAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectDomainAttributes::InternalSwap(ProjectDomainAttributes* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(matching_attributes_, other->matching_attributes_); +} + +::google::protobuf::Metadata ProjectDomainAttributes::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectDomainAttributesUpdateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectDomainAttributesUpdateRequest_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectDomainAttributes*>( + ::flyteidl::admin::ProjectDomainAttributes::internal_default_instance()); +} +class ProjectDomainAttributesUpdateRequest::HasBitSetters { + public: + static const ::flyteidl::admin::ProjectDomainAttributes& attributes(const ProjectDomainAttributesUpdateRequest* msg); +}; + +const ::flyteidl::admin::ProjectDomainAttributes& +ProjectDomainAttributesUpdateRequest::HasBitSetters::attributes(const ProjectDomainAttributesUpdateRequest* msg) { + return *msg->attributes_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectDomainAttributesUpdateRequest::kAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectDomainAttributesUpdateRequest::ProjectDomainAttributesUpdateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesUpdateRequest) +} +ProjectDomainAttributesUpdateRequest::ProjectDomainAttributesUpdateRequest(const ProjectDomainAttributesUpdateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_attributes()) { + attributes_ = new ::flyteidl::admin::ProjectDomainAttributes(*from.attributes_); + } else { + attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesUpdateRequest) +} + +void ProjectDomainAttributesUpdateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + attributes_ = nullptr; +} + +ProjectDomainAttributesUpdateRequest::~ProjectDomainAttributesUpdateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + SharedDtor(); +} + +void ProjectDomainAttributesUpdateRequest::SharedDtor() { + if (this != internal_default_instance()) delete attributes_; +} + +void ProjectDomainAttributesUpdateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectDomainAttributesUpdateRequest& ProjectDomainAttributesUpdateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectDomainAttributesUpdateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectDomainAttributesUpdateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ProjectDomainAttributes::_InternalParse; + object = msg->mutable_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectDomainAttributesUpdateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectDomainAttributesUpdateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + if (this->has_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesUpdateRequest) +} + +::google::protobuf::uint8* ProjectDomainAttributesUpdateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + if (this->has_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + return target; +} + +size_t ProjectDomainAttributesUpdateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + if (this->has_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectDomainAttributesUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectDomainAttributesUpdateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + MergeFrom(*source); + } +} + +void ProjectDomainAttributesUpdateRequest::MergeFrom(const ProjectDomainAttributesUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_attributes()) { + mutable_attributes()->::flyteidl::admin::ProjectDomainAttributes::MergeFrom(from.attributes()); + } +} + +void ProjectDomainAttributesUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectDomainAttributesUpdateRequest::CopyFrom(const ProjectDomainAttributesUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectDomainAttributesUpdateRequest::IsInitialized() const { + return true; +} + +void ProjectDomainAttributesUpdateRequest::Swap(ProjectDomainAttributesUpdateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectDomainAttributesUpdateRequest::InternalSwap(ProjectDomainAttributesUpdateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(attributes_, other->attributes_); +} + +::google::protobuf::Metadata ProjectDomainAttributesUpdateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectDomainAttributesUpdateResponse::InitAsDefaultInstance() { +} +class ProjectDomainAttributesUpdateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectDomainAttributesUpdateResponse::ProjectDomainAttributesUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesUpdateResponse) +} +ProjectDomainAttributesUpdateResponse::ProjectDomainAttributesUpdateResponse(const ProjectDomainAttributesUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesUpdateResponse) +} + +void ProjectDomainAttributesUpdateResponse::SharedCtor() { +} + +ProjectDomainAttributesUpdateResponse::~ProjectDomainAttributesUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + SharedDtor(); +} + +void ProjectDomainAttributesUpdateResponse::SharedDtor() { +} + +void ProjectDomainAttributesUpdateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectDomainAttributesUpdateResponse& ProjectDomainAttributesUpdateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectDomainAttributesUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectDomainAttributesUpdateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectDomainAttributesUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectDomainAttributesUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesUpdateResponse) +} + +::google::protobuf::uint8* ProjectDomainAttributesUpdateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + return target; +} + +size_t ProjectDomainAttributesUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectDomainAttributesUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectDomainAttributesUpdateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + MergeFrom(*source); + } +} + +void ProjectDomainAttributesUpdateResponse::MergeFrom(const ProjectDomainAttributesUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectDomainAttributesUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectDomainAttributesUpdateResponse::CopyFrom(const ProjectDomainAttributesUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectDomainAttributesUpdateResponse::IsInitialized() const { + return true; +} + +void ProjectDomainAttributesUpdateResponse::Swap(ProjectDomainAttributesUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectDomainAttributesUpdateResponse::InternalSwap(ProjectDomainAttributesUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ProjectDomainAttributesUpdateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectDomainAttributesGetRequest::InitAsDefaultInstance() { +} +class ProjectDomainAttributesGetRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectDomainAttributesGetRequest::kProjectFieldNumber; +const int ProjectDomainAttributesGetRequest::kDomainFieldNumber; +const int ProjectDomainAttributesGetRequest::kResourceTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectDomainAttributesGetRequest::ProjectDomainAttributesGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesGetRequest) +} +ProjectDomainAttributesGetRequest::ProjectDomainAttributesGetRequest(const ProjectDomainAttributesGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesGetRequest) +} + +void ProjectDomainAttributesGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; +} + +ProjectDomainAttributesGetRequest::~ProjectDomainAttributesGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesGetRequest) + SharedDtor(); +} + +void ProjectDomainAttributesGetRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ProjectDomainAttributesGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectDomainAttributesGetRequest& ProjectDomainAttributesGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectDomainAttributesGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectDomainAttributesGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesGetRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesGetRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchableResource resource_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectDomainAttributesGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectDomainAttributesGetRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectDomainAttributesGetRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectDomainAttributesGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesGetRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesGetRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->resource_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesGetRequest) +} + +::google::protobuf::uint8* ProjectDomainAttributesGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesGetRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesGetRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->resource_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectDomainAttributesGetRequest) + return target; +} + +size_t ProjectDomainAttributesGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectDomainAttributesGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectDomainAttributesGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesGetRequest) + MergeFrom(*source); + } +} + +void ProjectDomainAttributesGetRequest::MergeFrom(const ProjectDomainAttributesGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void ProjectDomainAttributesGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectDomainAttributesGetRequest::CopyFrom(const ProjectDomainAttributesGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectDomainAttributesGetRequest::IsInitialized() const { + return true; +} + +void ProjectDomainAttributesGetRequest::Swap(ProjectDomainAttributesGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectDomainAttributesGetRequest::InternalSwap(ProjectDomainAttributesGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata ProjectDomainAttributesGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectDomainAttributesGetResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectDomainAttributesGetResponse_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectDomainAttributes*>( + ::flyteidl::admin::ProjectDomainAttributes::internal_default_instance()); +} +class ProjectDomainAttributesGetResponse::HasBitSetters { + public: + static const ::flyteidl::admin::ProjectDomainAttributes& attributes(const ProjectDomainAttributesGetResponse* msg); +}; + +const ::flyteidl::admin::ProjectDomainAttributes& +ProjectDomainAttributesGetResponse::HasBitSetters::attributes(const ProjectDomainAttributesGetResponse* msg) { + return *msg->attributes_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectDomainAttributesGetResponse::kAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectDomainAttributesGetResponse::ProjectDomainAttributesGetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesGetResponse) +} +ProjectDomainAttributesGetResponse::ProjectDomainAttributesGetResponse(const ProjectDomainAttributesGetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_attributes()) { + attributes_ = new ::flyteidl::admin::ProjectDomainAttributes(*from.attributes_); + } else { + attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesGetResponse) +} + +void ProjectDomainAttributesGetResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + attributes_ = nullptr; +} + +ProjectDomainAttributesGetResponse::~ProjectDomainAttributesGetResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesGetResponse) + SharedDtor(); +} + +void ProjectDomainAttributesGetResponse::SharedDtor() { + if (this != internal_default_instance()) delete attributes_; +} + +void ProjectDomainAttributesGetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectDomainAttributesGetResponse& ProjectDomainAttributesGetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectDomainAttributesGetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectDomainAttributesGetResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::ProjectDomainAttributes::_InternalParse; + object = msg->mutable_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectDomainAttributesGetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesGetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesGetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectDomainAttributesGetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + if (this->has_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesGetResponse) +} + +::google::protobuf::uint8* ProjectDomainAttributesGetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + if (this->has_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectDomainAttributesGetResponse) + return target; +} + +size_t ProjectDomainAttributesGetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + if (this->has_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectDomainAttributesGetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectDomainAttributesGetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesGetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesGetResponse) + MergeFrom(*source); + } +} + +void ProjectDomainAttributesGetResponse::MergeFrom(const ProjectDomainAttributesGetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_attributes()) { + mutable_attributes()->::flyteidl::admin::ProjectDomainAttributes::MergeFrom(from.attributes()); + } +} + +void ProjectDomainAttributesGetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectDomainAttributesGetResponse::CopyFrom(const ProjectDomainAttributesGetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectDomainAttributesGetResponse::IsInitialized() const { + return true; +} + +void ProjectDomainAttributesGetResponse::Swap(ProjectDomainAttributesGetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectDomainAttributesGetResponse::InternalSwap(ProjectDomainAttributesGetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(attributes_, other->attributes_); +} + +::google::protobuf::Metadata ProjectDomainAttributesGetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectDomainAttributesDeleteRequest::InitAsDefaultInstance() { +} +class ProjectDomainAttributesDeleteRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectDomainAttributesDeleteRequest::kProjectFieldNumber; +const int ProjectDomainAttributesDeleteRequest::kDomainFieldNumber; +const int ProjectDomainAttributesDeleteRequest::kResourceTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectDomainAttributesDeleteRequest::ProjectDomainAttributesDeleteRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesDeleteRequest) +} +ProjectDomainAttributesDeleteRequest::ProjectDomainAttributesDeleteRequest(const ProjectDomainAttributesDeleteRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesDeleteRequest) +} + +void ProjectDomainAttributesDeleteRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; +} + +ProjectDomainAttributesDeleteRequest::~ProjectDomainAttributesDeleteRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + SharedDtor(); +} + +void ProjectDomainAttributesDeleteRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ProjectDomainAttributesDeleteRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectDomainAttributesDeleteRequest& ProjectDomainAttributesDeleteRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectDomainAttributesDeleteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectDomainAttributesDeleteRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesDeleteRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchableResource resource_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectDomainAttributesDeleteRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectDomainAttributesDeleteRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectDomainAttributesDeleteRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesDeleteRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->resource_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesDeleteRequest) +} + +::google::protobuf::uint8* ProjectDomainAttributesDeleteRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesDeleteRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->resource_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + return target; +} + +size_t ProjectDomainAttributesDeleteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // .flyteidl.admin.MatchableResource resource_type = 3; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectDomainAttributesDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectDomainAttributesDeleteRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + MergeFrom(*source); + } +} + +void ProjectDomainAttributesDeleteRequest::MergeFrom(const ProjectDomainAttributesDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void ProjectDomainAttributesDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectDomainAttributesDeleteRequest::CopyFrom(const ProjectDomainAttributesDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectDomainAttributesDeleteRequest::IsInitialized() const { + return true; +} + +void ProjectDomainAttributesDeleteRequest::Swap(ProjectDomainAttributesDeleteRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectDomainAttributesDeleteRequest::InternalSwap(ProjectDomainAttributesDeleteRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata ProjectDomainAttributesDeleteRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectDomainAttributesDeleteResponse::InitAsDefaultInstance() { +} +class ProjectDomainAttributesDeleteResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectDomainAttributesDeleteResponse::ProjectDomainAttributesDeleteResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesDeleteResponse) +} +ProjectDomainAttributesDeleteResponse::ProjectDomainAttributesDeleteResponse(const ProjectDomainAttributesDeleteResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesDeleteResponse) +} + +void ProjectDomainAttributesDeleteResponse::SharedCtor() { +} + +ProjectDomainAttributesDeleteResponse::~ProjectDomainAttributesDeleteResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + SharedDtor(); +} + +void ProjectDomainAttributesDeleteResponse::SharedDtor() { +} + +void ProjectDomainAttributesDeleteResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ProjectDomainAttributesDeleteResponse& ProjectDomainAttributesDeleteResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void ProjectDomainAttributesDeleteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ProjectDomainAttributesDeleteResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ProjectDomainAttributesDeleteResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ProjectDomainAttributesDeleteResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesDeleteResponse) +} + +::google::protobuf::uint8* ProjectDomainAttributesDeleteResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + return target; +} + +size_t ProjectDomainAttributesDeleteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ProjectDomainAttributesDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectDomainAttributesDeleteResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + MergeFrom(*source); + } +} + +void ProjectDomainAttributesDeleteResponse::MergeFrom(const ProjectDomainAttributesDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectDomainAttributesDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectDomainAttributesDeleteResponse::CopyFrom(const ProjectDomainAttributesDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectDomainAttributesDeleteResponse::IsInitialized() const { + return true; +} + +void ProjectDomainAttributesDeleteResponse::Swap(ProjectDomainAttributesDeleteResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectDomainAttributesDeleteResponse::InternalSwap(ProjectDomainAttributesDeleteResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ProjectDomainAttributesDeleteResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributes >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesGetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesGetResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesGetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.h new file mode 100644 index 0000000000..3ad739b9dd --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.h @@ -0,0 +1,1512 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_domain_attributes.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/matchable_resource.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto(); +namespace flyteidl { +namespace admin { +class ProjectDomainAttributes; +class ProjectDomainAttributesDefaultTypeInternal; +extern ProjectDomainAttributesDefaultTypeInternal _ProjectDomainAttributes_default_instance_; +class ProjectDomainAttributesDeleteRequest; +class ProjectDomainAttributesDeleteRequestDefaultTypeInternal; +extern ProjectDomainAttributesDeleteRequestDefaultTypeInternal _ProjectDomainAttributesDeleteRequest_default_instance_; +class ProjectDomainAttributesDeleteResponse; +class ProjectDomainAttributesDeleteResponseDefaultTypeInternal; +extern ProjectDomainAttributesDeleteResponseDefaultTypeInternal _ProjectDomainAttributesDeleteResponse_default_instance_; +class ProjectDomainAttributesGetRequest; +class ProjectDomainAttributesGetRequestDefaultTypeInternal; +extern ProjectDomainAttributesGetRequestDefaultTypeInternal _ProjectDomainAttributesGetRequest_default_instance_; +class ProjectDomainAttributesGetResponse; +class ProjectDomainAttributesGetResponseDefaultTypeInternal; +extern ProjectDomainAttributesGetResponseDefaultTypeInternal _ProjectDomainAttributesGetResponse_default_instance_; +class ProjectDomainAttributesUpdateRequest; +class ProjectDomainAttributesUpdateRequestDefaultTypeInternal; +extern ProjectDomainAttributesUpdateRequestDefaultTypeInternal _ProjectDomainAttributesUpdateRequest_default_instance_; +class ProjectDomainAttributesUpdateResponse; +class ProjectDomainAttributesUpdateResponseDefaultTypeInternal; +extern ProjectDomainAttributesUpdateResponseDefaultTypeInternal _ProjectDomainAttributesUpdateResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::ProjectDomainAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributes>(Arena*); +template<> ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesDeleteRequest>(Arena*); +template<> ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesDeleteResponse>(Arena*); +template<> ::flyteidl::admin::ProjectDomainAttributesGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesGetRequest>(Arena*); +template<> ::flyteidl::admin::ProjectDomainAttributesGetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesGetResponse>(Arena*); +template<> ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesUpdateRequest>(Arena*); +template<> ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesUpdateResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class ProjectDomainAttributes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributes) */ { + public: + ProjectDomainAttributes(); + virtual ~ProjectDomainAttributes(); + + ProjectDomainAttributes(const ProjectDomainAttributes& from); + + inline ProjectDomainAttributes& operator=(const ProjectDomainAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectDomainAttributes(ProjectDomainAttributes&& from) noexcept + : ProjectDomainAttributes() { + *this = ::std::move(from); + } + + inline ProjectDomainAttributes& operator=(ProjectDomainAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectDomainAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectDomainAttributes* internal_default_instance() { + return reinterpret_cast( + &_ProjectDomainAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ProjectDomainAttributes* other); + friend void swap(ProjectDomainAttributes& a, ProjectDomainAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectDomainAttributes* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectDomainAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectDomainAttributes& from); + void MergeFrom(const ProjectDomainAttributes& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectDomainAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // .flyteidl.admin.MatchingAttributes matching_attributes = 3; + bool has_matching_attributes() const; + void clear_matching_attributes(); + static const int kMatchingAttributesFieldNumber = 3; + const ::flyteidl::admin::MatchingAttributes& matching_attributes() const; + ::flyteidl::admin::MatchingAttributes* release_matching_attributes(); + ::flyteidl::admin::MatchingAttributes* mutable_matching_attributes(); + void set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::flyteidl::admin::MatchingAttributes* matching_attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectDomainAttributesUpdateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesUpdateRequest) */ { + public: + ProjectDomainAttributesUpdateRequest(); + virtual ~ProjectDomainAttributesUpdateRequest(); + + ProjectDomainAttributesUpdateRequest(const ProjectDomainAttributesUpdateRequest& from); + + inline ProjectDomainAttributesUpdateRequest& operator=(const ProjectDomainAttributesUpdateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectDomainAttributesUpdateRequest(ProjectDomainAttributesUpdateRequest&& from) noexcept + : ProjectDomainAttributesUpdateRequest() { + *this = ::std::move(from); + } + + inline ProjectDomainAttributesUpdateRequest& operator=(ProjectDomainAttributesUpdateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectDomainAttributesUpdateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectDomainAttributesUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectDomainAttributesUpdateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(ProjectDomainAttributesUpdateRequest* other); + friend void swap(ProjectDomainAttributesUpdateRequest& a, ProjectDomainAttributesUpdateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectDomainAttributesUpdateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectDomainAttributesUpdateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectDomainAttributesUpdateRequest& from); + void MergeFrom(const ProjectDomainAttributesUpdateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectDomainAttributesUpdateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + bool has_attributes() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::flyteidl::admin::ProjectDomainAttributes& attributes() const; + ::flyteidl::admin::ProjectDomainAttributes* release_attributes(); + ::flyteidl::admin::ProjectDomainAttributes* mutable_attributes(); + void set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::ProjectDomainAttributes* attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectDomainAttributesUpdateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesUpdateResponse) */ { + public: + ProjectDomainAttributesUpdateResponse(); + virtual ~ProjectDomainAttributesUpdateResponse(); + + ProjectDomainAttributesUpdateResponse(const ProjectDomainAttributesUpdateResponse& from); + + inline ProjectDomainAttributesUpdateResponse& operator=(const ProjectDomainAttributesUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectDomainAttributesUpdateResponse(ProjectDomainAttributesUpdateResponse&& from) noexcept + : ProjectDomainAttributesUpdateResponse() { + *this = ::std::move(from); + } + + inline ProjectDomainAttributesUpdateResponse& operator=(ProjectDomainAttributesUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectDomainAttributesUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectDomainAttributesUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectDomainAttributesUpdateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(ProjectDomainAttributesUpdateResponse* other); + friend void swap(ProjectDomainAttributesUpdateResponse& a, ProjectDomainAttributesUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectDomainAttributesUpdateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectDomainAttributesUpdateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectDomainAttributesUpdateResponse& from); + void MergeFrom(const ProjectDomainAttributesUpdateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectDomainAttributesUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectDomainAttributesGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesGetRequest) */ { + public: + ProjectDomainAttributesGetRequest(); + virtual ~ProjectDomainAttributesGetRequest(); + + ProjectDomainAttributesGetRequest(const ProjectDomainAttributesGetRequest& from); + + inline ProjectDomainAttributesGetRequest& operator=(const ProjectDomainAttributesGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectDomainAttributesGetRequest(ProjectDomainAttributesGetRequest&& from) noexcept + : ProjectDomainAttributesGetRequest() { + *this = ::std::move(from); + } + + inline ProjectDomainAttributesGetRequest& operator=(ProjectDomainAttributesGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectDomainAttributesGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectDomainAttributesGetRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectDomainAttributesGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ProjectDomainAttributesGetRequest* other); + friend void swap(ProjectDomainAttributesGetRequest& a, ProjectDomainAttributesGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectDomainAttributesGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectDomainAttributesGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectDomainAttributesGetRequest& from); + void MergeFrom(const ProjectDomainAttributesGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectDomainAttributesGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // .flyteidl.admin.MatchableResource resource_type = 3; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 3; + ::flyteidl::admin::MatchableResource resource_type() const; + void set_resource_type(::flyteidl::admin::MatchableResource value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectDomainAttributesGetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesGetResponse) */ { + public: + ProjectDomainAttributesGetResponse(); + virtual ~ProjectDomainAttributesGetResponse(); + + ProjectDomainAttributesGetResponse(const ProjectDomainAttributesGetResponse& from); + + inline ProjectDomainAttributesGetResponse& operator=(const ProjectDomainAttributesGetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectDomainAttributesGetResponse(ProjectDomainAttributesGetResponse&& from) noexcept + : ProjectDomainAttributesGetResponse() { + *this = ::std::move(from); + } + + inline ProjectDomainAttributesGetResponse& operator=(ProjectDomainAttributesGetResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectDomainAttributesGetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectDomainAttributesGetResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectDomainAttributesGetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(ProjectDomainAttributesGetResponse* other); + friend void swap(ProjectDomainAttributesGetResponse& a, ProjectDomainAttributesGetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectDomainAttributesGetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectDomainAttributesGetResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectDomainAttributesGetResponse& from); + void MergeFrom(const ProjectDomainAttributesGetResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectDomainAttributesGetResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.ProjectDomainAttributes attributes = 1; + bool has_attributes() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::flyteidl::admin::ProjectDomainAttributes& attributes() const; + ::flyteidl::admin::ProjectDomainAttributes* release_attributes(); + ::flyteidl::admin::ProjectDomainAttributes* mutable_attributes(); + void set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::ProjectDomainAttributes* attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectDomainAttributesDeleteRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesDeleteRequest) */ { + public: + ProjectDomainAttributesDeleteRequest(); + virtual ~ProjectDomainAttributesDeleteRequest(); + + ProjectDomainAttributesDeleteRequest(const ProjectDomainAttributesDeleteRequest& from); + + inline ProjectDomainAttributesDeleteRequest& operator=(const ProjectDomainAttributesDeleteRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectDomainAttributesDeleteRequest(ProjectDomainAttributesDeleteRequest&& from) noexcept + : ProjectDomainAttributesDeleteRequest() { + *this = ::std::move(from); + } + + inline ProjectDomainAttributesDeleteRequest& operator=(ProjectDomainAttributesDeleteRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectDomainAttributesDeleteRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectDomainAttributesDeleteRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectDomainAttributesDeleteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ProjectDomainAttributesDeleteRequest* other); + friend void swap(ProjectDomainAttributesDeleteRequest& a, ProjectDomainAttributesDeleteRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectDomainAttributesDeleteRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectDomainAttributesDeleteRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectDomainAttributesDeleteRequest& from); + void MergeFrom(const ProjectDomainAttributesDeleteRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectDomainAttributesDeleteRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // .flyteidl.admin.MatchableResource resource_type = 3; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 3; + ::flyteidl::admin::MatchableResource resource_type() const; + void set_resource_type(::flyteidl::admin::MatchableResource value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class ProjectDomainAttributesDeleteResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesDeleteResponse) */ { + public: + ProjectDomainAttributesDeleteResponse(); + virtual ~ProjectDomainAttributesDeleteResponse(); + + ProjectDomainAttributesDeleteResponse(const ProjectDomainAttributesDeleteResponse& from); + + inline ProjectDomainAttributesDeleteResponse& operator=(const ProjectDomainAttributesDeleteResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectDomainAttributesDeleteResponse(ProjectDomainAttributesDeleteResponse&& from) noexcept + : ProjectDomainAttributesDeleteResponse() { + *this = ::std::move(from); + } + + inline ProjectDomainAttributesDeleteResponse& operator=(ProjectDomainAttributesDeleteResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ProjectDomainAttributesDeleteResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectDomainAttributesDeleteResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectDomainAttributesDeleteResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ProjectDomainAttributesDeleteResponse* other); + friend void swap(ProjectDomainAttributesDeleteResponse& a, ProjectDomainAttributesDeleteResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectDomainAttributesDeleteResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ProjectDomainAttributesDeleteResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ProjectDomainAttributesDeleteResponse& from); + void MergeFrom(const ProjectDomainAttributesDeleteResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProjectDomainAttributesDeleteResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ProjectDomainAttributes + +// string project = 1; +inline void ProjectDomainAttributes::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectDomainAttributes::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributes.project) + return project_.GetNoArena(); +} +inline void ProjectDomainAttributes::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributes.project) +} +#if LANG_CXX11 +inline void ProjectDomainAttributes::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributes.project) +} +#endif +inline void ProjectDomainAttributes::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributes.project) +} +inline void ProjectDomainAttributes::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributes.project) +} +inline ::std::string* ProjectDomainAttributes::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributes.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectDomainAttributes::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributes.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectDomainAttributes::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributes.project) +} + +// string domain = 2; +inline void ProjectDomainAttributes::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectDomainAttributes::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributes.domain) + return domain_.GetNoArena(); +} +inline void ProjectDomainAttributes::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributes.domain) +} +#if LANG_CXX11 +inline void ProjectDomainAttributes::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributes.domain) +} +#endif +inline void ProjectDomainAttributes::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributes.domain) +} +inline void ProjectDomainAttributes::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributes.domain) +} +inline ::std::string* ProjectDomainAttributes::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributes.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectDomainAttributes::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributes.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectDomainAttributes::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributes.domain) +} + +// .flyteidl.admin.MatchingAttributes matching_attributes = 3; +inline bool ProjectDomainAttributes::has_matching_attributes() const { + return this != internal_default_instance() && matching_attributes_ != nullptr; +} +inline const ::flyteidl::admin::MatchingAttributes& ProjectDomainAttributes::matching_attributes() const { + const ::flyteidl::admin::MatchingAttributes* p = matching_attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributes.matching_attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_MatchingAttributes_default_instance_); +} +inline ::flyteidl::admin::MatchingAttributes* ProjectDomainAttributes::release_matching_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributes.matching_attributes) + + ::flyteidl::admin::MatchingAttributes* temp = matching_attributes_; + matching_attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::MatchingAttributes* ProjectDomainAttributes::mutable_matching_attributes() { + + if (matching_attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); + matching_attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributes.matching_attributes) + return matching_attributes_; +} +inline void ProjectDomainAttributes::set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(matching_attributes_); + } + if (matching_attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + matching_attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, matching_attributes, submessage_arena); + } + + } else { + + } + matching_attributes_ = matching_attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributes.matching_attributes) +} + +// ------------------------------------------------------------------- + +// ProjectDomainAttributesUpdateRequest + +// .flyteidl.admin.ProjectDomainAttributes attributes = 1; +inline bool ProjectDomainAttributesUpdateRequest::has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} +inline void ProjectDomainAttributesUpdateRequest::clear_attributes() { + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; +} +inline const ::flyteidl::admin::ProjectDomainAttributes& ProjectDomainAttributesUpdateRequest::attributes() const { + const ::flyteidl::admin::ProjectDomainAttributes* p = attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ProjectDomainAttributes_default_instance_); +} +inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesUpdateRequest::release_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) + + ::flyteidl::admin::ProjectDomainAttributes* temp = attributes_; + attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesUpdateRequest::mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributes>(GetArenaNoVirtual()); + attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) + return attributes_; +} +inline void ProjectDomainAttributesUpdateRequest::set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete attributes_; + } + if (attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) +} + +// ------------------------------------------------------------------- + +// ProjectDomainAttributesUpdateResponse + +// ------------------------------------------------------------------- + +// ProjectDomainAttributesGetRequest + +// string project = 1; +inline void ProjectDomainAttributesGetRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectDomainAttributesGetRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetRequest.project) + return project_.GetNoArena(); +} +inline void ProjectDomainAttributesGetRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesGetRequest.project) +} +#if LANG_CXX11 +inline void ProjectDomainAttributesGetRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesGetRequest.project) +} +#endif +inline void ProjectDomainAttributesGetRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesGetRequest.project) +} +inline void ProjectDomainAttributesGetRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesGetRequest.project) +} +inline ::std::string* ProjectDomainAttributesGetRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesGetRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectDomainAttributesGetRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesGetRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectDomainAttributesGetRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesGetRequest.project) +} + +// string domain = 2; +inline void ProjectDomainAttributesGetRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectDomainAttributesGetRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) + return domain_.GetNoArena(); +} +inline void ProjectDomainAttributesGetRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) +} +#if LANG_CXX11 +inline void ProjectDomainAttributesGetRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) +} +#endif +inline void ProjectDomainAttributesGetRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) +} +inline void ProjectDomainAttributesGetRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) +} +inline ::std::string* ProjectDomainAttributesGetRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectDomainAttributesGetRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectDomainAttributesGetRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) +} + +// .flyteidl.admin.MatchableResource resource_type = 3; +inline void ProjectDomainAttributesGetRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::admin::MatchableResource ProjectDomainAttributesGetRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetRequest.resource_type) + return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); +} +inline void ProjectDomainAttributesGetRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesGetRequest.resource_type) +} + +// ------------------------------------------------------------------- + +// ProjectDomainAttributesGetResponse + +// .flyteidl.admin.ProjectDomainAttributes attributes = 1; +inline bool ProjectDomainAttributesGetResponse::has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} +inline void ProjectDomainAttributesGetResponse::clear_attributes() { + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; +} +inline const ::flyteidl::admin::ProjectDomainAttributes& ProjectDomainAttributesGetResponse::attributes() const { + const ::flyteidl::admin::ProjectDomainAttributes* p = attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_ProjectDomainAttributes_default_instance_); +} +inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesGetResponse::release_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) + + ::flyteidl::admin::ProjectDomainAttributes* temp = attributes_; + attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesGetResponse::mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributes>(GetArenaNoVirtual()); + attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) + return attributes_; +} +inline void ProjectDomainAttributesGetResponse::set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete attributes_; + } + if (attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) +} + +// ------------------------------------------------------------------- + +// ProjectDomainAttributesDeleteRequest + +// string project = 1; +inline void ProjectDomainAttributesDeleteRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectDomainAttributesDeleteRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) + return project_.GetNoArena(); +} +inline void ProjectDomainAttributesDeleteRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) +} +#if LANG_CXX11 +inline void ProjectDomainAttributesDeleteRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) +} +#endif +inline void ProjectDomainAttributesDeleteRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) +} +inline void ProjectDomainAttributesDeleteRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) +} +inline ::std::string* ProjectDomainAttributesDeleteRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectDomainAttributesDeleteRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectDomainAttributesDeleteRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) +} + +// string domain = 2; +inline void ProjectDomainAttributesDeleteRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ProjectDomainAttributesDeleteRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) + return domain_.GetNoArena(); +} +inline void ProjectDomainAttributesDeleteRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) +} +#if LANG_CXX11 +inline void ProjectDomainAttributesDeleteRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) +} +#endif +inline void ProjectDomainAttributesDeleteRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) +} +inline void ProjectDomainAttributesDeleteRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) +} +inline ::std::string* ProjectDomainAttributesDeleteRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ProjectDomainAttributesDeleteRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ProjectDomainAttributesDeleteRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) +} + +// .flyteidl.admin.MatchableResource resource_type = 3; +inline void ProjectDomainAttributesDeleteRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::admin::MatchableResource ProjectDomainAttributesDeleteRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesDeleteRequest.resource_type) + return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); +} +inline void ProjectDomainAttributesDeleteRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesDeleteRequest.resource_type) +} + +// ------------------------------------------------------------------- + +// ProjectDomainAttributesDeleteResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc new file mode 100644 index 0000000000..382082b2fc --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/schedule.proto + +#include "flyteidl/admin/schedule.pb.h" +#include "flyteidl/admin/schedule.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h new file mode 100644 index 0000000000..668d656d94 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/schedule.proto +#ifndef GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED + +#include "flyteidl/admin/schedule.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc new file mode 100644 index 0000000000..42e7ff2b58 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc @@ -0,0 +1,1445 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +#include "flyteidl/admin/schedule.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto; +namespace flyteidl { +namespace admin { +class FixedRateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _FixedRate_default_instance_; +class CronScheduleDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CronSchedule_default_instance_; +class ScheduleDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr cron_expression_; + const ::flyteidl::admin::FixedRate* rate_; + const ::flyteidl::admin::CronSchedule* cron_schedule_; +} _Schedule_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsFixedRate_flyteidl_2fadmin_2fschedule_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_FixedRate_default_instance_; + new (ptr) ::flyteidl::admin::FixedRate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::FixedRate::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFixedRate_flyteidl_2fadmin_2fschedule_2eproto}, {}}; + +static void InitDefaultsCronSchedule_flyteidl_2fadmin_2fschedule_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_CronSchedule_default_instance_; + new (ptr) ::flyteidl::admin::CronSchedule(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::CronSchedule::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCronSchedule_flyteidl_2fadmin_2fschedule_2eproto}, {}}; + +static void InitDefaultsSchedule_flyteidl_2fadmin_2fschedule_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Schedule_default_instance_; + new (ptr) ::flyteidl::admin::Schedule(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Schedule::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSchedule_flyteidl_2fadmin_2fschedule_2eproto}, { + &scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto.base, + &scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2fschedule_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[3]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fschedule_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fschedule_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fschedule_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FixedRate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FixedRate, value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FixedRate, unit_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CronSchedule, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CronSchedule, schedule_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CronSchedule, offset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, cron_expression_), + offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, rate_), + offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, cron_schedule_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, kickoff_time_input_arg_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, ScheduleExpression_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::FixedRate)}, + { 7, -1, sizeof(::flyteidl::admin::CronSchedule)}, + { 14, -1, sizeof(::flyteidl::admin::Schedule)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_FixedRate_default_instance_), + reinterpret_cast(&::flyteidl::admin::_CronSchedule_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Schedule_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto, "flyteidl/admin/schedule.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fschedule_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto, 3, file_level_enum_descriptors_flyteidl_2fadmin_2fschedule_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fschedule_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fschedule_2eproto[] = + "\n\035flyteidl/admin/schedule.proto\022\016flyteid" + "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + "\"0\n\014CronSchedule\022\020\n\010schedule\030\001 \001(\t\022\016\n\006of" + "fset\030\002 \001(\t\"\301\001\n\010Schedule\022\035\n\017cron_expressi" + "on\030\001 \001(\tB\002\030\001H\000\022)\n\004rate\030\002 \001(\0132\031.flyteidl." + "admin.FixedRateH\000\0225\n\rcron_schedule\030\004 \001(\013" + "2\034.flyteidl.admin.CronScheduleH\000\022\036\n\026kick" + "off_time_input_arg\030\003 \001(\tB\024\n\022ScheduleExpr" + "ession*.\n\rFixedRateUnit\022\n\n\006MINUTE\020\000\022\010\n\004H" + "OUR\020\001\022\007\n\003DAY\020\002B7Z5github.com/flyteorg/fl" + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fschedule_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fschedule_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fschedule_2eproto, + "flyteidl/admin/schedule.proto", &assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto, 479, +}; + +void AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fschedule_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fschedule_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* FixedRateUnit_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); + return file_level_enum_descriptors_flyteidl_2fadmin_2fschedule_2eproto[0]; +} +bool FixedRateUnit_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +void FixedRate::InitAsDefaultInstance() { +} +class FixedRate::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FixedRate::kValueFieldNumber; +const int FixedRate::kUnitFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FixedRate::FixedRate() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.FixedRate) +} +FixedRate::FixedRate(const FixedRate& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&value_, &from.value_, + static_cast(reinterpret_cast(&unit_) - + reinterpret_cast(&value_)) + sizeof(unit_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.FixedRate) +} + +void FixedRate::SharedCtor() { + ::memset(&value_, 0, static_cast( + reinterpret_cast(&unit_) - + reinterpret_cast(&value_)) + sizeof(unit_)); +} + +FixedRate::~FixedRate() { + // @@protoc_insertion_point(destructor:flyteidl.admin.FixedRate) + SharedDtor(); +} + +void FixedRate::SharedDtor() { +} + +void FixedRate::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FixedRate& FixedRate::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto.base); + return *internal_default_instance(); +} + + +void FixedRate::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.FixedRate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&value_, 0, static_cast( + reinterpret_cast(&unit_) - + reinterpret_cast(&value_)) + sizeof(unit_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FixedRate::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // uint32 value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.admin.FixedRateUnit unit = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_unit(static_cast<::flyteidl::admin::FixedRateUnit>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FixedRate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.FixedRate) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // uint32 value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &value_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_unit(static_cast< ::flyteidl::admin::FixedRateUnit >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.FixedRate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.FixedRate) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FixedRate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.FixedRate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 value = 1; + if (this->value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->value(), output); + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + if (this->unit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->unit(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.FixedRate) +} + +::google::protobuf::uint8* FixedRate::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.FixedRate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 value = 1; + if (this->value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->value(), target); + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + if (this->unit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->unit(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.FixedRate) + return target; +} + +size_t FixedRate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.FixedRate) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 value = 1; + if (this->value() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->value()); + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + if (this->unit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->unit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FixedRate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.FixedRate) + GOOGLE_DCHECK_NE(&from, this); + const FixedRate* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.FixedRate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.FixedRate) + MergeFrom(*source); + } +} + +void FixedRate::MergeFrom(const FixedRate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.FixedRate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value() != 0) { + set_value(from.value()); + } + if (from.unit() != 0) { + set_unit(from.unit()); + } +} + +void FixedRate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.FixedRate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FixedRate::CopyFrom(const FixedRate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.FixedRate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FixedRate::IsInitialized() const { + return true; +} + +void FixedRate::Swap(FixedRate* other) { + if (other == this) return; + InternalSwap(other); +} +void FixedRate::InternalSwap(FixedRate* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(value_, other->value_); + swap(unit_, other->unit_); +} + +::google::protobuf::Metadata FixedRate::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CronSchedule::InitAsDefaultInstance() { +} +class CronSchedule::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CronSchedule::kScheduleFieldNumber; +const int CronSchedule::kOffsetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CronSchedule::CronSchedule() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.CronSchedule) +} +CronSchedule::CronSchedule(const CronSchedule& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + schedule_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.schedule().size() > 0) { + schedule_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_); + } + offset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.offset().size() > 0) { + offset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.offset_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CronSchedule) +} + +void CronSchedule::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base); + schedule_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + offset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CronSchedule::~CronSchedule() { + // @@protoc_insertion_point(destructor:flyteidl.admin.CronSchedule) + SharedDtor(); +} + +void CronSchedule::SharedDtor() { + schedule_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + offset_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CronSchedule::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CronSchedule& CronSchedule::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base); + return *internal_default_instance(); +} + + +void CronSchedule::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CronSchedule) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + schedule_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + offset_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CronSchedule::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string schedule = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.CronSchedule.schedule"); + object = msg->mutable_schedule(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string offset = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.CronSchedule.offset"); + object = msg->mutable_offset(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CronSchedule::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.CronSchedule) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string schedule = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_schedule())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->schedule().data(), static_cast(this->schedule().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.CronSchedule.schedule")); + } else { + goto handle_unusual; + } + break; + } + + // string offset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_offset())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->offset().data(), static_cast(this->offset().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.CronSchedule.offset")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.CronSchedule) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.CronSchedule) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CronSchedule::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.CronSchedule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string schedule = 1; + if (this->schedule().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->schedule().data(), static_cast(this->schedule().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CronSchedule.schedule"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->schedule(), output); + } + + // string offset = 2; + if (this->offset().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->offset().data(), static_cast(this->offset().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CronSchedule.offset"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->offset(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.CronSchedule) +} + +::google::protobuf::uint8* CronSchedule::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CronSchedule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string schedule = 1; + if (this->schedule().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->schedule().data(), static_cast(this->schedule().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CronSchedule.schedule"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->schedule(), target); + } + + // string offset = 2; + if (this->offset().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->offset().data(), static_cast(this->offset().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.CronSchedule.offset"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->offset(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.CronSchedule) + return target; +} + +size_t CronSchedule::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CronSchedule) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string schedule = 1; + if (this->schedule().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->schedule()); + } + + // string offset = 2; + if (this->offset().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->offset()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CronSchedule::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CronSchedule) + GOOGLE_DCHECK_NE(&from, this); + const CronSchedule* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CronSchedule) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CronSchedule) + MergeFrom(*source); + } +} + +void CronSchedule::MergeFrom(const CronSchedule& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CronSchedule) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.schedule().size() > 0) { + + schedule_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_); + } + if (from.offset().size() > 0) { + + offset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.offset_); + } +} + +void CronSchedule::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CronSchedule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CronSchedule::CopyFrom(const CronSchedule& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CronSchedule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CronSchedule::IsInitialized() const { + return true; +} + +void CronSchedule::Swap(CronSchedule* other) { + if (other == this) return; + InternalSwap(other); +} +void CronSchedule::InternalSwap(CronSchedule* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + schedule_.Swap(&other->schedule_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + offset_.Swap(&other->offset_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata CronSchedule::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Schedule::InitAsDefaultInstance() { + ::flyteidl::admin::_Schedule_default_instance_.cron_expression_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_Schedule_default_instance_.rate_ = const_cast< ::flyteidl::admin::FixedRate*>( + ::flyteidl::admin::FixedRate::internal_default_instance()); + ::flyteidl::admin::_Schedule_default_instance_.cron_schedule_ = const_cast< ::flyteidl::admin::CronSchedule*>( + ::flyteidl::admin::CronSchedule::internal_default_instance()); +} +class Schedule::HasBitSetters { + public: + static const ::flyteidl::admin::FixedRate& rate(const Schedule* msg); + static const ::flyteidl::admin::CronSchedule& cron_schedule(const Schedule* msg); +}; + +const ::flyteidl::admin::FixedRate& +Schedule::HasBitSetters::rate(const Schedule* msg) { + return *msg->ScheduleExpression_.rate_; +} +const ::flyteidl::admin::CronSchedule& +Schedule::HasBitSetters::cron_schedule(const Schedule* msg) { + return *msg->ScheduleExpression_.cron_schedule_; +} +void Schedule::set_allocated_rate(::flyteidl::admin::FixedRate* rate) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_ScheduleExpression(); + if (rate) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + rate = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rate, submessage_arena); + } + set_has_rate(); + ScheduleExpression_.rate_ = rate; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.rate) +} +void Schedule::set_allocated_cron_schedule(::flyteidl::admin::CronSchedule* cron_schedule) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_ScheduleExpression(); + if (cron_schedule) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + cron_schedule = ::google::protobuf::internal::GetOwnedMessage( + message_arena, cron_schedule, submessage_arena); + } + set_has_cron_schedule(); + ScheduleExpression_.cron_schedule_ = cron_schedule; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.cron_schedule) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Schedule::kCronExpressionFieldNumber; +const int Schedule::kRateFieldNumber; +const int Schedule::kCronScheduleFieldNumber; +const int Schedule::kKickoffTimeInputArgFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Schedule::Schedule() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Schedule) +} +Schedule::Schedule(const Schedule& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + kickoff_time_input_arg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.kickoff_time_input_arg().size() > 0) { + kickoff_time_input_arg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kickoff_time_input_arg_); + } + clear_has_ScheduleExpression(); + switch (from.ScheduleExpression_case()) { + case kCronExpression: { + set_cron_expression(from.cron_expression()); + break; + } + case kRate: { + mutable_rate()->::flyteidl::admin::FixedRate::MergeFrom(from.rate()); + break; + } + case kCronSchedule: { + mutable_cron_schedule()->::flyteidl::admin::CronSchedule::MergeFrom(from.cron_schedule()); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Schedule) +} + +void Schedule::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base); + kickoff_time_input_arg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ScheduleExpression(); +} + +Schedule::~Schedule() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Schedule) + SharedDtor(); +} + +void Schedule::SharedDtor() { + kickoff_time_input_arg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (has_ScheduleExpression()) { + clear_ScheduleExpression(); + } +} + +void Schedule::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Schedule& Schedule::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base); + return *internal_default_instance(); +} + + +void Schedule::clear_ScheduleExpression() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Schedule) + switch (ScheduleExpression_case()) { + case kCronExpression: { + ScheduleExpression_.cron_expression_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kRate: { + delete ScheduleExpression_.rate_; + break; + } + case kCronSchedule: { + delete ScheduleExpression_.cron_schedule_; + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + _oneof_case_[0] = SCHEDULEEXPRESSION_NOT_SET; +} + + +void Schedule::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Schedule) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + kickoff_time_input_arg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_ScheduleExpression(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Schedule::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string cron_expression = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Schedule.cron_expression"); + object = msg->mutable_cron_expression(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.FixedRate rate = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::FixedRate::_InternalParse; + object = msg->mutable_rate(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string kickoff_time_input_arg = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Schedule.kickoff_time_input_arg"); + object = msg->mutable_kickoff_time_input_arg(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.CronSchedule cron_schedule = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::CronSchedule::_InternalParse; + object = msg->mutable_cron_schedule(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Schedule::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Schedule) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string cron_expression = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cron_expression())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cron_expression().data(), static_cast(this->cron_expression().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Schedule.cron_expression")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.FixedRate rate = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rate())); + } else { + goto handle_unusual; + } + break; + } + + // string kickoff_time_input_arg = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_kickoff_time_input_arg())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Schedule.kickoff_time_input_arg")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.CronSchedule cron_schedule = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_cron_schedule())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Schedule) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Schedule) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Schedule::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Schedule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cron_expression = 1 [deprecated = true]; + if (has_cron_expression()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cron_expression().data(), static_cast(this->cron_expression().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.cron_expression"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cron_expression(), output); + } + + // .flyteidl.admin.FixedRate rate = 2; + if (has_rate()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::rate(this), output); + } + + // string kickoff_time_input_arg = 3; + if (this->kickoff_time_input_arg().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.kickoff_time_input_arg"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->kickoff_time_input_arg(), output); + } + + // .flyteidl.admin.CronSchedule cron_schedule = 4; + if (has_cron_schedule()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::cron_schedule(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Schedule) +} + +::google::protobuf::uint8* Schedule::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Schedule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cron_expression = 1 [deprecated = true]; + if (has_cron_expression()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cron_expression().data(), static_cast(this->cron_expression().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.cron_expression"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cron_expression(), target); + } + + // .flyteidl.admin.FixedRate rate = 2; + if (has_rate()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::rate(this), target); + } + + // string kickoff_time_input_arg = 3; + if (this->kickoff_time_input_arg().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.kickoff_time_input_arg"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->kickoff_time_input_arg(), target); + } + + // .flyteidl.admin.CronSchedule cron_schedule = 4; + if (has_cron_schedule()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::cron_schedule(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Schedule) + return target; +} + +size_t Schedule::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Schedule) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string kickoff_time_input_arg = 3; + if (this->kickoff_time_input_arg().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->kickoff_time_input_arg()); + } + + switch (ScheduleExpression_case()) { + // string cron_expression = 1 [deprecated = true]; + case kCronExpression: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cron_expression()); + break; + } + // .flyteidl.admin.FixedRate rate = 2; + case kRate: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ScheduleExpression_.rate_); + break; + } + // .flyteidl.admin.CronSchedule cron_schedule = 4; + case kCronSchedule: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ScheduleExpression_.cron_schedule_); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Schedule::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Schedule) + GOOGLE_DCHECK_NE(&from, this); + const Schedule* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Schedule) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Schedule) + MergeFrom(*source); + } +} + +void Schedule::MergeFrom(const Schedule& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Schedule) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.kickoff_time_input_arg().size() > 0) { + + kickoff_time_input_arg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kickoff_time_input_arg_); + } + switch (from.ScheduleExpression_case()) { + case kCronExpression: { + set_cron_expression(from.cron_expression()); + break; + } + case kRate: { + mutable_rate()->::flyteidl::admin::FixedRate::MergeFrom(from.rate()); + break; + } + case kCronSchedule: { + mutable_cron_schedule()->::flyteidl::admin::CronSchedule::MergeFrom(from.cron_schedule()); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } +} + +void Schedule::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Schedule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Schedule::CopyFrom(const Schedule& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Schedule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Schedule::IsInitialized() const { + return true; +} + +void Schedule::Swap(Schedule* other) { + if (other == this) return; + InternalSwap(other); +} +void Schedule::InternalSwap(Schedule* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + kickoff_time_input_arg_.Swap(&other->kickoff_time_input_arg_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(ScheduleExpression_, other->ScheduleExpression_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Schedule::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::FixedRate* Arena::CreateMaybeMessage< ::flyteidl::admin::FixedRate >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::FixedRate >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CronSchedule* Arena::CreateMaybeMessage< ::flyteidl::admin::CronSchedule >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CronSchedule >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Schedule* Arena::CreateMaybeMessage< ::flyteidl::admin::Schedule >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Schedule >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h new file mode 100644 index 0000000000..818b36870c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h @@ -0,0 +1,946 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fschedule_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fschedule_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fschedule_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto(); +namespace flyteidl { +namespace admin { +class CronSchedule; +class CronScheduleDefaultTypeInternal; +extern CronScheduleDefaultTypeInternal _CronSchedule_default_instance_; +class FixedRate; +class FixedRateDefaultTypeInternal; +extern FixedRateDefaultTypeInternal _FixedRate_default_instance_; +class Schedule; +class ScheduleDefaultTypeInternal; +extern ScheduleDefaultTypeInternal _Schedule_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::CronSchedule* Arena::CreateMaybeMessage<::flyteidl::admin::CronSchedule>(Arena*); +template<> ::flyteidl::admin::FixedRate* Arena::CreateMaybeMessage<::flyteidl::admin::FixedRate>(Arena*); +template<> ::flyteidl::admin::Schedule* Arena::CreateMaybeMessage<::flyteidl::admin::Schedule>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +enum FixedRateUnit { + MINUTE = 0, + HOUR = 1, + DAY = 2, + FixedRateUnit_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + FixedRateUnit_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool FixedRateUnit_IsValid(int value); +const FixedRateUnit FixedRateUnit_MIN = MINUTE; +const FixedRateUnit FixedRateUnit_MAX = DAY; +const int FixedRateUnit_ARRAYSIZE = FixedRateUnit_MAX + 1; + +const ::google::protobuf::EnumDescriptor* FixedRateUnit_descriptor(); +inline const ::std::string& FixedRateUnit_Name(FixedRateUnit value) { + return ::google::protobuf::internal::NameOfEnum( + FixedRateUnit_descriptor(), value); +} +inline bool FixedRateUnit_Parse( + const ::std::string& name, FixedRateUnit* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FixedRateUnit_descriptor(), name, value); +} +// =================================================================== + +class FixedRate final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.FixedRate) */ { + public: + FixedRate(); + virtual ~FixedRate(); + + FixedRate(const FixedRate& from); + + inline FixedRate& operator=(const FixedRate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FixedRate(FixedRate&& from) noexcept + : FixedRate() { + *this = ::std::move(from); + } + + inline FixedRate& operator=(FixedRate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const FixedRate& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FixedRate* internal_default_instance() { + return reinterpret_cast( + &_FixedRate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(FixedRate* other); + friend void swap(FixedRate& a, FixedRate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FixedRate* New() const final { + return CreateMaybeMessage(nullptr); + } + + FixedRate* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FixedRate& from); + void MergeFrom(const FixedRate& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FixedRate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 value = 1; + void clear_value(); + static const int kValueFieldNumber = 1; + ::google::protobuf::uint32 value() const; + void set_value(::google::protobuf::uint32 value); + + // .flyteidl.admin.FixedRateUnit unit = 2; + void clear_unit(); + static const int kUnitFieldNumber = 2; + ::flyteidl::admin::FixedRateUnit unit() const; + void set_unit(::flyteidl::admin::FixedRateUnit value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 value_; + int unit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fschedule_2eproto; +}; +// ------------------------------------------------------------------- + +class CronSchedule final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CronSchedule) */ { + public: + CronSchedule(); + virtual ~CronSchedule(); + + CronSchedule(const CronSchedule& from); + + inline CronSchedule& operator=(const CronSchedule& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CronSchedule(CronSchedule&& from) noexcept + : CronSchedule() { + *this = ::std::move(from); + } + + inline CronSchedule& operator=(CronSchedule&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CronSchedule& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CronSchedule* internal_default_instance() { + return reinterpret_cast( + &_CronSchedule_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(CronSchedule* other); + friend void swap(CronSchedule& a, CronSchedule& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CronSchedule* New() const final { + return CreateMaybeMessage(nullptr); + } + + CronSchedule* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CronSchedule& from); + void MergeFrom(const CronSchedule& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CronSchedule* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string schedule = 1; + void clear_schedule(); + static const int kScheduleFieldNumber = 1; + const ::std::string& schedule() const; + void set_schedule(const ::std::string& value); + #if LANG_CXX11 + void set_schedule(::std::string&& value); + #endif + void set_schedule(const char* value); + void set_schedule(const char* value, size_t size); + ::std::string* mutable_schedule(); + ::std::string* release_schedule(); + void set_allocated_schedule(::std::string* schedule); + + // string offset = 2; + void clear_offset(); + static const int kOffsetFieldNumber = 2; + const ::std::string& offset() const; + void set_offset(const ::std::string& value); + #if LANG_CXX11 + void set_offset(::std::string&& value); + #endif + void set_offset(const char* value); + void set_offset(const char* value, size_t size); + ::std::string* mutable_offset(); + ::std::string* release_offset(); + void set_allocated_offset(::std::string* offset); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CronSchedule) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr schedule_; + ::google::protobuf::internal::ArenaStringPtr offset_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fschedule_2eproto; +}; +// ------------------------------------------------------------------- + +class Schedule final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Schedule) */ { + public: + Schedule(); + virtual ~Schedule(); + + Schedule(const Schedule& from); + + inline Schedule& operator=(const Schedule& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Schedule(Schedule&& from) noexcept + : Schedule() { + *this = ::std::move(from); + } + + inline Schedule& operator=(Schedule&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Schedule& default_instance(); + + enum ScheduleExpressionCase { + kCronExpression = 1, + kRate = 2, + kCronSchedule = 4, + SCHEDULEEXPRESSION_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Schedule* internal_default_instance() { + return reinterpret_cast( + &_Schedule_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(Schedule* other); + friend void swap(Schedule& a, Schedule& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Schedule* New() const final { + return CreateMaybeMessage(nullptr); + } + + Schedule* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Schedule& from); + void MergeFrom(const Schedule& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Schedule* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string kickoff_time_input_arg = 3; + void clear_kickoff_time_input_arg(); + static const int kKickoffTimeInputArgFieldNumber = 3; + const ::std::string& kickoff_time_input_arg() const; + void set_kickoff_time_input_arg(const ::std::string& value); + #if LANG_CXX11 + void set_kickoff_time_input_arg(::std::string&& value); + #endif + void set_kickoff_time_input_arg(const char* value); + void set_kickoff_time_input_arg(const char* value, size_t size); + ::std::string* mutable_kickoff_time_input_arg(); + ::std::string* release_kickoff_time_input_arg(); + void set_allocated_kickoff_time_input_arg(::std::string* kickoff_time_input_arg); + + // string cron_expression = 1 [deprecated = true]; + private: + bool has_cron_expression() const; + public: + PROTOBUF_DEPRECATED void clear_cron_expression(); + PROTOBUF_DEPRECATED static const int kCronExpressionFieldNumber = 1; + PROTOBUF_DEPRECATED const ::std::string& cron_expression() const; + PROTOBUF_DEPRECATED void set_cron_expression(const ::std::string& value); + #if LANG_CXX11 + PROTOBUF_DEPRECATED void set_cron_expression(::std::string&& value); + #endif + PROTOBUF_DEPRECATED void set_cron_expression(const char* value); + PROTOBUF_DEPRECATED void set_cron_expression(const char* value, size_t size); + PROTOBUF_DEPRECATED ::std::string* mutable_cron_expression(); + PROTOBUF_DEPRECATED ::std::string* release_cron_expression(); + PROTOBUF_DEPRECATED void set_allocated_cron_expression(::std::string* cron_expression); + + // .flyteidl.admin.FixedRate rate = 2; + bool has_rate() const; + void clear_rate(); + static const int kRateFieldNumber = 2; + const ::flyteidl::admin::FixedRate& rate() const; + ::flyteidl::admin::FixedRate* release_rate(); + ::flyteidl::admin::FixedRate* mutable_rate(); + void set_allocated_rate(::flyteidl::admin::FixedRate* rate); + + // .flyteidl.admin.CronSchedule cron_schedule = 4; + bool has_cron_schedule() const; + void clear_cron_schedule(); + static const int kCronScheduleFieldNumber = 4; + const ::flyteidl::admin::CronSchedule& cron_schedule() const; + ::flyteidl::admin::CronSchedule* release_cron_schedule(); + ::flyteidl::admin::CronSchedule* mutable_cron_schedule(); + void set_allocated_cron_schedule(::flyteidl::admin::CronSchedule* cron_schedule); + + void clear_ScheduleExpression(); + ScheduleExpressionCase ScheduleExpression_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) + private: + class HasBitSetters; + void set_has_cron_expression(); + void set_has_rate(); + void set_has_cron_schedule(); + + inline bool has_ScheduleExpression() const; + inline void clear_has_ScheduleExpression(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr kickoff_time_input_arg_; + union ScheduleExpressionUnion { + ScheduleExpressionUnion() {} + ::google::protobuf::internal::ArenaStringPtr cron_expression_; + ::flyteidl::admin::FixedRate* rate_; + ::flyteidl::admin::CronSchedule* cron_schedule_; + } ScheduleExpression_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fschedule_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// FixedRate + +// uint32 value = 1; +inline void FixedRate::clear_value() { + value_ = 0u; +} +inline ::google::protobuf::uint32 FixedRate::value() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.FixedRate.value) + return value_; +} +inline void FixedRate::set_value(::google::protobuf::uint32 value) { + + value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.FixedRate.value) +} + +// .flyteidl.admin.FixedRateUnit unit = 2; +inline void FixedRate::clear_unit() { + unit_ = 0; +} +inline ::flyteidl::admin::FixedRateUnit FixedRate::unit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.FixedRate.unit) + return static_cast< ::flyteidl::admin::FixedRateUnit >(unit_); +} +inline void FixedRate::set_unit(::flyteidl::admin::FixedRateUnit value) { + + unit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.FixedRate.unit) +} + +// ------------------------------------------------------------------- + +// CronSchedule + +// string schedule = 1; +inline void CronSchedule::clear_schedule() { + schedule_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CronSchedule::schedule() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CronSchedule.schedule) + return schedule_.GetNoArena(); +} +inline void CronSchedule::set_schedule(const ::std::string& value) { + + schedule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CronSchedule.schedule) +} +#if LANG_CXX11 +inline void CronSchedule::set_schedule(::std::string&& value) { + + schedule_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CronSchedule.schedule) +} +#endif +inline void CronSchedule::set_schedule(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + schedule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CronSchedule.schedule) +} +inline void CronSchedule::set_schedule(const char* value, size_t size) { + + schedule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CronSchedule.schedule) +} +inline ::std::string* CronSchedule::mutable_schedule() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CronSchedule.schedule) + return schedule_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CronSchedule::release_schedule() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CronSchedule.schedule) + + return schedule_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CronSchedule::set_allocated_schedule(::std::string* schedule) { + if (schedule != nullptr) { + + } else { + + } + schedule_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schedule); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CronSchedule.schedule) +} + +// string offset = 2; +inline void CronSchedule::clear_offset() { + offset_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CronSchedule::offset() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CronSchedule.offset) + return offset_.GetNoArena(); +} +inline void CronSchedule::set_offset(const ::std::string& value) { + + offset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.CronSchedule.offset) +} +#if LANG_CXX11 +inline void CronSchedule::set_offset(::std::string&& value) { + + offset_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CronSchedule.offset) +} +#endif +inline void CronSchedule::set_offset(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + offset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.CronSchedule.offset) +} +inline void CronSchedule::set_offset(const char* value, size_t size) { + + offset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CronSchedule.offset) +} +inline ::std::string* CronSchedule::mutable_offset() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CronSchedule.offset) + return offset_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CronSchedule::release_offset() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CronSchedule.offset) + + return offset_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CronSchedule::set_allocated_offset(::std::string* offset) { + if (offset != nullptr) { + + } else { + + } + offset_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), offset); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CronSchedule.offset) +} + +// ------------------------------------------------------------------- + +// Schedule + +// string cron_expression = 1 [deprecated = true]; +inline bool Schedule::has_cron_expression() const { + return ScheduleExpression_case() == kCronExpression; +} +inline void Schedule::set_has_cron_expression() { + _oneof_case_[0] = kCronExpression; +} +inline void Schedule::clear_cron_expression() { + if (has_cron_expression()) { + ScheduleExpression_.cron_expression_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ScheduleExpression(); + } +} +inline const ::std::string& Schedule::cron_expression() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.cron_expression) + if (has_cron_expression()) { + return ScheduleExpression_.cron_expression_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Schedule::set_cron_expression(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) +} +#if LANG_CXX11 +inline void Schedule::set_cron_expression(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Schedule.cron_expression) +} +#endif +inline void Schedule::set_cron_expression(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Schedule.cron_expression) +} +inline void Schedule::set_cron_expression(const char* value, size_t size) { + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Schedule.cron_expression) +} +inline ::std::string* Schedule::mutable_cron_expression() { + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.cron_expression) + return ScheduleExpression_.cron_expression_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Schedule::release_cron_expression() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.cron_expression) + if (has_cron_expression()) { + clear_has_ScheduleExpression(); + return ScheduleExpression_.cron_expression_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void Schedule::set_allocated_cron_expression(::std::string* cron_expression) { + if (has_ScheduleExpression()) { + clear_ScheduleExpression(); + } + if (cron_expression != nullptr) { + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(cron_expression); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.cron_expression) +} + +// .flyteidl.admin.FixedRate rate = 2; +inline bool Schedule::has_rate() const { + return ScheduleExpression_case() == kRate; +} +inline void Schedule::set_has_rate() { + _oneof_case_[0] = kRate; +} +inline void Schedule::clear_rate() { + if (has_rate()) { + delete ScheduleExpression_.rate_; + clear_has_ScheduleExpression(); + } +} +inline ::flyteidl::admin::FixedRate* Schedule::release_rate() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.rate) + if (has_rate()) { + clear_has_ScheduleExpression(); + ::flyteidl::admin::FixedRate* temp = ScheduleExpression_.rate_; + ScheduleExpression_.rate_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::FixedRate& Schedule::rate() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.rate) + return has_rate() + ? *ScheduleExpression_.rate_ + : *reinterpret_cast< ::flyteidl::admin::FixedRate*>(&::flyteidl::admin::_FixedRate_default_instance_); +} +inline ::flyteidl::admin::FixedRate* Schedule::mutable_rate() { + if (!has_rate()) { + clear_ScheduleExpression(); + set_has_rate(); + ScheduleExpression_.rate_ = CreateMaybeMessage< ::flyteidl::admin::FixedRate >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.rate) + return ScheduleExpression_.rate_; +} + +// .flyteidl.admin.CronSchedule cron_schedule = 4; +inline bool Schedule::has_cron_schedule() const { + return ScheduleExpression_case() == kCronSchedule; +} +inline void Schedule::set_has_cron_schedule() { + _oneof_case_[0] = kCronSchedule; +} +inline void Schedule::clear_cron_schedule() { + if (has_cron_schedule()) { + delete ScheduleExpression_.cron_schedule_; + clear_has_ScheduleExpression(); + } +} +inline ::flyteidl::admin::CronSchedule* Schedule::release_cron_schedule() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.cron_schedule) + if (has_cron_schedule()) { + clear_has_ScheduleExpression(); + ::flyteidl::admin::CronSchedule* temp = ScheduleExpression_.cron_schedule_; + ScheduleExpression_.cron_schedule_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::CronSchedule& Schedule::cron_schedule() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.cron_schedule) + return has_cron_schedule() + ? *ScheduleExpression_.cron_schedule_ + : *reinterpret_cast< ::flyteidl::admin::CronSchedule*>(&::flyteidl::admin::_CronSchedule_default_instance_); +} +inline ::flyteidl::admin::CronSchedule* Schedule::mutable_cron_schedule() { + if (!has_cron_schedule()) { + clear_ScheduleExpression(); + set_has_cron_schedule(); + ScheduleExpression_.cron_schedule_ = CreateMaybeMessage< ::flyteidl::admin::CronSchedule >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.cron_schedule) + return ScheduleExpression_.cron_schedule_; +} + +// string kickoff_time_input_arg = 3; +inline void Schedule::clear_kickoff_time_input_arg() { + kickoff_time_input_arg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Schedule::kickoff_time_input_arg() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.kickoff_time_input_arg) + return kickoff_time_input_arg_.GetNoArena(); +} +inline void Schedule::set_kickoff_time_input_arg(const ::std::string& value) { + + kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +#if LANG_CXX11 +inline void Schedule::set_kickoff_time_input_arg(::std::string&& value) { + + kickoff_time_input_arg_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +#endif +inline void Schedule::set_kickoff_time_input_arg(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +inline void Schedule::set_kickoff_time_input_arg(const char* value, size_t size) { + + kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +inline ::std::string* Schedule::mutable_kickoff_time_input_arg() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.kickoff_time_input_arg) + return kickoff_time_input_arg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Schedule::release_kickoff_time_input_arg() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.kickoff_time_input_arg) + + return kickoff_time_input_arg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Schedule::set_allocated_kickoff_time_input_arg(::std::string* kickoff_time_input_arg) { + if (kickoff_time_input_arg != nullptr) { + + } else { + + } + kickoff_time_input_arg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kickoff_time_input_arg); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.kickoff_time_input_arg) +} + +inline bool Schedule::has_ScheduleExpression() const { + return ScheduleExpression_case() != SCHEDULEEXPRESSION_NOT_SET; +} +inline void Schedule::clear_has_ScheduleExpression() { + _oneof_case_[0] = SCHEDULEEXPRESSION_NOT_SET; +} +inline Schedule::ScheduleExpressionCase Schedule::ScheduleExpression_case() const { + return Schedule::ScheduleExpressionCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::FixedRateUnit> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::FixedRateUnit>() { + return ::flyteidl::admin::FixedRateUnit_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fschedule_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.cc new file mode 100644 index 0000000000..b482e017c1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/signal.proto + +#include "flyteidl/admin/signal.pb.h" +#include "flyteidl/admin/signal.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.h new file mode 100644 index 0000000000..f62c30d368 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/signal.proto +#ifndef GRPC_flyteidl_2fadmin_2fsignal_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fsignal_2eproto__INCLUDED + +#include "flyteidl/admin/signal.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fsignal_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.cc new file mode 100644 index 0000000000..ae7a31a1a0 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.cc @@ -0,0 +1,2603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/signal.proto + +#include "flyteidl/admin/signal.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fsignal_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; +namespace flyteidl { +namespace admin { +class SignalGetOrCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SignalGetOrCreateRequest_default_instance_; +class SignalListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SignalListRequest_default_instance_; +class SignalListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SignalList_default_instance_; +class SignalSetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SignalSetRequest_default_instance_; +class SignalSetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SignalSetResponse_default_instance_; +class SignalDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Signal_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsSignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::SignalGetOrCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SignalGetOrCreateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto}, { + &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsSignalListRequest_flyteidl_2fadmin_2fsignal_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SignalListRequest_default_instance_; + new (ptr) ::flyteidl::admin::SignalListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SignalListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSignalListRequest_flyteidl_2fadmin_2fsignal_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsSignalList_flyteidl_2fadmin_2fsignal_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SignalList_default_instance_; + new (ptr) ::flyteidl::admin::SignalList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SignalList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSignalList_flyteidl_2fadmin_2fsignal_2eproto}, { + &scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base,}}; + +static void InitDefaultsSignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SignalSetRequest_default_instance_; + new (ptr) ::flyteidl::admin::SignalSetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SignalSetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto}, { + &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsSignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_SignalSetResponse_default_instance_; + new (ptr) ::flyteidl::admin::SignalSetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SignalSetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto}, {}}; + +static void InitDefaultsSignal_flyteidl_2fadmin_2fsignal_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Signal_default_instance_; + new (ptr) ::flyteidl::admin::Signal(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Signal::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSignal_flyteidl_2fadmin_2fsignal_2eproto}, { + &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2fsignal_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[6]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fsignal_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fsignal_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fsignal_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalGetOrCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalGetOrCreateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalGetOrCreateRequest, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, workflow_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, sort_by_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalList, signals_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetRequest, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, value_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::SignalGetOrCreateRequest)}, + { 7, -1, sizeof(::flyteidl::admin::SignalListRequest)}, + { 17, -1, sizeof(::flyteidl::admin::SignalList)}, + { 24, -1, sizeof(::flyteidl::admin::SignalSetRequest)}, + { 31, -1, sizeof(::flyteidl::admin::SignalSetResponse)}, + { 36, -1, sizeof(::flyteidl::admin::Signal)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SignalListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SignalList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SignalSetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SignalSetResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Signal_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto, "flyteidl/admin/signal.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fsignal_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto, 6, file_level_enum_descriptors_flyteidl_2fadmin_2fsignal_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fsignal_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fsignal_2eproto[] = + "\n\033flyteidl/admin/signal.proto\022\016flyteidl." + "admin\032\033flyteidl/admin/common.proto\032\036flyt" + "eidl/core/identifier.proto\032\034flyteidl/cor" + "e/literals.proto\032\031flyteidl/core/types.pr" + "oto\"q\n\030SignalGetOrCreateRequest\022+\n\002id\030\001 " + "\001(\0132\037.flyteidl.core.SignalIdentifier\022(\n\004" + "type\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\264" + "\001\n\021SignalListRequest\022I\n\025workflow_executi" + "on_id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + "\024.flyteidl.admin.Sort\"D\n\nSignalList\022\'\n\007s" + "ignals\030\001 \003(\0132\026.flyteidl.admin.Signal\022\r\n\005" + "token\030\002 \001(\t\"f\n\020SignalSetRequest\022+\n\002id\030\001 " + "\001(\0132\037.flyteidl.core.SignalIdentifier\022%\n\005" + "value\030\002 \001(\0132\026.flyteidl.core.Literal\"\023\n\021S" + "ignalSetResponse\"\206\001\n\006Signal\022+\n\002id\030\001 \001(\0132" + "\037.flyteidl.core.SignalIdentifier\022(\n\004type" + "\030\002 \001(\0132\032.flyteidl.core.LiteralType\022%\n\005va" + "lue\030\003 \001(\0132\026.flyteidl.core.LiteralB7Z5git" + "hub.com/flyteorg/flyteidl/gen/pb-go/flyt" + "eidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fsignal_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fsignal_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fsignal_2eproto, + "flyteidl/admin/signal.proto", &assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto, 858, +}; + +void AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[4] = + { + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fsignal_2eproto, deps, 4); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fsignal_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void SignalGetOrCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::SignalIdentifier*>( + ::flyteidl::core::SignalIdentifier::internal_default_instance()); + ::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); +} +class SignalGetOrCreateRequest::HasBitSetters { + public: + static const ::flyteidl::core::SignalIdentifier& id(const SignalGetOrCreateRequest* msg); + static const ::flyteidl::core::LiteralType& type(const SignalGetOrCreateRequest* msg); +}; + +const ::flyteidl::core::SignalIdentifier& +SignalGetOrCreateRequest::HasBitSetters::id(const SignalGetOrCreateRequest* msg) { + return *msg->id_; +} +const ::flyteidl::core::LiteralType& +SignalGetOrCreateRequest::HasBitSetters::type(const SignalGetOrCreateRequest* msg) { + return *msg->type_; +} +void SignalGetOrCreateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void SignalGetOrCreateRequest::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignalGetOrCreateRequest::kIdFieldNumber; +const int SignalGetOrCreateRequest::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignalGetOrCreateRequest::SignalGetOrCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SignalGetOrCreateRequest) +} +SignalGetOrCreateRequest::SignalGetOrCreateRequest(const SignalGetOrCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::SignalIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_type()) { + type_ = new ::flyteidl::core::LiteralType(*from.type_); + } else { + type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalGetOrCreateRequest) +} + +void SignalGetOrCreateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&id_)) + sizeof(type_)); +} + +SignalGetOrCreateRequest::~SignalGetOrCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SignalGetOrCreateRequest) + SharedDtor(); +} + +void SignalGetOrCreateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete type_; +} + +void SignalGetOrCreateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SignalGetOrCreateRequest& SignalGetOrCreateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + return *internal_default_instance(); +} + + +void SignalGetOrCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalGetOrCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SignalGetOrCreateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.SignalIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SignalIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SignalGetOrCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SignalGetOrCreateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.SignalIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SignalGetOrCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalGetOrCreateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SignalGetOrCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalGetOrCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::type(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SignalGetOrCreateRequest) +} + +::google::protobuf::uint8* SignalGetOrCreateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalGetOrCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::type(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SignalGetOrCreateRequest) + return target; +} + +size_t SignalGetOrCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalGetOrCreateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignalGetOrCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalGetOrCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const SignalGetOrCreateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalGetOrCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalGetOrCreateRequest) + MergeFrom(*source); + } +} + +void SignalGetOrCreateRequest::MergeFrom(const SignalGetOrCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalGetOrCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::SignalIdentifier::MergeFrom(from.id()); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + } +} + +void SignalGetOrCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalGetOrCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignalGetOrCreateRequest::CopyFrom(const SignalGetOrCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalGetOrCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignalGetOrCreateRequest::IsInitialized() const { + return true; +} + +void SignalGetOrCreateRequest::Swap(SignalGetOrCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void SignalGetOrCreateRequest::InternalSwap(SignalGetOrCreateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(type_, other->type_); +} + +::google::protobuf::Metadata SignalGetOrCreateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignalListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_SignalListRequest_default_instance_._instance.get_mutable()->workflow_execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_SignalListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class SignalListRequest::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id(const SignalListRequest* msg); + static const ::flyteidl::admin::Sort& sort_by(const SignalListRequest* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +SignalListRequest::HasBitSetters::workflow_execution_id(const SignalListRequest* msg) { + return *msg->workflow_execution_id_; +} +const ::flyteidl::admin::Sort& +SignalListRequest::HasBitSetters::sort_by(const SignalListRequest* msg) { + return *msg->sort_by_; +} +void SignalListRequest::clear_workflow_execution_id() { + if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { + delete workflow_execution_id_; + } + workflow_execution_id_ = nullptr; +} +void SignalListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignalListRequest::kWorkflowExecutionIdFieldNumber; +const int SignalListRequest::kLimitFieldNumber; +const int SignalListRequest::kTokenFieldNumber; +const int SignalListRequest::kFiltersFieldNumber; +const int SignalListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignalListRequest::SignalListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SignalListRequest) +} +SignalListRequest::SignalListRequest(const SignalListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_workflow_execution_id()) { + workflow_execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_id_); + } else { + workflow_execution_id_ = nullptr; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalListRequest) +} + +void SignalListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&workflow_execution_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&workflow_execution_id_)) + sizeof(limit_)); +} + +SignalListRequest::~SignalListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SignalListRequest) + SharedDtor(); +} + +void SignalListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete workflow_execution_id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void SignalListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SignalListRequest& SignalListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + return *internal_default_instance(); +} + + +void SignalListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { + delete workflow_execution_id_; + } + workflow_execution_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SignalListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_workflow_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 limit = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.SignalListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filters = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.SignalListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SignalListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SignalListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SignalListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SignalListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SignalListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SignalListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::workflow_execution_id(this), output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SignalListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SignalListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::sort_by(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SignalListRequest) +} + +::google::protobuf::uint8* SignalListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::workflow_execution_id(this), target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SignalListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SignalListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::sort_by(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SignalListRequest) + return target; +} + +size_t SignalListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *workflow_execution_id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignalListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalListRequest) + GOOGLE_DCHECK_NE(&from, this); + const SignalListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalListRequest) + MergeFrom(*source); + } +} + +void SignalListRequest::MergeFrom(const SignalListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_workflow_execution_id()) { + mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void SignalListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignalListRequest::CopyFrom(const SignalListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignalListRequest::IsInitialized() const { + return true; +} + +void SignalListRequest::Swap(SignalListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void SignalListRequest::InternalSwap(SignalListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(workflow_execution_id_, other->workflow_execution_id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata SignalListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignalList::InitAsDefaultInstance() { +} +class SignalList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignalList::kSignalsFieldNumber; +const int SignalList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignalList::SignalList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SignalList) +} +SignalList::SignalList(const SignalList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + signals_(from.signals_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalList) +} + +void SignalList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +SignalList::~SignalList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SignalList) + SharedDtor(); +} + +void SignalList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SignalList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SignalList& SignalList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto.base); + return *internal_default_instance(); +} + + +void SignalList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signals_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SignalList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.Signal signals = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Signal::_InternalParse; + object = msg->add_signals(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.SignalList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SignalList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SignalList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.Signal signals = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_signals())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SignalList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SignalList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SignalList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Signal signals = 1; + for (unsigned int i = 0, + n = static_cast(this->signals_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->signals(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SignalList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SignalList) +} + +::google::protobuf::uint8* SignalList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Signal signals = 1; + for (unsigned int i = 0, + n = static_cast(this->signals_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->signals(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SignalList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SignalList) + return target; +} + +size_t SignalList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Signal signals = 1; + { + unsigned int count = static_cast(this->signals_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->signals(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignalList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalList) + GOOGLE_DCHECK_NE(&from, this); + const SignalList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalList) + MergeFrom(*source); + } +} + +void SignalList::MergeFrom(const SignalList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + signals_.MergeFrom(from.signals_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void SignalList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignalList::CopyFrom(const SignalList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignalList::IsInitialized() const { + return true; +} + +void SignalList::Swap(SignalList* other) { + if (other == this) return; + InternalSwap(other); +} +void SignalList::InternalSwap(SignalList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&signals_)->InternalSwap(CastToBase(&other->signals_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata SignalList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignalSetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_SignalSetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::SignalIdentifier*>( + ::flyteidl::core::SignalIdentifier::internal_default_instance()); + ::flyteidl::admin::_SignalSetRequest_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); +} +class SignalSetRequest::HasBitSetters { + public: + static const ::flyteidl::core::SignalIdentifier& id(const SignalSetRequest* msg); + static const ::flyteidl::core::Literal& value(const SignalSetRequest* msg); +}; + +const ::flyteidl::core::SignalIdentifier& +SignalSetRequest::HasBitSetters::id(const SignalSetRequest* msg) { + return *msg->id_; +} +const ::flyteidl::core::Literal& +SignalSetRequest::HasBitSetters::value(const SignalSetRequest* msg) { + return *msg->value_; +} +void SignalSetRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void SignalSetRequest::clear_value() { + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignalSetRequest::kIdFieldNumber; +const int SignalSetRequest::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignalSetRequest::SignalSetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SignalSetRequest) +} +SignalSetRequest::SignalSetRequest(const SignalSetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::SignalIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_value()) { + value_ = new ::flyteidl::core::Literal(*from.value_); + } else { + value_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalSetRequest) +} + +void SignalSetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&value_) - + reinterpret_cast(&id_)) + sizeof(value_)); +} + +SignalSetRequest::~SignalSetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SignalSetRequest) + SharedDtor(); +} + +void SignalSetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete value_; +} + +void SignalSetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SignalSetRequest& SignalSetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto.base); + return *internal_default_instance(); +} + + +void SignalSetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SignalSetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.SignalIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SignalIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Literal value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_value(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SignalSetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SignalSetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.SignalIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Literal value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SignalSetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalSetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SignalSetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::value(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SignalSetRequest) +} + +::google::protobuf::uint8* SignalSetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalSetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::value(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SignalSetRequest) + return target; +} + +size_t SignalSetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalSetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignalSetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalSetRequest) + GOOGLE_DCHECK_NE(&from, this); + const SignalSetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalSetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalSetRequest) + MergeFrom(*source); + } +} + +void SignalSetRequest::MergeFrom(const SignalSetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalSetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::SignalIdentifier::MergeFrom(from.id()); + } + if (from.has_value()) { + mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); + } +} + +void SignalSetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalSetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignalSetRequest::CopyFrom(const SignalSetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalSetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignalSetRequest::IsInitialized() const { + return true; +} + +void SignalSetRequest::Swap(SignalSetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void SignalSetRequest::InternalSwap(SignalSetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(value_, other->value_); +} + +::google::protobuf::Metadata SignalSetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignalSetResponse::InitAsDefaultInstance() { +} +class SignalSetResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignalSetResponse::SignalSetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SignalSetResponse) +} +SignalSetResponse::SignalSetResponse(const SignalSetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalSetResponse) +} + +void SignalSetResponse::SharedCtor() { +} + +SignalSetResponse::~SignalSetResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SignalSetResponse) + SharedDtor(); +} + +void SignalSetResponse::SharedDtor() { +} + +void SignalSetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SignalSetResponse& SignalSetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto.base); + return *internal_default_instance(); +} + + +void SignalSetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalSetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SignalSetResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SignalSetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SignalSetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.SignalSetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalSetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SignalSetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalSetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SignalSetResponse) +} + +::google::protobuf::uint8* SignalSetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalSetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SignalSetResponse) + return target; +} + +size_t SignalSetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalSetResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignalSetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalSetResponse) + GOOGLE_DCHECK_NE(&from, this); + const SignalSetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalSetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalSetResponse) + MergeFrom(*source); + } +} + +void SignalSetResponse::MergeFrom(const SignalSetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalSetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void SignalSetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalSetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignalSetResponse::CopyFrom(const SignalSetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalSetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignalSetResponse::IsInitialized() const { + return true; +} + +void SignalSetResponse::Swap(SignalSetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void SignalSetResponse::InternalSwap(SignalSetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SignalSetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Signal::InitAsDefaultInstance() { + ::flyteidl::admin::_Signal_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::SignalIdentifier*>( + ::flyteidl::core::SignalIdentifier::internal_default_instance()); + ::flyteidl::admin::_Signal_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); + ::flyteidl::admin::_Signal_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); +} +class Signal::HasBitSetters { + public: + static const ::flyteidl::core::SignalIdentifier& id(const Signal* msg); + static const ::flyteidl::core::LiteralType& type(const Signal* msg); + static const ::flyteidl::core::Literal& value(const Signal* msg); +}; + +const ::flyteidl::core::SignalIdentifier& +Signal::HasBitSetters::id(const Signal* msg) { + return *msg->id_; +} +const ::flyteidl::core::LiteralType& +Signal::HasBitSetters::type(const Signal* msg) { + return *msg->type_; +} +const ::flyteidl::core::Literal& +Signal::HasBitSetters::value(const Signal* msg) { + return *msg->value_; +} +void Signal::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void Signal::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +void Signal::clear_value() { + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Signal::kIdFieldNumber; +const int Signal::kTypeFieldNumber; +const int Signal::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Signal::Signal() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Signal) +} +Signal::Signal(const Signal& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::SignalIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_type()) { + type_ = new ::flyteidl::core::LiteralType(*from.type_); + } else { + type_ = nullptr; + } + if (from.has_value()) { + value_ = new ::flyteidl::core::Literal(*from.value_); + } else { + value_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Signal) +} + +void Signal::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&value_) - + reinterpret_cast(&id_)) + sizeof(value_)); +} + +Signal::~Signal() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Signal) + SharedDtor(); +} + +void Signal::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete type_; + if (this != internal_default_instance()) delete value_; +} + +void Signal::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Signal& Signal::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base); + return *internal_default_instance(); +} + + +void Signal::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Signal) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Signal::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.SignalIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SignalIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Literal value = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_value(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Signal::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Signal) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.SignalIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Literal value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Signal) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Signal) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Signal::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Signal) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::type(this), output); + } + + // .flyteidl.core.Literal value = 3; + if (this->has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::value(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Signal) +} + +::google::protobuf::uint8* Signal::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Signal) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::type(this), target); + } + + // .flyteidl.core.Literal value = 3; + if (this->has_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::value(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Signal) + return target; +} + +size_t Signal::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Signal) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.SignalIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + // .flyteidl.core.Literal value = 3; + if (this->has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Signal::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Signal) + GOOGLE_DCHECK_NE(&from, this); + const Signal* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Signal) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Signal) + MergeFrom(*source); + } +} + +void Signal::MergeFrom(const Signal& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Signal) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::SignalIdentifier::MergeFrom(from.id()); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + } + if (from.has_value()) { + mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); + } +} + +void Signal::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Signal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Signal::CopyFrom(const Signal& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Signal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Signal::IsInitialized() const { + return true; +} + +void Signal::Swap(Signal* other) { + if (other == this) return; + InternalSwap(other); +} +void Signal::InternalSwap(Signal* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(type_, other->type_); + swap(value_, other->value_); +} + +::google::protobuf::Metadata Signal::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalGetOrCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalGetOrCreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SignalGetOrCreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SignalListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalList* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SignalList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalSetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalSetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SignalSetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalSetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalSetResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::SignalSetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Signal* Arena::CreateMaybeMessage< ::flyteidl::admin::Signal >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Signal >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.h new file mode 100644 index 0000000000..98ddbf0ca2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.h @@ -0,0 +1,1536 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/signal.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fsignal_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fsignal_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/types.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fsignal_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fsignal_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto(); +namespace flyteidl { +namespace admin { +class Signal; +class SignalDefaultTypeInternal; +extern SignalDefaultTypeInternal _Signal_default_instance_; +class SignalGetOrCreateRequest; +class SignalGetOrCreateRequestDefaultTypeInternal; +extern SignalGetOrCreateRequestDefaultTypeInternal _SignalGetOrCreateRequest_default_instance_; +class SignalList; +class SignalListDefaultTypeInternal; +extern SignalListDefaultTypeInternal _SignalList_default_instance_; +class SignalListRequest; +class SignalListRequestDefaultTypeInternal; +extern SignalListRequestDefaultTypeInternal _SignalListRequest_default_instance_; +class SignalSetRequest; +class SignalSetRequestDefaultTypeInternal; +extern SignalSetRequestDefaultTypeInternal _SignalSetRequest_default_instance_; +class SignalSetResponse; +class SignalSetResponseDefaultTypeInternal; +extern SignalSetResponseDefaultTypeInternal _SignalSetResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::Signal* Arena::CreateMaybeMessage<::flyteidl::admin::Signal>(Arena*); +template<> ::flyteidl::admin::SignalGetOrCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::SignalGetOrCreateRequest>(Arena*); +template<> ::flyteidl::admin::SignalList* Arena::CreateMaybeMessage<::flyteidl::admin::SignalList>(Arena*); +template<> ::flyteidl::admin::SignalListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::SignalListRequest>(Arena*); +template<> ::flyteidl::admin::SignalSetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::SignalSetRequest>(Arena*); +template<> ::flyteidl::admin::SignalSetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::SignalSetResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class SignalGetOrCreateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalGetOrCreateRequest) */ { + public: + SignalGetOrCreateRequest(); + virtual ~SignalGetOrCreateRequest(); + + SignalGetOrCreateRequest(const SignalGetOrCreateRequest& from); + + inline SignalGetOrCreateRequest& operator=(const SignalGetOrCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignalGetOrCreateRequest(SignalGetOrCreateRequest&& from) noexcept + : SignalGetOrCreateRequest() { + *this = ::std::move(from); + } + + inline SignalGetOrCreateRequest& operator=(SignalGetOrCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SignalGetOrCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignalGetOrCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_SignalGetOrCreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(SignalGetOrCreateRequest* other); + friend void swap(SignalGetOrCreateRequest& a, SignalGetOrCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignalGetOrCreateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + SignalGetOrCreateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignalGetOrCreateRequest& from); + void MergeFrom(const SignalGetOrCreateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignalGetOrCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.SignalIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::SignalIdentifier& id() const; + ::flyteidl::core::SignalIdentifier* release_id(); + ::flyteidl::core::SignalIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::SignalIdentifier* id); + + // .flyteidl.core.LiteralType type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::flyteidl::core::LiteralType& type() const; + ::flyteidl::core::LiteralType* release_type(); + ::flyteidl::core::LiteralType* mutable_type(); + void set_allocated_type(::flyteidl::core::LiteralType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalGetOrCreateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::SignalIdentifier* id_; + ::flyteidl::core::LiteralType* type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; +}; +// ------------------------------------------------------------------- + +class SignalListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalListRequest) */ { + public: + SignalListRequest(); + virtual ~SignalListRequest(); + + SignalListRequest(const SignalListRequest& from); + + inline SignalListRequest& operator=(const SignalListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignalListRequest(SignalListRequest&& from) noexcept + : SignalListRequest() { + *this = ::std::move(from); + } + + inline SignalListRequest& operator=(SignalListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SignalListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignalListRequest* internal_default_instance() { + return reinterpret_cast( + &_SignalListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(SignalListRequest* other); + friend void swap(SignalListRequest& a, SignalListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignalListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + SignalListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignalListRequest& from); + void MergeFrom(const SignalListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignalListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + bool has_workflow_execution_id() const; + void clear_workflow_execution_id(); + static const int kWorkflowExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution_id(); + void set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; +}; +// ------------------------------------------------------------------- + +class SignalList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalList) */ { + public: + SignalList(); + virtual ~SignalList(); + + SignalList(const SignalList& from); + + inline SignalList& operator=(const SignalList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignalList(SignalList&& from) noexcept + : SignalList() { + *this = ::std::move(from); + } + + inline SignalList& operator=(SignalList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SignalList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignalList* internal_default_instance() { + return reinterpret_cast( + &_SignalList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(SignalList* other); + friend void swap(SignalList& a, SignalList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignalList* New() const final { + return CreateMaybeMessage(nullptr); + } + + SignalList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignalList& from); + void MergeFrom(const SignalList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignalList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Signal signals = 1; + int signals_size() const; + void clear_signals(); + static const int kSignalsFieldNumber = 1; + ::flyteidl::admin::Signal* mutable_signals(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >* + mutable_signals(); + const ::flyteidl::admin::Signal& signals(int index) const; + ::flyteidl::admin::Signal* add_signals(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >& + signals() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal > signals_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; +}; +// ------------------------------------------------------------------- + +class SignalSetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalSetRequest) */ { + public: + SignalSetRequest(); + virtual ~SignalSetRequest(); + + SignalSetRequest(const SignalSetRequest& from); + + inline SignalSetRequest& operator=(const SignalSetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignalSetRequest(SignalSetRequest&& from) noexcept + : SignalSetRequest() { + *this = ::std::move(from); + } + + inline SignalSetRequest& operator=(SignalSetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SignalSetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignalSetRequest* internal_default_instance() { + return reinterpret_cast( + &_SignalSetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(SignalSetRequest* other); + friend void swap(SignalSetRequest& a, SignalSetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignalSetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + SignalSetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignalSetRequest& from); + void MergeFrom(const SignalSetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignalSetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.SignalIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::SignalIdentifier& id() const; + ::flyteidl::core::SignalIdentifier* release_id(); + ::flyteidl::core::SignalIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::SignalIdentifier* id); + + // .flyteidl.core.Literal value = 2; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::flyteidl::core::Literal& value() const; + ::flyteidl::core::Literal* release_value(); + ::flyteidl::core::Literal* mutable_value(); + void set_allocated_value(::flyteidl::core::Literal* value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::SignalIdentifier* id_; + ::flyteidl::core::Literal* value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; +}; +// ------------------------------------------------------------------- + +class SignalSetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalSetResponse) */ { + public: + SignalSetResponse(); + virtual ~SignalSetResponse(); + + SignalSetResponse(const SignalSetResponse& from); + + inline SignalSetResponse& operator=(const SignalSetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignalSetResponse(SignalSetResponse&& from) noexcept + : SignalSetResponse() { + *this = ::std::move(from); + } + + inline SignalSetResponse& operator=(SignalSetResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SignalSetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignalSetResponse* internal_default_instance() { + return reinterpret_cast( + &_SignalSetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(SignalSetResponse* other); + friend void swap(SignalSetResponse& a, SignalSetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignalSetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + SignalSetResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignalSetResponse& from); + void MergeFrom(const SignalSetResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignalSetResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; +}; +// ------------------------------------------------------------------- + +class Signal final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Signal) */ { + public: + Signal(); + virtual ~Signal(); + + Signal(const Signal& from); + + inline Signal& operator=(const Signal& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Signal(Signal&& from) noexcept + : Signal() { + *this = ::std::move(from); + } + + inline Signal& operator=(Signal&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Signal& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Signal* internal_default_instance() { + return reinterpret_cast( + &_Signal_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(Signal* other); + friend void swap(Signal& a, Signal& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Signal* New() const final { + return CreateMaybeMessage(nullptr); + } + + Signal* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Signal& from); + void MergeFrom(const Signal& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Signal* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.SignalIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::SignalIdentifier& id() const; + ::flyteidl::core::SignalIdentifier* release_id(); + ::flyteidl::core::SignalIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::SignalIdentifier* id); + + // .flyteidl.core.LiteralType type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::flyteidl::core::LiteralType& type() const; + ::flyteidl::core::LiteralType* release_type(); + ::flyteidl::core::LiteralType* mutable_type(); + void set_allocated_type(::flyteidl::core::LiteralType* type); + + // .flyteidl.core.Literal value = 3; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 3; + const ::flyteidl::core::Literal& value() const; + ::flyteidl::core::Literal* release_value(); + ::flyteidl::core::Literal* mutable_value(); + void set_allocated_value(::flyteidl::core::Literal* value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Signal) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::SignalIdentifier* id_; + ::flyteidl::core::LiteralType* type_; + ::flyteidl::core::Literal* value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SignalGetOrCreateRequest + +// .flyteidl.core.SignalIdentifier id = 1; +inline bool SignalGetOrCreateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::SignalIdentifier& SignalGetOrCreateRequest::id() const { + const ::flyteidl::core::SignalIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalGetOrCreateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SignalIdentifier_default_instance_); +} +inline ::flyteidl::core::SignalIdentifier* SignalGetOrCreateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalGetOrCreateRequest.id) + + ::flyteidl::core::SignalIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::SignalIdentifier* SignalGetOrCreateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalGetOrCreateRequest.id) + return id_; +} +inline void SignalGetOrCreateRequest::set_allocated_id(::flyteidl::core::SignalIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalGetOrCreateRequest.id) +} + +// .flyteidl.core.LiteralType type = 2; +inline bool SignalGetOrCreateRequest::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::LiteralType& SignalGetOrCreateRequest::type() const { + const ::flyteidl::core::LiteralType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalGetOrCreateRequest.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* SignalGetOrCreateRequest::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalGetOrCreateRequest.type) + + ::flyteidl::core::LiteralType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* SignalGetOrCreateRequest::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalGetOrCreateRequest.type) + return type_; +} +inline void SignalGetOrCreateRequest::set_allocated_type(::flyteidl::core::LiteralType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalGetOrCreateRequest.type) +} + +// ------------------------------------------------------------------- + +// SignalListRequest + +// .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; +inline bool SignalListRequest::has_workflow_execution_id() const { + return this != internal_default_instance() && workflow_execution_id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& SignalListRequest::workflow_execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.workflow_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalListRequest::release_workflow_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.workflow_execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_id_; + workflow_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalListRequest::mutable_workflow_execution_id() { + + if (workflow_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + workflow_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.workflow_execution_id) + return workflow_execution_id_; +} +inline void SignalListRequest::set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_id_); + } + if (workflow_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_execution_id, submessage_arena); + } + + } else { + + } + workflow_execution_id_ = workflow_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.workflow_execution_id) +} + +// uint32 limit = 2; +inline void SignalListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 SignalListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.limit) + return limit_; +} +inline void SignalListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.SignalListRequest.limit) +} + +// string token = 3; +inline void SignalListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SignalListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.token) + return token_.GetNoArena(); +} +inline void SignalListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.SignalListRequest.token) +} +#if LANG_CXX11 +inline void SignalListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SignalListRequest.token) +} +#endif +inline void SignalListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SignalListRequest.token) +} +inline void SignalListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SignalListRequest.token) +} +inline ::std::string* SignalListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignalListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignalListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.token) +} + +// string filters = 4; +inline void SignalListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SignalListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.filters) + return filters_.GetNoArena(); +} +inline void SignalListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.SignalListRequest.filters) +} +#if LANG_CXX11 +inline void SignalListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SignalListRequest.filters) +} +#endif +inline void SignalListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SignalListRequest.filters) +} +inline void SignalListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SignalListRequest.filters) +} +inline ::std::string* SignalListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignalListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignalListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool SignalListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline const ::flyteidl::admin::Sort& SignalListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* SignalListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* SignalListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.sort_by) + return sort_by_; +} +inline void SignalListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// SignalList + +// repeated .flyteidl.admin.Signal signals = 1; +inline int SignalList::signals_size() const { + return signals_.size(); +} +inline void SignalList::clear_signals() { + signals_.Clear(); +} +inline ::flyteidl::admin::Signal* SignalList::mutable_signals(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalList.signals) + return signals_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >* +SignalList::mutable_signals() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.SignalList.signals) + return &signals_; +} +inline const ::flyteidl::admin::Signal& SignalList::signals(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalList.signals) + return signals_.Get(index); +} +inline ::flyteidl::admin::Signal* SignalList::add_signals() { + // @@protoc_insertion_point(field_add:flyteidl.admin.SignalList.signals) + return signals_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >& +SignalList::signals() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.SignalList.signals) + return signals_; +} + +// string token = 2; +inline void SignalList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SignalList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalList.token) + return token_.GetNoArena(); +} +inline void SignalList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.SignalList.token) +} +#if LANG_CXX11 +inline void SignalList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SignalList.token) +} +#endif +inline void SignalList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SignalList.token) +} +inline void SignalList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SignalList.token) +} +inline ::std::string* SignalList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignalList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignalList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalList.token) +} + +// ------------------------------------------------------------------- + +// SignalSetRequest + +// .flyteidl.core.SignalIdentifier id = 1; +inline bool SignalSetRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::SignalIdentifier& SignalSetRequest::id() const { + const ::flyteidl::core::SignalIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalSetRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SignalIdentifier_default_instance_); +} +inline ::flyteidl::core::SignalIdentifier* SignalSetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalSetRequest.id) + + ::flyteidl::core::SignalIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::SignalIdentifier* SignalSetRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalSetRequest.id) + return id_; +} +inline void SignalSetRequest::set_allocated_id(::flyteidl::core::SignalIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalSetRequest.id) +} + +// .flyteidl.core.Literal value = 2; +inline bool SignalSetRequest::has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} +inline const ::flyteidl::core::Literal& SignalSetRequest::value() const { + const ::flyteidl::core::Literal* p = value_; + // @@protoc_insertion_point(field_get:flyteidl.admin.SignalSetRequest.value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* SignalSetRequest::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.admin.SignalSetRequest.value) + + ::flyteidl::core::Literal* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flyteidl::core::Literal* SignalSetRequest::mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); + value_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalSetRequest.value) + return value_; +} +inline void SignalSetRequest::set_allocated_value(::flyteidl::core::Literal* value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); + } + if (value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalSetRequest.value) +} + +// ------------------------------------------------------------------- + +// SignalSetResponse + +// ------------------------------------------------------------------- + +// Signal + +// .flyteidl.core.SignalIdentifier id = 1; +inline bool Signal::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::SignalIdentifier& Signal::id() const { + const ::flyteidl::core::SignalIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Signal.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SignalIdentifier_default_instance_); +} +inline ::flyteidl::core::SignalIdentifier* Signal::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Signal.id) + + ::flyteidl::core::SignalIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::SignalIdentifier* Signal::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Signal.id) + return id_; +} +inline void Signal::set_allocated_id(::flyteidl::core::SignalIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Signal.id) +} + +// .flyteidl.core.LiteralType type = 2; +inline bool Signal::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::LiteralType& Signal::type() const { + const ::flyteidl::core::LiteralType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Signal.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* Signal::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Signal.type) + + ::flyteidl::core::LiteralType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* Signal::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Signal.type) + return type_; +} +inline void Signal::set_allocated_type(::flyteidl::core::LiteralType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Signal.type) +} + +// .flyteidl.core.Literal value = 3; +inline bool Signal::has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} +inline const ::flyteidl::core::Literal& Signal::value() const { + const ::flyteidl::core::Literal* p = value_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Signal.value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* Signal::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Signal.value) + + ::flyteidl::core::Literal* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flyteidl::core::Literal* Signal::mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); + value_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Signal.value) + return value_; +} +inline void Signal::set_allocated_value(::flyteidl::core::Literal* value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); + } + if (value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Signal.value) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fsignal_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc new file mode 100644 index 0000000000..194ff6a044 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task.proto + +#include "flyteidl/admin/task.pb.h" +#include "flyteidl/admin/task.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h new file mode 100644 index 0000000000..226d935b0e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task.proto +#ifndef GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED + +#include "flyteidl/admin/task.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc new file mode 100644 index 0000000000..8cbbf7f154 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc @@ -0,0 +1,2400 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +#include "flyteidl/admin/task.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Task_flyteidl_2fadmin_2ftask_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace admin { +class TaskCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskCreateRequest_default_instance_; +class TaskCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskCreateResponse_default_instance_; +class TaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Task_default_instance_; +class TaskListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskList_default_instance_; +class TaskSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskSpec_default_instance_; +class TaskClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskClosure_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsTaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskCreateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base,}}; + +static void InitDefaultsTaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::TaskCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskCreateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto}, {}}; + +static void InitDefaultsTask_flyteidl_2fadmin_2ftask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Task_default_instance_; + new (ptr) ::flyteidl::admin::Task(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Task::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Task_flyteidl_2fadmin_2ftask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTask_flyteidl_2fadmin_2ftask_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base,}}; + +static void InitDefaultsTaskList_flyteidl_2fadmin_2ftask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskList_default_instance_; + new (ptr) ::flyteidl::admin::TaskList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskList_flyteidl_2fadmin_2ftask_2eproto}, { + &scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base,}}; + +static void InitDefaultsTaskSpec_flyteidl_2fadmin_2ftask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskSpec_default_instance_; + new (ptr) ::flyteidl::admin::TaskSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskSpec_flyteidl_2fadmin_2ftask_2eproto}, { + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; + +static void InitDefaultsTaskClosure_flyteidl_2fadmin_2ftask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskClosure_default_instance_; + new (ptr) ::flyteidl::admin::TaskClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskClosure_flyteidl_2fadmin_2ftask_2eproto}, { + &scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2ftask_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[6]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2ftask_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2ftask_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2ftask_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, spec_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, closure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, short_description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskList, tasks_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskSpec, template__), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskSpec, description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskClosure, compiled_task_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskClosure, created_at_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::TaskCreateRequest)}, + { 7, -1, sizeof(::flyteidl::admin::TaskCreateResponse)}, + { 12, -1, sizeof(::flyteidl::admin::Task)}, + { 20, -1, sizeof(::flyteidl::admin::TaskList)}, + { 27, -1, sizeof(::flyteidl::admin::TaskSpec)}, + { 34, -1, sizeof(::flyteidl::admin::TaskClosure)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_TaskCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Task_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskClosure_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2ftask_2eproto, "flyteidl/admin/task.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2ftask_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2ftask_2eproto, 6, file_level_enum_descriptors_flyteidl_2fadmin_2ftask_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2ftask_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2ftask_2eproto[] = + "\n\031flyteidl/admin/task.proto\022\016flyteidl.ad" + "min\032\036flyteidl/core/identifier.proto\032\031fly" + "teidl/core/tasks.proto\032\034flyteidl/core/co" + "mpiler.proto\032\'flyteidl/admin/description" + "_entity.proto\032\037google/protobuf/timestamp" + ".proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132" + "\031.flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\013" + "2\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreate" + "Response\"v\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl." + "core.Identifier\022,\n\007closure\030\002 \001(\0132\033.flyte" + "idl.admin.TaskClosure\022\031\n\021short_descripti" + "on\030\003 \001(\t\">\n\010TaskList\022#\n\005tasks\030\001 \003(\0132\024.fl" + "yteidl.admin.Task\022\r\n\005token\030\002 \001(\t\"q\n\010Task" + "Spec\022-\n\010template\030\001 \001(\0132\033.flyteidl.core.T" + "askTemplate\0226\n\013description\030\002 \001(\0132!.flyte" + "idl.admin.DescriptionEntity\"q\n\013TaskClosu" + "re\0222\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.cor" + "e.CompiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.goo" + "gle.protobuf.TimestampB7Z5github.com/fly" + "teorg/flyteidl/gen/pb-go/flyteidl/adminb" + "\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2ftask_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2ftask_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2ftask_2eproto, + "flyteidl/admin/task.proto", &assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto, 807, +}; + +void AddDescriptors_flyteidl_2fadmin_2ftask_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[5] = + { + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2ftask_2eproto, deps, 5); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2ftask_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2ftask_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void TaskCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_TaskCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::TaskSpec*>( + ::flyteidl::admin::TaskSpec::internal_default_instance()); +} +class TaskCreateRequest::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const TaskCreateRequest* msg); + static const ::flyteidl::admin::TaskSpec& spec(const TaskCreateRequest* msg); +}; + +const ::flyteidl::core::Identifier& +TaskCreateRequest::HasBitSetters::id(const TaskCreateRequest* msg) { + return *msg->id_; +} +const ::flyteidl::admin::TaskSpec& +TaskCreateRequest::HasBitSetters::spec(const TaskCreateRequest* msg) { + return *msg->spec_; +} +void TaskCreateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskCreateRequest::kIdFieldNumber; +const int TaskCreateRequest::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskCreateRequest::TaskCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskCreateRequest) +} +TaskCreateRequest::TaskCreateRequest(const TaskCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::TaskSpec(*from.spec_); + } else { + spec_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskCreateRequest) +} + +void TaskCreateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&spec_) - + reinterpret_cast(&id_)) + sizeof(spec_)); +} + +TaskCreateRequest::~TaskCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskCreateRequest) + SharedDtor(); +} + +void TaskCreateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; +} + +void TaskCreateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskCreateRequest& TaskCreateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto.base); + return *internal_default_instance(); +} + + +void TaskCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskCreateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.TaskSpec spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskSpec::_InternalParse; + object = msg->mutable_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskCreateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskCreateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.TaskSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::spec(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskCreateRequest) +} + +::google::protobuf::uint8* TaskCreateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.TaskSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::spec(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskCreateRequest) + return target; +} + +size_t TaskCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskCreateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.TaskSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskCreateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskCreateRequest) + MergeFrom(*source); + } +} + +void TaskCreateRequest::MergeFrom(const TaskCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::TaskSpec::MergeFrom(from.spec()); + } +} + +void TaskCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskCreateRequest::CopyFrom(const TaskCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskCreateRequest::IsInitialized() const { + return true; +} + +void TaskCreateRequest::Swap(TaskCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskCreateRequest::InternalSwap(TaskCreateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(spec_, other->spec_); +} + +::google::protobuf::Metadata TaskCreateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskCreateResponse::InitAsDefaultInstance() { +} +class TaskCreateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskCreateResponse::TaskCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskCreateResponse) +} +TaskCreateResponse::TaskCreateResponse(const TaskCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskCreateResponse) +} + +void TaskCreateResponse::SharedCtor() { +} + +TaskCreateResponse::~TaskCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskCreateResponse) + SharedDtor(); +} + +void TaskCreateResponse::SharedDtor() { +} + +void TaskCreateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskCreateResponse& TaskCreateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto.base); + return *internal_default_instance(); +} + + +void TaskCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskCreateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskCreateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskCreateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskCreateResponse) +} + +::google::protobuf::uint8* TaskCreateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskCreateResponse) + return target; +} + +size_t TaskCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskCreateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskCreateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskCreateResponse) + MergeFrom(*source); + } +} + +void TaskCreateResponse::MergeFrom(const TaskCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TaskCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskCreateResponse::CopyFrom(const TaskCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskCreateResponse::IsInitialized() const { + return true; +} + +void TaskCreateResponse::Swap(TaskCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskCreateResponse::InternalSwap(TaskCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TaskCreateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Task::InitAsDefaultInstance() { + ::flyteidl::admin::_Task_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_Task_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::TaskClosure*>( + ::flyteidl::admin::TaskClosure::internal_default_instance()); +} +class Task::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const Task* msg); + static const ::flyteidl::admin::TaskClosure& closure(const Task* msg); +}; + +const ::flyteidl::core::Identifier& +Task::HasBitSetters::id(const Task* msg) { + return *msg->id_; +} +const ::flyteidl::admin::TaskClosure& +Task::HasBitSetters::closure(const Task* msg) { + return *msg->closure_; +} +void Task::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Task::kIdFieldNumber; +const int Task::kClosureFieldNumber; +const int Task::kShortDescriptionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Task::Task() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Task) +} +Task::Task(const Task& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.short_description().size() > 0) { + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::TaskClosure(*from.closure_); + } else { + closure_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Task) +} + +void Task::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); +} + +Task::~Task() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Task) + SharedDtor(); +} + +void Task::SharedDtor() { + short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; +} + +void Task::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Task& Task::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base); + return *internal_default_instance(); +} + + +void Task::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Task) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Task::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.TaskClosure closure = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskClosure::_InternalParse; + object = msg->mutable_closure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string short_description = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Task.short_description"); + object = msg->mutable_short_description(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Task::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Task) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskClosure closure = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } else { + goto handle_unusual; + } + break; + } + + // string short_description = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_short_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Task.short_description")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Task) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Task) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Task::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Task) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.TaskClosure closure = 2; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::closure(this), output); + } + + // string short_description = 3; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Task.short_description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->short_description(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Task) +} + +::google::protobuf::uint8* Task::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Task) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.TaskClosure closure = 2; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::closure(this), target); + } + + // string short_description = 3; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Task.short_description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->short_description(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Task) + return target; +} + +size_t Task::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Task) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string short_description = 3; + if (this->short_description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->short_description()); + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.TaskClosure closure = 2; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Task::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Task) + GOOGLE_DCHECK_NE(&from, this); + const Task* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Task) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Task) + MergeFrom(*source); + } +} + +void Task::MergeFrom(const Task& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Task) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.short_description().size() > 0) { + + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::TaskClosure::MergeFrom(from.closure()); + } +} + +void Task::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Task) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Task::CopyFrom(const Task& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Task) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Task::IsInitialized() const { + return true; +} + +void Task::Swap(Task* other) { + if (other == this) return; + InternalSwap(other); +} +void Task::InternalSwap(Task* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(closure_, other->closure_); +} + +::google::protobuf::Metadata Task::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskList::InitAsDefaultInstance() { +} +class TaskList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskList::kTasksFieldNumber; +const int TaskList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskList::TaskList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskList) +} +TaskList::TaskList(const TaskList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + tasks_(from.tasks_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskList) +} + +void TaskList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TaskList::~TaskList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskList) + SharedDtor(); +} + +void TaskList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskList& TaskList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto.base); + return *internal_default_instance(); +} + + +void TaskList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tasks_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.Task tasks = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Task::_InternalParse; + object = msg->add_tasks(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.Task tasks = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tasks())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Task tasks = 1; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->tasks(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskList) +} + +::google::protobuf::uint8* TaskList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Task tasks = 1; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->tasks(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskList) + return target; +} + +size_t TaskList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Task tasks = 1; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskList) + GOOGLE_DCHECK_NE(&from, this); + const TaskList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskList) + MergeFrom(*source); + } +} + +void TaskList::MergeFrom(const TaskList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tasks_.MergeFrom(from.tasks_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void TaskList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskList::CopyFrom(const TaskList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskList::IsInitialized() const { + return true; +} + +void TaskList::Swap(TaskList* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskList::InternalSwap(TaskList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata TaskList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskSpec_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); + ::flyteidl::admin::_TaskSpec_default_instance_._instance.get_mutable()->description_ = const_cast< ::flyteidl::admin::DescriptionEntity*>( + ::flyteidl::admin::DescriptionEntity::internal_default_instance()); +} +class TaskSpec::HasBitSetters { + public: + static const ::flyteidl::core::TaskTemplate& template_(const TaskSpec* msg); + static const ::flyteidl::admin::DescriptionEntity& description(const TaskSpec* msg); +}; + +const ::flyteidl::core::TaskTemplate& +TaskSpec::HasBitSetters::template_(const TaskSpec* msg) { + return *msg->template__; +} +const ::flyteidl::admin::DescriptionEntity& +TaskSpec::HasBitSetters::description(const TaskSpec* msg) { + return *msg->description_; +} +void TaskSpec::clear_template_() { + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; +} +void TaskSpec::clear_description() { + if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { + delete description_; + } + description_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskSpec::kTemplateFieldNumber; +const int TaskSpec::kDescriptionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskSpec::TaskSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskSpec) +} +TaskSpec::TaskSpec(const TaskSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::TaskTemplate(*from.template__); + } else { + template__ = nullptr; + } + if (from.has_description()) { + description_ = new ::flyteidl::admin::DescriptionEntity(*from.description_); + } else { + description_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskSpec) +} + +void TaskSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base); + ::memset(&template__, 0, static_cast( + reinterpret_cast(&description_) - + reinterpret_cast(&template__)) + sizeof(description_)); +} + +TaskSpec::~TaskSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskSpec) + SharedDtor(); +} + +void TaskSpec::SharedDtor() { + if (this != internal_default_instance()) delete template__; + if (this != internal_default_instance()) delete description_; +} + +void TaskSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskSpec& TaskSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base); + return *internal_default_instance(); +} + + +void TaskSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; + if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { + delete description_; + } + description_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskTemplate template = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->mutable_template_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.DescriptionEntity description = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::DescriptionEntity::_InternalParse; + object = msg->mutable_description(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.DescriptionEntity description = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_description())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::template_(this), output); + } + + // .flyteidl.admin.DescriptionEntity description = 2; + if (this->has_description()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::description(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskSpec) +} + +::google::protobuf::uint8* TaskSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::template_(this), target); + } + + // .flyteidl.admin.DescriptionEntity description = 2; + if (this->has_description()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::description(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskSpec) + return target; +} + +size_t TaskSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *template__); + } + + // .flyteidl.admin.DescriptionEntity description = 2; + if (this->has_description()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *description_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskSpec) + GOOGLE_DCHECK_NE(&from, this); + const TaskSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskSpec) + MergeFrom(*source); + } +} + +void TaskSpec::MergeFrom(const TaskSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); + } + if (from.has_description()) { + mutable_description()->::flyteidl::admin::DescriptionEntity::MergeFrom(from.description()); + } +} + +void TaskSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskSpec::CopyFrom(const TaskSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskSpec::IsInitialized() const { + return true; +} + +void TaskSpec::Swap(TaskSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskSpec::InternalSwap(TaskSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(template__, other->template__); + swap(description_, other->description_); +} + +::google::protobuf::Metadata TaskSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskClosure_default_instance_._instance.get_mutable()->compiled_task_ = const_cast< ::flyteidl::core::CompiledTask*>( + ::flyteidl::core::CompiledTask::internal_default_instance()); + ::flyteidl::admin::_TaskClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class TaskClosure::HasBitSetters { + public: + static const ::flyteidl::core::CompiledTask& compiled_task(const TaskClosure* msg); + static const ::google::protobuf::Timestamp& created_at(const TaskClosure* msg); +}; + +const ::flyteidl::core::CompiledTask& +TaskClosure::HasBitSetters::compiled_task(const TaskClosure* msg) { + return *msg->compiled_task_; +} +const ::google::protobuf::Timestamp& +TaskClosure::HasBitSetters::created_at(const TaskClosure* msg) { + return *msg->created_at_; +} +void TaskClosure::clear_compiled_task() { + if (GetArenaNoVirtual() == nullptr && compiled_task_ != nullptr) { + delete compiled_task_; + } + compiled_task_ = nullptr; +} +void TaskClosure::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskClosure::kCompiledTaskFieldNumber; +const int TaskClosure::kCreatedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskClosure::TaskClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskClosure) +} +TaskClosure::TaskClosure(const TaskClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_compiled_task()) { + compiled_task_ = new ::flyteidl::core::CompiledTask(*from.compiled_task_); + } else { + compiled_task_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskClosure) +} + +void TaskClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base); + ::memset(&compiled_task_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&compiled_task_)) + sizeof(created_at_)); +} + +TaskClosure::~TaskClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskClosure) + SharedDtor(); +} + +void TaskClosure::SharedDtor() { + if (this != internal_default_instance()) delete compiled_task_; + if (this != internal_default_instance()) delete created_at_; +} + +void TaskClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskClosure& TaskClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base); + return *internal_default_instance(); +} + + +void TaskClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && compiled_task_ != nullptr) { + delete compiled_task_; + } + compiled_task_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.CompiledTask compiled_task = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CompiledTask::_InternalParse; + object = msg->mutable_compiled_task(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp created_at = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.CompiledTask compiled_task = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_compiled_task())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledTask compiled_task = 1; + if (this->has_compiled_task()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::compiled_task(this), output); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::created_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskClosure) +} + +::google::protobuf::uint8* TaskClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledTask compiled_task = 1; + if (this->has_compiled_task()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::compiled_task(this), target); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::created_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskClosure) + return target; +} + +size_t TaskClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.CompiledTask compiled_task = 1; + if (this->has_compiled_task()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *compiled_task_); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskClosure) + GOOGLE_DCHECK_NE(&from, this); + const TaskClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskClosure) + MergeFrom(*source); + } +} + +void TaskClosure::MergeFrom(const TaskClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_compiled_task()) { + mutable_compiled_task()->::flyteidl::core::CompiledTask::MergeFrom(from.compiled_task()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } +} + +void TaskClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskClosure::CopyFrom(const TaskClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskClosure::IsInitialized() const { + return true; +} + +void TaskClosure::Swap(TaskClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskClosure::InternalSwap(TaskClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(compiled_task_, other->compiled_task_); + swap(created_at_, other->created_at_); +} + +::google::protobuf::Metadata TaskClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskCreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskCreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskCreateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskCreateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Task* Arena::CreateMaybeMessage< ::flyteidl::admin::Task >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Task >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskList* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskClosure >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h new file mode 100644 index 0000000000..b11636d135 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h @@ -0,0 +1,1406 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/compiler.pb.h" +#include "flyteidl/admin/description_entity.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2ftask_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2ftask_2eproto(); +namespace flyteidl { +namespace admin { +class Task; +class TaskDefaultTypeInternal; +extern TaskDefaultTypeInternal _Task_default_instance_; +class TaskClosure; +class TaskClosureDefaultTypeInternal; +extern TaskClosureDefaultTypeInternal _TaskClosure_default_instance_; +class TaskCreateRequest; +class TaskCreateRequestDefaultTypeInternal; +extern TaskCreateRequestDefaultTypeInternal _TaskCreateRequest_default_instance_; +class TaskCreateResponse; +class TaskCreateResponseDefaultTypeInternal; +extern TaskCreateResponseDefaultTypeInternal _TaskCreateResponse_default_instance_; +class TaskList; +class TaskListDefaultTypeInternal; +extern TaskListDefaultTypeInternal _TaskList_default_instance_; +class TaskSpec; +class TaskSpecDefaultTypeInternal; +extern TaskSpecDefaultTypeInternal _TaskSpec_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::Task* Arena::CreateMaybeMessage<::flyteidl::admin::Task>(Arena*); +template<> ::flyteidl::admin::TaskClosure* Arena::CreateMaybeMessage<::flyteidl::admin::TaskClosure>(Arena*); +template<> ::flyteidl::admin::TaskCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskCreateRequest>(Arena*); +template<> ::flyteidl::admin::TaskCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskCreateResponse>(Arena*); +template<> ::flyteidl::admin::TaskList* Arena::CreateMaybeMessage<::flyteidl::admin::TaskList>(Arena*); +template<> ::flyteidl::admin::TaskSpec* Arena::CreateMaybeMessage<::flyteidl::admin::TaskSpec>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class TaskCreateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskCreateRequest) */ { + public: + TaskCreateRequest(); + virtual ~TaskCreateRequest(); + + TaskCreateRequest(const TaskCreateRequest& from); + + inline TaskCreateRequest& operator=(const TaskCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskCreateRequest(TaskCreateRequest&& from) noexcept + : TaskCreateRequest() { + *this = ::std::move(from); + } + + inline TaskCreateRequest& operator=(TaskCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskCreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(TaskCreateRequest* other); + friend void swap(TaskCreateRequest& a, TaskCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskCreateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskCreateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskCreateRequest& from); + void MergeFrom(const TaskCreateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.TaskSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::TaskSpec& spec() const; + ::flyteidl::admin::TaskSpec* release_spec(); + ::flyteidl::admin::TaskSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::TaskSpec* spec); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::TaskSpec* spec_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskCreateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskCreateResponse) */ { + public: + TaskCreateResponse(); + virtual ~TaskCreateResponse(); + + TaskCreateResponse(const TaskCreateResponse& from); + + inline TaskCreateResponse& operator=(const TaskCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskCreateResponse(TaskCreateResponse&& from) noexcept + : TaskCreateResponse() { + *this = ::std::move(from); + } + + inline TaskCreateResponse& operator=(TaskCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskCreateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(TaskCreateResponse* other); + friend void swap(TaskCreateResponse& a, TaskCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskCreateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskCreateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskCreateResponse& from); + void MergeFrom(const TaskCreateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class Task final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Task) */ { + public: + Task(); + virtual ~Task(); + + Task(const Task& from); + + inline Task& operator=(const Task& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Task(Task&& from) noexcept + : Task() { + *this = ::std::move(from); + } + + inline Task& operator=(Task&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Task& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Task* internal_default_instance() { + return reinterpret_cast( + &_Task_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(Task* other); + friend void swap(Task& a, Task& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Task* New() const final { + return CreateMaybeMessage(nullptr); + } + + Task* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Task& from); + void MergeFrom(const Task& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Task* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string short_description = 3; + void clear_short_description(); + static const int kShortDescriptionFieldNumber = 3; + const ::std::string& short_description() const; + void set_short_description(const ::std::string& value); + #if LANG_CXX11 + void set_short_description(::std::string&& value); + #endif + void set_short_description(const char* value); + void set_short_description(const char* value, size_t size); + ::std::string* mutable_short_description(); + ::std::string* release_short_description(); + void set_allocated_short_description(::std::string* short_description); + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.TaskClosure closure = 2; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 2; + const ::flyteidl::admin::TaskClosure& closure() const; + ::flyteidl::admin::TaskClosure* release_closure(); + ::flyteidl::admin::TaskClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::TaskClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr short_description_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::TaskClosure* closure_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskList) */ { + public: + TaskList(); + virtual ~TaskList(); + + TaskList(const TaskList& from); + + inline TaskList& operator=(const TaskList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskList(TaskList&& from) noexcept + : TaskList() { + *this = ::std::move(from); + } + + inline TaskList& operator=(TaskList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskList* internal_default_instance() { + return reinterpret_cast( + &_TaskList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TaskList* other); + friend void swap(TaskList& a, TaskList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskList* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskList& from); + void MergeFrom(const TaskList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Task tasks = 1; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 1; + ::flyteidl::admin::Task* mutable_tasks(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >* + mutable_tasks(); + const ::flyteidl::admin::Task& tasks(int index) const; + ::flyteidl::admin::Task* add_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >& + tasks() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task > tasks_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskSpec) */ { + public: + TaskSpec(); + virtual ~TaskSpec(); + + TaskSpec(const TaskSpec& from); + + inline TaskSpec& operator=(const TaskSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskSpec(TaskSpec&& from) noexcept + : TaskSpec() { + *this = ::std::move(from); + } + + inline TaskSpec& operator=(TaskSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskSpec* internal_default_instance() { + return reinterpret_cast( + &_TaskSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TaskSpec* other); + friend void swap(TaskSpec& a, TaskSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskSpec& from); + void MergeFrom(const TaskSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::TaskTemplate& template_() const; + ::flyteidl::core::TaskTemplate* release_template_(); + ::flyteidl::core::TaskTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); + + // .flyteidl.admin.DescriptionEntity description = 2; + bool has_description() const; + void clear_description(); + static const int kDescriptionFieldNumber = 2; + const ::flyteidl::admin::DescriptionEntity& description() const; + ::flyteidl::admin::DescriptionEntity* release_description(); + ::flyteidl::admin::DescriptionEntity* mutable_description(); + void set_allocated_description(::flyteidl::admin::DescriptionEntity* description); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskTemplate* template__; + ::flyteidl::admin::DescriptionEntity* description_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskClosure) */ { + public: + TaskClosure(); + virtual ~TaskClosure(); + + TaskClosure(const TaskClosure& from); + + inline TaskClosure& operator=(const TaskClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskClosure(TaskClosure&& from) noexcept + : TaskClosure() { + *this = ::std::move(from); + } + + inline TaskClosure& operator=(TaskClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskClosure* internal_default_instance() { + return reinterpret_cast( + &_TaskClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(TaskClosure* other); + friend void swap(TaskClosure& a, TaskClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskClosure& from); + void MergeFrom(const TaskClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.CompiledTask compiled_task = 1; + bool has_compiled_task() const; + void clear_compiled_task(); + static const int kCompiledTaskFieldNumber = 1; + const ::flyteidl::core::CompiledTask& compiled_task() const; + ::flyteidl::core::CompiledTask* release_compiled_task(); + ::flyteidl::core::CompiledTask* mutable_compiled_task(); + void set_allocated_compiled_task(::flyteidl::core::CompiledTask* compiled_task); + + // .google.protobuf.Timestamp created_at = 2; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 2; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::CompiledTask* compiled_task_; + ::google::protobuf::Timestamp* created_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TaskCreateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool TaskCreateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& TaskCreateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskCreateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskCreateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskCreateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* TaskCreateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskCreateRequest.id) + return id_; +} +inline void TaskCreateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskCreateRequest.id) +} + +// .flyteidl.admin.TaskSpec spec = 2; +inline bool TaskCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline void TaskCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::flyteidl::admin::TaskSpec& TaskCreateRequest::spec() const { + const ::flyteidl::admin::TaskSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskCreateRequest.spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskSpec_default_instance_); +} +inline ::flyteidl::admin::TaskSpec* TaskCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskCreateRequest.spec) + + ::flyteidl::admin::TaskSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::flyteidl::admin::TaskSpec* TaskCreateRequest::mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::TaskSpec>(GetArenaNoVirtual()); + spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskCreateRequest.spec) + return spec_; +} +inline void TaskCreateRequest::set_allocated_spec(::flyteidl::admin::TaskSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskCreateRequest.spec) +} + +// ------------------------------------------------------------------- + +// TaskCreateResponse + +// ------------------------------------------------------------------- + +// Task + +// .flyteidl.core.Identifier id = 1; +inline bool Task::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& Task::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Task.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* Task::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Task.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* Task::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.id) + return id_; +} +inline void Task::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Task.id) +} + +// .flyteidl.admin.TaskClosure closure = 2; +inline bool Task::has_closure() const { + return this != internal_default_instance() && closure_ != nullptr; +} +inline void Task::clear_closure() { + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; +} +inline const ::flyteidl::admin::TaskClosure& Task::closure() const { + const ::flyteidl::admin::TaskClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Task.closure) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskClosure_default_instance_); +} +inline ::flyteidl::admin::TaskClosure* Task::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Task.closure) + + ::flyteidl::admin::TaskClosure* temp = closure_; + closure_ = nullptr; + return temp; +} +inline ::flyteidl::admin::TaskClosure* Task::mutable_closure() { + + if (closure_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::TaskClosure>(GetArenaNoVirtual()); + closure_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.closure) + return closure_; +} +inline void Task::set_allocated_closure(::flyteidl::admin::TaskClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Task.closure) +} + +// string short_description = 3; +inline void Task::clear_short_description() { + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Task::short_description() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Task.short_description) + return short_description_.GetNoArena(); +} +inline void Task::set_short_description(const ::std::string& value) { + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Task.short_description) +} +#if LANG_CXX11 +inline void Task::set_short_description(::std::string&& value) { + + short_description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Task.short_description) +} +#endif +inline void Task::set_short_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Task.short_description) +} +inline void Task::set_short_description(const char* value, size_t size) { + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Task.short_description) +} +inline ::std::string* Task::mutable_short_description() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.short_description) + return short_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Task::release_short_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Task.short_description) + + return short_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Task::set_allocated_short_description(::std::string* short_description) { + if (short_description != nullptr) { + + } else { + + } + short_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_description); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Task.short_description) +} + +// ------------------------------------------------------------------- + +// TaskList + +// repeated .flyteidl.admin.Task tasks = 1; +inline int TaskList::tasks_size() const { + return tasks_.size(); +} +inline void TaskList::clear_tasks() { + tasks_.Clear(); +} +inline ::flyteidl::admin::Task* TaskList::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskList.tasks) + return tasks_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >* +TaskList::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskList.tasks) + return &tasks_; +} +inline const ::flyteidl::admin::Task& TaskList::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskList.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::admin::Task* TaskList::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.admin.TaskList.tasks) + return tasks_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >& +TaskList::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.TaskList.tasks) + return tasks_; +} + +// string token = 2; +inline void TaskList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskList.token) + return token_.GetNoArena(); +} +inline void TaskList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskList.token) +} +#if LANG_CXX11 +inline void TaskList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskList.token) +} +#endif +inline void TaskList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskList.token) +} +inline void TaskList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskList.token) +} +inline ::std::string* TaskList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskList.token) +} + +// ------------------------------------------------------------------- + +// TaskSpec + +// .flyteidl.core.TaskTemplate template = 1; +inline bool TaskSpec::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::TaskTemplate& TaskSpec::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskSpec.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* TaskSpec::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskSpec.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskTemplate* TaskSpec::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskSpec.template) + return template__; +} +inline void TaskSpec::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskSpec.template) +} + +// .flyteidl.admin.DescriptionEntity description = 2; +inline bool TaskSpec::has_description() const { + return this != internal_default_instance() && description_ != nullptr; +} +inline const ::flyteidl::admin::DescriptionEntity& TaskSpec::description() const { + const ::flyteidl::admin::DescriptionEntity* p = description_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskSpec.description) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_DescriptionEntity_default_instance_); +} +inline ::flyteidl::admin::DescriptionEntity* TaskSpec::release_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskSpec.description) + + ::flyteidl::admin::DescriptionEntity* temp = description_; + description_ = nullptr; + return temp; +} +inline ::flyteidl::admin::DescriptionEntity* TaskSpec::mutable_description() { + + if (description_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::DescriptionEntity>(GetArenaNoVirtual()); + description_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskSpec.description) + return description_; +} +inline void TaskSpec::set_allocated_description(::flyteidl::admin::DescriptionEntity* description) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(description_); + } + if (description) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + description = ::google::protobuf::internal::GetOwnedMessage( + message_arena, description, submessage_arena); + } + + } else { + + } + description_ = description; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskSpec.description) +} + +// ------------------------------------------------------------------- + +// TaskClosure + +// .flyteidl.core.CompiledTask compiled_task = 1; +inline bool TaskClosure::has_compiled_task() const { + return this != internal_default_instance() && compiled_task_ != nullptr; +} +inline const ::flyteidl::core::CompiledTask& TaskClosure::compiled_task() const { + const ::flyteidl::core::CompiledTask* p = compiled_task_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskClosure.compiled_task) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledTask_default_instance_); +} +inline ::flyteidl::core::CompiledTask* TaskClosure::release_compiled_task() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskClosure.compiled_task) + + ::flyteidl::core::CompiledTask* temp = compiled_task_; + compiled_task_ = nullptr; + return temp; +} +inline ::flyteidl::core::CompiledTask* TaskClosure::mutable_compiled_task() { + + if (compiled_task_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CompiledTask>(GetArenaNoVirtual()); + compiled_task_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskClosure.compiled_task) + return compiled_task_; +} +inline void TaskClosure::set_allocated_compiled_task(::flyteidl::core::CompiledTask* compiled_task) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_task_); + } + if (compiled_task) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + compiled_task = ::google::protobuf::internal::GetOwnedMessage( + message_arena, compiled_task, submessage_arena); + } + + } else { + + } + compiled_task_ = compiled_task; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskClosure.compiled_task) +} + +// .google.protobuf.Timestamp created_at = 2; +inline bool TaskClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& TaskClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskClosure.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* TaskClosure::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskClosure.created_at) + return created_at_; +} +inline void TaskClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskClosure.created_at) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc new file mode 100644 index 0000000000..44c3c2607b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task_execution.proto + +#include "flyteidl/admin/task_execution.pb.h" +#include "flyteidl/admin/task_execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h new file mode 100644 index 0000000000..205eaa5699 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task_execution.proto +#ifndef GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED + +#include "flyteidl/admin/task_execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc new file mode 100644 index 0000000000..92e0ce3ae9 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc @@ -0,0 +1,4669 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +#include "flyteidl/admin/task_execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace admin { +class TaskExecutionGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionGetRequest_default_instance_; +class TaskExecutionListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionListRequest_default_instance_; +class TaskExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecution_default_instance_; +class TaskExecutionListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionList_default_instance_; +class TaskExecutionClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; + const ::flyteidl::core::LiteralMap* output_data_; +} _TaskExecutionClosure_default_instance_; +class ReasonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Reason_default_instance_; +class TaskExecutionGetDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionGetDataRequest_default_instance_; +class TaskExecutionGetDataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionGetDataResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsTaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsTaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionListRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionListRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +static void InitDefaultsTaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecution_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecution::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base,}}; + +static void InitDefaultsTaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionList_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base,}}; + +static void InitDefaultsTaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionClosure_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<8> scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsTaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, + &scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base, + &scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base,}}; + +static void InitDefaultsReason_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Reason_default_instance_; + new (ptr) ::flyteidl::admin::Reason(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Reason::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReason_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsTaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionGetDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionGetDataRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsTaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionGetDataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionGetDataResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsTaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { + &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[8]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, node_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, limit_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, filters_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, sort_by_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, input_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, closure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, is_parent_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, task_executions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, error_), + offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, output_data_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, logs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, started_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, duration_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, created_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, updated_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, custom_info_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, reason_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, event_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, reasons_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, output_result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Reason, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Reason, occurred_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Reason, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataRequest, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, full_inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, full_outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, flyte_urls_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::TaskExecutionGetRequest)}, + { 6, -1, sizeof(::flyteidl::admin::TaskExecutionListRequest)}, + { 16, -1, sizeof(::flyteidl::admin::TaskExecution)}, + { 25, -1, sizeof(::flyteidl::admin::TaskExecutionList)}, + { 32, -1, sizeof(::flyteidl::admin::TaskExecutionClosure)}, + { 53, -1, sizeof(::flyteidl::admin::Reason)}, + { 60, -1, sizeof(::flyteidl::admin::TaskExecutionGetDataRequest)}, + { 66, -1, sizeof(::flyteidl::admin::TaskExecutionGetDataResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecution_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Reason_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, "flyteidl/admin/task_execution.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto, 8, file_level_enum_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2ftask_5fexecution_2eproto[] = + "\n#flyteidl/admin/task_execution.proto\022\016f" + "lyteidl.admin\032\033flyteidl/admin/common.pro" + "to\032\035flyteidl/core/execution.proto\032\036flyte" + "idl/core/identifier.proto\032\034flyteidl/core" + "/literals.proto\032\032flyteidl/event/event.pr" + "oto\032\037google/protobuf/timestamp.proto\032\036go" + "ogle/protobuf/duration.proto\032\034google/pro" + "tobuf/struct.proto\"M\n\027TaskExecutionGetRe" + "quest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.TaskEx" + "ecutionIdentifier\"\263\001\n\030TaskExecutionListR" + "equest\022A\n\021node_execution_id\030\001 \001(\0132&.flyt" + "eidl.core.NodeExecutionIdentifier\022\r\n\005lim" + "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + "\240\001\n\rTaskExecution\0222\n\002id\030\001 \001(\0132&.flyteidl" + ".core.TaskExecutionIdentifier\022\021\n\tinput_u" + "ri\030\002 \001(\t\0225\n\007closure\030\003 \001(\0132$.flyteidl.adm" + "in.TaskExecutionClosure\022\021\n\tis_parent\030\004 \001" + "(\010\"Z\n\021TaskExecutionList\0226\n\017task_executio" + "ns\030\001 \003(\0132\035.flyteidl.admin.TaskExecution\022" + "\r\n\005token\030\002 \001(\t\"\207\005\n\024TaskExecutionClosure\022" + "\030\n\noutput_uri\030\001 \001(\tB\002\030\001H\000\022.\n\005error\030\002 \001(\013" + "2\035.flyteidl.core.ExecutionErrorH\000\0224\n\013out" + "put_data\030\014 \001(\0132\031.flyteidl.core.LiteralMa" + "pB\002\030\001H\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.T" + "askExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.flyte" + "idl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\0132\032.g" + "oogle.protobuf.Timestamp\022+\n\010duration\030\006 \001" + "(\0132\031.google.protobuf.Duration\022.\n\ncreated" + "_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022.\n" + "\nupdated_at\030\010 \001(\0132\032.google.protobuf.Time" + "stamp\022,\n\013custom_info\030\t \001(\0132\027.google.prot" + "obuf.Struct\022\016\n\006reason\030\n \001(\t\022\021\n\ttask_type" + "\030\013 \001(\t\0227\n\010metadata\030\020 \001(\0132%.flyteidl.even" + "t.TaskExecutionMetadata\022\025\n\revent_version" + "\030\021 \001(\005\022\'\n\007reasons\030\022 \003(\0132\026.flyteidl.admin" + ".ReasonB\017\n\routput_result\"J\n\006Reason\022/\n\013oc" + "curred_at\030\001 \001(\0132\032.google.protobuf.Timest" + "amp\022\017\n\007message\030\002 \001(\t\"Q\n\033TaskExecutionGet" + "DataRequest\0222\n\002id\030\001 \001(\0132&.flyteidl.core." + "TaskExecutionIdentifier\"\211\002\n\034TaskExecutio" + "nGetDataResponse\022+\n\006inputs\030\001 \001(\0132\027.flyte" + "idl.admin.UrlBlobB\002\030\001\022,\n\007outputs\030\002 \001(\0132\027" + ".flyteidl.admin.UrlBlobB\002\030\001\022.\n\013full_inpu" + "ts\030\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014f" + "ull_outputs\030\004 \001(\0132\031.flyteidl.core.Litera" + "lMap\022-\n\nflyte_urls\030\005 \001(\0132\031.flyteidl.admi" + "n.FlyteURLsB7Z5github.com/flyteorg/flyte" + "idl/gen/pb-go/flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2ftask_5fexecution_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2ftask_5fexecution_2eproto, + "flyteidl/admin/task_execution.proto", &assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto, 1956, +}; + +void AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[8] = + { + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fevent_2fevent_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto, deps, 8); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2ftask_5fexecution_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void TaskExecutionGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +class TaskExecutionGetRequest::HasBitSetters { + public: + static const ::flyteidl::core::TaskExecutionIdentifier& id(const TaskExecutionGetRequest* msg); +}; + +const ::flyteidl::core::TaskExecutionIdentifier& +TaskExecutionGetRequest::HasBitSetters::id(const TaskExecutionGetRequest* msg) { + return *msg->id_; +} +void TaskExecutionGetRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionGetRequest::TaskExecutionGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetRequest) +} +TaskExecutionGetRequest::TaskExecutionGetRequest(const TaskExecutionGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetRequest) +} + +void TaskExecutionGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + id_ = nullptr; +} + +TaskExecutionGetRequest::~TaskExecutionGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetRequest) + SharedDtor(); +} + +void TaskExecutionGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void TaskExecutionGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionGetRequest& TaskExecutionGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionGetRequest) +} + +::google::protobuf::uint8* TaskExecutionGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionGetRequest) + return target; +} + +size_t TaskExecutionGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetRequest) + MergeFrom(*source); + } +} + +void TaskExecutionGetRequest::MergeFrom(const TaskExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } +} + +void TaskExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionGetRequest::CopyFrom(const TaskExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionGetRequest::IsInitialized() const { + return true; +} + +void TaskExecutionGetRequest::Swap(TaskExecutionGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionGetRequest::InternalSwap(TaskExecutionGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata TaskExecutionGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionListRequest_default_instance_._instance.get_mutable()->node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +class TaskExecutionListRequest::HasBitSetters { + public: + static const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id(const TaskExecutionListRequest* msg); + static const ::flyteidl::admin::Sort& sort_by(const TaskExecutionListRequest* msg); +}; + +const ::flyteidl::core::NodeExecutionIdentifier& +TaskExecutionListRequest::HasBitSetters::node_execution_id(const TaskExecutionListRequest* msg) { + return *msg->node_execution_id_; +} +const ::flyteidl::admin::Sort& +TaskExecutionListRequest::HasBitSetters::sort_by(const TaskExecutionListRequest* msg) { + return *msg->sort_by_; +} +void TaskExecutionListRequest::clear_node_execution_id() { + if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { + delete node_execution_id_; + } + node_execution_id_ = nullptr; +} +void TaskExecutionListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionListRequest::kNodeExecutionIdFieldNumber; +const int TaskExecutionListRequest::kLimitFieldNumber; +const int TaskExecutionListRequest::kTokenFieldNumber; +const int TaskExecutionListRequest::kFiltersFieldNumber; +const int TaskExecutionListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionListRequest::TaskExecutionListRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionListRequest) +} +TaskExecutionListRequest::TaskExecutionListRequest(const TaskExecutionListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_node_execution_id()) { + node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.node_execution_id_); + } else { + node_execution_id_ = nullptr; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = nullptr; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionListRequest) +} + +void TaskExecutionListRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&node_execution_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&node_execution_id_)) + sizeof(limit_)); +} + +TaskExecutionListRequest::~TaskExecutionListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionListRequest) + SharedDtor(); +} + +void TaskExecutionListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_execution_id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void TaskExecutionListRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionListRequest& TaskExecutionListRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { + delete node_execution_id_; + } + node_execution_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { + delete sort_by_; + } + sort_by_ = nullptr; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionListRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_node_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 limit = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionListRequest.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filters = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionListRequest.filters"); + object = msg->mutable_filters(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Sort::_InternalParse; + object = msg->mutable_sort_by(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionListRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionListRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + if (this->has_node_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::node_execution_id(this), output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::sort_by(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionListRequest) +} + +::google::protobuf::uint8* TaskExecutionListRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + if (this->has_node_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::node_execution_id(this), target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::sort_by(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionListRequest) + return target; +} + +size_t TaskExecutionListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionListRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + if (this->has_node_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_execution_id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionListRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionListRequest) + MergeFrom(*source); + } +} + +void TaskExecutionListRequest::MergeFrom(const TaskExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_node_execution_id()) { + mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void TaskExecutionListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionListRequest::CopyFrom(const TaskExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionListRequest::IsInitialized() const { + return true; +} + +void TaskExecutionListRequest::Swap(TaskExecutionListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionListRequest::InternalSwap(TaskExecutionListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(node_execution_id_, other->node_execution_id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); +} + +::google::protobuf::Metadata TaskExecutionListRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecution::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_TaskExecution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::TaskExecutionClosure*>( + ::flyteidl::admin::TaskExecutionClosure::internal_default_instance()); +} +class TaskExecution::HasBitSetters { + public: + static const ::flyteidl::core::TaskExecutionIdentifier& id(const TaskExecution* msg); + static const ::flyteidl::admin::TaskExecutionClosure& closure(const TaskExecution* msg); +}; + +const ::flyteidl::core::TaskExecutionIdentifier& +TaskExecution::HasBitSetters::id(const TaskExecution* msg) { + return *msg->id_; +} +const ::flyteidl::admin::TaskExecutionClosure& +TaskExecution::HasBitSetters::closure(const TaskExecution* msg) { + return *msg->closure_; +} +void TaskExecution::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecution::kIdFieldNumber; +const int TaskExecution::kInputUriFieldNumber; +const int TaskExecution::kClosureFieldNumber; +const int TaskExecution::kIsParentFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecution::TaskExecution() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecution) +} +TaskExecution::TaskExecution(const TaskExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.input_uri().size() > 0) { + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::TaskExecutionClosure(*from.closure_); + } else { + closure_ = nullptr; + } + is_parent_ = from.is_parent_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecution) +} + +void TaskExecution::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&is_parent_) - + reinterpret_cast(&id_)) + sizeof(is_parent_)); +} + +TaskExecution::~TaskExecution() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecution) + SharedDtor(); +} + +void TaskExecution::SharedDtor() { + input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; +} + +void TaskExecution::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecution& TaskExecution::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; + is_parent_ = false; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecution::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string input_uri = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecution.input_uri"); + object = msg->mutable_input_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.TaskExecutionClosure closure = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskExecutionClosure::_InternalParse; + object = msg->mutable_closure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool is_parent = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_is_parent(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecution) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecution.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } else { + goto handle_unusual; + } + break; + } + + // bool is_parent = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_parent_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecution) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecution.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->input_uri(), output); + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::closure(this), output); + } + + // bool is_parent = 4; + if (this->is_parent() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_parent(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecution) +} + +::google::protobuf::uint8* TaskExecution::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecution.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->input_uri(), target); + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::closure(this), target); + } + + // bool is_parent = 4; + if (this->is_parent() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_parent(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecution) + return target; +} + +size_t TaskExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecution) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + } + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *closure_); + } + + // bool is_parent = 4; + if (this->is_parent() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecution* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecution) + MergeFrom(*source); + } +} + +void TaskExecution::MergeFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.input_uri().size() > 0) { + + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::TaskExecutionClosure::MergeFrom(from.closure()); + } + if (from.is_parent() != 0) { + set_is_parent(from.is_parent()); + } +} + +void TaskExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecution::CopyFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecution::IsInitialized() const { + return true; +} + +void TaskExecution::Swap(TaskExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecution::InternalSwap(TaskExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + input_uri_.Swap(&other->input_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(closure_, other->closure_); + swap(is_parent_, other->is_parent_); +} + +::google::protobuf::Metadata TaskExecution::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionList::InitAsDefaultInstance() { +} +class TaskExecutionList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionList::kTaskExecutionsFieldNumber; +const int TaskExecutionList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionList::TaskExecutionList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionList) +} +TaskExecutionList::TaskExecutionList(const TaskExecutionList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + task_executions_(from.task_executions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionList) +} + +void TaskExecutionList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TaskExecutionList::~TaskExecutionList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionList) + SharedDtor(); +} + +void TaskExecutionList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskExecutionList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionList& TaskExecutionList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_executions_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::TaskExecution::_InternalParse; + object = msg->add_task_executions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_task_executions())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->task_executions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->task_executions(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionList) +} + +::google::protobuf::uint8* TaskExecutionList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->task_executions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->task_executions(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionList) + return target; +} + +size_t TaskExecutionList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + { + unsigned int count = static_cast(this->task_executions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->task_executions(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionList) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionList) + MergeFrom(*source); + } +} + +void TaskExecutionList::MergeFrom(const TaskExecutionList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + task_executions_.MergeFrom(from.task_executions_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void TaskExecutionList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionList::CopyFrom(const TaskExecutionList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionList::IsInitialized() const { + return true; +} + +void TaskExecutionList::Swap(TaskExecutionList* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionList::InternalSwap(TaskExecutionList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&task_executions_)->InternalSwap(CastToBase(&other->task_executions_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata TaskExecutionList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionClosure_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->custom_info_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::event::TaskExecutionMetadata*>( + ::flyteidl::event::TaskExecutionMetadata::internal_default_instance()); +} +class TaskExecutionClosure::HasBitSetters { + public: + static const ::flyteidl::core::ExecutionError& error(const TaskExecutionClosure* msg); + static const ::flyteidl::core::LiteralMap& output_data(const TaskExecutionClosure* msg); + static const ::google::protobuf::Timestamp& started_at(const TaskExecutionClosure* msg); + static const ::google::protobuf::Duration& duration(const TaskExecutionClosure* msg); + static const ::google::protobuf::Timestamp& created_at(const TaskExecutionClosure* msg); + static const ::google::protobuf::Timestamp& updated_at(const TaskExecutionClosure* msg); + static const ::google::protobuf::Struct& custom_info(const TaskExecutionClosure* msg); + static const ::flyteidl::event::TaskExecutionMetadata& metadata(const TaskExecutionClosure* msg); +}; + +const ::flyteidl::core::ExecutionError& +TaskExecutionClosure::HasBitSetters::error(const TaskExecutionClosure* msg) { + return *msg->output_result_.error_; +} +const ::flyteidl::core::LiteralMap& +TaskExecutionClosure::HasBitSetters::output_data(const TaskExecutionClosure* msg) { + return *msg->output_result_.output_data_; +} +const ::google::protobuf::Timestamp& +TaskExecutionClosure::HasBitSetters::started_at(const TaskExecutionClosure* msg) { + return *msg->started_at_; +} +const ::google::protobuf::Duration& +TaskExecutionClosure::HasBitSetters::duration(const TaskExecutionClosure* msg) { + return *msg->duration_; +} +const ::google::protobuf::Timestamp& +TaskExecutionClosure::HasBitSetters::created_at(const TaskExecutionClosure* msg) { + return *msg->created_at_; +} +const ::google::protobuf::Timestamp& +TaskExecutionClosure::HasBitSetters::updated_at(const TaskExecutionClosure* msg) { + return *msg->updated_at_; +} +const ::google::protobuf::Struct& +TaskExecutionClosure::HasBitSetters::custom_info(const TaskExecutionClosure* msg) { + return *msg->custom_info_; +} +const ::flyteidl::event::TaskExecutionMetadata& +TaskExecutionClosure::HasBitSetters::metadata(const TaskExecutionClosure* msg) { + return *msg->metadata_; +} +void TaskExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.error) +} +void TaskExecutionClosure::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void TaskExecutionClosure::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (output_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + output_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, output_data, submessage_arena); + } + set_has_output_data(); + output_result_.output_data_ = output_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.output_data) +} +void TaskExecutionClosure::clear_output_data() { + if (has_output_data()) { + delete output_result_.output_data_; + clear_has_output_result(); + } +} +void TaskExecutionClosure::clear_logs() { + logs_.Clear(); +} +void TaskExecutionClosure::clear_started_at() { + if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { + delete started_at_; + } + started_at_ = nullptr; +} +void TaskExecutionClosure::clear_duration() { + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; +} +void TaskExecutionClosure::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} +void TaskExecutionClosure::clear_updated_at() { + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; +} +void TaskExecutionClosure::clear_custom_info() { + if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { + delete custom_info_; + } + custom_info_ = nullptr; +} +void TaskExecutionClosure::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionClosure::kOutputUriFieldNumber; +const int TaskExecutionClosure::kErrorFieldNumber; +const int TaskExecutionClosure::kOutputDataFieldNumber; +const int TaskExecutionClosure::kPhaseFieldNumber; +const int TaskExecutionClosure::kLogsFieldNumber; +const int TaskExecutionClosure::kStartedAtFieldNumber; +const int TaskExecutionClosure::kDurationFieldNumber; +const int TaskExecutionClosure::kCreatedAtFieldNumber; +const int TaskExecutionClosure::kUpdatedAtFieldNumber; +const int TaskExecutionClosure::kCustomInfoFieldNumber; +const int TaskExecutionClosure::kReasonFieldNumber; +const int TaskExecutionClosure::kTaskTypeFieldNumber; +const int TaskExecutionClosure::kMetadataFieldNumber; +const int TaskExecutionClosure::kEventVersionFieldNumber; +const int TaskExecutionClosure::kReasonsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionClosure::TaskExecutionClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionClosure) +} +TaskExecutionClosure::TaskExecutionClosure(const TaskExecutionClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + logs_(from.logs_), + reasons_(from.reasons_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.reason().size() > 0) { + reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); + } + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.has_started_at()) { + started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); + } else { + started_at_ = nullptr; + } + if (from.has_duration()) { + duration_ = new ::google::protobuf::Duration(*from.duration_); + } else { + duration_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = nullptr; + } + if (from.has_custom_info()) { + custom_info_ = new ::google::protobuf::Struct(*from.custom_info_); + } else { + custom_info_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::event::TaskExecutionMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + ::memcpy(&phase_, &from.phase_, + static_cast(reinterpret_cast(&event_version_) - + reinterpret_cast(&phase_)) + sizeof(event_version_)); + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionClosure) +} + +void TaskExecutionClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&started_at_, 0, static_cast( + reinterpret_cast(&event_version_) - + reinterpret_cast(&started_at_)) + sizeof(event_version_)); + clear_has_output_result(); +} + +TaskExecutionClosure::~TaskExecutionClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionClosure) + SharedDtor(); +} + +void TaskExecutionClosure::SharedDtor() { + reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete started_at_; + if (this != internal_default_instance()) delete duration_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; + if (this != internal_default_instance()) delete custom_info_; + if (this != internal_default_instance()) delete metadata_; + if (has_output_result()) { + clear_output_result(); + } +} + +void TaskExecutionClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionClosure& TaskExecutionClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionClosure::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.TaskExecutionClosure) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case kOutputData: { + delete output_result_.output_data_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + + +void TaskExecutionClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + reasons_.Clear(); + reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { + delete started_at_; + } + started_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { + delete updated_at_; + } + updated_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { + delete custom_info_; + } + custom_info_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + ::memset(&phase_, 0, static_cast( + reinterpret_cast(&event_version_) - + reinterpret_cast(&phase_)) + sizeof(event_version_)); + clear_output_result(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string output_uri = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionClosure.output_uri"); + object = msg->mutable_output_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskExecution.Phase phase = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::TaskExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // repeated .flyteidl.core.TaskLog logs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; + object = msg->add_logs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // .google.protobuf.Timestamp started_at = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_started_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_duration(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp updated_at = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_updated_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Struct custom_info = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_custom_info(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string reason = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionClosure.reason"); + object = msg->mutable_reason(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string task_type = 11; + case 11: { + if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionClosure.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + case 12: { + if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_output_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::TaskExecutionMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 event_version = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 136) goto handle_unusual; + msg->set_event_version(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // repeated .flyteidl.admin.Reason reasons = 18; + case 18: { + if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Reason::_InternalParse; + object = msg->add_reasons(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 402 && (ptr += 2)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string output_uri = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionClosure.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskLog logs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_logs())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp started_at = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_started_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct custom_info = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_custom_info())); + } else { + goto handle_unusual; + } + break; + } + + // string reason = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_reason())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionClosure.reason")); + } else { + goto handle_unusual; + } + break; + } + + // string task_type = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionClosure.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_output_data())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // int32 event_version = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (136 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &event_version_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.admin.Reason reasons = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_reasons())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1 [deprecated = true]; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::error(this), output); + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // repeated .flyteidl.core.TaskLog logs = 4; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->logs(static_cast(i)), + output); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::started_at(this), output); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::duration(this), output); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::created_at(this), output); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::updated_at(this), output); + } + + // .google.protobuf.Struct custom_info = 9; + if (this->has_custom_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::custom_info(this), output); + } + + // string reason = 10; + if (this->reason().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.reason"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 10, this->reason(), output); + } + + // string task_type = 11; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 11, this->task_type(), output); + } + + // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + if (has_output_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, HasBitSetters::output_data(this), output); + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, HasBitSetters::metadata(this), output); + } + + // int32 event_version = 17; + if (this->event_version() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->event_version(), output); + } + + // repeated .flyteidl.admin.Reason reasons = 18; + for (unsigned int i = 0, + n = static_cast(this->reasons_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 18, + this->reasons(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionClosure) +} + +::google::protobuf::uint8* TaskExecutionClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1 [deprecated = true]; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::error(this), target); + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // repeated .flyteidl.core.TaskLog logs = 4; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->logs(static_cast(i)), target); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::started_at(this), target); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::duration(this), target); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::created_at(this), target); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::updated_at(this), target); + } + + // .google.protobuf.Struct custom_info = 9; + if (this->has_custom_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::custom_info(this), target); + } + + // string reason = 10; + if (this->reason().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.reason"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 10, this->reason(), target); + } + + // string task_type = 11; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->task_type(), target); + } + + // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + if (has_output_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 12, HasBitSetters::output_data(this), target); + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, HasBitSetters::metadata(this), target); + } + + // int32 event_version = 17; + if (this->event_version() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->event_version(), target); + } + + // repeated .flyteidl.admin.Reason reasons = 18; + for (unsigned int i = 0, + n = static_cast(this->reasons_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 18, this->reasons(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionClosure) + return target; +} + +size_t TaskExecutionClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.TaskLog logs = 4; + { + unsigned int count = static_cast(this->logs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->logs(static_cast(i))); + } + } + + // repeated .flyteidl.admin.Reason reasons = 18; + { + unsigned int count = static_cast(this->reasons_size()); + total_size += 2UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->reasons(static_cast(i))); + } + } + + // string reason = 10; + if (this->reason().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->reason()); + } + + // string task_type = 11; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *started_at_); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *duration_); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *updated_at_); + } + + // .google.protobuf.Struct custom_info = 9; + if (this->has_custom_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *custom_info_); + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + if (this->has_metadata()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + // int32 event_version = 17; + if (this->event_version() != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->event_version()); + } + + switch (output_result_case()) { + // string output_uri = 1 [deprecated = true]; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 2; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + case kOutputData: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.output_data_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionClosure) + MergeFrom(*source); + } +} + +void TaskExecutionClosure::MergeFrom(const TaskExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + logs_.MergeFrom(from.logs_); + reasons_.MergeFrom(from.reasons_); + if (from.reason().size() > 0) { + + reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); + } + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.has_started_at()) { + mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); + } + if (from.has_duration()) { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.has_custom_info()) { + mutable_custom_info()->::google::protobuf::Struct::MergeFrom(from.custom_info()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::event::TaskExecutionMetadata::MergeFrom(from.metadata()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + if (from.event_version() != 0) { + set_event_version(from.event_version()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void TaskExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionClosure::CopyFrom(const TaskExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionClosure::IsInitialized() const { + return true; +} + +void TaskExecutionClosure::Swap(TaskExecutionClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionClosure::InternalSwap(TaskExecutionClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&logs_)->InternalSwap(CastToBase(&other->logs_)); + CastToBase(&reasons_)->InternalSwap(CastToBase(&other->reasons_)); + reason_.Swap(&other->reason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(started_at_, other->started_at_); + swap(duration_, other->duration_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(custom_info_, other->custom_info_); + swap(metadata_, other->metadata_); + swap(phase_, other->phase_); + swap(event_version_, other->event_version_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata TaskExecutionClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Reason::InitAsDefaultInstance() { + ::flyteidl::admin::_Reason_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class Reason::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& occurred_at(const Reason* msg); +}; + +const ::google::protobuf::Timestamp& +Reason::HasBitSetters::occurred_at(const Reason* msg) { + return *msg->occurred_at_; +} +void Reason::clear_occurred_at() { + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Reason::kOccurredAtFieldNumber; +const int Reason::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Reason::Reason() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Reason) +} +Reason::Reason(const Reason& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Reason) +} + +void Reason::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + occurred_at_ = nullptr; +} + +Reason::~Reason() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Reason) + SharedDtor(); +} + +void Reason::SharedDtor() { + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete occurred_at_; +} + +void Reason::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Reason& Reason::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void Reason::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Reason) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Reason::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .google.protobuf.Timestamp occurred_at = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_occurred_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string message = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Reason.message"); + object = msg->mutable_message(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Reason::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Reason) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .google.protobuf.Timestamp occurred_at = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Reason.message")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Reason) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Reason) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Reason::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Reason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp occurred_at = 1; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::occurred_at(this), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Reason.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Reason) +} + +::google::protobuf::uint8* Reason::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Reason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp occurred_at = 1; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::occurred_at(this), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Reason.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Reason) + return target; +} + +size_t Reason::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Reason) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // .google.protobuf.Timestamp occurred_at = 1; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *occurred_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Reason::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Reason) + GOOGLE_DCHECK_NE(&from, this); + const Reason* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Reason) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Reason) + MergeFrom(*source); + } +} + +void Reason::MergeFrom(const Reason& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Reason) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } +} + +void Reason::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Reason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Reason::CopyFrom(const Reason& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Reason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Reason::IsInitialized() const { + return true; +} + +void Reason::Swap(Reason* other) { + if (other == this) return; + InternalSwap(other); +} +void Reason::InternalSwap(Reason* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(occurred_at_, other->occurred_at_); +} + +::google::protobuf::Metadata Reason::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionGetDataRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +class TaskExecutionGetDataRequest::HasBitSetters { + public: + static const ::flyteidl::core::TaskExecutionIdentifier& id(const TaskExecutionGetDataRequest* msg); +}; + +const ::flyteidl::core::TaskExecutionIdentifier& +TaskExecutionGetDataRequest::HasBitSetters::id(const TaskExecutionGetDataRequest* msg) { + return *msg->id_; +} +void TaskExecutionGetDataRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionGetDataRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionGetDataRequest::TaskExecutionGetDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetDataRequest) +} +TaskExecutionGetDataRequest::TaskExecutionGetDataRequest(const TaskExecutionGetDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetDataRequest) +} + +void TaskExecutionGetDataRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + id_ = nullptr; +} + +TaskExecutionGetDataRequest::~TaskExecutionGetDataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetDataRequest) + SharedDtor(); +} + +void TaskExecutionGetDataRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void TaskExecutionGetDataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionGetDataRequest& TaskExecutionGetDataRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionGetDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionGetDataRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionGetDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionGetDataRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionGetDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetDataRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionGetDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionGetDataRequest) +} + +::google::protobuf::uint8* TaskExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionGetDataRequest) + return target; +} + +size_t TaskExecutionGetDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetDataRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionGetDataRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetDataRequest) + MergeFrom(*source); + } +} + +void TaskExecutionGetDataRequest::MergeFrom(const TaskExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } +} + +void TaskExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionGetDataRequest::CopyFrom(const TaskExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionGetDataRequest::IsInitialized() const { + return true; +} + +void TaskExecutionGetDataRequest::Swap(TaskExecutionGetDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionGetDataRequest::InternalSwap(TaskExecutionGetDataRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata TaskExecutionGetDataRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionGetDataResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->flyte_urls_ = const_cast< ::flyteidl::admin::FlyteURLs*>( + ::flyteidl::admin::FlyteURLs::internal_default_instance()); +} +class TaskExecutionGetDataResponse::HasBitSetters { + public: + static const ::flyteidl::admin::UrlBlob& inputs(const TaskExecutionGetDataResponse* msg); + static const ::flyteidl::admin::UrlBlob& outputs(const TaskExecutionGetDataResponse* msg); + static const ::flyteidl::core::LiteralMap& full_inputs(const TaskExecutionGetDataResponse* msg); + static const ::flyteidl::core::LiteralMap& full_outputs(const TaskExecutionGetDataResponse* msg); + static const ::flyteidl::admin::FlyteURLs& flyte_urls(const TaskExecutionGetDataResponse* msg); +}; + +const ::flyteidl::admin::UrlBlob& +TaskExecutionGetDataResponse::HasBitSetters::inputs(const TaskExecutionGetDataResponse* msg) { + return *msg->inputs_; +} +const ::flyteidl::admin::UrlBlob& +TaskExecutionGetDataResponse::HasBitSetters::outputs(const TaskExecutionGetDataResponse* msg) { + return *msg->outputs_; +} +const ::flyteidl::core::LiteralMap& +TaskExecutionGetDataResponse::HasBitSetters::full_inputs(const TaskExecutionGetDataResponse* msg) { + return *msg->full_inputs_; +} +const ::flyteidl::core::LiteralMap& +TaskExecutionGetDataResponse::HasBitSetters::full_outputs(const TaskExecutionGetDataResponse* msg) { + return *msg->full_outputs_; +} +const ::flyteidl::admin::FlyteURLs& +TaskExecutionGetDataResponse::HasBitSetters::flyte_urls(const TaskExecutionGetDataResponse* msg) { + return *msg->flyte_urls_; +} +void TaskExecutionGetDataResponse::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +void TaskExecutionGetDataResponse::clear_outputs() { + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; +} +void TaskExecutionGetDataResponse::clear_full_inputs() { + if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { + delete full_inputs_; + } + full_inputs_ = nullptr; +} +void TaskExecutionGetDataResponse::clear_full_outputs() { + if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { + delete full_outputs_; + } + full_outputs_ = nullptr; +} +void TaskExecutionGetDataResponse::clear_flyte_urls() { + if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { + delete flyte_urls_; + } + flyte_urls_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionGetDataResponse::kInputsFieldNumber; +const int TaskExecutionGetDataResponse::kOutputsFieldNumber; +const int TaskExecutionGetDataResponse::kFullInputsFieldNumber; +const int TaskExecutionGetDataResponse::kFullOutputsFieldNumber; +const int TaskExecutionGetDataResponse::kFlyteUrlsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionGetDataResponse::TaskExecutionGetDataResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetDataResponse) +} +TaskExecutionGetDataResponse::TaskExecutionGetDataResponse(const TaskExecutionGetDataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_inputs()) { + inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_outputs()) { + outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); + } else { + outputs_ = nullptr; + } + if (from.has_full_inputs()) { + full_inputs_ = new ::flyteidl::core::LiteralMap(*from.full_inputs_); + } else { + full_inputs_ = nullptr; + } + if (from.has_full_outputs()) { + full_outputs_ = new ::flyteidl::core::LiteralMap(*from.full_outputs_); + } else { + full_outputs_ = nullptr; + } + if (from.has_flyte_urls()) { + flyte_urls_ = new ::flyteidl::admin::FlyteURLs(*from.flyte_urls_); + } else { + flyte_urls_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetDataResponse) +} + +void TaskExecutionGetDataResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&flyte_urls_) - + reinterpret_cast(&inputs_)) + sizeof(flyte_urls_)); +} + +TaskExecutionGetDataResponse::~TaskExecutionGetDataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetDataResponse) + SharedDtor(); +} + +void TaskExecutionGetDataResponse::SharedDtor() { + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete outputs_; + if (this != internal_default_instance()) delete full_inputs_; + if (this != internal_default_instance()) delete full_outputs_; + if (this != internal_default_instance()) delete flyte_urls_; +} + +void TaskExecutionGetDataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionGetDataResponse& TaskExecutionGetDataResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionGetDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { + delete full_inputs_; + } + full_inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { + delete full_outputs_; + } + full_outputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { + delete flyte_urls_; + } + flyte_urls_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionGetDataResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::UrlBlob::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap full_inputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_full_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap full_outputs = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_full_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.FlyteURLs flyte_urls = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::FlyteURLs::_InternalParse; + object = msg->mutable_flyte_urls(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionGetDataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionGetDataResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_full_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_full_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_flyte_urls())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionGetDataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetDataResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionGetDataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::inputs(this), output); + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::outputs(this), output); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::full_inputs(this), output); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::full_outputs(this), output); + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 5; + if (this->has_flyte_urls()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::flyte_urls(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionGetDataResponse) +} + +::google::protobuf::uint8* TaskExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::inputs(this), target); + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::outputs(this), target); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::full_inputs(this), target); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::full_outputs(this), target); + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 5; + if (this->has_flyte_urls()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::flyte_urls(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionGetDataResponse) + return target; +} + +size_t TaskExecutionGetDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetDataResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *outputs_); + } + + // .flyteidl.core.LiteralMap full_inputs = 3; + if (this->has_full_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *full_inputs_); + } + + // .flyteidl.core.LiteralMap full_outputs = 4; + if (this->has_full_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *full_outputs_); + } + + // .flyteidl.admin.FlyteURLs flyte_urls = 5; + if (this->has_flyte_urls()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *flyte_urls_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionGetDataResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetDataResponse) + MergeFrom(*source); + } +} + +void TaskExecutionGetDataResponse::MergeFrom(const TaskExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); + } + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); + } + if (from.has_full_inputs()) { + mutable_full_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_inputs()); + } + if (from.has_full_outputs()) { + mutable_full_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_outputs()); + } + if (from.has_flyte_urls()) { + mutable_flyte_urls()->::flyteidl::admin::FlyteURLs::MergeFrom(from.flyte_urls()); + } +} + +void TaskExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionGetDataResponse::CopyFrom(const TaskExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionGetDataResponse::IsInitialized() const { + return true; +} + +void TaskExecutionGetDataResponse::Swap(TaskExecutionGetDataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionGetDataResponse::InternalSwap(TaskExecutionGetDataResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(inputs_, other->inputs_); + swap(outputs_, other->outputs_); + swap(full_inputs_, other->full_inputs_); + swap(full_outputs_, other->full_outputs_); + swap(flyte_urls_, other->flyte_urls_); +} + +::google::protobuf::Metadata TaskExecutionGetDataResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionListRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionListRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecution* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecution >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecution >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionList* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionClosure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Reason* Arena::CreateMaybeMessage< ::flyteidl::admin::Reason >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Reason >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionGetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionGetDataRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionGetDataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionGetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionGetDataResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionGetDataResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h new file mode 100644 index 0000000000..f792f0bb96 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h @@ -0,0 +1,2924 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_5fexecution_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_5fexecution_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/event/event.pb.h" +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[8] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto(); +namespace flyteidl { +namespace admin { +class Reason; +class ReasonDefaultTypeInternal; +extern ReasonDefaultTypeInternal _Reason_default_instance_; +class TaskExecution; +class TaskExecutionDefaultTypeInternal; +extern TaskExecutionDefaultTypeInternal _TaskExecution_default_instance_; +class TaskExecutionClosure; +class TaskExecutionClosureDefaultTypeInternal; +extern TaskExecutionClosureDefaultTypeInternal _TaskExecutionClosure_default_instance_; +class TaskExecutionGetDataRequest; +class TaskExecutionGetDataRequestDefaultTypeInternal; +extern TaskExecutionGetDataRequestDefaultTypeInternal _TaskExecutionGetDataRequest_default_instance_; +class TaskExecutionGetDataResponse; +class TaskExecutionGetDataResponseDefaultTypeInternal; +extern TaskExecutionGetDataResponseDefaultTypeInternal _TaskExecutionGetDataResponse_default_instance_; +class TaskExecutionGetRequest; +class TaskExecutionGetRequestDefaultTypeInternal; +extern TaskExecutionGetRequestDefaultTypeInternal _TaskExecutionGetRequest_default_instance_; +class TaskExecutionList; +class TaskExecutionListDefaultTypeInternal; +extern TaskExecutionListDefaultTypeInternal _TaskExecutionList_default_instance_; +class TaskExecutionListRequest; +class TaskExecutionListRequestDefaultTypeInternal; +extern TaskExecutionListRequestDefaultTypeInternal _TaskExecutionListRequest_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::Reason* Arena::CreateMaybeMessage<::flyteidl::admin::Reason>(Arena*); +template<> ::flyteidl::admin::TaskExecution* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecution>(Arena*); +template<> ::flyteidl::admin::TaskExecutionClosure* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionClosure>(Arena*); +template<> ::flyteidl::admin::TaskExecutionGetDataRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionGetDataRequest>(Arena*); +template<> ::flyteidl::admin::TaskExecutionGetDataResponse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionGetDataResponse>(Arena*); +template<> ::flyteidl::admin::TaskExecutionGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionGetRequest>(Arena*); +template<> ::flyteidl::admin::TaskExecutionList* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionList>(Arena*); +template<> ::flyteidl::admin::TaskExecutionListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionListRequest>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class TaskExecutionGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetRequest) */ { + public: + TaskExecutionGetRequest(); + virtual ~TaskExecutionGetRequest(); + + TaskExecutionGetRequest(const TaskExecutionGetRequest& from); + + inline TaskExecutionGetRequest& operator=(const TaskExecutionGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionGetRequest(TaskExecutionGetRequest&& from) noexcept + : TaskExecutionGetRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionGetRequest& operator=(TaskExecutionGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionGetRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(TaskExecutionGetRequest* other); + friend void swap(TaskExecutionGetRequest& a, TaskExecutionGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionGetRequest& from); + void MergeFrom(const TaskExecutionGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionListRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionListRequest) */ { + public: + TaskExecutionListRequest(); + virtual ~TaskExecutionListRequest(); + + TaskExecutionListRequest(const TaskExecutionListRequest& from); + + inline TaskExecutionListRequest& operator=(const TaskExecutionListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionListRequest(TaskExecutionListRequest&& from) noexcept + : TaskExecutionListRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionListRequest& operator=(TaskExecutionListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionListRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionListRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(TaskExecutionListRequest* other); + friend void swap(TaskExecutionListRequest& a, TaskExecutionListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionListRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionListRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionListRequest& from); + void MergeFrom(const TaskExecutionListRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + bool has_node_execution_id() const; + void clear_node_execution_id(); + static const int kNodeExecutionIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); + void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecution final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecution) */ { + public: + TaskExecution(); + virtual ~TaskExecution(); + + TaskExecution(const TaskExecution& from); + + inline TaskExecution& operator=(const TaskExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecution(TaskExecution&& from) noexcept + : TaskExecution() { + *this = ::std::move(from); + } + + inline TaskExecution& operator=(TaskExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecution* internal_default_instance() { + return reinterpret_cast( + &_TaskExecution_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(TaskExecution* other); + friend void swap(TaskExecution& a, TaskExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecution* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecution* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecution& from); + void MergeFrom(const TaskExecution& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string input_uri = 2; + void clear_input_uri(); + static const int kInputUriFieldNumber = 2; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::TaskExecutionClosure& closure() const; + ::flyteidl::admin::TaskExecutionClosure* release_closure(); + ::flyteidl::admin::TaskExecutionClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::TaskExecutionClosure* closure); + + // bool is_parent = 4; + void clear_is_parent(); + static const int kIsParentFieldNumber = 4; + bool is_parent() const; + void set_is_parent(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + ::flyteidl::admin::TaskExecutionClosure* closure_; + bool is_parent_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionList) */ { + public: + TaskExecutionList(); + virtual ~TaskExecutionList(); + + TaskExecutionList(const TaskExecutionList& from); + + inline TaskExecutionList& operator=(const TaskExecutionList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionList(TaskExecutionList&& from) noexcept + : TaskExecutionList() { + *this = ::std::move(from); + } + + inline TaskExecutionList& operator=(TaskExecutionList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionList* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TaskExecutionList* other); + friend void swap(TaskExecutionList& a, TaskExecutionList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionList* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionList& from); + void MergeFrom(const TaskExecutionList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + int task_executions_size() const; + void clear_task_executions(); + static const int kTaskExecutionsFieldNumber = 1; + ::flyteidl::admin::TaskExecution* mutable_task_executions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >* + mutable_task_executions(); + const ::flyteidl::admin::TaskExecution& task_executions(int index) const; + ::flyteidl::admin::TaskExecution* add_task_executions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >& + task_executions() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution > task_executions_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionClosure) */ { + public: + TaskExecutionClosure(); + virtual ~TaskExecutionClosure(); + + TaskExecutionClosure(const TaskExecutionClosure& from); + + inline TaskExecutionClosure& operator=(const TaskExecutionClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionClosure(TaskExecutionClosure&& from) noexcept + : TaskExecutionClosure() { + *this = ::std::move(from); + } + + inline TaskExecutionClosure& operator=(TaskExecutionClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionClosure& default_instance(); + + enum OutputResultCase { + kOutputUri = 1, + kError = 2, + kOutputData = 12, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionClosure* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TaskExecutionClosure* other); + friend void swap(TaskExecutionClosure& a, TaskExecutionClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionClosure& from); + void MergeFrom(const TaskExecutionClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.TaskLog logs = 4; + int logs_size() const; + void clear_logs(); + static const int kLogsFieldNumber = 4; + ::flyteidl::core::TaskLog* mutable_logs(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* + mutable_logs(); + const ::flyteidl::core::TaskLog& logs(int index) const; + ::flyteidl::core::TaskLog* add_logs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& + logs() const; + + // repeated .flyteidl.admin.Reason reasons = 18; + int reasons_size() const; + void clear_reasons(); + static const int kReasonsFieldNumber = 18; + ::flyteidl::admin::Reason* mutable_reasons(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >* + mutable_reasons(); + const ::flyteidl::admin::Reason& reasons(int index) const; + ::flyteidl::admin::Reason* add_reasons(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >& + reasons() const; + + // string reason = 10; + void clear_reason(); + static const int kReasonFieldNumber = 10; + const ::std::string& reason() const; + void set_reason(const ::std::string& value); + #if LANG_CXX11 + void set_reason(::std::string&& value); + #endif + void set_reason(const char* value); + void set_reason(const char* value, size_t size); + ::std::string* mutable_reason(); + ::std::string* release_reason(); + void set_allocated_reason(::std::string* reason); + + // string task_type = 11; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 11; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // .google.protobuf.Timestamp started_at = 5; + bool has_started_at() const; + void clear_started_at(); + static const int kStartedAtFieldNumber = 5; + const ::google::protobuf::Timestamp& started_at() const; + ::google::protobuf::Timestamp* release_started_at(); + ::google::protobuf::Timestamp* mutable_started_at(); + void set_allocated_started_at(::google::protobuf::Timestamp* started_at); + + // .google.protobuf.Duration duration = 6; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 6; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + // .google.protobuf.Timestamp created_at = 7; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 8; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 8; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .google.protobuf.Struct custom_info = 9; + bool has_custom_info() const; + void clear_custom_info(); + static const int kCustomInfoFieldNumber = 9; + const ::google::protobuf::Struct& custom_info() const; + ::google::protobuf::Struct* release_custom_info(); + ::google::protobuf::Struct* mutable_custom_info(); + void set_allocated_custom_info(::google::protobuf::Struct* custom_info); + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 16; + const ::flyteidl::event::TaskExecutionMetadata& metadata() const; + ::flyteidl::event::TaskExecutionMetadata* release_metadata(); + ::flyteidl::event::TaskExecutionMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata); + + // .flyteidl.core.TaskExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::TaskExecution_Phase phase() const; + void set_phase(::flyteidl::core::TaskExecution_Phase value); + + // int32 event_version = 17; + void clear_event_version(); + static const int kEventVersionFieldNumber = 17; + ::google::protobuf::int32 event_version() const; + void set_event_version(::google::protobuf::int32 value); + + // string output_uri = 1 [deprecated = true]; + private: + bool has_output_uri() const; + public: + PROTOBUF_DEPRECATED void clear_output_uri(); + PROTOBUF_DEPRECATED static const int kOutputUriFieldNumber = 1; + PROTOBUF_DEPRECATED const ::std::string& output_uri() const; + PROTOBUF_DEPRECATED void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + PROTOBUF_DEPRECATED void set_output_uri(::std::string&& value); + #endif + PROTOBUF_DEPRECATED void set_output_uri(const char* value); + PROTOBUF_DEPRECATED void set_output_uri(const char* value, size_t size); + PROTOBUF_DEPRECATED ::std::string* mutable_output_uri(); + PROTOBUF_DEPRECATED ::std::string* release_output_uri(); + PROTOBUF_DEPRECATED void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 2; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 2; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_output_data() const; + PROTOBUF_DEPRECATED void clear_output_data(); + PROTOBUF_DEPRECATED static const int kOutputDataFieldNumber = 12; + PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& output_data() const; + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_output_data(); + PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_output_data(); + PROTOBUF_DEPRECATED void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); + + void clear_output_result(); + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) + private: + class HasBitSetters; + void set_has_output_uri(); + void set_has_error(); + void set_has_output_data(); + + inline bool has_output_result() const; + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason > reasons_; + ::google::protobuf::internal::ArenaStringPtr reason_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::Timestamp* started_at_; + ::google::protobuf::Duration* duration_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + ::google::protobuf::Struct* custom_info_; + ::flyteidl::event::TaskExecutionMetadata* metadata_; + int phase_; + ::google::protobuf::int32 event_version_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + ::flyteidl::core::LiteralMap* output_data_; + } output_result_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class Reason final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Reason) */ { + public: + Reason(); + virtual ~Reason(); + + Reason(const Reason& from); + + inline Reason& operator=(const Reason& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Reason(Reason&& from) noexcept + : Reason() { + *this = ::std::move(from); + } + + inline Reason& operator=(Reason&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Reason& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Reason* internal_default_instance() { + return reinterpret_cast( + &_Reason_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(Reason* other); + friend void swap(Reason& a, Reason& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Reason* New() const final { + return CreateMaybeMessage(nullptr); + } + + Reason* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Reason& from); + void MergeFrom(const Reason& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Reason* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // .google.protobuf.Timestamp occurred_at = 1; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 1; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Reason) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::Timestamp* occurred_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionGetDataRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetDataRequest) */ { + public: + TaskExecutionGetDataRequest(); + virtual ~TaskExecutionGetDataRequest(); + + TaskExecutionGetDataRequest(const TaskExecutionGetDataRequest& from); + + inline TaskExecutionGetDataRequest& operator=(const TaskExecutionGetDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionGetDataRequest(TaskExecutionGetDataRequest&& from) noexcept + : TaskExecutionGetDataRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionGetDataRequest& operator=(TaskExecutionGetDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionGetDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionGetDataRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionGetDataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(TaskExecutionGetDataRequest* other); + friend void swap(TaskExecutionGetDataRequest& a, TaskExecutionGetDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionGetDataRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionGetDataRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionGetDataRequest& from); + void MergeFrom(const TaskExecutionGetDataRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionGetDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionGetDataResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetDataResponse) */ { + public: + TaskExecutionGetDataResponse(); + virtual ~TaskExecutionGetDataResponse(); + + TaskExecutionGetDataResponse(const TaskExecutionGetDataResponse& from); + + inline TaskExecutionGetDataResponse& operator=(const TaskExecutionGetDataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionGetDataResponse(TaskExecutionGetDataResponse&& from) noexcept + : TaskExecutionGetDataResponse() { + *this = ::std::move(from); + } + + inline TaskExecutionGetDataResponse& operator=(TaskExecutionGetDataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionGetDataResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionGetDataResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionGetDataResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(TaskExecutionGetDataResponse* other); + friend void swap(TaskExecutionGetDataResponse& a, TaskExecutionGetDataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionGetDataResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionGetDataResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionGetDataResponse& from); + void MergeFrom(const TaskExecutionGetDataResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionGetDataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_inputs() const; + PROTOBUF_DEPRECATED void clear_inputs(); + PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 1; + PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& inputs() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_inputs(); + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_inputs(); + PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); + + // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_outputs() const; + PROTOBUF_DEPRECATED void clear_outputs(); + PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 2; + PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& outputs() const; + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_outputs(); + PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_outputs(); + PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); + + // .flyteidl.core.LiteralMap full_inputs = 3; + bool has_full_inputs() const; + void clear_full_inputs(); + static const int kFullInputsFieldNumber = 3; + const ::flyteidl::core::LiteralMap& full_inputs() const; + ::flyteidl::core::LiteralMap* release_full_inputs(); + ::flyteidl::core::LiteralMap* mutable_full_inputs(); + void set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs); + + // .flyteidl.core.LiteralMap full_outputs = 4; + bool has_full_outputs() const; + void clear_full_outputs(); + static const int kFullOutputsFieldNumber = 4; + const ::flyteidl::core::LiteralMap& full_outputs() const; + ::flyteidl::core::LiteralMap* release_full_outputs(); + ::flyteidl::core::LiteralMap* mutable_full_outputs(); + void set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs); + + // .flyteidl.admin.FlyteURLs flyte_urls = 5; + bool has_flyte_urls() const; + void clear_flyte_urls(); + static const int kFlyteUrlsFieldNumber = 5; + const ::flyteidl::admin::FlyteURLs& flyte_urls() const; + ::flyteidl::admin::FlyteURLs* release_flyte_urls(); + ::flyteidl::admin::FlyteURLs* mutable_flyte_urls(); + void set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::UrlBlob* inputs_; + ::flyteidl::admin::UrlBlob* outputs_; + ::flyteidl::core::LiteralMap* full_inputs_; + ::flyteidl::core::LiteralMap* full_outputs_; + ::flyteidl::admin::FlyteURLs* flyte_urls_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TaskExecutionGetRequest + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool TaskExecutionGetRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionGetRequest::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetRequest.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetRequest.id) + return id_; +} +inline void TaskExecutionGetRequest::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetRequest.id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionListRequest + +// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; +inline bool TaskExecutionListRequest::has_node_execution_id() const { + return this != internal_default_instance() && node_execution_id_ != nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionListRequest::node_execution_id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = node_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.node_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionListRequest::release_node_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.node_execution_id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = node_execution_id_; + node_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionListRequest::mutable_node_execution_id() { + + if (node_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + node_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.node_execution_id) + return node_execution_id_; +} +inline void TaskExecutionListRequest::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_execution_id_); + } + if (node_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + node_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node_execution_id, submessage_arena); + } + + } else { + + } + node_execution_id_ = node_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.node_execution_id) +} + +// uint32 limit = 2; +inline void TaskExecutionListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.limit) + return limit_; +} +inline void TaskExecutionListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.limit) +} + +// string token = 3; +inline void TaskExecutionListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.token) + return token_.GetNoArena(); +} +inline void TaskExecutionListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.token) +} +#if LANG_CXX11 +inline void TaskExecutionListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionListRequest.token) +} +#endif +inline void TaskExecutionListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionListRequest.token) +} +inline void TaskExecutionListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionListRequest.token) +} +inline ::std::string* TaskExecutionListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionListRequest::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.token) +} + +// string filters = 4; +inline void TaskExecutionListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.filters) + return filters_.GetNoArena(); +} +inline void TaskExecutionListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.filters) +} +#if LANG_CXX11 +inline void TaskExecutionListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionListRequest.filters) +} +#endif +inline void TaskExecutionListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionListRequest.filters) +} +inline void TaskExecutionListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionListRequest.filters) +} +inline ::std::string* TaskExecutionListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionListRequest::set_allocated_filters(::std::string* filters) { + if (filters != nullptr) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool TaskExecutionListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != nullptr; +} +inline const ::flyteidl::admin::Sort& TaskExecutionListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.sort_by) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* TaskExecutionListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Sort* TaskExecutionListRequest::mutable_sort_by() { + + if (sort_by_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); + sort_by_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.sort_by) + return sort_by_; +} +inline void TaskExecutionListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// TaskExecution + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool TaskExecution::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecution::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecution::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecution::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.id) + return id_; +} +inline void TaskExecution::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.id) +} + +// string input_uri = 2; +inline void TaskExecution::clear_input_uri() { + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecution::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.input_uri) + return input_uri_.GetNoArena(); +} +inline void TaskExecution::set_input_uri(const ::std::string& value) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecution.input_uri) +} +#if LANG_CXX11 +inline void TaskExecution::set_input_uri(::std::string&& value) { + + input_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecution.input_uri) +} +#endif +inline void TaskExecution::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecution.input_uri) +} +inline void TaskExecution::set_input_uri(const char* value, size_t size) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecution.input_uri) +} +inline ::std::string* TaskExecution::mutable_input_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.input_uri) + return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecution::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.input_uri) + + return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecution::set_allocated_input_uri(::std::string* input_uri) { + if (input_uri != nullptr) { + + } else { + + } + input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.input_uri) +} + +// .flyteidl.admin.TaskExecutionClosure closure = 3; +inline bool TaskExecution::has_closure() const { + return this != internal_default_instance() && closure_ != nullptr; +} +inline void TaskExecution::clear_closure() { + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; +} +inline const ::flyteidl::admin::TaskExecutionClosure& TaskExecution::closure() const { + const ::flyteidl::admin::TaskExecutionClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.closure) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskExecutionClosure_default_instance_); +} +inline ::flyteidl::admin::TaskExecutionClosure* TaskExecution::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.closure) + + ::flyteidl::admin::TaskExecutionClosure* temp = closure_; + closure_ = nullptr; + return temp; +} +inline ::flyteidl::admin::TaskExecutionClosure* TaskExecution::mutable_closure() { + + if (closure_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::TaskExecutionClosure>(GetArenaNoVirtual()); + closure_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.closure) + return closure_; +} +inline void TaskExecution::set_allocated_closure(::flyteidl::admin::TaskExecutionClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.closure) +} + +// bool is_parent = 4; +inline void TaskExecution::clear_is_parent() { + is_parent_ = false; +} +inline bool TaskExecution::is_parent() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.is_parent) + return is_parent_; +} +inline void TaskExecution::set_is_parent(bool value) { + + is_parent_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecution.is_parent) +} + +// ------------------------------------------------------------------- + +// TaskExecutionList + +// repeated .flyteidl.admin.TaskExecution task_executions = 1; +inline int TaskExecutionList::task_executions_size() const { + return task_executions_.size(); +} +inline void TaskExecutionList::clear_task_executions() { + task_executions_.Clear(); +} +inline ::flyteidl::admin::TaskExecution* TaskExecutionList::mutable_task_executions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >* +TaskExecutionList::mutable_task_executions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionList.task_executions) + return &task_executions_; +} +inline const ::flyteidl::admin::TaskExecution& TaskExecutionList::task_executions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_.Get(index); +} +inline ::flyteidl::admin::TaskExecution* TaskExecutionList::add_task_executions() { + // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >& +TaskExecutionList::task_executions() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_; +} + +// string token = 2; +inline void TaskExecutionList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionList.token) + return token_.GetNoArena(); +} +inline void TaskExecutionList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionList.token) +} +#if LANG_CXX11 +inline void TaskExecutionList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionList.token) +} +#endif +inline void TaskExecutionList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionList.token) +} +inline void TaskExecutionList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionList.token) +} +inline ::std::string* TaskExecutionList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionList.token) +} + +// ------------------------------------------------------------------- + +// TaskExecutionClosure + +// string output_uri = 1 [deprecated = true]; +inline bool TaskExecutionClosure::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void TaskExecutionClosure::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void TaskExecutionClosure::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& TaskExecutionClosure::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void TaskExecutionClosure::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) +} +#if LANG_CXX11 +inline void TaskExecutionClosure::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionClosure.output_uri) +} +#endif +inline void TaskExecutionClosure::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionClosure.output_uri) +} +inline void TaskExecutionClosure::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionClosure.output_uri) +} +inline ::std::string* TaskExecutionClosure::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionClosure::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void TaskExecutionClosure::set_allocated_output_uri(::std::string* output_uri) { + if (has_output_result()) { + clear_output_result(); + } + if (output_uri != nullptr) { + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.output_uri) +} + +// .flyteidl.core.ExecutionError error = 2; +inline bool TaskExecutionClosure::has_error() const { + return output_result_case() == kError; +} +inline void TaskExecutionClosure::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* TaskExecutionClosure::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ExecutionError& TaskExecutionClosure::error() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* TaskExecutionClosure::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.error) + return output_result_.error_; +} + +// .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; +inline bool TaskExecutionClosure::has_output_data() const { + return output_result_case() == kOutputData; +} +inline void TaskExecutionClosure::set_has_output_data() { + _oneof_case_[0] = kOutputData; +} +inline ::flyteidl::core::LiteralMap* TaskExecutionClosure::release_output_data() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.output_data) + if (has_output_data()) { + clear_has_output_result(); + ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; + output_result_.output_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& TaskExecutionClosure::output_data() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.output_data) + return has_output_data() + ? *output_result_.output_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* TaskExecutionClosure::mutable_output_data() { + if (!has_output_data()) { + clear_output_result(); + set_has_output_data(); + output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.output_data) + return output_result_.output_data_; +} + +// .flyteidl.core.TaskExecution.Phase phase = 3; +inline void TaskExecutionClosure::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::TaskExecution_Phase TaskExecutionClosure::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.phase) + return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); +} +inline void TaskExecutionClosure::set_phase(::flyteidl::core::TaskExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.phase) +} + +// repeated .flyteidl.core.TaskLog logs = 4; +inline int TaskExecutionClosure::logs_size() const { + return logs_.size(); +} +inline ::flyteidl::core::TaskLog* TaskExecutionClosure::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.logs) + return logs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* +TaskExecutionClosure::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionClosure.logs) + return &logs_; +} +inline const ::flyteidl::core::TaskLog& TaskExecutionClosure::logs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.logs) + return logs_.Get(index); +} +inline ::flyteidl::core::TaskLog* TaskExecutionClosure::add_logs() { + // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionClosure.logs) + return logs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& +TaskExecutionClosure::logs() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionClosure.logs) + return logs_; +} + +// .google.protobuf.Timestamp started_at = 5; +inline bool TaskExecutionClosure::has_started_at() const { + return this != internal_default_instance() && started_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& TaskExecutionClosure::started_at() const { + const ::google::protobuf::Timestamp* p = started_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.started_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_started_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.started_at) + + ::google::protobuf::Timestamp* temp = started_at_; + started_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_started_at() { + + if (started_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + started_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.started_at) + return started_at_; +} +inline void TaskExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); + } + if (started_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(started_at)->GetArena(); + if (message_arena != submessage_arena) { + started_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, started_at, submessage_arena); + } + + } else { + + } + started_at_ = started_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.started_at) +} + +// .google.protobuf.Duration duration = 6; +inline bool TaskExecutionClosure::has_duration() const { + return this != internal_default_instance() && duration_ != nullptr; +} +inline const ::google::protobuf::Duration& TaskExecutionClosure::duration() const { + const ::google::protobuf::Duration* p = duration_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.duration) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* TaskExecutionClosure::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.duration) + + ::google::protobuf::Duration* temp = duration_; + duration_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* TaskExecutionClosure::mutable_duration() { + + if (duration_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + duration_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.duration) + return duration_; +} +inline void TaskExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); + } + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.duration) +} + +// .google.protobuf.Timestamp created_at = 7; +inline bool TaskExecutionClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& TaskExecutionClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.created_at) + return created_at_; +} +inline void TaskExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 8; +inline bool TaskExecutionClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& TaskExecutionClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.updated_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_updated_at() { + + if (updated_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + updated_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.updated_at) + return updated_at_; +} +inline void TaskExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.updated_at) +} + +// .google.protobuf.Struct custom_info = 9; +inline bool TaskExecutionClosure::has_custom_info() const { + return this != internal_default_instance() && custom_info_ != nullptr; +} +inline const ::google::protobuf::Struct& TaskExecutionClosure::custom_info() const { + const ::google::protobuf::Struct* p = custom_info_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.custom_info) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* TaskExecutionClosure::release_custom_info() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.custom_info) + + ::google::protobuf::Struct* temp = custom_info_; + custom_info_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* TaskExecutionClosure::mutable_custom_info() { + + if (custom_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + custom_info_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.custom_info) + return custom_info_; +} +inline void TaskExecutionClosure::set_allocated_custom_info(::google::protobuf::Struct* custom_info) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info_); + } + if (custom_info) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(custom_info)->GetArena(); + if (message_arena != submessage_arena) { + custom_info = ::google::protobuf::internal::GetOwnedMessage( + message_arena, custom_info, submessage_arena); + } + + } else { + + } + custom_info_ = custom_info; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.custom_info) +} + +// string reason = 10; +inline void TaskExecutionClosure::clear_reason() { + reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionClosure::reason() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.reason) + return reason_.GetNoArena(); +} +inline void TaskExecutionClosure::set_reason(const ::std::string& value) { + + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.reason) +} +#if LANG_CXX11 +inline void TaskExecutionClosure::set_reason(::std::string&& value) { + + reason_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionClosure.reason) +} +#endif +inline void TaskExecutionClosure::set_reason(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionClosure.reason) +} +inline void TaskExecutionClosure::set_reason(const char* value, size_t size) { + + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionClosure.reason) +} +inline ::std::string* TaskExecutionClosure::mutable_reason() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.reason) + return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionClosure::release_reason() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.reason) + + return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionClosure::set_allocated_reason(::std::string* reason) { + if (reason != nullptr) { + + } else { + + } + reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.reason) +} + +// string task_type = 11; +inline void TaskExecutionClosure::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionClosure::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.task_type) + return task_type_.GetNoArena(); +} +inline void TaskExecutionClosure::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.task_type) +} +#if LANG_CXX11 +inline void TaskExecutionClosure::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionClosure.task_type) +} +#endif +inline void TaskExecutionClosure::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionClosure.task_type) +} +inline void TaskExecutionClosure::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionClosure.task_type) +} +inline ::std::string* TaskExecutionClosure::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionClosure::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionClosure::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.task_type) +} + +// .flyteidl.event.TaskExecutionMetadata metadata = 16; +inline bool TaskExecutionClosure::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline const ::flyteidl::event::TaskExecutionMetadata& TaskExecutionClosure::metadata() const { + const ::flyteidl::event::TaskExecutionMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_TaskExecutionMetadata_default_instance_); +} +inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionClosure::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.metadata) + + ::flyteidl::event::TaskExecutionMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionClosure::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.metadata) + return metadata_; +} +inline void TaskExecutionClosure::set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_); + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.metadata) +} + +// int32 event_version = 17; +inline void TaskExecutionClosure::clear_event_version() { + event_version_ = 0; +} +inline ::google::protobuf::int32 TaskExecutionClosure::event_version() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.event_version) + return event_version_; +} +inline void TaskExecutionClosure::set_event_version(::google::protobuf::int32 value) { + + event_version_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.event_version) +} + +// repeated .flyteidl.admin.Reason reasons = 18; +inline int TaskExecutionClosure::reasons_size() const { + return reasons_.size(); +} +inline void TaskExecutionClosure::clear_reasons() { + reasons_.Clear(); +} +inline ::flyteidl::admin::Reason* TaskExecutionClosure::mutable_reasons(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.reasons) + return reasons_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >* +TaskExecutionClosure::mutable_reasons() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionClosure.reasons) + return &reasons_; +} +inline const ::flyteidl::admin::Reason& TaskExecutionClosure::reasons(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.reasons) + return reasons_.Get(index); +} +inline ::flyteidl::admin::Reason* TaskExecutionClosure::add_reasons() { + // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionClosure.reasons) + return reasons_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >& +TaskExecutionClosure::reasons() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionClosure.reasons) + return reasons_; +} + +inline bool TaskExecutionClosure::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void TaskExecutionClosure::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline TaskExecutionClosure::OutputResultCase TaskExecutionClosure::output_result_case() const { + return TaskExecutionClosure::OutputResultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Reason + +// .google.protobuf.Timestamp occurred_at = 1; +inline bool Reason::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& Reason::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Reason.occurred_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Reason::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Reason.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* Reason::mutable_occurred_at() { + + if (occurred_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + occurred_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Reason.occurred_at) + return occurred_at_; +} +inline void Reason::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Reason.occurred_at) +} + +// string message = 2; +inline void Reason::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Reason::message() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Reason.message) + return message_.GetNoArena(); +} +inline void Reason::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Reason.message) +} +#if LANG_CXX11 +inline void Reason::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Reason.message) +} +#endif +inline void Reason::set_message(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Reason.message) +} +inline void Reason::set_message(const char* value, size_t size) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Reason.message) +} +inline ::std::string* Reason::mutable_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Reason.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Reason::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Reason.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Reason::set_allocated_message(::std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Reason.message) +} + +// ------------------------------------------------------------------- + +// TaskExecutionGetDataRequest + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool TaskExecutionGetDataRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionGetDataRequest::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetDataRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataRequest.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetDataRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataRequest.id) + return id_; +} +inline void TaskExecutionGetDataRequest::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataRequest.id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionGetDataResponse + +// .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; +inline bool TaskExecutionGetDataResponse::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::admin::UrlBlob& TaskExecutionGetDataResponse::inputs() const { + const ::flyteidl::admin::UrlBlob* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.inputs) + + ::flyteidl::admin::UrlBlob* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.inputs) + return inputs_; +} +inline void TaskExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.inputs) +} + +// .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; +inline bool TaskExecutionGetDataResponse::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; +} +inline const ::flyteidl::admin::UrlBlob& TaskExecutionGetDataResponse::outputs() const { + const ::flyteidl::admin::UrlBlob* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.outputs) + + ::flyteidl::admin::UrlBlob* temp = outputs_; + outputs_ = nullptr; + return temp; +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::mutable_outputs() { + + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); + outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.outputs) + return outputs_; +} +inline void TaskExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.outputs) +} + +// .flyteidl.core.LiteralMap full_inputs = 3; +inline bool TaskExecutionGetDataResponse::has_full_inputs() const { + return this != internal_default_instance() && full_inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& TaskExecutionGetDataResponse::full_inputs() const { + const ::flyteidl::core::LiteralMap* p = full_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::release_full_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) + + ::flyteidl::core::LiteralMap* temp = full_inputs_; + full_inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::mutable_full_inputs() { + + if (full_inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + full_inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) + return full_inputs_; +} +inline void TaskExecutionGetDataResponse::set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_inputs_); + } + if (full_inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + full_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, full_inputs, submessage_arena); + } + + } else { + + } + full_inputs_ = full_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) +} + +// .flyteidl.core.LiteralMap full_outputs = 4; +inline bool TaskExecutionGetDataResponse::has_full_outputs() const { + return this != internal_default_instance() && full_outputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& TaskExecutionGetDataResponse::full_outputs() const { + const ::flyteidl::core::LiteralMap* p = full_outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::release_full_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) + + ::flyteidl::core::LiteralMap* temp = full_outputs_; + full_outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::mutable_full_outputs() { + + if (full_outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + full_outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) + return full_outputs_; +} +inline void TaskExecutionGetDataResponse::set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_outputs_); + } + if (full_outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + full_outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, full_outputs, submessage_arena); + } + + } else { + + } + full_outputs_ = full_outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) +} + +// .flyteidl.admin.FlyteURLs flyte_urls = 5; +inline bool TaskExecutionGetDataResponse::has_flyte_urls() const { + return this != internal_default_instance() && flyte_urls_ != nullptr; +} +inline const ::flyteidl::admin::FlyteURLs& TaskExecutionGetDataResponse::flyte_urls() const { + const ::flyteidl::admin::FlyteURLs* p = flyte_urls_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_FlyteURLs_default_instance_); +} +inline ::flyteidl::admin::FlyteURLs* TaskExecutionGetDataResponse::release_flyte_urls() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) + + ::flyteidl::admin::FlyteURLs* temp = flyte_urls_; + flyte_urls_ = nullptr; + return temp; +} +inline ::flyteidl::admin::FlyteURLs* TaskExecutionGetDataResponse::mutable_flyte_urls() { + + if (flyte_urls_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::FlyteURLs>(GetArenaNoVirtual()); + flyte_urls_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) + return flyte_urls_; +} +inline void TaskExecutionGetDataResponse::set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(flyte_urls_); + } + if (flyte_urls) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + flyte_urls = ::google::protobuf::internal::GetOwnedMessage( + message_arena, flyte_urls, submessage_arena); + } + + } else { + + } + flyte_urls_ = flyte_urls; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_5fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.cc new file mode 100644 index 0000000000..a85e4ae531 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/version.proto + +#include "flyteidl/admin/version.pb.h" +#include "flyteidl/admin/version.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.h new file mode 100644 index 0000000000..72c37eb83f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/version.proto +#ifndef GRPC_flyteidl_2fadmin_2fversion_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fversion_2eproto__INCLUDED + +#include "flyteidl/admin/version.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fversion_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.cc new file mode 100644 index 0000000000..205ba1709c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.cc @@ -0,0 +1,1112 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/version.proto + +#include "flyteidl/admin/version.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fversion_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Version_flyteidl_2fadmin_2fversion_2eproto; +namespace flyteidl { +namespace admin { +class GetVersionResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetVersionResponse_default_instance_; +class VersionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Version_default_instance_; +class GetVersionRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetVersionRequest_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsGetVersionResponse_flyteidl_2fadmin_2fversion_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetVersionResponse_default_instance_; + new (ptr) ::flyteidl::admin::GetVersionResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetVersionResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetVersionResponse_flyteidl_2fadmin_2fversion_2eproto}, { + &scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base,}}; + +static void InitDefaultsVersion_flyteidl_2fadmin_2fversion_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Version_default_instance_; + new (ptr) ::flyteidl::admin::Version(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Version::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Version_flyteidl_2fadmin_2fversion_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVersion_flyteidl_2fadmin_2fversion_2eproto}, {}}; + +static void InitDefaultsGetVersionRequest_flyteidl_2fadmin_2fversion_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_GetVersionRequest_default_instance_; + new (ptr) ::flyteidl::admin::GetVersionRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::GetVersionRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetVersionRequest_flyteidl_2fadmin_2fversion_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetVersionRequest_flyteidl_2fadmin_2fversion_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fversion_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetVersionRequest_flyteidl_2fadmin_2fversion_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[3]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fversion_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fversion_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fversion_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetVersionResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetVersionResponse, control_plane_version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, build_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, buildtime_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetVersionRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::GetVersionResponse)}, + { 6, -1, sizeof(::flyteidl::admin::Version)}, + { 14, -1, sizeof(::flyteidl::admin::GetVersionRequest)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_GetVersionResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Version_default_instance_), + reinterpret_cast(&::flyteidl::admin::_GetVersionRequest_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fversion_2eproto, "flyteidl/admin/version.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fversion_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fversion_2eproto, 3, file_level_enum_descriptors_flyteidl_2fadmin_2fversion_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fversion_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fversion_2eproto[] = + "\n\034flyteidl/admin/version.proto\022\016flyteidl" + ".admin\"L\n\022GetVersionResponse\0226\n\025control_" + "plane_version\030\001 \001(\0132\027.flyteidl.admin.Ver" + "sion\"<\n\007Version\022\r\n\005Build\030\001 \001(\t\022\017\n\007Versio" + "n\030\002 \001(\t\022\021\n\tBuildTime\030\003 \001(\t\"\023\n\021GetVersion" + "RequestB7Z5github.com/flyteorg/flyteidl/" + "gen/pb-go/flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fversion_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fversion_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fversion_2eproto, + "flyteidl/admin/version.proto", &assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto, 272, +}; + +void AddDescriptors_flyteidl_2fadmin_2fversion_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fversion_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fversion_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fversion_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void GetVersionResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_GetVersionResponse_default_instance_._instance.get_mutable()->control_plane_version_ = const_cast< ::flyteidl::admin::Version*>( + ::flyteidl::admin::Version::internal_default_instance()); +} +class GetVersionResponse::HasBitSetters { + public: + static const ::flyteidl::admin::Version& control_plane_version(const GetVersionResponse* msg); +}; + +const ::flyteidl::admin::Version& +GetVersionResponse::HasBitSetters::control_plane_version(const GetVersionResponse* msg) { + return *msg->control_plane_version_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetVersionResponse::kControlPlaneVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetVersionResponse::GetVersionResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetVersionResponse) +} +GetVersionResponse::GetVersionResponse(const GetVersionResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_control_plane_version()) { + control_plane_version_ = new ::flyteidl::admin::Version(*from.control_plane_version_); + } else { + control_plane_version_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetVersionResponse) +} + +void GetVersionResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto.base); + control_plane_version_ = nullptr; +} + +GetVersionResponse::~GetVersionResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetVersionResponse) + SharedDtor(); +} + +void GetVersionResponse::SharedDtor() { + if (this != internal_default_instance()) delete control_plane_version_; +} + +void GetVersionResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetVersionResponse& GetVersionResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto.base); + return *internal_default_instance(); +} + + +void GetVersionResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetVersionResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && control_plane_version_ != nullptr) { + delete control_plane_version_; + } + control_plane_version_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetVersionResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.Version control_plane_version = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Version::_InternalParse; + object = msg->mutable_control_plane_version(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetVersionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetVersionResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.Version control_plane_version = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_control_plane_version())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetVersionResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetVersionResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetVersionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetVersionResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Version control_plane_version = 1; + if (this->has_control_plane_version()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::control_plane_version(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetVersionResponse) +} + +::google::protobuf::uint8* GetVersionResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetVersionResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Version control_plane_version = 1; + if (this->has_control_plane_version()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::control_plane_version(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetVersionResponse) + return target; +} + +size_t GetVersionResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetVersionResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.Version control_plane_version = 1; + if (this->has_control_plane_version()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *control_plane_version_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetVersionResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetVersionResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetVersionResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetVersionResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetVersionResponse) + MergeFrom(*source); + } +} + +void GetVersionResponse::MergeFrom(const GetVersionResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetVersionResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_control_plane_version()) { + mutable_control_plane_version()->::flyteidl::admin::Version::MergeFrom(from.control_plane_version()); + } +} + +void GetVersionResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetVersionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetVersionResponse::CopyFrom(const GetVersionResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetVersionResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetVersionResponse::IsInitialized() const { + return true; +} + +void GetVersionResponse::Swap(GetVersionResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetVersionResponse::InternalSwap(GetVersionResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(control_plane_version_, other->control_plane_version_); +} + +::google::protobuf::Metadata GetVersionResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Version::InitAsDefaultInstance() { +} +class Version::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Version::kBuildFieldNumber; +const int Version::kVersionFieldNumber; +const int Version::kBuildTimeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Version::Version() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Version) +} +Version::Version(const Version& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + build_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.build().size() > 0) { + build_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + buildtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.buildtime().size() > 0) { + buildtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.buildtime_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Version) +} + +void Version::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base); + build_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + buildtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Version::~Version() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Version) + SharedDtor(); +} + +void Version::SharedDtor() { + build_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + buildtime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Version::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Version& Version::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base); + return *internal_default_instance(); +} + + +void Version::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Version) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + buildtime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Version::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string Build = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Version.Build"); + object = msg->mutable_build(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string Version = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Version.Version"); + object = msg->mutable_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string BuildTime = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Version.BuildTime"); + object = msg->mutable_buildtime(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Version::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Version) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string Build = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_build())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->build().data(), static_cast(this->build().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Version.Build")); + } else { + goto handle_unusual; + } + break; + } + + // string Version = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Version.Version")); + } else { + goto handle_unusual; + } + break; + } + + // string BuildTime = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_buildtime())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->buildtime().data(), static_cast(this->buildtime().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Version.BuildTime")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Version) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Version) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Version::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Version) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Build = 1; + if (this->build().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->build().data(), static_cast(this->build().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Version.Build"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->build(), output); + } + + // string Version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Version.Version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->version(), output); + } + + // string BuildTime = 3; + if (this->buildtime().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->buildtime().data(), static_cast(this->buildtime().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Version.BuildTime"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->buildtime(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Version) +} + +::google::protobuf::uint8* Version::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Version) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string Build = 1; + if (this->build().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->build().data(), static_cast(this->build().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Version.Build"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->build(), target); + } + + // string Version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Version.Version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->version(), target); + } + + // string BuildTime = 3; + if (this->buildtime().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->buildtime().data(), static_cast(this->buildtime().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Version.BuildTime"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->buildtime(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Version) + return target; +} + +size_t Version::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Version) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string Build = 1; + if (this->build().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->build()); + } + + // string Version = 2; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // string BuildTime = 3; + if (this->buildtime().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->buildtime()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Version::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Version) + GOOGLE_DCHECK_NE(&from, this); + const Version* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Version) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Version) + MergeFrom(*source); + } +} + +void Version::MergeFrom(const Version& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Version) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.build().size() > 0) { + + build_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.buildtime().size() > 0) { + + buildtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.buildtime_); + } +} + +void Version::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Version) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Version::CopyFrom(const Version& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Version) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Version::IsInitialized() const { + return true; +} + +void Version::Swap(Version* other) { + if (other == this) return; + InternalSwap(other); +} +void Version::InternalSwap(Version* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + build_.Swap(&other->build_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + buildtime_.Swap(&other->buildtime_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Version::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetVersionRequest::InitAsDefaultInstance() { +} +class GetVersionRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetVersionRequest::GetVersionRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.GetVersionRequest) +} +GetVersionRequest::GetVersionRequest(const GetVersionRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetVersionRequest) +} + +void GetVersionRequest::SharedCtor() { +} + +GetVersionRequest::~GetVersionRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.GetVersionRequest) + SharedDtor(); +} + +void GetVersionRequest::SharedDtor() { +} + +void GetVersionRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetVersionRequest& GetVersionRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetVersionRequest_flyteidl_2fadmin_2fversion_2eproto.base); + return *internal_default_instance(); +} + + +void GetVersionRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetVersionRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetVersionRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetVersionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.GetVersionRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.GetVersionRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetVersionRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetVersionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetVersionRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetVersionRequest) +} + +::google::protobuf::uint8* GetVersionRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetVersionRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.GetVersionRequest) + return target; +} + +size_t GetVersionRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetVersionRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetVersionRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetVersionRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetVersionRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetVersionRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetVersionRequest) + MergeFrom(*source); + } +} + +void GetVersionRequest::MergeFrom(const GetVersionRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetVersionRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void GetVersionRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetVersionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetVersionRequest::CopyFrom(const GetVersionRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetVersionRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetVersionRequest::IsInitialized() const { + return true; +} + +void GetVersionRequest::Swap(GetVersionRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetVersionRequest::InternalSwap(GetVersionRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata GetVersionRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetVersionResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetVersionResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetVersionResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Version* Arena::CreateMaybeMessage< ::flyteidl::admin::Version >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Version >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetVersionRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetVersionRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::GetVersionRequest >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.h new file mode 100644 index 0000000000..898f4ef3ca --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.h @@ -0,0 +1,689 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/version.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fversion_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fversion_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fversion_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fversion_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fversion_2eproto(); +namespace flyteidl { +namespace admin { +class GetVersionRequest; +class GetVersionRequestDefaultTypeInternal; +extern GetVersionRequestDefaultTypeInternal _GetVersionRequest_default_instance_; +class GetVersionResponse; +class GetVersionResponseDefaultTypeInternal; +extern GetVersionResponseDefaultTypeInternal _GetVersionResponse_default_instance_; +class Version; +class VersionDefaultTypeInternal; +extern VersionDefaultTypeInternal _Version_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::GetVersionRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetVersionRequest>(Arena*); +template<> ::flyteidl::admin::GetVersionResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetVersionResponse>(Arena*); +template<> ::flyteidl::admin::Version* Arena::CreateMaybeMessage<::flyteidl::admin::Version>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class GetVersionResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetVersionResponse) */ { + public: + GetVersionResponse(); + virtual ~GetVersionResponse(); + + GetVersionResponse(const GetVersionResponse& from); + + inline GetVersionResponse& operator=(const GetVersionResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetVersionResponse(GetVersionResponse&& from) noexcept + : GetVersionResponse() { + *this = ::std::move(from); + } + + inline GetVersionResponse& operator=(GetVersionResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetVersionResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetVersionResponse* internal_default_instance() { + return reinterpret_cast( + &_GetVersionResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(GetVersionResponse* other); + friend void swap(GetVersionResponse& a, GetVersionResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetVersionResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetVersionResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetVersionResponse& from); + void MergeFrom(const GetVersionResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetVersionResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.Version control_plane_version = 1; + bool has_control_plane_version() const; + void clear_control_plane_version(); + static const int kControlPlaneVersionFieldNumber = 1; + const ::flyteidl::admin::Version& control_plane_version() const; + ::flyteidl::admin::Version* release_control_plane_version(); + ::flyteidl::admin::Version* mutable_control_plane_version(); + void set_allocated_control_plane_version(::flyteidl::admin::Version* control_plane_version); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::Version* control_plane_version_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fversion_2eproto; +}; +// ------------------------------------------------------------------- + +class Version final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Version) */ { + public: + Version(); + virtual ~Version(); + + Version(const Version& from); + + inline Version& operator=(const Version& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Version(Version&& from) noexcept + : Version() { + *this = ::std::move(from); + } + + inline Version& operator=(Version&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Version& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Version* internal_default_instance() { + return reinterpret_cast( + &_Version_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Version* other); + friend void swap(Version& a, Version& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Version* New() const final { + return CreateMaybeMessage(nullptr); + } + + Version* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Version& from); + void MergeFrom(const Version& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Version* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string Build = 1; + void clear_build(); + static const int kBuildFieldNumber = 1; + const ::std::string& build() const; + void set_build(const ::std::string& value); + #if LANG_CXX11 + void set_build(::std::string&& value); + #endif + void set_build(const char* value); + void set_build(const char* value, size_t size); + ::std::string* mutable_build(); + ::std::string* release_build(); + void set_allocated_build(::std::string* build); + + // string Version = 2; + void clear_version(); + static const int kVersionFieldNumber = 2; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + // string BuildTime = 3; + void clear_buildtime(); + static const int kBuildTimeFieldNumber = 3; + const ::std::string& buildtime() const; + void set_buildtime(const ::std::string& value); + #if LANG_CXX11 + void set_buildtime(::std::string&& value); + #endif + void set_buildtime(const char* value); + void set_buildtime(const char* value, size_t size); + ::std::string* mutable_buildtime(); + ::std::string* release_buildtime(); + void set_allocated_buildtime(::std::string* buildtime); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Version) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr build_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr buildtime_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fversion_2eproto; +}; +// ------------------------------------------------------------------- + +class GetVersionRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetVersionRequest) */ { + public: + GetVersionRequest(); + virtual ~GetVersionRequest(); + + GetVersionRequest(const GetVersionRequest& from); + + inline GetVersionRequest& operator=(const GetVersionRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetVersionRequest(GetVersionRequest&& from) noexcept + : GetVersionRequest() { + *this = ::std::move(from); + } + + inline GetVersionRequest& operator=(GetVersionRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetVersionRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetVersionRequest* internal_default_instance() { + return reinterpret_cast( + &_GetVersionRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(GetVersionRequest* other); + friend void swap(GetVersionRequest& a, GetVersionRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetVersionRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetVersionRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetVersionRequest& from); + void MergeFrom(const GetVersionRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetVersionRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fversion_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// GetVersionResponse + +// .flyteidl.admin.Version control_plane_version = 1; +inline bool GetVersionResponse::has_control_plane_version() const { + return this != internal_default_instance() && control_plane_version_ != nullptr; +} +inline void GetVersionResponse::clear_control_plane_version() { + if (GetArenaNoVirtual() == nullptr && control_plane_version_ != nullptr) { + delete control_plane_version_; + } + control_plane_version_ = nullptr; +} +inline const ::flyteidl::admin::Version& GetVersionResponse::control_plane_version() const { + const ::flyteidl::admin::Version* p = control_plane_version_; + // @@protoc_insertion_point(field_get:flyteidl.admin.GetVersionResponse.control_plane_version) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_Version_default_instance_); +} +inline ::flyteidl::admin::Version* GetVersionResponse::release_control_plane_version() { + // @@protoc_insertion_point(field_release:flyteidl.admin.GetVersionResponse.control_plane_version) + + ::flyteidl::admin::Version* temp = control_plane_version_; + control_plane_version_ = nullptr; + return temp; +} +inline ::flyteidl::admin::Version* GetVersionResponse::mutable_control_plane_version() { + + if (control_plane_version_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::Version>(GetArenaNoVirtual()); + control_plane_version_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetVersionResponse.control_plane_version) + return control_plane_version_; +} +inline void GetVersionResponse::set_allocated_control_plane_version(::flyteidl::admin::Version* control_plane_version) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete control_plane_version_; + } + if (control_plane_version) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + control_plane_version = ::google::protobuf::internal::GetOwnedMessage( + message_arena, control_plane_version, submessage_arena); + } + + } else { + + } + control_plane_version_ = control_plane_version; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetVersionResponse.control_plane_version) +} + +// ------------------------------------------------------------------- + +// Version + +// string Build = 1; +inline void Version::clear_build() { + build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Version::build() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Version.Build) + return build_.GetNoArena(); +} +inline void Version::set_build(const ::std::string& value) { + + build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Version.Build) +} +#if LANG_CXX11 +inline void Version::set_build(::std::string&& value) { + + build_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Version.Build) +} +#endif +inline void Version::set_build(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Version.Build) +} +inline void Version::set_build(const char* value, size_t size) { + + build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Version.Build) +} +inline ::std::string* Version::mutable_build() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Version.Build) + return build_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Version::release_build() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Version.Build) + + return build_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Version::set_allocated_build(::std::string* build) { + if (build != nullptr) { + + } else { + + } + build_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), build); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Version.Build) +} + +// string Version = 2; +inline void Version::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Version::version() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Version.Version) + return version_.GetNoArena(); +} +inline void Version::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Version.Version) +} +#if LANG_CXX11 +inline void Version::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Version.Version) +} +#endif +inline void Version::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Version.Version) +} +inline void Version::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Version.Version) +} +inline ::std::string* Version::mutable_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Version.Version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Version::release_version() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Version.Version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Version::set_allocated_version(::std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Version.Version) +} + +// string BuildTime = 3; +inline void Version::clear_buildtime() { + buildtime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Version::buildtime() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Version.BuildTime) + return buildtime_.GetNoArena(); +} +inline void Version::set_buildtime(const ::std::string& value) { + + buildtime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Version.BuildTime) +} +#if LANG_CXX11 +inline void Version::set_buildtime(::std::string&& value) { + + buildtime_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Version.BuildTime) +} +#endif +inline void Version::set_buildtime(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + buildtime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Version.BuildTime) +} +inline void Version::set_buildtime(const char* value, size_t size) { + + buildtime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Version.BuildTime) +} +inline ::std::string* Version::mutable_buildtime() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Version.BuildTime) + return buildtime_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Version::release_buildtime() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Version.BuildTime) + + return buildtime_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Version::set_allocated_buildtime(::std::string* buildtime) { + if (buildtime != nullptr) { + + } else { + + } + buildtime_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), buildtime); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Version.BuildTime) +} + +// ------------------------------------------------------------------- + +// GetVersionRequest + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fversion_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc new file mode 100644 index 0000000000..0ddae032f7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/workflow.proto + +#include "flyteidl/admin/workflow.pb.h" +#include "flyteidl/admin/workflow.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h new file mode 100644 index 0000000000..49ac7a56b8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/workflow.proto +#ifndef GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED + +#include "flyteidl/admin/workflow.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc new file mode 100644 index 0000000000..dbe431e07d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc @@ -0,0 +1,3572 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +#include "flyteidl/admin/workflow.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace admin { +class WorkflowCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowCreateRequest_default_instance_; +class WorkflowCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowCreateResponse_default_instance_; +class WorkflowDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Workflow_default_instance_; +class WorkflowListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowList_default_instance_; +class WorkflowSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowSpec_default_instance_; +class WorkflowClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowClosure_default_instance_; +class WorkflowErrorExistsDifferentStructureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowErrorExistsDifferentStructure_default_instance_; +class WorkflowErrorExistsIdenticalStructureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowErrorExistsIdenticalStructure_default_instance_; +class CreateWorkflowFailureReasonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure_; + const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure_; +} _CreateWorkflowFailureReason_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsWorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowCreateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; + +static void InitDefaultsWorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowCreateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto}, {}}; + +static void InitDefaultsWorkflow_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_Workflow_default_instance_; + new (ptr) ::flyteidl::admin::Workflow(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Workflow::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflow_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; + +static void InitDefaultsWorkflowList_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowList_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowList_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; + +static void InitDefaultsWorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowSpec_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; + +static void InitDefaultsWorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowClosure_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsWorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowErrorExistsDifferentStructure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsWorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsCreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_; + new (ptr) ::flyteidl::admin::CreateWorkflowFailureReason(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::CreateWorkflowFailureReason::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base, + &scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; + +void InitDefaults_flyteidl_2fadmin_2fworkflow_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[9]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fworkflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, spec_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, closure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, short_description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowList, workflows_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowList, token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, template__), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, sub_workflows_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, description_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, compiled_workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, created_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsDifferentStructure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsDifferentStructure, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateWorkflowFailureReason, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateWorkflowFailureReason, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::CreateWorkflowFailureReasonDefaultTypeInternal, exists_different_structure_), + offsetof(::flyteidl::admin::CreateWorkflowFailureReasonDefaultTypeInternal, exists_identical_structure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateWorkflowFailureReason, reason_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::WorkflowCreateRequest)}, + { 7, -1, sizeof(::flyteidl::admin::WorkflowCreateResponse)}, + { 12, -1, sizeof(::flyteidl::admin::Workflow)}, + { 20, -1, sizeof(::flyteidl::admin::WorkflowList)}, + { 27, -1, sizeof(::flyteidl::admin::WorkflowSpec)}, + { 35, -1, sizeof(::flyteidl::admin::WorkflowClosure)}, + { 42, -1, sizeof(::flyteidl::admin::WorkflowErrorExistsDifferentStructure)}, + { 48, -1, sizeof(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure)}, + { 54, -1, sizeof(::flyteidl::admin::CreateWorkflowFailureReason)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_WorkflowCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Workflow_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto, "flyteidl/admin/workflow.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fworkflow_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto, 9, file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_2eproto[] = + "\n\035flyteidl/admin/workflow.proto\022\016flyteid" + "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + "lyteidl/core/identifier.proto\032\034flyteidl/" + "core/workflow.proto\032\'flyteidl/admin/desc" + "ription_entity.proto\032\037google/protobuf/ti" + "mestamp.proto\"j\n\025WorkflowCreateRequest\022%" + "\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\022*\n" + "\004spec\030\002 \001(\0132\034.flyteidl.admin.WorkflowSpe" + "c\"\030\n\026WorkflowCreateResponse\"~\n\010Workflow\022" + "%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\0220" + "\n\007closure\030\002 \001(\0132\037.flyteidl.admin.Workflo" + "wClosure\022\031\n\021short_description\030\003 \001(\t\"J\n\014W" + "orkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flyteid" + "l.admin.Workflow\022\r\n\005token\030\002 \001(\t\"\261\001\n\014Work" + "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" + "(\0132\037.flyteidl.core.WorkflowTemplate\0226\n\013d" + "escription\030\003 \001(\0132!.flyteidl.admin.Descri" + "ptionEntity\"\204\001\n\017WorkflowClosure\022A\n\021compi" + "led_workflow\030\001 \001(\0132&.flyteidl.core.Compi" + "ledWorkflowClosure\022.\n\ncreated_at\030\002 \001(\0132\032" + ".google.protobuf.Timestamp\"N\n%WorkflowEr" + "rorExistsDifferentStructure\022%\n\002id\030\001 \001(\0132" + "\031.flyteidl.core.Identifier\"N\n%WorkflowEr" + "rorExistsIdenticalStructure\022%\n\002id\030\001 \001(\0132" + "\031.flyteidl.core.Identifier\"\341\001\n\033CreateWor" + "kflowFailureReason\022[\n\032exists_different_s" + "tructure\030\001 \001(\01325.flyteidl.admin.Workflow" + "ErrorExistsDifferentStructureH\000\022[\n\032exist" + "s_identical_structure\030\002 \001(\01325.flyteidl.a" + "dmin.WorkflowErrorExistsIdenticalStructu" + "reH\000B\010\n\006reasonB7Z5github.com/flyteorg/fl" + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fworkflow_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fworkflow_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_2eproto, + "flyteidl/admin/workflow.proto", &assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto, 1319, +}; + +void AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[5] = + { + ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fworkflow_2eproto, deps, 5); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fworkflow_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void WorkflowCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_WorkflowCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::WorkflowSpec*>( + ::flyteidl::admin::WorkflowSpec::internal_default_instance()); +} +class WorkflowCreateRequest::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const WorkflowCreateRequest* msg); + static const ::flyteidl::admin::WorkflowSpec& spec(const WorkflowCreateRequest* msg); +}; + +const ::flyteidl::core::Identifier& +WorkflowCreateRequest::HasBitSetters::id(const WorkflowCreateRequest* msg) { + return *msg->id_; +} +const ::flyteidl::admin::WorkflowSpec& +WorkflowCreateRequest::HasBitSetters::spec(const WorkflowCreateRequest* msg) { + return *msg->spec_; +} +void WorkflowCreateRequest::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowCreateRequest::kIdFieldNumber; +const int WorkflowCreateRequest::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowCreateRequest::WorkflowCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowCreateRequest) +} +WorkflowCreateRequest::WorkflowCreateRequest(const WorkflowCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::WorkflowSpec(*from.spec_); + } else { + spec_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowCreateRequest) +} + +void WorkflowCreateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&spec_) - + reinterpret_cast(&id_)) + sizeof(spec_)); +} + +WorkflowCreateRequest::~WorkflowCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowCreateRequest) + SharedDtor(); +} + +void WorkflowCreateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; +} + +void WorkflowCreateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowCreateRequest& WorkflowCreateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowCreateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.WorkflowSpec spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowSpec::_InternalParse; + object = msg->mutable_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowCreateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowCreateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::spec(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowCreateRequest) +} + +::google::protobuf::uint8* WorkflowCreateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::spec(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowCreateRequest) + return target; +} + +size_t WorkflowCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowCreateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowCreateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowCreateRequest) + MergeFrom(*source); + } +} + +void WorkflowCreateRequest::MergeFrom(const WorkflowCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::WorkflowSpec::MergeFrom(from.spec()); + } +} + +void WorkflowCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowCreateRequest::CopyFrom(const WorkflowCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowCreateRequest::IsInitialized() const { + return true; +} + +void WorkflowCreateRequest::Swap(WorkflowCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowCreateRequest::InternalSwap(WorkflowCreateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); + swap(spec_, other->spec_); +} + +::google::protobuf::Metadata WorkflowCreateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowCreateResponse::InitAsDefaultInstance() { +} +class WorkflowCreateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowCreateResponse::WorkflowCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowCreateResponse) +} +WorkflowCreateResponse::WorkflowCreateResponse(const WorkflowCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowCreateResponse) +} + +void WorkflowCreateResponse::SharedCtor() { +} + +WorkflowCreateResponse::~WorkflowCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowCreateResponse) + SharedDtor(); +} + +void WorkflowCreateResponse::SharedDtor() { +} + +void WorkflowCreateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowCreateResponse& WorkflowCreateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowCreateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowCreateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowCreateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowCreateResponse) +} + +::google::protobuf::uint8* WorkflowCreateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowCreateResponse) + return target; +} + +size_t WorkflowCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowCreateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowCreateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowCreateResponse) + MergeFrom(*source); + } +} + +void WorkflowCreateResponse::MergeFrom(const WorkflowCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowCreateResponse::CopyFrom(const WorkflowCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowCreateResponse::IsInitialized() const { + return true; +} + +void WorkflowCreateResponse::Swap(WorkflowCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowCreateResponse::InternalSwap(WorkflowCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WorkflowCreateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Workflow::InitAsDefaultInstance() { + ::flyteidl::admin::_Workflow_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_Workflow_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::WorkflowClosure*>( + ::flyteidl::admin::WorkflowClosure::internal_default_instance()); +} +class Workflow::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const Workflow* msg); + static const ::flyteidl::admin::WorkflowClosure& closure(const Workflow* msg); +}; + +const ::flyteidl::core::Identifier& +Workflow::HasBitSetters::id(const Workflow* msg) { + return *msg->id_; +} +const ::flyteidl::admin::WorkflowClosure& +Workflow::HasBitSetters::closure(const Workflow* msg) { + return *msg->closure_; +} +void Workflow::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Workflow::kIdFieldNumber; +const int Workflow::kClosureFieldNumber; +const int Workflow::kShortDescriptionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Workflow::Workflow() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Workflow) +} +Workflow::Workflow(const Workflow& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.short_description().size() > 0) { + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::WorkflowClosure(*from.closure_); + } else { + closure_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Workflow) +} + +void Workflow::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base); + short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); +} + +Workflow::~Workflow() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Workflow) + SharedDtor(); +} + +void Workflow::SharedDtor() { + short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; +} + +void Workflow::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Workflow& Workflow::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void Workflow::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Workflow) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Workflow::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.WorkflowClosure closure = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowClosure::_InternalParse; + object = msg->mutable_closure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string short_description = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.Workflow.short_description"); + object = msg->mutable_short_description(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Workflow::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Workflow) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } else { + goto handle_unusual; + } + break; + } + + // string short_description = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_short_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Workflow.short_description")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.Workflow) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Workflow) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Workflow::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Workflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::closure(this), output); + } + + // string short_description = 3; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Workflow.short_description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->short_description(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Workflow) +} + +::google::protobuf::uint8* Workflow::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Workflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::closure(this), target); + } + + // string short_description = 3; + if (this->short_description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->short_description().data(), static_cast(this->short_description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Workflow.short_description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->short_description(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Workflow) + return target; +} + +size_t Workflow::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Workflow) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string short_description = 3; + if (this->short_description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->short_description()); + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Workflow::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Workflow) + GOOGLE_DCHECK_NE(&from, this); + const Workflow* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Workflow) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Workflow) + MergeFrom(*source); + } +} + +void Workflow::MergeFrom(const Workflow& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Workflow) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.short_description().size() > 0) { + + short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::WorkflowClosure::MergeFrom(from.closure()); + } +} + +void Workflow::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Workflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Workflow::CopyFrom(const Workflow& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Workflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Workflow::IsInitialized() const { + return true; +} + +void Workflow::Swap(Workflow* other) { + if (other == this) return; + InternalSwap(other); +} +void Workflow::InternalSwap(Workflow* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(closure_, other->closure_); +} + +::google::protobuf::Metadata Workflow::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowList::InitAsDefaultInstance() { +} +class WorkflowList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowList::kWorkflowsFieldNumber; +const int WorkflowList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowList::WorkflowList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowList) +} +WorkflowList::WorkflowList(const WorkflowList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + workflows_(from.workflows_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowList) +} + +void WorkflowList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +WorkflowList::~WorkflowList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowList) + SharedDtor(); +} + +void WorkflowList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WorkflowList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowList& WorkflowList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + workflows_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.admin.Workflow workflows = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::Workflow::_InternalParse; + object = msg->add_workflows(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowList.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.admin.Workflow workflows = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_workflows())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowList.token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Workflow workflows = 1; + for (unsigned int i = 0, + n = static_cast(this->workflows_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->workflows(static_cast(i)), + output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowList) +} + +::google::protobuf::uint8* WorkflowList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Workflow workflows = 1; + for (unsigned int i = 0, + n = static_cast(this->workflows_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->workflows(static_cast(i)), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowList) + return target; +} + +size_t WorkflowList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.admin.Workflow workflows = 1; + { + unsigned int count = static_cast(this->workflows_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->workflows(static_cast(i))); + } + } + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowList) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowList) + MergeFrom(*source); + } +} + +void WorkflowList::MergeFrom(const WorkflowList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + workflows_.MergeFrom(from.workflows_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void WorkflowList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowList::CopyFrom(const WorkflowList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowList::IsInitialized() const { + return true; +} + +void WorkflowList::Swap(WorkflowList* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowList::InternalSwap(WorkflowList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&workflows_)->InternalSwap(CastToBase(&other->workflows_)); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata WorkflowList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowSpec_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::WorkflowTemplate*>( + ::flyteidl::core::WorkflowTemplate::internal_default_instance()); + ::flyteidl::admin::_WorkflowSpec_default_instance_._instance.get_mutable()->description_ = const_cast< ::flyteidl::admin::DescriptionEntity*>( + ::flyteidl::admin::DescriptionEntity::internal_default_instance()); +} +class WorkflowSpec::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowTemplate& template_(const WorkflowSpec* msg); + static const ::flyteidl::admin::DescriptionEntity& description(const WorkflowSpec* msg); +}; + +const ::flyteidl::core::WorkflowTemplate& +WorkflowSpec::HasBitSetters::template_(const WorkflowSpec* msg) { + return *msg->template__; +} +const ::flyteidl::admin::DescriptionEntity& +WorkflowSpec::HasBitSetters::description(const WorkflowSpec* msg) { + return *msg->description_; +} +void WorkflowSpec::clear_template_() { + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; +} +void WorkflowSpec::clear_sub_workflows() { + sub_workflows_.Clear(); +} +void WorkflowSpec::clear_description() { + if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { + delete description_; + } + description_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowSpec::kTemplateFieldNumber; +const int WorkflowSpec::kSubWorkflowsFieldNumber; +const int WorkflowSpec::kDescriptionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowSpec::WorkflowSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowSpec) +} +WorkflowSpec::WorkflowSpec(const WorkflowSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + sub_workflows_(from.sub_workflows_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::WorkflowTemplate(*from.template__); + } else { + template__ = nullptr; + } + if (from.has_description()) { + description_ = new ::flyteidl::admin::DescriptionEntity(*from.description_); + } else { + description_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowSpec) +} + +void WorkflowSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::memset(&template__, 0, static_cast( + reinterpret_cast(&description_) - + reinterpret_cast(&template__)) + sizeof(description_)); +} + +WorkflowSpec::~WorkflowSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowSpec) + SharedDtor(); +} + +void WorkflowSpec::SharedDtor() { + if (this != internal_default_instance()) delete template__; + if (this != internal_default_instance()) delete description_; +} + +void WorkflowSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowSpec& WorkflowSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + sub_workflows_.Clear(); + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; + if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { + delete description_; + } + description_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowTemplate template = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowTemplate::_InternalParse; + object = msg->mutable_template_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowTemplate::_InternalParse; + object = msg->add_sub_workflows(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // .flyteidl.admin.DescriptionEntity description = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::DescriptionEntity::_InternalParse; + object = msg->mutable_description(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_sub_workflows())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.DescriptionEntity description = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_description())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::template_(this), output); + } + + // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + for (unsigned int i = 0, + n = static_cast(this->sub_workflows_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->sub_workflows(static_cast(i)), + output); + } + + // .flyteidl.admin.DescriptionEntity description = 3; + if (this->has_description()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::description(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowSpec) +} + +::google::protobuf::uint8* WorkflowSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::template_(this), target); + } + + // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + for (unsigned int i = 0, + n = static_cast(this->sub_workflows_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->sub_workflows(static_cast(i)), target); + } + + // .flyteidl.admin.DescriptionEntity description = 3; + if (this->has_description()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::description(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowSpec) + return target; +} + +size_t WorkflowSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + { + unsigned int count = static_cast(this->sub_workflows_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->sub_workflows(static_cast(i))); + } + } + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *template__); + } + + // .flyteidl.admin.DescriptionEntity description = 3; + if (this->has_description()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *description_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowSpec) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowSpec) + MergeFrom(*source); + } +} + +void WorkflowSpec::MergeFrom(const WorkflowSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + sub_workflows_.MergeFrom(from.sub_workflows_); + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.template_()); + } + if (from.has_description()) { + mutable_description()->::flyteidl::admin::DescriptionEntity::MergeFrom(from.description()); + } +} + +void WorkflowSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowSpec::CopyFrom(const WorkflowSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowSpec::IsInitialized() const { + return true; +} + +void WorkflowSpec::Swap(WorkflowSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowSpec::InternalSwap(WorkflowSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&sub_workflows_)->InternalSwap(CastToBase(&other->sub_workflows_)); + swap(template__, other->template__); + swap(description_, other->description_); +} + +::google::protobuf::Metadata WorkflowSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowClosure_default_instance_._instance.get_mutable()->compiled_workflow_ = const_cast< ::flyteidl::core::CompiledWorkflowClosure*>( + ::flyteidl::core::CompiledWorkflowClosure::internal_default_instance()); + ::flyteidl::admin::_WorkflowClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class WorkflowClosure::HasBitSetters { + public: + static const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow(const WorkflowClosure* msg); + static const ::google::protobuf::Timestamp& created_at(const WorkflowClosure* msg); +}; + +const ::flyteidl::core::CompiledWorkflowClosure& +WorkflowClosure::HasBitSetters::compiled_workflow(const WorkflowClosure* msg) { + return *msg->compiled_workflow_; +} +const ::google::protobuf::Timestamp& +WorkflowClosure::HasBitSetters::created_at(const WorkflowClosure* msg) { + return *msg->created_at_; +} +void WorkflowClosure::clear_compiled_workflow() { + if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { + delete compiled_workflow_; + } + compiled_workflow_ = nullptr; +} +void WorkflowClosure::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowClosure::kCompiledWorkflowFieldNumber; +const int WorkflowClosure::kCreatedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowClosure::WorkflowClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowClosure) +} +WorkflowClosure::WorkflowClosure(const WorkflowClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_compiled_workflow()) { + compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure(*from.compiled_workflow_); + } else { + compiled_workflow_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowClosure) +} + +void WorkflowClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::memset(&compiled_workflow_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&compiled_workflow_)) + sizeof(created_at_)); +} + +WorkflowClosure::~WorkflowClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowClosure) + SharedDtor(); +} + +void WorkflowClosure::SharedDtor() { + if (this != internal_default_instance()) delete compiled_workflow_; + if (this != internal_default_instance()) delete created_at_; +} + +void WorkflowClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowClosure& WorkflowClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { + delete compiled_workflow_; + } + compiled_workflow_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CompiledWorkflowClosure::_InternalParse; + object = msg->mutable_compiled_workflow(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp created_at = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_compiled_workflow())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + if (this->has_compiled_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::compiled_workflow(this), output); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::created_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowClosure) +} + +::google::protobuf::uint8* WorkflowClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + if (this->has_compiled_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::compiled_workflow(this), target); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::created_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowClosure) + return target; +} + +size_t WorkflowClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + if (this->has_compiled_workflow()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *compiled_workflow_); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowClosure) + MergeFrom(*source); + } +} + +void WorkflowClosure::MergeFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_compiled_workflow()) { + mutable_compiled_workflow()->::flyteidl::core::CompiledWorkflowClosure::MergeFrom(from.compiled_workflow()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } +} + +void WorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowClosure::CopyFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowClosure::IsInitialized() const { + return true; +} + +void WorkflowClosure::Swap(WorkflowClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowClosure::InternalSwap(WorkflowClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(compiled_workflow_, other->compiled_workflow_); + swap(created_at_, other->created_at_); +} + +::google::protobuf::Metadata WorkflowClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowErrorExistsDifferentStructure::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +class WorkflowErrorExistsDifferentStructure::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const WorkflowErrorExistsDifferentStructure* msg); +}; + +const ::flyteidl::core::Identifier& +WorkflowErrorExistsDifferentStructure::HasBitSetters::id(const WorkflowErrorExistsDifferentStructure* msg) { + return *msg->id_; +} +void WorkflowErrorExistsDifferentStructure::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowErrorExistsDifferentStructure::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowErrorExistsDifferentStructure::WorkflowErrorExistsDifferentStructure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowErrorExistsDifferentStructure) +} +WorkflowErrorExistsDifferentStructure::WorkflowErrorExistsDifferentStructure(const WorkflowErrorExistsDifferentStructure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowErrorExistsDifferentStructure) +} + +void WorkflowErrorExistsDifferentStructure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + id_ = nullptr; +} + +WorkflowErrorExistsDifferentStructure::~WorkflowErrorExistsDifferentStructure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + SharedDtor(); +} + +void WorkflowErrorExistsDifferentStructure::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowErrorExistsDifferentStructure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowErrorExistsDifferentStructure& WorkflowErrorExistsDifferentStructure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowErrorExistsDifferentStructure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowErrorExistsDifferentStructure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowErrorExistsDifferentStructure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowErrorExistsDifferentStructure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowErrorExistsDifferentStructure) +} + +::google::protobuf::uint8* WorkflowErrorExistsDifferentStructure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + return target; +} + +size_t WorkflowErrorExistsDifferentStructure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowErrorExistsDifferentStructure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowErrorExistsDifferentStructure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + MergeFrom(*source); + } +} + +void WorkflowErrorExistsDifferentStructure::MergeFrom(const WorkflowErrorExistsDifferentStructure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } +} + +void WorkflowErrorExistsDifferentStructure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowErrorExistsDifferentStructure::CopyFrom(const WorkflowErrorExistsDifferentStructure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowErrorExistsDifferentStructure::IsInitialized() const { + return true; +} + +void WorkflowErrorExistsDifferentStructure::Swap(WorkflowErrorExistsDifferentStructure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowErrorExistsDifferentStructure::InternalSwap(WorkflowErrorExistsDifferentStructure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata WorkflowErrorExistsDifferentStructure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowErrorExistsIdenticalStructure::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +class WorkflowErrorExistsIdenticalStructure::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const WorkflowErrorExistsIdenticalStructure* msg); +}; + +const ::flyteidl::core::Identifier& +WorkflowErrorExistsIdenticalStructure::HasBitSetters::id(const WorkflowErrorExistsIdenticalStructure* msg) { + return *msg->id_; +} +void WorkflowErrorExistsIdenticalStructure::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowErrorExistsIdenticalStructure::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowErrorExistsIdenticalStructure::WorkflowErrorExistsIdenticalStructure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) +} +WorkflowErrorExistsIdenticalStructure::WorkflowErrorExistsIdenticalStructure(const WorkflowErrorExistsIdenticalStructure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) +} + +void WorkflowErrorExistsIdenticalStructure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + id_ = nullptr; +} + +WorkflowErrorExistsIdenticalStructure::~WorkflowErrorExistsIdenticalStructure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + SharedDtor(); +} + +void WorkflowErrorExistsIdenticalStructure::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowErrorExistsIdenticalStructure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowErrorExistsIdenticalStructure& WorkflowErrorExistsIdenticalStructure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowErrorExistsIdenticalStructure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowErrorExistsIdenticalStructure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowErrorExistsIdenticalStructure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowErrorExistsIdenticalStructure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) +} + +::google::protobuf::uint8* WorkflowErrorExistsIdenticalStructure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + return target; +} + +size_t WorkflowErrorExistsIdenticalStructure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowErrorExistsIdenticalStructure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowErrorExistsIdenticalStructure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + MergeFrom(*source); + } +} + +void WorkflowErrorExistsIdenticalStructure::MergeFrom(const WorkflowErrorExistsIdenticalStructure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } +} + +void WorkflowErrorExistsIdenticalStructure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowErrorExistsIdenticalStructure::CopyFrom(const WorkflowErrorExistsIdenticalStructure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowErrorExistsIdenticalStructure::IsInitialized() const { + return true; +} + +void WorkflowErrorExistsIdenticalStructure::Swap(WorkflowErrorExistsIdenticalStructure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowErrorExistsIdenticalStructure::InternalSwap(WorkflowErrorExistsIdenticalStructure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata WorkflowErrorExistsIdenticalStructure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateWorkflowFailureReason::InitAsDefaultInstance() { + ::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_.exists_different_structure_ = const_cast< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure*>( + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure::internal_default_instance()); + ::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_.exists_identical_structure_ = const_cast< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure*>( + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::internal_default_instance()); +} +class CreateWorkflowFailureReason::HasBitSetters { + public: + static const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& exists_different_structure(const CreateWorkflowFailureReason* msg); + static const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& exists_identical_structure(const CreateWorkflowFailureReason* msg); +}; + +const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& +CreateWorkflowFailureReason::HasBitSetters::exists_different_structure(const CreateWorkflowFailureReason* msg) { + return *msg->reason_.exists_different_structure_; +} +const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& +CreateWorkflowFailureReason::HasBitSetters::exists_identical_structure(const CreateWorkflowFailureReason* msg) { + return *msg->reason_.exists_identical_structure_; +} +void CreateWorkflowFailureReason::set_allocated_exists_different_structure(::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reason(); + if (exists_different_structure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + exists_different_structure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, exists_different_structure, submessage_arena); + } + set_has_exists_different_structure(); + reason_.exists_different_structure_ = exists_different_structure; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) +} +void CreateWorkflowFailureReason::set_allocated_exists_identical_structure(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reason(); + if (exists_identical_structure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + exists_identical_structure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, exists_identical_structure, submessage_arena); + } + set_has_exists_identical_structure(); + reason_.exists_identical_structure_ = exists_identical_structure; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateWorkflowFailureReason::kExistsDifferentStructureFieldNumber; +const int CreateWorkflowFailureReason::kExistsIdenticalStructureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateWorkflowFailureReason::CreateWorkflowFailureReason() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.CreateWorkflowFailureReason) +} +CreateWorkflowFailureReason::CreateWorkflowFailureReason(const CreateWorkflowFailureReason& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_reason(); + switch (from.reason_case()) { + case kExistsDifferentStructure: { + mutable_exists_different_structure()->::flyteidl::admin::WorkflowErrorExistsDifferentStructure::MergeFrom(from.exists_different_structure()); + break; + } + case kExistsIdenticalStructure: { + mutable_exists_identical_structure()->::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::MergeFrom(from.exists_identical_structure()); + break; + } + case REASON_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateWorkflowFailureReason) +} + +void CreateWorkflowFailureReason::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto.base); + clear_has_reason(); +} + +CreateWorkflowFailureReason::~CreateWorkflowFailureReason() { + // @@protoc_insertion_point(destructor:flyteidl.admin.CreateWorkflowFailureReason) + SharedDtor(); +} + +void CreateWorkflowFailureReason::SharedDtor() { + if (has_reason()) { + clear_reason(); + } +} + +void CreateWorkflowFailureReason::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateWorkflowFailureReason& CreateWorkflowFailureReason::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void CreateWorkflowFailureReason::clear_reason() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.CreateWorkflowFailureReason) + switch (reason_case()) { + case kExistsDifferentStructure: { + delete reason_.exists_different_structure_; + break; + } + case kExistsIdenticalStructure: { + delete reason_.exists_identical_structure_; + break; + } + case REASON_NOT_SET: { + break; + } + } + _oneof_case_[0] = REASON_NOT_SET; +} + + +void CreateWorkflowFailureReason::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_reason(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateWorkflowFailureReason::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowErrorExistsDifferentStructure::_InternalParse; + object = msg->mutable_exists_different_structure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::_InternalParse; + object = msg->mutable_exists_identical_structure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateWorkflowFailureReason::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.CreateWorkflowFailureReason) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_exists_different_structure())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_exists_identical_structure())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.CreateWorkflowFailureReason) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateWorkflowFailureReason) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateWorkflowFailureReason::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + if (has_exists_different_structure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::exists_different_structure(this), output); + } + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + if (has_exists_identical_structure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::exists_identical_structure(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.CreateWorkflowFailureReason) +} + +::google::protobuf::uint8* CreateWorkflowFailureReason::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + if (has_exists_different_structure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::exists_different_structure(this), target); + } + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + if (has_exists_identical_structure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::exists_identical_structure(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.CreateWorkflowFailureReason) + return target; +} + +size_t CreateWorkflowFailureReason::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateWorkflowFailureReason) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (reason_case()) { + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + case kExistsDifferentStructure: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reason_.exists_different_structure_); + break; + } + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + case kExistsIdenticalStructure: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reason_.exists_identical_structure_); + break; + } + case REASON_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateWorkflowFailureReason::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateWorkflowFailureReason) + GOOGLE_DCHECK_NE(&from, this); + const CreateWorkflowFailureReason* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateWorkflowFailureReason) + MergeFrom(*source); + } +} + +void CreateWorkflowFailureReason::MergeFrom(const CreateWorkflowFailureReason& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateWorkflowFailureReason) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.reason_case()) { + case kExistsDifferentStructure: { + mutable_exists_different_structure()->::flyteidl::admin::WorkflowErrorExistsDifferentStructure::MergeFrom(from.exists_different_structure()); + break; + } + case kExistsIdenticalStructure: { + mutable_exists_identical_structure()->::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::MergeFrom(from.exists_identical_structure()); + break; + } + case REASON_NOT_SET: { + break; + } + } +} + +void CreateWorkflowFailureReason::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateWorkflowFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateWorkflowFailureReason::CopyFrom(const CreateWorkflowFailureReason& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateWorkflowFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateWorkflowFailureReason::IsInitialized() const { + return true; +} + +void CreateWorkflowFailureReason::Swap(CreateWorkflowFailureReason* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateWorkflowFailureReason::InternalSwap(CreateWorkflowFailureReason* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(reason_, other->reason_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata CreateWorkflowFailureReason::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowCreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowCreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowCreateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowCreateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Workflow* Arena::CreateMaybeMessage< ::flyteidl::admin::Workflow >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Workflow >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowList* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowClosure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateWorkflowFailureReason* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateWorkflowFailureReason >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateWorkflowFailureReason >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h new file mode 100644 index 0000000000..ffed86790b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h @@ -0,0 +1,2030 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/compiler.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/admin/description_entity.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fworkflow_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[9] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto(); +namespace flyteidl { +namespace admin { +class CreateWorkflowFailureReason; +class CreateWorkflowFailureReasonDefaultTypeInternal; +extern CreateWorkflowFailureReasonDefaultTypeInternal _CreateWorkflowFailureReason_default_instance_; +class Workflow; +class WorkflowDefaultTypeInternal; +extern WorkflowDefaultTypeInternal _Workflow_default_instance_; +class WorkflowClosure; +class WorkflowClosureDefaultTypeInternal; +extern WorkflowClosureDefaultTypeInternal _WorkflowClosure_default_instance_; +class WorkflowCreateRequest; +class WorkflowCreateRequestDefaultTypeInternal; +extern WorkflowCreateRequestDefaultTypeInternal _WorkflowCreateRequest_default_instance_; +class WorkflowCreateResponse; +class WorkflowCreateResponseDefaultTypeInternal; +extern WorkflowCreateResponseDefaultTypeInternal _WorkflowCreateResponse_default_instance_; +class WorkflowErrorExistsDifferentStructure; +class WorkflowErrorExistsDifferentStructureDefaultTypeInternal; +extern WorkflowErrorExistsDifferentStructureDefaultTypeInternal _WorkflowErrorExistsDifferentStructure_default_instance_; +class WorkflowErrorExistsIdenticalStructure; +class WorkflowErrorExistsIdenticalStructureDefaultTypeInternal; +extern WorkflowErrorExistsIdenticalStructureDefaultTypeInternal _WorkflowErrorExistsIdenticalStructure_default_instance_; +class WorkflowList; +class WorkflowListDefaultTypeInternal; +extern WorkflowListDefaultTypeInternal _WorkflowList_default_instance_; +class WorkflowSpec; +class WorkflowSpecDefaultTypeInternal; +extern WorkflowSpecDefaultTypeInternal _WorkflowSpec_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::CreateWorkflowFailureReason* Arena::CreateMaybeMessage<::flyteidl::admin::CreateWorkflowFailureReason>(Arena*); +template<> ::flyteidl::admin::Workflow* Arena::CreateMaybeMessage<::flyteidl::admin::Workflow>(Arena*); +template<> ::flyteidl::admin::WorkflowClosure* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowClosure>(Arena*); +template<> ::flyteidl::admin::WorkflowCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowCreateRequest>(Arena*); +template<> ::flyteidl::admin::WorkflowCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowCreateResponse>(Arena*); +template<> ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowErrorExistsDifferentStructure>(Arena*); +template<> ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowErrorExistsIdenticalStructure>(Arena*); +template<> ::flyteidl::admin::WorkflowList* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowList>(Arena*); +template<> ::flyteidl::admin::WorkflowSpec* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowSpec>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class WorkflowCreateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowCreateRequest) */ { + public: + WorkflowCreateRequest(); + virtual ~WorkflowCreateRequest(); + + WorkflowCreateRequest(const WorkflowCreateRequest& from); + + inline WorkflowCreateRequest& operator=(const WorkflowCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowCreateRequest(WorkflowCreateRequest&& from) noexcept + : WorkflowCreateRequest() { + *this = ::std::move(from); + } + + inline WorkflowCreateRequest& operator=(WorkflowCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowCreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(WorkflowCreateRequest* other); + friend void swap(WorkflowCreateRequest& a, WorkflowCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowCreateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowCreateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowCreateRequest& from); + void MergeFrom(const WorkflowCreateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.WorkflowSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::WorkflowSpec& spec() const; + ::flyteidl::admin::WorkflowSpec* release_spec(); + ::flyteidl::admin::WorkflowSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::WorkflowSpec* spec); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::WorkflowSpec* spec_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowCreateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowCreateResponse) */ { + public: + WorkflowCreateResponse(); + virtual ~WorkflowCreateResponse(); + + WorkflowCreateResponse(const WorkflowCreateResponse& from); + + inline WorkflowCreateResponse& operator=(const WorkflowCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowCreateResponse(WorkflowCreateResponse&& from) noexcept + : WorkflowCreateResponse() { + *this = ::std::move(from); + } + + inline WorkflowCreateResponse& operator=(WorkflowCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowCreateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(WorkflowCreateResponse* other); + friend void swap(WorkflowCreateResponse& a, WorkflowCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowCreateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowCreateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowCreateResponse& from); + void MergeFrom(const WorkflowCreateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class Workflow final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Workflow) */ { + public: + Workflow(); + virtual ~Workflow(); + + Workflow(const Workflow& from); + + inline Workflow& operator=(const Workflow& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Workflow(Workflow&& from) noexcept + : Workflow() { + *this = ::std::move(from); + } + + inline Workflow& operator=(Workflow&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Workflow& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Workflow* internal_default_instance() { + return reinterpret_cast( + &_Workflow_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(Workflow* other); + friend void swap(Workflow& a, Workflow& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Workflow* New() const final { + return CreateMaybeMessage(nullptr); + } + + Workflow* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Workflow& from); + void MergeFrom(const Workflow& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Workflow* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string short_description = 3; + void clear_short_description(); + static const int kShortDescriptionFieldNumber = 3; + const ::std::string& short_description() const; + void set_short_description(const ::std::string& value); + #if LANG_CXX11 + void set_short_description(::std::string&& value); + #endif + void set_short_description(const char* value); + void set_short_description(const char* value, size_t size); + ::std::string* mutable_short_description(); + ::std::string* release_short_description(); + void set_allocated_short_description(::std::string* short_description); + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.WorkflowClosure closure = 2; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 2; + const ::flyteidl::admin::WorkflowClosure& closure() const; + ::flyteidl::admin::WorkflowClosure* release_closure(); + ::flyteidl::admin::WorkflowClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::WorkflowClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr short_description_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::WorkflowClosure* closure_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowList) */ { + public: + WorkflowList(); + virtual ~WorkflowList(); + + WorkflowList(const WorkflowList& from); + + inline WorkflowList& operator=(const WorkflowList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowList(WorkflowList&& from) noexcept + : WorkflowList() { + *this = ::std::move(from); + } + + inline WorkflowList& operator=(WorkflowList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowList* internal_default_instance() { + return reinterpret_cast( + &_WorkflowList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(WorkflowList* other); + friend void swap(WorkflowList& a, WorkflowList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowList* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowList& from); + void MergeFrom(const WorkflowList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Workflow workflows = 1; + int workflows_size() const; + void clear_workflows(); + static const int kWorkflowsFieldNumber = 1; + ::flyteidl::admin::Workflow* mutable_workflows(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >* + mutable_workflows(); + const ::flyteidl::admin::Workflow& workflows(int index) const; + ::flyteidl::admin::Workflow* add_workflows(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >& + workflows() const; + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow > workflows_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowSpec) */ { + public: + WorkflowSpec(); + virtual ~WorkflowSpec(); + + WorkflowSpec(const WorkflowSpec& from); + + inline WorkflowSpec& operator=(const WorkflowSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowSpec(WorkflowSpec&& from) noexcept + : WorkflowSpec() { + *this = ::std::move(from); + } + + inline WorkflowSpec& operator=(WorkflowSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowSpec* internal_default_instance() { + return reinterpret_cast( + &_WorkflowSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(WorkflowSpec* other); + friend void swap(WorkflowSpec& a, WorkflowSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowSpec& from); + void MergeFrom(const WorkflowSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + int sub_workflows_size() const; + void clear_sub_workflows(); + static const int kSubWorkflowsFieldNumber = 2; + ::flyteidl::core::WorkflowTemplate* mutable_sub_workflows(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* + mutable_sub_workflows(); + const ::flyteidl::core::WorkflowTemplate& sub_workflows(int index) const; + ::flyteidl::core::WorkflowTemplate* add_sub_workflows(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& + sub_workflows() const; + + // .flyteidl.core.WorkflowTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::WorkflowTemplate& template_() const; + ::flyteidl::core::WorkflowTemplate* release_template_(); + ::flyteidl::core::WorkflowTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_); + + // .flyteidl.admin.DescriptionEntity description = 3; + bool has_description() const; + void clear_description(); + static const int kDescriptionFieldNumber = 3; + const ::flyteidl::admin::DescriptionEntity& description() const; + ::flyteidl::admin::DescriptionEntity* release_description(); + ::flyteidl::admin::DescriptionEntity* mutable_description(); + void set_allocated_description(::flyteidl::admin::DescriptionEntity* description); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate > sub_workflows_; + ::flyteidl::core::WorkflowTemplate* template__; + ::flyteidl::admin::DescriptionEntity* description_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowClosure) */ { + public: + WorkflowClosure(); + virtual ~WorkflowClosure(); + + WorkflowClosure(const WorkflowClosure& from); + + inline WorkflowClosure& operator=(const WorkflowClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowClosure(WorkflowClosure&& from) noexcept + : WorkflowClosure() { + *this = ::std::move(from); + } + + inline WorkflowClosure& operator=(WorkflowClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowClosure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(WorkflowClosure* other); + friend void swap(WorkflowClosure& a, WorkflowClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowClosure& from); + void MergeFrom(const WorkflowClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + bool has_compiled_workflow() const; + void clear_compiled_workflow(); + static const int kCompiledWorkflowFieldNumber = 1; + const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow() const; + ::flyteidl::core::CompiledWorkflowClosure* release_compiled_workflow(); + ::flyteidl::core::CompiledWorkflowClosure* mutable_compiled_workflow(); + void set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow); + + // .google.protobuf.Timestamp created_at = 2; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 2; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::CompiledWorkflowClosure* compiled_workflow_; + ::google::protobuf::Timestamp* created_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowErrorExistsDifferentStructure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowErrorExistsDifferentStructure) */ { + public: + WorkflowErrorExistsDifferentStructure(); + virtual ~WorkflowErrorExistsDifferentStructure(); + + WorkflowErrorExistsDifferentStructure(const WorkflowErrorExistsDifferentStructure& from); + + inline WorkflowErrorExistsDifferentStructure& operator=(const WorkflowErrorExistsDifferentStructure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowErrorExistsDifferentStructure(WorkflowErrorExistsDifferentStructure&& from) noexcept + : WorkflowErrorExistsDifferentStructure() { + *this = ::std::move(from); + } + + inline WorkflowErrorExistsDifferentStructure& operator=(WorkflowErrorExistsDifferentStructure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowErrorExistsDifferentStructure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowErrorExistsDifferentStructure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowErrorExistsDifferentStructure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(WorkflowErrorExistsDifferentStructure* other); + friend void swap(WorkflowErrorExistsDifferentStructure& a, WorkflowErrorExistsDifferentStructure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowErrorExistsDifferentStructure* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowErrorExistsDifferentStructure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowErrorExistsDifferentStructure& from); + void MergeFrom(const WorkflowErrorExistsDifferentStructure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowErrorExistsDifferentStructure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowErrorExistsIdenticalStructure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) */ { + public: + WorkflowErrorExistsIdenticalStructure(); + virtual ~WorkflowErrorExistsIdenticalStructure(); + + WorkflowErrorExistsIdenticalStructure(const WorkflowErrorExistsIdenticalStructure& from); + + inline WorkflowErrorExistsIdenticalStructure& operator=(const WorkflowErrorExistsIdenticalStructure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowErrorExistsIdenticalStructure(WorkflowErrorExistsIdenticalStructure&& from) noexcept + : WorkflowErrorExistsIdenticalStructure() { + *this = ::std::move(from); + } + + inline WorkflowErrorExistsIdenticalStructure& operator=(WorkflowErrorExistsIdenticalStructure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowErrorExistsIdenticalStructure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowErrorExistsIdenticalStructure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowErrorExistsIdenticalStructure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(WorkflowErrorExistsIdenticalStructure* other); + friend void swap(WorkflowErrorExistsIdenticalStructure& a, WorkflowErrorExistsIdenticalStructure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowErrorExistsIdenticalStructure* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowErrorExistsIdenticalStructure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowErrorExistsIdenticalStructure& from); + void MergeFrom(const WorkflowErrorExistsIdenticalStructure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowErrorExistsIdenticalStructure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateWorkflowFailureReason final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateWorkflowFailureReason) */ { + public: + CreateWorkflowFailureReason(); + virtual ~CreateWorkflowFailureReason(); + + CreateWorkflowFailureReason(const CreateWorkflowFailureReason& from); + + inline CreateWorkflowFailureReason& operator=(const CreateWorkflowFailureReason& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateWorkflowFailureReason(CreateWorkflowFailureReason&& from) noexcept + : CreateWorkflowFailureReason() { + *this = ::std::move(from); + } + + inline CreateWorkflowFailureReason& operator=(CreateWorkflowFailureReason&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateWorkflowFailureReason& default_instance(); + + enum ReasonCase { + kExistsDifferentStructure = 1, + kExistsIdenticalStructure = 2, + REASON_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateWorkflowFailureReason* internal_default_instance() { + return reinterpret_cast( + &_CreateWorkflowFailureReason_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(CreateWorkflowFailureReason* other); + friend void swap(CreateWorkflowFailureReason& a, CreateWorkflowFailureReason& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateWorkflowFailureReason* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateWorkflowFailureReason* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateWorkflowFailureReason& from); + void MergeFrom(const CreateWorkflowFailureReason& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateWorkflowFailureReason* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + bool has_exists_different_structure() const; + void clear_exists_different_structure(); + static const int kExistsDifferentStructureFieldNumber = 1; + const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& exists_different_structure() const; + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* release_exists_different_structure(); + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* mutable_exists_different_structure(); + void set_allocated_exists_different_structure(::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure); + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + bool has_exists_identical_structure() const; + void clear_exists_identical_structure(); + static const int kExistsIdenticalStructureFieldNumber = 2; + const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& exists_identical_structure() const; + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* release_exists_identical_structure(); + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* mutable_exists_identical_structure(); + void set_allocated_exists_identical_structure(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure); + + void clear_reason(); + ReasonCase reason_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateWorkflowFailureReason) + private: + class HasBitSetters; + void set_has_exists_different_structure(); + void set_has_exists_identical_structure(); + + inline bool has_reason() const; + inline void clear_has_reason(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ReasonUnion { + ReasonUnion() {} + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure_; + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure_; + } reason_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowCreateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowCreateRequest::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& WorkflowCreateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowCreateRequest.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowCreateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowCreateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowCreateRequest::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowCreateRequest.id) + return id_; +} +inline void WorkflowCreateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowCreateRequest.id) +} + +// .flyteidl.admin.WorkflowSpec spec = 2; +inline bool WorkflowCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != nullptr; +} +inline void WorkflowCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { + delete spec_; + } + spec_ = nullptr; +} +inline const ::flyteidl::admin::WorkflowSpec& WorkflowCreateRequest::spec() const { + const ::flyteidl::admin::WorkflowSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowCreateRequest.spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_WorkflowSpec_default_instance_); +} +inline ::flyteidl::admin::WorkflowSpec* WorkflowCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowCreateRequest.spec) + + ::flyteidl::admin::WorkflowSpec* temp = spec_; + spec_ = nullptr; + return temp; +} +inline ::flyteidl::admin::WorkflowSpec* WorkflowCreateRequest::mutable_spec() { + + if (spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowSpec>(GetArenaNoVirtual()); + spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowCreateRequest.spec) + return spec_; +} +inline void WorkflowCreateRequest::set_allocated_spec(::flyteidl::admin::WorkflowSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowCreateRequest.spec) +} + +// ------------------------------------------------------------------- + +// WorkflowCreateResponse + +// ------------------------------------------------------------------- + +// Workflow + +// .flyteidl.core.Identifier id = 1; +inline bool Workflow::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& Workflow::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* Workflow::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* Workflow::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.id) + return id_; +} +inline void Workflow::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Workflow.id) +} + +// .flyteidl.admin.WorkflowClosure closure = 2; +inline bool Workflow::has_closure() const { + return this != internal_default_instance() && closure_ != nullptr; +} +inline void Workflow::clear_closure() { + if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { + delete closure_; + } + closure_ = nullptr; +} +inline const ::flyteidl::admin::WorkflowClosure& Workflow::closure() const { + const ::flyteidl::admin::WorkflowClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.closure) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_WorkflowClosure_default_instance_); +} +inline ::flyteidl::admin::WorkflowClosure* Workflow::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.closure) + + ::flyteidl::admin::WorkflowClosure* temp = closure_; + closure_ = nullptr; + return temp; +} +inline ::flyteidl::admin::WorkflowClosure* Workflow::mutable_closure() { + + if (closure_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowClosure>(GetArenaNoVirtual()); + closure_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.closure) + return closure_; +} +inline void Workflow::set_allocated_closure(::flyteidl::admin::WorkflowClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Workflow.closure) +} + +// string short_description = 3; +inline void Workflow::clear_short_description() { + short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Workflow::short_description() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.short_description) + return short_description_.GetNoArena(); +} +inline void Workflow::set_short_description(const ::std::string& value) { + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Workflow.short_description) +} +#if LANG_CXX11 +inline void Workflow::set_short_description(::std::string&& value) { + + short_description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Workflow.short_description) +} +#endif +inline void Workflow::set_short_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Workflow.short_description) +} +inline void Workflow::set_short_description(const char* value, size_t size) { + + short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Workflow.short_description) +} +inline ::std::string* Workflow::mutable_short_description() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.short_description) + return short_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Workflow::release_short_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.short_description) + + return short_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Workflow::set_allocated_short_description(::std::string* short_description) { + if (short_description != nullptr) { + + } else { + + } + short_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_description); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Workflow.short_description) +} + +// ------------------------------------------------------------------- + +// WorkflowList + +// repeated .flyteidl.admin.Workflow workflows = 1; +inline int WorkflowList::workflows_size() const { + return workflows_.size(); +} +inline void WorkflowList::clear_workflows() { + workflows_.Clear(); +} +inline ::flyteidl::admin::Workflow* WorkflowList::mutable_workflows(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowList.workflows) + return workflows_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >* +WorkflowList::mutable_workflows() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.WorkflowList.workflows) + return &workflows_; +} +inline const ::flyteidl::admin::Workflow& WorkflowList::workflows(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowList.workflows) + return workflows_.Get(index); +} +inline ::flyteidl::admin::Workflow* WorkflowList::add_workflows() { + // @@protoc_insertion_point(field_add:flyteidl.admin.WorkflowList.workflows) + return workflows_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >& +WorkflowList::workflows() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.WorkflowList.workflows) + return workflows_; +} + +// string token = 2; +inline void WorkflowList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowList.token) + return token_.GetNoArena(); +} +inline void WorkflowList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowList.token) +} +#if LANG_CXX11 +inline void WorkflowList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowList.token) +} +#endif +inline void WorkflowList::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowList.token) +} +inline void WorkflowList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowList.token) +} +inline ::std::string* WorkflowList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowList::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowList.token) +} + +// ------------------------------------------------------------------- + +// WorkflowSpec + +// .flyteidl.core.WorkflowTemplate template = 1; +inline bool WorkflowSpec::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::WorkflowTemplate& WorkflowSpec::template_() const { + const ::flyteidl::core::WorkflowTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowSpec.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowTemplate_default_instance_); +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowSpec.template) + + ::flyteidl::core::WorkflowTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowSpec.template) + return template__; +} +inline void WorkflowSpec::set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowSpec.template) +} + +// repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; +inline int WorkflowSpec::sub_workflows_size() const { + return sub_workflows_.size(); +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::mutable_sub_workflows(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowSpec.sub_workflows) + return sub_workflows_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* +WorkflowSpec::mutable_sub_workflows() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.WorkflowSpec.sub_workflows) + return &sub_workflows_; +} +inline const ::flyteidl::core::WorkflowTemplate& WorkflowSpec::sub_workflows(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowSpec.sub_workflows) + return sub_workflows_.Get(index); +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::add_sub_workflows() { + // @@protoc_insertion_point(field_add:flyteidl.admin.WorkflowSpec.sub_workflows) + return sub_workflows_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& +WorkflowSpec::sub_workflows() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.WorkflowSpec.sub_workflows) + return sub_workflows_; +} + +// .flyteidl.admin.DescriptionEntity description = 3; +inline bool WorkflowSpec::has_description() const { + return this != internal_default_instance() && description_ != nullptr; +} +inline const ::flyteidl::admin::DescriptionEntity& WorkflowSpec::description() const { + const ::flyteidl::admin::DescriptionEntity* p = description_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowSpec.description) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_DescriptionEntity_default_instance_); +} +inline ::flyteidl::admin::DescriptionEntity* WorkflowSpec::release_description() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowSpec.description) + + ::flyteidl::admin::DescriptionEntity* temp = description_; + description_ = nullptr; + return temp; +} +inline ::flyteidl::admin::DescriptionEntity* WorkflowSpec::mutable_description() { + + if (description_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::DescriptionEntity>(GetArenaNoVirtual()); + description_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowSpec.description) + return description_; +} +inline void WorkflowSpec::set_allocated_description(::flyteidl::admin::DescriptionEntity* description) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(description_); + } + if (description) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + description = ::google::protobuf::internal::GetOwnedMessage( + message_arena, description, submessage_arena); + } + + } else { + + } + description_ = description; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowSpec.description) +} + +// ------------------------------------------------------------------- + +// WorkflowClosure + +// .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; +inline bool WorkflowClosure::has_compiled_workflow() const { + return this != internal_default_instance() && compiled_workflow_ != nullptr; +} +inline const ::flyteidl::core::CompiledWorkflowClosure& WorkflowClosure::compiled_workflow() const { + const ::flyteidl::core::CompiledWorkflowClosure* p = compiled_workflow_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowClosure.compiled_workflow) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledWorkflowClosure_default_instance_); +} +inline ::flyteidl::core::CompiledWorkflowClosure* WorkflowClosure::release_compiled_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowClosure.compiled_workflow) + + ::flyteidl::core::CompiledWorkflowClosure* temp = compiled_workflow_; + compiled_workflow_ = nullptr; + return temp; +} +inline ::flyteidl::core::CompiledWorkflowClosure* WorkflowClosure::mutable_compiled_workflow() { + + if (compiled_workflow_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(GetArenaNoVirtual()); + compiled_workflow_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowClosure.compiled_workflow) + return compiled_workflow_; +} +inline void WorkflowClosure::set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_workflow_); + } + if (compiled_workflow) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + compiled_workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, compiled_workflow, submessage_arena); + } + + } else { + + } + compiled_workflow_ = compiled_workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowClosure.compiled_workflow) +} + +// .google.protobuf.Timestamp created_at = 2; +inline bool WorkflowClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& WorkflowClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowClosure.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* WorkflowClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* WorkflowClosure::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowClosure.created_at) + return created_at_; +} +inline void WorkflowClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowClosure.created_at) +} + +// ------------------------------------------------------------------- + +// WorkflowErrorExistsDifferentStructure + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowErrorExistsDifferentStructure::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& WorkflowErrorExistsDifferentStructure::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsDifferentStructure::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsDifferentStructure::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) + return id_; +} +inline void WorkflowErrorExistsDifferentStructure::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) +} + +// ------------------------------------------------------------------- + +// WorkflowErrorExistsIdenticalStructure + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowErrorExistsIdenticalStructure::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& WorkflowErrorExistsIdenticalStructure::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsIdenticalStructure::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsIdenticalStructure::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) + return id_; +} +inline void WorkflowErrorExistsIdenticalStructure::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) +} + +// ------------------------------------------------------------------- + +// CreateWorkflowFailureReason + +// .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; +inline bool CreateWorkflowFailureReason::has_exists_different_structure() const { + return reason_case() == kExistsDifferentStructure; +} +inline void CreateWorkflowFailureReason::set_has_exists_different_structure() { + _oneof_case_[0] = kExistsDifferentStructure; +} +inline void CreateWorkflowFailureReason::clear_exists_different_structure() { + if (has_exists_different_structure()) { + delete reason_.exists_different_structure_; + clear_has_reason(); + } +} +inline ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* CreateWorkflowFailureReason::release_exists_different_structure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) + if (has_exists_different_structure()) { + clear_has_reason(); + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* temp = reason_.exists_different_structure_; + reason_.exists_different_structure_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& CreateWorkflowFailureReason::exists_different_structure() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) + return has_exists_different_structure() + ? *reason_.exists_different_structure_ + : *reinterpret_cast< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure*>(&::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_); +} +inline ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* CreateWorkflowFailureReason::mutable_exists_different_structure() { + if (!has_exists_different_structure()) { + clear_reason(); + set_has_exists_different_structure(); + reason_.exists_different_structure_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) + return reason_.exists_different_structure_; +} + +// .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; +inline bool CreateWorkflowFailureReason::has_exists_identical_structure() const { + return reason_case() == kExistsIdenticalStructure; +} +inline void CreateWorkflowFailureReason::set_has_exists_identical_structure() { + _oneof_case_[0] = kExistsIdenticalStructure; +} +inline void CreateWorkflowFailureReason::clear_exists_identical_structure() { + if (has_exists_identical_structure()) { + delete reason_.exists_identical_structure_; + clear_has_reason(); + } +} +inline ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* CreateWorkflowFailureReason::release_exists_identical_structure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) + if (has_exists_identical_structure()) { + clear_has_reason(); + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* temp = reason_.exists_identical_structure_; + reason_.exists_identical_structure_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& CreateWorkflowFailureReason::exists_identical_structure() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) + return has_exists_identical_structure() + ? *reason_.exists_identical_structure_ + : *reinterpret_cast< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure*>(&::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_); +} +inline ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* CreateWorkflowFailureReason::mutable_exists_identical_structure() { + if (!has_exists_identical_structure()) { + clear_reason(); + set_has_exists_identical_structure(); + reason_.exists_identical_structure_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) + return reason_.exists_identical_structure_; +} + +inline bool CreateWorkflowFailureReason::has_reason() const { + return reason_case() != REASON_NOT_SET; +} +inline void CreateWorkflowFailureReason::clear_has_reason() { + _oneof_case_[0] = REASON_NOT_SET; +} +inline CreateWorkflowFailureReason::ReasonCase CreateWorkflowFailureReason::reason_case() const { + return CreateWorkflowFailureReason::ReasonCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.cc new file mode 100644 index 0000000000..c42027a322 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/workflow_attributes.proto + +#include "flyteidl/admin/workflow_attributes.pb.h" +#include "flyteidl/admin/workflow_attributes.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.h new file mode 100644 index 0000000000..4f2a22456a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/workflow_attributes.proto +#ifndef GRPC_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto__INCLUDED + +#include "flyteidl/admin/workflow_attributes.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.cc new file mode 100644 index 0000000000..40799c444a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.cc @@ -0,0 +1,2808 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow_attributes.proto + +#include "flyteidl/admin/workflow_attributes.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +namespace flyteidl { +namespace admin { +class WorkflowAttributesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowAttributes_default_instance_; +class WorkflowAttributesUpdateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowAttributesUpdateRequest_default_instance_; +class WorkflowAttributesUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowAttributesUpdateResponse_default_instance_; +class WorkflowAttributesGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowAttributesGetRequest_default_instance_; +class WorkflowAttributesGetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowAttributesGetResponse_default_instance_; +class WorkflowAttributesDeleteRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowAttributesDeleteRequest_default_instance_; +class WorkflowAttributesDeleteResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowAttributesDeleteResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +static void InitDefaultsWorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowAttributes_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowAttributes(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowAttributes::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, { + &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; + +static void InitDefaultsWorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowAttributesUpdateRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowAttributesUpdateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowAttributesUpdateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, { + &scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base,}}; + +static void InitDefaultsWorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowAttributesUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowAttributesUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowAttributesUpdateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; + +static void InitDefaultsWorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowAttributesGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowAttributesGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowAttributesGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; + +static void InitDefaultsWorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowAttributesGetResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowAttributesGetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowAttributesGetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, { + &scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base,}}; + +static void InitDefaultsWorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowAttributesDeleteRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowAttributesDeleteRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowAttributesDeleteRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; + +static void InitDefaultsWorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowAttributesDeleteResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowAttributesDeleteResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowAttributesDeleteResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; + +void InitDefaults_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[7]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, matching_attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesUpdateRequest, attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, resource_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetResponse, attributes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, resource_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::WorkflowAttributes)}, + { 9, -1, sizeof(::flyteidl::admin::WorkflowAttributesUpdateRequest)}, + { 15, -1, sizeof(::flyteidl::admin::WorkflowAttributesUpdateResponse)}, + { 20, -1, sizeof(::flyteidl::admin::WorkflowAttributesGetRequest)}, + { 29, -1, sizeof(::flyteidl::admin::WorkflowAttributesGetResponse)}, + { 35, -1, sizeof(::flyteidl::admin::WorkflowAttributesDeleteRequest)}, + { 44, -1, sizeof(::flyteidl::admin::WorkflowAttributesDeleteResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_WorkflowAttributes_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesUpdateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesUpdateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesGetResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesDeleteRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesDeleteResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = { + {}, AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, "flyteidl/admin/workflow_attributes.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto::offsets, + file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[] = + "\n(flyteidl/admin/workflow_attributes.pro" + "to\022\016flyteidl.admin\032\'flyteidl/admin/match" + "able_resource.proto\"\210\001\n\022WorkflowAttribut" + "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" + "orkflow\030\003 \001(\t\022\?\n\023matching_attributes\030\004 \001" + "(\0132\".flyteidl.admin.MatchingAttributes\"Y" + "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" + "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" + "ttributes\"\"\n WorkflowAttributesUpdateRes" + "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" + "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" + "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" + "idl.admin.MatchableResource\"W\n\035WorkflowA" + "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" + "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" + "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" + "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " + "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" + "min.MatchableResource\"\"\n WorkflowAttribu" + "tesDeleteResponseB7Z5github.com/flyteorg" + "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" + "o3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = { + false, InitDefaults_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, + descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, + "flyteidl/admin/workflow_attributes.proto", &assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, 842, +}; + +void AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto(); return true; }(); +namespace flyteidl { +namespace admin { + +// =================================================================== + +void WorkflowAttributes::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowAttributes_default_instance_._instance.get_mutable()->matching_attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( + ::flyteidl::admin::MatchingAttributes::internal_default_instance()); +} +class WorkflowAttributes::HasBitSetters { + public: + static const ::flyteidl::admin::MatchingAttributes& matching_attributes(const WorkflowAttributes* msg); +}; + +const ::flyteidl::admin::MatchingAttributes& +WorkflowAttributes::HasBitSetters::matching_attributes(const WorkflowAttributes* msg) { + return *msg->matching_attributes_; +} +void WorkflowAttributes::clear_matching_attributes() { + if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { + delete matching_attributes_; + } + matching_attributes_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowAttributes::kProjectFieldNumber; +const int WorkflowAttributes::kDomainFieldNumber; +const int WorkflowAttributes::kWorkflowFieldNumber; +const int WorkflowAttributes::kMatchingAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowAttributes::WorkflowAttributes() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributes) +} +WorkflowAttributes::WorkflowAttributes(const WorkflowAttributes& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.workflow().size() > 0) { + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + if (from.has_matching_attributes()) { + matching_attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.matching_attributes_); + } else { + matching_attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributes) +} + +void WorkflowAttributes::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + matching_attributes_ = nullptr; +} + +WorkflowAttributes::~WorkflowAttributes() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributes) + SharedDtor(); +} + +void WorkflowAttributes::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete matching_attributes_; +} + +void WorkflowAttributes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowAttributes& WorkflowAttributes::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowAttributes::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { + delete matching_attributes_; + } + matching_attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowAttributes::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributes.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributes.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string workflow = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributes.workflow"); + object = msg->mutable_workflow(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchingAttributes matching_attributes = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::MatchingAttributes::_InternalParse; + object = msg->mutable_matching_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowAttributes::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowAttributes) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributes.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributes.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string workflow = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_workflow())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributes.workflow")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_matching_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributes) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributes) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowAttributes::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributes.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributes.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributes.workflow"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->workflow(), output); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 4; + if (this->has_matching_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::matching_attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributes) +} + +::google::protobuf::uint8* WorkflowAttributes::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributes) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributes.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributes.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributes.workflow"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->workflow(), target); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 4; + if (this->has_matching_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::matching_attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowAttributes) + return target; +} + +size_t WorkflowAttributes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributes) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->workflow()); + } + + // .flyteidl.admin.MatchingAttributes matching_attributes = 4; + if (this->has_matching_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *matching_attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowAttributes::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributes) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowAttributes* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributes) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributes) + MergeFrom(*source); + } +} + +void WorkflowAttributes::MergeFrom(const WorkflowAttributes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributes) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.workflow().size() > 0) { + + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + if (from.has_matching_attributes()) { + mutable_matching_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.matching_attributes()); + } +} + +void WorkflowAttributes::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowAttributes::CopyFrom(const WorkflowAttributes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowAttributes::IsInitialized() const { + return true; +} + +void WorkflowAttributes::Swap(WorkflowAttributes* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowAttributes::InternalSwap(WorkflowAttributes* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(matching_attributes_, other->matching_attributes_); +} + +::google::protobuf::Metadata WorkflowAttributes::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowAttributesUpdateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowAttributesUpdateRequest_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::WorkflowAttributes*>( + ::flyteidl::admin::WorkflowAttributes::internal_default_instance()); +} +class WorkflowAttributesUpdateRequest::HasBitSetters { + public: + static const ::flyteidl::admin::WorkflowAttributes& attributes(const WorkflowAttributesUpdateRequest* msg); +}; + +const ::flyteidl::admin::WorkflowAttributes& +WorkflowAttributesUpdateRequest::HasBitSetters::attributes(const WorkflowAttributesUpdateRequest* msg) { + return *msg->attributes_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowAttributesUpdateRequest::kAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowAttributesUpdateRequest::WorkflowAttributesUpdateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesUpdateRequest) +} +WorkflowAttributesUpdateRequest::WorkflowAttributesUpdateRequest(const WorkflowAttributesUpdateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_attributes()) { + attributes_ = new ::flyteidl::admin::WorkflowAttributes(*from.attributes_); + } else { + attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesUpdateRequest) +} + +void WorkflowAttributesUpdateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + attributes_ = nullptr; +} + +WorkflowAttributesUpdateRequest::~WorkflowAttributesUpdateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesUpdateRequest) + SharedDtor(); +} + +void WorkflowAttributesUpdateRequest::SharedDtor() { + if (this != internal_default_instance()) delete attributes_; +} + +void WorkflowAttributesUpdateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowAttributesUpdateRequest& WorkflowAttributesUpdateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowAttributesUpdateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowAttributesUpdateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.WorkflowAttributes attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowAttributes::_InternalParse; + object = msg->mutable_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowAttributesUpdateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.WorkflowAttributes attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesUpdateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesUpdateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowAttributesUpdateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + if (this->has_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesUpdateRequest) +} + +::google::protobuf::uint8* WorkflowAttributesUpdateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + if (this->has_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowAttributesUpdateRequest) + return target; +} + +size_t WorkflowAttributesUpdateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + if (this->has_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowAttributesUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowAttributesUpdateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesUpdateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesUpdateRequest) + MergeFrom(*source); + } +} + +void WorkflowAttributesUpdateRequest::MergeFrom(const WorkflowAttributesUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_attributes()) { + mutable_attributes()->::flyteidl::admin::WorkflowAttributes::MergeFrom(from.attributes()); + } +} + +void WorkflowAttributesUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowAttributesUpdateRequest::CopyFrom(const WorkflowAttributesUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowAttributesUpdateRequest::IsInitialized() const { + return true; +} + +void WorkflowAttributesUpdateRequest::Swap(WorkflowAttributesUpdateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowAttributesUpdateRequest::InternalSwap(WorkflowAttributesUpdateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(attributes_, other->attributes_); +} + +::google::protobuf::Metadata WorkflowAttributesUpdateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowAttributesUpdateResponse::InitAsDefaultInstance() { +} +class WorkflowAttributesUpdateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowAttributesUpdateResponse::WorkflowAttributesUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesUpdateResponse) +} +WorkflowAttributesUpdateResponse::WorkflowAttributesUpdateResponse(const WorkflowAttributesUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesUpdateResponse) +} + +void WorkflowAttributesUpdateResponse::SharedCtor() { +} + +WorkflowAttributesUpdateResponse::~WorkflowAttributesUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesUpdateResponse) + SharedDtor(); +} + +void WorkflowAttributesUpdateResponse::SharedDtor() { +} + +void WorkflowAttributesUpdateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowAttributesUpdateResponse& WorkflowAttributesUpdateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowAttributesUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowAttributesUpdateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowAttributesUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesUpdateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowAttributesUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesUpdateResponse) +} + +::google::protobuf::uint8* WorkflowAttributesUpdateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowAttributesUpdateResponse) + return target; +} + +size_t WorkflowAttributesUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowAttributesUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowAttributesUpdateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesUpdateResponse) + MergeFrom(*source); + } +} + +void WorkflowAttributesUpdateResponse::MergeFrom(const WorkflowAttributesUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowAttributesUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowAttributesUpdateResponse::CopyFrom(const WorkflowAttributesUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowAttributesUpdateResponse::IsInitialized() const { + return true; +} + +void WorkflowAttributesUpdateResponse::Swap(WorkflowAttributesUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowAttributesUpdateResponse::InternalSwap(WorkflowAttributesUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WorkflowAttributesUpdateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowAttributesGetRequest::InitAsDefaultInstance() { +} +class WorkflowAttributesGetRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowAttributesGetRequest::kProjectFieldNumber; +const int WorkflowAttributesGetRequest::kDomainFieldNumber; +const int WorkflowAttributesGetRequest::kWorkflowFieldNumber; +const int WorkflowAttributesGetRequest::kResourceTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowAttributesGetRequest::WorkflowAttributesGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesGetRequest) +} +WorkflowAttributesGetRequest::WorkflowAttributesGetRequest(const WorkflowAttributesGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.workflow().size() > 0) { + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesGetRequest) +} + +void WorkflowAttributesGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; +} + +WorkflowAttributesGetRequest::~WorkflowAttributesGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesGetRequest) + SharedDtor(); +} + +void WorkflowAttributesGetRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WorkflowAttributesGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowAttributesGetRequest& WorkflowAttributesGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowAttributesGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowAttributesGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesGetRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesGetRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string workflow = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesGetRequest.workflow"); + object = msg->mutable_workflow(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchableResource resource_type = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowAttributesGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowAttributesGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributesGetRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributesGetRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string workflow = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_workflow())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributesGetRequest.workflow")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowAttributesGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesGetRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesGetRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesGetRequest.workflow"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->workflow(), output); + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->resource_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesGetRequest) +} + +::google::protobuf::uint8* WorkflowAttributesGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesGetRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesGetRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesGetRequest.workflow"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->workflow(), target); + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->resource_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowAttributesGetRequest) + return target; +} + +size_t WorkflowAttributesGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->workflow()); + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowAttributesGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowAttributesGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesGetRequest) + MergeFrom(*source); + } +} + +void WorkflowAttributesGetRequest::MergeFrom(const WorkflowAttributesGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.workflow().size() > 0) { + + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void WorkflowAttributesGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowAttributesGetRequest::CopyFrom(const WorkflowAttributesGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowAttributesGetRequest::IsInitialized() const { + return true; +} + +void WorkflowAttributesGetRequest::Swap(WorkflowAttributesGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowAttributesGetRequest::InternalSwap(WorkflowAttributesGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata WorkflowAttributesGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowAttributesGetResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowAttributesGetResponse_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::WorkflowAttributes*>( + ::flyteidl::admin::WorkflowAttributes::internal_default_instance()); +} +class WorkflowAttributesGetResponse::HasBitSetters { + public: + static const ::flyteidl::admin::WorkflowAttributes& attributes(const WorkflowAttributesGetResponse* msg); +}; + +const ::flyteidl::admin::WorkflowAttributes& +WorkflowAttributesGetResponse::HasBitSetters::attributes(const WorkflowAttributesGetResponse* msg) { + return *msg->attributes_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowAttributesGetResponse::kAttributesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowAttributesGetResponse::WorkflowAttributesGetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesGetResponse) +} +WorkflowAttributesGetResponse::WorkflowAttributesGetResponse(const WorkflowAttributesGetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_attributes()) { + attributes_ = new ::flyteidl::admin::WorkflowAttributes(*from.attributes_); + } else { + attributes_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesGetResponse) +} + +void WorkflowAttributesGetResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + attributes_ = nullptr; +} + +WorkflowAttributesGetResponse::~WorkflowAttributesGetResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesGetResponse) + SharedDtor(); +} + +void WorkflowAttributesGetResponse::SharedDtor() { + if (this != internal_default_instance()) delete attributes_; +} + +void WorkflowAttributesGetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowAttributesGetResponse& WorkflowAttributesGetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowAttributesGetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowAttributesGetResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.WorkflowAttributes attributes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowAttributes::_InternalParse; + object = msg->mutable_attributes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowAttributesGetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowAttributesGetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.WorkflowAttributes attributes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_attributes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesGetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesGetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowAttributesGetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + if (this->has_attributes()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::attributes(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesGetResponse) +} + +::google::protobuf::uint8* WorkflowAttributesGetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + if (this->has_attributes()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::attributes(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowAttributesGetResponse) + return target; +} + +size_t WorkflowAttributesGetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesGetResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + if (this->has_attributes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *attributes_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowAttributesGetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesGetResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowAttributesGetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesGetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesGetResponse) + MergeFrom(*source); + } +} + +void WorkflowAttributesGetResponse::MergeFrom(const WorkflowAttributesGetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesGetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_attributes()) { + mutable_attributes()->::flyteidl::admin::WorkflowAttributes::MergeFrom(from.attributes()); + } +} + +void WorkflowAttributesGetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowAttributesGetResponse::CopyFrom(const WorkflowAttributesGetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowAttributesGetResponse::IsInitialized() const { + return true; +} + +void WorkflowAttributesGetResponse::Swap(WorkflowAttributesGetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowAttributesGetResponse::InternalSwap(WorkflowAttributesGetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(attributes_, other->attributes_); +} + +::google::protobuf::Metadata WorkflowAttributesGetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowAttributesDeleteRequest::InitAsDefaultInstance() { +} +class WorkflowAttributesDeleteRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowAttributesDeleteRequest::kProjectFieldNumber; +const int WorkflowAttributesDeleteRequest::kDomainFieldNumber; +const int WorkflowAttributesDeleteRequest::kWorkflowFieldNumber; +const int WorkflowAttributesDeleteRequest::kResourceTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowAttributesDeleteRequest::WorkflowAttributesDeleteRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesDeleteRequest) +} +WorkflowAttributesDeleteRequest::WorkflowAttributesDeleteRequest(const WorkflowAttributesDeleteRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.workflow().size() > 0) { + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesDeleteRequest) +} + +void WorkflowAttributesDeleteRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; +} + +WorkflowAttributesDeleteRequest::~WorkflowAttributesDeleteRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesDeleteRequest) + SharedDtor(); +} + +void WorkflowAttributesDeleteRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WorkflowAttributesDeleteRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowAttributesDeleteRequest& WorkflowAttributesDeleteRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowAttributesDeleteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowAttributesDeleteRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesDeleteRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesDeleteRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string workflow = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesDeleteRequest.workflow"); + object = msg->mutable_workflow(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.admin.MatchableResource resource_type = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowAttributesDeleteRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string workflow = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_workflow())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.workflow")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesDeleteRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesDeleteRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowAttributesDeleteRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.workflow"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->workflow(), output); + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->resource_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesDeleteRequest) +} + +::google::protobuf::uint8* WorkflowAttributesDeleteRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow().data(), static_cast(this->workflow().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowAttributesDeleteRequest.workflow"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->workflow(), target); + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->resource_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowAttributesDeleteRequest) + return target; +} + +size_t WorkflowAttributesDeleteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string workflow = 3; + if (this->workflow().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->workflow()); + } + + // .flyteidl.admin.MatchableResource resource_type = 4; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowAttributesDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowAttributesDeleteRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesDeleteRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesDeleteRequest) + MergeFrom(*source); + } +} + +void WorkflowAttributesDeleteRequest::MergeFrom(const WorkflowAttributesDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.workflow().size() > 0) { + + workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void WorkflowAttributesDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowAttributesDeleteRequest::CopyFrom(const WorkflowAttributesDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowAttributesDeleteRequest::IsInitialized() const { + return true; +} + +void WorkflowAttributesDeleteRequest::Swap(WorkflowAttributesDeleteRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowAttributesDeleteRequest::InternalSwap(WorkflowAttributesDeleteRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata WorkflowAttributesDeleteRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowAttributesDeleteResponse::InitAsDefaultInstance() { +} +class WorkflowAttributesDeleteResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowAttributesDeleteResponse::WorkflowAttributesDeleteResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesDeleteResponse) +} +WorkflowAttributesDeleteResponse::WorkflowAttributesDeleteResponse(const WorkflowAttributesDeleteResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesDeleteResponse) +} + +void WorkflowAttributesDeleteResponse::SharedCtor() { +} + +WorkflowAttributesDeleteResponse::~WorkflowAttributesDeleteResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesDeleteResponse) + SharedDtor(); +} + +void WorkflowAttributesDeleteResponse::SharedDtor() { +} + +void WorkflowAttributesDeleteResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowAttributesDeleteResponse& WorkflowAttributesDeleteResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowAttributesDeleteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowAttributesDeleteResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowAttributesDeleteResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesDeleteResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesDeleteResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowAttributesDeleteResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesDeleteResponse) +} + +::google::protobuf::uint8* WorkflowAttributesDeleteResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowAttributesDeleteResponse) + return target; +} + +size_t WorkflowAttributesDeleteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowAttributesDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowAttributesDeleteResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesDeleteResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesDeleteResponse) + MergeFrom(*source); + } +} + +void WorkflowAttributesDeleteResponse::MergeFrom(const WorkflowAttributesDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowAttributesDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowAttributesDeleteResponse::CopyFrom(const WorkflowAttributesDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowAttributesDeleteResponse::IsInitialized() const { + return true; +} + +void WorkflowAttributesDeleteResponse::Swap(WorkflowAttributesDeleteResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowAttributesDeleteResponse::InternalSwap(WorkflowAttributesDeleteResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WorkflowAttributesDeleteResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributes >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributes >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesUpdateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesUpdateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesUpdateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesUpdateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesGetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesGetResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesGetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesDeleteRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesDeleteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesDeleteResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesDeleteResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.h new file mode 100644 index 0000000000..f6e12acc87 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.h @@ -0,0 +1,1716 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow_attributes.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/matchable_resource.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto(); +namespace flyteidl { +namespace admin { +class WorkflowAttributes; +class WorkflowAttributesDefaultTypeInternal; +extern WorkflowAttributesDefaultTypeInternal _WorkflowAttributes_default_instance_; +class WorkflowAttributesDeleteRequest; +class WorkflowAttributesDeleteRequestDefaultTypeInternal; +extern WorkflowAttributesDeleteRequestDefaultTypeInternal _WorkflowAttributesDeleteRequest_default_instance_; +class WorkflowAttributesDeleteResponse; +class WorkflowAttributesDeleteResponseDefaultTypeInternal; +extern WorkflowAttributesDeleteResponseDefaultTypeInternal _WorkflowAttributesDeleteResponse_default_instance_; +class WorkflowAttributesGetRequest; +class WorkflowAttributesGetRequestDefaultTypeInternal; +extern WorkflowAttributesGetRequestDefaultTypeInternal _WorkflowAttributesGetRequest_default_instance_; +class WorkflowAttributesGetResponse; +class WorkflowAttributesGetResponseDefaultTypeInternal; +extern WorkflowAttributesGetResponseDefaultTypeInternal _WorkflowAttributesGetResponse_default_instance_; +class WorkflowAttributesUpdateRequest; +class WorkflowAttributesUpdateRequestDefaultTypeInternal; +extern WorkflowAttributesUpdateRequestDefaultTypeInternal _WorkflowAttributesUpdateRequest_default_instance_; +class WorkflowAttributesUpdateResponse; +class WorkflowAttributesUpdateResponseDefaultTypeInternal; +extern WorkflowAttributesUpdateResponseDefaultTypeInternal _WorkflowAttributesUpdateResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::admin::WorkflowAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributes>(Arena*); +template<> ::flyteidl::admin::WorkflowAttributesDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesDeleteRequest>(Arena*); +template<> ::flyteidl::admin::WorkflowAttributesDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesDeleteResponse>(Arena*); +template<> ::flyteidl::admin::WorkflowAttributesGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesGetRequest>(Arena*); +template<> ::flyteidl::admin::WorkflowAttributesGetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesGetResponse>(Arena*); +template<> ::flyteidl::admin::WorkflowAttributesUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesUpdateRequest>(Arena*); +template<> ::flyteidl::admin::WorkflowAttributesUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesUpdateResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace admin { + +// =================================================================== + +class WorkflowAttributes final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributes) */ { + public: + WorkflowAttributes(); + virtual ~WorkflowAttributes(); + + WorkflowAttributes(const WorkflowAttributes& from); + + inline WorkflowAttributes& operator=(const WorkflowAttributes& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowAttributes(WorkflowAttributes&& from) noexcept + : WorkflowAttributes() { + *this = ::std::move(from); + } + + inline WorkflowAttributes& operator=(WorkflowAttributes&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowAttributes& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowAttributes* internal_default_instance() { + return reinterpret_cast( + &_WorkflowAttributes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(WorkflowAttributes* other); + friend void swap(WorkflowAttributes& a, WorkflowAttributes& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowAttributes* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowAttributes* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowAttributes& from); + void MergeFrom(const WorkflowAttributes& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowAttributes* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string workflow = 3; + void clear_workflow(); + static const int kWorkflowFieldNumber = 3; + const ::std::string& workflow() const; + void set_workflow(const ::std::string& value); + #if LANG_CXX11 + void set_workflow(::std::string&& value); + #endif + void set_workflow(const char* value); + void set_workflow(const char* value, size_t size); + ::std::string* mutable_workflow(); + ::std::string* release_workflow(); + void set_allocated_workflow(::std::string* workflow); + + // .flyteidl.admin.MatchingAttributes matching_attributes = 4; + bool has_matching_attributes() const; + void clear_matching_attributes(); + static const int kMatchingAttributesFieldNumber = 4; + const ::flyteidl::admin::MatchingAttributes& matching_attributes() const; + ::flyteidl::admin::MatchingAttributes* release_matching_attributes(); + ::flyteidl::admin::MatchingAttributes* mutable_matching_attributes(); + void set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr workflow_; + ::flyteidl::admin::MatchingAttributes* matching_attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowAttributesUpdateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesUpdateRequest) */ { + public: + WorkflowAttributesUpdateRequest(); + virtual ~WorkflowAttributesUpdateRequest(); + + WorkflowAttributesUpdateRequest(const WorkflowAttributesUpdateRequest& from); + + inline WorkflowAttributesUpdateRequest& operator=(const WorkflowAttributesUpdateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowAttributesUpdateRequest(WorkflowAttributesUpdateRequest&& from) noexcept + : WorkflowAttributesUpdateRequest() { + *this = ::std::move(from); + } + + inline WorkflowAttributesUpdateRequest& operator=(WorkflowAttributesUpdateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowAttributesUpdateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowAttributesUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowAttributesUpdateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(WorkflowAttributesUpdateRequest* other); + friend void swap(WorkflowAttributesUpdateRequest& a, WorkflowAttributesUpdateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowAttributesUpdateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowAttributesUpdateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowAttributesUpdateRequest& from); + void MergeFrom(const WorkflowAttributesUpdateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowAttributesUpdateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + bool has_attributes() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::flyteidl::admin::WorkflowAttributes& attributes() const; + ::flyteidl::admin::WorkflowAttributes* release_attributes(); + ::flyteidl::admin::WorkflowAttributes* mutable_attributes(); + void set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::WorkflowAttributes* attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowAttributesUpdateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesUpdateResponse) */ { + public: + WorkflowAttributesUpdateResponse(); + virtual ~WorkflowAttributesUpdateResponse(); + + WorkflowAttributesUpdateResponse(const WorkflowAttributesUpdateResponse& from); + + inline WorkflowAttributesUpdateResponse& operator=(const WorkflowAttributesUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowAttributesUpdateResponse(WorkflowAttributesUpdateResponse&& from) noexcept + : WorkflowAttributesUpdateResponse() { + *this = ::std::move(from); + } + + inline WorkflowAttributesUpdateResponse& operator=(WorkflowAttributesUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowAttributesUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowAttributesUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowAttributesUpdateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(WorkflowAttributesUpdateResponse* other); + friend void swap(WorkflowAttributesUpdateResponse& a, WorkflowAttributesUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowAttributesUpdateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowAttributesUpdateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowAttributesUpdateResponse& from); + void MergeFrom(const WorkflowAttributesUpdateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowAttributesUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowAttributesGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesGetRequest) */ { + public: + WorkflowAttributesGetRequest(); + virtual ~WorkflowAttributesGetRequest(); + + WorkflowAttributesGetRequest(const WorkflowAttributesGetRequest& from); + + inline WorkflowAttributesGetRequest& operator=(const WorkflowAttributesGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowAttributesGetRequest(WorkflowAttributesGetRequest&& from) noexcept + : WorkflowAttributesGetRequest() { + *this = ::std::move(from); + } + + inline WorkflowAttributesGetRequest& operator=(WorkflowAttributesGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowAttributesGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowAttributesGetRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowAttributesGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(WorkflowAttributesGetRequest* other); + friend void swap(WorkflowAttributesGetRequest& a, WorkflowAttributesGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowAttributesGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowAttributesGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowAttributesGetRequest& from); + void MergeFrom(const WorkflowAttributesGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowAttributesGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string workflow = 3; + void clear_workflow(); + static const int kWorkflowFieldNumber = 3; + const ::std::string& workflow() const; + void set_workflow(const ::std::string& value); + #if LANG_CXX11 + void set_workflow(::std::string&& value); + #endif + void set_workflow(const char* value); + void set_workflow(const char* value, size_t size); + ::std::string* mutable_workflow(); + ::std::string* release_workflow(); + void set_allocated_workflow(::std::string* workflow); + + // .flyteidl.admin.MatchableResource resource_type = 4; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 4; + ::flyteidl::admin::MatchableResource resource_type() const; + void set_resource_type(::flyteidl::admin::MatchableResource value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr workflow_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowAttributesGetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesGetResponse) */ { + public: + WorkflowAttributesGetResponse(); + virtual ~WorkflowAttributesGetResponse(); + + WorkflowAttributesGetResponse(const WorkflowAttributesGetResponse& from); + + inline WorkflowAttributesGetResponse& operator=(const WorkflowAttributesGetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowAttributesGetResponse(WorkflowAttributesGetResponse&& from) noexcept + : WorkflowAttributesGetResponse() { + *this = ::std::move(from); + } + + inline WorkflowAttributesGetResponse& operator=(WorkflowAttributesGetResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowAttributesGetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowAttributesGetResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowAttributesGetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(WorkflowAttributesGetResponse* other); + friend void swap(WorkflowAttributesGetResponse& a, WorkflowAttributesGetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowAttributesGetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowAttributesGetResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowAttributesGetResponse& from); + void MergeFrom(const WorkflowAttributesGetResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowAttributesGetResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.WorkflowAttributes attributes = 1; + bool has_attributes() const; + void clear_attributes(); + static const int kAttributesFieldNumber = 1; + const ::flyteidl::admin::WorkflowAttributes& attributes() const; + ::flyteidl::admin::WorkflowAttributes* release_attributes(); + ::flyteidl::admin::WorkflowAttributes* mutable_attributes(); + void set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::WorkflowAttributes* attributes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowAttributesDeleteRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesDeleteRequest) */ { + public: + WorkflowAttributesDeleteRequest(); + virtual ~WorkflowAttributesDeleteRequest(); + + WorkflowAttributesDeleteRequest(const WorkflowAttributesDeleteRequest& from); + + inline WorkflowAttributesDeleteRequest& operator=(const WorkflowAttributesDeleteRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowAttributesDeleteRequest(WorkflowAttributesDeleteRequest&& from) noexcept + : WorkflowAttributesDeleteRequest() { + *this = ::std::move(from); + } + + inline WorkflowAttributesDeleteRequest& operator=(WorkflowAttributesDeleteRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowAttributesDeleteRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowAttributesDeleteRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowAttributesDeleteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(WorkflowAttributesDeleteRequest* other); + friend void swap(WorkflowAttributesDeleteRequest& a, WorkflowAttributesDeleteRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowAttributesDeleteRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowAttributesDeleteRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowAttributesDeleteRequest& from); + void MergeFrom(const WorkflowAttributesDeleteRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowAttributesDeleteRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string workflow = 3; + void clear_workflow(); + static const int kWorkflowFieldNumber = 3; + const ::std::string& workflow() const; + void set_workflow(const ::std::string& value); + #if LANG_CXX11 + void set_workflow(::std::string&& value); + #endif + void set_workflow(const char* value); + void set_workflow(const char* value, size_t size); + ::std::string* mutable_workflow(); + ::std::string* release_workflow(); + void set_allocated_workflow(::std::string* workflow); + + // .flyteidl.admin.MatchableResource resource_type = 4; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 4; + ::flyteidl::admin::MatchableResource resource_type() const; + void set_resource_type(::flyteidl::admin::MatchableResource value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr workflow_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowAttributesDeleteResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesDeleteResponse) */ { + public: + WorkflowAttributesDeleteResponse(); + virtual ~WorkflowAttributesDeleteResponse(); + + WorkflowAttributesDeleteResponse(const WorkflowAttributesDeleteResponse& from); + + inline WorkflowAttributesDeleteResponse& operator=(const WorkflowAttributesDeleteResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowAttributesDeleteResponse(WorkflowAttributesDeleteResponse&& from) noexcept + : WorkflowAttributesDeleteResponse() { + *this = ::std::move(from); + } + + inline WorkflowAttributesDeleteResponse& operator=(WorkflowAttributesDeleteResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowAttributesDeleteResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowAttributesDeleteResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowAttributesDeleteResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(WorkflowAttributesDeleteResponse* other); + friend void swap(WorkflowAttributesDeleteResponse& a, WorkflowAttributesDeleteResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowAttributesDeleteResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowAttributesDeleteResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowAttributesDeleteResponse& from); + void MergeFrom(const WorkflowAttributesDeleteResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowAttributesDeleteResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowAttributes + +// string project = 1; +inline void WorkflowAttributes::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributes::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.project) + return project_.GetNoArena(); +} +inline void WorkflowAttributes::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributes.project) +} +#if LANG_CXX11 +inline void WorkflowAttributes::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributes.project) +} +#endif +inline void WorkflowAttributes::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributes.project) +} +inline void WorkflowAttributes::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributes.project) +} +inline ::std::string* WorkflowAttributes::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributes::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributes::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.project) +} + +// string domain = 2; +inline void WorkflowAttributes::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributes::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.domain) + return domain_.GetNoArena(); +} +inline void WorkflowAttributes::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributes.domain) +} +#if LANG_CXX11 +inline void WorkflowAttributes::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributes.domain) +} +#endif +inline void WorkflowAttributes::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributes.domain) +} +inline void WorkflowAttributes::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributes.domain) +} +inline ::std::string* WorkflowAttributes::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributes::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributes::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.domain) +} + +// string workflow = 3; +inline void WorkflowAttributes::clear_workflow() { + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributes::workflow() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.workflow) + return workflow_.GetNoArena(); +} +inline void WorkflowAttributes::set_workflow(const ::std::string& value) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributes.workflow) +} +#if LANG_CXX11 +inline void WorkflowAttributes::set_workflow(::std::string&& value) { + + workflow_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributes.workflow) +} +#endif +inline void WorkflowAttributes::set_workflow(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributes.workflow) +} +inline void WorkflowAttributes::set_workflow(const char* value, size_t size) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributes.workflow) +} +inline ::std::string* WorkflowAttributes::mutable_workflow() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.workflow) + return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributes::release_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.workflow) + + return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributes::set_allocated_workflow(::std::string* workflow) { + if (workflow != nullptr) { + + } else { + + } + workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.workflow) +} + +// .flyteidl.admin.MatchingAttributes matching_attributes = 4; +inline bool WorkflowAttributes::has_matching_attributes() const { + return this != internal_default_instance() && matching_attributes_ != nullptr; +} +inline const ::flyteidl::admin::MatchingAttributes& WorkflowAttributes::matching_attributes() const { + const ::flyteidl::admin::MatchingAttributes* p = matching_attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.matching_attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_MatchingAttributes_default_instance_); +} +inline ::flyteidl::admin::MatchingAttributes* WorkflowAttributes::release_matching_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.matching_attributes) + + ::flyteidl::admin::MatchingAttributes* temp = matching_attributes_; + matching_attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::MatchingAttributes* WorkflowAttributes::mutable_matching_attributes() { + + if (matching_attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); + matching_attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.matching_attributes) + return matching_attributes_; +} +inline void WorkflowAttributes::set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(matching_attributes_); + } + if (matching_attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + matching_attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, matching_attributes, submessage_arena); + } + + } else { + + } + matching_attributes_ = matching_attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.matching_attributes) +} + +// ------------------------------------------------------------------- + +// WorkflowAttributesUpdateRequest + +// .flyteidl.admin.WorkflowAttributes attributes = 1; +inline bool WorkflowAttributesUpdateRequest::has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} +inline void WorkflowAttributesUpdateRequest::clear_attributes() { + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; +} +inline const ::flyteidl::admin::WorkflowAttributes& WorkflowAttributesUpdateRequest::attributes() const { + const ::flyteidl::admin::WorkflowAttributes* p = attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_WorkflowAttributes_default_instance_); +} +inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesUpdateRequest::release_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) + + ::flyteidl::admin::WorkflowAttributes* temp = attributes_; + attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesUpdateRequest::mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowAttributes>(GetArenaNoVirtual()); + attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) + return attributes_; +} +inline void WorkflowAttributesUpdateRequest::set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete attributes_; + } + if (attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) +} + +// ------------------------------------------------------------------- + +// WorkflowAttributesUpdateResponse + +// ------------------------------------------------------------------- + +// WorkflowAttributesGetRequest + +// string project = 1; +inline void WorkflowAttributesGetRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributesGetRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.project) + return project_.GetNoArena(); +} +inline void WorkflowAttributesGetRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.project) +} +#if LANG_CXX11 +inline void WorkflowAttributesGetRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesGetRequest.project) +} +#endif +inline void WorkflowAttributesGetRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesGetRequest.project) +} +inline void WorkflowAttributesGetRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesGetRequest.project) +} +inline ::std::string* WorkflowAttributesGetRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributesGetRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributesGetRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetRequest.project) +} + +// string domain = 2; +inline void WorkflowAttributesGetRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributesGetRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.domain) + return domain_.GetNoArena(); +} +inline void WorkflowAttributesGetRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.domain) +} +#if LANG_CXX11 +inline void WorkflowAttributesGetRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesGetRequest.domain) +} +#endif +inline void WorkflowAttributesGetRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesGetRequest.domain) +} +inline void WorkflowAttributesGetRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesGetRequest.domain) +} +inline ::std::string* WorkflowAttributesGetRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributesGetRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributesGetRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetRequest.domain) +} + +// string workflow = 3; +inline void WorkflowAttributesGetRequest::clear_workflow() { + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributesGetRequest::workflow() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.workflow) + return workflow_.GetNoArena(); +} +inline void WorkflowAttributesGetRequest::set_workflow(const ::std::string& value) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.workflow) +} +#if LANG_CXX11 +inline void WorkflowAttributesGetRequest::set_workflow(::std::string&& value) { + + workflow_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesGetRequest.workflow) +} +#endif +inline void WorkflowAttributesGetRequest::set_workflow(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesGetRequest.workflow) +} +inline void WorkflowAttributesGetRequest::set_workflow(const char* value, size_t size) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesGetRequest.workflow) +} +inline ::std::string* WorkflowAttributesGetRequest::mutable_workflow() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetRequest.workflow) + return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributesGetRequest::release_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetRequest.workflow) + + return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributesGetRequest::set_allocated_workflow(::std::string* workflow) { + if (workflow != nullptr) { + + } else { + + } + workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetRequest.workflow) +} + +// .flyteidl.admin.MatchableResource resource_type = 4; +inline void WorkflowAttributesGetRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::admin::MatchableResource WorkflowAttributesGetRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.resource_type) + return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); +} +inline void WorkflowAttributesGetRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.resource_type) +} + +// ------------------------------------------------------------------- + +// WorkflowAttributesGetResponse + +// .flyteidl.admin.WorkflowAttributes attributes = 1; +inline bool WorkflowAttributesGetResponse::has_attributes() const { + return this != internal_default_instance() && attributes_ != nullptr; +} +inline void WorkflowAttributesGetResponse::clear_attributes() { + if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { + delete attributes_; + } + attributes_ = nullptr; +} +inline const ::flyteidl::admin::WorkflowAttributes& WorkflowAttributesGetResponse::attributes() const { + const ::flyteidl::admin::WorkflowAttributes* p = attributes_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetResponse.attributes) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::admin::_WorkflowAttributes_default_instance_); +} +inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesGetResponse::release_attributes() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetResponse.attributes) + + ::flyteidl::admin::WorkflowAttributes* temp = attributes_; + attributes_ = nullptr; + return temp; +} +inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesGetResponse::mutable_attributes() { + + if (attributes_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowAttributes>(GetArenaNoVirtual()); + attributes_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetResponse.attributes) + return attributes_; +} +inline void WorkflowAttributesGetResponse::set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete attributes_; + } + if (attributes) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + attributes = ::google::protobuf::internal::GetOwnedMessage( + message_arena, attributes, submessage_arena); + } + + } else { + + } + attributes_ = attributes; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetResponse.attributes) +} + +// ------------------------------------------------------------------- + +// WorkflowAttributesDeleteRequest + +// string project = 1; +inline void WorkflowAttributesDeleteRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributesDeleteRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.project) + return project_.GetNoArena(); +} +inline void WorkflowAttributesDeleteRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.project) +} +#if LANG_CXX11 +inline void WorkflowAttributesDeleteRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesDeleteRequest.project) +} +#endif +inline void WorkflowAttributesDeleteRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesDeleteRequest.project) +} +inline void WorkflowAttributesDeleteRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesDeleteRequest.project) +} +inline ::std::string* WorkflowAttributesDeleteRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesDeleteRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributesDeleteRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesDeleteRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributesDeleteRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesDeleteRequest.project) +} + +// string domain = 2; +inline void WorkflowAttributesDeleteRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributesDeleteRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) + return domain_.GetNoArena(); +} +inline void WorkflowAttributesDeleteRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) +} +#if LANG_CXX11 +inline void WorkflowAttributesDeleteRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) +} +#endif +inline void WorkflowAttributesDeleteRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) +} +inline void WorkflowAttributesDeleteRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) +} +inline ::std::string* WorkflowAttributesDeleteRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributesDeleteRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributesDeleteRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) +} + +// string workflow = 3; +inline void WorkflowAttributesDeleteRequest::clear_workflow() { + workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowAttributesDeleteRequest::workflow() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) + return workflow_.GetNoArena(); +} +inline void WorkflowAttributesDeleteRequest::set_workflow(const ::std::string& value) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) +} +#if LANG_CXX11 +inline void WorkflowAttributesDeleteRequest::set_workflow(::std::string&& value) { + + workflow_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) +} +#endif +inline void WorkflowAttributesDeleteRequest::set_workflow(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) +} +inline void WorkflowAttributesDeleteRequest::set_workflow(const char* value, size_t size) { + + workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) +} +inline ::std::string* WorkflowAttributesDeleteRequest::mutable_workflow() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) + return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowAttributesDeleteRequest::release_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) + + return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowAttributesDeleteRequest::set_allocated_workflow(::std::string* workflow) { + if (workflow != nullptr) { + + } else { + + } + workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) +} + +// .flyteidl.admin.MatchableResource resource_type = 4; +inline void WorkflowAttributesDeleteRequest::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::admin::MatchableResource WorkflowAttributesDeleteRequest::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.resource_type) + return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); +} +inline void WorkflowAttributesDeleteRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.resource_type) +} + +// ------------------------------------------------------------------- + +// WorkflowAttributesDeleteResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.cc new file mode 100644 index 0000000000..3503ab8884 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/catalog.proto + +#include "flyteidl/core/catalog.pb.h" +#include "flyteidl/core/catalog.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.h new file mode 100644 index 0000000000..b6c1b8f436 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/catalog.proto +#ifndef GRPC_flyteidl_2fcore_2fcatalog_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fcatalog_2eproto__INCLUDED + +#include "flyteidl/core/catalog.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fcatalog_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.cc new file mode 100644 index 0000000000..4cd7dab861 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.cc @@ -0,0 +1,1297 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/catalog.proto + +#include "flyteidl/core/catalog.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +namespace flyteidl { +namespace core { +class CatalogArtifactTagDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CatalogArtifactTag_default_instance_; +class CatalogMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::TaskExecutionIdentifier* source_task_execution_; +} _CatalogMetadata_default_instance_; +class CatalogReservationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CatalogReservation_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsCatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_CatalogArtifactTag_default_instance_; + new (ptr) ::flyteidl::core::CatalogArtifactTag(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CatalogArtifactTag::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto}, {}}; + +static void InitDefaultsCatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_CatalogMetadata_default_instance_; + new (ptr) ::flyteidl::core::CatalogMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CatalogMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsCatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base, + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsCatalogReservation_flyteidl_2fcore_2fcatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_CatalogReservation_default_instance_; + new (ptr) ::flyteidl::core::CatalogReservation(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CatalogReservation::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CatalogReservation_flyteidl_2fcore_2fcatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCatalogReservation_flyteidl_2fcore_2fcatalog_2eproto}, {}}; + +void InitDefaults_flyteidl_2fcore_2fcatalog_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CatalogReservation_flyteidl_2fcore_2fcatalog_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[3]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fcatalog_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fcatalog_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fcatalog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogArtifactTag, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogArtifactTag, artifact_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogArtifactTag, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, dataset_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, artifact_tag_), + offsetof(::flyteidl::core::CatalogMetadataDefaultTypeInternal, source_task_execution_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, source_execution_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogReservation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::CatalogArtifactTag)}, + { 7, -1, sizeof(::flyteidl::core::CatalogMetadata)}, + { 16, -1, sizeof(::flyteidl::core::CatalogReservation)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_CatalogArtifactTag_default_instance_), + reinterpret_cast(&::flyteidl::core::_CatalogMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_CatalogReservation_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto, "flyteidl/core/catalog.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fcatalog_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto, 3, file_level_enum_descriptors_flyteidl_2fcore_2fcatalog_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fcatalog_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fcatalog_2eproto[] = + "\n\033flyteidl/core/catalog.proto\022\rflyteidl." + "core\032\036flyteidl/core/identifier.proto\"7\n\022" + "CatalogArtifactTag\022\023\n\013artifact_id\030\001 \001(\t\022" + "\014\n\004name\030\002 \001(\t\"\326\001\n\017CatalogMetadata\022-\n\ndat" + "aset_id\030\001 \001(\0132\031.flyteidl.core.Identifier" + "\0227\n\014artifact_tag\030\002 \001(\0132!.flyteidl.core.C" + "atalogArtifactTag\022G\n\025source_task_executi" + "on\030\003 \001(\0132&.flyteidl.core.TaskExecutionId" + "entifierH\000B\022\n\020source_execution\"\236\001\n\022Catal" + "ogReservation\"\207\001\n\006Status\022\030\n\024RESERVATION_" + "DISABLED\020\000\022\030\n\024RESERVATION_ACQUIRED\020\001\022\026\n\022" + "RESERVATION_EXISTS\020\002\022\030\n\024RESERVATION_RELE" + "ASED\020\003\022\027\n\023RESERVATION_FAILURE\020\004*\240\001\n\022Cata" + "logCacheStatus\022\022\n\016CACHE_DISABLED\020\000\022\016\n\nCA" + "CHE_MISS\020\001\022\r\n\tCACHE_HIT\020\002\022\023\n\017CACHE_POPUL" + "ATED\020\003\022\030\n\024CACHE_LOOKUP_FAILURE\020\004\022\025\n\021CACH" + "E_PUT_FAILURE\020\005\022\021\n\rCACHE_SKIPPED\020\006B6Z4gi" + "thub.com/flyteorg/flyteidl/gen/pb-go/fly" + "teidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fcatalog_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fcatalog_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fcatalog_2eproto, + "flyteidl/core/catalog.proto", &assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto, 738, +}; + +void AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fcatalog_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fcatalog_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* CatalogReservation_Status_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fcatalog_2eproto[0]; +} +bool CatalogReservation_Status_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const CatalogReservation_Status CatalogReservation::RESERVATION_DISABLED; +const CatalogReservation_Status CatalogReservation::RESERVATION_ACQUIRED; +const CatalogReservation_Status CatalogReservation::RESERVATION_EXISTS; +const CatalogReservation_Status CatalogReservation::RESERVATION_RELEASED; +const CatalogReservation_Status CatalogReservation::RESERVATION_FAILURE; +const CatalogReservation_Status CatalogReservation::Status_MIN; +const CatalogReservation_Status CatalogReservation::Status_MAX; +const int CatalogReservation::Status_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* CatalogCacheStatus_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fcatalog_2eproto[1]; +} +bool CatalogCacheStatus_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + + +// =================================================================== + +void CatalogArtifactTag::InitAsDefaultInstance() { +} +class CatalogArtifactTag::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CatalogArtifactTag::kArtifactIdFieldNumber; +const int CatalogArtifactTag::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CatalogArtifactTag::CatalogArtifactTag() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CatalogArtifactTag) +} +CatalogArtifactTag::CatalogArtifactTag(const CatalogArtifactTag& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.artifact_id().size() > 0) { + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CatalogArtifactTag) +} + +void CatalogArtifactTag::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base); + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +CatalogArtifactTag::~CatalogArtifactTag() { + // @@protoc_insertion_point(destructor:flyteidl.core.CatalogArtifactTag) + SharedDtor(); +} + +void CatalogArtifactTag::SharedDtor() { + artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void CatalogArtifactTag::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CatalogArtifactTag& CatalogArtifactTag::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CatalogArtifactTag::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CatalogArtifactTag) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CatalogArtifactTag::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string artifact_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.CatalogArtifactTag.artifact_id"); + object = msg->mutable_artifact_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.CatalogArtifactTag.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CatalogArtifactTag::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CatalogArtifactTag) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string artifact_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.CatalogArtifactTag.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.CatalogArtifactTag.name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.CatalogArtifactTag) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CatalogArtifactTag) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CatalogArtifactTag::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CatalogArtifactTag) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string artifact_id = 1; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.CatalogArtifactTag.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->artifact_id(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.CatalogArtifactTag.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CatalogArtifactTag) +} + +::google::protobuf::uint8* CatalogArtifactTag::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CatalogArtifactTag) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string artifact_id = 1; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.CatalogArtifactTag.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->artifact_id(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.CatalogArtifactTag.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CatalogArtifactTag) + return target; +} + +size_t CatalogArtifactTag::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CatalogArtifactTag) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string artifact_id = 1; + if (this->artifact_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CatalogArtifactTag::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CatalogArtifactTag) + GOOGLE_DCHECK_NE(&from, this); + const CatalogArtifactTag* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CatalogArtifactTag) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CatalogArtifactTag) + MergeFrom(*source); + } +} + +void CatalogArtifactTag::MergeFrom(const CatalogArtifactTag& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CatalogArtifactTag) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.artifact_id().size() > 0) { + + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void CatalogArtifactTag::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CatalogArtifactTag) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CatalogArtifactTag::CopyFrom(const CatalogArtifactTag& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CatalogArtifactTag) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CatalogArtifactTag::IsInitialized() const { + return true; +} + +void CatalogArtifactTag::Swap(CatalogArtifactTag* other) { + if (other == this) return; + InternalSwap(other); +} +void CatalogArtifactTag::InternalSwap(CatalogArtifactTag* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + artifact_id_.Swap(&other->artifact_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata CatalogArtifactTag::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CatalogMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_CatalogMetadata_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_CatalogMetadata_default_instance_._instance.get_mutable()->artifact_tag_ = const_cast< ::flyteidl::core::CatalogArtifactTag*>( + ::flyteidl::core::CatalogArtifactTag::internal_default_instance()); + ::flyteidl::core::_CatalogMetadata_default_instance_.source_task_execution_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +class CatalogMetadata::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& dataset_id(const CatalogMetadata* msg); + static const ::flyteidl::core::CatalogArtifactTag& artifact_tag(const CatalogMetadata* msg); + static const ::flyteidl::core::TaskExecutionIdentifier& source_task_execution(const CatalogMetadata* msg); +}; + +const ::flyteidl::core::Identifier& +CatalogMetadata::HasBitSetters::dataset_id(const CatalogMetadata* msg) { + return *msg->dataset_id_; +} +const ::flyteidl::core::CatalogArtifactTag& +CatalogMetadata::HasBitSetters::artifact_tag(const CatalogMetadata* msg) { + return *msg->artifact_tag_; +} +const ::flyteidl::core::TaskExecutionIdentifier& +CatalogMetadata::HasBitSetters::source_task_execution(const CatalogMetadata* msg) { + return *msg->source_execution_.source_task_execution_; +} +void CatalogMetadata::clear_dataset_id() { + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; +} +void CatalogMetadata::set_allocated_source_task_execution(::flyteidl::core::TaskExecutionIdentifier* source_task_execution) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_source_execution(); + if (source_task_execution) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + source_task_execution = ::google::protobuf::internal::GetOwnedMessage( + message_arena, source_task_execution, submessage_arena); + } + set_has_source_task_execution(); + source_execution_.source_task_execution_ = source_task_execution; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogMetadata.source_task_execution) +} +void CatalogMetadata::clear_source_task_execution() { + if (has_source_task_execution()) { + delete source_execution_.source_task_execution_; + clear_has_source_execution(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CatalogMetadata::kDatasetIdFieldNumber; +const int CatalogMetadata::kArtifactTagFieldNumber; +const int CatalogMetadata::kSourceTaskExecutionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CatalogMetadata::CatalogMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CatalogMetadata) +} +CatalogMetadata::CatalogMetadata(const CatalogMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset_id()) { + dataset_id_ = new ::flyteidl::core::Identifier(*from.dataset_id_); + } else { + dataset_id_ = nullptr; + } + if (from.has_artifact_tag()) { + artifact_tag_ = new ::flyteidl::core::CatalogArtifactTag(*from.artifact_tag_); + } else { + artifact_tag_ = nullptr; + } + clear_has_source_execution(); + switch (from.source_execution_case()) { + case kSourceTaskExecution: { + mutable_source_task_execution()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.source_task_execution()); + break; + } + case SOURCE_EXECUTION_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CatalogMetadata) +} + +void CatalogMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base); + ::memset(&dataset_id_, 0, static_cast( + reinterpret_cast(&artifact_tag_) - + reinterpret_cast(&dataset_id_)) + sizeof(artifact_tag_)); + clear_has_source_execution(); +} + +CatalogMetadata::~CatalogMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.CatalogMetadata) + SharedDtor(); +} + +void CatalogMetadata::SharedDtor() { + if (this != internal_default_instance()) delete dataset_id_; + if (this != internal_default_instance()) delete artifact_tag_; + if (has_source_execution()) { + clear_source_execution(); + } +} + +void CatalogMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CatalogMetadata& CatalogMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CatalogMetadata::clear_source_execution() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.CatalogMetadata) + switch (source_execution_case()) { + case kSourceTaskExecution: { + delete source_execution_.source_task_execution_; + break; + } + case SOURCE_EXECUTION_NOT_SET: { + break; + } + } + _oneof_case_[0] = SOURCE_EXECUTION_NOT_SET; +} + + +void CatalogMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CatalogMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && artifact_tag_ != nullptr) { + delete artifact_tag_; + } + artifact_tag_ = nullptr; + clear_source_execution(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CatalogMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier dataset_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_dataset_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CatalogArtifactTag::_InternalParse; + object = msg->mutable_artifact_tag(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_source_task_execution(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CatalogMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CatalogMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier dataset_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact_tag())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_source_task_execution())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.CatalogMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CatalogMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CatalogMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CatalogMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier dataset_id = 1; + if (this->has_dataset_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset_id(this), output); + } + + // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + if (this->has_artifact_tag()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::artifact_tag(this), output); + } + + // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + if (has_source_task_execution()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::source_task_execution(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CatalogMetadata) +} + +::google::protobuf::uint8* CatalogMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CatalogMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier dataset_id = 1; + if (this->has_dataset_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset_id(this), target); + } + + // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + if (this->has_artifact_tag()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::artifact_tag(this), target); + } + + // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + if (has_source_task_execution()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::source_task_execution(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CatalogMetadata) + return target; +} + +size_t CatalogMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CatalogMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier dataset_id = 1; + if (this->has_dataset_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_id_); + } + + // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + if (this->has_artifact_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *artifact_tag_); + } + + switch (source_execution_case()) { + // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + case kSourceTaskExecution: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_execution_.source_task_execution_); + break; + } + case SOURCE_EXECUTION_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CatalogMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CatalogMetadata) + GOOGLE_DCHECK_NE(&from, this); + const CatalogMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CatalogMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CatalogMetadata) + MergeFrom(*source); + } +} + +void CatalogMetadata::MergeFrom(const CatalogMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CatalogMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_dataset_id()) { + mutable_dataset_id()->::flyteidl::core::Identifier::MergeFrom(from.dataset_id()); + } + if (from.has_artifact_tag()) { + mutable_artifact_tag()->::flyteidl::core::CatalogArtifactTag::MergeFrom(from.artifact_tag()); + } + switch (from.source_execution_case()) { + case kSourceTaskExecution: { + mutable_source_task_execution()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.source_task_execution()); + break; + } + case SOURCE_EXECUTION_NOT_SET: { + break; + } + } +} + +void CatalogMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CatalogMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CatalogMetadata::CopyFrom(const CatalogMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CatalogMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CatalogMetadata::IsInitialized() const { + return true; +} + +void CatalogMetadata::Swap(CatalogMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void CatalogMetadata::InternalSwap(CatalogMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_id_, other->dataset_id_); + swap(artifact_tag_, other->artifact_tag_); + swap(source_execution_, other->source_execution_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata CatalogMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CatalogReservation::InitAsDefaultInstance() { +} +class CatalogReservation::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CatalogReservation::CatalogReservation() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CatalogReservation) +} +CatalogReservation::CatalogReservation(const CatalogReservation& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CatalogReservation) +} + +void CatalogReservation::SharedCtor() { +} + +CatalogReservation::~CatalogReservation() { + // @@protoc_insertion_point(destructor:flyteidl.core.CatalogReservation) + SharedDtor(); +} + +void CatalogReservation::SharedDtor() { +} + +void CatalogReservation::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CatalogReservation& CatalogReservation::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CatalogReservation_flyteidl_2fcore_2fcatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CatalogReservation::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CatalogReservation) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CatalogReservation::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CatalogReservation::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CatalogReservation) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.CatalogReservation) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CatalogReservation) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CatalogReservation::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CatalogReservation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CatalogReservation) +} + +::google::protobuf::uint8* CatalogReservation::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CatalogReservation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CatalogReservation) + return target; +} + +size_t CatalogReservation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CatalogReservation) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CatalogReservation::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CatalogReservation) + GOOGLE_DCHECK_NE(&from, this); + const CatalogReservation* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CatalogReservation) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CatalogReservation) + MergeFrom(*source); + } +} + +void CatalogReservation::MergeFrom(const CatalogReservation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CatalogReservation) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void CatalogReservation::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CatalogReservation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CatalogReservation::CopyFrom(const CatalogReservation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CatalogReservation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CatalogReservation::IsInitialized() const { + return true; +} + +void CatalogReservation::Swap(CatalogReservation* other) { + if (other == this) return; + InternalSwap(other); +} +void CatalogReservation::InternalSwap(CatalogReservation* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CatalogReservation::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::CatalogArtifactTag* Arena::CreateMaybeMessage< ::flyteidl::core::CatalogArtifactTag >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::CatalogArtifactTag >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::CatalogMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::CatalogMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::CatalogMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::CatalogReservation* Arena::CreateMaybeMessage< ::flyteidl::core::CatalogReservation >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::CatalogReservation >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.h new file mode 100644 index 0000000000..ddc8b7f5d4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.h @@ -0,0 +1,847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/catalog.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fcatalog_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fcatalog_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/identifier.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fcatalog_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto(); +namespace flyteidl { +namespace core { +class CatalogArtifactTag; +class CatalogArtifactTagDefaultTypeInternal; +extern CatalogArtifactTagDefaultTypeInternal _CatalogArtifactTag_default_instance_; +class CatalogMetadata; +class CatalogMetadataDefaultTypeInternal; +extern CatalogMetadataDefaultTypeInternal _CatalogMetadata_default_instance_; +class CatalogReservation; +class CatalogReservationDefaultTypeInternal; +extern CatalogReservationDefaultTypeInternal _CatalogReservation_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::CatalogArtifactTag* Arena::CreateMaybeMessage<::flyteidl::core::CatalogArtifactTag>(Arena*); +template<> ::flyteidl::core::CatalogMetadata* Arena::CreateMaybeMessage<::flyteidl::core::CatalogMetadata>(Arena*); +template<> ::flyteidl::core::CatalogReservation* Arena::CreateMaybeMessage<::flyteidl::core::CatalogReservation>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum CatalogReservation_Status { + CatalogReservation_Status_RESERVATION_DISABLED = 0, + CatalogReservation_Status_RESERVATION_ACQUIRED = 1, + CatalogReservation_Status_RESERVATION_EXISTS = 2, + CatalogReservation_Status_RESERVATION_RELEASED = 3, + CatalogReservation_Status_RESERVATION_FAILURE = 4, + CatalogReservation_Status_CatalogReservation_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + CatalogReservation_Status_CatalogReservation_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool CatalogReservation_Status_IsValid(int value); +const CatalogReservation_Status CatalogReservation_Status_Status_MIN = CatalogReservation_Status_RESERVATION_DISABLED; +const CatalogReservation_Status CatalogReservation_Status_Status_MAX = CatalogReservation_Status_RESERVATION_FAILURE; +const int CatalogReservation_Status_Status_ARRAYSIZE = CatalogReservation_Status_Status_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CatalogReservation_Status_descriptor(); +inline const ::std::string& CatalogReservation_Status_Name(CatalogReservation_Status value) { + return ::google::protobuf::internal::NameOfEnum( + CatalogReservation_Status_descriptor(), value); +} +inline bool CatalogReservation_Status_Parse( + const ::std::string& name, CatalogReservation_Status* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CatalogReservation_Status_descriptor(), name, value); +} +enum CatalogCacheStatus { + CACHE_DISABLED = 0, + CACHE_MISS = 1, + CACHE_HIT = 2, + CACHE_POPULATED = 3, + CACHE_LOOKUP_FAILURE = 4, + CACHE_PUT_FAILURE = 5, + CACHE_SKIPPED = 6, + CatalogCacheStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + CatalogCacheStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool CatalogCacheStatus_IsValid(int value); +const CatalogCacheStatus CatalogCacheStatus_MIN = CACHE_DISABLED; +const CatalogCacheStatus CatalogCacheStatus_MAX = CACHE_SKIPPED; +const int CatalogCacheStatus_ARRAYSIZE = CatalogCacheStatus_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CatalogCacheStatus_descriptor(); +inline const ::std::string& CatalogCacheStatus_Name(CatalogCacheStatus value) { + return ::google::protobuf::internal::NameOfEnum( + CatalogCacheStatus_descriptor(), value); +} +inline bool CatalogCacheStatus_Parse( + const ::std::string& name, CatalogCacheStatus* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CatalogCacheStatus_descriptor(), name, value); +} +// =================================================================== + +class CatalogArtifactTag final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CatalogArtifactTag) */ { + public: + CatalogArtifactTag(); + virtual ~CatalogArtifactTag(); + + CatalogArtifactTag(const CatalogArtifactTag& from); + + inline CatalogArtifactTag& operator=(const CatalogArtifactTag& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CatalogArtifactTag(CatalogArtifactTag&& from) noexcept + : CatalogArtifactTag() { + *this = ::std::move(from); + } + + inline CatalogArtifactTag& operator=(CatalogArtifactTag&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CatalogArtifactTag& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CatalogArtifactTag* internal_default_instance() { + return reinterpret_cast( + &_CatalogArtifactTag_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(CatalogArtifactTag* other); + friend void swap(CatalogArtifactTag& a, CatalogArtifactTag& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CatalogArtifactTag* New() const final { + return CreateMaybeMessage(nullptr); + } + + CatalogArtifactTag* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CatalogArtifactTag& from); + void MergeFrom(const CatalogArtifactTag& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CatalogArtifactTag* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string artifact_id = 1; + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 1; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogArtifactTag) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class CatalogMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CatalogMetadata) */ { + public: + CatalogMetadata(); + virtual ~CatalogMetadata(); + + CatalogMetadata(const CatalogMetadata& from); + + inline CatalogMetadata& operator=(const CatalogMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CatalogMetadata(CatalogMetadata&& from) noexcept + : CatalogMetadata() { + *this = ::std::move(from); + } + + inline CatalogMetadata& operator=(CatalogMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CatalogMetadata& default_instance(); + + enum SourceExecutionCase { + kSourceTaskExecution = 3, + SOURCE_EXECUTION_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CatalogMetadata* internal_default_instance() { + return reinterpret_cast( + &_CatalogMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(CatalogMetadata* other); + friend void swap(CatalogMetadata& a, CatalogMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CatalogMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + CatalogMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CatalogMetadata& from); + void MergeFrom(const CatalogMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CatalogMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier dataset_id = 1; + bool has_dataset_id() const; + void clear_dataset_id(); + static const int kDatasetIdFieldNumber = 1; + const ::flyteidl::core::Identifier& dataset_id() const; + ::flyteidl::core::Identifier* release_dataset_id(); + ::flyteidl::core::Identifier* mutable_dataset_id(); + void set_allocated_dataset_id(::flyteidl::core::Identifier* dataset_id); + + // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + bool has_artifact_tag() const; + void clear_artifact_tag(); + static const int kArtifactTagFieldNumber = 2; + const ::flyteidl::core::CatalogArtifactTag& artifact_tag() const; + ::flyteidl::core::CatalogArtifactTag* release_artifact_tag(); + ::flyteidl::core::CatalogArtifactTag* mutable_artifact_tag(); + void set_allocated_artifact_tag(::flyteidl::core::CatalogArtifactTag* artifact_tag); + + // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + bool has_source_task_execution() const; + void clear_source_task_execution(); + static const int kSourceTaskExecutionFieldNumber = 3; + const ::flyteidl::core::TaskExecutionIdentifier& source_task_execution() const; + ::flyteidl::core::TaskExecutionIdentifier* release_source_task_execution(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_source_task_execution(); + void set_allocated_source_task_execution(::flyteidl::core::TaskExecutionIdentifier* source_task_execution); + + void clear_source_execution(); + SourceExecutionCase source_execution_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogMetadata) + private: + class HasBitSetters; + void set_has_source_task_execution(); + + inline bool has_source_execution() const; + inline void clear_has_source_execution(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* dataset_id_; + ::flyteidl::core::CatalogArtifactTag* artifact_tag_; + union SourceExecutionUnion { + SourceExecutionUnion() {} + ::flyteidl::core::TaskExecutionIdentifier* source_task_execution_; + } source_execution_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fcatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class CatalogReservation final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CatalogReservation) */ { + public: + CatalogReservation(); + virtual ~CatalogReservation(); + + CatalogReservation(const CatalogReservation& from); + + inline CatalogReservation& operator=(const CatalogReservation& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CatalogReservation(CatalogReservation&& from) noexcept + : CatalogReservation() { + *this = ::std::move(from); + } + + inline CatalogReservation& operator=(CatalogReservation&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CatalogReservation& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CatalogReservation* internal_default_instance() { + return reinterpret_cast( + &_CatalogReservation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(CatalogReservation* other); + friend void swap(CatalogReservation& a, CatalogReservation& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CatalogReservation* New() const final { + return CreateMaybeMessage(nullptr); + } + + CatalogReservation* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CatalogReservation& from); + void MergeFrom(const CatalogReservation& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CatalogReservation* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef CatalogReservation_Status Status; + static const Status RESERVATION_DISABLED = + CatalogReservation_Status_RESERVATION_DISABLED; + static const Status RESERVATION_ACQUIRED = + CatalogReservation_Status_RESERVATION_ACQUIRED; + static const Status RESERVATION_EXISTS = + CatalogReservation_Status_RESERVATION_EXISTS; + static const Status RESERVATION_RELEASED = + CatalogReservation_Status_RESERVATION_RELEASED; + static const Status RESERVATION_FAILURE = + CatalogReservation_Status_RESERVATION_FAILURE; + static inline bool Status_IsValid(int value) { + return CatalogReservation_Status_IsValid(value); + } + static const Status Status_MIN = + CatalogReservation_Status_Status_MIN; + static const Status Status_MAX = + CatalogReservation_Status_Status_MAX; + static const int Status_ARRAYSIZE = + CatalogReservation_Status_Status_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Status_descriptor() { + return CatalogReservation_Status_descriptor(); + } + static inline const ::std::string& Status_Name(Status value) { + return CatalogReservation_Status_Name(value); + } + static inline bool Status_Parse(const ::std::string& name, + Status* value) { + return CatalogReservation_Status_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogReservation) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcatalog_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CatalogArtifactTag + +// string artifact_id = 1; +inline void CatalogArtifactTag::clear_artifact_id() { + artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CatalogArtifactTag::artifact_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.CatalogArtifactTag.artifact_id) + return artifact_id_.GetNoArena(); +} +inline void CatalogArtifactTag::set_artifact_id(const ::std::string& value) { + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.CatalogArtifactTag.artifact_id) +} +#if LANG_CXX11 +inline void CatalogArtifactTag::set_artifact_id(::std::string&& value) { + + artifact_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.CatalogArtifactTag.artifact_id) +} +#endif +inline void CatalogArtifactTag::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.CatalogArtifactTag.artifact_id) +} +inline void CatalogArtifactTag::set_artifact_id(const char* value, size_t size) { + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.CatalogArtifactTag.artifact_id) +} +inline ::std::string* CatalogArtifactTag::mutable_artifact_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogArtifactTag.artifact_id) + return artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CatalogArtifactTag::release_artifact_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.CatalogArtifactTag.artifact_id) + + return artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CatalogArtifactTag::set_allocated_artifact_id(::std::string* artifact_id) { + if (artifact_id != nullptr) { + + } else { + + } + artifact_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), artifact_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogArtifactTag.artifact_id) +} + +// string name = 2; +inline void CatalogArtifactTag::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CatalogArtifactTag::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.CatalogArtifactTag.name) + return name_.GetNoArena(); +} +inline void CatalogArtifactTag::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.CatalogArtifactTag.name) +} +#if LANG_CXX11 +inline void CatalogArtifactTag::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.CatalogArtifactTag.name) +} +#endif +inline void CatalogArtifactTag::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.CatalogArtifactTag.name) +} +inline void CatalogArtifactTag::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.CatalogArtifactTag.name) +} +inline ::std::string* CatalogArtifactTag::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogArtifactTag.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CatalogArtifactTag::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.CatalogArtifactTag.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CatalogArtifactTag::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogArtifactTag.name) +} + +// ------------------------------------------------------------------- + +// CatalogMetadata + +// .flyteidl.core.Identifier dataset_id = 1; +inline bool CatalogMetadata::has_dataset_id() const { + return this != internal_default_instance() && dataset_id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& CatalogMetadata::dataset_id() const { + const ::flyteidl::core::Identifier* p = dataset_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.CatalogMetadata.dataset_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* CatalogMetadata::release_dataset_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.CatalogMetadata.dataset_id) + + ::flyteidl::core::Identifier* temp = dataset_id_; + dataset_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* CatalogMetadata::mutable_dataset_id() { + + if (dataset_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + dataset_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogMetadata.dataset_id) + return dataset_id_; +} +inline void CatalogMetadata::set_allocated_dataset_id(::flyteidl::core::Identifier* dataset_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(dataset_id_); + } + if (dataset_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset_id, submessage_arena); + } + + } else { + + } + dataset_id_ = dataset_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogMetadata.dataset_id) +} + +// .flyteidl.core.CatalogArtifactTag artifact_tag = 2; +inline bool CatalogMetadata::has_artifact_tag() const { + return this != internal_default_instance() && artifact_tag_ != nullptr; +} +inline void CatalogMetadata::clear_artifact_tag() { + if (GetArenaNoVirtual() == nullptr && artifact_tag_ != nullptr) { + delete artifact_tag_; + } + artifact_tag_ = nullptr; +} +inline const ::flyteidl::core::CatalogArtifactTag& CatalogMetadata::artifact_tag() const { + const ::flyteidl::core::CatalogArtifactTag* p = artifact_tag_; + // @@protoc_insertion_point(field_get:flyteidl.core.CatalogMetadata.artifact_tag) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CatalogArtifactTag_default_instance_); +} +inline ::flyteidl::core::CatalogArtifactTag* CatalogMetadata::release_artifact_tag() { + // @@protoc_insertion_point(field_release:flyteidl.core.CatalogMetadata.artifact_tag) + + ::flyteidl::core::CatalogArtifactTag* temp = artifact_tag_; + artifact_tag_ = nullptr; + return temp; +} +inline ::flyteidl::core::CatalogArtifactTag* CatalogMetadata::mutable_artifact_tag() { + + if (artifact_tag_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CatalogArtifactTag>(GetArenaNoVirtual()); + artifact_tag_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogMetadata.artifact_tag) + return artifact_tag_; +} +inline void CatalogMetadata::set_allocated_artifact_tag(::flyteidl::core::CatalogArtifactTag* artifact_tag) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete artifact_tag_; + } + if (artifact_tag) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact_tag = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact_tag, submessage_arena); + } + + } else { + + } + artifact_tag_ = artifact_tag; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogMetadata.artifact_tag) +} + +// .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; +inline bool CatalogMetadata::has_source_task_execution() const { + return source_execution_case() == kSourceTaskExecution; +} +inline void CatalogMetadata::set_has_source_task_execution() { + _oneof_case_[0] = kSourceTaskExecution; +} +inline ::flyteidl::core::TaskExecutionIdentifier* CatalogMetadata::release_source_task_execution() { + // @@protoc_insertion_point(field_release:flyteidl.core.CatalogMetadata.source_task_execution) + if (has_source_task_execution()) { + clear_has_source_execution(); + ::flyteidl::core::TaskExecutionIdentifier* temp = source_execution_.source_task_execution_; + source_execution_.source_task_execution_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::TaskExecutionIdentifier& CatalogMetadata::source_task_execution() const { + // @@protoc_insertion_point(field_get:flyteidl.core.CatalogMetadata.source_task_execution) + return has_source_task_execution() + ? *source_execution_.source_task_execution_ + : *reinterpret_cast< ::flyteidl::core::TaskExecutionIdentifier*>(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* CatalogMetadata::mutable_source_task_execution() { + if (!has_source_task_execution()) { + clear_source_execution(); + set_has_source_task_execution(); + source_execution_.source_task_execution_ = CreateMaybeMessage< ::flyteidl::core::TaskExecutionIdentifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogMetadata.source_task_execution) + return source_execution_.source_task_execution_; +} + +inline bool CatalogMetadata::has_source_execution() const { + return source_execution_case() != SOURCE_EXECUTION_NOT_SET; +} +inline void CatalogMetadata::clear_has_source_execution() { + _oneof_case_[0] = SOURCE_EXECUTION_NOT_SET; +} +inline CatalogMetadata::SourceExecutionCase CatalogMetadata::source_execution_case() const { + return CatalogMetadata::SourceExecutionCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CatalogReservation + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::CatalogReservation_Status> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::CatalogReservation_Status>() { + return ::flyteidl::core::CatalogReservation_Status_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::CatalogCacheStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::CatalogCacheStatus>() { + return ::flyteidl::core::CatalogCacheStatus_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fcatalog_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc new file mode 100644 index 0000000000..67571c8750 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/compiler.proto + +#include "flyteidl/core/compiler.pb.h" +#include "flyteidl/core/compiler.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h new file mode 100644 index 0000000000..30a332b1ed --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/compiler.proto +#ifndef GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED + +#include "flyteidl/core/compiler.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc new file mode 100644 index 0000000000..511c5105bd --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc @@ -0,0 +1,2279 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +#include "flyteidl/core/compiler.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; +namespace flyteidl { +namespace core { +class ConnectionSet_IdListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ConnectionSet_IdList_default_instance_; +class ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; +class ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; +class ConnectionSetDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ConnectionSet_default_instance_; +class CompiledWorkflowDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CompiledWorkflow_default_instance_; +class CompiledTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CompiledTask_default_instance_; +class CompiledWorkflowClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CompiledWorkflowClosure_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ConnectionSet_IdList_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet_IdList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ConnectionSet_IdList::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto}, {}}; + +static void InitDefaultsConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse(); + } + ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto}, { + &scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base,}}; + +static void InitDefaultsConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse(); + } + ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto}, { + &scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base,}}; + +static void InitDefaultsConnectionSet_flyteidl_2fcore_2fcompiler_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ConnectionSet_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ConnectionSet::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsConnectionSet_flyteidl_2fcore_2fcompiler_2eproto}, { + &scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base, + &scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base,}}; + +static void InitDefaultsCompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_CompiledWorkflow_default_instance_; + new (ptr) ::flyteidl::core::CompiledWorkflow(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CompiledWorkflow::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto}, { + &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base,}}; + +static void InitDefaultsCompiledTask_flyteidl_2fcore_2fcompiler_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_CompiledTask_default_instance_; + new (ptr) ::flyteidl::core::CompiledTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CompiledTask::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCompiledTask_flyteidl_2fcore_2fcompiler_2eproto}, { + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsCompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_CompiledWorkflowClosure_default_instance_; + new (ptr) ::flyteidl::core::CompiledWorkflowClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CompiledWorkflowClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto}, { + &scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base, + &scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fcompiler_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[7]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fcompiler_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fcompiler_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fcompiler_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_IdList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_IdList, ids_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet, downstream_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet, upstream_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, template__), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, connections_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledTask, template__), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, primary_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, sub_workflows_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, tasks_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::ConnectionSet_IdList)}, + { 6, 13, sizeof(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse)}, + { 15, 22, sizeof(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse)}, + { 24, -1, sizeof(::flyteidl::core::ConnectionSet)}, + { 31, -1, sizeof(::flyteidl::core::CompiledWorkflow)}, + { 38, -1, sizeof(::flyteidl::core::CompiledTask)}, + { 44, -1, sizeof(::flyteidl::core::CompiledWorkflowClosure)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_ConnectionSet_IdList_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConnectionSet_default_instance_), + reinterpret_cast(&::flyteidl::core::_CompiledWorkflow_default_instance_), + reinterpret_cast(&::flyteidl::core::_CompiledTask_default_instance_), + reinterpret_cast(&::flyteidl::core::_CompiledWorkflowClosure_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, "flyteidl/core/compiler.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fcompiler_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto, 7, file_level_enum_descriptors_flyteidl_2fcore_2fcompiler_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fcompiler_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fcompiler_2eproto[] = + "\n\034flyteidl/core/compiler.proto\022\rflyteidl" + ".core\032\034flyteidl/core/workflow.proto\032\031fly" + "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + "iledTaskB6Z4github.com/flyteorg/flyteidl" + "/gen/pb-go/flyteidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fcompiler_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fcompiler_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fcompiler_2eproto, + "flyteidl/core/compiler.proto", &assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto, 872, +}; + +void AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fcompiler_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fcompiler_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto(); return true; }(); +namespace flyteidl { +namespace core { + +// =================================================================== + +void ConnectionSet_IdList::InitAsDefaultInstance() { +} +class ConnectionSet_IdList::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConnectionSet_IdList::kIdsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConnectionSet_IdList::ConnectionSet_IdList() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ConnectionSet.IdList) +} +ConnectionSet_IdList::ConnectionSet_IdList(const ConnectionSet_IdList& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + ids_(from.ids_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConnectionSet.IdList) +} + +void ConnectionSet_IdList::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base); +} + +ConnectionSet_IdList::~ConnectionSet_IdList() { + // @@protoc_insertion_point(destructor:flyteidl.core.ConnectionSet.IdList) + SharedDtor(); +} + +void ConnectionSet_IdList::SharedDtor() { +} + +void ConnectionSet_IdList::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ConnectionSet_IdList& ConnectionSet_IdList::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base); + return *internal_default_instance(); +} + + +void ConnectionSet_IdList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ids_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ConnectionSet_IdList::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string ids = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ConnectionSet.IdList.ids"); + object = msg->add_ids(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ConnectionSet_IdList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ConnectionSet.IdList) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string ids = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_ids())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ids(this->ids_size() - 1).data(), + static_cast(this->ids(this->ids_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.IdList.ids")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ConnectionSet.IdList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ConnectionSet.IdList) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ConnectionSet_IdList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string ids = 1; + for (int i = 0, n = this->ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ids(i).data(), static_cast(this->ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.IdList.ids"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->ids(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ConnectionSet.IdList) +} + +::google::protobuf::uint8* ConnectionSet_IdList::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string ids = 1; + for (int i = 0, n = this->ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ids(i).data(), static_cast(this->ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.IdList.ids"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->ids(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ConnectionSet.IdList) + return target; +} + +size_t ConnectionSet_IdList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConnectionSet.IdList) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string ids = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->ids_size()); + for (int i = 0, n = this->ids_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->ids(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ConnectionSet_IdList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConnectionSet.IdList) + GOOGLE_DCHECK_NE(&from, this); + const ConnectionSet_IdList* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConnectionSet.IdList) + MergeFrom(*source); + } +} + +void ConnectionSet_IdList::MergeFrom(const ConnectionSet_IdList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConnectionSet.IdList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ids_.MergeFrom(from.ids_); +} + +void ConnectionSet_IdList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConnectionSet.IdList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConnectionSet_IdList::CopyFrom(const ConnectionSet_IdList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConnectionSet.IdList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConnectionSet_IdList::IsInitialized() const { + return true; +} + +void ConnectionSet_IdList::Swap(ConnectionSet_IdList* other) { + if (other == this) return; + InternalSwap(other); +} +void ConnectionSet_IdList::InternalSwap(ConnectionSet_IdList* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + ids_.InternalSwap(CastToBase(&other->ids_)); +} + +::google::protobuf::Metadata ConnectionSet_IdList::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +ConnectionSet_DownstreamEntry_DoNotUse::ConnectionSet_DownstreamEntry_DoNotUse() {} +ConnectionSet_DownstreamEntry_DoNotUse::ConnectionSet_DownstreamEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ConnectionSet_DownstreamEntry_DoNotUse::MergeFrom(const ConnectionSet_DownstreamEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ConnectionSet_DownstreamEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[1]; +} +void ConnectionSet_DownstreamEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ConnectionSet_DownstreamEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ConnectionSet_DownstreamEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.DownstreamEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +ConnectionSet_UpstreamEntry_DoNotUse::ConnectionSet_UpstreamEntry_DoNotUse() {} +ConnectionSet_UpstreamEntry_DoNotUse::ConnectionSet_UpstreamEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ConnectionSet_UpstreamEntry_DoNotUse::MergeFrom(const ConnectionSet_UpstreamEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ConnectionSet_UpstreamEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[2]; +} +void ConnectionSet_UpstreamEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ConnectionSet_UpstreamEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ConnectionSet_UpstreamEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.UpstreamEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void ConnectionSet::InitAsDefaultInstance() { +} +class ConnectionSet::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConnectionSet::kDownstreamFieldNumber; +const int ConnectionSet::kUpstreamFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConnectionSet::ConnectionSet() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ConnectionSet) +} +ConnectionSet::ConnectionSet(const ConnectionSet& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + downstream_.MergeFrom(from.downstream_); + upstream_.MergeFrom(from.upstream_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConnectionSet) +} + +void ConnectionSet::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base); +} + +ConnectionSet::~ConnectionSet() { + // @@protoc_insertion_point(destructor:flyteidl.core.ConnectionSet) + SharedDtor(); +} + +void ConnectionSet::SharedDtor() { +} + +void ConnectionSet::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ConnectionSet& ConnectionSet::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base); + return *internal_default_instance(); +} + + +void ConnectionSet::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConnectionSet) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + downstream_.Clear(); + upstream_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ConnectionSet::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map downstream = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->downstream_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 58 && (ptr += 1)); + break; + } + // map upstream = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->upstream_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 66 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ConnectionSet::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ConnectionSet) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map downstream = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + ConnectionSet_DownstreamEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ConnectionSet_DownstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList > > parser(&downstream_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.DownstreamEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + // map upstream = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + ConnectionSet_UpstreamEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ConnectionSet_UpstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList > > parser(&upstream_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.UpstreamEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ConnectionSet) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ConnectionSet) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ConnectionSet::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ConnectionSet) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map downstream = 7; + if (!this->downstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.DownstreamEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->downstream().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->downstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(downstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(7, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it) { + entry.reset(downstream_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(7, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // map upstream = 8; + if (!this->upstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.UpstreamEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->upstream().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->upstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(upstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(8, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it) { + entry.reset(upstream_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(8, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ConnectionSet) +} + +::google::protobuf::uint8* ConnectionSet::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConnectionSet) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map downstream = 7; + if (!this->downstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.DownstreamEntry.key"); + } + }; + + if (false && + this->downstream().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->downstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(downstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(7, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it) { + entry.reset(downstream_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(7, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // map upstream = 8; + if (!this->upstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.UpstreamEntry.key"); + } + }; + + if (false && + this->upstream().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->upstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(upstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(8, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it) { + entry.reset(upstream_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(8, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ConnectionSet) + return target; +} + +size_t ConnectionSet::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConnectionSet) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map downstream = 7; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->downstream_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it) { + entry.reset(downstream_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // map upstream = 8; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->upstream_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it) { + entry.reset(upstream_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ConnectionSet::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConnectionSet) + GOOGLE_DCHECK_NE(&from, this); + const ConnectionSet* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConnectionSet) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConnectionSet) + MergeFrom(*source); + } +} + +void ConnectionSet::MergeFrom(const ConnectionSet& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConnectionSet) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + downstream_.MergeFrom(from.downstream_); + upstream_.MergeFrom(from.upstream_); +} + +void ConnectionSet::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConnectionSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConnectionSet::CopyFrom(const ConnectionSet& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConnectionSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConnectionSet::IsInitialized() const { + return true; +} + +void ConnectionSet::Swap(ConnectionSet* other) { + if (other == this) return; + InternalSwap(other); +} +void ConnectionSet::InternalSwap(ConnectionSet* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + downstream_.Swap(&other->downstream_); + upstream_.Swap(&other->upstream_); +} + +::google::protobuf::Metadata ConnectionSet::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CompiledWorkflow::InitAsDefaultInstance() { + ::flyteidl::core::_CompiledWorkflow_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::WorkflowTemplate*>( + ::flyteidl::core::WorkflowTemplate::internal_default_instance()); + ::flyteidl::core::_CompiledWorkflow_default_instance_._instance.get_mutable()->connections_ = const_cast< ::flyteidl::core::ConnectionSet*>( + ::flyteidl::core::ConnectionSet::internal_default_instance()); +} +class CompiledWorkflow::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowTemplate& template_(const CompiledWorkflow* msg); + static const ::flyteidl::core::ConnectionSet& connections(const CompiledWorkflow* msg); +}; + +const ::flyteidl::core::WorkflowTemplate& +CompiledWorkflow::HasBitSetters::template_(const CompiledWorkflow* msg) { + return *msg->template__; +} +const ::flyteidl::core::ConnectionSet& +CompiledWorkflow::HasBitSetters::connections(const CompiledWorkflow* msg) { + return *msg->connections_; +} +void CompiledWorkflow::clear_template_() { + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CompiledWorkflow::kTemplateFieldNumber; +const int CompiledWorkflow::kConnectionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CompiledWorkflow::CompiledWorkflow() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CompiledWorkflow) +} +CompiledWorkflow::CompiledWorkflow(const CompiledWorkflow& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::WorkflowTemplate(*from.template__); + } else { + template__ = nullptr; + } + if (from.has_connections()) { + connections_ = new ::flyteidl::core::ConnectionSet(*from.connections_); + } else { + connections_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledWorkflow) +} + +void CompiledWorkflow::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base); + ::memset(&template__, 0, static_cast( + reinterpret_cast(&connections_) - + reinterpret_cast(&template__)) + sizeof(connections_)); +} + +CompiledWorkflow::~CompiledWorkflow() { + // @@protoc_insertion_point(destructor:flyteidl.core.CompiledWorkflow) + SharedDtor(); +} + +void CompiledWorkflow::SharedDtor() { + if (this != internal_default_instance()) delete template__; + if (this != internal_default_instance()) delete connections_; +} + +void CompiledWorkflow::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CompiledWorkflow& CompiledWorkflow::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base); + return *internal_default_instance(); +} + + +void CompiledWorkflow::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledWorkflow) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; + if (GetArenaNoVirtual() == nullptr && connections_ != nullptr) { + delete connections_; + } + connections_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CompiledWorkflow::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowTemplate template = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowTemplate::_InternalParse; + object = msg->mutable_template_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.ConnectionSet connections = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ConnectionSet::_InternalParse; + object = msg->mutable_connections(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CompiledWorkflow::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CompiledWorkflow) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ConnectionSet connections = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_connections())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.CompiledWorkflow) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledWorkflow) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CompiledWorkflow::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledWorkflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::template_(this), output); + } + + // .flyteidl.core.ConnectionSet connections = 2; + if (this->has_connections()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::connections(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledWorkflow) +} + +::google::protobuf::uint8* CompiledWorkflow::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledWorkflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::template_(this), target); + } + + // .flyteidl.core.ConnectionSet connections = 2; + if (this->has_connections()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::connections(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CompiledWorkflow) + return target; +} + +size_t CompiledWorkflow::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledWorkflow) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *template__); + } + + // .flyteidl.core.ConnectionSet connections = 2; + if (this->has_connections()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *connections_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CompiledWorkflow::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledWorkflow) + GOOGLE_DCHECK_NE(&from, this); + const CompiledWorkflow* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledWorkflow) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledWorkflow) + MergeFrom(*source); + } +} + +void CompiledWorkflow::MergeFrom(const CompiledWorkflow& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledWorkflow) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.template_()); + } + if (from.has_connections()) { + mutable_connections()->::flyteidl::core::ConnectionSet::MergeFrom(from.connections()); + } +} + +void CompiledWorkflow::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledWorkflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompiledWorkflow::CopyFrom(const CompiledWorkflow& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledWorkflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompiledWorkflow::IsInitialized() const { + return true; +} + +void CompiledWorkflow::Swap(CompiledWorkflow* other) { + if (other == this) return; + InternalSwap(other); +} +void CompiledWorkflow::InternalSwap(CompiledWorkflow* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(template__, other->template__); + swap(connections_, other->connections_); +} + +::google::protobuf::Metadata CompiledWorkflow::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CompiledTask::InitAsDefaultInstance() { + ::flyteidl::core::_CompiledTask_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); +} +class CompiledTask::HasBitSetters { + public: + static const ::flyteidl::core::TaskTemplate& template_(const CompiledTask* msg); +}; + +const ::flyteidl::core::TaskTemplate& +CompiledTask::HasBitSetters::template_(const CompiledTask* msg) { + return *msg->template__; +} +void CompiledTask::clear_template_() { + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CompiledTask::kTemplateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CompiledTask::CompiledTask() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CompiledTask) +} +CompiledTask::CompiledTask(const CompiledTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::TaskTemplate(*from.template__); + } else { + template__ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledTask) +} + +void CompiledTask::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base); + template__ = nullptr; +} + +CompiledTask::~CompiledTask() { + // @@protoc_insertion_point(destructor:flyteidl.core.CompiledTask) + SharedDtor(); +} + +void CompiledTask::SharedDtor() { + if (this != internal_default_instance()) delete template__; +} + +void CompiledTask::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CompiledTask& CompiledTask::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base); + return *internal_default_instance(); +} + + +void CompiledTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CompiledTask::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskTemplate template = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->mutable_template_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CompiledTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CompiledTask) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.CompiledTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledTask) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CompiledTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::template_(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledTask) +} + +::google::protobuf::uint8* CompiledTask::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::template_(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CompiledTask) + return target; +} + +size_t CompiledTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledTask) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *template__); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CompiledTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledTask) + GOOGLE_DCHECK_NE(&from, this); + const CompiledTask* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledTask) + MergeFrom(*source); + } +} + +void CompiledTask::MergeFrom(const CompiledTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); + } +} + +void CompiledTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompiledTask::CopyFrom(const CompiledTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompiledTask::IsInitialized() const { + return true; +} + +void CompiledTask::Swap(CompiledTask* other) { + if (other == this) return; + InternalSwap(other); +} +void CompiledTask::InternalSwap(CompiledTask* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(template__, other->template__); +} + +::google::protobuf::Metadata CompiledTask::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CompiledWorkflowClosure::InitAsDefaultInstance() { + ::flyteidl::core::_CompiledWorkflowClosure_default_instance_._instance.get_mutable()->primary_ = const_cast< ::flyteidl::core::CompiledWorkflow*>( + ::flyteidl::core::CompiledWorkflow::internal_default_instance()); +} +class CompiledWorkflowClosure::HasBitSetters { + public: + static const ::flyteidl::core::CompiledWorkflow& primary(const CompiledWorkflowClosure* msg); +}; + +const ::flyteidl::core::CompiledWorkflow& +CompiledWorkflowClosure::HasBitSetters::primary(const CompiledWorkflowClosure* msg) { + return *msg->primary_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CompiledWorkflowClosure::kPrimaryFieldNumber; +const int CompiledWorkflowClosure::kSubWorkflowsFieldNumber; +const int CompiledWorkflowClosure::kTasksFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CompiledWorkflowClosure::CompiledWorkflowClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CompiledWorkflowClosure) +} +CompiledWorkflowClosure::CompiledWorkflowClosure(const CompiledWorkflowClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + sub_workflows_(from.sub_workflows_), + tasks_(from.tasks_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_primary()) { + primary_ = new ::flyteidl::core::CompiledWorkflow(*from.primary_); + } else { + primary_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledWorkflowClosure) +} + +void CompiledWorkflowClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base); + primary_ = nullptr; +} + +CompiledWorkflowClosure::~CompiledWorkflowClosure() { + // @@protoc_insertion_point(destructor:flyteidl.core.CompiledWorkflowClosure) + SharedDtor(); +} + +void CompiledWorkflowClosure::SharedDtor() { + if (this != internal_default_instance()) delete primary_; +} + +void CompiledWorkflowClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CompiledWorkflowClosure& CompiledWorkflowClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base); + return *internal_default_instance(); +} + + +void CompiledWorkflowClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + sub_workflows_.Clear(); + tasks_.Clear(); + if (GetArenaNoVirtual() == nullptr && primary_ != nullptr) { + delete primary_; + } + primary_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CompiledWorkflowClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.CompiledWorkflow primary = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CompiledWorkflow::_InternalParse; + object = msg->mutable_primary(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CompiledWorkflow::_InternalParse; + object = msg->add_sub_workflows(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.CompiledTask tasks = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CompiledTask::_InternalParse; + object = msg->add_tasks(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CompiledWorkflowClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CompiledWorkflowClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.CompiledWorkflow primary = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_primary())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_sub_workflows())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tasks())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.CompiledWorkflowClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledWorkflowClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CompiledWorkflowClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflow primary = 1; + if (this->has_primary()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::primary(this), output); + } + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + for (unsigned int i = 0, + n = static_cast(this->sub_workflows_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->sub_workflows(static_cast(i)), + output); + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->tasks(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledWorkflowClosure) +} + +::google::protobuf::uint8* CompiledWorkflowClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflow primary = 1; + if (this->has_primary()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::primary(this), target); + } + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + for (unsigned int i = 0, + n = static_cast(this->sub_workflows_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->sub_workflows(static_cast(i)), target); + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->tasks(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CompiledWorkflowClosure) + return target; +} + +size_t CompiledWorkflowClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledWorkflowClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + { + unsigned int count = static_cast(this->sub_workflows_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->sub_workflows(static_cast(i))); + } + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(i))); + } + } + + // .flyteidl.core.CompiledWorkflow primary = 1; + if (this->has_primary()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *primary_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CompiledWorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledWorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + const CompiledWorkflowClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledWorkflowClosure) + MergeFrom(*source); + } +} + +void CompiledWorkflowClosure::MergeFrom(const CompiledWorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledWorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + sub_workflows_.MergeFrom(from.sub_workflows_); + tasks_.MergeFrom(from.tasks_); + if (from.has_primary()) { + mutable_primary()->::flyteidl::core::CompiledWorkflow::MergeFrom(from.primary()); + } +} + +void CompiledWorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledWorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompiledWorkflowClosure::CopyFrom(const CompiledWorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledWorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompiledWorkflowClosure::IsInitialized() const { + return true; +} + +void CompiledWorkflowClosure::Swap(CompiledWorkflowClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void CompiledWorkflowClosure::InternalSwap(CompiledWorkflowClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&sub_workflows_)->InternalSwap(CastToBase(&other->sub_workflows_)); + CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); + swap(primary_, other->primary_); +} + +::google::protobuf::Metadata CompiledWorkflowClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet_IdList* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet_IdList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ConnectionSet_IdList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ConnectionSet >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::CompiledWorkflow* Arena::CreateMaybeMessage< ::flyteidl::core::CompiledWorkflow >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::CompiledWorkflow >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::CompiledTask* Arena::CreateMaybeMessage< ::flyteidl::core::CompiledTask >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::CompiledTask >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::CompiledWorkflowClosure* Arena::CreateMaybeMessage< ::flyteidl::core::CompiledWorkflowClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::CompiledWorkflowClosure >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h new file mode 100644 index 0000000000..09ab9de1a4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h @@ -0,0 +1,1201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fcompiler_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fcompiler_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/tasks.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fcompiler_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto(); +namespace flyteidl { +namespace core { +class CompiledTask; +class CompiledTaskDefaultTypeInternal; +extern CompiledTaskDefaultTypeInternal _CompiledTask_default_instance_; +class CompiledWorkflow; +class CompiledWorkflowDefaultTypeInternal; +extern CompiledWorkflowDefaultTypeInternal _CompiledWorkflow_default_instance_; +class CompiledWorkflowClosure; +class CompiledWorkflowClosureDefaultTypeInternal; +extern CompiledWorkflowClosureDefaultTypeInternal _CompiledWorkflowClosure_default_instance_; +class ConnectionSet; +class ConnectionSetDefaultTypeInternal; +extern ConnectionSetDefaultTypeInternal _ConnectionSet_default_instance_; +class ConnectionSet_DownstreamEntry_DoNotUse; +class ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal; +extern ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal _ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; +class ConnectionSet_IdList; +class ConnectionSet_IdListDefaultTypeInternal; +extern ConnectionSet_IdListDefaultTypeInternal _ConnectionSet_IdList_default_instance_; +class ConnectionSet_UpstreamEntry_DoNotUse; +class ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal; +extern ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal _ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::CompiledTask* Arena::CreateMaybeMessage<::flyteidl::core::CompiledTask>(Arena*); +template<> ::flyteidl::core::CompiledWorkflow* Arena::CreateMaybeMessage<::flyteidl::core::CompiledWorkflow>(Arena*); +template<> ::flyteidl::core::CompiledWorkflowClosure* Arena::CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(Arena*); +template<> ::flyteidl::core::ConnectionSet* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet>(Arena*); +template<> ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::ConnectionSet_IdList* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet_IdList>(Arena*); +template<> ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +// =================================================================== + +class ConnectionSet_IdList final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConnectionSet.IdList) */ { + public: + ConnectionSet_IdList(); + virtual ~ConnectionSet_IdList(); + + ConnectionSet_IdList(const ConnectionSet_IdList& from); + + inline ConnectionSet_IdList& operator=(const ConnectionSet_IdList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ConnectionSet_IdList(ConnectionSet_IdList&& from) noexcept + : ConnectionSet_IdList() { + *this = ::std::move(from); + } + + inline ConnectionSet_IdList& operator=(ConnectionSet_IdList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ConnectionSet_IdList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConnectionSet_IdList* internal_default_instance() { + return reinterpret_cast( + &_ConnectionSet_IdList_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ConnectionSet_IdList* other); + friend void swap(ConnectionSet_IdList& a, ConnectionSet_IdList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ConnectionSet_IdList* New() const final { + return CreateMaybeMessage(nullptr); + } + + ConnectionSet_IdList* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ConnectionSet_IdList& from); + void MergeFrom(const ConnectionSet_IdList& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ConnectionSet_IdList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string ids = 1; + int ids_size() const; + void clear_ids(); + static const int kIdsFieldNumber = 1; + const ::std::string& ids(int index) const; + ::std::string* mutable_ids(int index); + void set_ids(int index, const ::std::string& value); + #if LANG_CXX11 + void set_ids(int index, ::std::string&& value); + #endif + void set_ids(int index, const char* value); + void set_ids(int index, const char* value, size_t size); + ::std::string* add_ids(); + void add_ids(const ::std::string& value); + #if LANG_CXX11 + void add_ids(::std::string&& value); + #endif + void add_ids(const char* value); + void add_ids(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& ids() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_ids(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> ids_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; +}; +// ------------------------------------------------------------------- + +class ConnectionSet_DownstreamEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ConnectionSet_DownstreamEntry_DoNotUse(); + ConnectionSet_DownstreamEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ConnectionSet_DownstreamEntry_DoNotUse& other); + static const ConnectionSet_DownstreamEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ConnectionSet_UpstreamEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ConnectionSet_UpstreamEntry_DoNotUse(); + ConnectionSet_UpstreamEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ConnectionSet_UpstreamEntry_DoNotUse& other); + static const ConnectionSet_UpstreamEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ConnectionSet final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConnectionSet) */ { + public: + ConnectionSet(); + virtual ~ConnectionSet(); + + ConnectionSet(const ConnectionSet& from); + + inline ConnectionSet& operator=(const ConnectionSet& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ConnectionSet(ConnectionSet&& from) noexcept + : ConnectionSet() { + *this = ::std::move(from); + } + + inline ConnectionSet& operator=(ConnectionSet&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ConnectionSet& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConnectionSet* internal_default_instance() { + return reinterpret_cast( + &_ConnectionSet_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ConnectionSet* other); + friend void swap(ConnectionSet& a, ConnectionSet& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ConnectionSet* New() const final { + return CreateMaybeMessage(nullptr); + } + + ConnectionSet* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ConnectionSet& from); + void MergeFrom(const ConnectionSet& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ConnectionSet* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ConnectionSet_IdList IdList; + + // accessors ------------------------------------------------------- + + // map downstream = 7; + int downstream_size() const; + void clear_downstream(); + static const int kDownstreamFieldNumber = 7; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& + downstream() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* + mutable_downstream(); + + // map upstream = 8; + int upstream_size() const; + void clear_upstream(); + static const int kUpstreamFieldNumber = 8; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& + upstream() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* + mutable_upstream(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ConnectionSet_DownstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > downstream_; + ::google::protobuf::internal::MapField< + ConnectionSet_UpstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > upstream_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; +}; +// ------------------------------------------------------------------- + +class CompiledWorkflow final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledWorkflow) */ { + public: + CompiledWorkflow(); + virtual ~CompiledWorkflow(); + + CompiledWorkflow(const CompiledWorkflow& from); + + inline CompiledWorkflow& operator=(const CompiledWorkflow& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CompiledWorkflow(CompiledWorkflow&& from) noexcept + : CompiledWorkflow() { + *this = ::std::move(from); + } + + inline CompiledWorkflow& operator=(CompiledWorkflow&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CompiledWorkflow& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompiledWorkflow* internal_default_instance() { + return reinterpret_cast( + &_CompiledWorkflow_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(CompiledWorkflow* other); + friend void swap(CompiledWorkflow& a, CompiledWorkflow& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CompiledWorkflow* New() const final { + return CreateMaybeMessage(nullptr); + } + + CompiledWorkflow* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CompiledWorkflow& from); + void MergeFrom(const CompiledWorkflow& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CompiledWorkflow* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::WorkflowTemplate& template_() const; + ::flyteidl::core::WorkflowTemplate* release_template_(); + ::flyteidl::core::WorkflowTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_); + + // .flyteidl.core.ConnectionSet connections = 2; + bool has_connections() const; + void clear_connections(); + static const int kConnectionsFieldNumber = 2; + const ::flyteidl::core::ConnectionSet& connections() const; + ::flyteidl::core::ConnectionSet* release_connections(); + ::flyteidl::core::ConnectionSet* mutable_connections(); + void set_allocated_connections(::flyteidl::core::ConnectionSet* connections); + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowTemplate* template__; + ::flyteidl::core::ConnectionSet* connections_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; +}; +// ------------------------------------------------------------------- + +class CompiledTask final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledTask) */ { + public: + CompiledTask(); + virtual ~CompiledTask(); + + CompiledTask(const CompiledTask& from); + + inline CompiledTask& operator=(const CompiledTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CompiledTask(CompiledTask&& from) noexcept + : CompiledTask() { + *this = ::std::move(from); + } + + inline CompiledTask& operator=(CompiledTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CompiledTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompiledTask* internal_default_instance() { + return reinterpret_cast( + &_CompiledTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(CompiledTask* other); + friend void swap(CompiledTask& a, CompiledTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CompiledTask* New() const final { + return CreateMaybeMessage(nullptr); + } + + CompiledTask* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CompiledTask& from); + void MergeFrom(const CompiledTask& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CompiledTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::TaskTemplate& template_() const; + ::flyteidl::core::TaskTemplate* release_template_(); + ::flyteidl::core::TaskTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskTemplate* template__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; +}; +// ------------------------------------------------------------------- + +class CompiledWorkflowClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledWorkflowClosure) */ { + public: + CompiledWorkflowClosure(); + virtual ~CompiledWorkflowClosure(); + + CompiledWorkflowClosure(const CompiledWorkflowClosure& from); + + inline CompiledWorkflowClosure& operator=(const CompiledWorkflowClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CompiledWorkflowClosure(CompiledWorkflowClosure&& from) noexcept + : CompiledWorkflowClosure() { + *this = ::std::move(from); + } + + inline CompiledWorkflowClosure& operator=(CompiledWorkflowClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CompiledWorkflowClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompiledWorkflowClosure* internal_default_instance() { + return reinterpret_cast( + &_CompiledWorkflowClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(CompiledWorkflowClosure* other); + friend void swap(CompiledWorkflowClosure& a, CompiledWorkflowClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CompiledWorkflowClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + CompiledWorkflowClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CompiledWorkflowClosure& from); + void MergeFrom(const CompiledWorkflowClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CompiledWorkflowClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + int sub_workflows_size() const; + void clear_sub_workflows(); + static const int kSubWorkflowsFieldNumber = 2; + ::flyteidl::core::CompiledWorkflow* mutable_sub_workflows(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >* + mutable_sub_workflows(); + const ::flyteidl::core::CompiledWorkflow& sub_workflows(int index) const; + ::flyteidl::core::CompiledWorkflow* add_sub_workflows(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >& + sub_workflows() const; + + // repeated .flyteidl.core.CompiledTask tasks = 3; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 3; + ::flyteidl::core::CompiledTask* mutable_tasks(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >* + mutable_tasks(); + const ::flyteidl::core::CompiledTask& tasks(int index) const; + ::flyteidl::core::CompiledTask* add_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >& + tasks() const; + + // .flyteidl.core.CompiledWorkflow primary = 1; + bool has_primary() const; + void clear_primary(); + static const int kPrimaryFieldNumber = 1; + const ::flyteidl::core::CompiledWorkflow& primary() const; + ::flyteidl::core::CompiledWorkflow* release_primary(); + ::flyteidl::core::CompiledWorkflow* mutable_primary(); + void set_allocated_primary(::flyteidl::core::CompiledWorkflow* primary); + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow > sub_workflows_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask > tasks_; + ::flyteidl::core::CompiledWorkflow* primary_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ConnectionSet_IdList + +// repeated string ids = 1; +inline int ConnectionSet_IdList::ids_size() const { + return ids_.size(); +} +inline void ConnectionSet_IdList::clear_ids() { + ids_.Clear(); +} +inline const ::std::string& ConnectionSet_IdList::ids(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.ConnectionSet.IdList.ids) + return ids_.Get(index); +} +inline ::std::string* ConnectionSet_IdList::mutable_ids(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.ConnectionSet.IdList.ids) + return ids_.Mutable(index); +} +inline void ConnectionSet_IdList::set_ids(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.ConnectionSet.IdList.ids) + ids_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void ConnectionSet_IdList::set_ids(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.ConnectionSet.IdList.ids) + ids_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void ConnectionSet_IdList::set_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ConnectionSet.IdList.ids) +} +inline void ConnectionSet_IdList::set_ids(int index, const char* value, size_t size) { + ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ConnectionSet.IdList.ids) +} +inline ::std::string* ConnectionSet_IdList::add_ids() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.ConnectionSet.IdList.ids) + return ids_.Add(); +} +inline void ConnectionSet_IdList::add_ids(const ::std::string& value) { + ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.ConnectionSet.IdList.ids) +} +#if LANG_CXX11 +inline void ConnectionSet_IdList::add_ids(::std::string&& value) { + ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.ConnectionSet.IdList.ids) +} +#endif +inline void ConnectionSet_IdList::add_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.ConnectionSet.IdList.ids) +} +inline void ConnectionSet_IdList::add_ids(const char* value, size_t size) { + ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.ConnectionSet.IdList.ids) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +ConnectionSet_IdList::ids() const { + // @@protoc_insertion_point(field_list:flyteidl.core.ConnectionSet.IdList.ids) + return ids_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +ConnectionSet_IdList::mutable_ids() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.ConnectionSet.IdList.ids) + return &ids_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ConnectionSet + +// map downstream = 7; +inline int ConnectionSet::downstream_size() const { + return downstream_.size(); +} +inline void ConnectionSet::clear_downstream() { + downstream_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& +ConnectionSet::downstream() const { + // @@protoc_insertion_point(field_map:flyteidl.core.ConnectionSet.downstream) + return downstream_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* +ConnectionSet::mutable_downstream() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ConnectionSet.downstream) + return downstream_.MutableMap(); +} + +// map upstream = 8; +inline int ConnectionSet::upstream_size() const { + return upstream_.size(); +} +inline void ConnectionSet::clear_upstream() { + upstream_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& +ConnectionSet::upstream() const { + // @@protoc_insertion_point(field_map:flyteidl.core.ConnectionSet.upstream) + return upstream_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* +ConnectionSet::mutable_upstream() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ConnectionSet.upstream) + return upstream_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// CompiledWorkflow + +// .flyteidl.core.WorkflowTemplate template = 1; +inline bool CompiledWorkflow::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::WorkflowTemplate& CompiledWorkflow::template_() const { + const ::flyteidl::core::WorkflowTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflow.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowTemplate_default_instance_); +} +inline ::flyteidl::core::WorkflowTemplate* CompiledWorkflow::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflow.template) + + ::flyteidl::core::WorkflowTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowTemplate* CompiledWorkflow::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflow.template) + return template__; +} +inline void CompiledWorkflow::set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflow.template) +} + +// .flyteidl.core.ConnectionSet connections = 2; +inline bool CompiledWorkflow::has_connections() const { + return this != internal_default_instance() && connections_ != nullptr; +} +inline void CompiledWorkflow::clear_connections() { + if (GetArenaNoVirtual() == nullptr && connections_ != nullptr) { + delete connections_; + } + connections_ = nullptr; +} +inline const ::flyteidl::core::ConnectionSet& CompiledWorkflow::connections() const { + const ::flyteidl::core::ConnectionSet* p = connections_; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflow.connections) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_ConnectionSet_default_instance_); +} +inline ::flyteidl::core::ConnectionSet* CompiledWorkflow::release_connections() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflow.connections) + + ::flyteidl::core::ConnectionSet* temp = connections_; + connections_ = nullptr; + return temp; +} +inline ::flyteidl::core::ConnectionSet* CompiledWorkflow::mutable_connections() { + + if (connections_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::ConnectionSet>(GetArenaNoVirtual()); + connections_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflow.connections) + return connections_; +} +inline void CompiledWorkflow::set_allocated_connections(::flyteidl::core::ConnectionSet* connections) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete connections_; + } + if (connections) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + connections = ::google::protobuf::internal::GetOwnedMessage( + message_arena, connections, submessage_arena); + } + + } else { + + } + connections_ = connections; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflow.connections) +} + +// ------------------------------------------------------------------- + +// CompiledTask + +// .flyteidl.core.TaskTemplate template = 1; +inline bool CompiledTask::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::TaskTemplate& CompiledTask::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledTask.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* CompiledTask::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledTask.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskTemplate* CompiledTask::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledTask.template) + return template__; +} +inline void CompiledTask::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledTask.template) +} + +// ------------------------------------------------------------------- + +// CompiledWorkflowClosure + +// .flyteidl.core.CompiledWorkflow primary = 1; +inline bool CompiledWorkflowClosure::has_primary() const { + return this != internal_default_instance() && primary_ != nullptr; +} +inline void CompiledWorkflowClosure::clear_primary() { + if (GetArenaNoVirtual() == nullptr && primary_ != nullptr) { + delete primary_; + } + primary_ = nullptr; +} +inline const ::flyteidl::core::CompiledWorkflow& CompiledWorkflowClosure::primary() const { + const ::flyteidl::core::CompiledWorkflow* p = primary_; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.primary) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledWorkflow_default_instance_); +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::release_primary() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflowClosure.primary) + + ::flyteidl::core::CompiledWorkflow* temp = primary_; + primary_ = nullptr; + return temp; +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::mutable_primary() { + + if (primary_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflow>(GetArenaNoVirtual()); + primary_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.primary) + return primary_; +} +inline void CompiledWorkflowClosure::set_allocated_primary(::flyteidl::core::CompiledWorkflow* primary) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete primary_; + } + if (primary) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + primary = ::google::protobuf::internal::GetOwnedMessage( + message_arena, primary, submessage_arena); + } + + } else { + + } + primary_ = primary; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflowClosure.primary) +} + +// repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; +inline int CompiledWorkflowClosure::sub_workflows_size() const { + return sub_workflows_.size(); +} +inline void CompiledWorkflowClosure::clear_sub_workflows() { + sub_workflows_.Clear(); +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::mutable_sub_workflows(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >* +CompiledWorkflowClosure::mutable_sub_workflows() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return &sub_workflows_; +} +inline const ::flyteidl::core::CompiledWorkflow& CompiledWorkflowClosure::sub_workflows(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_.Get(index); +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::add_sub_workflows() { + // @@protoc_insertion_point(field_add:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >& +CompiledWorkflowClosure::sub_workflows() const { + // @@protoc_insertion_point(field_list:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_; +} + +// repeated .flyteidl.core.CompiledTask tasks = 3; +inline int CompiledWorkflowClosure::tasks_size() const { + return tasks_.size(); +} +inline void CompiledWorkflowClosure::clear_tasks() { + tasks_.Clear(); +} +inline ::flyteidl::core::CompiledTask* CompiledWorkflowClosure::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >* +CompiledWorkflowClosure::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.CompiledWorkflowClosure.tasks) + return &tasks_; +} +inline const ::flyteidl::core::CompiledTask& CompiledWorkflowClosure::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::core::CompiledTask* CompiledWorkflowClosure::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >& +CompiledWorkflowClosure::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fcompiler_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc new file mode 100644 index 0000000000..b549057d69 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/condition.proto + +#include "flyteidl/core/condition.pb.h" +#include "flyteidl/core/condition.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h new file mode 100644 index 0000000000..d0c0d08f32 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/condition.proto +#ifndef GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED + +#include "flyteidl/core/condition.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc new file mode 100644 index 0000000000..11d6e5c619 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc @@ -0,0 +1,1995 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +#include "flyteidl/core/condition.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +namespace flyteidl { +namespace core { +class ComparisonExpressionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ComparisonExpression_default_instance_; +class OperandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Primitive* primitive_; + ::google::protobuf::internal::ArenaStringPtr var_; + const ::flyteidl::core::Scalar* scalar_; +} _Operand_default_instance_; +class BooleanExpressionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::ConjunctionExpression* conjunction_; + const ::flyteidl::core::ComparisonExpression* comparison_; +} _BooleanExpression_default_instance_; +class ConjunctionExpressionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ConjunctionExpression_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsComparisonExpression_flyteidl_2fcore_2fcondition_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ComparisonExpression_default_instance_; + new (ptr) ::flyteidl::core::ComparisonExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ComparisonExpression::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComparisonExpression_flyteidl_2fcore_2fcondition_2eproto}, { + &scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base,}}; + +static void InitDefaultsOperand_flyteidl_2fcore_2fcondition_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Operand_default_instance_; + new (ptr) ::flyteidl::core::Operand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Operand::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsOperand_flyteidl_2fcore_2fcondition_2eproto}, { + &scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsBooleanExpression_flyteidl_2fcore_2fcondition_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_BooleanExpression_default_instance_; + new (ptr) ::flyteidl::core::BooleanExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_ConjunctionExpression_default_instance_; + new (ptr) ::flyteidl::core::ConjunctionExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BooleanExpression::InitAsDefaultInstance(); + ::flyteidl::core::ConjunctionExpression::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBooleanExpression_flyteidl_2fcore_2fcondition_2eproto}, { + &scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fcondition_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[4]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fcondition_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fcondition_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fcondition_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, operator__), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, left_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, right_value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Operand, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Operand, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::OperandDefaultTypeInternal, primitive_), + offsetof(::flyteidl::core::OperandDefaultTypeInternal, var_), + offsetof(::flyteidl::core::OperandDefaultTypeInternal, scalar_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Operand, val_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BooleanExpression, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BooleanExpression, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::BooleanExpressionDefaultTypeInternal, conjunction_), + offsetof(::flyteidl::core::BooleanExpressionDefaultTypeInternal, comparison_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BooleanExpression, expr_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, operator__), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, left_expression_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, right_expression_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::ComparisonExpression)}, + { 8, -1, sizeof(::flyteidl::core::Operand)}, + { 17, -1, sizeof(::flyteidl::core::BooleanExpression)}, + { 25, -1, sizeof(::flyteidl::core::ConjunctionExpression)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_ComparisonExpression_default_instance_), + reinterpret_cast(&::flyteidl::core::_Operand_default_instance_), + reinterpret_cast(&::flyteidl::core::_BooleanExpression_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConjunctionExpression_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fcondition_2eproto, "flyteidl/core/condition.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fcondition_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fcondition_2eproto, 4, file_level_enum_descriptors_flyteidl_2fcore_2fcondition_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fcondition_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fcondition_2eproto[] = + "\n\035flyteidl/core/condition.proto\022\rflyteid" + "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + ",.flyteidl.core.ComparisonExpression.Ope" + "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"{\n" + "\007Operand\0221\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + "ore.PrimitiveB\002\030\001H\000\022\r\n\003var\030\002 \001(\tH\000\022\'\n\006sc" + "alar\030\003 \001(\0132\025.flyteidl.core.ScalarH\000B\005\n\003v" + "al\"\223\001\n\021BooleanExpression\022;\n\013conjunction\030" + "\001 \001(\0132$.flyteidl.core.ConjunctionExpress" + "ionH\000\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.cor" + "e.ComparisonExpressionH\000B\006\n\004expr\"\372\001\n\025Con" + "junctionExpression\022F\n\010operator\030\001 \001(\01624.f" + "lyteidl.core.ConjunctionExpression.Logic" + "alOperator\0229\n\017left_expression\030\002 \001(\0132 .fl" + "yteidl.core.BooleanExpression\022:\n\020right_e" + "xpression\030\003 \001(\0132 .flyteidl.core.BooleanE" + "xpression\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n" + "\002OR\020\001B6Z4github.com/flyteorg/flyteidl/ge" + "n/pb-go/flyteidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fcondition_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fcondition_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fcondition_2eproto, + "flyteidl/core/condition.proto", &assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto, 909, +}; + +void AddDescriptors_flyteidl_2fcore_2fcondition_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fcondition_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fcondition_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fcondition_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* ComparisonExpression_Operator_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fcondition_2eproto[0]; +} +bool ComparisonExpression_Operator_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ComparisonExpression_Operator ComparisonExpression::EQ; +const ComparisonExpression_Operator ComparisonExpression::NEQ; +const ComparisonExpression_Operator ComparisonExpression::GT; +const ComparisonExpression_Operator ComparisonExpression::GTE; +const ComparisonExpression_Operator ComparisonExpression::LT; +const ComparisonExpression_Operator ComparisonExpression::LTE; +const ComparisonExpression_Operator ComparisonExpression::Operator_MIN; +const ComparisonExpression_Operator ComparisonExpression::Operator_MAX; +const int ComparisonExpression::Operator_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* ConjunctionExpression_LogicalOperator_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fcondition_2eproto[1]; +} +bool ConjunctionExpression_LogicalOperator_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ConjunctionExpression_LogicalOperator ConjunctionExpression::AND; +const ConjunctionExpression_LogicalOperator ConjunctionExpression::OR; +const ConjunctionExpression_LogicalOperator ConjunctionExpression::LogicalOperator_MIN; +const ConjunctionExpression_LogicalOperator ConjunctionExpression::LogicalOperator_MAX; +const int ConjunctionExpression::LogicalOperator_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void ComparisonExpression::InitAsDefaultInstance() { + ::flyteidl::core::_ComparisonExpression_default_instance_._instance.get_mutable()->left_value_ = const_cast< ::flyteidl::core::Operand*>( + ::flyteidl::core::Operand::internal_default_instance()); + ::flyteidl::core::_ComparisonExpression_default_instance_._instance.get_mutable()->right_value_ = const_cast< ::flyteidl::core::Operand*>( + ::flyteidl::core::Operand::internal_default_instance()); +} +class ComparisonExpression::HasBitSetters { + public: + static const ::flyteidl::core::Operand& left_value(const ComparisonExpression* msg); + static const ::flyteidl::core::Operand& right_value(const ComparisonExpression* msg); +}; + +const ::flyteidl::core::Operand& +ComparisonExpression::HasBitSetters::left_value(const ComparisonExpression* msg) { + return *msg->left_value_; +} +const ::flyteidl::core::Operand& +ComparisonExpression::HasBitSetters::right_value(const ComparisonExpression* msg) { + return *msg->right_value_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ComparisonExpression::kOperatorFieldNumber; +const int ComparisonExpression::kLeftValueFieldNumber; +const int ComparisonExpression::kRightValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ComparisonExpression::ComparisonExpression() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ComparisonExpression) +} +ComparisonExpression::ComparisonExpression(const ComparisonExpression& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_left_value()) { + left_value_ = new ::flyteidl::core::Operand(*from.left_value_); + } else { + left_value_ = nullptr; + } + if (from.has_right_value()) { + right_value_ = new ::flyteidl::core::Operand(*from.right_value_); + } else { + right_value_ = nullptr; + } + operator__ = from.operator__; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ComparisonExpression) +} + +void ComparisonExpression::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base); + ::memset(&left_value_, 0, static_cast( + reinterpret_cast(&operator__) - + reinterpret_cast(&left_value_)) + sizeof(operator__)); +} + +ComparisonExpression::~ComparisonExpression() { + // @@protoc_insertion_point(destructor:flyteidl.core.ComparisonExpression) + SharedDtor(); +} + +void ComparisonExpression::SharedDtor() { + if (this != internal_default_instance()) delete left_value_; + if (this != internal_default_instance()) delete right_value_; +} + +void ComparisonExpression::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ComparisonExpression& ComparisonExpression::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base); + return *internal_default_instance(); +} + + +void ComparisonExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ComparisonExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && left_value_ != nullptr) { + delete left_value_; + } + left_value_ = nullptr; + if (GetArenaNoVirtual() == nullptr && right_value_ != nullptr) { + delete right_value_; + } + right_value_ = nullptr; + operator__ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ComparisonExpression::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_operator_(static_cast<::flyteidl::core::ComparisonExpression_Operator>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.Operand left_value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Operand::_InternalParse; + object = msg->mutable_left_value(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Operand right_value = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Operand::_InternalParse; + object = msg->mutable_right_value(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ComparisonExpression::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ComparisonExpression) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_operator_(static_cast< ::flyteidl::core::ComparisonExpression_Operator >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Operand left_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_left_value())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Operand right_value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_right_value())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ComparisonExpression) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ComparisonExpression) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ComparisonExpression::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ComparisonExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + if (this->operator_() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->operator_(), output); + } + + // .flyteidl.core.Operand left_value = 2; + if (this->has_left_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::left_value(this), output); + } + + // .flyteidl.core.Operand right_value = 3; + if (this->has_right_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::right_value(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ComparisonExpression) +} + +::google::protobuf::uint8* ComparisonExpression::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ComparisonExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + if (this->operator_() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->operator_(), target); + } + + // .flyteidl.core.Operand left_value = 2; + if (this->has_left_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::left_value(this), target); + } + + // .flyteidl.core.Operand right_value = 3; + if (this->has_right_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::right_value(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ComparisonExpression) + return target; +} + +size_t ComparisonExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ComparisonExpression) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Operand left_value = 2; + if (this->has_left_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *left_value_); + } + + // .flyteidl.core.Operand right_value = 3; + if (this->has_right_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *right_value_); + } + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + if (this->operator_() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ComparisonExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ComparisonExpression) + GOOGLE_DCHECK_NE(&from, this); + const ComparisonExpression* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ComparisonExpression) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ComparisonExpression) + MergeFrom(*source); + } +} + +void ComparisonExpression::MergeFrom(const ComparisonExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ComparisonExpression) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_left_value()) { + mutable_left_value()->::flyteidl::core::Operand::MergeFrom(from.left_value()); + } + if (from.has_right_value()) { + mutable_right_value()->::flyteidl::core::Operand::MergeFrom(from.right_value()); + } + if (from.operator_() != 0) { + set_operator_(from.operator_()); + } +} + +void ComparisonExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ComparisonExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ComparisonExpression::CopyFrom(const ComparisonExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ComparisonExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ComparisonExpression::IsInitialized() const { + return true; +} + +void ComparisonExpression::Swap(ComparisonExpression* other) { + if (other == this) return; + InternalSwap(other); +} +void ComparisonExpression::InternalSwap(ComparisonExpression* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(left_value_, other->left_value_); + swap(right_value_, other->right_value_); + swap(operator__, other->operator__); +} + +::google::protobuf::Metadata ComparisonExpression::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Operand::InitAsDefaultInstance() { + ::flyteidl::core::_Operand_default_instance_.primitive_ = const_cast< ::flyteidl::core::Primitive*>( + ::flyteidl::core::Primitive::internal_default_instance()); + ::flyteidl::core::_Operand_default_instance_.var_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::core::_Operand_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( + ::flyteidl::core::Scalar::internal_default_instance()); +} +class Operand::HasBitSetters { + public: + static const ::flyteidl::core::Primitive& primitive(const Operand* msg); + static const ::flyteidl::core::Scalar& scalar(const Operand* msg); +}; + +const ::flyteidl::core::Primitive& +Operand::HasBitSetters::primitive(const Operand* msg) { + return *msg->val_.primitive_; +} +const ::flyteidl::core::Scalar& +Operand::HasBitSetters::scalar(const Operand* msg) { + return *msg->val_.scalar_; +} +void Operand::set_allocated_primitive(::flyteidl::core::Primitive* primitive) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_val(); + if (primitive) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + primitive = ::google::protobuf::internal::GetOwnedMessage( + message_arena, primitive, submessage_arena); + } + set_has_primitive(); + val_.primitive_ = primitive; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.primitive) +} +void Operand::clear_primitive() { + if (has_primitive()) { + delete val_.primitive_; + clear_has_val(); + } +} +void Operand::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_val(); + if (scalar) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + scalar = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scalar, submessage_arena); + } + set_has_scalar(); + val_.scalar_ = scalar; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.scalar) +} +void Operand::clear_scalar() { + if (has_scalar()) { + delete val_.scalar_; + clear_has_val(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Operand::kPrimitiveFieldNumber; +const int Operand::kVarFieldNumber; +const int Operand::kScalarFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Operand::Operand() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Operand) +} +Operand::Operand(const Operand& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_val(); + switch (from.val_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kVar: { + set_var(from.var()); + break; + } + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case VAL_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Operand) +} + +void Operand::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base); + clear_has_val(); +} + +Operand::~Operand() { + // @@protoc_insertion_point(destructor:flyteidl.core.Operand) + SharedDtor(); +} + +void Operand::SharedDtor() { + if (has_val()) { + clear_val(); + } +} + +void Operand::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Operand& Operand::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base); + return *internal_default_instance(); +} + + +void Operand::clear_val() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Operand) + switch (val_case()) { + case kPrimitive: { + delete val_.primitive_; + break; + } + case kVar: { + val_.var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kScalar: { + delete val_.scalar_; + break; + } + case VAL_NOT_SET: { + break; + } + } + _oneof_case_[0] = VAL_NOT_SET; +} + + +void Operand::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Operand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_val(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Operand::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Primitive::_InternalParse; + object = msg->mutable_primitive(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string var = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Operand.var"); + object = msg->mutable_var(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Scalar scalar = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Scalar::_InternalParse; + object = msg->mutable_scalar(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Operand::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Operand) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_primitive())); + } else { + goto handle_unusual; + } + break; + } + + // string var = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Operand.var")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Scalar scalar = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scalar())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Operand) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Operand) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Operand::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Operand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + if (has_primitive()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::primitive(this), output); + } + + // string var = 2; + if (has_var()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Operand.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->var(), output); + } + + // .flyteidl.core.Scalar scalar = 3; + if (has_scalar()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::scalar(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Operand) +} + +::google::protobuf::uint8* Operand::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Operand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + if (has_primitive()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::primitive(this), target); + } + + // string var = 2; + if (has_var()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Operand.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->var(), target); + } + + // .flyteidl.core.Scalar scalar = 3; + if (has_scalar()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::scalar(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Operand) + return target; +} + +size_t Operand::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Operand) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (val_case()) { + // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + case kPrimitive: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *val_.primitive_); + break; + } + // string var = 2; + case kVar: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + break; + } + // .flyteidl.core.Scalar scalar = 3; + case kScalar: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *val_.scalar_); + break; + } + case VAL_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Operand::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Operand) + GOOGLE_DCHECK_NE(&from, this); + const Operand* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Operand) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Operand) + MergeFrom(*source); + } +} + +void Operand::MergeFrom(const Operand& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Operand) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.val_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kVar: { + set_var(from.var()); + break; + } + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case VAL_NOT_SET: { + break; + } + } +} + +void Operand::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Operand) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Operand::CopyFrom(const Operand& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Operand) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Operand::IsInitialized() const { + return true; +} + +void Operand::Swap(Operand* other) { + if (other == this) return; + InternalSwap(other); +} +void Operand::InternalSwap(Operand* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(val_, other->val_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Operand::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void BooleanExpression::InitAsDefaultInstance() { + ::flyteidl::core::_BooleanExpression_default_instance_.conjunction_ = const_cast< ::flyteidl::core::ConjunctionExpression*>( + ::flyteidl::core::ConjunctionExpression::internal_default_instance()); + ::flyteidl::core::_BooleanExpression_default_instance_.comparison_ = const_cast< ::flyteidl::core::ComparisonExpression*>( + ::flyteidl::core::ComparisonExpression::internal_default_instance()); +} +class BooleanExpression::HasBitSetters { + public: + static const ::flyteidl::core::ConjunctionExpression& conjunction(const BooleanExpression* msg); + static const ::flyteidl::core::ComparisonExpression& comparison(const BooleanExpression* msg); +}; + +const ::flyteidl::core::ConjunctionExpression& +BooleanExpression::HasBitSetters::conjunction(const BooleanExpression* msg) { + return *msg->expr_.conjunction_; +} +const ::flyteidl::core::ComparisonExpression& +BooleanExpression::HasBitSetters::comparison(const BooleanExpression* msg) { + return *msg->expr_.comparison_; +} +void BooleanExpression::set_allocated_conjunction(::flyteidl::core::ConjunctionExpression* conjunction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_expr(); + if (conjunction) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + conjunction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, conjunction, submessage_arena); + } + set_has_conjunction(); + expr_.conjunction_ = conjunction; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BooleanExpression.conjunction) +} +void BooleanExpression::set_allocated_comparison(::flyteidl::core::ComparisonExpression* comparison) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_expr(); + if (comparison) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + comparison = ::google::protobuf::internal::GetOwnedMessage( + message_arena, comparison, submessage_arena); + } + set_has_comparison(); + expr_.comparison_ = comparison; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BooleanExpression.comparison) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BooleanExpression::kConjunctionFieldNumber; +const int BooleanExpression::kComparisonFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BooleanExpression::BooleanExpression() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BooleanExpression) +} +BooleanExpression::BooleanExpression(const BooleanExpression& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_expr(); + switch (from.expr_case()) { + case kConjunction: { + mutable_conjunction()->::flyteidl::core::ConjunctionExpression::MergeFrom(from.conjunction()); + break; + } + case kComparison: { + mutable_comparison()->::flyteidl::core::ComparisonExpression::MergeFrom(from.comparison()); + break; + } + case EXPR_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BooleanExpression) +} + +void BooleanExpression::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); + clear_has_expr(); +} + +BooleanExpression::~BooleanExpression() { + // @@protoc_insertion_point(destructor:flyteidl.core.BooleanExpression) + SharedDtor(); +} + +void BooleanExpression::SharedDtor() { + if (has_expr()) { + clear_expr(); + } +} + +void BooleanExpression::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BooleanExpression& BooleanExpression::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); + return *internal_default_instance(); +} + + +void BooleanExpression::clear_expr() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.BooleanExpression) + switch (expr_case()) { + case kConjunction: { + delete expr_.conjunction_; + break; + } + case kComparison: { + delete expr_.comparison_; + break; + } + case EXPR_NOT_SET: { + break; + } + } + _oneof_case_[0] = EXPR_NOT_SET; +} + + +void BooleanExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BooleanExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_expr(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BooleanExpression::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ConjunctionExpression conjunction = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ConjunctionExpression::_InternalParse; + object = msg->mutable_conjunction(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.ComparisonExpression comparison = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ComparisonExpression::_InternalParse; + object = msg->mutable_comparison(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BooleanExpression::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BooleanExpression) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ConjunctionExpression conjunction = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_conjunction())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ComparisonExpression comparison = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_comparison())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.BooleanExpression) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BooleanExpression) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BooleanExpression::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BooleanExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression conjunction = 1; + if (has_conjunction()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::conjunction(this), output); + } + + // .flyteidl.core.ComparisonExpression comparison = 2; + if (has_comparison()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::comparison(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BooleanExpression) +} + +::google::protobuf::uint8* BooleanExpression::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BooleanExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression conjunction = 1; + if (has_conjunction()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::conjunction(this), target); + } + + // .flyteidl.core.ComparisonExpression comparison = 2; + if (has_comparison()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::comparison(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BooleanExpression) + return target; +} + +size_t BooleanExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BooleanExpression) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (expr_case()) { + // .flyteidl.core.ConjunctionExpression conjunction = 1; + case kConjunction: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expr_.conjunction_); + break; + } + // .flyteidl.core.ComparisonExpression comparison = 2; + case kComparison: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expr_.comparison_); + break; + } + case EXPR_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BooleanExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BooleanExpression) + GOOGLE_DCHECK_NE(&from, this); + const BooleanExpression* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BooleanExpression) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BooleanExpression) + MergeFrom(*source); + } +} + +void BooleanExpression::MergeFrom(const BooleanExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BooleanExpression) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.expr_case()) { + case kConjunction: { + mutable_conjunction()->::flyteidl::core::ConjunctionExpression::MergeFrom(from.conjunction()); + break; + } + case kComparison: { + mutable_comparison()->::flyteidl::core::ComparisonExpression::MergeFrom(from.comparison()); + break; + } + case EXPR_NOT_SET: { + break; + } + } +} + +void BooleanExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BooleanExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BooleanExpression::CopyFrom(const BooleanExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BooleanExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BooleanExpression::IsInitialized() const { + return true; +} + +void BooleanExpression::Swap(BooleanExpression* other) { + if (other == this) return; + InternalSwap(other); +} +void BooleanExpression::InternalSwap(BooleanExpression* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(expr_, other->expr_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata BooleanExpression::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ConjunctionExpression::InitAsDefaultInstance() { + ::flyteidl::core::_ConjunctionExpression_default_instance_._instance.get_mutable()->left_expression_ = const_cast< ::flyteidl::core::BooleanExpression*>( + ::flyteidl::core::BooleanExpression::internal_default_instance()); + ::flyteidl::core::_ConjunctionExpression_default_instance_._instance.get_mutable()->right_expression_ = const_cast< ::flyteidl::core::BooleanExpression*>( + ::flyteidl::core::BooleanExpression::internal_default_instance()); +} +class ConjunctionExpression::HasBitSetters { + public: + static const ::flyteidl::core::BooleanExpression& left_expression(const ConjunctionExpression* msg); + static const ::flyteidl::core::BooleanExpression& right_expression(const ConjunctionExpression* msg); +}; + +const ::flyteidl::core::BooleanExpression& +ConjunctionExpression::HasBitSetters::left_expression(const ConjunctionExpression* msg) { + return *msg->left_expression_; +} +const ::flyteidl::core::BooleanExpression& +ConjunctionExpression::HasBitSetters::right_expression(const ConjunctionExpression* msg) { + return *msg->right_expression_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConjunctionExpression::kOperatorFieldNumber; +const int ConjunctionExpression::kLeftExpressionFieldNumber; +const int ConjunctionExpression::kRightExpressionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConjunctionExpression::ConjunctionExpression() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ConjunctionExpression) +} +ConjunctionExpression::ConjunctionExpression(const ConjunctionExpression& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_left_expression()) { + left_expression_ = new ::flyteidl::core::BooleanExpression(*from.left_expression_); + } else { + left_expression_ = nullptr; + } + if (from.has_right_expression()) { + right_expression_ = new ::flyteidl::core::BooleanExpression(*from.right_expression_); + } else { + right_expression_ = nullptr; + } + operator__ = from.operator__; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConjunctionExpression) +} + +void ConjunctionExpression::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); + ::memset(&left_expression_, 0, static_cast( + reinterpret_cast(&operator__) - + reinterpret_cast(&left_expression_)) + sizeof(operator__)); +} + +ConjunctionExpression::~ConjunctionExpression() { + // @@protoc_insertion_point(destructor:flyteidl.core.ConjunctionExpression) + SharedDtor(); +} + +void ConjunctionExpression::SharedDtor() { + if (this != internal_default_instance()) delete left_expression_; + if (this != internal_default_instance()) delete right_expression_; +} + +void ConjunctionExpression::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ConjunctionExpression& ConjunctionExpression::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); + return *internal_default_instance(); +} + + +void ConjunctionExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConjunctionExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && left_expression_ != nullptr) { + delete left_expression_; + } + left_expression_ = nullptr; + if (GetArenaNoVirtual() == nullptr && right_expression_ != nullptr) { + delete right_expression_; + } + right_expression_ = nullptr; + operator__ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ConjunctionExpression::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_operator_(static_cast<::flyteidl::core::ConjunctionExpression_LogicalOperator>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.BooleanExpression left_expression = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BooleanExpression::_InternalParse; + object = msg->mutable_left_expression(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.BooleanExpression right_expression = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BooleanExpression::_InternalParse; + object = msg->mutable_right_expression(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ConjunctionExpression::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ConjunctionExpression) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_operator_(static_cast< ::flyteidl::core::ConjunctionExpression_LogicalOperator >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BooleanExpression left_expression = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_left_expression())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_right_expression())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ConjunctionExpression) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ConjunctionExpression) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ConjunctionExpression::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ConjunctionExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + if (this->operator_() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->operator_(), output); + } + + // .flyteidl.core.BooleanExpression left_expression = 2; + if (this->has_left_expression()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::left_expression(this), output); + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + if (this->has_right_expression()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::right_expression(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ConjunctionExpression) +} + +::google::protobuf::uint8* ConjunctionExpression::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConjunctionExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + if (this->operator_() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->operator_(), target); + } + + // .flyteidl.core.BooleanExpression left_expression = 2; + if (this->has_left_expression()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::left_expression(this), target); + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + if (this->has_right_expression()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::right_expression(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ConjunctionExpression) + return target; +} + +size_t ConjunctionExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConjunctionExpression) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.BooleanExpression left_expression = 2; + if (this->has_left_expression()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *left_expression_); + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + if (this->has_right_expression()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *right_expression_); + } + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + if (this->operator_() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ConjunctionExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConjunctionExpression) + GOOGLE_DCHECK_NE(&from, this); + const ConjunctionExpression* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConjunctionExpression) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConjunctionExpression) + MergeFrom(*source); + } +} + +void ConjunctionExpression::MergeFrom(const ConjunctionExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConjunctionExpression) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_left_expression()) { + mutable_left_expression()->::flyteidl::core::BooleanExpression::MergeFrom(from.left_expression()); + } + if (from.has_right_expression()) { + mutable_right_expression()->::flyteidl::core::BooleanExpression::MergeFrom(from.right_expression()); + } + if (from.operator_() != 0) { + set_operator_(from.operator_()); + } +} + +void ConjunctionExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConjunctionExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConjunctionExpression::CopyFrom(const ConjunctionExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConjunctionExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConjunctionExpression::IsInitialized() const { + return true; +} + +void ConjunctionExpression::Swap(ConjunctionExpression* other) { + if (other == this) return; + InternalSwap(other); +} +void ConjunctionExpression::InternalSwap(ConjunctionExpression* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(left_expression_, other->left_expression_); + swap(right_expression_, other->right_expression_); + swap(operator__, other->operator__); +} + +::google::protobuf::Metadata ConjunctionExpression::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::ComparisonExpression* Arena::CreateMaybeMessage< ::flyteidl::core::ComparisonExpression >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ComparisonExpression >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Operand* Arena::CreateMaybeMessage< ::flyteidl::core::Operand >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Operand >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BooleanExpression* Arena::CreateMaybeMessage< ::flyteidl::core::BooleanExpression >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BooleanExpression >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ConjunctionExpression* Arena::CreateMaybeMessage< ::flyteidl::core::ConjunctionExpression >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ConjunctionExpression >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h new file mode 100644 index 0000000000..d90d75750e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h @@ -0,0 +1,1308 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fcondition_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fcondition_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/literals.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fcondition_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[4] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fcondition_2eproto(); +namespace flyteidl { +namespace core { +class BooleanExpression; +class BooleanExpressionDefaultTypeInternal; +extern BooleanExpressionDefaultTypeInternal _BooleanExpression_default_instance_; +class ComparisonExpression; +class ComparisonExpressionDefaultTypeInternal; +extern ComparisonExpressionDefaultTypeInternal _ComparisonExpression_default_instance_; +class ConjunctionExpression; +class ConjunctionExpressionDefaultTypeInternal; +extern ConjunctionExpressionDefaultTypeInternal _ConjunctionExpression_default_instance_; +class Operand; +class OperandDefaultTypeInternal; +extern OperandDefaultTypeInternal _Operand_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::BooleanExpression* Arena::CreateMaybeMessage<::flyteidl::core::BooleanExpression>(Arena*); +template<> ::flyteidl::core::ComparisonExpression* Arena::CreateMaybeMessage<::flyteidl::core::ComparisonExpression>(Arena*); +template<> ::flyteidl::core::ConjunctionExpression* Arena::CreateMaybeMessage<::flyteidl::core::ConjunctionExpression>(Arena*); +template<> ::flyteidl::core::Operand* Arena::CreateMaybeMessage<::flyteidl::core::Operand>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum ComparisonExpression_Operator { + ComparisonExpression_Operator_EQ = 0, + ComparisonExpression_Operator_NEQ = 1, + ComparisonExpression_Operator_GT = 2, + ComparisonExpression_Operator_GTE = 3, + ComparisonExpression_Operator_LT = 4, + ComparisonExpression_Operator_LTE = 5, + ComparisonExpression_Operator_ComparisonExpression_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ComparisonExpression_Operator_ComparisonExpression_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ComparisonExpression_Operator_IsValid(int value); +const ComparisonExpression_Operator ComparisonExpression_Operator_Operator_MIN = ComparisonExpression_Operator_EQ; +const ComparisonExpression_Operator ComparisonExpression_Operator_Operator_MAX = ComparisonExpression_Operator_LTE; +const int ComparisonExpression_Operator_Operator_ARRAYSIZE = ComparisonExpression_Operator_Operator_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ComparisonExpression_Operator_descriptor(); +inline const ::std::string& ComparisonExpression_Operator_Name(ComparisonExpression_Operator value) { + return ::google::protobuf::internal::NameOfEnum( + ComparisonExpression_Operator_descriptor(), value); +} +inline bool ComparisonExpression_Operator_Parse( + const ::std::string& name, ComparisonExpression_Operator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ComparisonExpression_Operator_descriptor(), name, value); +} +enum ConjunctionExpression_LogicalOperator { + ConjunctionExpression_LogicalOperator_AND = 0, + ConjunctionExpression_LogicalOperator_OR = 1, + ConjunctionExpression_LogicalOperator_ConjunctionExpression_LogicalOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ConjunctionExpression_LogicalOperator_ConjunctionExpression_LogicalOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ConjunctionExpression_LogicalOperator_IsValid(int value); +const ConjunctionExpression_LogicalOperator ConjunctionExpression_LogicalOperator_LogicalOperator_MIN = ConjunctionExpression_LogicalOperator_AND; +const ConjunctionExpression_LogicalOperator ConjunctionExpression_LogicalOperator_LogicalOperator_MAX = ConjunctionExpression_LogicalOperator_OR; +const int ConjunctionExpression_LogicalOperator_LogicalOperator_ARRAYSIZE = ConjunctionExpression_LogicalOperator_LogicalOperator_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ConjunctionExpression_LogicalOperator_descriptor(); +inline const ::std::string& ConjunctionExpression_LogicalOperator_Name(ConjunctionExpression_LogicalOperator value) { + return ::google::protobuf::internal::NameOfEnum( + ConjunctionExpression_LogicalOperator_descriptor(), value); +} +inline bool ConjunctionExpression_LogicalOperator_Parse( + const ::std::string& name, ConjunctionExpression_LogicalOperator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ConjunctionExpression_LogicalOperator_descriptor(), name, value); +} +// =================================================================== + +class ComparisonExpression final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ComparisonExpression) */ { + public: + ComparisonExpression(); + virtual ~ComparisonExpression(); + + ComparisonExpression(const ComparisonExpression& from); + + inline ComparisonExpression& operator=(const ComparisonExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ComparisonExpression(ComparisonExpression&& from) noexcept + : ComparisonExpression() { + *this = ::std::move(from); + } + + inline ComparisonExpression& operator=(ComparisonExpression&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ComparisonExpression& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ComparisonExpression* internal_default_instance() { + return reinterpret_cast( + &_ComparisonExpression_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ComparisonExpression* other); + friend void swap(ComparisonExpression& a, ComparisonExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ComparisonExpression* New() const final { + return CreateMaybeMessage(nullptr); + } + + ComparisonExpression* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ComparisonExpression& from); + void MergeFrom(const ComparisonExpression& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ComparisonExpression* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ComparisonExpression_Operator Operator; + static const Operator EQ = + ComparisonExpression_Operator_EQ; + static const Operator NEQ = + ComparisonExpression_Operator_NEQ; + static const Operator GT = + ComparisonExpression_Operator_GT; + static const Operator GTE = + ComparisonExpression_Operator_GTE; + static const Operator LT = + ComparisonExpression_Operator_LT; + static const Operator LTE = + ComparisonExpression_Operator_LTE; + static inline bool Operator_IsValid(int value) { + return ComparisonExpression_Operator_IsValid(value); + } + static const Operator Operator_MIN = + ComparisonExpression_Operator_Operator_MIN; + static const Operator Operator_MAX = + ComparisonExpression_Operator_Operator_MAX; + static const int Operator_ARRAYSIZE = + ComparisonExpression_Operator_Operator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Operator_descriptor() { + return ComparisonExpression_Operator_descriptor(); + } + static inline const ::std::string& Operator_Name(Operator value) { + return ComparisonExpression_Operator_Name(value); + } + static inline bool Operator_Parse(const ::std::string& name, + Operator* value) { + return ComparisonExpression_Operator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Operand left_value = 2; + bool has_left_value() const; + void clear_left_value(); + static const int kLeftValueFieldNumber = 2; + const ::flyteidl::core::Operand& left_value() const; + ::flyteidl::core::Operand* release_left_value(); + ::flyteidl::core::Operand* mutable_left_value(); + void set_allocated_left_value(::flyteidl::core::Operand* left_value); + + // .flyteidl.core.Operand right_value = 3; + bool has_right_value() const; + void clear_right_value(); + static const int kRightValueFieldNumber = 3; + const ::flyteidl::core::Operand& right_value() const; + ::flyteidl::core::Operand* release_right_value(); + ::flyteidl::core::Operand* mutable_right_value(); + void set_allocated_right_value(::flyteidl::core::Operand* right_value); + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + void clear_operator_(); + static const int kOperatorFieldNumber = 1; + ::flyteidl::core::ComparisonExpression_Operator operator_() const; + void set_operator_(::flyteidl::core::ComparisonExpression_Operator value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Operand* left_value_; + ::flyteidl::core::Operand* right_value_; + int operator__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; +}; +// ------------------------------------------------------------------- + +class Operand final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Operand) */ { + public: + Operand(); + virtual ~Operand(); + + Operand(const Operand& from); + + inline Operand& operator=(const Operand& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Operand(Operand&& from) noexcept + : Operand() { + *this = ::std::move(from); + } + + inline Operand& operator=(Operand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Operand& default_instance(); + + enum ValCase { + kPrimitive = 1, + kVar = 2, + kScalar = 3, + VAL_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Operand* internal_default_instance() { + return reinterpret_cast( + &_Operand_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Operand* other); + friend void swap(Operand& a, Operand& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Operand* New() const final { + return CreateMaybeMessage(nullptr); + } + + Operand* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Operand& from); + void MergeFrom(const Operand& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Operand* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_primitive() const; + PROTOBUF_DEPRECATED void clear_primitive(); + PROTOBUF_DEPRECATED static const int kPrimitiveFieldNumber = 1; + PROTOBUF_DEPRECATED const ::flyteidl::core::Primitive& primitive() const; + PROTOBUF_DEPRECATED ::flyteidl::core::Primitive* release_primitive(); + PROTOBUF_DEPRECATED ::flyteidl::core::Primitive* mutable_primitive(); + PROTOBUF_DEPRECATED void set_allocated_primitive(::flyteidl::core::Primitive* primitive); + + // string var = 2; + private: + bool has_var() const; + public: + void clear_var(); + static const int kVarFieldNumber = 2; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + // .flyteidl.core.Scalar scalar = 3; + bool has_scalar() const; + void clear_scalar(); + static const int kScalarFieldNumber = 3; + const ::flyteidl::core::Scalar& scalar() const; + ::flyteidl::core::Scalar* release_scalar(); + ::flyteidl::core::Scalar* mutable_scalar(); + void set_allocated_scalar(::flyteidl::core::Scalar* scalar); + + void clear_val(); + ValCase val_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) + private: + class HasBitSetters; + void set_has_primitive(); + void set_has_var(); + void set_has_scalar(); + + inline bool has_val() const; + inline void clear_has_val(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValUnion { + ValUnion() {} + ::flyteidl::core::Primitive* primitive_; + ::google::protobuf::internal::ArenaStringPtr var_; + ::flyteidl::core::Scalar* scalar_; + } val_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; +}; +// ------------------------------------------------------------------- + +class BooleanExpression final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BooleanExpression) */ { + public: + BooleanExpression(); + virtual ~BooleanExpression(); + + BooleanExpression(const BooleanExpression& from); + + inline BooleanExpression& operator=(const BooleanExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BooleanExpression(BooleanExpression&& from) noexcept + : BooleanExpression() { + *this = ::std::move(from); + } + + inline BooleanExpression& operator=(BooleanExpression&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const BooleanExpression& default_instance(); + + enum ExprCase { + kConjunction = 1, + kComparison = 2, + EXPR_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BooleanExpression* internal_default_instance() { + return reinterpret_cast( + &_BooleanExpression_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(BooleanExpression* other); + friend void swap(BooleanExpression& a, BooleanExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BooleanExpression* New() const final { + return CreateMaybeMessage(nullptr); + } + + BooleanExpression* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BooleanExpression& from); + void MergeFrom(const BooleanExpression& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BooleanExpression* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.ConjunctionExpression conjunction = 1; + bool has_conjunction() const; + void clear_conjunction(); + static const int kConjunctionFieldNumber = 1; + const ::flyteidl::core::ConjunctionExpression& conjunction() const; + ::flyteidl::core::ConjunctionExpression* release_conjunction(); + ::flyteidl::core::ConjunctionExpression* mutable_conjunction(); + void set_allocated_conjunction(::flyteidl::core::ConjunctionExpression* conjunction); + + // .flyteidl.core.ComparisonExpression comparison = 2; + bool has_comparison() const; + void clear_comparison(); + static const int kComparisonFieldNumber = 2; + const ::flyteidl::core::ComparisonExpression& comparison() const; + ::flyteidl::core::ComparisonExpression* release_comparison(); + ::flyteidl::core::ComparisonExpression* mutable_comparison(); + void set_allocated_comparison(::flyteidl::core::ComparisonExpression* comparison); + + void clear_expr(); + ExprCase expr_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) + private: + class HasBitSetters; + void set_has_conjunction(); + void set_has_comparison(); + + inline bool has_expr() const; + inline void clear_has_expr(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ExprUnion { + ExprUnion() {} + ::flyteidl::core::ConjunctionExpression* conjunction_; + ::flyteidl::core::ComparisonExpression* comparison_; + } expr_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; +}; +// ------------------------------------------------------------------- + +class ConjunctionExpression final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConjunctionExpression) */ { + public: + ConjunctionExpression(); + virtual ~ConjunctionExpression(); + + ConjunctionExpression(const ConjunctionExpression& from); + + inline ConjunctionExpression& operator=(const ConjunctionExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ConjunctionExpression(ConjunctionExpression&& from) noexcept + : ConjunctionExpression() { + *this = ::std::move(from); + } + + inline ConjunctionExpression& operator=(ConjunctionExpression&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ConjunctionExpression& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConjunctionExpression* internal_default_instance() { + return reinterpret_cast( + &_ConjunctionExpression_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ConjunctionExpression* other); + friend void swap(ConjunctionExpression& a, ConjunctionExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ConjunctionExpression* New() const final { + return CreateMaybeMessage(nullptr); + } + + ConjunctionExpression* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ConjunctionExpression& from); + void MergeFrom(const ConjunctionExpression& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ConjunctionExpression* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ConjunctionExpression_LogicalOperator LogicalOperator; + static const LogicalOperator AND = + ConjunctionExpression_LogicalOperator_AND; + static const LogicalOperator OR = + ConjunctionExpression_LogicalOperator_OR; + static inline bool LogicalOperator_IsValid(int value) { + return ConjunctionExpression_LogicalOperator_IsValid(value); + } + static const LogicalOperator LogicalOperator_MIN = + ConjunctionExpression_LogicalOperator_LogicalOperator_MIN; + static const LogicalOperator LogicalOperator_MAX = + ConjunctionExpression_LogicalOperator_LogicalOperator_MAX; + static const int LogicalOperator_ARRAYSIZE = + ConjunctionExpression_LogicalOperator_LogicalOperator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + LogicalOperator_descriptor() { + return ConjunctionExpression_LogicalOperator_descriptor(); + } + static inline const ::std::string& LogicalOperator_Name(LogicalOperator value) { + return ConjunctionExpression_LogicalOperator_Name(value); + } + static inline bool LogicalOperator_Parse(const ::std::string& name, + LogicalOperator* value) { + return ConjunctionExpression_LogicalOperator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.core.BooleanExpression left_expression = 2; + bool has_left_expression() const; + void clear_left_expression(); + static const int kLeftExpressionFieldNumber = 2; + const ::flyteidl::core::BooleanExpression& left_expression() const; + ::flyteidl::core::BooleanExpression* release_left_expression(); + ::flyteidl::core::BooleanExpression* mutable_left_expression(); + void set_allocated_left_expression(::flyteidl::core::BooleanExpression* left_expression); + + // .flyteidl.core.BooleanExpression right_expression = 3; + bool has_right_expression() const; + void clear_right_expression(); + static const int kRightExpressionFieldNumber = 3; + const ::flyteidl::core::BooleanExpression& right_expression() const; + ::flyteidl::core::BooleanExpression* release_right_expression(); + ::flyteidl::core::BooleanExpression* mutable_right_expression(); + void set_allocated_right_expression(::flyteidl::core::BooleanExpression* right_expression); + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + void clear_operator_(); + static const int kOperatorFieldNumber = 1; + ::flyteidl::core::ConjunctionExpression_LogicalOperator operator_() const; + void set_operator_(::flyteidl::core::ConjunctionExpression_LogicalOperator value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::BooleanExpression* left_expression_; + ::flyteidl::core::BooleanExpression* right_expression_; + int operator__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ComparisonExpression + +// .flyteidl.core.ComparisonExpression.Operator operator = 1; +inline void ComparisonExpression::clear_operator_() { + operator__ = 0; +} +inline ::flyteidl::core::ComparisonExpression_Operator ComparisonExpression::operator_() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.operator) + return static_cast< ::flyteidl::core::ComparisonExpression_Operator >(operator__); +} +inline void ComparisonExpression::set_operator_(::flyteidl::core::ComparisonExpression_Operator value) { + + operator__ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ComparisonExpression.operator) +} + +// .flyteidl.core.Operand left_value = 2; +inline bool ComparisonExpression::has_left_value() const { + return this != internal_default_instance() && left_value_ != nullptr; +} +inline void ComparisonExpression::clear_left_value() { + if (GetArenaNoVirtual() == nullptr && left_value_ != nullptr) { + delete left_value_; + } + left_value_ = nullptr; +} +inline const ::flyteidl::core::Operand& ComparisonExpression::left_value() const { + const ::flyteidl::core::Operand* p = left_value_; + // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.left_value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Operand_default_instance_); +} +inline ::flyteidl::core::Operand* ComparisonExpression::release_left_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.ComparisonExpression.left_value) + + ::flyteidl::core::Operand* temp = left_value_; + left_value_ = nullptr; + return temp; +} +inline ::flyteidl::core::Operand* ComparisonExpression::mutable_left_value() { + + if (left_value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Operand>(GetArenaNoVirtual()); + left_value_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ComparisonExpression.left_value) + return left_value_; +} +inline void ComparisonExpression::set_allocated_left_value(::flyteidl::core::Operand* left_value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete left_value_; + } + if (left_value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + left_value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, left_value, submessage_arena); + } + + } else { + + } + left_value_ = left_value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ComparisonExpression.left_value) +} + +// .flyteidl.core.Operand right_value = 3; +inline bool ComparisonExpression::has_right_value() const { + return this != internal_default_instance() && right_value_ != nullptr; +} +inline void ComparisonExpression::clear_right_value() { + if (GetArenaNoVirtual() == nullptr && right_value_ != nullptr) { + delete right_value_; + } + right_value_ = nullptr; +} +inline const ::flyteidl::core::Operand& ComparisonExpression::right_value() const { + const ::flyteidl::core::Operand* p = right_value_; + // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.right_value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Operand_default_instance_); +} +inline ::flyteidl::core::Operand* ComparisonExpression::release_right_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.ComparisonExpression.right_value) + + ::flyteidl::core::Operand* temp = right_value_; + right_value_ = nullptr; + return temp; +} +inline ::flyteidl::core::Operand* ComparisonExpression::mutable_right_value() { + + if (right_value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Operand>(GetArenaNoVirtual()); + right_value_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ComparisonExpression.right_value) + return right_value_; +} +inline void ComparisonExpression::set_allocated_right_value(::flyteidl::core::Operand* right_value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete right_value_; + } + if (right_value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + right_value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, right_value, submessage_arena); + } + + } else { + + } + right_value_ = right_value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ComparisonExpression.right_value) +} + +// ------------------------------------------------------------------- + +// Operand + +// .flyteidl.core.Primitive primitive = 1 [deprecated = true]; +inline bool Operand::has_primitive() const { + return val_case() == kPrimitive; +} +inline void Operand::set_has_primitive() { + _oneof_case_[0] = kPrimitive; +} +inline ::flyteidl::core::Primitive* Operand::release_primitive() { + // @@protoc_insertion_point(field_release:flyteidl.core.Operand.primitive) + if (has_primitive()) { + clear_has_val(); + ::flyteidl::core::Primitive* temp = val_.primitive_; + val_.primitive_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Primitive& Operand::primitive() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Operand.primitive) + return has_primitive() + ? *val_.primitive_ + : *reinterpret_cast< ::flyteidl::core::Primitive*>(&::flyteidl::core::_Primitive_default_instance_); +} +inline ::flyteidl::core::Primitive* Operand::mutable_primitive() { + if (!has_primitive()) { + clear_val(); + set_has_primitive(); + val_.primitive_ = CreateMaybeMessage< ::flyteidl::core::Primitive >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.primitive) + return val_.primitive_; +} + +// string var = 2; +inline bool Operand::has_var() const { + return val_case() == kVar; +} +inline void Operand::set_has_var() { + _oneof_case_[0] = kVar; +} +inline void Operand::clear_var() { + if (has_var()) { + val_.var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_val(); + } +} +inline const ::std::string& Operand::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Operand.var) + if (has_var()) { + return val_.var_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Operand::set_var(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) +} +#if LANG_CXX11 +inline void Operand::set_var(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Operand.var) +} +#endif +inline void Operand::set_var(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Operand.var) +} +inline void Operand::set_var(const char* value, size_t size) { + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Operand.var) +} +inline ::std::string* Operand::mutable_var() { + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.var) + return val_.var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Operand::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Operand.var) + if (has_var()) { + clear_has_val(); + return val_.var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void Operand::set_allocated_var(::std::string* var) { + if (has_val()) { + clear_val(); + } + if (var != nullptr) { + set_has_var(); + val_.var_.UnsafeSetDefault(var); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.var) +} + +// .flyteidl.core.Scalar scalar = 3; +inline bool Operand::has_scalar() const { + return val_case() == kScalar; +} +inline void Operand::set_has_scalar() { + _oneof_case_[0] = kScalar; +} +inline ::flyteidl::core::Scalar* Operand::release_scalar() { + // @@protoc_insertion_point(field_release:flyteidl.core.Operand.scalar) + if (has_scalar()) { + clear_has_val(); + ::flyteidl::core::Scalar* temp = val_.scalar_; + val_.scalar_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Scalar& Operand::scalar() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Operand.scalar) + return has_scalar() + ? *val_.scalar_ + : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); +} +inline ::flyteidl::core::Scalar* Operand::mutable_scalar() { + if (!has_scalar()) { + clear_val(); + set_has_scalar(); + val_.scalar_ = CreateMaybeMessage< ::flyteidl::core::Scalar >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.scalar) + return val_.scalar_; +} + +inline bool Operand::has_val() const { + return val_case() != VAL_NOT_SET; +} +inline void Operand::clear_has_val() { + _oneof_case_[0] = VAL_NOT_SET; +} +inline Operand::ValCase Operand::val_case() const { + return Operand::ValCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// BooleanExpression + +// .flyteidl.core.ConjunctionExpression conjunction = 1; +inline bool BooleanExpression::has_conjunction() const { + return expr_case() == kConjunction; +} +inline void BooleanExpression::set_has_conjunction() { + _oneof_case_[0] = kConjunction; +} +inline void BooleanExpression::clear_conjunction() { + if (has_conjunction()) { + delete expr_.conjunction_; + clear_has_expr(); + } +} +inline ::flyteidl::core::ConjunctionExpression* BooleanExpression::release_conjunction() { + // @@protoc_insertion_point(field_release:flyteidl.core.BooleanExpression.conjunction) + if (has_conjunction()) { + clear_has_expr(); + ::flyteidl::core::ConjunctionExpression* temp = expr_.conjunction_; + expr_.conjunction_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ConjunctionExpression& BooleanExpression::conjunction() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BooleanExpression.conjunction) + return has_conjunction() + ? *expr_.conjunction_ + : *reinterpret_cast< ::flyteidl::core::ConjunctionExpression*>(&::flyteidl::core::_ConjunctionExpression_default_instance_); +} +inline ::flyteidl::core::ConjunctionExpression* BooleanExpression::mutable_conjunction() { + if (!has_conjunction()) { + clear_expr(); + set_has_conjunction(); + expr_.conjunction_ = CreateMaybeMessage< ::flyteidl::core::ConjunctionExpression >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BooleanExpression.conjunction) + return expr_.conjunction_; +} + +// .flyteidl.core.ComparisonExpression comparison = 2; +inline bool BooleanExpression::has_comparison() const { + return expr_case() == kComparison; +} +inline void BooleanExpression::set_has_comparison() { + _oneof_case_[0] = kComparison; +} +inline void BooleanExpression::clear_comparison() { + if (has_comparison()) { + delete expr_.comparison_; + clear_has_expr(); + } +} +inline ::flyteidl::core::ComparisonExpression* BooleanExpression::release_comparison() { + // @@protoc_insertion_point(field_release:flyteidl.core.BooleanExpression.comparison) + if (has_comparison()) { + clear_has_expr(); + ::flyteidl::core::ComparisonExpression* temp = expr_.comparison_; + expr_.comparison_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ComparisonExpression& BooleanExpression::comparison() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BooleanExpression.comparison) + return has_comparison() + ? *expr_.comparison_ + : *reinterpret_cast< ::flyteidl::core::ComparisonExpression*>(&::flyteidl::core::_ComparisonExpression_default_instance_); +} +inline ::flyteidl::core::ComparisonExpression* BooleanExpression::mutable_comparison() { + if (!has_comparison()) { + clear_expr(); + set_has_comparison(); + expr_.comparison_ = CreateMaybeMessage< ::flyteidl::core::ComparisonExpression >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BooleanExpression.comparison) + return expr_.comparison_; +} + +inline bool BooleanExpression::has_expr() const { + return expr_case() != EXPR_NOT_SET; +} +inline void BooleanExpression::clear_has_expr() { + _oneof_case_[0] = EXPR_NOT_SET; +} +inline BooleanExpression::ExprCase BooleanExpression::expr_case() const { + return BooleanExpression::ExprCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ConjunctionExpression + +// .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; +inline void ConjunctionExpression::clear_operator_() { + operator__ = 0; +} +inline ::flyteidl::core::ConjunctionExpression_LogicalOperator ConjunctionExpression::operator_() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.operator) + return static_cast< ::flyteidl::core::ConjunctionExpression_LogicalOperator >(operator__); +} +inline void ConjunctionExpression::set_operator_(::flyteidl::core::ConjunctionExpression_LogicalOperator value) { + + operator__ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ConjunctionExpression.operator) +} + +// .flyteidl.core.BooleanExpression left_expression = 2; +inline bool ConjunctionExpression::has_left_expression() const { + return this != internal_default_instance() && left_expression_ != nullptr; +} +inline void ConjunctionExpression::clear_left_expression() { + if (GetArenaNoVirtual() == nullptr && left_expression_ != nullptr) { + delete left_expression_; + } + left_expression_ = nullptr; +} +inline const ::flyteidl::core::BooleanExpression& ConjunctionExpression::left_expression() const { + const ::flyteidl::core::BooleanExpression* p = left_expression_; + // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.left_expression) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_BooleanExpression_default_instance_); +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::release_left_expression() { + // @@protoc_insertion_point(field_release:flyteidl.core.ConjunctionExpression.left_expression) + + ::flyteidl::core::BooleanExpression* temp = left_expression_; + left_expression_ = nullptr; + return temp; +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::mutable_left_expression() { + + if (left_expression_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::BooleanExpression>(GetArenaNoVirtual()); + left_expression_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ConjunctionExpression.left_expression) + return left_expression_; +} +inline void ConjunctionExpression::set_allocated_left_expression(::flyteidl::core::BooleanExpression* left_expression) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete left_expression_; + } + if (left_expression) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + left_expression = ::google::protobuf::internal::GetOwnedMessage( + message_arena, left_expression, submessage_arena); + } + + } else { + + } + left_expression_ = left_expression; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ConjunctionExpression.left_expression) +} + +// .flyteidl.core.BooleanExpression right_expression = 3; +inline bool ConjunctionExpression::has_right_expression() const { + return this != internal_default_instance() && right_expression_ != nullptr; +} +inline void ConjunctionExpression::clear_right_expression() { + if (GetArenaNoVirtual() == nullptr && right_expression_ != nullptr) { + delete right_expression_; + } + right_expression_ = nullptr; +} +inline const ::flyteidl::core::BooleanExpression& ConjunctionExpression::right_expression() const { + const ::flyteidl::core::BooleanExpression* p = right_expression_; + // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.right_expression) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_BooleanExpression_default_instance_); +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::release_right_expression() { + // @@protoc_insertion_point(field_release:flyteidl.core.ConjunctionExpression.right_expression) + + ::flyteidl::core::BooleanExpression* temp = right_expression_; + right_expression_ = nullptr; + return temp; +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::mutable_right_expression() { + + if (right_expression_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::BooleanExpression>(GetArenaNoVirtual()); + right_expression_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ConjunctionExpression.right_expression) + return right_expression_; +} +inline void ConjunctionExpression::set_allocated_right_expression(::flyteidl::core::BooleanExpression* right_expression) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete right_expression_; + } + if (right_expression) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + right_expression = ::google::protobuf::internal::GetOwnedMessage( + message_arena, right_expression, submessage_arena); + } + + } else { + + } + right_expression_ = right_expression; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ConjunctionExpression.right_expression) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::ComparisonExpression_Operator> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ComparisonExpression_Operator>() { + return ::flyteidl::core::ComparisonExpression_Operator_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::ConjunctionExpression_LogicalOperator> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ConjunctionExpression_LogicalOperator>() { + return ::flyteidl::core::ConjunctionExpression_LogicalOperator_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fcondition_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc new file mode 100644 index 0000000000..4b2e553c43 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/dynamic_job.proto + +#include "flyteidl/core/dynamic_job.pb.h" +#include "flyteidl/core/dynamic_job.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h new file mode 100644 index 0000000000..0e8e0566f0 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/dynamic_job.proto +#ifndef GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED + +#include "flyteidl/core/dynamic_job.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc new file mode 100644 index 0000000000..10efa6b93e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc @@ -0,0 +1,646 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +#include "flyteidl/core/dynamic_job.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto; +namespace flyteidl { +namespace core { +class DynamicJobSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DynamicJobSpec_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsDynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_DynamicJobSpec_default_instance_; + new (ptr) ::flyteidl::core::DynamicJobSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::DynamicJobSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsDynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto}, { + &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fdynamic_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fdynamic_5fjob_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, nodes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, min_successes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, tasks_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, subworkflows_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::DynamicJobSpec)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_DynamicJobSpec_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fdynamic_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto, "flyteidl/core/dynamic_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fdynamic_5fjob_2eproto, 1, file_level_enum_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fdynamic_5fjob_2eproto[] = + "\n\037flyteidl/core/dynamic_job.proto\022\rflyte" + "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + "teidl/core/workflow.proto\032\034flyteidl/core" + "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + "2\037.flyteidl.core.WorkflowTemplateB6Z4git" + "hub.com/flyteorg/flyteidl/gen/pb-go/flyt" + "eidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fdynamic_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fdynamic_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fdynamic_5fjob_2eproto, + "flyteidl/core/dynamic_job.proto", &assign_descriptors_table_flyteidl_2fcore_2fdynamic_5fjob_2eproto, 417, +}; + +void AddDescriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[3] = + { + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fdynamic_5fjob_2eproto, deps, 3); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fdynamic_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto(); return true; }(); +namespace flyteidl { +namespace core { + +// =================================================================== + +void DynamicJobSpec::InitAsDefaultInstance() { +} +class DynamicJobSpec::HasBitSetters { + public: +}; + +void DynamicJobSpec::clear_nodes() { + nodes_.Clear(); +} +void DynamicJobSpec::clear_outputs() { + outputs_.Clear(); +} +void DynamicJobSpec::clear_tasks() { + tasks_.Clear(); +} +void DynamicJobSpec::clear_subworkflows() { + subworkflows_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DynamicJobSpec::kNodesFieldNumber; +const int DynamicJobSpec::kMinSuccessesFieldNumber; +const int DynamicJobSpec::kOutputsFieldNumber; +const int DynamicJobSpec::kTasksFieldNumber; +const int DynamicJobSpec::kSubworkflowsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DynamicJobSpec::DynamicJobSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.DynamicJobSpec) +} +DynamicJobSpec::DynamicJobSpec(const DynamicJobSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + nodes_(from.nodes_), + outputs_(from.outputs_), + tasks_(from.tasks_), + subworkflows_(from.subworkflows_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + min_successes_ = from.min_successes_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.DynamicJobSpec) +} + +void DynamicJobSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto.base); + min_successes_ = PROTOBUF_LONGLONG(0); +} + +DynamicJobSpec::~DynamicJobSpec() { + // @@protoc_insertion_point(destructor:flyteidl.core.DynamicJobSpec) + SharedDtor(); +} + +void DynamicJobSpec::SharedDtor() { +} + +void DynamicJobSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DynamicJobSpec& DynamicJobSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void DynamicJobSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.DynamicJobSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + nodes_.Clear(); + outputs_.Clear(); + tasks_.Clear(); + subworkflows_.Clear(); + min_successes_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DynamicJobSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.Node nodes = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Node::_InternalParse; + object = msg->add_nodes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // int64 min_successes = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_min_successes(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // repeated .flyteidl.core.Binding outputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Binding::_InternalParse; + object = msg->add_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.TaskTemplate tasks = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->add_tasks(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowTemplate::_InternalParse; + object = msg->add_subworkflows(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DynamicJobSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.DynamicJobSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.Node nodes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_nodes())); + } else { + goto handle_unusual; + } + break; + } + + // int64 min_successes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &min_successes_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Binding outputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tasks())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_subworkflows())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.DynamicJobSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.DynamicJobSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DynamicJobSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.DynamicJobSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Node nodes = 1; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->nodes(static_cast(i)), + output); + } + + // int64 min_successes = 2; + if (this->min_successes() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_successes(), output); + } + + // repeated .flyteidl.core.Binding outputs = 3; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->outputs(static_cast(i)), + output); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->tasks(static_cast(i)), + output); + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + for (unsigned int i = 0, + n = static_cast(this->subworkflows_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->subworkflows(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.DynamicJobSpec) +} + +::google::protobuf::uint8* DynamicJobSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.DynamicJobSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Node nodes = 1; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->nodes(static_cast(i)), target); + } + + // int64 min_successes = 2; + if (this->min_successes() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_successes(), target); + } + + // repeated .flyteidl.core.Binding outputs = 3; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->outputs(static_cast(i)), target); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->tasks(static_cast(i)), target); + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + for (unsigned int i = 0, + n = static_cast(this->subworkflows_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->subworkflows(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.DynamicJobSpec) + return target; +} + +size_t DynamicJobSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.DynamicJobSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.Node nodes = 1; + { + unsigned int count = static_cast(this->nodes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->nodes(static_cast(i))); + } + } + + // repeated .flyteidl.core.Binding outputs = 3; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(i))); + } + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + { + unsigned int count = static_cast(this->subworkflows_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->subworkflows(static_cast(i))); + } + } + + // int64 min_successes = 2; + if (this->min_successes() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min_successes()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DynamicJobSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.DynamicJobSpec) + GOOGLE_DCHECK_NE(&from, this); + const DynamicJobSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.DynamicJobSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.DynamicJobSpec) + MergeFrom(*source); + } +} + +void DynamicJobSpec::MergeFrom(const DynamicJobSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.DynamicJobSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + nodes_.MergeFrom(from.nodes_); + outputs_.MergeFrom(from.outputs_); + tasks_.MergeFrom(from.tasks_); + subworkflows_.MergeFrom(from.subworkflows_); + if (from.min_successes() != 0) { + set_min_successes(from.min_successes()); + } +} + +void DynamicJobSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.DynamicJobSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DynamicJobSpec::CopyFrom(const DynamicJobSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.DynamicJobSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DynamicJobSpec::IsInitialized() const { + return true; +} + +void DynamicJobSpec::Swap(DynamicJobSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void DynamicJobSpec::InternalSwap(DynamicJobSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&nodes_)->InternalSwap(CastToBase(&other->nodes_)); + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); + CastToBase(&subworkflows_)->InternalSwap(CastToBase(&other->subworkflows_)); + swap(min_successes_, other->min_successes_); +} + +::google::protobuf::Metadata DynamicJobSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fdynamic_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fdynamic_5fjob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::DynamicJobSpec* Arena::CreateMaybeMessage< ::flyteidl::core::DynamicJobSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::DynamicJobSpec >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h new file mode 100644 index 0000000000..c4fc525e63 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h @@ -0,0 +1,378 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fdynamic_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fdynamic_5fjob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/literals.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fdynamic_5fjob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto(); +namespace flyteidl { +namespace core { +class DynamicJobSpec; +class DynamicJobSpecDefaultTypeInternal; +extern DynamicJobSpecDefaultTypeInternal _DynamicJobSpec_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::DynamicJobSpec* Arena::CreateMaybeMessage<::flyteidl::core::DynamicJobSpec>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +// =================================================================== + +class DynamicJobSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.DynamicJobSpec) */ { + public: + DynamicJobSpec(); + virtual ~DynamicJobSpec(); + + DynamicJobSpec(const DynamicJobSpec& from); + + inline DynamicJobSpec& operator=(const DynamicJobSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DynamicJobSpec(DynamicJobSpec&& from) noexcept + : DynamicJobSpec() { + *this = ::std::move(from); + } + + inline DynamicJobSpec& operator=(DynamicJobSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DynamicJobSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DynamicJobSpec* internal_default_instance() { + return reinterpret_cast( + &_DynamicJobSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DynamicJobSpec* other); + friend void swap(DynamicJobSpec& a, DynamicJobSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DynamicJobSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + DynamicJobSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DynamicJobSpec& from); + void MergeFrom(const DynamicJobSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DynamicJobSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Node nodes = 1; + int nodes_size() const; + void clear_nodes(); + static const int kNodesFieldNumber = 1; + ::flyteidl::core::Node* mutable_nodes(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* + mutable_nodes(); + const ::flyteidl::core::Node& nodes(int index) const; + ::flyteidl::core::Node* add_nodes(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& + nodes() const; + + // repeated .flyteidl.core.Binding outputs = 3; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 3; + ::flyteidl::core::Binding* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* + mutable_outputs(); + const ::flyteidl::core::Binding& outputs(int index) const; + ::flyteidl::core::Binding* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& + outputs() const; + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 4; + ::flyteidl::core::TaskTemplate* mutable_tasks(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* + mutable_tasks(); + const ::flyteidl::core::TaskTemplate& tasks(int index) const; + ::flyteidl::core::TaskTemplate* add_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& + tasks() const; + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + int subworkflows_size() const; + void clear_subworkflows(); + static const int kSubworkflowsFieldNumber = 5; + ::flyteidl::core::WorkflowTemplate* mutable_subworkflows(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* + mutable_subworkflows(); + const ::flyteidl::core::WorkflowTemplate& subworkflows(int index) const; + ::flyteidl::core::WorkflowTemplate* add_subworkflows(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& + subworkflows() const; + + // int64 min_successes = 2; + void clear_min_successes(); + static const int kMinSuccessesFieldNumber = 2; + ::google::protobuf::int64 min_successes() const; + void set_min_successes(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node > nodes_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > outputs_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate > tasks_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate > subworkflows_; + ::google::protobuf::int64 min_successes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DynamicJobSpec + +// repeated .flyteidl.core.Node nodes = 1; +inline int DynamicJobSpec::nodes_size() const { + return nodes_.size(); +} +inline ::flyteidl::core::Node* DynamicJobSpec::mutable_nodes(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.nodes) + return nodes_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* +DynamicJobSpec::mutable_nodes() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.nodes) + return &nodes_; +} +inline const ::flyteidl::core::Node& DynamicJobSpec::nodes(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.nodes) + return nodes_.Get(index); +} +inline ::flyteidl::core::Node* DynamicJobSpec::add_nodes() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.nodes) + return nodes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& +DynamicJobSpec::nodes() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.nodes) + return nodes_; +} + +// int64 min_successes = 2; +inline void DynamicJobSpec::clear_min_successes() { + min_successes_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 DynamicJobSpec::min_successes() const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.min_successes) + return min_successes_; +} +inline void DynamicJobSpec::set_min_successes(::google::protobuf::int64 value) { + + min_successes_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.DynamicJobSpec.min_successes) +} + +// repeated .flyteidl.core.Binding outputs = 3; +inline int DynamicJobSpec::outputs_size() const { + return outputs_.size(); +} +inline ::flyteidl::core::Binding* DynamicJobSpec::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* +DynamicJobSpec::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.outputs) + return &outputs_; +} +inline const ::flyteidl::core::Binding& DynamicJobSpec::outputs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.outputs) + return outputs_.Get(index); +} +inline ::flyteidl::core::Binding* DynamicJobSpec::add_outputs() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& +DynamicJobSpec::outputs() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.outputs) + return outputs_; +} + +// repeated .flyteidl.core.TaskTemplate tasks = 4; +inline int DynamicJobSpec::tasks_size() const { + return tasks_.size(); +} +inline ::flyteidl::core::TaskTemplate* DynamicJobSpec::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.tasks) + return tasks_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* +DynamicJobSpec::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.tasks) + return &tasks_; +} +inline const ::flyteidl::core::TaskTemplate& DynamicJobSpec::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::core::TaskTemplate* DynamicJobSpec::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.tasks) + return tasks_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& +DynamicJobSpec::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.tasks) + return tasks_; +} + +// repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; +inline int DynamicJobSpec::subworkflows_size() const { + return subworkflows_.size(); +} +inline ::flyteidl::core::WorkflowTemplate* DynamicJobSpec::mutable_subworkflows(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* +DynamicJobSpec::mutable_subworkflows() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.subworkflows) + return &subworkflows_; +} +inline const ::flyteidl::core::WorkflowTemplate& DynamicJobSpec::subworkflows(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_.Get(index); +} +inline ::flyteidl::core::WorkflowTemplate* DynamicJobSpec::add_subworkflows() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& +DynamicJobSpec::subworkflows() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fdynamic_5fjob_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc new file mode 100644 index 0000000000..9ff2dd82ba --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/errors.proto + +#include "flyteidl/core/errors.pb.h" +#include "flyteidl/core/errors.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h new file mode 100644 index 0000000000..0556d5e341 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/errors.proto +#ifndef GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED + +#include "flyteidl/core/errors.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc new file mode 100644 index 0000000000..cc160ff103 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc @@ -0,0 +1,927 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +#include "flyteidl/core/errors.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ferrors_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto; +namespace flyteidl { +namespace core { +class ContainerErrorDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ContainerError_default_instance_; +class ErrorDocumentDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ErrorDocument_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsContainerError_flyteidl_2fcore_2ferrors_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ContainerError_default_instance_; + new (ptr) ::flyteidl::core::ContainerError(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ContainerError::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerError_flyteidl_2fcore_2ferrors_2eproto}, {}}; + +static void InitDefaultsErrorDocument_flyteidl_2fcore_2ferrors_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ErrorDocument_default_instance_; + new (ptr) ::flyteidl::core::ErrorDocument(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ErrorDocument::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsErrorDocument_flyteidl_2fcore_2ferrors_2eproto}, { + &scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2ferrors_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2ferrors_2eproto[2]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2ferrors_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2ferrors_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2ferrors_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, code_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, message_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, kind_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, origin_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ErrorDocument, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ErrorDocument, error_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::ContainerError)}, + { 9, -1, sizeof(::flyteidl::core::ErrorDocument)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_ContainerError_default_instance_), + reinterpret_cast(&::flyteidl::core::_ErrorDocument_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2ferrors_2eproto, "flyteidl/core/errors.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2ferrors_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2ferrors_2eproto, 2, file_level_enum_descriptors_flyteidl_2fcore_2ferrors_2eproto, file_level_service_descriptors_flyteidl_2fcore_2ferrors_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2ferrors_2eproto[] = + "\n\032flyteidl/core/errors.proto\022\rflyteidl.c" + "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" + "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" + " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" + "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" + "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" + "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" + "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" + ".core.ContainerErrorB6Z4github.com/flyte" + "org/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + "oto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2ferrors_2eproto = { + false, InitDefaults_flyteidl_2fcore_2ferrors_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2ferrors_2eproto, + "flyteidl/core/errors.proto", &assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto, 404, +}; + +void AddDescriptors_flyteidl_2fcore_2ferrors_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2ferrors_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2ferrors_2eproto = []() { AddDescriptors_flyteidl_2fcore_2ferrors_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* ContainerError_Kind_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ferrors_2eproto[0]; +} +bool ContainerError_Kind_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ContainerError_Kind ContainerError::NON_RECOVERABLE; +const ContainerError_Kind ContainerError::RECOVERABLE; +const ContainerError_Kind ContainerError::Kind_MIN; +const ContainerError_Kind ContainerError::Kind_MAX; +const int ContainerError::Kind_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void ContainerError::InitAsDefaultInstance() { +} +class ContainerError::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContainerError::kCodeFieldNumber; +const int ContainerError::kMessageFieldNumber; +const int ContainerError::kKindFieldNumber; +const int ContainerError::kOriginFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContainerError::ContainerError() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ContainerError) +} +ContainerError::ContainerError(const ContainerError& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.code().size() > 0) { + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + ::memcpy(&kind_, &from.kind_, + static_cast(reinterpret_cast(&origin_) - + reinterpret_cast(&kind_)) + sizeof(origin_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ContainerError) +} + +void ContainerError::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base); + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&kind_, 0, static_cast( + reinterpret_cast(&origin_) - + reinterpret_cast(&kind_)) + sizeof(origin_)); +} + +ContainerError::~ContainerError() { + // @@protoc_insertion_point(destructor:flyteidl.core.ContainerError) + SharedDtor(); +} + +void ContainerError::SharedDtor() { + code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ContainerError::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ContainerError& ContainerError::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base); + return *internal_default_instance(); +} + + +void ContainerError::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ContainerError) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&kind_, 0, static_cast( + reinterpret_cast(&origin_) - + reinterpret_cast(&kind_)) + sizeof(origin_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ContainerError::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string code = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ContainerError.code"); + object = msg->mutable_code(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string message = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ContainerError.message"); + object = msg->mutable_message(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.ContainerError.Kind kind = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_kind(static_cast<::flyteidl::core::ContainerError_Kind>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.ExecutionError.ErrorKind origin = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_origin(static_cast<::flyteidl::core::ExecutionError_ErrorKind>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ContainerError::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ContainerError) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string code = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_code())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ContainerError.code")); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ContainerError.message")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_kind(static_cast< ::flyteidl::core::ContainerError_Kind >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError.ErrorKind origin = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_origin(static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ContainerError) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ContainerError) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ContainerError::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ContainerError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.code"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->code(), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + if (this->kind() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->kind(), output); + } + + // .flyteidl.core.ExecutionError.ErrorKind origin = 4; + if (this->origin() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->origin(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ContainerError) +} + +::google::protobuf::uint8* ContainerError::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ContainerError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.code"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->code(), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + if (this->kind() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->kind(), target); + } + + // .flyteidl.core.ExecutionError.ErrorKind origin = 4; + if (this->origin() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->origin(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ContainerError) + return target; +} + +size_t ContainerError::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ContainerError) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->code()); + } + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + if (this->kind() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); + } + + // .flyteidl.core.ExecutionError.ErrorKind origin = 4; + if (this->origin() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->origin()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ContainerError::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ContainerError) + GOOGLE_DCHECK_NE(&from, this); + const ContainerError* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ContainerError) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ContainerError) + MergeFrom(*source); + } +} + +void ContainerError::MergeFrom(const ContainerError& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ContainerError) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.code().size() > 0) { + + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (from.kind() != 0) { + set_kind(from.kind()); + } + if (from.origin() != 0) { + set_origin(from.origin()); + } +} + +void ContainerError::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ContainerError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContainerError::CopyFrom(const ContainerError& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ContainerError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContainerError::IsInitialized() const { + return true; +} + +void ContainerError::Swap(ContainerError* other) { + if (other == this) return; + InternalSwap(other); +} +void ContainerError::InternalSwap(ContainerError* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + code_.Swap(&other->code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(kind_, other->kind_); + swap(origin_, other->origin_); +} + +::google::protobuf::Metadata ContainerError::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ferrors_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ErrorDocument::InitAsDefaultInstance() { + ::flyteidl::core::_ErrorDocument_default_instance_._instance.get_mutable()->error_ = const_cast< ::flyteidl::core::ContainerError*>( + ::flyteidl::core::ContainerError::internal_default_instance()); +} +class ErrorDocument::HasBitSetters { + public: + static const ::flyteidl::core::ContainerError& error(const ErrorDocument* msg); +}; + +const ::flyteidl::core::ContainerError& +ErrorDocument::HasBitSetters::error(const ErrorDocument* msg) { + return *msg->error_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ErrorDocument::kErrorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ErrorDocument::ErrorDocument() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ErrorDocument) +} +ErrorDocument::ErrorDocument(const ErrorDocument& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_error()) { + error_ = new ::flyteidl::core::ContainerError(*from.error_); + } else { + error_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ErrorDocument) +} + +void ErrorDocument::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto.base); + error_ = nullptr; +} + +ErrorDocument::~ErrorDocument() { + // @@protoc_insertion_point(destructor:flyteidl.core.ErrorDocument) + SharedDtor(); +} + +void ErrorDocument::SharedDtor() { + if (this != internal_default_instance()) delete error_; +} + +void ErrorDocument::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ErrorDocument& ErrorDocument::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto.base); + return *internal_default_instance(); +} + + +void ErrorDocument::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ErrorDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && error_ != nullptr) { + delete error_; + } + error_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ErrorDocument::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ContainerError error = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ContainerError::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ErrorDocument::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ErrorDocument) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ContainerError error = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ErrorDocument) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ErrorDocument) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ErrorDocument::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ErrorDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ContainerError error = 1; + if (this->has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::error(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ErrorDocument) +} + +::google::protobuf::uint8* ErrorDocument::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ErrorDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ContainerError error = 1; + if (this->has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::error(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ErrorDocument) + return target; +} + +size_t ErrorDocument::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ErrorDocument) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.ContainerError error = 1; + if (this->has_error()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *error_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ErrorDocument::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ErrorDocument) + GOOGLE_DCHECK_NE(&from, this); + const ErrorDocument* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ErrorDocument) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ErrorDocument) + MergeFrom(*source); + } +} + +void ErrorDocument::MergeFrom(const ErrorDocument& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ErrorDocument) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_error()) { + mutable_error()->::flyteidl::core::ContainerError::MergeFrom(from.error()); + } +} + +void ErrorDocument::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ErrorDocument) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ErrorDocument::CopyFrom(const ErrorDocument& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ErrorDocument) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorDocument::IsInitialized() const { + return true; +} + +void ErrorDocument::Swap(ErrorDocument* other) { + if (other == this) return; + InternalSwap(other); +} +void ErrorDocument::InternalSwap(ErrorDocument* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(error_, other->error_); +} + +::google::protobuf::Metadata ErrorDocument::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ferrors_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::ContainerError* Arena::CreateMaybeMessage< ::flyteidl::core::ContainerError >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ContainerError >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ErrorDocument* Arena::CreateMaybeMessage< ::flyteidl::core::ErrorDocument >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ErrorDocument >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h new file mode 100644 index 0000000000..993d23487c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h @@ -0,0 +1,609 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2ferrors_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2ferrors_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/execution.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ferrors_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2ferrors_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[2] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2ferrors_2eproto(); +namespace flyteidl { +namespace core { +class ContainerError; +class ContainerErrorDefaultTypeInternal; +extern ContainerErrorDefaultTypeInternal _ContainerError_default_instance_; +class ErrorDocument; +class ErrorDocumentDefaultTypeInternal; +extern ErrorDocumentDefaultTypeInternal _ErrorDocument_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::ContainerError* Arena::CreateMaybeMessage<::flyteidl::core::ContainerError>(Arena*); +template<> ::flyteidl::core::ErrorDocument* Arena::CreateMaybeMessage<::flyteidl::core::ErrorDocument>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum ContainerError_Kind { + ContainerError_Kind_NON_RECOVERABLE = 0, + ContainerError_Kind_RECOVERABLE = 1, + ContainerError_Kind_ContainerError_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ContainerError_Kind_ContainerError_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ContainerError_Kind_IsValid(int value); +const ContainerError_Kind ContainerError_Kind_Kind_MIN = ContainerError_Kind_NON_RECOVERABLE; +const ContainerError_Kind ContainerError_Kind_Kind_MAX = ContainerError_Kind_RECOVERABLE; +const int ContainerError_Kind_Kind_ARRAYSIZE = ContainerError_Kind_Kind_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ContainerError_Kind_descriptor(); +inline const ::std::string& ContainerError_Kind_Name(ContainerError_Kind value) { + return ::google::protobuf::internal::NameOfEnum( + ContainerError_Kind_descriptor(), value); +} +inline bool ContainerError_Kind_Parse( + const ::std::string& name, ContainerError_Kind* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ContainerError_Kind_descriptor(), name, value); +} +// =================================================================== + +class ContainerError final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ContainerError) */ { + public: + ContainerError(); + virtual ~ContainerError(); + + ContainerError(const ContainerError& from); + + inline ContainerError& operator=(const ContainerError& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContainerError(ContainerError&& from) noexcept + : ContainerError() { + *this = ::std::move(from); + } + + inline ContainerError& operator=(ContainerError&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ContainerError& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContainerError* internal_default_instance() { + return reinterpret_cast( + &_ContainerError_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ContainerError* other); + friend void swap(ContainerError& a, ContainerError& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContainerError* New() const final { + return CreateMaybeMessage(nullptr); + } + + ContainerError* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ContainerError& from); + void MergeFrom(const ContainerError& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContainerError* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ContainerError_Kind Kind; + static const Kind NON_RECOVERABLE = + ContainerError_Kind_NON_RECOVERABLE; + static const Kind RECOVERABLE = + ContainerError_Kind_RECOVERABLE; + static inline bool Kind_IsValid(int value) { + return ContainerError_Kind_IsValid(value); + } + static const Kind Kind_MIN = + ContainerError_Kind_Kind_MIN; + static const Kind Kind_MAX = + ContainerError_Kind_Kind_MAX; + static const int Kind_ARRAYSIZE = + ContainerError_Kind_Kind_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Kind_descriptor() { + return ContainerError_Kind_descriptor(); + } + static inline const ::std::string& Kind_Name(Kind value) { + return ContainerError_Kind_Name(value); + } + static inline bool Kind_Parse(const ::std::string& name, + Kind* value) { + return ContainerError_Kind_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string code = 1; + void clear_code(); + static const int kCodeFieldNumber = 1; + const ::std::string& code() const; + void set_code(const ::std::string& value); + #if LANG_CXX11 + void set_code(::std::string&& value); + #endif + void set_code(const char* value); + void set_code(const char* value, size_t size); + ::std::string* mutable_code(); + ::std::string* release_code(); + void set_allocated_code(::std::string* code); + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // .flyteidl.core.ContainerError.Kind kind = 3; + void clear_kind(); + static const int kKindFieldNumber = 3; + ::flyteidl::core::ContainerError_Kind kind() const; + void set_kind(::flyteidl::core::ContainerError_Kind value); + + // .flyteidl.core.ExecutionError.ErrorKind origin = 4; + void clear_origin(); + static const int kOriginFieldNumber = 4; + ::flyteidl::core::ExecutionError_ErrorKind origin() const; + void set_origin(::flyteidl::core::ExecutionError_ErrorKind value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr code_; + ::google::protobuf::internal::ArenaStringPtr message_; + int kind_; + int origin_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ferrors_2eproto; +}; +// ------------------------------------------------------------------- + +class ErrorDocument final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ErrorDocument) */ { + public: + ErrorDocument(); + virtual ~ErrorDocument(); + + ErrorDocument(const ErrorDocument& from); + + inline ErrorDocument& operator=(const ErrorDocument& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ErrorDocument(ErrorDocument&& from) noexcept + : ErrorDocument() { + *this = ::std::move(from); + } + + inline ErrorDocument& operator=(ErrorDocument&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ErrorDocument& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ErrorDocument* internal_default_instance() { + return reinterpret_cast( + &_ErrorDocument_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(ErrorDocument* other); + friend void swap(ErrorDocument& a, ErrorDocument& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ErrorDocument* New() const final { + return CreateMaybeMessage(nullptr); + } + + ErrorDocument* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ErrorDocument& from); + void MergeFrom(const ErrorDocument& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ErrorDocument* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.ContainerError error = 1; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 1; + const ::flyteidl::core::ContainerError& error() const; + ::flyteidl::core::ContainerError* release_error(); + ::flyteidl::core::ContainerError* mutable_error(); + void set_allocated_error(::flyteidl::core::ContainerError* error); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::ContainerError* error_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ferrors_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ContainerError + +// string code = 1; +inline void ContainerError::clear_code() { + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ContainerError::code() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.code) + return code_.GetNoArena(); +} +inline void ContainerError::set_code(const ::std::string& value) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.code) +} +#if LANG_CXX11 +inline void ContainerError::set_code(::std::string&& value) { + + code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ContainerError.code) +} +#endif +inline void ContainerError::set_code(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ContainerError.code) +} +inline void ContainerError::set_code(const char* value, size_t size) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ContainerError.code) +} +inline ::std::string* ContainerError::mutable_code() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ContainerError.code) + return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ContainerError::release_code() { + // @@protoc_insertion_point(field_release:flyteidl.core.ContainerError.code) + + return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ContainerError::set_allocated_code(::std::string* code) { + if (code != nullptr) { + + } else { + + } + code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ContainerError.code) +} + +// string message = 2; +inline void ContainerError::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ContainerError::message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.message) + return message_.GetNoArena(); +} +inline void ContainerError::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.message) +} +#if LANG_CXX11 +inline void ContainerError::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ContainerError.message) +} +#endif +inline void ContainerError::set_message(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ContainerError.message) +} +inline void ContainerError::set_message(const char* value, size_t size) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ContainerError.message) +} +inline ::std::string* ContainerError::mutable_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ContainerError.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ContainerError::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.ContainerError.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ContainerError::set_allocated_message(::std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ContainerError.message) +} + +// .flyteidl.core.ContainerError.Kind kind = 3; +inline void ContainerError::clear_kind() { + kind_ = 0; +} +inline ::flyteidl::core::ContainerError_Kind ContainerError::kind() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.kind) + return static_cast< ::flyteidl::core::ContainerError_Kind >(kind_); +} +inline void ContainerError::set_kind(::flyteidl::core::ContainerError_Kind value) { + + kind_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.kind) +} + +// .flyteidl.core.ExecutionError.ErrorKind origin = 4; +inline void ContainerError::clear_origin() { + origin_ = 0; +} +inline ::flyteidl::core::ExecutionError_ErrorKind ContainerError::origin() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.origin) + return static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(origin_); +} +inline void ContainerError::set_origin(::flyteidl::core::ExecutionError_ErrorKind value) { + + origin_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.origin) +} + +// ------------------------------------------------------------------- + +// ErrorDocument + +// .flyteidl.core.ContainerError error = 1; +inline bool ErrorDocument::has_error() const { + return this != internal_default_instance() && error_ != nullptr; +} +inline void ErrorDocument::clear_error() { + if (GetArenaNoVirtual() == nullptr && error_ != nullptr) { + delete error_; + } + error_ = nullptr; +} +inline const ::flyteidl::core::ContainerError& ErrorDocument::error() const { + const ::flyteidl::core::ContainerError* p = error_; + // @@protoc_insertion_point(field_get:flyteidl.core.ErrorDocument.error) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_ContainerError_default_instance_); +} +inline ::flyteidl::core::ContainerError* ErrorDocument::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.core.ErrorDocument.error) + + ::flyteidl::core::ContainerError* temp = error_; + error_ = nullptr; + return temp; +} +inline ::flyteidl::core::ContainerError* ErrorDocument::mutable_error() { + + if (error_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::ContainerError>(GetArenaNoVirtual()); + error_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ErrorDocument.error) + return error_; +} +inline void ErrorDocument::set_allocated_error(::flyteidl::core::ContainerError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete error_; + } + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + + } else { + + } + error_ = error; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ErrorDocument.error) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::ContainerError_Kind> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ContainerError_Kind>() { + return ::flyteidl::core::ContainerError_Kind_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2ferrors_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc new file mode 100644 index 0000000000..e3dc0e7ad2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/execution.proto + +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h new file mode 100644 index 0000000000..ad903a7355 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/execution.proto +#ifndef GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED + +#include "flyteidl/core/execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc new file mode 100644 index 0000000000..fb4de05d6a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc @@ -0,0 +1,2798 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +#include "flyteidl/core/execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +namespace flyteidl { +namespace core { +class WorkflowExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecution_default_instance_; +class NodeExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecution_default_instance_; +class TaskExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecution_default_instance_; +class ExecutionErrorDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExecutionError_default_instance_; +class TaskLogDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskLog_default_instance_; +class QualityOfServiceSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _QualityOfServiceSpec_default_instance_; +class QualityOfServiceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + int tier_; + const ::flyteidl::core::QualityOfServiceSpec* spec_; +} _QualityOfService_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsWorkflowExecution_flyteidl_2fcore_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowExecution_default_instance_; + new (ptr) ::flyteidl::core::WorkflowExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowExecution::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecution_flyteidl_2fcore_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowExecution_flyteidl_2fcore_2fexecution_2eproto}, {}}; + +static void InitDefaultsNodeExecution_flyteidl_2fcore_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_NodeExecution_default_instance_; + new (ptr) ::flyteidl::core::NodeExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::NodeExecution::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecution_flyteidl_2fcore_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNodeExecution_flyteidl_2fcore_2fexecution_2eproto}, {}}; + +static void InitDefaultsTaskExecution_flyteidl_2fcore_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskExecution_default_instance_; + new (ptr) ::flyteidl::core::TaskExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskExecution::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecution_flyteidl_2fcore_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecution_flyteidl_2fcore_2fexecution_2eproto}, {}}; + +static void InitDefaultsExecutionError_flyteidl_2fcore_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ExecutionError_default_instance_; + new (ptr) ::flyteidl::core::ExecutionError(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ExecutionError::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionError_flyteidl_2fcore_2fexecution_2eproto}, {}}; + +static void InitDefaultsTaskLog_flyteidl_2fcore_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskLog_default_instance_; + new (ptr) ::flyteidl::core::TaskLog(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskLog::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskLog_flyteidl_2fcore_2fexecution_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsQualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_QualityOfServiceSpec_default_instance_; + new (ptr) ::flyteidl::core::QualityOfServiceSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::QualityOfServiceSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsQualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsQualityOfService_flyteidl_2fcore_2fexecution_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_QualityOfService_default_instance_; + new (ptr) ::flyteidl::core::QualityOfService(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::QualityOfService::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsQualityOfService_flyteidl_2fcore_2fexecution_2eproto}, { + &scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fexecution_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecution_flyteidl_2fcore_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecution_flyteidl_2fcore_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecution_flyteidl_2fcore_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[7]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[6]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fexecution_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, code_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, message_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, error_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, message_format_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, ttl_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfServiceSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfServiceSpec, queueing_budget_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfService, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfService, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::QualityOfServiceDefaultTypeInternal, tier_), + offsetof(::flyteidl::core::QualityOfServiceDefaultTypeInternal, spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfService, designation_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::WorkflowExecution)}, + { 5, -1, sizeof(::flyteidl::core::NodeExecution)}, + { 10, -1, sizeof(::flyteidl::core::TaskExecution)}, + { 15, -1, sizeof(::flyteidl::core::ExecutionError)}, + { 24, -1, sizeof(::flyteidl::core::TaskLog)}, + { 33, -1, sizeof(::flyteidl::core::QualityOfServiceSpec)}, + { 39, -1, sizeof(::flyteidl::core::QualityOfService)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_WorkflowExecution_default_instance_), + reinterpret_cast(&::flyteidl::core::_NodeExecution_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskExecution_default_instance_), + reinterpret_cast(&::flyteidl::core::_ExecutionError_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskLog_default_instance_), + reinterpret_cast(&::flyteidl::core::_QualityOfServiceSpec_default_instance_), + reinterpret_cast(&::flyteidl::core::_QualityOfService_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, "flyteidl/core/execution.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fexecution_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fexecution_2eproto, 7, file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fexecution_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fexecution_2eproto[] = + "\n\035flyteidl/core/execution.proto\022\rflyteid" + "l.core\032\036google/protobuf/duration.proto\"\247" + "\001\n\021WorkflowExecution\"\221\001\n\005Phase\022\r\n\tUNDEFI" + "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\022\014\n\010AB" + "ORTING\020\t\"\266\001\n\rNodeExecution\"\244\001\n\005Phase\022\r\n\t" + "UNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\t" + "SUCCEEDED\020\003\022\013\n\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007" + "ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\r\n\tTIMED_OUT\020\010\022\023\n" + "\017DYNAMIC_RUNNING\020\t\022\r\n\tRECOVERED\020\n\"\226\001\n\rTa" + "skExecution\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006" + "QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007" + "ABORTED\020\004\022\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022" + "\031\n\025WAITING_FOR_RESOURCES\020\007\"\251\001\n\016Execution" + "Error\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\t" + "error_uri\030\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl" + ".core.ExecutionError.ErrorKind\".\n\tErrorK" + "ind\022\013\n\007UNKNOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273" + "\001\n\007TaskLog\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n" + "\016message_format\030\003 \001(\0162$.flyteidl.core.Ta" + "skLog.MessageFormat\022&\n\003ttl\030\004 \001(\0132\031.googl" + "e.protobuf.Duration\"/\n\rMessageFormat\022\013\n\007" + "UNKNOWN\020\000\022\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityO" + "fServiceSpec\0222\n\017queueing_budget\030\001 \001(\0132\031." + "google.protobuf.Duration\"\302\001\n\020QualityOfSe" + "rvice\0224\n\004tier\030\001 \001(\0162$.flyteidl.core.Qual" + "ityOfService.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyt" + "eidl.core.QualityOfServiceSpecH\000\"4\n\004Tier" + "\022\r\n\tUNDEFINED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n" + "\003LOW\020\003B\r\n\013designationB6Z4github.com/flyt" + "eorg/flyteidl/gen/pb-go/flyteidl/coreb\006p" + "roto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fexecution_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fexecution_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fexecution_2eproto, + "flyteidl/core/execution.proto", &assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto, 1285, +}; + +void AddDescriptors_flyteidl_2fcore_2fexecution_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fexecution_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fexecution_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fexecution_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* WorkflowExecution_Phase_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[0]; +} +bool WorkflowExecution_Phase_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const WorkflowExecution_Phase WorkflowExecution::UNDEFINED; +const WorkflowExecution_Phase WorkflowExecution::QUEUED; +const WorkflowExecution_Phase WorkflowExecution::RUNNING; +const WorkflowExecution_Phase WorkflowExecution::SUCCEEDING; +const WorkflowExecution_Phase WorkflowExecution::SUCCEEDED; +const WorkflowExecution_Phase WorkflowExecution::FAILING; +const WorkflowExecution_Phase WorkflowExecution::FAILED; +const WorkflowExecution_Phase WorkflowExecution::ABORTED; +const WorkflowExecution_Phase WorkflowExecution::TIMED_OUT; +const WorkflowExecution_Phase WorkflowExecution::ABORTING; +const WorkflowExecution_Phase WorkflowExecution::Phase_MIN; +const WorkflowExecution_Phase WorkflowExecution::Phase_MAX; +const int WorkflowExecution::Phase_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* NodeExecution_Phase_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[1]; +} +bool NodeExecution_Phase_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const NodeExecution_Phase NodeExecution::UNDEFINED; +const NodeExecution_Phase NodeExecution::QUEUED; +const NodeExecution_Phase NodeExecution::RUNNING; +const NodeExecution_Phase NodeExecution::SUCCEEDED; +const NodeExecution_Phase NodeExecution::FAILING; +const NodeExecution_Phase NodeExecution::FAILED; +const NodeExecution_Phase NodeExecution::ABORTED; +const NodeExecution_Phase NodeExecution::SKIPPED; +const NodeExecution_Phase NodeExecution::TIMED_OUT; +const NodeExecution_Phase NodeExecution::DYNAMIC_RUNNING; +const NodeExecution_Phase NodeExecution::RECOVERED; +const NodeExecution_Phase NodeExecution::Phase_MIN; +const NodeExecution_Phase NodeExecution::Phase_MAX; +const int NodeExecution::Phase_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* TaskExecution_Phase_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[2]; +} +bool TaskExecution_Phase_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TaskExecution_Phase TaskExecution::UNDEFINED; +const TaskExecution_Phase TaskExecution::QUEUED; +const TaskExecution_Phase TaskExecution::RUNNING; +const TaskExecution_Phase TaskExecution::SUCCEEDED; +const TaskExecution_Phase TaskExecution::ABORTED; +const TaskExecution_Phase TaskExecution::FAILED; +const TaskExecution_Phase TaskExecution::INITIALIZING; +const TaskExecution_Phase TaskExecution::WAITING_FOR_RESOURCES; +const TaskExecution_Phase TaskExecution::Phase_MIN; +const TaskExecution_Phase TaskExecution::Phase_MAX; +const int TaskExecution::Phase_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* ExecutionError_ErrorKind_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[3]; +} +bool ExecutionError_ErrorKind_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ExecutionError_ErrorKind ExecutionError::UNKNOWN; +const ExecutionError_ErrorKind ExecutionError::USER; +const ExecutionError_ErrorKind ExecutionError::SYSTEM; +const ExecutionError_ErrorKind ExecutionError::ErrorKind_MIN; +const ExecutionError_ErrorKind ExecutionError::ErrorKind_MAX; +const int ExecutionError::ErrorKind_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* TaskLog_MessageFormat_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[4]; +} +bool TaskLog_MessageFormat_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TaskLog_MessageFormat TaskLog::UNKNOWN; +const TaskLog_MessageFormat TaskLog::CSV; +const TaskLog_MessageFormat TaskLog::JSON; +const TaskLog_MessageFormat TaskLog::MessageFormat_MIN; +const TaskLog_MessageFormat TaskLog::MessageFormat_MAX; +const int TaskLog::MessageFormat_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* QualityOfService_Tier_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[5]; +} +bool QualityOfService_Tier_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const QualityOfService_Tier QualityOfService::UNDEFINED; +const QualityOfService_Tier QualityOfService::HIGH; +const QualityOfService_Tier QualityOfService::MEDIUM; +const QualityOfService_Tier QualityOfService::LOW; +const QualityOfService_Tier QualityOfService::Tier_MIN; +const QualityOfService_Tier QualityOfService::Tier_MAX; +const int QualityOfService::Tier_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void WorkflowExecution::InitAsDefaultInstance() { +} +class WorkflowExecution::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecution::WorkflowExecution() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowExecution) +} +WorkflowExecution::WorkflowExecution(const WorkflowExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowExecution) +} + +void WorkflowExecution::SharedCtor() { +} + +WorkflowExecution::~WorkflowExecution() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowExecution) + SharedDtor(); +} + +void WorkflowExecution::SharedDtor() { +} + +void WorkflowExecution::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecution& WorkflowExecution::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecution_flyteidl_2fcore_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecution::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowExecution) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowExecution) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowExecution) +} + +::google::protobuf::uint8* WorkflowExecution::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowExecution) + return target; +} + +size_t WorkflowExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowExecution) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowExecution) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecution* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowExecution) + MergeFrom(*source); + } +} + +void WorkflowExecution::MergeFrom(const WorkflowExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecution::CopyFrom(const WorkflowExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecution::IsInitialized() const { + return true; +} + +void WorkflowExecution::Swap(WorkflowExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecution::InternalSwap(WorkflowExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata WorkflowExecution::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecution::InitAsDefaultInstance() { +} +class NodeExecution::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecution::NodeExecution() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.NodeExecution) +} +NodeExecution::NodeExecution(const NodeExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeExecution) +} + +void NodeExecution::SharedCtor() { +} + +NodeExecution::~NodeExecution() { + // @@protoc_insertion_point(destructor:flyteidl.core.NodeExecution) + SharedDtor(); +} + +void NodeExecution::SharedDtor() { +} + +void NodeExecution::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecution& NodeExecution::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecution_flyteidl_2fcore_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecution::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.NodeExecution) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.NodeExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeExecution) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeExecution) +} + +::google::protobuf::uint8* NodeExecution::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.NodeExecution) + return target; +} + +size_t NodeExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeExecution) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecution* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeExecution) + MergeFrom(*source); + } +} + +void NodeExecution::MergeFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void NodeExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecution::CopyFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecution::IsInitialized() const { + return true; +} + +void NodeExecution::Swap(NodeExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecution::InternalSwap(NodeExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata NodeExecution::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecution::InitAsDefaultInstance() { +} +class TaskExecution::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecution::TaskExecution() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskExecution) +} +TaskExecution::TaskExecution(const TaskExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskExecution) +} + +void TaskExecution::SharedCtor() { +} + +TaskExecution::~TaskExecution() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskExecution) + SharedDtor(); +} + +void TaskExecution::SharedDtor() { +} + +void TaskExecution::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecution& TaskExecution::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecution_flyteidl_2fcore_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecution::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskExecution) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskExecution) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskExecution) +} + +::google::protobuf::uint8* TaskExecution::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskExecution) + return target; +} + +size_t TaskExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskExecution) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecution* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskExecution) + MergeFrom(*source); + } +} + +void TaskExecution::MergeFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TaskExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecution::CopyFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecution::IsInitialized() const { + return true; +} + +void TaskExecution::Swap(TaskExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecution::InternalSwap(TaskExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TaskExecution::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionError::InitAsDefaultInstance() { +} +class ExecutionError::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionError::kCodeFieldNumber; +const int ExecutionError::kMessageFieldNumber; +const int ExecutionError::kErrorUriFieldNumber; +const int ExecutionError::kKindFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionError::ExecutionError() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ExecutionError) +} +ExecutionError::ExecutionError(const ExecutionError& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.code().size() > 0) { + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + error_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.error_uri().size() > 0) { + error_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_uri_); + } + kind_ = from.kind_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ExecutionError) +} + +void ExecutionError::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base); + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + error_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kind_ = 0; +} + +ExecutionError::~ExecutionError() { + // @@protoc_insertion_point(destructor:flyteidl.core.ExecutionError) + SharedDtor(); +} + +void ExecutionError::SharedDtor() { + code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + error_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ExecutionError::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExecutionError& ExecutionError::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void ExecutionError::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ExecutionError) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + error_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kind_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExecutionError::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string code = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ExecutionError.code"); + object = msg->mutable_code(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string message = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ExecutionError.message"); + object = msg->mutable_message(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string error_uri = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ExecutionError.error_uri"); + object = msg->mutable_error_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.ExecutionError.ErrorKind kind = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_kind(static_cast<::flyteidl::core::ExecutionError_ErrorKind>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExecutionError::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ExecutionError) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string code = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_code())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ExecutionError.code")); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ExecutionError.message")); + } else { + goto handle_unusual; + } + break; + } + + // string error_uri = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_error_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->error_uri().data(), static_cast(this->error_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ExecutionError.error_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError.ErrorKind kind = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_kind(static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ExecutionError) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ExecutionError) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExecutionError::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ExecutionError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.code"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->code(), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + // string error_uri = 3; + if (this->error_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->error_uri().data(), static_cast(this->error_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.error_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->error_uri(), output); + } + + // .flyteidl.core.ExecutionError.ErrorKind kind = 4; + if (this->kind() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->kind(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ExecutionError) +} + +::google::protobuf::uint8* ExecutionError::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ExecutionError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.code"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->code(), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + // string error_uri = 3; + if (this->error_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->error_uri().data(), static_cast(this->error_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.error_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->error_uri(), target); + } + + // .flyteidl.core.ExecutionError.ErrorKind kind = 4; + if (this->kind() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->kind(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ExecutionError) + return target; +} + +size_t ExecutionError::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ExecutionError) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->code()); + } + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // string error_uri = 3; + if (this->error_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->error_uri()); + } + + // .flyteidl.core.ExecutionError.ErrorKind kind = 4; + if (this->kind() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExecutionError::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ExecutionError) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionError* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ExecutionError) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ExecutionError) + MergeFrom(*source); + } +} + +void ExecutionError::MergeFrom(const ExecutionError& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ExecutionError) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.code().size() > 0) { + + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (from.error_uri().size() > 0) { + + error_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_uri_); + } + if (from.kind() != 0) { + set_kind(from.kind()); + } +} + +void ExecutionError::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ExecutionError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionError::CopyFrom(const ExecutionError& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ExecutionError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionError::IsInitialized() const { + return true; +} + +void ExecutionError::Swap(ExecutionError* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionError::InternalSwap(ExecutionError* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + code_.Swap(&other->code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + error_uri_.Swap(&other->error_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(kind_, other->kind_); +} + +::google::protobuf::Metadata ExecutionError::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskLog::InitAsDefaultInstance() { + ::flyteidl::core::_TaskLog_default_instance_._instance.get_mutable()->ttl_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +class TaskLog::HasBitSetters { + public: + static const ::google::protobuf::Duration& ttl(const TaskLog* msg); +}; + +const ::google::protobuf::Duration& +TaskLog::HasBitSetters::ttl(const TaskLog* msg) { + return *msg->ttl_; +} +void TaskLog::clear_ttl() { + if (GetArenaNoVirtual() == nullptr && ttl_ != nullptr) { + delete ttl_; + } + ttl_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskLog::kUriFieldNumber; +const int TaskLog::kNameFieldNumber; +const int TaskLog::kMessageFormatFieldNumber; +const int TaskLog::kTtlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskLog::TaskLog() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskLog) +} +TaskLog::TaskLog(const TaskLog& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uri().size() > 0) { + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_ttl()) { + ttl_ = new ::google::protobuf::Duration(*from.ttl_); + } else { + ttl_ = nullptr; + } + message_format_ = from.message_format_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskLog) +} + +void TaskLog::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&ttl_, 0, static_cast( + reinterpret_cast(&message_format_) - + reinterpret_cast(&ttl_)) + sizeof(message_format_)); +} + +TaskLog::~TaskLog() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskLog) + SharedDtor(); +} + +void TaskLog::SharedDtor() { + uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete ttl_; +} + +void TaskLog::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskLog& TaskLog::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void TaskLog::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskLog) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && ttl_ != nullptr) { + delete ttl_; + } + ttl_ = nullptr; + message_format_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskLog::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string uri = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskLog.uri"); + object = msg->mutable_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskLog.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_message_format(static_cast<::flyteidl::core::TaskLog_MessageFormat>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Duration ttl = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_ttl(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskLog::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskLog) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string uri = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskLog.uri")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskLog.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_message_format(static_cast< ::flyteidl::core::TaskLog_MessageFormat >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration ttl = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ttl())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskLog) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskLog) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskLog::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskLog) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->uri(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + if (this->message_format() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->message_format(), output); + } + + // .google.protobuf.Duration ttl = 4; + if (this->has_ttl()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::ttl(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskLog) +} + +::google::protobuf::uint8* TaskLog::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskLog) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->uri(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + if (this->message_format() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->message_format(), target); + } + + // .google.protobuf.Duration ttl = 4; + if (this->has_ttl()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::ttl(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskLog) + return target; +} + +size_t TaskLog::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskLog) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .google.protobuf.Duration ttl = 4; + if (this->has_ttl()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ttl_); + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + if (this->message_format() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->message_format()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskLog::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskLog) + GOOGLE_DCHECK_NE(&from, this); + const TaskLog* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskLog) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskLog) + MergeFrom(*source); + } +} + +void TaskLog::MergeFrom(const TaskLog& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskLog) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.uri().size() > 0) { + + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_ttl()) { + mutable_ttl()->::google::protobuf::Duration::MergeFrom(from.ttl()); + } + if (from.message_format() != 0) { + set_message_format(from.message_format()); + } +} + +void TaskLog::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskLog) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskLog::CopyFrom(const TaskLog& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskLog) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskLog::IsInitialized() const { + return true; +} + +void TaskLog::Swap(TaskLog* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskLog::InternalSwap(TaskLog* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(ttl_, other->ttl_); + swap(message_format_, other->message_format_); +} + +::google::protobuf::Metadata TaskLog::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void QualityOfServiceSpec::InitAsDefaultInstance() { + ::flyteidl::core::_QualityOfServiceSpec_default_instance_._instance.get_mutable()->queueing_budget_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +class QualityOfServiceSpec::HasBitSetters { + public: + static const ::google::protobuf::Duration& queueing_budget(const QualityOfServiceSpec* msg); +}; + +const ::google::protobuf::Duration& +QualityOfServiceSpec::HasBitSetters::queueing_budget(const QualityOfServiceSpec* msg) { + return *msg->queueing_budget_; +} +void QualityOfServiceSpec::clear_queueing_budget() { + if (GetArenaNoVirtual() == nullptr && queueing_budget_ != nullptr) { + delete queueing_budget_; + } + queueing_budget_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int QualityOfServiceSpec::kQueueingBudgetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +QualityOfServiceSpec::QualityOfServiceSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.QualityOfServiceSpec) +} +QualityOfServiceSpec::QualityOfServiceSpec(const QualityOfServiceSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_queueing_budget()) { + queueing_budget_ = new ::google::protobuf::Duration(*from.queueing_budget_); + } else { + queueing_budget_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.QualityOfServiceSpec) +} + +void QualityOfServiceSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base); + queueing_budget_ = nullptr; +} + +QualityOfServiceSpec::~QualityOfServiceSpec() { + // @@protoc_insertion_point(destructor:flyteidl.core.QualityOfServiceSpec) + SharedDtor(); +} + +void QualityOfServiceSpec::SharedDtor() { + if (this != internal_default_instance()) delete queueing_budget_; +} + +void QualityOfServiceSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const QualityOfServiceSpec& QualityOfServiceSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void QualityOfServiceSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.QualityOfServiceSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && queueing_budget_ != nullptr) { + delete queueing_budget_; + } + queueing_budget_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* QualityOfServiceSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .google.protobuf.Duration queueing_budget = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_queueing_budget(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool QualityOfServiceSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.QualityOfServiceSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .google.protobuf.Duration queueing_budget = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_queueing_budget())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.QualityOfServiceSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.QualityOfServiceSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void QualityOfServiceSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.QualityOfServiceSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Duration queueing_budget = 1; + if (this->has_queueing_budget()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::queueing_budget(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.QualityOfServiceSpec) +} + +::google::protobuf::uint8* QualityOfServiceSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.QualityOfServiceSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Duration queueing_budget = 1; + if (this->has_queueing_budget()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::queueing_budget(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.QualityOfServiceSpec) + return target; +} + +size_t QualityOfServiceSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.QualityOfServiceSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Duration queueing_budget = 1; + if (this->has_queueing_budget()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *queueing_budget_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void QualityOfServiceSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.QualityOfServiceSpec) + GOOGLE_DCHECK_NE(&from, this); + const QualityOfServiceSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.QualityOfServiceSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.QualityOfServiceSpec) + MergeFrom(*source); + } +} + +void QualityOfServiceSpec::MergeFrom(const QualityOfServiceSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.QualityOfServiceSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_queueing_budget()) { + mutable_queueing_budget()->::google::protobuf::Duration::MergeFrom(from.queueing_budget()); + } +} + +void QualityOfServiceSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.QualityOfServiceSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QualityOfServiceSpec::CopyFrom(const QualityOfServiceSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.QualityOfServiceSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QualityOfServiceSpec::IsInitialized() const { + return true; +} + +void QualityOfServiceSpec::Swap(QualityOfServiceSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void QualityOfServiceSpec::InternalSwap(QualityOfServiceSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(queueing_budget_, other->queueing_budget_); +} + +::google::protobuf::Metadata QualityOfServiceSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void QualityOfService::InitAsDefaultInstance() { + ::flyteidl::core::_QualityOfService_default_instance_.tier_ = 0; + ::flyteidl::core::_QualityOfService_default_instance_.spec_ = const_cast< ::flyteidl::core::QualityOfServiceSpec*>( + ::flyteidl::core::QualityOfServiceSpec::internal_default_instance()); +} +class QualityOfService::HasBitSetters { + public: + static const ::flyteidl::core::QualityOfServiceSpec& spec(const QualityOfService* msg); +}; + +const ::flyteidl::core::QualityOfServiceSpec& +QualityOfService::HasBitSetters::spec(const QualityOfService* msg) { + return *msg->designation_.spec_; +} +void QualityOfService::set_allocated_spec(::flyteidl::core::QualityOfServiceSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_designation(); + if (spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + set_has_spec(); + designation_.spec_ = spec; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.QualityOfService.spec) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int QualityOfService::kTierFieldNumber; +const int QualityOfService::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +QualityOfService::QualityOfService() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.QualityOfService) +} +QualityOfService::QualityOfService(const QualityOfService& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_designation(); + switch (from.designation_case()) { + case kTier: { + set_tier(from.tier()); + break; + } + case kSpec: { + mutable_spec()->::flyteidl::core::QualityOfServiceSpec::MergeFrom(from.spec()); + break; + } + case DESIGNATION_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.QualityOfService) +} + +void QualityOfService::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base); + clear_has_designation(); +} + +QualityOfService::~QualityOfService() { + // @@protoc_insertion_point(destructor:flyteidl.core.QualityOfService) + SharedDtor(); +} + +void QualityOfService::SharedDtor() { + if (has_designation()) { + clear_designation(); + } +} + +void QualityOfService::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const QualityOfService& QualityOfService::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base); + return *internal_default_instance(); +} + + +void QualityOfService::clear_designation() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.QualityOfService) + switch (designation_case()) { + case kTier: { + // No need to clear + break; + } + case kSpec: { + delete designation_.spec_; + break; + } + case DESIGNATION_NOT_SET: { + break; + } + } + _oneof_case_[0] = DESIGNATION_NOT_SET; +} + + +void QualityOfService::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.QualityOfService) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_designation(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* QualityOfService::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.QualityOfService.Tier tier = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_tier(static_cast<::flyteidl::core::QualityOfService_Tier>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.QualityOfServiceSpec spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::QualityOfServiceSpec::_InternalParse; + object = msg->mutable_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool QualityOfService::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.QualityOfService) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.QualityOfService.Tier tier = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_tier(static_cast< ::flyteidl::core::QualityOfService_Tier >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.QualityOfServiceSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.QualityOfService) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.QualityOfService) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void QualityOfService::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.QualityOfService) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.QualityOfService.Tier tier = 1; + if (has_tier()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->tier(), output); + } + + // .flyteidl.core.QualityOfServiceSpec spec = 2; + if (has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::spec(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.QualityOfService) +} + +::google::protobuf::uint8* QualityOfService::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.QualityOfService) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.QualityOfService.Tier tier = 1; + if (has_tier()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->tier(), target); + } + + // .flyteidl.core.QualityOfServiceSpec spec = 2; + if (has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::spec(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.QualityOfService) + return target; +} + +size_t QualityOfService::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.QualityOfService) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (designation_case()) { + // .flyteidl.core.QualityOfService.Tier tier = 1; + case kTier: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->tier()); + break; + } + // .flyteidl.core.QualityOfServiceSpec spec = 2; + case kSpec: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *designation_.spec_); + break; + } + case DESIGNATION_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void QualityOfService::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.QualityOfService) + GOOGLE_DCHECK_NE(&from, this); + const QualityOfService* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.QualityOfService) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.QualityOfService) + MergeFrom(*source); + } +} + +void QualityOfService::MergeFrom(const QualityOfService& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.QualityOfService) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.designation_case()) { + case kTier: { + set_tier(from.tier()); + break; + } + case kSpec: { + mutable_spec()->::flyteidl::core::QualityOfServiceSpec::MergeFrom(from.spec()); + break; + } + case DESIGNATION_NOT_SET: { + break; + } + } +} + +void QualityOfService::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.QualityOfService) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QualityOfService::CopyFrom(const QualityOfService& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.QualityOfService) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QualityOfService::IsInitialized() const { + return true; +} + +void QualityOfService::Swap(QualityOfService* other) { + if (other == this) return; + InternalSwap(other); +} +void QualityOfService::InternalSwap(QualityOfService* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(designation_, other->designation_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata QualityOfService::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowExecution* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowExecution >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowExecution >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::NodeExecution* Arena::CreateMaybeMessage< ::flyteidl::core::NodeExecution >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::NodeExecution >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskExecution* Arena::CreateMaybeMessage< ::flyteidl::core::TaskExecution >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskExecution >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ExecutionError* Arena::CreateMaybeMessage< ::flyteidl::core::ExecutionError >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ExecutionError >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskLog* Arena::CreateMaybeMessage< ::flyteidl::core::TaskLog >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskLog >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::QualityOfServiceSpec* Arena::CreateMaybeMessage< ::flyteidl::core::QualityOfServiceSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::QualityOfServiceSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::QualityOfService* Arena::CreateMaybeMessage< ::flyteidl::core::QualityOfService >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::QualityOfService >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h new file mode 100644 index 0000000000..6613332d60 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h @@ -0,0 +1,1897 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fexecution_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fexecution_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fexecution_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fexecution_2eproto(); +namespace flyteidl { +namespace core { +class ExecutionError; +class ExecutionErrorDefaultTypeInternal; +extern ExecutionErrorDefaultTypeInternal _ExecutionError_default_instance_; +class NodeExecution; +class NodeExecutionDefaultTypeInternal; +extern NodeExecutionDefaultTypeInternal _NodeExecution_default_instance_; +class QualityOfService; +class QualityOfServiceDefaultTypeInternal; +extern QualityOfServiceDefaultTypeInternal _QualityOfService_default_instance_; +class QualityOfServiceSpec; +class QualityOfServiceSpecDefaultTypeInternal; +extern QualityOfServiceSpecDefaultTypeInternal _QualityOfServiceSpec_default_instance_; +class TaskExecution; +class TaskExecutionDefaultTypeInternal; +extern TaskExecutionDefaultTypeInternal _TaskExecution_default_instance_; +class TaskLog; +class TaskLogDefaultTypeInternal; +extern TaskLogDefaultTypeInternal _TaskLog_default_instance_; +class WorkflowExecution; +class WorkflowExecutionDefaultTypeInternal; +extern WorkflowExecutionDefaultTypeInternal _WorkflowExecution_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::ExecutionError* Arena::CreateMaybeMessage<::flyteidl::core::ExecutionError>(Arena*); +template<> ::flyteidl::core::NodeExecution* Arena::CreateMaybeMessage<::flyteidl::core::NodeExecution>(Arena*); +template<> ::flyteidl::core::QualityOfService* Arena::CreateMaybeMessage<::flyteidl::core::QualityOfService>(Arena*); +template<> ::flyteidl::core::QualityOfServiceSpec* Arena::CreateMaybeMessage<::flyteidl::core::QualityOfServiceSpec>(Arena*); +template<> ::flyteidl::core::TaskExecution* Arena::CreateMaybeMessage<::flyteidl::core::TaskExecution>(Arena*); +template<> ::flyteidl::core::TaskLog* Arena::CreateMaybeMessage<::flyteidl::core::TaskLog>(Arena*); +template<> ::flyteidl::core::WorkflowExecution* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowExecution>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum WorkflowExecution_Phase { + WorkflowExecution_Phase_UNDEFINED = 0, + WorkflowExecution_Phase_QUEUED = 1, + WorkflowExecution_Phase_RUNNING = 2, + WorkflowExecution_Phase_SUCCEEDING = 3, + WorkflowExecution_Phase_SUCCEEDED = 4, + WorkflowExecution_Phase_FAILING = 5, + WorkflowExecution_Phase_FAILED = 6, + WorkflowExecution_Phase_ABORTED = 7, + WorkflowExecution_Phase_TIMED_OUT = 8, + WorkflowExecution_Phase_ABORTING = 9, + WorkflowExecution_Phase_WorkflowExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + WorkflowExecution_Phase_WorkflowExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool WorkflowExecution_Phase_IsValid(int value); +const WorkflowExecution_Phase WorkflowExecution_Phase_Phase_MIN = WorkflowExecution_Phase_UNDEFINED; +const WorkflowExecution_Phase WorkflowExecution_Phase_Phase_MAX = WorkflowExecution_Phase_ABORTING; +const int WorkflowExecution_Phase_Phase_ARRAYSIZE = WorkflowExecution_Phase_Phase_MAX + 1; + +const ::google::protobuf::EnumDescriptor* WorkflowExecution_Phase_descriptor(); +inline const ::std::string& WorkflowExecution_Phase_Name(WorkflowExecution_Phase value) { + return ::google::protobuf::internal::NameOfEnum( + WorkflowExecution_Phase_descriptor(), value); +} +inline bool WorkflowExecution_Phase_Parse( + const ::std::string& name, WorkflowExecution_Phase* value) { + return ::google::protobuf::internal::ParseNamedEnum( + WorkflowExecution_Phase_descriptor(), name, value); +} +enum NodeExecution_Phase { + NodeExecution_Phase_UNDEFINED = 0, + NodeExecution_Phase_QUEUED = 1, + NodeExecution_Phase_RUNNING = 2, + NodeExecution_Phase_SUCCEEDED = 3, + NodeExecution_Phase_FAILING = 4, + NodeExecution_Phase_FAILED = 5, + NodeExecution_Phase_ABORTED = 6, + NodeExecution_Phase_SKIPPED = 7, + NodeExecution_Phase_TIMED_OUT = 8, + NodeExecution_Phase_DYNAMIC_RUNNING = 9, + NodeExecution_Phase_RECOVERED = 10, + NodeExecution_Phase_NodeExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + NodeExecution_Phase_NodeExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool NodeExecution_Phase_IsValid(int value); +const NodeExecution_Phase NodeExecution_Phase_Phase_MIN = NodeExecution_Phase_UNDEFINED; +const NodeExecution_Phase NodeExecution_Phase_Phase_MAX = NodeExecution_Phase_RECOVERED; +const int NodeExecution_Phase_Phase_ARRAYSIZE = NodeExecution_Phase_Phase_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NodeExecution_Phase_descriptor(); +inline const ::std::string& NodeExecution_Phase_Name(NodeExecution_Phase value) { + return ::google::protobuf::internal::NameOfEnum( + NodeExecution_Phase_descriptor(), value); +} +inline bool NodeExecution_Phase_Parse( + const ::std::string& name, NodeExecution_Phase* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NodeExecution_Phase_descriptor(), name, value); +} +enum TaskExecution_Phase { + TaskExecution_Phase_UNDEFINED = 0, + TaskExecution_Phase_QUEUED = 1, + TaskExecution_Phase_RUNNING = 2, + TaskExecution_Phase_SUCCEEDED = 3, + TaskExecution_Phase_ABORTED = 4, + TaskExecution_Phase_FAILED = 5, + TaskExecution_Phase_INITIALIZING = 6, + TaskExecution_Phase_WAITING_FOR_RESOURCES = 7, + TaskExecution_Phase_TaskExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + TaskExecution_Phase_TaskExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool TaskExecution_Phase_IsValid(int value); +const TaskExecution_Phase TaskExecution_Phase_Phase_MIN = TaskExecution_Phase_UNDEFINED; +const TaskExecution_Phase TaskExecution_Phase_Phase_MAX = TaskExecution_Phase_WAITING_FOR_RESOURCES; +const int TaskExecution_Phase_Phase_ARRAYSIZE = TaskExecution_Phase_Phase_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TaskExecution_Phase_descriptor(); +inline const ::std::string& TaskExecution_Phase_Name(TaskExecution_Phase value) { + return ::google::protobuf::internal::NameOfEnum( + TaskExecution_Phase_descriptor(), value); +} +inline bool TaskExecution_Phase_Parse( + const ::std::string& name, TaskExecution_Phase* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TaskExecution_Phase_descriptor(), name, value); +} +enum ExecutionError_ErrorKind { + ExecutionError_ErrorKind_UNKNOWN = 0, + ExecutionError_ErrorKind_USER = 1, + ExecutionError_ErrorKind_SYSTEM = 2, + ExecutionError_ErrorKind_ExecutionError_ErrorKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ExecutionError_ErrorKind_ExecutionError_ErrorKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ExecutionError_ErrorKind_IsValid(int value); +const ExecutionError_ErrorKind ExecutionError_ErrorKind_ErrorKind_MIN = ExecutionError_ErrorKind_UNKNOWN; +const ExecutionError_ErrorKind ExecutionError_ErrorKind_ErrorKind_MAX = ExecutionError_ErrorKind_SYSTEM; +const int ExecutionError_ErrorKind_ErrorKind_ARRAYSIZE = ExecutionError_ErrorKind_ErrorKind_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ExecutionError_ErrorKind_descriptor(); +inline const ::std::string& ExecutionError_ErrorKind_Name(ExecutionError_ErrorKind value) { + return ::google::protobuf::internal::NameOfEnum( + ExecutionError_ErrorKind_descriptor(), value); +} +inline bool ExecutionError_ErrorKind_Parse( + const ::std::string& name, ExecutionError_ErrorKind* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ExecutionError_ErrorKind_descriptor(), name, value); +} +enum TaskLog_MessageFormat { + TaskLog_MessageFormat_UNKNOWN = 0, + TaskLog_MessageFormat_CSV = 1, + TaskLog_MessageFormat_JSON = 2, + TaskLog_MessageFormat_TaskLog_MessageFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + TaskLog_MessageFormat_TaskLog_MessageFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool TaskLog_MessageFormat_IsValid(int value); +const TaskLog_MessageFormat TaskLog_MessageFormat_MessageFormat_MIN = TaskLog_MessageFormat_UNKNOWN; +const TaskLog_MessageFormat TaskLog_MessageFormat_MessageFormat_MAX = TaskLog_MessageFormat_JSON; +const int TaskLog_MessageFormat_MessageFormat_ARRAYSIZE = TaskLog_MessageFormat_MessageFormat_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TaskLog_MessageFormat_descriptor(); +inline const ::std::string& TaskLog_MessageFormat_Name(TaskLog_MessageFormat value) { + return ::google::protobuf::internal::NameOfEnum( + TaskLog_MessageFormat_descriptor(), value); +} +inline bool TaskLog_MessageFormat_Parse( + const ::std::string& name, TaskLog_MessageFormat* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TaskLog_MessageFormat_descriptor(), name, value); +} +enum QualityOfService_Tier { + QualityOfService_Tier_UNDEFINED = 0, + QualityOfService_Tier_HIGH = 1, + QualityOfService_Tier_MEDIUM = 2, + QualityOfService_Tier_LOW = 3, + QualityOfService_Tier_QualityOfService_Tier_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + QualityOfService_Tier_QualityOfService_Tier_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool QualityOfService_Tier_IsValid(int value); +const QualityOfService_Tier QualityOfService_Tier_Tier_MIN = QualityOfService_Tier_UNDEFINED; +const QualityOfService_Tier QualityOfService_Tier_Tier_MAX = QualityOfService_Tier_LOW; +const int QualityOfService_Tier_Tier_ARRAYSIZE = QualityOfService_Tier_Tier_MAX + 1; + +const ::google::protobuf::EnumDescriptor* QualityOfService_Tier_descriptor(); +inline const ::std::string& QualityOfService_Tier_Name(QualityOfService_Tier value) { + return ::google::protobuf::internal::NameOfEnum( + QualityOfService_Tier_descriptor(), value); +} +inline bool QualityOfService_Tier_Parse( + const ::std::string& name, QualityOfService_Tier* value) { + return ::google::protobuf::internal::ParseNamedEnum( + QualityOfService_Tier_descriptor(), name, value); +} +// =================================================================== + +class WorkflowExecution final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowExecution) */ { + public: + WorkflowExecution(); + virtual ~WorkflowExecution(); + + WorkflowExecution(const WorkflowExecution& from); + + inline WorkflowExecution& operator=(const WorkflowExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecution(WorkflowExecution&& from) noexcept + : WorkflowExecution() { + *this = ::std::move(from); + } + + inline WorkflowExecution& operator=(WorkflowExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecution* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecution_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(WorkflowExecution* other); + friend void swap(WorkflowExecution& a, WorkflowExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecution* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecution* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecution& from); + void MergeFrom(const WorkflowExecution& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef WorkflowExecution_Phase Phase; + static const Phase UNDEFINED = + WorkflowExecution_Phase_UNDEFINED; + static const Phase QUEUED = + WorkflowExecution_Phase_QUEUED; + static const Phase RUNNING = + WorkflowExecution_Phase_RUNNING; + static const Phase SUCCEEDING = + WorkflowExecution_Phase_SUCCEEDING; + static const Phase SUCCEEDED = + WorkflowExecution_Phase_SUCCEEDED; + static const Phase FAILING = + WorkflowExecution_Phase_FAILING; + static const Phase FAILED = + WorkflowExecution_Phase_FAILED; + static const Phase ABORTED = + WorkflowExecution_Phase_ABORTED; + static const Phase TIMED_OUT = + WorkflowExecution_Phase_TIMED_OUT; + static const Phase ABORTING = + WorkflowExecution_Phase_ABORTING; + static inline bool Phase_IsValid(int value) { + return WorkflowExecution_Phase_IsValid(value); + } + static const Phase Phase_MIN = + WorkflowExecution_Phase_Phase_MIN; + static const Phase Phase_MAX = + WorkflowExecution_Phase_Phase_MAX; + static const int Phase_ARRAYSIZE = + WorkflowExecution_Phase_Phase_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Phase_descriptor() { + return WorkflowExecution_Phase_descriptor(); + } + static inline const ::std::string& Phase_Name(Phase value) { + return WorkflowExecution_Phase_Name(value); + } + static inline bool Phase_Parse(const ::std::string& name, + Phase* value) { + return WorkflowExecution_Phase_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecution final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeExecution) */ { + public: + NodeExecution(); + virtual ~NodeExecution(); + + NodeExecution(const NodeExecution& from); + + inline NodeExecution& operator=(const NodeExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecution(NodeExecution&& from) noexcept + : NodeExecution() { + *this = ::std::move(from); + } + + inline NodeExecution& operator=(NodeExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecution* internal_default_instance() { + return reinterpret_cast( + &_NodeExecution_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(NodeExecution* other); + friend void swap(NodeExecution& a, NodeExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecution* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecution* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecution& from); + void MergeFrom(const NodeExecution& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef NodeExecution_Phase Phase; + static const Phase UNDEFINED = + NodeExecution_Phase_UNDEFINED; + static const Phase QUEUED = + NodeExecution_Phase_QUEUED; + static const Phase RUNNING = + NodeExecution_Phase_RUNNING; + static const Phase SUCCEEDED = + NodeExecution_Phase_SUCCEEDED; + static const Phase FAILING = + NodeExecution_Phase_FAILING; + static const Phase FAILED = + NodeExecution_Phase_FAILED; + static const Phase ABORTED = + NodeExecution_Phase_ABORTED; + static const Phase SKIPPED = + NodeExecution_Phase_SKIPPED; + static const Phase TIMED_OUT = + NodeExecution_Phase_TIMED_OUT; + static const Phase DYNAMIC_RUNNING = + NodeExecution_Phase_DYNAMIC_RUNNING; + static const Phase RECOVERED = + NodeExecution_Phase_RECOVERED; + static inline bool Phase_IsValid(int value) { + return NodeExecution_Phase_IsValid(value); + } + static const Phase Phase_MIN = + NodeExecution_Phase_Phase_MIN; + static const Phase Phase_MAX = + NodeExecution_Phase_Phase_MAX; + static const int Phase_ARRAYSIZE = + NodeExecution_Phase_Phase_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Phase_descriptor() { + return NodeExecution_Phase_descriptor(); + } + static inline const ::std::string& Phase_Name(Phase value) { + return NodeExecution_Phase_Name(value); + } + static inline bool Phase_Parse(const ::std::string& name, + Phase* value) { + return NodeExecution_Phase_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecution final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskExecution) */ { + public: + TaskExecution(); + virtual ~TaskExecution(); + + TaskExecution(const TaskExecution& from); + + inline TaskExecution& operator=(const TaskExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecution(TaskExecution&& from) noexcept + : TaskExecution() { + *this = ::std::move(from); + } + + inline TaskExecution& operator=(TaskExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecution* internal_default_instance() { + return reinterpret_cast( + &_TaskExecution_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(TaskExecution* other); + friend void swap(TaskExecution& a, TaskExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecution* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecution* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecution& from); + void MergeFrom(const TaskExecution& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TaskExecution_Phase Phase; + static const Phase UNDEFINED = + TaskExecution_Phase_UNDEFINED; + static const Phase QUEUED = + TaskExecution_Phase_QUEUED; + static const Phase RUNNING = + TaskExecution_Phase_RUNNING; + static const Phase SUCCEEDED = + TaskExecution_Phase_SUCCEEDED; + static const Phase ABORTED = + TaskExecution_Phase_ABORTED; + static const Phase FAILED = + TaskExecution_Phase_FAILED; + static const Phase INITIALIZING = + TaskExecution_Phase_INITIALIZING; + static const Phase WAITING_FOR_RESOURCES = + TaskExecution_Phase_WAITING_FOR_RESOURCES; + static inline bool Phase_IsValid(int value) { + return TaskExecution_Phase_IsValid(value); + } + static const Phase Phase_MIN = + TaskExecution_Phase_Phase_MIN; + static const Phase Phase_MAX = + TaskExecution_Phase_Phase_MAX; + static const int Phase_ARRAYSIZE = + TaskExecution_Phase_Phase_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Phase_descriptor() { + return TaskExecution_Phase_descriptor(); + } + static inline const ::std::string& Phase_Name(Phase value) { + return TaskExecution_Phase_Name(value); + } + static inline bool Phase_Parse(const ::std::string& name, + Phase* value) { + return TaskExecution_Phase_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class ExecutionError final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ExecutionError) */ { + public: + ExecutionError(); + virtual ~ExecutionError(); + + ExecutionError(const ExecutionError& from); + + inline ExecutionError& operator=(const ExecutionError& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionError(ExecutionError&& from) noexcept + : ExecutionError() { + *this = ::std::move(from); + } + + inline ExecutionError& operator=(ExecutionError&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExecutionError& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionError* internal_default_instance() { + return reinterpret_cast( + &_ExecutionError_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(ExecutionError* other); + friend void swap(ExecutionError& a, ExecutionError& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionError* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExecutionError* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExecutionError& from); + void MergeFrom(const ExecutionError& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExecutionError* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef ExecutionError_ErrorKind ErrorKind; + static const ErrorKind UNKNOWN = + ExecutionError_ErrorKind_UNKNOWN; + static const ErrorKind USER = + ExecutionError_ErrorKind_USER; + static const ErrorKind SYSTEM = + ExecutionError_ErrorKind_SYSTEM; + static inline bool ErrorKind_IsValid(int value) { + return ExecutionError_ErrorKind_IsValid(value); + } + static const ErrorKind ErrorKind_MIN = + ExecutionError_ErrorKind_ErrorKind_MIN; + static const ErrorKind ErrorKind_MAX = + ExecutionError_ErrorKind_ErrorKind_MAX; + static const int ErrorKind_ARRAYSIZE = + ExecutionError_ErrorKind_ErrorKind_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ErrorKind_descriptor() { + return ExecutionError_ErrorKind_descriptor(); + } + static inline const ::std::string& ErrorKind_Name(ErrorKind value) { + return ExecutionError_ErrorKind_Name(value); + } + static inline bool ErrorKind_Parse(const ::std::string& name, + ErrorKind* value) { + return ExecutionError_ErrorKind_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string code = 1; + void clear_code(); + static const int kCodeFieldNumber = 1; + const ::std::string& code() const; + void set_code(const ::std::string& value); + #if LANG_CXX11 + void set_code(::std::string&& value); + #endif + void set_code(const char* value); + void set_code(const char* value, size_t size); + ::std::string* mutable_code(); + ::std::string* release_code(); + void set_allocated_code(::std::string* code); + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // string error_uri = 3; + void clear_error_uri(); + static const int kErrorUriFieldNumber = 3; + const ::std::string& error_uri() const; + void set_error_uri(const ::std::string& value); + #if LANG_CXX11 + void set_error_uri(::std::string&& value); + #endif + void set_error_uri(const char* value); + void set_error_uri(const char* value, size_t size); + ::std::string* mutable_error_uri(); + ::std::string* release_error_uri(); + void set_allocated_error_uri(::std::string* error_uri); + + // .flyteidl.core.ExecutionError.ErrorKind kind = 4; + void clear_kind(); + static const int kKindFieldNumber = 4; + ::flyteidl::core::ExecutionError_ErrorKind kind() const; + void set_kind(::flyteidl::core::ExecutionError_ErrorKind value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr code_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::internal::ArenaStringPtr error_uri_; + int kind_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskLog final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskLog) */ { + public: + TaskLog(); + virtual ~TaskLog(); + + TaskLog(const TaskLog& from); + + inline TaskLog& operator=(const TaskLog& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskLog(TaskLog&& from) noexcept + : TaskLog() { + *this = ::std::move(from); + } + + inline TaskLog& operator=(TaskLog&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskLog& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskLog* internal_default_instance() { + return reinterpret_cast( + &_TaskLog_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TaskLog* other); + friend void swap(TaskLog& a, TaskLog& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskLog* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskLog* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskLog& from); + void MergeFrom(const TaskLog& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskLog* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TaskLog_MessageFormat MessageFormat; + static const MessageFormat UNKNOWN = + TaskLog_MessageFormat_UNKNOWN; + static const MessageFormat CSV = + TaskLog_MessageFormat_CSV; + static const MessageFormat JSON = + TaskLog_MessageFormat_JSON; + static inline bool MessageFormat_IsValid(int value) { + return TaskLog_MessageFormat_IsValid(value); + } + static const MessageFormat MessageFormat_MIN = + TaskLog_MessageFormat_MessageFormat_MIN; + static const MessageFormat MessageFormat_MAX = + TaskLog_MessageFormat_MessageFormat_MAX; + static const int MessageFormat_ARRAYSIZE = + TaskLog_MessageFormat_MessageFormat_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + MessageFormat_descriptor() { + return TaskLog_MessageFormat_descriptor(); + } + static inline const ::std::string& MessageFormat_Name(MessageFormat value) { + return TaskLog_MessageFormat_Name(value); + } + static inline bool MessageFormat_Parse(const ::std::string& name, + MessageFormat* value) { + return TaskLog_MessageFormat_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string uri = 1; + void clear_uri(); + static const int kUriFieldNumber = 1; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .google.protobuf.Duration ttl = 4; + bool has_ttl() const; + void clear_ttl(); + static const int kTtlFieldNumber = 4; + const ::google::protobuf::Duration& ttl() const; + ::google::protobuf::Duration* release_ttl(); + ::google::protobuf::Duration* mutable_ttl(); + void set_allocated_ttl(::google::protobuf::Duration* ttl); + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + void clear_message_format(); + static const int kMessageFormatFieldNumber = 3; + ::flyteidl::core::TaskLog_MessageFormat message_format() const; + void set_message_format(::flyteidl::core::TaskLog_MessageFormat value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr uri_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::Duration* ttl_; + int message_format_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class QualityOfServiceSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.QualityOfServiceSpec) */ { + public: + QualityOfServiceSpec(); + virtual ~QualityOfServiceSpec(); + + QualityOfServiceSpec(const QualityOfServiceSpec& from); + + inline QualityOfServiceSpec& operator=(const QualityOfServiceSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + QualityOfServiceSpec(QualityOfServiceSpec&& from) noexcept + : QualityOfServiceSpec() { + *this = ::std::move(from); + } + + inline QualityOfServiceSpec& operator=(QualityOfServiceSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const QualityOfServiceSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const QualityOfServiceSpec* internal_default_instance() { + return reinterpret_cast( + &_QualityOfServiceSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(QualityOfServiceSpec* other); + friend void swap(QualityOfServiceSpec& a, QualityOfServiceSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline QualityOfServiceSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + QualityOfServiceSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const QualityOfServiceSpec& from); + void MergeFrom(const QualityOfServiceSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(QualityOfServiceSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .google.protobuf.Duration queueing_budget = 1; + bool has_queueing_budget() const; + void clear_queueing_budget(); + static const int kQueueingBudgetFieldNumber = 1; + const ::google::protobuf::Duration& queueing_budget() const; + ::google::protobuf::Duration* release_queueing_budget(); + ::google::protobuf::Duration* mutable_queueing_budget(); + void set_allocated_queueing_budget(::google::protobuf::Duration* queueing_budget); + + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Duration* queueing_budget_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; +}; +// ------------------------------------------------------------------- + +class QualityOfService final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.QualityOfService) */ { + public: + QualityOfService(); + virtual ~QualityOfService(); + + QualityOfService(const QualityOfService& from); + + inline QualityOfService& operator=(const QualityOfService& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + QualityOfService(QualityOfService&& from) noexcept + : QualityOfService() { + *this = ::std::move(from); + } + + inline QualityOfService& operator=(QualityOfService&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const QualityOfService& default_instance(); + + enum DesignationCase { + kTier = 1, + kSpec = 2, + DESIGNATION_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const QualityOfService* internal_default_instance() { + return reinterpret_cast( + &_QualityOfService_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(QualityOfService* other); + friend void swap(QualityOfService& a, QualityOfService& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline QualityOfService* New() const final { + return CreateMaybeMessage(nullptr); + } + + QualityOfService* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const QualityOfService& from); + void MergeFrom(const QualityOfService& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(QualityOfService* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef QualityOfService_Tier Tier; + static const Tier UNDEFINED = + QualityOfService_Tier_UNDEFINED; + static const Tier HIGH = + QualityOfService_Tier_HIGH; + static const Tier MEDIUM = + QualityOfService_Tier_MEDIUM; + static const Tier LOW = + QualityOfService_Tier_LOW; + static inline bool Tier_IsValid(int value) { + return QualityOfService_Tier_IsValid(value); + } + static const Tier Tier_MIN = + QualityOfService_Tier_Tier_MIN; + static const Tier Tier_MAX = + QualityOfService_Tier_Tier_MAX; + static const int Tier_ARRAYSIZE = + QualityOfService_Tier_Tier_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Tier_descriptor() { + return QualityOfService_Tier_descriptor(); + } + static inline const ::std::string& Tier_Name(Tier value) { + return QualityOfService_Tier_Name(value); + } + static inline bool Tier_Parse(const ::std::string& name, + Tier* value) { + return QualityOfService_Tier_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.core.QualityOfService.Tier tier = 1; + private: + bool has_tier() const; + public: + void clear_tier(); + static const int kTierFieldNumber = 1; + ::flyteidl::core::QualityOfService_Tier tier() const; + void set_tier(::flyteidl::core::QualityOfService_Tier value); + + // .flyteidl.core.QualityOfServiceSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::core::QualityOfServiceSpec& spec() const; + ::flyteidl::core::QualityOfServiceSpec* release_spec(); + ::flyteidl::core::QualityOfServiceSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::core::QualityOfServiceSpec* spec); + + void clear_designation(); + DesignationCase designation_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) + private: + class HasBitSetters; + void set_has_tier(); + void set_has_spec(); + + inline bool has_designation() const; + inline void clear_has_designation(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union DesignationUnion { + DesignationUnion() {} + int tier_; + ::flyteidl::core::QualityOfServiceSpec* spec_; + } designation_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowExecution + +// ------------------------------------------------------------------- + +// NodeExecution + +// ------------------------------------------------------------------- + +// TaskExecution + +// ------------------------------------------------------------------- + +// ExecutionError + +// string code = 1; +inline void ExecutionError::clear_code() { + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionError::code() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.code) + return code_.GetNoArena(); +} +inline void ExecutionError::set_code(const ::std::string& value) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.code) +} +#if LANG_CXX11 +inline void ExecutionError::set_code(::std::string&& value) { + + code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.code) +} +#endif +inline void ExecutionError::set_code(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.code) +} +inline void ExecutionError::set_code(const char* value, size_t size) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.code) +} +inline ::std::string* ExecutionError::mutable_code() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.code) + return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionError::release_code() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.code) + + return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionError::set_allocated_code(::std::string* code) { + if (code != nullptr) { + + } else { + + } + code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.code) +} + +// string message = 2; +inline void ExecutionError::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionError::message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.message) + return message_.GetNoArena(); +} +inline void ExecutionError::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.message) +} +#if LANG_CXX11 +inline void ExecutionError::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.message) +} +#endif +inline void ExecutionError::set_message(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.message) +} +inline void ExecutionError::set_message(const char* value, size_t size) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.message) +} +inline ::std::string* ExecutionError::mutable_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionError::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionError::set_allocated_message(::std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.message) +} + +// string error_uri = 3; +inline void ExecutionError::clear_error_uri() { + error_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionError::error_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.error_uri) + return error_uri_.GetNoArena(); +} +inline void ExecutionError::set_error_uri(const ::std::string& value) { + + error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.error_uri) +} +#if LANG_CXX11 +inline void ExecutionError::set_error_uri(::std::string&& value) { + + error_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.error_uri) +} +#endif +inline void ExecutionError::set_error_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.error_uri) +} +inline void ExecutionError::set_error_uri(const char* value, size_t size) { + + error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.error_uri) +} +inline ::std::string* ExecutionError::mutable_error_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.error_uri) + return error_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionError::release_error_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.error_uri) + + return error_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionError::set_allocated_error_uri(::std::string* error_uri) { + if (error_uri != nullptr) { + + } else { + + } + error_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.error_uri) +} + +// .flyteidl.core.ExecutionError.ErrorKind kind = 4; +inline void ExecutionError::clear_kind() { + kind_ = 0; +} +inline ::flyteidl::core::ExecutionError_ErrorKind ExecutionError::kind() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.kind) + return static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(kind_); +} +inline void ExecutionError::set_kind(::flyteidl::core::ExecutionError_ErrorKind value) { + + kind_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.kind) +} + +// ------------------------------------------------------------------- + +// TaskLog + +// string uri = 1; +inline void TaskLog::clear_uri() { + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskLog::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.uri) + return uri_.GetNoArena(); +} +inline void TaskLog::set_uri(const ::std::string& value) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.uri) +} +#if LANG_CXX11 +inline void TaskLog::set_uri(::std::string&& value) { + + uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskLog.uri) +} +#endif +inline void TaskLog::set_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskLog.uri) +} +inline void TaskLog::set_uri(const char* value, size_t size) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskLog.uri) +} +inline ::std::string* TaskLog::mutable_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.uri) + return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskLog::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.uri) + + return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskLog::set_allocated_uri(::std::string* uri) { + if (uri != nullptr) { + + } else { + + } + uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.uri) +} + +// string name = 2; +inline void TaskLog::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskLog::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.name) + return name_.GetNoArena(); +} +inline void TaskLog::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.name) +} +#if LANG_CXX11 +inline void TaskLog::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskLog.name) +} +#endif +inline void TaskLog::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskLog.name) +} +inline void TaskLog::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskLog.name) +} +inline ::std::string* TaskLog::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskLog::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskLog::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.name) +} + +// .flyteidl.core.TaskLog.MessageFormat message_format = 3; +inline void TaskLog::clear_message_format() { + message_format_ = 0; +} +inline ::flyteidl::core::TaskLog_MessageFormat TaskLog::message_format() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.message_format) + return static_cast< ::flyteidl::core::TaskLog_MessageFormat >(message_format_); +} +inline void TaskLog::set_message_format(::flyteidl::core::TaskLog_MessageFormat value) { + + message_format_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.message_format) +} + +// .google.protobuf.Duration ttl = 4; +inline bool TaskLog::has_ttl() const { + return this != internal_default_instance() && ttl_ != nullptr; +} +inline const ::google::protobuf::Duration& TaskLog::ttl() const { + const ::google::protobuf::Duration* p = ttl_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.ttl) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* TaskLog::release_ttl() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.ttl) + + ::google::protobuf::Duration* temp = ttl_; + ttl_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* TaskLog::mutable_ttl() { + + if (ttl_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + ttl_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.ttl) + return ttl_; +} +inline void TaskLog::set_allocated_ttl(::google::protobuf::Duration* ttl) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(ttl_); + } + if (ttl) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(ttl)->GetArena(); + if (message_arena != submessage_arena) { + ttl = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ttl, submessage_arena); + } + + } else { + + } + ttl_ = ttl; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.ttl) +} + +// ------------------------------------------------------------------- + +// QualityOfServiceSpec + +// .google.protobuf.Duration queueing_budget = 1; +inline bool QualityOfServiceSpec::has_queueing_budget() const { + return this != internal_default_instance() && queueing_budget_ != nullptr; +} +inline const ::google::protobuf::Duration& QualityOfServiceSpec::queueing_budget() const { + const ::google::protobuf::Duration* p = queueing_budget_; + // @@protoc_insertion_point(field_get:flyteidl.core.QualityOfServiceSpec.queueing_budget) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* QualityOfServiceSpec::release_queueing_budget() { + // @@protoc_insertion_point(field_release:flyteidl.core.QualityOfServiceSpec.queueing_budget) + + ::google::protobuf::Duration* temp = queueing_budget_; + queueing_budget_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* QualityOfServiceSpec::mutable_queueing_budget() { + + if (queueing_budget_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + queueing_budget_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.QualityOfServiceSpec.queueing_budget) + return queueing_budget_; +} +inline void QualityOfServiceSpec::set_allocated_queueing_budget(::google::protobuf::Duration* queueing_budget) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(queueing_budget_); + } + if (queueing_budget) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(queueing_budget)->GetArena(); + if (message_arena != submessage_arena) { + queueing_budget = ::google::protobuf::internal::GetOwnedMessage( + message_arena, queueing_budget, submessage_arena); + } + + } else { + + } + queueing_budget_ = queueing_budget; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.QualityOfServiceSpec.queueing_budget) +} + +// ------------------------------------------------------------------- + +// QualityOfService + +// .flyteidl.core.QualityOfService.Tier tier = 1; +inline bool QualityOfService::has_tier() const { + return designation_case() == kTier; +} +inline void QualityOfService::set_has_tier() { + _oneof_case_[0] = kTier; +} +inline void QualityOfService::clear_tier() { + if (has_tier()) { + designation_.tier_ = 0; + clear_has_designation(); + } +} +inline ::flyteidl::core::QualityOfService_Tier QualityOfService::tier() const { + // @@protoc_insertion_point(field_get:flyteidl.core.QualityOfService.tier) + if (has_tier()) { + return static_cast< ::flyteidl::core::QualityOfService_Tier >(designation_.tier_); + } + return static_cast< ::flyteidl::core::QualityOfService_Tier >(0); +} +inline void QualityOfService::set_tier(::flyteidl::core::QualityOfService_Tier value) { + if (!has_tier()) { + clear_designation(); + set_has_tier(); + } + designation_.tier_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.QualityOfService.tier) +} + +// .flyteidl.core.QualityOfServiceSpec spec = 2; +inline bool QualityOfService::has_spec() const { + return designation_case() == kSpec; +} +inline void QualityOfService::set_has_spec() { + _oneof_case_[0] = kSpec; +} +inline void QualityOfService::clear_spec() { + if (has_spec()) { + delete designation_.spec_; + clear_has_designation(); + } +} +inline ::flyteidl::core::QualityOfServiceSpec* QualityOfService::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.core.QualityOfService.spec) + if (has_spec()) { + clear_has_designation(); + ::flyteidl::core::QualityOfServiceSpec* temp = designation_.spec_; + designation_.spec_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::QualityOfServiceSpec& QualityOfService::spec() const { + // @@protoc_insertion_point(field_get:flyteidl.core.QualityOfService.spec) + return has_spec() + ? *designation_.spec_ + : *reinterpret_cast< ::flyteidl::core::QualityOfServiceSpec*>(&::flyteidl::core::_QualityOfServiceSpec_default_instance_); +} +inline ::flyteidl::core::QualityOfServiceSpec* QualityOfService::mutable_spec() { + if (!has_spec()) { + clear_designation(); + set_has_spec(); + designation_.spec_ = CreateMaybeMessage< ::flyteidl::core::QualityOfServiceSpec >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.QualityOfService.spec) + return designation_.spec_; +} + +inline bool QualityOfService::has_designation() const { + return designation_case() != DESIGNATION_NOT_SET; +} +inline void QualityOfService::clear_has_designation() { + _oneof_case_[0] = DESIGNATION_NOT_SET; +} +inline QualityOfService::DesignationCase QualityOfService::designation_case() const { + return QualityOfService::DesignationCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::WorkflowExecution_Phase> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::WorkflowExecution_Phase>() { + return ::flyteidl::core::WorkflowExecution_Phase_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::NodeExecution_Phase> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::NodeExecution_Phase>() { + return ::flyteidl::core::NodeExecution_Phase_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::TaskExecution_Phase> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::TaskExecution_Phase>() { + return ::flyteidl::core::TaskExecution_Phase_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::ExecutionError_ErrorKind> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ExecutionError_ErrorKind>() { + return ::flyteidl::core::ExecutionError_ErrorKind_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::TaskLog_MessageFormat> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::TaskLog_MessageFormat>() { + return ::flyteidl::core::TaskLog_MessageFormat_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::QualityOfService_Tier> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::QualityOfService_Tier>() { + return ::flyteidl::core::QualityOfService_Tier_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc new file mode 100644 index 0000000000..1c8d0f1336 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/identifier.proto + +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/identifier.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h new file mode 100644 index 0000000000..05f26415a6 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/identifier.proto +#ifndef GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED + +#include "flyteidl/core/identifier.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc new file mode 100644 index 0000000000..78959678c5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc @@ -0,0 +1,2411 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +#include "flyteidl/core/identifier.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +namespace flyteidl { +namespace core { +class IdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Identifier_default_instance_; +class WorkflowExecutionIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowExecutionIdentifier_default_instance_; +class NodeExecutionIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _NodeExecutionIdentifier_default_instance_; +class TaskExecutionIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionIdentifier_default_instance_; +class SignalIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SignalIdentifier_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Identifier_default_instance_; + new (ptr) ::flyteidl::core::Identifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Identifier::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, {}}; + +static void InitDefaultsWorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_; + new (ptr) ::flyteidl::core::WorkflowExecutionIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowExecutionIdentifier::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, {}}; + +static void InitDefaultsNodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_NodeExecutionIdentifier_default_instance_; + new (ptr) ::flyteidl::core::NodeExecutionIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::NodeExecutionIdentifier::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsTaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskExecutionIdentifier_default_instance_; + new (ptr) ::flyteidl::core::TaskExecutionIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskExecutionIdentifier::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsSignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_SignalIdentifier_default_instance_; + new (ptr) ::flyteidl::core::SignalIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SignalIdentifier::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fidentifier_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[5]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fidentifier_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fidentifier_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fidentifier_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, resource_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, version_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, node_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, execution_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, task_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, node_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, retry_attempt_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalIdentifier, signal_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalIdentifier, execution_id_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Identifier)}, + { 10, -1, sizeof(::flyteidl::core::WorkflowExecutionIdentifier)}, + { 18, -1, sizeof(::flyteidl::core::NodeExecutionIdentifier)}, + { 25, -1, sizeof(::flyteidl::core::TaskExecutionIdentifier)}, + { 33, -1, sizeof(::flyteidl::core::SignalIdentifier)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Identifier_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_), + reinterpret_cast(&::flyteidl::core::_NodeExecutionIdentifier_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_), + reinterpret_cast(&::flyteidl::core::_SignalIdentifier_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, "flyteidl/core/identifier.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fidentifier_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto, 5, file_level_enum_descriptors_flyteidl_2fcore_2fidentifier_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fidentifier_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fidentifier_2eproto[] = + "\n\036flyteidl/core/identifier.proto\022\rflytei" + "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + "(\0132*.flyteidl.core.WorkflowExecutionIden" + "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + "pt\030\003 \001(\r\"g\n\020SignalIdentifier\022\021\n\tsignal_i" + "d\030\001 \001(\t\022@\n\014execution_id\030\002 \001(\0132*.flyteidl" + ".core.WorkflowExecutionIdentifier*U\n\014Res" + "ourceType\022\017\n\013UNSPECIFIED\020\000\022\010\n\004TASK\020\001\022\014\n\010" + "WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN\020\003\022\013\n\007DATASET\020\004" + "B6Z4github.com/flyteorg/flyteidl/gen/pb-" + "go/flyteidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fidentifier_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fidentifier_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fidentifier_2eproto, + "flyteidl/core/identifier.proto", &assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto, 784, +}; + +void AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fidentifier_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fidentifier_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* ResourceType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fidentifier_2eproto[0]; +} +bool ResourceType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +void Identifier::InitAsDefaultInstance() { +} +class Identifier::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Identifier::kResourceTypeFieldNumber; +const int Identifier::kProjectFieldNumber; +const int Identifier::kDomainFieldNumber; +const int Identifier::kNameFieldNumber; +const int Identifier::kVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Identifier::Identifier() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Identifier) +} +Identifier::Identifier(const Identifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Identifier) +} + +void Identifier::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; +} + +Identifier::~Identifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.Identifier) + SharedDtor(); +} + +void Identifier::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Identifier::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Identifier& Identifier::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base); + return *internal_default_instance(); +} + + +void Identifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Identifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Identifier::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string project = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string version = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.version"); + object = msg->mutable_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Identifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Identifier) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string project = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.name")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.version")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Identifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Identifier) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Identifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Identifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + // string project = 2; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->project(), output); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->domain(), output); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->name(), output); + } + + // string version = 5; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->version(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Identifier) +} + +::google::protobuf::uint8* Identifier::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Identifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + // string project = 2; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->project(), target); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->domain(), target); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->name(), target); + } + + // string version = 5; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->version(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Identifier) + return target; +} + +size_t Identifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Identifier) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 2; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 3; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 4; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string version = 5; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Identifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Identifier) + GOOGLE_DCHECK_NE(&from, this); + const Identifier* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Identifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Identifier) + MergeFrom(*source); + } +} + +void Identifier::MergeFrom(const Identifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Identifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void Identifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Identifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Identifier::CopyFrom(const Identifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Identifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Identifier::IsInitialized() const { + return true; +} + +void Identifier::Swap(Identifier* other) { + if (other == this) return; + InternalSwap(other); +} +void Identifier::InternalSwap(Identifier* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resource_type_, other->resource_type_); +} + +::google::protobuf::Metadata Identifier::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionIdentifier::InitAsDefaultInstance() { +} +class WorkflowExecutionIdentifier::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionIdentifier::kProjectFieldNumber; +const int WorkflowExecutionIdentifier::kDomainFieldNumber; +const int WorkflowExecutionIdentifier::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionIdentifier::WorkflowExecutionIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowExecutionIdentifier) +} +WorkflowExecutionIdentifier::WorkflowExecutionIdentifier(const WorkflowExecutionIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowExecutionIdentifier) +} + +void WorkflowExecutionIdentifier::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +WorkflowExecutionIdentifier::~WorkflowExecutionIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowExecutionIdentifier) + SharedDtor(); +} + +void WorkflowExecutionIdentifier::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WorkflowExecutionIdentifier::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionIdentifier& WorkflowExecutionIdentifier::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionIdentifier::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.WorkflowExecutionIdentifier.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.WorkflowExecutionIdentifier.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.WorkflowExecutionIdentifier.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowExecutionIdentifier) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowExecutionIdentifier.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowExecutionIdentifier.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowExecutionIdentifier.name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowExecutionIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowExecutionIdentifier) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowExecutionIdentifier) +} + +::google::protobuf::uint8* WorkflowExecutionIdentifier::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowExecutionIdentifier) + return target; +} + +size_t WorkflowExecutionIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowExecutionIdentifier) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 4; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionIdentifier* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowExecutionIdentifier) + MergeFrom(*source); + } +} + +void WorkflowExecutionIdentifier::MergeFrom(const WorkflowExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void WorkflowExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionIdentifier::CopyFrom(const WorkflowExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionIdentifier::IsInitialized() const { + return true; +} + +void WorkflowExecutionIdentifier::Swap(WorkflowExecutionIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionIdentifier::InternalSwap(WorkflowExecutionIdentifier* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata WorkflowExecutionIdentifier::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionIdentifier::InitAsDefaultInstance() { + ::flyteidl::core::_NodeExecutionIdentifier_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class NodeExecutionIdentifier::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const NodeExecutionIdentifier* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +NodeExecutionIdentifier::HasBitSetters::execution_id(const NodeExecutionIdentifier* msg) { + return *msg->execution_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionIdentifier::kNodeIdFieldNumber; +const int NodeExecutionIdentifier::kExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionIdentifier::NodeExecutionIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.NodeExecutionIdentifier) +} +NodeExecutionIdentifier::NodeExecutionIdentifier(const NodeExecutionIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node_id().size() > 0) { + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeExecutionIdentifier) +} + +void NodeExecutionIdentifier::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + execution_id_ = nullptr; +} + +NodeExecutionIdentifier::~NodeExecutionIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.NodeExecutionIdentifier) + SharedDtor(); +} + +void NodeExecutionIdentifier::SharedDtor() { + node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete execution_id_; +} + +void NodeExecutionIdentifier::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionIdentifier& NodeExecutionIdentifier::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionIdentifier::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string node_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.NodeExecutionIdentifier.node_id"); + object = msg->mutable_node_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.NodeExecutionIdentifier) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string node_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.NodeExecutionIdentifier.node_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.NodeExecutionIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeExecutionIdentifier) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeExecutionIdentifier.node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->node_id(), output); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::execution_id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeExecutionIdentifier) +} + +::google::protobuf::uint8* NodeExecutionIdentifier::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeExecutionIdentifier.node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->node_id(), target); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::execution_id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.NodeExecutionIdentifier) + return target; +} + +size_t NodeExecutionIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeExecutionIdentifier) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->node_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *execution_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionIdentifier* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeExecutionIdentifier) + MergeFrom(*source); + } +} + +void NodeExecutionIdentifier::MergeFrom(const NodeExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.node_id().size() > 0) { + + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); + } +} + +void NodeExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionIdentifier::CopyFrom(const NodeExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionIdentifier::IsInitialized() const { + return true; +} + +void NodeExecutionIdentifier::Swap(NodeExecutionIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionIdentifier::InternalSwap(NodeExecutionIdentifier* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(execution_id_, other->execution_id_); +} + +::google::protobuf::Metadata NodeExecutionIdentifier::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionIdentifier::InitAsDefaultInstance() { + ::flyteidl::core::_TaskExecutionIdentifier_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_TaskExecutionIdentifier_default_instance_._instance.get_mutable()->node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); +} +class TaskExecutionIdentifier::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& task_id(const TaskExecutionIdentifier* msg); + static const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id(const TaskExecutionIdentifier* msg); +}; + +const ::flyteidl::core::Identifier& +TaskExecutionIdentifier::HasBitSetters::task_id(const TaskExecutionIdentifier* msg) { + return *msg->task_id_; +} +const ::flyteidl::core::NodeExecutionIdentifier& +TaskExecutionIdentifier::HasBitSetters::node_execution_id(const TaskExecutionIdentifier* msg) { + return *msg->node_execution_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionIdentifier::kTaskIdFieldNumber; +const int TaskExecutionIdentifier::kNodeExecutionIdFieldNumber; +const int TaskExecutionIdentifier::kRetryAttemptFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionIdentifier::TaskExecutionIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskExecutionIdentifier) +} +TaskExecutionIdentifier::TaskExecutionIdentifier(const TaskExecutionIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_task_id()) { + task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); + } else { + task_id_ = nullptr; + } + if (from.has_node_execution_id()) { + node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.node_execution_id_); + } else { + node_execution_id_ = nullptr; + } + retry_attempt_ = from.retry_attempt_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskExecutionIdentifier) +} + +void TaskExecutionIdentifier::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + ::memset(&task_id_, 0, static_cast( + reinterpret_cast(&retry_attempt_) - + reinterpret_cast(&task_id_)) + sizeof(retry_attempt_)); +} + +TaskExecutionIdentifier::~TaskExecutionIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskExecutionIdentifier) + SharedDtor(); +} + +void TaskExecutionIdentifier::SharedDtor() { + if (this != internal_default_instance()) delete task_id_; + if (this != internal_default_instance()) delete node_execution_id_; +} + +void TaskExecutionIdentifier::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionIdentifier& TaskExecutionIdentifier::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { + delete task_id_; + } + task_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { + delete node_execution_id_; + } + node_execution_id_ = nullptr; + retry_attempt_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionIdentifier::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier task_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_task_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_node_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 retry_attempt = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskExecutionIdentifier) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier task_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 retry_attempt = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retry_attempt_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskExecutionIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskExecutionIdentifier) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::task_id(this), output); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + if (this->has_node_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::node_execution_id(this), output); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskExecutionIdentifier) +} + +::google::protobuf::uint8* TaskExecutionIdentifier::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::task_id(this), target); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + if (this->has_node_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::node_execution_id(this), target); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskExecutionIdentifier) + return target; +} + +size_t TaskExecutionIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskExecutionIdentifier) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *task_id_); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + if (this->has_node_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_execution_id_); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retry_attempt()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionIdentifier* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskExecutionIdentifier) + MergeFrom(*source); + } +} + +void TaskExecutionIdentifier::MergeFrom(const TaskExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_task_id()) { + mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); + } + if (from.has_node_execution_id()) { + mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); + } + if (from.retry_attempt() != 0) { + set_retry_attempt(from.retry_attempt()); + } +} + +void TaskExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionIdentifier::CopyFrom(const TaskExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionIdentifier::IsInitialized() const { + return true; +} + +void TaskExecutionIdentifier::Swap(TaskExecutionIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionIdentifier::InternalSwap(TaskExecutionIdentifier* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(task_id_, other->task_id_); + swap(node_execution_id_, other->node_execution_id_); + swap(retry_attempt_, other->retry_attempt_); +} + +::google::protobuf::Metadata TaskExecutionIdentifier::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignalIdentifier::InitAsDefaultInstance() { + ::flyteidl::core::_SignalIdentifier_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class SignalIdentifier::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const SignalIdentifier* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +SignalIdentifier::HasBitSetters::execution_id(const SignalIdentifier* msg) { + return *msg->execution_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignalIdentifier::kSignalIdFieldNumber; +const int SignalIdentifier::kExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignalIdentifier::SignalIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SignalIdentifier) +} +SignalIdentifier::SignalIdentifier(const SignalIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.signal_id().size() > 0) { + signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); + } + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SignalIdentifier) +} + +void SignalIdentifier::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + execution_id_ = nullptr; +} + +SignalIdentifier::~SignalIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.SignalIdentifier) + SharedDtor(); +} + +void SignalIdentifier::SharedDtor() { + signal_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete execution_id_; +} + +void SignalIdentifier::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SignalIdentifier& SignalIdentifier::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); + return *internal_default_instance(); +} + + +void SignalIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SignalIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SignalIdentifier::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string signal_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.SignalIdentifier.signal_id"); + object = msg->mutable_signal_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SignalIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SignalIdentifier) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string signal_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_signal_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.SignalIdentifier.signal_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.SignalIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SignalIdentifier) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SignalIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SignalIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SignalIdentifier.signal_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->signal_id(), output); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::execution_id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SignalIdentifier) +} + +::google::protobuf::uint8* SignalIdentifier::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SignalIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SignalIdentifier.signal_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->signal_id(), target); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::execution_id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SignalIdentifier) + return target; +} + +size_t SignalIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SignalIdentifier) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->signal_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *execution_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignalIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SignalIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const SignalIdentifier* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SignalIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SignalIdentifier) + MergeFrom(*source); + } +} + +void SignalIdentifier::MergeFrom(const SignalIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SignalIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.signal_id().size() > 0) { + + signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); + } + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); + } +} + +void SignalIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SignalIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignalIdentifier::CopyFrom(const SignalIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SignalIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignalIdentifier::IsInitialized() const { + return true; +} + +void SignalIdentifier::Swap(SignalIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void SignalIdentifier::InternalSwap(SignalIdentifier* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + signal_id_.Swap(&other->signal_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(execution_id_, other->execution_id_); +} + +::google::protobuf::Metadata SignalIdentifier::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::Identifier* Arena::CreateMaybeMessage< ::flyteidl::core::Identifier >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Identifier >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowExecutionIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowExecutionIdentifier >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowExecutionIdentifier >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::NodeExecutionIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::NodeExecutionIdentifier >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::NodeExecutionIdentifier >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskExecutionIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::TaskExecutionIdentifier >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskExecutionIdentifier >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::SignalIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::SignalIdentifier >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::SignalIdentifier >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h new file mode 100644 index 0000000000..d3ee554d5a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h @@ -0,0 +1,1589 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fidentifier_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fidentifier_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fidentifier_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[5] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto(); +namespace flyteidl { +namespace core { +class Identifier; +class IdentifierDefaultTypeInternal; +extern IdentifierDefaultTypeInternal _Identifier_default_instance_; +class NodeExecutionIdentifier; +class NodeExecutionIdentifierDefaultTypeInternal; +extern NodeExecutionIdentifierDefaultTypeInternal _NodeExecutionIdentifier_default_instance_; +class SignalIdentifier; +class SignalIdentifierDefaultTypeInternal; +extern SignalIdentifierDefaultTypeInternal _SignalIdentifier_default_instance_; +class TaskExecutionIdentifier; +class TaskExecutionIdentifierDefaultTypeInternal; +extern TaskExecutionIdentifierDefaultTypeInternal _TaskExecutionIdentifier_default_instance_; +class WorkflowExecutionIdentifier; +class WorkflowExecutionIdentifierDefaultTypeInternal; +extern WorkflowExecutionIdentifierDefaultTypeInternal _WorkflowExecutionIdentifier_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::Identifier* Arena::CreateMaybeMessage<::flyteidl::core::Identifier>(Arena*); +template<> ::flyteidl::core::NodeExecutionIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(Arena*); +template<> ::flyteidl::core::SignalIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(Arena*); +template<> ::flyteidl::core::TaskExecutionIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(Arena*); +template<> ::flyteidl::core::WorkflowExecutionIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum ResourceType { + UNSPECIFIED = 0, + TASK = 1, + WORKFLOW = 2, + LAUNCH_PLAN = 3, + DATASET = 4, + ResourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ResourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ResourceType_IsValid(int value); +const ResourceType ResourceType_MIN = UNSPECIFIED; +const ResourceType ResourceType_MAX = DATASET; +const int ResourceType_ARRAYSIZE = ResourceType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ResourceType_descriptor(); +inline const ::std::string& ResourceType_Name(ResourceType value) { + return ::google::protobuf::internal::NameOfEnum( + ResourceType_descriptor(), value); +} +inline bool ResourceType_Parse( + const ::std::string& name, ResourceType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ResourceType_descriptor(), name, value); +} +// =================================================================== + +class Identifier final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Identifier) */ { + public: + Identifier(); + virtual ~Identifier(); + + Identifier(const Identifier& from); + + inline Identifier& operator=(const Identifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Identifier(Identifier&& from) noexcept + : Identifier() { + *this = ::std::move(from); + } + + inline Identifier& operator=(Identifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Identifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Identifier* internal_default_instance() { + return reinterpret_cast( + &_Identifier_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Identifier* other); + friend void swap(Identifier& a, Identifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Identifier* New() const final { + return CreateMaybeMessage(nullptr); + } + + Identifier* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Identifier& from); + void MergeFrom(const Identifier& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Identifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 2; + void clear_project(); + static const int kProjectFieldNumber = 2; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 3; + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 4; + void clear_name(); + static const int kNameFieldNumber = 4; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string version = 5; + void clear_version(); + static const int kVersionFieldNumber = 5; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + // .flyteidl.core.ResourceType resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::core::ResourceType resource_type() const; + void set_resource_type(::flyteidl::core::ResourceType value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr version_; + int resource_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionIdentifier final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowExecutionIdentifier) */ { + public: + WorkflowExecutionIdentifier(); + virtual ~WorkflowExecutionIdentifier(); + + WorkflowExecutionIdentifier(const WorkflowExecutionIdentifier& from); + + inline WorkflowExecutionIdentifier& operator=(const WorkflowExecutionIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionIdentifier(WorkflowExecutionIdentifier&& from) noexcept + : WorkflowExecutionIdentifier() { + *this = ::std::move(from); + } + + inline WorkflowExecutionIdentifier& operator=(WorkflowExecutionIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionIdentifier* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionIdentifier_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(WorkflowExecutionIdentifier* other); + friend void swap(WorkflowExecutionIdentifier& a, WorkflowExecutionIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionIdentifier* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionIdentifier* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionIdentifier& from); + void MergeFrom(const WorkflowExecutionIdentifier& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 4; + void clear_name(); + static const int kNameFieldNumber = 4; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionIdentifier final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeExecutionIdentifier) */ { + public: + NodeExecutionIdentifier(); + virtual ~NodeExecutionIdentifier(); + + NodeExecutionIdentifier(const NodeExecutionIdentifier& from); + + inline NodeExecutionIdentifier& operator=(const NodeExecutionIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionIdentifier(NodeExecutionIdentifier&& from) noexcept + : NodeExecutionIdentifier() { + *this = ::std::move(from); + } + + inline NodeExecutionIdentifier& operator=(NodeExecutionIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionIdentifier* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionIdentifier_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(NodeExecutionIdentifier* other); + friend void swap(NodeExecutionIdentifier& a, NodeExecutionIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionIdentifier* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionIdentifier* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionIdentifier& from); + void MergeFrom(const NodeExecutionIdentifier& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string node_id = 1; + void clear_node_id(); + static const int kNodeIdFieldNumber = 1; + const ::std::string& node_id() const; + void set_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_node_id(::std::string&& value); + #endif + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + ::std::string* mutable_node_id(); + ::std::string* release_node_id(); + void set_allocated_node_id(::std::string* node_id); + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 2; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr node_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionIdentifier final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskExecutionIdentifier) */ { + public: + TaskExecutionIdentifier(); + virtual ~TaskExecutionIdentifier(); + + TaskExecutionIdentifier(const TaskExecutionIdentifier& from); + + inline TaskExecutionIdentifier& operator=(const TaskExecutionIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionIdentifier(TaskExecutionIdentifier&& from) noexcept + : TaskExecutionIdentifier() { + *this = ::std::move(from); + } + + inline TaskExecutionIdentifier& operator=(TaskExecutionIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionIdentifier* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionIdentifier_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TaskExecutionIdentifier* other); + friend void swap(TaskExecutionIdentifier& a, TaskExecutionIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionIdentifier* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionIdentifier* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionIdentifier& from); + void MergeFrom(const TaskExecutionIdentifier& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier task_id = 1; + bool has_task_id() const; + void clear_task_id(); + static const int kTaskIdFieldNumber = 1; + const ::flyteidl::core::Identifier& task_id() const; + ::flyteidl::core::Identifier* release_task_id(); + ::flyteidl::core::Identifier* mutable_task_id(); + void set_allocated_task_id(::flyteidl::core::Identifier* task_id); + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + bool has_node_execution_id() const; + void clear_node_execution_id(); + static const int kNodeExecutionIdFieldNumber = 2; + const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); + void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); + + // uint32 retry_attempt = 3; + void clear_retry_attempt(); + static const int kRetryAttemptFieldNumber = 3; + ::google::protobuf::uint32 retry_attempt() const; + void set_retry_attempt(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* task_id_; + ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; + ::google::protobuf::uint32 retry_attempt_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; +}; +// ------------------------------------------------------------------- + +class SignalIdentifier final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SignalIdentifier) */ { + public: + SignalIdentifier(); + virtual ~SignalIdentifier(); + + SignalIdentifier(const SignalIdentifier& from); + + inline SignalIdentifier& operator=(const SignalIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignalIdentifier(SignalIdentifier&& from) noexcept + : SignalIdentifier() { + *this = ::std::move(from); + } + + inline SignalIdentifier& operator=(SignalIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SignalIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignalIdentifier* internal_default_instance() { + return reinterpret_cast( + &_SignalIdentifier_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(SignalIdentifier* other); + friend void swap(SignalIdentifier& a, SignalIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignalIdentifier* New() const final { + return CreateMaybeMessage(nullptr); + } + + SignalIdentifier* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignalIdentifier& from); + void MergeFrom(const SignalIdentifier& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignalIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string signal_id = 1; + void clear_signal_id(); + static const int kSignalIdFieldNumber = 1; + const ::std::string& signal_id() const; + void set_signal_id(const ::std::string& value); + #if LANG_CXX11 + void set_signal_id(::std::string&& value); + #endif + void set_signal_id(const char* value); + void set_signal_id(const char* value, size_t size); + ::std::string* mutable_signal_id(); + ::std::string* release_signal_id(); + void set_allocated_signal_id(::std::string* signal_id); + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 2; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // @@protoc_insertion_point(class_scope:flyteidl.core.SignalIdentifier) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr signal_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Identifier + +// .flyteidl.core.ResourceType resource_type = 1; +inline void Identifier::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::core::ResourceType Identifier::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.resource_type) + return static_cast< ::flyteidl::core::ResourceType >(resource_type_); +} +inline void Identifier::set_resource_type(::flyteidl::core::ResourceType value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.resource_type) +} + +// string project = 2; +inline void Identifier::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::project() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.project) + return project_.GetNoArena(); +} +inline void Identifier::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.project) +} +#if LANG_CXX11 +inline void Identifier::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.project) +} +#endif +inline void Identifier::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.project) +} +inline void Identifier::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.project) +} +inline ::std::string* Identifier::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.project) +} + +// string domain = 3; +inline void Identifier::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.domain) + return domain_.GetNoArena(); +} +inline void Identifier::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.domain) +} +#if LANG_CXX11 +inline void Identifier::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.domain) +} +#endif +inline void Identifier::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.domain) +} +inline void Identifier::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.domain) +} +inline ::std::string* Identifier::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.domain) +} + +// string name = 4; +inline void Identifier::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.name) + return name_.GetNoArena(); +} +inline void Identifier::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.name) +} +#if LANG_CXX11 +inline void Identifier::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.name) +} +#endif +inline void Identifier::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.name) +} +inline void Identifier::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.name) +} +inline ::std::string* Identifier::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.name) +} + +// string version = 5; +inline void Identifier::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.version) + return version_.GetNoArena(); +} +inline void Identifier::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.version) +} +#if LANG_CXX11 +inline void Identifier::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.version) +} +#endif +inline void Identifier::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.version) +} +inline void Identifier::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.version) +} +inline ::std::string* Identifier::mutable_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_version() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_version(::std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.version) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionIdentifier + +// string project = 1; +inline void WorkflowExecutionIdentifier::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionIdentifier::project() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.project) + return project_.GetNoArena(); +} +inline void WorkflowExecutionIdentifier::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.project) +} +#if LANG_CXX11 +inline void WorkflowExecutionIdentifier::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.project) +} +#endif +inline void WorkflowExecutionIdentifier::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.project) +} +inline void WorkflowExecutionIdentifier::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.project) +} +inline ::std::string* WorkflowExecutionIdentifier::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionIdentifier::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionIdentifier::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.project) +} + +// string domain = 2; +inline void WorkflowExecutionIdentifier::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionIdentifier::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.domain) + return domain_.GetNoArena(); +} +inline void WorkflowExecutionIdentifier::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +#if LANG_CXX11 +inline void WorkflowExecutionIdentifier::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +#endif +inline void WorkflowExecutionIdentifier::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +inline void WorkflowExecutionIdentifier::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +inline ::std::string* WorkflowExecutionIdentifier::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionIdentifier::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionIdentifier::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.domain) +} + +// string name = 4; +inline void WorkflowExecutionIdentifier::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionIdentifier::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.name) + return name_.GetNoArena(); +} +inline void WorkflowExecutionIdentifier::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.name) +} +#if LANG_CXX11 +inline void WorkflowExecutionIdentifier::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.name) +} +#endif +inline void WorkflowExecutionIdentifier::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.name) +} +inline void WorkflowExecutionIdentifier::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.name) +} +inline ::std::string* WorkflowExecutionIdentifier::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionIdentifier::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionIdentifier::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.name) +} + +// ------------------------------------------------------------------- + +// NodeExecutionIdentifier + +// string node_id = 1; +inline void NodeExecutionIdentifier::clear_node_id() { + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionIdentifier::node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.NodeExecutionIdentifier.node_id) + return node_id_.GetNoArena(); +} +inline void NodeExecutionIdentifier::set_node_id(const ::std::string& value) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.NodeExecutionIdentifier.node_id) +} +#if LANG_CXX11 +inline void NodeExecutionIdentifier::set_node_id(::std::string&& value) { + + node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.NodeExecutionIdentifier.node_id) +} +#endif +inline void NodeExecutionIdentifier::set_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.NodeExecutionIdentifier.node_id) +} +inline void NodeExecutionIdentifier::set_node_id(const char* value, size_t size) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.NodeExecutionIdentifier.node_id) +} +inline ::std::string* NodeExecutionIdentifier::mutable_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeExecutionIdentifier.node_id) + return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionIdentifier::release_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeExecutionIdentifier.node_id) + + return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionIdentifier::set_allocated_node_id(::std::string* node_id) { + if (node_id != nullptr) { + + } else { + + } + node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeExecutionIdentifier.node_id) +} + +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; +inline bool NodeExecutionIdentifier::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != nullptr; +} +inline void NodeExecutionIdentifier::clear_execution_id() { + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& NodeExecutionIdentifier::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.NodeExecutionIdentifier.execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionIdentifier::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeExecutionIdentifier.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionIdentifier::mutable_execution_id() { + + if (execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeExecutionIdentifier.execution_id) + return execution_id_; +} +inline void NodeExecutionIdentifier::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete execution_id_; + } + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + + } + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeExecutionIdentifier.execution_id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionIdentifier + +// .flyteidl.core.Identifier task_id = 1; +inline bool TaskExecutionIdentifier::has_task_id() const { + return this != internal_default_instance() && task_id_ != nullptr; +} +inline void TaskExecutionIdentifier::clear_task_id() { + if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { + delete task_id_; + } + task_id_ = nullptr; +} +inline const ::flyteidl::core::Identifier& TaskExecutionIdentifier::task_id() const { + const ::flyteidl::core::Identifier* p = task_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.task_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskExecutionIdentifier::release_task_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskExecutionIdentifier.task_id) + + ::flyteidl::core::Identifier* temp = task_id_; + task_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* TaskExecutionIdentifier::mutable_task_id() { + + if (task_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + task_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskExecutionIdentifier.task_id) + return task_id_; +} +inline void TaskExecutionIdentifier::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete task_id_; + } + if (task_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_id, submessage_arena); + } + + } else { + + } + task_id_ = task_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskExecutionIdentifier.task_id) +} + +// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; +inline bool TaskExecutionIdentifier::has_node_execution_id() const { + return this != internal_default_instance() && node_execution_id_ != nullptr; +} +inline void TaskExecutionIdentifier::clear_node_execution_id() { + if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { + delete node_execution_id_; + } + node_execution_id_ = nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionIdentifier::node_execution_id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = node_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.node_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionIdentifier::release_node_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskExecutionIdentifier.node_execution_id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = node_execution_id_; + node_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionIdentifier::mutable_node_execution_id() { + + if (node_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + node_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskExecutionIdentifier.node_execution_id) + return node_execution_id_; +} +inline void TaskExecutionIdentifier::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete node_execution_id_; + } + if (node_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + node_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node_execution_id, submessage_arena); + } + + } else { + + } + node_execution_id_ = node_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskExecutionIdentifier.node_execution_id) +} + +// uint32 retry_attempt = 3; +inline void TaskExecutionIdentifier::clear_retry_attempt() { + retry_attempt_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionIdentifier::retry_attempt() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.retry_attempt) + return retry_attempt_; +} +inline void TaskExecutionIdentifier::set_retry_attempt(::google::protobuf::uint32 value) { + + retry_attempt_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskExecutionIdentifier.retry_attempt) +} + +// ------------------------------------------------------------------- + +// SignalIdentifier + +// string signal_id = 1; +inline void SignalIdentifier::clear_signal_id() { + signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SignalIdentifier::signal_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.SignalIdentifier.signal_id) + return signal_id_.GetNoArena(); +} +inline void SignalIdentifier::set_signal_id(const ::std::string& value) { + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.SignalIdentifier.signal_id) +} +#if LANG_CXX11 +inline void SignalIdentifier::set_signal_id(::std::string&& value) { + + signal_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SignalIdentifier.signal_id) +} +#endif +inline void SignalIdentifier::set_signal_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.SignalIdentifier.signal_id) +} +inline void SignalIdentifier::set_signal_id(const char* value, size_t size) { + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SignalIdentifier.signal_id) +} +inline ::std::string* SignalIdentifier::mutable_signal_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalIdentifier.signal_id) + return signal_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignalIdentifier::release_signal_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.SignalIdentifier.signal_id) + + return signal_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignalIdentifier::set_allocated_signal_id(::std::string* signal_id) { + if (signal_id != nullptr) { + + } else { + + } + signal_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signal_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalIdentifier.signal_id) +} + +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; +inline bool SignalIdentifier::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != nullptr; +} +inline void SignalIdentifier::clear_execution_id() { + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& SignalIdentifier::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.SignalIdentifier.execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalIdentifier::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.SignalIdentifier.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalIdentifier::mutable_execution_id() { + + if (execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalIdentifier.execution_id) + return execution_id_; +} +inline void SignalIdentifier::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete execution_id_; + } + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + + } + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalIdentifier.execution_id) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::ResourceType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ResourceType>() { + return ::flyteidl::core::ResourceType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fidentifier_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc new file mode 100644 index 0000000000..94c018c70b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/interface.proto + +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/interface.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h new file mode 100644 index 0000000000..d4b6633cae --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/interface.proto +#ifndef GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED + +#include "flyteidl/core/interface.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc new file mode 100644 index 0000000000..60481bb54f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc @@ -0,0 +1,2325 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +#include "flyteidl/core/interface.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Variable_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; +namespace flyteidl { +namespace core { +class VariableDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Variable_default_instance_; +class VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _VariableMap_VariablesEntry_DoNotUse_default_instance_; +class VariableMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _VariableMap_default_instance_; +class TypedInterfaceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TypedInterface_default_instance_; +class ParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Literal* default__; + bool required_; +} _Parameter_default_instance_; +class ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterMap_ParametersEntry_DoNotUse_default_instance_; +class ParameterMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterMap_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsVariable_flyteidl_2fcore_2finterface_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Variable_default_instance_; + new (ptr) ::flyteidl::core::Variable(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Variable::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Variable_flyteidl_2fcore_2finterface_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVariable_flyteidl_2fcore_2finterface_2eproto}, { + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsVariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_VariableMap_VariablesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse(); + } + ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto}, { + &scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base,}}; + +static void InitDefaultsVariableMap_flyteidl_2fcore_2finterface_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_VariableMap_default_instance_; + new (ptr) ::flyteidl::core::VariableMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::VariableMap::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVariableMap_flyteidl_2fcore_2finterface_2eproto}, { + &scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base,}}; + +static void InitDefaultsTypedInterface_flyteidl_2fcore_2finterface_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TypedInterface_default_instance_; + new (ptr) ::flyteidl::core::TypedInterface(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TypedInterface::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTypedInterface_flyteidl_2fcore_2finterface_2eproto}, { + &scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base,}}; + +static void InitDefaultsParameter_flyteidl_2fcore_2finterface_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Parameter_default_instance_; + new (ptr) ::flyteidl::core::Parameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Parameter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsParameter_flyteidl_2fcore_2finterface_2eproto}, { + &scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ParameterMap_ParametersEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse(); + } + ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto}, { + &scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base,}}; + +static void InitDefaultsParameterMap_flyteidl_2fcore_2finterface_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ParameterMap_default_instance_; + new (ptr) ::flyteidl::core::ParameterMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ParameterMap::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterMap_flyteidl_2fcore_2finterface_2eproto}, { + &scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2finterface_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2finterface_2eproto[7]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2finterface_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2finterface_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2finterface_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, description_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap, variables_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypedInterface, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypedInterface, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypedInterface, outputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, var_), + offsetof(::flyteidl::core::ParameterDefaultTypeInternal, default__), + offsetof(::flyteidl::core::ParameterDefaultTypeInternal, required_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, behavior_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap, parameters_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Variable)}, + { 7, 14, sizeof(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse)}, + { 16, -1, sizeof(::flyteidl::core::VariableMap)}, + { 22, -1, sizeof(::flyteidl::core::TypedInterface)}, + { 29, -1, sizeof(::flyteidl::core::Parameter)}, + { 38, 45, sizeof(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse)}, + { 47, -1, sizeof(::flyteidl::core::ParameterMap)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Variable_default_instance_), + reinterpret_cast(&::flyteidl::core::_VariableMap_VariablesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_VariableMap_default_instance_), + reinterpret_cast(&::flyteidl::core::_TypedInterface_default_instance_), + reinterpret_cast(&::flyteidl::core::_Parameter_default_instance_), + reinterpret_cast(&::flyteidl::core::_ParameterMap_ParametersEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_ParameterMap_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2finterface_2eproto, "flyteidl/core/interface.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2finterface_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2finterface_2eproto, 7, file_level_enum_descriptors_flyteidl_2fcore_2finterface_2eproto, file_level_service_descriptors_flyteidl_2fcore_2finterface_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2finterface_2eproto[] = + "\n\035flyteidl/core/interface.proto\022\rflyteid" + "l.core\032\031flyteidl/core/types.proto\032\034flyte" + "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + "vior\"\234\001\n\014ParameterMap\022\?\n\nparameters\030\001 \003(" + "\0132+.flyteidl.core.ParameterMap.Parameter" + "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + "\0028\001B6Z4github.com/flyteorg/flyteidl/gen/" + "pb-go/flyteidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2finterface_2eproto = { + false, InitDefaults_flyteidl_2fcore_2finterface_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2finterface_2eproto, + "flyteidl/core/interface.proto", &assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto, 787, +}; + +void AddDescriptors_flyteidl_2fcore_2finterface_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2finterface_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2finterface_2eproto = []() { AddDescriptors_flyteidl_2fcore_2finterface_2eproto(); return true; }(); +namespace flyteidl { +namespace core { + +// =================================================================== + +void Variable::InitAsDefaultInstance() { + ::flyteidl::core::_Variable_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); +} +class Variable::HasBitSetters { + public: + static const ::flyteidl::core::LiteralType& type(const Variable* msg); +}; + +const ::flyteidl::core::LiteralType& +Variable::HasBitSetters::type(const Variable* msg) { + return *msg->type_; +} +void Variable::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Variable::kTypeFieldNumber; +const int Variable::kDescriptionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Variable::Variable() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Variable) +} +Variable::Variable(const Variable& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.description().size() > 0) { + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (from.has_type()) { + type_ = new ::flyteidl::core::LiteralType(*from.type_); + } else { + type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Variable) +} + +void Variable::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = nullptr; +} + +Variable::~Variable() { + // @@protoc_insertion_point(destructor:flyteidl.core.Variable) + SharedDtor(); +} + +void Variable::SharedDtor() { + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete type_; +} + +void Variable::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Variable& Variable::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base); + return *internal_default_instance(); +} + + +void Variable::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Variable) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Variable::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.LiteralType type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string description = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Variable.description"); + object = msg->mutable_description(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Variable::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Variable) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.LiteralType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + // string description = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Variable.description")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Variable) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Variable) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Variable::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Variable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralType type = 1; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::type(this), output); + } + + // string description = 2; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Variable.description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->description(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Variable) +} + +::google::protobuf::uint8* Variable::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Variable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralType type = 1; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::type(this), target); + } + + // string description = 2; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Variable.description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->description(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Variable) + return target; +} + +size_t Variable::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Variable) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string description = 2; + if (this->description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->description()); + } + + // .flyteidl.core.LiteralType type = 1; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Variable::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Variable) + GOOGLE_DCHECK_NE(&from, this); + const Variable* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Variable) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Variable) + MergeFrom(*source); + } +} + +void Variable::MergeFrom(const Variable& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Variable) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.description().size() > 0) { + + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + } +} + +void Variable::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Variable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Variable::CopyFrom(const Variable& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Variable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Variable::IsInitialized() const { + return true; +} + +void Variable::Swap(Variable* other) { + if (other == this) return; + InternalSwap(other); +} +void Variable::InternalSwap(Variable* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::google::protobuf::Metadata Variable::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +VariableMap_VariablesEntry_DoNotUse::VariableMap_VariablesEntry_DoNotUse() {} +VariableMap_VariablesEntry_DoNotUse::VariableMap_VariablesEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void VariableMap_VariablesEntry_DoNotUse::MergeFrom(const VariableMap_VariablesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata VariableMap_VariablesEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[1]; +} +void VariableMap_VariablesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool VariableMap_VariablesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + VariableMap_VariablesEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.VariableMap.VariablesEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void VariableMap::InitAsDefaultInstance() { +} +class VariableMap::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VariableMap::kVariablesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +VariableMap::VariableMap() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.VariableMap) +} +VariableMap::VariableMap(const VariableMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + variables_.MergeFrom(from.variables_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.VariableMap) +} + +void VariableMap::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base); +} + +VariableMap::~VariableMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.VariableMap) + SharedDtor(); +} + +void VariableMap::SharedDtor() { +} + +void VariableMap::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const VariableMap& VariableMap::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base); + return *internal_default_instance(); +} + + +void VariableMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.VariableMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + variables_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* VariableMap::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map variables = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->variables_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool VariableMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.VariableMap) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map variables = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + VariableMap_VariablesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + VariableMap_VariablesEntry_DoNotUse, + ::std::string, ::flyteidl::core::Variable, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable > > parser(&variables_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.VariableMap.VariablesEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.VariableMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.VariableMap) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void VariableMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.VariableMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map variables = 1; + if (!this->variables().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.VariableMap.VariablesEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->variables().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->variables().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it) { + entry.reset(variables_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.VariableMap) +} + +::google::protobuf::uint8* VariableMap::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.VariableMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map variables = 1; + if (!this->variables().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.VariableMap.VariablesEntry.key"); + } + }; + + if (false && + this->variables().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->variables().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it) { + entry.reset(variables_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.VariableMap) + return target; +} + +size_t VariableMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.VariableMap) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map variables = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->variables_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it) { + entry.reset(variables_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void VariableMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.VariableMap) + GOOGLE_DCHECK_NE(&from, this); + const VariableMap* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.VariableMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.VariableMap) + MergeFrom(*source); + } +} + +void VariableMap::MergeFrom(const VariableMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.VariableMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + variables_.MergeFrom(from.variables_); +} + +void VariableMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.VariableMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VariableMap::CopyFrom(const VariableMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.VariableMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VariableMap::IsInitialized() const { + return true; +} + +void VariableMap::Swap(VariableMap* other) { + if (other == this) return; + InternalSwap(other); +} +void VariableMap::InternalSwap(VariableMap* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + variables_.Swap(&other->variables_); +} + +::google::protobuf::Metadata VariableMap::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TypedInterface::InitAsDefaultInstance() { + ::flyteidl::core::_TypedInterface_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::VariableMap*>( + ::flyteidl::core::VariableMap::internal_default_instance()); + ::flyteidl::core::_TypedInterface_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::VariableMap*>( + ::flyteidl::core::VariableMap::internal_default_instance()); +} +class TypedInterface::HasBitSetters { + public: + static const ::flyteidl::core::VariableMap& inputs(const TypedInterface* msg); + static const ::flyteidl::core::VariableMap& outputs(const TypedInterface* msg); +}; + +const ::flyteidl::core::VariableMap& +TypedInterface::HasBitSetters::inputs(const TypedInterface* msg) { + return *msg->inputs_; +} +const ::flyteidl::core::VariableMap& +TypedInterface::HasBitSetters::outputs(const TypedInterface* msg) { + return *msg->outputs_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TypedInterface::kInputsFieldNumber; +const int TypedInterface::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TypedInterface::TypedInterface() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TypedInterface) +} +TypedInterface::TypedInterface(const TypedInterface& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::VariableMap(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_outputs()) { + outputs_ = new ::flyteidl::core::VariableMap(*from.outputs_); + } else { + outputs_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TypedInterface) +} + +void TypedInterface::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base); + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&outputs_) - + reinterpret_cast(&inputs_)) + sizeof(outputs_)); +} + +TypedInterface::~TypedInterface() { + // @@protoc_insertion_point(destructor:flyteidl.core.TypedInterface) + SharedDtor(); +} + +void TypedInterface::SharedDtor() { + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete outputs_; +} + +void TypedInterface::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TypedInterface& TypedInterface::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base); + return *internal_default_instance(); +} + + +void TypedInterface::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TypedInterface) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TypedInterface::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.VariableMap inputs = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::VariableMap::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.VariableMap outputs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::VariableMap::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TypedInterface::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TypedInterface) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.VariableMap inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.VariableMap outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TypedInterface) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TypedInterface) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TypedInterface::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TypedInterface) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.VariableMap inputs = 1; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::inputs(this), output); + } + + // .flyteidl.core.VariableMap outputs = 2; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::outputs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TypedInterface) +} + +::google::protobuf::uint8* TypedInterface::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TypedInterface) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.VariableMap inputs = 1; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::inputs(this), target); + } + + // .flyteidl.core.VariableMap outputs = 2; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::outputs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TypedInterface) + return target; +} + +size_t TypedInterface::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TypedInterface) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.VariableMap inputs = 1; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.core.VariableMap outputs = 2; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *outputs_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TypedInterface::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TypedInterface) + GOOGLE_DCHECK_NE(&from, this); + const TypedInterface* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TypedInterface) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TypedInterface) + MergeFrom(*source); + } +} + +void TypedInterface::MergeFrom(const TypedInterface& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TypedInterface) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::VariableMap::MergeFrom(from.inputs()); + } + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::core::VariableMap::MergeFrom(from.outputs()); + } +} + +void TypedInterface::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TypedInterface) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TypedInterface::CopyFrom(const TypedInterface& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TypedInterface) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TypedInterface::IsInitialized() const { + return true; +} + +void TypedInterface::Swap(TypedInterface* other) { + if (other == this) return; + InternalSwap(other); +} +void TypedInterface::InternalSwap(TypedInterface* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(inputs_, other->inputs_); + swap(outputs_, other->outputs_); +} + +::google::protobuf::Metadata TypedInterface::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Parameter::InitAsDefaultInstance() { + ::flyteidl::core::_Parameter_default_instance_._instance.get_mutable()->var_ = const_cast< ::flyteidl::core::Variable*>( + ::flyteidl::core::Variable::internal_default_instance()); + ::flyteidl::core::_Parameter_default_instance_.default__ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); + ::flyteidl::core::_Parameter_default_instance_.required_ = false; +} +class Parameter::HasBitSetters { + public: + static const ::flyteidl::core::Variable& var(const Parameter* msg); + static const ::flyteidl::core::Literal& default_(const Parameter* msg); +}; + +const ::flyteidl::core::Variable& +Parameter::HasBitSetters::var(const Parameter* msg) { + return *msg->var_; +} +const ::flyteidl::core::Literal& +Parameter::HasBitSetters::default_(const Parameter* msg) { + return *msg->behavior_.default__; +} +void Parameter::set_allocated_default_(::flyteidl::core::Literal* default_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_behavior(); + if (default_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + default_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, default_, submessage_arena); + } + set_has_default_(); + behavior_.default__ = default_; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.default) +} +void Parameter::clear_default_() { + if (has_default_()) { + delete behavior_.default__; + clear_has_behavior(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Parameter::kVarFieldNumber; +const int Parameter::kDefaultFieldNumber; +const int Parameter::kRequiredFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Parameter::Parameter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Parameter) +} +Parameter::Parameter(const Parameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_var()) { + var_ = new ::flyteidl::core::Variable(*from.var_); + } else { + var_ = nullptr; + } + clear_has_behavior(); + switch (from.behavior_case()) { + case kDefault: { + mutable_default_()->::flyteidl::core::Literal::MergeFrom(from.default_()); + break; + } + case kRequired: { + set_required(from.required()); + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Parameter) +} + +void Parameter::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base); + var_ = nullptr; + clear_has_behavior(); +} + +Parameter::~Parameter() { + // @@protoc_insertion_point(destructor:flyteidl.core.Parameter) + SharedDtor(); +} + +void Parameter::SharedDtor() { + if (this != internal_default_instance()) delete var_; + if (has_behavior()) { + clear_behavior(); + } +} + +void Parameter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Parameter& Parameter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base); + return *internal_default_instance(); +} + + +void Parameter::clear_behavior() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Parameter) + switch (behavior_case()) { + case kDefault: { + delete behavior_.default__; + break; + } + case kRequired: { + // No need to clear + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + _oneof_case_[0] = BEHAVIOR_NOT_SET; +} + + +void Parameter::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && var_ != nullptr) { + delete var_; + } + var_ = nullptr; + clear_behavior(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Parameter::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Variable var = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Variable::_InternalParse; + object = msg->mutable_var(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Literal default = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_default_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool required = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_required(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Parameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Parameter) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Variable var = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_var())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Literal default = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_default_())); + } else { + goto handle_unusual; + } + break; + } + + // bool required = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + clear_behavior(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &behavior_.required_))); + set_has_required(); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Parameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Parameter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Parameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Variable var = 1; + if (this->has_var()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::var(this), output); + } + + // .flyteidl.core.Literal default = 2; + if (has_default_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::default_(this), output); + } + + // bool required = 3; + if (has_required()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->required(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Parameter) +} + +::google::protobuf::uint8* Parameter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Variable var = 1; + if (this->has_var()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::var(this), target); + } + + // .flyteidl.core.Literal default = 2; + if (has_default_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::default_(this), target); + } + + // bool required = 3; + if (has_required()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->required(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Parameter) + return target; +} + +size_t Parameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Parameter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Variable var = 1; + if (this->has_var()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *var_); + } + + switch (behavior_case()) { + // .flyteidl.core.Literal default = 2; + case kDefault: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *behavior_.default__); + break; + } + // bool required = 3; + case kRequired: { + total_size += 1 + 1; + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Parameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Parameter) + GOOGLE_DCHECK_NE(&from, this); + const Parameter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Parameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Parameter) + MergeFrom(*source); + } +} + +void Parameter::MergeFrom(const Parameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Parameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_var()) { + mutable_var()->::flyteidl::core::Variable::MergeFrom(from.var()); + } + switch (from.behavior_case()) { + case kDefault: { + mutable_default_()->::flyteidl::core::Literal::MergeFrom(from.default_()); + break; + } + case kRequired: { + set_required(from.required()); + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } +} + +void Parameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Parameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Parameter::CopyFrom(const Parameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Parameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Parameter::IsInitialized() const { + return true; +} + +void Parameter::Swap(Parameter* other) { + if (other == this) return; + InternalSwap(other); +} +void Parameter::InternalSwap(Parameter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(var_, other->var_); + swap(behavior_, other->behavior_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Parameter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +ParameterMap_ParametersEntry_DoNotUse::ParameterMap_ParametersEntry_DoNotUse() {} +ParameterMap_ParametersEntry_DoNotUse::ParameterMap_ParametersEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ParameterMap_ParametersEntry_DoNotUse::MergeFrom(const ParameterMap_ParametersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ParameterMap_ParametersEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[5]; +} +void ParameterMap_ParametersEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterMap_ParametersEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ParameterMap_ParametersEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ParameterMap.ParametersEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void ParameterMap::InitAsDefaultInstance() { +} +class ParameterMap::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterMap::kParametersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterMap::ParameterMap() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ParameterMap) +} +ParameterMap::ParameterMap(const ParameterMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + parameters_.MergeFrom(from.parameters_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ParameterMap) +} + +void ParameterMap::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base); +} + +ParameterMap::~ParameterMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.ParameterMap) + SharedDtor(); +} + +void ParameterMap::SharedDtor() { +} + +void ParameterMap::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterMap& ParameterMap::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ParameterMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parameters_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterMap::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map parameters = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->parameters_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ParameterMap) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map parameters = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + ParameterMap_ParametersEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ParameterMap_ParametersEntry_DoNotUse, + ::std::string, ::flyteidl::core::Parameter, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter > > parser(¶meters_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ParameterMap.ParametersEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ParameterMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ParameterMap) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ParameterMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameters = 1; + if (!this->parameters().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ParameterMap.ParametersEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->parameters().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameters().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameters_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it) { + entry.reset(parameters_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ParameterMap) +} + +::google::protobuf::uint8* ParameterMap::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ParameterMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameters = 1; + if (!this->parameters().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ParameterMap.ParametersEntry.key"); + } + }; + + if (false && + this->parameters().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameters().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameters_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it) { + entry.reset(parameters_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ParameterMap) + return target; +} + +size_t ParameterMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ParameterMap) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map parameters = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->parameters_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it) { + entry.reset(parameters_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ParameterMap) + GOOGLE_DCHECK_NE(&from, this); + const ParameterMap* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ParameterMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ParameterMap) + MergeFrom(*source); + } +} + +void ParameterMap::MergeFrom(const ParameterMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ParameterMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parameters_.MergeFrom(from.parameters_); +} + +void ParameterMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ParameterMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterMap::CopyFrom(const ParameterMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ParameterMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterMap::IsInitialized() const { + return true; +} + +void ParameterMap::Swap(ParameterMap* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterMap::InternalSwap(ParameterMap* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + parameters_.Swap(&other->parameters_); +} + +::google::protobuf::Metadata ParameterMap::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::Variable* Arena::CreateMaybeMessage< ::flyteidl::core::Variable >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Variable >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::VariableMap* Arena::CreateMaybeMessage< ::flyteidl::core::VariableMap >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::VariableMap >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TypedInterface* Arena::CreateMaybeMessage< ::flyteidl::core::TypedInterface >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TypedInterface >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Parameter* Arena::CreateMaybeMessage< ::flyteidl::core::Parameter >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Parameter >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ParameterMap* Arena::CreateMaybeMessage< ::flyteidl::core::ParameterMap >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ParameterMap >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h new file mode 100644 index 0000000000..91e935e086 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h @@ -0,0 +1,1208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2finterface_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2finterface_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include "flyteidl/core/types.pb.h" +#include "flyteidl/core/literals.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2finterface_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2finterface_2eproto(); +namespace flyteidl { +namespace core { +class Parameter; +class ParameterDefaultTypeInternal; +extern ParameterDefaultTypeInternal _Parameter_default_instance_; +class ParameterMap; +class ParameterMapDefaultTypeInternal; +extern ParameterMapDefaultTypeInternal _ParameterMap_default_instance_; +class ParameterMap_ParametersEntry_DoNotUse; +class ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal; +extern ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal _ParameterMap_ParametersEntry_DoNotUse_default_instance_; +class TypedInterface; +class TypedInterfaceDefaultTypeInternal; +extern TypedInterfaceDefaultTypeInternal _TypedInterface_default_instance_; +class Variable; +class VariableDefaultTypeInternal; +extern VariableDefaultTypeInternal _Variable_default_instance_; +class VariableMap; +class VariableMapDefaultTypeInternal; +extern VariableMapDefaultTypeInternal _VariableMap_default_instance_; +class VariableMap_VariablesEntry_DoNotUse; +class VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal; +extern VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal _VariableMap_VariablesEntry_DoNotUse_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::Parameter* Arena::CreateMaybeMessage<::flyteidl::core::Parameter>(Arena*); +template<> ::flyteidl::core::ParameterMap* Arena::CreateMaybeMessage<::flyteidl::core::ParameterMap>(Arena*); +template<> ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::TypedInterface* Arena::CreateMaybeMessage<::flyteidl::core::TypedInterface>(Arena*); +template<> ::flyteidl::core::Variable* Arena::CreateMaybeMessage<::flyteidl::core::Variable>(Arena*); +template<> ::flyteidl::core::VariableMap* Arena::CreateMaybeMessage<::flyteidl::core::VariableMap>(Arena*); +template<> ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::VariableMap_VariablesEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +// =================================================================== + +class Variable final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Variable) */ { + public: + Variable(); + virtual ~Variable(); + + Variable(const Variable& from); + + inline Variable& operator=(const Variable& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Variable(Variable&& from) noexcept + : Variable() { + *this = ::std::move(from); + } + + inline Variable& operator=(Variable&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Variable& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Variable* internal_default_instance() { + return reinterpret_cast( + &_Variable_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Variable* other); + friend void swap(Variable& a, Variable& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Variable* New() const final { + return CreateMaybeMessage(nullptr); + } + + Variable* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Variable& from); + void MergeFrom(const Variable& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Variable* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string description = 2; + void clear_description(); + static const int kDescriptionFieldNumber = 2; + const ::std::string& description() const; + void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif + void set_description(const char* value); + void set_description(const char* value, size_t size); + ::std::string* mutable_description(); + ::std::string* release_description(); + void set_allocated_description(::std::string* description); + + // .flyteidl.core.LiteralType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + const ::flyteidl::core::LiteralType& type() const; + ::flyteidl::core::LiteralType* release_type(); + ::flyteidl::core::LiteralType* mutable_type(); + void set_allocated_type(::flyteidl::core::LiteralType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::flyteidl::core::LiteralType* type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; +}; +// ------------------------------------------------------------------- + +class VariableMap_VariablesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + VariableMap_VariablesEntry_DoNotUse(); + VariableMap_VariablesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const VariableMap_VariablesEntry_DoNotUse& other); + static const VariableMap_VariablesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_VariableMap_VariablesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class VariableMap final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.VariableMap) */ { + public: + VariableMap(); + virtual ~VariableMap(); + + VariableMap(const VariableMap& from); + + inline VariableMap& operator=(const VariableMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + VariableMap(VariableMap&& from) noexcept + : VariableMap() { + *this = ::std::move(from); + } + + inline VariableMap& operator=(VariableMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const VariableMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VariableMap* internal_default_instance() { + return reinterpret_cast( + &_VariableMap_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(VariableMap* other); + friend void swap(VariableMap& a, VariableMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline VariableMap* New() const final { + return CreateMaybeMessage(nullptr); + } + + VariableMap* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const VariableMap& from); + void MergeFrom(const VariableMap& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VariableMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map variables = 1; + int variables_size() const; + void clear_variables(); + static const int kVariablesFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >& + variables() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >* + mutable_variables(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + VariableMap_VariablesEntry_DoNotUse, + ::std::string, ::flyteidl::core::Variable, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > variables_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; +}; +// ------------------------------------------------------------------- + +class TypedInterface final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TypedInterface) */ { + public: + TypedInterface(); + virtual ~TypedInterface(); + + TypedInterface(const TypedInterface& from); + + inline TypedInterface& operator=(const TypedInterface& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TypedInterface(TypedInterface&& from) noexcept + : TypedInterface() { + *this = ::std::move(from); + } + + inline TypedInterface& operator=(TypedInterface&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TypedInterface& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TypedInterface* internal_default_instance() { + return reinterpret_cast( + &_TypedInterface_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TypedInterface* other); + friend void swap(TypedInterface& a, TypedInterface& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TypedInterface* New() const final { + return CreateMaybeMessage(nullptr); + } + + TypedInterface* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TypedInterface& from); + void MergeFrom(const TypedInterface& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TypedInterface* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.VariableMap inputs = 1; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::flyteidl::core::VariableMap& inputs() const; + ::flyteidl::core::VariableMap* release_inputs(); + ::flyteidl::core::VariableMap* mutable_inputs(); + void set_allocated_inputs(::flyteidl::core::VariableMap* inputs); + + // .flyteidl.core.VariableMap outputs = 2; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::flyteidl::core::VariableMap& outputs() const; + ::flyteidl::core::VariableMap* release_outputs(); + ::flyteidl::core::VariableMap* mutable_outputs(); + void set_allocated_outputs(::flyteidl::core::VariableMap* outputs); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::VariableMap* inputs_; + ::flyteidl::core::VariableMap* outputs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; +}; +// ------------------------------------------------------------------- + +class Parameter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Parameter) */ { + public: + Parameter(); + virtual ~Parameter(); + + Parameter(const Parameter& from); + + inline Parameter& operator=(const Parameter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Parameter(Parameter&& from) noexcept + : Parameter() { + *this = ::std::move(from); + } + + inline Parameter& operator=(Parameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Parameter& default_instance(); + + enum BehaviorCase { + kDefault = 2, + kRequired = 3, + BEHAVIOR_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Parameter* internal_default_instance() { + return reinterpret_cast( + &_Parameter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(Parameter* other); + friend void swap(Parameter& a, Parameter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Parameter* New() const final { + return CreateMaybeMessage(nullptr); + } + + Parameter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Parameter& from); + void MergeFrom(const Parameter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Parameter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Variable var = 1; + bool has_var() const; + void clear_var(); + static const int kVarFieldNumber = 1; + const ::flyteidl::core::Variable& var() const; + ::flyteidl::core::Variable* release_var(); + ::flyteidl::core::Variable* mutable_var(); + void set_allocated_var(::flyteidl::core::Variable* var); + + // .flyteidl.core.Literal default = 2; + bool has_default_() const; + void clear_default_(); + static const int kDefaultFieldNumber = 2; + const ::flyteidl::core::Literal& default_() const; + ::flyteidl::core::Literal* release_default_(); + ::flyteidl::core::Literal* mutable_default_(); + void set_allocated_default_(::flyteidl::core::Literal* default_); + + // bool required = 3; + private: + bool has_required() const; + public: + void clear_required(); + static const int kRequiredFieldNumber = 3; + bool required() const; + void set_required(bool value); + + void clear_behavior(); + BehaviorCase behavior_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) + private: + class HasBitSetters; + void set_has_default_(); + void set_has_required(); + + inline bool has_behavior() const; + inline void clear_has_behavior(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Variable* var_; + union BehaviorUnion { + BehaviorUnion() {} + ::flyteidl::core::Literal* default__; + bool required_; + } behavior_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterMap_ParametersEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ParameterMap_ParametersEntry_DoNotUse(); + ParameterMap_ParametersEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ParameterMap_ParametersEntry_DoNotUse& other); + static const ParameterMap_ParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ParameterMap_ParametersEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ParameterMap final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ParameterMap) */ { + public: + ParameterMap(); + virtual ~ParameterMap(); + + ParameterMap(const ParameterMap& from); + + inline ParameterMap& operator=(const ParameterMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterMap(ParameterMap&& from) noexcept + : ParameterMap() { + *this = ::std::move(from); + } + + inline ParameterMap& operator=(ParameterMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterMap* internal_default_instance() { + return reinterpret_cast( + &_ParameterMap_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ParameterMap* other); + friend void swap(ParameterMap& a, ParameterMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterMap* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterMap* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterMap& from); + void MergeFrom(const ParameterMap& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map parameters = 1; + int parameters_size() const; + void clear_parameters(); + static const int kParametersFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >& + parameters() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >* + mutable_parameters(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ParameterMap_ParametersEntry_DoNotUse, + ::std::string, ::flyteidl::core::Parameter, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > parameters_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Variable + +// .flyteidl.core.LiteralType type = 1; +inline bool Variable::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::LiteralType& Variable::type() const { + const ::flyteidl::core::LiteralType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.Variable.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* Variable::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.Variable.type) + + ::flyteidl::core::LiteralType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* Variable::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.type) + return type_; +} +inline void Variable::set_allocated_type(::flyteidl::core::LiteralType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.type) +} + +// string description = 2; +inline void Variable::clear_description() { + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Variable::description() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Variable.description) + return description_.GetNoArena(); +} +inline void Variable::set_description(const ::std::string& value) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Variable.description) +} +#if LANG_CXX11 +inline void Variable::set_description(::std::string&& value) { + + description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Variable.description) +} +#endif +inline void Variable::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Variable.description) +} +inline void Variable::set_description(const char* value, size_t size) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Variable.description) +} +inline ::std::string* Variable::mutable_description() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.description) + return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Variable::release_description() { + // @@protoc_insertion_point(field_release:flyteidl.core.Variable.description) + + return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Variable::set_allocated_description(::std::string* description) { + if (description != nullptr) { + + } else { + + } + description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.description) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// VariableMap + +// map variables = 1; +inline int VariableMap::variables_size() const { + return variables_.size(); +} +inline void VariableMap::clear_variables() { + variables_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >& +VariableMap::variables() const { + // @@protoc_insertion_point(field_map:flyteidl.core.VariableMap.variables) + return variables_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >* +VariableMap::mutable_variables() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.VariableMap.variables) + return variables_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// TypedInterface + +// .flyteidl.core.VariableMap inputs = 1; +inline bool TypedInterface::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline void TypedInterface::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +inline const ::flyteidl::core::VariableMap& TypedInterface::inputs() const { + const ::flyteidl::core::VariableMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.core.TypedInterface.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_VariableMap_default_instance_); +} +inline ::flyteidl::core::VariableMap* TypedInterface::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.core.TypedInterface.inputs) + + ::flyteidl::core::VariableMap* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::VariableMap* TypedInterface::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::VariableMap>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TypedInterface.inputs) + return inputs_; +} +inline void TypedInterface::set_allocated_inputs(::flyteidl::core::VariableMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete inputs_; + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypedInterface.inputs) +} + +// .flyteidl.core.VariableMap outputs = 2; +inline bool TypedInterface::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; +} +inline void TypedInterface::clear_outputs() { + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; +} +inline const ::flyteidl::core::VariableMap& TypedInterface::outputs() const { + const ::flyteidl::core::VariableMap* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.core.TypedInterface.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_VariableMap_default_instance_); +} +inline ::flyteidl::core::VariableMap* TypedInterface::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.core.TypedInterface.outputs) + + ::flyteidl::core::VariableMap* temp = outputs_; + outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::VariableMap* TypedInterface::mutable_outputs() { + + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::VariableMap>(GetArenaNoVirtual()); + outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TypedInterface.outputs) + return outputs_; +} +inline void TypedInterface::set_allocated_outputs(::flyteidl::core::VariableMap* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete outputs_; + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypedInterface.outputs) +} + +// ------------------------------------------------------------------- + +// Parameter + +// .flyteidl.core.Variable var = 1; +inline bool Parameter::has_var() const { + return this != internal_default_instance() && var_ != nullptr; +} +inline void Parameter::clear_var() { + if (GetArenaNoVirtual() == nullptr && var_ != nullptr) { + delete var_; + } + var_ = nullptr; +} +inline const ::flyteidl::core::Variable& Parameter::var() const { + const ::flyteidl::core::Variable* p = var_; + // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.var) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Variable_default_instance_); +} +inline ::flyteidl::core::Variable* Parameter::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.var) + + ::flyteidl::core::Variable* temp = var_; + var_ = nullptr; + return temp; +} +inline ::flyteidl::core::Variable* Parameter::mutable_var() { + + if (var_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Variable>(GetArenaNoVirtual()); + var_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.var) + return var_; +} +inline void Parameter::set_allocated_var(::flyteidl::core::Variable* var) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete var_; + } + if (var) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + var = ::google::protobuf::internal::GetOwnedMessage( + message_arena, var, submessage_arena); + } + + } else { + + } + var_ = var; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.var) +} + +// .flyteidl.core.Literal default = 2; +inline bool Parameter::has_default_() const { + return behavior_case() == kDefault; +} +inline void Parameter::set_has_default_() { + _oneof_case_[0] = kDefault; +} +inline ::flyteidl::core::Literal* Parameter::release_default_() { + // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.default) + if (has_default_()) { + clear_has_behavior(); + ::flyteidl::core::Literal* temp = behavior_.default__; + behavior_.default__ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Literal& Parameter::default_() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.default) + return has_default_() + ? *behavior_.default__ + : *reinterpret_cast< ::flyteidl::core::Literal*>(&::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* Parameter::mutable_default_() { + if (!has_default_()) { + clear_behavior(); + set_has_default_(); + behavior_.default__ = CreateMaybeMessage< ::flyteidl::core::Literal >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.default) + return behavior_.default__; +} + +// bool required = 3; +inline bool Parameter::has_required() const { + return behavior_case() == kRequired; +} +inline void Parameter::set_has_required() { + _oneof_case_[0] = kRequired; +} +inline void Parameter::clear_required() { + if (has_required()) { + behavior_.required_ = false; + clear_has_behavior(); + } +} +inline bool Parameter::required() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.required) + if (has_required()) { + return behavior_.required_; + } + return false; +} +inline void Parameter::set_required(bool value) { + if (!has_required()) { + clear_behavior(); + set_has_required(); + } + behavior_.required_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Parameter.required) +} + +inline bool Parameter::has_behavior() const { + return behavior_case() != BEHAVIOR_NOT_SET; +} +inline void Parameter::clear_has_behavior() { + _oneof_case_[0] = BEHAVIOR_NOT_SET; +} +inline Parameter::BehaviorCase Parameter::behavior_case() const { + return Parameter::BehaviorCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ParameterMap + +// map parameters = 1; +inline int ParameterMap::parameters_size() const { + return parameters_.size(); +} +inline void ParameterMap::clear_parameters() { + parameters_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >& +ParameterMap::parameters() const { + // @@protoc_insertion_point(field_map:flyteidl.core.ParameterMap.parameters) + return parameters_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >* +ParameterMap::mutable_parameters() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ParameterMap.parameters) + return parameters_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2finterface_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc new file mode 100644 index 0000000000..96d50e5323 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/literals.proto + +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/literals.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h new file mode 100644 index 0000000000..0f2956748e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/literals.proto +#ifndef GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED + +#include "flyteidl/core/literals.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc new file mode 100644 index 0000000000..05cd47e497 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc @@ -0,0 +1,8922 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +#include "flyteidl/core/literals.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Void_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace core { +class PrimitiveDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::int64 integer_; + double float_value_; + ::google::protobuf::internal::ArenaStringPtr string_value_; + bool boolean_; + const ::google::protobuf::Timestamp* datetime_; + const ::google::protobuf::Duration* duration_; +} _Primitive_default_instance_; +class VoidDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Void_default_instance_; +class BlobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Blob_default_instance_; +class BlobMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _BlobMetadata_default_instance_; +class BinaryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Binary_default_instance_; +class SchemaDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Schema_default_instance_; +class UnionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Union_default_instance_; +class StructuredDatasetMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StructuredDatasetMetadata_default_instance_; +class StructuredDatasetDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StructuredDataset_default_instance_; +class ScalarDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Primitive* primitive_; + const ::flyteidl::core::Blob* blob_; + const ::flyteidl::core::Binary* binary_; + const ::flyteidl::core::Schema* schema_; + const ::flyteidl::core::Void* none_type_; + const ::flyteidl::core::Error* error_; + const ::google::protobuf::Struct* generic_; + const ::flyteidl::core::StructuredDataset* structured_dataset_; + const ::flyteidl::core::Union* union__; +} _Scalar_default_instance_; +class LiteralDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Scalar* scalar_; + const ::flyteidl::core::LiteralCollection* collection_; + const ::flyteidl::core::LiteralMap* map_; +} _Literal_default_instance_; +class LiteralCollectionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LiteralCollection_default_instance_; +class LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LiteralMap_LiteralsEntry_DoNotUse_default_instance_; +class LiteralMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _LiteralMap_default_instance_; +class BindingDataCollectionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _BindingDataCollection_default_instance_; +class BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _BindingDataMap_BindingsEntry_DoNotUse_default_instance_; +class BindingDataMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _BindingDataMap_default_instance_; +class UnionInfoDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _UnionInfo_default_instance_; +class BindingDataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Scalar* scalar_; + const ::flyteidl::core::BindingDataCollection* collection_; + const ::flyteidl::core::OutputReference* promise_; + const ::flyteidl::core::BindingDataMap* map_; +} _BindingData_default_instance_; +class BindingDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Binding_default_instance_; +class KeyValuePairDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _KeyValuePair_default_instance_; +class RetryStrategyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _RetryStrategy_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsPrimitive_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Primitive_default_instance_; + new (ptr) ::flyteidl::core::Primitive(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Primitive::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPrimitive_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsVoid_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Void_default_instance_; + new (ptr) ::flyteidl::core::Void(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Void::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Void_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVoid_flyteidl_2fcore_2fliterals_2eproto}, {}}; + +static void InitDefaultsBlob_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Blob_default_instance_; + new (ptr) ::flyteidl::core::Blob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Blob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBlob_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsBlobMetadata_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_BlobMetadata_default_instance_; + new (ptr) ::flyteidl::core::BlobMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BlobMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBlobMetadata_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsBinary_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Binary_default_instance_; + new (ptr) ::flyteidl::core::Binary(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Binary::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBinary_flyteidl_2fcore_2fliterals_2eproto}, {}}; + +static void InitDefaultsSchema_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Schema_default_instance_; + new (ptr) ::flyteidl::core::Schema(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Schema::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSchema_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsStructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_StructuredDatasetMetadata_default_instance_; + new (ptr) ::flyteidl::core::StructuredDatasetMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::StructuredDatasetMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsStructuredDataset_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_StructuredDataset_default_instance_; + new (ptr) ::flyteidl::core::StructuredDataset(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::StructuredDataset::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStructuredDataset_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsLiteral_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Union_default_instance_; + new (ptr) ::flyteidl::core::Union(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_Scalar_default_instance_; + new (ptr) ::flyteidl::core::Scalar(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_Literal_default_instance_; + new (ptr) ::flyteidl::core::Literal(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_LiteralCollection_default_instance_; + new (ptr) ::flyteidl::core::LiteralCollection(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_LiteralMap_LiteralsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse(); + } + { + void* ptr = &::flyteidl::core::_LiteralMap_default_instance_; + new (ptr) ::flyteidl::core::LiteralMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Union::InitAsDefaultInstance(); + ::flyteidl::core::Scalar::InitAsDefaultInstance(); + ::flyteidl::core::Literal::InitAsDefaultInstance(); + ::flyteidl::core::LiteralCollection::InitAsDefaultInstance(); + ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse::InitAsDefaultInstance(); + ::flyteidl::core::LiteralMap::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsLiteral_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Void_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, + &scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsUnionInfo_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_UnionInfo_default_instance_; + new (ptr) ::flyteidl::core::UnionInfo(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::UnionInfo::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUnionInfo_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsBindingData_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_BindingDataCollection_default_instance_; + new (ptr) ::flyteidl::core::BindingDataCollection(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_BindingDataMap_BindingsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse(); + } + { + void* ptr = &::flyteidl::core::_BindingDataMap_default_instance_; + new (ptr) ::flyteidl::core::BindingDataMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_BindingData_default_instance_; + new (ptr) ::flyteidl::core::BindingData(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BindingDataCollection::InitAsDefaultInstance(); + ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse::InitAsDefaultInstance(); + ::flyteidl::core::BindingDataMap::InitAsDefaultInstance(); + ::flyteidl::core::BindingData::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsBindingData_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsBinding_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Binding_default_instance_; + new (ptr) ::flyteidl::core::Binding(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Binding::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBinding_flyteidl_2fcore_2fliterals_2eproto}, { + &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsKeyValuePair_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_KeyValuePair_default_instance_; + new (ptr) ::flyteidl::core::KeyValuePair(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::KeyValuePair::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKeyValuePair_flyteidl_2fcore_2fliterals_2eproto}, {}}; + +static void InitDefaultsRetryStrategy_flyteidl_2fcore_2fliterals_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_RetryStrategy_default_instance_; + new (ptr) ::flyteidl::core::RetryStrategy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::RetryStrategy::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRetryStrategy_flyteidl_2fcore_2fliterals_2eproto}, {}}; + +void InitDefaults_flyteidl_2fcore_2fliterals_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Void_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[22]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fliterals_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fliterals_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fliterals_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Primitive, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Primitive, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, integer_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, float_value_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, string_value_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, boolean_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, datetime_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, duration_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Primitive, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Void, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Blob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Blob, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Blob, uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobMetadata, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binary, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binary, value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binary, tag_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Schema, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Schema, uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Schema, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Union, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Union, value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Union, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetMetadata, structured_dataset_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDataset, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDataset, uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDataset, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Scalar, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Scalar, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, primitive_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, blob_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, binary_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, schema_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, none_type_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, error_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, generic_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, structured_dataset_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, union__), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Scalar, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::LiteralDefaultTypeInternal, scalar_), + offsetof(::flyteidl::core::LiteralDefaultTypeInternal, collection_), + offsetof(::flyteidl::core::LiteralDefaultTypeInternal, map_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, hash_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralCollection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralCollection, literals_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap, literals_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataCollection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataCollection, bindings_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap, bindings_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionInfo, targettype_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, scalar_), + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, collection_), + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, promise_), + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, map_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, union__), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binding, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binding, var_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binding, binding_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::KeyValuePair, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::KeyValuePair, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::KeyValuePair, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::RetryStrategy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::RetryStrategy, retries_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Primitive)}, + { 12, -1, sizeof(::flyteidl::core::Void)}, + { 17, -1, sizeof(::flyteidl::core::Blob)}, + { 24, -1, sizeof(::flyteidl::core::BlobMetadata)}, + { 30, -1, sizeof(::flyteidl::core::Binary)}, + { 37, -1, sizeof(::flyteidl::core::Schema)}, + { 44, -1, sizeof(::flyteidl::core::Union)}, + { 51, -1, sizeof(::flyteidl::core::StructuredDatasetMetadata)}, + { 57, -1, sizeof(::flyteidl::core::StructuredDataset)}, + { 64, -1, sizeof(::flyteidl::core::Scalar)}, + { 79, -1, sizeof(::flyteidl::core::Literal)}, + { 89, -1, sizeof(::flyteidl::core::LiteralCollection)}, + { 95, 102, sizeof(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse)}, + { 104, -1, sizeof(::flyteidl::core::LiteralMap)}, + { 110, -1, sizeof(::flyteidl::core::BindingDataCollection)}, + { 116, 123, sizeof(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse)}, + { 125, -1, sizeof(::flyteidl::core::BindingDataMap)}, + { 131, -1, sizeof(::flyteidl::core::UnionInfo)}, + { 137, -1, sizeof(::flyteidl::core::BindingData)}, + { 148, -1, sizeof(::flyteidl::core::Binding)}, + { 155, -1, sizeof(::flyteidl::core::KeyValuePair)}, + { 162, -1, sizeof(::flyteidl::core::RetryStrategy)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Primitive_default_instance_), + reinterpret_cast(&::flyteidl::core::_Void_default_instance_), + reinterpret_cast(&::flyteidl::core::_Blob_default_instance_), + reinterpret_cast(&::flyteidl::core::_BlobMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_Binary_default_instance_), + reinterpret_cast(&::flyteidl::core::_Schema_default_instance_), + reinterpret_cast(&::flyteidl::core::_Union_default_instance_), + reinterpret_cast(&::flyteidl::core::_StructuredDatasetMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_StructuredDataset_default_instance_), + reinterpret_cast(&::flyteidl::core::_Scalar_default_instance_), + reinterpret_cast(&::flyteidl::core::_Literal_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralCollection_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralMap_LiteralsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralMap_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingDataCollection_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingDataMap_BindingsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingDataMap_default_instance_), + reinterpret_cast(&::flyteidl::core::_UnionInfo_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingData_default_instance_), + reinterpret_cast(&::flyteidl::core::_Binding_default_instance_), + reinterpret_cast(&::flyteidl::core::_KeyValuePair_default_instance_), + reinterpret_cast(&::flyteidl::core::_RetryStrategy_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, "flyteidl/core/literals.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fliterals_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fliterals_2eproto, 22, file_level_enum_descriptors_flyteidl_2fcore_2fliterals_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fliterals_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fliterals_2eproto[] = + "\n\034flyteidl/core/literals.proto\022\rflyteidl" + ".core\032\037google/protobuf/timestamp.proto\032\036" + "google/protobuf/duration.proto\032\034google/p" + "rotobuf/struct.proto\032\031flyteidl/core/type" + "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + "ype\"X\n\005Union\022%\n\005value\030\001 \001(\0132\026.flyteidl.c" + "ore.Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.cor" + "e.LiteralType\"b\n\031StructuredDatasetMetada" + "ta\022E\n\027structured_dataset_type\030\001 \001(\0132$.fl" + "yteidl.core.StructuredDatasetType\"\\\n\021Str" + "ucturedDataset\022\013\n\003uri\030\001 \001(\t\022:\n\010metadata\030" + "\002 \001(\0132(.flyteidl.core.StructuredDatasetM" + "etadata\"\233\003\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030." + "flyteidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132" + "\023.flyteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025" + ".flyteidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132" + "\025.flyteidl.core.SchemaH\000\022(\n\tnone_type\030\005 " + "\001(\0132\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(" + "\0132\024.flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001" + "(\0132\027.google.protobuf.StructH\000\022>\n\022structu" + "red_dataset\030\010 \001(\0132 .flyteidl.core.Struct" + "uredDatasetH\000\022%\n\005union\030\t \001(\0132\024.flyteidl." + "core.UnionH\000B\007\n\005value\"\253\001\n\007Literal\022\'\n\006sca" + "lar\030\001 \001(\0132\025.flyteidl.core.ScalarH\000\0226\n\nco" + "llection\030\002 \001(\0132 .flyteidl.core.LiteralCo" + "llectionH\000\022(\n\003map\030\003 \001(\0132\031.flyteidl.core." + "LiteralMapH\000\022\014\n\004hash\030\004 \001(\tB\007\n\005value\"=\n\021L" + "iteralCollection\022(\n\010literals\030\001 \003(\0132\026.fly" + "teidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lit" + "erals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.L" + "iteralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001" + "(\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Litera" + "l:\0028\001\"E\n\025BindingDataCollection\022,\n\010bindin" + "gs\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n" + "\016BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyt" + "eidl.core.BindingDataMap.BindingsEntry\032K" + "\n\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 " + "\001(\0132\032.flyteidl.core.BindingData:\0028\001\";\n\tU" + "nionInfo\022.\n\ntargetType\030\001 \001(\0132\032.flyteidl." + "core.LiteralType\"\205\002\n\013BindingData\022\'\n\006scal" + "ar\030\001 \001(\0132\025.flyteidl.core.ScalarH\000\022:\n\ncol" + "lection\030\002 \001(\0132$.flyteidl.core.BindingDat" + "aCollectionH\000\0221\n\007promise\030\003 \001(\0132\036.flyteid" + "l.core.OutputReferenceH\000\022,\n\003map\030\004 \001(\0132\035." + "flyteidl.core.BindingDataMapH\000\022\'\n\005union\030" + "\005 \001(\0132\030.flyteidl.core.UnionInfoB\007\n\005value" + "\"C\n\007Binding\022\013\n\003var\030\001 \001(\t\022+\n\007binding\030\002 \001(" + "\0132\032.flyteidl.core.BindingData\"*\n\014KeyValu" + "ePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\" \n\rRet" + "ryStrategy\022\017\n\007retries\030\005 \001(\rB6Z4github.co" + "m/flyteorg/flyteidl/gen/pb-go/flyteidl/c" + "oreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fliterals_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fliterals_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fliterals_2eproto, + "flyteidl/core/literals.proto", &assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto, 2451, +}; + +void AddDescriptors_flyteidl_2fcore_2fliterals_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[4] = + { + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fliterals_2eproto, deps, 4); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fliterals_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fliterals_2eproto(); return true; }(); +namespace flyteidl { +namespace core { + +// =================================================================== + +void Primitive::InitAsDefaultInstance() { + ::flyteidl::core::_Primitive_default_instance_.integer_ = PROTOBUF_LONGLONG(0); + ::flyteidl::core::_Primitive_default_instance_.float_value_ = 0; + ::flyteidl::core::_Primitive_default_instance_.string_value_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::core::_Primitive_default_instance_.boolean_ = false; + ::flyteidl::core::_Primitive_default_instance_.datetime_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::core::_Primitive_default_instance_.duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +class Primitive::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& datetime(const Primitive* msg); + static const ::google::protobuf::Duration& duration(const Primitive* msg); +}; + +const ::google::protobuf::Timestamp& +Primitive::HasBitSetters::datetime(const Primitive* msg) { + return *msg->value_.datetime_; +} +const ::google::protobuf::Duration& +Primitive::HasBitSetters::duration(const Primitive* msg) { + return *msg->value_.duration_; +} +void Primitive::set_allocated_datetime(::google::protobuf::Timestamp* datetime) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (datetime) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(datetime)->GetArena(); + if (message_arena != submessage_arena) { + datetime = ::google::protobuf::internal::GetOwnedMessage( + message_arena, datetime, submessage_arena); + } + set_has_datetime(); + value_.datetime_ = datetime; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.datetime) +} +void Primitive::clear_datetime() { + if (has_datetime()) { + delete value_.datetime_; + clear_has_value(); + } +} +void Primitive::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + set_has_duration(); + value_.duration_ = duration; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.duration) +} +void Primitive::clear_duration() { + if (has_duration()) { + delete value_.duration_; + clear_has_value(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Primitive::kIntegerFieldNumber; +const int Primitive::kFloatValueFieldNumber; +const int Primitive::kStringValueFieldNumber; +const int Primitive::kBooleanFieldNumber; +const int Primitive::kDatetimeFieldNumber; +const int Primitive::kDurationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Primitive::Primitive() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Primitive) +} +Primitive::Primitive(const Primitive& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kInteger: { + set_integer(from.integer()); + break; + } + case kFloatValue: { + set_float_value(from.float_value()); + break; + } + case kStringValue: { + set_string_value(from.string_value()); + break; + } + case kBoolean: { + set_boolean(from.boolean()); + break; + } + case kDatetime: { + mutable_datetime()->::google::protobuf::Timestamp::MergeFrom(from.datetime()); + break; + } + case kDuration: { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Primitive) +} + +void Primitive::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base); + clear_has_value(); +} + +Primitive::~Primitive() { + // @@protoc_insertion_point(destructor:flyteidl.core.Primitive) + SharedDtor(); +} + +void Primitive::SharedDtor() { + if (has_value()) { + clear_value(); + } +} + +void Primitive::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Primitive& Primitive::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Primitive::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Primitive) + switch (value_case()) { + case kInteger: { + // No need to clear + break; + } + case kFloatValue: { + // No need to clear + break; + } + case kStringValue: { + value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kBoolean: { + // No need to clear + break; + } + case kDatetime: { + delete value_.datetime_; + break; + } + case kDuration: { + delete value_.duration_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void Primitive::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Primitive) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Primitive::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 integer = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_integer(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // double float_value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; + msg->set_float_value(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // string string_value = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Primitive.string_value"); + object = msg->mutable_string_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bool boolean = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_boolean(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Timestamp datetime = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_datetime(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_duration(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Primitive::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Primitive) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 integer = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + clear_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &value_.integer_))); + set_has_integer(); + } else { + goto handle_unusual; + } + break; + } + + // double float_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { + clear_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &value_.float_value_))); + set_has_float_value(); + } else { + goto handle_unusual; + } + break; + } + + // string string_value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_string_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->string_value().data(), static_cast(this->string_value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Primitive.string_value")); + } else { + goto handle_unusual; + } + break; + } + + // bool boolean = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + clear_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &value_.boolean_))); + set_has_boolean(); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp datetime = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_datetime())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Primitive) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Primitive) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Primitive::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Primitive) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 integer = 1; + if (has_integer()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->integer(), output); + } + + // double float_value = 2; + if (has_float_value()) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->float_value(), output); + } + + // string string_value = 3; + if (has_string_value()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->string_value().data(), static_cast(this->string_value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Primitive.string_value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->string_value(), output); + } + + // bool boolean = 4; + if (has_boolean()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->boolean(), output); + } + + // .google.protobuf.Timestamp datetime = 5; + if (has_datetime()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::datetime(this), output); + } + + // .google.protobuf.Duration duration = 6; + if (has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::duration(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Primitive) +} + +::google::protobuf::uint8* Primitive::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Primitive) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 integer = 1; + if (has_integer()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->integer(), target); + } + + // double float_value = 2; + if (has_float_value()) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->float_value(), target); + } + + // string string_value = 3; + if (has_string_value()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->string_value().data(), static_cast(this->string_value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Primitive.string_value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->string_value(), target); + } + + // bool boolean = 4; + if (has_boolean()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->boolean(), target); + } + + // .google.protobuf.Timestamp datetime = 5; + if (has_datetime()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::datetime(this), target); + } + + // .google.protobuf.Duration duration = 6; + if (has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::duration(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Primitive) + return target; +} + +size_t Primitive::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Primitive) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (value_case()) { + // int64 integer = 1; + case kInteger: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->integer()); + break; + } + // double float_value = 2; + case kFloatValue: { + total_size += 1 + 8; + break; + } + // string string_value = 3; + case kStringValue: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->string_value()); + break; + } + // bool boolean = 4; + case kBoolean: { + total_size += 1 + 1; + break; + } + // .google.protobuf.Timestamp datetime = 5; + case kDatetime: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.datetime_); + break; + } + // .google.protobuf.Duration duration = 6; + case kDuration: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.duration_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Primitive::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Primitive) + GOOGLE_DCHECK_NE(&from, this); + const Primitive* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Primitive) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Primitive) + MergeFrom(*source); + } +} + +void Primitive::MergeFrom(const Primitive& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Primitive) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kInteger: { + set_integer(from.integer()); + break; + } + case kFloatValue: { + set_float_value(from.float_value()); + break; + } + case kStringValue: { + set_string_value(from.string_value()); + break; + } + case kBoolean: { + set_boolean(from.boolean()); + break; + } + case kDatetime: { + mutable_datetime()->::google::protobuf::Timestamp::MergeFrom(from.datetime()); + break; + } + case kDuration: { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void Primitive::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Primitive) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Primitive::CopyFrom(const Primitive& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Primitive) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Primitive::IsInitialized() const { + return true; +} + +void Primitive::Swap(Primitive* other) { + if (other == this) return; + InternalSwap(other); +} +void Primitive::InternalSwap(Primitive* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Primitive::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Void::InitAsDefaultInstance() { +} +class Void::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Void::Void() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Void) +} +Void::Void(const Void& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Void) +} + +void Void::SharedCtor() { +} + +Void::~Void() { + // @@protoc_insertion_point(destructor:flyteidl.core.Void) + SharedDtor(); +} + +void Void::SharedDtor() { +} + +void Void::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Void& Void::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Void_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Void::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Void) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Void::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Void::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Void) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Void) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Void) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Void::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Void) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Void) +} + +::google::protobuf::uint8* Void::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Void) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Void) + return target; +} + +size_t Void::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Void) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Void::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Void) + GOOGLE_DCHECK_NE(&from, this); + const Void* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Void) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Void) + MergeFrom(*source); + } +} + +void Void::MergeFrom(const Void& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Void) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void Void::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Void) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Void::CopyFrom(const Void& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Void) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Void::IsInitialized() const { + return true; +} + +void Void::Swap(Void* other) { + if (other == this) return; + InternalSwap(other); +} +void Void::InternalSwap(Void* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Void::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Blob::InitAsDefaultInstance() { + ::flyteidl::core::_Blob_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::BlobMetadata*>( + ::flyteidl::core::BlobMetadata::internal_default_instance()); +} +class Blob::HasBitSetters { + public: + static const ::flyteidl::core::BlobMetadata& metadata(const Blob* msg); +}; + +const ::flyteidl::core::BlobMetadata& +Blob::HasBitSetters::metadata(const Blob* msg) { + return *msg->metadata_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Blob::kMetadataFieldNumber; +const int Blob::kUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Blob::Blob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Blob) +} +Blob::Blob(const Blob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uri().size() > 0) { + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::BlobMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Blob) +} + +void Blob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_ = nullptr; +} + +Blob::~Blob() { + // @@protoc_insertion_point(destructor:flyteidl.core.Blob) + SharedDtor(); +} + +void Blob::SharedDtor() { + uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete metadata_; +} + +void Blob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Blob& Blob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Blob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Blob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Blob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.BlobMetadata metadata = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BlobMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string uri = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Blob.uri"); + object = msg->mutable_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Blob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Blob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.BlobMetadata metadata = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // string uri = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Blob.uri")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Blob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Blob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Blob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Blob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobMetadata metadata = 1; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::metadata(this), output); + } + + // string uri = 3; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Blob.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->uri(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Blob) +} + +::google::protobuf::uint8* Blob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Blob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobMetadata metadata = 1; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::metadata(this), target); + } + + // string uri = 3; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Blob.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->uri(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Blob) + return target; +} + +size_t Blob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Blob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string uri = 3; + if (this->uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + } + + // .flyteidl.core.BlobMetadata metadata = 1; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Blob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Blob) + GOOGLE_DCHECK_NE(&from, this); + const Blob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Blob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Blob) + MergeFrom(*source); + } +} + +void Blob::MergeFrom(const Blob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Blob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.uri().size() > 0) { + + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::BlobMetadata::MergeFrom(from.metadata()); + } +} + +void Blob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Blob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Blob::CopyFrom(const Blob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Blob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Blob::IsInitialized() const { + return true; +} + +void Blob::Swap(Blob* other) { + if (other == this) return; + InternalSwap(other); +} +void Blob::InternalSwap(Blob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(metadata_, other->metadata_); +} + +::google::protobuf::Metadata Blob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void BlobMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_BlobMetadata_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::BlobType*>( + ::flyteidl::core::BlobType::internal_default_instance()); +} +class BlobMetadata::HasBitSetters { + public: + static const ::flyteidl::core::BlobType& type(const BlobMetadata* msg); +}; + +const ::flyteidl::core::BlobType& +BlobMetadata::HasBitSetters::type(const BlobMetadata* msg) { + return *msg->type_; +} +void BlobMetadata::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlobMetadata::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BlobMetadata::BlobMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BlobMetadata) +} +BlobMetadata::BlobMetadata(const BlobMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_type()) { + type_ = new ::flyteidl::core::BlobType(*from.type_); + } else { + type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BlobMetadata) +} + +void BlobMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base); + type_ = nullptr; +} + +BlobMetadata::~BlobMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.BlobMetadata) + SharedDtor(); +} + +void BlobMetadata::SharedDtor() { + if (this != internal_default_instance()) delete type_; +} + +void BlobMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BlobMetadata& BlobMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void BlobMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BlobMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BlobMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.BlobType type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BlobType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BlobMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BlobMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.BlobType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.BlobMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BlobMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BlobMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BlobMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobType type = 1; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::type(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BlobMetadata) +} + +::google::protobuf::uint8* BlobMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BlobMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobType type = 1; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::type(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BlobMetadata) + return target; +} + +size_t BlobMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BlobMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.BlobType type = 1; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BlobMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BlobMetadata) + GOOGLE_DCHECK_NE(&from, this); + const BlobMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BlobMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BlobMetadata) + MergeFrom(*source); + } +} + +void BlobMetadata::MergeFrom(const BlobMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BlobMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_type()) { + mutable_type()->::flyteidl::core::BlobType::MergeFrom(from.type()); + } +} + +void BlobMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BlobMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BlobMetadata::CopyFrom(const BlobMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BlobMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlobMetadata::IsInitialized() const { + return true; +} + +void BlobMetadata::Swap(BlobMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void BlobMetadata::InternalSwap(BlobMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(type_, other->type_); +} + +::google::protobuf::Metadata BlobMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Binary::InitAsDefaultInstance() { +} +class Binary::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Binary::kValueFieldNumber; +const int Binary::kTagFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Binary::Binary() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Binary) +} +Binary::Binary(const Binary& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag().size() > 0) { + tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Binary) +} + +void Binary::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Binary::~Binary() { + // @@protoc_insertion_point(destructor:flyteidl.core.Binary) + SharedDtor(); +} + +void Binary::SharedDtor() { + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Binary::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Binary& Binary::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Binary::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Binary) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Binary::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // bytes value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string tag = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Binary.tag"); + object = msg->mutable_tag(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Binary::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Binary) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bytes value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + // string tag = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Binary.tag")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Binary) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Binary) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Binary::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Binary) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes value = 1; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->value(), output); + } + + // string tag = 2; + if (this->tag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binary.tag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->tag(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Binary) +} + +::google::protobuf::uint8* Binary::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Binary) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes value = 1; + if (this->value().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->value(), target); + } + + // string tag = 2; + if (this->tag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binary.tag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->tag(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Binary) + return target; +} + +size_t Binary::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Binary) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bytes value = 1; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // string tag = 2; + if (this->tag().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Binary::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Binary) + GOOGLE_DCHECK_NE(&from, this); + const Binary* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Binary) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Binary) + MergeFrom(*source); + } +} + +void Binary::MergeFrom(const Binary& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Binary) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (from.tag().size() > 0) { + + tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); + } +} + +void Binary::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Binary) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Binary::CopyFrom(const Binary& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Binary) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Binary::IsInitialized() const { + return true; +} + +void Binary::Swap(Binary* other) { + if (other == this) return; + InternalSwap(other); +} +void Binary::InternalSwap(Binary* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + tag_.Swap(&other->tag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Binary::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Schema::InitAsDefaultInstance() { + ::flyteidl::core::_Schema_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::SchemaType*>( + ::flyteidl::core::SchemaType::internal_default_instance()); +} +class Schema::HasBitSetters { + public: + static const ::flyteidl::core::SchemaType& type(const Schema* msg); +}; + +const ::flyteidl::core::SchemaType& +Schema::HasBitSetters::type(const Schema* msg) { + return *msg->type_; +} +void Schema::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Schema::kUriFieldNumber; +const int Schema::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Schema::Schema() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Schema) +} +Schema::Schema(const Schema& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uri().size() > 0) { + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_type()) { + type_ = new ::flyteidl::core::SchemaType(*from.type_); + } else { + type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Schema) +} + +void Schema::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = nullptr; +} + +Schema::~Schema() { + // @@protoc_insertion_point(destructor:flyteidl.core.Schema) + SharedDtor(); +} + +void Schema::SharedDtor() { + uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete type_; +} + +void Schema::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Schema& Schema::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Schema::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Schema) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Schema::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string uri = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Schema.uri"); + object = msg->mutable_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.SchemaType type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SchemaType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Schema::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Schema) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string uri = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Schema.uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SchemaType type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Schema) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Schema) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Schema::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Schema) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Schema.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->uri(), output); + } + + // .flyteidl.core.SchemaType type = 3; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::type(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Schema) +} + +::google::protobuf::uint8* Schema::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Schema) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Schema.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->uri(), target); + } + + // .flyteidl.core.SchemaType type = 3; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::type(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Schema) + return target; +} + +size_t Schema::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Schema) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + } + + // .flyteidl.core.SchemaType type = 3; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Schema::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Schema) + GOOGLE_DCHECK_NE(&from, this); + const Schema* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Schema) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Schema) + MergeFrom(*source); + } +} + +void Schema::MergeFrom(const Schema& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Schema) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.uri().size() > 0) { + + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::SchemaType::MergeFrom(from.type()); + } +} + +void Schema::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Schema) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Schema::CopyFrom(const Schema& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Schema) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Schema::IsInitialized() const { + return true; +} + +void Schema::Swap(Schema* other) { + if (other == this) return; + InternalSwap(other); +} +void Schema::InternalSwap(Schema* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::google::protobuf::Metadata Schema::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Union::InitAsDefaultInstance() { + ::flyteidl::core::_Union_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); + ::flyteidl::core::_Union_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); +} +class Union::HasBitSetters { + public: + static const ::flyteidl::core::Literal& value(const Union* msg); + static const ::flyteidl::core::LiteralType& type(const Union* msg); +}; + +const ::flyteidl::core::Literal& +Union::HasBitSetters::value(const Union* msg) { + return *msg->value_; +} +const ::flyteidl::core::LiteralType& +Union::HasBitSetters::type(const Union* msg) { + return *msg->type_; +} +void Union::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Union::kValueFieldNumber; +const int Union::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Union::Union() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Union) +} +Union::Union(const Union& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_value()) { + value_ = new ::flyteidl::core::Literal(*from.value_); + } else { + value_ = nullptr; + } + if (from.has_type()) { + type_ = new ::flyteidl::core::LiteralType(*from.type_); + } else { + type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Union) +} + +void Union::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + ::memset(&value_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&value_)) + sizeof(type_)); +} + +Union::~Union() { + // @@protoc_insertion_point(destructor:flyteidl.core.Union) + SharedDtor(); +} + +void Union::SharedDtor() { + if (this != internal_default_instance()) delete value_; + if (this != internal_default_instance()) delete type_; +} + +void Union::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Union& Union::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Union::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Union) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Union::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Literal value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_value(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Union::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Union) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Literal value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Union) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Union) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Union::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Union) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Literal value = 1; + if (this->has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::value(this), output); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::type(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Union) +} + +::google::protobuf::uint8* Union::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Union) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Literal value = 1; + if (this->has_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::value(this), target); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::type(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Union) + return target; +} + +size_t Union::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Union) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Literal value = 1; + if (this->has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Union::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Union) + GOOGLE_DCHECK_NE(&from, this); + const Union* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Union) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Union) + MergeFrom(*source); + } +} + +void Union::MergeFrom(const Union& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Union) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_value()) { + mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + } +} + +void Union::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Union) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Union::CopyFrom(const Union& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Union) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Union::IsInitialized() const { + return true; +} + +void Union::Swap(Union* other) { + if (other == this) return; + InternalSwap(other); +} +void Union::InternalSwap(Union* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(value_, other->value_); + swap(type_, other->type_); +} + +::google::protobuf::Metadata Union::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void StructuredDatasetMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_StructuredDatasetMetadata_default_instance_._instance.get_mutable()->structured_dataset_type_ = const_cast< ::flyteidl::core::StructuredDatasetType*>( + ::flyteidl::core::StructuredDatasetType::internal_default_instance()); +} +class StructuredDatasetMetadata::HasBitSetters { + public: + static const ::flyteidl::core::StructuredDatasetType& structured_dataset_type(const StructuredDatasetMetadata* msg); +}; + +const ::flyteidl::core::StructuredDatasetType& +StructuredDatasetMetadata::HasBitSetters::structured_dataset_type(const StructuredDatasetMetadata* msg) { + return *msg->structured_dataset_type_; +} +void StructuredDatasetMetadata::clear_structured_dataset_type() { + if (GetArenaNoVirtual() == nullptr && structured_dataset_type_ != nullptr) { + delete structured_dataset_type_; + } + structured_dataset_type_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StructuredDatasetMetadata::kStructuredDatasetTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StructuredDatasetMetadata::StructuredDatasetMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDatasetMetadata) +} +StructuredDatasetMetadata::StructuredDatasetMetadata(const StructuredDatasetMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_structured_dataset_type()) { + structured_dataset_type_ = new ::flyteidl::core::StructuredDatasetType(*from.structured_dataset_type_); + } else { + structured_dataset_type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDatasetMetadata) +} + +void StructuredDatasetMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base); + structured_dataset_type_ = nullptr; +} + +StructuredDatasetMetadata::~StructuredDatasetMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDatasetMetadata) + SharedDtor(); +} + +void StructuredDatasetMetadata::SharedDtor() { + if (this != internal_default_instance()) delete structured_dataset_type_; +} + +void StructuredDatasetMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StructuredDatasetMetadata& StructuredDatasetMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void StructuredDatasetMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDatasetMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && structured_dataset_type_ != nullptr) { + delete structured_dataset_type_; + } + structured_dataset_type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StructuredDatasetMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::StructuredDatasetType::_InternalParse; + object = msg->mutable_structured_dataset_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StructuredDatasetMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.StructuredDatasetMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_structured_dataset_type())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.StructuredDatasetMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDatasetMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StructuredDatasetMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDatasetMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + if (this->has_structured_dataset_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::structured_dataset_type(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDatasetMetadata) +} + +::google::protobuf::uint8* StructuredDatasetMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDatasetMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + if (this->has_structured_dataset_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::structured_dataset_type(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.StructuredDatasetMetadata) + return target; +} + +size_t StructuredDatasetMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDatasetMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + if (this->has_structured_dataset_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *structured_dataset_type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StructuredDatasetMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDatasetMetadata) + GOOGLE_DCHECK_NE(&from, this); + const StructuredDatasetMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDatasetMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDatasetMetadata) + MergeFrom(*source); + } +} + +void StructuredDatasetMetadata::MergeFrom(const StructuredDatasetMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDatasetMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_structured_dataset_type()) { + mutable_structured_dataset_type()->::flyteidl::core::StructuredDatasetType::MergeFrom(from.structured_dataset_type()); + } +} + +void StructuredDatasetMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDatasetMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StructuredDatasetMetadata::CopyFrom(const StructuredDatasetMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDatasetMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StructuredDatasetMetadata::IsInitialized() const { + return true; +} + +void StructuredDatasetMetadata::Swap(StructuredDatasetMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void StructuredDatasetMetadata::InternalSwap(StructuredDatasetMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(structured_dataset_type_, other->structured_dataset_type_); +} + +::google::protobuf::Metadata StructuredDatasetMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void StructuredDataset::InitAsDefaultInstance() { + ::flyteidl::core::_StructuredDataset_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::StructuredDatasetMetadata*>( + ::flyteidl::core::StructuredDatasetMetadata::internal_default_instance()); +} +class StructuredDataset::HasBitSetters { + public: + static const ::flyteidl::core::StructuredDatasetMetadata& metadata(const StructuredDataset* msg); +}; + +const ::flyteidl::core::StructuredDatasetMetadata& +StructuredDataset::HasBitSetters::metadata(const StructuredDataset* msg) { + return *msg->metadata_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StructuredDataset::kUriFieldNumber; +const int StructuredDataset::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StructuredDataset::StructuredDataset() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDataset) +} +StructuredDataset::StructuredDataset(const StructuredDataset& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uri().size() > 0) { + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::StructuredDatasetMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDataset) +} + +void StructuredDataset::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_ = nullptr; +} + +StructuredDataset::~StructuredDataset() { + // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDataset) + SharedDtor(); +} + +void StructuredDataset::SharedDtor() { + uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete metadata_; +} + +void StructuredDataset::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StructuredDataset& StructuredDataset::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void StructuredDataset::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDataset) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StructuredDataset::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string uri = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDataset.uri"); + object = msg->mutable_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.StructuredDatasetMetadata metadata = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::StructuredDatasetMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StructuredDataset::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.StructuredDataset) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string uri = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.StructuredDataset.uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.StructuredDatasetMetadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.StructuredDataset) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDataset) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StructuredDataset::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDataset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDataset.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->uri(), output); + } + + // .flyteidl.core.StructuredDatasetMetadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDataset) +} + +::google::protobuf::uint8* StructuredDataset::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDataset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDataset.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->uri(), target); + } + + // .flyteidl.core.StructuredDatasetMetadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.StructuredDataset) + return target; +} + +size_t StructuredDataset::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDataset) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + } + + // .flyteidl.core.StructuredDatasetMetadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StructuredDataset::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDataset) + GOOGLE_DCHECK_NE(&from, this); + const StructuredDataset* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDataset) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDataset) + MergeFrom(*source); + } +} + +void StructuredDataset::MergeFrom(const StructuredDataset& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDataset) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.uri().size() > 0) { + + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::StructuredDatasetMetadata::MergeFrom(from.metadata()); + } +} + +void StructuredDataset::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDataset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StructuredDataset::CopyFrom(const StructuredDataset& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDataset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StructuredDataset::IsInitialized() const { + return true; +} + +void StructuredDataset::Swap(StructuredDataset* other) { + if (other == this) return; + InternalSwap(other); +} +void StructuredDataset::InternalSwap(StructuredDataset* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(metadata_, other->metadata_); +} + +::google::protobuf::Metadata StructuredDataset::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Scalar::InitAsDefaultInstance() { + ::flyteidl::core::_Scalar_default_instance_.primitive_ = const_cast< ::flyteidl::core::Primitive*>( + ::flyteidl::core::Primitive::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.blob_ = const_cast< ::flyteidl::core::Blob*>( + ::flyteidl::core::Blob::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.binary_ = const_cast< ::flyteidl::core::Binary*>( + ::flyteidl::core::Binary::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.schema_ = const_cast< ::flyteidl::core::Schema*>( + ::flyteidl::core::Schema::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.none_type_ = const_cast< ::flyteidl::core::Void*>( + ::flyteidl::core::Void::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.error_ = const_cast< ::flyteidl::core::Error*>( + ::flyteidl::core::Error::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.generic_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.structured_dataset_ = const_cast< ::flyteidl::core::StructuredDataset*>( + ::flyteidl::core::StructuredDataset::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.union__ = const_cast< ::flyteidl::core::Union*>( + ::flyteidl::core::Union::internal_default_instance()); +} +class Scalar::HasBitSetters { + public: + static const ::flyteidl::core::Primitive& primitive(const Scalar* msg); + static const ::flyteidl::core::Blob& blob(const Scalar* msg); + static const ::flyteidl::core::Binary& binary(const Scalar* msg); + static const ::flyteidl::core::Schema& schema(const Scalar* msg); + static const ::flyteidl::core::Void& none_type(const Scalar* msg); + static const ::flyteidl::core::Error& error(const Scalar* msg); + static const ::google::protobuf::Struct& generic(const Scalar* msg); + static const ::flyteidl::core::StructuredDataset& structured_dataset(const Scalar* msg); + static const ::flyteidl::core::Union& union_(const Scalar* msg); +}; + +const ::flyteidl::core::Primitive& +Scalar::HasBitSetters::primitive(const Scalar* msg) { + return *msg->value_.primitive_; +} +const ::flyteidl::core::Blob& +Scalar::HasBitSetters::blob(const Scalar* msg) { + return *msg->value_.blob_; +} +const ::flyteidl::core::Binary& +Scalar::HasBitSetters::binary(const Scalar* msg) { + return *msg->value_.binary_; +} +const ::flyteidl::core::Schema& +Scalar::HasBitSetters::schema(const Scalar* msg) { + return *msg->value_.schema_; +} +const ::flyteidl::core::Void& +Scalar::HasBitSetters::none_type(const Scalar* msg) { + return *msg->value_.none_type_; +} +const ::flyteidl::core::Error& +Scalar::HasBitSetters::error(const Scalar* msg) { + return *msg->value_.error_; +} +const ::google::protobuf::Struct& +Scalar::HasBitSetters::generic(const Scalar* msg) { + return *msg->value_.generic_; +} +const ::flyteidl::core::StructuredDataset& +Scalar::HasBitSetters::structured_dataset(const Scalar* msg) { + return *msg->value_.structured_dataset_; +} +const ::flyteidl::core::Union& +Scalar::HasBitSetters::union_(const Scalar* msg) { + return *msg->value_.union__; +} +void Scalar::set_allocated_primitive(::flyteidl::core::Primitive* primitive) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (primitive) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + primitive = ::google::protobuf::internal::GetOwnedMessage( + message_arena, primitive, submessage_arena); + } + set_has_primitive(); + value_.primitive_ = primitive; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.primitive) +} +void Scalar::set_allocated_blob(::flyteidl::core::Blob* blob) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (blob) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + blob = ::google::protobuf::internal::GetOwnedMessage( + message_arena, blob, submessage_arena); + } + set_has_blob(); + value_.blob_ = blob; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.blob) +} +void Scalar::set_allocated_binary(::flyteidl::core::Binary* binary) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (binary) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + binary = ::google::protobuf::internal::GetOwnedMessage( + message_arena, binary, submessage_arena); + } + set_has_binary(); + value_.binary_ = binary; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.binary) +} +void Scalar::set_allocated_schema(::flyteidl::core::Schema* schema) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (schema) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + schema = ::google::protobuf::internal::GetOwnedMessage( + message_arena, schema, submessage_arena); + } + set_has_schema(); + value_.schema_ = schema; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.schema) +} +void Scalar::set_allocated_none_type(::flyteidl::core::Void* none_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (none_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + none_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, none_type, submessage_arena); + } + set_has_none_type(); + value_.none_type_ = none_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.none_type) +} +void Scalar::set_allocated_error(::flyteidl::core::Error* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + value_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.error) +} +void Scalar::clear_error() { + if (has_error()) { + delete value_.error_; + clear_has_value(); + } +} +void Scalar::set_allocated_generic(::google::protobuf::Struct* generic) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (generic) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(generic)->GetArena(); + if (message_arena != submessage_arena) { + generic = ::google::protobuf::internal::GetOwnedMessage( + message_arena, generic, submessage_arena); + } + set_has_generic(); + value_.generic_ = generic; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.generic) +} +void Scalar::clear_generic() { + if (has_generic()) { + delete value_.generic_; + clear_has_value(); + } +} +void Scalar::set_allocated_structured_dataset(::flyteidl::core::StructuredDataset* structured_dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (structured_dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + structured_dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, structured_dataset, submessage_arena); + } + set_has_structured_dataset(); + value_.structured_dataset_ = structured_dataset; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.structured_dataset) +} +void Scalar::set_allocated_union_(::flyteidl::core::Union* union_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (union_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + union_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, union_, submessage_arena); + } + set_has_union_(); + value_.union__ = union_; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.union) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Scalar::kPrimitiveFieldNumber; +const int Scalar::kBlobFieldNumber; +const int Scalar::kBinaryFieldNumber; +const int Scalar::kSchemaFieldNumber; +const int Scalar::kNoneTypeFieldNumber; +const int Scalar::kErrorFieldNumber; +const int Scalar::kGenericFieldNumber; +const int Scalar::kStructuredDatasetFieldNumber; +const int Scalar::kUnionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Scalar::Scalar() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Scalar) +} +Scalar::Scalar(const Scalar& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::Blob::MergeFrom(from.blob()); + break; + } + case kBinary: { + mutable_binary()->::flyteidl::core::Binary::MergeFrom(from.binary()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::Schema::MergeFrom(from.schema()); + break; + } + case kNoneType: { + mutable_none_type()->::flyteidl::core::Void::MergeFrom(from.none_type()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case kGeneric: { + mutable_generic()->::google::protobuf::Struct::MergeFrom(from.generic()); + break; + } + case kStructuredDataset: { + mutable_structured_dataset()->::flyteidl::core::StructuredDataset::MergeFrom(from.structured_dataset()); + break; + } + case kUnion: { + mutable_union_()->::flyteidl::core::Union::MergeFrom(from.union_()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Scalar) +} + +void Scalar::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + clear_has_value(); +} + +Scalar::~Scalar() { + // @@protoc_insertion_point(destructor:flyteidl.core.Scalar) + SharedDtor(); +} + +void Scalar::SharedDtor() { + if (has_value()) { + clear_value(); + } +} + +void Scalar::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Scalar& Scalar::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Scalar::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Scalar) + switch (value_case()) { + case kPrimitive: { + delete value_.primitive_; + break; + } + case kBlob: { + delete value_.blob_; + break; + } + case kBinary: { + delete value_.binary_; + break; + } + case kSchema: { + delete value_.schema_; + break; + } + case kNoneType: { + delete value_.none_type_; + break; + } + case kError: { + delete value_.error_; + break; + } + case kGeneric: { + delete value_.generic_; + break; + } + case kStructuredDataset: { + delete value_.structured_dataset_; + break; + } + case kUnion: { + delete value_.union__; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void Scalar::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Scalar) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Scalar::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Primitive primitive = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Primitive::_InternalParse; + object = msg->mutable_primitive(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Blob blob = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Blob::_InternalParse; + object = msg->mutable_blob(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Binary binary = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Binary::_InternalParse; + object = msg->mutable_binary(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Schema schema = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Schema::_InternalParse; + object = msg->mutable_schema(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Void none_type = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Void::_InternalParse; + object = msg->mutable_none_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Error error = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Error::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Struct generic = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_generic(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.StructuredDataset structured_dataset = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::StructuredDataset::_InternalParse; + object = msg->mutable_structured_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Union union = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Union::_InternalParse; + object = msg->mutable_union_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Scalar::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Scalar) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Primitive primitive = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_primitive())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Blob blob = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_blob())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Binary binary = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_binary())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Schema schema = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_schema())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Void none_type = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_none_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Error error = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct generic = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_generic())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.StructuredDataset structured_dataset = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_structured_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Union union = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_union_())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Scalar) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Scalar) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Scalar::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Scalar) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1; + if (has_primitive()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::primitive(this), output); + } + + // .flyteidl.core.Blob blob = 2; + if (has_blob()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::blob(this), output); + } + + // .flyteidl.core.Binary binary = 3; + if (has_binary()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::binary(this), output); + } + + // .flyteidl.core.Schema schema = 4; + if (has_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::schema(this), output); + } + + // .flyteidl.core.Void none_type = 5; + if (has_none_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::none_type(this), output); + } + + // .flyteidl.core.Error error = 6; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::error(this), output); + } + + // .google.protobuf.Struct generic = 7; + if (has_generic()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::generic(this), output); + } + + // .flyteidl.core.StructuredDataset structured_dataset = 8; + if (has_structured_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::structured_dataset(this), output); + } + + // .flyteidl.core.Union union = 9; + if (has_union_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::union_(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Scalar) +} + +::google::protobuf::uint8* Scalar::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Scalar) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1; + if (has_primitive()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::primitive(this), target); + } + + // .flyteidl.core.Blob blob = 2; + if (has_blob()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::blob(this), target); + } + + // .flyteidl.core.Binary binary = 3; + if (has_binary()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::binary(this), target); + } + + // .flyteidl.core.Schema schema = 4; + if (has_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::schema(this), target); + } + + // .flyteidl.core.Void none_type = 5; + if (has_none_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::none_type(this), target); + } + + // .flyteidl.core.Error error = 6; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::error(this), target); + } + + // .google.protobuf.Struct generic = 7; + if (has_generic()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::generic(this), target); + } + + // .flyteidl.core.StructuredDataset structured_dataset = 8; + if (has_structured_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::structured_dataset(this), target); + } + + // .flyteidl.core.Union union = 9; + if (has_union_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::union_(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Scalar) + return target; +} + +size_t Scalar::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Scalar) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (value_case()) { + // .flyteidl.core.Primitive primitive = 1; + case kPrimitive: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.primitive_); + break; + } + // .flyteidl.core.Blob blob = 2; + case kBlob: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.blob_); + break; + } + // .flyteidl.core.Binary binary = 3; + case kBinary: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.binary_); + break; + } + // .flyteidl.core.Schema schema = 4; + case kSchema: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.schema_); + break; + } + // .flyteidl.core.Void none_type = 5; + case kNoneType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.none_type_); + break; + } + // .flyteidl.core.Error error = 6; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.error_); + break; + } + // .google.protobuf.Struct generic = 7; + case kGeneric: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.generic_); + break; + } + // .flyteidl.core.StructuredDataset structured_dataset = 8; + case kStructuredDataset: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.structured_dataset_); + break; + } + // .flyteidl.core.Union union = 9; + case kUnion: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.union__); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Scalar::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Scalar) + GOOGLE_DCHECK_NE(&from, this); + const Scalar* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Scalar) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Scalar) + MergeFrom(*source); + } +} + +void Scalar::MergeFrom(const Scalar& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Scalar) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::Blob::MergeFrom(from.blob()); + break; + } + case kBinary: { + mutable_binary()->::flyteidl::core::Binary::MergeFrom(from.binary()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::Schema::MergeFrom(from.schema()); + break; + } + case kNoneType: { + mutable_none_type()->::flyteidl::core::Void::MergeFrom(from.none_type()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case kGeneric: { + mutable_generic()->::google::protobuf::Struct::MergeFrom(from.generic()); + break; + } + case kStructuredDataset: { + mutable_structured_dataset()->::flyteidl::core::StructuredDataset::MergeFrom(from.structured_dataset()); + break; + } + case kUnion: { + mutable_union_()->::flyteidl::core::Union::MergeFrom(from.union_()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void Scalar::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Scalar) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Scalar::CopyFrom(const Scalar& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Scalar) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Scalar::IsInitialized() const { + return true; +} + +void Scalar::Swap(Scalar* other) { + if (other == this) return; + InternalSwap(other); +} +void Scalar::InternalSwap(Scalar* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Scalar::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Literal::InitAsDefaultInstance() { + ::flyteidl::core::_Literal_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( + ::flyteidl::core::Scalar::internal_default_instance()); + ::flyteidl::core::_Literal_default_instance_.collection_ = const_cast< ::flyteidl::core::LiteralCollection*>( + ::flyteidl::core::LiteralCollection::internal_default_instance()); + ::flyteidl::core::_Literal_default_instance_.map_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +class Literal::HasBitSetters { + public: + static const ::flyteidl::core::Scalar& scalar(const Literal* msg); + static const ::flyteidl::core::LiteralCollection& collection(const Literal* msg); + static const ::flyteidl::core::LiteralMap& map(const Literal* msg); +}; + +const ::flyteidl::core::Scalar& +Literal::HasBitSetters::scalar(const Literal* msg) { + return *msg->value_.scalar_; +} +const ::flyteidl::core::LiteralCollection& +Literal::HasBitSetters::collection(const Literal* msg) { + return *msg->value_.collection_; +} +const ::flyteidl::core::LiteralMap& +Literal::HasBitSetters::map(const Literal* msg) { + return *msg->value_.map_; +} +void Literal::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (scalar) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + scalar = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scalar, submessage_arena); + } + set_has_scalar(); + value_.scalar_ = scalar; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.scalar) +} +void Literal::set_allocated_collection(::flyteidl::core::LiteralCollection* collection) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (collection) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + collection = ::google::protobuf::internal::GetOwnedMessage( + message_arena, collection, submessage_arena); + } + set_has_collection(); + value_.collection_ = collection; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.collection) +} +void Literal::set_allocated_map(::flyteidl::core::LiteralMap* map) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (map) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + map = ::google::protobuf::internal::GetOwnedMessage( + message_arena, map, submessage_arena); + } + set_has_map(); + value_.map_ = map; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.map) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Literal::kScalarFieldNumber; +const int Literal::kCollectionFieldNumber; +const int Literal::kMapFieldNumber; +const int Literal::kHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Literal::Literal() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Literal) +} +Literal::Literal(const Literal& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.hash().size() > 0) { + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + clear_has_value(); + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::LiteralCollection::MergeFrom(from.collection()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::LiteralMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Literal) +} + +void Literal::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); +} + +Literal::~Literal() { + // @@protoc_insertion_point(destructor:flyteidl.core.Literal) + SharedDtor(); +} + +void Literal::SharedDtor() { + hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (has_value()) { + clear_value(); + } +} + +void Literal::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Literal& Literal::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Literal::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Literal) + switch (value_case()) { + case kScalar: { + delete value_.scalar_; + break; + } + case kCollection: { + delete value_.collection_; + break; + } + case kMap: { + delete value_.map_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void Literal::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Literal) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_value(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Literal::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Scalar scalar = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Scalar::_InternalParse; + object = msg->mutable_scalar(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralCollection collection = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralCollection::_InternalParse; + object = msg->mutable_collection(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap map = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_map(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string hash = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Literal.hash"); + object = msg->mutable_hash(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Literal::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Literal) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Scalar scalar = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scalar())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralCollection collection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_collection())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap map = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_map())); + } else { + goto handle_unusual; + } + break; + } + + // string hash = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_hash())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->hash().data(), static_cast(this->hash().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Literal.hash")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Literal) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Literal) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Literal::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Literal) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::scalar(this), output); + } + + // .flyteidl.core.LiteralCollection collection = 2; + if (has_collection()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::collection(this), output); + } + + // .flyteidl.core.LiteralMap map = 3; + if (has_map()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::map(this), output); + } + + // string hash = 4; + if (this->hash().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->hash().data(), static_cast(this->hash().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Literal.hash"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->hash(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Literal) +} + +::google::protobuf::uint8* Literal::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Literal) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::scalar(this), target); + } + + // .flyteidl.core.LiteralCollection collection = 2; + if (has_collection()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::collection(this), target); + } + + // .flyteidl.core.LiteralMap map = 3; + if (has_map()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::map(this), target); + } + + // string hash = 4; + if (this->hash().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->hash().data(), static_cast(this->hash().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Literal.hash"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->hash(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Literal) + return target; +} + +size_t Literal::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Literal) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string hash = 4; + if (this->hash().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->hash()); + } + + switch (value_case()) { + // .flyteidl.core.Scalar scalar = 1; + case kScalar: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.scalar_); + break; + } + // .flyteidl.core.LiteralCollection collection = 2; + case kCollection: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.collection_); + break; + } + // .flyteidl.core.LiteralMap map = 3; + case kMap: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.map_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Literal::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Literal) + GOOGLE_DCHECK_NE(&from, this); + const Literal* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Literal) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Literal) + MergeFrom(*source); + } +} + +void Literal::MergeFrom(const Literal& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Literal) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.hash().size() > 0) { + + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); + } + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::LiteralCollection::MergeFrom(from.collection()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::LiteralMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void Literal::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Literal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Literal::CopyFrom(const Literal& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Literal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Literal::IsInitialized() const { + return true; +} + +void Literal::Swap(Literal* other) { + if (other == this) return; + InternalSwap(other); +} +void Literal::InternalSwap(Literal* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + hash_.Swap(&other->hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Literal::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiteralCollection::InitAsDefaultInstance() { +} +class LiteralCollection::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralCollection::kLiteralsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralCollection::LiteralCollection() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.LiteralCollection) +} +LiteralCollection::LiteralCollection(const LiteralCollection& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + literals_(from.literals_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralCollection) +} + +void LiteralCollection::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); +} + +LiteralCollection::~LiteralCollection() { + // @@protoc_insertion_point(destructor:flyteidl.core.LiteralCollection) + SharedDtor(); +} + +void LiteralCollection::SharedDtor() { +} + +void LiteralCollection::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LiteralCollection& LiteralCollection::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void LiteralCollection::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + literals_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LiteralCollection::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.Literal literals = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->add_literals(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LiteralCollection::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.LiteralCollection) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.Literal literals = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_literals())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.LiteralCollection) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralCollection) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LiteralCollection::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Literal literals = 1; + for (unsigned int i = 0, + n = static_cast(this->literals_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->literals(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralCollection) +} + +::google::protobuf::uint8* LiteralCollection::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Literal literals = 1; + for (unsigned int i = 0, + n = static_cast(this->literals_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->literals(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.LiteralCollection) + return target; +} + +size_t LiteralCollection::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralCollection) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.Literal literals = 1; + { + unsigned int count = static_cast(this->literals_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->literals(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiteralCollection::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralCollection) + GOOGLE_DCHECK_NE(&from, this); + const LiteralCollection* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralCollection) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralCollection) + MergeFrom(*source); + } +} + +void LiteralCollection::MergeFrom(const LiteralCollection& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralCollection) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + literals_.MergeFrom(from.literals_); +} + +void LiteralCollection::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralCollection::CopyFrom(const LiteralCollection& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralCollection::IsInitialized() const { + return true; +} + +void LiteralCollection::Swap(LiteralCollection* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralCollection::InternalSwap(LiteralCollection* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&literals_)->InternalSwap(CastToBase(&other->literals_)); +} + +::google::protobuf::Metadata LiteralCollection::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +LiteralMap_LiteralsEntry_DoNotUse::LiteralMap_LiteralsEntry_DoNotUse() {} +LiteralMap_LiteralsEntry_DoNotUse::LiteralMap_LiteralsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void LiteralMap_LiteralsEntry_DoNotUse::MergeFrom(const LiteralMap_LiteralsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata LiteralMap_LiteralsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[12]; +} +void LiteralMap_LiteralsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LiteralMap_LiteralsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + LiteralMap_LiteralsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.LiteralMap.LiteralsEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void LiteralMap::InitAsDefaultInstance() { +} +class LiteralMap::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralMap::kLiteralsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralMap::LiteralMap() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.LiteralMap) +} +LiteralMap::LiteralMap(const LiteralMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + literals_.MergeFrom(from.literals_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralMap) +} + +void LiteralMap::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); +} + +LiteralMap::~LiteralMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.LiteralMap) + SharedDtor(); +} + +void LiteralMap::SharedDtor() { +} + +void LiteralMap::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LiteralMap& LiteralMap::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void LiteralMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + literals_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LiteralMap::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map literals = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->literals_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LiteralMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.LiteralMap) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map literals = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + LiteralMap_LiteralsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + LiteralMap_LiteralsEntry_DoNotUse, + ::std::string, ::flyteidl::core::Literal, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal > > parser(&literals_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.LiteralMap.LiteralsEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.LiteralMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralMap) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LiteralMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map literals = 1; + if (!this->literals().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.LiteralMap.LiteralsEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->literals().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->literals().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(literals_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it) { + entry.reset(literals_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralMap) +} + +::google::protobuf::uint8* LiteralMap::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map literals = 1; + if (!this->literals().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.LiteralMap.LiteralsEntry.key"); + } + }; + + if (false && + this->literals().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->literals().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(literals_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it) { + entry.reset(literals_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.LiteralMap) + return target; +} + +size_t LiteralMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralMap) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map literals = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->literals_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it) { + entry.reset(literals_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiteralMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralMap) + GOOGLE_DCHECK_NE(&from, this); + const LiteralMap* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralMap) + MergeFrom(*source); + } +} + +void LiteralMap::MergeFrom(const LiteralMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + literals_.MergeFrom(from.literals_); +} + +void LiteralMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralMap::CopyFrom(const LiteralMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralMap::IsInitialized() const { + return true; +} + +void LiteralMap::Swap(LiteralMap* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralMap::InternalSwap(LiteralMap* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + literals_.Swap(&other->literals_); +} + +::google::protobuf::Metadata LiteralMap::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void BindingDataCollection::InitAsDefaultInstance() { +} +class BindingDataCollection::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingDataCollection::kBindingsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingDataCollection::BindingDataCollection() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BindingDataCollection) +} +BindingDataCollection::BindingDataCollection(const BindingDataCollection& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + bindings_(from.bindings_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingDataCollection) +} + +void BindingDataCollection::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); +} + +BindingDataCollection::~BindingDataCollection() { + // @@protoc_insertion_point(destructor:flyteidl.core.BindingDataCollection) + SharedDtor(); +} + +void BindingDataCollection::SharedDtor() { +} + +void BindingDataCollection::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BindingDataCollection& BindingDataCollection::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void BindingDataCollection::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingDataCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bindings_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BindingDataCollection::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.BindingData bindings = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BindingData::_InternalParse; + object = msg->add_bindings(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BindingDataCollection::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BindingDataCollection) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.BindingData bindings = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_bindings())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.BindingDataCollection) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingDataCollection) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BindingDataCollection::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingDataCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.BindingData bindings = 1; + for (unsigned int i = 0, + n = static_cast(this->bindings_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->bindings(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingDataCollection) +} + +::google::protobuf::uint8* BindingDataCollection::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingDataCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.BindingData bindings = 1; + for (unsigned int i = 0, + n = static_cast(this->bindings_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->bindings(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BindingDataCollection) + return target; +} + +size_t BindingDataCollection::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingDataCollection) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.BindingData bindings = 1; + { + unsigned int count = static_cast(this->bindings_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->bindings(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BindingDataCollection::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingDataCollection) + GOOGLE_DCHECK_NE(&from, this); + const BindingDataCollection* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingDataCollection) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingDataCollection) + MergeFrom(*source); + } +} + +void BindingDataCollection::MergeFrom(const BindingDataCollection& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingDataCollection) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + bindings_.MergeFrom(from.bindings_); +} + +void BindingDataCollection::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingDataCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingDataCollection::CopyFrom(const BindingDataCollection& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingDataCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingDataCollection::IsInitialized() const { + return true; +} + +void BindingDataCollection::Swap(BindingDataCollection* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingDataCollection::InternalSwap(BindingDataCollection* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&bindings_)->InternalSwap(CastToBase(&other->bindings_)); +} + +::google::protobuf::Metadata BindingDataCollection::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +BindingDataMap_BindingsEntry_DoNotUse::BindingDataMap_BindingsEntry_DoNotUse() {} +BindingDataMap_BindingsEntry_DoNotUse::BindingDataMap_BindingsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void BindingDataMap_BindingsEntry_DoNotUse::MergeFrom(const BindingDataMap_BindingsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata BindingDataMap_BindingsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[15]; +} +void BindingDataMap_BindingsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BindingDataMap_BindingsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + BindingDataMap_BindingsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.BindingDataMap.BindingsEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void BindingDataMap::InitAsDefaultInstance() { +} +class BindingDataMap::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingDataMap::kBindingsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingDataMap::BindingDataMap() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BindingDataMap) +} +BindingDataMap::BindingDataMap(const BindingDataMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + bindings_.MergeFrom(from.bindings_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingDataMap) +} + +void BindingDataMap::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); +} + +BindingDataMap::~BindingDataMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.BindingDataMap) + SharedDtor(); +} + +void BindingDataMap::SharedDtor() { +} + +void BindingDataMap::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BindingDataMap& BindingDataMap::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void BindingDataMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingDataMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bindings_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BindingDataMap::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map bindings = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->bindings_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BindingDataMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BindingDataMap) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map bindings = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + BindingDataMap_BindingsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + BindingDataMap_BindingsEntry_DoNotUse, + ::std::string, ::flyteidl::core::BindingData, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData > > parser(&bindings_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.BindingDataMap.BindingsEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.BindingDataMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingDataMap) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BindingDataMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingDataMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map bindings = 1; + if (!this->bindings().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BindingDataMap.BindingsEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->bindings().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->bindings().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(bindings_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it) { + entry.reset(bindings_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingDataMap) +} + +::google::protobuf::uint8* BindingDataMap::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingDataMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map bindings = 1; + if (!this->bindings().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BindingDataMap.BindingsEntry.key"); + } + }; + + if (false && + this->bindings().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->bindings().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(bindings_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it) { + entry.reset(bindings_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BindingDataMap) + return target; +} + +size_t BindingDataMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingDataMap) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map bindings = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->bindings_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it) { + entry.reset(bindings_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BindingDataMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingDataMap) + GOOGLE_DCHECK_NE(&from, this); + const BindingDataMap* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingDataMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingDataMap) + MergeFrom(*source); + } +} + +void BindingDataMap::MergeFrom(const BindingDataMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingDataMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + bindings_.MergeFrom(from.bindings_); +} + +void BindingDataMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingDataMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingDataMap::CopyFrom(const BindingDataMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingDataMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingDataMap::IsInitialized() const { + return true; +} + +void BindingDataMap::Swap(BindingDataMap* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingDataMap::InternalSwap(BindingDataMap* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + bindings_.Swap(&other->bindings_); +} + +::google::protobuf::Metadata BindingDataMap::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void UnionInfo::InitAsDefaultInstance() { + ::flyteidl::core::_UnionInfo_default_instance_._instance.get_mutable()->targettype_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); +} +class UnionInfo::HasBitSetters { + public: + static const ::flyteidl::core::LiteralType& targettype(const UnionInfo* msg); +}; + +const ::flyteidl::core::LiteralType& +UnionInfo::HasBitSetters::targettype(const UnionInfo* msg) { + return *msg->targettype_; +} +void UnionInfo::clear_targettype() { + if (GetArenaNoVirtual() == nullptr && targettype_ != nullptr) { + delete targettype_; + } + targettype_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UnionInfo::kTargetTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UnionInfo::UnionInfo() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.UnionInfo) +} +UnionInfo::UnionInfo(const UnionInfo& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_targettype()) { + targettype_ = new ::flyteidl::core::LiteralType(*from.targettype_); + } else { + targettype_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.UnionInfo) +} + +void UnionInfo::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base); + targettype_ = nullptr; +} + +UnionInfo::~UnionInfo() { + // @@protoc_insertion_point(destructor:flyteidl.core.UnionInfo) + SharedDtor(); +} + +void UnionInfo::SharedDtor() { + if (this != internal_default_instance()) delete targettype_; +} + +void UnionInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UnionInfo& UnionInfo::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void UnionInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.UnionInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && targettype_ != nullptr) { + delete targettype_; + } + targettype_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UnionInfo::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.LiteralType targetType = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_targettype(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UnionInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.UnionInfo) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.LiteralType targetType = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_targettype())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.UnionInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.UnionInfo) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UnionInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.UnionInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralType targetType = 1; + if (this->has_targettype()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::targettype(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.UnionInfo) +} + +::google::protobuf::uint8* UnionInfo::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.UnionInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralType targetType = 1; + if (this->has_targettype()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::targettype(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.UnionInfo) + return target; +} + +size_t UnionInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.UnionInfo) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.LiteralType targetType = 1; + if (this->has_targettype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *targettype_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UnionInfo::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.UnionInfo) + GOOGLE_DCHECK_NE(&from, this); + const UnionInfo* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.UnionInfo) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.UnionInfo) + MergeFrom(*source); + } +} + +void UnionInfo::MergeFrom(const UnionInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.UnionInfo) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_targettype()) { + mutable_targettype()->::flyteidl::core::LiteralType::MergeFrom(from.targettype()); + } +} + +void UnionInfo::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.UnionInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UnionInfo::CopyFrom(const UnionInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.UnionInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnionInfo::IsInitialized() const { + return true; +} + +void UnionInfo::Swap(UnionInfo* other) { + if (other == this) return; + InternalSwap(other); +} +void UnionInfo::InternalSwap(UnionInfo* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(targettype_, other->targettype_); +} + +::google::protobuf::Metadata UnionInfo::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void BindingData::InitAsDefaultInstance() { + ::flyteidl::core::_BindingData_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( + ::flyteidl::core::Scalar::internal_default_instance()); + ::flyteidl::core::_BindingData_default_instance_.collection_ = const_cast< ::flyteidl::core::BindingDataCollection*>( + ::flyteidl::core::BindingDataCollection::internal_default_instance()); + ::flyteidl::core::_BindingData_default_instance_.promise_ = const_cast< ::flyteidl::core::OutputReference*>( + ::flyteidl::core::OutputReference::internal_default_instance()); + ::flyteidl::core::_BindingData_default_instance_.map_ = const_cast< ::flyteidl::core::BindingDataMap*>( + ::flyteidl::core::BindingDataMap::internal_default_instance()); + ::flyteidl::core::_BindingData_default_instance_._instance.get_mutable()->union__ = const_cast< ::flyteidl::core::UnionInfo*>( + ::flyteidl::core::UnionInfo::internal_default_instance()); +} +class BindingData::HasBitSetters { + public: + static const ::flyteidl::core::Scalar& scalar(const BindingData* msg); + static const ::flyteidl::core::BindingDataCollection& collection(const BindingData* msg); + static const ::flyteidl::core::OutputReference& promise(const BindingData* msg); + static const ::flyteidl::core::BindingDataMap& map(const BindingData* msg); + static const ::flyteidl::core::UnionInfo& union_(const BindingData* msg); +}; + +const ::flyteidl::core::Scalar& +BindingData::HasBitSetters::scalar(const BindingData* msg) { + return *msg->value_.scalar_; +} +const ::flyteidl::core::BindingDataCollection& +BindingData::HasBitSetters::collection(const BindingData* msg) { + return *msg->value_.collection_; +} +const ::flyteidl::core::OutputReference& +BindingData::HasBitSetters::promise(const BindingData* msg) { + return *msg->value_.promise_; +} +const ::flyteidl::core::BindingDataMap& +BindingData::HasBitSetters::map(const BindingData* msg) { + return *msg->value_.map_; +} +const ::flyteidl::core::UnionInfo& +BindingData::HasBitSetters::union_(const BindingData* msg) { + return *msg->union__; +} +void BindingData::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (scalar) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + scalar = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scalar, submessage_arena); + } + set_has_scalar(); + value_.scalar_ = scalar; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.scalar) +} +void BindingData::set_allocated_collection(::flyteidl::core::BindingDataCollection* collection) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (collection) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + collection = ::google::protobuf::internal::GetOwnedMessage( + message_arena, collection, submessage_arena); + } + set_has_collection(); + value_.collection_ = collection; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.collection) +} +void BindingData::set_allocated_promise(::flyteidl::core::OutputReference* promise) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (promise) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + promise = ::google::protobuf::internal::GetOwnedMessage( + message_arena, promise, submessage_arena); + } + set_has_promise(); + value_.promise_ = promise; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.promise) +} +void BindingData::clear_promise() { + if (has_promise()) { + delete value_.promise_; + clear_has_value(); + } +} +void BindingData::set_allocated_map(::flyteidl::core::BindingDataMap* map) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (map) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + map = ::google::protobuf::internal::GetOwnedMessage( + message_arena, map, submessage_arena); + } + set_has_map(); + value_.map_ = map; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.map) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingData::kScalarFieldNumber; +const int BindingData::kCollectionFieldNumber; +const int BindingData::kPromiseFieldNumber; +const int BindingData::kMapFieldNumber; +const int BindingData::kUnionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingData::BindingData() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BindingData) +} +BindingData::BindingData(const BindingData& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_union_()) { + union__ = new ::flyteidl::core::UnionInfo(*from.union__); + } else { + union__ = nullptr; + } + clear_has_value(); + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::BindingDataCollection::MergeFrom(from.collection()); + break; + } + case kPromise: { + mutable_promise()->::flyteidl::core::OutputReference::MergeFrom(from.promise()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::BindingDataMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingData) +} + +void BindingData::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); + union__ = nullptr; + clear_has_value(); +} + +BindingData::~BindingData() { + // @@protoc_insertion_point(destructor:flyteidl.core.BindingData) + SharedDtor(); +} + +void BindingData::SharedDtor() { + if (this != internal_default_instance()) delete union__; + if (has_value()) { + clear_value(); + } +} + +void BindingData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BindingData& BindingData::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void BindingData::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.BindingData) + switch (value_case()) { + case kScalar: { + delete value_.scalar_; + break; + } + case kCollection: { + delete value_.collection_; + break; + } + case kPromise: { + delete value_.promise_; + break; + } + case kMap: { + delete value_.map_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void BindingData::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingData) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && union__ != nullptr) { + delete union__; + } + union__ = nullptr; + clear_value(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BindingData::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Scalar scalar = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Scalar::_InternalParse; + object = msg->mutable_scalar(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.BindingDataCollection collection = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BindingDataCollection::_InternalParse; + object = msg->mutable_collection(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.OutputReference promise = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::OutputReference::_InternalParse; + object = msg->mutable_promise(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.BindingDataMap map = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BindingDataMap::_InternalParse; + object = msg->mutable_map(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.UnionInfo union = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::UnionInfo::_InternalParse; + object = msg->mutable_union_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BindingData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BindingData) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Scalar scalar = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scalar())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BindingDataCollection collection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_collection())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.OutputReference promise = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_promise())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BindingDataMap map = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_map())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.UnionInfo union = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_union_())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.BindingData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingData) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BindingData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::scalar(this), output); + } + + // .flyteidl.core.BindingDataCollection collection = 2; + if (has_collection()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::collection(this), output); + } + + // .flyteidl.core.OutputReference promise = 3; + if (has_promise()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::promise(this), output); + } + + // .flyteidl.core.BindingDataMap map = 4; + if (has_map()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::map(this), output); + } + + // .flyteidl.core.UnionInfo union = 5; + if (this->has_union_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::union_(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingData) +} + +::google::protobuf::uint8* BindingData::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::scalar(this), target); + } + + // .flyteidl.core.BindingDataCollection collection = 2; + if (has_collection()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::collection(this), target); + } + + // .flyteidl.core.OutputReference promise = 3; + if (has_promise()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::promise(this), target); + } + + // .flyteidl.core.BindingDataMap map = 4; + if (has_map()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::map(this), target); + } + + // .flyteidl.core.UnionInfo union = 5; + if (this->has_union_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::union_(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BindingData) + return target; +} + +size_t BindingData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingData) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.UnionInfo union = 5; + if (this->has_union_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *union__); + } + + switch (value_case()) { + // .flyteidl.core.Scalar scalar = 1; + case kScalar: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.scalar_); + break; + } + // .flyteidl.core.BindingDataCollection collection = 2; + case kCollection: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.collection_); + break; + } + // .flyteidl.core.OutputReference promise = 3; + case kPromise: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.promise_); + break; + } + // .flyteidl.core.BindingDataMap map = 4; + case kMap: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.map_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BindingData::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingData) + GOOGLE_DCHECK_NE(&from, this); + const BindingData* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingData) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingData) + MergeFrom(*source); + } +} + +void BindingData::MergeFrom(const BindingData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_union_()) { + mutable_union_()->::flyteidl::core::UnionInfo::MergeFrom(from.union_()); + } + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::BindingDataCollection::MergeFrom(from.collection()); + break; + } + case kPromise: { + mutable_promise()->::flyteidl::core::OutputReference::MergeFrom(from.promise()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::BindingDataMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void BindingData::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingData::CopyFrom(const BindingData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingData::IsInitialized() const { + return true; +} + +void BindingData::Swap(BindingData* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingData::InternalSwap(BindingData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(union__, other->union__); + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata BindingData::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Binding::InitAsDefaultInstance() { + ::flyteidl::core::_Binding_default_instance_._instance.get_mutable()->binding_ = const_cast< ::flyteidl::core::BindingData*>( + ::flyteidl::core::BindingData::internal_default_instance()); +} +class Binding::HasBitSetters { + public: + static const ::flyteidl::core::BindingData& binding(const Binding* msg); +}; + +const ::flyteidl::core::BindingData& +Binding::HasBitSetters::binding(const Binding* msg) { + return *msg->binding_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Binding::kVarFieldNumber; +const int Binding::kBindingFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Binding::Binding() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Binding) +} +Binding::Binding(const Binding& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.var().size() > 0) { + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + if (from.has_binding()) { + binding_ = new ::flyteidl::core::BindingData(*from.binding_); + } else { + binding_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Binding) +} + +void Binding::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + binding_ = nullptr; +} + +Binding::~Binding() { + // @@protoc_insertion_point(destructor:flyteidl.core.Binding) + SharedDtor(); +} + +void Binding::SharedDtor() { + var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete binding_; +} + +void Binding::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Binding& Binding::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void Binding::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Binding) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && binding_ != nullptr) { + delete binding_; + } + binding_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Binding::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string var = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Binding.var"); + object = msg->mutable_var(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.BindingData binding = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BindingData::_InternalParse; + object = msg->mutable_binding(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Binding::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Binding) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string var = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Binding.var")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BindingData binding = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_binding())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Binding) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Binding) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Binding::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Binding) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binding.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->var(), output); + } + + // .flyteidl.core.BindingData binding = 2; + if (this->has_binding()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::binding(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Binding) +} + +::google::protobuf::uint8* Binding::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Binding) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binding.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->var(), target); + } + + // .flyteidl.core.BindingData binding = 2; + if (this->has_binding()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::binding(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Binding) + return target; +} + +size_t Binding::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Binding) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + } + + // .flyteidl.core.BindingData binding = 2; + if (this->has_binding()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *binding_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Binding::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Binding) + GOOGLE_DCHECK_NE(&from, this); + const Binding* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Binding) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Binding) + MergeFrom(*source); + } +} + +void Binding::MergeFrom(const Binding& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Binding) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.var().size() > 0) { + + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + if (from.has_binding()) { + mutable_binding()->::flyteidl::core::BindingData::MergeFrom(from.binding()); + } +} + +void Binding::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Binding) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Binding::CopyFrom(const Binding& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Binding) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Binding::IsInitialized() const { + return true; +} + +void Binding::Swap(Binding* other) { + if (other == this) return; + InternalSwap(other); +} +void Binding::InternalSwap(Binding* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + var_.Swap(&other->var_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(binding_, other->binding_); +} + +::google::protobuf::Metadata Binding::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void KeyValuePair::InitAsDefaultInstance() { +} +class KeyValuePair::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int KeyValuePair::kKeyFieldNumber; +const int KeyValuePair::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +KeyValuePair::KeyValuePair() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.KeyValuePair) +} +KeyValuePair::KeyValuePair(const KeyValuePair& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.KeyValuePair) +} + +void KeyValuePair::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +KeyValuePair::~KeyValuePair() { + // @@protoc_insertion_point(destructor:flyteidl.core.KeyValuePair) + SharedDtor(); +} + +void KeyValuePair::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void KeyValuePair::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const KeyValuePair& KeyValuePair::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void KeyValuePair::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* KeyValuePair::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string key = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.KeyValuePair.key"); + object = msg->mutable_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.KeyValuePair.value"); + object = msg->mutable_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool KeyValuePair::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.KeyValuePair) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.KeyValuePair.key")); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.KeyValuePair.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.KeyValuePair) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.KeyValuePair) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void KeyValuePair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.KeyValuePair) +} + +::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.KeyValuePair) + return target; +} + +size_t KeyValuePair::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.KeyValuePair) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.KeyValuePair) + GOOGLE_DCHECK_NE(&from, this); + const KeyValuePair* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.KeyValuePair) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.KeyValuePair) + MergeFrom(*source); + } +} + +void KeyValuePair::MergeFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.KeyValuePair) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } +} + +void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.KeyValuePair) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void KeyValuePair::CopyFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.KeyValuePair) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KeyValuePair::IsInitialized() const { + return true; +} + +void KeyValuePair::Swap(KeyValuePair* other) { + if (other == this) return; + InternalSwap(other); +} +void KeyValuePair::InternalSwap(KeyValuePair* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata KeyValuePair::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void RetryStrategy::InitAsDefaultInstance() { +} +class RetryStrategy::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RetryStrategy::kRetriesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RetryStrategy::RetryStrategy() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.RetryStrategy) +} +RetryStrategy::RetryStrategy(const RetryStrategy& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + retries_ = from.retries_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.RetryStrategy) +} + +void RetryStrategy::SharedCtor() { + retries_ = 0u; +} + +RetryStrategy::~RetryStrategy() { + // @@protoc_insertion_point(destructor:flyteidl.core.RetryStrategy) + SharedDtor(); +} + +void RetryStrategy::SharedDtor() { +} + +void RetryStrategy::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RetryStrategy& RetryStrategy::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base); + return *internal_default_instance(); +} + + +void RetryStrategy::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.RetryStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + retries_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RetryStrategy::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // uint32 retries = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; + msg->set_retries(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RetryStrategy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.RetryStrategy) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // uint32 retries = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retries_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.RetryStrategy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.RetryStrategy) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RetryStrategy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.RetryStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 retries = 5; + if (this->retries() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->retries(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.RetryStrategy) +} + +::google::protobuf::uint8* RetryStrategy::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.RetryStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 retries = 5; + if (this->retries() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->retries(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.RetryStrategy) + return target; +} + +size_t RetryStrategy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.RetryStrategy) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 retries = 5; + if (this->retries() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retries()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RetryStrategy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.RetryStrategy) + GOOGLE_DCHECK_NE(&from, this); + const RetryStrategy* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.RetryStrategy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.RetryStrategy) + MergeFrom(*source); + } +} + +void RetryStrategy::MergeFrom(const RetryStrategy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.RetryStrategy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.retries() != 0) { + set_retries(from.retries()); + } +} + +void RetryStrategy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.RetryStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RetryStrategy::CopyFrom(const RetryStrategy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.RetryStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RetryStrategy::IsInitialized() const { + return true; +} + +void RetryStrategy::Swap(RetryStrategy* other) { + if (other == this) return; + InternalSwap(other); +} +void RetryStrategy::InternalSwap(RetryStrategy* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(retries_, other->retries_); +} + +::google::protobuf::Metadata RetryStrategy::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::Primitive* Arena::CreateMaybeMessage< ::flyteidl::core::Primitive >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Primitive >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Void* Arena::CreateMaybeMessage< ::flyteidl::core::Void >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Void >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Blob* Arena::CreateMaybeMessage< ::flyteidl::core::Blob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Blob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BlobMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::BlobMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BlobMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Binary* Arena::CreateMaybeMessage< ::flyteidl::core::Binary >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Binary >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Schema* Arena::CreateMaybeMessage< ::flyteidl::core::Schema >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Schema >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Union* Arena::CreateMaybeMessage< ::flyteidl::core::Union >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Union >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDatasetMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDatasetMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::StructuredDatasetMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDataset* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDataset >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::StructuredDataset >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Scalar* Arena::CreateMaybeMessage< ::flyteidl::core::Scalar >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Scalar >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Literal* Arena::CreateMaybeMessage< ::flyteidl::core::Literal >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Literal >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralCollection* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralCollection >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::LiteralCollection >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralMap* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralMap >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::LiteralMap >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingDataCollection* Arena::CreateMaybeMessage< ::flyteidl::core::BindingDataCollection >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BindingDataCollection >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingDataMap* Arena::CreateMaybeMessage< ::flyteidl::core::BindingDataMap >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BindingDataMap >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::UnionInfo* Arena::CreateMaybeMessage< ::flyteidl::core::UnionInfo >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::UnionInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingData* Arena::CreateMaybeMessage< ::flyteidl::core::BindingData >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BindingData >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Binding* Arena::CreateMaybeMessage< ::flyteidl::core::Binding >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Binding >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::KeyValuePair* Arena::CreateMaybeMessage< ::flyteidl::core::KeyValuePair >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::KeyValuePair >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::RetryStrategy* Arena::CreateMaybeMessage< ::flyteidl::core::RetryStrategy >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::RetryStrategy >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h new file mode 100644 index 0000000000..ebb369623b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h @@ -0,0 +1,5068 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fliterals_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fliterals_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include +#include +#include "flyteidl/core/types.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fliterals_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[22] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fliterals_2eproto(); +namespace flyteidl { +namespace core { +class Binary; +class BinaryDefaultTypeInternal; +extern BinaryDefaultTypeInternal _Binary_default_instance_; +class Binding; +class BindingDefaultTypeInternal; +extern BindingDefaultTypeInternal _Binding_default_instance_; +class BindingData; +class BindingDataDefaultTypeInternal; +extern BindingDataDefaultTypeInternal _BindingData_default_instance_; +class BindingDataCollection; +class BindingDataCollectionDefaultTypeInternal; +extern BindingDataCollectionDefaultTypeInternal _BindingDataCollection_default_instance_; +class BindingDataMap; +class BindingDataMapDefaultTypeInternal; +extern BindingDataMapDefaultTypeInternal _BindingDataMap_default_instance_; +class BindingDataMap_BindingsEntry_DoNotUse; +class BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal; +extern BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal _BindingDataMap_BindingsEntry_DoNotUse_default_instance_; +class Blob; +class BlobDefaultTypeInternal; +extern BlobDefaultTypeInternal _Blob_default_instance_; +class BlobMetadata; +class BlobMetadataDefaultTypeInternal; +extern BlobMetadataDefaultTypeInternal _BlobMetadata_default_instance_; +class KeyValuePair; +class KeyValuePairDefaultTypeInternal; +extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; +class Literal; +class LiteralDefaultTypeInternal; +extern LiteralDefaultTypeInternal _Literal_default_instance_; +class LiteralCollection; +class LiteralCollectionDefaultTypeInternal; +extern LiteralCollectionDefaultTypeInternal _LiteralCollection_default_instance_; +class LiteralMap; +class LiteralMapDefaultTypeInternal; +extern LiteralMapDefaultTypeInternal _LiteralMap_default_instance_; +class LiteralMap_LiteralsEntry_DoNotUse; +class LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal; +extern LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal _LiteralMap_LiteralsEntry_DoNotUse_default_instance_; +class Primitive; +class PrimitiveDefaultTypeInternal; +extern PrimitiveDefaultTypeInternal _Primitive_default_instance_; +class RetryStrategy; +class RetryStrategyDefaultTypeInternal; +extern RetryStrategyDefaultTypeInternal _RetryStrategy_default_instance_; +class Scalar; +class ScalarDefaultTypeInternal; +extern ScalarDefaultTypeInternal _Scalar_default_instance_; +class Schema; +class SchemaDefaultTypeInternal; +extern SchemaDefaultTypeInternal _Schema_default_instance_; +class StructuredDataset; +class StructuredDatasetDefaultTypeInternal; +extern StructuredDatasetDefaultTypeInternal _StructuredDataset_default_instance_; +class StructuredDatasetMetadata; +class StructuredDatasetMetadataDefaultTypeInternal; +extern StructuredDatasetMetadataDefaultTypeInternal _StructuredDatasetMetadata_default_instance_; +class Union; +class UnionDefaultTypeInternal; +extern UnionDefaultTypeInternal _Union_default_instance_; +class UnionInfo; +class UnionInfoDefaultTypeInternal; +extern UnionInfoDefaultTypeInternal _UnionInfo_default_instance_; +class Void; +class VoidDefaultTypeInternal; +extern VoidDefaultTypeInternal _Void_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::Binary* Arena::CreateMaybeMessage<::flyteidl::core::Binary>(Arena*); +template<> ::flyteidl::core::Binding* Arena::CreateMaybeMessage<::flyteidl::core::Binding>(Arena*); +template<> ::flyteidl::core::BindingData* Arena::CreateMaybeMessage<::flyteidl::core::BindingData>(Arena*); +template<> ::flyteidl::core::BindingDataCollection* Arena::CreateMaybeMessage<::flyteidl::core::BindingDataCollection>(Arena*); +template<> ::flyteidl::core::BindingDataMap* Arena::CreateMaybeMessage<::flyteidl::core::BindingDataMap>(Arena*); +template<> ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::Blob* Arena::CreateMaybeMessage<::flyteidl::core::Blob>(Arena*); +template<> ::flyteidl::core::BlobMetadata* Arena::CreateMaybeMessage<::flyteidl::core::BlobMetadata>(Arena*); +template<> ::flyteidl::core::KeyValuePair* Arena::CreateMaybeMessage<::flyteidl::core::KeyValuePair>(Arena*); +template<> ::flyteidl::core::Literal* Arena::CreateMaybeMessage<::flyteidl::core::Literal>(Arena*); +template<> ::flyteidl::core::LiteralCollection* Arena::CreateMaybeMessage<::flyteidl::core::LiteralCollection>(Arena*); +template<> ::flyteidl::core::LiteralMap* Arena::CreateMaybeMessage<::flyteidl::core::LiteralMap>(Arena*); +template<> ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::Primitive* Arena::CreateMaybeMessage<::flyteidl::core::Primitive>(Arena*); +template<> ::flyteidl::core::RetryStrategy* Arena::CreateMaybeMessage<::flyteidl::core::RetryStrategy>(Arena*); +template<> ::flyteidl::core::Scalar* Arena::CreateMaybeMessage<::flyteidl::core::Scalar>(Arena*); +template<> ::flyteidl::core::Schema* Arena::CreateMaybeMessage<::flyteidl::core::Schema>(Arena*); +template<> ::flyteidl::core::StructuredDataset* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDataset>(Arena*); +template<> ::flyteidl::core::StructuredDatasetMetadata* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDatasetMetadata>(Arena*); +template<> ::flyteidl::core::Union* Arena::CreateMaybeMessage<::flyteidl::core::Union>(Arena*); +template<> ::flyteidl::core::UnionInfo* Arena::CreateMaybeMessage<::flyteidl::core::UnionInfo>(Arena*); +template<> ::flyteidl::core::Void* Arena::CreateMaybeMessage<::flyteidl::core::Void>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +// =================================================================== + +class Primitive final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Primitive) */ { + public: + Primitive(); + virtual ~Primitive(); + + Primitive(const Primitive& from); + + inline Primitive& operator=(const Primitive& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Primitive(Primitive&& from) noexcept + : Primitive() { + *this = ::std::move(from); + } + + inline Primitive& operator=(Primitive&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Primitive& default_instance(); + + enum ValueCase { + kInteger = 1, + kFloatValue = 2, + kStringValue = 3, + kBoolean = 4, + kDatetime = 5, + kDuration = 6, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Primitive* internal_default_instance() { + return reinterpret_cast( + &_Primitive_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Primitive* other); + friend void swap(Primitive& a, Primitive& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Primitive* New() const final { + return CreateMaybeMessage(nullptr); + } + + Primitive* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Primitive& from); + void MergeFrom(const Primitive& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Primitive* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 integer = 1; + private: + bool has_integer() const; + public: + void clear_integer(); + static const int kIntegerFieldNumber = 1; + ::google::protobuf::int64 integer() const; + void set_integer(::google::protobuf::int64 value); + + // double float_value = 2; + private: + bool has_float_value() const; + public: + void clear_float_value(); + static const int kFloatValueFieldNumber = 2; + double float_value() const; + void set_float_value(double value); + + // string string_value = 3; + private: + bool has_string_value() const; + public: + void clear_string_value(); + static const int kStringValueFieldNumber = 3; + const ::std::string& string_value() const; + void set_string_value(const ::std::string& value); + #if LANG_CXX11 + void set_string_value(::std::string&& value); + #endif + void set_string_value(const char* value); + void set_string_value(const char* value, size_t size); + ::std::string* mutable_string_value(); + ::std::string* release_string_value(); + void set_allocated_string_value(::std::string* string_value); + + // bool boolean = 4; + private: + bool has_boolean() const; + public: + void clear_boolean(); + static const int kBooleanFieldNumber = 4; + bool boolean() const; + void set_boolean(bool value); + + // .google.protobuf.Timestamp datetime = 5; + bool has_datetime() const; + void clear_datetime(); + static const int kDatetimeFieldNumber = 5; + const ::google::protobuf::Timestamp& datetime() const; + ::google::protobuf::Timestamp* release_datetime(); + ::google::protobuf::Timestamp* mutable_datetime(); + void set_allocated_datetime(::google::protobuf::Timestamp* datetime); + + // .google.protobuf.Duration duration = 6; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 6; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) + private: + class HasBitSetters; + void set_has_integer(); + void set_has_float_value(); + void set_has_string_value(); + void set_has_boolean(); + void set_has_datetime(); + void set_has_duration(); + + inline bool has_value() const; + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValueUnion { + ValueUnion() {} + ::google::protobuf::int64 integer_; + double float_value_; + ::google::protobuf::internal::ArenaStringPtr string_value_; + bool boolean_; + ::google::protobuf::Timestamp* datetime_; + ::google::protobuf::Duration* duration_; + } value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Void final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Void) */ { + public: + Void(); + virtual ~Void(); + + Void(const Void& from); + + inline Void& operator=(const Void& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Void(Void&& from) noexcept + : Void() { + *this = ::std::move(from); + } + + inline Void& operator=(Void&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Void& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Void* internal_default_instance() { + return reinterpret_cast( + &_Void_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Void* other); + friend void swap(Void& a, Void& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Void* New() const final { + return CreateMaybeMessage(nullptr); + } + + Void* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Void& from); + void MergeFrom(const Void& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Void* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.Void) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Blob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Blob) */ { + public: + Blob(); + virtual ~Blob(); + + Blob(const Blob& from); + + inline Blob& operator=(const Blob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Blob(Blob&& from) noexcept + : Blob() { + *this = ::std::move(from); + } + + inline Blob& operator=(Blob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Blob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Blob* internal_default_instance() { + return reinterpret_cast( + &_Blob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(Blob* other); + friend void swap(Blob& a, Blob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Blob* New() const final { + return CreateMaybeMessage(nullptr); + } + + Blob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Blob& from); + void MergeFrom(const Blob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Blob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string uri = 3; + void clear_uri(); + static const int kUriFieldNumber = 3; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + // .flyteidl.core.BlobMetadata metadata = 1; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 1; + const ::flyteidl::core::BlobMetadata& metadata() const; + ::flyteidl::core::BlobMetadata* release_metadata(); + ::flyteidl::core::BlobMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::BlobMetadata* metadata); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr uri_; + ::flyteidl::core::BlobMetadata* metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class BlobMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BlobMetadata) */ { + public: + BlobMetadata(); + virtual ~BlobMetadata(); + + BlobMetadata(const BlobMetadata& from); + + inline BlobMetadata& operator=(const BlobMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BlobMetadata(BlobMetadata&& from) noexcept + : BlobMetadata() { + *this = ::std::move(from); + } + + inline BlobMetadata& operator=(BlobMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const BlobMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BlobMetadata* internal_default_instance() { + return reinterpret_cast( + &_BlobMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(BlobMetadata* other); + friend void swap(BlobMetadata& a, BlobMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BlobMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + BlobMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BlobMetadata& from); + void MergeFrom(const BlobMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BlobMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.BlobType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + const ::flyteidl::core::BlobType& type() const; + ::flyteidl::core::BlobType* release_type(); + ::flyteidl::core::BlobType* mutable_type(); + void set_allocated_type(::flyteidl::core::BlobType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::BlobType* type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Binary final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Binary) */ { + public: + Binary(); + virtual ~Binary(); + + Binary(const Binary& from); + + inline Binary& operator=(const Binary& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Binary(Binary&& from) noexcept + : Binary() { + *this = ::std::move(from); + } + + inline Binary& operator=(Binary&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Binary& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Binary* internal_default_instance() { + return reinterpret_cast( + &_Binary_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(Binary* other); + friend void swap(Binary& a, Binary& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Binary* New() const final { + return CreateMaybeMessage(nullptr); + } + + Binary* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Binary& from); + void MergeFrom(const Binary& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Binary* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bytes value = 1; + void clear_value(); + static const int kValueFieldNumber = 1; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const void* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // string tag = 2; + void clear_tag(); + static const int kTagFieldNumber = 2; + const ::std::string& tag() const; + void set_tag(const ::std::string& value); + #if LANG_CXX11 + void set_tag(::std::string&& value); + #endif + void set_tag(const char* value); + void set_tag(const char* value, size_t size); + ::std::string* mutable_tag(); + ::std::string* release_tag(); + void set_allocated_tag(::std::string* tag); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr tag_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Schema final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Schema) */ { + public: + Schema(); + virtual ~Schema(); + + Schema(const Schema& from); + + inline Schema& operator=(const Schema& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Schema(Schema&& from) noexcept + : Schema() { + *this = ::std::move(from); + } + + inline Schema& operator=(Schema&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Schema& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Schema* internal_default_instance() { + return reinterpret_cast( + &_Schema_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(Schema* other); + friend void swap(Schema& a, Schema& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Schema* New() const final { + return CreateMaybeMessage(nullptr); + } + + Schema* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Schema& from); + void MergeFrom(const Schema& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Schema* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string uri = 1; + void clear_uri(); + static const int kUriFieldNumber = 1; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + // .flyteidl.core.SchemaType type = 3; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 3; + const ::flyteidl::core::SchemaType& type() const; + ::flyteidl::core::SchemaType* release_type(); + ::flyteidl::core::SchemaType* mutable_type(); + void set_allocated_type(::flyteidl::core::SchemaType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr uri_; + ::flyteidl::core::SchemaType* type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Union final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Union) */ { + public: + Union(); + virtual ~Union(); + + Union(const Union& from); + + inline Union& operator=(const Union& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Union(Union&& from) noexcept + : Union() { + *this = ::std::move(from); + } + + inline Union& operator=(Union&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Union& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Union* internal_default_instance() { + return reinterpret_cast( + &_Union_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(Union* other); + friend void swap(Union& a, Union& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Union* New() const final { + return CreateMaybeMessage(nullptr); + } + + Union* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Union& from); + void MergeFrom(const Union& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Union* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Literal value = 1; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 1; + const ::flyteidl::core::Literal& value() const; + ::flyteidl::core::Literal* release_value(); + ::flyteidl::core::Literal* mutable_value(); + void set_allocated_value(::flyteidl::core::Literal* value); + + // .flyteidl.core.LiteralType type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::flyteidl::core::LiteralType& type() const; + ::flyteidl::core::LiteralType* release_type(); + ::flyteidl::core::LiteralType* mutable_type(); + void set_allocated_type(::flyteidl::core::LiteralType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Union) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Literal* value_; + ::flyteidl::core::LiteralType* type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class StructuredDatasetMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDatasetMetadata) */ { + public: + StructuredDatasetMetadata(); + virtual ~StructuredDatasetMetadata(); + + StructuredDatasetMetadata(const StructuredDatasetMetadata& from); + + inline StructuredDatasetMetadata& operator=(const StructuredDatasetMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StructuredDatasetMetadata(StructuredDatasetMetadata&& from) noexcept + : StructuredDatasetMetadata() { + *this = ::std::move(from); + } + + inline StructuredDatasetMetadata& operator=(StructuredDatasetMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StructuredDatasetMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StructuredDatasetMetadata* internal_default_instance() { + return reinterpret_cast( + &_StructuredDatasetMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(StructuredDatasetMetadata* other); + friend void swap(StructuredDatasetMetadata& a, StructuredDatasetMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StructuredDatasetMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + StructuredDatasetMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StructuredDatasetMetadata& from); + void MergeFrom(const StructuredDatasetMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StructuredDatasetMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + bool has_structured_dataset_type() const; + void clear_structured_dataset_type(); + static const int kStructuredDatasetTypeFieldNumber = 1; + const ::flyteidl::core::StructuredDatasetType& structured_dataset_type() const; + ::flyteidl::core::StructuredDatasetType* release_structured_dataset_type(); + ::flyteidl::core::StructuredDatasetType* mutable_structured_dataset_type(); + void set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::StructuredDatasetType* structured_dataset_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class StructuredDataset final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDataset) */ { + public: + StructuredDataset(); + virtual ~StructuredDataset(); + + StructuredDataset(const StructuredDataset& from); + + inline StructuredDataset& operator=(const StructuredDataset& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StructuredDataset(StructuredDataset&& from) noexcept + : StructuredDataset() { + *this = ::std::move(from); + } + + inline StructuredDataset& operator=(StructuredDataset&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StructuredDataset& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StructuredDataset* internal_default_instance() { + return reinterpret_cast( + &_StructuredDataset_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(StructuredDataset* other); + friend void swap(StructuredDataset& a, StructuredDataset& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StructuredDataset* New() const final { + return CreateMaybeMessage(nullptr); + } + + StructuredDataset* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StructuredDataset& from); + void MergeFrom(const StructuredDataset& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StructuredDataset* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string uri = 1; + void clear_uri(); + static const int kUriFieldNumber = 1; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + // .flyteidl.core.StructuredDatasetMetadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::flyteidl::core::StructuredDatasetMetadata& metadata() const; + ::flyteidl::core::StructuredDatasetMetadata* release_metadata(); + ::flyteidl::core::StructuredDatasetMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::StructuredDatasetMetadata* metadata); + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDataset) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr uri_; + ::flyteidl::core::StructuredDatasetMetadata* metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Scalar final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Scalar) */ { + public: + Scalar(); + virtual ~Scalar(); + + Scalar(const Scalar& from); + + inline Scalar& operator=(const Scalar& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Scalar(Scalar&& from) noexcept + : Scalar() { + *this = ::std::move(from); + } + + inline Scalar& operator=(Scalar&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Scalar& default_instance(); + + enum ValueCase { + kPrimitive = 1, + kBlob = 2, + kBinary = 3, + kSchema = 4, + kNoneType = 5, + kError = 6, + kGeneric = 7, + kStructuredDataset = 8, + kUnion = 9, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Scalar* internal_default_instance() { + return reinterpret_cast( + &_Scalar_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(Scalar* other); + friend void swap(Scalar& a, Scalar& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Scalar* New() const final { + return CreateMaybeMessage(nullptr); + } + + Scalar* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Scalar& from); + void MergeFrom(const Scalar& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Scalar* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Primitive primitive = 1; + bool has_primitive() const; + void clear_primitive(); + static const int kPrimitiveFieldNumber = 1; + const ::flyteidl::core::Primitive& primitive() const; + ::flyteidl::core::Primitive* release_primitive(); + ::flyteidl::core::Primitive* mutable_primitive(); + void set_allocated_primitive(::flyteidl::core::Primitive* primitive); + + // .flyteidl.core.Blob blob = 2; + bool has_blob() const; + void clear_blob(); + static const int kBlobFieldNumber = 2; + const ::flyteidl::core::Blob& blob() const; + ::flyteidl::core::Blob* release_blob(); + ::flyteidl::core::Blob* mutable_blob(); + void set_allocated_blob(::flyteidl::core::Blob* blob); + + // .flyteidl.core.Binary binary = 3; + bool has_binary() const; + void clear_binary(); + static const int kBinaryFieldNumber = 3; + const ::flyteidl::core::Binary& binary() const; + ::flyteidl::core::Binary* release_binary(); + ::flyteidl::core::Binary* mutable_binary(); + void set_allocated_binary(::flyteidl::core::Binary* binary); + + // .flyteidl.core.Schema schema = 4; + bool has_schema() const; + void clear_schema(); + static const int kSchemaFieldNumber = 4; + const ::flyteidl::core::Schema& schema() const; + ::flyteidl::core::Schema* release_schema(); + ::flyteidl::core::Schema* mutable_schema(); + void set_allocated_schema(::flyteidl::core::Schema* schema); + + // .flyteidl.core.Void none_type = 5; + bool has_none_type() const; + void clear_none_type(); + static const int kNoneTypeFieldNumber = 5; + const ::flyteidl::core::Void& none_type() const; + ::flyteidl::core::Void* release_none_type(); + ::flyteidl::core::Void* mutable_none_type(); + void set_allocated_none_type(::flyteidl::core::Void* none_type); + + // .flyteidl.core.Error error = 6; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 6; + const ::flyteidl::core::Error& error() const; + ::flyteidl::core::Error* release_error(); + ::flyteidl::core::Error* mutable_error(); + void set_allocated_error(::flyteidl::core::Error* error); + + // .google.protobuf.Struct generic = 7; + bool has_generic() const; + void clear_generic(); + static const int kGenericFieldNumber = 7; + const ::google::protobuf::Struct& generic() const; + ::google::protobuf::Struct* release_generic(); + ::google::protobuf::Struct* mutable_generic(); + void set_allocated_generic(::google::protobuf::Struct* generic); + + // .flyteidl.core.StructuredDataset structured_dataset = 8; + bool has_structured_dataset() const; + void clear_structured_dataset(); + static const int kStructuredDatasetFieldNumber = 8; + const ::flyteidl::core::StructuredDataset& structured_dataset() const; + ::flyteidl::core::StructuredDataset* release_structured_dataset(); + ::flyteidl::core::StructuredDataset* mutable_structured_dataset(); + void set_allocated_structured_dataset(::flyteidl::core::StructuredDataset* structured_dataset); + + // .flyteidl.core.Union union = 9; + bool has_union_() const; + void clear_union_(); + static const int kUnionFieldNumber = 9; + const ::flyteidl::core::Union& union_() const; + ::flyteidl::core::Union* release_union_(); + ::flyteidl::core::Union* mutable_union_(); + void set_allocated_union_(::flyteidl::core::Union* union_); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) + private: + class HasBitSetters; + void set_has_primitive(); + void set_has_blob(); + void set_has_binary(); + void set_has_schema(); + void set_has_none_type(); + void set_has_error(); + void set_has_generic(); + void set_has_structured_dataset(); + void set_has_union_(); + + inline bool has_value() const; + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValueUnion { + ValueUnion() {} + ::flyteidl::core::Primitive* primitive_; + ::flyteidl::core::Blob* blob_; + ::flyteidl::core::Binary* binary_; + ::flyteidl::core::Schema* schema_; + ::flyteidl::core::Void* none_type_; + ::flyteidl::core::Error* error_; + ::google::protobuf::Struct* generic_; + ::flyteidl::core::StructuredDataset* structured_dataset_; + ::flyteidl::core::Union* union__; + } value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Literal final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Literal) */ { + public: + Literal(); + virtual ~Literal(); + + Literal(const Literal& from); + + inline Literal& operator=(const Literal& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Literal(Literal&& from) noexcept + : Literal() { + *this = ::std::move(from); + } + + inline Literal& operator=(Literal&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Literal& default_instance(); + + enum ValueCase { + kScalar = 1, + kCollection = 2, + kMap = 3, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Literal* internal_default_instance() { + return reinterpret_cast( + &_Literal_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(Literal* other); + friend void swap(Literal& a, Literal& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Literal* New() const final { + return CreateMaybeMessage(nullptr); + } + + Literal* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Literal& from); + void MergeFrom(const Literal& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Literal* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string hash = 4; + void clear_hash(); + static const int kHashFieldNumber = 4; + const ::std::string& hash() const; + void set_hash(const ::std::string& value); + #if LANG_CXX11 + void set_hash(::std::string&& value); + #endif + void set_hash(const char* value); + void set_hash(const char* value, size_t size); + ::std::string* mutable_hash(); + ::std::string* release_hash(); + void set_allocated_hash(::std::string* hash); + + // .flyteidl.core.Scalar scalar = 1; + bool has_scalar() const; + void clear_scalar(); + static const int kScalarFieldNumber = 1; + const ::flyteidl::core::Scalar& scalar() const; + ::flyteidl::core::Scalar* release_scalar(); + ::flyteidl::core::Scalar* mutable_scalar(); + void set_allocated_scalar(::flyteidl::core::Scalar* scalar); + + // .flyteidl.core.LiteralCollection collection = 2; + bool has_collection() const; + void clear_collection(); + static const int kCollectionFieldNumber = 2; + const ::flyteidl::core::LiteralCollection& collection() const; + ::flyteidl::core::LiteralCollection* release_collection(); + ::flyteidl::core::LiteralCollection* mutable_collection(); + void set_allocated_collection(::flyteidl::core::LiteralCollection* collection); + + // .flyteidl.core.LiteralMap map = 3; + bool has_map() const; + void clear_map(); + static const int kMapFieldNumber = 3; + const ::flyteidl::core::LiteralMap& map() const; + ::flyteidl::core::LiteralMap* release_map(); + ::flyteidl::core::LiteralMap* mutable_map(); + void set_allocated_map(::flyteidl::core::LiteralMap* map); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) + private: + class HasBitSetters; + void set_has_scalar(); + void set_has_collection(); + void set_has_map(); + + inline bool has_value() const; + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr hash_; + union ValueUnion { + ValueUnion() {} + ::flyteidl::core::Scalar* scalar_; + ::flyteidl::core::LiteralCollection* collection_; + ::flyteidl::core::LiteralMap* map_; + } value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class LiteralCollection final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralCollection) */ { + public: + LiteralCollection(); + virtual ~LiteralCollection(); + + LiteralCollection(const LiteralCollection& from); + + inline LiteralCollection& operator=(const LiteralCollection& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralCollection(LiteralCollection&& from) noexcept + : LiteralCollection() { + *this = ::std::move(from); + } + + inline LiteralCollection& operator=(LiteralCollection&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LiteralCollection& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralCollection* internal_default_instance() { + return reinterpret_cast( + &_LiteralCollection_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(LiteralCollection* other); + friend void swap(LiteralCollection& a, LiteralCollection& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralCollection* New() const final { + return CreateMaybeMessage(nullptr); + } + + LiteralCollection* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiteralCollection& from); + void MergeFrom(const LiteralCollection& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiteralCollection* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Literal literals = 1; + int literals_size() const; + void clear_literals(); + static const int kLiteralsFieldNumber = 1; + ::flyteidl::core::Literal* mutable_literals(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >* + mutable_literals(); + const ::flyteidl::core::Literal& literals(int index) const; + ::flyteidl::core::Literal* add_literals(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >& + literals() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal > literals_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class LiteralMap_LiteralsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + LiteralMap_LiteralsEntry_DoNotUse(); + LiteralMap_LiteralsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const LiteralMap_LiteralsEntry_DoNotUse& other); + static const LiteralMap_LiteralsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_LiteralMap_LiteralsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class LiteralMap final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralMap) */ { + public: + LiteralMap(); + virtual ~LiteralMap(); + + LiteralMap(const LiteralMap& from); + + inline LiteralMap& operator=(const LiteralMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralMap(LiteralMap&& from) noexcept + : LiteralMap() { + *this = ::std::move(from); + } + + inline LiteralMap& operator=(LiteralMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LiteralMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralMap* internal_default_instance() { + return reinterpret_cast( + &_LiteralMap_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(LiteralMap* other); + friend void swap(LiteralMap& a, LiteralMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralMap* New() const final { + return CreateMaybeMessage(nullptr); + } + + LiteralMap* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiteralMap& from); + void MergeFrom(const LiteralMap& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiteralMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map literals = 1; + int literals_size() const; + void clear_literals(); + static const int kLiteralsFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >& + literals() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >* + mutable_literals(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + LiteralMap_LiteralsEntry_DoNotUse, + ::std::string, ::flyteidl::core::Literal, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > literals_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class BindingDataCollection final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingDataCollection) */ { + public: + BindingDataCollection(); + virtual ~BindingDataCollection(); + + BindingDataCollection(const BindingDataCollection& from); + + inline BindingDataCollection& operator=(const BindingDataCollection& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingDataCollection(BindingDataCollection&& from) noexcept + : BindingDataCollection() { + *this = ::std::move(from); + } + + inline BindingDataCollection& operator=(BindingDataCollection&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const BindingDataCollection& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingDataCollection* internal_default_instance() { + return reinterpret_cast( + &_BindingDataCollection_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(BindingDataCollection* other); + friend void swap(BindingDataCollection& a, BindingDataCollection& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingDataCollection* New() const final { + return CreateMaybeMessage(nullptr); + } + + BindingDataCollection* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BindingDataCollection& from); + void MergeFrom(const BindingDataCollection& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BindingDataCollection* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.BindingData bindings = 1; + int bindings_size() const; + void clear_bindings(); + static const int kBindingsFieldNumber = 1; + ::flyteidl::core::BindingData* mutable_bindings(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >* + mutable_bindings(); + const ::flyteidl::core::BindingData& bindings(int index) const; + ::flyteidl::core::BindingData* add_bindings(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >& + bindings() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData > bindings_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class BindingDataMap_BindingsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + BindingDataMap_BindingsEntry_DoNotUse(); + BindingDataMap_BindingsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const BindingDataMap_BindingsEntry_DoNotUse& other); + static const BindingDataMap_BindingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BindingDataMap_BindingsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class BindingDataMap final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingDataMap) */ { + public: + BindingDataMap(); + virtual ~BindingDataMap(); + + BindingDataMap(const BindingDataMap& from); + + inline BindingDataMap& operator=(const BindingDataMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingDataMap(BindingDataMap&& from) noexcept + : BindingDataMap() { + *this = ::std::move(from); + } + + inline BindingDataMap& operator=(BindingDataMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const BindingDataMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingDataMap* internal_default_instance() { + return reinterpret_cast( + &_BindingDataMap_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(BindingDataMap* other); + friend void swap(BindingDataMap& a, BindingDataMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingDataMap* New() const final { + return CreateMaybeMessage(nullptr); + } + + BindingDataMap* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BindingDataMap& from); + void MergeFrom(const BindingDataMap& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BindingDataMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map bindings = 1; + int bindings_size() const; + void clear_bindings(); + static const int kBindingsFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >& + bindings() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >* + mutable_bindings(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + BindingDataMap_BindingsEntry_DoNotUse, + ::std::string, ::flyteidl::core::BindingData, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > bindings_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class UnionInfo final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.UnionInfo) */ { + public: + UnionInfo(); + virtual ~UnionInfo(); + + UnionInfo(const UnionInfo& from); + + inline UnionInfo& operator=(const UnionInfo& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UnionInfo(UnionInfo&& from) noexcept + : UnionInfo() { + *this = ::std::move(from); + } + + inline UnionInfo& operator=(UnionInfo&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const UnionInfo& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UnionInfo* internal_default_instance() { + return reinterpret_cast( + &_UnionInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(UnionInfo* other); + friend void swap(UnionInfo& a, UnionInfo& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UnionInfo* New() const final { + return CreateMaybeMessage(nullptr); + } + + UnionInfo* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const UnionInfo& from); + void MergeFrom(const UnionInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UnionInfo* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.LiteralType targetType = 1; + bool has_targettype() const; + void clear_targettype(); + static const int kTargetTypeFieldNumber = 1; + const ::flyteidl::core::LiteralType& targettype() const; + ::flyteidl::core::LiteralType* release_targettype(); + ::flyteidl::core::LiteralType* mutable_targettype(); + void set_allocated_targettype(::flyteidl::core::LiteralType* targettype); + + // @@protoc_insertion_point(class_scope:flyteidl.core.UnionInfo) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::LiteralType* targettype_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class BindingData final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingData) */ { + public: + BindingData(); + virtual ~BindingData(); + + BindingData(const BindingData& from); + + inline BindingData& operator=(const BindingData& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingData(BindingData&& from) noexcept + : BindingData() { + *this = ::std::move(from); + } + + inline BindingData& operator=(BindingData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const BindingData& default_instance(); + + enum ValueCase { + kScalar = 1, + kCollection = 2, + kPromise = 3, + kMap = 4, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingData* internal_default_instance() { + return reinterpret_cast( + &_BindingData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(BindingData* other); + friend void swap(BindingData& a, BindingData& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingData* New() const final { + return CreateMaybeMessage(nullptr); + } + + BindingData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BindingData& from); + void MergeFrom(const BindingData& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BindingData* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.UnionInfo union = 5; + bool has_union_() const; + void clear_union_(); + static const int kUnionFieldNumber = 5; + const ::flyteidl::core::UnionInfo& union_() const; + ::flyteidl::core::UnionInfo* release_union_(); + ::flyteidl::core::UnionInfo* mutable_union_(); + void set_allocated_union_(::flyteidl::core::UnionInfo* union_); + + // .flyteidl.core.Scalar scalar = 1; + bool has_scalar() const; + void clear_scalar(); + static const int kScalarFieldNumber = 1; + const ::flyteidl::core::Scalar& scalar() const; + ::flyteidl::core::Scalar* release_scalar(); + ::flyteidl::core::Scalar* mutable_scalar(); + void set_allocated_scalar(::flyteidl::core::Scalar* scalar); + + // .flyteidl.core.BindingDataCollection collection = 2; + bool has_collection() const; + void clear_collection(); + static const int kCollectionFieldNumber = 2; + const ::flyteidl::core::BindingDataCollection& collection() const; + ::flyteidl::core::BindingDataCollection* release_collection(); + ::flyteidl::core::BindingDataCollection* mutable_collection(); + void set_allocated_collection(::flyteidl::core::BindingDataCollection* collection); + + // .flyteidl.core.OutputReference promise = 3; + bool has_promise() const; + void clear_promise(); + static const int kPromiseFieldNumber = 3; + const ::flyteidl::core::OutputReference& promise() const; + ::flyteidl::core::OutputReference* release_promise(); + ::flyteidl::core::OutputReference* mutable_promise(); + void set_allocated_promise(::flyteidl::core::OutputReference* promise); + + // .flyteidl.core.BindingDataMap map = 4; + bool has_map() const; + void clear_map(); + static const int kMapFieldNumber = 4; + const ::flyteidl::core::BindingDataMap& map() const; + ::flyteidl::core::BindingDataMap* release_map(); + ::flyteidl::core::BindingDataMap* mutable_map(); + void set_allocated_map(::flyteidl::core::BindingDataMap* map); + + void clear_value(); + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) + private: + class HasBitSetters; + void set_has_scalar(); + void set_has_collection(); + void set_has_promise(); + void set_has_map(); + + inline bool has_value() const; + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::UnionInfo* union__; + union ValueUnion { + ValueUnion() {} + ::flyteidl::core::Scalar* scalar_; + ::flyteidl::core::BindingDataCollection* collection_; + ::flyteidl::core::OutputReference* promise_; + ::flyteidl::core::BindingDataMap* map_; + } value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class Binding final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Binding) */ { + public: + Binding(); + virtual ~Binding(); + + Binding(const Binding& from); + + inline Binding& operator=(const Binding& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Binding(Binding&& from) noexcept + : Binding() { + *this = ::std::move(from); + } + + inline Binding& operator=(Binding&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Binding& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Binding* internal_default_instance() { + return reinterpret_cast( + &_Binding_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(Binding* other); + friend void swap(Binding& a, Binding& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Binding* New() const final { + return CreateMaybeMessage(nullptr); + } + + Binding* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Binding& from); + void MergeFrom(const Binding& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Binding* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string var = 1; + void clear_var(); + static const int kVarFieldNumber = 1; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + // .flyteidl.core.BindingData binding = 2; + bool has_binding() const; + void clear_binding(); + static const int kBindingFieldNumber = 2; + const ::flyteidl::core::BindingData& binding() const; + ::flyteidl::core::BindingData* release_binding(); + ::flyteidl::core::BindingData* mutable_binding(); + void set_allocated_binding(::flyteidl::core::BindingData* binding); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr var_; + ::flyteidl::core::BindingData* binding_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class KeyValuePair final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.KeyValuePair) */ { + public: + KeyValuePair(); + virtual ~KeyValuePair(); + + KeyValuePair(const KeyValuePair& from); + + inline KeyValuePair& operator=(const KeyValuePair& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + KeyValuePair(KeyValuePair&& from) noexcept + : KeyValuePair() { + *this = ::std::move(from); + } + + inline KeyValuePair& operator=(KeyValuePair&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const KeyValuePair& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const KeyValuePair* internal_default_instance() { + return reinterpret_cast( + &_KeyValuePair_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(KeyValuePair* other); + friend void swap(KeyValuePair& a, KeyValuePair& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline KeyValuePair* New() const final { + return CreateMaybeMessage(nullptr); + } + + KeyValuePair* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const KeyValuePair& from); + void MergeFrom(const KeyValuePair& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(KeyValuePair* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// ------------------------------------------------------------------- + +class RetryStrategy final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.RetryStrategy) */ { + public: + RetryStrategy(); + virtual ~RetryStrategy(); + + RetryStrategy(const RetryStrategy& from); + + inline RetryStrategy& operator=(const RetryStrategy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RetryStrategy(RetryStrategy&& from) noexcept + : RetryStrategy() { + *this = ::std::move(from); + } + + inline RetryStrategy& operator=(RetryStrategy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const RetryStrategy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RetryStrategy* internal_default_instance() { + return reinterpret_cast( + &_RetryStrategy_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(RetryStrategy* other); + friend void swap(RetryStrategy& a, RetryStrategy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RetryStrategy* New() const final { + return CreateMaybeMessage(nullptr); + } + + RetryStrategy* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RetryStrategy& from); + void MergeFrom(const RetryStrategy& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RetryStrategy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 retries = 5; + void clear_retries(); + static const int kRetriesFieldNumber = 5; + ::google::protobuf::uint32 retries() const; + void set_retries(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 retries_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Primitive + +// int64 integer = 1; +inline bool Primitive::has_integer() const { + return value_case() == kInteger; +} +inline void Primitive::set_has_integer() { + _oneof_case_[0] = kInteger; +} +inline void Primitive::clear_integer() { + if (has_integer()) { + value_.integer_ = PROTOBUF_LONGLONG(0); + clear_has_value(); + } +} +inline ::google::protobuf::int64 Primitive::integer() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.integer) + if (has_integer()) { + return value_.integer_; + } + return PROTOBUF_LONGLONG(0); +} +inline void Primitive::set_integer(::google::protobuf::int64 value) { + if (!has_integer()) { + clear_value(); + set_has_integer(); + } + value_.integer_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.integer) +} + +// double float_value = 2; +inline bool Primitive::has_float_value() const { + return value_case() == kFloatValue; +} +inline void Primitive::set_has_float_value() { + _oneof_case_[0] = kFloatValue; +} +inline void Primitive::clear_float_value() { + if (has_float_value()) { + value_.float_value_ = 0; + clear_has_value(); + } +} +inline double Primitive::float_value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.float_value) + if (has_float_value()) { + return value_.float_value_; + } + return 0; +} +inline void Primitive::set_float_value(double value) { + if (!has_float_value()) { + clear_value(); + set_has_float_value(); + } + value_.float_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.float_value) +} + +// string string_value = 3; +inline bool Primitive::has_string_value() const { + return value_case() == kStringValue; +} +inline void Primitive::set_has_string_value() { + _oneof_case_[0] = kStringValue; +} +inline void Primitive::clear_string_value() { + if (has_string_value()) { + value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); + } +} +inline const ::std::string& Primitive::string_value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.string_value) + if (has_string_value()) { + return value_.string_value_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Primitive::set_string_value(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) +} +#if LANG_CXX11 +inline void Primitive::set_string_value(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Primitive.string_value) +} +#endif +inline void Primitive::set_string_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Primitive.string_value) +} +inline void Primitive::set_string_value(const char* value, size_t size) { + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Primitive.string_value) +} +inline ::std::string* Primitive::mutable_string_value() { + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.string_value) + return value_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Primitive::release_string_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.string_value) + if (has_string_value()) { + clear_has_value(); + return value_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void Primitive::set_allocated_string_value(::std::string* string_value) { + if (has_value()) { + clear_value(); + } + if (string_value != nullptr) { + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(string_value); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.string_value) +} + +// bool boolean = 4; +inline bool Primitive::has_boolean() const { + return value_case() == kBoolean; +} +inline void Primitive::set_has_boolean() { + _oneof_case_[0] = kBoolean; +} +inline void Primitive::clear_boolean() { + if (has_boolean()) { + value_.boolean_ = false; + clear_has_value(); + } +} +inline bool Primitive::boolean() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.boolean) + if (has_boolean()) { + return value_.boolean_; + } + return false; +} +inline void Primitive::set_boolean(bool value) { + if (!has_boolean()) { + clear_value(); + set_has_boolean(); + } + value_.boolean_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.boolean) +} + +// .google.protobuf.Timestamp datetime = 5; +inline bool Primitive::has_datetime() const { + return value_case() == kDatetime; +} +inline void Primitive::set_has_datetime() { + _oneof_case_[0] = kDatetime; +} +inline ::google::protobuf::Timestamp* Primitive::release_datetime() { + // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.datetime) + if (has_datetime()) { + clear_has_value(); + ::google::protobuf::Timestamp* temp = value_.datetime_; + value_.datetime_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::protobuf::Timestamp& Primitive::datetime() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.datetime) + return has_datetime() + ? *value_.datetime_ + : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Primitive::mutable_datetime() { + if (!has_datetime()) { + clear_value(); + set_has_datetime(); + value_.datetime_ = CreateMaybeMessage< ::google::protobuf::Timestamp >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.datetime) + return value_.datetime_; +} + +// .google.protobuf.Duration duration = 6; +inline bool Primitive::has_duration() const { + return value_case() == kDuration; +} +inline void Primitive::set_has_duration() { + _oneof_case_[0] = kDuration; +} +inline ::google::protobuf::Duration* Primitive::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.duration) + if (has_duration()) { + clear_has_value(); + ::google::protobuf::Duration* temp = value_.duration_; + value_.duration_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::protobuf::Duration& Primitive::duration() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.duration) + return has_duration() + ? *value_.duration_ + : *reinterpret_cast< ::google::protobuf::Duration*>(&::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* Primitive::mutable_duration() { + if (!has_duration()) { + clear_value(); + set_has_duration(); + value_.duration_ = CreateMaybeMessage< ::google::protobuf::Duration >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.duration) + return value_.duration_; +} + +inline bool Primitive::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void Primitive::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline Primitive::ValueCase Primitive::value_case() const { + return Primitive::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Void + +// ------------------------------------------------------------------- + +// Blob + +// .flyteidl.core.BlobMetadata metadata = 1; +inline bool Blob::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void Blob::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::core::BlobMetadata& Blob::metadata() const { + const ::flyteidl::core::BlobMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.Blob.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_BlobMetadata_default_instance_); +} +inline ::flyteidl::core::BlobMetadata* Blob::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.Blob.metadata) + + ::flyteidl::core::BlobMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::core::BlobMetadata* Blob::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::BlobMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Blob.metadata) + return metadata_; +} +inline void Blob::set_allocated_metadata(::flyteidl::core::BlobMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Blob.metadata) +} + +// string uri = 3; +inline void Blob::clear_uri() { + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Blob::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Blob.uri) + return uri_.GetNoArena(); +} +inline void Blob::set_uri(const ::std::string& value) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Blob.uri) +} +#if LANG_CXX11 +inline void Blob::set_uri(::std::string&& value) { + + uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Blob.uri) +} +#endif +inline void Blob::set_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Blob.uri) +} +inline void Blob::set_uri(const char* value, size_t size) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Blob.uri) +} +inline ::std::string* Blob::mutable_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Blob.uri) + return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Blob::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.Blob.uri) + + return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Blob::set_allocated_uri(::std::string* uri) { + if (uri != nullptr) { + + } else { + + } + uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Blob.uri) +} + +// ------------------------------------------------------------------- + +// BlobMetadata + +// .flyteidl.core.BlobType type = 1; +inline bool BlobMetadata::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::BlobType& BlobMetadata::type() const { + const ::flyteidl::core::BlobType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.BlobMetadata.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_BlobType_default_instance_); +} +inline ::flyteidl::core::BlobType* BlobMetadata::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.BlobMetadata.type) + + ::flyteidl::core::BlobType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::BlobType* BlobMetadata::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::BlobType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BlobMetadata.type) + return type_; +} +inline void BlobMetadata::set_allocated_type(::flyteidl::core::BlobType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BlobMetadata.type) +} + +// ------------------------------------------------------------------- + +// Binary + +// bytes value = 1; +inline void Binary::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Binary::value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Binary.value) + return value_.GetNoArena(); +} +inline void Binary::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Binary.value) +} +#if LANG_CXX11 +inline void Binary::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binary.value) +} +#endif +inline void Binary::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Binary.value) +} +inline void Binary::set_value(const void* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binary.value) +} +inline ::std::string* Binary::mutable_value() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binary.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Binary::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binary.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Binary::set_allocated_value(::std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binary.value) +} + +// string tag = 2; +inline void Binary::clear_tag() { + tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Binary::tag() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Binary.tag) + return tag_.GetNoArena(); +} +inline void Binary::set_tag(const ::std::string& value) { + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Binary.tag) +} +#if LANG_CXX11 +inline void Binary::set_tag(::std::string&& value) { + + tag_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binary.tag) +} +#endif +inline void Binary::set_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Binary.tag) +} +inline void Binary::set_tag(const char* value, size_t size) { + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binary.tag) +} +inline ::std::string* Binary::mutable_tag() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binary.tag) + return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Binary::release_tag() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binary.tag) + + return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Binary::set_allocated_tag(::std::string* tag) { + if (tag != nullptr) { + + } else { + + } + tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binary.tag) +} + +// ------------------------------------------------------------------- + +// Schema + +// string uri = 1; +inline void Schema::clear_uri() { + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Schema::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Schema.uri) + return uri_.GetNoArena(); +} +inline void Schema::set_uri(const ::std::string& value) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Schema.uri) +} +#if LANG_CXX11 +inline void Schema::set_uri(::std::string&& value) { + + uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Schema.uri) +} +#endif +inline void Schema::set_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Schema.uri) +} +inline void Schema::set_uri(const char* value, size_t size) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Schema.uri) +} +inline ::std::string* Schema::mutable_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Schema.uri) + return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Schema::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.Schema.uri) + + return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Schema::set_allocated_uri(::std::string* uri) { + if (uri != nullptr) { + + } else { + + } + uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Schema.uri) +} + +// .flyteidl.core.SchemaType type = 3; +inline bool Schema::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::SchemaType& Schema::type() const { + const ::flyteidl::core::SchemaType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.Schema.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SchemaType_default_instance_); +} +inline ::flyteidl::core::SchemaType* Schema::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.Schema.type) + + ::flyteidl::core::SchemaType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::SchemaType* Schema::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SchemaType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Schema.type) + return type_; +} +inline void Schema::set_allocated_type(::flyteidl::core::SchemaType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Schema.type) +} + +// ------------------------------------------------------------------- + +// Union + +// .flyteidl.core.Literal value = 1; +inline bool Union::has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} +inline void Union::clear_value() { + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +inline const ::flyteidl::core::Literal& Union::value() const { + const ::flyteidl::core::Literal* p = value_; + // @@protoc_insertion_point(field_get:flyteidl.core.Union.value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* Union::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.Union.value) + + ::flyteidl::core::Literal* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flyteidl::core::Literal* Union::mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); + value_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Union.value) + return value_; +} +inline void Union::set_allocated_value(::flyteidl::core::Literal* value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete value_; + } + if (value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Union.value) +} + +// .flyteidl.core.LiteralType type = 2; +inline bool Union::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::LiteralType& Union::type() const { + const ::flyteidl::core::LiteralType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.Union.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* Union::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.Union.type) + + ::flyteidl::core::LiteralType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* Union::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Union.type) + return type_; +} +inline void Union::set_allocated_type(::flyteidl::core::LiteralType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Union.type) +} + +// ------------------------------------------------------------------- + +// StructuredDatasetMetadata + +// .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; +inline bool StructuredDatasetMetadata::has_structured_dataset_type() const { + return this != internal_default_instance() && structured_dataset_type_ != nullptr; +} +inline const ::flyteidl::core::StructuredDatasetType& StructuredDatasetMetadata::structured_dataset_type() const { + const ::flyteidl::core::StructuredDatasetType* p = structured_dataset_type_; + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_StructuredDatasetType_default_instance_); +} +inline ::flyteidl::core::StructuredDatasetType* StructuredDatasetMetadata::release_structured_dataset_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) + + ::flyteidl::core::StructuredDatasetType* temp = structured_dataset_type_; + structured_dataset_type_ = nullptr; + return temp; +} +inline ::flyteidl::core::StructuredDatasetType* StructuredDatasetMetadata::mutable_structured_dataset_type() { + + if (structured_dataset_type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::StructuredDatasetType>(GetArenaNoVirtual()); + structured_dataset_type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) + return structured_dataset_type_; +} +inline void StructuredDatasetMetadata::set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(structured_dataset_type_); + } + if (structured_dataset_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + structured_dataset_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, structured_dataset_type, submessage_arena); + } + + } else { + + } + structured_dataset_type_ = structured_dataset_type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) +} + +// ------------------------------------------------------------------- + +// StructuredDataset + +// string uri = 1; +inline void StructuredDataset::clear_uri() { + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StructuredDataset::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDataset.uri) + return uri_.GetNoArena(); +} +inline void StructuredDataset::set_uri(const ::std::string& value) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDataset.uri) +} +#if LANG_CXX11 +inline void StructuredDataset::set_uri(::std::string&& value) { + + uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDataset.uri) +} +#endif +inline void StructuredDataset::set_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDataset.uri) +} +inline void StructuredDataset::set_uri(const char* value, size_t size) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDataset.uri) +} +inline ::std::string* StructuredDataset::mutable_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDataset.uri) + return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StructuredDataset::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDataset.uri) + + return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StructuredDataset::set_allocated_uri(::std::string* uri) { + if (uri != nullptr) { + + } else { + + } + uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDataset.uri) +} + +// .flyteidl.core.StructuredDatasetMetadata metadata = 2; +inline bool StructuredDataset::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void StructuredDataset::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::core::StructuredDatasetMetadata& StructuredDataset::metadata() const { + const ::flyteidl::core::StructuredDatasetMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDataset.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_StructuredDatasetMetadata_default_instance_); +} +inline ::flyteidl::core::StructuredDatasetMetadata* StructuredDataset::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDataset.metadata) + + ::flyteidl::core::StructuredDatasetMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::core::StructuredDatasetMetadata* StructuredDataset::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::StructuredDatasetMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDataset.metadata) + return metadata_; +} +inline void StructuredDataset::set_allocated_metadata(::flyteidl::core::StructuredDatasetMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDataset.metadata) +} + +// ------------------------------------------------------------------- + +// Scalar + +// .flyteidl.core.Primitive primitive = 1; +inline bool Scalar::has_primitive() const { + return value_case() == kPrimitive; +} +inline void Scalar::set_has_primitive() { + _oneof_case_[0] = kPrimitive; +} +inline void Scalar::clear_primitive() { + if (has_primitive()) { + delete value_.primitive_; + clear_has_value(); + } +} +inline ::flyteidl::core::Primitive* Scalar::release_primitive() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.primitive) + if (has_primitive()) { + clear_has_value(); + ::flyteidl::core::Primitive* temp = value_.primitive_; + value_.primitive_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Primitive& Scalar::primitive() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.primitive) + return has_primitive() + ? *value_.primitive_ + : *reinterpret_cast< ::flyteidl::core::Primitive*>(&::flyteidl::core::_Primitive_default_instance_); +} +inline ::flyteidl::core::Primitive* Scalar::mutable_primitive() { + if (!has_primitive()) { + clear_value(); + set_has_primitive(); + value_.primitive_ = CreateMaybeMessage< ::flyteidl::core::Primitive >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.primitive) + return value_.primitive_; +} + +// .flyteidl.core.Blob blob = 2; +inline bool Scalar::has_blob() const { + return value_case() == kBlob; +} +inline void Scalar::set_has_blob() { + _oneof_case_[0] = kBlob; +} +inline void Scalar::clear_blob() { + if (has_blob()) { + delete value_.blob_; + clear_has_value(); + } +} +inline ::flyteidl::core::Blob* Scalar::release_blob() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.blob) + if (has_blob()) { + clear_has_value(); + ::flyteidl::core::Blob* temp = value_.blob_; + value_.blob_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Blob& Scalar::blob() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.blob) + return has_blob() + ? *value_.blob_ + : *reinterpret_cast< ::flyteidl::core::Blob*>(&::flyteidl::core::_Blob_default_instance_); +} +inline ::flyteidl::core::Blob* Scalar::mutable_blob() { + if (!has_blob()) { + clear_value(); + set_has_blob(); + value_.blob_ = CreateMaybeMessage< ::flyteidl::core::Blob >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.blob) + return value_.blob_; +} + +// .flyteidl.core.Binary binary = 3; +inline bool Scalar::has_binary() const { + return value_case() == kBinary; +} +inline void Scalar::set_has_binary() { + _oneof_case_[0] = kBinary; +} +inline void Scalar::clear_binary() { + if (has_binary()) { + delete value_.binary_; + clear_has_value(); + } +} +inline ::flyteidl::core::Binary* Scalar::release_binary() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.binary) + if (has_binary()) { + clear_has_value(); + ::flyteidl::core::Binary* temp = value_.binary_; + value_.binary_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Binary& Scalar::binary() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.binary) + return has_binary() + ? *value_.binary_ + : *reinterpret_cast< ::flyteidl::core::Binary*>(&::flyteidl::core::_Binary_default_instance_); +} +inline ::flyteidl::core::Binary* Scalar::mutable_binary() { + if (!has_binary()) { + clear_value(); + set_has_binary(); + value_.binary_ = CreateMaybeMessage< ::flyteidl::core::Binary >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.binary) + return value_.binary_; +} + +// .flyteidl.core.Schema schema = 4; +inline bool Scalar::has_schema() const { + return value_case() == kSchema; +} +inline void Scalar::set_has_schema() { + _oneof_case_[0] = kSchema; +} +inline void Scalar::clear_schema() { + if (has_schema()) { + delete value_.schema_; + clear_has_value(); + } +} +inline ::flyteidl::core::Schema* Scalar::release_schema() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.schema) + if (has_schema()) { + clear_has_value(); + ::flyteidl::core::Schema* temp = value_.schema_; + value_.schema_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Schema& Scalar::schema() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.schema) + return has_schema() + ? *value_.schema_ + : *reinterpret_cast< ::flyteidl::core::Schema*>(&::flyteidl::core::_Schema_default_instance_); +} +inline ::flyteidl::core::Schema* Scalar::mutable_schema() { + if (!has_schema()) { + clear_value(); + set_has_schema(); + value_.schema_ = CreateMaybeMessage< ::flyteidl::core::Schema >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.schema) + return value_.schema_; +} + +// .flyteidl.core.Void none_type = 5; +inline bool Scalar::has_none_type() const { + return value_case() == kNoneType; +} +inline void Scalar::set_has_none_type() { + _oneof_case_[0] = kNoneType; +} +inline void Scalar::clear_none_type() { + if (has_none_type()) { + delete value_.none_type_; + clear_has_value(); + } +} +inline ::flyteidl::core::Void* Scalar::release_none_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.none_type) + if (has_none_type()) { + clear_has_value(); + ::flyteidl::core::Void* temp = value_.none_type_; + value_.none_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Void& Scalar::none_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.none_type) + return has_none_type() + ? *value_.none_type_ + : *reinterpret_cast< ::flyteidl::core::Void*>(&::flyteidl::core::_Void_default_instance_); +} +inline ::flyteidl::core::Void* Scalar::mutable_none_type() { + if (!has_none_type()) { + clear_value(); + set_has_none_type(); + value_.none_type_ = CreateMaybeMessage< ::flyteidl::core::Void >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.none_type) + return value_.none_type_; +} + +// .flyteidl.core.Error error = 6; +inline bool Scalar::has_error() const { + return value_case() == kError; +} +inline void Scalar::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::Error* Scalar::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.error) + if (has_error()) { + clear_has_value(); + ::flyteidl::core::Error* temp = value_.error_; + value_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Error& Scalar::error() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.error) + return has_error() + ? *value_.error_ + : *reinterpret_cast< ::flyteidl::core::Error*>(&::flyteidl::core::_Error_default_instance_); +} +inline ::flyteidl::core::Error* Scalar::mutable_error() { + if (!has_error()) { + clear_value(); + set_has_error(); + value_.error_ = CreateMaybeMessage< ::flyteidl::core::Error >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.error) + return value_.error_; +} + +// .google.protobuf.Struct generic = 7; +inline bool Scalar::has_generic() const { + return value_case() == kGeneric; +} +inline void Scalar::set_has_generic() { + _oneof_case_[0] = kGeneric; +} +inline ::google::protobuf::Struct* Scalar::release_generic() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.generic) + if (has_generic()) { + clear_has_value(); + ::google::protobuf::Struct* temp = value_.generic_; + value_.generic_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::google::protobuf::Struct& Scalar::generic() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.generic) + return has_generic() + ? *value_.generic_ + : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* Scalar::mutable_generic() { + if (!has_generic()) { + clear_value(); + set_has_generic(); + value_.generic_ = CreateMaybeMessage< ::google::protobuf::Struct >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.generic) + return value_.generic_; +} + +// .flyteidl.core.StructuredDataset structured_dataset = 8; +inline bool Scalar::has_structured_dataset() const { + return value_case() == kStructuredDataset; +} +inline void Scalar::set_has_structured_dataset() { + _oneof_case_[0] = kStructuredDataset; +} +inline void Scalar::clear_structured_dataset() { + if (has_structured_dataset()) { + delete value_.structured_dataset_; + clear_has_value(); + } +} +inline ::flyteidl::core::StructuredDataset* Scalar::release_structured_dataset() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.structured_dataset) + if (has_structured_dataset()) { + clear_has_value(); + ::flyteidl::core::StructuredDataset* temp = value_.structured_dataset_; + value_.structured_dataset_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::StructuredDataset& Scalar::structured_dataset() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.structured_dataset) + return has_structured_dataset() + ? *value_.structured_dataset_ + : *reinterpret_cast< ::flyteidl::core::StructuredDataset*>(&::flyteidl::core::_StructuredDataset_default_instance_); +} +inline ::flyteidl::core::StructuredDataset* Scalar::mutable_structured_dataset() { + if (!has_structured_dataset()) { + clear_value(); + set_has_structured_dataset(); + value_.structured_dataset_ = CreateMaybeMessage< ::flyteidl::core::StructuredDataset >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.structured_dataset) + return value_.structured_dataset_; +} + +// .flyteidl.core.Union union = 9; +inline bool Scalar::has_union_() const { + return value_case() == kUnion; +} +inline void Scalar::set_has_union_() { + _oneof_case_[0] = kUnion; +} +inline void Scalar::clear_union_() { + if (has_union_()) { + delete value_.union__; + clear_has_value(); + } +} +inline ::flyteidl::core::Union* Scalar::release_union_() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.union) + if (has_union_()) { + clear_has_value(); + ::flyteidl::core::Union* temp = value_.union__; + value_.union__ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Union& Scalar::union_() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.union) + return has_union_() + ? *value_.union__ + : *reinterpret_cast< ::flyteidl::core::Union*>(&::flyteidl::core::_Union_default_instance_); +} +inline ::flyteidl::core::Union* Scalar::mutable_union_() { + if (!has_union_()) { + clear_value(); + set_has_union_(); + value_.union__ = CreateMaybeMessage< ::flyteidl::core::Union >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.union) + return value_.union__; +} + +inline bool Scalar::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void Scalar::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline Scalar::ValueCase Scalar::value_case() const { + return Scalar::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Literal + +// .flyteidl.core.Scalar scalar = 1; +inline bool Literal::has_scalar() const { + return value_case() == kScalar; +} +inline void Literal::set_has_scalar() { + _oneof_case_[0] = kScalar; +} +inline void Literal::clear_scalar() { + if (has_scalar()) { + delete value_.scalar_; + clear_has_value(); + } +} +inline ::flyteidl::core::Scalar* Literal::release_scalar() { + // @@protoc_insertion_point(field_release:flyteidl.core.Literal.scalar) + if (has_scalar()) { + clear_has_value(); + ::flyteidl::core::Scalar* temp = value_.scalar_; + value_.scalar_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Scalar& Literal::scalar() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Literal.scalar) + return has_scalar() + ? *value_.scalar_ + : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); +} +inline ::flyteidl::core::Scalar* Literal::mutable_scalar() { + if (!has_scalar()) { + clear_value(); + set_has_scalar(); + value_.scalar_ = CreateMaybeMessage< ::flyteidl::core::Scalar >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.scalar) + return value_.scalar_; +} + +// .flyteidl.core.LiteralCollection collection = 2; +inline bool Literal::has_collection() const { + return value_case() == kCollection; +} +inline void Literal::set_has_collection() { + _oneof_case_[0] = kCollection; +} +inline void Literal::clear_collection() { + if (has_collection()) { + delete value_.collection_; + clear_has_value(); + } +} +inline ::flyteidl::core::LiteralCollection* Literal::release_collection() { + // @@protoc_insertion_point(field_release:flyteidl.core.Literal.collection) + if (has_collection()) { + clear_has_value(); + ::flyteidl::core::LiteralCollection* temp = value_.collection_; + value_.collection_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralCollection& Literal::collection() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Literal.collection) + return has_collection() + ? *value_.collection_ + : *reinterpret_cast< ::flyteidl::core::LiteralCollection*>(&::flyteidl::core::_LiteralCollection_default_instance_); +} +inline ::flyteidl::core::LiteralCollection* Literal::mutable_collection() { + if (!has_collection()) { + clear_value(); + set_has_collection(); + value_.collection_ = CreateMaybeMessage< ::flyteidl::core::LiteralCollection >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.collection) + return value_.collection_; +} + +// .flyteidl.core.LiteralMap map = 3; +inline bool Literal::has_map() const { + return value_case() == kMap; +} +inline void Literal::set_has_map() { + _oneof_case_[0] = kMap; +} +inline void Literal::clear_map() { + if (has_map()) { + delete value_.map_; + clear_has_value(); + } +} +inline ::flyteidl::core::LiteralMap* Literal::release_map() { + // @@protoc_insertion_point(field_release:flyteidl.core.Literal.map) + if (has_map()) { + clear_has_value(); + ::flyteidl::core::LiteralMap* temp = value_.map_; + value_.map_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& Literal::map() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Literal.map) + return has_map() + ? *value_.map_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* Literal::mutable_map() { + if (!has_map()) { + clear_value(); + set_has_map(); + value_.map_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.map) + return value_.map_; +} + +// string hash = 4; +inline void Literal::clear_hash() { + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Literal::hash() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Literal.hash) + return hash_.GetNoArena(); +} +inline void Literal::set_hash(const ::std::string& value) { + + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Literal.hash) +} +#if LANG_CXX11 +inline void Literal::set_hash(::std::string&& value) { + + hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Literal.hash) +} +#endif +inline void Literal::set_hash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Literal.hash) +} +inline void Literal::set_hash(const char* value, size_t size) { + + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Literal.hash) +} +inline ::std::string* Literal::mutable_hash() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.hash) + return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Literal::release_hash() { + // @@protoc_insertion_point(field_release:flyteidl.core.Literal.hash) + + return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Literal::set_allocated_hash(::std::string* hash) { + if (hash != nullptr) { + + } else { + + } + hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.hash) +} + +inline bool Literal::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void Literal::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline Literal::ValueCase Literal::value_case() const { + return Literal::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// LiteralCollection + +// repeated .flyteidl.core.Literal literals = 1; +inline int LiteralCollection::literals_size() const { + return literals_.size(); +} +inline void LiteralCollection::clear_literals() { + literals_.Clear(); +} +inline ::flyteidl::core::Literal* LiteralCollection::mutable_literals(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralCollection.literals) + return literals_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >* +LiteralCollection::mutable_literals() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.LiteralCollection.literals) + return &literals_; +} +inline const ::flyteidl::core::Literal& LiteralCollection::literals(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralCollection.literals) + return literals_.Get(index); +} +inline ::flyteidl::core::Literal* LiteralCollection::add_literals() { + // @@protoc_insertion_point(field_add:flyteidl.core.LiteralCollection.literals) + return literals_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >& +LiteralCollection::literals() const { + // @@protoc_insertion_point(field_list:flyteidl.core.LiteralCollection.literals) + return literals_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// LiteralMap + +// map literals = 1; +inline int LiteralMap::literals_size() const { + return literals_.size(); +} +inline void LiteralMap::clear_literals() { + literals_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >& +LiteralMap::literals() const { + // @@protoc_insertion_point(field_map:flyteidl.core.LiteralMap.literals) + return literals_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >* +LiteralMap::mutable_literals() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.LiteralMap.literals) + return literals_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// BindingDataCollection + +// repeated .flyteidl.core.BindingData bindings = 1; +inline int BindingDataCollection::bindings_size() const { + return bindings_.size(); +} +inline void BindingDataCollection::clear_bindings() { + bindings_.Clear(); +} +inline ::flyteidl::core::BindingData* BindingDataCollection::mutable_bindings(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingDataCollection.bindings) + return bindings_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >* +BindingDataCollection::mutable_bindings() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.BindingDataCollection.bindings) + return &bindings_; +} +inline const ::flyteidl::core::BindingData& BindingDataCollection::bindings(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingDataCollection.bindings) + return bindings_.Get(index); +} +inline ::flyteidl::core::BindingData* BindingDataCollection::add_bindings() { + // @@protoc_insertion_point(field_add:flyteidl.core.BindingDataCollection.bindings) + return bindings_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >& +BindingDataCollection::bindings() const { + // @@protoc_insertion_point(field_list:flyteidl.core.BindingDataCollection.bindings) + return bindings_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// BindingDataMap + +// map bindings = 1; +inline int BindingDataMap::bindings_size() const { + return bindings_.size(); +} +inline void BindingDataMap::clear_bindings() { + bindings_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >& +BindingDataMap::bindings() const { + // @@protoc_insertion_point(field_map:flyteidl.core.BindingDataMap.bindings) + return bindings_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >* +BindingDataMap::mutable_bindings() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.BindingDataMap.bindings) + return bindings_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// UnionInfo + +// .flyteidl.core.LiteralType targetType = 1; +inline bool UnionInfo::has_targettype() const { + return this != internal_default_instance() && targettype_ != nullptr; +} +inline const ::flyteidl::core::LiteralType& UnionInfo::targettype() const { + const ::flyteidl::core::LiteralType* p = targettype_; + // @@protoc_insertion_point(field_get:flyteidl.core.UnionInfo.targetType) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* UnionInfo::release_targettype() { + // @@protoc_insertion_point(field_release:flyteidl.core.UnionInfo.targetType) + + ::flyteidl::core::LiteralType* temp = targettype_; + targettype_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* UnionInfo::mutable_targettype() { + + if (targettype_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + targettype_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.UnionInfo.targetType) + return targettype_; +} +inline void UnionInfo::set_allocated_targettype(::flyteidl::core::LiteralType* targettype) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(targettype_); + } + if (targettype) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + targettype = ::google::protobuf::internal::GetOwnedMessage( + message_arena, targettype, submessage_arena); + } + + } else { + + } + targettype_ = targettype; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.UnionInfo.targetType) +} + +// ------------------------------------------------------------------- + +// BindingData + +// .flyteidl.core.Scalar scalar = 1; +inline bool BindingData::has_scalar() const { + return value_case() == kScalar; +} +inline void BindingData::set_has_scalar() { + _oneof_case_[0] = kScalar; +} +inline void BindingData::clear_scalar() { + if (has_scalar()) { + delete value_.scalar_; + clear_has_value(); + } +} +inline ::flyteidl::core::Scalar* BindingData::release_scalar() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.scalar) + if (has_scalar()) { + clear_has_value(); + ::flyteidl::core::Scalar* temp = value_.scalar_; + value_.scalar_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Scalar& BindingData::scalar() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.scalar) + return has_scalar() + ? *value_.scalar_ + : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); +} +inline ::flyteidl::core::Scalar* BindingData::mutable_scalar() { + if (!has_scalar()) { + clear_value(); + set_has_scalar(); + value_.scalar_ = CreateMaybeMessage< ::flyteidl::core::Scalar >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.scalar) + return value_.scalar_; +} + +// .flyteidl.core.BindingDataCollection collection = 2; +inline bool BindingData::has_collection() const { + return value_case() == kCollection; +} +inline void BindingData::set_has_collection() { + _oneof_case_[0] = kCollection; +} +inline void BindingData::clear_collection() { + if (has_collection()) { + delete value_.collection_; + clear_has_value(); + } +} +inline ::flyteidl::core::BindingDataCollection* BindingData::release_collection() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.collection) + if (has_collection()) { + clear_has_value(); + ::flyteidl::core::BindingDataCollection* temp = value_.collection_; + value_.collection_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::BindingDataCollection& BindingData::collection() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.collection) + return has_collection() + ? *value_.collection_ + : *reinterpret_cast< ::flyteidl::core::BindingDataCollection*>(&::flyteidl::core::_BindingDataCollection_default_instance_); +} +inline ::flyteidl::core::BindingDataCollection* BindingData::mutable_collection() { + if (!has_collection()) { + clear_value(); + set_has_collection(); + value_.collection_ = CreateMaybeMessage< ::flyteidl::core::BindingDataCollection >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.collection) + return value_.collection_; +} + +// .flyteidl.core.OutputReference promise = 3; +inline bool BindingData::has_promise() const { + return value_case() == kPromise; +} +inline void BindingData::set_has_promise() { + _oneof_case_[0] = kPromise; +} +inline ::flyteidl::core::OutputReference* BindingData::release_promise() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.promise) + if (has_promise()) { + clear_has_value(); + ::flyteidl::core::OutputReference* temp = value_.promise_; + value_.promise_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::OutputReference& BindingData::promise() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.promise) + return has_promise() + ? *value_.promise_ + : *reinterpret_cast< ::flyteidl::core::OutputReference*>(&::flyteidl::core::_OutputReference_default_instance_); +} +inline ::flyteidl::core::OutputReference* BindingData::mutable_promise() { + if (!has_promise()) { + clear_value(); + set_has_promise(); + value_.promise_ = CreateMaybeMessage< ::flyteidl::core::OutputReference >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.promise) + return value_.promise_; +} + +// .flyteidl.core.BindingDataMap map = 4; +inline bool BindingData::has_map() const { + return value_case() == kMap; +} +inline void BindingData::set_has_map() { + _oneof_case_[0] = kMap; +} +inline void BindingData::clear_map() { + if (has_map()) { + delete value_.map_; + clear_has_value(); + } +} +inline ::flyteidl::core::BindingDataMap* BindingData::release_map() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.map) + if (has_map()) { + clear_has_value(); + ::flyteidl::core::BindingDataMap* temp = value_.map_; + value_.map_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::BindingDataMap& BindingData::map() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.map) + return has_map() + ? *value_.map_ + : *reinterpret_cast< ::flyteidl::core::BindingDataMap*>(&::flyteidl::core::_BindingDataMap_default_instance_); +} +inline ::flyteidl::core::BindingDataMap* BindingData::mutable_map() { + if (!has_map()) { + clear_value(); + set_has_map(); + value_.map_ = CreateMaybeMessage< ::flyteidl::core::BindingDataMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.map) + return value_.map_; +} + +// .flyteidl.core.UnionInfo union = 5; +inline bool BindingData::has_union_() const { + return this != internal_default_instance() && union__ != nullptr; +} +inline void BindingData::clear_union_() { + if (GetArenaNoVirtual() == nullptr && union__ != nullptr) { + delete union__; + } + union__ = nullptr; +} +inline const ::flyteidl::core::UnionInfo& BindingData::union_() const { + const ::flyteidl::core::UnionInfo* p = union__; + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.union) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_UnionInfo_default_instance_); +} +inline ::flyteidl::core::UnionInfo* BindingData::release_union_() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.union) + + ::flyteidl::core::UnionInfo* temp = union__; + union__ = nullptr; + return temp; +} +inline ::flyteidl::core::UnionInfo* BindingData::mutable_union_() { + + if (union__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::UnionInfo>(GetArenaNoVirtual()); + union__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.union) + return union__; +} +inline void BindingData::set_allocated_union_(::flyteidl::core::UnionInfo* union_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete union__; + } + if (union_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + union_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, union_, submessage_arena); + } + + } else { + + } + union__ = union_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.union) +} + +inline bool BindingData::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void BindingData::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline BindingData::ValueCase BindingData::value_case() const { + return BindingData::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Binding + +// string var = 1; +inline void Binding::clear_var() { + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Binding::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Binding.var) + return var_.GetNoArena(); +} +inline void Binding::set_var(const ::std::string& value) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Binding.var) +} +#if LANG_CXX11 +inline void Binding::set_var(::std::string&& value) { + + var_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binding.var) +} +#endif +inline void Binding::set_var(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Binding.var) +} +inline void Binding::set_var(const char* value, size_t size) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binding.var) +} +inline ::std::string* Binding::mutable_var() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binding.var) + return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Binding::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binding.var) + + return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Binding::set_allocated_var(::std::string* var) { + if (var != nullptr) { + + } else { + + } + var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binding.var) +} + +// .flyteidl.core.BindingData binding = 2; +inline bool Binding::has_binding() const { + return this != internal_default_instance() && binding_ != nullptr; +} +inline void Binding::clear_binding() { + if (GetArenaNoVirtual() == nullptr && binding_ != nullptr) { + delete binding_; + } + binding_ = nullptr; +} +inline const ::flyteidl::core::BindingData& Binding::binding() const { + const ::flyteidl::core::BindingData* p = binding_; + // @@protoc_insertion_point(field_get:flyteidl.core.Binding.binding) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_BindingData_default_instance_); +} +inline ::flyteidl::core::BindingData* Binding::release_binding() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binding.binding) + + ::flyteidl::core::BindingData* temp = binding_; + binding_ = nullptr; + return temp; +} +inline ::flyteidl::core::BindingData* Binding::mutable_binding() { + + if (binding_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::BindingData>(GetArenaNoVirtual()); + binding_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binding.binding) + return binding_; +} +inline void Binding::set_allocated_binding(::flyteidl::core::BindingData* binding) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete binding_; + } + if (binding) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + binding = ::google::protobuf::internal::GetOwnedMessage( + message_arena, binding, submessage_arena); + } + + } else { + + } + binding_ = binding; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binding.binding) +} + +// ------------------------------------------------------------------- + +// KeyValuePair + +// string key = 1; +inline void KeyValuePair::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& KeyValuePair::key() const { + // @@protoc_insertion_point(field_get:flyteidl.core.KeyValuePair.key) + return key_.GetNoArena(); +} +inline void KeyValuePair::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.KeyValuePair.key) +} +#if LANG_CXX11 +inline void KeyValuePair::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.KeyValuePair.key) +} +#endif +inline void KeyValuePair::set_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.KeyValuePair.key) +} +inline void KeyValuePair::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.KeyValuePair.key) +} +inline ::std::string* KeyValuePair::mutable_key() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.KeyValuePair.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_key() { + // @@protoc_insertion_point(field_release:flyteidl.core.KeyValuePair.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void KeyValuePair::set_allocated_key(::std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.KeyValuePair.key) +} + +// string value = 2; +inline void KeyValuePair::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& KeyValuePair::value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.KeyValuePair.value) + return value_.GetNoArena(); +} +inline void KeyValuePair::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.KeyValuePair.value) +} +#if LANG_CXX11 +inline void KeyValuePair::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.KeyValuePair.value) +} +#endif +inline void KeyValuePair::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.KeyValuePair.value) +} +inline void KeyValuePair::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.KeyValuePair.value) +} +inline ::std::string* KeyValuePair::mutable_value() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.KeyValuePair.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.KeyValuePair.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void KeyValuePair::set_allocated_value(::std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.KeyValuePair.value) +} + +// ------------------------------------------------------------------- + +// RetryStrategy + +// uint32 retries = 5; +inline void RetryStrategy::clear_retries() { + retries_ = 0u; +} +inline ::google::protobuf::uint32 RetryStrategy::retries() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RetryStrategy.retries) + return retries_; +} +inline void RetryStrategy::set_retries(::google::protobuf::uint32 value) { + + retries_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.RetryStrategy.retries) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fliterals_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.cc new file mode 100644 index 0000000000..e48bb1256e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/metrics.proto + +#include "flyteidl/core/metrics.pb.h" +#include "flyteidl/core/metrics.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.h new file mode 100644 index 0000000000..1bd56797b5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/metrics.proto +#ifndef GRPC_flyteidl_2fcore_2fmetrics_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fmetrics_2eproto__INCLUDED + +#include "flyteidl/core/metrics.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fmetrics_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc new file mode 100644 index 0000000000..703bda83c8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc @@ -0,0 +1,930 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/metrics.proto + +#include "flyteidl/core/metrics.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace core { +class SpanDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::WorkflowExecutionIdentifier* workflow_id_; + const ::flyteidl::core::NodeExecutionIdentifier* node_id_; + const ::flyteidl::core::TaskExecutionIdentifier* task_id_; + ::google::protobuf::internal::ArenaStringPtr operation_id_; +} _Span_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsSpan_flyteidl_2fcore_2fmetrics_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Span_default_instance_; + new (ptr) ::flyteidl::core::Span(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Span::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSpan_flyteidl_2fcore_2fmetrics_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fmetrics_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fmetrics_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fmetrics_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fmetrics_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, start_time_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, end_time_), + offsetof(::flyteidl::core::SpanDefaultTypeInternal, workflow_id_), + offsetof(::flyteidl::core::SpanDefaultTypeInternal, node_id_), + offsetof(::flyteidl::core::SpanDefaultTypeInternal, task_id_), + offsetof(::flyteidl::core::SpanDefaultTypeInternal, operation_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, spans_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, id_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Span)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Span_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fmetrics_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto, "flyteidl/core/metrics.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fmetrics_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto, 1, file_level_enum_descriptors_flyteidl_2fcore_2fmetrics_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fmetrics_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fmetrics_2eproto[] = + "\n\033flyteidl/core/metrics.proto\022\rflyteidl." + "core\032\036flyteidl/core/identifier.proto\032\037go" + "ogle/protobuf/timestamp.proto\"\337\002\n\004Span\022." + "\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Tim" + "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + "uf.Timestamp\022A\n\013workflow_id\030\003 \001(\0132*.flyt" + "eidl.core.WorkflowExecutionIdentifierH\000\022" + "9\n\007node_id\030\004 \001(\0132&.flyteidl.core.NodeExe" + "cutionIdentifierH\000\0229\n\007task_id\030\005 \001(\0132&.fl" + "yteidl.core.TaskExecutionIdentifierH\000\022\026\n" + "\014operation_id\030\006 \001(\tH\000\022\"\n\005spans\030\007 \003(\0132\023.f" + "lyteidl.core.SpanB\004\n\002idB6Z4github.com/fl" + "yteorg/flyteidl/gen/pb-go/flyteidl/coreb" + "\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fmetrics_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fmetrics_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fmetrics_2eproto, + "flyteidl/core/metrics.proto", &assign_descriptors_table_flyteidl_2fcore_2fmetrics_2eproto, 527, +}; + +void AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fmetrics_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fmetrics_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto(); return true; }(); +namespace flyteidl { +namespace core { + +// =================================================================== + +void Span::InitAsDefaultInstance() { + ::flyteidl::core::_Span_default_instance_._instance.get_mutable()->start_time_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::core::_Span_default_instance_._instance.get_mutable()->end_time_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::core::_Span_default_instance_.workflow_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::core::_Span_default_instance_.node_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::core::_Span_default_instance_.task_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); + ::flyteidl::core::_Span_default_instance_.operation_id_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class Span::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& start_time(const Span* msg); + static const ::google::protobuf::Timestamp& end_time(const Span* msg); + static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_id(const Span* msg); + static const ::flyteidl::core::NodeExecutionIdentifier& node_id(const Span* msg); + static const ::flyteidl::core::TaskExecutionIdentifier& task_id(const Span* msg); +}; + +const ::google::protobuf::Timestamp& +Span::HasBitSetters::start_time(const Span* msg) { + return *msg->start_time_; +} +const ::google::protobuf::Timestamp& +Span::HasBitSetters::end_time(const Span* msg) { + return *msg->end_time_; +} +const ::flyteidl::core::WorkflowExecutionIdentifier& +Span::HasBitSetters::workflow_id(const Span* msg) { + return *msg->id_.workflow_id_; +} +const ::flyteidl::core::NodeExecutionIdentifier& +Span::HasBitSetters::node_id(const Span* msg) { + return *msg->id_.node_id_; +} +const ::flyteidl::core::TaskExecutionIdentifier& +Span::HasBitSetters::task_id(const Span* msg) { + return *msg->id_.task_id_; +} +void Span::clear_start_time() { + if (GetArenaNoVirtual() == nullptr && start_time_ != nullptr) { + delete start_time_; + } + start_time_ = nullptr; +} +void Span::clear_end_time() { + if (GetArenaNoVirtual() == nullptr && end_time_ != nullptr) { + delete end_time_; + } + end_time_ = nullptr; +} +void Span::set_allocated_workflow_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_id(); + if (workflow_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_id, submessage_arena); + } + set_has_workflow_id(); + id_.workflow_id_ = workflow_id; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.workflow_id) +} +void Span::clear_workflow_id() { + if (has_workflow_id()) { + delete id_.workflow_id_; + clear_has_id(); + } +} +void Span::set_allocated_node_id(::flyteidl::core::NodeExecutionIdentifier* node_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_id(); + if (node_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + node_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node_id, submessage_arena); + } + set_has_node_id(); + id_.node_id_ = node_id; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.node_id) +} +void Span::clear_node_id() { + if (has_node_id()) { + delete id_.node_id_; + clear_has_id(); + } +} +void Span::set_allocated_task_id(::flyteidl::core::TaskExecutionIdentifier* task_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_id(); + if (task_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_id, submessage_arena); + } + set_has_task_id(); + id_.task_id_ = task_id; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.task_id) +} +void Span::clear_task_id() { + if (has_task_id()) { + delete id_.task_id_; + clear_has_id(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Span::kStartTimeFieldNumber; +const int Span::kEndTimeFieldNumber; +const int Span::kWorkflowIdFieldNumber; +const int Span::kNodeIdFieldNumber; +const int Span::kTaskIdFieldNumber; +const int Span::kOperationIdFieldNumber; +const int Span::kSpansFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Span::Span() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Span) +} +Span::Span(const Span& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + spans_(from.spans_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_start_time()) { + start_time_ = new ::google::protobuf::Timestamp(*from.start_time_); + } else { + start_time_ = nullptr; + } + if (from.has_end_time()) { + end_time_ = new ::google::protobuf::Timestamp(*from.end_time_); + } else { + end_time_ = nullptr; + } + clear_has_id(); + switch (from.id_case()) { + case kWorkflowId: { + mutable_workflow_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_id()); + break; + } + case kNodeId: { + mutable_node_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_id()); + break; + } + case kTaskId: { + mutable_task_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_id()); + break; + } + case kOperationId: { + set_operation_id(from.operation_id()); + break; + } + case ID_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Span) +} + +void Span::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base); + ::memset(&start_time_, 0, static_cast( + reinterpret_cast(&end_time_) - + reinterpret_cast(&start_time_)) + sizeof(end_time_)); + clear_has_id(); +} + +Span::~Span() { + // @@protoc_insertion_point(destructor:flyteidl.core.Span) + SharedDtor(); +} + +void Span::SharedDtor() { + if (this != internal_default_instance()) delete start_time_; + if (this != internal_default_instance()) delete end_time_; + if (has_id()) { + clear_id(); + } +} + +void Span::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Span& Span::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base); + return *internal_default_instance(); +} + + +void Span::clear_id() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Span) + switch (id_case()) { + case kWorkflowId: { + delete id_.workflow_id_; + break; + } + case kNodeId: { + delete id_.node_id_; + break; + } + case kTaskId: { + delete id_.task_id_; + break; + } + case kOperationId: { + id_.operation_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case ID_NOT_SET: { + break; + } + } + _oneof_case_[0] = ID_NOT_SET; +} + + +void Span::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Span) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + spans_.Clear(); + if (GetArenaNoVirtual() == nullptr && start_time_ != nullptr) { + delete start_time_; + } + start_time_ = nullptr; + if (GetArenaNoVirtual() == nullptr && end_time_ != nullptr) { + delete end_time_; + } + end_time_ = nullptr; + clear_id(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Span::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .google.protobuf.Timestamp start_time = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_start_time(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp end_time = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_end_time(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_workflow_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.NodeExecutionIdentifier node_id = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_node_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskExecutionIdentifier task_id = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_task_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string operation_id = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Span.operation_id"); + object = msg->mutable_operation_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyteidl.core.Span spans = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Span::_InternalParse; + object = msg->add_spans(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 58 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Span::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Span) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .google.protobuf.Timestamp start_time = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_start_time())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp end_time = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_end_time())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier node_id = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskExecutionIdentifier task_id = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_id())); + } else { + goto handle_unusual; + } + break; + } + + // string operation_id = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_operation_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->operation_id().data(), static_cast(this->operation_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Span.operation_id")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Span spans = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_spans())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Span) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Span) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Span::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Span) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp start_time = 1; + if (this->has_start_time()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::start_time(this), output); + } + + // .google.protobuf.Timestamp end_time = 2; + if (this->has_end_time()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::end_time(this), output); + } + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + if (has_workflow_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::workflow_id(this), output); + } + + // .flyteidl.core.NodeExecutionIdentifier node_id = 4; + if (has_node_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::node_id(this), output); + } + + // .flyteidl.core.TaskExecutionIdentifier task_id = 5; + if (has_task_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::task_id(this), output); + } + + // string operation_id = 6; + if (has_operation_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->operation_id().data(), static_cast(this->operation_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Span.operation_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->operation_id(), output); + } + + // repeated .flyteidl.core.Span spans = 7; + for (unsigned int i = 0, + n = static_cast(this->spans_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, + this->spans(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Span) +} + +::google::protobuf::uint8* Span::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Span) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Timestamp start_time = 1; + if (this->has_start_time()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::start_time(this), target); + } + + // .google.protobuf.Timestamp end_time = 2; + if (this->has_end_time()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::end_time(this), target); + } + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + if (has_workflow_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::workflow_id(this), target); + } + + // .flyteidl.core.NodeExecutionIdentifier node_id = 4; + if (has_node_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::node_id(this), target); + } + + // .flyteidl.core.TaskExecutionIdentifier task_id = 5; + if (has_task_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::task_id(this), target); + } + + // string operation_id = 6; + if (has_operation_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->operation_id().data(), static_cast(this->operation_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Span.operation_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->operation_id(), target); + } + + // repeated .flyteidl.core.Span spans = 7; + for (unsigned int i = 0, + n = static_cast(this->spans_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->spans(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Span) + return target; +} + +size_t Span::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Span) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.Span spans = 7; + { + unsigned int count = static_cast(this->spans_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->spans(static_cast(i))); + } + } + + // .google.protobuf.Timestamp start_time = 1; + if (this->has_start_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *start_time_); + } + + // .google.protobuf.Timestamp end_time = 2; + if (this->has_end_time()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *end_time_); + } + + switch (id_case()) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + case kWorkflowId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_.workflow_id_); + break; + } + // .flyteidl.core.NodeExecutionIdentifier node_id = 4; + case kNodeId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_.node_id_); + break; + } + // .flyteidl.core.TaskExecutionIdentifier task_id = 5; + case kTaskId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_.task_id_); + break; + } + // string operation_id = 6; + case kOperationId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->operation_id()); + break; + } + case ID_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Span::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Span) + GOOGLE_DCHECK_NE(&from, this); + const Span* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Span) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Span) + MergeFrom(*source); + } +} + +void Span::MergeFrom(const Span& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Span) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + spans_.MergeFrom(from.spans_); + if (from.has_start_time()) { + mutable_start_time()->::google::protobuf::Timestamp::MergeFrom(from.start_time()); + } + if (from.has_end_time()) { + mutable_end_time()->::google::protobuf::Timestamp::MergeFrom(from.end_time()); + } + switch (from.id_case()) { + case kWorkflowId: { + mutable_workflow_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_id()); + break; + } + case kNodeId: { + mutable_node_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_id()); + break; + } + case kTaskId: { + mutable_task_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_id()); + break; + } + case kOperationId: { + set_operation_id(from.operation_id()); + break; + } + case ID_NOT_SET: { + break; + } + } +} + +void Span::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Span) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Span::CopyFrom(const Span& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Span) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Span::IsInitialized() const { + return true; +} + +void Span::Swap(Span* other) { + if (other == this) return; + InternalSwap(other); +} +void Span::InternalSwap(Span* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&spans_)->InternalSwap(CastToBase(&other->spans_)); + swap(start_time_, other->start_time_); + swap(end_time_, other->end_time_); + swap(id_, other->id_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Span::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fmetrics_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::Span* Arena::CreateMaybeMessage< ::flyteidl::core::Span >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Span >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h new file mode 100644 index 0000000000..c19d6f944f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h @@ -0,0 +1,627 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/metrics.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fmetrics_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fmetrics_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/identifier.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fmetrics_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto(); +namespace flyteidl { +namespace core { +class Span; +class SpanDefaultTypeInternal; +extern SpanDefaultTypeInternal _Span_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::Span* Arena::CreateMaybeMessage<::flyteidl::core::Span>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +// =================================================================== + +class Span final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Span) */ { + public: + Span(); + virtual ~Span(); + + Span(const Span& from); + + inline Span& operator=(const Span& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Span(Span&& from) noexcept + : Span() { + *this = ::std::move(from); + } + + inline Span& operator=(Span&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Span& default_instance(); + + enum IdCase { + kWorkflowId = 3, + kNodeId = 4, + kTaskId = 5, + kOperationId = 6, + ID_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Span* internal_default_instance() { + return reinterpret_cast( + &_Span_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Span* other); + friend void swap(Span& a, Span& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Span* New() const final { + return CreateMaybeMessage(nullptr); + } + + Span* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Span& from); + void MergeFrom(const Span& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Span* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Span spans = 7; + int spans_size() const; + void clear_spans(); + static const int kSpansFieldNumber = 7; + ::flyteidl::core::Span* mutable_spans(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >* + mutable_spans(); + const ::flyteidl::core::Span& spans(int index) const; + ::flyteidl::core::Span* add_spans(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >& + spans() const; + + // .google.protobuf.Timestamp start_time = 1; + bool has_start_time() const; + void clear_start_time(); + static const int kStartTimeFieldNumber = 1; + const ::google::protobuf::Timestamp& start_time() const; + ::google::protobuf::Timestamp* release_start_time(); + ::google::protobuf::Timestamp* mutable_start_time(); + void set_allocated_start_time(::google::protobuf::Timestamp* start_time); + + // .google.protobuf.Timestamp end_time = 2; + bool has_end_time() const; + void clear_end_time(); + static const int kEndTimeFieldNumber = 2; + const ::google::protobuf::Timestamp& end_time() const; + ::google::protobuf::Timestamp* release_end_time(); + ::google::protobuf::Timestamp* mutable_end_time(); + void set_allocated_end_time(::google::protobuf::Timestamp* end_time); + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + bool has_workflow_id() const; + void clear_workflow_id(); + static const int kWorkflowIdFieldNumber = 3; + const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_id(); + void set_allocated_workflow_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_id); + + // .flyteidl.core.NodeExecutionIdentifier node_id = 4; + bool has_node_id() const; + void clear_node_id(); + static const int kNodeIdFieldNumber = 4; + const ::flyteidl::core::NodeExecutionIdentifier& node_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_node_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_node_id(); + void set_allocated_node_id(::flyteidl::core::NodeExecutionIdentifier* node_id); + + // .flyteidl.core.TaskExecutionIdentifier task_id = 5; + bool has_task_id() const; + void clear_task_id(); + static const int kTaskIdFieldNumber = 5; + const ::flyteidl::core::TaskExecutionIdentifier& task_id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_task_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_task_id(); + void set_allocated_task_id(::flyteidl::core::TaskExecutionIdentifier* task_id); + + // string operation_id = 6; + private: + bool has_operation_id() const; + public: + void clear_operation_id(); + static const int kOperationIdFieldNumber = 6; + const ::std::string& operation_id() const; + void set_operation_id(const ::std::string& value); + #if LANG_CXX11 + void set_operation_id(::std::string&& value); + #endif + void set_operation_id(const char* value); + void set_operation_id(const char* value, size_t size); + ::std::string* mutable_operation_id(); + ::std::string* release_operation_id(); + void set_allocated_operation_id(::std::string* operation_id); + + void clear_id(); + IdCase id_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Span) + private: + class HasBitSetters; + void set_has_workflow_id(); + void set_has_node_id(); + void set_has_task_id(); + void set_has_operation_id(); + + inline bool has_id() const; + inline void clear_has_id(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span > spans_; + ::google::protobuf::Timestamp* start_time_; + ::google::protobuf::Timestamp* end_time_; + union IdUnion { + IdUnion() {} + ::flyteidl::core::WorkflowExecutionIdentifier* workflow_id_; + ::flyteidl::core::NodeExecutionIdentifier* node_id_; + ::flyteidl::core::TaskExecutionIdentifier* task_id_; + ::google::protobuf::internal::ArenaStringPtr operation_id_; + } id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fmetrics_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Span + +// .google.protobuf.Timestamp start_time = 1; +inline bool Span::has_start_time() const { + return this != internal_default_instance() && start_time_ != nullptr; +} +inline const ::google::protobuf::Timestamp& Span::start_time() const { + const ::google::protobuf::Timestamp* p = start_time_; + // @@protoc_insertion_point(field_get:flyteidl.core.Span.start_time) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Span::release_start_time() { + // @@protoc_insertion_point(field_release:flyteidl.core.Span.start_time) + + ::google::protobuf::Timestamp* temp = start_time_; + start_time_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* Span::mutable_start_time() { + + if (start_time_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + start_time_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.start_time) + return start_time_; +} +inline void Span::set_allocated_start_time(::google::protobuf::Timestamp* start_time) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(start_time_); + } + if (start_time) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(start_time)->GetArena(); + if (message_arena != submessage_arena) { + start_time = ::google::protobuf::internal::GetOwnedMessage( + message_arena, start_time, submessage_arena); + } + + } else { + + } + start_time_ = start_time; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.start_time) +} + +// .google.protobuf.Timestamp end_time = 2; +inline bool Span::has_end_time() const { + return this != internal_default_instance() && end_time_ != nullptr; +} +inline const ::google::protobuf::Timestamp& Span::end_time() const { + const ::google::protobuf::Timestamp* p = end_time_; + // @@protoc_insertion_point(field_get:flyteidl.core.Span.end_time) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Span::release_end_time() { + // @@protoc_insertion_point(field_release:flyteidl.core.Span.end_time) + + ::google::protobuf::Timestamp* temp = end_time_; + end_time_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* Span::mutable_end_time() { + + if (end_time_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + end_time_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.end_time) + return end_time_; +} +inline void Span::set_allocated_end_time(::google::protobuf::Timestamp* end_time) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(end_time_); + } + if (end_time) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(end_time)->GetArena(); + if (message_arena != submessage_arena) { + end_time = ::google::protobuf::internal::GetOwnedMessage( + message_arena, end_time, submessage_arena); + } + + } else { + + } + end_time_ = end_time; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.end_time) +} + +// .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; +inline bool Span::has_workflow_id() const { + return id_case() == kWorkflowId; +} +inline void Span::set_has_workflow_id() { + _oneof_case_[0] = kWorkflowId; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Span::release_workflow_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Span.workflow_id) + if (has_workflow_id()) { + clear_has_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_.workflow_id_; + id_.workflow_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& Span::workflow_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Span.workflow_id) + return has_workflow_id() + ? *id_.workflow_id_ + : *reinterpret_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>(&::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Span::mutable_workflow_id() { + if (!has_workflow_id()) { + clear_id(); + set_has_workflow_id(); + id_.workflow_id_ = CreateMaybeMessage< ::flyteidl::core::WorkflowExecutionIdentifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.workflow_id) + return id_.workflow_id_; +} + +// .flyteidl.core.NodeExecutionIdentifier node_id = 4; +inline bool Span::has_node_id() const { + return id_case() == kNodeId; +} +inline void Span::set_has_node_id() { + _oneof_case_[0] = kNodeId; +} +inline ::flyteidl::core::NodeExecutionIdentifier* Span::release_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Span.node_id) + if (has_node_id()) { + clear_has_id(); + ::flyteidl::core::NodeExecutionIdentifier* temp = id_.node_id_; + id_.node_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::NodeExecutionIdentifier& Span::node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Span.node_id) + return has_node_id() + ? *id_.node_id_ + : *reinterpret_cast< ::flyteidl::core::NodeExecutionIdentifier*>(&::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* Span::mutable_node_id() { + if (!has_node_id()) { + clear_id(); + set_has_node_id(); + id_.node_id_ = CreateMaybeMessage< ::flyteidl::core::NodeExecutionIdentifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.node_id) + return id_.node_id_; +} + +// .flyteidl.core.TaskExecutionIdentifier task_id = 5; +inline bool Span::has_task_id() const { + return id_case() == kTaskId; +} +inline void Span::set_has_task_id() { + _oneof_case_[0] = kTaskId; +} +inline ::flyteidl::core::TaskExecutionIdentifier* Span::release_task_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Span.task_id) + if (has_task_id()) { + clear_has_id(); + ::flyteidl::core::TaskExecutionIdentifier* temp = id_.task_id_; + id_.task_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::TaskExecutionIdentifier& Span::task_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Span.task_id) + return has_task_id() + ? *id_.task_id_ + : *reinterpret_cast< ::flyteidl::core::TaskExecutionIdentifier*>(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* Span::mutable_task_id() { + if (!has_task_id()) { + clear_id(); + set_has_task_id(); + id_.task_id_ = CreateMaybeMessage< ::flyteidl::core::TaskExecutionIdentifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.task_id) + return id_.task_id_; +} + +// string operation_id = 6; +inline bool Span::has_operation_id() const { + return id_case() == kOperationId; +} +inline void Span::set_has_operation_id() { + _oneof_case_[0] = kOperationId; +} +inline void Span::clear_operation_id() { + if (has_operation_id()) { + id_.operation_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_id(); + } +} +inline const ::std::string& Span::operation_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Span.operation_id) + if (has_operation_id()) { + return id_.operation_id_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Span::set_operation_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Span.operation_id) + if (!has_operation_id()) { + clear_id(); + set_has_operation_id(); + id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Span.operation_id) +} +#if LANG_CXX11 +inline void Span::set_operation_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Span.operation_id) + if (!has_operation_id()) { + clear_id(); + set_has_operation_id(); + id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Span.operation_id) +} +#endif +inline void Span::set_operation_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_operation_id()) { + clear_id(); + set_has_operation_id(); + id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Span.operation_id) +} +inline void Span::set_operation_id(const char* value, size_t size) { + if (!has_operation_id()) { + clear_id(); + set_has_operation_id(); + id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Span.operation_id) +} +inline ::std::string* Span::mutable_operation_id() { + if (!has_operation_id()) { + clear_id(); + set_has_operation_id(); + id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.operation_id) + return id_.operation_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Span::release_operation_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Span.operation_id) + if (has_operation_id()) { + clear_has_id(); + return id_.operation_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void Span::set_allocated_operation_id(::std::string* operation_id) { + if (has_id()) { + clear_id(); + } + if (operation_id != nullptr) { + set_has_operation_id(); + id_.operation_id_.UnsafeSetDefault(operation_id); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.operation_id) +} + +// repeated .flyteidl.core.Span spans = 7; +inline int Span::spans_size() const { + return spans_.size(); +} +inline void Span::clear_spans() { + spans_.Clear(); +} +inline ::flyteidl::core::Span* Span::mutable_spans(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.spans) + return spans_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >* +Span::mutable_spans() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Span.spans) + return &spans_; +} +inline const ::flyteidl::core::Span& Span::spans(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Span.spans) + return spans_.Get(index); +} +inline ::flyteidl::core::Span* Span::add_spans() { + // @@protoc_insertion_point(field_add:flyteidl.core.Span.spans) + return spans_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >& +Span::spans() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Span.spans) + return spans_; +} + +inline bool Span::has_id() const { + return id_case() != ID_NOT_SET; +} +inline void Span::clear_has_id() { + _oneof_case_[0] = ID_NOT_SET; +} +inline Span::IdCase Span::id_case() const { + return Span::IdCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fmetrics_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.cc new file mode 100644 index 0000000000..8260e8bed5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/security.proto + +#include "flyteidl/core/security.pb.h" +#include "flyteidl/core/security.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.h new file mode 100644 index 0000000000..2bac085949 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/security.proto +#ifndef GRPC_flyteidl_2fcore_2fsecurity_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fsecurity_2eproto__INCLUDED + +#include "flyteidl/core/security.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fsecurity_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.cc new file mode 100644 index 0000000000..f1a7ee507a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.cc @@ -0,0 +1,2641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/security.proto + +#include "flyteidl/core/security.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto; +namespace flyteidl { +namespace core { +class SecretDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Secret_default_instance_; +class OAuth2ClientDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _OAuth2Client_default_instance_; +class IdentityDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Identity_default_instance_; +class OAuth2TokenRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _OAuth2TokenRequest_default_instance_; +class SecurityContextDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SecurityContext_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsSecret_flyteidl_2fcore_2fsecurity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Secret_default_instance_; + new (ptr) ::flyteidl::core::Secret(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Secret::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSecret_flyteidl_2fcore_2fsecurity_2eproto}, {}}; + +static void InitDefaultsOAuth2Client_flyteidl_2fcore_2fsecurity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_OAuth2Client_default_instance_; + new (ptr) ::flyteidl::core::OAuth2Client(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::OAuth2Client::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOAuth2Client_flyteidl_2fcore_2fsecurity_2eproto}, { + &scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base,}}; + +static void InitDefaultsIdentity_flyteidl_2fcore_2fsecurity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Identity_default_instance_; + new (ptr) ::flyteidl::core::Identity(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Identity::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsIdentity_flyteidl_2fcore_2fsecurity_2eproto}, { + &scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base,}}; + +static void InitDefaultsOAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_OAuth2TokenRequest_default_instance_; + new (ptr) ::flyteidl::core::OAuth2TokenRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::OAuth2TokenRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto}, { + &scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base,}}; + +static void InitDefaultsSecurityContext_flyteidl_2fcore_2fsecurity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_SecurityContext_default_instance_; + new (ptr) ::flyteidl::core::SecurityContext(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SecurityContext::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSecurityContext_flyteidl_2fcore_2fsecurity_2eproto}, { + &scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base, + &scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base, + &scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fsecurity_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[5]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fsecurity_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fsecurity_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fsecurity_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, group_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, group_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, mount_requirement_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2Client, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2Client, client_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2Client, client_secret_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, iam_role_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, k8s_service_account_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, oauth2_client_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, execution_identity_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, client_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, idp_discovery_endpoint_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, token_endpoint_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, run_as_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, secrets_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, tokens_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Secret)}, + { 9, -1, sizeof(::flyteidl::core::OAuth2Client)}, + { 16, -1, sizeof(::flyteidl::core::Identity)}, + { 25, -1, sizeof(::flyteidl::core::OAuth2TokenRequest)}, + { 35, -1, sizeof(::flyteidl::core::SecurityContext)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Secret_default_instance_), + reinterpret_cast(&::flyteidl::core::_OAuth2Client_default_instance_), + reinterpret_cast(&::flyteidl::core::_Identity_default_instance_), + reinterpret_cast(&::flyteidl::core::_OAuth2TokenRequest_default_instance_), + reinterpret_cast(&::flyteidl::core::_SecurityContext_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, "flyteidl/core/security.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fsecurity_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto, 5, file_level_enum_descriptors_flyteidl_2fcore_2fsecurity_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fsecurity_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fsecurity_2eproto[] = + "\n\034flyteidl/core/security.proto\022\rflyteidl" + ".core\"\244\001\n\006Secret\022\r\n\005group\030\001 \001(\t\022\025\n\rgroup" + "_version\030\002 \001(\t\022\013\n\003key\030\003 \001(\t\022:\n\021mount_req" + "uirement\030\004 \001(\0162\037.flyteidl.core.Secret.Mo" + "untType\"+\n\tMountType\022\007\n\003ANY\020\000\022\013\n\007ENV_VAR" + "\020\001\022\010\n\004FILE\020\002\"O\n\014OAuth2Client\022\021\n\tclient_i" + "d\030\001 \001(\t\022,\n\rclient_secret\030\002 \001(\0132\025.flyteid" + "l.core.Secret\"\211\001\n\010Identity\022\020\n\010iam_role\030\001" + " \001(\t\022\033\n\023k8s_service_account\030\002 \001(\t\0222\n\roau" + "th2_client\030\003 \001(\0132\033.flyteidl.core.OAuth2C" + "lient\022\032\n\022execution_identity\030\004 \001(\t\"\335\001\n\022OA" + "uth2TokenRequest\022\014\n\004name\030\001 \001(\t\0224\n\004type\030\002" + " \001(\0162&.flyteidl.core.OAuth2TokenRequest." + "Type\022+\n\006client\030\003 \001(\0132\033.flyteidl.core.OAu" + "th2Client\022\036\n\026idp_discovery_endpoint\030\004 \001(" + "\t\022\026\n\016token_endpoint\030\005 \001(\t\"\036\n\004Type\022\026\n\022CLI" + "ENT_CREDENTIALS\020\000\"\225\001\n\017SecurityContext\022\'\n" + "\006run_as\030\001 \001(\0132\027.flyteidl.core.Identity\022&" + "\n\007secrets\030\002 \003(\0132\025.flyteidl.core.Secret\0221" + "\n\006tokens\030\003 \003(\0132!.flyteidl.core.OAuth2Tok" + "enRequestB6Z4github.com/flyteorg/flyteid" + "l/gen/pb-go/flyteidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fsecurity_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fsecurity_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fsecurity_2eproto, + "flyteidl/core/security.proto", &assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto, 873, +}; + +void AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fsecurity_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fsecurity_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* Secret_MountType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fsecurity_2eproto[0]; +} +bool Secret_MountType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Secret_MountType Secret::ANY; +const Secret_MountType Secret::ENV_VAR; +const Secret_MountType Secret::FILE; +const Secret_MountType Secret::MountType_MIN; +const Secret_MountType Secret::MountType_MAX; +const int Secret::MountType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* OAuth2TokenRequest_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fsecurity_2eproto[1]; +} +bool OAuth2TokenRequest_Type_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const OAuth2TokenRequest_Type OAuth2TokenRequest::CLIENT_CREDENTIALS; +const OAuth2TokenRequest_Type OAuth2TokenRequest::Type_MIN; +const OAuth2TokenRequest_Type OAuth2TokenRequest::Type_MAX; +const int OAuth2TokenRequest::Type_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void Secret::InitAsDefaultInstance() { +} +class Secret::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Secret::kGroupFieldNumber; +const int Secret::kGroupVersionFieldNumber; +const int Secret::kKeyFieldNumber; +const int Secret::kMountRequirementFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Secret::Secret() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Secret) +} +Secret::Secret(const Secret& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.group().size() > 0) { + group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); + } + group_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.group_version().size() > 0) { + group_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_version_); + } + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + mount_requirement_ = from.mount_requirement_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Secret) +} + +void Secret::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base); + group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + group_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mount_requirement_ = 0; +} + +Secret::~Secret() { + // @@protoc_insertion_point(destructor:flyteidl.core.Secret) + SharedDtor(); +} + +void Secret::SharedDtor() { + group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + group_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Secret::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Secret& Secret::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base); + return *internal_default_instance(); +} + + +void Secret::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Secret) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + group_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mount_requirement_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Secret::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string group = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Secret.group"); + object = msg->mutable_group(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string group_version = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Secret.group_version"); + object = msg->mutable_group_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string key = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Secret.key"); + object = msg->mutable_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Secret.MountType mount_requirement = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_mount_requirement(static_cast<::flyteidl::core::Secret_MountType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Secret::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Secret) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string group = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_group())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group().data(), static_cast(this->group().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Secret.group")); + } else { + goto handle_unusual; + } + break; + } + + // string group_version = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_group_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group_version().data(), static_cast(this->group_version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Secret.group_version")); + } else { + goto handle_unusual; + } + break; + } + + // string key = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Secret.key")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Secret.MountType mount_requirement = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_mount_requirement(static_cast< ::flyteidl::core::Secret_MountType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Secret) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Secret) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Secret::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Secret) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string group = 1; + if (this->group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group().data(), static_cast(this->group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Secret.group"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->group(), output); + } + + // string group_version = 2; + if (this->group_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group_version().data(), static_cast(this->group_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Secret.group_version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->group_version(), output); + } + + // string key = 3; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Secret.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->key(), output); + } + + // .flyteidl.core.Secret.MountType mount_requirement = 4; + if (this->mount_requirement() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->mount_requirement(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Secret) +} + +::google::protobuf::uint8* Secret::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Secret) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string group = 1; + if (this->group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group().data(), static_cast(this->group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Secret.group"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->group(), target); + } + + // string group_version = 2; + if (this->group_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group_version().data(), static_cast(this->group_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Secret.group_version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->group_version(), target); + } + + // string key = 3; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Secret.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->key(), target); + } + + // .flyteidl.core.Secret.MountType mount_requirement = 4; + if (this->mount_requirement() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->mount_requirement(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Secret) + return target; +} + +size_t Secret::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Secret) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string group = 1; + if (this->group().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->group()); + } + + // string group_version = 2; + if (this->group_version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->group_version()); + } + + // string key = 3; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // .flyteidl.core.Secret.MountType mount_requirement = 4; + if (this->mount_requirement() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->mount_requirement()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Secret::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Secret) + GOOGLE_DCHECK_NE(&from, this); + const Secret* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Secret) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Secret) + MergeFrom(*source); + } +} + +void Secret::MergeFrom(const Secret& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Secret) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.group().size() > 0) { + + group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); + } + if (from.group_version().size() > 0) { + + group_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_version_); + } + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.mount_requirement() != 0) { + set_mount_requirement(from.mount_requirement()); + } +} + +void Secret::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Secret) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Secret::CopyFrom(const Secret& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Secret) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Secret::IsInitialized() const { + return true; +} + +void Secret::Swap(Secret* other) { + if (other == this) return; + InternalSwap(other); +} +void Secret::InternalSwap(Secret* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + group_.Swap(&other->group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + group_version_.Swap(&other->group_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(mount_requirement_, other->mount_requirement_); +} + +::google::protobuf::Metadata Secret::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void OAuth2Client::InitAsDefaultInstance() { + ::flyteidl::core::_OAuth2Client_default_instance_._instance.get_mutable()->client_secret_ = const_cast< ::flyteidl::core::Secret*>( + ::flyteidl::core::Secret::internal_default_instance()); +} +class OAuth2Client::HasBitSetters { + public: + static const ::flyteidl::core::Secret& client_secret(const OAuth2Client* msg); +}; + +const ::flyteidl::core::Secret& +OAuth2Client::HasBitSetters::client_secret(const OAuth2Client* msg) { + return *msg->client_secret_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OAuth2Client::kClientIdFieldNumber; +const int OAuth2Client::kClientSecretFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OAuth2Client::OAuth2Client() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.OAuth2Client) +} +OAuth2Client::OAuth2Client(const OAuth2Client& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.client_id().size() > 0) { + client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); + } + if (from.has_client_secret()) { + client_secret_ = new ::flyteidl::core::Secret(*from.client_secret_); + } else { + client_secret_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.OAuth2Client) +} + +void OAuth2Client::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base); + client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + client_secret_ = nullptr; +} + +OAuth2Client::~OAuth2Client() { + // @@protoc_insertion_point(destructor:flyteidl.core.OAuth2Client) + SharedDtor(); +} + +void OAuth2Client::SharedDtor() { + client_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete client_secret_; +} + +void OAuth2Client::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const OAuth2Client& OAuth2Client::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base); + return *internal_default_instance(); +} + + +void OAuth2Client::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.OAuth2Client) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && client_secret_ != nullptr) { + delete client_secret_; + } + client_secret_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* OAuth2Client::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string client_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2Client.client_id"); + object = msg->mutable_client_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Secret client_secret = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Secret::_InternalParse; + object = msg->mutable_client_secret(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool OAuth2Client::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.OAuth2Client) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string client_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_client_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->client_id().data(), static_cast(this->client_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OAuth2Client.client_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Secret client_secret = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_client_secret())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.OAuth2Client) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.OAuth2Client) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void OAuth2Client::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.OAuth2Client) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string client_id = 1; + if (this->client_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->client_id().data(), static_cast(this->client_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2Client.client_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->client_id(), output); + } + + // .flyteidl.core.Secret client_secret = 2; + if (this->has_client_secret()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::client_secret(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.OAuth2Client) +} + +::google::protobuf::uint8* OAuth2Client::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.OAuth2Client) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string client_id = 1; + if (this->client_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->client_id().data(), static_cast(this->client_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2Client.client_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->client_id(), target); + } + + // .flyteidl.core.Secret client_secret = 2; + if (this->has_client_secret()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::client_secret(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.OAuth2Client) + return target; +} + +size_t OAuth2Client::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.OAuth2Client) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string client_id = 1; + if (this->client_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->client_id()); + } + + // .flyteidl.core.Secret client_secret = 2; + if (this->has_client_secret()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *client_secret_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OAuth2Client::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.OAuth2Client) + GOOGLE_DCHECK_NE(&from, this); + const OAuth2Client* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.OAuth2Client) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.OAuth2Client) + MergeFrom(*source); + } +} + +void OAuth2Client::MergeFrom(const OAuth2Client& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.OAuth2Client) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.client_id().size() > 0) { + + client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); + } + if (from.has_client_secret()) { + mutable_client_secret()->::flyteidl::core::Secret::MergeFrom(from.client_secret()); + } +} + +void OAuth2Client::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.OAuth2Client) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OAuth2Client::CopyFrom(const OAuth2Client& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.OAuth2Client) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OAuth2Client::IsInitialized() const { + return true; +} + +void OAuth2Client::Swap(OAuth2Client* other) { + if (other == this) return; + InternalSwap(other); +} +void OAuth2Client::InternalSwap(OAuth2Client* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + client_id_.Swap(&other->client_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(client_secret_, other->client_secret_); +} + +::google::protobuf::Metadata OAuth2Client::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Identity::InitAsDefaultInstance() { + ::flyteidl::core::_Identity_default_instance_._instance.get_mutable()->oauth2_client_ = const_cast< ::flyteidl::core::OAuth2Client*>( + ::flyteidl::core::OAuth2Client::internal_default_instance()); +} +class Identity::HasBitSetters { + public: + static const ::flyteidl::core::OAuth2Client& oauth2_client(const Identity* msg); +}; + +const ::flyteidl::core::OAuth2Client& +Identity::HasBitSetters::oauth2_client(const Identity* msg) { + return *msg->oauth2_client_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Identity::kIamRoleFieldNumber; +const int Identity::kK8SServiceAccountFieldNumber; +const int Identity::kOauth2ClientFieldNumber; +const int Identity::kExecutionIdentityFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Identity::Identity() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Identity) +} +Identity::Identity(const Identity& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.iam_role().size() > 0) { + iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iam_role_); + } + k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.k8s_service_account().size() > 0) { + k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); + } + execution_identity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.execution_identity().size() > 0) { + execution_identity_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_identity_); + } + if (from.has_oauth2_client()) { + oauth2_client_ = new ::flyteidl::core::OAuth2Client(*from.oauth2_client_); + } else { + oauth2_client_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Identity) +} + +void Identity::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base); + iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + execution_identity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + oauth2_client_ = nullptr; +} + +Identity::~Identity() { + // @@protoc_insertion_point(destructor:flyteidl.core.Identity) + SharedDtor(); +} + +void Identity::SharedDtor() { + iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + k8s_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + execution_identity_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete oauth2_client_; +} + +void Identity::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Identity& Identity::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base); + return *internal_default_instance(); +} + + +void Identity::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Identity) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + execution_identity_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && oauth2_client_ != nullptr) { + delete oauth2_client_; + } + oauth2_client_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Identity::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string iam_role = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Identity.iam_role"); + object = msg->mutable_iam_role(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string k8s_service_account = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Identity.k8s_service_account"); + object = msg->mutable_k8s_service_account(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.OAuth2Client oauth2_client = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::OAuth2Client::_InternalParse; + object = msg->mutable_oauth2_client(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string execution_identity = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Identity.execution_identity"); + object = msg->mutable_execution_identity(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Identity::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Identity) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string iam_role = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_iam_role())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->iam_role().data(), static_cast(this->iam_role().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identity.iam_role")); + } else { + goto handle_unusual; + } + break; + } + + // string k8s_service_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_k8s_service_account())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identity.k8s_service_account")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.OAuth2Client oauth2_client = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_oauth2_client())); + } else { + goto handle_unusual; + } + break; + } + + // string execution_identity = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_execution_identity())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->execution_identity().data(), static_cast(this->execution_identity().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identity.execution_identity")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Identity) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Identity) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Identity::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Identity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string iam_role = 1; + if (this->iam_role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->iam_role().data(), static_cast(this->iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identity.iam_role"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->iam_role(), output); + } + + // string k8s_service_account = 2; + if (this->k8s_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identity.k8s_service_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->k8s_service_account(), output); + } + + // .flyteidl.core.OAuth2Client oauth2_client = 3; + if (this->has_oauth2_client()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::oauth2_client(this), output); + } + + // string execution_identity = 4; + if (this->execution_identity().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->execution_identity().data(), static_cast(this->execution_identity().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identity.execution_identity"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->execution_identity(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Identity) +} + +::google::protobuf::uint8* Identity::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Identity) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string iam_role = 1; + if (this->iam_role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->iam_role().data(), static_cast(this->iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identity.iam_role"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->iam_role(), target); + } + + // string k8s_service_account = 2; + if (this->k8s_service_account().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identity.k8s_service_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->k8s_service_account(), target); + } + + // .flyteidl.core.OAuth2Client oauth2_client = 3; + if (this->has_oauth2_client()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::oauth2_client(this), target); + } + + // string execution_identity = 4; + if (this->execution_identity().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->execution_identity().data(), static_cast(this->execution_identity().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identity.execution_identity"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->execution_identity(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Identity) + return target; +} + +size_t Identity::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Identity) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string iam_role = 1; + if (this->iam_role().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->iam_role()); + } + + // string k8s_service_account = 2; + if (this->k8s_service_account().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->k8s_service_account()); + } + + // string execution_identity = 4; + if (this->execution_identity().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->execution_identity()); + } + + // .flyteidl.core.OAuth2Client oauth2_client = 3; + if (this->has_oauth2_client()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *oauth2_client_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Identity::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Identity) + GOOGLE_DCHECK_NE(&from, this); + const Identity* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Identity) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Identity) + MergeFrom(*source); + } +} + +void Identity::MergeFrom(const Identity& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Identity) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.iam_role().size() > 0) { + + iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iam_role_); + } + if (from.k8s_service_account().size() > 0) { + + k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); + } + if (from.execution_identity().size() > 0) { + + execution_identity_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_identity_); + } + if (from.has_oauth2_client()) { + mutable_oauth2_client()->::flyteidl::core::OAuth2Client::MergeFrom(from.oauth2_client()); + } +} + +void Identity::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Identity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Identity::CopyFrom(const Identity& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Identity) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Identity::IsInitialized() const { + return true; +} + +void Identity::Swap(Identity* other) { + if (other == this) return; + InternalSwap(other); +} +void Identity::InternalSwap(Identity* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + iam_role_.Swap(&other->iam_role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + k8s_service_account_.Swap(&other->k8s_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + execution_identity_.Swap(&other->execution_identity_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(oauth2_client_, other->oauth2_client_); +} + +::google::protobuf::Metadata Identity::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void OAuth2TokenRequest::InitAsDefaultInstance() { + ::flyteidl::core::_OAuth2TokenRequest_default_instance_._instance.get_mutable()->client_ = const_cast< ::flyteidl::core::OAuth2Client*>( + ::flyteidl::core::OAuth2Client::internal_default_instance()); +} +class OAuth2TokenRequest::HasBitSetters { + public: + static const ::flyteidl::core::OAuth2Client& client(const OAuth2TokenRequest* msg); +}; + +const ::flyteidl::core::OAuth2Client& +OAuth2TokenRequest::HasBitSetters::client(const OAuth2TokenRequest* msg) { + return *msg->client_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OAuth2TokenRequest::kNameFieldNumber; +const int OAuth2TokenRequest::kTypeFieldNumber; +const int OAuth2TokenRequest::kClientFieldNumber; +const int OAuth2TokenRequest::kIdpDiscoveryEndpointFieldNumber; +const int OAuth2TokenRequest::kTokenEndpointFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OAuth2TokenRequest::OAuth2TokenRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.OAuth2TokenRequest) +} +OAuth2TokenRequest::OAuth2TokenRequest(const OAuth2TokenRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + idp_discovery_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.idp_discovery_endpoint().size() > 0) { + idp_discovery_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.idp_discovery_endpoint_); + } + token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token_endpoint().size() > 0) { + token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); + } + if (from.has_client()) { + client_ = new ::flyteidl::core::OAuth2Client(*from.client_); + } else { + client_ = nullptr; + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.OAuth2TokenRequest) +} + +void OAuth2TokenRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + idp_discovery_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&client_, 0, static_cast( + reinterpret_cast(&type_) - + reinterpret_cast(&client_)) + sizeof(type_)); +} + +OAuth2TokenRequest::~OAuth2TokenRequest() { + // @@protoc_insertion_point(destructor:flyteidl.core.OAuth2TokenRequest) + SharedDtor(); +} + +void OAuth2TokenRequest::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + idp_discovery_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete client_; +} + +void OAuth2TokenRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const OAuth2TokenRequest& OAuth2TokenRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base); + return *internal_default_instance(); +} + + +void OAuth2TokenRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.OAuth2TokenRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + idp_discovery_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && client_ != nullptr) { + delete client_; + } + client_ = nullptr; + type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* OAuth2TokenRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2TokenRequest.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.OAuth2TokenRequest.Type type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_type(static_cast<::flyteidl::core::OAuth2TokenRequest_Type>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.OAuth2Client client = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::OAuth2Client::_InternalParse; + object = msg->mutable_client(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string idp_discovery_endpoint = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint"); + object = msg->mutable_idp_discovery_endpoint(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string token_endpoint = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2TokenRequest.token_endpoint"); + object = msg->mutable_token_endpoint(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool OAuth2TokenRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.OAuth2TokenRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OAuth2TokenRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.OAuth2TokenRequest.Type type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::flyteidl::core::OAuth2TokenRequest_Type >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.OAuth2Client client = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_client())); + } else { + goto handle_unusual; + } + break; + } + + // string idp_discovery_endpoint = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_idp_discovery_endpoint())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->idp_discovery_endpoint().data(), static_cast(this->idp_discovery_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint")); + } else { + goto handle_unusual; + } + break; + } + + // string token_endpoint = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token_endpoint())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint().data(), static_cast(this->token_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OAuth2TokenRequest.token_endpoint")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.OAuth2TokenRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.OAuth2TokenRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void OAuth2TokenRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.OAuth2TokenRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2TokenRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // .flyteidl.core.OAuth2TokenRequest.Type type = 2; + if (this->type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->type(), output); + } + + // .flyteidl.core.OAuth2Client client = 3; + if (this->has_client()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::client(this), output); + } + + // string idp_discovery_endpoint = 4; + if (this->idp_discovery_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->idp_discovery_endpoint().data(), static_cast(this->idp_discovery_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->idp_discovery_endpoint(), output); + } + + // string token_endpoint = 5; + if (this->token_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint().data(), static_cast(this->token_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2TokenRequest.token_endpoint"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->token_endpoint(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.OAuth2TokenRequest) +} + +::google::protobuf::uint8* OAuth2TokenRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.OAuth2TokenRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2TokenRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // .flyteidl.core.OAuth2TokenRequest.Type type = 2; + if (this->type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->type(), target); + } + + // .flyteidl.core.OAuth2Client client = 3; + if (this->has_client()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::client(this), target); + } + + // string idp_discovery_endpoint = 4; + if (this->idp_discovery_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->idp_discovery_endpoint().data(), static_cast(this->idp_discovery_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->idp_discovery_endpoint(), target); + } + + // string token_endpoint = 5; + if (this->token_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint().data(), static_cast(this->token_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OAuth2TokenRequest.token_endpoint"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->token_endpoint(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.OAuth2TokenRequest) + return target; +} + +size_t OAuth2TokenRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.OAuth2TokenRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string idp_discovery_endpoint = 4; + if (this->idp_discovery_endpoint().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->idp_discovery_endpoint()); + } + + // string token_endpoint = 5; + if (this->token_endpoint().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token_endpoint()); + } + + // .flyteidl.core.OAuth2Client client = 3; + if (this->has_client()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *client_); + } + + // .flyteidl.core.OAuth2TokenRequest.Type type = 2; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OAuth2TokenRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.OAuth2TokenRequest) + GOOGLE_DCHECK_NE(&from, this); + const OAuth2TokenRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.OAuth2TokenRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.OAuth2TokenRequest) + MergeFrom(*source); + } +} + +void OAuth2TokenRequest::MergeFrom(const OAuth2TokenRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.OAuth2TokenRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.idp_discovery_endpoint().size() > 0) { + + idp_discovery_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.idp_discovery_endpoint_); + } + if (from.token_endpoint().size() > 0) { + + token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); + } + if (from.has_client()) { + mutable_client()->::flyteidl::core::OAuth2Client::MergeFrom(from.client()); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void OAuth2TokenRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.OAuth2TokenRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OAuth2TokenRequest::CopyFrom(const OAuth2TokenRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.OAuth2TokenRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OAuth2TokenRequest::IsInitialized() const { + return true; +} + +void OAuth2TokenRequest::Swap(OAuth2TokenRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void OAuth2TokenRequest::InternalSwap(OAuth2TokenRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + idp_discovery_endpoint_.Swap(&other->idp_discovery_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_endpoint_.Swap(&other->token_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(client_, other->client_); + swap(type_, other->type_); +} + +::google::protobuf::Metadata OAuth2TokenRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SecurityContext::InitAsDefaultInstance() { + ::flyteidl::core::_SecurityContext_default_instance_._instance.get_mutable()->run_as_ = const_cast< ::flyteidl::core::Identity*>( + ::flyteidl::core::Identity::internal_default_instance()); +} +class SecurityContext::HasBitSetters { + public: + static const ::flyteidl::core::Identity& run_as(const SecurityContext* msg); +}; + +const ::flyteidl::core::Identity& +SecurityContext::HasBitSetters::run_as(const SecurityContext* msg) { + return *msg->run_as_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SecurityContext::kRunAsFieldNumber; +const int SecurityContext::kSecretsFieldNumber; +const int SecurityContext::kTokensFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SecurityContext::SecurityContext() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SecurityContext) +} +SecurityContext::SecurityContext(const SecurityContext& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + secrets_(from.secrets_), + tokens_(from.tokens_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_run_as()) { + run_as_ = new ::flyteidl::core::Identity(*from.run_as_); + } else { + run_as_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SecurityContext) +} + +void SecurityContext::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base); + run_as_ = nullptr; +} + +SecurityContext::~SecurityContext() { + // @@protoc_insertion_point(destructor:flyteidl.core.SecurityContext) + SharedDtor(); +} + +void SecurityContext::SharedDtor() { + if (this != internal_default_instance()) delete run_as_; +} + +void SecurityContext::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SecurityContext& SecurityContext::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base); + return *internal_default_instance(); +} + + +void SecurityContext::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SecurityContext) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + secrets_.Clear(); + tokens_.Clear(); + if (GetArenaNoVirtual() == nullptr && run_as_ != nullptr) { + delete run_as_; + } + run_as_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SecurityContext::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identity run_as = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identity::_InternalParse; + object = msg->mutable_run_as(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.Secret secrets = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Secret::_InternalParse; + object = msg->add_secrets(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::OAuth2TokenRequest::_InternalParse; + object = msg->add_tokens(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SecurityContext::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SecurityContext) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identity run_as = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_run_as())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Secret secrets = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_secrets())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tokens())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.SecurityContext) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SecurityContext) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SecurityContext::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SecurityContext) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identity run_as = 1; + if (this->has_run_as()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::run_as(this), output); + } + + // repeated .flyteidl.core.Secret secrets = 2; + for (unsigned int i = 0, + n = static_cast(this->secrets_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->secrets(static_cast(i)), + output); + } + + // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + for (unsigned int i = 0, + n = static_cast(this->tokens_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->tokens(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SecurityContext) +} + +::google::protobuf::uint8* SecurityContext::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SecurityContext) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identity run_as = 1; + if (this->has_run_as()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::run_as(this), target); + } + + // repeated .flyteidl.core.Secret secrets = 2; + for (unsigned int i = 0, + n = static_cast(this->secrets_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->secrets(static_cast(i)), target); + } + + // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + for (unsigned int i = 0, + n = static_cast(this->tokens_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->tokens(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SecurityContext) + return target; +} + +size_t SecurityContext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SecurityContext) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.Secret secrets = 2; + { + unsigned int count = static_cast(this->secrets_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->secrets(static_cast(i))); + } + } + + // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + { + unsigned int count = static_cast(this->tokens_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tokens(static_cast(i))); + } + } + + // .flyteidl.core.Identity run_as = 1; + if (this->has_run_as()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *run_as_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SecurityContext::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SecurityContext) + GOOGLE_DCHECK_NE(&from, this); + const SecurityContext* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SecurityContext) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SecurityContext) + MergeFrom(*source); + } +} + +void SecurityContext::MergeFrom(const SecurityContext& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SecurityContext) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + secrets_.MergeFrom(from.secrets_); + tokens_.MergeFrom(from.tokens_); + if (from.has_run_as()) { + mutable_run_as()->::flyteidl::core::Identity::MergeFrom(from.run_as()); + } +} + +void SecurityContext::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SecurityContext) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SecurityContext::CopyFrom(const SecurityContext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SecurityContext) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SecurityContext::IsInitialized() const { + return true; +} + +void SecurityContext::Swap(SecurityContext* other) { + if (other == this) return; + InternalSwap(other); +} +void SecurityContext::InternalSwap(SecurityContext* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&secrets_)->InternalSwap(CastToBase(&other->secrets_)); + CastToBase(&tokens_)->InternalSwap(CastToBase(&other->tokens_)); + swap(run_as_, other->run_as_); +} + +::google::protobuf::Metadata SecurityContext::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::Secret* Arena::CreateMaybeMessage< ::flyteidl::core::Secret >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Secret >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::OAuth2Client* Arena::CreateMaybeMessage< ::flyteidl::core::OAuth2Client >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::OAuth2Client >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Identity* Arena::CreateMaybeMessage< ::flyteidl::core::Identity >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Identity >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::OAuth2TokenRequest* Arena::CreateMaybeMessage< ::flyteidl::core::OAuth2TokenRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::OAuth2TokenRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::SecurityContext* Arena::CreateMaybeMessage< ::flyteidl::core::SecurityContext >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::SecurityContext >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.h new file mode 100644 index 0000000000..d503075579 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.h @@ -0,0 +1,1818 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/security.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fsecurity_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fsecurity_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fsecurity_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[5] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto(); +namespace flyteidl { +namespace core { +class Identity; +class IdentityDefaultTypeInternal; +extern IdentityDefaultTypeInternal _Identity_default_instance_; +class OAuth2Client; +class OAuth2ClientDefaultTypeInternal; +extern OAuth2ClientDefaultTypeInternal _OAuth2Client_default_instance_; +class OAuth2TokenRequest; +class OAuth2TokenRequestDefaultTypeInternal; +extern OAuth2TokenRequestDefaultTypeInternal _OAuth2TokenRequest_default_instance_; +class Secret; +class SecretDefaultTypeInternal; +extern SecretDefaultTypeInternal _Secret_default_instance_; +class SecurityContext; +class SecurityContextDefaultTypeInternal; +extern SecurityContextDefaultTypeInternal _SecurityContext_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::Identity* Arena::CreateMaybeMessage<::flyteidl::core::Identity>(Arena*); +template<> ::flyteidl::core::OAuth2Client* Arena::CreateMaybeMessage<::flyteidl::core::OAuth2Client>(Arena*); +template<> ::flyteidl::core::OAuth2TokenRequest* Arena::CreateMaybeMessage<::flyteidl::core::OAuth2TokenRequest>(Arena*); +template<> ::flyteidl::core::Secret* Arena::CreateMaybeMessage<::flyteidl::core::Secret>(Arena*); +template<> ::flyteidl::core::SecurityContext* Arena::CreateMaybeMessage<::flyteidl::core::SecurityContext>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum Secret_MountType { + Secret_MountType_ANY = 0, + Secret_MountType_ENV_VAR = 1, + Secret_MountType_FILE = 2, + Secret_MountType_Secret_MountType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + Secret_MountType_Secret_MountType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool Secret_MountType_IsValid(int value); +const Secret_MountType Secret_MountType_MountType_MIN = Secret_MountType_ANY; +const Secret_MountType Secret_MountType_MountType_MAX = Secret_MountType_FILE; +const int Secret_MountType_MountType_ARRAYSIZE = Secret_MountType_MountType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Secret_MountType_descriptor(); +inline const ::std::string& Secret_MountType_Name(Secret_MountType value) { + return ::google::protobuf::internal::NameOfEnum( + Secret_MountType_descriptor(), value); +} +inline bool Secret_MountType_Parse( + const ::std::string& name, Secret_MountType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Secret_MountType_descriptor(), name, value); +} +enum OAuth2TokenRequest_Type { + OAuth2TokenRequest_Type_CLIENT_CREDENTIALS = 0, + OAuth2TokenRequest_Type_OAuth2TokenRequest_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + OAuth2TokenRequest_Type_OAuth2TokenRequest_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool OAuth2TokenRequest_Type_IsValid(int value); +const OAuth2TokenRequest_Type OAuth2TokenRequest_Type_Type_MIN = OAuth2TokenRequest_Type_CLIENT_CREDENTIALS; +const OAuth2TokenRequest_Type OAuth2TokenRequest_Type_Type_MAX = OAuth2TokenRequest_Type_CLIENT_CREDENTIALS; +const int OAuth2TokenRequest_Type_Type_ARRAYSIZE = OAuth2TokenRequest_Type_Type_MAX + 1; + +const ::google::protobuf::EnumDescriptor* OAuth2TokenRequest_Type_descriptor(); +inline const ::std::string& OAuth2TokenRequest_Type_Name(OAuth2TokenRequest_Type value) { + return ::google::protobuf::internal::NameOfEnum( + OAuth2TokenRequest_Type_descriptor(), value); +} +inline bool OAuth2TokenRequest_Type_Parse( + const ::std::string& name, OAuth2TokenRequest_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + OAuth2TokenRequest_Type_descriptor(), name, value); +} +// =================================================================== + +class Secret final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Secret) */ { + public: + Secret(); + virtual ~Secret(); + + Secret(const Secret& from); + + inline Secret& operator=(const Secret& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Secret(Secret&& from) noexcept + : Secret() { + *this = ::std::move(from); + } + + inline Secret& operator=(Secret&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Secret& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Secret* internal_default_instance() { + return reinterpret_cast( + &_Secret_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Secret* other); + friend void swap(Secret& a, Secret& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Secret* New() const final { + return CreateMaybeMessage(nullptr); + } + + Secret* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Secret& from); + void MergeFrom(const Secret& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Secret* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Secret_MountType MountType; + static const MountType ANY = + Secret_MountType_ANY; + static const MountType ENV_VAR = + Secret_MountType_ENV_VAR; + static const MountType FILE = + Secret_MountType_FILE; + static inline bool MountType_IsValid(int value) { + return Secret_MountType_IsValid(value); + } + static const MountType MountType_MIN = + Secret_MountType_MountType_MIN; + static const MountType MountType_MAX = + Secret_MountType_MountType_MAX; + static const int MountType_ARRAYSIZE = + Secret_MountType_MountType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + MountType_descriptor() { + return Secret_MountType_descriptor(); + } + static inline const ::std::string& MountType_Name(MountType value) { + return Secret_MountType_Name(value); + } + static inline bool MountType_Parse(const ::std::string& name, + MountType* value) { + return Secret_MountType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string group = 1; + void clear_group(); + static const int kGroupFieldNumber = 1; + const ::std::string& group() const; + void set_group(const ::std::string& value); + #if LANG_CXX11 + void set_group(::std::string&& value); + #endif + void set_group(const char* value); + void set_group(const char* value, size_t size); + ::std::string* mutable_group(); + ::std::string* release_group(); + void set_allocated_group(::std::string* group); + + // string group_version = 2; + void clear_group_version(); + static const int kGroupVersionFieldNumber = 2; + const ::std::string& group_version() const; + void set_group_version(const ::std::string& value); + #if LANG_CXX11 + void set_group_version(::std::string&& value); + #endif + void set_group_version(const char* value); + void set_group_version(const char* value, size_t size); + ::std::string* mutable_group_version(); + ::std::string* release_group_version(); + void set_allocated_group_version(::std::string* group_version); + + // string key = 3; + void clear_key(); + static const int kKeyFieldNumber = 3; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // .flyteidl.core.Secret.MountType mount_requirement = 4; + void clear_mount_requirement(); + static const int kMountRequirementFieldNumber = 4; + ::flyteidl::core::Secret_MountType mount_requirement() const; + void set_mount_requirement(::flyteidl::core::Secret_MountType value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Secret) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr group_; + ::google::protobuf::internal::ArenaStringPtr group_version_; + ::google::protobuf::internal::ArenaStringPtr key_; + int mount_requirement_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; +}; +// ------------------------------------------------------------------- + +class OAuth2Client final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.OAuth2Client) */ { + public: + OAuth2Client(); + virtual ~OAuth2Client(); + + OAuth2Client(const OAuth2Client& from); + + inline OAuth2Client& operator=(const OAuth2Client& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OAuth2Client(OAuth2Client&& from) noexcept + : OAuth2Client() { + *this = ::std::move(from); + } + + inline OAuth2Client& operator=(OAuth2Client&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const OAuth2Client& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OAuth2Client* internal_default_instance() { + return reinterpret_cast( + &_OAuth2Client_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(OAuth2Client* other); + friend void swap(OAuth2Client& a, OAuth2Client& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OAuth2Client* New() const final { + return CreateMaybeMessage(nullptr); + } + + OAuth2Client* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OAuth2Client& from); + void MergeFrom(const OAuth2Client& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OAuth2Client* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string client_id = 1; + void clear_client_id(); + static const int kClientIdFieldNumber = 1; + const ::std::string& client_id() const; + void set_client_id(const ::std::string& value); + #if LANG_CXX11 + void set_client_id(::std::string&& value); + #endif + void set_client_id(const char* value); + void set_client_id(const char* value, size_t size); + ::std::string* mutable_client_id(); + ::std::string* release_client_id(); + void set_allocated_client_id(::std::string* client_id); + + // .flyteidl.core.Secret client_secret = 2; + bool has_client_secret() const; + void clear_client_secret(); + static const int kClientSecretFieldNumber = 2; + const ::flyteidl::core::Secret& client_secret() const; + ::flyteidl::core::Secret* release_client_secret(); + ::flyteidl::core::Secret* mutable_client_secret(); + void set_allocated_client_secret(::flyteidl::core::Secret* client_secret); + + // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2Client) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr client_id_; + ::flyteidl::core::Secret* client_secret_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; +}; +// ------------------------------------------------------------------- + +class Identity final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Identity) */ { + public: + Identity(); + virtual ~Identity(); + + Identity(const Identity& from); + + inline Identity& operator=(const Identity& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Identity(Identity&& from) noexcept + : Identity() { + *this = ::std::move(from); + } + + inline Identity& operator=(Identity&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Identity& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Identity* internal_default_instance() { + return reinterpret_cast( + &_Identity_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(Identity* other); + friend void swap(Identity& a, Identity& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Identity* New() const final { + return CreateMaybeMessage(nullptr); + } + + Identity* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Identity& from); + void MergeFrom(const Identity& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Identity* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string iam_role = 1; + void clear_iam_role(); + static const int kIamRoleFieldNumber = 1; + const ::std::string& iam_role() const; + void set_iam_role(const ::std::string& value); + #if LANG_CXX11 + void set_iam_role(::std::string&& value); + #endif + void set_iam_role(const char* value); + void set_iam_role(const char* value, size_t size); + ::std::string* mutable_iam_role(); + ::std::string* release_iam_role(); + void set_allocated_iam_role(::std::string* iam_role); + + // string k8s_service_account = 2; + void clear_k8s_service_account(); + static const int kK8SServiceAccountFieldNumber = 2; + const ::std::string& k8s_service_account() const; + void set_k8s_service_account(const ::std::string& value); + #if LANG_CXX11 + void set_k8s_service_account(::std::string&& value); + #endif + void set_k8s_service_account(const char* value); + void set_k8s_service_account(const char* value, size_t size); + ::std::string* mutable_k8s_service_account(); + ::std::string* release_k8s_service_account(); + void set_allocated_k8s_service_account(::std::string* k8s_service_account); + + // string execution_identity = 4; + void clear_execution_identity(); + static const int kExecutionIdentityFieldNumber = 4; + const ::std::string& execution_identity() const; + void set_execution_identity(const ::std::string& value); + #if LANG_CXX11 + void set_execution_identity(::std::string&& value); + #endif + void set_execution_identity(const char* value); + void set_execution_identity(const char* value, size_t size); + ::std::string* mutable_execution_identity(); + ::std::string* release_execution_identity(); + void set_allocated_execution_identity(::std::string* execution_identity); + + // .flyteidl.core.OAuth2Client oauth2_client = 3; + bool has_oauth2_client() const; + void clear_oauth2_client(); + static const int kOauth2ClientFieldNumber = 3; + const ::flyteidl::core::OAuth2Client& oauth2_client() const; + ::flyteidl::core::OAuth2Client* release_oauth2_client(); + ::flyteidl::core::OAuth2Client* mutable_oauth2_client(); + void set_allocated_oauth2_client(::flyteidl::core::OAuth2Client* oauth2_client); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identity) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr iam_role_; + ::google::protobuf::internal::ArenaStringPtr k8s_service_account_; + ::google::protobuf::internal::ArenaStringPtr execution_identity_; + ::flyteidl::core::OAuth2Client* oauth2_client_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; +}; +// ------------------------------------------------------------------- + +class OAuth2TokenRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.OAuth2TokenRequest) */ { + public: + OAuth2TokenRequest(); + virtual ~OAuth2TokenRequest(); + + OAuth2TokenRequest(const OAuth2TokenRequest& from); + + inline OAuth2TokenRequest& operator=(const OAuth2TokenRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OAuth2TokenRequest(OAuth2TokenRequest&& from) noexcept + : OAuth2TokenRequest() { + *this = ::std::move(from); + } + + inline OAuth2TokenRequest& operator=(OAuth2TokenRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const OAuth2TokenRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OAuth2TokenRequest* internal_default_instance() { + return reinterpret_cast( + &_OAuth2TokenRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(OAuth2TokenRequest* other); + friend void swap(OAuth2TokenRequest& a, OAuth2TokenRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OAuth2TokenRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + OAuth2TokenRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OAuth2TokenRequest& from); + void MergeFrom(const OAuth2TokenRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OAuth2TokenRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef OAuth2TokenRequest_Type Type; + static const Type CLIENT_CREDENTIALS = + OAuth2TokenRequest_Type_CLIENT_CREDENTIALS; + static inline bool Type_IsValid(int value) { + return OAuth2TokenRequest_Type_IsValid(value); + } + static const Type Type_MIN = + OAuth2TokenRequest_Type_Type_MIN; + static const Type Type_MAX = + OAuth2TokenRequest_Type_Type_MAX; + static const int Type_ARRAYSIZE = + OAuth2TokenRequest_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Type_descriptor() { + return OAuth2TokenRequest_Type_descriptor(); + } + static inline const ::std::string& Type_Name(Type value) { + return OAuth2TokenRequest_Type_Name(value); + } + static inline bool Type_Parse(const ::std::string& name, + Type* value) { + return OAuth2TokenRequest_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string idp_discovery_endpoint = 4; + void clear_idp_discovery_endpoint(); + static const int kIdpDiscoveryEndpointFieldNumber = 4; + const ::std::string& idp_discovery_endpoint() const; + void set_idp_discovery_endpoint(const ::std::string& value); + #if LANG_CXX11 + void set_idp_discovery_endpoint(::std::string&& value); + #endif + void set_idp_discovery_endpoint(const char* value); + void set_idp_discovery_endpoint(const char* value, size_t size); + ::std::string* mutable_idp_discovery_endpoint(); + ::std::string* release_idp_discovery_endpoint(); + void set_allocated_idp_discovery_endpoint(::std::string* idp_discovery_endpoint); + + // string token_endpoint = 5; + void clear_token_endpoint(); + static const int kTokenEndpointFieldNumber = 5; + const ::std::string& token_endpoint() const; + void set_token_endpoint(const ::std::string& value); + #if LANG_CXX11 + void set_token_endpoint(::std::string&& value); + #endif + void set_token_endpoint(const char* value); + void set_token_endpoint(const char* value, size_t size); + ::std::string* mutable_token_endpoint(); + ::std::string* release_token_endpoint(); + void set_allocated_token_endpoint(::std::string* token_endpoint); + + // .flyteidl.core.OAuth2Client client = 3; + bool has_client() const; + void clear_client(); + static const int kClientFieldNumber = 3; + const ::flyteidl::core::OAuth2Client& client() const; + ::flyteidl::core::OAuth2Client* release_client(); + ::flyteidl::core::OAuth2Client* mutable_client(); + void set_allocated_client(::flyteidl::core::OAuth2Client* client); + + // .flyteidl.core.OAuth2TokenRequest.Type type = 2; + void clear_type(); + static const int kTypeFieldNumber = 2; + ::flyteidl::core::OAuth2TokenRequest_Type type() const; + void set_type(::flyteidl::core::OAuth2TokenRequest_Type value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2TokenRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr idp_discovery_endpoint_; + ::google::protobuf::internal::ArenaStringPtr token_endpoint_; + ::flyteidl::core::OAuth2Client* client_; + int type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; +}; +// ------------------------------------------------------------------- + +class SecurityContext final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SecurityContext) */ { + public: + SecurityContext(); + virtual ~SecurityContext(); + + SecurityContext(const SecurityContext& from); + + inline SecurityContext& operator=(const SecurityContext& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SecurityContext(SecurityContext&& from) noexcept + : SecurityContext() { + *this = ::std::move(from); + } + + inline SecurityContext& operator=(SecurityContext&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SecurityContext& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SecurityContext* internal_default_instance() { + return reinterpret_cast( + &_SecurityContext_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(SecurityContext* other); + friend void swap(SecurityContext& a, SecurityContext& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SecurityContext* New() const final { + return CreateMaybeMessage(nullptr); + } + + SecurityContext* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SecurityContext& from); + void MergeFrom(const SecurityContext& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SecurityContext* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Secret secrets = 2; + int secrets_size() const; + void clear_secrets(); + static const int kSecretsFieldNumber = 2; + ::flyteidl::core::Secret* mutable_secrets(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >* + mutable_secrets(); + const ::flyteidl::core::Secret& secrets(int index) const; + ::flyteidl::core::Secret* add_secrets(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >& + secrets() const; + + // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + int tokens_size() const; + void clear_tokens(); + static const int kTokensFieldNumber = 3; + ::flyteidl::core::OAuth2TokenRequest* mutable_tokens(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >* + mutable_tokens(); + const ::flyteidl::core::OAuth2TokenRequest& tokens(int index) const; + ::flyteidl::core::OAuth2TokenRequest* add_tokens(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >& + tokens() const; + + // .flyteidl.core.Identity run_as = 1; + bool has_run_as() const; + void clear_run_as(); + static const int kRunAsFieldNumber = 1; + const ::flyteidl::core::Identity& run_as() const; + ::flyteidl::core::Identity* release_run_as(); + ::flyteidl::core::Identity* mutable_run_as(); + void set_allocated_run_as(::flyteidl::core::Identity* run_as); + + // @@protoc_insertion_point(class_scope:flyteidl.core.SecurityContext) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret > secrets_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest > tokens_; + ::flyteidl::core::Identity* run_as_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Secret + +// string group = 1; +inline void Secret::clear_group() { + group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Secret::group() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Secret.group) + return group_.GetNoArena(); +} +inline void Secret::set_group(const ::std::string& value) { + + group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Secret.group) +} +#if LANG_CXX11 +inline void Secret::set_group(::std::string&& value) { + + group_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Secret.group) +} +#endif +inline void Secret::set_group(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Secret.group) +} +inline void Secret::set_group(const char* value, size_t size) { + + group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Secret.group) +} +inline ::std::string* Secret::mutable_group() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Secret.group) + return group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Secret::release_group() { + // @@protoc_insertion_point(field_release:flyteidl.core.Secret.group) + + return group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Secret::set_allocated_group(::std::string* group) { + if (group != nullptr) { + + } else { + + } + group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), group); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Secret.group) +} + +// string group_version = 2; +inline void Secret::clear_group_version() { + group_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Secret::group_version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Secret.group_version) + return group_version_.GetNoArena(); +} +inline void Secret::set_group_version(const ::std::string& value) { + + group_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Secret.group_version) +} +#if LANG_CXX11 +inline void Secret::set_group_version(::std::string&& value) { + + group_version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Secret.group_version) +} +#endif +inline void Secret::set_group_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + group_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Secret.group_version) +} +inline void Secret::set_group_version(const char* value, size_t size) { + + group_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Secret.group_version) +} +inline ::std::string* Secret::mutable_group_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Secret.group_version) + return group_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Secret::release_group_version() { + // @@protoc_insertion_point(field_release:flyteidl.core.Secret.group_version) + + return group_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Secret::set_allocated_group_version(::std::string* group_version) { + if (group_version != nullptr) { + + } else { + + } + group_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), group_version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Secret.group_version) +} + +// string key = 3; +inline void Secret::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Secret::key() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Secret.key) + return key_.GetNoArena(); +} +inline void Secret::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Secret.key) +} +#if LANG_CXX11 +inline void Secret::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Secret.key) +} +#endif +inline void Secret::set_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Secret.key) +} +inline void Secret::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Secret.key) +} +inline ::std::string* Secret::mutable_key() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Secret.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Secret::release_key() { + // @@protoc_insertion_point(field_release:flyteidl.core.Secret.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Secret::set_allocated_key(::std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Secret.key) +} + +// .flyteidl.core.Secret.MountType mount_requirement = 4; +inline void Secret::clear_mount_requirement() { + mount_requirement_ = 0; +} +inline ::flyteidl::core::Secret_MountType Secret::mount_requirement() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Secret.mount_requirement) + return static_cast< ::flyteidl::core::Secret_MountType >(mount_requirement_); +} +inline void Secret::set_mount_requirement(::flyteidl::core::Secret_MountType value) { + + mount_requirement_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Secret.mount_requirement) +} + +// ------------------------------------------------------------------- + +// OAuth2Client + +// string client_id = 1; +inline void OAuth2Client::clear_client_id() { + client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2Client::client_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2Client.client_id) + return client_id_.GetNoArena(); +} +inline void OAuth2Client::set_client_id(const ::std::string& value) { + + client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2Client.client_id) +} +#if LANG_CXX11 +inline void OAuth2Client::set_client_id(::std::string&& value) { + + client_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2Client.client_id) +} +#endif +inline void OAuth2Client::set_client_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2Client.client_id) +} +inline void OAuth2Client::set_client_id(const char* value, size_t size) { + + client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2Client.client_id) +} +inline ::std::string* OAuth2Client::mutable_client_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2Client.client_id) + return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2Client::release_client_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2Client.client_id) + + return client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2Client::set_allocated_client_id(::std::string* client_id) { + if (client_id != nullptr) { + + } else { + + } + client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2Client.client_id) +} + +// .flyteidl.core.Secret client_secret = 2; +inline bool OAuth2Client::has_client_secret() const { + return this != internal_default_instance() && client_secret_ != nullptr; +} +inline void OAuth2Client::clear_client_secret() { + if (GetArenaNoVirtual() == nullptr && client_secret_ != nullptr) { + delete client_secret_; + } + client_secret_ = nullptr; +} +inline const ::flyteidl::core::Secret& OAuth2Client::client_secret() const { + const ::flyteidl::core::Secret* p = client_secret_; + // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2Client.client_secret) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Secret_default_instance_); +} +inline ::flyteidl::core::Secret* OAuth2Client::release_client_secret() { + // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2Client.client_secret) + + ::flyteidl::core::Secret* temp = client_secret_; + client_secret_ = nullptr; + return temp; +} +inline ::flyteidl::core::Secret* OAuth2Client::mutable_client_secret() { + + if (client_secret_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Secret>(GetArenaNoVirtual()); + client_secret_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2Client.client_secret) + return client_secret_; +} +inline void OAuth2Client::set_allocated_client_secret(::flyteidl::core::Secret* client_secret) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete client_secret_; + } + if (client_secret) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + client_secret = ::google::protobuf::internal::GetOwnedMessage( + message_arena, client_secret, submessage_arena); + } + + } else { + + } + client_secret_ = client_secret; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2Client.client_secret) +} + +// ------------------------------------------------------------------- + +// Identity + +// string iam_role = 1; +inline void Identity::clear_iam_role() { + iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identity::iam_role() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identity.iam_role) + return iam_role_.GetNoArena(); +} +inline void Identity::set_iam_role(const ::std::string& value) { + + iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identity.iam_role) +} +#if LANG_CXX11 +inline void Identity::set_iam_role(::std::string&& value) { + + iam_role_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identity.iam_role) +} +#endif +inline void Identity::set_iam_role(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identity.iam_role) +} +inline void Identity::set_iam_role(const char* value, size_t size) { + + iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identity.iam_role) +} +inline ::std::string* Identity::mutable_iam_role() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.iam_role) + return iam_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identity::release_iam_role() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identity.iam_role) + + return iam_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identity::set_allocated_iam_role(::std::string* iam_role) { + if (iam_role != nullptr) { + + } else { + + } + iam_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), iam_role); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.iam_role) +} + +// string k8s_service_account = 2; +inline void Identity::clear_k8s_service_account() { + k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identity::k8s_service_account() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identity.k8s_service_account) + return k8s_service_account_.GetNoArena(); +} +inline void Identity::set_k8s_service_account(const ::std::string& value) { + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identity.k8s_service_account) +} +#if LANG_CXX11 +inline void Identity::set_k8s_service_account(::std::string&& value) { + + k8s_service_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identity.k8s_service_account) +} +#endif +inline void Identity::set_k8s_service_account(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identity.k8s_service_account) +} +inline void Identity::set_k8s_service_account(const char* value, size_t size) { + + k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identity.k8s_service_account) +} +inline ::std::string* Identity::mutable_k8s_service_account() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.k8s_service_account) + return k8s_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identity::release_k8s_service_account() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identity.k8s_service_account) + + return k8s_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identity::set_allocated_k8s_service_account(::std::string* k8s_service_account) { + if (k8s_service_account != nullptr) { + + } else { + + } + k8s_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), k8s_service_account); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.k8s_service_account) +} + +// .flyteidl.core.OAuth2Client oauth2_client = 3; +inline bool Identity::has_oauth2_client() const { + return this != internal_default_instance() && oauth2_client_ != nullptr; +} +inline void Identity::clear_oauth2_client() { + if (GetArenaNoVirtual() == nullptr && oauth2_client_ != nullptr) { + delete oauth2_client_; + } + oauth2_client_ = nullptr; +} +inline const ::flyteidl::core::OAuth2Client& Identity::oauth2_client() const { + const ::flyteidl::core::OAuth2Client* p = oauth2_client_; + // @@protoc_insertion_point(field_get:flyteidl.core.Identity.oauth2_client) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_OAuth2Client_default_instance_); +} +inline ::flyteidl::core::OAuth2Client* Identity::release_oauth2_client() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identity.oauth2_client) + + ::flyteidl::core::OAuth2Client* temp = oauth2_client_; + oauth2_client_ = nullptr; + return temp; +} +inline ::flyteidl::core::OAuth2Client* Identity::mutable_oauth2_client() { + + if (oauth2_client_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::OAuth2Client>(GetArenaNoVirtual()); + oauth2_client_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.oauth2_client) + return oauth2_client_; +} +inline void Identity::set_allocated_oauth2_client(::flyteidl::core::OAuth2Client* oauth2_client) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete oauth2_client_; + } + if (oauth2_client) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + oauth2_client = ::google::protobuf::internal::GetOwnedMessage( + message_arena, oauth2_client, submessage_arena); + } + + } else { + + } + oauth2_client_ = oauth2_client; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.oauth2_client) +} + +// string execution_identity = 4; +inline void Identity::clear_execution_identity() { + execution_identity_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identity::execution_identity() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identity.execution_identity) + return execution_identity_.GetNoArena(); +} +inline void Identity::set_execution_identity(const ::std::string& value) { + + execution_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identity.execution_identity) +} +#if LANG_CXX11 +inline void Identity::set_execution_identity(::std::string&& value) { + + execution_identity_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identity.execution_identity) +} +#endif +inline void Identity::set_execution_identity(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + execution_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identity.execution_identity) +} +inline void Identity::set_execution_identity(const char* value, size_t size) { + + execution_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identity.execution_identity) +} +inline ::std::string* Identity::mutable_execution_identity() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.execution_identity) + return execution_identity_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identity::release_execution_identity() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identity.execution_identity) + + return execution_identity_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identity::set_allocated_execution_identity(::std::string* execution_identity) { + if (execution_identity != nullptr) { + + } else { + + } + execution_identity_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), execution_identity); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.execution_identity) +} + +// ------------------------------------------------------------------- + +// OAuth2TokenRequest + +// string name = 1; +inline void OAuth2TokenRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2TokenRequest::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.name) + return name_.GetNoArena(); +} +inline void OAuth2TokenRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.name) +} +#if LANG_CXX11 +inline void OAuth2TokenRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2TokenRequest.name) +} +#endif +inline void OAuth2TokenRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2TokenRequest.name) +} +inline void OAuth2TokenRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2TokenRequest.name) +} +inline ::std::string* OAuth2TokenRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2TokenRequest::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2TokenRequest::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.name) +} + +// .flyteidl.core.OAuth2TokenRequest.Type type = 2; +inline void OAuth2TokenRequest::clear_type() { + type_ = 0; +} +inline ::flyteidl::core::OAuth2TokenRequest_Type OAuth2TokenRequest::type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.type) + return static_cast< ::flyteidl::core::OAuth2TokenRequest_Type >(type_); +} +inline void OAuth2TokenRequest::set_type(::flyteidl::core::OAuth2TokenRequest_Type value) { + + type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.type) +} + +// .flyteidl.core.OAuth2Client client = 3; +inline bool OAuth2TokenRequest::has_client() const { + return this != internal_default_instance() && client_ != nullptr; +} +inline void OAuth2TokenRequest::clear_client() { + if (GetArenaNoVirtual() == nullptr && client_ != nullptr) { + delete client_; + } + client_ = nullptr; +} +inline const ::flyteidl::core::OAuth2Client& OAuth2TokenRequest::client() const { + const ::flyteidl::core::OAuth2Client* p = client_; + // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.client) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_OAuth2Client_default_instance_); +} +inline ::flyteidl::core::OAuth2Client* OAuth2TokenRequest::release_client() { + // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.client) + + ::flyteidl::core::OAuth2Client* temp = client_; + client_ = nullptr; + return temp; +} +inline ::flyteidl::core::OAuth2Client* OAuth2TokenRequest::mutable_client() { + + if (client_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::OAuth2Client>(GetArenaNoVirtual()); + client_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.client) + return client_; +} +inline void OAuth2TokenRequest::set_allocated_client(::flyteidl::core::OAuth2Client* client) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete client_; + } + if (client) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + client = ::google::protobuf::internal::GetOwnedMessage( + message_arena, client, submessage_arena); + } + + } else { + + } + client_ = client; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.client) +} + +// string idp_discovery_endpoint = 4; +inline void OAuth2TokenRequest::clear_idp_discovery_endpoint() { + idp_discovery_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2TokenRequest::idp_discovery_endpoint() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) + return idp_discovery_endpoint_.GetNoArena(); +} +inline void OAuth2TokenRequest::set_idp_discovery_endpoint(const ::std::string& value) { + + idp_discovery_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) +} +#if LANG_CXX11 +inline void OAuth2TokenRequest::set_idp_discovery_endpoint(::std::string&& value) { + + idp_discovery_endpoint_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) +} +#endif +inline void OAuth2TokenRequest::set_idp_discovery_endpoint(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + idp_discovery_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) +} +inline void OAuth2TokenRequest::set_idp_discovery_endpoint(const char* value, size_t size) { + + idp_discovery_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) +} +inline ::std::string* OAuth2TokenRequest::mutable_idp_discovery_endpoint() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) + return idp_discovery_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2TokenRequest::release_idp_discovery_endpoint() { + // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) + + return idp_discovery_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2TokenRequest::set_allocated_idp_discovery_endpoint(::std::string* idp_discovery_endpoint) { + if (idp_discovery_endpoint != nullptr) { + + } else { + + } + idp_discovery_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), idp_discovery_endpoint); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) +} + +// string token_endpoint = 5; +inline void OAuth2TokenRequest::clear_token_endpoint() { + token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2TokenRequest::token_endpoint() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.token_endpoint) + return token_endpoint_.GetNoArena(); +} +inline void OAuth2TokenRequest::set_token_endpoint(const ::std::string& value) { + + token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.token_endpoint) +} +#if LANG_CXX11 +inline void OAuth2TokenRequest::set_token_endpoint(::std::string&& value) { + + token_endpoint_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2TokenRequest.token_endpoint) +} +#endif +inline void OAuth2TokenRequest::set_token_endpoint(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2TokenRequest.token_endpoint) +} +inline void OAuth2TokenRequest::set_token_endpoint(const char* value, size_t size) { + + token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2TokenRequest.token_endpoint) +} +inline ::std::string* OAuth2TokenRequest::mutable_token_endpoint() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.token_endpoint) + return token_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2TokenRequest::release_token_endpoint() { + // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.token_endpoint) + + return token_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2TokenRequest::set_allocated_token_endpoint(::std::string* token_endpoint) { + if (token_endpoint != nullptr) { + + } else { + + } + token_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token_endpoint); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.token_endpoint) +} + +// ------------------------------------------------------------------- + +// SecurityContext + +// .flyteidl.core.Identity run_as = 1; +inline bool SecurityContext::has_run_as() const { + return this != internal_default_instance() && run_as_ != nullptr; +} +inline void SecurityContext::clear_run_as() { + if (GetArenaNoVirtual() == nullptr && run_as_ != nullptr) { + delete run_as_; + } + run_as_ = nullptr; +} +inline const ::flyteidl::core::Identity& SecurityContext::run_as() const { + const ::flyteidl::core::Identity* p = run_as_; + // @@protoc_insertion_point(field_get:flyteidl.core.SecurityContext.run_as) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identity_default_instance_); +} +inline ::flyteidl::core::Identity* SecurityContext::release_run_as() { + // @@protoc_insertion_point(field_release:flyteidl.core.SecurityContext.run_as) + + ::flyteidl::core::Identity* temp = run_as_; + run_as_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identity* SecurityContext::mutable_run_as() { + + if (run_as_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identity>(GetArenaNoVirtual()); + run_as_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.SecurityContext.run_as) + return run_as_; +} +inline void SecurityContext::set_allocated_run_as(::flyteidl::core::Identity* run_as) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete run_as_; + } + if (run_as) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + run_as = ::google::protobuf::internal::GetOwnedMessage( + message_arena, run_as, submessage_arena); + } + + } else { + + } + run_as_ = run_as; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SecurityContext.run_as) +} + +// repeated .flyteidl.core.Secret secrets = 2; +inline int SecurityContext::secrets_size() const { + return secrets_.size(); +} +inline void SecurityContext::clear_secrets() { + secrets_.Clear(); +} +inline ::flyteidl::core::Secret* SecurityContext::mutable_secrets(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.SecurityContext.secrets) + return secrets_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >* +SecurityContext::mutable_secrets() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.SecurityContext.secrets) + return &secrets_; +} +inline const ::flyteidl::core::Secret& SecurityContext::secrets(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.SecurityContext.secrets) + return secrets_.Get(index); +} +inline ::flyteidl::core::Secret* SecurityContext::add_secrets() { + // @@protoc_insertion_point(field_add:flyteidl.core.SecurityContext.secrets) + return secrets_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >& +SecurityContext::secrets() const { + // @@protoc_insertion_point(field_list:flyteidl.core.SecurityContext.secrets) + return secrets_; +} + +// repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; +inline int SecurityContext::tokens_size() const { + return tokens_.size(); +} +inline void SecurityContext::clear_tokens() { + tokens_.Clear(); +} +inline ::flyteidl::core::OAuth2TokenRequest* SecurityContext::mutable_tokens(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.SecurityContext.tokens) + return tokens_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >* +SecurityContext::mutable_tokens() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.SecurityContext.tokens) + return &tokens_; +} +inline const ::flyteidl::core::OAuth2TokenRequest& SecurityContext::tokens(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.SecurityContext.tokens) + return tokens_.Get(index); +} +inline ::flyteidl::core::OAuth2TokenRequest* SecurityContext::add_tokens() { + // @@protoc_insertion_point(field_add:flyteidl.core.SecurityContext.tokens) + return tokens_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >& +SecurityContext::tokens() const { + // @@protoc_insertion_point(field_list:flyteidl.core.SecurityContext.tokens) + return tokens_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::Secret_MountType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Secret_MountType>() { + return ::flyteidl::core::Secret_MountType_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::OAuth2TokenRequest_Type> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::OAuth2TokenRequest_Type>() { + return ::flyteidl::core::OAuth2TokenRequest_Type_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fsecurity_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc new file mode 100644 index 0000000000..50c654c88e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/tasks.proto + +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/tasks.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h new file mode 100644 index 0000000000..f1499d007f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/tasks.proto +#ifndef GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED + +#include "flyteidl/core/tasks.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc new file mode 100644 index 0000000000..54fb10724d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc @@ -0,0 +1,7558 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +#include "flyteidl/core/tasks.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Container_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; +namespace flyteidl { +namespace core { +class Resources_ResourceEntryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Resources_ResourceEntry_default_instance_; +class ResourcesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Resources_default_instance_; +class RuntimeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _RuntimeMetadata_default_instance_; +class TaskMetadata_TagsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskMetadata_TagsEntry_DoNotUse_default_instance_; +class TaskMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + bool interruptible_; +} _TaskMetadata_default_instance_; +class TaskTemplate_ConfigEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskTemplate_ConfigEntry_DoNotUse_default_instance_; +class TaskTemplateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Container* container_; + const ::flyteidl::core::K8sPod* k8s_pod_; + const ::flyteidl::core::Sql* sql_; +} _TaskTemplate_default_instance_; +class ContainerPortDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ContainerPort_default_instance_; +class ContainerDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Container_default_instance_; +class IOStrategyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IOStrategy_default_instance_; +class DataLoadingConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DataLoadingConfig_default_instance_; +class K8sPodDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _K8sPod_default_instance_; +class K8sObjectMetadata_LabelsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_; +class K8sObjectMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_; +class K8sObjectMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _K8sObjectMetadata_default_instance_; +class SqlDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Sql_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsResources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Resources_ResourceEntry_default_instance_; + new (ptr) ::flyteidl::core::Resources_ResourceEntry(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Resources_ResourceEntry::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsResources_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Resources_default_instance_; + new (ptr) ::flyteidl::core::Resources(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Resources::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsResources_flyteidl_2fcore_2ftasks_2eproto}, { + &scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsRuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_RuntimeMetadata_default_instance_; + new (ptr) ::flyteidl::core::RuntimeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::RuntimeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsTaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskMetadata_TagsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse(); + } + ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsTaskMetadata_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskMetadata_default_instance_; + new (ptr) ::flyteidl::core::TaskMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTaskMetadata_flyteidl_2fcore_2ftasks_2eproto}, { + &scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, + &scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsTaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskTemplate_ConfigEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse(); + } + ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsTaskTemplate_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskTemplate_default_instance_; + new (ptr) ::flyteidl::core::TaskTemplate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskTemplate::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsTaskTemplate_flyteidl_2fcore_2ftasks_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base, + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, + &scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, + &scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsContainerPort_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ContainerPort_default_instance_; + new (ptr) ::flyteidl::core::ContainerPort(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ContainerPort::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerPort_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsContainer_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Container_default_instance_; + new (ptr) ::flyteidl::core::Container(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Container::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_Container_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsContainer_flyteidl_2fcore_2ftasks_2eproto}, { + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsIOStrategy_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_IOStrategy_default_instance_; + new (ptr) ::flyteidl::core::IOStrategy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::IOStrategy::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIOStrategy_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsDataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_DataLoadingConfig_default_instance_; + new (ptr) ::flyteidl::core::DataLoadingConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::DataLoadingConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto}, { + &scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsK8sPod_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_K8sPod_default_instance_; + new (ptr) ::flyteidl::core::K8sPod(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::K8sPod::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsK8sPod_flyteidl_2fcore_2ftasks_2eproto}, { + &scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, + &scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsK8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse(); + } + ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsK8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsK8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse(); + } + ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsK8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +static void InitDefaultsK8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_K8sObjectMetadata_default_instance_; + new (ptr) ::flyteidl::core::K8sObjectMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::K8sObjectMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsK8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto}, { + &scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base, + &scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsSql_flyteidl_2fcore_2ftasks_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Sql_default_instance_; + new (ptr) ::flyteidl::core::Sql(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Sql::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSql_flyteidl_2fcore_2ftasks_2eproto}, {}}; + +void InitDefaults_flyteidl_2fcore_2ftasks_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[16]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[7]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2ftasks_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2ftasks_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources, requests_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources, limits_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, flavor_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, discoverable_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, runtime_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, timeout_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, retries_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, discovery_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, deprecated_error_message_), + offsetof(::flyteidl::core::TaskMetadataDefaultTypeInternal, interruptible_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, cache_serializable_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, generates_deck_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, tags_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, pod_template_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, interruptible_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, interface_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, custom_), + offsetof(::flyteidl::core::TaskTemplateDefaultTypeInternal, container_), + offsetof(::flyteidl::core::TaskTemplateDefaultTypeInternal, k8s_pod_), + offsetof(::flyteidl::core::TaskTemplateDefaultTypeInternal, sql_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, task_type_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, security_context_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, target_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerPort, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerPort, container_port_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, image_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, command_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, args_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, resources_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, env_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, ports_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, data_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, architecture_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IOStrategy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IOStrategy, download_mode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IOStrategy, upload_mode_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, enabled_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, input_path_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, output_path_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, format_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, io_strategy_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, pod_spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, data_config_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata, labels_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata, annotations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Sql, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Sql, statement_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Sql, dialect_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Resources_ResourceEntry)}, + { 7, -1, sizeof(::flyteidl::core::Resources)}, + { 14, -1, sizeof(::flyteidl::core::RuntimeMetadata)}, + { 22, 29, sizeof(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse)}, + { 31, -1, sizeof(::flyteidl::core::TaskMetadata)}, + { 48, 55, sizeof(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse)}, + { 57, -1, sizeof(::flyteidl::core::TaskTemplate)}, + { 74, -1, sizeof(::flyteidl::core::ContainerPort)}, + { 80, -1, sizeof(::flyteidl::core::Container)}, + { 94, -1, sizeof(::flyteidl::core::IOStrategy)}, + { 101, -1, sizeof(::flyteidl::core::DataLoadingConfig)}, + { 111, -1, sizeof(::flyteidl::core::K8sPod)}, + { 119, 126, sizeof(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse)}, + { 128, 135, sizeof(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse)}, + { 137, -1, sizeof(::flyteidl::core::K8sObjectMetadata)}, + { 144, -1, sizeof(::flyteidl::core::Sql)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Resources_ResourceEntry_default_instance_), + reinterpret_cast(&::flyteidl::core::_Resources_default_instance_), + reinterpret_cast(&::flyteidl::core::_RuntimeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskMetadata_TagsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskTemplate_ConfigEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskTemplate_default_instance_), + reinterpret_cast(&::flyteidl::core::_ContainerPort_default_instance_), + reinterpret_cast(&::flyteidl::core::_Container_default_instance_), + reinterpret_cast(&::flyteidl::core::_IOStrategy_default_instance_), + reinterpret_cast(&::flyteidl::core::_DataLoadingConfig_default_instance_), + reinterpret_cast(&::flyteidl::core::_K8sPod_default_instance_), + reinterpret_cast(&::flyteidl::core::_K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_K8sObjectMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_Sql_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, "flyteidl/core/tasks.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2ftasks_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2ftasks_2eproto, 16, file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto, file_level_service_descriptors_flyteidl_2fcore_2ftasks_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2ftasks_2eproto[] = + "\n\031flyteidl/core/tasks.proto\022\rflyteidl.co" + "re\032\036flyteidl/core/identifier.proto\032\035flyt" + "eidl/core/interface.proto\032\034flyteidl/core" + "/literals.proto\032\034flyteidl/core/security." + "proto\032\036google/protobuf/duration.proto\032\034g" + "oogle/protobuf/struct.proto\"\261\002\n\tResource" + "s\0228\n\010requests\030\001 \003(\0132&.flyteidl.core.Reso" + "urces.ResourceEntry\0226\n\006limits\030\002 \003(\0132&.fl" + "yteidl.core.Resources.ResourceEntry\032S\n\rR" + "esourceEntry\0223\n\004name\030\001 \001(\0162%.flyteidl.co" + "re.Resources.ResourceName\022\r\n\005value\030\002 \001(\t" + "\"]\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022\007\n\003CPU\020\001\022\007" + "\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE\020\004\022\025\n\021EPHE" + "MERAL_STORAGE\020\005\"\225\001\n\017RuntimeMetadata\0228\n\004t" + "ype\030\001 \001(\0162*.flyteidl.core.RuntimeMetadat" + "a.RuntimeType\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor" + "\030\003 \001(\t\"\'\n\013RuntimeType\022\t\n\005OTHER\020\000\022\r\n\tFLYT" + "E_SDK\020\001\"\316\003\n\014TaskMetadata\022\024\n\014discoverable" + "\030\001 \001(\010\022/\n\007runtime\030\002 \001(\0132\036.flyteidl.core." + "RuntimeMetadata\022*\n\007timeout\030\004 \001(\0132\031.googl" + "e.protobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.f" + "lyteidl.core.RetryStrategy\022\031\n\021discovery_" + "version\030\006 \001(\t\022 \n\030deprecated_error_messag" + "e\030\007 \001(\t\022\027\n\rinterruptible\030\010 \001(\010H\000\022\032\n\022cach" + "e_serializable\030\t \001(\010\022\026\n\016generates_deck\030\n" + " \001(\010\0223\n\004tags\030\013 \003(\0132%.flyteidl.core.TaskM" + "etadata.TagsEntry\022\031\n\021pod_template_name\030\014" + " \001(\t\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001B\025\n\023interruptible_value\"\220\004\n\014Tas" + "kTemplate\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Id" + "entifier\022\014\n\004type\030\002 \001(\t\022-\n\010metadata\030\003 \001(\013" + "2\033.flyteidl.core.TaskMetadata\0220\n\tinterfa" + "ce\030\004 \001(\0132\035.flyteidl.core.TypedInterface\022" + "\'\n\006custom\030\005 \001(\0132\027.google.protobuf.Struct" + "\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl.core.Cont" + "ainerH\000\022(\n\007k8s_pod\030\021 \001(\0132\025.flyteidl.core" + ".K8sPodH\000\022!\n\003sql\030\022 \001(\0132\022.flyteidl.core.S" + "qlH\000\022\031\n\021task_type_version\030\007 \001(\005\0228\n\020secur" + "ity_context\030\010 \001(\0132\036.flyteidl.core.Securi" + "tyContext\0227\n\006config\030\020 \003(\0132\'.flyteidl.cor" + "e.TaskTemplate.ConfigEntry\032-\n\013ConfigEntr" + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006tar" + "get\"\'\n\rContainerPort\022\026\n\016container_port\030\001" + " \001(\r\"\255\003\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007com" + "mand\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022+\n\tresources\030\004 " + "\001(\0132\030.flyteidl.core.Resources\022(\n\003env\030\005 \003" + "(\0132\033.flyteidl.core.KeyValuePair\022/\n\006confi" + "g\030\006 \003(\0132\033.flyteidl.core.KeyValuePairB\002\030\001" + "\022+\n\005ports\030\007 \003(\0132\034.flyteidl.core.Containe" + "rPort\0225\n\013data_config\030\t \001(\0132 .flyteidl.co" + "re.DataLoadingConfig\022;\n\014architecture\030\n \001" + "(\0162%.flyteidl.core.Container.Architectur" + "e\"I\n\014Architecture\022\013\n\007UNKNOWN\020\000\022\t\n\005AMD64\020" + "\001\022\t\n\005ARM64\020\002\022\n\n\006ARM_V6\020\003\022\n\n\006ARM_V7\020\004\"\233\002\n" + "\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&.fly" + "teidl.core.IOStrategy.DownloadMode\0229\n\013up" + "load_mode\030\002 \001(\0162$.flyteidl.core.IOStrate" + "gy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOWNLOA" + "D_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO_NOT" + "_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_ON_E" + "XIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UPLOAD" + "\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030\001 \001(" + "\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path\030\003 \001" + "(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.DataL" + "oadingConfig.LiteralMapFormat\022.\n\013io_stra" + "tegy\030\005 \001(\0132\031.flyteidl.core.IOStrategy\"1\n" + "\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020\001\022\t\n" + "\005PROTO\020\002\"\236\001\n\006K8sPod\0222\n\010metadata\030\001 \001(\0132 ." + "flyteidl.core.K8sObjectMetadata\022)\n\010pod_s" + "pec\030\002 \001(\0132\027.google.protobuf.Struct\0225\n\013da" + "ta_config\030\003 \001(\0132 .flyteidl.core.DataLoad" + "ingConfig\"\374\001\n\021K8sObjectMetadata\022<\n\006label" + "s\030\001 \003(\0132,.flyteidl.core.K8sObjectMetadat" + "a.LabelsEntry\022F\n\013annotations\030\002 \003(\01321.fly" + "teidl.core.K8sObjectMetadata.Annotations" + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"~\n\003Sql\022\021\n\tstate" + "ment\030\001 \001(\t\022+\n\007dialect\030\002 \001(\0162\032.flyteidl.c" + "ore.Sql.Dialect\"7\n\007Dialect\022\r\n\tUNDEFINED\020" + "\000\022\010\n\004ANSI\020\001\022\010\n\004HIVE\020\002\022\t\n\005OTHER\020\003B6Z4gith" + "ub.com/flyteorg/flyteidl/gen/pb-go/flyte" + "idl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2ftasks_2eproto = { + false, InitDefaults_flyteidl_2fcore_2ftasks_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2ftasks_2eproto, + "flyteidl/core/tasks.proto", &assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto, 3296, +}; + +void AddDescriptors_flyteidl_2fcore_2ftasks_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[6] = + { + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2ftasks_2eproto, deps, 6); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2ftasks_2eproto = []() { AddDescriptors_flyteidl_2fcore_2ftasks_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* Resources_ResourceName_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[0]; +} +bool Resources_ResourceName_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Resources_ResourceName Resources::UNKNOWN; +const Resources_ResourceName Resources::CPU; +const Resources_ResourceName Resources::GPU; +const Resources_ResourceName Resources::MEMORY; +const Resources_ResourceName Resources::STORAGE; +const Resources_ResourceName Resources::EPHEMERAL_STORAGE; +const Resources_ResourceName Resources::ResourceName_MIN; +const Resources_ResourceName Resources::ResourceName_MAX; +const int Resources::ResourceName_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* RuntimeMetadata_RuntimeType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[1]; +} +bool RuntimeMetadata_RuntimeType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const RuntimeMetadata_RuntimeType RuntimeMetadata::OTHER; +const RuntimeMetadata_RuntimeType RuntimeMetadata::FLYTE_SDK; +const RuntimeMetadata_RuntimeType RuntimeMetadata::RuntimeType_MIN; +const RuntimeMetadata_RuntimeType RuntimeMetadata::RuntimeType_MAX; +const int RuntimeMetadata::RuntimeType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* Container_Architecture_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[2]; +} +bool Container_Architecture_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Container_Architecture Container::UNKNOWN; +const Container_Architecture Container::AMD64; +const Container_Architecture Container::ARM64; +const Container_Architecture Container::ARM_V6; +const Container_Architecture Container::ARM_V7; +const Container_Architecture Container::Architecture_MIN; +const Container_Architecture Container::Architecture_MAX; +const int Container::Architecture_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* IOStrategy_DownloadMode_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[3]; +} +bool IOStrategy_DownloadMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const IOStrategy_DownloadMode IOStrategy::DOWNLOAD_EAGER; +const IOStrategy_DownloadMode IOStrategy::DOWNLOAD_STREAM; +const IOStrategy_DownloadMode IOStrategy::DO_NOT_DOWNLOAD; +const IOStrategy_DownloadMode IOStrategy::DownloadMode_MIN; +const IOStrategy_DownloadMode IOStrategy::DownloadMode_MAX; +const int IOStrategy::DownloadMode_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* IOStrategy_UploadMode_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[4]; +} +bool IOStrategy_UploadMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const IOStrategy_UploadMode IOStrategy::UPLOAD_ON_EXIT; +const IOStrategy_UploadMode IOStrategy::UPLOAD_EAGER; +const IOStrategy_UploadMode IOStrategy::DO_NOT_UPLOAD; +const IOStrategy_UploadMode IOStrategy::UploadMode_MIN; +const IOStrategy_UploadMode IOStrategy::UploadMode_MAX; +const int IOStrategy::UploadMode_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* DataLoadingConfig_LiteralMapFormat_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[5]; +} +bool DataLoadingConfig_LiteralMapFormat_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::JSON; +const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::YAML; +const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::PROTO; +const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::LiteralMapFormat_MIN; +const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::LiteralMapFormat_MAX; +const int DataLoadingConfig::LiteralMapFormat_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* Sql_Dialect_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[6]; +} +bool Sql_Dialect_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Sql_Dialect Sql::UNDEFINED; +const Sql_Dialect Sql::ANSI; +const Sql_Dialect Sql::HIVE; +const Sql_Dialect Sql::OTHER; +const Sql_Dialect Sql::Dialect_MIN; +const Sql_Dialect Sql::Dialect_MAX; +const int Sql::Dialect_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void Resources_ResourceEntry::InitAsDefaultInstance() { +} +class Resources_ResourceEntry::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Resources_ResourceEntry::kNameFieldNumber; +const int Resources_ResourceEntry::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Resources_ResourceEntry::Resources_ResourceEntry() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Resources.ResourceEntry) +} +Resources_ResourceEntry::Resources_ResourceEntry(const Resources_ResourceEntry& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + name_ = from.name_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Resources.ResourceEntry) +} + +void Resources_ResourceEntry::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_ = 0; +} + +Resources_ResourceEntry::~Resources_ResourceEntry() { + // @@protoc_insertion_point(destructor:flyteidl.core.Resources.ResourceEntry) + SharedDtor(); +} + +void Resources_ResourceEntry::SharedDtor() { + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Resources_ResourceEntry::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Resources_ResourceEntry& Resources_ResourceEntry::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void Resources_ResourceEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Resources_ResourceEntry::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Resources.ResourceName name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_name(static_cast<::flyteidl::core::Resources_ResourceName>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Resources.ResourceEntry.value"); + object = msg->mutable_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Resources_ResourceEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Resources.ResourceEntry) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Resources.ResourceName name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_name(static_cast< ::flyteidl::core::Resources_ResourceName >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Resources.ResourceEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Resources.ResourceEntry) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Resources.ResourceEntry) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Resources_ResourceEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Resources.ResourceName name = 1; + if (this->name() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->name(), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Resources.ResourceEntry.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Resources.ResourceEntry) +} + +::google::protobuf::uint8* Resources_ResourceEntry::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Resources.ResourceName name = 1; + if (this->name() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->name(), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Resources.ResourceEntry.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Resources.ResourceEntry) + return target; +} + +size_t Resources_ResourceEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Resources.ResourceEntry) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + // .flyteidl.core.Resources.ResourceName name = 1; + if (this->name() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Resources_ResourceEntry::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Resources.ResourceEntry) + GOOGLE_DCHECK_NE(&from, this); + const Resources_ResourceEntry* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Resources.ResourceEntry) + MergeFrom(*source); + } +} + +void Resources_ResourceEntry::MergeFrom(const Resources_ResourceEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Resources.ResourceEntry) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (from.name() != 0) { + set_name(from.name()); + } +} + +void Resources_ResourceEntry::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Resources.ResourceEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Resources_ResourceEntry::CopyFrom(const Resources_ResourceEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Resources.ResourceEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Resources_ResourceEntry::IsInitialized() const { + return true; +} + +void Resources_ResourceEntry::Swap(Resources_ResourceEntry* other) { + if (other == this) return; + InternalSwap(other); +} +void Resources_ResourceEntry::InternalSwap(Resources_ResourceEntry* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(name_, other->name_); +} + +::google::protobuf::Metadata Resources_ResourceEntry::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Resources::InitAsDefaultInstance() { +} +class Resources::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Resources::kRequestsFieldNumber; +const int Resources::kLimitsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Resources::Resources() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Resources) +} +Resources::Resources(const Resources& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + requests_(from.requests_), + limits_(from.limits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Resources) +} + +void Resources::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base); +} + +Resources::~Resources() { + // @@protoc_insertion_point(destructor:flyteidl.core.Resources) + SharedDtor(); +} + +void Resources::SharedDtor() { +} + +void Resources::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Resources& Resources::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void Resources::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Resources) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + requests_.Clear(); + limits_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Resources::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources_ResourceEntry::_InternalParse; + object = msg->add_requests(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources_ResourceEntry::_InternalParse; + object = msg->add_limits(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Resources::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Resources) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_requests())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_limits())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Resources) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Resources) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Resources::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Resources) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + for (unsigned int i = 0, + n = static_cast(this->requests_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->requests(static_cast(i)), + output); + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + for (unsigned int i = 0, + n = static_cast(this->limits_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->limits(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Resources) +} + +::google::protobuf::uint8* Resources::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Resources) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + for (unsigned int i = 0, + n = static_cast(this->requests_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->requests(static_cast(i)), target); + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + for (unsigned int i = 0, + n = static_cast(this->limits_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->limits(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Resources) + return target; +} + +size_t Resources::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Resources) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + { + unsigned int count = static_cast(this->requests_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->requests(static_cast(i))); + } + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + { + unsigned int count = static_cast(this->limits_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->limits(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Resources::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Resources) + GOOGLE_DCHECK_NE(&from, this); + const Resources* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Resources) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Resources) + MergeFrom(*source); + } +} + +void Resources::MergeFrom(const Resources& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Resources) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + requests_.MergeFrom(from.requests_); + limits_.MergeFrom(from.limits_); +} + +void Resources::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Resources) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Resources::CopyFrom(const Resources& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Resources) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Resources::IsInitialized() const { + return true; +} + +void Resources::Swap(Resources* other) { + if (other == this) return; + InternalSwap(other); +} +void Resources::InternalSwap(Resources* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&requests_)->InternalSwap(CastToBase(&other->requests_)); + CastToBase(&limits_)->InternalSwap(CastToBase(&other->limits_)); +} + +::google::protobuf::Metadata Resources::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void RuntimeMetadata::InitAsDefaultInstance() { +} +class RuntimeMetadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RuntimeMetadata::kTypeFieldNumber; +const int RuntimeMetadata::kVersionFieldNumber; +const int RuntimeMetadata::kFlavorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RuntimeMetadata::RuntimeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.RuntimeMetadata) +} +RuntimeMetadata::RuntimeMetadata(const RuntimeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + flavor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.flavor().size() > 0) { + flavor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flavor_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.RuntimeMetadata) +} + +void RuntimeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + flavor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; +} + +RuntimeMetadata::~RuntimeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.RuntimeMetadata) + SharedDtor(); +} + +void RuntimeMetadata::SharedDtor() { + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + flavor_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void RuntimeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RuntimeMetadata& RuntimeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void RuntimeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.RuntimeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + flavor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RuntimeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_type(static_cast<::flyteidl::core::RuntimeMetadata_RuntimeType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string version = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.RuntimeMetadata.version"); + object = msg->mutable_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string flavor = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.RuntimeMetadata.flavor"); + object = msg->mutable_flavor(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RuntimeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.RuntimeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::flyteidl::core::RuntimeMetadata_RuntimeType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string version = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.RuntimeMetadata.version")); + } else { + goto handle_unusual; + } + break; + } + + // string flavor = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_flavor())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flavor().data(), static_cast(this->flavor().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.RuntimeMetadata.flavor")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.RuntimeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.RuntimeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RuntimeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.RuntimeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + if (this->type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->version(), output); + } + + // string flavor = 3; + if (this->flavor().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flavor().data(), static_cast(this->flavor().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.flavor"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->flavor(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.RuntimeMetadata) +} + +::google::protobuf::uint8* RuntimeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.RuntimeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + if (this->type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->version(), target); + } + + // string flavor = 3; + if (this->flavor().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flavor().data(), static_cast(this->flavor().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.flavor"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->flavor(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.RuntimeMetadata) + return target; +} + +size_t RuntimeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.RuntimeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string version = 2; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // string flavor = 3; + if (this->flavor().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->flavor()); + } + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RuntimeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.RuntimeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const RuntimeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.RuntimeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.RuntimeMetadata) + MergeFrom(*source); + } +} + +void RuntimeMetadata::MergeFrom(const RuntimeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.RuntimeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.flavor().size() > 0) { + + flavor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flavor_); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void RuntimeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.RuntimeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RuntimeMetadata::CopyFrom(const RuntimeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.RuntimeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RuntimeMetadata::IsInitialized() const { + return true; +} + +void RuntimeMetadata::Swap(RuntimeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void RuntimeMetadata::InternalSwap(RuntimeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + flavor_.Swap(&other->flavor_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::google::protobuf::Metadata RuntimeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +TaskMetadata_TagsEntry_DoNotUse::TaskMetadata_TagsEntry_DoNotUse() {} +TaskMetadata_TagsEntry_DoNotUse::TaskMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void TaskMetadata_TagsEntry_DoNotUse::MergeFrom(const TaskMetadata_TagsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata TaskMetadata_TagsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[3]; +} +void TaskMetadata_TagsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskMetadata_TagsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + TaskMetadata_TagsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.TagsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void TaskMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->runtime_ = const_cast< ::flyteidl::core::RuntimeMetadata*>( + ::flyteidl::core::RuntimeMetadata::internal_default_instance()); + ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->timeout_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->retries_ = const_cast< ::flyteidl::core::RetryStrategy*>( + ::flyteidl::core::RetryStrategy::internal_default_instance()); + ::flyteidl::core::_TaskMetadata_default_instance_.interruptible_ = false; +} +class TaskMetadata::HasBitSetters { + public: + static const ::flyteidl::core::RuntimeMetadata& runtime(const TaskMetadata* msg); + static const ::google::protobuf::Duration& timeout(const TaskMetadata* msg); + static const ::flyteidl::core::RetryStrategy& retries(const TaskMetadata* msg); +}; + +const ::flyteidl::core::RuntimeMetadata& +TaskMetadata::HasBitSetters::runtime(const TaskMetadata* msg) { + return *msg->runtime_; +} +const ::google::protobuf::Duration& +TaskMetadata::HasBitSetters::timeout(const TaskMetadata* msg) { + return *msg->timeout_; +} +const ::flyteidl::core::RetryStrategy& +TaskMetadata::HasBitSetters::retries(const TaskMetadata* msg) { + return *msg->retries_; +} +void TaskMetadata::clear_timeout() { + if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { + delete timeout_; + } + timeout_ = nullptr; +} +void TaskMetadata::clear_retries() { + if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { + delete retries_; + } + retries_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskMetadata::kDiscoverableFieldNumber; +const int TaskMetadata::kRuntimeFieldNumber; +const int TaskMetadata::kTimeoutFieldNumber; +const int TaskMetadata::kRetriesFieldNumber; +const int TaskMetadata::kDiscoveryVersionFieldNumber; +const int TaskMetadata::kDeprecatedErrorMessageFieldNumber; +const int TaskMetadata::kInterruptibleFieldNumber; +const int TaskMetadata::kCacheSerializableFieldNumber; +const int TaskMetadata::kGeneratesDeckFieldNumber; +const int TaskMetadata::kTagsFieldNumber; +const int TaskMetadata::kPodTemplateNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskMetadata::TaskMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskMetadata) +} +TaskMetadata::TaskMetadata(const TaskMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tags_.MergeFrom(from.tags_); + discovery_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.discovery_version().size() > 0) { + discovery_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.discovery_version_); + } + deprecated_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.deprecated_error_message().size() > 0) { + deprecated_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_error_message_); + } + pod_template_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.pod_template_name().size() > 0) { + pod_template_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pod_template_name_); + } + if (from.has_runtime()) { + runtime_ = new ::flyteidl::core::RuntimeMetadata(*from.runtime_); + } else { + runtime_ = nullptr; + } + if (from.has_timeout()) { + timeout_ = new ::google::protobuf::Duration(*from.timeout_); + } else { + timeout_ = nullptr; + } + if (from.has_retries()) { + retries_ = new ::flyteidl::core::RetryStrategy(*from.retries_); + } else { + retries_ = nullptr; + } + ::memcpy(&discoverable_, &from.discoverable_, + static_cast(reinterpret_cast(&generates_deck_) - + reinterpret_cast(&discoverable_)) + sizeof(generates_deck_)); + clear_has_interruptible_value(); + switch (from.interruptible_value_case()) { + case kInterruptible: { + set_interruptible(from.interruptible()); + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskMetadata) +} + +void TaskMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + discovery_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deprecated_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pod_template_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&runtime_, 0, static_cast( + reinterpret_cast(&generates_deck_) - + reinterpret_cast(&runtime_)) + sizeof(generates_deck_)); + clear_has_interruptible_value(); +} + +TaskMetadata::~TaskMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskMetadata) + SharedDtor(); +} + +void TaskMetadata::SharedDtor() { + discovery_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deprecated_error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pod_template_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete runtime_; + if (this != internal_default_instance()) delete timeout_; + if (this != internal_default_instance()) delete retries_; + if (has_interruptible_value()) { + clear_interruptible_value(); + } +} + +void TaskMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskMetadata& TaskMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void TaskMetadata::clear_interruptible_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskMetadata) + switch (interruptible_value_case()) { + case kInterruptible: { + // No need to clear + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; +} + + +void TaskMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + discovery_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deprecated_error_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pod_template_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && runtime_ != nullptr) { + delete runtime_; + } + runtime_ = nullptr; + if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { + delete timeout_; + } + timeout_ = nullptr; + if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { + delete retries_; + } + retries_ = nullptr; + ::memset(&discoverable_, 0, static_cast( + reinterpret_cast(&generates_deck_) - + reinterpret_cast(&discoverable_)) + sizeof(generates_deck_)); + clear_interruptible_value(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // bool discoverable = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_discoverable(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.RuntimeMetadata runtime = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::RuntimeMetadata::_InternalParse; + object = msg->mutable_runtime(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Duration timeout = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_timeout(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.RetryStrategy retries = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::RetryStrategy::_InternalParse; + object = msg->mutable_retries(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string discovery_version = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskMetadata.discovery_version"); + object = msg->mutable_discovery_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string deprecated_error_message = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskMetadata.deprecated_error_message"); + object = msg->mutable_deprecated_error_message(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bool interruptible = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; + msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // bool cache_serializable = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 72) goto handle_unusual; + msg->set_cache_serializable(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // bool generates_deck = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; + msg->set_generates_deck(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // map tags = 11; + case 11: { + if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->tags_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 90 && (ptr += 1)); + break; + } + // string pod_template_name = 12; + case 12: { + if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskMetadata.pod_template_name"); + object = msg->mutable_pod_template_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bool discoverable = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &discoverable_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_runtime())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration timeout = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_timeout())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.RetryStrategy retries = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_retries())); + } else { + goto handle_unusual; + } + break; + } + + // string discovery_version = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_discovery_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->discovery_version().data(), static_cast(this->discovery_version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.discovery_version")); + } else { + goto handle_unusual; + } + break; + } + + // string deprecated_error_message = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_deprecated_error_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.deprecated_error_message")); + } else { + goto handle_unusual; + } + break; + } + + // bool interruptible = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { + clear_interruptible_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &interruptible_value_.interruptible_))); + set_has_interruptible(); + } else { + goto handle_unusual; + } + break; + } + + // bool cache_serializable = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (72 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &cache_serializable_))); + } else { + goto handle_unusual; + } + break; + } + + // bool generates_deck = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &generates_deck_))); + } else { + goto handle_unusual; + } + break; + } + + // map tags = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + TaskMetadata_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + TaskMetadata_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.TagsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // string pod_template_name = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_pod_template_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->pod_template_name().data(), static_cast(this->pod_template_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.pod_template_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool discoverable = 1; + if (this->discoverable() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->discoverable(), output); + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + if (this->has_runtime()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::runtime(this), output); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::timeout(this), output); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::retries(this), output); + } + + // string discovery_version = 6; + if (this->discovery_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->discovery_version().data(), static_cast(this->discovery_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.discovery_version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->discovery_version(), output); + } + + // string deprecated_error_message = 7; + if (this->deprecated_error_message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.deprecated_error_message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->deprecated_error_message(), output); + } + + // bool interruptible = 8; + if (has_interruptible()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->interruptible(), output); + } + + // bool cache_serializable = 9; + if (this->cache_serializable() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->cache_serializable(), output); + } + + // bool generates_deck = 10; + if (this->generates_deck() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->generates_deck(), output); + } + + // map tags = 11; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.TagsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(11, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(11, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // string pod_template_name = 12; + if (this->pod_template_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->pod_template_name().data(), static_cast(this->pod_template_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.pod_template_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 12, this->pod_template_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskMetadata) +} + +::google::protobuf::uint8* TaskMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool discoverable = 1; + if (this->discoverable() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->discoverable(), target); + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + if (this->has_runtime()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::runtime(this), target); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::timeout(this), target); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::retries(this), target); + } + + // string discovery_version = 6; + if (this->discovery_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->discovery_version().data(), static_cast(this->discovery_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.discovery_version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->discovery_version(), target); + } + + // string deprecated_error_message = 7; + if (this->deprecated_error_message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.deprecated_error_message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->deprecated_error_message(), target); + } + + // bool interruptible = 8; + if (has_interruptible()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->interruptible(), target); + } + + // bool cache_serializable = 9; + if (this->cache_serializable() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->cache_serializable(), target); + } + + // bool generates_deck = 10; + if (this->generates_deck() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->generates_deck(), target); + } + + // map tags = 11; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.TagsEntry.value"); + } + }; + + if (false && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(11, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(11, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // string pod_template_name = 12; + if (this->pod_template_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->pod_template_name().data(), static_cast(this->pod_template_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.pod_template_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 12, this->pod_template_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskMetadata) + return target; +} + +size_t TaskMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map tags = 11; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string discovery_version = 6; + if (this->discovery_version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->discovery_version()); + } + + // string deprecated_error_message = 7; + if (this->deprecated_error_message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->deprecated_error_message()); + } + + // string pod_template_name = 12; + if (this->pod_template_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->pod_template_name()); + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + if (this->has_runtime()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *runtime_); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *timeout_); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *retries_); + } + + // bool discoverable = 1; + if (this->discoverable() != 0) { + total_size += 1 + 1; + } + + // bool cache_serializable = 9; + if (this->cache_serializable() != 0) { + total_size += 1 + 1; + } + + // bool generates_deck = 10; + if (this->generates_deck() != 0) { + total_size += 1 + 1; + } + + switch (interruptible_value_case()) { + // bool interruptible = 8; + case kInterruptible: { + total_size += 1 + 1; + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskMetadata) + GOOGLE_DCHECK_NE(&from, this); + const TaskMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskMetadata) + MergeFrom(*source); + } +} + +void TaskMetadata::MergeFrom(const TaskMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.discovery_version().size() > 0) { + + discovery_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.discovery_version_); + } + if (from.deprecated_error_message().size() > 0) { + + deprecated_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_error_message_); + } + if (from.pod_template_name().size() > 0) { + + pod_template_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pod_template_name_); + } + if (from.has_runtime()) { + mutable_runtime()->::flyteidl::core::RuntimeMetadata::MergeFrom(from.runtime()); + } + if (from.has_timeout()) { + mutable_timeout()->::google::protobuf::Duration::MergeFrom(from.timeout()); + } + if (from.has_retries()) { + mutable_retries()->::flyteidl::core::RetryStrategy::MergeFrom(from.retries()); + } + if (from.discoverable() != 0) { + set_discoverable(from.discoverable()); + } + if (from.cache_serializable() != 0) { + set_cache_serializable(from.cache_serializable()); + } + if (from.generates_deck() != 0) { + set_generates_deck(from.generates_deck()); + } + switch (from.interruptible_value_case()) { + case kInterruptible: { + set_interruptible(from.interruptible()); + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } +} + +void TaskMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskMetadata::CopyFrom(const TaskMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskMetadata::IsInitialized() const { + return true; +} + +void TaskMetadata::Swap(TaskMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskMetadata::InternalSwap(TaskMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.Swap(&other->tags_); + discovery_version_.Swap(&other->discovery_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + deprecated_error_message_.Swap(&other->deprecated_error_message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + pod_template_name_.Swap(&other->pod_template_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(runtime_, other->runtime_); + swap(timeout_, other->timeout_); + swap(retries_, other->retries_); + swap(discoverable_, other->discoverable_); + swap(cache_serializable_, other->cache_serializable_); + swap(generates_deck_, other->generates_deck_); + swap(interruptible_value_, other->interruptible_value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata TaskMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +TaskTemplate_ConfigEntry_DoNotUse::TaskTemplate_ConfigEntry_DoNotUse() {} +TaskTemplate_ConfigEntry_DoNotUse::TaskTemplate_ConfigEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void TaskTemplate_ConfigEntry_DoNotUse::MergeFrom(const TaskTemplate_ConfigEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata TaskTemplate_ConfigEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[5]; +} +void TaskTemplate_ConfigEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskTemplate_ConfigEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + TaskTemplate_ConfigEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskTemplate.ConfigEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskTemplate.ConfigEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void TaskTemplate::InitAsDefaultInstance() { + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::TaskMetadata*>( + ::flyteidl::core::TaskMetadata::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->interface_ = const_cast< ::flyteidl::core::TypedInterface*>( + ::flyteidl::core::TypedInterface::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->custom_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_.container_ = const_cast< ::flyteidl::core::Container*>( + ::flyteidl::core::Container::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_.k8s_pod_ = const_cast< ::flyteidl::core::K8sPod*>( + ::flyteidl::core::K8sPod::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_.sql_ = const_cast< ::flyteidl::core::Sql*>( + ::flyteidl::core::Sql::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( + ::flyteidl::core::SecurityContext::internal_default_instance()); +} +class TaskTemplate::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const TaskTemplate* msg); + static const ::flyteidl::core::TaskMetadata& metadata(const TaskTemplate* msg); + static const ::flyteidl::core::TypedInterface& interface(const TaskTemplate* msg); + static const ::google::protobuf::Struct& custom(const TaskTemplate* msg); + static const ::flyteidl::core::Container& container(const TaskTemplate* msg); + static const ::flyteidl::core::K8sPod& k8s_pod(const TaskTemplate* msg); + static const ::flyteidl::core::Sql& sql(const TaskTemplate* msg); + static const ::flyteidl::core::SecurityContext& security_context(const TaskTemplate* msg); +}; + +const ::flyteidl::core::Identifier& +TaskTemplate::HasBitSetters::id(const TaskTemplate* msg) { + return *msg->id_; +} +const ::flyteidl::core::TaskMetadata& +TaskTemplate::HasBitSetters::metadata(const TaskTemplate* msg) { + return *msg->metadata_; +} +const ::flyteidl::core::TypedInterface& +TaskTemplate::HasBitSetters::interface(const TaskTemplate* msg) { + return *msg->interface_; +} +const ::google::protobuf::Struct& +TaskTemplate::HasBitSetters::custom(const TaskTemplate* msg) { + return *msg->custom_; +} +const ::flyteidl::core::Container& +TaskTemplate::HasBitSetters::container(const TaskTemplate* msg) { + return *msg->target_.container_; +} +const ::flyteidl::core::K8sPod& +TaskTemplate::HasBitSetters::k8s_pod(const TaskTemplate* msg) { + return *msg->target_.k8s_pod_; +} +const ::flyteidl::core::Sql& +TaskTemplate::HasBitSetters::sql(const TaskTemplate* msg) { + return *msg->target_.sql_; +} +const ::flyteidl::core::SecurityContext& +TaskTemplate::HasBitSetters::security_context(const TaskTemplate* msg) { + return *msg->security_context_; +} +void TaskTemplate::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void TaskTemplate::clear_interface() { + if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { + delete interface_; + } + interface_ = nullptr; +} +void TaskTemplate::clear_custom() { + if (GetArenaNoVirtual() == nullptr && custom_ != nullptr) { + delete custom_; + } + custom_ = nullptr; +} +void TaskTemplate::set_allocated_container(::flyteidl::core::Container* container) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (container) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + container = ::google::protobuf::internal::GetOwnedMessage( + message_arena, container, submessage_arena); + } + set_has_container(); + target_.container_ = container; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.container) +} +void TaskTemplate::set_allocated_k8s_pod(::flyteidl::core::K8sPod* k8s_pod) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (k8s_pod) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + k8s_pod = ::google::protobuf::internal::GetOwnedMessage( + message_arena, k8s_pod, submessage_arena); + } + set_has_k8s_pod(); + target_.k8s_pod_ = k8s_pod; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.k8s_pod) +} +void TaskTemplate::set_allocated_sql(::flyteidl::core::Sql* sql) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (sql) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sql = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sql, submessage_arena); + } + set_has_sql(); + target_.sql_ = sql; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.sql) +} +void TaskTemplate::clear_security_context() { + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskTemplate::kIdFieldNumber; +const int TaskTemplate::kTypeFieldNumber; +const int TaskTemplate::kMetadataFieldNumber; +const int TaskTemplate::kInterfaceFieldNumber; +const int TaskTemplate::kCustomFieldNumber; +const int TaskTemplate::kContainerFieldNumber; +const int TaskTemplate::kK8SPodFieldNumber; +const int TaskTemplate::kSqlFieldNumber; +const int TaskTemplate::kTaskTypeVersionFieldNumber; +const int TaskTemplate::kSecurityContextFieldNumber; +const int TaskTemplate::kConfigFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskTemplate::TaskTemplate() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskTemplate) +} +TaskTemplate::TaskTemplate(const TaskTemplate& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + config_.MergeFrom(from.config_); + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.type().size() > 0) { + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::TaskMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_interface()) { + interface_ = new ::flyteidl::core::TypedInterface(*from.interface_); + } else { + interface_ = nullptr; + } + if (from.has_custom()) { + custom_ = new ::google::protobuf::Struct(*from.custom_); + } else { + custom_ = nullptr; + } + if (from.has_security_context()) { + security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); + } else { + security_context_ = nullptr; + } + task_type_version_ = from.task_type_version_; + clear_has_target(); + switch (from.target_case()) { + case kContainer: { + mutable_container()->::flyteidl::core::Container::MergeFrom(from.container()); + break; + } + case kK8SPod: { + mutable_k8s_pod()->::flyteidl::core::K8sPod::MergeFrom(from.k8s_pod()); + break; + } + case kSql: { + mutable_sql()->::flyteidl::core::Sql::MergeFrom(from.sql()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskTemplate) +} + +void TaskTemplate::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base); + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&task_type_version_) - + reinterpret_cast(&id_)) + sizeof(task_type_version_)); + clear_has_target(); +} + +TaskTemplate::~TaskTemplate() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskTemplate) + SharedDtor(); +} + +void TaskTemplate::SharedDtor() { + type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete interface_; + if (this != internal_default_instance()) delete custom_; + if (this != internal_default_instance()) delete security_context_; + if (has_target()) { + clear_target(); + } +} + +void TaskTemplate::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskTemplate& TaskTemplate::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void TaskTemplate::clear_target() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskTemplate) + switch (target_case()) { + case kContainer: { + delete target_.container_; + break; + } + case kK8SPod: { + delete target_.k8s_pod_; + break; + } + case kSql: { + delete target_.sql_; + break; + } + case TARGET_NOT_SET: { + break; + } + } + _oneof_case_[0] = TARGET_NOT_SET; +} + + +void TaskTemplate::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + config_.Clear(); + type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { + delete interface_; + } + interface_ = nullptr; + if (GetArenaNoVirtual() == nullptr && custom_ != nullptr) { + delete custom_; + } + custom_ = nullptr; + if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { + delete security_context_; + } + security_context_ = nullptr; + task_type_version_ = 0; + clear_target(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskTemplate::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskTemplate.type"); + object = msg->mutable_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.TaskMetadata metadata = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TypedInterface interface = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TypedInterface::_InternalParse; + object = msg->mutable_interface(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Struct custom = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_custom(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Container container = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Container::_InternalParse; + object = msg->mutable_container(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 task_type_version = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; + msg->set_task_type_version(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.SecurityContext security_context = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SecurityContext::_InternalParse; + object = msg->mutable_security_context(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // map config = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->config_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 386 && (ptr += 2)); + break; + } + // .flyteidl.core.K8sPod k8s_pod = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::K8sPod::_InternalParse; + object = msg->mutable_k8s_pod(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Sql sql = 18; + case 18: { + if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Sql::_InternalParse; + object = msg->mutable_sql(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskTemplate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskTemplate) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskTemplate.type")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskMetadata metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TypedInterface interface = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interface())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct custom = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_custom())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Container container = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_container())); + } else { + goto handle_unusual; + } + break; + } + + // int32 task_type_version = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &task_type_version_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SecurityContext security_context = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_security_context())); + } else { + goto handle_unusual; + } + break; + } + + // map config = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + TaskTemplate_ConfigEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + TaskTemplate_ConfigEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&config_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskTemplate.ConfigEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskTemplate.ConfigEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.K8sPod k8s_pod = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_k8s_pod())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Sql sql = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sql())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskTemplate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskTemplate) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskTemplate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string type = 2; + if (this->type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->type(), output); + } + + // .flyteidl.core.TaskMetadata metadata = 3; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::metadata(this), output); + } + + // .flyteidl.core.TypedInterface interface = 4; + if (this->has_interface()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::interface(this), output); + } + + // .google.protobuf.Struct custom = 5; + if (this->has_custom()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::custom(this), output); + } + + // .flyteidl.core.Container container = 6; + if (has_container()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::container(this), output); + } + + // int32 task_type_version = 7; + if (this->task_type_version() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->task_type_version(), output); + } + + // .flyteidl.core.SecurityContext security_context = 8; + if (this->has_security_context()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::security_context(this), output); + } + + // map config = 16; + if (!this->config().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.ConfigEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.ConfigEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->config().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->config().begin(); + it != this->config().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(config_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(16, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->config().begin(); + it != this->config().end(); ++it) { + entry.reset(config_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(16, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // .flyteidl.core.K8sPod k8s_pod = 17; + if (has_k8s_pod()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, HasBitSetters::k8s_pod(this), output); + } + + // .flyteidl.core.Sql sql = 18; + if (has_sql()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 18, HasBitSetters::sql(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskTemplate) +} + +::google::protobuf::uint8* TaskTemplate::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string type = 2; + if (this->type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->type(), target); + } + + // .flyteidl.core.TaskMetadata metadata = 3; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::metadata(this), target); + } + + // .flyteidl.core.TypedInterface interface = 4; + if (this->has_interface()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::interface(this), target); + } + + // .google.protobuf.Struct custom = 5; + if (this->has_custom()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::custom(this), target); + } + + // .flyteidl.core.Container container = 6; + if (has_container()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::container(this), target); + } + + // int32 task_type_version = 7; + if (this->task_type_version() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->task_type_version(), target); + } + + // .flyteidl.core.SecurityContext security_context = 8; + if (this->has_security_context()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::security_context(this), target); + } + + // map config = 16; + if (!this->config().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.ConfigEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.ConfigEntry.value"); + } + }; + + if (false && + this->config().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->config().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->config().begin(); + it != this->config().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(config_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(16, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->config().begin(); + it != this->config().end(); ++it) { + entry.reset(config_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(16, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // .flyteidl.core.K8sPod k8s_pod = 17; + if (has_k8s_pod()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 17, HasBitSetters::k8s_pod(this), target); + } + + // .flyteidl.core.Sql sql = 18; + if (has_sql()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 18, HasBitSetters::sql(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskTemplate) + return target; +} + +size_t TaskTemplate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskTemplate) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map config = 16; + total_size += 2 * + ::google::protobuf::internal::FromIntSize(this->config_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->config().begin(); + it != this->config().end(); ++it) { + entry.reset(config_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string type = 2; + if (this->type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.TaskMetadata metadata = 3; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flyteidl.core.TypedInterface interface = 4; + if (this->has_interface()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *interface_); + } + + // .google.protobuf.Struct custom = 5; + if (this->has_custom()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *custom_); + } + + // .flyteidl.core.SecurityContext security_context = 8; + if (this->has_security_context()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *security_context_); + } + + // int32 task_type_version = 7; + if (this->task_type_version() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->task_type_version()); + } + + switch (target_case()) { + // .flyteidl.core.Container container = 6; + case kContainer: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.container_); + break; + } + // .flyteidl.core.K8sPod k8s_pod = 17; + case kK8SPod: { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.k8s_pod_); + break; + } + // .flyteidl.core.Sql sql = 18; + case kSql: { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.sql_); + break; + } + case TARGET_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskTemplate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskTemplate) + GOOGLE_DCHECK_NE(&from, this); + const TaskTemplate* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskTemplate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskTemplate) + MergeFrom(*source); + } +} + +void TaskTemplate::MergeFrom(const TaskTemplate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskTemplate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + config_.MergeFrom(from.config_); + if (from.type().size() > 0) { + + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::TaskMetadata::MergeFrom(from.metadata()); + } + if (from.has_interface()) { + mutable_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.interface()); + } + if (from.has_custom()) { + mutable_custom()->::google::protobuf::Struct::MergeFrom(from.custom()); + } + if (from.has_security_context()) { + mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); + } + if (from.task_type_version() != 0) { + set_task_type_version(from.task_type_version()); + } + switch (from.target_case()) { + case kContainer: { + mutable_container()->::flyteidl::core::Container::MergeFrom(from.container()); + break; + } + case kK8SPod: { + mutable_k8s_pod()->::flyteidl::core::K8sPod::MergeFrom(from.k8s_pod()); + break; + } + case kSql: { + mutable_sql()->::flyteidl::core::Sql::MergeFrom(from.sql()); + break; + } + case TARGET_NOT_SET: { + break; + } + } +} + +void TaskTemplate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskTemplate::CopyFrom(const TaskTemplate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskTemplate::IsInitialized() const { + return true; +} + +void TaskTemplate::Swap(TaskTemplate* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskTemplate::InternalSwap(TaskTemplate* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + config_.Swap(&other->config_); + type_.Swap(&other->type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(metadata_, other->metadata_); + swap(interface_, other->interface_); + swap(custom_, other->custom_); + swap(security_context_, other->security_context_); + swap(task_type_version_, other->task_type_version_); + swap(target_, other->target_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata TaskTemplate::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ContainerPort::InitAsDefaultInstance() { +} +class ContainerPort::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContainerPort::kContainerPortFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContainerPort::ContainerPort() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ContainerPort) +} +ContainerPort::ContainerPort(const ContainerPort& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + container_port_ = from.container_port_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ContainerPort) +} + +void ContainerPort::SharedCtor() { + container_port_ = 0u; +} + +ContainerPort::~ContainerPort() { + // @@protoc_insertion_point(destructor:flyteidl.core.ContainerPort) + SharedDtor(); +} + +void ContainerPort::SharedDtor() { +} + +void ContainerPort::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ContainerPort& ContainerPort::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void ContainerPort::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ContainerPort) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + container_port_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ContainerPort::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // uint32 container_port = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_container_port(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ContainerPort::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ContainerPort) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // uint32 container_port = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &container_port_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ContainerPort) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ContainerPort) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ContainerPort::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ContainerPort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 container_port = 1; + if (this->container_port() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->container_port(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ContainerPort) +} + +::google::protobuf::uint8* ContainerPort::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ContainerPort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 container_port = 1; + if (this->container_port() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->container_port(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ContainerPort) + return target; +} + +size_t ContainerPort::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ContainerPort) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 container_port = 1; + if (this->container_port() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->container_port()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ContainerPort::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ContainerPort) + GOOGLE_DCHECK_NE(&from, this); + const ContainerPort* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ContainerPort) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ContainerPort) + MergeFrom(*source); + } +} + +void ContainerPort::MergeFrom(const ContainerPort& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ContainerPort) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.container_port() != 0) { + set_container_port(from.container_port()); + } +} + +void ContainerPort::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ContainerPort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContainerPort::CopyFrom(const ContainerPort& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ContainerPort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContainerPort::IsInitialized() const { + return true; +} + +void ContainerPort::Swap(ContainerPort* other) { + if (other == this) return; + InternalSwap(other); +} +void ContainerPort::InternalSwap(ContainerPort* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(container_port_, other->container_port_); +} + +::google::protobuf::Metadata ContainerPort::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Container::InitAsDefaultInstance() { + ::flyteidl::core::_Container_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); + ::flyteidl::core::_Container_default_instance_._instance.get_mutable()->data_config_ = const_cast< ::flyteidl::core::DataLoadingConfig*>( + ::flyteidl::core::DataLoadingConfig::internal_default_instance()); +} +class Container::HasBitSetters { + public: + static const ::flyteidl::core::Resources& resources(const Container* msg); + static const ::flyteidl::core::DataLoadingConfig& data_config(const Container* msg); +}; + +const ::flyteidl::core::Resources& +Container::HasBitSetters::resources(const Container* msg) { + return *msg->resources_; +} +const ::flyteidl::core::DataLoadingConfig& +Container::HasBitSetters::data_config(const Container* msg) { + return *msg->data_config_; +} +void Container::clear_env() { + env_.Clear(); +} +void Container::clear_config() { + config_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Container::kImageFieldNumber; +const int Container::kCommandFieldNumber; +const int Container::kArgsFieldNumber; +const int Container::kResourcesFieldNumber; +const int Container::kEnvFieldNumber; +const int Container::kConfigFieldNumber; +const int Container::kPortsFieldNumber; +const int Container::kDataConfigFieldNumber; +const int Container::kArchitectureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Container::Container() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Container) +} +Container::Container(const Container& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + command_(from.command_), + args_(from.args_), + env_(from.env_), + config_(from.config_), + ports_(from.ports_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.image().size() > 0) { + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = nullptr; + } + if (from.has_data_config()) { + data_config_ = new ::flyteidl::core::DataLoadingConfig(*from.data_config_); + } else { + data_config_ = nullptr; + } + architecture_ = from.architecture_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Container) +} + +void Container::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&resources_, 0, static_cast( + reinterpret_cast(&architecture_) - + reinterpret_cast(&resources_)) + sizeof(architecture_)); +} + +Container::~Container() { + // @@protoc_insertion_point(destructor:flyteidl.core.Container) + SharedDtor(); +} + +void Container::SharedDtor() { + image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete resources_; + if (this != internal_default_instance()) delete data_config_; +} + +void Container::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Container& Container::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void Container::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Container) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + command_.Clear(); + args_.Clear(); + env_.Clear(); + config_.Clear(); + ports_.Clear(); + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { + delete data_config_; + } + data_config_ = nullptr; + architecture_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Container::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string image = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Container.image"); + object = msg->mutable_image(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated string command = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Container.command"); + object = msg->add_command(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // repeated string args = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Container.args"); + object = msg->add_args(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // .flyteidl.core.Resources resources = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.KeyValuePair env = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::KeyValuePair::_InternalParse; + object = msg->add_env(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::KeyValuePair::_InternalParse; + object = msg->add_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.ContainerPort ports = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ContainerPort::_InternalParse; + object = msg->add_ports(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 58 && (ptr += 1)); + break; + } + // .flyteidl.core.DataLoadingConfig data_config = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::DataLoadingConfig::_InternalParse; + object = msg->mutable_data_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Container.Architecture architecture = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_architecture(static_cast<::flyteidl::core::Container_Architecture>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Container::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Container) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string image = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_image())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Container.image")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string command = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_command())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(this->command_size() - 1).data(), + static_cast(this->command(this->command_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Container.command")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string args = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_args())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->args(this->args_size() - 1).data(), + static_cast(this->args(this->args_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Container.args")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Resources resources = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_env())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_config())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_ports())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.DataLoadingConfig data_config = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_data_config())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Container.Architecture architecture = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_architecture(static_cast< ::flyteidl::core::Container_Architecture >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Container) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Container) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Container::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Container) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string image = 1; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.image"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->image(), output); + } + + // repeated string command = 2; + for (int i = 0, n = this->command_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(i).data(), static_cast(this->command(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.command"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->command(i), output); + } + + // repeated string args = 3; + for (int i = 0, n = this->args_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->args(i).data(), static_cast(this->args(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.args"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->args(i), output); + } + + // .flyteidl.core.Resources resources = 4; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::resources(this), output); + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + for (unsigned int i = 0, + n = static_cast(this->env_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->env(static_cast(i)), + output); + } + + // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + for (unsigned int i = 0, + n = static_cast(this->config_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->config(static_cast(i)), + output); + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + for (unsigned int i = 0, + n = static_cast(this->ports_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, + this->ports(static_cast(i)), + output); + } + + // .flyteidl.core.DataLoadingConfig data_config = 9; + if (this->has_data_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::data_config(this), output); + } + + // .flyteidl.core.Container.Architecture architecture = 10; + if (this->architecture() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 10, this->architecture(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Container) +} + +::google::protobuf::uint8* Container::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Container) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string image = 1; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.image"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->image(), target); + } + + // repeated string command = 2; + for (int i = 0, n = this->command_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(i).data(), static_cast(this->command(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.command"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->command(i), target); + } + + // repeated string args = 3; + for (int i = 0, n = this->args_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->args(i).data(), static_cast(this->args(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.args"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->args(i), target); + } + + // .flyteidl.core.Resources resources = 4; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::resources(this), target); + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + for (unsigned int i = 0, + n = static_cast(this->env_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->env(static_cast(i)), target); + } + + // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + for (unsigned int i = 0, + n = static_cast(this->config_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->config(static_cast(i)), target); + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + for (unsigned int i = 0, + n = static_cast(this->ports_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->ports(static_cast(i)), target); + } + + // .flyteidl.core.DataLoadingConfig data_config = 9; + if (this->has_data_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::data_config(this), target); + } + + // .flyteidl.core.Container.Architecture architecture = 10; + if (this->architecture() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 10, this->architecture(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Container) + return target; +} + +size_t Container::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Container) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string command = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->command_size()); + for (int i = 0, n = this->command_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->command(i)); + } + + // repeated string args = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->args_size()); + for (int i = 0, n = this->args_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->args(i)); + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + { + unsigned int count = static_cast(this->env_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->env(static_cast(i))); + } + } + + // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + { + unsigned int count = static_cast(this->config_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->config(static_cast(i))); + } + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + { + unsigned int count = static_cast(this->ports_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->ports(static_cast(i))); + } + } + + // string image = 1; + if (this->image().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->image()); + } + + // .flyteidl.core.Resources resources = 4; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + // .flyteidl.core.DataLoadingConfig data_config = 9; + if (this->has_data_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_config_); + } + + // .flyteidl.core.Container.Architecture architecture = 10; + if (this->architecture() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->architecture()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Container::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Container) + GOOGLE_DCHECK_NE(&from, this); + const Container* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Container) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Container) + MergeFrom(*source); + } +} + +void Container::MergeFrom(const Container& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Container) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + command_.MergeFrom(from.command_); + args_.MergeFrom(from.args_); + env_.MergeFrom(from.env_); + config_.MergeFrom(from.config_); + ports_.MergeFrom(from.ports_); + if (from.image().size() > 0) { + + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } + if (from.has_data_config()) { + mutable_data_config()->::flyteidl::core::DataLoadingConfig::MergeFrom(from.data_config()); + } + if (from.architecture() != 0) { + set_architecture(from.architecture()); + } +} + +void Container::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Container) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Container::CopyFrom(const Container& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Container) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Container::IsInitialized() const { + return true; +} + +void Container::Swap(Container* other) { + if (other == this) return; + InternalSwap(other); +} +void Container::InternalSwap(Container* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + command_.InternalSwap(CastToBase(&other->command_)); + args_.InternalSwap(CastToBase(&other->args_)); + CastToBase(&env_)->InternalSwap(CastToBase(&other->env_)); + CastToBase(&config_)->InternalSwap(CastToBase(&other->config_)); + CastToBase(&ports_)->InternalSwap(CastToBase(&other->ports_)); + image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resources_, other->resources_); + swap(data_config_, other->data_config_); + swap(architecture_, other->architecture_); +} + +::google::protobuf::Metadata Container::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IOStrategy::InitAsDefaultInstance() { +} +class IOStrategy::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IOStrategy::kDownloadModeFieldNumber; +const int IOStrategy::kUploadModeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IOStrategy::IOStrategy() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.IOStrategy) +} +IOStrategy::IOStrategy(const IOStrategy& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&download_mode_, &from.download_mode_, + static_cast(reinterpret_cast(&upload_mode_) - + reinterpret_cast(&download_mode_)) + sizeof(upload_mode_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.IOStrategy) +} + +void IOStrategy::SharedCtor() { + ::memset(&download_mode_, 0, static_cast( + reinterpret_cast(&upload_mode_) - + reinterpret_cast(&download_mode_)) + sizeof(upload_mode_)); +} + +IOStrategy::~IOStrategy() { + // @@protoc_insertion_point(destructor:flyteidl.core.IOStrategy) + SharedDtor(); +} + +void IOStrategy::SharedDtor() { +} + +void IOStrategy::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IOStrategy& IOStrategy::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void IOStrategy::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.IOStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&download_mode_, 0, static_cast( + reinterpret_cast(&upload_mode_) - + reinterpret_cast(&download_mode_)) + sizeof(upload_mode_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IOStrategy::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_download_mode(static_cast<::flyteidl::core::IOStrategy_DownloadMode>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_upload_mode(static_cast<::flyteidl::core::IOStrategy_UploadMode>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IOStrategy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.IOStrategy) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_download_mode(static_cast< ::flyteidl::core::IOStrategy_DownloadMode >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_upload_mode(static_cast< ::flyteidl::core::IOStrategy_UploadMode >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.IOStrategy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.IOStrategy) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IOStrategy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.IOStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + if (this->download_mode() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->download_mode(), output); + } + + // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + if (this->upload_mode() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->upload_mode(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.IOStrategy) +} + +::google::protobuf::uint8* IOStrategy::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IOStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + if (this->download_mode() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->download_mode(), target); + } + + // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + if (this->upload_mode() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->upload_mode(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.IOStrategy) + return target; +} + +size_t IOStrategy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IOStrategy) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + if (this->download_mode() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->download_mode()); + } + + // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + if (this->upload_mode() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->upload_mode()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IOStrategy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IOStrategy) + GOOGLE_DCHECK_NE(&from, this); + const IOStrategy* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IOStrategy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IOStrategy) + MergeFrom(*source); + } +} + +void IOStrategy::MergeFrom(const IOStrategy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IOStrategy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.download_mode() != 0) { + set_download_mode(from.download_mode()); + } + if (from.upload_mode() != 0) { + set_upload_mode(from.upload_mode()); + } +} + +void IOStrategy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IOStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IOStrategy::CopyFrom(const IOStrategy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IOStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IOStrategy::IsInitialized() const { + return true; +} + +void IOStrategy::Swap(IOStrategy* other) { + if (other == this) return; + InternalSwap(other); +} +void IOStrategy::InternalSwap(IOStrategy* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(download_mode_, other->download_mode_); + swap(upload_mode_, other->upload_mode_); +} + +::google::protobuf::Metadata IOStrategy::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DataLoadingConfig::InitAsDefaultInstance() { + ::flyteidl::core::_DataLoadingConfig_default_instance_._instance.get_mutable()->io_strategy_ = const_cast< ::flyteidl::core::IOStrategy*>( + ::flyteidl::core::IOStrategy::internal_default_instance()); +} +class DataLoadingConfig::HasBitSetters { + public: + static const ::flyteidl::core::IOStrategy& io_strategy(const DataLoadingConfig* msg); +}; + +const ::flyteidl::core::IOStrategy& +DataLoadingConfig::HasBitSetters::io_strategy(const DataLoadingConfig* msg) { + return *msg->io_strategy_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DataLoadingConfig::kEnabledFieldNumber; +const int DataLoadingConfig::kInputPathFieldNumber; +const int DataLoadingConfig::kOutputPathFieldNumber; +const int DataLoadingConfig::kFormatFieldNumber; +const int DataLoadingConfig::kIoStrategyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DataLoadingConfig::DataLoadingConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.DataLoadingConfig) +} +DataLoadingConfig::DataLoadingConfig(const DataLoadingConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + input_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.input_path().size() > 0) { + input_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_path_); + } + output_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.output_path().size() > 0) { + output_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_path_); + } + if (from.has_io_strategy()) { + io_strategy_ = new ::flyteidl::core::IOStrategy(*from.io_strategy_); + } else { + io_strategy_ = nullptr; + } + ::memcpy(&enabled_, &from.enabled_, + static_cast(reinterpret_cast(&format_) - + reinterpret_cast(&enabled_)) + sizeof(format_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.DataLoadingConfig) +} + +void DataLoadingConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base); + input_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&io_strategy_, 0, static_cast( + reinterpret_cast(&format_) - + reinterpret_cast(&io_strategy_)) + sizeof(format_)); +} + +DataLoadingConfig::~DataLoadingConfig() { + // @@protoc_insertion_point(destructor:flyteidl.core.DataLoadingConfig) + SharedDtor(); +} + +void DataLoadingConfig::SharedDtor() { + input_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete io_strategy_; +} + +void DataLoadingConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DataLoadingConfig& DataLoadingConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void DataLoadingConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.DataLoadingConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + input_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && io_strategy_ != nullptr) { + delete io_strategy_; + } + io_strategy_ = nullptr; + ::memset(&enabled_, 0, static_cast( + reinterpret_cast(&format_) - + reinterpret_cast(&enabled_)) + sizeof(format_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DataLoadingConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // bool enabled = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_enabled(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string input_path = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.DataLoadingConfig.input_path"); + object = msg->mutable_input_path(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string output_path = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.DataLoadingConfig.output_path"); + object = msg->mutable_output_path(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_format(static_cast<::flyteidl::core::DataLoadingConfig_LiteralMapFormat>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.IOStrategy io_strategy = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::IOStrategy::_InternalParse; + object = msg->mutable_io_strategy(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DataLoadingConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.DataLoadingConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bool enabled = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &enabled_))); + } else { + goto handle_unusual; + } + break; + } + + // string input_path = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_path())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_path().data(), static_cast(this->input_path().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.DataLoadingConfig.input_path")); + } else { + goto handle_unusual; + } + break; + } + + // string output_path = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_path())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_path().data(), static_cast(this->output_path().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.DataLoadingConfig.output_path")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_format(static_cast< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.IOStrategy io_strategy = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_io_strategy())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.DataLoadingConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.DataLoadingConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DataLoadingConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.DataLoadingConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool enabled = 1; + if (this->enabled() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enabled(), output); + } + + // string input_path = 2; + if (this->input_path().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_path().data(), static_cast(this->input_path().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.DataLoadingConfig.input_path"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->input_path(), output); + } + + // string output_path = 3; + if (this->output_path().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_path().data(), static_cast(this->output_path().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.DataLoadingConfig.output_path"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->output_path(), output); + } + + // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + if (this->format() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->format(), output); + } + + // .flyteidl.core.IOStrategy io_strategy = 5; + if (this->has_io_strategy()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::io_strategy(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.DataLoadingConfig) +} + +::google::protobuf::uint8* DataLoadingConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.DataLoadingConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool enabled = 1; + if (this->enabled() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enabled(), target); + } + + // string input_path = 2; + if (this->input_path().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_path().data(), static_cast(this->input_path().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.DataLoadingConfig.input_path"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->input_path(), target); + } + + // string output_path = 3; + if (this->output_path().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_path().data(), static_cast(this->output_path().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.DataLoadingConfig.output_path"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->output_path(), target); + } + + // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + if (this->format() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->format(), target); + } + + // .flyteidl.core.IOStrategy io_strategy = 5; + if (this->has_io_strategy()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::io_strategy(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.DataLoadingConfig) + return target; +} + +size_t DataLoadingConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.DataLoadingConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string input_path = 2; + if (this->input_path().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_path()); + } + + // string output_path = 3; + if (this->output_path().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_path()); + } + + // .flyteidl.core.IOStrategy io_strategy = 5; + if (this->has_io_strategy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *io_strategy_); + } + + // bool enabled = 1; + if (this->enabled() != 0) { + total_size += 1 + 1; + } + + // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + if (this->format() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->format()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DataLoadingConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.DataLoadingConfig) + GOOGLE_DCHECK_NE(&from, this); + const DataLoadingConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.DataLoadingConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.DataLoadingConfig) + MergeFrom(*source); + } +} + +void DataLoadingConfig::MergeFrom(const DataLoadingConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.DataLoadingConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.input_path().size() > 0) { + + input_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_path_); + } + if (from.output_path().size() > 0) { + + output_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_path_); + } + if (from.has_io_strategy()) { + mutable_io_strategy()->::flyteidl::core::IOStrategy::MergeFrom(from.io_strategy()); + } + if (from.enabled() != 0) { + set_enabled(from.enabled()); + } + if (from.format() != 0) { + set_format(from.format()); + } +} + +void DataLoadingConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.DataLoadingConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DataLoadingConfig::CopyFrom(const DataLoadingConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.DataLoadingConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DataLoadingConfig::IsInitialized() const { + return true; +} + +void DataLoadingConfig::Swap(DataLoadingConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void DataLoadingConfig::InternalSwap(DataLoadingConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + input_path_.Swap(&other->input_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + output_path_.Swap(&other->output_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(io_strategy_, other->io_strategy_); + swap(enabled_, other->enabled_); + swap(format_, other->format_); +} + +::google::protobuf::Metadata DataLoadingConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void K8sPod::InitAsDefaultInstance() { + ::flyteidl::core::_K8sPod_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::K8sObjectMetadata*>( + ::flyteidl::core::K8sObjectMetadata::internal_default_instance()); + ::flyteidl::core::_K8sPod_default_instance_._instance.get_mutable()->pod_spec_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); + ::flyteidl::core::_K8sPod_default_instance_._instance.get_mutable()->data_config_ = const_cast< ::flyteidl::core::DataLoadingConfig*>( + ::flyteidl::core::DataLoadingConfig::internal_default_instance()); +} +class K8sPod::HasBitSetters { + public: + static const ::flyteidl::core::K8sObjectMetadata& metadata(const K8sPod* msg); + static const ::google::protobuf::Struct& pod_spec(const K8sPod* msg); + static const ::flyteidl::core::DataLoadingConfig& data_config(const K8sPod* msg); +}; + +const ::flyteidl::core::K8sObjectMetadata& +K8sPod::HasBitSetters::metadata(const K8sPod* msg) { + return *msg->metadata_; +} +const ::google::protobuf::Struct& +K8sPod::HasBitSetters::pod_spec(const K8sPod* msg) { + return *msg->pod_spec_; +} +const ::flyteidl::core::DataLoadingConfig& +K8sPod::HasBitSetters::data_config(const K8sPod* msg) { + return *msg->data_config_; +} +void K8sPod::clear_pod_spec() { + if (GetArenaNoVirtual() == nullptr && pod_spec_ != nullptr) { + delete pod_spec_; + } + pod_spec_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int K8sPod::kMetadataFieldNumber; +const int K8sPod::kPodSpecFieldNumber; +const int K8sPod::kDataConfigFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +K8sPod::K8sPod() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.K8sPod) +} +K8sPod::K8sPod(const K8sPod& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::K8sObjectMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_pod_spec()) { + pod_spec_ = new ::google::protobuf::Struct(*from.pod_spec_); + } else { + pod_spec_ = nullptr; + } + if (from.has_data_config()) { + data_config_ = new ::flyteidl::core::DataLoadingConfig(*from.data_config_); + } else { + data_config_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.K8sPod) +} + +void K8sPod::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base); + ::memset(&metadata_, 0, static_cast( + reinterpret_cast(&data_config_) - + reinterpret_cast(&metadata_)) + sizeof(data_config_)); +} + +K8sPod::~K8sPod() { + // @@protoc_insertion_point(destructor:flyteidl.core.K8sPod) + SharedDtor(); +} + +void K8sPod::SharedDtor() { + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete pod_spec_; + if (this != internal_default_instance()) delete data_config_; +} + +void K8sPod::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const K8sPod& K8sPod::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void K8sPod::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.K8sPod) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && pod_spec_ != nullptr) { + delete pod_spec_; + } + pod_spec_ = nullptr; + if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { + delete data_config_; + } + data_config_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* K8sPod::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.K8sObjectMetadata metadata = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::K8sObjectMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Struct pod_spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_pod_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.DataLoadingConfig data_config = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::DataLoadingConfig::_InternalParse; + object = msg->mutable_data_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool K8sPod::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.K8sPod) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.K8sObjectMetadata metadata = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct pod_spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pod_spec())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.DataLoadingConfig data_config = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_data_config())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.K8sPod) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.K8sPod) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void K8sPod::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.K8sPod) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.K8sObjectMetadata metadata = 1; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::metadata(this), output); + } + + // .google.protobuf.Struct pod_spec = 2; + if (this->has_pod_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::pod_spec(this), output); + } + + // .flyteidl.core.DataLoadingConfig data_config = 3; + if (this->has_data_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::data_config(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.K8sPod) +} + +::google::protobuf::uint8* K8sPod::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.K8sPod) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.K8sObjectMetadata metadata = 1; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::metadata(this), target); + } + + // .google.protobuf.Struct pod_spec = 2; + if (this->has_pod_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::pod_spec(this), target); + } + + // .flyteidl.core.DataLoadingConfig data_config = 3; + if (this->has_data_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::data_config(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.K8sPod) + return target; +} + +size_t K8sPod::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.K8sPod) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.K8sObjectMetadata metadata = 1; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .google.protobuf.Struct pod_spec = 2; + if (this->has_pod_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *pod_spec_); + } + + // .flyteidl.core.DataLoadingConfig data_config = 3; + if (this->has_data_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_config_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void K8sPod::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.K8sPod) + GOOGLE_DCHECK_NE(&from, this); + const K8sPod* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.K8sPod) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.K8sPod) + MergeFrom(*source); + } +} + +void K8sPod::MergeFrom(const K8sPod& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.K8sPod) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::K8sObjectMetadata::MergeFrom(from.metadata()); + } + if (from.has_pod_spec()) { + mutable_pod_spec()->::google::protobuf::Struct::MergeFrom(from.pod_spec()); + } + if (from.has_data_config()) { + mutable_data_config()->::flyteidl::core::DataLoadingConfig::MergeFrom(from.data_config()); + } +} + +void K8sPod::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.K8sPod) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void K8sPod::CopyFrom(const K8sPod& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.K8sPod) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool K8sPod::IsInitialized() const { + return true; +} + +void K8sPod::Swap(K8sPod* other) { + if (other == this) return; + InternalSwap(other); +} +void K8sPod::InternalSwap(K8sPod* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(metadata_, other->metadata_); + swap(pod_spec_, other->pod_spec_); + swap(data_config_, other->data_config_); +} + +::google::protobuf::Metadata K8sPod::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +K8sObjectMetadata_LabelsEntry_DoNotUse::K8sObjectMetadata_LabelsEntry_DoNotUse() {} +K8sObjectMetadata_LabelsEntry_DoNotUse::K8sObjectMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void K8sObjectMetadata_LabelsEntry_DoNotUse::MergeFrom(const K8sObjectMetadata_LabelsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata K8sObjectMetadata_LabelsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[12]; +} +void K8sObjectMetadata_LabelsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool K8sObjectMetadata_LabelsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + K8sObjectMetadata_LabelsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +K8sObjectMetadata_AnnotationsEntry_DoNotUse::K8sObjectMetadata_AnnotationsEntry_DoNotUse() {} +K8sObjectMetadata_AnnotationsEntry_DoNotUse::K8sObjectMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void K8sObjectMetadata_AnnotationsEntry_DoNotUse::MergeFrom(const K8sObjectMetadata_AnnotationsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata K8sObjectMetadata_AnnotationsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[13]; +} +void K8sObjectMetadata_AnnotationsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool K8sObjectMetadata_AnnotationsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + K8sObjectMetadata_AnnotationsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void K8sObjectMetadata::InitAsDefaultInstance() { +} +class K8sObjectMetadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int K8sObjectMetadata::kLabelsFieldNumber; +const int K8sObjectMetadata::kAnnotationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +K8sObjectMetadata::K8sObjectMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.K8sObjectMetadata) +} +K8sObjectMetadata::K8sObjectMetadata(const K8sObjectMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + labels_.MergeFrom(from.labels_); + annotations_.MergeFrom(from.annotations_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.K8sObjectMetadata) +} + +void K8sObjectMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base); +} + +K8sObjectMetadata::~K8sObjectMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.K8sObjectMetadata) + SharedDtor(); +} + +void K8sObjectMetadata::SharedDtor() { +} + +void K8sObjectMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const K8sObjectMetadata& K8sObjectMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void K8sObjectMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.K8sObjectMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + labels_.Clear(); + annotations_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* K8sObjectMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map labels = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->labels_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // map annotations = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->annotations_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool K8sObjectMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.K8sObjectMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map labels = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + K8sObjectMetadata_LabelsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + K8sObjectMetadata_LabelsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&labels_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // map annotations = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + K8sObjectMetadata_AnnotationsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + K8sObjectMetadata_AnnotationsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&annotations_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.K8sObjectMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.K8sObjectMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void K8sObjectMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.K8sObjectMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map labels = 1; + if (!this->labels().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->labels().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->labels().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it) { + entry.reset(labels_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // map annotations = 2; + if (!this->annotations().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->annotations().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->annotations().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it) { + entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.K8sObjectMetadata) +} + +::google::protobuf::uint8* K8sObjectMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.K8sObjectMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map labels = 1; + if (!this->labels().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.LabelsEntry.value"); + } + }; + + if (false && + this->labels().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->labels().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it) { + entry.reset(labels_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // map annotations = 2; + if (!this->annotations().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value"); + } + }; + + if (false && + this->annotations().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->annotations().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it) { + entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.K8sObjectMetadata) + return target; +} + +size_t K8sObjectMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.K8sObjectMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map labels = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->labels_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->labels().begin(); + it != this->labels().end(); ++it) { + entry.reset(labels_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // map annotations = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->annotations_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->annotations().begin(); + it != this->annotations().end(); ++it) { + entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void K8sObjectMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.K8sObjectMetadata) + GOOGLE_DCHECK_NE(&from, this); + const K8sObjectMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.K8sObjectMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.K8sObjectMetadata) + MergeFrom(*source); + } +} + +void K8sObjectMetadata::MergeFrom(const K8sObjectMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.K8sObjectMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + labels_.MergeFrom(from.labels_); + annotations_.MergeFrom(from.annotations_); +} + +void K8sObjectMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.K8sObjectMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void K8sObjectMetadata::CopyFrom(const K8sObjectMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.K8sObjectMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool K8sObjectMetadata::IsInitialized() const { + return true; +} + +void K8sObjectMetadata::Swap(K8sObjectMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void K8sObjectMetadata::InternalSwap(K8sObjectMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + labels_.Swap(&other->labels_); + annotations_.Swap(&other->annotations_); +} + +::google::protobuf::Metadata K8sObjectMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Sql::InitAsDefaultInstance() { +} +class Sql::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Sql::kStatementFieldNumber; +const int Sql::kDialectFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Sql::Sql() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Sql) +} +Sql::Sql(const Sql& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.statement().size() > 0) { + statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); + } + dialect_ = from.dialect_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Sql) +} + +void Sql::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base); + statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dialect_ = 0; +} + +Sql::~Sql() { + // @@protoc_insertion_point(destructor:flyteidl.core.Sql) + SharedDtor(); +} + +void Sql::SharedDtor() { + statement_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Sql::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Sql& Sql::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base); + return *internal_default_instance(); +} + + +void Sql::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Sql) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dialect_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Sql::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string statement = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Sql.statement"); + object = msg->mutable_statement(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Sql.Dialect dialect = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_dialect(static_cast<::flyteidl::core::Sql_Dialect>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Sql::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Sql) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string statement = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_statement())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->statement().data(), static_cast(this->statement().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Sql.statement")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Sql.Dialect dialect = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_dialect(static_cast< ::flyteidl::core::Sql_Dialect >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Sql) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Sql) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Sql::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Sql) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string statement = 1; + if (this->statement().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->statement().data(), static_cast(this->statement().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Sql.statement"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->statement(), output); + } + + // .flyteidl.core.Sql.Dialect dialect = 2; + if (this->dialect() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->dialect(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Sql) +} + +::google::protobuf::uint8* Sql::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Sql) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string statement = 1; + if (this->statement().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->statement().data(), static_cast(this->statement().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Sql.statement"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->statement(), target); + } + + // .flyteidl.core.Sql.Dialect dialect = 2; + if (this->dialect() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->dialect(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Sql) + return target; +} + +size_t Sql::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Sql) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string statement = 1; + if (this->statement().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->statement()); + } + + // .flyteidl.core.Sql.Dialect dialect = 2; + if (this->dialect() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->dialect()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Sql::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Sql) + GOOGLE_DCHECK_NE(&from, this); + const Sql* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Sql) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Sql) + MergeFrom(*source); + } +} + +void Sql::MergeFrom(const Sql& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Sql) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.statement().size() > 0) { + + statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); + } + if (from.dialect() != 0) { + set_dialect(from.dialect()); + } +} + +void Sql::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Sql) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Sql::CopyFrom(const Sql& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Sql) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Sql::IsInitialized() const { + return true; +} + +void Sql::Swap(Sql* other) { + if (other == this) return; + InternalSwap(other); +} +void Sql::InternalSwap(Sql* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + statement_.Swap(&other->statement_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dialect_, other->dialect_); +} + +::google::protobuf::Metadata Sql::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::Resources_ResourceEntry* Arena::CreateMaybeMessage< ::flyteidl::core::Resources_ResourceEntry >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Resources_ResourceEntry >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Resources* Arena::CreateMaybeMessage< ::flyteidl::core::Resources >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Resources >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::RuntimeMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::RuntimeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::RuntimeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::TaskMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskTemplate* Arena::CreateMaybeMessage< ::flyteidl::core::TaskTemplate >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskTemplate >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ContainerPort* Arena::CreateMaybeMessage< ::flyteidl::core::ContainerPort >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ContainerPort >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Container* Arena::CreateMaybeMessage< ::flyteidl::core::Container >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Container >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::IOStrategy* Arena::CreateMaybeMessage< ::flyteidl::core::IOStrategy >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::IOStrategy >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::DataLoadingConfig* Arena::CreateMaybeMessage< ::flyteidl::core::DataLoadingConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::DataLoadingConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sPod* Arena::CreateMaybeMessage< ::flyteidl::core::K8sPod >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::K8sPod >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sObjectMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::K8sObjectMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::K8sObjectMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Sql* Arena::CreateMaybeMessage< ::flyteidl::core::Sql >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Sql >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h new file mode 100644 index 0000000000..430d867123 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h @@ -0,0 +1,4616 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2ftasks_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2ftasks_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/security.pb.h" +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2ftasks_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[16] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2ftasks_2eproto(); +namespace flyteidl { +namespace core { +class Container; +class ContainerDefaultTypeInternal; +extern ContainerDefaultTypeInternal _Container_default_instance_; +class ContainerPort; +class ContainerPortDefaultTypeInternal; +extern ContainerPortDefaultTypeInternal _ContainerPort_default_instance_; +class DataLoadingConfig; +class DataLoadingConfigDefaultTypeInternal; +extern DataLoadingConfigDefaultTypeInternal _DataLoadingConfig_default_instance_; +class IOStrategy; +class IOStrategyDefaultTypeInternal; +extern IOStrategyDefaultTypeInternal _IOStrategy_default_instance_; +class K8sObjectMetadata; +class K8sObjectMetadataDefaultTypeInternal; +extern K8sObjectMetadataDefaultTypeInternal _K8sObjectMetadata_default_instance_; +class K8sObjectMetadata_AnnotationsEntry_DoNotUse; +class K8sObjectMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal; +extern K8sObjectMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal _K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_; +class K8sObjectMetadata_LabelsEntry_DoNotUse; +class K8sObjectMetadata_LabelsEntry_DoNotUseDefaultTypeInternal; +extern K8sObjectMetadata_LabelsEntry_DoNotUseDefaultTypeInternal _K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_; +class K8sPod; +class K8sPodDefaultTypeInternal; +extern K8sPodDefaultTypeInternal _K8sPod_default_instance_; +class Resources; +class ResourcesDefaultTypeInternal; +extern ResourcesDefaultTypeInternal _Resources_default_instance_; +class Resources_ResourceEntry; +class Resources_ResourceEntryDefaultTypeInternal; +extern Resources_ResourceEntryDefaultTypeInternal _Resources_ResourceEntry_default_instance_; +class RuntimeMetadata; +class RuntimeMetadataDefaultTypeInternal; +extern RuntimeMetadataDefaultTypeInternal _RuntimeMetadata_default_instance_; +class Sql; +class SqlDefaultTypeInternal; +extern SqlDefaultTypeInternal _Sql_default_instance_; +class TaskMetadata; +class TaskMetadataDefaultTypeInternal; +extern TaskMetadataDefaultTypeInternal _TaskMetadata_default_instance_; +class TaskMetadata_TagsEntry_DoNotUse; +class TaskMetadata_TagsEntry_DoNotUseDefaultTypeInternal; +extern TaskMetadata_TagsEntry_DoNotUseDefaultTypeInternal _TaskMetadata_TagsEntry_DoNotUse_default_instance_; +class TaskTemplate; +class TaskTemplateDefaultTypeInternal; +extern TaskTemplateDefaultTypeInternal _TaskTemplate_default_instance_; +class TaskTemplate_ConfigEntry_DoNotUse; +class TaskTemplate_ConfigEntry_DoNotUseDefaultTypeInternal; +extern TaskTemplate_ConfigEntry_DoNotUseDefaultTypeInternal _TaskTemplate_ConfigEntry_DoNotUse_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::Container* Arena::CreateMaybeMessage<::flyteidl::core::Container>(Arena*); +template<> ::flyteidl::core::ContainerPort* Arena::CreateMaybeMessage<::flyteidl::core::ContainerPort>(Arena*); +template<> ::flyteidl::core::DataLoadingConfig* Arena::CreateMaybeMessage<::flyteidl::core::DataLoadingConfig>(Arena*); +template<> ::flyteidl::core::IOStrategy* Arena::CreateMaybeMessage<::flyteidl::core::IOStrategy>(Arena*); +template<> ::flyteidl::core::K8sObjectMetadata* Arena::CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata>(Arena*); +template<> ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::K8sPod* Arena::CreateMaybeMessage<::flyteidl::core::K8sPod>(Arena*); +template<> ::flyteidl::core::Resources* Arena::CreateMaybeMessage<::flyteidl::core::Resources>(Arena*); +template<> ::flyteidl::core::Resources_ResourceEntry* Arena::CreateMaybeMessage<::flyteidl::core::Resources_ResourceEntry>(Arena*); +template<> ::flyteidl::core::RuntimeMetadata* Arena::CreateMaybeMessage<::flyteidl::core::RuntimeMetadata>(Arena*); +template<> ::flyteidl::core::Sql* Arena::CreateMaybeMessage<::flyteidl::core::Sql>(Arena*); +template<> ::flyteidl::core::TaskMetadata* Arena::CreateMaybeMessage<::flyteidl::core::TaskMetadata>(Arena*); +template<> ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::TaskTemplate* Arena::CreateMaybeMessage<::flyteidl::core::TaskTemplate>(Arena*); +template<> ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum Resources_ResourceName { + Resources_ResourceName_UNKNOWN = 0, + Resources_ResourceName_CPU = 1, + Resources_ResourceName_GPU = 2, + Resources_ResourceName_MEMORY = 3, + Resources_ResourceName_STORAGE = 4, + Resources_ResourceName_EPHEMERAL_STORAGE = 5, + Resources_ResourceName_Resources_ResourceName_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + Resources_ResourceName_Resources_ResourceName_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool Resources_ResourceName_IsValid(int value); +const Resources_ResourceName Resources_ResourceName_ResourceName_MIN = Resources_ResourceName_UNKNOWN; +const Resources_ResourceName Resources_ResourceName_ResourceName_MAX = Resources_ResourceName_EPHEMERAL_STORAGE; +const int Resources_ResourceName_ResourceName_ARRAYSIZE = Resources_ResourceName_ResourceName_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Resources_ResourceName_descriptor(); +inline const ::std::string& Resources_ResourceName_Name(Resources_ResourceName value) { + return ::google::protobuf::internal::NameOfEnum( + Resources_ResourceName_descriptor(), value); +} +inline bool Resources_ResourceName_Parse( + const ::std::string& name, Resources_ResourceName* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Resources_ResourceName_descriptor(), name, value); +} +enum RuntimeMetadata_RuntimeType { + RuntimeMetadata_RuntimeType_OTHER = 0, + RuntimeMetadata_RuntimeType_FLYTE_SDK = 1, + RuntimeMetadata_RuntimeType_RuntimeMetadata_RuntimeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + RuntimeMetadata_RuntimeType_RuntimeMetadata_RuntimeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool RuntimeMetadata_RuntimeType_IsValid(int value); +const RuntimeMetadata_RuntimeType RuntimeMetadata_RuntimeType_RuntimeType_MIN = RuntimeMetadata_RuntimeType_OTHER; +const RuntimeMetadata_RuntimeType RuntimeMetadata_RuntimeType_RuntimeType_MAX = RuntimeMetadata_RuntimeType_FLYTE_SDK; +const int RuntimeMetadata_RuntimeType_RuntimeType_ARRAYSIZE = RuntimeMetadata_RuntimeType_RuntimeType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RuntimeMetadata_RuntimeType_descriptor(); +inline const ::std::string& RuntimeMetadata_RuntimeType_Name(RuntimeMetadata_RuntimeType value) { + return ::google::protobuf::internal::NameOfEnum( + RuntimeMetadata_RuntimeType_descriptor(), value); +} +inline bool RuntimeMetadata_RuntimeType_Parse( + const ::std::string& name, RuntimeMetadata_RuntimeType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RuntimeMetadata_RuntimeType_descriptor(), name, value); +} +enum Container_Architecture { + Container_Architecture_UNKNOWN = 0, + Container_Architecture_AMD64 = 1, + Container_Architecture_ARM64 = 2, + Container_Architecture_ARM_V6 = 3, + Container_Architecture_ARM_V7 = 4, + Container_Architecture_Container_Architecture_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + Container_Architecture_Container_Architecture_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool Container_Architecture_IsValid(int value); +const Container_Architecture Container_Architecture_Architecture_MIN = Container_Architecture_UNKNOWN; +const Container_Architecture Container_Architecture_Architecture_MAX = Container_Architecture_ARM_V7; +const int Container_Architecture_Architecture_ARRAYSIZE = Container_Architecture_Architecture_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Container_Architecture_descriptor(); +inline const ::std::string& Container_Architecture_Name(Container_Architecture value) { + return ::google::protobuf::internal::NameOfEnum( + Container_Architecture_descriptor(), value); +} +inline bool Container_Architecture_Parse( + const ::std::string& name, Container_Architecture* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Container_Architecture_descriptor(), name, value); +} +enum IOStrategy_DownloadMode { + IOStrategy_DownloadMode_DOWNLOAD_EAGER = 0, + IOStrategy_DownloadMode_DOWNLOAD_STREAM = 1, + IOStrategy_DownloadMode_DO_NOT_DOWNLOAD = 2, + IOStrategy_DownloadMode_IOStrategy_DownloadMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + IOStrategy_DownloadMode_IOStrategy_DownloadMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool IOStrategy_DownloadMode_IsValid(int value); +const IOStrategy_DownloadMode IOStrategy_DownloadMode_DownloadMode_MIN = IOStrategy_DownloadMode_DOWNLOAD_EAGER; +const IOStrategy_DownloadMode IOStrategy_DownloadMode_DownloadMode_MAX = IOStrategy_DownloadMode_DO_NOT_DOWNLOAD; +const int IOStrategy_DownloadMode_DownloadMode_ARRAYSIZE = IOStrategy_DownloadMode_DownloadMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* IOStrategy_DownloadMode_descriptor(); +inline const ::std::string& IOStrategy_DownloadMode_Name(IOStrategy_DownloadMode value) { + return ::google::protobuf::internal::NameOfEnum( + IOStrategy_DownloadMode_descriptor(), value); +} +inline bool IOStrategy_DownloadMode_Parse( + const ::std::string& name, IOStrategy_DownloadMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + IOStrategy_DownloadMode_descriptor(), name, value); +} +enum IOStrategy_UploadMode { + IOStrategy_UploadMode_UPLOAD_ON_EXIT = 0, + IOStrategy_UploadMode_UPLOAD_EAGER = 1, + IOStrategy_UploadMode_DO_NOT_UPLOAD = 2, + IOStrategy_UploadMode_IOStrategy_UploadMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + IOStrategy_UploadMode_IOStrategy_UploadMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool IOStrategy_UploadMode_IsValid(int value); +const IOStrategy_UploadMode IOStrategy_UploadMode_UploadMode_MIN = IOStrategy_UploadMode_UPLOAD_ON_EXIT; +const IOStrategy_UploadMode IOStrategy_UploadMode_UploadMode_MAX = IOStrategy_UploadMode_DO_NOT_UPLOAD; +const int IOStrategy_UploadMode_UploadMode_ARRAYSIZE = IOStrategy_UploadMode_UploadMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* IOStrategy_UploadMode_descriptor(); +inline const ::std::string& IOStrategy_UploadMode_Name(IOStrategy_UploadMode value) { + return ::google::protobuf::internal::NameOfEnum( + IOStrategy_UploadMode_descriptor(), value); +} +inline bool IOStrategy_UploadMode_Parse( + const ::std::string& name, IOStrategy_UploadMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + IOStrategy_UploadMode_descriptor(), name, value); +} +enum DataLoadingConfig_LiteralMapFormat { + DataLoadingConfig_LiteralMapFormat_JSON = 0, + DataLoadingConfig_LiteralMapFormat_YAML = 1, + DataLoadingConfig_LiteralMapFormat_PROTO = 2, + DataLoadingConfig_LiteralMapFormat_DataLoadingConfig_LiteralMapFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + DataLoadingConfig_LiteralMapFormat_DataLoadingConfig_LiteralMapFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool DataLoadingConfig_LiteralMapFormat_IsValid(int value); +const DataLoadingConfig_LiteralMapFormat DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MIN = DataLoadingConfig_LiteralMapFormat_JSON; +const DataLoadingConfig_LiteralMapFormat DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MAX = DataLoadingConfig_LiteralMapFormat_PROTO; +const int DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_ARRAYSIZE = DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DataLoadingConfig_LiteralMapFormat_descriptor(); +inline const ::std::string& DataLoadingConfig_LiteralMapFormat_Name(DataLoadingConfig_LiteralMapFormat value) { + return ::google::protobuf::internal::NameOfEnum( + DataLoadingConfig_LiteralMapFormat_descriptor(), value); +} +inline bool DataLoadingConfig_LiteralMapFormat_Parse( + const ::std::string& name, DataLoadingConfig_LiteralMapFormat* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DataLoadingConfig_LiteralMapFormat_descriptor(), name, value); +} +enum Sql_Dialect { + Sql_Dialect_UNDEFINED = 0, + Sql_Dialect_ANSI = 1, + Sql_Dialect_HIVE = 2, + Sql_Dialect_OTHER = 3, + Sql_Dialect_Sql_Dialect_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + Sql_Dialect_Sql_Dialect_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool Sql_Dialect_IsValid(int value); +const Sql_Dialect Sql_Dialect_Dialect_MIN = Sql_Dialect_UNDEFINED; +const Sql_Dialect Sql_Dialect_Dialect_MAX = Sql_Dialect_OTHER; +const int Sql_Dialect_Dialect_ARRAYSIZE = Sql_Dialect_Dialect_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Sql_Dialect_descriptor(); +inline const ::std::string& Sql_Dialect_Name(Sql_Dialect value) { + return ::google::protobuf::internal::NameOfEnum( + Sql_Dialect_descriptor(), value); +} +inline bool Sql_Dialect_Parse( + const ::std::string& name, Sql_Dialect* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Sql_Dialect_descriptor(), name, value); +} +// =================================================================== + +class Resources_ResourceEntry final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Resources.ResourceEntry) */ { + public: + Resources_ResourceEntry(); + virtual ~Resources_ResourceEntry(); + + Resources_ResourceEntry(const Resources_ResourceEntry& from); + + inline Resources_ResourceEntry& operator=(const Resources_ResourceEntry& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Resources_ResourceEntry(Resources_ResourceEntry&& from) noexcept + : Resources_ResourceEntry() { + *this = ::std::move(from); + } + + inline Resources_ResourceEntry& operator=(Resources_ResourceEntry&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Resources_ResourceEntry& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Resources_ResourceEntry* internal_default_instance() { + return reinterpret_cast( + &_Resources_ResourceEntry_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Resources_ResourceEntry* other); + friend void swap(Resources_ResourceEntry& a, Resources_ResourceEntry& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Resources_ResourceEntry* New() const final { + return CreateMaybeMessage(nullptr); + } + + Resources_ResourceEntry* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Resources_ResourceEntry& from); + void MergeFrom(const Resources_ResourceEntry& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Resources_ResourceEntry* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // .flyteidl.core.Resources.ResourceName name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + ::flyteidl::core::Resources_ResourceName name() const; + void set_name(::flyteidl::core::Resources_ResourceName value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr value_; + int name_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class Resources final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Resources) */ { + public: + Resources(); + virtual ~Resources(); + + Resources(const Resources& from); + + inline Resources& operator=(const Resources& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Resources(Resources&& from) noexcept + : Resources() { + *this = ::std::move(from); + } + + inline Resources& operator=(Resources&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Resources& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Resources* internal_default_instance() { + return reinterpret_cast( + &_Resources_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(Resources* other); + friend void swap(Resources& a, Resources& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Resources* New() const final { + return CreateMaybeMessage(nullptr); + } + + Resources* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Resources& from); + void MergeFrom(const Resources& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Resources* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Resources_ResourceEntry ResourceEntry; + + typedef Resources_ResourceName ResourceName; + static const ResourceName UNKNOWN = + Resources_ResourceName_UNKNOWN; + static const ResourceName CPU = + Resources_ResourceName_CPU; + static const ResourceName GPU = + Resources_ResourceName_GPU; + static const ResourceName MEMORY = + Resources_ResourceName_MEMORY; + static const ResourceName STORAGE = + Resources_ResourceName_STORAGE; + static const ResourceName EPHEMERAL_STORAGE = + Resources_ResourceName_EPHEMERAL_STORAGE; + static inline bool ResourceName_IsValid(int value) { + return Resources_ResourceName_IsValid(value); + } + static const ResourceName ResourceName_MIN = + Resources_ResourceName_ResourceName_MIN; + static const ResourceName ResourceName_MAX = + Resources_ResourceName_ResourceName_MAX; + static const int ResourceName_ARRAYSIZE = + Resources_ResourceName_ResourceName_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ResourceName_descriptor() { + return Resources_ResourceName_descriptor(); + } + static inline const ::std::string& ResourceName_Name(ResourceName value) { + return Resources_ResourceName_Name(value); + } + static inline bool ResourceName_Parse(const ::std::string& name, + ResourceName* value) { + return Resources_ResourceName_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + int requests_size() const; + void clear_requests(); + static const int kRequestsFieldNumber = 1; + ::flyteidl::core::Resources_ResourceEntry* mutable_requests(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* + mutable_requests(); + const ::flyteidl::core::Resources_ResourceEntry& requests(int index) const; + ::flyteidl::core::Resources_ResourceEntry* add_requests(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& + requests() const; + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + int limits_size() const; + void clear_limits(); + static const int kLimitsFieldNumber = 2; + ::flyteidl::core::Resources_ResourceEntry* mutable_limits(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* + mutable_limits(); + const ::flyteidl::core::Resources_ResourceEntry& limits(int index) const; + ::flyteidl::core::Resources_ResourceEntry* add_limits(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& + limits() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry > requests_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry > limits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class RuntimeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.RuntimeMetadata) */ { + public: + RuntimeMetadata(); + virtual ~RuntimeMetadata(); + + RuntimeMetadata(const RuntimeMetadata& from); + + inline RuntimeMetadata& operator=(const RuntimeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RuntimeMetadata(RuntimeMetadata&& from) noexcept + : RuntimeMetadata() { + *this = ::std::move(from); + } + + inline RuntimeMetadata& operator=(RuntimeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const RuntimeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RuntimeMetadata* internal_default_instance() { + return reinterpret_cast( + &_RuntimeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(RuntimeMetadata* other); + friend void swap(RuntimeMetadata& a, RuntimeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RuntimeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + RuntimeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RuntimeMetadata& from); + void MergeFrom(const RuntimeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RuntimeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef RuntimeMetadata_RuntimeType RuntimeType; + static const RuntimeType OTHER = + RuntimeMetadata_RuntimeType_OTHER; + static const RuntimeType FLYTE_SDK = + RuntimeMetadata_RuntimeType_FLYTE_SDK; + static inline bool RuntimeType_IsValid(int value) { + return RuntimeMetadata_RuntimeType_IsValid(value); + } + static const RuntimeType RuntimeType_MIN = + RuntimeMetadata_RuntimeType_RuntimeType_MIN; + static const RuntimeType RuntimeType_MAX = + RuntimeMetadata_RuntimeType_RuntimeType_MAX; + static const int RuntimeType_ARRAYSIZE = + RuntimeMetadata_RuntimeType_RuntimeType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RuntimeType_descriptor() { + return RuntimeMetadata_RuntimeType_descriptor(); + } + static inline const ::std::string& RuntimeType_Name(RuntimeType value) { + return RuntimeMetadata_RuntimeType_Name(value); + } + static inline bool RuntimeType_Parse(const ::std::string& name, + RuntimeType* value) { + return RuntimeMetadata_RuntimeType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string version = 2; + void clear_version(); + static const int kVersionFieldNumber = 2; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + // string flavor = 3; + void clear_flavor(); + static const int kFlavorFieldNumber = 3; + const ::std::string& flavor() const; + void set_flavor(const ::std::string& value); + #if LANG_CXX11 + void set_flavor(::std::string&& value); + #endif + void set_flavor(const char* value); + void set_flavor(const char* value, size_t size); + ::std::string* mutable_flavor(); + ::std::string* release_flavor(); + void set_allocated_flavor(::std::string* flavor); + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::flyteidl::core::RuntimeMetadata_RuntimeType type() const; + void set_type(::flyteidl::core::RuntimeMetadata_RuntimeType value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr flavor_; + int type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskMetadata_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + TaskMetadata_TagsEntry_DoNotUse(); + TaskMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const TaskMetadata_TagsEntry_DoNotUse& other); + static const TaskMetadata_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskMetadata_TagsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class TaskMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskMetadata) */ { + public: + TaskMetadata(); + virtual ~TaskMetadata(); + + TaskMetadata(const TaskMetadata& from); + + inline TaskMetadata& operator=(const TaskMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskMetadata(TaskMetadata&& from) noexcept + : TaskMetadata() { + *this = ::std::move(from); + } + + inline TaskMetadata& operator=(TaskMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskMetadata& default_instance(); + + enum InterruptibleValueCase { + kInterruptible = 8, + INTERRUPTIBLE_VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskMetadata* internal_default_instance() { + return reinterpret_cast( + &_TaskMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TaskMetadata* other); + friend void swap(TaskMetadata& a, TaskMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskMetadata& from); + void MergeFrom(const TaskMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map tags = 11; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 11; + const ::google::protobuf::Map< ::std::string, ::std::string >& + tags() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_tags(); + + // string discovery_version = 6; + void clear_discovery_version(); + static const int kDiscoveryVersionFieldNumber = 6; + const ::std::string& discovery_version() const; + void set_discovery_version(const ::std::string& value); + #if LANG_CXX11 + void set_discovery_version(::std::string&& value); + #endif + void set_discovery_version(const char* value); + void set_discovery_version(const char* value, size_t size); + ::std::string* mutable_discovery_version(); + ::std::string* release_discovery_version(); + void set_allocated_discovery_version(::std::string* discovery_version); + + // string deprecated_error_message = 7; + void clear_deprecated_error_message(); + static const int kDeprecatedErrorMessageFieldNumber = 7; + const ::std::string& deprecated_error_message() const; + void set_deprecated_error_message(const ::std::string& value); + #if LANG_CXX11 + void set_deprecated_error_message(::std::string&& value); + #endif + void set_deprecated_error_message(const char* value); + void set_deprecated_error_message(const char* value, size_t size); + ::std::string* mutable_deprecated_error_message(); + ::std::string* release_deprecated_error_message(); + void set_allocated_deprecated_error_message(::std::string* deprecated_error_message); + + // string pod_template_name = 12; + void clear_pod_template_name(); + static const int kPodTemplateNameFieldNumber = 12; + const ::std::string& pod_template_name() const; + void set_pod_template_name(const ::std::string& value); + #if LANG_CXX11 + void set_pod_template_name(::std::string&& value); + #endif + void set_pod_template_name(const char* value); + void set_pod_template_name(const char* value, size_t size); + ::std::string* mutable_pod_template_name(); + ::std::string* release_pod_template_name(); + void set_allocated_pod_template_name(::std::string* pod_template_name); + + // .flyteidl.core.RuntimeMetadata runtime = 2; + bool has_runtime() const; + void clear_runtime(); + static const int kRuntimeFieldNumber = 2; + const ::flyteidl::core::RuntimeMetadata& runtime() const; + ::flyteidl::core::RuntimeMetadata* release_runtime(); + ::flyteidl::core::RuntimeMetadata* mutable_runtime(); + void set_allocated_runtime(::flyteidl::core::RuntimeMetadata* runtime); + + // .google.protobuf.Duration timeout = 4; + bool has_timeout() const; + void clear_timeout(); + static const int kTimeoutFieldNumber = 4; + const ::google::protobuf::Duration& timeout() const; + ::google::protobuf::Duration* release_timeout(); + ::google::protobuf::Duration* mutable_timeout(); + void set_allocated_timeout(::google::protobuf::Duration* timeout); + + // .flyteidl.core.RetryStrategy retries = 5; + bool has_retries() const; + void clear_retries(); + static const int kRetriesFieldNumber = 5; + const ::flyteidl::core::RetryStrategy& retries() const; + ::flyteidl::core::RetryStrategy* release_retries(); + ::flyteidl::core::RetryStrategy* mutable_retries(); + void set_allocated_retries(::flyteidl::core::RetryStrategy* retries); + + // bool discoverable = 1; + void clear_discoverable(); + static const int kDiscoverableFieldNumber = 1; + bool discoverable() const; + void set_discoverable(bool value); + + // bool cache_serializable = 9; + void clear_cache_serializable(); + static const int kCacheSerializableFieldNumber = 9; + bool cache_serializable() const; + void set_cache_serializable(bool value); + + // bool generates_deck = 10; + void clear_generates_deck(); + static const int kGeneratesDeckFieldNumber = 10; + bool generates_deck() const; + void set_generates_deck(bool value); + + // bool interruptible = 8; + private: + bool has_interruptible() const; + public: + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 8; + bool interruptible() const; + void set_interruptible(bool value); + + void clear_interruptible_value(); + InterruptibleValueCase interruptible_value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) + private: + class HasBitSetters; + void set_has_interruptible(); + + inline bool has_interruptible_value() const; + inline void clear_has_interruptible_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + TaskMetadata_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > tags_; + ::google::protobuf::internal::ArenaStringPtr discovery_version_; + ::google::protobuf::internal::ArenaStringPtr deprecated_error_message_; + ::google::protobuf::internal::ArenaStringPtr pod_template_name_; + ::flyteidl::core::RuntimeMetadata* runtime_; + ::google::protobuf::Duration* timeout_; + ::flyteidl::core::RetryStrategy* retries_; + bool discoverable_; + bool cache_serializable_; + bool generates_deck_; + union InterruptibleValueUnion { + InterruptibleValueUnion() {} + bool interruptible_; + } interruptible_value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskTemplate_ConfigEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + TaskTemplate_ConfigEntry_DoNotUse(); + TaskTemplate_ConfigEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const TaskTemplate_ConfigEntry_DoNotUse& other); + static const TaskTemplate_ConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskTemplate_ConfigEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class TaskTemplate final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskTemplate) */ { + public: + TaskTemplate(); + virtual ~TaskTemplate(); + + TaskTemplate(const TaskTemplate& from); + + inline TaskTemplate& operator=(const TaskTemplate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskTemplate(TaskTemplate&& from) noexcept + : TaskTemplate() { + *this = ::std::move(from); + } + + inline TaskTemplate& operator=(TaskTemplate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskTemplate& default_instance(); + + enum TargetCase { + kContainer = 6, + kK8SPod = 17, + kSql = 18, + TARGET_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskTemplate* internal_default_instance() { + return reinterpret_cast( + &_TaskTemplate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(TaskTemplate* other); + friend void swap(TaskTemplate& a, TaskTemplate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskTemplate* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskTemplate* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskTemplate& from); + void MergeFrom(const TaskTemplate& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskTemplate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map config = 16; + int config_size() const; + void clear_config(); + static const int kConfigFieldNumber = 16; + const ::google::protobuf::Map< ::std::string, ::std::string >& + config() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_config(); + + // string type = 2; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::std::string& type() const; + void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif + void set_type(const char* value); + void set_type(const char* value, size_t size); + ::std::string* mutable_type(); + ::std::string* release_type(); + void set_allocated_type(::std::string* type); + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.core.TaskMetadata metadata = 3; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::flyteidl::core::TaskMetadata& metadata() const; + ::flyteidl::core::TaskMetadata* release_metadata(); + ::flyteidl::core::TaskMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::TaskMetadata* metadata); + + // .flyteidl.core.TypedInterface interface = 4; + bool has_interface() const; + void clear_interface(); + static const int kInterfaceFieldNumber = 4; + const ::flyteidl::core::TypedInterface& interface() const; + ::flyteidl::core::TypedInterface* release_interface(); + ::flyteidl::core::TypedInterface* mutable_interface(); + void set_allocated_interface(::flyteidl::core::TypedInterface* interface); + + // .google.protobuf.Struct custom = 5; + bool has_custom() const; + void clear_custom(); + static const int kCustomFieldNumber = 5; + const ::google::protobuf::Struct& custom() const; + ::google::protobuf::Struct* release_custom(); + ::google::protobuf::Struct* mutable_custom(); + void set_allocated_custom(::google::protobuf::Struct* custom); + + // .flyteidl.core.SecurityContext security_context = 8; + bool has_security_context() const; + void clear_security_context(); + static const int kSecurityContextFieldNumber = 8; + const ::flyteidl::core::SecurityContext& security_context() const; + ::flyteidl::core::SecurityContext* release_security_context(); + ::flyteidl::core::SecurityContext* mutable_security_context(); + void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); + + // int32 task_type_version = 7; + void clear_task_type_version(); + static const int kTaskTypeVersionFieldNumber = 7; + ::google::protobuf::int32 task_type_version() const; + void set_task_type_version(::google::protobuf::int32 value); + + // .flyteidl.core.Container container = 6; + bool has_container() const; + void clear_container(); + static const int kContainerFieldNumber = 6; + const ::flyteidl::core::Container& container() const; + ::flyteidl::core::Container* release_container(); + ::flyteidl::core::Container* mutable_container(); + void set_allocated_container(::flyteidl::core::Container* container); + + // .flyteidl.core.K8sPod k8s_pod = 17; + bool has_k8s_pod() const; + void clear_k8s_pod(); + static const int kK8SPodFieldNumber = 17; + const ::flyteidl::core::K8sPod& k8s_pod() const; + ::flyteidl::core::K8sPod* release_k8s_pod(); + ::flyteidl::core::K8sPod* mutable_k8s_pod(); + void set_allocated_k8s_pod(::flyteidl::core::K8sPod* k8s_pod); + + // .flyteidl.core.Sql sql = 18; + bool has_sql() const; + void clear_sql(); + static const int kSqlFieldNumber = 18; + const ::flyteidl::core::Sql& sql() const; + ::flyteidl::core::Sql* release_sql(); + ::flyteidl::core::Sql* mutable_sql(); + void set_allocated_sql(::flyteidl::core::Sql* sql); + + void clear_target(); + TargetCase target_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) + private: + class HasBitSetters; + void set_has_container(); + void set_has_k8s_pod(); + void set_has_sql(); + + inline bool has_target() const; + inline void clear_has_target(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + TaskTemplate_ConfigEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > config_; + ::google::protobuf::internal::ArenaStringPtr type_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::core::TaskMetadata* metadata_; + ::flyteidl::core::TypedInterface* interface_; + ::google::protobuf::Struct* custom_; + ::flyteidl::core::SecurityContext* security_context_; + ::google::protobuf::int32 task_type_version_; + union TargetUnion { + TargetUnion() {} + ::flyteidl::core::Container* container_; + ::flyteidl::core::K8sPod* k8s_pod_; + ::flyteidl::core::Sql* sql_; + } target_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class ContainerPort final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ContainerPort) */ { + public: + ContainerPort(); + virtual ~ContainerPort(); + + ContainerPort(const ContainerPort& from); + + inline ContainerPort& operator=(const ContainerPort& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContainerPort(ContainerPort&& from) noexcept + : ContainerPort() { + *this = ::std::move(from); + } + + inline ContainerPort& operator=(ContainerPort&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ContainerPort& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContainerPort* internal_default_instance() { + return reinterpret_cast( + &_ContainerPort_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(ContainerPort* other); + friend void swap(ContainerPort& a, ContainerPort& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContainerPort* New() const final { + return CreateMaybeMessage(nullptr); + } + + ContainerPort* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ContainerPort& from); + void MergeFrom(const ContainerPort& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContainerPort* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 container_port = 1; + void clear_container_port(); + static const int kContainerPortFieldNumber = 1; + ::google::protobuf::uint32 container_port() const; + void set_container_port(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 container_port_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class Container final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Container) */ { + public: + Container(); + virtual ~Container(); + + Container(const Container& from); + + inline Container& operator=(const Container& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Container(Container&& from) noexcept + : Container() { + *this = ::std::move(from); + } + + inline Container& operator=(Container&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Container& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Container* internal_default_instance() { + return reinterpret_cast( + &_Container_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(Container* other); + friend void swap(Container& a, Container& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Container* New() const final { + return CreateMaybeMessage(nullptr); + } + + Container* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Container& from); + void MergeFrom(const Container& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Container* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Container_Architecture Architecture; + static const Architecture UNKNOWN = + Container_Architecture_UNKNOWN; + static const Architecture AMD64 = + Container_Architecture_AMD64; + static const Architecture ARM64 = + Container_Architecture_ARM64; + static const Architecture ARM_V6 = + Container_Architecture_ARM_V6; + static const Architecture ARM_V7 = + Container_Architecture_ARM_V7; + static inline bool Architecture_IsValid(int value) { + return Container_Architecture_IsValid(value); + } + static const Architecture Architecture_MIN = + Container_Architecture_Architecture_MIN; + static const Architecture Architecture_MAX = + Container_Architecture_Architecture_MAX; + static const int Architecture_ARRAYSIZE = + Container_Architecture_Architecture_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Architecture_descriptor() { + return Container_Architecture_descriptor(); + } + static inline const ::std::string& Architecture_Name(Architecture value) { + return Container_Architecture_Name(value); + } + static inline bool Architecture_Parse(const ::std::string& name, + Architecture* value) { + return Container_Architecture_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated string command = 2; + int command_size() const; + void clear_command(); + static const int kCommandFieldNumber = 2; + const ::std::string& command(int index) const; + ::std::string* mutable_command(int index); + void set_command(int index, const ::std::string& value); + #if LANG_CXX11 + void set_command(int index, ::std::string&& value); + #endif + void set_command(int index, const char* value); + void set_command(int index, const char* value, size_t size); + ::std::string* add_command(); + void add_command(const ::std::string& value); + #if LANG_CXX11 + void add_command(::std::string&& value); + #endif + void add_command(const char* value); + void add_command(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& command() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_command(); + + // repeated string args = 3; + int args_size() const; + void clear_args(); + static const int kArgsFieldNumber = 3; + const ::std::string& args(int index) const; + ::std::string* mutable_args(int index); + void set_args(int index, const ::std::string& value); + #if LANG_CXX11 + void set_args(int index, ::std::string&& value); + #endif + void set_args(int index, const char* value); + void set_args(int index, const char* value, size_t size); + ::std::string* add_args(); + void add_args(const ::std::string& value); + #if LANG_CXX11 + void add_args(::std::string&& value); + #endif + void add_args(const char* value); + void add_args(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& args() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_args(); + + // repeated .flyteidl.core.KeyValuePair env = 5; + int env_size() const; + void clear_env(); + static const int kEnvFieldNumber = 5; + ::flyteidl::core::KeyValuePair* mutable_env(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* + mutable_env(); + const ::flyteidl::core::KeyValuePair& env(int index) const; + ::flyteidl::core::KeyValuePair* add_env(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& + env() const; + + // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + PROTOBUF_DEPRECATED int config_size() const; + PROTOBUF_DEPRECATED void clear_config(); + PROTOBUF_DEPRECATED static const int kConfigFieldNumber = 6; + PROTOBUF_DEPRECATED ::flyteidl::core::KeyValuePair* mutable_config(int index); + PROTOBUF_DEPRECATED ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* + mutable_config(); + PROTOBUF_DEPRECATED const ::flyteidl::core::KeyValuePair& config(int index) const; + PROTOBUF_DEPRECATED ::flyteidl::core::KeyValuePair* add_config(); + PROTOBUF_DEPRECATED const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& + config() const; + + // repeated .flyteidl.core.ContainerPort ports = 7; + int ports_size() const; + void clear_ports(); + static const int kPortsFieldNumber = 7; + ::flyteidl::core::ContainerPort* mutable_ports(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >* + mutable_ports(); + const ::flyteidl::core::ContainerPort& ports(int index) const; + ::flyteidl::core::ContainerPort* add_ports(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >& + ports() const; + + // string image = 1; + void clear_image(); + static const int kImageFieldNumber = 1; + const ::std::string& image() const; + void set_image(const ::std::string& value); + #if LANG_CXX11 + void set_image(::std::string&& value); + #endif + void set_image(const char* value); + void set_image(const char* value, size_t size); + ::std::string* mutable_image(); + ::std::string* release_image(); + void set_allocated_image(::std::string* image); + + // .flyteidl.core.Resources resources = 4; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 4; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // .flyteidl.core.DataLoadingConfig data_config = 9; + bool has_data_config() const; + void clear_data_config(); + static const int kDataConfigFieldNumber = 9; + const ::flyteidl::core::DataLoadingConfig& data_config() const; + ::flyteidl::core::DataLoadingConfig* release_data_config(); + ::flyteidl::core::DataLoadingConfig* mutable_data_config(); + void set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config); + + // .flyteidl.core.Container.Architecture architecture = 10; + void clear_architecture(); + static const int kArchitectureFieldNumber = 10; + ::flyteidl::core::Container_Architecture architecture() const; + void set_architecture(::flyteidl::core::Container_Architecture value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Container) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> command_; + ::google::protobuf::RepeatedPtrField<::std::string> args_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > env_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > config_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort > ports_; + ::google::protobuf::internal::ArenaStringPtr image_; + ::flyteidl::core::Resources* resources_; + ::flyteidl::core::DataLoadingConfig* data_config_; + int architecture_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class IOStrategy final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IOStrategy) */ { + public: + IOStrategy(); + virtual ~IOStrategy(); + + IOStrategy(const IOStrategy& from); + + inline IOStrategy& operator=(const IOStrategy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IOStrategy(IOStrategy&& from) noexcept + : IOStrategy() { + *this = ::std::move(from); + } + + inline IOStrategy& operator=(IOStrategy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const IOStrategy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IOStrategy* internal_default_instance() { + return reinterpret_cast( + &_IOStrategy_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(IOStrategy* other); + friend void swap(IOStrategy& a, IOStrategy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IOStrategy* New() const final { + return CreateMaybeMessage(nullptr); + } + + IOStrategy* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IOStrategy& from); + void MergeFrom(const IOStrategy& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IOStrategy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef IOStrategy_DownloadMode DownloadMode; + static const DownloadMode DOWNLOAD_EAGER = + IOStrategy_DownloadMode_DOWNLOAD_EAGER; + static const DownloadMode DOWNLOAD_STREAM = + IOStrategy_DownloadMode_DOWNLOAD_STREAM; + static const DownloadMode DO_NOT_DOWNLOAD = + IOStrategy_DownloadMode_DO_NOT_DOWNLOAD; + static inline bool DownloadMode_IsValid(int value) { + return IOStrategy_DownloadMode_IsValid(value); + } + static const DownloadMode DownloadMode_MIN = + IOStrategy_DownloadMode_DownloadMode_MIN; + static const DownloadMode DownloadMode_MAX = + IOStrategy_DownloadMode_DownloadMode_MAX; + static const int DownloadMode_ARRAYSIZE = + IOStrategy_DownloadMode_DownloadMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + DownloadMode_descriptor() { + return IOStrategy_DownloadMode_descriptor(); + } + static inline const ::std::string& DownloadMode_Name(DownloadMode value) { + return IOStrategy_DownloadMode_Name(value); + } + static inline bool DownloadMode_Parse(const ::std::string& name, + DownloadMode* value) { + return IOStrategy_DownloadMode_Parse(name, value); + } + + typedef IOStrategy_UploadMode UploadMode; + static const UploadMode UPLOAD_ON_EXIT = + IOStrategy_UploadMode_UPLOAD_ON_EXIT; + static const UploadMode UPLOAD_EAGER = + IOStrategy_UploadMode_UPLOAD_EAGER; + static const UploadMode DO_NOT_UPLOAD = + IOStrategy_UploadMode_DO_NOT_UPLOAD; + static inline bool UploadMode_IsValid(int value) { + return IOStrategy_UploadMode_IsValid(value); + } + static const UploadMode UploadMode_MIN = + IOStrategy_UploadMode_UploadMode_MIN; + static const UploadMode UploadMode_MAX = + IOStrategy_UploadMode_UploadMode_MAX; + static const int UploadMode_ARRAYSIZE = + IOStrategy_UploadMode_UploadMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + UploadMode_descriptor() { + return IOStrategy_UploadMode_descriptor(); + } + static inline const ::std::string& UploadMode_Name(UploadMode value) { + return IOStrategy_UploadMode_Name(value); + } + static inline bool UploadMode_Parse(const ::std::string& name, + UploadMode* value) { + return IOStrategy_UploadMode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + void clear_download_mode(); + static const int kDownloadModeFieldNumber = 1; + ::flyteidl::core::IOStrategy_DownloadMode download_mode() const; + void set_download_mode(::flyteidl::core::IOStrategy_DownloadMode value); + + // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + void clear_upload_mode(); + static const int kUploadModeFieldNumber = 2; + ::flyteidl::core::IOStrategy_UploadMode upload_mode() const; + void set_upload_mode(::flyteidl::core::IOStrategy_UploadMode value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + int download_mode_; + int upload_mode_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class DataLoadingConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.DataLoadingConfig) */ { + public: + DataLoadingConfig(); + virtual ~DataLoadingConfig(); + + DataLoadingConfig(const DataLoadingConfig& from); + + inline DataLoadingConfig& operator=(const DataLoadingConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DataLoadingConfig(DataLoadingConfig&& from) noexcept + : DataLoadingConfig() { + *this = ::std::move(from); + } + + inline DataLoadingConfig& operator=(DataLoadingConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DataLoadingConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DataLoadingConfig* internal_default_instance() { + return reinterpret_cast( + &_DataLoadingConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(DataLoadingConfig* other); + friend void swap(DataLoadingConfig& a, DataLoadingConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DataLoadingConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + DataLoadingConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DataLoadingConfig& from); + void MergeFrom(const DataLoadingConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DataLoadingConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef DataLoadingConfig_LiteralMapFormat LiteralMapFormat; + static const LiteralMapFormat JSON = + DataLoadingConfig_LiteralMapFormat_JSON; + static const LiteralMapFormat YAML = + DataLoadingConfig_LiteralMapFormat_YAML; + static const LiteralMapFormat PROTO = + DataLoadingConfig_LiteralMapFormat_PROTO; + static inline bool LiteralMapFormat_IsValid(int value) { + return DataLoadingConfig_LiteralMapFormat_IsValid(value); + } + static const LiteralMapFormat LiteralMapFormat_MIN = + DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MIN; + static const LiteralMapFormat LiteralMapFormat_MAX = + DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MAX; + static const int LiteralMapFormat_ARRAYSIZE = + DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + LiteralMapFormat_descriptor() { + return DataLoadingConfig_LiteralMapFormat_descriptor(); + } + static inline const ::std::string& LiteralMapFormat_Name(LiteralMapFormat value) { + return DataLoadingConfig_LiteralMapFormat_Name(value); + } + static inline bool LiteralMapFormat_Parse(const ::std::string& name, + LiteralMapFormat* value) { + return DataLoadingConfig_LiteralMapFormat_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string input_path = 2; + void clear_input_path(); + static const int kInputPathFieldNumber = 2; + const ::std::string& input_path() const; + void set_input_path(const ::std::string& value); + #if LANG_CXX11 + void set_input_path(::std::string&& value); + #endif + void set_input_path(const char* value); + void set_input_path(const char* value, size_t size); + ::std::string* mutable_input_path(); + ::std::string* release_input_path(); + void set_allocated_input_path(::std::string* input_path); + + // string output_path = 3; + void clear_output_path(); + static const int kOutputPathFieldNumber = 3; + const ::std::string& output_path() const; + void set_output_path(const ::std::string& value); + #if LANG_CXX11 + void set_output_path(::std::string&& value); + #endif + void set_output_path(const char* value); + void set_output_path(const char* value, size_t size); + ::std::string* mutable_output_path(); + ::std::string* release_output_path(); + void set_allocated_output_path(::std::string* output_path); + + // .flyteidl.core.IOStrategy io_strategy = 5; + bool has_io_strategy() const; + void clear_io_strategy(); + static const int kIoStrategyFieldNumber = 5; + const ::flyteidl::core::IOStrategy& io_strategy() const; + ::flyteidl::core::IOStrategy* release_io_strategy(); + ::flyteidl::core::IOStrategy* mutable_io_strategy(); + void set_allocated_io_strategy(::flyteidl::core::IOStrategy* io_strategy); + + // bool enabled = 1; + void clear_enabled(); + static const int kEnabledFieldNumber = 1; + bool enabled() const; + void set_enabled(bool value); + + // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + void clear_format(); + static const int kFormatFieldNumber = 4; + ::flyteidl::core::DataLoadingConfig_LiteralMapFormat format() const; + void set_format(::flyteidl::core::DataLoadingConfig_LiteralMapFormat value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr input_path_; + ::google::protobuf::internal::ArenaStringPtr output_path_; + ::flyteidl::core::IOStrategy* io_strategy_; + bool enabled_; + int format_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class K8sPod final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.K8sPod) */ { + public: + K8sPod(); + virtual ~K8sPod(); + + K8sPod(const K8sPod& from); + + inline K8sPod& operator=(const K8sPod& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + K8sPod(K8sPod&& from) noexcept + : K8sPod() { + *this = ::std::move(from); + } + + inline K8sPod& operator=(K8sPod&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const K8sPod& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const K8sPod* internal_default_instance() { + return reinterpret_cast( + &_K8sPod_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(K8sPod* other); + friend void swap(K8sPod& a, K8sPod& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline K8sPod* New() const final { + return CreateMaybeMessage(nullptr); + } + + K8sPod* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const K8sPod& from); + void MergeFrom(const K8sPod& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(K8sPod* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.K8sObjectMetadata metadata = 1; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 1; + const ::flyteidl::core::K8sObjectMetadata& metadata() const; + ::flyteidl::core::K8sObjectMetadata* release_metadata(); + ::flyteidl::core::K8sObjectMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::K8sObjectMetadata* metadata); + + // .google.protobuf.Struct pod_spec = 2; + bool has_pod_spec() const; + void clear_pod_spec(); + static const int kPodSpecFieldNumber = 2; + const ::google::protobuf::Struct& pod_spec() const; + ::google::protobuf::Struct* release_pod_spec(); + ::google::protobuf::Struct* mutable_pod_spec(); + void set_allocated_pod_spec(::google::protobuf::Struct* pod_spec); + + // .flyteidl.core.DataLoadingConfig data_config = 3; + bool has_data_config() const; + void clear_data_config(); + static const int kDataConfigFieldNumber = 3; + const ::flyteidl::core::DataLoadingConfig& data_config() const; + ::flyteidl::core::DataLoadingConfig* release_data_config(); + ::flyteidl::core::DataLoadingConfig* mutable_data_config(); + void set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config); + + // @@protoc_insertion_point(class_scope:flyteidl.core.K8sPod) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::K8sObjectMetadata* metadata_; + ::google::protobuf::Struct* pod_spec_; + ::flyteidl::core::DataLoadingConfig* data_config_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class K8sObjectMetadata_LabelsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + K8sObjectMetadata_LabelsEntry_DoNotUse(); + K8sObjectMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const K8sObjectMetadata_LabelsEntry_DoNotUse& other); + static const K8sObjectMetadata_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class K8sObjectMetadata_AnnotationsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + K8sObjectMetadata_AnnotationsEntry_DoNotUse(); + K8sObjectMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const K8sObjectMetadata_AnnotationsEntry_DoNotUse& other); + static const K8sObjectMetadata_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class K8sObjectMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.K8sObjectMetadata) */ { + public: + K8sObjectMetadata(); + virtual ~K8sObjectMetadata(); + + K8sObjectMetadata(const K8sObjectMetadata& from); + + inline K8sObjectMetadata& operator=(const K8sObjectMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + K8sObjectMetadata(K8sObjectMetadata&& from) noexcept + : K8sObjectMetadata() { + *this = ::std::move(from); + } + + inline K8sObjectMetadata& operator=(K8sObjectMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const K8sObjectMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const K8sObjectMetadata* internal_default_instance() { + return reinterpret_cast( + &_K8sObjectMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(K8sObjectMetadata* other); + friend void swap(K8sObjectMetadata& a, K8sObjectMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline K8sObjectMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + K8sObjectMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const K8sObjectMetadata& from); + void MergeFrom(const K8sObjectMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(K8sObjectMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map labels = 1; + int labels_size() const; + void clear_labels(); + static const int kLabelsFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + labels() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_labels(); + + // map annotations = 2; + int annotations_size() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 2; + const ::google::protobuf::Map< ::std::string, ::std::string >& + annotations() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_annotations(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.K8sObjectMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + K8sObjectMetadata_LabelsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > labels_; + ::google::protobuf::internal::MapField< + K8sObjectMetadata_AnnotationsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > annotations_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// ------------------------------------------------------------------- + +class Sql final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Sql) */ { + public: + Sql(); + virtual ~Sql(); + + Sql(const Sql& from); + + inline Sql& operator=(const Sql& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Sql(Sql&& from) noexcept + : Sql() { + *this = ::std::move(from); + } + + inline Sql& operator=(Sql&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Sql& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Sql* internal_default_instance() { + return reinterpret_cast( + &_Sql_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(Sql* other); + friend void swap(Sql& a, Sql& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Sql* New() const final { + return CreateMaybeMessage(nullptr); + } + + Sql* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Sql& from); + void MergeFrom(const Sql& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Sql* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef Sql_Dialect Dialect; + static const Dialect UNDEFINED = + Sql_Dialect_UNDEFINED; + static const Dialect ANSI = + Sql_Dialect_ANSI; + static const Dialect HIVE = + Sql_Dialect_HIVE; + static const Dialect OTHER = + Sql_Dialect_OTHER; + static inline bool Dialect_IsValid(int value) { + return Sql_Dialect_IsValid(value); + } + static const Dialect Dialect_MIN = + Sql_Dialect_Dialect_MIN; + static const Dialect Dialect_MAX = + Sql_Dialect_Dialect_MAX; + static const int Dialect_ARRAYSIZE = + Sql_Dialect_Dialect_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Dialect_descriptor() { + return Sql_Dialect_descriptor(); + } + static inline const ::std::string& Dialect_Name(Dialect value) { + return Sql_Dialect_Name(value); + } + static inline bool Dialect_Parse(const ::std::string& name, + Dialect* value) { + return Sql_Dialect_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string statement = 1; + void clear_statement(); + static const int kStatementFieldNumber = 1; + const ::std::string& statement() const; + void set_statement(const ::std::string& value); + #if LANG_CXX11 + void set_statement(::std::string&& value); + #endif + void set_statement(const char* value); + void set_statement(const char* value, size_t size); + ::std::string* mutable_statement(); + ::std::string* release_statement(); + void set_allocated_statement(::std::string* statement); + + // .flyteidl.core.Sql.Dialect dialect = 2; + void clear_dialect(); + static const int kDialectFieldNumber = 2; + ::flyteidl::core::Sql_Dialect dialect() const; + void set_dialect(::flyteidl::core::Sql_Dialect value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Sql) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr statement_; + int dialect_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Resources_ResourceEntry + +// .flyteidl.core.Resources.ResourceName name = 1; +inline void Resources_ResourceEntry::clear_name() { + name_ = 0; +} +inline ::flyteidl::core::Resources_ResourceName Resources_ResourceEntry::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.ResourceEntry.name) + return static_cast< ::flyteidl::core::Resources_ResourceName >(name_); +} +inline void Resources_ResourceEntry::set_name(::flyteidl::core::Resources_ResourceName value) { + + name_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Resources.ResourceEntry.name) +} + +// string value = 2; +inline void Resources_ResourceEntry::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Resources_ResourceEntry::value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.ResourceEntry.value) + return value_.GetNoArena(); +} +inline void Resources_ResourceEntry::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Resources.ResourceEntry.value) +} +#if LANG_CXX11 +inline void Resources_ResourceEntry::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Resources.ResourceEntry.value) +} +#endif +inline void Resources_ResourceEntry::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Resources.ResourceEntry.value) +} +inline void Resources_ResourceEntry::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Resources.ResourceEntry.value) +} +inline ::std::string* Resources_ResourceEntry::mutable_value() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.ResourceEntry.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Resources_ResourceEntry::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.Resources.ResourceEntry.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Resources_ResourceEntry::set_allocated_value(::std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Resources.ResourceEntry.value) +} + +// ------------------------------------------------------------------- + +// Resources + +// repeated .flyteidl.core.Resources.ResourceEntry requests = 1; +inline int Resources::requests_size() const { + return requests_.size(); +} +inline void Resources::clear_requests() { + requests_.Clear(); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::mutable_requests(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.requests) + return requests_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* +Resources::mutable_requests() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Resources.requests) + return &requests_; +} +inline const ::flyteidl::core::Resources_ResourceEntry& Resources::requests(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.requests) + return requests_.Get(index); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::add_requests() { + // @@protoc_insertion_point(field_add:flyteidl.core.Resources.requests) + return requests_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& +Resources::requests() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Resources.requests) + return requests_; +} + +// repeated .flyteidl.core.Resources.ResourceEntry limits = 2; +inline int Resources::limits_size() const { + return limits_.size(); +} +inline void Resources::clear_limits() { + limits_.Clear(); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::mutable_limits(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.limits) + return limits_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* +Resources::mutable_limits() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Resources.limits) + return &limits_; +} +inline const ::flyteidl::core::Resources_ResourceEntry& Resources::limits(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.limits) + return limits_.Get(index); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::add_limits() { + // @@protoc_insertion_point(field_add:flyteidl.core.Resources.limits) + return limits_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& +Resources::limits() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Resources.limits) + return limits_; +} + +// ------------------------------------------------------------------- + +// RuntimeMetadata + +// .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; +inline void RuntimeMetadata::clear_type() { + type_ = 0; +} +inline ::flyteidl::core::RuntimeMetadata_RuntimeType RuntimeMetadata::type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.type) + return static_cast< ::flyteidl::core::RuntimeMetadata_RuntimeType >(type_); +} +inline void RuntimeMetadata::set_type(::flyteidl::core::RuntimeMetadata_RuntimeType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.type) +} + +// string version = 2; +inline void RuntimeMetadata::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& RuntimeMetadata::version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.version) + return version_.GetNoArena(); +} +inline void RuntimeMetadata::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.version) +} +#if LANG_CXX11 +inline void RuntimeMetadata::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.RuntimeMetadata.version) +} +#endif +inline void RuntimeMetadata::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.RuntimeMetadata.version) +} +inline void RuntimeMetadata::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.RuntimeMetadata.version) +} +inline ::std::string* RuntimeMetadata::mutable_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.RuntimeMetadata.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RuntimeMetadata::release_version() { + // @@protoc_insertion_point(field_release:flyteidl.core.RuntimeMetadata.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RuntimeMetadata::set_allocated_version(::std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.RuntimeMetadata.version) +} + +// string flavor = 3; +inline void RuntimeMetadata::clear_flavor() { + flavor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& RuntimeMetadata::flavor() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.flavor) + return flavor_.GetNoArena(); +} +inline void RuntimeMetadata::set_flavor(const ::std::string& value) { + + flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.flavor) +} +#if LANG_CXX11 +inline void RuntimeMetadata::set_flavor(::std::string&& value) { + + flavor_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.RuntimeMetadata.flavor) +} +#endif +inline void RuntimeMetadata::set_flavor(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.RuntimeMetadata.flavor) +} +inline void RuntimeMetadata::set_flavor(const char* value, size_t size) { + + flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.RuntimeMetadata.flavor) +} +inline ::std::string* RuntimeMetadata::mutable_flavor() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.RuntimeMetadata.flavor) + return flavor_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RuntimeMetadata::release_flavor() { + // @@protoc_insertion_point(field_release:flyteidl.core.RuntimeMetadata.flavor) + + return flavor_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RuntimeMetadata::set_allocated_flavor(::std::string* flavor) { + if (flavor != nullptr) { + + } else { + + } + flavor_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), flavor); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.RuntimeMetadata.flavor) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// TaskMetadata + +// bool discoverable = 1; +inline void TaskMetadata::clear_discoverable() { + discoverable_ = false; +} +inline bool TaskMetadata::discoverable() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.discoverable) + return discoverable_; +} +inline void TaskMetadata::set_discoverable(bool value) { + + discoverable_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.discoverable) +} + +// .flyteidl.core.RuntimeMetadata runtime = 2; +inline bool TaskMetadata::has_runtime() const { + return this != internal_default_instance() && runtime_ != nullptr; +} +inline void TaskMetadata::clear_runtime() { + if (GetArenaNoVirtual() == nullptr && runtime_ != nullptr) { + delete runtime_; + } + runtime_ = nullptr; +} +inline const ::flyteidl::core::RuntimeMetadata& TaskMetadata::runtime() const { + const ::flyteidl::core::RuntimeMetadata* p = runtime_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.runtime) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_RuntimeMetadata_default_instance_); +} +inline ::flyteidl::core::RuntimeMetadata* TaskMetadata::release_runtime() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.runtime) + + ::flyteidl::core::RuntimeMetadata* temp = runtime_; + runtime_ = nullptr; + return temp; +} +inline ::flyteidl::core::RuntimeMetadata* TaskMetadata::mutable_runtime() { + + if (runtime_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::RuntimeMetadata>(GetArenaNoVirtual()); + runtime_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.runtime) + return runtime_; +} +inline void TaskMetadata::set_allocated_runtime(::flyteidl::core::RuntimeMetadata* runtime) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete runtime_; + } + if (runtime) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + runtime = ::google::protobuf::internal::GetOwnedMessage( + message_arena, runtime, submessage_arena); + } + + } else { + + } + runtime_ = runtime; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.runtime) +} + +// .google.protobuf.Duration timeout = 4; +inline bool TaskMetadata::has_timeout() const { + return this != internal_default_instance() && timeout_ != nullptr; +} +inline const ::google::protobuf::Duration& TaskMetadata::timeout() const { + const ::google::protobuf::Duration* p = timeout_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.timeout) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* TaskMetadata::release_timeout() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.timeout) + + ::google::protobuf::Duration* temp = timeout_; + timeout_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* TaskMetadata::mutable_timeout() { + + if (timeout_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + timeout_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.timeout) + return timeout_; +} +inline void TaskMetadata::set_allocated_timeout(::google::protobuf::Duration* timeout) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(timeout_); + } + if (timeout) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(timeout)->GetArena(); + if (message_arena != submessage_arena) { + timeout = ::google::protobuf::internal::GetOwnedMessage( + message_arena, timeout, submessage_arena); + } + + } else { + + } + timeout_ = timeout; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.timeout) +} + +// .flyteidl.core.RetryStrategy retries = 5; +inline bool TaskMetadata::has_retries() const { + return this != internal_default_instance() && retries_ != nullptr; +} +inline const ::flyteidl::core::RetryStrategy& TaskMetadata::retries() const { + const ::flyteidl::core::RetryStrategy* p = retries_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.retries) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_RetryStrategy_default_instance_); +} +inline ::flyteidl::core::RetryStrategy* TaskMetadata::release_retries() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.retries) + + ::flyteidl::core::RetryStrategy* temp = retries_; + retries_ = nullptr; + return temp; +} +inline ::flyteidl::core::RetryStrategy* TaskMetadata::mutable_retries() { + + if (retries_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::RetryStrategy>(GetArenaNoVirtual()); + retries_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.retries) + return retries_; +} +inline void TaskMetadata::set_allocated_retries(::flyteidl::core::RetryStrategy* retries) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(retries_); + } + if (retries) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + retries = ::google::protobuf::internal::GetOwnedMessage( + message_arena, retries, submessage_arena); + } + + } else { + + } + retries_ = retries; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.retries) +} + +// string discovery_version = 6; +inline void TaskMetadata::clear_discovery_version() { + discovery_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskMetadata::discovery_version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.discovery_version) + return discovery_version_.GetNoArena(); +} +inline void TaskMetadata::set_discovery_version(const ::std::string& value) { + + discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.discovery_version) +} +#if LANG_CXX11 +inline void TaskMetadata::set_discovery_version(::std::string&& value) { + + discovery_version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.discovery_version) +} +#endif +inline void TaskMetadata::set_discovery_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.discovery_version) +} +inline void TaskMetadata::set_discovery_version(const char* value, size_t size) { + + discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.discovery_version) +} +inline ::std::string* TaskMetadata::mutable_discovery_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.discovery_version) + return discovery_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskMetadata::release_discovery_version() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.discovery_version) + + return discovery_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskMetadata::set_allocated_discovery_version(::std::string* discovery_version) { + if (discovery_version != nullptr) { + + } else { + + } + discovery_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), discovery_version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.discovery_version) +} + +// string deprecated_error_message = 7; +inline void TaskMetadata::clear_deprecated_error_message() { + deprecated_error_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskMetadata::deprecated_error_message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.deprecated_error_message) + return deprecated_error_message_.GetNoArena(); +} +inline void TaskMetadata::set_deprecated_error_message(const ::std::string& value) { + + deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.deprecated_error_message) +} +#if LANG_CXX11 +inline void TaskMetadata::set_deprecated_error_message(::std::string&& value) { + + deprecated_error_message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.deprecated_error_message) +} +#endif +inline void TaskMetadata::set_deprecated_error_message(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.deprecated_error_message) +} +inline void TaskMetadata::set_deprecated_error_message(const char* value, size_t size) { + + deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.deprecated_error_message) +} +inline ::std::string* TaskMetadata::mutable_deprecated_error_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.deprecated_error_message) + return deprecated_error_message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskMetadata::release_deprecated_error_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.deprecated_error_message) + + return deprecated_error_message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskMetadata::set_allocated_deprecated_error_message(::std::string* deprecated_error_message) { + if (deprecated_error_message != nullptr) { + + } else { + + } + deprecated_error_message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deprecated_error_message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.deprecated_error_message) +} + +// bool interruptible = 8; +inline bool TaskMetadata::has_interruptible() const { + return interruptible_value_case() == kInterruptible; +} +inline void TaskMetadata::set_has_interruptible() { + _oneof_case_[0] = kInterruptible; +} +inline void TaskMetadata::clear_interruptible() { + if (has_interruptible()) { + interruptible_value_.interruptible_ = false; + clear_has_interruptible_value(); + } +} +inline bool TaskMetadata::interruptible() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.interruptible) + if (has_interruptible()) { + return interruptible_value_.interruptible_; + } + return false; +} +inline void TaskMetadata::set_interruptible(bool value) { + if (!has_interruptible()) { + clear_interruptible_value(); + set_has_interruptible(); + } + interruptible_value_.interruptible_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.interruptible) +} + +// bool cache_serializable = 9; +inline void TaskMetadata::clear_cache_serializable() { + cache_serializable_ = false; +} +inline bool TaskMetadata::cache_serializable() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.cache_serializable) + return cache_serializable_; +} +inline void TaskMetadata::set_cache_serializable(bool value) { + + cache_serializable_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.cache_serializable) +} + +// bool generates_deck = 10; +inline void TaskMetadata::clear_generates_deck() { + generates_deck_ = false; +} +inline bool TaskMetadata::generates_deck() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.generates_deck) + return generates_deck_; +} +inline void TaskMetadata::set_generates_deck(bool value) { + + generates_deck_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.generates_deck) +} + +// map tags = 11; +inline int TaskMetadata::tags_size() const { + return tags_.size(); +} +inline void TaskMetadata::clear_tags() { + tags_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskMetadata::tags() const { + // @@protoc_insertion_point(field_map:flyteidl.core.TaskMetadata.tags) + return tags_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskMetadata::mutable_tags() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.TaskMetadata.tags) + return tags_.MutableMap(); +} + +// string pod_template_name = 12; +inline void TaskMetadata::clear_pod_template_name() { + pod_template_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskMetadata::pod_template_name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.pod_template_name) + return pod_template_name_.GetNoArena(); +} +inline void TaskMetadata::set_pod_template_name(const ::std::string& value) { + + pod_template_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.pod_template_name) +} +#if LANG_CXX11 +inline void TaskMetadata::set_pod_template_name(::std::string&& value) { + + pod_template_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.pod_template_name) +} +#endif +inline void TaskMetadata::set_pod_template_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + pod_template_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.pod_template_name) +} +inline void TaskMetadata::set_pod_template_name(const char* value, size_t size) { + + pod_template_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.pod_template_name) +} +inline ::std::string* TaskMetadata::mutable_pod_template_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.pod_template_name) + return pod_template_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskMetadata::release_pod_template_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.pod_template_name) + + return pod_template_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskMetadata::set_allocated_pod_template_name(::std::string* pod_template_name) { + if (pod_template_name != nullptr) { + + } else { + + } + pod_template_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pod_template_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.pod_template_name) +} + +inline bool TaskMetadata::has_interruptible_value() const { + return interruptible_value_case() != INTERRUPTIBLE_VALUE_NOT_SET; +} +inline void TaskMetadata::clear_has_interruptible_value() { + _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; +} +inline TaskMetadata::InterruptibleValueCase TaskMetadata::interruptible_value_case() const { + return TaskMetadata::InterruptibleValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// TaskTemplate + +// .flyteidl.core.Identifier id = 1; +inline bool TaskTemplate::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& TaskTemplate::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskTemplate::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* TaskTemplate::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.id) + return id_; +} +inline void TaskTemplate::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.id) +} + +// string type = 2; +inline void TaskTemplate::clear_type() { + type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskTemplate::type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.type) + return type_.GetNoArena(); +} +inline void TaskTemplate::set_type(const ::std::string& value) { + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskTemplate.type) +} +#if LANG_CXX11 +inline void TaskTemplate::set_type(::std::string&& value) { + + type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskTemplate.type) +} +#endif +inline void TaskTemplate::set_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskTemplate.type) +} +inline void TaskTemplate::set_type(const char* value, size_t size) { + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskTemplate.type) +} +inline ::std::string* TaskTemplate::mutable_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.type) + return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskTemplate::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.type) + + return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskTemplate::set_allocated_type(::std::string* type) { + if (type != nullptr) { + + } else { + + } + type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.type) +} + +// .flyteidl.core.TaskMetadata metadata = 3; +inline bool TaskTemplate::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void TaskTemplate::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::core::TaskMetadata& TaskTemplate::metadata() const { + const ::flyteidl::core::TaskMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskMetadata_default_instance_); +} +inline ::flyteidl::core::TaskMetadata* TaskTemplate::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.metadata) + + ::flyteidl::core::TaskMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskMetadata* TaskTemplate::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.metadata) + return metadata_; +} +inline void TaskTemplate::set_allocated_metadata(::flyteidl::core::TaskMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.metadata) +} + +// .flyteidl.core.TypedInterface interface = 4; +inline bool TaskTemplate::has_interface() const { + return this != internal_default_instance() && interface_ != nullptr; +} +inline const ::flyteidl::core::TypedInterface& TaskTemplate::interface() const { + const ::flyteidl::core::TypedInterface* p = interface_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.interface) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TypedInterface_default_instance_); +} +inline ::flyteidl::core::TypedInterface* TaskTemplate::release_interface() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.interface) + + ::flyteidl::core::TypedInterface* temp = interface_; + interface_ = nullptr; + return temp; +} +inline ::flyteidl::core::TypedInterface* TaskTemplate::mutable_interface() { + + if (interface_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TypedInterface>(GetArenaNoVirtual()); + interface_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.interface) + return interface_; +} +inline void TaskTemplate::set_allocated_interface(::flyteidl::core::TypedInterface* interface) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interface_); + } + if (interface) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + interface = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interface, submessage_arena); + } + + } else { + + } + interface_ = interface; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.interface) +} + +// .google.protobuf.Struct custom = 5; +inline bool TaskTemplate::has_custom() const { + return this != internal_default_instance() && custom_ != nullptr; +} +inline const ::google::protobuf::Struct& TaskTemplate::custom() const { + const ::google::protobuf::Struct* p = custom_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.custom) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* TaskTemplate::release_custom() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.custom) + + ::google::protobuf::Struct* temp = custom_; + custom_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* TaskTemplate::mutable_custom() { + + if (custom_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + custom_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.custom) + return custom_; +} +inline void TaskTemplate::set_allocated_custom(::google::protobuf::Struct* custom) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_); + } + if (custom) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(custom)->GetArena(); + if (message_arena != submessage_arena) { + custom = ::google::protobuf::internal::GetOwnedMessage( + message_arena, custom, submessage_arena); + } + + } else { + + } + custom_ = custom; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.custom) +} + +// .flyteidl.core.Container container = 6; +inline bool TaskTemplate::has_container() const { + return target_case() == kContainer; +} +inline void TaskTemplate::set_has_container() { + _oneof_case_[0] = kContainer; +} +inline void TaskTemplate::clear_container() { + if (has_container()) { + delete target_.container_; + clear_has_target(); + } +} +inline ::flyteidl::core::Container* TaskTemplate::release_container() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.container) + if (has_container()) { + clear_has_target(); + ::flyteidl::core::Container* temp = target_.container_; + target_.container_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Container& TaskTemplate::container() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.container) + return has_container() + ? *target_.container_ + : *reinterpret_cast< ::flyteidl::core::Container*>(&::flyteidl::core::_Container_default_instance_); +} +inline ::flyteidl::core::Container* TaskTemplate::mutable_container() { + if (!has_container()) { + clear_target(); + set_has_container(); + target_.container_ = CreateMaybeMessage< ::flyteidl::core::Container >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.container) + return target_.container_; +} + +// .flyteidl.core.K8sPod k8s_pod = 17; +inline bool TaskTemplate::has_k8s_pod() const { + return target_case() == kK8SPod; +} +inline void TaskTemplate::set_has_k8s_pod() { + _oneof_case_[0] = kK8SPod; +} +inline void TaskTemplate::clear_k8s_pod() { + if (has_k8s_pod()) { + delete target_.k8s_pod_; + clear_has_target(); + } +} +inline ::flyteidl::core::K8sPod* TaskTemplate::release_k8s_pod() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.k8s_pod) + if (has_k8s_pod()) { + clear_has_target(); + ::flyteidl::core::K8sPod* temp = target_.k8s_pod_; + target_.k8s_pod_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::K8sPod& TaskTemplate::k8s_pod() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.k8s_pod) + return has_k8s_pod() + ? *target_.k8s_pod_ + : *reinterpret_cast< ::flyteidl::core::K8sPod*>(&::flyteidl::core::_K8sPod_default_instance_); +} +inline ::flyteidl::core::K8sPod* TaskTemplate::mutable_k8s_pod() { + if (!has_k8s_pod()) { + clear_target(); + set_has_k8s_pod(); + target_.k8s_pod_ = CreateMaybeMessage< ::flyteidl::core::K8sPod >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.k8s_pod) + return target_.k8s_pod_; +} + +// .flyteidl.core.Sql sql = 18; +inline bool TaskTemplate::has_sql() const { + return target_case() == kSql; +} +inline void TaskTemplate::set_has_sql() { + _oneof_case_[0] = kSql; +} +inline void TaskTemplate::clear_sql() { + if (has_sql()) { + delete target_.sql_; + clear_has_target(); + } +} +inline ::flyteidl::core::Sql* TaskTemplate::release_sql() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.sql) + if (has_sql()) { + clear_has_target(); + ::flyteidl::core::Sql* temp = target_.sql_; + target_.sql_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Sql& TaskTemplate::sql() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.sql) + return has_sql() + ? *target_.sql_ + : *reinterpret_cast< ::flyteidl::core::Sql*>(&::flyteidl::core::_Sql_default_instance_); +} +inline ::flyteidl::core::Sql* TaskTemplate::mutable_sql() { + if (!has_sql()) { + clear_target(); + set_has_sql(); + target_.sql_ = CreateMaybeMessage< ::flyteidl::core::Sql >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.sql) + return target_.sql_; +} + +// int32 task_type_version = 7; +inline void TaskTemplate::clear_task_type_version() { + task_type_version_ = 0; +} +inline ::google::protobuf::int32 TaskTemplate::task_type_version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.task_type_version) + return task_type_version_; +} +inline void TaskTemplate::set_task_type_version(::google::protobuf::int32 value) { + + task_type_version_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskTemplate.task_type_version) +} + +// .flyteidl.core.SecurityContext security_context = 8; +inline bool TaskTemplate::has_security_context() const { + return this != internal_default_instance() && security_context_ != nullptr; +} +inline const ::flyteidl::core::SecurityContext& TaskTemplate::security_context() const { + const ::flyteidl::core::SecurityContext* p = security_context_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.security_context) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_SecurityContext_default_instance_); +} +inline ::flyteidl::core::SecurityContext* TaskTemplate::release_security_context() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.security_context) + + ::flyteidl::core::SecurityContext* temp = security_context_; + security_context_ = nullptr; + return temp; +} +inline ::flyteidl::core::SecurityContext* TaskTemplate::mutable_security_context() { + + if (security_context_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); + security_context_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.security_context) + return security_context_; +} +inline void TaskTemplate::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); + } + if (security_context) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + security_context = ::google::protobuf::internal::GetOwnedMessage( + message_arena, security_context, submessage_arena); + } + + } else { + + } + security_context_ = security_context; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.security_context) +} + +// map config = 16; +inline int TaskTemplate::config_size() const { + return config_.size(); +} +inline void TaskTemplate::clear_config() { + config_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +TaskTemplate::config() const { + // @@protoc_insertion_point(field_map:flyteidl.core.TaskTemplate.config) + return config_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +TaskTemplate::mutable_config() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.TaskTemplate.config) + return config_.MutableMap(); +} + +inline bool TaskTemplate::has_target() const { + return target_case() != TARGET_NOT_SET; +} +inline void TaskTemplate::clear_has_target() { + _oneof_case_[0] = TARGET_NOT_SET; +} +inline TaskTemplate::TargetCase TaskTemplate::target_case() const { + return TaskTemplate::TargetCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ContainerPort + +// uint32 container_port = 1; +inline void ContainerPort::clear_container_port() { + container_port_ = 0u; +} +inline ::google::protobuf::uint32 ContainerPort::container_port() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerPort.container_port) + return container_port_; +} +inline void ContainerPort::set_container_port(::google::protobuf::uint32 value) { + + container_port_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerPort.container_port) +} + +// ------------------------------------------------------------------- + +// Container + +// string image = 1; +inline void Container::clear_image() { + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Container::image() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.image) + return image_.GetNoArena(); +} +inline void Container::set_image(const ::std::string& value) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Container.image) +} +#if LANG_CXX11 +inline void Container::set_image(::std::string&& value) { + + image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Container.image) +} +#endif +inline void Container::set_image(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.image) +} +inline void Container::set_image(const char* value, size_t size) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.image) +} +inline ::std::string* Container::mutable_image() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.image) + return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Container::release_image() { + // @@protoc_insertion_point(field_release:flyteidl.core.Container.image) + + return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Container::set_allocated_image(::std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.image) +} + +// repeated string command = 2; +inline int Container::command_size() const { + return command_.size(); +} +inline void Container::clear_command() { + command_.Clear(); +} +inline const ::std::string& Container::command(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.command) + return command_.Get(index); +} +inline ::std::string* Container::mutable_command(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.command) + return command_.Mutable(index); +} +inline void Container::set_command(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.command) + command_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Container::set_command(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.command) + command_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Container::set_command(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.command) +} +inline void Container::set_command(int index, const char* value, size_t size) { + command_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.command) +} +inline ::std::string* Container::add_command() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Container.command) + return command_.Add(); +} +inline void Container::add_command(const ::std::string& value) { + command_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.command) +} +#if LANG_CXX11 +inline void Container::add_command(::std::string&& value) { + command_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.command) +} +#endif +inline void Container::add_command(const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.Container.command) +} +inline void Container::add_command(const char* value, size_t size) { + command_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Container.command) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +Container::command() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.command) + return command_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +Container::mutable_command() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.command) + return &command_; +} + +// repeated string args = 3; +inline int Container::args_size() const { + return args_.size(); +} +inline void Container::clear_args() { + args_.Clear(); +} +inline const ::std::string& Container::args(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.args) + return args_.Get(index); +} +inline ::std::string* Container::mutable_args(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.args) + return args_.Mutable(index); +} +inline void Container::set_args(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.args) + args_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Container::set_args(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.args) + args_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Container::set_args(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + args_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.args) +} +inline void Container::set_args(int index, const char* value, size_t size) { + args_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.args) +} +inline ::std::string* Container::add_args() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Container.args) + return args_.Add(); +} +inline void Container::add_args(const ::std::string& value) { + args_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.args) +} +#if LANG_CXX11 +inline void Container::add_args(::std::string&& value) { + args_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.args) +} +#endif +inline void Container::add_args(const char* value) { + GOOGLE_DCHECK(value != nullptr); + args_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.Container.args) +} +inline void Container::add_args(const char* value, size_t size) { + args_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Container.args) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +Container::args() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.args) + return args_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +Container::mutable_args() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.args) + return &args_; +} + +// .flyteidl.core.Resources resources = 4; +inline bool Container::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline void Container::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +inline const ::flyteidl::core::Resources& Container::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.core.Container.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* Container::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.core.Container.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::flyteidl::core::Resources* Container::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.resources) + return resources_; +} +inline void Container::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete resources_; + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.resources) +} + +// repeated .flyteidl.core.KeyValuePair env = 5; +inline int Container::env_size() const { + return env_.size(); +} +inline ::flyteidl::core::KeyValuePair* Container::mutable_env(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.env) + return env_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* +Container::mutable_env() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.env) + return &env_; +} +inline const ::flyteidl::core::KeyValuePair& Container::env(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.env) + return env_.Get(index); +} +inline ::flyteidl::core::KeyValuePair* Container::add_env() { + // @@protoc_insertion_point(field_add:flyteidl.core.Container.env) + return env_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& +Container::env() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.env) + return env_; +} + +// repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; +inline int Container::config_size() const { + return config_.size(); +} +inline ::flyteidl::core::KeyValuePair* Container::mutable_config(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.config) + return config_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* +Container::mutable_config() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.config) + return &config_; +} +inline const ::flyteidl::core::KeyValuePair& Container::config(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.config) + return config_.Get(index); +} +inline ::flyteidl::core::KeyValuePair* Container::add_config() { + // @@protoc_insertion_point(field_add:flyteidl.core.Container.config) + return config_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& +Container::config() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.config) + return config_; +} + +// repeated .flyteidl.core.ContainerPort ports = 7; +inline int Container::ports_size() const { + return ports_.size(); +} +inline void Container::clear_ports() { + ports_.Clear(); +} +inline ::flyteidl::core::ContainerPort* Container::mutable_ports(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.ports) + return ports_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >* +Container::mutable_ports() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.ports) + return &ports_; +} +inline const ::flyteidl::core::ContainerPort& Container::ports(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.ports) + return ports_.Get(index); +} +inline ::flyteidl::core::ContainerPort* Container::add_ports() { + // @@protoc_insertion_point(field_add:flyteidl.core.Container.ports) + return ports_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >& +Container::ports() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.ports) + return ports_; +} + +// .flyteidl.core.DataLoadingConfig data_config = 9; +inline bool Container::has_data_config() const { + return this != internal_default_instance() && data_config_ != nullptr; +} +inline void Container::clear_data_config() { + if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { + delete data_config_; + } + data_config_ = nullptr; +} +inline const ::flyteidl::core::DataLoadingConfig& Container::data_config() const { + const ::flyteidl::core::DataLoadingConfig* p = data_config_; + // @@protoc_insertion_point(field_get:flyteidl.core.Container.data_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_DataLoadingConfig_default_instance_); +} +inline ::flyteidl::core::DataLoadingConfig* Container::release_data_config() { + // @@protoc_insertion_point(field_release:flyteidl.core.Container.data_config) + + ::flyteidl::core::DataLoadingConfig* temp = data_config_; + data_config_ = nullptr; + return temp; +} +inline ::flyteidl::core::DataLoadingConfig* Container::mutable_data_config() { + + if (data_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::DataLoadingConfig>(GetArenaNoVirtual()); + data_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.data_config) + return data_config_; +} +inline void Container::set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete data_config_; + } + if (data_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + data_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, data_config, submessage_arena); + } + + } else { + + } + data_config_ = data_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.data_config) +} + +// .flyteidl.core.Container.Architecture architecture = 10; +inline void Container::clear_architecture() { + architecture_ = 0; +} +inline ::flyteidl::core::Container_Architecture Container::architecture() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.architecture) + return static_cast< ::flyteidl::core::Container_Architecture >(architecture_); +} +inline void Container::set_architecture(::flyteidl::core::Container_Architecture value) { + + architecture_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Container.architecture) +} + +// ------------------------------------------------------------------- + +// IOStrategy + +// .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; +inline void IOStrategy::clear_download_mode() { + download_mode_ = 0; +} +inline ::flyteidl::core::IOStrategy_DownloadMode IOStrategy::download_mode() const { + // @@protoc_insertion_point(field_get:flyteidl.core.IOStrategy.download_mode) + return static_cast< ::flyteidl::core::IOStrategy_DownloadMode >(download_mode_); +} +inline void IOStrategy::set_download_mode(::flyteidl::core::IOStrategy_DownloadMode value) { + + download_mode_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.IOStrategy.download_mode) +} + +// .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; +inline void IOStrategy::clear_upload_mode() { + upload_mode_ = 0; +} +inline ::flyteidl::core::IOStrategy_UploadMode IOStrategy::upload_mode() const { + // @@protoc_insertion_point(field_get:flyteidl.core.IOStrategy.upload_mode) + return static_cast< ::flyteidl::core::IOStrategy_UploadMode >(upload_mode_); +} +inline void IOStrategy::set_upload_mode(::flyteidl::core::IOStrategy_UploadMode value) { + + upload_mode_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.IOStrategy.upload_mode) +} + +// ------------------------------------------------------------------- + +// DataLoadingConfig + +// bool enabled = 1; +inline void DataLoadingConfig::clear_enabled() { + enabled_ = false; +} +inline bool DataLoadingConfig::enabled() const { + // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.enabled) + return enabled_; +} +inline void DataLoadingConfig::set_enabled(bool value) { + + enabled_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.enabled) +} + +// string input_path = 2; +inline void DataLoadingConfig::clear_input_path() { + input_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DataLoadingConfig::input_path() const { + // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.input_path) + return input_path_.GetNoArena(); +} +inline void DataLoadingConfig::set_input_path(const ::std::string& value) { + + input_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.input_path) +} +#if LANG_CXX11 +inline void DataLoadingConfig::set_input_path(::std::string&& value) { + + input_path_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.DataLoadingConfig.input_path) +} +#endif +inline void DataLoadingConfig::set_input_path(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + input_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.DataLoadingConfig.input_path) +} +inline void DataLoadingConfig::set_input_path(const char* value, size_t size) { + + input_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.DataLoadingConfig.input_path) +} +inline ::std::string* DataLoadingConfig::mutable_input_path() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.DataLoadingConfig.input_path) + return input_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DataLoadingConfig::release_input_path() { + // @@protoc_insertion_point(field_release:flyteidl.core.DataLoadingConfig.input_path) + + return input_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DataLoadingConfig::set_allocated_input_path(::std::string* input_path) { + if (input_path != nullptr) { + + } else { + + } + input_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_path); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.DataLoadingConfig.input_path) +} + +// string output_path = 3; +inline void DataLoadingConfig::clear_output_path() { + output_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DataLoadingConfig::output_path() const { + // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.output_path) + return output_path_.GetNoArena(); +} +inline void DataLoadingConfig::set_output_path(const ::std::string& value) { + + output_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.output_path) +} +#if LANG_CXX11 +inline void DataLoadingConfig::set_output_path(::std::string&& value) { + + output_path_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.DataLoadingConfig.output_path) +} +#endif +inline void DataLoadingConfig::set_output_path(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + output_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.DataLoadingConfig.output_path) +} +inline void DataLoadingConfig::set_output_path(const char* value, size_t size) { + + output_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.DataLoadingConfig.output_path) +} +inline ::std::string* DataLoadingConfig::mutable_output_path() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.DataLoadingConfig.output_path) + return output_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DataLoadingConfig::release_output_path() { + // @@protoc_insertion_point(field_release:flyteidl.core.DataLoadingConfig.output_path) + + return output_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DataLoadingConfig::set_allocated_output_path(::std::string* output_path) { + if (output_path != nullptr) { + + } else { + + } + output_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_path); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.DataLoadingConfig.output_path) +} + +// .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; +inline void DataLoadingConfig::clear_format() { + format_ = 0; +} +inline ::flyteidl::core::DataLoadingConfig_LiteralMapFormat DataLoadingConfig::format() const { + // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.format) + return static_cast< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat >(format_); +} +inline void DataLoadingConfig::set_format(::flyteidl::core::DataLoadingConfig_LiteralMapFormat value) { + + format_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.format) +} + +// .flyteidl.core.IOStrategy io_strategy = 5; +inline bool DataLoadingConfig::has_io_strategy() const { + return this != internal_default_instance() && io_strategy_ != nullptr; +} +inline void DataLoadingConfig::clear_io_strategy() { + if (GetArenaNoVirtual() == nullptr && io_strategy_ != nullptr) { + delete io_strategy_; + } + io_strategy_ = nullptr; +} +inline const ::flyteidl::core::IOStrategy& DataLoadingConfig::io_strategy() const { + const ::flyteidl::core::IOStrategy* p = io_strategy_; + // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.io_strategy) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_IOStrategy_default_instance_); +} +inline ::flyteidl::core::IOStrategy* DataLoadingConfig::release_io_strategy() { + // @@protoc_insertion_point(field_release:flyteidl.core.DataLoadingConfig.io_strategy) + + ::flyteidl::core::IOStrategy* temp = io_strategy_; + io_strategy_ = nullptr; + return temp; +} +inline ::flyteidl::core::IOStrategy* DataLoadingConfig::mutable_io_strategy() { + + if (io_strategy_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::IOStrategy>(GetArenaNoVirtual()); + io_strategy_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.DataLoadingConfig.io_strategy) + return io_strategy_; +} +inline void DataLoadingConfig::set_allocated_io_strategy(::flyteidl::core::IOStrategy* io_strategy) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete io_strategy_; + } + if (io_strategy) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + io_strategy = ::google::protobuf::internal::GetOwnedMessage( + message_arena, io_strategy, submessage_arena); + } + + } else { + + } + io_strategy_ = io_strategy; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.DataLoadingConfig.io_strategy) +} + +// ------------------------------------------------------------------- + +// K8sPod + +// .flyteidl.core.K8sObjectMetadata metadata = 1; +inline bool K8sPod::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void K8sPod::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::core::K8sObjectMetadata& K8sPod::metadata() const { + const ::flyteidl::core::K8sObjectMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.K8sPod.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_K8sObjectMetadata_default_instance_); +} +inline ::flyteidl::core::K8sObjectMetadata* K8sPod::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.K8sPod.metadata) + + ::flyteidl::core::K8sObjectMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::core::K8sObjectMetadata* K8sPod::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.K8sPod.metadata) + return metadata_; +} +inline void K8sPod::set_allocated_metadata(::flyteidl::core::K8sObjectMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.K8sPod.metadata) +} + +// .google.protobuf.Struct pod_spec = 2; +inline bool K8sPod::has_pod_spec() const { + return this != internal_default_instance() && pod_spec_ != nullptr; +} +inline const ::google::protobuf::Struct& K8sPod::pod_spec() const { + const ::google::protobuf::Struct* p = pod_spec_; + // @@protoc_insertion_point(field_get:flyteidl.core.K8sPod.pod_spec) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* K8sPod::release_pod_spec() { + // @@protoc_insertion_point(field_release:flyteidl.core.K8sPod.pod_spec) + + ::google::protobuf::Struct* temp = pod_spec_; + pod_spec_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* K8sPod::mutable_pod_spec() { + + if (pod_spec_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + pod_spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.K8sPod.pod_spec) + return pod_spec_; +} +inline void K8sPod::set_allocated_pod_spec(::google::protobuf::Struct* pod_spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(pod_spec_); + } + if (pod_spec) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(pod_spec)->GetArena(); + if (message_arena != submessage_arena) { + pod_spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pod_spec, submessage_arena); + } + + } else { + + } + pod_spec_ = pod_spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.K8sPod.pod_spec) +} + +// .flyteidl.core.DataLoadingConfig data_config = 3; +inline bool K8sPod::has_data_config() const { + return this != internal_default_instance() && data_config_ != nullptr; +} +inline void K8sPod::clear_data_config() { + if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { + delete data_config_; + } + data_config_ = nullptr; +} +inline const ::flyteidl::core::DataLoadingConfig& K8sPod::data_config() const { + const ::flyteidl::core::DataLoadingConfig* p = data_config_; + // @@protoc_insertion_point(field_get:flyteidl.core.K8sPod.data_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_DataLoadingConfig_default_instance_); +} +inline ::flyteidl::core::DataLoadingConfig* K8sPod::release_data_config() { + // @@protoc_insertion_point(field_release:flyteidl.core.K8sPod.data_config) + + ::flyteidl::core::DataLoadingConfig* temp = data_config_; + data_config_ = nullptr; + return temp; +} +inline ::flyteidl::core::DataLoadingConfig* K8sPod::mutable_data_config() { + + if (data_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::DataLoadingConfig>(GetArenaNoVirtual()); + data_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.K8sPod.data_config) + return data_config_; +} +inline void K8sPod::set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete data_config_; + } + if (data_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + data_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, data_config, submessage_arena); + } + + } else { + + } + data_config_ = data_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.K8sPod.data_config) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// K8sObjectMetadata + +// map labels = 1; +inline int K8sObjectMetadata::labels_size() const { + return labels_.size(); +} +inline void K8sObjectMetadata::clear_labels() { + labels_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +K8sObjectMetadata::labels() const { + // @@protoc_insertion_point(field_map:flyteidl.core.K8sObjectMetadata.labels) + return labels_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +K8sObjectMetadata::mutable_labels() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.K8sObjectMetadata.labels) + return labels_.MutableMap(); +} + +// map annotations = 2; +inline int K8sObjectMetadata::annotations_size() const { + return annotations_.size(); +} +inline void K8sObjectMetadata::clear_annotations() { + annotations_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +K8sObjectMetadata::annotations() const { + // @@protoc_insertion_point(field_map:flyteidl.core.K8sObjectMetadata.annotations) + return annotations_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +K8sObjectMetadata::mutable_annotations() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.K8sObjectMetadata.annotations) + return annotations_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// Sql + +// string statement = 1; +inline void Sql::clear_statement() { + statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Sql::statement() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Sql.statement) + return statement_.GetNoArena(); +} +inline void Sql::set_statement(const ::std::string& value) { + + statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Sql.statement) +} +#if LANG_CXX11 +inline void Sql::set_statement(::std::string&& value) { + + statement_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Sql.statement) +} +#endif +inline void Sql::set_statement(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Sql.statement) +} +inline void Sql::set_statement(const char* value, size_t size) { + + statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Sql.statement) +} +inline ::std::string* Sql::mutable_statement() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Sql.statement) + return statement_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Sql::release_statement() { + // @@protoc_insertion_point(field_release:flyteidl.core.Sql.statement) + + return statement_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Sql::set_allocated_statement(::std::string* statement) { + if (statement != nullptr) { + + } else { + + } + statement_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), statement); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Sql.statement) +} + +// .flyteidl.core.Sql.Dialect dialect = 2; +inline void Sql::clear_dialect() { + dialect_ = 0; +} +inline ::flyteidl::core::Sql_Dialect Sql::dialect() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Sql.dialect) + return static_cast< ::flyteidl::core::Sql_Dialect >(dialect_); +} +inline void Sql::set_dialect(::flyteidl::core::Sql_Dialect value) { + + dialect_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Sql.dialect) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::Resources_ResourceName> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Resources_ResourceName>() { + return ::flyteidl::core::Resources_ResourceName_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::RuntimeMetadata_RuntimeType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::RuntimeMetadata_RuntimeType>() { + return ::flyteidl::core::RuntimeMetadata_RuntimeType_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::Container_Architecture> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Container_Architecture>() { + return ::flyteidl::core::Container_Architecture_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::IOStrategy_DownloadMode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::IOStrategy_DownloadMode>() { + return ::flyteidl::core::IOStrategy_DownloadMode_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::IOStrategy_UploadMode> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::IOStrategy_UploadMode>() { + return ::flyteidl::core::IOStrategy_UploadMode_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat>() { + return ::flyteidl::core::DataLoadingConfig_LiteralMapFormat_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::Sql_Dialect> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Sql_Dialect>() { + return ::flyteidl::core::Sql_Dialect_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2ftasks_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc new file mode 100644 index 0000000000..8d9dc646c4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/types.proto + +#include "flyteidl/core/types.pb.h" +#include "flyteidl/core/types.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h new file mode 100644 index 0000000000..02aa993e49 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/types.proto +#ifndef GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED + +#include "flyteidl/core/types.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc new file mode 100644 index 0000000000..2e082c62dd --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc @@ -0,0 +1,5354 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +#include "flyteidl/core/types.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TypeStructure_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; +namespace flyteidl { +namespace core { +class SchemaType_SchemaColumnDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SchemaType_SchemaColumn_default_instance_; +class SchemaTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SchemaType_default_instance_; +class StructuredDatasetType_DatasetColumnDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StructuredDatasetType_DatasetColumn_default_instance_; +class StructuredDatasetTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _StructuredDatasetType_default_instance_; +class BlobTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _BlobType_default_instance_; +class EnumTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _EnumType_default_instance_; +class UnionTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _UnionType_default_instance_; +class TypeStructureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TypeStructure_default_instance_; +class TypeAnnotationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TypeAnnotation_default_instance_; +class LiteralTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + int simple_; + const ::flyteidl::core::SchemaType* schema_; + const ::flyteidl::core::LiteralType* collection_type_; + const ::flyteidl::core::LiteralType* map_value_type_; + const ::flyteidl::core::BlobType* blob_; + const ::flyteidl::core::EnumType* enum_type_; + const ::flyteidl::core::StructuredDatasetType* structured_dataset_type_; + const ::flyteidl::core::UnionType* union_type_; +} _LiteralType_default_instance_; +class OutputReferenceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _OutputReference_default_instance_; +class ErrorDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Error_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsSchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_SchemaType_SchemaColumn_default_instance_; + new (ptr) ::flyteidl::core::SchemaType_SchemaColumn(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SchemaType_SchemaColumn::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto}, {}}; + +static void InitDefaultsSchemaType_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_SchemaType_default_instance_; + new (ptr) ::flyteidl::core::SchemaType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SchemaType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSchemaType_flyteidl_2fcore_2ftypes_2eproto}, { + &scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsBlobType_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_BlobType_default_instance_; + new (ptr) ::flyteidl::core::BlobType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BlobType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBlobType_flyteidl_2fcore_2ftypes_2eproto}, {}}; + +static void InitDefaultsEnumType_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_EnumType_default_instance_; + new (ptr) ::flyteidl::core::EnumType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::EnumType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEnumType_flyteidl_2fcore_2ftypes_2eproto}, {}}; + +static void InitDefaultsTypeStructure_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TypeStructure_default_instance_; + new (ptr) ::flyteidl::core::TypeStructure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TypeStructure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TypeStructure_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTypeStructure_flyteidl_2fcore_2ftypes_2eproto}, {}}; + +static void InitDefaultsTypeAnnotation_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TypeAnnotation_default_instance_; + new (ptr) ::flyteidl::core::TypeAnnotation(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TypeAnnotation::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTypeAnnotation_flyteidl_2fcore_2ftypes_2eproto}, { + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; + +static void InitDefaultsLiteralType_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_StructuredDatasetType_DatasetColumn_default_instance_; + new (ptr) ::flyteidl::core::StructuredDatasetType_DatasetColumn(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_StructuredDatasetType_default_instance_; + new (ptr) ::flyteidl::core::StructuredDatasetType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_UnionType_default_instance_; + new (ptr) ::flyteidl::core::UnionType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_LiteralType_default_instance_; + new (ptr) ::flyteidl::core::LiteralType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::StructuredDatasetType_DatasetColumn::InitAsDefaultInstance(); + ::flyteidl::core::StructuredDatasetType::InitAsDefaultInstance(); + ::flyteidl::core::UnionType::InitAsDefaultInstance(); + ::flyteidl::core::LiteralType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<6> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsLiteralType_flyteidl_2fcore_2ftypes_2eproto}, { + &scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, + &scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_TypeStructure_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsOutputReference_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_OutputReference_default_instance_; + new (ptr) ::flyteidl::core::OutputReference(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::OutputReference::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOutputReference_flyteidl_2fcore_2ftypes_2eproto}, {}}; + +static void InitDefaultsError_flyteidl_2fcore_2ftypes_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Error_default_instance_; + new (ptr) ::flyteidl::core::Error(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Error::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Error_flyteidl_2fcore_2ftypes_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsError_flyteidl_2fcore_2ftypes_2eproto}, {}}; + +void InitDefaults_flyteidl_2fcore_2ftypes_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TypeStructure_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[12]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto[3]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2ftypes_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2ftypes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType, columns_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType_DatasetColumn, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType_DatasetColumn, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType_DatasetColumn, literal_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, columns_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, format_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, external_schema_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, external_schema_bytes_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobType, format_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobType, dimensionality_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::EnumType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::EnumType, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionType, variants_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure, tag_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeAnnotation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeAnnotation, annotations_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, simple_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, schema_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, collection_type_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, map_value_type_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, blob_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, enum_type_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, structured_dataset_type_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, union_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, annotation_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, structure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OutputReference, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OutputReference, node_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::OutputReference, var_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Error, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Error, failed_node_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Error, message_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::SchemaType_SchemaColumn)}, + { 7, -1, sizeof(::flyteidl::core::SchemaType)}, + { 13, -1, sizeof(::flyteidl::core::StructuredDatasetType_DatasetColumn)}, + { 20, -1, sizeof(::flyteidl::core::StructuredDatasetType)}, + { 29, -1, sizeof(::flyteidl::core::BlobType)}, + { 36, -1, sizeof(::flyteidl::core::EnumType)}, + { 42, -1, sizeof(::flyteidl::core::UnionType)}, + { 48, -1, sizeof(::flyteidl::core::TypeStructure)}, + { 54, -1, sizeof(::flyteidl::core::TypeAnnotation)}, + { 60, -1, sizeof(::flyteidl::core::LiteralType)}, + { 77, -1, sizeof(::flyteidl::core::OutputReference)}, + { 84, -1, sizeof(::flyteidl::core::Error)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_SchemaType_SchemaColumn_default_instance_), + reinterpret_cast(&::flyteidl::core::_SchemaType_default_instance_), + reinterpret_cast(&::flyteidl::core::_StructuredDatasetType_DatasetColumn_default_instance_), + reinterpret_cast(&::flyteidl::core::_StructuredDatasetType_default_instance_), + reinterpret_cast(&::flyteidl::core::_BlobType_default_instance_), + reinterpret_cast(&::flyteidl::core::_EnumType_default_instance_), + reinterpret_cast(&::flyteidl::core::_UnionType_default_instance_), + reinterpret_cast(&::flyteidl::core::_TypeStructure_default_instance_), + reinterpret_cast(&::flyteidl::core::_TypeAnnotation_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralType_default_instance_), + reinterpret_cast(&::flyteidl::core::_OutputReference_default_instance_), + reinterpret_cast(&::flyteidl::core::_Error_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, "flyteidl/core/types.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2ftypes_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2ftypes_2eproto, 12, file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto, file_level_service_descriptors_flyteidl_2fcore_2ftypes_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2ftypes_2eproto[] = + "\n\031flyteidl/core/types.proto\022\rflyteidl.co" + "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + ".core.SchemaType.SchemaColumn.SchemaColu" + "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + "ATETIME\020\004\022\014\n\010DURATION\020\005\"\372\001\n\025StructuredDa" + "tasetType\022C\n\007columns\030\001 \003(\01322.flyteidl.co" + "re.StructuredDatasetType.DatasetColumn\022\016" + "\n\006format\030\002 \001(\t\022\034\n\024external_schema_type\030\003" + " \001(\t\022\035\n\025external_schema_bytes\030\004 \001(\014\032O\n\rD" + "atasetColumn\022\014\n\004name\030\001 \001(\t\0220\n\014literal_ty" + "pe\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\217\001\n" + "\010BlobType\022\016\n\006format\030\001 \001(\t\022B\n\016dimensional" + "ity\030\002 \001(\0162*.flyteidl.core.BlobType.BlobD" + "imensionality\"/\n\022BlobDimensionality\022\n\n\006S" + "INGLE\020\000\022\r\n\tMULTIPART\020\001\"\032\n\010EnumType\022\016\n\006va" + "lues\030\001 \003(\t\"9\n\tUnionType\022,\n\010variants\030\001 \003(" + "\0132\032.flyteidl.core.LiteralType\"\034\n\rTypeStr" + "ucture\022\013\n\003tag\030\001 \001(\t\">\n\016TypeAnnotation\022,\n" + "\013annotations\030\001 \001(\0132\027.google.protobuf.Str" + "uct\"\273\004\n\013LiteralType\022+\n\006simple\030\001 \001(\0162\031.fl" + "yteidl.core.SimpleTypeH\000\022+\n\006schema\030\002 \001(\013" + "2\031.flyteidl.core.SchemaTypeH\000\0225\n\017collect" + "ion_type\030\003 \001(\0132\032.flyteidl.core.LiteralTy" + "peH\000\0224\n\016map_value_type\030\004 \001(\0132\032.flyteidl." + "core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027.flyte" + "idl.core.BlobTypeH\000\022,\n\tenum_type\030\007 \001(\0132\027" + ".flyteidl.core.EnumTypeH\000\022G\n\027structured_" + "dataset_type\030\010 \001(\0132$.flyteidl.core.Struc" + "turedDatasetTypeH\000\022.\n\nunion_type\030\n \001(\0132\030" + ".flyteidl.core.UnionTypeH\000\022)\n\010metadata\030\006" + " \001(\0132\027.google.protobuf.Struct\0221\n\nannotat" + "ion\030\t \001(\0132\035.flyteidl.core.TypeAnnotation" + "\022/\n\tstructure\030\013 \001(\0132\034.flyteidl.core.Type" + "StructureB\006\n\004type\"/\n\017OutputReference\022\017\n\007" + "node_id\030\001 \001(\t\022\013\n\003var\030\002 \001(\t\"0\n\005Error\022\026\n\016f" + "ailed_node_id\030\001 \001(\t\022\017\n\007message\030\002 \001(\t*\206\001\n" + "\nSimpleType\022\010\n\004NONE\020\000\022\013\n\007INTEGER\020\001\022\t\n\005FL" + "OAT\020\002\022\n\n\006STRING\020\003\022\013\n\007BOOLEAN\020\004\022\014\n\010DATETI" + "ME\020\005\022\014\n\010DURATION\020\006\022\n\n\006BINARY\020\007\022\t\n\005ERROR\020" + "\010\022\n\n\006STRUCT\020\tB6Z4github.com/flyteorg/fly" + "teidl/gen/pb-go/flyteidl/coreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2ftypes_2eproto = { + false, InitDefaults_flyteidl_2fcore_2ftypes_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2ftypes_2eproto, + "flyteidl/core/types.proto", &assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto, 1797, +}; + +void AddDescriptors_flyteidl_2fcore_2ftypes_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2ftypes_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2ftypes_2eproto = []() { AddDescriptors_flyteidl_2fcore_2ftypes_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* SchemaType_SchemaColumn_SchemaColumnType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto[0]; +} +bool SchemaType_SchemaColumn_SchemaColumnType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::INTEGER; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::FLOAT; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::STRING; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::BOOLEAN; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::DATETIME; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::DURATION; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::SchemaColumnType_MIN; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::SchemaColumnType_MAX; +const int SchemaType_SchemaColumn::SchemaColumnType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* BlobType_BlobDimensionality_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto[1]; +} +bool BlobType_BlobDimensionality_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const BlobType_BlobDimensionality BlobType::SINGLE; +const BlobType_BlobDimensionality BlobType::MULTIPART; +const BlobType_BlobDimensionality BlobType::BlobDimensionality_MIN; +const BlobType_BlobDimensionality BlobType::BlobDimensionality_MAX; +const int BlobType::BlobDimensionality_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* SimpleType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto[2]; +} +bool SimpleType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + return true; + default: + return false; + } +} + + +// =================================================================== + +void SchemaType_SchemaColumn::InitAsDefaultInstance() { +} +class SchemaType_SchemaColumn::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SchemaType_SchemaColumn::kNameFieldNumber; +const int SchemaType_SchemaColumn::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SchemaType_SchemaColumn::SchemaType_SchemaColumn() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SchemaType.SchemaColumn) +} +SchemaType_SchemaColumn::SchemaType_SchemaColumn(const SchemaType_SchemaColumn& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SchemaType.SchemaColumn) +} + +void SchemaType_SchemaColumn::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; +} + +SchemaType_SchemaColumn::~SchemaType_SchemaColumn() { + // @@protoc_insertion_point(destructor:flyteidl.core.SchemaType.SchemaColumn) + SharedDtor(); +} + +void SchemaType_SchemaColumn::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SchemaType_SchemaColumn::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SchemaType_SchemaColumn& SchemaType_SchemaColumn::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void SchemaType_SchemaColumn::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SchemaType_SchemaColumn::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.SchemaType.SchemaColumn.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_type(static_cast<::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SchemaType_SchemaColumn::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SchemaType.SchemaColumn) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.SchemaType.SchemaColumn.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.SchemaType.SchemaColumn) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SchemaType.SchemaColumn) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SchemaType_SchemaColumn::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SchemaType.SchemaColumn.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + if (this->type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SchemaType.SchemaColumn) +} + +::google::protobuf::uint8* SchemaType_SchemaColumn::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SchemaType.SchemaColumn.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + if (this->type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SchemaType.SchemaColumn) + return target; +} + +size_t SchemaType_SchemaColumn::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SchemaType.SchemaColumn) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SchemaType_SchemaColumn::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SchemaType.SchemaColumn) + GOOGLE_DCHECK_NE(&from, this); + const SchemaType_SchemaColumn* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SchemaType.SchemaColumn) + MergeFrom(*source); + } +} + +void SchemaType_SchemaColumn::MergeFrom(const SchemaType_SchemaColumn& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SchemaType.SchemaColumn) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void SchemaType_SchemaColumn::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SchemaType.SchemaColumn) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SchemaType_SchemaColumn::CopyFrom(const SchemaType_SchemaColumn& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SchemaType.SchemaColumn) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SchemaType_SchemaColumn::IsInitialized() const { + return true; +} + +void SchemaType_SchemaColumn::Swap(SchemaType_SchemaColumn* other) { + if (other == this) return; + InternalSwap(other); +} +void SchemaType_SchemaColumn::InternalSwap(SchemaType_SchemaColumn* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::google::protobuf::Metadata SchemaType_SchemaColumn::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SchemaType::InitAsDefaultInstance() { +} +class SchemaType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SchemaType::kColumnsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SchemaType::SchemaType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SchemaType) +} +SchemaType::SchemaType(const SchemaType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + columns_(from.columns_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SchemaType) +} + +void SchemaType::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base); +} + +SchemaType::~SchemaType() { + // @@protoc_insertion_point(destructor:flyteidl.core.SchemaType) + SharedDtor(); +} + +void SchemaType::SharedDtor() { +} + +void SchemaType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SchemaType& SchemaType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void SchemaType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SchemaType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + columns_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SchemaType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SchemaType_SchemaColumn::_InternalParse; + object = msg->add_columns(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SchemaType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SchemaType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_columns())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.SchemaType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SchemaType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SchemaType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SchemaType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + for (unsigned int i = 0, + n = static_cast(this->columns_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->columns(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SchemaType) +} + +::google::protobuf::uint8* SchemaType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SchemaType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + for (unsigned int i = 0, + n = static_cast(this->columns_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->columns(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SchemaType) + return target; +} + +size_t SchemaType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SchemaType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + { + unsigned int count = static_cast(this->columns_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->columns(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SchemaType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SchemaType) + GOOGLE_DCHECK_NE(&from, this); + const SchemaType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SchemaType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SchemaType) + MergeFrom(*source); + } +} + +void SchemaType::MergeFrom(const SchemaType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SchemaType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + columns_.MergeFrom(from.columns_); +} + +void SchemaType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SchemaType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SchemaType::CopyFrom(const SchemaType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SchemaType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SchemaType::IsInitialized() const { + return true; +} + +void SchemaType::Swap(SchemaType* other) { + if (other == this) return; + InternalSwap(other); +} +void SchemaType::InternalSwap(SchemaType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&columns_)->InternalSwap(CastToBase(&other->columns_)); +} + +::google::protobuf::Metadata SchemaType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void StructuredDatasetType_DatasetColumn::InitAsDefaultInstance() { + ::flyteidl::core::_StructuredDatasetType_DatasetColumn_default_instance_._instance.get_mutable()->literal_type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); +} +class StructuredDatasetType_DatasetColumn::HasBitSetters { + public: + static const ::flyteidl::core::LiteralType& literal_type(const StructuredDatasetType_DatasetColumn* msg); +}; + +const ::flyteidl::core::LiteralType& +StructuredDatasetType_DatasetColumn::HasBitSetters::literal_type(const StructuredDatasetType_DatasetColumn* msg) { + return *msg->literal_type_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StructuredDatasetType_DatasetColumn::kNameFieldNumber; +const int StructuredDatasetType_DatasetColumn::kLiteralTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StructuredDatasetType_DatasetColumn::StructuredDatasetType_DatasetColumn() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDatasetType.DatasetColumn) +} +StructuredDatasetType_DatasetColumn::StructuredDatasetType_DatasetColumn(const StructuredDatasetType_DatasetColumn& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_literal_type()) { + literal_type_ = new ::flyteidl::core::LiteralType(*from.literal_type_); + } else { + literal_type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDatasetType.DatasetColumn) +} + +void StructuredDatasetType_DatasetColumn::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + literal_type_ = nullptr; +} + +StructuredDatasetType_DatasetColumn::~StructuredDatasetType_DatasetColumn() { + // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDatasetType.DatasetColumn) + SharedDtor(); +} + +void StructuredDatasetType_DatasetColumn::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete literal_type_; +} + +void StructuredDatasetType_DatasetColumn::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StructuredDatasetType_DatasetColumn& StructuredDatasetType_DatasetColumn::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void StructuredDatasetType_DatasetColumn::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && literal_type_ != nullptr) { + delete literal_type_; + } + literal_type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StructuredDatasetType_DatasetColumn::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDatasetType.DatasetColumn.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.LiteralType literal_type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_literal_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StructuredDatasetType_DatasetColumn::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.StructuredDatasetType.DatasetColumn.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType literal_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_literal_type())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.StructuredDatasetType.DatasetColumn) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDatasetType.DatasetColumn) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StructuredDatasetType_DatasetColumn::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDatasetType.DatasetColumn.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // .flyteidl.core.LiteralType literal_type = 2; + if (this->has_literal_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::literal_type(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDatasetType.DatasetColumn) +} + +::google::protobuf::uint8* StructuredDatasetType_DatasetColumn::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDatasetType.DatasetColumn.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // .flyteidl.core.LiteralType literal_type = 2; + if (this->has_literal_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::literal_type(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.StructuredDatasetType.DatasetColumn) + return target; +} + +size_t StructuredDatasetType_DatasetColumn::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.LiteralType literal_type = 2; + if (this->has_literal_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *literal_type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StructuredDatasetType_DatasetColumn::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + GOOGLE_DCHECK_NE(&from, this); + const StructuredDatasetType_DatasetColumn* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDatasetType.DatasetColumn) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDatasetType.DatasetColumn) + MergeFrom(*source); + } +} + +void StructuredDatasetType_DatasetColumn::MergeFrom(const StructuredDatasetType_DatasetColumn& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_literal_type()) { + mutable_literal_type()->::flyteidl::core::LiteralType::MergeFrom(from.literal_type()); + } +} + +void StructuredDatasetType_DatasetColumn::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StructuredDatasetType_DatasetColumn::CopyFrom(const StructuredDatasetType_DatasetColumn& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StructuredDatasetType_DatasetColumn::IsInitialized() const { + return true; +} + +void StructuredDatasetType_DatasetColumn::Swap(StructuredDatasetType_DatasetColumn* other) { + if (other == this) return; + InternalSwap(other); +} +void StructuredDatasetType_DatasetColumn::InternalSwap(StructuredDatasetType_DatasetColumn* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(literal_type_, other->literal_type_); +} + +::google::protobuf::Metadata StructuredDatasetType_DatasetColumn::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void StructuredDatasetType::InitAsDefaultInstance() { +} +class StructuredDatasetType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int StructuredDatasetType::kColumnsFieldNumber; +const int StructuredDatasetType::kFormatFieldNumber; +const int StructuredDatasetType::kExternalSchemaTypeFieldNumber; +const int StructuredDatasetType::kExternalSchemaBytesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +StructuredDatasetType::StructuredDatasetType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDatasetType) +} +StructuredDatasetType::StructuredDatasetType(const StructuredDatasetType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + columns_(from.columns_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.format().size() > 0) { + format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); + } + external_schema_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.external_schema_type().size() > 0) { + external_schema_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_type_); + } + external_schema_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.external_schema_bytes().size() > 0) { + external_schema_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_bytes_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDatasetType) +} + +void StructuredDatasetType::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + external_schema_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + external_schema_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +StructuredDatasetType::~StructuredDatasetType() { + // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDatasetType) + SharedDtor(); +} + +void StructuredDatasetType::SharedDtor() { + format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + external_schema_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + external_schema_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void StructuredDatasetType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const StructuredDatasetType& StructuredDatasetType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void StructuredDatasetType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDatasetType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + columns_.Clear(); + format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + external_schema_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + external_schema_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* StructuredDatasetType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::StructuredDatasetType_DatasetColumn::_InternalParse; + object = msg->add_columns(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string format = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDatasetType.format"); + object = msg->mutable_format(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string external_schema_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDatasetType.external_schema_type"); + object = msg->mutable_external_schema_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // bytes external_schema_bytes = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_external_schema_bytes(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool StructuredDatasetType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.StructuredDatasetType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_columns())); + } else { + goto handle_unusual; + } + break; + } + + // string format = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_format())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.StructuredDatasetType.format")); + } else { + goto handle_unusual; + } + break; + } + + // string external_schema_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_external_schema_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->external_schema_type().data(), static_cast(this->external_schema_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.StructuredDatasetType.external_schema_type")); + } else { + goto handle_unusual; + } + break; + } + + // bytes external_schema_bytes = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_external_schema_bytes())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.StructuredDatasetType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDatasetType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void StructuredDatasetType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDatasetType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + for (unsigned int i = 0, + n = static_cast(this->columns_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->columns(static_cast(i)), + output); + } + + // string format = 2; + if (this->format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDatasetType.format"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->format(), output); + } + + // string external_schema_type = 3; + if (this->external_schema_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->external_schema_type().data(), static_cast(this->external_schema_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDatasetType.external_schema_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->external_schema_type(), output); + } + + // bytes external_schema_bytes = 4; + if (this->external_schema_bytes().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->external_schema_bytes(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDatasetType) +} + +::google::protobuf::uint8* StructuredDatasetType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDatasetType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + for (unsigned int i = 0, + n = static_cast(this->columns_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->columns(static_cast(i)), target); + } + + // string format = 2; + if (this->format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDatasetType.format"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->format(), target); + } + + // string external_schema_type = 3; + if (this->external_schema_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->external_schema_type().data(), static_cast(this->external_schema_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.StructuredDatasetType.external_schema_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->external_schema_type(), target); + } + + // bytes external_schema_bytes = 4; + if (this->external_schema_bytes().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->external_schema_bytes(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.StructuredDatasetType) + return target; +} + +size_t StructuredDatasetType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDatasetType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + { + unsigned int count = static_cast(this->columns_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->columns(static_cast(i))); + } + } + + // string format = 2; + if (this->format().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->format()); + } + + // string external_schema_type = 3; + if (this->external_schema_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->external_schema_type()); + } + + // bytes external_schema_bytes = 4; + if (this->external_schema_bytes().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->external_schema_bytes()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void StructuredDatasetType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDatasetType) + GOOGLE_DCHECK_NE(&from, this); + const StructuredDatasetType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDatasetType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDatasetType) + MergeFrom(*source); + } +} + +void StructuredDatasetType::MergeFrom(const StructuredDatasetType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDatasetType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + columns_.MergeFrom(from.columns_); + if (from.format().size() > 0) { + + format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); + } + if (from.external_schema_type().size() > 0) { + + external_schema_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_type_); + } + if (from.external_schema_bytes().size() > 0) { + + external_schema_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_bytes_); + } +} + +void StructuredDatasetType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDatasetType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StructuredDatasetType::CopyFrom(const StructuredDatasetType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDatasetType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StructuredDatasetType::IsInitialized() const { + return true; +} + +void StructuredDatasetType::Swap(StructuredDatasetType* other) { + if (other == this) return; + InternalSwap(other); +} +void StructuredDatasetType::InternalSwap(StructuredDatasetType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&columns_)->InternalSwap(CastToBase(&other->columns_)); + format_.Swap(&other->format_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + external_schema_type_.Swap(&other->external_schema_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + external_schema_bytes_.Swap(&other->external_schema_bytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata StructuredDatasetType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void BlobType::InitAsDefaultInstance() { +} +class BlobType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlobType::kFormatFieldNumber; +const int BlobType::kDimensionalityFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BlobType::BlobType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BlobType) +} +BlobType::BlobType(const BlobType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.format().size() > 0) { + format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); + } + dimensionality_ = from.dimensionality_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BlobType) +} + +void BlobType::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base); + format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dimensionality_ = 0; +} + +BlobType::~BlobType() { + // @@protoc_insertion_point(destructor:flyteidl.core.BlobType) + SharedDtor(); +} + +void BlobType::SharedDtor() { + format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BlobType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BlobType& BlobType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void BlobType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BlobType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dimensionality_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BlobType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string format = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.BlobType.format"); + object = msg->mutable_format(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_dimensionality(static_cast<::flyteidl::core::BlobType_BlobDimensionality>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BlobType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BlobType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string format = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_format())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.BlobType.format")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_dimensionality(static_cast< ::flyteidl::core::BlobType_BlobDimensionality >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.BlobType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BlobType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BlobType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BlobType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string format = 1; + if (this->format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BlobType.format"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->format(), output); + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + if (this->dimensionality() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->dimensionality(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BlobType) +} + +::google::protobuf::uint8* BlobType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BlobType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string format = 1; + if (this->format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BlobType.format"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->format(), target); + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + if (this->dimensionality() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->dimensionality(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BlobType) + return target; +} + +size_t BlobType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BlobType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string format = 1; + if (this->format().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->format()); + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + if (this->dimensionality() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->dimensionality()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BlobType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BlobType) + GOOGLE_DCHECK_NE(&from, this); + const BlobType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BlobType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BlobType) + MergeFrom(*source); + } +} + +void BlobType::MergeFrom(const BlobType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BlobType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.format().size() > 0) { + + format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); + } + if (from.dimensionality() != 0) { + set_dimensionality(from.dimensionality()); + } +} + +void BlobType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BlobType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BlobType::CopyFrom(const BlobType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BlobType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlobType::IsInitialized() const { + return true; +} + +void BlobType::Swap(BlobType* other) { + if (other == this) return; + InternalSwap(other); +} +void BlobType::InternalSwap(BlobType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + format_.Swap(&other->format_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dimensionality_, other->dimensionality_); +} + +::google::protobuf::Metadata BlobType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void EnumType::InitAsDefaultInstance() { +} +class EnumType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EnumType::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EnumType::EnumType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.EnumType) +} +EnumType::EnumType(const EnumType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + values_(from.values_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.EnumType) +} + +void EnumType::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base); +} + +EnumType::~EnumType() { + // @@protoc_insertion_point(destructor:flyteidl.core.EnumType) + SharedDtor(); +} + +void EnumType::SharedDtor() { +} + +void EnumType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const EnumType& EnumType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void EnumType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.EnumType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* EnumType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string values = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.EnumType.values"); + object = msg->add_values(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool EnumType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.EnumType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_values())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(this->values_size() - 1).data(), + static_cast(this->values(this->values_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.EnumType.values")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.EnumType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.EnumType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void EnumType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.EnumType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.EnumType.values"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->values(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.EnumType) +} + +::google::protobuf::uint8* EnumType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.EnumType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.EnumType.values"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->values(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.EnumType) + return target; +} + +size_t EnumType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.EnumType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + for (int i = 0, n = this->values_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->values(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void EnumType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.EnumType) + GOOGLE_DCHECK_NE(&from, this); + const EnumType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.EnumType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.EnumType) + MergeFrom(*source); + } +} + +void EnumType::MergeFrom(const EnumType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.EnumType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void EnumType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.EnumType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EnumType::CopyFrom(const EnumType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.EnumType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EnumType::IsInitialized() const { + return true; +} + +void EnumType::Swap(EnumType* other) { + if (other == this) return; + InternalSwap(other); +} +void EnumType::InternalSwap(EnumType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.InternalSwap(CastToBase(&other->values_)); +} + +::google::protobuf::Metadata EnumType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void UnionType::InitAsDefaultInstance() { +} +class UnionType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UnionType::kVariantsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UnionType::UnionType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.UnionType) +} +UnionType::UnionType(const UnionType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + variants_(from.variants_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.UnionType) +} + +void UnionType::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); +} + +UnionType::~UnionType() { + // @@protoc_insertion_point(destructor:flyteidl.core.UnionType) + SharedDtor(); +} + +void UnionType::SharedDtor() { +} + +void UnionType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UnionType& UnionType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void UnionType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.UnionType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + variants_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UnionType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.core.LiteralType variants = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->add_variants(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UnionType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.UnionType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.core.LiteralType variants = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_variants())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.UnionType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.UnionType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UnionType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.UnionType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.LiteralType variants = 1; + for (unsigned int i = 0, + n = static_cast(this->variants_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->variants(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.UnionType) +} + +::google::protobuf::uint8* UnionType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.UnionType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.LiteralType variants = 1; + for (unsigned int i = 0, + n = static_cast(this->variants_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->variants(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.UnionType) + return target; +} + +size_t UnionType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.UnionType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.LiteralType variants = 1; + { + unsigned int count = static_cast(this->variants_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->variants(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UnionType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.UnionType) + GOOGLE_DCHECK_NE(&from, this); + const UnionType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.UnionType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.UnionType) + MergeFrom(*source); + } +} + +void UnionType::MergeFrom(const UnionType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.UnionType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + variants_.MergeFrom(from.variants_); +} + +void UnionType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.UnionType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UnionType::CopyFrom(const UnionType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.UnionType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnionType::IsInitialized() const { + return true; +} + +void UnionType::Swap(UnionType* other) { + if (other == this) return; + InternalSwap(other); +} +void UnionType::InternalSwap(UnionType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&variants_)->InternalSwap(CastToBase(&other->variants_)); +} + +::google::protobuf::Metadata UnionType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TypeStructure::InitAsDefaultInstance() { +} +class TypeStructure::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TypeStructure::kTagFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TypeStructure::TypeStructure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TypeStructure) +} +TypeStructure::TypeStructure(const TypeStructure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag().size() > 0) { + tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TypeStructure) +} + +void TypeStructure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TypeStructure_flyteidl_2fcore_2ftypes_2eproto.base); + tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TypeStructure::~TypeStructure() { + // @@protoc_insertion_point(destructor:flyteidl.core.TypeStructure) + SharedDtor(); +} + +void TypeStructure::SharedDtor() { + tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TypeStructure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TypeStructure& TypeStructure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TypeStructure_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void TypeStructure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TypeStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TypeStructure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string tag = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.TypeStructure.tag"); + object = msg->mutable_tag(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TypeStructure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TypeStructure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string tag = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TypeStructure.tag")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TypeStructure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TypeStructure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TypeStructure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TypeStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string tag = 1; + if (this->tag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TypeStructure.tag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->tag(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TypeStructure) +} + +::google::protobuf::uint8* TypeStructure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TypeStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string tag = 1; + if (this->tag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TypeStructure.tag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->tag(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TypeStructure) + return target; +} + +size_t TypeStructure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TypeStructure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string tag = 1; + if (this->tag().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TypeStructure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TypeStructure) + GOOGLE_DCHECK_NE(&from, this); + const TypeStructure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TypeStructure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TypeStructure) + MergeFrom(*source); + } +} + +void TypeStructure::MergeFrom(const TypeStructure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TypeStructure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.tag().size() > 0) { + + tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); + } +} + +void TypeStructure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TypeStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TypeStructure::CopyFrom(const TypeStructure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TypeStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TypeStructure::IsInitialized() const { + return true; +} + +void TypeStructure::Swap(TypeStructure* other) { + if (other == this) return; + InternalSwap(other); +} +void TypeStructure::InternalSwap(TypeStructure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tag_.Swap(&other->tag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata TypeStructure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TypeAnnotation::InitAsDefaultInstance() { + ::flyteidl::core::_TypeAnnotation_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +class TypeAnnotation::HasBitSetters { + public: + static const ::google::protobuf::Struct& annotations(const TypeAnnotation* msg); +}; + +const ::google::protobuf::Struct& +TypeAnnotation::HasBitSetters::annotations(const TypeAnnotation* msg) { + return *msg->annotations_; +} +void TypeAnnotation::clear_annotations() { + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TypeAnnotation::kAnnotationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TypeAnnotation::TypeAnnotation() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TypeAnnotation) +} +TypeAnnotation::TypeAnnotation(const TypeAnnotation& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_annotations()) { + annotations_ = new ::google::protobuf::Struct(*from.annotations_); + } else { + annotations_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TypeAnnotation) +} + +void TypeAnnotation::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base); + annotations_ = nullptr; +} + +TypeAnnotation::~TypeAnnotation() { + // @@protoc_insertion_point(destructor:flyteidl.core.TypeAnnotation) + SharedDtor(); +} + +void TypeAnnotation::SharedDtor() { + if (this != internal_default_instance()) delete annotations_; +} + +void TypeAnnotation::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TypeAnnotation& TypeAnnotation::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void TypeAnnotation::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TypeAnnotation) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { + delete annotations_; + } + annotations_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TypeAnnotation::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .google.protobuf.Struct annotations = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_annotations(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TypeAnnotation::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TypeAnnotation) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .google.protobuf.Struct annotations = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_annotations())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TypeAnnotation) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TypeAnnotation) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TypeAnnotation::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TypeAnnotation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Struct annotations = 1; + if (this->has_annotations()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::annotations(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TypeAnnotation) +} + +::google::protobuf::uint8* TypeAnnotation::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TypeAnnotation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Struct annotations = 1; + if (this->has_annotations()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::annotations(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TypeAnnotation) + return target; +} + +size_t TypeAnnotation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TypeAnnotation) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Struct annotations = 1; + if (this->has_annotations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *annotations_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TypeAnnotation::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TypeAnnotation) + GOOGLE_DCHECK_NE(&from, this); + const TypeAnnotation* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TypeAnnotation) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TypeAnnotation) + MergeFrom(*source); + } +} + +void TypeAnnotation::MergeFrom(const TypeAnnotation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TypeAnnotation) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_annotations()) { + mutable_annotations()->::google::protobuf::Struct::MergeFrom(from.annotations()); + } +} + +void TypeAnnotation::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TypeAnnotation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TypeAnnotation::CopyFrom(const TypeAnnotation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TypeAnnotation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TypeAnnotation::IsInitialized() const { + return true; +} + +void TypeAnnotation::Swap(TypeAnnotation* other) { + if (other == this) return; + InternalSwap(other); +} +void TypeAnnotation::InternalSwap(TypeAnnotation* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(annotations_, other->annotations_); +} + +::google::protobuf::Metadata TypeAnnotation::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiteralType::InitAsDefaultInstance() { + ::flyteidl::core::_LiteralType_default_instance_.simple_ = 0; + ::flyteidl::core::_LiteralType_default_instance_.schema_ = const_cast< ::flyteidl::core::SchemaType*>( + ::flyteidl::core::SchemaType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.collection_type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.map_value_type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.blob_ = const_cast< ::flyteidl::core::BlobType*>( + ::flyteidl::core::BlobType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.enum_type_ = const_cast< ::flyteidl::core::EnumType*>( + ::flyteidl::core::EnumType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.structured_dataset_type_ = const_cast< ::flyteidl::core::StructuredDatasetType*>( + ::flyteidl::core::StructuredDatasetType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.union_type_ = const_cast< ::flyteidl::core::UnionType*>( + ::flyteidl::core::UnionType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_._instance.get_mutable()->annotation_ = const_cast< ::flyteidl::core::TypeAnnotation*>( + ::flyteidl::core::TypeAnnotation::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_._instance.get_mutable()->structure_ = const_cast< ::flyteidl::core::TypeStructure*>( + ::flyteidl::core::TypeStructure::internal_default_instance()); +} +class LiteralType::HasBitSetters { + public: + static const ::flyteidl::core::SchemaType& schema(const LiteralType* msg); + static const ::flyteidl::core::LiteralType& collection_type(const LiteralType* msg); + static const ::flyteidl::core::LiteralType& map_value_type(const LiteralType* msg); + static const ::flyteidl::core::BlobType& blob(const LiteralType* msg); + static const ::flyteidl::core::EnumType& enum_type(const LiteralType* msg); + static const ::flyteidl::core::StructuredDatasetType& structured_dataset_type(const LiteralType* msg); + static const ::flyteidl::core::UnionType& union_type(const LiteralType* msg); + static const ::google::protobuf::Struct& metadata(const LiteralType* msg); + static const ::flyteidl::core::TypeAnnotation& annotation(const LiteralType* msg); + static const ::flyteidl::core::TypeStructure& structure(const LiteralType* msg); +}; + +const ::flyteidl::core::SchemaType& +LiteralType::HasBitSetters::schema(const LiteralType* msg) { + return *msg->type_.schema_; +} +const ::flyteidl::core::LiteralType& +LiteralType::HasBitSetters::collection_type(const LiteralType* msg) { + return *msg->type_.collection_type_; +} +const ::flyteidl::core::LiteralType& +LiteralType::HasBitSetters::map_value_type(const LiteralType* msg) { + return *msg->type_.map_value_type_; +} +const ::flyteidl::core::BlobType& +LiteralType::HasBitSetters::blob(const LiteralType* msg) { + return *msg->type_.blob_; +} +const ::flyteidl::core::EnumType& +LiteralType::HasBitSetters::enum_type(const LiteralType* msg) { + return *msg->type_.enum_type_; +} +const ::flyteidl::core::StructuredDatasetType& +LiteralType::HasBitSetters::structured_dataset_type(const LiteralType* msg) { + return *msg->type_.structured_dataset_type_; +} +const ::flyteidl::core::UnionType& +LiteralType::HasBitSetters::union_type(const LiteralType* msg) { + return *msg->type_.union_type_; +} +const ::google::protobuf::Struct& +LiteralType::HasBitSetters::metadata(const LiteralType* msg) { + return *msg->metadata_; +} +const ::flyteidl::core::TypeAnnotation& +LiteralType::HasBitSetters::annotation(const LiteralType* msg) { + return *msg->annotation_; +} +const ::flyteidl::core::TypeStructure& +LiteralType::HasBitSetters::structure(const LiteralType* msg) { + return *msg->structure_; +} +void LiteralType::set_allocated_schema(::flyteidl::core::SchemaType* schema) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (schema) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + schema = ::google::protobuf::internal::GetOwnedMessage( + message_arena, schema, submessage_arena); + } + set_has_schema(); + type_.schema_ = schema; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.schema) +} +void LiteralType::set_allocated_collection_type(::flyteidl::core::LiteralType* collection_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (collection_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + collection_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, collection_type, submessage_arena); + } + set_has_collection_type(); + type_.collection_type_ = collection_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.collection_type) +} +void LiteralType::set_allocated_map_value_type(::flyteidl::core::LiteralType* map_value_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (map_value_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + map_value_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, map_value_type, submessage_arena); + } + set_has_map_value_type(); + type_.map_value_type_ = map_value_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.map_value_type) +} +void LiteralType::set_allocated_blob(::flyteidl::core::BlobType* blob) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (blob) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + blob = ::google::protobuf::internal::GetOwnedMessage( + message_arena, blob, submessage_arena); + } + set_has_blob(); + type_.blob_ = blob; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.blob) +} +void LiteralType::set_allocated_enum_type(::flyteidl::core::EnumType* enum_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (enum_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + enum_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, enum_type, submessage_arena); + } + set_has_enum_type(); + type_.enum_type_ = enum_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.enum_type) +} +void LiteralType::set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (structured_dataset_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + structured_dataset_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, structured_dataset_type, submessage_arena); + } + set_has_structured_dataset_type(); + type_.structured_dataset_type_ = structured_dataset_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.structured_dataset_type) +} +void LiteralType::set_allocated_union_type(::flyteidl::core::UnionType* union_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (union_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + union_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, union_type, submessage_arena); + } + set_has_union_type(); + type_.union_type_ = union_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.union_type) +} +void LiteralType::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralType::kSimpleFieldNumber; +const int LiteralType::kSchemaFieldNumber; +const int LiteralType::kCollectionTypeFieldNumber; +const int LiteralType::kMapValueTypeFieldNumber; +const int LiteralType::kBlobFieldNumber; +const int LiteralType::kEnumTypeFieldNumber; +const int LiteralType::kStructuredDatasetTypeFieldNumber; +const int LiteralType::kUnionTypeFieldNumber; +const int LiteralType::kMetadataFieldNumber; +const int LiteralType::kAnnotationFieldNumber; +const int LiteralType::kStructureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralType::LiteralType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.LiteralType) +} +LiteralType::LiteralType(const LiteralType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_metadata()) { + metadata_ = new ::google::protobuf::Struct(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_annotation()) { + annotation_ = new ::flyteidl::core::TypeAnnotation(*from.annotation_); + } else { + annotation_ = nullptr; + } + if (from.has_structure()) { + structure_ = new ::flyteidl::core::TypeStructure(*from.structure_); + } else { + structure_ = nullptr; + } + clear_has_type(); + switch (from.type_case()) { + case kSimple: { + set_simple(from.simple()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::SchemaType::MergeFrom(from.schema()); + break; + } + case kCollectionType: { + mutable_collection_type()->::flyteidl::core::LiteralType::MergeFrom(from.collection_type()); + break; + } + case kMapValueType: { + mutable_map_value_type()->::flyteidl::core::LiteralType::MergeFrom(from.map_value_type()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::BlobType::MergeFrom(from.blob()); + break; + } + case kEnumType: { + mutable_enum_type()->::flyteidl::core::EnumType::MergeFrom(from.enum_type()); + break; + } + case kStructuredDatasetType: { + mutable_structured_dataset_type()->::flyteidl::core::StructuredDatasetType::MergeFrom(from.structured_dataset_type()); + break; + } + case kUnionType: { + mutable_union_type()->::flyteidl::core::UnionType::MergeFrom(from.union_type()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralType) +} + +void LiteralType::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + ::memset(&metadata_, 0, static_cast( + reinterpret_cast(&structure_) - + reinterpret_cast(&metadata_)) + sizeof(structure_)); + clear_has_type(); +} + +LiteralType::~LiteralType() { + // @@protoc_insertion_point(destructor:flyteidl.core.LiteralType) + SharedDtor(); +} + +void LiteralType::SharedDtor() { + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete annotation_; + if (this != internal_default_instance()) delete structure_; + if (has_type()) { + clear_type(); + } +} + +void LiteralType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const LiteralType& LiteralType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void LiteralType::clear_type() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.LiteralType) + switch (type_case()) { + case kSimple: { + // No need to clear + break; + } + case kSchema: { + delete type_.schema_; + break; + } + case kCollectionType: { + delete type_.collection_type_; + break; + } + case kMapValueType: { + delete type_.map_value_type_; + break; + } + case kBlob: { + delete type_.blob_; + break; + } + case kEnumType: { + delete type_.enum_type_; + break; + } + case kStructuredDatasetType: { + delete type_.structured_dataset_type_; + break; + } + case kUnionType: { + delete type_.union_type_; + break; + } + case TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = TYPE_NOT_SET; +} + + +void LiteralType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && annotation_ != nullptr) { + delete annotation_; + } + annotation_ = nullptr; + if (GetArenaNoVirtual() == nullptr && structure_ != nullptr) { + delete structure_; + } + structure_ = nullptr; + clear_type(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* LiteralType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.SimpleType simple = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_simple(static_cast<::flyteidl::core::SimpleType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.SchemaType schema = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SchemaType::_InternalParse; + object = msg->mutable_schema(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralType collection_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_collection_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralType map_value_type = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_map_value_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.BlobType blob = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BlobType::_InternalParse; + object = msg->mutable_blob(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Struct metadata = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.EnumType enum_type = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::EnumType::_InternalParse; + object = msg->mutable_enum_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::StructuredDatasetType::_InternalParse; + object = msg->mutable_structured_dataset_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TypeAnnotation annotation = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TypeAnnotation::_InternalParse; + object = msg->mutable_annotation(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.UnionType union_type = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::UnionType::_InternalParse; + object = msg->mutable_union_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TypeStructure structure = 11; + case 11: { + if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TypeStructure::_InternalParse; + object = msg->mutable_structure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool LiteralType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.LiteralType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.SimpleType simple = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_simple(static_cast< ::flyteidl::core::SimpleType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SchemaType schema = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_schema())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType collection_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_collection_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType map_value_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_map_value_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BlobType blob = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_blob())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct metadata = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.EnumType enum_type = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_enum_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_structured_dataset_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TypeAnnotation annotation = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_annotation())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.UnionType union_type = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_union_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TypeStructure structure = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_structure())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.LiteralType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void LiteralType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SimpleType simple = 1; + if (has_simple()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->simple(), output); + } + + // .flyteidl.core.SchemaType schema = 2; + if (has_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::schema(this), output); + } + + // .flyteidl.core.LiteralType collection_type = 3; + if (has_collection_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::collection_type(this), output); + } + + // .flyteidl.core.LiteralType map_value_type = 4; + if (has_map_value_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::map_value_type(this), output); + } + + // .flyteidl.core.BlobType blob = 5; + if (has_blob()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::blob(this), output); + } + + // .google.protobuf.Struct metadata = 6; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::metadata(this), output); + } + + // .flyteidl.core.EnumType enum_type = 7; + if (has_enum_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::enum_type(this), output); + } + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + if (has_structured_dataset_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::structured_dataset_type(this), output); + } + + // .flyteidl.core.TypeAnnotation annotation = 9; + if (this->has_annotation()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::annotation(this), output); + } + + // .flyteidl.core.UnionType union_type = 10; + if (has_union_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::union_type(this), output); + } + + // .flyteidl.core.TypeStructure structure = 11; + if (this->has_structure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, HasBitSetters::structure(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralType) +} + +::google::protobuf::uint8* LiteralType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SimpleType simple = 1; + if (has_simple()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->simple(), target); + } + + // .flyteidl.core.SchemaType schema = 2; + if (has_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::schema(this), target); + } + + // .flyteidl.core.LiteralType collection_type = 3; + if (has_collection_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::collection_type(this), target); + } + + // .flyteidl.core.LiteralType map_value_type = 4; + if (has_map_value_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::map_value_type(this), target); + } + + // .flyteidl.core.BlobType blob = 5; + if (has_blob()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::blob(this), target); + } + + // .google.protobuf.Struct metadata = 6; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::metadata(this), target); + } + + // .flyteidl.core.EnumType enum_type = 7; + if (has_enum_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::enum_type(this), target); + } + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + if (has_structured_dataset_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::structured_dataset_type(this), target); + } + + // .flyteidl.core.TypeAnnotation annotation = 9; + if (this->has_annotation()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::annotation(this), target); + } + + // .flyteidl.core.UnionType union_type = 10; + if (has_union_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::union_type(this), target); + } + + // .flyteidl.core.TypeStructure structure = 11; + if (this->has_structure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, HasBitSetters::structure(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.LiteralType) + return target; +} + +size_t LiteralType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Struct metadata = 6; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flyteidl.core.TypeAnnotation annotation = 9; + if (this->has_annotation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *annotation_); + } + + // .flyteidl.core.TypeStructure structure = 11; + if (this->has_structure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *structure_); + } + + switch (type_case()) { + // .flyteidl.core.SimpleType simple = 1; + case kSimple: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->simple()); + break; + } + // .flyteidl.core.SchemaType schema = 2; + case kSchema: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.schema_); + break; + } + // .flyteidl.core.LiteralType collection_type = 3; + case kCollectionType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.collection_type_); + break; + } + // .flyteidl.core.LiteralType map_value_type = 4; + case kMapValueType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.map_value_type_); + break; + } + // .flyteidl.core.BlobType blob = 5; + case kBlob: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.blob_); + break; + } + // .flyteidl.core.EnumType enum_type = 7; + case kEnumType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.enum_type_); + break; + } + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + case kStructuredDatasetType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.structured_dataset_type_); + break; + } + // .flyteidl.core.UnionType union_type = 10; + case kUnionType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.union_type_); + break; + } + case TYPE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void LiteralType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralType) + GOOGLE_DCHECK_NE(&from, this); + const LiteralType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralType) + MergeFrom(*source); + } +} + +void LiteralType::MergeFrom(const LiteralType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_metadata()) { + mutable_metadata()->::google::protobuf::Struct::MergeFrom(from.metadata()); + } + if (from.has_annotation()) { + mutable_annotation()->::flyteidl::core::TypeAnnotation::MergeFrom(from.annotation()); + } + if (from.has_structure()) { + mutable_structure()->::flyteidl::core::TypeStructure::MergeFrom(from.structure()); + } + switch (from.type_case()) { + case kSimple: { + set_simple(from.simple()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::SchemaType::MergeFrom(from.schema()); + break; + } + case kCollectionType: { + mutable_collection_type()->::flyteidl::core::LiteralType::MergeFrom(from.collection_type()); + break; + } + case kMapValueType: { + mutable_map_value_type()->::flyteidl::core::LiteralType::MergeFrom(from.map_value_type()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::BlobType::MergeFrom(from.blob()); + break; + } + case kEnumType: { + mutable_enum_type()->::flyteidl::core::EnumType::MergeFrom(from.enum_type()); + break; + } + case kStructuredDatasetType: { + mutable_structured_dataset_type()->::flyteidl::core::StructuredDatasetType::MergeFrom(from.structured_dataset_type()); + break; + } + case kUnionType: { + mutable_union_type()->::flyteidl::core::UnionType::MergeFrom(from.union_type()); + break; + } + case TYPE_NOT_SET: { + break; + } + } +} + +void LiteralType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralType::CopyFrom(const LiteralType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralType::IsInitialized() const { + return true; +} + +void LiteralType::Swap(LiteralType* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralType::InternalSwap(LiteralType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(metadata_, other->metadata_); + swap(annotation_, other->annotation_); + swap(structure_, other->structure_); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata LiteralType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void OutputReference::InitAsDefaultInstance() { +} +class OutputReference::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OutputReference::kNodeIdFieldNumber; +const int OutputReference::kVarFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OutputReference::OutputReference() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.OutputReference) +} +OutputReference::OutputReference(const OutputReference& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node_id().size() > 0) { + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.var().size() > 0) { + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.OutputReference) +} + +void OutputReference::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OutputReference::~OutputReference() { + // @@protoc_insertion_point(destructor:flyteidl.core.OutputReference) + SharedDtor(); +} + +void OutputReference::SharedDtor() { + node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OutputReference::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const OutputReference& OutputReference::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void OutputReference::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.OutputReference) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* OutputReference::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string node_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.OutputReference.node_id"); + object = msg->mutable_node_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string var = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.OutputReference.var"); + object = msg->mutable_var(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool OutputReference::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.OutputReference) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string node_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OutputReference.node_id")); + } else { + goto handle_unusual; + } + break; + } + + // string var = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OutputReference.var")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.OutputReference) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.OutputReference) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void OutputReference::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.OutputReference) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->node_id(), output); + } + + // string var = 2; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->var(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.OutputReference) +} + +::google::protobuf::uint8* OutputReference::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.OutputReference) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->node_id(), target); + } + + // string var = 2; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->var(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.OutputReference) + return target; +} + +size_t OutputReference::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.OutputReference) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->node_id()); + } + + // string var = 2; + if (this->var().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OutputReference::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.OutputReference) + GOOGLE_DCHECK_NE(&from, this); + const OutputReference* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.OutputReference) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.OutputReference) + MergeFrom(*source); + } +} + +void OutputReference::MergeFrom(const OutputReference& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.OutputReference) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.node_id().size() > 0) { + + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + if (from.var().size() > 0) { + + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } +} + +void OutputReference::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.OutputReference) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OutputReference::CopyFrom(const OutputReference& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.OutputReference) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OutputReference::IsInitialized() const { + return true; +} + +void OutputReference::Swap(OutputReference* other) { + if (other == this) return; + InternalSwap(other); +} +void OutputReference::InternalSwap(OutputReference* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + var_.Swap(&other->var_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata OutputReference::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Error::InitAsDefaultInstance() { +} +class Error::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Error::kFailedNodeIdFieldNumber; +const int Error::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Error::Error() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Error) +} +Error::Error(const Error& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + failed_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.failed_node_id().size() > 0) { + failed_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.failed_node_id_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Error) +} + +void Error::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base); + failed_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Error::~Error() { + // @@protoc_insertion_point(destructor:flyteidl.core.Error) + SharedDtor(); +} + +void Error::SharedDtor() { + failed_node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Error::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Error& Error::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base); + return *internal_default_instance(); +} + + +void Error::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Error) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + failed_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Error::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string failed_node_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Error.failed_node_id"); + object = msg->mutable_failed_node_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string message = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Error.message"); + object = msg->mutable_message(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Error::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Error) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string failed_node_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_failed_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->failed_node_id().data(), static_cast(this->failed_node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Error.failed_node_id")); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Error.message")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Error) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Error) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Error::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Error) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string failed_node_id = 1; + if (this->failed_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->failed_node_id().data(), static_cast(this->failed_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.failed_node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->failed_node_id(), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Error) +} + +::google::protobuf::uint8* Error::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Error) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string failed_node_id = 1; + if (this->failed_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->failed_node_id().data(), static_cast(this->failed_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.failed_node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->failed_node_id(), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Error) + return target; +} + +size_t Error::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Error) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string failed_node_id = 1; + if (this->failed_node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->failed_node_id()); + } + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Error::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Error) + GOOGLE_DCHECK_NE(&from, this); + const Error* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Error) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Error) + MergeFrom(*source); + } +} + +void Error::MergeFrom(const Error& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Error) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.failed_node_id().size() > 0) { + + failed_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.failed_node_id_); + } + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } +} + +void Error::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Error) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Error::CopyFrom(const Error& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Error) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Error::IsInitialized() const { + return true; +} + +void Error::Swap(Error* other) { + if (other == this) return; + InternalSwap(other); +} +void Error::InternalSwap(Error* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + failed_node_id_.Swap(&other->failed_node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Error::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::SchemaType_SchemaColumn* Arena::CreateMaybeMessage< ::flyteidl::core::SchemaType_SchemaColumn >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::SchemaType_SchemaColumn >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::SchemaType* Arena::CreateMaybeMessage< ::flyteidl::core::SchemaType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::SchemaType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDatasetType_DatasetColumn* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDatasetType_DatasetColumn >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::StructuredDatasetType_DatasetColumn >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDatasetType* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDatasetType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::StructuredDatasetType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BlobType* Arena::CreateMaybeMessage< ::flyteidl::core::BlobType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BlobType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::EnumType* Arena::CreateMaybeMessage< ::flyteidl::core::EnumType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::EnumType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::UnionType* Arena::CreateMaybeMessage< ::flyteidl::core::UnionType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::UnionType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TypeStructure* Arena::CreateMaybeMessage< ::flyteidl::core::TypeStructure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TypeStructure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TypeAnnotation* Arena::CreateMaybeMessage< ::flyteidl::core::TypeAnnotation >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TypeAnnotation >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralType* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::LiteralType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::OutputReference* Arena::CreateMaybeMessage< ::flyteidl::core::OutputReference >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::OutputReference >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Error* Arena::CreateMaybeMessage< ::flyteidl::core::Error >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Error >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h new file mode 100644 index 0000000000..83eedacc89 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h @@ -0,0 +1,3363 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2ftypes_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2ftypes_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2ftypes_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[12] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2ftypes_2eproto(); +namespace flyteidl { +namespace core { +class BlobType; +class BlobTypeDefaultTypeInternal; +extern BlobTypeDefaultTypeInternal _BlobType_default_instance_; +class EnumType; +class EnumTypeDefaultTypeInternal; +extern EnumTypeDefaultTypeInternal _EnumType_default_instance_; +class Error; +class ErrorDefaultTypeInternal; +extern ErrorDefaultTypeInternal _Error_default_instance_; +class LiteralType; +class LiteralTypeDefaultTypeInternal; +extern LiteralTypeDefaultTypeInternal _LiteralType_default_instance_; +class OutputReference; +class OutputReferenceDefaultTypeInternal; +extern OutputReferenceDefaultTypeInternal _OutputReference_default_instance_; +class SchemaType; +class SchemaTypeDefaultTypeInternal; +extern SchemaTypeDefaultTypeInternal _SchemaType_default_instance_; +class SchemaType_SchemaColumn; +class SchemaType_SchemaColumnDefaultTypeInternal; +extern SchemaType_SchemaColumnDefaultTypeInternal _SchemaType_SchemaColumn_default_instance_; +class StructuredDatasetType; +class StructuredDatasetTypeDefaultTypeInternal; +extern StructuredDatasetTypeDefaultTypeInternal _StructuredDatasetType_default_instance_; +class StructuredDatasetType_DatasetColumn; +class StructuredDatasetType_DatasetColumnDefaultTypeInternal; +extern StructuredDatasetType_DatasetColumnDefaultTypeInternal _StructuredDatasetType_DatasetColumn_default_instance_; +class TypeAnnotation; +class TypeAnnotationDefaultTypeInternal; +extern TypeAnnotationDefaultTypeInternal _TypeAnnotation_default_instance_; +class TypeStructure; +class TypeStructureDefaultTypeInternal; +extern TypeStructureDefaultTypeInternal _TypeStructure_default_instance_; +class UnionType; +class UnionTypeDefaultTypeInternal; +extern UnionTypeDefaultTypeInternal _UnionType_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::BlobType* Arena::CreateMaybeMessage<::flyteidl::core::BlobType>(Arena*); +template<> ::flyteidl::core::EnumType* Arena::CreateMaybeMessage<::flyteidl::core::EnumType>(Arena*); +template<> ::flyteidl::core::Error* Arena::CreateMaybeMessage<::flyteidl::core::Error>(Arena*); +template<> ::flyteidl::core::LiteralType* Arena::CreateMaybeMessage<::flyteidl::core::LiteralType>(Arena*); +template<> ::flyteidl::core::OutputReference* Arena::CreateMaybeMessage<::flyteidl::core::OutputReference>(Arena*); +template<> ::flyteidl::core::SchemaType* Arena::CreateMaybeMessage<::flyteidl::core::SchemaType>(Arena*); +template<> ::flyteidl::core::SchemaType_SchemaColumn* Arena::CreateMaybeMessage<::flyteidl::core::SchemaType_SchemaColumn>(Arena*); +template<> ::flyteidl::core::StructuredDatasetType* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDatasetType>(Arena*); +template<> ::flyteidl::core::StructuredDatasetType_DatasetColumn* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDatasetType_DatasetColumn>(Arena*); +template<> ::flyteidl::core::TypeAnnotation* Arena::CreateMaybeMessage<::flyteidl::core::TypeAnnotation>(Arena*); +template<> ::flyteidl::core::TypeStructure* Arena::CreateMaybeMessage<::flyteidl::core::TypeStructure>(Arena*); +template<> ::flyteidl::core::UnionType* Arena::CreateMaybeMessage<::flyteidl::core::UnionType>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum SchemaType_SchemaColumn_SchemaColumnType { + SchemaType_SchemaColumn_SchemaColumnType_INTEGER = 0, + SchemaType_SchemaColumn_SchemaColumnType_FLOAT = 1, + SchemaType_SchemaColumn_SchemaColumnType_STRING = 2, + SchemaType_SchemaColumn_SchemaColumnType_BOOLEAN = 3, + SchemaType_SchemaColumn_SchemaColumnType_DATETIME = 4, + SchemaType_SchemaColumn_SchemaColumnType_DURATION = 5, + SchemaType_SchemaColumn_SchemaColumnType_SchemaType_SchemaColumn_SchemaColumnType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + SchemaType_SchemaColumn_SchemaColumnType_SchemaType_SchemaColumn_SchemaColumnType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool SchemaType_SchemaColumn_SchemaColumnType_IsValid(int value); +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MIN = SchemaType_SchemaColumn_SchemaColumnType_INTEGER; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX = SchemaType_SchemaColumn_SchemaColumnType_DURATION; +const int SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_ARRAYSIZE = SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SchemaType_SchemaColumn_SchemaColumnType_descriptor(); +inline const ::std::string& SchemaType_SchemaColumn_SchemaColumnType_Name(SchemaType_SchemaColumn_SchemaColumnType value) { + return ::google::protobuf::internal::NameOfEnum( + SchemaType_SchemaColumn_SchemaColumnType_descriptor(), value); +} +inline bool SchemaType_SchemaColumn_SchemaColumnType_Parse( + const ::std::string& name, SchemaType_SchemaColumn_SchemaColumnType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SchemaType_SchemaColumn_SchemaColumnType_descriptor(), name, value); +} +enum BlobType_BlobDimensionality { + BlobType_BlobDimensionality_SINGLE = 0, + BlobType_BlobDimensionality_MULTIPART = 1, + BlobType_BlobDimensionality_BlobType_BlobDimensionality_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + BlobType_BlobDimensionality_BlobType_BlobDimensionality_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool BlobType_BlobDimensionality_IsValid(int value); +const BlobType_BlobDimensionality BlobType_BlobDimensionality_BlobDimensionality_MIN = BlobType_BlobDimensionality_SINGLE; +const BlobType_BlobDimensionality BlobType_BlobDimensionality_BlobDimensionality_MAX = BlobType_BlobDimensionality_MULTIPART; +const int BlobType_BlobDimensionality_BlobDimensionality_ARRAYSIZE = BlobType_BlobDimensionality_BlobDimensionality_MAX + 1; + +const ::google::protobuf::EnumDescriptor* BlobType_BlobDimensionality_descriptor(); +inline const ::std::string& BlobType_BlobDimensionality_Name(BlobType_BlobDimensionality value) { + return ::google::protobuf::internal::NameOfEnum( + BlobType_BlobDimensionality_descriptor(), value); +} +inline bool BlobType_BlobDimensionality_Parse( + const ::std::string& name, BlobType_BlobDimensionality* value) { + return ::google::protobuf::internal::ParseNamedEnum( + BlobType_BlobDimensionality_descriptor(), name, value); +} +enum SimpleType { + NONE = 0, + INTEGER = 1, + FLOAT = 2, + STRING = 3, + BOOLEAN = 4, + DATETIME = 5, + DURATION = 6, + BINARY = 7, + ERROR = 8, + STRUCT = 9, + SimpleType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + SimpleType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool SimpleType_IsValid(int value); +const SimpleType SimpleType_MIN = NONE; +const SimpleType SimpleType_MAX = STRUCT; +const int SimpleType_ARRAYSIZE = SimpleType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SimpleType_descriptor(); +inline const ::std::string& SimpleType_Name(SimpleType value) { + return ::google::protobuf::internal::NameOfEnum( + SimpleType_descriptor(), value); +} +inline bool SimpleType_Parse( + const ::std::string& name, SimpleType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SimpleType_descriptor(), name, value); +} +// =================================================================== + +class SchemaType_SchemaColumn final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SchemaType.SchemaColumn) */ { + public: + SchemaType_SchemaColumn(); + virtual ~SchemaType_SchemaColumn(); + + SchemaType_SchemaColumn(const SchemaType_SchemaColumn& from); + + inline SchemaType_SchemaColumn& operator=(const SchemaType_SchemaColumn& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SchemaType_SchemaColumn(SchemaType_SchemaColumn&& from) noexcept + : SchemaType_SchemaColumn() { + *this = ::std::move(from); + } + + inline SchemaType_SchemaColumn& operator=(SchemaType_SchemaColumn&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SchemaType_SchemaColumn& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SchemaType_SchemaColumn* internal_default_instance() { + return reinterpret_cast( + &_SchemaType_SchemaColumn_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(SchemaType_SchemaColumn* other); + friend void swap(SchemaType_SchemaColumn& a, SchemaType_SchemaColumn& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SchemaType_SchemaColumn* New() const final { + return CreateMaybeMessage(nullptr); + } + + SchemaType_SchemaColumn* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SchemaType_SchemaColumn& from); + void MergeFrom(const SchemaType_SchemaColumn& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SchemaType_SchemaColumn* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef SchemaType_SchemaColumn_SchemaColumnType SchemaColumnType; + static const SchemaColumnType INTEGER = + SchemaType_SchemaColumn_SchemaColumnType_INTEGER; + static const SchemaColumnType FLOAT = + SchemaType_SchemaColumn_SchemaColumnType_FLOAT; + static const SchemaColumnType STRING = + SchemaType_SchemaColumn_SchemaColumnType_STRING; + static const SchemaColumnType BOOLEAN = + SchemaType_SchemaColumn_SchemaColumnType_BOOLEAN; + static const SchemaColumnType DATETIME = + SchemaType_SchemaColumn_SchemaColumnType_DATETIME; + static const SchemaColumnType DURATION = + SchemaType_SchemaColumn_SchemaColumnType_DURATION; + static inline bool SchemaColumnType_IsValid(int value) { + return SchemaType_SchemaColumn_SchemaColumnType_IsValid(value); + } + static const SchemaColumnType SchemaColumnType_MIN = + SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MIN; + static const SchemaColumnType SchemaColumnType_MAX = + SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX; + static const int SchemaColumnType_ARRAYSIZE = + SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SchemaColumnType_descriptor() { + return SchemaType_SchemaColumn_SchemaColumnType_descriptor(); + } + static inline const ::std::string& SchemaColumnType_Name(SchemaColumnType value) { + return SchemaType_SchemaColumn_SchemaColumnType_Name(value); + } + static inline bool SchemaColumnType_Parse(const ::std::string& name, + SchemaColumnType* value) { + return SchemaType_SchemaColumn_SchemaColumnType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + void clear_type(); + static const int kTypeFieldNumber = 2; + ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType type() const; + void set_type(::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + int type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class SchemaType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SchemaType) */ { + public: + SchemaType(); + virtual ~SchemaType(); + + SchemaType(const SchemaType& from); + + inline SchemaType& operator=(const SchemaType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SchemaType(SchemaType&& from) noexcept + : SchemaType() { + *this = ::std::move(from); + } + + inline SchemaType& operator=(SchemaType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SchemaType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SchemaType* internal_default_instance() { + return reinterpret_cast( + &_SchemaType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(SchemaType* other); + friend void swap(SchemaType& a, SchemaType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SchemaType* New() const final { + return CreateMaybeMessage(nullptr); + } + + SchemaType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SchemaType& from); + void MergeFrom(const SchemaType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SchemaType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef SchemaType_SchemaColumn SchemaColumn; + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + int columns_size() const; + void clear_columns(); + static const int kColumnsFieldNumber = 3; + ::flyteidl::core::SchemaType_SchemaColumn* mutable_columns(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >* + mutable_columns(); + const ::flyteidl::core::SchemaType_SchemaColumn& columns(int index) const; + ::flyteidl::core::SchemaType_SchemaColumn* add_columns(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >& + columns() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn > columns_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class StructuredDatasetType_DatasetColumn final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDatasetType.DatasetColumn) */ { + public: + StructuredDatasetType_DatasetColumn(); + virtual ~StructuredDatasetType_DatasetColumn(); + + StructuredDatasetType_DatasetColumn(const StructuredDatasetType_DatasetColumn& from); + + inline StructuredDatasetType_DatasetColumn& operator=(const StructuredDatasetType_DatasetColumn& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StructuredDatasetType_DatasetColumn(StructuredDatasetType_DatasetColumn&& from) noexcept + : StructuredDatasetType_DatasetColumn() { + *this = ::std::move(from); + } + + inline StructuredDatasetType_DatasetColumn& operator=(StructuredDatasetType_DatasetColumn&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StructuredDatasetType_DatasetColumn& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StructuredDatasetType_DatasetColumn* internal_default_instance() { + return reinterpret_cast( + &_StructuredDatasetType_DatasetColumn_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(StructuredDatasetType_DatasetColumn* other); + friend void swap(StructuredDatasetType_DatasetColumn& a, StructuredDatasetType_DatasetColumn& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StructuredDatasetType_DatasetColumn* New() const final { + return CreateMaybeMessage(nullptr); + } + + StructuredDatasetType_DatasetColumn* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StructuredDatasetType_DatasetColumn& from); + void MergeFrom(const StructuredDatasetType_DatasetColumn& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StructuredDatasetType_DatasetColumn* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.core.LiteralType literal_type = 2; + bool has_literal_type() const; + void clear_literal_type(); + static const int kLiteralTypeFieldNumber = 2; + const ::flyteidl::core::LiteralType& literal_type() const; + ::flyteidl::core::LiteralType* release_literal_type(); + ::flyteidl::core::LiteralType* mutable_literal_type(); + void set_allocated_literal_type(::flyteidl::core::LiteralType* literal_type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType.DatasetColumn) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::core::LiteralType* literal_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class StructuredDatasetType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDatasetType) */ { + public: + StructuredDatasetType(); + virtual ~StructuredDatasetType(); + + StructuredDatasetType(const StructuredDatasetType& from); + + inline StructuredDatasetType& operator=(const StructuredDatasetType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + StructuredDatasetType(StructuredDatasetType&& from) noexcept + : StructuredDatasetType() { + *this = ::std::move(from); + } + + inline StructuredDatasetType& operator=(StructuredDatasetType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const StructuredDatasetType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const StructuredDatasetType* internal_default_instance() { + return reinterpret_cast( + &_StructuredDatasetType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(StructuredDatasetType* other); + friend void swap(StructuredDatasetType& a, StructuredDatasetType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline StructuredDatasetType* New() const final { + return CreateMaybeMessage(nullptr); + } + + StructuredDatasetType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const StructuredDatasetType& from); + void MergeFrom(const StructuredDatasetType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StructuredDatasetType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef StructuredDatasetType_DatasetColumn DatasetColumn; + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + int columns_size() const; + void clear_columns(); + static const int kColumnsFieldNumber = 1; + ::flyteidl::core::StructuredDatasetType_DatasetColumn* mutable_columns(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >* + mutable_columns(); + const ::flyteidl::core::StructuredDatasetType_DatasetColumn& columns(int index) const; + ::flyteidl::core::StructuredDatasetType_DatasetColumn* add_columns(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >& + columns() const; + + // string format = 2; + void clear_format(); + static const int kFormatFieldNumber = 2; + const ::std::string& format() const; + void set_format(const ::std::string& value); + #if LANG_CXX11 + void set_format(::std::string&& value); + #endif + void set_format(const char* value); + void set_format(const char* value, size_t size); + ::std::string* mutable_format(); + ::std::string* release_format(); + void set_allocated_format(::std::string* format); + + // string external_schema_type = 3; + void clear_external_schema_type(); + static const int kExternalSchemaTypeFieldNumber = 3; + const ::std::string& external_schema_type() const; + void set_external_schema_type(const ::std::string& value); + #if LANG_CXX11 + void set_external_schema_type(::std::string&& value); + #endif + void set_external_schema_type(const char* value); + void set_external_schema_type(const char* value, size_t size); + ::std::string* mutable_external_schema_type(); + ::std::string* release_external_schema_type(); + void set_allocated_external_schema_type(::std::string* external_schema_type); + + // bytes external_schema_bytes = 4; + void clear_external_schema_bytes(); + static const int kExternalSchemaBytesFieldNumber = 4; + const ::std::string& external_schema_bytes() const; + void set_external_schema_bytes(const ::std::string& value); + #if LANG_CXX11 + void set_external_schema_bytes(::std::string&& value); + #endif + void set_external_schema_bytes(const char* value); + void set_external_schema_bytes(const void* value, size_t size); + ::std::string* mutable_external_schema_bytes(); + ::std::string* release_external_schema_bytes(); + void set_allocated_external_schema_bytes(::std::string* external_schema_bytes); + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn > columns_; + ::google::protobuf::internal::ArenaStringPtr format_; + ::google::protobuf::internal::ArenaStringPtr external_schema_type_; + ::google::protobuf::internal::ArenaStringPtr external_schema_bytes_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class BlobType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BlobType) */ { + public: + BlobType(); + virtual ~BlobType(); + + BlobType(const BlobType& from); + + inline BlobType& operator=(const BlobType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BlobType(BlobType&& from) noexcept + : BlobType() { + *this = ::std::move(from); + } + + inline BlobType& operator=(BlobType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const BlobType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BlobType* internal_default_instance() { + return reinterpret_cast( + &_BlobType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(BlobType* other); + friend void swap(BlobType& a, BlobType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BlobType* New() const final { + return CreateMaybeMessage(nullptr); + } + + BlobType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BlobType& from); + void MergeFrom(const BlobType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BlobType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef BlobType_BlobDimensionality BlobDimensionality; + static const BlobDimensionality SINGLE = + BlobType_BlobDimensionality_SINGLE; + static const BlobDimensionality MULTIPART = + BlobType_BlobDimensionality_MULTIPART; + static inline bool BlobDimensionality_IsValid(int value) { + return BlobType_BlobDimensionality_IsValid(value); + } + static const BlobDimensionality BlobDimensionality_MIN = + BlobType_BlobDimensionality_BlobDimensionality_MIN; + static const BlobDimensionality BlobDimensionality_MAX = + BlobType_BlobDimensionality_BlobDimensionality_MAX; + static const int BlobDimensionality_ARRAYSIZE = + BlobType_BlobDimensionality_BlobDimensionality_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + BlobDimensionality_descriptor() { + return BlobType_BlobDimensionality_descriptor(); + } + static inline const ::std::string& BlobDimensionality_Name(BlobDimensionality value) { + return BlobType_BlobDimensionality_Name(value); + } + static inline bool BlobDimensionality_Parse(const ::std::string& name, + BlobDimensionality* value) { + return BlobType_BlobDimensionality_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string format = 1; + void clear_format(); + static const int kFormatFieldNumber = 1; + const ::std::string& format() const; + void set_format(const ::std::string& value); + #if LANG_CXX11 + void set_format(::std::string&& value); + #endif + void set_format(const char* value); + void set_format(const char* value, size_t size); + ::std::string* mutable_format(); + ::std::string* release_format(); + void set_allocated_format(::std::string* format); + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + void clear_dimensionality(); + static const int kDimensionalityFieldNumber = 2; + ::flyteidl::core::BlobType_BlobDimensionality dimensionality() const; + void set_dimensionality(::flyteidl::core::BlobType_BlobDimensionality value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr format_; + int dimensionality_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class EnumType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.EnumType) */ { + public: + EnumType(); + virtual ~EnumType(); + + EnumType(const EnumType& from); + + inline EnumType& operator=(const EnumType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EnumType(EnumType&& from) noexcept + : EnumType() { + *this = ::std::move(from); + } + + inline EnumType& operator=(EnumType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const EnumType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EnumType* internal_default_instance() { + return reinterpret_cast( + &_EnumType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(EnumType* other); + friend void swap(EnumType& a, EnumType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EnumType* New() const final { + return CreateMaybeMessage(nullptr); + } + + EnumType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const EnumType& from); + void MergeFrom(const EnumType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EnumType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::std::string& values(int index) const; + ::std::string* mutable_values(int index); + void set_values(int index, const ::std::string& value); + #if LANG_CXX11 + void set_values(int index, ::std::string&& value); + #endif + void set_values(int index, const char* value); + void set_values(int index, const char* value, size_t size); + ::std::string* add_values(); + void add_values(const ::std::string& value); + #if LANG_CXX11 + void add_values(::std::string&& value); + #endif + void add_values(const char* value); + void add_values(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.EnumType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class UnionType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.UnionType) */ { + public: + UnionType(); + virtual ~UnionType(); + + UnionType(const UnionType& from); + + inline UnionType& operator=(const UnionType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UnionType(UnionType&& from) noexcept + : UnionType() { + *this = ::std::move(from); + } + + inline UnionType& operator=(UnionType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const UnionType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UnionType* internal_default_instance() { + return reinterpret_cast( + &_UnionType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(UnionType* other); + friend void swap(UnionType& a, UnionType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UnionType* New() const final { + return CreateMaybeMessage(nullptr); + } + + UnionType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const UnionType& from); + void MergeFrom(const UnionType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UnionType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.LiteralType variants = 1; + int variants_size() const; + void clear_variants(); + static const int kVariantsFieldNumber = 1; + ::flyteidl::core::LiteralType* mutable_variants(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >* + mutable_variants(); + const ::flyteidl::core::LiteralType& variants(int index) const; + ::flyteidl::core::LiteralType* add_variants(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >& + variants() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.UnionType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType > variants_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class TypeStructure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TypeStructure) */ { + public: + TypeStructure(); + virtual ~TypeStructure(); + + TypeStructure(const TypeStructure& from); + + inline TypeStructure& operator=(const TypeStructure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TypeStructure(TypeStructure&& from) noexcept + : TypeStructure() { + *this = ::std::move(from); + } + + inline TypeStructure& operator=(TypeStructure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TypeStructure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TypeStructure* internal_default_instance() { + return reinterpret_cast( + &_TypeStructure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(TypeStructure* other); + friend void swap(TypeStructure& a, TypeStructure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TypeStructure* New() const final { + return CreateMaybeMessage(nullptr); + } + + TypeStructure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TypeStructure& from); + void MergeFrom(const TypeStructure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TypeStructure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string tag = 1; + void clear_tag(); + static const int kTagFieldNumber = 1; + const ::std::string& tag() const; + void set_tag(const ::std::string& value); + #if LANG_CXX11 + void set_tag(::std::string&& value); + #endif + void set_tag(const char* value); + void set_tag(const char* value, size_t size); + ::std::string* mutable_tag(); + ::std::string* release_tag(); + void set_allocated_tag(::std::string* tag); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypeStructure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr tag_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class TypeAnnotation final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TypeAnnotation) */ { + public: + TypeAnnotation(); + virtual ~TypeAnnotation(); + + TypeAnnotation(const TypeAnnotation& from); + + inline TypeAnnotation& operator=(const TypeAnnotation& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TypeAnnotation(TypeAnnotation&& from) noexcept + : TypeAnnotation() { + *this = ::std::move(from); + } + + inline TypeAnnotation& operator=(TypeAnnotation&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TypeAnnotation& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TypeAnnotation* internal_default_instance() { + return reinterpret_cast( + &_TypeAnnotation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(TypeAnnotation* other); + friend void swap(TypeAnnotation& a, TypeAnnotation& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TypeAnnotation* New() const final { + return CreateMaybeMessage(nullptr); + } + + TypeAnnotation* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TypeAnnotation& from); + void MergeFrom(const TypeAnnotation& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TypeAnnotation* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .google.protobuf.Struct annotations = 1; + bool has_annotations() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 1; + const ::google::protobuf::Struct& annotations() const; + ::google::protobuf::Struct* release_annotations(); + ::google::protobuf::Struct* mutable_annotations(); + void set_allocated_annotations(::google::protobuf::Struct* annotations); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypeAnnotation) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Struct* annotations_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class LiteralType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralType) */ { + public: + LiteralType(); + virtual ~LiteralType(); + + LiteralType(const LiteralType& from); + + inline LiteralType& operator=(const LiteralType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralType(LiteralType&& from) noexcept + : LiteralType() { + *this = ::std::move(from); + } + + inline LiteralType& operator=(LiteralType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const LiteralType& default_instance(); + + enum TypeCase { + kSimple = 1, + kSchema = 2, + kCollectionType = 3, + kMapValueType = 4, + kBlob = 5, + kEnumType = 7, + kStructuredDatasetType = 8, + kUnionType = 10, + TYPE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralType* internal_default_instance() { + return reinterpret_cast( + &_LiteralType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(LiteralType* other); + friend void swap(LiteralType& a, LiteralType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralType* New() const final { + return CreateMaybeMessage(nullptr); + } + + LiteralType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const LiteralType& from); + void MergeFrom(const LiteralType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiteralType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .google.protobuf.Struct metadata = 6; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 6; + const ::google::protobuf::Struct& metadata() const; + ::google::protobuf::Struct* release_metadata(); + ::google::protobuf::Struct* mutable_metadata(); + void set_allocated_metadata(::google::protobuf::Struct* metadata); + + // .flyteidl.core.TypeAnnotation annotation = 9; + bool has_annotation() const; + void clear_annotation(); + static const int kAnnotationFieldNumber = 9; + const ::flyteidl::core::TypeAnnotation& annotation() const; + ::flyteidl::core::TypeAnnotation* release_annotation(); + ::flyteidl::core::TypeAnnotation* mutable_annotation(); + void set_allocated_annotation(::flyteidl::core::TypeAnnotation* annotation); + + // .flyteidl.core.TypeStructure structure = 11; + bool has_structure() const; + void clear_structure(); + static const int kStructureFieldNumber = 11; + const ::flyteidl::core::TypeStructure& structure() const; + ::flyteidl::core::TypeStructure* release_structure(); + ::flyteidl::core::TypeStructure* mutable_structure(); + void set_allocated_structure(::flyteidl::core::TypeStructure* structure); + + // .flyteidl.core.SimpleType simple = 1; + private: + bool has_simple() const; + public: + void clear_simple(); + static const int kSimpleFieldNumber = 1; + ::flyteidl::core::SimpleType simple() const; + void set_simple(::flyteidl::core::SimpleType value); + + // .flyteidl.core.SchemaType schema = 2; + bool has_schema() const; + void clear_schema(); + static const int kSchemaFieldNumber = 2; + const ::flyteidl::core::SchemaType& schema() const; + ::flyteidl::core::SchemaType* release_schema(); + ::flyteidl::core::SchemaType* mutable_schema(); + void set_allocated_schema(::flyteidl::core::SchemaType* schema); + + // .flyteidl.core.LiteralType collection_type = 3; + bool has_collection_type() const; + void clear_collection_type(); + static const int kCollectionTypeFieldNumber = 3; + const ::flyteidl::core::LiteralType& collection_type() const; + ::flyteidl::core::LiteralType* release_collection_type(); + ::flyteidl::core::LiteralType* mutable_collection_type(); + void set_allocated_collection_type(::flyteidl::core::LiteralType* collection_type); + + // .flyteidl.core.LiteralType map_value_type = 4; + bool has_map_value_type() const; + void clear_map_value_type(); + static const int kMapValueTypeFieldNumber = 4; + const ::flyteidl::core::LiteralType& map_value_type() const; + ::flyteidl::core::LiteralType* release_map_value_type(); + ::flyteidl::core::LiteralType* mutable_map_value_type(); + void set_allocated_map_value_type(::flyteidl::core::LiteralType* map_value_type); + + // .flyteidl.core.BlobType blob = 5; + bool has_blob() const; + void clear_blob(); + static const int kBlobFieldNumber = 5; + const ::flyteidl::core::BlobType& blob() const; + ::flyteidl::core::BlobType* release_blob(); + ::flyteidl::core::BlobType* mutable_blob(); + void set_allocated_blob(::flyteidl::core::BlobType* blob); + + // .flyteidl.core.EnumType enum_type = 7; + bool has_enum_type() const; + void clear_enum_type(); + static const int kEnumTypeFieldNumber = 7; + const ::flyteidl::core::EnumType& enum_type() const; + ::flyteidl::core::EnumType* release_enum_type(); + ::flyteidl::core::EnumType* mutable_enum_type(); + void set_allocated_enum_type(::flyteidl::core::EnumType* enum_type); + + // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + bool has_structured_dataset_type() const; + void clear_structured_dataset_type(); + static const int kStructuredDatasetTypeFieldNumber = 8; + const ::flyteidl::core::StructuredDatasetType& structured_dataset_type() const; + ::flyteidl::core::StructuredDatasetType* release_structured_dataset_type(); + ::flyteidl::core::StructuredDatasetType* mutable_structured_dataset_type(); + void set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type); + + // .flyteidl.core.UnionType union_type = 10; + bool has_union_type() const; + void clear_union_type(); + static const int kUnionTypeFieldNumber = 10; + const ::flyteidl::core::UnionType& union_type() const; + ::flyteidl::core::UnionType* release_union_type(); + ::flyteidl::core::UnionType* mutable_union_type(); + void set_allocated_union_type(::flyteidl::core::UnionType* union_type); + + void clear_type(); + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) + private: + class HasBitSetters; + void set_has_simple(); + void set_has_schema(); + void set_has_collection_type(); + void set_has_map_value_type(); + void set_has_blob(); + void set_has_enum_type(); + void set_has_structured_dataset_type(); + void set_has_union_type(); + + inline bool has_type() const; + inline void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Struct* metadata_; + ::flyteidl::core::TypeAnnotation* annotation_; + ::flyteidl::core::TypeStructure* structure_; + union TypeUnion { + TypeUnion() {} + int simple_; + ::flyteidl::core::SchemaType* schema_; + ::flyteidl::core::LiteralType* collection_type_; + ::flyteidl::core::LiteralType* map_value_type_; + ::flyteidl::core::BlobType* blob_; + ::flyteidl::core::EnumType* enum_type_; + ::flyteidl::core::StructuredDatasetType* structured_dataset_type_; + ::flyteidl::core::UnionType* union_type_; + } type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class OutputReference final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.OutputReference) */ { + public: + OutputReference(); + virtual ~OutputReference(); + + OutputReference(const OutputReference& from); + + inline OutputReference& operator=(const OutputReference& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OutputReference(OutputReference&& from) noexcept + : OutputReference() { + *this = ::std::move(from); + } + + inline OutputReference& operator=(OutputReference&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const OutputReference& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OutputReference* internal_default_instance() { + return reinterpret_cast( + &_OutputReference_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(OutputReference* other); + friend void swap(OutputReference& a, OutputReference& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OutputReference* New() const final { + return CreateMaybeMessage(nullptr); + } + + OutputReference* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OutputReference& from); + void MergeFrom(const OutputReference& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OutputReference* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string node_id = 1; + void clear_node_id(); + static const int kNodeIdFieldNumber = 1; + const ::std::string& node_id() const; + void set_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_node_id(::std::string&& value); + #endif + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + ::std::string* mutable_node_id(); + ::std::string* release_node_id(); + void set_allocated_node_id(::std::string* node_id); + + // string var = 2; + void clear_var(); + static const int kVarFieldNumber = 2; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr node_id_; + ::google::protobuf::internal::ArenaStringPtr var_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// ------------------------------------------------------------------- + +class Error final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Error) */ { + public: + Error(); + virtual ~Error(); + + Error(const Error& from); + + inline Error& operator=(const Error& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Error(Error&& from) noexcept + : Error() { + *this = ::std::move(from); + } + + inline Error& operator=(Error&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Error& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Error* internal_default_instance() { + return reinterpret_cast( + &_Error_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(Error* other); + friend void swap(Error& a, Error& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Error* New() const final { + return CreateMaybeMessage(nullptr); + } + + Error* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Error& from); + void MergeFrom(const Error& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Error* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string failed_node_id = 1; + void clear_failed_node_id(); + static const int kFailedNodeIdFieldNumber = 1; + const ::std::string& failed_node_id() const; + void set_failed_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_failed_node_id(::std::string&& value); + #endif + void set_failed_node_id(const char* value); + void set_failed_node_id(const char* value, size_t size); + ::std::string* mutable_failed_node_id(); + ::std::string* release_failed_node_id(); + void set_allocated_failed_node_id(::std::string* failed_node_id); + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Error) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr failed_node_id_; + ::google::protobuf::internal::ArenaStringPtr message_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SchemaType_SchemaColumn + +// string name = 1; +inline void SchemaType_SchemaColumn::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SchemaType_SchemaColumn::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.SchemaColumn.name) + return name_.GetNoArena(); +} +inline void SchemaType_SchemaColumn::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.SchemaType.SchemaColumn.name) +} +#if LANG_CXX11 +inline void SchemaType_SchemaColumn::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SchemaType.SchemaColumn.name) +} +#endif +inline void SchemaType_SchemaColumn::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.SchemaType.SchemaColumn.name) +} +inline void SchemaType_SchemaColumn::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SchemaType.SchemaColumn.name) +} +inline ::std::string* SchemaType_SchemaColumn::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.SchemaType.SchemaColumn.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SchemaType_SchemaColumn::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.SchemaType.SchemaColumn.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SchemaType_SchemaColumn::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SchemaType.SchemaColumn.name) +} + +// .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; +inline void SchemaType_SchemaColumn::clear_type() { + type_ = 0; +} +inline ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.SchemaColumn.type) + return static_cast< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType >(type_); +} +inline void SchemaType_SchemaColumn::set_type(::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.SchemaType.SchemaColumn.type) +} + +// ------------------------------------------------------------------- + +// SchemaType + +// repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; +inline int SchemaType::columns_size() const { + return columns_.size(); +} +inline void SchemaType::clear_columns() { + columns_.Clear(); +} +inline ::flyteidl::core::SchemaType_SchemaColumn* SchemaType::mutable_columns(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.SchemaType.columns) + return columns_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >* +SchemaType::mutable_columns() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.SchemaType.columns) + return &columns_; +} +inline const ::flyteidl::core::SchemaType_SchemaColumn& SchemaType::columns(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.columns) + return columns_.Get(index); +} +inline ::flyteidl::core::SchemaType_SchemaColumn* SchemaType::add_columns() { + // @@protoc_insertion_point(field_add:flyteidl.core.SchemaType.columns) + return columns_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >& +SchemaType::columns() const { + // @@protoc_insertion_point(field_list:flyteidl.core.SchemaType.columns) + return columns_; +} + +// ------------------------------------------------------------------- + +// StructuredDatasetType_DatasetColumn + +// string name = 1; +inline void StructuredDatasetType_DatasetColumn::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StructuredDatasetType_DatasetColumn::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.DatasetColumn.name) + return name_.GetNoArena(); +} +inline void StructuredDatasetType_DatasetColumn::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.DatasetColumn.name) +} +#if LANG_CXX11 +inline void StructuredDatasetType_DatasetColumn::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.DatasetColumn.name) +} +#endif +inline void StructuredDatasetType_DatasetColumn::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.DatasetColumn.name) +} +inline void StructuredDatasetType_DatasetColumn::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.DatasetColumn.name) +} +inline ::std::string* StructuredDatasetType_DatasetColumn::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.DatasetColumn.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StructuredDatasetType_DatasetColumn::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.DatasetColumn.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StructuredDatasetType_DatasetColumn::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.DatasetColumn.name) +} + +// .flyteidl.core.LiteralType literal_type = 2; +inline bool StructuredDatasetType_DatasetColumn::has_literal_type() const { + return this != internal_default_instance() && literal_type_ != nullptr; +} +inline void StructuredDatasetType_DatasetColumn::clear_literal_type() { + if (GetArenaNoVirtual() == nullptr && literal_type_ != nullptr) { + delete literal_type_; + } + literal_type_ = nullptr; +} +inline const ::flyteidl::core::LiteralType& StructuredDatasetType_DatasetColumn::literal_type() const { + const ::flyteidl::core::LiteralType* p = literal_type_; + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* StructuredDatasetType_DatasetColumn::release_literal_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) + + ::flyteidl::core::LiteralType* temp = literal_type_; + literal_type_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* StructuredDatasetType_DatasetColumn::mutable_literal_type() { + + if (literal_type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + literal_type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) + return literal_type_; +} +inline void StructuredDatasetType_DatasetColumn::set_allocated_literal_type(::flyteidl::core::LiteralType* literal_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete literal_type_; + } + if (literal_type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + literal_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, literal_type, submessage_arena); + } + + } else { + + } + literal_type_ = literal_type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) +} + +// ------------------------------------------------------------------- + +// StructuredDatasetType + +// repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; +inline int StructuredDatasetType::columns_size() const { + return columns_.size(); +} +inline void StructuredDatasetType::clear_columns() { + columns_.Clear(); +} +inline ::flyteidl::core::StructuredDatasetType_DatasetColumn* StructuredDatasetType::mutable_columns(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.columns) + return columns_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >* +StructuredDatasetType::mutable_columns() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.StructuredDatasetType.columns) + return &columns_; +} +inline const ::flyteidl::core::StructuredDatasetType_DatasetColumn& StructuredDatasetType::columns(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.columns) + return columns_.Get(index); +} +inline ::flyteidl::core::StructuredDatasetType_DatasetColumn* StructuredDatasetType::add_columns() { + // @@protoc_insertion_point(field_add:flyteidl.core.StructuredDatasetType.columns) + return columns_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >& +StructuredDatasetType::columns() const { + // @@protoc_insertion_point(field_list:flyteidl.core.StructuredDatasetType.columns) + return columns_; +} + +// string format = 2; +inline void StructuredDatasetType::clear_format() { + format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StructuredDatasetType::format() const { + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.format) + return format_.GetNoArena(); +} +inline void StructuredDatasetType::set_format(const ::std::string& value) { + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.format) +} +#if LANG_CXX11 +inline void StructuredDatasetType::set_format(::std::string&& value) { + + format_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.format) +} +#endif +inline void StructuredDatasetType::set_format(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.format) +} +inline void StructuredDatasetType::set_format(const char* value, size_t size) { + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.format) +} +inline ::std::string* StructuredDatasetType::mutable_format() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.format) + return format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StructuredDatasetType::release_format() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.format) + + return format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StructuredDatasetType::set_allocated_format(::std::string* format) { + if (format != nullptr) { + + } else { + + } + format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), format); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.format) +} + +// string external_schema_type = 3; +inline void StructuredDatasetType::clear_external_schema_type() { + external_schema_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StructuredDatasetType::external_schema_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.external_schema_type) + return external_schema_type_.GetNoArena(); +} +inline void StructuredDatasetType::set_external_schema_type(const ::std::string& value) { + + external_schema_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.external_schema_type) +} +#if LANG_CXX11 +inline void StructuredDatasetType::set_external_schema_type(::std::string&& value) { + + external_schema_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.external_schema_type) +} +#endif +inline void StructuredDatasetType::set_external_schema_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + external_schema_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.external_schema_type) +} +inline void StructuredDatasetType::set_external_schema_type(const char* value, size_t size) { + + external_schema_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.external_schema_type) +} +inline ::std::string* StructuredDatasetType::mutable_external_schema_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.external_schema_type) + return external_schema_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StructuredDatasetType::release_external_schema_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.external_schema_type) + + return external_schema_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StructuredDatasetType::set_allocated_external_schema_type(::std::string* external_schema_type) { + if (external_schema_type != nullptr) { + + } else { + + } + external_schema_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), external_schema_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.external_schema_type) +} + +// bytes external_schema_bytes = 4; +inline void StructuredDatasetType::clear_external_schema_bytes() { + external_schema_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& StructuredDatasetType::external_schema_bytes() const { + // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.external_schema_bytes) + return external_schema_bytes_.GetNoArena(); +} +inline void StructuredDatasetType::set_external_schema_bytes(const ::std::string& value) { + + external_schema_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.external_schema_bytes) +} +#if LANG_CXX11 +inline void StructuredDatasetType::set_external_schema_bytes(::std::string&& value) { + + external_schema_bytes_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.external_schema_bytes) +} +#endif +inline void StructuredDatasetType::set_external_schema_bytes(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + external_schema_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.external_schema_bytes) +} +inline void StructuredDatasetType::set_external_schema_bytes(const void* value, size_t size) { + + external_schema_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.external_schema_bytes) +} +inline ::std::string* StructuredDatasetType::mutable_external_schema_bytes() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.external_schema_bytes) + return external_schema_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* StructuredDatasetType::release_external_schema_bytes() { + // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.external_schema_bytes) + + return external_schema_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void StructuredDatasetType::set_allocated_external_schema_bytes(::std::string* external_schema_bytes) { + if (external_schema_bytes != nullptr) { + + } else { + + } + external_schema_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), external_schema_bytes); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.external_schema_bytes) +} + +// ------------------------------------------------------------------- + +// BlobType + +// string format = 1; +inline void BlobType::clear_format() { + format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& BlobType::format() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BlobType.format) + return format_.GetNoArena(); +} +inline void BlobType::set_format(const ::std::string& value) { + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.BlobType.format) +} +#if LANG_CXX11 +inline void BlobType::set_format(::std::string&& value) { + + format_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.BlobType.format) +} +#endif +inline void BlobType::set_format(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.BlobType.format) +} +inline void BlobType::set_format(const char* value, size_t size) { + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.BlobType.format) +} +inline ::std::string* BlobType::mutable_format() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.BlobType.format) + return format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BlobType::release_format() { + // @@protoc_insertion_point(field_release:flyteidl.core.BlobType.format) + + return format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BlobType::set_allocated_format(::std::string* format) { + if (format != nullptr) { + + } else { + + } + format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), format); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BlobType.format) +} + +// .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; +inline void BlobType::clear_dimensionality() { + dimensionality_ = 0; +} +inline ::flyteidl::core::BlobType_BlobDimensionality BlobType::dimensionality() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BlobType.dimensionality) + return static_cast< ::flyteidl::core::BlobType_BlobDimensionality >(dimensionality_); +} +inline void BlobType::set_dimensionality(::flyteidl::core::BlobType_BlobDimensionality value) { + + dimensionality_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.BlobType.dimensionality) +} + +// ------------------------------------------------------------------- + +// EnumType + +// repeated string values = 1; +inline int EnumType::values_size() const { + return values_.size(); +} +inline void EnumType::clear_values() { + values_.Clear(); +} +inline const ::std::string& EnumType::values(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.EnumType.values) + return values_.Get(index); +} +inline ::std::string* EnumType::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.EnumType.values) + return values_.Mutable(index); +} +inline void EnumType::set_values(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.EnumType.values) + values_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void EnumType::set_values(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.EnumType.values) + values_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void EnumType::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.EnumType.values) +} +inline void EnumType::set_values(int index, const char* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.EnumType.values) +} +inline ::std::string* EnumType::add_values() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.EnumType.values) + return values_.Add(); +} +inline void EnumType::add_values(const ::std::string& value) { + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.EnumType.values) +} +#if LANG_CXX11 +inline void EnumType::add_values(::std::string&& value) { + values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.EnumType.values) +} +#endif +inline void EnumType::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.EnumType.values) +} +inline void EnumType::add_values(const char* value, size_t size) { + values_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.EnumType.values) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +EnumType::values() const { + // @@protoc_insertion_point(field_list:flyteidl.core.EnumType.values) + return values_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +EnumType::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.EnumType.values) + return &values_; +} + +// ------------------------------------------------------------------- + +// UnionType + +// repeated .flyteidl.core.LiteralType variants = 1; +inline int UnionType::variants_size() const { + return variants_.size(); +} +inline void UnionType::clear_variants() { + variants_.Clear(); +} +inline ::flyteidl::core::LiteralType* UnionType::mutable_variants(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.UnionType.variants) + return variants_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >* +UnionType::mutable_variants() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.UnionType.variants) + return &variants_; +} +inline const ::flyteidl::core::LiteralType& UnionType::variants(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.UnionType.variants) + return variants_.Get(index); +} +inline ::flyteidl::core::LiteralType* UnionType::add_variants() { + // @@protoc_insertion_point(field_add:flyteidl.core.UnionType.variants) + return variants_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >& +UnionType::variants() const { + // @@protoc_insertion_point(field_list:flyteidl.core.UnionType.variants) + return variants_; +} + +// ------------------------------------------------------------------- + +// TypeStructure + +// string tag = 1; +inline void TypeStructure::clear_tag() { + tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TypeStructure::tag() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TypeStructure.tag) + return tag_.GetNoArena(); +} +inline void TypeStructure::set_tag(const ::std::string& value) { + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TypeStructure.tag) +} +#if LANG_CXX11 +inline void TypeStructure::set_tag(::std::string&& value) { + + tag_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TypeStructure.tag) +} +#endif +inline void TypeStructure::set_tag(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TypeStructure.tag) +} +inline void TypeStructure::set_tag(const char* value, size_t size) { + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TypeStructure.tag) +} +inline ::std::string* TypeStructure::mutable_tag() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TypeStructure.tag) + return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TypeStructure::release_tag() { + // @@protoc_insertion_point(field_release:flyteidl.core.TypeStructure.tag) + + return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TypeStructure::set_allocated_tag(::std::string* tag) { + if (tag != nullptr) { + + } else { + + } + tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypeStructure.tag) +} + +// ------------------------------------------------------------------- + +// TypeAnnotation + +// .google.protobuf.Struct annotations = 1; +inline bool TypeAnnotation::has_annotations() const { + return this != internal_default_instance() && annotations_ != nullptr; +} +inline const ::google::protobuf::Struct& TypeAnnotation::annotations() const { + const ::google::protobuf::Struct* p = annotations_; + // @@protoc_insertion_point(field_get:flyteidl.core.TypeAnnotation.annotations) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* TypeAnnotation::release_annotations() { + // @@protoc_insertion_point(field_release:flyteidl.core.TypeAnnotation.annotations) + + ::google::protobuf::Struct* temp = annotations_; + annotations_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* TypeAnnotation::mutable_annotations() { + + if (annotations_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + annotations_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TypeAnnotation.annotations) + return annotations_; +} +inline void TypeAnnotation::set_allocated_annotations(::google::protobuf::Struct* annotations) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); + } + if (annotations) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(annotations)->GetArena(); + if (message_arena != submessage_arena) { + annotations = ::google::protobuf::internal::GetOwnedMessage( + message_arena, annotations, submessage_arena); + } + + } else { + + } + annotations_ = annotations; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypeAnnotation.annotations) +} + +// ------------------------------------------------------------------- + +// LiteralType + +// .flyteidl.core.SimpleType simple = 1; +inline bool LiteralType::has_simple() const { + return type_case() == kSimple; +} +inline void LiteralType::set_has_simple() { + _oneof_case_[0] = kSimple; +} +inline void LiteralType::clear_simple() { + if (has_simple()) { + type_.simple_ = 0; + clear_has_type(); + } +} +inline ::flyteidl::core::SimpleType LiteralType::simple() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.simple) + if (has_simple()) { + return static_cast< ::flyteidl::core::SimpleType >(type_.simple_); + } + return static_cast< ::flyteidl::core::SimpleType >(0); +} +inline void LiteralType::set_simple(::flyteidl::core::SimpleType value) { + if (!has_simple()) { + clear_type(); + set_has_simple(); + } + type_.simple_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.LiteralType.simple) +} + +// .flyteidl.core.SchemaType schema = 2; +inline bool LiteralType::has_schema() const { + return type_case() == kSchema; +} +inline void LiteralType::set_has_schema() { + _oneof_case_[0] = kSchema; +} +inline void LiteralType::clear_schema() { + if (has_schema()) { + delete type_.schema_; + clear_has_type(); + } +} +inline ::flyteidl::core::SchemaType* LiteralType::release_schema() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.schema) + if (has_schema()) { + clear_has_type(); + ::flyteidl::core::SchemaType* temp = type_.schema_; + type_.schema_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::SchemaType& LiteralType::schema() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.schema) + return has_schema() + ? *type_.schema_ + : *reinterpret_cast< ::flyteidl::core::SchemaType*>(&::flyteidl::core::_SchemaType_default_instance_); +} +inline ::flyteidl::core::SchemaType* LiteralType::mutable_schema() { + if (!has_schema()) { + clear_type(); + set_has_schema(); + type_.schema_ = CreateMaybeMessage< ::flyteidl::core::SchemaType >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.schema) + return type_.schema_; +} + +// .flyteidl.core.LiteralType collection_type = 3; +inline bool LiteralType::has_collection_type() const { + return type_case() == kCollectionType; +} +inline void LiteralType::set_has_collection_type() { + _oneof_case_[0] = kCollectionType; +} +inline void LiteralType::clear_collection_type() { + if (has_collection_type()) { + delete type_.collection_type_; + clear_has_type(); + } +} +inline ::flyteidl::core::LiteralType* LiteralType::release_collection_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.collection_type) + if (has_collection_type()) { + clear_has_type(); + ::flyteidl::core::LiteralType* temp = type_.collection_type_; + type_.collection_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralType& LiteralType::collection_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.collection_type) + return has_collection_type() + ? *type_.collection_type_ + : *reinterpret_cast< ::flyteidl::core::LiteralType*>(&::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* LiteralType::mutable_collection_type() { + if (!has_collection_type()) { + clear_type(); + set_has_collection_type(); + type_.collection_type_ = CreateMaybeMessage< ::flyteidl::core::LiteralType >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.collection_type) + return type_.collection_type_; +} + +// .flyteidl.core.LiteralType map_value_type = 4; +inline bool LiteralType::has_map_value_type() const { + return type_case() == kMapValueType; +} +inline void LiteralType::set_has_map_value_type() { + _oneof_case_[0] = kMapValueType; +} +inline void LiteralType::clear_map_value_type() { + if (has_map_value_type()) { + delete type_.map_value_type_; + clear_has_type(); + } +} +inline ::flyteidl::core::LiteralType* LiteralType::release_map_value_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.map_value_type) + if (has_map_value_type()) { + clear_has_type(); + ::flyteidl::core::LiteralType* temp = type_.map_value_type_; + type_.map_value_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralType& LiteralType::map_value_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.map_value_type) + return has_map_value_type() + ? *type_.map_value_type_ + : *reinterpret_cast< ::flyteidl::core::LiteralType*>(&::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* LiteralType::mutable_map_value_type() { + if (!has_map_value_type()) { + clear_type(); + set_has_map_value_type(); + type_.map_value_type_ = CreateMaybeMessage< ::flyteidl::core::LiteralType >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.map_value_type) + return type_.map_value_type_; +} + +// .flyteidl.core.BlobType blob = 5; +inline bool LiteralType::has_blob() const { + return type_case() == kBlob; +} +inline void LiteralType::set_has_blob() { + _oneof_case_[0] = kBlob; +} +inline void LiteralType::clear_blob() { + if (has_blob()) { + delete type_.blob_; + clear_has_type(); + } +} +inline ::flyteidl::core::BlobType* LiteralType::release_blob() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.blob) + if (has_blob()) { + clear_has_type(); + ::flyteidl::core::BlobType* temp = type_.blob_; + type_.blob_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::BlobType& LiteralType::blob() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.blob) + return has_blob() + ? *type_.blob_ + : *reinterpret_cast< ::flyteidl::core::BlobType*>(&::flyteidl::core::_BlobType_default_instance_); +} +inline ::flyteidl::core::BlobType* LiteralType::mutable_blob() { + if (!has_blob()) { + clear_type(); + set_has_blob(); + type_.blob_ = CreateMaybeMessage< ::flyteidl::core::BlobType >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.blob) + return type_.blob_; +} + +// .flyteidl.core.EnumType enum_type = 7; +inline bool LiteralType::has_enum_type() const { + return type_case() == kEnumType; +} +inline void LiteralType::set_has_enum_type() { + _oneof_case_[0] = kEnumType; +} +inline void LiteralType::clear_enum_type() { + if (has_enum_type()) { + delete type_.enum_type_; + clear_has_type(); + } +} +inline ::flyteidl::core::EnumType* LiteralType::release_enum_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.enum_type) + if (has_enum_type()) { + clear_has_type(); + ::flyteidl::core::EnumType* temp = type_.enum_type_; + type_.enum_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::EnumType& LiteralType::enum_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.enum_type) + return has_enum_type() + ? *type_.enum_type_ + : *reinterpret_cast< ::flyteidl::core::EnumType*>(&::flyteidl::core::_EnumType_default_instance_); +} +inline ::flyteidl::core::EnumType* LiteralType::mutable_enum_type() { + if (!has_enum_type()) { + clear_type(); + set_has_enum_type(); + type_.enum_type_ = CreateMaybeMessage< ::flyteidl::core::EnumType >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.enum_type) + return type_.enum_type_; +} + +// .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; +inline bool LiteralType::has_structured_dataset_type() const { + return type_case() == kStructuredDatasetType; +} +inline void LiteralType::set_has_structured_dataset_type() { + _oneof_case_[0] = kStructuredDatasetType; +} +inline void LiteralType::clear_structured_dataset_type() { + if (has_structured_dataset_type()) { + delete type_.structured_dataset_type_; + clear_has_type(); + } +} +inline ::flyteidl::core::StructuredDatasetType* LiteralType::release_structured_dataset_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.structured_dataset_type) + if (has_structured_dataset_type()) { + clear_has_type(); + ::flyteidl::core::StructuredDatasetType* temp = type_.structured_dataset_type_; + type_.structured_dataset_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::StructuredDatasetType& LiteralType::structured_dataset_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.structured_dataset_type) + return has_structured_dataset_type() + ? *type_.structured_dataset_type_ + : *reinterpret_cast< ::flyteidl::core::StructuredDatasetType*>(&::flyteidl::core::_StructuredDatasetType_default_instance_); +} +inline ::flyteidl::core::StructuredDatasetType* LiteralType::mutable_structured_dataset_type() { + if (!has_structured_dataset_type()) { + clear_type(); + set_has_structured_dataset_type(); + type_.structured_dataset_type_ = CreateMaybeMessage< ::flyteidl::core::StructuredDatasetType >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.structured_dataset_type) + return type_.structured_dataset_type_; +} + +// .flyteidl.core.UnionType union_type = 10; +inline bool LiteralType::has_union_type() const { + return type_case() == kUnionType; +} +inline void LiteralType::set_has_union_type() { + _oneof_case_[0] = kUnionType; +} +inline void LiteralType::clear_union_type() { + if (has_union_type()) { + delete type_.union_type_; + clear_has_type(); + } +} +inline ::flyteidl::core::UnionType* LiteralType::release_union_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.union_type) + if (has_union_type()) { + clear_has_type(); + ::flyteidl::core::UnionType* temp = type_.union_type_; + type_.union_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::UnionType& LiteralType::union_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.union_type) + return has_union_type() + ? *type_.union_type_ + : *reinterpret_cast< ::flyteidl::core::UnionType*>(&::flyteidl::core::_UnionType_default_instance_); +} +inline ::flyteidl::core::UnionType* LiteralType::mutable_union_type() { + if (!has_union_type()) { + clear_type(); + set_has_union_type(); + type_.union_type_ = CreateMaybeMessage< ::flyteidl::core::UnionType >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.union_type) + return type_.union_type_; +} + +// .google.protobuf.Struct metadata = 6; +inline bool LiteralType::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline const ::google::protobuf::Struct& LiteralType::metadata() const { + const ::google::protobuf::Struct* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* LiteralType::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.metadata) + + ::google::protobuf::Struct* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* LiteralType::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.metadata) + return metadata_; +} +inline void LiteralType::set_allocated_metadata(::google::protobuf::Struct* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_); + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(metadata)->GetArena(); + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.metadata) +} + +// .flyteidl.core.TypeAnnotation annotation = 9; +inline bool LiteralType::has_annotation() const { + return this != internal_default_instance() && annotation_ != nullptr; +} +inline void LiteralType::clear_annotation() { + if (GetArenaNoVirtual() == nullptr && annotation_ != nullptr) { + delete annotation_; + } + annotation_ = nullptr; +} +inline const ::flyteidl::core::TypeAnnotation& LiteralType::annotation() const { + const ::flyteidl::core::TypeAnnotation* p = annotation_; + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.annotation) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TypeAnnotation_default_instance_); +} +inline ::flyteidl::core::TypeAnnotation* LiteralType::release_annotation() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.annotation) + + ::flyteidl::core::TypeAnnotation* temp = annotation_; + annotation_ = nullptr; + return temp; +} +inline ::flyteidl::core::TypeAnnotation* LiteralType::mutable_annotation() { + + if (annotation_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TypeAnnotation>(GetArenaNoVirtual()); + annotation_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.annotation) + return annotation_; +} +inline void LiteralType::set_allocated_annotation(::flyteidl::core::TypeAnnotation* annotation) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete annotation_; + } + if (annotation) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + annotation = ::google::protobuf::internal::GetOwnedMessage( + message_arena, annotation, submessage_arena); + } + + } else { + + } + annotation_ = annotation; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.annotation) +} + +// .flyteidl.core.TypeStructure structure = 11; +inline bool LiteralType::has_structure() const { + return this != internal_default_instance() && structure_ != nullptr; +} +inline void LiteralType::clear_structure() { + if (GetArenaNoVirtual() == nullptr && structure_ != nullptr) { + delete structure_; + } + structure_ = nullptr; +} +inline const ::flyteidl::core::TypeStructure& LiteralType::structure() const { + const ::flyteidl::core::TypeStructure* p = structure_; + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.structure) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TypeStructure_default_instance_); +} +inline ::flyteidl::core::TypeStructure* LiteralType::release_structure() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.structure) + + ::flyteidl::core::TypeStructure* temp = structure_; + structure_ = nullptr; + return temp; +} +inline ::flyteidl::core::TypeStructure* LiteralType::mutable_structure() { + + if (structure_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TypeStructure>(GetArenaNoVirtual()); + structure_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.structure) + return structure_; +} +inline void LiteralType::set_allocated_structure(::flyteidl::core::TypeStructure* structure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete structure_; + } + if (structure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + structure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, structure, submessage_arena); + } + + } else { + + } + structure_ = structure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.structure) +} + +inline bool LiteralType::has_type() const { + return type_case() != TYPE_NOT_SET; +} +inline void LiteralType::clear_has_type() { + _oneof_case_[0] = TYPE_NOT_SET; +} +inline LiteralType::TypeCase LiteralType::type_case() const { + return LiteralType::TypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// OutputReference + +// string node_id = 1; +inline void OutputReference::clear_node_id() { + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OutputReference::node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OutputReference.node_id) + return node_id_.GetNoArena(); +} +inline void OutputReference::set_node_id(const ::std::string& value) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OutputReference.node_id) +} +#if LANG_CXX11 +inline void OutputReference::set_node_id(::std::string&& value) { + + node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OutputReference.node_id) +} +#endif +inline void OutputReference::set_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OutputReference.node_id) +} +inline void OutputReference::set_node_id(const char* value, size_t size) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OutputReference.node_id) +} +inline ::std::string* OutputReference::mutable_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OutputReference.node_id) + return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OutputReference::release_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.OutputReference.node_id) + + return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OutputReference::set_allocated_node_id(::std::string* node_id) { + if (node_id != nullptr) { + + } else { + + } + node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OutputReference.node_id) +} + +// string var = 2; +inline void OutputReference::clear_var() { + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OutputReference::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OutputReference.var) + return var_.GetNoArena(); +} +inline void OutputReference::set_var(const ::std::string& value) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OutputReference.var) +} +#if LANG_CXX11 +inline void OutputReference::set_var(::std::string&& value) { + + var_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OutputReference.var) +} +#endif +inline void OutputReference::set_var(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OutputReference.var) +} +inline void OutputReference::set_var(const char* value, size_t size) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OutputReference.var) +} +inline ::std::string* OutputReference::mutable_var() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OutputReference.var) + return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OutputReference::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.OutputReference.var) + + return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OutputReference::set_allocated_var(::std::string* var) { + if (var != nullptr) { + + } else { + + } + var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OutputReference.var) +} + +// ------------------------------------------------------------------- + +// Error + +// string failed_node_id = 1; +inline void Error::clear_failed_node_id() { + failed_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Error::failed_node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Error.failed_node_id) + return failed_node_id_.GetNoArena(); +} +inline void Error::set_failed_node_id(const ::std::string& value) { + + failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Error.failed_node_id) +} +#if LANG_CXX11 +inline void Error::set_failed_node_id(::std::string&& value) { + + failed_node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Error.failed_node_id) +} +#endif +inline void Error::set_failed_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Error.failed_node_id) +} +inline void Error::set_failed_node_id(const char* value, size_t size) { + + failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Error.failed_node_id) +} +inline ::std::string* Error::mutable_failed_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Error.failed_node_id) + return failed_node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Error::release_failed_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Error.failed_node_id) + + return failed_node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Error::set_allocated_failed_node_id(::std::string* failed_node_id) { + if (failed_node_id != nullptr) { + + } else { + + } + failed_node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), failed_node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Error.failed_node_id) +} + +// string message = 2; +inline void Error::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Error::message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Error.message) + return message_.GetNoArena(); +} +inline void Error::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Error.message) +} +#if LANG_CXX11 +inline void Error::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Error.message) +} +#endif +inline void Error::set_message(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Error.message) +} +inline void Error::set_message(const char* value, size_t size) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Error.message) +} +inline ::std::string* Error::mutable_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Error.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Error::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.Error.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Error::set_allocated_message(::std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Error.message) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType>() { + return ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::BlobType_BlobDimensionality> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::BlobType_BlobDimensionality>() { + return ::flyteidl::core::BlobType_BlobDimensionality_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::SimpleType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::SimpleType>() { + return ::flyteidl::core::SimpleType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2ftypes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc new file mode 100644 index 0000000000..7faf2a04a3 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow.proto + +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/workflow.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h new file mode 100644 index 0000000000..24dcf482a1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow.proto +#ifndef GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED + +#include "flyteidl/core/workflow.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc new file mode 100644 index 0000000000..3d24211ea9 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc @@ -0,0 +1,8460 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +#include "flyteidl/core/workflow.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +namespace flyteidl { +namespace core { +class IfBlockDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IfBlock_default_instance_; +class IfElseBlockDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Node* else_node_; + const ::flyteidl::core::Error* error_; +} _IfElseBlock_default_instance_; +class BranchNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _BranchNode_default_instance_; +class TaskNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Identifier* reference_id_; +} _TaskNode_default_instance_; +class WorkflowNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::Identifier* launchplan_ref_; + const ::flyteidl::core::Identifier* sub_workflow_ref_; +} _WorkflowNode_default_instance_; +class ApproveConditionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ApproveCondition_default_instance_; +class SignalConditionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SignalCondition_default_instance_; +class SleepConditionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SleepCondition_default_instance_; +class GateNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::ApproveCondition* approve_; + const ::flyteidl::core::SignalCondition* signal_; + const ::flyteidl::core::SleepCondition* sleep_; +} _GateNode_default_instance_; +class ArrayNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::uint32 min_successes_; + float min_success_ratio_; +} _ArrayNode_default_instance_; +class NodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + bool interruptible_; +} _NodeMetadata_default_instance_; +class AliasDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Alias_default_instance_; +class NodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::TaskNode* task_node_; + const ::flyteidl::core::WorkflowNode* workflow_node_; + const ::flyteidl::core::BranchNode* branch_node_; + const ::flyteidl::core::GateNode* gate_node_; + const ::flyteidl::core::ArrayNode* array_node_; +} _Node_default_instance_; +class WorkflowMetadata_TagsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowMetadata_TagsEntry_DoNotUse_default_instance_; +class WorkflowMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowMetadata_default_instance_; +class WorkflowMetadataDefaultsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowMetadataDefaults_default_instance_; +class WorkflowTemplateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowTemplate_default_instance_; +class TaskNodeOverridesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskNodeOverrides_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsTaskNode_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskNode_default_instance_; + new (ptr) ::flyteidl::core::TaskNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskNode::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskNode_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base,}}; + +static void InitDefaultsWorkflowNode_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowNode_default_instance_; + new (ptr) ::flyteidl::core::WorkflowNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowNode::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowNode_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsApproveCondition_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_ApproveCondition_default_instance_; + new (ptr) ::flyteidl::core::ApproveCondition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ApproveCondition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsApproveCondition_flyteidl_2fcore_2fworkflow_2eproto}, {}}; + +static void InitDefaultsSignalCondition_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_SignalCondition_default_instance_; + new (ptr) ::flyteidl::core::SignalCondition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SignalCondition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSignalCondition_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; + +static void InitDefaultsSleepCondition_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_SleepCondition_default_instance_; + new (ptr) ::flyteidl::core::SleepCondition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SleepCondition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSleepCondition_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsGateNode_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_GateNode_default_instance_; + new (ptr) ::flyteidl::core::GateNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::GateNode::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsGateNode_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base,}}; + +static void InitDefaultsArrayNode_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_IfBlock_default_instance_; + new (ptr) ::flyteidl::core::IfBlock(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_IfElseBlock_default_instance_; + new (ptr) ::flyteidl::core::IfElseBlock(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_BranchNode_default_instance_; + new (ptr) ::flyteidl::core::BranchNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_ArrayNode_default_instance_; + new (ptr) ::flyteidl::core::ArrayNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_Node_default_instance_; + new (ptr) ::flyteidl::core::Node(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::IfBlock::InitAsDefaultInstance(); + ::flyteidl::core::IfElseBlock::InitAsDefaultInstance(); + ::flyteidl::core::BranchNode::InitAsDefaultInstance(); + ::flyteidl::core::ArrayNode::InitAsDefaultInstance(); + ::flyteidl::core::Node::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<8> scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsArrayNode_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base, + &scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base, + &scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base,}}; + +static void InitDefaultsNodeMetadata_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_NodeMetadata_default_instance_; + new (ptr) ::flyteidl::core::NodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::NodeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNodeMetadata_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, + &scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsAlias_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_Alias_default_instance_; + new (ptr) ::flyteidl::core::Alias(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Alias::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlias_flyteidl_2fcore_2fworkflow_2eproto}, {}}; + +static void InitDefaultsWorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowMetadata_TagsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse(); + } + ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto}, {}}; + +static void InitDefaultsWorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowMetadata_default_instance_; + new (ptr) ::flyteidl::core::WorkflowMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto.base,}}; + +static void InitDefaultsWorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowMetadataDefaults_default_instance_; + new (ptr) ::flyteidl::core::WorkflowMetadataDefaults(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowMetadataDefaults::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto}, {}}; + +static void InitDefaultsWorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowTemplate_default_instance_; + new (ptr) ::flyteidl::core::WorkflowTemplate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowTemplate::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsWorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base, + &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto.base,}}; + +static void InitDefaultsTaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_TaskNodeOverrides_default_instance_; + new (ptr) ::flyteidl::core::TaskNodeOverrides(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskNodeOverrides::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto}, { + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fworkflow_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[18]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fworkflow_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fworkflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfBlock, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfBlock, condition_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfBlock, then_node_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, case__), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, other_), + offsetof(::flyteidl::core::IfElseBlockDefaultTypeInternal, else_node_), + offsetof(::flyteidl::core::IfElseBlockDefaultTypeInternal, error_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, default_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BranchNode, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::BranchNode, if_else_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::TaskNodeDefaultTypeInternal, reference_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, overrides_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, reference_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowNode, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowNode, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::WorkflowNodeDefaultTypeInternal, launchplan_ref_), + offsetof(::flyteidl::core::WorkflowNodeDefaultTypeInternal, sub_workflow_ref_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowNode, reference_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ApproveCondition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ApproveCondition, signal_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, signal_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, output_variable_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SleepCondition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::SleepCondition, duration_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::GateNode, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::GateNode, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::GateNodeDefaultTypeInternal, approve_), + offsetof(::flyteidl::core::GateNodeDefaultTypeInternal, signal_), + offsetof(::flyteidl::core::GateNodeDefaultTypeInternal, sleep_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::GateNode, condition_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, node_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, parallelism_), + offsetof(::flyteidl::core::ArrayNodeDefaultTypeInternal, min_successes_), + offsetof(::flyteidl::core::ArrayNodeDefaultTypeInternal, min_success_ratio_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, success_criteria_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, timeout_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, retries_), + offsetof(::flyteidl::core::NodeMetadataDefaultTypeInternal, interruptible_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, interruptible_value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Alias, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Alias, var_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Alias, alias_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, upstream_node_ids_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, output_aliases_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, task_node_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, workflow_node_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, branch_node_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, gate_node_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, array_node_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, target_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, quality_of_service_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, on_failure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, tags_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadataDefaults, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadataDefaults, interruptible_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, interface_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, nodes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, outputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, failure_node_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, metadata_defaults_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNodeOverrides, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNodeOverrides, resources_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::IfBlock)}, + { 7, -1, sizeof(::flyteidl::core::IfElseBlock)}, + { 17, -1, sizeof(::flyteidl::core::BranchNode)}, + { 23, -1, sizeof(::flyteidl::core::TaskNode)}, + { 31, -1, sizeof(::flyteidl::core::WorkflowNode)}, + { 39, -1, sizeof(::flyteidl::core::ApproveCondition)}, + { 45, -1, sizeof(::flyteidl::core::SignalCondition)}, + { 53, -1, sizeof(::flyteidl::core::SleepCondition)}, + { 59, -1, sizeof(::flyteidl::core::GateNode)}, + { 68, -1, sizeof(::flyteidl::core::ArrayNode)}, + { 78, -1, sizeof(::flyteidl::core::NodeMetadata)}, + { 88, -1, sizeof(::flyteidl::core::Alias)}, + { 95, -1, sizeof(::flyteidl::core::Node)}, + { 111, 118, sizeof(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse)}, + { 120, -1, sizeof(::flyteidl::core::WorkflowMetadata)}, + { 128, -1, sizeof(::flyteidl::core::WorkflowMetadataDefaults)}, + { 134, -1, sizeof(::flyteidl::core::WorkflowTemplate)}, + { 146, -1, sizeof(::flyteidl::core::TaskNodeOverrides)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_IfBlock_default_instance_), + reinterpret_cast(&::flyteidl::core::_IfElseBlock_default_instance_), + reinterpret_cast(&::flyteidl::core::_BranchNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_ApproveCondition_default_instance_), + reinterpret_cast(&::flyteidl::core::_SignalCondition_default_instance_), + reinterpret_cast(&::flyteidl::core::_SleepCondition_default_instance_), + reinterpret_cast(&::flyteidl::core::_GateNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_ArrayNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_NodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_Alias_default_instance_), + reinterpret_cast(&::flyteidl::core::_Node_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowMetadata_TagsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowMetadataDefaults_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowTemplate_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskNodeOverrides_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto, "flyteidl/core/workflow.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fworkflow_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto, 18, file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fworkflow_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fworkflow_2eproto[] = + "\n\034flyteidl/core/workflow.proto\022\rflyteidl" + ".core\032\035flyteidl/core/condition.proto\032\035fl" + "yteidl/core/execution.proto\032\036flyteidl/co" + "re/identifier.proto\032\035flyteidl/core/inter" + "face.proto\032\034flyteidl/core/literals.proto" + "\032\031flyteidl/core/tasks.proto\032\031flyteidl/co" + "re/types.proto\032\034flyteidl/core/security.p" + "roto\032\036google/protobuf/duration.proto\"f\n\007" + "IfBlock\0223\n\tcondition\030\001 \001(\0132 .flyteidl.co" + "re.BooleanExpression\022&\n\tthen_node\030\002 \001(\0132" + "\023.flyteidl.core.Node\"\266\001\n\013IfElseBlock\022$\n\004" + "case\030\001 \001(\0132\026.flyteidl.core.IfBlock\022%\n\005ot" + "her\030\002 \003(\0132\026.flyteidl.core.IfBlock\022(\n\tels" + "e_node\030\003 \001(\0132\023.flyteidl.core.NodeH\000\022%\n\005e" + "rror\030\004 \001(\0132\024.flyteidl.core.ErrorH\000B\t\n\007de" + "fault\"9\n\nBranchNode\022+\n\007if_else\030\001 \001(\0132\032.f" + "lyteidl.core.IfElseBlock\"\177\n\010TaskNode\0221\n\014" + "reference_id\030\001 \001(\0132\031.flyteidl.core.Ident" + "ifierH\000\0223\n\toverrides\030\002 \001(\0132 .flyteidl.co" + "re.TaskNodeOverridesB\013\n\treference\"\207\001\n\014Wo" + "rkflowNode\0223\n\016launchplan_ref\030\001 \001(\0132\031.fly" + "teidl.core.IdentifierH\000\0225\n\020sub_workflow_" + "ref\030\002 \001(\0132\031.flyteidl.core.IdentifierH\000B\013" + "\n\treference\"%\n\020ApproveCondition\022\021\n\tsigna" + "l_id\030\001 \001(\t\"l\n\017SignalCondition\022\021\n\tsignal_" + "id\030\001 \001(\t\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" + "iteralType\022\034\n\024output_variable_name\030\003 \001(\t" + "\"=\n\016SleepCondition\022+\n\010duration\030\001 \001(\0132\031.g" + "oogle.protobuf.Duration\"\255\001\n\010GateNode\0222\n\007" + "approve\030\001 \001(\0132\037.flyteidl.core.ApproveCon" + "ditionH\000\0220\n\006signal\030\002 \001(\0132\036.flyteidl.core" + ".SignalConditionH\000\022.\n\005sleep\030\003 \001(\0132\035.flyt" + "eidl.core.SleepConditionH\000B\013\n\tcondition\"" + "\215\001\n\tArrayNode\022!\n\004node\030\001 \001(\0132\023.flyteidl.c" + "ore.Node\022\023\n\013parallelism\030\002 \001(\r\022\027\n\rmin_suc" + "cesses\030\003 \001(\rH\000\022\033\n\021min_success_ratio\030\004 \001(" + "\002H\000B\022\n\020success_criteria\"\247\001\n\014NodeMetadata" + "\022\014\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google" + ".protobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.fl" + "yteidl.core.RetryStrategy\022\027\n\rinterruptib" + "le\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Ali" + "as\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\260\003\n\004Node\022" + "\n\n\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl" + ".core.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.fly" + "teidl.core.Binding\022\031\n\021upstream_node_ids\030" + "\004 \003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl" + ".core.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteid" + "l.core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\013" + "2\033.flyteidl.core.WorkflowNodeH\000\0220\n\013branc" + "h_node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH" + "\000\022,\n\tgate_node\030\t \001(\0132\027.flyteidl.core.Gat" + "eNodeH\000\022.\n\narray_node\030\n \001(\0132\030.flyteidl.c" + "ore.ArrayNodeH\000B\010\n\006target\"\315\002\n\020WorkflowMe" + "tadata\022;\n\022quality_of_service\030\001 \001(\0132\037.fly" + "teidl.core.QualityOfService\022C\n\non_failur" + "e\030\002 \001(\0162/.flyteidl.core.WorkflowMetadata" + ".OnFailurePolicy\0227\n\004tags\030\003 \003(\0132).flyteid" + "l.core.WorkflowMetadata.TagsEntry\032+\n\tTag" + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q" + "\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020\000\022" + "(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\020" + "\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinterru" + "ptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002id\030" + "\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010meta" + "data\030\002 \001(\0132\037.flyteidl.core.WorkflowMetad" + "ata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core.T" + "ypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteidl." + "core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl.co" + "re.Binding\022)\n\014failure_node\030\006 \001(\0132\023.flyte" + "idl.core.Node\022B\n\021metadata_defaults\030\007 \001(\013" + "2\'.flyteidl.core.WorkflowMetadataDefault" + "s\"@\n\021TaskNodeOverrides\022+\n\tresources\030\001 \001(" + "\0132\030.flyteidl.core.ResourcesB6Z4github.co" + "m/flyteorg/flyteidl/gen/pb-go/flyteidl/c" + "oreb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fworkflow_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fworkflow_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fworkflow_2eproto, + "flyteidl/core/workflow.proto", &assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto, 2971, +}; + +void AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[9] = + { + ::AddDescriptors_flyteidl_2fcore_2fcondition_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fworkflow_2eproto, deps, 9); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fworkflow_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto(); return true; }(); +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* WorkflowMetadata_OnFailurePolicy_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_2eproto[0]; +} +bool WorkflowMetadata_OnFailurePolicy_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::FAIL_IMMEDIATELY; +const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; +const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::OnFailurePolicy_MIN; +const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::OnFailurePolicy_MAX; +const int WorkflowMetadata::OnFailurePolicy_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void IfBlock::InitAsDefaultInstance() { + ::flyteidl::core::_IfBlock_default_instance_._instance.get_mutable()->condition_ = const_cast< ::flyteidl::core::BooleanExpression*>( + ::flyteidl::core::BooleanExpression::internal_default_instance()); + ::flyteidl::core::_IfBlock_default_instance_._instance.get_mutable()->then_node_ = const_cast< ::flyteidl::core::Node*>( + ::flyteidl::core::Node::internal_default_instance()); +} +class IfBlock::HasBitSetters { + public: + static const ::flyteidl::core::BooleanExpression& condition(const IfBlock* msg); + static const ::flyteidl::core::Node& then_node(const IfBlock* msg); +}; + +const ::flyteidl::core::BooleanExpression& +IfBlock::HasBitSetters::condition(const IfBlock* msg) { + return *msg->condition_; +} +const ::flyteidl::core::Node& +IfBlock::HasBitSetters::then_node(const IfBlock* msg) { + return *msg->then_node_; +} +void IfBlock::clear_condition() { + if (GetArenaNoVirtual() == nullptr && condition_ != nullptr) { + delete condition_; + } + condition_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IfBlock::kConditionFieldNumber; +const int IfBlock::kThenNodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IfBlock::IfBlock() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.IfBlock) +} +IfBlock::IfBlock(const IfBlock& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_condition()) { + condition_ = new ::flyteidl::core::BooleanExpression(*from.condition_); + } else { + condition_ = nullptr; + } + if (from.has_then_node()) { + then_node_ = new ::flyteidl::core::Node(*from.then_node_); + } else { + then_node_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.IfBlock) +} + +void IfBlock::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + ::memset(&condition_, 0, static_cast( + reinterpret_cast(&then_node_) - + reinterpret_cast(&condition_)) + sizeof(then_node_)); +} + +IfBlock::~IfBlock() { + // @@protoc_insertion_point(destructor:flyteidl.core.IfBlock) + SharedDtor(); +} + +void IfBlock::SharedDtor() { + if (this != internal_default_instance()) delete condition_; + if (this != internal_default_instance()) delete then_node_; +} + +void IfBlock::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IfBlock& IfBlock::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void IfBlock::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.IfBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && condition_ != nullptr) { + delete condition_; + } + condition_ = nullptr; + if (GetArenaNoVirtual() == nullptr && then_node_ != nullptr) { + delete then_node_; + } + then_node_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IfBlock::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.BooleanExpression condition = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BooleanExpression::_InternalParse; + object = msg->mutable_condition(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Node then_node = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Node::_InternalParse; + object = msg->mutable_then_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IfBlock::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.IfBlock) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.BooleanExpression condition = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_condition())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Node then_node = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_then_node())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.IfBlock) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.IfBlock) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IfBlock::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.IfBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BooleanExpression condition = 1; + if (this->has_condition()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::condition(this), output); + } + + // .flyteidl.core.Node then_node = 2; + if (this->has_then_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::then_node(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.IfBlock) +} + +::google::protobuf::uint8* IfBlock::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IfBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BooleanExpression condition = 1; + if (this->has_condition()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::condition(this), target); + } + + // .flyteidl.core.Node then_node = 2; + if (this->has_then_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::then_node(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.IfBlock) + return target; +} + +size_t IfBlock::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IfBlock) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.BooleanExpression condition = 1; + if (this->has_condition()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *condition_); + } + + // .flyteidl.core.Node then_node = 2; + if (this->has_then_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *then_node_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IfBlock::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IfBlock) + GOOGLE_DCHECK_NE(&from, this); + const IfBlock* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IfBlock) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IfBlock) + MergeFrom(*source); + } +} + +void IfBlock::MergeFrom(const IfBlock& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IfBlock) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_condition()) { + mutable_condition()->::flyteidl::core::BooleanExpression::MergeFrom(from.condition()); + } + if (from.has_then_node()) { + mutable_then_node()->::flyteidl::core::Node::MergeFrom(from.then_node()); + } +} + +void IfBlock::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IfBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IfBlock::CopyFrom(const IfBlock& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IfBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IfBlock::IsInitialized() const { + return true; +} + +void IfBlock::Swap(IfBlock* other) { + if (other == this) return; + InternalSwap(other); +} +void IfBlock::InternalSwap(IfBlock* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(condition_, other->condition_); + swap(then_node_, other->then_node_); +} + +::google::protobuf::Metadata IfBlock::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IfElseBlock::InitAsDefaultInstance() { + ::flyteidl::core::_IfElseBlock_default_instance_._instance.get_mutable()->case__ = const_cast< ::flyteidl::core::IfBlock*>( + ::flyteidl::core::IfBlock::internal_default_instance()); + ::flyteidl::core::_IfElseBlock_default_instance_.else_node_ = const_cast< ::flyteidl::core::Node*>( + ::flyteidl::core::Node::internal_default_instance()); + ::flyteidl::core::_IfElseBlock_default_instance_.error_ = const_cast< ::flyteidl::core::Error*>( + ::flyteidl::core::Error::internal_default_instance()); +} +class IfElseBlock::HasBitSetters { + public: + static const ::flyteidl::core::IfBlock& case_(const IfElseBlock* msg); + static const ::flyteidl::core::Node& else_node(const IfElseBlock* msg); + static const ::flyteidl::core::Error& error(const IfElseBlock* msg); +}; + +const ::flyteidl::core::IfBlock& +IfElseBlock::HasBitSetters::case_(const IfElseBlock* msg) { + return *msg->case__; +} +const ::flyteidl::core::Node& +IfElseBlock::HasBitSetters::else_node(const IfElseBlock* msg) { + return *msg->default_.else_node_; +} +const ::flyteidl::core::Error& +IfElseBlock::HasBitSetters::error(const IfElseBlock* msg) { + return *msg->default_.error_; +} +void IfElseBlock::set_allocated_else_node(::flyteidl::core::Node* else_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_default(); + if (else_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + else_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, else_node, submessage_arena); + } + set_has_else_node(); + default_.else_node_ = else_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.else_node) +} +void IfElseBlock::set_allocated_error(::flyteidl::core::Error* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_default(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + default_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.error) +} +void IfElseBlock::clear_error() { + if (has_error()) { + delete default_.error_; + clear_has_default(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IfElseBlock::kCaseFieldNumber; +const int IfElseBlock::kOtherFieldNumber; +const int IfElseBlock::kElseNodeFieldNumber; +const int IfElseBlock::kErrorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IfElseBlock::IfElseBlock() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.IfElseBlock) +} +IfElseBlock::IfElseBlock(const IfElseBlock& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + other_(from.other_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_case_()) { + case__ = new ::flyteidl::core::IfBlock(*from.case__); + } else { + case__ = nullptr; + } + clear_has_default(); + switch (from.default_case()) { + case kElseNode: { + mutable_else_node()->::flyteidl::core::Node::MergeFrom(from.else_node()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.IfElseBlock) +} + +void IfElseBlock::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + case__ = nullptr; + clear_has_default(); +} + +IfElseBlock::~IfElseBlock() { + // @@protoc_insertion_point(destructor:flyteidl.core.IfElseBlock) + SharedDtor(); +} + +void IfElseBlock::SharedDtor() { + if (this != internal_default_instance()) delete case__; + if (has_default()) { + clear_default(); + } +} + +void IfElseBlock::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IfElseBlock& IfElseBlock::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void IfElseBlock::clear_default() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.IfElseBlock) + switch (default_case()) { + case kElseNode: { + delete default_.else_node_; + break; + } + case kError: { + delete default_.error_; + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = DEFAULT_NOT_SET; +} + + +void IfElseBlock::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.IfElseBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + other_.Clear(); + if (GetArenaNoVirtual() == nullptr && case__ != nullptr) { + delete case__; + } + case__ = nullptr; + clear_default(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IfElseBlock::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.IfBlock case = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::IfBlock::_InternalParse; + object = msg->mutable_case_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.IfBlock other = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::IfBlock::_InternalParse; + object = msg->add_other(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // .flyteidl.core.Node else_node = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Node::_InternalParse; + object = msg->mutable_else_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Error error = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Error::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IfElseBlock::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.IfElseBlock) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.IfBlock case = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_case_())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.IfBlock other = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_other())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Node else_node = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_else_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Error error = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.IfElseBlock) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.IfElseBlock) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IfElseBlock::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.IfElseBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfBlock case = 1; + if (this->has_case_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::case_(this), output); + } + + // repeated .flyteidl.core.IfBlock other = 2; + for (unsigned int i = 0, + n = static_cast(this->other_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->other(static_cast(i)), + output); + } + + // .flyteidl.core.Node else_node = 3; + if (has_else_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::else_node(this), output); + } + + // .flyteidl.core.Error error = 4; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::error(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.IfElseBlock) +} + +::google::protobuf::uint8* IfElseBlock::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IfElseBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfBlock case = 1; + if (this->has_case_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::case_(this), target); + } + + // repeated .flyteidl.core.IfBlock other = 2; + for (unsigned int i = 0, + n = static_cast(this->other_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->other(static_cast(i)), target); + } + + // .flyteidl.core.Node else_node = 3; + if (has_else_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::else_node(this), target); + } + + // .flyteidl.core.Error error = 4; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::error(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.IfElseBlock) + return target; +} + +size_t IfElseBlock::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IfElseBlock) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.IfBlock other = 2; + { + unsigned int count = static_cast(this->other_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->other(static_cast(i))); + } + } + + // .flyteidl.core.IfBlock case = 1; + if (this->has_case_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *case__); + } + + switch (default_case()) { + // .flyteidl.core.Node else_node = 3; + case kElseNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *default_.else_node_); + break; + } + // .flyteidl.core.Error error = 4; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *default_.error_); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IfElseBlock::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IfElseBlock) + GOOGLE_DCHECK_NE(&from, this); + const IfElseBlock* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IfElseBlock) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IfElseBlock) + MergeFrom(*source); + } +} + +void IfElseBlock::MergeFrom(const IfElseBlock& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IfElseBlock) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + other_.MergeFrom(from.other_); + if (from.has_case_()) { + mutable_case_()->::flyteidl::core::IfBlock::MergeFrom(from.case_()); + } + switch (from.default_case()) { + case kElseNode: { + mutable_else_node()->::flyteidl::core::Node::MergeFrom(from.else_node()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } +} + +void IfElseBlock::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IfElseBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IfElseBlock::CopyFrom(const IfElseBlock& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IfElseBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IfElseBlock::IsInitialized() const { + return true; +} + +void IfElseBlock::Swap(IfElseBlock* other) { + if (other == this) return; + InternalSwap(other); +} +void IfElseBlock::InternalSwap(IfElseBlock* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&other_)->InternalSwap(CastToBase(&other->other_)); + swap(case__, other->case__); + swap(default_, other->default_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata IfElseBlock::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void BranchNode::InitAsDefaultInstance() { + ::flyteidl::core::_BranchNode_default_instance_._instance.get_mutable()->if_else_ = const_cast< ::flyteidl::core::IfElseBlock*>( + ::flyteidl::core::IfElseBlock::internal_default_instance()); +} +class BranchNode::HasBitSetters { + public: + static const ::flyteidl::core::IfElseBlock& if_else(const BranchNode* msg); +}; + +const ::flyteidl::core::IfElseBlock& +BranchNode::HasBitSetters::if_else(const BranchNode* msg) { + return *msg->if_else_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BranchNode::kIfElseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BranchNode::BranchNode() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BranchNode) +} +BranchNode::BranchNode(const BranchNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_if_else()) { + if_else_ = new ::flyteidl::core::IfElseBlock(*from.if_else_); + } else { + if_else_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BranchNode) +} + +void BranchNode::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + if_else_ = nullptr; +} + +BranchNode::~BranchNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.BranchNode) + SharedDtor(); +} + +void BranchNode::SharedDtor() { + if (this != internal_default_instance()) delete if_else_; +} + +void BranchNode::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BranchNode& BranchNode::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void BranchNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BranchNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && if_else_ != nullptr) { + delete if_else_; + } + if_else_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BranchNode::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.IfElseBlock if_else = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::IfElseBlock::_InternalParse; + object = msg->mutable_if_else(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BranchNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BranchNode) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.IfElseBlock if_else = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_if_else())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.BranchNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BranchNode) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BranchNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BranchNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfElseBlock if_else = 1; + if (this->has_if_else()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::if_else(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BranchNode) +} + +::google::protobuf::uint8* BranchNode::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BranchNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfElseBlock if_else = 1; + if (this->has_if_else()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::if_else(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BranchNode) + return target; +} + +size_t BranchNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BranchNode) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.IfElseBlock if_else = 1; + if (this->has_if_else()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *if_else_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BranchNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BranchNode) + GOOGLE_DCHECK_NE(&from, this); + const BranchNode* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BranchNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BranchNode) + MergeFrom(*source); + } +} + +void BranchNode::MergeFrom(const BranchNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BranchNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_if_else()) { + mutable_if_else()->::flyteidl::core::IfElseBlock::MergeFrom(from.if_else()); + } +} + +void BranchNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BranchNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BranchNode::CopyFrom(const BranchNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BranchNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BranchNode::IsInitialized() const { + return true; +} + +void BranchNode::Swap(BranchNode* other) { + if (other == this) return; + InternalSwap(other); +} +void BranchNode::InternalSwap(BranchNode* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(if_else_, other->if_else_); +} + +::google::protobuf::Metadata BranchNode::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskNode::InitAsDefaultInstance() { + ::flyteidl::core::_TaskNode_default_instance_.reference_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_TaskNode_default_instance_._instance.get_mutable()->overrides_ = const_cast< ::flyteidl::core::TaskNodeOverrides*>( + ::flyteidl::core::TaskNodeOverrides::internal_default_instance()); +} +class TaskNode::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& reference_id(const TaskNode* msg); + static const ::flyteidl::core::TaskNodeOverrides& overrides(const TaskNode* msg); +}; + +const ::flyteidl::core::Identifier& +TaskNode::HasBitSetters::reference_id(const TaskNode* msg) { + return *msg->reference_.reference_id_; +} +const ::flyteidl::core::TaskNodeOverrides& +TaskNode::HasBitSetters::overrides(const TaskNode* msg) { + return *msg->overrides_; +} +void TaskNode::set_allocated_reference_id(::flyteidl::core::Identifier* reference_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reference(); + if (reference_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + reference_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reference_id, submessage_arena); + } + set_has_reference_id(); + reference_.reference_id_ = reference_id; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNode.reference_id) +} +void TaskNode::clear_reference_id() { + if (has_reference_id()) { + delete reference_.reference_id_; + clear_has_reference(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskNode::kReferenceIdFieldNumber; +const int TaskNode::kOverridesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskNode::TaskNode() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskNode) +} +TaskNode::TaskNode(const TaskNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_overrides()) { + overrides_ = new ::flyteidl::core::TaskNodeOverrides(*from.overrides_); + } else { + overrides_ = nullptr; + } + clear_has_reference(); + switch (from.reference_case()) { + case kReferenceId: { + mutable_reference_id()->::flyteidl::core::Identifier::MergeFrom(from.reference_id()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskNode) +} + +void TaskNode::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base); + overrides_ = nullptr; + clear_has_reference(); +} + +TaskNode::~TaskNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskNode) + SharedDtor(); +} + +void TaskNode::SharedDtor() { + if (this != internal_default_instance()) delete overrides_; + if (has_reference()) { + clear_reference(); + } +} + +void TaskNode::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskNode& TaskNode::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void TaskNode::clear_reference() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskNode) + switch (reference_case()) { + case kReferenceId: { + delete reference_.reference_id_; + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + _oneof_case_[0] = REFERENCE_NOT_SET; +} + + +void TaskNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && overrides_ != nullptr) { + delete overrides_; + } + overrides_ = nullptr; + clear_reference(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskNode::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier reference_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_reference_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskNodeOverrides overrides = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskNodeOverrides::_InternalParse; + object = msg->mutable_overrides(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskNode) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier reference_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reference_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskNodeOverrides overrides = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_overrides())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskNode) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier reference_id = 1; + if (has_reference_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::reference_id(this), output); + } + + // .flyteidl.core.TaskNodeOverrides overrides = 2; + if (this->has_overrides()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::overrides(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskNode) +} + +::google::protobuf::uint8* TaskNode::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier reference_id = 1; + if (has_reference_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::reference_id(this), target); + } + + // .flyteidl.core.TaskNodeOverrides overrides = 2; + if (this->has_overrides()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::overrides(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskNode) + return target; +} + +size_t TaskNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskNode) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.TaskNodeOverrides overrides = 2; + if (this->has_overrides()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *overrides_); + } + + switch (reference_case()) { + // .flyteidl.core.Identifier reference_id = 1; + case kReferenceId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reference_.reference_id_); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskNode) + GOOGLE_DCHECK_NE(&from, this); + const TaskNode* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskNode) + MergeFrom(*source); + } +} + +void TaskNode::MergeFrom(const TaskNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_overrides()) { + mutable_overrides()->::flyteidl::core::TaskNodeOverrides::MergeFrom(from.overrides()); + } + switch (from.reference_case()) { + case kReferenceId: { + mutable_reference_id()->::flyteidl::core::Identifier::MergeFrom(from.reference_id()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } +} + +void TaskNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskNode::CopyFrom(const TaskNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskNode::IsInitialized() const { + return true; +} + +void TaskNode::Swap(TaskNode* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskNode::InternalSwap(TaskNode* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(overrides_, other->overrides_); + swap(reference_, other->reference_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata TaskNode::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowNode::InitAsDefaultInstance() { + ::flyteidl::core::_WorkflowNode_default_instance_.launchplan_ref_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_WorkflowNode_default_instance_.sub_workflow_ref_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +class WorkflowNode::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& launchplan_ref(const WorkflowNode* msg); + static const ::flyteidl::core::Identifier& sub_workflow_ref(const WorkflowNode* msg); +}; + +const ::flyteidl::core::Identifier& +WorkflowNode::HasBitSetters::launchplan_ref(const WorkflowNode* msg) { + return *msg->reference_.launchplan_ref_; +} +const ::flyteidl::core::Identifier& +WorkflowNode::HasBitSetters::sub_workflow_ref(const WorkflowNode* msg) { + return *msg->reference_.sub_workflow_ref_; +} +void WorkflowNode::set_allocated_launchplan_ref(::flyteidl::core::Identifier* launchplan_ref) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reference(); + if (launchplan_ref) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + launchplan_ref = ::google::protobuf::internal::GetOwnedMessage( + message_arena, launchplan_ref, submessage_arena); + } + set_has_launchplan_ref(); + reference_.launchplan_ref_ = launchplan_ref; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowNode.launchplan_ref) +} +void WorkflowNode::clear_launchplan_ref() { + if (has_launchplan_ref()) { + delete reference_.launchplan_ref_; + clear_has_reference(); + } +} +void WorkflowNode::set_allocated_sub_workflow_ref(::flyteidl::core::Identifier* sub_workflow_ref) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reference(); + if (sub_workflow_ref) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sub_workflow_ref = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sub_workflow_ref, submessage_arena); + } + set_has_sub_workflow_ref(); + reference_.sub_workflow_ref_ = sub_workflow_ref; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowNode.sub_workflow_ref) +} +void WorkflowNode::clear_sub_workflow_ref() { + if (has_sub_workflow_ref()) { + delete reference_.sub_workflow_ref_; + clear_has_reference(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowNode::kLaunchplanRefFieldNumber; +const int WorkflowNode::kSubWorkflowRefFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowNode::WorkflowNode() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowNode) +} +WorkflowNode::WorkflowNode(const WorkflowNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_reference(); + switch (from.reference_case()) { + case kLaunchplanRef: { + mutable_launchplan_ref()->::flyteidl::core::Identifier::MergeFrom(from.launchplan_ref()); + break; + } + case kSubWorkflowRef: { + mutable_sub_workflow_ref()->::flyteidl::core::Identifier::MergeFrom(from.sub_workflow_ref()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowNode) +} + +void WorkflowNode::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base); + clear_has_reference(); +} + +WorkflowNode::~WorkflowNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowNode) + SharedDtor(); +} + +void WorkflowNode::SharedDtor() { + if (has_reference()) { + clear_reference(); + } +} + +void WorkflowNode::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowNode& WorkflowNode::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowNode::clear_reference() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.WorkflowNode) + switch (reference_case()) { + case kLaunchplanRef: { + delete reference_.launchplan_ref_; + break; + } + case kSubWorkflowRef: { + delete reference_.sub_workflow_ref_; + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + _oneof_case_[0] = REFERENCE_NOT_SET; +} + + +void WorkflowNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_reference(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowNode::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier launchplan_ref = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_launchplan_ref(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Identifier sub_workflow_ref = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_sub_workflow_ref(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowNode) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier launchplan_ref = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_launchplan_ref())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sub_workflow_ref())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowNode) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launchplan_ref = 1; + if (has_launchplan_ref()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::launchplan_ref(this), output); + } + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + if (has_sub_workflow_ref()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::sub_workflow_ref(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowNode) +} + +::google::protobuf::uint8* WorkflowNode::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launchplan_ref = 1; + if (has_launchplan_ref()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::launchplan_ref(this), target); + } + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + if (has_sub_workflow_ref()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::sub_workflow_ref(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowNode) + return target; +} + +size_t WorkflowNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowNode) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (reference_case()) { + // .flyteidl.core.Identifier launchplan_ref = 1; + case kLaunchplanRef: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reference_.launchplan_ref_); + break; + } + // .flyteidl.core.Identifier sub_workflow_ref = 2; + case kSubWorkflowRef: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reference_.sub_workflow_ref_); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowNode) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowNode* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowNode) + MergeFrom(*source); + } +} + +void WorkflowNode::MergeFrom(const WorkflowNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.reference_case()) { + case kLaunchplanRef: { + mutable_launchplan_ref()->::flyteidl::core::Identifier::MergeFrom(from.launchplan_ref()); + break; + } + case kSubWorkflowRef: { + mutable_sub_workflow_ref()->::flyteidl::core::Identifier::MergeFrom(from.sub_workflow_ref()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } +} + +void WorkflowNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowNode::CopyFrom(const WorkflowNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowNode::IsInitialized() const { + return true; +} + +void WorkflowNode::Swap(WorkflowNode* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowNode::InternalSwap(WorkflowNode* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(reference_, other->reference_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata WorkflowNode::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ApproveCondition::InitAsDefaultInstance() { +} +class ApproveCondition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ApproveCondition::kSignalIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ApproveCondition::ApproveCondition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ApproveCondition) +} +ApproveCondition::ApproveCondition(const ApproveCondition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.signal_id().size() > 0) { + signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ApproveCondition) +} + +void ApproveCondition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ApproveCondition::~ApproveCondition() { + // @@protoc_insertion_point(destructor:flyteidl.core.ApproveCondition) + SharedDtor(); +} + +void ApproveCondition::SharedDtor() { + signal_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ApproveCondition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ApproveCondition& ApproveCondition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void ApproveCondition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ApproveCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ApproveCondition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string signal_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.ApproveCondition.signal_id"); + object = msg->mutable_signal_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ApproveCondition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ApproveCondition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string signal_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_signal_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ApproveCondition.signal_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ApproveCondition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ApproveCondition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ApproveCondition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ApproveCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ApproveCondition.signal_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->signal_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ApproveCondition) +} + +::google::protobuf::uint8* ApproveCondition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ApproveCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ApproveCondition.signal_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->signal_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ApproveCondition) + return target; +} + +size_t ApproveCondition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ApproveCondition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->signal_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ApproveCondition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ApproveCondition) + GOOGLE_DCHECK_NE(&from, this); + const ApproveCondition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ApproveCondition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ApproveCondition) + MergeFrom(*source); + } +} + +void ApproveCondition::MergeFrom(const ApproveCondition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ApproveCondition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.signal_id().size() > 0) { + + signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); + } +} + +void ApproveCondition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ApproveCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ApproveCondition::CopyFrom(const ApproveCondition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ApproveCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ApproveCondition::IsInitialized() const { + return true; +} + +void ApproveCondition::Swap(ApproveCondition* other) { + if (other == this) return; + InternalSwap(other); +} +void ApproveCondition::InternalSwap(ApproveCondition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + signal_id_.Swap(&other->signal_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ApproveCondition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SignalCondition::InitAsDefaultInstance() { + ::flyteidl::core::_SignalCondition_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); +} +class SignalCondition::HasBitSetters { + public: + static const ::flyteidl::core::LiteralType& type(const SignalCondition* msg); +}; + +const ::flyteidl::core::LiteralType& +SignalCondition::HasBitSetters::type(const SignalCondition* msg) { + return *msg->type_; +} +void SignalCondition::clear_type() { + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignalCondition::kSignalIdFieldNumber; +const int SignalCondition::kTypeFieldNumber; +const int SignalCondition::kOutputVariableNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SignalCondition::SignalCondition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SignalCondition) +} +SignalCondition::SignalCondition(const SignalCondition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.signal_id().size() > 0) { + signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); + } + output_variable_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.output_variable_name().size() > 0) { + output_variable_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_variable_name_); + } + if (from.has_type()) { + type_ = new ::flyteidl::core::LiteralType(*from.type_); + } else { + type_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SignalCondition) +} + +void SignalCondition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_variable_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = nullptr; +} + +SignalCondition::~SignalCondition() { + // @@protoc_insertion_point(destructor:flyteidl.core.SignalCondition) + SharedDtor(); +} + +void SignalCondition::SharedDtor() { + signal_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_variable_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete type_; +} + +void SignalCondition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SignalCondition& SignalCondition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void SignalCondition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SignalCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + output_variable_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { + delete type_; + } + type_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SignalCondition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string signal_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.SignalCondition.signal_id"); + object = msg->mutable_signal_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; + object = msg->mutable_type(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string output_variable_name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.SignalCondition.output_variable_name"); + object = msg->mutable_output_variable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SignalCondition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SignalCondition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string signal_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_signal_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.SignalCondition.signal_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + // string output_variable_name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_variable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_variable_name().data(), static_cast(this->output_variable_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.SignalCondition.output_variable_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.SignalCondition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SignalCondition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SignalCondition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SignalCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SignalCondition.signal_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->signal_id(), output); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::type(this), output); + } + + // string output_variable_name = 3; + if (this->output_variable_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_variable_name().data(), static_cast(this->output_variable_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SignalCondition.output_variable_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->output_variable_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SignalCondition) +} + +::google::protobuf::uint8* SignalCondition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SignalCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signal_id().data(), static_cast(this->signal_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SignalCondition.signal_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->signal_id(), target); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::type(this), target); + } + + // string output_variable_name = 3; + if (this->output_variable_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_variable_name().data(), static_cast(this->output_variable_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SignalCondition.output_variable_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->output_variable_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SignalCondition) + return target; +} + +size_t SignalCondition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SignalCondition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string signal_id = 1; + if (this->signal_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->signal_id()); + } + + // string output_variable_name = 3; + if (this->output_variable_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_variable_name()); + } + + // .flyteidl.core.LiteralType type = 2; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SignalCondition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SignalCondition) + GOOGLE_DCHECK_NE(&from, this); + const SignalCondition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SignalCondition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SignalCondition) + MergeFrom(*source); + } +} + +void SignalCondition::MergeFrom(const SignalCondition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SignalCondition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.signal_id().size() > 0) { + + signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); + } + if (from.output_variable_name().size() > 0) { + + output_variable_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_variable_name_); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + } +} + +void SignalCondition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SignalCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SignalCondition::CopyFrom(const SignalCondition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SignalCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SignalCondition::IsInitialized() const { + return true; +} + +void SignalCondition::Swap(SignalCondition* other) { + if (other == this) return; + InternalSwap(other); +} +void SignalCondition::InternalSwap(SignalCondition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + signal_id_.Swap(&other->signal_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + output_variable_name_.Swap(&other->output_variable_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(type_, other->type_); +} + +::google::protobuf::Metadata SignalCondition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SleepCondition::InitAsDefaultInstance() { + ::flyteidl::core::_SleepCondition_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +class SleepCondition::HasBitSetters { + public: + static const ::google::protobuf::Duration& duration(const SleepCondition* msg); +}; + +const ::google::protobuf::Duration& +SleepCondition::HasBitSetters::duration(const SleepCondition* msg) { + return *msg->duration_; +} +void SleepCondition::clear_duration() { + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SleepCondition::kDurationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SleepCondition::SleepCondition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SleepCondition) +} +SleepCondition::SleepCondition(const SleepCondition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_duration()) { + duration_ = new ::google::protobuf::Duration(*from.duration_); + } else { + duration_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SleepCondition) +} + +void SleepCondition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + duration_ = nullptr; +} + +SleepCondition::~SleepCondition() { + // @@protoc_insertion_point(destructor:flyteidl.core.SleepCondition) + SharedDtor(); +} + +void SleepCondition::SharedDtor() { + if (this != internal_default_instance()) delete duration_; +} + +void SleepCondition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SleepCondition& SleepCondition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void SleepCondition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SleepCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { + delete duration_; + } + duration_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SleepCondition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .google.protobuf.Duration duration = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_duration(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SleepCondition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SleepCondition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .google.protobuf.Duration duration = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.SleepCondition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SleepCondition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SleepCondition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SleepCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Duration duration = 1; + if (this->has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::duration(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SleepCondition) +} + +::google::protobuf::uint8* SleepCondition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SleepCondition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .google.protobuf.Duration duration = 1; + if (this->has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::duration(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SleepCondition) + return target; +} + +size_t SleepCondition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SleepCondition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Duration duration = 1; + if (this->has_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *duration_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SleepCondition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SleepCondition) + GOOGLE_DCHECK_NE(&from, this); + const SleepCondition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SleepCondition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SleepCondition) + MergeFrom(*source); + } +} + +void SleepCondition::MergeFrom(const SleepCondition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SleepCondition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_duration()) { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + } +} + +void SleepCondition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SleepCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SleepCondition::CopyFrom(const SleepCondition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SleepCondition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SleepCondition::IsInitialized() const { + return true; +} + +void SleepCondition::Swap(SleepCondition* other) { + if (other == this) return; + InternalSwap(other); +} +void SleepCondition::InternalSwap(SleepCondition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(duration_, other->duration_); +} + +::google::protobuf::Metadata SleepCondition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GateNode::InitAsDefaultInstance() { + ::flyteidl::core::_GateNode_default_instance_.approve_ = const_cast< ::flyteidl::core::ApproveCondition*>( + ::flyteidl::core::ApproveCondition::internal_default_instance()); + ::flyteidl::core::_GateNode_default_instance_.signal_ = const_cast< ::flyteidl::core::SignalCondition*>( + ::flyteidl::core::SignalCondition::internal_default_instance()); + ::flyteidl::core::_GateNode_default_instance_.sleep_ = const_cast< ::flyteidl::core::SleepCondition*>( + ::flyteidl::core::SleepCondition::internal_default_instance()); +} +class GateNode::HasBitSetters { + public: + static const ::flyteidl::core::ApproveCondition& approve(const GateNode* msg); + static const ::flyteidl::core::SignalCondition& signal(const GateNode* msg); + static const ::flyteidl::core::SleepCondition& sleep(const GateNode* msg); +}; + +const ::flyteidl::core::ApproveCondition& +GateNode::HasBitSetters::approve(const GateNode* msg) { + return *msg->condition_.approve_; +} +const ::flyteidl::core::SignalCondition& +GateNode::HasBitSetters::signal(const GateNode* msg) { + return *msg->condition_.signal_; +} +const ::flyteidl::core::SleepCondition& +GateNode::HasBitSetters::sleep(const GateNode* msg) { + return *msg->condition_.sleep_; +} +void GateNode::set_allocated_approve(::flyteidl::core::ApproveCondition* approve) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_condition(); + if (approve) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + approve = ::google::protobuf::internal::GetOwnedMessage( + message_arena, approve, submessage_arena); + } + set_has_approve(); + condition_.approve_ = approve; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GateNode.approve) +} +void GateNode::set_allocated_signal(::flyteidl::core::SignalCondition* signal) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_condition(); + if (signal) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + signal = ::google::protobuf::internal::GetOwnedMessage( + message_arena, signal, submessage_arena); + } + set_has_signal(); + condition_.signal_ = signal; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GateNode.signal) +} +void GateNode::set_allocated_sleep(::flyteidl::core::SleepCondition* sleep) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_condition(); + if (sleep) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + sleep = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sleep, submessage_arena); + } + set_has_sleep(); + condition_.sleep_ = sleep; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GateNode.sleep) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GateNode::kApproveFieldNumber; +const int GateNode::kSignalFieldNumber; +const int GateNode::kSleepFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GateNode::GateNode() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.GateNode) +} +GateNode::GateNode(const GateNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_condition(); + switch (from.condition_case()) { + case kApprove: { + mutable_approve()->::flyteidl::core::ApproveCondition::MergeFrom(from.approve()); + break; + } + case kSignal: { + mutable_signal()->::flyteidl::core::SignalCondition::MergeFrom(from.signal()); + break; + } + case kSleep: { + mutable_sleep()->::flyteidl::core::SleepCondition::MergeFrom(from.sleep()); + break; + } + case CONDITION_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.GateNode) +} + +void GateNode::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base); + clear_has_condition(); +} + +GateNode::~GateNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.GateNode) + SharedDtor(); +} + +void GateNode::SharedDtor() { + if (has_condition()) { + clear_condition(); + } +} + +void GateNode::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GateNode& GateNode::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void GateNode::clear_condition() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.GateNode) + switch (condition_case()) { + case kApprove: { + delete condition_.approve_; + break; + } + case kSignal: { + delete condition_.signal_; + break; + } + case kSleep: { + delete condition_.sleep_; + break; + } + case CONDITION_NOT_SET: { + break; + } + } + _oneof_case_[0] = CONDITION_NOT_SET; +} + + +void GateNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.GateNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_condition(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GateNode::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.ApproveCondition approve = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ApproveCondition::_InternalParse; + object = msg->mutable_approve(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.SignalCondition signal = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SignalCondition::_InternalParse; + object = msg->mutable_signal(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.SleepCondition sleep = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::SleepCondition::_InternalParse; + object = msg->mutable_sleep(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GateNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.GateNode) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.ApproveCondition approve = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_approve())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SignalCondition signal = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_signal())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SleepCondition sleep = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sleep())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.GateNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.GateNode) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GateNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.GateNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ApproveCondition approve = 1; + if (has_approve()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::approve(this), output); + } + + // .flyteidl.core.SignalCondition signal = 2; + if (has_signal()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::signal(this), output); + } + + // .flyteidl.core.SleepCondition sleep = 3; + if (has_sleep()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::sleep(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.GateNode) +} + +::google::protobuf::uint8* GateNode::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.GateNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ApproveCondition approve = 1; + if (has_approve()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::approve(this), target); + } + + // .flyteidl.core.SignalCondition signal = 2; + if (has_signal()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::signal(this), target); + } + + // .flyteidl.core.SleepCondition sleep = 3; + if (has_sleep()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::sleep(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.GateNode) + return target; +} + +size_t GateNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.GateNode) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (condition_case()) { + // .flyteidl.core.ApproveCondition approve = 1; + case kApprove: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *condition_.approve_); + break; + } + // .flyteidl.core.SignalCondition signal = 2; + case kSignal: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *condition_.signal_); + break; + } + // .flyteidl.core.SleepCondition sleep = 3; + case kSleep: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *condition_.sleep_); + break; + } + case CONDITION_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GateNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.GateNode) + GOOGLE_DCHECK_NE(&from, this); + const GateNode* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.GateNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.GateNode) + MergeFrom(*source); + } +} + +void GateNode::MergeFrom(const GateNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.GateNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.condition_case()) { + case kApprove: { + mutable_approve()->::flyteidl::core::ApproveCondition::MergeFrom(from.approve()); + break; + } + case kSignal: { + mutable_signal()->::flyteidl::core::SignalCondition::MergeFrom(from.signal()); + break; + } + case kSleep: { + mutable_sleep()->::flyteidl::core::SleepCondition::MergeFrom(from.sleep()); + break; + } + case CONDITION_NOT_SET: { + break; + } + } +} + +void GateNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.GateNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GateNode::CopyFrom(const GateNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.GateNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GateNode::IsInitialized() const { + return true; +} + +void GateNode::Swap(GateNode* other) { + if (other == this) return; + InternalSwap(other); +} +void GateNode::InternalSwap(GateNode* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(condition_, other->condition_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata GateNode::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ArrayNode::InitAsDefaultInstance() { + ::flyteidl::core::_ArrayNode_default_instance_._instance.get_mutable()->node_ = const_cast< ::flyteidl::core::Node*>( + ::flyteidl::core::Node::internal_default_instance()); + ::flyteidl::core::_ArrayNode_default_instance_.min_successes_ = 0u; + ::flyteidl::core::_ArrayNode_default_instance_.min_success_ratio_ = 0; +} +class ArrayNode::HasBitSetters { + public: + static const ::flyteidl::core::Node& node(const ArrayNode* msg); +}; + +const ::flyteidl::core::Node& +ArrayNode::HasBitSetters::node(const ArrayNode* msg) { + return *msg->node_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArrayNode::kNodeFieldNumber; +const int ArrayNode::kParallelismFieldNumber; +const int ArrayNode::kMinSuccessesFieldNumber; +const int ArrayNode::kMinSuccessRatioFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArrayNode::ArrayNode() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ArrayNode) +} +ArrayNode::ArrayNode(const ArrayNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_node()) { + node_ = new ::flyteidl::core::Node(*from.node_); + } else { + node_ = nullptr; + } + parallelism_ = from.parallelism_; + clear_has_success_criteria(); + switch (from.success_criteria_case()) { + case kMinSuccesses: { + set_min_successes(from.min_successes()); + break; + } + case kMinSuccessRatio: { + set_min_success_ratio(from.min_success_ratio()); + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ArrayNode) +} + +void ArrayNode::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + ::memset(&node_, 0, static_cast( + reinterpret_cast(¶llelism_) - + reinterpret_cast(&node_)) + sizeof(parallelism_)); + clear_has_success_criteria(); +} + +ArrayNode::~ArrayNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.ArrayNode) + SharedDtor(); +} + +void ArrayNode::SharedDtor() { + if (this != internal_default_instance()) delete node_; + if (has_success_criteria()) { + clear_success_criteria(); + } +} + +void ArrayNode::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ArrayNode& ArrayNode::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void ArrayNode::clear_success_criteria() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.ArrayNode) + switch (success_criteria_case()) { + case kMinSuccesses: { + // No need to clear + break; + } + case kMinSuccessRatio: { + // No need to clear + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } + _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; +} + + +void ArrayNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ArrayNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; + parallelism_ = 0u; + clear_success_criteria(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ArrayNode::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Node node = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Node::_InternalParse; + object = msg->mutable_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 parallelism = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // uint32 min_successes = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_min_successes(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // float min_success_ratio = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 37) goto handle_unusual; + msg->set_min_success_ratio(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(float); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ArrayNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ArrayNode) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Node node = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 parallelism = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, ¶llelism_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 min_successes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + clear_success_criteria(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &success_criteria_.min_successes_))); + set_has_min_successes(); + } else { + goto handle_unusual; + } + break; + } + + // float min_success_ratio = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (37 & 0xFF)) { + clear_success_criteria(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &success_criteria_.min_success_ratio_))); + set_has_min_success_ratio(); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.ArrayNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ArrayNode) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ArrayNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ArrayNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Node node = 1; + if (this->has_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::node(this), output); + } + + // uint32 parallelism = 2; + if (this->parallelism() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->parallelism(), output); + } + + // uint32 min_successes = 3; + if (has_min_successes()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->min_successes(), output); + } + + // float min_success_ratio = 4; + if (has_min_success_ratio()) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->min_success_ratio(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ArrayNode) +} + +::google::protobuf::uint8* ArrayNode::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ArrayNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Node node = 1; + if (this->has_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::node(this), target); + } + + // uint32 parallelism = 2; + if (this->parallelism() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->parallelism(), target); + } + + // uint32 min_successes = 3; + if (has_min_successes()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->min_successes(), target); + } + + // float min_success_ratio = 4; + if (has_min_success_ratio()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->min_success_ratio(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ArrayNode) + return target; +} + +size_t ArrayNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ArrayNode) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Node node = 1; + if (this->has_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *node_); + } + + // uint32 parallelism = 2; + if (this->parallelism() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->parallelism()); + } + + switch (success_criteria_case()) { + // uint32 min_successes = 3; + case kMinSuccesses: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->min_successes()); + break; + } + // float min_success_ratio = 4; + case kMinSuccessRatio: { + total_size += 1 + 4; + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ArrayNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ArrayNode) + GOOGLE_DCHECK_NE(&from, this); + const ArrayNode* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ArrayNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ArrayNode) + MergeFrom(*source); + } +} + +void ArrayNode::MergeFrom(const ArrayNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ArrayNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_node()) { + mutable_node()->::flyteidl::core::Node::MergeFrom(from.node()); + } + if (from.parallelism() != 0) { + set_parallelism(from.parallelism()); + } + switch (from.success_criteria_case()) { + case kMinSuccesses: { + set_min_successes(from.min_successes()); + break; + } + case kMinSuccessRatio: { + set_min_success_ratio(from.min_success_ratio()); + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } +} + +void ArrayNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ArrayNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArrayNode::CopyFrom(const ArrayNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ArrayNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArrayNode::IsInitialized() const { + return true; +} + +void ArrayNode::Swap(ArrayNode* other) { + if (other == this) return; + InternalSwap(other); +} +void ArrayNode::InternalSwap(ArrayNode* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(node_, other->node_); + swap(parallelism_, other->parallelism_); + swap(success_criteria_, other->success_criteria_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ArrayNode::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_NodeMetadata_default_instance_._instance.get_mutable()->timeout_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::core::_NodeMetadata_default_instance_._instance.get_mutable()->retries_ = const_cast< ::flyteidl::core::RetryStrategy*>( + ::flyteidl::core::RetryStrategy::internal_default_instance()); + ::flyteidl::core::_NodeMetadata_default_instance_.interruptible_ = false; +} +class NodeMetadata::HasBitSetters { + public: + static const ::google::protobuf::Duration& timeout(const NodeMetadata* msg); + static const ::flyteidl::core::RetryStrategy& retries(const NodeMetadata* msg); +}; + +const ::google::protobuf::Duration& +NodeMetadata::HasBitSetters::timeout(const NodeMetadata* msg) { + return *msg->timeout_; +} +const ::flyteidl::core::RetryStrategy& +NodeMetadata::HasBitSetters::retries(const NodeMetadata* msg) { + return *msg->retries_; +} +void NodeMetadata::clear_timeout() { + if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { + delete timeout_; + } + timeout_ = nullptr; +} +void NodeMetadata::clear_retries() { + if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { + delete retries_; + } + retries_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeMetadata::kNameFieldNumber; +const int NodeMetadata::kTimeoutFieldNumber; +const int NodeMetadata::kRetriesFieldNumber; +const int NodeMetadata::kInterruptibleFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeMetadata::NodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.NodeMetadata) +} +NodeMetadata::NodeMetadata(const NodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_timeout()) { + timeout_ = new ::google::protobuf::Duration(*from.timeout_); + } else { + timeout_ = nullptr; + } + if (from.has_retries()) { + retries_ = new ::flyteidl::core::RetryStrategy(*from.retries_); + } else { + retries_ = nullptr; + } + clear_has_interruptible_value(); + switch (from.interruptible_value_case()) { + case kInterruptible: { + set_interruptible(from.interruptible()); + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeMetadata) +} + +void NodeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&timeout_, 0, static_cast( + reinterpret_cast(&retries_) - + reinterpret_cast(&timeout_)) + sizeof(retries_)); + clear_has_interruptible_value(); +} + +NodeMetadata::~NodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.NodeMetadata) + SharedDtor(); +} + +void NodeMetadata::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete timeout_; + if (this != internal_default_instance()) delete retries_; + if (has_interruptible_value()) { + clear_interruptible_value(); + } +} + +void NodeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeMetadata& NodeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void NodeMetadata::clear_interruptible_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.NodeMetadata) + switch (interruptible_value_case()) { + case kInterruptible: { + // No need to clear + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; +} + + +void NodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { + delete timeout_; + } + timeout_ = nullptr; + if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { + delete retries_; + } + retries_ = nullptr; + clear_interruptible_value(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.NodeMetadata.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Duration timeout = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_timeout(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.RetryStrategy retries = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::RetryStrategy::_InternalParse; + object = msg->mutable_retries(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bool interruptible = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; + msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.NodeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.NodeMetadata.name")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration timeout = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_timeout())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.RetryStrategy retries = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_retries())); + } else { + goto handle_unusual; + } + break; + } + + // bool interruptible = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { + clear_interruptible_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &interruptible_value_.interruptible_))); + set_has_interruptible(); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.NodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeMetadata.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::timeout(this), output); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, HasBitSetters::retries(this), output); + } + + // bool interruptible = 6; + if (has_interruptible()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->interruptible(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeMetadata) +} + +::google::protobuf::uint8* NodeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeMetadata.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::timeout(this), target); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, HasBitSetters::retries(this), target); + } + + // bool interruptible = 6; + if (has_interruptible()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->interruptible(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.NodeMetadata) + return target; +} + +size_t NodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *timeout_); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *retries_); + } + + switch (interruptible_value_case()) { + // bool interruptible = 6; + case kInterruptible: { + total_size += 1 + 1; + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const NodeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeMetadata) + MergeFrom(*source); + } +} + +void NodeMetadata::MergeFrom(const NodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_timeout()) { + mutable_timeout()->::google::protobuf::Duration::MergeFrom(from.timeout()); + } + if (from.has_retries()) { + mutable_retries()->::flyteidl::core::RetryStrategy::MergeFrom(from.retries()); + } + switch (from.interruptible_value_case()) { + case kInterruptible: { + set_interruptible(from.interruptible()); + break; + } + case INTERRUPTIBLE_VALUE_NOT_SET: { + break; + } + } +} + +void NodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeMetadata::CopyFrom(const NodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeMetadata::IsInitialized() const { + return true; +} + +void NodeMetadata::Swap(NodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeMetadata::InternalSwap(NodeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(timeout_, other->timeout_); + swap(retries_, other->retries_); + swap(interruptible_value_, other->interruptible_value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata NodeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Alias::InitAsDefaultInstance() { +} +class Alias::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Alias::kVarFieldNumber; +const int Alias::kAliasFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Alias::Alias() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Alias) +} +Alias::Alias(const Alias& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.var().size() > 0) { + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.alias().size() > 0) { + alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Alias) +} + +void Alias::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Alias::~Alias() { + // @@protoc_insertion_point(destructor:flyteidl.core.Alias) + SharedDtor(); +} + +void Alias::SharedDtor() { + var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Alias::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Alias& Alias::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void Alias::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Alias) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Alias::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string var = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Alias.var"); + object = msg->mutable_var(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string alias = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Alias.alias"); + object = msg->mutable_alias(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Alias::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Alias) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string var = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Alias.var")); + } else { + goto handle_unusual; + } + break; + } + + // string alias = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_alias())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->alias().data(), static_cast(this->alias().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Alias.alias")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Alias) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Alias) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Alias::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Alias) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->var(), output); + } + + // string alias = 2; + if (this->alias().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->alias().data(), static_cast(this->alias().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.alias"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->alias(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Alias) +} + +::google::protobuf::uint8* Alias::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Alias) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->var(), target); + } + + // string alias = 2; + if (this->alias().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->alias().data(), static_cast(this->alias().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.alias"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->alias(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Alias) + return target; +} + +size_t Alias::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Alias) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + } + + // string alias = 2; + if (this->alias().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->alias()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Alias::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Alias) + GOOGLE_DCHECK_NE(&from, this); + const Alias* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Alias) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Alias) + MergeFrom(*source); + } +} + +void Alias::MergeFrom(const Alias& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Alias) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.var().size() > 0) { + + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + if (from.alias().size() > 0) { + + alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); + } +} + +void Alias::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Alias) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Alias::CopyFrom(const Alias& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Alias) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Alias::IsInitialized() const { + return true; +} + +void Alias::Swap(Alias* other) { + if (other == this) return; + InternalSwap(other); +} +void Alias::InternalSwap(Alias* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + var_.Swap(&other->var_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Alias::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Node::InitAsDefaultInstance() { + ::flyteidl::core::_Node_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::NodeMetadata*>( + ::flyteidl::core::NodeMetadata::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.task_node_ = const_cast< ::flyteidl::core::TaskNode*>( + ::flyteidl::core::TaskNode::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.workflow_node_ = const_cast< ::flyteidl::core::WorkflowNode*>( + ::flyteidl::core::WorkflowNode::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.branch_node_ = const_cast< ::flyteidl::core::BranchNode*>( + ::flyteidl::core::BranchNode::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.gate_node_ = const_cast< ::flyteidl::core::GateNode*>( + ::flyteidl::core::GateNode::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.array_node_ = const_cast< ::flyteidl::core::ArrayNode*>( + ::flyteidl::core::ArrayNode::internal_default_instance()); +} +class Node::HasBitSetters { + public: + static const ::flyteidl::core::NodeMetadata& metadata(const Node* msg); + static const ::flyteidl::core::TaskNode& task_node(const Node* msg); + static const ::flyteidl::core::WorkflowNode& workflow_node(const Node* msg); + static const ::flyteidl::core::BranchNode& branch_node(const Node* msg); + static const ::flyteidl::core::GateNode& gate_node(const Node* msg); + static const ::flyteidl::core::ArrayNode& array_node(const Node* msg); +}; + +const ::flyteidl::core::NodeMetadata& +Node::HasBitSetters::metadata(const Node* msg) { + return *msg->metadata_; +} +const ::flyteidl::core::TaskNode& +Node::HasBitSetters::task_node(const Node* msg) { + return *msg->target_.task_node_; +} +const ::flyteidl::core::WorkflowNode& +Node::HasBitSetters::workflow_node(const Node* msg) { + return *msg->target_.workflow_node_; +} +const ::flyteidl::core::BranchNode& +Node::HasBitSetters::branch_node(const Node* msg) { + return *msg->target_.branch_node_; +} +const ::flyteidl::core::GateNode& +Node::HasBitSetters::gate_node(const Node* msg) { + return *msg->target_.gate_node_; +} +const ::flyteidl::core::ArrayNode& +Node::HasBitSetters::array_node(const Node* msg) { + return *msg->target_.array_node_; +} +void Node::clear_inputs() { + inputs_.Clear(); +} +void Node::set_allocated_task_node(::flyteidl::core::TaskNode* task_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (task_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_node, submessage_arena); + } + set_has_task_node(); + target_.task_node_ = task_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.task_node) +} +void Node::set_allocated_workflow_node(::flyteidl::core::WorkflowNode* workflow_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (workflow_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_node, submessage_arena); + } + set_has_workflow_node(); + target_.workflow_node_ = workflow_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.workflow_node) +} +void Node::set_allocated_branch_node(::flyteidl::core::BranchNode* branch_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (branch_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + branch_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, branch_node, submessage_arena); + } + set_has_branch_node(); + target_.branch_node_ = branch_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.branch_node) +} +void Node::set_allocated_gate_node(::flyteidl::core::GateNode* gate_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (gate_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + gate_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, gate_node, submessage_arena); + } + set_has_gate_node(); + target_.gate_node_ = gate_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.gate_node) +} +void Node::set_allocated_array_node(::flyteidl::core::ArrayNode* array_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (array_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + array_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, array_node, submessage_arena); + } + set_has_array_node(); + target_.array_node_ = array_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.array_node) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Node::kIdFieldNumber; +const int Node::kMetadataFieldNumber; +const int Node::kInputsFieldNumber; +const int Node::kUpstreamNodeIdsFieldNumber; +const int Node::kOutputAliasesFieldNumber; +const int Node::kTaskNodeFieldNumber; +const int Node::kWorkflowNodeFieldNumber; +const int Node::kBranchNodeFieldNumber; +const int Node::kGateNodeFieldNumber; +const int Node::kArrayNodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Node::Node() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Node) +} +Node::Node(const Node& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + inputs_(from.inputs_), + upstream_node_ids_(from.upstream_node_ids_), + output_aliases_(from.output_aliases_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::NodeMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + clear_has_target(); + switch (from.target_case()) { + case kTaskNode: { + mutable_task_node()->::flyteidl::core::TaskNode::MergeFrom(from.task_node()); + break; + } + case kWorkflowNode: { + mutable_workflow_node()->::flyteidl::core::WorkflowNode::MergeFrom(from.workflow_node()); + break; + } + case kBranchNode: { + mutable_branch_node()->::flyteidl::core::BranchNode::MergeFrom(from.branch_node()); + break; + } + case kGateNode: { + mutable_gate_node()->::flyteidl::core::GateNode::MergeFrom(from.gate_node()); + break; + } + case kArrayNode: { + mutable_array_node()->::flyteidl::core::ArrayNode::MergeFrom(from.array_node()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Node) +} + +void Node::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_ = nullptr; + clear_has_target(); +} + +Node::~Node() { + // @@protoc_insertion_point(destructor:flyteidl.core.Node) + SharedDtor(); +} + +void Node::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete metadata_; + if (has_target()) { + clear_target(); + } +} + +void Node::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Node& Node::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void Node::clear_target() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Node) + switch (target_case()) { + case kTaskNode: { + delete target_.task_node_; + break; + } + case kWorkflowNode: { + delete target_.workflow_node_; + break; + } + case kBranchNode: { + delete target_.branch_node_; + break; + } + case kGateNode: { + delete target_.gate_node_; + break; + } + case kArrayNode: { + delete target_.array_node_; + break; + } + case TARGET_NOT_SET: { + break; + } + } + _oneof_case_[0] = TARGET_NOT_SET; +} + + +void Node::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + inputs_.Clear(); + upstream_node_ids_.Clear(); + output_aliases_.Clear(); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + clear_target(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Node::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Node.id"); + object = msg->mutable_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.NodeMetadata metadata = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.Binding inputs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Binding::_InternalParse; + object = msg->add_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // repeated string upstream_node_ids = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.core.Node.upstream_node_ids"); + object = msg->add_upstream_node_ids(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.Alias output_aliases = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Alias::_InternalParse; + object = msg->add_output_aliases(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + // .flyteidl.core.TaskNode task_node = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskNode::_InternalParse; + object = msg->mutable_task_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowNode workflow_node = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowNode::_InternalParse; + object = msg->mutable_workflow_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.BranchNode branch_node = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::BranchNode::_InternalParse; + object = msg->mutable_branch_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.GateNode gate_node = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::GateNode::_InternalParse; + object = msg->mutable_gate_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.ArrayNode array_node = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ArrayNode::_InternalParse; + object = msg->mutable_array_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Node::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Node) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Node.id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeMetadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Binding inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string upstream_node_ids = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_upstream_node_ids())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->upstream_node_ids(this->upstream_node_ids_size() - 1).data(), + static_cast(this->upstream_node_ids(this->upstream_node_ids_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Node.upstream_node_ids")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_output_aliases())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskNode task_node = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowNode workflow_node = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BranchNode branch_node = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_branch_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.GateNode gate_node = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_gate_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ArrayNode array_node = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_array_node())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Node) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Node) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Node::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // .flyteidl.core.NodeMetadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::metadata(this), output); + } + + // repeated .flyteidl.core.Binding inputs = 3; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->inputs(static_cast(i)), + output); + } + + // repeated string upstream_node_ids = 4; + for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->upstream_node_ids(i).data(), static_cast(this->upstream_node_ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.upstream_node_ids"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->upstream_node_ids(i), output); + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + for (unsigned int i = 0, + n = static_cast(this->output_aliases_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->output_aliases(static_cast(i)), + output); + } + + // .flyteidl.core.TaskNode task_node = 6; + if (has_task_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::task_node(this), output); + } + + // .flyteidl.core.WorkflowNode workflow_node = 7; + if (has_workflow_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::workflow_node(this), output); + } + + // .flyteidl.core.BranchNode branch_node = 8; + if (has_branch_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::branch_node(this), output); + } + + // .flyteidl.core.GateNode gate_node = 9; + if (has_gate_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::gate_node(this), output); + } + + // .flyteidl.core.ArrayNode array_node = 10; + if (has_array_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::array_node(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Node) +} + +::google::protobuf::uint8* Node::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // .flyteidl.core.NodeMetadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::metadata(this), target); + } + + // repeated .flyteidl.core.Binding inputs = 3; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->inputs(static_cast(i)), target); + } + + // repeated string upstream_node_ids = 4; + for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->upstream_node_ids(i).data(), static_cast(this->upstream_node_ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.upstream_node_ids"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(4, this->upstream_node_ids(i), target); + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + for (unsigned int i = 0, + n = static_cast(this->output_aliases_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->output_aliases(static_cast(i)), target); + } + + // .flyteidl.core.TaskNode task_node = 6; + if (has_task_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::task_node(this), target); + } + + // .flyteidl.core.WorkflowNode workflow_node = 7; + if (has_workflow_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::workflow_node(this), target); + } + + // .flyteidl.core.BranchNode branch_node = 8; + if (has_branch_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::branch_node(this), target); + } + + // .flyteidl.core.GateNode gate_node = 9; + if (has_gate_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::gate_node(this), target); + } + + // .flyteidl.core.ArrayNode array_node = 10; + if (has_array_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::array_node(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Node) + return target; +} + +size_t Node::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Node) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.Binding inputs = 3; + { + unsigned int count = static_cast(this->inputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->inputs(static_cast(i))); + } + } + + // repeated string upstream_node_ids = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->upstream_node_ids_size()); + for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->upstream_node_ids(i)); + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + { + unsigned int count = static_cast(this->output_aliases_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->output_aliases(static_cast(i))); + } + } + + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // .flyteidl.core.NodeMetadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + switch (target_case()) { + // .flyteidl.core.TaskNode task_node = 6; + case kTaskNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.task_node_); + break; + } + // .flyteidl.core.WorkflowNode workflow_node = 7; + case kWorkflowNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.workflow_node_); + break; + } + // .flyteidl.core.BranchNode branch_node = 8; + case kBranchNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.branch_node_); + break; + } + // .flyteidl.core.GateNode gate_node = 9; + case kGateNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.gate_node_); + break; + } + // .flyteidl.core.ArrayNode array_node = 10; + case kArrayNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.array_node_); + break; + } + case TARGET_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Node::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Node) + GOOGLE_DCHECK_NE(&from, this); + const Node* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Node) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Node) + MergeFrom(*source); + } +} + +void Node::MergeFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Node) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + inputs_.MergeFrom(from.inputs_); + upstream_node_ids_.MergeFrom(from.upstream_node_ids_); + output_aliases_.MergeFrom(from.output_aliases_); + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::NodeMetadata::MergeFrom(from.metadata()); + } + switch (from.target_case()) { + case kTaskNode: { + mutable_task_node()->::flyteidl::core::TaskNode::MergeFrom(from.task_node()); + break; + } + case kWorkflowNode: { + mutable_workflow_node()->::flyteidl::core::WorkflowNode::MergeFrom(from.workflow_node()); + break; + } + case kBranchNode: { + mutable_branch_node()->::flyteidl::core::BranchNode::MergeFrom(from.branch_node()); + break; + } + case kGateNode: { + mutable_gate_node()->::flyteidl::core::GateNode::MergeFrom(from.gate_node()); + break; + } + case kArrayNode: { + mutable_array_node()->::flyteidl::core::ArrayNode::MergeFrom(from.array_node()); + break; + } + case TARGET_NOT_SET: { + break; + } + } +} + +void Node::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Node) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Node::CopyFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Node) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Node::IsInitialized() const { + return true; +} + +void Node::Swap(Node* other) { + if (other == this) return; + InternalSwap(other); +} +void Node::InternalSwap(Node* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); + upstream_node_ids_.InternalSwap(CastToBase(&other->upstream_node_ids_)); + CastToBase(&output_aliases_)->InternalSwap(CastToBase(&other->output_aliases_)); + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(metadata_, other->metadata_); + swap(target_, other->target_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata Node::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +WorkflowMetadata_TagsEntry_DoNotUse::WorkflowMetadata_TagsEntry_DoNotUse() {} +WorkflowMetadata_TagsEntry_DoNotUse::WorkflowMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void WorkflowMetadata_TagsEntry_DoNotUse::MergeFrom(const WorkflowMetadata_TagsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata WorkflowMetadata_TagsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[13]; +} +void WorkflowMetadata_TagsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowMetadata_TagsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + WorkflowMetadata_TagsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowMetadata.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowMetadata.TagsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void WorkflowMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_WorkflowMetadata_default_instance_._instance.get_mutable()->quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( + ::flyteidl::core::QualityOfService::internal_default_instance()); +} +class WorkflowMetadata::HasBitSetters { + public: + static const ::flyteidl::core::QualityOfService& quality_of_service(const WorkflowMetadata* msg); +}; + +const ::flyteidl::core::QualityOfService& +WorkflowMetadata::HasBitSetters::quality_of_service(const WorkflowMetadata* msg) { + return *msg->quality_of_service_; +} +void WorkflowMetadata::clear_quality_of_service() { + if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { + delete quality_of_service_; + } + quality_of_service_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowMetadata::kQualityOfServiceFieldNumber; +const int WorkflowMetadata::kOnFailureFieldNumber; +const int WorkflowMetadata::kTagsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowMetadata::WorkflowMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowMetadata) +} +WorkflowMetadata::WorkflowMetadata(const WorkflowMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tags_.MergeFrom(from.tags_); + if (from.has_quality_of_service()) { + quality_of_service_ = new ::flyteidl::core::QualityOfService(*from.quality_of_service_); + } else { + quality_of_service_ = nullptr; + } + on_failure_ = from.on_failure_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowMetadata) +} + +void WorkflowMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); + ::memset(&quality_of_service_, 0, static_cast( + reinterpret_cast(&on_failure_) - + reinterpret_cast(&quality_of_service_)) + sizeof(on_failure_)); +} + +WorkflowMetadata::~WorkflowMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowMetadata) + SharedDtor(); +} + +void WorkflowMetadata::SharedDtor() { + if (this != internal_default_instance()) delete quality_of_service_; +} + +void WorkflowMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowMetadata& WorkflowMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { + delete quality_of_service_; + } + quality_of_service_ = nullptr; + on_failure_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.QualityOfService quality_of_service = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::QualityOfService::_InternalParse; + object = msg->mutable_quality_of_service(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_on_failure(static_cast<::flyteidl::core::WorkflowMetadata_OnFailurePolicy>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // map tags = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->tags_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.QualityOfService quality_of_service = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_quality_of_service())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_on_failure(static_cast< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy >(value)); + } else { + goto handle_unusual; + } + break; + } + + // map tags = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + WorkflowMetadata_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + WorkflowMetadata_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowMetadata.TagsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowMetadata.TagsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.QualityOfService quality_of_service = 1; + if (this->has_quality_of_service()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::quality_of_service(this), output); + } + + // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + if (this->on_failure() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->on_failure(), output); + } + + // map tags = 3; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowMetadata.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowMetadata.TagsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowMetadata) +} + +::google::protobuf::uint8* WorkflowMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.QualityOfService quality_of_service = 1; + if (this->has_quality_of_service()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::quality_of_service(this), target); + } + + // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + if (this->on_failure() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->on_failure(), target); + } + + // map tags = 3; + if (!this->tags().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowMetadata.TagsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowMetadata.TagsEntry.value"); + } + }; + + if (false && + this->tags().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->tags().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowMetadata) + return target; +} + +size_t WorkflowMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map tags = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->tags().begin(); + it != this->tags().end(); ++it) { + entry.reset(tags_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // .flyteidl.core.QualityOfService quality_of_service = 1; + if (this->has_quality_of_service()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *quality_of_service_); + } + + // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + if (this->on_failure() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->on_failure()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowMetadata) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowMetadata) + MergeFrom(*source); + } +} + +void WorkflowMetadata::MergeFrom(const WorkflowMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.has_quality_of_service()) { + mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); + } + if (from.on_failure() != 0) { + set_on_failure(from.on_failure()); + } +} + +void WorkflowMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowMetadata::CopyFrom(const WorkflowMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowMetadata::IsInitialized() const { + return true; +} + +void WorkflowMetadata::Swap(WorkflowMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowMetadata::InternalSwap(WorkflowMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.Swap(&other->tags_); + swap(quality_of_service_, other->quality_of_service_); + swap(on_failure_, other->on_failure_); +} + +::google::protobuf::Metadata WorkflowMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowMetadataDefaults::InitAsDefaultInstance() { +} +class WorkflowMetadataDefaults::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowMetadataDefaults::kInterruptibleFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowMetadataDefaults::WorkflowMetadataDefaults() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowMetadataDefaults) +} +WorkflowMetadataDefaults::WorkflowMetadataDefaults(const WorkflowMetadataDefaults& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + interruptible_ = from.interruptible_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowMetadataDefaults) +} + +void WorkflowMetadataDefaults::SharedCtor() { + interruptible_ = false; +} + +WorkflowMetadataDefaults::~WorkflowMetadataDefaults() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowMetadataDefaults) + SharedDtor(); +} + +void WorkflowMetadataDefaults::SharedDtor() { +} + +void WorkflowMetadataDefaults::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowMetadataDefaults& WorkflowMetadataDefaults::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowMetadataDefaults::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowMetadataDefaults) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + interruptible_ = false; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowMetadataDefaults::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // bool interruptible = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowMetadataDefaults::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowMetadataDefaults) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bool interruptible = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &interruptible_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowMetadataDefaults) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowMetadataDefaults) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowMetadataDefaults::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowMetadataDefaults) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool interruptible = 1; + if (this->interruptible() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->interruptible(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowMetadataDefaults) +} + +::google::protobuf::uint8* WorkflowMetadataDefaults::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowMetadataDefaults) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool interruptible = 1; + if (this->interruptible() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->interruptible(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowMetadataDefaults) + return target; +} + +size_t WorkflowMetadataDefaults::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowMetadataDefaults) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool interruptible = 1; + if (this->interruptible() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowMetadataDefaults::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowMetadataDefaults) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowMetadataDefaults* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowMetadataDefaults) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowMetadataDefaults) + MergeFrom(*source); + } +} + +void WorkflowMetadataDefaults::MergeFrom(const WorkflowMetadataDefaults& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowMetadataDefaults) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.interruptible() != 0) { + set_interruptible(from.interruptible()); + } +} + +void WorkflowMetadataDefaults::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowMetadataDefaults) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowMetadataDefaults::CopyFrom(const WorkflowMetadataDefaults& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowMetadataDefaults) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowMetadataDefaults::IsInitialized() const { + return true; +} + +void WorkflowMetadataDefaults::Swap(WorkflowMetadataDefaults* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowMetadataDefaults::InternalSwap(WorkflowMetadataDefaults* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(interruptible_, other->interruptible_); +} + +::google::protobuf::Metadata WorkflowMetadataDefaults::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowTemplate::InitAsDefaultInstance() { + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::WorkflowMetadata*>( + ::flyteidl::core::WorkflowMetadata::internal_default_instance()); + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->interface_ = const_cast< ::flyteidl::core::TypedInterface*>( + ::flyteidl::core::TypedInterface::internal_default_instance()); + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->failure_node_ = const_cast< ::flyteidl::core::Node*>( + ::flyteidl::core::Node::internal_default_instance()); + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->metadata_defaults_ = const_cast< ::flyteidl::core::WorkflowMetadataDefaults*>( + ::flyteidl::core::WorkflowMetadataDefaults::internal_default_instance()); +} +class WorkflowTemplate::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const WorkflowTemplate* msg); + static const ::flyteidl::core::WorkflowMetadata& metadata(const WorkflowTemplate* msg); + static const ::flyteidl::core::TypedInterface& interface(const WorkflowTemplate* msg); + static const ::flyteidl::core::Node& failure_node(const WorkflowTemplate* msg); + static const ::flyteidl::core::WorkflowMetadataDefaults& metadata_defaults(const WorkflowTemplate* msg); +}; + +const ::flyteidl::core::Identifier& +WorkflowTemplate::HasBitSetters::id(const WorkflowTemplate* msg) { + return *msg->id_; +} +const ::flyteidl::core::WorkflowMetadata& +WorkflowTemplate::HasBitSetters::metadata(const WorkflowTemplate* msg) { + return *msg->metadata_; +} +const ::flyteidl::core::TypedInterface& +WorkflowTemplate::HasBitSetters::interface(const WorkflowTemplate* msg) { + return *msg->interface_; +} +const ::flyteidl::core::Node& +WorkflowTemplate::HasBitSetters::failure_node(const WorkflowTemplate* msg) { + return *msg->failure_node_; +} +const ::flyteidl::core::WorkflowMetadataDefaults& +WorkflowTemplate::HasBitSetters::metadata_defaults(const WorkflowTemplate* msg) { + return *msg->metadata_defaults_; +} +void WorkflowTemplate::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void WorkflowTemplate::clear_interface() { + if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { + delete interface_; + } + interface_ = nullptr; +} +void WorkflowTemplate::clear_outputs() { + outputs_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowTemplate::kIdFieldNumber; +const int WorkflowTemplate::kMetadataFieldNumber; +const int WorkflowTemplate::kInterfaceFieldNumber; +const int WorkflowTemplate::kNodesFieldNumber; +const int WorkflowTemplate::kOutputsFieldNumber; +const int WorkflowTemplate::kFailureNodeFieldNumber; +const int WorkflowTemplate::kMetadataDefaultsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowTemplate::WorkflowTemplate() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowTemplate) +} +WorkflowTemplate::WorkflowTemplate(const WorkflowTemplate& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + nodes_(from.nodes_), + outputs_(from.outputs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::WorkflowMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_interface()) { + interface_ = new ::flyteidl::core::TypedInterface(*from.interface_); + } else { + interface_ = nullptr; + } + if (from.has_failure_node()) { + failure_node_ = new ::flyteidl::core::Node(*from.failure_node_); + } else { + failure_node_ = nullptr; + } + if (from.has_metadata_defaults()) { + metadata_defaults_ = new ::flyteidl::core::WorkflowMetadataDefaults(*from.metadata_defaults_); + } else { + metadata_defaults_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowTemplate) +} + +void WorkflowTemplate::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&metadata_defaults_) - + reinterpret_cast(&id_)) + sizeof(metadata_defaults_)); +} + +WorkflowTemplate::~WorkflowTemplate() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowTemplate) + SharedDtor(); +} + +void WorkflowTemplate::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete interface_; + if (this != internal_default_instance()) delete failure_node_; + if (this != internal_default_instance()) delete metadata_defaults_; +} + +void WorkflowTemplate::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowTemplate& WorkflowTemplate::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowTemplate::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + nodes_.Clear(); + outputs_.Clear(); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { + delete interface_; + } + interface_ = nullptr; + if (GetArenaNoVirtual() == nullptr && failure_node_ != nullptr) { + delete failure_node_; + } + failure_node_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_defaults_ != nullptr) { + delete metadata_defaults_; + } + metadata_defaults_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowTemplate::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowMetadata metadata = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TypedInterface interface = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TypedInterface::_InternalParse; + object = msg->mutable_interface(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.Node nodes = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Node::_InternalParse; + object = msg->add_nodes(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // repeated .flyteidl.core.Binding outputs = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Binding::_InternalParse; + object = msg->add_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + // .flyteidl.core.Node failure_node = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Node::_InternalParse; + object = msg->mutable_failure_node(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowMetadataDefaults::_InternalParse; + object = msg->mutable_metadata_defaults(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowTemplate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowTemplate) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TypedInterface interface = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interface())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Node nodes = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_nodes())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Binding outputs = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Node failure_node = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_failure_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata_defaults())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowTemplate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowTemplate) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowTemplate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::metadata(this), output); + } + + // .flyteidl.core.TypedInterface interface = 3; + if (this->has_interface()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::interface(this), output); + } + + // repeated .flyteidl.core.Node nodes = 4; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->nodes(static_cast(i)), + output); + } + + // repeated .flyteidl.core.Binding outputs = 5; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->outputs(static_cast(i)), + output); + } + + // .flyteidl.core.Node failure_node = 6; + if (this->has_failure_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::failure_node(this), output); + } + + // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + if (this->has_metadata_defaults()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::metadata_defaults(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowTemplate) +} + +::google::protobuf::uint8* WorkflowTemplate::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::metadata(this), target); + } + + // .flyteidl.core.TypedInterface interface = 3; + if (this->has_interface()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::interface(this), target); + } + + // repeated .flyteidl.core.Node nodes = 4; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->nodes(static_cast(i)), target); + } + + // repeated .flyteidl.core.Binding outputs = 5; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->outputs(static_cast(i)), target); + } + + // .flyteidl.core.Node failure_node = 6; + if (this->has_failure_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::failure_node(this), target); + } + + // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + if (this->has_metadata_defaults()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::metadata_defaults(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowTemplate) + return target; +} + +size_t WorkflowTemplate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowTemplate) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.Node nodes = 4; + { + unsigned int count = static_cast(this->nodes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->nodes(static_cast(i))); + } + } + + // repeated .flyteidl.core.Binding outputs = 5; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .flyteidl.core.TypedInterface interface = 3; + if (this->has_interface()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *interface_); + } + + // .flyteidl.core.Node failure_node = 6; + if (this->has_failure_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *failure_node_); + } + + // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + if (this->has_metadata_defaults()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_defaults_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowTemplate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowTemplate) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowTemplate* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowTemplate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowTemplate) + MergeFrom(*source); + } +} + +void WorkflowTemplate::MergeFrom(const WorkflowTemplate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowTemplate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + nodes_.MergeFrom(from.nodes_); + outputs_.MergeFrom(from.outputs_); + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::WorkflowMetadata::MergeFrom(from.metadata()); + } + if (from.has_interface()) { + mutable_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.interface()); + } + if (from.has_failure_node()) { + mutable_failure_node()->::flyteidl::core::Node::MergeFrom(from.failure_node()); + } + if (from.has_metadata_defaults()) { + mutable_metadata_defaults()->::flyteidl::core::WorkflowMetadataDefaults::MergeFrom(from.metadata_defaults()); + } +} + +void WorkflowTemplate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowTemplate::CopyFrom(const WorkflowTemplate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowTemplate::IsInitialized() const { + return true; +} + +void WorkflowTemplate::Swap(WorkflowTemplate* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowTemplate::InternalSwap(WorkflowTemplate* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&nodes_)->InternalSwap(CastToBase(&other->nodes_)); + CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); + swap(id_, other->id_); + swap(metadata_, other->metadata_); + swap(interface_, other->interface_); + swap(failure_node_, other->failure_node_); + swap(metadata_defaults_, other->metadata_defaults_); +} + +::google::protobuf::Metadata WorkflowTemplate::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskNodeOverrides::InitAsDefaultInstance() { + ::flyteidl::core::_TaskNodeOverrides_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); +} +class TaskNodeOverrides::HasBitSetters { + public: + static const ::flyteidl::core::Resources& resources(const TaskNodeOverrides* msg); +}; + +const ::flyteidl::core::Resources& +TaskNodeOverrides::HasBitSetters::resources(const TaskNodeOverrides* msg) { + return *msg->resources_; +} +void TaskNodeOverrides::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskNodeOverrides::kResourcesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskNodeOverrides::TaskNodeOverrides() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskNodeOverrides) +} +TaskNodeOverrides::TaskNodeOverrides(const TaskNodeOverrides& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskNodeOverrides) +} + +void TaskNodeOverrides::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base); + resources_ = nullptr; +} + +TaskNodeOverrides::~TaskNodeOverrides() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskNodeOverrides) + SharedDtor(); +} + +void TaskNodeOverrides::SharedDtor() { + if (this != internal_default_instance()) delete resources_; +} + +void TaskNodeOverrides::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskNodeOverrides& TaskNodeOverrides::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void TaskNodeOverrides::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskNodeOverrides) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskNodeOverrides::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Resources resources = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskNodeOverrides::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskNodeOverrides) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Resources resources = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskNodeOverrides) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskNodeOverrides) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskNodeOverrides::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskNodeOverrides) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Resources resources = 1; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::resources(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskNodeOverrides) +} + +::google::protobuf::uint8* TaskNodeOverrides::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskNodeOverrides) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Resources resources = 1; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::resources(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskNodeOverrides) + return target; +} + +size_t TaskNodeOverrides::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskNodeOverrides) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Resources resources = 1; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskNodeOverrides::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskNodeOverrides) + GOOGLE_DCHECK_NE(&from, this); + const TaskNodeOverrides* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskNodeOverrides) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskNodeOverrides) + MergeFrom(*source); + } +} + +void TaskNodeOverrides::MergeFrom(const TaskNodeOverrides& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskNodeOverrides) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } +} + +void TaskNodeOverrides::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskNodeOverrides) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskNodeOverrides::CopyFrom(const TaskNodeOverrides& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskNodeOverrides) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskNodeOverrides::IsInitialized() const { + return true; +} + +void TaskNodeOverrides::Swap(TaskNodeOverrides* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskNodeOverrides::InternalSwap(TaskNodeOverrides* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(resources_, other->resources_); +} + +::google::protobuf::Metadata TaskNodeOverrides::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::IfBlock* Arena::CreateMaybeMessage< ::flyteidl::core::IfBlock >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::IfBlock >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::IfElseBlock* Arena::CreateMaybeMessage< ::flyteidl::core::IfElseBlock >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::IfElseBlock >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::BranchNode* Arena::CreateMaybeMessage< ::flyteidl::core::BranchNode >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::BranchNode >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskNode* Arena::CreateMaybeMessage< ::flyteidl::core::TaskNode >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskNode >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowNode* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowNode >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowNode >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ApproveCondition* Arena::CreateMaybeMessage< ::flyteidl::core::ApproveCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ApproveCondition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::SignalCondition* Arena::CreateMaybeMessage< ::flyteidl::core::SignalCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::SignalCondition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::SleepCondition* Arena::CreateMaybeMessage< ::flyteidl::core::SleepCondition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::SleepCondition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::GateNode* Arena::CreateMaybeMessage< ::flyteidl::core::GateNode >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::GateNode >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::ArrayNode* Arena::CreateMaybeMessage< ::flyteidl::core::ArrayNode >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::ArrayNode >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::NodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::NodeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::NodeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Alias* Arena::CreateMaybeMessage< ::flyteidl::core::Alias >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Alias >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::Node* Arena::CreateMaybeMessage< ::flyteidl::core::Node >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::Node >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowMetadataDefaults* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowMetadataDefaults >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowMetadataDefaults >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowTemplate* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowTemplate >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowTemplate >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskNodeOverrides* Arena::CreateMaybeMessage< ::flyteidl::core::TaskNodeOverrides >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::TaskNodeOverrides >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h new file mode 100644 index 0000000000..9ee5eb92c8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h @@ -0,0 +1,5007 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "flyteidl/core/condition.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/types.pb.h" +#include "flyteidl/core/security.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fworkflow_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[18] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto(); +namespace flyteidl { +namespace core { +class Alias; +class AliasDefaultTypeInternal; +extern AliasDefaultTypeInternal _Alias_default_instance_; +class ApproveCondition; +class ApproveConditionDefaultTypeInternal; +extern ApproveConditionDefaultTypeInternal _ApproveCondition_default_instance_; +class ArrayNode; +class ArrayNodeDefaultTypeInternal; +extern ArrayNodeDefaultTypeInternal _ArrayNode_default_instance_; +class BranchNode; +class BranchNodeDefaultTypeInternal; +extern BranchNodeDefaultTypeInternal _BranchNode_default_instance_; +class GateNode; +class GateNodeDefaultTypeInternal; +extern GateNodeDefaultTypeInternal _GateNode_default_instance_; +class IfBlock; +class IfBlockDefaultTypeInternal; +extern IfBlockDefaultTypeInternal _IfBlock_default_instance_; +class IfElseBlock; +class IfElseBlockDefaultTypeInternal; +extern IfElseBlockDefaultTypeInternal _IfElseBlock_default_instance_; +class Node; +class NodeDefaultTypeInternal; +extern NodeDefaultTypeInternal _Node_default_instance_; +class NodeMetadata; +class NodeMetadataDefaultTypeInternal; +extern NodeMetadataDefaultTypeInternal _NodeMetadata_default_instance_; +class SignalCondition; +class SignalConditionDefaultTypeInternal; +extern SignalConditionDefaultTypeInternal _SignalCondition_default_instance_; +class SleepCondition; +class SleepConditionDefaultTypeInternal; +extern SleepConditionDefaultTypeInternal _SleepCondition_default_instance_; +class TaskNode; +class TaskNodeDefaultTypeInternal; +extern TaskNodeDefaultTypeInternal _TaskNode_default_instance_; +class TaskNodeOverrides; +class TaskNodeOverridesDefaultTypeInternal; +extern TaskNodeOverridesDefaultTypeInternal _TaskNodeOverrides_default_instance_; +class WorkflowMetadata; +class WorkflowMetadataDefaultTypeInternal; +extern WorkflowMetadataDefaultTypeInternal _WorkflowMetadata_default_instance_; +class WorkflowMetadataDefaults; +class WorkflowMetadataDefaultsDefaultTypeInternal; +extern WorkflowMetadataDefaultsDefaultTypeInternal _WorkflowMetadataDefaults_default_instance_; +class WorkflowMetadata_TagsEntry_DoNotUse; +class WorkflowMetadata_TagsEntry_DoNotUseDefaultTypeInternal; +extern WorkflowMetadata_TagsEntry_DoNotUseDefaultTypeInternal _WorkflowMetadata_TagsEntry_DoNotUse_default_instance_; +class WorkflowNode; +class WorkflowNodeDefaultTypeInternal; +extern WorkflowNodeDefaultTypeInternal _WorkflowNode_default_instance_; +class WorkflowTemplate; +class WorkflowTemplateDefaultTypeInternal; +extern WorkflowTemplateDefaultTypeInternal _WorkflowTemplate_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::Alias* Arena::CreateMaybeMessage<::flyteidl::core::Alias>(Arena*); +template<> ::flyteidl::core::ApproveCondition* Arena::CreateMaybeMessage<::flyteidl::core::ApproveCondition>(Arena*); +template<> ::flyteidl::core::ArrayNode* Arena::CreateMaybeMessage<::flyteidl::core::ArrayNode>(Arena*); +template<> ::flyteidl::core::BranchNode* Arena::CreateMaybeMessage<::flyteidl::core::BranchNode>(Arena*); +template<> ::flyteidl::core::GateNode* Arena::CreateMaybeMessage<::flyteidl::core::GateNode>(Arena*); +template<> ::flyteidl::core::IfBlock* Arena::CreateMaybeMessage<::flyteidl::core::IfBlock>(Arena*); +template<> ::flyteidl::core::IfElseBlock* Arena::CreateMaybeMessage<::flyteidl::core::IfElseBlock>(Arena*); +template<> ::flyteidl::core::Node* Arena::CreateMaybeMessage<::flyteidl::core::Node>(Arena*); +template<> ::flyteidl::core::NodeMetadata* Arena::CreateMaybeMessage<::flyteidl::core::NodeMetadata>(Arena*); +template<> ::flyteidl::core::SignalCondition* Arena::CreateMaybeMessage<::flyteidl::core::SignalCondition>(Arena*); +template<> ::flyteidl::core::SleepCondition* Arena::CreateMaybeMessage<::flyteidl::core::SleepCondition>(Arena*); +template<> ::flyteidl::core::TaskNode* Arena::CreateMaybeMessage<::flyteidl::core::TaskNode>(Arena*); +template<> ::flyteidl::core::TaskNodeOverrides* Arena::CreateMaybeMessage<::flyteidl::core::TaskNodeOverrides>(Arena*); +template<> ::flyteidl::core::WorkflowMetadata* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowMetadata>(Arena*); +template<> ::flyteidl::core::WorkflowMetadataDefaults* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowMetadataDefaults>(Arena*); +template<> ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::core::WorkflowNode* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowNode>(Arena*); +template<> ::flyteidl::core::WorkflowTemplate* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +enum WorkflowMetadata_OnFailurePolicy { + WorkflowMetadata_OnFailurePolicy_FAIL_IMMEDIATELY = 0, + WorkflowMetadata_OnFailurePolicy_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1, + WorkflowMetadata_OnFailurePolicy_WorkflowMetadata_OnFailurePolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + WorkflowMetadata_OnFailurePolicy_WorkflowMetadata_OnFailurePolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool WorkflowMetadata_OnFailurePolicy_IsValid(int value); +const WorkflowMetadata_OnFailurePolicy WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MIN = WorkflowMetadata_OnFailurePolicy_FAIL_IMMEDIATELY; +const WorkflowMetadata_OnFailurePolicy WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MAX = WorkflowMetadata_OnFailurePolicy_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; +const int WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_ARRAYSIZE = WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MAX + 1; + +const ::google::protobuf::EnumDescriptor* WorkflowMetadata_OnFailurePolicy_descriptor(); +inline const ::std::string& WorkflowMetadata_OnFailurePolicy_Name(WorkflowMetadata_OnFailurePolicy value) { + return ::google::protobuf::internal::NameOfEnum( + WorkflowMetadata_OnFailurePolicy_descriptor(), value); +} +inline bool WorkflowMetadata_OnFailurePolicy_Parse( + const ::std::string& name, WorkflowMetadata_OnFailurePolicy* value) { + return ::google::protobuf::internal::ParseNamedEnum( + WorkflowMetadata_OnFailurePolicy_descriptor(), name, value); +} +// =================================================================== + +class IfBlock final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IfBlock) */ { + public: + IfBlock(); + virtual ~IfBlock(); + + IfBlock(const IfBlock& from); + + inline IfBlock& operator=(const IfBlock& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IfBlock(IfBlock&& from) noexcept + : IfBlock() { + *this = ::std::move(from); + } + + inline IfBlock& operator=(IfBlock&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const IfBlock& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IfBlock* internal_default_instance() { + return reinterpret_cast( + &_IfBlock_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(IfBlock* other); + friend void swap(IfBlock& a, IfBlock& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IfBlock* New() const final { + return CreateMaybeMessage(nullptr); + } + + IfBlock* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IfBlock& from); + void MergeFrom(const IfBlock& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IfBlock* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.BooleanExpression condition = 1; + bool has_condition() const; + void clear_condition(); + static const int kConditionFieldNumber = 1; + const ::flyteidl::core::BooleanExpression& condition() const; + ::flyteidl::core::BooleanExpression* release_condition(); + ::flyteidl::core::BooleanExpression* mutable_condition(); + void set_allocated_condition(::flyteidl::core::BooleanExpression* condition); + + // .flyteidl.core.Node then_node = 2; + bool has_then_node() const; + void clear_then_node(); + static const int kThenNodeFieldNumber = 2; + const ::flyteidl::core::Node& then_node() const; + ::flyteidl::core::Node* release_then_node(); + ::flyteidl::core::Node* mutable_then_node(); + void set_allocated_then_node(::flyteidl::core::Node* then_node); + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::BooleanExpression* condition_; + ::flyteidl::core::Node* then_node_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class IfElseBlock final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IfElseBlock) */ { + public: + IfElseBlock(); + virtual ~IfElseBlock(); + + IfElseBlock(const IfElseBlock& from); + + inline IfElseBlock& operator=(const IfElseBlock& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IfElseBlock(IfElseBlock&& from) noexcept + : IfElseBlock() { + *this = ::std::move(from); + } + + inline IfElseBlock& operator=(IfElseBlock&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const IfElseBlock& default_instance(); + + enum DefaultCase { + kElseNode = 3, + kError = 4, + DEFAULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IfElseBlock* internal_default_instance() { + return reinterpret_cast( + &_IfElseBlock_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(IfElseBlock* other); + friend void swap(IfElseBlock& a, IfElseBlock& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IfElseBlock* New() const final { + return CreateMaybeMessage(nullptr); + } + + IfElseBlock* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IfElseBlock& from); + void MergeFrom(const IfElseBlock& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IfElseBlock* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.IfBlock other = 2; + int other_size() const; + void clear_other(); + static const int kOtherFieldNumber = 2; + ::flyteidl::core::IfBlock* mutable_other(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >* + mutable_other(); + const ::flyteidl::core::IfBlock& other(int index) const; + ::flyteidl::core::IfBlock* add_other(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >& + other() const; + + // .flyteidl.core.IfBlock case = 1; + bool has_case_() const; + void clear_case_(); + static const int kCaseFieldNumber = 1; + const ::flyteidl::core::IfBlock& case_() const; + ::flyteidl::core::IfBlock* release_case_(); + ::flyteidl::core::IfBlock* mutable_case_(); + void set_allocated_case_(::flyteidl::core::IfBlock* case_); + + // .flyteidl.core.Node else_node = 3; + bool has_else_node() const; + void clear_else_node(); + static const int kElseNodeFieldNumber = 3; + const ::flyteidl::core::Node& else_node() const; + ::flyteidl::core::Node* release_else_node(); + ::flyteidl::core::Node* mutable_else_node(); + void set_allocated_else_node(::flyteidl::core::Node* else_node); + + // .flyteidl.core.Error error = 4; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 4; + const ::flyteidl::core::Error& error() const; + ::flyteidl::core::Error* release_error(); + ::flyteidl::core::Error* mutable_error(); + void set_allocated_error(::flyteidl::core::Error* error); + + void clear_default(); + DefaultCase default_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) + private: + class HasBitSetters; + void set_has_else_node(); + void set_has_error(); + + inline bool has_default() const; + inline void clear_has_default(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock > other_; + ::flyteidl::core::IfBlock* case__; + union DefaultUnion { + DefaultUnion() {} + ::flyteidl::core::Node* else_node_; + ::flyteidl::core::Error* error_; + } default_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class BranchNode final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BranchNode) */ { + public: + BranchNode(); + virtual ~BranchNode(); + + BranchNode(const BranchNode& from); + + inline BranchNode& operator=(const BranchNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BranchNode(BranchNode&& from) noexcept + : BranchNode() { + *this = ::std::move(from); + } + + inline BranchNode& operator=(BranchNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const BranchNode& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BranchNode* internal_default_instance() { + return reinterpret_cast( + &_BranchNode_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(BranchNode* other); + friend void swap(BranchNode& a, BranchNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BranchNode* New() const final { + return CreateMaybeMessage(nullptr); + } + + BranchNode* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const BranchNode& from); + void MergeFrom(const BranchNode& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BranchNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.IfElseBlock if_else = 1; + bool has_if_else() const; + void clear_if_else(); + static const int kIfElseFieldNumber = 1; + const ::flyteidl::core::IfElseBlock& if_else() const; + ::flyteidl::core::IfElseBlock* release_if_else(); + ::flyteidl::core::IfElseBlock* mutable_if_else(); + void set_allocated_if_else(::flyteidl::core::IfElseBlock* if_else); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::IfElseBlock* if_else_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskNode final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskNode) */ { + public: + TaskNode(); + virtual ~TaskNode(); + + TaskNode(const TaskNode& from); + + inline TaskNode& operator=(const TaskNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskNode(TaskNode&& from) noexcept + : TaskNode() { + *this = ::std::move(from); + } + + inline TaskNode& operator=(TaskNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskNode& default_instance(); + + enum ReferenceCase { + kReferenceId = 1, + REFERENCE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskNode* internal_default_instance() { + return reinterpret_cast( + &_TaskNode_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TaskNode* other); + friend void swap(TaskNode& a, TaskNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskNode* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskNode* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskNode& from); + void MergeFrom(const TaskNode& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskNodeOverrides overrides = 2; + bool has_overrides() const; + void clear_overrides(); + static const int kOverridesFieldNumber = 2; + const ::flyteidl::core::TaskNodeOverrides& overrides() const; + ::flyteidl::core::TaskNodeOverrides* release_overrides(); + ::flyteidl::core::TaskNodeOverrides* mutable_overrides(); + void set_allocated_overrides(::flyteidl::core::TaskNodeOverrides* overrides); + + // .flyteidl.core.Identifier reference_id = 1; + bool has_reference_id() const; + void clear_reference_id(); + static const int kReferenceIdFieldNumber = 1; + const ::flyteidl::core::Identifier& reference_id() const; + ::flyteidl::core::Identifier* release_reference_id(); + ::flyteidl::core::Identifier* mutable_reference_id(); + void set_allocated_reference_id(::flyteidl::core::Identifier* reference_id); + + void clear_reference(); + ReferenceCase reference_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) + private: + class HasBitSetters; + void set_has_reference_id(); + + inline bool has_reference() const; + inline void clear_has_reference(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskNodeOverrides* overrides_; + union ReferenceUnion { + ReferenceUnion() {} + ::flyteidl::core::Identifier* reference_id_; + } reference_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowNode final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowNode) */ { + public: + WorkflowNode(); + virtual ~WorkflowNode(); + + WorkflowNode(const WorkflowNode& from); + + inline WorkflowNode& operator=(const WorkflowNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowNode(WorkflowNode&& from) noexcept + : WorkflowNode() { + *this = ::std::move(from); + } + + inline WorkflowNode& operator=(WorkflowNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowNode& default_instance(); + + enum ReferenceCase { + kLaunchplanRef = 1, + kSubWorkflowRef = 2, + REFERENCE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowNode* internal_default_instance() { + return reinterpret_cast( + &_WorkflowNode_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(WorkflowNode* other); + friend void swap(WorkflowNode& a, WorkflowNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowNode* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowNode* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowNode& from); + void MergeFrom(const WorkflowNode& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier launchplan_ref = 1; + bool has_launchplan_ref() const; + void clear_launchplan_ref(); + static const int kLaunchplanRefFieldNumber = 1; + const ::flyteidl::core::Identifier& launchplan_ref() const; + ::flyteidl::core::Identifier* release_launchplan_ref(); + ::flyteidl::core::Identifier* mutable_launchplan_ref(); + void set_allocated_launchplan_ref(::flyteidl::core::Identifier* launchplan_ref); + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + bool has_sub_workflow_ref() const; + void clear_sub_workflow_ref(); + static const int kSubWorkflowRefFieldNumber = 2; + const ::flyteidl::core::Identifier& sub_workflow_ref() const; + ::flyteidl::core::Identifier* release_sub_workflow_ref(); + ::flyteidl::core::Identifier* mutable_sub_workflow_ref(); + void set_allocated_sub_workflow_ref(::flyteidl::core::Identifier* sub_workflow_ref); + + void clear_reference(); + ReferenceCase reference_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) + private: + class HasBitSetters; + void set_has_launchplan_ref(); + void set_has_sub_workflow_ref(); + + inline bool has_reference() const; + inline void clear_has_reference(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ReferenceUnion { + ReferenceUnion() {} + ::flyteidl::core::Identifier* launchplan_ref_; + ::flyteidl::core::Identifier* sub_workflow_ref_; + } reference_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class ApproveCondition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ApproveCondition) */ { + public: + ApproveCondition(); + virtual ~ApproveCondition(); + + ApproveCondition(const ApproveCondition& from); + + inline ApproveCondition& operator=(const ApproveCondition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ApproveCondition(ApproveCondition&& from) noexcept + : ApproveCondition() { + *this = ::std::move(from); + } + + inline ApproveCondition& operator=(ApproveCondition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ApproveCondition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ApproveCondition* internal_default_instance() { + return reinterpret_cast( + &_ApproveCondition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ApproveCondition* other); + friend void swap(ApproveCondition& a, ApproveCondition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ApproveCondition* New() const final { + return CreateMaybeMessage(nullptr); + } + + ApproveCondition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ApproveCondition& from); + void MergeFrom(const ApproveCondition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ApproveCondition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string signal_id = 1; + void clear_signal_id(); + static const int kSignalIdFieldNumber = 1; + const ::std::string& signal_id() const; + void set_signal_id(const ::std::string& value); + #if LANG_CXX11 + void set_signal_id(::std::string&& value); + #endif + void set_signal_id(const char* value); + void set_signal_id(const char* value, size_t size); + ::std::string* mutable_signal_id(); + ::std::string* release_signal_id(); + void set_allocated_signal_id(::std::string* signal_id); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ApproveCondition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr signal_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class SignalCondition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SignalCondition) */ { + public: + SignalCondition(); + virtual ~SignalCondition(); + + SignalCondition(const SignalCondition& from); + + inline SignalCondition& operator=(const SignalCondition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SignalCondition(SignalCondition&& from) noexcept + : SignalCondition() { + *this = ::std::move(from); + } + + inline SignalCondition& operator=(SignalCondition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SignalCondition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SignalCondition* internal_default_instance() { + return reinterpret_cast( + &_SignalCondition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(SignalCondition* other); + friend void swap(SignalCondition& a, SignalCondition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SignalCondition* New() const final { + return CreateMaybeMessage(nullptr); + } + + SignalCondition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SignalCondition& from); + void MergeFrom(const SignalCondition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SignalCondition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string signal_id = 1; + void clear_signal_id(); + static const int kSignalIdFieldNumber = 1; + const ::std::string& signal_id() const; + void set_signal_id(const ::std::string& value); + #if LANG_CXX11 + void set_signal_id(::std::string&& value); + #endif + void set_signal_id(const char* value); + void set_signal_id(const char* value, size_t size); + ::std::string* mutable_signal_id(); + ::std::string* release_signal_id(); + void set_allocated_signal_id(::std::string* signal_id); + + // string output_variable_name = 3; + void clear_output_variable_name(); + static const int kOutputVariableNameFieldNumber = 3; + const ::std::string& output_variable_name() const; + void set_output_variable_name(const ::std::string& value); + #if LANG_CXX11 + void set_output_variable_name(::std::string&& value); + #endif + void set_output_variable_name(const char* value); + void set_output_variable_name(const char* value, size_t size); + ::std::string* mutable_output_variable_name(); + ::std::string* release_output_variable_name(); + void set_allocated_output_variable_name(::std::string* output_variable_name); + + // .flyteidl.core.LiteralType type = 2; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::flyteidl::core::LiteralType& type() const; + ::flyteidl::core::LiteralType* release_type(); + ::flyteidl::core::LiteralType* mutable_type(); + void set_allocated_type(::flyteidl::core::LiteralType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.SignalCondition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr signal_id_; + ::google::protobuf::internal::ArenaStringPtr output_variable_name_; + ::flyteidl::core::LiteralType* type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class SleepCondition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SleepCondition) */ { + public: + SleepCondition(); + virtual ~SleepCondition(); + + SleepCondition(const SleepCondition& from); + + inline SleepCondition& operator=(const SleepCondition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SleepCondition(SleepCondition&& from) noexcept + : SleepCondition() { + *this = ::std::move(from); + } + + inline SleepCondition& operator=(SleepCondition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SleepCondition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SleepCondition* internal_default_instance() { + return reinterpret_cast( + &_SleepCondition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(SleepCondition* other); + friend void swap(SleepCondition& a, SleepCondition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SleepCondition* New() const final { + return CreateMaybeMessage(nullptr); + } + + SleepCondition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SleepCondition& from); + void MergeFrom(const SleepCondition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SleepCondition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .google.protobuf.Duration duration = 1; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 1; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + // @@protoc_insertion_point(class_scope:flyteidl.core.SleepCondition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Duration* duration_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class GateNode final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.GateNode) */ { + public: + GateNode(); + virtual ~GateNode(); + + GateNode(const GateNode& from); + + inline GateNode& operator=(const GateNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GateNode(GateNode&& from) noexcept + : GateNode() { + *this = ::std::move(from); + } + + inline GateNode& operator=(GateNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GateNode& default_instance(); + + enum ConditionCase { + kApprove = 1, + kSignal = 2, + kSleep = 3, + CONDITION_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GateNode* internal_default_instance() { + return reinterpret_cast( + &_GateNode_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(GateNode* other); + friend void swap(GateNode& a, GateNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GateNode* New() const final { + return CreateMaybeMessage(nullptr); + } + + GateNode* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GateNode& from); + void MergeFrom(const GateNode& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GateNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.ApproveCondition approve = 1; + bool has_approve() const; + void clear_approve(); + static const int kApproveFieldNumber = 1; + const ::flyteidl::core::ApproveCondition& approve() const; + ::flyteidl::core::ApproveCondition* release_approve(); + ::flyteidl::core::ApproveCondition* mutable_approve(); + void set_allocated_approve(::flyteidl::core::ApproveCondition* approve); + + // .flyteidl.core.SignalCondition signal = 2; + bool has_signal() const; + void clear_signal(); + static const int kSignalFieldNumber = 2; + const ::flyteidl::core::SignalCondition& signal() const; + ::flyteidl::core::SignalCondition* release_signal(); + ::flyteidl::core::SignalCondition* mutable_signal(); + void set_allocated_signal(::flyteidl::core::SignalCondition* signal); + + // .flyteidl.core.SleepCondition sleep = 3; + bool has_sleep() const; + void clear_sleep(); + static const int kSleepFieldNumber = 3; + const ::flyteidl::core::SleepCondition& sleep() const; + ::flyteidl::core::SleepCondition* release_sleep(); + ::flyteidl::core::SleepCondition* mutable_sleep(); + void set_allocated_sleep(::flyteidl::core::SleepCondition* sleep); + + void clear_condition(); + ConditionCase condition_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.GateNode) + private: + class HasBitSetters; + void set_has_approve(); + void set_has_signal(); + void set_has_sleep(); + + inline bool has_condition() const; + inline void clear_has_condition(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ConditionUnion { + ConditionUnion() {} + ::flyteidl::core::ApproveCondition* approve_; + ::flyteidl::core::SignalCondition* signal_; + ::flyteidl::core::SleepCondition* sleep_; + } condition_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class ArrayNode final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ArrayNode) */ { + public: + ArrayNode(); + virtual ~ArrayNode(); + + ArrayNode(const ArrayNode& from); + + inline ArrayNode& operator=(const ArrayNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArrayNode(ArrayNode&& from) noexcept + : ArrayNode() { + *this = ::std::move(from); + } + + inline ArrayNode& operator=(ArrayNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ArrayNode& default_instance(); + + enum SuccessCriteriaCase { + kMinSuccesses = 3, + kMinSuccessRatio = 4, + SUCCESS_CRITERIA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArrayNode* internal_default_instance() { + return reinterpret_cast( + &_ArrayNode_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(ArrayNode* other); + friend void swap(ArrayNode& a, ArrayNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArrayNode* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArrayNode* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ArrayNode& from); + void MergeFrom(const ArrayNode& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ArrayNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Node node = 1; + bool has_node() const; + void clear_node(); + static const int kNodeFieldNumber = 1; + const ::flyteidl::core::Node& node() const; + ::flyteidl::core::Node* release_node(); + ::flyteidl::core::Node* mutable_node(); + void set_allocated_node(::flyteidl::core::Node* node); + + // uint32 parallelism = 2; + void clear_parallelism(); + static const int kParallelismFieldNumber = 2; + ::google::protobuf::uint32 parallelism() const; + void set_parallelism(::google::protobuf::uint32 value); + + // uint32 min_successes = 3; + private: + bool has_min_successes() const; + public: + void clear_min_successes(); + static const int kMinSuccessesFieldNumber = 3; + ::google::protobuf::uint32 min_successes() const; + void set_min_successes(::google::protobuf::uint32 value); + + // float min_success_ratio = 4; + private: + bool has_min_success_ratio() const; + public: + void clear_min_success_ratio(); + static const int kMinSuccessRatioFieldNumber = 4; + float min_success_ratio() const; + void set_min_success_ratio(float value); + + void clear_success_criteria(); + SuccessCriteriaCase success_criteria_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.ArrayNode) + private: + class HasBitSetters; + void set_has_min_successes(); + void set_has_min_success_ratio(); + + inline bool has_success_criteria() const; + inline void clear_has_success_criteria(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Node* node_; + ::google::protobuf::uint32 parallelism_; + union SuccessCriteriaUnion { + SuccessCriteriaUnion() {} + ::google::protobuf::uint32 min_successes_; + float min_success_ratio_; + } success_criteria_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeMetadata) */ { + public: + NodeMetadata(); + virtual ~NodeMetadata(); + + NodeMetadata(const NodeMetadata& from); + + inline NodeMetadata& operator=(const NodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeMetadata(NodeMetadata&& from) noexcept + : NodeMetadata() { + *this = ::std::move(from); + } + + inline NodeMetadata& operator=(NodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeMetadata& default_instance(); + + enum InterruptibleValueCase { + kInterruptible = 6, + INTERRUPTIBLE_VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_NodeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(NodeMetadata* other); + friend void swap(NodeMetadata& a, NodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeMetadata& from); + void MergeFrom(const NodeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .google.protobuf.Duration timeout = 4; + bool has_timeout() const; + void clear_timeout(); + static const int kTimeoutFieldNumber = 4; + const ::google::protobuf::Duration& timeout() const; + ::google::protobuf::Duration* release_timeout(); + ::google::protobuf::Duration* mutable_timeout(); + void set_allocated_timeout(::google::protobuf::Duration* timeout); + + // .flyteidl.core.RetryStrategy retries = 5; + bool has_retries() const; + void clear_retries(); + static const int kRetriesFieldNumber = 5; + const ::flyteidl::core::RetryStrategy& retries() const; + ::flyteidl::core::RetryStrategy* release_retries(); + ::flyteidl::core::RetryStrategy* mutable_retries(); + void set_allocated_retries(::flyteidl::core::RetryStrategy* retries); + + // bool interruptible = 6; + private: + bool has_interruptible() const; + public: + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 6; + bool interruptible() const; + void set_interruptible(bool value); + + void clear_interruptible_value(); + InterruptibleValueCase interruptible_value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) + private: + class HasBitSetters; + void set_has_interruptible(); + + inline bool has_interruptible_value() const; + inline void clear_has_interruptible_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::Duration* timeout_; + ::flyteidl::core::RetryStrategy* retries_; + union InterruptibleValueUnion { + InterruptibleValueUnion() {} + bool interruptible_; + } interruptible_value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class Alias final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Alias) */ { + public: + Alias(); + virtual ~Alias(); + + Alias(const Alias& from); + + inline Alias& operator=(const Alias& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Alias(Alias&& from) noexcept + : Alias() { + *this = ::std::move(from); + } + + inline Alias& operator=(Alias&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Alias& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Alias* internal_default_instance() { + return reinterpret_cast( + &_Alias_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(Alias* other); + friend void swap(Alias& a, Alias& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Alias* New() const final { + return CreateMaybeMessage(nullptr); + } + + Alias* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Alias& from); + void MergeFrom(const Alias& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Alias* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string var = 1; + void clear_var(); + static const int kVarFieldNumber = 1; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + // string alias = 2; + void clear_alias(); + static const int kAliasFieldNumber = 2; + const ::std::string& alias() const; + void set_alias(const ::std::string& value); + #if LANG_CXX11 + void set_alias(::std::string&& value); + #endif + void set_alias(const char* value); + void set_alias(const char* value, size_t size); + ::std::string* mutable_alias(); + ::std::string* release_alias(); + void set_allocated_alias(::std::string* alias); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr var_; + ::google::protobuf::internal::ArenaStringPtr alias_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class Node final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Node) */ { + public: + Node(); + virtual ~Node(); + + Node(const Node& from); + + inline Node& operator=(const Node& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Node(Node&& from) noexcept + : Node() { + *this = ::std::move(from); + } + + inline Node& operator=(Node&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Node& default_instance(); + + enum TargetCase { + kTaskNode = 6, + kWorkflowNode = 7, + kBranchNode = 8, + kGateNode = 9, + kArrayNode = 10, + TARGET_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Node* internal_default_instance() { + return reinterpret_cast( + &_Node_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(Node* other); + friend void swap(Node& a, Node& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Node* New() const final { + return CreateMaybeMessage(nullptr); + } + + Node* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Node& from); + void MergeFrom(const Node& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Node* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Binding inputs = 3; + int inputs_size() const; + void clear_inputs(); + static const int kInputsFieldNumber = 3; + ::flyteidl::core::Binding* mutable_inputs(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* + mutable_inputs(); + const ::flyteidl::core::Binding& inputs(int index) const; + ::flyteidl::core::Binding* add_inputs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& + inputs() const; + + // repeated string upstream_node_ids = 4; + int upstream_node_ids_size() const; + void clear_upstream_node_ids(); + static const int kUpstreamNodeIdsFieldNumber = 4; + const ::std::string& upstream_node_ids(int index) const; + ::std::string* mutable_upstream_node_ids(int index); + void set_upstream_node_ids(int index, const ::std::string& value); + #if LANG_CXX11 + void set_upstream_node_ids(int index, ::std::string&& value); + #endif + void set_upstream_node_ids(int index, const char* value); + void set_upstream_node_ids(int index, const char* value, size_t size); + ::std::string* add_upstream_node_ids(); + void add_upstream_node_ids(const ::std::string& value); + #if LANG_CXX11 + void add_upstream_node_ids(::std::string&& value); + #endif + void add_upstream_node_ids(const char* value); + void add_upstream_node_ids(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& upstream_node_ids() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_upstream_node_ids(); + + // repeated .flyteidl.core.Alias output_aliases = 5; + int output_aliases_size() const; + void clear_output_aliases(); + static const int kOutputAliasesFieldNumber = 5; + ::flyteidl::core::Alias* mutable_output_aliases(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >* + mutable_output_aliases(); + const ::flyteidl::core::Alias& output_aliases(int index) const; + ::flyteidl::core::Alias* add_output_aliases(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >& + output_aliases() const; + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // .flyteidl.core.NodeMetadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::flyteidl::core::NodeMetadata& metadata() const; + ::flyteidl::core::NodeMetadata* release_metadata(); + ::flyteidl::core::NodeMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::NodeMetadata* metadata); + + // .flyteidl.core.TaskNode task_node = 6; + bool has_task_node() const; + void clear_task_node(); + static const int kTaskNodeFieldNumber = 6; + const ::flyteidl::core::TaskNode& task_node() const; + ::flyteidl::core::TaskNode* release_task_node(); + ::flyteidl::core::TaskNode* mutable_task_node(); + void set_allocated_task_node(::flyteidl::core::TaskNode* task_node); + + // .flyteidl.core.WorkflowNode workflow_node = 7; + bool has_workflow_node() const; + void clear_workflow_node(); + static const int kWorkflowNodeFieldNumber = 7; + const ::flyteidl::core::WorkflowNode& workflow_node() const; + ::flyteidl::core::WorkflowNode* release_workflow_node(); + ::flyteidl::core::WorkflowNode* mutable_workflow_node(); + void set_allocated_workflow_node(::flyteidl::core::WorkflowNode* workflow_node); + + // .flyteidl.core.BranchNode branch_node = 8; + bool has_branch_node() const; + void clear_branch_node(); + static const int kBranchNodeFieldNumber = 8; + const ::flyteidl::core::BranchNode& branch_node() const; + ::flyteidl::core::BranchNode* release_branch_node(); + ::flyteidl::core::BranchNode* mutable_branch_node(); + void set_allocated_branch_node(::flyteidl::core::BranchNode* branch_node); + + // .flyteidl.core.GateNode gate_node = 9; + bool has_gate_node() const; + void clear_gate_node(); + static const int kGateNodeFieldNumber = 9; + const ::flyteidl::core::GateNode& gate_node() const; + ::flyteidl::core::GateNode* release_gate_node(); + ::flyteidl::core::GateNode* mutable_gate_node(); + void set_allocated_gate_node(::flyteidl::core::GateNode* gate_node); + + // .flyteidl.core.ArrayNode array_node = 10; + bool has_array_node() const; + void clear_array_node(); + static const int kArrayNodeFieldNumber = 10; + const ::flyteidl::core::ArrayNode& array_node() const; + ::flyteidl::core::ArrayNode* release_array_node(); + ::flyteidl::core::ArrayNode* mutable_array_node(); + void set_allocated_array_node(::flyteidl::core::ArrayNode* array_node); + + void clear_target(); + TargetCase target_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Node) + private: + class HasBitSetters; + void set_has_task_node(); + void set_has_workflow_node(); + void set_has_branch_node(); + void set_has_gate_node(); + void set_has_array_node(); + + inline bool has_target() const; + inline void clear_has_target(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > inputs_; + ::google::protobuf::RepeatedPtrField<::std::string> upstream_node_ids_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias > output_aliases_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::flyteidl::core::NodeMetadata* metadata_; + union TargetUnion { + TargetUnion() {} + ::flyteidl::core::TaskNode* task_node_; + ::flyteidl::core::WorkflowNode* workflow_node_; + ::flyteidl::core::BranchNode* branch_node_; + ::flyteidl::core::GateNode* gate_node_; + ::flyteidl::core::ArrayNode* array_node_; + } target_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowMetadata_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + WorkflowMetadata_TagsEntry_DoNotUse(); + WorkflowMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const WorkflowMetadata_TagsEntry_DoNotUse& other); + static const WorkflowMetadata_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_WorkflowMetadata_TagsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class WorkflowMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowMetadata) */ { + public: + WorkflowMetadata(); + virtual ~WorkflowMetadata(); + + WorkflowMetadata(const WorkflowMetadata& from); + + inline WorkflowMetadata& operator=(const WorkflowMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowMetadata(WorkflowMetadata&& from) noexcept + : WorkflowMetadata() { + *this = ::std::move(from); + } + + inline WorkflowMetadata& operator=(WorkflowMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowMetadata* internal_default_instance() { + return reinterpret_cast( + &_WorkflowMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(WorkflowMetadata* other); + friend void swap(WorkflowMetadata& a, WorkflowMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowMetadata& from); + void MergeFrom(const WorkflowMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + typedef WorkflowMetadata_OnFailurePolicy OnFailurePolicy; + static const OnFailurePolicy FAIL_IMMEDIATELY = + WorkflowMetadata_OnFailurePolicy_FAIL_IMMEDIATELY; + static const OnFailurePolicy FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = + WorkflowMetadata_OnFailurePolicy_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; + static inline bool OnFailurePolicy_IsValid(int value) { + return WorkflowMetadata_OnFailurePolicy_IsValid(value); + } + static const OnFailurePolicy OnFailurePolicy_MIN = + WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MIN; + static const OnFailurePolicy OnFailurePolicy_MAX = + WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MAX; + static const int OnFailurePolicy_ARRAYSIZE = + WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + OnFailurePolicy_descriptor() { + return WorkflowMetadata_OnFailurePolicy_descriptor(); + } + static inline const ::std::string& OnFailurePolicy_Name(OnFailurePolicy value) { + return WorkflowMetadata_OnFailurePolicy_Name(value); + } + static inline bool OnFailurePolicy_Parse(const ::std::string& name, + OnFailurePolicy* value) { + return WorkflowMetadata_OnFailurePolicy_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // map tags = 3; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 3; + const ::google::protobuf::Map< ::std::string, ::std::string >& + tags() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_tags(); + + // .flyteidl.core.QualityOfService quality_of_service = 1; + bool has_quality_of_service() const; + void clear_quality_of_service(); + static const int kQualityOfServiceFieldNumber = 1; + const ::flyteidl::core::QualityOfService& quality_of_service() const; + ::flyteidl::core::QualityOfService* release_quality_of_service(); + ::flyteidl::core::QualityOfService* mutable_quality_of_service(); + void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); + + // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + void clear_on_failure(); + static const int kOnFailureFieldNumber = 2; + ::flyteidl::core::WorkflowMetadata_OnFailurePolicy on_failure() const; + void set_on_failure(::flyteidl::core::WorkflowMetadata_OnFailurePolicy value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + WorkflowMetadata_TagsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > tags_; + ::flyteidl::core::QualityOfService* quality_of_service_; + int on_failure_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowMetadataDefaults final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowMetadataDefaults) */ { + public: + WorkflowMetadataDefaults(); + virtual ~WorkflowMetadataDefaults(); + + WorkflowMetadataDefaults(const WorkflowMetadataDefaults& from); + + inline WorkflowMetadataDefaults& operator=(const WorkflowMetadataDefaults& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowMetadataDefaults(WorkflowMetadataDefaults&& from) noexcept + : WorkflowMetadataDefaults() { + *this = ::std::move(from); + } + + inline WorkflowMetadataDefaults& operator=(WorkflowMetadataDefaults&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowMetadataDefaults& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowMetadataDefaults* internal_default_instance() { + return reinterpret_cast( + &_WorkflowMetadataDefaults_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(WorkflowMetadataDefaults* other); + friend void swap(WorkflowMetadataDefaults& a, WorkflowMetadataDefaults& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowMetadataDefaults* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowMetadataDefaults* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowMetadataDefaults& from); + void MergeFrom(const WorkflowMetadataDefaults& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowMetadataDefaults* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bool interruptible = 1; + void clear_interruptible(); + static const int kInterruptibleFieldNumber = 1; + bool interruptible() const; + void set_interruptible(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + bool interruptible_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowTemplate final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowTemplate) */ { + public: + WorkflowTemplate(); + virtual ~WorkflowTemplate(); + + WorkflowTemplate(const WorkflowTemplate& from); + + inline WorkflowTemplate& operator=(const WorkflowTemplate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowTemplate(WorkflowTemplate&& from) noexcept + : WorkflowTemplate() { + *this = ::std::move(from); + } + + inline WorkflowTemplate& operator=(WorkflowTemplate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowTemplate& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowTemplate* internal_default_instance() { + return reinterpret_cast( + &_WorkflowTemplate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(WorkflowTemplate* other); + friend void swap(WorkflowTemplate& a, WorkflowTemplate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowTemplate* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowTemplate* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowTemplate& from); + void MergeFrom(const WorkflowTemplate& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowTemplate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Node nodes = 4; + int nodes_size() const; + void clear_nodes(); + static const int kNodesFieldNumber = 4; + ::flyteidl::core::Node* mutable_nodes(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* + mutable_nodes(); + const ::flyteidl::core::Node& nodes(int index) const; + ::flyteidl::core::Node* add_nodes(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& + nodes() const; + + // repeated .flyteidl.core.Binding outputs = 5; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 5; + ::flyteidl::core::Binding* mutable_outputs(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* + mutable_outputs(); + const ::flyteidl::core::Binding& outputs(int index) const; + ::flyteidl::core::Binding* add_outputs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& + outputs() const; + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.core.WorkflowMetadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::flyteidl::core::WorkflowMetadata& metadata() const; + ::flyteidl::core::WorkflowMetadata* release_metadata(); + ::flyteidl::core::WorkflowMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::WorkflowMetadata* metadata); + + // .flyteidl.core.TypedInterface interface = 3; + bool has_interface() const; + void clear_interface(); + static const int kInterfaceFieldNumber = 3; + const ::flyteidl::core::TypedInterface& interface() const; + ::flyteidl::core::TypedInterface* release_interface(); + ::flyteidl::core::TypedInterface* mutable_interface(); + void set_allocated_interface(::flyteidl::core::TypedInterface* interface); + + // .flyteidl.core.Node failure_node = 6; + bool has_failure_node() const; + void clear_failure_node(); + static const int kFailureNodeFieldNumber = 6; + const ::flyteidl::core::Node& failure_node() const; + ::flyteidl::core::Node* release_failure_node(); + ::flyteidl::core::Node* mutable_failure_node(); + void set_allocated_failure_node(::flyteidl::core::Node* failure_node); + + // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + bool has_metadata_defaults() const; + void clear_metadata_defaults(); + static const int kMetadataDefaultsFieldNumber = 7; + const ::flyteidl::core::WorkflowMetadataDefaults& metadata_defaults() const; + ::flyteidl::core::WorkflowMetadataDefaults* release_metadata_defaults(); + ::flyteidl::core::WorkflowMetadataDefaults* mutable_metadata_defaults(); + void set_allocated_metadata_defaults(::flyteidl::core::WorkflowMetadataDefaults* metadata_defaults); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node > nodes_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > outputs_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::core::WorkflowMetadata* metadata_; + ::flyteidl::core::TypedInterface* interface_; + ::flyteidl::core::Node* failure_node_; + ::flyteidl::core::WorkflowMetadataDefaults* metadata_defaults_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskNodeOverrides final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskNodeOverrides) */ { + public: + TaskNodeOverrides(); + virtual ~TaskNodeOverrides(); + + TaskNodeOverrides(const TaskNodeOverrides& from); + + inline TaskNodeOverrides& operator=(const TaskNodeOverrides& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskNodeOverrides(TaskNodeOverrides&& from) noexcept + : TaskNodeOverrides() { + *this = ::std::move(from); + } + + inline TaskNodeOverrides& operator=(TaskNodeOverrides&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskNodeOverrides& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskNodeOverrides* internal_default_instance() { + return reinterpret_cast( + &_TaskNodeOverrides_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(TaskNodeOverrides* other); + friend void swap(TaskNodeOverrides& a, TaskNodeOverrides& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskNodeOverrides* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskNodeOverrides* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskNodeOverrides& from); + void MergeFrom(const TaskNodeOverrides& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskNodeOverrides* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Resources resources = 1; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 1; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNodeOverrides) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Resources* resources_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// IfBlock + +// .flyteidl.core.BooleanExpression condition = 1; +inline bool IfBlock::has_condition() const { + return this != internal_default_instance() && condition_ != nullptr; +} +inline const ::flyteidl::core::BooleanExpression& IfBlock::condition() const { + const ::flyteidl::core::BooleanExpression* p = condition_; + // @@protoc_insertion_point(field_get:flyteidl.core.IfBlock.condition) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_BooleanExpression_default_instance_); +} +inline ::flyteidl::core::BooleanExpression* IfBlock::release_condition() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfBlock.condition) + + ::flyteidl::core::BooleanExpression* temp = condition_; + condition_ = nullptr; + return temp; +} +inline ::flyteidl::core::BooleanExpression* IfBlock::mutable_condition() { + + if (condition_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::BooleanExpression>(GetArenaNoVirtual()); + condition_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfBlock.condition) + return condition_; +} +inline void IfBlock::set_allocated_condition(::flyteidl::core::BooleanExpression* condition) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(condition_); + } + if (condition) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + condition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, condition, submessage_arena); + } + + } else { + + } + condition_ = condition; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfBlock.condition) +} + +// .flyteidl.core.Node then_node = 2; +inline bool IfBlock::has_then_node() const { + return this != internal_default_instance() && then_node_ != nullptr; +} +inline void IfBlock::clear_then_node() { + if (GetArenaNoVirtual() == nullptr && then_node_ != nullptr) { + delete then_node_; + } + then_node_ = nullptr; +} +inline const ::flyteidl::core::Node& IfBlock::then_node() const { + const ::flyteidl::core::Node* p = then_node_; + // @@protoc_insertion_point(field_get:flyteidl.core.IfBlock.then_node) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Node_default_instance_); +} +inline ::flyteidl::core::Node* IfBlock::release_then_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfBlock.then_node) + + ::flyteidl::core::Node* temp = then_node_; + then_node_ = nullptr; + return temp; +} +inline ::flyteidl::core::Node* IfBlock::mutable_then_node() { + + if (then_node_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Node>(GetArenaNoVirtual()); + then_node_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfBlock.then_node) + return then_node_; +} +inline void IfBlock::set_allocated_then_node(::flyteidl::core::Node* then_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete then_node_; + } + if (then_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + then_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, then_node, submessage_arena); + } + + } else { + + } + then_node_ = then_node; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfBlock.then_node) +} + +// ------------------------------------------------------------------- + +// IfElseBlock + +// .flyteidl.core.IfBlock case = 1; +inline bool IfElseBlock::has_case_() const { + return this != internal_default_instance() && case__ != nullptr; +} +inline void IfElseBlock::clear_case_() { + if (GetArenaNoVirtual() == nullptr && case__ != nullptr) { + delete case__; + } + case__ = nullptr; +} +inline const ::flyteidl::core::IfBlock& IfElseBlock::case_() const { + const ::flyteidl::core::IfBlock* p = case__; + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.case) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_IfBlock_default_instance_); +} +inline ::flyteidl::core::IfBlock* IfElseBlock::release_case_() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.case) + + ::flyteidl::core::IfBlock* temp = case__; + case__ = nullptr; + return temp; +} +inline ::flyteidl::core::IfBlock* IfElseBlock::mutable_case_() { + + if (case__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::IfBlock>(GetArenaNoVirtual()); + case__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.case) + return case__; +} +inline void IfElseBlock::set_allocated_case_(::flyteidl::core::IfBlock* case_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete case__; + } + if (case_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + case_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, case_, submessage_arena); + } + + } else { + + } + case__ = case_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.case) +} + +// repeated .flyteidl.core.IfBlock other = 2; +inline int IfElseBlock::other_size() const { + return other_.size(); +} +inline void IfElseBlock::clear_other() { + other_.Clear(); +} +inline ::flyteidl::core::IfBlock* IfElseBlock::mutable_other(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.other) + return other_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >* +IfElseBlock::mutable_other() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.IfElseBlock.other) + return &other_; +} +inline const ::flyteidl::core::IfBlock& IfElseBlock::other(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.other) + return other_.Get(index); +} +inline ::flyteidl::core::IfBlock* IfElseBlock::add_other() { + // @@protoc_insertion_point(field_add:flyteidl.core.IfElseBlock.other) + return other_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >& +IfElseBlock::other() const { + // @@protoc_insertion_point(field_list:flyteidl.core.IfElseBlock.other) + return other_; +} + +// .flyteidl.core.Node else_node = 3; +inline bool IfElseBlock::has_else_node() const { + return default_case() == kElseNode; +} +inline void IfElseBlock::set_has_else_node() { + _oneof_case_[0] = kElseNode; +} +inline void IfElseBlock::clear_else_node() { + if (has_else_node()) { + delete default_.else_node_; + clear_has_default(); + } +} +inline ::flyteidl::core::Node* IfElseBlock::release_else_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.else_node) + if (has_else_node()) { + clear_has_default(); + ::flyteidl::core::Node* temp = default_.else_node_; + default_.else_node_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Node& IfElseBlock::else_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.else_node) + return has_else_node() + ? *default_.else_node_ + : *reinterpret_cast< ::flyteidl::core::Node*>(&::flyteidl::core::_Node_default_instance_); +} +inline ::flyteidl::core::Node* IfElseBlock::mutable_else_node() { + if (!has_else_node()) { + clear_default(); + set_has_else_node(); + default_.else_node_ = CreateMaybeMessage< ::flyteidl::core::Node >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.else_node) + return default_.else_node_; +} + +// .flyteidl.core.Error error = 4; +inline bool IfElseBlock::has_error() const { + return default_case() == kError; +} +inline void IfElseBlock::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::Error* IfElseBlock::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.error) + if (has_error()) { + clear_has_default(); + ::flyteidl::core::Error* temp = default_.error_; + default_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Error& IfElseBlock::error() const { + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.error) + return has_error() + ? *default_.error_ + : *reinterpret_cast< ::flyteidl::core::Error*>(&::flyteidl::core::_Error_default_instance_); +} +inline ::flyteidl::core::Error* IfElseBlock::mutable_error() { + if (!has_error()) { + clear_default(); + set_has_error(); + default_.error_ = CreateMaybeMessage< ::flyteidl::core::Error >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.error) + return default_.error_; +} + +inline bool IfElseBlock::has_default() const { + return default_case() != DEFAULT_NOT_SET; +} +inline void IfElseBlock::clear_has_default() { + _oneof_case_[0] = DEFAULT_NOT_SET; +} +inline IfElseBlock::DefaultCase IfElseBlock::default_case() const { + return IfElseBlock::DefaultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// BranchNode + +// .flyteidl.core.IfElseBlock if_else = 1; +inline bool BranchNode::has_if_else() const { + return this != internal_default_instance() && if_else_ != nullptr; +} +inline void BranchNode::clear_if_else() { + if (GetArenaNoVirtual() == nullptr && if_else_ != nullptr) { + delete if_else_; + } + if_else_ = nullptr; +} +inline const ::flyteidl::core::IfElseBlock& BranchNode::if_else() const { + const ::flyteidl::core::IfElseBlock* p = if_else_; + // @@protoc_insertion_point(field_get:flyteidl.core.BranchNode.if_else) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_IfElseBlock_default_instance_); +} +inline ::flyteidl::core::IfElseBlock* BranchNode::release_if_else() { + // @@protoc_insertion_point(field_release:flyteidl.core.BranchNode.if_else) + + ::flyteidl::core::IfElseBlock* temp = if_else_; + if_else_ = nullptr; + return temp; +} +inline ::flyteidl::core::IfElseBlock* BranchNode::mutable_if_else() { + + if (if_else_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::IfElseBlock>(GetArenaNoVirtual()); + if_else_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BranchNode.if_else) + return if_else_; +} +inline void BranchNode::set_allocated_if_else(::flyteidl::core::IfElseBlock* if_else) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete if_else_; + } + if (if_else) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + if_else = ::google::protobuf::internal::GetOwnedMessage( + message_arena, if_else, submessage_arena); + } + + } else { + + } + if_else_ = if_else; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BranchNode.if_else) +} + +// ------------------------------------------------------------------- + +// TaskNode + +// .flyteidl.core.Identifier reference_id = 1; +inline bool TaskNode::has_reference_id() const { + return reference_case() == kReferenceId; +} +inline void TaskNode::set_has_reference_id() { + _oneof_case_[0] = kReferenceId; +} +inline ::flyteidl::core::Identifier* TaskNode::release_reference_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskNode.reference_id) + if (has_reference_id()) { + clear_has_reference(); + ::flyteidl::core::Identifier* temp = reference_.reference_id_; + reference_.reference_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Identifier& TaskNode::reference_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskNode.reference_id) + return has_reference_id() + ? *reference_.reference_id_ + : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskNode::mutable_reference_id() { + if (!has_reference_id()) { + clear_reference(); + set_has_reference_id(); + reference_.reference_id_ = CreateMaybeMessage< ::flyteidl::core::Identifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNode.reference_id) + return reference_.reference_id_; +} + +// .flyteidl.core.TaskNodeOverrides overrides = 2; +inline bool TaskNode::has_overrides() const { + return this != internal_default_instance() && overrides_ != nullptr; +} +inline void TaskNode::clear_overrides() { + if (GetArenaNoVirtual() == nullptr && overrides_ != nullptr) { + delete overrides_; + } + overrides_ = nullptr; +} +inline const ::flyteidl::core::TaskNodeOverrides& TaskNode::overrides() const { + const ::flyteidl::core::TaskNodeOverrides* p = overrides_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskNode.overrides) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskNodeOverrides_default_instance_); +} +inline ::flyteidl::core::TaskNodeOverrides* TaskNode::release_overrides() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskNode.overrides) + + ::flyteidl::core::TaskNodeOverrides* temp = overrides_; + overrides_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskNodeOverrides* TaskNode::mutable_overrides() { + + if (overrides_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskNodeOverrides>(GetArenaNoVirtual()); + overrides_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNode.overrides) + return overrides_; +} +inline void TaskNode::set_allocated_overrides(::flyteidl::core::TaskNodeOverrides* overrides) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete overrides_; + } + if (overrides) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + overrides = ::google::protobuf::internal::GetOwnedMessage( + message_arena, overrides, submessage_arena); + } + + } else { + + } + overrides_ = overrides; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNode.overrides) +} + +inline bool TaskNode::has_reference() const { + return reference_case() != REFERENCE_NOT_SET; +} +inline void TaskNode::clear_has_reference() { + _oneof_case_[0] = REFERENCE_NOT_SET; +} +inline TaskNode::ReferenceCase TaskNode::reference_case() const { + return TaskNode::ReferenceCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// WorkflowNode + +// .flyteidl.core.Identifier launchplan_ref = 1; +inline bool WorkflowNode::has_launchplan_ref() const { + return reference_case() == kLaunchplanRef; +} +inline void WorkflowNode::set_has_launchplan_ref() { + _oneof_case_[0] = kLaunchplanRef; +} +inline ::flyteidl::core::Identifier* WorkflowNode::release_launchplan_ref() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowNode.launchplan_ref) + if (has_launchplan_ref()) { + clear_has_reference(); + ::flyteidl::core::Identifier* temp = reference_.launchplan_ref_; + reference_.launchplan_ref_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Identifier& WorkflowNode::launchplan_ref() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowNode.launchplan_ref) + return has_launchplan_ref() + ? *reference_.launchplan_ref_ + : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowNode::mutable_launchplan_ref() { + if (!has_launchplan_ref()) { + clear_reference(); + set_has_launchplan_ref(); + reference_.launchplan_ref_ = CreateMaybeMessage< ::flyteidl::core::Identifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowNode.launchplan_ref) + return reference_.launchplan_ref_; +} + +// .flyteidl.core.Identifier sub_workflow_ref = 2; +inline bool WorkflowNode::has_sub_workflow_ref() const { + return reference_case() == kSubWorkflowRef; +} +inline void WorkflowNode::set_has_sub_workflow_ref() { + _oneof_case_[0] = kSubWorkflowRef; +} +inline ::flyteidl::core::Identifier* WorkflowNode::release_sub_workflow_ref() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowNode.sub_workflow_ref) + if (has_sub_workflow_ref()) { + clear_has_reference(); + ::flyteidl::core::Identifier* temp = reference_.sub_workflow_ref_; + reference_.sub_workflow_ref_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Identifier& WorkflowNode::sub_workflow_ref() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowNode.sub_workflow_ref) + return has_sub_workflow_ref() + ? *reference_.sub_workflow_ref_ + : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowNode::mutable_sub_workflow_ref() { + if (!has_sub_workflow_ref()) { + clear_reference(); + set_has_sub_workflow_ref(); + reference_.sub_workflow_ref_ = CreateMaybeMessage< ::flyteidl::core::Identifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowNode.sub_workflow_ref) + return reference_.sub_workflow_ref_; +} + +inline bool WorkflowNode::has_reference() const { + return reference_case() != REFERENCE_NOT_SET; +} +inline void WorkflowNode::clear_has_reference() { + _oneof_case_[0] = REFERENCE_NOT_SET; +} +inline WorkflowNode::ReferenceCase WorkflowNode::reference_case() const { + return WorkflowNode::ReferenceCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ApproveCondition + +// string signal_id = 1; +inline void ApproveCondition::clear_signal_id() { + signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ApproveCondition::signal_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ApproveCondition.signal_id) + return signal_id_.GetNoArena(); +} +inline void ApproveCondition::set_signal_id(const ::std::string& value) { + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ApproveCondition.signal_id) +} +#if LANG_CXX11 +inline void ApproveCondition::set_signal_id(::std::string&& value) { + + signal_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ApproveCondition.signal_id) +} +#endif +inline void ApproveCondition::set_signal_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ApproveCondition.signal_id) +} +inline void ApproveCondition::set_signal_id(const char* value, size_t size) { + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ApproveCondition.signal_id) +} +inline ::std::string* ApproveCondition::mutable_signal_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ApproveCondition.signal_id) + return signal_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ApproveCondition::release_signal_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.ApproveCondition.signal_id) + + return signal_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ApproveCondition::set_allocated_signal_id(::std::string* signal_id) { + if (signal_id != nullptr) { + + } else { + + } + signal_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signal_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ApproveCondition.signal_id) +} + +// ------------------------------------------------------------------- + +// SignalCondition + +// string signal_id = 1; +inline void SignalCondition::clear_signal_id() { + signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SignalCondition::signal_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.SignalCondition.signal_id) + return signal_id_.GetNoArena(); +} +inline void SignalCondition::set_signal_id(const ::std::string& value) { + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.SignalCondition.signal_id) +} +#if LANG_CXX11 +inline void SignalCondition::set_signal_id(::std::string&& value) { + + signal_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SignalCondition.signal_id) +} +#endif +inline void SignalCondition::set_signal_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.SignalCondition.signal_id) +} +inline void SignalCondition::set_signal_id(const char* value, size_t size) { + + signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SignalCondition.signal_id) +} +inline ::std::string* SignalCondition::mutable_signal_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalCondition.signal_id) + return signal_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignalCondition::release_signal_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.SignalCondition.signal_id) + + return signal_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignalCondition::set_allocated_signal_id(::std::string* signal_id) { + if (signal_id != nullptr) { + + } else { + + } + signal_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signal_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalCondition.signal_id) +} + +// .flyteidl.core.LiteralType type = 2; +inline bool SignalCondition::has_type() const { + return this != internal_default_instance() && type_ != nullptr; +} +inline const ::flyteidl::core::LiteralType& SignalCondition::type() const { + const ::flyteidl::core::LiteralType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.SignalCondition.type) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* SignalCondition::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.SignalCondition.type) + + ::flyteidl::core::LiteralType* temp = type_; + type_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralType* SignalCondition::mutable_type() { + + if (type_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); + type_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalCondition.type) + return type_; +} +inline void SignalCondition::set_allocated_type(::flyteidl::core::LiteralType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalCondition.type) +} + +// string output_variable_name = 3; +inline void SignalCondition::clear_output_variable_name() { + output_variable_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SignalCondition::output_variable_name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.SignalCondition.output_variable_name) + return output_variable_name_.GetNoArena(); +} +inline void SignalCondition::set_output_variable_name(const ::std::string& value) { + + output_variable_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.SignalCondition.output_variable_name) +} +#if LANG_CXX11 +inline void SignalCondition::set_output_variable_name(::std::string&& value) { + + output_variable_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SignalCondition.output_variable_name) +} +#endif +inline void SignalCondition::set_output_variable_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + output_variable_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.SignalCondition.output_variable_name) +} +inline void SignalCondition::set_output_variable_name(const char* value, size_t size) { + + output_variable_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SignalCondition.output_variable_name) +} +inline ::std::string* SignalCondition::mutable_output_variable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalCondition.output_variable_name) + return output_variable_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SignalCondition::release_output_variable_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.SignalCondition.output_variable_name) + + return output_variable_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SignalCondition::set_allocated_output_variable_name(::std::string* output_variable_name) { + if (output_variable_name != nullptr) { + + } else { + + } + output_variable_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_variable_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalCondition.output_variable_name) +} + +// ------------------------------------------------------------------- + +// SleepCondition + +// .google.protobuf.Duration duration = 1; +inline bool SleepCondition::has_duration() const { + return this != internal_default_instance() && duration_ != nullptr; +} +inline const ::google::protobuf::Duration& SleepCondition::duration() const { + const ::google::protobuf::Duration* p = duration_; + // @@protoc_insertion_point(field_get:flyteidl.core.SleepCondition.duration) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* SleepCondition::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.core.SleepCondition.duration) + + ::google::protobuf::Duration* temp = duration_; + duration_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* SleepCondition::mutable_duration() { + + if (duration_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + duration_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.SleepCondition.duration) + return duration_; +} +inline void SleepCondition::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); + } + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SleepCondition.duration) +} + +// ------------------------------------------------------------------- + +// GateNode + +// .flyteidl.core.ApproveCondition approve = 1; +inline bool GateNode::has_approve() const { + return condition_case() == kApprove; +} +inline void GateNode::set_has_approve() { + _oneof_case_[0] = kApprove; +} +inline void GateNode::clear_approve() { + if (has_approve()) { + delete condition_.approve_; + clear_has_condition(); + } +} +inline ::flyteidl::core::ApproveCondition* GateNode::release_approve() { + // @@protoc_insertion_point(field_release:flyteidl.core.GateNode.approve) + if (has_approve()) { + clear_has_condition(); + ::flyteidl::core::ApproveCondition* temp = condition_.approve_; + condition_.approve_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ApproveCondition& GateNode::approve() const { + // @@protoc_insertion_point(field_get:flyteidl.core.GateNode.approve) + return has_approve() + ? *condition_.approve_ + : *reinterpret_cast< ::flyteidl::core::ApproveCondition*>(&::flyteidl::core::_ApproveCondition_default_instance_); +} +inline ::flyteidl::core::ApproveCondition* GateNode::mutable_approve() { + if (!has_approve()) { + clear_condition(); + set_has_approve(); + condition_.approve_ = CreateMaybeMessage< ::flyteidl::core::ApproveCondition >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.GateNode.approve) + return condition_.approve_; +} + +// .flyteidl.core.SignalCondition signal = 2; +inline bool GateNode::has_signal() const { + return condition_case() == kSignal; +} +inline void GateNode::set_has_signal() { + _oneof_case_[0] = kSignal; +} +inline void GateNode::clear_signal() { + if (has_signal()) { + delete condition_.signal_; + clear_has_condition(); + } +} +inline ::flyteidl::core::SignalCondition* GateNode::release_signal() { + // @@protoc_insertion_point(field_release:flyteidl.core.GateNode.signal) + if (has_signal()) { + clear_has_condition(); + ::flyteidl::core::SignalCondition* temp = condition_.signal_; + condition_.signal_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::SignalCondition& GateNode::signal() const { + // @@protoc_insertion_point(field_get:flyteidl.core.GateNode.signal) + return has_signal() + ? *condition_.signal_ + : *reinterpret_cast< ::flyteidl::core::SignalCondition*>(&::flyteidl::core::_SignalCondition_default_instance_); +} +inline ::flyteidl::core::SignalCondition* GateNode::mutable_signal() { + if (!has_signal()) { + clear_condition(); + set_has_signal(); + condition_.signal_ = CreateMaybeMessage< ::flyteidl::core::SignalCondition >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.GateNode.signal) + return condition_.signal_; +} + +// .flyteidl.core.SleepCondition sleep = 3; +inline bool GateNode::has_sleep() const { + return condition_case() == kSleep; +} +inline void GateNode::set_has_sleep() { + _oneof_case_[0] = kSleep; +} +inline void GateNode::clear_sleep() { + if (has_sleep()) { + delete condition_.sleep_; + clear_has_condition(); + } +} +inline ::flyteidl::core::SleepCondition* GateNode::release_sleep() { + // @@protoc_insertion_point(field_release:flyteidl.core.GateNode.sleep) + if (has_sleep()) { + clear_has_condition(); + ::flyteidl::core::SleepCondition* temp = condition_.sleep_; + condition_.sleep_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::SleepCondition& GateNode::sleep() const { + // @@protoc_insertion_point(field_get:flyteidl.core.GateNode.sleep) + return has_sleep() + ? *condition_.sleep_ + : *reinterpret_cast< ::flyteidl::core::SleepCondition*>(&::flyteidl::core::_SleepCondition_default_instance_); +} +inline ::flyteidl::core::SleepCondition* GateNode::mutable_sleep() { + if (!has_sleep()) { + clear_condition(); + set_has_sleep(); + condition_.sleep_ = CreateMaybeMessage< ::flyteidl::core::SleepCondition >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.GateNode.sleep) + return condition_.sleep_; +} + +inline bool GateNode::has_condition() const { + return condition_case() != CONDITION_NOT_SET; +} +inline void GateNode::clear_has_condition() { + _oneof_case_[0] = CONDITION_NOT_SET; +} +inline GateNode::ConditionCase GateNode::condition_case() const { + return GateNode::ConditionCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ArrayNode + +// .flyteidl.core.Node node = 1; +inline bool ArrayNode::has_node() const { + return this != internal_default_instance() && node_ != nullptr; +} +inline void ArrayNode::clear_node() { + if (GetArenaNoVirtual() == nullptr && node_ != nullptr) { + delete node_; + } + node_ = nullptr; +} +inline const ::flyteidl::core::Node& ArrayNode::node() const { + const ::flyteidl::core::Node* p = node_; + // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.node) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Node_default_instance_); +} +inline ::flyteidl::core::Node* ArrayNode::release_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.ArrayNode.node) + + ::flyteidl::core::Node* temp = node_; + node_ = nullptr; + return temp; +} +inline ::flyteidl::core::Node* ArrayNode::mutable_node() { + + if (node_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Node>(GetArenaNoVirtual()); + node_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ArrayNode.node) + return node_; +} +inline void ArrayNode::set_allocated_node(::flyteidl::core::Node* node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete node_; + } + if (node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node, submessage_arena); + } + + } else { + + } + node_ = node; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArrayNode.node) +} + +// uint32 parallelism = 2; +inline void ArrayNode::clear_parallelism() { + parallelism_ = 0u; +} +inline ::google::protobuf::uint32 ArrayNode::parallelism() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.parallelism) + return parallelism_; +} +inline void ArrayNode::set_parallelism(::google::protobuf::uint32 value) { + + parallelism_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ArrayNode.parallelism) +} + +// uint32 min_successes = 3; +inline bool ArrayNode::has_min_successes() const { + return success_criteria_case() == kMinSuccesses; +} +inline void ArrayNode::set_has_min_successes() { + _oneof_case_[0] = kMinSuccesses; +} +inline void ArrayNode::clear_min_successes() { + if (has_min_successes()) { + success_criteria_.min_successes_ = 0u; + clear_has_success_criteria(); + } +} +inline ::google::protobuf::uint32 ArrayNode::min_successes() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.min_successes) + if (has_min_successes()) { + return success_criteria_.min_successes_; + } + return 0u; +} +inline void ArrayNode::set_min_successes(::google::protobuf::uint32 value) { + if (!has_min_successes()) { + clear_success_criteria(); + set_has_min_successes(); + } + success_criteria_.min_successes_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ArrayNode.min_successes) +} + +// float min_success_ratio = 4; +inline bool ArrayNode::has_min_success_ratio() const { + return success_criteria_case() == kMinSuccessRatio; +} +inline void ArrayNode::set_has_min_success_ratio() { + _oneof_case_[0] = kMinSuccessRatio; +} +inline void ArrayNode::clear_min_success_ratio() { + if (has_min_success_ratio()) { + success_criteria_.min_success_ratio_ = 0; + clear_has_success_criteria(); + } +} +inline float ArrayNode::min_success_ratio() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.min_success_ratio) + if (has_min_success_ratio()) { + return success_criteria_.min_success_ratio_; + } + return 0; +} +inline void ArrayNode::set_min_success_ratio(float value) { + if (!has_min_success_ratio()) { + clear_success_criteria(); + set_has_min_success_ratio(); + } + success_criteria_.min_success_ratio_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ArrayNode.min_success_ratio) +} + +inline bool ArrayNode::has_success_criteria() const { + return success_criteria_case() != SUCCESS_CRITERIA_NOT_SET; +} +inline void ArrayNode::clear_has_success_criteria() { + _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; +} +inline ArrayNode::SuccessCriteriaCase ArrayNode::success_criteria_case() const { + return ArrayNode::SuccessCriteriaCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// NodeMetadata + +// string name = 1; +inline void NodeMetadata::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeMetadata::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.name) + return name_.GetNoArena(); +} +inline void NodeMetadata::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.NodeMetadata.name) +} +#if LANG_CXX11 +inline void NodeMetadata::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.NodeMetadata.name) +} +#endif +inline void NodeMetadata::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.NodeMetadata.name) +} +inline void NodeMetadata::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.NodeMetadata.name) +} +inline ::std::string* NodeMetadata::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeMetadata::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeMetadata::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.name) +} + +// .google.protobuf.Duration timeout = 4; +inline bool NodeMetadata::has_timeout() const { + return this != internal_default_instance() && timeout_ != nullptr; +} +inline const ::google::protobuf::Duration& NodeMetadata::timeout() const { + const ::google::protobuf::Duration* p = timeout_; + // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.timeout) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* NodeMetadata::release_timeout() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.timeout) + + ::google::protobuf::Duration* temp = timeout_; + timeout_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* NodeMetadata::mutable_timeout() { + + if (timeout_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + timeout_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.timeout) + return timeout_; +} +inline void NodeMetadata::set_allocated_timeout(::google::protobuf::Duration* timeout) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(timeout_); + } + if (timeout) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(timeout)->GetArena(); + if (message_arena != submessage_arena) { + timeout = ::google::protobuf::internal::GetOwnedMessage( + message_arena, timeout, submessage_arena); + } + + } else { + + } + timeout_ = timeout; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.timeout) +} + +// .flyteidl.core.RetryStrategy retries = 5; +inline bool NodeMetadata::has_retries() const { + return this != internal_default_instance() && retries_ != nullptr; +} +inline const ::flyteidl::core::RetryStrategy& NodeMetadata::retries() const { + const ::flyteidl::core::RetryStrategy* p = retries_; + // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.retries) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_RetryStrategy_default_instance_); +} +inline ::flyteidl::core::RetryStrategy* NodeMetadata::release_retries() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.retries) + + ::flyteidl::core::RetryStrategy* temp = retries_; + retries_ = nullptr; + return temp; +} +inline ::flyteidl::core::RetryStrategy* NodeMetadata::mutable_retries() { + + if (retries_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::RetryStrategy>(GetArenaNoVirtual()); + retries_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.retries) + return retries_; +} +inline void NodeMetadata::set_allocated_retries(::flyteidl::core::RetryStrategy* retries) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(retries_); + } + if (retries) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + retries = ::google::protobuf::internal::GetOwnedMessage( + message_arena, retries, submessage_arena); + } + + } else { + + } + retries_ = retries; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.retries) +} + +// bool interruptible = 6; +inline bool NodeMetadata::has_interruptible() const { + return interruptible_value_case() == kInterruptible; +} +inline void NodeMetadata::set_has_interruptible() { + _oneof_case_[0] = kInterruptible; +} +inline void NodeMetadata::clear_interruptible() { + if (has_interruptible()) { + interruptible_value_.interruptible_ = false; + clear_has_interruptible_value(); + } +} +inline bool NodeMetadata::interruptible() const { + // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.interruptible) + if (has_interruptible()) { + return interruptible_value_.interruptible_; + } + return false; +} +inline void NodeMetadata::set_interruptible(bool value) { + if (!has_interruptible()) { + clear_interruptible_value(); + set_has_interruptible(); + } + interruptible_value_.interruptible_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.NodeMetadata.interruptible) +} + +inline bool NodeMetadata::has_interruptible_value() const { + return interruptible_value_case() != INTERRUPTIBLE_VALUE_NOT_SET; +} +inline void NodeMetadata::clear_has_interruptible_value() { + _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; +} +inline NodeMetadata::InterruptibleValueCase NodeMetadata::interruptible_value_case() const { + return NodeMetadata::InterruptibleValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Alias + +// string var = 1; +inline void Alias::clear_var() { + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Alias::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Alias.var) + return var_.GetNoArena(); +} +inline void Alias::set_var(const ::std::string& value) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Alias.var) +} +#if LANG_CXX11 +inline void Alias::set_var(::std::string&& value) { + + var_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Alias.var) +} +#endif +inline void Alias::set_var(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Alias.var) +} +inline void Alias::set_var(const char* value, size_t size) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Alias.var) +} +inline ::std::string* Alias::mutable_var() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Alias.var) + return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Alias::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Alias.var) + + return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Alias::set_allocated_var(::std::string* var) { + if (var != nullptr) { + + } else { + + } + var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Alias.var) +} + +// string alias = 2; +inline void Alias::clear_alias() { + alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Alias::alias() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Alias.alias) + return alias_.GetNoArena(); +} +inline void Alias::set_alias(const ::std::string& value) { + + alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Alias.alias) +} +#if LANG_CXX11 +inline void Alias::set_alias(::std::string&& value) { + + alias_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Alias.alias) +} +#endif +inline void Alias::set_alias(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Alias.alias) +} +inline void Alias::set_alias(const char* value, size_t size) { + + alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Alias.alias) +} +inline ::std::string* Alias::mutable_alias() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Alias.alias) + return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Alias::release_alias() { + // @@protoc_insertion_point(field_release:flyteidl.core.Alias.alias) + + return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Alias::set_allocated_alias(::std::string* alias) { + if (alias != nullptr) { + + } else { + + } + alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Alias.alias) +} + +// ------------------------------------------------------------------- + +// Node + +// string id = 1; +inline void Node::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Node::id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.id) + return id_.GetNoArena(); +} +inline void Node::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Node.id) +} +#if LANG_CXX11 +inline void Node::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Node.id) +} +#endif +inline void Node::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Node.id) +} +inline void Node::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Node.id) +} +inline ::std::string* Node::mutable_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Node::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Node::set_allocated_id(::std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.id) +} + +// .flyteidl.core.NodeMetadata metadata = 2; +inline bool Node::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void Node::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::core::NodeMetadata& Node::metadata() const { + const ::flyteidl::core::NodeMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.Node.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeMetadata_default_instance_); +} +inline ::flyteidl::core::NodeMetadata* Node::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.metadata) + + ::flyteidl::core::NodeMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeMetadata* Node::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.metadata) + return metadata_; +} +inline void Node::set_allocated_metadata(::flyteidl::core::NodeMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.metadata) +} + +// repeated .flyteidl.core.Binding inputs = 3; +inline int Node::inputs_size() const { + return inputs_.size(); +} +inline ::flyteidl::core::Binding* Node::mutable_inputs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.inputs) + return inputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* +Node::mutable_inputs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.inputs) + return &inputs_; +} +inline const ::flyteidl::core::Binding& Node::inputs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.inputs) + return inputs_.Get(index); +} +inline ::flyteidl::core::Binding* Node::add_inputs() { + // @@protoc_insertion_point(field_add:flyteidl.core.Node.inputs) + return inputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& +Node::inputs() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Node.inputs) + return inputs_; +} + +// repeated string upstream_node_ids = 4; +inline int Node::upstream_node_ids_size() const { + return upstream_node_ids_.size(); +} +inline void Node::clear_upstream_node_ids() { + upstream_node_ids_.Clear(); +} +inline const ::std::string& Node::upstream_node_ids(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_.Get(index); +} +inline ::std::string* Node::mutable_upstream_node_ids(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_.Mutable(index); +} +inline void Node::set_upstream_node_ids(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Node.upstream_node_ids) + upstream_node_ids_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Node::set_upstream_node_ids(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Node.upstream_node_ids) + upstream_node_ids_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Node::set_upstream_node_ids(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + upstream_node_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Node.upstream_node_ids) +} +inline void Node::set_upstream_node_ids(int index, const char* value, size_t size) { + upstream_node_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Node.upstream_node_ids) +} +inline ::std::string* Node::add_upstream_node_ids() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_.Add(); +} +inline void Node::add_upstream_node_ids(const ::std::string& value) { + upstream_node_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.Node.upstream_node_ids) +} +#if LANG_CXX11 +inline void Node::add_upstream_node_ids(::std::string&& value) { + upstream_node_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.Node.upstream_node_ids) +} +#endif +inline void Node::add_upstream_node_ids(const char* value) { + GOOGLE_DCHECK(value != nullptr); + upstream_node_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.Node.upstream_node_ids) +} +inline void Node::add_upstream_node_ids(const char* value, size_t size) { + upstream_node_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Node.upstream_node_ids) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +Node::upstream_node_ids() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +Node::mutable_upstream_node_ids() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.upstream_node_ids) + return &upstream_node_ids_; +} + +// repeated .flyteidl.core.Alias output_aliases = 5; +inline int Node::output_aliases_size() const { + return output_aliases_.size(); +} +inline void Node::clear_output_aliases() { + output_aliases_.Clear(); +} +inline ::flyteidl::core::Alias* Node::mutable_output_aliases(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.output_aliases) + return output_aliases_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >* +Node::mutable_output_aliases() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.output_aliases) + return &output_aliases_; +} +inline const ::flyteidl::core::Alias& Node::output_aliases(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.output_aliases) + return output_aliases_.Get(index); +} +inline ::flyteidl::core::Alias* Node::add_output_aliases() { + // @@protoc_insertion_point(field_add:flyteidl.core.Node.output_aliases) + return output_aliases_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >& +Node::output_aliases() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Node.output_aliases) + return output_aliases_; +} + +// .flyteidl.core.TaskNode task_node = 6; +inline bool Node::has_task_node() const { + return target_case() == kTaskNode; +} +inline void Node::set_has_task_node() { + _oneof_case_[0] = kTaskNode; +} +inline void Node::clear_task_node() { + if (has_task_node()) { + delete target_.task_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::TaskNode* Node::release_task_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.task_node) + if (has_task_node()) { + clear_has_target(); + ::flyteidl::core::TaskNode* temp = target_.task_node_; + target_.task_node_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::TaskNode& Node::task_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.task_node) + return has_task_node() + ? *target_.task_node_ + : *reinterpret_cast< ::flyteidl::core::TaskNode*>(&::flyteidl::core::_TaskNode_default_instance_); +} +inline ::flyteidl::core::TaskNode* Node::mutable_task_node() { + if (!has_task_node()) { + clear_target(); + set_has_task_node(); + target_.task_node_ = CreateMaybeMessage< ::flyteidl::core::TaskNode >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.task_node) + return target_.task_node_; +} + +// .flyteidl.core.WorkflowNode workflow_node = 7; +inline bool Node::has_workflow_node() const { + return target_case() == kWorkflowNode; +} +inline void Node::set_has_workflow_node() { + _oneof_case_[0] = kWorkflowNode; +} +inline void Node::clear_workflow_node() { + if (has_workflow_node()) { + delete target_.workflow_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::WorkflowNode* Node::release_workflow_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.workflow_node) + if (has_workflow_node()) { + clear_has_target(); + ::flyteidl::core::WorkflowNode* temp = target_.workflow_node_; + target_.workflow_node_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::WorkflowNode& Node::workflow_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.workflow_node) + return has_workflow_node() + ? *target_.workflow_node_ + : *reinterpret_cast< ::flyteidl::core::WorkflowNode*>(&::flyteidl::core::_WorkflowNode_default_instance_); +} +inline ::flyteidl::core::WorkflowNode* Node::mutable_workflow_node() { + if (!has_workflow_node()) { + clear_target(); + set_has_workflow_node(); + target_.workflow_node_ = CreateMaybeMessage< ::flyteidl::core::WorkflowNode >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.workflow_node) + return target_.workflow_node_; +} + +// .flyteidl.core.BranchNode branch_node = 8; +inline bool Node::has_branch_node() const { + return target_case() == kBranchNode; +} +inline void Node::set_has_branch_node() { + _oneof_case_[0] = kBranchNode; +} +inline void Node::clear_branch_node() { + if (has_branch_node()) { + delete target_.branch_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::BranchNode* Node::release_branch_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.branch_node) + if (has_branch_node()) { + clear_has_target(); + ::flyteidl::core::BranchNode* temp = target_.branch_node_; + target_.branch_node_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::BranchNode& Node::branch_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.branch_node) + return has_branch_node() + ? *target_.branch_node_ + : *reinterpret_cast< ::flyteidl::core::BranchNode*>(&::flyteidl::core::_BranchNode_default_instance_); +} +inline ::flyteidl::core::BranchNode* Node::mutable_branch_node() { + if (!has_branch_node()) { + clear_target(); + set_has_branch_node(); + target_.branch_node_ = CreateMaybeMessage< ::flyteidl::core::BranchNode >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.branch_node) + return target_.branch_node_; +} + +// .flyteidl.core.GateNode gate_node = 9; +inline bool Node::has_gate_node() const { + return target_case() == kGateNode; +} +inline void Node::set_has_gate_node() { + _oneof_case_[0] = kGateNode; +} +inline void Node::clear_gate_node() { + if (has_gate_node()) { + delete target_.gate_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::GateNode* Node::release_gate_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.gate_node) + if (has_gate_node()) { + clear_has_target(); + ::flyteidl::core::GateNode* temp = target_.gate_node_; + target_.gate_node_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::GateNode& Node::gate_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.gate_node) + return has_gate_node() + ? *target_.gate_node_ + : *reinterpret_cast< ::flyteidl::core::GateNode*>(&::flyteidl::core::_GateNode_default_instance_); +} +inline ::flyteidl::core::GateNode* Node::mutable_gate_node() { + if (!has_gate_node()) { + clear_target(); + set_has_gate_node(); + target_.gate_node_ = CreateMaybeMessage< ::flyteidl::core::GateNode >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.gate_node) + return target_.gate_node_; +} + +// .flyteidl.core.ArrayNode array_node = 10; +inline bool Node::has_array_node() const { + return target_case() == kArrayNode; +} +inline void Node::set_has_array_node() { + _oneof_case_[0] = kArrayNode; +} +inline void Node::clear_array_node() { + if (has_array_node()) { + delete target_.array_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::ArrayNode* Node::release_array_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.array_node) + if (has_array_node()) { + clear_has_target(); + ::flyteidl::core::ArrayNode* temp = target_.array_node_; + target_.array_node_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ArrayNode& Node::array_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.array_node) + return has_array_node() + ? *target_.array_node_ + : *reinterpret_cast< ::flyteidl::core::ArrayNode*>(&::flyteidl::core::_ArrayNode_default_instance_); +} +inline ::flyteidl::core::ArrayNode* Node::mutable_array_node() { + if (!has_array_node()) { + clear_target(); + set_has_array_node(); + target_.array_node_ = CreateMaybeMessage< ::flyteidl::core::ArrayNode >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.array_node) + return target_.array_node_; +} + +inline bool Node::has_target() const { + return target_case() != TARGET_NOT_SET; +} +inline void Node::clear_has_target() { + _oneof_case_[0] = TARGET_NOT_SET; +} +inline Node::TargetCase Node::target_case() const { + return Node::TargetCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// WorkflowMetadata + +// .flyteidl.core.QualityOfService quality_of_service = 1; +inline bool WorkflowMetadata::has_quality_of_service() const { + return this != internal_default_instance() && quality_of_service_ != nullptr; +} +inline const ::flyteidl::core::QualityOfService& WorkflowMetadata::quality_of_service() const { + const ::flyteidl::core::QualityOfService* p = quality_of_service_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowMetadata.quality_of_service) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_QualityOfService_default_instance_); +} +inline ::flyteidl::core::QualityOfService* WorkflowMetadata::release_quality_of_service() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowMetadata.quality_of_service) + + ::flyteidl::core::QualityOfService* temp = quality_of_service_; + quality_of_service_ = nullptr; + return temp; +} +inline ::flyteidl::core::QualityOfService* WorkflowMetadata::mutable_quality_of_service() { + + if (quality_of_service_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::QualityOfService>(GetArenaNoVirtual()); + quality_of_service_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowMetadata.quality_of_service) + return quality_of_service_; +} +inline void WorkflowMetadata::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(quality_of_service_); + } + if (quality_of_service) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + quality_of_service = ::google::protobuf::internal::GetOwnedMessage( + message_arena, quality_of_service, submessage_arena); + } + + } else { + + } + quality_of_service_ = quality_of_service; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowMetadata.quality_of_service) +} + +// .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; +inline void WorkflowMetadata::clear_on_failure() { + on_failure_ = 0; +} +inline ::flyteidl::core::WorkflowMetadata_OnFailurePolicy WorkflowMetadata::on_failure() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowMetadata.on_failure) + return static_cast< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy >(on_failure_); +} +inline void WorkflowMetadata::set_on_failure(::flyteidl::core::WorkflowMetadata_OnFailurePolicy value) { + + on_failure_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowMetadata.on_failure) +} + +// map tags = 3; +inline int WorkflowMetadata::tags_size() const { + return tags_.size(); +} +inline void WorkflowMetadata::clear_tags() { + tags_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +WorkflowMetadata::tags() const { + // @@protoc_insertion_point(field_map:flyteidl.core.WorkflowMetadata.tags) + return tags_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +WorkflowMetadata::mutable_tags() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.WorkflowMetadata.tags) + return tags_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// WorkflowMetadataDefaults + +// bool interruptible = 1; +inline void WorkflowMetadataDefaults::clear_interruptible() { + interruptible_ = false; +} +inline bool WorkflowMetadataDefaults::interruptible() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowMetadataDefaults.interruptible) + return interruptible_; +} +inline void WorkflowMetadataDefaults::set_interruptible(bool value) { + + interruptible_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowMetadataDefaults.interruptible) +} + +// ------------------------------------------------------------------- + +// WorkflowTemplate + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowTemplate::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& WorkflowTemplate::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowTemplate::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowTemplate::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.id) + return id_; +} +inline void WorkflowTemplate::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.id) +} + +// .flyteidl.core.WorkflowMetadata metadata = 2; +inline bool WorkflowTemplate::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void WorkflowTemplate::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::core::WorkflowMetadata& WorkflowTemplate::metadata() const { + const ::flyteidl::core::WorkflowMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowMetadata_default_instance_); +} +inline ::flyteidl::core::WorkflowMetadata* WorkflowTemplate::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.metadata) + + ::flyteidl::core::WorkflowMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowMetadata* WorkflowTemplate::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.metadata) + return metadata_; +} +inline void WorkflowTemplate::set_allocated_metadata(::flyteidl::core::WorkflowMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.metadata) +} + +// .flyteidl.core.TypedInterface interface = 3; +inline bool WorkflowTemplate::has_interface() const { + return this != internal_default_instance() && interface_ != nullptr; +} +inline const ::flyteidl::core::TypedInterface& WorkflowTemplate::interface() const { + const ::flyteidl::core::TypedInterface* p = interface_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.interface) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TypedInterface_default_instance_); +} +inline ::flyteidl::core::TypedInterface* WorkflowTemplate::release_interface() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.interface) + + ::flyteidl::core::TypedInterface* temp = interface_; + interface_ = nullptr; + return temp; +} +inline ::flyteidl::core::TypedInterface* WorkflowTemplate::mutable_interface() { + + if (interface_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TypedInterface>(GetArenaNoVirtual()); + interface_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.interface) + return interface_; +} +inline void WorkflowTemplate::set_allocated_interface(::flyteidl::core::TypedInterface* interface) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interface_); + } + if (interface) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + interface = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interface, submessage_arena); + } + + } else { + + } + interface_ = interface; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.interface) +} + +// repeated .flyteidl.core.Node nodes = 4; +inline int WorkflowTemplate::nodes_size() const { + return nodes_.size(); +} +inline void WorkflowTemplate::clear_nodes() { + nodes_.Clear(); +} +inline ::flyteidl::core::Node* WorkflowTemplate::mutable_nodes(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.nodes) + return nodes_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* +WorkflowTemplate::mutable_nodes() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowTemplate.nodes) + return &nodes_; +} +inline const ::flyteidl::core::Node& WorkflowTemplate::nodes(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.nodes) + return nodes_.Get(index); +} +inline ::flyteidl::core::Node* WorkflowTemplate::add_nodes() { + // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowTemplate.nodes) + return nodes_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& +WorkflowTemplate::nodes() const { + // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowTemplate.nodes) + return nodes_; +} + +// repeated .flyteidl.core.Binding outputs = 5; +inline int WorkflowTemplate::outputs_size() const { + return outputs_.size(); +} +inline ::flyteidl::core::Binding* WorkflowTemplate::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.outputs) + return outputs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* +WorkflowTemplate::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowTemplate.outputs) + return &outputs_; +} +inline const ::flyteidl::core::Binding& WorkflowTemplate::outputs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.outputs) + return outputs_.Get(index); +} +inline ::flyteidl::core::Binding* WorkflowTemplate::add_outputs() { + // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowTemplate.outputs) + return outputs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& +WorkflowTemplate::outputs() const { + // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowTemplate.outputs) + return outputs_; +} + +// .flyteidl.core.Node failure_node = 6; +inline bool WorkflowTemplate::has_failure_node() const { + return this != internal_default_instance() && failure_node_ != nullptr; +} +inline void WorkflowTemplate::clear_failure_node() { + if (GetArenaNoVirtual() == nullptr && failure_node_ != nullptr) { + delete failure_node_; + } + failure_node_ = nullptr; +} +inline const ::flyteidl::core::Node& WorkflowTemplate::failure_node() const { + const ::flyteidl::core::Node* p = failure_node_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.failure_node) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Node_default_instance_); +} +inline ::flyteidl::core::Node* WorkflowTemplate::release_failure_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.failure_node) + + ::flyteidl::core::Node* temp = failure_node_; + failure_node_ = nullptr; + return temp; +} +inline ::flyteidl::core::Node* WorkflowTemplate::mutable_failure_node() { + + if (failure_node_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Node>(GetArenaNoVirtual()); + failure_node_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.failure_node) + return failure_node_; +} +inline void WorkflowTemplate::set_allocated_failure_node(::flyteidl::core::Node* failure_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete failure_node_; + } + if (failure_node) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + failure_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, failure_node, submessage_arena); + } + + } else { + + } + failure_node_ = failure_node; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.failure_node) +} + +// .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; +inline bool WorkflowTemplate::has_metadata_defaults() const { + return this != internal_default_instance() && metadata_defaults_ != nullptr; +} +inline void WorkflowTemplate::clear_metadata_defaults() { + if (GetArenaNoVirtual() == nullptr && metadata_defaults_ != nullptr) { + delete metadata_defaults_; + } + metadata_defaults_ = nullptr; +} +inline const ::flyteidl::core::WorkflowMetadataDefaults& WorkflowTemplate::metadata_defaults() const { + const ::flyteidl::core::WorkflowMetadataDefaults* p = metadata_defaults_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.metadata_defaults) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowMetadataDefaults_default_instance_); +} +inline ::flyteidl::core::WorkflowMetadataDefaults* WorkflowTemplate::release_metadata_defaults() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.metadata_defaults) + + ::flyteidl::core::WorkflowMetadataDefaults* temp = metadata_defaults_; + metadata_defaults_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowMetadataDefaults* WorkflowTemplate::mutable_metadata_defaults() { + + if (metadata_defaults_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowMetadataDefaults>(GetArenaNoVirtual()); + metadata_defaults_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.metadata_defaults) + return metadata_defaults_; +} +inline void WorkflowTemplate::set_allocated_metadata_defaults(::flyteidl::core::WorkflowMetadataDefaults* metadata_defaults) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_defaults_; + } + if (metadata_defaults) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata_defaults = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata_defaults, submessage_arena); + } + + } else { + + } + metadata_defaults_ = metadata_defaults; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.metadata_defaults) +} + +// ------------------------------------------------------------------- + +// TaskNodeOverrides + +// .flyteidl.core.Resources resources = 1; +inline bool TaskNodeOverrides::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline const ::flyteidl::core::Resources& TaskNodeOverrides::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskNodeOverrides.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* TaskNodeOverrides::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskNodeOverrides.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::flyteidl::core::Resources* TaskNodeOverrides::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNodeOverrides.resources) + return resources_; +} +inline void TaskNodeOverrides::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNodeOverrides.resources) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy>() { + return ::flyteidl::core::WorkflowMetadata_OnFailurePolicy_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc new file mode 100644 index 0000000000..680f5eac42 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow_closure.proto + +#include "flyteidl/core/workflow_closure.pb.h" +#include "flyteidl/core/workflow_closure.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h new file mode 100644 index 0000000000..bd096c854c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow_closure.proto +#ifndef GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED + +#include "flyteidl/core/workflow_closure.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc new file mode 100644 index 0000000000..6b4f8a1b2e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc @@ -0,0 +1,474 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +#include "flyteidl/core/workflow_closure.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; +namespace flyteidl { +namespace core { +class WorkflowClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowClosure_default_instance_; +} // namespace core +} // namespace flyteidl +static void InitDefaultsWorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::core::_WorkflowClosure_default_instance_; + new (ptr) ::flyteidl::core::WorkflowClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowClosure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto}, { + &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base, + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +void InitDefaults_flyteidl_2fcore_2fworkflow_5fclosure_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fworkflow_5fclosure_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, tasks_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::WorkflowClosure)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_WorkflowClosure_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = { + {}, AddDescriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, "flyteidl/core/workflow_closure.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::offsets, + file_level_metadata_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, 1, file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fcore_2fworkflow_5fclosure_2eproto[] = + "\n$flyteidl/core/workflow_closure.proto\022\r" + "flyteidl.core\032\034flyteidl/core/workflow.pr" + "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + "yteidl.core.TaskTemplateB6Z4github.com/f" + "lyteorg/flyteidl/gen/pb-go/flyteidl/core" + "b\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = { + false, InitDefaults_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, + descriptor_table_protodef_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, + "flyteidl/core/workflow_closure.proto", &assign_descriptors_table_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, 288, +}; + +void AddDescriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = []() { AddDescriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto(); return true; }(); +namespace flyteidl { +namespace core { + +// =================================================================== + +void WorkflowClosure::InitAsDefaultInstance() { + ::flyteidl::core::_WorkflowClosure_default_instance_._instance.get_mutable()->workflow_ = const_cast< ::flyteidl::core::WorkflowTemplate*>( + ::flyteidl::core::WorkflowTemplate::internal_default_instance()); +} +class WorkflowClosure::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowTemplate& workflow(const WorkflowClosure* msg); +}; + +const ::flyteidl::core::WorkflowTemplate& +WorkflowClosure::HasBitSetters::workflow(const WorkflowClosure* msg) { + return *msg->workflow_; +} +void WorkflowClosure::clear_workflow() { + if (GetArenaNoVirtual() == nullptr && workflow_ != nullptr) { + delete workflow_; + } + workflow_ = nullptr; +} +void WorkflowClosure::clear_tasks() { + tasks_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowClosure::kWorkflowFieldNumber; +const int WorkflowClosure::kTasksFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowClosure::WorkflowClosure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowClosure) +} +WorkflowClosure::WorkflowClosure(const WorkflowClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + tasks_(from.tasks_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_workflow()) { + workflow_ = new ::flyteidl::core::WorkflowTemplate(*from.workflow_); + } else { + workflow_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowClosure) +} + +void WorkflowClosure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto.base); + workflow_ = nullptr; +} + +WorkflowClosure::~WorkflowClosure() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowClosure) + SharedDtor(); +} + +void WorkflowClosure::SharedDtor() { + if (this != internal_default_instance()) delete workflow_; +} + +void WorkflowClosure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowClosure& WorkflowClosure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tasks_.Clear(); + if (GetArenaNoVirtual() == nullptr && workflow_ != nullptr) { + delete workflow_; + } + workflow_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowClosure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowTemplate workflow = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowTemplate::_InternalParse; + object = msg->mutable_workflow(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.core.TaskTemplate tasks = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->add_tasks(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowClosure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowTemplate workflow = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tasks())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowClosure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate workflow = 1; + if (this->has_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::workflow(this), output); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->tasks(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowClosure) +} + +::google::protobuf::uint8* WorkflowClosure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate workflow = 1; + if (this->has_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::workflow(this), target); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->tasks(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowClosure) + return target; +} + +size_t WorkflowClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowClosure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(i))); + } + } + + // .flyteidl.core.WorkflowTemplate workflow = 1; + if (this->has_workflow()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *workflow_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowClosure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowClosure) + MergeFrom(*source); + } +} + +void WorkflowClosure::MergeFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tasks_.MergeFrom(from.tasks_); + if (from.has_workflow()) { + mutable_workflow()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.workflow()); + } +} + +void WorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowClosure::CopyFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowClosure::IsInitialized() const { + return true; +} + +void WorkflowClosure::Swap(WorkflowClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowClosure::InternalSwap(WorkflowClosure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); + swap(workflow_, other->workflow_); +} + +::google::protobuf::Metadata WorkflowClosure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_5fclosure_2eproto); + return ::file_level_metadata_flyteidl_2fcore_2fworkflow_5fclosure_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowClosure* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::core::WorkflowClosure >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h new file mode 100644 index 0000000000..f70671ea56 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h @@ -0,0 +1,291 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_5fclosure_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_5fclosure_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/tasks.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_5fclosure_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto(); +namespace flyteidl { +namespace core { +class WorkflowClosure; +class WorkflowClosureDefaultTypeInternal; +extern WorkflowClosureDefaultTypeInternal _WorkflowClosure_default_instance_; +} // namespace core +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::core::WorkflowClosure* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowClosure>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace core { + +// =================================================================== + +class WorkflowClosure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowClosure) */ { + public: + WorkflowClosure(); + virtual ~WorkflowClosure(); + + WorkflowClosure(const WorkflowClosure& from); + + inline WorkflowClosure& operator=(const WorkflowClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowClosure(WorkflowClosure&& from) noexcept + : WorkflowClosure() { + *this = ::std::move(from); + } + + inline WorkflowClosure& operator=(WorkflowClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowClosure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowClosure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(WorkflowClosure* other); + friend void swap(WorkflowClosure& a, WorkflowClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowClosure* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowClosure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowClosure& from); + void MergeFrom(const WorkflowClosure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 2; + ::flyteidl::core::TaskTemplate* mutable_tasks(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* + mutable_tasks(); + const ::flyteidl::core::TaskTemplate& tasks(int index) const; + ::flyteidl::core::TaskTemplate* add_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& + tasks() const; + + // .flyteidl.core.WorkflowTemplate workflow = 1; + bool has_workflow() const; + void clear_workflow(); + static const int kWorkflowFieldNumber = 1; + const ::flyteidl::core::WorkflowTemplate& workflow() const; + ::flyteidl::core::WorkflowTemplate* release_workflow(); + ::flyteidl::core::WorkflowTemplate* mutable_workflow(); + void set_allocated_workflow(::flyteidl::core::WorkflowTemplate* workflow); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate > tasks_; + ::flyteidl::core::WorkflowTemplate* workflow_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowClosure + +// .flyteidl.core.WorkflowTemplate workflow = 1; +inline bool WorkflowClosure::has_workflow() const { + return this != internal_default_instance() && workflow_ != nullptr; +} +inline const ::flyteidl::core::WorkflowTemplate& WorkflowClosure::workflow() const { + const ::flyteidl::core::WorkflowTemplate* p = workflow_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowClosure.workflow) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowTemplate_default_instance_); +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowClosure::release_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowClosure.workflow) + + ::flyteidl::core::WorkflowTemplate* temp = workflow_; + workflow_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowClosure::mutable_workflow() { + + if (workflow_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(GetArenaNoVirtual()); + workflow_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowClosure.workflow) + return workflow_; +} +inline void WorkflowClosure::set_allocated_workflow(::flyteidl::core::WorkflowTemplate* workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_); + } + if (workflow) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow, submessage_arena); + } + + } else { + + } + workflow_ = workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowClosure.workflow) +} + +// repeated .flyteidl.core.TaskTemplate tasks = 2; +inline int WorkflowClosure::tasks_size() const { + return tasks_.size(); +} +inline ::flyteidl::core::TaskTemplate* WorkflowClosure::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowClosure.tasks) + return tasks_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* +WorkflowClosure::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowClosure.tasks) + return &tasks_; +} +inline const ::flyteidl::core::TaskTemplate& WorkflowClosure::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowClosure.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::core::TaskTemplate* WorkflowClosure::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowClosure.tasks) + return tasks_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& +WorkflowClosure::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowClosure.tasks) + return tasks_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_5fclosure_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc new file mode 100644 index 0000000000..9fa10c82c8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc @@ -0,0 +1,461 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/datacatalog/datacatalog.proto + +#include "flyteidl/datacatalog/datacatalog.pb.h" +#include "flyteidl/datacatalog/datacatalog.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace datacatalog { + +static const char* DataCatalog_method_names[] = { + "/datacatalog.DataCatalog/CreateDataset", + "/datacatalog.DataCatalog/GetDataset", + "/datacatalog.DataCatalog/CreateArtifact", + "/datacatalog.DataCatalog/GetArtifact", + "/datacatalog.DataCatalog/AddTag", + "/datacatalog.DataCatalog/ListArtifacts", + "/datacatalog.DataCatalog/ListDatasets", + "/datacatalog.DataCatalog/UpdateArtifact", + "/datacatalog.DataCatalog/GetOrExtendReservation", + "/datacatalog.DataCatalog/ReleaseReservation", +}; + +std::unique_ptr< DataCatalog::Stub> DataCatalog::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< DataCatalog::Stub> stub(new DataCatalog::Stub(channel)); + return stub; +} + +DataCatalog::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateDataset_(DataCatalog_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDataset_(DataCatalog_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateArtifact_(DataCatalog_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetArtifact_(DataCatalog_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_AddTag_(DataCatalog_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListArtifacts_(DataCatalog_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListDatasets_(DataCatalog_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateArtifact_(DataCatalog_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrExtendReservation_(DataCatalog_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReleaseReservation_(DataCatalog_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status DataCatalog::Stub::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateDataset_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* DataCatalog::Stub::AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateDatasetResponse>::Create(channel_.get(), cq, rpcmethod_CreateDataset_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* DataCatalog::Stub::PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateDatasetResponse>::Create(channel_.get(), cq, rpcmethod_CreateDataset_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDataset_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* DataCatalog::Stub::AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetDatasetResponse>::Create(channel_.get(), cq, rpcmethod_GetDataset_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* DataCatalog::Stub::PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetDatasetResponse>::Create(channel_.get(), cq, rpcmethod_GetDataset_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateArtifact_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* DataCatalog::Stub::AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* DataCatalog::Stub::PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetArtifact_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* DataCatalog::Stub::AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* DataCatalog::Stub::PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AddTag_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* DataCatalog::Stub::AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* DataCatalog::Stub::PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListArtifacts_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* DataCatalog::Stub::AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_ListArtifacts_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* DataCatalog::Stub::PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_ListArtifacts_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListDatasets_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCatalog::Stub::AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCatalog::Stub::PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateArtifact_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* DataCatalog::Stub::AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::UpdateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_UpdateArtifact_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* DataCatalog::Stub::PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::UpdateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_UpdateArtifact_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrExtendReservation_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* DataCatalog::Stub::AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrExtendReservationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrExtendReservation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* DataCatalog::Stub::PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrExtendReservationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrExtendReservation_, context, request, false); +} + +::grpc::Status DataCatalog::Stub::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReleaseReservation_, context, request, response); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, std::move(f)); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, reactor); +} + +void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservation_, context, request, false); +} + +DataCatalog::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>( + std::mem_fn(&DataCatalog::Service::CreateDataset), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>( + std::mem_fn(&DataCatalog::Service::GetDataset), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>( + std::mem_fn(&DataCatalog::Service::CreateArtifact), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>( + std::mem_fn(&DataCatalog::Service::GetArtifact), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>( + std::mem_fn(&DataCatalog::Service::AddTag), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>( + std::mem_fn(&DataCatalog::Service::ListArtifacts), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>( + std::mem_fn(&DataCatalog::Service::ListDatasets), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>( + std::mem_fn(&DataCatalog::Service::UpdateArtifact), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( + std::mem_fn(&DataCatalog::Service::GetOrExtendReservation), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataCatalog_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( + std::mem_fn(&DataCatalog::Service::ReleaseReservation), this))); +} + +DataCatalog::Service::~Service() { +} + +::grpc::Status DataCatalog::Service::CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataCatalog::Service::ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace datacatalog + diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h new file mode 100644 index 0000000000..358bfd9ded --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h @@ -0,0 +1,1775 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/datacatalog/datacatalog.proto +#ifndef GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED +#define GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED + +#include "flyteidl/datacatalog/datacatalog.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace datacatalog { + +// +// Data Catalog service definition +// Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. +// Artifacts are associated with a Dataset, and can be tagged for retrieval. +class DataCatalog final { + public: + static constexpr char const* service_full_name() { + return "datacatalog.DataCatalog"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + virtual ::grpc::Status CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>> AsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>>(AsyncCreateDatasetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>> PrepareAsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>>(PrepareAsyncCreateDatasetRaw(context, request, cq)); + } + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + virtual ::grpc::Status GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>> AsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>>(AsyncGetDatasetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>> PrepareAsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>>(PrepareAsyncGetDatasetRaw(context, request, cq)); + } + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + virtual ::grpc::Status CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>>(AsyncCreateArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(context, request, cq)); + } + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + virtual ::grpc::Status GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>>(AsyncGetArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); + } + // Associate a tag with an artifact. Tags are unique within a Dataset. + virtual ::grpc::Status AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>>(AsyncAddTagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>>(PrepareAsyncAddTagRaw(context, request, cq)); + } + // Return a paginated list of artifacts + virtual ::grpc::Status ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>> AsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>>(AsyncListArtifactsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>> PrepareAsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>>(PrepareAsyncListArtifactsRaw(context, request, cq)); + } + // Return a paginated list of datasets + virtual ::grpc::Status ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>> AsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>>(AsyncListDatasetsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(context, request, cq)); + } + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + virtual ::grpc::Status UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>> AsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>>(AsyncUpdateArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>> PrepareAsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>>(PrepareAsyncUpdateArtifactRaw(context, request, cq)); + } + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + virtual ::grpc::Status GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>> AsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>>(AsyncGetOrExtendReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>> PrepareAsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>>(PrepareAsyncGetOrExtendReservationRaw(context, request, cq)); + } + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + virtual ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + virtual void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function) = 0; + virtual void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function) = 0; + virtual void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + virtual void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function) = 0; + virtual void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function) = 0; + virtual void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + virtual void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function) = 0; + virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function) = 0; + virtual void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + virtual void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function) = 0; + virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function) = 0; + virtual void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Associate a tag with an artifact. Tags are unique within a Dataset. + virtual void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function) = 0; + virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function) = 0; + virtual void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Return a paginated list of artifacts + virtual void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function) = 0; + virtual void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function) = 0; + virtual void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Return a paginated list of datasets + virtual void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function) = 0; + virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) = 0; + virtual void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function) = 0; + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function) = 0; + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) = 0; + virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) = 0; + virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>* AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>* PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>* AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>* PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>* AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>* AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>> AsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>>(AsyncCreateDatasetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>> PrepareAsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>>(PrepareAsyncCreateDatasetRaw(context, request, cq)); + } + ::grpc::Status GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>> AsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>>(AsyncGetDatasetRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>> PrepareAsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>>(PrepareAsyncGetDatasetRaw(context, request, cq)); + } + ::grpc::Status CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>>(AsyncCreateArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(context, request, cq)); + } + ::grpc::Status GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>>(AsyncGetArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); + } + ::grpc::Status AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>>(AsyncAddTagRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>>(PrepareAsyncAddTagRaw(context, request, cq)); + } + ::grpc::Status ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>> AsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>>(AsyncListArtifactsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>> PrepareAsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>>(PrepareAsyncListArtifactsRaw(context, request, cq)); + } + ::grpc::Status ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>> AsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>>(AsyncListDatasetsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(context, request, cq)); + } + ::grpc::Status UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>> AsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>>(AsyncUpdateArtifactRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>> PrepareAsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>>(PrepareAsyncUpdateArtifactRaw(context, request, cq)); + } + ::grpc::Status GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>> AsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>>(AsyncGetOrExtendReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>> PrepareAsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>>(PrepareAsyncGetOrExtendReservationRaw(context, request, cq)); + } + ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function) override; + void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function) override; + void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function) override; + void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function) override; + void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function) override; + void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function) override; + void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function) override; + void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function) override; + void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function) override; + void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function) override; + void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function) override; + void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function) override; + void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function) override; + void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) override; + void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; + void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; + void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateDataset_; + const ::grpc::internal::RpcMethod rpcmethod_GetDataset_; + const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; + const ::grpc::internal::RpcMethod rpcmethod_GetArtifact_; + const ::grpc::internal::RpcMethod rpcmethod_AddTag_; + const ::grpc::internal::RpcMethod rpcmethod_ListArtifacts_; + const ::grpc::internal::RpcMethod rpcmethod_ListDatasets_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateArtifact_; + const ::grpc::internal::RpcMethod rpcmethod_GetOrExtendReservation_; + const ::grpc::internal::RpcMethod rpcmethod_ReleaseReservation_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + virtual ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response); + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + virtual ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response); + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + virtual ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response); + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + virtual ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response); + // Associate a tag with an artifact. Tags are unique within a Dataset. + virtual ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response); + // Return a paginated list of artifacts + virtual ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response); + // Return a paginated list of datasets + virtual ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response); + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + virtual ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response); + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + virtual ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response); + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + virtual ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response); + }; + template + class WithAsyncMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateDataset() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateDataset(::grpc::ServerContext* context, ::datacatalog::CreateDatasetRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::CreateDatasetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetDataset() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDataset(::grpc::ServerContext* context, ::datacatalog::GetDatasetRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetDatasetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateArtifact() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_CreateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateArtifact(::grpc::ServerContext* context, ::datacatalog::CreateArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::CreateArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetArtifact() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetArtifact(::grpc::ServerContext* context, ::datacatalog::GetArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_AddTag() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddTag(::grpc::ServerContext* context, ::datacatalog::AddTagRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::AddTagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListArtifacts() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListArtifacts(::grpc::ServerContext* context, ::datacatalog::ListArtifactsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ListArtifactsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListDatasets() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListDatasets(::grpc::ServerContext* context, ::datacatalog::ListDatasetsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ListDatasetsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateArtifact(::grpc::ServerContext* context, ::datacatalog::UpdateArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::UpdateArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetOrExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetOrExtendReservation() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_GetOrExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrExtendReservation(::grpc::ServerContext* context, ::datacatalog::GetOrExtendReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetOrExtendReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ReleaseReservation() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestReleaseReservation(::grpc::ServerContext* context, ::datacatalog::ReleaseReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ReleaseReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateDataset > > > > > > > > > AsyncService; + template + class ExperimentalWithCallbackMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateDataset() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::CreateDatasetRequest* request, + ::datacatalog::CreateDatasetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateDataset(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateDataset( + ::grpc::experimental::MessageAllocator< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetDataset() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::GetDatasetRequest* request, + ::datacatalog::GetDatasetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetDataset(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetDataset( + ::grpc::experimental::MessageAllocator< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateArtifact() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::CreateArtifactRequest* request, + ::datacatalog::CreateArtifactResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateArtifact(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateArtifact( + ::grpc::experimental::MessageAllocator< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetArtifact() { + ::grpc::Service::experimental().MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::GetArtifactRequest* request, + ::datacatalog::GetArtifactResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetArtifact(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetArtifact( + ::grpc::experimental::MessageAllocator< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>*>( + ::grpc::Service::experimental().GetHandler(3)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_AddTag() { + ::grpc::Service::experimental().MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::AddTagRequest* request, + ::datacatalog::AddTagResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->AddTag(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_AddTag( + ::grpc::experimental::MessageAllocator< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>*>( + ::grpc::Service::experimental().GetHandler(4)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListArtifacts() { + ::grpc::Service::experimental().MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::ListArtifactsRequest* request, + ::datacatalog::ListArtifactsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListArtifacts(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListArtifacts( + ::grpc::experimental::MessageAllocator< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>*>( + ::grpc::Service::experimental().GetHandler(5)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListDatasets() { + ::grpc::Service::experimental().MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::ListDatasetsRequest* request, + ::datacatalog::ListDatasetsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListDatasets(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListDatasets( + ::grpc::experimental::MessageAllocator< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>*>( + ::grpc::Service::experimental().GetHandler(6)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateArtifact() { + ::grpc::Service::experimental().MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::UpdateArtifactRequest* request, + ::datacatalog::UpdateArtifactResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateArtifact(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateArtifact( + ::grpc::experimental::MessageAllocator< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>*>( + ::grpc::Service::experimental().GetHandler(7)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetOrExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetOrExtendReservation() { + ::grpc::Service::experimental().MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::GetOrExtendReservationRequest* request, + ::datacatalog::GetOrExtendReservationResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetOrExtendReservation(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetOrExtendReservation( + ::grpc::experimental::MessageAllocator< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>*>( + ::grpc::Service::experimental().GetHandler(8)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetOrExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ReleaseReservation() { + ::grpc::Service::experimental().MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( + [this](::grpc::ServerContext* context, + const ::datacatalog::ReleaseReservationRequest* request, + ::datacatalog::ReleaseReservationResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ReleaseReservation(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ReleaseReservation( + ::grpc::experimental::MessageAllocator< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>*>( + ::grpc::Service::experimental().GetHandler(9)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > > > > ExperimentalCallbackService; + template + class WithGenericMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateDataset() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetDataset() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateArtifact() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_CreateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetArtifact() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_AddTag() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListArtifacts() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListDatasets() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetOrExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetOrExtendReservation() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_GetOrExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ReleaseReservation() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateDataset() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateDataset(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetDataset() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDataset(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateArtifact() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_CreateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetArtifact() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_AddTag() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddTag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListArtifacts() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListArtifacts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListDatasets() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListDatasets(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetOrExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetOrExtendReservation() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_GetOrExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrExtendReservation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ReleaseReservation() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestReleaseReservation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateDataset() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateDataset(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateDataset(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetDataset() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetDataset(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetDataset(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateArtifact() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateArtifact(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetArtifact() { + ::grpc::Service::experimental().MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetArtifact(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_AddTag() { + ::grpc::Service::experimental().MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->AddTag(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void AddTag(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListArtifacts() { + ::grpc::Service::experimental().MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListArtifacts(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListArtifacts(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListDatasets() { + ::grpc::Service::experimental().MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListDatasets(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListDatasets(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateArtifact() { + ::grpc::Service::experimental().MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateArtifact(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetOrExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetOrExtendReservation() { + ::grpc::Service::experimental().MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetOrExtendReservation(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetOrExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOrExtendReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ReleaseReservation() { + ::grpc::Service::experimental().MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ReleaseReservation(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ReleaseReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_CreateDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateDataset() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>(std::bind(&WithStreamedUnaryMethod_CreateDataset::StreamedCreateDataset, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateDataset(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::CreateDatasetRequest,::datacatalog::CreateDatasetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetDataset : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetDataset() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>(std::bind(&WithStreamedUnaryMethod_GetDataset::StreamedGetDataset, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetDataset() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetDataset(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetDatasetRequest,::datacatalog::GetDatasetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateArtifact() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>(std::bind(&WithStreamedUnaryMethod_CreateArtifact::StreamedCreateArtifact, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::CreateArtifactRequest,::datacatalog::CreateArtifactResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetArtifact() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>(std::bind(&WithStreamedUnaryMethod_GetArtifact::StreamedGetArtifact, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetArtifactRequest,::datacatalog::GetArtifactResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_AddTag : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_AddTag() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>(std::bind(&WithStreamedUnaryMethod_AddTag::StreamedAddTag, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_AddTag() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAddTag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::AddTagRequest,::datacatalog::AddTagResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListArtifacts : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListArtifacts() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>(std::bind(&WithStreamedUnaryMethod_ListArtifacts::StreamedListArtifacts, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListArtifacts() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListArtifacts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListArtifactsRequest,::datacatalog::ListArtifactsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListDatasets : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListDatasets() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>(std::bind(&WithStreamedUnaryMethod_ListDatasets::StreamedListDatasets, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListDatasets() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListDatasets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListDatasetsRequest,::datacatalog::ListDatasetsResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateArtifact : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateArtifact() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>(std::bind(&WithStreamedUnaryMethod_UpdateArtifact::StreamedUpdateArtifact, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateArtifact() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::UpdateArtifactRequest,::datacatalog::UpdateArtifactResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetOrExtendReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetOrExtendReservation() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>(std::bind(&WithStreamedUnaryMethod_GetOrExtendReservation::StreamedGetOrExtendReservation, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetOrExtendReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetOrExtendReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetOrExtendReservationRequest,::datacatalog::GetOrExtendReservationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ReleaseReservation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ReleaseReservation() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>(std::bind(&WithStreamedUnaryMethod_ReleaseReservation::StreamedReleaseReservation, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ReleaseReservation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedReleaseReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ReleaseReservationRequest,::datacatalog::ReleaseReservationResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > StreamedService; +}; + +} // namespace datacatalog + + +#endif // GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc new file mode 100644 index 0000000000..a133969583 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc @@ -0,0 +1,15453 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/datacatalog/datacatalog.proto + +#include "flyteidl/datacatalog/datacatalog.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace datacatalog { +class CreateDatasetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateDatasetRequest_default_instance_; +class CreateDatasetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateDatasetResponse_default_instance_; +class GetDatasetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetDatasetRequest_default_instance_; +class GetDatasetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetDatasetResponse_default_instance_; +class GetArtifactRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; +} _GetArtifactRequest_default_instance_; +class GetArtifactResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetArtifactResponse_default_instance_; +class CreateArtifactRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateArtifactRequest_default_instance_; +class CreateArtifactResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateArtifactResponse_default_instance_; +class AddTagRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AddTagRequest_default_instance_; +class AddTagResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AddTagResponse_default_instance_; +class ListArtifactsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListArtifactsRequest_default_instance_; +class ListArtifactsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListArtifactsResponse_default_instance_; +class ListDatasetsRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListDatasetsRequest_default_instance_; +class ListDatasetsResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ListDatasetsResponse_default_instance_; +class UpdateArtifactRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; +} _UpdateArtifactRequest_default_instance_; +class UpdateArtifactResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _UpdateArtifactResponse_default_instance_; +class ReservationIDDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ReservationID_default_instance_; +class GetOrExtendReservationRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetOrExtendReservationRequest_default_instance_; +class ReservationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Reservation_default_instance_; +class GetOrExtendReservationResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetOrExtendReservationResponse_default_instance_; +class ReleaseReservationRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ReleaseReservationRequest_default_instance_; +class ReleaseReservationResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ReleaseReservationResponse_default_instance_; +class DatasetDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Dataset_default_instance_; +class PartitionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Partition_default_instance_; +class DatasetIDDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DatasetID_default_instance_; +class ArtifactDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Artifact_default_instance_; +class ArtifactDataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ArtifactData_default_instance_; +class TagDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Tag_default_instance_; +class Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Metadata_KeyMapEntry_DoNotUse_default_instance_; +class MetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Metadata_default_instance_; +class FilterExpressionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _FilterExpression_default_instance_; +class SinglePropertyFilterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::datacatalog::TagPropertyFilter* tag_filter_; + const ::datacatalog::PartitionPropertyFilter* partition_filter_; + const ::datacatalog::ArtifactPropertyFilter* artifact_filter_; + const ::datacatalog::DatasetPropertyFilter* dataset_filter_; +} _SinglePropertyFilter_default_instance_; +class ArtifactPropertyFilterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; +} _ArtifactPropertyFilter_default_instance_; +class TagPropertyFilterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr tag_name_; +} _TagPropertyFilter_default_instance_; +class PartitionPropertyFilterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::datacatalog::KeyValuePair* key_val_; +} _PartitionPropertyFilter_default_instance_; +class KeyValuePairDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _KeyValuePair_default_instance_; +class DatasetPropertyFilterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; +} _DatasetPropertyFilter_default_instance_; +class PaginationOptionsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PaginationOptions_default_instance_; +} // namespace datacatalog +static void InitDefaultsCreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_CreateDatasetRequest_default_instance_; + new (ptr) ::datacatalog::CreateDatasetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::CreateDatasetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsCreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_CreateDatasetResponse_default_instance_; + new (ptr) ::datacatalog::CreateDatasetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::CreateDatasetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsGetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetDatasetRequest_default_instance_; + new (ptr) ::datacatalog::GetDatasetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetDatasetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetDatasetResponse_default_instance_; + new (ptr) ::datacatalog::GetDatasetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetDatasetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetArtifactRequest_default_instance_; + new (ptr) ::datacatalog::GetArtifactRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetArtifactRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetArtifactResponse_default_instance_; + new (ptr) ::datacatalog::GetArtifactResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetArtifactResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsCreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_CreateArtifactRequest_default_instance_; + new (ptr) ::datacatalog::CreateArtifactRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::CreateArtifactRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsCreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_CreateArtifactResponse_default_instance_; + new (ptr) ::datacatalog::CreateArtifactResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::CreateArtifactResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsAddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_AddTagRequest_default_instance_; + new (ptr) ::datacatalog::AddTagRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::AddTagRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsAddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_AddTagResponse_default_instance_; + new (ptr) ::datacatalog::AddTagResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::AddTagResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ListArtifactsRequest_default_instance_; + new (ptr) ::datacatalog::ListArtifactsRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ListArtifactsRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ListArtifactsResponse_default_instance_; + new (ptr) ::datacatalog::ListArtifactsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ListArtifactsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ListDatasetsRequest_default_instance_; + new (ptr) ::datacatalog::ListDatasetsRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ListDatasetsRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ListDatasetsResponse_default_instance_; + new (ptr) ::datacatalog::ListDatasetsResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ListDatasetsResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsUpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_UpdateArtifactRequest_default_instance_; + new (ptr) ::datacatalog::UpdateArtifactRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::UpdateArtifactRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsUpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsUpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_UpdateArtifactResponse_default_instance_; + new (ptr) ::datacatalog::UpdateArtifactResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::UpdateArtifactResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ReservationID_default_instance_; + new (ptr) ::datacatalog::ReservationID(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ReservationID::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetOrExtendReservationRequest_default_instance_; + new (ptr) ::datacatalog::GetOrExtendReservationRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetOrExtendReservationRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsReservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Reservation_default_instance_; + new (ptr) ::datacatalog::Reservation(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Reservation::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsReservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsGetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_GetOrExtendReservationResponse_default_instance_; + new (ptr) ::datacatalog::GetOrExtendReservationResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::GetOrExtendReservationResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ReleaseReservationRequest_default_instance_; + new (ptr) ::datacatalog::ReleaseReservationRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ReleaseReservationRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ReleaseReservationResponse_default_instance_; + new (ptr) ::datacatalog::ReleaseReservationResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ReleaseReservationResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsDataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Dataset_default_instance_; + new (ptr) ::datacatalog::Dataset(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Dataset::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsPartition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Partition_default_instance_; + new (ptr) ::datacatalog::Partition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Partition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPartition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsDatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_DatasetID_default_instance_; + new (ptr) ::datacatalog::DatasetID(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::DatasetID::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Artifact_default_instance_; + new (ptr) ::datacatalog::Artifact(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Artifact::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<6> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ArtifactData_default_instance_; + new (ptr) ::datacatalog::ArtifactData(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ArtifactData::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsTag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Tag_default_instance_; + new (ptr) ::datacatalog::Tag(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Tag::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsMetadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Metadata_KeyMapEntry_DoNotUse_default_instance_; + new (ptr) ::datacatalog::Metadata_KeyMapEntry_DoNotUse(); + } + ::datacatalog::Metadata_KeyMapEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMetadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsMetadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_Metadata_default_instance_; + new (ptr) ::datacatalog::Metadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::Metadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMetadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsFilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_FilterExpression_default_instance_; + new (ptr) ::datacatalog::FilterExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::FilterExpression::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsSinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_SinglePropertyFilter_default_instance_; + new (ptr) ::datacatalog::SinglePropertyFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::SinglePropertyFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, + &scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_ArtifactPropertyFilter_default_instance_; + new (ptr) ::datacatalog::ArtifactPropertyFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::ArtifactPropertyFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsTagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_TagPropertyFilter_default_instance_; + new (ptr) ::datacatalog::TagPropertyFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::TagPropertyFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsPartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_PartitionPropertyFilter_default_instance_; + new (ptr) ::datacatalog::PartitionPropertyFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::PartitionPropertyFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { + &scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; + +static void InitDefaultsKeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_KeyValuePair_default_instance_; + new (ptr) ::datacatalog::KeyValuePair(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::KeyValuePair::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsDatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_DatasetPropertyFilter_default_instance_; + new (ptr) ::datacatalog::DatasetPropertyFilter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::DatasetPropertyFilter::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +static void InitDefaultsPaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::datacatalog::_PaginationOptions_default_instance_; + new (ptr) ::datacatalog::PaginationOptions(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::datacatalog::PaginationOptions::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; + +void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[38]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[3]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetRequest, dataset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetRequest, dataset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetResponse, dataset_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, dataset_), + offsetof(::datacatalog::GetArtifactRequestDefaultTypeInternal, artifact_id_), + offsetof(::datacatalog::GetArtifactRequestDefaultTypeInternal, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, query_handle_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactResponse, artifact_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactRequest, artifact_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagRequest, tag_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, dataset_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, filter_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, pagination_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, artifacts_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, next_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, filter_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, pagination_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, datasets_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, next_token_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, dataset_), + offsetof(::datacatalog::UpdateArtifactRequestDefaultTypeInternal, artifact_id_), + offsetof(::datacatalog::UpdateArtifactRequestDefaultTypeInternal, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, data_), + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, query_handle_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactResponse, artifact_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationID, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationID, dataset_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationID, tag_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, reservation_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, owner_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, heartbeat_interval_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, reservation_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, owner_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, heartbeat_interval_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, expires_at_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationResponse, reservation_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, reservation_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, owner_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, metadata_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, partitionkeys_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, key_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, project_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, domain_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, version_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, uuid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, dataset_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, data_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, metadata_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, partitions_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, tags_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, created_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, artifact_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, dataset_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata, key_map_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::FilterExpression, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::FilterExpression, filters_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, tag_filter_), + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, partition_filter_), + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, artifact_filter_), + offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, dataset_filter_), + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, operator__), + PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, property_filter_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::ArtifactPropertyFilterDefaultTypeInternal, artifact_id_), + PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::TagPropertyFilterDefaultTypeInternal, tag_name_), + PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::PartitionPropertyFilterDefaultTypeInternal, key_val_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, key_), + PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, project_), + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, name_), + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, domain_), + offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, version_), + PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, property_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, limit_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, token_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, sortkey_), + PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, sortorder_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::datacatalog::CreateDatasetRequest)}, + { 6, -1, sizeof(::datacatalog::CreateDatasetResponse)}, + { 11, -1, sizeof(::datacatalog::GetDatasetRequest)}, + { 17, -1, sizeof(::datacatalog::GetDatasetResponse)}, + { 23, -1, sizeof(::datacatalog::GetArtifactRequest)}, + { 32, -1, sizeof(::datacatalog::GetArtifactResponse)}, + { 38, -1, sizeof(::datacatalog::CreateArtifactRequest)}, + { 44, -1, sizeof(::datacatalog::CreateArtifactResponse)}, + { 49, -1, sizeof(::datacatalog::AddTagRequest)}, + { 55, -1, sizeof(::datacatalog::AddTagResponse)}, + { 60, -1, sizeof(::datacatalog::ListArtifactsRequest)}, + { 68, -1, sizeof(::datacatalog::ListArtifactsResponse)}, + { 75, -1, sizeof(::datacatalog::ListDatasetsRequest)}, + { 82, -1, sizeof(::datacatalog::ListDatasetsResponse)}, + { 89, -1, sizeof(::datacatalog::UpdateArtifactRequest)}, + { 99, -1, sizeof(::datacatalog::UpdateArtifactResponse)}, + { 105, -1, sizeof(::datacatalog::ReservationID)}, + { 112, -1, sizeof(::datacatalog::GetOrExtendReservationRequest)}, + { 120, -1, sizeof(::datacatalog::Reservation)}, + { 130, -1, sizeof(::datacatalog::GetOrExtendReservationResponse)}, + { 136, -1, sizeof(::datacatalog::ReleaseReservationRequest)}, + { 143, -1, sizeof(::datacatalog::ReleaseReservationResponse)}, + { 148, -1, sizeof(::datacatalog::Dataset)}, + { 156, -1, sizeof(::datacatalog::Partition)}, + { 163, -1, sizeof(::datacatalog::DatasetID)}, + { 173, -1, sizeof(::datacatalog::Artifact)}, + { 185, -1, sizeof(::datacatalog::ArtifactData)}, + { 192, -1, sizeof(::datacatalog::Tag)}, + { 200, 207, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, + { 209, -1, sizeof(::datacatalog::Metadata)}, + { 215, -1, sizeof(::datacatalog::FilterExpression)}, + { 221, -1, sizeof(::datacatalog::SinglePropertyFilter)}, + { 232, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, + { 239, -1, sizeof(::datacatalog::TagPropertyFilter)}, + { 246, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, + { 253, -1, sizeof(::datacatalog::KeyValuePair)}, + { 260, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, + { 270, -1, sizeof(::datacatalog::PaginationOptions)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::datacatalog::_CreateDatasetRequest_default_instance_), + reinterpret_cast(&::datacatalog::_CreateDatasetResponse_default_instance_), + reinterpret_cast(&::datacatalog::_GetDatasetRequest_default_instance_), + reinterpret_cast(&::datacatalog::_GetDatasetResponse_default_instance_), + reinterpret_cast(&::datacatalog::_GetArtifactRequest_default_instance_), + reinterpret_cast(&::datacatalog::_GetArtifactResponse_default_instance_), + reinterpret_cast(&::datacatalog::_CreateArtifactRequest_default_instance_), + reinterpret_cast(&::datacatalog::_CreateArtifactResponse_default_instance_), + reinterpret_cast(&::datacatalog::_AddTagRequest_default_instance_), + reinterpret_cast(&::datacatalog::_AddTagResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ListArtifactsRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ListArtifactsResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ListDatasetsRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ListDatasetsResponse_default_instance_), + reinterpret_cast(&::datacatalog::_UpdateArtifactRequest_default_instance_), + reinterpret_cast(&::datacatalog::_UpdateArtifactResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ReservationID_default_instance_), + reinterpret_cast(&::datacatalog::_GetOrExtendReservationRequest_default_instance_), + reinterpret_cast(&::datacatalog::_Reservation_default_instance_), + reinterpret_cast(&::datacatalog::_GetOrExtendReservationResponse_default_instance_), + reinterpret_cast(&::datacatalog::_ReleaseReservationRequest_default_instance_), + reinterpret_cast(&::datacatalog::_ReleaseReservationResponse_default_instance_), + reinterpret_cast(&::datacatalog::_Dataset_default_instance_), + reinterpret_cast(&::datacatalog::_Partition_default_instance_), + reinterpret_cast(&::datacatalog::_DatasetID_default_instance_), + reinterpret_cast(&::datacatalog::_Artifact_default_instance_), + reinterpret_cast(&::datacatalog::_ArtifactData_default_instance_), + reinterpret_cast(&::datacatalog::_Tag_default_instance_), + reinterpret_cast(&::datacatalog::_Metadata_KeyMapEntry_DoNotUse_default_instance_), + reinterpret_cast(&::datacatalog::_Metadata_default_instance_), + reinterpret_cast(&::datacatalog::_FilterExpression_default_instance_), + reinterpret_cast(&::datacatalog::_SinglePropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_ArtifactPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_TagPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_PartitionPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_KeyValuePair_default_instance_), + reinterpret_cast(&::datacatalog::_DatasetPropertyFilter_default_instance_), + reinterpret_cast(&::datacatalog::_PaginationOptions_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { + {}, AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, "flyteidl/datacatalog/datacatalog.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets, + file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 38, file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[] = + "\n&flyteidl/datacatalog/datacatalog.proto" + "\022\013datacatalog\032\034flyteidl/core/literals.pr" + "oto\032\036google/protobuf/duration.proto\032\037goo" + "gle/protobuf/timestamp.proto\"=\n\024CreateDa" + "tasetRequest\022%\n\007dataset\030\001 \001(\0132\024.datacata" + "log.Dataset\"\027\n\025CreateDatasetResponse\"<\n\021" + "GetDatasetRequest\022\'\n\007dataset\030\001 \001(\0132\026.dat" + "acatalog.DatasetID\";\n\022GetDatasetResponse" + "\022%\n\007dataset\030\001 \001(\0132\024.datacatalog.Dataset\"" + "x\n\022GetArtifactRequest\022\'\n\007dataset\030\001 \001(\0132\026" + ".datacatalog.DatasetID\022\025\n\013artifact_id\030\002 " + "\001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014query_handl" + "e\">\n\023GetArtifactResponse\022\'\n\010artifact\030\001 \001" + "(\0132\025.datacatalog.Artifact\"@\n\025CreateArtif" + "actRequest\022\'\n\010artifact\030\001 \001(\0132\025.datacatal" + "og.Artifact\"\030\n\026CreateArtifactResponse\".\n" + "\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.datacatalo" + "g.Tag\"\020\n\016AddTagResponse\"\242\001\n\024ListArtifact" + "sRequest\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog." + "DatasetID\022-\n\006filter\030\002 \001(\0132\035.datacatalog." + "FilterExpression\0222\n\npagination\030\003 \001(\0132\036.d" + "atacatalog.PaginationOptions\"U\n\025ListArti" + "factsResponse\022(\n\tartifacts\030\001 \003(\0132\025.datac" + "atalog.Artifact\022\022\n\nnext_token\030\002 \001(\t\"x\n\023L" + "istDatasetsRequest\022-\n\006filter\030\001 \001(\0132\035.dat" + "acatalog.FilterExpression\0222\n\npagination\030" + "\002 \001(\0132\036.datacatalog.PaginationOptions\"R\n" + "\024ListDatasetsResponse\022&\n\010datasets\030\001 \003(\0132" + "\024.datacatalog.Dataset\022\022\n\nnext_token\030\002 \001(" + "\t\"\244\001\n\025UpdateArtifactRequest\022\'\n\007dataset\030\001" + " \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifact" + "_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000\022\'\n\004data\030" + "\004 \003(\0132\031.datacatalog.ArtifactDataB\016\n\014quer" + "y_handle\"-\n\026UpdateArtifactResponse\022\023\n\013ar" + "tifact_id\030\001 \001(\t\"M\n\rReservationID\022*\n\ndata" + "set_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010" + "tag_name\030\002 \001(\t\"\234\001\n\035GetOrExtendReservatio" + "nRequest\0222\n\016reservation_id\030\001 \001(\0132\032.datac" + "atalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225" + "\n\022heartbeat_interval\030\003 \001(\0132\031.google.prot" + "obuf.Duration\"\343\001\n\013Reservation\0222\n\016reserva" + "tion_id\030\001 \001(\0132\032.datacatalog.ReservationI" + "D\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_interva" + "l\030\003 \001(\0132\031.google.protobuf.Duration\022.\n\nex" + "pires_at\030\004 \001(\0132\032.google.protobuf.Timesta" + "mp\022\'\n\010metadata\030\006 \001(\0132\025.datacatalog.Metad" + "ata\"O\n\036GetOrExtendReservationResponse\022-\n" + "\013reservation\030\001 \001(\0132\030.datacatalog.Reserva" + "tion\"a\n\031ReleaseReservationRequest\0222\n\016res" + "ervation_id\030\001 \001(\0132\032.datacatalog.Reservat" + "ionID\022\020\n\010owner_id\030\002 \001(\t\"\034\n\032ReleaseReserv" + "ationResponse\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.d" + "atacatalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025" + ".datacatalog.Metadata\022\025\n\rpartitionKeys\030\003" + " \003(\t\"\'\n\tPartition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t\"Y\n\tDatasetID\022\017\n\007project\030\001 \001(\t\022\014\n\004n" + "ame\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\017\n\007version\030\004 \001" + "(\t\022\014\n\004UUID\030\005 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001(" + "\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Dataset" + "ID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.ArtifactD" + "ata\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Meta" + "data\022*\n\npartitions\030\005 \003(\0132\026.datacatalog.P" + "artition\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Tag" + "\022.\n\ncreated_at\030\007 \001(\0132\032.google.protobuf.T" + "imestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022%" + "\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal\"Q\n" + "\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002 \001(\t\022" + "\'\n\007dataset\030\003 \001(\0132\026.datacatalog.DatasetID" + "\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.datacata" + "log.Metadata.KeyMapEntry\032-\n\013KeyMapEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020Filte" + "rExpression\0222\n\007filters\030\001 \003(\0132!.datacatal" + "og.SinglePropertyFilter\"\211\003\n\024SingleProper" + "tyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.datacatal" + "og.TagPropertyFilterH\000\022@\n\020partition_filt" + "er\030\002 \001(\0132$.datacatalog.PartitionProperty" + "FilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#.data" + "catalog.ArtifactPropertyFilterH\000\022<\n\016data" + "set_filter\030\004 \001(\0132\".datacatalog.DatasetPr" + "opertyFilterH\000\022F\n\010operator\030\n \001(\01624.datac" + "atalog.SinglePropertyFilter.ComparisonOp" + "erator\" \n\022ComparisonOperator\022\n\n\006EQUALS\020\000" + "B\021\n\017property_filter\";\n\026ArtifactPropertyF" + "ilter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010property" + "\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\tH" + "\000B\n\n\010property\"S\n\027PartitionPropertyFilter" + "\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.KeyValue" + "PairH\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetPropert" + "yFilter\022\021\n\007project\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(\t" + "H\000\022\020\n\006domain\030\003 \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000B" + "\n\n\010property\"\361\001\n\021PaginationOptions\022\r\n\005lim" + "it\030\001 \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\016" + "2&.datacatalog.PaginationOptions.SortKey" + "\022;\n\tsortOrder\030\004 \001(\0162(.datacatalog.Pagina" + "tionOptions.SortOrder\"*\n\tSortOrder\022\016\n\nDE" + "SCENDING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n\r" + "CREATION_TIME\020\0002\206\007\n\013DataCatalog\022V\n\rCreat" + "eDataset\022!.datacatalog.CreateDatasetRequ" + "est\032\".datacatalog.CreateDatasetResponse\022" + "M\n\nGetDataset\022\036.datacatalog.GetDatasetRe" + "quest\032\037.datacatalog.GetDatasetResponse\022Y" + "\n\016CreateArtifact\022\".datacatalog.CreateArt" + "ifactRequest\032#.datacatalog.CreateArtifac" + "tResponse\022P\n\013GetArtifact\022\037.datacatalog.G" + "etArtifactRequest\032 .datacatalog.GetArtif" + "actResponse\022A\n\006AddTag\022\032.datacatalog.AddT" + "agRequest\032\033.datacatalog.AddTagResponse\022V" + "\n\rListArtifacts\022!.datacatalog.ListArtifa" + "ctsRequest\032\".datacatalog.ListArtifactsRe" + "sponse\022S\n\014ListDatasets\022 .datacatalog.Lis" + "tDatasetsRequest\032!.datacatalog.ListDatas" + "etsResponse\022Y\n\016UpdateArtifact\022\".datacata" + "log.UpdateArtifactRequest\032#.datacatalog." + "UpdateArtifactResponse\022q\n\026GetOrExtendRes" + "ervation\022*.datacatalog.GetOrExtendReserv" + "ationRequest\032+.datacatalog.GetOrExtendRe" + "servationResponse\022e\n\022ReleaseReservation\022" + "&.datacatalog.ReleaseReservationRequest\032" + "\'.datacatalog.ReleaseReservationResponse" + "B=Z;github.com/flyteorg/flyteidl/gen/pb-" + "go/flyteidl/datacatalogb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { + false, InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, + descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, + "flyteidl/datacatalog/datacatalog.proto", &assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 4871, +}; + +void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[3] = + { + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, deps, 3); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = []() { AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); return true; }(); +namespace datacatalog { +const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[0]; +} +bool SinglePropertyFilter_ComparisonOperator_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::EQUALS; +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::ComparisonOperator_MIN; +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::ComparisonOperator_MAX; +const int SinglePropertyFilter::ComparisonOperator_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortOrder_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[1]; +} +bool PaginationOptions_SortOrder_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const PaginationOptions_SortOrder PaginationOptions::DESCENDING; +const PaginationOptions_SortOrder PaginationOptions::ASCENDING; +const PaginationOptions_SortOrder PaginationOptions::SortOrder_MIN; +const PaginationOptions_SortOrder PaginationOptions::SortOrder_MAX; +const int PaginationOptions::SortOrder_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortKey_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[2]; +} +bool PaginationOptions_SortKey_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const PaginationOptions_SortKey PaginationOptions::CREATION_TIME; +const PaginationOptions_SortKey PaginationOptions::SortKey_MIN; +const PaginationOptions_SortKey PaginationOptions::SortKey_MAX; +const int PaginationOptions::SortKey_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void CreateDatasetRequest::InitAsDefaultInstance() { + ::datacatalog::_CreateDatasetRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::Dataset*>( + ::datacatalog::Dataset::internal_default_instance()); +} +class CreateDatasetRequest::HasBitSetters { + public: + static const ::datacatalog::Dataset& dataset(const CreateDatasetRequest* msg); +}; + +const ::datacatalog::Dataset& +CreateDatasetRequest::HasBitSetters::dataset(const CreateDatasetRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateDatasetRequest::kDatasetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDatasetRequest::CreateDatasetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateDatasetRequest) +} +CreateDatasetRequest::CreateDatasetRequest(const CreateDatasetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::Dataset(*from.dataset_); + } else { + dataset_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateDatasetRequest) +} + +void CreateDatasetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; +} + +CreateDatasetRequest::~CreateDatasetRequest() { + // @@protoc_insertion_point(destructor:datacatalog.CreateDatasetRequest) + SharedDtor(); +} + +void CreateDatasetRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; +} + +void CreateDatasetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDatasetRequest& CreateDatasetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDatasetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDatasetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.Dataset dataset = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Dataset::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateDatasetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.CreateDatasetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.Dataset dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.CreateDatasetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateDatasetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDatasetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.CreateDatasetRequest) +} + +::google::protobuf::uint8* CreateDatasetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateDatasetRequest) + return target; +} + +size_t CreateDatasetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateDatasetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDatasetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateDatasetRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateDatasetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateDatasetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateDatasetRequest) + MergeFrom(*source); + } +} + +void CreateDatasetRequest::MergeFrom(const CreateDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateDatasetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::Dataset::MergeFrom(from.dataset()); + } +} + +void CreateDatasetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDatasetRequest::CopyFrom(const CreateDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDatasetRequest::IsInitialized() const { + return true; +} + +void CreateDatasetRequest::Swap(CreateDatasetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDatasetRequest::InternalSwap(CreateDatasetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); +} + +::google::protobuf::Metadata CreateDatasetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateDatasetResponse::InitAsDefaultInstance() { +} +class CreateDatasetResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDatasetResponse::CreateDatasetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateDatasetResponse) +} +CreateDatasetResponse::CreateDatasetResponse(const CreateDatasetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateDatasetResponse) +} + +void CreateDatasetResponse::SharedCtor() { +} + +CreateDatasetResponse::~CreateDatasetResponse() { + // @@protoc_insertion_point(destructor:datacatalog.CreateDatasetResponse) + SharedDtor(); +} + +void CreateDatasetResponse::SharedDtor() { +} + +void CreateDatasetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDatasetResponse& CreateDatasetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDatasetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDatasetResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateDatasetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.CreateDatasetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.CreateDatasetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateDatasetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDatasetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.CreateDatasetResponse) +} + +::google::protobuf::uint8* CreateDatasetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateDatasetResponse) + return target; +} + +size_t CreateDatasetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateDatasetResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDatasetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateDatasetResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateDatasetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateDatasetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateDatasetResponse) + MergeFrom(*source); + } +} + +void CreateDatasetResponse::MergeFrom(const CreateDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateDatasetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void CreateDatasetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDatasetResponse::CopyFrom(const CreateDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDatasetResponse::IsInitialized() const { + return true; +} + +void CreateDatasetResponse::Swap(CreateDatasetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDatasetResponse::InternalSwap(CreateDatasetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CreateDatasetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetDatasetRequest::InitAsDefaultInstance() { + ::datacatalog::_GetDatasetRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); +} +class GetDatasetRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const GetDatasetRequest* msg); +}; + +const ::datacatalog::DatasetID& +GetDatasetRequest::HasBitSetters::dataset(const GetDatasetRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDatasetRequest::kDatasetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetDatasetRequest::GetDatasetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetDatasetRequest) +} +GetDatasetRequest::GetDatasetRequest(const GetDatasetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetDatasetRequest) +} + +void GetDatasetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; +} + +GetDatasetRequest::~GetDatasetRequest() { + // @@protoc_insertion_point(destructor:datacatalog.GetDatasetRequest) + SharedDtor(); +} + +void GetDatasetRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; +} + +void GetDatasetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetDatasetRequest& GetDatasetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetDatasetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetDatasetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetDatasetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.GetDatasetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.GetDatasetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetDatasetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetDatasetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetDatasetRequest) +} + +::google::protobuf::uint8* GetDatasetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetDatasetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetDatasetRequest) + return target; +} + +size_t GetDatasetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetDatasetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetDatasetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetDatasetRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetDatasetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetDatasetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetDatasetRequest) + MergeFrom(*source); + } +} + +void GetDatasetRequest::MergeFrom(const GetDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetDatasetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } +} + +void GetDatasetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetDatasetRequest::CopyFrom(const GetDatasetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetDatasetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDatasetRequest::IsInitialized() const { + return true; +} + +void GetDatasetRequest::Swap(GetDatasetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetDatasetRequest::InternalSwap(GetDatasetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); +} + +::google::protobuf::Metadata GetDatasetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetDatasetResponse::InitAsDefaultInstance() { + ::datacatalog::_GetDatasetResponse_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::Dataset*>( + ::datacatalog::Dataset::internal_default_instance()); +} +class GetDatasetResponse::HasBitSetters { + public: + static const ::datacatalog::Dataset& dataset(const GetDatasetResponse* msg); +}; + +const ::datacatalog::Dataset& +GetDatasetResponse::HasBitSetters::dataset(const GetDatasetResponse* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDatasetResponse::kDatasetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetDatasetResponse::GetDatasetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetDatasetResponse) +} +GetDatasetResponse::GetDatasetResponse(const GetDatasetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::Dataset(*from.dataset_); + } else { + dataset_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetDatasetResponse) +} + +void GetDatasetResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; +} + +GetDatasetResponse::~GetDatasetResponse() { + // @@protoc_insertion_point(destructor:datacatalog.GetDatasetResponse) + SharedDtor(); +} + +void GetDatasetResponse::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; +} + +void GetDatasetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetDatasetResponse& GetDatasetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetDatasetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetDatasetResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.Dataset dataset = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Dataset::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetDatasetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.GetDatasetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.Dataset dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.GetDatasetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetDatasetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetDatasetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetDatasetResponse) +} + +::google::protobuf::uint8* GetDatasetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetDatasetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetDatasetResponse) + return target; +} + +size_t GetDatasetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetDatasetResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.Dataset dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetDatasetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetDatasetResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetDatasetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetDatasetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetDatasetResponse) + MergeFrom(*source); + } +} + +void GetDatasetResponse::MergeFrom(const GetDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetDatasetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::Dataset::MergeFrom(from.dataset()); + } +} + +void GetDatasetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetDatasetResponse::CopyFrom(const GetDatasetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetDatasetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDatasetResponse::IsInitialized() const { + return true; +} + +void GetDatasetResponse::Swap(GetDatasetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetDatasetResponse::InternalSwap(GetDatasetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); +} + +::google::protobuf::Metadata GetDatasetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetArtifactRequest::InitAsDefaultInstance() { + ::datacatalog::_GetArtifactRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_GetArtifactRequest_default_instance_.artifact_id_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_GetArtifactRequest_default_instance_.tag_name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class GetArtifactRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const GetArtifactRequest* msg); +}; + +const ::datacatalog::DatasetID& +GetArtifactRequest::HasBitSetters::dataset(const GetArtifactRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetArtifactRequest::kDatasetFieldNumber; +const int GetArtifactRequest::kArtifactIdFieldNumber; +const int GetArtifactRequest::kTagNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetArtifactRequest::GetArtifactRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetArtifactRequest) +} +GetArtifactRequest::GetArtifactRequest(const GetArtifactRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + clear_has_query_handle(); + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetArtifactRequest) +} + +void GetArtifactRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; + clear_has_query_handle(); +} + +GetArtifactRequest::~GetArtifactRequest() { + // @@protoc_insertion_point(destructor:datacatalog.GetArtifactRequest) + SharedDtor(); +} + +void GetArtifactRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; + if (has_query_handle()) { + clear_query_handle(); + } +} + +void GetArtifactRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetArtifactRequest& GetArtifactRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetArtifactRequest::clear_query_handle() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.GetArtifactRequest) + switch (query_handle_case()) { + case kArtifactId: { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kTagName: { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} + + +void GetArtifactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + clear_query_handle(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetArtifactRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string artifact_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.GetArtifactRequest.artifact_id"); + object = msg->mutable_artifact_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string tag_name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.GetArtifactRequest.tag_name"); + object = msg->mutable_tag_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetArtifactRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.GetArtifactRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // string artifact_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.GetArtifactRequest.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.GetArtifactRequest.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.GetArtifactRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetArtifactRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetArtifactRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->artifact_id(), output); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->tag_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetArtifactRequest) +} + +::google::protobuf::uint8* GetArtifactRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->artifact_id(), target); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetArtifactRequest.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->tag_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetArtifactRequest) + return target; +} + +size_t GetArtifactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetArtifactRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + switch (query_handle_case()) { + // string artifact_id = 2; + case kArtifactId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + break; + } + // string tag_name = 3; + case kTagName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetArtifactRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetArtifactRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetArtifactRequest) + MergeFrom(*source); + } +} + +void GetArtifactRequest::MergeFrom(const GetArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } +} + +void GetArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetArtifactRequest::CopyFrom(const GetArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetArtifactRequest::IsInitialized() const { + return true; +} + +void GetArtifactRequest::Swap(GetArtifactRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetArtifactRequest::InternalSwap(GetArtifactRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); + swap(query_handle_, other->query_handle_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata GetArtifactRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetArtifactResponse::InitAsDefaultInstance() { + ::datacatalog::_GetArtifactResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::datacatalog::Artifact*>( + ::datacatalog::Artifact::internal_default_instance()); +} +class GetArtifactResponse::HasBitSetters { + public: + static const ::datacatalog::Artifact& artifact(const GetArtifactResponse* msg); +}; + +const ::datacatalog::Artifact& +GetArtifactResponse::HasBitSetters::artifact(const GetArtifactResponse* msg) { + return *msg->artifact_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetArtifactResponse::kArtifactFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetArtifactResponse::GetArtifactResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetArtifactResponse) +} +GetArtifactResponse::GetArtifactResponse(const GetArtifactResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_artifact()) { + artifact_ = new ::datacatalog::Artifact(*from.artifact_); + } else { + artifact_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetArtifactResponse) +} + +void GetArtifactResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + artifact_ = nullptr; +} + +GetArtifactResponse::~GetArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.GetArtifactResponse) + SharedDtor(); +} + +void GetArtifactResponse::SharedDtor() { + if (this != internal_default_instance()) delete artifact_; +} + +void GetArtifactResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetArtifactResponse& GetArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetArtifactResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.Artifact artifact = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Artifact::_InternalParse; + object = msg->mutable_artifact(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetArtifactResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.GetArtifactResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.Artifact artifact = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.GetArtifactResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetArtifactResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetArtifactResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::artifact(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetArtifactResponse) +} + +::google::protobuf::uint8* GetArtifactResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::artifact(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetArtifactResponse) + return target; +} + +size_t GetArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetArtifactResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *artifact_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetArtifactResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetArtifactResponse) + MergeFrom(*source); + } +} + +void GetArtifactResponse::MergeFrom(const GetArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_artifact()) { + mutable_artifact()->::datacatalog::Artifact::MergeFrom(from.artifact()); + } +} + +void GetArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetArtifactResponse::CopyFrom(const GetArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetArtifactResponse::IsInitialized() const { + return true; +} + +void GetArtifactResponse::Swap(GetArtifactResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetArtifactResponse::InternalSwap(GetArtifactResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(artifact_, other->artifact_); +} + +::google::protobuf::Metadata GetArtifactResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateArtifactRequest::InitAsDefaultInstance() { + ::datacatalog::_CreateArtifactRequest_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::datacatalog::Artifact*>( + ::datacatalog::Artifact::internal_default_instance()); +} +class CreateArtifactRequest::HasBitSetters { + public: + static const ::datacatalog::Artifact& artifact(const CreateArtifactRequest* msg); +}; + +const ::datacatalog::Artifact& +CreateArtifactRequest::HasBitSetters::artifact(const CreateArtifactRequest* msg) { + return *msg->artifact_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateArtifactRequest::kArtifactFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateArtifactRequest::CreateArtifactRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateArtifactRequest) +} +CreateArtifactRequest::CreateArtifactRequest(const CreateArtifactRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_artifact()) { + artifact_ = new ::datacatalog::Artifact(*from.artifact_); + } else { + artifact_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateArtifactRequest) +} + +void CreateArtifactRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + artifact_ = nullptr; +} + +CreateArtifactRequest::~CreateArtifactRequest() { + // @@protoc_insertion_point(destructor:datacatalog.CreateArtifactRequest) + SharedDtor(); +} + +void CreateArtifactRequest::SharedDtor() { + if (this != internal_default_instance()) delete artifact_; +} + +void CreateArtifactRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateArtifactRequest& CreateArtifactRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateArtifactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateArtifactRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.Artifact artifact = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Artifact::_InternalParse; + object = msg->mutable_artifact(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateArtifactRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.CreateArtifactRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.Artifact artifact = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.CreateArtifactRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateArtifactRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateArtifactRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::artifact(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.CreateArtifactRequest) +} + +::google::protobuf::uint8* CreateArtifactRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::artifact(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateArtifactRequest) + return target; +} + +size_t CreateArtifactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateArtifactRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.Artifact artifact = 1; + if (this->has_artifact()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *artifact_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateArtifactRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateArtifactRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateArtifactRequest) + MergeFrom(*source); + } +} + +void CreateArtifactRequest::MergeFrom(const CreateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_artifact()) { + mutable_artifact()->::datacatalog::Artifact::MergeFrom(from.artifact()); + } +} + +void CreateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateArtifactRequest::CopyFrom(const CreateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateArtifactRequest::IsInitialized() const { + return true; +} + +void CreateArtifactRequest::Swap(CreateArtifactRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateArtifactRequest::InternalSwap(CreateArtifactRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(artifact_, other->artifact_); +} + +::google::protobuf::Metadata CreateArtifactRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateArtifactResponse::InitAsDefaultInstance() { +} +class CreateArtifactResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateArtifactResponse::CreateArtifactResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.CreateArtifactResponse) +} +CreateArtifactResponse::CreateArtifactResponse(const CreateArtifactResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.CreateArtifactResponse) +} + +void CreateArtifactResponse::SharedCtor() { +} + +CreateArtifactResponse::~CreateArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.CreateArtifactResponse) + SharedDtor(); +} + +void CreateArtifactResponse::SharedDtor() { +} + +void CreateArtifactResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateArtifactResponse& CreateArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void CreateArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.CreateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateArtifactResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateArtifactResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.CreateArtifactResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.CreateArtifactResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.CreateArtifactResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateArtifactResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.CreateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.CreateArtifactResponse) +} + +::google::protobuf::uint8* CreateArtifactResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateArtifactResponse) + return target; +} + +size_t CreateArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateArtifactResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateArtifactResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateArtifactResponse) + MergeFrom(*source); + } +} + +void CreateArtifactResponse::MergeFrom(const CreateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void CreateArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateArtifactResponse::CopyFrom(const CreateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateArtifactResponse::IsInitialized() const { + return true; +} + +void CreateArtifactResponse::Swap(CreateArtifactResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateArtifactResponse::InternalSwap(CreateArtifactResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata CreateArtifactResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AddTagRequest::InitAsDefaultInstance() { + ::datacatalog::_AddTagRequest_default_instance_._instance.get_mutable()->tag_ = const_cast< ::datacatalog::Tag*>( + ::datacatalog::Tag::internal_default_instance()); +} +class AddTagRequest::HasBitSetters { + public: + static const ::datacatalog::Tag& tag(const AddTagRequest* msg); +}; + +const ::datacatalog::Tag& +AddTagRequest::HasBitSetters::tag(const AddTagRequest* msg) { + return *msg->tag_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AddTagRequest::kTagFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AddTagRequest::AddTagRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.AddTagRequest) +} +AddTagRequest::AddTagRequest(const AddTagRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_tag()) { + tag_ = new ::datacatalog::Tag(*from.tag_); + } else { + tag_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.AddTagRequest) +} + +void AddTagRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + tag_ = nullptr; +} + +AddTagRequest::~AddTagRequest() { + // @@protoc_insertion_point(destructor:datacatalog.AddTagRequest) + SharedDtor(); +} + +void AddTagRequest::SharedDtor() { + if (this != internal_default_instance()) delete tag_; +} + +void AddTagRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AddTagRequest& AddTagRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void AddTagRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.AddTagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { + delete tag_; + } + tag_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AddTagRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.Tag tag = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Tag::_InternalParse; + object = msg->mutable_tag(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AddTagRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.AddTagRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.Tag tag = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tag())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.AddTagRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.AddTagRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AddTagRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.AddTagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Tag tag = 1; + if (this->has_tag()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::tag(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.AddTagRequest) +} + +::google::protobuf::uint8* AddTagRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.AddTagRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Tag tag = 1; + if (this->has_tag()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::tag(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.AddTagRequest) + return target; +} + +size_t AddTagRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.AddTagRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.Tag tag = 1; + if (this->has_tag()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *tag_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AddTagRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.AddTagRequest) + GOOGLE_DCHECK_NE(&from, this); + const AddTagRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.AddTagRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.AddTagRequest) + MergeFrom(*source); + } +} + +void AddTagRequest::MergeFrom(const AddTagRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.AddTagRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_tag()) { + mutable_tag()->::datacatalog::Tag::MergeFrom(from.tag()); + } +} + +void AddTagRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.AddTagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddTagRequest::CopyFrom(const AddTagRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.AddTagRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddTagRequest::IsInitialized() const { + return true; +} + +void AddTagRequest::Swap(AddTagRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void AddTagRequest::InternalSwap(AddTagRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(tag_, other->tag_); +} + +::google::protobuf::Metadata AddTagRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AddTagResponse::InitAsDefaultInstance() { +} +class AddTagResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AddTagResponse::AddTagResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.AddTagResponse) +} +AddTagResponse::AddTagResponse(const AddTagResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.AddTagResponse) +} + +void AddTagResponse::SharedCtor() { +} + +AddTagResponse::~AddTagResponse() { + // @@protoc_insertion_point(destructor:datacatalog.AddTagResponse) + SharedDtor(); +} + +void AddTagResponse::SharedDtor() { +} + +void AddTagResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AddTagResponse& AddTagResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void AddTagResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.AddTagResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AddTagResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AddTagResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.AddTagResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.AddTagResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.AddTagResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AddTagResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.AddTagResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.AddTagResponse) +} + +::google::protobuf::uint8* AddTagResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.AddTagResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.AddTagResponse) + return target; +} + +size_t AddTagResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.AddTagResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AddTagResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.AddTagResponse) + GOOGLE_DCHECK_NE(&from, this); + const AddTagResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.AddTagResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.AddTagResponse) + MergeFrom(*source); + } +} + +void AddTagResponse::MergeFrom(const AddTagResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.AddTagResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void AddTagResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.AddTagResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AddTagResponse::CopyFrom(const AddTagResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.AddTagResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddTagResponse::IsInitialized() const { + return true; +} + +void AddTagResponse::Swap(AddTagResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void AddTagResponse::InternalSwap(AddTagResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata AddTagResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListArtifactsRequest::InitAsDefaultInstance() { + ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->filter_ = const_cast< ::datacatalog::FilterExpression*>( + ::datacatalog::FilterExpression::internal_default_instance()); + ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->pagination_ = const_cast< ::datacatalog::PaginationOptions*>( + ::datacatalog::PaginationOptions::internal_default_instance()); +} +class ListArtifactsRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const ListArtifactsRequest* msg); + static const ::datacatalog::FilterExpression& filter(const ListArtifactsRequest* msg); + static const ::datacatalog::PaginationOptions& pagination(const ListArtifactsRequest* msg); +}; + +const ::datacatalog::DatasetID& +ListArtifactsRequest::HasBitSetters::dataset(const ListArtifactsRequest* msg) { + return *msg->dataset_; +} +const ::datacatalog::FilterExpression& +ListArtifactsRequest::HasBitSetters::filter(const ListArtifactsRequest* msg) { + return *msg->filter_; +} +const ::datacatalog::PaginationOptions& +ListArtifactsRequest::HasBitSetters::pagination(const ListArtifactsRequest* msg) { + return *msg->pagination_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListArtifactsRequest::kDatasetFieldNumber; +const int ListArtifactsRequest::kFilterFieldNumber; +const int ListArtifactsRequest::kPaginationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListArtifactsRequest::ListArtifactsRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListArtifactsRequest) +} +ListArtifactsRequest::ListArtifactsRequest(const ListArtifactsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + if (from.has_filter()) { + filter_ = new ::datacatalog::FilterExpression(*from.filter_); + } else { + filter_ = nullptr; + } + if (from.has_pagination()) { + pagination_ = new ::datacatalog::PaginationOptions(*from.pagination_); + } else { + pagination_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListArtifactsRequest) +} + +void ListArtifactsRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::memset(&dataset_, 0, static_cast( + reinterpret_cast(&pagination_) - + reinterpret_cast(&dataset_)) + sizeof(pagination_)); +} + +ListArtifactsRequest::~ListArtifactsRequest() { + // @@protoc_insertion_point(destructor:datacatalog.ListArtifactsRequest) + SharedDtor(); +} + +void ListArtifactsRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; + if (this != internal_default_instance()) delete filter_; + if (this != internal_default_instance()) delete pagination_; +} + +void ListArtifactsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListArtifactsRequest& ListArtifactsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListArtifactsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListArtifactsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListArtifactsRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.FilterExpression filter = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::FilterExpression::_InternalParse; + object = msg->mutable_filter(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.PaginationOptions pagination = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::PaginationOptions::_InternalParse; + object = msg->mutable_pagination(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListArtifactsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ListArtifactsRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.FilterExpression filter = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions pagination = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pagination())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ListArtifactsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListArtifactsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListArtifactsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListArtifactsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + // .datacatalog.FilterExpression filter = 2; + if (this->has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::filter(this), output); + } + + // .datacatalog.PaginationOptions pagination = 3; + if (this->has_pagination()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::pagination(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListArtifactsRequest) +} + +::google::protobuf::uint8* ListArtifactsRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListArtifactsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + // .datacatalog.FilterExpression filter = 2; + if (this->has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::filter(this), target); + } + + // .datacatalog.PaginationOptions pagination = 3; + if (this->has_pagination()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::pagination(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListArtifactsRequest) + return target; +} + +size_t ListArtifactsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListArtifactsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + // .datacatalog.FilterExpression filter = 2; + if (this->has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *filter_); + } + + // .datacatalog.PaginationOptions pagination = 3; + if (this->has_pagination()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *pagination_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListArtifactsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListArtifactsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListArtifactsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListArtifactsRequest) + MergeFrom(*source); + } +} + +void ListArtifactsRequest::MergeFrom(const ListArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListArtifactsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } + if (from.has_filter()) { + mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); + } + if (from.has_pagination()) { + mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); + } +} + +void ListArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListArtifactsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListArtifactsRequest::CopyFrom(const ListArtifactsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListArtifactsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListArtifactsRequest::IsInitialized() const { + return true; +} + +void ListArtifactsRequest::Swap(ListArtifactsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ListArtifactsRequest::InternalSwap(ListArtifactsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(dataset_, other->dataset_); + swap(filter_, other->filter_); + swap(pagination_, other->pagination_); +} + +::google::protobuf::Metadata ListArtifactsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListArtifactsResponse::InitAsDefaultInstance() { +} +class ListArtifactsResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListArtifactsResponse::kArtifactsFieldNumber; +const int ListArtifactsResponse::kNextTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListArtifactsResponse::ListArtifactsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListArtifactsResponse) +} +ListArtifactsResponse::ListArtifactsResponse(const ListArtifactsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + artifacts_(from.artifacts_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.next_token().size() > 0) { + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListArtifactsResponse) +} + +void ListArtifactsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ListArtifactsResponse::~ListArtifactsResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ListArtifactsResponse) + SharedDtor(); +} + +void ListArtifactsResponse::SharedDtor() { + next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ListArtifactsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListArtifactsResponse& ListArtifactsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListArtifactsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListArtifactsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + artifacts_.Clear(); + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListArtifactsResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .datacatalog.Artifact artifacts = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Artifact::_InternalParse; + object = msg->add_artifacts(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string next_token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ListArtifactsResponse.next_token"); + object = msg->mutable_next_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListArtifactsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ListArtifactsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .datacatalog.Artifact artifacts = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_artifacts())); + } else { + goto handle_unusual; + } + break; + } + + // string next_token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_next_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ListArtifactsResponse.next_token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ListArtifactsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListArtifactsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListArtifactsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListArtifactsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Artifact artifacts = 1; + for (unsigned int i = 0, + n = static_cast(this->artifacts_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->artifacts(static_cast(i)), + output); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListArtifactsResponse.next_token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->next_token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListArtifactsResponse) +} + +::google::protobuf::uint8* ListArtifactsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListArtifactsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Artifact artifacts = 1; + for (unsigned int i = 0, + n = static_cast(this->artifacts_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->artifacts(static_cast(i)), target); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListArtifactsResponse.next_token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->next_token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListArtifactsResponse) + return target; +} + +size_t ListArtifactsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListArtifactsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .datacatalog.Artifact artifacts = 1; + { + unsigned int count = static_cast(this->artifacts_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->artifacts(static_cast(i))); + } + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->next_token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListArtifactsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListArtifactsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListArtifactsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListArtifactsResponse) + MergeFrom(*source); + } +} + +void ListArtifactsResponse::MergeFrom(const ListArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListArtifactsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + artifacts_.MergeFrom(from.artifacts_); + if (from.next_token().size() > 0) { + + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } +} + +void ListArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListArtifactsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListArtifactsResponse::CopyFrom(const ListArtifactsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListArtifactsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListArtifactsResponse::IsInitialized() const { + return true; +} + +void ListArtifactsResponse::Swap(ListArtifactsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListArtifactsResponse::InternalSwap(ListArtifactsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); + next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ListArtifactsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListDatasetsRequest::InitAsDefaultInstance() { + ::datacatalog::_ListDatasetsRequest_default_instance_._instance.get_mutable()->filter_ = const_cast< ::datacatalog::FilterExpression*>( + ::datacatalog::FilterExpression::internal_default_instance()); + ::datacatalog::_ListDatasetsRequest_default_instance_._instance.get_mutable()->pagination_ = const_cast< ::datacatalog::PaginationOptions*>( + ::datacatalog::PaginationOptions::internal_default_instance()); +} +class ListDatasetsRequest::HasBitSetters { + public: + static const ::datacatalog::FilterExpression& filter(const ListDatasetsRequest* msg); + static const ::datacatalog::PaginationOptions& pagination(const ListDatasetsRequest* msg); +}; + +const ::datacatalog::FilterExpression& +ListDatasetsRequest::HasBitSetters::filter(const ListDatasetsRequest* msg) { + return *msg->filter_; +} +const ::datacatalog::PaginationOptions& +ListDatasetsRequest::HasBitSetters::pagination(const ListDatasetsRequest* msg) { + return *msg->pagination_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListDatasetsRequest::kFilterFieldNumber; +const int ListDatasetsRequest::kPaginationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListDatasetsRequest::ListDatasetsRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsRequest) +} +ListDatasetsRequest::ListDatasetsRequest(const ListDatasetsRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_filter()) { + filter_ = new ::datacatalog::FilterExpression(*from.filter_); + } else { + filter_ = nullptr; + } + if (from.has_pagination()) { + pagination_ = new ::datacatalog::PaginationOptions(*from.pagination_); + } else { + pagination_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsRequest) +} + +void ListDatasetsRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::memset(&filter_, 0, static_cast( + reinterpret_cast(&pagination_) - + reinterpret_cast(&filter_)) + sizeof(pagination_)); +} + +ListDatasetsRequest::~ListDatasetsRequest() { + // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsRequest) + SharedDtor(); +} + +void ListDatasetsRequest::SharedDtor() { + if (this != internal_default_instance()) delete filter_; + if (this != internal_default_instance()) delete pagination_; +} + +void ListDatasetsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListDatasetsRequest& ListDatasetsRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListDatasetsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListDatasetsRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.FilterExpression filter = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::FilterExpression::_InternalParse; + object = msg->mutable_filter(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.PaginationOptions pagination = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::PaginationOptions::_InternalParse; + object = msg->mutable_pagination(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListDatasetsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ListDatasetsRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.FilterExpression filter = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions pagination = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pagination())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ListDatasetsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListDatasetsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.FilterExpression filter = 1; + if (this->has_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::filter(this), output); + } + + // .datacatalog.PaginationOptions pagination = 2; + if (this->has_pagination()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::pagination(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsRequest) +} + +::google::protobuf::uint8* ListDatasetsRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.FilterExpression filter = 1; + if (this->has_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::filter(this), target); + } + + // .datacatalog.PaginationOptions pagination = 2; + if (this->has_pagination()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::pagination(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListDatasetsRequest) + return target; +} + +size_t ListDatasetsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.FilterExpression filter = 1; + if (this->has_filter()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *filter_); + } + + // .datacatalog.PaginationOptions pagination = 2; + if (this->has_pagination()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *pagination_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListDatasetsRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsRequest) + GOOGLE_DCHECK_NE(&from, this); + const ListDatasetsRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsRequest) + MergeFrom(*source); + } +} + +void ListDatasetsRequest::MergeFrom(const ListDatasetsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_filter()) { + mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); + } + if (from.has_pagination()) { + mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); + } +} + +void ListDatasetsRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListDatasetsRequest::CopyFrom(const ListDatasetsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListDatasetsRequest::IsInitialized() const { + return true; +} + +void ListDatasetsRequest::Swap(ListDatasetsRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ListDatasetsRequest::InternalSwap(ListDatasetsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(filter_, other->filter_); + swap(pagination_, other->pagination_); +} + +::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ListDatasetsResponse::InitAsDefaultInstance() { +} +class ListDatasetsResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListDatasetsResponse::kDatasetsFieldNumber; +const int ListDatasetsResponse::kNextTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ListDatasetsResponse::ListDatasetsResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsResponse) +} +ListDatasetsResponse::ListDatasetsResponse(const ListDatasetsResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + datasets_(from.datasets_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.next_token().size() > 0) { + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsResponse) +} + +void ListDatasetsResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ListDatasetsResponse::~ListDatasetsResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsResponse) + SharedDtor(); +} + +void ListDatasetsResponse::SharedDtor() { + next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ListDatasetsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ListDatasetsResponse& ListDatasetsResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ListDatasetsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + datasets_.Clear(); + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ListDatasetsResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .datacatalog.Dataset datasets = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Dataset::_InternalParse; + object = msg->add_datasets(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // string next_token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ListDatasetsResponse.next_token"); + object = msg->mutable_next_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ListDatasetsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ListDatasetsResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .datacatalog.Dataset datasets = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_datasets())); + } else { + goto handle_unusual; + } + break; + } + + // string next_token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_next_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ListDatasetsResponse.next_token")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ListDatasetsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ListDatasetsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Dataset datasets = 1; + for (unsigned int i = 0, + n = static_cast(this->datasets_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->datasets(static_cast(i)), + output); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListDatasetsResponse.next_token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->next_token(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsResponse) +} + +::google::protobuf::uint8* ListDatasetsResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.Dataset datasets = 1; + for (unsigned int i = 0, + n = static_cast(this->datasets_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->datasets(static_cast(i)), target); + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->next_token().data(), static_cast(this->next_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ListDatasetsResponse.next_token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->next_token(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ListDatasetsResponse) + return target; +} + +size_t ListDatasetsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .datacatalog.Dataset datasets = 1; + { + unsigned int count = static_cast(this->datasets_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->datasets(static_cast(i))); + } + } + + // string next_token = 2; + if (this->next_token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->next_token()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ListDatasetsResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsResponse) + GOOGLE_DCHECK_NE(&from, this); + const ListDatasetsResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsResponse) + MergeFrom(*source); + } +} + +void ListDatasetsResponse::MergeFrom(const ListDatasetsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + datasets_.MergeFrom(from.datasets_); + if (from.next_token().size() > 0) { + + next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); + } +} + +void ListDatasetsResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ListDatasetsResponse::CopyFrom(const ListDatasetsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListDatasetsResponse::IsInitialized() const { + return true; +} + +void ListDatasetsResponse::Swap(ListDatasetsResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ListDatasetsResponse::InternalSwap(ListDatasetsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&datasets_)->InternalSwap(CastToBase(&other->datasets_)); + next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ListDatasetsResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void UpdateArtifactRequest::InitAsDefaultInstance() { + ::datacatalog::_UpdateArtifactRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_UpdateArtifactRequest_default_instance_.artifact_id_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_UpdateArtifactRequest_default_instance_.tag_name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class UpdateArtifactRequest::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const UpdateArtifactRequest* msg); +}; + +const ::datacatalog::DatasetID& +UpdateArtifactRequest::HasBitSetters::dataset(const UpdateArtifactRequest* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UpdateArtifactRequest::kDatasetFieldNumber; +const int UpdateArtifactRequest::kArtifactIdFieldNumber; +const int UpdateArtifactRequest::kTagNameFieldNumber; +const int UpdateArtifactRequest::kDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UpdateArtifactRequest::UpdateArtifactRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.UpdateArtifactRequest) +} +UpdateArtifactRequest::UpdateArtifactRequest(const UpdateArtifactRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + data_(from.data_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + clear_has_query_handle(); + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.UpdateArtifactRequest) +} + +void UpdateArtifactRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + dataset_ = nullptr; + clear_has_query_handle(); +} + +UpdateArtifactRequest::~UpdateArtifactRequest() { + // @@protoc_insertion_point(destructor:datacatalog.UpdateArtifactRequest) + SharedDtor(); +} + +void UpdateArtifactRequest::SharedDtor() { + if (this != internal_default_instance()) delete dataset_; + if (has_query_handle()) { + clear_query_handle(); + } +} + +void UpdateArtifactRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UpdateArtifactRequest& UpdateArtifactRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void UpdateArtifactRequest::clear_query_handle() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.UpdateArtifactRequest) + switch (query_handle_case()) { + case kArtifactId: { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kTagName: { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} + + +void UpdateArtifactRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.UpdateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + clear_query_handle(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UpdateArtifactRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string artifact_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactRequest.artifact_id"); + object = msg->mutable_artifact_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string tag_name = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactRequest.tag_name"); + object = msg->mutable_tag_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .datacatalog.ArtifactData data = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ArtifactData::_InternalParse; + object = msg->add_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UpdateArtifactRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.UpdateArtifactRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.DatasetID dataset = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // string artifact_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.UpdateArtifactRequest.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.UpdateArtifactRequest.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .datacatalog.ArtifactData data = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.UpdateArtifactRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.UpdateArtifactRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UpdateArtifactRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.UpdateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset(this), output); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->artifact_id(), output); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->tag_name(), output); + } + + // repeated .datacatalog.ArtifactData data = 4; + for (unsigned int i = 0, + n = static_cast(this->data_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->data(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.UpdateArtifactRequest) +} + +::google::protobuf::uint8* UpdateArtifactRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.UpdateArtifactRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset(this), target); + } + + // string artifact_id = 2; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->artifact_id(), target); + } + + // string tag_name = 3; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactRequest.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->tag_name(), target); + } + + // repeated .datacatalog.ArtifactData data = 4; + for (unsigned int i = 0, + n = static_cast(this->data_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->data(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.UpdateArtifactRequest) + return target; +} + +size_t UpdateArtifactRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.UpdateArtifactRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .datacatalog.ArtifactData data = 4; + { + unsigned int count = static_cast(this->data_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->data(static_cast(i))); + } + } + + // .datacatalog.DatasetID dataset = 1; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + switch (query_handle_case()) { + // string artifact_id = 2; + case kArtifactId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + break; + } + // string tag_name = 3; + case kTagName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UpdateArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.UpdateArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + const UpdateArtifactRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.UpdateArtifactRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.UpdateArtifactRequest) + MergeFrom(*source); + } +} + +void UpdateArtifactRequest::MergeFrom(const UpdateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.UpdateArtifactRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } + switch (from.query_handle_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case QUERY_HANDLE_NOT_SET: { + break; + } + } +} + +void UpdateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.UpdateArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateArtifactRequest::CopyFrom(const UpdateArtifactRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.UpdateArtifactRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateArtifactRequest::IsInitialized() const { + return true; +} + +void UpdateArtifactRequest::Swap(UpdateArtifactRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void UpdateArtifactRequest::InternalSwap(UpdateArtifactRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&data_)->InternalSwap(CastToBase(&other->data_)); + swap(dataset_, other->dataset_); + swap(query_handle_, other->query_handle_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata UpdateArtifactRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void UpdateArtifactResponse::InitAsDefaultInstance() { +} +class UpdateArtifactResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UpdateArtifactResponse::kArtifactIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UpdateArtifactResponse::UpdateArtifactResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.UpdateArtifactResponse) +} +UpdateArtifactResponse::UpdateArtifactResponse(const UpdateArtifactResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.artifact_id().size() > 0) { + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.UpdateArtifactResponse) +} + +void UpdateArtifactResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +UpdateArtifactResponse::~UpdateArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.UpdateArtifactResponse) + SharedDtor(); +} + +void UpdateArtifactResponse::SharedDtor() { + artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void UpdateArtifactResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UpdateArtifactResponse& UpdateArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void UpdateArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.UpdateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UpdateArtifactResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string artifact_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactResponse.artifact_id"); + object = msg->mutable_artifact_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UpdateArtifactResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.UpdateArtifactResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string artifact_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.UpdateArtifactResponse.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.UpdateArtifactResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.UpdateArtifactResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UpdateArtifactResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.UpdateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string artifact_id = 1; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactResponse.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->artifact_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.UpdateArtifactResponse) +} + +::google::protobuf::uint8* UpdateArtifactResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.UpdateArtifactResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string artifact_id = 1; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.UpdateArtifactResponse.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->artifact_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.UpdateArtifactResponse) + return target; +} + +size_t UpdateArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.UpdateArtifactResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string artifact_id = 1; + if (this->artifact_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UpdateArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.UpdateArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + const UpdateArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.UpdateArtifactResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.UpdateArtifactResponse) + MergeFrom(*source); + } +} + +void UpdateArtifactResponse::MergeFrom(const UpdateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.UpdateArtifactResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.artifact_id().size() > 0) { + + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } +} + +void UpdateArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.UpdateArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UpdateArtifactResponse::CopyFrom(const UpdateArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.UpdateArtifactResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UpdateArtifactResponse::IsInitialized() const { + return true; +} + +void UpdateArtifactResponse::Swap(UpdateArtifactResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void UpdateArtifactResponse::InternalSwap(UpdateArtifactResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + artifact_id_.Swap(&other->artifact_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata UpdateArtifactResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReservationID::InitAsDefaultInstance() { + ::datacatalog::_ReservationID_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); +} +class ReservationID::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset_id(const ReservationID* msg); +}; + +const ::datacatalog::DatasetID& +ReservationID::HasBitSetters::dataset_id(const ReservationID* msg) { + return *msg->dataset_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReservationID::kDatasetIdFieldNumber; +const int ReservationID::kTagNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReservationID::ReservationID() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ReservationID) +} +ReservationID::ReservationID(const ReservationID& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag_name().size() > 0) { + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + if (from.has_dataset_id()) { + dataset_id_ = new ::datacatalog::DatasetID(*from.dataset_id_); + } else { + dataset_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ReservationID) +} + +void ReservationID::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dataset_id_ = nullptr; +} + +ReservationID::~ReservationID() { + // @@protoc_insertion_point(destructor:datacatalog.ReservationID) + SharedDtor(); +} + +void ReservationID::SharedDtor() { + tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_id_; +} + +void ReservationID::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReservationID& ReservationID::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ReservationID::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ReservationID) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ReservationID::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.DatasetID dataset_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string tag_name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ReservationID.tag_name"); + object = msg->mutable_tag_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ReservationID::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ReservationID) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.DatasetID dataset_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset_id())); + } else { + goto handle_unusual; + } + break; + } + + // string tag_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ReservationID.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ReservationID) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ReservationID) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ReservationID::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ReservationID) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::dataset_id(this), output); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReservationID.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->tag_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ReservationID) +} + +::google::protobuf::uint8* ReservationID::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReservationID) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::dataset_id(this), target); + } + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReservationID.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->tag_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ReservationID) + return target; +} + +size_t ReservationID::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReservationID) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string tag_name = 2; + if (this->tag_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + } + + // .datacatalog.DatasetID dataset_id = 1; + if (this->has_dataset_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReservationID::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReservationID) + GOOGLE_DCHECK_NE(&from, this); + const ReservationID* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReservationID) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReservationID) + MergeFrom(*source); + } +} + +void ReservationID::MergeFrom(const ReservationID& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReservationID) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.tag_name().size() > 0) { + + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + if (from.has_dataset_id()) { + mutable_dataset_id()->::datacatalog::DatasetID::MergeFrom(from.dataset_id()); + } +} + +void ReservationID::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReservationID) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReservationID::CopyFrom(const ReservationID& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReservationID) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReservationID::IsInitialized() const { + return true; +} + +void ReservationID::Swap(ReservationID* other) { + if (other == this) return; + InternalSwap(other); +} +void ReservationID::InternalSwap(ReservationID* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tag_name_.Swap(&other->tag_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dataset_id_, other->dataset_id_); +} + +::google::protobuf::Metadata ReservationID::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetOrExtendReservationRequest::InitAsDefaultInstance() { + ::datacatalog::_GetOrExtendReservationRequest_default_instance_._instance.get_mutable()->reservation_id_ = const_cast< ::datacatalog::ReservationID*>( + ::datacatalog::ReservationID::internal_default_instance()); + ::datacatalog::_GetOrExtendReservationRequest_default_instance_._instance.get_mutable()->heartbeat_interval_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +class GetOrExtendReservationRequest::HasBitSetters { + public: + static const ::datacatalog::ReservationID& reservation_id(const GetOrExtendReservationRequest* msg); + static const ::google::protobuf::Duration& heartbeat_interval(const GetOrExtendReservationRequest* msg); +}; + +const ::datacatalog::ReservationID& +GetOrExtendReservationRequest::HasBitSetters::reservation_id(const GetOrExtendReservationRequest* msg) { + return *msg->reservation_id_; +} +const ::google::protobuf::Duration& +GetOrExtendReservationRequest::HasBitSetters::heartbeat_interval(const GetOrExtendReservationRequest* msg) { + return *msg->heartbeat_interval_; +} +void GetOrExtendReservationRequest::clear_heartbeat_interval() { + if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { + delete heartbeat_interval_; + } + heartbeat_interval_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetOrExtendReservationRequest::kReservationIdFieldNumber; +const int GetOrExtendReservationRequest::kOwnerIdFieldNumber; +const int GetOrExtendReservationRequest::kHeartbeatIntervalFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetOrExtendReservationRequest::GetOrExtendReservationRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetOrExtendReservationRequest) +} +GetOrExtendReservationRequest::GetOrExtendReservationRequest(const GetOrExtendReservationRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.owner_id().size() > 0) { + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_reservation_id()) { + reservation_id_ = new ::datacatalog::ReservationID(*from.reservation_id_); + } else { + reservation_id_ = nullptr; + } + if (from.has_heartbeat_interval()) { + heartbeat_interval_ = new ::google::protobuf::Duration(*from.heartbeat_interval_); + } else { + heartbeat_interval_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrExtendReservationRequest) +} + +void GetOrExtendReservationRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&reservation_id_, 0, static_cast( + reinterpret_cast(&heartbeat_interval_) - + reinterpret_cast(&reservation_id_)) + sizeof(heartbeat_interval_)); +} + +GetOrExtendReservationRequest::~GetOrExtendReservationRequest() { + // @@protoc_insertion_point(destructor:datacatalog.GetOrExtendReservationRequest) + SharedDtor(); +} + +void GetOrExtendReservationRequest::SharedDtor() { + owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete reservation_id_; + if (this != internal_default_instance()) delete heartbeat_interval_; +} + +void GetOrExtendReservationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetOrExtendReservationRequest& GetOrExtendReservationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetOrExtendReservationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrExtendReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { + delete reservation_id_; + } + reservation_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { + delete heartbeat_interval_; + } + heartbeat_interval_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetOrExtendReservationRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.ReservationID reservation_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ReservationID::_InternalParse; + object = msg->mutable_reservation_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string owner_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.GetOrExtendReservationRequest.owner_id"); + object = msg->mutable_owner_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Duration heartbeat_interval = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_heartbeat_interval(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetOrExtendReservationRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.GetOrExtendReservationRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.ReservationID reservation_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reservation_id())); + } else { + goto handle_unusual; + } + break; + } + + // string owner_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.GetOrExtendReservationRequest.owner_id")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration heartbeat_interval = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_heartbeat_interval())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.GetOrExtendReservationRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetOrExtendReservationRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetOrExtendReservationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetOrExtendReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::reservation_id(this), output); + } + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetOrExtendReservationRequest.owner_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->owner_id(), output); + } + + // .google.protobuf.Duration heartbeat_interval = 3; + if (this->has_heartbeat_interval()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::heartbeat_interval(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetOrExtendReservationRequest) +} + +::google::protobuf::uint8* GetOrExtendReservationRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrExtendReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::reservation_id(this), target); + } + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.GetOrExtendReservationRequest.owner_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->owner_id(), target); + } + + // .google.protobuf.Duration heartbeat_interval = 3; + if (this->has_heartbeat_interval()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::heartbeat_interval(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetOrExtendReservationRequest) + return target; +} + +size_t GetOrExtendReservationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner_id()); + } + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reservation_id_); + } + + // .google.protobuf.Duration heartbeat_interval = 3; + if (this->has_heartbeat_interval()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *heartbeat_interval_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetOrExtendReservationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetOrExtendReservationRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationRequest) + MergeFrom(*source); + } +} + +void GetOrExtendReservationRequest::MergeFrom(const GetOrExtendReservationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.owner_id().size() > 0) { + + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_reservation_id()) { + mutable_reservation_id()->::datacatalog::ReservationID::MergeFrom(from.reservation_id()); + } + if (from.has_heartbeat_interval()) { + mutable_heartbeat_interval()->::google::protobuf::Duration::MergeFrom(from.heartbeat_interval()); + } +} + +void GetOrExtendReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetOrExtendReservationRequest::CopyFrom(const GetOrExtendReservationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOrExtendReservationRequest::IsInitialized() const { + return true; +} + +void GetOrExtendReservationRequest::Swap(GetOrExtendReservationRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetOrExtendReservationRequest::InternalSwap(GetOrExtendReservationRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(reservation_id_, other->reservation_id_); + swap(heartbeat_interval_, other->heartbeat_interval_); +} + +::google::protobuf::Metadata GetOrExtendReservationRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Reservation::InitAsDefaultInstance() { + ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->reservation_id_ = const_cast< ::datacatalog::ReservationID*>( + ::datacatalog::ReservationID::internal_default_instance()); + ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->heartbeat_interval_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( + ::datacatalog::Metadata::internal_default_instance()); +} +class Reservation::HasBitSetters { + public: + static const ::datacatalog::ReservationID& reservation_id(const Reservation* msg); + static const ::google::protobuf::Duration& heartbeat_interval(const Reservation* msg); + static const ::google::protobuf::Timestamp& expires_at(const Reservation* msg); + static const ::datacatalog::Metadata& metadata(const Reservation* msg); +}; + +const ::datacatalog::ReservationID& +Reservation::HasBitSetters::reservation_id(const Reservation* msg) { + return *msg->reservation_id_; +} +const ::google::protobuf::Duration& +Reservation::HasBitSetters::heartbeat_interval(const Reservation* msg) { + return *msg->heartbeat_interval_; +} +const ::google::protobuf::Timestamp& +Reservation::HasBitSetters::expires_at(const Reservation* msg) { + return *msg->expires_at_; +} +const ::datacatalog::Metadata& +Reservation::HasBitSetters::metadata(const Reservation* msg) { + return *msg->metadata_; +} +void Reservation::clear_heartbeat_interval() { + if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { + delete heartbeat_interval_; + } + heartbeat_interval_ = nullptr; +} +void Reservation::clear_expires_at() { + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Reservation::kReservationIdFieldNumber; +const int Reservation::kOwnerIdFieldNumber; +const int Reservation::kHeartbeatIntervalFieldNumber; +const int Reservation::kExpiresAtFieldNumber; +const int Reservation::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Reservation::Reservation() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.Reservation) +} +Reservation::Reservation(const Reservation& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.owner_id().size() > 0) { + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_reservation_id()) { + reservation_id_ = new ::datacatalog::ReservationID(*from.reservation_id_); + } else { + reservation_id_ = nullptr; + } + if (from.has_heartbeat_interval()) { + heartbeat_interval_ = new ::google::protobuf::Duration(*from.heartbeat_interval_); + } else { + heartbeat_interval_ = nullptr; + } + if (from.has_expires_at()) { + expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); + } else { + expires_at_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::datacatalog::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.Reservation) +} + +void Reservation::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&reservation_id_, 0, static_cast( + reinterpret_cast(&metadata_) - + reinterpret_cast(&reservation_id_)) + sizeof(metadata_)); +} + +Reservation::~Reservation() { + // @@protoc_insertion_point(destructor:datacatalog.Reservation) + SharedDtor(); +} + +void Reservation::SharedDtor() { + owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete reservation_id_; + if (this != internal_default_instance()) delete heartbeat_interval_; + if (this != internal_default_instance()) delete expires_at_; + if (this != internal_default_instance()) delete metadata_; +} + +void Reservation::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Reservation& Reservation::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Reservation::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Reservation) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { + delete reservation_id_; + } + reservation_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { + delete heartbeat_interval_; + } + heartbeat_interval_ = nullptr; + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Reservation::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.ReservationID reservation_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ReservationID::_InternalParse; + object = msg->mutable_reservation_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string owner_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.Reservation.owner_id"); + object = msg->mutable_owner_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Duration heartbeat_interval = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_heartbeat_interval(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp expires_at = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_expires_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.Metadata metadata = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Metadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Reservation::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.Reservation) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.ReservationID reservation_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reservation_id())); + } else { + goto handle_unusual; + } + break; + } + + // string owner_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Reservation.owner_id")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration heartbeat_interval = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_heartbeat_interval())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp expires_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_at())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.Metadata metadata = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.Reservation) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.Reservation) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Reservation::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.Reservation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::reservation_id(this), output); + } + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Reservation.owner_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->owner_id(), output); + } + + // .google.protobuf.Duration heartbeat_interval = 3; + if (this->has_heartbeat_interval()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::heartbeat_interval(this), output); + } + + // .google.protobuf.Timestamp expires_at = 4; + if (this->has_expires_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::expires_at(this), output); + } + + // .datacatalog.Metadata metadata = 6; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::metadata(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.Reservation) +} + +::google::protobuf::uint8* Reservation::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Reservation) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::reservation_id(this), target); + } + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Reservation.owner_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->owner_id(), target); + } + + // .google.protobuf.Duration heartbeat_interval = 3; + if (this->has_heartbeat_interval()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::heartbeat_interval(this), target); + } + + // .google.protobuf.Timestamp expires_at = 4; + if (this->has_expires_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::expires_at(this), target); + } + + // .datacatalog.Metadata metadata = 6; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::metadata(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Reservation) + return target; +} + +size_t Reservation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Reservation) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner_id()); + } + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reservation_id_); + } + + // .google.protobuf.Duration heartbeat_interval = 3; + if (this->has_heartbeat_interval()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *heartbeat_interval_); + } + + // .google.protobuf.Timestamp expires_at = 4; + if (this->has_expires_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_at_); + } + + // .datacatalog.Metadata metadata = 6; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Reservation::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Reservation) + GOOGLE_DCHECK_NE(&from, this); + const Reservation* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Reservation) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Reservation) + MergeFrom(*source); + } +} + +void Reservation::MergeFrom(const Reservation& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Reservation) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.owner_id().size() > 0) { + + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_reservation_id()) { + mutable_reservation_id()->::datacatalog::ReservationID::MergeFrom(from.reservation_id()); + } + if (from.has_heartbeat_interval()) { + mutable_heartbeat_interval()->::google::protobuf::Duration::MergeFrom(from.heartbeat_interval()); + } + if (from.has_expires_at()) { + mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); + } + if (from.has_metadata()) { + mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); + } +} + +void Reservation::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Reservation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Reservation::CopyFrom(const Reservation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Reservation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Reservation::IsInitialized() const { + return true; +} + +void Reservation::Swap(Reservation* other) { + if (other == this) return; + InternalSwap(other); +} +void Reservation::InternalSwap(Reservation* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(reservation_id_, other->reservation_id_); + swap(heartbeat_interval_, other->heartbeat_interval_); + swap(expires_at_, other->expires_at_); + swap(metadata_, other->metadata_); +} + +::google::protobuf::Metadata Reservation::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetOrExtendReservationResponse::InitAsDefaultInstance() { + ::datacatalog::_GetOrExtendReservationResponse_default_instance_._instance.get_mutable()->reservation_ = const_cast< ::datacatalog::Reservation*>( + ::datacatalog::Reservation::internal_default_instance()); +} +class GetOrExtendReservationResponse::HasBitSetters { + public: + static const ::datacatalog::Reservation& reservation(const GetOrExtendReservationResponse* msg); +}; + +const ::datacatalog::Reservation& +GetOrExtendReservationResponse::HasBitSetters::reservation(const GetOrExtendReservationResponse* msg) { + return *msg->reservation_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetOrExtendReservationResponse::kReservationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetOrExtendReservationResponse::GetOrExtendReservationResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.GetOrExtendReservationResponse) +} +GetOrExtendReservationResponse::GetOrExtendReservationResponse(const GetOrExtendReservationResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_reservation()) { + reservation_ = new ::datacatalog::Reservation(*from.reservation_); + } else { + reservation_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrExtendReservationResponse) +} + +void GetOrExtendReservationResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + reservation_ = nullptr; +} + +GetOrExtendReservationResponse::~GetOrExtendReservationResponse() { + // @@protoc_insertion_point(destructor:datacatalog.GetOrExtendReservationResponse) + SharedDtor(); +} + +void GetOrExtendReservationResponse::SharedDtor() { + if (this != internal_default_instance()) delete reservation_; +} + +void GetOrExtendReservationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetOrExtendReservationResponse& GetOrExtendReservationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void GetOrExtendReservationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrExtendReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && reservation_ != nullptr) { + delete reservation_; + } + reservation_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetOrExtendReservationResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.Reservation reservation = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Reservation::_InternalParse; + object = msg->mutable_reservation(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetOrExtendReservationResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.GetOrExtendReservationResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.Reservation reservation = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reservation())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.GetOrExtendReservationResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.GetOrExtendReservationResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetOrExtendReservationResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.GetOrExtendReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Reservation reservation = 1; + if (this->has_reservation()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::reservation(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.GetOrExtendReservationResponse) +} + +::google::protobuf::uint8* GetOrExtendReservationResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrExtendReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.Reservation reservation = 1; + if (this->has_reservation()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::reservation(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetOrExtendReservationResponse) + return target; +} + +size_t GetOrExtendReservationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.Reservation reservation = 1; + if (this->has_reservation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reservation_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetOrExtendReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetOrExtendReservationResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationResponse) + MergeFrom(*source); + } +} + +void GetOrExtendReservationResponse::MergeFrom(const GetOrExtendReservationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_reservation()) { + mutable_reservation()->::datacatalog::Reservation::MergeFrom(from.reservation()); + } +} + +void GetOrExtendReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetOrExtendReservationResponse::CopyFrom(const GetOrExtendReservationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetOrExtendReservationResponse::IsInitialized() const { + return true; +} + +void GetOrExtendReservationResponse::Swap(GetOrExtendReservationResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetOrExtendReservationResponse::InternalSwap(GetOrExtendReservationResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(reservation_, other->reservation_); +} + +::google::protobuf::Metadata GetOrExtendReservationResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReleaseReservationRequest::InitAsDefaultInstance() { + ::datacatalog::_ReleaseReservationRequest_default_instance_._instance.get_mutable()->reservation_id_ = const_cast< ::datacatalog::ReservationID*>( + ::datacatalog::ReservationID::internal_default_instance()); +} +class ReleaseReservationRequest::HasBitSetters { + public: + static const ::datacatalog::ReservationID& reservation_id(const ReleaseReservationRequest* msg); +}; + +const ::datacatalog::ReservationID& +ReleaseReservationRequest::HasBitSetters::reservation_id(const ReleaseReservationRequest* msg) { + return *msg->reservation_id_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReleaseReservationRequest::kReservationIdFieldNumber; +const int ReleaseReservationRequest::kOwnerIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReleaseReservationRequest::ReleaseReservationRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ReleaseReservationRequest) +} +ReleaseReservationRequest::ReleaseReservationRequest(const ReleaseReservationRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.owner_id().size() > 0) { + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_reservation_id()) { + reservation_id_ = new ::datacatalog::ReservationID(*from.reservation_id_); + } else { + reservation_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ReleaseReservationRequest) +} + +void ReleaseReservationRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reservation_id_ = nullptr; +} + +ReleaseReservationRequest::~ReleaseReservationRequest() { + // @@protoc_insertion_point(destructor:datacatalog.ReleaseReservationRequest) + SharedDtor(); +} + +void ReleaseReservationRequest::SharedDtor() { + owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete reservation_id_; +} + +void ReleaseReservationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReleaseReservationRequest& ReleaseReservationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ReleaseReservationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ReleaseReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { + delete reservation_id_; + } + reservation_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ReleaseReservationRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.ReservationID reservation_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ReservationID::_InternalParse; + object = msg->mutable_reservation_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string owner_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ReleaseReservationRequest.owner_id"); + object = msg->mutable_owner_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ReleaseReservationRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ReleaseReservationRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.ReservationID reservation_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reservation_id())); + } else { + goto handle_unusual; + } + break; + } + + // string owner_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_owner_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ReleaseReservationRequest.owner_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ReleaseReservationRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ReleaseReservationRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ReleaseReservationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ReleaseReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::reservation_id(this), output); + } + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReleaseReservationRequest.owner_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->owner_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ReleaseReservationRequest) +} + +::google::protobuf::uint8* ReleaseReservationRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReleaseReservationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::reservation_id(this), target); + } + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->owner_id().data(), static_cast(this->owner_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ReleaseReservationRequest.owner_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->owner_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ReleaseReservationRequest) + return target; +} + +size_t ReleaseReservationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReleaseReservationRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string owner_id = 2; + if (this->owner_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->owner_id()); + } + + // .datacatalog.ReservationID reservation_id = 1; + if (this->has_reservation_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reservation_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReleaseReservationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReleaseReservationRequest) + GOOGLE_DCHECK_NE(&from, this); + const ReleaseReservationRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReleaseReservationRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReleaseReservationRequest) + MergeFrom(*source); + } +} + +void ReleaseReservationRequest::MergeFrom(const ReleaseReservationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReleaseReservationRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.owner_id().size() > 0) { + + owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); + } + if (from.has_reservation_id()) { + mutable_reservation_id()->::datacatalog::ReservationID::MergeFrom(from.reservation_id()); + } +} + +void ReleaseReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReleaseReservationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReleaseReservationRequest::CopyFrom(const ReleaseReservationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReleaseReservationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReleaseReservationRequest::IsInitialized() const { + return true; +} + +void ReleaseReservationRequest::Swap(ReleaseReservationRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ReleaseReservationRequest::InternalSwap(ReleaseReservationRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(reservation_id_, other->reservation_id_); +} + +::google::protobuf::Metadata ReleaseReservationRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ReleaseReservationResponse::InitAsDefaultInstance() { +} +class ReleaseReservationResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ReleaseReservationResponse::ReleaseReservationResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ReleaseReservationResponse) +} +ReleaseReservationResponse::ReleaseReservationResponse(const ReleaseReservationResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.ReleaseReservationResponse) +} + +void ReleaseReservationResponse::SharedCtor() { +} + +ReleaseReservationResponse::~ReleaseReservationResponse() { + // @@protoc_insertion_point(destructor:datacatalog.ReleaseReservationResponse) + SharedDtor(); +} + +void ReleaseReservationResponse::SharedDtor() { +} + +void ReleaseReservationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ReleaseReservationResponse& ReleaseReservationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ReleaseReservationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ReleaseReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ReleaseReservationResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ReleaseReservationResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ReleaseReservationResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ReleaseReservationResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ReleaseReservationResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ReleaseReservationResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ReleaseReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ReleaseReservationResponse) +} + +::google::protobuf::uint8* ReleaseReservationResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReleaseReservationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ReleaseReservationResponse) + return target; +} + +size_t ReleaseReservationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReleaseReservationResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ReleaseReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReleaseReservationResponse) + GOOGLE_DCHECK_NE(&from, this); + const ReleaseReservationResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReleaseReservationResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReleaseReservationResponse) + MergeFrom(*source); + } +} + +void ReleaseReservationResponse::MergeFrom(const ReleaseReservationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReleaseReservationResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ReleaseReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReleaseReservationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReleaseReservationResponse::CopyFrom(const ReleaseReservationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReleaseReservationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReleaseReservationResponse::IsInitialized() const { + return true; +} + +void ReleaseReservationResponse::Swap(ReleaseReservationResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ReleaseReservationResponse::InternalSwap(ReleaseReservationResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata ReleaseReservationResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Dataset::InitAsDefaultInstance() { + ::datacatalog::_Dataset_default_instance_._instance.get_mutable()->id_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_Dataset_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( + ::datacatalog::Metadata::internal_default_instance()); +} +class Dataset::HasBitSetters { + public: + static const ::datacatalog::DatasetID& id(const Dataset* msg); + static const ::datacatalog::Metadata& metadata(const Dataset* msg); +}; + +const ::datacatalog::DatasetID& +Dataset::HasBitSetters::id(const Dataset* msg) { + return *msg->id_; +} +const ::datacatalog::Metadata& +Dataset::HasBitSetters::metadata(const Dataset* msg) { + return *msg->metadata_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Dataset::kIdFieldNumber; +const int Dataset::kMetadataFieldNumber; +const int Dataset::kPartitionKeysFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Dataset::Dataset() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.Dataset) +} +Dataset::Dataset(const Dataset& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + partitionkeys_(from.partitionkeys_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::datacatalog::DatasetID(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::datacatalog::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.Dataset) +} + +void Dataset::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&metadata_) - + reinterpret_cast(&id_)) + sizeof(metadata_)); +} + +Dataset::~Dataset() { + // @@protoc_insertion_point(destructor:datacatalog.Dataset) + SharedDtor(); +} + +void Dataset::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; +} + +void Dataset::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Dataset& Dataset::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Dataset::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Dataset) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partitionkeys_.Clear(); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Dataset::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.DatasetID id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.Metadata metadata = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Metadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated string partitionKeys = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.Dataset.partitionKeys"); + object = msg->add_partitionkeys(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Dataset::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.Dataset) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.DatasetID id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.Metadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string partitionKeys = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_partitionkeys())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partitionkeys(this->partitionkeys_size() - 1).data(), + static_cast(this->partitionkeys(this->partitionkeys_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Dataset.partitionKeys")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.Dataset) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.Dataset) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Dataset::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.Dataset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::metadata(this), output); + } + + // repeated string partitionKeys = 3; + for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partitionkeys(i).data(), static_cast(this->partitionkeys(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Dataset.partitionKeys"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->partitionkeys(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.Dataset) +} + +::google::protobuf::uint8* Dataset::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Dataset) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.DatasetID id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::metadata(this), target); + } + + // repeated string partitionKeys = 3; + for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->partitionkeys(i).data(), static_cast(this->partitionkeys(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Dataset.partitionKeys"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->partitionkeys(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Dataset) + return target; +} + +size_t Dataset::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Dataset) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string partitionKeys = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->partitionkeys_size()); + for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->partitionkeys(i)); + } + + // .datacatalog.DatasetID id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .datacatalog.Metadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Dataset::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Dataset) + GOOGLE_DCHECK_NE(&from, this); + const Dataset* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Dataset) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Dataset) + MergeFrom(*source); + } +} + +void Dataset::MergeFrom(const Dataset& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Dataset) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + partitionkeys_.MergeFrom(from.partitionkeys_); + if (from.has_id()) { + mutable_id()->::datacatalog::DatasetID::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); + } +} + +void Dataset::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Dataset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Dataset::CopyFrom(const Dataset& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Dataset) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Dataset::IsInitialized() const { + return true; +} + +void Dataset::Swap(Dataset* other) { + if (other == this) return; + InternalSwap(other); +} +void Dataset::InternalSwap(Dataset* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partitionkeys_.InternalSwap(CastToBase(&other->partitionkeys_)); + swap(id_, other->id_); + swap(metadata_, other->metadata_); +} + +::google::protobuf::Metadata Dataset::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Partition::InitAsDefaultInstance() { +} +class Partition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Partition::kKeyFieldNumber; +const int Partition::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Partition::Partition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.Partition) +} +Partition::Partition(const Partition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.Partition) +} + +void Partition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Partition::~Partition() { + // @@protoc_insertion_point(destructor:datacatalog.Partition) + SharedDtor(); +} + +void Partition::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Partition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Partition& Partition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Partition::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Partition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Partition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string key = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.Partition.key"); + object = msg->mutable_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.Partition.value"); + object = msg->mutable_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Partition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.Partition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Partition.key")); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Partition.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.Partition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.Partition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Partition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.Partition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Partition.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Partition.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.Partition) +} + +::google::protobuf::uint8* Partition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Partition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Partition.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Partition.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Partition) + return target; +} + +size_t Partition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Partition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Partition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Partition) + GOOGLE_DCHECK_NE(&from, this); + const Partition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Partition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Partition) + MergeFrom(*source); + } +} + +void Partition::MergeFrom(const Partition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Partition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } +} + +void Partition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Partition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Partition::CopyFrom(const Partition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Partition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Partition::IsInitialized() const { + return true; +} + +void Partition::Swap(Partition* other) { + if (other == this) return; + InternalSwap(other); +} +void Partition::InternalSwap(Partition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata Partition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DatasetID::InitAsDefaultInstance() { +} +class DatasetID::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DatasetID::kProjectFieldNumber; +const int DatasetID::kNameFieldNumber; +const int DatasetID::kDomainFieldNumber; +const int DatasetID::kVersionFieldNumber; +const int DatasetID::kUUIDFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DatasetID::DatasetID() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.DatasetID) +} +DatasetID::DatasetID(const DatasetID& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uuid().size() > 0) { + uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.DatasetID) +} + +void DatasetID::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +DatasetID::~DatasetID() { + // @@protoc_insertion_point(destructor:datacatalog.DatasetID) + SharedDtor(); +} + +void DatasetID::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void DatasetID::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DatasetID& DatasetID::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void DatasetID::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.DatasetID) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DatasetID::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string version = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.version"); + object = msg->mutable_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string UUID = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.UUID"); + object = msg->mutable_uuid(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DatasetID::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.DatasetID) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetID.project")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetID.name")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetID.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetID.version")); + } else { + goto handle_unusual; + } + break; + } + + // string UUID = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uuid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uuid().data(), static_cast(this->uuid().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetID.UUID")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.DatasetID) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.DatasetID) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DatasetID::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.DatasetID) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->domain(), output); + } + + // string version = 4; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->version(), output); + } + + // string UUID = 5; + if (this->uuid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uuid().data(), static_cast(this->uuid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.UUID"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->uuid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.DatasetID) +} + +::google::protobuf::uint8* DatasetID::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DatasetID) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->domain(), target); + } + + // string version = 4; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->version(), target); + } + + // string UUID = 5; + if (this->uuid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uuid().data(), static_cast(this->uuid().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetID.UUID"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->uuid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.DatasetID) + return target; +} + +size_t DatasetID::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.DatasetID) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string domain = 3; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string version = 4; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // string UUID = 5; + if (this->uuid().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uuid()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DatasetID::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DatasetID) + GOOGLE_DCHECK_NE(&from, this); + const DatasetID* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DatasetID) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DatasetID) + MergeFrom(*source); + } +} + +void DatasetID::MergeFrom(const DatasetID& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DatasetID) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.uuid().size() > 0) { + + uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); + } +} + +void DatasetID::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DatasetID) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DatasetID::CopyFrom(const DatasetID& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DatasetID) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DatasetID::IsInitialized() const { + return true; +} + +void DatasetID::Swap(DatasetID* other) { + if (other == this) return; + InternalSwap(other); +} +void DatasetID::InternalSwap(DatasetID* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata DatasetID::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Artifact::InitAsDefaultInstance() { + ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); + ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( + ::datacatalog::Metadata::internal_default_instance()); + ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class Artifact::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const Artifact* msg); + static const ::datacatalog::Metadata& metadata(const Artifact* msg); + static const ::google::protobuf::Timestamp& created_at(const Artifact* msg); +}; + +const ::datacatalog::DatasetID& +Artifact::HasBitSetters::dataset(const Artifact* msg) { + return *msg->dataset_; +} +const ::datacatalog::Metadata& +Artifact::HasBitSetters::metadata(const Artifact* msg) { + return *msg->metadata_; +} +const ::google::protobuf::Timestamp& +Artifact::HasBitSetters::created_at(const Artifact* msg) { + return *msg->created_at_; +} +void Artifact::clear_created_at() { + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Artifact::kIdFieldNumber; +const int Artifact::kDatasetFieldNumber; +const int Artifact::kDataFieldNumber; +const int Artifact::kMetadataFieldNumber; +const int Artifact::kPartitionsFieldNumber; +const int Artifact::kTagsFieldNumber; +const int Artifact::kCreatedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Artifact::Artifact() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.Artifact) +} +Artifact::Artifact(const Artifact& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + data_(from.data_), + partitions_(from.partitions_), + tags_(from.tags_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::datacatalog::Metadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.Artifact) +} + +void Artifact::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&dataset_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&dataset_)) + sizeof(created_at_)); +} + +Artifact::~Artifact() { + // @@protoc_insertion_point(destructor:datacatalog.Artifact) + SharedDtor(); +} + +void Artifact::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete created_at_; +} + +void Artifact::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Artifact& Artifact::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Artifact::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Artifact) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_.Clear(); + partitions_.Clear(); + tags_.Clear(); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { + delete created_at_; + } + created_at_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Artifact::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.Artifact.id"); + object = msg->mutable_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .datacatalog.DatasetID dataset = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .datacatalog.ArtifactData data = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ArtifactData::_InternalParse; + object = msg->add_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // .datacatalog.Metadata metadata = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Metadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .datacatalog.Partition partitions = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Partition::_InternalParse; + object = msg->add_partitions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + // repeated .datacatalog.Tag tags = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::Tag::_InternalParse; + object = msg->add_tags(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); + break; + } + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_created_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Artifact::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.Artifact) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Artifact.id")); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.DatasetID dataset = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .datacatalog.ArtifactData data = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_data())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.Metadata metadata = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .datacatalog.Partition partitions = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_partitions())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .datacatalog.Tag tags = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_tags())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.Artifact) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.Artifact) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Artifact::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.Artifact) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Artifact.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // .datacatalog.DatasetID dataset = 2; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::dataset(this), output); + } + + // repeated .datacatalog.ArtifactData data = 3; + for (unsigned int i = 0, + n = static_cast(this->data_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->data(static_cast(i)), + output); + } + + // .datacatalog.Metadata metadata = 4; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::metadata(this), output); + } + + // repeated .datacatalog.Partition partitions = 5; + for (unsigned int i = 0, + n = static_cast(this->partitions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->partitions(static_cast(i)), + output); + } + + // repeated .datacatalog.Tag tags = 6; + for (unsigned int i = 0, + n = static_cast(this->tags_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->tags(static_cast(i)), + output); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::created_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.Artifact) +} + +::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Artifact) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Artifact.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // .datacatalog.DatasetID dataset = 2; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::dataset(this), target); + } + + // repeated .datacatalog.ArtifactData data = 3; + for (unsigned int i = 0, + n = static_cast(this->data_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->data(static_cast(i)), target); + } + + // .datacatalog.Metadata metadata = 4; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::metadata(this), target); + } + + // repeated .datacatalog.Partition partitions = 5; + for (unsigned int i = 0, + n = static_cast(this->partitions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->partitions(static_cast(i)), target); + } + + // repeated .datacatalog.Tag tags = 6; + for (unsigned int i = 0, + n = static_cast(this->tags_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->tags(static_cast(i)), target); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::created_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Artifact) + return target; +} + +size_t Artifact::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Artifact) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .datacatalog.ArtifactData data = 3; + { + unsigned int count = static_cast(this->data_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->data(static_cast(i))); + } + } + + // repeated .datacatalog.Partition partitions = 5; + { + unsigned int count = static_cast(this->partitions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->partitions(static_cast(i))); + } + } + + // repeated .datacatalog.Tag tags = 6; + { + unsigned int count = static_cast(this->tags_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tags(static_cast(i))); + } + } + + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // .datacatalog.DatasetID dataset = 2; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + // .datacatalog.Metadata metadata = 4; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *created_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Artifact::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Artifact) + GOOGLE_DCHECK_NE(&from, this); + const Artifact* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Artifact) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Artifact) + MergeFrom(*source); + } +} + +void Artifact::MergeFrom(const Artifact& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Artifact) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_.MergeFrom(from.data_); + partitions_.MergeFrom(from.partitions_); + tags_.MergeFrom(from.tags_); + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } + if (from.has_metadata()) { + mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } +} + +void Artifact::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Artifact) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Artifact::CopyFrom(const Artifact& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Artifact) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Artifact::IsInitialized() const { + return true; +} + +void Artifact::Swap(Artifact* other) { + if (other == this) return; + InternalSwap(other); +} +void Artifact::InternalSwap(Artifact* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&data_)->InternalSwap(CastToBase(&other->data_)); + CastToBase(&partitions_)->InternalSwap(CastToBase(&other->partitions_)); + CastToBase(&tags_)->InternalSwap(CastToBase(&other->tags_)); + id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dataset_, other->dataset_); + swap(metadata_, other->metadata_); + swap(created_at_, other->created_at_); +} + +::google::protobuf::Metadata Artifact::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ArtifactData::InitAsDefaultInstance() { + ::datacatalog::_ArtifactData_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); +} +class ArtifactData::HasBitSetters { + public: + static const ::flyteidl::core::Literal& value(const ArtifactData* msg); +}; + +const ::flyteidl::core::Literal& +ArtifactData::HasBitSetters::value(const ArtifactData* msg) { + return *msg->value_; +} +void ArtifactData::clear_value() { + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArtifactData::kNameFieldNumber; +const int ArtifactData::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArtifactData::ArtifactData() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ArtifactData) +} +ArtifactData::ArtifactData(const ArtifactData& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_value()) { + value_ = new ::flyteidl::core::Literal(*from.value_); + } else { + value_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ArtifactData) +} + +void ArtifactData::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_ = nullptr; +} + +ArtifactData::~ArtifactData() { + // @@protoc_insertion_point(destructor:datacatalog.ArtifactData) + SharedDtor(); +} + +void ArtifactData::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete value_; +} + +void ArtifactData::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ArtifactData& ArtifactData::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ArtifactData::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ArtifactData) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { + delete value_; + } + value_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ArtifactData::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ArtifactData.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Literal value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_value(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ArtifactData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ArtifactData) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ArtifactData.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Literal value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ArtifactData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ArtifactData) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ArtifactData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ArtifactData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ArtifactData.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::value(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ArtifactData) +} + +::google::protobuf::uint8* ArtifactData::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ArtifactData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ArtifactData.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::value(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ArtifactData) + return target; +} + +size_t ArtifactData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ArtifactData) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.Literal value = 2; + if (this->has_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ArtifactData::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ArtifactData) + GOOGLE_DCHECK_NE(&from, this); + const ArtifactData* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ArtifactData) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ArtifactData) + MergeFrom(*source); + } +} + +void ArtifactData::MergeFrom(const ArtifactData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ArtifactData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_value()) { + mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); + } +} + +void ArtifactData::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ArtifactData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArtifactData::CopyFrom(const ArtifactData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ArtifactData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArtifactData::IsInitialized() const { + return true; +} + +void ArtifactData::Swap(ArtifactData* other) { + if (other == this) return; + InternalSwap(other); +} +void ArtifactData::InternalSwap(ArtifactData* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(value_, other->value_); +} + +::google::protobuf::Metadata ArtifactData::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void Tag::InitAsDefaultInstance() { + ::datacatalog::_Tag_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); +} +class Tag::HasBitSetters { + public: + static const ::datacatalog::DatasetID& dataset(const Tag* msg); +}; + +const ::datacatalog::DatasetID& +Tag::HasBitSetters::dataset(const Tag* msg) { + return *msg->dataset_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Tag::kNameFieldNumber; +const int Tag::kArtifactIdFieldNumber; +const int Tag::kDatasetFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Tag::Tag() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.Tag) +} +Tag::Tag(const Tag& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.artifact_id().size() > 0) { + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } + if (from.has_dataset()) { + dataset_ = new ::datacatalog::DatasetID(*from.dataset_); + } else { + dataset_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.Tag) +} + +void Tag::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dataset_ = nullptr; +} + +Tag::~Tag() { + // @@protoc_insertion_point(destructor:datacatalog.Tag) + SharedDtor(); +} + +void Tag::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_; +} + +void Tag::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Tag& Tag::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Tag::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Tag) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Tag::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.Tag.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string artifact_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.Tag.artifact_id"); + object = msg->mutable_artifact_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .datacatalog.DatasetID dataset = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetID::_InternalParse; + object = msg->mutable_dataset(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Tag::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.Tag) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Tag.name")); + } else { + goto handle_unusual; + } + break; + } + + // string artifact_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Tag.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.DatasetID dataset = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.Tag) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.Tag) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Tag::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.Tag) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Tag.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string artifact_id = 2; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Tag.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->artifact_id(), output); + } + + // .datacatalog.DatasetID dataset = 3; + if (this->has_dataset()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::dataset(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.Tag) +} + +::google::protobuf::uint8* Tag::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Tag) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Tag.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string artifact_id = 2; + if (this->artifact_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Tag.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->artifact_id(), target); + } + + // .datacatalog.DatasetID dataset = 3; + if (this->has_dataset()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::dataset(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Tag) + return target; +} + +size_t Tag::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Tag) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string artifact_id = 2; + if (this->artifact_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + } + + // .datacatalog.DatasetID dataset = 3; + if (this->has_dataset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dataset_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Tag::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Tag) + GOOGLE_DCHECK_NE(&from, this); + const Tag* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Tag) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Tag) + MergeFrom(*source); + } +} + +void Tag::MergeFrom(const Tag& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Tag) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.artifact_id().size() > 0) { + + artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); + } + if (from.has_dataset()) { + mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); + } +} + +void Tag::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Tag) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Tag::CopyFrom(const Tag& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Tag) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Tag::IsInitialized() const { + return true; +} + +void Tag::Swap(Tag* other) { + if (other == this) return; + InternalSwap(other); +} +void Tag::InternalSwap(Tag* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + artifact_id_.Swap(&other->artifact_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(dataset_, other->dataset_); +} + +::google::protobuf::Metadata Tag::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +Metadata_KeyMapEntry_DoNotUse::Metadata_KeyMapEntry_DoNotUse() {} +Metadata_KeyMapEntry_DoNotUse::Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void Metadata_KeyMapEntry_DoNotUse::MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata Metadata_KeyMapEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[28]; +} +void Metadata_KeyMapEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Metadata_KeyMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + Metadata_KeyMapEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void Metadata::InitAsDefaultInstance() { +} +class Metadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Metadata::kKeyMapFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Metadata::Metadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.Metadata) +} +Metadata::Metadata(const Metadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_map_.MergeFrom(from.key_map_); + // @@protoc_insertion_point(copy_constructor:datacatalog.Metadata) +} + +void Metadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +} + +Metadata::~Metadata() { + // @@protoc_insertion_point(destructor:datacatalog.Metadata) + SharedDtor(); +} + +void Metadata::SharedDtor() { +} + +void Metadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Metadata& Metadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void Metadata::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.Metadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_map_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Metadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map key_map = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::datacatalog::Metadata_KeyMapEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->key_map_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Metadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.Metadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map key_map = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + Metadata_KeyMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + Metadata_KeyMapEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&key_map_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.Metadata.KeyMapEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.Metadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.Metadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Metadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.Metadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map key_map = 1; + if (!this->key_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->key_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->key_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(key_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it) { + entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.Metadata) +} + +::google::protobuf::uint8* Metadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Metadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map key_map = 1; + if (!this->key_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.Metadata.KeyMapEntry.value"); + } + }; + + if (false && + this->key_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->key_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(key_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it) { + entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Metadata) + return target; +} + +size_t Metadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.Metadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map key_map = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->key_map_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->key_map().begin(); + it != this->key_map().end(); ++it) { + entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Metadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Metadata) + GOOGLE_DCHECK_NE(&from, this); + const Metadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Metadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Metadata) + MergeFrom(*source); + } +} + +void Metadata::MergeFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Metadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + key_map_.MergeFrom(from.key_map_); +} + +void Metadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Metadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Metadata::CopyFrom(const Metadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Metadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Metadata::IsInitialized() const { + return true; +} + +void Metadata::Swap(Metadata* other) { + if (other == this) return; + InternalSwap(other); +} +void Metadata::InternalSwap(Metadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + key_map_.Swap(&other->key_map_); +} + +::google::protobuf::Metadata Metadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void FilterExpression::InitAsDefaultInstance() { +} +class FilterExpression::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FilterExpression::kFiltersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FilterExpression::FilterExpression() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.FilterExpression) +} +FilterExpression::FilterExpression(const FilterExpression& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + filters_(from.filters_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:datacatalog.FilterExpression) +} + +void FilterExpression::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +} + +FilterExpression::~FilterExpression() { + // @@protoc_insertion_point(destructor:datacatalog.FilterExpression) + SharedDtor(); +} + +void FilterExpression::SharedDtor() { +} + +void FilterExpression::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FilterExpression& FilterExpression::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void FilterExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.FilterExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + filters_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FilterExpression::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .datacatalog.SinglePropertyFilter filters = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::SinglePropertyFilter::_InternalParse; + object = msg->add_filters(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FilterExpression::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.FilterExpression) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .datacatalog.SinglePropertyFilter filters = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_filters())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.FilterExpression) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.FilterExpression) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FilterExpression::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.FilterExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.SinglePropertyFilter filters = 1; + for (unsigned int i = 0, + n = static_cast(this->filters_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->filters(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.FilterExpression) +} + +::google::protobuf::uint8* FilterExpression::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.FilterExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .datacatalog.SinglePropertyFilter filters = 1; + for (unsigned int i = 0, + n = static_cast(this->filters_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->filters(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.FilterExpression) + return target; +} + +size_t FilterExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.FilterExpression) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .datacatalog.SinglePropertyFilter filters = 1; + { + unsigned int count = static_cast(this->filters_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->filters(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FilterExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.FilterExpression) + GOOGLE_DCHECK_NE(&from, this); + const FilterExpression* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.FilterExpression) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.FilterExpression) + MergeFrom(*source); + } +} + +void FilterExpression::MergeFrom(const FilterExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.FilterExpression) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + filters_.MergeFrom(from.filters_); +} + +void FilterExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.FilterExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FilterExpression::CopyFrom(const FilterExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.FilterExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FilterExpression::IsInitialized() const { + return true; +} + +void FilterExpression::Swap(FilterExpression* other) { + if (other == this) return; + InternalSwap(other); +} +void FilterExpression::InternalSwap(FilterExpression* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&filters_)->InternalSwap(CastToBase(&other->filters_)); +} + +::google::protobuf::Metadata FilterExpression::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void SinglePropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_SinglePropertyFilter_default_instance_.tag_filter_ = const_cast< ::datacatalog::TagPropertyFilter*>( + ::datacatalog::TagPropertyFilter::internal_default_instance()); + ::datacatalog::_SinglePropertyFilter_default_instance_.partition_filter_ = const_cast< ::datacatalog::PartitionPropertyFilter*>( + ::datacatalog::PartitionPropertyFilter::internal_default_instance()); + ::datacatalog::_SinglePropertyFilter_default_instance_.artifact_filter_ = const_cast< ::datacatalog::ArtifactPropertyFilter*>( + ::datacatalog::ArtifactPropertyFilter::internal_default_instance()); + ::datacatalog::_SinglePropertyFilter_default_instance_.dataset_filter_ = const_cast< ::datacatalog::DatasetPropertyFilter*>( + ::datacatalog::DatasetPropertyFilter::internal_default_instance()); +} +class SinglePropertyFilter::HasBitSetters { + public: + static const ::datacatalog::TagPropertyFilter& tag_filter(const SinglePropertyFilter* msg); + static const ::datacatalog::PartitionPropertyFilter& partition_filter(const SinglePropertyFilter* msg); + static const ::datacatalog::ArtifactPropertyFilter& artifact_filter(const SinglePropertyFilter* msg); + static const ::datacatalog::DatasetPropertyFilter& dataset_filter(const SinglePropertyFilter* msg); +}; + +const ::datacatalog::TagPropertyFilter& +SinglePropertyFilter::HasBitSetters::tag_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.tag_filter_; +} +const ::datacatalog::PartitionPropertyFilter& +SinglePropertyFilter::HasBitSetters::partition_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.partition_filter_; +} +const ::datacatalog::ArtifactPropertyFilter& +SinglePropertyFilter::HasBitSetters::artifact_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.artifact_filter_; +} +const ::datacatalog::DatasetPropertyFilter& +SinglePropertyFilter::HasBitSetters::dataset_filter(const SinglePropertyFilter* msg) { + return *msg->property_filter_.dataset_filter_; +} +void SinglePropertyFilter::set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property_filter(); + if (tag_filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tag_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tag_filter, submessage_arena); + } + set_has_tag_filter(); + property_filter_.tag_filter_ = tag_filter; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.tag_filter) +} +void SinglePropertyFilter::set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property_filter(); + if (partition_filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + partition_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, partition_filter, submessage_arena); + } + set_has_partition_filter(); + property_filter_.partition_filter_ = partition_filter; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.partition_filter) +} +void SinglePropertyFilter::set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property_filter(); + if (artifact_filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact_filter, submessage_arena); + } + set_has_artifact_filter(); + property_filter_.artifact_filter_ = artifact_filter; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.artifact_filter) +} +void SinglePropertyFilter::set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property_filter(); + if (dataset_filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset_filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset_filter, submessage_arena); + } + set_has_dataset_filter(); + property_filter_.dataset_filter_ = dataset_filter; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.dataset_filter) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SinglePropertyFilter::kTagFilterFieldNumber; +const int SinglePropertyFilter::kPartitionFilterFieldNumber; +const int SinglePropertyFilter::kArtifactFilterFieldNumber; +const int SinglePropertyFilter::kDatasetFilterFieldNumber; +const int SinglePropertyFilter::kOperatorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SinglePropertyFilter::SinglePropertyFilter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.SinglePropertyFilter) +} +SinglePropertyFilter::SinglePropertyFilter(const SinglePropertyFilter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + operator__ = from.operator__; + clear_has_property_filter(); + switch (from.property_filter_case()) { + case kTagFilter: { + mutable_tag_filter()->::datacatalog::TagPropertyFilter::MergeFrom(from.tag_filter()); + break; + } + case kPartitionFilter: { + mutable_partition_filter()->::datacatalog::PartitionPropertyFilter::MergeFrom(from.partition_filter()); + break; + } + case kArtifactFilter: { + mutable_artifact_filter()->::datacatalog::ArtifactPropertyFilter::MergeFrom(from.artifact_filter()); + break; + } + case kDatasetFilter: { + mutable_dataset_filter()->::datacatalog::DatasetPropertyFilter::MergeFrom(from.dataset_filter()); + break; + } + case PROPERTY_FILTER_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.SinglePropertyFilter) +} + +void SinglePropertyFilter::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + operator__ = 0; + clear_has_property_filter(); +} + +SinglePropertyFilter::~SinglePropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.SinglePropertyFilter) + SharedDtor(); +} + +void SinglePropertyFilter::SharedDtor() { + if (has_property_filter()) { + clear_property_filter(); + } +} + +void SinglePropertyFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SinglePropertyFilter& SinglePropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void SinglePropertyFilter::clear_property_filter() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.SinglePropertyFilter) + switch (property_filter_case()) { + case kTagFilter: { + delete property_filter_.tag_filter_; + break; + } + case kPartitionFilter: { + delete property_filter_.partition_filter_; + break; + } + case kArtifactFilter: { + delete property_filter_.artifact_filter_; + break; + } + case kDatasetFilter: { + delete property_filter_.dataset_filter_; + break; + } + case PROPERTY_FILTER_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_FILTER_NOT_SET; +} + + +void SinglePropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.SinglePropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + operator__ = 0; + clear_property_filter(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SinglePropertyFilter::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.TagPropertyFilter tag_filter = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::TagPropertyFilter::_InternalParse; + object = msg->mutable_tag_filter(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::PartitionPropertyFilter::_InternalParse; + object = msg->mutable_partition_filter(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::ArtifactPropertyFilter::_InternalParse; + object = msg->mutable_artifact_filter(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::DatasetPropertyFilter::_InternalParse; + object = msg->mutable_dataset_filter(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_operator_(static_cast<::datacatalog::SinglePropertyFilter_ComparisonOperator>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SinglePropertyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.SinglePropertyFilter) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.TagPropertyFilter tag_filter = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tag_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_partition_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_artifact_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dataset_filter())); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_operator_(static_cast< ::datacatalog::SinglePropertyFilter_ComparisonOperator >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.SinglePropertyFilter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.SinglePropertyFilter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SinglePropertyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.SinglePropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.TagPropertyFilter tag_filter = 1; + if (has_tag_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::tag_filter(this), output); + } + + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + if (has_partition_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::partition_filter(this), output); + } + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + if (has_artifact_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::artifact_filter(this), output); + } + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + if (has_dataset_filter()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::dataset_filter(this), output); + } + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + if (this->operator_() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 10, this->operator_(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.SinglePropertyFilter) +} + +::google::protobuf::uint8* SinglePropertyFilter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.SinglePropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.TagPropertyFilter tag_filter = 1; + if (has_tag_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::tag_filter(this), target); + } + + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + if (has_partition_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::partition_filter(this), target); + } + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + if (has_artifact_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::artifact_filter(this), target); + } + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + if (has_dataset_filter()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::dataset_filter(this), target); + } + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + if (this->operator_() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 10, this->operator_(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.SinglePropertyFilter) + return target; +} + +size_t SinglePropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.SinglePropertyFilter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + if (this->operator_() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + switch (property_filter_case()) { + // .datacatalog.TagPropertyFilter tag_filter = 1; + case kTagFilter: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *property_filter_.tag_filter_); + break; + } + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + case kPartitionFilter: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *property_filter_.partition_filter_); + break; + } + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + case kArtifactFilter: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *property_filter_.artifact_filter_); + break; + } + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + case kDatasetFilter: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *property_filter_.dataset_filter_); + break; + } + case PROPERTY_FILTER_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SinglePropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.SinglePropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + const SinglePropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.SinglePropertyFilter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.SinglePropertyFilter) + MergeFrom(*source); + } +} + +void SinglePropertyFilter::MergeFrom(const SinglePropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.SinglePropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.operator_() != 0) { + set_operator_(from.operator_()); + } + switch (from.property_filter_case()) { + case kTagFilter: { + mutable_tag_filter()->::datacatalog::TagPropertyFilter::MergeFrom(from.tag_filter()); + break; + } + case kPartitionFilter: { + mutable_partition_filter()->::datacatalog::PartitionPropertyFilter::MergeFrom(from.partition_filter()); + break; + } + case kArtifactFilter: { + mutable_artifact_filter()->::datacatalog::ArtifactPropertyFilter::MergeFrom(from.artifact_filter()); + break; + } + case kDatasetFilter: { + mutable_dataset_filter()->::datacatalog::DatasetPropertyFilter::MergeFrom(from.dataset_filter()); + break; + } + case PROPERTY_FILTER_NOT_SET: { + break; + } + } +} + +void SinglePropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.SinglePropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SinglePropertyFilter::CopyFrom(const SinglePropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.SinglePropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SinglePropertyFilter::IsInitialized() const { + return true; +} + +void SinglePropertyFilter::Swap(SinglePropertyFilter* other) { + if (other == this) return; + InternalSwap(other); +} +void SinglePropertyFilter::InternalSwap(SinglePropertyFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(operator__, other->operator__); + swap(property_filter_, other->property_filter_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata SinglePropertyFilter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ArtifactPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_ArtifactPropertyFilter_default_instance_.artifact_id_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class ArtifactPropertyFilter::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArtifactPropertyFilter::kArtifactIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArtifactPropertyFilter::ArtifactPropertyFilter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.ArtifactPropertyFilter) +} +ArtifactPropertyFilter::ArtifactPropertyFilter(const ArtifactPropertyFilter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_property(); + switch (from.property_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ArtifactPropertyFilter) +} + +void ArtifactPropertyFilter::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); +} + +ArtifactPropertyFilter::~ArtifactPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.ArtifactPropertyFilter) + SharedDtor(); +} + +void ArtifactPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } +} + +void ArtifactPropertyFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ArtifactPropertyFilter& ArtifactPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void ArtifactPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.ArtifactPropertyFilter) + switch (property_case()) { + case kArtifactId: { + property_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void ArtifactPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ArtifactPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_property(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ArtifactPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string artifact_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.ArtifactPropertyFilter.artifact_id"); + object = msg->mutable_artifact_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ArtifactPropertyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.ArtifactPropertyFilter) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string artifact_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_artifact_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.ArtifactPropertyFilter.artifact_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.ArtifactPropertyFilter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.ArtifactPropertyFilter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ArtifactPropertyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.ArtifactPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string artifact_id = 1; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ArtifactPropertyFilter.artifact_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->artifact_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.ArtifactPropertyFilter) +} + +::google::protobuf::uint8* ArtifactPropertyFilter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ArtifactPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string artifact_id = 1; + if (has_artifact_id()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->artifact_id().data(), static_cast(this->artifact_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.ArtifactPropertyFilter.artifact_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->artifact_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ArtifactPropertyFilter) + return target; +} + +size_t ArtifactPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.ArtifactPropertyFilter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (property_case()) { + // string artifact_id = 1; + case kArtifactId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->artifact_id()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ArtifactPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ArtifactPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + const ArtifactPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ArtifactPropertyFilter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ArtifactPropertyFilter) + MergeFrom(*source); + } +} + +void ArtifactPropertyFilter::MergeFrom(const ArtifactPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ArtifactPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.property_case()) { + case kArtifactId: { + set_artifact_id(from.artifact_id()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } +} + +void ArtifactPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ArtifactPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArtifactPropertyFilter::CopyFrom(const ArtifactPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ArtifactPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArtifactPropertyFilter::IsInitialized() const { + return true; +} + +void ArtifactPropertyFilter::Swap(ArtifactPropertyFilter* other) { + if (other == this) return; + InternalSwap(other); +} +void ArtifactPropertyFilter::InternalSwap(ArtifactPropertyFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ArtifactPropertyFilter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TagPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_TagPropertyFilter_default_instance_.tag_name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class TagPropertyFilter::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TagPropertyFilter::kTagNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TagPropertyFilter::TagPropertyFilter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.TagPropertyFilter) +} +TagPropertyFilter::TagPropertyFilter(const TagPropertyFilter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_property(); + switch (from.property_case()) { + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.TagPropertyFilter) +} + +void TagPropertyFilter::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); +} + +TagPropertyFilter::~TagPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.TagPropertyFilter) + SharedDtor(); +} + +void TagPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } +} + +void TagPropertyFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TagPropertyFilter& TagPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void TagPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.TagPropertyFilter) + switch (property_case()) { + case kTagName: { + property_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void TagPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.TagPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_property(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TagPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string tag_name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.TagPropertyFilter.tag_name"); + object = msg->mutable_tag_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TagPropertyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.TagPropertyFilter) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string tag_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.TagPropertyFilter.tag_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.TagPropertyFilter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.TagPropertyFilter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TagPropertyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.TagPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string tag_name = 1; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.TagPropertyFilter.tag_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->tag_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.TagPropertyFilter) +} + +::google::protobuf::uint8* TagPropertyFilter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.TagPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string tag_name = 1; + if (has_tag_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag_name().data(), static_cast(this->tag_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.TagPropertyFilter.tag_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->tag_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.TagPropertyFilter) + return target; +} + +size_t TagPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.TagPropertyFilter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (property_case()) { + // string tag_name = 1; + case kTagName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag_name()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TagPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.TagPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + const TagPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.TagPropertyFilter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.TagPropertyFilter) + MergeFrom(*source); + } +} + +void TagPropertyFilter::MergeFrom(const TagPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.TagPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.property_case()) { + case kTagName: { + set_tag_name(from.tag_name()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } +} + +void TagPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.TagPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TagPropertyFilter::CopyFrom(const TagPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.TagPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TagPropertyFilter::IsInitialized() const { + return true; +} + +void TagPropertyFilter::Swap(TagPropertyFilter* other) { + if (other == this) return; + InternalSwap(other); +} +void TagPropertyFilter::InternalSwap(TagPropertyFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata TagPropertyFilter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PartitionPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_PartitionPropertyFilter_default_instance_.key_val_ = const_cast< ::datacatalog::KeyValuePair*>( + ::datacatalog::KeyValuePair::internal_default_instance()); +} +class PartitionPropertyFilter::HasBitSetters { + public: + static const ::datacatalog::KeyValuePair& key_val(const PartitionPropertyFilter* msg); +}; + +const ::datacatalog::KeyValuePair& +PartitionPropertyFilter::HasBitSetters::key_val(const PartitionPropertyFilter* msg) { + return *msg->property_.key_val_; +} +void PartitionPropertyFilter::set_allocated_key_val(::datacatalog::KeyValuePair* key_val) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_property(); + if (key_val) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + key_val = ::google::protobuf::internal::GetOwnedMessage( + message_arena, key_val, submessage_arena); + } + set_has_key_val(); + property_.key_val_ = key_val; + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.PartitionPropertyFilter.key_val) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PartitionPropertyFilter::kKeyValFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PartitionPropertyFilter::PartitionPropertyFilter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.PartitionPropertyFilter) +} +PartitionPropertyFilter::PartitionPropertyFilter(const PartitionPropertyFilter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_property(); + switch (from.property_case()) { + case kKeyVal: { + mutable_key_val()->::datacatalog::KeyValuePair::MergeFrom(from.key_val()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.PartitionPropertyFilter) +} + +void PartitionPropertyFilter::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); +} + +PartitionPropertyFilter::~PartitionPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.PartitionPropertyFilter) + SharedDtor(); +} + +void PartitionPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } +} + +void PartitionPropertyFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PartitionPropertyFilter& PartitionPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void PartitionPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.PartitionPropertyFilter) + switch (property_case()) { + case kKeyVal: { + delete property_.key_val_; + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void PartitionPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.PartitionPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_property(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PartitionPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .datacatalog.KeyValuePair key_val = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::datacatalog::KeyValuePair::_InternalParse; + object = msg->mutable_key_val(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PartitionPropertyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.PartitionPropertyFilter) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .datacatalog.KeyValuePair key_val = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_key_val())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.PartitionPropertyFilter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.PartitionPropertyFilter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PartitionPropertyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.PartitionPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.KeyValuePair key_val = 1; + if (has_key_val()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::key_val(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.PartitionPropertyFilter) +} + +::google::protobuf::uint8* PartitionPropertyFilter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.PartitionPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .datacatalog.KeyValuePair key_val = 1; + if (has_key_val()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::key_val(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.PartitionPropertyFilter) + return target; +} + +size_t PartitionPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.PartitionPropertyFilter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (property_case()) { + // .datacatalog.KeyValuePair key_val = 1; + case kKeyVal: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *property_.key_val_); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PartitionPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.PartitionPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + const PartitionPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.PartitionPropertyFilter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.PartitionPropertyFilter) + MergeFrom(*source); + } +} + +void PartitionPropertyFilter::MergeFrom(const PartitionPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.PartitionPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.property_case()) { + case kKeyVal: { + mutable_key_val()->::datacatalog::KeyValuePair::MergeFrom(from.key_val()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } +} + +void PartitionPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.PartitionPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PartitionPropertyFilter::CopyFrom(const PartitionPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.PartitionPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PartitionPropertyFilter::IsInitialized() const { + return true; +} + +void PartitionPropertyFilter::Swap(PartitionPropertyFilter* other) { + if (other == this) return; + InternalSwap(other); +} +void PartitionPropertyFilter::InternalSwap(PartitionPropertyFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata PartitionPropertyFilter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void KeyValuePair::InitAsDefaultInstance() { +} +class KeyValuePair::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int KeyValuePair::kKeyFieldNumber; +const int KeyValuePair::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +KeyValuePair::KeyValuePair() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.KeyValuePair) +} +KeyValuePair::KeyValuePair(const KeyValuePair& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:datacatalog.KeyValuePair) +} + +void KeyValuePair::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +KeyValuePair::~KeyValuePair() { + // @@protoc_insertion_point(destructor:datacatalog.KeyValuePair) + SharedDtor(); +} + +void KeyValuePair::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void KeyValuePair::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const KeyValuePair& KeyValuePair::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void KeyValuePair::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* KeyValuePair::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string key = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.KeyValuePair.key"); + object = msg->mutable_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.KeyValuePair.value"); + object = msg->mutable_value(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool KeyValuePair::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.KeyValuePair) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.KeyValuePair.key")); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.KeyValuePair.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.KeyValuePair) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.KeyValuePair) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void KeyValuePair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.KeyValuePair.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.KeyValuePair.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.KeyValuePair) +} + +::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.KeyValuePair.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.KeyValuePair.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.KeyValuePair) + return target; +} + +size_t KeyValuePair::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.KeyValuePair) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.KeyValuePair) + GOOGLE_DCHECK_NE(&from, this); + const KeyValuePair* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.KeyValuePair) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.KeyValuePair) + MergeFrom(*source); + } +} + +void KeyValuePair::MergeFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.KeyValuePair) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } +} + +void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.KeyValuePair) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void KeyValuePair::CopyFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.KeyValuePair) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KeyValuePair::IsInitialized() const { + return true; +} + +void KeyValuePair::Swap(KeyValuePair* other) { + if (other == this) return; + InternalSwap(other); +} +void KeyValuePair::InternalSwap(KeyValuePair* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata KeyValuePair::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DatasetPropertyFilter::InitAsDefaultInstance() { + ::datacatalog::_DatasetPropertyFilter_default_instance_.project_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_DatasetPropertyFilter_default_instance_.name_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_DatasetPropertyFilter_default_instance_.domain_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::datacatalog::_DatasetPropertyFilter_default_instance_.version_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +class DatasetPropertyFilter::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DatasetPropertyFilter::kProjectFieldNumber; +const int DatasetPropertyFilter::kNameFieldNumber; +const int DatasetPropertyFilter::kDomainFieldNumber; +const int DatasetPropertyFilter::kVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DatasetPropertyFilter::DatasetPropertyFilter() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.DatasetPropertyFilter) +} +DatasetPropertyFilter::DatasetPropertyFilter(const DatasetPropertyFilter& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_property(); + switch (from.property_case()) { + case kProject: { + set_project(from.project()); + break; + } + case kName: { + set_name(from.name()); + break; + } + case kDomain: { + set_domain(from.domain()); + break; + } + case kVersion: { + set_version(from.version()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:datacatalog.DatasetPropertyFilter) +} + +void DatasetPropertyFilter::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + clear_has_property(); +} + +DatasetPropertyFilter::~DatasetPropertyFilter() { + // @@protoc_insertion_point(destructor:datacatalog.DatasetPropertyFilter) + SharedDtor(); +} + +void DatasetPropertyFilter::SharedDtor() { + if (has_property()) { + clear_property(); + } +} + +void DatasetPropertyFilter::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DatasetPropertyFilter& DatasetPropertyFilter::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void DatasetPropertyFilter::clear_property() { +// @@protoc_insertion_point(one_of_clear_start:datacatalog.DatasetPropertyFilter) + switch (property_case()) { + case kProject: { + property_.project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kName: { + property_.name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kDomain: { + property_.domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kVersion: { + property_.version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + _oneof_case_[0] = PROPERTY_NOT_SET; +} + + +void DatasetPropertyFilter::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.DatasetPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_property(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DatasetPropertyFilter::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string version = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.version"); + object = msg->mutable_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DatasetPropertyFilter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.DatasetPropertyFilter) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetPropertyFilter.project")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetPropertyFilter.name")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetPropertyFilter.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.DatasetPropertyFilter.version")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.DatasetPropertyFilter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.DatasetPropertyFilter) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DatasetPropertyFilter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.DatasetPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (has_project()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string name = 2; + if (has_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // string domain = 3; + if (has_domain()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->domain(), output); + } + + // string version = 4; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->version(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.DatasetPropertyFilter) +} + +::google::protobuf::uint8* DatasetPropertyFilter::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DatasetPropertyFilter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (has_project()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string name = 2; + if (has_name()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // string domain = 3; + if (has_domain()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->domain(), target); + } + + // string version = 4; + if (has_version()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.DatasetPropertyFilter.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->version(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.DatasetPropertyFilter) + return target; +} + +size_t DatasetPropertyFilter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.DatasetPropertyFilter) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (property_case()) { + // string project = 1; + case kProject: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + break; + } + // string name = 2; + case kName: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + break; + } + // string domain = 3; + case kDomain: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + break; + } + // string version = 4; + case kVersion: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DatasetPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DatasetPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + const DatasetPropertyFilter* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DatasetPropertyFilter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DatasetPropertyFilter) + MergeFrom(*source); + } +} + +void DatasetPropertyFilter::MergeFrom(const DatasetPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DatasetPropertyFilter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.property_case()) { + case kProject: { + set_project(from.project()); + break; + } + case kName: { + set_name(from.name()); + break; + } + case kDomain: { + set_domain(from.domain()); + break; + } + case kVersion: { + set_version(from.version()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } +} + +void DatasetPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DatasetPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DatasetPropertyFilter::CopyFrom(const DatasetPropertyFilter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DatasetPropertyFilter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DatasetPropertyFilter::IsInitialized() const { + return true; +} + +void DatasetPropertyFilter::Swap(DatasetPropertyFilter* other) { + if (other == this) return; + InternalSwap(other); +} +void DatasetPropertyFilter::InternalSwap(DatasetPropertyFilter* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(property_, other->property_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata DatasetPropertyFilter::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PaginationOptions::InitAsDefaultInstance() { +} +class PaginationOptions::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PaginationOptions::kLimitFieldNumber; +const int PaginationOptions::kTokenFieldNumber; +const int PaginationOptions::kSortKeyFieldNumber; +const int PaginationOptions::kSortOrderFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PaginationOptions::PaginationOptions() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:datacatalog.PaginationOptions) +} +PaginationOptions::PaginationOptions(const PaginationOptions& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + ::memcpy(&limit_, &from.limit_, + static_cast(reinterpret_cast(&sortorder_) - + reinterpret_cast(&limit_)) + sizeof(sortorder_)); + // @@protoc_insertion_point(copy_constructor:datacatalog.PaginationOptions) +} + +void PaginationOptions::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&limit_, 0, static_cast( + reinterpret_cast(&sortorder_) - + reinterpret_cast(&limit_)) + sizeof(sortorder_)); +} + +PaginationOptions::~PaginationOptions() { + // @@protoc_insertion_point(destructor:datacatalog.PaginationOptions) + SharedDtor(); +} + +void PaginationOptions::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PaginationOptions::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PaginationOptions& PaginationOptions::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + return *internal_default_instance(); +} + + +void PaginationOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.PaginationOptions) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&limit_, 0, static_cast( + reinterpret_cast(&sortorder_) - + reinterpret_cast(&limit_)) + sizeof(sortorder_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PaginationOptions::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // uint32 limit = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string token = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("datacatalog.PaginationOptions.token"); + object = msg->mutable_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_sortkey(static_cast<::datacatalog::PaginationOptions_SortKey>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_sortorder(static_cast<::datacatalog::PaginationOptions_SortOrder>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PaginationOptions::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:datacatalog.PaginationOptions) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // uint32 limit = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "datacatalog.PaginationOptions.token")); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_sortkey(static_cast< ::datacatalog::PaginationOptions_SortKey >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_sortorder(static_cast< ::datacatalog::PaginationOptions_SortOrder >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:datacatalog.PaginationOptions) + return true; +failure: + // @@protoc_insertion_point(parse_failure:datacatalog.PaginationOptions) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PaginationOptions::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:datacatalog.PaginationOptions) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 limit = 1; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limit(), output); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.PaginationOptions.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + if (this->sortkey() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->sortkey(), output); + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + if (this->sortorder() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->sortorder(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:datacatalog.PaginationOptions) +} + +::google::protobuf::uint8* PaginationOptions::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.PaginationOptions) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 limit = 1; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limit(), target); + } + + // string token = 2; + if (this->token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token().data(), static_cast(this->token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "datacatalog.PaginationOptions.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + if (this->sortkey() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->sortkey(), target); + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + if (this->sortorder() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->sortorder(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.PaginationOptions) + return target; +} + +size_t PaginationOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.PaginationOptions) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string token = 2; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // uint32 limit = 1; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + if (this->sortkey() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->sortkey()); + } + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + if (this->sortorder() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->sortorder()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PaginationOptions::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.PaginationOptions) + GOOGLE_DCHECK_NE(&from, this); + const PaginationOptions* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.PaginationOptions) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.PaginationOptions) + MergeFrom(*source); + } +} + +void PaginationOptions::MergeFrom(const PaginationOptions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.PaginationOptions) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } + if (from.sortkey() != 0) { + set_sortkey(from.sortkey()); + } + if (from.sortorder() != 0) { + set_sortorder(from.sortorder()); + } +} + +void PaginationOptions::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.PaginationOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PaginationOptions::CopyFrom(const PaginationOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.PaginationOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PaginationOptions::IsInitialized() const { + return true; +} + +void PaginationOptions::Swap(PaginationOptions* other) { + if (other == this) return; + InternalSwap(other); +} +void PaginationOptions::InternalSwap(PaginationOptions* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(limit_, other->limit_); + swap(sortkey_, other->sortkey_); + swap(sortorder_, other->sortorder_); +} + +::google::protobuf::Metadata PaginationOptions::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace datacatalog +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::datacatalog::CreateDatasetRequest* Arena::CreateMaybeMessage< ::datacatalog::CreateDatasetRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateDatasetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::CreateDatasetResponse* Arena::CreateMaybeMessage< ::datacatalog::CreateDatasetResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateDatasetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage< ::datacatalog::GetDatasetRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetDatasetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage< ::datacatalog::GetDatasetResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetDatasetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::GetArtifactRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetArtifactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::GetArtifactResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetArtifactResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::CreateArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::CreateArtifactRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateArtifactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::CreateArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::CreateArtifactResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::CreateArtifactResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::AddTagRequest* Arena::CreateMaybeMessage< ::datacatalog::AddTagRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::AddTagRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::AddTagResponse* Arena::CreateMaybeMessage< ::datacatalog::AddTagResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::AddTagResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListArtifactsRequest* Arena::CreateMaybeMessage< ::datacatalog::ListArtifactsRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListArtifactsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListArtifactsResponse* Arena::CreateMaybeMessage< ::datacatalog::ListArtifactsResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListArtifactsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsRequest* Arena::CreateMaybeMessage< ::datacatalog::ListDatasetsRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListDatasetsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsResponse* Arena::CreateMaybeMessage< ::datacatalog::ListDatasetsResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ListDatasetsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::UpdateArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::UpdateArtifactRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::UpdateArtifactRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::UpdateArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::UpdateArtifactResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::UpdateArtifactResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ReservationID* Arena::CreateMaybeMessage< ::datacatalog::ReservationID >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ReservationID >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Reservation* Arena::CreateMaybeMessage< ::datacatalog::Reservation >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Reservation >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationRequest >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ReleaseReservationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationResponse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ReleaseReservationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Dataset* Arena::CreateMaybeMessage< ::datacatalog::Dataset >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Dataset >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Partition* Arena::CreateMaybeMessage< ::datacatalog::Partition >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Partition >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::DatasetID* Arena::CreateMaybeMessage< ::datacatalog::DatasetID >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::DatasetID >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Artifact* Arena::CreateMaybeMessage< ::datacatalog::Artifact >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Artifact >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ArtifactData* Arena::CreateMaybeMessage< ::datacatalog::ArtifactData >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ArtifactData >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Tag* Arena::CreateMaybeMessage< ::datacatalog::Tag >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Tag >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Metadata_KeyMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::datacatalog::Metadata_KeyMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Metadata_KeyMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::Metadata* Arena::CreateMaybeMessage< ::datacatalog::Metadata >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::Metadata >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::FilterExpression* Arena::CreateMaybeMessage< ::datacatalog::FilterExpression >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::FilterExpression >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::SinglePropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::SinglePropertyFilter >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::ArtifactPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::ArtifactPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::ArtifactPropertyFilter >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::TagPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::TagPropertyFilter >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::PartitionPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::PartitionPropertyFilter >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::KeyValuePair* Arena::CreateMaybeMessage< ::datacatalog::KeyValuePair >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::KeyValuePair >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::DatasetPropertyFilter >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::DatasetPropertyFilter >(arena); +} +template<> PROTOBUF_NOINLINE ::datacatalog::PaginationOptions* Arena::CreateMaybeMessage< ::datacatalog::PaginationOptions >(Arena* arena) { + return Arena::CreateInternal< ::datacatalog::PaginationOptions >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h new file mode 100644 index 0000000000..ac8b5c69c8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h @@ -0,0 +1,9754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/datacatalog/datacatalog.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "flyteidl/core/literals.pb.h" +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[38] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); +namespace datacatalog { +class AddTagRequest; +class AddTagRequestDefaultTypeInternal; +extern AddTagRequestDefaultTypeInternal _AddTagRequest_default_instance_; +class AddTagResponse; +class AddTagResponseDefaultTypeInternal; +extern AddTagResponseDefaultTypeInternal _AddTagResponse_default_instance_; +class Artifact; +class ArtifactDefaultTypeInternal; +extern ArtifactDefaultTypeInternal _Artifact_default_instance_; +class ArtifactData; +class ArtifactDataDefaultTypeInternal; +extern ArtifactDataDefaultTypeInternal _ArtifactData_default_instance_; +class ArtifactPropertyFilter; +class ArtifactPropertyFilterDefaultTypeInternal; +extern ArtifactPropertyFilterDefaultTypeInternal _ArtifactPropertyFilter_default_instance_; +class CreateArtifactRequest; +class CreateArtifactRequestDefaultTypeInternal; +extern CreateArtifactRequestDefaultTypeInternal _CreateArtifactRequest_default_instance_; +class CreateArtifactResponse; +class CreateArtifactResponseDefaultTypeInternal; +extern CreateArtifactResponseDefaultTypeInternal _CreateArtifactResponse_default_instance_; +class CreateDatasetRequest; +class CreateDatasetRequestDefaultTypeInternal; +extern CreateDatasetRequestDefaultTypeInternal _CreateDatasetRequest_default_instance_; +class CreateDatasetResponse; +class CreateDatasetResponseDefaultTypeInternal; +extern CreateDatasetResponseDefaultTypeInternal _CreateDatasetResponse_default_instance_; +class Dataset; +class DatasetDefaultTypeInternal; +extern DatasetDefaultTypeInternal _Dataset_default_instance_; +class DatasetID; +class DatasetIDDefaultTypeInternal; +extern DatasetIDDefaultTypeInternal _DatasetID_default_instance_; +class DatasetPropertyFilter; +class DatasetPropertyFilterDefaultTypeInternal; +extern DatasetPropertyFilterDefaultTypeInternal _DatasetPropertyFilter_default_instance_; +class FilterExpression; +class FilterExpressionDefaultTypeInternal; +extern FilterExpressionDefaultTypeInternal _FilterExpression_default_instance_; +class GetArtifactRequest; +class GetArtifactRequestDefaultTypeInternal; +extern GetArtifactRequestDefaultTypeInternal _GetArtifactRequest_default_instance_; +class GetArtifactResponse; +class GetArtifactResponseDefaultTypeInternal; +extern GetArtifactResponseDefaultTypeInternal _GetArtifactResponse_default_instance_; +class GetDatasetRequest; +class GetDatasetRequestDefaultTypeInternal; +extern GetDatasetRequestDefaultTypeInternal _GetDatasetRequest_default_instance_; +class GetDatasetResponse; +class GetDatasetResponseDefaultTypeInternal; +extern GetDatasetResponseDefaultTypeInternal _GetDatasetResponse_default_instance_; +class GetOrExtendReservationRequest; +class GetOrExtendReservationRequestDefaultTypeInternal; +extern GetOrExtendReservationRequestDefaultTypeInternal _GetOrExtendReservationRequest_default_instance_; +class GetOrExtendReservationResponse; +class GetOrExtendReservationResponseDefaultTypeInternal; +extern GetOrExtendReservationResponseDefaultTypeInternal _GetOrExtendReservationResponse_default_instance_; +class KeyValuePair; +class KeyValuePairDefaultTypeInternal; +extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; +class ListArtifactsRequest; +class ListArtifactsRequestDefaultTypeInternal; +extern ListArtifactsRequestDefaultTypeInternal _ListArtifactsRequest_default_instance_; +class ListArtifactsResponse; +class ListArtifactsResponseDefaultTypeInternal; +extern ListArtifactsResponseDefaultTypeInternal _ListArtifactsResponse_default_instance_; +class ListDatasetsRequest; +class ListDatasetsRequestDefaultTypeInternal; +extern ListDatasetsRequestDefaultTypeInternal _ListDatasetsRequest_default_instance_; +class ListDatasetsResponse; +class ListDatasetsResponseDefaultTypeInternal; +extern ListDatasetsResponseDefaultTypeInternal _ListDatasetsResponse_default_instance_; +class Metadata; +class MetadataDefaultTypeInternal; +extern MetadataDefaultTypeInternal _Metadata_default_instance_; +class Metadata_KeyMapEntry_DoNotUse; +class Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal; +extern Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal _Metadata_KeyMapEntry_DoNotUse_default_instance_; +class PaginationOptions; +class PaginationOptionsDefaultTypeInternal; +extern PaginationOptionsDefaultTypeInternal _PaginationOptions_default_instance_; +class Partition; +class PartitionDefaultTypeInternal; +extern PartitionDefaultTypeInternal _Partition_default_instance_; +class PartitionPropertyFilter; +class PartitionPropertyFilterDefaultTypeInternal; +extern PartitionPropertyFilterDefaultTypeInternal _PartitionPropertyFilter_default_instance_; +class ReleaseReservationRequest; +class ReleaseReservationRequestDefaultTypeInternal; +extern ReleaseReservationRequestDefaultTypeInternal _ReleaseReservationRequest_default_instance_; +class ReleaseReservationResponse; +class ReleaseReservationResponseDefaultTypeInternal; +extern ReleaseReservationResponseDefaultTypeInternal _ReleaseReservationResponse_default_instance_; +class Reservation; +class ReservationDefaultTypeInternal; +extern ReservationDefaultTypeInternal _Reservation_default_instance_; +class ReservationID; +class ReservationIDDefaultTypeInternal; +extern ReservationIDDefaultTypeInternal _ReservationID_default_instance_; +class SinglePropertyFilter; +class SinglePropertyFilterDefaultTypeInternal; +extern SinglePropertyFilterDefaultTypeInternal _SinglePropertyFilter_default_instance_; +class Tag; +class TagDefaultTypeInternal; +extern TagDefaultTypeInternal _Tag_default_instance_; +class TagPropertyFilter; +class TagPropertyFilterDefaultTypeInternal; +extern TagPropertyFilterDefaultTypeInternal _TagPropertyFilter_default_instance_; +class UpdateArtifactRequest; +class UpdateArtifactRequestDefaultTypeInternal; +extern UpdateArtifactRequestDefaultTypeInternal _UpdateArtifactRequest_default_instance_; +class UpdateArtifactResponse; +class UpdateArtifactResponseDefaultTypeInternal; +extern UpdateArtifactResponseDefaultTypeInternal _UpdateArtifactResponse_default_instance_; +} // namespace datacatalog +namespace google { +namespace protobuf { +template<> ::datacatalog::AddTagRequest* Arena::CreateMaybeMessage<::datacatalog::AddTagRequest>(Arena*); +template<> ::datacatalog::AddTagResponse* Arena::CreateMaybeMessage<::datacatalog::AddTagResponse>(Arena*); +template<> ::datacatalog::Artifact* Arena::CreateMaybeMessage<::datacatalog::Artifact>(Arena*); +template<> ::datacatalog::ArtifactData* Arena::CreateMaybeMessage<::datacatalog::ArtifactData>(Arena*); +template<> ::datacatalog::ArtifactPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::ArtifactPropertyFilter>(Arena*); +template<> ::datacatalog::CreateArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::CreateArtifactRequest>(Arena*); +template<> ::datacatalog::CreateArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::CreateArtifactResponse>(Arena*); +template<> ::datacatalog::CreateDatasetRequest* Arena::CreateMaybeMessage<::datacatalog::CreateDatasetRequest>(Arena*); +template<> ::datacatalog::CreateDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::CreateDatasetResponse>(Arena*); +template<> ::datacatalog::Dataset* Arena::CreateMaybeMessage<::datacatalog::Dataset>(Arena*); +template<> ::datacatalog::DatasetID* Arena::CreateMaybeMessage<::datacatalog::DatasetID>(Arena*); +template<> ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::DatasetPropertyFilter>(Arena*); +template<> ::datacatalog::FilterExpression* Arena::CreateMaybeMessage<::datacatalog::FilterExpression>(Arena*); +template<> ::datacatalog::GetArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::GetArtifactRequest>(Arena*); +template<> ::datacatalog::GetArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::GetArtifactResponse>(Arena*); +template<> ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage<::datacatalog::GetDatasetRequest>(Arena*); +template<> ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::GetDatasetResponse>(Arena*); +template<> ::datacatalog::GetOrExtendReservationRequest* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationRequest>(Arena*); +template<> ::datacatalog::GetOrExtendReservationResponse* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationResponse>(Arena*); +template<> ::datacatalog::KeyValuePair* Arena::CreateMaybeMessage<::datacatalog::KeyValuePair>(Arena*); +template<> ::datacatalog::ListArtifactsRequest* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsRequest>(Arena*); +template<> ::datacatalog::ListArtifactsResponse* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsResponse>(Arena*); +template<> ::datacatalog::ListDatasetsRequest* Arena::CreateMaybeMessage<::datacatalog::ListDatasetsRequest>(Arena*); +template<> ::datacatalog::ListDatasetsResponse* Arena::CreateMaybeMessage<::datacatalog::ListDatasetsResponse>(Arena*); +template<> ::datacatalog::Metadata* Arena::CreateMaybeMessage<::datacatalog::Metadata>(Arena*); +template<> ::datacatalog::Metadata_KeyMapEntry_DoNotUse* Arena::CreateMaybeMessage<::datacatalog::Metadata_KeyMapEntry_DoNotUse>(Arena*); +template<> ::datacatalog::PaginationOptions* Arena::CreateMaybeMessage<::datacatalog::PaginationOptions>(Arena*); +template<> ::datacatalog::Partition* Arena::CreateMaybeMessage<::datacatalog::Partition>(Arena*); +template<> ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::PartitionPropertyFilter>(Arena*); +template<> ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationRequest>(Arena*); +template<> ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationResponse>(Arena*); +template<> ::datacatalog::Reservation* Arena::CreateMaybeMessage<::datacatalog::Reservation>(Arena*); +template<> ::datacatalog::ReservationID* Arena::CreateMaybeMessage<::datacatalog::ReservationID>(Arena*); +template<> ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage<::datacatalog::SinglePropertyFilter>(Arena*); +template<> ::datacatalog::Tag* Arena::CreateMaybeMessage<::datacatalog::Tag>(Arena*); +template<> ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::TagPropertyFilter>(Arena*); +template<> ::datacatalog::UpdateArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::UpdateArtifactRequest>(Arena*); +template<> ::datacatalog::UpdateArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::UpdateArtifactResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace datacatalog { + +enum SinglePropertyFilter_ComparisonOperator { + SinglePropertyFilter_ComparisonOperator_EQUALS = 0, + SinglePropertyFilter_ComparisonOperator_SinglePropertyFilter_ComparisonOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + SinglePropertyFilter_ComparisonOperator_SinglePropertyFilter_ComparisonOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool SinglePropertyFilter_ComparisonOperator_IsValid(int value); +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN = SinglePropertyFilter_ComparisonOperator_EQUALS; +const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX = SinglePropertyFilter_ComparisonOperator_EQUALS; +const int SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE = SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor(); +inline const ::std::string& SinglePropertyFilter_ComparisonOperator_Name(SinglePropertyFilter_ComparisonOperator value) { + return ::google::protobuf::internal::NameOfEnum( + SinglePropertyFilter_ComparisonOperator_descriptor(), value); +} +inline bool SinglePropertyFilter_ComparisonOperator_Parse( + const ::std::string& name, SinglePropertyFilter_ComparisonOperator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SinglePropertyFilter_ComparisonOperator_descriptor(), name, value); +} +enum PaginationOptions_SortOrder { + PaginationOptions_SortOrder_DESCENDING = 0, + PaginationOptions_SortOrder_ASCENDING = 1, + PaginationOptions_SortOrder_PaginationOptions_SortOrder_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + PaginationOptions_SortOrder_PaginationOptions_SortOrder_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool PaginationOptions_SortOrder_IsValid(int value); +const PaginationOptions_SortOrder PaginationOptions_SortOrder_SortOrder_MIN = PaginationOptions_SortOrder_DESCENDING; +const PaginationOptions_SortOrder PaginationOptions_SortOrder_SortOrder_MAX = PaginationOptions_SortOrder_ASCENDING; +const int PaginationOptions_SortOrder_SortOrder_ARRAYSIZE = PaginationOptions_SortOrder_SortOrder_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortOrder_descriptor(); +inline const ::std::string& PaginationOptions_SortOrder_Name(PaginationOptions_SortOrder value) { + return ::google::protobuf::internal::NameOfEnum( + PaginationOptions_SortOrder_descriptor(), value); +} +inline bool PaginationOptions_SortOrder_Parse( + const ::std::string& name, PaginationOptions_SortOrder* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PaginationOptions_SortOrder_descriptor(), name, value); +} +enum PaginationOptions_SortKey { + PaginationOptions_SortKey_CREATION_TIME = 0, + PaginationOptions_SortKey_PaginationOptions_SortKey_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + PaginationOptions_SortKey_PaginationOptions_SortKey_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool PaginationOptions_SortKey_IsValid(int value); +const PaginationOptions_SortKey PaginationOptions_SortKey_SortKey_MIN = PaginationOptions_SortKey_CREATION_TIME; +const PaginationOptions_SortKey PaginationOptions_SortKey_SortKey_MAX = PaginationOptions_SortKey_CREATION_TIME; +const int PaginationOptions_SortKey_SortKey_ARRAYSIZE = PaginationOptions_SortKey_SortKey_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PaginationOptions_SortKey_descriptor(); +inline const ::std::string& PaginationOptions_SortKey_Name(PaginationOptions_SortKey value) { + return ::google::protobuf::internal::NameOfEnum( + PaginationOptions_SortKey_descriptor(), value); +} +inline bool PaginationOptions_SortKey_Parse( + const ::std::string& name, PaginationOptions_SortKey* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PaginationOptions_SortKey_descriptor(), name, value); +} +// =================================================================== + +class CreateDatasetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateDatasetRequest) */ { + public: + CreateDatasetRequest(); + virtual ~CreateDatasetRequest(); + + CreateDatasetRequest(const CreateDatasetRequest& from); + + inline CreateDatasetRequest& operator=(const CreateDatasetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateDatasetRequest(CreateDatasetRequest&& from) noexcept + : CreateDatasetRequest() { + *this = ::std::move(from); + } + + inline CreateDatasetRequest& operator=(CreateDatasetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateDatasetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateDatasetRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateDatasetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(CreateDatasetRequest* other); + friend void swap(CreateDatasetRequest& a, CreateDatasetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateDatasetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateDatasetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateDatasetRequest& from); + void MergeFrom(const CreateDatasetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateDatasetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.Dataset dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::Dataset& dataset() const; + ::datacatalog::Dataset* release_dataset(); + ::datacatalog::Dataset* mutable_dataset(); + void set_allocated_dataset(::datacatalog::Dataset* dataset); + + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::Dataset* dataset_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateDatasetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateDatasetResponse) */ { + public: + CreateDatasetResponse(); + virtual ~CreateDatasetResponse(); + + CreateDatasetResponse(const CreateDatasetResponse& from); + + inline CreateDatasetResponse& operator=(const CreateDatasetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateDatasetResponse(CreateDatasetResponse&& from) noexcept + : CreateDatasetResponse() { + *this = ::std::move(from); + } + + inline CreateDatasetResponse& operator=(CreateDatasetResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateDatasetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateDatasetResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateDatasetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(CreateDatasetResponse* other); + friend void swap(CreateDatasetResponse& a, CreateDatasetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateDatasetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateDatasetResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateDatasetResponse& from); + void MergeFrom(const CreateDatasetResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateDatasetResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDatasetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetDatasetRequest) */ { + public: + GetDatasetRequest(); + virtual ~GetDatasetRequest(); + + GetDatasetRequest(const GetDatasetRequest& from); + + inline GetDatasetRequest& operator=(const GetDatasetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetDatasetRequest(GetDatasetRequest&& from) noexcept + : GetDatasetRequest() { + *this = ::std::move(from); + } + + inline GetDatasetRequest& operator=(GetDatasetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetDatasetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetDatasetRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDatasetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(GetDatasetRequest* other); + friend void swap(GetDatasetRequest& a, GetDatasetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetDatasetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetDatasetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetDatasetRequest& from); + void MergeFrom(const GetDatasetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDatasetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::DatasetID* dataset_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDatasetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetDatasetResponse) */ { + public: + GetDatasetResponse(); + virtual ~GetDatasetResponse(); + + GetDatasetResponse(const GetDatasetResponse& from); + + inline GetDatasetResponse& operator=(const GetDatasetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetDatasetResponse(GetDatasetResponse&& from) noexcept + : GetDatasetResponse() { + *this = ::std::move(from); + } + + inline GetDatasetResponse& operator=(GetDatasetResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetDatasetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetDatasetResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDatasetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(GetDatasetResponse* other); + friend void swap(GetDatasetResponse& a, GetDatasetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetDatasetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetDatasetResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetDatasetResponse& from); + void MergeFrom(const GetDatasetResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDatasetResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.Dataset dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::Dataset& dataset() const; + ::datacatalog::Dataset* release_dataset(); + ::datacatalog::Dataset* mutable_dataset(); + void set_allocated_dataset(::datacatalog::Dataset* dataset); + + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::Dataset* dataset_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetArtifactRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetArtifactRequest) */ { + public: + GetArtifactRequest(); + virtual ~GetArtifactRequest(); + + GetArtifactRequest(const GetArtifactRequest& from); + + inline GetArtifactRequest& operator=(const GetArtifactRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetArtifactRequest(GetArtifactRequest&& from) noexcept + : GetArtifactRequest() { + *this = ::std::move(from); + } + + inline GetArtifactRequest& operator=(GetArtifactRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetArtifactRequest& default_instance(); + + enum QueryHandleCase { + kArtifactId = 2, + kTagName = 3, + QUERY_HANDLE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetArtifactRequest* internal_default_instance() { + return reinterpret_cast( + &_GetArtifactRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(GetArtifactRequest* other); + friend void swap(GetArtifactRequest& a, GetArtifactRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetArtifactRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetArtifactRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetArtifactRequest& from); + void MergeFrom(const GetArtifactRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetArtifactRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // string artifact_id = 2; + private: + bool has_artifact_id() const; + public: + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 2; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + // string tag_name = 3; + private: + bool has_tag_name() const; + public: + void clear_tag_name(); + static const int kTagNameFieldNumber = 3; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); + #if LANG_CXX11 + void set_tag_name(::std::string&& value); + #endif + void set_tag_name(const char* value); + void set_tag_name(const char* value, size_t size); + ::std::string* mutable_tag_name(); + ::std::string* release_tag_name(); + void set_allocated_tag_name(::std::string* tag_name); + + void clear_query_handle(); + QueryHandleCase query_handle_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactRequest) + private: + class HasBitSetters; + void set_has_artifact_id(); + void set_has_tag_name(); + + inline bool has_query_handle() const; + inline void clear_has_query_handle(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::DatasetID* dataset_; + union QueryHandleUnion { + QueryHandleUnion() {} + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + } query_handle_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetArtifactResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetArtifactResponse) */ { + public: + GetArtifactResponse(); + virtual ~GetArtifactResponse(); + + GetArtifactResponse(const GetArtifactResponse& from); + + inline GetArtifactResponse& operator=(const GetArtifactResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetArtifactResponse(GetArtifactResponse&& from) noexcept + : GetArtifactResponse() { + *this = ::std::move(from); + } + + inline GetArtifactResponse& operator=(GetArtifactResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetArtifactResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetArtifactResponse* internal_default_instance() { + return reinterpret_cast( + &_GetArtifactResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(GetArtifactResponse* other); + friend void swap(GetArtifactResponse& a, GetArtifactResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetArtifactResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetArtifactResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetArtifactResponse& from); + void MergeFrom(const GetArtifactResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetArtifactResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.Artifact artifact = 1; + bool has_artifact() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + const ::datacatalog::Artifact& artifact() const; + ::datacatalog::Artifact* release_artifact(); + ::datacatalog::Artifact* mutable_artifact(); + void set_allocated_artifact(::datacatalog::Artifact* artifact); + + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::Artifact* artifact_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateArtifactRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateArtifactRequest) */ { + public: + CreateArtifactRequest(); + virtual ~CreateArtifactRequest(); + + CreateArtifactRequest(const CreateArtifactRequest& from); + + inline CreateArtifactRequest& operator=(const CreateArtifactRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateArtifactRequest(CreateArtifactRequest&& from) noexcept + : CreateArtifactRequest() { + *this = ::std::move(from); + } + + inline CreateArtifactRequest& operator=(CreateArtifactRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateArtifactRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateArtifactRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateArtifactRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(CreateArtifactRequest* other); + friend void swap(CreateArtifactRequest& a, CreateArtifactRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateArtifactRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateArtifactRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateArtifactRequest& from); + void MergeFrom(const CreateArtifactRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateArtifactRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.Artifact artifact = 1; + bool has_artifact() const; + void clear_artifact(); + static const int kArtifactFieldNumber = 1; + const ::datacatalog::Artifact& artifact() const; + ::datacatalog::Artifact* release_artifact(); + ::datacatalog::Artifact* mutable_artifact(); + void set_allocated_artifact(::datacatalog::Artifact* artifact); + + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::Artifact* artifact_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateArtifactResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateArtifactResponse) */ { + public: + CreateArtifactResponse(); + virtual ~CreateArtifactResponse(); + + CreateArtifactResponse(const CreateArtifactResponse& from); + + inline CreateArtifactResponse& operator=(const CreateArtifactResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateArtifactResponse(CreateArtifactResponse&& from) noexcept + : CreateArtifactResponse() { + *this = ::std::move(from); + } + + inline CreateArtifactResponse& operator=(CreateArtifactResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateArtifactResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateArtifactResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateArtifactResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(CreateArtifactResponse* other); + friend void swap(CreateArtifactResponse& a, CreateArtifactResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateArtifactResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateArtifactResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateArtifactResponse& from); + void MergeFrom(const CreateArtifactResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateArtifactResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class AddTagRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.AddTagRequest) */ { + public: + AddTagRequest(); + virtual ~AddTagRequest(); + + AddTagRequest(const AddTagRequest& from); + + inline AddTagRequest& operator=(const AddTagRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AddTagRequest(AddTagRequest&& from) noexcept + : AddTagRequest() { + *this = ::std::move(from); + } + + inline AddTagRequest& operator=(AddTagRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AddTagRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AddTagRequest* internal_default_instance() { + return reinterpret_cast( + &_AddTagRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(AddTagRequest* other); + friend void swap(AddTagRequest& a, AddTagRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AddTagRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + AddTagRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AddTagRequest& from); + void MergeFrom(const AddTagRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AddTagRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.Tag tag = 1; + bool has_tag() const; + void clear_tag(); + static const int kTagFieldNumber = 1; + const ::datacatalog::Tag& tag() const; + ::datacatalog::Tag* release_tag(); + ::datacatalog::Tag* mutable_tag(); + void set_allocated_tag(::datacatalog::Tag* tag); + + // @@protoc_insertion_point(class_scope:datacatalog.AddTagRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::Tag* tag_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class AddTagResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.AddTagResponse) */ { + public: + AddTagResponse(); + virtual ~AddTagResponse(); + + AddTagResponse(const AddTagResponse& from); + + inline AddTagResponse& operator=(const AddTagResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AddTagResponse(AddTagResponse&& from) noexcept + : AddTagResponse() { + *this = ::std::move(from); + } + + inline AddTagResponse& operator=(AddTagResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AddTagResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AddTagResponse* internal_default_instance() { + return reinterpret_cast( + &_AddTagResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(AddTagResponse* other); + friend void swap(AddTagResponse& a, AddTagResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AddTagResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + AddTagResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AddTagResponse& from); + void MergeFrom(const AddTagResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AddTagResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:datacatalog.AddTagResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ListArtifactsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListArtifactsRequest) */ { + public: + ListArtifactsRequest(); + virtual ~ListArtifactsRequest(); + + ListArtifactsRequest(const ListArtifactsRequest& from); + + inline ListArtifactsRequest& operator=(const ListArtifactsRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListArtifactsRequest(ListArtifactsRequest&& from) noexcept + : ListArtifactsRequest() { + *this = ::std::move(from); + } + + inline ListArtifactsRequest& operator=(ListArtifactsRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ListArtifactsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListArtifactsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListArtifactsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(ListArtifactsRequest* other); + friend void swap(ListArtifactsRequest& a, ListArtifactsRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListArtifactsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListArtifactsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListArtifactsRequest& from); + void MergeFrom(const ListArtifactsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListArtifactsRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // .datacatalog.FilterExpression filter = 2; + bool has_filter() const; + void clear_filter(); + static const int kFilterFieldNumber = 2; + const ::datacatalog::FilterExpression& filter() const; + ::datacatalog::FilterExpression* release_filter(); + ::datacatalog::FilterExpression* mutable_filter(); + void set_allocated_filter(::datacatalog::FilterExpression* filter); + + // .datacatalog.PaginationOptions pagination = 3; + bool has_pagination() const; + void clear_pagination(); + static const int kPaginationFieldNumber = 3; + const ::datacatalog::PaginationOptions& pagination() const; + ::datacatalog::PaginationOptions* release_pagination(); + ::datacatalog::PaginationOptions* mutable_pagination(); + void set_allocated_pagination(::datacatalog::PaginationOptions* pagination); + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::DatasetID* dataset_; + ::datacatalog::FilterExpression* filter_; + ::datacatalog::PaginationOptions* pagination_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ListArtifactsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListArtifactsResponse) */ { + public: + ListArtifactsResponse(); + virtual ~ListArtifactsResponse(); + + ListArtifactsResponse(const ListArtifactsResponse& from); + + inline ListArtifactsResponse& operator=(const ListArtifactsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListArtifactsResponse(ListArtifactsResponse&& from) noexcept + : ListArtifactsResponse() { + *this = ::std::move(from); + } + + inline ListArtifactsResponse& operator=(ListArtifactsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ListArtifactsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListArtifactsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListArtifactsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + void Swap(ListArtifactsResponse* other); + friend void swap(ListArtifactsResponse& a, ListArtifactsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListArtifactsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListArtifactsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListArtifactsResponse& from); + void MergeFrom(const ListArtifactsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListArtifactsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .datacatalog.Artifact artifacts = 1; + int artifacts_size() const; + void clear_artifacts(); + static const int kArtifactsFieldNumber = 1; + ::datacatalog::Artifact* mutable_artifacts(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* + mutable_artifacts(); + const ::datacatalog::Artifact& artifacts(int index) const; + ::datacatalog::Artifact* add_artifacts(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& + artifacts() const; + + // string next_token = 2; + void clear_next_token(); + static const int kNextTokenFieldNumber = 2; + const ::std::string& next_token() const; + void set_next_token(const ::std::string& value); + #if LANG_CXX11 + void set_next_token(::std::string&& value); + #endif + void set_next_token(const char* value); + void set_next_token(const char* value, size_t size); + ::std::string* mutable_next_token(); + ::std::string* release_next_token(); + void set_allocated_next_token(::std::string* next_token); + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact > artifacts_; + ::google::protobuf::internal::ArenaStringPtr next_token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ListDatasetsRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListDatasetsRequest) */ { + public: + ListDatasetsRequest(); + virtual ~ListDatasetsRequest(); + + ListDatasetsRequest(const ListDatasetsRequest& from); + + inline ListDatasetsRequest& operator=(const ListDatasetsRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListDatasetsRequest(ListDatasetsRequest&& from) noexcept + : ListDatasetsRequest() { + *this = ::std::move(from); + } + + inline ListDatasetsRequest& operator=(ListDatasetsRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ListDatasetsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListDatasetsRequest* internal_default_instance() { + return reinterpret_cast( + &_ListDatasetsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + void Swap(ListDatasetsRequest* other); + friend void swap(ListDatasetsRequest& a, ListDatasetsRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListDatasetsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListDatasetsRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListDatasetsRequest& from); + void MergeFrom(const ListDatasetsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListDatasetsRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.FilterExpression filter = 1; + bool has_filter() const; + void clear_filter(); + static const int kFilterFieldNumber = 1; + const ::datacatalog::FilterExpression& filter() const; + ::datacatalog::FilterExpression* release_filter(); + ::datacatalog::FilterExpression* mutable_filter(); + void set_allocated_filter(::datacatalog::FilterExpression* filter); + + // .datacatalog.PaginationOptions pagination = 2; + bool has_pagination() const; + void clear_pagination(); + static const int kPaginationFieldNumber = 2; + const ::datacatalog::PaginationOptions& pagination() const; + ::datacatalog::PaginationOptions* release_pagination(); + ::datacatalog::PaginationOptions* mutable_pagination(); + void set_allocated_pagination(::datacatalog::PaginationOptions* pagination); + + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::FilterExpression* filter_; + ::datacatalog::PaginationOptions* pagination_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ListDatasetsResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListDatasetsResponse) */ { + public: + ListDatasetsResponse(); + virtual ~ListDatasetsResponse(); + + ListDatasetsResponse(const ListDatasetsResponse& from); + + inline ListDatasetsResponse& operator=(const ListDatasetsResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ListDatasetsResponse(ListDatasetsResponse&& from) noexcept + : ListDatasetsResponse() { + *this = ::std::move(from); + } + + inline ListDatasetsResponse& operator=(ListDatasetsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ListDatasetsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ListDatasetsResponse* internal_default_instance() { + return reinterpret_cast( + &_ListDatasetsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + void Swap(ListDatasetsResponse* other); + friend void swap(ListDatasetsResponse& a, ListDatasetsResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ListDatasetsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ListDatasetsResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ListDatasetsResponse& from); + void MergeFrom(const ListDatasetsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListDatasetsResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .datacatalog.Dataset datasets = 1; + int datasets_size() const; + void clear_datasets(); + static const int kDatasetsFieldNumber = 1; + ::datacatalog::Dataset* mutable_datasets(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* + mutable_datasets(); + const ::datacatalog::Dataset& datasets(int index) const; + ::datacatalog::Dataset* add_datasets(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& + datasets() const; + + // string next_token = 2; + void clear_next_token(); + static const int kNextTokenFieldNumber = 2; + const ::std::string& next_token() const; + void set_next_token(const ::std::string& value); + #if LANG_CXX11 + void set_next_token(::std::string&& value); + #endif + void set_next_token(const char* value); + void set_next_token(const char* value, size_t size); + ::std::string* mutable_next_token(); + ::std::string* release_next_token(); + void set_allocated_next_token(::std::string* next_token); + + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset > datasets_; + ::google::protobuf::internal::ArenaStringPtr next_token_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateArtifactRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.UpdateArtifactRequest) */ { + public: + UpdateArtifactRequest(); + virtual ~UpdateArtifactRequest(); + + UpdateArtifactRequest(const UpdateArtifactRequest& from); + + inline UpdateArtifactRequest& operator=(const UpdateArtifactRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UpdateArtifactRequest(UpdateArtifactRequest&& from) noexcept + : UpdateArtifactRequest() { + *this = ::std::move(from); + } + + inline UpdateArtifactRequest& operator=(UpdateArtifactRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const UpdateArtifactRequest& default_instance(); + + enum QueryHandleCase { + kArtifactId = 2, + kTagName = 3, + QUERY_HANDLE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UpdateArtifactRequest* internal_default_instance() { + return reinterpret_cast( + &_UpdateArtifactRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + void Swap(UpdateArtifactRequest* other); + friend void swap(UpdateArtifactRequest& a, UpdateArtifactRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UpdateArtifactRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + UpdateArtifactRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const UpdateArtifactRequest& from); + void MergeFrom(const UpdateArtifactRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateArtifactRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .datacatalog.ArtifactData data = 4; + int data_size() const; + void clear_data(); + static const int kDataFieldNumber = 4; + ::datacatalog::ArtifactData* mutable_data(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* + mutable_data(); + const ::datacatalog::ArtifactData& data(int index) const; + ::datacatalog::ArtifactData* add_data(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& + data() const; + + // .datacatalog.DatasetID dataset = 1; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 1; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // string artifact_id = 2; + private: + bool has_artifact_id() const; + public: + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 2; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + // string tag_name = 3; + private: + bool has_tag_name() const; + public: + void clear_tag_name(); + static const int kTagNameFieldNumber = 3; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); + #if LANG_CXX11 + void set_tag_name(::std::string&& value); + #endif + void set_tag_name(const char* value); + void set_tag_name(const char* value, size_t size); + ::std::string* mutable_tag_name(); + ::std::string* release_tag_name(); + void set_allocated_tag_name(::std::string* tag_name); + + void clear_query_handle(); + QueryHandleCase query_handle_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactRequest) + private: + class HasBitSetters; + void set_has_artifact_id(); + void set_has_tag_name(); + + inline bool has_query_handle() const; + inline void clear_has_query_handle(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; + ::datacatalog::DatasetID* dataset_; + union QueryHandleUnion { + QueryHandleUnion() {} + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + } query_handle_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class UpdateArtifactResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.UpdateArtifactResponse) */ { + public: + UpdateArtifactResponse(); + virtual ~UpdateArtifactResponse(); + + UpdateArtifactResponse(const UpdateArtifactResponse& from); + + inline UpdateArtifactResponse& operator=(const UpdateArtifactResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UpdateArtifactResponse(UpdateArtifactResponse&& from) noexcept + : UpdateArtifactResponse() { + *this = ::std::move(from); + } + + inline UpdateArtifactResponse& operator=(UpdateArtifactResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const UpdateArtifactResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UpdateArtifactResponse* internal_default_instance() { + return reinterpret_cast( + &_UpdateArtifactResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + void Swap(UpdateArtifactResponse* other); + friend void swap(UpdateArtifactResponse& a, UpdateArtifactResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UpdateArtifactResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + UpdateArtifactResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const UpdateArtifactResponse& from); + void MergeFrom(const UpdateArtifactResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UpdateArtifactResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string artifact_id = 1; + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 1; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ReservationID final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReservationID) */ { + public: + ReservationID(); + virtual ~ReservationID(); + + ReservationID(const ReservationID& from); + + inline ReservationID& operator=(const ReservationID& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ReservationID(ReservationID&& from) noexcept + : ReservationID() { + *this = ::std::move(from); + } + + inline ReservationID& operator=(ReservationID&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ReservationID& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReservationID* internal_default_instance() { + return reinterpret_cast( + &_ReservationID_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + void Swap(ReservationID* other); + friend void swap(ReservationID& a, ReservationID& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ReservationID* New() const final { + return CreateMaybeMessage(nullptr); + } + + ReservationID* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ReservationID& from); + void MergeFrom(const ReservationID& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ReservationID* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string tag_name = 2; + void clear_tag_name(); + static const int kTagNameFieldNumber = 2; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); + #if LANG_CXX11 + void set_tag_name(::std::string&& value); + #endif + void set_tag_name(const char* value); + void set_tag_name(const char* value, size_t size); + ::std::string* mutable_tag_name(); + ::std::string* release_tag_name(); + void set_allocated_tag_name(::std::string* tag_name); + + // .datacatalog.DatasetID dataset_id = 1; + bool has_dataset_id() const; + void clear_dataset_id(); + static const int kDatasetIdFieldNumber = 1; + const ::datacatalog::DatasetID& dataset_id() const; + ::datacatalog::DatasetID* release_dataset_id(); + ::datacatalog::DatasetID* mutable_dataset_id(); + void set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id); + + // @@protoc_insertion_point(class_scope:datacatalog.ReservationID) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr tag_name_; + ::datacatalog::DatasetID* dataset_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetOrExtendReservationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrExtendReservationRequest) */ { + public: + GetOrExtendReservationRequest(); + virtual ~GetOrExtendReservationRequest(); + + GetOrExtendReservationRequest(const GetOrExtendReservationRequest& from); + + inline GetOrExtendReservationRequest& operator=(const GetOrExtendReservationRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetOrExtendReservationRequest(GetOrExtendReservationRequest&& from) noexcept + : GetOrExtendReservationRequest() { + *this = ::std::move(from); + } + + inline GetOrExtendReservationRequest& operator=(GetOrExtendReservationRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetOrExtendReservationRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetOrExtendReservationRequest* internal_default_instance() { + return reinterpret_cast( + &_GetOrExtendReservationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + void Swap(GetOrExtendReservationRequest* other); + friend void swap(GetOrExtendReservationRequest& a, GetOrExtendReservationRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetOrExtendReservationRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetOrExtendReservationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetOrExtendReservationRequest& from); + void MergeFrom(const GetOrExtendReservationRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrExtendReservationRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string owner_id = 2; + void clear_owner_id(); + static const int kOwnerIdFieldNumber = 2; + const ::std::string& owner_id() const; + void set_owner_id(const ::std::string& value); + #if LANG_CXX11 + void set_owner_id(::std::string&& value); + #endif + void set_owner_id(const char* value); + void set_owner_id(const char* value, size_t size); + ::std::string* mutable_owner_id(); + ::std::string* release_owner_id(); + void set_allocated_owner_id(::std::string* owner_id); + + // .datacatalog.ReservationID reservation_id = 1; + bool has_reservation_id() const; + void clear_reservation_id(); + static const int kReservationIdFieldNumber = 1; + const ::datacatalog::ReservationID& reservation_id() const; + ::datacatalog::ReservationID* release_reservation_id(); + ::datacatalog::ReservationID* mutable_reservation_id(); + void set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id); + + // .google.protobuf.Duration heartbeat_interval = 3; + bool has_heartbeat_interval() const; + void clear_heartbeat_interval(); + static const int kHeartbeatIntervalFieldNumber = 3; + const ::google::protobuf::Duration& heartbeat_interval() const; + ::google::protobuf::Duration* release_heartbeat_interval(); + ::google::protobuf::Duration* mutable_heartbeat_interval(); + void set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval); + + // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr owner_id_; + ::datacatalog::ReservationID* reservation_id_; + ::google::protobuf::Duration* heartbeat_interval_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Reservation final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Reservation) */ { + public: + Reservation(); + virtual ~Reservation(); + + Reservation(const Reservation& from); + + inline Reservation& operator=(const Reservation& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Reservation(Reservation&& from) noexcept + : Reservation() { + *this = ::std::move(from); + } + + inline Reservation& operator=(Reservation&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Reservation& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Reservation* internal_default_instance() { + return reinterpret_cast( + &_Reservation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + void Swap(Reservation* other); + friend void swap(Reservation& a, Reservation& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Reservation* New() const final { + return CreateMaybeMessage(nullptr); + } + + Reservation* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Reservation& from); + void MergeFrom(const Reservation& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Reservation* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string owner_id = 2; + void clear_owner_id(); + static const int kOwnerIdFieldNumber = 2; + const ::std::string& owner_id() const; + void set_owner_id(const ::std::string& value); + #if LANG_CXX11 + void set_owner_id(::std::string&& value); + #endif + void set_owner_id(const char* value); + void set_owner_id(const char* value, size_t size); + ::std::string* mutable_owner_id(); + ::std::string* release_owner_id(); + void set_allocated_owner_id(::std::string* owner_id); + + // .datacatalog.ReservationID reservation_id = 1; + bool has_reservation_id() const; + void clear_reservation_id(); + static const int kReservationIdFieldNumber = 1; + const ::datacatalog::ReservationID& reservation_id() const; + ::datacatalog::ReservationID* release_reservation_id(); + ::datacatalog::ReservationID* mutable_reservation_id(); + void set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id); + + // .google.protobuf.Duration heartbeat_interval = 3; + bool has_heartbeat_interval() const; + void clear_heartbeat_interval(); + static const int kHeartbeatIntervalFieldNumber = 3; + const ::google::protobuf::Duration& heartbeat_interval() const; + ::google::protobuf::Duration* release_heartbeat_interval(); + ::google::protobuf::Duration* mutable_heartbeat_interval(); + void set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval); + + // .google.protobuf.Timestamp expires_at = 4; + bool has_expires_at() const; + void clear_expires_at(); + static const int kExpiresAtFieldNumber = 4; + const ::google::protobuf::Timestamp& expires_at() const; + ::google::protobuf::Timestamp* release_expires_at(); + ::google::protobuf::Timestamp* mutable_expires_at(); + void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); + + // .datacatalog.Metadata metadata = 6; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 6; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); + + // @@protoc_insertion_point(class_scope:datacatalog.Reservation) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr owner_id_; + ::datacatalog::ReservationID* reservation_id_; + ::google::protobuf::Duration* heartbeat_interval_; + ::google::protobuf::Timestamp* expires_at_; + ::datacatalog::Metadata* metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class GetOrExtendReservationResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrExtendReservationResponse) */ { + public: + GetOrExtendReservationResponse(); + virtual ~GetOrExtendReservationResponse(); + + GetOrExtendReservationResponse(const GetOrExtendReservationResponse& from); + + inline GetOrExtendReservationResponse& operator=(const GetOrExtendReservationResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetOrExtendReservationResponse(GetOrExtendReservationResponse&& from) noexcept + : GetOrExtendReservationResponse() { + *this = ::std::move(from); + } + + inline GetOrExtendReservationResponse& operator=(GetOrExtendReservationResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetOrExtendReservationResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetOrExtendReservationResponse* internal_default_instance() { + return reinterpret_cast( + &_GetOrExtendReservationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + void Swap(GetOrExtendReservationResponse* other); + friend void swap(GetOrExtendReservationResponse& a, GetOrExtendReservationResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetOrExtendReservationResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetOrExtendReservationResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetOrExtendReservationResponse& from); + void MergeFrom(const GetOrExtendReservationResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetOrExtendReservationResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.Reservation reservation = 1; + bool has_reservation() const; + void clear_reservation(); + static const int kReservationFieldNumber = 1; + const ::datacatalog::Reservation& reservation() const; + ::datacatalog::Reservation* release_reservation(); + ::datacatalog::Reservation* mutable_reservation(); + void set_allocated_reservation(::datacatalog::Reservation* reservation); + + // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::datacatalog::Reservation* reservation_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ReleaseReservationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationRequest) */ { + public: + ReleaseReservationRequest(); + virtual ~ReleaseReservationRequest(); + + ReleaseReservationRequest(const ReleaseReservationRequest& from); + + inline ReleaseReservationRequest& operator=(const ReleaseReservationRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ReleaseReservationRequest(ReleaseReservationRequest&& from) noexcept + : ReleaseReservationRequest() { + *this = ::std::move(from); + } + + inline ReleaseReservationRequest& operator=(ReleaseReservationRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ReleaseReservationRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReleaseReservationRequest* internal_default_instance() { + return reinterpret_cast( + &_ReleaseReservationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + void Swap(ReleaseReservationRequest* other); + friend void swap(ReleaseReservationRequest& a, ReleaseReservationRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ReleaseReservationRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + ReleaseReservationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ReleaseReservationRequest& from); + void MergeFrom(const ReleaseReservationRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ReleaseReservationRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string owner_id = 2; + void clear_owner_id(); + static const int kOwnerIdFieldNumber = 2; + const ::std::string& owner_id() const; + void set_owner_id(const ::std::string& value); + #if LANG_CXX11 + void set_owner_id(::std::string&& value); + #endif + void set_owner_id(const char* value); + void set_owner_id(const char* value, size_t size); + ::std::string* mutable_owner_id(); + ::std::string* release_owner_id(); + void set_allocated_owner_id(::std::string* owner_id); + + // .datacatalog.ReservationID reservation_id = 1; + bool has_reservation_id() const; + void clear_reservation_id(); + static const int kReservationIdFieldNumber = 1; + const ::datacatalog::ReservationID& reservation_id() const; + ::datacatalog::ReservationID* release_reservation_id(); + ::datacatalog::ReservationID* mutable_reservation_id(); + void set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id); + + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr owner_id_; + ::datacatalog::ReservationID* reservation_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ReleaseReservationResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationResponse) */ { + public: + ReleaseReservationResponse(); + virtual ~ReleaseReservationResponse(); + + ReleaseReservationResponse(const ReleaseReservationResponse& from); + + inline ReleaseReservationResponse& operator=(const ReleaseReservationResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ReleaseReservationResponse(ReleaseReservationResponse&& from) noexcept + : ReleaseReservationResponse() { + *this = ::std::move(from); + } + + inline ReleaseReservationResponse& operator=(ReleaseReservationResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ReleaseReservationResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ReleaseReservationResponse* internal_default_instance() { + return reinterpret_cast( + &_ReleaseReservationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + void Swap(ReleaseReservationResponse* other); + friend void swap(ReleaseReservationResponse& a, ReleaseReservationResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ReleaseReservationResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + ReleaseReservationResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ReleaseReservationResponse& from); + void MergeFrom(const ReleaseReservationResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ReleaseReservationResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Dataset final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Dataset) */ { + public: + Dataset(); + virtual ~Dataset(); + + Dataset(const Dataset& from); + + inline Dataset& operator=(const Dataset& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Dataset(Dataset&& from) noexcept + : Dataset() { + *this = ::std::move(from); + } + + inline Dataset& operator=(Dataset&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Dataset& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Dataset* internal_default_instance() { + return reinterpret_cast( + &_Dataset_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + void Swap(Dataset* other); + friend void swap(Dataset& a, Dataset& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Dataset* New() const final { + return CreateMaybeMessage(nullptr); + } + + Dataset* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Dataset& from); + void MergeFrom(const Dataset& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Dataset* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string partitionKeys = 3; + int partitionkeys_size() const; + void clear_partitionkeys(); + static const int kPartitionKeysFieldNumber = 3; + const ::std::string& partitionkeys(int index) const; + ::std::string* mutable_partitionkeys(int index); + void set_partitionkeys(int index, const ::std::string& value); + #if LANG_CXX11 + void set_partitionkeys(int index, ::std::string&& value); + #endif + void set_partitionkeys(int index, const char* value); + void set_partitionkeys(int index, const char* value, size_t size); + ::std::string* add_partitionkeys(); + void add_partitionkeys(const ::std::string& value); + #if LANG_CXX11 + void add_partitionkeys(::std::string&& value); + #endif + void add_partitionkeys(const char* value); + void add_partitionkeys(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& partitionkeys() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_partitionkeys(); + + // .datacatalog.DatasetID id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::datacatalog::DatasetID& id() const; + ::datacatalog::DatasetID* release_id(); + ::datacatalog::DatasetID* mutable_id(); + void set_allocated_id(::datacatalog::DatasetID* id); + + // .datacatalog.Metadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); + + // @@protoc_insertion_point(class_scope:datacatalog.Dataset) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> partitionkeys_; + ::datacatalog::DatasetID* id_; + ::datacatalog::Metadata* metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Partition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Partition) */ { + public: + Partition(); + virtual ~Partition(); + + Partition(const Partition& from); + + inline Partition& operator=(const Partition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Partition(Partition&& from) noexcept + : Partition() { + *this = ::std::move(from); + } + + inline Partition& operator=(Partition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Partition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Partition* internal_default_instance() { + return reinterpret_cast( + &_Partition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + void Swap(Partition* other); + friend void swap(Partition& a, Partition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Partition* New() const final { + return CreateMaybeMessage(nullptr); + } + + Partition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Partition& from); + void MergeFrom(const Partition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Partition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:datacatalog.Partition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class DatasetID final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetID) */ { + public: + DatasetID(); + virtual ~DatasetID(); + + DatasetID(const DatasetID& from); + + inline DatasetID& operator=(const DatasetID& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DatasetID(DatasetID&& from) noexcept + : DatasetID() { + *this = ::std::move(from); + } + + inline DatasetID& operator=(DatasetID&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DatasetID& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DatasetID* internal_default_instance() { + return reinterpret_cast( + &_DatasetID_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + void Swap(DatasetID* other); + friend void swap(DatasetID& a, DatasetID& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DatasetID* New() const final { + return CreateMaybeMessage(nullptr); + } + + DatasetID* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DatasetID& from); + void MergeFrom(const DatasetID& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DatasetID* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string domain = 3; + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string version = 4; + void clear_version(); + static const int kVersionFieldNumber = 4; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + // string UUID = 5; + void clear_uuid(); + static const int kUUIDFieldNumber = 5; + const ::std::string& uuid() const; + void set_uuid(const ::std::string& value); + #if LANG_CXX11 + void set_uuid(::std::string&& value); + #endif + void set_uuid(const char* value); + void set_uuid(const char* value, size_t size); + ::std::string* mutable_uuid(); + ::std::string* release_uuid(); + void set_allocated_uuid(::std::string* uuid); + + // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr uuid_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Artifact final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Artifact) */ { + public: + Artifact(); + virtual ~Artifact(); + + Artifact(const Artifact& from); + + inline Artifact& operator=(const Artifact& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Artifact(Artifact&& from) noexcept + : Artifact() { + *this = ::std::move(from); + } + + inline Artifact& operator=(Artifact&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Artifact& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Artifact* internal_default_instance() { + return reinterpret_cast( + &_Artifact_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + void Swap(Artifact* other); + friend void swap(Artifact& a, Artifact& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Artifact* New() const final { + return CreateMaybeMessage(nullptr); + } + + Artifact* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Artifact& from); + void MergeFrom(const Artifact& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Artifact* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .datacatalog.ArtifactData data = 3; + int data_size() const; + void clear_data(); + static const int kDataFieldNumber = 3; + ::datacatalog::ArtifactData* mutable_data(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* + mutable_data(); + const ::datacatalog::ArtifactData& data(int index) const; + ::datacatalog::ArtifactData* add_data(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& + data() const; + + // repeated .datacatalog.Partition partitions = 5; + int partitions_size() const; + void clear_partitions(); + static const int kPartitionsFieldNumber = 5; + ::datacatalog::Partition* mutable_partitions(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* + mutable_partitions(); + const ::datacatalog::Partition& partitions(int index) const; + ::datacatalog::Partition* add_partitions(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& + partitions() const; + + // repeated .datacatalog.Tag tags = 6; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 6; + ::datacatalog::Tag* mutable_tags(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* + mutable_tags(); + const ::datacatalog::Tag& tags(int index) const; + ::datacatalog::Tag* add_tags(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& + tags() const; + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // .datacatalog.DatasetID dataset = 2; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 2; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // .datacatalog.Metadata metadata = 4; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 4; + const ::datacatalog::Metadata& metadata() const; + ::datacatalog::Metadata* release_metadata(); + ::datacatalog::Metadata* mutable_metadata(); + void set_allocated_metadata(::datacatalog::Metadata* metadata); + + // .google.protobuf.Timestamp created_at = 7; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // @@protoc_insertion_point(class_scope:datacatalog.Artifact) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition > partitions_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag > tags_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::datacatalog::DatasetID* dataset_; + ::datacatalog::Metadata* metadata_; + ::google::protobuf::Timestamp* created_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ArtifactData final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactData) */ { + public: + ArtifactData(); + virtual ~ArtifactData(); + + ArtifactData(const ArtifactData& from); + + inline ArtifactData& operator=(const ArtifactData& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArtifactData(ArtifactData&& from) noexcept + : ArtifactData() { + *this = ::std::move(from); + } + + inline ArtifactData& operator=(ArtifactData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ArtifactData& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArtifactData* internal_default_instance() { + return reinterpret_cast( + &_ArtifactData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + void Swap(ArtifactData* other); + friend void swap(ArtifactData& a, ArtifactData& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArtifactData* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArtifactData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ArtifactData& from); + void MergeFrom(const ArtifactData& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ArtifactData* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.core.Literal value = 2; + bool has_value() const; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::flyteidl::core::Literal& value() const; + ::flyteidl::core::Literal* release_value(); + ::flyteidl::core::Literal* mutable_value(); + void set_allocated_value(::flyteidl::core::Literal* value); + + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::core::Literal* value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Tag final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Tag) */ { + public: + Tag(); + virtual ~Tag(); + + Tag(const Tag& from); + + inline Tag& operator=(const Tag& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Tag(Tag&& from) noexcept + : Tag() { + *this = ::std::move(from); + } + + inline Tag& operator=(Tag&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Tag& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Tag* internal_default_instance() { + return reinterpret_cast( + &_Tag_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + void Swap(Tag* other); + friend void swap(Tag& a, Tag& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Tag* New() const final { + return CreateMaybeMessage(nullptr); + } + + Tag* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Tag& from); + void MergeFrom(const Tag& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Tag* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string artifact_id = 2; + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 2; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + // .datacatalog.DatasetID dataset = 3; + bool has_dataset() const; + void clear_dataset(); + static const int kDatasetFieldNumber = 3; + const ::datacatalog::DatasetID& dataset() const; + ::datacatalog::DatasetID* release_dataset(); + ::datacatalog::DatasetID* mutable_dataset(); + void set_allocated_dataset(::datacatalog::DatasetID* dataset); + + // @@protoc_insertion_point(class_scope:datacatalog.Tag) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + ::datacatalog::DatasetID* dataset_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class Metadata_KeyMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + Metadata_KeyMapEntry_DoNotUse(); + Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other); + static const Metadata_KeyMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Metadata_KeyMapEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class Metadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Metadata) */ { + public: + Metadata(); + virtual ~Metadata(); + + Metadata(const Metadata& from); + + inline Metadata& operator=(const Metadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Metadata(Metadata&& from) noexcept + : Metadata() { + *this = ::std::move(from); + } + + inline Metadata& operator=(Metadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Metadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Metadata* internal_default_instance() { + return reinterpret_cast( + &_Metadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + void Swap(Metadata* other); + friend void swap(Metadata& a, Metadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Metadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + Metadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Metadata& from); + void MergeFrom(const Metadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Metadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map key_map = 1; + int key_map_size() const; + void clear_key_map(); + static const int kKeyMapFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + key_map() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_key_map(); + + // @@protoc_insertion_point(class_scope:datacatalog.Metadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + Metadata_KeyMapEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > key_map_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class FilterExpression final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.FilterExpression) */ { + public: + FilterExpression(); + virtual ~FilterExpression(); + + FilterExpression(const FilterExpression& from); + + inline FilterExpression& operator=(const FilterExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FilterExpression(FilterExpression&& from) noexcept + : FilterExpression() { + *this = ::std::move(from); + } + + inline FilterExpression& operator=(FilterExpression&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const FilterExpression& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FilterExpression* internal_default_instance() { + return reinterpret_cast( + &_FilterExpression_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + void Swap(FilterExpression* other); + friend void swap(FilterExpression& a, FilterExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FilterExpression* New() const final { + return CreateMaybeMessage(nullptr); + } + + FilterExpression* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const FilterExpression& from); + void MergeFrom(const FilterExpression& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FilterExpression* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .datacatalog.SinglePropertyFilter filters = 1; + int filters_size() const; + void clear_filters(); + static const int kFiltersFieldNumber = 1; + ::datacatalog::SinglePropertyFilter* mutable_filters(int index); + ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* + mutable_filters(); + const ::datacatalog::SinglePropertyFilter& filters(int index) const; + ::datacatalog::SinglePropertyFilter* add_filters(); + const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& + filters() const; + + // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter > filters_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class SinglePropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.SinglePropertyFilter) */ { + public: + SinglePropertyFilter(); + virtual ~SinglePropertyFilter(); + + SinglePropertyFilter(const SinglePropertyFilter& from); + + inline SinglePropertyFilter& operator=(const SinglePropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SinglePropertyFilter(SinglePropertyFilter&& from) noexcept + : SinglePropertyFilter() { + *this = ::std::move(from); + } + + inline SinglePropertyFilter& operator=(SinglePropertyFilter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SinglePropertyFilter& default_instance(); + + enum PropertyFilterCase { + kTagFilter = 1, + kPartitionFilter = 2, + kArtifactFilter = 3, + kDatasetFilter = 4, + PROPERTY_FILTER_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SinglePropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_SinglePropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + void Swap(SinglePropertyFilter* other); + friend void swap(SinglePropertyFilter& a, SinglePropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SinglePropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + SinglePropertyFilter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SinglePropertyFilter& from); + void MergeFrom(const SinglePropertyFilter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SinglePropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef SinglePropertyFilter_ComparisonOperator ComparisonOperator; + static const ComparisonOperator EQUALS = + SinglePropertyFilter_ComparisonOperator_EQUALS; + static inline bool ComparisonOperator_IsValid(int value) { + return SinglePropertyFilter_ComparisonOperator_IsValid(value); + } + static const ComparisonOperator ComparisonOperator_MIN = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN; + static const ComparisonOperator ComparisonOperator_MAX = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX; + static const int ComparisonOperator_ARRAYSIZE = + SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ComparisonOperator_descriptor() { + return SinglePropertyFilter_ComparisonOperator_descriptor(); + } + static inline const ::std::string& ComparisonOperator_Name(ComparisonOperator value) { + return SinglePropertyFilter_ComparisonOperator_Name(value); + } + static inline bool ComparisonOperator_Parse(const ::std::string& name, + ComparisonOperator* value) { + return SinglePropertyFilter_ComparisonOperator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + void clear_operator_(); + static const int kOperatorFieldNumber = 10; + ::datacatalog::SinglePropertyFilter_ComparisonOperator operator_() const; + void set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator value); + + // .datacatalog.TagPropertyFilter tag_filter = 1; + bool has_tag_filter() const; + void clear_tag_filter(); + static const int kTagFilterFieldNumber = 1; + const ::datacatalog::TagPropertyFilter& tag_filter() const; + ::datacatalog::TagPropertyFilter* release_tag_filter(); + ::datacatalog::TagPropertyFilter* mutable_tag_filter(); + void set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter); + + // .datacatalog.PartitionPropertyFilter partition_filter = 2; + bool has_partition_filter() const; + void clear_partition_filter(); + static const int kPartitionFilterFieldNumber = 2; + const ::datacatalog::PartitionPropertyFilter& partition_filter() const; + ::datacatalog::PartitionPropertyFilter* release_partition_filter(); + ::datacatalog::PartitionPropertyFilter* mutable_partition_filter(); + void set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter); + + // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + bool has_artifact_filter() const; + void clear_artifact_filter(); + static const int kArtifactFilterFieldNumber = 3; + const ::datacatalog::ArtifactPropertyFilter& artifact_filter() const; + ::datacatalog::ArtifactPropertyFilter* release_artifact_filter(); + ::datacatalog::ArtifactPropertyFilter* mutable_artifact_filter(); + void set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter); + + // .datacatalog.DatasetPropertyFilter dataset_filter = 4; + bool has_dataset_filter() const; + void clear_dataset_filter(); + static const int kDatasetFilterFieldNumber = 4; + const ::datacatalog::DatasetPropertyFilter& dataset_filter() const; + ::datacatalog::DatasetPropertyFilter* release_dataset_filter(); + ::datacatalog::DatasetPropertyFilter* mutable_dataset_filter(); + void set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter); + + void clear_property_filter(); + PropertyFilterCase property_filter_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) + private: + class HasBitSetters; + void set_has_tag_filter(); + void set_has_partition_filter(); + void set_has_artifact_filter(); + void set_has_dataset_filter(); + + inline bool has_property_filter() const; + inline void clear_has_property_filter(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + int operator__; + union PropertyFilterUnion { + PropertyFilterUnion() {} + ::datacatalog::TagPropertyFilter* tag_filter_; + ::datacatalog::PartitionPropertyFilter* partition_filter_; + ::datacatalog::ArtifactPropertyFilter* artifact_filter_; + ::datacatalog::DatasetPropertyFilter* dataset_filter_; + } property_filter_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class ArtifactPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactPropertyFilter) */ { + public: + ArtifactPropertyFilter(); + virtual ~ArtifactPropertyFilter(); + + ArtifactPropertyFilter(const ArtifactPropertyFilter& from); + + inline ArtifactPropertyFilter& operator=(const ArtifactPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArtifactPropertyFilter(ArtifactPropertyFilter&& from) noexcept + : ArtifactPropertyFilter() { + *this = ::std::move(from); + } + + inline ArtifactPropertyFilter& operator=(ArtifactPropertyFilter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ArtifactPropertyFilter& default_instance(); + + enum PropertyCase { + kArtifactId = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArtifactPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_ArtifactPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + void Swap(ArtifactPropertyFilter* other); + friend void swap(ArtifactPropertyFilter& a, ArtifactPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArtifactPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArtifactPropertyFilter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ArtifactPropertyFilter& from); + void MergeFrom(const ArtifactPropertyFilter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ArtifactPropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string artifact_id = 1; + private: + bool has_artifact_id() const; + public: + void clear_artifact_id(); + static const int kArtifactIdFieldNumber = 1; + const ::std::string& artifact_id() const; + void set_artifact_id(const ::std::string& value); + #if LANG_CXX11 + void set_artifact_id(::std::string&& value); + #endif + void set_artifact_id(const char* value); + void set_artifact_id(const char* value, size_t size); + ::std::string* mutable_artifact_id(); + ::std::string* release_artifact_id(); + void set_allocated_artifact_id(::std::string* artifact_id); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) + private: + class HasBitSetters; + void set_has_artifact_id(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr artifact_id_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class TagPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.TagPropertyFilter) */ { + public: + TagPropertyFilter(); + virtual ~TagPropertyFilter(); + + TagPropertyFilter(const TagPropertyFilter& from); + + inline TagPropertyFilter& operator=(const TagPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TagPropertyFilter(TagPropertyFilter&& from) noexcept + : TagPropertyFilter() { + *this = ::std::move(from); + } + + inline TagPropertyFilter& operator=(TagPropertyFilter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TagPropertyFilter& default_instance(); + + enum PropertyCase { + kTagName = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TagPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_TagPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + void Swap(TagPropertyFilter* other); + friend void swap(TagPropertyFilter& a, TagPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TagPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + TagPropertyFilter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TagPropertyFilter& from); + void MergeFrom(const TagPropertyFilter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TagPropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string tag_name = 1; + private: + bool has_tag_name() const; + public: + void clear_tag_name(); + static const int kTagNameFieldNumber = 1; + const ::std::string& tag_name() const; + void set_tag_name(const ::std::string& value); + #if LANG_CXX11 + void set_tag_name(::std::string&& value); + #endif + void set_tag_name(const char* value); + void set_tag_name(const char* value, size_t size); + ::std::string* mutable_tag_name(); + ::std::string* release_tag_name(); + void set_allocated_tag_name(::std::string* tag_name); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) + private: + class HasBitSetters; + void set_has_tag_name(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr tag_name_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class PartitionPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PartitionPropertyFilter) */ { + public: + PartitionPropertyFilter(); + virtual ~PartitionPropertyFilter(); + + PartitionPropertyFilter(const PartitionPropertyFilter& from); + + inline PartitionPropertyFilter& operator=(const PartitionPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PartitionPropertyFilter(PartitionPropertyFilter&& from) noexcept + : PartitionPropertyFilter() { + *this = ::std::move(from); + } + + inline PartitionPropertyFilter& operator=(PartitionPropertyFilter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PartitionPropertyFilter& default_instance(); + + enum PropertyCase { + kKeyVal = 1, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PartitionPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_PartitionPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + void Swap(PartitionPropertyFilter* other); + friend void swap(PartitionPropertyFilter& a, PartitionPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PartitionPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + PartitionPropertyFilter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PartitionPropertyFilter& from); + void MergeFrom(const PartitionPropertyFilter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PartitionPropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .datacatalog.KeyValuePair key_val = 1; + bool has_key_val() const; + void clear_key_val(); + static const int kKeyValFieldNumber = 1; + const ::datacatalog::KeyValuePair& key_val() const; + ::datacatalog::KeyValuePair* release_key_val(); + ::datacatalog::KeyValuePair* mutable_key_val(); + void set_allocated_key_val(::datacatalog::KeyValuePair* key_val); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) + private: + class HasBitSetters; + void set_has_key_val(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::datacatalog::KeyValuePair* key_val_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class KeyValuePair final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.KeyValuePair) */ { + public: + KeyValuePair(); + virtual ~KeyValuePair(); + + KeyValuePair(const KeyValuePair& from); + + inline KeyValuePair& operator=(const KeyValuePair& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + KeyValuePair(KeyValuePair&& from) noexcept + : KeyValuePair() { + *this = ::std::move(from); + } + + inline KeyValuePair& operator=(KeyValuePair&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const KeyValuePair& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const KeyValuePair* internal_default_instance() { + return reinterpret_cast( + &_KeyValuePair_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + void Swap(KeyValuePair* other); + friend void swap(KeyValuePair& a, KeyValuePair& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline KeyValuePair* New() const final { + return CreateMaybeMessage(nullptr); + } + + KeyValuePair* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const KeyValuePair& from); + void MergeFrom(const KeyValuePair& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(KeyValuePair* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class DatasetPropertyFilter final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetPropertyFilter) */ { + public: + DatasetPropertyFilter(); + virtual ~DatasetPropertyFilter(); + + DatasetPropertyFilter(const DatasetPropertyFilter& from); + + inline DatasetPropertyFilter& operator=(const DatasetPropertyFilter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DatasetPropertyFilter(DatasetPropertyFilter&& from) noexcept + : DatasetPropertyFilter() { + *this = ::std::move(from); + } + + inline DatasetPropertyFilter& operator=(DatasetPropertyFilter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DatasetPropertyFilter& default_instance(); + + enum PropertyCase { + kProject = 1, + kName = 2, + kDomain = 3, + kVersion = 4, + PROPERTY_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DatasetPropertyFilter* internal_default_instance() { + return reinterpret_cast( + &_DatasetPropertyFilter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + void Swap(DatasetPropertyFilter* other); + friend void swap(DatasetPropertyFilter& a, DatasetPropertyFilter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DatasetPropertyFilter* New() const final { + return CreateMaybeMessage(nullptr); + } + + DatasetPropertyFilter* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DatasetPropertyFilter& from); + void MergeFrom(const DatasetPropertyFilter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DatasetPropertyFilter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + private: + bool has_project() const; + public: + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string name = 2; + private: + bool has_name() const; + public: + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string domain = 3; + private: + bool has_domain() const; + public: + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string version = 4; + private: + bool has_version() const; + public: + void clear_version(); + static const int kVersionFieldNumber = 4; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + void clear_property(); + PropertyCase property_case() const; + // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) + private: + class HasBitSetters; + void set_has_project(); + void set_has_name(); + void set_has_domain(); + void set_has_version(); + + inline bool has_property() const; + inline void clear_has_property(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union PropertyUnion { + PropertyUnion() {} + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr version_; + } property_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// ------------------------------------------------------------------- + +class PaginationOptions final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PaginationOptions) */ { + public: + PaginationOptions(); + virtual ~PaginationOptions(); + + PaginationOptions(const PaginationOptions& from); + + inline PaginationOptions& operator=(const PaginationOptions& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PaginationOptions(PaginationOptions&& from) noexcept + : PaginationOptions() { + *this = ::std::move(from); + } + + inline PaginationOptions& operator=(PaginationOptions&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PaginationOptions& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PaginationOptions* internal_default_instance() { + return reinterpret_cast( + &_PaginationOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; + + void Swap(PaginationOptions* other); + friend void swap(PaginationOptions& a, PaginationOptions& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PaginationOptions* New() const final { + return CreateMaybeMessage(nullptr); + } + + PaginationOptions* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PaginationOptions& from); + void MergeFrom(const PaginationOptions& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PaginationOptions* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef PaginationOptions_SortOrder SortOrder; + static const SortOrder DESCENDING = + PaginationOptions_SortOrder_DESCENDING; + static const SortOrder ASCENDING = + PaginationOptions_SortOrder_ASCENDING; + static inline bool SortOrder_IsValid(int value) { + return PaginationOptions_SortOrder_IsValid(value); + } + static const SortOrder SortOrder_MIN = + PaginationOptions_SortOrder_SortOrder_MIN; + static const SortOrder SortOrder_MAX = + PaginationOptions_SortOrder_SortOrder_MAX; + static const int SortOrder_ARRAYSIZE = + PaginationOptions_SortOrder_SortOrder_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SortOrder_descriptor() { + return PaginationOptions_SortOrder_descriptor(); + } + static inline const ::std::string& SortOrder_Name(SortOrder value) { + return PaginationOptions_SortOrder_Name(value); + } + static inline bool SortOrder_Parse(const ::std::string& name, + SortOrder* value) { + return PaginationOptions_SortOrder_Parse(name, value); + } + + typedef PaginationOptions_SortKey SortKey; + static const SortKey CREATION_TIME = + PaginationOptions_SortKey_CREATION_TIME; + static inline bool SortKey_IsValid(int value) { + return PaginationOptions_SortKey_IsValid(value); + } + static const SortKey SortKey_MIN = + PaginationOptions_SortKey_SortKey_MIN; + static const SortKey SortKey_MAX = + PaginationOptions_SortKey_SortKey_MAX; + static const int SortKey_ARRAYSIZE = + PaginationOptions_SortKey_SortKey_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SortKey_descriptor() { + return PaginationOptions_SortKey_descriptor(); + } + static inline const ::std::string& SortKey_Name(SortKey value) { + return PaginationOptions_SortKey_Name(value); + } + static inline bool SortKey_Parse(const ::std::string& name, + SortKey* value) { + return PaginationOptions_SortKey_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string token = 2; + void clear_token(); + static const int kTokenFieldNumber = 2; + const ::std::string& token() const; + void set_token(const ::std::string& value); + #if LANG_CXX11 + void set_token(::std::string&& value); + #endif + void set_token(const char* value); + void set_token(const char* value, size_t size); + ::std::string* mutable_token(); + ::std::string* release_token(); + void set_allocated_token(::std::string* token); + + // uint32 limit = 1; + void clear_limit(); + static const int kLimitFieldNumber = 1; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // .datacatalog.PaginationOptions.SortKey sortKey = 3; + void clear_sortkey(); + static const int kSortKeyFieldNumber = 3; + ::datacatalog::PaginationOptions_SortKey sortkey() const; + void set_sortkey(::datacatalog::PaginationOptions_SortKey value); + + // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + void clear_sortorder(); + static const int kSortOrderFieldNumber = 4; + ::datacatalog::PaginationOptions_SortOrder sortorder() const; + void set_sortorder(::datacatalog::PaginationOptions_SortOrder value); + + // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::uint32 limit_; + int sortkey_; + int sortorder_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CreateDatasetRequest + +// .datacatalog.Dataset dataset = 1; +inline bool CreateDatasetRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void CreateDatasetRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::Dataset& CreateDatasetRequest::dataset() const { + const ::datacatalog::Dataset* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.CreateDatasetRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Dataset_default_instance_); +} +inline ::datacatalog::Dataset* CreateDatasetRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.CreateDatasetRequest.dataset) + + ::datacatalog::Dataset* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::Dataset* CreateDatasetRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.CreateDatasetRequest.dataset) + return dataset_; +} +inline void CreateDatasetRequest::set_allocated_dataset(::datacatalog::Dataset* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateDatasetRequest.dataset) +} + +// ------------------------------------------------------------------- + +// CreateDatasetResponse + +// ------------------------------------------------------------------- + +// GetDatasetRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool GetDatasetRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetDatasetRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& GetDatasetRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetDatasetRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* GetDatasetRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetDatasetRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* GetDatasetRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetRequest.dataset) + return dataset_; +} +inline void GetDatasetRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetRequest.dataset) +} + +// ------------------------------------------------------------------- + +// GetDatasetResponse + +// .datacatalog.Dataset dataset = 1; +inline bool GetDatasetResponse::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetDatasetResponse::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::Dataset& GetDatasetResponse::dataset() const { + const ::datacatalog::Dataset* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetDatasetResponse.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Dataset_default_instance_); +} +inline ::datacatalog::Dataset* GetDatasetResponse::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetDatasetResponse.dataset) + + ::datacatalog::Dataset* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::Dataset* GetDatasetResponse::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetResponse.dataset) + return dataset_; +} +inline void GetDatasetResponse::set_allocated_dataset(::datacatalog::Dataset* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetResponse.dataset) +} + +// ------------------------------------------------------------------- + +// GetArtifactRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool GetArtifactRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void GetArtifactRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& GetArtifactRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* GetArtifactRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* GetArtifactRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.dataset) + return dataset_; +} +inline void GetArtifactRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.dataset) +} + +// string artifact_id = 2; +inline bool GetArtifactRequest::has_artifact_id() const { + return query_handle_case() == kArtifactId; +} +inline void GetArtifactRequest::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; +} +inline void GetArtifactRequest::clear_artifact_id() { + if (has_artifact_id()) { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& GetArtifactRequest::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.artifact_id) + if (has_artifact_id()) { + return query_handle_.artifact_id_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void GetArtifactRequest::set_artifact_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) +} +#if LANG_CXX11 +inline void GetArtifactRequest::set_artifact_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetArtifactRequest.artifact_id) +} +#endif +inline void GetArtifactRequest::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.GetArtifactRequest.artifact_id) +} +inline void GetArtifactRequest::set_artifact_id(const char* value, size_t size) { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.GetArtifactRequest.artifact_id) +} +inline ::std::string* GetArtifactRequest::mutable_artifact_id() { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.artifact_id) + return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetArtifactRequest::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.artifact_id) + if (has_artifact_id()) { + clear_has_query_handle(); + return query_handle_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void GetArtifactRequest::set_allocated_artifact_id(::std::string* artifact_id) { + if (has_query_handle()) { + clear_query_handle(); + } + if (artifact_id != nullptr) { + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(artifact_id); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.artifact_id) +} + +// string tag_name = 3; +inline bool GetArtifactRequest::has_tag_name() const { + return query_handle_case() == kTagName; +} +inline void GetArtifactRequest::set_has_tag_name() { + _oneof_case_[0] = kTagName; +} +inline void GetArtifactRequest::clear_tag_name() { + if (has_tag_name()) { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& GetArtifactRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.tag_name) + if (has_tag_name()) { + return query_handle_.tag_name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void GetArtifactRequest::set_tag_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) +} +#if LANG_CXX11 +inline void GetArtifactRequest::set_tag_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetArtifactRequest.tag_name) +} +#endif +inline void GetArtifactRequest::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.GetArtifactRequest.tag_name) +} +inline void GetArtifactRequest::set_tag_name(const char* value, size_t size) { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.GetArtifactRequest.tag_name) +} +inline ::std::string* GetArtifactRequest::mutable_tag_name() { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.tag_name) + return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetArtifactRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.tag_name) + if (has_tag_name()) { + clear_has_query_handle(); + return query_handle_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void GetArtifactRequest::set_allocated_tag_name(::std::string* tag_name) { + if (has_query_handle()) { + clear_query_handle(); + } + if (tag_name != nullptr) { + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(tag_name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.tag_name) +} + +inline bool GetArtifactRequest::has_query_handle() const { + return query_handle_case() != QUERY_HANDLE_NOT_SET; +} +inline void GetArtifactRequest::clear_has_query_handle() { + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} +inline GetArtifactRequest::QueryHandleCase GetArtifactRequest::query_handle_case() const { + return GetArtifactRequest::QueryHandleCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// GetArtifactResponse + +// .datacatalog.Artifact artifact = 1; +inline bool GetArtifactResponse::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void GetArtifactResponse::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::datacatalog::Artifact& GetArtifactResponse::artifact() const { + const ::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:datacatalog.GetArtifactResponse.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Artifact_default_instance_); +} +inline ::datacatalog::Artifact* GetArtifactResponse::release_artifact() { + // @@protoc_insertion_point(field_release:datacatalog.GetArtifactResponse.artifact) + + ::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::datacatalog::Artifact* GetArtifactResponse::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactResponse.artifact) + return artifact_; +} +inline void GetArtifactResponse::set_allocated_artifact(::datacatalog::Artifact* artifact) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete artifact_; + } + if (artifact) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact, submessage_arena); + } + + } else { + + } + artifact_ = artifact; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactResponse.artifact) +} + +// ------------------------------------------------------------------- + +// CreateArtifactRequest + +// .datacatalog.Artifact artifact = 1; +inline bool CreateArtifactRequest::has_artifact() const { + return this != internal_default_instance() && artifact_ != nullptr; +} +inline void CreateArtifactRequest::clear_artifact() { + if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { + delete artifact_; + } + artifact_ = nullptr; +} +inline const ::datacatalog::Artifact& CreateArtifactRequest::artifact() const { + const ::datacatalog::Artifact* p = artifact_; + // @@protoc_insertion_point(field_get:datacatalog.CreateArtifactRequest.artifact) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Artifact_default_instance_); +} +inline ::datacatalog::Artifact* CreateArtifactRequest::release_artifact() { + // @@protoc_insertion_point(field_release:datacatalog.CreateArtifactRequest.artifact) + + ::datacatalog::Artifact* temp = artifact_; + artifact_ = nullptr; + return temp; +} +inline ::datacatalog::Artifact* CreateArtifactRequest::mutable_artifact() { + + if (artifact_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); + artifact_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.CreateArtifactRequest.artifact) + return artifact_; +} +inline void CreateArtifactRequest::set_allocated_artifact(::datacatalog::Artifact* artifact) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete artifact_; + } + if (artifact) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + artifact = ::google::protobuf::internal::GetOwnedMessage( + message_arena, artifact, submessage_arena); + } + + } else { + + } + artifact_ = artifact; + // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateArtifactRequest.artifact) +} + +// ------------------------------------------------------------------- + +// CreateArtifactResponse + +// ------------------------------------------------------------------- + +// AddTagRequest + +// .datacatalog.Tag tag = 1; +inline bool AddTagRequest::has_tag() const { + return this != internal_default_instance() && tag_ != nullptr; +} +inline void AddTagRequest::clear_tag() { + if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { + delete tag_; + } + tag_ = nullptr; +} +inline const ::datacatalog::Tag& AddTagRequest::tag() const { + const ::datacatalog::Tag* p = tag_; + // @@protoc_insertion_point(field_get:datacatalog.AddTagRequest.tag) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Tag_default_instance_); +} +inline ::datacatalog::Tag* AddTagRequest::release_tag() { + // @@protoc_insertion_point(field_release:datacatalog.AddTagRequest.tag) + + ::datacatalog::Tag* temp = tag_; + tag_ = nullptr; + return temp; +} +inline ::datacatalog::Tag* AddTagRequest::mutable_tag() { + + if (tag_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Tag>(GetArenaNoVirtual()); + tag_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.AddTagRequest.tag) + return tag_; +} +inline void AddTagRequest::set_allocated_tag(::datacatalog::Tag* tag) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete tag_; + } + if (tag) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tag = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tag, submessage_arena); + } + + } else { + + } + tag_ = tag; + // @@protoc_insertion_point(field_set_allocated:datacatalog.AddTagRequest.tag) +} + +// ------------------------------------------------------------------- + +// AddTagResponse + +// ------------------------------------------------------------------- + +// ListArtifactsRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool ListArtifactsRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void ListArtifactsRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& ListArtifactsRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* ListArtifactsRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* ListArtifactsRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.dataset) + return dataset_; +} +inline void ListArtifactsRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.dataset) +} + +// .datacatalog.FilterExpression filter = 2; +inline bool ListArtifactsRequest::has_filter() const { + return this != internal_default_instance() && filter_ != nullptr; +} +inline void ListArtifactsRequest::clear_filter() { + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; +} +inline const ::datacatalog::FilterExpression& ListArtifactsRequest::filter() const { + const ::datacatalog::FilterExpression* p = filter_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.filter) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_FilterExpression_default_instance_); +} +inline ::datacatalog::FilterExpression* ListArtifactsRequest::release_filter() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.filter) + + ::datacatalog::FilterExpression* temp = filter_; + filter_ = nullptr; + return temp; +} +inline ::datacatalog::FilterExpression* ListArtifactsRequest::mutable_filter() { + + if (filter_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); + filter_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.filter) + return filter_; +} +inline void ListArtifactsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete filter_; + } + if (filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filter, submessage_arena); + } + + } else { + + } + filter_ = filter; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.filter) +} + +// .datacatalog.PaginationOptions pagination = 3; +inline bool ListArtifactsRequest::has_pagination() const { + return this != internal_default_instance() && pagination_ != nullptr; +} +inline void ListArtifactsRequest::clear_pagination() { + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; +} +inline const ::datacatalog::PaginationOptions& ListArtifactsRequest::pagination() const { + const ::datacatalog::PaginationOptions* p = pagination_; + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.pagination) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_PaginationOptions_default_instance_); +} +inline ::datacatalog::PaginationOptions* ListArtifactsRequest::release_pagination() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.pagination) + + ::datacatalog::PaginationOptions* temp = pagination_; + pagination_ = nullptr; + return temp; +} +inline ::datacatalog::PaginationOptions* ListArtifactsRequest::mutable_pagination() { + + if (pagination_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); + pagination_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.pagination) + return pagination_; +} +inline void ListArtifactsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete pagination_; + } + if (pagination) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + pagination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pagination, submessage_arena); + } + + } else { + + } + pagination_ = pagination; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.pagination) +} + +// ------------------------------------------------------------------- + +// ListArtifactsResponse + +// repeated .datacatalog.Artifact artifacts = 1; +inline int ListArtifactsResponse::artifacts_size() const { + return artifacts_.size(); +} +inline void ListArtifactsResponse::clear_artifacts() { + artifacts_.Clear(); +} +inline ::datacatalog::Artifact* ListArtifactsResponse::mutable_artifacts(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* +ListArtifactsResponse::mutable_artifacts() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.ListArtifactsResponse.artifacts) + return &artifacts_; +} +inline const ::datacatalog::Artifact& ListArtifactsResponse::artifacts(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Get(index); +} +inline ::datacatalog::Artifact* ListArtifactsResponse::add_artifacts() { + // @@protoc_insertion_point(field_add:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& +ListArtifactsResponse::artifacts() const { + // @@protoc_insertion_point(field_list:datacatalog.ListArtifactsResponse.artifacts) + return artifacts_; +} + +// string next_token = 2; +inline void ListArtifactsResponse::clear_next_token() { + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ListArtifactsResponse::next_token() const { + // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.next_token) + return next_token_.GetNoArena(); +} +inline void ListArtifactsResponse::set_next_token(const ::std::string& value) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ListArtifactsResponse.next_token) +} +#if LANG_CXX11 +inline void ListArtifactsResponse::set_next_token(::std::string&& value) { + + next_token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListArtifactsResponse.next_token) +} +#endif +inline void ListArtifactsResponse::set_next_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ListArtifactsResponse.next_token) +} +inline void ListArtifactsResponse::set_next_token(const char* value, size_t size) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ListArtifactsResponse.next_token) +} +inline ::std::string* ListArtifactsResponse::mutable_next_token() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.next_token) + return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ListArtifactsResponse::release_next_token() { + // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsResponse.next_token) + + return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ListArtifactsResponse::set_allocated_next_token(::std::string* next_token) { + if (next_token != nullptr) { + + } else { + + } + next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsResponse.next_token) +} + +// ------------------------------------------------------------------- + +// ListDatasetsRequest + +// .datacatalog.FilterExpression filter = 1; +inline bool ListDatasetsRequest::has_filter() const { + return this != internal_default_instance() && filter_ != nullptr; +} +inline void ListDatasetsRequest::clear_filter() { + if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { + delete filter_; + } + filter_ = nullptr; +} +inline const ::datacatalog::FilterExpression& ListDatasetsRequest::filter() const { + const ::datacatalog::FilterExpression* p = filter_; + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.filter) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_FilterExpression_default_instance_); +} +inline ::datacatalog::FilterExpression* ListDatasetsRequest::release_filter() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.filter) + + ::datacatalog::FilterExpression* temp = filter_; + filter_ = nullptr; + return temp; +} +inline ::datacatalog::FilterExpression* ListDatasetsRequest::mutable_filter() { + + if (filter_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); + filter_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.filter) + return filter_; +} +inline void ListDatasetsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete filter_; + } + if (filter) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + filter = ::google::protobuf::internal::GetOwnedMessage( + message_arena, filter, submessage_arena); + } + + } else { + + } + filter_ = filter; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.filter) +} + +// .datacatalog.PaginationOptions pagination = 2; +inline bool ListDatasetsRequest::has_pagination() const { + return this != internal_default_instance() && pagination_ != nullptr; +} +inline void ListDatasetsRequest::clear_pagination() { + if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { + delete pagination_; + } + pagination_ = nullptr; +} +inline const ::datacatalog::PaginationOptions& ListDatasetsRequest::pagination() const { + const ::datacatalog::PaginationOptions* p = pagination_; + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.pagination) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_PaginationOptions_default_instance_); +} +inline ::datacatalog::PaginationOptions* ListDatasetsRequest::release_pagination() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.pagination) + + ::datacatalog::PaginationOptions* temp = pagination_; + pagination_ = nullptr; + return temp; +} +inline ::datacatalog::PaginationOptions* ListDatasetsRequest::mutable_pagination() { + + if (pagination_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); + pagination_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.pagination) + return pagination_; +} +inline void ListDatasetsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete pagination_; + } + if (pagination) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + pagination = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pagination, submessage_arena); + } + + } else { + + } + pagination_ = pagination; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.pagination) +} + +// ------------------------------------------------------------------- + +// ListDatasetsResponse + +// repeated .datacatalog.Dataset datasets = 1; +inline int ListDatasetsResponse::datasets_size() const { + return datasets_.size(); +} +inline void ListDatasetsResponse::clear_datasets() { + datasets_.Clear(); +} +inline ::datacatalog::Dataset* ListDatasetsResponse::mutable_datasets(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* +ListDatasetsResponse::mutable_datasets() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.ListDatasetsResponse.datasets) + return &datasets_; +} +inline const ::datacatalog::Dataset& ListDatasetsResponse::datasets(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Get(index); +} +inline ::datacatalog::Dataset* ListDatasetsResponse::add_datasets() { + // @@protoc_insertion_point(field_add:datacatalog.ListDatasetsResponse.datasets) + return datasets_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& +ListDatasetsResponse::datasets() const { + // @@protoc_insertion_point(field_list:datacatalog.ListDatasetsResponse.datasets) + return datasets_; +} + +// string next_token = 2; +inline void ListDatasetsResponse::clear_next_token() { + next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ListDatasetsResponse::next_token() const { + // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.next_token) + return next_token_.GetNoArena(); +} +inline void ListDatasetsResponse::set_next_token(const ::std::string& value) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ListDatasetsResponse.next_token) +} +#if LANG_CXX11 +inline void ListDatasetsResponse::set_next_token(::std::string&& value) { + + next_token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListDatasetsResponse.next_token) +} +#endif +inline void ListDatasetsResponse::set_next_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ListDatasetsResponse.next_token) +} +inline void ListDatasetsResponse::set_next_token(const char* value, size_t size) { + + next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ListDatasetsResponse.next_token) +} +inline ::std::string* ListDatasetsResponse::mutable_next_token() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.next_token) + return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ListDatasetsResponse::release_next_token() { + // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsResponse.next_token) + + return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ListDatasetsResponse::set_allocated_next_token(::std::string* next_token) { + if (next_token != nullptr) { + + } else { + + } + next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsResponse.next_token) +} + +// ------------------------------------------------------------------- + +// UpdateArtifactRequest + +// .datacatalog.DatasetID dataset = 1; +inline bool UpdateArtifactRequest::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void UpdateArtifactRequest::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& UpdateArtifactRequest::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* UpdateArtifactRequest::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* UpdateArtifactRequest::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.dataset) + return dataset_; +} +inline void UpdateArtifactRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.dataset) +} + +// string artifact_id = 2; +inline bool UpdateArtifactRequest::has_artifact_id() const { + return query_handle_case() == kArtifactId; +} +inline void UpdateArtifactRequest::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; +} +inline void UpdateArtifactRequest::clear_artifact_id() { + if (has_artifact_id()) { + query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& UpdateArtifactRequest::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.artifact_id) + if (has_artifact_id()) { + return query_handle_.artifact_id_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void UpdateArtifactRequest::set_artifact_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) +} +#if LANG_CXX11 +inline void UpdateArtifactRequest::set_artifact_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactRequest.artifact_id) +} +#endif +inline void UpdateArtifactRequest::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactRequest.artifact_id) +} +inline void UpdateArtifactRequest::set_artifact_id(const char* value, size_t size) { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactRequest.artifact_id) +} +inline ::std::string* UpdateArtifactRequest::mutable_artifact_id() { + if (!has_artifact_id()) { + clear_query_handle(); + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.artifact_id) + return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UpdateArtifactRequest::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.artifact_id) + if (has_artifact_id()) { + clear_has_query_handle(); + return query_handle_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void UpdateArtifactRequest::set_allocated_artifact_id(::std::string* artifact_id) { + if (has_query_handle()) { + clear_query_handle(); + } + if (artifact_id != nullptr) { + set_has_artifact_id(); + query_handle_.artifact_id_.UnsafeSetDefault(artifact_id); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.artifact_id) +} + +// string tag_name = 3; +inline bool UpdateArtifactRequest::has_tag_name() const { + return query_handle_case() == kTagName; +} +inline void UpdateArtifactRequest::set_has_tag_name() { + _oneof_case_[0] = kTagName; +} +inline void UpdateArtifactRequest::clear_tag_name() { + if (has_tag_name()) { + query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_query_handle(); + } +} +inline const ::std::string& UpdateArtifactRequest::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.tag_name) + if (has_tag_name()) { + return query_handle_.tag_name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void UpdateArtifactRequest::set_tag_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) +} +#if LANG_CXX11 +inline void UpdateArtifactRequest::set_tag_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactRequest.tag_name) +} +#endif +inline void UpdateArtifactRequest::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactRequest.tag_name) +} +inline void UpdateArtifactRequest::set_tag_name(const char* value, size_t size) { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactRequest.tag_name) +} +inline ::std::string* UpdateArtifactRequest::mutable_tag_name() { + if (!has_tag_name()) { + clear_query_handle(); + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.tag_name) + return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UpdateArtifactRequest::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.tag_name) + if (has_tag_name()) { + clear_has_query_handle(); + return query_handle_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void UpdateArtifactRequest::set_allocated_tag_name(::std::string* tag_name) { + if (has_query_handle()) { + clear_query_handle(); + } + if (tag_name != nullptr) { + set_has_tag_name(); + query_handle_.tag_name_.UnsafeSetDefault(tag_name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.tag_name) +} + +// repeated .datacatalog.ArtifactData data = 4; +inline int UpdateArtifactRequest::data_size() const { + return data_.size(); +} +inline void UpdateArtifactRequest::clear_data() { + data_.Clear(); +} +inline ::datacatalog::ArtifactData* UpdateArtifactRequest::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.data) + return data_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* +UpdateArtifactRequest::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.UpdateArtifactRequest.data) + return &data_; +} +inline const ::datacatalog::ArtifactData& UpdateArtifactRequest::data(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.data) + return data_.Get(index); +} +inline ::datacatalog::ArtifactData* UpdateArtifactRequest::add_data() { + // @@protoc_insertion_point(field_add:datacatalog.UpdateArtifactRequest.data) + return data_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& +UpdateArtifactRequest::data() const { + // @@protoc_insertion_point(field_list:datacatalog.UpdateArtifactRequest.data) + return data_; +} + +inline bool UpdateArtifactRequest::has_query_handle() const { + return query_handle_case() != QUERY_HANDLE_NOT_SET; +} +inline void UpdateArtifactRequest::clear_has_query_handle() { + _oneof_case_[0] = QUERY_HANDLE_NOT_SET; +} +inline UpdateArtifactRequest::QueryHandleCase UpdateArtifactRequest::query_handle_case() const { + return UpdateArtifactRequest::QueryHandleCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// UpdateArtifactResponse + +// string artifact_id = 1; +inline void UpdateArtifactResponse::clear_artifact_id() { + artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UpdateArtifactResponse::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactResponse.artifact_id) + return artifact_id_.GetNoArena(); +} +inline void UpdateArtifactResponse::set_artifact_id(const ::std::string& value) { + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactResponse.artifact_id) +} +#if LANG_CXX11 +inline void UpdateArtifactResponse::set_artifact_id(::std::string&& value) { + + artifact_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactResponse.artifact_id) +} +#endif +inline void UpdateArtifactResponse::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactResponse.artifact_id) +} +inline void UpdateArtifactResponse::set_artifact_id(const char* value, size_t size) { + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactResponse.artifact_id) +} +inline ::std::string* UpdateArtifactResponse::mutable_artifact_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactResponse.artifact_id) + return artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UpdateArtifactResponse::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactResponse.artifact_id) + + return artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UpdateArtifactResponse::set_allocated_artifact_id(::std::string* artifact_id) { + if (artifact_id != nullptr) { + + } else { + + } + artifact_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), artifact_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactResponse.artifact_id) +} + +// ------------------------------------------------------------------- + +// ReservationID + +// .datacatalog.DatasetID dataset_id = 1; +inline bool ReservationID::has_dataset_id() const { + return this != internal_default_instance() && dataset_id_ != nullptr; +} +inline void ReservationID::clear_dataset_id() { + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; +} +inline const ::datacatalog::DatasetID& ReservationID::dataset_id() const { + const ::datacatalog::DatasetID* p = dataset_id_; + // @@protoc_insertion_point(field_get:datacatalog.ReservationID.dataset_id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* ReservationID::release_dataset_id() { + // @@protoc_insertion_point(field_release:datacatalog.ReservationID.dataset_id) + + ::datacatalog::DatasetID* temp = dataset_id_; + dataset_id_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* ReservationID::mutable_dataset_id() { + + if (dataset_id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_id_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ReservationID.dataset_id) + return dataset_id_; +} +inline void ReservationID::set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_id_; + } + if (dataset_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset_id, submessage_arena); + } + + } else { + + } + dataset_id_ = dataset_id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReservationID.dataset_id) +} + +// string tag_name = 2; +inline void ReservationID::clear_tag_name() { + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ReservationID::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.ReservationID.tag_name) + return tag_name_.GetNoArena(); +} +inline void ReservationID::set_tag_name(const ::std::string& value) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ReservationID.tag_name) +} +#if LANG_CXX11 +inline void ReservationID::set_tag_name(::std::string&& value) { + + tag_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ReservationID.tag_name) +} +#endif +inline void ReservationID::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ReservationID.tag_name) +} +inline void ReservationID::set_tag_name(const char* value, size_t size) { + + tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ReservationID.tag_name) +} +inline ::std::string* ReservationID::mutable_tag_name() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ReservationID.tag_name) + return tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ReservationID::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.ReservationID.tag_name) + + return tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ReservationID::set_allocated_tag_name(::std::string* tag_name) { + if (tag_name != nullptr) { + + } else { + + } + tag_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag_name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReservationID.tag_name) +} + +// ------------------------------------------------------------------- + +// GetOrExtendReservationRequest + +// .datacatalog.ReservationID reservation_id = 1; +inline bool GetOrExtendReservationRequest::has_reservation_id() const { + return this != internal_default_instance() && reservation_id_ != nullptr; +} +inline void GetOrExtendReservationRequest::clear_reservation_id() { + if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { + delete reservation_id_; + } + reservation_id_ = nullptr; +} +inline const ::datacatalog::ReservationID& GetOrExtendReservationRequest::reservation_id() const { + const ::datacatalog::ReservationID* p = reservation_id_; + // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationRequest.reservation_id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_ReservationID_default_instance_); +} +inline ::datacatalog::ReservationID* GetOrExtendReservationRequest::release_reservation_id() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationRequest.reservation_id) + + ::datacatalog::ReservationID* temp = reservation_id_; + reservation_id_ = nullptr; + return temp; +} +inline ::datacatalog::ReservationID* GetOrExtendReservationRequest::mutable_reservation_id() { + + if (reservation_id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::ReservationID>(GetArenaNoVirtual()); + reservation_id_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationRequest.reservation_id) + return reservation_id_; +} +inline void GetOrExtendReservationRequest::set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reservation_id_; + } + if (reservation_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + reservation_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reservation_id, submessage_arena); + } + + } else { + + } + reservation_id_ = reservation_id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationRequest.reservation_id) +} + +// string owner_id = 2; +inline void GetOrExtendReservationRequest::clear_owner_id() { + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetOrExtendReservationRequest::owner_id() const { + // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationRequest.owner_id) + return owner_id_.GetNoArena(); +} +inline void GetOrExtendReservationRequest::set_owner_id(const ::std::string& value) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.GetOrExtendReservationRequest.owner_id) +} +#if LANG_CXX11 +inline void GetOrExtendReservationRequest::set_owner_id(::std::string&& value) { + + owner_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetOrExtendReservationRequest.owner_id) +} +#endif +inline void GetOrExtendReservationRequest::set_owner_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.GetOrExtendReservationRequest.owner_id) +} +inline void GetOrExtendReservationRequest::set_owner_id(const char* value, size_t size) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.GetOrExtendReservationRequest.owner_id) +} +inline ::std::string* GetOrExtendReservationRequest::mutable_owner_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationRequest.owner_id) + return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetOrExtendReservationRequest::release_owner_id() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationRequest.owner_id) + + return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetOrExtendReservationRequest::set_allocated_owner_id(::std::string* owner_id) { + if (owner_id != nullptr) { + + } else { + + } + owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationRequest.owner_id) +} + +// .google.protobuf.Duration heartbeat_interval = 3; +inline bool GetOrExtendReservationRequest::has_heartbeat_interval() const { + return this != internal_default_instance() && heartbeat_interval_ != nullptr; +} +inline const ::google::protobuf::Duration& GetOrExtendReservationRequest::heartbeat_interval() const { + const ::google::protobuf::Duration* p = heartbeat_interval_; + // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* GetOrExtendReservationRequest::release_heartbeat_interval() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) + + ::google::protobuf::Duration* temp = heartbeat_interval_; + heartbeat_interval_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* GetOrExtendReservationRequest::mutable_heartbeat_interval() { + + if (heartbeat_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + heartbeat_interval_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) + return heartbeat_interval_; +} +inline void GetOrExtendReservationRequest::set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(heartbeat_interval_); + } + if (heartbeat_interval) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(heartbeat_interval)->GetArena(); + if (message_arena != submessage_arena) { + heartbeat_interval = ::google::protobuf::internal::GetOwnedMessage( + message_arena, heartbeat_interval, submessage_arena); + } + + } else { + + } + heartbeat_interval_ = heartbeat_interval; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) +} + +// ------------------------------------------------------------------- + +// Reservation + +// .datacatalog.ReservationID reservation_id = 1; +inline bool Reservation::has_reservation_id() const { + return this != internal_default_instance() && reservation_id_ != nullptr; +} +inline void Reservation::clear_reservation_id() { + if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { + delete reservation_id_; + } + reservation_id_ = nullptr; +} +inline const ::datacatalog::ReservationID& Reservation::reservation_id() const { + const ::datacatalog::ReservationID* p = reservation_id_; + // @@protoc_insertion_point(field_get:datacatalog.Reservation.reservation_id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_ReservationID_default_instance_); +} +inline ::datacatalog::ReservationID* Reservation::release_reservation_id() { + // @@protoc_insertion_point(field_release:datacatalog.Reservation.reservation_id) + + ::datacatalog::ReservationID* temp = reservation_id_; + reservation_id_ = nullptr; + return temp; +} +inline ::datacatalog::ReservationID* Reservation::mutable_reservation_id() { + + if (reservation_id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::ReservationID>(GetArenaNoVirtual()); + reservation_id_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.reservation_id) + return reservation_id_; +} +inline void Reservation::set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reservation_id_; + } + if (reservation_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + reservation_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reservation_id, submessage_arena); + } + + } else { + + } + reservation_id_ = reservation_id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.reservation_id) +} + +// string owner_id = 2; +inline void Reservation::clear_owner_id() { + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Reservation::owner_id() const { + // @@protoc_insertion_point(field_get:datacatalog.Reservation.owner_id) + return owner_id_.GetNoArena(); +} +inline void Reservation::set_owner_id(const ::std::string& value) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Reservation.owner_id) +} +#if LANG_CXX11 +inline void Reservation::set_owner_id(::std::string&& value) { + + owner_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Reservation.owner_id) +} +#endif +inline void Reservation::set_owner_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Reservation.owner_id) +} +inline void Reservation::set_owner_id(const char* value, size_t size) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Reservation.owner_id) +} +inline ::std::string* Reservation::mutable_owner_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.owner_id) + return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Reservation::release_owner_id() { + // @@protoc_insertion_point(field_release:datacatalog.Reservation.owner_id) + + return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Reservation::set_allocated_owner_id(::std::string* owner_id) { + if (owner_id != nullptr) { + + } else { + + } + owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.owner_id) +} + +// .google.protobuf.Duration heartbeat_interval = 3; +inline bool Reservation::has_heartbeat_interval() const { + return this != internal_default_instance() && heartbeat_interval_ != nullptr; +} +inline const ::google::protobuf::Duration& Reservation::heartbeat_interval() const { + const ::google::protobuf::Duration* p = heartbeat_interval_; + // @@protoc_insertion_point(field_get:datacatalog.Reservation.heartbeat_interval) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* Reservation::release_heartbeat_interval() { + // @@protoc_insertion_point(field_release:datacatalog.Reservation.heartbeat_interval) + + ::google::protobuf::Duration* temp = heartbeat_interval_; + heartbeat_interval_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* Reservation::mutable_heartbeat_interval() { + + if (heartbeat_interval_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + heartbeat_interval_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.heartbeat_interval) + return heartbeat_interval_; +} +inline void Reservation::set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(heartbeat_interval_); + } + if (heartbeat_interval) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(heartbeat_interval)->GetArena(); + if (message_arena != submessage_arena) { + heartbeat_interval = ::google::protobuf::internal::GetOwnedMessage( + message_arena, heartbeat_interval, submessage_arena); + } + + } else { + + } + heartbeat_interval_ = heartbeat_interval; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.heartbeat_interval) +} + +// .google.protobuf.Timestamp expires_at = 4; +inline bool Reservation::has_expires_at() const { + return this != internal_default_instance() && expires_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& Reservation::expires_at() const { + const ::google::protobuf::Timestamp* p = expires_at_; + // @@protoc_insertion_point(field_get:datacatalog.Reservation.expires_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Reservation::release_expires_at() { + // @@protoc_insertion_point(field_release:datacatalog.Reservation.expires_at) + + ::google::protobuf::Timestamp* temp = expires_at_; + expires_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* Reservation::mutable_expires_at() { + + if (expires_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + expires_at_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.expires_at) + return expires_at_; +} +inline void Reservation::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); + } + if (expires_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); + if (message_arena != submessage_arena) { + expires_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_at, submessage_arena); + } + + } else { + + } + expires_at_ = expires_at; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.expires_at) +} + +// .datacatalog.Metadata metadata = 6; +inline bool Reservation::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void Reservation::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::datacatalog::Metadata& Reservation::metadata() const { + const ::datacatalog::Metadata* p = metadata_; + // @@protoc_insertion_point(field_get:datacatalog.Reservation.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Metadata_default_instance_); +} +inline ::datacatalog::Metadata* Reservation::release_metadata() { + // @@protoc_insertion_point(field_release:datacatalog.Reservation.metadata) + + ::datacatalog::Metadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::datacatalog::Metadata* Reservation::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.metadata) + return metadata_; +} +inline void Reservation::set_allocated_metadata(::datacatalog::Metadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.metadata) +} + +// ------------------------------------------------------------------- + +// GetOrExtendReservationResponse + +// .datacatalog.Reservation reservation = 1; +inline bool GetOrExtendReservationResponse::has_reservation() const { + return this != internal_default_instance() && reservation_ != nullptr; +} +inline void GetOrExtendReservationResponse::clear_reservation() { + if (GetArenaNoVirtual() == nullptr && reservation_ != nullptr) { + delete reservation_; + } + reservation_ = nullptr; +} +inline const ::datacatalog::Reservation& GetOrExtendReservationResponse::reservation() const { + const ::datacatalog::Reservation* p = reservation_; + // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationResponse.reservation) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Reservation_default_instance_); +} +inline ::datacatalog::Reservation* GetOrExtendReservationResponse::release_reservation() { + // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationResponse.reservation) + + ::datacatalog::Reservation* temp = reservation_; + reservation_ = nullptr; + return temp; +} +inline ::datacatalog::Reservation* GetOrExtendReservationResponse::mutable_reservation() { + + if (reservation_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Reservation>(GetArenaNoVirtual()); + reservation_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationResponse.reservation) + return reservation_; +} +inline void GetOrExtendReservationResponse::set_allocated_reservation(::datacatalog::Reservation* reservation) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reservation_; + } + if (reservation) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + reservation = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reservation, submessage_arena); + } + + } else { + + } + reservation_ = reservation; + // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationResponse.reservation) +} + +// ------------------------------------------------------------------- + +// ReleaseReservationRequest + +// .datacatalog.ReservationID reservation_id = 1; +inline bool ReleaseReservationRequest::has_reservation_id() const { + return this != internal_default_instance() && reservation_id_ != nullptr; +} +inline void ReleaseReservationRequest::clear_reservation_id() { + if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { + delete reservation_id_; + } + reservation_id_ = nullptr; +} +inline const ::datacatalog::ReservationID& ReleaseReservationRequest::reservation_id() const { + const ::datacatalog::ReservationID* p = reservation_id_; + // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationRequest.reservation_id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_ReservationID_default_instance_); +} +inline ::datacatalog::ReservationID* ReleaseReservationRequest::release_reservation_id() { + // @@protoc_insertion_point(field_release:datacatalog.ReleaseReservationRequest.reservation_id) + + ::datacatalog::ReservationID* temp = reservation_id_; + reservation_id_ = nullptr; + return temp; +} +inline ::datacatalog::ReservationID* ReleaseReservationRequest::mutable_reservation_id() { + + if (reservation_id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::ReservationID>(GetArenaNoVirtual()); + reservation_id_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationRequest.reservation_id) + return reservation_id_; +} +inline void ReleaseReservationRequest::set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reservation_id_; + } + if (reservation_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + reservation_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reservation_id, submessage_arena); + } + + } else { + + } + reservation_id_ = reservation_id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReleaseReservationRequest.reservation_id) +} + +// string owner_id = 2; +inline void ReleaseReservationRequest::clear_owner_id() { + owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ReleaseReservationRequest::owner_id() const { + // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationRequest.owner_id) + return owner_id_.GetNoArena(); +} +inline void ReleaseReservationRequest::set_owner_id(const ::std::string& value) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ReleaseReservationRequest.owner_id) +} +#if LANG_CXX11 +inline void ReleaseReservationRequest::set_owner_id(::std::string&& value) { + + owner_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ReleaseReservationRequest.owner_id) +} +#endif +inline void ReleaseReservationRequest::set_owner_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ReleaseReservationRequest.owner_id) +} +inline void ReleaseReservationRequest::set_owner_id(const char* value, size_t size) { + + owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ReleaseReservationRequest.owner_id) +} +inline ::std::string* ReleaseReservationRequest::mutable_owner_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationRequest.owner_id) + return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ReleaseReservationRequest::release_owner_id() { + // @@protoc_insertion_point(field_release:datacatalog.ReleaseReservationRequest.owner_id) + + return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ReleaseReservationRequest::set_allocated_owner_id(::std::string* owner_id) { + if (owner_id != nullptr) { + + } else { + + } + owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ReleaseReservationRequest.owner_id) +} + +// ------------------------------------------------------------------- + +// ReleaseReservationResponse + +// ------------------------------------------------------------------- + +// Dataset + +// .datacatalog.DatasetID id = 1; +inline bool Dataset::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline void Dataset::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +inline const ::datacatalog::DatasetID& Dataset::id() const { + const ::datacatalog::DatasetID* p = id_; + // @@protoc_insertion_point(field_get:datacatalog.Dataset.id) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* Dataset::release_id() { + // @@protoc_insertion_point(field_release:datacatalog.Dataset.id) + + ::datacatalog::DatasetID* temp = id_; + id_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* Dataset::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.id) + return id_; +} +inline void Dataset::set_allocated_id(::datacatalog::DatasetID* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete id_; + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Dataset.id) +} + +// .datacatalog.Metadata metadata = 2; +inline bool Dataset::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void Dataset::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::datacatalog::Metadata& Dataset::metadata() const { + const ::datacatalog::Metadata* p = metadata_; + // @@protoc_insertion_point(field_get:datacatalog.Dataset.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Metadata_default_instance_); +} +inline ::datacatalog::Metadata* Dataset::release_metadata() { + // @@protoc_insertion_point(field_release:datacatalog.Dataset.metadata) + + ::datacatalog::Metadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::datacatalog::Metadata* Dataset::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.metadata) + return metadata_; +} +inline void Dataset::set_allocated_metadata(::datacatalog::Metadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Dataset.metadata) +} + +// repeated string partitionKeys = 3; +inline int Dataset::partitionkeys_size() const { + return partitionkeys_.size(); +} +inline void Dataset::clear_partitionkeys() { + partitionkeys_.Clear(); +} +inline const ::std::string& Dataset::partitionkeys(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Dataset.partitionKeys) + return partitionkeys_.Get(index); +} +inline ::std::string* Dataset::mutable_partitionkeys(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.partitionKeys) + return partitionkeys_.Mutable(index); +} +inline void Dataset::set_partitionkeys(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.Dataset.partitionKeys) + partitionkeys_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Dataset::set_partitionkeys(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.Dataset.partitionKeys) + partitionkeys_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Dataset::set_partitionkeys(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + partitionkeys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:datacatalog.Dataset.partitionKeys) +} +inline void Dataset::set_partitionkeys(int index, const char* value, size_t size) { + partitionkeys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Dataset.partitionKeys) +} +inline ::std::string* Dataset::add_partitionkeys() { + // @@protoc_insertion_point(field_add_mutable:datacatalog.Dataset.partitionKeys) + return partitionkeys_.Add(); +} +inline void Dataset::add_partitionkeys(const ::std::string& value) { + partitionkeys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:datacatalog.Dataset.partitionKeys) +} +#if LANG_CXX11 +inline void Dataset::add_partitionkeys(::std::string&& value) { + partitionkeys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:datacatalog.Dataset.partitionKeys) +} +#endif +inline void Dataset::add_partitionkeys(const char* value) { + GOOGLE_DCHECK(value != nullptr); + partitionkeys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:datacatalog.Dataset.partitionKeys) +} +inline void Dataset::add_partitionkeys(const char* value, size_t size) { + partitionkeys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:datacatalog.Dataset.partitionKeys) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +Dataset::partitionkeys() const { + // @@protoc_insertion_point(field_list:datacatalog.Dataset.partitionKeys) + return partitionkeys_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +Dataset::mutable_partitionkeys() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Dataset.partitionKeys) + return &partitionkeys_; +} + +// ------------------------------------------------------------------- + +// Partition + +// string key = 1; +inline void Partition::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Partition::key() const { + // @@protoc_insertion_point(field_get:datacatalog.Partition.key) + return key_.GetNoArena(); +} +inline void Partition::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Partition.key) +} +#if LANG_CXX11 +inline void Partition::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Partition.key) +} +#endif +inline void Partition::set_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Partition.key) +} +inline void Partition::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Partition.key) +} +inline ::std::string* Partition::mutable_key() { + + // @@protoc_insertion_point(field_mutable:datacatalog.Partition.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Partition::release_key() { + // @@protoc_insertion_point(field_release:datacatalog.Partition.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Partition::set_allocated_key(::std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Partition.key) +} + +// string value = 2; +inline void Partition::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Partition::value() const { + // @@protoc_insertion_point(field_get:datacatalog.Partition.value) + return value_.GetNoArena(); +} +inline void Partition::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Partition.value) +} +#if LANG_CXX11 +inline void Partition::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Partition.value) +} +#endif +inline void Partition::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Partition.value) +} +inline void Partition::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Partition.value) +} +inline ::std::string* Partition::mutable_value() { + + // @@protoc_insertion_point(field_mutable:datacatalog.Partition.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Partition::release_value() { + // @@protoc_insertion_point(field_release:datacatalog.Partition.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Partition::set_allocated_value(::std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Partition.value) +} + +// ------------------------------------------------------------------- + +// DatasetID + +// string project = 1; +inline void DatasetID::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DatasetID::project() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.project) + return project_.GetNoArena(); +} +inline void DatasetID::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.project) +} +#if LANG_CXX11 +inline void DatasetID::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.project) +} +#endif +inline void DatasetID::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.project) +} +inline void DatasetID::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.project) +} +inline ::std::string* DatasetID::mutable_project() { + + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetID::release_project() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DatasetID::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.project) +} + +// string name = 2; +inline void DatasetID::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DatasetID::name() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.name) + return name_.GetNoArena(); +} +inline void DatasetID::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.name) +} +#if LANG_CXX11 +inline void DatasetID::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.name) +} +#endif +inline void DatasetID::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.name) +} +inline void DatasetID::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.name) +} +inline ::std::string* DatasetID::mutable_name() { + + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetID::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DatasetID::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.name) +} + +// string domain = 3; +inline void DatasetID::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DatasetID::domain() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.domain) + return domain_.GetNoArena(); +} +inline void DatasetID::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.domain) +} +#if LANG_CXX11 +inline void DatasetID::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.domain) +} +#endif +inline void DatasetID::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.domain) +} +inline void DatasetID::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.domain) +} +inline ::std::string* DatasetID::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetID::release_domain() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DatasetID::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.domain) +} + +// string version = 4; +inline void DatasetID::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DatasetID::version() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.version) + return version_.GetNoArena(); +} +inline void DatasetID::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.version) +} +#if LANG_CXX11 +inline void DatasetID::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.version) +} +#endif +inline void DatasetID::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.version) +} +inline void DatasetID::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.version) +} +inline ::std::string* DatasetID::mutable_version() { + + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetID::release_version() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DatasetID::set_allocated_version(::std::string* version) { + if (version != nullptr) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.version) +} + +// string UUID = 5; +inline void DatasetID::clear_uuid() { + uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DatasetID::uuid() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetID.UUID) + return uuid_.GetNoArena(); +} +inline void DatasetID::set_uuid(const ::std::string& value) { + + uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetID.UUID) +} +#if LANG_CXX11 +inline void DatasetID::set_uuid(::std::string&& value) { + + uuid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.UUID) +} +#endif +inline void DatasetID::set_uuid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.UUID) +} +inline void DatasetID::set_uuid(const char* value, size_t size) { + + uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.UUID) +} +inline ::std::string* DatasetID::mutable_uuid() { + + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.UUID) + return uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetID::release_uuid() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetID.UUID) + + return uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DatasetID::set_allocated_uuid(::std::string* uuid) { + if (uuid != nullptr) { + + } else { + + } + uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uuid); + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.UUID) +} + +// ------------------------------------------------------------------- + +// Artifact + +// string id = 1; +inline void Artifact::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Artifact::id() const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.id) + return id_.GetNoArena(); +} +inline void Artifact::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Artifact.id) +} +#if LANG_CXX11 +inline void Artifact::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Artifact.id) +} +#endif +inline void Artifact::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Artifact.id) +} +inline void Artifact::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Artifact.id) +} +inline ::std::string* Artifact::mutable_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Artifact::release_id() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Artifact::set_allocated_id(::std::string* id) { + if (id != nullptr) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.id) +} + +// .datacatalog.DatasetID dataset = 2; +inline bool Artifact::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void Artifact::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& Artifact::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.Artifact.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* Artifact::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* Artifact::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.dataset) + return dataset_; +} +inline void Artifact::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.dataset) +} + +// repeated .datacatalog.ArtifactData data = 3; +inline int Artifact::data_size() const { + return data_.size(); +} +inline void Artifact::clear_data() { + data_.Clear(); +} +inline ::datacatalog::ArtifactData* Artifact::mutable_data(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.data) + return data_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* +Artifact::mutable_data() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.data) + return &data_; +} +inline const ::datacatalog::ArtifactData& Artifact::data(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.data) + return data_.Get(index); +} +inline ::datacatalog::ArtifactData* Artifact::add_data() { + // @@protoc_insertion_point(field_add:datacatalog.Artifact.data) + return data_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& +Artifact::data() const { + // @@protoc_insertion_point(field_list:datacatalog.Artifact.data) + return data_; +} + +// .datacatalog.Metadata metadata = 4; +inline bool Artifact::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void Artifact::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::datacatalog::Metadata& Artifact::metadata() const { + const ::datacatalog::Metadata* p = metadata_; + // @@protoc_insertion_point(field_get:datacatalog.Artifact.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_Metadata_default_instance_); +} +inline ::datacatalog::Metadata* Artifact::release_metadata() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.metadata) + + ::datacatalog::Metadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::datacatalog::Metadata* Artifact::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.metadata) + return metadata_; +} +inline void Artifact::set_allocated_metadata(::datacatalog::Metadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.metadata) +} + +// repeated .datacatalog.Partition partitions = 5; +inline int Artifact::partitions_size() const { + return partitions_.size(); +} +inline void Artifact::clear_partitions() { + partitions_.Clear(); +} +inline ::datacatalog::Partition* Artifact::mutable_partitions(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.partitions) + return partitions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* +Artifact::mutable_partitions() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.partitions) + return &partitions_; +} +inline const ::datacatalog::Partition& Artifact::partitions(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.partitions) + return partitions_.Get(index); +} +inline ::datacatalog::Partition* Artifact::add_partitions() { + // @@protoc_insertion_point(field_add:datacatalog.Artifact.partitions) + return partitions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& +Artifact::partitions() const { + // @@protoc_insertion_point(field_list:datacatalog.Artifact.partitions) + return partitions_; +} + +// repeated .datacatalog.Tag tags = 6; +inline int Artifact::tags_size() const { + return tags_.size(); +} +inline void Artifact::clear_tags() { + tags_.Clear(); +} +inline ::datacatalog::Tag* Artifact::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.tags) + return tags_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* +Artifact::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.tags) + return &tags_; +} +inline const ::datacatalog::Tag& Artifact::tags(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.Artifact.tags) + return tags_.Get(index); +} +inline ::datacatalog::Tag* Artifact::add_tags() { + // @@protoc_insertion_point(field_add:datacatalog.Artifact.tags) + return tags_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& +Artifact::tags() const { + // @@protoc_insertion_point(field_list:datacatalog.Artifact.tags) + return tags_; +} + +// .google.protobuf.Timestamp created_at = 7; +inline bool Artifact::has_created_at() const { + return this != internal_default_instance() && created_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& Artifact::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:datacatalog.Artifact.created_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Artifact::release_created_at() { + // @@protoc_insertion_point(field_release:datacatalog.Artifact.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* Artifact::mutable_created_at() { + + if (created_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + created_at_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.created_at) + return created_at_; +} +inline void Artifact::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.created_at) +} + +// ------------------------------------------------------------------- + +// ArtifactData + +// string name = 1; +inline void ArtifactData::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ArtifactData::name() const { + // @@protoc_insertion_point(field_get:datacatalog.ArtifactData.name) + return name_.GetNoArena(); +} +inline void ArtifactData::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ArtifactData.name) +} +#if LANG_CXX11 +inline void ArtifactData::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ArtifactData.name) +} +#endif +inline void ArtifactData::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ArtifactData.name) +} +inline void ArtifactData::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ArtifactData.name) +} +inline ::std::string* ArtifactData::mutable_name() { + + // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactData.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ArtifactData::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.ArtifactData.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ArtifactData::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactData.name) +} + +// .flyteidl.core.Literal value = 2; +inline bool ArtifactData::has_value() const { + return this != internal_default_instance() && value_ != nullptr; +} +inline const ::flyteidl::core::Literal& ArtifactData::value() const { + const ::flyteidl::core::Literal* p = value_; + // @@protoc_insertion_point(field_get:datacatalog.ArtifactData.value) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* ArtifactData::release_value() { + // @@protoc_insertion_point(field_release:datacatalog.ArtifactData.value) + + ::flyteidl::core::Literal* temp = value_; + value_ = nullptr; + return temp; +} +inline ::flyteidl::core::Literal* ArtifactData::mutable_value() { + + if (value_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); + value_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactData.value) + return value_; +} +inline void ArtifactData::set_allocated_value(::flyteidl::core::Literal* value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); + } + if (value) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, value, submessage_arena); + } + + } else { + + } + value_ = value; + // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactData.value) +} + +// ------------------------------------------------------------------- + +// Tag + +// string name = 1; +inline void Tag::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Tag::name() const { + // @@protoc_insertion_point(field_get:datacatalog.Tag.name) + return name_.GetNoArena(); +} +inline void Tag::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Tag.name) +} +#if LANG_CXX11 +inline void Tag::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Tag.name) +} +#endif +inline void Tag::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Tag.name) +} +inline void Tag::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Tag.name) +} +inline ::std::string* Tag::mutable_name() { + + // @@protoc_insertion_point(field_mutable:datacatalog.Tag.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Tag::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.Tag.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Tag::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.name) +} + +// string artifact_id = 2; +inline void Tag::clear_artifact_id() { + artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Tag::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.Tag.artifact_id) + return artifact_id_.GetNoArena(); +} +inline void Tag::set_artifact_id(const ::std::string& value) { + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.Tag.artifact_id) +} +#if LANG_CXX11 +inline void Tag::set_artifact_id(::std::string&& value) { + + artifact_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.Tag.artifact_id) +} +#endif +inline void Tag::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.Tag.artifact_id) +} +inline void Tag::set_artifact_id(const char* value, size_t size) { + + artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.Tag.artifact_id) +} +inline ::std::string* Tag::mutable_artifact_id() { + + // @@protoc_insertion_point(field_mutable:datacatalog.Tag.artifact_id) + return artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Tag::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.Tag.artifact_id) + + return artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Tag::set_allocated_artifact_id(::std::string* artifact_id) { + if (artifact_id != nullptr) { + + } else { + + } + artifact_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), artifact_id); + // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.artifact_id) +} + +// .datacatalog.DatasetID dataset = 3; +inline bool Tag::has_dataset() const { + return this != internal_default_instance() && dataset_ != nullptr; +} +inline void Tag::clear_dataset() { + if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { + delete dataset_; + } + dataset_ = nullptr; +} +inline const ::datacatalog::DatasetID& Tag::dataset() const { + const ::datacatalog::DatasetID* p = dataset_; + // @@protoc_insertion_point(field_get:datacatalog.Tag.dataset) + return p != nullptr ? *p : *reinterpret_cast( + &::datacatalog::_DatasetID_default_instance_); +} +inline ::datacatalog::DatasetID* Tag::release_dataset() { + // @@protoc_insertion_point(field_release:datacatalog.Tag.dataset) + + ::datacatalog::DatasetID* temp = dataset_; + dataset_ = nullptr; + return temp; +} +inline ::datacatalog::DatasetID* Tag::mutable_dataset() { + + if (dataset_ == nullptr) { + auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); + dataset_ = p; + } + // @@protoc_insertion_point(field_mutable:datacatalog.Tag.dataset) + return dataset_; +} +inline void Tag::set_allocated_dataset(::datacatalog::DatasetID* dataset) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dataset_; + } + if (dataset) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dataset = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dataset, submessage_arena); + } + + } else { + + } + dataset_ = dataset; + // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.dataset) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Metadata + +// map key_map = 1; +inline int Metadata::key_map_size() const { + return key_map_.size(); +} +inline void Metadata::clear_key_map() { + key_map_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +Metadata::key_map() const { + // @@protoc_insertion_point(field_map:datacatalog.Metadata.key_map) + return key_map_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +Metadata::mutable_key_map() { + // @@protoc_insertion_point(field_mutable_map:datacatalog.Metadata.key_map) + return key_map_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// FilterExpression + +// repeated .datacatalog.SinglePropertyFilter filters = 1; +inline int FilterExpression::filters_size() const { + return filters_.size(); +} +inline void FilterExpression::clear_filters() { + filters_.Clear(); +} +inline ::datacatalog::SinglePropertyFilter* FilterExpression::mutable_filters(int index) { + // @@protoc_insertion_point(field_mutable:datacatalog.FilterExpression.filters) + return filters_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* +FilterExpression::mutable_filters() { + // @@protoc_insertion_point(field_mutable_list:datacatalog.FilterExpression.filters) + return &filters_; +} +inline const ::datacatalog::SinglePropertyFilter& FilterExpression::filters(int index) const { + // @@protoc_insertion_point(field_get:datacatalog.FilterExpression.filters) + return filters_.Get(index); +} +inline ::datacatalog::SinglePropertyFilter* FilterExpression::add_filters() { + // @@protoc_insertion_point(field_add:datacatalog.FilterExpression.filters) + return filters_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& +FilterExpression::filters() const { + // @@protoc_insertion_point(field_list:datacatalog.FilterExpression.filters) + return filters_; +} + +// ------------------------------------------------------------------- + +// SinglePropertyFilter + +// .datacatalog.TagPropertyFilter tag_filter = 1; +inline bool SinglePropertyFilter::has_tag_filter() const { + return property_filter_case() == kTagFilter; +} +inline void SinglePropertyFilter::set_has_tag_filter() { + _oneof_case_[0] = kTagFilter; +} +inline void SinglePropertyFilter::clear_tag_filter() { + if (has_tag_filter()) { + delete property_filter_.tag_filter_; + clear_has_property_filter(); + } +} +inline ::datacatalog::TagPropertyFilter* SinglePropertyFilter::release_tag_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.tag_filter) + if (has_tag_filter()) { + clear_has_property_filter(); + ::datacatalog::TagPropertyFilter* temp = property_filter_.tag_filter_; + property_filter_.tag_filter_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::datacatalog::TagPropertyFilter& SinglePropertyFilter::tag_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.tag_filter) + return has_tag_filter() + ? *property_filter_.tag_filter_ + : *reinterpret_cast< ::datacatalog::TagPropertyFilter*>(&::datacatalog::_TagPropertyFilter_default_instance_); +} +inline ::datacatalog::TagPropertyFilter* SinglePropertyFilter::mutable_tag_filter() { + if (!has_tag_filter()) { + clear_property_filter(); + set_has_tag_filter(); + property_filter_.tag_filter_ = CreateMaybeMessage< ::datacatalog::TagPropertyFilter >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.tag_filter) + return property_filter_.tag_filter_; +} + +// .datacatalog.PartitionPropertyFilter partition_filter = 2; +inline bool SinglePropertyFilter::has_partition_filter() const { + return property_filter_case() == kPartitionFilter; +} +inline void SinglePropertyFilter::set_has_partition_filter() { + _oneof_case_[0] = kPartitionFilter; +} +inline void SinglePropertyFilter::clear_partition_filter() { + if (has_partition_filter()) { + delete property_filter_.partition_filter_; + clear_has_property_filter(); + } +} +inline ::datacatalog::PartitionPropertyFilter* SinglePropertyFilter::release_partition_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.partition_filter) + if (has_partition_filter()) { + clear_has_property_filter(); + ::datacatalog::PartitionPropertyFilter* temp = property_filter_.partition_filter_; + property_filter_.partition_filter_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::datacatalog::PartitionPropertyFilter& SinglePropertyFilter::partition_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.partition_filter) + return has_partition_filter() + ? *property_filter_.partition_filter_ + : *reinterpret_cast< ::datacatalog::PartitionPropertyFilter*>(&::datacatalog::_PartitionPropertyFilter_default_instance_); +} +inline ::datacatalog::PartitionPropertyFilter* SinglePropertyFilter::mutable_partition_filter() { + if (!has_partition_filter()) { + clear_property_filter(); + set_has_partition_filter(); + property_filter_.partition_filter_ = CreateMaybeMessage< ::datacatalog::PartitionPropertyFilter >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.partition_filter) + return property_filter_.partition_filter_; +} + +// .datacatalog.ArtifactPropertyFilter artifact_filter = 3; +inline bool SinglePropertyFilter::has_artifact_filter() const { + return property_filter_case() == kArtifactFilter; +} +inline void SinglePropertyFilter::set_has_artifact_filter() { + _oneof_case_[0] = kArtifactFilter; +} +inline void SinglePropertyFilter::clear_artifact_filter() { + if (has_artifact_filter()) { + delete property_filter_.artifact_filter_; + clear_has_property_filter(); + } +} +inline ::datacatalog::ArtifactPropertyFilter* SinglePropertyFilter::release_artifact_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.artifact_filter) + if (has_artifact_filter()) { + clear_has_property_filter(); + ::datacatalog::ArtifactPropertyFilter* temp = property_filter_.artifact_filter_; + property_filter_.artifact_filter_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::datacatalog::ArtifactPropertyFilter& SinglePropertyFilter::artifact_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.artifact_filter) + return has_artifact_filter() + ? *property_filter_.artifact_filter_ + : *reinterpret_cast< ::datacatalog::ArtifactPropertyFilter*>(&::datacatalog::_ArtifactPropertyFilter_default_instance_); +} +inline ::datacatalog::ArtifactPropertyFilter* SinglePropertyFilter::mutable_artifact_filter() { + if (!has_artifact_filter()) { + clear_property_filter(); + set_has_artifact_filter(); + property_filter_.artifact_filter_ = CreateMaybeMessage< ::datacatalog::ArtifactPropertyFilter >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.artifact_filter) + return property_filter_.artifact_filter_; +} + +// .datacatalog.DatasetPropertyFilter dataset_filter = 4; +inline bool SinglePropertyFilter::has_dataset_filter() const { + return property_filter_case() == kDatasetFilter; +} +inline void SinglePropertyFilter::set_has_dataset_filter() { + _oneof_case_[0] = kDatasetFilter; +} +inline void SinglePropertyFilter::clear_dataset_filter() { + if (has_dataset_filter()) { + delete property_filter_.dataset_filter_; + clear_has_property_filter(); + } +} +inline ::datacatalog::DatasetPropertyFilter* SinglePropertyFilter::release_dataset_filter() { + // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.dataset_filter) + if (has_dataset_filter()) { + clear_has_property_filter(); + ::datacatalog::DatasetPropertyFilter* temp = property_filter_.dataset_filter_; + property_filter_.dataset_filter_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::datacatalog::DatasetPropertyFilter& SinglePropertyFilter::dataset_filter() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.dataset_filter) + return has_dataset_filter() + ? *property_filter_.dataset_filter_ + : *reinterpret_cast< ::datacatalog::DatasetPropertyFilter*>(&::datacatalog::_DatasetPropertyFilter_default_instance_); +} +inline ::datacatalog::DatasetPropertyFilter* SinglePropertyFilter::mutable_dataset_filter() { + if (!has_dataset_filter()) { + clear_property_filter(); + set_has_dataset_filter(); + property_filter_.dataset_filter_ = CreateMaybeMessage< ::datacatalog::DatasetPropertyFilter >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.dataset_filter) + return property_filter_.dataset_filter_; +} + +// .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; +inline void SinglePropertyFilter::clear_operator_() { + operator__ = 0; +} +inline ::datacatalog::SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::operator_() const { + // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.operator) + return static_cast< ::datacatalog::SinglePropertyFilter_ComparisonOperator >(operator__); +} +inline void SinglePropertyFilter::set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator value) { + + operator__ = value; + // @@protoc_insertion_point(field_set:datacatalog.SinglePropertyFilter.operator) +} + +inline bool SinglePropertyFilter::has_property_filter() const { + return property_filter_case() != PROPERTY_FILTER_NOT_SET; +} +inline void SinglePropertyFilter::clear_has_property_filter() { + _oneof_case_[0] = PROPERTY_FILTER_NOT_SET; +} +inline SinglePropertyFilter::PropertyFilterCase SinglePropertyFilter::property_filter_case() const { + return SinglePropertyFilter::PropertyFilterCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ArtifactPropertyFilter + +// string artifact_id = 1; +inline bool ArtifactPropertyFilter::has_artifact_id() const { + return property_case() == kArtifactId; +} +inline void ArtifactPropertyFilter::set_has_artifact_id() { + _oneof_case_[0] = kArtifactId; +} +inline void ArtifactPropertyFilter::clear_artifact_id() { + if (has_artifact_id()) { + property_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& ArtifactPropertyFilter::artifact_id() const { + // @@protoc_insertion_point(field_get:datacatalog.ArtifactPropertyFilter.artifact_id) + if (has_artifact_id()) { + return property_.artifact_id_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void ArtifactPropertyFilter::set_artifact_id(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) +} +#if LANG_CXX11 +inline void ArtifactPropertyFilter::set_artifact_id(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.ArtifactPropertyFilter.artifact_id) +} +#endif +inline void ArtifactPropertyFilter::set_artifact_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.ArtifactPropertyFilter.artifact_id) +} +inline void ArtifactPropertyFilter::set_artifact_id(const char* value, size_t size) { + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.ArtifactPropertyFilter.artifact_id) +} +inline ::std::string* ArtifactPropertyFilter::mutable_artifact_id() { + if (!has_artifact_id()) { + clear_property(); + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactPropertyFilter.artifact_id) + return property_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ArtifactPropertyFilter::release_artifact_id() { + // @@protoc_insertion_point(field_release:datacatalog.ArtifactPropertyFilter.artifact_id) + if (has_artifact_id()) { + clear_has_property(); + return property_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void ArtifactPropertyFilter::set_allocated_artifact_id(::std::string* artifact_id) { + if (has_property()) { + clear_property(); + } + if (artifact_id != nullptr) { + set_has_artifact_id(); + property_.artifact_id_.UnsafeSetDefault(artifact_id); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactPropertyFilter.artifact_id) +} + +inline bool ArtifactPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; +} +inline void ArtifactPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; +} +inline ArtifactPropertyFilter::PropertyCase ArtifactPropertyFilter::property_case() const { + return ArtifactPropertyFilter::PropertyCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// TagPropertyFilter + +// string tag_name = 1; +inline bool TagPropertyFilter::has_tag_name() const { + return property_case() == kTagName; +} +inline void TagPropertyFilter::set_has_tag_name() { + _oneof_case_[0] = kTagName; +} +inline void TagPropertyFilter::clear_tag_name() { + if (has_tag_name()) { + property_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& TagPropertyFilter::tag_name() const { + // @@protoc_insertion_point(field_get:datacatalog.TagPropertyFilter.tag_name) + if (has_tag_name()) { + return property_.tag_name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void TagPropertyFilter::set_tag_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) +} +#if LANG_CXX11 +inline void TagPropertyFilter::set_tag_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.TagPropertyFilter.tag_name) +} +#endif +inline void TagPropertyFilter::set_tag_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.TagPropertyFilter.tag_name) +} +inline void TagPropertyFilter::set_tag_name(const char* value, size_t size) { + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.TagPropertyFilter.tag_name) +} +inline ::std::string* TagPropertyFilter::mutable_tag_name() { + if (!has_tag_name()) { + clear_property(); + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.TagPropertyFilter.tag_name) + return property_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TagPropertyFilter::release_tag_name() { + // @@protoc_insertion_point(field_release:datacatalog.TagPropertyFilter.tag_name) + if (has_tag_name()) { + clear_has_property(); + return property_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void TagPropertyFilter::set_allocated_tag_name(::std::string* tag_name) { + if (has_property()) { + clear_property(); + } + if (tag_name != nullptr) { + set_has_tag_name(); + property_.tag_name_.UnsafeSetDefault(tag_name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.TagPropertyFilter.tag_name) +} + +inline bool TagPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; +} +inline void TagPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; +} +inline TagPropertyFilter::PropertyCase TagPropertyFilter::property_case() const { + return TagPropertyFilter::PropertyCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// PartitionPropertyFilter + +// .datacatalog.KeyValuePair key_val = 1; +inline bool PartitionPropertyFilter::has_key_val() const { + return property_case() == kKeyVal; +} +inline void PartitionPropertyFilter::set_has_key_val() { + _oneof_case_[0] = kKeyVal; +} +inline void PartitionPropertyFilter::clear_key_val() { + if (has_key_val()) { + delete property_.key_val_; + clear_has_property(); + } +} +inline ::datacatalog::KeyValuePair* PartitionPropertyFilter::release_key_val() { + // @@protoc_insertion_point(field_release:datacatalog.PartitionPropertyFilter.key_val) + if (has_key_val()) { + clear_has_property(); + ::datacatalog::KeyValuePair* temp = property_.key_val_; + property_.key_val_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::datacatalog::KeyValuePair& PartitionPropertyFilter::key_val() const { + // @@protoc_insertion_point(field_get:datacatalog.PartitionPropertyFilter.key_val) + return has_key_val() + ? *property_.key_val_ + : *reinterpret_cast< ::datacatalog::KeyValuePair*>(&::datacatalog::_KeyValuePair_default_instance_); +} +inline ::datacatalog::KeyValuePair* PartitionPropertyFilter::mutable_key_val() { + if (!has_key_val()) { + clear_property(); + set_has_key_val(); + property_.key_val_ = CreateMaybeMessage< ::datacatalog::KeyValuePair >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.PartitionPropertyFilter.key_val) + return property_.key_val_; +} + +inline bool PartitionPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; +} +inline void PartitionPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; +} +inline PartitionPropertyFilter::PropertyCase PartitionPropertyFilter::property_case() const { + return PartitionPropertyFilter::PropertyCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// KeyValuePair + +// string key = 1; +inline void KeyValuePair::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& KeyValuePair::key() const { + // @@protoc_insertion_point(field_get:datacatalog.KeyValuePair.key) + return key_.GetNoArena(); +} +inline void KeyValuePair::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.KeyValuePair.key) +} +#if LANG_CXX11 +inline void KeyValuePair::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.KeyValuePair.key) +} +#endif +inline void KeyValuePair::set_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.KeyValuePair.key) +} +inline void KeyValuePair::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.KeyValuePair.key) +} +inline ::std::string* KeyValuePair::mutable_key() { + + // @@protoc_insertion_point(field_mutable:datacatalog.KeyValuePair.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_key() { + // @@protoc_insertion_point(field_release:datacatalog.KeyValuePair.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void KeyValuePair::set_allocated_key(::std::string* key) { + if (key != nullptr) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:datacatalog.KeyValuePair.key) +} + +// string value = 2; +inline void KeyValuePair::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& KeyValuePair::value() const { + // @@protoc_insertion_point(field_get:datacatalog.KeyValuePair.value) + return value_.GetNoArena(); +} +inline void KeyValuePair::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.KeyValuePair.value) +} +#if LANG_CXX11 +inline void KeyValuePair::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.KeyValuePair.value) +} +#endif +inline void KeyValuePair::set_value(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.KeyValuePair.value) +} +inline void KeyValuePair::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.KeyValuePair.value) +} +inline ::std::string* KeyValuePair::mutable_value() { + + // @@protoc_insertion_point(field_mutable:datacatalog.KeyValuePair.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_value() { + // @@protoc_insertion_point(field_release:datacatalog.KeyValuePair.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void KeyValuePair::set_allocated_value(::std::string* value) { + if (value != nullptr) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:datacatalog.KeyValuePair.value) +} + +// ------------------------------------------------------------------- + +// DatasetPropertyFilter + +// string project = 1; +inline bool DatasetPropertyFilter::has_project() const { + return property_case() == kProject; +} +inline void DatasetPropertyFilter::set_has_project() { + _oneof_case_[0] = kProject; +} +inline void DatasetPropertyFilter::clear_project() { + if (has_project()) { + property_.project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& DatasetPropertyFilter::project() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.project) + if (has_project()) { + return property_.project_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void DatasetPropertyFilter::set_project(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) +} +#if LANG_CXX11 +inline void DatasetPropertyFilter::set_project(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.project) +} +#endif +inline void DatasetPropertyFilter::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.project) +} +inline void DatasetPropertyFilter::set_project(const char* value, size_t size) { + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.project) +} +inline ::std::string* DatasetPropertyFilter::mutable_project() { + if (!has_project()) { + clear_property(); + set_has_project(); + property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.project) + return property_.project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_project() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.project) + if (has_project()) { + clear_has_property(); + return property_.project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void DatasetPropertyFilter::set_allocated_project(::std::string* project) { + if (has_property()) { + clear_property(); + } + if (project != nullptr) { + set_has_project(); + property_.project_.UnsafeSetDefault(project); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.project) +} + +// string name = 2; +inline bool DatasetPropertyFilter::has_name() const { + return property_case() == kName; +} +inline void DatasetPropertyFilter::set_has_name() { + _oneof_case_[0] = kName; +} +inline void DatasetPropertyFilter::clear_name() { + if (has_name()) { + property_.name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& DatasetPropertyFilter::name() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.name) + if (has_name()) { + return property_.name_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void DatasetPropertyFilter::set_name(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) +} +#if LANG_CXX11 +inline void DatasetPropertyFilter::set_name(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.name) +} +#endif +inline void DatasetPropertyFilter::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.name) +} +inline void DatasetPropertyFilter::set_name(const char* value, size_t size) { + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.name) +} +inline ::std::string* DatasetPropertyFilter::mutable_name() { + if (!has_name()) { + clear_property(); + set_has_name(); + property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.name) + return property_.name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_name() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.name) + if (has_name()) { + clear_has_property(); + return property_.name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void DatasetPropertyFilter::set_allocated_name(::std::string* name) { + if (has_property()) { + clear_property(); + } + if (name != nullptr) { + set_has_name(); + property_.name_.UnsafeSetDefault(name); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.name) +} + +// string domain = 3; +inline bool DatasetPropertyFilter::has_domain() const { + return property_case() == kDomain; +} +inline void DatasetPropertyFilter::set_has_domain() { + _oneof_case_[0] = kDomain; +} +inline void DatasetPropertyFilter::clear_domain() { + if (has_domain()) { + property_.domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& DatasetPropertyFilter::domain() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.domain) + if (has_domain()) { + return property_.domain_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void DatasetPropertyFilter::set_domain(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) +} +#if LANG_CXX11 +inline void DatasetPropertyFilter::set_domain(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.domain) +} +#endif +inline void DatasetPropertyFilter::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.domain) +} +inline void DatasetPropertyFilter::set_domain(const char* value, size_t size) { + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.domain) +} +inline ::std::string* DatasetPropertyFilter::mutable_domain() { + if (!has_domain()) { + clear_property(); + set_has_domain(); + property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.domain) + return property_.domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_domain() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.domain) + if (has_domain()) { + clear_has_property(); + return property_.domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void DatasetPropertyFilter::set_allocated_domain(::std::string* domain) { + if (has_property()) { + clear_property(); + } + if (domain != nullptr) { + set_has_domain(); + property_.domain_.UnsafeSetDefault(domain); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.domain) +} + +// string version = 4; +inline bool DatasetPropertyFilter::has_version() const { + return property_case() == kVersion; +} +inline void DatasetPropertyFilter::set_has_version() { + _oneof_case_[0] = kVersion; +} +inline void DatasetPropertyFilter::clear_version() { + if (has_version()) { + property_.version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_property(); + } +} +inline const ::std::string& DatasetPropertyFilter::version() const { + // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.version) + if (has_version()) { + return property_.version_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void DatasetPropertyFilter::set_version(const ::std::string& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) +} +#if LANG_CXX11 +inline void DatasetPropertyFilter::set_version(::std::string&& value) { + // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.version) +} +#endif +inline void DatasetPropertyFilter::set_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.version) +} +inline void DatasetPropertyFilter::set_version(const char* value, size_t size) { + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.version) +} +inline ::std::string* DatasetPropertyFilter::mutable_version() { + if (!has_version()) { + clear_property(); + set_has_version(); + property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.version) + return property_.version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DatasetPropertyFilter::release_version() { + // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.version) + if (has_version()) { + clear_has_property(); + return property_.version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void DatasetPropertyFilter::set_allocated_version(::std::string* version) { + if (has_property()) { + clear_property(); + } + if (version != nullptr) { + set_has_version(); + property_.version_.UnsafeSetDefault(version); + } + // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.version) +} + +inline bool DatasetPropertyFilter::has_property() const { + return property_case() != PROPERTY_NOT_SET; +} +inline void DatasetPropertyFilter::clear_has_property() { + _oneof_case_[0] = PROPERTY_NOT_SET; +} +inline DatasetPropertyFilter::PropertyCase DatasetPropertyFilter::property_case() const { + return DatasetPropertyFilter::PropertyCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// PaginationOptions + +// uint32 limit = 1; +inline void PaginationOptions::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 PaginationOptions::limit() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.limit) + return limit_; +} +inline void PaginationOptions::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.limit) +} + +// string token = 2; +inline void PaginationOptions::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PaginationOptions::token() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.token) + return token_.GetNoArena(); +} +inline void PaginationOptions::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.token) +} +#if LANG_CXX11 +inline void PaginationOptions::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:datacatalog.PaginationOptions.token) +} +#endif +inline void PaginationOptions::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:datacatalog.PaginationOptions.token) +} +inline void PaginationOptions::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:datacatalog.PaginationOptions.token) +} +inline ::std::string* PaginationOptions::mutable_token() { + + // @@protoc_insertion_point(field_mutable:datacatalog.PaginationOptions.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PaginationOptions::release_token() { + // @@protoc_insertion_point(field_release:datacatalog.PaginationOptions.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PaginationOptions::set_allocated_token(::std::string* token) { + if (token != nullptr) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:datacatalog.PaginationOptions.token) +} + +// .datacatalog.PaginationOptions.SortKey sortKey = 3; +inline void PaginationOptions::clear_sortkey() { + sortkey_ = 0; +} +inline ::datacatalog::PaginationOptions_SortKey PaginationOptions::sortkey() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.sortKey) + return static_cast< ::datacatalog::PaginationOptions_SortKey >(sortkey_); +} +inline void PaginationOptions::set_sortkey(::datacatalog::PaginationOptions_SortKey value) { + + sortkey_ = value; + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.sortKey) +} + +// .datacatalog.PaginationOptions.SortOrder sortOrder = 4; +inline void PaginationOptions::clear_sortorder() { + sortorder_ = 0; +} +inline ::datacatalog::PaginationOptions_SortOrder PaginationOptions::sortorder() const { + // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.sortOrder) + return static_cast< ::datacatalog::PaginationOptions_SortOrder >(sortorder_); +} +inline void PaginationOptions::set_sortorder(::datacatalog::PaginationOptions_SortOrder value) { + + sortorder_ = value; + // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.sortOrder) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace datacatalog + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::datacatalog::SinglePropertyFilter_ComparisonOperator> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::SinglePropertyFilter_ComparisonOperator>() { + return ::datacatalog::SinglePropertyFilter_ComparisonOperator_descriptor(); +} +template <> struct is_proto_enum< ::datacatalog::PaginationOptions_SortOrder> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::PaginationOptions_SortOrder>() { + return ::datacatalog::PaginationOptions_SortOrder_descriptor(); +} +template <> struct is_proto_enum< ::datacatalog::PaginationOptions_SortKey> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::PaginationOptions_SortKey>() { + return ::datacatalog::PaginationOptions_SortKey_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc new file mode 100644 index 0000000000..e45d92a954 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/event/event.proto + +#include "flyteidl/event/event.pb.h" +#include "flyteidl/event/event.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace event { + +} // namespace flyteidl +} // namespace event + diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h new file mode 100644 index 0000000000..2d2b1a92de --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/event/event.proto +#ifndef GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED +#define GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED + +#include "flyteidl/event/event.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace event { + +} // namespace event +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc new file mode 100644 index 0000000000..7f72759006 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc @@ -0,0 +1,8080 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +#include "flyteidl/event/event.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace event { +class WorkflowExecutionEventDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; + const ::flyteidl::core::LiteralMap* output_data_; +} _WorkflowExecutionEvent_default_instance_; +class NodeExecutionEventDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + const ::flyteidl::core::LiteralMap* input_data_; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; + const ::flyteidl::core::LiteralMap* output_data_; + const ::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata_; + const ::flyteidl::event::TaskNodeMetadata* task_node_metadata_; +} _NodeExecutionEvent_default_instance_; +class WorkflowNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowNodeMetadata_default_instance_; +class TaskNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskNodeMetadata_default_instance_; +class DynamicWorkflowNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DynamicWorkflowNodeMetadata_default_instance_; +class ParentTaskExecutionMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParentTaskExecutionMetadata_default_instance_; +class ParentNodeExecutionMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParentNodeExecutionMetadata_default_instance_; +class TaskExecutionEventDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + const ::flyteidl::core::LiteralMap* input_data_; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; + const ::flyteidl::core::LiteralMap* output_data_; +} _TaskExecutionEvent_default_instance_; +class ExternalResourceInfoDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ExternalResourceInfo_default_instance_; +class ResourcePoolInfoDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ResourcePoolInfo_default_instance_; +class TaskExecutionMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskExecutionMetadata_default_instance_; +} // namespace event +} // namespace flyteidl +static void InitDefaultsWorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_WorkflowExecutionEvent_default_instance_; + new (ptr) ::flyteidl::event::WorkflowExecutionEvent(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::WorkflowExecutionEvent::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<4> scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsWorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsNodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_NodeExecutionEvent_default_instance_; + new (ptr) ::flyteidl::event::NodeExecutionEvent(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::NodeExecutionEvent::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<8> scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsNodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base, + &scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base, + &scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base, + &scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base,}}; + +static void InitDefaultsWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_WorkflowNodeMetadata_default_instance_; + new (ptr) ::flyteidl::event::WorkflowNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::WorkflowNodeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsTaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_TaskNodeMetadata_default_instance_; + new (ptr) ::flyteidl::event::TaskNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::TaskNodeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base, + &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base,}}; + +static void InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_; + new (ptr) ::flyteidl::event::DynamicWorkflowNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::DynamicWorkflowNodeMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base,}}; + +static void InitDefaultsParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_; + new (ptr) ::flyteidl::event::ParentTaskExecutionMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::ParentTaskExecutionMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_ParentNodeExecutionMetadata_default_instance_; + new (ptr) ::flyteidl::event::ParentNodeExecutionMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::ParentNodeExecutionMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto}, {}}; + +static void InitDefaultsTaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_TaskExecutionEvent_default_instance_; + new (ptr) ::flyteidl::event::TaskExecutionEvent(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::TaskExecutionEvent::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<8> scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsTaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, + &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, + &scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base,}}; + +static void InitDefaultsExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_ExternalResourceInfo_default_instance_; + new (ptr) ::flyteidl::event::ExternalResourceInfo(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::ExternalResourceInfo::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base,}}; + +static void InitDefaultsResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_ResourcePoolInfo_default_instance_; + new (ptr) ::flyteidl::event::ResourcePoolInfo(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::ResourcePoolInfo::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto}, {}}; + +static void InitDefaultsTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::event::_TaskExecutionMetadata_default_instance_; + new (ptr) ::flyteidl::event::TaskExecutionMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::TaskExecutionMetadata::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto}, { + &scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base, + &scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base,}}; + +void InitDefaults_flyteidl_2fevent_2fevent_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fevent_2fevent_2eproto[11]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fevent_2fevent_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fevent_2fevent_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fevent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, producer_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, occurred_at_), + offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, error_), + offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, output_data_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, output_result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, producer_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, occurred_at_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, input_uri_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, input_data_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, error_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, output_data_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, workflow_node_metadata_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, task_node_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, parent_task_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, parent_node_metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, retry_group_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, spec_node_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, node_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, event_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, is_parent_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, is_dynamic_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, deck_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, reported_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, input_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, output_result_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, target_metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowNodeMetadata, execution_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, cache_status_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, catalog_key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, reservation_status_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, checkpoint_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, dynamic_workflow_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, compiled_workflow_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, dynamic_job_spec_uri_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentTaskExecutionMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentTaskExecutionMetadata, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentNodeExecutionMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentNodeExecutionMetadata, node_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, task_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, parent_node_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, retry_attempt_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, producer_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, logs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, occurred_at_), + offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, input_uri_), + offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, input_data_), + offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, error_), + offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, output_data_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, custom_info_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, phase_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, reason_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, metadata_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, event_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, reported_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, input_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, output_result_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, external_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, index_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, retry_attempt_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, cache_status_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, logs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ResourcePoolInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ResourcePoolInfo, allocation_token_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::ResourcePoolInfo, namespace__), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, generated_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, external_resources_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, resource_pool_info_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, plugin_identifier_), + PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, instance_class_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::event::WorkflowExecutionEvent)}, + { 13, -1, sizeof(::flyteidl::event::NodeExecutionEvent)}, + { 42, -1, sizeof(::flyteidl::event::WorkflowNodeMetadata)}, + { 48, -1, sizeof(::flyteidl::event::TaskNodeMetadata)}, + { 58, -1, sizeof(::flyteidl::event::DynamicWorkflowNodeMetadata)}, + { 66, -1, sizeof(::flyteidl::event::ParentTaskExecutionMetadata)}, + { 72, -1, sizeof(::flyteidl::event::ParentNodeExecutionMetadata)}, + { 78, -1, sizeof(::flyteidl::event::TaskExecutionEvent)}, + { 104, -1, sizeof(::flyteidl::event::ExternalResourceInfo)}, + { 115, -1, sizeof(::flyteidl::event::ResourcePoolInfo)}, + { 122, -1, sizeof(::flyteidl::event::TaskExecutionMetadata)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::event::_WorkflowExecutionEvent_default_instance_), + reinterpret_cast(&::flyteidl::event::_NodeExecutionEvent_default_instance_), + reinterpret_cast(&::flyteidl::event::_WorkflowNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::event::_TaskNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_), + reinterpret_cast(&::flyteidl::event::_ParentNodeExecutionMetadata_default_instance_), + reinterpret_cast(&::flyteidl::event::_TaskExecutionEvent_default_instance_), + reinterpret_cast(&::flyteidl::event::_ExternalResourceInfo_default_instance_), + reinterpret_cast(&::flyteidl::event::_ResourcePoolInfo_default_instance_), + reinterpret_cast(&::flyteidl::event::_TaskExecutionMetadata_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto = { + {}, AddDescriptors_flyteidl_2fevent_2fevent_2eproto, "flyteidl/event/event.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fevent_2fevent_2eproto::offsets, + file_level_metadata_flyteidl_2fevent_2fevent_2eproto, 11, file_level_enum_descriptors_flyteidl_2fevent_2fevent_2eproto, file_level_service_descriptors_flyteidl_2fevent_2fevent_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fevent_2fevent_2eproto[] = + "\n\032flyteidl/event/event.proto\022\016flyteidl.e" + "vent\032\034flyteidl/core/literals.proto\032\034flyt" + "eidl/core/compiler.proto\032\035flyteidl/core/" + "execution.proto\032\036flyteidl/core/identifie" + "r.proto\032\033flyteidl/core/catalog.proto\032\037go" + "ogle/protobuf/timestamp.proto\032\034google/pr" + "otobuf/struct.proto\"\340\002\n\026WorkflowExecutio" + "nEvent\022@\n\014execution_id\030\001 \001(\0132*.flyteidl." + "core.WorkflowExecutionIdentifier\022\023\n\013prod" + "ucer_id\030\002 \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl." + "core.WorkflowExecution.Phase\022/\n\013occurred" + "_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n" + "\noutput_uri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.fly" + "teidl.core.ExecutionErrorH\000\0220\n\013output_da" + "ta\030\007 \001(\0132\031.flyteidl.core.LiteralMapH\000B\017\n" + "\routput_result\"\217\007\n\022NodeExecutionEvent\0222\n" + "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + "dentifier\022\023\n\013producer_id\030\002 \001(\t\0221\n\005phase\030" + "\003 \001(\0162\".flyteidl.core.NodeExecution.Phas" + "e\022/\n\013occurred_at\030\004 \001(\0132\032.google.protobuf" + ".Timestamp\022\023\n\tinput_uri\030\005 \001(\tH\000\022/\n\ninput" + "_data\030\024 \001(\0132\031.flyteidl.core.LiteralMapH\000" + "\022\024\n\noutput_uri\030\006 \001(\tH\001\022.\n\005error\030\007 \001(\0132\035." + "flyteidl.core.ExecutionErrorH\001\0220\n\013output" + "_data\030\017 \001(\0132\031.flyteidl.core.LiteralMapH\001" + "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + "idl.event.WorkflowNodeMetadataH\002\022>\n\022task" + "_node_metadata\030\016 \001(\0132 .flyteidl.event.Ta" + "skNodeMetadataH\002\022I\n\024parent_task_metadata" + "\030\t \001(\0132+.flyteidl.event.ParentTaskExecut" + "ionMetadata\022I\n\024parent_node_metadata\030\n \001(" + "\0132+.flyteidl.event.ParentNodeExecutionMe" + "tadata\022\023\n\013retry_group\030\013 \001(\t\022\024\n\014spec_node" + "_id\030\014 \001(\t\022\021\n\tnode_name\030\r \001(\t\022\025\n\revent_ve" + "rsion\030\020 \001(\005\022\021\n\tis_parent\030\021 \001(\010\022\022\n\nis_dyn" + "amic\030\022 \001(\010\022\020\n\010deck_uri\030\023 \001(\t\022/\n\013reported" + "_at\030\025 \001(\0132\032.google.protobuf.TimestampB\r\n" + "\013input_valueB\017\n\routput_resultB\021\n\017target_" + "metadata\"X\n\024WorkflowNodeMetadata\022@\n\014exec" + "ution_id\030\001 \001(\0132*.flyteidl.core.WorkflowE" + "xecutionIdentifier\"\245\002\n\020TaskNodeMetadata\022" + "7\n\014cache_status\030\001 \001(\0162!.flyteidl.core.Ca" + "talogCacheStatus\0223\n\013catalog_key\030\002 \001(\0132\036." + "flyteidl.core.CatalogMetadata\022D\n\022reserva" + "tion_status\030\003 \001(\0162(.flyteidl.core.Catalo" + "gReservation.Status\022\026\n\016checkpoint_uri\030\004 " + "\001(\t\022E\n\020dynamic_workflow\030\020 \001(\0132+.flyteidl" + ".event.DynamicWorkflowNodeMetadata\"\245\001\n\033D" + "ynamicWorkflowNodeMetadata\022%\n\002id\030\001 \001(\0132\031" + ".flyteidl.core.Identifier\022A\n\021compiled_wo" + "rkflow\030\002 \001(\0132&.flyteidl.core.CompiledWor" + "kflowClosure\022\034\n\024dynamic_job_spec_uri\030\003 \001" + "(\t\"Q\n\033ParentTaskExecutionMetadata\0222\n\002id\030" + "\001 \001(\0132&.flyteidl.core.TaskExecutionIdent" + "ifier\".\n\033ParentNodeExecutionMetadata\022\017\n\007" + "node_id\030\001 \001(\t\"\207\006\n\022TaskExecutionEvent\022*\n\007" + "task_id\030\001 \001(\0132\031.flyteidl.core.Identifier" + "\022H\n\030parent_node_execution_id\030\002 \001(\0132&.fly" + "teidl.core.NodeExecutionIdentifier\022\025\n\rre" + "try_attempt\030\003 \001(\r\0221\n\005phase\030\004 \001(\0162\".flyte" + "idl.core.TaskExecution.Phase\022\023\n\013producer" + "_id\030\005 \001(\t\022$\n\004logs\030\006 \003(\0132\026.flyteidl.core." + "TaskLog\022/\n\013occurred_at\030\007 \001(\0132\032.google.pr" + "otobuf.Timestamp\022\023\n\tinput_uri\030\010 \001(\tH\000\022/\n" + "\ninput_data\030\023 \001(\0132\031.flyteidl.core.Litera" + "lMapH\000\022\024\n\noutput_uri\030\t \001(\tH\001\022.\n\005error\030\n " + "\001(\0132\035.flyteidl.core.ExecutionErrorH\001\0220\n\013" + "output_data\030\021 \001(\0132\031.flyteidl.core.Litera" + "lMapH\001\022,\n\013custom_info\030\013 \001(\0132\027.google.pro" + "tobuf.Struct\022\025\n\rphase_version\030\014 \001(\r\022\016\n\006r" + "eason\030\r \001(\t\022\021\n\ttask_type\030\016 \001(\t\0227\n\010metada" + "ta\030\020 \001(\0132%.flyteidl.event.TaskExecutionM" + "etadata\022\025\n\revent_version\030\022 \001(\005\022/\n\013report" + "ed_at\030\024 \001(\0132\032.google.protobuf.TimestampB" + "\r\n\013input_valueB\017\n\routput_result\"\343\001\n\024Exte" + "rnalResourceInfo\022\023\n\013external_id\030\001 \001(\t\022\r\n" + "\005index\030\002 \001(\r\022\025\n\rretry_attempt\030\003 \001(\r\0221\n\005p" + "hase\030\004 \001(\0162\".flyteidl.core.TaskExecution" + ".Phase\0227\n\014cache_status\030\005 \001(\0162!.flyteidl." + "core.CatalogCacheStatus\022$\n\004logs\030\006 \003(\0132\026." + "flyteidl.core.TaskLog\"\?\n\020ResourcePoolInf" + "o\022\030\n\020allocation_token\030\001 \001(\t\022\021\n\tnamespace" + "\030\002 \001(\t\"\310\002\n\025TaskExecutionMetadata\022\026\n\016gene" + "rated_name\030\001 \001(\t\022@\n\022external_resources\030\002" + " \003(\0132$.flyteidl.event.ExternalResourceIn" + "fo\022<\n\022resource_pool_info\030\003 \003(\0132 .flyteid" + "l.event.ResourcePoolInfo\022\031\n\021plugin_ident" + "ifier\030\004 \001(\t\022K\n\016instance_class\030\020 \001(\01623.fl" + "yteidl.event.TaskExecutionMetadata.Insta" + "nceClass\"/\n\rInstanceClass\022\013\n\007DEFAULT\020\000\022\021" + "\n\rINTERRUPTIBLE\020\001B7Z5github.com/flyteorg" + "/flyteidl/gen/pb-go/flyteidl/eventb\006prot" + "o3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fevent_2fevent_2eproto = { + false, InitDefaults_flyteidl_2fevent_2fevent_2eproto, + descriptor_table_protodef_flyteidl_2fevent_2fevent_2eproto, + "flyteidl/event/event.proto", &assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto, 3682, +}; + +void AddDescriptors_flyteidl_2fevent_2fevent_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[7] = + { + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fevent_2fevent_2eproto, deps, 7); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fevent_2fevent_2eproto = []() { AddDescriptors_flyteidl_2fevent_2fevent_2eproto(); return true; }(); +namespace flyteidl { +namespace event { +const ::google::protobuf::EnumDescriptor* TaskExecutionMetadata_InstanceClass_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return file_level_enum_descriptors_flyteidl_2fevent_2fevent_2eproto[0]; +} +bool TaskExecutionMetadata_InstanceClass_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::DEFAULT; +const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::INTERRUPTIBLE; +const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::InstanceClass_MIN; +const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::InstanceClass_MAX; +const int TaskExecutionMetadata::InstanceClass_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void WorkflowExecutionEvent::InitAsDefaultInstance() { + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +class WorkflowExecutionEvent::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const WorkflowExecutionEvent* msg); + static const ::google::protobuf::Timestamp& occurred_at(const WorkflowExecutionEvent* msg); + static const ::flyteidl::core::ExecutionError& error(const WorkflowExecutionEvent* msg); + static const ::flyteidl::core::LiteralMap& output_data(const WorkflowExecutionEvent* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +WorkflowExecutionEvent::HasBitSetters::execution_id(const WorkflowExecutionEvent* msg) { + return *msg->execution_id_; +} +const ::google::protobuf::Timestamp& +WorkflowExecutionEvent::HasBitSetters::occurred_at(const WorkflowExecutionEvent* msg) { + return *msg->occurred_at_; +} +const ::flyteidl::core::ExecutionError& +WorkflowExecutionEvent::HasBitSetters::error(const WorkflowExecutionEvent* msg) { + return *msg->output_result_.error_; +} +const ::flyteidl::core::LiteralMap& +WorkflowExecutionEvent::HasBitSetters::output_data(const WorkflowExecutionEvent* msg) { + return *msg->output_result_.output_data_; +} +void WorkflowExecutionEvent::clear_execution_id() { + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; +} +void WorkflowExecutionEvent::clear_occurred_at() { + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; +} +void WorkflowExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.error) +} +void WorkflowExecutionEvent::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void WorkflowExecutionEvent::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (output_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + output_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, output_data, submessage_arena); + } + set_has_output_data(); + output_result_.output_data_ = output_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.output_data) +} +void WorkflowExecutionEvent::clear_output_data() { + if (has_output_data()) { + delete output_result_.output_data_; + clear_has_output_result(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionEvent::kExecutionIdFieldNumber; +const int WorkflowExecutionEvent::kProducerIdFieldNumber; +const int WorkflowExecutionEvent::kPhaseFieldNumber; +const int WorkflowExecutionEvent::kOccurredAtFieldNumber; +const int WorkflowExecutionEvent::kOutputUriFieldNumber; +const int WorkflowExecutionEvent::kErrorFieldNumber; +const int WorkflowExecutionEvent::kOutputDataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionEvent::WorkflowExecutionEvent() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.WorkflowExecutionEvent) +} +WorkflowExecutionEvent::WorkflowExecutionEvent(const WorkflowExecutionEvent& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.producer_id().size() > 0) { + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = nullptr; + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = nullptr; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.WorkflowExecutionEvent) +} + +void WorkflowExecutionEvent::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&execution_id_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&execution_id_)) + sizeof(phase_)); + clear_has_output_result(); +} + +WorkflowExecutionEvent::~WorkflowExecutionEvent() { + // @@protoc_insertion_point(destructor:flyteidl.event.WorkflowExecutionEvent) + SharedDtor(); +} + +void WorkflowExecutionEvent::SharedDtor() { + producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete execution_id_; + if (this != internal_default_instance()) delete occurred_at_; + if (has_output_result()) { + clear_output_result(); + } +} + +void WorkflowExecutionEvent::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowExecutionEvent& WorkflowExecutionEvent::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowExecutionEvent::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.WorkflowExecutionEvent) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case kOutputData: { + delete output_result_.output_data_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + + +void WorkflowExecutionEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; + phase_ = 0; + clear_output_result(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowExecutionEvent::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string producer_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.WorkflowExecutionEvent.producer_id"); + object = msg->mutable_producer_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Timestamp occurred_at = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_occurred_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string output_uri = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.WorkflowExecutionEvent.output_uri"); + object = msg->mutable_output_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.ExecutionError error = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap output_data = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_output_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowExecutionEvent::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.WorkflowExecutionEvent) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // string producer_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_producer_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.WorkflowExecutionEvent.producer_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp occurred_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string output_uri = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.WorkflowExecutionEvent.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap output_data = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_output_data())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.WorkflowExecutionEvent) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.WorkflowExecutionEvent) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowExecutionEvent::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::execution_id(this), output); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.producer_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->producer_id(), output); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::occurred_at(this), output); + } + + // string output_uri = 5; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 6; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, HasBitSetters::error(this), output); + } + + // .flyteidl.core.LiteralMap output_data = 7; + if (has_output_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::output_data(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.WorkflowExecutionEvent) +} + +::google::protobuf::uint8* WorkflowExecutionEvent::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::execution_id(this), target); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.producer_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->producer_id(), target); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::occurred_at(this), target); + } + + // string output_uri = 5; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 6; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, HasBitSetters::error(this), target); + } + + // .flyteidl.core.LiteralMap output_data = 7; + if (has_output_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::output_data(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.WorkflowExecutionEvent) + return target; +} + +size_t WorkflowExecutionEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.WorkflowExecutionEvent) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->producer_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *execution_id_); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *occurred_at_); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // string output_uri = 5; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 6; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + // .flyteidl.core.LiteralMap output_data = 7; + case kOutputData: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.output_data_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.WorkflowExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionEvent* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.WorkflowExecutionEvent) + MergeFrom(*source); + } +} + +void WorkflowExecutionEvent::MergeFrom(const WorkflowExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.WorkflowExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.producer_id().size() > 0) { + + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void WorkflowExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.WorkflowExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionEvent::CopyFrom(const WorkflowExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.WorkflowExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionEvent::IsInitialized() const { + return true; +} + +void WorkflowExecutionEvent::Swap(WorkflowExecutionEvent* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionEvent::InternalSwap(WorkflowExecutionEvent* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + producer_id_.Swap(&other->producer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(execution_id_, other->execution_id_); + swap(occurred_at_, other->occurred_at_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata WorkflowExecutionEvent::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionEvent::InitAsDefaultInstance() { + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.input_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.input_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.workflow_node_metadata_ = const_cast< ::flyteidl::event::WorkflowNodeMetadata*>( + ::flyteidl::event::WorkflowNodeMetadata::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.task_node_metadata_ = const_cast< ::flyteidl::event::TaskNodeMetadata*>( + ::flyteidl::event::TaskNodeMetadata::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->parent_task_metadata_ = const_cast< ::flyteidl::event::ParentTaskExecutionMetadata*>( + ::flyteidl::event::ParentTaskExecutionMetadata::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->parent_node_metadata_ = const_cast< ::flyteidl::event::ParentNodeExecutionMetadata*>( + ::flyteidl::event::ParentNodeExecutionMetadata::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->reported_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class NodeExecutionEvent::HasBitSetters { + public: + static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecutionEvent* msg); + static const ::google::protobuf::Timestamp& occurred_at(const NodeExecutionEvent* msg); + static const ::flyteidl::core::LiteralMap& input_data(const NodeExecutionEvent* msg); + static const ::flyteidl::core::ExecutionError& error(const NodeExecutionEvent* msg); + static const ::flyteidl::core::LiteralMap& output_data(const NodeExecutionEvent* msg); + static const ::flyteidl::event::WorkflowNodeMetadata& workflow_node_metadata(const NodeExecutionEvent* msg); + static const ::flyteidl::event::TaskNodeMetadata& task_node_metadata(const NodeExecutionEvent* msg); + static const ::flyteidl::event::ParentTaskExecutionMetadata& parent_task_metadata(const NodeExecutionEvent* msg); + static const ::flyteidl::event::ParentNodeExecutionMetadata& parent_node_metadata(const NodeExecutionEvent* msg); + static const ::google::protobuf::Timestamp& reported_at(const NodeExecutionEvent* msg); +}; + +const ::flyteidl::core::NodeExecutionIdentifier& +NodeExecutionEvent::HasBitSetters::id(const NodeExecutionEvent* msg) { + return *msg->id_; +} +const ::google::protobuf::Timestamp& +NodeExecutionEvent::HasBitSetters::occurred_at(const NodeExecutionEvent* msg) { + return *msg->occurred_at_; +} +const ::flyteidl::core::LiteralMap& +NodeExecutionEvent::HasBitSetters::input_data(const NodeExecutionEvent* msg) { + return *msg->input_value_.input_data_; +} +const ::flyteidl::core::ExecutionError& +NodeExecutionEvent::HasBitSetters::error(const NodeExecutionEvent* msg) { + return *msg->output_result_.error_; +} +const ::flyteidl::core::LiteralMap& +NodeExecutionEvent::HasBitSetters::output_data(const NodeExecutionEvent* msg) { + return *msg->output_result_.output_data_; +} +const ::flyteidl::event::WorkflowNodeMetadata& +NodeExecutionEvent::HasBitSetters::workflow_node_metadata(const NodeExecutionEvent* msg) { + return *msg->target_metadata_.workflow_node_metadata_; +} +const ::flyteidl::event::TaskNodeMetadata& +NodeExecutionEvent::HasBitSetters::task_node_metadata(const NodeExecutionEvent* msg) { + return *msg->target_metadata_.task_node_metadata_; +} +const ::flyteidl::event::ParentTaskExecutionMetadata& +NodeExecutionEvent::HasBitSetters::parent_task_metadata(const NodeExecutionEvent* msg) { + return *msg->parent_task_metadata_; +} +const ::flyteidl::event::ParentNodeExecutionMetadata& +NodeExecutionEvent::HasBitSetters::parent_node_metadata(const NodeExecutionEvent* msg) { + return *msg->parent_node_metadata_; +} +const ::google::protobuf::Timestamp& +NodeExecutionEvent::HasBitSetters::reported_at(const NodeExecutionEvent* msg) { + return *msg->reported_at_; +} +void NodeExecutionEvent::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void NodeExecutionEvent::clear_occurred_at() { + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; +} +void NodeExecutionEvent::set_allocated_input_data(::flyteidl::core::LiteralMap* input_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_input_value(); + if (input_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + input_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, input_data, submessage_arena); + } + set_has_input_data(); + input_value_.input_data_ = input_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.input_data) +} +void NodeExecutionEvent::clear_input_data() { + if (has_input_data()) { + delete input_value_.input_data_; + clear_has_input_value(); + } +} +void NodeExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.error) +} +void NodeExecutionEvent::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void NodeExecutionEvent::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (output_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + output_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, output_data, submessage_arena); + } + set_has_output_data(); + output_result_.output_data_ = output_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.output_data) +} +void NodeExecutionEvent::clear_output_data() { + if (has_output_data()) { + delete output_result_.output_data_; + clear_has_output_result(); + } +} +void NodeExecutionEvent::set_allocated_workflow_node_metadata(::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target_metadata(); + if (workflow_node_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workflow_node_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_node_metadata, submessage_arena); + } + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = workflow_node_metadata; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) +} +void NodeExecutionEvent::set_allocated_task_node_metadata(::flyteidl::event::TaskNodeMetadata* task_node_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target_metadata(); + if (task_node_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_node_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_node_metadata, submessage_arena); + } + set_has_task_node_metadata(); + target_metadata_.task_node_metadata_ = task_node_metadata; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.task_node_metadata) +} +void NodeExecutionEvent::clear_reported_at() { + if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { + delete reported_at_; + } + reported_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionEvent::kIdFieldNumber; +const int NodeExecutionEvent::kProducerIdFieldNumber; +const int NodeExecutionEvent::kPhaseFieldNumber; +const int NodeExecutionEvent::kOccurredAtFieldNumber; +const int NodeExecutionEvent::kInputUriFieldNumber; +const int NodeExecutionEvent::kInputDataFieldNumber; +const int NodeExecutionEvent::kOutputUriFieldNumber; +const int NodeExecutionEvent::kErrorFieldNumber; +const int NodeExecutionEvent::kOutputDataFieldNumber; +const int NodeExecutionEvent::kWorkflowNodeMetadataFieldNumber; +const int NodeExecutionEvent::kTaskNodeMetadataFieldNumber; +const int NodeExecutionEvent::kParentTaskMetadataFieldNumber; +const int NodeExecutionEvent::kParentNodeMetadataFieldNumber; +const int NodeExecutionEvent::kRetryGroupFieldNumber; +const int NodeExecutionEvent::kSpecNodeIdFieldNumber; +const int NodeExecutionEvent::kNodeNameFieldNumber; +const int NodeExecutionEvent::kEventVersionFieldNumber; +const int NodeExecutionEvent::kIsParentFieldNumber; +const int NodeExecutionEvent::kIsDynamicFieldNumber; +const int NodeExecutionEvent::kDeckUriFieldNumber; +const int NodeExecutionEvent::kReportedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionEvent::NodeExecutionEvent() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.NodeExecutionEvent) +} +NodeExecutionEvent::NodeExecutionEvent(const NodeExecutionEvent& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.producer_id().size() > 0) { + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.retry_group().size() > 0) { + retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); + } + spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.spec_node_id().size() > 0) { + spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); + } + node_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node_name().size() > 0) { + node_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_name_); + } + deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.deck_uri().size() > 0) { + deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = nullptr; + } + if (from.has_parent_task_metadata()) { + parent_task_metadata_ = new ::flyteidl::event::ParentTaskExecutionMetadata(*from.parent_task_metadata_); + } else { + parent_task_metadata_ = nullptr; + } + if (from.has_parent_node_metadata()) { + parent_node_metadata_ = new ::flyteidl::event::ParentNodeExecutionMetadata(*from.parent_node_metadata_); + } else { + parent_node_metadata_ = nullptr; + } + if (from.has_reported_at()) { + reported_at_ = new ::google::protobuf::Timestamp(*from.reported_at_); + } else { + reported_at_ = nullptr; + } + ::memcpy(&phase_, &from.phase_, + static_cast(reinterpret_cast(&is_dynamic_) - + reinterpret_cast(&phase_)) + sizeof(is_dynamic_)); + clear_has_input_value(); + switch (from.input_value_case()) { + case kInputUri: { + set_input_uri(from.input_uri()); + break; + } + case kInputData: { + mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + clear_has_target_metadata(); + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::event::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case kTaskNodeMetadata: { + mutable_task_node_metadata()->::flyteidl::event::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.NodeExecutionEvent) +} + +void NodeExecutionEvent::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&is_dynamic_) - + reinterpret_cast(&id_)) + sizeof(is_dynamic_)); + clear_has_input_value(); + clear_has_output_result(); + clear_has_target_metadata(); +} + +NodeExecutionEvent::~NodeExecutionEvent() { + // @@protoc_insertion_point(destructor:flyteidl.event.NodeExecutionEvent) + SharedDtor(); +} + +void NodeExecutionEvent::SharedDtor() { + producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + retry_group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deck_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete occurred_at_; + if (this != internal_default_instance()) delete parent_task_metadata_; + if (this != internal_default_instance()) delete parent_node_metadata_; + if (this != internal_default_instance()) delete reported_at_; + if (has_input_value()) { + clear_input_value(); + } + if (has_output_result()) { + clear_output_result(); + } + if (has_target_metadata()) { + clear_target_metadata(); + } +} + +void NodeExecutionEvent::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const NodeExecutionEvent& NodeExecutionEvent::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void NodeExecutionEvent::clear_input_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) + switch (input_value_case()) { + case kInputUri: { + input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kInputData: { + delete input_value_.input_data_; + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = INPUT_VALUE_NOT_SET; +} + +void NodeExecutionEvent::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case kOutputData: { + delete output_result_.output_data_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; +} + +void NodeExecutionEvent::clear_target_metadata() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) + switch (target_metadata_case()) { + case kWorkflowNodeMetadata: { + delete target_metadata_.workflow_node_metadata_; + break; + } + case kTaskNodeMetadata: { + delete target_metadata_.task_node_metadata_; + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + _oneof_case_[2] = TARGET_METADATA_NOT_SET; +} + + +void NodeExecutionEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && parent_task_metadata_ != nullptr) { + delete parent_task_metadata_; + } + parent_task_metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && parent_node_metadata_ != nullptr) { + delete parent_node_metadata_; + } + parent_node_metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { + delete reported_at_; + } + reported_at_ = nullptr; + ::memset(&phase_, 0, static_cast( + reinterpret_cast(&is_dynamic_) - + reinterpret_cast(&phase_)) + sizeof(is_dynamic_)); + clear_input_value(); + clear_output_result(); + clear_target_metadata(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* NodeExecutionEvent::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string producer_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.producer_id"); + object = msg->mutable_producer_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.NodeExecution.Phase phase = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::NodeExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Timestamp occurred_at = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_occurred_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string input_uri = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.input_uri"); + object = msg->mutable_input_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string output_uri = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.output_uri"); + object = msg->mutable_output_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.ExecutionError error = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::WorkflowNodeMetadata::_InternalParse; + object = msg->mutable_workflow_node_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::ParentTaskExecutionMetadata::_InternalParse; + object = msg->mutable_parent_task_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::ParentNodeExecutionMetadata::_InternalParse; + object = msg->mutable_parent_node_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string retry_group = 11; + case 11: { + if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.retry_group"); + object = msg->mutable_retry_group(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string spec_node_id = 12; + case 12: { + if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.spec_node_id"); + object = msg->mutable_spec_node_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string node_name = 13; + case 13: { + if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.node_name"); + object = msg->mutable_node_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + case 14: { + if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::TaskNodeMetadata::_InternalParse; + object = msg->mutable_task_node_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap output_data = 15; + case 15: { + if (static_cast<::google::protobuf::uint8>(tag) != 122) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_output_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 event_version = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 128) goto handle_unusual; + msg->set_event_version(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // bool is_parent = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 136) goto handle_unusual; + msg->set_is_parent(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // bool is_dynamic = 18; + case 18: { + if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; + msg->set_is_dynamic(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string deck_uri = 19; + case 19: { + if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.deck_uri"); + object = msg->mutable_deck_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.LiteralMap input_data = 20; + case 20: { + if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_input_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp reported_at = 21; + case 21: { + if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_reported_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool NodeExecutionEvent::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.NodeExecutionEvent) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string producer_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_producer_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.producer_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::NodeExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp occurred_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // string output_uri = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_node_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parent_task_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parent_node_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // string retry_group = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_retry_group())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->retry_group().data(), static_cast(this->retry_group().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.retry_group")); + } else { + goto handle_unusual; + } + break; + } + + // string spec_node_id = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_spec_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_node_id().data(), static_cast(this->spec_node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.spec_node_id")); + } else { + goto handle_unusual; + } + break; + } + + // string node_name = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_node_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_name().data(), static_cast(this->node_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.node_name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_node_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap output_data = 15; + case 15: { + if (static_cast< ::google::protobuf::uint8>(tag) == (122 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_output_data())); + } else { + goto handle_unusual; + } + break; + } + + // int32 event_version = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (128 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &event_version_))); + } else { + goto handle_unusual; + } + break; + } + + // bool is_parent = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (136 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_parent_))); + } else { + goto handle_unusual; + } + break; + } + + // bool is_dynamic = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_dynamic_))); + } else { + goto handle_unusual; + } + break; + } + + // string deck_uri = 19; + case 19: { + if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_deck_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck_uri().data(), static_cast(this->deck_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.deck_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap input_data = 20; + case 20: { + if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_input_data())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp reported_at = 21; + case 21: { + if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reported_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.NodeExecutionEvent) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.NodeExecutionEvent) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void NodeExecutionEvent::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.producer_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->producer_id(), output); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::occurred_at(this), output); + } + + // string input_uri = 5; + if (has_input_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->input_uri(), output); + } + + // string output_uri = 6; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 7; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::error(this), output); + } + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::workflow_node_metadata(this), output); + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + if (this->has_parent_task_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, HasBitSetters::parent_task_metadata(this), output); + } + + // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + if (this->has_parent_node_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::parent_node_metadata(this), output); + } + + // string retry_group = 11; + if (this->retry_group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->retry_group().data(), static_cast(this->retry_group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.retry_group"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 11, this->retry_group(), output); + } + + // string spec_node_id = 12; + if (this->spec_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_node_id().data(), static_cast(this->spec_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.spec_node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 12, this->spec_node_id(), output); + } + + // string node_name = 13; + if (this->node_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_name().data(), static_cast(this->node_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.node_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 13, this->node_name(), output); + } + + // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + if (has_task_node_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 14, HasBitSetters::task_node_metadata(this), output); + } + + // .flyteidl.core.LiteralMap output_data = 15; + if (has_output_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 15, HasBitSetters::output_data(this), output); + } + + // int32 event_version = 16; + if (this->event_version() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->event_version(), output); + } + + // bool is_parent = 17; + if (this->is_parent() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_parent(), output); + } + + // bool is_dynamic = 18; + if (this->is_dynamic() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->is_dynamic(), output); + } + + // string deck_uri = 19; + if (this->deck_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck_uri().data(), static_cast(this->deck_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.deck_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 19, this->deck_uri(), output); + } + + // .flyteidl.core.LiteralMap input_data = 20; + if (has_input_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 20, HasBitSetters::input_data(this), output); + } + + // .google.protobuf.Timestamp reported_at = 21; + if (this->has_reported_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 21, HasBitSetters::reported_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.NodeExecutionEvent) +} + +::google::protobuf::uint8* NodeExecutionEvent::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.producer_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->producer_id(), target); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::occurred_at(this), target); + } + + // string input_uri = 5; + if (has_input_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->input_uri(), target); + } + + // string output_uri = 6; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 7; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::error(this), target); + } + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::workflow_node_metadata(this), target); + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + if (this->has_parent_task_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, HasBitSetters::parent_task_metadata(this), target); + } + + // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + if (this->has_parent_node_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::parent_node_metadata(this), target); + } + + // string retry_group = 11; + if (this->retry_group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->retry_group().data(), static_cast(this->retry_group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.retry_group"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 11, this->retry_group(), target); + } + + // string spec_node_id = 12; + if (this->spec_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->spec_node_id().data(), static_cast(this->spec_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.spec_node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 12, this->spec_node_id(), target); + } + + // string node_name = 13; + if (this->node_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_name().data(), static_cast(this->node_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.node_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 13, this->node_name(), target); + } + + // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + if (has_task_node_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 14, HasBitSetters::task_node_metadata(this), target); + } + + // .flyteidl.core.LiteralMap output_data = 15; + if (has_output_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 15, HasBitSetters::output_data(this), target); + } + + // int32 event_version = 16; + if (this->event_version() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->event_version(), target); + } + + // bool is_parent = 17; + if (this->is_parent() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_parent(), target); + } + + // bool is_dynamic = 18; + if (this->is_dynamic() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->is_dynamic(), target); + } + + // string deck_uri = 19; + if (this->deck_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deck_uri().data(), static_cast(this->deck_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.deck_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 19, this->deck_uri(), target); + } + + // .flyteidl.core.LiteralMap input_data = 20; + if (has_input_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 20, HasBitSetters::input_data(this), target); + } + + // .google.protobuf.Timestamp reported_at = 21; + if (this->has_reported_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 21, HasBitSetters::reported_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.NodeExecutionEvent) + return target; +} + +size_t NodeExecutionEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.NodeExecutionEvent) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->producer_id()); + } + + // string retry_group = 11; + if (this->retry_group().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->retry_group()); + } + + // string spec_node_id = 12; + if (this->spec_node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->spec_node_id()); + } + + // string node_name = 13; + if (this->node_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->node_name()); + } + + // string deck_uri = 19; + if (this->deck_uri().size() > 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->deck_uri()); + } + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *occurred_at_); + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + if (this->has_parent_task_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parent_task_metadata_); + } + + // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + if (this->has_parent_node_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parent_node_metadata_); + } + + // .google.protobuf.Timestamp reported_at = 21; + if (this->has_reported_at()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reported_at_); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + // int32 event_version = 16; + if (this->event_version() != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->event_version()); + } + + // bool is_parent = 17; + if (this->is_parent() != 0) { + total_size += 2 + 1; + } + + // bool is_dynamic = 18; + if (this->is_dynamic() != 0) { + total_size += 2 + 1; + } + + switch (input_value_case()) { + // string input_uri = 5; + case kInputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + break; + } + // .flyteidl.core.LiteralMap input_data = 20; + case kInputData: { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *input_value_.input_data_); + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + switch (output_result_case()) { + // string output_uri = 6; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 7; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + // .flyteidl.core.LiteralMap output_data = 15; + case kOutputData: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.output_data_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (target_metadata_case()) { + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + case kWorkflowNodeMetadata: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_metadata_.workflow_node_metadata_); + break; + } + // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + case kTaskNodeMetadata: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_metadata_.task_node_metadata_); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void NodeExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.NodeExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionEvent* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.NodeExecutionEvent) + MergeFrom(*source); + } +} + +void NodeExecutionEvent::MergeFrom(const NodeExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.NodeExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.producer_id().size() > 0) { + + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.retry_group().size() > 0) { + + retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); + } + if (from.spec_node_id().size() > 0) { + + spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); + } + if (from.node_name().size() > 0) { + + node_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_name_); + } + if (from.deck_uri().size() > 0) { + + deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } + if (from.has_parent_task_metadata()) { + mutable_parent_task_metadata()->::flyteidl::event::ParentTaskExecutionMetadata::MergeFrom(from.parent_task_metadata()); + } + if (from.has_parent_node_metadata()) { + mutable_parent_node_metadata()->::flyteidl::event::ParentNodeExecutionMetadata::MergeFrom(from.parent_node_metadata()); + } + if (from.has_reported_at()) { + mutable_reported_at()->::google::protobuf::Timestamp::MergeFrom(from.reported_at()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + if (from.event_version() != 0) { + set_event_version(from.event_version()); + } + if (from.is_parent() != 0) { + set_is_parent(from.is_parent()); + } + if (from.is_dynamic() != 0) { + set_is_dynamic(from.is_dynamic()); + } + switch (from.input_value_case()) { + case kInputUri: { + set_input_uri(from.input_uri()); + break; + } + case kInputData: { + mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::event::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case kTaskNodeMetadata: { + mutable_task_node_metadata()->::flyteidl::event::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } +} + +void NodeExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.NodeExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionEvent::CopyFrom(const NodeExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.NodeExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionEvent::IsInitialized() const { + return true; +} + +void NodeExecutionEvent::Swap(NodeExecutionEvent* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionEvent::InternalSwap(NodeExecutionEvent* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + producer_id_.Swap(&other->producer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + retry_group_.Swap(&other->retry_group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + spec_node_id_.Swap(&other->spec_node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + node_name_.Swap(&other->node_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + deck_uri_.Swap(&other->deck_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(occurred_at_, other->occurred_at_); + swap(parent_task_metadata_, other->parent_task_metadata_); + swap(parent_node_metadata_, other->parent_node_metadata_); + swap(reported_at_, other->reported_at_); + swap(phase_, other->phase_); + swap(event_version_, other->event_version_); + swap(is_parent_, other->is_parent_); + swap(is_dynamic_, other->is_dynamic_); + swap(input_value_, other->input_value_); + swap(output_result_, other->output_result_); + swap(target_metadata_, other->target_metadata_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_oneof_case_[1], other->_oneof_case_[1]); + swap(_oneof_case_[2], other->_oneof_case_[2]); +} + +::google::protobuf::Metadata NodeExecutionEvent::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::event::_WorkflowNodeMetadata_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class WorkflowNodeMetadata::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const WorkflowNodeMetadata* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +WorkflowNodeMetadata::HasBitSetters::execution_id(const WorkflowNodeMetadata* msg) { + return *msg->execution_id_; +} +void WorkflowNodeMetadata::clear_execution_id() { + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowNodeMetadata::kExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowNodeMetadata::WorkflowNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.WorkflowNodeMetadata) +} +WorkflowNodeMetadata::WorkflowNodeMetadata(const WorkflowNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.WorkflowNodeMetadata) +} + +void WorkflowNodeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + execution_id_ = nullptr; +} + +WorkflowNodeMetadata::~WorkflowNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.WorkflowNodeMetadata) + SharedDtor(); +} + +void WorkflowNodeMetadata::SharedDtor() { + if (this != internal_default_instance()) delete execution_id_; +} + +void WorkflowNodeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowNodeMetadata& WorkflowNodeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { + delete execution_id_; + } + execution_id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowNodeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.WorkflowNodeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.WorkflowNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.WorkflowNodeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::execution_id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.WorkflowNodeMetadata) +} + +::google::protobuf::uint8* WorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::execution_id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.WorkflowNodeMetadata) + return target; +} + +size_t WorkflowNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.WorkflowNodeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *execution_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowNodeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.WorkflowNodeMetadata) + MergeFrom(*source); + } +} + +void WorkflowNodeMetadata::MergeFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); + } +} + +void WorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowNodeMetadata::CopyFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowNodeMetadata::IsInitialized() const { + return true; +} + +void WorkflowNodeMetadata::Swap(WorkflowNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowNodeMetadata::InternalSwap(WorkflowNodeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(execution_id_, other->execution_id_); +} + +::google::protobuf::Metadata WorkflowNodeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::event::_TaskNodeMetadata_default_instance_._instance.get_mutable()->catalog_key_ = const_cast< ::flyteidl::core::CatalogMetadata*>( + ::flyteidl::core::CatalogMetadata::internal_default_instance()); + ::flyteidl::event::_TaskNodeMetadata_default_instance_._instance.get_mutable()->dynamic_workflow_ = const_cast< ::flyteidl::event::DynamicWorkflowNodeMetadata*>( + ::flyteidl::event::DynamicWorkflowNodeMetadata::internal_default_instance()); +} +class TaskNodeMetadata::HasBitSetters { + public: + static const ::flyteidl::core::CatalogMetadata& catalog_key(const TaskNodeMetadata* msg); + static const ::flyteidl::event::DynamicWorkflowNodeMetadata& dynamic_workflow(const TaskNodeMetadata* msg); +}; + +const ::flyteidl::core::CatalogMetadata& +TaskNodeMetadata::HasBitSetters::catalog_key(const TaskNodeMetadata* msg) { + return *msg->catalog_key_; +} +const ::flyteidl::event::DynamicWorkflowNodeMetadata& +TaskNodeMetadata::HasBitSetters::dynamic_workflow(const TaskNodeMetadata* msg) { + return *msg->dynamic_workflow_; +} +void TaskNodeMetadata::clear_catalog_key() { + if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { + delete catalog_key_; + } + catalog_key_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskNodeMetadata::kCacheStatusFieldNumber; +const int TaskNodeMetadata::kCatalogKeyFieldNumber; +const int TaskNodeMetadata::kReservationStatusFieldNumber; +const int TaskNodeMetadata::kCheckpointUriFieldNumber; +const int TaskNodeMetadata::kDynamicWorkflowFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskNodeMetadata::TaskNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.TaskNodeMetadata) +} +TaskNodeMetadata::TaskNodeMetadata(const TaskNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.checkpoint_uri().size() > 0) { + checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); + } + if (from.has_catalog_key()) { + catalog_key_ = new ::flyteidl::core::CatalogMetadata(*from.catalog_key_); + } else { + catalog_key_ = nullptr; + } + if (from.has_dynamic_workflow()) { + dynamic_workflow_ = new ::flyteidl::event::DynamicWorkflowNodeMetadata(*from.dynamic_workflow_); + } else { + dynamic_workflow_ = nullptr; + } + ::memcpy(&cache_status_, &from.cache_status_, + static_cast(reinterpret_cast(&reservation_status_) - + reinterpret_cast(&cache_status_)) + sizeof(reservation_status_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.event.TaskNodeMetadata) +} + +void TaskNodeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&catalog_key_, 0, static_cast( + reinterpret_cast(&reservation_status_) - + reinterpret_cast(&catalog_key_)) + sizeof(reservation_status_)); +} + +TaskNodeMetadata::~TaskNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.TaskNodeMetadata) + SharedDtor(); +} + +void TaskNodeMetadata::SharedDtor() { + checkpoint_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete catalog_key_; + if (this != internal_default_instance()) delete dynamic_workflow_; +} + +void TaskNodeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskNodeMetadata& TaskNodeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void TaskNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.TaskNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { + delete catalog_key_; + } + catalog_key_ = nullptr; + if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { + delete dynamic_workflow_; + } + dynamic_workflow_ = nullptr; + ::memset(&cache_status_, 0, static_cast( + reinterpret_cast(&reservation_status_) - + reinterpret_cast(&cache_status_)) + sizeof(reservation_status_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskNodeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_cache_status(static_cast<::flyteidl::core::CatalogCacheStatus>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.CatalogMetadata catalog_key = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CatalogMetadata::_InternalParse; + object = msg->mutable_catalog_key(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.CatalogReservation.Status reservation_status = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_reservation_status(static_cast<::flyteidl::core::CatalogReservation_Status>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string checkpoint_uri = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskNodeMetadata.checkpoint_uri"); + object = msg->mutable_checkpoint_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::DynamicWorkflowNodeMetadata::_InternalParse; + object = msg->mutable_dynamic_workflow(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.TaskNodeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_cache_status(static_cast< ::flyteidl::core::CatalogCacheStatus >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_catalog_key())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.CatalogReservation.Status reservation_status = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_reservation_status(static_cast< ::flyteidl::core::CatalogReservation_Status >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string checkpoint_uri = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_checkpoint_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskNodeMetadata.checkpoint_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_dynamic_workflow())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.TaskNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.TaskNodeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.TaskNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + if (this->cache_status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->cache_status(), output); + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + if (this->has_catalog_key()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::catalog_key(this), output); + } + + // .flyteidl.core.CatalogReservation.Status reservation_status = 3; + if (this->reservation_status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->reservation_status(), output); + } + + // string checkpoint_uri = 4; + if (this->checkpoint_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskNodeMetadata.checkpoint_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->checkpoint_uri(), output); + } + + // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + if (this->has_dynamic_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, HasBitSetters::dynamic_workflow(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.TaskNodeMetadata) +} + +::google::protobuf::uint8* TaskNodeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.TaskNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + if (this->cache_status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->cache_status(), target); + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + if (this->has_catalog_key()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::catalog_key(this), target); + } + + // .flyteidl.core.CatalogReservation.Status reservation_status = 3; + if (this->reservation_status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->reservation_status(), target); + } + + // string checkpoint_uri = 4; + if (this->checkpoint_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskNodeMetadata.checkpoint_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->checkpoint_uri(), target); + } + + // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + if (this->has_dynamic_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, HasBitSetters::dynamic_workflow(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.TaskNodeMetadata) + return target; +} + +size_t TaskNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.TaskNodeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string checkpoint_uri = 4; + if (this->checkpoint_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->checkpoint_uri()); + } + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + if (this->has_catalog_key()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *catalog_key_); + } + + // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + if (this->has_dynamic_workflow()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dynamic_workflow_); + } + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + if (this->cache_status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cache_status()); + } + + // .flyteidl.core.CatalogReservation.Status reservation_status = 3; + if (this->reservation_status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->reservation_status()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.TaskNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const TaskNodeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.TaskNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.TaskNodeMetadata) + MergeFrom(*source); + } +} + +void TaskNodeMetadata::MergeFrom(const TaskNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.TaskNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.checkpoint_uri().size() > 0) { + + checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); + } + if (from.has_catalog_key()) { + mutable_catalog_key()->::flyteidl::core::CatalogMetadata::MergeFrom(from.catalog_key()); + } + if (from.has_dynamic_workflow()) { + mutable_dynamic_workflow()->::flyteidl::event::DynamicWorkflowNodeMetadata::MergeFrom(from.dynamic_workflow()); + } + if (from.cache_status() != 0) { + set_cache_status(from.cache_status()); + } + if (from.reservation_status() != 0) { + set_reservation_status(from.reservation_status()); + } +} + +void TaskNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.TaskNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskNodeMetadata::CopyFrom(const TaskNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.TaskNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskNodeMetadata::IsInitialized() const { + return true; +} + +void TaskNodeMetadata::Swap(TaskNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskNodeMetadata::InternalSwap(TaskNodeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + checkpoint_uri_.Swap(&other->checkpoint_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(catalog_key_, other->catalog_key_); + swap(dynamic_workflow_, other->dynamic_workflow_); + swap(cache_status_, other->cache_status_); + swap(reservation_status_, other->reservation_status_); +} + +::google::protobuf::Metadata TaskNodeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DynamicWorkflowNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->compiled_workflow_ = const_cast< ::flyteidl::core::CompiledWorkflowClosure*>( + ::flyteidl::core::CompiledWorkflowClosure::internal_default_instance()); +} +class DynamicWorkflowNodeMetadata::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const DynamicWorkflowNodeMetadata* msg); + static const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow(const DynamicWorkflowNodeMetadata* msg); +}; + +const ::flyteidl::core::Identifier& +DynamicWorkflowNodeMetadata::HasBitSetters::id(const DynamicWorkflowNodeMetadata* msg) { + return *msg->id_; +} +const ::flyteidl::core::CompiledWorkflowClosure& +DynamicWorkflowNodeMetadata::HasBitSetters::compiled_workflow(const DynamicWorkflowNodeMetadata* msg) { + return *msg->compiled_workflow_; +} +void DynamicWorkflowNodeMetadata::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +void DynamicWorkflowNodeMetadata::clear_compiled_workflow() { + if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { + delete compiled_workflow_; + } + compiled_workflow_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DynamicWorkflowNodeMetadata::kIdFieldNumber; +const int DynamicWorkflowNodeMetadata::kCompiledWorkflowFieldNumber; +const int DynamicWorkflowNodeMetadata::kDynamicJobSpecUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.DynamicWorkflowNodeMetadata) +} +DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.dynamic_job_spec_uri().size() > 0) { + dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + if (from.has_compiled_workflow()) { + compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure(*from.compiled_workflow_); + } else { + compiled_workflow_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.DynamicWorkflowNodeMetadata) +} + +void DynamicWorkflowNodeMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&compiled_workflow_) - + reinterpret_cast(&id_)) + sizeof(compiled_workflow_)); +} + +DynamicWorkflowNodeMetadata::~DynamicWorkflowNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.DynamicWorkflowNodeMetadata) + SharedDtor(); +} + +void DynamicWorkflowNodeMetadata::SharedDtor() { + dynamic_job_spec_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete compiled_workflow_; +} + +void DynamicWorkflowNodeMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DynamicWorkflowNodeMetadata& DynamicWorkflowNodeMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void DynamicWorkflowNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.DynamicWorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { + delete compiled_workflow_; + } + compiled_workflow_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DynamicWorkflowNodeMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::CompiledWorkflowClosure::_InternalParse; + object = msg->mutable_compiled_workflow(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string dynamic_job_spec_uri = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); + object = msg->mutable_dynamic_job_spec_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DynamicWorkflowNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.DynamicWorkflowNodeMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_compiled_workflow())); + } else { + goto handle_unusual; + } + break; + } + + // string dynamic_job_spec_uri = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_dynamic_job_spec_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.DynamicWorkflowNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.DynamicWorkflowNodeMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DynamicWorkflowNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.DynamicWorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + if (this->has_compiled_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::compiled_workflow(this), output); + } + + // string dynamic_job_spec_uri = 3; + if (this->dynamic_job_spec_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->dynamic_job_spec_uri(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.DynamicWorkflowNodeMetadata) +} + +::google::protobuf::uint8* DynamicWorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.DynamicWorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + if (this->has_compiled_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::compiled_workflow(this), target); + } + + // string dynamic_job_spec_uri = 3; + if (this->dynamic_job_spec_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->dynamic_job_spec_uri(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.DynamicWorkflowNodeMetadata) + return target; +} + +size_t DynamicWorkflowNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.DynamicWorkflowNodeMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string dynamic_job_spec_uri = 3; + if (this->dynamic_job_spec_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->dynamic_job_spec_uri()); + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + if (this->has_compiled_workflow()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *compiled_workflow_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DynamicWorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const DynamicWorkflowNodeMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.DynamicWorkflowNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.DynamicWorkflowNodeMetadata) + MergeFrom(*source); + } +} + +void DynamicWorkflowNodeMetadata::MergeFrom(const DynamicWorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.dynamic_job_spec_uri().size() > 0) { + + dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_compiled_workflow()) { + mutable_compiled_workflow()->::flyteidl::core::CompiledWorkflowClosure::MergeFrom(from.compiled_workflow()); + } +} + +void DynamicWorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DynamicWorkflowNodeMetadata::CopyFrom(const DynamicWorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DynamicWorkflowNodeMetadata::IsInitialized() const { + return true; +} + +void DynamicWorkflowNodeMetadata::Swap(DynamicWorkflowNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void DynamicWorkflowNodeMetadata::InternalSwap(DynamicWorkflowNodeMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + dynamic_job_spec_uri_.Swap(&other->dynamic_job_spec_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(id_, other->id_); + swap(compiled_workflow_, other->compiled_workflow_); +} + +::google::protobuf::Metadata DynamicWorkflowNodeMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParentTaskExecutionMetadata::InitAsDefaultInstance() { + ::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +class ParentTaskExecutionMetadata::HasBitSetters { + public: + static const ::flyteidl::core::TaskExecutionIdentifier& id(const ParentTaskExecutionMetadata* msg); +}; + +const ::flyteidl::core::TaskExecutionIdentifier& +ParentTaskExecutionMetadata::HasBitSetters::id(const ParentTaskExecutionMetadata* msg) { + return *msg->id_; +} +void ParentTaskExecutionMetadata::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParentTaskExecutionMetadata::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParentTaskExecutionMetadata::ParentTaskExecutionMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.ParentTaskExecutionMetadata) +} +ParentTaskExecutionMetadata::ParentTaskExecutionMetadata(const ParentTaskExecutionMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.ParentTaskExecutionMetadata) +} + +void ParentTaskExecutionMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + id_ = nullptr; +} + +ParentTaskExecutionMetadata::~ParentTaskExecutionMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.ParentTaskExecutionMetadata) + SharedDtor(); +} + +void ParentTaskExecutionMetadata::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ParentTaskExecutionMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParentTaskExecutionMetadata& ParentTaskExecutionMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void ParentTaskExecutionMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParentTaskExecutionMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParentTaskExecutionMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.ParentTaskExecutionMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.ParentTaskExecutionMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.ParentTaskExecutionMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParentTaskExecutionMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.ParentTaskExecutionMetadata) +} + +::google::protobuf::uint8* ParentTaskExecutionMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.ParentTaskExecutionMetadata) + return target; +} + +size_t ParentTaskExecutionMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ParentTaskExecutionMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParentTaskExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ParentTaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + const ParentTaskExecutionMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ParentTaskExecutionMetadata) + MergeFrom(*source); + } +} + +void ParentTaskExecutionMetadata::MergeFrom(const ParentTaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ParentTaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } +} + +void ParentTaskExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ParentTaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParentTaskExecutionMetadata::CopyFrom(const ParentTaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ParentTaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParentTaskExecutionMetadata::IsInitialized() const { + return true; +} + +void ParentTaskExecutionMetadata::Swap(ParentTaskExecutionMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void ParentTaskExecutionMetadata::InternalSwap(ParentTaskExecutionMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata ParentTaskExecutionMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParentNodeExecutionMetadata::InitAsDefaultInstance() { +} +class ParentNodeExecutionMetadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParentNodeExecutionMetadata::kNodeIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParentNodeExecutionMetadata::ParentNodeExecutionMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.ParentNodeExecutionMetadata) +} +ParentNodeExecutionMetadata::ParentNodeExecutionMetadata(const ParentNodeExecutionMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node_id().size() > 0) { + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.ParentNodeExecutionMetadata) +} + +void ParentNodeExecutionMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ParentNodeExecutionMetadata::~ParentNodeExecutionMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.ParentNodeExecutionMetadata) + SharedDtor(); +} + +void ParentNodeExecutionMetadata::SharedDtor() { + node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ParentNodeExecutionMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParentNodeExecutionMetadata& ParentNodeExecutionMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void ParentNodeExecutionMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.ParentNodeExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParentNodeExecutionMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string node_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.ParentNodeExecutionMetadata.node_id"); + object = msg->mutable_node_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParentNodeExecutionMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.ParentNodeExecutionMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string node_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.ParentNodeExecutionMetadata.node_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.ParentNodeExecutionMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.ParentNodeExecutionMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParentNodeExecutionMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.ParentNodeExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ParentNodeExecutionMetadata.node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->node_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.ParentNodeExecutionMetadata) +} + +::google::protobuf::uint8* ParentNodeExecutionMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ParentNodeExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ParentNodeExecutionMetadata.node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->node_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.ParentNodeExecutionMetadata) + return target; +} + +size_t ParentNodeExecutionMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ParentNodeExecutionMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->node_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParentNodeExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ParentNodeExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + const ParentNodeExecutionMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ParentNodeExecutionMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ParentNodeExecutionMetadata) + MergeFrom(*source); + } +} + +void ParentNodeExecutionMetadata::MergeFrom(const ParentNodeExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ParentNodeExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.node_id().size() > 0) { + + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } +} + +void ParentNodeExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ParentNodeExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParentNodeExecutionMetadata::CopyFrom(const ParentNodeExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ParentNodeExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParentNodeExecutionMetadata::IsInitialized() const { + return true; +} + +void ParentNodeExecutionMetadata::Swap(ParentNodeExecutionMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void ParentNodeExecutionMetadata::InternalSwap(ParentNodeExecutionMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ParentNodeExecutionMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionEvent::InitAsDefaultInstance() { + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->parent_node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_.input_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_.input_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->custom_info_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::event::TaskExecutionMetadata*>( + ::flyteidl::event::TaskExecutionMetadata::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->reported_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class TaskExecutionEvent::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& task_id(const TaskExecutionEvent* msg); + static const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution_id(const TaskExecutionEvent* msg); + static const ::google::protobuf::Timestamp& occurred_at(const TaskExecutionEvent* msg); + static const ::flyteidl::core::LiteralMap& input_data(const TaskExecutionEvent* msg); + static const ::flyteidl::core::ExecutionError& error(const TaskExecutionEvent* msg); + static const ::flyteidl::core::LiteralMap& output_data(const TaskExecutionEvent* msg); + static const ::google::protobuf::Struct& custom_info(const TaskExecutionEvent* msg); + static const ::flyteidl::event::TaskExecutionMetadata& metadata(const TaskExecutionEvent* msg); + static const ::google::protobuf::Timestamp& reported_at(const TaskExecutionEvent* msg); +}; + +const ::flyteidl::core::Identifier& +TaskExecutionEvent::HasBitSetters::task_id(const TaskExecutionEvent* msg) { + return *msg->task_id_; +} +const ::flyteidl::core::NodeExecutionIdentifier& +TaskExecutionEvent::HasBitSetters::parent_node_execution_id(const TaskExecutionEvent* msg) { + return *msg->parent_node_execution_id_; +} +const ::google::protobuf::Timestamp& +TaskExecutionEvent::HasBitSetters::occurred_at(const TaskExecutionEvent* msg) { + return *msg->occurred_at_; +} +const ::flyteidl::core::LiteralMap& +TaskExecutionEvent::HasBitSetters::input_data(const TaskExecutionEvent* msg) { + return *msg->input_value_.input_data_; +} +const ::flyteidl::core::ExecutionError& +TaskExecutionEvent::HasBitSetters::error(const TaskExecutionEvent* msg) { + return *msg->output_result_.error_; +} +const ::flyteidl::core::LiteralMap& +TaskExecutionEvent::HasBitSetters::output_data(const TaskExecutionEvent* msg) { + return *msg->output_result_.output_data_; +} +const ::google::protobuf::Struct& +TaskExecutionEvent::HasBitSetters::custom_info(const TaskExecutionEvent* msg) { + return *msg->custom_info_; +} +const ::flyteidl::event::TaskExecutionMetadata& +TaskExecutionEvent::HasBitSetters::metadata(const TaskExecutionEvent* msg) { + return *msg->metadata_; +} +const ::google::protobuf::Timestamp& +TaskExecutionEvent::HasBitSetters::reported_at(const TaskExecutionEvent* msg) { + return *msg->reported_at_; +} +void TaskExecutionEvent::clear_task_id() { + if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { + delete task_id_; + } + task_id_ = nullptr; +} +void TaskExecutionEvent::clear_parent_node_execution_id() { + if (GetArenaNoVirtual() == nullptr && parent_node_execution_id_ != nullptr) { + delete parent_node_execution_id_; + } + parent_node_execution_id_ = nullptr; +} +void TaskExecutionEvent::clear_logs() { + logs_.Clear(); +} +void TaskExecutionEvent::clear_occurred_at() { + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; +} +void TaskExecutionEvent::set_allocated_input_data(::flyteidl::core::LiteralMap* input_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_input_value(); + if (input_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + input_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, input_data, submessage_arena); + } + set_has_input_data(); + input_value_.input_data_ = input_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.input_data) +} +void TaskExecutionEvent::clear_input_data() { + if (has_input_data()) { + delete input_value_.input_data_; + clear_has_input_value(); + } +} +void TaskExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.error) +} +void TaskExecutionEvent::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void TaskExecutionEvent::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (output_data) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + output_data = ::google::protobuf::internal::GetOwnedMessage( + message_arena, output_data, submessage_arena); + } + set_has_output_data(); + output_result_.output_data_ = output_data; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.output_data) +} +void TaskExecutionEvent::clear_output_data() { + if (has_output_data()) { + delete output_result_.output_data_; + clear_has_output_result(); + } +} +void TaskExecutionEvent::clear_custom_info() { + if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { + delete custom_info_; + } + custom_info_ = nullptr; +} +void TaskExecutionEvent::clear_reported_at() { + if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { + delete reported_at_; + } + reported_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionEvent::kTaskIdFieldNumber; +const int TaskExecutionEvent::kParentNodeExecutionIdFieldNumber; +const int TaskExecutionEvent::kRetryAttemptFieldNumber; +const int TaskExecutionEvent::kPhaseFieldNumber; +const int TaskExecutionEvent::kProducerIdFieldNumber; +const int TaskExecutionEvent::kLogsFieldNumber; +const int TaskExecutionEvent::kOccurredAtFieldNumber; +const int TaskExecutionEvent::kInputUriFieldNumber; +const int TaskExecutionEvent::kInputDataFieldNumber; +const int TaskExecutionEvent::kOutputUriFieldNumber; +const int TaskExecutionEvent::kErrorFieldNumber; +const int TaskExecutionEvent::kOutputDataFieldNumber; +const int TaskExecutionEvent::kCustomInfoFieldNumber; +const int TaskExecutionEvent::kPhaseVersionFieldNumber; +const int TaskExecutionEvent::kReasonFieldNumber; +const int TaskExecutionEvent::kTaskTypeFieldNumber; +const int TaskExecutionEvent::kMetadataFieldNumber; +const int TaskExecutionEvent::kEventVersionFieldNumber; +const int TaskExecutionEvent::kReportedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionEvent::TaskExecutionEvent() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.TaskExecutionEvent) +} +TaskExecutionEvent::TaskExecutionEvent(const TaskExecutionEvent& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + logs_(from.logs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.producer_id().size() > 0) { + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.reason().size() > 0) { + reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); + } + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.has_task_id()) { + task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); + } else { + task_id_ = nullptr; + } + if (from.has_parent_node_execution_id()) { + parent_node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.parent_node_execution_id_); + } else { + parent_node_execution_id_ = nullptr; + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = nullptr; + } + if (from.has_custom_info()) { + custom_info_ = new ::google::protobuf::Struct(*from.custom_info_); + } else { + custom_info_ = nullptr; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::event::TaskExecutionMetadata(*from.metadata_); + } else { + metadata_ = nullptr; + } + if (from.has_reported_at()) { + reported_at_ = new ::google::protobuf::Timestamp(*from.reported_at_); + } else { + reported_at_ = nullptr; + } + ::memcpy(&retry_attempt_, &from.retry_attempt_, + static_cast(reinterpret_cast(&event_version_) - + reinterpret_cast(&retry_attempt_)) + sizeof(event_version_)); + clear_has_input_value(); + switch (from.input_value_case()) { + case kInputUri: { + set_input_uri(from.input_uri()); + break; + } + case kInputData: { + mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.TaskExecutionEvent) +} + +void TaskExecutionEvent::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&task_id_, 0, static_cast( + reinterpret_cast(&event_version_) - + reinterpret_cast(&task_id_)) + sizeof(event_version_)); + clear_has_input_value(); + clear_has_output_result(); +} + +TaskExecutionEvent::~TaskExecutionEvent() { + // @@protoc_insertion_point(destructor:flyteidl.event.TaskExecutionEvent) + SharedDtor(); +} + +void TaskExecutionEvent::SharedDtor() { + producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete task_id_; + if (this != internal_default_instance()) delete parent_node_execution_id_; + if (this != internal_default_instance()) delete occurred_at_; + if (this != internal_default_instance()) delete custom_info_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete reported_at_; + if (has_input_value()) { + clear_input_value(); + } + if (has_output_result()) { + clear_output_result(); + } +} + +void TaskExecutionEvent::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionEvent& TaskExecutionEvent::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionEvent::clear_input_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.TaskExecutionEvent) + switch (input_value_case()) { + case kInputUri: { + input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kInputData: { + delete input_value_.input_data_; + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = INPUT_VALUE_NOT_SET; +} + +void TaskExecutionEvent::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.TaskExecutionEvent) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case kOutputData: { + delete output_result_.output_data_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; +} + + +void TaskExecutionEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { + delete task_id_; + } + task_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && parent_node_execution_id_ != nullptr) { + delete parent_node_execution_id_; + } + parent_node_execution_id_ = nullptr; + if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { + delete occurred_at_; + } + occurred_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { + delete custom_info_; + } + custom_info_ = nullptr; + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; + if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { + delete reported_at_; + } + reported_at_ = nullptr; + ::memset(&retry_attempt_, 0, static_cast( + reinterpret_cast(&event_version_) - + reinterpret_cast(&retry_attempt_)) + sizeof(event_version_)); + clear_input_value(); + clear_output_result(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionEvent::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier task_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_task_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_parent_node_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 retry_attempt = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.TaskExecution.Phase phase = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::TaskExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string producer_id = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.producer_id"); + object = msg->mutable_producer_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyteidl.core.TaskLog logs = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; + object = msg->add_logs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); + break; + } + // .google.protobuf.Timestamp occurred_at = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_occurred_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string input_uri = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.input_uri"); + object = msg->mutable_input_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string output_uri = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.output_uri"); + object = msg->mutable_output_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.ExecutionError error = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; + object = msg->mutable_error(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Struct custom_info = 11; + case 11: { + if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_custom_info(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // uint32 phase_version = 12; + case 12: { + if (static_cast<::google::protobuf::uint8>(tag) != 96) goto handle_unusual; + msg->set_phase_version(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string reason = 13; + case 13: { + if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.reason"); + object = msg->mutable_reason(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string task_type = 14; + case 14: { + if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::TaskExecutionMetadata::_InternalParse; + object = msg->mutable_metadata(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.LiteralMap output_data = 17; + case 17: { + if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_output_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 event_version = 18; + case 18: { + if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; + msg->set_event_version(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.LiteralMap input_data = 19; + case 19: { + if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_input_data(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .google.protobuf.Timestamp reported_at = 20; + case 20: { + if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_reported_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionEvent::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.TaskExecutionEvent) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier task_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parent_node_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 retry_attempt = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retry_attempt_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string producer_id = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_producer_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.producer_id")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskLog logs = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_logs())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp occurred_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // string output_uri = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct custom_info = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_custom_info())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 phase_version = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == (96 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &phase_version_))); + } else { + goto handle_unusual; + } + break; + } + + // string reason = 13; + case 13: { + if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_reason())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.reason")); + } else { + goto handle_unusual; + } + break; + } + + // string task_type = 14; + case 14: { + if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap output_data = 17; + case 17: { + if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_output_data())); + } else { + goto handle_unusual; + } + break; + } + + // int32 event_version = 18; + case 18: { + if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &event_version_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap input_data = 19; + case 19: { + if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_input_data())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp reported_at = 20; + case 20: { + if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reported_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.TaskExecutionEvent) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.TaskExecutionEvent) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionEvent::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::task_id(this), output); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + if (this->has_parent_node_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::parent_node_execution_id(this), output); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->phase(), output); + } + + // string producer_id = 5; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.producer_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->producer_id(), output); + } + + // repeated .flyteidl.core.TaskLog logs = 6; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->logs(static_cast(i)), + output); + } + + // .google.protobuf.Timestamp occurred_at = 7; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::occurred_at(this), output); + } + + // string input_uri = 8; + if (has_input_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 8, this->input_uri(), output); + } + + // string output_uri = 9; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 9, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 10; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, HasBitSetters::error(this), output); + } + + // .google.protobuf.Struct custom_info = 11; + if (this->has_custom_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, HasBitSetters::custom_info(this), output); + } + + // uint32 phase_version = 12; + if (this->phase_version() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->phase_version(), output); + } + + // string reason = 13; + if (this->reason().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.reason"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 13, this->reason(), output); + } + + // string task_type = 14; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 14, this->task_type(), output); + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, HasBitSetters::metadata(this), output); + } + + // .flyteidl.core.LiteralMap output_data = 17; + if (has_output_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, HasBitSetters::output_data(this), output); + } + + // int32 event_version = 18; + if (this->event_version() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->event_version(), output); + } + + // .flyteidl.core.LiteralMap input_data = 19; + if (has_input_data()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 19, HasBitSetters::input_data(this), output); + } + + // .google.protobuf.Timestamp reported_at = 20; + if (this->has_reported_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 20, HasBitSetters::reported_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.TaskExecutionEvent) +} + +::google::protobuf::uint8* TaskExecutionEvent::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::task_id(this), target); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + if (this->has_parent_node_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::parent_node_execution_id(this), target); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), target); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->phase(), target); + } + + // string producer_id = 5; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.producer_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->producer_id(), target); + } + + // repeated .flyteidl.core.TaskLog logs = 6; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->logs(static_cast(i)), target); + } + + // .google.protobuf.Timestamp occurred_at = 7; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::occurred_at(this), target); + } + + // string input_uri = 8; + if (has_input_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 8, this->input_uri(), target); + } + + // string output_uri = 9; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 9, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 10; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, HasBitSetters::error(this), target); + } + + // .google.protobuf.Struct custom_info = 11; + if (this->has_custom_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, HasBitSetters::custom_info(this), target); + } + + // uint32 phase_version = 12; + if (this->phase_version() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->phase_version(), target); + } + + // string reason = 13; + if (this->reason().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->reason().data(), static_cast(this->reason().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.reason"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 13, this->reason(), target); + } + + // string task_type = 14; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 14, this->task_type(), target); + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, HasBitSetters::metadata(this), target); + } + + // .flyteidl.core.LiteralMap output_data = 17; + if (has_output_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 17, HasBitSetters::output_data(this), target); + } + + // int32 event_version = 18; + if (this->event_version() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->event_version(), target); + } + + // .flyteidl.core.LiteralMap input_data = 19; + if (has_input_data()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 19, HasBitSetters::input_data(this), target); + } + + // .google.protobuf.Timestamp reported_at = 20; + if (this->has_reported_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 20, HasBitSetters::reported_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.TaskExecutionEvent) + return target; +} + +size_t TaskExecutionEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.TaskExecutionEvent) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.TaskLog logs = 6; + { + unsigned int count = static_cast(this->logs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->logs(static_cast(i))); + } + } + + // string producer_id = 5; + if (this->producer_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->producer_id()); + } + + // string reason = 13; + if (this->reason().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->reason()); + } + + // string task_type = 14; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *task_id_); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + if (this->has_parent_node_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parent_node_execution_id_); + } + + // .google.protobuf.Timestamp occurred_at = 7; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *occurred_at_); + } + + // .google.protobuf.Struct custom_info = 11; + if (this->has_custom_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *custom_info_); + } + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + if (this->has_metadata()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *metadata_); + } + + // .google.protobuf.Timestamp reported_at = 20; + if (this->has_reported_at()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reported_at_); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retry_attempt()); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + // uint32 phase_version = 12; + if (this->phase_version() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->phase_version()); + } + + // int32 event_version = 18; + if (this->event_version() != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->event_version()); + } + + switch (input_value_case()) { + // string input_uri = 8; + case kInputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + break; + } + // .flyteidl.core.LiteralMap input_data = 19; + case kInputData: { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *input_value_.input_data_); + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + switch (output_result_case()) { + // string output_uri = 9; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 10; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + // .flyteidl.core.LiteralMap output_data = 17; + case kOutputData: { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.output_data_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.TaskExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionEvent* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.TaskExecutionEvent) + MergeFrom(*source); + } +} + +void TaskExecutionEvent::MergeFrom(const TaskExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.TaskExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + logs_.MergeFrom(from.logs_); + if (from.producer_id().size() > 0) { + + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.reason().size() > 0) { + + reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); + } + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.has_task_id()) { + mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); + } + if (from.has_parent_node_execution_id()) { + mutable_parent_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.parent_node_execution_id()); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } + if (from.has_custom_info()) { + mutable_custom_info()->::google::protobuf::Struct::MergeFrom(from.custom_info()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::event::TaskExecutionMetadata::MergeFrom(from.metadata()); + } + if (from.has_reported_at()) { + mutable_reported_at()->::google::protobuf::Timestamp::MergeFrom(from.reported_at()); + } + if (from.retry_attempt() != 0) { + set_retry_attempt(from.retry_attempt()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + if (from.phase_version() != 0) { + set_phase_version(from.phase_version()); + } + if (from.event_version() != 0) { + set_event_version(from.event_version()); + } + switch (from.input_value_case()) { + case kInputUri: { + set_input_uri(from.input_uri()); + break; + } + case kInputData: { + mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); + break; + } + case INPUT_VALUE_NOT_SET: { + break; + } + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kOutputData: { + mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void TaskExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.TaskExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionEvent::CopyFrom(const TaskExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.TaskExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionEvent::IsInitialized() const { + return true; +} + +void TaskExecutionEvent::Swap(TaskExecutionEvent* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionEvent::InternalSwap(TaskExecutionEvent* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&logs_)->InternalSwap(CastToBase(&other->logs_)); + producer_id_.Swap(&other->producer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + reason_.Swap(&other->reason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(task_id_, other->task_id_); + swap(parent_node_execution_id_, other->parent_node_execution_id_); + swap(occurred_at_, other->occurred_at_); + swap(custom_info_, other->custom_info_); + swap(metadata_, other->metadata_); + swap(reported_at_, other->reported_at_); + swap(retry_attempt_, other->retry_attempt_); + swap(phase_, other->phase_); + swap(phase_version_, other->phase_version_); + swap(event_version_, other->event_version_); + swap(input_value_, other->input_value_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_oneof_case_[1], other->_oneof_case_[1]); +} + +::google::protobuf::Metadata TaskExecutionEvent::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExternalResourceInfo::InitAsDefaultInstance() { +} +class ExternalResourceInfo::HasBitSetters { + public: +}; + +void ExternalResourceInfo::clear_logs() { + logs_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExternalResourceInfo::kExternalIdFieldNumber; +const int ExternalResourceInfo::kIndexFieldNumber; +const int ExternalResourceInfo::kRetryAttemptFieldNumber; +const int ExternalResourceInfo::kPhaseFieldNumber; +const int ExternalResourceInfo::kCacheStatusFieldNumber; +const int ExternalResourceInfo::kLogsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExternalResourceInfo::ExternalResourceInfo() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.ExternalResourceInfo) +} +ExternalResourceInfo::ExternalResourceInfo(const ExternalResourceInfo& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + logs_(from.logs_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + external_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.external_id().size() > 0) { + external_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_id_); + } + ::memcpy(&index_, &from.index_, + static_cast(reinterpret_cast(&cache_status_) - + reinterpret_cast(&index_)) + sizeof(cache_status_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.event.ExternalResourceInfo) +} + +void ExternalResourceInfo::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base); + external_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&index_, 0, static_cast( + reinterpret_cast(&cache_status_) - + reinterpret_cast(&index_)) + sizeof(cache_status_)); +} + +ExternalResourceInfo::~ExternalResourceInfo() { + // @@protoc_insertion_point(destructor:flyteidl.event.ExternalResourceInfo) + SharedDtor(); +} + +void ExternalResourceInfo::SharedDtor() { + external_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ExternalResourceInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ExternalResourceInfo& ExternalResourceInfo::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void ExternalResourceInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.ExternalResourceInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + external_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&index_, 0, static_cast( + reinterpret_cast(&cache_status_) - + reinterpret_cast(&index_)) + sizeof(cache_status_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ExternalResourceInfo::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string external_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.ExternalResourceInfo.external_id"); + object = msg->mutable_external_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // uint32 index = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_index(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // uint32 retry_attempt = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.TaskExecution.Phase phase = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::TaskExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.CatalogCacheStatus cache_status = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_cache_status(static_cast<::flyteidl::core::CatalogCacheStatus>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // repeated .flyteidl.core.TaskLog logs = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; + object = msg->add_logs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ExternalResourceInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.ExternalResourceInfo) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string external_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_external_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->external_id().data(), static_cast(this->external_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.ExternalResourceInfo.external_id")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 index = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &index_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 retry_attempt = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retry_attempt_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.CatalogCacheStatus cache_status = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_cache_status(static_cast< ::flyteidl::core::CatalogCacheStatus >(value)); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskLog logs = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_logs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.ExternalResourceInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.ExternalResourceInfo) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ExternalResourceInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.ExternalResourceInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string external_id = 1; + if (this->external_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->external_id().data(), static_cast(this->external_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ExternalResourceInfo.external_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->external_id(), output); + } + + // uint32 index = 2; + if (this->index() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->index(), output); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->phase(), output); + } + + // .flyteidl.core.CatalogCacheStatus cache_status = 5; + if (this->cache_status() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->cache_status(), output); + } + + // repeated .flyteidl.core.TaskLog logs = 6; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, + this->logs(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.ExternalResourceInfo) +} + +::google::protobuf::uint8* ExternalResourceInfo::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ExternalResourceInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string external_id = 1; + if (this->external_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->external_id().data(), static_cast(this->external_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ExternalResourceInfo.external_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->external_id(), target); + } + + // uint32 index = 2; + if (this->index() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->index(), target); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), target); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->phase(), target); + } + + // .flyteidl.core.CatalogCacheStatus cache_status = 5; + if (this->cache_status() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->cache_status(), target); + } + + // repeated .flyteidl.core.TaskLog logs = 6; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->logs(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.ExternalResourceInfo) + return target; +} + +size_t ExternalResourceInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ExternalResourceInfo) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.core.TaskLog logs = 6; + { + unsigned int count = static_cast(this->logs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->logs(static_cast(i))); + } + } + + // string external_id = 1; + if (this->external_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->external_id()); + } + + // uint32 index = 2; + if (this->index() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->index()); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retry_attempt()); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + // .flyteidl.core.CatalogCacheStatus cache_status = 5; + if (this->cache_status() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cache_status()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ExternalResourceInfo::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ExternalResourceInfo) + GOOGLE_DCHECK_NE(&from, this); + const ExternalResourceInfo* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ExternalResourceInfo) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ExternalResourceInfo) + MergeFrom(*source); + } +} + +void ExternalResourceInfo::MergeFrom(const ExternalResourceInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ExternalResourceInfo) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + logs_.MergeFrom(from.logs_); + if (from.external_id().size() > 0) { + + external_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_id_); + } + if (from.index() != 0) { + set_index(from.index()); + } + if (from.retry_attempt() != 0) { + set_retry_attempt(from.retry_attempt()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + if (from.cache_status() != 0) { + set_cache_status(from.cache_status()); + } +} + +void ExternalResourceInfo::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ExternalResourceInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExternalResourceInfo::CopyFrom(const ExternalResourceInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ExternalResourceInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExternalResourceInfo::IsInitialized() const { + return true; +} + +void ExternalResourceInfo::Swap(ExternalResourceInfo* other) { + if (other == this) return; + InternalSwap(other); +} +void ExternalResourceInfo::InternalSwap(ExternalResourceInfo* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&logs_)->InternalSwap(CastToBase(&other->logs_)); + external_id_.Swap(&other->external_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(index_, other->index_); + swap(retry_attempt_, other->retry_attempt_); + swap(phase_, other->phase_); + swap(cache_status_, other->cache_status_); +} + +::google::protobuf::Metadata ExternalResourceInfo::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ResourcePoolInfo::InitAsDefaultInstance() { +} +class ResourcePoolInfo::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ResourcePoolInfo::kAllocationTokenFieldNumber; +const int ResourcePoolInfo::kNamespaceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ResourcePoolInfo::ResourcePoolInfo() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.ResourcePoolInfo) +} +ResourcePoolInfo::ResourcePoolInfo(const ResourcePoolInfo& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + allocation_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.allocation_token().size() > 0) { + allocation_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.allocation_token_); + } + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.namespace_().size() > 0) { + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.ResourcePoolInfo) +} + +void ResourcePoolInfo::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base); + allocation_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +ResourcePoolInfo::~ResourcePoolInfo() { + // @@protoc_insertion_point(destructor:flyteidl.event.ResourcePoolInfo) + SharedDtor(); +} + +void ResourcePoolInfo::SharedDtor() { + allocation_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ResourcePoolInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ResourcePoolInfo& ResourcePoolInfo::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void ResourcePoolInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.ResourcePoolInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + allocation_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ResourcePoolInfo::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string allocation_token = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.ResourcePoolInfo.allocation_token"); + object = msg->mutable_allocation_token(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string namespace = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.ResourcePoolInfo.namespace"); + object = msg->mutable_namespace_(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ResourcePoolInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.ResourcePoolInfo) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string allocation_token = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_allocation_token())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->allocation_token().data(), static_cast(this->allocation_token().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.ResourcePoolInfo.allocation_token")); + } else { + goto handle_unusual; + } + break; + } + + // string namespace = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_namespace_())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.ResourcePoolInfo.namespace")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.ResourcePoolInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.ResourcePoolInfo) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ResourcePoolInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.ResourcePoolInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string allocation_token = 1; + if (this->allocation_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->allocation_token().data(), static_cast(this->allocation_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ResourcePoolInfo.allocation_token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->allocation_token(), output); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ResourcePoolInfo.namespace"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->namespace_(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.ResourcePoolInfo) +} + +::google::protobuf::uint8* ResourcePoolInfo::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ResourcePoolInfo) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string allocation_token = 1; + if (this->allocation_token().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->allocation_token().data(), static_cast(this->allocation_token().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ResourcePoolInfo.allocation_token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->allocation_token(), target); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->namespace_().data(), static_cast(this->namespace_().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.ResourcePoolInfo.namespace"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->namespace_(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.ResourcePoolInfo) + return target; +} + +size_t ResourcePoolInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ResourcePoolInfo) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string allocation_token = 1; + if (this->allocation_token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->allocation_token()); + } + + // string namespace = 2; + if (this->namespace_().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->namespace_()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ResourcePoolInfo::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ResourcePoolInfo) + GOOGLE_DCHECK_NE(&from, this); + const ResourcePoolInfo* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ResourcePoolInfo) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ResourcePoolInfo) + MergeFrom(*source); + } +} + +void ResourcePoolInfo::MergeFrom(const ResourcePoolInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ResourcePoolInfo) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.allocation_token().size() > 0) { + + allocation_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.allocation_token_); + } + if (from.namespace_().size() > 0) { + + namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); + } +} + +void ResourcePoolInfo::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ResourcePoolInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResourcePoolInfo::CopyFrom(const ResourcePoolInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ResourcePoolInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourcePoolInfo::IsInitialized() const { + return true; +} + +void ResourcePoolInfo::Swap(ResourcePoolInfo* other) { + if (other == this) return; + InternalSwap(other); +} +void ResourcePoolInfo::InternalSwap(ResourcePoolInfo* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + allocation_token_.Swap(&other->allocation_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata ResourcePoolInfo::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionMetadata::InitAsDefaultInstance() { +} +class TaskExecutionMetadata::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionMetadata::kGeneratedNameFieldNumber; +const int TaskExecutionMetadata::kExternalResourcesFieldNumber; +const int TaskExecutionMetadata::kResourcePoolInfoFieldNumber; +const int TaskExecutionMetadata::kPluginIdentifierFieldNumber; +const int TaskExecutionMetadata::kInstanceClassFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionMetadata::TaskExecutionMetadata() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.TaskExecutionMetadata) +} +TaskExecutionMetadata::TaskExecutionMetadata(const TaskExecutionMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + external_resources_(from.external_resources_), + resource_pool_info_(from.resource_pool_info_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + generated_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.generated_name().size() > 0) { + generated_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.generated_name_); + } + plugin_identifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.plugin_identifier().size() > 0) { + plugin_identifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plugin_identifier_); + } + instance_class_ = from.instance_class_; + // @@protoc_insertion_point(copy_constructor:flyteidl.event.TaskExecutionMetadata) +} + +void TaskExecutionMetadata::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + generated_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + plugin_identifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + instance_class_ = 0; +} + +TaskExecutionMetadata::~TaskExecutionMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.TaskExecutionMetadata) + SharedDtor(); +} + +void TaskExecutionMetadata::SharedDtor() { + generated_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + plugin_identifier_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskExecutionMetadata::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskExecutionMetadata& TaskExecutionMetadata::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); + return *internal_default_instance(); +} + + +void TaskExecutionMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.TaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + external_resources_.Clear(); + resource_pool_info_.Clear(); + generated_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + plugin_identifier_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + instance_class_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskExecutionMetadata::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string generated_name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionMetadata.generated_name"); + object = msg->mutable_generated_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::ExternalResourceInfo::_InternalParse; + object = msg->add_external_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::event::ResourcePoolInfo::_InternalParse; + object = msg->add_resource_pool_info(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // string plugin_identifier = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionMetadata.plugin_identifier"); + object = msg->mutable_plugin_identifier(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + case 16: { + if (static_cast<::google::protobuf::uint8>(tag) != 128) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_instance_class(static_cast<::flyteidl::event::TaskExecutionMetadata_InstanceClass>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskExecutionMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.TaskExecutionMetadata) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string generated_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_generated_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->generated_name().data(), static_cast(this->generated_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionMetadata.generated_name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_external_resources())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_resource_pool_info())); + } else { + goto handle_unusual; + } + break; + } + + // string plugin_identifier = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_plugin_identifier())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->plugin_identifier().data(), static_cast(this->plugin_identifier().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionMetadata.plugin_identifier")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == (128 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_instance_class(static_cast< ::flyteidl::event::TaskExecutionMetadata_InstanceClass >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.event.TaskExecutionMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.TaskExecutionMetadata) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskExecutionMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.TaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string generated_name = 1; + if (this->generated_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->generated_name().data(), static_cast(this->generated_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionMetadata.generated_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->generated_name(), output); + } + + // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + for (unsigned int i = 0, + n = static_cast(this->external_resources_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->external_resources(static_cast(i)), + output); + } + + // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + for (unsigned int i = 0, + n = static_cast(this->resource_pool_info_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->resource_pool_info(static_cast(i)), + output); + } + + // string plugin_identifier = 4; + if (this->plugin_identifier().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->plugin_identifier().data(), static_cast(this->plugin_identifier().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionMetadata.plugin_identifier"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->plugin_identifier(), output); + } + + // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + if (this->instance_class() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 16, this->instance_class(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.TaskExecutionMetadata) +} + +::google::protobuf::uint8* TaskExecutionMetadata::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.TaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string generated_name = 1; + if (this->generated_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->generated_name().data(), static_cast(this->generated_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionMetadata.generated_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->generated_name(), target); + } + + // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + for (unsigned int i = 0, + n = static_cast(this->external_resources_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->external_resources(static_cast(i)), target); + } + + // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + for (unsigned int i = 0, + n = static_cast(this->resource_pool_info_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->resource_pool_info(static_cast(i)), target); + } + + // string plugin_identifier = 4; + if (this->plugin_identifier().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->plugin_identifier().data(), static_cast(this->plugin_identifier().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionMetadata.plugin_identifier"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->plugin_identifier(), target); + } + + // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + if (this->instance_class() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 16, this->instance_class(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.TaskExecutionMetadata) + return target; +} + +size_t TaskExecutionMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.TaskExecutionMetadata) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + { + unsigned int count = static_cast(this->external_resources_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->external_resources(static_cast(i))); + } + } + + // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + { + unsigned int count = static_cast(this->resource_pool_info_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->resource_pool_info(static_cast(i))); + } + } + + // string generated_name = 1; + if (this->generated_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->generated_name()); + } + + // string plugin_identifier = 4; + if (this->plugin_identifier().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->plugin_identifier()); + } + + // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + if (this->instance_class() != 0) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->instance_class()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.TaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionMetadata* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.TaskExecutionMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.TaskExecutionMetadata) + MergeFrom(*source); + } +} + +void TaskExecutionMetadata::MergeFrom(const TaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.TaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + external_resources_.MergeFrom(from.external_resources_); + resource_pool_info_.MergeFrom(from.resource_pool_info_); + if (from.generated_name().size() > 0) { + + generated_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.generated_name_); + } + if (from.plugin_identifier().size() > 0) { + + plugin_identifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plugin_identifier_); + } + if (from.instance_class() != 0) { + set_instance_class(from.instance_class()); + } +} + +void TaskExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.TaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionMetadata::CopyFrom(const TaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.TaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionMetadata::IsInitialized() const { + return true; +} + +void TaskExecutionMetadata::Swap(TaskExecutionMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionMetadata::InternalSwap(TaskExecutionMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&external_resources_)->InternalSwap(CastToBase(&other->external_resources_)); + CastToBase(&resource_pool_info_)->InternalSwap(CastToBase(&other->resource_pool_info_)); + generated_name_.Swap(&other->generated_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + plugin_identifier_.Swap(&other->plugin_identifier_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(instance_class_, other->instance_class_); +} + +::google::protobuf::Metadata TaskExecutionMetadata::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); + return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace event +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::event::WorkflowExecutionEvent* Arena::CreateMaybeMessage< ::flyteidl::event::WorkflowExecutionEvent >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::WorkflowExecutionEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::NodeExecutionEvent* Arena::CreateMaybeMessage< ::flyteidl::event::NodeExecutionEvent >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::NodeExecutionEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::WorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::WorkflowNodeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::WorkflowNodeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::TaskNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::TaskNodeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::TaskNodeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::DynamicWorkflowNodeMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::DynamicWorkflowNodeMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::ParentTaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::ParentTaskExecutionMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::ParentTaskExecutionMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::ParentNodeExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::ParentNodeExecutionMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::ParentNodeExecutionMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::TaskExecutionEvent* Arena::CreateMaybeMessage< ::flyteidl::event::TaskExecutionEvent >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::TaskExecutionEvent >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::ExternalResourceInfo* Arena::CreateMaybeMessage< ::flyteidl::event::ExternalResourceInfo >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::ExternalResourceInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::ResourcePoolInfo* Arena::CreateMaybeMessage< ::flyteidl::event::ResourcePoolInfo >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::ResourcePoolInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::event::TaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::TaskExecutionMetadata >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::event::TaskExecutionMetadata >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h new file mode 100644 index 0000000000..ef79dac7de --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h @@ -0,0 +1,5318 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fevent_2fevent_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fevent_2fevent_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/compiler.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/catalog.pb.h" +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fevent_2fevent_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[11] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fevent_2fevent_2eproto(); +namespace flyteidl { +namespace event { +class DynamicWorkflowNodeMetadata; +class DynamicWorkflowNodeMetadataDefaultTypeInternal; +extern DynamicWorkflowNodeMetadataDefaultTypeInternal _DynamicWorkflowNodeMetadata_default_instance_; +class ExternalResourceInfo; +class ExternalResourceInfoDefaultTypeInternal; +extern ExternalResourceInfoDefaultTypeInternal _ExternalResourceInfo_default_instance_; +class NodeExecutionEvent; +class NodeExecutionEventDefaultTypeInternal; +extern NodeExecutionEventDefaultTypeInternal _NodeExecutionEvent_default_instance_; +class ParentNodeExecutionMetadata; +class ParentNodeExecutionMetadataDefaultTypeInternal; +extern ParentNodeExecutionMetadataDefaultTypeInternal _ParentNodeExecutionMetadata_default_instance_; +class ParentTaskExecutionMetadata; +class ParentTaskExecutionMetadataDefaultTypeInternal; +extern ParentTaskExecutionMetadataDefaultTypeInternal _ParentTaskExecutionMetadata_default_instance_; +class ResourcePoolInfo; +class ResourcePoolInfoDefaultTypeInternal; +extern ResourcePoolInfoDefaultTypeInternal _ResourcePoolInfo_default_instance_; +class TaskExecutionEvent; +class TaskExecutionEventDefaultTypeInternal; +extern TaskExecutionEventDefaultTypeInternal _TaskExecutionEvent_default_instance_; +class TaskExecutionMetadata; +class TaskExecutionMetadataDefaultTypeInternal; +extern TaskExecutionMetadataDefaultTypeInternal _TaskExecutionMetadata_default_instance_; +class TaskNodeMetadata; +class TaskNodeMetadataDefaultTypeInternal; +extern TaskNodeMetadataDefaultTypeInternal _TaskNodeMetadata_default_instance_; +class WorkflowExecutionEvent; +class WorkflowExecutionEventDefaultTypeInternal; +extern WorkflowExecutionEventDefaultTypeInternal _WorkflowExecutionEvent_default_instance_; +class WorkflowNodeMetadata; +class WorkflowNodeMetadataDefaultTypeInternal; +extern WorkflowNodeMetadataDefaultTypeInternal _WorkflowNodeMetadata_default_instance_; +} // namespace event +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::event::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::event::DynamicWorkflowNodeMetadata>(Arena*); +template<> ::flyteidl::event::ExternalResourceInfo* Arena::CreateMaybeMessage<::flyteidl::event::ExternalResourceInfo>(Arena*); +template<> ::flyteidl::event::NodeExecutionEvent* Arena::CreateMaybeMessage<::flyteidl::event::NodeExecutionEvent>(Arena*); +template<> ::flyteidl::event::ParentNodeExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::event::ParentNodeExecutionMetadata>(Arena*); +template<> ::flyteidl::event::ParentTaskExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::event::ParentTaskExecutionMetadata>(Arena*); +template<> ::flyteidl::event::ResourcePoolInfo* Arena::CreateMaybeMessage<::flyteidl::event::ResourcePoolInfo>(Arena*); +template<> ::flyteidl::event::TaskExecutionEvent* Arena::CreateMaybeMessage<::flyteidl::event::TaskExecutionEvent>(Arena*); +template<> ::flyteidl::event::TaskExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::event::TaskExecutionMetadata>(Arena*); +template<> ::flyteidl::event::TaskNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::event::TaskNodeMetadata>(Arena*); +template<> ::flyteidl::event::WorkflowExecutionEvent* Arena::CreateMaybeMessage<::flyteidl::event::WorkflowExecutionEvent>(Arena*); +template<> ::flyteidl::event::WorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::event::WorkflowNodeMetadata>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace event { + +enum TaskExecutionMetadata_InstanceClass { + TaskExecutionMetadata_InstanceClass_DEFAULT = 0, + TaskExecutionMetadata_InstanceClass_INTERRUPTIBLE = 1, + TaskExecutionMetadata_InstanceClass_TaskExecutionMetadata_InstanceClass_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + TaskExecutionMetadata_InstanceClass_TaskExecutionMetadata_InstanceClass_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool TaskExecutionMetadata_InstanceClass_IsValid(int value); +const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata_InstanceClass_InstanceClass_MIN = TaskExecutionMetadata_InstanceClass_DEFAULT; +const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata_InstanceClass_InstanceClass_MAX = TaskExecutionMetadata_InstanceClass_INTERRUPTIBLE; +const int TaskExecutionMetadata_InstanceClass_InstanceClass_ARRAYSIZE = TaskExecutionMetadata_InstanceClass_InstanceClass_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TaskExecutionMetadata_InstanceClass_descriptor(); +inline const ::std::string& TaskExecutionMetadata_InstanceClass_Name(TaskExecutionMetadata_InstanceClass value) { + return ::google::protobuf::internal::NameOfEnum( + TaskExecutionMetadata_InstanceClass_descriptor(), value); +} +inline bool TaskExecutionMetadata_InstanceClass_Parse( + const ::std::string& name, TaskExecutionMetadata_InstanceClass* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TaskExecutionMetadata_InstanceClass_descriptor(), name, value); +} +// =================================================================== + +class WorkflowExecutionEvent final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.WorkflowExecutionEvent) */ { + public: + WorkflowExecutionEvent(); + virtual ~WorkflowExecutionEvent(); + + WorkflowExecutionEvent(const WorkflowExecutionEvent& from); + + inline WorkflowExecutionEvent& operator=(const WorkflowExecutionEvent& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionEvent(WorkflowExecutionEvent&& from) noexcept + : WorkflowExecutionEvent() { + *this = ::std::move(from); + } + + inline WorkflowExecutionEvent& operator=(WorkflowExecutionEvent&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowExecutionEvent& default_instance(); + + enum OutputResultCase { + kOutputUri = 5, + kError = 6, + kOutputData = 7, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionEvent* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(WorkflowExecutionEvent* other); + friend void swap(WorkflowExecutionEvent& a, WorkflowExecutionEvent& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionEvent* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowExecutionEvent* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowExecutionEvent& from); + void MergeFrom(const WorkflowExecutionEvent& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowExecutionEvent* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string producer_id = 2; + void clear_producer_id(); + static const int kProducerIdFieldNumber = 2; + const ::std::string& producer_id() const; + void set_producer_id(const ::std::string& value); + #if LANG_CXX11 + void set_producer_id(::std::string&& value); + #endif + void set_producer_id(const char* value); + void set_producer_id(const char* value, size_t size); + ::std::string* mutable_producer_id(); + ::std::string* release_producer_id(); + void set_allocated_producer_id(::std::string* producer_id); + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // .google.protobuf.Timestamp occurred_at = 4; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 4; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::WorkflowExecution_Phase phase() const; + void set_phase(::flyteidl::core::WorkflowExecution_Phase value); + + // string output_uri = 5; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 5; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 6; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 6; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // .flyteidl.core.LiteralMap output_data = 7; + bool has_output_data() const; + void clear_output_data(); + static const int kOutputDataFieldNumber = 7; + const ::flyteidl::core::LiteralMap& output_data() const; + ::flyteidl::core::LiteralMap* release_output_data(); + ::flyteidl::core::LiteralMap* mutable_output_data(); + void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); + + void clear_output_result(); + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) + private: + class HasBitSetters; + void set_has_output_uri(); + void set_has_error(); + void set_has_output_data(); + + inline bool has_output_result() const; + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr producer_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; + ::google::protobuf::Timestamp* occurred_at_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + ::flyteidl::core::LiteralMap* output_data_; + } output_result_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class NodeExecutionEvent final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.NodeExecutionEvent) */ { + public: + NodeExecutionEvent(); + virtual ~NodeExecutionEvent(); + + NodeExecutionEvent(const NodeExecutionEvent& from); + + inline NodeExecutionEvent& operator=(const NodeExecutionEvent& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionEvent(NodeExecutionEvent&& from) noexcept + : NodeExecutionEvent() { + *this = ::std::move(from); + } + + inline NodeExecutionEvent& operator=(NodeExecutionEvent&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const NodeExecutionEvent& default_instance(); + + enum InputValueCase { + kInputUri = 5, + kInputData = 20, + INPUT_VALUE_NOT_SET = 0, + }; + + enum OutputResultCase { + kOutputUri = 6, + kError = 7, + kOutputData = 15, + OUTPUT_RESULT_NOT_SET = 0, + }; + + enum TargetMetadataCase { + kWorkflowNodeMetadata = 8, + kTaskNodeMetadata = 14, + TARGET_METADATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionEvent* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(NodeExecutionEvent* other); + friend void swap(NodeExecutionEvent& a, NodeExecutionEvent& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionEvent* New() const final { + return CreateMaybeMessage(nullptr); + } + + NodeExecutionEvent* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const NodeExecutionEvent& from); + void MergeFrom(const NodeExecutionEvent& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NodeExecutionEvent* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string producer_id = 2; + void clear_producer_id(); + static const int kProducerIdFieldNumber = 2; + const ::std::string& producer_id() const; + void set_producer_id(const ::std::string& value); + #if LANG_CXX11 + void set_producer_id(::std::string&& value); + #endif + void set_producer_id(const char* value); + void set_producer_id(const char* value, size_t size); + ::std::string* mutable_producer_id(); + ::std::string* release_producer_id(); + void set_allocated_producer_id(::std::string* producer_id); + + // string retry_group = 11; + void clear_retry_group(); + static const int kRetryGroupFieldNumber = 11; + const ::std::string& retry_group() const; + void set_retry_group(const ::std::string& value); + #if LANG_CXX11 + void set_retry_group(::std::string&& value); + #endif + void set_retry_group(const char* value); + void set_retry_group(const char* value, size_t size); + ::std::string* mutable_retry_group(); + ::std::string* release_retry_group(); + void set_allocated_retry_group(::std::string* retry_group); + + // string spec_node_id = 12; + void clear_spec_node_id(); + static const int kSpecNodeIdFieldNumber = 12; + const ::std::string& spec_node_id() const; + void set_spec_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_spec_node_id(::std::string&& value); + #endif + void set_spec_node_id(const char* value); + void set_spec_node_id(const char* value, size_t size); + ::std::string* mutable_spec_node_id(); + ::std::string* release_spec_node_id(); + void set_allocated_spec_node_id(::std::string* spec_node_id); + + // string node_name = 13; + void clear_node_name(); + static const int kNodeNameFieldNumber = 13; + const ::std::string& node_name() const; + void set_node_name(const ::std::string& value); + #if LANG_CXX11 + void set_node_name(::std::string&& value); + #endif + void set_node_name(const char* value); + void set_node_name(const char* value, size_t size); + ::std::string* mutable_node_name(); + ::std::string* release_node_name(); + void set_allocated_node_name(::std::string* node_name); + + // string deck_uri = 19; + void clear_deck_uri(); + static const int kDeckUriFieldNumber = 19; + const ::std::string& deck_uri() const; + void set_deck_uri(const ::std::string& value); + #if LANG_CXX11 + void set_deck_uri(::std::string&& value); + #endif + void set_deck_uri(const char* value); + void set_deck_uri(const char* value, size_t size); + ::std::string* mutable_deck_uri(); + ::std::string* release_deck_uri(); + void set_allocated_deck_uri(::std::string* deck_uri); + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // .google.protobuf.Timestamp occurred_at = 4; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 4; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + bool has_parent_task_metadata() const; + void clear_parent_task_metadata(); + static const int kParentTaskMetadataFieldNumber = 9; + const ::flyteidl::event::ParentTaskExecutionMetadata& parent_task_metadata() const; + ::flyteidl::event::ParentTaskExecutionMetadata* release_parent_task_metadata(); + ::flyteidl::event::ParentTaskExecutionMetadata* mutable_parent_task_metadata(); + void set_allocated_parent_task_metadata(::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata); + + // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + bool has_parent_node_metadata() const; + void clear_parent_node_metadata(); + static const int kParentNodeMetadataFieldNumber = 10; + const ::flyteidl::event::ParentNodeExecutionMetadata& parent_node_metadata() const; + ::flyteidl::event::ParentNodeExecutionMetadata* release_parent_node_metadata(); + ::flyteidl::event::ParentNodeExecutionMetadata* mutable_parent_node_metadata(); + void set_allocated_parent_node_metadata(::flyteidl::event::ParentNodeExecutionMetadata* parent_node_metadata); + + // .google.protobuf.Timestamp reported_at = 21; + bool has_reported_at() const; + void clear_reported_at(); + static const int kReportedAtFieldNumber = 21; + const ::google::protobuf::Timestamp& reported_at() const; + ::google::protobuf::Timestamp* release_reported_at(); + ::google::protobuf::Timestamp* mutable_reported_at(); + void set_allocated_reported_at(::google::protobuf::Timestamp* reported_at); + + // .flyteidl.core.NodeExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::NodeExecution_Phase phase() const; + void set_phase(::flyteidl::core::NodeExecution_Phase value); + + // int32 event_version = 16; + void clear_event_version(); + static const int kEventVersionFieldNumber = 16; + ::google::protobuf::int32 event_version() const; + void set_event_version(::google::protobuf::int32 value); + + // bool is_parent = 17; + void clear_is_parent(); + static const int kIsParentFieldNumber = 17; + bool is_parent() const; + void set_is_parent(bool value); + + // bool is_dynamic = 18; + void clear_is_dynamic(); + static const int kIsDynamicFieldNumber = 18; + bool is_dynamic() const; + void set_is_dynamic(bool value); + + // string input_uri = 5; + private: + bool has_input_uri() const; + public: + void clear_input_uri(); + static const int kInputUriFieldNumber = 5; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.LiteralMap input_data = 20; + bool has_input_data() const; + void clear_input_data(); + static const int kInputDataFieldNumber = 20; + const ::flyteidl::core::LiteralMap& input_data() const; + ::flyteidl::core::LiteralMap* release_input_data(); + ::flyteidl::core::LiteralMap* mutable_input_data(); + void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); + + // string output_uri = 6; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 6; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 7; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 7; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // .flyteidl.core.LiteralMap output_data = 15; + bool has_output_data() const; + void clear_output_data(); + static const int kOutputDataFieldNumber = 15; + const ::flyteidl::core::LiteralMap& output_data() const; + ::flyteidl::core::LiteralMap* release_output_data(); + ::flyteidl::core::LiteralMap* mutable_output_data(); + void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + bool has_workflow_node_metadata() const; + void clear_workflow_node_metadata(); + static const int kWorkflowNodeMetadataFieldNumber = 8; + const ::flyteidl::event::WorkflowNodeMetadata& workflow_node_metadata() const; + ::flyteidl::event::WorkflowNodeMetadata* release_workflow_node_metadata(); + ::flyteidl::event::WorkflowNodeMetadata* mutable_workflow_node_metadata(); + void set_allocated_workflow_node_metadata(::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata); + + // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + bool has_task_node_metadata() const; + void clear_task_node_metadata(); + static const int kTaskNodeMetadataFieldNumber = 14; + const ::flyteidl::event::TaskNodeMetadata& task_node_metadata() const; + ::flyteidl::event::TaskNodeMetadata* release_task_node_metadata(); + ::flyteidl::event::TaskNodeMetadata* mutable_task_node_metadata(); + void set_allocated_task_node_metadata(::flyteidl::event::TaskNodeMetadata* task_node_metadata); + + void clear_input_value(); + InputValueCase input_value_case() const; + void clear_output_result(); + OutputResultCase output_result_case() const; + void clear_target_metadata(); + TargetMetadataCase target_metadata_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) + private: + class HasBitSetters; + void set_has_input_uri(); + void set_has_input_data(); + void set_has_output_uri(); + void set_has_error(); + void set_has_output_data(); + void set_has_workflow_node_metadata(); + void set_has_task_node_metadata(); + + inline bool has_input_value() const; + inline void clear_has_input_value(); + + inline bool has_output_result() const; + inline void clear_has_output_result(); + + inline bool has_target_metadata() const; + inline void clear_has_target_metadata(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr producer_id_; + ::google::protobuf::internal::ArenaStringPtr retry_group_; + ::google::protobuf::internal::ArenaStringPtr spec_node_id_; + ::google::protobuf::internal::ArenaStringPtr node_name_; + ::google::protobuf::internal::ArenaStringPtr deck_uri_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + ::google::protobuf::Timestamp* occurred_at_; + ::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata_; + ::flyteidl::event::ParentNodeExecutionMetadata* parent_node_metadata_; + ::google::protobuf::Timestamp* reported_at_; + int phase_; + ::google::protobuf::int32 event_version_; + bool is_parent_; + bool is_dynamic_; + union InputValueUnion { + InputValueUnion() {} + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::LiteralMap* input_data_; + } input_value_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + ::flyteidl::core::LiteralMap* output_data_; + } output_result_; + union TargetMetadataUnion { + TargetMetadataUnion() {} + ::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata_; + ::flyteidl::event::TaskNodeMetadata* task_node_metadata_; + } target_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[3]; + + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowNodeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.WorkflowNodeMetadata) */ { + public: + WorkflowNodeMetadata(); + virtual ~WorkflowNodeMetadata(); + + WorkflowNodeMetadata(const WorkflowNodeMetadata& from); + + inline WorkflowNodeMetadata& operator=(const WorkflowNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowNodeMetadata(WorkflowNodeMetadata&& from) noexcept + : WorkflowNodeMetadata() { + *this = ::std::move(from); + } + + inline WorkflowNodeMetadata& operator=(WorkflowNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_WorkflowNodeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(WorkflowNodeMetadata* other); + friend void swap(WorkflowNodeMetadata& a, WorkflowNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowNodeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowNodeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowNodeMetadata& from); + void MergeFrom(const WorkflowNodeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskNodeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.TaskNodeMetadata) */ { + public: + TaskNodeMetadata(); + virtual ~TaskNodeMetadata(); + + TaskNodeMetadata(const TaskNodeMetadata& from); + + inline TaskNodeMetadata& operator=(const TaskNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskNodeMetadata(TaskNodeMetadata&& from) noexcept + : TaskNodeMetadata() { + *this = ::std::move(from); + } + + inline TaskNodeMetadata& operator=(TaskNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_TaskNodeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TaskNodeMetadata* other); + friend void swap(TaskNodeMetadata& a, TaskNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskNodeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskNodeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskNodeMetadata& from); + void MergeFrom(const TaskNodeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string checkpoint_uri = 4; + void clear_checkpoint_uri(); + static const int kCheckpointUriFieldNumber = 4; + const ::std::string& checkpoint_uri() const; + void set_checkpoint_uri(const ::std::string& value); + #if LANG_CXX11 + void set_checkpoint_uri(::std::string&& value); + #endif + void set_checkpoint_uri(const char* value); + void set_checkpoint_uri(const char* value, size_t size); + ::std::string* mutable_checkpoint_uri(); + ::std::string* release_checkpoint_uri(); + void set_allocated_checkpoint_uri(::std::string* checkpoint_uri); + + // .flyteidl.core.CatalogMetadata catalog_key = 2; + bool has_catalog_key() const; + void clear_catalog_key(); + static const int kCatalogKeyFieldNumber = 2; + const ::flyteidl::core::CatalogMetadata& catalog_key() const; + ::flyteidl::core::CatalogMetadata* release_catalog_key(); + ::flyteidl::core::CatalogMetadata* mutable_catalog_key(); + void set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key); + + // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + bool has_dynamic_workflow() const; + void clear_dynamic_workflow(); + static const int kDynamicWorkflowFieldNumber = 16; + const ::flyteidl::event::DynamicWorkflowNodeMetadata& dynamic_workflow() const; + ::flyteidl::event::DynamicWorkflowNodeMetadata* release_dynamic_workflow(); + ::flyteidl::event::DynamicWorkflowNodeMetadata* mutable_dynamic_workflow(); + void set_allocated_dynamic_workflow(::flyteidl::event::DynamicWorkflowNodeMetadata* dynamic_workflow); + + // .flyteidl.core.CatalogCacheStatus cache_status = 1; + void clear_cache_status(); + static const int kCacheStatusFieldNumber = 1; + ::flyteidl::core::CatalogCacheStatus cache_status() const; + void set_cache_status(::flyteidl::core::CatalogCacheStatus value); + + // .flyteidl.core.CatalogReservation.Status reservation_status = 3; + void clear_reservation_status(); + static const int kReservationStatusFieldNumber = 3; + ::flyteidl::core::CatalogReservation_Status reservation_status() const; + void set_reservation_status(::flyteidl::core::CatalogReservation_Status value); + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskNodeMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr checkpoint_uri_; + ::flyteidl::core::CatalogMetadata* catalog_key_; + ::flyteidl::event::DynamicWorkflowNodeMetadata* dynamic_workflow_; + int cache_status_; + int reservation_status_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class DynamicWorkflowNodeMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.DynamicWorkflowNodeMetadata) */ { + public: + DynamicWorkflowNodeMetadata(); + virtual ~DynamicWorkflowNodeMetadata(); + + DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from); + + inline DynamicWorkflowNodeMetadata& operator=(const DynamicWorkflowNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DynamicWorkflowNodeMetadata(DynamicWorkflowNodeMetadata&& from) noexcept + : DynamicWorkflowNodeMetadata() { + *this = ::std::move(from); + } + + inline DynamicWorkflowNodeMetadata& operator=(DynamicWorkflowNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DynamicWorkflowNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DynamicWorkflowNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_DynamicWorkflowNodeMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(DynamicWorkflowNodeMetadata* other); + friend void swap(DynamicWorkflowNodeMetadata& a, DynamicWorkflowNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DynamicWorkflowNodeMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + DynamicWorkflowNodeMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DynamicWorkflowNodeMetadata& from); + void MergeFrom(const DynamicWorkflowNodeMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DynamicWorkflowNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string dynamic_job_spec_uri = 3; + void clear_dynamic_job_spec_uri(); + static const int kDynamicJobSpecUriFieldNumber = 3; + const ::std::string& dynamic_job_spec_uri() const; + void set_dynamic_job_spec_uri(const ::std::string& value); + #if LANG_CXX11 + void set_dynamic_job_spec_uri(::std::string&& value); + #endif + void set_dynamic_job_spec_uri(const char* value); + void set_dynamic_job_spec_uri(const char* value, size_t size); + ::std::string* mutable_dynamic_job_spec_uri(); + ::std::string* release_dynamic_job_spec_uri(); + void set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri); + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + bool has_compiled_workflow() const; + void clear_compiled_workflow(); + static const int kCompiledWorkflowFieldNumber = 2; + const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow() const; + ::flyteidl::core::CompiledWorkflowClosure* release_compiled_workflow(); + ::flyteidl::core::CompiledWorkflowClosure* mutable_compiled_workflow(); + void set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow); + + // @@protoc_insertion_point(class_scope:flyteidl.event.DynamicWorkflowNodeMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr dynamic_job_spec_uri_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::core::CompiledWorkflowClosure* compiled_workflow_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class ParentTaskExecutionMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ParentTaskExecutionMetadata) */ { + public: + ParentTaskExecutionMetadata(); + virtual ~ParentTaskExecutionMetadata(); + + ParentTaskExecutionMetadata(const ParentTaskExecutionMetadata& from); + + inline ParentTaskExecutionMetadata& operator=(const ParentTaskExecutionMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParentTaskExecutionMetadata(ParentTaskExecutionMetadata&& from) noexcept + : ParentTaskExecutionMetadata() { + *this = ::std::move(from); + } + + inline ParentTaskExecutionMetadata& operator=(ParentTaskExecutionMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParentTaskExecutionMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParentTaskExecutionMetadata* internal_default_instance() { + return reinterpret_cast( + &_ParentTaskExecutionMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(ParentTaskExecutionMetadata* other); + friend void swap(ParentTaskExecutionMetadata& a, ParentTaskExecutionMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParentTaskExecutionMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParentTaskExecutionMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParentTaskExecutionMetadata& from); + void MergeFrom(const ParentTaskExecutionMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParentTaskExecutionMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class ParentNodeExecutionMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ParentNodeExecutionMetadata) */ { + public: + ParentNodeExecutionMetadata(); + virtual ~ParentNodeExecutionMetadata(); + + ParentNodeExecutionMetadata(const ParentNodeExecutionMetadata& from); + + inline ParentNodeExecutionMetadata& operator=(const ParentNodeExecutionMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParentNodeExecutionMetadata(ParentNodeExecutionMetadata&& from) noexcept + : ParentNodeExecutionMetadata() { + *this = ::std::move(from); + } + + inline ParentNodeExecutionMetadata& operator=(ParentNodeExecutionMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParentNodeExecutionMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParentNodeExecutionMetadata* internal_default_instance() { + return reinterpret_cast( + &_ParentNodeExecutionMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ParentNodeExecutionMetadata* other); + friend void swap(ParentNodeExecutionMetadata& a, ParentNodeExecutionMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParentNodeExecutionMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParentNodeExecutionMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParentNodeExecutionMetadata& from); + void MergeFrom(const ParentNodeExecutionMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParentNodeExecutionMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string node_id = 1; + void clear_node_id(); + static const int kNodeIdFieldNumber = 1; + const ::std::string& node_id() const; + void set_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_node_id(::std::string&& value); + #endif + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + ::std::string* mutable_node_id(); + ::std::string* release_node_id(); + void set_allocated_node_id(::std::string* node_id); + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentNodeExecutionMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr node_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionEvent final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.TaskExecutionEvent) */ { + public: + TaskExecutionEvent(); + virtual ~TaskExecutionEvent(); + + TaskExecutionEvent(const TaskExecutionEvent& from); + + inline TaskExecutionEvent& operator=(const TaskExecutionEvent& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionEvent(TaskExecutionEvent&& from) noexcept + : TaskExecutionEvent() { + *this = ::std::move(from); + } + + inline TaskExecutionEvent& operator=(TaskExecutionEvent&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionEvent& default_instance(); + + enum InputValueCase { + kInputUri = 8, + kInputData = 19, + INPUT_VALUE_NOT_SET = 0, + }; + + enum OutputResultCase { + kOutputUri = 9, + kError = 10, + kOutputData = 17, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionEvent* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionEvent_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(TaskExecutionEvent* other); + friend void swap(TaskExecutionEvent& a, TaskExecutionEvent& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionEvent* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionEvent* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionEvent& from); + void MergeFrom(const TaskExecutionEvent& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionEvent* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.TaskLog logs = 6; + int logs_size() const; + void clear_logs(); + static const int kLogsFieldNumber = 6; + ::flyteidl::core::TaskLog* mutable_logs(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* + mutable_logs(); + const ::flyteidl::core::TaskLog& logs(int index) const; + ::flyteidl::core::TaskLog* add_logs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& + logs() const; + + // string producer_id = 5; + void clear_producer_id(); + static const int kProducerIdFieldNumber = 5; + const ::std::string& producer_id() const; + void set_producer_id(const ::std::string& value); + #if LANG_CXX11 + void set_producer_id(::std::string&& value); + #endif + void set_producer_id(const char* value); + void set_producer_id(const char* value, size_t size); + ::std::string* mutable_producer_id(); + ::std::string* release_producer_id(); + void set_allocated_producer_id(::std::string* producer_id); + + // string reason = 13; + void clear_reason(); + static const int kReasonFieldNumber = 13; + const ::std::string& reason() const; + void set_reason(const ::std::string& value); + #if LANG_CXX11 + void set_reason(::std::string&& value); + #endif + void set_reason(const char* value); + void set_reason(const char* value, size_t size); + ::std::string* mutable_reason(); + ::std::string* release_reason(); + void set_allocated_reason(::std::string* reason); + + // string task_type = 14; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 14; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // .flyteidl.core.Identifier task_id = 1; + bool has_task_id() const; + void clear_task_id(); + static const int kTaskIdFieldNumber = 1; + const ::flyteidl::core::Identifier& task_id() const; + ::flyteidl::core::Identifier* release_task_id(); + ::flyteidl::core::Identifier* mutable_task_id(); + void set_allocated_task_id(::flyteidl::core::Identifier* task_id); + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + bool has_parent_node_execution_id() const; + void clear_parent_node_execution_id(); + static const int kParentNodeExecutionIdFieldNumber = 2; + const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_parent_node_execution_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_parent_node_execution_id(); + void set_allocated_parent_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id); + + // .google.protobuf.Timestamp occurred_at = 7; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 7; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // .google.protobuf.Struct custom_info = 11; + bool has_custom_info() const; + void clear_custom_info(); + static const int kCustomInfoFieldNumber = 11; + const ::google::protobuf::Struct& custom_info() const; + ::google::protobuf::Struct* release_custom_info(); + ::google::protobuf::Struct* mutable_custom_info(); + void set_allocated_custom_info(::google::protobuf::Struct* custom_info); + + // .flyteidl.event.TaskExecutionMetadata metadata = 16; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 16; + const ::flyteidl::event::TaskExecutionMetadata& metadata() const; + ::flyteidl::event::TaskExecutionMetadata* release_metadata(); + ::flyteidl::event::TaskExecutionMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata); + + // .google.protobuf.Timestamp reported_at = 20; + bool has_reported_at() const; + void clear_reported_at(); + static const int kReportedAtFieldNumber = 20; + const ::google::protobuf::Timestamp& reported_at() const; + ::google::protobuf::Timestamp* release_reported_at(); + ::google::protobuf::Timestamp* mutable_reported_at(); + void set_allocated_reported_at(::google::protobuf::Timestamp* reported_at); + + // uint32 retry_attempt = 3; + void clear_retry_attempt(); + static const int kRetryAttemptFieldNumber = 3; + ::google::protobuf::uint32 retry_attempt() const; + void set_retry_attempt(::google::protobuf::uint32 value); + + // .flyteidl.core.TaskExecution.Phase phase = 4; + void clear_phase(); + static const int kPhaseFieldNumber = 4; + ::flyteidl::core::TaskExecution_Phase phase() const; + void set_phase(::flyteidl::core::TaskExecution_Phase value); + + // uint32 phase_version = 12; + void clear_phase_version(); + static const int kPhaseVersionFieldNumber = 12; + ::google::protobuf::uint32 phase_version() const; + void set_phase_version(::google::protobuf::uint32 value); + + // int32 event_version = 18; + void clear_event_version(); + static const int kEventVersionFieldNumber = 18; + ::google::protobuf::int32 event_version() const; + void set_event_version(::google::protobuf::int32 value); + + // string input_uri = 8; + private: + bool has_input_uri() const; + public: + void clear_input_uri(); + static const int kInputUriFieldNumber = 8; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.LiteralMap input_data = 19; + bool has_input_data() const; + void clear_input_data(); + static const int kInputDataFieldNumber = 19; + const ::flyteidl::core::LiteralMap& input_data() const; + ::flyteidl::core::LiteralMap* release_input_data(); + ::flyteidl::core::LiteralMap* mutable_input_data(); + void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); + + // string output_uri = 9; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 9; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 10; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 10; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // .flyteidl.core.LiteralMap output_data = 17; + bool has_output_data() const; + void clear_output_data(); + static const int kOutputDataFieldNumber = 17; + const ::flyteidl::core::LiteralMap& output_data() const; + ::flyteidl::core::LiteralMap* release_output_data(); + ::flyteidl::core::LiteralMap* mutable_output_data(); + void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); + + void clear_input_value(); + InputValueCase input_value_case() const; + void clear_output_result(); + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) + private: + class HasBitSetters; + void set_has_input_uri(); + void set_has_input_data(); + void set_has_output_uri(); + void set_has_error(); + void set_has_output_data(); + + inline bool has_input_value() const; + inline void clear_has_input_value(); + + inline bool has_output_result() const; + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; + ::google::protobuf::internal::ArenaStringPtr producer_id_; + ::google::protobuf::internal::ArenaStringPtr reason_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::flyteidl::core::Identifier* task_id_; + ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id_; + ::google::protobuf::Timestamp* occurred_at_; + ::google::protobuf::Struct* custom_info_; + ::flyteidl::event::TaskExecutionMetadata* metadata_; + ::google::protobuf::Timestamp* reported_at_; + ::google::protobuf::uint32 retry_attempt_; + int phase_; + ::google::protobuf::uint32 phase_version_; + ::google::protobuf::int32 event_version_; + union InputValueUnion { + InputValueUnion() {} + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::LiteralMap* input_data_; + } input_value_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + ::flyteidl::core::LiteralMap* output_data_; + } output_result_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[2]; + + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class ExternalResourceInfo final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ExternalResourceInfo) */ { + public: + ExternalResourceInfo(); + virtual ~ExternalResourceInfo(); + + ExternalResourceInfo(const ExternalResourceInfo& from); + + inline ExternalResourceInfo& operator=(const ExternalResourceInfo& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExternalResourceInfo(ExternalResourceInfo&& from) noexcept + : ExternalResourceInfo() { + *this = ::std::move(from); + } + + inline ExternalResourceInfo& operator=(ExternalResourceInfo&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ExternalResourceInfo& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExternalResourceInfo* internal_default_instance() { + return reinterpret_cast( + &_ExternalResourceInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(ExternalResourceInfo* other); + friend void swap(ExternalResourceInfo& a, ExternalResourceInfo& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExternalResourceInfo* New() const final { + return CreateMaybeMessage(nullptr); + } + + ExternalResourceInfo* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ExternalResourceInfo& from); + void MergeFrom(const ExternalResourceInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExternalResourceInfo* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.TaskLog logs = 6; + int logs_size() const; + void clear_logs(); + static const int kLogsFieldNumber = 6; + ::flyteidl::core::TaskLog* mutable_logs(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* + mutable_logs(); + const ::flyteidl::core::TaskLog& logs(int index) const; + ::flyteidl::core::TaskLog* add_logs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& + logs() const; + + // string external_id = 1; + void clear_external_id(); + static const int kExternalIdFieldNumber = 1; + const ::std::string& external_id() const; + void set_external_id(const ::std::string& value); + #if LANG_CXX11 + void set_external_id(::std::string&& value); + #endif + void set_external_id(const char* value); + void set_external_id(const char* value, size_t size); + ::std::string* mutable_external_id(); + ::std::string* release_external_id(); + void set_allocated_external_id(::std::string* external_id); + + // uint32 index = 2; + void clear_index(); + static const int kIndexFieldNumber = 2; + ::google::protobuf::uint32 index() const; + void set_index(::google::protobuf::uint32 value); + + // uint32 retry_attempt = 3; + void clear_retry_attempt(); + static const int kRetryAttemptFieldNumber = 3; + ::google::protobuf::uint32 retry_attempt() const; + void set_retry_attempt(::google::protobuf::uint32 value); + + // .flyteidl.core.TaskExecution.Phase phase = 4; + void clear_phase(); + static const int kPhaseFieldNumber = 4; + ::flyteidl::core::TaskExecution_Phase phase() const; + void set_phase(::flyteidl::core::TaskExecution_Phase value); + + // .flyteidl.core.CatalogCacheStatus cache_status = 5; + void clear_cache_status(); + static const int kCacheStatusFieldNumber = 5; + ::flyteidl::core::CatalogCacheStatus cache_status() const; + void set_cache_status(::flyteidl::core::CatalogCacheStatus value); + + // @@protoc_insertion_point(class_scope:flyteidl.event.ExternalResourceInfo) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; + ::google::protobuf::internal::ArenaStringPtr external_id_; + ::google::protobuf::uint32 index_; + ::google::protobuf::uint32 retry_attempt_; + int phase_; + int cache_status_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class ResourcePoolInfo final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ResourcePoolInfo) */ { + public: + ResourcePoolInfo(); + virtual ~ResourcePoolInfo(); + + ResourcePoolInfo(const ResourcePoolInfo& from); + + inline ResourcePoolInfo& operator=(const ResourcePoolInfo& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ResourcePoolInfo(ResourcePoolInfo&& from) noexcept + : ResourcePoolInfo() { + *this = ::std::move(from); + } + + inline ResourcePoolInfo& operator=(ResourcePoolInfo&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ResourcePoolInfo& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ResourcePoolInfo* internal_default_instance() { + return reinterpret_cast( + &_ResourcePoolInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + void Swap(ResourcePoolInfo* other); + friend void swap(ResourcePoolInfo& a, ResourcePoolInfo& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ResourcePoolInfo* New() const final { + return CreateMaybeMessage(nullptr); + } + + ResourcePoolInfo* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ResourcePoolInfo& from); + void MergeFrom(const ResourcePoolInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ResourcePoolInfo* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string allocation_token = 1; + void clear_allocation_token(); + static const int kAllocationTokenFieldNumber = 1; + const ::std::string& allocation_token() const; + void set_allocation_token(const ::std::string& value); + #if LANG_CXX11 + void set_allocation_token(::std::string&& value); + #endif + void set_allocation_token(const char* value); + void set_allocation_token(const char* value, size_t size); + ::std::string* mutable_allocation_token(); + ::std::string* release_allocation_token(); + void set_allocated_allocation_token(::std::string* allocation_token); + + // string namespace = 2; + void clear_namespace_(); + static const int kNamespaceFieldNumber = 2; + const ::std::string& namespace_() const; + void set_namespace_(const ::std::string& value); + #if LANG_CXX11 + void set_namespace_(::std::string&& value); + #endif + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + ::std::string* mutable_namespace_(); + ::std::string* release_namespace_(); + void set_allocated_namespace_(::std::string* namespace_); + + // @@protoc_insertion_point(class_scope:flyteidl.event.ResourcePoolInfo) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr allocation_token_; + ::google::protobuf::internal::ArenaStringPtr namespace__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskExecutionMetadata final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.TaskExecutionMetadata) */ { + public: + TaskExecutionMetadata(); + virtual ~TaskExecutionMetadata(); + + TaskExecutionMetadata(const TaskExecutionMetadata& from); + + inline TaskExecutionMetadata& operator=(const TaskExecutionMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionMetadata(TaskExecutionMetadata&& from) noexcept + : TaskExecutionMetadata() { + *this = ::std::move(from); + } + + inline TaskExecutionMetadata& operator=(TaskExecutionMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskExecutionMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionMetadata* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + void Swap(TaskExecutionMetadata* other); + friend void swap(TaskExecutionMetadata& a, TaskExecutionMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskExecutionMetadata* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskExecutionMetadata& from); + void MergeFrom(const TaskExecutionMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskExecutionMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TaskExecutionMetadata_InstanceClass InstanceClass; + static const InstanceClass DEFAULT = + TaskExecutionMetadata_InstanceClass_DEFAULT; + static const InstanceClass INTERRUPTIBLE = + TaskExecutionMetadata_InstanceClass_INTERRUPTIBLE; + static inline bool InstanceClass_IsValid(int value) { + return TaskExecutionMetadata_InstanceClass_IsValid(value); + } + static const InstanceClass InstanceClass_MIN = + TaskExecutionMetadata_InstanceClass_InstanceClass_MIN; + static const InstanceClass InstanceClass_MAX = + TaskExecutionMetadata_InstanceClass_InstanceClass_MAX; + static const int InstanceClass_ARRAYSIZE = + TaskExecutionMetadata_InstanceClass_InstanceClass_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + InstanceClass_descriptor() { + return TaskExecutionMetadata_InstanceClass_descriptor(); + } + static inline const ::std::string& InstanceClass_Name(InstanceClass value) { + return TaskExecutionMetadata_InstanceClass_Name(value); + } + static inline bool InstanceClass_Parse(const ::std::string& name, + InstanceClass* value) { + return TaskExecutionMetadata_InstanceClass_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + int external_resources_size() const; + void clear_external_resources(); + static const int kExternalResourcesFieldNumber = 2; + ::flyteidl::event::ExternalResourceInfo* mutable_external_resources(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >* + mutable_external_resources(); + const ::flyteidl::event::ExternalResourceInfo& external_resources(int index) const; + ::flyteidl::event::ExternalResourceInfo* add_external_resources(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >& + external_resources() const; + + // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + int resource_pool_info_size() const; + void clear_resource_pool_info(); + static const int kResourcePoolInfoFieldNumber = 3; + ::flyteidl::event::ResourcePoolInfo* mutable_resource_pool_info(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >* + mutable_resource_pool_info(); + const ::flyteidl::event::ResourcePoolInfo& resource_pool_info(int index) const; + ::flyteidl::event::ResourcePoolInfo* add_resource_pool_info(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >& + resource_pool_info() const; + + // string generated_name = 1; + void clear_generated_name(); + static const int kGeneratedNameFieldNumber = 1; + const ::std::string& generated_name() const; + void set_generated_name(const ::std::string& value); + #if LANG_CXX11 + void set_generated_name(::std::string&& value); + #endif + void set_generated_name(const char* value); + void set_generated_name(const char* value, size_t size); + ::std::string* mutable_generated_name(); + ::std::string* release_generated_name(); + void set_allocated_generated_name(::std::string* generated_name); + + // string plugin_identifier = 4; + void clear_plugin_identifier(); + static const int kPluginIdentifierFieldNumber = 4; + const ::std::string& plugin_identifier() const; + void set_plugin_identifier(const ::std::string& value); + #if LANG_CXX11 + void set_plugin_identifier(::std::string&& value); + #endif + void set_plugin_identifier(const char* value); + void set_plugin_identifier(const char* value, size_t size); + ::std::string* mutable_plugin_identifier(); + ::std::string* release_plugin_identifier(); + void set_allocated_plugin_identifier(::std::string* plugin_identifier); + + // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + void clear_instance_class(); + static const int kInstanceClassFieldNumber = 16; + ::flyteidl::event::TaskExecutionMetadata_InstanceClass instance_class() const; + void set_instance_class(::flyteidl::event::TaskExecutionMetadata_InstanceClass value); + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionMetadata) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo > external_resources_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo > resource_pool_info_; + ::google::protobuf::internal::ArenaStringPtr generated_name_; + ::google::protobuf::internal::ArenaStringPtr plugin_identifier_; + int instance_class_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowExecutionEvent + +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; +inline bool WorkflowExecutionEvent::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionEvent::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionEvent::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionEvent::mutable_execution_id() { + + if (execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.execution_id) + return execution_id_; +} +inline void WorkflowExecutionEvent::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); + } + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + + } + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.execution_id) +} + +// string producer_id = 2; +inline void WorkflowExecutionEvent::clear_producer_id() { + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionEvent::producer_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.producer_id) + return producer_id_.GetNoArena(); +} +inline void WorkflowExecutionEvent::set_producer_id(const ::std::string& value) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +#if LANG_CXX11 +inline void WorkflowExecutionEvent::set_producer_id(::std::string&& value) { + + producer_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +#endif +inline void WorkflowExecutionEvent::set_producer_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +inline void WorkflowExecutionEvent::set_producer_id(const char* value, size_t size) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +inline ::std::string* WorkflowExecutionEvent::mutable_producer_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.producer_id) + return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionEvent::release_producer_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.producer_id) + + return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { + if (producer_id != nullptr) { + + } else { + + } + producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.producer_id) +} + +// .flyteidl.core.WorkflowExecution.Phase phase = 3; +inline void WorkflowExecutionEvent::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::WorkflowExecution_Phase WorkflowExecutionEvent::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.phase) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); +} +inline void WorkflowExecutionEvent::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.phase) +} + +// .google.protobuf.Timestamp occurred_at = 4; +inline bool WorkflowExecutionEvent::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& WorkflowExecutionEvent::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.occurred_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* WorkflowExecutionEvent::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* WorkflowExecutionEvent::mutable_occurred_at() { + + if (occurred_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + occurred_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.occurred_at) + return occurred_at_; +} +inline void WorkflowExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.occurred_at) +} + +// string output_uri = 5; +inline bool WorkflowExecutionEvent::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void WorkflowExecutionEvent::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void WorkflowExecutionEvent::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& WorkflowExecutionEvent::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void WorkflowExecutionEvent::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +#if LANG_CXX11 +inline void WorkflowExecutionEvent::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +#endif +inline void WorkflowExecutionEvent::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +inline void WorkflowExecutionEvent::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +inline ::std::string* WorkflowExecutionEvent::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionEvent::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void WorkflowExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { + if (has_output_result()) { + clear_output_result(); + } + if (output_uri != nullptr) { + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.output_uri) +} + +// .flyteidl.core.ExecutionError error = 6; +inline bool WorkflowExecutionEvent::has_error() const { + return output_result_case() == kError; +} +inline void WorkflowExecutionEvent::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* WorkflowExecutionEvent::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ExecutionError& WorkflowExecutionEvent::error() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* WorkflowExecutionEvent::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.error) + return output_result_.error_; +} + +// .flyteidl.core.LiteralMap output_data = 7; +inline bool WorkflowExecutionEvent::has_output_data() const { + return output_result_case() == kOutputData; +} +inline void WorkflowExecutionEvent::set_has_output_data() { + _oneof_case_[0] = kOutputData; +} +inline ::flyteidl::core::LiteralMap* WorkflowExecutionEvent::release_output_data() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.output_data) + if (has_output_data()) { + clear_has_output_result(); + ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; + output_result_.output_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& WorkflowExecutionEvent::output_data() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.output_data) + return has_output_data() + ? *output_result_.output_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* WorkflowExecutionEvent::mutable_output_data() { + if (!has_output_data()) { + clear_output_result(); + set_has_output_data(); + output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.output_data) + return output_result_.output_data_; +} + +inline bool WorkflowExecutionEvent::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void WorkflowExecutionEvent::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline WorkflowExecutionEvent::OutputResultCase WorkflowExecutionEvent::output_result_case() const { + return WorkflowExecutionEvent::OutputResultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// NodeExecutionEvent + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecutionEvent::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionEvent::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionEvent::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionEvent::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.id) + return id_; +} +inline void NodeExecutionEvent::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.id) +} + +// string producer_id = 2; +inline void NodeExecutionEvent::clear_producer_id() { + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEvent::producer_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.producer_id) + return producer_id_.GetNoArena(); +} +inline void NodeExecutionEvent::set_producer_id(const ::std::string& value) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.producer_id) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_producer_id(::std::string&& value) { + + producer_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.producer_id) +} +#endif +inline void NodeExecutionEvent::set_producer_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.producer_id) +} +inline void NodeExecutionEvent::set_producer_id(const char* value, size_t size) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.producer_id) +} +inline ::std::string* NodeExecutionEvent::mutable_producer_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.producer_id) + return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_producer_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.producer_id) + + return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { + if (producer_id != nullptr) { + + } else { + + } + producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.producer_id) +} + +// .flyteidl.core.NodeExecution.Phase phase = 3; +inline void NodeExecutionEvent::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::NodeExecution_Phase NodeExecutionEvent::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.phase) + return static_cast< ::flyteidl::core::NodeExecution_Phase >(phase_); +} +inline void NodeExecutionEvent::set_phase(::flyteidl::core::NodeExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.phase) +} + +// .google.protobuf.Timestamp occurred_at = 4; +inline bool NodeExecutionEvent::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& NodeExecutionEvent::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.occurred_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionEvent::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionEvent::mutable_occurred_at() { + + if (occurred_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + occurred_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.occurred_at) + return occurred_at_; +} +inline void NodeExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.occurred_at) +} + +// string input_uri = 5; +inline bool NodeExecutionEvent::has_input_uri() const { + return input_value_case() == kInputUri; +} +inline void NodeExecutionEvent::set_has_input_uri() { + _oneof_case_[0] = kInputUri; +} +inline void NodeExecutionEvent::clear_input_uri() { + if (has_input_uri()) { + input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_input_value(); + } +} +inline const ::std::string& NodeExecutionEvent::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.input_uri) + if (has_input_uri()) { + return input_value_.input_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void NodeExecutionEvent::set_input_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.input_uri) + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.input_uri) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_input_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.input_uri) + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.input_uri) +} +#endif +inline void NodeExecutionEvent::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.input_uri) +} +inline void NodeExecutionEvent::set_input_uri(const char* value, size_t size) { + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.input_uri) +} +inline ::std::string* NodeExecutionEvent::mutable_input_uri() { + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.input_uri) + return input_value_.input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.input_uri) + if (has_input_uri()) { + clear_has_input_value(); + return input_value_.input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void NodeExecutionEvent::set_allocated_input_uri(::std::string* input_uri) { + if (has_input_value()) { + clear_input_value(); + } + if (input_uri != nullptr) { + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(input_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.input_uri) +} + +// .flyteidl.core.LiteralMap input_data = 20; +inline bool NodeExecutionEvent::has_input_data() const { + return input_value_case() == kInputData; +} +inline void NodeExecutionEvent::set_has_input_data() { + _oneof_case_[0] = kInputData; +} +inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::release_input_data() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.input_data) + if (has_input_data()) { + clear_has_input_value(); + ::flyteidl::core::LiteralMap* temp = input_value_.input_data_; + input_value_.input_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& NodeExecutionEvent::input_data() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.input_data) + return has_input_data() + ? *input_value_.input_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::mutable_input_data() { + if (!has_input_data()) { + clear_input_value(); + set_has_input_data(); + input_value_.input_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.input_data) + return input_value_.input_data_; +} + +// string output_uri = 6; +inline bool NodeExecutionEvent::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void NodeExecutionEvent::set_has_output_uri() { + _oneof_case_[1] = kOutputUri; +} +inline void NodeExecutionEvent::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& NodeExecutionEvent::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void NodeExecutionEvent::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.output_uri) +} +#endif +inline void NodeExecutionEvent::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.output_uri) +} +inline void NodeExecutionEvent::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.output_uri) +} +inline ::std::string* NodeExecutionEvent::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void NodeExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { + if (has_output_result()) { + clear_output_result(); + } + if (output_uri != nullptr) { + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.output_uri) +} + +// .flyteidl.core.ExecutionError error = 7; +inline bool NodeExecutionEvent::has_error() const { + return output_result_case() == kError; +} +inline void NodeExecutionEvent::set_has_error() { + _oneof_case_[1] = kError; +} +inline ::flyteidl::core::ExecutionError* NodeExecutionEvent::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ExecutionError& NodeExecutionEvent::error() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* NodeExecutionEvent::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.error) + return output_result_.error_; +} + +// .flyteidl.core.LiteralMap output_data = 15; +inline bool NodeExecutionEvent::has_output_data() const { + return output_result_case() == kOutputData; +} +inline void NodeExecutionEvent::set_has_output_data() { + _oneof_case_[1] = kOutputData; +} +inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::release_output_data() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.output_data) + if (has_output_data()) { + clear_has_output_result(); + ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; + output_result_.output_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& NodeExecutionEvent::output_data() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.output_data) + return has_output_data() + ? *output_result_.output_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::mutable_output_data() { + if (!has_output_data()) { + clear_output_result(); + set_has_output_data(); + output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.output_data) + return output_result_.output_data_; +} + +// .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; +inline bool NodeExecutionEvent::has_workflow_node_metadata() const { + return target_metadata_case() == kWorkflowNodeMetadata; +} +inline void NodeExecutionEvent::set_has_workflow_node_metadata() { + _oneof_case_[2] = kWorkflowNodeMetadata; +} +inline void NodeExecutionEvent::clear_workflow_node_metadata() { + if (has_workflow_node_metadata()) { + delete target_metadata_.workflow_node_metadata_; + clear_has_target_metadata(); + } +} +inline ::flyteidl::event::WorkflowNodeMetadata* NodeExecutionEvent::release_workflow_node_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) + if (has_workflow_node_metadata()) { + clear_has_target_metadata(); + ::flyteidl::event::WorkflowNodeMetadata* temp = target_metadata_.workflow_node_metadata_; + target_metadata_.workflow_node_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::event::WorkflowNodeMetadata& NodeExecutionEvent::workflow_node_metadata() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) + return has_workflow_node_metadata() + ? *target_metadata_.workflow_node_metadata_ + : *reinterpret_cast< ::flyteidl::event::WorkflowNodeMetadata*>(&::flyteidl::event::_WorkflowNodeMetadata_default_instance_); +} +inline ::flyteidl::event::WorkflowNodeMetadata* NodeExecutionEvent::mutable_workflow_node_metadata() { + if (!has_workflow_node_metadata()) { + clear_target_metadata(); + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = CreateMaybeMessage< ::flyteidl::event::WorkflowNodeMetadata >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) + return target_metadata_.workflow_node_metadata_; +} + +// .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; +inline bool NodeExecutionEvent::has_task_node_metadata() const { + return target_metadata_case() == kTaskNodeMetadata; +} +inline void NodeExecutionEvent::set_has_task_node_metadata() { + _oneof_case_[2] = kTaskNodeMetadata; +} +inline void NodeExecutionEvent::clear_task_node_metadata() { + if (has_task_node_metadata()) { + delete target_metadata_.task_node_metadata_; + clear_has_target_metadata(); + } +} +inline ::flyteidl::event::TaskNodeMetadata* NodeExecutionEvent::release_task_node_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.task_node_metadata) + if (has_task_node_metadata()) { + clear_has_target_metadata(); + ::flyteidl::event::TaskNodeMetadata* temp = target_metadata_.task_node_metadata_; + target_metadata_.task_node_metadata_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::event::TaskNodeMetadata& NodeExecutionEvent::task_node_metadata() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.task_node_metadata) + return has_task_node_metadata() + ? *target_metadata_.task_node_metadata_ + : *reinterpret_cast< ::flyteidl::event::TaskNodeMetadata*>(&::flyteidl::event::_TaskNodeMetadata_default_instance_); +} +inline ::flyteidl::event::TaskNodeMetadata* NodeExecutionEvent::mutable_task_node_metadata() { + if (!has_task_node_metadata()) { + clear_target_metadata(); + set_has_task_node_metadata(); + target_metadata_.task_node_metadata_ = CreateMaybeMessage< ::flyteidl::event::TaskNodeMetadata >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.task_node_metadata) + return target_metadata_.task_node_metadata_; +} + +// .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; +inline bool NodeExecutionEvent::has_parent_task_metadata() const { + return this != internal_default_instance() && parent_task_metadata_ != nullptr; +} +inline void NodeExecutionEvent::clear_parent_task_metadata() { + if (GetArenaNoVirtual() == nullptr && parent_task_metadata_ != nullptr) { + delete parent_task_metadata_; + } + parent_task_metadata_ = nullptr; +} +inline const ::flyteidl::event::ParentTaskExecutionMetadata& NodeExecutionEvent::parent_task_metadata() const { + const ::flyteidl::event::ParentTaskExecutionMetadata* p = parent_task_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.parent_task_metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_); +} +inline ::flyteidl::event::ParentTaskExecutionMetadata* NodeExecutionEvent::release_parent_task_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.parent_task_metadata) + + ::flyteidl::event::ParentTaskExecutionMetadata* temp = parent_task_metadata_; + parent_task_metadata_ = nullptr; + return temp; +} +inline ::flyteidl::event::ParentTaskExecutionMetadata* NodeExecutionEvent::mutable_parent_task_metadata() { + + if (parent_task_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::ParentTaskExecutionMetadata>(GetArenaNoVirtual()); + parent_task_metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.parent_task_metadata) + return parent_task_metadata_; +} +inline void NodeExecutionEvent::set_allocated_parent_task_metadata(::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete parent_task_metadata_; + } + if (parent_task_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + parent_task_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parent_task_metadata, submessage_arena); + } + + } else { + + } + parent_task_metadata_ = parent_task_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.parent_task_metadata) +} + +// .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; +inline bool NodeExecutionEvent::has_parent_node_metadata() const { + return this != internal_default_instance() && parent_node_metadata_ != nullptr; +} +inline void NodeExecutionEvent::clear_parent_node_metadata() { + if (GetArenaNoVirtual() == nullptr && parent_node_metadata_ != nullptr) { + delete parent_node_metadata_; + } + parent_node_metadata_ = nullptr; +} +inline const ::flyteidl::event::ParentNodeExecutionMetadata& NodeExecutionEvent::parent_node_metadata() const { + const ::flyteidl::event::ParentNodeExecutionMetadata* p = parent_node_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.parent_node_metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_ParentNodeExecutionMetadata_default_instance_); +} +inline ::flyteidl::event::ParentNodeExecutionMetadata* NodeExecutionEvent::release_parent_node_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.parent_node_metadata) + + ::flyteidl::event::ParentNodeExecutionMetadata* temp = parent_node_metadata_; + parent_node_metadata_ = nullptr; + return temp; +} +inline ::flyteidl::event::ParentNodeExecutionMetadata* NodeExecutionEvent::mutable_parent_node_metadata() { + + if (parent_node_metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::ParentNodeExecutionMetadata>(GetArenaNoVirtual()); + parent_node_metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.parent_node_metadata) + return parent_node_metadata_; +} +inline void NodeExecutionEvent::set_allocated_parent_node_metadata(::flyteidl::event::ParentNodeExecutionMetadata* parent_node_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete parent_node_metadata_; + } + if (parent_node_metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + parent_node_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parent_node_metadata, submessage_arena); + } + + } else { + + } + parent_node_metadata_ = parent_node_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.parent_node_metadata) +} + +// string retry_group = 11; +inline void NodeExecutionEvent::clear_retry_group() { + retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEvent::retry_group() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.retry_group) + return retry_group_.GetNoArena(); +} +inline void NodeExecutionEvent::set_retry_group(const ::std::string& value) { + + retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.retry_group) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_retry_group(::std::string&& value) { + + retry_group_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.retry_group) +} +#endif +inline void NodeExecutionEvent::set_retry_group(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.retry_group) +} +inline void NodeExecutionEvent::set_retry_group(const char* value, size_t size) { + + retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.retry_group) +} +inline ::std::string* NodeExecutionEvent::mutable_retry_group() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.retry_group) + return retry_group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_retry_group() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.retry_group) + + return retry_group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEvent::set_allocated_retry_group(::std::string* retry_group) { + if (retry_group != nullptr) { + + } else { + + } + retry_group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), retry_group); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.retry_group) +} + +// string spec_node_id = 12; +inline void NodeExecutionEvent::clear_spec_node_id() { + spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEvent::spec_node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.spec_node_id) + return spec_node_id_.GetNoArena(); +} +inline void NodeExecutionEvent::set_spec_node_id(const ::std::string& value) { + + spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.spec_node_id) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_spec_node_id(::std::string&& value) { + + spec_node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.spec_node_id) +} +#endif +inline void NodeExecutionEvent::set_spec_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.spec_node_id) +} +inline void NodeExecutionEvent::set_spec_node_id(const char* value, size_t size) { + + spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.spec_node_id) +} +inline ::std::string* NodeExecutionEvent::mutable_spec_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.spec_node_id) + return spec_node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_spec_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.spec_node_id) + + return spec_node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEvent::set_allocated_spec_node_id(::std::string* spec_node_id) { + if (spec_node_id != nullptr) { + + } else { + + } + spec_node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec_node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.spec_node_id) +} + +// string node_name = 13; +inline void NodeExecutionEvent::clear_node_name() { + node_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEvent::node_name() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.node_name) + return node_name_.GetNoArena(); +} +inline void NodeExecutionEvent::set_node_name(const ::std::string& value) { + + node_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.node_name) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_node_name(::std::string&& value) { + + node_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.node_name) +} +#endif +inline void NodeExecutionEvent::set_node_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + node_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.node_name) +} +inline void NodeExecutionEvent::set_node_name(const char* value, size_t size) { + + node_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.node_name) +} +inline ::std::string* NodeExecutionEvent::mutable_node_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.node_name) + return node_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_node_name() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.node_name) + + return node_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEvent::set_allocated_node_name(::std::string* node_name) { + if (node_name != nullptr) { + + } else { + + } + node_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.node_name) +} + +// int32 event_version = 16; +inline void NodeExecutionEvent::clear_event_version() { + event_version_ = 0; +} +inline ::google::protobuf::int32 NodeExecutionEvent::event_version() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.event_version) + return event_version_; +} +inline void NodeExecutionEvent::set_event_version(::google::protobuf::int32 value) { + + event_version_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.event_version) +} + +// bool is_parent = 17; +inline void NodeExecutionEvent::clear_is_parent() { + is_parent_ = false; +} +inline bool NodeExecutionEvent::is_parent() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.is_parent) + return is_parent_; +} +inline void NodeExecutionEvent::set_is_parent(bool value) { + + is_parent_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.is_parent) +} + +// bool is_dynamic = 18; +inline void NodeExecutionEvent::clear_is_dynamic() { + is_dynamic_ = false; +} +inline bool NodeExecutionEvent::is_dynamic() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.is_dynamic) + return is_dynamic_; +} +inline void NodeExecutionEvent::set_is_dynamic(bool value) { + + is_dynamic_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.is_dynamic) +} + +// string deck_uri = 19; +inline void NodeExecutionEvent::clear_deck_uri() { + deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEvent::deck_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.deck_uri) + return deck_uri_.GetNoArena(); +} +inline void NodeExecutionEvent::set_deck_uri(const ::std::string& value) { + + deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.deck_uri) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_deck_uri(::std::string&& value) { + + deck_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.deck_uri) +} +#endif +inline void NodeExecutionEvent::set_deck_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.deck_uri) +} +inline void NodeExecutionEvent::set_deck_uri(const char* value, size_t size) { + + deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.deck_uri) +} +inline ::std::string* NodeExecutionEvent::mutable_deck_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.deck_uri) + return deck_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_deck_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.deck_uri) + + return deck_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEvent::set_allocated_deck_uri(::std::string* deck_uri) { + if (deck_uri != nullptr) { + + } else { + + } + deck_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deck_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.deck_uri) +} + +// .google.protobuf.Timestamp reported_at = 21; +inline bool NodeExecutionEvent::has_reported_at() const { + return this != internal_default_instance() && reported_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& NodeExecutionEvent::reported_at() const { + const ::google::protobuf::Timestamp* p = reported_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.reported_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionEvent::release_reported_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.reported_at) + + ::google::protobuf::Timestamp* temp = reported_at_; + reported_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionEvent::mutable_reported_at() { + + if (reported_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + reported_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.reported_at) + return reported_at_; +} +inline void NodeExecutionEvent::set_allocated_reported_at(::google::protobuf::Timestamp* reported_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(reported_at_); + } + if (reported_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(reported_at)->GetArena(); + if (message_arena != submessage_arena) { + reported_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reported_at, submessage_arena); + } + + } else { + + } + reported_at_ = reported_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.reported_at) +} + +inline bool NodeExecutionEvent::has_input_value() const { + return input_value_case() != INPUT_VALUE_NOT_SET; +} +inline void NodeExecutionEvent::clear_has_input_value() { + _oneof_case_[0] = INPUT_VALUE_NOT_SET; +} +inline bool NodeExecutionEvent::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void NodeExecutionEvent::clear_has_output_result() { + _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; +} +inline bool NodeExecutionEvent::has_target_metadata() const { + return target_metadata_case() != TARGET_METADATA_NOT_SET; +} +inline void NodeExecutionEvent::clear_has_target_metadata() { + _oneof_case_[2] = TARGET_METADATA_NOT_SET; +} +inline NodeExecutionEvent::InputValueCase NodeExecutionEvent::input_value_case() const { + return NodeExecutionEvent::InputValueCase(_oneof_case_[0]); +} +inline NodeExecutionEvent::OutputResultCase NodeExecutionEvent::output_result_case() const { + return NodeExecutionEvent::OutputResultCase(_oneof_case_[1]); +} +inline NodeExecutionEvent::TargetMetadataCase NodeExecutionEvent::target_metadata_case() const { + return NodeExecutionEvent::TargetMetadataCase(_oneof_case_[2]); +} +// ------------------------------------------------------------------- + +// WorkflowNodeMetadata + +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; +inline bool WorkflowNodeMetadata::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowNodeMetadata::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowNodeMetadata.execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowNodeMetadata.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::mutable_execution_id() { + + if (execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowNodeMetadata.execution_id) + return execution_id_; +} +inline void WorkflowNodeMetadata::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); + } + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + + } + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowNodeMetadata.execution_id) +} + +// ------------------------------------------------------------------- + +// TaskNodeMetadata + +// .flyteidl.core.CatalogCacheStatus cache_status = 1; +inline void TaskNodeMetadata::clear_cache_status() { + cache_status_ = 0; +} +inline ::flyteidl::core::CatalogCacheStatus TaskNodeMetadata::cache_status() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.cache_status) + return static_cast< ::flyteidl::core::CatalogCacheStatus >(cache_status_); +} +inline void TaskNodeMetadata::set_cache_status(::flyteidl::core::CatalogCacheStatus value) { + + cache_status_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskNodeMetadata.cache_status) +} + +// .flyteidl.core.CatalogMetadata catalog_key = 2; +inline bool TaskNodeMetadata::has_catalog_key() const { + return this != internal_default_instance() && catalog_key_ != nullptr; +} +inline const ::flyteidl::core::CatalogMetadata& TaskNodeMetadata::catalog_key() const { + const ::flyteidl::core::CatalogMetadata* p = catalog_key_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.catalog_key) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CatalogMetadata_default_instance_); +} +inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::release_catalog_key() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskNodeMetadata.catalog_key) + + ::flyteidl::core::CatalogMetadata* temp = catalog_key_; + catalog_key_ = nullptr; + return temp; +} +inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::mutable_catalog_key() { + + if (catalog_key_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CatalogMetadata>(GetArenaNoVirtual()); + catalog_key_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskNodeMetadata.catalog_key) + return catalog_key_; +} +inline void TaskNodeMetadata::set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(catalog_key_); + } + if (catalog_key) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + catalog_key = ::google::protobuf::internal::GetOwnedMessage( + message_arena, catalog_key, submessage_arena); + } + + } else { + + } + catalog_key_ = catalog_key; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskNodeMetadata.catalog_key) +} + +// .flyteidl.core.CatalogReservation.Status reservation_status = 3; +inline void TaskNodeMetadata::clear_reservation_status() { + reservation_status_ = 0; +} +inline ::flyteidl::core::CatalogReservation_Status TaskNodeMetadata::reservation_status() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.reservation_status) + return static_cast< ::flyteidl::core::CatalogReservation_Status >(reservation_status_); +} +inline void TaskNodeMetadata::set_reservation_status(::flyteidl::core::CatalogReservation_Status value) { + + reservation_status_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskNodeMetadata.reservation_status) +} + +// string checkpoint_uri = 4; +inline void TaskNodeMetadata::clear_checkpoint_uri() { + checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskNodeMetadata::checkpoint_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.checkpoint_uri) + return checkpoint_uri_.GetNoArena(); +} +inline void TaskNodeMetadata::set_checkpoint_uri(const ::std::string& value) { + + checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskNodeMetadata.checkpoint_uri) +} +#if LANG_CXX11 +inline void TaskNodeMetadata::set_checkpoint_uri(::std::string&& value) { + + checkpoint_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskNodeMetadata.checkpoint_uri) +} +#endif +inline void TaskNodeMetadata::set_checkpoint_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskNodeMetadata.checkpoint_uri) +} +inline void TaskNodeMetadata::set_checkpoint_uri(const char* value, size_t size) { + + checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskNodeMetadata.checkpoint_uri) +} +inline ::std::string* TaskNodeMetadata::mutable_checkpoint_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskNodeMetadata.checkpoint_uri) + return checkpoint_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskNodeMetadata::release_checkpoint_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskNodeMetadata.checkpoint_uri) + + return checkpoint_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskNodeMetadata::set_allocated_checkpoint_uri(::std::string* checkpoint_uri) { + if (checkpoint_uri != nullptr) { + + } else { + + } + checkpoint_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), checkpoint_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskNodeMetadata.checkpoint_uri) +} + +// .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; +inline bool TaskNodeMetadata::has_dynamic_workflow() const { + return this != internal_default_instance() && dynamic_workflow_ != nullptr; +} +inline void TaskNodeMetadata::clear_dynamic_workflow() { + if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { + delete dynamic_workflow_; + } + dynamic_workflow_ = nullptr; +} +inline const ::flyteidl::event::DynamicWorkflowNodeMetadata& TaskNodeMetadata::dynamic_workflow() const { + const ::flyteidl::event::DynamicWorkflowNodeMetadata* p = dynamic_workflow_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.dynamic_workflow) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_); +} +inline ::flyteidl::event::DynamicWorkflowNodeMetadata* TaskNodeMetadata::release_dynamic_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskNodeMetadata.dynamic_workflow) + + ::flyteidl::event::DynamicWorkflowNodeMetadata* temp = dynamic_workflow_; + dynamic_workflow_ = nullptr; + return temp; +} +inline ::flyteidl::event::DynamicWorkflowNodeMetadata* TaskNodeMetadata::mutable_dynamic_workflow() { + + if (dynamic_workflow_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::DynamicWorkflowNodeMetadata>(GetArenaNoVirtual()); + dynamic_workflow_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskNodeMetadata.dynamic_workflow) + return dynamic_workflow_; +} +inline void TaskNodeMetadata::set_allocated_dynamic_workflow(::flyteidl::event::DynamicWorkflowNodeMetadata* dynamic_workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete dynamic_workflow_; + } + if (dynamic_workflow) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + dynamic_workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, dynamic_workflow, submessage_arena); + } + + } else { + + } + dynamic_workflow_ = dynamic_workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskNodeMetadata.dynamic_workflow) +} + +// ------------------------------------------------------------------- + +// DynamicWorkflowNodeMetadata + +// .flyteidl.core.Identifier id = 1; +inline bool DynamicWorkflowNodeMetadata::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& DynamicWorkflowNodeMetadata::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.event.DynamicWorkflowNodeMetadata.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.DynamicWorkflowNodeMetadata.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.DynamicWorkflowNodeMetadata.id) + return id_; +} +inline void DynamicWorkflowNodeMetadata::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.DynamicWorkflowNodeMetadata.id) +} + +// .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; +inline bool DynamicWorkflowNodeMetadata::has_compiled_workflow() const { + return this != internal_default_instance() && compiled_workflow_ != nullptr; +} +inline const ::flyteidl::core::CompiledWorkflowClosure& DynamicWorkflowNodeMetadata::compiled_workflow() const { + const ::flyteidl::core::CompiledWorkflowClosure* p = compiled_workflow_; + // @@protoc_insertion_point(field_get:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledWorkflowClosure_default_instance_); +} +inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::release_compiled_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) + + ::flyteidl::core::CompiledWorkflowClosure* temp = compiled_workflow_; + compiled_workflow_ = nullptr; + return temp; +} +inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::mutable_compiled_workflow() { + + if (compiled_workflow_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(GetArenaNoVirtual()); + compiled_workflow_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) + return compiled_workflow_; +} +inline void DynamicWorkflowNodeMetadata::set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_workflow_); + } + if (compiled_workflow) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + compiled_workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, compiled_workflow, submessage_arena); + } + + } else { + + } + compiled_workflow_ = compiled_workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) +} + +// string dynamic_job_spec_uri = 3; +inline void DynamicWorkflowNodeMetadata::clear_dynamic_job_spec_uri() { + dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DynamicWorkflowNodeMetadata::dynamic_job_spec_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) + return dynamic_job_spec_uri_.GetNoArena(); +} +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const ::std::string& value) { + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +#if LANG_CXX11 +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(::std::string&& value) { + + dynamic_job_spec_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +#endif +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value, size_t size) { + + dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} +inline ::std::string* DynamicWorkflowNodeMetadata::mutable_dynamic_job_spec_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) + return dynamic_job_spec_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DynamicWorkflowNodeMetadata::release_dynamic_job_spec_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) + + return dynamic_job_spec_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DynamicWorkflowNodeMetadata::set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri) { + if (dynamic_job_spec_uri != nullptr) { + + } else { + + } + dynamic_job_spec_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dynamic_job_spec_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) +} + +// ------------------------------------------------------------------- + +// ParentTaskExecutionMetadata + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool ParentTaskExecutionMetadata::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& ParentTaskExecutionMetadata::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.event.ParentTaskExecutionMetadata.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* ParentTaskExecutionMetadata::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.ParentTaskExecutionMetadata.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* ParentTaskExecutionMetadata::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.ParentTaskExecutionMetadata.id) + return id_; +} +inline void ParentTaskExecutionMetadata::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ParentTaskExecutionMetadata.id) +} + +// ------------------------------------------------------------------- + +// ParentNodeExecutionMetadata + +// string node_id = 1; +inline void ParentNodeExecutionMetadata::clear_node_id() { + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ParentNodeExecutionMetadata::node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ParentNodeExecutionMetadata.node_id) + return node_id_.GetNoArena(); +} +inline void ParentNodeExecutionMetadata::set_node_id(const ::std::string& value) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.ParentNodeExecutionMetadata.node_id) +} +#if LANG_CXX11 +inline void ParentNodeExecutionMetadata::set_node_id(::std::string&& value) { + + node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ParentNodeExecutionMetadata.node_id) +} +#endif +inline void ParentNodeExecutionMetadata::set_node_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.ParentNodeExecutionMetadata.node_id) +} +inline void ParentNodeExecutionMetadata::set_node_id(const char* value, size_t size) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ParentNodeExecutionMetadata.node_id) +} +inline ::std::string* ParentNodeExecutionMetadata::mutable_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.ParentNodeExecutionMetadata.node_id) + return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ParentNodeExecutionMetadata::release_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.ParentNodeExecutionMetadata.node_id) + + return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ParentNodeExecutionMetadata::set_allocated_node_id(::std::string* node_id) { + if (node_id != nullptr) { + + } else { + + } + node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ParentNodeExecutionMetadata.node_id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionEvent + +// .flyteidl.core.Identifier task_id = 1; +inline bool TaskExecutionEvent::has_task_id() const { + return this != internal_default_instance() && task_id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& TaskExecutionEvent::task_id() const { + const ::flyteidl::core::Identifier* p = task_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.task_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskExecutionEvent::release_task_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.task_id) + + ::flyteidl::core::Identifier* temp = task_id_; + task_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* TaskExecutionEvent::mutable_task_id() { + + if (task_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + task_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.task_id) + return task_id_; +} +inline void TaskExecutionEvent::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_id_); + } + if (task_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + task_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_id, submessage_arena); + } + + } else { + + } + task_id_ = task_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.task_id) +} + +// .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; +inline bool TaskExecutionEvent::has_parent_node_execution_id() const { + return this != internal_default_instance() && parent_node_execution_id_ != nullptr; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionEvent::parent_node_execution_id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionEvent::release_parent_node_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_id_; + parent_node_execution_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionEvent::mutable_parent_node_execution_id() { + + if (parent_node_execution_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); + parent_node_execution_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) + return parent_node_execution_id_; +} +inline void TaskExecutionEvent::set_allocated_parent_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(parent_node_execution_id_); + } + if (parent_node_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + parent_node_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parent_node_execution_id, submessage_arena); + } + + } else { + + } + parent_node_execution_id_ = parent_node_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) +} + +// uint32 retry_attempt = 3; +inline void TaskExecutionEvent::clear_retry_attempt() { + retry_attempt_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionEvent::retry_attempt() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.retry_attempt) + return retry_attempt_; +} +inline void TaskExecutionEvent::set_retry_attempt(::google::protobuf::uint32 value) { + + retry_attempt_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.retry_attempt) +} + +// .flyteidl.core.TaskExecution.Phase phase = 4; +inline void TaskExecutionEvent::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::TaskExecution_Phase TaskExecutionEvent::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.phase) + return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); +} +inline void TaskExecutionEvent::set_phase(::flyteidl::core::TaskExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.phase) +} + +// string producer_id = 5; +inline void TaskExecutionEvent::clear_producer_id() { + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionEvent::producer_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.producer_id) + return producer_id_.GetNoArena(); +} +inline void TaskExecutionEvent::set_producer_id(const ::std::string& value) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.producer_id) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_producer_id(::std::string&& value) { + + producer_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.producer_id) +} +#endif +inline void TaskExecutionEvent::set_producer_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.producer_id) +} +inline void TaskExecutionEvent::set_producer_id(const char* value, size_t size) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.producer_id) +} +inline ::std::string* TaskExecutionEvent::mutable_producer_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.producer_id) + return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_producer_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.producer_id) + + return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { + if (producer_id != nullptr) { + + } else { + + } + producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.producer_id) +} + +// repeated .flyteidl.core.TaskLog logs = 6; +inline int TaskExecutionEvent::logs_size() const { + return logs_.size(); +} +inline ::flyteidl::core::TaskLog* TaskExecutionEvent::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.logs) + return logs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* +TaskExecutionEvent::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionEvent.logs) + return &logs_; +} +inline const ::flyteidl::core::TaskLog& TaskExecutionEvent::logs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.logs) + return logs_.Get(index); +} +inline ::flyteidl::core::TaskLog* TaskExecutionEvent::add_logs() { + // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionEvent.logs) + return logs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& +TaskExecutionEvent::logs() const { + // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionEvent.logs) + return logs_; +} + +// .google.protobuf.Timestamp occurred_at = 7; +inline bool TaskExecutionEvent::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& TaskExecutionEvent::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.occurred_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionEvent::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionEvent::mutable_occurred_at() { + + if (occurred_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + occurred_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.occurred_at) + return occurred_at_; +} +inline void TaskExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.occurred_at) +} + +// string input_uri = 8; +inline bool TaskExecutionEvent::has_input_uri() const { + return input_value_case() == kInputUri; +} +inline void TaskExecutionEvent::set_has_input_uri() { + _oneof_case_[0] = kInputUri; +} +inline void TaskExecutionEvent::clear_input_uri() { + if (has_input_uri()) { + input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_input_value(); + } +} +inline const ::std::string& TaskExecutionEvent::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.input_uri) + if (has_input_uri()) { + return input_value_.input_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void TaskExecutionEvent::set_input_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.input_uri) + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.input_uri) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_input_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.input_uri) + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.input_uri) +} +#endif +inline void TaskExecutionEvent::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.input_uri) +} +inline void TaskExecutionEvent::set_input_uri(const char* value, size_t size) { + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.input_uri) +} +inline ::std::string* TaskExecutionEvent::mutable_input_uri() { + if (!has_input_uri()) { + clear_input_value(); + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.input_uri) + return input_value_.input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.input_uri) + if (has_input_uri()) { + clear_has_input_value(); + return input_value_.input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void TaskExecutionEvent::set_allocated_input_uri(::std::string* input_uri) { + if (has_input_value()) { + clear_input_value(); + } + if (input_uri != nullptr) { + set_has_input_uri(); + input_value_.input_uri_.UnsafeSetDefault(input_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.input_uri) +} + +// .flyteidl.core.LiteralMap input_data = 19; +inline bool TaskExecutionEvent::has_input_data() const { + return input_value_case() == kInputData; +} +inline void TaskExecutionEvent::set_has_input_data() { + _oneof_case_[0] = kInputData; +} +inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::release_input_data() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.input_data) + if (has_input_data()) { + clear_has_input_value(); + ::flyteidl::core::LiteralMap* temp = input_value_.input_data_; + input_value_.input_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& TaskExecutionEvent::input_data() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.input_data) + return has_input_data() + ? *input_value_.input_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::mutable_input_data() { + if (!has_input_data()) { + clear_input_value(); + set_has_input_data(); + input_value_.input_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.input_data) + return input_value_.input_data_; +} + +// string output_uri = 9; +inline bool TaskExecutionEvent::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void TaskExecutionEvent::set_has_output_uri() { + _oneof_case_[1] = kOutputUri; +} +inline void TaskExecutionEvent::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& TaskExecutionEvent::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void TaskExecutionEvent::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.output_uri) +} +#endif +inline void TaskExecutionEvent::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.output_uri) +} +inline void TaskExecutionEvent::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.output_uri) +} +inline ::std::string* TaskExecutionEvent::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return nullptr; + } +} +inline void TaskExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { + if (has_output_result()) { + clear_output_result(); + } + if (output_uri != nullptr) { + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.output_uri) +} + +// .flyteidl.core.ExecutionError error = 10; +inline bool TaskExecutionEvent::has_error() const { + return output_result_case() == kError; +} +inline void TaskExecutionEvent::set_has_error() { + _oneof_case_[1] = kError; +} +inline ::flyteidl::core::ExecutionError* TaskExecutionEvent::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::ExecutionError& TaskExecutionEvent::error() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* TaskExecutionEvent::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.error) + return output_result_.error_; +} + +// .flyteidl.core.LiteralMap output_data = 17; +inline bool TaskExecutionEvent::has_output_data() const { + return output_result_case() == kOutputData; +} +inline void TaskExecutionEvent::set_has_output_data() { + _oneof_case_[1] = kOutputData; +} +inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::release_output_data() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.output_data) + if (has_output_data()) { + clear_has_output_result(); + ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; + output_result_.output_data_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& TaskExecutionEvent::output_data() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.output_data) + return has_output_data() + ? *output_result_.output_data_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::mutable_output_data() { + if (!has_output_data()) { + clear_output_result(); + set_has_output_data(); + output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.output_data) + return output_result_.output_data_; +} + +// .google.protobuf.Struct custom_info = 11; +inline bool TaskExecutionEvent::has_custom_info() const { + return this != internal_default_instance() && custom_info_ != nullptr; +} +inline const ::google::protobuf::Struct& TaskExecutionEvent::custom_info() const { + const ::google::protobuf::Struct* p = custom_info_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.custom_info) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* TaskExecutionEvent::release_custom_info() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.custom_info) + + ::google::protobuf::Struct* temp = custom_info_; + custom_info_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* TaskExecutionEvent::mutable_custom_info() { + + if (custom_info_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + custom_info_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.custom_info) + return custom_info_; +} +inline void TaskExecutionEvent::set_allocated_custom_info(::google::protobuf::Struct* custom_info) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info_); + } + if (custom_info) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(custom_info)->GetArena(); + if (message_arena != submessage_arena) { + custom_info = ::google::protobuf::internal::GetOwnedMessage( + message_arena, custom_info, submessage_arena); + } + + } else { + + } + custom_info_ = custom_info; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.custom_info) +} + +// uint32 phase_version = 12; +inline void TaskExecutionEvent::clear_phase_version() { + phase_version_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionEvent::phase_version() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.phase_version) + return phase_version_; +} +inline void TaskExecutionEvent::set_phase_version(::google::protobuf::uint32 value) { + + phase_version_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.phase_version) +} + +// string reason = 13; +inline void TaskExecutionEvent::clear_reason() { + reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionEvent::reason() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.reason) + return reason_.GetNoArena(); +} +inline void TaskExecutionEvent::set_reason(const ::std::string& value) { + + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.reason) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_reason(::std::string&& value) { + + reason_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.reason) +} +#endif +inline void TaskExecutionEvent::set_reason(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.reason) +} +inline void TaskExecutionEvent::set_reason(const char* value, size_t size) { + + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.reason) +} +inline ::std::string* TaskExecutionEvent::mutable_reason() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.reason) + return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_reason() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.reason) + + return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionEvent::set_allocated_reason(::std::string* reason) { + if (reason != nullptr) { + + } else { + + } + reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.reason) +} + +// string task_type = 14; +inline void TaskExecutionEvent::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionEvent::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.task_type) + return task_type_.GetNoArena(); +} +inline void TaskExecutionEvent::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.task_type) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.task_type) +} +#endif +inline void TaskExecutionEvent::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.task_type) +} +inline void TaskExecutionEvent::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.task_type) +} +inline ::std::string* TaskExecutionEvent::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionEvent::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.task_type) +} + +// .flyteidl.event.TaskExecutionMetadata metadata = 16; +inline bool TaskExecutionEvent::has_metadata() const { + return this != internal_default_instance() && metadata_ != nullptr; +} +inline void TaskExecutionEvent::clear_metadata() { + if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { + delete metadata_; + } + metadata_ = nullptr; +} +inline const ::flyteidl::event::TaskExecutionMetadata& TaskExecutionEvent::metadata() const { + const ::flyteidl::event::TaskExecutionMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.metadata) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::event::_TaskExecutionMetadata_default_instance_); +} +inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionEvent::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.metadata) + + ::flyteidl::event::TaskExecutionMetadata* temp = metadata_; + metadata_ = nullptr; + return temp; +} +inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionEvent::mutable_metadata() { + + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionMetadata>(GetArenaNoVirtual()); + metadata_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.metadata) + return metadata_; +} +inline void TaskExecutionEvent::set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.metadata) +} + +// int32 event_version = 18; +inline void TaskExecutionEvent::clear_event_version() { + event_version_ = 0; +} +inline ::google::protobuf::int32 TaskExecutionEvent::event_version() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.event_version) + return event_version_; +} +inline void TaskExecutionEvent::set_event_version(::google::protobuf::int32 value) { + + event_version_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.event_version) +} + +// .google.protobuf.Timestamp reported_at = 20; +inline bool TaskExecutionEvent::has_reported_at() const { + return this != internal_default_instance() && reported_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& TaskExecutionEvent::reported_at() const { + const ::google::protobuf::Timestamp* p = reported_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.reported_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionEvent::release_reported_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.reported_at) + + ::google::protobuf::Timestamp* temp = reported_at_; + reported_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionEvent::mutable_reported_at() { + + if (reported_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + reported_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.reported_at) + return reported_at_; +} +inline void TaskExecutionEvent::set_allocated_reported_at(::google::protobuf::Timestamp* reported_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(reported_at_); + } + if (reported_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(reported_at)->GetArena(); + if (message_arena != submessage_arena) { + reported_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reported_at, submessage_arena); + } + + } else { + + } + reported_at_ = reported_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.reported_at) +} + +inline bool TaskExecutionEvent::has_input_value() const { + return input_value_case() != INPUT_VALUE_NOT_SET; +} +inline void TaskExecutionEvent::clear_has_input_value() { + _oneof_case_[0] = INPUT_VALUE_NOT_SET; +} +inline bool TaskExecutionEvent::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void TaskExecutionEvent::clear_has_output_result() { + _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; +} +inline TaskExecutionEvent::InputValueCase TaskExecutionEvent::input_value_case() const { + return TaskExecutionEvent::InputValueCase(_oneof_case_[0]); +} +inline TaskExecutionEvent::OutputResultCase TaskExecutionEvent::output_result_case() const { + return TaskExecutionEvent::OutputResultCase(_oneof_case_[1]); +} +// ------------------------------------------------------------------- + +// ExternalResourceInfo + +// string external_id = 1; +inline void ExternalResourceInfo::clear_external_id() { + external_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExternalResourceInfo::external_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.external_id) + return external_id_.GetNoArena(); +} +inline void ExternalResourceInfo::set_external_id(const ::std::string& value) { + + external_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.external_id) +} +#if LANG_CXX11 +inline void ExternalResourceInfo::set_external_id(::std::string&& value) { + + external_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ExternalResourceInfo.external_id) +} +#endif +inline void ExternalResourceInfo::set_external_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + external_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.ExternalResourceInfo.external_id) +} +inline void ExternalResourceInfo::set_external_id(const char* value, size_t size) { + + external_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ExternalResourceInfo.external_id) +} +inline ::std::string* ExternalResourceInfo::mutable_external_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.ExternalResourceInfo.external_id) + return external_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExternalResourceInfo::release_external_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.ExternalResourceInfo.external_id) + + return external_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExternalResourceInfo::set_allocated_external_id(::std::string* external_id) { + if (external_id != nullptr) { + + } else { + + } + external_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), external_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ExternalResourceInfo.external_id) +} + +// uint32 index = 2; +inline void ExternalResourceInfo::clear_index() { + index_ = 0u; +} +inline ::google::protobuf::uint32 ExternalResourceInfo::index() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.index) + return index_; +} +inline void ExternalResourceInfo::set_index(::google::protobuf::uint32 value) { + + index_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.index) +} + +// uint32 retry_attempt = 3; +inline void ExternalResourceInfo::clear_retry_attempt() { + retry_attempt_ = 0u; +} +inline ::google::protobuf::uint32 ExternalResourceInfo::retry_attempt() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.retry_attempt) + return retry_attempt_; +} +inline void ExternalResourceInfo::set_retry_attempt(::google::protobuf::uint32 value) { + + retry_attempt_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.retry_attempt) +} + +// .flyteidl.core.TaskExecution.Phase phase = 4; +inline void ExternalResourceInfo::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::TaskExecution_Phase ExternalResourceInfo::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.phase) + return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); +} +inline void ExternalResourceInfo::set_phase(::flyteidl::core::TaskExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.phase) +} + +// .flyteidl.core.CatalogCacheStatus cache_status = 5; +inline void ExternalResourceInfo::clear_cache_status() { + cache_status_ = 0; +} +inline ::flyteidl::core::CatalogCacheStatus ExternalResourceInfo::cache_status() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.cache_status) + return static_cast< ::flyteidl::core::CatalogCacheStatus >(cache_status_); +} +inline void ExternalResourceInfo::set_cache_status(::flyteidl::core::CatalogCacheStatus value) { + + cache_status_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.cache_status) +} + +// repeated .flyteidl.core.TaskLog logs = 6; +inline int ExternalResourceInfo::logs_size() const { + return logs_.size(); +} +inline ::flyteidl::core::TaskLog* ExternalResourceInfo::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.event.ExternalResourceInfo.logs) + return logs_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* +ExternalResourceInfo::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.event.ExternalResourceInfo.logs) + return &logs_; +} +inline const ::flyteidl::core::TaskLog& ExternalResourceInfo::logs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.logs) + return logs_.Get(index); +} +inline ::flyteidl::core::TaskLog* ExternalResourceInfo::add_logs() { + // @@protoc_insertion_point(field_add:flyteidl.event.ExternalResourceInfo.logs) + return logs_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& +ExternalResourceInfo::logs() const { + // @@protoc_insertion_point(field_list:flyteidl.event.ExternalResourceInfo.logs) + return logs_; +} + +// ------------------------------------------------------------------- + +// ResourcePoolInfo + +// string allocation_token = 1; +inline void ResourcePoolInfo::clear_allocation_token() { + allocation_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourcePoolInfo::allocation_token() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ResourcePoolInfo.allocation_token) + return allocation_token_.GetNoArena(); +} +inline void ResourcePoolInfo::set_allocation_token(const ::std::string& value) { + + allocation_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.ResourcePoolInfo.allocation_token) +} +#if LANG_CXX11 +inline void ResourcePoolInfo::set_allocation_token(::std::string&& value) { + + allocation_token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ResourcePoolInfo.allocation_token) +} +#endif +inline void ResourcePoolInfo::set_allocation_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + allocation_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.ResourcePoolInfo.allocation_token) +} +inline void ResourcePoolInfo::set_allocation_token(const char* value, size_t size) { + + allocation_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ResourcePoolInfo.allocation_token) +} +inline ::std::string* ResourcePoolInfo::mutable_allocation_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.ResourcePoolInfo.allocation_token) + return allocation_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourcePoolInfo::release_allocation_token() { + // @@protoc_insertion_point(field_release:flyteidl.event.ResourcePoolInfo.allocation_token) + + return allocation_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourcePoolInfo::set_allocated_allocation_token(::std::string* allocation_token) { + if (allocation_token != nullptr) { + + } else { + + } + allocation_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), allocation_token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ResourcePoolInfo.allocation_token) +} + +// string namespace = 2; +inline void ResourcePoolInfo::clear_namespace_() { + namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourcePoolInfo::namespace_() const { + // @@protoc_insertion_point(field_get:flyteidl.event.ResourcePoolInfo.namespace) + return namespace__.GetNoArena(); +} +inline void ResourcePoolInfo::set_namespace_(const ::std::string& value) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.ResourcePoolInfo.namespace) +} +#if LANG_CXX11 +inline void ResourcePoolInfo::set_namespace_(::std::string&& value) { + + namespace__.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ResourcePoolInfo.namespace) +} +#endif +inline void ResourcePoolInfo::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.ResourcePoolInfo.namespace) +} +inline void ResourcePoolInfo::set_namespace_(const char* value, size_t size) { + + namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ResourcePoolInfo.namespace) +} +inline ::std::string* ResourcePoolInfo::mutable_namespace_() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.ResourcePoolInfo.namespace) + return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourcePoolInfo::release_namespace_() { + // @@protoc_insertion_point(field_release:flyteidl.event.ResourcePoolInfo.namespace) + + return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourcePoolInfo::set_allocated_namespace_(::std::string* namespace_) { + if (namespace_ != nullptr) { + + } else { + + } + namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ResourcePoolInfo.namespace) +} + +// ------------------------------------------------------------------- + +// TaskExecutionMetadata + +// string generated_name = 1; +inline void TaskExecutionMetadata::clear_generated_name() { + generated_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionMetadata::generated_name() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.generated_name) + return generated_name_.GetNoArena(); +} +inline void TaskExecutionMetadata::set_generated_name(const ::std::string& value) { + + generated_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionMetadata.generated_name) +} +#if LANG_CXX11 +inline void TaskExecutionMetadata::set_generated_name(::std::string&& value) { + + generated_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionMetadata.generated_name) +} +#endif +inline void TaskExecutionMetadata::set_generated_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + generated_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionMetadata.generated_name) +} +inline void TaskExecutionMetadata::set_generated_name(const char* value, size_t size) { + + generated_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionMetadata.generated_name) +} +inline ::std::string* TaskExecutionMetadata::mutable_generated_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.generated_name) + return generated_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionMetadata::release_generated_name() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionMetadata.generated_name) + + return generated_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionMetadata::set_allocated_generated_name(::std::string* generated_name) { + if (generated_name != nullptr) { + + } else { + + } + generated_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), generated_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionMetadata.generated_name) +} + +// repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; +inline int TaskExecutionMetadata::external_resources_size() const { + return external_resources_.size(); +} +inline void TaskExecutionMetadata::clear_external_resources() { + external_resources_.Clear(); +} +inline ::flyteidl::event::ExternalResourceInfo* TaskExecutionMetadata::mutable_external_resources(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.external_resources) + return external_resources_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >* +TaskExecutionMetadata::mutable_external_resources() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionMetadata.external_resources) + return &external_resources_; +} +inline const ::flyteidl::event::ExternalResourceInfo& TaskExecutionMetadata::external_resources(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.external_resources) + return external_resources_.Get(index); +} +inline ::flyteidl::event::ExternalResourceInfo* TaskExecutionMetadata::add_external_resources() { + // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionMetadata.external_resources) + return external_resources_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >& +TaskExecutionMetadata::external_resources() const { + // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionMetadata.external_resources) + return external_resources_; +} + +// repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; +inline int TaskExecutionMetadata::resource_pool_info_size() const { + return resource_pool_info_.size(); +} +inline void TaskExecutionMetadata::clear_resource_pool_info() { + resource_pool_info_.Clear(); +} +inline ::flyteidl::event::ResourcePoolInfo* TaskExecutionMetadata::mutable_resource_pool_info(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.resource_pool_info) + return resource_pool_info_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >* +TaskExecutionMetadata::mutable_resource_pool_info() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionMetadata.resource_pool_info) + return &resource_pool_info_; +} +inline const ::flyteidl::event::ResourcePoolInfo& TaskExecutionMetadata::resource_pool_info(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.resource_pool_info) + return resource_pool_info_.Get(index); +} +inline ::flyteidl::event::ResourcePoolInfo* TaskExecutionMetadata::add_resource_pool_info() { + // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionMetadata.resource_pool_info) + return resource_pool_info_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >& +TaskExecutionMetadata::resource_pool_info() const { + // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionMetadata.resource_pool_info) + return resource_pool_info_; +} + +// string plugin_identifier = 4; +inline void TaskExecutionMetadata::clear_plugin_identifier() { + plugin_identifier_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionMetadata::plugin_identifier() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.plugin_identifier) + return plugin_identifier_.GetNoArena(); +} +inline void TaskExecutionMetadata::set_plugin_identifier(const ::std::string& value) { + + plugin_identifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionMetadata.plugin_identifier) +} +#if LANG_CXX11 +inline void TaskExecutionMetadata::set_plugin_identifier(::std::string&& value) { + + plugin_identifier_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionMetadata.plugin_identifier) +} +#endif +inline void TaskExecutionMetadata::set_plugin_identifier(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + plugin_identifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionMetadata.plugin_identifier) +} +inline void TaskExecutionMetadata::set_plugin_identifier(const char* value, size_t size) { + + plugin_identifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionMetadata.plugin_identifier) +} +inline ::std::string* TaskExecutionMetadata::mutable_plugin_identifier() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.plugin_identifier) + return plugin_identifier_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionMetadata::release_plugin_identifier() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionMetadata.plugin_identifier) + + return plugin_identifier_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionMetadata::set_allocated_plugin_identifier(::std::string* plugin_identifier) { + if (plugin_identifier != nullptr) { + + } else { + + } + plugin_identifier_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), plugin_identifier); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionMetadata.plugin_identifier) +} + +// .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; +inline void TaskExecutionMetadata::clear_instance_class() { + instance_class_ = 0; +} +inline ::flyteidl::event::TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::instance_class() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.instance_class) + return static_cast< ::flyteidl::event::TaskExecutionMetadata_InstanceClass >(instance_class_); +} +inline void TaskExecutionMetadata::set_instance_class(::flyteidl::event::TaskExecutionMetadata_InstanceClass value) { + + instance_class_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionMetadata.instance_class) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace event +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::event::TaskExecutionMetadata_InstanceClass> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::event::TaskExecutionMetadata_InstanceClass>() { + return ::flyteidl::event::TaskExecutionMetadata_InstanceClass_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fevent_2fevent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc new file mode 100644 index 0000000000..95f7bc732b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/array_job.proto + +#include "flyteidl/plugins/array_job.pb.h" +#include "flyteidl/plugins/array_job.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h new file mode 100644 index 0000000000..d448b70199 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/array_job.proto +#ifndef GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED + +#include "flyteidl/plugins/array_job.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc new file mode 100644 index 0000000000..47ce74ac77 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +#include "flyteidl/plugins/array_job.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace plugins { +class ArrayJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::google::protobuf::int64 min_successes_; + float min_success_ratio_; +} _ArrayJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_ArrayJob_default_instance_; + new (ptr) ::flyteidl::plugins::ArrayJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::ArrayJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto}, {}}; + +void InitDefaults_flyteidl_2fplugins_2farray_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2farray_5fjob_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, parallelism_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, size_), + offsetof(::flyteidl::plugins::ArrayJobDefaultTypeInternal, min_successes_), + offsetof(::flyteidl::plugins::ArrayJobDefaultTypeInternal, min_success_ratio_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, success_criteria_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::ArrayJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_ArrayJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2farray_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto, "flyteidl/plugins/array_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2farray_5fjob_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2farray_5fjob_2eproto[] = + "\n flyteidl/plugins/array_job.proto\022\020flyt" + "eidl.plugins\"w\n\010ArrayJob\022\023\n\013parallelism\030" + "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\027\n\rmin_successes\030\003 \001" + "(\003H\000\022\033\n\021min_success_ratio\030\004 \001(\002H\000B\022\n\020suc" + "cess_criteriaB9Z7github.com/flyteorg/fly" + "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2farray_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2farray_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2farray_5fjob_2eproto, + "flyteidl/plugins/array_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2farray_5fjob_2eproto, 240, +}; + +void AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2farray_5fjob_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2farray_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void ArrayJob::InitAsDefaultInstance() { + ::flyteidl::plugins::_ArrayJob_default_instance_.min_successes_ = PROTOBUF_LONGLONG(0); + ::flyteidl::plugins::_ArrayJob_default_instance_.min_success_ratio_ = 0; +} +class ArrayJob::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArrayJob::kParallelismFieldNumber; +const int ArrayJob::kSizeFieldNumber; +const int ArrayJob::kMinSuccessesFieldNumber; +const int ArrayJob::kMinSuccessRatioFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArrayJob::ArrayJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.ArrayJob) +} +ArrayJob::ArrayJob(const ArrayJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(¶llelism_, &from.parallelism_, + static_cast(reinterpret_cast(&size_) - + reinterpret_cast(¶llelism_)) + sizeof(size_)); + clear_has_success_criteria(); + switch (from.success_criteria_case()) { + case kMinSuccesses: { + set_min_successes(from.min_successes()); + break; + } + case kMinSuccessRatio: { + set_min_success_ratio(from.min_success_ratio()); + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.ArrayJob) +} + +void ArrayJob::SharedCtor() { + ::memset(¶llelism_, 0, static_cast( + reinterpret_cast(&size_) - + reinterpret_cast(¶llelism_)) + sizeof(size_)); + clear_has_success_criteria(); +} + +ArrayJob::~ArrayJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.ArrayJob) + SharedDtor(); +} + +void ArrayJob::SharedDtor() { + if (has_success_criteria()) { + clear_success_criteria(); + } +} + +void ArrayJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ArrayJob& ArrayJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void ArrayJob::clear_success_criteria() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.ArrayJob) + switch (success_criteria_case()) { + case kMinSuccesses: { + // No need to clear + break; + } + case kMinSuccessRatio: { + // No need to clear + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } + _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; +} + + +void ArrayJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.ArrayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(¶llelism_, 0, static_cast( + reinterpret_cast(&size_) - + reinterpret_cast(¶llelism_)) + sizeof(size_)); + clear_success_criteria(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ArrayJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 parallelism = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 size = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_size(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 min_successes = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_min_successes(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // float min_success_ratio = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 37) goto handle_unusual; + msg->set_min_success_ratio(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(float); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ArrayJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.ArrayJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 parallelism = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, ¶llelism_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 size = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &size_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 min_successes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + clear_success_criteria(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &success_criteria_.min_successes_))); + set_has_min_successes(); + } else { + goto handle_unusual; + } + break; + } + + // float min_success_ratio = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (37 & 0xFF)) { + clear_success_criteria(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + input, &success_criteria_.min_success_ratio_))); + set_has_min_success_ratio(); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.ArrayJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.ArrayJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ArrayJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.ArrayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 parallelism = 1; + if (this->parallelism() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->parallelism(), output); + } + + // int64 size = 2; + if (this->size() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->size(), output); + } + + // int64 min_successes = 3; + if (has_min_successes()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->min_successes(), output); + } + + // float min_success_ratio = 4; + if (has_min_success_ratio()) { + ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->min_success_ratio(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.ArrayJob) +} + +::google::protobuf::uint8* ArrayJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.ArrayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 parallelism = 1; + if (this->parallelism() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->parallelism(), target); + } + + // int64 size = 2; + if (this->size() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->size(), target); + } + + // int64 min_successes = 3; + if (has_min_successes()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->min_successes(), target); + } + + // float min_success_ratio = 4; + if (has_min_success_ratio()) { + target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->min_success_ratio(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.ArrayJob) + return target; +} + +size_t ArrayJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.ArrayJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 parallelism = 1; + if (this->parallelism() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->parallelism()); + } + + // int64 size = 2; + if (this->size() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->size()); + } + + switch (success_criteria_case()) { + // int64 min_successes = 3; + case kMinSuccesses: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min_successes()); + break; + } + // float min_success_ratio = 4; + case kMinSuccessRatio: { + total_size += 1 + 4; + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ArrayJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.ArrayJob) + GOOGLE_DCHECK_NE(&from, this); + const ArrayJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.ArrayJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.ArrayJob) + MergeFrom(*source); + } +} + +void ArrayJob::MergeFrom(const ArrayJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.ArrayJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.parallelism() != 0) { + set_parallelism(from.parallelism()); + } + if (from.size() != 0) { + set_size(from.size()); + } + switch (from.success_criteria_case()) { + case kMinSuccesses: { + set_min_successes(from.min_successes()); + break; + } + case kMinSuccessRatio: { + set_min_success_ratio(from.min_success_ratio()); + break; + } + case SUCCESS_CRITERIA_NOT_SET: { + break; + } + } +} + +void ArrayJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.ArrayJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArrayJob::CopyFrom(const ArrayJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.ArrayJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArrayJob::IsInitialized() const { + return true; +} + +void ArrayJob::Swap(ArrayJob* other) { + if (other == this) return; + InternalSwap(other); +} +void ArrayJob::InternalSwap(ArrayJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(parallelism_, other->parallelism_); + swap(size_, other->size_); + swap(success_criteria_, other->success_criteria_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ArrayJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2farray_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2farray_5fjob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::ArrayJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::ArrayJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::ArrayJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h new file mode 100644 index 0000000000..a0e835f77d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h @@ -0,0 +1,341 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2farray_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2farray_5fjob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2farray_5fjob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto(); +namespace flyteidl { +namespace plugins { +class ArrayJob; +class ArrayJobDefaultTypeInternal; +extern ArrayJobDefaultTypeInternal _ArrayJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::ArrayJob* Arena::CreateMaybeMessage<::flyteidl::plugins::ArrayJob>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class ArrayJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.ArrayJob) */ { + public: + ArrayJob(); + virtual ~ArrayJob(); + + ArrayJob(const ArrayJob& from); + + inline ArrayJob& operator=(const ArrayJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArrayJob(ArrayJob&& from) noexcept + : ArrayJob() { + *this = ::std::move(from); + } + + inline ArrayJob& operator=(ArrayJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ArrayJob& default_instance(); + + enum SuccessCriteriaCase { + kMinSuccesses = 3, + kMinSuccessRatio = 4, + SUCCESS_CRITERIA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArrayJob* internal_default_instance() { + return reinterpret_cast( + &_ArrayJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ArrayJob* other); + friend void swap(ArrayJob& a, ArrayJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArrayJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArrayJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ArrayJob& from); + void MergeFrom(const ArrayJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ArrayJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 parallelism = 1; + void clear_parallelism(); + static const int kParallelismFieldNumber = 1; + ::google::protobuf::int64 parallelism() const; + void set_parallelism(::google::protobuf::int64 value); + + // int64 size = 2; + void clear_size(); + static const int kSizeFieldNumber = 2; + ::google::protobuf::int64 size() const; + void set_size(::google::protobuf::int64 value); + + // int64 min_successes = 3; + private: + bool has_min_successes() const; + public: + void clear_min_successes(); + static const int kMinSuccessesFieldNumber = 3; + ::google::protobuf::int64 min_successes() const; + void set_min_successes(::google::protobuf::int64 value); + + // float min_success_ratio = 4; + private: + bool has_min_success_ratio() const; + public: + void clear_min_success_ratio(); + static const int kMinSuccessRatioFieldNumber = 4; + float min_success_ratio() const; + void set_min_success_ratio(float value); + + void clear_success_criteria(); + SuccessCriteriaCase success_criteria_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) + private: + class HasBitSetters; + void set_has_min_successes(); + void set_has_min_success_ratio(); + + inline bool has_success_criteria() const; + inline void clear_has_success_criteria(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 parallelism_; + ::google::protobuf::int64 size_; + union SuccessCriteriaUnion { + SuccessCriteriaUnion() {} + ::google::protobuf::int64 min_successes_; + float min_success_ratio_; + } success_criteria_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ArrayJob + +// int64 parallelism = 1; +inline void ArrayJob::clear_parallelism() { + parallelism_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 ArrayJob::parallelism() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.parallelism) + return parallelism_; +} +inline void ArrayJob::set_parallelism(::google::protobuf::int64 value) { + + parallelism_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.parallelism) +} + +// int64 size = 2; +inline void ArrayJob::clear_size() { + size_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 ArrayJob::size() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.size) + return size_; +} +inline void ArrayJob::set_size(::google::protobuf::int64 value) { + + size_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.size) +} + +// int64 min_successes = 3; +inline bool ArrayJob::has_min_successes() const { + return success_criteria_case() == kMinSuccesses; +} +inline void ArrayJob::set_has_min_successes() { + _oneof_case_[0] = kMinSuccesses; +} +inline void ArrayJob::clear_min_successes() { + if (has_min_successes()) { + success_criteria_.min_successes_ = PROTOBUF_LONGLONG(0); + clear_has_success_criteria(); + } +} +inline ::google::protobuf::int64 ArrayJob::min_successes() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.min_successes) + if (has_min_successes()) { + return success_criteria_.min_successes_; + } + return PROTOBUF_LONGLONG(0); +} +inline void ArrayJob::set_min_successes(::google::protobuf::int64 value) { + if (!has_min_successes()) { + clear_success_criteria(); + set_has_min_successes(); + } + success_criteria_.min_successes_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.min_successes) +} + +// float min_success_ratio = 4; +inline bool ArrayJob::has_min_success_ratio() const { + return success_criteria_case() == kMinSuccessRatio; +} +inline void ArrayJob::set_has_min_success_ratio() { + _oneof_case_[0] = kMinSuccessRatio; +} +inline void ArrayJob::clear_min_success_ratio() { + if (has_min_success_ratio()) { + success_criteria_.min_success_ratio_ = 0; + clear_has_success_criteria(); + } +} +inline float ArrayJob::min_success_ratio() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.min_success_ratio) + if (has_min_success_ratio()) { + return success_criteria_.min_success_ratio_; + } + return 0; +} +inline void ArrayJob::set_min_success_ratio(float value) { + if (!has_min_success_ratio()) { + clear_success_criteria(); + set_has_min_success_ratio(); + } + success_criteria_.min_success_ratio_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.min_success_ratio) +} + +inline bool ArrayJob::has_success_criteria() const { + return success_criteria_case() != SUCCESS_CRITERIA_NOT_SET; +} +inline void ArrayJob::clear_has_success_criteria() { + _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; +} +inline ArrayJob::SuccessCriteriaCase ArrayJob::success_criteria_case() const { + return ArrayJob::SuccessCriteriaCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2farray_5fjob_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.cc new file mode 100644 index 0000000000..c004653c96 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/dask.proto + +#include "flyteidl/plugins/dask.pb.h" +#include "flyteidl/plugins/dask.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.h new file mode 100644 index 0000000000..825c2c6ce3 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/dask.proto +#ifndef GRPC_flyteidl_2fplugins_2fdask_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fdask_2eproto__INCLUDED + +#include "flyteidl/plugins/dask.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fdask_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.cc new file mode 100644 index 0000000000..214124211e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.cc @@ -0,0 +1,1327 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/dask.proto + +#include "flyteidl/plugins/dask.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fdask_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fdask_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto; +namespace flyteidl { +namespace plugins { +class DaskJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DaskJob_default_instance_; +class DaskSchedulerDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DaskScheduler_default_instance_; +class DaskWorkerGroupDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DaskWorkerGroup_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsDaskJob_flyteidl_2fplugins_2fdask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_DaskJob_default_instance_; + new (ptr) ::flyteidl::plugins::DaskJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::DaskJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDaskJob_flyteidl_2fplugins_2fdask_2eproto}, { + &scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base, + &scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base,}}; + +static void InitDefaultsDaskScheduler_flyteidl_2fplugins_2fdask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_DaskScheduler_default_instance_; + new (ptr) ::flyteidl::plugins::DaskScheduler(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::DaskScheduler::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDaskScheduler_flyteidl_2fplugins_2fdask_2eproto}, { + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsDaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_DaskWorkerGroup_default_instance_; + new (ptr) ::flyteidl::plugins::DaskWorkerGroup(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::DaskWorkerGroup::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto}, { + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fdask_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[3]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fdask_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fdask_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fdask_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskJob, scheduler_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskJob, workers_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskScheduler, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskScheduler, image_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskScheduler, resources_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, number_of_workers_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, image_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, resources_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::DaskJob)}, + { 7, -1, sizeof(::flyteidl::plugins::DaskScheduler)}, + { 14, -1, sizeof(::flyteidl::plugins::DaskWorkerGroup)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_DaskJob_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_DaskScheduler_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_DaskWorkerGroup_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fdask_2eproto, "flyteidl/plugins/dask.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fdask_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fdask_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fdask_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fdask_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fdask_2eproto[] = + "\n\033flyteidl/plugins/dask.proto\022\020flyteidl." + "plugins\032\031flyteidl/core/tasks.proto\"q\n\007Da" + "skJob\0222\n\tscheduler\030\001 \001(\0132\037.flyteidl.plug" + "ins.DaskScheduler\0222\n\007workers\030\002 \001(\0132!.fly" + "teidl.plugins.DaskWorkerGroup\"K\n\rDaskSch" + "eduler\022\r\n\005image\030\001 \001(\t\022+\n\tresources\030\002 \001(\013" + "2\030.flyteidl.core.Resources\"h\n\017DaskWorker" + "Group\022\031\n\021number_of_workers\030\001 \001(\r\022\r\n\005imag" + "e\030\002 \001(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.co" + "re.ResourcesB9Z7github.com/flyteorg/flyt" + "eidl/gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fdask_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fdask_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fdask_2eproto, + "flyteidl/plugins/dask.proto", &assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto, 439, +}; + +void AddDescriptors_flyteidl_2fplugins_2fdask_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fdask_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fdask_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fdask_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void DaskJob::InitAsDefaultInstance() { + ::flyteidl::plugins::_DaskJob_default_instance_._instance.get_mutable()->scheduler_ = const_cast< ::flyteidl::plugins::DaskScheduler*>( + ::flyteidl::plugins::DaskScheduler::internal_default_instance()); + ::flyteidl::plugins::_DaskJob_default_instance_._instance.get_mutable()->workers_ = const_cast< ::flyteidl::plugins::DaskWorkerGroup*>( + ::flyteidl::plugins::DaskWorkerGroup::internal_default_instance()); +} +class DaskJob::HasBitSetters { + public: + static const ::flyteidl::plugins::DaskScheduler& scheduler(const DaskJob* msg); + static const ::flyteidl::plugins::DaskWorkerGroup& workers(const DaskJob* msg); +}; + +const ::flyteidl::plugins::DaskScheduler& +DaskJob::HasBitSetters::scheduler(const DaskJob* msg) { + return *msg->scheduler_; +} +const ::flyteidl::plugins::DaskWorkerGroup& +DaskJob::HasBitSetters::workers(const DaskJob* msg) { + return *msg->workers_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DaskJob::kSchedulerFieldNumber; +const int DaskJob::kWorkersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DaskJob::DaskJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.DaskJob) +} +DaskJob::DaskJob(const DaskJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_scheduler()) { + scheduler_ = new ::flyteidl::plugins::DaskScheduler(*from.scheduler_); + } else { + scheduler_ = nullptr; + } + if (from.has_workers()) { + workers_ = new ::flyteidl::plugins::DaskWorkerGroup(*from.workers_); + } else { + workers_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DaskJob) +} + +void DaskJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto.base); + ::memset(&scheduler_, 0, static_cast( + reinterpret_cast(&workers_) - + reinterpret_cast(&scheduler_)) + sizeof(workers_)); +} + +DaskJob::~DaskJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.DaskJob) + SharedDtor(); +} + +void DaskJob::SharedDtor() { + if (this != internal_default_instance()) delete scheduler_; + if (this != internal_default_instance()) delete workers_; +} + +void DaskJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DaskJob& DaskJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto.base); + return *internal_default_instance(); +} + + +void DaskJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DaskJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && scheduler_ != nullptr) { + delete scheduler_; + } + scheduler_ = nullptr; + if (GetArenaNoVirtual() == nullptr && workers_ != nullptr) { + delete workers_; + } + workers_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DaskJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.DaskScheduler scheduler = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::DaskScheduler::_InternalParse; + object = msg->mutable_scheduler(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.DaskWorkerGroup workers = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::DaskWorkerGroup::_InternalParse; + object = msg->mutable_workers(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DaskJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.DaskJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.DaskScheduler scheduler = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scheduler())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.DaskWorkerGroup workers = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workers())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.DaskJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DaskJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DaskJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DaskJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.DaskScheduler scheduler = 1; + if (this->has_scheduler()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::scheduler(this), output); + } + + // .flyteidl.plugins.DaskWorkerGroup workers = 2; + if (this->has_workers()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::workers(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DaskJob) +} + +::google::protobuf::uint8* DaskJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DaskJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.DaskScheduler scheduler = 1; + if (this->has_scheduler()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::scheduler(this), target); + } + + // .flyteidl.plugins.DaskWorkerGroup workers = 2; + if (this->has_workers()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::workers(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.DaskJob) + return target; +} + +size_t DaskJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DaskJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.DaskScheduler scheduler = 1; + if (this->has_scheduler()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *scheduler_); + } + + // .flyteidl.plugins.DaskWorkerGroup workers = 2; + if (this->has_workers()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *workers_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DaskJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DaskJob) + GOOGLE_DCHECK_NE(&from, this); + const DaskJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DaskJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DaskJob) + MergeFrom(*source); + } +} + +void DaskJob::MergeFrom(const DaskJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DaskJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_scheduler()) { + mutable_scheduler()->::flyteidl::plugins::DaskScheduler::MergeFrom(from.scheduler()); + } + if (from.has_workers()) { + mutable_workers()->::flyteidl::plugins::DaskWorkerGroup::MergeFrom(from.workers()); + } +} + +void DaskJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DaskJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DaskJob::CopyFrom(const DaskJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DaskJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DaskJob::IsInitialized() const { + return true; +} + +void DaskJob::Swap(DaskJob* other) { + if (other == this) return; + InternalSwap(other); +} +void DaskJob::InternalSwap(DaskJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(scheduler_, other->scheduler_); + swap(workers_, other->workers_); +} + +::google::protobuf::Metadata DaskJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DaskScheduler::InitAsDefaultInstance() { + ::flyteidl::plugins::_DaskScheduler_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); +} +class DaskScheduler::HasBitSetters { + public: + static const ::flyteidl::core::Resources& resources(const DaskScheduler* msg); +}; + +const ::flyteidl::core::Resources& +DaskScheduler::HasBitSetters::resources(const DaskScheduler* msg) { + return *msg->resources_; +} +void DaskScheduler::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DaskScheduler::kImageFieldNumber; +const int DaskScheduler::kResourcesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DaskScheduler::DaskScheduler() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.DaskScheduler) +} +DaskScheduler::DaskScheduler(const DaskScheduler& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.image().size() > 0) { + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DaskScheduler) +} + +void DaskScheduler::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resources_ = nullptr; +} + +DaskScheduler::~DaskScheduler() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.DaskScheduler) + SharedDtor(); +} + +void DaskScheduler::SharedDtor() { + image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete resources_; +} + +void DaskScheduler::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DaskScheduler& DaskScheduler::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base); + return *internal_default_instance(); +} + + +void DaskScheduler::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DaskScheduler) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DaskScheduler::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string image = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.DaskScheduler.image"); + object = msg->mutable_image(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Resources resources = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DaskScheduler::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.DaskScheduler) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string image = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_image())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.DaskScheduler.image")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Resources resources = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.DaskScheduler) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DaskScheduler) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DaskScheduler::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DaskScheduler) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string image = 1; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.DaskScheduler.image"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->image(), output); + } + + // .flyteidl.core.Resources resources = 2; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::resources(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DaskScheduler) +} + +::google::protobuf::uint8* DaskScheduler::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DaskScheduler) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string image = 1; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.DaskScheduler.image"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->image(), target); + } + + // .flyteidl.core.Resources resources = 2; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::resources(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.DaskScheduler) + return target; +} + +size_t DaskScheduler::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DaskScheduler) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string image = 1; + if (this->image().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->image()); + } + + // .flyteidl.core.Resources resources = 2; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DaskScheduler::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DaskScheduler) + GOOGLE_DCHECK_NE(&from, this); + const DaskScheduler* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DaskScheduler) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DaskScheduler) + MergeFrom(*source); + } +} + +void DaskScheduler::MergeFrom(const DaskScheduler& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DaskScheduler) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.image().size() > 0) { + + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } +} + +void DaskScheduler::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DaskScheduler) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DaskScheduler::CopyFrom(const DaskScheduler& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DaskScheduler) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DaskScheduler::IsInitialized() const { + return true; +} + +void DaskScheduler::Swap(DaskScheduler* other) { + if (other == this) return; + InternalSwap(other); +} +void DaskScheduler::InternalSwap(DaskScheduler* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resources_, other->resources_); +} + +::google::protobuf::Metadata DaskScheduler::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DaskWorkerGroup::InitAsDefaultInstance() { + ::flyteidl::plugins::_DaskWorkerGroup_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); +} +class DaskWorkerGroup::HasBitSetters { + public: + static const ::flyteidl::core::Resources& resources(const DaskWorkerGroup* msg); +}; + +const ::flyteidl::core::Resources& +DaskWorkerGroup::HasBitSetters::resources(const DaskWorkerGroup* msg) { + return *msg->resources_; +} +void DaskWorkerGroup::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DaskWorkerGroup::kNumberOfWorkersFieldNumber; +const int DaskWorkerGroup::kImageFieldNumber; +const int DaskWorkerGroup::kResourcesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DaskWorkerGroup::DaskWorkerGroup() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.DaskWorkerGroup) +} +DaskWorkerGroup::DaskWorkerGroup(const DaskWorkerGroup& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.image().size() > 0) { + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = nullptr; + } + number_of_workers_ = from.number_of_workers_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DaskWorkerGroup) +} + +void DaskWorkerGroup::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&resources_, 0, static_cast( + reinterpret_cast(&number_of_workers_) - + reinterpret_cast(&resources_)) + sizeof(number_of_workers_)); +} + +DaskWorkerGroup::~DaskWorkerGroup() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.DaskWorkerGroup) + SharedDtor(); +} + +void DaskWorkerGroup::SharedDtor() { + image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete resources_; +} + +void DaskWorkerGroup::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DaskWorkerGroup& DaskWorkerGroup::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base); + return *internal_default_instance(); +} + + +void DaskWorkerGroup::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DaskWorkerGroup) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + number_of_workers_ = 0u; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DaskWorkerGroup::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // uint32 number_of_workers = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_number_of_workers(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string image = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.DaskWorkerGroup.image"); + object = msg->mutable_image(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DaskWorkerGroup::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.DaskWorkerGroup) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // uint32 number_of_workers = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &number_of_workers_))); + } else { + goto handle_unusual; + } + break; + } + + // string image = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_image())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.DaskWorkerGroup.image")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.DaskWorkerGroup) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DaskWorkerGroup) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DaskWorkerGroup::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DaskWorkerGroup) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 number_of_workers = 1; + if (this->number_of_workers() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->number_of_workers(), output); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.DaskWorkerGroup.image"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->image(), output); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::resources(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DaskWorkerGroup) +} + +::google::protobuf::uint8* DaskWorkerGroup::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DaskWorkerGroup) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 number_of_workers = 1; + if (this->number_of_workers() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->number_of_workers(), target); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.DaskWorkerGroup.image"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->image(), target); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::resources(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.DaskWorkerGroup) + return target; +} + +size_t DaskWorkerGroup::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DaskWorkerGroup) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string image = 2; + if (this->image().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->image()); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + // uint32 number_of_workers = 1; + if (this->number_of_workers() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->number_of_workers()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DaskWorkerGroup::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DaskWorkerGroup) + GOOGLE_DCHECK_NE(&from, this); + const DaskWorkerGroup* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DaskWorkerGroup) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DaskWorkerGroup) + MergeFrom(*source); + } +} + +void DaskWorkerGroup::MergeFrom(const DaskWorkerGroup& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DaskWorkerGroup) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.image().size() > 0) { + + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } + if (from.number_of_workers() != 0) { + set_number_of_workers(from.number_of_workers()); + } +} + +void DaskWorkerGroup::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DaskWorkerGroup) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DaskWorkerGroup::CopyFrom(const DaskWorkerGroup& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DaskWorkerGroup) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DaskWorkerGroup::IsInitialized() const { + return true; +} + +void DaskWorkerGroup::Swap(DaskWorkerGroup* other) { + if (other == this) return; + InternalSwap(other); +} +void DaskWorkerGroup::InternalSwap(DaskWorkerGroup* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resources_, other->resources_); + swap(number_of_workers_, other->number_of_workers_); +} + +::google::protobuf::Metadata DaskWorkerGroup::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DaskJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::DaskJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::DaskJob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DaskScheduler* Arena::CreateMaybeMessage< ::flyteidl::plugins::DaskScheduler >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::DaskScheduler >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DaskWorkerGroup* Arena::CreateMaybeMessage< ::flyteidl::plugins::DaskWorkerGroup >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::DaskWorkerGroup >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.h new file mode 100644 index 0000000000..e1371fc2a3 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.h @@ -0,0 +1,814 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/dask.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fdask_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fdask_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/tasks.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fdask_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fdask_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fdask_2eproto(); +namespace flyteidl { +namespace plugins { +class DaskJob; +class DaskJobDefaultTypeInternal; +extern DaskJobDefaultTypeInternal _DaskJob_default_instance_; +class DaskScheduler; +class DaskSchedulerDefaultTypeInternal; +extern DaskSchedulerDefaultTypeInternal _DaskScheduler_default_instance_; +class DaskWorkerGroup; +class DaskWorkerGroupDefaultTypeInternal; +extern DaskWorkerGroupDefaultTypeInternal _DaskWorkerGroup_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::DaskJob* Arena::CreateMaybeMessage<::flyteidl::plugins::DaskJob>(Arena*); +template<> ::flyteidl::plugins::DaskScheduler* Arena::CreateMaybeMessage<::flyteidl::plugins::DaskScheduler>(Arena*); +template<> ::flyteidl::plugins::DaskWorkerGroup* Arena::CreateMaybeMessage<::flyteidl::plugins::DaskWorkerGroup>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class DaskJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DaskJob) */ { + public: + DaskJob(); + virtual ~DaskJob(); + + DaskJob(const DaskJob& from); + + inline DaskJob& operator=(const DaskJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DaskJob(DaskJob&& from) noexcept + : DaskJob() { + *this = ::std::move(from); + } + + inline DaskJob& operator=(DaskJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DaskJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DaskJob* internal_default_instance() { + return reinterpret_cast( + &_DaskJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DaskJob* other); + friend void swap(DaskJob& a, DaskJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DaskJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + DaskJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DaskJob& from); + void MergeFrom(const DaskJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DaskJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.DaskScheduler scheduler = 1; + bool has_scheduler() const; + void clear_scheduler(); + static const int kSchedulerFieldNumber = 1; + const ::flyteidl::plugins::DaskScheduler& scheduler() const; + ::flyteidl::plugins::DaskScheduler* release_scheduler(); + ::flyteidl::plugins::DaskScheduler* mutable_scheduler(); + void set_allocated_scheduler(::flyteidl::plugins::DaskScheduler* scheduler); + + // .flyteidl.plugins.DaskWorkerGroup workers = 2; + bool has_workers() const; + void clear_workers(); + static const int kWorkersFieldNumber = 2; + const ::flyteidl::plugins::DaskWorkerGroup& workers() const; + ::flyteidl::plugins::DaskWorkerGroup* release_workers(); + ::flyteidl::plugins::DaskWorkerGroup* mutable_workers(); + void set_allocated_workers(::flyteidl::plugins::DaskWorkerGroup* workers); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::DaskScheduler* scheduler_; + ::flyteidl::plugins::DaskWorkerGroup* workers_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fdask_2eproto; +}; +// ------------------------------------------------------------------- + +class DaskScheduler final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DaskScheduler) */ { + public: + DaskScheduler(); + virtual ~DaskScheduler(); + + DaskScheduler(const DaskScheduler& from); + + inline DaskScheduler& operator=(const DaskScheduler& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DaskScheduler(DaskScheduler&& from) noexcept + : DaskScheduler() { + *this = ::std::move(from); + } + + inline DaskScheduler& operator=(DaskScheduler&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DaskScheduler& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DaskScheduler* internal_default_instance() { + return reinterpret_cast( + &_DaskScheduler_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(DaskScheduler* other); + friend void swap(DaskScheduler& a, DaskScheduler& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DaskScheduler* New() const final { + return CreateMaybeMessage(nullptr); + } + + DaskScheduler* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DaskScheduler& from); + void MergeFrom(const DaskScheduler& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DaskScheduler* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string image = 1; + void clear_image(); + static const int kImageFieldNumber = 1; + const ::std::string& image() const; + void set_image(const ::std::string& value); + #if LANG_CXX11 + void set_image(::std::string&& value); + #endif + void set_image(const char* value); + void set_image(const char* value, size_t size); + ::std::string* mutable_image(); + ::std::string* release_image(); + void set_allocated_image(::std::string* image); + + // .flyteidl.core.Resources resources = 2; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 2; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskScheduler) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr image_; + ::flyteidl::core::Resources* resources_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fdask_2eproto; +}; +// ------------------------------------------------------------------- + +class DaskWorkerGroup final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DaskWorkerGroup) */ { + public: + DaskWorkerGroup(); + virtual ~DaskWorkerGroup(); + + DaskWorkerGroup(const DaskWorkerGroup& from); + + inline DaskWorkerGroup& operator=(const DaskWorkerGroup& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DaskWorkerGroup(DaskWorkerGroup&& from) noexcept + : DaskWorkerGroup() { + *this = ::std::move(from); + } + + inline DaskWorkerGroup& operator=(DaskWorkerGroup&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DaskWorkerGroup& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DaskWorkerGroup* internal_default_instance() { + return reinterpret_cast( + &_DaskWorkerGroup_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(DaskWorkerGroup* other); + friend void swap(DaskWorkerGroup& a, DaskWorkerGroup& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DaskWorkerGroup* New() const final { + return CreateMaybeMessage(nullptr); + } + + DaskWorkerGroup* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DaskWorkerGroup& from); + void MergeFrom(const DaskWorkerGroup& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DaskWorkerGroup* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string image = 2; + void clear_image(); + static const int kImageFieldNumber = 2; + const ::std::string& image() const; + void set_image(const ::std::string& value); + #if LANG_CXX11 + void set_image(::std::string&& value); + #endif + void set_image(const char* value); + void set_image(const char* value, size_t size); + ::std::string* mutable_image(); + ::std::string* release_image(); + void set_allocated_image(::std::string* image); + + // .flyteidl.core.Resources resources = 3; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 3; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // uint32 number_of_workers = 1; + void clear_number_of_workers(); + static const int kNumberOfWorkersFieldNumber = 1; + ::google::protobuf::uint32 number_of_workers() const; + void set_number_of_workers(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskWorkerGroup) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr image_; + ::flyteidl::core::Resources* resources_; + ::google::protobuf::uint32 number_of_workers_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fdask_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DaskJob + +// .flyteidl.plugins.DaskScheduler scheduler = 1; +inline bool DaskJob::has_scheduler() const { + return this != internal_default_instance() && scheduler_ != nullptr; +} +inline void DaskJob::clear_scheduler() { + if (GetArenaNoVirtual() == nullptr && scheduler_ != nullptr) { + delete scheduler_; + } + scheduler_ = nullptr; +} +inline const ::flyteidl::plugins::DaskScheduler& DaskJob::scheduler() const { + const ::flyteidl::plugins::DaskScheduler* p = scheduler_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskJob.scheduler) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::_DaskScheduler_default_instance_); +} +inline ::flyteidl::plugins::DaskScheduler* DaskJob::release_scheduler() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskJob.scheduler) + + ::flyteidl::plugins::DaskScheduler* temp = scheduler_; + scheduler_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::DaskScheduler* DaskJob::mutable_scheduler() { + + if (scheduler_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::DaskScheduler>(GetArenaNoVirtual()); + scheduler_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskJob.scheduler) + return scheduler_; +} +inline void DaskJob::set_allocated_scheduler(::flyteidl::plugins::DaskScheduler* scheduler) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete scheduler_; + } + if (scheduler) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + scheduler = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scheduler, submessage_arena); + } + + } else { + + } + scheduler_ = scheduler; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskJob.scheduler) +} + +// .flyteidl.plugins.DaskWorkerGroup workers = 2; +inline bool DaskJob::has_workers() const { + return this != internal_default_instance() && workers_ != nullptr; +} +inline void DaskJob::clear_workers() { + if (GetArenaNoVirtual() == nullptr && workers_ != nullptr) { + delete workers_; + } + workers_ = nullptr; +} +inline const ::flyteidl::plugins::DaskWorkerGroup& DaskJob::workers() const { + const ::flyteidl::plugins::DaskWorkerGroup* p = workers_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskJob.workers) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::_DaskWorkerGroup_default_instance_); +} +inline ::flyteidl::plugins::DaskWorkerGroup* DaskJob::release_workers() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskJob.workers) + + ::flyteidl::plugins::DaskWorkerGroup* temp = workers_; + workers_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::DaskWorkerGroup* DaskJob::mutable_workers() { + + if (workers_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::DaskWorkerGroup>(GetArenaNoVirtual()); + workers_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskJob.workers) + return workers_; +} +inline void DaskJob::set_allocated_workers(::flyteidl::plugins::DaskWorkerGroup* workers) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete workers_; + } + if (workers) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + workers = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workers, submessage_arena); + } + + } else { + + } + workers_ = workers; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskJob.workers) +} + +// ------------------------------------------------------------------- + +// DaskScheduler + +// string image = 1; +inline void DaskScheduler::clear_image() { + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DaskScheduler::image() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskScheduler.image) + return image_.GetNoArena(); +} +inline void DaskScheduler::set_image(const ::std::string& value) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.DaskScheduler.image) +} +#if LANG_CXX11 +inline void DaskScheduler::set_image(::std::string&& value) { + + image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.DaskScheduler.image) +} +#endif +inline void DaskScheduler::set_image(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.DaskScheduler.image) +} +inline void DaskScheduler::set_image(const char* value, size_t size) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.DaskScheduler.image) +} +inline ::std::string* DaskScheduler::mutable_image() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskScheduler.image) + return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DaskScheduler::release_image() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskScheduler.image) + + return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DaskScheduler::set_allocated_image(::std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskScheduler.image) +} + +// .flyteidl.core.Resources resources = 2; +inline bool DaskScheduler::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline const ::flyteidl::core::Resources& DaskScheduler::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskScheduler.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* DaskScheduler::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskScheduler.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::flyteidl::core::Resources* DaskScheduler::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskScheduler.resources) + return resources_; +} +inline void DaskScheduler::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskScheduler.resources) +} + +// ------------------------------------------------------------------- + +// DaskWorkerGroup + +// uint32 number_of_workers = 1; +inline void DaskWorkerGroup::clear_number_of_workers() { + number_of_workers_ = 0u; +} +inline ::google::protobuf::uint32 DaskWorkerGroup::number_of_workers() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskWorkerGroup.number_of_workers) + return number_of_workers_; +} +inline void DaskWorkerGroup::set_number_of_workers(::google::protobuf::uint32 value) { + + number_of_workers_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DaskWorkerGroup.number_of_workers) +} + +// string image = 2; +inline void DaskWorkerGroup::clear_image() { + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DaskWorkerGroup::image() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskWorkerGroup.image) + return image_.GetNoArena(); +} +inline void DaskWorkerGroup::set_image(const ::std::string& value) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.DaskWorkerGroup.image) +} +#if LANG_CXX11 +inline void DaskWorkerGroup::set_image(::std::string&& value) { + + image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.DaskWorkerGroup.image) +} +#endif +inline void DaskWorkerGroup::set_image(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.DaskWorkerGroup.image) +} +inline void DaskWorkerGroup::set_image(const char* value, size_t size) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.DaskWorkerGroup.image) +} +inline ::std::string* DaskWorkerGroup::mutable_image() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskWorkerGroup.image) + return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DaskWorkerGroup::release_image() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskWorkerGroup.image) + + return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DaskWorkerGroup::set_allocated_image(::std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskWorkerGroup.image) +} + +// .flyteidl.core.Resources resources = 3; +inline bool DaskWorkerGroup::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline const ::flyteidl::core::Resources& DaskWorkerGroup::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskWorkerGroup.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* DaskWorkerGroup::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskWorkerGroup.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::flyteidl::core::Resources* DaskWorkerGroup::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskWorkerGroup.resources) + return resources_; +} +inline void DaskWorkerGroup::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskWorkerGroup.resources) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fdask_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.cc new file mode 100644 index 0000000000..97c9820090 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/common.proto + +#include "flyteidl/plugins/kubeflow/common.pb.h" +#include "flyteidl/plugins/kubeflow/common.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace flyteidl +} // namespace plugins +} // namespace kubeflow + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.h new file mode 100644 index 0000000000..010f31fab1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/common.proto +#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto__INCLUDED + +#include "flyteidl/plugins/kubeflow/common.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.cc new file mode 100644 index 0000000000..3ee0fd4418 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.cc @@ -0,0 +1,548 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/common.proto + +#include "flyteidl/plugins/kubeflow/common.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class RunPolicyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _RunPolicy_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsRunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::RunPolicy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::RunPolicy::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto}, {}}; + +void InitDefaults_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[1]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[2]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, clean_pod_policy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, ttl_seconds_after_finished_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, active_deadline_seconds_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, backoff_limit_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::kubeflow::RunPolicy)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, "flyteidl/plugins/kubeflow/common.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[] = + "\n&flyteidl/plugins/kubeflow/common.proto" + "\022\031flyteidl.plugins.kubeflow\"\254\001\n\tRunPolic" + "y\022C\n\020clean_pod_policy\030\001 \001(\0162).flyteidl.p" + "lugins.kubeflow.CleanPodPolicy\022\"\n\032ttl_se" + "conds_after_finished\030\002 \001(\005\022\037\n\027active_dea" + "dline_seconds\030\003 \001(\005\022\025\n\rbackoff_limit\030\004 \001" + "(\005*c\n\rRestartPolicy\022\030\n\024RESTART_POLICY_NE" + "VER\020\000\022\035\n\031RESTART_POLICY_ON_FAILURE\020\001\022\031\n\025" + "RESTART_POLICY_ALWAYS\020\002*`\n\016CleanPodPolic" + "y\022\030\n\024CLEANPOD_POLICY_NONE\020\000\022\033\n\027CLEANPOD_" + "POLICY_RUNNING\020\001\022\027\n\023CLEANPOD_POLICY_ALL\020" + "\002B9Z7github.com/flyteorg/flyteidl/gen/pb" + "-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, + "flyteidl/plugins/kubeflow/common.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, 508, +}; + +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { +const ::google::protobuf::EnumDescriptor* RestartPolicy_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[0]; +} +bool RestartPolicy_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* CleanPodPolicy_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[1]; +} +bool CleanPodPolicy_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +void RunPolicy::InitAsDefaultInstance() { +} +class RunPolicy::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RunPolicy::kCleanPodPolicyFieldNumber; +const int RunPolicy::kTtlSecondsAfterFinishedFieldNumber; +const int RunPolicy::kActiveDeadlineSecondsFieldNumber; +const int RunPolicy::kBackoffLimitFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RunPolicy::RunPolicy() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.RunPolicy) +} +RunPolicy::RunPolicy(const RunPolicy& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&clean_pod_policy_, &from.clean_pod_policy_, + static_cast(reinterpret_cast(&backoff_limit_) - + reinterpret_cast(&clean_pod_policy_)) + sizeof(backoff_limit_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.RunPolicy) +} + +void RunPolicy::SharedCtor() { + ::memset(&clean_pod_policy_, 0, static_cast( + reinterpret_cast(&backoff_limit_) - + reinterpret_cast(&clean_pod_policy_)) + sizeof(backoff_limit_)); +} + +RunPolicy::~RunPolicy() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.RunPolicy) + SharedDtor(); +} + +void RunPolicy::SharedDtor() { +} + +void RunPolicy::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RunPolicy& RunPolicy::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base); + return *internal_default_instance(); +} + + +void RunPolicy::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.RunPolicy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&clean_pod_policy_, 0, static_cast( + reinterpret_cast(&backoff_limit_) - + reinterpret_cast(&clean_pod_policy_)) + sizeof(backoff_limit_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RunPolicy::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_clean_pod_policy(static_cast<::flyteidl::plugins::kubeflow::CleanPodPolicy>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 ttl_seconds_after_finished = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_ttl_seconds_after_finished(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 active_deadline_seconds = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_active_deadline_seconds(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 backoff_limit = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_backoff_limit(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RunPolicy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.RunPolicy) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_clean_pod_policy(static_cast< ::flyteidl::plugins::kubeflow::CleanPodPolicy >(value)); + } else { + goto handle_unusual; + } + break; + } + + // int32 ttl_seconds_after_finished = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &ttl_seconds_after_finished_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 active_deadline_seconds = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &active_deadline_seconds_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 backoff_limit = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &backoff_limit_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.RunPolicy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.RunPolicy) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RunPolicy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.RunPolicy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + if (this->clean_pod_policy() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->clean_pod_policy(), output); + } + + // int32 ttl_seconds_after_finished = 2; + if (this->ttl_seconds_after_finished() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ttl_seconds_after_finished(), output); + } + + // int32 active_deadline_seconds = 3; + if (this->active_deadline_seconds() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->active_deadline_seconds(), output); + } + + // int32 backoff_limit = 4; + if (this->backoff_limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->backoff_limit(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.RunPolicy) +} + +::google::protobuf::uint8* RunPolicy::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.RunPolicy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + if (this->clean_pod_policy() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->clean_pod_policy(), target); + } + + // int32 ttl_seconds_after_finished = 2; + if (this->ttl_seconds_after_finished() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ttl_seconds_after_finished(), target); + } + + // int32 active_deadline_seconds = 3; + if (this->active_deadline_seconds() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->active_deadline_seconds(), target); + } + + // int32 backoff_limit = 4; + if (this->backoff_limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->backoff_limit(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.RunPolicy) + return target; +} + +size_t RunPolicy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.RunPolicy) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + if (this->clean_pod_policy() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->clean_pod_policy()); + } + + // int32 ttl_seconds_after_finished = 2; + if (this->ttl_seconds_after_finished() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->ttl_seconds_after_finished()); + } + + // int32 active_deadline_seconds = 3; + if (this->active_deadline_seconds() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->active_deadline_seconds()); + } + + // int32 backoff_limit = 4; + if (this->backoff_limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->backoff_limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RunPolicy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.RunPolicy) + GOOGLE_DCHECK_NE(&from, this); + const RunPolicy* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.RunPolicy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.RunPolicy) + MergeFrom(*source); + } +} + +void RunPolicy::MergeFrom(const RunPolicy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.RunPolicy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.clean_pod_policy() != 0) { + set_clean_pod_policy(from.clean_pod_policy()); + } + if (from.ttl_seconds_after_finished() != 0) { + set_ttl_seconds_after_finished(from.ttl_seconds_after_finished()); + } + if (from.active_deadline_seconds() != 0) { + set_active_deadline_seconds(from.active_deadline_seconds()); + } + if (from.backoff_limit() != 0) { + set_backoff_limit(from.backoff_limit()); + } +} + +void RunPolicy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.RunPolicy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RunPolicy::CopyFrom(const RunPolicy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.RunPolicy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RunPolicy::IsInitialized() const { + return true; +} + +void RunPolicy::Swap(RunPolicy* other) { + if (other == this) return; + InternalSwap(other); +} +void RunPolicy::InternalSwap(RunPolicy* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(clean_pod_policy_, other->clean_pod_policy_); + swap(ttl_seconds_after_finished_, other->ttl_seconds_after_finished_); + swap(active_deadline_seconds_, other->active_deadline_seconds_); + swap(backoff_limit_, other->backoff_limit_); +} + +::google::protobuf::Metadata RunPolicy::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::RunPolicy* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::RunPolicy >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::RunPolicy >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.h new file mode 100644 index 0000000000..de4d80d2aa --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.h @@ -0,0 +1,344 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/common.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class RunPolicy; +class RunPolicyDefaultTypeInternal; +extern RunPolicyDefaultTypeInternal _RunPolicy_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::kubeflow::RunPolicy* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +enum RestartPolicy { + RESTART_POLICY_NEVER = 0, + RESTART_POLICY_ON_FAILURE = 1, + RESTART_POLICY_ALWAYS = 2, + RestartPolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + RestartPolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool RestartPolicy_IsValid(int value); +const RestartPolicy RestartPolicy_MIN = RESTART_POLICY_NEVER; +const RestartPolicy RestartPolicy_MAX = RESTART_POLICY_ALWAYS; +const int RestartPolicy_ARRAYSIZE = RestartPolicy_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RestartPolicy_descriptor(); +inline const ::std::string& RestartPolicy_Name(RestartPolicy value) { + return ::google::protobuf::internal::NameOfEnum( + RestartPolicy_descriptor(), value); +} +inline bool RestartPolicy_Parse( + const ::std::string& name, RestartPolicy* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RestartPolicy_descriptor(), name, value); +} +enum CleanPodPolicy { + CLEANPOD_POLICY_NONE = 0, + CLEANPOD_POLICY_RUNNING = 1, + CLEANPOD_POLICY_ALL = 2, + CleanPodPolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + CleanPodPolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool CleanPodPolicy_IsValid(int value); +const CleanPodPolicy CleanPodPolicy_MIN = CLEANPOD_POLICY_NONE; +const CleanPodPolicy CleanPodPolicy_MAX = CLEANPOD_POLICY_ALL; +const int CleanPodPolicy_ARRAYSIZE = CleanPodPolicy_MAX + 1; + +const ::google::protobuf::EnumDescriptor* CleanPodPolicy_descriptor(); +inline const ::std::string& CleanPodPolicy_Name(CleanPodPolicy value) { + return ::google::protobuf::internal::NameOfEnum( + CleanPodPolicy_descriptor(), value); +} +inline bool CleanPodPolicy_Parse( + const ::std::string& name, CleanPodPolicy* value) { + return ::google::protobuf::internal::ParseNamedEnum( + CleanPodPolicy_descriptor(), name, value); +} +// =================================================================== + +class RunPolicy final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.RunPolicy) */ { + public: + RunPolicy(); + virtual ~RunPolicy(); + + RunPolicy(const RunPolicy& from); + + inline RunPolicy& operator=(const RunPolicy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RunPolicy(RunPolicy&& from) noexcept + : RunPolicy() { + *this = ::std::move(from); + } + + inline RunPolicy& operator=(RunPolicy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const RunPolicy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RunPolicy* internal_default_instance() { + return reinterpret_cast( + &_RunPolicy_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(RunPolicy* other); + friend void swap(RunPolicy& a, RunPolicy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RunPolicy* New() const final { + return CreateMaybeMessage(nullptr); + } + + RunPolicy* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RunPolicy& from); + void MergeFrom(const RunPolicy& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RunPolicy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + void clear_clean_pod_policy(); + static const int kCleanPodPolicyFieldNumber = 1; + ::flyteidl::plugins::kubeflow::CleanPodPolicy clean_pod_policy() const; + void set_clean_pod_policy(::flyteidl::plugins::kubeflow::CleanPodPolicy value); + + // int32 ttl_seconds_after_finished = 2; + void clear_ttl_seconds_after_finished(); + static const int kTtlSecondsAfterFinishedFieldNumber = 2; + ::google::protobuf::int32 ttl_seconds_after_finished() const; + void set_ttl_seconds_after_finished(::google::protobuf::int32 value); + + // int32 active_deadline_seconds = 3; + void clear_active_deadline_seconds(); + static const int kActiveDeadlineSecondsFieldNumber = 3; + ::google::protobuf::int32 active_deadline_seconds() const; + void set_active_deadline_seconds(::google::protobuf::int32 value); + + // int32 backoff_limit = 4; + void clear_backoff_limit(); + static const int kBackoffLimitFieldNumber = 4; + ::google::protobuf::int32 backoff_limit() const; + void set_backoff_limit(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.RunPolicy) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + int clean_pod_policy_; + ::google::protobuf::int32 ttl_seconds_after_finished_; + ::google::protobuf::int32 active_deadline_seconds_; + ::google::protobuf::int32 backoff_limit_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RunPolicy + +// .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; +inline void RunPolicy::clear_clean_pod_policy() { + clean_pod_policy_ = 0; +} +inline ::flyteidl::plugins::kubeflow::CleanPodPolicy RunPolicy::clean_pod_policy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.clean_pod_policy) + return static_cast< ::flyteidl::plugins::kubeflow::CleanPodPolicy >(clean_pod_policy_); +} +inline void RunPolicy::set_clean_pod_policy(::flyteidl::plugins::kubeflow::CleanPodPolicy value) { + + clean_pod_policy_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.clean_pod_policy) +} + +// int32 ttl_seconds_after_finished = 2; +inline void RunPolicy::clear_ttl_seconds_after_finished() { + ttl_seconds_after_finished_ = 0; +} +inline ::google::protobuf::int32 RunPolicy::ttl_seconds_after_finished() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.ttl_seconds_after_finished) + return ttl_seconds_after_finished_; +} +inline void RunPolicy::set_ttl_seconds_after_finished(::google::protobuf::int32 value) { + + ttl_seconds_after_finished_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.ttl_seconds_after_finished) +} + +// int32 active_deadline_seconds = 3; +inline void RunPolicy::clear_active_deadline_seconds() { + active_deadline_seconds_ = 0; +} +inline ::google::protobuf::int32 RunPolicy::active_deadline_seconds() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.active_deadline_seconds) + return active_deadline_seconds_; +} +inline void RunPolicy::set_active_deadline_seconds(::google::protobuf::int32 value) { + + active_deadline_seconds_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.active_deadline_seconds) +} + +// int32 backoff_limit = 4; +inline void RunPolicy::clear_backoff_limit() { + backoff_limit_ = 0; +} +inline ::google::protobuf::int32 RunPolicy::backoff_limit() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.backoff_limit) + return backoff_limit_; +} +inline void RunPolicy::set_backoff_limit(::google::protobuf::int32 value) { + + backoff_limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.backoff_limit) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::kubeflow::RestartPolicy> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::kubeflow::RestartPolicy>() { + return ::flyteidl::plugins::kubeflow::RestartPolicy_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::kubeflow::CleanPodPolicy> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::kubeflow::CleanPodPolicy>() { + return ::flyteidl::plugins::kubeflow::CleanPodPolicy_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.cc new file mode 100644 index 0000000000..bbf565e022 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/mpi.proto + +#include "flyteidl/plugins/kubeflow/mpi.pb.h" +#include "flyteidl/plugins/kubeflow/mpi.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace flyteidl +} // namespace plugins +} // namespace kubeflow + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.h new file mode 100644 index 0000000000..c6570dd363 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/mpi.proto +#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto__INCLUDED + +#include "flyteidl/plugins/kubeflow/mpi.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.cc new file mode 100644 index 0000000000..bac650d447 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.cc @@ -0,0 +1,1173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/mpi.proto + +#include "flyteidl/plugins/kubeflow/mpi.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto; +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class DistributedMPITrainingTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedMPITrainingTask_default_instance_; +class DistributedMPITrainingReplicaSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedMPITrainingReplicaSpec_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto}, { + &scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base, + &scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base,}}; + +static void InitDefaultsDistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto}, { + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[2]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, worker_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, launcher_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, run_policy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, slots_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, image_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, resources_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, restart_policy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, command_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask)}, + { 9, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_), + reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, "flyteidl/plugins/kubeflow/mpi.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[] = + "\n#flyteidl/plugins/kubeflow/mpi.proto\022\031f" + "lyteidl.plugins.kubeflow\032\031flyteidl/core/" + "tasks.proto\032&flyteidl/plugins/kubeflow/c" + "ommon.proto\"\225\002\n\032DistributedMPITrainingTa" + "sk\022U\n\017worker_replicas\030\001 \001(\0132<.flyteidl.p" + "lugins.kubeflow.DistributedMPITrainingRe" + "plicaSpec\022W\n\021launcher_replicas\030\002 \001(\0132<.f" + "lyteidl.plugins.kubeflow.DistributedMPIT" + "rainingReplicaSpec\0228\n\nrun_policy\030\003 \001(\0132$" + ".flyteidl.plugins.kubeflow.RunPolicy\022\r\n\005" + "slots\030\004 \001(\005\"\304\001\n!DistributedMPITrainingRe" + "plicaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001" + "(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Re" + "sources\022@\n\016restart_policy\030\004 \001(\0162(.flytei" + "dl.plugins.kubeflow.RestartPolicy\022\017\n\007com" + "mand\030\005 \003(\tB9Z7github.com/flyteorg/flytei" + "dl/gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, + "flyteidl/plugins/kubeflow/mpi.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, 677, +}; + +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +// =================================================================== + +void DistributedMPITrainingTask::InitAsDefaultInstance() { + ::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_._instance.get_mutable()->worker_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec*>( + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_._instance.get_mutable()->launcher_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec*>( + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_._instance.get_mutable()->run_policy_ = const_cast< ::flyteidl::plugins::kubeflow::RunPolicy*>( + ::flyteidl::plugins::kubeflow::RunPolicy::internal_default_instance()); +} +class DistributedMPITrainingTask::HasBitSetters { + public: + static const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& worker_replicas(const DistributedMPITrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& launcher_replicas(const DistributedMPITrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy(const DistributedMPITrainingTask* msg); +}; + +const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& +DistributedMPITrainingTask::HasBitSetters::worker_replicas(const DistributedMPITrainingTask* msg) { + return *msg->worker_replicas_; +} +const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& +DistributedMPITrainingTask::HasBitSetters::launcher_replicas(const DistributedMPITrainingTask* msg) { + return *msg->launcher_replicas_; +} +const ::flyteidl::plugins::kubeflow::RunPolicy& +DistributedMPITrainingTask::HasBitSetters::run_policy(const DistributedMPITrainingTask* msg) { + return *msg->run_policy_; +} +void DistributedMPITrainingTask::clear_run_policy() { + if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { + delete run_policy_; + } + run_policy_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedMPITrainingTask::kWorkerReplicasFieldNumber; +const int DistributedMPITrainingTask::kLauncherReplicasFieldNumber; +const int DistributedMPITrainingTask::kRunPolicyFieldNumber; +const int DistributedMPITrainingTask::kSlotsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedMPITrainingTask::DistributedMPITrainingTask() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) +} +DistributedMPITrainingTask::DistributedMPITrainingTask(const DistributedMPITrainingTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_worker_replicas()) { + worker_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec(*from.worker_replicas_); + } else { + worker_replicas_ = nullptr; + } + if (from.has_launcher_replicas()) { + launcher_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec(*from.launcher_replicas_); + } else { + launcher_replicas_ = nullptr; + } + if (from.has_run_policy()) { + run_policy_ = new ::flyteidl::plugins::kubeflow::RunPolicy(*from.run_policy_); + } else { + run_policy_ = nullptr; + } + slots_ = from.slots_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) +} + +void DistributedMPITrainingTask::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); + ::memset(&worker_replicas_, 0, static_cast( + reinterpret_cast(&slots_) - + reinterpret_cast(&worker_replicas_)) + sizeof(slots_)); +} + +DistributedMPITrainingTask::~DistributedMPITrainingTask() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + SharedDtor(); +} + +void DistributedMPITrainingTask::SharedDtor() { + if (this != internal_default_instance()) delete worker_replicas_; + if (this != internal_default_instance()) delete launcher_replicas_; + if (this != internal_default_instance()) delete run_policy_; +} + +void DistributedMPITrainingTask::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedMPITrainingTask& DistributedMPITrainingTask::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedMPITrainingTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { + delete worker_replicas_; + } + worker_replicas_ = nullptr; + if (GetArenaNoVirtual() == nullptr && launcher_replicas_ != nullptr) { + delete launcher_replicas_; + } + launcher_replicas_ = nullptr; + if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { + delete run_policy_; + } + run_policy_ = nullptr; + slots_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedMPITrainingTask::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::_InternalParse; + object = msg->mutable_worker_replicas(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::_InternalParse; + object = msg->mutable_launcher_replicas(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::RunPolicy::_InternalParse; + object = msg->mutable_run_policy(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int32 slots = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_slots(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedMPITrainingTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_worker_replicas())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_launcher_replicas())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_run_policy())); + } else { + goto handle_unusual; + } + break; + } + + // int32 slots = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &slots_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedMPITrainingTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::worker_replicas(this), output); + } + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + if (this->has_launcher_replicas()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::launcher_replicas(this), output); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + if (this->has_run_policy()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::run_policy(this), output); + } + + // int32 slots = 4; + if (this->slots() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->slots(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) +} + +::google::protobuf::uint8* DistributedMPITrainingTask::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::worker_replicas(this), target); + } + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + if (this->has_launcher_replicas()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::launcher_replicas(this), target); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + if (this->has_run_policy()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::run_policy(this), target); + } + + // int32 slots = 4; + if (this->slots() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->slots(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + return target; +} + +size_t DistributedMPITrainingTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *worker_replicas_); + } + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + if (this->has_launcher_replicas()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *launcher_replicas_); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + if (this->has_run_policy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *run_policy_); + } + + // int32 slots = 4; + if (this->slots() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->slots()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedMPITrainingTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + GOOGLE_DCHECK_NE(&from, this); + const DistributedMPITrainingTask* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + MergeFrom(*source); + } +} + +void DistributedMPITrainingTask::MergeFrom(const DistributedMPITrainingTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_worker_replicas()) { + mutable_worker_replicas()->::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::MergeFrom(from.worker_replicas()); + } + if (from.has_launcher_replicas()) { + mutable_launcher_replicas()->::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::MergeFrom(from.launcher_replicas()); + } + if (from.has_run_policy()) { + mutable_run_policy()->::flyteidl::plugins::kubeflow::RunPolicy::MergeFrom(from.run_policy()); + } + if (from.slots() != 0) { + set_slots(from.slots()); + } +} + +void DistributedMPITrainingTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedMPITrainingTask::CopyFrom(const DistributedMPITrainingTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedMPITrainingTask::IsInitialized() const { + return true; +} + +void DistributedMPITrainingTask::Swap(DistributedMPITrainingTask* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedMPITrainingTask::InternalSwap(DistributedMPITrainingTask* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(worker_replicas_, other->worker_replicas_); + swap(launcher_replicas_, other->launcher_replicas_); + swap(run_policy_, other->run_policy_); + swap(slots_, other->slots_); +} + +::google::protobuf::Metadata DistributedMPITrainingTask::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DistributedMPITrainingReplicaSpec::InitAsDefaultInstance() { + ::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); +} +class DistributedMPITrainingReplicaSpec::HasBitSetters { + public: + static const ::flyteidl::core::Resources& resources(const DistributedMPITrainingReplicaSpec* msg); +}; + +const ::flyteidl::core::Resources& +DistributedMPITrainingReplicaSpec::HasBitSetters::resources(const DistributedMPITrainingReplicaSpec* msg) { + return *msg->resources_; +} +void DistributedMPITrainingReplicaSpec::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedMPITrainingReplicaSpec::kReplicasFieldNumber; +const int DistributedMPITrainingReplicaSpec::kImageFieldNumber; +const int DistributedMPITrainingReplicaSpec::kResourcesFieldNumber; +const int DistributedMPITrainingReplicaSpec::kRestartPolicyFieldNumber; +const int DistributedMPITrainingReplicaSpec::kCommandFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedMPITrainingReplicaSpec::DistributedMPITrainingReplicaSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) +} +DistributedMPITrainingReplicaSpec::DistributedMPITrainingReplicaSpec(const DistributedMPITrainingReplicaSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + command_(from.command_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.image().size() > 0) { + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = nullptr; + } + ::memcpy(&replicas_, &from.replicas_, + static_cast(reinterpret_cast(&restart_policy_) - + reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) +} + +void DistributedMPITrainingReplicaSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&resources_, 0, static_cast( + reinterpret_cast(&restart_policy_) - + reinterpret_cast(&resources_)) + sizeof(restart_policy_)); +} + +DistributedMPITrainingReplicaSpec::~DistributedMPITrainingReplicaSpec() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + SharedDtor(); +} + +void DistributedMPITrainingReplicaSpec::SharedDtor() { + image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete resources_; +} + +void DistributedMPITrainingReplicaSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedMPITrainingReplicaSpec& DistributedMPITrainingReplicaSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedMPITrainingReplicaSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + command_.Clear(); + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + ::memset(&replicas_, 0, static_cast( + reinterpret_cast(&restart_policy_) - + reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedMPITrainingReplicaSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 replicas = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string image = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image"); + object = msg->mutable_image(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_restart_policy(static_cast<::flyteidl::plugins::kubeflow::RestartPolicy>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // repeated string command = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command"); + object = msg->add_command(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedMPITrainingReplicaSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 replicas = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // string image = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_image())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_restart_policy(static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(value)); + } else { + goto handle_unusual; + } + break; + } + + // repeated string command = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_command())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(this->command_size() - 1).data(), + static_cast(this->command(this->command_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedMPITrainingReplicaSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 replicas = 1; + if (this->replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->replicas(), output); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->image(), output); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::resources(this), output); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->restart_policy(), output); + } + + // repeated string command = 5; + for (int i = 0, n = this->command_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(i).data(), static_cast(this->command(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->command(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) +} + +::google::protobuf::uint8* DistributedMPITrainingReplicaSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 replicas = 1; + if (this->replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->replicas(), target); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->image(), target); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::resources(this), target); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->restart_policy(), target); + } + + // repeated string command = 5; + for (int i = 0, n = this->command_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(i).data(), static_cast(this->command(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(5, this->command(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + return target; +} + +size_t DistributedMPITrainingReplicaSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string command = 5; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->command_size()); + for (int i = 0, n = this->command_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->command(i)); + } + + // string image = 2; + if (this->image().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->image()); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + // int32 replicas = 1; + if (this->replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->replicas()); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->restart_policy()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedMPITrainingReplicaSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + GOOGLE_DCHECK_NE(&from, this); + const DistributedMPITrainingReplicaSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + MergeFrom(*source); + } +} + +void DistributedMPITrainingReplicaSpec::MergeFrom(const DistributedMPITrainingReplicaSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + command_.MergeFrom(from.command_); + if (from.image().size() > 0) { + + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } + if (from.replicas() != 0) { + set_replicas(from.replicas()); + } + if (from.restart_policy() != 0) { + set_restart_policy(from.restart_policy()); + } +} + +void DistributedMPITrainingReplicaSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedMPITrainingReplicaSpec::CopyFrom(const DistributedMPITrainingReplicaSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedMPITrainingReplicaSpec::IsInitialized() const { + return true; +} + +void DistributedMPITrainingReplicaSpec::Swap(DistributedMPITrainingReplicaSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedMPITrainingReplicaSpec::InternalSwap(DistributedMPITrainingReplicaSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + command_.InternalSwap(CastToBase(&other->command_)); + image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resources_, other->resources_); + swap(replicas_, other->replicas_); + swap(restart_policy_, other->restart_policy_); +} + +::google::protobuf::Metadata DistributedMPITrainingReplicaSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.h new file mode 100644 index 0000000000..46d41ed497 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.h @@ -0,0 +1,770 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/mpi.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/plugins/kubeflow/common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[2] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class DistributedMPITrainingReplicaSpec; +class DistributedMPITrainingReplicaSpecDefaultTypeInternal; +extern DistributedMPITrainingReplicaSpecDefaultTypeInternal _DistributedMPITrainingReplicaSpec_default_instance_; +class DistributedMPITrainingTask; +class DistributedMPITrainingTaskDefaultTypeInternal; +extern DistributedMPITrainingTaskDefaultTypeInternal _DistributedMPITrainingTask_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec>(Arena*); +template<> ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingTask>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +// =================================================================== + +class DistributedMPITrainingTask final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) */ { + public: + DistributedMPITrainingTask(); + virtual ~DistributedMPITrainingTask(); + + DistributedMPITrainingTask(const DistributedMPITrainingTask& from); + + inline DistributedMPITrainingTask& operator=(const DistributedMPITrainingTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedMPITrainingTask(DistributedMPITrainingTask&& from) noexcept + : DistributedMPITrainingTask() { + *this = ::std::move(from); + } + + inline DistributedMPITrainingTask& operator=(DistributedMPITrainingTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedMPITrainingTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedMPITrainingTask* internal_default_instance() { + return reinterpret_cast( + &_DistributedMPITrainingTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DistributedMPITrainingTask* other); + friend void swap(DistributedMPITrainingTask& a, DistributedMPITrainingTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedMPITrainingTask* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedMPITrainingTask* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedMPITrainingTask& from); + void MergeFrom(const DistributedMPITrainingTask& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedMPITrainingTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + bool has_worker_replicas() const; + void clear_worker_replicas(); + static const int kWorkerReplicasFieldNumber = 1; + const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& worker_replicas() const; + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* release_worker_replicas(); + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* mutable_worker_replicas(); + void set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* worker_replicas); + + // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + bool has_launcher_replicas() const; + void clear_launcher_replicas(); + static const int kLauncherReplicasFieldNumber = 2; + const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& launcher_replicas() const; + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* release_launcher_replicas(); + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* mutable_launcher_replicas(); + void set_allocated_launcher_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* launcher_replicas); + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + bool has_run_policy() const; + void clear_run_policy(); + static const int kRunPolicyFieldNumber = 3; + const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy() const; + ::flyteidl::plugins::kubeflow::RunPolicy* release_run_policy(); + ::flyteidl::plugins::kubeflow::RunPolicy* mutable_run_policy(); + void set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy); + + // int32 slots = 4; + void clear_slots(); + static const int kSlotsFieldNumber = 4; + ::google::protobuf::int32 slots() const; + void set_slots(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* worker_replicas_; + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* launcher_replicas_; + ::flyteidl::plugins::kubeflow::RunPolicy* run_policy_; + ::google::protobuf::int32 slots_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto; +}; +// ------------------------------------------------------------------- + +class DistributedMPITrainingReplicaSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) */ { + public: + DistributedMPITrainingReplicaSpec(); + virtual ~DistributedMPITrainingReplicaSpec(); + + DistributedMPITrainingReplicaSpec(const DistributedMPITrainingReplicaSpec& from); + + inline DistributedMPITrainingReplicaSpec& operator=(const DistributedMPITrainingReplicaSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedMPITrainingReplicaSpec(DistributedMPITrainingReplicaSpec&& from) noexcept + : DistributedMPITrainingReplicaSpec() { + *this = ::std::move(from); + } + + inline DistributedMPITrainingReplicaSpec& operator=(DistributedMPITrainingReplicaSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedMPITrainingReplicaSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedMPITrainingReplicaSpec* internal_default_instance() { + return reinterpret_cast( + &_DistributedMPITrainingReplicaSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(DistributedMPITrainingReplicaSpec* other); + friend void swap(DistributedMPITrainingReplicaSpec& a, DistributedMPITrainingReplicaSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedMPITrainingReplicaSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedMPITrainingReplicaSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedMPITrainingReplicaSpec& from); + void MergeFrom(const DistributedMPITrainingReplicaSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedMPITrainingReplicaSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string command = 5; + int command_size() const; + void clear_command(); + static const int kCommandFieldNumber = 5; + const ::std::string& command(int index) const; + ::std::string* mutable_command(int index); + void set_command(int index, const ::std::string& value); + #if LANG_CXX11 + void set_command(int index, ::std::string&& value); + #endif + void set_command(int index, const char* value); + void set_command(int index, const char* value, size_t size); + ::std::string* add_command(); + void add_command(const ::std::string& value); + #if LANG_CXX11 + void add_command(::std::string&& value); + #endif + void add_command(const char* value); + void add_command(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& command() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_command(); + + // string image = 2; + void clear_image(); + static const int kImageFieldNumber = 2; + const ::std::string& image() const; + void set_image(const ::std::string& value); + #if LANG_CXX11 + void set_image(::std::string&& value); + #endif + void set_image(const char* value); + void set_image(const char* value, size_t size); + ::std::string* mutable_image(); + ::std::string* release_image(); + void set_allocated_image(::std::string* image); + + // .flyteidl.core.Resources resources = 3; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 3; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // int32 replicas = 1; + void clear_replicas(); + static const int kReplicasFieldNumber = 1; + ::google::protobuf::int32 replicas() const; + void set_replicas(::google::protobuf::int32 value); + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + void clear_restart_policy(); + static const int kRestartPolicyFieldNumber = 4; + ::flyteidl::plugins::kubeflow::RestartPolicy restart_policy() const; + void set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> command_; + ::google::protobuf::internal::ArenaStringPtr image_; + ::flyteidl::core::Resources* resources_; + ::google::protobuf::int32 replicas_; + int restart_policy_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DistributedMPITrainingTask + +// .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; +inline bool DistributedMPITrainingTask::has_worker_replicas() const { + return this != internal_default_instance() && worker_replicas_ != nullptr; +} +inline void DistributedMPITrainingTask::clear_worker_replicas() { + if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { + delete worker_replicas_; + } + worker_replicas_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& DistributedMPITrainingTask::worker_replicas() const { + const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* p = worker_replicas_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::release_worker_replicas() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) + + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* temp = worker_replicas_; + worker_replicas_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::mutable_worker_replicas() { + + if (worker_replicas_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec>(GetArenaNoVirtual()); + worker_replicas_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) + return worker_replicas_; +} +inline void DistributedMPITrainingTask::set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* worker_replicas) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete worker_replicas_; + } + if (worker_replicas) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + worker_replicas = ::google::protobuf::internal::GetOwnedMessage( + message_arena, worker_replicas, submessage_arena); + } + + } else { + + } + worker_replicas_ = worker_replicas; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) +} + +// .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; +inline bool DistributedMPITrainingTask::has_launcher_replicas() const { + return this != internal_default_instance() && launcher_replicas_ != nullptr; +} +inline void DistributedMPITrainingTask::clear_launcher_replicas() { + if (GetArenaNoVirtual() == nullptr && launcher_replicas_ != nullptr) { + delete launcher_replicas_; + } + launcher_replicas_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& DistributedMPITrainingTask::launcher_replicas() const { + const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* p = launcher_replicas_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::release_launcher_replicas() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) + + ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* temp = launcher_replicas_; + launcher_replicas_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::mutable_launcher_replicas() { + + if (launcher_replicas_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec>(GetArenaNoVirtual()); + launcher_replicas_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) + return launcher_replicas_; +} +inline void DistributedMPITrainingTask::set_allocated_launcher_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* launcher_replicas) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete launcher_replicas_; + } + if (launcher_replicas) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + launcher_replicas = ::google::protobuf::internal::GetOwnedMessage( + message_arena, launcher_replicas, submessage_arena); + } + + } else { + + } + launcher_replicas_ = launcher_replicas; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) +} + +// .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; +inline bool DistributedMPITrainingTask::has_run_policy() const { + return this != internal_default_instance() && run_policy_ != nullptr; +} +inline const ::flyteidl::plugins::kubeflow::RunPolicy& DistributedMPITrainingTask::run_policy() const { + const ::flyteidl::plugins::kubeflow::RunPolicy* p = run_policy_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedMPITrainingTask::release_run_policy() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) + + ::flyteidl::plugins::kubeflow::RunPolicy* temp = run_policy_; + run_policy_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedMPITrainingTask::mutable_run_policy() { + + if (run_policy_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(GetArenaNoVirtual()); + run_policy_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) + return run_policy_; +} +inline void DistributedMPITrainingTask::set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(run_policy_); + } + if (run_policy) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + run_policy = ::google::protobuf::internal::GetOwnedMessage( + message_arena, run_policy, submessage_arena); + } + + } else { + + } + run_policy_ = run_policy; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) +} + +// int32 slots = 4; +inline void DistributedMPITrainingTask::clear_slots() { + slots_ = 0; +} +inline ::google::protobuf::int32 DistributedMPITrainingTask::slots() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.slots) + return slots_; +} +inline void DistributedMPITrainingTask::set_slots(::google::protobuf::int32 value) { + + slots_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.slots) +} + +// ------------------------------------------------------------------- + +// DistributedMPITrainingReplicaSpec + +// int32 replicas = 1; +inline void DistributedMPITrainingReplicaSpec::clear_replicas() { + replicas_ = 0; +} +inline ::google::protobuf::int32 DistributedMPITrainingReplicaSpec::replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.replicas) + return replicas_; +} +inline void DistributedMPITrainingReplicaSpec::set_replicas(::google::protobuf::int32 value) { + + replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.replicas) +} + +// string image = 2; +inline void DistributedMPITrainingReplicaSpec::clear_image() { + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DistributedMPITrainingReplicaSpec::image() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) + return image_.GetNoArena(); +} +inline void DistributedMPITrainingReplicaSpec::set_image(const ::std::string& value) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) +} +#if LANG_CXX11 +inline void DistributedMPITrainingReplicaSpec::set_image(::std::string&& value) { + + image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) +} +#endif +inline void DistributedMPITrainingReplicaSpec::set_image(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) +} +inline void DistributedMPITrainingReplicaSpec::set_image(const char* value, size_t size) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) +} +inline ::std::string* DistributedMPITrainingReplicaSpec::mutable_image() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) + return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DistributedMPITrainingReplicaSpec::release_image() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) + + return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DistributedMPITrainingReplicaSpec::set_allocated_image(::std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) +} + +// .flyteidl.core.Resources resources = 3; +inline bool DistributedMPITrainingReplicaSpec::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline const ::flyteidl::core::Resources& DistributedMPITrainingReplicaSpec::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* DistributedMPITrainingReplicaSpec::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::flyteidl::core::Resources* DistributedMPITrainingReplicaSpec::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) + return resources_; +} +inline void DistributedMPITrainingReplicaSpec::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) +} + +// .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; +inline void DistributedMPITrainingReplicaSpec::clear_restart_policy() { + restart_policy_ = 0; +} +inline ::flyteidl::plugins::kubeflow::RestartPolicy DistributedMPITrainingReplicaSpec::restart_policy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.restart_policy) + return static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(restart_policy_); +} +inline void DistributedMPITrainingReplicaSpec::set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value) { + + restart_policy_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.restart_policy) +} + +// repeated string command = 5; +inline int DistributedMPITrainingReplicaSpec::command_size() const { + return command_.size(); +} +inline void DistributedMPITrainingReplicaSpec::clear_command() { + command_.Clear(); +} +inline const ::std::string& DistributedMPITrainingReplicaSpec::command(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) + return command_.Get(index); +} +inline ::std::string* DistributedMPITrainingReplicaSpec::mutable_command(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) + return command_.Mutable(index); +} +inline void DistributedMPITrainingReplicaSpec::set_command(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) + command_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void DistributedMPITrainingReplicaSpec::set_command(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) + command_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void DistributedMPITrainingReplicaSpec::set_command(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) +} +inline void DistributedMPITrainingReplicaSpec::set_command(int index, const char* value, size_t size) { + command_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) +} +inline ::std::string* DistributedMPITrainingReplicaSpec::add_command() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) + return command_.Add(); +} +inline void DistributedMPITrainingReplicaSpec::add_command(const ::std::string& value) { + command_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) +} +#if LANG_CXX11 +inline void DistributedMPITrainingReplicaSpec::add_command(::std::string&& value) { + command_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) +} +#endif +inline void DistributedMPITrainingReplicaSpec::add_command(const char* value) { + GOOGLE_DCHECK(value != nullptr); + command_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) +} +inline void DistributedMPITrainingReplicaSpec::add_command(const char* value, size_t size) { + command_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +DistributedMPITrainingReplicaSpec::command() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) + return command_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +DistributedMPITrainingReplicaSpec::mutable_command() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) + return &command_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.cc new file mode 100644 index 0000000000..af2f89e97f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/pytorch.proto + +#include "flyteidl/plugins/kubeflow/pytorch.pb.h" +#include "flyteidl/plugins/kubeflow/pytorch.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace flyteidl +} // namespace plugins +} // namespace kubeflow + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.h new file mode 100644 index 0000000000..45c83cf06e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/pytorch.proto +#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto__INCLUDED + +#include "flyteidl/plugins/kubeflow/pytorch.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.cc new file mode 100644 index 0000000000..3c4fd38ab1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.cc @@ -0,0 +1,1641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/pytorch.proto + +#include "flyteidl/plugins/kubeflow/pytorch.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class ElasticConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ElasticConfig_default_instance_; +class DistributedPyTorchTrainingTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedPyTorchTrainingTask_default_instance_; +class DistributedPyTorchTrainingReplicaSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedPyTorchTrainingReplicaSpec_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_ElasticConfig_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::ElasticConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::ElasticConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto}, {}}; + +static void InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto}, { + &scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base, + &scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base, + &scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base,}}; + +static void InitDefaultsDistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto}, { + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[3]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, rdzv_backend_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, min_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, max_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, nproc_per_node_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, max_restarts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, worker_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, master_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, run_policy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, elastic_config_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, image_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, resources_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, restart_policy_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::kubeflow::ElasticConfig)}, + { 10, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask)}, + { 19, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::kubeflow::_ElasticConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_), + reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, "flyteidl/plugins/kubeflow/pytorch.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[] = + "\n\'flyteidl/plugins/kubeflow/pytorch.prot" + "o\022\031flyteidl.plugins.kubeflow\032\031flyteidl/c" + "ore/tasks.proto\032&flyteidl/plugins/kubefl" + "ow/common.proto\"\177\n\rElasticConfig\022\024\n\014rdzv" + "_backend\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014" + "max_replicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001" + "(\005\022\024\n\014max_restarts\030\005 \001(\005\"\322\002\n\036Distributed" + "PyTorchTrainingTask\022Y\n\017worker_replicas\030\001" + " \001(\0132@.flyteidl.plugins.kubeflow.Distrib" + "utedPyTorchTrainingReplicaSpec\022Y\n\017master" + "_replicas\030\002 \001(\0132@.flyteidl.plugins.kubef" + "low.DistributedPyTorchTrainingReplicaSpe" + "c\0228\n\nrun_policy\030\003 \001(\0132$.flyteidl.plugins" + ".kubeflow.RunPolicy\022@\n\016elastic_config\030\004 " + "\001(\0132(.flyteidl.plugins.kubeflow.ElasticC" + "onfig\"\267\001\n%DistributedPyTorchTrainingRepl" + "icaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001(\t" + "\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Reso" + "urces\022@\n\016restart_policy\030\004 \001(\0162(.flyteidl" + ".plugins.kubeflow.RestartPolicyB9Z7githu" + "b.com/flyteorg/flyteidl/gen/pb-go/flytei" + "dl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, + "flyteidl/plugins/kubeflow/pytorch.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, 858, +}; + +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +// =================================================================== + +void ElasticConfig::InitAsDefaultInstance() { +} +class ElasticConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ElasticConfig::kRdzvBackendFieldNumber; +const int ElasticConfig::kMinReplicasFieldNumber; +const int ElasticConfig::kMaxReplicasFieldNumber; +const int ElasticConfig::kNprocPerNodeFieldNumber; +const int ElasticConfig::kMaxRestartsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ElasticConfig::ElasticConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.ElasticConfig) +} +ElasticConfig::ElasticConfig(const ElasticConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.rdzv_backend().size() > 0) { + rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); + } + ::memcpy(&min_replicas_, &from.min_replicas_, + static_cast(reinterpret_cast(&max_restarts_) - + reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.ElasticConfig) +} + +void ElasticConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&min_replicas_, 0, static_cast( + reinterpret_cast(&max_restarts_) - + reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); +} + +ElasticConfig::~ElasticConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.ElasticConfig) + SharedDtor(); +} + +void ElasticConfig::SharedDtor() { + rdzv_backend_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ElasticConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ElasticConfig& ElasticConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + return *internal_default_instance(); +} + + +void ElasticConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.ElasticConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&min_replicas_, 0, static_cast( + reinterpret_cast(&max_restarts_) - + reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ElasticConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string rdzv_backend = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend"); + object = msg->mutable_rdzv_backend(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int32 min_replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_min_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 max_replicas = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_max_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 nproc_per_node = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_nproc_per_node(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 max_restarts = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; + msg->set_max_restarts(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ElasticConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.ElasticConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string rdzv_backend = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_rdzv_backend())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend")); + } else { + goto handle_unusual; + } + break; + } + + // int32 min_replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &min_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 max_replicas = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 nproc_per_node = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &nproc_per_node_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 max_restarts = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_restarts_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.ElasticConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.ElasticConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ElasticConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.ElasticConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string rdzv_backend = 1; + if (this->rdzv_backend().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->rdzv_backend(), output); + } + + // int32 min_replicas = 2; + if (this->min_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_replicas(), output); + } + + // int32 max_replicas = 3; + if (this->max_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_replicas(), output); + } + + // int32 nproc_per_node = 4; + if (this->nproc_per_node() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->nproc_per_node(), output); + } + + // int32 max_restarts = 5; + if (this->max_restarts() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->max_restarts(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.ElasticConfig) +} + +::google::protobuf::uint8* ElasticConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.ElasticConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string rdzv_backend = 1; + if (this->rdzv_backend().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->rdzv_backend(), target); + } + + // int32 min_replicas = 2; + if (this->min_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_replicas(), target); + } + + // int32 max_replicas = 3; + if (this->max_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->max_replicas(), target); + } + + // int32 nproc_per_node = 4; + if (this->nproc_per_node() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->nproc_per_node(), target); + } + + // int32 max_restarts = 5; + if (this->max_restarts() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->max_restarts(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.ElasticConfig) + return target; +} + +size_t ElasticConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.ElasticConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string rdzv_backend = 1; + if (this->rdzv_backend().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->rdzv_backend()); + } + + // int32 min_replicas = 2; + if (this->min_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->min_replicas()); + } + + // int32 max_replicas = 3; + if (this->max_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_replicas()); + } + + // int32 nproc_per_node = 4; + if (this->nproc_per_node() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->nproc_per_node()); + } + + // int32 max_restarts = 5; + if (this->max_restarts() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_restarts()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ElasticConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.ElasticConfig) + GOOGLE_DCHECK_NE(&from, this); + const ElasticConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.ElasticConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.ElasticConfig) + MergeFrom(*source); + } +} + +void ElasticConfig::MergeFrom(const ElasticConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.ElasticConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.rdzv_backend().size() > 0) { + + rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); + } + if (from.min_replicas() != 0) { + set_min_replicas(from.min_replicas()); + } + if (from.max_replicas() != 0) { + set_max_replicas(from.max_replicas()); + } + if (from.nproc_per_node() != 0) { + set_nproc_per_node(from.nproc_per_node()); + } + if (from.max_restarts() != 0) { + set_max_restarts(from.max_restarts()); + } +} + +void ElasticConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.ElasticConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ElasticConfig::CopyFrom(const ElasticConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.ElasticConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ElasticConfig::IsInitialized() const { + return true; +} + +void ElasticConfig::Swap(ElasticConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void ElasticConfig::InternalSwap(ElasticConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + rdzv_backend_.Swap(&other->rdzv_backend_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(min_replicas_, other->min_replicas_); + swap(max_replicas_, other->max_replicas_); + swap(nproc_per_node_, other->nproc_per_node_); + swap(max_restarts_, other->max_restarts_); +} + +::google::protobuf::Metadata ElasticConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DistributedPyTorchTrainingTask::InitAsDefaultInstance() { + ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->worker_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec*>( + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->master_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec*>( + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->run_policy_ = const_cast< ::flyteidl::plugins::kubeflow::RunPolicy*>( + ::flyteidl::plugins::kubeflow::RunPolicy::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->elastic_config_ = const_cast< ::flyteidl::plugins::kubeflow::ElasticConfig*>( + ::flyteidl::plugins::kubeflow::ElasticConfig::internal_default_instance()); +} +class DistributedPyTorchTrainingTask::HasBitSetters { + public: + static const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& worker_replicas(const DistributedPyTorchTrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& master_replicas(const DistributedPyTorchTrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy(const DistributedPyTorchTrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::ElasticConfig& elastic_config(const DistributedPyTorchTrainingTask* msg); +}; + +const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& +DistributedPyTorchTrainingTask::HasBitSetters::worker_replicas(const DistributedPyTorchTrainingTask* msg) { + return *msg->worker_replicas_; +} +const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& +DistributedPyTorchTrainingTask::HasBitSetters::master_replicas(const DistributedPyTorchTrainingTask* msg) { + return *msg->master_replicas_; +} +const ::flyteidl::plugins::kubeflow::RunPolicy& +DistributedPyTorchTrainingTask::HasBitSetters::run_policy(const DistributedPyTorchTrainingTask* msg) { + return *msg->run_policy_; +} +const ::flyteidl::plugins::kubeflow::ElasticConfig& +DistributedPyTorchTrainingTask::HasBitSetters::elastic_config(const DistributedPyTorchTrainingTask* msg) { + return *msg->elastic_config_; +} +void DistributedPyTorchTrainingTask::clear_run_policy() { + if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { + delete run_policy_; + } + run_policy_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedPyTorchTrainingTask::kWorkerReplicasFieldNumber; +const int DistributedPyTorchTrainingTask::kMasterReplicasFieldNumber; +const int DistributedPyTorchTrainingTask::kRunPolicyFieldNumber; +const int DistributedPyTorchTrainingTask::kElasticConfigFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) +} +DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_worker_replicas()) { + worker_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec(*from.worker_replicas_); + } else { + worker_replicas_ = nullptr; + } + if (from.has_master_replicas()) { + master_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec(*from.master_replicas_); + } else { + master_replicas_ = nullptr; + } + if (from.has_run_policy()) { + run_policy_ = new ::flyteidl::plugins::kubeflow::RunPolicy(*from.run_policy_); + } else { + run_policy_ = nullptr; + } + if (from.has_elastic_config()) { + elastic_config_ = new ::flyteidl::plugins::kubeflow::ElasticConfig(*from.elastic_config_); + } else { + elastic_config_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) +} + +void DistributedPyTorchTrainingTask::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + ::memset(&worker_replicas_, 0, static_cast( + reinterpret_cast(&elastic_config_) - + reinterpret_cast(&worker_replicas_)) + sizeof(elastic_config_)); +} + +DistributedPyTorchTrainingTask::~DistributedPyTorchTrainingTask() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + SharedDtor(); +} + +void DistributedPyTorchTrainingTask::SharedDtor() { + if (this != internal_default_instance()) delete worker_replicas_; + if (this != internal_default_instance()) delete master_replicas_; + if (this != internal_default_instance()) delete run_policy_; + if (this != internal_default_instance()) delete elastic_config_; +} + +void DistributedPyTorchTrainingTask::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedPyTorchTrainingTask& DistributedPyTorchTrainingTask::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedPyTorchTrainingTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { + delete worker_replicas_; + } + worker_replicas_ = nullptr; + if (GetArenaNoVirtual() == nullptr && master_replicas_ != nullptr) { + delete master_replicas_; + } + master_replicas_ = nullptr; + if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { + delete run_policy_; + } + run_policy_ = nullptr; + if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { + delete elastic_config_; + } + elastic_config_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedPyTorchTrainingTask::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::_InternalParse; + object = msg->mutable_worker_replicas(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::_InternalParse; + object = msg->mutable_master_replicas(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::RunPolicy::_InternalParse; + object = msg->mutable_run_policy(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::ElasticConfig::_InternalParse; + object = msg->mutable_elastic_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedPyTorchTrainingTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_worker_replicas())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_master_replicas())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_run_policy())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_elastic_config())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedPyTorchTrainingTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::worker_replicas(this), output); + } + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + if (this->has_master_replicas()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::master_replicas(this), output); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + if (this->has_run_policy()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::run_policy(this), output); + } + + // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + if (this->has_elastic_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::elastic_config(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) +} + +::google::protobuf::uint8* DistributedPyTorchTrainingTask::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::worker_replicas(this), target); + } + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + if (this->has_master_replicas()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::master_replicas(this), target); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + if (this->has_run_policy()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::run_policy(this), target); + } + + // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + if (this->has_elastic_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::elastic_config(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + return target; +} + +size_t DistributedPyTorchTrainingTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *worker_replicas_); + } + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + if (this->has_master_replicas()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *master_replicas_); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + if (this->has_run_policy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *run_policy_); + } + + // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + if (this->has_elastic_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *elastic_config_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedPyTorchTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + const DistributedPyTorchTrainingTask* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + MergeFrom(*source); + } +} + +void DistributedPyTorchTrainingTask::MergeFrom(const DistributedPyTorchTrainingTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_worker_replicas()) { + mutable_worker_replicas()->::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::MergeFrom(from.worker_replicas()); + } + if (from.has_master_replicas()) { + mutable_master_replicas()->::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::MergeFrom(from.master_replicas()); + } + if (from.has_run_policy()) { + mutable_run_policy()->::flyteidl::plugins::kubeflow::RunPolicy::MergeFrom(from.run_policy()); + } + if (from.has_elastic_config()) { + mutable_elastic_config()->::flyteidl::plugins::kubeflow::ElasticConfig::MergeFrom(from.elastic_config()); + } +} + +void DistributedPyTorchTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedPyTorchTrainingTask::CopyFrom(const DistributedPyTorchTrainingTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedPyTorchTrainingTask::IsInitialized() const { + return true; +} + +void DistributedPyTorchTrainingTask::Swap(DistributedPyTorchTrainingTask* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedPyTorchTrainingTask::InternalSwap(DistributedPyTorchTrainingTask* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(worker_replicas_, other->worker_replicas_); + swap(master_replicas_, other->master_replicas_); + swap(run_policy_, other->run_policy_); + swap(elastic_config_, other->elastic_config_); +} + +::google::protobuf::Metadata DistributedPyTorchTrainingTask::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DistributedPyTorchTrainingReplicaSpec::InitAsDefaultInstance() { + ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); +} +class DistributedPyTorchTrainingReplicaSpec::HasBitSetters { + public: + static const ::flyteidl::core::Resources& resources(const DistributedPyTorchTrainingReplicaSpec* msg); +}; + +const ::flyteidl::core::Resources& +DistributedPyTorchTrainingReplicaSpec::HasBitSetters::resources(const DistributedPyTorchTrainingReplicaSpec* msg) { + return *msg->resources_; +} +void DistributedPyTorchTrainingReplicaSpec::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedPyTorchTrainingReplicaSpec::kReplicasFieldNumber; +const int DistributedPyTorchTrainingReplicaSpec::kImageFieldNumber; +const int DistributedPyTorchTrainingReplicaSpec::kResourcesFieldNumber; +const int DistributedPyTorchTrainingReplicaSpec::kRestartPolicyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedPyTorchTrainingReplicaSpec::DistributedPyTorchTrainingReplicaSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) +} +DistributedPyTorchTrainingReplicaSpec::DistributedPyTorchTrainingReplicaSpec(const DistributedPyTorchTrainingReplicaSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.image().size() > 0) { + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = nullptr; + } + ::memcpy(&replicas_, &from.replicas_, + static_cast(reinterpret_cast(&restart_policy_) - + reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) +} + +void DistributedPyTorchTrainingReplicaSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&resources_, 0, static_cast( + reinterpret_cast(&restart_policy_) - + reinterpret_cast(&resources_)) + sizeof(restart_policy_)); +} + +DistributedPyTorchTrainingReplicaSpec::~DistributedPyTorchTrainingReplicaSpec() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + SharedDtor(); +} + +void DistributedPyTorchTrainingReplicaSpec::SharedDtor() { + image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete resources_; +} + +void DistributedPyTorchTrainingReplicaSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedPyTorchTrainingReplicaSpec& DistributedPyTorchTrainingReplicaSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedPyTorchTrainingReplicaSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + ::memset(&replicas_, 0, static_cast( + reinterpret_cast(&restart_policy_) - + reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedPyTorchTrainingReplicaSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 replicas = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string image = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image"); + object = msg->mutable_image(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_restart_policy(static_cast<::flyteidl::plugins::kubeflow::RestartPolicy>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedPyTorchTrainingReplicaSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 replicas = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // string image = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_image())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_restart_policy(static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedPyTorchTrainingReplicaSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 replicas = 1; + if (this->replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->replicas(), output); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->image(), output); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::resources(this), output); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->restart_policy(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) +} + +::google::protobuf::uint8* DistributedPyTorchTrainingReplicaSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 replicas = 1; + if (this->replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->replicas(), target); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->image(), target); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::resources(this), target); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->restart_policy(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + return target; +} + +size_t DistributedPyTorchTrainingReplicaSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string image = 2; + if (this->image().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->image()); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + // int32 replicas = 1; + if (this->replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->replicas()); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->restart_policy()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedPyTorchTrainingReplicaSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + GOOGLE_DCHECK_NE(&from, this); + const DistributedPyTorchTrainingReplicaSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + MergeFrom(*source); + } +} + +void DistributedPyTorchTrainingReplicaSpec::MergeFrom(const DistributedPyTorchTrainingReplicaSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.image().size() > 0) { + + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } + if (from.replicas() != 0) { + set_replicas(from.replicas()); + } + if (from.restart_policy() != 0) { + set_restart_policy(from.restart_policy()); + } +} + +void DistributedPyTorchTrainingReplicaSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedPyTorchTrainingReplicaSpec::CopyFrom(const DistributedPyTorchTrainingReplicaSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedPyTorchTrainingReplicaSpec::IsInitialized() const { + return true; +} + +void DistributedPyTorchTrainingReplicaSpec::Swap(DistributedPyTorchTrainingReplicaSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedPyTorchTrainingReplicaSpec::InternalSwap(DistributedPyTorchTrainingReplicaSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resources_, other->resources_); + swap(replicas_, other->replicas_); + swap(restart_policy_, other->restart_policy_); +} + +::google::protobuf::Metadata DistributedPyTorchTrainingReplicaSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::ElasticConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::ElasticConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::ElasticConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.h new file mode 100644 index 0000000000..f124f939a9 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.h @@ -0,0 +1,985 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/pytorch.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/plugins/kubeflow/common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class DistributedPyTorchTrainingReplicaSpec; +class DistributedPyTorchTrainingReplicaSpecDefaultTypeInternal; +extern DistributedPyTorchTrainingReplicaSpecDefaultTypeInternal _DistributedPyTorchTrainingReplicaSpec_default_instance_; +class DistributedPyTorchTrainingTask; +class DistributedPyTorchTrainingTaskDefaultTypeInternal; +extern DistributedPyTorchTrainingTaskDefaultTypeInternal _DistributedPyTorchTrainingTask_default_instance_; +class ElasticConfig; +class ElasticConfigDefaultTypeInternal; +extern ElasticConfigDefaultTypeInternal _ElasticConfig_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec>(Arena*); +template<> ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask>(Arena*); +template<> ::flyteidl::plugins::kubeflow::ElasticConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::ElasticConfig>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +// =================================================================== + +class ElasticConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.ElasticConfig) */ { + public: + ElasticConfig(); + virtual ~ElasticConfig(); + + ElasticConfig(const ElasticConfig& from); + + inline ElasticConfig& operator=(const ElasticConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ElasticConfig(ElasticConfig&& from) noexcept + : ElasticConfig() { + *this = ::std::move(from); + } + + inline ElasticConfig& operator=(ElasticConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ElasticConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ElasticConfig* internal_default_instance() { + return reinterpret_cast( + &_ElasticConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ElasticConfig* other); + friend void swap(ElasticConfig& a, ElasticConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ElasticConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + ElasticConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ElasticConfig& from); + void MergeFrom(const ElasticConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ElasticConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string rdzv_backend = 1; + void clear_rdzv_backend(); + static const int kRdzvBackendFieldNumber = 1; + const ::std::string& rdzv_backend() const; + void set_rdzv_backend(const ::std::string& value); + #if LANG_CXX11 + void set_rdzv_backend(::std::string&& value); + #endif + void set_rdzv_backend(const char* value); + void set_rdzv_backend(const char* value, size_t size); + ::std::string* mutable_rdzv_backend(); + ::std::string* release_rdzv_backend(); + void set_allocated_rdzv_backend(::std::string* rdzv_backend); + + // int32 min_replicas = 2; + void clear_min_replicas(); + static const int kMinReplicasFieldNumber = 2; + ::google::protobuf::int32 min_replicas() const; + void set_min_replicas(::google::protobuf::int32 value); + + // int32 max_replicas = 3; + void clear_max_replicas(); + static const int kMaxReplicasFieldNumber = 3; + ::google::protobuf::int32 max_replicas() const; + void set_max_replicas(::google::protobuf::int32 value); + + // int32 nproc_per_node = 4; + void clear_nproc_per_node(); + static const int kNprocPerNodeFieldNumber = 4; + ::google::protobuf::int32 nproc_per_node() const; + void set_nproc_per_node(::google::protobuf::int32 value); + + // int32 max_restarts = 5; + void clear_max_restarts(); + static const int kMaxRestartsFieldNumber = 5; + ::google::protobuf::int32 max_restarts() const; + void set_max_restarts(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.ElasticConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr rdzv_backend_; + ::google::protobuf::int32 min_replicas_; + ::google::protobuf::int32 max_replicas_; + ::google::protobuf::int32 nproc_per_node_; + ::google::protobuf::int32 max_restarts_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; +}; +// ------------------------------------------------------------------- + +class DistributedPyTorchTrainingTask final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) */ { + public: + DistributedPyTorchTrainingTask(); + virtual ~DistributedPyTorchTrainingTask(); + + DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from); + + inline DistributedPyTorchTrainingTask& operator=(const DistributedPyTorchTrainingTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedPyTorchTrainingTask(DistributedPyTorchTrainingTask&& from) noexcept + : DistributedPyTorchTrainingTask() { + *this = ::std::move(from); + } + + inline DistributedPyTorchTrainingTask& operator=(DistributedPyTorchTrainingTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedPyTorchTrainingTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedPyTorchTrainingTask* internal_default_instance() { + return reinterpret_cast( + &_DistributedPyTorchTrainingTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(DistributedPyTorchTrainingTask* other); + friend void swap(DistributedPyTorchTrainingTask& a, DistributedPyTorchTrainingTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedPyTorchTrainingTask* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedPyTorchTrainingTask* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedPyTorchTrainingTask& from); + void MergeFrom(const DistributedPyTorchTrainingTask& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedPyTorchTrainingTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + bool has_worker_replicas() const; + void clear_worker_replicas(); + static const int kWorkerReplicasFieldNumber = 1; + const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& worker_replicas() const; + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* release_worker_replicas(); + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* mutable_worker_replicas(); + void set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* worker_replicas); + + // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + bool has_master_replicas() const; + void clear_master_replicas(); + static const int kMasterReplicasFieldNumber = 2; + const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& master_replicas() const; + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* release_master_replicas(); + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* mutable_master_replicas(); + void set_allocated_master_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* master_replicas); + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + bool has_run_policy() const; + void clear_run_policy(); + static const int kRunPolicyFieldNumber = 3; + const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy() const; + ::flyteidl::plugins::kubeflow::RunPolicy* release_run_policy(); + ::flyteidl::plugins::kubeflow::RunPolicy* mutable_run_policy(); + void set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy); + + // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + bool has_elastic_config() const; + void clear_elastic_config(); + static const int kElasticConfigFieldNumber = 4; + const ::flyteidl::plugins::kubeflow::ElasticConfig& elastic_config() const; + ::flyteidl::plugins::kubeflow::ElasticConfig* release_elastic_config(); + ::flyteidl::plugins::kubeflow::ElasticConfig* mutable_elastic_config(); + void set_allocated_elastic_config(::flyteidl::plugins::kubeflow::ElasticConfig* elastic_config); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* worker_replicas_; + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* master_replicas_; + ::flyteidl::plugins::kubeflow::RunPolicy* run_policy_; + ::flyteidl::plugins::kubeflow::ElasticConfig* elastic_config_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; +}; +// ------------------------------------------------------------------- + +class DistributedPyTorchTrainingReplicaSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) */ { + public: + DistributedPyTorchTrainingReplicaSpec(); + virtual ~DistributedPyTorchTrainingReplicaSpec(); + + DistributedPyTorchTrainingReplicaSpec(const DistributedPyTorchTrainingReplicaSpec& from); + + inline DistributedPyTorchTrainingReplicaSpec& operator=(const DistributedPyTorchTrainingReplicaSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedPyTorchTrainingReplicaSpec(DistributedPyTorchTrainingReplicaSpec&& from) noexcept + : DistributedPyTorchTrainingReplicaSpec() { + *this = ::std::move(from); + } + + inline DistributedPyTorchTrainingReplicaSpec& operator=(DistributedPyTorchTrainingReplicaSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedPyTorchTrainingReplicaSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedPyTorchTrainingReplicaSpec* internal_default_instance() { + return reinterpret_cast( + &_DistributedPyTorchTrainingReplicaSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(DistributedPyTorchTrainingReplicaSpec* other); + friend void swap(DistributedPyTorchTrainingReplicaSpec& a, DistributedPyTorchTrainingReplicaSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedPyTorchTrainingReplicaSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedPyTorchTrainingReplicaSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedPyTorchTrainingReplicaSpec& from); + void MergeFrom(const DistributedPyTorchTrainingReplicaSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedPyTorchTrainingReplicaSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string image = 2; + void clear_image(); + static const int kImageFieldNumber = 2; + const ::std::string& image() const; + void set_image(const ::std::string& value); + #if LANG_CXX11 + void set_image(::std::string&& value); + #endif + void set_image(const char* value); + void set_image(const char* value, size_t size); + ::std::string* mutable_image(); + ::std::string* release_image(); + void set_allocated_image(::std::string* image); + + // .flyteidl.core.Resources resources = 3; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 3; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // int32 replicas = 1; + void clear_replicas(); + static const int kReplicasFieldNumber = 1; + ::google::protobuf::int32 replicas() const; + void set_replicas(::google::protobuf::int32 value); + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + void clear_restart_policy(); + static const int kRestartPolicyFieldNumber = 4; + ::flyteidl::plugins::kubeflow::RestartPolicy restart_policy() const; + void set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr image_; + ::flyteidl::core::Resources* resources_; + ::google::protobuf::int32 replicas_; + int restart_policy_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ElasticConfig + +// string rdzv_backend = 1; +inline void ElasticConfig::clear_rdzv_backend() { + rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ElasticConfig::rdzv_backend() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) + return rdzv_backend_.GetNoArena(); +} +inline void ElasticConfig::set_rdzv_backend(const ::std::string& value) { + + rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) +} +#if LANG_CXX11 +inline void ElasticConfig::set_rdzv_backend(::std::string&& value) { + + rdzv_backend_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) +} +#endif +inline void ElasticConfig::set_rdzv_backend(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) +} +inline void ElasticConfig::set_rdzv_backend(const char* value, size_t size) { + + rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) +} +inline ::std::string* ElasticConfig::mutable_rdzv_backend() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) + return rdzv_backend_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ElasticConfig::release_rdzv_backend() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) + + return rdzv_backend_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ElasticConfig::set_allocated_rdzv_backend(::std::string* rdzv_backend) { + if (rdzv_backend != nullptr) { + + } else { + + } + rdzv_backend_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rdzv_backend); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) +} + +// int32 min_replicas = 2; +inline void ElasticConfig::clear_min_replicas() { + min_replicas_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::min_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.min_replicas) + return min_replicas_; +} +inline void ElasticConfig::set_min_replicas(::google::protobuf::int32 value) { + + min_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.min_replicas) +} + +// int32 max_replicas = 3; +inline void ElasticConfig::clear_max_replicas() { + max_replicas_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::max_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.max_replicas) + return max_replicas_; +} +inline void ElasticConfig::set_max_replicas(::google::protobuf::int32 value) { + + max_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.max_replicas) +} + +// int32 nproc_per_node = 4; +inline void ElasticConfig::clear_nproc_per_node() { + nproc_per_node_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::nproc_per_node() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.nproc_per_node) + return nproc_per_node_; +} +inline void ElasticConfig::set_nproc_per_node(::google::protobuf::int32 value) { + + nproc_per_node_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.nproc_per_node) +} + +// int32 max_restarts = 5; +inline void ElasticConfig::clear_max_restarts() { + max_restarts_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::max_restarts() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.max_restarts) + return max_restarts_; +} +inline void ElasticConfig::set_max_restarts(::google::protobuf::int32 value) { + + max_restarts_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.max_restarts) +} + +// ------------------------------------------------------------------- + +// DistributedPyTorchTrainingTask + +// .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; +inline bool DistributedPyTorchTrainingTask::has_worker_replicas() const { + return this != internal_default_instance() && worker_replicas_ != nullptr; +} +inline void DistributedPyTorchTrainingTask::clear_worker_replicas() { + if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { + delete worker_replicas_; + } + worker_replicas_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& DistributedPyTorchTrainingTask::worker_replicas() const { + const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* p = worker_replicas_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::release_worker_replicas() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) + + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* temp = worker_replicas_; + worker_replicas_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::mutable_worker_replicas() { + + if (worker_replicas_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec>(GetArenaNoVirtual()); + worker_replicas_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) + return worker_replicas_; +} +inline void DistributedPyTorchTrainingTask::set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* worker_replicas) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete worker_replicas_; + } + if (worker_replicas) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + worker_replicas = ::google::protobuf::internal::GetOwnedMessage( + message_arena, worker_replicas, submessage_arena); + } + + } else { + + } + worker_replicas_ = worker_replicas; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) +} + +// .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; +inline bool DistributedPyTorchTrainingTask::has_master_replicas() const { + return this != internal_default_instance() && master_replicas_ != nullptr; +} +inline void DistributedPyTorchTrainingTask::clear_master_replicas() { + if (GetArenaNoVirtual() == nullptr && master_replicas_ != nullptr) { + delete master_replicas_; + } + master_replicas_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& DistributedPyTorchTrainingTask::master_replicas() const { + const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* p = master_replicas_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::release_master_replicas() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) + + ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* temp = master_replicas_; + master_replicas_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::mutable_master_replicas() { + + if (master_replicas_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec>(GetArenaNoVirtual()); + master_replicas_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) + return master_replicas_; +} +inline void DistributedPyTorchTrainingTask::set_allocated_master_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* master_replicas) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete master_replicas_; + } + if (master_replicas) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + master_replicas = ::google::protobuf::internal::GetOwnedMessage( + message_arena, master_replicas, submessage_arena); + } + + } else { + + } + master_replicas_ = master_replicas; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) +} + +// .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; +inline bool DistributedPyTorchTrainingTask::has_run_policy() const { + return this != internal_default_instance() && run_policy_ != nullptr; +} +inline const ::flyteidl::plugins::kubeflow::RunPolicy& DistributedPyTorchTrainingTask::run_policy() const { + const ::flyteidl::plugins::kubeflow::RunPolicy* p = run_policy_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedPyTorchTrainingTask::release_run_policy() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) + + ::flyteidl::plugins::kubeflow::RunPolicy* temp = run_policy_; + run_policy_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedPyTorchTrainingTask::mutable_run_policy() { + + if (run_policy_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(GetArenaNoVirtual()); + run_policy_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) + return run_policy_; +} +inline void DistributedPyTorchTrainingTask::set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(run_policy_); + } + if (run_policy) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + run_policy = ::google::protobuf::internal::GetOwnedMessage( + message_arena, run_policy, submessage_arena); + } + + } else { + + } + run_policy_ = run_policy; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) +} + +// .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; +inline bool DistributedPyTorchTrainingTask::has_elastic_config() const { + return this != internal_default_instance() && elastic_config_ != nullptr; +} +inline void DistributedPyTorchTrainingTask::clear_elastic_config() { + if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { + delete elastic_config_; + } + elastic_config_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::ElasticConfig& DistributedPyTorchTrainingTask::elastic_config() const { + const ::flyteidl::plugins::kubeflow::ElasticConfig* p = elastic_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_ElasticConfig_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::ElasticConfig* DistributedPyTorchTrainingTask::release_elastic_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) + + ::flyteidl::plugins::kubeflow::ElasticConfig* temp = elastic_config_; + elastic_config_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::ElasticConfig* DistributedPyTorchTrainingTask::mutable_elastic_config() { + + if (elastic_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::ElasticConfig>(GetArenaNoVirtual()); + elastic_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) + return elastic_config_; +} +inline void DistributedPyTorchTrainingTask::set_allocated_elastic_config(::flyteidl::plugins::kubeflow::ElasticConfig* elastic_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete elastic_config_; + } + if (elastic_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + elastic_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, elastic_config, submessage_arena); + } + + } else { + + } + elastic_config_ = elastic_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) +} + +// ------------------------------------------------------------------- + +// DistributedPyTorchTrainingReplicaSpec + +// int32 replicas = 1; +inline void DistributedPyTorchTrainingReplicaSpec::clear_replicas() { + replicas_ = 0; +} +inline ::google::protobuf::int32 DistributedPyTorchTrainingReplicaSpec::replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.replicas) + return replicas_; +} +inline void DistributedPyTorchTrainingReplicaSpec::set_replicas(::google::protobuf::int32 value) { + + replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.replicas) +} + +// string image = 2; +inline void DistributedPyTorchTrainingReplicaSpec::clear_image() { + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DistributedPyTorchTrainingReplicaSpec::image() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) + return image_.GetNoArena(); +} +inline void DistributedPyTorchTrainingReplicaSpec::set_image(const ::std::string& value) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) +} +#if LANG_CXX11 +inline void DistributedPyTorchTrainingReplicaSpec::set_image(::std::string&& value) { + + image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) +} +#endif +inline void DistributedPyTorchTrainingReplicaSpec::set_image(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) +} +inline void DistributedPyTorchTrainingReplicaSpec::set_image(const char* value, size_t size) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) +} +inline ::std::string* DistributedPyTorchTrainingReplicaSpec::mutable_image() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) + return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DistributedPyTorchTrainingReplicaSpec::release_image() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) + + return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DistributedPyTorchTrainingReplicaSpec::set_allocated_image(::std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) +} + +// .flyteidl.core.Resources resources = 3; +inline bool DistributedPyTorchTrainingReplicaSpec::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline const ::flyteidl::core::Resources& DistributedPyTorchTrainingReplicaSpec::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* DistributedPyTorchTrainingReplicaSpec::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::flyteidl::core::Resources* DistributedPyTorchTrainingReplicaSpec::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) + return resources_; +} +inline void DistributedPyTorchTrainingReplicaSpec::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) +} + +// .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; +inline void DistributedPyTorchTrainingReplicaSpec::clear_restart_policy() { + restart_policy_ = 0; +} +inline ::flyteidl::plugins::kubeflow::RestartPolicy DistributedPyTorchTrainingReplicaSpec::restart_policy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.restart_policy) + return static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(restart_policy_); +} +inline void DistributedPyTorchTrainingReplicaSpec::set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value) { + + restart_policy_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.restart_policy) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.cc new file mode 100644 index 0000000000..5360384595 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/tensorflow.proto + +#include "flyteidl/plugins/kubeflow/tensorflow.pb.h" +#include "flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace flyteidl +} // namespace plugins +} // namespace kubeflow + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h new file mode 100644 index 0000000000..2ab6f394d2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/kubeflow/tensorflow.proto +#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto__INCLUDED + +#include "flyteidl/plugins/kubeflow/tensorflow.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.cc new file mode 100644 index 0000000000..9227307c43 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.cc @@ -0,0 +1,1129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/tensorflow.proto + +#include "flyteidl/plugins/kubeflow/tensorflow.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto; +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class DistributedTensorflowTrainingTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedTensorflowTrainingTask_default_instance_; +class DistributedTensorflowTrainingReplicaSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedTensorflowTrainingReplicaSpec_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto}, { + &scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base, + &scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base,}}; + +static void InitDefaultsDistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_; + new (ptr) ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto}, { + &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[2]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, worker_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, ps_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, chief_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, run_policy_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, image_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, resources_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, restart_policy_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask)}, + { 9, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_), + reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, "flyteidl/plugins/kubeflow/tensorflow.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[] = + "\n*flyteidl/plugins/kubeflow/tensorflow.p" + "roto\022\031flyteidl.plugins.kubeflow\032\031flyteid" + "l/core/tasks.proto\032&flyteidl/plugins/kub" + "eflow/common.proto\"\362\002\n!DistributedTensor" + "flowTrainingTask\022\\\n\017worker_replicas\030\001 \001(" + "\0132C.flyteidl.plugins.kubeflow.Distribute" + "dTensorflowTrainingReplicaSpec\022X\n\013ps_rep" + "licas\030\002 \001(\0132C.flyteidl.plugins.kubeflow." + "DistributedTensorflowTrainingReplicaSpec" + "\022[\n\016chief_replicas\030\003 \001(\0132C.flyteidl.plug" + "ins.kubeflow.DistributedTensorflowTraini" + "ngReplicaSpec\0228\n\nrun_policy\030\004 \001(\0132$.flyt" + "eidl.plugins.kubeflow.RunPolicy\"\272\001\n(Dist" + "ributedTensorflowTrainingReplicaSpec\022\020\n\010" + "replicas\030\001 \001(\005\022\r\n\005image\030\002 \001(\t\022+\n\tresourc" + "es\030\003 \001(\0132\030.flyteidl.core.Resources\022@\n\016re" + "start_policy\030\004 \001(\0162(.flyteidl.plugins.ku" + "beflow.RestartPolicyB9Z7github.com/flyte" + "org/flyteidl/gen/pb-go/flyteidl/pluginsb" + "\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, + "flyteidl/plugins/kubeflow/tensorflow.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, 767, +}; + +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +// =================================================================== + +void DistributedTensorflowTrainingTask::InitAsDefaultInstance() { + ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->worker_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec*>( + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->ps_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec*>( + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->chief_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec*>( + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::internal_default_instance()); + ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->run_policy_ = const_cast< ::flyteidl::plugins::kubeflow::RunPolicy*>( + ::flyteidl::plugins::kubeflow::RunPolicy::internal_default_instance()); +} +class DistributedTensorflowTrainingTask::HasBitSetters { + public: + static const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& worker_replicas(const DistributedTensorflowTrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& ps_replicas(const DistributedTensorflowTrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& chief_replicas(const DistributedTensorflowTrainingTask* msg); + static const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy(const DistributedTensorflowTrainingTask* msg); +}; + +const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& +DistributedTensorflowTrainingTask::HasBitSetters::worker_replicas(const DistributedTensorflowTrainingTask* msg) { + return *msg->worker_replicas_; +} +const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& +DistributedTensorflowTrainingTask::HasBitSetters::ps_replicas(const DistributedTensorflowTrainingTask* msg) { + return *msg->ps_replicas_; +} +const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& +DistributedTensorflowTrainingTask::HasBitSetters::chief_replicas(const DistributedTensorflowTrainingTask* msg) { + return *msg->chief_replicas_; +} +const ::flyteidl::plugins::kubeflow::RunPolicy& +DistributedTensorflowTrainingTask::HasBitSetters::run_policy(const DistributedTensorflowTrainingTask* msg) { + return *msg->run_policy_; +} +void DistributedTensorflowTrainingTask::clear_run_policy() { + if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { + delete run_policy_; + } + run_policy_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedTensorflowTrainingTask::kWorkerReplicasFieldNumber; +const int DistributedTensorflowTrainingTask::kPsReplicasFieldNumber; +const int DistributedTensorflowTrainingTask::kChiefReplicasFieldNumber; +const int DistributedTensorflowTrainingTask::kRunPolicyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) +} +DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_worker_replicas()) { + worker_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(*from.worker_replicas_); + } else { + worker_replicas_ = nullptr; + } + if (from.has_ps_replicas()) { + ps_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(*from.ps_replicas_); + } else { + ps_replicas_ = nullptr; + } + if (from.has_chief_replicas()) { + chief_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(*from.chief_replicas_); + } else { + chief_replicas_ = nullptr; + } + if (from.has_run_policy()) { + run_policy_ = new ::flyteidl::plugins::kubeflow::RunPolicy(*from.run_policy_); + } else { + run_policy_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) +} + +void DistributedTensorflowTrainingTask::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); + ::memset(&worker_replicas_, 0, static_cast( + reinterpret_cast(&run_policy_) - + reinterpret_cast(&worker_replicas_)) + sizeof(run_policy_)); +} + +DistributedTensorflowTrainingTask::~DistributedTensorflowTrainingTask() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + SharedDtor(); +} + +void DistributedTensorflowTrainingTask::SharedDtor() { + if (this != internal_default_instance()) delete worker_replicas_; + if (this != internal_default_instance()) delete ps_replicas_; + if (this != internal_default_instance()) delete chief_replicas_; + if (this != internal_default_instance()) delete run_policy_; +} + +void DistributedTensorflowTrainingTask::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedTensorflowTrainingTask& DistributedTensorflowTrainingTask::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedTensorflowTrainingTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { + delete worker_replicas_; + } + worker_replicas_ = nullptr; + if (GetArenaNoVirtual() == nullptr && ps_replicas_ != nullptr) { + delete ps_replicas_; + } + ps_replicas_ = nullptr; + if (GetArenaNoVirtual() == nullptr && chief_replicas_ != nullptr) { + delete chief_replicas_; + } + chief_replicas_ = nullptr; + if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { + delete run_policy_; + } + run_policy_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedTensorflowTrainingTask::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::_InternalParse; + object = msg->mutable_worker_replicas(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::_InternalParse; + object = msg->mutable_ps_replicas(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::_InternalParse; + object = msg->mutable_chief_replicas(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::kubeflow::RunPolicy::_InternalParse; + object = msg->mutable_run_policy(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedTensorflowTrainingTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_worker_replicas())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ps_replicas())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_chief_replicas())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_run_policy())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedTensorflowTrainingTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::worker_replicas(this), output); + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + if (this->has_ps_replicas()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::ps_replicas(this), output); + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + if (this->has_chief_replicas()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::chief_replicas(this), output); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + if (this->has_run_policy()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::run_policy(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) +} + +::google::protobuf::uint8* DistributedTensorflowTrainingTask::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::worker_replicas(this), target); + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + if (this->has_ps_replicas()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::ps_replicas(this), target); + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + if (this->has_chief_replicas()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::chief_replicas(this), target); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + if (this->has_run_policy()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::run_policy(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + return target; +} + +size_t DistributedTensorflowTrainingTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + if (this->has_worker_replicas()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *worker_replicas_); + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + if (this->has_ps_replicas()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ps_replicas_); + } + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + if (this->has_chief_replicas()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *chief_replicas_); + } + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + if (this->has_run_policy()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *run_policy_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedTensorflowTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + const DistributedTensorflowTrainingTask* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + MergeFrom(*source); + } +} + +void DistributedTensorflowTrainingTask::MergeFrom(const DistributedTensorflowTrainingTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_worker_replicas()) { + mutable_worker_replicas()->::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::MergeFrom(from.worker_replicas()); + } + if (from.has_ps_replicas()) { + mutable_ps_replicas()->::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::MergeFrom(from.ps_replicas()); + } + if (from.has_chief_replicas()) { + mutable_chief_replicas()->::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::MergeFrom(from.chief_replicas()); + } + if (from.has_run_policy()) { + mutable_run_policy()->::flyteidl::plugins::kubeflow::RunPolicy::MergeFrom(from.run_policy()); + } +} + +void DistributedTensorflowTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedTensorflowTrainingTask::CopyFrom(const DistributedTensorflowTrainingTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedTensorflowTrainingTask::IsInitialized() const { + return true; +} + +void DistributedTensorflowTrainingTask::Swap(DistributedTensorflowTrainingTask* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedTensorflowTrainingTask::InternalSwap(DistributedTensorflowTrainingTask* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(worker_replicas_, other->worker_replicas_); + swap(ps_replicas_, other->ps_replicas_); + swap(chief_replicas_, other->chief_replicas_); + swap(run_policy_, other->run_policy_); +} + +::google::protobuf::Metadata DistributedTensorflowTrainingTask::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DistributedTensorflowTrainingReplicaSpec::InitAsDefaultInstance() { + ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); +} +class DistributedTensorflowTrainingReplicaSpec::HasBitSetters { + public: + static const ::flyteidl::core::Resources& resources(const DistributedTensorflowTrainingReplicaSpec* msg); +}; + +const ::flyteidl::core::Resources& +DistributedTensorflowTrainingReplicaSpec::HasBitSetters::resources(const DistributedTensorflowTrainingReplicaSpec* msg) { + return *msg->resources_; +} +void DistributedTensorflowTrainingReplicaSpec::clear_resources() { + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedTensorflowTrainingReplicaSpec::kReplicasFieldNumber; +const int DistributedTensorflowTrainingReplicaSpec::kImageFieldNumber; +const int DistributedTensorflowTrainingReplicaSpec::kResourcesFieldNumber; +const int DistributedTensorflowTrainingReplicaSpec::kRestartPolicyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedTensorflowTrainingReplicaSpec::DistributedTensorflowTrainingReplicaSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) +} +DistributedTensorflowTrainingReplicaSpec::DistributedTensorflowTrainingReplicaSpec(const DistributedTensorflowTrainingReplicaSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.image().size() > 0) { + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = nullptr; + } + ::memcpy(&replicas_, &from.replicas_, + static_cast(reinterpret_cast(&restart_policy_) - + reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) +} + +void DistributedTensorflowTrainingReplicaSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&resources_, 0, static_cast( + reinterpret_cast(&restart_policy_) - + reinterpret_cast(&resources_)) + sizeof(restart_policy_)); +} + +DistributedTensorflowTrainingReplicaSpec::~DistributedTensorflowTrainingReplicaSpec() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + SharedDtor(); +} + +void DistributedTensorflowTrainingReplicaSpec::SharedDtor() { + image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete resources_; +} + +void DistributedTensorflowTrainingReplicaSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingReplicaSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedTensorflowTrainingReplicaSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { + delete resources_; + } + resources_ = nullptr; + ::memset(&replicas_, 0, static_cast( + reinterpret_cast(&restart_policy_) - + reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedTensorflowTrainingReplicaSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 replicas = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string image = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image"); + object = msg->mutable_image(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Resources::_InternalParse; + object = msg->mutable_resources(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_restart_policy(static_cast<::flyteidl::plugins::kubeflow::RestartPolicy>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedTensorflowTrainingReplicaSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 replicas = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // string image = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_image())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Resources resources = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_restart_policy(static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedTensorflowTrainingReplicaSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 replicas = 1; + if (this->replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->replicas(), output); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->image(), output); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::resources(this), output); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->restart_policy(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) +} + +::google::protobuf::uint8* DistributedTensorflowTrainingReplicaSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 replicas = 1; + if (this->replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->replicas(), target); + } + + // string image = 2; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->image(), target); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::resources(this), target); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->restart_policy(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + return target; +} + +size_t DistributedTensorflowTrainingReplicaSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string image = 2; + if (this->image().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->image()); + } + + // .flyteidl.core.Resources resources = 3; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resources_); + } + + // int32 replicas = 1; + if (this->replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->replicas()); + } + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + if (this->restart_policy() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->restart_policy()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedTensorflowTrainingReplicaSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + GOOGLE_DCHECK_NE(&from, this); + const DistributedTensorflowTrainingReplicaSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + MergeFrom(*source); + } +} + +void DistributedTensorflowTrainingReplicaSpec::MergeFrom(const DistributedTensorflowTrainingReplicaSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.image().size() > 0) { + + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } + if (from.replicas() != 0) { + set_replicas(from.replicas()); + } + if (from.restart_policy() != 0) { + set_restart_policy(from.restart_policy()); + } +} + +void DistributedTensorflowTrainingReplicaSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedTensorflowTrainingReplicaSpec::CopyFrom(const DistributedTensorflowTrainingReplicaSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedTensorflowTrainingReplicaSpec::IsInitialized() const { + return true; +} + +void DistributedTensorflowTrainingReplicaSpec::Swap(DistributedTensorflowTrainingReplicaSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedTensorflowTrainingReplicaSpec::InternalSwap(DistributedTensorflowTrainingReplicaSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(resources_, other->resources_); + swap(replicas_, other->replicas_); + swap(restart_policy_, other->restart_policy_); +} + +::google::protobuf::Metadata DistributedTensorflowTrainingReplicaSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.h new file mode 100644 index 0000000000..9839ca4817 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.h @@ -0,0 +1,718 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/tensorflow.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/plugins/kubeflow/common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[2] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto(); +namespace flyteidl { +namespace plugins { +namespace kubeflow { +class DistributedTensorflowTrainingReplicaSpec; +class DistributedTensorflowTrainingReplicaSpecDefaultTypeInternal; +extern DistributedTensorflowTrainingReplicaSpecDefaultTypeInternal _DistributedTensorflowTrainingReplicaSpec_default_instance_; +class DistributedTensorflowTrainingTask; +class DistributedTensorflowTrainingTaskDefaultTypeInternal; +extern DistributedTensorflowTrainingTaskDefaultTypeInternal _DistributedTensorflowTrainingTask_default_instance_; +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(Arena*); +template<> ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace kubeflow { + +// =================================================================== + +class DistributedTensorflowTrainingTask final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) */ { + public: + DistributedTensorflowTrainingTask(); + virtual ~DistributedTensorflowTrainingTask(); + + DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from); + + inline DistributedTensorflowTrainingTask& operator=(const DistributedTensorflowTrainingTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedTensorflowTrainingTask(DistributedTensorflowTrainingTask&& from) noexcept + : DistributedTensorflowTrainingTask() { + *this = ::std::move(from); + } + + inline DistributedTensorflowTrainingTask& operator=(DistributedTensorflowTrainingTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedTensorflowTrainingTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedTensorflowTrainingTask* internal_default_instance() { + return reinterpret_cast( + &_DistributedTensorflowTrainingTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DistributedTensorflowTrainingTask* other); + friend void swap(DistributedTensorflowTrainingTask& a, DistributedTensorflowTrainingTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedTensorflowTrainingTask* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedTensorflowTrainingTask* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedTensorflowTrainingTask& from); + void MergeFrom(const DistributedTensorflowTrainingTask& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedTensorflowTrainingTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + bool has_worker_replicas() const; + void clear_worker_replicas(); + static const int kWorkerReplicasFieldNumber = 1; + const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& worker_replicas() const; + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* release_worker_replicas(); + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* mutable_worker_replicas(); + void set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* worker_replicas); + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + bool has_ps_replicas() const; + void clear_ps_replicas(); + static const int kPsReplicasFieldNumber = 2; + const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& ps_replicas() const; + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* release_ps_replicas(); + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* mutable_ps_replicas(); + void set_allocated_ps_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* ps_replicas); + + // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + bool has_chief_replicas() const; + void clear_chief_replicas(); + static const int kChiefReplicasFieldNumber = 3; + const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& chief_replicas() const; + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* release_chief_replicas(); + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* mutable_chief_replicas(); + void set_allocated_chief_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* chief_replicas); + + // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + bool has_run_policy() const; + void clear_run_policy(); + static const int kRunPolicyFieldNumber = 4; + const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy() const; + ::flyteidl::plugins::kubeflow::RunPolicy* release_run_policy(); + ::flyteidl::plugins::kubeflow::RunPolicy* mutable_run_policy(); + void set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* worker_replicas_; + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* ps_replicas_; + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* chief_replicas_; + ::flyteidl::plugins::kubeflow::RunPolicy* run_policy_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto; +}; +// ------------------------------------------------------------------- + +class DistributedTensorflowTrainingReplicaSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) */ { + public: + DistributedTensorflowTrainingReplicaSpec(); + virtual ~DistributedTensorflowTrainingReplicaSpec(); + + DistributedTensorflowTrainingReplicaSpec(const DistributedTensorflowTrainingReplicaSpec& from); + + inline DistributedTensorflowTrainingReplicaSpec& operator=(const DistributedTensorflowTrainingReplicaSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedTensorflowTrainingReplicaSpec(DistributedTensorflowTrainingReplicaSpec&& from) noexcept + : DistributedTensorflowTrainingReplicaSpec() { + *this = ::std::move(from); + } + + inline DistributedTensorflowTrainingReplicaSpec& operator=(DistributedTensorflowTrainingReplicaSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedTensorflowTrainingReplicaSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedTensorflowTrainingReplicaSpec* internal_default_instance() { + return reinterpret_cast( + &_DistributedTensorflowTrainingReplicaSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(DistributedTensorflowTrainingReplicaSpec* other); + friend void swap(DistributedTensorflowTrainingReplicaSpec& a, DistributedTensorflowTrainingReplicaSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedTensorflowTrainingReplicaSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedTensorflowTrainingReplicaSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedTensorflowTrainingReplicaSpec& from); + void MergeFrom(const DistributedTensorflowTrainingReplicaSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedTensorflowTrainingReplicaSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string image = 2; + void clear_image(); + static const int kImageFieldNumber = 2; + const ::std::string& image() const; + void set_image(const ::std::string& value); + #if LANG_CXX11 + void set_image(::std::string&& value); + #endif + void set_image(const char* value); + void set_image(const char* value, size_t size); + ::std::string* mutable_image(); + ::std::string* release_image(); + void set_allocated_image(::std::string* image); + + // .flyteidl.core.Resources resources = 3; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 3; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // int32 replicas = 1; + void clear_replicas(); + static const int kReplicasFieldNumber = 1; + ::google::protobuf::int32 replicas() const; + void set_replicas(::google::protobuf::int32 value); + + // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + void clear_restart_policy(); + static const int kRestartPolicyFieldNumber = 4; + ::flyteidl::plugins::kubeflow::RestartPolicy restart_policy() const; + void set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr image_; + ::flyteidl::core::Resources* resources_; + ::google::protobuf::int32 replicas_; + int restart_policy_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DistributedTensorflowTrainingTask + +// .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; +inline bool DistributedTensorflowTrainingTask::has_worker_replicas() const { + return this != internal_default_instance() && worker_replicas_ != nullptr; +} +inline void DistributedTensorflowTrainingTask::clear_worker_replicas() { + if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { + delete worker_replicas_; + } + worker_replicas_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingTask::worker_replicas() const { + const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* p = worker_replicas_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::release_worker_replicas() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) + + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* temp = worker_replicas_; + worker_replicas_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::mutable_worker_replicas() { + + if (worker_replicas_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(GetArenaNoVirtual()); + worker_replicas_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) + return worker_replicas_; +} +inline void DistributedTensorflowTrainingTask::set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* worker_replicas) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete worker_replicas_; + } + if (worker_replicas) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + worker_replicas = ::google::protobuf::internal::GetOwnedMessage( + message_arena, worker_replicas, submessage_arena); + } + + } else { + + } + worker_replicas_ = worker_replicas; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) +} + +// .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; +inline bool DistributedTensorflowTrainingTask::has_ps_replicas() const { + return this != internal_default_instance() && ps_replicas_ != nullptr; +} +inline void DistributedTensorflowTrainingTask::clear_ps_replicas() { + if (GetArenaNoVirtual() == nullptr && ps_replicas_ != nullptr) { + delete ps_replicas_; + } + ps_replicas_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingTask::ps_replicas() const { + const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* p = ps_replicas_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::release_ps_replicas() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) + + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* temp = ps_replicas_; + ps_replicas_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::mutable_ps_replicas() { + + if (ps_replicas_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(GetArenaNoVirtual()); + ps_replicas_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) + return ps_replicas_; +} +inline void DistributedTensorflowTrainingTask::set_allocated_ps_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* ps_replicas) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete ps_replicas_; + } + if (ps_replicas) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ps_replicas = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ps_replicas, submessage_arena); + } + + } else { + + } + ps_replicas_ = ps_replicas; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) +} + +// .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; +inline bool DistributedTensorflowTrainingTask::has_chief_replicas() const { + return this != internal_default_instance() && chief_replicas_ != nullptr; +} +inline void DistributedTensorflowTrainingTask::clear_chief_replicas() { + if (GetArenaNoVirtual() == nullptr && chief_replicas_ != nullptr) { + delete chief_replicas_; + } + chief_replicas_ = nullptr; +} +inline const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingTask::chief_replicas() const { + const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* p = chief_replicas_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::release_chief_replicas() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) + + ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* temp = chief_replicas_; + chief_replicas_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::mutable_chief_replicas() { + + if (chief_replicas_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(GetArenaNoVirtual()); + chief_replicas_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) + return chief_replicas_; +} +inline void DistributedTensorflowTrainingTask::set_allocated_chief_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* chief_replicas) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete chief_replicas_; + } + if (chief_replicas) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + chief_replicas = ::google::protobuf::internal::GetOwnedMessage( + message_arena, chief_replicas, submessage_arena); + } + + } else { + + } + chief_replicas_ = chief_replicas; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) +} + +// .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; +inline bool DistributedTensorflowTrainingTask::has_run_policy() const { + return this != internal_default_instance() && run_policy_ != nullptr; +} +inline const ::flyteidl::plugins::kubeflow::RunPolicy& DistributedTensorflowTrainingTask::run_policy() const { + const ::flyteidl::plugins::kubeflow::RunPolicy* p = run_policy_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_); +} +inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedTensorflowTrainingTask::release_run_policy() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) + + ::flyteidl::plugins::kubeflow::RunPolicy* temp = run_policy_; + run_policy_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedTensorflowTrainingTask::mutable_run_policy() { + + if (run_policy_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(GetArenaNoVirtual()); + run_policy_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) + return run_policy_; +} +inline void DistributedTensorflowTrainingTask::set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(run_policy_); + } + if (run_policy) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + run_policy = ::google::protobuf::internal::GetOwnedMessage( + message_arena, run_policy, submessage_arena); + } + + } else { + + } + run_policy_ = run_policy; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) +} + +// ------------------------------------------------------------------- + +// DistributedTensorflowTrainingReplicaSpec + +// int32 replicas = 1; +inline void DistributedTensorflowTrainingReplicaSpec::clear_replicas() { + replicas_ = 0; +} +inline ::google::protobuf::int32 DistributedTensorflowTrainingReplicaSpec::replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.replicas) + return replicas_; +} +inline void DistributedTensorflowTrainingReplicaSpec::set_replicas(::google::protobuf::int32 value) { + + replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.replicas) +} + +// string image = 2; +inline void DistributedTensorflowTrainingReplicaSpec::clear_image() { + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& DistributedTensorflowTrainingReplicaSpec::image() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) + return image_.GetNoArena(); +} +inline void DistributedTensorflowTrainingReplicaSpec::set_image(const ::std::string& value) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) +} +#if LANG_CXX11 +inline void DistributedTensorflowTrainingReplicaSpec::set_image(::std::string&& value) { + + image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) +} +#endif +inline void DistributedTensorflowTrainingReplicaSpec::set_image(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) +} +inline void DistributedTensorflowTrainingReplicaSpec::set_image(const char* value, size_t size) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) +} +inline ::std::string* DistributedTensorflowTrainingReplicaSpec::mutable_image() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) + return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* DistributedTensorflowTrainingReplicaSpec::release_image() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) + + return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void DistributedTensorflowTrainingReplicaSpec::set_allocated_image(::std::string* image) { + if (image != nullptr) { + + } else { + + } + image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) +} + +// .flyteidl.core.Resources resources = 3; +inline bool DistributedTensorflowTrainingReplicaSpec::has_resources() const { + return this != internal_default_instance() && resources_ != nullptr; +} +inline const ::flyteidl::core::Resources& DistributedTensorflowTrainingReplicaSpec::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* DistributedTensorflowTrainingReplicaSpec::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = nullptr; + return temp; +} +inline ::flyteidl::core::Resources* DistributedTensorflowTrainingReplicaSpec::mutable_resources() { + + if (resources_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); + resources_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) + return resources_; +} +inline void DistributedTensorflowTrainingReplicaSpec::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) +} + +// .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; +inline void DistributedTensorflowTrainingReplicaSpec::clear_restart_policy() { + restart_policy_ = 0; +} +inline ::flyteidl::plugins::kubeflow::RestartPolicy DistributedTensorflowTrainingReplicaSpec::restart_policy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.restart_policy) + return static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(restart_policy_); +} +inline void DistributedTensorflowTrainingReplicaSpec::set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value) { + + restart_policy_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.restart_policy) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace kubeflow +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.cc new file mode 100644 index 0000000000..8a312292c0 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/mpi.proto + +#include "flyteidl/plugins/mpi.pb.h" +#include "flyteidl/plugins/mpi.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.h new file mode 100644 index 0000000000..6725f0e0e8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/mpi.proto +#ifndef GRPC_flyteidl_2fplugins_2fmpi_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fmpi_2eproto__INCLUDED + +#include "flyteidl/plugins/mpi.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fmpi_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.cc new file mode 100644 index 0000000000..87aa4c4581 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.cc @@ -0,0 +1,461 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/mpi.proto + +#include "flyteidl/plugins/mpi.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace plugins { +class DistributedMPITrainingTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedMPITrainingTask_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_DistributedMPITrainingTask_default_instance_; + new (ptr) ::flyteidl::plugins::DistributedMPITrainingTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::DistributedMPITrainingTask::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto}, {}}; + +void InitDefaults_flyteidl_2fplugins_2fmpi_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fmpi_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fmpi_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fmpi_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fmpi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, num_workers_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, num_launcher_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, slots_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::DistributedMPITrainingTask)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_DistributedMPITrainingTask_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fmpi_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto, "flyteidl/plugins/mpi.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fmpi_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fmpi_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fmpi_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fmpi_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fmpi_2eproto[] = + "\n\032flyteidl/plugins/mpi.proto\022\020flyteidl.p" + "lugins\"_\n\032DistributedMPITrainingTask\022\023\n\013" + "num_workers\030\001 \001(\005\022\035\n\025num_launcher_replic" + "as\030\002 \001(\005\022\r\n\005slots\030\003 \001(\005B9Z7github.com/fl" + "yteorg/flyteidl/gen/pb-go/flyteidl/plugi" + "nsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fmpi_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fmpi_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fmpi_2eproto, + "flyteidl/plugins/mpi.proto", &assign_descriptors_table_flyteidl_2fplugins_2fmpi_2eproto, 210, +}; + +void AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fmpi_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fmpi_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void DistributedMPITrainingTask::InitAsDefaultInstance() { +} +class DistributedMPITrainingTask::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedMPITrainingTask::kNumWorkersFieldNumber; +const int DistributedMPITrainingTask::kNumLauncherReplicasFieldNumber; +const int DistributedMPITrainingTask::kSlotsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedMPITrainingTask::DistributedMPITrainingTask() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.DistributedMPITrainingTask) +} +DistributedMPITrainingTask::DistributedMPITrainingTask(const DistributedMPITrainingTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&num_workers_, &from.num_workers_, + static_cast(reinterpret_cast(&slots_) - + reinterpret_cast(&num_workers_)) + sizeof(slots_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DistributedMPITrainingTask) +} + +void DistributedMPITrainingTask::SharedCtor() { + ::memset(&num_workers_, 0, static_cast( + reinterpret_cast(&slots_) - + reinterpret_cast(&num_workers_)) + sizeof(slots_)); +} + +DistributedMPITrainingTask::~DistributedMPITrainingTask() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.DistributedMPITrainingTask) + SharedDtor(); +} + +void DistributedMPITrainingTask::SharedDtor() { +} + +void DistributedMPITrainingTask::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedMPITrainingTask& DistributedMPITrainingTask::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedMPITrainingTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DistributedMPITrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&num_workers_, 0, static_cast( + reinterpret_cast(&slots_) - + reinterpret_cast(&num_workers_)) + sizeof(slots_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedMPITrainingTask::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 num_workers = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_num_workers(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 num_launcher_replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_num_launcher_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 slots = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_slots(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedMPITrainingTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.DistributedMPITrainingTask) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 num_workers = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &num_workers_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 num_launcher_replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &num_launcher_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 slots = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &slots_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.DistributedMPITrainingTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DistributedMPITrainingTask) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedMPITrainingTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DistributedMPITrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 num_workers = 1; + if (this->num_workers() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->num_workers(), output); + } + + // int32 num_launcher_replicas = 2; + if (this->num_launcher_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_launcher_replicas(), output); + } + + // int32 slots = 3; + if (this->slots() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->slots(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DistributedMPITrainingTask) +} + +::google::protobuf::uint8* DistributedMPITrainingTask::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DistributedMPITrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 num_workers = 1; + if (this->num_workers() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->num_workers(), target); + } + + // int32 num_launcher_replicas = 2; + if (this->num_launcher_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_launcher_replicas(), target); + } + + // int32 slots = 3; + if (this->slots() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->slots(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.DistributedMPITrainingTask) + return target; +} + +size_t DistributedMPITrainingTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DistributedMPITrainingTask) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 num_workers = 1; + if (this->num_workers() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->num_workers()); + } + + // int32 num_launcher_replicas = 2; + if (this->num_launcher_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->num_launcher_replicas()); + } + + // int32 slots = 3; + if (this->slots() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->slots()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedMPITrainingTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DistributedMPITrainingTask) + GOOGLE_DCHECK_NE(&from, this); + const DistributedMPITrainingTask* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DistributedMPITrainingTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DistributedMPITrainingTask) + MergeFrom(*source); + } +} + +void DistributedMPITrainingTask::MergeFrom(const DistributedMPITrainingTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DistributedMPITrainingTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.num_workers() != 0) { + set_num_workers(from.num_workers()); + } + if (from.num_launcher_replicas() != 0) { + set_num_launcher_replicas(from.num_launcher_replicas()); + } + if (from.slots() != 0) { + set_slots(from.slots()); + } +} + +void DistributedMPITrainingTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DistributedMPITrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedMPITrainingTask::CopyFrom(const DistributedMPITrainingTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DistributedMPITrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedMPITrainingTask::IsInitialized() const { + return true; +} + +void DistributedMPITrainingTask::Swap(DistributedMPITrainingTask* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedMPITrainingTask::InternalSwap(DistributedMPITrainingTask* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(num_workers_, other->num_workers_); + swap(num_launcher_replicas_, other->num_launcher_replicas_); + swap(slots_, other->slots_); +} + +::google::protobuf::Metadata DistributedMPITrainingTask::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fmpi_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fmpi_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DistributedMPITrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::DistributedMPITrainingTask >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::DistributedMPITrainingTask >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.h new file mode 100644 index 0000000000..119bb2ca98 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.h @@ -0,0 +1,257 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/mpi.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fmpi_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fmpi_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fmpi_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fmpi_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto(); +namespace flyteidl { +namespace plugins { +class DistributedMPITrainingTask; +class DistributedMPITrainingTaskDefaultTypeInternal; +extern DistributedMPITrainingTaskDefaultTypeInternal _DistributedMPITrainingTask_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::DistributedMPITrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::DistributedMPITrainingTask>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class DistributedMPITrainingTask final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DistributedMPITrainingTask) */ { + public: + DistributedMPITrainingTask(); + virtual ~DistributedMPITrainingTask(); + + DistributedMPITrainingTask(const DistributedMPITrainingTask& from); + + inline DistributedMPITrainingTask& operator=(const DistributedMPITrainingTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedMPITrainingTask(DistributedMPITrainingTask&& from) noexcept + : DistributedMPITrainingTask() { + *this = ::std::move(from); + } + + inline DistributedMPITrainingTask& operator=(DistributedMPITrainingTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedMPITrainingTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedMPITrainingTask* internal_default_instance() { + return reinterpret_cast( + &_DistributedMPITrainingTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DistributedMPITrainingTask* other); + friend void swap(DistributedMPITrainingTask& a, DistributedMPITrainingTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedMPITrainingTask* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedMPITrainingTask* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedMPITrainingTask& from); + void MergeFrom(const DistributedMPITrainingTask& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedMPITrainingTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int32 num_workers = 1; + void clear_num_workers(); + static const int kNumWorkersFieldNumber = 1; + ::google::protobuf::int32 num_workers() const; + void set_num_workers(::google::protobuf::int32 value); + + // int32 num_launcher_replicas = 2; + void clear_num_launcher_replicas(); + static const int kNumLauncherReplicasFieldNumber = 2; + ::google::protobuf::int32 num_launcher_replicas() const; + void set_num_launcher_replicas(::google::protobuf::int32 value); + + // int32 slots = 3; + void clear_slots(); + static const int kSlotsFieldNumber = 3; + ::google::protobuf::int32 slots() const; + void set_slots(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedMPITrainingTask) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int32 num_workers_; + ::google::protobuf::int32 num_launcher_replicas_; + ::google::protobuf::int32 slots_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fmpi_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DistributedMPITrainingTask + +// int32 num_workers = 1; +inline void DistributedMPITrainingTask::clear_num_workers() { + num_workers_ = 0; +} +inline ::google::protobuf::int32 DistributedMPITrainingTask::num_workers() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedMPITrainingTask.num_workers) + return num_workers_; +} +inline void DistributedMPITrainingTask::set_num_workers(::google::protobuf::int32 value) { + + num_workers_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedMPITrainingTask.num_workers) +} + +// int32 num_launcher_replicas = 2; +inline void DistributedMPITrainingTask::clear_num_launcher_replicas() { + num_launcher_replicas_ = 0; +} +inline ::google::protobuf::int32 DistributedMPITrainingTask::num_launcher_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedMPITrainingTask.num_launcher_replicas) + return num_launcher_replicas_; +} +inline void DistributedMPITrainingTask::set_num_launcher_replicas(::google::protobuf::int32 value) { + + num_launcher_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedMPITrainingTask.num_launcher_replicas) +} + +// int32 slots = 3; +inline void DistributedMPITrainingTask::clear_slots() { + slots_ = 0; +} +inline ::google::protobuf::int32 DistributedMPITrainingTask::slots() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedMPITrainingTask.slots) + return slots_; +} +inline void DistributedMPITrainingTask::set_slots(::google::protobuf::int32 value) { + + slots_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedMPITrainingTask.slots) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fmpi_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.cc new file mode 100644 index 0000000000..04dda26e33 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/presto.proto + +#include "flyteidl/plugins/presto.pb.h" +#include "flyteidl/plugins/presto.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.h new file mode 100644 index 0000000000..8172a55c49 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/presto.proto +#ifndef GRPC_flyteidl_2fplugins_2fpresto_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fpresto_2eproto__INCLUDED + +#include "flyteidl/plugins/presto.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fpresto_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.cc new file mode 100644 index 0000000000..e889484dec --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.cc @@ -0,0 +1,628 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/presto.proto + +#include "flyteidl/plugins/presto.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace plugins { +class PrestoQueryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PrestoQuery_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsPrestoQuery_flyteidl_2fplugins_2fpresto_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_PrestoQuery_default_instance_; + new (ptr) ::flyteidl::plugins::PrestoQuery(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::PrestoQuery::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPrestoQuery_flyteidl_2fplugins_2fpresto_2eproto}, {}}; + +void InitDefaults_flyteidl_2fplugins_2fpresto_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fpresto_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fpresto_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fpresto_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fpresto_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, routing_group_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, catalog_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, schema_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, statement_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::PrestoQuery)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_PrestoQuery_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fpresto_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto, "flyteidl/plugins/presto.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fpresto_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fpresto_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fpresto_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fpresto_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fpresto_2eproto[] = + "\n\035flyteidl/plugins/presto.proto\022\020flyteid" + "l.plugins\"X\n\013PrestoQuery\022\025\n\rrouting_grou" + "p\030\001 \001(\t\022\017\n\007catalog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t" + "\022\021\n\tstatement\030\004 \001(\tB9Z7github.com/flyteo" + "rg/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + "proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fpresto_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fpresto_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fpresto_2eproto, + "flyteidl/plugins/presto.proto", &assign_descriptors_table_flyteidl_2fplugins_2fpresto_2eproto, 206, +}; + +void AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fpresto_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fpresto_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void PrestoQuery::InitAsDefaultInstance() { +} +class PrestoQuery::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PrestoQuery::kRoutingGroupFieldNumber; +const int PrestoQuery::kCatalogFieldNumber; +const int PrestoQuery::kSchemaFieldNumber; +const int PrestoQuery::kStatementFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PrestoQuery::PrestoQuery() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.PrestoQuery) +} +PrestoQuery::PrestoQuery(const PrestoQuery& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + routing_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.routing_group().size() > 0) { + routing_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.routing_group_); + } + catalog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.catalog().size() > 0) { + catalog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_); + } + schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.schema().size() > 0) { + schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_); + } + statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.statement().size() > 0) { + statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.PrestoQuery) +} + +void PrestoQuery::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto.base); + routing_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + catalog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +PrestoQuery::~PrestoQuery() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.PrestoQuery) + SharedDtor(); +} + +void PrestoQuery::SharedDtor() { + routing_group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + catalog_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + schema_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + statement_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PrestoQuery::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PrestoQuery& PrestoQuery::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto.base); + return *internal_default_instance(); +} + + +void PrestoQuery::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.PrestoQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + routing_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + catalog_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + schema_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PrestoQuery::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string routing_group = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.routing_group"); + object = msg->mutable_routing_group(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string catalog = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.catalog"); + object = msg->mutable_catalog(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string schema = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.schema"); + object = msg->mutable_schema(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string statement = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.statement"); + object = msg->mutable_statement(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PrestoQuery::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.PrestoQuery) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string routing_group = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_routing_group())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->routing_group().data(), static_cast(this->routing_group().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.PrestoQuery.routing_group")); + } else { + goto handle_unusual; + } + break; + } + + // string catalog = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_catalog())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->catalog().data(), static_cast(this->catalog().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.PrestoQuery.catalog")); + } else { + goto handle_unusual; + } + break; + } + + // string schema = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_schema())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->schema().data(), static_cast(this->schema().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.PrestoQuery.schema")); + } else { + goto handle_unusual; + } + break; + } + + // string statement = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_statement())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->statement().data(), static_cast(this->statement().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.PrestoQuery.statement")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.PrestoQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.PrestoQuery) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PrestoQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.PrestoQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string routing_group = 1; + if (this->routing_group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->routing_group().data(), static_cast(this->routing_group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.routing_group"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->routing_group(), output); + } + + // string catalog = 2; + if (this->catalog().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->catalog().data(), static_cast(this->catalog().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.catalog"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->catalog(), output); + } + + // string schema = 3; + if (this->schema().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->schema().data(), static_cast(this->schema().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.schema"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->schema(), output); + } + + // string statement = 4; + if (this->statement().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->statement().data(), static_cast(this->statement().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.statement"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->statement(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.PrestoQuery) +} + +::google::protobuf::uint8* PrestoQuery::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.PrestoQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string routing_group = 1; + if (this->routing_group().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->routing_group().data(), static_cast(this->routing_group().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.routing_group"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->routing_group(), target); + } + + // string catalog = 2; + if (this->catalog().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->catalog().data(), static_cast(this->catalog().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.catalog"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->catalog(), target); + } + + // string schema = 3; + if (this->schema().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->schema().data(), static_cast(this->schema().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.schema"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->schema(), target); + } + + // string statement = 4; + if (this->statement().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->statement().data(), static_cast(this->statement().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.PrestoQuery.statement"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->statement(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.PrestoQuery) + return target; +} + +size_t PrestoQuery::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.PrestoQuery) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string routing_group = 1; + if (this->routing_group().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->routing_group()); + } + + // string catalog = 2; + if (this->catalog().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->catalog()); + } + + // string schema = 3; + if (this->schema().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->schema()); + } + + // string statement = 4; + if (this->statement().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->statement()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PrestoQuery::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.PrestoQuery) + GOOGLE_DCHECK_NE(&from, this); + const PrestoQuery* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.PrestoQuery) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.PrestoQuery) + MergeFrom(*source); + } +} + +void PrestoQuery::MergeFrom(const PrestoQuery& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.PrestoQuery) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.routing_group().size() > 0) { + + routing_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.routing_group_); + } + if (from.catalog().size() > 0) { + + catalog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_); + } + if (from.schema().size() > 0) { + + schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_); + } + if (from.statement().size() > 0) { + + statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); + } +} + +void PrestoQuery::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.PrestoQuery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PrestoQuery::CopyFrom(const PrestoQuery& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.PrestoQuery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PrestoQuery::IsInitialized() const { + return true; +} + +void PrestoQuery::Swap(PrestoQuery* other) { + if (other == this) return; + InternalSwap(other); +} +void PrestoQuery::InternalSwap(PrestoQuery* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + routing_group_.Swap(&other->routing_group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + catalog_.Swap(&other->catalog_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + schema_.Swap(&other->schema_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + statement_.Swap(&other->statement_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata PrestoQuery::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fpresto_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fpresto_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::PrestoQuery* Arena::CreateMaybeMessage< ::flyteidl::plugins::PrestoQuery >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::PrestoQuery >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.h new file mode 100644 index 0000000000..e7d19f1b8a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.h @@ -0,0 +1,466 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/presto.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpresto_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpresto_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fpresto_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fpresto_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto(); +namespace flyteidl { +namespace plugins { +class PrestoQuery; +class PrestoQueryDefaultTypeInternal; +extern PrestoQueryDefaultTypeInternal _PrestoQuery_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::PrestoQuery* Arena::CreateMaybeMessage<::flyteidl::plugins::PrestoQuery>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class PrestoQuery final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.PrestoQuery) */ { + public: + PrestoQuery(); + virtual ~PrestoQuery(); + + PrestoQuery(const PrestoQuery& from); + + inline PrestoQuery& operator=(const PrestoQuery& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PrestoQuery(PrestoQuery&& from) noexcept + : PrestoQuery() { + *this = ::std::move(from); + } + + inline PrestoQuery& operator=(PrestoQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PrestoQuery& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PrestoQuery* internal_default_instance() { + return reinterpret_cast( + &_PrestoQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(PrestoQuery* other); + friend void swap(PrestoQuery& a, PrestoQuery& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PrestoQuery* New() const final { + return CreateMaybeMessage(nullptr); + } + + PrestoQuery* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PrestoQuery& from); + void MergeFrom(const PrestoQuery& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PrestoQuery* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string routing_group = 1; + void clear_routing_group(); + static const int kRoutingGroupFieldNumber = 1; + const ::std::string& routing_group() const; + void set_routing_group(const ::std::string& value); + #if LANG_CXX11 + void set_routing_group(::std::string&& value); + #endif + void set_routing_group(const char* value); + void set_routing_group(const char* value, size_t size); + ::std::string* mutable_routing_group(); + ::std::string* release_routing_group(); + void set_allocated_routing_group(::std::string* routing_group); + + // string catalog = 2; + void clear_catalog(); + static const int kCatalogFieldNumber = 2; + const ::std::string& catalog() const; + void set_catalog(const ::std::string& value); + #if LANG_CXX11 + void set_catalog(::std::string&& value); + #endif + void set_catalog(const char* value); + void set_catalog(const char* value, size_t size); + ::std::string* mutable_catalog(); + ::std::string* release_catalog(); + void set_allocated_catalog(::std::string* catalog); + + // string schema = 3; + void clear_schema(); + static const int kSchemaFieldNumber = 3; + const ::std::string& schema() const; + void set_schema(const ::std::string& value); + #if LANG_CXX11 + void set_schema(::std::string&& value); + #endif + void set_schema(const char* value); + void set_schema(const char* value, size_t size); + ::std::string* mutable_schema(); + ::std::string* release_schema(); + void set_allocated_schema(::std::string* schema); + + // string statement = 4; + void clear_statement(); + static const int kStatementFieldNumber = 4; + const ::std::string& statement() const; + void set_statement(const ::std::string& value); + #if LANG_CXX11 + void set_statement(::std::string&& value); + #endif + void set_statement(const char* value); + void set_statement(const char* value, size_t size); + ::std::string* mutable_statement(); + ::std::string* release_statement(); + void set_allocated_statement(::std::string* statement); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr routing_group_; + ::google::protobuf::internal::ArenaStringPtr catalog_; + ::google::protobuf::internal::ArenaStringPtr schema_; + ::google::protobuf::internal::ArenaStringPtr statement_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fpresto_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// PrestoQuery + +// string routing_group = 1; +inline void PrestoQuery::clear_routing_group() { + routing_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PrestoQuery::routing_group() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.routing_group) + return routing_group_.GetNoArena(); +} +inline void PrestoQuery::set_routing_group(const ::std::string& value) { + + routing_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.routing_group) +} +#if LANG_CXX11 +inline void PrestoQuery::set_routing_group(::std::string&& value) { + + routing_group_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.routing_group) +} +#endif +inline void PrestoQuery::set_routing_group(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + routing_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.routing_group) +} +inline void PrestoQuery::set_routing_group(const char* value, size_t size) { + + routing_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.routing_group) +} +inline ::std::string* PrestoQuery::mutable_routing_group() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.routing_group) + return routing_group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PrestoQuery::release_routing_group() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.routing_group) + + return routing_group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PrestoQuery::set_allocated_routing_group(::std::string* routing_group) { + if (routing_group != nullptr) { + + } else { + + } + routing_group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), routing_group); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.routing_group) +} + +// string catalog = 2; +inline void PrestoQuery::clear_catalog() { + catalog_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PrestoQuery::catalog() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.catalog) + return catalog_.GetNoArena(); +} +inline void PrestoQuery::set_catalog(const ::std::string& value) { + + catalog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.catalog) +} +#if LANG_CXX11 +inline void PrestoQuery::set_catalog(::std::string&& value) { + + catalog_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.catalog) +} +#endif +inline void PrestoQuery::set_catalog(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + catalog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.catalog) +} +inline void PrestoQuery::set_catalog(const char* value, size_t size) { + + catalog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.catalog) +} +inline ::std::string* PrestoQuery::mutable_catalog() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.catalog) + return catalog_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PrestoQuery::release_catalog() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.catalog) + + return catalog_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PrestoQuery::set_allocated_catalog(::std::string* catalog) { + if (catalog != nullptr) { + + } else { + + } + catalog_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.catalog) +} + +// string schema = 3; +inline void PrestoQuery::clear_schema() { + schema_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PrestoQuery::schema() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.schema) + return schema_.GetNoArena(); +} +inline void PrestoQuery::set_schema(const ::std::string& value) { + + schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.schema) +} +#if LANG_CXX11 +inline void PrestoQuery::set_schema(::std::string&& value) { + + schema_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.schema) +} +#endif +inline void PrestoQuery::set_schema(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.schema) +} +inline void PrestoQuery::set_schema(const char* value, size_t size) { + + schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.schema) +} +inline ::std::string* PrestoQuery::mutable_schema() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.schema) + return schema_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PrestoQuery::release_schema() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.schema) + + return schema_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PrestoQuery::set_allocated_schema(::std::string* schema) { + if (schema != nullptr) { + + } else { + + } + schema_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.schema) +} + +// string statement = 4; +inline void PrestoQuery::clear_statement() { + statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PrestoQuery::statement() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.statement) + return statement_.GetNoArena(); +} +inline void PrestoQuery::set_statement(const ::std::string& value) { + + statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.statement) +} +#if LANG_CXX11 +inline void PrestoQuery::set_statement(::std::string&& value) { + + statement_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.statement) +} +#endif +inline void PrestoQuery::set_statement(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.statement) +} +inline void PrestoQuery::set_statement(const char* value, size_t size) { + + statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.statement) +} +inline ::std::string* PrestoQuery::mutable_statement() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.statement) + return statement_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PrestoQuery::release_statement() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.statement) + + return statement_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PrestoQuery::set_allocated_statement(::std::string* statement) { + if (statement != nullptr) { + + } else { + + } + statement_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), statement); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.statement) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpresto_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.cc new file mode 100644 index 0000000000..e626cd085f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/pytorch.proto + +#include "flyteidl/plugins/pytorch.pb.h" +#include "flyteidl/plugins/pytorch.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.h new file mode 100644 index 0000000000..8345dd3c68 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/pytorch.proto +#ifndef GRPC_flyteidl_2fplugins_2fpytorch_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fpytorch_2eproto__INCLUDED + +#include "flyteidl/plugins/pytorch.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fpytorch_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.cc new file mode 100644 index 0000000000..20bc826967 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.cc @@ -0,0 +1,956 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/pytorch.proto + +#include "flyteidl/plugins/pytorch.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fpytorch_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto; +namespace flyteidl { +namespace plugins { +class ElasticConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ElasticConfig_default_instance_; +class DistributedPyTorchTrainingTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedPyTorchTrainingTask_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_ElasticConfig_default_instance_; + new (ptr) ::flyteidl::plugins::ElasticConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::ElasticConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto}, {}}; + +static void InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_DistributedPyTorchTrainingTask_default_instance_; + new (ptr) ::flyteidl::plugins::DistributedPyTorchTrainingTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::DistributedPyTorchTrainingTask::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto}, { + &scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fpytorch_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto[2]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fpytorch_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fpytorch_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fpytorch_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, rdzv_backend_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, min_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, max_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, nproc_per_node_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, max_restarts_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedPyTorchTrainingTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedPyTorchTrainingTask, workers_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedPyTorchTrainingTask, elastic_config_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::ElasticConfig)}, + { 10, -1, sizeof(::flyteidl::plugins::DistributedPyTorchTrainingTask)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_ElasticConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_DistributedPyTorchTrainingTask_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto, "flyteidl/plugins/pytorch.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fpytorch_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fpytorch_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fpytorch_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fpytorch_2eproto[] = + "\n\036flyteidl/plugins/pytorch.proto\022\020flytei" + "dl.plugins\"\177\n\rElasticConfig\022\024\n\014rdzv_back" + "end\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014max_r" + "eplicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001(\005\022\024\n" + "\014max_restarts\030\005 \001(\005\"j\n\036DistributedPyTorc" + "hTrainingTask\022\017\n\007workers\030\001 \001(\005\0227\n\016elasti" + "c_config\030\002 \001(\0132\037.flyteidl.plugins.Elasti" + "cConfigB9Z7github.com/flyteorg/flyteidl/" + "gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fpytorch_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fpytorch_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fpytorch_2eproto, + "flyteidl/plugins/pytorch.proto", &assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto, 354, +}; + +void AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fpytorch_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fpytorch_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void ElasticConfig::InitAsDefaultInstance() { +} +class ElasticConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ElasticConfig::kRdzvBackendFieldNumber; +const int ElasticConfig::kMinReplicasFieldNumber; +const int ElasticConfig::kMaxReplicasFieldNumber; +const int ElasticConfig::kNprocPerNodeFieldNumber; +const int ElasticConfig::kMaxRestartsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ElasticConfig::ElasticConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.ElasticConfig) +} +ElasticConfig::ElasticConfig(const ElasticConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.rdzv_backend().size() > 0) { + rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); + } + ::memcpy(&min_replicas_, &from.min_replicas_, + static_cast(reinterpret_cast(&max_restarts_) - + reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.ElasticConfig) +} + +void ElasticConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base); + rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&min_replicas_, 0, static_cast( + reinterpret_cast(&max_restarts_) - + reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); +} + +ElasticConfig::~ElasticConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.ElasticConfig) + SharedDtor(); +} + +void ElasticConfig::SharedDtor() { + rdzv_backend_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ElasticConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ElasticConfig& ElasticConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base); + return *internal_default_instance(); +} + + +void ElasticConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.ElasticConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&min_replicas_, 0, static_cast( + reinterpret_cast(&max_restarts_) - + reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ElasticConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string rdzv_backend = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.ElasticConfig.rdzv_backend"); + object = msg->mutable_rdzv_backend(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int32 min_replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_min_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 max_replicas = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_max_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 nproc_per_node = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_nproc_per_node(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 max_restarts = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; + msg->set_max_restarts(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ElasticConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.ElasticConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string rdzv_backend = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_rdzv_backend())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.ElasticConfig.rdzv_backend")); + } else { + goto handle_unusual; + } + break; + } + + // int32 min_replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &min_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 max_replicas = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 nproc_per_node = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &nproc_per_node_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 max_restarts = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_restarts_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.ElasticConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.ElasticConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ElasticConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.ElasticConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string rdzv_backend = 1; + if (this->rdzv_backend().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.ElasticConfig.rdzv_backend"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->rdzv_backend(), output); + } + + // int32 min_replicas = 2; + if (this->min_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_replicas(), output); + } + + // int32 max_replicas = 3; + if (this->max_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_replicas(), output); + } + + // int32 nproc_per_node = 4; + if (this->nproc_per_node() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->nproc_per_node(), output); + } + + // int32 max_restarts = 5; + if (this->max_restarts() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->max_restarts(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.ElasticConfig) +} + +::google::protobuf::uint8* ElasticConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.ElasticConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string rdzv_backend = 1; + if (this->rdzv_backend().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.ElasticConfig.rdzv_backend"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->rdzv_backend(), target); + } + + // int32 min_replicas = 2; + if (this->min_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_replicas(), target); + } + + // int32 max_replicas = 3; + if (this->max_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->max_replicas(), target); + } + + // int32 nproc_per_node = 4; + if (this->nproc_per_node() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->nproc_per_node(), target); + } + + // int32 max_restarts = 5; + if (this->max_restarts() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->max_restarts(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.ElasticConfig) + return target; +} + +size_t ElasticConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.ElasticConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string rdzv_backend = 1; + if (this->rdzv_backend().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->rdzv_backend()); + } + + // int32 min_replicas = 2; + if (this->min_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->min_replicas()); + } + + // int32 max_replicas = 3; + if (this->max_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_replicas()); + } + + // int32 nproc_per_node = 4; + if (this->nproc_per_node() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->nproc_per_node()); + } + + // int32 max_restarts = 5; + if (this->max_restarts() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_restarts()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ElasticConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.ElasticConfig) + GOOGLE_DCHECK_NE(&from, this); + const ElasticConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.ElasticConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.ElasticConfig) + MergeFrom(*source); + } +} + +void ElasticConfig::MergeFrom(const ElasticConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.ElasticConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.rdzv_backend().size() > 0) { + + rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); + } + if (from.min_replicas() != 0) { + set_min_replicas(from.min_replicas()); + } + if (from.max_replicas() != 0) { + set_max_replicas(from.max_replicas()); + } + if (from.nproc_per_node() != 0) { + set_nproc_per_node(from.nproc_per_node()); + } + if (from.max_restarts() != 0) { + set_max_restarts(from.max_restarts()); + } +} + +void ElasticConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.ElasticConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ElasticConfig::CopyFrom(const ElasticConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.ElasticConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ElasticConfig::IsInitialized() const { + return true; +} + +void ElasticConfig::Swap(ElasticConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void ElasticConfig::InternalSwap(ElasticConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + rdzv_backend_.Swap(&other->rdzv_backend_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(min_replicas_, other->min_replicas_); + swap(max_replicas_, other->max_replicas_); + swap(nproc_per_node_, other->nproc_per_node_); + swap(max_restarts_, other->max_restarts_); +} + +::google::protobuf::Metadata ElasticConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DistributedPyTorchTrainingTask::InitAsDefaultInstance() { + ::flyteidl::plugins::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->elastic_config_ = const_cast< ::flyteidl::plugins::ElasticConfig*>( + ::flyteidl::plugins::ElasticConfig::internal_default_instance()); +} +class DistributedPyTorchTrainingTask::HasBitSetters { + public: + static const ::flyteidl::plugins::ElasticConfig& elastic_config(const DistributedPyTorchTrainingTask* msg); +}; + +const ::flyteidl::plugins::ElasticConfig& +DistributedPyTorchTrainingTask::HasBitSetters::elastic_config(const DistributedPyTorchTrainingTask* msg) { + return *msg->elastic_config_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedPyTorchTrainingTask::kWorkersFieldNumber; +const int DistributedPyTorchTrainingTask::kElasticConfigFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.DistributedPyTorchTrainingTask) +} +DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_elastic_config()) { + elastic_config_ = new ::flyteidl::plugins::ElasticConfig(*from.elastic_config_); + } else { + elastic_config_ = nullptr; + } + workers_ = from.workers_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DistributedPyTorchTrainingTask) +} + +void DistributedPyTorchTrainingTask::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto.base); + ::memset(&elastic_config_, 0, static_cast( + reinterpret_cast(&workers_) - + reinterpret_cast(&elastic_config_)) + sizeof(workers_)); +} + +DistributedPyTorchTrainingTask::~DistributedPyTorchTrainingTask() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.DistributedPyTorchTrainingTask) + SharedDtor(); +} + +void DistributedPyTorchTrainingTask::SharedDtor() { + if (this != internal_default_instance()) delete elastic_config_; +} + +void DistributedPyTorchTrainingTask::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedPyTorchTrainingTask& DistributedPyTorchTrainingTask::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedPyTorchTrainingTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { + delete elastic_config_; + } + elastic_config_ = nullptr; + workers_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedPyTorchTrainingTask::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 workers = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_workers(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.ElasticConfig elastic_config = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::ElasticConfig::_InternalParse; + object = msg->mutable_elastic_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedPyTorchTrainingTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 workers = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &workers_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.ElasticConfig elastic_config = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_elastic_config())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.DistributedPyTorchTrainingTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DistributedPyTorchTrainingTask) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedPyTorchTrainingTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 workers = 1; + if (this->workers() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->workers(), output); + } + + // .flyteidl.plugins.ElasticConfig elastic_config = 2; + if (this->has_elastic_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::elastic_config(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DistributedPyTorchTrainingTask) +} + +::google::protobuf::uint8* DistributedPyTorchTrainingTask::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 workers = 1; + if (this->workers() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->workers(), target); + } + + // .flyteidl.plugins.ElasticConfig elastic_config = 2; + if (this->has_elastic_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::elastic_config(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.DistributedPyTorchTrainingTask) + return target; +} + +size_t DistributedPyTorchTrainingTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.ElasticConfig elastic_config = 2; + if (this->has_elastic_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *elastic_config_); + } + + // int32 workers = 1; + if (this->workers() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->workers()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedPyTorchTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + const DistributedPyTorchTrainingTask* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DistributedPyTorchTrainingTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DistributedPyTorchTrainingTask) + MergeFrom(*source); + } +} + +void DistributedPyTorchTrainingTask::MergeFrom(const DistributedPyTorchTrainingTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_elastic_config()) { + mutable_elastic_config()->::flyteidl::plugins::ElasticConfig::MergeFrom(from.elastic_config()); + } + if (from.workers() != 0) { + set_workers(from.workers()); + } +} + +void DistributedPyTorchTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedPyTorchTrainingTask::CopyFrom(const DistributedPyTorchTrainingTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedPyTorchTrainingTask::IsInitialized() const { + return true; +} + +void DistributedPyTorchTrainingTask::Swap(DistributedPyTorchTrainingTask* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedPyTorchTrainingTask::InternalSwap(DistributedPyTorchTrainingTask* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(elastic_config_, other->elastic_config_); + swap(workers_, other->workers_); +} + +::google::protobuf::Metadata DistributedPyTorchTrainingTask::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::ElasticConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::ElasticConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::ElasticConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::DistributedPyTorchTrainingTask >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::DistributedPyTorchTrainingTask >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.h new file mode 100644 index 0000000000..b0d9b4a276 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.h @@ -0,0 +1,543 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/pytorch.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpytorch_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpytorch_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fpytorch_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fpytorch_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[2] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto(); +namespace flyteidl { +namespace plugins { +class DistributedPyTorchTrainingTask; +class DistributedPyTorchTrainingTaskDefaultTypeInternal; +extern DistributedPyTorchTrainingTaskDefaultTypeInternal _DistributedPyTorchTrainingTask_default_instance_; +class ElasticConfig; +class ElasticConfigDefaultTypeInternal; +extern ElasticConfigDefaultTypeInternal _ElasticConfig_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::DistributedPyTorchTrainingTask>(Arena*); +template<> ::flyteidl::plugins::ElasticConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::ElasticConfig>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class ElasticConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.ElasticConfig) */ { + public: + ElasticConfig(); + virtual ~ElasticConfig(); + + ElasticConfig(const ElasticConfig& from); + + inline ElasticConfig& operator=(const ElasticConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ElasticConfig(ElasticConfig&& from) noexcept + : ElasticConfig() { + *this = ::std::move(from); + } + + inline ElasticConfig& operator=(ElasticConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ElasticConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ElasticConfig* internal_default_instance() { + return reinterpret_cast( + &_ElasticConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(ElasticConfig* other); + friend void swap(ElasticConfig& a, ElasticConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ElasticConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + ElasticConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ElasticConfig& from); + void MergeFrom(const ElasticConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ElasticConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string rdzv_backend = 1; + void clear_rdzv_backend(); + static const int kRdzvBackendFieldNumber = 1; + const ::std::string& rdzv_backend() const; + void set_rdzv_backend(const ::std::string& value); + #if LANG_CXX11 + void set_rdzv_backend(::std::string&& value); + #endif + void set_rdzv_backend(const char* value); + void set_rdzv_backend(const char* value, size_t size); + ::std::string* mutable_rdzv_backend(); + ::std::string* release_rdzv_backend(); + void set_allocated_rdzv_backend(::std::string* rdzv_backend); + + // int32 min_replicas = 2; + void clear_min_replicas(); + static const int kMinReplicasFieldNumber = 2; + ::google::protobuf::int32 min_replicas() const; + void set_min_replicas(::google::protobuf::int32 value); + + // int32 max_replicas = 3; + void clear_max_replicas(); + static const int kMaxReplicasFieldNumber = 3; + ::google::protobuf::int32 max_replicas() const; + void set_max_replicas(::google::protobuf::int32 value); + + // int32 nproc_per_node = 4; + void clear_nproc_per_node(); + static const int kNprocPerNodeFieldNumber = 4; + ::google::protobuf::int32 nproc_per_node() const; + void set_nproc_per_node(::google::protobuf::int32 value); + + // int32 max_restarts = 5; + void clear_max_restarts(); + static const int kMaxRestartsFieldNumber = 5; + ::google::protobuf::int32 max_restarts() const; + void set_max_restarts(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ElasticConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr rdzv_backend_; + ::google::protobuf::int32 min_replicas_; + ::google::protobuf::int32 max_replicas_; + ::google::protobuf::int32 nproc_per_node_; + ::google::protobuf::int32 max_restarts_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fpytorch_2eproto; +}; +// ------------------------------------------------------------------- + +class DistributedPyTorchTrainingTask final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DistributedPyTorchTrainingTask) */ { + public: + DistributedPyTorchTrainingTask(); + virtual ~DistributedPyTorchTrainingTask(); + + DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from); + + inline DistributedPyTorchTrainingTask& operator=(const DistributedPyTorchTrainingTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedPyTorchTrainingTask(DistributedPyTorchTrainingTask&& from) noexcept + : DistributedPyTorchTrainingTask() { + *this = ::std::move(from); + } + + inline DistributedPyTorchTrainingTask& operator=(DistributedPyTorchTrainingTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedPyTorchTrainingTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedPyTorchTrainingTask* internal_default_instance() { + return reinterpret_cast( + &_DistributedPyTorchTrainingTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(DistributedPyTorchTrainingTask* other); + friend void swap(DistributedPyTorchTrainingTask& a, DistributedPyTorchTrainingTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedPyTorchTrainingTask* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedPyTorchTrainingTask* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedPyTorchTrainingTask& from); + void MergeFrom(const DistributedPyTorchTrainingTask& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedPyTorchTrainingTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.ElasticConfig elastic_config = 2; + bool has_elastic_config() const; + void clear_elastic_config(); + static const int kElasticConfigFieldNumber = 2; + const ::flyteidl::plugins::ElasticConfig& elastic_config() const; + ::flyteidl::plugins::ElasticConfig* release_elastic_config(); + ::flyteidl::plugins::ElasticConfig* mutable_elastic_config(); + void set_allocated_elastic_config(::flyteidl::plugins::ElasticConfig* elastic_config); + + // int32 workers = 1; + void clear_workers(); + static const int kWorkersFieldNumber = 1; + ::google::protobuf::int32 workers() const; + void set_workers(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::ElasticConfig* elastic_config_; + ::google::protobuf::int32 workers_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fpytorch_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ElasticConfig + +// string rdzv_backend = 1; +inline void ElasticConfig::clear_rdzv_backend() { + rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ElasticConfig::rdzv_backend() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.rdzv_backend) + return rdzv_backend_.GetNoArena(); +} +inline void ElasticConfig::set_rdzv_backend(const ::std::string& value) { + + rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.rdzv_backend) +} +#if LANG_CXX11 +inline void ElasticConfig::set_rdzv_backend(::std::string&& value) { + + rdzv_backend_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.ElasticConfig.rdzv_backend) +} +#endif +inline void ElasticConfig::set_rdzv_backend(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.ElasticConfig.rdzv_backend) +} +inline void ElasticConfig::set_rdzv_backend(const char* value, size_t size) { + + rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.ElasticConfig.rdzv_backend) +} +inline ::std::string* ElasticConfig::mutable_rdzv_backend() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.ElasticConfig.rdzv_backend) + return rdzv_backend_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ElasticConfig::release_rdzv_backend() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.ElasticConfig.rdzv_backend) + + return rdzv_backend_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ElasticConfig::set_allocated_rdzv_backend(::std::string* rdzv_backend) { + if (rdzv_backend != nullptr) { + + } else { + + } + rdzv_backend_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rdzv_backend); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.ElasticConfig.rdzv_backend) +} + +// int32 min_replicas = 2; +inline void ElasticConfig::clear_min_replicas() { + min_replicas_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::min_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.min_replicas) + return min_replicas_; +} +inline void ElasticConfig::set_min_replicas(::google::protobuf::int32 value) { + + min_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.min_replicas) +} + +// int32 max_replicas = 3; +inline void ElasticConfig::clear_max_replicas() { + max_replicas_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::max_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.max_replicas) + return max_replicas_; +} +inline void ElasticConfig::set_max_replicas(::google::protobuf::int32 value) { + + max_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.max_replicas) +} + +// int32 nproc_per_node = 4; +inline void ElasticConfig::clear_nproc_per_node() { + nproc_per_node_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::nproc_per_node() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.nproc_per_node) + return nproc_per_node_; +} +inline void ElasticConfig::set_nproc_per_node(::google::protobuf::int32 value) { + + nproc_per_node_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.nproc_per_node) +} + +// int32 max_restarts = 5; +inline void ElasticConfig::clear_max_restarts() { + max_restarts_ = 0; +} +inline ::google::protobuf::int32 ElasticConfig::max_restarts() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.max_restarts) + return max_restarts_; +} +inline void ElasticConfig::set_max_restarts(::google::protobuf::int32 value) { + + max_restarts_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.max_restarts) +} + +// ------------------------------------------------------------------- + +// DistributedPyTorchTrainingTask + +// int32 workers = 1; +inline void DistributedPyTorchTrainingTask::clear_workers() { + workers_ = 0; +} +inline ::google::protobuf::int32 DistributedPyTorchTrainingTask::workers() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedPyTorchTrainingTask.workers) + return workers_; +} +inline void DistributedPyTorchTrainingTask::set_workers(::google::protobuf::int32 value) { + + workers_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedPyTorchTrainingTask.workers) +} + +// .flyteidl.plugins.ElasticConfig elastic_config = 2; +inline bool DistributedPyTorchTrainingTask::has_elastic_config() const { + return this != internal_default_instance() && elastic_config_ != nullptr; +} +inline void DistributedPyTorchTrainingTask::clear_elastic_config() { + if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { + delete elastic_config_; + } + elastic_config_ = nullptr; +} +inline const ::flyteidl::plugins::ElasticConfig& DistributedPyTorchTrainingTask::elastic_config() const { + const ::flyteidl::plugins::ElasticConfig* p = elastic_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::_ElasticConfig_default_instance_); +} +inline ::flyteidl::plugins::ElasticConfig* DistributedPyTorchTrainingTask::release_elastic_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) + + ::flyteidl::plugins::ElasticConfig* temp = elastic_config_; + elastic_config_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::ElasticConfig* DistributedPyTorchTrainingTask::mutable_elastic_config() { + + if (elastic_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::ElasticConfig>(GetArenaNoVirtual()); + elastic_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) + return elastic_config_; +} +inline void DistributedPyTorchTrainingTask::set_allocated_elastic_config(::flyteidl::plugins::ElasticConfig* elastic_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete elastic_config_; + } + if (elastic_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + elastic_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, elastic_config, submessage_arena); + } + + } else { + + } + elastic_config_ = elastic_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpytorch_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc new file mode 100644 index 0000000000..a384ee84a8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/qubole.proto + +#include "flyteidl/plugins/qubole.pb.h" +#include "flyteidl/plugins/qubole.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h new file mode 100644 index 0000000000..57da539c9e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/qubole.proto +#ifndef GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED + +#include "flyteidl/plugins/qubole.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc new file mode 100644 index 0000000000..b22e10aca7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc @@ -0,0 +1,1354 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +#include "flyteidl/plugins/qubole.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fqubole_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fqubole_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto; +namespace flyteidl { +namespace plugins { +class HiveQueryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HiveQuery_default_instance_; +class HiveQueryCollectionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HiveQueryCollection_default_instance_; +class QuboleHiveJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _QuboleHiveJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsHiveQuery_flyteidl_2fplugins_2fqubole_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_HiveQuery_default_instance_; + new (ptr) ::flyteidl::plugins::HiveQuery(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::HiveQuery::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHiveQuery_flyteidl_2fplugins_2fqubole_2eproto}, {}}; + +static void InitDefaultsHiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_HiveQueryCollection_default_instance_; + new (ptr) ::flyteidl::plugins::HiveQueryCollection(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::HiveQueryCollection::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto}, { + &scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base,}}; + +static void InitDefaultsQuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_QuboleHiveJob_default_instance_; + new (ptr) ::flyteidl::plugins::QuboleHiveJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::QuboleHiveJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsQuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto}, { + &scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base, + &scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fqubole_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[3]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fqubole_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fqubole_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fqubole_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, query_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, timeout_sec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, retrycount_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQueryCollection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQueryCollection, queries_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, cluster_label_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, query_collection_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, tags_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, query_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::HiveQuery)}, + { 8, -1, sizeof(::flyteidl::plugins::HiveQueryCollection)}, + { 14, -1, sizeof(::flyteidl::plugins::QuboleHiveJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_HiveQuery_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_HiveQueryCollection_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_QuboleHiveJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto, "flyteidl/plugins/qubole.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fqubole_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fqubole_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fqubole_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fqubole_2eproto[] = + "\n\035flyteidl/plugins/qubole.proto\022\020flyteid" + "l.plugins\"C\n\tHiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n" + "\013timeout_sec\030\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C" + "\n\023HiveQueryCollection\022,\n\007queries\030\002 \003(\0132\033" + ".flyteidl.plugins.HiveQuery\"\245\001\n\rQuboleHi" + "veJob\022\025\n\rcluster_label\030\001 \001(\t\022C\n\020query_co" + "llection\030\002 \001(\0132%.flyteidl.plugins.HiveQu" + "eryCollectionB\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query" + "\030\004 \001(\0132\033.flyteidl.plugins.HiveQueryB9Z7g" + "ithub.com/flyteorg/flyteidl/gen/pb-go/fl" + "yteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fqubole_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fqubole_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fqubole_2eproto, + "flyteidl/plugins/qubole.proto", &assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto, 422, +}; + +void AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fqubole_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fqubole_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void HiveQuery::InitAsDefaultInstance() { +} +class HiveQuery::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HiveQuery::kQueryFieldNumber; +const int HiveQuery::kTimeoutSecFieldNumber; +const int HiveQuery::kRetryCountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HiveQuery::HiveQuery() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.HiveQuery) +} +HiveQuery::HiveQuery(const HiveQuery& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); + } + ::memcpy(&timeout_sec_, &from.timeout_sec_, + static_cast(reinterpret_cast(&retrycount_) - + reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HiveQuery) +} + +void HiveQuery::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&timeout_sec_, 0, static_cast( + reinterpret_cast(&retrycount_) - + reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); +} + +HiveQuery::~HiveQuery() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.HiveQuery) + SharedDtor(); +} + +void HiveQuery::SharedDtor() { + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HiveQuery::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HiveQuery& HiveQuery::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base); + return *internal_default_instance(); +} + + +void HiveQuery::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HiveQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&timeout_sec_, 0, static_cast( + reinterpret_cast(&retrycount_) - + reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HiveQuery::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string query = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.HiveQuery.query"); + object = msg->mutable_query(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // uint32 timeout_sec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_timeout_sec(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // uint32 retryCount = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_retrycount(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HiveQuery::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.HiveQuery) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string query = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), static_cast(this->query().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.HiveQuery.query")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 timeout_sec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &timeout_sec_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 retryCount = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retrycount_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.HiveQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HiveQuery) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HiveQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HiveQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), static_cast(this->query().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HiveQuery.query"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); + } + + // uint32 timeout_sec = 2; + if (this->timeout_sec() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->timeout_sec(), output); + } + + // uint32 retryCount = 3; + if (this->retrycount() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retrycount(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HiveQuery) +} + +::google::protobuf::uint8* HiveQuery::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HiveQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), static_cast(this->query().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HiveQuery.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); + } + + // uint32 timeout_sec = 2; + if (this->timeout_sec() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->timeout_sec(), target); + } + + // uint32 retryCount = 3; + if (this->retrycount() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retrycount(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.HiveQuery) + return target; +} + +size_t HiveQuery::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HiveQuery) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string query = 1; + if (this->query().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); + } + + // uint32 timeout_sec = 2; + if (this->timeout_sec() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timeout_sec()); + } + + // uint32 retryCount = 3; + if (this->retrycount() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retrycount()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HiveQuery::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HiveQuery) + GOOGLE_DCHECK_NE(&from, this); + const HiveQuery* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HiveQuery) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HiveQuery) + MergeFrom(*source); + } +} + +void HiveQuery::MergeFrom(const HiveQuery& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HiveQuery) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.query().size() > 0) { + + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); + } + if (from.timeout_sec() != 0) { + set_timeout_sec(from.timeout_sec()); + } + if (from.retrycount() != 0) { + set_retrycount(from.retrycount()); + } +} + +void HiveQuery::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HiveQuery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HiveQuery::CopyFrom(const HiveQuery& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HiveQuery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HiveQuery::IsInitialized() const { + return true; +} + +void HiveQuery::Swap(HiveQuery* other) { + if (other == this) return; + InternalSwap(other); +} +void HiveQuery::InternalSwap(HiveQuery* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + query_.Swap(&other->query_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(timeout_sec_, other->timeout_sec_); + swap(retrycount_, other->retrycount_); +} + +::google::protobuf::Metadata HiveQuery::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HiveQueryCollection::InitAsDefaultInstance() { +} +class HiveQueryCollection::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HiveQueryCollection::kQueriesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HiveQueryCollection::HiveQueryCollection() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.HiveQueryCollection) +} +HiveQueryCollection::HiveQueryCollection(const HiveQueryCollection& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + queries_(from.queries_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HiveQueryCollection) +} + +void HiveQueryCollection::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base); +} + +HiveQueryCollection::~HiveQueryCollection() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.HiveQueryCollection) + SharedDtor(); +} + +void HiveQueryCollection::SharedDtor() { +} + +void HiveQueryCollection::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HiveQueryCollection& HiveQueryCollection::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base); + return *internal_default_instance(); +} + + +void HiveQueryCollection::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + queries_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HiveQueryCollection::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated .flyteidl.plugins.HiveQuery queries = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::HiveQuery::_InternalParse; + object = msg->add_queries(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HiveQueryCollection::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.HiveQueryCollection) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .flyteidl.plugins.HiveQuery queries = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_queries())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.HiveQueryCollection) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HiveQueryCollection) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HiveQueryCollection::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.plugins.HiveQuery queries = 2; + for (unsigned int i = 0, + n = static_cast(this->queries_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->queries(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HiveQueryCollection) +} + +::google::protobuf::uint8* HiveQueryCollection::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.plugins.HiveQuery queries = 2; + for (unsigned int i = 0, + n = static_cast(this->queries_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->queries(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.HiveQueryCollection) + return target; +} + +size_t HiveQueryCollection::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HiveQueryCollection) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.plugins.HiveQuery queries = 2; + { + unsigned int count = static_cast(this->queries_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->queries(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HiveQueryCollection::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HiveQueryCollection) + GOOGLE_DCHECK_NE(&from, this); + const HiveQueryCollection* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HiveQueryCollection) + MergeFrom(*source); + } +} + +void HiveQueryCollection::MergeFrom(const HiveQueryCollection& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HiveQueryCollection) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + queries_.MergeFrom(from.queries_); +} + +void HiveQueryCollection::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HiveQueryCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HiveQueryCollection::CopyFrom(const HiveQueryCollection& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HiveQueryCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HiveQueryCollection::IsInitialized() const { + return true; +} + +void HiveQueryCollection::Swap(HiveQueryCollection* other) { + if (other == this) return; + InternalSwap(other); +} +void HiveQueryCollection::InternalSwap(HiveQueryCollection* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&queries_)->InternalSwap(CastToBase(&other->queries_)); +} + +::google::protobuf::Metadata HiveQueryCollection::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void QuboleHiveJob::InitAsDefaultInstance() { + ::flyteidl::plugins::_QuboleHiveJob_default_instance_._instance.get_mutable()->query_collection_ = const_cast< ::flyteidl::plugins::HiveQueryCollection*>( + ::flyteidl::plugins::HiveQueryCollection::internal_default_instance()); + ::flyteidl::plugins::_QuboleHiveJob_default_instance_._instance.get_mutable()->query_ = const_cast< ::flyteidl::plugins::HiveQuery*>( + ::flyteidl::plugins::HiveQuery::internal_default_instance()); +} +class QuboleHiveJob::HasBitSetters { + public: + static const ::flyteidl::plugins::HiveQueryCollection& query_collection(const QuboleHiveJob* msg); + static const ::flyteidl::plugins::HiveQuery& query(const QuboleHiveJob* msg); +}; + +const ::flyteidl::plugins::HiveQueryCollection& +QuboleHiveJob::HasBitSetters::query_collection(const QuboleHiveJob* msg) { + return *msg->query_collection_; +} +const ::flyteidl::plugins::HiveQuery& +QuboleHiveJob::HasBitSetters::query(const QuboleHiveJob* msg) { + return *msg->query_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int QuboleHiveJob::kClusterLabelFieldNumber; +const int QuboleHiveJob::kQueryCollectionFieldNumber; +const int QuboleHiveJob::kTagsFieldNumber; +const int QuboleHiveJob::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +QuboleHiveJob::QuboleHiveJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.QuboleHiveJob) +} +QuboleHiveJob::QuboleHiveJob(const QuboleHiveJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + tags_(from.tags_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cluster_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cluster_label().size() > 0) { + cluster_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_label_); + } + if (from.has_query_collection()) { + query_collection_ = new ::flyteidl::plugins::HiveQueryCollection(*from.query_collection_); + } else { + query_collection_ = nullptr; + } + if (from.has_query()) { + query_ = new ::flyteidl::plugins::HiveQuery(*from.query_); + } else { + query_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.QuboleHiveJob) +} + +void QuboleHiveJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto.base); + cluster_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&query_collection_, 0, static_cast( + reinterpret_cast(&query_) - + reinterpret_cast(&query_collection_)) + sizeof(query_)); +} + +QuboleHiveJob::~QuboleHiveJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.QuboleHiveJob) + SharedDtor(); +} + +void QuboleHiveJob::SharedDtor() { + cluster_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete query_collection_; + if (this != internal_default_instance()) delete query_; +} + +void QuboleHiveJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const QuboleHiveJob& QuboleHiveJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto.base); + return *internal_default_instance(); +} + + +void QuboleHiveJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + cluster_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && query_collection_ != nullptr) { + delete query_collection_; + } + query_collection_ = nullptr; + if (GetArenaNoVirtual() == nullptr && query_ != nullptr) { + delete query_; + } + query_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* QuboleHiveJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string cluster_label = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.QuboleHiveJob.cluster_label"); + object = msg->mutable_cluster_label(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::HiveQueryCollection::_InternalParse; + object = msg->mutable_query_collection(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated string tags = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.QuboleHiveJob.tags"); + object = msg->add_tags(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // .flyteidl.plugins.HiveQuery query = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::HiveQuery::_InternalParse; + object = msg->mutable_query(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool QuboleHiveJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.QuboleHiveJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string cluster_label = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cluster_label())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_label().data(), static_cast(this->cluster_label().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.QuboleHiveJob.cluster_label")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_query_collection())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string tags = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_tags())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(this->tags_size() - 1).data(), + static_cast(this->tags(this->tags_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.QuboleHiveJob.tags")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.HiveQuery query = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_query())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.QuboleHiveJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.QuboleHiveJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void QuboleHiveJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster_label = 1; + if (this->cluster_label().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_label().data(), static_cast(this->cluster_label().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.cluster_label"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cluster_label(), output); + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + if (this->has_query_collection()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::query_collection(this), output); + } + + // repeated string tags = 3; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.tags"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->tags(i), output); + } + + // .flyteidl.plugins.HiveQuery query = 4; + if (this->has_query()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::query(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.QuboleHiveJob) +} + +::google::protobuf::uint8* QuboleHiveJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster_label = 1; + if (this->cluster_label().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_label().data(), static_cast(this->cluster_label().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.cluster_label"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cluster_label(), target); + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + if (this->has_query_collection()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::query_collection(this), target); + } + + // repeated string tags = 3; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.tags"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->tags(i), target); + } + + // .flyteidl.plugins.HiveQuery query = 4; + if (this->has_query()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::query(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.QuboleHiveJob) + return target; +} + +size_t QuboleHiveJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.QuboleHiveJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string tags = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + for (int i = 0, n = this->tags_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->tags(i)); + } + + // string cluster_label = 1; + if (this->cluster_label().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cluster_label()); + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + if (this->has_query_collection()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *query_collection_); + } + + // .flyteidl.plugins.HiveQuery query = 4; + if (this->has_query()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *query_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void QuboleHiveJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.QuboleHiveJob) + GOOGLE_DCHECK_NE(&from, this); + const QuboleHiveJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.QuboleHiveJob) + MergeFrom(*source); + } +} + +void QuboleHiveJob::MergeFrom(const QuboleHiveJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.QuboleHiveJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.cluster_label().size() > 0) { + + cluster_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_label_); + } + if (from.has_query_collection()) { + mutable_query_collection()->::flyteidl::plugins::HiveQueryCollection::MergeFrom(from.query_collection()); + } + if (from.has_query()) { + mutable_query()->::flyteidl::plugins::HiveQuery::MergeFrom(from.query()); + } +} + +void QuboleHiveJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.QuboleHiveJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QuboleHiveJob::CopyFrom(const QuboleHiveJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.QuboleHiveJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QuboleHiveJob::IsInitialized() const { + return true; +} + +void QuboleHiveJob::Swap(QuboleHiveJob* other) { + if (other == this) return; + InternalSwap(other); +} +void QuboleHiveJob::InternalSwap(QuboleHiveJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + tags_.InternalSwap(CastToBase(&other->tags_)); + cluster_label_.Swap(&other->cluster_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(query_collection_, other->query_collection_); + swap(query_, other->query_); +} + +::google::protobuf::Metadata QuboleHiveJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HiveQuery* Arena::CreateMaybeMessage< ::flyteidl::plugins::HiveQuery >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::HiveQuery >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HiveQueryCollection* Arena::CreateMaybeMessage< ::flyteidl::plugins::HiveQueryCollection >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::HiveQueryCollection >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::QuboleHiveJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::QuboleHiveJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::QuboleHiveJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h new file mode 100644 index 0000000000..346fc14645 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fqubole_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fqubole_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fqubole_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fqubole_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[3] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto(); +namespace flyteidl { +namespace plugins { +class HiveQuery; +class HiveQueryDefaultTypeInternal; +extern HiveQueryDefaultTypeInternal _HiveQuery_default_instance_; +class HiveQueryCollection; +class HiveQueryCollectionDefaultTypeInternal; +extern HiveQueryCollectionDefaultTypeInternal _HiveQueryCollection_default_instance_; +class QuboleHiveJob; +class QuboleHiveJobDefaultTypeInternal; +extern QuboleHiveJobDefaultTypeInternal _QuboleHiveJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::HiveQuery* Arena::CreateMaybeMessage<::flyteidl::plugins::HiveQuery>(Arena*); +template<> ::flyteidl::plugins::HiveQueryCollection* Arena::CreateMaybeMessage<::flyteidl::plugins::HiveQueryCollection>(Arena*); +template<> ::flyteidl::plugins::QuboleHiveJob* Arena::CreateMaybeMessage<::flyteidl::plugins::QuboleHiveJob>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class HiveQuery final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HiveQuery) */ { + public: + HiveQuery(); + virtual ~HiveQuery(); + + HiveQuery(const HiveQuery& from); + + inline HiveQuery& operator=(const HiveQuery& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HiveQuery(HiveQuery&& from) noexcept + : HiveQuery() { + *this = ::std::move(from); + } + + inline HiveQuery& operator=(HiveQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HiveQuery& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HiveQuery* internal_default_instance() { + return reinterpret_cast( + &_HiveQuery_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(HiveQuery* other); + friend void swap(HiveQuery& a, HiveQuery& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HiveQuery* New() const final { + return CreateMaybeMessage(nullptr); + } + + HiveQuery* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HiveQuery& from); + void MergeFrom(const HiveQuery& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HiveQuery* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string query = 1; + void clear_query(); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif + void set_query(const char* value); + void set_query(const char* value, size_t size); + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); + + // uint32 timeout_sec = 2; + void clear_timeout_sec(); + static const int kTimeoutSecFieldNumber = 2; + ::google::protobuf::uint32 timeout_sec() const; + void set_timeout_sec(::google::protobuf::uint32 value); + + // uint32 retryCount = 3; + void clear_retrycount(); + static const int kRetryCountFieldNumber = 3; + ::google::protobuf::uint32 retrycount() const; + void set_retrycount(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + ::google::protobuf::uint32 timeout_sec_; + ::google::protobuf::uint32 retrycount_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fqubole_2eproto; +}; +// ------------------------------------------------------------------- + +class HiveQueryCollection final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HiveQueryCollection) */ { + public: + HiveQueryCollection(); + virtual ~HiveQueryCollection(); + + HiveQueryCollection(const HiveQueryCollection& from); + + inline HiveQueryCollection& operator=(const HiveQueryCollection& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HiveQueryCollection(HiveQueryCollection&& from) noexcept + : HiveQueryCollection() { + *this = ::std::move(from); + } + + inline HiveQueryCollection& operator=(HiveQueryCollection&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HiveQueryCollection& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HiveQueryCollection* internal_default_instance() { + return reinterpret_cast( + &_HiveQueryCollection_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(HiveQueryCollection* other); + friend void swap(HiveQueryCollection& a, HiveQueryCollection& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HiveQueryCollection* New() const final { + return CreateMaybeMessage(nullptr); + } + + HiveQueryCollection* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HiveQueryCollection& from); + void MergeFrom(const HiveQueryCollection& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HiveQueryCollection* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.plugins.HiveQuery queries = 2; + int queries_size() const; + void clear_queries(); + static const int kQueriesFieldNumber = 2; + ::flyteidl::plugins::HiveQuery* mutable_queries(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >* + mutable_queries(); + const ::flyteidl::plugins::HiveQuery& queries(int index) const; + ::flyteidl::plugins::HiveQuery* add_queries(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >& + queries() const; + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery > queries_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fqubole_2eproto; +}; +// ------------------------------------------------------------------- + +class QuboleHiveJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.QuboleHiveJob) */ { + public: + QuboleHiveJob(); + virtual ~QuboleHiveJob(); + + QuboleHiveJob(const QuboleHiveJob& from); + + inline QuboleHiveJob& operator=(const QuboleHiveJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + QuboleHiveJob(QuboleHiveJob&& from) noexcept + : QuboleHiveJob() { + *this = ::std::move(from); + } + + inline QuboleHiveJob& operator=(QuboleHiveJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const QuboleHiveJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const QuboleHiveJob* internal_default_instance() { + return reinterpret_cast( + &_QuboleHiveJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(QuboleHiveJob* other); + friend void swap(QuboleHiveJob& a, QuboleHiveJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline QuboleHiveJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + QuboleHiveJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const QuboleHiveJob& from); + void MergeFrom(const QuboleHiveJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(QuboleHiveJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string tags = 3; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 3; + const ::std::string& tags(int index) const; + ::std::string* mutable_tags(int index); + void set_tags(int index, const ::std::string& value); + #if LANG_CXX11 + void set_tags(int index, ::std::string&& value); + #endif + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + ::std::string* add_tags(); + void add_tags(const ::std::string& value); + #if LANG_CXX11 + void add_tags(::std::string&& value); + #endif + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); + + // string cluster_label = 1; + void clear_cluster_label(); + static const int kClusterLabelFieldNumber = 1; + const ::std::string& cluster_label() const; + void set_cluster_label(const ::std::string& value); + #if LANG_CXX11 + void set_cluster_label(::std::string&& value); + #endif + void set_cluster_label(const char* value); + void set_cluster_label(const char* value, size_t size); + ::std::string* mutable_cluster_label(); + ::std::string* release_cluster_label(); + void set_allocated_cluster_label(::std::string* cluster_label); + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_query_collection() const; + PROTOBUF_DEPRECATED void clear_query_collection(); + PROTOBUF_DEPRECATED static const int kQueryCollectionFieldNumber = 2; + PROTOBUF_DEPRECATED const ::flyteidl::plugins::HiveQueryCollection& query_collection() const; + PROTOBUF_DEPRECATED ::flyteidl::plugins::HiveQueryCollection* release_query_collection(); + PROTOBUF_DEPRECATED ::flyteidl::plugins::HiveQueryCollection* mutable_query_collection(); + PROTOBUF_DEPRECATED void set_allocated_query_collection(::flyteidl::plugins::HiveQueryCollection* query_collection); + + // .flyteidl.plugins.HiveQuery query = 4; + bool has_query() const; + void clear_query(); + static const int kQueryFieldNumber = 4; + const ::flyteidl::plugins::HiveQuery& query() const; + ::flyteidl::plugins::HiveQuery* release_query(); + ::flyteidl::plugins::HiveQuery* mutable_query(); + void set_allocated_query(::flyteidl::plugins::HiveQuery* query); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> tags_; + ::google::protobuf::internal::ArenaStringPtr cluster_label_; + ::flyteidl::plugins::HiveQueryCollection* query_collection_; + ::flyteidl::plugins::HiveQuery* query_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fqubole_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HiveQuery + +// string query = 1; +inline void HiveQuery::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HiveQuery::query() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.query) + return query_.GetNoArena(); +} +inline void HiveQuery::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.query) +} +#if LANG_CXX11 +inline void HiveQuery::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.HiveQuery.query) +} +#endif +inline void HiveQuery::set_query(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.HiveQuery.query) +} +inline void HiveQuery::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.HiveQuery.query) +} +inline ::std::string* HiveQuery::mutable_query() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.HiveQuery.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HiveQuery::release_query() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.HiveQuery.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HiveQuery::set_allocated_query(::std::string* query) { + if (query != nullptr) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.HiveQuery.query) +} + +// uint32 timeout_sec = 2; +inline void HiveQuery::clear_timeout_sec() { + timeout_sec_ = 0u; +} +inline ::google::protobuf::uint32 HiveQuery::timeout_sec() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.timeout_sec) + return timeout_sec_; +} +inline void HiveQuery::set_timeout_sec(::google::protobuf::uint32 value) { + + timeout_sec_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.timeout_sec) +} + +// uint32 retryCount = 3; +inline void HiveQuery::clear_retrycount() { + retrycount_ = 0u; +} +inline ::google::protobuf::uint32 HiveQuery::retrycount() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.retryCount) + return retrycount_; +} +inline void HiveQuery::set_retrycount(::google::protobuf::uint32 value) { + + retrycount_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.retryCount) +} + +// ------------------------------------------------------------------- + +// HiveQueryCollection + +// repeated .flyteidl.plugins.HiveQuery queries = 2; +inline int HiveQueryCollection::queries_size() const { + return queries_.size(); +} +inline void HiveQueryCollection::clear_queries() { + queries_.Clear(); +} +inline ::flyteidl::plugins::HiveQuery* HiveQueryCollection::mutable_queries(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.HiveQueryCollection.queries) + return queries_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >* +HiveQueryCollection::mutable_queries() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.HiveQueryCollection.queries) + return &queries_; +} +inline const ::flyteidl::plugins::HiveQuery& HiveQueryCollection::queries(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQueryCollection.queries) + return queries_.Get(index); +} +inline ::flyteidl::plugins::HiveQuery* HiveQueryCollection::add_queries() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.HiveQueryCollection.queries) + return queries_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >& +HiveQueryCollection::queries() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.HiveQueryCollection.queries) + return queries_; +} + +// ------------------------------------------------------------------- + +// QuboleHiveJob + +// string cluster_label = 1; +inline void QuboleHiveJob::clear_cluster_label() { + cluster_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& QuboleHiveJob::cluster_label() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.cluster_label) + return cluster_label_.GetNoArena(); +} +inline void QuboleHiveJob::set_cluster_label(const ::std::string& value) { + + cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +#if LANG_CXX11 +inline void QuboleHiveJob::set_cluster_label(::std::string&& value) { + + cluster_label_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +#endif +inline void QuboleHiveJob::set_cluster_label(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +inline void QuboleHiveJob::set_cluster_label(const char* value, size_t size) { + + cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +inline ::std::string* QuboleHiveJob::mutable_cluster_label() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.cluster_label) + return cluster_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* QuboleHiveJob::release_cluster_label() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.cluster_label) + + return cluster_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void QuboleHiveJob::set_allocated_cluster_label(::std::string* cluster_label) { + if (cluster_label != nullptr) { + + } else { + + } + cluster_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster_label); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.cluster_label) +} + +// .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; +inline bool QuboleHiveJob::has_query_collection() const { + return this != internal_default_instance() && query_collection_ != nullptr; +} +inline void QuboleHiveJob::clear_query_collection() { + if (GetArenaNoVirtual() == nullptr && query_collection_ != nullptr) { + delete query_collection_; + } + query_collection_ = nullptr; +} +inline const ::flyteidl::plugins::HiveQueryCollection& QuboleHiveJob::query_collection() const { + const ::flyteidl::plugins::HiveQueryCollection* p = query_collection_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.query_collection) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::_HiveQueryCollection_default_instance_); +} +inline ::flyteidl::plugins::HiveQueryCollection* QuboleHiveJob::release_query_collection() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.query_collection) + + ::flyteidl::plugins::HiveQueryCollection* temp = query_collection_; + query_collection_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::HiveQueryCollection* QuboleHiveJob::mutable_query_collection() { + + if (query_collection_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::HiveQueryCollection>(GetArenaNoVirtual()); + query_collection_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.query_collection) + return query_collection_; +} +inline void QuboleHiveJob::set_allocated_query_collection(::flyteidl::plugins::HiveQueryCollection* query_collection) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete query_collection_; + } + if (query_collection) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + query_collection = ::google::protobuf::internal::GetOwnedMessage( + message_arena, query_collection, submessage_arena); + } + + } else { + + } + query_collection_ = query_collection; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.query_collection) +} + +// repeated string tags = 3; +inline int QuboleHiveJob::tags_size() const { + return tags_.size(); +} +inline void QuboleHiveJob::clear_tags() { + tags_.Clear(); +} +inline const ::std::string& QuboleHiveJob::tags(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.tags) + return tags_.Get(index); +} +inline ::std::string* QuboleHiveJob::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.tags) + return tags_.Mutable(index); +} +inline void QuboleHiveJob::set_tags(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.tags) + tags_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void QuboleHiveJob::set_tags(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.tags) + tags_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void QuboleHiveJob::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.QuboleHiveJob.tags) +} +inline void QuboleHiveJob::set_tags(int index, const char* value, size_t size) { + tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.QuboleHiveJob.tags) +} +inline ::std::string* QuboleHiveJob::add_tags() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.QuboleHiveJob.tags) + return tags_.Add(); +} +inline void QuboleHiveJob::add_tags(const ::std::string& value) { + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.QuboleHiveJob.tags) +} +#if LANG_CXX11 +inline void QuboleHiveJob::add_tags(::std::string&& value) { + tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.QuboleHiveJob.tags) +} +#endif +inline void QuboleHiveJob::add_tags(const char* value) { + GOOGLE_DCHECK(value != nullptr); + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.QuboleHiveJob.tags) +} +inline void QuboleHiveJob::add_tags(const char* value, size_t size) { + tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.QuboleHiveJob.tags) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +QuboleHiveJob::tags() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.QuboleHiveJob.tags) + return tags_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +QuboleHiveJob::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.QuboleHiveJob.tags) + return &tags_; +} + +// .flyteidl.plugins.HiveQuery query = 4; +inline bool QuboleHiveJob::has_query() const { + return this != internal_default_instance() && query_ != nullptr; +} +inline void QuboleHiveJob::clear_query() { + if (GetArenaNoVirtual() == nullptr && query_ != nullptr) { + delete query_; + } + query_ = nullptr; +} +inline const ::flyteidl::plugins::HiveQuery& QuboleHiveJob::query() const { + const ::flyteidl::plugins::HiveQuery* p = query_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.query) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::_HiveQuery_default_instance_); +} +inline ::flyteidl::plugins::HiveQuery* QuboleHiveJob::release_query() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.query) + + ::flyteidl::plugins::HiveQuery* temp = query_; + query_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::HiveQuery* QuboleHiveJob::mutable_query() { + + if (query_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::HiveQuery>(GetArenaNoVirtual()); + query_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.query) + return query_; +} +inline void QuboleHiveJob::set_allocated_query(::flyteidl::plugins::HiveQuery* query) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete query_; + } + if (query) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + query = ::google::protobuf::internal::GetOwnedMessage( + message_arena, query, submessage_arena); + } + + } else { + + } + query_ = query; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.query) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fqubole_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.cc new file mode 100644 index 0000000000..035ec928b1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/ray.proto + +#include "flyteidl/plugins/ray.pb.h" +#include "flyteidl/plugins/ray.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.h new file mode 100644 index 0000000000..44c8bae408 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/ray.proto +#ifndef GRPC_flyteidl_2fplugins_2fray_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fray_2eproto__INCLUDED + +#include "flyteidl/plugins/ray.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fray_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.cc new file mode 100644 index 0000000000..cc1f331eba --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.cc @@ -0,0 +1,2060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/ray.proto + +#include "flyteidl/plugins/ray.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto; +namespace flyteidl { +namespace plugins { +class RayJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _RayJob_default_instance_; +class RayClusterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _RayCluster_default_instance_; +class HeadGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; +class HeadGroupSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HeadGroupSpec_default_instance_; +class WorkerGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; +class WorkerGroupSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkerGroupSpec_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsRayJob_flyteidl_2fplugins_2fray_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_RayJob_default_instance_; + new (ptr) ::flyteidl::plugins::RayJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::RayJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRayJob_flyteidl_2fplugins_2fray_2eproto}, { + &scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base,}}; + +static void InitDefaultsRayCluster_flyteidl_2fplugins_2fray_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_RayCluster_default_instance_; + new (ptr) ::flyteidl::plugins::RayCluster(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::RayCluster::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsRayCluster_flyteidl_2fplugins_2fray_2eproto}, { + &scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base, + &scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base,}}; + +static void InitDefaultsHeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse(); + } + ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto}, {}}; + +static void InitDefaultsHeadGroupSpec_flyteidl_2fplugins_2fray_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_HeadGroupSpec_default_instance_; + new (ptr) ::flyteidl::plugins::HeadGroupSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::HeadGroupSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHeadGroupSpec_flyteidl_2fplugins_2fray_2eproto}, { + &scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base,}}; + +static void InitDefaultsWorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse(); + } + ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto}, {}}; + +static void InitDefaultsWorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_WorkerGroupSpec_default_instance_; + new (ptr) ::flyteidl::plugins::WorkerGroupSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::WorkerGroupSpec::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto}, { + &scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fray_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fray_2eproto[6]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fray_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fray_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fray_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, ray_cluster_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, runtime_env_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayCluster, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayCluster, head_group_spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayCluster, worker_group_spec_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec, ray_start_params_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, group_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, min_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, max_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, ray_start_params_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::RayJob)}, + { 7, -1, sizeof(::flyteidl::plugins::RayCluster)}, + { 14, 21, sizeof(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse)}, + { 23, -1, sizeof(::flyteidl::plugins::HeadGroupSpec)}, + { 29, 36, sizeof(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse)}, + { 38, -1, sizeof(::flyteidl::plugins::WorkerGroupSpec)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_RayJob_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_RayCluster_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_HeadGroupSpec_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_WorkerGroupSpec_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fray_2eproto, "flyteidl/plugins/ray.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fray_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fray_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fray_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fray_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fray_2eproto[] = + "\n\032flyteidl/plugins/ray.proto\022\020flyteidl.p" + "lugins\"P\n\006RayJob\0221\n\013ray_cluster\030\001 \001(\0132\034." + "flyteidl.plugins.RayCluster\022\023\n\013runtime_e" + "nv\030\002 \001(\t\"\204\001\n\nRayCluster\0228\n\017head_group_sp" + "ec\030\001 \001(\0132\037.flyteidl.plugins.HeadGroupSpe" + "c\022<\n\021worker_group_spec\030\002 \003(\0132!.flyteidl." + "plugins.WorkerGroupSpec\"\225\001\n\rHeadGroupSpe" + "c\022M\n\020ray_start_params\030\001 \003(\01323.flyteidl.p" + "lugins.HeadGroupSpec.RayStartParamsEntry" + "\0325\n\023RayStartParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"\353\001\n\017WorkerGroupSpec\022\022\n\ng" + "roup_name\030\001 \001(\t\022\020\n\010replicas\030\002 \001(\005\022\024\n\014min" + "_replicas\030\003 \001(\005\022\024\n\014max_replicas\030\004 \001(\005\022O\n" + "\020ray_start_params\030\005 \003(\01325.flyteidl.plugi" + "ns.WorkerGroupSpec.RayStartParamsEntry\0325" + "\n\023RayStartParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001B9Z7github.com/flyteorg/fly" + "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fray_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fray_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fray_2eproto, + "flyteidl/plugins/ray.proto", &assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto, 720, +}; + +void AddDescriptors_flyteidl_2fplugins_2fray_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fray_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fray_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fray_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void RayJob::InitAsDefaultInstance() { + ::flyteidl::plugins::_RayJob_default_instance_._instance.get_mutable()->ray_cluster_ = const_cast< ::flyteidl::plugins::RayCluster*>( + ::flyteidl::plugins::RayCluster::internal_default_instance()); +} +class RayJob::HasBitSetters { + public: + static const ::flyteidl::plugins::RayCluster& ray_cluster(const RayJob* msg); +}; + +const ::flyteidl::plugins::RayCluster& +RayJob::HasBitSetters::ray_cluster(const RayJob* msg) { + return *msg->ray_cluster_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RayJob::kRayClusterFieldNumber; +const int RayJob::kRuntimeEnvFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RayJob::RayJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.RayJob) +} +RayJob::RayJob(const RayJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + runtime_env_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.runtime_env().size() > 0) { + runtime_env_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.runtime_env_); + } + if (from.has_ray_cluster()) { + ray_cluster_ = new ::flyteidl::plugins::RayCluster(*from.ray_cluster_); + } else { + ray_cluster_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.RayJob) +} + +void RayJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto.base); + runtime_env_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ray_cluster_ = nullptr; +} + +RayJob::~RayJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.RayJob) + SharedDtor(); +} + +void RayJob::SharedDtor() { + runtime_env_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete ray_cluster_; +} + +void RayJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RayJob& RayJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto.base); + return *internal_default_instance(); +} + + +void RayJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.RayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + runtime_env_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && ray_cluster_ != nullptr) { + delete ray_cluster_; + } + ray_cluster_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RayJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.RayCluster ray_cluster = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::RayCluster::_InternalParse; + object = msg->mutable_ray_cluster(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string runtime_env = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.RayJob.runtime_env"); + object = msg->mutable_runtime_env(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RayJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.RayJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.RayCluster ray_cluster = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ray_cluster())); + } else { + goto handle_unusual; + } + break; + } + + // string runtime_env = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_runtime_env())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->runtime_env().data(), static_cast(this->runtime_env().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.RayJob.runtime_env")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.RayJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.RayJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RayJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.RayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.RayCluster ray_cluster = 1; + if (this->has_ray_cluster()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::ray_cluster(this), output); + } + + // string runtime_env = 2; + if (this->runtime_env().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->runtime_env().data(), static_cast(this->runtime_env().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.RayJob.runtime_env"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->runtime_env(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.RayJob) +} + +::google::protobuf::uint8* RayJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.RayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.RayCluster ray_cluster = 1; + if (this->has_ray_cluster()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::ray_cluster(this), target); + } + + // string runtime_env = 2; + if (this->runtime_env().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->runtime_env().data(), static_cast(this->runtime_env().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.RayJob.runtime_env"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->runtime_env(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.RayJob) + return target; +} + +size_t RayJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.RayJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string runtime_env = 2; + if (this->runtime_env().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->runtime_env()); + } + + // .flyteidl.plugins.RayCluster ray_cluster = 1; + if (this->has_ray_cluster()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ray_cluster_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RayJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.RayJob) + GOOGLE_DCHECK_NE(&from, this); + const RayJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.RayJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.RayJob) + MergeFrom(*source); + } +} + +void RayJob::MergeFrom(const RayJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.RayJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.runtime_env().size() > 0) { + + runtime_env_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.runtime_env_); + } + if (from.has_ray_cluster()) { + mutable_ray_cluster()->::flyteidl::plugins::RayCluster::MergeFrom(from.ray_cluster()); + } +} + +void RayJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.RayJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RayJob::CopyFrom(const RayJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.RayJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RayJob::IsInitialized() const { + return true; +} + +void RayJob::Swap(RayJob* other) { + if (other == this) return; + InternalSwap(other); +} +void RayJob::InternalSwap(RayJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + runtime_env_.Swap(&other->runtime_env_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(ray_cluster_, other->ray_cluster_); +} + +::google::protobuf::Metadata RayJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void RayCluster::InitAsDefaultInstance() { + ::flyteidl::plugins::_RayCluster_default_instance_._instance.get_mutable()->head_group_spec_ = const_cast< ::flyteidl::plugins::HeadGroupSpec*>( + ::flyteidl::plugins::HeadGroupSpec::internal_default_instance()); +} +class RayCluster::HasBitSetters { + public: + static const ::flyteidl::plugins::HeadGroupSpec& head_group_spec(const RayCluster* msg); +}; + +const ::flyteidl::plugins::HeadGroupSpec& +RayCluster::HasBitSetters::head_group_spec(const RayCluster* msg) { + return *msg->head_group_spec_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RayCluster::kHeadGroupSpecFieldNumber; +const int RayCluster::kWorkerGroupSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RayCluster::RayCluster() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.RayCluster) +} +RayCluster::RayCluster(const RayCluster& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + worker_group_spec_(from.worker_group_spec_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_head_group_spec()) { + head_group_spec_ = new ::flyteidl::plugins::HeadGroupSpec(*from.head_group_spec_); + } else { + head_group_spec_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.RayCluster) +} + +void RayCluster::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base); + head_group_spec_ = nullptr; +} + +RayCluster::~RayCluster() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.RayCluster) + SharedDtor(); +} + +void RayCluster::SharedDtor() { + if (this != internal_default_instance()) delete head_group_spec_; +} + +void RayCluster::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const RayCluster& RayCluster::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base); + return *internal_default_instance(); +} + + +void RayCluster::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.RayCluster) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + worker_group_spec_.Clear(); + if (GetArenaNoVirtual() == nullptr && head_group_spec_ != nullptr) { + delete head_group_spec_; + } + head_group_spec_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* RayCluster::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::HeadGroupSpec::_InternalParse; + object = msg->mutable_head_group_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::WorkerGroupSpec::_InternalParse; + object = msg->add_worker_group_spec(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool RayCluster::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.RayCluster) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_head_group_spec())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_worker_group_spec())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.RayCluster) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.RayCluster) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void RayCluster::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.RayCluster) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + if (this->has_head_group_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::head_group_spec(this), output); + } + + // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + for (unsigned int i = 0, + n = static_cast(this->worker_group_spec_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, + this->worker_group_spec(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.RayCluster) +} + +::google::protobuf::uint8* RayCluster::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.RayCluster) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + if (this->has_head_group_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::head_group_spec(this), target); + } + + // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + for (unsigned int i = 0, + n = static_cast(this->worker_group_spec_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->worker_group_spec(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.RayCluster) + return target; +} + +size_t RayCluster::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.RayCluster) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + { + unsigned int count = static_cast(this->worker_group_spec_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->worker_group_spec(static_cast(i))); + } + } + + // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + if (this->has_head_group_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *head_group_spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void RayCluster::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.RayCluster) + GOOGLE_DCHECK_NE(&from, this); + const RayCluster* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.RayCluster) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.RayCluster) + MergeFrom(*source); + } +} + +void RayCluster::MergeFrom(const RayCluster& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.RayCluster) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + worker_group_spec_.MergeFrom(from.worker_group_spec_); + if (from.has_head_group_spec()) { + mutable_head_group_spec()->::flyteidl::plugins::HeadGroupSpec::MergeFrom(from.head_group_spec()); + } +} + +void RayCluster::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.RayCluster) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RayCluster::CopyFrom(const RayCluster& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.RayCluster) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RayCluster::IsInitialized() const { + return true; +} + +void RayCluster::Swap(RayCluster* other) { + if (other == this) return; + InternalSwap(other); +} +void RayCluster::InternalSwap(RayCluster* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&worker_group_spec_)->InternalSwap(CastToBase(&other->worker_group_spec_)); + swap(head_group_spec_, other->head_group_spec_); +} + +::google::protobuf::Metadata RayCluster::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +HeadGroupSpec_RayStartParamsEntry_DoNotUse::HeadGroupSpec_RayStartParamsEntry_DoNotUse() {} +HeadGroupSpec_RayStartParamsEntry_DoNotUse::HeadGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void HeadGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom(const HeadGroupSpec_RayStartParamsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata HeadGroupSpec_RayStartParamsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[2]; +} +void HeadGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HeadGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + HeadGroupSpec_RayStartParamsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void HeadGroupSpec::InitAsDefaultInstance() { +} +class HeadGroupSpec::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HeadGroupSpec::kRayStartParamsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HeadGroupSpec::HeadGroupSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.HeadGroupSpec) +} +HeadGroupSpec::HeadGroupSpec(const HeadGroupSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ray_start_params_.MergeFrom(from.ray_start_params_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HeadGroupSpec) +} + +void HeadGroupSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); +} + +HeadGroupSpec::~HeadGroupSpec() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.HeadGroupSpec) + SharedDtor(); +} + +void HeadGroupSpec::SharedDtor() { +} + +void HeadGroupSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HeadGroupSpec& HeadGroupSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); + return *internal_default_instance(); +} + + +void HeadGroupSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HeadGroupSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ray_start_params_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HeadGroupSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map ray_start_params = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->ray_start_params_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HeadGroupSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.HeadGroupSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map ray_start_params = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + HeadGroupSpec_RayStartParamsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + HeadGroupSpec_RayStartParamsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&ray_start_params_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.HeadGroupSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HeadGroupSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HeadGroupSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HeadGroupSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map ray_start_params = 1; + if (!this->ray_start_params().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->ray_start_params().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->ray_start_params().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it) { + entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HeadGroupSpec) +} + +::google::protobuf::uint8* HeadGroupSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HeadGroupSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map ray_start_params = 1; + if (!this->ray_start_params().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value"); + } + }; + + if (false && + this->ray_start_params().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->ray_start_params().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it) { + entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.HeadGroupSpec) + return target; +} + +size_t HeadGroupSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HeadGroupSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map ray_start_params = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->ray_start_params_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it) { + entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HeadGroupSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HeadGroupSpec) + GOOGLE_DCHECK_NE(&from, this); + const HeadGroupSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HeadGroupSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HeadGroupSpec) + MergeFrom(*source); + } +} + +void HeadGroupSpec::MergeFrom(const HeadGroupSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HeadGroupSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ray_start_params_.MergeFrom(from.ray_start_params_); +} + +void HeadGroupSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HeadGroupSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HeadGroupSpec::CopyFrom(const HeadGroupSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HeadGroupSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HeadGroupSpec::IsInitialized() const { + return true; +} + +void HeadGroupSpec::Swap(HeadGroupSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void HeadGroupSpec::InternalSwap(HeadGroupSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + ray_start_params_.Swap(&other->ray_start_params_); +} + +::google::protobuf::Metadata HeadGroupSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +WorkerGroupSpec_RayStartParamsEntry_DoNotUse::WorkerGroupSpec_RayStartParamsEntry_DoNotUse() {} +WorkerGroupSpec_RayStartParamsEntry_DoNotUse::WorkerGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void WorkerGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom(const WorkerGroupSpec_RayStartParamsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata WorkerGroupSpec_RayStartParamsEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[4]; +} +void WorkerGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkerGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + WorkerGroupSpec_RayStartParamsEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void WorkerGroupSpec::InitAsDefaultInstance() { +} +class WorkerGroupSpec::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkerGroupSpec::kGroupNameFieldNumber; +const int WorkerGroupSpec::kReplicasFieldNumber; +const int WorkerGroupSpec::kMinReplicasFieldNumber; +const int WorkerGroupSpec::kMaxReplicasFieldNumber; +const int WorkerGroupSpec::kRayStartParamsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkerGroupSpec::WorkerGroupSpec() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.WorkerGroupSpec) +} +WorkerGroupSpec::WorkerGroupSpec(const WorkerGroupSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ray_start_params_.MergeFrom(from.ray_start_params_); + group_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.group_name().size() > 0) { + group_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_name_); + } + ::memcpy(&replicas_, &from.replicas_, + static_cast(reinterpret_cast(&max_replicas_) - + reinterpret_cast(&replicas_)) + sizeof(max_replicas_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.WorkerGroupSpec) +} + +void WorkerGroupSpec::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); + group_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&replicas_, 0, static_cast( + reinterpret_cast(&max_replicas_) - + reinterpret_cast(&replicas_)) + sizeof(max_replicas_)); +} + +WorkerGroupSpec::~WorkerGroupSpec() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.WorkerGroupSpec) + SharedDtor(); +} + +void WorkerGroupSpec::SharedDtor() { + group_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WorkerGroupSpec::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkerGroupSpec& WorkerGroupSpec::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); + return *internal_default_instance(); +} + + +void WorkerGroupSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.WorkerGroupSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ray_start_params_.Clear(); + group_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&replicas_, 0, static_cast( + reinterpret_cast(&max_replicas_) - + reinterpret_cast(&replicas_)) + sizeof(max_replicas_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkerGroupSpec::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string group_name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.WorkerGroupSpec.group_name"); + object = msg->mutable_group_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int32 replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 min_replicas = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_min_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 max_replicas = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + msg->set_max_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // map ray_start_params = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->ray_start_params_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkerGroupSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.WorkerGroupSpec) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string group_name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_group_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group_name().data(), static_cast(this->group_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.WorkerGroupSpec.group_name")); + } else { + goto handle_unusual; + } + break; + } + + // int32 replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 min_replicas = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &min_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 max_replicas = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &max_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // map ray_start_params = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + WorkerGroupSpec_RayStartParamsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + WorkerGroupSpec_RayStartParamsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&ray_start_params_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.WorkerGroupSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.WorkerGroupSpec) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkerGroupSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.WorkerGroupSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string group_name = 1; + if (this->group_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group_name().data(), static_cast(this->group_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.WorkerGroupSpec.group_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->group_name(), output); + } + + // int32 replicas = 2; + if (this->replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->replicas(), output); + } + + // int32 min_replicas = 3; + if (this->min_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->min_replicas(), output); + } + + // int32 max_replicas = 4; + if (this->max_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->max_replicas(), output); + } + + // map ray_start_params = 5; + if (!this->ray_start_params().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->ray_start_params().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->ray_start_params().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it) { + entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.WorkerGroupSpec) +} + +::google::protobuf::uint8* WorkerGroupSpec::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.WorkerGroupSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string group_name = 1; + if (this->group_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->group_name().data(), static_cast(this->group_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.WorkerGroupSpec.group_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->group_name(), target); + } + + // int32 replicas = 2; + if (this->replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->replicas(), target); + } + + // int32 min_replicas = 3; + if (this->min_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->min_replicas(), target); + } + + // int32 max_replicas = 4; + if (this->max_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->max_replicas(), target); + } + + // map ray_start_params = 5; + if (!this->ray_start_params().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value"); + } + }; + + if (false && + this->ray_start_params().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->ray_start_params().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it) { + entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.WorkerGroupSpec) + return target; +} + +size_t WorkerGroupSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.WorkerGroupSpec) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map ray_start_params = 5; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->ray_start_params_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->ray_start_params().begin(); + it != this->ray_start_params().end(); ++it) { + entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string group_name = 1; + if (this->group_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->group_name()); + } + + // int32 replicas = 2; + if (this->replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->replicas()); + } + + // int32 min_replicas = 3; + if (this->min_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->min_replicas()); + } + + // int32 max_replicas = 4; + if (this->max_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->max_replicas()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkerGroupSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.WorkerGroupSpec) + GOOGLE_DCHECK_NE(&from, this); + const WorkerGroupSpec* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.WorkerGroupSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.WorkerGroupSpec) + MergeFrom(*source); + } +} + +void WorkerGroupSpec::MergeFrom(const WorkerGroupSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.WorkerGroupSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ray_start_params_.MergeFrom(from.ray_start_params_); + if (from.group_name().size() > 0) { + + group_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_name_); + } + if (from.replicas() != 0) { + set_replicas(from.replicas()); + } + if (from.min_replicas() != 0) { + set_min_replicas(from.min_replicas()); + } + if (from.max_replicas() != 0) { + set_max_replicas(from.max_replicas()); + } +} + +void WorkerGroupSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.WorkerGroupSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkerGroupSpec::CopyFrom(const WorkerGroupSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.WorkerGroupSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkerGroupSpec::IsInitialized() const { + return true; +} + +void WorkerGroupSpec::Swap(WorkerGroupSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkerGroupSpec::InternalSwap(WorkerGroupSpec* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + ray_start_params_.Swap(&other->ray_start_params_); + group_name_.Swap(&other->group_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(replicas_, other->replicas_); + swap(min_replicas_, other->min_replicas_); + swap(max_replicas_, other->max_replicas_); +} + +::google::protobuf::Metadata WorkerGroupSpec::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::RayJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::RayJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::RayJob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::RayCluster* Arena::CreateMaybeMessage< ::flyteidl::plugins::RayCluster >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::RayCluster >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HeadGroupSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::HeadGroupSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::HeadGroupSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::WorkerGroupSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::WorkerGroupSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::WorkerGroupSpec >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.h new file mode 100644 index 0000000000..5de7bb122c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.h @@ -0,0 +1,1038 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/ray.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fray_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fray_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fray_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fray_2eproto(); +namespace flyteidl { +namespace plugins { +class HeadGroupSpec; +class HeadGroupSpecDefaultTypeInternal; +extern HeadGroupSpecDefaultTypeInternal _HeadGroupSpec_default_instance_; +class HeadGroupSpec_RayStartParamsEntry_DoNotUse; +class HeadGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal; +extern HeadGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal _HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; +class RayCluster; +class RayClusterDefaultTypeInternal; +extern RayClusterDefaultTypeInternal _RayCluster_default_instance_; +class RayJob; +class RayJobDefaultTypeInternal; +extern RayJobDefaultTypeInternal _RayJob_default_instance_; +class WorkerGroupSpec; +class WorkerGroupSpecDefaultTypeInternal; +extern WorkerGroupSpecDefaultTypeInternal _WorkerGroupSpec_default_instance_; +class WorkerGroupSpec_RayStartParamsEntry_DoNotUse; +class WorkerGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal; +extern WorkerGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal _WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::HeadGroupSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::HeadGroupSpec>(Arena*); +template<> ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse>(Arena*); +template<> ::flyteidl::plugins::RayCluster* Arena::CreateMaybeMessage<::flyteidl::plugins::RayCluster>(Arena*); +template<> ::flyteidl::plugins::RayJob* Arena::CreateMaybeMessage<::flyteidl::plugins::RayJob>(Arena*); +template<> ::flyteidl::plugins::WorkerGroupSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::WorkerGroupSpec>(Arena*); +template<> ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class RayJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.RayJob) */ { + public: + RayJob(); + virtual ~RayJob(); + + RayJob(const RayJob& from); + + inline RayJob& operator=(const RayJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RayJob(RayJob&& from) noexcept + : RayJob() { + *this = ::std::move(from); + } + + inline RayJob& operator=(RayJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const RayJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RayJob* internal_default_instance() { + return reinterpret_cast( + &_RayJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(RayJob* other); + friend void swap(RayJob& a, RayJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RayJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + RayJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RayJob& from); + void MergeFrom(const RayJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RayJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string runtime_env = 2; + void clear_runtime_env(); + static const int kRuntimeEnvFieldNumber = 2; + const ::std::string& runtime_env() const; + void set_runtime_env(const ::std::string& value); + #if LANG_CXX11 + void set_runtime_env(::std::string&& value); + #endif + void set_runtime_env(const char* value); + void set_runtime_env(const char* value, size_t size); + ::std::string* mutable_runtime_env(); + ::std::string* release_runtime_env(); + void set_allocated_runtime_env(::std::string* runtime_env); + + // .flyteidl.plugins.RayCluster ray_cluster = 1; + bool has_ray_cluster() const; + void clear_ray_cluster(); + static const int kRayClusterFieldNumber = 1; + const ::flyteidl::plugins::RayCluster& ray_cluster() const; + ::flyteidl::plugins::RayCluster* release_ray_cluster(); + ::flyteidl::plugins::RayCluster* mutable_ray_cluster(); + void set_allocated_ray_cluster(::flyteidl::plugins::RayCluster* ray_cluster); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr runtime_env_; + ::flyteidl::plugins::RayCluster* ray_cluster_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; +}; +// ------------------------------------------------------------------- + +class RayCluster final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.RayCluster) */ { + public: + RayCluster(); + virtual ~RayCluster(); + + RayCluster(const RayCluster& from); + + inline RayCluster& operator=(const RayCluster& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RayCluster(RayCluster&& from) noexcept + : RayCluster() { + *this = ::std::move(from); + } + + inline RayCluster& operator=(RayCluster&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const RayCluster& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RayCluster* internal_default_instance() { + return reinterpret_cast( + &_RayCluster_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(RayCluster* other); + friend void swap(RayCluster& a, RayCluster& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RayCluster* New() const final { + return CreateMaybeMessage(nullptr); + } + + RayCluster* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const RayCluster& from); + void MergeFrom(const RayCluster& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RayCluster* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + int worker_group_spec_size() const; + void clear_worker_group_spec(); + static const int kWorkerGroupSpecFieldNumber = 2; + ::flyteidl::plugins::WorkerGroupSpec* mutable_worker_group_spec(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >* + mutable_worker_group_spec(); + const ::flyteidl::plugins::WorkerGroupSpec& worker_group_spec(int index) const; + ::flyteidl::plugins::WorkerGroupSpec* add_worker_group_spec(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >& + worker_group_spec() const; + + // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + bool has_head_group_spec() const; + void clear_head_group_spec(); + static const int kHeadGroupSpecFieldNumber = 1; + const ::flyteidl::plugins::HeadGroupSpec& head_group_spec() const; + ::flyteidl::plugins::HeadGroupSpec* release_head_group_spec(); + ::flyteidl::plugins::HeadGroupSpec* mutable_head_group_spec(); + void set_allocated_head_group_spec(::flyteidl::plugins::HeadGroupSpec* head_group_spec); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayCluster) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec > worker_group_spec_; + ::flyteidl::plugins::HeadGroupSpec* head_group_spec_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; +}; +// ------------------------------------------------------------------- + +class HeadGroupSpec_RayStartParamsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + HeadGroupSpec_RayStartParamsEntry_DoNotUse(); + HeadGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const HeadGroupSpec_RayStartParamsEntry_DoNotUse& other); + static const HeadGroupSpec_RayStartParamsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class HeadGroupSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HeadGroupSpec) */ { + public: + HeadGroupSpec(); + virtual ~HeadGroupSpec(); + + HeadGroupSpec(const HeadGroupSpec& from); + + inline HeadGroupSpec& operator=(const HeadGroupSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HeadGroupSpec(HeadGroupSpec&& from) noexcept + : HeadGroupSpec() { + *this = ::std::move(from); + } + + inline HeadGroupSpec& operator=(HeadGroupSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HeadGroupSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HeadGroupSpec* internal_default_instance() { + return reinterpret_cast( + &_HeadGroupSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(HeadGroupSpec* other); + friend void swap(HeadGroupSpec& a, HeadGroupSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HeadGroupSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + HeadGroupSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HeadGroupSpec& from); + void MergeFrom(const HeadGroupSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HeadGroupSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map ray_start_params = 1; + int ray_start_params_size() const; + void clear_ray_start_params(); + static const int kRayStartParamsFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + ray_start_params() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_ray_start_params(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HeadGroupSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + HeadGroupSpec_RayStartParamsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > ray_start_params_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkerGroupSpec_RayStartParamsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + WorkerGroupSpec_RayStartParamsEntry_DoNotUse(); + WorkerGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const WorkerGroupSpec_RayStartParamsEntry_DoNotUse& other); + static const WorkerGroupSpec_RayStartParamsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class WorkerGroupSpec final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.WorkerGroupSpec) */ { + public: + WorkerGroupSpec(); + virtual ~WorkerGroupSpec(); + + WorkerGroupSpec(const WorkerGroupSpec& from); + + inline WorkerGroupSpec& operator=(const WorkerGroupSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkerGroupSpec(WorkerGroupSpec&& from) noexcept + : WorkerGroupSpec() { + *this = ::std::move(from); + } + + inline WorkerGroupSpec& operator=(WorkerGroupSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkerGroupSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkerGroupSpec* internal_default_instance() { + return reinterpret_cast( + &_WorkerGroupSpec_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(WorkerGroupSpec* other); + friend void swap(WorkerGroupSpec& a, WorkerGroupSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkerGroupSpec* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkerGroupSpec* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkerGroupSpec& from); + void MergeFrom(const WorkerGroupSpec& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkerGroupSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map ray_start_params = 5; + int ray_start_params_size() const; + void clear_ray_start_params(); + static const int kRayStartParamsFieldNumber = 5; + const ::google::protobuf::Map< ::std::string, ::std::string >& + ray_start_params() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_ray_start_params(); + + // string group_name = 1; + void clear_group_name(); + static const int kGroupNameFieldNumber = 1; + const ::std::string& group_name() const; + void set_group_name(const ::std::string& value); + #if LANG_CXX11 + void set_group_name(::std::string&& value); + #endif + void set_group_name(const char* value); + void set_group_name(const char* value, size_t size); + ::std::string* mutable_group_name(); + ::std::string* release_group_name(); + void set_allocated_group_name(::std::string* group_name); + + // int32 replicas = 2; + void clear_replicas(); + static const int kReplicasFieldNumber = 2; + ::google::protobuf::int32 replicas() const; + void set_replicas(::google::protobuf::int32 value); + + // int32 min_replicas = 3; + void clear_min_replicas(); + static const int kMinReplicasFieldNumber = 3; + ::google::protobuf::int32 min_replicas() const; + void set_min_replicas(::google::protobuf::int32 value); + + // int32 max_replicas = 4; + void clear_max_replicas(); + static const int kMaxReplicasFieldNumber = 4; + ::google::protobuf::int32 max_replicas() const; + void set_max_replicas(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.WorkerGroupSpec) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + WorkerGroupSpec_RayStartParamsEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > ray_start_params_; + ::google::protobuf::internal::ArenaStringPtr group_name_; + ::google::protobuf::int32 replicas_; + ::google::protobuf::int32 min_replicas_; + ::google::protobuf::int32 max_replicas_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// RayJob + +// .flyteidl.plugins.RayCluster ray_cluster = 1; +inline bool RayJob::has_ray_cluster() const { + return this != internal_default_instance() && ray_cluster_ != nullptr; +} +inline void RayJob::clear_ray_cluster() { + if (GetArenaNoVirtual() == nullptr && ray_cluster_ != nullptr) { + delete ray_cluster_; + } + ray_cluster_ = nullptr; +} +inline const ::flyteidl::plugins::RayCluster& RayJob::ray_cluster() const { + const ::flyteidl::plugins::RayCluster* p = ray_cluster_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.RayJob.ray_cluster) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::_RayCluster_default_instance_); +} +inline ::flyteidl::plugins::RayCluster* RayJob::release_ray_cluster() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.RayJob.ray_cluster) + + ::flyteidl::plugins::RayCluster* temp = ray_cluster_; + ray_cluster_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::RayCluster* RayJob::mutable_ray_cluster() { + + if (ray_cluster_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::RayCluster>(GetArenaNoVirtual()); + ray_cluster_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayJob.ray_cluster) + return ray_cluster_; +} +inline void RayJob::set_allocated_ray_cluster(::flyteidl::plugins::RayCluster* ray_cluster) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete ray_cluster_; + } + if (ray_cluster) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + ray_cluster = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ray_cluster, submessage_arena); + } + + } else { + + } + ray_cluster_ = ray_cluster; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.RayJob.ray_cluster) +} + +// string runtime_env = 2; +inline void RayJob::clear_runtime_env() { + runtime_env_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& RayJob::runtime_env() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.RayJob.runtime_env) + return runtime_env_.GetNoArena(); +} +inline void RayJob::set_runtime_env(const ::std::string& value) { + + runtime_env_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.RayJob.runtime_env) +} +#if LANG_CXX11 +inline void RayJob::set_runtime_env(::std::string&& value) { + + runtime_env_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.RayJob.runtime_env) +} +#endif +inline void RayJob::set_runtime_env(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + runtime_env_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.RayJob.runtime_env) +} +inline void RayJob::set_runtime_env(const char* value, size_t size) { + + runtime_env_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.RayJob.runtime_env) +} +inline ::std::string* RayJob::mutable_runtime_env() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayJob.runtime_env) + return runtime_env_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RayJob::release_runtime_env() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.RayJob.runtime_env) + + return runtime_env_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RayJob::set_allocated_runtime_env(::std::string* runtime_env) { + if (runtime_env != nullptr) { + + } else { + + } + runtime_env_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), runtime_env); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.RayJob.runtime_env) +} + +// ------------------------------------------------------------------- + +// RayCluster + +// .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; +inline bool RayCluster::has_head_group_spec() const { + return this != internal_default_instance() && head_group_spec_ != nullptr; +} +inline void RayCluster::clear_head_group_spec() { + if (GetArenaNoVirtual() == nullptr && head_group_spec_ != nullptr) { + delete head_group_spec_; + } + head_group_spec_ = nullptr; +} +inline const ::flyteidl::plugins::HeadGroupSpec& RayCluster::head_group_spec() const { + const ::flyteidl::plugins::HeadGroupSpec* p = head_group_spec_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.RayCluster.head_group_spec) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::_HeadGroupSpec_default_instance_); +} +inline ::flyteidl::plugins::HeadGroupSpec* RayCluster::release_head_group_spec() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.RayCluster.head_group_spec) + + ::flyteidl::plugins::HeadGroupSpec* temp = head_group_spec_; + head_group_spec_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::HeadGroupSpec* RayCluster::mutable_head_group_spec() { + + if (head_group_spec_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::HeadGroupSpec>(GetArenaNoVirtual()); + head_group_spec_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayCluster.head_group_spec) + return head_group_spec_; +} +inline void RayCluster::set_allocated_head_group_spec(::flyteidl::plugins::HeadGroupSpec* head_group_spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete head_group_spec_; + } + if (head_group_spec) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + head_group_spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, head_group_spec, submessage_arena); + } + + } else { + + } + head_group_spec_ = head_group_spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.RayCluster.head_group_spec) +} + +// repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; +inline int RayCluster::worker_group_spec_size() const { + return worker_group_spec_.size(); +} +inline void RayCluster::clear_worker_group_spec() { + worker_group_spec_.Clear(); +} +inline ::flyteidl::plugins::WorkerGroupSpec* RayCluster::mutable_worker_group_spec(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayCluster.worker_group_spec) + return worker_group_spec_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >* +RayCluster::mutable_worker_group_spec() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.RayCluster.worker_group_spec) + return &worker_group_spec_; +} +inline const ::flyteidl::plugins::WorkerGroupSpec& RayCluster::worker_group_spec(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.RayCluster.worker_group_spec) + return worker_group_spec_.Get(index); +} +inline ::flyteidl::plugins::WorkerGroupSpec* RayCluster::add_worker_group_spec() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.RayCluster.worker_group_spec) + return worker_group_spec_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >& +RayCluster::worker_group_spec() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.RayCluster.worker_group_spec) + return worker_group_spec_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// HeadGroupSpec + +// map ray_start_params = 1; +inline int HeadGroupSpec::ray_start_params_size() const { + return ray_start_params_.size(); +} +inline void HeadGroupSpec::clear_ray_start_params() { + ray_start_params_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +HeadGroupSpec::ray_start_params() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.HeadGroupSpec.ray_start_params) + return ray_start_params_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +HeadGroupSpec::mutable_ray_start_params() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.HeadGroupSpec.ray_start_params) + return ray_start_params_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// WorkerGroupSpec + +// string group_name = 1; +inline void WorkerGroupSpec::clear_group_name() { + group_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkerGroupSpec::group_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.group_name) + return group_name_.GetNoArena(); +} +inline void WorkerGroupSpec::set_group_name(const ::std::string& value) { + + group_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.group_name) +} +#if LANG_CXX11 +inline void WorkerGroupSpec::set_group_name(::std::string&& value) { + + group_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.WorkerGroupSpec.group_name) +} +#endif +inline void WorkerGroupSpec::set_group_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + group_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.WorkerGroupSpec.group_name) +} +inline void WorkerGroupSpec::set_group_name(const char* value, size_t size) { + + group_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.WorkerGroupSpec.group_name) +} +inline ::std::string* WorkerGroupSpec::mutable_group_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.WorkerGroupSpec.group_name) + return group_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkerGroupSpec::release_group_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.WorkerGroupSpec.group_name) + + return group_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkerGroupSpec::set_allocated_group_name(::std::string* group_name) { + if (group_name != nullptr) { + + } else { + + } + group_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), group_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.WorkerGroupSpec.group_name) +} + +// int32 replicas = 2; +inline void WorkerGroupSpec::clear_replicas() { + replicas_ = 0; +} +inline ::google::protobuf::int32 WorkerGroupSpec::replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.replicas) + return replicas_; +} +inline void WorkerGroupSpec::set_replicas(::google::protobuf::int32 value) { + + replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.replicas) +} + +// int32 min_replicas = 3; +inline void WorkerGroupSpec::clear_min_replicas() { + min_replicas_ = 0; +} +inline ::google::protobuf::int32 WorkerGroupSpec::min_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.min_replicas) + return min_replicas_; +} +inline void WorkerGroupSpec::set_min_replicas(::google::protobuf::int32 value) { + + min_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.min_replicas) +} + +// int32 max_replicas = 4; +inline void WorkerGroupSpec::clear_max_replicas() { + max_replicas_ = 0; +} +inline ::google::protobuf::int32 WorkerGroupSpec::max_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.max_replicas) + return max_replicas_; +} +inline void WorkerGroupSpec::set_max_replicas(::google::protobuf::int32 value) { + + max_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.max_replicas) +} + +// map ray_start_params = 5; +inline int WorkerGroupSpec::ray_start_params_size() const { + return ray_start_params_.size(); +} +inline void WorkerGroupSpec::clear_ray_start_params() { + ray_start_params_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +WorkerGroupSpec::ray_start_params() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.WorkerGroupSpec.ray_start_params) + return ray_start_params_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +WorkerGroupSpec::mutable_ray_start_params() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.WorkerGroupSpec.ray_start_params) + return ray_start_params_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fray_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.cc new file mode 100644 index 0000000000..a47db3745b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto + +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h" +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h new file mode 100644 index 0000000000..c01143b03f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc new file mode 100644 index 0000000000..3f883c1199 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.cc @@ -0,0 +1,2174 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto + +#include "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HyperparameterTuningJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningJob_default_instance_; +class HyperparameterTuningObjectiveTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningObjectiveType_default_instance_; +class HyperparameterTuningObjectiveDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningObjective_default_instance_; +class HyperparameterTuningStrategyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningStrategy_default_instance_; +class TrainingJobEarlyStoppingTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TrainingJobEarlyStoppingType_default_instance_; +class HyperparameterTuningJobConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterTuningJobConfig_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterTuningJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, { + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; + +static void InitDefaultsHyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjectiveType_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}}; + +static void InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}}; + +static void InitDefaultsHyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningStrategy_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}}; + +static void InitDefaultsTrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobEarlyStoppingType_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, {}}; + +static void InitDefaultsHyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto}, { + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[3]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, training_job_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, max_number_of_training_jobs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJob, max_parallel_training_jobs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, objective_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective, metric_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, hyperparameter_ranges_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, tuning_strategy_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, tuning_objective_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig, training_job_early_stopping_type_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningJob)}, + { 8, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType)}, + { 13, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective)}, + { 20, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy)}, + { 25, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType)}, + { 30, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningJob_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjectiveType_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningStrategy_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobEarlyStoppingType_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[] = + "\n:flyteidl/plugins/sagemaker/hyperparame" + "ter_tuning_job.proto\022\032flyteidl.plugins.s" + "agemaker\0321flyteidl/plugins/sagemaker/par" + "ameter_ranges.proto\032-flyteidl/plugins/sa" + "gemaker/training_job.proto\"\241\001\n\027Hyperpara" + "meterTuningJob\022=\n\014training_job\030\001 \001(\0132\'.f" + "lyteidl.plugins.sagemaker.TrainingJob\022#\n" + "\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032ma" + "x_parallel_training_jobs\030\003 \001(\003\"H\n!Hyperp" + "arameterTuningObjectiveType\"#\n\005Value\022\014\n\010" + "MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\221\001\n\035Hyperparame" + "terTuningObjective\022[\n\016objective_type\030\001 \001" + "(\0162C.flyteidl.plugins.sagemaker.Hyperpar" + "ameterTuningObjectiveType.Value\022\023\n\013metri" + "c_name\030\002 \001(\t\"A\n\034HyperparameterTuningStra" + "tegy\"!\n\005Value\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"" + ":\n\034TrainingJobEarlyStoppingType\"\032\n\005Value" + "\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\203\003\n\035HyperparameterTu" + "ningJobConfig\022J\n\025hyperparameter_ranges\030\001" + " \001(\0132+.flyteidl.plugins.sagemaker.Parame" + "terRanges\022W\n\017tuning_strategy\030\002 \001(\0162>.fly" + "teidl.plugins.sagemaker.HyperparameterTu" + "ningStrategy.Value\022S\n\020tuning_objective\030\003" + " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" + "arameterTuningObjective\022h\n training_job_" + "early_stopping_type\030\004 \001(\0162>.flyteidl.plu" + "gins.sagemaker.TrainingJobEarlyStoppingT" + "ype.ValueB9Z7github.com/flyteorg/flyteid" + "l/gen/pb-go/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, + "flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, 1156, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + ::AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjectiveType_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[0]; +} +bool HyperparameterTuningObjectiveType_Value_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::MINIMIZE; +const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::MAXIMIZE; +const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::Value_MIN; +const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType::Value_MAX; +const int HyperparameterTuningObjectiveType::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* HyperparameterTuningStrategy_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[1]; +} +bool HyperparameterTuningStrategy_Value_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::BAYESIAN; +const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::RANDOM; +const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::Value_MIN; +const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy::Value_MAX; +const int HyperparameterTuningStrategy::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* TrainingJobEarlyStoppingType_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[2]; +} +bool TrainingJobEarlyStoppingType_Value_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::OFF; +const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::AUTO; +const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::Value_MIN; +const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType::Value_MAX; +const int TrainingJobEarlyStoppingType::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void HyperparameterTuningJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HyperparameterTuningJob_default_instance_._instance.get_mutable()->training_job_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJob*>( + ::flyteidl::plugins::sagemaker::TrainingJob::internal_default_instance()); +} +class HyperparameterTuningJob::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::TrainingJob& training_job(const HyperparameterTuningJob* msg); +}; + +const ::flyteidl::plugins::sagemaker::TrainingJob& +HyperparameterTuningJob::HasBitSetters::training_job(const HyperparameterTuningJob* msg) { + return *msg->training_job_; +} +void HyperparameterTuningJob::clear_training_job() { + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HyperparameterTuningJob::kTrainingJobFieldNumber; +const int HyperparameterTuningJob::kMaxNumberOfTrainingJobsFieldNumber; +const int HyperparameterTuningJob::kMaxParallelTrainingJobsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterTuningJob::HyperparameterTuningJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJob) +} +HyperparameterTuningJob::HyperparameterTuningJob(const HyperparameterTuningJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_training_job()) { + training_job_ = new ::flyteidl::plugins::sagemaker::TrainingJob(*from.training_job_); + } else { + training_job_ = nullptr; + } + ::memcpy(&max_number_of_training_jobs_, &from.max_number_of_training_jobs_, + static_cast(reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJob) +} + +void HyperparameterTuningJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::memset(&training_job_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&training_job_)) + sizeof(max_parallel_training_jobs_)); +} + +HyperparameterTuningJob::~HyperparameterTuningJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + SharedDtor(); +} + +void HyperparameterTuningJob::SharedDtor() { + if (this != internal_default_instance()) delete training_job_; +} + +void HyperparameterTuningJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterTuningJob& HyperparameterTuningJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningJob_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterTuningJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && training_job_ != nullptr) { + delete training_job_; + } + training_job_ = nullptr; + ::memset(&max_number_of_training_jobs_, 0, static_cast( + reinterpret_cast(&max_parallel_training_jobs_) - + reinterpret_cast(&max_number_of_training_jobs_)) + sizeof(max_parallel_training_jobs_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterTuningJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJob::_InternalParse; + object = msg->mutable_training_job(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // int64 max_number_of_training_jobs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_max_number_of_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_max_parallel_training_jobs(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterTuningJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job())); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_number_of_training_jobs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_number_of_training_jobs_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 max_parallel_training_jobs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_parallel_training_jobs_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterTuningJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::training_job(this), output); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->max_number_of_training_jobs(), output); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->max_parallel_training_jobs(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningJob) +} + +::google::protobuf::uint8* HyperparameterTuningJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::training_job(this), target); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->max_number_of_training_jobs(), target); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->max_parallel_training_jobs(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + return target; +} + +size_t HyperparameterTuningJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + if (this->has_training_job()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *training_job_); + } + + // int64 max_number_of_training_jobs = 2; + if (this->max_number_of_training_jobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_number_of_training_jobs()); + } + + // int64 max_parallel_training_jobs = 3; + if (this->max_parallel_training_jobs() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_parallel_training_jobs()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterTuningJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterTuningJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + MergeFrom(*source); + } +} + +void HyperparameterTuningJob::MergeFrom(const HyperparameterTuningJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_training_job()) { + mutable_training_job()->::flyteidl::plugins::sagemaker::TrainingJob::MergeFrom(from.training_job()); + } + if (from.max_number_of_training_jobs() != 0) { + set_max_number_of_training_jobs(from.max_number_of_training_jobs()); + } + if (from.max_parallel_training_jobs() != 0) { + set_max_parallel_training_jobs(from.max_parallel_training_jobs()); + } +} + +void HyperparameterTuningJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterTuningJob::CopyFrom(const HyperparameterTuningJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterTuningJob::IsInitialized() const { + return true; +} + +void HyperparameterTuningJob::Swap(HyperparameterTuningJob* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterTuningJob::InternalSwap(HyperparameterTuningJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(training_job_, other->training_job_); + swap(max_number_of_training_jobs_, other->max_number_of_training_jobs_); + swap(max_parallel_training_jobs_, other->max_parallel_training_jobs_); +} + +::google::protobuf::Metadata HyperparameterTuningJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HyperparameterTuningObjectiveType::InitAsDefaultInstance() { +} +class HyperparameterTuningObjectiveType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterTuningObjectiveType::HyperparameterTuningObjectiveType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) +} +HyperparameterTuningObjectiveType::HyperparameterTuningObjectiveType(const HyperparameterTuningObjectiveType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) +} + +void HyperparameterTuningObjectiveType::SharedCtor() { +} + +HyperparameterTuningObjectiveType::~HyperparameterTuningObjectiveType() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + SharedDtor(); +} + +void HyperparameterTuningObjectiveType::SharedDtor() { +} + +void HyperparameterTuningObjectiveType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterTuningObjectiveType& HyperparameterTuningObjectiveType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjectiveType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterTuningObjectiveType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterTuningObjectiveType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterTuningObjectiveType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterTuningObjectiveType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) +} + +::google::protobuf::uint8* HyperparameterTuningObjectiveType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + return target; +} + +size_t HyperparameterTuningObjectiveType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterTuningObjectiveType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterTuningObjectiveType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + MergeFrom(*source); + } +} + +void HyperparameterTuningObjectiveType::MergeFrom(const HyperparameterTuningObjectiveType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void HyperparameterTuningObjectiveType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterTuningObjectiveType::CopyFrom(const HyperparameterTuningObjectiveType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterTuningObjectiveType::IsInitialized() const { + return true; +} + +void HyperparameterTuningObjectiveType::Swap(HyperparameterTuningObjectiveType* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterTuningObjectiveType::InternalSwap(HyperparameterTuningObjectiveType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata HyperparameterTuningObjectiveType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HyperparameterTuningObjective::InitAsDefaultInstance() { +} +class HyperparameterTuningObjective::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HyperparameterTuningObjective::kObjectiveTypeFieldNumber; +const int HyperparameterTuningObjective::kMetricNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterTuningObjective::HyperparameterTuningObjective() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} +HyperparameterTuningObjective::HyperparameterTuningObjective(const HyperparameterTuningObjective& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.metric_name().size() > 0) { + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + } + objective_type_ = from.objective_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} + +void HyperparameterTuningObjective::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + metric_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; +} + +HyperparameterTuningObjective::~HyperparameterTuningObjective() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + SharedDtor(); +} + +void HyperparameterTuningObjective::SharedDtor() { + metric_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HyperparameterTuningObjective::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterTuningObjective& HyperparameterTuningObjective::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningObjective_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterTuningObjective::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + objective_type_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterTuningObjective::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_objective_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string metric_name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + object = msg->mutable_metric_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterTuningObjective::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_objective_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string metric_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_metric_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterTuningObjective::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + if (this->objective_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->objective_type(), output); + } + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->metric_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) +} + +::google::protobuf::uint8* HyperparameterTuningObjective::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + if (this->objective_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->objective_type(), target); + } + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->metric_name().data(), static_cast(this->metric_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->metric_name(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + return target; +} + +size_t HyperparameterTuningObjective::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string metric_name = 2; + if (this->metric_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->metric_name()); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + if (this->objective_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->objective_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterTuningObjective::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterTuningObjective* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + MergeFrom(*source); + } +} + +void HyperparameterTuningObjective::MergeFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.metric_name().size() > 0) { + + metric_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metric_name_); + } + if (from.objective_type() != 0) { + set_objective_type(from.objective_type()); + } +} + +void HyperparameterTuningObjective::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterTuningObjective::CopyFrom(const HyperparameterTuningObjective& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterTuningObjective::IsInitialized() const { + return true; +} + +void HyperparameterTuningObjective::Swap(HyperparameterTuningObjective* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterTuningObjective::InternalSwap(HyperparameterTuningObjective* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + metric_name_.Swap(&other->metric_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(objective_type_, other->objective_type_); +} + +::google::protobuf::Metadata HyperparameterTuningObjective::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HyperparameterTuningStrategy::InitAsDefaultInstance() { +} +class HyperparameterTuningStrategy::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterTuningStrategy::HyperparameterTuningStrategy() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) +} +HyperparameterTuningStrategy::HyperparameterTuningStrategy(const HyperparameterTuningStrategy& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) +} + +void HyperparameterTuningStrategy::SharedCtor() { +} + +HyperparameterTuningStrategy::~HyperparameterTuningStrategy() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + SharedDtor(); +} + +void HyperparameterTuningStrategy::SharedDtor() { +} + +void HyperparameterTuningStrategy::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterTuningStrategy& HyperparameterTuningStrategy::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningStrategy_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterTuningStrategy::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterTuningStrategy::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterTuningStrategy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterTuningStrategy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) +} + +::google::protobuf::uint8* HyperparameterTuningStrategy::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + return target; +} + +size_t HyperparameterTuningStrategy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterTuningStrategy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterTuningStrategy* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + MergeFrom(*source); + } +} + +void HyperparameterTuningStrategy::MergeFrom(const HyperparameterTuningStrategy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void HyperparameterTuningStrategy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterTuningStrategy::CopyFrom(const HyperparameterTuningStrategy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterTuningStrategy::IsInitialized() const { + return true; +} + +void HyperparameterTuningStrategy::Swap(HyperparameterTuningStrategy* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterTuningStrategy::InternalSwap(HyperparameterTuningStrategy* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata HyperparameterTuningStrategy::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TrainingJobEarlyStoppingType::InitAsDefaultInstance() { +} +class TrainingJobEarlyStoppingType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TrainingJobEarlyStoppingType::TrainingJobEarlyStoppingType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) +} +TrainingJobEarlyStoppingType::TrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) +} + +void TrainingJobEarlyStoppingType::SharedCtor() { +} + +TrainingJobEarlyStoppingType::~TrainingJobEarlyStoppingType() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + SharedDtor(); +} + +void TrainingJobEarlyStoppingType::SharedDtor() { +} + +void TrainingJobEarlyStoppingType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TrainingJobEarlyStoppingType& TrainingJobEarlyStoppingType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobEarlyStoppingType_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void TrainingJobEarlyStoppingType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TrainingJobEarlyStoppingType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TrainingJobEarlyStoppingType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TrainingJobEarlyStoppingType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) +} + +::google::protobuf::uint8* TrainingJobEarlyStoppingType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + return target; +} + +size_t TrainingJobEarlyStoppingType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TrainingJobEarlyStoppingType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + GOOGLE_DCHECK_NE(&from, this); + const TrainingJobEarlyStoppingType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + MergeFrom(*source); + } +} + +void TrainingJobEarlyStoppingType::MergeFrom(const TrainingJobEarlyStoppingType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TrainingJobEarlyStoppingType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TrainingJobEarlyStoppingType::CopyFrom(const TrainingJobEarlyStoppingType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TrainingJobEarlyStoppingType::IsInitialized() const { + return true; +} + +void TrainingJobEarlyStoppingType::Swap(TrainingJobEarlyStoppingType* other) { + if (other == this) return; + InternalSwap(other); +} +void TrainingJobEarlyStoppingType::InternalSwap(TrainingJobEarlyStoppingType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TrainingJobEarlyStoppingType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void HyperparameterTuningJobConfig::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_._instance.get_mutable()->hyperparameter_ranges_ = const_cast< ::flyteidl::plugins::sagemaker::ParameterRanges*>( + ::flyteidl::plugins::sagemaker::ParameterRanges::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_HyperparameterTuningJobConfig_default_instance_._instance.get_mutable()->tuning_objective_ = const_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective*>( + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::internal_default_instance()); +} +class HyperparameterTuningJobConfig::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges(const HyperparameterTuningJobConfig* msg); + static const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective(const HyperparameterTuningJobConfig* msg); +}; + +const ::flyteidl::plugins::sagemaker::ParameterRanges& +HyperparameterTuningJobConfig::HasBitSetters::hyperparameter_ranges(const HyperparameterTuningJobConfig* msg) { + return *msg->hyperparameter_ranges_; +} +const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& +HyperparameterTuningJobConfig::HasBitSetters::tuning_objective(const HyperparameterTuningJobConfig* msg) { + return *msg->tuning_objective_; +} +void HyperparameterTuningJobConfig::clear_hyperparameter_ranges() { + if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { + delete hyperparameter_ranges_; + } + hyperparameter_ranges_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HyperparameterTuningJobConfig::kHyperparameterRangesFieldNumber; +const int HyperparameterTuningJobConfig::kTuningStrategyFieldNumber; +const int HyperparameterTuningJobConfig::kTuningObjectiveFieldNumber; +const int HyperparameterTuningJobConfig::kTrainingJobEarlyStoppingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterTuningJobConfig::HyperparameterTuningJobConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) +} +HyperparameterTuningJobConfig::HyperparameterTuningJobConfig(const HyperparameterTuningJobConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_hyperparameter_ranges()) { + hyperparameter_ranges_ = new ::flyteidl::plugins::sagemaker::ParameterRanges(*from.hyperparameter_ranges_); + } else { + hyperparameter_ranges_ = nullptr; + } + if (from.has_tuning_objective()) { + tuning_objective_ = new ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective(*from.tuning_objective_); + } else { + tuning_objective_ = nullptr; + } + ::memcpy(&tuning_strategy_, &from.tuning_strategy_, + static_cast(reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) +} + +void HyperparameterTuningJobConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + ::memset(&hyperparameter_ranges_, 0, static_cast( + reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&hyperparameter_ranges_)) + sizeof(training_job_early_stopping_type_)); +} + +HyperparameterTuningJobConfig::~HyperparameterTuningJobConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + SharedDtor(); +} + +void HyperparameterTuningJobConfig::SharedDtor() { + if (this != internal_default_instance()) delete hyperparameter_ranges_; + if (this != internal_default_instance()) delete tuning_objective_; +} + +void HyperparameterTuningJobConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterTuningJobConfig& HyperparameterTuningJobConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterTuningJobConfig_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterTuningJobConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && hyperparameter_ranges_ != nullptr) { + delete hyperparameter_ranges_; + } + hyperparameter_ranges_ = nullptr; + if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { + delete tuning_objective_; + } + tuning_objective_ = nullptr; + ::memset(&tuning_strategy_, 0, static_cast( + reinterpret_cast(&training_job_early_stopping_type_) - + reinterpret_cast(&tuning_strategy_)) + sizeof(training_job_early_stopping_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterTuningJobConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ParameterRanges::_InternalParse; + object = msg->mutable_hyperparameter_ranges(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_tuning_strategy(static_cast<::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::_InternalParse; + object = msg->mutable_tuning_objective(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_training_job_early_stopping_type(static_cast<::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterTuningJobConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_hyperparameter_ranges())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_tuning_strategy(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_tuning_objective())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_training_job_early_stopping_type(static_cast< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterTuningJobConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::hyperparameter_ranges(this), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->tuning_strategy(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::tuning_objective(this), output); + } + + // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->training_job_early_stopping_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) +} + +::google::protobuf::uint8* HyperparameterTuningJobConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::hyperparameter_ranges(this), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->tuning_strategy(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::tuning_objective(this), target); + } + + // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->training_job_early_stopping_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + return target; +} + +size_t HyperparameterTuningJobConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + if (this->has_hyperparameter_ranges()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *hyperparameter_ranges_); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + if (this->has_tuning_objective()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *tuning_objective_); + } + + // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + if (this->tuning_strategy() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->tuning_strategy()); + } + + // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + if (this->training_job_early_stopping_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->training_job_early_stopping_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterTuningJobConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterTuningJobConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + MergeFrom(*source); + } +} + +void HyperparameterTuningJobConfig::MergeFrom(const HyperparameterTuningJobConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_hyperparameter_ranges()) { + mutable_hyperparameter_ranges()->::flyteidl::plugins::sagemaker::ParameterRanges::MergeFrom(from.hyperparameter_ranges()); + } + if (from.has_tuning_objective()) { + mutable_tuning_objective()->::flyteidl::plugins::sagemaker::HyperparameterTuningObjective::MergeFrom(from.tuning_objective()); + } + if (from.tuning_strategy() != 0) { + set_tuning_strategy(from.tuning_strategy()); + } + if (from.training_job_early_stopping_type() != 0) { + set_training_job_early_stopping_type(from.training_job_early_stopping_type()); + } +} + +void HyperparameterTuningJobConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterTuningJobConfig::CopyFrom(const HyperparameterTuningJobConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterTuningJobConfig::IsInitialized() const { + return true; +} + +void HyperparameterTuningJobConfig::Swap(HyperparameterTuningJobConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterTuningJobConfig::InternalSwap(HyperparameterTuningJobConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(hyperparameter_ranges_, other->hyperparameter_ranges_); + swap(tuning_objective_, other->tuning_objective_); + swap(tuning_strategy_, other->tuning_strategy_); + swap(training_job_early_stopping_type_, other->training_job_early_stopping_type_); +} + +::google::protobuf::Metadata HyperparameterTuningJobConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningJob >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h new file mode 100644 index 0000000000..1e09a9443a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.h @@ -0,0 +1,1283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HyperparameterTuningJob; +class HyperparameterTuningJobDefaultTypeInternal; +extern HyperparameterTuningJobDefaultTypeInternal _HyperparameterTuningJob_default_instance_; +class HyperparameterTuningJobConfig; +class HyperparameterTuningJobConfigDefaultTypeInternal; +extern HyperparameterTuningJobConfigDefaultTypeInternal _HyperparameterTuningJobConfig_default_instance_; +class HyperparameterTuningObjective; +class HyperparameterTuningObjectiveDefaultTypeInternal; +extern HyperparameterTuningObjectiveDefaultTypeInternal _HyperparameterTuningObjective_default_instance_; +class HyperparameterTuningObjectiveType; +class HyperparameterTuningObjectiveTypeDefaultTypeInternal; +extern HyperparameterTuningObjectiveTypeDefaultTypeInternal _HyperparameterTuningObjectiveType_default_instance_; +class HyperparameterTuningStrategy; +class HyperparameterTuningStrategyDefaultTypeInternal; +extern HyperparameterTuningStrategyDefaultTypeInternal _HyperparameterTuningStrategy_default_instance_; +class TrainingJobEarlyStoppingType; +class TrainingJobEarlyStoppingTypeDefaultTypeInternal; +extern TrainingJobEarlyStoppingTypeDefaultTypeInternal _TrainingJobEarlyStoppingType_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningJobConfig>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy>(Arena*); +template<> ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum HyperparameterTuningObjectiveType_Value { + HyperparameterTuningObjectiveType_Value_MINIMIZE = 0, + HyperparameterTuningObjectiveType_Value_MAXIMIZE = 1, + HyperparameterTuningObjectiveType_Value_HyperparameterTuningObjectiveType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterTuningObjectiveType_Value_HyperparameterTuningObjectiveType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterTuningObjectiveType_Value_IsValid(int value); +const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType_Value_Value_MIN = HyperparameterTuningObjectiveType_Value_MINIMIZE; +const HyperparameterTuningObjectiveType_Value HyperparameterTuningObjectiveType_Value_Value_MAX = HyperparameterTuningObjectiveType_Value_MAXIMIZE; +const int HyperparameterTuningObjectiveType_Value_Value_ARRAYSIZE = HyperparameterTuningObjectiveType_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterTuningObjectiveType_Value_descriptor(); +inline const ::std::string& HyperparameterTuningObjectiveType_Value_Name(HyperparameterTuningObjectiveType_Value value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterTuningObjectiveType_Value_descriptor(), value); +} +inline bool HyperparameterTuningObjectiveType_Value_Parse( + const ::std::string& name, HyperparameterTuningObjectiveType_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterTuningObjectiveType_Value_descriptor(), name, value); +} +enum HyperparameterTuningStrategy_Value { + HyperparameterTuningStrategy_Value_BAYESIAN = 0, + HyperparameterTuningStrategy_Value_RANDOM = 1, + HyperparameterTuningStrategy_Value_HyperparameterTuningStrategy_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterTuningStrategy_Value_HyperparameterTuningStrategy_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterTuningStrategy_Value_IsValid(int value); +const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy_Value_Value_MIN = HyperparameterTuningStrategy_Value_BAYESIAN; +const HyperparameterTuningStrategy_Value HyperparameterTuningStrategy_Value_Value_MAX = HyperparameterTuningStrategy_Value_RANDOM; +const int HyperparameterTuningStrategy_Value_Value_ARRAYSIZE = HyperparameterTuningStrategy_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterTuningStrategy_Value_descriptor(); +inline const ::std::string& HyperparameterTuningStrategy_Value_Name(HyperparameterTuningStrategy_Value value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterTuningStrategy_Value_descriptor(), value); +} +inline bool HyperparameterTuningStrategy_Value_Parse( + const ::std::string& name, HyperparameterTuningStrategy_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterTuningStrategy_Value_descriptor(), name, value); +} +enum TrainingJobEarlyStoppingType_Value { + TrainingJobEarlyStoppingType_Value_OFF = 0, + TrainingJobEarlyStoppingType_Value_AUTO = 1, + TrainingJobEarlyStoppingType_Value_TrainingJobEarlyStoppingType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + TrainingJobEarlyStoppingType_Value_TrainingJobEarlyStoppingType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool TrainingJobEarlyStoppingType_Value_IsValid(int value); +const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType_Value_Value_MIN = TrainingJobEarlyStoppingType_Value_OFF; +const TrainingJobEarlyStoppingType_Value TrainingJobEarlyStoppingType_Value_Value_MAX = TrainingJobEarlyStoppingType_Value_AUTO; +const int TrainingJobEarlyStoppingType_Value_Value_ARRAYSIZE = TrainingJobEarlyStoppingType_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TrainingJobEarlyStoppingType_Value_descriptor(); +inline const ::std::string& TrainingJobEarlyStoppingType_Value_Name(TrainingJobEarlyStoppingType_Value value) { + return ::google::protobuf::internal::NameOfEnum( + TrainingJobEarlyStoppingType_Value_descriptor(), value); +} +inline bool TrainingJobEarlyStoppingType_Value_Parse( + const ::std::string& name, TrainingJobEarlyStoppingType_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TrainingJobEarlyStoppingType_Value_descriptor(), name, value); +} +// =================================================================== + +class HyperparameterTuningJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningJob) */ { + public: + HyperparameterTuningJob(); + virtual ~HyperparameterTuningJob(); + + HyperparameterTuningJob(const HyperparameterTuningJob& from); + + inline HyperparameterTuningJob& operator=(const HyperparameterTuningJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterTuningJob(HyperparameterTuningJob&& from) noexcept + : HyperparameterTuningJob() { + *this = ::std::move(from); + } + + inline HyperparameterTuningJob& operator=(HyperparameterTuningJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterTuningJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterTuningJob* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(HyperparameterTuningJob* other); + friend void swap(HyperparameterTuningJob& a, HyperparameterTuningJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterTuningJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterTuningJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterTuningJob& from); + void MergeFrom(const HyperparameterTuningJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterTuningJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + bool has_training_job() const; + void clear_training_job(); + static const int kTrainingJobFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::TrainingJob& training_job() const; + ::flyteidl::plugins::sagemaker::TrainingJob* release_training_job(); + ::flyteidl::plugins::sagemaker::TrainingJob* mutable_training_job(); + void set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job); + + // int64 max_number_of_training_jobs = 2; + void clear_max_number_of_training_jobs(); + static const int kMaxNumberOfTrainingJobsFieldNumber = 2; + ::google::protobuf::int64 max_number_of_training_jobs() const; + void set_max_number_of_training_jobs(::google::protobuf::int64 value); + + // int64 max_parallel_training_jobs = 3; + void clear_max_parallel_training_jobs(); + static const int kMaxParallelTrainingJobsFieldNumber = 3; + ::google::protobuf::int64 max_parallel_training_jobs() const; + void set_max_parallel_training_jobs(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::TrainingJob* training_job_; + ::google::protobuf::int64 max_number_of_training_jobs_; + ::google::protobuf::int64 max_parallel_training_jobs_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class HyperparameterTuningObjectiveType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) */ { + public: + HyperparameterTuningObjectiveType(); + virtual ~HyperparameterTuningObjectiveType(); + + HyperparameterTuningObjectiveType(const HyperparameterTuningObjectiveType& from); + + inline HyperparameterTuningObjectiveType& operator=(const HyperparameterTuningObjectiveType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterTuningObjectiveType(HyperparameterTuningObjectiveType&& from) noexcept + : HyperparameterTuningObjectiveType() { + *this = ::std::move(from); + } + + inline HyperparameterTuningObjectiveType& operator=(HyperparameterTuningObjectiveType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterTuningObjectiveType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterTuningObjectiveType* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningObjectiveType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(HyperparameterTuningObjectiveType* other); + friend void swap(HyperparameterTuningObjectiveType& a, HyperparameterTuningObjectiveType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterTuningObjectiveType* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterTuningObjectiveType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterTuningObjectiveType& from); + void MergeFrom(const HyperparameterTuningObjectiveType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterTuningObjectiveType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HyperparameterTuningObjectiveType_Value Value; + static const Value MINIMIZE = + HyperparameterTuningObjectiveType_Value_MINIMIZE; + static const Value MAXIMIZE = + HyperparameterTuningObjectiveType_Value_MAXIMIZE; + static inline bool Value_IsValid(int value) { + return HyperparameterTuningObjectiveType_Value_IsValid(value); + } + static const Value Value_MIN = + HyperparameterTuningObjectiveType_Value_Value_MIN; + static const Value Value_MAX = + HyperparameterTuningObjectiveType_Value_Value_MAX; + static const int Value_ARRAYSIZE = + HyperparameterTuningObjectiveType_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return HyperparameterTuningObjectiveType_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return HyperparameterTuningObjectiveType_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return HyperparameterTuningObjectiveType_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class HyperparameterTuningObjective final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) */ { + public: + HyperparameterTuningObjective(); + virtual ~HyperparameterTuningObjective(); + + HyperparameterTuningObjective(const HyperparameterTuningObjective& from); + + inline HyperparameterTuningObjective& operator=(const HyperparameterTuningObjective& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterTuningObjective(HyperparameterTuningObjective&& from) noexcept + : HyperparameterTuningObjective() { + *this = ::std::move(from); + } + + inline HyperparameterTuningObjective& operator=(HyperparameterTuningObjective&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterTuningObjective& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterTuningObjective* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningObjective_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(HyperparameterTuningObjective* other); + friend void swap(HyperparameterTuningObjective& a, HyperparameterTuningObjective& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterTuningObjective* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterTuningObjective* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterTuningObjective& from); + void MergeFrom(const HyperparameterTuningObjective& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterTuningObjective* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string metric_name = 2; + void clear_metric_name(); + static const int kMetricNameFieldNumber = 2; + const ::std::string& metric_name() const; + void set_metric_name(const ::std::string& value); + #if LANG_CXX11 + void set_metric_name(::std::string&& value); + #endif + void set_metric_name(const char* value); + void set_metric_name(const char* value, size_t size); + ::std::string* mutable_metric_name(); + ::std::string* release_metric_name(); + void set_allocated_metric_name(::std::string* metric_name); + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + void clear_objective_type(); + static const int kObjectiveTypeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value objective_type() const; + void set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr metric_name_; + int objective_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class HyperparameterTuningStrategy final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) */ { + public: + HyperparameterTuningStrategy(); + virtual ~HyperparameterTuningStrategy(); + + HyperparameterTuningStrategy(const HyperparameterTuningStrategy& from); + + inline HyperparameterTuningStrategy& operator=(const HyperparameterTuningStrategy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterTuningStrategy(HyperparameterTuningStrategy&& from) noexcept + : HyperparameterTuningStrategy() { + *this = ::std::move(from); + } + + inline HyperparameterTuningStrategy& operator=(HyperparameterTuningStrategy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterTuningStrategy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterTuningStrategy* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningStrategy_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(HyperparameterTuningStrategy* other); + friend void swap(HyperparameterTuningStrategy& a, HyperparameterTuningStrategy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterTuningStrategy* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterTuningStrategy* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterTuningStrategy& from); + void MergeFrom(const HyperparameterTuningStrategy& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterTuningStrategy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HyperparameterTuningStrategy_Value Value; + static const Value BAYESIAN = + HyperparameterTuningStrategy_Value_BAYESIAN; + static const Value RANDOM = + HyperparameterTuningStrategy_Value_RANDOM; + static inline bool Value_IsValid(int value) { + return HyperparameterTuningStrategy_Value_IsValid(value); + } + static const Value Value_MIN = + HyperparameterTuningStrategy_Value_Value_MIN; + static const Value Value_MAX = + HyperparameterTuningStrategy_Value_Value_MAX; + static const int Value_ARRAYSIZE = + HyperparameterTuningStrategy_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return HyperparameterTuningStrategy_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return HyperparameterTuningStrategy_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return HyperparameterTuningStrategy_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class TrainingJobEarlyStoppingType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) */ { + public: + TrainingJobEarlyStoppingType(); + virtual ~TrainingJobEarlyStoppingType(); + + TrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType& from); + + inline TrainingJobEarlyStoppingType& operator=(const TrainingJobEarlyStoppingType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType&& from) noexcept + : TrainingJobEarlyStoppingType() { + *this = ::std::move(from); + } + + inline TrainingJobEarlyStoppingType& operator=(TrainingJobEarlyStoppingType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TrainingJobEarlyStoppingType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TrainingJobEarlyStoppingType* internal_default_instance() { + return reinterpret_cast( + &_TrainingJobEarlyStoppingType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TrainingJobEarlyStoppingType* other); + friend void swap(TrainingJobEarlyStoppingType& a, TrainingJobEarlyStoppingType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TrainingJobEarlyStoppingType* New() const final { + return CreateMaybeMessage(nullptr); + } + + TrainingJobEarlyStoppingType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TrainingJobEarlyStoppingType& from); + void MergeFrom(const TrainingJobEarlyStoppingType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJobEarlyStoppingType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef TrainingJobEarlyStoppingType_Value Value; + static const Value OFF = + TrainingJobEarlyStoppingType_Value_OFF; + static const Value AUTO = + TrainingJobEarlyStoppingType_Value_AUTO; + static inline bool Value_IsValid(int value) { + return TrainingJobEarlyStoppingType_Value_IsValid(value); + } + static const Value Value_MIN = + TrainingJobEarlyStoppingType_Value_Value_MIN; + static const Value Value_MAX = + TrainingJobEarlyStoppingType_Value_Value_MAX; + static const int Value_ARRAYSIZE = + TrainingJobEarlyStoppingType_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return TrainingJobEarlyStoppingType_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return TrainingJobEarlyStoppingType_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return TrainingJobEarlyStoppingType_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class HyperparameterTuningJobConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) */ { + public: + HyperparameterTuningJobConfig(); + virtual ~HyperparameterTuningJobConfig(); + + HyperparameterTuningJobConfig(const HyperparameterTuningJobConfig& from); + + inline HyperparameterTuningJobConfig& operator=(const HyperparameterTuningJobConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterTuningJobConfig(HyperparameterTuningJobConfig&& from) noexcept + : HyperparameterTuningJobConfig() { + *this = ::std::move(from); + } + + inline HyperparameterTuningJobConfig& operator=(HyperparameterTuningJobConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterTuningJobConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterTuningJobConfig* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterTuningJobConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(HyperparameterTuningJobConfig* other); + friend void swap(HyperparameterTuningJobConfig& a, HyperparameterTuningJobConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterTuningJobConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterTuningJobConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterTuningJobConfig& from); + void MergeFrom(const HyperparameterTuningJobConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterTuningJobConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + bool has_hyperparameter_ranges() const; + void clear_hyperparameter_ranges(); + static const int kHyperparameterRangesFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::ParameterRanges& hyperparameter_ranges() const; + ::flyteidl::plugins::sagemaker::ParameterRanges* release_hyperparameter_ranges(); + ::flyteidl::plugins::sagemaker::ParameterRanges* mutable_hyperparameter_ranges(); + void set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges); + + // .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + bool has_tuning_objective() const; + void clear_tuning_objective(); + static const int kTuningObjectiveFieldNumber = 3; + const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& tuning_objective() const; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* release_tuning_objective(); + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* mutable_tuning_objective(); + void set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective); + + // .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + void clear_tuning_strategy(); + static const int kTuningStrategyFieldNumber = 2; + ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value tuning_strategy() const; + void set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value value); + + // .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + void clear_training_job_early_stopping_type(); + static const int kTrainingJobEarlyStoppingTypeFieldNumber = 4; + ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value training_job_early_stopping_type() const; + void set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges_; + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective_; + int tuning_strategy_; + int training_job_early_stopping_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HyperparameterTuningJob + +// .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; +inline bool HyperparameterTuningJob::has_training_job() const { + return this != internal_default_instance() && training_job_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::TrainingJob& HyperparameterTuningJob::training_job() const { + const ::flyteidl::plugins::sagemaker::TrainingJob* p = training_job_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HyperparameterTuningJob::release_training_job() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) + + ::flyteidl::plugins::sagemaker::TrainingJob* temp = training_job_; + training_job_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::TrainingJob* HyperparameterTuningJob::mutable_training_job() { + + if (training_job_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(GetArenaNoVirtual()); + training_job_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) + return training_job_; +} +inline void HyperparameterTuningJob::set_allocated_training_job(::flyteidl::plugins::sagemaker::TrainingJob* training_job) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(training_job_); + } + if (training_job) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + training_job = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job, submessage_arena); + } + + } else { + + } + training_job_ = training_job; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningJob.training_job) +} + +// int64 max_number_of_training_jobs = 2; +inline void HyperparameterTuningJob::clear_max_number_of_training_jobs() { + max_number_of_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HyperparameterTuningJob::max_number_of_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_number_of_training_jobs) + return max_number_of_training_jobs_; +} +inline void HyperparameterTuningJob::set_max_number_of_training_jobs(::google::protobuf::int64 value) { + + max_number_of_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_number_of_training_jobs) +} + +// int64 max_parallel_training_jobs = 3; +inline void HyperparameterTuningJob::clear_max_parallel_training_jobs() { + max_parallel_training_jobs_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 HyperparameterTuningJob::max_parallel_training_jobs() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_parallel_training_jobs) + return max_parallel_training_jobs_; +} +inline void HyperparameterTuningJob::set_max_parallel_training_jobs(::google::protobuf::int64 value) { + + max_parallel_training_jobs_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJob.max_parallel_training_jobs) +} + +// ------------------------------------------------------------------- + +// HyperparameterTuningObjectiveType + +// ------------------------------------------------------------------- + +// HyperparameterTuningObjective + +// .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; +inline void HyperparameterTuningObjective::clear_objective_type() { + objective_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value HyperparameterTuningObjective::objective_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value >(objective_type_); +} +inline void HyperparameterTuningObjective::set_objective_type(::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value value) { + + objective_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.objective_type) +} + +// string metric_name = 2; +inline void HyperparameterTuningObjective::clear_metric_name() { + metric_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HyperparameterTuningObjective::metric_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + return metric_name_.GetNoArena(); +} +inline void HyperparameterTuningObjective::set_metric_name(const ::std::string& value) { + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +#if LANG_CXX11 +inline void HyperparameterTuningObjective::set_metric_name(::std::string&& value) { + + metric_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +#endif +inline void HyperparameterTuningObjective::set_metric_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +inline void HyperparameterTuningObjective::set_metric_name(const char* value, size_t size) { + + metric_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} +inline ::std::string* HyperparameterTuningObjective::mutable_metric_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + return metric_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HyperparameterTuningObjective::release_metric_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) + + return metric_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HyperparameterTuningObjective::set_allocated_metric_name(::std::string* metric_name) { + if (metric_name != nullptr) { + + } else { + + } + metric_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metric_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningObjective.metric_name) +} + +// ------------------------------------------------------------------- + +// HyperparameterTuningStrategy + +// ------------------------------------------------------------------- + +// TrainingJobEarlyStoppingType + +// ------------------------------------------------------------------- + +// HyperparameterTuningJobConfig + +// .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; +inline bool HyperparameterTuningJobConfig::has_hyperparameter_ranges() const { + return this != internal_default_instance() && hyperparameter_ranges_ != nullptr; +} +inline const ::flyteidl::plugins::sagemaker::ParameterRanges& HyperparameterTuningJobConfig::hyperparameter_ranges() const { + const ::flyteidl::plugins::sagemaker::ParameterRanges* p = hyperparameter_ranges_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningJobConfig::release_hyperparameter_ranges() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges) + + ::flyteidl::plugins::sagemaker::ParameterRanges* temp = hyperparameter_ranges_; + hyperparameter_ranges_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::ParameterRanges* HyperparameterTuningJobConfig::mutable_hyperparameter_ranges() { + + if (hyperparameter_ranges_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(GetArenaNoVirtual()); + hyperparameter_ranges_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges) + return hyperparameter_ranges_; +} +inline void HyperparameterTuningJobConfig::set_allocated_hyperparameter_ranges(::flyteidl::plugins::sagemaker::ParameterRanges* hyperparameter_ranges) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(hyperparameter_ranges_); + } + if (hyperparameter_ranges) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + hyperparameter_ranges = ::google::protobuf::internal::GetOwnedMessage( + message_arena, hyperparameter_ranges, submessage_arena); + } + + } else { + + } + hyperparameter_ranges_ = hyperparameter_ranges; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.hyperparameter_ranges) +} + +// .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; +inline void HyperparameterTuningJobConfig::clear_tuning_strategy() { + tuning_strategy_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value HyperparameterTuningJobConfig::tuning_strategy() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_strategy) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value >(tuning_strategy_); +} +inline void HyperparameterTuningJobConfig::set_tuning_strategy(::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value value) { + + tuning_strategy_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_strategy) +} + +// .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; +inline bool HyperparameterTuningJobConfig::has_tuning_objective() const { + return this != internal_default_instance() && tuning_objective_ != nullptr; +} +inline void HyperparameterTuningJobConfig::clear_tuning_objective() { + if (GetArenaNoVirtual() == nullptr && tuning_objective_ != nullptr) { + delete tuning_objective_; + } + tuning_objective_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective& HyperparameterTuningJobConfig::tuning_objective() const { + const ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* p = tuning_objective_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_HyperparameterTuningObjective_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningJobConfig::release_tuning_objective() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective) + + ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* temp = tuning_objective_; + tuning_objective_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* HyperparameterTuningJobConfig::mutable_tuning_objective() { + + if (tuning_objective_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterTuningObjective>(GetArenaNoVirtual()); + tuning_objective_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective) + return tuning_objective_; +} +inline void HyperparameterTuningJobConfig::set_allocated_tuning_objective(::flyteidl::plugins::sagemaker::HyperparameterTuningObjective* tuning_objective) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete tuning_objective_; + } + if (tuning_objective) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + tuning_objective = ::google::protobuf::internal::GetOwnedMessage( + message_arena, tuning_objective, submessage_arena); + } + + } else { + + } + tuning_objective_ = tuning_objective; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.tuning_objective) +} + +// .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; +inline void HyperparameterTuningJobConfig::clear_training_job_early_stopping_type() { + training_job_early_stopping_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value HyperparameterTuningJobConfig::training_job_early_stopping_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.training_job_early_stopping_type) + return static_cast< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value >(training_job_early_stopping_type_); +} +inline void HyperparameterTuningJobConfig::set_training_job_early_stopping_type(::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value value) { + + training_job_early_stopping_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig.training_job_early_stopping_type) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value>() { + return ::flyteidl::plugins::sagemaker::HyperparameterTuningObjectiveType_Value_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value>() { + return ::flyteidl::plugins::sagemaker::HyperparameterTuningStrategy_Value_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value>() { + return ::flyteidl::plugins::sagemaker::TrainingJobEarlyStoppingType_Value_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fhyperparameter_5ftuning_5fjob_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc new file mode 100644 index 0000000000..7c840ad690 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" +#include "flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h new file mode 100644 index 0000000000..c314f50a3e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc new file mode 100644 index 0000000000..aa81114738 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.cc @@ -0,0 +1,2460 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +#include "flyteidl/plugins/sagemaker/parameter_ranges.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class HyperparameterScalingTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _HyperparameterScalingType_default_instance_; +class ContinuousParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ContinuousParameterRange_default_instance_; +class IntegerParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _IntegerParameterRange_default_instance_; +class CategoricalParameterRangeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CategoricalParameterRange_default_instance_; +class ParameterRangeOneOfDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; + const ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; +} _ParameterRangeOneOf_default_instance_; +class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; +class ParameterRangesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _ParameterRanges_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsHyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_HyperparameterScalingType_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::HyperparameterScalingType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::HyperparameterScalingType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_HyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; + +static void InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ContinuousParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ContinuousParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; + +static void InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::IntegerParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::IntegerParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; + +static void InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::CategoricalParameterRange(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::CategoricalParameterRange::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, {}}; + +static void InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRangeOneOf(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ParameterRangeOneOf::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base, + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; + +static void InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse(); + } + ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; + +static void InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::ParameterRanges(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::ParameterRanges::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto}, { + &scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_HyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_ParameterRangeMapEntry_DoNotUse_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[7]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::HyperparameterScalingType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, max_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, min_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ContinuousParameterRange, scaling_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, max_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, min_value_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::IntegerParameterRange, scaling_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::CategoricalParameterRange, values_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, continuous_parameter_range_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, integer_parameter_range_), + offsetof(::flyteidl::plugins::sagemaker::ParameterRangeOneOfDefaultTypeInternal, categorical_parameter_range_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRangeOneOf, parameter_range_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::ParameterRanges, parameter_range_map_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::HyperparameterScalingType)}, + { 5, -1, sizeof(::flyteidl::plugins::sagemaker::ContinuousParameterRange)}, + { 13, -1, sizeof(::flyteidl::plugins::sagemaker::IntegerParameterRange)}, + { 21, -1, sizeof(::flyteidl::plugins::sagemaker::CategoricalParameterRange)}, + { 27, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRangeOneOf)}, + { 36, 43, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse)}, + { 45, -1, sizeof(::flyteidl::plugins::sagemaker::ParameterRanges)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_HyperparameterScalingType_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_ParameterRanges_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, "flyteidl/plugins/sagemaker/parameter_ranges.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 7, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[] = + "\n1flyteidl/plugins/sagemaker/parameter_r" + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + "c\n\031HyperparameterScalingType\"F\n\005Value\022\010\n" + "\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022" + "REVERSELOGARITHMIC\020\003\"\223\001\n\030ContinuousParam" + "eterRange\022\021\n\tmax_value\030\001 \001(\001\022\021\n\tmin_valu" + "e\030\002 \001(\001\022Q\n\014scaling_type\030\003 \001(\0162;.flyteidl" + ".plugins.sagemaker.HyperparameterScaling" + "Type.Value\"\220\001\n\025IntegerParameterRange\022\021\n\t" + "max_value\030\001 \001(\003\022\021\n\tmin_value\030\002 \001(\003\022Q\n\014sc" + "aling_type\030\003 \001(\0162;.flyteidl.plugins.sage" + "maker.HyperparameterScalingType.Value\"+\n" + "\031CategoricalParameterRange\022\016\n\006values\030\001 \003" + "(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032continuous" + "_parameter_range\030\001 \001(\01324.flyteidl.plugin" + "s.sagemaker.ContinuousParameterRangeH\000\022T" + "\n\027integer_parameter_range\030\002 \001(\01321.flytei" + "dl.plugins.sagemaker.IntegerParameterRan" + "geH\000\022\\\n\033categorical_parameter_range\030\003 \001(" + "\01325.flyteidl.plugins.sagemaker.Categoric" + "alParameterRangeH\000B\026\n\024parameter_range_ty" + "pe\"\335\001\n\017ParameterRanges\022_\n\023parameter_rang" + "e_map\030\001 \003(\0132B.flyteidl.plugins.sagemaker" + ".ParameterRanges.ParameterRangeMapEntry\032" + "i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>" + "\n\005value\030\002 \001(\0132/.flyteidl.plugins.sagemak" + "er.ParameterRangeOneOf:\0028\001B9Z7github.com" + "/flyteorg/flyteidl/gen/pb-go/flyteidl/pl" + "uginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, + "flyteidl/plugins/sagemaker/parameter_ranges.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, 1133, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[0]; +} +bool HyperparameterScalingType_Value_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const HyperparameterScalingType_Value HyperparameterScalingType::AUTO; +const HyperparameterScalingType_Value HyperparameterScalingType::LINEAR; +const HyperparameterScalingType_Value HyperparameterScalingType::LOGARITHMIC; +const HyperparameterScalingType_Value HyperparameterScalingType::REVERSELOGARITHMIC; +const HyperparameterScalingType_Value HyperparameterScalingType::Value_MIN; +const HyperparameterScalingType_Value HyperparameterScalingType::Value_MAX; +const int HyperparameterScalingType::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void HyperparameterScalingType::InitAsDefaultInstance() { +} +class HyperparameterScalingType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HyperparameterScalingType::HyperparameterScalingType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.HyperparameterScalingType) +} +HyperparameterScalingType::HyperparameterScalingType(const HyperparameterScalingType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.HyperparameterScalingType) +} + +void HyperparameterScalingType::SharedCtor() { +} + +HyperparameterScalingType::~HyperparameterScalingType() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.HyperparameterScalingType) + SharedDtor(); +} + +void HyperparameterScalingType::SharedDtor() { +} + +void HyperparameterScalingType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const HyperparameterScalingType& HyperparameterScalingType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_HyperparameterScalingType_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + return *internal_default_instance(); +} + + +void HyperparameterScalingType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* HyperparameterScalingType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool HyperparameterScalingType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.HyperparameterScalingType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.HyperparameterScalingType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void HyperparameterScalingType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.HyperparameterScalingType) +} + +::google::protobuf::uint8* HyperparameterScalingType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.HyperparameterScalingType) + return target; +} + +size_t HyperparameterScalingType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void HyperparameterScalingType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + GOOGLE_DCHECK_NE(&from, this); + const HyperparameterScalingType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.HyperparameterScalingType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.HyperparameterScalingType) + MergeFrom(*source); + } +} + +void HyperparameterScalingType::MergeFrom(const HyperparameterScalingType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void HyperparameterScalingType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HyperparameterScalingType::CopyFrom(const HyperparameterScalingType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.HyperparameterScalingType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HyperparameterScalingType::IsInitialized() const { + return true; +} + +void HyperparameterScalingType::Swap(HyperparameterScalingType* other) { + if (other == this) return; + InternalSwap(other); +} +void HyperparameterScalingType::InternalSwap(HyperparameterScalingType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata HyperparameterScalingType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ContinuousParameterRange::InitAsDefaultInstance() { +} +class ContinuousParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContinuousParameterRange::kMaxValueFieldNumber; +const int ContinuousParameterRange::kMinValueFieldNumber; +const int ContinuousParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContinuousParameterRange::ContinuousParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} +ContinuousParameterRange::ContinuousParameterRange(const ContinuousParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&max_value_, &from.max_value_, + static_cast(reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} + +void ContinuousParameterRange::SharedCtor() { + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); +} + +ContinuousParameterRange::~ContinuousParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ContinuousParameterRange) + SharedDtor(); +} + +void ContinuousParameterRange::SharedDtor() { +} + +void ContinuousParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ContinuousParameterRange& ContinuousParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ContinuousParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + return *internal_default_instance(); +} + + +void ContinuousParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ContinuousParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // double max_value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 9) goto handle_unusual; + msg->set_max_value(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // double min_value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; + msg->set_min_value(::google::protobuf::io::UnalignedLoad(ptr)); + ptr += sizeof(double); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ContinuousParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // double max_value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (9 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &max_value_))); + } else { + goto handle_unusual; + } + break; + } + + // double min_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &min_value_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ContinuousParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double max_value = 1; + if (this->max_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->max_value(), output); + } + + // double min_value = 2; + if (this->min_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->min_value(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + if (this->scaling_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->scaling_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) +} + +::google::protobuf::uint8* ContinuousParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // double max_value = 1; + if (this->max_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->max_value(), target); + } + + // double min_value = 2; + if (this->min_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->min_value(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + if (this->scaling_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->scaling_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ContinuousParameterRange) + return target; +} + +size_t ContinuousParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // double max_value = 1; + if (this->max_value() != 0) { + total_size += 1 + 8; + } + + // double min_value = 2; + if (this->min_value() != 0) { + total_size += 1 + 8; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + if (this->scaling_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ContinuousParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const ContinuousParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ContinuousParameterRange) + MergeFrom(*source); + } +} + +void ContinuousParameterRange::MergeFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.max_value() != 0) { + set_max_value(from.max_value()); + } + if (from.min_value() != 0) { + set_min_value(from.min_value()); + } + if (from.scaling_type() != 0) { + set_scaling_type(from.scaling_type()); + } +} + +void ContinuousParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContinuousParameterRange::CopyFrom(const ContinuousParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ContinuousParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContinuousParameterRange::IsInitialized() const { + return true; +} + +void ContinuousParameterRange::Swap(ContinuousParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void ContinuousParameterRange::InternalSwap(ContinuousParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(max_value_, other->max_value_); + swap(min_value_, other->min_value_); + swap(scaling_type_, other->scaling_type_); +} + +::google::protobuf::Metadata ContinuousParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void IntegerParameterRange::InitAsDefaultInstance() { +} +class IntegerParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IntegerParameterRange::kMaxValueFieldNumber; +const int IntegerParameterRange::kMinValueFieldNumber; +const int IntegerParameterRange::kScalingTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IntegerParameterRange::IntegerParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) +} +IntegerParameterRange::IntegerParameterRange(const IntegerParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&max_value_, &from.max_value_, + static_cast(reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.IntegerParameterRange) +} + +void IntegerParameterRange::SharedCtor() { + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); +} + +IntegerParameterRange::~IntegerParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.IntegerParameterRange) + SharedDtor(); +} + +void IntegerParameterRange::SharedDtor() { +} + +void IntegerParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IntegerParameterRange& IntegerParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_IntegerParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + return *internal_default_instance(); +} + + +void IntegerParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&max_value_, 0, static_cast( + reinterpret_cast(&scaling_type_) - + reinterpret_cast(&max_value_)) + sizeof(scaling_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IntegerParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 max_value = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_max_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int64 min_value = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_min_value(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_scaling_type(static_cast<::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IntegerParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 max_value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &max_value_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 min_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &min_value_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_scaling_type(static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.IntegerParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.IntegerParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IntegerParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 max_value = 1; + if (this->max_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->max_value(), output); + } + + // int64 min_value = 2; + if (this->min_value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_value(), output); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + if (this->scaling_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->scaling_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.IntegerParameterRange) +} + +::google::protobuf::uint8* IntegerParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 max_value = 1; + if (this->max_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->max_value(), target); + } + + // int64 min_value = 2; + if (this->min_value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_value(), target); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + if (this->scaling_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->scaling_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.IntegerParameterRange) + return target; +} + +size_t IntegerParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 max_value = 1; + if (this->max_value() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->max_value()); + } + + // int64 min_value = 2; + if (this->min_value() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min_value()); + } + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + if (this->scaling_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->scaling_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IntegerParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const IntegerParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.IntegerParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.IntegerParameterRange) + MergeFrom(*source); + } +} + +void IntegerParameterRange::MergeFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.max_value() != 0) { + set_max_value(from.max_value()); + } + if (from.min_value() != 0) { + set_min_value(from.min_value()); + } + if (from.scaling_type() != 0) { + set_scaling_type(from.scaling_type()); + } +} + +void IntegerParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IntegerParameterRange::CopyFrom(const IntegerParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.IntegerParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IntegerParameterRange::IsInitialized() const { + return true; +} + +void IntegerParameterRange::Swap(IntegerParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void IntegerParameterRange::InternalSwap(IntegerParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(max_value_, other->max_value_); + swap(min_value_, other->min_value_); + swap(scaling_type_, other->scaling_type_); +} + +::google::protobuf::Metadata IntegerParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CategoricalParameterRange::InitAsDefaultInstance() { +} +class CategoricalParameterRange::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CategoricalParameterRange::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CategoricalParameterRange::CategoricalParameterRange() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} +CategoricalParameterRange::CategoricalParameterRange(const CategoricalParameterRange& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + values_(from.values_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} + +void CategoricalParameterRange::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); +} + +CategoricalParameterRange::~CategoricalParameterRange() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.CategoricalParameterRange) + SharedDtor(); +} + +void CategoricalParameterRange::SharedDtor() { +} + +void CategoricalParameterRange::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CategoricalParameterRange& CategoricalParameterRange::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CategoricalParameterRange_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + return *internal_default_instance(); +} + + +void CategoricalParameterRange::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CategoricalParameterRange::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string values = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); + object = msg->add_values(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CategoricalParameterRange::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_values())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(this->values_size() - 1).data(), + static_cast(this->values(this->values_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CategoricalParameterRange::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->values(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) +} + +::google::protobuf::uint8* CategoricalParameterRange::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string values = 1; + for (int i = 0, n = this->values_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->values(i).data(), static_cast(this->values(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.CategoricalParameterRange.values"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->values(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.CategoricalParameterRange) + return target; +} + +size_t CategoricalParameterRange::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + for (int i = 0, n = this->values_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->values(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CategoricalParameterRange::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + const CategoricalParameterRange* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.CategoricalParameterRange) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.CategoricalParameterRange) + MergeFrom(*source); + } +} + +void CategoricalParameterRange::MergeFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void CategoricalParameterRange::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CategoricalParameterRange::CopyFrom(const CategoricalParameterRange& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.CategoricalParameterRange) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CategoricalParameterRange::IsInitialized() const { + return true; +} + +void CategoricalParameterRange::Swap(CategoricalParameterRange* other) { + if (other == this) return; + InternalSwap(other); +} +void CategoricalParameterRange::InternalSwap(CategoricalParameterRange* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + values_.InternalSwap(CastToBase(&other->values_)); +} + +::google::protobuf::Metadata CategoricalParameterRange::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParameterRangeOneOf::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.continuous_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>( + ::flyteidl::plugins::sagemaker::ContinuousParameterRange::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.integer_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>( + ::flyteidl::plugins::sagemaker::IntegerParameterRange::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_ParameterRangeOneOf_default_instance_.categorical_parameter_range_ = const_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>( + ::flyteidl::plugins::sagemaker::CategoricalParameterRange::internal_default_instance()); +} +class ParameterRangeOneOf::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range(const ParameterRangeOneOf* msg); + static const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range(const ParameterRangeOneOf* msg); +}; + +const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& +ParameterRangeOneOf::HasBitSetters::continuous_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->parameter_range_type_.continuous_parameter_range_; +} +const ::flyteidl::plugins::sagemaker::IntegerParameterRange& +ParameterRangeOneOf::HasBitSetters::integer_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->parameter_range_type_.integer_parameter_range_; +} +const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& +ParameterRangeOneOf::HasBitSetters::categorical_parameter_range(const ParameterRangeOneOf* msg) { + return *msg->parameter_range_type_.categorical_parameter_range_; +} +void ParameterRangeOneOf::set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_parameter_range_type(); + if (continuous_parameter_range) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + continuous_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, continuous_parameter_range, submessage_arena); + } + set_has_continuous_parameter_range(); + parameter_range_type_.continuous_parameter_range_ = continuous_parameter_range; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) +} +void ParameterRangeOneOf::set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_parameter_range_type(); + if (integer_parameter_range) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + integer_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, integer_parameter_range, submessage_arena); + } + set_has_integer_parameter_range(); + parameter_range_type_.integer_parameter_range_ = integer_parameter_range; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) +} +void ParameterRangeOneOf::set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_parameter_range_type(); + if (categorical_parameter_range) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + categorical_parameter_range = ::google::protobuf::internal::GetOwnedMessage( + message_arena, categorical_parameter_range, submessage_arena); + } + set_has_categorical_parameter_range(); + parameter_range_type_.categorical_parameter_range_ = categorical_parameter_range; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterRangeOneOf::kContinuousParameterRangeFieldNumber; +const int ParameterRangeOneOf::kIntegerParameterRangeFieldNumber; +const int ParameterRangeOneOf::kCategoricalParameterRangeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterRangeOneOf::ParameterRangeOneOf() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} +ParameterRangeOneOf::ParameterRangeOneOf(const ParameterRangeOneOf& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_parameter_range_type(); + switch (from.parameter_range_type_case()) { + case kContinuousParameterRange: { + mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); + break; + } + case kIntegerParameterRange: { + mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); + break; + } + case kCategoricalParameterRange: { + mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} + +void ParameterRangeOneOf::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + clear_has_parameter_range_type(); +} + +ParameterRangeOneOf::~ParameterRangeOneOf() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + SharedDtor(); +} + +void ParameterRangeOneOf::SharedDtor() { + if (has_parameter_range_type()) { + clear_parameter_range_type(); + } +} + +void ParameterRangeOneOf::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterRangeOneOf& ParameterRangeOneOf::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRangeOneOf_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterRangeOneOf::clear_parameter_range_type() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + switch (parameter_range_type_case()) { + case kContinuousParameterRange: { + delete parameter_range_type_.continuous_parameter_range_; + break; + } + case kIntegerParameterRange: { + delete parameter_range_type_.integer_parameter_range_; + break; + } + case kCategoricalParameterRange: { + delete parameter_range_type_.categorical_parameter_range_; + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; +} + + +void ParameterRangeOneOf::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_parameter_range_type(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterRangeOneOf::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::ContinuousParameterRange::_InternalParse; + object = msg->mutable_continuous_parameter_range(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::IntegerParameterRange::_InternalParse; + object = msg->mutable_integer_parameter_range(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::CategoricalParameterRange::_InternalParse; + object = msg->mutable_categorical_parameter_range(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRangeOneOf::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_continuous_parameter_range())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_integer_parameter_range())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_categorical_parameter_range())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterRangeOneOf::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + if (has_continuous_parameter_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::continuous_parameter_range(this), output); + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + if (has_integer_parameter_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::integer_parameter_range(this), output); + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + if (has_categorical_parameter_range()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::categorical_parameter_range(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) +} + +::google::protobuf::uint8* ParameterRangeOneOf::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + if (has_continuous_parameter_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::continuous_parameter_range(this), target); + } + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + if (has_integer_parameter_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::integer_parameter_range(this), target); + } + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + if (has_categorical_parameter_range()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::categorical_parameter_range(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + return target; +} + +size_t ParameterRangeOneOf::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (parameter_range_type_case()) { + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + case kContinuousParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameter_range_type_.continuous_parameter_range_); + break; + } + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + case kIntegerParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameter_range_type_.integer_parameter_range_); + break; + } + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + case kCategoricalParameterRange: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *parameter_range_type_.categorical_parameter_range_); + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterRangeOneOf::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + GOOGLE_DCHECK_NE(&from, this); + const ParameterRangeOneOf* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + MergeFrom(*source); + } +} + +void ParameterRangeOneOf::MergeFrom(const ParameterRangeOneOf& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.parameter_range_type_case()) { + case kContinuousParameterRange: { + mutable_continuous_parameter_range()->::flyteidl::plugins::sagemaker::ContinuousParameterRange::MergeFrom(from.continuous_parameter_range()); + break; + } + case kIntegerParameterRange: { + mutable_integer_parameter_range()->::flyteidl::plugins::sagemaker::IntegerParameterRange::MergeFrom(from.integer_parameter_range()); + break; + } + case kCategoricalParameterRange: { + mutable_categorical_parameter_range()->::flyteidl::plugins::sagemaker::CategoricalParameterRange::MergeFrom(from.categorical_parameter_range()); + break; + } + case PARAMETER_RANGE_TYPE_NOT_SET: { + break; + } + } +} + +void ParameterRangeOneOf::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterRangeOneOf::CopyFrom(const ParameterRangeOneOf& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterRangeOneOf::IsInitialized() const { + return true; +} + +void ParameterRangeOneOf::Swap(ParameterRangeOneOf* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterRangeOneOf::InternalSwap(ParameterRangeOneOf* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(parameter_range_type_, other->parameter_range_type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata ParameterRangeOneOf::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse() {} +ParameterRanges_ParameterRangeMapEntry_DoNotUse::ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ParameterRanges_ParameterRangeMapEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[5]; +} +void ParameterRanges_ParameterRangeMapEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void ParameterRanges::InitAsDefaultInstance() { +} +class ParameterRanges::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterRanges::kParameterRangeMapFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterRanges::ParameterRanges() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.ParameterRanges) +} +ParameterRanges::ParameterRanges(const ParameterRanges& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + parameter_range_map_.MergeFrom(from.parameter_range_map_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.ParameterRanges) +} + +void ParameterRanges::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); +} + +ParameterRanges::~ParameterRanges() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.ParameterRanges) + SharedDtor(); +} + +void ParameterRanges::SharedDtor() { +} + +void ParameterRanges::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ParameterRanges& ParameterRanges::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ParameterRanges_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto.base); + return *internal_default_instance(); +} + + +void ParameterRanges::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parameter_range_map_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* ParameterRanges::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // map parameter_range_map = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->parameter_range_map_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool ParameterRanges::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.ParameterRanges) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // map parameter_range_map = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + ParameterRanges_ParameterRangeMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, + ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf > > parser(¶meter_range_map_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.ParameterRanges) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.ParameterRanges) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void ParameterRanges::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameter_range_map = 1; + if (!this->parameter_range_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->parameter_range_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameter_range_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.ParameterRanges) +} + +::google::protobuf::uint8* ParameterRanges::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameter_range_map = 1; + if (!this->parameter_range_map().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry.key"); + } + }; + + if (false && + this->parameter_range_map().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->parameter_range_map().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameter_range_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.ParameterRanges) + return target; +} + +size_t ParameterRanges::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.ParameterRanges) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map parameter_range_map = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->parameter_range_map_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >::const_iterator + it = this->parameter_range_map().begin(); + it != this->parameter_range_map().end(); ++it) { + entry.reset(parameter_range_map_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void ParameterRanges::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + const ParameterRanges* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.ParameterRanges) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.ParameterRanges) + MergeFrom(*source); + } +} + +void ParameterRanges::MergeFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parameter_range_map_.MergeFrom(from.parameter_range_map_); +} + +void ParameterRanges::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterRanges::CopyFrom(const ParameterRanges& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.ParameterRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterRanges::IsInitialized() const { + return true; +} + +void ParameterRanges::Swap(ParameterRanges* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterRanges::InternalSwap(ParameterRanges* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + parameter_range_map_.Swap(&other->parameter_range_map_); +} + +::google::protobuf::Metadata ParameterRanges::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::HyperparameterScalingType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::HyperparameterScalingType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::IntegerParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ParameterRanges >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::ParameterRanges >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h new file mode 100644 index 0000000000..13201549da --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/parameter_ranges.pb.h @@ -0,0 +1,1308 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[7] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class CategoricalParameterRange; +class CategoricalParameterRangeDefaultTypeInternal; +extern CategoricalParameterRangeDefaultTypeInternal _CategoricalParameterRange_default_instance_; +class ContinuousParameterRange; +class ContinuousParameterRangeDefaultTypeInternal; +extern ContinuousParameterRangeDefaultTypeInternal _ContinuousParameterRange_default_instance_; +class HyperparameterScalingType; +class HyperparameterScalingTypeDefaultTypeInternal; +extern HyperparameterScalingTypeDefaultTypeInternal _HyperparameterScalingType_default_instance_; +class IntegerParameterRange; +class IntegerParameterRangeDefaultTypeInternal; +extern IntegerParameterRangeDefaultTypeInternal _IntegerParameterRange_default_instance_; +class ParameterRangeOneOf; +class ParameterRangeOneOfDefaultTypeInternal; +extern ParameterRangeOneOfDefaultTypeInternal _ParameterRangeOneOf_default_instance_; +class ParameterRanges; +class ParameterRangesDefaultTypeInternal; +extern ParameterRangesDefaultTypeInternal _ParameterRanges_default_instance_; +class ParameterRanges_ParameterRangeMapEntry_DoNotUse; +class ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal; +extern ParameterRanges_ParameterRangeMapEntry_DoNotUseDefaultTypeInternal _ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::CategoricalParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::CategoricalParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ContinuousParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ContinuousParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::HyperparameterScalingType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::HyperparameterScalingType>(Arena*); +template<> ::flyteidl::plugins::sagemaker::IntegerParameterRange* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::IntegerParameterRange>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRangeOneOf* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRangeOneOf>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRanges* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges>(Arena*); +template<> ::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::ParameterRanges_ParameterRangeMapEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum HyperparameterScalingType_Value { + HyperparameterScalingType_Value_AUTO = 0, + HyperparameterScalingType_Value_LINEAR = 1, + HyperparameterScalingType_Value_LOGARITHMIC = 2, + HyperparameterScalingType_Value_REVERSELOGARITHMIC = 3, + HyperparameterScalingType_Value_HyperparameterScalingType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + HyperparameterScalingType_Value_HyperparameterScalingType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool HyperparameterScalingType_Value_IsValid(int value); +const HyperparameterScalingType_Value HyperparameterScalingType_Value_Value_MIN = HyperparameterScalingType_Value_AUTO; +const HyperparameterScalingType_Value HyperparameterScalingType_Value_Value_MAX = HyperparameterScalingType_Value_REVERSELOGARITHMIC; +const int HyperparameterScalingType_Value_Value_ARRAYSIZE = HyperparameterScalingType_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* HyperparameterScalingType_Value_descriptor(); +inline const ::std::string& HyperparameterScalingType_Value_Name(HyperparameterScalingType_Value value) { + return ::google::protobuf::internal::NameOfEnum( + HyperparameterScalingType_Value_descriptor(), value); +} +inline bool HyperparameterScalingType_Value_Parse( + const ::std::string& name, HyperparameterScalingType_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + HyperparameterScalingType_Value_descriptor(), name, value); +} +// =================================================================== + +class HyperparameterScalingType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.HyperparameterScalingType) */ { + public: + HyperparameterScalingType(); + virtual ~HyperparameterScalingType(); + + HyperparameterScalingType(const HyperparameterScalingType& from); + + inline HyperparameterScalingType& operator=(const HyperparameterScalingType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HyperparameterScalingType(HyperparameterScalingType&& from) noexcept + : HyperparameterScalingType() { + *this = ::std::move(from); + } + + inline HyperparameterScalingType& operator=(HyperparameterScalingType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const HyperparameterScalingType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HyperparameterScalingType* internal_default_instance() { + return reinterpret_cast( + &_HyperparameterScalingType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(HyperparameterScalingType* other); + friend void swap(HyperparameterScalingType& a, HyperparameterScalingType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HyperparameterScalingType* New() const final { + return CreateMaybeMessage(nullptr); + } + + HyperparameterScalingType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const HyperparameterScalingType& from); + void MergeFrom(const HyperparameterScalingType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HyperparameterScalingType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef HyperparameterScalingType_Value Value; + static const Value AUTO = + HyperparameterScalingType_Value_AUTO; + static const Value LINEAR = + HyperparameterScalingType_Value_LINEAR; + static const Value LOGARITHMIC = + HyperparameterScalingType_Value_LOGARITHMIC; + static const Value REVERSELOGARITHMIC = + HyperparameterScalingType_Value_REVERSELOGARITHMIC; + static inline bool Value_IsValid(int value) { + return HyperparameterScalingType_Value_IsValid(value); + } + static const Value Value_MIN = + HyperparameterScalingType_Value_Value_MIN; + static const Value Value_MAX = + HyperparameterScalingType_Value_Value_MAX; + static const int Value_ARRAYSIZE = + HyperparameterScalingType_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return HyperparameterScalingType_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return HyperparameterScalingType_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return HyperparameterScalingType_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +}; +// ------------------------------------------------------------------- + +class ContinuousParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ContinuousParameterRange) */ { + public: + ContinuousParameterRange(); + virtual ~ContinuousParameterRange(); + + ContinuousParameterRange(const ContinuousParameterRange& from); + + inline ContinuousParameterRange& operator=(const ContinuousParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContinuousParameterRange(ContinuousParameterRange&& from) noexcept + : ContinuousParameterRange() { + *this = ::std::move(from); + } + + inline ContinuousParameterRange& operator=(ContinuousParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ContinuousParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContinuousParameterRange* internal_default_instance() { + return reinterpret_cast( + &_ContinuousParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(ContinuousParameterRange* other); + friend void swap(ContinuousParameterRange& a, ContinuousParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContinuousParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + ContinuousParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ContinuousParameterRange& from); + void MergeFrom(const ContinuousParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContinuousParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // double max_value = 1; + void clear_max_value(); + static const int kMaxValueFieldNumber = 1; + double max_value() const; + void set_max_value(double value); + + // double min_value = 2; + void clear_min_value(); + static const int kMinValueFieldNumber = 2; + double min_value() const; + void set_min_value(double value); + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + void clear_scaling_type(); + static const int kScalingTypeFieldNumber = 3; + ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value scaling_type() const; + void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + double max_value_; + double min_value_; + int scaling_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +}; +// ------------------------------------------------------------------- + +class IntegerParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.IntegerParameterRange) */ { + public: + IntegerParameterRange(); + virtual ~IntegerParameterRange(); + + IntegerParameterRange(const IntegerParameterRange& from); + + inline IntegerParameterRange& operator=(const IntegerParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IntegerParameterRange(IntegerParameterRange&& from) noexcept + : IntegerParameterRange() { + *this = ::std::move(from); + } + + inline IntegerParameterRange& operator=(IntegerParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const IntegerParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IntegerParameterRange* internal_default_instance() { + return reinterpret_cast( + &_IntegerParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(IntegerParameterRange* other); + friend void swap(IntegerParameterRange& a, IntegerParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IntegerParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + IntegerParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const IntegerParameterRange& from); + void MergeFrom(const IntegerParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IntegerParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 max_value = 1; + void clear_max_value(); + static const int kMaxValueFieldNumber = 1; + ::google::protobuf::int64 max_value() const; + void set_max_value(::google::protobuf::int64 value); + + // int64 min_value = 2; + void clear_min_value(); + static const int kMinValueFieldNumber = 2; + ::google::protobuf::int64 min_value() const; + void set_min_value(::google::protobuf::int64 value); + + // .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + void clear_scaling_type(); + static const int kScalingTypeFieldNumber = 3; + ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value scaling_type() const; + void set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 max_value_; + ::google::protobuf::int64 min_value_; + int scaling_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +}; +// ------------------------------------------------------------------- + +class CategoricalParameterRange final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.CategoricalParameterRange) */ { + public: + CategoricalParameterRange(); + virtual ~CategoricalParameterRange(); + + CategoricalParameterRange(const CategoricalParameterRange& from); + + inline CategoricalParameterRange& operator=(const CategoricalParameterRange& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CategoricalParameterRange(CategoricalParameterRange&& from) noexcept + : CategoricalParameterRange() { + *this = ::std::move(from); + } + + inline CategoricalParameterRange& operator=(CategoricalParameterRange&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CategoricalParameterRange& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CategoricalParameterRange* internal_default_instance() { + return reinterpret_cast( + &_CategoricalParameterRange_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(CategoricalParameterRange* other); + friend void swap(CategoricalParameterRange& a, CategoricalParameterRange& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CategoricalParameterRange* New() const final { + return CreateMaybeMessage(nullptr); + } + + CategoricalParameterRange* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CategoricalParameterRange& from); + void MergeFrom(const CategoricalParameterRange& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CategoricalParameterRange* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::std::string& values(int index) const; + ::std::string* mutable_values(int index); + void set_values(int index, const ::std::string& value); + #if LANG_CXX11 + void set_values(int index, ::std::string&& value); + #endif + void set_values(int index, const char* value); + void set_values(int index, const char* value, size_t size); + ::std::string* add_values(); + void add_values(const ::std::string& value); + #if LANG_CXX11 + void add_values(::std::string&& value); + #endif + void add_values(const char* value); + void add_values(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> values_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterRangeOneOf final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRangeOneOf) */ { + public: + ParameterRangeOneOf(); + virtual ~ParameterRangeOneOf(); + + ParameterRangeOneOf(const ParameterRangeOneOf& from); + + inline ParameterRangeOneOf& operator=(const ParameterRangeOneOf& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterRangeOneOf(ParameterRangeOneOf&& from) noexcept + : ParameterRangeOneOf() { + *this = ::std::move(from); + } + + inline ParameterRangeOneOf& operator=(ParameterRangeOneOf&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterRangeOneOf& default_instance(); + + enum ParameterRangeTypeCase { + kContinuousParameterRange = 1, + kIntegerParameterRange = 2, + kCategoricalParameterRange = 3, + PARAMETER_RANGE_TYPE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterRangeOneOf* internal_default_instance() { + return reinterpret_cast( + &_ParameterRangeOneOf_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(ParameterRangeOneOf* other); + friend void swap(ParameterRangeOneOf& a, ParameterRangeOneOf& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterRangeOneOf* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterRangeOneOf* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterRangeOneOf& from); + void MergeFrom(const ParameterRangeOneOf& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterRangeOneOf* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + bool has_continuous_parameter_range() const; + void clear_continuous_parameter_range(); + static const int kContinuousParameterRangeFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& continuous_parameter_range() const; + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* release_continuous_parameter_range(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* mutable_continuous_parameter_range(); + void set_allocated_continuous_parameter_range(::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range); + + // .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + bool has_integer_parameter_range() const; + void clear_integer_parameter_range(); + static const int kIntegerParameterRangeFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::IntegerParameterRange& integer_parameter_range() const; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* release_integer_parameter_range(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* mutable_integer_parameter_range(); + void set_allocated_integer_parameter_range(::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range); + + // .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + bool has_categorical_parameter_range() const; + void clear_categorical_parameter_range(); + static const int kCategoricalParameterRangeFieldNumber = 3; + const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& categorical_parameter_range() const; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* release_categorical_parameter_range(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* mutable_categorical_parameter_range(); + void set_allocated_categorical_parameter_range(::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range); + + void clear_parameter_range_type(); + ParameterRangeTypeCase parameter_range_type_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private: + class HasBitSetters; + void set_has_continuous_parameter_range(); + void set_has_integer_parameter_range(); + void set_has_categorical_parameter_range(); + + inline bool has_parameter_range_type() const; + inline void clear_has_parameter_range_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ParameterRangeTypeUnion { + ParameterRangeTypeUnion() {} + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* continuous_parameter_range_; + ::flyteidl::plugins::sagemaker::IntegerParameterRange* integer_parameter_range_; + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* categorical_parameter_range_; + } parameter_range_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +}; +// ------------------------------------------------------------------- + +class ParameterRanges_ParameterRangeMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + ParameterRanges_ParameterRangeMapEntry_DoNotUse(); + ParameterRanges_ParameterRangeMapEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ParameterRanges_ParameterRangeMapEntry_DoNotUse& other); + static const ParameterRanges_ParameterRangeMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ParameterRanges_ParameterRangeMapEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ParameterRanges final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.ParameterRanges) */ { + public: + ParameterRanges(); + virtual ~ParameterRanges(); + + ParameterRanges(const ParameterRanges& from); + + inline ParameterRanges& operator=(const ParameterRanges& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterRanges(ParameterRanges&& from) noexcept + : ParameterRanges() { + *this = ::std::move(from); + } + + inline ParameterRanges& operator=(ParameterRanges&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const ParameterRanges& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterRanges* internal_default_instance() { + return reinterpret_cast( + &_ParameterRanges_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(ParameterRanges* other); + friend void swap(ParameterRanges& a, ParameterRanges& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterRanges* New() const final { + return CreateMaybeMessage(nullptr); + } + + ParameterRanges* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ParameterRanges& from); + void MergeFrom(const ParameterRanges& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ParameterRanges* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map parameter_range_map = 1; + int parameter_range_map_size() const; + void clear_parameter_range_map(); + static const int kParameterRangeMapFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& + parameter_range_map() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* + mutable_parameter_range_map(); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ParameterRanges_ParameterRangeMapEntry_DoNotUse, + ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > parameter_range_map_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HyperparameterScalingType + +// ------------------------------------------------------------------- + +// ContinuousParameterRange + +// double max_value = 1; +inline void ContinuousParameterRange::clear_max_value() { + max_value_ = 0; +} +inline double ContinuousParameterRange::max_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) + return max_value_; +} +inline void ContinuousParameterRange::set_max_value(double value) { + + max_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.max_value) +} + +// double min_value = 2; +inline void ContinuousParameterRange::clear_min_value() { + min_value_ = 0; +} +inline double ContinuousParameterRange::min_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) + return min_value_; +} +inline void ContinuousParameterRange::set_min_value(double value) { + + min_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.min_value) +} + +// .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; +inline void ContinuousParameterRange::clear_scaling_type() { + scaling_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value ContinuousParameterRange::scaling_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(scaling_type_); +} +inline void ContinuousParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value) { + + scaling_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.ContinuousParameterRange.scaling_type) +} + +// ------------------------------------------------------------------- + +// IntegerParameterRange + +// int64 max_value = 1; +inline void IntegerParameterRange::clear_max_value() { + max_value_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 IntegerParameterRange::max_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) + return max_value_; +} +inline void IntegerParameterRange::set_max_value(::google::protobuf::int64 value) { + + max_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.max_value) +} + +// int64 min_value = 2; +inline void IntegerParameterRange::clear_min_value() { + min_value_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 IntegerParameterRange::min_value() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) + return min_value_; +} +inline void IntegerParameterRange::set_min_value(::google::protobuf::int64 value) { + + min_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.min_value) +} + +// .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; +inline void IntegerParameterRange::clear_scaling_type() { + scaling_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value IntegerParameterRange::scaling_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) + return static_cast< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value >(scaling_type_); +} +inline void IntegerParameterRange::set_scaling_type(::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value value) { + + scaling_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.IntegerParameterRange.scaling_type) +} + +// ------------------------------------------------------------------- + +// CategoricalParameterRange + +// repeated string values = 1; +inline int CategoricalParameterRange::values_size() const { + return values_.size(); +} +inline void CategoricalParameterRange::clear_values() { + values_.Clear(); +} +inline const ::std::string& CategoricalParameterRange::values(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_.Get(index); +} +inline ::std::string* CategoricalParameterRange::mutable_values(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_.Mutable(index); +} +inline void CategoricalParameterRange::set_values(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + values_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void CategoricalParameterRange::set_values(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + values_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void CategoricalParameterRange::set_values(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline void CategoricalParameterRange::set_values(int index, const char* value, size_t size) { + values_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline ::std::string* CategoricalParameterRange::add_values() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_.Add(); +} +inline void CategoricalParameterRange::add_values(const ::std::string& value) { + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +#if LANG_CXX11 +inline void CategoricalParameterRange::add_values(::std::string&& value) { + values_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +#endif +inline void CategoricalParameterRange::add_values(const char* value) { + GOOGLE_DCHECK(value != nullptr); + values_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline void CategoricalParameterRange::add_values(const char* value, size_t size) { + values_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +CategoricalParameterRange::values() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return values_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +CategoricalParameterRange::mutable_values() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.CategoricalParameterRange.values) + return &values_; +} + +// ------------------------------------------------------------------- + +// ParameterRangeOneOf + +// .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; +inline bool ParameterRangeOneOf::has_continuous_parameter_range() const { + return parameter_range_type_case() == kContinuousParameterRange; +} +inline void ParameterRangeOneOf::set_has_continuous_parameter_range() { + _oneof_case_[0] = kContinuousParameterRange; +} +inline void ParameterRangeOneOf::clear_continuous_parameter_range() { + if (has_continuous_parameter_range()) { + delete parameter_range_type_.continuous_parameter_range_; + clear_has_parameter_range_type(); + } +} +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::release_continuous_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + if (has_continuous_parameter_range()) { + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::ContinuousParameterRange* temp = parameter_range_type_.continuous_parameter_range_; + parameter_range_type_.continuous_parameter_range_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::ContinuousParameterRange& ParameterRangeOneOf::continuous_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + return has_continuous_parameter_range() + ? *parameter_range_type_.continuous_parameter_range_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::ContinuousParameterRange*>(&::flyteidl::plugins::sagemaker::_ContinuousParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::ContinuousParameterRange* ParameterRangeOneOf::mutable_continuous_parameter_range() { + if (!has_continuous_parameter_range()) { + clear_parameter_range_type(); + set_has_continuous_parameter_range(); + parameter_range_type_.continuous_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::ContinuousParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.continuous_parameter_range) + return parameter_range_type_.continuous_parameter_range_; +} + +// .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; +inline bool ParameterRangeOneOf::has_integer_parameter_range() const { + return parameter_range_type_case() == kIntegerParameterRange; +} +inline void ParameterRangeOneOf::set_has_integer_parameter_range() { + _oneof_case_[0] = kIntegerParameterRange; +} +inline void ParameterRangeOneOf::clear_integer_parameter_range() { + if (has_integer_parameter_range()) { + delete parameter_range_type_.integer_parameter_range_; + clear_has_parameter_range_type(); + } +} +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::release_integer_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + if (has_integer_parameter_range()) { + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::IntegerParameterRange* temp = parameter_range_type_.integer_parameter_range_; + parameter_range_type_.integer_parameter_range_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::IntegerParameterRange& ParameterRangeOneOf::integer_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + return has_integer_parameter_range() + ? *parameter_range_type_.integer_parameter_range_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::IntegerParameterRange*>(&::flyteidl::plugins::sagemaker::_IntegerParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::IntegerParameterRange* ParameterRangeOneOf::mutable_integer_parameter_range() { + if (!has_integer_parameter_range()) { + clear_parameter_range_type(); + set_has_integer_parameter_range(); + parameter_range_type_.integer_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::IntegerParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.integer_parameter_range) + return parameter_range_type_.integer_parameter_range_; +} + +// .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; +inline bool ParameterRangeOneOf::has_categorical_parameter_range() const { + return parameter_range_type_case() == kCategoricalParameterRange; +} +inline void ParameterRangeOneOf::set_has_categorical_parameter_range() { + _oneof_case_[0] = kCategoricalParameterRange; +} +inline void ParameterRangeOneOf::clear_categorical_parameter_range() { + if (has_categorical_parameter_range()) { + delete parameter_range_type_.categorical_parameter_range_; + clear_has_parameter_range_type(); + } +} +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::release_categorical_parameter_range() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + if (has_categorical_parameter_range()) { + clear_has_parameter_range_type(); + ::flyteidl::plugins::sagemaker::CategoricalParameterRange* temp = parameter_range_type_.categorical_parameter_range_; + parameter_range_type_.categorical_parameter_range_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::plugins::sagemaker::CategoricalParameterRange& ParameterRangeOneOf::categorical_parameter_range() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + return has_categorical_parameter_range() + ? *parameter_range_type_.categorical_parameter_range_ + : *reinterpret_cast< ::flyteidl::plugins::sagemaker::CategoricalParameterRange*>(&::flyteidl::plugins::sagemaker::_CategoricalParameterRange_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::CategoricalParameterRange* ParameterRangeOneOf::mutable_categorical_parameter_range() { + if (!has_categorical_parameter_range()) { + clear_parameter_range_type(); + set_has_categorical_parameter_range(); + parameter_range_type_.categorical_parameter_range_ = CreateMaybeMessage< ::flyteidl::plugins::sagemaker::CategoricalParameterRange >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.ParameterRangeOneOf.categorical_parameter_range) + return parameter_range_type_.categorical_parameter_range_; +} + +inline bool ParameterRangeOneOf::has_parameter_range_type() const { + return parameter_range_type_case() != PARAMETER_RANGE_TYPE_NOT_SET; +} +inline void ParameterRangeOneOf::clear_has_parameter_range_type() { + _oneof_case_[0] = PARAMETER_RANGE_TYPE_NOT_SET; +} +inline ParameterRangeOneOf::ParameterRangeTypeCase ParameterRangeOneOf::parameter_range_type_case() const { + return ParameterRangeOneOf::ParameterRangeTypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ParameterRanges + +// map parameter_range_map = 1; +inline int ParameterRanges::parameter_range_map_size() const { + return parameter_range_map_.size(); +} +inline void ParameterRanges::clear_parameter_range_map() { + parameter_range_map_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >& +ParameterRanges::parameter_range_map() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) + return parameter_range_map_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::plugins::sagemaker::ParameterRangeOneOf >* +ParameterRanges::mutable_parameter_range_map() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.sagemaker.ParameterRanges.parameter_range_map) + return parameter_range_map_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value>() { + return ::flyteidl::plugins::sagemaker::HyperparameterScalingType_Value_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2fparameter_5franges_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc new file mode 100644 index 0000000000..e7b54a6ee5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.cc @@ -0,0 +1,26 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/training_job.proto + +#include "flyteidl/plugins/sagemaker/training_job.pb.h" +#include "flyteidl/plugins/sagemaker/training_job.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace flyteidl +} // namespace plugins +} // namespace sagemaker + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h new file mode 100644 index 0000000000..802320ea79 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.grpc.pb.h @@ -0,0 +1,49 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sagemaker/training_job.proto +#ifndef GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED + +#include "flyteidl/plugins/sagemaker/training_job.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc new file mode 100644 index 0000000000..2c23f51ed7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.cc @@ -0,0 +1,2937 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/training_job.proto + +#include "flyteidl/plugins/sagemaker/training_job.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class InputModeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _InputMode_default_instance_; +class AlgorithmNameDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmName_default_instance_; +class InputContentTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _InputContentType_default_instance_; +class MetricDefinitionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _MetricDefinition_default_instance_; +class AlgorithmSpecificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _AlgorithmSpecification_default_instance_; +class DistributedProtocolDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedProtocol_default_instance_; +class TrainingJobResourceConfigDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TrainingJobResourceConfig_default_instance_; +class TrainingJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TrainingJob_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsInputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_InputMode_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::InputMode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::InputMode::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; + +static void InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmName_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmName(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::AlgorithmName::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; + +static void InitDefaultsInputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_InputContentType_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::InputContentType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::InputContentType::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_InputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; + +static void InitDefaultsMetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_MetricDefinition_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::MetricDefinition(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::MetricDefinition::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; + +static void InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::AlgorithmSpecification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; + +static void InitDefaultsDistributedProtocol_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_DistributedProtocol_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::DistributedProtocol(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::DistributedProtocol::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DistributedProtocol_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDistributedProtocol_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; + +static void InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, {}}; + +static void InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_; + new (ptr) ::flyteidl::plugins::sagemaker::TrainingJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::sagemaker::TrainingJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto}, { + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base, + &scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_InputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_DistributedProtocol_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[8]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[4]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::InputMode, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmName, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::InputContentType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::MetricDefinition, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::MetricDefinition, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::MetricDefinition, regex_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_mode_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, algorithm_version_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, metric_definitions_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::AlgorithmSpecification, input_content_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::DistributedProtocol, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, instance_count_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, instance_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, volume_size_in_gb_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig, distributed_protocol_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, algorithm_specification_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::sagemaker::TrainingJob, training_job_resource_config_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::sagemaker::InputMode)}, + { 5, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmName)}, + { 10, -1, sizeof(::flyteidl::plugins::sagemaker::InputContentType)}, + { 15, -1, sizeof(::flyteidl::plugins::sagemaker::MetricDefinition)}, + { 22, -1, sizeof(::flyteidl::plugins::sagemaker::AlgorithmSpecification)}, + { 32, -1, sizeof(::flyteidl::plugins::sagemaker::DistributedProtocol)}, + { 37, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig)}, + { 46, -1, sizeof(::flyteidl::plugins::sagemaker::TrainingJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputMode_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmName_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_InputContentType_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_MetricDefinition_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_DistributedProtocol_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_), + reinterpret_cast(&::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, "flyteidl/plugins/sagemaker/training_job.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 8, file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[] = + "\n-flyteidl/plugins/sagemaker/training_jo" + "b.proto\022\032flyteidl.plugins.sagemaker\032\036goo" + "gle/protobuf/duration.proto\"(\n\tInputMode" + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + "\")\n\020InputContentType\"\025\n\005Value\022\014\n\010TEXT_CS" + "V\020\000\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n" + "\005regex\030\002 \001(\t\"\327\002\n\026AlgorithmSpecification\022" + "\?\n\ninput_mode\030\001 \001(\0162+.flyteidl.plugins.s" + "agemaker.InputMode.Value\022G\n\016algorithm_na" + "me\030\002 \001(\0162/.flyteidl.plugins.sagemaker.Al" + "gorithmName.Value\022\031\n\021algorithm_version\030\003" + " \001(\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyte" + "idl.plugins.sagemaker.MetricDefinition\022N" + "\n\022input_content_type\030\005 \001(\01622.flyteidl.pl" + "ugins.sagemaker.InputContentType.Value\"8" + "\n\023DistributedProtocol\"!\n\005Value\022\017\n\013UNSPEC" + "IFIED\020\000\022\007\n\003MPI\020\001\"\272\001\n\031TrainingJobResource" + "Config\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinstan" + "ce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003" + "\022S\n\024distributed_protocol\030\004 \001(\01625.flyteid" + "l.plugins.sagemaker.DistributedProtocol." + "Value\"\277\001\n\013TrainingJob\022S\n\027algorithm_speci" + "fication\030\001 \001(\01322.flyteidl.plugins.sagema" + "ker.AlgorithmSpecification\022[\n\034training_j" + "ob_resource_config\030\002 \001(\01325.flyteidl.plug" + "ins.sagemaker.TrainingJobResourceConfigB" + "9Z7github.com/flyteorg/flyteidl/gen/pb-g" + "o/flyteidl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, + "flyteidl/plugins/sagemaker/training_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, 1146, +}; + +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +const ::google::protobuf::EnumDescriptor* InputMode_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[0]; +} +bool InputMode_Value_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const InputMode_Value InputMode::FILE; +const InputMode_Value InputMode::PIPE; +const InputMode_Value InputMode::Value_MIN; +const InputMode_Value InputMode::Value_MAX; +const int InputMode::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* AlgorithmName_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[1]; +} +bool AlgorithmName_Value_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const AlgorithmName_Value AlgorithmName::CUSTOM; +const AlgorithmName_Value AlgorithmName::XGBOOST; +const AlgorithmName_Value AlgorithmName::Value_MIN; +const AlgorithmName_Value AlgorithmName::Value_MAX; +const int AlgorithmName::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* InputContentType_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[2]; +} +bool InputContentType_Value_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const InputContentType_Value InputContentType::TEXT_CSV; +const InputContentType_Value InputContentType::Value_MIN; +const InputContentType_Value InputContentType::Value_MAX; +const int InputContentType::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* DistributedProtocol_Value_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[3]; +} +bool DistributedProtocol_Value_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const DistributedProtocol_Value DistributedProtocol::UNSPECIFIED; +const DistributedProtocol_Value DistributedProtocol::MPI; +const DistributedProtocol_Value DistributedProtocol::Value_MIN; +const DistributedProtocol_Value DistributedProtocol::Value_MAX; +const int DistributedProtocol::Value_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void InputMode::InitAsDefaultInstance() { +} +class InputMode::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +InputMode::InputMode() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.InputMode) +} +InputMode::InputMode(const InputMode& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.InputMode) +} + +void InputMode::SharedCtor() { +} + +InputMode::~InputMode() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.InputMode) + SharedDtor(); +} + +void InputMode::SharedDtor() { +} + +void InputMode::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InputMode& InputMode::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_InputMode_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void InputMode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.InputMode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* InputMode::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool InputMode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.InputMode) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.InputMode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.InputMode) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void InputMode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.InputMode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.InputMode) +} + +::google::protobuf::uint8* InputMode::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.InputMode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.InputMode) + return target; +} + +size_t InputMode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.InputMode) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InputMode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.InputMode) + GOOGLE_DCHECK_NE(&from, this); + const InputMode* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.InputMode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.InputMode) + MergeFrom(*source); + } +} + +void InputMode::MergeFrom(const InputMode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.InputMode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void InputMode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.InputMode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InputMode::CopyFrom(const InputMode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.InputMode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InputMode::IsInitialized() const { + return true; +} + +void InputMode::Swap(InputMode* other) { + if (other == this) return; + InternalSwap(other); +} +void InputMode::InternalSwap(InputMode* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata InputMode::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AlgorithmName::InitAsDefaultInstance() { +} +class AlgorithmName::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmName::AlgorithmName() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmName) +} +AlgorithmName::AlgorithmName(const AlgorithmName& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmName) +} + +void AlgorithmName::SharedCtor() { +} + +AlgorithmName::~AlgorithmName() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmName) + SharedDtor(); +} + +void AlgorithmName::SharedDtor() { +} + +void AlgorithmName::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmName& AlgorithmName::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmName_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmName::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmName) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmName::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmName::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmName) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmName) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmName) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmName::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmName) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmName) +} + +::google::protobuf::uint8* AlgorithmName::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmName) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmName) + return target; +} + +size_t AlgorithmName::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmName) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmName::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmName) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmName* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmName) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmName) + MergeFrom(*source); + } +} + +void AlgorithmName::MergeFrom(const AlgorithmName& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmName) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void AlgorithmName::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmName) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmName::CopyFrom(const AlgorithmName& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmName) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmName::IsInitialized() const { + return true; +} + +void AlgorithmName::Swap(AlgorithmName* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmName::InternalSwap(AlgorithmName* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata AlgorithmName::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void InputContentType::InitAsDefaultInstance() { +} +class InputContentType::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +InputContentType::InputContentType() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.InputContentType) +} +InputContentType::InputContentType(const InputContentType& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.InputContentType) +} + +void InputContentType::SharedCtor() { +} + +InputContentType::~InputContentType() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.InputContentType) + SharedDtor(); +} + +void InputContentType::SharedDtor() { +} + +void InputContentType::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const InputContentType& InputContentType::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_InputContentType_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void InputContentType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.InputContentType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* InputContentType::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool InputContentType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.InputContentType) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.InputContentType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.InputContentType) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void InputContentType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.InputContentType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.InputContentType) +} + +::google::protobuf::uint8* InputContentType::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.InputContentType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.InputContentType) + return target; +} + +size_t InputContentType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.InputContentType) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void InputContentType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.InputContentType) + GOOGLE_DCHECK_NE(&from, this); + const InputContentType* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.InputContentType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.InputContentType) + MergeFrom(*source); + } +} + +void InputContentType::MergeFrom(const InputContentType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.InputContentType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void InputContentType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.InputContentType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InputContentType::CopyFrom(const InputContentType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.InputContentType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InputContentType::IsInitialized() const { + return true; +} + +void InputContentType::Swap(InputContentType* other) { + if (other == this) return; + InternalSwap(other); +} +void InputContentType::InternalSwap(InputContentType* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata InputContentType::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void MetricDefinition::InitAsDefaultInstance() { +} +class MetricDefinition::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MetricDefinition::kNameFieldNumber; +const int MetricDefinition::kRegexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MetricDefinition::MetricDefinition() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.MetricDefinition) +} +MetricDefinition::MetricDefinition(const MetricDefinition& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.regex().size() > 0) { + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.MetricDefinition) +} + +void MetricDefinition::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +MetricDefinition::~MetricDefinition() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.MetricDefinition) + SharedDtor(); +} + +void MetricDefinition::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void MetricDefinition::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const MetricDefinition& MetricDefinition::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_MetricDefinition_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void MetricDefinition::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* MetricDefinition::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string name = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.MetricDefinition.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string regex = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.MetricDefinition.regex"); + object = msg->mutable_regex(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool MetricDefinition::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.MetricDefinition) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.MetricDefinition.name")); + } else { + goto handle_unusual; + } + break; + } + + // string regex = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_regex())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.MetricDefinition.regex")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.MetricDefinition) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.MetricDefinition) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void MetricDefinition::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.MetricDefinition.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.MetricDefinition.regex"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->regex(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.MetricDefinition) +} + +::google::protobuf::uint8* MetricDefinition::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.MetricDefinition) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.MetricDefinition.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string regex = 2; + if (this->regex().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->regex().data(), static_cast(this->regex().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.MetricDefinition.regex"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->regex(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.MetricDefinition) + return target; +} + +size_t MetricDefinition::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.MetricDefinition) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string regex = 2; + if (this->regex().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->regex()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MetricDefinition::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + const MetricDefinition* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.MetricDefinition) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.MetricDefinition) + MergeFrom(*source); + } +} + +void MetricDefinition::MergeFrom(const MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.MetricDefinition) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.regex().size() > 0) { + + regex_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.regex_); + } +} + +void MetricDefinition::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MetricDefinition::CopyFrom(const MetricDefinition& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.MetricDefinition) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MetricDefinition::IsInitialized() const { + return true; +} + +void MetricDefinition::Swap(MetricDefinition* other) { + if (other == this) return; + InternalSwap(other); +} +void MetricDefinition::InternalSwap(MetricDefinition* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + regex_.Swap(&other->regex_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata MetricDefinition::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void AlgorithmSpecification::InitAsDefaultInstance() { +} +class AlgorithmSpecification::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AlgorithmSpecification::kInputModeFieldNumber; +const int AlgorithmSpecification::kAlgorithmNameFieldNumber; +const int AlgorithmSpecification::kAlgorithmVersionFieldNumber; +const int AlgorithmSpecification::kMetricDefinitionsFieldNumber; +const int AlgorithmSpecification::kInputContentTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +AlgorithmSpecification::AlgorithmSpecification() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} +AlgorithmSpecification::AlgorithmSpecification(const AlgorithmSpecification& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + metric_definitions_(from.metric_definitions_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.algorithm_version().size() > 0) { + algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); + } + ::memcpy(&input_mode_, &from.input_mode_, + static_cast(reinterpret_cast(&input_content_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_content_type_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} + +void AlgorithmSpecification::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + algorithm_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&input_mode_, 0, static_cast( + reinterpret_cast(&input_content_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_content_type_)); +} + +AlgorithmSpecification::~AlgorithmSpecification() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.AlgorithmSpecification) + SharedDtor(); +} + +void AlgorithmSpecification::SharedDtor() { + algorithm_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void AlgorithmSpecification::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const AlgorithmSpecification& AlgorithmSpecification::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_AlgorithmSpecification_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void AlgorithmSpecification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + metric_definitions_.Clear(); + algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&input_mode_, 0, static_cast( + reinterpret_cast(&input_content_type_) - + reinterpret_cast(&input_mode_)) + sizeof(input_content_type_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* AlgorithmSpecification::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_input_mode(static_cast<::flyteidl::plugins::sagemaker::InputMode_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_algorithm_name(static_cast<::flyteidl::plugins::sagemaker::AlgorithmName_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string algorithm_version = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); + object = msg->mutable_algorithm_version(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::MetricDefinition::_InternalParse; + object = msg->add_metric_definitions(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_input_content_type(static_cast<::flyteidl::plugins::sagemaker::InputContentType_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool AlgorithmSpecification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_input_mode(static_cast< ::flyteidl::plugins::sagemaker::InputMode_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_algorithm_name(static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string algorithm_version = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_algorithm_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_metric_definitions())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_input_content_type(static_cast< ::flyteidl::plugins::sagemaker::InputContentType_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void AlgorithmSpecification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + if (this->input_mode() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->input_mode(), output); + } + + // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + if (this->algorithm_name() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->algorithm_name(), output); + } + + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->algorithm_version(), output); + } + + // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metric_definitions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->metric_definitions(static_cast(i)), + output); + } + + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + if (this->input_content_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->input_content_type(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) +} + +::google::protobuf::uint8* AlgorithmSpecification::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + if (this->input_mode() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->input_mode(), target); + } + + // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + if (this->algorithm_name() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->algorithm_name(), target); + } + + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->algorithm_version().data(), static_cast(this->algorithm_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->algorithm_version(), target); + } + + // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + for (unsigned int i = 0, + n = static_cast(this->metric_definitions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->metric_definitions(static_cast(i)), target); + } + + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + if (this->input_content_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->input_content_type(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.AlgorithmSpecification) + return target; +} + +size_t AlgorithmSpecification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + { + unsigned int count = static_cast(this->metric_definitions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->metric_definitions(static_cast(i))); + } + } + + // string algorithm_version = 3; + if (this->algorithm_version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->algorithm_version()); + } + + // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + if (this->input_mode() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_mode()); + } + + // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + if (this->algorithm_name() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->algorithm_name()); + } + + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + if (this->input_content_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->input_content_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void AlgorithmSpecification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + const AlgorithmSpecification* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.AlgorithmSpecification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.AlgorithmSpecification) + MergeFrom(*source); + } +} + +void AlgorithmSpecification::MergeFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + metric_definitions_.MergeFrom(from.metric_definitions_); + if (from.algorithm_version().size() > 0) { + + algorithm_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.algorithm_version_); + } + if (from.input_mode() != 0) { + set_input_mode(from.input_mode()); + } + if (from.algorithm_name() != 0) { + set_algorithm_name(from.algorithm_name()); + } + if (from.input_content_type() != 0) { + set_input_content_type(from.input_content_type()); + } +} + +void AlgorithmSpecification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AlgorithmSpecification::CopyFrom(const AlgorithmSpecification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.AlgorithmSpecification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AlgorithmSpecification::IsInitialized() const { + return true; +} + +void AlgorithmSpecification::Swap(AlgorithmSpecification* other) { + if (other == this) return; + InternalSwap(other); +} +void AlgorithmSpecification::InternalSwap(AlgorithmSpecification* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&metric_definitions_)->InternalSwap(CastToBase(&other->metric_definitions_)); + algorithm_version_.Swap(&other->algorithm_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(input_mode_, other->input_mode_); + swap(algorithm_name_, other->algorithm_name_); + swap(input_content_type_, other->input_content_type_); +} + +::google::protobuf::Metadata AlgorithmSpecification::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void DistributedProtocol::InitAsDefaultInstance() { +} +class DistributedProtocol::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedProtocol::DistributedProtocol() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.DistributedProtocol) +} +DistributedProtocol::DistributedProtocol(const DistributedProtocol& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.DistributedProtocol) +} + +void DistributedProtocol::SharedCtor() { +} + +DistributedProtocol::~DistributedProtocol() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.DistributedProtocol) + SharedDtor(); +} + +void DistributedProtocol::SharedDtor() { +} + +void DistributedProtocol::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedProtocol& DistributedProtocol::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedProtocol_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedProtocol::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.DistributedProtocol) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedProtocol::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedProtocol::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.DistributedProtocol) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.DistributedProtocol) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.DistributedProtocol) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedProtocol::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.DistributedProtocol) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.DistributedProtocol) +} + +::google::protobuf::uint8* DistributedProtocol::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.DistributedProtocol) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.DistributedProtocol) + return target; +} + +size_t DistributedProtocol::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.DistributedProtocol) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedProtocol::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.DistributedProtocol) + GOOGLE_DCHECK_NE(&from, this); + const DistributedProtocol* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.DistributedProtocol) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.DistributedProtocol) + MergeFrom(*source); + } +} + +void DistributedProtocol::MergeFrom(const DistributedProtocol& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.DistributedProtocol) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void DistributedProtocol::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.DistributedProtocol) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedProtocol::CopyFrom(const DistributedProtocol& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.DistributedProtocol) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedProtocol::IsInitialized() const { + return true; +} + +void DistributedProtocol::Swap(DistributedProtocol* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedProtocol::InternalSwap(DistributedProtocol* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata DistributedProtocol::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TrainingJobResourceConfig::InitAsDefaultInstance() { +} +class TrainingJobResourceConfig::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TrainingJobResourceConfig::kInstanceCountFieldNumber; +const int TrainingJobResourceConfig::kInstanceTypeFieldNumber; +const int TrainingJobResourceConfig::kVolumeSizeInGbFieldNumber; +const int TrainingJobResourceConfig::kDistributedProtocolFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TrainingJobResourceConfig::TrainingJobResourceConfig() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) +} +TrainingJobResourceConfig::TrainingJobResourceConfig(const TrainingJobResourceConfig& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.instance_type().size() > 0) { + instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); + } + ::memcpy(&instance_count_, &from.instance_count_, + static_cast(reinterpret_cast(&distributed_protocol_) - + reinterpret_cast(&instance_count_)) + sizeof(distributed_protocol_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) +} + +void TrainingJobResourceConfig::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + instance_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&distributed_protocol_) - + reinterpret_cast(&instance_count_)) + sizeof(distributed_protocol_)); +} + +TrainingJobResourceConfig::~TrainingJobResourceConfig() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + SharedDtor(); +} + +void TrainingJobResourceConfig::SharedDtor() { + instance_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TrainingJobResourceConfig::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TrainingJobResourceConfig& TrainingJobResourceConfig::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJobResourceConfig_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void TrainingJobResourceConfig::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&instance_count_, 0, static_cast( + reinterpret_cast(&distributed_protocol_) - + reinterpret_cast(&instance_count_)) + sizeof(distributed_protocol_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TrainingJobResourceConfig::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int64 instance_count = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_instance_count(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string instance_type = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type"); + object = msg->mutable_instance_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // int64 volume_size_in_gb = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_volume_size_in_gb(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_distributed_protocol(static_cast<::flyteidl::plugins::sagemaker::DistributedProtocol_Value>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TrainingJobResourceConfig::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 instance_count = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &instance_count_))); + } else { + goto handle_unusual; + } + break; + } + + // string instance_type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_instance_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instance_type().data(), static_cast(this->instance_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type")); + } else { + goto handle_unusual; + } + break; + } + + // int64 volume_size_in_gb = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &volume_size_in_gb_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_distributed_protocol(static_cast< ::flyteidl::plugins::sagemaker::DistributedProtocol_Value >(value)); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TrainingJobResourceConfig::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 instance_count = 1; + if (this->instance_count() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->instance_count(), output); + } + + // string instance_type = 2; + if (this->instance_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instance_type().data(), static_cast(this->instance_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->instance_type(), output); + } + + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->volume_size_in_gb(), output); + } + + // .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + if (this->distributed_protocol() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->distributed_protocol(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) +} + +::google::protobuf::uint8* TrainingJobResourceConfig::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 instance_count = 1; + if (this->instance_count() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->instance_count(), target); + } + + // string instance_type = 2; + if (this->instance_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->instance_type().data(), static_cast(this->instance_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->instance_type(), target); + } + + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->volume_size_in_gb(), target); + } + + // .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + if (this->distributed_protocol() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->distributed_protocol(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + return target; +} + +size_t TrainingJobResourceConfig::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string instance_type = 2; + if (this->instance_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->instance_type()); + } + + // int64 instance_count = 1; + if (this->instance_count() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->instance_count()); + } + + // int64 volume_size_in_gb = 3; + if (this->volume_size_in_gb() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->volume_size_in_gb()); + } + + // .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + if (this->distributed_protocol() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->distributed_protocol()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TrainingJobResourceConfig::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + GOOGLE_DCHECK_NE(&from, this); + const TrainingJobResourceConfig* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + MergeFrom(*source); + } +} + +void TrainingJobResourceConfig::MergeFrom(const TrainingJobResourceConfig& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.instance_type().size() > 0) { + + instance_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.instance_type_); + } + if (from.instance_count() != 0) { + set_instance_count(from.instance_count()); + } + if (from.volume_size_in_gb() != 0) { + set_volume_size_in_gb(from.volume_size_in_gb()); + } + if (from.distributed_protocol() != 0) { + set_distributed_protocol(from.distributed_protocol()); + } +} + +void TrainingJobResourceConfig::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TrainingJobResourceConfig::CopyFrom(const TrainingJobResourceConfig& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TrainingJobResourceConfig::IsInitialized() const { + return true; +} + +void TrainingJobResourceConfig::Swap(TrainingJobResourceConfig* other) { + if (other == this) return; + InternalSwap(other); +} +void TrainingJobResourceConfig::InternalSwap(TrainingJobResourceConfig* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + instance_type_.Swap(&other->instance_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(instance_count_, other->instance_count_); + swap(volume_size_in_gb_, other->volume_size_in_gb_); + swap(distributed_protocol_, other->distributed_protocol_); +} + +::google::protobuf::Metadata TrainingJobResourceConfig::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TrainingJob::InitAsDefaultInstance() { + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->algorithm_specification_ = const_cast< ::flyteidl::plugins::sagemaker::AlgorithmSpecification*>( + ::flyteidl::plugins::sagemaker::AlgorithmSpecification::internal_default_instance()); + ::flyteidl::plugins::sagemaker::_TrainingJob_default_instance_._instance.get_mutable()->training_job_resource_config_ = const_cast< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig*>( + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::internal_default_instance()); +} +class TrainingJob::HasBitSetters { + public: + static const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification(const TrainingJob* msg); + static const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_resource_config(const TrainingJob* msg); +}; + +const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& +TrainingJob::HasBitSetters::algorithm_specification(const TrainingJob* msg) { + return *msg->algorithm_specification_; +} +const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& +TrainingJob::HasBitSetters::training_job_resource_config(const TrainingJob* msg) { + return *msg->training_job_resource_config_; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TrainingJob::kAlgorithmSpecificationFieldNumber; +const int TrainingJob::kTrainingJobResourceConfigFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TrainingJob::TrainingJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.sagemaker.TrainingJob) +} +TrainingJob::TrainingJob(const TrainingJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_algorithm_specification()) { + algorithm_specification_ = new ::flyteidl::plugins::sagemaker::AlgorithmSpecification(*from.algorithm_specification_); + } else { + algorithm_specification_ = nullptr; + } + if (from.has_training_job_resource_config()) { + training_job_resource_config_ = new ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig(*from.training_job_resource_config_); + } else { + training_job_resource_config_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.sagemaker.TrainingJob) +} + +void TrainingJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + ::memset(&algorithm_specification_, 0, static_cast( + reinterpret_cast(&training_job_resource_config_) - + reinterpret_cast(&algorithm_specification_)) + sizeof(training_job_resource_config_)); +} + +TrainingJob::~TrainingJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.sagemaker.TrainingJob) + SharedDtor(); +} + +void TrainingJob::SharedDtor() { + if (this != internal_default_instance()) delete algorithm_specification_; + if (this != internal_default_instance()) delete training_job_resource_config_; +} + +void TrainingJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TrainingJob& TrainingJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TrainingJob_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto.base); + return *internal_default_instance(); +} + + +void TrainingJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { + delete algorithm_specification_; + } + algorithm_specification_ = nullptr; + if (GetArenaNoVirtual() == nullptr && training_job_resource_config_ != nullptr) { + delete training_job_resource_config_; + } + training_job_resource_config_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TrainingJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::AlgorithmSpecification::_InternalParse; + object = msg->mutable_algorithm_specification(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::_InternalParse; + object = msg->mutable_training_job_resource_config(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TrainingJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.sagemaker.TrainingJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_algorithm_specification())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_training_job_resource_config())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.sagemaker.TrainingJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.sagemaker.TrainingJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TrainingJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + if (this->has_algorithm_specification()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::algorithm_specification(this), output); + } + + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + if (this->has_training_job_resource_config()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::training_job_resource_config(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.sagemaker.TrainingJob) +} + +::google::protobuf::uint8* TrainingJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + if (this->has_algorithm_specification()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::algorithm_specification(this), target); + } + + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + if (this->has_training_job_resource_config()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::training_job_resource_config(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.sagemaker.TrainingJob) + return target; +} + +size_t TrainingJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.sagemaker.TrainingJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + if (this->has_algorithm_specification()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *algorithm_specification_); + } + + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + if (this->has_training_job_resource_config()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *training_job_resource_config_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TrainingJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) + GOOGLE_DCHECK_NE(&from, this); + const TrainingJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.sagemaker.TrainingJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.sagemaker.TrainingJob) + MergeFrom(*source); + } +} + +void TrainingJob::MergeFrom(const TrainingJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.sagemaker.TrainingJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_algorithm_specification()) { + mutable_algorithm_specification()->::flyteidl::plugins::sagemaker::AlgorithmSpecification::MergeFrom(from.algorithm_specification()); + } + if (from.has_training_job_resource_config()) { + mutable_training_job_resource_config()->::flyteidl::plugins::sagemaker::TrainingJobResourceConfig::MergeFrom(from.training_job_resource_config()); + } +} + +void TrainingJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TrainingJob::CopyFrom(const TrainingJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.sagemaker.TrainingJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TrainingJob::IsInitialized() const { + return true; +} + +void TrainingJob::Swap(TrainingJob* other) { + if (other == this) return; + InternalSwap(other); +} +void TrainingJob::InternalSwap(TrainingJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(algorithm_specification_, other->algorithm_specification_); + swap(training_job_resource_config_, other->training_job_resource_config_); +} + +::google::protobuf::Metadata TrainingJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::InputMode >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::InputMode >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmName >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmName >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::InputContentType* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::InputContentType >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::InputContentType >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::MetricDefinition >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::MetricDefinition >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::AlgorithmSpecification >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::DistributedProtocol* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::DistributedProtocol >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::DistributedProtocol >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::sagemaker::TrainingJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::sagemaker::TrainingJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h new file mode 100644 index 0000000000..8fc367ba71 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sagemaker/training_job.pb.h @@ -0,0 +1,1780 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/training_job.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[8] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto(); +namespace flyteidl { +namespace plugins { +namespace sagemaker { +class AlgorithmName; +class AlgorithmNameDefaultTypeInternal; +extern AlgorithmNameDefaultTypeInternal _AlgorithmName_default_instance_; +class AlgorithmSpecification; +class AlgorithmSpecificationDefaultTypeInternal; +extern AlgorithmSpecificationDefaultTypeInternal _AlgorithmSpecification_default_instance_; +class DistributedProtocol; +class DistributedProtocolDefaultTypeInternal; +extern DistributedProtocolDefaultTypeInternal _DistributedProtocol_default_instance_; +class InputContentType; +class InputContentTypeDefaultTypeInternal; +extern InputContentTypeDefaultTypeInternal _InputContentType_default_instance_; +class InputMode; +class InputModeDefaultTypeInternal; +extern InputModeDefaultTypeInternal _InputMode_default_instance_; +class MetricDefinition; +class MetricDefinitionDefaultTypeInternal; +extern MetricDefinitionDefaultTypeInternal _MetricDefinition_default_instance_; +class TrainingJob; +class TrainingJobDefaultTypeInternal; +extern TrainingJobDefaultTypeInternal _TrainingJob_default_instance_; +class TrainingJobResourceConfig; +class TrainingJobResourceConfigDefaultTypeInternal; +extern TrainingJobResourceConfigDefaultTypeInternal _TrainingJobResourceConfig_default_instance_; +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::sagemaker::AlgorithmName* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmName>(Arena*); +template<> ::flyteidl::plugins::sagemaker::AlgorithmSpecification* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(Arena*); +template<> ::flyteidl::plugins::sagemaker::DistributedProtocol* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::DistributedProtocol>(Arena*); +template<> ::flyteidl::plugins::sagemaker::InputContentType* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputContentType>(Arena*); +template<> ::flyteidl::plugins::sagemaker::InputMode* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::InputMode>(Arena*); +template<> ::flyteidl::plugins::sagemaker::MetricDefinition* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::MetricDefinition>(Arena*); +template<> ::flyteidl::plugins::sagemaker::TrainingJob* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJob>(Arena*); +template<> ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobResourceConfig>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { +namespace sagemaker { + +enum InputMode_Value { + InputMode_Value_FILE = 0, + InputMode_Value_PIPE = 1, + InputMode_Value_InputMode_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + InputMode_Value_InputMode_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool InputMode_Value_IsValid(int value); +const InputMode_Value InputMode_Value_Value_MIN = InputMode_Value_FILE; +const InputMode_Value InputMode_Value_Value_MAX = InputMode_Value_PIPE; +const int InputMode_Value_Value_ARRAYSIZE = InputMode_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* InputMode_Value_descriptor(); +inline const ::std::string& InputMode_Value_Name(InputMode_Value value) { + return ::google::protobuf::internal::NameOfEnum( + InputMode_Value_descriptor(), value); +} +inline bool InputMode_Value_Parse( + const ::std::string& name, InputMode_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + InputMode_Value_descriptor(), name, value); +} +enum AlgorithmName_Value { + AlgorithmName_Value_CUSTOM = 0, + AlgorithmName_Value_XGBOOST = 1, + AlgorithmName_Value_AlgorithmName_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + AlgorithmName_Value_AlgorithmName_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool AlgorithmName_Value_IsValid(int value); +const AlgorithmName_Value AlgorithmName_Value_Value_MIN = AlgorithmName_Value_CUSTOM; +const AlgorithmName_Value AlgorithmName_Value_Value_MAX = AlgorithmName_Value_XGBOOST; +const int AlgorithmName_Value_Value_ARRAYSIZE = AlgorithmName_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* AlgorithmName_Value_descriptor(); +inline const ::std::string& AlgorithmName_Value_Name(AlgorithmName_Value value) { + return ::google::protobuf::internal::NameOfEnum( + AlgorithmName_Value_descriptor(), value); +} +inline bool AlgorithmName_Value_Parse( + const ::std::string& name, AlgorithmName_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AlgorithmName_Value_descriptor(), name, value); +} +enum InputContentType_Value { + InputContentType_Value_TEXT_CSV = 0, + InputContentType_Value_InputContentType_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + InputContentType_Value_InputContentType_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool InputContentType_Value_IsValid(int value); +const InputContentType_Value InputContentType_Value_Value_MIN = InputContentType_Value_TEXT_CSV; +const InputContentType_Value InputContentType_Value_Value_MAX = InputContentType_Value_TEXT_CSV; +const int InputContentType_Value_Value_ARRAYSIZE = InputContentType_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* InputContentType_Value_descriptor(); +inline const ::std::string& InputContentType_Value_Name(InputContentType_Value value) { + return ::google::protobuf::internal::NameOfEnum( + InputContentType_Value_descriptor(), value); +} +inline bool InputContentType_Value_Parse( + const ::std::string& name, InputContentType_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + InputContentType_Value_descriptor(), name, value); +} +enum DistributedProtocol_Value { + DistributedProtocol_Value_UNSPECIFIED = 0, + DistributedProtocol_Value_MPI = 1, + DistributedProtocol_Value_DistributedProtocol_Value_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + DistributedProtocol_Value_DistributedProtocol_Value_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool DistributedProtocol_Value_IsValid(int value); +const DistributedProtocol_Value DistributedProtocol_Value_Value_MIN = DistributedProtocol_Value_UNSPECIFIED; +const DistributedProtocol_Value DistributedProtocol_Value_Value_MAX = DistributedProtocol_Value_MPI; +const int DistributedProtocol_Value_Value_ARRAYSIZE = DistributedProtocol_Value_Value_MAX + 1; + +const ::google::protobuf::EnumDescriptor* DistributedProtocol_Value_descriptor(); +inline const ::std::string& DistributedProtocol_Value_Name(DistributedProtocol_Value value) { + return ::google::protobuf::internal::NameOfEnum( + DistributedProtocol_Value_descriptor(), value); +} +inline bool DistributedProtocol_Value_Parse( + const ::std::string& name, DistributedProtocol_Value* value) { + return ::google::protobuf::internal::ParseNamedEnum( + DistributedProtocol_Value_descriptor(), name, value); +} +// =================================================================== + +class InputMode final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.InputMode) */ { + public: + InputMode(); + virtual ~InputMode(); + + InputMode(const InputMode& from); + + inline InputMode& operator=(const InputMode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + InputMode(InputMode&& from) noexcept + : InputMode() { + *this = ::std::move(from); + } + + inline InputMode& operator=(InputMode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const InputMode& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InputMode* internal_default_instance() { + return reinterpret_cast( + &_InputMode_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(InputMode* other); + friend void swap(InputMode& a, InputMode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline InputMode* New() const final { + return CreateMaybeMessage(nullptr); + } + + InputMode* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const InputMode& from); + void MergeFrom(const InputMode& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InputMode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef InputMode_Value Value; + static const Value FILE = + InputMode_Value_FILE; + static const Value PIPE = + InputMode_Value_PIPE; + static inline bool Value_IsValid(int value) { + return InputMode_Value_IsValid(value); + } + static const Value Value_MIN = + InputMode_Value_Value_MIN; + static const Value Value_MAX = + InputMode_Value_Value_MAX; + static const int Value_ARRAYSIZE = + InputMode_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return InputMode_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return InputMode_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return InputMode_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputMode) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class AlgorithmName final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmName) */ { + public: + AlgorithmName(); + virtual ~AlgorithmName(); + + AlgorithmName(const AlgorithmName& from); + + inline AlgorithmName& operator=(const AlgorithmName& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmName(AlgorithmName&& from) noexcept + : AlgorithmName() { + *this = ::std::move(from); + } + + inline AlgorithmName& operator=(AlgorithmName&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmName& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmName* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmName_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(AlgorithmName* other); + friend void swap(AlgorithmName& a, AlgorithmName& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmName* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmName* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmName& from); + void MergeFrom(const AlgorithmName& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmName* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef AlgorithmName_Value Value; + static const Value CUSTOM = + AlgorithmName_Value_CUSTOM; + static const Value XGBOOST = + AlgorithmName_Value_XGBOOST; + static inline bool Value_IsValid(int value) { + return AlgorithmName_Value_IsValid(value); + } + static const Value Value_MIN = + AlgorithmName_Value_Value_MIN; + static const Value Value_MAX = + AlgorithmName_Value_Value_MAX; + static const int Value_ARRAYSIZE = + AlgorithmName_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return AlgorithmName_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return AlgorithmName_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return AlgorithmName_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmName) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class InputContentType final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.InputContentType) */ { + public: + InputContentType(); + virtual ~InputContentType(); + + InputContentType(const InputContentType& from); + + inline InputContentType& operator=(const InputContentType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + InputContentType(InputContentType&& from) noexcept + : InputContentType() { + *this = ::std::move(from); + } + + inline InputContentType& operator=(InputContentType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const InputContentType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const InputContentType* internal_default_instance() { + return reinterpret_cast( + &_InputContentType_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(InputContentType* other); + friend void swap(InputContentType& a, InputContentType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline InputContentType* New() const final { + return CreateMaybeMessage(nullptr); + } + + InputContentType* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const InputContentType& from); + void MergeFrom(const InputContentType& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InputContentType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef InputContentType_Value Value; + static const Value TEXT_CSV = + InputContentType_Value_TEXT_CSV; + static inline bool Value_IsValid(int value) { + return InputContentType_Value_IsValid(value); + } + static const Value Value_MIN = + InputContentType_Value_Value_MIN; + static const Value Value_MAX = + InputContentType_Value_Value_MAX; + static const int Value_ARRAYSIZE = + InputContentType_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return InputContentType_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return InputContentType_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return InputContentType_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputContentType) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class MetricDefinition final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.MetricDefinition) */ { + public: + MetricDefinition(); + virtual ~MetricDefinition(); + + MetricDefinition(const MetricDefinition& from); + + inline MetricDefinition& operator=(const MetricDefinition& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MetricDefinition(MetricDefinition&& from) noexcept + : MetricDefinition() { + *this = ::std::move(from); + } + + inline MetricDefinition& operator=(MetricDefinition&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const MetricDefinition& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MetricDefinition* internal_default_instance() { + return reinterpret_cast( + &_MetricDefinition_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(MetricDefinition* other); + friend void swap(MetricDefinition& a, MetricDefinition& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MetricDefinition* New() const final { + return CreateMaybeMessage(nullptr); + } + + MetricDefinition* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MetricDefinition& from); + void MergeFrom(const MetricDefinition& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MetricDefinition* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string regex = 2; + void clear_regex(); + static const int kRegexFieldNumber = 2; + const ::std::string& regex() const; + void set_regex(const ::std::string& value); + #if LANG_CXX11 + void set_regex(::std::string&& value); + #endif + void set_regex(const char* value); + void set_regex(const char* value, size_t size); + ::std::string* mutable_regex(); + ::std::string* release_regex(); + void set_allocated_regex(::std::string* regex); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.MetricDefinition) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr regex_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class AlgorithmSpecification final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.AlgorithmSpecification) */ { + public: + AlgorithmSpecification(); + virtual ~AlgorithmSpecification(); + + AlgorithmSpecification(const AlgorithmSpecification& from); + + inline AlgorithmSpecification& operator=(const AlgorithmSpecification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + AlgorithmSpecification(AlgorithmSpecification&& from) noexcept + : AlgorithmSpecification() { + *this = ::std::move(from); + } + + inline AlgorithmSpecification& operator=(AlgorithmSpecification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const AlgorithmSpecification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const AlgorithmSpecification* internal_default_instance() { + return reinterpret_cast( + &_AlgorithmSpecification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(AlgorithmSpecification* other); + friend void swap(AlgorithmSpecification& a, AlgorithmSpecification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline AlgorithmSpecification* New() const final { + return CreateMaybeMessage(nullptr); + } + + AlgorithmSpecification* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const AlgorithmSpecification& from); + void MergeFrom(const AlgorithmSpecification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AlgorithmSpecification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + int metric_definitions_size() const; + void clear_metric_definitions(); + static const int kMetricDefinitionsFieldNumber = 4; + ::flyteidl::plugins::sagemaker::MetricDefinition* mutable_metric_definitions(int index); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >* + mutable_metric_definitions(); + const ::flyteidl::plugins::sagemaker::MetricDefinition& metric_definitions(int index) const; + ::flyteidl::plugins::sagemaker::MetricDefinition* add_metric_definitions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >& + metric_definitions() const; + + // string algorithm_version = 3; + void clear_algorithm_version(); + static const int kAlgorithmVersionFieldNumber = 3; + const ::std::string& algorithm_version() const; + void set_algorithm_version(const ::std::string& value); + #if LANG_CXX11 + void set_algorithm_version(::std::string&& value); + #endif + void set_algorithm_version(const char* value); + void set_algorithm_version(const char* value, size_t size); + ::std::string* mutable_algorithm_version(); + ::std::string* release_algorithm_version(); + void set_allocated_algorithm_version(::std::string* algorithm_version); + + // .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + void clear_input_mode(); + static const int kInputModeFieldNumber = 1; + ::flyteidl::plugins::sagemaker::InputMode_Value input_mode() const; + void set_input_mode(::flyteidl::plugins::sagemaker::InputMode_Value value); + + // .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + void clear_algorithm_name(); + static const int kAlgorithmNameFieldNumber = 2; + ::flyteidl::plugins::sagemaker::AlgorithmName_Value algorithm_name() const; + void set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName_Value value); + + // .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + void clear_input_content_type(); + static const int kInputContentTypeFieldNumber = 5; + ::flyteidl::plugins::sagemaker::InputContentType_Value input_content_type() const; + void set_input_content_type(::flyteidl::plugins::sagemaker::InputContentType_Value value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition > metric_definitions_; + ::google::protobuf::internal::ArenaStringPtr algorithm_version_; + int input_mode_; + int algorithm_name_; + int input_content_type_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class DistributedProtocol final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.DistributedProtocol) */ { + public: + DistributedProtocol(); + virtual ~DistributedProtocol(); + + DistributedProtocol(const DistributedProtocol& from); + + inline DistributedProtocol& operator=(const DistributedProtocol& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedProtocol(DistributedProtocol&& from) noexcept + : DistributedProtocol() { + *this = ::std::move(from); + } + + inline DistributedProtocol& operator=(DistributedProtocol&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedProtocol& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedProtocol* internal_default_instance() { + return reinterpret_cast( + &_DistributedProtocol_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(DistributedProtocol* other); + friend void swap(DistributedProtocol& a, DistributedProtocol& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedProtocol* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedProtocol* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedProtocol& from); + void MergeFrom(const DistributedProtocol& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedProtocol* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef DistributedProtocol_Value Value; + static const Value UNSPECIFIED = + DistributedProtocol_Value_UNSPECIFIED; + static const Value MPI = + DistributedProtocol_Value_MPI; + static inline bool Value_IsValid(int value) { + return DistributedProtocol_Value_IsValid(value); + } + static const Value Value_MIN = + DistributedProtocol_Value_Value_MIN; + static const Value Value_MAX = + DistributedProtocol_Value_Value_MAX; + static const int Value_ARRAYSIZE = + DistributedProtocol_Value_Value_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Value_descriptor() { + return DistributedProtocol_Value_descriptor(); + } + static inline const ::std::string& Value_Name(Value value) { + return DistributedProtocol_Value_Name(value); + } + static inline bool Value_Parse(const ::std::string& name, + Value* value) { + return DistributedProtocol_Value_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.DistributedProtocol) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class TrainingJobResourceConfig final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) */ { + public: + TrainingJobResourceConfig(); + virtual ~TrainingJobResourceConfig(); + + TrainingJobResourceConfig(const TrainingJobResourceConfig& from); + + inline TrainingJobResourceConfig& operator=(const TrainingJobResourceConfig& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TrainingJobResourceConfig(TrainingJobResourceConfig&& from) noexcept + : TrainingJobResourceConfig() { + *this = ::std::move(from); + } + + inline TrainingJobResourceConfig& operator=(TrainingJobResourceConfig&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TrainingJobResourceConfig& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TrainingJobResourceConfig* internal_default_instance() { + return reinterpret_cast( + &_TrainingJobResourceConfig_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(TrainingJobResourceConfig* other); + friend void swap(TrainingJobResourceConfig& a, TrainingJobResourceConfig& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TrainingJobResourceConfig* New() const final { + return CreateMaybeMessage(nullptr); + } + + TrainingJobResourceConfig* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TrainingJobResourceConfig& from); + void MergeFrom(const TrainingJobResourceConfig& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJobResourceConfig* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string instance_type = 2; + void clear_instance_type(); + static const int kInstanceTypeFieldNumber = 2; + const ::std::string& instance_type() const; + void set_instance_type(const ::std::string& value); + #if LANG_CXX11 + void set_instance_type(::std::string&& value); + #endif + void set_instance_type(const char* value); + void set_instance_type(const char* value, size_t size); + ::std::string* mutable_instance_type(); + ::std::string* release_instance_type(); + void set_allocated_instance_type(::std::string* instance_type); + + // int64 instance_count = 1; + void clear_instance_count(); + static const int kInstanceCountFieldNumber = 1; + ::google::protobuf::int64 instance_count() const; + void set_instance_count(::google::protobuf::int64 value); + + // int64 volume_size_in_gb = 3; + void clear_volume_size_in_gb(); + static const int kVolumeSizeInGbFieldNumber = 3; + ::google::protobuf::int64 volume_size_in_gb() const; + void set_volume_size_in_gb(::google::protobuf::int64 value); + + // .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + void clear_distributed_protocol(); + static const int kDistributedProtocolFieldNumber = 4; + ::flyteidl::plugins::sagemaker::DistributedProtocol_Value distributed_protocol() const; + void set_distributed_protocol(::flyteidl::plugins::sagemaker::DistributedProtocol_Value value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr instance_type_; + ::google::protobuf::int64 instance_count_; + ::google::protobuf::int64 volume_size_in_gb_; + int distributed_protocol_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// ------------------------------------------------------------------- + +class TrainingJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.sagemaker.TrainingJob) */ { + public: + TrainingJob(); + virtual ~TrainingJob(); + + TrainingJob(const TrainingJob& from); + + inline TrainingJob& operator=(const TrainingJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TrainingJob(TrainingJob&& from) noexcept + : TrainingJob() { + *this = ::std::move(from); + } + + inline TrainingJob& operator=(TrainingJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TrainingJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TrainingJob* internal_default_instance() { + return reinterpret_cast( + &_TrainingJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(TrainingJob* other); + friend void swap(TrainingJob& a, TrainingJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TrainingJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + TrainingJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TrainingJob& from); + void MergeFrom(const TrainingJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TrainingJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + bool has_algorithm_specification() const; + void clear_algorithm_specification(); + static const int kAlgorithmSpecificationFieldNumber = 1; + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& algorithm_specification() const; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* release_algorithm_specification(); + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* mutable_algorithm_specification(); + void set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification); + + // .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + bool has_training_job_resource_config() const; + void clear_training_job_resource_config(); + static const int kTrainingJobResourceConfigFieldNumber = 2; + const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& training_job_resource_config() const; + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* release_training_job_resource_config(); + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* mutable_training_job_resource_config(); + void set_allocated_training_job_resource_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_resource_config); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification_; + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_resource_config_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// InputMode + +// ------------------------------------------------------------------- + +// AlgorithmName + +// ------------------------------------------------------------------- + +// InputContentType + +// ------------------------------------------------------------------- + +// MetricDefinition + +// string name = 1; +inline void MetricDefinition::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& MetricDefinition::name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.MetricDefinition.name) + return name_.GetNoArena(); +} +inline void MetricDefinition::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.MetricDefinition.name) +} +#if LANG_CXX11 +inline void MetricDefinition::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.MetricDefinition.name) +} +#endif +inline void MetricDefinition::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.MetricDefinition.name) +} +inline void MetricDefinition::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.MetricDefinition.name) +} +inline ::std::string* MetricDefinition::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.MetricDefinition.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MetricDefinition::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.MetricDefinition.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MetricDefinition::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.MetricDefinition.name) +} + +// string regex = 2; +inline void MetricDefinition::clear_regex() { + regex_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& MetricDefinition::regex() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.MetricDefinition.regex) + return regex_.GetNoArena(); +} +inline void MetricDefinition::set_regex(const ::std::string& value) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.MetricDefinition.regex) +} +#if LANG_CXX11 +inline void MetricDefinition::set_regex(::std::string&& value) { + + regex_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.MetricDefinition.regex) +} +#endif +inline void MetricDefinition::set_regex(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.MetricDefinition.regex) +} +inline void MetricDefinition::set_regex(const char* value, size_t size) { + + regex_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.MetricDefinition.regex) +} +inline ::std::string* MetricDefinition::mutable_regex() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.MetricDefinition.regex) + return regex_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* MetricDefinition::release_regex() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.MetricDefinition.regex) + + return regex_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void MetricDefinition::set_allocated_regex(::std::string* regex) { + if (regex != nullptr) { + + } else { + + } + regex_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), regex); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.MetricDefinition.regex) +} + +// ------------------------------------------------------------------- + +// AlgorithmSpecification + +// .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; +inline void AlgorithmSpecification::clear_input_mode() { + input_mode_ = 0; +} +inline ::flyteidl::plugins::sagemaker::InputMode_Value AlgorithmSpecification::input_mode() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) + return static_cast< ::flyteidl::plugins::sagemaker::InputMode_Value >(input_mode_); +} +inline void AlgorithmSpecification::set_input_mode(::flyteidl::plugins::sagemaker::InputMode_Value value) { + + input_mode_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_mode) +} + +// .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; +inline void AlgorithmSpecification::clear_algorithm_name() { + algorithm_name_ = 0; +} +inline ::flyteidl::plugins::sagemaker::AlgorithmName_Value AlgorithmSpecification::algorithm_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) + return static_cast< ::flyteidl::plugins::sagemaker::AlgorithmName_Value >(algorithm_name_); +} +inline void AlgorithmSpecification::set_algorithm_name(::flyteidl::plugins::sagemaker::AlgorithmName_Value value) { + + algorithm_name_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_name) +} + +// string algorithm_version = 3; +inline void AlgorithmSpecification::clear_algorithm_version() { + algorithm_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& AlgorithmSpecification::algorithm_version() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + return algorithm_version_.GetNoArena(); +} +inline void AlgorithmSpecification::set_algorithm_version(const ::std::string& value) { + + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +#if LANG_CXX11 +inline void AlgorithmSpecification::set_algorithm_version(::std::string&& value) { + + algorithm_version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +#endif +inline void AlgorithmSpecification::set_algorithm_version(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +inline void AlgorithmSpecification::set_algorithm_version(const char* value, size_t size) { + + algorithm_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} +inline ::std::string* AlgorithmSpecification::mutable_algorithm_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + return algorithm_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* AlgorithmSpecification::release_algorithm_version() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) + + return algorithm_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void AlgorithmSpecification::set_allocated_algorithm_version(::std::string* algorithm_version) { + if (algorithm_version != nullptr) { + + } else { + + } + algorithm_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), algorithm_version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.AlgorithmSpecification.algorithm_version) +} + +// repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; +inline int AlgorithmSpecification::metric_definitions_size() const { + return metric_definitions_.size(); +} +inline void AlgorithmSpecification::clear_metric_definitions() { + metric_definitions_.Clear(); +} +inline ::flyteidl::plugins::sagemaker::MetricDefinition* AlgorithmSpecification::mutable_metric_definitions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >* +AlgorithmSpecification::mutable_metric_definitions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return &metric_definitions_; +} +inline const ::flyteidl::plugins::sagemaker::MetricDefinition& AlgorithmSpecification::metric_definitions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Get(index); +} +inline ::flyteidl::plugins::sagemaker::MetricDefinition* AlgorithmSpecification::add_metric_definitions() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::sagemaker::MetricDefinition >& +AlgorithmSpecification::metric_definitions() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.sagemaker.AlgorithmSpecification.metric_definitions) + return metric_definitions_; +} + +// .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; +inline void AlgorithmSpecification::clear_input_content_type() { + input_content_type_ = 0; +} +inline ::flyteidl::plugins::sagemaker::InputContentType_Value AlgorithmSpecification::input_content_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_content_type) + return static_cast< ::flyteidl::plugins::sagemaker::InputContentType_Value >(input_content_type_); +} +inline void AlgorithmSpecification::set_input_content_type(::flyteidl::plugins::sagemaker::InputContentType_Value value) { + + input_content_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.AlgorithmSpecification.input_content_type) +} + +// ------------------------------------------------------------------- + +// DistributedProtocol + +// ------------------------------------------------------------------- + +// TrainingJobResourceConfig + +// int64 instance_count = 1; +inline void TrainingJobResourceConfig::clear_instance_count() { + instance_count_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 TrainingJobResourceConfig::instance_count() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_count) + return instance_count_; +} +inline void TrainingJobResourceConfig::set_instance_count(::google::protobuf::int64 value) { + + instance_count_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_count) +} + +// string instance_type = 2; +inline void TrainingJobResourceConfig::clear_instance_type() { + instance_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TrainingJobResourceConfig::instance_type() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) + return instance_type_.GetNoArena(); +} +inline void TrainingJobResourceConfig::set_instance_type(const ::std::string& value) { + + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) +} +#if LANG_CXX11 +inline void TrainingJobResourceConfig::set_instance_type(::std::string&& value) { + + instance_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) +} +#endif +inline void TrainingJobResourceConfig::set_instance_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) +} +inline void TrainingJobResourceConfig::set_instance_type(const char* value, size_t size) { + + instance_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) +} +inline ::std::string* TrainingJobResourceConfig::mutable_instance_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) + return instance_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TrainingJobResourceConfig::release_instance_type() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) + + return instance_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TrainingJobResourceConfig::set_allocated_instance_type(::std::string* instance_type) { + if (instance_type != nullptr) { + + } else { + + } + instance_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instance_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.instance_type) +} + +// int64 volume_size_in_gb = 3; +inline void TrainingJobResourceConfig::clear_volume_size_in_gb() { + volume_size_in_gb_ = PROTOBUF_LONGLONG(0); +} +inline ::google::protobuf::int64 TrainingJobResourceConfig::volume_size_in_gb() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.volume_size_in_gb) + return volume_size_in_gb_; +} +inline void TrainingJobResourceConfig::set_volume_size_in_gb(::google::protobuf::int64 value) { + + volume_size_in_gb_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.volume_size_in_gb) +} + +// .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; +inline void TrainingJobResourceConfig::clear_distributed_protocol() { + distributed_protocol_ = 0; +} +inline ::flyteidl::plugins::sagemaker::DistributedProtocol_Value TrainingJobResourceConfig::distributed_protocol() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.distributed_protocol) + return static_cast< ::flyteidl::plugins::sagemaker::DistributedProtocol_Value >(distributed_protocol_); +} +inline void TrainingJobResourceConfig::set_distributed_protocol(::flyteidl::plugins::sagemaker::DistributedProtocol_Value value) { + + distributed_protocol_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.sagemaker.TrainingJobResourceConfig.distributed_protocol) +} + +// ------------------------------------------------------------------- + +// TrainingJob + +// .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; +inline bool TrainingJob::has_algorithm_specification() const { + return this != internal_default_instance() && algorithm_specification_ != nullptr; +} +inline void TrainingJob::clear_algorithm_specification() { + if (GetArenaNoVirtual() == nullptr && algorithm_specification_ != nullptr) { + delete algorithm_specification_; + } + algorithm_specification_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::AlgorithmSpecification& TrainingJob::algorithm_specification() const { + const ::flyteidl::plugins::sagemaker::AlgorithmSpecification* p = algorithm_specification_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_AlgorithmSpecification_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::release_algorithm_specification() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) + + ::flyteidl::plugins::sagemaker::AlgorithmSpecification* temp = algorithm_specification_; + algorithm_specification_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::AlgorithmSpecification* TrainingJob::mutable_algorithm_specification() { + + if (algorithm_specification_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::AlgorithmSpecification>(GetArenaNoVirtual()); + algorithm_specification_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) + return algorithm_specification_; +} +inline void TrainingJob::set_allocated_algorithm_specification(::flyteidl::plugins::sagemaker::AlgorithmSpecification* algorithm_specification) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete algorithm_specification_; + } + if (algorithm_specification) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + algorithm_specification = ::google::protobuf::internal::GetOwnedMessage( + message_arena, algorithm_specification, submessage_arena); + } + + } else { + + } + algorithm_specification_ = algorithm_specification; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.algorithm_specification) +} + +// .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; +inline bool TrainingJob::has_training_job_resource_config() const { + return this != internal_default_instance() && training_job_resource_config_ != nullptr; +} +inline void TrainingJob::clear_training_job_resource_config() { + if (GetArenaNoVirtual() == nullptr && training_job_resource_config_ != nullptr) { + delete training_job_resource_config_; + } + training_job_resource_config_ = nullptr; +} +inline const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig& TrainingJob::training_job_resource_config() const { + const ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* p = training_job_resource_config_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::plugins::sagemaker::_TrainingJobResourceConfig_default_instance_); +} +inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::release_training_job_resource_config() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) + + ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* temp = training_job_resource_config_; + training_job_resource_config_ = nullptr; + return temp; +} +inline ::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* TrainingJob::mutable_training_job_resource_config() { + + if (training_job_resource_config_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::plugins::sagemaker::TrainingJobResourceConfig>(GetArenaNoVirtual()); + training_job_resource_config_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) + return training_job_resource_config_; +} +inline void TrainingJob::set_allocated_training_job_resource_config(::flyteidl::plugins::sagemaker::TrainingJobResourceConfig* training_job_resource_config) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete training_job_resource_config_; + } + if (training_job_resource_config) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + training_job_resource_config = ::google::protobuf::internal::GetOwnedMessage( + message_arena, training_job_resource_config, submessage_arena); + } + + } else { + + } + training_job_resource_config_ = training_job_resource_config; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.sagemaker.TrainingJob.training_job_resource_config) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace sagemaker +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputMode_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputMode_Value>() { + return ::flyteidl::plugins::sagemaker::InputMode_Value_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::AlgorithmName_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::AlgorithmName_Value>() { + return ::flyteidl::plugins::sagemaker::AlgorithmName_Value_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::InputContentType_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::InputContentType_Value>() { + return ::flyteidl::plugins::sagemaker::InputContentType_Value_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::plugins::sagemaker::DistributedProtocol_Value> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::sagemaker::DistributedProtocol_Value>() { + return ::flyteidl::plugins::sagemaker::DistributedProtocol_Value_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fsagemaker_2ftraining_5fjob_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc new file mode 100644 index 0000000000..1f9111abee --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/spark.proto + +#include "flyteidl/plugins/spark.pb.h" +#include "flyteidl/plugins/spark.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h new file mode 100644 index 0000000000..c6a35b10ad --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/spark.proto +#ifndef GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED + +#include "flyteidl/plugins/spark.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc new file mode 100644 index 0000000000..60f8d21c9e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc @@ -0,0 +1,1580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +#include "flyteidl/plugins/spark.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fspark_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fspark_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; +namespace flyteidl { +namespace plugins { +class SparkApplicationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SparkApplication_default_instance_; +class SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SparkJob_SparkConfEntry_DoNotUse_default_instance_; +class SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SparkJob_HadoopConfEntry_DoNotUse_default_instance_; +class SparkJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _SparkJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsSparkApplication_flyteidl_2fplugins_2fspark_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_SparkApplication_default_instance_; + new (ptr) ::flyteidl::plugins::SparkApplication(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::SparkApplication::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SparkApplication_flyteidl_2fplugins_2fspark_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSparkApplication_flyteidl_2fplugins_2fspark_2eproto}, {}}; + +static void InitDefaultsSparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_SparkJob_SparkConfEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse(); + } + ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto}, {}}; + +static void InitDefaultsSparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_SparkJob_HadoopConfEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse(); + } + ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto}, {}}; + +static void InitDefaultsSparkJob_flyteidl_2fplugins_2fspark_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_SparkJob_default_instance_; + new (ptr) ::flyteidl::plugins::SparkJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::SparkJob::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<3> scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSparkJob_flyteidl_2fplugins_2fspark_2eproto}, { + &scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base, + &scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base, + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fspark_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_SparkApplication_flyteidl_2fplugins_2fspark_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[4]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fspark_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fspark_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fspark_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkApplication, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, applicationtype_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, mainapplicationfile_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, mainclass_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, sparkconf_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, hadoopconf_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, executorpath_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, databricksconf_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, databrickstoken_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, databricksinstance_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::SparkApplication)}, + { 5, 12, sizeof(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse)}, + { 14, 21, sizeof(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse)}, + { 23, -1, sizeof(::flyteidl::plugins::SparkJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_SparkApplication_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_SparkJob_SparkConfEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_SparkJob_HadoopConfEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_SparkJob_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fspark_2eproto, "flyteidl/plugins/spark.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fspark_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fspark_2eproto, 4, file_level_enum_descriptors_flyteidl_2fplugins_2fspark_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fspark_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fspark_2eproto[] = + "\n\034flyteidl/plugins/spark.proto\022\020flyteidl" + ".plugins\032\034google/protobuf/struct.proto\"B" + "\n\020SparkApplication\".\n\004Type\022\n\n\006PYTHON\020\000\022\010" + "\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\333\003\n\010SparkJob\022" + "@\n\017applicationType\030\001 \001(\0162\'.flyteidl.plug" + "ins.SparkApplication.Type\022\033\n\023mainApplica" + "tionFile\030\002 \001(\t\022\021\n\tmainClass\030\003 \001(\t\022<\n\tspa" + "rkConf\030\004 \003(\0132).flyteidl.plugins.SparkJob" + ".SparkConfEntry\022>\n\nhadoopConf\030\005 \003(\0132*.fl" + "yteidl.plugins.SparkJob.HadoopConfEntry\022" + "\024\n\014executorPath\030\006 \001(\t\022/\n\016databricksConf\030" + "\007 \001(\0132\027.google.protobuf.Struct\022\027\n\017databr" + "icksToken\030\010 \001(\t\022\032\n\022databricksInstance\030\t " + "\001(\t\0320\n\016SparkConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\0321\n\017HadoopConfEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B9Z7github.com/f" + "lyteorg/flyteidl/gen/pb-go/flyteidl/plug" + "insb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fspark_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fspark_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fspark_2eproto, + "flyteidl/plugins/spark.proto", &assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto, 691, +}; + +void AddDescriptors_flyteidl_2fplugins_2fspark_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fspark_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fspark_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fspark_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { +const ::google::protobuf::EnumDescriptor* SparkApplication_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); + return file_level_enum_descriptors_flyteidl_2fplugins_2fspark_2eproto[0]; +} +bool SparkApplication_Type_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const SparkApplication_Type SparkApplication::PYTHON; +const SparkApplication_Type SparkApplication::JAVA; +const SparkApplication_Type SparkApplication::SCALA; +const SparkApplication_Type SparkApplication::R; +const SparkApplication_Type SparkApplication::Type_MIN; +const SparkApplication_Type SparkApplication::Type_MAX; +const int SparkApplication::Type_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void SparkApplication::InitAsDefaultInstance() { +} +class SparkApplication::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SparkApplication::SparkApplication() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.SparkApplication) +} +SparkApplication::SparkApplication(const SparkApplication& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.SparkApplication) +} + +void SparkApplication::SharedCtor() { +} + +SparkApplication::~SparkApplication() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.SparkApplication) + SharedDtor(); +} + +void SparkApplication::SharedDtor() { +} + +void SparkApplication::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SparkApplication& SparkApplication::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SparkApplication_flyteidl_2fplugins_2fspark_2eproto.base); + return *internal_default_instance(); +} + + +void SparkApplication::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.SparkApplication) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SparkApplication::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SparkApplication::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.SparkApplication) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.SparkApplication) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.SparkApplication) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SparkApplication::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.SparkApplication) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.SparkApplication) +} + +::google::protobuf::uint8* SparkApplication::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.SparkApplication) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.SparkApplication) + return target; +} + +size_t SparkApplication::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.SparkApplication) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SparkApplication::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.SparkApplication) + GOOGLE_DCHECK_NE(&from, this); + const SparkApplication* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.SparkApplication) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.SparkApplication) + MergeFrom(*source); + } +} + +void SparkApplication::MergeFrom(const SparkApplication& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.SparkApplication) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void SparkApplication::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.SparkApplication) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SparkApplication::CopyFrom(const SparkApplication& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.SparkApplication) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SparkApplication::IsInitialized() const { + return true; +} + +void SparkApplication::Swap(SparkApplication* other) { + if (other == this) return; + InternalSwap(other); +} +void SparkApplication::InternalSwap(SparkApplication* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata SparkApplication::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +SparkJob_SparkConfEntry_DoNotUse::SparkJob_SparkConfEntry_DoNotUse() {} +SparkJob_SparkConfEntry_DoNotUse::SparkJob_SparkConfEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void SparkJob_SparkConfEntry_DoNotUse::MergeFrom(const SparkJob_SparkConfEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata SparkJob_SparkConfEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[1]; +} +void SparkJob_SparkConfEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SparkJob_SparkConfEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + SparkJob_SparkConfEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.SparkConfEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.SparkConfEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +SparkJob_HadoopConfEntry_DoNotUse::SparkJob_HadoopConfEntry_DoNotUse() {} +SparkJob_HadoopConfEntry_DoNotUse::SparkJob_HadoopConfEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena) {} +void SparkJob_HadoopConfEntry_DoNotUse::MergeFrom(const SparkJob_HadoopConfEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata SparkJob_HadoopConfEntry_DoNotUse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[2]; +} +void SparkJob_HadoopConfEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SparkJob_HadoopConfEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { + using MF = ::google::protobuf::internal::MapField< + SparkJob_HadoopConfEntry_DoNotUse, EntryKeyType, EntryValueType, + kEntryKeyFieldType, kEntryValueFieldType, + kEntryDefaultEnumValue>; + auto mf = static_cast(object); + Parser> parser(mf); +#define DO_(x) if (!(x)) return false + DO_(parser.ParseMap(begin, end)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.value")); +#undef DO_ + return true; +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + + +// =================================================================== + +void SparkJob::InitAsDefaultInstance() { + ::flyteidl::plugins::_SparkJob_default_instance_._instance.get_mutable()->databricksconf_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +class SparkJob::HasBitSetters { + public: + static const ::google::protobuf::Struct& databricksconf(const SparkJob* msg); +}; + +const ::google::protobuf::Struct& +SparkJob::HasBitSetters::databricksconf(const SparkJob* msg) { + return *msg->databricksconf_; +} +void SparkJob::clear_databricksconf() { + if (GetArenaNoVirtual() == nullptr && databricksconf_ != nullptr) { + delete databricksconf_; + } + databricksconf_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SparkJob::kApplicationTypeFieldNumber; +const int SparkJob::kMainApplicationFileFieldNumber; +const int SparkJob::kMainClassFieldNumber; +const int SparkJob::kSparkConfFieldNumber; +const int SparkJob::kHadoopConfFieldNumber; +const int SparkJob::kExecutorPathFieldNumber; +const int SparkJob::kDatabricksConfFieldNumber; +const int SparkJob::kDatabricksTokenFieldNumber; +const int SparkJob::kDatabricksInstanceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SparkJob::SparkJob() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.SparkJob) +} +SparkJob::SparkJob(const SparkJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + sparkconf_.MergeFrom(from.sparkconf_); + hadoopconf_.MergeFrom(from.hadoopconf_); + mainapplicationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.mainapplicationfile().size() > 0) { + mainapplicationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainapplicationfile_); + } + mainclass_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.mainclass().size() > 0) { + mainclass_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainclass_); + } + executorpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.executorpath().size() > 0) { + executorpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.executorpath_); + } + databrickstoken_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.databrickstoken().size() > 0) { + databrickstoken_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databrickstoken_); + } + databricksinstance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.databricksinstance().size() > 0) { + databricksinstance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databricksinstance_); + } + if (from.has_databricksconf()) { + databricksconf_ = new ::google::protobuf::Struct(*from.databricksconf_); + } else { + databricksconf_ = nullptr; + } + applicationtype_ = from.applicationtype_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.SparkJob) +} + +void SparkJob::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto.base); + mainapplicationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mainclass_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + executorpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + databrickstoken_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + databricksinstance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&databricksconf_, 0, static_cast( + reinterpret_cast(&applicationtype_) - + reinterpret_cast(&databricksconf_)) + sizeof(applicationtype_)); +} + +SparkJob::~SparkJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.SparkJob) + SharedDtor(); +} + +void SparkJob::SharedDtor() { + mainapplicationfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mainclass_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + executorpath_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + databrickstoken_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + databricksinstance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete databricksconf_; +} + +void SparkJob::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const SparkJob& SparkJob::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto.base); + return *internal_default_instance(); +} + + +void SparkJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.SparkJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + sparkconf_.Clear(); + hadoopconf_.Clear(); + mainapplicationfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mainclass_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + executorpath_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + databrickstoken_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + databricksinstance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && databricksconf_ != nullptr) { + delete databricksconf_; + } + databricksconf_ = nullptr; + applicationtype_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* SparkJob::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_applicationtype(static_cast<::flyteidl::plugins::SparkApplication_Type>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string mainApplicationFile = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.mainApplicationFile"); + object = msg->mutable_mainapplicationfile(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string mainClass = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.mainClass"); + object = msg->mutable_mainclass(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // map sparkConf = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->sparkconf_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // map hadoopConf = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; + auto parse_map = ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse::_ParseMap; + ctx->extra_parse_data().payload.clear(); + ctx->extra_parse_data().parse_map = parse_map; + object = &msg->hadoopconf_; + if (size > end - ptr) goto len_delim_till_end; + auto newend = ptr + size; + GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); + ptr = newend; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + // string executorPath = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.executorPath"); + object = msg->mutable_executorpath(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Struct databricksConf = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_databricksconf(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string databricksToken = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.databricksToken"); + object = msg->mutable_databrickstoken(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string databricksInstance = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.databricksInstance"); + object = msg->mutable_databricksinstance(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool SparkJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.SparkJob) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_applicationtype(static_cast< ::flyteidl::plugins::SparkApplication_Type >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string mainApplicationFile = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mainapplicationfile())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.mainApplicationFile")); + } else { + goto handle_unusual; + } + break; + } + + // string mainClass = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mainclass())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainclass().data(), static_cast(this->mainclass().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.mainClass")); + } else { + goto handle_unusual; + } + break; + } + + // map sparkConf = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + SparkJob_SparkConfEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + SparkJob_SparkConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&sparkconf_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.SparkConfEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.SparkConfEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // map hadoopConf = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + SparkJob_HadoopConfEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + SparkJob_HadoopConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&hadoopconf_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // string executorPath = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_executorpath())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->executorpath().data(), static_cast(this->executorpath().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.executorPath")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct databricksConf = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_databricksconf())); + } else { + goto handle_unusual; + } + break; + } + + // string databricksToken = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_databrickstoken())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->databrickstoken().data(), static_cast(this->databrickstoken().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.databricksToken")); + } else { + goto handle_unusual; + } + break; + } + + // string databricksInstance = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_databricksinstance())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->databricksinstance().data(), static_cast(this->databricksinstance().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.databricksInstance")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.SparkJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.SparkJob) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void SparkJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.SparkJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + if (this->applicationtype() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->applicationtype(), output); + } + + // string mainApplicationFile = 2; + if (this->mainapplicationfile().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainApplicationFile"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->mainapplicationfile(), output); + } + + // string mainClass = 3; + if (this->mainclass().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainclass().data(), static_cast(this->mainclass().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainClass"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->mainclass(), output); + } + + // map sparkConf = 4; + if (!this->sparkconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->sparkconf().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->sparkconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(sparkconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it) { + entry.reset(sparkconf_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // map hadoopConf = 5; + if (!this->hadoopconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->hadoopconf().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->hadoopconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(hadoopconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it) { + entry.reset(hadoopconf_.NewEntryWrapper(it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); + Utf8Check::Check(&(*it)); + } + } + } + + // string executorPath = 6; + if (this->executorpath().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->executorpath().data(), static_cast(this->executorpath().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.executorPath"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->executorpath(), output); + } + + // .google.protobuf.Struct databricksConf = 7; + if (this->has_databricksconf()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, HasBitSetters::databricksconf(this), output); + } + + // string databricksToken = 8; + if (this->databrickstoken().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->databrickstoken().data(), static_cast(this->databrickstoken().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.databricksToken"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 8, this->databrickstoken(), output); + } + + // string databricksInstance = 9; + if (this->databricksinstance().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->databricksinstance().data(), static_cast(this->databricksinstance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.databricksInstance"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 9, this->databricksinstance(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.SparkJob) +} + +::google::protobuf::uint8* SparkJob::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.SparkJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + if (this->applicationtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->applicationtype(), target); + } + + // string mainApplicationFile = 2; + if (this->mainapplicationfile().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainApplicationFile"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->mainapplicationfile(), target); + } + + // string mainClass = 3; + if (this->mainclass().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainclass().data(), static_cast(this->mainclass().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainClass"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->mainclass(), target); + } + + // map sparkConf = 4; + if (!this->sparkconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.value"); + } + }; + + if (false && + this->sparkconf().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->sparkconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(sparkconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it) { + entry.reset(sparkconf_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // map hadoopConf = 5; + if (!this->hadoopconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.value"); + } + }; + + if (false && + this->hadoopconf().size() > 1) { + ::std::unique_ptr items( + new SortItem[this->hadoopconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::std::unique_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(hadoopconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); + Utf8Check::Check(&(*items[static_cast(i)])); + } + } else { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it) { + entry.reset(hadoopconf_.NewEntryWrapper(it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); + Utf8Check::Check(&(*it)); + } + } + } + + // string executorPath = 6; + if (this->executorpath().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->executorpath().data(), static_cast(this->executorpath().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.executorPath"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->executorpath(), target); + } + + // .google.protobuf.Struct databricksConf = 7; + if (this->has_databricksconf()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, HasBitSetters::databricksconf(this), target); + } + + // string databricksToken = 8; + if (this->databrickstoken().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->databrickstoken().data(), static_cast(this->databrickstoken().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.databricksToken"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 8, this->databrickstoken(), target); + } + + // string databricksInstance = 9; + if (this->databricksinstance().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->databricksinstance().data(), static_cast(this->databricksinstance().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.databricksInstance"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 9, this->databricksinstance(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.SparkJob) + return target; +} + +size_t SparkJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.SparkJob) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map sparkConf = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->sparkconf_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it) { + entry.reset(sparkconf_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // map hadoopConf = 5; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->hadoopconf_size()); + { + ::std::unique_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it) { + entry.reset(hadoopconf_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string mainApplicationFile = 2; + if (this->mainapplicationfile().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mainapplicationfile()); + } + + // string mainClass = 3; + if (this->mainclass().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mainclass()); + } + + // string executorPath = 6; + if (this->executorpath().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->executorpath()); + } + + // string databricksToken = 8; + if (this->databrickstoken().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->databrickstoken()); + } + + // string databricksInstance = 9; + if (this->databricksinstance().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->databricksinstance()); + } + + // .google.protobuf.Struct databricksConf = 7; + if (this->has_databricksconf()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *databricksconf_); + } + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + if (this->applicationtype() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->applicationtype()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void SparkJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.SparkJob) + GOOGLE_DCHECK_NE(&from, this); + const SparkJob* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.SparkJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.SparkJob) + MergeFrom(*source); + } +} + +void SparkJob::MergeFrom(const SparkJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.SparkJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + sparkconf_.MergeFrom(from.sparkconf_); + hadoopconf_.MergeFrom(from.hadoopconf_); + if (from.mainapplicationfile().size() > 0) { + + mainapplicationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainapplicationfile_); + } + if (from.mainclass().size() > 0) { + + mainclass_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainclass_); + } + if (from.executorpath().size() > 0) { + + executorpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.executorpath_); + } + if (from.databrickstoken().size() > 0) { + + databrickstoken_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databrickstoken_); + } + if (from.databricksinstance().size() > 0) { + + databricksinstance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databricksinstance_); + } + if (from.has_databricksconf()) { + mutable_databricksconf()->::google::protobuf::Struct::MergeFrom(from.databricksconf()); + } + if (from.applicationtype() != 0) { + set_applicationtype(from.applicationtype()); + } +} + +void SparkJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.SparkJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SparkJob::CopyFrom(const SparkJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.SparkJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SparkJob::IsInitialized() const { + return true; +} + +void SparkJob::Swap(SparkJob* other) { + if (other == this) return; + InternalSwap(other); +} +void SparkJob::InternalSwap(SparkJob* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + sparkconf_.Swap(&other->sparkconf_); + hadoopconf_.Swap(&other->hadoopconf_); + mainapplicationfile_.Swap(&other->mainapplicationfile_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + mainclass_.Swap(&other->mainclass_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + executorpath_.Swap(&other->executorpath_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + databrickstoken_.Swap(&other->databrickstoken_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + databricksinstance_.Swap(&other->databricksinstance_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(databricksconf_, other->databricksconf_); + swap(applicationtype_, other->applicationtype_); +} + +::google::protobuf::Metadata SparkJob::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkApplication* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkApplication >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::SparkApplication >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkJob >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::SparkJob >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h new file mode 100644 index 0000000000..4b60371d82 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h @@ -0,0 +1,927 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fspark_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fspark_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fspark_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fspark_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[4] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fspark_2eproto(); +namespace flyteidl { +namespace plugins { +class SparkApplication; +class SparkApplicationDefaultTypeInternal; +extern SparkApplicationDefaultTypeInternal _SparkApplication_default_instance_; +class SparkJob; +class SparkJobDefaultTypeInternal; +extern SparkJobDefaultTypeInternal _SparkJob_default_instance_; +class SparkJob_HadoopConfEntry_DoNotUse; +class SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal; +extern SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal _SparkJob_HadoopConfEntry_DoNotUse_default_instance_; +class SparkJob_SparkConfEntry_DoNotUse; +class SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal; +extern SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal _SparkJob_SparkConfEntry_DoNotUse_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::SparkApplication* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkApplication>(Arena*); +template<> ::flyteidl::plugins::SparkJob* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkJob>(Arena*); +template<> ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse>(Arena*); +template<> ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +enum SparkApplication_Type { + SparkApplication_Type_PYTHON = 0, + SparkApplication_Type_JAVA = 1, + SparkApplication_Type_SCALA = 2, + SparkApplication_Type_R = 3, + SparkApplication_Type_SparkApplication_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + SparkApplication_Type_SparkApplication_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool SparkApplication_Type_IsValid(int value); +const SparkApplication_Type SparkApplication_Type_Type_MIN = SparkApplication_Type_PYTHON; +const SparkApplication_Type SparkApplication_Type_Type_MAX = SparkApplication_Type_R; +const int SparkApplication_Type_Type_ARRAYSIZE = SparkApplication_Type_Type_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SparkApplication_Type_descriptor(); +inline const ::std::string& SparkApplication_Type_Name(SparkApplication_Type value) { + return ::google::protobuf::internal::NameOfEnum( + SparkApplication_Type_descriptor(), value); +} +inline bool SparkApplication_Type_Parse( + const ::std::string& name, SparkApplication_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SparkApplication_Type_descriptor(), name, value); +} +// =================================================================== + +class SparkApplication final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.SparkApplication) */ { + public: + SparkApplication(); + virtual ~SparkApplication(); + + SparkApplication(const SparkApplication& from); + + inline SparkApplication& operator=(const SparkApplication& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SparkApplication(SparkApplication&& from) noexcept + : SparkApplication() { + *this = ::std::move(from); + } + + inline SparkApplication& operator=(SparkApplication&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SparkApplication& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SparkApplication* internal_default_instance() { + return reinterpret_cast( + &_SparkApplication_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(SparkApplication* other); + friend void swap(SparkApplication& a, SparkApplication& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SparkApplication* New() const final { + return CreateMaybeMessage(nullptr); + } + + SparkApplication* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SparkApplication& from); + void MergeFrom(const SparkApplication& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SparkApplication* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef SparkApplication_Type Type; + static const Type PYTHON = + SparkApplication_Type_PYTHON; + static const Type JAVA = + SparkApplication_Type_JAVA; + static const Type SCALA = + SparkApplication_Type_SCALA; + static const Type R = + SparkApplication_Type_R; + static inline bool Type_IsValid(int value) { + return SparkApplication_Type_IsValid(value); + } + static const Type Type_MIN = + SparkApplication_Type_Type_MIN; + static const Type Type_MAX = + SparkApplication_Type_Type_MAX; + static const int Type_ARRAYSIZE = + SparkApplication_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Type_descriptor() { + return SparkApplication_Type_descriptor(); + } + static inline const ::std::string& Type_Name(Type value) { + return SparkApplication_Type_Name(value); + } + static inline bool Type_Parse(const ::std::string& name, + Type* value) { + return SparkApplication_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fspark_2eproto; +}; +// ------------------------------------------------------------------- + +class SparkJob_SparkConfEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + SparkJob_SparkConfEntry_DoNotUse(); + SparkJob_SparkConfEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const SparkJob_SparkConfEntry_DoNotUse& other); + static const SparkJob_SparkConfEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SparkJob_SparkConfEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class SparkJob_HadoopConfEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + typedef ::google::protobuf::internal::MapEntry SuperType; + SparkJob_HadoopConfEntry_DoNotUse(); + SparkJob_HadoopConfEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const SparkJob_HadoopConfEntry_DoNotUse& other); + static const SparkJob_HadoopConfEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SparkJob_HadoopConfEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) final; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class SparkJob final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.SparkJob) */ { + public: + SparkJob(); + virtual ~SparkJob(); + + SparkJob(const SparkJob& from); + + inline SparkJob& operator=(const SparkJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SparkJob(SparkJob&& from) noexcept + : SparkJob() { + *this = ::std::move(from); + } + + inline SparkJob& operator=(SparkJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const SparkJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SparkJob* internal_default_instance() { + return reinterpret_cast( + &_SparkJob_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(SparkJob* other); + friend void swap(SparkJob& a, SparkJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SparkJob* New() const final { + return CreateMaybeMessage(nullptr); + } + + SparkJob* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const SparkJob& from); + void MergeFrom(const SparkJob& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SparkJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map sparkConf = 4; + int sparkconf_size() const; + void clear_sparkconf(); + static const int kSparkConfFieldNumber = 4; + const ::google::protobuf::Map< ::std::string, ::std::string >& + sparkconf() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_sparkconf(); + + // map hadoopConf = 5; + int hadoopconf_size() const; + void clear_hadoopconf(); + static const int kHadoopConfFieldNumber = 5; + const ::google::protobuf::Map< ::std::string, ::std::string >& + hadoopconf() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_hadoopconf(); + + // string mainApplicationFile = 2; + void clear_mainapplicationfile(); + static const int kMainApplicationFileFieldNumber = 2; + const ::std::string& mainapplicationfile() const; + void set_mainapplicationfile(const ::std::string& value); + #if LANG_CXX11 + void set_mainapplicationfile(::std::string&& value); + #endif + void set_mainapplicationfile(const char* value); + void set_mainapplicationfile(const char* value, size_t size); + ::std::string* mutable_mainapplicationfile(); + ::std::string* release_mainapplicationfile(); + void set_allocated_mainapplicationfile(::std::string* mainapplicationfile); + + // string mainClass = 3; + void clear_mainclass(); + static const int kMainClassFieldNumber = 3; + const ::std::string& mainclass() const; + void set_mainclass(const ::std::string& value); + #if LANG_CXX11 + void set_mainclass(::std::string&& value); + #endif + void set_mainclass(const char* value); + void set_mainclass(const char* value, size_t size); + ::std::string* mutable_mainclass(); + ::std::string* release_mainclass(); + void set_allocated_mainclass(::std::string* mainclass); + + // string executorPath = 6; + void clear_executorpath(); + static const int kExecutorPathFieldNumber = 6; + const ::std::string& executorpath() const; + void set_executorpath(const ::std::string& value); + #if LANG_CXX11 + void set_executorpath(::std::string&& value); + #endif + void set_executorpath(const char* value); + void set_executorpath(const char* value, size_t size); + ::std::string* mutable_executorpath(); + ::std::string* release_executorpath(); + void set_allocated_executorpath(::std::string* executorpath); + + // string databricksToken = 8; + void clear_databrickstoken(); + static const int kDatabricksTokenFieldNumber = 8; + const ::std::string& databrickstoken() const; + void set_databrickstoken(const ::std::string& value); + #if LANG_CXX11 + void set_databrickstoken(::std::string&& value); + #endif + void set_databrickstoken(const char* value); + void set_databrickstoken(const char* value, size_t size); + ::std::string* mutable_databrickstoken(); + ::std::string* release_databrickstoken(); + void set_allocated_databrickstoken(::std::string* databrickstoken); + + // string databricksInstance = 9; + void clear_databricksinstance(); + static const int kDatabricksInstanceFieldNumber = 9; + const ::std::string& databricksinstance() const; + void set_databricksinstance(const ::std::string& value); + #if LANG_CXX11 + void set_databricksinstance(::std::string&& value); + #endif + void set_databricksinstance(const char* value); + void set_databricksinstance(const char* value, size_t size); + ::std::string* mutable_databricksinstance(); + ::std::string* release_databricksinstance(); + void set_allocated_databricksinstance(::std::string* databricksinstance); + + // .google.protobuf.Struct databricksConf = 7; + bool has_databricksconf() const; + void clear_databricksconf(); + static const int kDatabricksConfFieldNumber = 7; + const ::google::protobuf::Struct& databricksconf() const; + ::google::protobuf::Struct* release_databricksconf(); + ::google::protobuf::Struct* mutable_databricksconf(); + void set_allocated_databricksconf(::google::protobuf::Struct* databricksconf); + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + void clear_applicationtype(); + static const int kApplicationTypeFieldNumber = 1; + ::flyteidl::plugins::SparkApplication_Type applicationtype() const; + void set_applicationtype(::flyteidl::plugins::SparkApplication_Type value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + SparkJob_SparkConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > sparkconf_; + ::google::protobuf::internal::MapField< + SparkJob_HadoopConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > hadoopconf_; + ::google::protobuf::internal::ArenaStringPtr mainapplicationfile_; + ::google::protobuf::internal::ArenaStringPtr mainclass_; + ::google::protobuf::internal::ArenaStringPtr executorpath_; + ::google::protobuf::internal::ArenaStringPtr databrickstoken_; + ::google::protobuf::internal::ArenaStringPtr databricksinstance_; + ::google::protobuf::Struct* databricksconf_; + int applicationtype_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fspark_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SparkApplication + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// SparkJob + +// .flyteidl.plugins.SparkApplication.Type applicationType = 1; +inline void SparkJob::clear_applicationtype() { + applicationtype_ = 0; +} +inline ::flyteidl::plugins::SparkApplication_Type SparkJob::applicationtype() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.applicationType) + return static_cast< ::flyteidl::plugins::SparkApplication_Type >(applicationtype_); +} +inline void SparkJob::set_applicationtype(::flyteidl::plugins::SparkApplication_Type value) { + + applicationtype_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.applicationType) +} + +// string mainApplicationFile = 2; +inline void SparkJob::clear_mainapplicationfile() { + mainapplicationfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::mainapplicationfile() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.mainApplicationFile) + return mainapplicationfile_.GetNoArena(); +} +inline void SparkJob::set_mainapplicationfile(const ::std::string& value) { + + mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.mainApplicationFile) +} +#if LANG_CXX11 +inline void SparkJob::set_mainapplicationfile(::std::string&& value) { + + mainapplicationfile_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.mainApplicationFile) +} +#endif +inline void SparkJob::set_mainapplicationfile(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.mainApplicationFile) +} +inline void SparkJob::set_mainapplicationfile(const char* value, size_t size) { + + mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.mainApplicationFile) +} +inline ::std::string* SparkJob::mutable_mainapplicationfile() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.mainApplicationFile) + return mainapplicationfile_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_mainapplicationfile() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.mainApplicationFile) + + return mainapplicationfile_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_mainapplicationfile(::std::string* mainapplicationfile) { + if (mainapplicationfile != nullptr) { + + } else { + + } + mainapplicationfile_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mainapplicationfile); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.mainApplicationFile) +} + +// string mainClass = 3; +inline void SparkJob::clear_mainclass() { + mainclass_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::mainclass() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.mainClass) + return mainclass_.GetNoArena(); +} +inline void SparkJob::set_mainclass(const ::std::string& value) { + + mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.mainClass) +} +#if LANG_CXX11 +inline void SparkJob::set_mainclass(::std::string&& value) { + + mainclass_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.mainClass) +} +#endif +inline void SparkJob::set_mainclass(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.mainClass) +} +inline void SparkJob::set_mainclass(const char* value, size_t size) { + + mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.mainClass) +} +inline ::std::string* SparkJob::mutable_mainclass() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.mainClass) + return mainclass_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_mainclass() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.mainClass) + + return mainclass_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_mainclass(::std::string* mainclass) { + if (mainclass != nullptr) { + + } else { + + } + mainclass_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mainclass); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.mainClass) +} + +// map sparkConf = 4; +inline int SparkJob::sparkconf_size() const { + return sparkconf_.size(); +} +inline void SparkJob::clear_sparkconf() { + sparkconf_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +SparkJob::sparkconf() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.SparkJob.sparkConf) + return sparkconf_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +SparkJob::mutable_sparkconf() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.SparkJob.sparkConf) + return sparkconf_.MutableMap(); +} + +// map hadoopConf = 5; +inline int SparkJob::hadoopconf_size() const { + return hadoopconf_.size(); +} +inline void SparkJob::clear_hadoopconf() { + hadoopconf_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +SparkJob::hadoopconf() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.SparkJob.hadoopConf) + return hadoopconf_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +SparkJob::mutable_hadoopconf() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.SparkJob.hadoopConf) + return hadoopconf_.MutableMap(); +} + +// string executorPath = 6; +inline void SparkJob::clear_executorpath() { + executorpath_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::executorpath() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.executorPath) + return executorpath_.GetNoArena(); +} +inline void SparkJob::set_executorpath(const ::std::string& value) { + + executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.executorPath) +} +#if LANG_CXX11 +inline void SparkJob::set_executorpath(::std::string&& value) { + + executorpath_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.executorPath) +} +#endif +inline void SparkJob::set_executorpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.executorPath) +} +inline void SparkJob::set_executorpath(const char* value, size_t size) { + + executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.executorPath) +} +inline ::std::string* SparkJob::mutable_executorpath() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.executorPath) + return executorpath_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_executorpath() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.executorPath) + + return executorpath_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_executorpath(::std::string* executorpath) { + if (executorpath != nullptr) { + + } else { + + } + executorpath_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), executorpath); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.executorPath) +} + +// .google.protobuf.Struct databricksConf = 7; +inline bool SparkJob::has_databricksconf() const { + return this != internal_default_instance() && databricksconf_ != nullptr; +} +inline const ::google::protobuf::Struct& SparkJob::databricksconf() const { + const ::google::protobuf::Struct* p = databricksconf_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.databricksConf) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* SparkJob::release_databricksconf() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.databricksConf) + + ::google::protobuf::Struct* temp = databricksconf_; + databricksconf_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* SparkJob::mutable_databricksconf() { + + if (databricksconf_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + databricksconf_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.databricksConf) + return databricksconf_; +} +inline void SparkJob::set_allocated_databricksconf(::google::protobuf::Struct* databricksconf) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(databricksconf_); + } + if (databricksconf) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(databricksconf)->GetArena(); + if (message_arena != submessage_arena) { + databricksconf = ::google::protobuf::internal::GetOwnedMessage( + message_arena, databricksconf, submessage_arena); + } + + } else { + + } + databricksconf_ = databricksconf; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.databricksConf) +} + +// string databricksToken = 8; +inline void SparkJob::clear_databrickstoken() { + databrickstoken_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::databrickstoken() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.databricksToken) + return databrickstoken_.GetNoArena(); +} +inline void SparkJob::set_databrickstoken(const ::std::string& value) { + + databrickstoken_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.databricksToken) +} +#if LANG_CXX11 +inline void SparkJob::set_databrickstoken(::std::string&& value) { + + databrickstoken_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.databricksToken) +} +#endif +inline void SparkJob::set_databrickstoken(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + databrickstoken_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.databricksToken) +} +inline void SparkJob::set_databrickstoken(const char* value, size_t size) { + + databrickstoken_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.databricksToken) +} +inline ::std::string* SparkJob::mutable_databrickstoken() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.databricksToken) + return databrickstoken_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_databrickstoken() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.databricksToken) + + return databrickstoken_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_databrickstoken(::std::string* databrickstoken) { + if (databrickstoken != nullptr) { + + } else { + + } + databrickstoken_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databrickstoken); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.databricksToken) +} + +// string databricksInstance = 9; +inline void SparkJob::clear_databricksinstance() { + databricksinstance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::databricksinstance() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.databricksInstance) + return databricksinstance_.GetNoArena(); +} +inline void SparkJob::set_databricksinstance(const ::std::string& value) { + + databricksinstance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.databricksInstance) +} +#if LANG_CXX11 +inline void SparkJob::set_databricksinstance(::std::string&& value) { + + databricksinstance_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.databricksInstance) +} +#endif +inline void SparkJob::set_databricksinstance(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + databricksinstance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.databricksInstance) +} +inline void SparkJob::set_databricksinstance(const char* value, size_t size) { + + databricksinstance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.databricksInstance) +} +inline ::std::string* SparkJob::mutable_databricksinstance() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.databricksInstance) + return databricksinstance_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_databricksinstance() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.databricksInstance) + + return databricksinstance_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_databricksinstance(::std::string* databricksinstance) { + if (databricksinstance != nullptr) { + + } else { + + } + databricksinstance_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databricksinstance); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.databricksInstance) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::SparkApplication_Type> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::SparkApplication_Type>() { + return ::flyteidl::plugins::SparkApplication_Type_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fspark_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.cc new file mode 100644 index 0000000000..f3a3c56229 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/tensorflow.proto + +#include "flyteidl/plugins/tensorflow.pb.h" +#include "flyteidl/plugins/tensorflow.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.h new file mode 100644 index 0000000000..1bc80de44e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/tensorflow.proto +#ifndef GRPC_flyteidl_2fplugins_2ftensorflow_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2ftensorflow_2eproto__INCLUDED + +#include "flyteidl/plugins/tensorflow.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2ftensorflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.cc new file mode 100644 index 0000000000..9dae11c1a2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.cc @@ -0,0 +1,461 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/tensorflow.proto + +#include "flyteidl/plugins/tensorflow.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace plugins { +class DistributedTensorflowTrainingTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _DistributedTensorflowTrainingTask_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_DistributedTensorflowTrainingTask_default_instance_; + new (ptr) ::flyteidl::plugins::DistributedTensorflowTrainingTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::DistributedTensorflowTrainingTask::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto}, {}}; + +void InitDefaults_flyteidl_2fplugins_2ftensorflow_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2ftensorflow_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, workers_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, ps_replicas_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, chief_replicas_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::DistributedTensorflowTrainingTask)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_DistributedTensorflowTrainingTask_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2ftensorflow_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto, "flyteidl/plugins/tensorflow.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2ftensorflow_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2ftensorflow_2eproto[] = + "\n!flyteidl/plugins/tensorflow.proto\022\020fly" + "teidl.plugins\"a\n!DistributedTensorflowTr" + "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" + "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005B9Z7gith" + "ub.com/flyteorg/flyteidl/gen/pb-go/flyte" + "idl/pluginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2ftensorflow_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2ftensorflow_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2ftensorflow_2eproto, + "flyteidl/plugins/tensorflow.proto", &assign_descriptors_table_flyteidl_2fplugins_2ftensorflow_2eproto, 219, +}; + +void AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2ftensorflow_2eproto, deps, 0); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2ftensorflow_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void DistributedTensorflowTrainingTask::InitAsDefaultInstance() { +} +class DistributedTensorflowTrainingTask::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DistributedTensorflowTrainingTask::kWorkersFieldNumber; +const int DistributedTensorflowTrainingTask::kPsReplicasFieldNumber; +const int DistributedTensorflowTrainingTask::kChiefReplicasFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.DistributedTensorflowTrainingTask) +} +DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&workers_, &from.workers_, + static_cast(reinterpret_cast(&chief_replicas_) - + reinterpret_cast(&workers_)) + sizeof(chief_replicas_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DistributedTensorflowTrainingTask) +} + +void DistributedTensorflowTrainingTask::SharedCtor() { + ::memset(&workers_, 0, static_cast( + reinterpret_cast(&chief_replicas_) - + reinterpret_cast(&workers_)) + sizeof(chief_replicas_)); +} + +DistributedTensorflowTrainingTask::~DistributedTensorflowTrainingTask() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.DistributedTensorflowTrainingTask) + SharedDtor(); +} + +void DistributedTensorflowTrainingTask::SharedDtor() { +} + +void DistributedTensorflowTrainingTask::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DistributedTensorflowTrainingTask& DistributedTensorflowTrainingTask::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto.base); + return *internal_default_instance(); +} + + +void DistributedTensorflowTrainingTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&workers_, 0, static_cast( + reinterpret_cast(&chief_replicas_) - + reinterpret_cast(&workers_)) + sizeof(chief_replicas_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DistributedTensorflowTrainingTask::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // int32 workers = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + msg->set_workers(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 ps_replicas = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + msg->set_ps_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // int32 chief_replicas = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; + msg->set_chief_replicas(::google::protobuf::internal::ReadVarint(&ptr)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DistributedTensorflowTrainingTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int32 workers = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &workers_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 ps_replicas = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &ps_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 chief_replicas = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &chief_replicas_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.DistributedTensorflowTrainingTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DistributedTensorflowTrainingTask) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DistributedTensorflowTrainingTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 workers = 1; + if (this->workers() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->workers(), output); + } + + // int32 ps_replicas = 2; + if (this->ps_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ps_replicas(), output); + } + + // int32 chief_replicas = 3; + if (this->chief_replicas() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->chief_replicas(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DistributedTensorflowTrainingTask) +} + +::google::protobuf::uint8* DistributedTensorflowTrainingTask::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int32 workers = 1; + if (this->workers() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->workers(), target); + } + + // int32 ps_replicas = 2; + if (this->ps_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ps_replicas(), target); + } + + // int32 chief_replicas = 3; + if (this->chief_replicas() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->chief_replicas(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.DistributedTensorflowTrainingTask) + return target; +} + +size_t DistributedTensorflowTrainingTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 workers = 1; + if (this->workers() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->workers()); + } + + // int32 ps_replicas = 2; + if (this->ps_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->ps_replicas()); + } + + // int32 chief_replicas = 3; + if (this->chief_replicas() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->chief_replicas()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DistributedTensorflowTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + const DistributedTensorflowTrainingTask* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DistributedTensorflowTrainingTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DistributedTensorflowTrainingTask) + MergeFrom(*source); + } +} + +void DistributedTensorflowTrainingTask::MergeFrom(const DistributedTensorflowTrainingTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.workers() != 0) { + set_workers(from.workers()); + } + if (from.ps_replicas() != 0) { + set_ps_replicas(from.ps_replicas()); + } + if (from.chief_replicas() != 0) { + set_chief_replicas(from.chief_replicas()); + } +} + +void DistributedTensorflowTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DistributedTensorflowTrainingTask::CopyFrom(const DistributedTensorflowTrainingTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DistributedTensorflowTrainingTask::IsInitialized() const { + return true; +} + +void DistributedTensorflowTrainingTask::Swap(DistributedTensorflowTrainingTask* other) { + if (other == this) return; + InternalSwap(other); +} +void DistributedTensorflowTrainingTask::InternalSwap(DistributedTensorflowTrainingTask* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(workers_, other->workers_); + swap(ps_replicas_, other->ps_replicas_); + swap(chief_replicas_, other->chief_replicas_); +} + +::google::protobuf::Metadata DistributedTensorflowTrainingTask::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2ftensorflow_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2ftensorflow_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::DistributedTensorflowTrainingTask >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::DistributedTensorflowTrainingTask >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.h new file mode 100644 index 0000000000..613ed31d80 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.h @@ -0,0 +1,257 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/tensorflow.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2ftensorflow_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2ftensorflow_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2ftensorflow_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto(); +namespace flyteidl { +namespace plugins { +class DistributedTensorflowTrainingTask; +class DistributedTensorflowTrainingTaskDefaultTypeInternal; +extern DistributedTensorflowTrainingTaskDefaultTypeInternal _DistributedTensorflowTrainingTask_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::DistributedTensorflowTrainingTask>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class DistributedTensorflowTrainingTask final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DistributedTensorflowTrainingTask) */ { + public: + DistributedTensorflowTrainingTask(); + virtual ~DistributedTensorflowTrainingTask(); + + DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from); + + inline DistributedTensorflowTrainingTask& operator=(const DistributedTensorflowTrainingTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DistributedTensorflowTrainingTask(DistributedTensorflowTrainingTask&& from) noexcept + : DistributedTensorflowTrainingTask() { + *this = ::std::move(from); + } + + inline DistributedTensorflowTrainingTask& operator=(DistributedTensorflowTrainingTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const DistributedTensorflowTrainingTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DistributedTensorflowTrainingTask* internal_default_instance() { + return reinterpret_cast( + &_DistributedTensorflowTrainingTask_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(DistributedTensorflowTrainingTask* other); + friend void swap(DistributedTensorflowTrainingTask& a, DistributedTensorflowTrainingTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DistributedTensorflowTrainingTask* New() const final { + return CreateMaybeMessage(nullptr); + } + + DistributedTensorflowTrainingTask* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const DistributedTensorflowTrainingTask& from); + void MergeFrom(const DistributedTensorflowTrainingTask& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DistributedTensorflowTrainingTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int32 workers = 1; + void clear_workers(); + static const int kWorkersFieldNumber = 1; + ::google::protobuf::int32 workers() const; + void set_workers(::google::protobuf::int32 value); + + // int32 ps_replicas = 2; + void clear_ps_replicas(); + static const int kPsReplicasFieldNumber = 2; + ::google::protobuf::int32 ps_replicas() const; + void set_ps_replicas(::google::protobuf::int32 value); + + // int32 chief_replicas = 3; + void clear_chief_replicas(); + static const int kChiefReplicasFieldNumber = 3; + ::google::protobuf::int32 chief_replicas() const; + void set_chief_replicas(::google::protobuf::int32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int32 workers_; + ::google::protobuf::int32 ps_replicas_; + ::google::protobuf::int32 chief_replicas_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DistributedTensorflowTrainingTask + +// int32 workers = 1; +inline void DistributedTensorflowTrainingTask::clear_workers() { + workers_ = 0; +} +inline ::google::protobuf::int32 DistributedTensorflowTrainingTask::workers() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedTensorflowTrainingTask.workers) + return workers_; +} +inline void DistributedTensorflowTrainingTask::set_workers(::google::protobuf::int32 value) { + + workers_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedTensorflowTrainingTask.workers) +} + +// int32 ps_replicas = 2; +inline void DistributedTensorflowTrainingTask::clear_ps_replicas() { + ps_replicas_ = 0; +} +inline ::google::protobuf::int32 DistributedTensorflowTrainingTask::ps_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedTensorflowTrainingTask.ps_replicas) + return ps_replicas_; +} +inline void DistributedTensorflowTrainingTask::set_ps_replicas(::google::protobuf::int32 value) { + + ps_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedTensorflowTrainingTask.ps_replicas) +} + +// int32 chief_replicas = 3; +inline void DistributedTensorflowTrainingTask::clear_chief_replicas() { + chief_replicas_ = 0; +} +inline ::google::protobuf::int32 DistributedTensorflowTrainingTask::chief_replicas() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedTensorflowTrainingTask.chief_replicas) + return chief_replicas_; +} +inline void DistributedTensorflowTrainingTask::set_chief_replicas(::google::protobuf::int32 value) { + + chief_replicas_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedTensorflowTrainingTask.chief_replicas) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2ftensorflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc new file mode 100644 index 0000000000..4f9aeb135a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc @@ -0,0 +1,24 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/waitable.proto + +#include "flyteidl/plugins/waitable.pb.h" +#include "flyteidl/plugins/waitable.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h new file mode 100644 index 0000000000..960be6017f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h @@ -0,0 +1,47 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/waitable.proto +#ifndef GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED + +#include "flyteidl/plugins/waitable.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc new file mode 100644 index 0000000000..e6d61ed998 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc @@ -0,0 +1,537 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +#include "flyteidl/plugins/waitable.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +namespace flyteidl { +namespace plugins { +class WaitableDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _Waitable_default_instance_; +} // namespace plugins +} // namespace flyteidl +static void InitDefaultsWaitable_flyteidl_2fplugins_2fwaitable_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::plugins::_Waitable_default_instance_; + new (ptr) ::flyteidl::plugins::Waitable(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::Waitable::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWaitable_flyteidl_2fplugins_2fwaitable_2eproto}, { + &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +void InitDefaults_flyteidl_2fplugins_2fwaitable_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fwaitable_2eproto[1]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fwaitable_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fwaitable_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fwaitable_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, wf_exec_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, phase_), + PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, workflow_id_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::Waitable)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_Waitable_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fwaitable_2eproto = { + {}, AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto, "flyteidl/plugins/waitable.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fplugins_2fwaitable_2eproto::offsets, + file_level_metadata_flyteidl_2fplugins_2fwaitable_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fwaitable_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fwaitable_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fplugins_2fwaitable_2eproto[] = + "\n\037flyteidl/plugins/waitable.proto\022\020flyte" + "idl.plugins\032\035flyteidl/core/execution.pro" + "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + "ore.WorkflowExecutionIdentifier\0225\n\005phase" + "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + ".Phase\022\023\n\013workflow_id\030\003 \001(\tB9Z7github.co" + "m/flyteorg/flyteidl/gen/pb-go/flyteidl/p" + "luginsb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fwaitable_2eproto = { + false, InitDefaults_flyteidl_2fplugins_2fwaitable_2eproto, + descriptor_table_protodef_flyteidl_2fplugins_2fwaitable_2eproto, + "flyteidl/plugins/waitable.proto", &assign_descriptors_table_flyteidl_2fplugins_2fwaitable_2eproto, 334, +}; + +void AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fwaitable_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fplugins_2fwaitable_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto(); return true; }(); +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void Waitable::InitAsDefaultInstance() { + ::flyteidl::plugins::_Waitable_default_instance_._instance.get_mutable()->wf_exec_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +class Waitable::HasBitSetters { + public: + static const ::flyteidl::core::WorkflowExecutionIdentifier& wf_exec_id(const Waitable* msg); +}; + +const ::flyteidl::core::WorkflowExecutionIdentifier& +Waitable::HasBitSetters::wf_exec_id(const Waitable* msg) { + return *msg->wf_exec_id_; +} +void Waitable::clear_wf_exec_id() { + if (GetArenaNoVirtual() == nullptr && wf_exec_id_ != nullptr) { + delete wf_exec_id_; + } + wf_exec_id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Waitable::kWfExecIdFieldNumber; +const int Waitable::kPhaseFieldNumber; +const int Waitable::kWorkflowIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Waitable::Waitable() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.Waitable) +} +Waitable::Waitable(const Waitable& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + workflow_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.workflow_id().size() > 0) { + workflow_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_id_); + } + if (from.has_wf_exec_id()) { + wf_exec_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.wf_exec_id_); + } else { + wf_exec_id_ = nullptr; + } + phase_ = from.phase_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.Waitable) +} + +void Waitable::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto.base); + workflow_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&wf_exec_id_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&wf_exec_id_)) + sizeof(phase_)); +} + +Waitable::~Waitable() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.Waitable) + SharedDtor(); +} + +void Waitable::SharedDtor() { + workflow_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete wf_exec_id_; +} + +void Waitable::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const Waitable& Waitable::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto.base); + return *internal_default_instance(); +} + + +void Waitable::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.Waitable) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + workflow_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && wf_exec_id_ != nullptr) { + delete wf_exec_id_; + } + wf_exec_id_ = nullptr; + phase_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* Waitable::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; + object = msg->mutable_wf_exec_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_phase(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // string workflow_id = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.plugins.Waitable.workflow_id"); + object = msg->mutable_workflow_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool Waitable::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.Waitable) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_wf_exec_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string workflow_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_workflow_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow_id().data(), static_cast(this->workflow_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.Waitable.workflow_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.Waitable) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.Waitable) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void Waitable::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.Waitable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + if (this->has_wf_exec_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::wf_exec_id(this), output); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->phase(), output); + } + + // string workflow_id = 3; + if (this->workflow_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow_id().data(), static_cast(this->workflow_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.Waitable.workflow_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->workflow_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.Waitable) +} + +::google::protobuf::uint8* Waitable::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.Waitable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + if (this->has_wf_exec_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::wf_exec_id(this), target); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->phase(), target); + } + + // string workflow_id = 3; + if (this->workflow_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow_id().data(), static_cast(this->workflow_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.Waitable.workflow_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->workflow_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.Waitable) + return target; +} + +size_t Waitable::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.Waitable) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string workflow_id = 3; + if (this->workflow_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->workflow_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + if (this->has_wf_exec_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *wf_exec_id_); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Waitable::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.Waitable) + GOOGLE_DCHECK_NE(&from, this); + const Waitable* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.Waitable) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.Waitable) + MergeFrom(*source); + } +} + +void Waitable::MergeFrom(const Waitable& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.Waitable) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.workflow_id().size() > 0) { + + workflow_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_id_); + } + if (from.has_wf_exec_id()) { + mutable_wf_exec_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.wf_exec_id()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } +} + +void Waitable::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.Waitable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Waitable::CopyFrom(const Waitable& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.Waitable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Waitable::IsInitialized() const { + return true; +} + +void Waitable::Swap(Waitable* other) { + if (other == this) return; + InternalSwap(other); +} +void Waitable::InternalSwap(Waitable* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + workflow_id_.Swap(&other->workflow_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(wf_exec_id_, other->wf_exec_id_); + swap(phase_, other->phase_); +} + +::google::protobuf::Metadata Waitable::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fwaitable_2eproto); + return ::file_level_metadata_flyteidl_2fplugins_2fwaitable_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::plugins::Waitable* Arena::CreateMaybeMessage< ::flyteidl::plugins::Waitable >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::plugins::Waitable >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h new file mode 100644 index 0000000000..3820c3dcfa --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h @@ -0,0 +1,340 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fwaitable_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fwaitable_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fwaitable_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fplugins_2fwaitable_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto(); +namespace flyteidl { +namespace plugins { +class Waitable; +class WaitableDefaultTypeInternal; +extern WaitableDefaultTypeInternal _Waitable_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::plugins::Waitable* Arena::CreateMaybeMessage<::flyteidl::plugins::Waitable>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class Waitable final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.Waitable) */ { + public: + Waitable(); + virtual ~Waitable(); + + Waitable(const Waitable& from); + + inline Waitable& operator=(const Waitable& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Waitable(Waitable&& from) noexcept + : Waitable() { + *this = ::std::move(from); + } + + inline Waitable& operator=(Waitable&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const Waitable& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Waitable* internal_default_instance() { + return reinterpret_cast( + &_Waitable_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Waitable* other); + friend void swap(Waitable& a, Waitable& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Waitable* New() const final { + return CreateMaybeMessage(nullptr); + } + + Waitable* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Waitable& from); + void MergeFrom(const Waitable& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Waitable* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string workflow_id = 3; + void clear_workflow_id(); + static const int kWorkflowIdFieldNumber = 3; + const ::std::string& workflow_id() const; + void set_workflow_id(const ::std::string& value); + #if LANG_CXX11 + void set_workflow_id(::std::string&& value); + #endif + void set_workflow_id(const char* value); + void set_workflow_id(const char* value, size_t size); + ::std::string* mutable_workflow_id(); + ::std::string* release_workflow_id(); + void set_allocated_workflow_id(::std::string* workflow_id); + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + bool has_wf_exec_id() const; + void clear_wf_exec_id(); + static const int kWfExecIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& wf_exec_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_wf_exec_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_wf_exec_id(); + void set_allocated_wf_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id); + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + void clear_phase(); + static const int kPhaseFieldNumber = 2; + ::flyteidl::core::WorkflowExecution_Phase phase() const; + void set_phase(::flyteidl::core::WorkflowExecution_Phase value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr workflow_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id_; + int phase_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fplugins_2fwaitable_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Waitable + +// .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; +inline bool Waitable::has_wf_exec_id() const { + return this != internal_default_instance() && wf_exec_id_ != nullptr; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& Waitable::wf_exec_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = wf_exec_id_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.wf_exec_id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Waitable::release_wf_exec_id() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.Waitable.wf_exec_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = wf_exec_id_; + wf_exec_id_ = nullptr; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Waitable::mutable_wf_exec_id() { + + if (wf_exec_id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); + wf_exec_id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.Waitable.wf_exec_id) + return wf_exec_id_; +} +inline void Waitable::set_allocated_wf_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(wf_exec_id_); + } + if (wf_exec_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + wf_exec_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, wf_exec_id, submessage_arena); + } + + } else { + + } + wf_exec_id_ = wf_exec_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.Waitable.wf_exec_id) +} + +// .flyteidl.core.WorkflowExecution.Phase phase = 2; +inline void Waitable::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::WorkflowExecution_Phase Waitable::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.phase) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); +} +inline void Waitable::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.Waitable.phase) +} + +// string workflow_id = 3; +inline void Waitable::clear_workflow_id() { + workflow_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Waitable::workflow_id() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.workflow_id) + return workflow_id_.GetNoArena(); +} +inline void Waitable::set_workflow_id(const ::std::string& value) { + + workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.Waitable.workflow_id) +} +#if LANG_CXX11 +inline void Waitable::set_workflow_id(::std::string&& value) { + + workflow_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.Waitable.workflow_id) +} +#endif +inline void Waitable::set_workflow_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.Waitable.workflow_id) +} +inline void Waitable::set_workflow_id(const char* value, size_t size) { + + workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.Waitable.workflow_id) +} +inline ::std::string* Waitable::mutable_workflow_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.Waitable.workflow_id) + return workflow_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Waitable::release_workflow_id() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.Waitable.workflow_id) + + return workflow_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Waitable::set_allocated_workflow_id(::std::string* workflow_id) { + if (workflow_id != nullptr) { + + } else { + + } + workflow_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.Waitable.workflow_id) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fwaitable_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc new file mode 100644 index 0000000000..cf8c19b8a1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc @@ -0,0 +1,2269 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/admin.proto + +#include "flyteidl/service/admin.pb.h" +#include "flyteidl/service/admin.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* AdminService_method_names[] = { + "/flyteidl.service.AdminService/CreateTask", + "/flyteidl.service.AdminService/GetTask", + "/flyteidl.service.AdminService/ListTaskIds", + "/flyteidl.service.AdminService/ListTasks", + "/flyteidl.service.AdminService/CreateWorkflow", + "/flyteidl.service.AdminService/GetWorkflow", + "/flyteidl.service.AdminService/ListWorkflowIds", + "/flyteidl.service.AdminService/ListWorkflows", + "/flyteidl.service.AdminService/CreateLaunchPlan", + "/flyteidl.service.AdminService/GetLaunchPlan", + "/flyteidl.service.AdminService/GetActiveLaunchPlan", + "/flyteidl.service.AdminService/ListActiveLaunchPlans", + "/flyteidl.service.AdminService/ListLaunchPlanIds", + "/flyteidl.service.AdminService/ListLaunchPlans", + "/flyteidl.service.AdminService/UpdateLaunchPlan", + "/flyteidl.service.AdminService/CreateExecution", + "/flyteidl.service.AdminService/RelaunchExecution", + "/flyteidl.service.AdminService/RecoverExecution", + "/flyteidl.service.AdminService/GetExecution", + "/flyteidl.service.AdminService/UpdateExecution", + "/flyteidl.service.AdminService/GetExecutionData", + "/flyteidl.service.AdminService/ListExecutions", + "/flyteidl.service.AdminService/TerminateExecution", + "/flyteidl.service.AdminService/GetNodeExecution", + "/flyteidl.service.AdminService/ListNodeExecutions", + "/flyteidl.service.AdminService/ListNodeExecutionsForTask", + "/flyteidl.service.AdminService/GetNodeExecutionData", + "/flyteidl.service.AdminService/RegisterProject", + "/flyteidl.service.AdminService/UpdateProject", + "/flyteidl.service.AdminService/ListProjects", + "/flyteidl.service.AdminService/CreateWorkflowEvent", + "/flyteidl.service.AdminService/CreateNodeEvent", + "/flyteidl.service.AdminService/CreateTaskEvent", + "/flyteidl.service.AdminService/GetTaskExecution", + "/flyteidl.service.AdminService/ListTaskExecutions", + "/flyteidl.service.AdminService/GetTaskExecutionData", + "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", + "/flyteidl.service.AdminService/GetProjectDomainAttributes", + "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", + "/flyteidl.service.AdminService/UpdateProjectAttributes", + "/flyteidl.service.AdminService/GetProjectAttributes", + "/flyteidl.service.AdminService/DeleteProjectAttributes", + "/flyteidl.service.AdminService/UpdateWorkflowAttributes", + "/flyteidl.service.AdminService/GetWorkflowAttributes", + "/flyteidl.service.AdminService/DeleteWorkflowAttributes", + "/flyteidl.service.AdminService/ListMatchableAttributes", + "/flyteidl.service.AdminService/ListNamedEntities", + "/flyteidl.service.AdminService/GetNamedEntity", + "/flyteidl.service.AdminService/UpdateNamedEntity", + "/flyteidl.service.AdminService/GetVersion", + "/flyteidl.service.AdminService/GetDescriptionEntity", + "/flyteidl.service.AdminService/ListDescriptionEntities", + "/flyteidl.service.AdminService/GetExecutionMetrics", +}; + +std::unique_ptr< AdminService::Stub> AdminService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AdminService::Stub> stub(new AdminService::Stub(channel)); + return stub; +} + +AdminService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateTask_(AdminService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTask_(AdminService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTaskIds_(AdminService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTasks_(AdminService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateWorkflow_(AdminService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetWorkflow_(AdminService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListWorkflowIds_(AdminService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListWorkflows_(AdminService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateLaunchPlan_(AdminService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLaunchPlan_(AdminService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetActiveLaunchPlan_(AdminService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListActiveLaunchPlans_(AdminService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListLaunchPlanIds_(AdminService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListLaunchPlans_(AdminService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateLaunchPlan_(AdminService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateExecution_(AdminService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RelaunchExecution_(AdminService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RecoverExecution_(AdminService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetExecution_(AdminService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateExecution_(AdminService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetExecutionData_(AdminService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListExecutions_(AdminService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TerminateExecution_(AdminService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetNodeExecution_(AdminService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListNodeExecutions_(AdminService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListNodeExecutionsForTask_(AdminService_method_names[25], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetNodeExecutionData_(AdminService_method_names[26], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RegisterProject_(AdminService_method_names[27], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateProject_(AdminService_method_names[28], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListProjects_(AdminService_method_names[29], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateWorkflowEvent_(AdminService_method_names[30], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateNodeEvent_(AdminService_method_names[31], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateTaskEvent_(AdminService_method_names[32], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTaskExecution_(AdminService_method_names[33], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTaskExecutions_(AdminService_method_names[34], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTaskExecutionData_(AdminService_method_names[35], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateProjectDomainAttributes_(AdminService_method_names[36], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProjectDomainAttributes_(AdminService_method_names[37], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteProjectDomainAttributes_(AdminService_method_names[38], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateProjectAttributes_(AdminService_method_names[39], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetProjectAttributes_(AdminService_method_names[40], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteProjectAttributes_(AdminService_method_names[41], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateWorkflowAttributes_(AdminService_method_names[42], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetWorkflowAttributes_(AdminService_method_names[43], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteWorkflowAttributes_(AdminService_method_names[44], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListMatchableAttributes_(AdminService_method_names[45], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListNamedEntities_(AdminService_method_names[46], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetNamedEntity_(AdminService_method_names[47], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateNamedEntity_(AdminService_method_names[48], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetVersion_(AdminService_method_names[49], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetDescriptionEntity_(AdminService_method_names[50], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListDescriptionEntities_(AdminService_method_names[51], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetExecutionMetrics_(AdminService_method_names[52], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AdminService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); +} + +void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AdminService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AdminService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AdminService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Task>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AdminService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Task>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTaskIds_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListTaskIds_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListTaskIds_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTasks_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AdminService::Stub::AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskList>::Create(channel_.get(), cq, rpcmethod_ListTasks_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AdminService::Stub::PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskList>::Create(channel_.get(), cq, rpcmethod_ListTasks_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateWorkflow_, context, request, response); +} + +void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AdminService::Stub::AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflow_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AdminService::Stub::PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflow_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetWorkflow_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AdminService::Stub::AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Workflow>::Create(channel_.get(), cq, rpcmethod_GetWorkflow_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AdminService::Stub::PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Workflow>::Create(channel_.get(), cq, rpcmethod_GetWorkflow_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListWorkflowIds_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListWorkflowIds_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListWorkflowIds_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListWorkflows_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AdminService::Stub::AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowList>::Create(channel_.get(), cq, rpcmethod_ListWorkflows_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AdminService::Stub::PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowList>::Create(channel_.get(), cq, rpcmethod_ListWorkflows_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateLaunchPlan_, context, request, response); +} + +void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AdminService::Stub::AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateLaunchPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AdminService::Stub::PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateLaunchPlan_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLaunchPlan_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetLaunchPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetLaunchPlan_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::flyteidl::admin::LaunchPlan* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetActiveLaunchPlan_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::AsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetActiveLaunchPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::PrepareAsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetActiveLaunchPlan_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::flyteidl::admin::LaunchPlanList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListActiveLaunchPlans_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::AsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListActiveLaunchPlans_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::PrepareAsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListActiveLaunchPlans_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListLaunchPlanIds_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlanIds_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlanIds_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListLaunchPlans_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlans_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlans_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateLaunchPlan_, context, request, response); +} + +void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AdminService::Stub::AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLaunchPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLaunchPlan_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RelaunchExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RelaunchExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RelaunchExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RecoverExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RecoverExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RecoverExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AdminService::Stub::AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Execution>::Create(channel_.get(), cq, rpcmethod_GetExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AdminService::Stub::PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Execution>::Create(channel_.get(), cq, rpcmethod_GetExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::flyteidl::admin::ExecutionUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* AdminService::Stub::AsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecutionData_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AdminService::Stub::AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionData_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionData_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListExecutions_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AdminService::Stub::AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionList>::Create(channel_.get(), cq, rpcmethod_ListExecutions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AdminService::Stub::PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionList>::Create(channel_.get(), cq, rpcmethod_ListExecutions_, context, request, false); +} + +::grpc::Status AdminService::Stub::TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_TerminateExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AdminService::Stub::AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionTerminateResponse>::Create(channel_.get(), cq, rpcmethod_TerminateExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AdminService::Stub::PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionTerminateResponse>::Create(channel_.get(), cq, rpcmethod_TerminateExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNodeExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AdminService::Stub::AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecution>::Create(channel_.get(), cq, rpcmethod_GetNodeExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AdminService::Stub::PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecution>::Create(channel_.get(), cq, rpcmethod_GetNodeExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNodeExecutions_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutions_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNodeExecutionsForTask_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutionsForTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutionsForTask_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNodeExecutionData_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AdminService::Stub::AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetNodeExecutionData_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetNodeExecutionData_, context, request, false); +} + +::grpc::Status AdminService::Stub::RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RegisterProject_, context, request, response); +} + +void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AdminService::Stub::AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectRegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProject_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AdminService::Stub::PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectRegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProject_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::flyteidl::admin::ProjectUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateProject_, context, request, response); +} + +void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* AdminService::Stub::AsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProject_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProject_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListProjects_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AdminService::Stub::AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Projects>::Create(channel_.get(), cq, rpcmethod_ListProjects_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AdminService::Stub::PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Projects>::Create(channel_.get(), cq, rpcmethod_ListProjects_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateWorkflowEvent_, context, request, response); +} + +void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AdminService::Stub::AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflowEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflowEvent_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateNodeEvent_, context, request, response); +} + +void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AdminService::Stub::AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateNodeEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateNodeEvent_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTaskEvent_, context, request, response); +} + +void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AdminService::Stub::AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateTaskEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateTaskEvent_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskExecution_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AdminService::Stub::AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecution>::Create(channel_.get(), cq, rpcmethod_GetTaskExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AdminService::Stub::PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecution>::Create(channel_.get(), cq, rpcmethod_GetTaskExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTaskExecutions_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AdminService::Stub::AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionList>::Create(channel_.get(), cq, rpcmethod_ListTaskExecutions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AdminService::Stub::PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionList>::Create(channel_.get(), cq, rpcmethod_ListTaskExecutions_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskExecutionData_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AdminService::Stub::AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskExecutionData_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskExecutionData_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateProjectDomainAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AdminService::Stub::AsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectDomainAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectDomainAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProjectDomainAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AdminService::Stub::AsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectDomainAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AdminService::Stub::PrepareAsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectDomainAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteProjectDomainAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AdminService::Stub::AsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectDomainAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AdminService::Stub::PrepareAsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectDomainAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateProjectAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AdminService::Stub::AsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::flyteidl::admin::ProjectAttributesGetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProjectAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* AdminService::Stub::AsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* AdminService::Stub::PrepareAsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteProjectAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AdminService::Stub::AsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AdminService::Stub::PrepareAsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateWorkflowAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AdminService::Stub::AsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateWorkflowAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateWorkflowAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetWorkflowAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* AdminService::Stub::AsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetWorkflowAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* AdminService::Stub::PrepareAsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetWorkflowAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteWorkflowAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AdminService::Stub::AsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteWorkflowAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AdminService::Stub::PrepareAsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteWorkflowAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::flyteidl::admin::ListMatchableAttributesResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListMatchableAttributes_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* AdminService::Stub::AsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ListMatchableAttributesResponse>::Create(channel_.get(), cq, rpcmethod_ListMatchableAttributes_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* AdminService::Stub::PrepareAsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ListMatchableAttributesResponse>::Create(channel_.get(), cq, rpcmethod_ListMatchableAttributes_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::flyteidl::admin::NamedEntityList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNamedEntities_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* AdminService::Stub::AsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityList>::Create(channel_.get(), cq, rpcmethod_ListNamedEntities_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* AdminService::Stub::PrepareAsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityList>::Create(channel_.get(), cq, rpcmethod_ListNamedEntities_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::flyteidl::admin::NamedEntity* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNamedEntity_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* AdminService::Stub::AsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntity>::Create(channel_.get(), cq, rpcmethod_GetNamedEntity_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* AdminService::Stub::PrepareAsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntity>::Create(channel_.get(), cq, rpcmethod_GetNamedEntity_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::flyteidl::admin::NamedEntityUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateNamedEntity_, context, request, response); +} + +void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* AdminService::Stub::AsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateNamedEntity_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateNamedEntity_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::flyteidl::admin::GetVersionResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetVersion_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* AdminService::Stub::AsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetVersionResponse>::Create(channel_.get(), cq, rpcmethod_GetVersion_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* AdminService::Stub::PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetVersionResponse>::Create(channel_.get(), cq, rpcmethod_GetVersion_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::DescriptionEntity* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDescriptionEntity_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* AdminService::Stub::AsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntity>::Create(channel_.get(), cq, rpcmethod_GetDescriptionEntity_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* AdminService::Stub::PrepareAsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntity>::Create(channel_.get(), cq, rpcmethod_GetDescriptionEntity_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::flyteidl::admin::DescriptionEntityList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListDescriptionEntities_, context, request, response); +} + +void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* AdminService::Stub::AsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntityList>::Create(channel_.get(), cq, rpcmethod_ListDescriptionEntities_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* AdminService::Stub::PrepareAsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntityList>::Create(channel_.get(), cq, rpcmethod_ListDescriptionEntities_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecutionMetrics_, context, request, response); +} + +void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, std::move(f)); +} + +void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, reactor); +} + +void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AdminService::Stub::AsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionMetrics_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AdminService::Stub::PrepareAsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionMetrics_, context, request, false); +} + +AdminService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>( + std::mem_fn(&AdminService::Service::CreateTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>( + std::mem_fn(&AdminService::Service::GetTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + std::mem_fn(&AdminService::Service::ListTaskIds), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>( + std::mem_fn(&AdminService::Service::ListTasks), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>( + std::mem_fn(&AdminService::Service::CreateWorkflow), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>( + std::mem_fn(&AdminService::Service::GetWorkflow), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + std::mem_fn(&AdminService::Service::ListWorkflowIds), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>( + std::mem_fn(&AdminService::Service::ListWorkflows), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>( + std::mem_fn(&AdminService::Service::CreateLaunchPlan), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>( + std::mem_fn(&AdminService::Service::GetLaunchPlan), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>( + std::mem_fn(&AdminService::Service::GetActiveLaunchPlan), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>( + std::mem_fn(&AdminService::Service::ListActiveLaunchPlans), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[12], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + std::mem_fn(&AdminService::Service::ListLaunchPlanIds), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[13], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>( + std::mem_fn(&AdminService::Service::ListLaunchPlans), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[14], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateLaunchPlan), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[15], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>( + std::mem_fn(&AdminService::Service::CreateExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[16], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>( + std::mem_fn(&AdminService::Service::RelaunchExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[17], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>( + std::mem_fn(&AdminService::Service::RecoverExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[18], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>( + std::mem_fn(&AdminService::Service::GetExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[19], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[20], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>( + std::mem_fn(&AdminService::Service::GetExecutionData), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[21], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>( + std::mem_fn(&AdminService::Service::ListExecutions), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[22], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>( + std::mem_fn(&AdminService::Service::TerminateExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[23], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>( + std::mem_fn(&AdminService::Service::GetNodeExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[24], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>( + std::mem_fn(&AdminService::Service::ListNodeExecutions), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[25], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>( + std::mem_fn(&AdminService::Service::ListNodeExecutionsForTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[26], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>( + std::mem_fn(&AdminService::Service::GetNodeExecutionData), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[27], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>( + std::mem_fn(&AdminService::Service::RegisterProject), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[28], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateProject), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[29], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>( + std::mem_fn(&AdminService::Service::ListProjects), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[30], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>( + std::mem_fn(&AdminService::Service::CreateWorkflowEvent), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[31], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>( + std::mem_fn(&AdminService::Service::CreateNodeEvent), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[32], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>( + std::mem_fn(&AdminService::Service::CreateTaskEvent), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[33], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>( + std::mem_fn(&AdminService::Service::GetTaskExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[34], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>( + std::mem_fn(&AdminService::Service::ListTaskExecutions), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[35], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>( + std::mem_fn(&AdminService::Service::GetTaskExecutionData), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[36], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateProjectDomainAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[37], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>( + std::mem_fn(&AdminService::Service::GetProjectDomainAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[38], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>( + std::mem_fn(&AdminService::Service::DeleteProjectDomainAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[39], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateProjectAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[40], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>( + std::mem_fn(&AdminService::Service::GetProjectAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[41], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>( + std::mem_fn(&AdminService::Service::DeleteProjectAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[42], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateWorkflowAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[43], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>( + std::mem_fn(&AdminService::Service::GetWorkflowAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[44], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>( + std::mem_fn(&AdminService::Service::DeleteWorkflowAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[45], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>( + std::mem_fn(&AdminService::Service::ListMatchableAttributes), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[46], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>( + std::mem_fn(&AdminService::Service::ListNamedEntities), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[47], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>( + std::mem_fn(&AdminService::Service::GetNamedEntity), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[48], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateNamedEntity), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[49], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>( + std::mem_fn(&AdminService::Service::GetVersion), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[50], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>( + std::mem_fn(&AdminService::Service::GetDescriptionEntity), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[51], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>( + std::mem_fn(&AdminService::Service::ListDescriptionEntities), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[52], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>( + std::mem_fn(&AdminService::Service::GetExecutionMetrics), this))); +} + +AdminService::Service::~Service() { +} + +::grpc::Status AdminService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h new file mode 100644 index 0000000000..77f3dc1487 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h @@ -0,0 +1,8803 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/admin.proto +#ifndef GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED + +#include "flyteidl/service/admin.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// The following defines an RPC service that is also served over HTTP via grpc-gateway. +// Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go +class AdminService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.AdminService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + virtual ::grpc::Status ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListTaskIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListTaskIdsRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + virtual ::grpc::Status ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>> AsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>>(AsyncListTasksRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>> PrepareAsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>>(PrepareAsyncListTasksRaw(context, request, cq)); + } + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + virtual ::grpc::Status CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>> AsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>>(AsyncCreateWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>> PrepareAsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>>(PrepareAsyncCreateWorkflowRaw(context, request, cq)); + } + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + virtual ::grpc::Status GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>> AsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>>(AsyncGetWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>> PrepareAsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>>(PrepareAsyncGetWorkflowRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + virtual ::grpc::Status ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListWorkflowIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListWorkflowIdsRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + virtual ::grpc::Status ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>> AsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>>(AsyncListWorkflowsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>> PrepareAsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>>(PrepareAsyncListWorkflowsRaw(context, request, cq)); + } + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + virtual ::grpc::Status CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>> AsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>>(AsyncCreateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>> PrepareAsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>>(PrepareAsyncCreateLaunchPlanRaw(context, request, cq)); + } + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + virtual ::grpc::Status GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> AsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(AsyncGetLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetLaunchPlanRaw(context, request, cq)); + } + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual ::grpc::Status GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::flyteidl::admin::LaunchPlan* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> AsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(AsyncGetActiveLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetActiveLaunchPlanRaw(context, request, cq)); + } + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual ::grpc::Status ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::flyteidl::admin::LaunchPlanList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> AsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(AsyncListActiveLaunchPlansRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListActiveLaunchPlansRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + virtual ::grpc::Status ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListLaunchPlanIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListLaunchPlanIdsRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + virtual ::grpc::Status ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> AsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(AsyncListLaunchPlansRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListLaunchPlansRaw(context, request, cq)); + } + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual ::grpc::Status UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>> AsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>>(AsyncUpdateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>> PrepareAsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>>(PrepareAsyncUpdateLaunchPlanRaw(context, request, cq)); + } + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + virtual ::grpc::Status CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncCreateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncCreateExecutionRaw(context, request, cq)); + } + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + virtual ::grpc::Status RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRelaunchExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRelaunchExecutionRaw(context, request, cq)); + } + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + virtual ::grpc::Status RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRecoverExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRecoverExecutionRaw(context, request, cq)); + } + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>> AsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>>(AsyncGetExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>> PrepareAsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>>(PrepareAsyncGetExecutionRaw(context, request, cq)); + } + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::flyteidl::admin::ExecutionUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>> AsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>>(AsyncUpdateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>> PrepareAsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>>(PrepareAsyncUpdateExecutionRaw(context, request, cq)); + } + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> AsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(AsyncGetExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> PrepareAsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(PrepareAsyncGetExecutionDataRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>> AsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>>(AsyncListExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>> PrepareAsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>>(PrepareAsyncListExecutionsRaw(context, request, cq)); + } + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>> AsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>>(AsyncTerminateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>> PrepareAsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>>(PrepareAsyncTerminateExecutionRaw(context, request, cq)); + } + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + virtual ::grpc::Status GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>> AsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>>(AsyncGetNodeExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>> PrepareAsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>>(PrepareAsyncGetNodeExecutionRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + virtual ::grpc::Status ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + virtual ::grpc::Status GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>> AsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>>(AsyncGetNodeExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>> PrepareAsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>>(PrepareAsyncGetNodeExecutionDataRaw(context, request, cq)); + } + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + virtual ::grpc::Status RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>> AsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>>(AsyncRegisterProjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>> PrepareAsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>>(PrepareAsyncRegisterProjectRaw(context, request, cq)); + } + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + virtual ::grpc::Status UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::flyteidl::admin::ProjectUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>> AsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>>(AsyncUpdateProjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>> PrepareAsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>>(PrepareAsyncUpdateProjectRaw(context, request, cq)); + } + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + virtual ::grpc::Status ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>> AsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>>(AsyncListProjectsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>> PrepareAsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>>(PrepareAsyncListProjectsRaw(context, request, cq)); + } + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + virtual ::grpc::Status CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>> AsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>>(AsyncCreateWorkflowEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>> PrepareAsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>>(PrepareAsyncCreateWorkflowEventRaw(context, request, cq)); + } + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + virtual ::grpc::Status CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>> AsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>>(AsyncCreateNodeEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>> PrepareAsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>>(PrepareAsyncCreateNodeEventRaw(context, request, cq)); + } + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + virtual ::grpc::Status CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>> AsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>>(AsyncCreateTaskEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>> PrepareAsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>>(PrepareAsyncCreateTaskEventRaw(context, request, cq)); + } + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>> AsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>>(AsyncGetTaskExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>> PrepareAsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>>(PrepareAsyncGetTaskExecutionRaw(context, request, cq)); + } + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>> AsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>>(AsyncListTaskExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>> PrepareAsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>>(PrepareAsyncListTaskExecutionsRaw(context, request, cq)); + } + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>> AsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>>(AsyncGetTaskExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>> PrepareAsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>>(PrepareAsyncGetTaskExecutionDataRaw(context, request, cq)); + } + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> AsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(AsyncUpdateProjectDomainAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> PrepareAsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(PrepareAsyncUpdateProjectDomainAttributesRaw(context, request, cq)); + } + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> AsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(AsyncGetProjectDomainAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> PrepareAsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(PrepareAsyncGetProjectDomainAttributesRaw(context, request, cq)); + } + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> AsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(AsyncDeleteProjectDomainAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> PrepareAsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(PrepareAsyncDeleteProjectDomainAttributesRaw(context, request, cq)); + } + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + virtual ::grpc::Status UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>> AsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(AsyncUpdateProjectAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>> PrepareAsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(PrepareAsyncUpdateProjectAttributesRaw(context, request, cq)); + } + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::flyteidl::admin::ProjectAttributesGetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>> AsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>>(AsyncGetProjectAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>> PrepareAsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>>(PrepareAsyncGetProjectAttributesRaw(context, request, cq)); + } + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>> AsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(AsyncDeleteProjectAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>> PrepareAsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(PrepareAsyncDeleteProjectAttributesRaw(context, request, cq)); + } + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual ::grpc::Status UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> AsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(AsyncUpdateWorkflowAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> PrepareAsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(PrepareAsyncUpdateWorkflowAttributesRaw(context, request, cq)); + } + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual ::grpc::Status GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>> AsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>>(AsyncGetWorkflowAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>> PrepareAsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>>(PrepareAsyncGetWorkflowAttributesRaw(context, request, cq)); + } + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual ::grpc::Status DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> AsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(AsyncDeleteWorkflowAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> PrepareAsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(PrepareAsyncDeleteWorkflowAttributesRaw(context, request, cq)); + } + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + virtual ::grpc::Status ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::flyteidl::admin::ListMatchableAttributesResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>> AsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>>(AsyncListMatchableAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>> PrepareAsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>>(PrepareAsyncListMatchableAttributesRaw(context, request, cq)); + } + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + virtual ::grpc::Status ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::flyteidl::admin::NamedEntityList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>> AsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>>(AsyncListNamedEntitiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>> PrepareAsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>>(PrepareAsyncListNamedEntitiesRaw(context, request, cq)); + } + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + virtual ::grpc::Status GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::flyteidl::admin::NamedEntity* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>> AsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>>(AsyncGetNamedEntityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>> PrepareAsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>>(PrepareAsyncGetNamedEntityRaw(context, request, cq)); + } + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + virtual ::grpc::Status UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::flyteidl::admin::NamedEntityUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>> AsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>>(AsyncUpdateNamedEntityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>> PrepareAsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>>(PrepareAsyncUpdateNamedEntityRaw(context, request, cq)); + } + virtual ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::flyteidl::admin::GetVersionResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>> AsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>>(AsyncGetVersionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); + } + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + virtual ::grpc::Status GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::DescriptionEntity* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>> AsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>>(AsyncGetDescriptionEntityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>> PrepareAsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>>(PrepareAsyncGetDescriptionEntityRaw(context, request, cq)); + } + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + virtual ::grpc::Status ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::flyteidl::admin::DescriptionEntityList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>> AsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>>(AsyncListDescriptionEntitiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>> PrepareAsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>>(PrepareAsyncListDescriptionEntitiesRaw(context, request, cq)); + } + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> AsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(AsyncGetExecutionMetricsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> PrepareAsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(PrepareAsyncGetExecutionMetricsRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + virtual void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; + virtual void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; + virtual void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + virtual void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, std::function) = 0; + virtual void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, std::function) = 0; + virtual void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + virtual void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) = 0; + virtual void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) = 0; + virtual void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + virtual void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, std::function) = 0; + virtual void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, std::function) = 0; + virtual void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; + virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; + virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + virtual void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, std::function) = 0; + virtual void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, std::function) = 0; + virtual void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) = 0; + virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) = 0; + virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; + virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; + virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; + virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; + virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; + virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; + virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; + virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; + virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; + virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; + virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) = 0; + virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) = 0; + virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + virtual void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; + virtual void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; + virtual void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + virtual void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; + virtual void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; + virtual void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + virtual void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; + virtual void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; + virtual void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + virtual void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, std::function) = 0; + virtual void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, std::function) = 0; + virtual void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + virtual void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) = 0; + virtual void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) = 0; + virtual void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + virtual void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) = 0; + virtual void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) = 0; + virtual void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + virtual void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, std::function) = 0; + virtual void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, std::function) = 0; + virtual void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + virtual void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) = 0; + virtual void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) = 0; + virtual void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + virtual void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, std::function) = 0; + virtual void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, std::function) = 0; + virtual void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; + virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; + virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; + virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; + virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) = 0; + virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) = 0; + virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + virtual void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) = 0; + virtual void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) = 0; + virtual void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + virtual void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) = 0; + virtual void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) = 0; + virtual void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + virtual void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, std::function) = 0; + virtual void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, std::function) = 0; + virtual void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) = 0; + virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) = 0; + virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) = 0; + virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) = 0; + virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) = 0; + virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) = 0; + virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + virtual void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, std::function) = 0; + virtual void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, std::function) = 0; + virtual void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, std::function) = 0; + virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, std::function) = 0; + virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) = 0; + virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) = 0; + virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) = 0; + virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) = 0; + virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) = 0; + virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) = 0; + virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) = 0; + virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) = 0; + virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) = 0; + virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) = 0; + virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) = 0; + virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) = 0; + virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) = 0; + virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) = 0; + virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) = 0; + virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) = 0; + virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) = 0; + virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) = 0; + virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) = 0; + virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) = 0; + virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) = 0; + virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) = 0; + virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + virtual void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, std::function) = 0; + virtual void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, std::function) = 0; + virtual void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + virtual void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, std::function) = 0; + virtual void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, std::function) = 0; + virtual void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) = 0; + virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) = 0; + virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, std::function) = 0; + virtual void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, std::function) = 0; + virtual void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, std::function) = 0; + virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, std::function) = 0; + virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) = 0; + virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) = 0; + virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) = 0; + virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) = 0; + virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>* AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>* PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>* AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>* PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>* AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>* PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>* AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>* PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>* AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>* PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* AsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* AsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>* AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>* PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>* AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>* PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>* AsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>* PrepareAsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>* AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>* PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>* AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>* PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>* AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>* PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>* AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>* PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>* AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>* PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>* AsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>* PrepareAsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>* AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>* PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>* AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>* PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>* AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>* PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>* AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>* PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>* AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>* PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>* AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>* PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>* AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>* PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* PrepareAsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* PrepareAsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* PrepareAsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>* PrepareAsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>* AsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>* PrepareAsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>* PrepareAsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* PrepareAsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>* AsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>* PrepareAsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* PrepareAsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>* AsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>* PrepareAsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>* AsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>* PrepareAsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>* AsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>* PrepareAsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>* AsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>* PrepareAsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>* AsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>* PrepareAsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>* AsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>* PrepareAsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* PrepareAsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + ::grpc::Status ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListTaskIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListTaskIdsRaw(context, request, cq)); + } + ::grpc::Status ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>> AsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>>(AsyncListTasksRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>> PrepareAsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>>(PrepareAsyncListTasksRaw(context, request, cq)); + } + ::grpc::Status CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>> AsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>>(AsyncCreateWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>> PrepareAsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>>(PrepareAsyncCreateWorkflowRaw(context, request, cq)); + } + ::grpc::Status GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>> AsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>>(AsyncGetWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>> PrepareAsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>>(PrepareAsyncGetWorkflowRaw(context, request, cq)); + } + ::grpc::Status ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListWorkflowIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListWorkflowIdsRaw(context, request, cq)); + } + ::grpc::Status ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>> AsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>>(AsyncListWorkflowsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>> PrepareAsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>>(PrepareAsyncListWorkflowsRaw(context, request, cq)); + } + ::grpc::Status CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>> AsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>>(AsyncCreateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>> PrepareAsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>>(PrepareAsyncCreateLaunchPlanRaw(context, request, cq)); + } + ::grpc::Status GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> AsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(AsyncGetLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetLaunchPlanRaw(context, request, cq)); + } + ::grpc::Status GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::flyteidl::admin::LaunchPlan* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> AsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(AsyncGetActiveLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetActiveLaunchPlanRaw(context, request, cq)); + } + ::grpc::Status ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::flyteidl::admin::LaunchPlanList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> AsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(AsyncListActiveLaunchPlansRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListActiveLaunchPlansRaw(context, request, cq)); + } + ::grpc::Status ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListLaunchPlanIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListLaunchPlanIdsRaw(context, request, cq)); + } + ::grpc::Status ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> AsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(AsyncListLaunchPlansRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListLaunchPlansRaw(context, request, cq)); + } + ::grpc::Status UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>> AsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>>(AsyncUpdateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>> PrepareAsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>>(PrepareAsyncUpdateLaunchPlanRaw(context, request, cq)); + } + ::grpc::Status CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncCreateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncCreateExecutionRaw(context, request, cq)); + } + ::grpc::Status RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRelaunchExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRelaunchExecutionRaw(context, request, cq)); + } + ::grpc::Status RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRecoverExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRecoverExecutionRaw(context, request, cq)); + } + ::grpc::Status GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>> AsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>>(AsyncGetExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>> PrepareAsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>>(PrepareAsyncGetExecutionRaw(context, request, cq)); + } + ::grpc::Status UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::flyteidl::admin::ExecutionUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>> AsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>>(AsyncUpdateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>> PrepareAsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>>(PrepareAsyncUpdateExecutionRaw(context, request, cq)); + } + ::grpc::Status GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> AsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(AsyncGetExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> PrepareAsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(PrepareAsyncGetExecutionDataRaw(context, request, cq)); + } + ::grpc::Status ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>> AsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>>(AsyncListExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>> PrepareAsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>>(PrepareAsyncListExecutionsRaw(context, request, cq)); + } + ::grpc::Status TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>> AsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>>(AsyncTerminateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>> PrepareAsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>>(PrepareAsyncTerminateExecutionRaw(context, request, cq)); + } + ::grpc::Status GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>> AsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>>(AsyncGetNodeExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>> PrepareAsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>>(PrepareAsyncGetNodeExecutionRaw(context, request, cq)); + } + ::grpc::Status ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsRaw(context, request, cq)); + } + ::grpc::Status ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + ::grpc::Status GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>> AsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>>(AsyncGetNodeExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>> PrepareAsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>>(PrepareAsyncGetNodeExecutionDataRaw(context, request, cq)); + } + ::grpc::Status RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>> AsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>>(AsyncRegisterProjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>> PrepareAsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>>(PrepareAsyncRegisterProjectRaw(context, request, cq)); + } + ::grpc::Status UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::flyteidl::admin::ProjectUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>> AsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>>(AsyncUpdateProjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>> PrepareAsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>>(PrepareAsyncUpdateProjectRaw(context, request, cq)); + } + ::grpc::Status ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>> AsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>>(AsyncListProjectsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>> PrepareAsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>>(PrepareAsyncListProjectsRaw(context, request, cq)); + } + ::grpc::Status CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>> AsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>>(AsyncCreateWorkflowEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>> PrepareAsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>>(PrepareAsyncCreateWorkflowEventRaw(context, request, cq)); + } + ::grpc::Status CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>> AsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>>(AsyncCreateNodeEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>> PrepareAsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>>(PrepareAsyncCreateNodeEventRaw(context, request, cq)); + } + ::grpc::Status CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>> AsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>>(AsyncCreateTaskEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>> PrepareAsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>>(PrepareAsyncCreateTaskEventRaw(context, request, cq)); + } + ::grpc::Status GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>> AsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>>(AsyncGetTaskExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>> PrepareAsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>>(PrepareAsyncGetTaskExecutionRaw(context, request, cq)); + } + ::grpc::Status ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>> AsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>>(AsyncListTaskExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>> PrepareAsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>>(PrepareAsyncListTaskExecutionsRaw(context, request, cq)); + } + ::grpc::Status GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>> AsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>>(AsyncGetTaskExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>> PrepareAsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>>(PrepareAsyncGetTaskExecutionDataRaw(context, request, cq)); + } + ::grpc::Status UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> AsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(AsyncUpdateProjectDomainAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> PrepareAsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(PrepareAsyncUpdateProjectDomainAttributesRaw(context, request, cq)); + } + ::grpc::Status GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> AsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(AsyncGetProjectDomainAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> PrepareAsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(PrepareAsyncGetProjectDomainAttributesRaw(context, request, cq)); + } + ::grpc::Status DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> AsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(AsyncDeleteProjectDomainAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> PrepareAsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(PrepareAsyncDeleteProjectDomainAttributesRaw(context, request, cq)); + } + ::grpc::Status UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>> AsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(AsyncUpdateProjectAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>> PrepareAsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(PrepareAsyncUpdateProjectAttributesRaw(context, request, cq)); + } + ::grpc::Status GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>> AsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>>(AsyncGetProjectAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>> PrepareAsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>>(PrepareAsyncGetProjectAttributesRaw(context, request, cq)); + } + ::grpc::Status DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>> AsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(AsyncDeleteProjectAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>> PrepareAsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(PrepareAsyncDeleteProjectAttributesRaw(context, request, cq)); + } + ::grpc::Status UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> AsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(AsyncUpdateWorkflowAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> PrepareAsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(PrepareAsyncUpdateWorkflowAttributesRaw(context, request, cq)); + } + ::grpc::Status GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>> AsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>>(AsyncGetWorkflowAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>> PrepareAsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>>(PrepareAsyncGetWorkflowAttributesRaw(context, request, cq)); + } + ::grpc::Status DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> AsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(AsyncDeleteWorkflowAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> PrepareAsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(PrepareAsyncDeleteWorkflowAttributesRaw(context, request, cq)); + } + ::grpc::Status ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>> AsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>>(AsyncListMatchableAttributesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>> PrepareAsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>>(PrepareAsyncListMatchableAttributesRaw(context, request, cq)); + } + ::grpc::Status ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::flyteidl::admin::NamedEntityList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>> AsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>>(AsyncListNamedEntitiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>> PrepareAsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>>(PrepareAsyncListNamedEntitiesRaw(context, request, cq)); + } + ::grpc::Status GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::flyteidl::admin::NamedEntity* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>> AsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>>(AsyncGetNamedEntityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>> PrepareAsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>>(PrepareAsyncGetNamedEntityRaw(context, request, cq)); + } + ::grpc::Status UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>> AsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>>(AsyncUpdateNamedEntityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>> PrepareAsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>>(PrepareAsyncUpdateNamedEntityRaw(context, request, cq)); + } + ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::flyteidl::admin::GetVersionResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>> AsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>>(AsyncGetVersionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); + } + ::grpc::Status GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::DescriptionEntity* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>> AsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>>(AsyncGetDescriptionEntityRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>> PrepareAsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>>(PrepareAsyncGetDescriptionEntityRaw(context, request, cq)); + } + ::grpc::Status ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::flyteidl::admin::DescriptionEntityList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>> AsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>>(AsyncListDescriptionEntitiesRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>> PrepareAsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>>(PrepareAsyncListDescriptionEntitiesRaw(context, request, cq)); + } + ::grpc::Status GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> AsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(AsyncGetExecutionMetricsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> PrepareAsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(PrepareAsyncGetExecutionMetricsRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; + void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; + void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, std::function) override; + void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, std::function) override; + void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) override; + void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) override; + void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, std::function) override; + void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, std::function) override; + void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; + void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; + void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, std::function) override; + void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, std::function) override; + void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) override; + void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) override; + void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; + void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; + void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; + void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; + void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; + void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; + void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; + void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; + void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; + void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; + void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) override; + void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) override; + void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; + void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; + void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; + void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; + void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; + void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; + void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, std::function) override; + void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, std::function) override; + void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) override; + void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) override; + void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) override; + void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) override; + void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, std::function) override; + void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, std::function) override; + void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) override; + void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) override; + void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, std::function) override; + void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, std::function) override; + void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; + void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; + void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; + void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; + void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) override; + void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) override; + void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) override; + void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) override; + void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) override; + void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) override; + void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, std::function) override; + void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, std::function) override; + void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) override; + void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) override; + void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) override; + void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) override; + void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) override; + void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) override; + void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, std::function) override; + void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, std::function) override; + void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, std::function) override; + void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, std::function) override; + void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) override; + void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) override; + void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) override; + void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) override; + void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) override; + void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) override; + void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) override; + void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) override; + void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) override; + void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) override; + void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) override; + void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) override; + void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) override; + void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) override; + void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) override; + void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) override; + void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) override; + void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) override; + void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) override; + void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) override; + void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) override; + void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) override; + void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, std::function) override; + void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, std::function) override; + void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, std::function) override; + void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, std::function) override; + void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) override; + void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) override; + void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, std::function) override; + void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, std::function) override; + void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, std::function) override; + void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, std::function) override; + void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) override; + void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) override; + void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) override; + void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) override; + void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* AsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* PrepareAsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* AsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* PrepareAsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* PrepareAsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* PrepareAsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* PrepareAsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* PrepareAsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* AsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* PrepareAsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* PrepareAsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* PrepareAsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* AsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* PrepareAsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* PrepareAsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* AsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* PrepareAsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* AsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* PrepareAsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* AsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* PrepareAsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* AsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* PrepareAsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* AsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* PrepareAsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* AsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* PrepareAsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* PrepareAsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetTask_; + const ::grpc::internal::RpcMethod rpcmethod_ListTaskIds_; + const ::grpc::internal::RpcMethod rpcmethod_ListTasks_; + const ::grpc::internal::RpcMethod rpcmethod_CreateWorkflow_; + const ::grpc::internal::RpcMethod rpcmethod_GetWorkflow_; + const ::grpc::internal::RpcMethod rpcmethod_ListWorkflowIds_; + const ::grpc::internal::RpcMethod rpcmethod_ListWorkflows_; + const ::grpc::internal::RpcMethod rpcmethod_CreateLaunchPlan_; + const ::grpc::internal::RpcMethod rpcmethod_GetLaunchPlan_; + const ::grpc::internal::RpcMethod rpcmethod_GetActiveLaunchPlan_; + const ::grpc::internal::RpcMethod rpcmethod_ListActiveLaunchPlans_; + const ::grpc::internal::RpcMethod rpcmethod_ListLaunchPlanIds_; + const ::grpc::internal::RpcMethod rpcmethod_ListLaunchPlans_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateLaunchPlan_; + const ::grpc::internal::RpcMethod rpcmethod_CreateExecution_; + const ::grpc::internal::RpcMethod rpcmethod_RelaunchExecution_; + const ::grpc::internal::RpcMethod rpcmethod_RecoverExecution_; + const ::grpc::internal::RpcMethod rpcmethod_GetExecution_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateExecution_; + const ::grpc::internal::RpcMethod rpcmethod_GetExecutionData_; + const ::grpc::internal::RpcMethod rpcmethod_ListExecutions_; + const ::grpc::internal::RpcMethod rpcmethod_TerminateExecution_; + const ::grpc::internal::RpcMethod rpcmethod_GetNodeExecution_; + const ::grpc::internal::RpcMethod rpcmethod_ListNodeExecutions_; + const ::grpc::internal::RpcMethod rpcmethod_ListNodeExecutionsForTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetNodeExecutionData_; + const ::grpc::internal::RpcMethod rpcmethod_RegisterProject_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateProject_; + const ::grpc::internal::RpcMethod rpcmethod_ListProjects_; + const ::grpc::internal::RpcMethod rpcmethod_CreateWorkflowEvent_; + const ::grpc::internal::RpcMethod rpcmethod_CreateNodeEvent_; + const ::grpc::internal::RpcMethod rpcmethod_CreateTaskEvent_; + const ::grpc::internal::RpcMethod rpcmethod_GetTaskExecution_; + const ::grpc::internal::RpcMethod rpcmethod_ListTaskExecutions_; + const ::grpc::internal::RpcMethod rpcmethod_GetTaskExecutionData_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateProjectDomainAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_GetProjectDomainAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteProjectDomainAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateProjectAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_GetProjectAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteProjectAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateWorkflowAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_GetWorkflowAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteWorkflowAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_ListMatchableAttributes_; + const ::grpc::internal::RpcMethod rpcmethod_ListNamedEntities_; + const ::grpc::internal::RpcMethod rpcmethod_GetNamedEntity_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateNamedEntity_; + const ::grpc::internal::RpcMethod rpcmethod_GetVersion_; + const ::grpc::internal::RpcMethod rpcmethod_GetDescriptionEntity_; + const ::grpc::internal::RpcMethod rpcmethod_ListDescriptionEntities_; + const ::grpc::internal::RpcMethod rpcmethod_GetExecutionMetrics_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response); + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response); + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + virtual ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + virtual ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response); + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + virtual ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response); + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + virtual ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response); + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + virtual ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + virtual ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response); + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + virtual ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response); + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + virtual ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response); + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response); + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response); + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + virtual ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + virtual ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response); + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + virtual ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response); + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + virtual ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + virtual ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + virtual ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response); + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response); + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response); + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response); + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response); + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + virtual ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response); + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + virtual ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response); + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response); + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + virtual ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response); + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + virtual ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response); + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + virtual ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response); + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + virtual ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response); + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + virtual ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response); + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + virtual ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response); + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + virtual ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response); + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response); + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response); + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + virtual ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response); + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response); + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response); + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response); + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + virtual ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response); + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response); + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + virtual ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response); + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response); + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response); + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + virtual ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response); + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + virtual ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response); + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + virtual ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response); + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + virtual ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response); + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + virtual ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response); + virtual ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response); + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + virtual ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response); + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + virtual ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response); + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + virtual ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response); + }; + template + class WithAsyncMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateTask() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::admin::TaskCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTask() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Task>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListTaskIds() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListTasks() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTasks(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflow(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetWorkflow() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWorkflow(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Workflow>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflowIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListWorkflows() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflows(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::LaunchPlanCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlan>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetActiveLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetActiveLaunchPlan() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_GetActiveLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetActiveLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlan>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListActiveLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListActiveLaunchPlans() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_ListActiveLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListActiveLaunchPlans(::grpc::ServerContext* context, ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodAsync(12); + } + ~WithAsyncMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlanIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodAsync(13); + } + ~WithAsyncMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlans(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodAsync(14); + } + ~WithAsyncMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateExecution() { + ::grpc::Service::MarkMethodAsync(15); + } + ~WithAsyncMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodAsync(16); + } + ~WithAsyncMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRelaunchExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionRelaunchRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RecoverExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_RecoverExecution() { + ::grpc::Service::MarkMethodAsync(17); + } + ~WithAsyncMethod_RecoverExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRecoverExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionRecoverRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetExecution() { + ::grpc::Service::MarkMethodAsync(18); + } + ~WithAsyncMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecution(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Execution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateExecution() { + ::grpc::Service::MarkMethodAsync(19); + } + ~WithAsyncMethod_UpdateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetExecutionData() { + ::grpc::Service::MarkMethodAsync(20); + } + ~WithAsyncMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListExecutions() { + ::grpc::Service::MarkMethodAsync(21); + } + ~WithAsyncMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListExecutions(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_TerminateExecution() { + ::grpc::Service::MarkMethodAsync(22); + } + ~WithAsyncMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTerminateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionTerminateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionTerminateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodAsync(23); + } + ~WithAsyncMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecution(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodAsync(24); + } + ~WithAsyncMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutions(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodAsync(25); + } + ~WithAsyncMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutionsForTask(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodAsync(26); + } + ~WithAsyncMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_RegisterProject() { + ::grpc::Service::MarkMethodAsync(27); + } + ~WithAsyncMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRegisterProject(::grpc::ServerContext* context, ::flyteidl::admin::ProjectRegisterRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectRegisterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateProject() { + ::grpc::Service::MarkMethodAsync(28); + } + ~WithAsyncMethod_UpdateProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateProject(::grpc::ServerContext* context, ::flyteidl::admin::Project* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListProjects() { + ::grpc::Service::MarkMethodAsync(29); + } + ~WithAsyncMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProjects(::grpc::ServerContext* context, ::flyteidl::admin::ProjectListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Projects>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodAsync(30); + } + ~WithAsyncMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflowEvent(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodAsync(31); + } + ~WithAsyncMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateNodeEvent(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodAsync(32); + } + ~WithAsyncMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTaskEvent(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(32, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodAsync(33); + } + ~WithAsyncMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecution(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodAsync(34); + } + ~WithAsyncMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskExecutions(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodAsync(35); + } + ~WithAsyncMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(35, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateProjectDomainAttributes() { + ::grpc::Service::MarkMethodAsync(36); + } + ~WithAsyncMethod_UpdateProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateProjectDomainAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetProjectDomainAttributes() { + ::grpc::Service::MarkMethodAsync(37); + } + ~WithAsyncMethod_GetProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProjectDomainAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DeleteProjectDomainAttributes() { + ::grpc::Service::MarkMethodAsync(38); + } + ~WithAsyncMethod_DeleteProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteProjectDomainAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateProjectAttributes() { + ::grpc::Service::MarkMethodAsync(39); + } + ~WithAsyncMethod_UpdateProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateProjectAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectAttributesUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetProjectAttributes() { + ::grpc::Service::MarkMethodAsync(40); + } + ~WithAsyncMethod_GetProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProjectAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectAttributesGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectAttributesGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(40, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DeleteProjectAttributes() { + ::grpc::Service::MarkMethodAsync(41); + } + ~WithAsyncMethod_DeleteProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteProjectAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectAttributesDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(41, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateWorkflowAttributes() { + ::grpc::Service::MarkMethodAsync(42); + } + ~WithAsyncMethod_UpdateWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateWorkflowAttributes(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(42, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetWorkflowAttributes() { + ::grpc::Service::MarkMethodAsync(43); + } + ~WithAsyncMethod_GetWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWorkflowAttributes(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowAttributesGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(43, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DeleteWorkflowAttributes() { + ::grpc::Service::MarkMethodAsync(44); + } + ~WithAsyncMethod_DeleteWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteWorkflowAttributes(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(44, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListMatchableAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListMatchableAttributes() { + ::grpc::Service::MarkMethodAsync(45); + } + ~WithAsyncMethod_ListMatchableAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListMatchableAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ListMatchableAttributesRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ListMatchableAttributesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(45, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListNamedEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListNamedEntities() { + ::grpc::Service::MarkMethodAsync(46); + } + ~WithAsyncMethod_ListNamedEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNamedEntities(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(46, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetNamedEntity() { + ::grpc::Service::MarkMethodAsync(47); + } + ~WithAsyncMethod_GetNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNamedEntity(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntity>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(47, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateNamedEntity() { + ::grpc::Service::MarkMethodAsync(48); + } + ~WithAsyncMethod_UpdateNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateNamedEntity(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(48, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetVersion : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetVersion() { + ::grpc::Service::MarkMethodAsync(49); + } + ~WithAsyncMethod_GetVersion() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetVersion(::grpc::ServerContext* context, ::flyteidl::admin::GetVersionRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetVersionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(49, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetDescriptionEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetDescriptionEntity() { + ::grpc::Service::MarkMethodAsync(50); + } + ~WithAsyncMethod_GetDescriptionEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDescriptionEntity(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::DescriptionEntity>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListDescriptionEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListDescriptionEntities() { + ::grpc::Service::MarkMethodAsync(51); + } + ~WithAsyncMethod_ListDescriptionEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListDescriptionEntities(::grpc::ServerContext* context, ::flyteidl::admin::DescriptionEntityListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::DescriptionEntityList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetExecutionMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetExecutionMetrics() { + ::grpc::Service::MarkMethodAsync(52); + } + ~WithAsyncMethod_GetExecutionMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecutionMetrics(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; + template + class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::TaskCreateRequest* request, + ::flyteidl::admin::TaskCreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ObjectGetRequest* request, + ::flyteidl::admin::Task* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListTaskIds() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, + ::flyteidl::admin::NamedEntityIdentifierList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListTaskIds(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListTaskIds( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListTasks() { + ::grpc::Service::experimental().MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ResourceListRequest* request, + ::flyteidl::admin::TaskList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListTasks(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListTasks( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>*>( + ::grpc::Service::experimental().GetHandler(3)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateWorkflow() { + ::grpc::Service::experimental().MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowCreateRequest* request, + ::flyteidl::admin::WorkflowCreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateWorkflow(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateWorkflow( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>*>( + ::grpc::Service::experimental().GetHandler(4)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetWorkflow() { + ::grpc::Service::experimental().MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ObjectGetRequest* request, + ::flyteidl::admin::Workflow* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetWorkflow(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetWorkflow( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>*>( + ::grpc::Service::experimental().GetHandler(5)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListWorkflowIds() { + ::grpc::Service::experimental().MarkMethodCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, + ::flyteidl::admin::NamedEntityIdentifierList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListWorkflowIds(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListWorkflowIds( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>*>( + ::grpc::Service::experimental().GetHandler(6)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListWorkflows() { + ::grpc::Service::experimental().MarkMethodCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ResourceListRequest* request, + ::flyteidl::admin::WorkflowList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListWorkflows(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListWorkflows( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>*>( + ::grpc::Service::experimental().GetHandler(7)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateLaunchPlan() { + ::grpc::Service::experimental().MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::LaunchPlanCreateRequest* request, + ::flyteidl::admin::LaunchPlanCreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateLaunchPlan(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateLaunchPlan( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>*>( + ::grpc::Service::experimental().GetHandler(8)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetLaunchPlan() { + ::grpc::Service::experimental().MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ObjectGetRequest* request, + ::flyteidl::admin::LaunchPlan* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetLaunchPlan(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetLaunchPlan( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>*>( + ::grpc::Service::experimental().GetHandler(9)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetActiveLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetActiveLaunchPlan() { + ::grpc::Service::experimental().MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ActiveLaunchPlanRequest* request, + ::flyteidl::admin::LaunchPlan* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetActiveLaunchPlan(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetActiveLaunchPlan( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>*>( + ::grpc::Service::experimental().GetHandler(10)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetActiveLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListActiveLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListActiveLaunchPlans() { + ::grpc::Service::experimental().MarkMethodCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, + ::flyteidl::admin::LaunchPlanList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListActiveLaunchPlans(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListActiveLaunchPlans( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>*>( + ::grpc::Service::experimental().GetHandler(11)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListActiveLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListLaunchPlanIds() { + ::grpc::Service::experimental().MarkMethodCallback(12, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, + ::flyteidl::admin::NamedEntityIdentifierList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListLaunchPlanIds(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListLaunchPlanIds( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>*>( + ::grpc::Service::experimental().GetHandler(12)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListLaunchPlans() { + ::grpc::Service::experimental().MarkMethodCallback(13, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ResourceListRequest* request, + ::flyteidl::admin::LaunchPlanList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListLaunchPlans(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListLaunchPlans( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>*>( + ::grpc::Service::experimental().GetHandler(13)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateLaunchPlan() { + ::grpc::Service::experimental().MarkMethodCallback(14, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::LaunchPlanUpdateRequest* request, + ::flyteidl::admin::LaunchPlanUpdateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateLaunchPlan(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateLaunchPlan( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>*>( + ::grpc::Service::experimental().GetHandler(14)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateExecution() { + ::grpc::Service::experimental().MarkMethodCallback(15, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ExecutionCreateRequest* request, + ::flyteidl::admin::ExecutionCreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>*>( + ::grpc::Service::experimental().GetHandler(15)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_RelaunchExecution() { + ::grpc::Service::experimental().MarkMethodCallback(16, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ExecutionRelaunchRequest* request, + ::flyteidl::admin::ExecutionCreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->RelaunchExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_RelaunchExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>*>( + ::grpc::Service::experimental().GetHandler(16)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_RecoverExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_RecoverExecution() { + ::grpc::Service::experimental().MarkMethodCallback(17, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ExecutionRecoverRequest* request, + ::flyteidl::admin::ExecutionCreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->RecoverExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_RecoverExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>*>( + ::grpc::Service::experimental().GetHandler(17)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_RecoverExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetExecution() { + ::grpc::Service::experimental().MarkMethodCallback(18, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowExecutionGetRequest* request, + ::flyteidl::admin::Execution* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>*>( + ::grpc::Service::experimental().GetHandler(18)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateExecution() { + ::grpc::Service::experimental().MarkMethodCallback(19, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ExecutionUpdateRequest* request, + ::flyteidl::admin::ExecutionUpdateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>*>( + ::grpc::Service::experimental().GetHandler(19)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetExecutionData() { + ::grpc::Service::experimental().MarkMethodCallback(20, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, + ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetExecutionData(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetExecutionData( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>*>( + ::grpc::Service::experimental().GetHandler(20)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListExecutions() { + ::grpc::Service::experimental().MarkMethodCallback(21, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ResourceListRequest* request, + ::flyteidl::admin::ExecutionList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListExecutions(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListExecutions( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>*>( + ::grpc::Service::experimental().GetHandler(21)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_TerminateExecution() { + ::grpc::Service::experimental().MarkMethodCallback(22, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ExecutionTerminateRequest* request, + ::flyteidl::admin::ExecutionTerminateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->TerminateExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_TerminateExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>*>( + ::grpc::Service::experimental().GetHandler(22)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetNodeExecution() { + ::grpc::Service::experimental().MarkMethodCallback(23, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NodeExecutionGetRequest* request, + ::flyteidl::admin::NodeExecution* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetNodeExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetNodeExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>*>( + ::grpc::Service::experimental().GetHandler(23)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListNodeExecutions() { + ::grpc::Service::experimental().MarkMethodCallback(24, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NodeExecutionListRequest* request, + ::flyteidl::admin::NodeExecutionList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListNodeExecutions(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListNodeExecutions( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>*>( + ::grpc::Service::experimental().GetHandler(24)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListNodeExecutionsForTask() { + ::grpc::Service::experimental().MarkMethodCallback(25, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, + ::flyteidl::admin::NodeExecutionList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListNodeExecutionsForTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListNodeExecutionsForTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>*>( + ::grpc::Service::experimental().GetHandler(25)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetNodeExecutionData() { + ::grpc::Service::experimental().MarkMethodCallback(26, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NodeExecutionGetDataRequest* request, + ::flyteidl::admin::NodeExecutionGetDataResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetNodeExecutionData(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetNodeExecutionData( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>*>( + ::grpc::Service::experimental().GetHandler(26)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_RegisterProject() { + ::grpc::Service::experimental().MarkMethodCallback(27, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectRegisterRequest* request, + ::flyteidl::admin::ProjectRegisterResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->RegisterProject(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_RegisterProject( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>*>( + ::grpc::Service::experimental().GetHandler(27)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateProject() { + ::grpc::Service::experimental().MarkMethodCallback(28, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::Project* request, + ::flyteidl::admin::ProjectUpdateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateProject(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateProject( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>*>( + ::grpc::Service::experimental().GetHandler(28)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListProjects() { + ::grpc::Service::experimental().MarkMethodCallback(29, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectListRequest* request, + ::flyteidl::admin::Projects* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListProjects(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListProjects( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>*>( + ::grpc::Service::experimental().GetHandler(29)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateWorkflowEvent() { + ::grpc::Service::experimental().MarkMethodCallback(30, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowExecutionEventRequest* request, + ::flyteidl::admin::WorkflowExecutionEventResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateWorkflowEvent(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateWorkflowEvent( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>*>( + ::grpc::Service::experimental().GetHandler(30)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateNodeEvent() { + ::grpc::Service::experimental().MarkMethodCallback(31, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NodeExecutionEventRequest* request, + ::flyteidl::admin::NodeExecutionEventResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateNodeEvent(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateNodeEvent( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>*>( + ::grpc::Service::experimental().GetHandler(31)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateTaskEvent() { + ::grpc::Service::experimental().MarkMethodCallback(32, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::TaskExecutionEventRequest* request, + ::flyteidl::admin::TaskExecutionEventResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateTaskEvent(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateTaskEvent( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>*>( + ::grpc::Service::experimental().GetHandler(32)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTaskExecution() { + ::grpc::Service::experimental().MarkMethodCallback(33, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::TaskExecutionGetRequest* request, + ::flyteidl::admin::TaskExecution* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTaskExecution(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTaskExecution( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>*>( + ::grpc::Service::experimental().GetHandler(33)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListTaskExecutions() { + ::grpc::Service::experimental().MarkMethodCallback(34, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::TaskExecutionListRequest* request, + ::flyteidl::admin::TaskExecutionList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListTaskExecutions(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListTaskExecutions( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>*>( + ::grpc::Service::experimental().GetHandler(34)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTaskExecutionData() { + ::grpc::Service::experimental().MarkMethodCallback(35, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::TaskExecutionGetDataRequest* request, + ::flyteidl::admin::TaskExecutionGetDataResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTaskExecutionData(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTaskExecutionData( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>*>( + ::grpc::Service::experimental().GetHandler(35)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateProjectDomainAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(36, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, + ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateProjectDomainAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateProjectDomainAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>*>( + ::grpc::Service::experimental().GetHandler(36)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetProjectDomainAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(37, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, + ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetProjectDomainAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetProjectDomainAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>*>( + ::grpc::Service::experimental().GetHandler(37)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DeleteProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DeleteProjectDomainAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(38, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, + ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DeleteProjectDomainAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DeleteProjectDomainAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>*>( + ::grpc::Service::experimental().GetHandler(38)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateProjectAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(39, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, + ::flyteidl::admin::ProjectAttributesUpdateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateProjectAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateProjectAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>*>( + ::grpc::Service::experimental().GetHandler(39)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetProjectAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(40, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectAttributesGetRequest* request, + ::flyteidl::admin::ProjectAttributesGetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetProjectAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetProjectAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>*>( + ::grpc::Service::experimental().GetHandler(40)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DeleteProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DeleteProjectAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(41, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, + ::flyteidl::admin::ProjectAttributesDeleteResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DeleteProjectAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DeleteProjectAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>*>( + ::grpc::Service::experimental().GetHandler(41)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateWorkflowAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(42, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, + ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateWorkflowAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateWorkflowAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>*>( + ::grpc::Service::experimental().GetHandler(42)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetWorkflowAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(43, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowAttributesGetRequest* request, + ::flyteidl::admin::WorkflowAttributesGetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetWorkflowAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetWorkflowAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>*>( + ::grpc::Service::experimental().GetHandler(43)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DeleteWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DeleteWorkflowAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(44, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, + ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DeleteWorkflowAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DeleteWorkflowAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>*>( + ::grpc::Service::experimental().GetHandler(44)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListMatchableAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListMatchableAttributes() { + ::grpc::Service::experimental().MarkMethodCallback(45, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ListMatchableAttributesRequest* request, + ::flyteidl::admin::ListMatchableAttributesResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListMatchableAttributes(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListMatchableAttributes( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>*>( + ::grpc::Service::experimental().GetHandler(45)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListMatchableAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListNamedEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListNamedEntities() { + ::grpc::Service::experimental().MarkMethodCallback(46, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NamedEntityListRequest* request, + ::flyteidl::admin::NamedEntityList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListNamedEntities(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListNamedEntities( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>*>( + ::grpc::Service::experimental().GetHandler(46)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListNamedEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetNamedEntity() { + ::grpc::Service::experimental().MarkMethodCallback(47, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NamedEntityGetRequest* request, + ::flyteidl::admin::NamedEntity* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetNamedEntity(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetNamedEntity( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>*>( + ::grpc::Service::experimental().GetHandler(47)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_UpdateNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UpdateNamedEntity() { + ::grpc::Service::experimental().MarkMethodCallback(48, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::NamedEntityUpdateRequest* request, + ::flyteidl::admin::NamedEntityUpdateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UpdateNamedEntity(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UpdateNamedEntity( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>*>( + ::grpc::Service::experimental().GetHandler(48)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UpdateNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetVersion : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetVersion() { + ::grpc::Service::experimental().MarkMethodCallback(49, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::GetVersionRequest* request, + ::flyteidl::admin::GetVersionResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetVersion(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetVersion( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>*>( + ::grpc::Service::experimental().GetHandler(49)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetVersion() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetDescriptionEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetDescriptionEntity() { + ::grpc::Service::experimental().MarkMethodCallback(50, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::ObjectGetRequest* request, + ::flyteidl::admin::DescriptionEntity* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetDescriptionEntity(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetDescriptionEntity( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>*>( + ::grpc::Service::experimental().GetHandler(50)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetDescriptionEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListDescriptionEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListDescriptionEntities() { + ::grpc::Service::experimental().MarkMethodCallback(51, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::DescriptionEntityListRequest* request, + ::flyteidl::admin::DescriptionEntityList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListDescriptionEntities(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListDescriptionEntities( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>*>( + ::grpc::Service::experimental().GetHandler(51)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListDescriptionEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetExecutionMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetExecutionMetrics() { + ::grpc::Service::experimental().MarkMethodCallback(52, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, + ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetExecutionMetrics(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetExecutionMetrics( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>*>( + ::grpc::Service::experimental().GetHandler(52)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetExecutionMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ExperimentalCallbackService; + template + class WithGenericMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateTask() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTask() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListTaskIds() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListTasks() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetWorkflow() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListWorkflows() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetActiveLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetActiveLaunchPlan() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_GetActiveLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListActiveLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListActiveLaunchPlans() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_ListActiveLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodGeneric(12); + } + ~WithGenericMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodGeneric(13); + } + ~WithGenericMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodGeneric(14); + } + ~WithGenericMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateExecution() { + ::grpc::Service::MarkMethodGeneric(15); + } + ~WithGenericMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodGeneric(16); + } + ~WithGenericMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RecoverExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_RecoverExecution() { + ::grpc::Service::MarkMethodGeneric(17); + } + ~WithGenericMethod_RecoverExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetExecution() { + ::grpc::Service::MarkMethodGeneric(18); + } + ~WithGenericMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateExecution() { + ::grpc::Service::MarkMethodGeneric(19); + } + ~WithGenericMethod_UpdateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetExecutionData() { + ::grpc::Service::MarkMethodGeneric(20); + } + ~WithGenericMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListExecutions() { + ::grpc::Service::MarkMethodGeneric(21); + } + ~WithGenericMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_TerminateExecution() { + ::grpc::Service::MarkMethodGeneric(22); + } + ~WithGenericMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodGeneric(23); + } + ~WithGenericMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodGeneric(24); + } + ~WithGenericMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodGeneric(25); + } + ~WithGenericMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodGeneric(26); + } + ~WithGenericMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_RegisterProject() { + ::grpc::Service::MarkMethodGeneric(27); + } + ~WithGenericMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateProject() { + ::grpc::Service::MarkMethodGeneric(28); + } + ~WithGenericMethod_UpdateProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListProjects() { + ::grpc::Service::MarkMethodGeneric(29); + } + ~WithGenericMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodGeneric(30); + } + ~WithGenericMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodGeneric(31); + } + ~WithGenericMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodGeneric(32); + } + ~WithGenericMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodGeneric(33); + } + ~WithGenericMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodGeneric(34); + } + ~WithGenericMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodGeneric(35); + } + ~WithGenericMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateProjectDomainAttributes() { + ::grpc::Service::MarkMethodGeneric(36); + } + ~WithGenericMethod_UpdateProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetProjectDomainAttributes() { + ::grpc::Service::MarkMethodGeneric(37); + } + ~WithGenericMethod_GetProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DeleteProjectDomainAttributes() { + ::grpc::Service::MarkMethodGeneric(38); + } + ~WithGenericMethod_DeleteProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateProjectAttributes() { + ::grpc::Service::MarkMethodGeneric(39); + } + ~WithGenericMethod_UpdateProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetProjectAttributes() { + ::grpc::Service::MarkMethodGeneric(40); + } + ~WithGenericMethod_GetProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DeleteProjectAttributes() { + ::grpc::Service::MarkMethodGeneric(41); + } + ~WithGenericMethod_DeleteProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateWorkflowAttributes() { + ::grpc::Service::MarkMethodGeneric(42); + } + ~WithGenericMethod_UpdateWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetWorkflowAttributes() { + ::grpc::Service::MarkMethodGeneric(43); + } + ~WithGenericMethod_GetWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DeleteWorkflowAttributes() { + ::grpc::Service::MarkMethodGeneric(44); + } + ~WithGenericMethod_DeleteWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListMatchableAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListMatchableAttributes() { + ::grpc::Service::MarkMethodGeneric(45); + } + ~WithGenericMethod_ListMatchableAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListNamedEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListNamedEntities() { + ::grpc::Service::MarkMethodGeneric(46); + } + ~WithGenericMethod_ListNamedEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetNamedEntity() { + ::grpc::Service::MarkMethodGeneric(47); + } + ~WithGenericMethod_GetNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateNamedEntity() { + ::grpc::Service::MarkMethodGeneric(48); + } + ~WithGenericMethod_UpdateNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetVersion : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetVersion() { + ::grpc::Service::MarkMethodGeneric(49); + } + ~WithGenericMethod_GetVersion() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetDescriptionEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetDescriptionEntity() { + ::grpc::Service::MarkMethodGeneric(50); + } + ~WithGenericMethod_GetDescriptionEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListDescriptionEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListDescriptionEntities() { + ::grpc::Service::MarkMethodGeneric(51); + } + ~WithGenericMethod_ListDescriptionEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetExecutionMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetExecutionMetrics() { + ::grpc::Service::MarkMethodGeneric(52); + } + ~WithGenericMethod_GetExecutionMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateTask() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTask() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListTaskIds() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskIds(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListTasks() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTasks(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflow(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetWorkflow() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWorkflow(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflowIds(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListWorkflows() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflows(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetActiveLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetActiveLaunchPlan() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_GetActiveLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetActiveLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListActiveLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListActiveLaunchPlans() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_ListActiveLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListActiveLaunchPlans(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodRaw(12); + } + ~WithRawMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlanIds(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodRaw(13); + } + ~WithRawMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlans(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodRaw(14); + } + ~WithRawMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateExecution() { + ::grpc::Service::MarkMethodRaw(15); + } + ~WithRawMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodRaw(16); + } + ~WithRawMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRelaunchExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RecoverExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_RecoverExecution() { + ::grpc::Service::MarkMethodRaw(17); + } + ~WithRawMethod_RecoverExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRecoverExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetExecution() { + ::grpc::Service::MarkMethodRaw(18); + } + ~WithRawMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateExecution() { + ::grpc::Service::MarkMethodRaw(19); + } + ~WithRawMethod_UpdateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetExecutionData() { + ::grpc::Service::MarkMethodRaw(20); + } + ~WithRawMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecutionData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListExecutions() { + ::grpc::Service::MarkMethodRaw(21); + } + ~WithRawMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListExecutions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_TerminateExecution() { + ::grpc::Service::MarkMethodRaw(22); + } + ~WithRawMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTerminateExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodRaw(23); + } + ~WithRawMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodRaw(24); + } + ~WithRawMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodRaw(25); + } + ~WithRawMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutionsForTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodRaw(26); + } + ~WithRawMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecutionData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_RegisterProject() { + ::grpc::Service::MarkMethodRaw(27); + } + ~WithRawMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRegisterProject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateProject() { + ::grpc::Service::MarkMethodRaw(28); + } + ~WithRawMethod_UpdateProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateProject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListProjects() { + ::grpc::Service::MarkMethodRaw(29); + } + ~WithRawMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProjects(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodRaw(30); + } + ~WithRawMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflowEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodRaw(31); + } + ~WithRawMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateNodeEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodRaw(32); + } + ~WithRawMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTaskEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(32, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodRaw(33); + } + ~WithRawMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodRaw(34); + } + ~WithRawMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskExecutions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodRaw(35); + } + ~WithRawMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecutionData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(35, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateProjectDomainAttributes() { + ::grpc::Service::MarkMethodRaw(36); + } + ~WithRawMethod_UpdateProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetProjectDomainAttributes() { + ::grpc::Service::MarkMethodRaw(37); + } + ~WithRawMethod_GetProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DeleteProjectDomainAttributes() { + ::grpc::Service::MarkMethodRaw(38); + } + ~WithRawMethod_DeleteProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateProjectAttributes() { + ::grpc::Service::MarkMethodRaw(39); + } + ~WithRawMethod_UpdateProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateProjectAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetProjectAttributes() { + ::grpc::Service::MarkMethodRaw(40); + } + ~WithRawMethod_GetProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetProjectAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(40, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DeleteProjectAttributes() { + ::grpc::Service::MarkMethodRaw(41); + } + ~WithRawMethod_DeleteProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteProjectAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(41, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateWorkflowAttributes() { + ::grpc::Service::MarkMethodRaw(42); + } + ~WithRawMethod_UpdateWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(42, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetWorkflowAttributes() { + ::grpc::Service::MarkMethodRaw(43); + } + ~WithRawMethod_GetWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(43, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DeleteWorkflowAttributes() { + ::grpc::Service::MarkMethodRaw(44); + } + ~WithRawMethod_DeleteWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(44, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListMatchableAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListMatchableAttributes() { + ::grpc::Service::MarkMethodRaw(45); + } + ~WithRawMethod_ListMatchableAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListMatchableAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(45, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListNamedEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListNamedEntities() { + ::grpc::Service::MarkMethodRaw(46); + } + ~WithRawMethod_ListNamedEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNamedEntities(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(46, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetNamedEntity() { + ::grpc::Service::MarkMethodRaw(47); + } + ~WithRawMethod_GetNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNamedEntity(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(47, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateNamedEntity() { + ::grpc::Service::MarkMethodRaw(48); + } + ~WithRawMethod_UpdateNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateNamedEntity(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(48, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetVersion : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetVersion() { + ::grpc::Service::MarkMethodRaw(49); + } + ~WithRawMethod_GetVersion() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetVersion(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(49, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetDescriptionEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetDescriptionEntity() { + ::grpc::Service::MarkMethodRaw(50); + } + ~WithRawMethod_GetDescriptionEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetDescriptionEntity(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListDescriptionEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListDescriptionEntities() { + ::grpc::Service::MarkMethodRaw(51); + } + ~WithRawMethod_ListDescriptionEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListDescriptionEntities(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetExecutionMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetExecutionMetrics() { + ::grpc::Service::MarkMethodRaw(52); + } + ~WithRawMethod_GetExecutionMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecutionMetrics(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListTaskIds() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListTaskIds(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListTaskIds(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListTasks() { + ::grpc::Service::experimental().MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListTasks(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListTasks(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateWorkflow() { + ::grpc::Service::experimental().MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateWorkflow(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateWorkflow(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetWorkflow() { + ::grpc::Service::experimental().MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetWorkflow(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetWorkflow(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListWorkflowIds() { + ::grpc::Service::experimental().MarkMethodRawCallback(6, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListWorkflowIds(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListWorkflowIds(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListWorkflows() { + ::grpc::Service::experimental().MarkMethodRawCallback(7, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListWorkflows(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListWorkflows(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateLaunchPlan() { + ::grpc::Service::experimental().MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateLaunchPlan(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetLaunchPlan() { + ::grpc::Service::experimental().MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetLaunchPlan(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetActiveLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetActiveLaunchPlan() { + ::grpc::Service::experimental().MarkMethodRawCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetActiveLaunchPlan(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetActiveLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetActiveLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListActiveLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListActiveLaunchPlans() { + ::grpc::Service::experimental().MarkMethodRawCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListActiveLaunchPlans(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListActiveLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListActiveLaunchPlans(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListLaunchPlanIds() { + ::grpc::Service::experimental().MarkMethodRawCallback(12, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListLaunchPlanIds(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListLaunchPlanIds(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListLaunchPlans() { + ::grpc::Service::experimental().MarkMethodRawCallback(13, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListLaunchPlans(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListLaunchPlans(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateLaunchPlan() { + ::grpc::Service::experimental().MarkMethodRawCallback(14, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateLaunchPlan(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(15, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_RelaunchExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(16, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->RelaunchExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void RelaunchExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_RecoverExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_RecoverExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(17, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->RecoverExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_RecoverExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void RecoverExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(18, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(19, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetExecutionData() { + ::grpc::Service::experimental().MarkMethodRawCallback(20, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetExecutionData(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetExecutionData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListExecutions() { + ::grpc::Service::experimental().MarkMethodRawCallback(21, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListExecutions(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListExecutions(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_TerminateExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(22, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->TerminateExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void TerminateExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetNodeExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(23, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetNodeExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetNodeExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListNodeExecutions() { + ::grpc::Service::experimental().MarkMethodRawCallback(24, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListNodeExecutions(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListNodeExecutions(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListNodeExecutionsForTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(25, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListNodeExecutionsForTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetNodeExecutionData() { + ::grpc::Service::experimental().MarkMethodRawCallback(26, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetNodeExecutionData(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetNodeExecutionData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_RegisterProject() { + ::grpc::Service::experimental().MarkMethodRawCallback(27, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->RegisterProject(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void RegisterProject(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateProject() { + ::grpc::Service::experimental().MarkMethodRawCallback(28, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateProject(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateProject(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListProjects() { + ::grpc::Service::experimental().MarkMethodRawCallback(29, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListProjects(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListProjects(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateWorkflowEvent() { + ::grpc::Service::experimental().MarkMethodRawCallback(30, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateWorkflowEvent(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateWorkflowEvent(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateNodeEvent() { + ::grpc::Service::experimental().MarkMethodRawCallback(31, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateNodeEvent(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateNodeEvent(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateTaskEvent() { + ::grpc::Service::experimental().MarkMethodRawCallback(32, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateTaskEvent(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTaskEvent(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTaskExecution() { + ::grpc::Service::experimental().MarkMethodRawCallback(33, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTaskExecution(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListTaskExecutions() { + ::grpc::Service::experimental().MarkMethodRawCallback(34, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListTaskExecutions(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListTaskExecutions(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTaskExecutionData() { + ::grpc::Service::experimental().MarkMethodRawCallback(35, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTaskExecutionData(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTaskExecutionData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateProjectDomainAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(36, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateProjectDomainAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetProjectDomainAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(37, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetProjectDomainAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetProjectDomainAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DeleteProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DeleteProjectDomainAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(38, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->DeleteProjectDomainAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DeleteProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateProjectAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(39, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateProjectAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateProjectAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetProjectAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(40, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetProjectAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetProjectAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DeleteProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DeleteProjectAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(41, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->DeleteProjectAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DeleteProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteProjectAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateWorkflowAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(42, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateWorkflowAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetWorkflowAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(43, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetWorkflowAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetWorkflowAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DeleteWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DeleteWorkflowAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(44, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->DeleteWorkflowAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DeleteWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListMatchableAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListMatchableAttributes() { + ::grpc::Service::experimental().MarkMethodRawCallback(45, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListMatchableAttributes(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListMatchableAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListMatchableAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListNamedEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListNamedEntities() { + ::grpc::Service::experimental().MarkMethodRawCallback(46, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListNamedEntities(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListNamedEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListNamedEntities(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetNamedEntity() { + ::grpc::Service::experimental().MarkMethodRawCallback(47, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetNamedEntity(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetNamedEntity(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_UpdateNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UpdateNamedEntity() { + ::grpc::Service::experimental().MarkMethodRawCallback(48, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UpdateNamedEntity(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UpdateNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UpdateNamedEntity(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetVersion : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetVersion() { + ::grpc::Service::experimental().MarkMethodRawCallback(49, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetVersion(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetVersion() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetVersion(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetDescriptionEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetDescriptionEntity() { + ::grpc::Service::experimental().MarkMethodRawCallback(50, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetDescriptionEntity(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetDescriptionEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetDescriptionEntity(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListDescriptionEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListDescriptionEntities() { + ::grpc::Service::experimental().MarkMethodRawCallback(51, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListDescriptionEntities(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListDescriptionEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListDescriptionEntities(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetExecutionMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetExecutionMetrics() { + ::grpc::Service::experimental().MarkMethodRawCallback(52, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetExecutionMetrics(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetExecutionMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetExecutionMetrics(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateTask() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskCreateRequest,::flyteidl::admin::TaskCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTask() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::Task>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListTaskIds() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListTaskIds::StreamedListTaskIds, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListTaskIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListTasks() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>(std::bind(&WithStreamedUnaryMethod_ListTasks::StreamedListTasks, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListTasks(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::TaskList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateWorkflow::StreamedCreateWorkflow, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateWorkflow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowCreateRequest,::flyteidl::admin::WorkflowCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetWorkflow() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>(std::bind(&WithStreamedUnaryMethod_GetWorkflow::StreamedGetWorkflow, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetWorkflow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::Workflow>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListWorkflowIds::StreamedListWorkflowIds, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListWorkflowIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListWorkflows() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>(std::bind(&WithStreamedUnaryMethod_ListWorkflows::StreamedListWorkflows, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListWorkflows(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::WorkflowList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateLaunchPlan::StreamedCreateLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::LaunchPlanCreateRequest,::flyteidl::admin::LaunchPlanCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>(std::bind(&WithStreamedUnaryMethod_GetLaunchPlan::StreamedGetLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::LaunchPlan>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetActiveLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetActiveLaunchPlan() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>(std::bind(&WithStreamedUnaryMethod_GetActiveLaunchPlan::StreamedGetActiveLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetActiveLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetActiveLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ActiveLaunchPlanRequest,::flyteidl::admin::LaunchPlan>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListActiveLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListActiveLaunchPlans() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>(std::bind(&WithStreamedUnaryMethod_ListActiveLaunchPlans::StreamedListActiveLaunchPlans, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListActiveLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListActiveLaunchPlans(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ActiveLaunchPlanListRequest,::flyteidl::admin::LaunchPlanList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodStreamed(12, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListLaunchPlanIds::StreamedListLaunchPlanIds, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListLaunchPlanIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodStreamed(13, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>(std::bind(&WithStreamedUnaryMethod_ListLaunchPlans::StreamedListLaunchPlans, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListLaunchPlans(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::LaunchPlanList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodStreamed(14, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateLaunchPlan::StreamedUpdateLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::LaunchPlanUpdateRequest,::flyteidl::admin::LaunchPlanUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateExecution() { + ::grpc::Service::MarkMethodStreamed(15, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateExecution::StreamedCreateExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionCreateRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodStreamed(16, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_RelaunchExecution::StreamedRelaunchExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRelaunchExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionRelaunchRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RecoverExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_RecoverExecution() { + ::grpc::Service::MarkMethodStreamed(17, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_RecoverExecution::StreamedRecoverExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_RecoverExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRecoverExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionRecoverRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetExecution() { + ::grpc::Service::MarkMethodStreamed(18, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>(std::bind(&WithStreamedUnaryMethod_GetExecution::StreamedGetExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetRequest,::flyteidl::admin::Execution>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateExecution() { + ::grpc::Service::MarkMethodStreamed(19, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateExecution::StreamedUpdateExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionUpdateRequest,::flyteidl::admin::ExecutionUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetExecutionData() { + ::grpc::Service::MarkMethodStreamed(20, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetExecutionData::StreamedGetExecutionData, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetDataRequest,::flyteidl::admin::WorkflowExecutionGetDataResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListExecutions() { + ::grpc::Service::MarkMethodStreamed(21, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>(std::bind(&WithStreamedUnaryMethod_ListExecutions::StreamedListExecutions, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::ExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_TerminateExecution() { + ::grpc::Service::MarkMethodStreamed(22, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>(std::bind(&WithStreamedUnaryMethod_TerminateExecution::StreamedTerminateExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedTerminateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionTerminateRequest,::flyteidl::admin::ExecutionTerminateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodStreamed(23, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>(std::bind(&WithStreamedUnaryMethod_GetNodeExecution::StreamedGetNodeExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetNodeExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionGetRequest,::flyteidl::admin::NodeExecution>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodStreamed(24, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>(std::bind(&WithStreamedUnaryMethod_ListNodeExecutions::StreamedListNodeExecutions, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListNodeExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionListRequest,::flyteidl::admin::NodeExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodStreamed(25, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>(std::bind(&WithStreamedUnaryMethod_ListNodeExecutionsForTask::StreamedListNodeExecutionsForTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListNodeExecutionsForTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionForTaskListRequest,::flyteidl::admin::NodeExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodStreamed(26, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetNodeExecutionData::StreamedGetNodeExecutionData, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetNodeExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionGetDataRequest,::flyteidl::admin::NodeExecutionGetDataResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_RegisterProject() { + ::grpc::Service::MarkMethodStreamed(27, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>(std::bind(&WithStreamedUnaryMethod_RegisterProject::StreamedRegisterProject, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRegisterProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectRegisterRequest,::flyteidl::admin::ProjectRegisterResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateProject() { + ::grpc::Service::MarkMethodStreamed(28, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateProject::StreamedUpdateProject, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::Project,::flyteidl::admin::ProjectUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListProjects() { + ::grpc::Service::MarkMethodStreamed(29, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>(std::bind(&WithStreamedUnaryMethod_ListProjects::StreamedListProjects, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListProjects(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectListRequest,::flyteidl::admin::Projects>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodStreamed(30, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateWorkflowEvent::StreamedCreateWorkflowEvent, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateWorkflowEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionEventRequest,::flyteidl::admin::WorkflowExecutionEventResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodStreamed(31, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateNodeEvent::StreamedCreateNodeEvent, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateNodeEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionEventRequest,::flyteidl::admin::NodeExecutionEventResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodStreamed(32, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateTaskEvent::StreamedCreateTaskEvent, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateTaskEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionEventRequest,::flyteidl::admin::TaskExecutionEventResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodStreamed(33, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>(std::bind(&WithStreamedUnaryMethod_GetTaskExecution::StreamedGetTaskExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTaskExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionGetRequest,::flyteidl::admin::TaskExecution>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodStreamed(34, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>(std::bind(&WithStreamedUnaryMethod_ListTaskExecutions::StreamedListTaskExecutions, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListTaskExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionListRequest,::flyteidl::admin::TaskExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodStreamed(35, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetTaskExecutionData::StreamedGetTaskExecutionData, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTaskExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionGetDataRequest,::flyteidl::admin::TaskExecutionGetDataResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateProjectDomainAttributes() { + ::grpc::Service::MarkMethodStreamed(36, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateProjectDomainAttributes::StreamedUpdateProjectDomainAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest,::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetProjectDomainAttributes() { + ::grpc::Service::MarkMethodStreamed(37, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>(std::bind(&WithStreamedUnaryMethod_GetProjectDomainAttributes::StreamedGetProjectDomainAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectDomainAttributesGetRequest,::flyteidl::admin::ProjectDomainAttributesGetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteProjectDomainAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DeleteProjectDomainAttributes() { + ::grpc::Service::MarkMethodStreamed(38, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteProjectDomainAttributes::StreamedDeleteProjectDomainAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_DeleteProjectDomainAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest,::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateProjectAttributes() { + ::grpc::Service::MarkMethodStreamed(39, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateProjectAttributes::StreamedUpdateProjectAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateProjectAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectAttributesUpdateRequest,::flyteidl::admin::ProjectAttributesUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetProjectAttributes() { + ::grpc::Service::MarkMethodStreamed(40, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>(std::bind(&WithStreamedUnaryMethod_GetProjectAttributes::StreamedGetProjectAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetProjectAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectAttributesGetRequest,::flyteidl::admin::ProjectAttributesGetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteProjectAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DeleteProjectAttributes() { + ::grpc::Service::MarkMethodStreamed(41, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteProjectAttributes::StreamedDeleteProjectAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_DeleteProjectAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteProjectAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectAttributesDeleteRequest,::flyteidl::admin::ProjectAttributesDeleteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateWorkflowAttributes() { + ::grpc::Service::MarkMethodStreamed(42, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateWorkflowAttributes::StreamedUpdateWorkflowAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowAttributesUpdateRequest,::flyteidl::admin::WorkflowAttributesUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetWorkflowAttributes() { + ::grpc::Service::MarkMethodStreamed(43, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>(std::bind(&WithStreamedUnaryMethod_GetWorkflowAttributes::StreamedGetWorkflowAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowAttributesGetRequest,::flyteidl::admin::WorkflowAttributesGetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteWorkflowAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DeleteWorkflowAttributes() { + ::grpc::Service::MarkMethodStreamed(44, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteWorkflowAttributes::StreamedDeleteWorkflowAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_DeleteWorkflowAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowAttributesDeleteRequest,::flyteidl::admin::WorkflowAttributesDeleteResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListMatchableAttributes : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListMatchableAttributes() { + ::grpc::Service::MarkMethodStreamed(45, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>(std::bind(&WithStreamedUnaryMethod_ListMatchableAttributes::StreamedListMatchableAttributes, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListMatchableAttributes() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListMatchableAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ListMatchableAttributesRequest,::flyteidl::admin::ListMatchableAttributesResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListNamedEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListNamedEntities() { + ::grpc::Service::MarkMethodStreamed(46, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>(std::bind(&WithStreamedUnaryMethod_ListNamedEntities::StreamedListNamedEntities, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListNamedEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListNamedEntities(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityListRequest,::flyteidl::admin::NamedEntityList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetNamedEntity() { + ::grpc::Service::MarkMethodStreamed(47, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>(std::bind(&WithStreamedUnaryMethod_GetNamedEntity::StreamedGetNamedEntity, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetNamedEntity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityGetRequest,::flyteidl::admin::NamedEntity>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateNamedEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateNamedEntity() { + ::grpc::Service::MarkMethodStreamed(48, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateNamedEntity::StreamedUpdateNamedEntity, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateNamedEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateNamedEntity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityUpdateRequest,::flyteidl::admin::NamedEntityUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetVersion : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetVersion() { + ::grpc::Service::MarkMethodStreamed(49, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>(std::bind(&WithStreamedUnaryMethod_GetVersion::StreamedGetVersion, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetVersion() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetVersion(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetVersionRequest,::flyteidl::admin::GetVersionResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetDescriptionEntity : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetDescriptionEntity() { + ::grpc::Service::MarkMethodStreamed(50, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>(std::bind(&WithStreamedUnaryMethod_GetDescriptionEntity::StreamedGetDescriptionEntity, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetDescriptionEntity() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetDescriptionEntity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::DescriptionEntity>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListDescriptionEntities : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListDescriptionEntities() { + ::grpc::Service::MarkMethodStreamed(51, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>(std::bind(&WithStreamedUnaryMethod_ListDescriptionEntities::StreamedListDescriptionEntities, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListDescriptionEntities() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListDescriptionEntities(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::DescriptionEntityListRequest,::flyteidl::admin::DescriptionEntityList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetExecutionMetrics : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetExecutionMetrics() { + ::grpc::Service::MarkMethodStreamed(52, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>(std::bind(&WithStreamedUnaryMethod_GetExecutionMetrics::StreamedGetExecutionMetrics, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetExecutionMetrics() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetExecutionMetrics(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest,::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc new file mode 100644 index 0000000000..efbf98757c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc @@ -0,0 +1,351 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +#include "flyteidl/service/admin.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace service { +} // namespace service +} // namespace flyteidl +void InitDefaults_flyteidl_2fservice_2fadmin_2eproto() { +} + +constexpr ::google::protobuf::Metadata* file_level_metadata_flyteidl_2fservice_2fadmin_2eproto = nullptr; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fadmin_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fadmin_2eproto = nullptr; +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fadmin_2eproto::offsets[1] = {}; +static constexpr ::google::protobuf::internal::MigrationSchema* schemas = nullptr; +static constexpr ::google::protobuf::Message* const* file_default_instances = nullptr; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fadmin_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fadmin_2eproto, "flyteidl/service/admin.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fadmin_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fadmin_2eproto, 0, file_level_enum_descriptors_flyteidl_2fservice_2fadmin_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fadmin_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fadmin_2eproto[] = + "\n\034flyteidl/service/admin.proto\022\020flyteidl" + ".service\032\034google/api/annotations.proto\032\034" + "flyteidl/admin/project.proto\032.flyteidl/a" + "dmin/project_domain_attributes.proto\032\'fl" + "yteidl/admin/project_attributes.proto\032\031f" + "lyteidl/admin/task.proto\032\035flyteidl/admin" + "/workflow.proto\032(flyteidl/admin/workflow" + "_attributes.proto\032 flyteidl/admin/launch" + "_plan.proto\032\032flyteidl/admin/event.proto\032" + "\036flyteidl/admin/execution.proto\032\'flyteid" + "l/admin/matchable_resource.proto\032#flytei" + "dl/admin/node_execution.proto\032#flyteidl/" + "admin/task_execution.proto\032\034flyteidl/adm" + "in/version.proto\032\033flyteidl/admin/common." + "proto\032\'flyteidl/admin/description_entity" + ".proto2\204N\n\014AdminService\022m\n\nCreateTask\022!." + "flyteidl.admin.TaskCreateRequest\032\".flyte" + "idl.admin.TaskCreateResponse\"\030\202\323\344\223\002\022\"\r/a" + "pi/v1/tasks:\001*\022\210\001\n\007GetTask\022 .flyteidl.ad" + "min.ObjectGetRequest\032\024.flyteidl.admin.Ta" + "sk\"E\202\323\344\223\002\?\022=/api/v1/tasks/{id.project}/{" + "id.domain}/{id.name}/{id.version}\022\227\001\n\013Li" + "stTaskIds\0220.flyteidl.admin.NamedEntityId" + "entifierListRequest\032).flyteidl.admin.Nam" + "edEntityIdentifierList\"+\202\323\344\223\002%\022#/api/v1/" + "task_ids/{project}/{domain}\022\256\001\n\tListTask" + "s\022#.flyteidl.admin.ResourceListRequest\032\030" + ".flyteidl.admin.TaskList\"b\202\323\344\223\002\\\0220/api/v" + "1/tasks/{id.project}/{id.domain}/{id.nam" + "e}Z(\022&/api/v1/tasks/{id.project}/{id.dom" + "ain}\022}\n\016CreateWorkflow\022%.flyteidl.admin." + "WorkflowCreateRequest\032&.flyteidl.admin.W" + "orkflowCreateResponse\"\034\202\323\344\223\002\026\"\021/api/v1/w" + "orkflows:\001*\022\224\001\n\013GetWorkflow\022 .flyteidl.a" + "dmin.ObjectGetRequest\032\030.flyteidl.admin.W" + "orkflow\"I\202\323\344\223\002C\022A/api/v1/workflows/{id.p" + "roject}/{id.domain}/{id.name}/{id.versio" + "n}\022\237\001\n\017ListWorkflowIds\0220.flyteidl.admin." + "NamedEntityIdentifierListRequest\032).flyte" + "idl.admin.NamedEntityIdentifierList\"/\202\323\344" + "\223\002)\022\'/api/v1/workflow_ids/{project}/{dom" + "ain}\022\276\001\n\rListWorkflows\022#.flyteidl.admin." + "ResourceListRequest\032\034.flyteidl.admin.Wor" + "kflowList\"j\202\323\344\223\002d\0224/api/v1/workflows/{id" + ".project}/{id.domain}/{id.name}Z,\022*/api/" + "v1/workflows/{id.project}/{id.domain}\022\206\001" + "\n\020CreateLaunchPlan\022\'.flyteidl.admin.Laun" + "chPlanCreateRequest\032(.flyteidl.admin.Lau" + "nchPlanCreateResponse\"\037\202\323\344\223\002\031\"\024/api/v1/l" + "aunch_plans:\001*\022\233\001\n\rGetLaunchPlan\022 .flyte" + "idl.admin.ObjectGetRequest\032\032.flyteidl.ad" + "min.LaunchPlan\"L\202\323\344\223\002F\022D/api/v1/launch_p" + "lans/{id.project}/{id.domain}/{id.name}/" + "{id.version}\022\242\001\n\023GetActiveLaunchPlan\022\'.f" + "lyteidl.admin.ActiveLaunchPlanRequest\032\032." + "flyteidl.admin.LaunchPlan\"F\202\323\344\223\002@\022>/api/" + "v1/active_launch_plans/{id.project}/{id." + "domain}/{id.name}\022\234\001\n\025ListActiveLaunchPl" + "ans\022+.flyteidl.admin.ActiveLaunchPlanLis" + "tRequest\032\036.flyteidl.admin.LaunchPlanList" + "\"6\202\323\344\223\0020\022./api/v1/active_launch_plans/{p" + "roject}/{domain}\022\244\001\n\021ListLaunchPlanIds\0220" + ".flyteidl.admin.NamedEntityIdentifierLis" + "tRequest\032).flyteidl.admin.NamedEntityIde" + "ntifierList\"2\202\323\344\223\002,\022*/api/v1/launch_plan" + "_ids/{project}/{domain}\022\310\001\n\017ListLaunchPl" + "ans\022#.flyteidl.admin.ResourceListRequest" + "\032\036.flyteidl.admin.LaunchPlanList\"p\202\323\344\223\002j" + "\0227/api/v1/launch_plans/{id.project}/{id." + "domain}/{id.name}Z/\022-/api/v1/launch_plan" + "s/{id.project}/{id.domain}\022\266\001\n\020UpdateLau" + "nchPlan\022\'.flyteidl.admin.LaunchPlanUpdat" + "eRequest\032(.flyteidl.admin.LaunchPlanUpda" + "teResponse\"O\202\323\344\223\002I\032D/api/v1/launch_plans" + "/{id.project}/{id.domain}/{id.name}/{id." + "version}:\001*\022\201\001\n\017CreateExecution\022&.flytei" + "dl.admin.ExecutionCreateRequest\032\'.flytei" + "dl.admin.ExecutionCreateResponse\"\035\202\323\344\223\002\027" + "\"\022/api/v1/executions:\001*\022\216\001\n\021RelaunchExec" + "ution\022(.flyteidl.admin.ExecutionRelaunch" + "Request\032\'.flyteidl.admin.ExecutionCreate" + "Response\"&\202\323\344\223\002 \"\033/api/v1/executions/rel" + "aunch:\001*\022\213\001\n\020RecoverExecution\022\'.flyteidl" + ".admin.ExecutionRecoverRequest\032\'.flyteid" + "l.admin.ExecutionCreateResponse\"%\202\323\344\223\002\037\"" + "\032/api/v1/executions/recover:\001*\022\225\001\n\014GetEx" + "ecution\022+.flyteidl.admin.WorkflowExecuti" + "onGetRequest\032\031.flyteidl.admin.Execution\"" + "=\202\323\344\223\0027\0225/api/v1/executions/{id.project}" + "/{id.domain}/{id.name}\022\244\001\n\017UpdateExecuti" + "on\022&.flyteidl.admin.ExecutionUpdateReque" + "st\032\'.flyteidl.admin.ExecutionUpdateRespo" + "nse\"@\202\323\344\223\002:\0325/api/v1/executions/{id.proj" + "ect}/{id.domain}/{id.name}:\001*\022\271\001\n\020GetExe" + "cutionData\022/.flyteidl.admin.WorkflowExec" + "utionGetDataRequest\0320.flyteidl.admin.Wor" + "kflowExecutionGetDataResponse\"B\202\323\344\223\002<\022:/" + "api/v1/data/executions/{id.project}/{id." + "domain}/{id.name}\022\211\001\n\016ListExecutions\022#.f" + "lyteidl.admin.ResourceListRequest\032\035.flyt" + "eidl.admin.ExecutionList\"3\202\323\344\223\002-\022+/api/v" + "1/executions/{id.project}/{id.domain}\022\255\001" + "\n\022TerminateExecution\022).flyteidl.admin.Ex" + "ecutionTerminateRequest\032*.flyteidl.admin" + ".ExecutionTerminateResponse\"@\202\323\344\223\002:*5/ap" + "i/v1/executions/{id.project}/{id.domain}" + "/{id.name}:\001*\022\322\001\n\020GetNodeExecution\022\'.fly" + "teidl.admin.NodeExecutionGetRequest\032\035.fl" + "yteidl.admin.NodeExecution\"v\202\323\344\223\002p\022n/api" + "/v1/node_executions/{id.execution_id.pro" + "ject}/{id.execution_id.domain}/{id.execu" + "tion_id.name}/{id.node_id}\022\336\001\n\022ListNodeE" + "xecutions\022(.flyteidl.admin.NodeExecution" + "ListRequest\032!.flyteidl.admin.NodeExecuti" + "onList\"{\202\323\344\223\002u\022s/api/v1/node_executions/" + "{workflow_execution_id.project}/{workflo" + "w_execution_id.domain}/{workflow_executi" + "on_id.name}\022\245\004\n\031ListNodeExecutionsForTas" + "k\022/.flyteidl.admin.NodeExecutionForTaskL" + "istRequest\032!.flyteidl.admin.NodeExecutio" + "nList\"\263\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_" + "executions/{task_execution_id.node_execu" + "tion_id.execution_id.project}/{task_exec" + "ution_id.node_execution_id.execution_id." + "domain}/{task_execution_id.node_executio" + "n_id.execution_id.name}/{task_execution_" + "id.node_execution_id.node_id}/{task_exec" + "ution_id.task_id.project}/{task_executio" + "n_id.task_id.domain}/{task_execution_id." + "task_id.name}/{task_execution_id.task_id" + ".version}/{task_execution_id.retry_attem" + "pt}\022\356\001\n\024GetNodeExecutionData\022+.flyteidl." + "admin.NodeExecutionGetDataRequest\032,.flyt" + "eidl.admin.NodeExecutionGetDataResponse\"" + "{\202\323\344\223\002u\022s/api/v1/data/node_executions/{i" + "d.execution_id.project}/{id.execution_id" + ".domain}/{id.execution_id.name}/{id.node" + "_id}\022\177\n\017RegisterProject\022&.flyteidl.admin" + ".ProjectRegisterRequest\032\'.flyteidl.admin" + ".ProjectRegisterResponse\"\033\202\323\344\223\002\025\"\020/api/v" + "1/projects:\001*\022q\n\rUpdateProject\022\027.flyteid" + "l.admin.Project\032%.flyteidl.admin.Project" + "UpdateResponse\" \202\323\344\223\002\032\032\025/api/v1/projects" + "/{id}:\001*\022f\n\014ListProjects\022\".flyteidl.admi" + "n.ProjectListRequest\032\030.flyteidl.admin.Pr" + "ojects\"\030\202\323\344\223\002\022\022\020/api/v1/projects\022\231\001\n\023Cre" + "ateWorkflowEvent\022-.flyteidl.admin.Workfl" + "owExecutionEventRequest\032..flyteidl.admin" + ".WorkflowExecutionEventResponse\"#\202\323\344\223\002\035\"" + "\030/api/v1/events/workflows:\001*\022\211\001\n\017CreateN" + "odeEvent\022).flyteidl.admin.NodeExecutionE" + "ventRequest\032*.flyteidl.admin.NodeExecuti" + "onEventResponse\"\037\202\323\344\223\002\031\"\024/api/v1/events/" + "nodes:\001*\022\211\001\n\017CreateTaskEvent\022).flyteidl." + "admin.TaskExecutionEventRequest\032*.flytei" + "dl.admin.TaskExecutionEventResponse\"\037\202\323\344" + "\223\002\031\"\024/api/v1/events/tasks:\001*\022\200\003\n\020GetTask" + "Execution\022\'.flyteidl.admin.TaskExecution" + "GetRequest\032\035.flyteidl.admin.TaskExecutio" + "n\"\243\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{i" + "d.node_execution_id.execution_id.project" + "}/{id.node_execution_id.execution_id.dom" + "ain}/{id.node_execution_id.execution_id." + "name}/{id.node_execution_id.node_id}/{id" + ".task_id.project}/{id.task_id.domain}/{i" + "d.task_id.name}/{id.task_id.version}/{id" + ".retry_attempt}\022\230\002\n\022ListTaskExecutions\022(" + ".flyteidl.admin.TaskExecutionListRequest" + "\032!.flyteidl.admin.TaskExecutionList\"\264\001\202\323" + "\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_ex" + "ecution_id.execution_id.project}/{node_e" + "xecution_id.execution_id.domain}/{node_e" + "xecution_id.execution_id.name}/{node_exe" + "cution_id.node_id}\022\234\003\n\024GetTaskExecutionD" + "ata\022+.flyteidl.admin.TaskExecutionGetDat" + "aRequest\032,.flyteidl.admin.TaskExecutionG" + "etDataResponse\"\250\002\202\323\344\223\002\241\002\022\236\002/api/v1/data/" + "task_executions/{id.node_execution_id.ex" + "ecution_id.project}/{id.node_execution_i" + "d.execution_id.domain}/{id.node_executio" + "n_id.execution_id.name}/{id.node_executi" + "on_id.node_id}/{id.task_id.project}/{id." + "task_id.domain}/{id.task_id.name}/{id.ta" + "sk_id.version}/{id.retry_attempt}\022\343\001\n\035Up" + "dateProjectDomainAttributes\0224.flyteidl.a" + "dmin.ProjectDomainAttributesUpdateReques" + "t\0325.flyteidl.admin.ProjectDomainAttribut" + "esUpdateResponse\"U\202\323\344\223\002O\032J/api/v1/projec" + "t_domain_attributes/{attributes.project}" + "/{attributes.domain}:\001*\022\301\001\n\032GetProjectDo" + "mainAttributes\0221.flyteidl.admin.ProjectD" + "omainAttributesGetRequest\0322.flyteidl.adm" + "in.ProjectDomainAttributesGetResponse\"<\202" + "\323\344\223\0026\0224/api/v1/project_domain_attributes" + "/{project}/{domain}\022\315\001\n\035DeleteProjectDom" + "ainAttributes\0224.flyteidl.admin.ProjectDo" + "mainAttributesDeleteRequest\0325.flyteidl.a" + "dmin.ProjectDomainAttributesDeleteRespon" + "se\"\?\202\323\344\223\0029*4/api/v1/project_domain_attri" + "butes/{project}/{domain}:\001*\022\266\001\n\027UpdatePr" + "ojectAttributes\022..flyteidl.admin.Project" + "AttributesUpdateRequest\032/.flyteidl.admin" + ".ProjectAttributesUpdateResponse\":\202\323\344\223\0024" + "\032//api/v1/project_attributes/{attributes" + ".project}:\001*\022\237\001\n\024GetProjectAttributes\022+." + "flyteidl.admin.ProjectAttributesGetReque" + "st\032,.flyteidl.admin.ProjectAttributesGet" + "Response\",\202\323\344\223\002&\022$/api/v1/project_attrib" + "utes/{project}\022\253\001\n\027DeleteProjectAttribut" + "es\022..flyteidl.admin.ProjectAttributesDel" + "eteRequest\032/.flyteidl.admin.ProjectAttri" + "butesDeleteResponse\"/\202\323\344\223\002)*$/api/v1/pro" + "ject_attributes/{project}:\001*\022\344\001\n\030UpdateW" + "orkflowAttributes\022/.flyteidl.admin.Workf" + "lowAttributesUpdateRequest\0320.flyteidl.ad" + "min.WorkflowAttributesUpdateResponse\"e\202\323" + "\344\223\002_\032Z/api/v1/workflow_attributes/{attri" + "butes.project}/{attributes.domain}/{attr" + "ibutes.workflow}:\001*\022\267\001\n\025GetWorkflowAttri" + "butes\022,.flyteidl.admin.WorkflowAttribute" + "sGetRequest\032-.flyteidl.admin.WorkflowAtt" + "ributesGetResponse\"A\202\323\344\223\002;\0229/api/v1/work" + "flow_attributes/{project}/{domain}/{work" + "flow}\022\303\001\n\030DeleteWorkflowAttributes\022/.fly" + "teidl.admin.WorkflowAttributesDeleteRequ" + "est\0320.flyteidl.admin.WorkflowAttributesD" + "eleteResponse\"D\202\323\344\223\002>*9/api/v1/workflow_" + "attributes/{project}/{domain}/{workflow}" + ":\001*\022\240\001\n\027ListMatchableAttributes\022..flytei" + "dl.admin.ListMatchableAttributesRequest\032" + "/.flyteidl.admin.ListMatchableAttributes" + "Response\"$\202\323\344\223\002\036\022\034/api/v1/matchable_attr" + "ibutes\022\237\001\n\021ListNamedEntities\022&.flyteidl." + "admin.NamedEntityListRequest\032\037.flyteidl." + "admin.NamedEntityList\"A\202\323\344\223\002;\0229/api/v1/n" + "amed_entities/{resource_type}/{project}/" + "{domain}\022\247\001\n\016GetNamedEntity\022%.flyteidl.a" + "dmin.NamedEntityGetRequest\032\033.flyteidl.ad" + "min.NamedEntity\"Q\202\323\344\223\002K\022I/api/v1/named_e" + "ntities/{resource_type}/{id.project}/{id" + ".domain}/{id.name}\022\276\001\n\021UpdateNamedEntity" + "\022(.flyteidl.admin.NamedEntityUpdateReque" + "st\032).flyteidl.admin.NamedEntityUpdateRes" + "ponse\"T\202\323\344\223\002N\032I/api/v1/named_entities/{r" + "esource_type}/{id.project}/{id.domain}/{" + "id.name}:\001*\022l\n\nGetVersion\022!.flyteidl.adm" + "in.GetVersionRequest\032\".flyteidl.admin.Ge" + "tVersionResponse\"\027\202\323\344\223\002\021\022\017/api/v1/versio" + "n\022\304\001\n\024GetDescriptionEntity\022 .flyteidl.ad" + "min.ObjectGetRequest\032!.flyteidl.admin.De" + "scriptionEntity\"g\202\323\344\223\002a\022_/api/v1/descrip" + "tion_entities/{id.resource_type}/{id.pro" + "ject}/{id.domain}/{id.name}/{id.version}" + "\022\222\002\n\027ListDescriptionEntities\022,.flyteidl." + "admin.DescriptionEntityListRequest\032%.fly" + "teidl.admin.DescriptionEntityList\"\241\001\202\323\344\223" + "\002\232\001\022O/api/v1/description_entities/{resou" + "rce_type}/{id.project}/{id.domain}/{id.n" + "ame}ZG\022E/api/v1/description_entities/{re" + "source_type}/{id.project}/{id.domain}\022\305\001" + "\n\023GetExecutionMetrics\0222.flyteidl.admin.W" + "orkflowExecutionGetMetricsRequest\0323.flyt" + "eidl.admin.WorkflowExecutionGetMetricsRe" + "sponse\"E\202\323\344\223\002\?\022=/api/v1/metrics/executio" + "ns/{id.project}/{id.domain}/{id.name}B9Z" + "7github.com/flyteorg/flyteidl/gen/pb-go/" + "flyteidl/serviceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fadmin_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fadmin_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fadmin_2eproto, + "flyteidl/service/admin.proto", &assign_descriptors_table_flyteidl_2fservice_2fadmin_2eproto, 10664, +}; + +void AddDescriptors_flyteidl_2fservice_2fadmin_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[16] = + { + ::AddDescriptors_google_2fapi_2fannotations_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fproject_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2ftask_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fevent_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fversion_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fadmin_2eproto, deps, 16); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fadmin_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fadmin_2eproto(); return true; }(); +namespace flyteidl { +namespace service { + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h new file mode 100644 index 0000000000..ca8c835a94 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fadmin_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fadmin_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include "google/api/annotations.pb.h" +#include "flyteidl/admin/project.pb.h" +#include "flyteidl/admin/project_domain_attributes.pb.h" +#include "flyteidl/admin/project_attributes.pb.h" +#include "flyteidl/admin/task.pb.h" +#include "flyteidl/admin/workflow.pb.h" +#include "flyteidl/admin/workflow_attributes.pb.h" +#include "flyteidl/admin/launch_plan.pb.h" +#include "flyteidl/admin/event.pb.h" +#include "flyteidl/admin/execution.pb.h" +#include "flyteidl/admin/matchable_resource.pb.h" +#include "flyteidl/admin/node_execution.pb.h" +#include "flyteidl/admin/task_execution.pb.h" +#include "flyteidl/admin/version.pb.h" +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/admin/description_entity.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fadmin_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fadmin_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fadmin_2eproto(); +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fadmin_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc new file mode 100644 index 0000000000..d3505f4ce8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc @@ -0,0 +1,169 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/agent.proto + +#include "flyteidl/service/agent.pb.h" +#include "flyteidl/service/agent.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* AsyncAgentService_method_names[] = { + "/flyteidl.service.AsyncAgentService/CreateTask", + "/flyteidl.service.AsyncAgentService/GetTask", + "/flyteidl.service.AsyncAgentService/DeleteTask", +}; + +std::unique_ptr< AsyncAgentService::Stub> AsyncAgentService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AsyncAgentService::Stub> stub(new AsyncAgentService::Stub(channel)); + return stub; +} + +AsyncAgentService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateTask_(AsyncAgentService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTask_(AsyncAgentService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteTask_(AsyncAgentService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AsyncAgentService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncAgentService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::CreateTaskResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncAgentService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::CreateTaskResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); +} + +::grpc::Status AsyncAgentService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncAgentService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncAgentService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); +} + +::grpc::Status AsyncAgentService::Stub::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTask_, context, request, response); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncAgentService::Stub::AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DeleteTaskResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncAgentService::Stub::PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DeleteTaskResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); +} + +AsyncAgentService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>( + std::mem_fn(&AsyncAgentService::Service::CreateTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>( + std::mem_fn(&AsyncAgentService::Service::GetTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AsyncAgentService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>( + std::mem_fn(&AsyncAgentService::Service::DeleteTask), this))); +} + +AsyncAgentService::Service::~Service() { +} + +::grpc::Status AsyncAgentService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AsyncAgentService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AsyncAgentService::Service::DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h new file mode 100644 index 0000000000..16b36b249a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h @@ -0,0 +1,587 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/agent.proto +#ifndef GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED + +#include "flyteidl/service/agent.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// AgentService defines an RPC Service that allows propeller to send the request to the agent server. +class AsyncAgentService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.AsyncAgentService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Send a task create request to the agent server. + virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + // Get job status. + virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + // Delete the task resource. + virtual ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>>(AsyncDeleteTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Send a task create request to the agent server. + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Get job status. + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Delete the task resource. + virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>>(AsyncDeleteTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) override; + void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) override; + void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetTask_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteTask_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Send a task create request to the agent server. + virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response); + // Get job status. + virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response); + // Delete the task resource. + virtual ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response); + }; + template + class WithAsyncMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateTask() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::admin::CreateTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::CreateTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTask() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::admin::GetTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DeleteTask() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteTask(::grpc::ServerContext* context, ::flyteidl::admin::DeleteTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::DeleteTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateTask > > AsyncService; + template + class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::CreateTaskRequest* request, + ::flyteidl::admin::CreateTaskResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::GetTaskRequest* request, + ::flyteidl::admin::GetTaskResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DeleteTask() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::DeleteTaskRequest* request, + ::flyteidl::admin::DeleteTaskResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DeleteTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DeleteTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateTask > > ExperimentalCallbackService; + template + class WithGenericMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateTask() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTask() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DeleteTask() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateTask() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTask() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DeleteTask() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DeleteTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->DeleteTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateTask() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::CreateTaskRequest,::flyteidl::admin::CreateTaskResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTask() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetTaskRequest,::flyteidl::admin::GetTaskResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DeleteTask() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>(std::bind(&WithStreamedUnaryMethod_DeleteTask::StreamedDeleteTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::DeleteTaskRequest,::flyteidl::admin::DeleteTaskResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateTask > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateTask > > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc new file mode 100644 index 0000000000..e4b6c0ebb1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/agent.proto + +#include "flyteidl/service/agent.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace service { +} // namespace service +} // namespace flyteidl +void InitDefaults_flyteidl_2fservice_2fagent_2eproto() { +} + +constexpr ::google::protobuf::Metadata* file_level_metadata_flyteidl_2fservice_2fagent_2eproto = nullptr; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fagent_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fagent_2eproto = nullptr; +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fagent_2eproto::offsets[1] = {}; +static constexpr ::google::protobuf::internal::MigrationSchema* schemas = nullptr; +static constexpr ::google::protobuf::Message* const* file_default_instances = nullptr; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fagent_2eproto, "flyteidl/service/agent.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fagent_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fagent_2eproto, 0, file_level_enum_descriptors_flyteidl_2fservice_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fagent_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto[] = + "\n\034flyteidl/service/agent.proto\022\020flyteidl" + ".service\032\032flyteidl/admin/agent.proto2\217\002\n" + "\021AsyncAgentService\022U\n\nCreateTask\022!.flyte" + "idl.admin.CreateTaskRequest\032\".flyteidl.a" + "dmin.CreateTaskResponse\"\000\022L\n\007GetTask\022\036.f" + "lyteidl.admin.GetTaskRequest\032\037.flyteidl." + "admin.GetTaskResponse\"\000\022U\n\nDeleteTask\022!." + "flyteidl.admin.DeleteTaskRequest\032\".flyte" + "idl.admin.DeleteTaskResponse\"\000B9Z7github" + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + "l/serviceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fagent_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fagent_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto, + "flyteidl/service/agent.proto", &assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto, 417, +}; + +void AddDescriptors_flyteidl_2fservice_2fagent_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_flyteidl_2fadmin_2fagent_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fagent_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fagent_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fagent_2eproto(); return true; }(); +namespace flyteidl { +namespace service { + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h new file mode 100644 index 0000000000..367d5b767e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/agent.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include "flyteidl/admin/agent.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fagent_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fagent_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fagent_2eproto(); +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.cc new file mode 100644 index 0000000000..c56ddb445d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.cc @@ -0,0 +1,127 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/auth.proto + +#include "flyteidl/service/auth.pb.h" +#include "flyteidl/service/auth.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* AuthMetadataService_method_names[] = { + "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", + "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", +}; + +std::unique_ptr< AuthMetadataService::Stub> AuthMetadataService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AuthMetadataService::Stub> stub(new AuthMetadataService::Stub(channel)); + return stub; +} + +AuthMetadataService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetOAuth2Metadata_(AuthMetadataService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetPublicClientConfig_(AuthMetadataService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AuthMetadataService::Stub::GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::flyteidl::service::OAuth2MetadataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOAuth2Metadata_, context, request, response); +} + +void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, std::move(f)); +} + +void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, std::move(f)); +} + +void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, reactor); +} + +void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* AuthMetadataService::Stub::AsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::OAuth2MetadataResponse>::Create(channel_.get(), cq, rpcmethod_GetOAuth2Metadata_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* AuthMetadataService::Stub::PrepareAsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::OAuth2MetadataResponse>::Create(channel_.get(), cq, rpcmethod_GetOAuth2Metadata_, context, request, false); +} + +::grpc::Status AuthMetadataService::Stub::GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::flyteidl::service::PublicClientAuthConfigResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPublicClientConfig_, context, request, response); +} + +void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, std::move(f)); +} + +void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, std::move(f)); +} + +void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, reactor); +} + +void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* AuthMetadataService::Stub::AsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::PublicClientAuthConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetPublicClientConfig_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* AuthMetadataService::Stub::PrepareAsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::PublicClientAuthConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetPublicClientConfig_, context, request, false); +} + +AuthMetadataService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AuthMetadataService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AuthMetadataService::Service, ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>( + std::mem_fn(&AuthMetadataService::Service::GetOAuth2Metadata), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AuthMetadataService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AuthMetadataService::Service, ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>( + std::mem_fn(&AuthMetadataService::Service::GetPublicClientConfig), this))); +} + +AuthMetadataService::Service::~Service() { +} + +::grpc::Status AuthMetadataService::Service::GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AuthMetadataService::Service::GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.h new file mode 100644 index 0000000000..756b4eaa03 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.h @@ -0,0 +1,428 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/auth.proto +#ifndef GRPC_flyteidl_2fservice_2fauth_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fauth_2eproto__INCLUDED + +#include "flyteidl/service/auth.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// The following defines an RPC service that is also served over HTTP via grpc-gateway. +// Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go +// RPCs defined in this service must be anonymously accessible. +class AuthMetadataService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.AuthMetadataService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + virtual ::grpc::Status GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::flyteidl::service::OAuth2MetadataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>> AsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>>(AsyncGetOAuth2MetadataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>> PrepareAsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>>(PrepareAsyncGetOAuth2MetadataRaw(context, request, cq)); + } + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + virtual ::grpc::Status GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::flyteidl::service::PublicClientAuthConfigResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>> AsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>>(AsyncGetPublicClientConfigRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>> PrepareAsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>>(PrepareAsyncGetPublicClientConfigRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) = 0; + virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) = 0; + virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) = 0; + virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) = 0; + virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>* AsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>* PrepareAsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>* AsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>* PrepareAsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::flyteidl::service::OAuth2MetadataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>> AsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>>(AsyncGetOAuth2MetadataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>> PrepareAsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>>(PrepareAsyncGetOAuth2MetadataRaw(context, request, cq)); + } + ::grpc::Status GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>> AsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>>(AsyncGetPublicClientConfigRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>> PrepareAsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>>(PrepareAsyncGetPublicClientConfigRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) override; + void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) override; + void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) override; + void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) override; + void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* AsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* PrepareAsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* AsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* PrepareAsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetOAuth2Metadata_; + const ::grpc::internal::RpcMethod rpcmethod_GetPublicClientConfig_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + virtual ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response); + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + virtual ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response); + }; + template + class WithAsyncMethod_GetOAuth2Metadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetOAuth2Metadata() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetOAuth2Metadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOAuth2Metadata(::grpc::ServerContext* context, ::flyteidl::service::OAuth2MetadataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::OAuth2MetadataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetPublicClientConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetPublicClientConfig() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetPublicClientConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPublicClientConfig(::grpc::ServerContext* context, ::flyteidl::service::PublicClientAuthConfigRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::PublicClientAuthConfigResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetOAuth2Metadata > AsyncService; + template + class ExperimentalWithCallbackMethod_GetOAuth2Metadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetOAuth2Metadata() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::OAuth2MetadataRequest* request, + ::flyteidl::service::OAuth2MetadataResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetOAuth2Metadata(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetOAuth2Metadata( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetOAuth2Metadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetPublicClientConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetPublicClientConfig() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::PublicClientAuthConfigRequest* request, + ::flyteidl::service::PublicClientAuthConfigResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetPublicClientConfig(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetPublicClientConfig( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetPublicClientConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_GetOAuth2Metadata > ExperimentalCallbackService; + template + class WithGenericMethod_GetOAuth2Metadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetOAuth2Metadata() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetOAuth2Metadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetPublicClientConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetPublicClientConfig() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetPublicClientConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetOAuth2Metadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetOAuth2Metadata() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetOAuth2Metadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOAuth2Metadata(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetPublicClientConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetPublicClientConfig() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetPublicClientConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetPublicClientConfig(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_GetOAuth2Metadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetOAuth2Metadata() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetOAuth2Metadata(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetOAuth2Metadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOAuth2Metadata(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetPublicClientConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetPublicClientConfig() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetPublicClientConfig(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetPublicClientConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetPublicClientConfig(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_GetOAuth2Metadata : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetOAuth2Metadata() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>(std::bind(&WithStreamedUnaryMethod_GetOAuth2Metadata::StreamedGetOAuth2Metadata, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetOAuth2Metadata() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetOAuth2Metadata(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::OAuth2MetadataRequest,::flyteidl::service::OAuth2MetadataResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetPublicClientConfig : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetPublicClientConfig() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>(std::bind(&WithStreamedUnaryMethod_GetPublicClientConfig::StreamedGetPublicClientConfig, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetPublicClientConfig() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetPublicClientConfig(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::PublicClientAuthConfigRequest,::flyteidl::service::PublicClientAuthConfigResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetOAuth2Metadata > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetOAuth2Metadata > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fauth_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.cc new file mode 100644 index 0000000000..e1fa458ebb --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.cc @@ -0,0 +1,2237 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/auth.proto + +#include "flyteidl/service/auth.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace service { +class OAuth2MetadataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _OAuth2MetadataRequest_default_instance_; +class OAuth2MetadataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _OAuth2MetadataResponse_default_instance_; +class PublicClientAuthConfigRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PublicClientAuthConfigRequest_default_instance_; +class PublicClientAuthConfigResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PublicClientAuthConfigResponse_default_instance_; +} // namespace service +} // namespace flyteidl +static void InitDefaultsOAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_OAuth2MetadataRequest_default_instance_; + new (ptr) ::flyteidl::service::OAuth2MetadataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::OAuth2MetadataRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto}, {}}; + +static void InitDefaultsOAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_OAuth2MetadataResponse_default_instance_; + new (ptr) ::flyteidl::service::OAuth2MetadataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::OAuth2MetadataResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto}, {}}; + +static void InitDefaultsPublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_PublicClientAuthConfigRequest_default_instance_; + new (ptr) ::flyteidl::service::PublicClientAuthConfigRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::PublicClientAuthConfigRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto}, {}}; + +static void InitDefaultsPublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_PublicClientAuthConfigResponse_default_instance_; + new (ptr) ::flyteidl::service::PublicClientAuthConfigResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::PublicClientAuthConfigResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto}, {}}; + +void InitDefaults_flyteidl_2fservice_2fauth_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_OAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fauth_2eproto[4]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fauth_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fauth_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fauth_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, issuer_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, authorization_endpoint_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, token_endpoint_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, response_types_supported_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, scopes_supported_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, token_endpoint_auth_methods_supported_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, jwks_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, code_challenge_methods_supported_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, grant_types_supported_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, device_authorization_endpoint_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, client_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, redirect_uri_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, scopes_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, authorization_metadata_key_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, service_http_endpoint_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, audience_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::service::OAuth2MetadataRequest)}, + { 5, -1, sizeof(::flyteidl::service::OAuth2MetadataResponse)}, + { 20, -1, sizeof(::flyteidl::service::PublicClientAuthConfigRequest)}, + { 25, -1, sizeof(::flyteidl::service::PublicClientAuthConfigResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::service::_OAuth2MetadataRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_OAuth2MetadataResponse_default_instance_), + reinterpret_cast(&::flyteidl::service::_PublicClientAuthConfigRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_PublicClientAuthConfigResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fauth_2eproto, "flyteidl/service/auth.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fauth_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fauth_2eproto, 4, file_level_enum_descriptors_flyteidl_2fservice_2fauth_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fauth_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fauth_2eproto[] = + "\n\033flyteidl/service/auth.proto\022\020flyteidl." + "service\032\034google/api/annotations.proto\"\027\n" + "\025OAuth2MetadataRequest\"\315\002\n\026OAuth2Metadat" + "aResponse\022\016\n\006issuer\030\001 \001(\t\022\036\n\026authorizati" + "on_endpoint\030\002 \001(\t\022\026\n\016token_endpoint\030\003 \001(" + "\t\022 \n\030response_types_supported\030\004 \003(\t\022\030\n\020s" + "copes_supported\030\005 \003(\t\022-\n%token_endpoint_" + "auth_methods_supported\030\006 \003(\t\022\020\n\010jwks_uri" + "\030\007 \001(\t\022(\n code_challenge_methods_support" + "ed\030\010 \003(\t\022\035\n\025grant_types_supported\030\t \003(\t\022" + "%\n\035device_authorization_endpoint\030\n \001(\t\"\037" + "\n\035PublicClientAuthConfigRequest\"\256\001\n\036Publ" + "icClientAuthConfigResponse\022\021\n\tclient_id\030" + "\001 \001(\t\022\024\n\014redirect_uri\030\002 \001(\t\022\016\n\006scopes\030\003 " + "\003(\t\022\"\n\032authorization_metadata_key\030\004 \001(\t\022" + "\035\n\025service_http_endpoint\030\005 \001(\t\022\020\n\010audien" + "ce\030\006 \001(\t2\315\002\n\023AuthMetadataService\022\227\001\n\021Get" + "OAuth2Metadata\022\'.flyteidl.service.OAuth2" + "MetadataRequest\032(.flyteidl.service.OAuth" + "2MetadataResponse\"/\202\323\344\223\002)\022\'/.well-known/" + "oauth-authorization-server\022\233\001\n\025GetPublic" + "ClientConfig\022/.flyteidl.service.PublicCl" + "ientAuthConfigRequest\0320.flyteidl.service" + ".PublicClientAuthConfigResponse\"\037\202\323\344\223\002\031\022" + "\027/config/v1/flyte_clientB9Z7github.com/f" + "lyteorg/flyteidl/gen/pb-go/flyteidl/serv" + "iceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fauth_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fauth_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fauth_2eproto, + "flyteidl/service/auth.proto", &assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto, 1051, +}; + +void AddDescriptors_flyteidl_2fservice_2fauth_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[1] = + { + ::AddDescriptors_google_2fapi_2fannotations_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fauth_2eproto, deps, 1); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fauth_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fauth_2eproto(); return true; }(); +namespace flyteidl { +namespace service { + +// =================================================================== + +void OAuth2MetadataRequest::InitAsDefaultInstance() { +} +class OAuth2MetadataRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OAuth2MetadataRequest::OAuth2MetadataRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.OAuth2MetadataRequest) +} +OAuth2MetadataRequest::OAuth2MetadataRequest(const OAuth2MetadataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.service.OAuth2MetadataRequest) +} + +void OAuth2MetadataRequest::SharedCtor() { +} + +OAuth2MetadataRequest::~OAuth2MetadataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.OAuth2MetadataRequest) + SharedDtor(); +} + +void OAuth2MetadataRequest::SharedDtor() { +} + +void OAuth2MetadataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const OAuth2MetadataRequest& OAuth2MetadataRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto.base); + return *internal_default_instance(); +} + + +void OAuth2MetadataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.OAuth2MetadataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* OAuth2MetadataRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool OAuth2MetadataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.OAuth2MetadataRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.OAuth2MetadataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.OAuth2MetadataRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void OAuth2MetadataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.OAuth2MetadataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.OAuth2MetadataRequest) +} + +::google::protobuf::uint8* OAuth2MetadataRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.OAuth2MetadataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.OAuth2MetadataRequest) + return target; +} + +size_t OAuth2MetadataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.OAuth2MetadataRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OAuth2MetadataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.OAuth2MetadataRequest) + GOOGLE_DCHECK_NE(&from, this); + const OAuth2MetadataRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.OAuth2MetadataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.OAuth2MetadataRequest) + MergeFrom(*source); + } +} + +void OAuth2MetadataRequest::MergeFrom(const OAuth2MetadataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.OAuth2MetadataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void OAuth2MetadataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.OAuth2MetadataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OAuth2MetadataRequest::CopyFrom(const OAuth2MetadataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.OAuth2MetadataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OAuth2MetadataRequest::IsInitialized() const { + return true; +} + +void OAuth2MetadataRequest::Swap(OAuth2MetadataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void OAuth2MetadataRequest::InternalSwap(OAuth2MetadataRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata OAuth2MetadataRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void OAuth2MetadataResponse::InitAsDefaultInstance() { +} +class OAuth2MetadataResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OAuth2MetadataResponse::kIssuerFieldNumber; +const int OAuth2MetadataResponse::kAuthorizationEndpointFieldNumber; +const int OAuth2MetadataResponse::kTokenEndpointFieldNumber; +const int OAuth2MetadataResponse::kResponseTypesSupportedFieldNumber; +const int OAuth2MetadataResponse::kScopesSupportedFieldNumber; +const int OAuth2MetadataResponse::kTokenEndpointAuthMethodsSupportedFieldNumber; +const int OAuth2MetadataResponse::kJwksUriFieldNumber; +const int OAuth2MetadataResponse::kCodeChallengeMethodsSupportedFieldNumber; +const int OAuth2MetadataResponse::kGrantTypesSupportedFieldNumber; +const int OAuth2MetadataResponse::kDeviceAuthorizationEndpointFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OAuth2MetadataResponse::OAuth2MetadataResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.OAuth2MetadataResponse) +} +OAuth2MetadataResponse::OAuth2MetadataResponse(const OAuth2MetadataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + response_types_supported_(from.response_types_supported_), + scopes_supported_(from.scopes_supported_), + token_endpoint_auth_methods_supported_(from.token_endpoint_auth_methods_supported_), + code_challenge_methods_supported_(from.code_challenge_methods_supported_), + grant_types_supported_(from.grant_types_supported_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + issuer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.issuer().size() > 0) { + issuer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.issuer_); + } + authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.authorization_endpoint().size() > 0) { + authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_endpoint_); + } + token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token_endpoint().size() > 0) { + token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); + } + jwks_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.jwks_uri().size() > 0) { + jwks_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.jwks_uri_); + } + device_authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.device_authorization_endpoint().size() > 0) { + device_authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_authorization_endpoint_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.OAuth2MetadataResponse) +} + +void OAuth2MetadataResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto.base); + issuer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + jwks_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + device_authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +OAuth2MetadataResponse::~OAuth2MetadataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.OAuth2MetadataResponse) + SharedDtor(); +} + +void OAuth2MetadataResponse::SharedDtor() { + issuer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + authorization_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + jwks_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + device_authorization_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OAuth2MetadataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const OAuth2MetadataResponse& OAuth2MetadataResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto.base); + return *internal_default_instance(); +} + + +void OAuth2MetadataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.OAuth2MetadataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + response_types_supported_.Clear(); + scopes_supported_.Clear(); + token_endpoint_auth_methods_supported_.Clear(); + code_challenge_methods_supported_.Clear(); + grant_types_supported_.Clear(); + issuer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + jwks_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + device_authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* OAuth2MetadataResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string issuer = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.issuer"); + object = msg->mutable_issuer(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string authorization_endpoint = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.authorization_endpoint"); + object = msg->mutable_authorization_endpoint(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string token_endpoint = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.token_endpoint"); + object = msg->mutable_token_endpoint(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated string response_types_supported = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.response_types_supported"); + object = msg->add_response_types_supported(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); + break; + } + // repeated string scopes_supported = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.scopes_supported"); + object = msg->add_scopes_supported(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); + break; + } + // repeated string token_endpoint_auth_methods_supported = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported"); + object = msg->add_token_endpoint_auth_methods_supported(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); + break; + } + // string jwks_uri = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.jwks_uri"); + object = msg->mutable_jwks_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated string code_challenge_methods_supported = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported"); + object = msg->add_code_challenge_methods_supported(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 66 && (ptr += 1)); + break; + } + // repeated string grant_types_supported = 9; + case 9: { + if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.grant_types_supported"); + object = msg->add_grant_types_supported(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 74 && (ptr += 1)); + break; + } + // string device_authorization_endpoint = 10; + case 10: { + if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint"); + object = msg->mutable_device_authorization_endpoint(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool OAuth2MetadataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.OAuth2MetadataResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string issuer = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_issuer())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->issuer().data(), static_cast(this->issuer().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.issuer")); + } else { + goto handle_unusual; + } + break; + } + + // string authorization_endpoint = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_authorization_endpoint())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->authorization_endpoint().data(), static_cast(this->authorization_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.authorization_endpoint")); + } else { + goto handle_unusual; + } + break; + } + + // string token_endpoint = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_token_endpoint())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint().data(), static_cast(this->token_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.token_endpoint")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string response_types_supported = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_response_types_supported())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->response_types_supported(this->response_types_supported_size() - 1).data(), + static_cast(this->response_types_supported(this->response_types_supported_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.response_types_supported")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string scopes_supported = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_scopes_supported())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->scopes_supported(this->scopes_supported_size() - 1).data(), + static_cast(this->scopes_supported(this->scopes_supported_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.scopes_supported")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string token_endpoint_auth_methods_supported = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_token_endpoint_auth_methods_supported())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint_auth_methods_supported(this->token_endpoint_auth_methods_supported_size() - 1).data(), + static_cast(this->token_endpoint_auth_methods_supported(this->token_endpoint_auth_methods_supported_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported")); + } else { + goto handle_unusual; + } + break; + } + + // string jwks_uri = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_jwks_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->jwks_uri().data(), static_cast(this->jwks_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.jwks_uri")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string code_challenge_methods_supported = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_code_challenge_methods_supported())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code_challenge_methods_supported(this->code_challenge_methods_supported_size() - 1).data(), + static_cast(this->code_challenge_methods_supported(this->code_challenge_methods_supported_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string grant_types_supported = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_grant_types_supported())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->grant_types_supported(this->grant_types_supported_size() - 1).data(), + static_cast(this->grant_types_supported(this->grant_types_supported_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.grant_types_supported")); + } else { + goto handle_unusual; + } + break; + } + + // string device_authorization_endpoint = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_device_authorization_endpoint())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->device_authorization_endpoint().data(), static_cast(this->device_authorization_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.OAuth2MetadataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.OAuth2MetadataResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void OAuth2MetadataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.OAuth2MetadataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string issuer = 1; + if (this->issuer().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->issuer().data(), static_cast(this->issuer().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.issuer"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->issuer(), output); + } + + // string authorization_endpoint = 2; + if (this->authorization_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->authorization_endpoint().data(), static_cast(this->authorization_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.authorization_endpoint"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->authorization_endpoint(), output); + } + + // string token_endpoint = 3; + if (this->token_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint().data(), static_cast(this->token_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.token_endpoint"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token_endpoint(), output); + } + + // repeated string response_types_supported = 4; + for (int i = 0, n = this->response_types_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->response_types_supported(i).data(), static_cast(this->response_types_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.response_types_supported"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->response_types_supported(i), output); + } + + // repeated string scopes_supported = 5; + for (int i = 0, n = this->scopes_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->scopes_supported(i).data(), static_cast(this->scopes_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.scopes_supported"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 5, this->scopes_supported(i), output); + } + + // repeated string token_endpoint_auth_methods_supported = 6; + for (int i = 0, n = this->token_endpoint_auth_methods_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint_auth_methods_supported(i).data(), static_cast(this->token_endpoint_auth_methods_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 6, this->token_endpoint_auth_methods_supported(i), output); + } + + // string jwks_uri = 7; + if (this->jwks_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->jwks_uri().data(), static_cast(this->jwks_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.jwks_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->jwks_uri(), output); + } + + // repeated string code_challenge_methods_supported = 8; + for (int i = 0, n = this->code_challenge_methods_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code_challenge_methods_supported(i).data(), static_cast(this->code_challenge_methods_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 8, this->code_challenge_methods_supported(i), output); + } + + // repeated string grant_types_supported = 9; + for (int i = 0, n = this->grant_types_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->grant_types_supported(i).data(), static_cast(this->grant_types_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.grant_types_supported"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 9, this->grant_types_supported(i), output); + } + + // string device_authorization_endpoint = 10; + if (this->device_authorization_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->device_authorization_endpoint().data(), static_cast(this->device_authorization_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 10, this->device_authorization_endpoint(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.OAuth2MetadataResponse) +} + +::google::protobuf::uint8* OAuth2MetadataResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.OAuth2MetadataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string issuer = 1; + if (this->issuer().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->issuer().data(), static_cast(this->issuer().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.issuer"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->issuer(), target); + } + + // string authorization_endpoint = 2; + if (this->authorization_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->authorization_endpoint().data(), static_cast(this->authorization_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.authorization_endpoint"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->authorization_endpoint(), target); + } + + // string token_endpoint = 3; + if (this->token_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint().data(), static_cast(this->token_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.token_endpoint"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token_endpoint(), target); + } + + // repeated string response_types_supported = 4; + for (int i = 0, n = this->response_types_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->response_types_supported(i).data(), static_cast(this->response_types_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.response_types_supported"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(4, this->response_types_supported(i), target); + } + + // repeated string scopes_supported = 5; + for (int i = 0, n = this->scopes_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->scopes_supported(i).data(), static_cast(this->scopes_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.scopes_supported"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(5, this->scopes_supported(i), target); + } + + // repeated string token_endpoint_auth_methods_supported = 6; + for (int i = 0, n = this->token_endpoint_auth_methods_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->token_endpoint_auth_methods_supported(i).data(), static_cast(this->token_endpoint_auth_methods_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(6, this->token_endpoint_auth_methods_supported(i), target); + } + + // string jwks_uri = 7; + if (this->jwks_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->jwks_uri().data(), static_cast(this->jwks_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.jwks_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->jwks_uri(), target); + } + + // repeated string code_challenge_methods_supported = 8; + for (int i = 0, n = this->code_challenge_methods_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code_challenge_methods_supported(i).data(), static_cast(this->code_challenge_methods_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(8, this->code_challenge_methods_supported(i), target); + } + + // repeated string grant_types_supported = 9; + for (int i = 0, n = this->grant_types_supported_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->grant_types_supported(i).data(), static_cast(this->grant_types_supported(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.grant_types_supported"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(9, this->grant_types_supported(i), target); + } + + // string device_authorization_endpoint = 10; + if (this->device_authorization_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->device_authorization_endpoint().data(), static_cast(this->device_authorization_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 10, this->device_authorization_endpoint(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.OAuth2MetadataResponse) + return target; +} + +size_t OAuth2MetadataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.OAuth2MetadataResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string response_types_supported = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->response_types_supported_size()); + for (int i = 0, n = this->response_types_supported_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->response_types_supported(i)); + } + + // repeated string scopes_supported = 5; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->scopes_supported_size()); + for (int i = 0, n = this->scopes_supported_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->scopes_supported(i)); + } + + // repeated string token_endpoint_auth_methods_supported = 6; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->token_endpoint_auth_methods_supported_size()); + for (int i = 0, n = this->token_endpoint_auth_methods_supported_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->token_endpoint_auth_methods_supported(i)); + } + + // repeated string code_challenge_methods_supported = 8; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->code_challenge_methods_supported_size()); + for (int i = 0, n = this->code_challenge_methods_supported_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->code_challenge_methods_supported(i)); + } + + // repeated string grant_types_supported = 9; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->grant_types_supported_size()); + for (int i = 0, n = this->grant_types_supported_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->grant_types_supported(i)); + } + + // string issuer = 1; + if (this->issuer().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->issuer()); + } + + // string authorization_endpoint = 2; + if (this->authorization_endpoint().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->authorization_endpoint()); + } + + // string token_endpoint = 3; + if (this->token_endpoint().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token_endpoint()); + } + + // string jwks_uri = 7; + if (this->jwks_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->jwks_uri()); + } + + // string device_authorization_endpoint = 10; + if (this->device_authorization_endpoint().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->device_authorization_endpoint()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void OAuth2MetadataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.OAuth2MetadataResponse) + GOOGLE_DCHECK_NE(&from, this); + const OAuth2MetadataResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.OAuth2MetadataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.OAuth2MetadataResponse) + MergeFrom(*source); + } +} + +void OAuth2MetadataResponse::MergeFrom(const OAuth2MetadataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.OAuth2MetadataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + response_types_supported_.MergeFrom(from.response_types_supported_); + scopes_supported_.MergeFrom(from.scopes_supported_); + token_endpoint_auth_methods_supported_.MergeFrom(from.token_endpoint_auth_methods_supported_); + code_challenge_methods_supported_.MergeFrom(from.code_challenge_methods_supported_); + grant_types_supported_.MergeFrom(from.grant_types_supported_); + if (from.issuer().size() > 0) { + + issuer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.issuer_); + } + if (from.authorization_endpoint().size() > 0) { + + authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_endpoint_); + } + if (from.token_endpoint().size() > 0) { + + token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); + } + if (from.jwks_uri().size() > 0) { + + jwks_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.jwks_uri_); + } + if (from.device_authorization_endpoint().size() > 0) { + + device_authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_authorization_endpoint_); + } +} + +void OAuth2MetadataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.OAuth2MetadataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OAuth2MetadataResponse::CopyFrom(const OAuth2MetadataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.OAuth2MetadataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OAuth2MetadataResponse::IsInitialized() const { + return true; +} + +void OAuth2MetadataResponse::Swap(OAuth2MetadataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void OAuth2MetadataResponse::InternalSwap(OAuth2MetadataResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + response_types_supported_.InternalSwap(CastToBase(&other->response_types_supported_)); + scopes_supported_.InternalSwap(CastToBase(&other->scopes_supported_)); + token_endpoint_auth_methods_supported_.InternalSwap(CastToBase(&other->token_endpoint_auth_methods_supported_)); + code_challenge_methods_supported_.InternalSwap(CastToBase(&other->code_challenge_methods_supported_)); + grant_types_supported_.InternalSwap(CastToBase(&other->grant_types_supported_)); + issuer_.Swap(&other->issuer_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + authorization_endpoint_.Swap(&other->authorization_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + token_endpoint_.Swap(&other->token_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + jwks_uri_.Swap(&other->jwks_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + device_authorization_endpoint_.Swap(&other->device_authorization_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata OAuth2MetadataResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PublicClientAuthConfigRequest::InitAsDefaultInstance() { +} +class PublicClientAuthConfigRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PublicClientAuthConfigRequest::PublicClientAuthConfigRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.PublicClientAuthConfigRequest) +} +PublicClientAuthConfigRequest::PublicClientAuthConfigRequest(const PublicClientAuthConfigRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.service.PublicClientAuthConfigRequest) +} + +void PublicClientAuthConfigRequest::SharedCtor() { +} + +PublicClientAuthConfigRequest::~PublicClientAuthConfigRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.PublicClientAuthConfigRequest) + SharedDtor(); +} + +void PublicClientAuthConfigRequest::SharedDtor() { +} + +void PublicClientAuthConfigRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PublicClientAuthConfigRequest& PublicClientAuthConfigRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto.base); + return *internal_default_instance(); +} + + +void PublicClientAuthConfigRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.PublicClientAuthConfigRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PublicClientAuthConfigRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PublicClientAuthConfigRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.PublicClientAuthConfigRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.PublicClientAuthConfigRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.PublicClientAuthConfigRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PublicClientAuthConfigRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.PublicClientAuthConfigRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.PublicClientAuthConfigRequest) +} + +::google::protobuf::uint8* PublicClientAuthConfigRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.PublicClientAuthConfigRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.PublicClientAuthConfigRequest) + return target; +} + +size_t PublicClientAuthConfigRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.PublicClientAuthConfigRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PublicClientAuthConfigRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.PublicClientAuthConfigRequest) + GOOGLE_DCHECK_NE(&from, this); + const PublicClientAuthConfigRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.PublicClientAuthConfigRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.PublicClientAuthConfigRequest) + MergeFrom(*source); + } +} + +void PublicClientAuthConfigRequest::MergeFrom(const PublicClientAuthConfigRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.PublicClientAuthConfigRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void PublicClientAuthConfigRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.PublicClientAuthConfigRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PublicClientAuthConfigRequest::CopyFrom(const PublicClientAuthConfigRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.PublicClientAuthConfigRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PublicClientAuthConfigRequest::IsInitialized() const { + return true; +} + +void PublicClientAuthConfigRequest::Swap(PublicClientAuthConfigRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void PublicClientAuthConfigRequest::InternalSwap(PublicClientAuthConfigRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata PublicClientAuthConfigRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PublicClientAuthConfigResponse::InitAsDefaultInstance() { +} +class PublicClientAuthConfigResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PublicClientAuthConfigResponse::kClientIdFieldNumber; +const int PublicClientAuthConfigResponse::kRedirectUriFieldNumber; +const int PublicClientAuthConfigResponse::kScopesFieldNumber; +const int PublicClientAuthConfigResponse::kAuthorizationMetadataKeyFieldNumber; +const int PublicClientAuthConfigResponse::kServiceHttpEndpointFieldNumber; +const int PublicClientAuthConfigResponse::kAudienceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PublicClientAuthConfigResponse::PublicClientAuthConfigResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.PublicClientAuthConfigResponse) +} +PublicClientAuthConfigResponse::PublicClientAuthConfigResponse(const PublicClientAuthConfigResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + scopes_(from.scopes_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.client_id().size() > 0) { + client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); + } + redirect_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.redirect_uri().size() > 0) { + redirect_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.redirect_uri_); + } + authorization_metadata_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.authorization_metadata_key().size() > 0) { + authorization_metadata_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_metadata_key_); + } + service_http_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.service_http_endpoint().size() > 0) { + service_http_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_http_endpoint_); + } + audience_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.audience().size() > 0) { + audience_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.audience_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.PublicClientAuthConfigResponse) +} + +void PublicClientAuthConfigResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto.base); + client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + redirect_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + authorization_metadata_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + service_http_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + audience_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +PublicClientAuthConfigResponse::~PublicClientAuthConfigResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.PublicClientAuthConfigResponse) + SharedDtor(); +} + +void PublicClientAuthConfigResponse::SharedDtor() { + client_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + redirect_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + authorization_metadata_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + service_http_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + audience_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void PublicClientAuthConfigResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PublicClientAuthConfigResponse& PublicClientAuthConfigResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto.base); + return *internal_default_instance(); +} + + +void PublicClientAuthConfigResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.PublicClientAuthConfigResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + scopes_.Clear(); + client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + redirect_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + authorization_metadata_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + service_http_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + audience_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PublicClientAuthConfigResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string client_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.client_id"); + object = msg->mutable_client_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string redirect_uri = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.redirect_uri"); + object = msg->mutable_redirect_uri(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // repeated string scopes = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.scopes"); + object = msg->add_scopes(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); + break; + } + // string authorization_metadata_key = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key"); + object = msg->mutable_authorization_metadata_key(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string service_http_endpoint = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint"); + object = msg->mutable_service_http_endpoint(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string audience = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.audience"); + object = msg->mutable_audience(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PublicClientAuthConfigResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.PublicClientAuthConfigResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string client_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_client_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->client_id().data(), static_cast(this->client_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.PublicClientAuthConfigResponse.client_id")); + } else { + goto handle_unusual; + } + break; + } + + // string redirect_uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_redirect_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->redirect_uri().data(), static_cast(this->redirect_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.PublicClientAuthConfigResponse.redirect_uri")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string scopes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_scopes())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->scopes(this->scopes_size() - 1).data(), + static_cast(this->scopes(this->scopes_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.PublicClientAuthConfigResponse.scopes")); + } else { + goto handle_unusual; + } + break; + } + + // string authorization_metadata_key = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_authorization_metadata_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->authorization_metadata_key().data(), static_cast(this->authorization_metadata_key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key")); + } else { + goto handle_unusual; + } + break; + } + + // string service_http_endpoint = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_service_http_endpoint())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->service_http_endpoint().data(), static_cast(this->service_http_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint")); + } else { + goto handle_unusual; + } + break; + } + + // string audience = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_audience())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->audience().data(), static_cast(this->audience().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.PublicClientAuthConfigResponse.audience")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.PublicClientAuthConfigResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.PublicClientAuthConfigResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PublicClientAuthConfigResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.PublicClientAuthConfigResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string client_id = 1; + if (this->client_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->client_id().data(), static_cast(this->client_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.client_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->client_id(), output); + } + + // string redirect_uri = 2; + if (this->redirect_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->redirect_uri().data(), static_cast(this->redirect_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.redirect_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->redirect_uri(), output); + } + + // repeated string scopes = 3; + for (int i = 0, n = this->scopes_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->scopes(i).data(), static_cast(this->scopes(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.scopes"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->scopes(i), output); + } + + // string authorization_metadata_key = 4; + if (this->authorization_metadata_key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->authorization_metadata_key().data(), static_cast(this->authorization_metadata_key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->authorization_metadata_key(), output); + } + + // string service_http_endpoint = 5; + if (this->service_http_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->service_http_endpoint().data(), static_cast(this->service_http_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->service_http_endpoint(), output); + } + + // string audience = 6; + if (this->audience().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->audience().data(), static_cast(this->audience().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.audience"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->audience(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.PublicClientAuthConfigResponse) +} + +::google::protobuf::uint8* PublicClientAuthConfigResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.PublicClientAuthConfigResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string client_id = 1; + if (this->client_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->client_id().data(), static_cast(this->client_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.client_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->client_id(), target); + } + + // string redirect_uri = 2; + if (this->redirect_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->redirect_uri().data(), static_cast(this->redirect_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.redirect_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->redirect_uri(), target); + } + + // repeated string scopes = 3; + for (int i = 0, n = this->scopes_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->scopes(i).data(), static_cast(this->scopes(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.scopes"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->scopes(i), target); + } + + // string authorization_metadata_key = 4; + if (this->authorization_metadata_key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->authorization_metadata_key().data(), static_cast(this->authorization_metadata_key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->authorization_metadata_key(), target); + } + + // string service_http_endpoint = 5; + if (this->service_http_endpoint().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->service_http_endpoint().data(), static_cast(this->service_http_endpoint().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->service_http_endpoint(), target); + } + + // string audience = 6; + if (this->audience().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->audience().data(), static_cast(this->audience().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PublicClientAuthConfigResponse.audience"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->audience(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.PublicClientAuthConfigResponse) + return target; +} + +size_t PublicClientAuthConfigResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.PublicClientAuthConfigResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string scopes = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->scopes_size()); + for (int i = 0, n = this->scopes_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->scopes(i)); + } + + // string client_id = 1; + if (this->client_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->client_id()); + } + + // string redirect_uri = 2; + if (this->redirect_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->redirect_uri()); + } + + // string authorization_metadata_key = 4; + if (this->authorization_metadata_key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->authorization_metadata_key()); + } + + // string service_http_endpoint = 5; + if (this->service_http_endpoint().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->service_http_endpoint()); + } + + // string audience = 6; + if (this->audience().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->audience()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PublicClientAuthConfigResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.PublicClientAuthConfigResponse) + GOOGLE_DCHECK_NE(&from, this); + const PublicClientAuthConfigResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.PublicClientAuthConfigResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.PublicClientAuthConfigResponse) + MergeFrom(*source); + } +} + +void PublicClientAuthConfigResponse::MergeFrom(const PublicClientAuthConfigResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.PublicClientAuthConfigResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + scopes_.MergeFrom(from.scopes_); + if (from.client_id().size() > 0) { + + client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); + } + if (from.redirect_uri().size() > 0) { + + redirect_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.redirect_uri_); + } + if (from.authorization_metadata_key().size() > 0) { + + authorization_metadata_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_metadata_key_); + } + if (from.service_http_endpoint().size() > 0) { + + service_http_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_http_endpoint_); + } + if (from.audience().size() > 0) { + + audience_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.audience_); + } +} + +void PublicClientAuthConfigResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.PublicClientAuthConfigResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PublicClientAuthConfigResponse::CopyFrom(const PublicClientAuthConfigResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.PublicClientAuthConfigResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PublicClientAuthConfigResponse::IsInitialized() const { + return true; +} + +void PublicClientAuthConfigResponse::Swap(PublicClientAuthConfigResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void PublicClientAuthConfigResponse::InternalSwap(PublicClientAuthConfigResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + scopes_.InternalSwap(CastToBase(&other->scopes_)); + client_id_.Swap(&other->client_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + redirect_uri_.Swap(&other->redirect_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + authorization_metadata_key_.Swap(&other->authorization_metadata_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + service_http_endpoint_.Swap(&other->service_http_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + audience_.Swap(&other->audience_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata PublicClientAuthConfigResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::service::OAuth2MetadataRequest* Arena::CreateMaybeMessage< ::flyteidl::service::OAuth2MetadataRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::OAuth2MetadataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::OAuth2MetadataResponse* Arena::CreateMaybeMessage< ::flyteidl::service::OAuth2MetadataResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::OAuth2MetadataResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::PublicClientAuthConfigRequest* Arena::CreateMaybeMessage< ::flyteidl::service::PublicClientAuthConfigRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::PublicClientAuthConfigRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::PublicClientAuthConfigResponse* Arena::CreateMaybeMessage< ::flyteidl::service::PublicClientAuthConfigResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::PublicClientAuthConfigResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.h new file mode 100644 index 0000000000..c188b22a72 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.h @@ -0,0 +1,1772 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/auth.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fauth_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fauth_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "google/api/annotations.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fauth_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fauth_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[4] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fauth_2eproto(); +namespace flyteidl { +namespace service { +class OAuth2MetadataRequest; +class OAuth2MetadataRequestDefaultTypeInternal; +extern OAuth2MetadataRequestDefaultTypeInternal _OAuth2MetadataRequest_default_instance_; +class OAuth2MetadataResponse; +class OAuth2MetadataResponseDefaultTypeInternal; +extern OAuth2MetadataResponseDefaultTypeInternal _OAuth2MetadataResponse_default_instance_; +class PublicClientAuthConfigRequest; +class PublicClientAuthConfigRequestDefaultTypeInternal; +extern PublicClientAuthConfigRequestDefaultTypeInternal _PublicClientAuthConfigRequest_default_instance_; +class PublicClientAuthConfigResponse; +class PublicClientAuthConfigResponseDefaultTypeInternal; +extern PublicClientAuthConfigResponseDefaultTypeInternal _PublicClientAuthConfigResponse_default_instance_; +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::service::OAuth2MetadataRequest* Arena::CreateMaybeMessage<::flyteidl::service::OAuth2MetadataRequest>(Arena*); +template<> ::flyteidl::service::OAuth2MetadataResponse* Arena::CreateMaybeMessage<::flyteidl::service::OAuth2MetadataResponse>(Arena*); +template<> ::flyteidl::service::PublicClientAuthConfigRequest* Arena::CreateMaybeMessage<::flyteidl::service::PublicClientAuthConfigRequest>(Arena*); +template<> ::flyteidl::service::PublicClientAuthConfigResponse* Arena::CreateMaybeMessage<::flyteidl::service::PublicClientAuthConfigResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +// =================================================================== + +class OAuth2MetadataRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.OAuth2MetadataRequest) */ { + public: + OAuth2MetadataRequest(); + virtual ~OAuth2MetadataRequest(); + + OAuth2MetadataRequest(const OAuth2MetadataRequest& from); + + inline OAuth2MetadataRequest& operator=(const OAuth2MetadataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OAuth2MetadataRequest(OAuth2MetadataRequest&& from) noexcept + : OAuth2MetadataRequest() { + *this = ::std::move(from); + } + + inline OAuth2MetadataRequest& operator=(OAuth2MetadataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const OAuth2MetadataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OAuth2MetadataRequest* internal_default_instance() { + return reinterpret_cast( + &_OAuth2MetadataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(OAuth2MetadataRequest* other); + friend void swap(OAuth2MetadataRequest& a, OAuth2MetadataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OAuth2MetadataRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + OAuth2MetadataRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OAuth2MetadataRequest& from); + void MergeFrom(const OAuth2MetadataRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OAuth2MetadataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; +}; +// ------------------------------------------------------------------- + +class OAuth2MetadataResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.OAuth2MetadataResponse) */ { + public: + OAuth2MetadataResponse(); + virtual ~OAuth2MetadataResponse(); + + OAuth2MetadataResponse(const OAuth2MetadataResponse& from); + + inline OAuth2MetadataResponse& operator=(const OAuth2MetadataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OAuth2MetadataResponse(OAuth2MetadataResponse&& from) noexcept + : OAuth2MetadataResponse() { + *this = ::std::move(from); + } + + inline OAuth2MetadataResponse& operator=(OAuth2MetadataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const OAuth2MetadataResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OAuth2MetadataResponse* internal_default_instance() { + return reinterpret_cast( + &_OAuth2MetadataResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(OAuth2MetadataResponse* other); + friend void swap(OAuth2MetadataResponse& a, OAuth2MetadataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OAuth2MetadataResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + OAuth2MetadataResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const OAuth2MetadataResponse& from); + void MergeFrom(const OAuth2MetadataResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OAuth2MetadataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string response_types_supported = 4; + int response_types_supported_size() const; + void clear_response_types_supported(); + static const int kResponseTypesSupportedFieldNumber = 4; + const ::std::string& response_types_supported(int index) const; + ::std::string* mutable_response_types_supported(int index); + void set_response_types_supported(int index, const ::std::string& value); + #if LANG_CXX11 + void set_response_types_supported(int index, ::std::string&& value); + #endif + void set_response_types_supported(int index, const char* value); + void set_response_types_supported(int index, const char* value, size_t size); + ::std::string* add_response_types_supported(); + void add_response_types_supported(const ::std::string& value); + #if LANG_CXX11 + void add_response_types_supported(::std::string&& value); + #endif + void add_response_types_supported(const char* value); + void add_response_types_supported(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& response_types_supported() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_response_types_supported(); + + // repeated string scopes_supported = 5; + int scopes_supported_size() const; + void clear_scopes_supported(); + static const int kScopesSupportedFieldNumber = 5; + const ::std::string& scopes_supported(int index) const; + ::std::string* mutable_scopes_supported(int index); + void set_scopes_supported(int index, const ::std::string& value); + #if LANG_CXX11 + void set_scopes_supported(int index, ::std::string&& value); + #endif + void set_scopes_supported(int index, const char* value); + void set_scopes_supported(int index, const char* value, size_t size); + ::std::string* add_scopes_supported(); + void add_scopes_supported(const ::std::string& value); + #if LANG_CXX11 + void add_scopes_supported(::std::string&& value); + #endif + void add_scopes_supported(const char* value); + void add_scopes_supported(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& scopes_supported() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_scopes_supported(); + + // repeated string token_endpoint_auth_methods_supported = 6; + int token_endpoint_auth_methods_supported_size() const; + void clear_token_endpoint_auth_methods_supported(); + static const int kTokenEndpointAuthMethodsSupportedFieldNumber = 6; + const ::std::string& token_endpoint_auth_methods_supported(int index) const; + ::std::string* mutable_token_endpoint_auth_methods_supported(int index); + void set_token_endpoint_auth_methods_supported(int index, const ::std::string& value); + #if LANG_CXX11 + void set_token_endpoint_auth_methods_supported(int index, ::std::string&& value); + #endif + void set_token_endpoint_auth_methods_supported(int index, const char* value); + void set_token_endpoint_auth_methods_supported(int index, const char* value, size_t size); + ::std::string* add_token_endpoint_auth_methods_supported(); + void add_token_endpoint_auth_methods_supported(const ::std::string& value); + #if LANG_CXX11 + void add_token_endpoint_auth_methods_supported(::std::string&& value); + #endif + void add_token_endpoint_auth_methods_supported(const char* value); + void add_token_endpoint_auth_methods_supported(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& token_endpoint_auth_methods_supported() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_token_endpoint_auth_methods_supported(); + + // repeated string code_challenge_methods_supported = 8; + int code_challenge_methods_supported_size() const; + void clear_code_challenge_methods_supported(); + static const int kCodeChallengeMethodsSupportedFieldNumber = 8; + const ::std::string& code_challenge_methods_supported(int index) const; + ::std::string* mutable_code_challenge_methods_supported(int index); + void set_code_challenge_methods_supported(int index, const ::std::string& value); + #if LANG_CXX11 + void set_code_challenge_methods_supported(int index, ::std::string&& value); + #endif + void set_code_challenge_methods_supported(int index, const char* value); + void set_code_challenge_methods_supported(int index, const char* value, size_t size); + ::std::string* add_code_challenge_methods_supported(); + void add_code_challenge_methods_supported(const ::std::string& value); + #if LANG_CXX11 + void add_code_challenge_methods_supported(::std::string&& value); + #endif + void add_code_challenge_methods_supported(const char* value); + void add_code_challenge_methods_supported(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& code_challenge_methods_supported() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_code_challenge_methods_supported(); + + // repeated string grant_types_supported = 9; + int grant_types_supported_size() const; + void clear_grant_types_supported(); + static const int kGrantTypesSupportedFieldNumber = 9; + const ::std::string& grant_types_supported(int index) const; + ::std::string* mutable_grant_types_supported(int index); + void set_grant_types_supported(int index, const ::std::string& value); + #if LANG_CXX11 + void set_grant_types_supported(int index, ::std::string&& value); + #endif + void set_grant_types_supported(int index, const char* value); + void set_grant_types_supported(int index, const char* value, size_t size); + ::std::string* add_grant_types_supported(); + void add_grant_types_supported(const ::std::string& value); + #if LANG_CXX11 + void add_grant_types_supported(::std::string&& value); + #endif + void add_grant_types_supported(const char* value); + void add_grant_types_supported(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& grant_types_supported() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_grant_types_supported(); + + // string issuer = 1; + void clear_issuer(); + static const int kIssuerFieldNumber = 1; + const ::std::string& issuer() const; + void set_issuer(const ::std::string& value); + #if LANG_CXX11 + void set_issuer(::std::string&& value); + #endif + void set_issuer(const char* value); + void set_issuer(const char* value, size_t size); + ::std::string* mutable_issuer(); + ::std::string* release_issuer(); + void set_allocated_issuer(::std::string* issuer); + + // string authorization_endpoint = 2; + void clear_authorization_endpoint(); + static const int kAuthorizationEndpointFieldNumber = 2; + const ::std::string& authorization_endpoint() const; + void set_authorization_endpoint(const ::std::string& value); + #if LANG_CXX11 + void set_authorization_endpoint(::std::string&& value); + #endif + void set_authorization_endpoint(const char* value); + void set_authorization_endpoint(const char* value, size_t size); + ::std::string* mutable_authorization_endpoint(); + ::std::string* release_authorization_endpoint(); + void set_allocated_authorization_endpoint(::std::string* authorization_endpoint); + + // string token_endpoint = 3; + void clear_token_endpoint(); + static const int kTokenEndpointFieldNumber = 3; + const ::std::string& token_endpoint() const; + void set_token_endpoint(const ::std::string& value); + #if LANG_CXX11 + void set_token_endpoint(::std::string&& value); + #endif + void set_token_endpoint(const char* value); + void set_token_endpoint(const char* value, size_t size); + ::std::string* mutable_token_endpoint(); + ::std::string* release_token_endpoint(); + void set_allocated_token_endpoint(::std::string* token_endpoint); + + // string jwks_uri = 7; + void clear_jwks_uri(); + static const int kJwksUriFieldNumber = 7; + const ::std::string& jwks_uri() const; + void set_jwks_uri(const ::std::string& value); + #if LANG_CXX11 + void set_jwks_uri(::std::string&& value); + #endif + void set_jwks_uri(const char* value); + void set_jwks_uri(const char* value, size_t size); + ::std::string* mutable_jwks_uri(); + ::std::string* release_jwks_uri(); + void set_allocated_jwks_uri(::std::string* jwks_uri); + + // string device_authorization_endpoint = 10; + void clear_device_authorization_endpoint(); + static const int kDeviceAuthorizationEndpointFieldNumber = 10; + const ::std::string& device_authorization_endpoint() const; + void set_device_authorization_endpoint(const ::std::string& value); + #if LANG_CXX11 + void set_device_authorization_endpoint(::std::string&& value); + #endif + void set_device_authorization_endpoint(const char* value); + void set_device_authorization_endpoint(const char* value, size_t size); + ::std::string* mutable_device_authorization_endpoint(); + ::std::string* release_device_authorization_endpoint(); + void set_allocated_device_authorization_endpoint(::std::string* device_authorization_endpoint); + + // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> response_types_supported_; + ::google::protobuf::RepeatedPtrField<::std::string> scopes_supported_; + ::google::protobuf::RepeatedPtrField<::std::string> token_endpoint_auth_methods_supported_; + ::google::protobuf::RepeatedPtrField<::std::string> code_challenge_methods_supported_; + ::google::protobuf::RepeatedPtrField<::std::string> grant_types_supported_; + ::google::protobuf::internal::ArenaStringPtr issuer_; + ::google::protobuf::internal::ArenaStringPtr authorization_endpoint_; + ::google::protobuf::internal::ArenaStringPtr token_endpoint_; + ::google::protobuf::internal::ArenaStringPtr jwks_uri_; + ::google::protobuf::internal::ArenaStringPtr device_authorization_endpoint_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; +}; +// ------------------------------------------------------------------- + +class PublicClientAuthConfigRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.PublicClientAuthConfigRequest) */ { + public: + PublicClientAuthConfigRequest(); + virtual ~PublicClientAuthConfigRequest(); + + PublicClientAuthConfigRequest(const PublicClientAuthConfigRequest& from); + + inline PublicClientAuthConfigRequest& operator=(const PublicClientAuthConfigRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PublicClientAuthConfigRequest(PublicClientAuthConfigRequest&& from) noexcept + : PublicClientAuthConfigRequest() { + *this = ::std::move(from); + } + + inline PublicClientAuthConfigRequest& operator=(PublicClientAuthConfigRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PublicClientAuthConfigRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PublicClientAuthConfigRequest* internal_default_instance() { + return reinterpret_cast( + &_PublicClientAuthConfigRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(PublicClientAuthConfigRequest* other); + friend void swap(PublicClientAuthConfigRequest& a, PublicClientAuthConfigRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PublicClientAuthConfigRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + PublicClientAuthConfigRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PublicClientAuthConfigRequest& from); + void MergeFrom(const PublicClientAuthConfigRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PublicClientAuthConfigRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; +}; +// ------------------------------------------------------------------- + +class PublicClientAuthConfigResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.PublicClientAuthConfigResponse) */ { + public: + PublicClientAuthConfigResponse(); + virtual ~PublicClientAuthConfigResponse(); + + PublicClientAuthConfigResponse(const PublicClientAuthConfigResponse& from); + + inline PublicClientAuthConfigResponse& operator=(const PublicClientAuthConfigResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PublicClientAuthConfigResponse(PublicClientAuthConfigResponse&& from) noexcept + : PublicClientAuthConfigResponse() { + *this = ::std::move(from); + } + + inline PublicClientAuthConfigResponse& operator=(PublicClientAuthConfigResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PublicClientAuthConfigResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PublicClientAuthConfigResponse* internal_default_instance() { + return reinterpret_cast( + &_PublicClientAuthConfigResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(PublicClientAuthConfigResponse* other); + friend void swap(PublicClientAuthConfigResponse& a, PublicClientAuthConfigResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PublicClientAuthConfigResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + PublicClientAuthConfigResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PublicClientAuthConfigResponse& from); + void MergeFrom(const PublicClientAuthConfigResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PublicClientAuthConfigResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string scopes = 3; + int scopes_size() const; + void clear_scopes(); + static const int kScopesFieldNumber = 3; + const ::std::string& scopes(int index) const; + ::std::string* mutable_scopes(int index); + void set_scopes(int index, const ::std::string& value); + #if LANG_CXX11 + void set_scopes(int index, ::std::string&& value); + #endif + void set_scopes(int index, const char* value); + void set_scopes(int index, const char* value, size_t size); + ::std::string* add_scopes(); + void add_scopes(const ::std::string& value); + #if LANG_CXX11 + void add_scopes(::std::string&& value); + #endif + void add_scopes(const char* value); + void add_scopes(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& scopes() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_scopes(); + + // string client_id = 1; + void clear_client_id(); + static const int kClientIdFieldNumber = 1; + const ::std::string& client_id() const; + void set_client_id(const ::std::string& value); + #if LANG_CXX11 + void set_client_id(::std::string&& value); + #endif + void set_client_id(const char* value); + void set_client_id(const char* value, size_t size); + ::std::string* mutable_client_id(); + ::std::string* release_client_id(); + void set_allocated_client_id(::std::string* client_id); + + // string redirect_uri = 2; + void clear_redirect_uri(); + static const int kRedirectUriFieldNumber = 2; + const ::std::string& redirect_uri() const; + void set_redirect_uri(const ::std::string& value); + #if LANG_CXX11 + void set_redirect_uri(::std::string&& value); + #endif + void set_redirect_uri(const char* value); + void set_redirect_uri(const char* value, size_t size); + ::std::string* mutable_redirect_uri(); + ::std::string* release_redirect_uri(); + void set_allocated_redirect_uri(::std::string* redirect_uri); + + // string authorization_metadata_key = 4; + void clear_authorization_metadata_key(); + static const int kAuthorizationMetadataKeyFieldNumber = 4; + const ::std::string& authorization_metadata_key() const; + void set_authorization_metadata_key(const ::std::string& value); + #if LANG_CXX11 + void set_authorization_metadata_key(::std::string&& value); + #endif + void set_authorization_metadata_key(const char* value); + void set_authorization_metadata_key(const char* value, size_t size); + ::std::string* mutable_authorization_metadata_key(); + ::std::string* release_authorization_metadata_key(); + void set_allocated_authorization_metadata_key(::std::string* authorization_metadata_key); + + // string service_http_endpoint = 5; + void clear_service_http_endpoint(); + static const int kServiceHttpEndpointFieldNumber = 5; + const ::std::string& service_http_endpoint() const; + void set_service_http_endpoint(const ::std::string& value); + #if LANG_CXX11 + void set_service_http_endpoint(::std::string&& value); + #endif + void set_service_http_endpoint(const char* value); + void set_service_http_endpoint(const char* value, size_t size); + ::std::string* mutable_service_http_endpoint(); + ::std::string* release_service_http_endpoint(); + void set_allocated_service_http_endpoint(::std::string* service_http_endpoint); + + // string audience = 6; + void clear_audience(); + static const int kAudienceFieldNumber = 6; + const ::std::string& audience() const; + void set_audience(const ::std::string& value); + #if LANG_CXX11 + void set_audience(::std::string&& value); + #endif + void set_audience(const char* value); + void set_audience(const char* value, size_t size); + ::std::string* mutable_audience(); + ::std::string* release_audience(); + void set_allocated_audience(::std::string* audience); + + // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> scopes_; + ::google::protobuf::internal::ArenaStringPtr client_id_; + ::google::protobuf::internal::ArenaStringPtr redirect_uri_; + ::google::protobuf::internal::ArenaStringPtr authorization_metadata_key_; + ::google::protobuf::internal::ArenaStringPtr service_http_endpoint_; + ::google::protobuf::internal::ArenaStringPtr audience_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// OAuth2MetadataRequest + +// ------------------------------------------------------------------- + +// OAuth2MetadataResponse + +// string issuer = 1; +inline void OAuth2MetadataResponse::clear_issuer() { + issuer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2MetadataResponse::issuer() const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.issuer) + return issuer_.GetNoArena(); +} +inline void OAuth2MetadataResponse::set_issuer(const ::std::string& value) { + + issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.issuer) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_issuer(::std::string&& value) { + + issuer_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.issuer) +} +#endif +inline void OAuth2MetadataResponse::set_issuer(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.issuer) +} +inline void OAuth2MetadataResponse::set_issuer(const char* value, size_t size) { + + issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.issuer) +} +inline ::std::string* OAuth2MetadataResponse::mutable_issuer() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.issuer) + return issuer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2MetadataResponse::release_issuer() { + // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.issuer) + + return issuer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2MetadataResponse::set_allocated_issuer(::std::string* issuer) { + if (issuer != nullptr) { + + } else { + + } + issuer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), issuer); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.issuer) +} + +// string authorization_endpoint = 2; +inline void OAuth2MetadataResponse::clear_authorization_endpoint() { + authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2MetadataResponse::authorization_endpoint() const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) + return authorization_endpoint_.GetNoArena(); +} +inline void OAuth2MetadataResponse::set_authorization_endpoint(const ::std::string& value) { + + authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_authorization_endpoint(::std::string&& value) { + + authorization_endpoint_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) +} +#endif +inline void OAuth2MetadataResponse::set_authorization_endpoint(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) +} +inline void OAuth2MetadataResponse::set_authorization_endpoint(const char* value, size_t size) { + + authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) +} +inline ::std::string* OAuth2MetadataResponse::mutable_authorization_endpoint() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) + return authorization_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2MetadataResponse::release_authorization_endpoint() { + // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) + + return authorization_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2MetadataResponse::set_allocated_authorization_endpoint(::std::string* authorization_endpoint) { + if (authorization_endpoint != nullptr) { + + } else { + + } + authorization_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), authorization_endpoint); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) +} + +// string token_endpoint = 3; +inline void OAuth2MetadataResponse::clear_token_endpoint() { + token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2MetadataResponse::token_endpoint() const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.token_endpoint) + return token_endpoint_.GetNoArena(); +} +inline void OAuth2MetadataResponse::set_token_endpoint(const ::std::string& value) { + + token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.token_endpoint) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_token_endpoint(::std::string&& value) { + + token_endpoint_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.token_endpoint) +} +#endif +inline void OAuth2MetadataResponse::set_token_endpoint(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.token_endpoint) +} +inline void OAuth2MetadataResponse::set_token_endpoint(const char* value, size_t size) { + + token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.token_endpoint) +} +inline ::std::string* OAuth2MetadataResponse::mutable_token_endpoint() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.token_endpoint) + return token_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2MetadataResponse::release_token_endpoint() { + // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.token_endpoint) + + return token_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2MetadataResponse::set_allocated_token_endpoint(::std::string* token_endpoint) { + if (token_endpoint != nullptr) { + + } else { + + } + token_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token_endpoint); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.token_endpoint) +} + +// repeated string response_types_supported = 4; +inline int OAuth2MetadataResponse::response_types_supported_size() const { + return response_types_supported_.size(); +} +inline void OAuth2MetadataResponse::clear_response_types_supported() { + response_types_supported_.Clear(); +} +inline const ::std::string& OAuth2MetadataResponse::response_types_supported(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.response_types_supported) + return response_types_supported_.Get(index); +} +inline ::std::string* OAuth2MetadataResponse::mutable_response_types_supported(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.response_types_supported) + return response_types_supported_.Mutable(index); +} +inline void OAuth2MetadataResponse::set_response_types_supported(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.response_types_supported) + response_types_supported_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_response_types_supported(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.response_types_supported) + response_types_supported_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void OAuth2MetadataResponse::set_response_types_supported(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + response_types_supported_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.response_types_supported) +} +inline void OAuth2MetadataResponse::set_response_types_supported(int index, const char* value, size_t size) { + response_types_supported_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.response_types_supported) +} +inline ::std::string* OAuth2MetadataResponse::add_response_types_supported() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.response_types_supported) + return response_types_supported_.Add(); +} +inline void OAuth2MetadataResponse::add_response_types_supported(const ::std::string& value) { + response_types_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.response_types_supported) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::add_response_types_supported(::std::string&& value) { + response_types_supported_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.response_types_supported) +} +#endif +inline void OAuth2MetadataResponse::add_response_types_supported(const char* value) { + GOOGLE_DCHECK(value != nullptr); + response_types_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.response_types_supported) +} +inline void OAuth2MetadataResponse::add_response_types_supported(const char* value, size_t size) { + response_types_supported_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.response_types_supported) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +OAuth2MetadataResponse::response_types_supported() const { + // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.response_types_supported) + return response_types_supported_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +OAuth2MetadataResponse::mutable_response_types_supported() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.response_types_supported) + return &response_types_supported_; +} + +// repeated string scopes_supported = 5; +inline int OAuth2MetadataResponse::scopes_supported_size() const { + return scopes_supported_.size(); +} +inline void OAuth2MetadataResponse::clear_scopes_supported() { + scopes_supported_.Clear(); +} +inline const ::std::string& OAuth2MetadataResponse::scopes_supported(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.scopes_supported) + return scopes_supported_.Get(index); +} +inline ::std::string* OAuth2MetadataResponse::mutable_scopes_supported(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.scopes_supported) + return scopes_supported_.Mutable(index); +} +inline void OAuth2MetadataResponse::set_scopes_supported(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.scopes_supported) + scopes_supported_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_scopes_supported(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.scopes_supported) + scopes_supported_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void OAuth2MetadataResponse::set_scopes_supported(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + scopes_supported_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.scopes_supported) +} +inline void OAuth2MetadataResponse::set_scopes_supported(int index, const char* value, size_t size) { + scopes_supported_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.scopes_supported) +} +inline ::std::string* OAuth2MetadataResponse::add_scopes_supported() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.scopes_supported) + return scopes_supported_.Add(); +} +inline void OAuth2MetadataResponse::add_scopes_supported(const ::std::string& value) { + scopes_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.scopes_supported) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::add_scopes_supported(::std::string&& value) { + scopes_supported_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.scopes_supported) +} +#endif +inline void OAuth2MetadataResponse::add_scopes_supported(const char* value) { + GOOGLE_DCHECK(value != nullptr); + scopes_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.scopes_supported) +} +inline void OAuth2MetadataResponse::add_scopes_supported(const char* value, size_t size) { + scopes_supported_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.scopes_supported) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +OAuth2MetadataResponse::scopes_supported() const { + // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.scopes_supported) + return scopes_supported_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +OAuth2MetadataResponse::mutable_scopes_supported() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.scopes_supported) + return &scopes_supported_; +} + +// repeated string token_endpoint_auth_methods_supported = 6; +inline int OAuth2MetadataResponse::token_endpoint_auth_methods_supported_size() const { + return token_endpoint_auth_methods_supported_.size(); +} +inline void OAuth2MetadataResponse::clear_token_endpoint_auth_methods_supported() { + token_endpoint_auth_methods_supported_.Clear(); +} +inline const ::std::string& OAuth2MetadataResponse::token_endpoint_auth_methods_supported(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) + return token_endpoint_auth_methods_supported_.Get(index); +} +inline ::std::string* OAuth2MetadataResponse::mutable_token_endpoint_auth_methods_supported(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) + return token_endpoint_auth_methods_supported_.Mutable(index); +} +inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) + token_endpoint_auth_methods_supported_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) + token_endpoint_auth_methods_supported_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + token_endpoint_auth_methods_supported_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) +} +inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, const char* value, size_t size) { + token_endpoint_auth_methods_supported_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) +} +inline ::std::string* OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) + return token_endpoint_auth_methods_supported_.Add(); +} +inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(const ::std::string& value) { + token_endpoint_auth_methods_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(::std::string&& value) { + token_endpoint_auth_methods_supported_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) +} +#endif +inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(const char* value) { + GOOGLE_DCHECK(value != nullptr); + token_endpoint_auth_methods_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) +} +inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(const char* value, size_t size) { + token_endpoint_auth_methods_supported_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +OAuth2MetadataResponse::token_endpoint_auth_methods_supported() const { + // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) + return token_endpoint_auth_methods_supported_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +OAuth2MetadataResponse::mutable_token_endpoint_auth_methods_supported() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) + return &token_endpoint_auth_methods_supported_; +} + +// string jwks_uri = 7; +inline void OAuth2MetadataResponse::clear_jwks_uri() { + jwks_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2MetadataResponse::jwks_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.jwks_uri) + return jwks_uri_.GetNoArena(); +} +inline void OAuth2MetadataResponse::set_jwks_uri(const ::std::string& value) { + + jwks_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.jwks_uri) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_jwks_uri(::std::string&& value) { + + jwks_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.jwks_uri) +} +#endif +inline void OAuth2MetadataResponse::set_jwks_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + jwks_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.jwks_uri) +} +inline void OAuth2MetadataResponse::set_jwks_uri(const char* value, size_t size) { + + jwks_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.jwks_uri) +} +inline ::std::string* OAuth2MetadataResponse::mutable_jwks_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.jwks_uri) + return jwks_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2MetadataResponse::release_jwks_uri() { + // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.jwks_uri) + + return jwks_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2MetadataResponse::set_allocated_jwks_uri(::std::string* jwks_uri) { + if (jwks_uri != nullptr) { + + } else { + + } + jwks_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jwks_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.jwks_uri) +} + +// repeated string code_challenge_methods_supported = 8; +inline int OAuth2MetadataResponse::code_challenge_methods_supported_size() const { + return code_challenge_methods_supported_.size(); +} +inline void OAuth2MetadataResponse::clear_code_challenge_methods_supported() { + code_challenge_methods_supported_.Clear(); +} +inline const ::std::string& OAuth2MetadataResponse::code_challenge_methods_supported(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) + return code_challenge_methods_supported_.Get(index); +} +inline ::std::string* OAuth2MetadataResponse::mutable_code_challenge_methods_supported(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) + return code_challenge_methods_supported_.Mutable(index); +} +inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) + code_challenge_methods_supported_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) + code_challenge_methods_supported_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + code_challenge_methods_supported_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) +} +inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, const char* value, size_t size) { + code_challenge_methods_supported_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) +} +inline ::std::string* OAuth2MetadataResponse::add_code_challenge_methods_supported() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) + return code_challenge_methods_supported_.Add(); +} +inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(const ::std::string& value) { + code_challenge_methods_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(::std::string&& value) { + code_challenge_methods_supported_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) +} +#endif +inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(const char* value) { + GOOGLE_DCHECK(value != nullptr); + code_challenge_methods_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) +} +inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(const char* value, size_t size) { + code_challenge_methods_supported_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +OAuth2MetadataResponse::code_challenge_methods_supported() const { + // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) + return code_challenge_methods_supported_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +OAuth2MetadataResponse::mutable_code_challenge_methods_supported() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) + return &code_challenge_methods_supported_; +} + +// repeated string grant_types_supported = 9; +inline int OAuth2MetadataResponse::grant_types_supported_size() const { + return grant_types_supported_.size(); +} +inline void OAuth2MetadataResponse::clear_grant_types_supported() { + grant_types_supported_.Clear(); +} +inline const ::std::string& OAuth2MetadataResponse::grant_types_supported(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) + return grant_types_supported_.Get(index); +} +inline ::std::string* OAuth2MetadataResponse::mutable_grant_types_supported(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) + return grant_types_supported_.Mutable(index); +} +inline void OAuth2MetadataResponse::set_grant_types_supported(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) + grant_types_supported_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_grant_types_supported(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) + grant_types_supported_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void OAuth2MetadataResponse::set_grant_types_supported(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + grant_types_supported_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) +} +inline void OAuth2MetadataResponse::set_grant_types_supported(int index, const char* value, size_t size) { + grant_types_supported_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) +} +inline ::std::string* OAuth2MetadataResponse::add_grant_types_supported() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) + return grant_types_supported_.Add(); +} +inline void OAuth2MetadataResponse::add_grant_types_supported(const ::std::string& value) { + grant_types_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::add_grant_types_supported(::std::string&& value) { + grant_types_supported_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) +} +#endif +inline void OAuth2MetadataResponse::add_grant_types_supported(const char* value) { + GOOGLE_DCHECK(value != nullptr); + grant_types_supported_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) +} +inline void OAuth2MetadataResponse::add_grant_types_supported(const char* value, size_t size) { + grant_types_supported_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +OAuth2MetadataResponse::grant_types_supported() const { + // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) + return grant_types_supported_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +OAuth2MetadataResponse::mutable_grant_types_supported() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) + return &grant_types_supported_; +} + +// string device_authorization_endpoint = 10; +inline void OAuth2MetadataResponse::clear_device_authorization_endpoint() { + device_authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OAuth2MetadataResponse::device_authorization_endpoint() const { + // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) + return device_authorization_endpoint_.GetNoArena(); +} +inline void OAuth2MetadataResponse::set_device_authorization_endpoint(const ::std::string& value) { + + device_authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) +} +#if LANG_CXX11 +inline void OAuth2MetadataResponse::set_device_authorization_endpoint(::std::string&& value) { + + device_authorization_endpoint_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) +} +#endif +inline void OAuth2MetadataResponse::set_device_authorization_endpoint(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + device_authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) +} +inline void OAuth2MetadataResponse::set_device_authorization_endpoint(const char* value, size_t size) { + + device_authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) +} +inline ::std::string* OAuth2MetadataResponse::mutable_device_authorization_endpoint() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) + return device_authorization_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OAuth2MetadataResponse::release_device_authorization_endpoint() { + // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) + + return device_authorization_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OAuth2MetadataResponse::set_allocated_device_authorization_endpoint(::std::string* device_authorization_endpoint) { + if (device_authorization_endpoint != nullptr) { + + } else { + + } + device_authorization_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device_authorization_endpoint); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) +} + +// ------------------------------------------------------------------- + +// PublicClientAuthConfigRequest + +// ------------------------------------------------------------------- + +// PublicClientAuthConfigResponse + +// string client_id = 1; +inline void PublicClientAuthConfigResponse::clear_client_id() { + client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PublicClientAuthConfigResponse::client_id() const { + // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.client_id) + return client_id_.GetNoArena(); +} +inline void PublicClientAuthConfigResponse::set_client_id(const ::std::string& value) { + + client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.client_id) +} +#if LANG_CXX11 +inline void PublicClientAuthConfigResponse::set_client_id(::std::string&& value) { + + client_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.client_id) +} +#endif +inline void PublicClientAuthConfigResponse::set_client_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.client_id) +} +inline void PublicClientAuthConfigResponse::set_client_id(const char* value, size_t size) { + + client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.client_id) +} +inline ::std::string* PublicClientAuthConfigResponse::mutable_client_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.client_id) + return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublicClientAuthConfigResponse::release_client_id() { + // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.client_id) + + return client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublicClientAuthConfigResponse::set_allocated_client_id(::std::string* client_id) { + if (client_id != nullptr) { + + } else { + + } + client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.client_id) +} + +// string redirect_uri = 2; +inline void PublicClientAuthConfigResponse::clear_redirect_uri() { + redirect_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PublicClientAuthConfigResponse::redirect_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) + return redirect_uri_.GetNoArena(); +} +inline void PublicClientAuthConfigResponse::set_redirect_uri(const ::std::string& value) { + + redirect_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) +} +#if LANG_CXX11 +inline void PublicClientAuthConfigResponse::set_redirect_uri(::std::string&& value) { + + redirect_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) +} +#endif +inline void PublicClientAuthConfigResponse::set_redirect_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + redirect_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) +} +inline void PublicClientAuthConfigResponse::set_redirect_uri(const char* value, size_t size) { + + redirect_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) +} +inline ::std::string* PublicClientAuthConfigResponse::mutable_redirect_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) + return redirect_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublicClientAuthConfigResponse::release_redirect_uri() { + // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) + + return redirect_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublicClientAuthConfigResponse::set_allocated_redirect_uri(::std::string* redirect_uri) { + if (redirect_uri != nullptr) { + + } else { + + } + redirect_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), redirect_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) +} + +// repeated string scopes = 3; +inline int PublicClientAuthConfigResponse::scopes_size() const { + return scopes_.size(); +} +inline void PublicClientAuthConfigResponse::clear_scopes() { + scopes_.Clear(); +} +inline const ::std::string& PublicClientAuthConfigResponse::scopes(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.scopes) + return scopes_.Get(index); +} +inline ::std::string* PublicClientAuthConfigResponse::mutable_scopes(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.scopes) + return scopes_.Mutable(index); +} +inline void PublicClientAuthConfigResponse::set_scopes(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.scopes) + scopes_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void PublicClientAuthConfigResponse::set_scopes(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.scopes) + scopes_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void PublicClientAuthConfigResponse::set_scopes(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + scopes_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.scopes) +} +inline void PublicClientAuthConfigResponse::set_scopes(int index, const char* value, size_t size) { + scopes_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.scopes) +} +inline ::std::string* PublicClientAuthConfigResponse::add_scopes() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.PublicClientAuthConfigResponse.scopes) + return scopes_.Add(); +} +inline void PublicClientAuthConfigResponse::add_scopes(const ::std::string& value) { + scopes_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.PublicClientAuthConfigResponse.scopes) +} +#if LANG_CXX11 +inline void PublicClientAuthConfigResponse::add_scopes(::std::string&& value) { + scopes_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.PublicClientAuthConfigResponse.scopes) +} +#endif +inline void PublicClientAuthConfigResponse::add_scopes(const char* value) { + GOOGLE_DCHECK(value != nullptr); + scopes_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.PublicClientAuthConfigResponse.scopes) +} +inline void PublicClientAuthConfigResponse::add_scopes(const char* value, size_t size) { + scopes_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.PublicClientAuthConfigResponse.scopes) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +PublicClientAuthConfigResponse::scopes() const { + // @@protoc_insertion_point(field_list:flyteidl.service.PublicClientAuthConfigResponse.scopes) + return scopes_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +PublicClientAuthConfigResponse::mutable_scopes() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.PublicClientAuthConfigResponse.scopes) + return &scopes_; +} + +// string authorization_metadata_key = 4; +inline void PublicClientAuthConfigResponse::clear_authorization_metadata_key() { + authorization_metadata_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PublicClientAuthConfigResponse::authorization_metadata_key() const { + // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) + return authorization_metadata_key_.GetNoArena(); +} +inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(const ::std::string& value) { + + authorization_metadata_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) +} +#if LANG_CXX11 +inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(::std::string&& value) { + + authorization_metadata_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) +} +#endif +inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + authorization_metadata_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) +} +inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(const char* value, size_t size) { + + authorization_metadata_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) +} +inline ::std::string* PublicClientAuthConfigResponse::mutable_authorization_metadata_key() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) + return authorization_metadata_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublicClientAuthConfigResponse::release_authorization_metadata_key() { + // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) + + return authorization_metadata_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublicClientAuthConfigResponse::set_allocated_authorization_metadata_key(::std::string* authorization_metadata_key) { + if (authorization_metadata_key != nullptr) { + + } else { + + } + authorization_metadata_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), authorization_metadata_key); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) +} + +// string service_http_endpoint = 5; +inline void PublicClientAuthConfigResponse::clear_service_http_endpoint() { + service_http_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PublicClientAuthConfigResponse::service_http_endpoint() const { + // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) + return service_http_endpoint_.GetNoArena(); +} +inline void PublicClientAuthConfigResponse::set_service_http_endpoint(const ::std::string& value) { + + service_http_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) +} +#if LANG_CXX11 +inline void PublicClientAuthConfigResponse::set_service_http_endpoint(::std::string&& value) { + + service_http_endpoint_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) +} +#endif +inline void PublicClientAuthConfigResponse::set_service_http_endpoint(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + service_http_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) +} +inline void PublicClientAuthConfigResponse::set_service_http_endpoint(const char* value, size_t size) { + + service_http_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) +} +inline ::std::string* PublicClientAuthConfigResponse::mutable_service_http_endpoint() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) + return service_http_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublicClientAuthConfigResponse::release_service_http_endpoint() { + // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) + + return service_http_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublicClientAuthConfigResponse::set_allocated_service_http_endpoint(::std::string* service_http_endpoint) { + if (service_http_endpoint != nullptr) { + + } else { + + } + service_http_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), service_http_endpoint); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) +} + +// string audience = 6; +inline void PublicClientAuthConfigResponse::clear_audience() { + audience_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& PublicClientAuthConfigResponse::audience() const { + // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.audience) + return audience_.GetNoArena(); +} +inline void PublicClientAuthConfigResponse::set_audience(const ::std::string& value) { + + audience_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.audience) +} +#if LANG_CXX11 +inline void PublicClientAuthConfigResponse::set_audience(::std::string&& value) { + + audience_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.audience) +} +#endif +inline void PublicClientAuthConfigResponse::set_audience(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + audience_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.audience) +} +inline void PublicClientAuthConfigResponse::set_audience(const char* value, size_t size) { + + audience_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.audience) +} +inline ::std::string* PublicClientAuthConfigResponse::mutable_audience() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.audience) + return audience_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* PublicClientAuthConfigResponse::release_audience() { + // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.audience) + + return audience_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void PublicClientAuthConfigResponse::set_allocated_audience(::std::string* audience) { + if (audience != nullptr) { + + } else { + + } + audience_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), audience); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.audience) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fauth_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.cc new file mode 100644 index 0000000000..2bff0c5a85 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.cc @@ -0,0 +1,211 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/dataproxy.proto + +#include "flyteidl/service/dataproxy.pb.h" +#include "flyteidl/service/dataproxy.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* DataProxyService_method_names[] = { + "/flyteidl.service.DataProxyService/CreateUploadLocation", + "/flyteidl.service.DataProxyService/CreateDownloadLocation", + "/flyteidl.service.DataProxyService/CreateDownloadLink", + "/flyteidl.service.DataProxyService/GetData", +}; + +std::unique_ptr< DataProxyService::Stub> DataProxyService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< DataProxyService::Stub> stub(new DataProxyService::Stub(channel)); + return stub; +} + +DataProxyService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateUploadLocation_(DataProxyService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateDownloadLocation_(DataProxyService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateDownloadLink_(DataProxyService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetData_(DataProxyService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status DataProxyService::Stub::CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::flyteidl::service::CreateUploadLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateUploadLocation_, context, request, response); +} + +void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, reactor); +} + +void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* DataProxyService::Stub::AsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateUploadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateUploadLocation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* DataProxyService::Stub::PrepareAsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateUploadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateUploadLocation_, context, request, false); +} + +::grpc::Status DataProxyService::Stub::CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::flyteidl::service::CreateDownloadLocationResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateDownloadLocation_, context, request, response); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, reactor); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* DataProxyService::Stub::AsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLocation_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* DataProxyService::Stub::PrepareAsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLocation_, context, request, false); +} + +::grpc::Status DataProxyService::Stub::CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::flyteidl::service::CreateDownloadLinkResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateDownloadLink_, context, request, response); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, reactor); +} + +void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* DataProxyService::Stub::AsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLinkResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLink_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* DataProxyService::Stub::PrepareAsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLinkResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLink_, context, request, false); +} + +::grpc::Status DataProxyService::Stub::GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::flyteidl::service::GetDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetData_, context, request, response); +} + +void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, std::move(f)); +} + +void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, reactor); +} + +void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* DataProxyService::Stub::AsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::GetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetData_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* DataProxyService::Stub::PrepareAsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::GetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetData_, context, request, false); +} + +DataProxyService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataProxyService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>( + std::mem_fn(&DataProxyService::Service::CreateUploadLocation), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataProxyService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>( + std::mem_fn(&DataProxyService::Service::CreateDownloadLocation), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataProxyService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>( + std::mem_fn(&DataProxyService::Service::CreateDownloadLink), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + DataProxyService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>( + std::mem_fn(&DataProxyService::Service::GetData), this))); +} + +DataProxyService::Service::~Service() { +} + +::grpc::Status DataProxyService::Service::CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataProxyService::Service::CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataProxyService::Service::CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status DataProxyService::Service::GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.h new file mode 100644 index 0000000000..aaf05b601a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.h @@ -0,0 +1,748 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/dataproxy.proto +#ifndef GRPC_flyteidl_2fservice_2fdataproxy_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fdataproxy_2eproto__INCLUDED + +#include "flyteidl/service/dataproxy.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. +class DataProxyService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.DataProxyService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + virtual ::grpc::Status CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::flyteidl::service::CreateUploadLocationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>> AsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>>(AsyncCreateUploadLocationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>> PrepareAsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>>(PrepareAsyncCreateUploadLocationRaw(context, request, cq)); + } + // CreateDownloadLocation creates a signed url to download artifacts. + virtual ::grpc::Status CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::flyteidl::service::CreateDownloadLocationResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>> AsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>>(AsyncCreateDownloadLocationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>> PrepareAsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>>(PrepareAsyncCreateDownloadLocationRaw(context, request, cq)); + } + // CreateDownloadLocation creates a signed url to download artifacts. + virtual ::grpc::Status CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::flyteidl::service::CreateDownloadLinkResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>> AsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>>(AsyncCreateDownloadLinkRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>> PrepareAsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>>(PrepareAsyncCreateDownloadLinkRaw(context, request, cq)); + } + virtual ::grpc::Status GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::flyteidl::service::GetDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>> AsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>>(AsyncGetDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>> PrepareAsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>>(PrepareAsyncGetDataRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) = 0; + virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) = 0; + virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // CreateDownloadLocation creates a signed url to download artifacts. + virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) = 0; + virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) = 0; + virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // CreateDownloadLocation creates a signed url to download artifacts. + virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) = 0; + virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) = 0; + virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, std::function) = 0; + virtual void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, std::function) = 0; + virtual void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>* AsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>* PrepareAsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>* AsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>* PrepareAsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>* AsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>* PrepareAsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>* AsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>* PrepareAsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::flyteidl::service::CreateUploadLocationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>> AsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>>(AsyncCreateUploadLocationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>> PrepareAsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>>(PrepareAsyncCreateUploadLocationRaw(context, request, cq)); + } + ::grpc::Status CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::flyteidl::service::CreateDownloadLocationResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>> AsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>>(AsyncCreateDownloadLocationRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>> PrepareAsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>>(PrepareAsyncCreateDownloadLocationRaw(context, request, cq)); + } + ::grpc::Status CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::flyteidl::service::CreateDownloadLinkResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>> AsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>>(AsyncCreateDownloadLinkRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>> PrepareAsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>>(PrepareAsyncCreateDownloadLinkRaw(context, request, cq)); + } + ::grpc::Status GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::flyteidl::service::GetDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>> AsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>>(AsyncGetDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>> PrepareAsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>>(PrepareAsyncGetDataRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) override; + void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) override; + void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) override; + void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) override; + void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) override; + void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) override; + void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, std::function) override; + void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, std::function) override; + void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* AsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* PrepareAsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* AsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* PrepareAsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* AsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* PrepareAsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* AsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* PrepareAsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateUploadLocation_; + const ::grpc::internal::RpcMethod rpcmethod_CreateDownloadLocation_; + const ::grpc::internal::RpcMethod rpcmethod_CreateDownloadLink_; + const ::grpc::internal::RpcMethod rpcmethod_GetData_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + virtual ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response); + // CreateDownloadLocation creates a signed url to download artifacts. + virtual ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response); + // CreateDownloadLocation creates a signed url to download artifacts. + virtual ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response); + virtual ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response); + }; + template + class WithAsyncMethod_CreateUploadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateUploadLocation() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateUploadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateUploadLocation(::grpc::ServerContext* context, ::flyteidl::service::CreateUploadLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::CreateUploadLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateDownloadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateDownloadLocation() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_CreateDownloadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateDownloadLocation(::grpc::ServerContext* context, ::flyteidl::service::CreateDownloadLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::CreateDownloadLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateDownloadLink : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateDownloadLink() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_CreateDownloadLink() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateDownloadLink(::grpc::ServerContext* context, ::flyteidl::service::CreateDownloadLinkRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::CreateDownloadLinkResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetData() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_GetData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetData(::grpc::ServerContext* context, ::flyteidl::service::GetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::GetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateUploadLocation > > > AsyncService; + template + class ExperimentalWithCallbackMethod_CreateUploadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateUploadLocation() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::CreateUploadLocationRequest* request, + ::flyteidl::service::CreateUploadLocationResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateUploadLocation(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateUploadLocation( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateUploadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateDownloadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateDownloadLocation() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::CreateDownloadLocationRequest* request, + ::flyteidl::service::CreateDownloadLocationResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateDownloadLocation(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateDownloadLocation( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateDownloadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_CreateDownloadLink : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateDownloadLink() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::CreateDownloadLinkRequest* request, + ::flyteidl::service::CreateDownloadLinkResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateDownloadLink(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateDownloadLink( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateDownloadLink() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetData() { + ::grpc::Service::experimental().MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::GetDataRequest* request, + ::flyteidl::service::GetDataResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetData(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetData( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>*>( + ::grpc::Service::experimental().GetHandler(3)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateUploadLocation > > > ExperimentalCallbackService; + template + class WithGenericMethod_CreateUploadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateUploadLocation() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateUploadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateDownloadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateDownloadLocation() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_CreateDownloadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateDownloadLink : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateDownloadLink() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_CreateDownloadLink() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetData() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_GetData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateUploadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateUploadLocation() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateUploadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateUploadLocation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateDownloadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateDownloadLocation() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_CreateDownloadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateDownloadLocation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateDownloadLink : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateDownloadLink() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_CreateDownloadLink() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateDownloadLink(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetData() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_GetData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_CreateUploadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateUploadLocation() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateUploadLocation(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateUploadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateUploadLocation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateDownloadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateDownloadLocation() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateDownloadLocation(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateDownloadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateDownloadLocation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_CreateDownloadLink : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateDownloadLink() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateDownloadLink(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateDownloadLink() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateDownloadLink(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetData() { + ::grpc::Service::experimental().MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetData(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_CreateUploadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateUploadLocation() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>(std::bind(&WithStreamedUnaryMethod_CreateUploadLocation::StreamedCreateUploadLocation, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateUploadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateUploadLocation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::CreateUploadLocationRequest,::flyteidl::service::CreateUploadLocationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateDownloadLocation : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateDownloadLocation() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>(std::bind(&WithStreamedUnaryMethod_CreateDownloadLocation::StreamedCreateDownloadLocation, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateDownloadLocation() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateDownloadLocation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::CreateDownloadLocationRequest,::flyteidl::service::CreateDownloadLocationResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateDownloadLink : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateDownloadLink() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>(std::bind(&WithStreamedUnaryMethod_CreateDownloadLink::StreamedCreateDownloadLink, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateDownloadLink() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateDownloadLink(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::CreateDownloadLinkRequest,::flyteidl::service::CreateDownloadLinkResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetData() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetData::StreamedGetData, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::GetDataRequest,::flyteidl::service::GetDataResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateUploadLocation > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateUploadLocation > > > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fdataproxy_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.cc new file mode 100644 index 0000000000..4fad4d2301 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.cc @@ -0,0 +1,4341 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/dataproxy.proto + +#include "flyteidl/service/dataproxy.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fdataproxy_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; +namespace flyteidl { +namespace service { +class CreateUploadLocationResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateUploadLocationResponse_default_instance_; +class CreateUploadLocationRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateUploadLocationRequest_default_instance_; +class CreateDownloadLocationRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateDownloadLocationRequest_default_instance_; +class CreateDownloadLocationResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateDownloadLocationResponse_default_instance_; +class CreateDownloadLinkRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; +} _CreateDownloadLinkRequest_default_instance_; +class CreateDownloadLinkResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _CreateDownloadLinkResponse_default_instance_; +class PreSignedURLsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _PreSignedURLs_default_instance_; +class GetDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _GetDataRequest_default_instance_; +class GetDataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::core::LiteralMap* literal_map_; + const ::flyteidl::service::PreSignedURLs* pre_signed_urls_; + const ::flyteidl::core::Literal* literal_; +} _GetDataResponse_default_instance_; +} // namespace service +} // namespace flyteidl +static void InitDefaultsCreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_CreateUploadLocationResponse_default_instance_; + new (ptr) ::flyteidl::service::CreateUploadLocationResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::CreateUploadLocationResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsCreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_CreateUploadLocationRequest_default_instance_; + new (ptr) ::flyteidl::service::CreateUploadLocationRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::CreateUploadLocationRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsCreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_CreateDownloadLocationRequest_default_instance_; + new (ptr) ::flyteidl::service::CreateDownloadLocationRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::CreateDownloadLocationRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; + +static void InitDefaultsCreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_CreateDownloadLocationResponse_default_instance_; + new (ptr) ::flyteidl::service::CreateDownloadLocationResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::CreateDownloadLocationResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsCreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_CreateDownloadLinkRequest_default_instance_; + new (ptr) ::flyteidl::service::CreateDownloadLinkRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::CreateDownloadLinkRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, + &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsCreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_CreateDownloadLinkResponse_default_instance_; + new (ptr) ::flyteidl::service::CreateDownloadLinkResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::CreateDownloadLinkResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, + &scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base,}}; + +static void InitDefaultsPreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_PreSignedURLs_default_instance_; + new (ptr) ::flyteidl::service::PreSignedURLs(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::PreSignedURLs::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; + +static void InitDefaultsGetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_GetDataRequest_default_instance_; + new (ptr) ::flyteidl::service::GetDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::GetDataRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto}, {}}; + +static void InitDefaultsGetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_GetDataResponse_default_instance_; + new (ptr) ::flyteidl::service::GetDataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::GetDataResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base,}}; + +void InitDefaults_flyteidl_2fservice_2fdataproxy_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[9]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fservice_2fdataproxy_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fdataproxy_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fdataproxy_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, signed_url_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, native_url_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, expires_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, project_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, domain_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, filename_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, expires_in_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, content_md5_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, filename_root_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationRequest, native_url_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationRequest, expires_in_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationResponse, signed_url_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationResponse, expires_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, artifact_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, expires_in_), + offsetof(::flyteidl::service::CreateDownloadLinkRequestDefaultTypeInternal, node_execution_id_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, source_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, signed_url_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, expires_at_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, pre_signed_urls_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PreSignedURLs, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PreSignedURLs, signed_url_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::PreSignedURLs, expires_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataRequest, flyte_url_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataResponse, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::service::GetDataResponseDefaultTypeInternal, literal_map_), + offsetof(::flyteidl::service::GetDataResponseDefaultTypeInternal, pre_signed_urls_), + offsetof(::flyteidl::service::GetDataResponseDefaultTypeInternal, literal_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataResponse, data_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::service::CreateUploadLocationResponse)}, + { 8, -1, sizeof(::flyteidl::service::CreateUploadLocationRequest)}, + { 19, -1, sizeof(::flyteidl::service::CreateDownloadLocationRequest)}, + { 26, -1, sizeof(::flyteidl::service::CreateDownloadLocationResponse)}, + { 33, -1, sizeof(::flyteidl::service::CreateDownloadLinkRequest)}, + { 42, -1, sizeof(::flyteidl::service::CreateDownloadLinkResponse)}, + { 50, -1, sizeof(::flyteidl::service::PreSignedURLs)}, + { 57, -1, sizeof(::flyteidl::service::GetDataRequest)}, + { 63, -1, sizeof(::flyteidl::service::GetDataResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::service::_CreateUploadLocationResponse_default_instance_), + reinterpret_cast(&::flyteidl::service::_CreateUploadLocationRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_CreateDownloadLocationRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_CreateDownloadLocationResponse_default_instance_), + reinterpret_cast(&::flyteidl::service::_CreateDownloadLinkRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_CreateDownloadLinkResponse_default_instance_), + reinterpret_cast(&::flyteidl::service::_PreSignedURLs_default_instance_), + reinterpret_cast(&::flyteidl::service::_GetDataRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_GetDataResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto, "flyteidl/service/dataproxy.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fdataproxy_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto, 9, file_level_enum_descriptors_flyteidl_2fservice_2fdataproxy_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fdataproxy_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fdataproxy_2eproto[] = + "\n flyteidl/service/dataproxy.proto\022\020flyt" + "eidl.service\032\034google/api/annotations.pro" + "to\032\036google/protobuf/duration.proto\032\037goog" + "le/protobuf/timestamp.proto\032\036flyteidl/co" + "re/identifier.proto\032\034flyteidl/core/liter" + "als.proto\"v\n\034CreateUploadLocationRespons" + "e\022\022\n\nsigned_url\030\001 \001(\t\022\022\n\nnative_url\030\002 \001(" + "\t\022.\n\nexpires_at\030\003 \001(\0132\032.google.protobuf." + "Timestamp\"\253\001\n\033CreateUploadLocationReques" + "t\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010fi" + "lename\030\003 \001(\t\022-\n\nexpires_in\030\004 \001(\0132\031.googl" + "e.protobuf.Duration\022\023\n\013content_md5\030\005 \001(\014" + "\022\025\n\rfilename_root\030\006 \001(\t\"f\n\035CreateDownloa" + "dLocationRequest\022\022\n\nnative_url\030\001 \001(\t\022-\n\n" + "expires_in\030\002 \001(\0132\031.google.protobuf.Durat" + "ion:\002\030\001\"h\n\036CreateDownloadLocationRespons" + "e\022\022\n\nsigned_url\030\001 \001(\t\022.\n\nexpires_at\030\002 \001(" + "\0132\032.google.protobuf.Timestamp:\002\030\001\"\320\001\n\031Cr" + "eateDownloadLinkRequest\0225\n\rartifact_type" + "\030\001 \001(\0162\036.flyteidl.service.ArtifactType\022-" + "\n\nexpires_in\030\002 \001(\0132\031.google.protobuf.Dur" + "ation\022C\n\021node_execution_id\030\003 \001(\0132&.flyte" + "idl.core.NodeExecutionIdentifierH\000B\010\n\006so" + "urce\"\242\001\n\032CreateDownloadLinkResponse\022\026\n\ns" + "igned_url\030\001 \003(\tB\002\030\001\0222\n\nexpires_at\030\002 \001(\0132" + "\032.google.protobuf.TimestampB\002\030\001\0228\n\017pre_s" + "igned_urls\030\003 \001(\0132\037.flyteidl.service.PreS" + "ignedURLs\"S\n\rPreSignedURLs\022\022\n\nsigned_url" + "\030\001 \003(\t\022.\n\nexpires_at\030\002 \001(\0132\032.google.prot" + "obuf.Timestamp\"#\n\016GetDataRequest\022\021\n\tflyt" + "e_url\030\001 \001(\t\"\262\001\n\017GetDataResponse\0220\n\013liter" + "al_map\030\001 \001(\0132\031.flyteidl.core.LiteralMapH" + "\000\022:\n\017pre_signed_urls\030\002 \001(\0132\037.flyteidl.se" + "rvice.PreSignedURLsH\000\022)\n\007literal\030\003 \001(\0132\026" + ".flyteidl.core.LiteralH\000B\006\n\004data*C\n\014Arti" + "factType\022\033\n\027ARTIFACT_TYPE_UNDEFINED\020\000\022\026\n" + "\022ARTIFACT_TYPE_DECK\020\0012\342\004\n\020DataProxyServi" + "ce\022\240\001\n\024CreateUploadLocation\022-.flyteidl.s" + "ervice.CreateUploadLocationRequest\032..fly" + "teidl.service.CreateUploadLocationRespon" + "se\")\202\323\344\223\002#\"\036/api/v1/dataproxy/artifact_u" + "rn:\001*\022\246\001\n\026CreateDownloadLocation\022/.flyte" + "idl.service.CreateDownloadLocationReques" + "t\0320.flyteidl.service.CreateDownloadLocat" + "ionResponse\")\210\002\001\202\323\344\223\002 \022\036/api/v1/dataprox" + "y/artifact_urn\022\233\001\n\022CreateDownloadLink\022+." + "flyteidl.service.CreateDownloadLinkReque" + "st\032,.flyteidl.service.CreateDownloadLink" + "Response\"*\202\323\344\223\002$\"\037/api/v1/dataproxy/arti" + "fact_link:\001*\022d\n\007GetData\022 .flyteidl.servi" + "ce.GetDataRequest\032!.flyteidl.service.Get" + "DataResponse\"\024\202\323\344\223\002\016\022\014/api/v1/dataB9Z7gi" + "thub.com/flyteorg/flyteidl/gen/pb-go/fly" + "teidl/serviceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fdataproxy_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fdataproxy_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fdataproxy_2eproto, + "flyteidl/service/dataproxy.proto", &assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto, 2141, +}; + +void AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[5] = + { + ::AddDescriptors_google_2fapi_2fannotations_2eproto, + ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, + ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fdataproxy_2eproto, deps, 5); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fdataproxy_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto(); return true; }(); +namespace flyteidl { +namespace service { +const ::google::protobuf::EnumDescriptor* ArtifactType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return file_level_enum_descriptors_flyteidl_2fservice_2fdataproxy_2eproto[0]; +} +bool ArtifactType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +void CreateUploadLocationResponse::InitAsDefaultInstance() { + ::flyteidl::service::_CreateUploadLocationResponse_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class CreateUploadLocationResponse::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& expires_at(const CreateUploadLocationResponse* msg); +}; + +const ::google::protobuf::Timestamp& +CreateUploadLocationResponse::HasBitSetters::expires_at(const CreateUploadLocationResponse* msg) { + return *msg->expires_at_; +} +void CreateUploadLocationResponse::clear_expires_at() { + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateUploadLocationResponse::kSignedUrlFieldNumber; +const int CreateUploadLocationResponse::kNativeUrlFieldNumber; +const int CreateUploadLocationResponse::kExpiresAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateUploadLocationResponse::CreateUploadLocationResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.CreateUploadLocationResponse) +} +CreateUploadLocationResponse::CreateUploadLocationResponse(const CreateUploadLocationResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.signed_url().size() > 0) { + signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); + } + native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.native_url().size() > 0) { + native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); + } + if (from.has_expires_at()) { + expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); + } else { + expires_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateUploadLocationResponse) +} + +void CreateUploadLocationResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + expires_at_ = nullptr; +} + +CreateUploadLocationResponse::~CreateUploadLocationResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.CreateUploadLocationResponse) + SharedDtor(); +} + +void CreateUploadLocationResponse::SharedDtor() { + signed_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + native_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete expires_at_; +} + +void CreateUploadLocationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateUploadLocationResponse& CreateUploadLocationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void CreateUploadLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateUploadLocationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateUploadLocationResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string signed_url = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationResponse.signed_url"); + object = msg->mutable_signed_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string native_url = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationResponse.native_url"); + object = msg->mutable_native_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Timestamp expires_at = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_expires_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateUploadLocationResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.CreateUploadLocationResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string signed_url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_signed_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url().data(), static_cast(this->signed_url().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateUploadLocationResponse.signed_url")); + } else { + goto handle_unusual; + } + break; + } + + // string native_url = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_native_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->native_url().data(), static_cast(this->native_url().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateUploadLocationResponse.native_url")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp expires_at = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.CreateUploadLocationResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateUploadLocationResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateUploadLocationResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateUploadLocationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signed_url = 1; + if (this->signed_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url().data(), static_cast(this->signed_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationResponse.signed_url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->signed_url(), output); + } + + // string native_url = 2; + if (this->native_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->native_url().data(), static_cast(this->native_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationResponse.native_url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->native_url(), output); + } + + // .google.protobuf.Timestamp expires_at = 3; + if (this->has_expires_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::expires_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateUploadLocationResponse) +} + +::google::protobuf::uint8* CreateUploadLocationResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateUploadLocationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signed_url = 1; + if (this->signed_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url().data(), static_cast(this->signed_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationResponse.signed_url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->signed_url(), target); + } + + // string native_url = 2; + if (this->native_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->native_url().data(), static_cast(this->native_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationResponse.native_url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->native_url(), target); + } + + // .google.protobuf.Timestamp expires_at = 3; + if (this->has_expires_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::expires_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.CreateUploadLocationResponse) + return target; +} + +size_t CreateUploadLocationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateUploadLocationResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string signed_url = 1; + if (this->signed_url().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->signed_url()); + } + + // string native_url = 2; + if (this->native_url().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->native_url()); + } + + // .google.protobuf.Timestamp expires_at = 3; + if (this->has_expires_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateUploadLocationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateUploadLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateUploadLocationResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateUploadLocationResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateUploadLocationResponse) + MergeFrom(*source); + } +} + +void CreateUploadLocationResponse::MergeFrom(const CreateUploadLocationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateUploadLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.signed_url().size() > 0) { + + signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); + } + if (from.native_url().size() > 0) { + + native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); + } + if (from.has_expires_at()) { + mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); + } +} + +void CreateUploadLocationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateUploadLocationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateUploadLocationResponse::CopyFrom(const CreateUploadLocationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateUploadLocationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateUploadLocationResponse::IsInitialized() const { + return true; +} + +void CreateUploadLocationResponse::Swap(CreateUploadLocationResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateUploadLocationResponse::InternalSwap(CreateUploadLocationResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + signed_url_.Swap(&other->signed_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + native_url_.Swap(&other->native_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(expires_at_, other->expires_at_); +} + +::google::protobuf::Metadata CreateUploadLocationResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateUploadLocationRequest::InitAsDefaultInstance() { + ::flyteidl::service::_CreateUploadLocationRequest_default_instance_._instance.get_mutable()->expires_in_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +class CreateUploadLocationRequest::HasBitSetters { + public: + static const ::google::protobuf::Duration& expires_in(const CreateUploadLocationRequest* msg); +}; + +const ::google::protobuf::Duration& +CreateUploadLocationRequest::HasBitSetters::expires_in(const CreateUploadLocationRequest* msg) { + return *msg->expires_in_; +} +void CreateUploadLocationRequest::clear_expires_in() { + if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { + delete expires_in_; + } + expires_in_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateUploadLocationRequest::kProjectFieldNumber; +const int CreateUploadLocationRequest::kDomainFieldNumber; +const int CreateUploadLocationRequest::kFilenameFieldNumber; +const int CreateUploadLocationRequest::kExpiresInFieldNumber; +const int CreateUploadLocationRequest::kContentMd5FieldNumber; +const int CreateUploadLocationRequest::kFilenameRootFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateUploadLocationRequest::CreateUploadLocationRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.CreateUploadLocationRequest) +} +CreateUploadLocationRequest::CreateUploadLocationRequest(const CreateUploadLocationRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filename().size() > 0) { + filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); + } + content_md5_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.content_md5().size() > 0) { + content_md5_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_md5_); + } + filename_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filename_root().size() > 0) { + filename_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_root_); + } + if (from.has_expires_in()) { + expires_in_ = new ::google::protobuf::Duration(*from.expires_in_); + } else { + expires_in_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateUploadLocationRequest) +} + +void CreateUploadLocationRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + content_md5_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + expires_in_ = nullptr; +} + +CreateUploadLocationRequest::~CreateUploadLocationRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.CreateUploadLocationRequest) + SharedDtor(); +} + +void CreateUploadLocationRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + content_md5_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete expires_in_; +} + +void CreateUploadLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateUploadLocationRequest& CreateUploadLocationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void CreateUploadLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateUploadLocationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + content_md5_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filename_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { + delete expires_in_; + } + expires_in_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateUploadLocationRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string project = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.project"); + object = msg->mutable_project(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string domain = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.domain"); + object = msg->mutable_domain(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filename = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.filename"); + object = msg->mutable_filename(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Duration expires_in = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_expires_in(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // bytes content_md5 = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + object = msg->mutable_content_md5(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParser; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string filename_root = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.filename_root"); + object = msg->mutable_filename_root(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateUploadLocationRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.CreateUploadLocationRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateUploadLocationRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateUploadLocationRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string filename = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filename())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename().data(), static_cast(this->filename().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateUploadLocationRequest.filename")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration expires_in = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_in())); + } else { + goto handle_unusual; + } + break; + } + + // bytes content_md5 = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_content_md5())); + } else { + goto handle_unusual; + } + break; + } + + // string filename_root = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filename_root())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename_root().data(), static_cast(this->filename_root().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateUploadLocationRequest.filename_root")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.CreateUploadLocationRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateUploadLocationRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateUploadLocationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateUploadLocationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string filename = 3; + if (this->filename().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename().data(), static_cast(this->filename().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.filename"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->filename(), output); + } + + // .google.protobuf.Duration expires_in = 4; + if (this->has_expires_in()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, HasBitSetters::expires_in(this), output); + } + + // bytes content_md5 = 5; + if (this->content_md5().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->content_md5(), output); + } + + // string filename_root = 6; + if (this->filename_root().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename_root().data(), static_cast(this->filename_root().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.filename_root"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->filename_root(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateUploadLocationRequest) +} + +::google::protobuf::uint8* CreateUploadLocationRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateUploadLocationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string filename = 3; + if (this->filename().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename().data(), static_cast(this->filename().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.filename"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->filename(), target); + } + + // .google.protobuf.Duration expires_in = 4; + if (this->has_expires_in()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, HasBitSetters::expires_in(this), target); + } + + // bytes content_md5 = 5; + if (this->content_md5().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->content_md5(), target); + } + + // string filename_root = 6; + if (this->filename_root().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filename_root().data(), static_cast(this->filename_root().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateUploadLocationRequest.filename_root"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->filename_root(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.CreateUploadLocationRequest) + return target; +} + +size_t CreateUploadLocationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateUploadLocationRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string filename = 3; + if (this->filename().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filename()); + } + + // bytes content_md5 = 5; + if (this->content_md5().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->content_md5()); + } + + // string filename_root = 6; + if (this->filename_root().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filename_root()); + } + + // .google.protobuf.Duration expires_in = 4; + if (this->has_expires_in()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_in_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateUploadLocationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateUploadLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateUploadLocationRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateUploadLocationRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateUploadLocationRequest) + MergeFrom(*source); + } +} + +void CreateUploadLocationRequest::MergeFrom(const CreateUploadLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateUploadLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.filename().size() > 0) { + + filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); + } + if (from.content_md5().size() > 0) { + + content_md5_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_md5_); + } + if (from.filename_root().size() > 0) { + + filename_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_root_); + } + if (from.has_expires_in()) { + mutable_expires_in()->::google::protobuf::Duration::MergeFrom(from.expires_in()); + } +} + +void CreateUploadLocationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateUploadLocationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateUploadLocationRequest::CopyFrom(const CreateUploadLocationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateUploadLocationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateUploadLocationRequest::IsInitialized() const { + return true; +} + +void CreateUploadLocationRequest::Swap(CreateUploadLocationRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateUploadLocationRequest::InternalSwap(CreateUploadLocationRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + content_md5_.Swap(&other->content_md5_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + filename_root_.Swap(&other->filename_root_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(expires_in_, other->expires_in_); +} + +::google::protobuf::Metadata CreateUploadLocationRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateDownloadLocationRequest::InitAsDefaultInstance() { + ::flyteidl::service::_CreateDownloadLocationRequest_default_instance_._instance.get_mutable()->expires_in_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +class CreateDownloadLocationRequest::HasBitSetters { + public: + static const ::google::protobuf::Duration& expires_in(const CreateDownloadLocationRequest* msg); +}; + +const ::google::protobuf::Duration& +CreateDownloadLocationRequest::HasBitSetters::expires_in(const CreateDownloadLocationRequest* msg) { + return *msg->expires_in_; +} +void CreateDownloadLocationRequest::clear_expires_in() { + if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { + delete expires_in_; + } + expires_in_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateDownloadLocationRequest::kNativeUrlFieldNumber; +const int CreateDownloadLocationRequest::kExpiresInFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDownloadLocationRequest::CreateDownloadLocationRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLocationRequest) +} +CreateDownloadLocationRequest::CreateDownloadLocationRequest(const CreateDownloadLocationRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.native_url().size() > 0) { + native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); + } + if (from.has_expires_in()) { + expires_in_ = new ::google::protobuf::Duration(*from.expires_in_); + } else { + expires_in_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLocationRequest) +} + +void CreateDownloadLocationRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + expires_in_ = nullptr; +} + +CreateDownloadLocationRequest::~CreateDownloadLocationRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLocationRequest) + SharedDtor(); +} + +void CreateDownloadLocationRequest::SharedDtor() { + native_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete expires_in_; +} + +void CreateDownloadLocationRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDownloadLocationRequest& CreateDownloadLocationRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDownloadLocationRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLocationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { + delete expires_in_; + } + expires_in_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDownloadLocationRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string native_url = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateDownloadLocationRequest.native_url"); + object = msg->mutable_native_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Duration expires_in = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_expires_in(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateDownloadLocationRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.CreateDownloadLocationRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string native_url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_native_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->native_url().data(), static_cast(this->native_url().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateDownloadLocationRequest.native_url")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration expires_in = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_in())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.CreateDownloadLocationRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLocationRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDownloadLocationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLocationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string native_url = 1; + if (this->native_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->native_url().data(), static_cast(this->native_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateDownloadLocationRequest.native_url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->native_url(), output); + } + + // .google.protobuf.Duration expires_in = 2; + if (this->has_expires_in()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::expires_in(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateDownloadLocationRequest) +} + +::google::protobuf::uint8* CreateDownloadLocationRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLocationRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string native_url = 1; + if (this->native_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->native_url().data(), static_cast(this->native_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateDownloadLocationRequest.native_url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->native_url(), target); + } + + // .google.protobuf.Duration expires_in = 2; + if (this->has_expires_in()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::expires_in(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.CreateDownloadLocationRequest) + return target; +} + +size_t CreateDownloadLocationRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLocationRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string native_url = 1; + if (this->native_url().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->native_url()); + } + + // .google.protobuf.Duration expires_in = 2; + if (this->has_expires_in()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_in_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDownloadLocationRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateDownloadLocationRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLocationRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLocationRequest) + MergeFrom(*source); + } +} + +void CreateDownloadLocationRequest::MergeFrom(const CreateDownloadLocationRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLocationRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.native_url().size() > 0) { + + native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); + } + if (from.has_expires_in()) { + mutable_expires_in()->::google::protobuf::Duration::MergeFrom(from.expires_in()); + } +} + +void CreateDownloadLocationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLocationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDownloadLocationRequest::CopyFrom(const CreateDownloadLocationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLocationRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDownloadLocationRequest::IsInitialized() const { + return true; +} + +void CreateDownloadLocationRequest::Swap(CreateDownloadLocationRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDownloadLocationRequest::InternalSwap(CreateDownloadLocationRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + native_url_.Swap(&other->native_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(expires_in_, other->expires_in_); +} + +::google::protobuf::Metadata CreateDownloadLocationRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateDownloadLocationResponse::InitAsDefaultInstance() { + ::flyteidl::service::_CreateDownloadLocationResponse_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class CreateDownloadLocationResponse::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& expires_at(const CreateDownloadLocationResponse* msg); +}; + +const ::google::protobuf::Timestamp& +CreateDownloadLocationResponse::HasBitSetters::expires_at(const CreateDownloadLocationResponse* msg) { + return *msg->expires_at_; +} +void CreateDownloadLocationResponse::clear_expires_at() { + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateDownloadLocationResponse::kSignedUrlFieldNumber; +const int CreateDownloadLocationResponse::kExpiresAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDownloadLocationResponse::CreateDownloadLocationResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLocationResponse) +} +CreateDownloadLocationResponse::CreateDownloadLocationResponse(const CreateDownloadLocationResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.signed_url().size() > 0) { + signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); + } + if (from.has_expires_at()) { + expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); + } else { + expires_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLocationResponse) +} + +void CreateDownloadLocationResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + expires_at_ = nullptr; +} + +CreateDownloadLocationResponse::~CreateDownloadLocationResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLocationResponse) + SharedDtor(); +} + +void CreateDownloadLocationResponse::SharedDtor() { + signed_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete expires_at_; +} + +void CreateDownloadLocationResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDownloadLocationResponse& CreateDownloadLocationResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDownloadLocationResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLocationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDownloadLocationResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string signed_url = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateDownloadLocationResponse.signed_url"); + object = msg->mutable_signed_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Timestamp expires_at = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_expires_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateDownloadLocationResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.CreateDownloadLocationResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string signed_url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_signed_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url().data(), static_cast(this->signed_url().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateDownloadLocationResponse.signed_url")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp expires_at = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.CreateDownloadLocationResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLocationResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDownloadLocationResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLocationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signed_url = 1; + if (this->signed_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url().data(), static_cast(this->signed_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateDownloadLocationResponse.signed_url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->signed_url(), output); + } + + // .google.protobuf.Timestamp expires_at = 2; + if (this->has_expires_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::expires_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateDownloadLocationResponse) +} + +::google::protobuf::uint8* CreateDownloadLocationResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLocationResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string signed_url = 1; + if (this->signed_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url().data(), static_cast(this->signed_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateDownloadLocationResponse.signed_url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->signed_url(), target); + } + + // .google.protobuf.Timestamp expires_at = 2; + if (this->has_expires_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::expires_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.CreateDownloadLocationResponse) + return target; +} + +size_t CreateDownloadLocationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLocationResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string signed_url = 1; + if (this->signed_url().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->signed_url()); + } + + // .google.protobuf.Timestamp expires_at = 2; + if (this->has_expires_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDownloadLocationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateDownloadLocationResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLocationResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLocationResponse) + MergeFrom(*source); + } +} + +void CreateDownloadLocationResponse::MergeFrom(const CreateDownloadLocationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLocationResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.signed_url().size() > 0) { + + signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); + } + if (from.has_expires_at()) { + mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); + } +} + +void CreateDownloadLocationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLocationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDownloadLocationResponse::CopyFrom(const CreateDownloadLocationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLocationResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDownloadLocationResponse::IsInitialized() const { + return true; +} + +void CreateDownloadLocationResponse::Swap(CreateDownloadLocationResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDownloadLocationResponse::InternalSwap(CreateDownloadLocationResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + signed_url_.Swap(&other->signed_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(expires_at_, other->expires_at_); +} + +::google::protobuf::Metadata CreateDownloadLocationResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateDownloadLinkRequest::InitAsDefaultInstance() { + ::flyteidl::service::_CreateDownloadLinkRequest_default_instance_._instance.get_mutable()->expires_in_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::service::_CreateDownloadLinkRequest_default_instance_.node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); +} +class CreateDownloadLinkRequest::HasBitSetters { + public: + static const ::google::protobuf::Duration& expires_in(const CreateDownloadLinkRequest* msg); + static const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id(const CreateDownloadLinkRequest* msg); +}; + +const ::google::protobuf::Duration& +CreateDownloadLinkRequest::HasBitSetters::expires_in(const CreateDownloadLinkRequest* msg) { + return *msg->expires_in_; +} +const ::flyteidl::core::NodeExecutionIdentifier& +CreateDownloadLinkRequest::HasBitSetters::node_execution_id(const CreateDownloadLinkRequest* msg) { + return *msg->source_.node_execution_id_; +} +void CreateDownloadLinkRequest::clear_expires_in() { + if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { + delete expires_in_; + } + expires_in_ = nullptr; +} +void CreateDownloadLinkRequest::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_source(); + if (node_execution_id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + node_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node_execution_id, submessage_arena); + } + set_has_node_execution_id(); + source_.node_execution_id_ = node_execution_id; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) +} +void CreateDownloadLinkRequest::clear_node_execution_id() { + if (has_node_execution_id()) { + delete source_.node_execution_id_; + clear_has_source(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateDownloadLinkRequest::kArtifactTypeFieldNumber; +const int CreateDownloadLinkRequest::kExpiresInFieldNumber; +const int CreateDownloadLinkRequest::kNodeExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDownloadLinkRequest::CreateDownloadLinkRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLinkRequest) +} +CreateDownloadLinkRequest::CreateDownloadLinkRequest(const CreateDownloadLinkRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_expires_in()) { + expires_in_ = new ::google::protobuf::Duration(*from.expires_in_); + } else { + expires_in_ = nullptr; + } + artifact_type_ = from.artifact_type_; + clear_has_source(); + switch (from.source_case()) { + case kNodeExecutionId: { + mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLinkRequest) +} + +void CreateDownloadLinkRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::memset(&expires_in_, 0, static_cast( + reinterpret_cast(&artifact_type_) - + reinterpret_cast(&expires_in_)) + sizeof(artifact_type_)); + clear_has_source(); +} + +CreateDownloadLinkRequest::~CreateDownloadLinkRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLinkRequest) + SharedDtor(); +} + +void CreateDownloadLinkRequest::SharedDtor() { + if (this != internal_default_instance()) delete expires_in_; + if (has_source()) { + clear_source(); + } +} + +void CreateDownloadLinkRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDownloadLinkRequest& CreateDownloadLinkRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDownloadLinkRequest::clear_source() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.service.CreateDownloadLinkRequest) + switch (source_case()) { + case kNodeExecutionId: { + delete source_.node_execution_id_; + break; + } + case SOURCE_NOT_SET: { + break; + } + } + _oneof_case_[0] = SOURCE_NOT_SET; +} + + +void CreateDownloadLinkRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLinkRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { + delete expires_in_; + } + expires_in_ = nullptr; + artifact_type_ = 0; + clear_source(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDownloadLinkRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.service.ArtifactType artifact_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_artifact_type(static_cast<::flyteidl::service::ArtifactType>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .google.protobuf.Duration expires_in = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Duration::_InternalParse; + object = msg->mutable_expires_in(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; + object = msg->mutable_node_execution_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateDownloadLinkRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.CreateDownloadLinkRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.service.ArtifactType artifact_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_artifact_type(static_cast< ::flyteidl::service::ArtifactType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration expires_in = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_in())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.CreateDownloadLinkRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLinkRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDownloadLinkRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLinkRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.service.ArtifactType artifact_type = 1; + if (this->artifact_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->artifact_type(), output); + } + + // .google.protobuf.Duration expires_in = 2; + if (this->has_expires_in()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::expires_in(this), output); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + if (has_node_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::node_execution_id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateDownloadLinkRequest) +} + +::google::protobuf::uint8* CreateDownloadLinkRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLinkRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.service.ArtifactType artifact_type = 1; + if (this->artifact_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->artifact_type(), target); + } + + // .google.protobuf.Duration expires_in = 2; + if (this->has_expires_in()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::expires_in(this), target); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + if (has_node_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::node_execution_id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.CreateDownloadLinkRequest) + return target; +} + +size_t CreateDownloadLinkRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLinkRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .google.protobuf.Duration expires_in = 2; + if (this->has_expires_in()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_in_); + } + + // .flyteidl.service.ArtifactType artifact_type = 1; + if (this->artifact_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->artifact_type()); + } + + switch (source_case()) { + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + case kNodeExecutionId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *source_.node_execution_id_); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDownloadLinkRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLinkRequest) + GOOGLE_DCHECK_NE(&from, this); + const CreateDownloadLinkRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLinkRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLinkRequest) + MergeFrom(*source); + } +} + +void CreateDownloadLinkRequest::MergeFrom(const CreateDownloadLinkRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLinkRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_expires_in()) { + mutable_expires_in()->::google::protobuf::Duration::MergeFrom(from.expires_in()); + } + if (from.artifact_type() != 0) { + set_artifact_type(from.artifact_type()); + } + switch (from.source_case()) { + case kNodeExecutionId: { + mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } +} + +void CreateDownloadLinkRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLinkRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDownloadLinkRequest::CopyFrom(const CreateDownloadLinkRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLinkRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDownloadLinkRequest::IsInitialized() const { + return true; +} + +void CreateDownloadLinkRequest::Swap(CreateDownloadLinkRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDownloadLinkRequest::InternalSwap(CreateDownloadLinkRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(expires_in_, other->expires_in_); + swap(artifact_type_, other->artifact_type_); + swap(source_, other->source_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata CreateDownloadLinkRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateDownloadLinkResponse::InitAsDefaultInstance() { + ::flyteidl::service::_CreateDownloadLinkResponse_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::service::_CreateDownloadLinkResponse_default_instance_._instance.get_mutable()->pre_signed_urls_ = const_cast< ::flyteidl::service::PreSignedURLs*>( + ::flyteidl::service::PreSignedURLs::internal_default_instance()); +} +class CreateDownloadLinkResponse::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& expires_at(const CreateDownloadLinkResponse* msg); + static const ::flyteidl::service::PreSignedURLs& pre_signed_urls(const CreateDownloadLinkResponse* msg); +}; + +const ::google::protobuf::Timestamp& +CreateDownloadLinkResponse::HasBitSetters::expires_at(const CreateDownloadLinkResponse* msg) { + return *msg->expires_at_; +} +const ::flyteidl::service::PreSignedURLs& +CreateDownloadLinkResponse::HasBitSetters::pre_signed_urls(const CreateDownloadLinkResponse* msg) { + return *msg->pre_signed_urls_; +} +void CreateDownloadLinkResponse::clear_expires_at() { + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateDownloadLinkResponse::kSignedUrlFieldNumber; +const int CreateDownloadLinkResponse::kExpiresAtFieldNumber; +const int CreateDownloadLinkResponse::kPreSignedUrlsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateDownloadLinkResponse::CreateDownloadLinkResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLinkResponse) +} +CreateDownloadLinkResponse::CreateDownloadLinkResponse(const CreateDownloadLinkResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + signed_url_(from.signed_url_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_expires_at()) { + expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); + } else { + expires_at_ = nullptr; + } + if (from.has_pre_signed_urls()) { + pre_signed_urls_ = new ::flyteidl::service::PreSignedURLs(*from.pre_signed_urls_); + } else { + pre_signed_urls_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLinkResponse) +} + +void CreateDownloadLinkResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + ::memset(&expires_at_, 0, static_cast( + reinterpret_cast(&pre_signed_urls_) - + reinterpret_cast(&expires_at_)) + sizeof(pre_signed_urls_)); +} + +CreateDownloadLinkResponse::~CreateDownloadLinkResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLinkResponse) + SharedDtor(); +} + +void CreateDownloadLinkResponse::SharedDtor() { + if (this != internal_default_instance()) delete expires_at_; + if (this != internal_default_instance()) delete pre_signed_urls_; +} + +void CreateDownloadLinkResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateDownloadLinkResponse& CreateDownloadLinkResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void CreateDownloadLinkResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLinkResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signed_url_.Clear(); + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; + if (GetArenaNoVirtual() == nullptr && pre_signed_urls_ != nullptr) { + delete pre_signed_urls_; + } + pre_signed_urls_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateDownloadLinkResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string signed_url = 1 [deprecated = true]; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateDownloadLinkResponse.signed_url"); + object = msg->add_signed_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_expires_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::service::PreSignedURLs::_InternalParse; + object = msg->mutable_pre_signed_urls(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateDownloadLinkResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.CreateDownloadLinkResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string signed_url = 1 [deprecated = true]; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_signed_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url(this->signed_url_size() - 1).data(), + static_cast(this->signed_url(this->signed_url_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.CreateDownloadLinkResponse.signed_url")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_at())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pre_signed_urls())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.CreateDownloadLinkResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLinkResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateDownloadLinkResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLinkResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string signed_url = 1 [deprecated = true]; + for (int i = 0, n = this->signed_url_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url(i).data(), static_cast(this->signed_url(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateDownloadLinkResponse.signed_url"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->signed_url(i), output); + } + + // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + if (this->has_expires_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::expires_at(this), output); + } + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + if (this->has_pre_signed_urls()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::pre_signed_urls(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateDownloadLinkResponse) +} + +::google::protobuf::uint8* CreateDownloadLinkResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLinkResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string signed_url = 1 [deprecated = true]; + for (int i = 0, n = this->signed_url_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url(i).data(), static_cast(this->signed_url(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.CreateDownloadLinkResponse.signed_url"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->signed_url(i), target); + } + + // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + if (this->has_expires_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::expires_at(this), target); + } + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + if (this->has_pre_signed_urls()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::pre_signed_urls(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.CreateDownloadLinkResponse) + return target; +} + +size_t CreateDownloadLinkResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLinkResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string signed_url = 1 [deprecated = true]; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->signed_url_size()); + for (int i = 0, n = this->signed_url_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->signed_url(i)); + } + + // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + if (this->has_expires_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_at_); + } + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + if (this->has_pre_signed_urls()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *pre_signed_urls_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateDownloadLinkResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLinkResponse) + GOOGLE_DCHECK_NE(&from, this); + const CreateDownloadLinkResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLinkResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLinkResponse) + MergeFrom(*source); + } +} + +void CreateDownloadLinkResponse::MergeFrom(const CreateDownloadLinkResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLinkResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + signed_url_.MergeFrom(from.signed_url_); + if (from.has_expires_at()) { + mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); + } + if (from.has_pre_signed_urls()) { + mutable_pre_signed_urls()->::flyteidl::service::PreSignedURLs::MergeFrom(from.pre_signed_urls()); + } +} + +void CreateDownloadLinkResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLinkResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateDownloadLinkResponse::CopyFrom(const CreateDownloadLinkResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLinkResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateDownloadLinkResponse::IsInitialized() const { + return true; +} + +void CreateDownloadLinkResponse::Swap(CreateDownloadLinkResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateDownloadLinkResponse::InternalSwap(CreateDownloadLinkResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + signed_url_.InternalSwap(CastToBase(&other->signed_url_)); + swap(expires_at_, other->expires_at_); + swap(pre_signed_urls_, other->pre_signed_urls_); +} + +::google::protobuf::Metadata CreateDownloadLinkResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void PreSignedURLs::InitAsDefaultInstance() { + ::flyteidl::service::_PreSignedURLs_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +class PreSignedURLs::HasBitSetters { + public: + static const ::google::protobuf::Timestamp& expires_at(const PreSignedURLs* msg); +}; + +const ::google::protobuf::Timestamp& +PreSignedURLs::HasBitSetters::expires_at(const PreSignedURLs* msg) { + return *msg->expires_at_; +} +void PreSignedURLs::clear_expires_at() { + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PreSignedURLs::kSignedUrlFieldNumber; +const int PreSignedURLs::kExpiresAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PreSignedURLs::PreSignedURLs() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.PreSignedURLs) +} +PreSignedURLs::PreSignedURLs(const PreSignedURLs& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr), + signed_url_(from.signed_url_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_expires_at()) { + expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); + } else { + expires_at_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.PreSignedURLs) +} + +void PreSignedURLs::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base); + expires_at_ = nullptr; +} + +PreSignedURLs::~PreSignedURLs() { + // @@protoc_insertion_point(destructor:flyteidl.service.PreSignedURLs) + SharedDtor(); +} + +void PreSignedURLs::SharedDtor() { + if (this != internal_default_instance()) delete expires_at_; +} + +void PreSignedURLs::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const PreSignedURLs& PreSignedURLs::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void PreSignedURLs::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.PreSignedURLs) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + signed_url_.Clear(); + if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { + delete expires_at_; + } + expires_at_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* PreSignedURLs::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // repeated string signed_url = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + do { + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.PreSignedURLs.signed_url"); + object = msg->add_signed_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); + break; + } + // .google.protobuf.Timestamp expires_at = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Timestamp::_InternalParse; + object = msg->mutable_expires_at(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool PreSignedURLs::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.PreSignedURLs) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string signed_url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_signed_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url(this->signed_url_size() - 1).data(), + static_cast(this->signed_url(this->signed_url_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.PreSignedURLs.signed_url")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp expires_at = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expires_at())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.PreSignedURLs) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.PreSignedURLs) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void PreSignedURLs::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.PreSignedURLs) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string signed_url = 1; + for (int i = 0, n = this->signed_url_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url(i).data(), static_cast(this->signed_url(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PreSignedURLs.signed_url"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->signed_url(i), output); + } + + // .google.protobuf.Timestamp expires_at = 2; + if (this->has_expires_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::expires_at(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.PreSignedURLs) +} + +::google::protobuf::uint8* PreSignedURLs::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.PreSignedURLs) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string signed_url = 1; + for (int i = 0, n = this->signed_url_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->signed_url(i).data(), static_cast(this->signed_url(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.PreSignedURLs.signed_url"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->signed_url(i), target); + } + + // .google.protobuf.Timestamp expires_at = 2; + if (this->has_expires_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::expires_at(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.PreSignedURLs) + return target; +} + +size_t PreSignedURLs::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.PreSignedURLs) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string signed_url = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->signed_url_size()); + for (int i = 0, n = this->signed_url_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->signed_url(i)); + } + + // .google.protobuf.Timestamp expires_at = 2; + if (this->has_expires_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expires_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void PreSignedURLs::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.PreSignedURLs) + GOOGLE_DCHECK_NE(&from, this); + const PreSignedURLs* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.PreSignedURLs) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.PreSignedURLs) + MergeFrom(*source); + } +} + +void PreSignedURLs::MergeFrom(const PreSignedURLs& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.PreSignedURLs) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + signed_url_.MergeFrom(from.signed_url_); + if (from.has_expires_at()) { + mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); + } +} + +void PreSignedURLs::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.PreSignedURLs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PreSignedURLs::CopyFrom(const PreSignedURLs& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.PreSignedURLs) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PreSignedURLs::IsInitialized() const { + return true; +} + +void PreSignedURLs::Swap(PreSignedURLs* other) { + if (other == this) return; + InternalSwap(other); +} +void PreSignedURLs::InternalSwap(PreSignedURLs* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + signed_url_.InternalSwap(CastToBase(&other->signed_url_)); + swap(expires_at_, other->expires_at_); +} + +::google::protobuf::Metadata PreSignedURLs::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetDataRequest::InitAsDefaultInstance() { +} +class GetDataRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDataRequest::kFlyteUrlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetDataRequest::GetDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.GetDataRequest) +} +GetDataRequest::GetDataRequest(const GetDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + flyte_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.flyte_url().size() > 0) { + flyte_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flyte_url_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.GetDataRequest) +} + +void GetDataRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + flyte_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +GetDataRequest::~GetDataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.GetDataRequest) + SharedDtor(); +} + +void GetDataRequest::SharedDtor() { + flyte_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void GetDataRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetDataRequest& GetDataRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void GetDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.GetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + flyte_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetDataRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string flyte_url = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.GetDataRequest.flyte_url"); + object = msg->mutable_flyte_url(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.GetDataRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string flyte_url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_flyte_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flyte_url().data(), static_cast(this->flyte_url().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.GetDataRequest.flyte_url")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.GetDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.GetDataRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.GetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string flyte_url = 1; + if (this->flyte_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flyte_url().data(), static_cast(this->flyte_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.GetDataRequest.flyte_url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->flyte_url(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.GetDataRequest) +} + +::google::protobuf::uint8* GetDataRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.GetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string flyte_url = 1; + if (this->flyte_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flyte_url().data(), static_cast(this->flyte_url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.GetDataRequest.flyte_url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->flyte_url(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.GetDataRequest) + return target; +} + +size_t GetDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.GetDataRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string flyte_url = 1; + if (this->flyte_url().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->flyte_url()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.GetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetDataRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.GetDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.GetDataRequest) + MergeFrom(*source); + } +} + +void GetDataRequest::MergeFrom(const GetDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.GetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.flyte_url().size() > 0) { + + flyte_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flyte_url_); + } +} + +void GetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.GetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetDataRequest::CopyFrom(const GetDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.GetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDataRequest::IsInitialized() const { + return true; +} + +void GetDataRequest::Swap(GetDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void GetDataRequest::InternalSwap(GetDataRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + flyte_url_.Swap(&other->flyte_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata GetDataRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void GetDataResponse::InitAsDefaultInstance() { + ::flyteidl::service::_GetDataResponse_default_instance_.literal_map_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::service::_GetDataResponse_default_instance_.pre_signed_urls_ = const_cast< ::flyteidl::service::PreSignedURLs*>( + ::flyteidl::service::PreSignedURLs::internal_default_instance()); + ::flyteidl::service::_GetDataResponse_default_instance_.literal_ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); +} +class GetDataResponse::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& literal_map(const GetDataResponse* msg); + static const ::flyteidl::service::PreSignedURLs& pre_signed_urls(const GetDataResponse* msg); + static const ::flyteidl::core::Literal& literal(const GetDataResponse* msg); +}; + +const ::flyteidl::core::LiteralMap& +GetDataResponse::HasBitSetters::literal_map(const GetDataResponse* msg) { + return *msg->data_.literal_map_; +} +const ::flyteidl::service::PreSignedURLs& +GetDataResponse::HasBitSetters::pre_signed_urls(const GetDataResponse* msg) { + return *msg->data_.pre_signed_urls_; +} +const ::flyteidl::core::Literal& +GetDataResponse::HasBitSetters::literal(const GetDataResponse* msg) { + return *msg->data_.literal_; +} +void GetDataResponse::set_allocated_literal_map(::flyteidl::core::LiteralMap* literal_map) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (literal_map) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + literal_map = ::google::protobuf::internal::GetOwnedMessage( + message_arena, literal_map, submessage_arena); + } + set_has_literal_map(); + data_.literal_map_ = literal_map; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataResponse.literal_map) +} +void GetDataResponse::clear_literal_map() { + if (has_literal_map()) { + delete data_.literal_map_; + clear_has_data(); + } +} +void GetDataResponse::set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (pre_signed_urls) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + pre_signed_urls = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pre_signed_urls, submessage_arena); + } + set_has_pre_signed_urls(); + data_.pre_signed_urls_ = pre_signed_urls; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataResponse.pre_signed_urls) +} +void GetDataResponse::set_allocated_literal(::flyteidl::core::Literal* literal) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (literal) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + literal = ::google::protobuf::internal::GetOwnedMessage( + message_arena, literal, submessage_arena); + } + set_has_literal(); + data_.literal_ = literal; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataResponse.literal) +} +void GetDataResponse::clear_literal() { + if (has_literal()) { + delete data_.literal_; + clear_has_data(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDataResponse::kLiteralMapFieldNumber; +const int GetDataResponse::kPreSignedUrlsFieldNumber; +const int GetDataResponse::kLiteralFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +GetDataResponse::GetDataResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.GetDataResponse) +} +GetDataResponse::GetDataResponse(const GetDataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_data(); + switch (from.data_case()) { + case kLiteralMap: { + mutable_literal_map()->::flyteidl::core::LiteralMap::MergeFrom(from.literal_map()); + break; + } + case kPreSignedUrls: { + mutable_pre_signed_urls()->::flyteidl::service::PreSignedURLs::MergeFrom(from.pre_signed_urls()); + break; + } + case kLiteral: { + mutable_literal()->::flyteidl::core::Literal::MergeFrom(from.literal()); + break; + } + case DATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.GetDataResponse) +} + +void GetDataResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + clear_has_data(); +} + +GetDataResponse::~GetDataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.GetDataResponse) + SharedDtor(); +} + +void GetDataResponse::SharedDtor() { + if (has_data()) { + clear_data(); + } +} + +void GetDataResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetDataResponse& GetDataResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); + return *internal_default_instance(); +} + + +void GetDataResponse::clear_data() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.service.GetDataResponse) + switch (data_case()) { + case kLiteralMap: { + delete data_.literal_map_; + break; + } + case kPreSignedUrls: { + delete data_.pre_signed_urls_; + break; + } + case kLiteral: { + delete data_.literal_; + break; + } + case DATA_NOT_SET: { + break; + } + } + _oneof_case_[0] = DATA_NOT_SET; +} + + +void GetDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.GetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_data(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetDataResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.LiteralMap literal_map = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_literal_map(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::service::PreSignedURLs::_InternalParse; + object = msg->mutable_pre_signed_urls(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.Literal literal = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Literal::_InternalParse; + object = msg->mutable_literal(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetDataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.GetDataResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.LiteralMap literal_map = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_literal_map())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pre_signed_urls())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Literal literal = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_literal())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.GetDataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.GetDataResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetDataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.GetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap literal_map = 1; + if (has_literal_map()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::literal_map(this), output); + } + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + if (has_pre_signed_urls()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::pre_signed_urls(this), output); + } + + // .flyteidl.core.Literal literal = 3; + if (has_literal()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, HasBitSetters::literal(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.GetDataResponse) +} + +::google::protobuf::uint8* GetDataResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.GetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap literal_map = 1; + if (has_literal_map()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::literal_map(this), target); + } + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + if (has_pre_signed_urls()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::pre_signed_urls(this), target); + } + + // .flyteidl.core.Literal literal = 3; + if (has_literal()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, HasBitSetters::literal(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.GetDataResponse) + return target; +} + +size_t GetDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.GetDataResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (data_case()) { + // .flyteidl.core.LiteralMap literal_map = 1; + case kLiteralMap: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_.literal_map_); + break; + } + // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + case kPreSignedUrls: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_.pre_signed_urls_); + break; + } + // .flyteidl.core.Literal literal = 3; + case kLiteral: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_.literal_); + break; + } + case DATA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.GetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetDataResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.GetDataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.GetDataResponse) + MergeFrom(*source); + } +} + +void GetDataResponse::MergeFrom(const GetDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.GetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.data_case()) { + case kLiteralMap: { + mutable_literal_map()->::flyteidl::core::LiteralMap::MergeFrom(from.literal_map()); + break; + } + case kPreSignedUrls: { + mutable_pre_signed_urls()->::flyteidl::service::PreSignedURLs::MergeFrom(from.pre_signed_urls()); + break; + } + case kLiteral: { + mutable_literal()->::flyteidl::core::Literal::MergeFrom(from.literal()); + break; + } + case DATA_NOT_SET: { + break; + } + } +} + +void GetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.GetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetDataResponse::CopyFrom(const GetDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.GetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetDataResponse::IsInitialized() const { + return true; +} + +void GetDataResponse::Swap(GetDataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetDataResponse::InternalSwap(GetDataResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(data_, other->data_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata GetDataResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateUploadLocationResponse* Arena::CreateMaybeMessage< ::flyteidl::service::CreateUploadLocationResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::CreateUploadLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateUploadLocationRequest* Arena::CreateMaybeMessage< ::flyteidl::service::CreateUploadLocationRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::CreateUploadLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLocationRequest* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLocationRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLocationRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLocationResponse* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLocationResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLocationResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLinkRequest* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLinkRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLinkRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLinkResponse* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLinkResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLinkResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::PreSignedURLs* Arena::CreateMaybeMessage< ::flyteidl::service::PreSignedURLs >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::PreSignedURLs >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::GetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::service::GetDataRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::GetDataRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::GetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::service::GetDataResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::GetDataResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.h new file mode 100644 index 0000000000..3332d747b5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.h @@ -0,0 +1,2731 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/dataproxy.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fdataproxy_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fdataproxy_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "google/api/annotations.pb.h" +#include +#include +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/literals.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fdataproxy_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fdataproxy_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[9] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto(); +namespace flyteidl { +namespace service { +class CreateDownloadLinkRequest; +class CreateDownloadLinkRequestDefaultTypeInternal; +extern CreateDownloadLinkRequestDefaultTypeInternal _CreateDownloadLinkRequest_default_instance_; +class CreateDownloadLinkResponse; +class CreateDownloadLinkResponseDefaultTypeInternal; +extern CreateDownloadLinkResponseDefaultTypeInternal _CreateDownloadLinkResponse_default_instance_; +class CreateDownloadLocationRequest; +class CreateDownloadLocationRequestDefaultTypeInternal; +extern CreateDownloadLocationRequestDefaultTypeInternal _CreateDownloadLocationRequest_default_instance_; +class CreateDownloadLocationResponse; +class CreateDownloadLocationResponseDefaultTypeInternal; +extern CreateDownloadLocationResponseDefaultTypeInternal _CreateDownloadLocationResponse_default_instance_; +class CreateUploadLocationRequest; +class CreateUploadLocationRequestDefaultTypeInternal; +extern CreateUploadLocationRequestDefaultTypeInternal _CreateUploadLocationRequest_default_instance_; +class CreateUploadLocationResponse; +class CreateUploadLocationResponseDefaultTypeInternal; +extern CreateUploadLocationResponseDefaultTypeInternal _CreateUploadLocationResponse_default_instance_; +class GetDataRequest; +class GetDataRequestDefaultTypeInternal; +extern GetDataRequestDefaultTypeInternal _GetDataRequest_default_instance_; +class GetDataResponse; +class GetDataResponseDefaultTypeInternal; +extern GetDataResponseDefaultTypeInternal _GetDataResponse_default_instance_; +class PreSignedURLs; +class PreSignedURLsDefaultTypeInternal; +extern PreSignedURLsDefaultTypeInternal _PreSignedURLs_default_instance_; +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::service::CreateDownloadLinkRequest* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLinkRequest>(Arena*); +template<> ::flyteidl::service::CreateDownloadLinkResponse* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLinkResponse>(Arena*); +template<> ::flyteidl::service::CreateDownloadLocationRequest* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLocationRequest>(Arena*); +template<> ::flyteidl::service::CreateDownloadLocationResponse* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLocationResponse>(Arena*); +template<> ::flyteidl::service::CreateUploadLocationRequest* Arena::CreateMaybeMessage<::flyteidl::service::CreateUploadLocationRequest>(Arena*); +template<> ::flyteidl::service::CreateUploadLocationResponse* Arena::CreateMaybeMessage<::flyteidl::service::CreateUploadLocationResponse>(Arena*); +template<> ::flyteidl::service::GetDataRequest* Arena::CreateMaybeMessage<::flyteidl::service::GetDataRequest>(Arena*); +template<> ::flyteidl::service::GetDataResponse* Arena::CreateMaybeMessage<::flyteidl::service::GetDataResponse>(Arena*); +template<> ::flyteidl::service::PreSignedURLs* Arena::CreateMaybeMessage<::flyteidl::service::PreSignedURLs>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +enum ArtifactType { + ARTIFACT_TYPE_UNDEFINED = 0, + ARTIFACT_TYPE_DECK = 1, + ArtifactType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + ArtifactType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool ArtifactType_IsValid(int value); +const ArtifactType ArtifactType_MIN = ARTIFACT_TYPE_UNDEFINED; +const ArtifactType ArtifactType_MAX = ARTIFACT_TYPE_DECK; +const int ArtifactType_ARRAYSIZE = ArtifactType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ArtifactType_descriptor(); +inline const ::std::string& ArtifactType_Name(ArtifactType value) { + return ::google::protobuf::internal::NameOfEnum( + ArtifactType_descriptor(), value); +} +inline bool ArtifactType_Parse( + const ::std::string& name, ArtifactType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ArtifactType_descriptor(), name, value); +} +// =================================================================== + +class CreateUploadLocationResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateUploadLocationResponse) */ { + public: + CreateUploadLocationResponse(); + virtual ~CreateUploadLocationResponse(); + + CreateUploadLocationResponse(const CreateUploadLocationResponse& from); + + inline CreateUploadLocationResponse& operator=(const CreateUploadLocationResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateUploadLocationResponse(CreateUploadLocationResponse&& from) noexcept + : CreateUploadLocationResponse() { + *this = ::std::move(from); + } + + inline CreateUploadLocationResponse& operator=(CreateUploadLocationResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateUploadLocationResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateUploadLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateUploadLocationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(CreateUploadLocationResponse* other); + friend void swap(CreateUploadLocationResponse& a, CreateUploadLocationResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateUploadLocationResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateUploadLocationResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateUploadLocationResponse& from); + void MergeFrom(const CreateUploadLocationResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateUploadLocationResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string signed_url = 1; + void clear_signed_url(); + static const int kSignedUrlFieldNumber = 1; + const ::std::string& signed_url() const; + void set_signed_url(const ::std::string& value); + #if LANG_CXX11 + void set_signed_url(::std::string&& value); + #endif + void set_signed_url(const char* value); + void set_signed_url(const char* value, size_t size); + ::std::string* mutable_signed_url(); + ::std::string* release_signed_url(); + void set_allocated_signed_url(::std::string* signed_url); + + // string native_url = 2; + void clear_native_url(); + static const int kNativeUrlFieldNumber = 2; + const ::std::string& native_url() const; + void set_native_url(const ::std::string& value); + #if LANG_CXX11 + void set_native_url(::std::string&& value); + #endif + void set_native_url(const char* value); + void set_native_url(const char* value, size_t size); + ::std::string* mutable_native_url(); + ::std::string* release_native_url(); + void set_allocated_native_url(::std::string* native_url); + + // .google.protobuf.Timestamp expires_at = 3; + bool has_expires_at() const; + void clear_expires_at(); + static const int kExpiresAtFieldNumber = 3; + const ::google::protobuf::Timestamp& expires_at() const; + ::google::protobuf::Timestamp* release_expires_at(); + ::google::protobuf::Timestamp* mutable_expires_at(); + void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr signed_url_; + ::google::protobuf::internal::ArenaStringPtr native_url_; + ::google::protobuf::Timestamp* expires_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateUploadLocationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateUploadLocationRequest) */ { + public: + CreateUploadLocationRequest(); + virtual ~CreateUploadLocationRequest(); + + CreateUploadLocationRequest(const CreateUploadLocationRequest& from); + + inline CreateUploadLocationRequest& operator=(const CreateUploadLocationRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateUploadLocationRequest(CreateUploadLocationRequest&& from) noexcept + : CreateUploadLocationRequest() { + *this = ::std::move(from); + } + + inline CreateUploadLocationRequest& operator=(CreateUploadLocationRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateUploadLocationRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateUploadLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateUploadLocationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(CreateUploadLocationRequest* other); + friend void swap(CreateUploadLocationRequest& a, CreateUploadLocationRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateUploadLocationRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateUploadLocationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateUploadLocationRequest& from); + void MergeFrom(const CreateUploadLocationRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateUploadLocationRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string filename = 3; + void clear_filename(); + static const int kFilenameFieldNumber = 3; + const ::std::string& filename() const; + void set_filename(const ::std::string& value); + #if LANG_CXX11 + void set_filename(::std::string&& value); + #endif + void set_filename(const char* value); + void set_filename(const char* value, size_t size); + ::std::string* mutable_filename(); + ::std::string* release_filename(); + void set_allocated_filename(::std::string* filename); + + // bytes content_md5 = 5; + void clear_content_md5(); + static const int kContentMd5FieldNumber = 5; + const ::std::string& content_md5() const; + void set_content_md5(const ::std::string& value); + #if LANG_CXX11 + void set_content_md5(::std::string&& value); + #endif + void set_content_md5(const char* value); + void set_content_md5(const void* value, size_t size); + ::std::string* mutable_content_md5(); + ::std::string* release_content_md5(); + void set_allocated_content_md5(::std::string* content_md5); + + // string filename_root = 6; + void clear_filename_root(); + static const int kFilenameRootFieldNumber = 6; + const ::std::string& filename_root() const; + void set_filename_root(const ::std::string& value); + #if LANG_CXX11 + void set_filename_root(::std::string&& value); + #endif + void set_filename_root(const char* value); + void set_filename_root(const char* value, size_t size); + ::std::string* mutable_filename_root(); + ::std::string* release_filename_root(); + void set_allocated_filename_root(::std::string* filename_root); + + // .google.protobuf.Duration expires_in = 4; + bool has_expires_in() const; + void clear_expires_in(); + static const int kExpiresInFieldNumber = 4; + const ::google::protobuf::Duration& expires_in() const; + ::google::protobuf::Duration* release_expires_in(); + ::google::protobuf::Duration* mutable_expires_in(); + void set_allocated_expires_in(::google::protobuf::Duration* expires_in); + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr filename_; + ::google::protobuf::internal::ArenaStringPtr content_md5_; + ::google::protobuf::internal::ArenaStringPtr filename_root_; + ::google::protobuf::Duration* expires_in_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateDownloadLocationRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLocationRequest) */ { + public: + CreateDownloadLocationRequest(); + virtual ~CreateDownloadLocationRequest(); + + CreateDownloadLocationRequest(const CreateDownloadLocationRequest& from); + + inline CreateDownloadLocationRequest& operator=(const CreateDownloadLocationRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateDownloadLocationRequest(CreateDownloadLocationRequest&& from) noexcept + : CreateDownloadLocationRequest() { + *this = ::std::move(from); + } + + inline CreateDownloadLocationRequest& operator=(CreateDownloadLocationRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateDownloadLocationRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateDownloadLocationRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateDownloadLocationRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(CreateDownloadLocationRequest* other); + friend void swap(CreateDownloadLocationRequest& a, CreateDownloadLocationRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateDownloadLocationRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateDownloadLocationRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateDownloadLocationRequest& from); + void MergeFrom(const CreateDownloadLocationRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateDownloadLocationRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string native_url = 1; + void clear_native_url(); + static const int kNativeUrlFieldNumber = 1; + const ::std::string& native_url() const; + void set_native_url(const ::std::string& value); + #if LANG_CXX11 + void set_native_url(::std::string&& value); + #endif + void set_native_url(const char* value); + void set_native_url(const char* value, size_t size); + ::std::string* mutable_native_url(); + ::std::string* release_native_url(); + void set_allocated_native_url(::std::string* native_url); + + // .google.protobuf.Duration expires_in = 2; + bool has_expires_in() const; + void clear_expires_in(); + static const int kExpiresInFieldNumber = 2; + const ::google::protobuf::Duration& expires_in() const; + ::google::protobuf::Duration* release_expires_in(); + ::google::protobuf::Duration* mutable_expires_in(); + void set_allocated_expires_in(::google::protobuf::Duration* expires_in); + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr native_url_; + ::google::protobuf::Duration* expires_in_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateDownloadLocationResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLocationResponse) */ { + public: + CreateDownloadLocationResponse(); + virtual ~CreateDownloadLocationResponse(); + + CreateDownloadLocationResponse(const CreateDownloadLocationResponse& from); + + inline CreateDownloadLocationResponse& operator=(const CreateDownloadLocationResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateDownloadLocationResponse(CreateDownloadLocationResponse&& from) noexcept + : CreateDownloadLocationResponse() { + *this = ::std::move(from); + } + + inline CreateDownloadLocationResponse& operator=(CreateDownloadLocationResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateDownloadLocationResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateDownloadLocationResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateDownloadLocationResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(CreateDownloadLocationResponse* other); + friend void swap(CreateDownloadLocationResponse& a, CreateDownloadLocationResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateDownloadLocationResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateDownloadLocationResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateDownloadLocationResponse& from); + void MergeFrom(const CreateDownloadLocationResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateDownloadLocationResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string signed_url = 1; + void clear_signed_url(); + static const int kSignedUrlFieldNumber = 1; + const ::std::string& signed_url() const; + void set_signed_url(const ::std::string& value); + #if LANG_CXX11 + void set_signed_url(::std::string&& value); + #endif + void set_signed_url(const char* value); + void set_signed_url(const char* value, size_t size); + ::std::string* mutable_signed_url(); + ::std::string* release_signed_url(); + void set_allocated_signed_url(::std::string* signed_url); + + // .google.protobuf.Timestamp expires_at = 2; + bool has_expires_at() const; + void clear_expires_at(); + static const int kExpiresAtFieldNumber = 2; + const ::google::protobuf::Timestamp& expires_at() const; + ::google::protobuf::Timestamp* release_expires_at(); + ::google::protobuf::Timestamp* mutable_expires_at(); + void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr signed_url_; + ::google::protobuf::Timestamp* expires_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateDownloadLinkRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLinkRequest) */ { + public: + CreateDownloadLinkRequest(); + virtual ~CreateDownloadLinkRequest(); + + CreateDownloadLinkRequest(const CreateDownloadLinkRequest& from); + + inline CreateDownloadLinkRequest& operator=(const CreateDownloadLinkRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateDownloadLinkRequest(CreateDownloadLinkRequest&& from) noexcept + : CreateDownloadLinkRequest() { + *this = ::std::move(from); + } + + inline CreateDownloadLinkRequest& operator=(CreateDownloadLinkRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateDownloadLinkRequest& default_instance(); + + enum SourceCase { + kNodeExecutionId = 3, + SOURCE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateDownloadLinkRequest* internal_default_instance() { + return reinterpret_cast( + &_CreateDownloadLinkRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(CreateDownloadLinkRequest* other); + friend void swap(CreateDownloadLinkRequest& a, CreateDownloadLinkRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateDownloadLinkRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateDownloadLinkRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateDownloadLinkRequest& from); + void MergeFrom(const CreateDownloadLinkRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateDownloadLinkRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .google.protobuf.Duration expires_in = 2; + bool has_expires_in() const; + void clear_expires_in(); + static const int kExpiresInFieldNumber = 2; + const ::google::protobuf::Duration& expires_in() const; + ::google::protobuf::Duration* release_expires_in(); + ::google::protobuf::Duration* mutable_expires_in(); + void set_allocated_expires_in(::google::protobuf::Duration* expires_in); + + // .flyteidl.service.ArtifactType artifact_type = 1; + void clear_artifact_type(); + static const int kArtifactTypeFieldNumber = 1; + ::flyteidl::service::ArtifactType artifact_type() const; + void set_artifact_type(::flyteidl::service::ArtifactType value); + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + bool has_node_execution_id() const; + void clear_node_execution_id(); + static const int kNodeExecutionIdFieldNumber = 3; + const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); + void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); + + void clear_source(); + SourceCase source_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkRequest) + private: + class HasBitSetters; + void set_has_node_execution_id(); + + inline bool has_source() const; + inline void clear_has_source(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Duration* expires_in_; + int artifact_type_; + union SourceUnion { + SourceUnion() {} + ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; + } source_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateDownloadLinkResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLinkResponse) */ { + public: + CreateDownloadLinkResponse(); + virtual ~CreateDownloadLinkResponse(); + + CreateDownloadLinkResponse(const CreateDownloadLinkResponse& from); + + inline CreateDownloadLinkResponse& operator=(const CreateDownloadLinkResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateDownloadLinkResponse(CreateDownloadLinkResponse&& from) noexcept + : CreateDownloadLinkResponse() { + *this = ::std::move(from); + } + + inline CreateDownloadLinkResponse& operator=(CreateDownloadLinkResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateDownloadLinkResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateDownloadLinkResponse* internal_default_instance() { + return reinterpret_cast( + &_CreateDownloadLinkResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(CreateDownloadLinkResponse* other); + friend void swap(CreateDownloadLinkResponse& a, CreateDownloadLinkResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateDownloadLinkResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateDownloadLinkResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateDownloadLinkResponse& from); + void MergeFrom(const CreateDownloadLinkResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateDownloadLinkResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string signed_url = 1 [deprecated = true]; + PROTOBUF_DEPRECATED int signed_url_size() const; + PROTOBUF_DEPRECATED void clear_signed_url(); + PROTOBUF_DEPRECATED static const int kSignedUrlFieldNumber = 1; + PROTOBUF_DEPRECATED const ::std::string& signed_url(int index) const; + PROTOBUF_DEPRECATED ::std::string* mutable_signed_url(int index); + PROTOBUF_DEPRECATED void set_signed_url(int index, const ::std::string& value); + #if LANG_CXX11 + PROTOBUF_DEPRECATED void set_signed_url(int index, ::std::string&& value); + #endif + PROTOBUF_DEPRECATED void set_signed_url(int index, const char* value); + PROTOBUF_DEPRECATED void set_signed_url(int index, const char* value, size_t size); + PROTOBUF_DEPRECATED ::std::string* add_signed_url(); + PROTOBUF_DEPRECATED void add_signed_url(const ::std::string& value); + #if LANG_CXX11 + PROTOBUF_DEPRECATED void add_signed_url(::std::string&& value); + #endif + PROTOBUF_DEPRECATED void add_signed_url(const char* value); + PROTOBUF_DEPRECATED void add_signed_url(const char* value, size_t size); + PROTOBUF_DEPRECATED const ::google::protobuf::RepeatedPtrField<::std::string>& signed_url() const; + PROTOBUF_DEPRECATED ::google::protobuf::RepeatedPtrField<::std::string>* mutable_signed_url(); + + // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_expires_at() const; + PROTOBUF_DEPRECATED void clear_expires_at(); + PROTOBUF_DEPRECATED static const int kExpiresAtFieldNumber = 2; + PROTOBUF_DEPRECATED const ::google::protobuf::Timestamp& expires_at() const; + PROTOBUF_DEPRECATED ::google::protobuf::Timestamp* release_expires_at(); + PROTOBUF_DEPRECATED ::google::protobuf::Timestamp* mutable_expires_at(); + PROTOBUF_DEPRECATED void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + bool has_pre_signed_urls() const; + void clear_pre_signed_urls(); + static const int kPreSignedUrlsFieldNumber = 3; + const ::flyteidl::service::PreSignedURLs& pre_signed_urls() const; + ::flyteidl::service::PreSignedURLs* release_pre_signed_urls(); + ::flyteidl::service::PreSignedURLs* mutable_pre_signed_urls(); + void set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls); + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> signed_url_; + ::google::protobuf::Timestamp* expires_at_; + ::flyteidl::service::PreSignedURLs* pre_signed_urls_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class PreSignedURLs final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.PreSignedURLs) */ { + public: + PreSignedURLs(); + virtual ~PreSignedURLs(); + + PreSignedURLs(const PreSignedURLs& from); + + inline PreSignedURLs& operator=(const PreSignedURLs& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PreSignedURLs(PreSignedURLs&& from) noexcept + : PreSignedURLs() { + *this = ::std::move(from); + } + + inline PreSignedURLs& operator=(PreSignedURLs&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const PreSignedURLs& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PreSignedURLs* internal_default_instance() { + return reinterpret_cast( + &_PreSignedURLs_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(PreSignedURLs* other); + friend void swap(PreSignedURLs& a, PreSignedURLs& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PreSignedURLs* New() const final { + return CreateMaybeMessage(nullptr); + } + + PreSignedURLs* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const PreSignedURLs& from); + void MergeFrom(const PreSignedURLs& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PreSignedURLs* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string signed_url = 1; + int signed_url_size() const; + void clear_signed_url(); + static const int kSignedUrlFieldNumber = 1; + const ::std::string& signed_url(int index) const; + ::std::string* mutable_signed_url(int index); + void set_signed_url(int index, const ::std::string& value); + #if LANG_CXX11 + void set_signed_url(int index, ::std::string&& value); + #endif + void set_signed_url(int index, const char* value); + void set_signed_url(int index, const char* value, size_t size); + ::std::string* add_signed_url(); + void add_signed_url(const ::std::string& value); + #if LANG_CXX11 + void add_signed_url(::std::string&& value); + #endif + void add_signed_url(const char* value); + void add_signed_url(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField<::std::string>& signed_url() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_signed_url(); + + // .google.protobuf.Timestamp expires_at = 2; + bool has_expires_at() const; + void clear_expires_at(); + static const int kExpiresAtFieldNumber = 2; + const ::google::protobuf::Timestamp& expires_at() const; + ::google::protobuf::Timestamp* release_expires_at(); + ::google::protobuf::Timestamp* mutable_expires_at(); + void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); + + // @@protoc_insertion_point(class_scope:flyteidl.service.PreSignedURLs) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> signed_url_; + ::google::protobuf::Timestamp* expires_at_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDataRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.GetDataRequest) */ { + public: + GetDataRequest(); + virtual ~GetDataRequest(); + + GetDataRequest(const GetDataRequest& from); + + inline GetDataRequest& operator=(const GetDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetDataRequest(GetDataRequest&& from) noexcept + : GetDataRequest() { + *this = ::std::move(from); + } + + inline GetDataRequest& operator=(GetDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetDataRequest* internal_default_instance() { + return reinterpret_cast( + &_GetDataRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(GetDataRequest* other); + friend void swap(GetDataRequest& a, GetDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetDataRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetDataRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetDataRequest& from); + void MergeFrom(const GetDataRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string flyte_url = 1; + void clear_flyte_url(); + static const int kFlyteUrlFieldNumber = 1; + const ::std::string& flyte_url() const; + void set_flyte_url(const ::std::string& value); + #if LANG_CXX11 + void set_flyte_url(::std::string&& value); + #endif + void set_flyte_url(const char* value); + void set_flyte_url(const char* value, size_t size); + ::std::string* mutable_flyte_url(); + ::std::string* release_flyte_url(); + void set_allocated_flyte_url(::std::string* flyte_url); + + // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr flyte_url_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// ------------------------------------------------------------------- + +class GetDataResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.GetDataResponse) */ { + public: + GetDataResponse(); + virtual ~GetDataResponse(); + + GetDataResponse(const GetDataResponse& from); + + inline GetDataResponse& operator=(const GetDataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + GetDataResponse(GetDataResponse&& from) noexcept + : GetDataResponse() { + *this = ::std::move(from); + } + + inline GetDataResponse& operator=(GetDataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const GetDataResponse& default_instance(); + + enum DataCase { + kLiteralMap = 1, + kPreSignedUrls = 2, + kLiteral = 3, + DATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetDataResponse* internal_default_instance() { + return reinterpret_cast( + &_GetDataResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(GetDataResponse* other); + friend void swap(GetDataResponse& a, GetDataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline GetDataResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetDataResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const GetDataResponse& from); + void MergeFrom(const GetDataResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetDataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.LiteralMap literal_map = 1; + bool has_literal_map() const; + void clear_literal_map(); + static const int kLiteralMapFieldNumber = 1; + const ::flyteidl::core::LiteralMap& literal_map() const; + ::flyteidl::core::LiteralMap* release_literal_map(); + ::flyteidl::core::LiteralMap* mutable_literal_map(); + void set_allocated_literal_map(::flyteidl::core::LiteralMap* literal_map); + + // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + bool has_pre_signed_urls() const; + void clear_pre_signed_urls(); + static const int kPreSignedUrlsFieldNumber = 2; + const ::flyteidl::service::PreSignedURLs& pre_signed_urls() const; + ::flyteidl::service::PreSignedURLs* release_pre_signed_urls(); + ::flyteidl::service::PreSignedURLs* mutable_pre_signed_urls(); + void set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls); + + // .flyteidl.core.Literal literal = 3; + bool has_literal() const; + void clear_literal(); + static const int kLiteralFieldNumber = 3; + const ::flyteidl::core::Literal& literal() const; + ::flyteidl::core::Literal* release_literal(); + ::flyteidl::core::Literal* mutable_literal(); + void set_allocated_literal(::flyteidl::core::Literal* literal); + + void clear_data(); + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataResponse) + private: + class HasBitSetters; + void set_has_literal_map(); + void set_has_pre_signed_urls(); + void set_has_literal(); + + inline bool has_data() const; + inline void clear_has_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union DataUnion { + DataUnion() {} + ::flyteidl::core::LiteralMap* literal_map_; + ::flyteidl::service::PreSignedURLs* pre_signed_urls_; + ::flyteidl::core::Literal* literal_; + } data_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// CreateUploadLocationResponse + +// string signed_url = 1; +inline void CreateUploadLocationResponse::clear_signed_url() { + signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateUploadLocationResponse::signed_url() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationResponse.signed_url) + return signed_url_.GetNoArena(); +} +inline void CreateUploadLocationResponse::set_signed_url(const ::std::string& value) { + + signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationResponse.signed_url) +} +#if LANG_CXX11 +inline void CreateUploadLocationResponse::set_signed_url(::std::string&& value) { + + signed_url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationResponse.signed_url) +} +#endif +inline void CreateUploadLocationResponse::set_signed_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationResponse.signed_url) +} +inline void CreateUploadLocationResponse::set_signed_url(const char* value, size_t size) { + + signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationResponse.signed_url) +} +inline ::std::string* CreateUploadLocationResponse::mutable_signed_url() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationResponse.signed_url) + return signed_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateUploadLocationResponse::release_signed_url() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationResponse.signed_url) + + return signed_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateUploadLocationResponse::set_allocated_signed_url(::std::string* signed_url) { + if (signed_url != nullptr) { + + } else { + + } + signed_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signed_url); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationResponse.signed_url) +} + +// string native_url = 2; +inline void CreateUploadLocationResponse::clear_native_url() { + native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateUploadLocationResponse::native_url() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationResponse.native_url) + return native_url_.GetNoArena(); +} +inline void CreateUploadLocationResponse::set_native_url(const ::std::string& value) { + + native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationResponse.native_url) +} +#if LANG_CXX11 +inline void CreateUploadLocationResponse::set_native_url(::std::string&& value) { + + native_url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationResponse.native_url) +} +#endif +inline void CreateUploadLocationResponse::set_native_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationResponse.native_url) +} +inline void CreateUploadLocationResponse::set_native_url(const char* value, size_t size) { + + native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationResponse.native_url) +} +inline ::std::string* CreateUploadLocationResponse::mutable_native_url() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationResponse.native_url) + return native_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateUploadLocationResponse::release_native_url() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationResponse.native_url) + + return native_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateUploadLocationResponse::set_allocated_native_url(::std::string* native_url) { + if (native_url != nullptr) { + + } else { + + } + native_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), native_url); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationResponse.native_url) +} + +// .google.protobuf.Timestamp expires_at = 3; +inline bool CreateUploadLocationResponse::has_expires_at() const { + return this != internal_default_instance() && expires_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& CreateUploadLocationResponse::expires_at() const { + const ::google::protobuf::Timestamp* p = expires_at_; + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationResponse.expires_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* CreateUploadLocationResponse::release_expires_at() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationResponse.expires_at) + + ::google::protobuf::Timestamp* temp = expires_at_; + expires_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* CreateUploadLocationResponse::mutable_expires_at() { + + if (expires_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + expires_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationResponse.expires_at) + return expires_at_; +} +inline void CreateUploadLocationResponse::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); + } + if (expires_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); + if (message_arena != submessage_arena) { + expires_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_at, submessage_arena); + } + + } else { + + } + expires_at_ = expires_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationResponse.expires_at) +} + +// ------------------------------------------------------------------- + +// CreateUploadLocationRequest + +// string project = 1; +inline void CreateUploadLocationRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateUploadLocationRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.project) + return project_.GetNoArena(); +} +inline void CreateUploadLocationRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.project) +} +#if LANG_CXX11 +inline void CreateUploadLocationRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.project) +} +#endif +inline void CreateUploadLocationRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.project) +} +inline void CreateUploadLocationRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.project) +} +inline ::std::string* CreateUploadLocationRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateUploadLocationRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateUploadLocationRequest::set_allocated_project(::std::string* project) { + if (project != nullptr) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.project) +} + +// string domain = 2; +inline void CreateUploadLocationRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateUploadLocationRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.domain) + return domain_.GetNoArena(); +} +inline void CreateUploadLocationRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.domain) +} +#if LANG_CXX11 +inline void CreateUploadLocationRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.domain) +} +#endif +inline void CreateUploadLocationRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.domain) +} +inline void CreateUploadLocationRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.domain) +} +inline ::std::string* CreateUploadLocationRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateUploadLocationRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateUploadLocationRequest::set_allocated_domain(::std::string* domain) { + if (domain != nullptr) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.domain) +} + +// string filename = 3; +inline void CreateUploadLocationRequest::clear_filename() { + filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateUploadLocationRequest::filename() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.filename) + return filename_.GetNoArena(); +} +inline void CreateUploadLocationRequest::set_filename(const ::std::string& value) { + + filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.filename) +} +#if LANG_CXX11 +inline void CreateUploadLocationRequest::set_filename(::std::string&& value) { + + filename_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.filename) +} +#endif +inline void CreateUploadLocationRequest::set_filename(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.filename) +} +inline void CreateUploadLocationRequest::set_filename(const char* value, size_t size) { + + filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.filename) +} +inline ::std::string* CreateUploadLocationRequest::mutable_filename() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.filename) + return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateUploadLocationRequest::release_filename() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.filename) + + return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateUploadLocationRequest::set_allocated_filename(::std::string* filename) { + if (filename != nullptr) { + + } else { + + } + filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.filename) +} + +// .google.protobuf.Duration expires_in = 4; +inline bool CreateUploadLocationRequest::has_expires_in() const { + return this != internal_default_instance() && expires_in_ != nullptr; +} +inline const ::google::protobuf::Duration& CreateUploadLocationRequest::expires_in() const { + const ::google::protobuf::Duration* p = expires_in_; + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.expires_in) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* CreateUploadLocationRequest::release_expires_in() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.expires_in) + + ::google::protobuf::Duration* temp = expires_in_; + expires_in_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* CreateUploadLocationRequest::mutable_expires_in() { + + if (expires_in_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + expires_in_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.expires_in) + return expires_in_; +} +inline void CreateUploadLocationRequest::set_allocated_expires_in(::google::protobuf::Duration* expires_in) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_in_); + } + if (expires_in) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_in)->GetArena(); + if (message_arena != submessage_arena) { + expires_in = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_in, submessage_arena); + } + + } else { + + } + expires_in_ = expires_in; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.expires_in) +} + +// bytes content_md5 = 5; +inline void CreateUploadLocationRequest::clear_content_md5() { + content_md5_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateUploadLocationRequest::content_md5() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.content_md5) + return content_md5_.GetNoArena(); +} +inline void CreateUploadLocationRequest::set_content_md5(const ::std::string& value) { + + content_md5_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.content_md5) +} +#if LANG_CXX11 +inline void CreateUploadLocationRequest::set_content_md5(::std::string&& value) { + + content_md5_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.content_md5) +} +#endif +inline void CreateUploadLocationRequest::set_content_md5(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + content_md5_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.content_md5) +} +inline void CreateUploadLocationRequest::set_content_md5(const void* value, size_t size) { + + content_md5_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.content_md5) +} +inline ::std::string* CreateUploadLocationRequest::mutable_content_md5() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.content_md5) + return content_md5_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateUploadLocationRequest::release_content_md5() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.content_md5) + + return content_md5_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateUploadLocationRequest::set_allocated_content_md5(::std::string* content_md5) { + if (content_md5 != nullptr) { + + } else { + + } + content_md5_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content_md5); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.content_md5) +} + +// string filename_root = 6; +inline void CreateUploadLocationRequest::clear_filename_root() { + filename_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateUploadLocationRequest::filename_root() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.filename_root) + return filename_root_.GetNoArena(); +} +inline void CreateUploadLocationRequest::set_filename_root(const ::std::string& value) { + + filename_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.filename_root) +} +#if LANG_CXX11 +inline void CreateUploadLocationRequest::set_filename_root(::std::string&& value) { + + filename_root_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.filename_root) +} +#endif +inline void CreateUploadLocationRequest::set_filename_root(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + filename_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.filename_root) +} +inline void CreateUploadLocationRequest::set_filename_root(const char* value, size_t size) { + + filename_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.filename_root) +} +inline ::std::string* CreateUploadLocationRequest::mutable_filename_root() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.filename_root) + return filename_root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateUploadLocationRequest::release_filename_root() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.filename_root) + + return filename_root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateUploadLocationRequest::set_allocated_filename_root(::std::string* filename_root) { + if (filename_root != nullptr) { + + } else { + + } + filename_root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename_root); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.filename_root) +} + +// ------------------------------------------------------------------- + +// CreateDownloadLocationRequest + +// string native_url = 1; +inline void CreateDownloadLocationRequest::clear_native_url() { + native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateDownloadLocationRequest::native_url() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationRequest.native_url) + return native_url_.GetNoArena(); +} +inline void CreateDownloadLocationRequest::set_native_url(const ::std::string& value) { + + native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLocationRequest.native_url) +} +#if LANG_CXX11 +inline void CreateDownloadLocationRequest::set_native_url(::std::string&& value) { + + native_url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateDownloadLocationRequest.native_url) +} +#endif +inline void CreateDownloadLocationRequest::set_native_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateDownloadLocationRequest.native_url) +} +inline void CreateDownloadLocationRequest::set_native_url(const char* value, size_t size) { + + native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateDownloadLocationRequest.native_url) +} +inline ::std::string* CreateDownloadLocationRequest::mutable_native_url() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationRequest.native_url) + return native_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateDownloadLocationRequest::release_native_url() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationRequest.native_url) + + return native_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateDownloadLocationRequest::set_allocated_native_url(::std::string* native_url) { + if (native_url != nullptr) { + + } else { + + } + native_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), native_url); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationRequest.native_url) +} + +// .google.protobuf.Duration expires_in = 2; +inline bool CreateDownloadLocationRequest::has_expires_in() const { + return this != internal_default_instance() && expires_in_ != nullptr; +} +inline const ::google::protobuf::Duration& CreateDownloadLocationRequest::expires_in() const { + const ::google::protobuf::Duration* p = expires_in_; + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationRequest.expires_in) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* CreateDownloadLocationRequest::release_expires_in() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationRequest.expires_in) + + ::google::protobuf::Duration* temp = expires_in_; + expires_in_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* CreateDownloadLocationRequest::mutable_expires_in() { + + if (expires_in_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + expires_in_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationRequest.expires_in) + return expires_in_; +} +inline void CreateDownloadLocationRequest::set_allocated_expires_in(::google::protobuf::Duration* expires_in) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_in_); + } + if (expires_in) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_in)->GetArena(); + if (message_arena != submessage_arena) { + expires_in = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_in, submessage_arena); + } + + } else { + + } + expires_in_ = expires_in; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationRequest.expires_in) +} + +// ------------------------------------------------------------------- + +// CreateDownloadLocationResponse + +// string signed_url = 1; +inline void CreateDownloadLocationResponse::clear_signed_url() { + signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& CreateDownloadLocationResponse::signed_url() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationResponse.signed_url) + return signed_url_.GetNoArena(); +} +inline void CreateDownloadLocationResponse::set_signed_url(const ::std::string& value) { + + signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLocationResponse.signed_url) +} +#if LANG_CXX11 +inline void CreateDownloadLocationResponse::set_signed_url(::std::string&& value) { + + signed_url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateDownloadLocationResponse.signed_url) +} +#endif +inline void CreateDownloadLocationResponse::set_signed_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateDownloadLocationResponse.signed_url) +} +inline void CreateDownloadLocationResponse::set_signed_url(const char* value, size_t size) { + + signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateDownloadLocationResponse.signed_url) +} +inline ::std::string* CreateDownloadLocationResponse::mutable_signed_url() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationResponse.signed_url) + return signed_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* CreateDownloadLocationResponse::release_signed_url() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationResponse.signed_url) + + return signed_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void CreateDownloadLocationResponse::set_allocated_signed_url(::std::string* signed_url) { + if (signed_url != nullptr) { + + } else { + + } + signed_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signed_url); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationResponse.signed_url) +} + +// .google.protobuf.Timestamp expires_at = 2; +inline bool CreateDownloadLocationResponse::has_expires_at() const { + return this != internal_default_instance() && expires_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& CreateDownloadLocationResponse::expires_at() const { + const ::google::protobuf::Timestamp* p = expires_at_; + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationResponse.expires_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* CreateDownloadLocationResponse::release_expires_at() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationResponse.expires_at) + + ::google::protobuf::Timestamp* temp = expires_at_; + expires_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* CreateDownloadLocationResponse::mutable_expires_at() { + + if (expires_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + expires_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationResponse.expires_at) + return expires_at_; +} +inline void CreateDownloadLocationResponse::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); + } + if (expires_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); + if (message_arena != submessage_arena) { + expires_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_at, submessage_arena); + } + + } else { + + } + expires_at_ = expires_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationResponse.expires_at) +} + +// ------------------------------------------------------------------- + +// CreateDownloadLinkRequest + +// .flyteidl.service.ArtifactType artifact_type = 1; +inline void CreateDownloadLinkRequest::clear_artifact_type() { + artifact_type_ = 0; +} +inline ::flyteidl::service::ArtifactType CreateDownloadLinkRequest::artifact_type() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkRequest.artifact_type) + return static_cast< ::flyteidl::service::ArtifactType >(artifact_type_); +} +inline void CreateDownloadLinkRequest::set_artifact_type(::flyteidl::service::ArtifactType value) { + + artifact_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLinkRequest.artifact_type) +} + +// .google.protobuf.Duration expires_in = 2; +inline bool CreateDownloadLinkRequest::has_expires_in() const { + return this != internal_default_instance() && expires_in_ != nullptr; +} +inline const ::google::protobuf::Duration& CreateDownloadLinkRequest::expires_in() const { + const ::google::protobuf::Duration* p = expires_in_; + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkRequest.expires_in) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* CreateDownloadLinkRequest::release_expires_in() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkRequest.expires_in) + + ::google::protobuf::Duration* temp = expires_in_; + expires_in_ = nullptr; + return temp; +} +inline ::google::protobuf::Duration* CreateDownloadLinkRequest::mutable_expires_in() { + + if (expires_in_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); + expires_in_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkRequest.expires_in) + return expires_in_; +} +inline void CreateDownloadLinkRequest::set_allocated_expires_in(::google::protobuf::Duration* expires_in) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_in_); + } + if (expires_in) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_in)->GetArena(); + if (message_arena != submessage_arena) { + expires_in = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_in, submessage_arena); + } + + } else { + + } + expires_in_ = expires_in; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkRequest.expires_in) +} + +// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; +inline bool CreateDownloadLinkRequest::has_node_execution_id() const { + return source_case() == kNodeExecutionId; +} +inline void CreateDownloadLinkRequest::set_has_node_execution_id() { + _oneof_case_[0] = kNodeExecutionId; +} +inline ::flyteidl::core::NodeExecutionIdentifier* CreateDownloadLinkRequest::release_node_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) + if (has_node_execution_id()) { + clear_has_source(); + ::flyteidl::core::NodeExecutionIdentifier* temp = source_.node_execution_id_; + source_.node_execution_id_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::NodeExecutionIdentifier& CreateDownloadLinkRequest::node_execution_id() const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) + return has_node_execution_id() + ? *source_.node_execution_id_ + : *reinterpret_cast< ::flyteidl::core::NodeExecutionIdentifier*>(&::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* CreateDownloadLinkRequest::mutable_node_execution_id() { + if (!has_node_execution_id()) { + clear_source(); + set_has_node_execution_id(); + source_.node_execution_id_ = CreateMaybeMessage< ::flyteidl::core::NodeExecutionIdentifier >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) + return source_.node_execution_id_; +} + +inline bool CreateDownloadLinkRequest::has_source() const { + return source_case() != SOURCE_NOT_SET; +} +inline void CreateDownloadLinkRequest::clear_has_source() { + _oneof_case_[0] = SOURCE_NOT_SET; +} +inline CreateDownloadLinkRequest::SourceCase CreateDownloadLinkRequest::source_case() const { + return CreateDownloadLinkRequest::SourceCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// CreateDownloadLinkResponse + +// repeated string signed_url = 1 [deprecated = true]; +inline int CreateDownloadLinkResponse::signed_url_size() const { + return signed_url_.size(); +} +inline void CreateDownloadLinkResponse::clear_signed_url() { + signed_url_.Clear(); +} +inline const ::std::string& CreateDownloadLinkResponse::signed_url(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkResponse.signed_url) + return signed_url_.Get(index); +} +inline ::std::string* CreateDownloadLinkResponse::mutable_signed_url(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkResponse.signed_url) + return signed_url_.Mutable(index); +} +inline void CreateDownloadLinkResponse::set_signed_url(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLinkResponse.signed_url) + signed_url_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void CreateDownloadLinkResponse::set_signed_url(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLinkResponse.signed_url) + signed_url_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void CreateDownloadLinkResponse::set_signed_url(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + signed_url_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateDownloadLinkResponse.signed_url) +} +inline void CreateDownloadLinkResponse::set_signed_url(int index, const char* value, size_t size) { + signed_url_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateDownloadLinkResponse.signed_url) +} +inline ::std::string* CreateDownloadLinkResponse::add_signed_url() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.CreateDownloadLinkResponse.signed_url) + return signed_url_.Add(); +} +inline void CreateDownloadLinkResponse::add_signed_url(const ::std::string& value) { + signed_url_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.CreateDownloadLinkResponse.signed_url) +} +#if LANG_CXX11 +inline void CreateDownloadLinkResponse::add_signed_url(::std::string&& value) { + signed_url_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.CreateDownloadLinkResponse.signed_url) +} +#endif +inline void CreateDownloadLinkResponse::add_signed_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + signed_url_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.CreateDownloadLinkResponse.signed_url) +} +inline void CreateDownloadLinkResponse::add_signed_url(const char* value, size_t size) { + signed_url_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.CreateDownloadLinkResponse.signed_url) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +CreateDownloadLinkResponse::signed_url() const { + // @@protoc_insertion_point(field_list:flyteidl.service.CreateDownloadLinkResponse.signed_url) + return signed_url_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +CreateDownloadLinkResponse::mutable_signed_url() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.CreateDownloadLinkResponse.signed_url) + return &signed_url_; +} + +// .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; +inline bool CreateDownloadLinkResponse::has_expires_at() const { + return this != internal_default_instance() && expires_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& CreateDownloadLinkResponse::expires_at() const { + const ::google::protobuf::Timestamp* p = expires_at_; + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkResponse.expires_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* CreateDownloadLinkResponse::release_expires_at() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkResponse.expires_at) + + ::google::protobuf::Timestamp* temp = expires_at_; + expires_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* CreateDownloadLinkResponse::mutable_expires_at() { + + if (expires_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + expires_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkResponse.expires_at) + return expires_at_; +} +inline void CreateDownloadLinkResponse::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); + } + if (expires_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); + if (message_arena != submessage_arena) { + expires_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_at, submessage_arena); + } + + } else { + + } + expires_at_ = expires_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkResponse.expires_at) +} + +// .flyteidl.service.PreSignedURLs pre_signed_urls = 3; +inline bool CreateDownloadLinkResponse::has_pre_signed_urls() const { + return this != internal_default_instance() && pre_signed_urls_ != nullptr; +} +inline void CreateDownloadLinkResponse::clear_pre_signed_urls() { + if (GetArenaNoVirtual() == nullptr && pre_signed_urls_ != nullptr) { + delete pre_signed_urls_; + } + pre_signed_urls_ = nullptr; +} +inline const ::flyteidl::service::PreSignedURLs& CreateDownloadLinkResponse::pre_signed_urls() const { + const ::flyteidl::service::PreSignedURLs* p = pre_signed_urls_; + // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::service::_PreSignedURLs_default_instance_); +} +inline ::flyteidl::service::PreSignedURLs* CreateDownloadLinkResponse::release_pre_signed_urls() { + // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) + + ::flyteidl::service::PreSignedURLs* temp = pre_signed_urls_; + pre_signed_urls_ = nullptr; + return temp; +} +inline ::flyteidl::service::PreSignedURLs* CreateDownloadLinkResponse::mutable_pre_signed_urls() { + + if (pre_signed_urls_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::service::PreSignedURLs>(GetArenaNoVirtual()); + pre_signed_urls_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) + return pre_signed_urls_; +} +inline void CreateDownloadLinkResponse::set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete pre_signed_urls_; + } + if (pre_signed_urls) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + pre_signed_urls = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pre_signed_urls, submessage_arena); + } + + } else { + + } + pre_signed_urls_ = pre_signed_urls; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) +} + +// ------------------------------------------------------------------- + +// PreSignedURLs + +// repeated string signed_url = 1; +inline int PreSignedURLs::signed_url_size() const { + return signed_url_.size(); +} +inline void PreSignedURLs::clear_signed_url() { + signed_url_.Clear(); +} +inline const ::std::string& PreSignedURLs::signed_url(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.service.PreSignedURLs.signed_url) + return signed_url_.Get(index); +} +inline ::std::string* PreSignedURLs::mutable_signed_url(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.service.PreSignedURLs.signed_url) + return signed_url_.Mutable(index); +} +inline void PreSignedURLs::set_signed_url(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.PreSignedURLs.signed_url) + signed_url_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void PreSignedURLs::set_signed_url(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.service.PreSignedURLs.signed_url) + signed_url_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void PreSignedURLs::set_signed_url(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + signed_url_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.service.PreSignedURLs.signed_url) +} +inline void PreSignedURLs::set_signed_url(int index, const char* value, size_t size) { + signed_url_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PreSignedURLs.signed_url) +} +inline ::std::string* PreSignedURLs::add_signed_url() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.service.PreSignedURLs.signed_url) + return signed_url_.Add(); +} +inline void PreSignedURLs::add_signed_url(const ::std::string& value) { + signed_url_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.service.PreSignedURLs.signed_url) +} +#if LANG_CXX11 +inline void PreSignedURLs::add_signed_url(::std::string&& value) { + signed_url_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.service.PreSignedURLs.signed_url) +} +#endif +inline void PreSignedURLs::add_signed_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + signed_url_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.service.PreSignedURLs.signed_url) +} +inline void PreSignedURLs::add_signed_url(const char* value, size_t size) { + signed_url_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.service.PreSignedURLs.signed_url) +} +inline const ::google::protobuf::RepeatedPtrField<::std::string>& +PreSignedURLs::signed_url() const { + // @@protoc_insertion_point(field_list:flyteidl.service.PreSignedURLs.signed_url) + return signed_url_; +} +inline ::google::protobuf::RepeatedPtrField<::std::string>* +PreSignedURLs::mutable_signed_url() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.service.PreSignedURLs.signed_url) + return &signed_url_; +} + +// .google.protobuf.Timestamp expires_at = 2; +inline bool PreSignedURLs::has_expires_at() const { + return this != internal_default_instance() && expires_at_ != nullptr; +} +inline const ::google::protobuf::Timestamp& PreSignedURLs::expires_at() const { + const ::google::protobuf::Timestamp* p = expires_at_; + // @@protoc_insertion_point(field_get:flyteidl.service.PreSignedURLs.expires_at) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* PreSignedURLs::release_expires_at() { + // @@protoc_insertion_point(field_release:flyteidl.service.PreSignedURLs.expires_at) + + ::google::protobuf::Timestamp* temp = expires_at_; + expires_at_ = nullptr; + return temp; +} +inline ::google::protobuf::Timestamp* PreSignedURLs::mutable_expires_at() { + + if (expires_at_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); + expires_at_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.PreSignedURLs.expires_at) + return expires_at_; +} +inline void PreSignedURLs::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); + } + if (expires_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); + if (message_arena != submessage_arena) { + expires_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expires_at, submessage_arena); + } + + } else { + + } + expires_at_ = expires_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PreSignedURLs.expires_at) +} + +// ------------------------------------------------------------------- + +// GetDataRequest + +// string flyte_url = 1; +inline void GetDataRequest::clear_flyte_url() { + flyte_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& GetDataRequest::flyte_url() const { + // @@protoc_insertion_point(field_get:flyteidl.service.GetDataRequest.flyte_url) + return flyte_url_.GetNoArena(); +} +inline void GetDataRequest::set_flyte_url(const ::std::string& value) { + + flyte_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.GetDataRequest.flyte_url) +} +#if LANG_CXX11 +inline void GetDataRequest::set_flyte_url(::std::string&& value) { + + flyte_url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.GetDataRequest.flyte_url) +} +#endif +inline void GetDataRequest::set_flyte_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + flyte_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.GetDataRequest.flyte_url) +} +inline void GetDataRequest::set_flyte_url(const char* value, size_t size) { + + flyte_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.GetDataRequest.flyte_url) +} +inline ::std::string* GetDataRequest::mutable_flyte_url() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataRequest.flyte_url) + return flyte_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* GetDataRequest::release_flyte_url() { + // @@protoc_insertion_point(field_release:flyteidl.service.GetDataRequest.flyte_url) + + return flyte_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void GetDataRequest::set_allocated_flyte_url(::std::string* flyte_url) { + if (flyte_url != nullptr) { + + } else { + + } + flyte_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), flyte_url); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataRequest.flyte_url) +} + +// ------------------------------------------------------------------- + +// GetDataResponse + +// .flyteidl.core.LiteralMap literal_map = 1; +inline bool GetDataResponse::has_literal_map() const { + return data_case() == kLiteralMap; +} +inline void GetDataResponse::set_has_literal_map() { + _oneof_case_[0] = kLiteralMap; +} +inline ::flyteidl::core::LiteralMap* GetDataResponse::release_literal_map() { + // @@protoc_insertion_point(field_release:flyteidl.service.GetDataResponse.literal_map) + if (has_literal_map()) { + clear_has_data(); + ::flyteidl::core::LiteralMap* temp = data_.literal_map_; + data_.literal_map_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::LiteralMap& GetDataResponse::literal_map() const { + // @@protoc_insertion_point(field_get:flyteidl.service.GetDataResponse.literal_map) + return has_literal_map() + ? *data_.literal_map_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* GetDataResponse::mutable_literal_map() { + if (!has_literal_map()) { + clear_data(); + set_has_literal_map(); + data_.literal_map_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataResponse.literal_map) + return data_.literal_map_; +} + +// .flyteidl.service.PreSignedURLs pre_signed_urls = 2; +inline bool GetDataResponse::has_pre_signed_urls() const { + return data_case() == kPreSignedUrls; +} +inline void GetDataResponse::set_has_pre_signed_urls() { + _oneof_case_[0] = kPreSignedUrls; +} +inline void GetDataResponse::clear_pre_signed_urls() { + if (has_pre_signed_urls()) { + delete data_.pre_signed_urls_; + clear_has_data(); + } +} +inline ::flyteidl::service::PreSignedURLs* GetDataResponse::release_pre_signed_urls() { + // @@protoc_insertion_point(field_release:flyteidl.service.GetDataResponse.pre_signed_urls) + if (has_pre_signed_urls()) { + clear_has_data(); + ::flyteidl::service::PreSignedURLs* temp = data_.pre_signed_urls_; + data_.pre_signed_urls_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::service::PreSignedURLs& GetDataResponse::pre_signed_urls() const { + // @@protoc_insertion_point(field_get:flyteidl.service.GetDataResponse.pre_signed_urls) + return has_pre_signed_urls() + ? *data_.pre_signed_urls_ + : *reinterpret_cast< ::flyteidl::service::PreSignedURLs*>(&::flyteidl::service::_PreSignedURLs_default_instance_); +} +inline ::flyteidl::service::PreSignedURLs* GetDataResponse::mutable_pre_signed_urls() { + if (!has_pre_signed_urls()) { + clear_data(); + set_has_pre_signed_urls(); + data_.pre_signed_urls_ = CreateMaybeMessage< ::flyteidl::service::PreSignedURLs >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataResponse.pre_signed_urls) + return data_.pre_signed_urls_; +} + +// .flyteidl.core.Literal literal = 3; +inline bool GetDataResponse::has_literal() const { + return data_case() == kLiteral; +} +inline void GetDataResponse::set_has_literal() { + _oneof_case_[0] = kLiteral; +} +inline ::flyteidl::core::Literal* GetDataResponse::release_literal() { + // @@protoc_insertion_point(field_release:flyteidl.service.GetDataResponse.literal) + if (has_literal()) { + clear_has_data(); + ::flyteidl::core::Literal* temp = data_.literal_; + data_.literal_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::core::Literal& GetDataResponse::literal() const { + // @@protoc_insertion_point(field_get:flyteidl.service.GetDataResponse.literal) + return has_literal() + ? *data_.literal_ + : *reinterpret_cast< ::flyteidl::core::Literal*>(&::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* GetDataResponse::mutable_literal() { + if (!has_literal()) { + clear_data(); + set_has_literal(); + data_.literal_ = CreateMaybeMessage< ::flyteidl::core::Literal >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataResponse.literal) + return data_.literal_; +} + +inline bool GetDataResponse::has_data() const { + return data_case() != DATA_NOT_SET; +} +inline void GetDataResponse::clear_has_data() { + _oneof_case_[0] = DATA_NOT_SET; +} +inline GetDataResponse::DataCase GetDataResponse::data_case() const { + return GetDataResponse::DataCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::service::ArtifactType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::service::ArtifactType>() { + return ::flyteidl::service::ArtifactType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fdataproxy_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc new file mode 100644 index 0000000000..be7a2ec520 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc @@ -0,0 +1,169 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/external_plugin_service.proto + +#include "flyteidl/service/external_plugin_service.pb.h" +#include "flyteidl/service/external_plugin_service.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* ExternalPluginService_method_names[] = { + "/flyteidl.service.ExternalPluginService/CreateTask", + "/flyteidl.service.ExternalPluginService/GetTask", + "/flyteidl.service.ExternalPluginService/DeleteTask", +}; + +std::unique_ptr< ExternalPluginService::Stub> ExternalPluginService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< ExternalPluginService::Stub> stub(new ExternalPluginService::Stub(channel)); + return stub; +} + +ExternalPluginService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateTask_(ExternalPluginService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTask_(ExternalPluginService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteTask_(ExternalPluginService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status ExternalPluginService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* ExternalPluginService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* ExternalPluginService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); +} + +::grpc::Status ExternalPluginService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* ExternalPluginService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* ExternalPluginService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); +} + +::grpc::Status ExternalPluginService::Stub::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTask_, context, request, response); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* ExternalPluginService::Stub::AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* ExternalPluginService::Stub::PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); +} + +ExternalPluginService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + ExternalPluginService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>( + std::mem_fn(&ExternalPluginService::Service::CreateTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ExternalPluginService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>( + std::mem_fn(&ExternalPluginService::Service::GetTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + ExternalPluginService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>( + std::mem_fn(&ExternalPluginService::Service::DeleteTask), this))); +} + +ExternalPluginService::Service::~Service() { +} + +::grpc::Status ExternalPluginService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ExternalPluginService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status ExternalPluginService::Service::DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h new file mode 100644 index 0000000000..bd26ab1805 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h @@ -0,0 +1,587 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/external_plugin_service.proto +#ifndef GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED + +#include "flyteidl/service/external_plugin_service.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. +class ExternalPluginService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.ExternalPluginService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Send a task create request to the backend plugin server. + virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + // Get job status. + virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + // Delete the task resource. + virtual ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>>(AsyncDeleteTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Send a task create request to the backend plugin server. + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Get job status. + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Delete the task resource. + virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>>(AsyncDeleteTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function) override; + void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function) override; + void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) override; + void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) override; + void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetTask_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteTask_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Send a task create request to the backend plugin server. + virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response); + // Get job status. + virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response); + // Delete the task resource. + virtual ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response); + }; + template + class WithAsyncMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateTask() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::service::TaskCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::TaskCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTask() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::service::TaskGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::TaskGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DeleteTask() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteTask(::grpc::ServerContext* context, ::flyteidl::service::TaskDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::TaskDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateTask > > AsyncService; + template + class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::TaskCreateRequest* request, + ::flyteidl::service::TaskCreateResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->CreateTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_CreateTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::TaskGetRequest* request, + ::flyteidl::service::TaskGetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DeleteTask() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::TaskDeleteRequest* request, + ::flyteidl::service::TaskDeleteResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DeleteTask(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DeleteTask( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateTask > > ExperimentalCallbackService; + template + class WithGenericMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateTask() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTask() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DeleteTask() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateTask() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTask() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DeleteTask() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_CreateTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->CreateTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void CreateTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DeleteTask() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->DeleteTask(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateTask() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::TaskCreateRequest,::flyteidl::service::TaskCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTask() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::TaskGetRequest,::flyteidl::service::TaskGetResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DeleteTask() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteTask::StreamedDeleteTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_DeleteTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::TaskDeleteRequest,::flyteidl::service::TaskDeleteResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateTask > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateTask > > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc new file mode 100644 index 0000000000..f353dcdd01 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc @@ -0,0 +1,2341 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/external_plugin_service.proto + +#include "flyteidl/service/external_plugin_service.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; +namespace flyteidl { +namespace service { +class TaskCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskCreateRequest_default_instance_; +class TaskCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskCreateResponse_default_instance_; +class TaskGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskGetRequest_default_instance_; +class TaskGetResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskGetResponse_default_instance_; +class TaskDeleteRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskDeleteRequest_default_instance_; +class TaskDeleteResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _TaskDeleteResponse_default_instance_; +} // namespace service +} // namespace flyteidl +static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_TaskCreateRequest_default_instance_; + new (ptr) ::flyteidl::service::TaskCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::TaskCreateRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, + &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; + +static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_TaskCreateResponse_default_instance_; + new (ptr) ::flyteidl::service::TaskCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::TaskCreateResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; + +static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_TaskGetRequest_default_instance_; + new (ptr) ::flyteidl::service::TaskGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::TaskGetRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; + +static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_TaskGetResponse_default_instance_; + new (ptr) ::flyteidl::service::TaskGetResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::TaskGetResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, { + &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; + +static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_TaskDeleteRequest_default_instance_; + new (ptr) ::flyteidl::service::TaskDeleteRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::TaskDeleteRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; + +static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_TaskDeleteResponse_default_instance_; + new (ptr) ::flyteidl::service::TaskDeleteResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::TaskDeleteResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; + +void InitDefaults_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[1]; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, inputs_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, template__), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, output_prefix_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateResponse, job_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetRequest, job_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetResponse, state_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetResponse, outputs_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteRequest, task_type_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteRequest, job_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::service::TaskCreateRequest)}, + { 8, -1, sizeof(::flyteidl::service::TaskCreateResponse)}, + { 14, -1, sizeof(::flyteidl::service::TaskGetRequest)}, + { 21, -1, sizeof(::flyteidl::service::TaskGetResponse)}, + { 28, -1, sizeof(::flyteidl::service::TaskDeleteRequest)}, + { 35, -1, sizeof(::flyteidl::service::TaskDeleteResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::service::_TaskCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_TaskCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::service::_TaskGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_TaskGetResponse_default_instance_), + reinterpret_cast(&::flyteidl::service::_TaskDeleteRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_TaskDeleteResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, "flyteidl/service/external_plugin_service.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, 6, file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[] = + "\n.flyteidl/service/external_plugin_servi" + "ce.proto\022\020flyteidl.service\032\034flyteidl/cor" + "e/literals.proto\032\031flyteidl/core/tasks.pr" + "oto\032\035flyteidl/core/interface.proto\"\210\001\n\021T" + "askCreateRequest\022)\n\006inputs\030\001 \001(\0132\031.flyte" + "idl.core.LiteralMap\022-\n\010template\030\002 \001(\0132\033." + "flyteidl.core.TaskTemplate\022\025\n\routput_pre" + "fix\030\003 \001(\t:\002\030\001\"(\n\022TaskCreateResponse\022\016\n\006j" + "ob_id\030\001 \001(\t:\002\030\001\"7\n\016TaskGetRequest\022\021\n\ttas" + "k_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"i\n\017Task" + "GetResponse\022&\n\005state\030\001 \001(\0162\027.flyteidl.se" + "rvice.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl." + "core.LiteralMap:\002\030\001\":\n\021TaskDeleteRequest" + "\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"" + "\030\n\022TaskDeleteResponse:\002\030\001*b\n\005State\022\025\n\021RE" + "TRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001" + "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + "\004\032\002\030\0012\250\002\n\025ExternalPluginService\022\\\n\nCreat" + "eTask\022#.flyteidl.service.TaskCreateReque" + "st\032$.flyteidl.service.TaskCreateResponse" + "\"\003\210\002\001\022S\n\007GetTask\022 .flyteidl.service.Task" + "GetRequest\032!.flyteidl.service.TaskGetRes" + "ponse\"\003\210\002\001\022\\\n\nDeleteTask\022#.flyteidl.serv" + "ice.TaskDeleteRequest\032$.flyteidl.service" + ".TaskDeleteResponse\"\003\210\002\001B9Z7github.com/f" + "lyteorg/flyteidl/gen/pb-go/flyteidl/serv" + "iceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, + "flyteidl/service/external_plugin_service.proto", &assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, 1051, +}; + +void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[3] = + { + ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, + ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, + ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, deps, 3); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); return true; }(); +namespace flyteidl { +namespace service { +const ::google::protobuf::EnumDescriptor* State_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[0]; +} +bool State_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// =================================================================== + +void TaskCreateRequest::InitAsDefaultInstance() { + ::flyteidl::service::_TaskCreateRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::service::_TaskCreateRequest_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); +} +class TaskCreateRequest::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& inputs(const TaskCreateRequest* msg); + static const ::flyteidl::core::TaskTemplate& template_(const TaskCreateRequest* msg); +}; + +const ::flyteidl::core::LiteralMap& +TaskCreateRequest::HasBitSetters::inputs(const TaskCreateRequest* msg) { + return *msg->inputs_; +} +const ::flyteidl::core::TaskTemplate& +TaskCreateRequest::HasBitSetters::template_(const TaskCreateRequest* msg) { + return *msg->template__; +} +void TaskCreateRequest::clear_inputs() { + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; +} +void TaskCreateRequest::clear_template_() { + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskCreateRequest::kInputsFieldNumber; +const int TaskCreateRequest::kTemplateFieldNumber; +const int TaskCreateRequest::kOutputPrefixFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskCreateRequest::TaskCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.TaskCreateRequest) +} +TaskCreateRequest::TaskCreateRequest(const TaskCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.output_prefix().size() > 0) { + output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); + } + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); + } else { + inputs_ = nullptr; + } + if (from.has_template_()) { + template__ = new ::flyteidl::core::TaskTemplate(*from.template__); + } else { + template__ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskCreateRequest) +} + +void TaskCreateRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&template__) - + reinterpret_cast(&inputs_)) + sizeof(template__)); +} + +TaskCreateRequest::~TaskCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.TaskCreateRequest) + SharedDtor(); +} + +void TaskCreateRequest::SharedDtor() { + output_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete template__; +} + +void TaskCreateRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskCreateRequest& TaskCreateRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + return *internal_default_instance(); +} + + +void TaskCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { + delete inputs_; + } + inputs_ = nullptr; + if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { + delete template__; + } + template__ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskCreateRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.LiteralMap inputs = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_inputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.core.TaskTemplate template = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; + object = msg->mutable_template_(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // string output_prefix = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskCreateRequest.output_prefix"); + object = msg->mutable_output_prefix(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.TaskCreateRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.LiteralMap inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskTemplate template = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + // string output_prefix = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_prefix())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.TaskCreateRequest.output_prefix")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.TaskCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskCreateRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::inputs(this), output); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::template_(this), output); + } + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskCreateRequest.output_prefix"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->output_prefix(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskCreateRequest) +} + +::google::protobuf::uint8* TaskCreateRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::inputs(this), target); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::template_(this), target); + } + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_prefix().data(), static_cast(this->output_prefix().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskCreateRequest.output_prefix"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->output_prefix(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.TaskCreateRequest) + return target; +} + +size_t TaskCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskCreateRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string output_prefix = 3; + if (this->output_prefix().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_prefix()); + } + + // .flyteidl.core.LiteralMap inputs = 1; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inputs_); + } + + // .flyteidl.core.TaskTemplate template = 2; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *template__); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskCreateRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskCreateRequest) + MergeFrom(*source); + } +} + +void TaskCreateRequest::MergeFrom(const TaskCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.output_prefix().size() > 0) { + + output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); + } + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); + } + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); + } +} + +void TaskCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskCreateRequest::CopyFrom(const TaskCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskCreateRequest::IsInitialized() const { + return true; +} + +void TaskCreateRequest::Swap(TaskCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskCreateRequest::InternalSwap(TaskCreateRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + output_prefix_.Swap(&other->output_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(inputs_, other->inputs_); + swap(template__, other->template__); +} + +::google::protobuf::Metadata TaskCreateRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskCreateResponse::InitAsDefaultInstance() { +} +class TaskCreateResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskCreateResponse::kJobIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskCreateResponse::TaskCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.TaskCreateResponse) +} +TaskCreateResponse::TaskCreateResponse(const TaskCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.job_id().size() > 0) { + job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskCreateResponse) +} + +void TaskCreateResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TaskCreateResponse::~TaskCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.TaskCreateResponse) + SharedDtor(); +} + +void TaskCreateResponse::SharedDtor() { + job_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskCreateResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskCreateResponse& TaskCreateResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + return *internal_default_instance(); +} + + +void TaskCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskCreateResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string job_id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskCreateResponse.job_id"); + object = msg->mutable_job_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.TaskCreateResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string job_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_job_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.TaskCreateResponse.job_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.TaskCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskCreateResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string job_id = 1; + if (this->job_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskCreateResponse.job_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->job_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskCreateResponse) +} + +::google::protobuf::uint8* TaskCreateResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string job_id = 1; + if (this->job_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskCreateResponse.job_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->job_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.TaskCreateResponse) + return target; +} + +size_t TaskCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskCreateResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string job_id = 1; + if (this->job_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->job_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskCreateResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskCreateResponse) + MergeFrom(*source); + } +} + +void TaskCreateResponse::MergeFrom(const TaskCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.job_id().size() > 0) { + + job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); + } +} + +void TaskCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskCreateResponse::CopyFrom(const TaskCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskCreateResponse::IsInitialized() const { + return true; +} + +void TaskCreateResponse::Swap(TaskCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskCreateResponse::InternalSwap(TaskCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + job_id_.Swap(&other->job_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata TaskCreateResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskGetRequest::InitAsDefaultInstance() { +} +class TaskGetRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskGetRequest::kTaskTypeFieldNumber; +const int TaskGetRequest::kJobIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskGetRequest::TaskGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.TaskGetRequest) +} +TaskGetRequest::TaskGetRequest(const TaskGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.job_id().size() > 0) { + job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskGetRequest) +} + +void TaskGetRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TaskGetRequest::~TaskGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.TaskGetRequest) + SharedDtor(); +} + +void TaskGetRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + job_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskGetRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskGetRequest& TaskGetRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + return *internal_default_instance(); +} + + +void TaskGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskGetRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskGetRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string job_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskGetRequest.job_id"); + object = msg->mutable_job_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.TaskGetRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.TaskGetRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // string job_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_job_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.TaskGetRequest.job_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.TaskGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskGetRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskGetRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // string job_id = 2; + if (this->job_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskGetRequest.job_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->job_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskGetRequest) +} + +::google::protobuf::uint8* TaskGetRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskGetRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // string job_id = 2; + if (this->job_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskGetRequest.job_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->job_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.TaskGetRequest) + return target; +} + +size_t TaskGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskGetRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // string job_id = 2; + if (this->job_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->job_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskGetRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskGetRequest) + MergeFrom(*source); + } +} + +void TaskGetRequest::MergeFrom(const TaskGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.job_id().size() > 0) { + + job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); + } +} + +void TaskGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskGetRequest::CopyFrom(const TaskGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskGetRequest::IsInitialized() const { + return true; +} + +void TaskGetRequest::Swap(TaskGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskGetRequest::InternalSwap(TaskGetRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + job_id_.Swap(&other->job_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata TaskGetRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskGetResponse::InitAsDefaultInstance() { + ::flyteidl::service::_TaskGetResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +class TaskGetResponse::HasBitSetters { + public: + static const ::flyteidl::core::LiteralMap& outputs(const TaskGetResponse* msg); +}; + +const ::flyteidl::core::LiteralMap& +TaskGetResponse::HasBitSetters::outputs(const TaskGetResponse* msg) { + return *msg->outputs_; +} +void TaskGetResponse::clear_outputs() { + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskGetResponse::kStateFieldNumber; +const int TaskGetResponse::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskGetResponse::TaskGetResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.TaskGetResponse) +} +TaskGetResponse::TaskGetResponse(const TaskGetResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_outputs()) { + outputs_ = new ::flyteidl::core::LiteralMap(*from.outputs_); + } else { + outputs_ = nullptr; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskGetResponse) +} + +void TaskGetResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + ::memset(&outputs_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&outputs_)) + sizeof(state_)); +} + +TaskGetResponse::~TaskGetResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.TaskGetResponse) + SharedDtor(); +} + +void TaskGetResponse::SharedDtor() { + if (this != internal_default_instance()) delete outputs_; +} + +void TaskGetResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskGetResponse& TaskGetResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + return *internal_default_instance(); +} + + +void TaskGetResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { + delete outputs_; + } + outputs_ = nullptr; + state_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskGetResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.service.State state = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; + ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); + msg->set_state(static_cast<::flyteidl::service::State>(val)); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + break; + } + // .flyteidl.core.LiteralMap outputs = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; + object = msg->mutable_outputs(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskGetResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.TaskGetResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.service.State state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::service::State >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.TaskGetResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskGetResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskGetResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.service.State state = 1; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::outputs(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskGetResponse) +} + +::google::protobuf::uint8* TaskGetResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskGetResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.service.State state = 1; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::outputs(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.TaskGetResponse) + return target; +} + +size_t TaskGetResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskGetResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap outputs = 2; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *outputs_); + } + + // .flyteidl.service.State state = 1; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskGetResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskGetResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskGetResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskGetResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskGetResponse) + MergeFrom(*source); + } +} + +void TaskGetResponse::MergeFrom(const TaskGetResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskGetResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.outputs()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void TaskGetResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskGetResponse::CopyFrom(const TaskGetResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskGetResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskGetResponse::IsInitialized() const { + return true; +} + +void TaskGetResponse::Swap(TaskGetResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskGetResponse::InternalSwap(TaskGetResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(outputs_, other->outputs_); + swap(state_, other->state_); +} + +::google::protobuf::Metadata TaskGetResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskDeleteRequest::InitAsDefaultInstance() { +} +class TaskDeleteRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskDeleteRequest::kTaskTypeFieldNumber; +const int TaskDeleteRequest::kJobIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskDeleteRequest::TaskDeleteRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.TaskDeleteRequest) +} +TaskDeleteRequest::TaskDeleteRequest(const TaskDeleteRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.task_type().size() > 0) { + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.job_id().size() > 0) { + job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskDeleteRequest) +} + +void TaskDeleteRequest::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +TaskDeleteRequest::~TaskDeleteRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.TaskDeleteRequest) + SharedDtor(); +} + +void TaskDeleteRequest::SharedDtor() { + task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + job_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskDeleteRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskDeleteRequest& TaskDeleteRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + return *internal_default_instance(); +} + + +void TaskDeleteRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskDeleteRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string task_type = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskDeleteRequest.task_type"); + object = msg->mutable_task_type(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string job_id = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskDeleteRequest.job_id"); + object = msg->mutable_job_id(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskDeleteRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.TaskDeleteRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string task_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_task_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.TaskDeleteRequest.task_type")); + } else { + goto handle_unusual; + } + break; + } + + // string job_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_job_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.TaskDeleteRequest.job_id")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.TaskDeleteRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskDeleteRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskDeleteRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskDeleteRequest.task_type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->task_type(), output); + } + + // string job_id = 2; + if (this->job_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskDeleteRequest.job_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->job_id(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskDeleteRequest) +} + +::google::protobuf::uint8* TaskDeleteRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskDeleteRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->task_type().data(), static_cast(this->task_type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskDeleteRequest.task_type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->task_type(), target); + } + + // string job_id = 2; + if (this->job_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->job_id().data(), static_cast(this->job_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.TaskDeleteRequest.job_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->job_id(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.TaskDeleteRequest) + return target; +} + +size_t TaskDeleteRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskDeleteRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string task_type = 1; + if (this->task_type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->task_type()); + } + + // string job_id = 2; + if (this->job_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->job_id()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskDeleteRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskDeleteRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskDeleteRequest) + MergeFrom(*source); + } +} + +void TaskDeleteRequest::MergeFrom(const TaskDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskDeleteRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.task_type().size() > 0) { + + task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); + } + if (from.job_id().size() > 0) { + + job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); + } +} + +void TaskDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskDeleteRequest::CopyFrom(const TaskDeleteRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskDeleteRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskDeleteRequest::IsInitialized() const { + return true; +} + +void TaskDeleteRequest::Swap(TaskDeleteRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskDeleteRequest::InternalSwap(TaskDeleteRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + job_id_.Swap(&other->job_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::google::protobuf::Metadata TaskDeleteRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskDeleteResponse::InitAsDefaultInstance() { +} +class TaskDeleteResponse::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskDeleteResponse::TaskDeleteResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.TaskDeleteResponse) +} +TaskDeleteResponse::TaskDeleteResponse(const TaskDeleteResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskDeleteResponse) +} + +void TaskDeleteResponse::SharedCtor() { +} + +TaskDeleteResponse::~TaskDeleteResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.TaskDeleteResponse) + SharedDtor(); +} + +void TaskDeleteResponse::SharedDtor() { +} + +void TaskDeleteResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const TaskDeleteResponse& TaskDeleteResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); + return *internal_default_instance(); +} + + +void TaskDeleteResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* TaskDeleteResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool TaskDeleteResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.TaskDeleteResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.TaskDeleteResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskDeleteResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void TaskDeleteResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskDeleteResponse) +} + +::google::protobuf::uint8* TaskDeleteResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskDeleteResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.TaskDeleteResponse) + return target; +} + +size_t TaskDeleteResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskDeleteResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void TaskDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskDeleteResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskDeleteResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskDeleteResponse) + MergeFrom(*source); + } +} + +void TaskDeleteResponse::MergeFrom(const TaskDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskDeleteResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TaskDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskDeleteResponse::CopyFrom(const TaskDeleteResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskDeleteResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskDeleteResponse::IsInitialized() const { + return true; +} + +void TaskDeleteResponse::Swap(TaskDeleteResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskDeleteResponse::InternalSwap(TaskDeleteResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata TaskDeleteResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::service::TaskCreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::TaskCreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::service::TaskCreateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::TaskCreateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskGetRequest* Arena::CreateMaybeMessage< ::flyteidl::service::TaskGetRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::TaskGetRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskGetResponse* Arena::CreateMaybeMessage< ::flyteidl::service::TaskGetResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::TaskGetResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::service::TaskDeleteRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::TaskDeleteRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::service::TaskDeleteResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::TaskDeleteResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h new file mode 100644 index 0000000000..82d5616c5c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h @@ -0,0 +1,1403 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/external_plugin_service.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/interface.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); +namespace flyteidl { +namespace service { +class TaskCreateRequest; +class TaskCreateRequestDefaultTypeInternal; +extern TaskCreateRequestDefaultTypeInternal _TaskCreateRequest_default_instance_; +class TaskCreateResponse; +class TaskCreateResponseDefaultTypeInternal; +extern TaskCreateResponseDefaultTypeInternal _TaskCreateResponse_default_instance_; +class TaskDeleteRequest; +class TaskDeleteRequestDefaultTypeInternal; +extern TaskDeleteRequestDefaultTypeInternal _TaskDeleteRequest_default_instance_; +class TaskDeleteResponse; +class TaskDeleteResponseDefaultTypeInternal; +extern TaskDeleteResponseDefaultTypeInternal _TaskDeleteResponse_default_instance_; +class TaskGetRequest; +class TaskGetRequestDefaultTypeInternal; +extern TaskGetRequestDefaultTypeInternal _TaskGetRequest_default_instance_; +class TaskGetResponse; +class TaskGetResponseDefaultTypeInternal; +extern TaskGetResponseDefaultTypeInternal _TaskGetResponse_default_instance_; +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::service::TaskCreateRequest* Arena::CreateMaybeMessage<::flyteidl::service::TaskCreateRequest>(Arena*); +template<> ::flyteidl::service::TaskCreateResponse* Arena::CreateMaybeMessage<::flyteidl::service::TaskCreateResponse>(Arena*); +template<> ::flyteidl::service::TaskDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::service::TaskDeleteRequest>(Arena*); +template<> ::flyteidl::service::TaskDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::service::TaskDeleteResponse>(Arena*); +template<> ::flyteidl::service::TaskGetRequest* Arena::CreateMaybeMessage<::flyteidl::service::TaskGetRequest>(Arena*); +template<> ::flyteidl::service::TaskGetResponse* Arena::CreateMaybeMessage<::flyteidl::service::TaskGetResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4, + State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), + State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() +}; +bool State_IsValid(int value); +const State State_MIN = RETRYABLE_FAILURE; +const State State_MAX = SUCCEEDED; +const int State_ARRAYSIZE = State_MAX + 1; + +const ::google::protobuf::EnumDescriptor* State_descriptor(); +inline const ::std::string& State_Name(State value) { + return ::google::protobuf::internal::NameOfEnum( + State_descriptor(), value); +} +inline bool State_Parse( + const ::std::string& name, State* value) { + return ::google::protobuf::internal::ParseNamedEnum( + State_descriptor(), name, value); +} +// =================================================================== + +class TaskCreateRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskCreateRequest) */ { + public: + TaskCreateRequest(); + virtual ~TaskCreateRequest(); + + TaskCreateRequest(const TaskCreateRequest& from); + + inline TaskCreateRequest& operator=(const TaskCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskCreateRequest(TaskCreateRequest&& from) noexcept + : TaskCreateRequest() { + *this = ::std::move(from); + } + + inline TaskCreateRequest& operator=(TaskCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskCreateRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(TaskCreateRequest* other); + friend void swap(TaskCreateRequest& a, TaskCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskCreateRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskCreateRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskCreateRequest& from); + void MergeFrom(const TaskCreateRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string output_prefix = 3; + void clear_output_prefix(); + static const int kOutputPrefixFieldNumber = 3; + const ::std::string& output_prefix() const; + void set_output_prefix(const ::std::string& value); + #if LANG_CXX11 + void set_output_prefix(::std::string&& value); + #endif + void set_output_prefix(const char* value); + void set_output_prefix(const char* value, size_t size); + ::std::string* mutable_output_prefix(); + ::std::string* release_output_prefix(); + void set_allocated_output_prefix(::std::string* output_prefix); + + // .flyteidl.core.LiteralMap inputs = 1; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::flyteidl::core::LiteralMap& inputs() const; + ::flyteidl::core::LiteralMap* release_inputs(); + ::flyteidl::core::LiteralMap* mutable_inputs(); + void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); + + // .flyteidl.core.TaskTemplate template = 2; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 2; + const ::flyteidl::core::TaskTemplate& template_() const; + ::flyteidl::core::TaskTemplate* release_template_(); + ::flyteidl::core::TaskTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr output_prefix_; + ::flyteidl::core::LiteralMap* inputs_; + ::flyteidl::core::TaskTemplate* template__; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskCreateResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskCreateResponse) */ { + public: + TaskCreateResponse(); + virtual ~TaskCreateResponse(); + + TaskCreateResponse(const TaskCreateResponse& from); + + inline TaskCreateResponse& operator=(const TaskCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskCreateResponse(TaskCreateResponse&& from) noexcept + : TaskCreateResponse() { + *this = ::std::move(from); + } + + inline TaskCreateResponse& operator=(TaskCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskCreateResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(TaskCreateResponse* other); + friend void swap(TaskCreateResponse& a, TaskCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskCreateResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskCreateResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskCreateResponse& from); + void MergeFrom(const TaskCreateResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string job_id = 1; + void clear_job_id(); + static const int kJobIdFieldNumber = 1; + const ::std::string& job_id() const; + void set_job_id(const ::std::string& value); + #if LANG_CXX11 + void set_job_id(::std::string&& value); + #endif + void set_job_id(const char* value); + void set_job_id(const char* value, size_t size); + ::std::string* mutable_job_id(); + ::std::string* release_job_id(); + void set_allocated_job_id(::std::string* job_id); + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr job_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskGetRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskGetRequest) */ { + public: + TaskGetRequest(); + virtual ~TaskGetRequest(); + + TaskGetRequest(const TaskGetRequest& from); + + inline TaskGetRequest& operator=(const TaskGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskGetRequest(TaskGetRequest&& from) noexcept + : TaskGetRequest() { + *this = ::std::move(from); + } + + inline TaskGetRequest& operator=(TaskGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskGetRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskGetRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + void Swap(TaskGetRequest* other); + friend void swap(TaskGetRequest& a, TaskGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskGetRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskGetRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskGetRequest& from); + void MergeFrom(const TaskGetRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // string job_id = 2; + void clear_job_id(); + static const int kJobIdFieldNumber = 2; + const ::std::string& job_id() const; + void set_job_id(const ::std::string& value); + #if LANG_CXX11 + void set_job_id(::std::string&& value); + #endif + void set_job_id(const char* value); + void set_job_id(const char* value, size_t size); + ::std::string* mutable_job_id(); + ::std::string* release_job_id(); + void set_allocated_job_id(::std::string* job_id); + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr job_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskGetResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskGetResponse) */ { + public: + TaskGetResponse(); + virtual ~TaskGetResponse(); + + TaskGetResponse(const TaskGetResponse& from); + + inline TaskGetResponse& operator=(const TaskGetResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskGetResponse(TaskGetResponse&& from) noexcept + : TaskGetResponse() { + *this = ::std::move(from); + } + + inline TaskGetResponse& operator=(TaskGetResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskGetResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskGetResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskGetResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + void Swap(TaskGetResponse* other); + friend void swap(TaskGetResponse& a, TaskGetResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskGetResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskGetResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskGetResponse& from); + void MergeFrom(const TaskGetResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskGetResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.LiteralMap outputs = 2; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::flyteidl::core::LiteralMap& outputs() const; + ::flyteidl::core::LiteralMap* release_outputs(); + ::flyteidl::core::LiteralMap* mutable_outputs(); + void set_allocated_outputs(::flyteidl::core::LiteralMap* outputs); + + // .flyteidl.service.State state = 1; + void clear_state(); + static const int kStateFieldNumber = 1; + ::flyteidl::service::State state() const; + void set_state(::flyteidl::service::State value); + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::LiteralMap* outputs_; + int state_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskDeleteRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskDeleteRequest) */ { + public: + TaskDeleteRequest(); + virtual ~TaskDeleteRequest(); + + TaskDeleteRequest(const TaskDeleteRequest& from); + + inline TaskDeleteRequest& operator=(const TaskDeleteRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskDeleteRequest(TaskDeleteRequest&& from) noexcept + : TaskDeleteRequest() { + *this = ::std::move(from); + } + + inline TaskDeleteRequest& operator=(TaskDeleteRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskDeleteRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskDeleteRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskDeleteRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + void Swap(TaskDeleteRequest* other); + friend void swap(TaskDeleteRequest& a, TaskDeleteRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskDeleteRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskDeleteRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskDeleteRequest& from); + void MergeFrom(const TaskDeleteRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskDeleteRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string task_type = 1; + void clear_task_type(); + static const int kTaskTypeFieldNumber = 1; + const ::std::string& task_type() const; + void set_task_type(const ::std::string& value); + #if LANG_CXX11 + void set_task_type(::std::string&& value); + #endif + void set_task_type(const char* value); + void set_task_type(const char* value, size_t size); + ::std::string* mutable_task_type(); + ::std::string* release_task_type(); + void set_allocated_task_type(::std::string* task_type); + + // string job_id = 2; + void clear_job_id(); + static const int kJobIdFieldNumber = 2; + const ::std::string& job_id() const; + void set_job_id(const ::std::string& value); + #if LANG_CXX11 + void set_job_id(::std::string&& value); + #endif + void set_job_id(const char* value); + void set_job_id(const char* value, size_t size); + ::std::string* mutable_job_id(); + ::std::string* release_job_id(); + void set_allocated_job_id(::std::string* job_id); + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr task_type_; + ::google::protobuf::internal::ArenaStringPtr job_id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; +}; +// ------------------------------------------------------------------- + +class TaskDeleteResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskDeleteResponse) */ { + public: + TaskDeleteResponse(); + virtual ~TaskDeleteResponse(); + + TaskDeleteResponse(const TaskDeleteResponse& from); + + inline TaskDeleteResponse& operator=(const TaskDeleteResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskDeleteResponse(TaskDeleteResponse&& from) noexcept + : TaskDeleteResponse() { + *this = ::std::move(from); + } + + inline TaskDeleteResponse& operator=(TaskDeleteResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const TaskDeleteResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskDeleteResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskDeleteResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + void Swap(TaskDeleteResponse* other); + friend void swap(TaskDeleteResponse& a, TaskDeleteResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskDeleteResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + TaskDeleteResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const TaskDeleteResponse& from); + void MergeFrom(const TaskDeleteResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TaskDeleteResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TaskCreateRequest + +// .flyteidl.core.LiteralMap inputs = 1; +inline bool TaskCreateRequest::has_inputs() const { + return this != internal_default_instance() && inputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& TaskCreateRequest::inputs() const { + const ::flyteidl::core::LiteralMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateRequest.inputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* TaskCreateRequest::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateRequest.inputs) + + ::flyteidl::core::LiteralMap* temp = inputs_; + inputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* TaskCreateRequest::mutable_inputs() { + + if (inputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + inputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateRequest.inputs) + return inputs_; +} +inline void TaskCreateRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, inputs, submessage_arena); + } + + } else { + + } + inputs_ = inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateRequest.inputs) +} + +// .flyteidl.core.TaskTemplate template = 2; +inline bool TaskCreateRequest::has_template_() const { + return this != internal_default_instance() && template__ != nullptr; +} +inline const ::flyteidl::core::TaskTemplate& TaskCreateRequest::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateRequest.template) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* TaskCreateRequest::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateRequest.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = nullptr; + return temp; +} +inline ::flyteidl::core::TaskTemplate* TaskCreateRequest::mutable_template_() { + + if (template__ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); + template__ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateRequest.template) + return template__; +} +inline void TaskCreateRequest::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + template_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, template_, submessage_arena); + } + + } else { + + } + template__ = template_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateRequest.template) +} + +// string output_prefix = 3; +inline void TaskCreateRequest::clear_output_prefix() { + output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskCreateRequest::output_prefix() const { + // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateRequest.output_prefix) + return output_prefix_.GetNoArena(); +} +inline void TaskCreateRequest::set_output_prefix(const ::std::string& value) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.TaskCreateRequest.output_prefix) +} +#if LANG_CXX11 +inline void TaskCreateRequest::set_output_prefix(::std::string&& value) { + + output_prefix_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskCreateRequest.output_prefix) +} +#endif +inline void TaskCreateRequest::set_output_prefix(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskCreateRequest.output_prefix) +} +inline void TaskCreateRequest::set_output_prefix(const char* value, size_t size) { + + output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskCreateRequest.output_prefix) +} +inline ::std::string* TaskCreateRequest::mutable_output_prefix() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateRequest.output_prefix) + return output_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskCreateRequest::release_output_prefix() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateRequest.output_prefix) + + return output_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskCreateRequest::set_allocated_output_prefix(::std::string* output_prefix) { + if (output_prefix != nullptr) { + + } else { + + } + output_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_prefix); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateRequest.output_prefix) +} + +// ------------------------------------------------------------------- + +// TaskCreateResponse + +// string job_id = 1; +inline void TaskCreateResponse::clear_job_id() { + job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskCreateResponse::job_id() const { + // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateResponse.job_id) + return job_id_.GetNoArena(); +} +inline void TaskCreateResponse::set_job_id(const ::std::string& value) { + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.TaskCreateResponse.job_id) +} +#if LANG_CXX11 +inline void TaskCreateResponse::set_job_id(::std::string&& value) { + + job_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskCreateResponse.job_id) +} +#endif +inline void TaskCreateResponse::set_job_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskCreateResponse.job_id) +} +inline void TaskCreateResponse::set_job_id(const char* value, size_t size) { + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskCreateResponse.job_id) +} +inline ::std::string* TaskCreateResponse::mutable_job_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateResponse.job_id) + return job_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskCreateResponse::release_job_id() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateResponse.job_id) + + return job_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskCreateResponse::set_allocated_job_id(::std::string* job_id) { + if (job_id != nullptr) { + + } else { + + } + job_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), job_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateResponse.job_id) +} + +// ------------------------------------------------------------------- + +// TaskGetRequest + +// string task_type = 1; +inline void TaskGetRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskGetRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetRequest.task_type) + return task_type_.GetNoArena(); +} +inline void TaskGetRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.TaskGetRequest.task_type) +} +#if LANG_CXX11 +inline void TaskGetRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskGetRequest.task_type) +} +#endif +inline void TaskGetRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskGetRequest.task_type) +} +inline void TaskGetRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskGetRequest.task_type) +} +inline ::std::string* TaskGetRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskGetRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskGetRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskGetRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskGetRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskGetRequest.task_type) +} + +// string job_id = 2; +inline void TaskGetRequest::clear_job_id() { + job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskGetRequest::job_id() const { + // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetRequest.job_id) + return job_id_.GetNoArena(); +} +inline void TaskGetRequest::set_job_id(const ::std::string& value) { + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.TaskGetRequest.job_id) +} +#if LANG_CXX11 +inline void TaskGetRequest::set_job_id(::std::string&& value) { + + job_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskGetRequest.job_id) +} +#endif +inline void TaskGetRequest::set_job_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskGetRequest.job_id) +} +inline void TaskGetRequest::set_job_id(const char* value, size_t size) { + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskGetRequest.job_id) +} +inline ::std::string* TaskGetRequest::mutable_job_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskGetRequest.job_id) + return job_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskGetRequest::release_job_id() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskGetRequest.job_id) + + return job_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskGetRequest::set_allocated_job_id(::std::string* job_id) { + if (job_id != nullptr) { + + } else { + + } + job_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), job_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskGetRequest.job_id) +} + +// ------------------------------------------------------------------- + +// TaskGetResponse + +// .flyteidl.service.State state = 1; +inline void TaskGetResponse::clear_state() { + state_ = 0; +} +inline ::flyteidl::service::State TaskGetResponse::state() const { + // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetResponse.state) + return static_cast< ::flyteidl::service::State >(state_); +} +inline void TaskGetResponse::set_state(::flyteidl::service::State value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.service.TaskGetResponse.state) +} + +// .flyteidl.core.LiteralMap outputs = 2; +inline bool TaskGetResponse::has_outputs() const { + return this != internal_default_instance() && outputs_ != nullptr; +} +inline const ::flyteidl::core::LiteralMap& TaskGetResponse::outputs() const { + const ::flyteidl::core::LiteralMap* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetResponse.outputs) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* TaskGetResponse::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskGetResponse.outputs) + + ::flyteidl::core::LiteralMap* temp = outputs_; + outputs_ = nullptr; + return temp; +} +inline ::flyteidl::core::LiteralMap* TaskGetResponse::mutable_outputs() { + + if (outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); + outputs_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskGetResponse.outputs) + return outputs_; +} +inline void TaskGetResponse::set_allocated_outputs(::flyteidl::core::LiteralMap* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskGetResponse.outputs) +} + +// ------------------------------------------------------------------- + +// TaskDeleteRequest + +// string task_type = 1; +inline void TaskDeleteRequest::clear_task_type() { + task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskDeleteRequest::task_type() const { + // @@protoc_insertion_point(field_get:flyteidl.service.TaskDeleteRequest.task_type) + return task_type_.GetNoArena(); +} +inline void TaskDeleteRequest::set_task_type(const ::std::string& value) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.TaskDeleteRequest.task_type) +} +#if LANG_CXX11 +inline void TaskDeleteRequest::set_task_type(::std::string&& value) { + + task_type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskDeleteRequest.task_type) +} +#endif +inline void TaskDeleteRequest::set_task_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskDeleteRequest.task_type) +} +inline void TaskDeleteRequest::set_task_type(const char* value, size_t size) { + + task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskDeleteRequest.task_type) +} +inline ::std::string* TaskDeleteRequest::mutable_task_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskDeleteRequest.task_type) + return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskDeleteRequest::release_task_type() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskDeleteRequest.task_type) + + return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskDeleteRequest::set_allocated_task_type(::std::string* task_type) { + if (task_type != nullptr) { + + } else { + + } + task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskDeleteRequest.task_type) +} + +// string job_id = 2; +inline void TaskDeleteRequest::clear_job_id() { + job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskDeleteRequest::job_id() const { + // @@protoc_insertion_point(field_get:flyteidl.service.TaskDeleteRequest.job_id) + return job_id_.GetNoArena(); +} +inline void TaskDeleteRequest::set_job_id(const ::std::string& value) { + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.TaskDeleteRequest.job_id) +} +#if LANG_CXX11 +inline void TaskDeleteRequest::set_job_id(::std::string&& value) { + + job_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskDeleteRequest.job_id) +} +#endif +inline void TaskDeleteRequest::set_job_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskDeleteRequest.job_id) +} +inline void TaskDeleteRequest::set_job_id(const char* value, size_t size) { + + job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskDeleteRequest.job_id) +} +inline ::std::string* TaskDeleteRequest::mutable_job_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskDeleteRequest.job_id) + return job_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskDeleteRequest::release_job_id() { + // @@protoc_insertion_point(field_release:flyteidl.service.TaskDeleteRequest.job_id) + + return job_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskDeleteRequest::set_allocated_job_id(::std::string* job_id) { + if (job_id != nullptr) { + + } else { + + } + job_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), job_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskDeleteRequest.job_id) +} + +// ------------------------------------------------------------------- + +// TaskDeleteResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::service::State> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::service::State>() { + return ::flyteidl::service::State_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.cc new file mode 100644 index 0000000000..31c587db24 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.cc @@ -0,0 +1,85 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/identity.proto + +#include "flyteidl/service/identity.pb.h" +#include "flyteidl/service/identity.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* IdentityService_method_names[] = { + "/flyteidl.service.IdentityService/UserInfo", +}; + +std::unique_ptr< IdentityService::Stub> IdentityService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< IdentityService::Stub> stub(new IdentityService::Stub(channel)); + return stub; +} + +IdentityService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_UserInfo_(IdentityService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status IdentityService::Stub::UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::flyteidl::service::UserInfoResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UserInfo_, context, request, response); +} + +void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, std::move(f)); +} + +void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, std::move(f)); +} + +void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, reactor); +} + +void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* IdentityService::Stub::AsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::UserInfoResponse>::Create(channel_.get(), cq, rpcmethod_UserInfo_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* IdentityService::Stub::PrepareAsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::UserInfoResponse>::Create(channel_.get(), cq, rpcmethod_UserInfo_, context, request, false); +} + +IdentityService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + IdentityService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< IdentityService::Service, ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>( + std::mem_fn(&IdentityService::Service::UserInfo), this))); +} + +IdentityService::Service::~Service() { +} + +::grpc::Status IdentityService::Service::UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.h new file mode 100644 index 0000000000..241c042b09 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.h @@ -0,0 +1,259 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/identity.proto +#ifndef GRPC_flyteidl_2fservice_2fidentity_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fidentity_2eproto__INCLUDED + +#include "flyteidl/service/identity.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// IdentityService defines an RPC Service that interacts with user/app identities. +class IdentityService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.IdentityService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Retrieves user information about the currently logged in user. + virtual ::grpc::Status UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::flyteidl::service::UserInfoResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>> AsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>>(AsyncUserInfoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>> PrepareAsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>>(PrepareAsyncUserInfoRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Retrieves user information about the currently logged in user. + virtual void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, std::function) = 0; + virtual void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, std::function) = 0; + virtual void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>* AsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>* PrepareAsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::flyteidl::service::UserInfoResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>> AsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>>(AsyncUserInfoRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>> PrepareAsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>>(PrepareAsyncUserInfoRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, std::function) override; + void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, std::function) override; + void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* AsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* PrepareAsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_UserInfo_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Retrieves user information about the currently logged in user. + virtual ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response); + }; + template + class WithAsyncMethod_UserInfo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UserInfo() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_UserInfo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUserInfo(::grpc::ServerContext* context, ::flyteidl::service::UserInfoRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::UserInfoResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_UserInfo AsyncService; + template + class ExperimentalWithCallbackMethod_UserInfo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_UserInfo() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::service::UserInfoRequest* request, + ::flyteidl::service::UserInfoResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->UserInfo(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_UserInfo( + ::grpc::experimental::MessageAllocator< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_UserInfo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_UserInfo ExperimentalCallbackService; + template + class WithGenericMethod_UserInfo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UserInfo() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_UserInfo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_UserInfo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UserInfo() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_UserInfo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUserInfo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_UserInfo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_UserInfo() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->UserInfo(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_UserInfo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void UserInfo(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_UserInfo : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UserInfo() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>(std::bind(&WithStreamedUnaryMethod_UserInfo::StreamedUserInfo, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UserInfo() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUserInfo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::UserInfoRequest,::flyteidl::service::UserInfoResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_UserInfo StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_UserInfo StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fidentity_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.cc new file mode 100644 index 0000000000..3784a7fe5f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.cc @@ -0,0 +1,1173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/identity.proto + +#include "flyteidl/service/identity.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; +namespace flyteidl { +namespace service { +class UserInfoRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _UserInfoRequest_default_instance_; +class UserInfoResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _UserInfoResponse_default_instance_; +} // namespace service +} // namespace flyteidl +static void InitDefaultsUserInfoRequest_flyteidl_2fservice_2fidentity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_UserInfoRequest_default_instance_; + new (ptr) ::flyteidl::service::UserInfoRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::UserInfoRequest::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_UserInfoRequest_flyteidl_2fservice_2fidentity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUserInfoRequest_flyteidl_2fservice_2fidentity_2eproto}, {}}; + +static void InitDefaultsUserInfoResponse_flyteidl_2fservice_2fidentity_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::service::_UserInfoResponse_default_instance_; + new (ptr) ::flyteidl::service::UserInfoResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::service::UserInfoResponse::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUserInfoResponse_flyteidl_2fservice_2fidentity_2eproto}, { + &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; + +void InitDefaults_flyteidl_2fservice_2fidentity_2eproto() { + ::google::protobuf::internal::InitSCC(&scc_info_UserInfoRequest_flyteidl_2fservice_2fidentity_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto.base); +} + +::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fidentity_2eproto[2]; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fidentity_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fidentity_2eproto = nullptr; + +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fidentity_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, subject_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, preferred_username_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, given_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, family_name_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, email_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, picture_), + PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, additional_claims_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::service::UserInfoRequest)}, + { 5, -1, sizeof(::flyteidl::service::UserInfoResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::service::_UserInfoRequest_default_instance_), + reinterpret_cast(&::flyteidl::service::_UserInfoResponse_default_instance_), +}; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fidentity_2eproto, "flyteidl/service/identity.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fidentity_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fidentity_2eproto, 2, file_level_enum_descriptors_flyteidl_2fservice_2fidentity_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fidentity_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fidentity_2eproto[] = + "\n\037flyteidl/service/identity.proto\022\020flyte" + "idl.service\032\034google/api/annotations.prot" + "o\032\034google/protobuf/struct.proto\"\021\n\017UserI" + "nfoRequest\"\312\001\n\020UserInfoResponse\022\017\n\007subje" + "ct\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\032\n\022preferred_user" + "name\030\003 \001(\t\022\022\n\ngiven_name\030\004 \001(\t\022\023\n\013family" + "_name\030\005 \001(\t\022\r\n\005email\030\006 \001(\t\022\017\n\007picture\030\007 " + "\001(\t\0222\n\021additional_claims\030\010 \001(\0132\027.google." + "protobuf.Struct2q\n\017IdentityService\022^\n\010Us" + "erInfo\022!.flyteidl.service.UserInfoReques" + "t\032\".flyteidl.service.UserInfoResponse\"\013\202" + "\323\344\223\002\005\022\003/meB9Z7github.com/flyteorg/flytei" + "dl/gen/pb-go/flyteidl/serviceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fidentity_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fidentity_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fidentity_2eproto, + "flyteidl/service/identity.proto", &assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto, 517, +}; + +void AddDescriptors_flyteidl_2fservice_2fidentity_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_google_2fapi_2fannotations_2eproto, + ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fidentity_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fidentity_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fidentity_2eproto(); return true; }(); +namespace flyteidl { +namespace service { + +// =================================================================== + +void UserInfoRequest::InitAsDefaultInstance() { +} +class UserInfoRequest::HasBitSetters { + public: +}; + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UserInfoRequest::UserInfoRequest() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.UserInfoRequest) +} +UserInfoRequest::UserInfoRequest(const UserInfoRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.service.UserInfoRequest) +} + +void UserInfoRequest::SharedCtor() { +} + +UserInfoRequest::~UserInfoRequest() { + // @@protoc_insertion_point(destructor:flyteidl.service.UserInfoRequest) + SharedDtor(); +} + +void UserInfoRequest::SharedDtor() { +} + +void UserInfoRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UserInfoRequest& UserInfoRequest::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UserInfoRequest_flyteidl_2fservice_2fidentity_2eproto.base); + return *internal_default_instance(); +} + + +void UserInfoRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.UserInfoRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UserInfoRequest::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + default: { + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UserInfoRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.UserInfoRequest) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.UserInfoRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.UserInfoRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UserInfoRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.UserInfoRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.UserInfoRequest) +} + +::google::protobuf::uint8* UserInfoRequest::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.UserInfoRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.UserInfoRequest) + return target; +} + +size_t UserInfoRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.UserInfoRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UserInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.UserInfoRequest) + GOOGLE_DCHECK_NE(&from, this); + const UserInfoRequest* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.UserInfoRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.UserInfoRequest) + MergeFrom(*source); + } +} + +void UserInfoRequest::MergeFrom(const UserInfoRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.UserInfoRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void UserInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.UserInfoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UserInfoRequest::CopyFrom(const UserInfoRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.UserInfoRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UserInfoRequest::IsInitialized() const { + return true; +} + +void UserInfoRequest::Swap(UserInfoRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void UserInfoRequest::InternalSwap(UserInfoRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata UserInfoRequest::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fidentity_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void UserInfoResponse::InitAsDefaultInstance() { + ::flyteidl::service::_UserInfoResponse_default_instance_._instance.get_mutable()->additional_claims_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +class UserInfoResponse::HasBitSetters { + public: + static const ::google::protobuf::Struct& additional_claims(const UserInfoResponse* msg); +}; + +const ::google::protobuf::Struct& +UserInfoResponse::HasBitSetters::additional_claims(const UserInfoResponse* msg) { + return *msg->additional_claims_; +} +void UserInfoResponse::clear_additional_claims() { + if (GetArenaNoVirtual() == nullptr && additional_claims_ != nullptr) { + delete additional_claims_; + } + additional_claims_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UserInfoResponse::kSubjectFieldNumber; +const int UserInfoResponse::kNameFieldNumber; +const int UserInfoResponse::kPreferredUsernameFieldNumber; +const int UserInfoResponse::kGivenNameFieldNumber; +const int UserInfoResponse::kFamilyNameFieldNumber; +const int UserInfoResponse::kEmailFieldNumber; +const int UserInfoResponse::kPictureFieldNumber; +const int UserInfoResponse::kAdditionalClaimsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UserInfoResponse::UserInfoResponse() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.service.UserInfoResponse) +} +UserInfoResponse::UserInfoResponse(const UserInfoResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + subject_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.subject().size() > 0) { + subject_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + preferred_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.preferred_username().size() > 0) { + preferred_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.preferred_username_); + } + given_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.given_name().size() > 0) { + given_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.given_name_); + } + family_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.family_name().size() > 0) { + family_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.family_name_); + } + email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.email().size() > 0) { + email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.email_); + } + picture_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.picture().size() > 0) { + picture_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.picture_); + } + if (from.has_additional_claims()) { + additional_claims_ = new ::google::protobuf::Struct(*from.additional_claims_); + } else { + additional_claims_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.service.UserInfoResponse) +} + +void UserInfoResponse::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto.base); + subject_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + preferred_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + given_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + family_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + picture_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + additional_claims_ = nullptr; +} + +UserInfoResponse::~UserInfoResponse() { + // @@protoc_insertion_point(destructor:flyteidl.service.UserInfoResponse) + SharedDtor(); +} + +void UserInfoResponse::SharedDtor() { + subject_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + preferred_username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + given_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + family_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + email_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + picture_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete additional_claims_; +} + +void UserInfoResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const UserInfoResponse& UserInfoResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto.base); + return *internal_default_instance(); +} + + +void UserInfoResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.service.UserInfoResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + subject_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + preferred_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + given_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + family_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + picture_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && additional_claims_ != nullptr) { + delete additional_claims_; + } + additional_claims_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* UserInfoResponse::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // string subject = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.subject"); + object = msg->mutable_subject(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string name = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.name"); + object = msg->mutable_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string preferred_username = 3; + case 3: { + if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.preferred_username"); + object = msg->mutable_preferred_username(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string given_name = 4; + case 4: { + if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.given_name"); + object = msg->mutable_given_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string family_name = 5; + case 5: { + if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.family_name"); + object = msg->mutable_family_name(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string email = 6; + case 6: { + if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.email"); + object = msg->mutable_email(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // string picture = 7; + case 7: { + if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.picture"); + object = msg->mutable_picture(); + if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { + parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; + goto string_till_end; + } + GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); + ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); + ptr += size; + break; + } + // .google.protobuf.Struct additional_claims = 8; + case 8: { + if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::google::protobuf::Struct::_InternalParse; + object = msg->mutable_additional_claims(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +string_till_end: + static_cast<::std::string*>(object)->clear(); + static_cast<::std::string*>(object)->reserve(size); + goto len_delim_till_end; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool UserInfoResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.service.UserInfoResponse) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string subject = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_subject())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject().data(), static_cast(this->subject().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.UserInfoResponse.subject")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.UserInfoResponse.name")); + } else { + goto handle_unusual; + } + break; + } + + // string preferred_username = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_preferred_username())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->preferred_username().data(), static_cast(this->preferred_username().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.UserInfoResponse.preferred_username")); + } else { + goto handle_unusual; + } + break; + } + + // string given_name = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_given_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->given_name().data(), static_cast(this->given_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.UserInfoResponse.given_name")); + } else { + goto handle_unusual; + } + break; + } + + // string family_name = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_family_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->family_name().data(), static_cast(this->family_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.UserInfoResponse.family_name")); + } else { + goto handle_unusual; + } + break; + } + + // string email = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->email().data(), static_cast(this->email().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.UserInfoResponse.email")); + } else { + goto handle_unusual; + } + break; + } + + // string picture = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_picture())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->picture().data(), static_cast(this->picture().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.service.UserInfoResponse.picture")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct additional_claims = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_additional_claims())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.service.UserInfoResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.service.UserInfoResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void UserInfoResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.service.UserInfoResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string subject = 1; + if (this->subject().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject().data(), static_cast(this->subject().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.subject"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->subject(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // string preferred_username = 3; + if (this->preferred_username().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->preferred_username().data(), static_cast(this->preferred_username().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.preferred_username"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->preferred_username(), output); + } + + // string given_name = 4; + if (this->given_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->given_name().data(), static_cast(this->given_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.given_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->given_name(), output); + } + + // string family_name = 5; + if (this->family_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->family_name().data(), static_cast(this->family_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.family_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->family_name(), output); + } + + // string email = 6; + if (this->email().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->email().data(), static_cast(this->email().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.email"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->email(), output); + } + + // string picture = 7; + if (this->picture().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->picture().data(), static_cast(this->picture().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.picture"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->picture(), output); + } + + // .google.protobuf.Struct additional_claims = 8; + if (this->has_additional_claims()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, HasBitSetters::additional_claims(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.service.UserInfoResponse) +} + +::google::protobuf::uint8* UserInfoResponse::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.UserInfoResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string subject = 1; + if (this->subject().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject().data(), static_cast(this->subject().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.subject"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->subject(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // string preferred_username = 3; + if (this->preferred_username().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->preferred_username().data(), static_cast(this->preferred_username().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.preferred_username"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->preferred_username(), target); + } + + // string given_name = 4; + if (this->given_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->given_name().data(), static_cast(this->given_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.given_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->given_name(), target); + } + + // string family_name = 5; + if (this->family_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->family_name().data(), static_cast(this->family_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.family_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->family_name(), target); + } + + // string email = 6; + if (this->email().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->email().data(), static_cast(this->email().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.email"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->email(), target); + } + + // string picture = 7; + if (this->picture().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->picture().data(), static_cast(this->picture().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.service.UserInfoResponse.picture"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->picture(), target); + } + + // .google.protobuf.Struct additional_claims = 8; + if (this->has_additional_claims()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, HasBitSetters::additional_claims(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.service.UserInfoResponse) + return target; +} + +size_t UserInfoResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.UserInfoResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string subject = 1; + if (this->subject().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->subject()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string preferred_username = 3; + if (this->preferred_username().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->preferred_username()); + } + + // string given_name = 4; + if (this->given_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->given_name()); + } + + // string family_name = 5; + if (this->family_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->family_name()); + } + + // string email = 6; + if (this->email().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->email()); + } + + // string picture = 7; + if (this->picture().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->picture()); + } + + // .google.protobuf.Struct additional_claims = 8; + if (this->has_additional_claims()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *additional_claims_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void UserInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.UserInfoResponse) + GOOGLE_DCHECK_NE(&from, this); + const UserInfoResponse* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.UserInfoResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.UserInfoResponse) + MergeFrom(*source); + } +} + +void UserInfoResponse::MergeFrom(const UserInfoResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.UserInfoResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.subject().size() > 0) { + + subject_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.preferred_username().size() > 0) { + + preferred_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.preferred_username_); + } + if (from.given_name().size() > 0) { + + given_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.given_name_); + } + if (from.family_name().size() > 0) { + + family_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.family_name_); + } + if (from.email().size() > 0) { + + email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.email_); + } + if (from.picture().size() > 0) { + + picture_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.picture_); + } + if (from.has_additional_claims()) { + mutable_additional_claims()->::google::protobuf::Struct::MergeFrom(from.additional_claims()); + } +} + +void UserInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.UserInfoResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UserInfoResponse::CopyFrom(const UserInfoResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.UserInfoResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UserInfoResponse::IsInitialized() const { + return true; +} + +void UserInfoResponse::Swap(UserInfoResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void UserInfoResponse::InternalSwap(UserInfoResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + subject_.Swap(&other->subject_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + preferred_username_.Swap(&other->preferred_username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + given_name_.Swap(&other->given_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + family_name_.Swap(&other->family_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + email_.Swap(&other->email_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + picture_.Swap(&other->picture_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(additional_claims_, other->additional_claims_); +} + +::google::protobuf::Metadata UserInfoResponse::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto); + return ::file_level_metadata_flyteidl_2fservice_2fidentity_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::service::UserInfoRequest* Arena::CreateMaybeMessage< ::flyteidl::service::UserInfoRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::UserInfoRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::service::UserInfoResponse* Arena::CreateMaybeMessage< ::flyteidl::service::UserInfoResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::service::UserInfoResponse >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.h new file mode 100644 index 0000000000..6e7d6946c3 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.h @@ -0,0 +1,843 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/identity.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fidentity_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fidentity_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "google/api/annotations.pb.h" +#include +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fidentity_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fidentity_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[2] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fidentity_2eproto(); +namespace flyteidl { +namespace service { +class UserInfoRequest; +class UserInfoRequestDefaultTypeInternal; +extern UserInfoRequestDefaultTypeInternal _UserInfoRequest_default_instance_; +class UserInfoResponse; +class UserInfoResponseDefaultTypeInternal; +extern UserInfoResponseDefaultTypeInternal _UserInfoResponse_default_instance_; +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> ::flyteidl::service::UserInfoRequest* Arena::CreateMaybeMessage<::flyteidl::service::UserInfoRequest>(Arena*); +template<> ::flyteidl::service::UserInfoResponse* Arena::CreateMaybeMessage<::flyteidl::service::UserInfoResponse>(Arena*); +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +// =================================================================== + +class UserInfoRequest final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.UserInfoRequest) */ { + public: + UserInfoRequest(); + virtual ~UserInfoRequest(); + + UserInfoRequest(const UserInfoRequest& from); + + inline UserInfoRequest& operator=(const UserInfoRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UserInfoRequest(UserInfoRequest&& from) noexcept + : UserInfoRequest() { + *this = ::std::move(from); + } + + inline UserInfoRequest& operator=(UserInfoRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const UserInfoRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UserInfoRequest* internal_default_instance() { + return reinterpret_cast( + &_UserInfoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(UserInfoRequest* other); + friend void swap(UserInfoRequest& a, UserInfoRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UserInfoRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + UserInfoRequest* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const UserInfoRequest& from); + void MergeFrom(const UserInfoRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UserInfoRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoRequest) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fidentity_2eproto; +}; +// ------------------------------------------------------------------- + +class UserInfoResponse final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.UserInfoResponse) */ { + public: + UserInfoResponse(); + virtual ~UserInfoResponse(); + + UserInfoResponse(const UserInfoResponse& from); + + inline UserInfoResponse& operator=(const UserInfoResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UserInfoResponse(UserInfoResponse&& from) noexcept + : UserInfoResponse() { + *this = ::std::move(from); + } + + inline UserInfoResponse& operator=(UserInfoResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const UserInfoResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UserInfoResponse* internal_default_instance() { + return reinterpret_cast( + &_UserInfoResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(UserInfoResponse* other); + friend void swap(UserInfoResponse& a, UserInfoResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UserInfoResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + UserInfoResponse* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const UserInfoResponse& from); + void MergeFrom(const UserInfoResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(UserInfoResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string subject = 1; + void clear_subject(); + static const int kSubjectFieldNumber = 1; + const ::std::string& subject() const; + void set_subject(const ::std::string& value); + #if LANG_CXX11 + void set_subject(::std::string&& value); + #endif + void set_subject(const char* value); + void set_subject(const char* value, size_t size); + ::std::string* mutable_subject(); + ::std::string* release_subject(); + void set_allocated_subject(::std::string* subject); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string preferred_username = 3; + void clear_preferred_username(); + static const int kPreferredUsernameFieldNumber = 3; + const ::std::string& preferred_username() const; + void set_preferred_username(const ::std::string& value); + #if LANG_CXX11 + void set_preferred_username(::std::string&& value); + #endif + void set_preferred_username(const char* value); + void set_preferred_username(const char* value, size_t size); + ::std::string* mutable_preferred_username(); + ::std::string* release_preferred_username(); + void set_allocated_preferred_username(::std::string* preferred_username); + + // string given_name = 4; + void clear_given_name(); + static const int kGivenNameFieldNumber = 4; + const ::std::string& given_name() const; + void set_given_name(const ::std::string& value); + #if LANG_CXX11 + void set_given_name(::std::string&& value); + #endif + void set_given_name(const char* value); + void set_given_name(const char* value, size_t size); + ::std::string* mutable_given_name(); + ::std::string* release_given_name(); + void set_allocated_given_name(::std::string* given_name); + + // string family_name = 5; + void clear_family_name(); + static const int kFamilyNameFieldNumber = 5; + const ::std::string& family_name() const; + void set_family_name(const ::std::string& value); + #if LANG_CXX11 + void set_family_name(::std::string&& value); + #endif + void set_family_name(const char* value); + void set_family_name(const char* value, size_t size); + ::std::string* mutable_family_name(); + ::std::string* release_family_name(); + void set_allocated_family_name(::std::string* family_name); + + // string email = 6; + void clear_email(); + static const int kEmailFieldNumber = 6; + const ::std::string& email() const; + void set_email(const ::std::string& value); + #if LANG_CXX11 + void set_email(::std::string&& value); + #endif + void set_email(const char* value); + void set_email(const char* value, size_t size); + ::std::string* mutable_email(); + ::std::string* release_email(); + void set_allocated_email(::std::string* email); + + // string picture = 7; + void clear_picture(); + static const int kPictureFieldNumber = 7; + const ::std::string& picture() const; + void set_picture(const ::std::string& value); + #if LANG_CXX11 + void set_picture(::std::string&& value); + #endif + void set_picture(const char* value); + void set_picture(const char* value, size_t size); + ::std::string* mutable_picture(); + ::std::string* release_picture(); + void set_allocated_picture(::std::string* picture); + + // .google.protobuf.Struct additional_claims = 8; + bool has_additional_claims() const; + void clear_additional_claims(); + static const int kAdditionalClaimsFieldNumber = 8; + const ::google::protobuf::Struct& additional_claims() const; + ::google::protobuf::Struct* release_additional_claims(); + ::google::protobuf::Struct* mutable_additional_claims(); + void set_allocated_additional_claims(::google::protobuf::Struct* additional_claims); + + // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoResponse) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr subject_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr preferred_username_; + ::google::protobuf::internal::ArenaStringPtr given_name_; + ::google::protobuf::internal::ArenaStringPtr family_name_; + ::google::protobuf::internal::ArenaStringPtr email_; + ::google::protobuf::internal::ArenaStringPtr picture_; + ::google::protobuf::Struct* additional_claims_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fservice_2fidentity_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// UserInfoRequest + +// ------------------------------------------------------------------- + +// UserInfoResponse + +// string subject = 1; +inline void UserInfoResponse::clear_subject() { + subject_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UserInfoResponse::subject() const { + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.subject) + return subject_.GetNoArena(); +} +inline void UserInfoResponse::set_subject(const ::std::string& value) { + + subject_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.subject) +} +#if LANG_CXX11 +inline void UserInfoResponse::set_subject(::std::string&& value) { + + subject_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.subject) +} +#endif +inline void UserInfoResponse::set_subject(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + subject_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.subject) +} +inline void UserInfoResponse::set_subject(const char* value, size_t size) { + + subject_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.subject) +} +inline ::std::string* UserInfoResponse::mutable_subject() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.subject) + return subject_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UserInfoResponse::release_subject() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.subject) + + return subject_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UserInfoResponse::set_allocated_subject(::std::string* subject) { + if (subject != nullptr) { + + } else { + + } + subject_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), subject); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.subject) +} + +// string name = 2; +inline void UserInfoResponse::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UserInfoResponse::name() const { + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.name) + return name_.GetNoArena(); +} +inline void UserInfoResponse::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.name) +} +#if LANG_CXX11 +inline void UserInfoResponse::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.name) +} +#endif +inline void UserInfoResponse::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.name) +} +inline void UserInfoResponse::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.name) +} +inline ::std::string* UserInfoResponse::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UserInfoResponse::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UserInfoResponse::set_allocated_name(::std::string* name) { + if (name != nullptr) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.name) +} + +// string preferred_username = 3; +inline void UserInfoResponse::clear_preferred_username() { + preferred_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UserInfoResponse::preferred_username() const { + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.preferred_username) + return preferred_username_.GetNoArena(); +} +inline void UserInfoResponse::set_preferred_username(const ::std::string& value) { + + preferred_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.preferred_username) +} +#if LANG_CXX11 +inline void UserInfoResponse::set_preferred_username(::std::string&& value) { + + preferred_username_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.preferred_username) +} +#endif +inline void UserInfoResponse::set_preferred_username(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + preferred_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.preferred_username) +} +inline void UserInfoResponse::set_preferred_username(const char* value, size_t size) { + + preferred_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.preferred_username) +} +inline ::std::string* UserInfoResponse::mutable_preferred_username() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.preferred_username) + return preferred_username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UserInfoResponse::release_preferred_username() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.preferred_username) + + return preferred_username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UserInfoResponse::set_allocated_preferred_username(::std::string* preferred_username) { + if (preferred_username != nullptr) { + + } else { + + } + preferred_username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), preferred_username); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.preferred_username) +} + +// string given_name = 4; +inline void UserInfoResponse::clear_given_name() { + given_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UserInfoResponse::given_name() const { + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.given_name) + return given_name_.GetNoArena(); +} +inline void UserInfoResponse::set_given_name(const ::std::string& value) { + + given_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.given_name) +} +#if LANG_CXX11 +inline void UserInfoResponse::set_given_name(::std::string&& value) { + + given_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.given_name) +} +#endif +inline void UserInfoResponse::set_given_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + given_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.given_name) +} +inline void UserInfoResponse::set_given_name(const char* value, size_t size) { + + given_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.given_name) +} +inline ::std::string* UserInfoResponse::mutable_given_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.given_name) + return given_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UserInfoResponse::release_given_name() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.given_name) + + return given_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UserInfoResponse::set_allocated_given_name(::std::string* given_name) { + if (given_name != nullptr) { + + } else { + + } + given_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), given_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.given_name) +} + +// string family_name = 5; +inline void UserInfoResponse::clear_family_name() { + family_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UserInfoResponse::family_name() const { + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.family_name) + return family_name_.GetNoArena(); +} +inline void UserInfoResponse::set_family_name(const ::std::string& value) { + + family_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.family_name) +} +#if LANG_CXX11 +inline void UserInfoResponse::set_family_name(::std::string&& value) { + + family_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.family_name) +} +#endif +inline void UserInfoResponse::set_family_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + family_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.family_name) +} +inline void UserInfoResponse::set_family_name(const char* value, size_t size) { + + family_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.family_name) +} +inline ::std::string* UserInfoResponse::mutable_family_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.family_name) + return family_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UserInfoResponse::release_family_name() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.family_name) + + return family_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UserInfoResponse::set_allocated_family_name(::std::string* family_name) { + if (family_name != nullptr) { + + } else { + + } + family_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), family_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.family_name) +} + +// string email = 6; +inline void UserInfoResponse::clear_email() { + email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UserInfoResponse::email() const { + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.email) + return email_.GetNoArena(); +} +inline void UserInfoResponse::set_email(const ::std::string& value) { + + email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.email) +} +#if LANG_CXX11 +inline void UserInfoResponse::set_email(::std::string&& value) { + + email_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.email) +} +#endif +inline void UserInfoResponse::set_email(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.email) +} +inline void UserInfoResponse::set_email(const char* value, size_t size) { + + email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.email) +} +inline ::std::string* UserInfoResponse::mutable_email() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.email) + return email_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UserInfoResponse::release_email() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.email) + + return email_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UserInfoResponse::set_allocated_email(::std::string* email) { + if (email != nullptr) { + + } else { + + } + email_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), email); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.email) +} + +// string picture = 7; +inline void UserInfoResponse::clear_picture() { + picture_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UserInfoResponse::picture() const { + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.picture) + return picture_.GetNoArena(); +} +inline void UserInfoResponse::set_picture(const ::std::string& value) { + + picture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.picture) +} +#if LANG_CXX11 +inline void UserInfoResponse::set_picture(::std::string&& value) { + + picture_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.picture) +} +#endif +inline void UserInfoResponse::set_picture(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + picture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.picture) +} +inline void UserInfoResponse::set_picture(const char* value, size_t size) { + + picture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.picture) +} +inline ::std::string* UserInfoResponse::mutable_picture() { + + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.picture) + return picture_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UserInfoResponse::release_picture() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.picture) + + return picture_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UserInfoResponse::set_allocated_picture(::std::string* picture) { + if (picture != nullptr) { + + } else { + + } + picture_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), picture); + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.picture) +} + +// .google.protobuf.Struct additional_claims = 8; +inline bool UserInfoResponse::has_additional_claims() const { + return this != internal_default_instance() && additional_claims_ != nullptr; +} +inline const ::google::protobuf::Struct& UserInfoResponse::additional_claims() const { + const ::google::protobuf::Struct* p = additional_claims_; + // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.additional_claims) + return p != nullptr ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* UserInfoResponse::release_additional_claims() { + // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.additional_claims) + + ::google::protobuf::Struct* temp = additional_claims_; + additional_claims_ = nullptr; + return temp; +} +inline ::google::protobuf::Struct* UserInfoResponse::mutable_additional_claims() { + + if (additional_claims_ == nullptr) { + auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); + additional_claims_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.additional_claims) + return additional_claims_; +} +inline void UserInfoResponse::set_allocated_additional_claims(::google::protobuf::Struct* additional_claims) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(additional_claims_); + } + if (additional_claims) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast<::google::protobuf::MessageLite*>(additional_claims)->GetArena(); + if (message_arena != submessage_arena) { + additional_claims = ::google::protobuf::internal::GetOwnedMessage( + message_arena, additional_claims, submessage_arena); + } + + } else { + + } + additional_claims_ = additional_claims; + // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.additional_claims) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fidentity_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.cc new file mode 100644 index 0000000000..892874328b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.cc @@ -0,0 +1,169 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/signal.proto + +#include "flyteidl/service/signal.pb.h" +#include "flyteidl/service/signal.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* SignalService_method_names[] = { + "/flyteidl.service.SignalService/GetOrCreateSignal", + "/flyteidl.service.SignalService/ListSignals", + "/flyteidl.service.SignalService/SetSignal", +}; + +std::unique_ptr< SignalService::Stub> SignalService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< SignalService::Stub> stub(new SignalService::Stub(channel)); + return stub; +} + +SignalService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_GetOrCreateSignal_(SignalService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListSignals_(SignalService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetSignal_(SignalService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status SignalService::Stub::GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::flyteidl::admin::Signal* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrCreateSignal_, context, request, response); +} + +void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, std::move(f)); +} + +void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, std::move(f)); +} + +void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, reactor); +} + +void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* SignalService::Stub::AsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Signal>::Create(channel_.get(), cq, rpcmethod_GetOrCreateSignal_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* SignalService::Stub::PrepareAsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Signal>::Create(channel_.get(), cq, rpcmethod_GetOrCreateSignal_, context, request, false); +} + +::grpc::Status SignalService::Stub::ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::flyteidl::admin::SignalList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListSignals_, context, request, response); +} + +void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, std::move(f)); +} + +void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, std::move(f)); +} + +void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, reactor); +} + +void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* SignalService::Stub::AsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalList>::Create(channel_.get(), cq, rpcmethod_ListSignals_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* SignalService::Stub::PrepareAsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalList>::Create(channel_.get(), cq, rpcmethod_ListSignals_, context, request, false); +} + +::grpc::Status SignalService::Stub::SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::flyteidl::admin::SignalSetResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetSignal_, context, request, response); +} + +void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, std::move(f)); +} + +void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, std::function f) { + ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, std::move(f)); +} + +void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, reactor); +} + +void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* SignalService::Stub::AsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalSetResponse>::Create(channel_.get(), cq, rpcmethod_SetSignal_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* SignalService::Stub::PrepareAsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalSetResponse>::Create(channel_.get(), cq, rpcmethod_SetSignal_, context, request, false); +} + +SignalService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + SignalService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SignalService::Service, ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>( + std::mem_fn(&SignalService::Service::GetOrCreateSignal), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SignalService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SignalService::Service, ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>( + std::mem_fn(&SignalService::Service::ListSignals), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + SignalService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< SignalService::Service, ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>( + std::mem_fn(&SignalService::Service::SetSignal), this))); +} + +SignalService::Service::~Service() { +} + +::grpc::Status SignalService::Service::GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SignalService::Service::ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status SignalService::Service::SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.h new file mode 100644 index 0000000000..7a27d5490f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.h @@ -0,0 +1,608 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/signal.proto +#ifndef GRPC_flyteidl_2fservice_2fsignal_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fsignal_2eproto__INCLUDED + +#include "flyteidl/service/signal.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc_impl { +class Channel; +class CompletionQueue; +class ServerCompletionQueue; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental +} // namespace grpc_impl + +namespace grpc { +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +// SignalService defines an RPC Service that may create, update, and retrieve signal(s). +class SignalService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.SignalService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + virtual ::grpc::Status GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::flyteidl::admin::Signal* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>> AsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>>(AsyncGetOrCreateSignalRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>> PrepareAsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>>(PrepareAsyncGetOrCreateSignalRaw(context, request, cq)); + } + // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve + // a signal, meaning the first call will create the signal and all subsequent calls will + // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore + // is not exposed to mitigate unintended behavior. + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve a signal, creating it if it does not exist." + // }; + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + virtual ::grpc::Status ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::flyteidl::admin::SignalList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>> AsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>>(AsyncListSignalsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>> PrepareAsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>>(PrepareAsyncListSignalsRaw(context, request, cq)); + } + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + virtual ::grpc::Status SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::flyteidl::admin::SignalSetResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>> AsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>>(AsyncSetSignalRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>> PrepareAsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>>(PrepareAsyncSetSignalRaw(context, request, cq)); + } + class experimental_async_interface { + public: + virtual ~experimental_async_interface() {} + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, std::function) = 0; + virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, std::function) = 0; + virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve + // a signal, meaning the first call will create the signal and all subsequent calls will + // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore + // is not exposed to mitigate unintended behavior. + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve a signal, creating it if it does not exist." + // }; + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + virtual void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, std::function) = 0; + virtual void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, std::function) = 0; + virtual void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + virtual void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, std::function) = 0; + virtual void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, std::function) = 0; + virtual void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + }; + virtual class experimental_async_interface* experimental_async() { return nullptr; } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>* AsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>* PrepareAsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>* AsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>* PrepareAsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>* AsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>* PrepareAsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::flyteidl::admin::Signal* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>> AsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>>(AsyncGetOrCreateSignalRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>> PrepareAsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>>(PrepareAsyncGetOrCreateSignalRaw(context, request, cq)); + } + ::grpc::Status ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::flyteidl::admin::SignalList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>> AsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>>(AsyncListSignalsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>> PrepareAsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>>(PrepareAsyncListSignalsRaw(context, request, cq)); + } + ::grpc::Status SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::flyteidl::admin::SignalSetResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>> AsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>>(AsyncSetSignalRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>> PrepareAsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>>(PrepareAsyncSetSignalRaw(context, request, cq)); + } + class experimental_async final : + public StubInterface::experimental_async_interface { + public: + void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, std::function) override; + void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, std::function) override; + void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, std::function) override; + void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, std::function) override; + void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, std::function) override; + void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, std::function) override; + void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit experimental_async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class experimental_async_interface* experimental_async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class experimental_async async_stub_{this}; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* AsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* PrepareAsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* AsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* PrepareAsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* AsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* PrepareAsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_GetOrCreateSignal_; + const ::grpc::internal::RpcMethod rpcmethod_ListSignals_; + const ::grpc::internal::RpcMethod rpcmethod_SetSignal_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + virtual ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response); + // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve + // a signal, meaning the first call will create the signal and all subsequent calls will + // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore + // is not exposed to mitigate unintended behavior. + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve a signal, creating it if it does not exist." + // }; + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + virtual ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response); + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + virtual ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response); + }; + template + class WithAsyncMethod_GetOrCreateSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetOrCreateSignal() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_GetOrCreateSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrCreateSignal(::grpc::ServerContext* context, ::flyteidl::admin::SignalGetOrCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Signal>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListSignals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListSignals() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_ListSignals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListSignals(::grpc::ServerContext* context, ::flyteidl::admin::SignalListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::SignalList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SetSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_SetSignal() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_SetSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetSignal(::grpc::ServerContext* context, ::flyteidl::admin::SignalSetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::SignalSetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_GetOrCreateSignal > > AsyncService; + template + class ExperimentalWithCallbackMethod_GetOrCreateSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_GetOrCreateSignal() { + ::grpc::Service::experimental().MarkMethodCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::SignalGetOrCreateRequest* request, + ::flyteidl::admin::Signal* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->GetOrCreateSignal(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_GetOrCreateSignal( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_GetOrCreateSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_ListSignals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_ListSignals() { + ::grpc::Service::experimental().MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::SignalListRequest* request, + ::flyteidl::admin::SignalList* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->ListSignals(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_ListSignals( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_ListSignals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_SetSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_SetSignal() { + ::grpc::Service::experimental().MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>( + [this](::grpc::ServerContext* context, + const ::flyteidl::admin::SignalSetRequest* request, + ::flyteidl::admin::SignalSetResponse* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->SetSignal(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_SetSignal( + ::grpc::experimental::MessageAllocator< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>* allocator) { + static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>*>( + ::grpc::Service::experimental().GetHandler(2)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_SetSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_GetOrCreateSignal > > ExperimentalCallbackService; + template + class WithGenericMethod_GetOrCreateSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetOrCreateSignal() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_GetOrCreateSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListSignals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListSignals() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_ListSignals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SetSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_SetSignal() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_SetSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_GetOrCreateSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetOrCreateSignal() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_GetOrCreateSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetOrCreateSignal(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListSignals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListSignals() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_ListSignals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListSignals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SetSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_SetSignal() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_SetSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSetSignal(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class ExperimentalWithRawCallbackMethod_GetOrCreateSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_GetOrCreateSignal() { + ::grpc::Service::experimental().MarkMethodRawCallback(0, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->GetOrCreateSignal(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_GetOrCreateSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void GetOrCreateSignal(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_ListSignals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_ListSignals() { + ::grpc::Service::experimental().MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->ListSignals(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_ListSignals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void ListSignals(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_SetSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_SetSignal() { + ::grpc::Service::experimental().MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this](::grpc::ServerContext* context, + const ::grpc::ByteBuffer* request, + ::grpc::ByteBuffer* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + this->SetSignal(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_SetSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void SetSignal(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class WithStreamedUnaryMethod_GetOrCreateSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetOrCreateSignal() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>(std::bind(&WithStreamedUnaryMethod_GetOrCreateSignal::StreamedGetOrCreateSignal, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetOrCreateSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetOrCreateSignal(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::SignalGetOrCreateRequest,::flyteidl::admin::Signal>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListSignals : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListSignals() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>(std::bind(&WithStreamedUnaryMethod_ListSignals::StreamedListSignals, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListSignals() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListSignals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::SignalListRequest,::flyteidl::admin::SignalList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SetSignal : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_SetSignal() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>(std::bind(&WithStreamedUnaryMethod_SetSignal::StreamedSetSignal, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_SetSignal() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSetSignal(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::SignalSetRequest,::flyteidl::admin::SignalSetResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_GetOrCreateSignal > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_GetOrCreateSignal > > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fsignal_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.cc new file mode 100644 index 0000000000..d14ebe8e32 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.cc @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/signal.proto + +#include "flyteidl/service/signal.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +namespace flyteidl { +namespace service { +} // namespace service +} // namespace flyteidl +void InitDefaults_flyteidl_2fservice_2fsignal_2eproto() { +} + +constexpr ::google::protobuf::Metadata* file_level_metadata_flyteidl_2fservice_2fsignal_2eproto = nullptr; +constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fsignal_2eproto = nullptr; +constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fsignal_2eproto = nullptr; +const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fsignal_2eproto::offsets[1] = {}; +static constexpr ::google::protobuf::internal::MigrationSchema* schemas = nullptr; +static constexpr ::google::protobuf::Message* const* file_default_instances = nullptr; + +::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fsignal_2eproto = { + {}, AddDescriptors_flyteidl_2fservice_2fsignal_2eproto, "flyteidl/service/signal.proto", schemas, + file_default_instances, TableStruct_flyteidl_2fservice_2fsignal_2eproto::offsets, + file_level_metadata_flyteidl_2fservice_2fsignal_2eproto, 0, file_level_enum_descriptors_flyteidl_2fservice_2fsignal_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fsignal_2eproto, +}; + +const char descriptor_table_protodef_flyteidl_2fservice_2fsignal_2eproto[] = + "\n\035flyteidl/service/signal.proto\022\020flyteid" + "l.service\032\034google/api/annotations.proto\032" + "\033flyteidl/admin/signal.proto2\232\003\n\rSignalS" + "ervice\022W\n\021GetOrCreateSignal\022(.flyteidl.a" + "dmin.SignalGetOrCreateRequest\032\026.flyteidl" + ".admin.Signal\"\000\022\301\001\n\013ListSignals\022!.flytei" + "dl.admin.SignalListRequest\032\032.flyteidl.ad" + "min.SignalList\"s\202\323\344\223\002m\022k/api/v1/signals/" + "{workflow_execution_id.project}/{workflo" + "w_execution_id.domain}/{workflow_executi" + "on_id.name}\022l\n\tSetSignal\022 .flyteidl.admi" + "n.SignalSetRequest\032!.flyteidl.admin.Sign" + "alSetResponse\"\032\202\323\344\223\002\024\"\017/api/v1/signals:\001" + "*B9Z7github.com/flyteorg/flyteidl/gen/pb" + "-go/flyteidl/serviceb\006proto3" + ; +::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fsignal_2eproto = { + false, InitDefaults_flyteidl_2fservice_2fsignal_2eproto, + descriptor_table_protodef_flyteidl_2fservice_2fsignal_2eproto, + "flyteidl/service/signal.proto", &assign_descriptors_table_flyteidl_2fservice_2fsignal_2eproto, 588, +}; + +void AddDescriptors_flyteidl_2fservice_2fsignal_2eproto() { + static constexpr ::google::protobuf::internal::InitFunc deps[2] = + { + ::AddDescriptors_google_2fapi_2fannotations_2eproto, + ::AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto, + }; + ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fsignal_2eproto, deps, 2); +} + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_flyteidl_2fservice_2fsignal_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fsignal_2eproto(); return true; }(); +namespace flyteidl { +namespace service { + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) +#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.h new file mode 100644 index 0000000000..0b0d9c7373 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.h @@ -0,0 +1,82 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/signal.proto + +#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fsignal_2eproto +#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fsignal_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3007000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include "google/api/annotations.pb.h" +#include "flyteidl/admin/signal.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fsignal_2eproto + +// Internal implementation detail -- do not use these members. +struct TableStruct_flyteidl_2fservice_2fsignal_2eproto { + static const ::google::protobuf::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors_flyteidl_2fservice_2fsignal_2eproto(); +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google +namespace flyteidl { +namespace service { + +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#include +#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fsignal_2eproto diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go new file mode 100644 index 0000000000..21152a7c99 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -0,0 +1,544 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/agent.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// The state of the execution is used to control its visibility in the UI/CLI. +type State int32 + +const ( + State_RETRYABLE_FAILURE State = 0 + State_PERMANENT_FAILURE State = 1 + State_PENDING State = 2 + State_RUNNING State = 3 + State_SUCCEEDED State = 4 +) + +var State_name = map[int32]string{ + 0: "RETRYABLE_FAILURE", + 1: "PERMANENT_FAILURE", + 2: "PENDING", + 3: "RUNNING", + 4: "SUCCEEDED", +} + +var State_value = map[string]int32{ + "RETRYABLE_FAILURE": 0, + "PERMANENT_FAILURE": 1, + "PENDING": 2, + "RUNNING": 3, + "SUCCEEDED": 4, +} + +func (x State) String() string { + return proto.EnumName(State_name, int32(x)) +} + +func (State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{0} +} + +// Represents a subset of runtime task execution metadata that are relevant to external plugins. +type TaskExecutionMetadata struct { + // ID of the task execution + TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` + // k8s namespace where the task is executed in + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + // Labels attached to the task execution + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Annotations attached to the task execution + Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // k8s service account associated with the task execution + K8SServiceAccount string `protobuf:"bytes,5,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` + // Environment variables attached to the task execution + EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionMetadata) Reset() { *m = TaskExecutionMetadata{} } +func (m *TaskExecutionMetadata) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionMetadata) ProtoMessage() {} +func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{0} +} + +func (m *TaskExecutionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionMetadata.Unmarshal(m, b) +} +func (m *TaskExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionMetadata.Marshal(b, m, deterministic) +} +func (m *TaskExecutionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionMetadata.Merge(m, src) +} +func (m *TaskExecutionMetadata) XXX_Size() int { + return xxx_messageInfo_TaskExecutionMetadata.Size(m) +} +func (m *TaskExecutionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionMetadata proto.InternalMessageInfo + +func (m *TaskExecutionMetadata) GetTaskExecutionId() *core.TaskExecutionIdentifier { + if m != nil { + return m.TaskExecutionId + } + return nil +} + +func (m *TaskExecutionMetadata) GetNamespace() string { + if m != nil { + return m.Namespace + } + return "" +} + +func (m *TaskExecutionMetadata) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *TaskExecutionMetadata) GetAnnotations() map[string]string { + if m != nil { + return m.Annotations + } + return nil +} + +func (m *TaskExecutionMetadata) GetK8SServiceAccount() string { + if m != nil { + return m.K8SServiceAccount + } + return "" +} + +func (m *TaskExecutionMetadata) GetEnvironmentVariables() map[string]string { + if m != nil { + return m.EnvironmentVariables + } + return nil +} + +// Represents a request structure to create task. +type CreateTaskRequest struct { + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` + // subset of runtime task execution metadata. + TaskExecutionMetadata *TaskExecutionMetadata `protobuf:"bytes,4,opt,name=task_execution_metadata,json=taskExecutionMetadata,proto3" json:"task_execution_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} } +func (m *CreateTaskRequest) String() string { return proto.CompactTextString(m) } +func (*CreateTaskRequest) ProtoMessage() {} +func (*CreateTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{1} +} + +func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateTaskRequest.Unmarshal(m, b) +} +func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic) +} +func (m *CreateTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateTaskRequest.Merge(m, src) +} +func (m *CreateTaskRequest) XXX_Size() int { + return xxx_messageInfo_CreateTaskRequest.Size(m) +} +func (m *CreateTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo + +func (m *CreateTaskRequest) GetInputs() *core.LiteralMap { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *CreateTaskRequest) GetTemplate() *core.TaskTemplate { + if m != nil { + return m.Template + } + return nil +} + +func (m *CreateTaskRequest) GetOutputPrefix() string { + if m != nil { + return m.OutputPrefix + } + return "" +} + +func (m *CreateTaskRequest) GetTaskExecutionMetadata() *TaskExecutionMetadata { + if m != nil { + return m.TaskExecutionMetadata + } + return nil +} + +// Represents a create response structure. +type CreateTaskResponse struct { + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + ResourceMeta []byte `protobuf:"bytes,1,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateTaskResponse) Reset() { *m = CreateTaskResponse{} } +func (m *CreateTaskResponse) String() string { return proto.CompactTextString(m) } +func (*CreateTaskResponse) ProtoMessage() {} +func (*CreateTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{2} +} + +func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateTaskResponse.Unmarshal(m, b) +} +func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateTaskResponse.Marshal(b, m, deterministic) +} +func (m *CreateTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateTaskResponse.Merge(m, src) +} +func (m *CreateTaskResponse) XXX_Size() int { + return xxx_messageInfo_CreateTaskResponse.Size(m) +} +func (m *CreateTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateTaskResponse proto.InternalMessageInfo + +func (m *CreateTaskResponse) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +// A message used to fetch a job resource from flyte agent server. +type GetTaskRequest struct { + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata about the resource to be pass to the agent. + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} } +func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) } +func (*GetTaskRequest) ProtoMessage() {} +func (*GetTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{3} +} + +func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b) +} +func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic) +} +func (m *GetTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskRequest.Merge(m, src) +} +func (m *GetTaskRequest) XXX_Size() int { + return xxx_messageInfo_GetTaskRequest.Size(m) +} +func (m *GetTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo + +func (m *GetTaskRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *GetTaskRequest) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +// Response to get an individual task resource. +type GetTaskResponse struct { + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTaskResponse) Reset() { *m = GetTaskResponse{} } +func (m *GetTaskResponse) String() string { return proto.CompactTextString(m) } +func (*GetTaskResponse) ProtoMessage() {} +func (*GetTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{4} +} + +func (m *GetTaskResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTaskResponse.Unmarshal(m, b) +} +func (m *GetTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTaskResponse.Marshal(b, m, deterministic) +} +func (m *GetTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTaskResponse.Merge(m, src) +} +func (m *GetTaskResponse) XXX_Size() int { + return xxx_messageInfo_GetTaskResponse.Size(m) +} +func (m *GetTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTaskResponse proto.InternalMessageInfo + +func (m *GetTaskResponse) GetResource() *Resource { + if m != nil { + return m.Resource + } + return nil +} + +type Resource struct { + // The state of the execution is used to control its visibility in the UI/CLI. + State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.State" json:"state,omitempty"` + // The outputs of the execution. It's typically used by sql task. Agent service will create a + // Structured dataset pointing to the query result table. + // +optional + Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Resource) Reset() { *m = Resource{} } +func (m *Resource) String() string { return proto.CompactTextString(m) } +func (*Resource) ProtoMessage() {} +func (*Resource) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{5} +} + +func (m *Resource) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Resource.Unmarshal(m, b) +} +func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Resource.Marshal(b, m, deterministic) +} +func (m *Resource) XXX_Merge(src proto.Message) { + xxx_messageInfo_Resource.Merge(m, src) +} +func (m *Resource) XXX_Size() int { + return xxx_messageInfo_Resource.Size(m) +} +func (m *Resource) XXX_DiscardUnknown() { + xxx_messageInfo_Resource.DiscardUnknown(m) +} + +var xxx_messageInfo_Resource proto.InternalMessageInfo + +func (m *Resource) GetState() State { + if m != nil { + return m.State + } + return State_RETRYABLE_FAILURE +} + +func (m *Resource) GetOutputs() *core.LiteralMap { + if m != nil { + return m.Outputs + } + return nil +} + +// A message used to delete a task. +type DeleteTaskRequest struct { + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata about the resource to be pass to the agent. + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteTaskRequest) Reset() { *m = DeleteTaskRequest{} } +func (m *DeleteTaskRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteTaskRequest) ProtoMessage() {} +func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{6} +} + +func (m *DeleteTaskRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteTaskRequest.Unmarshal(m, b) +} +func (m *DeleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteTaskRequest.Marshal(b, m, deterministic) +} +func (m *DeleteTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteTaskRequest.Merge(m, src) +} +func (m *DeleteTaskRequest) XXX_Size() int { + return xxx_messageInfo_DeleteTaskRequest.Size(m) +} +func (m *DeleteTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteTaskRequest proto.InternalMessageInfo + +func (m *DeleteTaskRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *DeleteTaskRequest) GetResourceMeta() []byte { + if m != nil { + return m.ResourceMeta + } + return nil +} + +// Response to delete a task. +type DeleteTaskResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteTaskResponse) Reset() { *m = DeleteTaskResponse{} } +func (m *DeleteTaskResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteTaskResponse) ProtoMessage() {} +func (*DeleteTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c434e52bb0028071, []int{7} +} + +func (m *DeleteTaskResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteTaskResponse.Unmarshal(m, b) +} +func (m *DeleteTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteTaskResponse.Marshal(b, m, deterministic) +} +func (m *DeleteTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteTaskResponse.Merge(m, src) +} +func (m *DeleteTaskResponse) XXX_Size() int { + return xxx_messageInfo_DeleteTaskResponse.Size(m) +} +func (m *DeleteTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteTaskResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("flyteidl.admin.State", State_name, State_value) + proto.RegisterType((*TaskExecutionMetadata)(nil), "flyteidl.admin.TaskExecutionMetadata") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.TaskExecutionMetadata.LabelsEntry") + proto.RegisterType((*CreateTaskRequest)(nil), "flyteidl.admin.CreateTaskRequest") + proto.RegisterType((*CreateTaskResponse)(nil), "flyteidl.admin.CreateTaskResponse") + proto.RegisterType((*GetTaskRequest)(nil), "flyteidl.admin.GetTaskRequest") + proto.RegisterType((*GetTaskResponse)(nil), "flyteidl.admin.GetTaskResponse") + proto.RegisterType((*Resource)(nil), "flyteidl.admin.Resource") + proto.RegisterType((*DeleteTaskRequest)(nil), "flyteidl.admin.DeleteTaskRequest") + proto.RegisterType((*DeleteTaskResponse)(nil), "flyteidl.admin.DeleteTaskResponse") +} + +func init() { proto.RegisterFile("flyteidl/admin/agent.proto", fileDescriptor_c434e52bb0028071) } + +var fileDescriptor_c434e52bb0028071 = []byte{ + // 724 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x5d, 0x6f, 0xe2, 0x46, + 0x14, 0x2d, 0x10, 0x08, 0x5c, 0xf2, 0x01, 0xd3, 0xa0, 0x3a, 0x24, 0xad, 0x22, 0xaa, 0x56, 0x51, + 0xab, 0x1a, 0x85, 0xb4, 0x4d, 0xd2, 0x87, 0x56, 0x24, 0xb8, 0x08, 0x89, 0xa0, 0x68, 0x02, 0x55, + 0x5b, 0xa9, 0x45, 0x83, 0xb9, 0xb0, 0x16, 0x66, 0xec, 0xf5, 0x8c, 0x51, 0x78, 0xde, 0x3f, 0xb1, + 0x3f, 0x77, 0xe5, 0xf1, 0x47, 0x00, 0xb1, 0xab, 0x44, 0xfb, 0x86, 0xef, 0x39, 0xf7, 0xcc, 0x99, + 0x73, 0xaf, 0x0d, 0x54, 0x27, 0xf6, 0x52, 0xa2, 0x35, 0xb6, 0xeb, 0x6c, 0x3c, 0xb7, 0x78, 0x9d, + 0x4d, 0x91, 0x4b, 0xdd, 0xf5, 0x1c, 0xe9, 0x90, 0x83, 0x18, 0xd3, 0x15, 0x56, 0x3d, 0x4d, 0xb8, + 0xa6, 0xe3, 0x61, 0xdd, 0xb6, 0x24, 0x7a, 0xcc, 0x16, 0x21, 0xbb, 0x7a, 0xbc, 0x8e, 0x4a, 0x26, + 0x66, 0x31, 0xf4, 0xf5, 0x3a, 0x64, 0x71, 0x89, 0xde, 0x84, 0x99, 0x18, 0xc1, 0xdf, 0x6c, 0xc0, + 0x63, 0xe4, 0xd2, 0x9a, 0x58, 0xe8, 0x85, 0x78, 0xed, 0x7d, 0x16, 0x2a, 0x7d, 0x26, 0x66, 0xc6, + 0x13, 0x9a, 0xbe, 0xb4, 0x1c, 0x7e, 0x8f, 0x92, 0x8d, 0x99, 0x64, 0x84, 0x42, 0x39, 0x38, 0x67, + 0x88, 0x31, 0x32, 0xb4, 0xc6, 0x5a, 0xea, 0x2c, 0x75, 0x5e, 0x6c, 0x7c, 0xaf, 0x27, 0xee, 0x03, + 0x55, 0x7d, 0x4d, 0xa0, 0x93, 0x1c, 0x41, 0x0f, 0xe5, 0x3a, 0x40, 0x4e, 0xa1, 0xc0, 0xd9, 0x1c, + 0x85, 0xcb, 0x4c, 0xd4, 0xd2, 0x67, 0xa9, 0xf3, 0x02, 0x7d, 0x2e, 0x90, 0x0e, 0xe4, 0x6c, 0x36, + 0x42, 0x5b, 0x68, 0x99, 0xb3, 0xcc, 0x79, 0xb1, 0x71, 0xa1, 0xaf, 0x87, 0xa4, 0x6f, 0x35, 0xaa, + 0x77, 0x55, 0x8f, 0xc1, 0xa5, 0xb7, 0xa4, 0x91, 0x00, 0xf9, 0x1b, 0x8a, 0x8c, 0x73, 0x47, 0xb2, + 0x80, 0x29, 0xb4, 0x1d, 0xa5, 0xf7, 0xeb, 0xcb, 0xf4, 0x9a, 0xcf, 0x8d, 0xa1, 0xe8, 0xaa, 0x14, + 0xd1, 0xe1, 0xcb, 0xd9, 0xb5, 0x18, 0x0a, 0xf4, 0x16, 0x96, 0x89, 0x43, 0x66, 0x9a, 0x8e, 0xcf, + 0xa5, 0x96, 0x55, 0x97, 0x29, 0xcf, 0xae, 0xc5, 0x63, 0x88, 0x34, 0x43, 0x80, 0x48, 0xa8, 0x20, + 0x5f, 0x58, 0x9e, 0xc3, 0xe7, 0xc8, 0xe5, 0x70, 0xc1, 0x3c, 0x8b, 0x8d, 0x6c, 0x14, 0x5a, 0x4e, + 0x79, 0xfa, 0xe3, 0x65, 0x9e, 0x8c, 0x67, 0x89, 0xbf, 0x62, 0x85, 0xd0, 0xdc, 0x11, 0x6e, 0x81, + 0xaa, 0x37, 0x50, 0x5c, 0x89, 0x85, 0x94, 0x20, 0x33, 0xc3, 0xa5, 0x9a, 0x5e, 0x81, 0x06, 0x3f, + 0xc9, 0x11, 0x64, 0x17, 0xcc, 0xf6, 0xe3, 0x29, 0x84, 0x0f, 0xbf, 0xa5, 0xaf, 0x53, 0xd5, 0xdf, + 0xa1, 0xb4, 0x99, 0xc0, 0xab, 0xfa, 0xdb, 0x70, 0xfc, 0x51, 0xb7, 0xaf, 0x11, 0xaa, 0xbd, 0x4b, + 0x43, 0xf9, 0xce, 0x43, 0x26, 0x31, 0xc8, 0x84, 0xe2, 0x5b, 0x1f, 0x85, 0x24, 0x17, 0x90, 0xb3, + 0xb8, 0xeb, 0x4b, 0x11, 0xed, 0xe2, 0xf1, 0xc6, 0x2e, 0x76, 0xc3, 0x37, 0xe7, 0x9e, 0xb9, 0x34, + 0x22, 0x92, 0x2b, 0xc8, 0x4b, 0x9c, 0xbb, 0x36, 0x93, 0xe1, 0x29, 0xc5, 0xc6, 0xc9, 0x96, 0x05, + 0xee, 0x47, 0x14, 0x9a, 0x90, 0xc9, 0xb7, 0xb0, 0xef, 0xf8, 0xd2, 0xf5, 0xe5, 0xd0, 0xf5, 0x70, + 0x62, 0x3d, 0x69, 0x19, 0xe5, 0x71, 0x2f, 0x2c, 0x3e, 0xa8, 0x1a, 0xf9, 0x0f, 0xbe, 0xda, 0x78, + 0x4f, 0xe6, 0xd1, 0xd4, 0xb4, 0x1d, 0x75, 0xd8, 0x77, 0x2f, 0x1a, 0x31, 0xad, 0xc8, 0x6d, 0xe5, + 0xda, 0x0d, 0x90, 0xd5, 0x10, 0x84, 0xeb, 0x70, 0xa1, 0x9c, 0x79, 0x28, 0x1c, 0xdf, 0x33, 0x51, + 0x1d, 0xa7, 0xc2, 0xd8, 0xa3, 0x7b, 0x71, 0x31, 0x68, 0xaf, 0x51, 0x38, 0x68, 0xa3, 0x5c, 0x0d, + 0xef, 0x04, 0x0a, 0xca, 0xab, 0x5c, 0xba, 0x18, 0x0d, 0x21, 0x1f, 0x14, 0xfa, 0x4b, 0x77, 0x8b, + 0x66, 0x7a, 0x8b, 0x66, 0x1b, 0x0e, 0x13, 0xcd, 0xc8, 0xcb, 0xcf, 0x90, 0x8f, 0x29, 0xd1, 0x4c, + 0xb4, 0xcd, 0x1b, 0xd3, 0x08, 0xa7, 0x09, 0xb3, 0x66, 0x43, 0x3e, 0xae, 0x92, 0x1f, 0x21, 0x2b, + 0x64, 0x30, 0x9d, 0xa0, 0xfd, 0xa0, 0x51, 0xd9, 0x6c, 0x7f, 0x0c, 0x40, 0x1a, 0x72, 0xc8, 0x25, + 0xec, 0x86, 0xf9, 0x8b, 0x68, 0x98, 0x9f, 0xd8, 0x80, 0x98, 0x59, 0x1b, 0x40, 0xb9, 0x85, 0x36, + 0xae, 0xaf, 0xd2, 0xe7, 0xa7, 0x71, 0x04, 0x64, 0x55, 0x36, 0x0c, 0xe4, 0x87, 0xff, 0x21, 0xab, + 0x1c, 0x93, 0x0a, 0x94, 0xa9, 0xd1, 0xa7, 0xff, 0x34, 0x6f, 0xbb, 0xc6, 0xf0, 0xcf, 0x66, 0xa7, + 0x3b, 0xa0, 0x46, 0xe9, 0x8b, 0xa0, 0xfc, 0x60, 0xd0, 0xfb, 0x66, 0xcf, 0xe8, 0xf5, 0x93, 0x72, + 0x8a, 0x14, 0x61, 0xf7, 0xc1, 0xe8, 0xb5, 0x3a, 0xbd, 0x76, 0x29, 0x1d, 0x3c, 0xd0, 0x41, 0xaf, + 0x17, 0x3c, 0x64, 0xc8, 0x3e, 0x14, 0x1e, 0x07, 0x77, 0x77, 0x86, 0xd1, 0x32, 0x5a, 0xa5, 0x9d, + 0xdb, 0xab, 0x7f, 0x7f, 0x99, 0x5a, 0xf2, 0x8d, 0x3f, 0xd2, 0x4d, 0x67, 0x5e, 0x57, 0x97, 0x77, + 0xbc, 0x69, 0x3d, 0xf9, 0xd2, 0x4f, 0x91, 0xd7, 0xdd, 0xd1, 0x4f, 0x53, 0xa7, 0xbe, 0xfe, 0x07, + 0x34, 0xca, 0xa9, 0x6f, 0xfe, 0xe5, 0x87, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x4c, 0xa8, 0x65, + 0x99, 0x06, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.validate.go new file mode 100644 index 0000000000..0ba579cb0b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.validate.go @@ -0,0 +1,650 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/agent.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 _agent_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 TaskExecutionMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTaskExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionMetadataValidationError{ + field: "TaskExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Namespace + + // no validation rules for Labels + + // no validation rules for Annotations + + // no validation rules for K8SServiceAccount + + // no validation rules for EnvironmentVariables + + return nil +} + +// TaskExecutionMetadataValidationError is the validation error returned by +// TaskExecutionMetadata.Validate if the designated constraints aren't met. +type TaskExecutionMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionMetadataValidationError) ErrorName() string { + return "TaskExecutionMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionMetadataValidationError{} + +// Validate checks the field values on CreateTaskRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *CreateTaskRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateTaskRequestValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateTaskRequestValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OutputPrefix + + if v, ok := interface{}(m.GetTaskExecutionMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateTaskRequestValidationError{ + field: "TaskExecutionMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CreateTaskRequestValidationError is the validation error returned by +// CreateTaskRequest.Validate if the designated constraints aren't met. +type CreateTaskRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateTaskRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateTaskRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateTaskRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateTaskRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateTaskRequestValidationError) ErrorName() string { + return "CreateTaskRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateTaskRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateTaskRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateTaskRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateTaskRequestValidationError{} + +// Validate checks the field values on CreateTaskResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateTaskResponse) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceMeta + + return nil +} + +// CreateTaskResponseValidationError is the validation error returned by +// CreateTaskResponse.Validate if the designated constraints aren't met. +type CreateTaskResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateTaskResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateTaskResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateTaskResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateTaskResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateTaskResponseValidationError) ErrorName() string { + return "CreateTaskResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateTaskResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateTaskResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateTaskResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateTaskResponseValidationError{} + +// Validate checks the field values on GetTaskRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *GetTaskRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TaskType + + // no validation rules for ResourceMeta + + return nil +} + +// GetTaskRequestValidationError is the validation error returned by +// GetTaskRequest.Validate if the designated constraints aren't met. +type GetTaskRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetTaskRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetTaskRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetTaskRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetTaskRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetTaskRequestValidationError) ErrorName() string { return "GetTaskRequestValidationError" } + +// Error satisfies the builtin error interface +func (e GetTaskRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetTaskRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetTaskRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetTaskRequestValidationError{} + +// Validate checks the field values on GetTaskResponse with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *GetTaskResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetResource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetTaskResponseValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetTaskResponseValidationError is the validation error returned by +// GetTaskResponse.Validate if the designated constraints aren't met. +type GetTaskResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetTaskResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetTaskResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetTaskResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetTaskResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetTaskResponseValidationError) ErrorName() string { return "GetTaskResponseValidationError" } + +// Error satisfies the builtin error interface +func (e GetTaskResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetTaskResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetTaskResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetTaskResponseValidationError{} + +// Validate checks the field values on Resource with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Resource) Validate() error { + if m == nil { + return nil + } + + // no validation rules for State + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ResourceValidationError is the validation error returned by +// Resource.Validate if the designated constraints aren't met. +type ResourceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceValidationError) ErrorName() string { return "ResourceValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResource.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceValidationError{} + +// Validate checks the field values on DeleteTaskRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *DeleteTaskRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TaskType + + // no validation rules for ResourceMeta + + return nil +} + +// DeleteTaskRequestValidationError is the validation error returned by +// DeleteTaskRequest.Validate if the designated constraints aren't met. +type DeleteTaskRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DeleteTaskRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DeleteTaskRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DeleteTaskRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DeleteTaskRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DeleteTaskRequestValidationError) ErrorName() string { + return "DeleteTaskRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e DeleteTaskRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDeleteTaskRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DeleteTaskRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DeleteTaskRequestValidationError{} + +// Validate checks the field values on DeleteTaskResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DeleteTaskResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DeleteTaskResponseValidationError is the validation error returned by +// DeleteTaskResponse.Validate if the designated constraints aren't met. +type DeleteTaskResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DeleteTaskResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DeleteTaskResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DeleteTaskResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DeleteTaskResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DeleteTaskResponseValidationError) ErrorName() string { + return "DeleteTaskResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e DeleteTaskResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDeleteTaskResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DeleteTaskResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DeleteTaskResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json new file mode 100644 index 0000000000..64f4adef58 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/agent.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go new file mode 100644 index 0000000000..088813b5fc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go @@ -0,0 +1,84 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/cluster_assignment.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Encapsulates specifications for routing an execution onto a specific cluster. +type ClusterAssignment struct { + ClusterPoolName string `protobuf:"bytes,3,opt,name=cluster_pool_name,json=clusterPoolName,proto3" json:"cluster_pool_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterAssignment) Reset() { *m = ClusterAssignment{} } +func (m *ClusterAssignment) String() string { return proto.CompactTextString(m) } +func (*ClusterAssignment) ProtoMessage() {} +func (*ClusterAssignment) Descriptor() ([]byte, []int) { + return fileDescriptor_c5699de6e686ea15, []int{0} +} + +func (m *ClusterAssignment) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterAssignment.Unmarshal(m, b) +} +func (m *ClusterAssignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterAssignment.Marshal(b, m, deterministic) +} +func (m *ClusterAssignment) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterAssignment.Merge(m, src) +} +func (m *ClusterAssignment) XXX_Size() int { + return xxx_messageInfo_ClusterAssignment.Size(m) +} +func (m *ClusterAssignment) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterAssignment.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterAssignment proto.InternalMessageInfo + +func (m *ClusterAssignment) GetClusterPoolName() string { + if m != nil { + return m.ClusterPoolName + } + return "" +} + +func init() { + proto.RegisterType((*ClusterAssignment)(nil), "flyteidl.admin.ClusterAssignment") +} + +func init() { + proto.RegisterFile("flyteidl/admin/cluster_assignment.proto", fileDescriptor_c5699de6e686ea15) +} + +var fileDescriptor_c5699de6e686ea15 = []byte{ + // 168 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0x4c, 0xc9, 0xcd, 0xcc, 0xd3, 0x4f, 0xce, 0x29, 0x2d, 0x2e, + 0x49, 0x2d, 0x8a, 0x4f, 0x2c, 0x2e, 0xce, 0x4c, 0xcf, 0xcb, 0x4d, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0x29, 0xd4, 0x03, 0x2b, 0x54, 0xf2, 0xe6, 0x12, 0x74, 0x86, + 0xa8, 0x75, 0x84, 0x2b, 0x15, 0xd2, 0xe2, 0x12, 0x84, 0x19, 0x50, 0x90, 0x9f, 0x9f, 0x13, 0x9f, + 0x97, 0x98, 0x9b, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x19, 0xc4, 0x0f, 0x95, 0x08, 0xc8, 0xcf, + 0xcf, 0xf1, 0x4b, 0xcc, 0x4d, 0xf5, 0x62, 0xe1, 0x60, 0x14, 0x60, 0xf2, 0x62, 0xe1, 0x60, 0x12, + 0x60, 0x76, 0x32, 0x8f, 0x32, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, + 0x07, 0xdb, 0x94, 0x5f, 0x94, 0xae, 0x0f, 0x77, 0x5b, 0x7a, 0x6a, 0x9e, 0x7e, 0x41, 0x92, 0x6e, + 0x7a, 0xbe, 0x3e, 0xaa, 0x73, 0x93, 0xd8, 0xc0, 0x8e, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, + 0x25, 0xeb, 0xa6, 0xbd, 0xc7, 0x00, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.validate.go new file mode 100644 index 0000000000..abd1ac8738 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.validate.go @@ -0,0 +1,106 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/cluster_assignment.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 _cluster_assignment_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 ClusterAssignment with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ClusterAssignment) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ClusterPoolName + + return nil +} + +// ClusterAssignmentValidationError is the validation error returned by +// ClusterAssignment.Validate if the designated constraints aren't met. +type ClusterAssignmentValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterAssignmentValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterAssignmentValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterAssignmentValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterAssignmentValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterAssignmentValidationError) ErrorName() string { + return "ClusterAssignmentValidationError" +} + +// Error satisfies the builtin error interface +func (e ClusterAssignmentValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sClusterAssignment.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterAssignmentValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterAssignmentValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.swagger.json new file mode 100644 index 0000000000..4c180efe77 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/cluster_assignment.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go new file mode 100644 index 0000000000..93519b513b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go @@ -0,0 +1,1563 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/common.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// The status of the named entity is used to control its visibility in the UI. +type NamedEntityState int32 + +const ( + // By default, all named entities are considered active and under development. + NamedEntityState_NAMED_ENTITY_ACTIVE NamedEntityState = 0 + // Archived named entities are no longer visible in the UI. + NamedEntityState_NAMED_ENTITY_ARCHIVED NamedEntityState = 1 + // System generated entities that aren't explicitly created or managed by a user. + NamedEntityState_SYSTEM_GENERATED NamedEntityState = 2 +) + +var NamedEntityState_name = map[int32]string{ + 0: "NAMED_ENTITY_ACTIVE", + 1: "NAMED_ENTITY_ARCHIVED", + 2: "SYSTEM_GENERATED", +} + +var NamedEntityState_value = map[string]int32{ + "NAMED_ENTITY_ACTIVE": 0, + "NAMED_ENTITY_ARCHIVED": 1, + "SYSTEM_GENERATED": 2, +} + +func (x NamedEntityState) String() string { + return proto.EnumName(NamedEntityState_name, int32(x)) +} + +func (NamedEntityState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{0} +} + +type Sort_Direction int32 + +const ( + // By default, fields are sorted in descending order. + Sort_DESCENDING Sort_Direction = 0 + Sort_ASCENDING Sort_Direction = 1 +) + +var Sort_Direction_name = map[int32]string{ + 0: "DESCENDING", + 1: "ASCENDING", +} + +var Sort_Direction_value = map[string]int32{ + "DESCENDING": 0, + "ASCENDING": 1, +} + +func (x Sort_Direction) String() string { + return proto.EnumName(Sort_Direction_name, int32(x)) +} + +func (Sort_Direction) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{3, 0} +} + +// Encapsulation of fields that identifies a Flyte resource. +// A Flyte resource can be a task, workflow or launch plan. +// A resource can internally have multiple versions and is uniquely identified +// by project, domain, and name. +type NamedEntityIdentifier struct { + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + // The combination of project + domain + name uniquely identifies the resource. + // +optional - in certain contexts - like 'List API', 'Launch plans' + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityIdentifier) Reset() { *m = NamedEntityIdentifier{} } +func (m *NamedEntityIdentifier) String() string { return proto.CompactTextString(m) } +func (*NamedEntityIdentifier) ProtoMessage() {} +func (*NamedEntityIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{0} +} + +func (m *NamedEntityIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityIdentifier.Unmarshal(m, b) +} +func (m *NamedEntityIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityIdentifier.Marshal(b, m, deterministic) +} +func (m *NamedEntityIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityIdentifier.Merge(m, src) +} +func (m *NamedEntityIdentifier) XXX_Size() int { + return xxx_messageInfo_NamedEntityIdentifier.Size(m) +} +func (m *NamedEntityIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityIdentifier proto.InternalMessageInfo + +func (m *NamedEntityIdentifier) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *NamedEntityIdentifier) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *NamedEntityIdentifier) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Additional metadata around a named entity. +type NamedEntityMetadata struct { + // Common description across all versions of the entity + // +optional + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + // Shared state across all version of the entity + // At this point in time, only workflow entities can have their state archived. + State NamedEntityState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.NamedEntityState" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityMetadata) Reset() { *m = NamedEntityMetadata{} } +func (m *NamedEntityMetadata) String() string { return proto.CompactTextString(m) } +func (*NamedEntityMetadata) ProtoMessage() {} +func (*NamedEntityMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{1} +} + +func (m *NamedEntityMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityMetadata.Unmarshal(m, b) +} +func (m *NamedEntityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityMetadata.Marshal(b, m, deterministic) +} +func (m *NamedEntityMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityMetadata.Merge(m, src) +} +func (m *NamedEntityMetadata) XXX_Size() int { + return xxx_messageInfo_NamedEntityMetadata.Size(m) +} +func (m *NamedEntityMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityMetadata proto.InternalMessageInfo + +func (m *NamedEntityMetadata) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NamedEntityMetadata) GetState() NamedEntityState { + if m != nil { + return m.State + } + return NamedEntityState_NAMED_ENTITY_ACTIVE +} + +// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, +// workflow or launch plan. A NamedEntity is exclusively identified by its resource type +// and identifier. +type NamedEntity struct { + // Resource type of the named entity. One of Task, Workflow or LaunchPlan. + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Additional metadata around a named entity. + Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntity) Reset() { *m = NamedEntity{} } +func (m *NamedEntity) String() string { return proto.CompactTextString(m) } +func (*NamedEntity) ProtoMessage() {} +func (*NamedEntity) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{2} +} + +func (m *NamedEntity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntity.Unmarshal(m, b) +} +func (m *NamedEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntity.Marshal(b, m, deterministic) +} +func (m *NamedEntity) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntity.Merge(m, src) +} +func (m *NamedEntity) XXX_Size() int { + return xxx_messageInfo_NamedEntity.Size(m) +} +func (m *NamedEntity) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntity.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntity proto.InternalMessageInfo + +func (m *NamedEntity) GetResourceType() core.ResourceType { + if m != nil { + return m.ResourceType + } + return core.ResourceType_UNSPECIFIED +} + +func (m *NamedEntity) GetId() *NamedEntityIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *NamedEntity) GetMetadata() *NamedEntityMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +// Specifies sort ordering in a list request. +type Sort struct { + // Indicates an attribute to sort the response values. + // +required + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Indicates the direction to apply sort key for response values. + // +optional + Direction Sort_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.admin.Sort_Direction" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Sort) Reset() { *m = Sort{} } +func (m *Sort) String() string { return proto.CompactTextString(m) } +func (*Sort) ProtoMessage() {} +func (*Sort) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{3} +} + +func (m *Sort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Sort.Unmarshal(m, b) +} +func (m *Sort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Sort.Marshal(b, m, deterministic) +} +func (m *Sort) XXX_Merge(src proto.Message) { + xxx_messageInfo_Sort.Merge(m, src) +} +func (m *Sort) XXX_Size() int { + return xxx_messageInfo_Sort.Size(m) +} +func (m *Sort) XXX_DiscardUnknown() { + xxx_messageInfo_Sort.DiscardUnknown(m) +} + +var xxx_messageInfo_Sort proto.InternalMessageInfo + +func (m *Sort) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Sort) GetDirection() Sort_Direction { + if m != nil { + return m.Direction + } + return Sort_DESCENDING +} + +// Represents a request structure to list NamedEntityIdentifiers. +type NamedEntityIdentifierListRequest struct { + // Name of the project that contains the identifiers. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the identifiers belongs to within the project. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // Specifies how listed entities should be sorted in the response. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Indicates a list of filters passed as string. + // +optional + Filters string `protobuf:"bytes,6,opt,name=filters,proto3" json:"filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityIdentifierListRequest) Reset() { *m = NamedEntityIdentifierListRequest{} } +func (m *NamedEntityIdentifierListRequest) String() string { return proto.CompactTextString(m) } +func (*NamedEntityIdentifierListRequest) ProtoMessage() {} +func (*NamedEntityIdentifierListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{4} +} + +func (m *NamedEntityIdentifierListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityIdentifierListRequest.Unmarshal(m, b) +} +func (m *NamedEntityIdentifierListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityIdentifierListRequest.Marshal(b, m, deterministic) +} +func (m *NamedEntityIdentifierListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityIdentifierListRequest.Merge(m, src) +} +func (m *NamedEntityIdentifierListRequest) XXX_Size() int { + return xxx_messageInfo_NamedEntityIdentifierListRequest.Size(m) +} +func (m *NamedEntityIdentifierListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityIdentifierListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityIdentifierListRequest proto.InternalMessageInfo + +func (m *NamedEntityIdentifierListRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *NamedEntityIdentifierListRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *NamedEntityIdentifierListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *NamedEntityIdentifierListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *NamedEntityIdentifierListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +func (m *NamedEntityIdentifierListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +// Represents a request structure to list NamedEntity objects +type NamedEntityListRequest struct { + // Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. + // +required + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // Name of the project that contains the identifiers. + // +required + Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the identifiers belongs to within the project. + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + // Indicates the number of resources to be returned. + Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` + // Specifies how listed entities should be sorted in the response. + // +optional + SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Indicates a list of filters passed as string. + // +optional + Filters string `protobuf:"bytes,7,opt,name=filters,proto3" json:"filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityListRequest) Reset() { *m = NamedEntityListRequest{} } +func (m *NamedEntityListRequest) String() string { return proto.CompactTextString(m) } +func (*NamedEntityListRequest) ProtoMessage() {} +func (*NamedEntityListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{5} +} + +func (m *NamedEntityListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityListRequest.Unmarshal(m, b) +} +func (m *NamedEntityListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityListRequest.Marshal(b, m, deterministic) +} +func (m *NamedEntityListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityListRequest.Merge(m, src) +} +func (m *NamedEntityListRequest) XXX_Size() int { + return xxx_messageInfo_NamedEntityListRequest.Size(m) +} +func (m *NamedEntityListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityListRequest proto.InternalMessageInfo + +func (m *NamedEntityListRequest) GetResourceType() core.ResourceType { + if m != nil { + return m.ResourceType + } + return core.ResourceType_UNSPECIFIED +} + +func (m *NamedEntityListRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *NamedEntityListRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *NamedEntityListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *NamedEntityListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *NamedEntityListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +func (m *NamedEntityListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +// Represents a list of NamedEntityIdentifiers. +type NamedEntityIdentifierList struct { + // A list of identifiers. + Entities []*NamedEntityIdentifier `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityIdentifierList) Reset() { *m = NamedEntityIdentifierList{} } +func (m *NamedEntityIdentifierList) String() string { return proto.CompactTextString(m) } +func (*NamedEntityIdentifierList) ProtoMessage() {} +func (*NamedEntityIdentifierList) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{6} +} + +func (m *NamedEntityIdentifierList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityIdentifierList.Unmarshal(m, b) +} +func (m *NamedEntityIdentifierList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityIdentifierList.Marshal(b, m, deterministic) +} +func (m *NamedEntityIdentifierList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityIdentifierList.Merge(m, src) +} +func (m *NamedEntityIdentifierList) XXX_Size() int { + return xxx_messageInfo_NamedEntityIdentifierList.Size(m) +} +func (m *NamedEntityIdentifierList) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityIdentifierList.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityIdentifierList proto.InternalMessageInfo + +func (m *NamedEntityIdentifierList) GetEntities() []*NamedEntityIdentifier { + if m != nil { + return m.Entities + } + return nil +} + +func (m *NamedEntityIdentifierList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Represents a list of NamedEntityIdentifiers. +type NamedEntityList struct { + // A list of NamedEntity objects + Entities []*NamedEntity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityList) Reset() { *m = NamedEntityList{} } +func (m *NamedEntityList) String() string { return proto.CompactTextString(m) } +func (*NamedEntityList) ProtoMessage() {} +func (*NamedEntityList) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{7} +} + +func (m *NamedEntityList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityList.Unmarshal(m, b) +} +func (m *NamedEntityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityList.Marshal(b, m, deterministic) +} +func (m *NamedEntityList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityList.Merge(m, src) +} +func (m *NamedEntityList) XXX_Size() int { + return xxx_messageInfo_NamedEntityList.Size(m) +} +func (m *NamedEntityList) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityList.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityList proto.InternalMessageInfo + +func (m *NamedEntityList) GetEntities() []*NamedEntity { + if m != nil { + return m.Entities + } + return nil +} + +func (m *NamedEntityList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// A request to retrieve the metadata associated with a NamedEntityIdentifier +type NamedEntityGetRequest struct { + // Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. + // +required + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // The identifier for the named entity for which to fetch metadata. + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityGetRequest) Reset() { *m = NamedEntityGetRequest{} } +func (m *NamedEntityGetRequest) String() string { return proto.CompactTextString(m) } +func (*NamedEntityGetRequest) ProtoMessage() {} +func (*NamedEntityGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{8} +} + +func (m *NamedEntityGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityGetRequest.Unmarshal(m, b) +} +func (m *NamedEntityGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityGetRequest.Marshal(b, m, deterministic) +} +func (m *NamedEntityGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityGetRequest.Merge(m, src) +} +func (m *NamedEntityGetRequest) XXX_Size() int { + return xxx_messageInfo_NamedEntityGetRequest.Size(m) +} +func (m *NamedEntityGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityGetRequest proto.InternalMessageInfo + +func (m *NamedEntityGetRequest) GetResourceType() core.ResourceType { + if m != nil { + return m.ResourceType + } + return core.ResourceType_UNSPECIFIED +} + +func (m *NamedEntityGetRequest) GetId() *NamedEntityIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Request to set the referenced named entity state to the configured value. +type NamedEntityUpdateRequest struct { + // Resource type of the metadata to update + // +required + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // Identifier of the metadata to update + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Metadata object to set as the new value + // +required + Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityUpdateRequest) Reset() { *m = NamedEntityUpdateRequest{} } +func (m *NamedEntityUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*NamedEntityUpdateRequest) ProtoMessage() {} +func (*NamedEntityUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{9} +} + +func (m *NamedEntityUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityUpdateRequest.Unmarshal(m, b) +} +func (m *NamedEntityUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityUpdateRequest.Marshal(b, m, deterministic) +} +func (m *NamedEntityUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityUpdateRequest.Merge(m, src) +} +func (m *NamedEntityUpdateRequest) XXX_Size() int { + return xxx_messageInfo_NamedEntityUpdateRequest.Size(m) +} +func (m *NamedEntityUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityUpdateRequest proto.InternalMessageInfo + +func (m *NamedEntityUpdateRequest) GetResourceType() core.ResourceType { + if m != nil { + return m.ResourceType + } + return core.ResourceType_UNSPECIFIED +} + +func (m *NamedEntityUpdateRequest) GetId() *NamedEntityIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *NamedEntityUpdateRequest) GetMetadata() *NamedEntityMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +// Purposefully empty, may be populated in the future. +type NamedEntityUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityUpdateResponse) Reset() { *m = NamedEntityUpdateResponse{} } +func (m *NamedEntityUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*NamedEntityUpdateResponse) ProtoMessage() {} +func (*NamedEntityUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{10} +} + +func (m *NamedEntityUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityUpdateResponse.Unmarshal(m, b) +} +func (m *NamedEntityUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityUpdateResponse.Marshal(b, m, deterministic) +} +func (m *NamedEntityUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityUpdateResponse.Merge(m, src) +} +func (m *NamedEntityUpdateResponse) XXX_Size() int { + return xxx_messageInfo_NamedEntityUpdateResponse.Size(m) +} +func (m *NamedEntityUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityUpdateResponse proto.InternalMessageInfo + +// Shared request structure to fetch a single resource. +// Resources include: Task, Workflow, LaunchPlan +type ObjectGetRequest struct { + // Indicates a unique version of resource. + // +required + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ObjectGetRequest) Reset() { *m = ObjectGetRequest{} } +func (m *ObjectGetRequest) String() string { return proto.CompactTextString(m) } +func (*ObjectGetRequest) ProtoMessage() {} +func (*ObjectGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{11} +} + +func (m *ObjectGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ObjectGetRequest.Unmarshal(m, b) +} +func (m *ObjectGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ObjectGetRequest.Marshal(b, m, deterministic) +} +func (m *ObjectGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ObjectGetRequest.Merge(m, src) +} +func (m *ObjectGetRequest) XXX_Size() int { + return xxx_messageInfo_ObjectGetRequest.Size(m) +} +func (m *ObjectGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ObjectGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ObjectGetRequest proto.InternalMessageInfo + +func (m *ObjectGetRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +// Shared request structure to retrieve a list of resources. +// Resources include: Task, Workflow, LaunchPlan +type ResourceListRequest struct { + // id represents the unique identifier of the resource. + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceListRequest) Reset() { *m = ResourceListRequest{} } +func (m *ResourceListRequest) String() string { return proto.CompactTextString(m) } +func (*ResourceListRequest) ProtoMessage() {} +func (*ResourceListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{12} +} + +func (m *ResourceListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourceListRequest.Unmarshal(m, b) +} +func (m *ResourceListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourceListRequest.Marshal(b, m, deterministic) +} +func (m *ResourceListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceListRequest.Merge(m, src) +} +func (m *ResourceListRequest) XXX_Size() int { + return xxx_messageInfo_ResourceListRequest.Size(m) +} +func (m *ResourceListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceListRequest proto.InternalMessageInfo + +func (m *ResourceListRequest) GetId() *NamedEntityIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ResourceListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ResourceListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *ResourceListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *ResourceListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Defines an email notification specification. +type EmailNotification struct { + // The list of email addresses recipients for this notification. + // +required + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EmailNotification) Reset() { *m = EmailNotification{} } +func (m *EmailNotification) String() string { return proto.CompactTextString(m) } +func (*EmailNotification) ProtoMessage() {} +func (*EmailNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{13} +} + +func (m *EmailNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmailNotification.Unmarshal(m, b) +} +func (m *EmailNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmailNotification.Marshal(b, m, deterministic) +} +func (m *EmailNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmailNotification.Merge(m, src) +} +func (m *EmailNotification) XXX_Size() int { + return xxx_messageInfo_EmailNotification.Size(m) +} +func (m *EmailNotification) XXX_DiscardUnknown() { + xxx_messageInfo_EmailNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_EmailNotification proto.InternalMessageInfo + +func (m *EmailNotification) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +// Defines a pager duty notification specification. +type PagerDutyNotification struct { + // Currently, PagerDuty notifications leverage email to trigger a notification. + // +required + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PagerDutyNotification) Reset() { *m = PagerDutyNotification{} } +func (m *PagerDutyNotification) String() string { return proto.CompactTextString(m) } +func (*PagerDutyNotification) ProtoMessage() {} +func (*PagerDutyNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{14} +} + +func (m *PagerDutyNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PagerDutyNotification.Unmarshal(m, b) +} +func (m *PagerDutyNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PagerDutyNotification.Marshal(b, m, deterministic) +} +func (m *PagerDutyNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_PagerDutyNotification.Merge(m, src) +} +func (m *PagerDutyNotification) XXX_Size() int { + return xxx_messageInfo_PagerDutyNotification.Size(m) +} +func (m *PagerDutyNotification) XXX_DiscardUnknown() { + xxx_messageInfo_PagerDutyNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_PagerDutyNotification proto.InternalMessageInfo + +func (m *PagerDutyNotification) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +// Defines a slack notification specification. +type SlackNotification struct { + // Currently, Slack notifications leverage email to trigger a notification. + // +required + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SlackNotification) Reset() { *m = SlackNotification{} } +func (m *SlackNotification) String() string { return proto.CompactTextString(m) } +func (*SlackNotification) ProtoMessage() {} +func (*SlackNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{15} +} + +func (m *SlackNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SlackNotification.Unmarshal(m, b) +} +func (m *SlackNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SlackNotification.Marshal(b, m, deterministic) +} +func (m *SlackNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_SlackNotification.Merge(m, src) +} +func (m *SlackNotification) XXX_Size() int { + return xxx_messageInfo_SlackNotification.Size(m) +} +func (m *SlackNotification) XXX_DiscardUnknown() { + xxx_messageInfo_SlackNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_SlackNotification proto.InternalMessageInfo + +func (m *SlackNotification) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +// Represents a structure for notifications based on execution status. +// The notification content is configured within flyte admin but can be templatized. +// Future iterations could expose configuring notifications with custom content. +type Notification struct { + // A list of phases to which users can associate the notifications to. + // +required + Phases []core.WorkflowExecution_Phase `protobuf:"varint,1,rep,packed,name=phases,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phases,omitempty"` + // The type of notification to trigger. + // +required + // + // Types that are valid to be assigned to Type: + // *Notification_Email + // *Notification_PagerDuty + // *Notification_Slack + Type isNotification_Type `protobuf_oneof:"type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Notification) Reset() { *m = Notification{} } +func (m *Notification) String() string { return proto.CompactTextString(m) } +func (*Notification) ProtoMessage() {} +func (*Notification) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{16} +} + +func (m *Notification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Notification.Unmarshal(m, b) +} +func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Notification.Marshal(b, m, deterministic) +} +func (m *Notification) XXX_Merge(src proto.Message) { + xxx_messageInfo_Notification.Merge(m, src) +} +func (m *Notification) XXX_Size() int { + return xxx_messageInfo_Notification.Size(m) +} +func (m *Notification) XXX_DiscardUnknown() { + xxx_messageInfo_Notification.DiscardUnknown(m) +} + +var xxx_messageInfo_Notification proto.InternalMessageInfo + +func (m *Notification) GetPhases() []core.WorkflowExecution_Phase { + if m != nil { + return m.Phases + } + return nil +} + +type isNotification_Type interface { + isNotification_Type() +} + +type Notification_Email struct { + Email *EmailNotification `protobuf:"bytes,2,opt,name=email,proto3,oneof"` +} + +type Notification_PagerDuty struct { + PagerDuty *PagerDutyNotification `protobuf:"bytes,3,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` +} + +type Notification_Slack struct { + Slack *SlackNotification `protobuf:"bytes,4,opt,name=slack,proto3,oneof"` +} + +func (*Notification_Email) isNotification_Type() {} + +func (*Notification_PagerDuty) isNotification_Type() {} + +func (*Notification_Slack) isNotification_Type() {} + +func (m *Notification) GetType() isNotification_Type { + if m != nil { + return m.Type + } + return nil +} + +func (m *Notification) GetEmail() *EmailNotification { + if x, ok := m.GetType().(*Notification_Email); ok { + return x.Email + } + return nil +} + +func (m *Notification) GetPagerDuty() *PagerDutyNotification { + if x, ok := m.GetType().(*Notification_PagerDuty); ok { + return x.PagerDuty + } + return nil +} + +func (m *Notification) GetSlack() *SlackNotification { + if x, ok := m.GetType().(*Notification_Slack); ok { + return x.Slack + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Notification) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Notification_Email)(nil), + (*Notification_PagerDuty)(nil), + (*Notification_Slack)(nil), + } +} + +// Represents a string url and associated metadata used throughout the platform. +// +// Deprecated: Do not use. +type UrlBlob struct { + // Actual url value. + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + // Represents the size of the file accessible at the above url. + Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UrlBlob) Reset() { *m = UrlBlob{} } +func (m *UrlBlob) String() string { return proto.CompactTextString(m) } +func (*UrlBlob) ProtoMessage() {} +func (*UrlBlob) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{17} +} + +func (m *UrlBlob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UrlBlob.Unmarshal(m, b) +} +func (m *UrlBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UrlBlob.Marshal(b, m, deterministic) +} +func (m *UrlBlob) XXX_Merge(src proto.Message) { + xxx_messageInfo_UrlBlob.Merge(m, src) +} +func (m *UrlBlob) XXX_Size() int { + return xxx_messageInfo_UrlBlob.Size(m) +} +func (m *UrlBlob) XXX_DiscardUnknown() { + xxx_messageInfo_UrlBlob.DiscardUnknown(m) +} + +var xxx_messageInfo_UrlBlob proto.InternalMessageInfo + +func (m *UrlBlob) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *UrlBlob) GetBytes() int64 { + if m != nil { + return m.Bytes + } + return 0 +} + +// Label values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge labels defined at registration and execution time. +type Labels struct { + // Map of custom labels to be applied to the execution resource. + Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Labels) Reset() { *m = Labels{} } +func (m *Labels) String() string { return proto.CompactTextString(m) } +func (*Labels) ProtoMessage() {} +func (*Labels) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{18} +} + +func (m *Labels) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Labels.Unmarshal(m, b) +} +func (m *Labels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Labels.Marshal(b, m, deterministic) +} +func (m *Labels) XXX_Merge(src proto.Message) { + xxx_messageInfo_Labels.Merge(m, src) +} +func (m *Labels) XXX_Size() int { + return xxx_messageInfo_Labels.Size(m) +} +func (m *Labels) XXX_DiscardUnknown() { + xxx_messageInfo_Labels.DiscardUnknown(m) +} + +var xxx_messageInfo_Labels proto.InternalMessageInfo + +func (m *Labels) GetValues() map[string]string { + if m != nil { + return m.Values + } + return nil +} + +// Annotation values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge annotations defined at registration and execution time. +type Annotations struct { + // Map of custom annotations to be applied to the execution resource. + Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Annotations) Reset() { *m = Annotations{} } +func (m *Annotations) String() string { return proto.CompactTextString(m) } +func (*Annotations) ProtoMessage() {} +func (*Annotations) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{19} +} + +func (m *Annotations) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Annotations.Unmarshal(m, b) +} +func (m *Annotations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Annotations.Marshal(b, m, deterministic) +} +func (m *Annotations) XXX_Merge(src proto.Message) { + xxx_messageInfo_Annotations.Merge(m, src) +} +func (m *Annotations) XXX_Size() int { + return xxx_messageInfo_Annotations.Size(m) +} +func (m *Annotations) XXX_DiscardUnknown() { + xxx_messageInfo_Annotations.DiscardUnknown(m) +} + +var xxx_messageInfo_Annotations proto.InternalMessageInfo + +func (m *Annotations) GetValues() map[string]string { + if m != nil { + return m.Values + } + return nil +} + +// Environment variable values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge environment variables defined at registration and execution time. +type Envs struct { + // Map of custom environment variables to be applied to the execution resource. + Values []*core.KeyValuePair `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Envs) Reset() { *m = Envs{} } +func (m *Envs) String() string { return proto.CompactTextString(m) } +func (*Envs) ProtoMessage() {} +func (*Envs) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{20} +} + +func (m *Envs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Envs.Unmarshal(m, b) +} +func (m *Envs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Envs.Marshal(b, m, deterministic) +} +func (m *Envs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Envs.Merge(m, src) +} +func (m *Envs) XXX_Size() int { + return xxx_messageInfo_Envs.Size(m) +} +func (m *Envs) XXX_DiscardUnknown() { + xxx_messageInfo_Envs.DiscardUnknown(m) +} + +var xxx_messageInfo_Envs proto.InternalMessageInfo + +func (m *Envs) GetValues() []*core.KeyValuePair { + if m != nil { + return m.Values + } + return nil +} + +// Defines permissions associated with executions created by this launch plan spec. +// Use either of these roles when they have permissions required by your workflow execution. +// Deprecated. +// +// Deprecated: Do not use. +type AuthRole struct { + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AuthRole) Reset() { *m = AuthRole{} } +func (m *AuthRole) String() string { return proto.CompactTextString(m) } +func (*AuthRole) ProtoMessage() {} +func (*AuthRole) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{21} +} + +func (m *AuthRole) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AuthRole.Unmarshal(m, b) +} +func (m *AuthRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AuthRole.Marshal(b, m, deterministic) +} +func (m *AuthRole) XXX_Merge(src proto.Message) { + xxx_messageInfo_AuthRole.Merge(m, src) +} +func (m *AuthRole) XXX_Size() int { + return xxx_messageInfo_AuthRole.Size(m) +} +func (m *AuthRole) XXX_DiscardUnknown() { + xxx_messageInfo_AuthRole.DiscardUnknown(m) +} + +var xxx_messageInfo_AuthRole proto.InternalMessageInfo + +func (m *AuthRole) GetAssumableIamRole() string { + if m != nil { + return m.AssumableIamRole + } + return "" +} + +func (m *AuthRole) GetKubernetesServiceAccount() string { + if m != nil { + return m.KubernetesServiceAccount + } + return "" +} + +// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). +// See https://github.com/flyteorg/flyte/issues/211 for more background information. +type RawOutputDataConfig struct { + // Prefix for where offloaded data from user workflows will be written + // e.g. s3://bucket/key or s3://bucket/ + OutputLocationPrefix string `protobuf:"bytes,1,opt,name=output_location_prefix,json=outputLocationPrefix,proto3" json:"output_location_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawOutputDataConfig) Reset() { *m = RawOutputDataConfig{} } +func (m *RawOutputDataConfig) String() string { return proto.CompactTextString(m) } +func (*RawOutputDataConfig) ProtoMessage() {} +func (*RawOutputDataConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{22} +} + +func (m *RawOutputDataConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RawOutputDataConfig.Unmarshal(m, b) +} +func (m *RawOutputDataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RawOutputDataConfig.Marshal(b, m, deterministic) +} +func (m *RawOutputDataConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawOutputDataConfig.Merge(m, src) +} +func (m *RawOutputDataConfig) XXX_Size() int { + return xxx_messageInfo_RawOutputDataConfig.Size(m) +} +func (m *RawOutputDataConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RawOutputDataConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_RawOutputDataConfig proto.InternalMessageInfo + +func (m *RawOutputDataConfig) GetOutputLocationPrefix() string { + if m != nil { + return m.OutputLocationPrefix + } + return "" +} + +// These URLs are returned as part of node and task execution data requests. +type FlyteURLs struct { + Inputs string `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + Outputs string `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + Deck string `protobuf:"bytes,3,opt,name=deck,proto3" json:"deck,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FlyteURLs) Reset() { *m = FlyteURLs{} } +func (m *FlyteURLs) String() string { return proto.CompactTextString(m) } +func (*FlyteURLs) ProtoMessage() {} +func (*FlyteURLs) Descriptor() ([]byte, []int) { + return fileDescriptor_7c2cf612a185829c, []int{23} +} + +func (m *FlyteURLs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FlyteURLs.Unmarshal(m, b) +} +func (m *FlyteURLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FlyteURLs.Marshal(b, m, deterministic) +} +func (m *FlyteURLs) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlyteURLs.Merge(m, src) +} +func (m *FlyteURLs) XXX_Size() int { + return xxx_messageInfo_FlyteURLs.Size(m) +} +func (m *FlyteURLs) XXX_DiscardUnknown() { + xxx_messageInfo_FlyteURLs.DiscardUnknown(m) +} + +var xxx_messageInfo_FlyteURLs proto.InternalMessageInfo + +func (m *FlyteURLs) GetInputs() string { + if m != nil { + return m.Inputs + } + return "" +} + +func (m *FlyteURLs) GetOutputs() string { + if m != nil { + return m.Outputs + } + return "" +} + +func (m *FlyteURLs) GetDeck() string { + if m != nil { + return m.Deck + } + return "" +} + +func init() { + proto.RegisterEnum("flyteidl.admin.NamedEntityState", NamedEntityState_name, NamedEntityState_value) + proto.RegisterEnum("flyteidl.admin.Sort_Direction", Sort_Direction_name, Sort_Direction_value) + proto.RegisterType((*NamedEntityIdentifier)(nil), "flyteidl.admin.NamedEntityIdentifier") + proto.RegisterType((*NamedEntityMetadata)(nil), "flyteidl.admin.NamedEntityMetadata") + proto.RegisterType((*NamedEntity)(nil), "flyteidl.admin.NamedEntity") + proto.RegisterType((*Sort)(nil), "flyteidl.admin.Sort") + proto.RegisterType((*NamedEntityIdentifierListRequest)(nil), "flyteidl.admin.NamedEntityIdentifierListRequest") + proto.RegisterType((*NamedEntityListRequest)(nil), "flyteidl.admin.NamedEntityListRequest") + proto.RegisterType((*NamedEntityIdentifierList)(nil), "flyteidl.admin.NamedEntityIdentifierList") + proto.RegisterType((*NamedEntityList)(nil), "flyteidl.admin.NamedEntityList") + proto.RegisterType((*NamedEntityGetRequest)(nil), "flyteidl.admin.NamedEntityGetRequest") + proto.RegisterType((*NamedEntityUpdateRequest)(nil), "flyteidl.admin.NamedEntityUpdateRequest") + proto.RegisterType((*NamedEntityUpdateResponse)(nil), "flyteidl.admin.NamedEntityUpdateResponse") + proto.RegisterType((*ObjectGetRequest)(nil), "flyteidl.admin.ObjectGetRequest") + proto.RegisterType((*ResourceListRequest)(nil), "flyteidl.admin.ResourceListRequest") + proto.RegisterType((*EmailNotification)(nil), "flyteidl.admin.EmailNotification") + proto.RegisterType((*PagerDutyNotification)(nil), "flyteidl.admin.PagerDutyNotification") + proto.RegisterType((*SlackNotification)(nil), "flyteidl.admin.SlackNotification") + proto.RegisterType((*Notification)(nil), "flyteidl.admin.Notification") + proto.RegisterType((*UrlBlob)(nil), "flyteidl.admin.UrlBlob") + proto.RegisterType((*Labels)(nil), "flyteidl.admin.Labels") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.Labels.ValuesEntry") + proto.RegisterType((*Annotations)(nil), "flyteidl.admin.Annotations") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.Annotations.ValuesEntry") + proto.RegisterType((*Envs)(nil), "flyteidl.admin.Envs") + proto.RegisterType((*AuthRole)(nil), "flyteidl.admin.AuthRole") + proto.RegisterType((*RawOutputDataConfig)(nil), "flyteidl.admin.RawOutputDataConfig") + proto.RegisterType((*FlyteURLs)(nil), "flyteidl.admin.FlyteURLs") +} + +func init() { proto.RegisterFile("flyteidl/admin/common.proto", fileDescriptor_7c2cf612a185829c) } + +var fileDescriptor_7c2cf612a185829c = []byte{ + // 1190 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdf, 0x73, 0xdb, 0x44, + 0x10, 0x8e, 0x1c, 0xc7, 0xa9, 0x37, 0x6d, 0xea, 0x5e, 0xd2, 0xe2, 0x26, 0x50, 0x82, 0x18, 0x7e, + 0xb4, 0x43, 0xed, 0x99, 0x94, 0x50, 0x5a, 0x4a, 0x8b, 0x13, 0xab, 0x6d, 0xa6, 0xa9, 0x1b, 0xe4, + 0xb4, 0x4c, 0x19, 0x18, 0x71, 0x96, 0xce, 0xee, 0x11, 0x49, 0x27, 0xee, 0x4e, 0x6d, 0xc5, 0x0b, + 0x03, 0x6f, 0xbc, 0xf1, 0xc0, 0x3f, 0xc4, 0x13, 0xc3, 0x3b, 0x7f, 0x10, 0x73, 0x27, 0xc9, 0x91, + 0x15, 0xb7, 0x90, 0xb4, 0x33, 0xbc, 0x79, 0x6f, 0xbf, 0xbd, 0xfd, 0xf6, 0xbb, 0xbd, 0xf5, 0x09, + 0x56, 0x87, 0x7e, 0x22, 0x09, 0xf5, 0xfc, 0x36, 0xf6, 0x02, 0x1a, 0xb6, 0x5d, 0x16, 0x04, 0x2c, + 0x6c, 0x45, 0x9c, 0x49, 0x86, 0x16, 0x73, 0x67, 0x4b, 0x3b, 0x57, 0xde, 0x1a, 0x83, 0x5d, 0xc6, + 0x49, 0x9b, 0x3c, 0x27, 0x6e, 0x2c, 0x69, 0x0e, 0x5f, 0xb9, 0x30, 0xe9, 0xa6, 0x1e, 0x09, 0x25, + 0x1d, 0x52, 0xc2, 0x33, 0xff, 0x9b, 0x93, 0x7e, 0x9f, 0x4a, 0xc2, 0xb1, 0x2f, 0x32, 0xef, 0xdb, + 0x23, 0xc6, 0x46, 0x3e, 0x69, 0x6b, 0x6b, 0x10, 0x0f, 0xdb, 0x92, 0x06, 0x44, 0x48, 0x1c, 0x44, + 0x29, 0xc0, 0xfc, 0x16, 0xce, 0xf6, 0x70, 0x40, 0x3c, 0x2b, 0x94, 0x54, 0x26, 0xdb, 0xe3, 0xdd, + 0x51, 0x13, 0xe6, 0x23, 0xce, 0xbe, 0x27, 0xae, 0x6c, 0x1a, 0x6b, 0xc6, 0x87, 0x75, 0x3b, 0x37, + 0xd1, 0x39, 0xa8, 0x79, 0x2c, 0xc0, 0x34, 0x6c, 0x56, 0xb4, 0x23, 0xb3, 0x10, 0x82, 0x6a, 0x88, + 0x03, 0xd2, 0x9c, 0xd5, 0xab, 0xfa, 0xb7, 0xc9, 0x60, 0xa9, 0xb0, 0xfd, 0x7d, 0x22, 0xb1, 0x87, + 0x25, 0x46, 0x6b, 0xb0, 0xe0, 0x11, 0xe1, 0x72, 0x1a, 0xa9, 0x4a, 0xb3, 0x04, 0xc5, 0x25, 0xf4, + 0x09, 0xcc, 0x09, 0x89, 0x25, 0xd1, 0x39, 0x16, 0xd7, 0xd7, 0x5a, 0x93, 0xaa, 0xb5, 0x0a, 0xbb, + 0xf6, 0x15, 0xce, 0x4e, 0xe1, 0xe6, 0x9f, 0x06, 0x2c, 0x14, 0x7c, 0xe8, 0x0b, 0x38, 0xc5, 0x89, + 0x60, 0x31, 0x77, 0x89, 0x23, 0x93, 0x88, 0xe8, 0x5c, 0x8b, 0xeb, 0xab, 0x07, 0xfb, 0x29, 0xd9, + 0x5a, 0x76, 0x86, 0xd9, 0x4b, 0x22, 0x62, 0x9f, 0xe4, 0x05, 0x0b, 0x6d, 0x40, 0x85, 0x7a, 0x9a, + 0xc6, 0xc2, 0xfa, 0x7b, 0x2f, 0xa1, 0x71, 0xa0, 0x9d, 0x5d, 0xa1, 0x1e, 0xba, 0x05, 0x27, 0x82, + 0xac, 0x5c, 0xad, 0xc8, 0xc2, 0xfa, 0xbb, 0x2f, 0x09, 0xce, 0x95, 0xb1, 0xc7, 0x41, 0xe6, 0x2f, + 0x06, 0x54, 0xfb, 0x8c, 0x4b, 0xd4, 0x80, 0xd9, 0x7d, 0x92, 0x64, 0x22, 0xa9, 0x9f, 0xe8, 0x06, + 0xd4, 0x3d, 0xca, 0x89, 0xab, 0xc5, 0x4b, 0x05, 0xba, 0x50, 0xde, 0x5c, 0x85, 0xb6, 0xba, 0x39, + 0xca, 0x3e, 0x08, 0x30, 0x2f, 0x41, 0x7d, 0xbc, 0x8e, 0x16, 0x01, 0xba, 0x56, 0x7f, 0xcb, 0xea, + 0x75, 0xb7, 0x7b, 0x77, 0x1a, 0x33, 0xe8, 0x14, 0xd4, 0x3b, 0x63, 0xd3, 0x30, 0xff, 0x32, 0x60, + 0x6d, 0x6a, 0x8d, 0x3b, 0x54, 0x48, 0x9b, 0xfc, 0x10, 0x13, 0x21, 0x8f, 0xd1, 0x2a, 0xcb, 0x30, + 0xe7, 0xd3, 0x80, 0x4a, 0xad, 0xcc, 0x29, 0x3b, 0x35, 0xd4, 0xaa, 0x64, 0xfb, 0x24, 0x6c, 0x56, + 0x35, 0x38, 0x35, 0xd0, 0x65, 0x98, 0x17, 0x8c, 0x4b, 0x67, 0x90, 0x34, 0xe7, 0xb4, 0x8e, 0xcb, + 0xd3, 0x4a, 0xb5, 0x6b, 0x0a, 0xb4, 0x99, 0x28, 0x32, 0x43, 0xea, 0x4b, 0xc2, 0x45, 0xb3, 0x96, + 0x92, 0xc9, 0x4c, 0xf3, 0xe7, 0x0a, 0x9c, 0x2b, 0xd4, 0x52, 0xac, 0xe0, 0xd5, 0xbb, 0xa4, 0xa0, + 0x41, 0xe5, 0x45, 0x1a, 0xcc, 0x4e, 0xd7, 0xa0, 0x3a, 0x55, 0x83, 0xb9, 0x17, 0x68, 0x50, 0x3b, + 0x9a, 0x06, 0xf3, 0x93, 0x1a, 0x48, 0x38, 0xff, 0xc2, 0xe3, 0x44, 0x1d, 0x38, 0xa1, 0x6c, 0x49, + 0x89, 0x68, 0x1a, 0x6b, 0xb3, 0xff, 0xbd, 0xdf, 0xc7, 0x61, 0x07, 0xf4, 0x2b, 0x05, 0xfa, 0xe6, + 0x77, 0x70, 0xba, 0x24, 0x3c, 0xba, 0x7a, 0x28, 0xd7, 0xea, 0x4b, 0x72, 0xfd, 0x6b, 0x86, 0xdf, + 0x8c, 0x89, 0x39, 0x76, 0x87, 0xbc, 0xc6, 0xa3, 0x3d, 0xde, 0x00, 0x30, 0xff, 0x36, 0xa0, 0x59, + 0xf0, 0x3e, 0x8c, 0x3c, 0x35, 0xa6, 0xfe, 0x67, 0x56, 0xaf, 0x3e, 0x96, 0x56, 0x27, 0x3a, 0x28, + 0xaf, 0x4a, 0x44, 0x2c, 0x14, 0xc4, 0xfc, 0x1c, 0x1a, 0x0f, 0x06, 0xaa, 0xeb, 0x0b, 0x07, 0x70, + 0x51, 0x13, 0x35, 0x74, 0xae, 0xf3, 0xa5, 0xfa, 0x4a, 0x92, 0xfd, 0x61, 0xc0, 0x52, 0x5e, 0x72, + 0xf1, 0x7a, 0x6e, 0x14, 0xb6, 0x38, 0x42, 0xad, 0xe3, 0x1b, 0x56, 0x99, 0x7a, 0xc3, 0x66, 0x8b, + 0x37, 0xac, 0x70, 0x65, 0xaa, 0x13, 0x57, 0xe6, 0x88, 0xf3, 0xc7, 0xbc, 0x09, 0x67, 0xac, 0x00, + 0x53, 0xbf, 0xc7, 0x14, 0x13, 0x17, 0xeb, 0x29, 0x7b, 0x11, 0x1a, 0x9c, 0xb8, 0x34, 0xa2, 0x24, + 0x94, 0xc2, 0x21, 0xca, 0xaf, 0xbb, 0xbe, 0x6e, 0x9f, 0x3e, 0x58, 0xd7, 0x61, 0xe6, 0x26, 0x9c, + 0xdd, 0xc5, 0x23, 0xc2, 0xbb, 0xb1, 0x4c, 0x8e, 0xbb, 0xc7, 0x4d, 0x38, 0xd3, 0xf7, 0xb1, 0xbb, + 0x7f, 0xdc, 0xf8, 0xdf, 0x2b, 0x70, 0x72, 0x22, 0xf6, 0x26, 0xd4, 0xa2, 0x27, 0x58, 0x64, 0x77, + 0x75, 0x71, 0xfd, 0xfd, 0xd2, 0x39, 0x7e, 0xc5, 0xf8, 0xfe, 0xd0, 0x67, 0xcf, 0xac, 0xf1, 0xe3, + 0x65, 0x57, 0xc1, 0xed, 0x2c, 0x0a, 0x5d, 0x83, 0xb9, 0x34, 0x61, 0xda, 0xaf, 0xef, 0x94, 0x15, + 0x3c, 0xa4, 0xd8, 0xdd, 0x19, 0x3b, 0x8d, 0x40, 0xb7, 0x01, 0x22, 0xa5, 0x87, 0xe3, 0xc5, 0x32, + 0xc9, 0x5a, 0xf6, 0x50, 0x0f, 0x4c, 0x55, 0xec, 0xee, 0x8c, 0x5d, 0x8f, 0x72, 0x87, 0xa2, 0x20, + 0x94, 0x26, 0xfa, 0x78, 0xa7, 0x50, 0x38, 0x24, 0x98, 0xa2, 0xa0, 0x23, 0x36, 0x6b, 0x50, 0x55, + 0x77, 0xd4, 0xdc, 0x80, 0xf9, 0x87, 0xdc, 0xdf, 0xf4, 0xd9, 0x40, 0xfd, 0x27, 0xc7, 0xdc, 0xcf, + 0xff, 0x93, 0x63, 0xee, 0xab, 0xb6, 0x1a, 0x24, 0x92, 0x08, 0x5d, 0xe2, 0xac, 0x9d, 0x1a, 0xd7, + 0x2b, 0x4d, 0xc3, 0xfc, 0x09, 0x6a, 0x3b, 0x78, 0x40, 0x7c, 0x81, 0xae, 0x43, 0xed, 0x29, 0xf6, + 0xe3, 0xf1, 0xc8, 0x33, 0xcb, 0x24, 0x52, 0x5c, 0xeb, 0x91, 0x06, 0x59, 0xa1, 0xe4, 0x89, 0x9d, + 0x45, 0xac, 0x5c, 0x83, 0x85, 0xc2, 0xf2, 0x94, 0x47, 0xc1, 0x32, 0xcc, 0x69, 0x68, 0x3e, 0x18, + 0xb5, 0x71, 0xbd, 0xf2, 0xa9, 0x61, 0xfe, 0x6a, 0xc0, 0x42, 0x27, 0x0c, 0x99, 0xd4, 0x75, 0x09, + 0x74, 0xab, 0x44, 0xe3, 0x83, 0x32, 0x8d, 0x02, 0xf8, 0x75, 0x73, 0xf9, 0x0c, 0xaa, 0x56, 0xf8, + 0x54, 0xa0, 0x2b, 0x25, 0x0e, 0xe5, 0xc9, 0x77, 0x8f, 0x24, 0x3a, 0xc5, 0x2e, 0xa6, 0x3c, 0xcf, + 0x6b, 0xfe, 0x08, 0x27, 0x3a, 0xb1, 0x7c, 0x62, 0x33, 0x9f, 0xa0, 0x8f, 0x00, 0x61, 0x21, 0xe2, + 0x00, 0x0f, 0x7c, 0xe2, 0x50, 0x1c, 0x38, 0x9c, 0xf9, 0x24, 0xe3, 0xd0, 0x18, 0x7b, 0xb6, 0x71, + 0xa0, 0xd1, 0x37, 0x60, 0x65, 0x3f, 0x1e, 0x10, 0x1e, 0x12, 0x49, 0x84, 0x23, 0x08, 0x7f, 0x4a, + 0x5d, 0xe2, 0x60, 0xd7, 0x65, 0x71, 0x98, 0xff, 0x63, 0x37, 0x0f, 0x10, 0xfd, 0x14, 0xd0, 0x49, + 0xfd, 0xfa, 0x14, 0xef, 0xc1, 0x92, 0x8d, 0x9f, 0x3d, 0x88, 0x65, 0x14, 0xcb, 0x2e, 0x96, 0x78, + 0x8b, 0x85, 0x43, 0x3a, 0x42, 0x1f, 0xc3, 0x39, 0xa6, 0xd7, 0x1c, 0x9f, 0xa5, 0x7d, 0xe3, 0x44, + 0x9c, 0x0c, 0xe9, 0xf3, 0x8c, 0xca, 0x72, 0xea, 0xdd, 0xc9, 0x9c, 0xbb, 0xda, 0x67, 0x7e, 0x09, + 0xf5, 0xdb, 0xaa, 0xdc, 0x87, 0xf6, 0x8e, 0x50, 0x0f, 0x04, 0x1a, 0x46, 0xb1, 0x14, 0x59, 0x48, + 0x66, 0xa9, 0x91, 0x94, 0x06, 0x8b, 0xfc, 0x49, 0x91, 0x99, 0xea, 0xa5, 0xed, 0x11, 0x77, 0x3f, + 0x7f, 0x69, 0xab, 0xdf, 0x97, 0xbe, 0x81, 0x46, 0xf9, 0x4d, 0x8c, 0xde, 0x80, 0xa5, 0x5e, 0xe7, + 0xbe, 0xd5, 0x75, 0xac, 0xde, 0xde, 0xf6, 0xde, 0x63, 0xa7, 0xb3, 0xb5, 0xb7, 0xfd, 0xc8, 0x6a, + 0xcc, 0xa0, 0xf3, 0x70, 0x76, 0xd2, 0x61, 0x6f, 0xdd, 0xdd, 0x7e, 0x64, 0x75, 0x1b, 0x06, 0x5a, + 0x86, 0x46, 0xff, 0x71, 0x7f, 0xcf, 0xba, 0xef, 0xdc, 0xb1, 0x7a, 0x96, 0xdd, 0xd9, 0xb3, 0xba, + 0x8d, 0xca, 0xe6, 0xd5, 0xaf, 0x37, 0x46, 0x54, 0x3e, 0x89, 0x07, 0x2d, 0x97, 0x05, 0x6d, 0x7d, + 0x54, 0x8c, 0x8f, 0xda, 0xe3, 0x6f, 0x8f, 0x11, 0x09, 0xdb, 0xd1, 0xe0, 0xf2, 0x88, 0xb5, 0x27, + 0x3f, 0x7d, 0x06, 0x35, 0xfd, 0x99, 0x71, 0xe5, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf2, 0xc4, + 0xfe, 0xc2, 0x13, 0x0d, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.validate.go new file mode 100644 index 0000000000..5cfa0fb979 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.validate.go @@ -0,0 +1,1885 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/common.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +// 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{} + + _ = core.ResourceType(0) + + _ = core.ResourceType(0) + + _ = core.ResourceType(0) + + _ = core.ResourceType(0) +) + +// define the regex for a UUID once up-front +var _common_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 NamedEntityIdentifier with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityIdentifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + return nil +} + +// NamedEntityIdentifierValidationError is the validation error returned by +// NamedEntityIdentifier.Validate if the designated constraints aren't met. +type NamedEntityIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityIdentifierValidationError) ErrorName() string { + return "NamedEntityIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityIdentifierValidationError{} + +// Validate checks the field values on NamedEntityMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Description + + // no validation rules for State + + return nil +} + +// NamedEntityMetadataValidationError is the validation error returned by +// NamedEntityMetadata.Validate if the designated constraints aren't met. +type NamedEntityMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityMetadataValidationError) ErrorName() string { + return "NamedEntityMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityMetadataValidationError{} + +// Validate checks the field values on NamedEntity with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *NamedEntity) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NamedEntityValidationError is the validation error returned by +// NamedEntity.Validate if the designated constraints aren't met. +type NamedEntityValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityValidationError) ErrorName() string { return "NamedEntityValidationError" } + +// Error satisfies the builtin error interface +func (e NamedEntityValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntity.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityValidationError{} + +// Validate checks the field values on Sort with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Sort) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Key + + // no validation rules for Direction + + return nil +} + +// SortValidationError is the validation error returned by Sort.Validate if the +// designated constraints aren't met. +type SortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SortValidationError) ErrorName() string { return "SortValidationError" } + +// Error satisfies the builtin error interface +func (e SortValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SortValidationError{} + +// Validate checks the field values on NamedEntityIdentifierListRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *NamedEntityIdentifierListRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Limit + + // no validation rules for Token + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityIdentifierListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Filters + + return nil +} + +// NamedEntityIdentifierListRequestValidationError is the validation error +// returned by NamedEntityIdentifierListRequest.Validate if the designated +// constraints aren't met. +type NamedEntityIdentifierListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityIdentifierListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityIdentifierListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityIdentifierListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityIdentifierListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityIdentifierListRequestValidationError) ErrorName() string { + return "NamedEntityIdentifierListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityIdentifierListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityIdentifierListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityIdentifierListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityIdentifierListRequestValidationError{} + +// Validate checks the field values on NamedEntityListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityListRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Limit + + // no validation rules for Token + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Filters + + return nil +} + +// NamedEntityListRequestValidationError is the validation error returned by +// NamedEntityListRequest.Validate if the designated constraints aren't met. +type NamedEntityListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityListRequestValidationError) ErrorName() string { + return "NamedEntityListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityListRequestValidationError{} + +// Validate checks the field values on NamedEntityIdentifierList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityIdentifierList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetEntities() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityIdentifierListValidationError{ + field: fmt.Sprintf("Entities[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// NamedEntityIdentifierListValidationError is the validation error returned by +// NamedEntityIdentifierList.Validate if the designated constraints aren't met. +type NamedEntityIdentifierListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityIdentifierListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityIdentifierListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityIdentifierListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityIdentifierListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityIdentifierListValidationError) ErrorName() string { + return "NamedEntityIdentifierListValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityIdentifierListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityIdentifierList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityIdentifierListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityIdentifierListValidationError{} + +// Validate checks the field values on NamedEntityList with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *NamedEntityList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetEntities() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityListValidationError{ + field: fmt.Sprintf("Entities[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// NamedEntityListValidationError is the validation error returned by +// NamedEntityList.Validate if the designated constraints aren't met. +type NamedEntityListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityListValidationError) ErrorName() string { return "NamedEntityListValidationError" } + +// Error satisfies the builtin error interface +func (e NamedEntityListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityListValidationError{} + +// Validate checks the field values on NamedEntityGetRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityGetRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NamedEntityGetRequestValidationError is the validation error returned by +// NamedEntityGetRequest.Validate if the designated constraints aren't met. +type NamedEntityGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityGetRequestValidationError) ErrorName() string { + return "NamedEntityGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityGetRequestValidationError{} + +// Validate checks the field values on NamedEntityUpdateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityUpdateRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityUpdateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityUpdateRequestValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NamedEntityUpdateRequestValidationError is the validation error returned by +// NamedEntityUpdateRequest.Validate if the designated constraints aren't met. +type NamedEntityUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityUpdateRequestValidationError) ErrorName() string { + return "NamedEntityUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityUpdateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityUpdateRequestValidationError{} + +// Validate checks the field values on NamedEntityUpdateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// NamedEntityUpdateResponseValidationError is the validation error returned by +// NamedEntityUpdateResponse.Validate if the designated constraints aren't met. +type NamedEntityUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityUpdateResponseValidationError) ErrorName() string { + return "NamedEntityUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityUpdateResponseValidationError{} + +// Validate checks the field values on ObjectGetRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ObjectGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ObjectGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ObjectGetRequestValidationError is the validation error returned by +// ObjectGetRequest.Validate if the designated constraints aren't met. +type ObjectGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ObjectGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ObjectGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ObjectGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ObjectGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ObjectGetRequestValidationError) ErrorName() string { return "ObjectGetRequestValidationError" } + +// Error satisfies the builtin error interface +func (e ObjectGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sObjectGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ObjectGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ObjectGetRequestValidationError{} + +// Validate checks the field values on ResourceListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ResourceListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceListRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ResourceListRequestValidationError is the validation error returned by +// ResourceListRequest.Validate if the designated constraints aren't met. +type ResourceListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceListRequestValidationError) ErrorName() string { + return "ResourceListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ResourceListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceListRequestValidationError{} + +// Validate checks the field values on EmailNotification with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *EmailNotification) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// EmailNotificationValidationError is the validation error returned by +// EmailNotification.Validate if the designated constraints aren't met. +type EmailNotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EmailNotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EmailNotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EmailNotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EmailNotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EmailNotificationValidationError) ErrorName() string { + return "EmailNotificationValidationError" +} + +// Error satisfies the builtin error interface +func (e EmailNotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEmailNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EmailNotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EmailNotificationValidationError{} + +// Validate checks the field values on PagerDutyNotification with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *PagerDutyNotification) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// PagerDutyNotificationValidationError is the validation error returned by +// PagerDutyNotification.Validate if the designated constraints aren't met. +type PagerDutyNotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PagerDutyNotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PagerDutyNotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PagerDutyNotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PagerDutyNotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PagerDutyNotificationValidationError) ErrorName() string { + return "PagerDutyNotificationValidationError" +} + +// Error satisfies the builtin error interface +func (e PagerDutyNotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPagerDutyNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PagerDutyNotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PagerDutyNotificationValidationError{} + +// Validate checks the field values on SlackNotification with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SlackNotification) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SlackNotificationValidationError is the validation error returned by +// SlackNotification.Validate if the designated constraints aren't met. +type SlackNotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SlackNotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SlackNotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SlackNotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SlackNotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SlackNotificationValidationError) ErrorName() string { + return "SlackNotificationValidationError" +} + +// Error satisfies the builtin error interface +func (e SlackNotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSlackNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SlackNotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SlackNotificationValidationError{} + +// Validate checks the field values on Notification with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Notification) Validate() error { + if m == nil { + return nil + } + + switch m.Type.(type) { + + case *Notification_Email: + + if v, ok := interface{}(m.GetEmail()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationValidationError{ + field: "Email", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Notification_PagerDuty: + + if v, ok := interface{}(m.GetPagerDuty()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationValidationError{ + field: "PagerDuty", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Notification_Slack: + + if v, ok := interface{}(m.GetSlack()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationValidationError{ + field: "Slack", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NotificationValidationError is the validation error returned by +// Notification.Validate if the designated constraints aren't met. +type NotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NotificationValidationError) ErrorName() string { return "NotificationValidationError" } + +// Error satisfies the builtin error interface +func (e NotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NotificationValidationError{} + +// Validate checks the field values on UrlBlob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *UrlBlob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Url + + // no validation rules for Bytes + + return nil +} + +// UrlBlobValidationError is the validation error returned by UrlBlob.Validate +// if the designated constraints aren't met. +type UrlBlobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UrlBlobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UrlBlobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UrlBlobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UrlBlobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UrlBlobValidationError) ErrorName() string { return "UrlBlobValidationError" } + +// Error satisfies the builtin error interface +func (e UrlBlobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUrlBlob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UrlBlobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UrlBlobValidationError{} + +// Validate checks the field values on Labels with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Labels) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Values + + return nil +} + +// LabelsValidationError is the validation error returned by Labels.Validate if +// the designated constraints aren't met. +type LabelsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LabelsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LabelsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LabelsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LabelsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LabelsValidationError) ErrorName() string { return "LabelsValidationError" } + +// Error satisfies the builtin error interface +func (e LabelsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLabels.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LabelsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LabelsValidationError{} + +// Validate checks the field values on Annotations with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Annotations) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Values + + return nil +} + +// AnnotationsValidationError is the validation error returned by +// Annotations.Validate if the designated constraints aren't met. +type AnnotationsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AnnotationsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AnnotationsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AnnotationsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AnnotationsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AnnotationsValidationError) ErrorName() string { return "AnnotationsValidationError" } + +// Error satisfies the builtin error interface +func (e AnnotationsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAnnotations.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AnnotationsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AnnotationsValidationError{} + +// Validate checks the field values on Envs with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Envs) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetValues() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EnvsValidationError{ + field: fmt.Sprintf("Values[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// EnvsValidationError is the validation error returned by Envs.Validate if the +// designated constraints aren't met. +type EnvsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EnvsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EnvsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EnvsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EnvsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EnvsValidationError) ErrorName() string { return "EnvsValidationError" } + +// Error satisfies the builtin error interface +func (e EnvsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEnvs.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EnvsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EnvsValidationError{} + +// Validate checks the field values on AuthRole with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *AuthRole) Validate() error { + if m == nil { + return nil + } + + // no validation rules for AssumableIamRole + + // no validation rules for KubernetesServiceAccount + + return nil +} + +// AuthRoleValidationError is the validation error returned by +// AuthRole.Validate if the designated constraints aren't met. +type AuthRoleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AuthRoleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AuthRoleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AuthRoleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AuthRoleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AuthRoleValidationError) ErrorName() string { return "AuthRoleValidationError" } + +// Error satisfies the builtin error interface +func (e AuthRoleValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAuthRole.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AuthRoleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AuthRoleValidationError{} + +// Validate checks the field values on RawOutputDataConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *RawOutputDataConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for OutputLocationPrefix + + return nil +} + +// RawOutputDataConfigValidationError is the validation error returned by +// RawOutputDataConfig.Validate if the designated constraints aren't met. +type RawOutputDataConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RawOutputDataConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RawOutputDataConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RawOutputDataConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RawOutputDataConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RawOutputDataConfigValidationError) ErrorName() string { + return "RawOutputDataConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e RawOutputDataConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRawOutputDataConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RawOutputDataConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RawOutputDataConfigValidationError{} + +// Validate checks the field values on FlyteURLs with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *FlyteURLs) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Inputs + + // no validation rules for Outputs + + // no validation rules for Deck + + return nil +} + +// FlyteURLsValidationError is the validation error returned by +// FlyteURLs.Validate if the designated constraints aren't met. +type FlyteURLsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FlyteURLsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FlyteURLsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FlyteURLsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FlyteURLsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FlyteURLsValidationError) ErrorName() string { return "FlyteURLsValidationError" } + +// Error satisfies the builtin error interface +func (e FlyteURLsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sFlyteURLs.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FlyteURLsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FlyteURLsValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json new file mode 100644 index 0000000000..69acf06451 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/common.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go new file mode 100644 index 0000000000..7d3bb0b9e9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go @@ -0,0 +1,476 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/description_entity.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// The format of the long description +type DescriptionFormat int32 + +const ( + DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN DescriptionFormat = 0 + DescriptionFormat_DESCRIPTION_FORMAT_MARKDOWN DescriptionFormat = 1 + DescriptionFormat_DESCRIPTION_FORMAT_HTML DescriptionFormat = 2 + // python default documentation - comments is rst + DescriptionFormat_DESCRIPTION_FORMAT_RST DescriptionFormat = 3 +) + +var DescriptionFormat_name = map[int32]string{ + 0: "DESCRIPTION_FORMAT_UNKNOWN", + 1: "DESCRIPTION_FORMAT_MARKDOWN", + 2: "DESCRIPTION_FORMAT_HTML", + 3: "DESCRIPTION_FORMAT_RST", +} + +var DescriptionFormat_value = map[string]int32{ + "DESCRIPTION_FORMAT_UNKNOWN": 0, + "DESCRIPTION_FORMAT_MARKDOWN": 1, + "DESCRIPTION_FORMAT_HTML": 2, + "DESCRIPTION_FORMAT_RST": 3, +} + +func (x DescriptionFormat) String() string { + return proto.EnumName(DescriptionFormat_name, int32(x)) +} + +func (DescriptionFormat) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_2715f55631fe48ea, []int{0} +} + +// DescriptionEntity contains detailed description for the task/workflow. +// Documentation could provide insight into the algorithms, business use case, etc. +type DescriptionEntity struct { + // id represents the unique identifier of the description entity. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // One-liner overview of the entity. + ShortDescription string `protobuf:"bytes,2,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` + // Full user description with formatting preserved. + LongDescription *Description `protobuf:"bytes,3,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"` + // Optional link to source code used to define this entity. + SourceCode *SourceCode `protobuf:"bytes,4,opt,name=source_code,json=sourceCode,proto3" json:"source_code,omitempty"` + // User-specified tags. These are arbitrary and can be used for searching + // filtering and discovering tasks. + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DescriptionEntity) Reset() { *m = DescriptionEntity{} } +func (m *DescriptionEntity) String() string { return proto.CompactTextString(m) } +func (*DescriptionEntity) ProtoMessage() {} +func (*DescriptionEntity) Descriptor() ([]byte, []int) { + return fileDescriptor_2715f55631fe48ea, []int{0} +} + +func (m *DescriptionEntity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DescriptionEntity.Unmarshal(m, b) +} +func (m *DescriptionEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DescriptionEntity.Marshal(b, m, deterministic) +} +func (m *DescriptionEntity) XXX_Merge(src proto.Message) { + xxx_messageInfo_DescriptionEntity.Merge(m, src) +} +func (m *DescriptionEntity) XXX_Size() int { + return xxx_messageInfo_DescriptionEntity.Size(m) +} +func (m *DescriptionEntity) XXX_DiscardUnknown() { + xxx_messageInfo_DescriptionEntity.DiscardUnknown(m) +} + +var xxx_messageInfo_DescriptionEntity proto.InternalMessageInfo + +func (m *DescriptionEntity) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *DescriptionEntity) GetShortDescription() string { + if m != nil { + return m.ShortDescription + } + return "" +} + +func (m *DescriptionEntity) GetLongDescription() *Description { + if m != nil { + return m.LongDescription + } + return nil +} + +func (m *DescriptionEntity) GetSourceCode() *SourceCode { + if m != nil { + return m.SourceCode + } + return nil +} + +func (m *DescriptionEntity) GetTags() []string { + if m != nil { + return m.Tags + } + return nil +} + +// Full user description with formatting preserved. This can be rendered +// by clients, such as the console or command line tools with in-tact +// formatting. +type Description struct { + // Types that are valid to be assigned to Content: + // *Description_Value + // *Description_Uri + Content isDescription_Content `protobuf_oneof:"content"` + // Format of the long description + Format DescriptionFormat `protobuf:"varint,3,opt,name=format,proto3,enum=flyteidl.admin.DescriptionFormat" json:"format,omitempty"` + // Optional link to an icon for the entity + IconLink string `protobuf:"bytes,4,opt,name=icon_link,json=iconLink,proto3" json:"icon_link,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Description) Reset() { *m = Description{} } +func (m *Description) String() string { return proto.CompactTextString(m) } +func (*Description) ProtoMessage() {} +func (*Description) Descriptor() ([]byte, []int) { + return fileDescriptor_2715f55631fe48ea, []int{1} +} + +func (m *Description) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Description.Unmarshal(m, b) +} +func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Description.Marshal(b, m, deterministic) +} +func (m *Description) XXX_Merge(src proto.Message) { + xxx_messageInfo_Description.Merge(m, src) +} +func (m *Description) XXX_Size() int { + return xxx_messageInfo_Description.Size(m) +} +func (m *Description) XXX_DiscardUnknown() { + xxx_messageInfo_Description.DiscardUnknown(m) +} + +var xxx_messageInfo_Description proto.InternalMessageInfo + +type isDescription_Content interface { + isDescription_Content() +} + +type Description_Value struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"` +} + +type Description_Uri struct { + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +func (*Description_Value) isDescription_Content() {} + +func (*Description_Uri) isDescription_Content() {} + +func (m *Description) GetContent() isDescription_Content { + if m != nil { + return m.Content + } + return nil +} + +func (m *Description) GetValue() string { + if x, ok := m.GetContent().(*Description_Value); ok { + return x.Value + } + return "" +} + +func (m *Description) GetUri() string { + if x, ok := m.GetContent().(*Description_Uri); ok { + return x.Uri + } + return "" +} + +func (m *Description) GetFormat() DescriptionFormat { + if m != nil { + return m.Format + } + return DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN +} + +func (m *Description) GetIconLink() string { + if m != nil { + return m.IconLink + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Description) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Description_Value)(nil), + (*Description_Uri)(nil), + } +} + +// Link to source code used to define this entity +type SourceCode struct { + Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SourceCode) Reset() { *m = SourceCode{} } +func (m *SourceCode) String() string { return proto.CompactTextString(m) } +func (*SourceCode) ProtoMessage() {} +func (*SourceCode) Descriptor() ([]byte, []int) { + return fileDescriptor_2715f55631fe48ea, []int{2} +} + +func (m *SourceCode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SourceCode.Unmarshal(m, b) +} +func (m *SourceCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SourceCode.Marshal(b, m, deterministic) +} +func (m *SourceCode) XXX_Merge(src proto.Message) { + xxx_messageInfo_SourceCode.Merge(m, src) +} +func (m *SourceCode) XXX_Size() int { + return xxx_messageInfo_SourceCode.Size(m) +} +func (m *SourceCode) XXX_DiscardUnknown() { + xxx_messageInfo_SourceCode.DiscardUnknown(m) +} + +var xxx_messageInfo_SourceCode proto.InternalMessageInfo + +func (m *SourceCode) GetLink() string { + if m != nil { + return m.Link + } + return "" +} + +// Represents a list of DescriptionEntities returned from the admin. +// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +type DescriptionEntityList struct { + // A list of DescriptionEntities returned based on the request. + DescriptionEntities []*DescriptionEntity `protobuf:"bytes,1,rep,name=descriptionEntities,proto3" json:"descriptionEntities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DescriptionEntityList) Reset() { *m = DescriptionEntityList{} } +func (m *DescriptionEntityList) String() string { return proto.CompactTextString(m) } +func (*DescriptionEntityList) ProtoMessage() {} +func (*DescriptionEntityList) Descriptor() ([]byte, []int) { + return fileDescriptor_2715f55631fe48ea, []int{3} +} + +func (m *DescriptionEntityList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DescriptionEntityList.Unmarshal(m, b) +} +func (m *DescriptionEntityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DescriptionEntityList.Marshal(b, m, deterministic) +} +func (m *DescriptionEntityList) XXX_Merge(src proto.Message) { + xxx_messageInfo_DescriptionEntityList.Merge(m, src) +} +func (m *DescriptionEntityList) XXX_Size() int { + return xxx_messageInfo_DescriptionEntityList.Size(m) +} +func (m *DescriptionEntityList) XXX_DiscardUnknown() { + xxx_messageInfo_DescriptionEntityList.DiscardUnknown(m) +} + +var xxx_messageInfo_DescriptionEntityList proto.InternalMessageInfo + +func (m *DescriptionEntityList) GetDescriptionEntities() []*DescriptionEntity { + if m != nil { + return m.DescriptionEntities + } + return nil +} + +func (m *DescriptionEntityList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Represents a request structure to retrieve a list of DescriptionEntities. +// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +type DescriptionEntityListRequest struct { + // Identifies the specific type of resource that this identifier corresponds to. + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // The identifier for the description entity. + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,5,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering for returned list. + // +optional + SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DescriptionEntityListRequest) Reset() { *m = DescriptionEntityListRequest{} } +func (m *DescriptionEntityListRequest) String() string { return proto.CompactTextString(m) } +func (*DescriptionEntityListRequest) ProtoMessage() {} +func (*DescriptionEntityListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2715f55631fe48ea, []int{4} +} + +func (m *DescriptionEntityListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DescriptionEntityListRequest.Unmarshal(m, b) +} +func (m *DescriptionEntityListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DescriptionEntityListRequest.Marshal(b, m, deterministic) +} +func (m *DescriptionEntityListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DescriptionEntityListRequest.Merge(m, src) +} +func (m *DescriptionEntityListRequest) XXX_Size() int { + return xxx_messageInfo_DescriptionEntityListRequest.Size(m) +} +func (m *DescriptionEntityListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DescriptionEntityListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DescriptionEntityListRequest proto.InternalMessageInfo + +func (m *DescriptionEntityListRequest) GetResourceType() core.ResourceType { + if m != nil { + return m.ResourceType + } + return core.ResourceType_UNSPECIFIED +} + +func (m *DescriptionEntityListRequest) GetId() *NamedEntityIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *DescriptionEntityListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *DescriptionEntityListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *DescriptionEntityListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *DescriptionEntityListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.admin.DescriptionFormat", DescriptionFormat_name, DescriptionFormat_value) + proto.RegisterType((*DescriptionEntity)(nil), "flyteidl.admin.DescriptionEntity") + proto.RegisterType((*Description)(nil), "flyteidl.admin.Description") + proto.RegisterType((*SourceCode)(nil), "flyteidl.admin.SourceCode") + proto.RegisterType((*DescriptionEntityList)(nil), "flyteidl.admin.DescriptionEntityList") + proto.RegisterType((*DescriptionEntityListRequest)(nil), "flyteidl.admin.DescriptionEntityListRequest") +} + +func init() { + proto.RegisterFile("flyteidl/admin/description_entity.proto", fileDescriptor_2715f55631fe48ea) +} + +var fileDescriptor_2715f55631fe48ea = []byte{ + // 598 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xdf, 0x6f, 0xd2, 0x50, + 0x14, 0x5e, 0xcb, 0x60, 0xf6, 0xe0, 0x90, 0x5d, 0x71, 0x56, 0x30, 0x13, 0x49, 0x8c, 0xa8, 0x59, + 0x9b, 0xcc, 0x2c, 0xc6, 0xf8, 0xe2, 0x18, 0x23, 0x90, 0xf1, 0xc3, 0x5c, 0x30, 0x26, 0xbe, 0x34, + 0xd0, 0x5e, 0xba, 0x1b, 0xda, 0x5e, 0xbc, 0xbd, 0x98, 0xf4, 0xd5, 0xf8, 0xa8, 0xff, 0x81, 0x7f, + 0xac, 0xe9, 0x2d, 0xb0, 0xc2, 0xc8, 0xde, 0xee, 0xe9, 0xf9, 0xce, 0x77, 0xce, 0x77, 0xbf, 0xd3, + 0x0b, 0xaf, 0xa7, 0x5e, 0x24, 0x08, 0x75, 0x3c, 0x73, 0xec, 0xf8, 0x34, 0x30, 0x1d, 0x12, 0xda, + 0x9c, 0xce, 0x05, 0x65, 0x81, 0x45, 0x02, 0x41, 0x45, 0x64, 0xcc, 0x39, 0x13, 0x0c, 0x15, 0x56, + 0x40, 0x43, 0x02, 0xcb, 0x27, 0xeb, 0x42, 0x9b, 0x71, 0x62, 0x52, 0x27, 0x46, 0x4f, 0x29, 0xe1, + 0x09, 0xbe, 0x5c, 0xd9, 0x22, 0xb6, 0x99, 0xef, 0xb3, 0x20, 0x49, 0xd6, 0x7e, 0xab, 0x70, 0xd4, + 0xbc, 0xed, 0x74, 0x25, 0x1b, 0xa1, 0x37, 0xa0, 0x52, 0x47, 0x57, 0xaa, 0x4a, 0x3d, 0x7f, 0xf6, + 0xcc, 0x58, 0xf7, 0x8b, 0xf9, 0x8d, 0xce, 0x9a, 0x1f, 0xab, 0xd4, 0x41, 0xef, 0xe0, 0x28, 0xbc, + 0x61, 0x5c, 0x58, 0xa9, 0x79, 0x75, 0xb5, 0xaa, 0xd4, 0x35, 0x5c, 0x94, 0x89, 0x14, 0x3b, 0x6a, + 0x41, 0xd1, 0x63, 0x81, 0xbb, 0x81, 0xcd, 0xc8, 0x2e, 0x15, 0x63, 0x53, 0x95, 0x91, 0x2a, 0xc3, + 0x8f, 0xe2, 0xa2, 0x34, 0xcf, 0x27, 0xc8, 0x87, 0x6c, 0xc1, 0x6d, 0x62, 0xd9, 0xcc, 0x21, 0xfa, + 0xbe, 0xa4, 0x28, 0x6f, 0x53, 0x0c, 0x25, 0xe4, 0x92, 0x39, 0x04, 0x43, 0xb8, 0x3e, 0x23, 0x04, + 0xfb, 0x62, 0xec, 0x86, 0x7a, 0xb6, 0x9a, 0xa9, 0x6b, 0x58, 0x9e, 0x6b, 0xff, 0x14, 0xc8, 0xa7, + 0x1b, 0x1c, 0x43, 0xf6, 0xe7, 0xd8, 0x5b, 0x10, 0x79, 0x07, 0x5a, 0x7b, 0x0f, 0x27, 0x21, 0x42, + 0x90, 0x59, 0x70, 0x9a, 0xe8, 0x6b, 0xef, 0xe1, 0x38, 0x40, 0x1f, 0x21, 0x37, 0x65, 0xdc, 0x1f, + 0x0b, 0x29, 0xa5, 0x70, 0xf6, 0xf2, 0x1e, 0x29, 0x2d, 0x09, 0xc4, 0xcb, 0x02, 0x54, 0x01, 0x8d, + 0xda, 0x2c, 0xb0, 0x3c, 0x1a, 0xcc, 0xa4, 0x0a, 0x0d, 0x3f, 0x88, 0x3f, 0x74, 0x69, 0x30, 0x6b, + 0x68, 0x70, 0x60, 0xb3, 0x40, 0x90, 0x40, 0xd4, 0xaa, 0x00, 0xc3, 0x0d, 0x01, 0xb2, 0x40, 0xce, + 0x86, 0xe5, 0xb9, 0xf6, 0x4b, 0x81, 0x27, 0x77, 0x7c, 0xec, 0xd2, 0x50, 0xa0, 0x21, 0x3c, 0x76, + 0xb6, 0x12, 0x94, 0x84, 0xba, 0x52, 0xcd, 0xd4, 0xf3, 0xf7, 0xce, 0x9a, 0x70, 0xe0, 0x5d, 0xd5, + 0xa8, 0x04, 0x59, 0xc1, 0x66, 0x64, 0xe5, 0x74, 0x12, 0xd4, 0xfe, 0xa8, 0xf0, 0x7c, 0xe7, 0x10, + 0x98, 0xfc, 0x58, 0x90, 0x50, 0xa0, 0xcf, 0x70, 0xc8, 0xc9, 0xd2, 0x39, 0x11, 0xcd, 0x93, 0xeb, + 0x2d, 0xa4, 0xcd, 0x97, 0x2b, 0x86, 0x97, 0x98, 0x51, 0x34, 0x27, 0xf8, 0x21, 0x4f, 0x45, 0xe8, + 0x5c, 0x6e, 0xa6, 0x2a, 0x0d, 0x7f, 0xb5, 0x3d, 0x7c, 0x7f, 0xec, 0x13, 0x27, 0xe9, 0xba, 0xb5, + 0xa5, 0x25, 0xc8, 0x7a, 0xd4, 0xa7, 0x89, 0x45, 0x87, 0x38, 0x09, 0x6e, 0x55, 0xec, 0xa7, 0x54, + 0x20, 0x1d, 0x0e, 0xa6, 0xd4, 0x13, 0x84, 0xc7, 0x2b, 0x12, 0x7f, 0x5f, 0x85, 0xe8, 0x14, 0x0e, + 0xc2, 0x78, 0xd5, 0x27, 0x91, 0x9e, 0x93, 0x13, 0x94, 0xee, 0xae, 0x1c, 0x17, 0x38, 0x17, 0x83, + 0x1a, 0xd1, 0xdb, 0xbf, 0xca, 0xc6, 0xbf, 0x95, 0x78, 0x8f, 0x4e, 0xa0, 0xdc, 0xbc, 0x1a, 0x5e, + 0xe2, 0xce, 0x97, 0x51, 0x67, 0xd0, 0xb7, 0x5a, 0x03, 0xdc, 0xbb, 0x18, 0x59, 0x5f, 0xfb, 0xd7, + 0xfd, 0xc1, 0xb7, 0x7e, 0x71, 0x0f, 0xbd, 0x80, 0xca, 0x8e, 0x7c, 0xef, 0x02, 0x5f, 0x37, 0x63, + 0x80, 0x82, 0x2a, 0xf0, 0x74, 0x07, 0xa0, 0x3d, 0xea, 0x75, 0x8b, 0x2a, 0x2a, 0xc3, 0xf1, 0x8e, + 0x24, 0x1e, 0x8e, 0x8a, 0x99, 0xc6, 0x87, 0xef, 0xe7, 0x2e, 0x15, 0x37, 0x8b, 0x89, 0x61, 0x33, + 0xdf, 0x94, 0x93, 0x33, 0xee, 0x9a, 0xeb, 0xe7, 0xc1, 0x25, 0x81, 0x39, 0x9f, 0x9c, 0xba, 0xcc, + 0xdc, 0x7c, 0x31, 0x26, 0x39, 0xf9, 0x56, 0xbc, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x03, 0x73, + 0x74, 0x66, 0xa3, 0x04, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.validate.go new file mode 100644 index 0000000000..3bfe3935b2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.validate.go @@ -0,0 +1,465 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/description_entity.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +// 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{} + + _ = core.ResourceType(0) +) + +// define the regex for a UUID once up-front +var _description_entity_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 DescriptionEntity with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *DescriptionEntity) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DescriptionEntityValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ShortDescription + + if v, ok := interface{}(m.GetLongDescription()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DescriptionEntityValidationError{ + field: "LongDescription", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSourceCode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DescriptionEntityValidationError{ + field: "SourceCode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DescriptionEntityValidationError is the validation error returned by +// DescriptionEntity.Validate if the designated constraints aren't met. +type DescriptionEntityValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DescriptionEntityValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DescriptionEntityValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DescriptionEntityValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DescriptionEntityValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DescriptionEntityValidationError) ErrorName() string { + return "DescriptionEntityValidationError" +} + +// Error satisfies the builtin error interface +func (e DescriptionEntityValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDescriptionEntity.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DescriptionEntityValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DescriptionEntityValidationError{} + +// Validate checks the field values on Description with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Description) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Format + + // no validation rules for IconLink + + switch m.Content.(type) { + + case *Description_Value: + // no validation rules for Value + + case *Description_Uri: + // no validation rules for Uri + + } + + return nil +} + +// DescriptionValidationError is the validation error returned by +// Description.Validate if the designated constraints aren't met. +type DescriptionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DescriptionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DescriptionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DescriptionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DescriptionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DescriptionValidationError) ErrorName() string { return "DescriptionValidationError" } + +// Error satisfies the builtin error interface +func (e DescriptionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDescription.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DescriptionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DescriptionValidationError{} + +// Validate checks the field values on SourceCode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SourceCode) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Link + + return nil +} + +// SourceCodeValidationError is the validation error returned by +// SourceCode.Validate if the designated constraints aren't met. +type SourceCodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SourceCodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SourceCodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SourceCodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SourceCodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SourceCodeValidationError) ErrorName() string { return "SourceCodeValidationError" } + +// Error satisfies the builtin error interface +func (e SourceCodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSourceCode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SourceCodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SourceCodeValidationError{} + +// Validate checks the field values on DescriptionEntityList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DescriptionEntityList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetDescriptionEntities() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DescriptionEntityListValidationError{ + field: fmt.Sprintf("DescriptionEntities[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// DescriptionEntityListValidationError is the validation error returned by +// DescriptionEntityList.Validate if the designated constraints aren't met. +type DescriptionEntityListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DescriptionEntityListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DescriptionEntityListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DescriptionEntityListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DescriptionEntityListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DescriptionEntityListValidationError) ErrorName() string { + return "DescriptionEntityListValidationError" +} + +// Error satisfies the builtin error interface +func (e DescriptionEntityListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDescriptionEntityList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DescriptionEntityListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DescriptionEntityListValidationError{} + +// Validate checks the field values on DescriptionEntityListRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DescriptionEntityListRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DescriptionEntityListRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DescriptionEntityListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DescriptionEntityListRequestValidationError is the validation error returned +// by DescriptionEntityListRequest.Validate if the designated constraints +// aren't met. +type DescriptionEntityListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DescriptionEntityListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DescriptionEntityListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DescriptionEntityListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DescriptionEntityListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DescriptionEntityListRequestValidationError) ErrorName() string { + return "DescriptionEntityListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e DescriptionEntityListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDescriptionEntityListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DescriptionEntityListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DescriptionEntityListRequestValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.swagger.json new file mode 100644 index 0000000000..78fb4c13d6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/description_entity.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go new file mode 100644 index 0000000000..4e2edecb9f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go @@ -0,0 +1,478 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/event.proto + +package admin + +import ( + fmt "fmt" + event "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/event" + proto "github.com/golang/protobuf/proto" + 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 + +// Indicates that a sent event was not used to update execution state due to +// the referenced execution already being terminated (and therefore ineligible +// for further state transitions). +type EventErrorAlreadyInTerminalState struct { + // +required + CurrentPhase string `protobuf:"bytes,1,opt,name=current_phase,json=currentPhase,proto3" json:"current_phase,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EventErrorAlreadyInTerminalState) Reset() { *m = EventErrorAlreadyInTerminalState{} } +func (m *EventErrorAlreadyInTerminalState) String() string { return proto.CompactTextString(m) } +func (*EventErrorAlreadyInTerminalState) ProtoMessage() {} +func (*EventErrorAlreadyInTerminalState) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{0} +} + +func (m *EventErrorAlreadyInTerminalState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EventErrorAlreadyInTerminalState.Unmarshal(m, b) +} +func (m *EventErrorAlreadyInTerminalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EventErrorAlreadyInTerminalState.Marshal(b, m, deterministic) +} +func (m *EventErrorAlreadyInTerminalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventErrorAlreadyInTerminalState.Merge(m, src) +} +func (m *EventErrorAlreadyInTerminalState) XXX_Size() int { + return xxx_messageInfo_EventErrorAlreadyInTerminalState.Size(m) +} +func (m *EventErrorAlreadyInTerminalState) XXX_DiscardUnknown() { + xxx_messageInfo_EventErrorAlreadyInTerminalState.DiscardUnknown(m) +} + +var xxx_messageInfo_EventErrorAlreadyInTerminalState proto.InternalMessageInfo + +func (m *EventErrorAlreadyInTerminalState) GetCurrentPhase() string { + if m != nil { + return m.CurrentPhase + } + return "" +} + +// Indicates an event was rejected because it came from a different cluster than +// is on record as running the execution. +type EventErrorIncompatibleCluster struct { + // The cluster which has been recorded as processing the execution. + // +required + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EventErrorIncompatibleCluster) Reset() { *m = EventErrorIncompatibleCluster{} } +func (m *EventErrorIncompatibleCluster) String() string { return proto.CompactTextString(m) } +func (*EventErrorIncompatibleCluster) ProtoMessage() {} +func (*EventErrorIncompatibleCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{1} +} + +func (m *EventErrorIncompatibleCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EventErrorIncompatibleCluster.Unmarshal(m, b) +} +func (m *EventErrorIncompatibleCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EventErrorIncompatibleCluster.Marshal(b, m, deterministic) +} +func (m *EventErrorIncompatibleCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventErrorIncompatibleCluster.Merge(m, src) +} +func (m *EventErrorIncompatibleCluster) XXX_Size() int { + return xxx_messageInfo_EventErrorIncompatibleCluster.Size(m) +} +func (m *EventErrorIncompatibleCluster) XXX_DiscardUnknown() { + xxx_messageInfo_EventErrorIncompatibleCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_EventErrorIncompatibleCluster proto.InternalMessageInfo + +func (m *EventErrorIncompatibleCluster) GetCluster() string { + if m != nil { + return m.Cluster + } + return "" +} + +// Indicates why a sent event was not used to update execution. +type EventFailureReason struct { + // +required + // + // Types that are valid to be assigned to Reason: + // *EventFailureReason_AlreadyInTerminalState + // *EventFailureReason_IncompatibleCluster + Reason isEventFailureReason_Reason `protobuf_oneof:"reason"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EventFailureReason) Reset() { *m = EventFailureReason{} } +func (m *EventFailureReason) String() string { return proto.CompactTextString(m) } +func (*EventFailureReason) ProtoMessage() {} +func (*EventFailureReason) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{2} +} + +func (m *EventFailureReason) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EventFailureReason.Unmarshal(m, b) +} +func (m *EventFailureReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EventFailureReason.Marshal(b, m, deterministic) +} +func (m *EventFailureReason) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventFailureReason.Merge(m, src) +} +func (m *EventFailureReason) XXX_Size() int { + return xxx_messageInfo_EventFailureReason.Size(m) +} +func (m *EventFailureReason) XXX_DiscardUnknown() { + xxx_messageInfo_EventFailureReason.DiscardUnknown(m) +} + +var xxx_messageInfo_EventFailureReason proto.InternalMessageInfo + +type isEventFailureReason_Reason interface { + isEventFailureReason_Reason() +} + +type EventFailureReason_AlreadyInTerminalState struct { + AlreadyInTerminalState *EventErrorAlreadyInTerminalState `protobuf:"bytes,1,opt,name=already_in_terminal_state,json=alreadyInTerminalState,proto3,oneof"` +} + +type EventFailureReason_IncompatibleCluster struct { + IncompatibleCluster *EventErrorIncompatibleCluster `protobuf:"bytes,2,opt,name=incompatible_cluster,json=incompatibleCluster,proto3,oneof"` +} + +func (*EventFailureReason_AlreadyInTerminalState) isEventFailureReason_Reason() {} + +func (*EventFailureReason_IncompatibleCluster) isEventFailureReason_Reason() {} + +func (m *EventFailureReason) GetReason() isEventFailureReason_Reason { + if m != nil { + return m.Reason + } + return nil +} + +func (m *EventFailureReason) GetAlreadyInTerminalState() *EventErrorAlreadyInTerminalState { + if x, ok := m.GetReason().(*EventFailureReason_AlreadyInTerminalState); ok { + return x.AlreadyInTerminalState + } + return nil +} + +func (m *EventFailureReason) GetIncompatibleCluster() *EventErrorIncompatibleCluster { + if x, ok := m.GetReason().(*EventFailureReason_IncompatibleCluster); ok { + return x.IncompatibleCluster + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*EventFailureReason) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*EventFailureReason_AlreadyInTerminalState)(nil), + (*EventFailureReason_IncompatibleCluster)(nil), + } +} + +// Request to send a notification that a workflow execution event has occurred. +type WorkflowExecutionEventRequest struct { + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.WorkflowExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionEventRequest) Reset() { *m = WorkflowExecutionEventRequest{} } +func (m *WorkflowExecutionEventRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionEventRequest) ProtoMessage() {} +func (*WorkflowExecutionEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{3} +} + +func (m *WorkflowExecutionEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionEventRequest.Unmarshal(m, b) +} +func (m *WorkflowExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionEventRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionEventRequest.Merge(m, src) +} +func (m *WorkflowExecutionEventRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionEventRequest.Size(m) +} +func (m *WorkflowExecutionEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionEventRequest proto.InternalMessageInfo + +func (m *WorkflowExecutionEventRequest) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *WorkflowExecutionEventRequest) GetEvent() *event.WorkflowExecutionEvent { + if m != nil { + return m.Event + } + return nil +} + +type WorkflowExecutionEventResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionEventResponse) Reset() { *m = WorkflowExecutionEventResponse{} } +func (m *WorkflowExecutionEventResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionEventResponse) ProtoMessage() {} +func (*WorkflowExecutionEventResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{4} +} + +func (m *WorkflowExecutionEventResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionEventResponse.Unmarshal(m, b) +} +func (m *WorkflowExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionEventResponse.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionEventResponse.Merge(m, src) +} +func (m *WorkflowExecutionEventResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionEventResponse.Size(m) +} +func (m *WorkflowExecutionEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionEventResponse proto.InternalMessageInfo + +// Request to send a notification that a node execution event has occurred. +type NodeExecutionEventRequest struct { + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.NodeExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionEventRequest) Reset() { *m = NodeExecutionEventRequest{} } +func (m *NodeExecutionEventRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionEventRequest) ProtoMessage() {} +func (*NodeExecutionEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{5} +} + +func (m *NodeExecutionEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionEventRequest.Unmarshal(m, b) +} +func (m *NodeExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionEventRequest.Marshal(b, m, deterministic) +} +func (m *NodeExecutionEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionEventRequest.Merge(m, src) +} +func (m *NodeExecutionEventRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionEventRequest.Size(m) +} +func (m *NodeExecutionEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionEventRequest proto.InternalMessageInfo + +func (m *NodeExecutionEventRequest) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *NodeExecutionEventRequest) GetEvent() *event.NodeExecutionEvent { + if m != nil { + return m.Event + } + return nil +} + +type NodeExecutionEventResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionEventResponse) Reset() { *m = NodeExecutionEventResponse{} } +func (m *NodeExecutionEventResponse) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionEventResponse) ProtoMessage() {} +func (*NodeExecutionEventResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{6} +} + +func (m *NodeExecutionEventResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionEventResponse.Unmarshal(m, b) +} +func (m *NodeExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionEventResponse.Marshal(b, m, deterministic) +} +func (m *NodeExecutionEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionEventResponse.Merge(m, src) +} +func (m *NodeExecutionEventResponse) XXX_Size() int { + return xxx_messageInfo_NodeExecutionEventResponse.Size(m) +} +func (m *NodeExecutionEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionEventResponse proto.InternalMessageInfo + +// Request to send a notification that a task execution event has occurred. +type TaskExecutionEventRequest struct { + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.TaskExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionEventRequest) Reset() { *m = TaskExecutionEventRequest{} } +func (m *TaskExecutionEventRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionEventRequest) ProtoMessage() {} +func (*TaskExecutionEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{7} +} + +func (m *TaskExecutionEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionEventRequest.Unmarshal(m, b) +} +func (m *TaskExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionEventRequest.Marshal(b, m, deterministic) +} +func (m *TaskExecutionEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionEventRequest.Merge(m, src) +} +func (m *TaskExecutionEventRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionEventRequest.Size(m) +} +func (m *TaskExecutionEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionEventRequest proto.InternalMessageInfo + +func (m *TaskExecutionEventRequest) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *TaskExecutionEventRequest) GetEvent() *event.TaskExecutionEvent { + if m != nil { + return m.Event + } + return nil +} + +type TaskExecutionEventResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionEventResponse) Reset() { *m = TaskExecutionEventResponse{} } +func (m *TaskExecutionEventResponse) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionEventResponse) ProtoMessage() {} +func (*TaskExecutionEventResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4581752dea61f248, []int{8} +} + +func (m *TaskExecutionEventResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionEventResponse.Unmarshal(m, b) +} +func (m *TaskExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionEventResponse.Marshal(b, m, deterministic) +} +func (m *TaskExecutionEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionEventResponse.Merge(m, src) +} +func (m *TaskExecutionEventResponse) XXX_Size() int { + return xxx_messageInfo_TaskExecutionEventResponse.Size(m) +} +func (m *TaskExecutionEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionEventResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*EventErrorAlreadyInTerminalState)(nil), "flyteidl.admin.EventErrorAlreadyInTerminalState") + proto.RegisterType((*EventErrorIncompatibleCluster)(nil), "flyteidl.admin.EventErrorIncompatibleCluster") + proto.RegisterType((*EventFailureReason)(nil), "flyteidl.admin.EventFailureReason") + proto.RegisterType((*WorkflowExecutionEventRequest)(nil), "flyteidl.admin.WorkflowExecutionEventRequest") + proto.RegisterType((*WorkflowExecutionEventResponse)(nil), "flyteidl.admin.WorkflowExecutionEventResponse") + proto.RegisterType((*NodeExecutionEventRequest)(nil), "flyteidl.admin.NodeExecutionEventRequest") + proto.RegisterType((*NodeExecutionEventResponse)(nil), "flyteidl.admin.NodeExecutionEventResponse") + proto.RegisterType((*TaskExecutionEventRequest)(nil), "flyteidl.admin.TaskExecutionEventRequest") + proto.RegisterType((*TaskExecutionEventResponse)(nil), "flyteidl.admin.TaskExecutionEventResponse") +} + +func init() { proto.RegisterFile("flyteidl/admin/event.proto", fileDescriptor_4581752dea61f248) } + +var fileDescriptor_4581752dea61f248 = []byte{ + // 404 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0x5f, 0x6b, 0xdb, 0x30, + 0x14, 0xc5, 0x93, 0xc1, 0xb2, 0xe5, 0xee, 0xcf, 0x83, 0x37, 0x46, 0x12, 0x96, 0x11, 0x3c, 0x18, + 0x7b, 0x89, 0x3d, 0x36, 0x46, 0x5b, 0xe8, 0x4b, 0x53, 0xd2, 0x26, 0x2f, 0xa5, 0xb8, 0x81, 0x42, + 0x5f, 0x8c, 0x6c, 0xdf, 0x38, 0x22, 0xb2, 0xe4, 0x4a, 0x72, 0xdb, 0x40, 0xbf, 0x74, 0xbf, 0x41, + 0x89, 0xec, 0xd4, 0x49, 0xeb, 0x50, 0x28, 0xf4, 0xcd, 0xba, 0xba, 0xf7, 0x9c, 0xdf, 0xb1, 0xb8, + 0xd0, 0x99, 0xb2, 0x85, 0x46, 0x1a, 0x31, 0x97, 0x44, 0x09, 0xe5, 0x2e, 0x5e, 0x21, 0xd7, 0x4e, + 0x2a, 0x85, 0x16, 0xd6, 0xe7, 0xd5, 0x9d, 0x63, 0xee, 0x3a, 0x65, 0xaf, 0xe9, 0x5a, 0xef, 0xb5, + 0x8f, 0xa1, 0x37, 0x5c, 0x1e, 0x87, 0x52, 0x0a, 0x79, 0xc0, 0x24, 0x92, 0x68, 0x31, 0xe6, 0x13, + 0x94, 0x09, 0xe5, 0x84, 0x9d, 0x69, 0xa2, 0xd1, 0xfa, 0x09, 0x9f, 0xc2, 0x4c, 0x4a, 0xe4, 0xda, + 0x4f, 0x67, 0x44, 0x61, 0xab, 0xde, 0xab, 0xff, 0x6e, 0x7a, 0x1f, 0x8b, 0xe2, 0xe9, 0xb2, 0x66, + 0xef, 0x41, 0xb7, 0x14, 0x1a, 0xf3, 0x50, 0x24, 0x29, 0xd1, 0x34, 0x60, 0x78, 0xc8, 0x32, 0xa5, + 0x51, 0x5a, 0x2d, 0x78, 0x17, 0xe6, 0x9f, 0xc5, 0xfc, 0xea, 0x68, 0xdf, 0xd5, 0xc1, 0x32, 0xb3, + 0x47, 0x84, 0xb2, 0x4c, 0xa2, 0x87, 0x44, 0x09, 0x6e, 0x25, 0xd0, 0x26, 0x39, 0x90, 0x4f, 0xb9, + 0xaf, 0x0b, 0x24, 0x5f, 0x2d, 0x99, 0x8c, 0xc4, 0x87, 0xbf, 0x7f, 0x9c, 0xcd, 0xa8, 0xce, 0x73, + 0x59, 0x46, 0x35, 0xef, 0x1b, 0xa9, 0x4e, 0x19, 0xc0, 0x57, 0xba, 0x86, 0xed, 0xaf, 0x60, 0xdf, + 0x18, 0xa7, 0xfe, 0x76, 0xa7, 0x8a, 0xb0, 0xa3, 0x9a, 0xf7, 0x85, 0x3e, 0x2d, 0x0f, 0xde, 0x43, + 0x43, 0x9a, 0x70, 0xf6, 0x2d, 0x74, 0xcf, 0x85, 0x9c, 0x4f, 0x99, 0xb8, 0x1e, 0xde, 0x60, 0x98, + 0x69, 0x2a, 0xb8, 0x91, 0xf4, 0xf0, 0x32, 0x43, 0xa5, 0xad, 0x2e, 0x80, 0xcc, 0x3f, 0x7d, 0x1a, + 0x15, 0x7f, 0xac, 0x59, 0x54, 0xc6, 0x91, 0xb5, 0x0f, 0x6f, 0xcd, 0x33, 0x16, 0x78, 0xbf, 0x4a, + 0xbc, 0xfc, 0x75, 0xb7, 0x88, 0xe7, 0x43, 0x76, 0x0f, 0x7e, 0x6c, 0x73, 0x57, 0xa9, 0xe0, 0x0a, + 0x6d, 0x0d, 0xed, 0x13, 0x11, 0xe1, 0x8b, 0xd8, 0x76, 0x37, 0xd9, 0xec, 0xc7, 0x6c, 0x15, 0xc2, + 0x05, 0xd7, 0x77, 0xe8, 0x54, 0xb9, 0x96, 0x4c, 0x13, 0xa2, 0xe6, 0xaf, 0xc2, 0x54, 0x21, 0x5c, + 0x32, 0x55, 0xb9, 0xe6, 0x4c, 0x83, 0x9d, 0x8b, 0xff, 0x31, 0xd5, 0xb3, 0x2c, 0x70, 0x42, 0x91, + 0xb8, 0x46, 0x54, 0xc8, 0xd8, 0x7d, 0xd8, 0xb8, 0x18, 0xb9, 0x9b, 0x06, 0xfd, 0x58, 0xb8, 0x9b, + 0x0b, 0x1b, 0x34, 0xcc, 0xfe, 0xfd, 0xbb, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x10, 0x23, 0xbf, 0x80, + 0xc9, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.validate.go new file mode 100644 index 0000000000..04fd96c15d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.validate.go @@ -0,0 +1,712 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/event.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 _event_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 EventErrorAlreadyInTerminalState with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *EventErrorAlreadyInTerminalState) Validate() error { + if m == nil { + return nil + } + + // no validation rules for CurrentPhase + + return nil +} + +// EventErrorAlreadyInTerminalStateValidationError is the validation error +// returned by EventErrorAlreadyInTerminalState.Validate if the designated +// constraints aren't met. +type EventErrorAlreadyInTerminalStateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EventErrorAlreadyInTerminalStateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EventErrorAlreadyInTerminalStateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EventErrorAlreadyInTerminalStateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EventErrorAlreadyInTerminalStateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EventErrorAlreadyInTerminalStateValidationError) ErrorName() string { + return "EventErrorAlreadyInTerminalStateValidationError" +} + +// Error satisfies the builtin error interface +func (e EventErrorAlreadyInTerminalStateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEventErrorAlreadyInTerminalState.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EventErrorAlreadyInTerminalStateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EventErrorAlreadyInTerminalStateValidationError{} + +// Validate checks the field values on EventErrorIncompatibleCluster with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *EventErrorIncompatibleCluster) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Cluster + + return nil +} + +// EventErrorIncompatibleClusterValidationError is the validation error +// returned by EventErrorIncompatibleCluster.Validate if the designated +// constraints aren't met. +type EventErrorIncompatibleClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EventErrorIncompatibleClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EventErrorIncompatibleClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EventErrorIncompatibleClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EventErrorIncompatibleClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EventErrorIncompatibleClusterValidationError) ErrorName() string { + return "EventErrorIncompatibleClusterValidationError" +} + +// Error satisfies the builtin error interface +func (e EventErrorIncompatibleClusterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEventErrorIncompatibleCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EventErrorIncompatibleClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EventErrorIncompatibleClusterValidationError{} + +// Validate checks the field values on EventFailureReason with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *EventFailureReason) Validate() error { + if m == nil { + return nil + } + + switch m.Reason.(type) { + + case *EventFailureReason_AlreadyInTerminalState: + + if v, ok := interface{}(m.GetAlreadyInTerminalState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EventFailureReasonValidationError{ + field: "AlreadyInTerminalState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *EventFailureReason_IncompatibleCluster: + + if v, ok := interface{}(m.GetIncompatibleCluster()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EventFailureReasonValidationError{ + field: "IncompatibleCluster", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// EventFailureReasonValidationError is the validation error returned by +// EventFailureReason.Validate if the designated constraints aren't met. +type EventFailureReasonValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EventFailureReasonValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EventFailureReasonValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EventFailureReasonValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EventFailureReasonValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EventFailureReasonValidationError) ErrorName() string { + return "EventFailureReasonValidationError" +} + +// Error satisfies the builtin error interface +func (e EventFailureReasonValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEventFailureReason.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EventFailureReasonValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EventFailureReasonValidationError{} + +// Validate checks the field values on WorkflowExecutionEventRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionEventRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestId + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventRequestValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionEventRequestValidationError is the validation error +// returned by WorkflowExecutionEventRequest.Validate if the designated +// constraints aren't met. +type WorkflowExecutionEventRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionEventRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionEventRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionEventRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionEventRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionEventRequestValidationError) ErrorName() string { + return "WorkflowExecutionEventRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionEventRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionEventRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionEventRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionEventRequestValidationError{} + +// Validate checks the field values on WorkflowExecutionEventResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionEventResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowExecutionEventResponseValidationError is the validation error +// returned by WorkflowExecutionEventResponse.Validate if the designated +// constraints aren't met. +type WorkflowExecutionEventResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionEventResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionEventResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionEventResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionEventResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionEventResponseValidationError) ErrorName() string { + return "WorkflowExecutionEventResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionEventResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionEventResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionEventResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionEventResponseValidationError{} + +// Validate checks the field values on NodeExecutionEventRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionEventRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestId + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventRequestValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionEventRequestValidationError is the validation error returned by +// NodeExecutionEventRequest.Validate if the designated constraints aren't met. +type NodeExecutionEventRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionEventRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionEventRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionEventRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionEventRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionEventRequestValidationError) ErrorName() string { + return "NodeExecutionEventRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionEventRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionEventRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionEventRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionEventRequestValidationError{} + +// Validate checks the field values on NodeExecutionEventResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionEventResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// NodeExecutionEventResponseValidationError is the validation error returned +// by NodeExecutionEventResponse.Validate if the designated constraints aren't met. +type NodeExecutionEventResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionEventResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionEventResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionEventResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionEventResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionEventResponseValidationError) ErrorName() string { + return "NodeExecutionEventResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionEventResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionEventResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionEventResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionEventResponseValidationError{} + +// Validate checks the field values on TaskExecutionEventRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionEventRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestId + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventRequestValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionEventRequestValidationError is the validation error returned by +// TaskExecutionEventRequest.Validate if the designated constraints aren't met. +type TaskExecutionEventRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionEventRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionEventRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionEventRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionEventRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionEventRequestValidationError) ErrorName() string { + return "TaskExecutionEventRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionEventRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionEventRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionEventRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionEventRequestValidationError{} + +// Validate checks the field values on TaskExecutionEventResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionEventResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// TaskExecutionEventResponseValidationError is the validation error returned +// by TaskExecutionEventResponse.Validate if the designated constraints aren't met. +type TaskExecutionEventResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionEventResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionEventResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionEventResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionEventResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionEventResponseValidationError) ErrorName() string { + return "TaskExecutionEventResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionEventResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionEventResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionEventResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionEventResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json new file mode 100644 index 0000000000..aca0ee85d4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/event.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go new file mode 100644 index 0000000000..8cf8b91846 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go @@ -0,0 +1,1848 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/execution.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + 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 + +// The state of the execution is used to control its visibility in the UI/CLI. +type ExecutionState int32 + +const ( + // By default, all executions are considered active. + ExecutionState_EXECUTION_ACTIVE ExecutionState = 0 + // Archived executions are no longer visible in the UI. + ExecutionState_EXECUTION_ARCHIVED ExecutionState = 1 +) + +var ExecutionState_name = map[int32]string{ + 0: "EXECUTION_ACTIVE", + 1: "EXECUTION_ARCHIVED", +} + +var ExecutionState_value = map[string]int32{ + "EXECUTION_ACTIVE": 0, + "EXECUTION_ARCHIVED": 1, +} + +func (x ExecutionState) String() string { + return proto.EnumName(ExecutionState_name, int32(x)) +} + +func (ExecutionState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{0} +} + +// The method by which this execution was launched. +type ExecutionMetadata_ExecutionMode int32 + +const ( + // The default execution mode, MANUAL implies that an execution was launched by an individual. + ExecutionMetadata_MANUAL ExecutionMetadata_ExecutionMode = 0 + // A schedule triggered this execution launch. + ExecutionMetadata_SCHEDULED ExecutionMetadata_ExecutionMode = 1 + // A system process was responsible for launching this execution rather an individual. + ExecutionMetadata_SYSTEM ExecutionMetadata_ExecutionMode = 2 + // This execution was launched with identical inputs as a previous execution. + ExecutionMetadata_RELAUNCH ExecutionMetadata_ExecutionMode = 3 + // This execution was triggered by another execution. + ExecutionMetadata_CHILD_WORKFLOW ExecutionMetadata_ExecutionMode = 4 + // This execution was recovered from another execution. + ExecutionMetadata_RECOVERED ExecutionMetadata_ExecutionMode = 5 +) + +var ExecutionMetadata_ExecutionMode_name = map[int32]string{ + 0: "MANUAL", + 1: "SCHEDULED", + 2: "SYSTEM", + 3: "RELAUNCH", + 4: "CHILD_WORKFLOW", + 5: "RECOVERED", +} + +var ExecutionMetadata_ExecutionMode_value = map[string]int32{ + "MANUAL": 0, + "SCHEDULED": 1, + "SYSTEM": 2, + "RELAUNCH": 3, + "CHILD_WORKFLOW": 4, + "RECOVERED": 5, +} + +func (x ExecutionMetadata_ExecutionMode) String() string { + return proto.EnumName(ExecutionMetadata_ExecutionMode_name, int32(x)) +} + +func (ExecutionMetadata_ExecutionMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{11, 0} +} + +// Request to launch an execution with the given project, domain and optionally-assigned name. +type ExecutionCreateRequest struct { + // Name of the project the execution belongs to. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the execution belongs to. + // A domain can be considered as a subset within a specific project. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Additional fields necessary to launch the execution. + // +optional + Spec *ExecutionSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + Inputs *core.LiteralMap `protobuf:"bytes,5,opt,name=inputs,proto3" json:"inputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionCreateRequest) Reset() { *m = ExecutionCreateRequest{} } +func (m *ExecutionCreateRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionCreateRequest) ProtoMessage() {} +func (*ExecutionCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{0} +} + +func (m *ExecutionCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionCreateRequest.Unmarshal(m, b) +} +func (m *ExecutionCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionCreateRequest.Marshal(b, m, deterministic) +} +func (m *ExecutionCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionCreateRequest.Merge(m, src) +} +func (m *ExecutionCreateRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionCreateRequest.Size(m) +} +func (m *ExecutionCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionCreateRequest proto.InternalMessageInfo + +func (m *ExecutionCreateRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ExecutionCreateRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *ExecutionCreateRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExecutionCreateRequest) GetSpec() *ExecutionSpec { + if m != nil { + return m.Spec + } + return nil +} + +func (m *ExecutionCreateRequest) GetInputs() *core.LiteralMap { + if m != nil { + return m.Inputs + } + return nil +} + +// Request to relaunch the referenced execution. +type ExecutionRelaunchRequest struct { + // Identifier of the workflow execution to relaunch. + // +required + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User provided value for the relaunched execution. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,4,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionRelaunchRequest) Reset() { *m = ExecutionRelaunchRequest{} } +func (m *ExecutionRelaunchRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionRelaunchRequest) ProtoMessage() {} +func (*ExecutionRelaunchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{1} +} + +func (m *ExecutionRelaunchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionRelaunchRequest.Unmarshal(m, b) +} +func (m *ExecutionRelaunchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionRelaunchRequest.Marshal(b, m, deterministic) +} +func (m *ExecutionRelaunchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionRelaunchRequest.Merge(m, src) +} +func (m *ExecutionRelaunchRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionRelaunchRequest.Size(m) +} +func (m *ExecutionRelaunchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionRelaunchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionRelaunchRequest proto.InternalMessageInfo + +func (m *ExecutionRelaunchRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ExecutionRelaunchRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExecutionRelaunchRequest) GetOverwriteCache() bool { + if m != nil { + return m.OverwriteCache + } + return false +} + +// Request to recover the referenced execution. +type ExecutionRecoverRequest struct { + // Identifier of the workflow execution to recover. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User provided value for the recovered execution. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. + Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionRecoverRequest) Reset() { *m = ExecutionRecoverRequest{} } +func (m *ExecutionRecoverRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionRecoverRequest) ProtoMessage() {} +func (*ExecutionRecoverRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{2} +} + +func (m *ExecutionRecoverRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionRecoverRequest.Unmarshal(m, b) +} +func (m *ExecutionRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionRecoverRequest.Marshal(b, m, deterministic) +} +func (m *ExecutionRecoverRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionRecoverRequest.Merge(m, src) +} +func (m *ExecutionRecoverRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionRecoverRequest.Size(m) +} +func (m *ExecutionRecoverRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionRecoverRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionRecoverRequest proto.InternalMessageInfo + +func (m *ExecutionRecoverRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ExecutionRecoverRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExecutionRecoverRequest) GetMetadata() *ExecutionMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +// The unique identifier for a successfully created execution. +// If the name was *not* specified in the create request, this identifier will include a generated name. +type ExecutionCreateResponse struct { + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionCreateResponse) Reset() { *m = ExecutionCreateResponse{} } +func (m *ExecutionCreateResponse) String() string { return proto.CompactTextString(m) } +func (*ExecutionCreateResponse) ProtoMessage() {} +func (*ExecutionCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{3} +} + +func (m *ExecutionCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionCreateResponse.Unmarshal(m, b) +} +func (m *ExecutionCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionCreateResponse.Marshal(b, m, deterministic) +} +func (m *ExecutionCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionCreateResponse.Merge(m, src) +} +func (m *ExecutionCreateResponse) XXX_Size() int { + return xxx_messageInfo_ExecutionCreateResponse.Size(m) +} +func (m *ExecutionCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionCreateResponse proto.InternalMessageInfo + +func (m *ExecutionCreateResponse) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// A message used to fetch a single workflow execution entity. +// See :ref:`ref_flyteidl.admin.Execution` for more details +type WorkflowExecutionGetRequest struct { + // Uniquely identifies an individual workflow execution. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetRequest) Reset() { *m = WorkflowExecutionGetRequest{} } +func (m *WorkflowExecutionGetRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetRequest) ProtoMessage() {} +func (*WorkflowExecutionGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{4} +} + +func (m *WorkflowExecutionGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetRequest.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetRequest.Merge(m, src) +} +func (m *WorkflowExecutionGetRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetRequest.Size(m) +} +func (m *WorkflowExecutionGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetRequest proto.InternalMessageInfo + +func (m *WorkflowExecutionGetRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// A workflow execution represents an instantiated workflow, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +// Used as a response object used in Get and List execution requests. +type Execution struct { + // Unique identifier of the workflow execution. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided configuration and inputs for launching the execution. + Spec *ExecutionSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Execution results. + Closure *ExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Execution) Reset() { *m = Execution{} } +func (m *Execution) String() string { return proto.CompactTextString(m) } +func (*Execution) ProtoMessage() {} +func (*Execution) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{5} +} + +func (m *Execution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Execution.Unmarshal(m, b) +} +func (m *Execution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Execution.Marshal(b, m, deterministic) +} +func (m *Execution) XXX_Merge(src proto.Message) { + xxx_messageInfo_Execution.Merge(m, src) +} +func (m *Execution) XXX_Size() int { + return xxx_messageInfo_Execution.Size(m) +} +func (m *Execution) XXX_DiscardUnknown() { + xxx_messageInfo_Execution.DiscardUnknown(m) +} + +var xxx_messageInfo_Execution proto.InternalMessageInfo + +func (m *Execution) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *Execution) GetSpec() *ExecutionSpec { + if m != nil { + return m.Spec + } + return nil +} + +func (m *Execution) GetClosure() *ExecutionClosure { + if m != nil { + return m.Closure + } + return nil +} + +// Used as a response for request to list executions. +// See :ref:`ref_flyteidl.admin.Execution` for more details +type ExecutionList struct { + Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionList) Reset() { *m = ExecutionList{} } +func (m *ExecutionList) String() string { return proto.CompactTextString(m) } +func (*ExecutionList) ProtoMessage() {} +func (*ExecutionList) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{6} +} + +func (m *ExecutionList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionList.Unmarshal(m, b) +} +func (m *ExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionList.Marshal(b, m, deterministic) +} +func (m *ExecutionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionList.Merge(m, src) +} +func (m *ExecutionList) XXX_Size() int { + return xxx_messageInfo_ExecutionList.Size(m) +} +func (m *ExecutionList) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionList.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionList proto.InternalMessageInfo + +func (m *ExecutionList) GetExecutions() []*Execution { + if m != nil { + return m.Executions + } + return nil +} + +func (m *ExecutionList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Input/output data can represented by actual values or a link to where values are stored +type LiteralMapBlob struct { + // Types that are valid to be assigned to Data: + // *LiteralMapBlob_Values + // *LiteralMapBlob_Uri + Data isLiteralMapBlob_Data `protobuf_oneof:"data"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralMapBlob) Reset() { *m = LiteralMapBlob{} } +func (m *LiteralMapBlob) String() string { return proto.CompactTextString(m) } +func (*LiteralMapBlob) ProtoMessage() {} +func (*LiteralMapBlob) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{7} +} + +func (m *LiteralMapBlob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralMapBlob.Unmarshal(m, b) +} +func (m *LiteralMapBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralMapBlob.Marshal(b, m, deterministic) +} +func (m *LiteralMapBlob) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralMapBlob.Merge(m, src) +} +func (m *LiteralMapBlob) XXX_Size() int { + return xxx_messageInfo_LiteralMapBlob.Size(m) +} +func (m *LiteralMapBlob) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralMapBlob.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralMapBlob proto.InternalMessageInfo + +type isLiteralMapBlob_Data interface { + isLiteralMapBlob_Data() +} + +type LiteralMapBlob_Values struct { + Values *core.LiteralMap `protobuf:"bytes,1,opt,name=values,proto3,oneof"` +} + +type LiteralMapBlob_Uri struct { + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +func (*LiteralMapBlob_Values) isLiteralMapBlob_Data() {} + +func (*LiteralMapBlob_Uri) isLiteralMapBlob_Data() {} + +func (m *LiteralMapBlob) GetData() isLiteralMapBlob_Data { + if m != nil { + return m.Data + } + return nil +} + +// Deprecated: Do not use. +func (m *LiteralMapBlob) GetValues() *core.LiteralMap { + if x, ok := m.GetData().(*LiteralMapBlob_Values); ok { + return x.Values + } + return nil +} + +func (m *LiteralMapBlob) GetUri() string { + if x, ok := m.GetData().(*LiteralMapBlob_Uri); ok { + return x.Uri + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*LiteralMapBlob) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*LiteralMapBlob_Values)(nil), + (*LiteralMapBlob_Uri)(nil), + } +} + +// Specifies metadata around an aborted workflow execution. +type AbortMetadata struct { + // In the case of a user-specified abort, this will pass along the user-supplied cause. + Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` + // Identifies the entity (if any) responsible for terminating the execution + Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AbortMetadata) Reset() { *m = AbortMetadata{} } +func (m *AbortMetadata) String() string { return proto.CompactTextString(m) } +func (*AbortMetadata) ProtoMessage() {} +func (*AbortMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{8} +} + +func (m *AbortMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AbortMetadata.Unmarshal(m, b) +} +func (m *AbortMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AbortMetadata.Marshal(b, m, deterministic) +} +func (m *AbortMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_AbortMetadata.Merge(m, src) +} +func (m *AbortMetadata) XXX_Size() int { + return xxx_messageInfo_AbortMetadata.Size(m) +} +func (m *AbortMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_AbortMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_AbortMetadata proto.InternalMessageInfo + +func (m *AbortMetadata) GetCause() string { + if m != nil { + return m.Cause + } + return "" +} + +func (m *AbortMetadata) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +// Encapsulates the results of the Execution +type ExecutionClosure struct { + // A result produced by a terminated execution. + // A pending (non-terminal) execution will not have any output result. + // + // Types that are valid to be assigned to OutputResult: + // *ExecutionClosure_Outputs + // *ExecutionClosure_Error + // *ExecutionClosure_AbortCause + // *ExecutionClosure_AbortMetadata + // *ExecutionClosure_OutputData + OutputResult isExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // Inputs computed and passed for execution. + // computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + ComputedInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=computed_inputs,json=computedInputs,proto3" json:"computed_inputs,omitempty"` // Deprecated: Do not use. + // Most recent recorded phase for the execution. + Phase core.WorkflowExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + // Reported time at which the execution began running. + StartedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the execution spent running. + Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + // Reported time at which the execution was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Reported time at which the execution was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // The notification settings to use after merging the CreateExecutionRequest and the launch plan + // notification settings. An execution launched with notifications will always prefer that definition + // to notifications defined statically in a launch plan. + Notifications []*Notification `protobuf:"bytes,9,rep,name=notifications,proto3" json:"notifications,omitempty"` + // Identifies the workflow definition for this execution. + WorkflowId *core.Identifier `protobuf:"bytes,11,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + // Provides the details of the last stage change + StateChangeDetails *ExecutionStateChangeDetails `protobuf:"bytes,14,opt,name=state_change_details,json=stateChangeDetails,proto3" json:"state_change_details,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionClosure) Reset() { *m = ExecutionClosure{} } +func (m *ExecutionClosure) String() string { return proto.CompactTextString(m) } +func (*ExecutionClosure) ProtoMessage() {} +func (*ExecutionClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{9} +} + +func (m *ExecutionClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionClosure.Unmarshal(m, b) +} +func (m *ExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionClosure.Marshal(b, m, deterministic) +} +func (m *ExecutionClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionClosure.Merge(m, src) +} +func (m *ExecutionClosure) XXX_Size() int { + return xxx_messageInfo_ExecutionClosure.Size(m) +} +func (m *ExecutionClosure) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionClosure proto.InternalMessageInfo + +type isExecutionClosure_OutputResult interface { + isExecutionClosure_OutputResult() +} + +type ExecutionClosure_Outputs struct { + Outputs *LiteralMapBlob `protobuf:"bytes,1,opt,name=outputs,proto3,oneof"` +} + +type ExecutionClosure_Error struct { + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type ExecutionClosure_AbortCause struct { + AbortCause string `protobuf:"bytes,10,opt,name=abort_cause,json=abortCause,proto3,oneof"` +} + +type ExecutionClosure_AbortMetadata struct { + AbortMetadata *AbortMetadata `protobuf:"bytes,12,opt,name=abort_metadata,json=abortMetadata,proto3,oneof"` +} + +type ExecutionClosure_OutputData struct { + OutputData *core.LiteralMap `protobuf:"bytes,13,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*ExecutionClosure_Outputs) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_Error) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_AbortCause) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_AbortMetadata) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_OutputData) isExecutionClosure_OutputResult() {} + +func (m *ExecutionClosure) GetOutputResult() isExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +// Deprecated: Do not use. +func (m *ExecutionClosure) GetOutputs() *LiteralMapBlob { + if x, ok := m.GetOutputResult().(*ExecutionClosure_Outputs); ok { + return x.Outputs + } + return nil +} + +func (m *ExecutionClosure) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*ExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +// Deprecated: Do not use. +func (m *ExecutionClosure) GetAbortCause() string { + if x, ok := m.GetOutputResult().(*ExecutionClosure_AbortCause); ok { + return x.AbortCause + } + return "" +} + +func (m *ExecutionClosure) GetAbortMetadata() *AbortMetadata { + if x, ok := m.GetOutputResult().(*ExecutionClosure_AbortMetadata); ok { + return x.AbortMetadata + } + return nil +} + +// Deprecated: Do not use. +func (m *ExecutionClosure) GetOutputData() *core.LiteralMap { + if x, ok := m.GetOutputResult().(*ExecutionClosure_OutputData); ok { + return x.OutputData + } + return nil +} + +// Deprecated: Do not use. +func (m *ExecutionClosure) GetComputedInputs() *core.LiteralMap { + if m != nil { + return m.ComputedInputs + } + return nil +} + +func (m *ExecutionClosure) GetPhase() core.WorkflowExecution_Phase { + if m != nil { + return m.Phase + } + return core.WorkflowExecution_UNDEFINED +} + +func (m *ExecutionClosure) GetStartedAt() *timestamp.Timestamp { + if m != nil { + return m.StartedAt + } + return nil +} + +func (m *ExecutionClosure) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +func (m *ExecutionClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *ExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +func (m *ExecutionClosure) GetNotifications() []*Notification { + if m != nil { + return m.Notifications + } + return nil +} + +func (m *ExecutionClosure) GetWorkflowId() *core.Identifier { + if m != nil { + return m.WorkflowId + } + return nil +} + +func (m *ExecutionClosure) GetStateChangeDetails() *ExecutionStateChangeDetails { + if m != nil { + return m.StateChangeDetails + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExecutionClosure) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ExecutionClosure_Outputs)(nil), + (*ExecutionClosure_Error)(nil), + (*ExecutionClosure_AbortCause)(nil), + (*ExecutionClosure_AbortMetadata)(nil), + (*ExecutionClosure_OutputData)(nil), + } +} + +// Represents system, rather than user-facing, metadata about an execution. +type SystemMetadata struct { + // Which execution cluster this execution ran on. + ExecutionCluster string `protobuf:"bytes,1,opt,name=execution_cluster,json=executionCluster,proto3" json:"execution_cluster,omitempty"` + // Which kubernetes namespace the execution ran under. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SystemMetadata) Reset() { *m = SystemMetadata{} } +func (m *SystemMetadata) String() string { return proto.CompactTextString(m) } +func (*SystemMetadata) ProtoMessage() {} +func (*SystemMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{10} +} + +func (m *SystemMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SystemMetadata.Unmarshal(m, b) +} +func (m *SystemMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SystemMetadata.Marshal(b, m, deterministic) +} +func (m *SystemMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_SystemMetadata.Merge(m, src) +} +func (m *SystemMetadata) XXX_Size() int { + return xxx_messageInfo_SystemMetadata.Size(m) +} +func (m *SystemMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_SystemMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_SystemMetadata proto.InternalMessageInfo + +func (m *SystemMetadata) GetExecutionCluster() string { + if m != nil { + return m.ExecutionCluster + } + return "" +} + +func (m *SystemMetadata) GetNamespace() string { + if m != nil { + return m.Namespace + } + return "" +} + +// Represents attributes about an execution which are not required to launch the execution but are useful to record. +// These attributes are assigned at launch time and do not change. +type ExecutionMetadata struct { + Mode ExecutionMetadata_ExecutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=flyteidl.admin.ExecutionMetadata_ExecutionMode" json:"mode,omitempty"` + // Identifier of the entity that triggered this execution. + // For systems using back-end authentication any value set here will be discarded in favor of the + // authenticated user context. + Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` + // Indicates the nestedness of this execution. + // If a user launches a workflow execution, the default nesting is 0. + // If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + // Generally, if workflow at nesting level k launches a workflow then the child workflow will have + // nesting = k + 1. + Nesting uint32 `protobuf:"varint,3,opt,name=nesting,proto3" json:"nesting,omitempty"` + // For scheduled executions, the requested time for execution for this specific schedule invocation. + ScheduledAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"` + // Which subworkflow node (if any) launched this execution + ParentNodeExecution *core.NodeExecutionIdentifier `protobuf:"bytes,5,opt,name=parent_node_execution,json=parentNodeExecution,proto3" json:"parent_node_execution,omitempty"` + // Optional, a reference workflow execution related to this execution. + // In the case of a relaunch, this references the original workflow execution. + ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,16,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` + // Optional, platform-specific metadata about the execution. + // In this the future this may be gated behind an ACL or some sort of authorization. + SystemMetadata *SystemMetadata `protobuf:"bytes,17,opt,name=system_metadata,json=systemMetadata,proto3" json:"system_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionMetadata) Reset() { *m = ExecutionMetadata{} } +func (m *ExecutionMetadata) String() string { return proto.CompactTextString(m) } +func (*ExecutionMetadata) ProtoMessage() {} +func (*ExecutionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{11} +} + +func (m *ExecutionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionMetadata.Unmarshal(m, b) +} +func (m *ExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionMetadata.Marshal(b, m, deterministic) +} +func (m *ExecutionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionMetadata.Merge(m, src) +} +func (m *ExecutionMetadata) XXX_Size() int { + return xxx_messageInfo_ExecutionMetadata.Size(m) +} +func (m *ExecutionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionMetadata proto.InternalMessageInfo + +func (m *ExecutionMetadata) GetMode() ExecutionMetadata_ExecutionMode { + if m != nil { + return m.Mode + } + return ExecutionMetadata_MANUAL +} + +func (m *ExecutionMetadata) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +func (m *ExecutionMetadata) GetNesting() uint32 { + if m != nil { + return m.Nesting + } + return 0 +} + +func (m *ExecutionMetadata) GetScheduledAt() *timestamp.Timestamp { + if m != nil { + return m.ScheduledAt + } + return nil +} + +func (m *ExecutionMetadata) GetParentNodeExecution() *core.NodeExecutionIdentifier { + if m != nil { + return m.ParentNodeExecution + } + return nil +} + +func (m *ExecutionMetadata) GetReferenceExecution() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ReferenceExecution + } + return nil +} + +func (m *ExecutionMetadata) GetSystemMetadata() *SystemMetadata { + if m != nil { + return m.SystemMetadata + } + return nil +} + +type NotificationList struct { + Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotificationList) Reset() { *m = NotificationList{} } +func (m *NotificationList) String() string { return proto.CompactTextString(m) } +func (*NotificationList) ProtoMessage() {} +func (*NotificationList) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{12} +} + +func (m *NotificationList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotificationList.Unmarshal(m, b) +} +func (m *NotificationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotificationList.Marshal(b, m, deterministic) +} +func (m *NotificationList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotificationList.Merge(m, src) +} +func (m *NotificationList) XXX_Size() int { + return xxx_messageInfo_NotificationList.Size(m) +} +func (m *NotificationList) XXX_DiscardUnknown() { + xxx_messageInfo_NotificationList.DiscardUnknown(m) +} + +var xxx_messageInfo_NotificationList proto.InternalMessageInfo + +func (m *NotificationList) GetNotifications() []*Notification { + if m != nil { + return m.Notifications + } + return nil +} + +// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +// of an execution as it progresses across phase changes. +type ExecutionSpec struct { + // Launch plan to be executed + LaunchPlan *core.Identifier `protobuf:"bytes,1,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` + // Input values to be passed for the execution + Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. + // Metadata for the execution + Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Types that are valid to be assigned to NotificationOverrides: + // *ExecutionSpec_Notifications + // *ExecutionSpec_DisableAll + NotificationOverrides isExecutionSpec_NotificationOverrides `protobuf_oneof:"notification_overrides"` + // Labels to apply to the execution resource. + Labels *Labels `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels,omitempty"` + // Annotations to apply to the execution resource. + Annotations *Annotations `protobuf:"bytes,8,opt,name=annotations,proto3" json:"annotations,omitempty"` + // Optional: security context override to apply this execution. + SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Optional: auth override to apply this execution. + AuthRole *AuthRole `protobuf:"bytes,16,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` // Deprecated: Do not use. + // Indicates the runtime priority of the execution. + QualityOfService *core.QualityOfService `protobuf:"bytes,17,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` + // Controls the maximum number of task nodes that can be run in parallel for the entire workflow. + // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + // and parallelism/concurrency of MapTasks is independent from this. + MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` + // User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). + // This should be a prefix like s3://my-bucket/my-data + RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,19,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` + // Controls how to select an available cluster on which this execution should run. + ClusterAssignment *ClusterAssignment `protobuf:"bytes,20,opt,name=cluster_assignment,json=clusterAssignment,proto3" json:"cluster_assignment,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + Interruptible *wrappers.BoolValue `protobuf:"bytes,21,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,22,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *Envs `protobuf:"bytes,23,opt,name=envs,proto3" json:"envs,omitempty"` + // Tags to be set for the execution. + Tags []string `protobuf:"bytes,24,rep,name=tags,proto3" json:"tags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionSpec) Reset() { *m = ExecutionSpec{} } +func (m *ExecutionSpec) String() string { return proto.CompactTextString(m) } +func (*ExecutionSpec) ProtoMessage() {} +func (*ExecutionSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{13} +} + +func (m *ExecutionSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionSpec.Unmarshal(m, b) +} +func (m *ExecutionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionSpec.Marshal(b, m, deterministic) +} +func (m *ExecutionSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionSpec.Merge(m, src) +} +func (m *ExecutionSpec) XXX_Size() int { + return xxx_messageInfo_ExecutionSpec.Size(m) +} +func (m *ExecutionSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionSpec proto.InternalMessageInfo + +func (m *ExecutionSpec) GetLaunchPlan() *core.Identifier { + if m != nil { + return m.LaunchPlan + } + return nil +} + +// Deprecated: Do not use. +func (m *ExecutionSpec) GetInputs() *core.LiteralMap { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *ExecutionSpec) GetMetadata() *ExecutionMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +type isExecutionSpec_NotificationOverrides interface { + isExecutionSpec_NotificationOverrides() +} + +type ExecutionSpec_Notifications struct { + Notifications *NotificationList `protobuf:"bytes,5,opt,name=notifications,proto3,oneof"` +} + +type ExecutionSpec_DisableAll struct { + DisableAll bool `protobuf:"varint,6,opt,name=disable_all,json=disableAll,proto3,oneof"` +} + +func (*ExecutionSpec_Notifications) isExecutionSpec_NotificationOverrides() {} + +func (*ExecutionSpec_DisableAll) isExecutionSpec_NotificationOverrides() {} + +func (m *ExecutionSpec) GetNotificationOverrides() isExecutionSpec_NotificationOverrides { + if m != nil { + return m.NotificationOverrides + } + return nil +} + +func (m *ExecutionSpec) GetNotifications() *NotificationList { + if x, ok := m.GetNotificationOverrides().(*ExecutionSpec_Notifications); ok { + return x.Notifications + } + return nil +} + +func (m *ExecutionSpec) GetDisableAll() bool { + if x, ok := m.GetNotificationOverrides().(*ExecutionSpec_DisableAll); ok { + return x.DisableAll + } + return false +} + +func (m *ExecutionSpec) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + +func (m *ExecutionSpec) GetAnnotations() *Annotations { + if m != nil { + return m.Annotations + } + return nil +} + +func (m *ExecutionSpec) GetSecurityContext() *core.SecurityContext { + if m != nil { + return m.SecurityContext + } + return nil +} + +// Deprecated: Do not use. +func (m *ExecutionSpec) GetAuthRole() *AuthRole { + if m != nil { + return m.AuthRole + } + return nil +} + +func (m *ExecutionSpec) GetQualityOfService() *core.QualityOfService { + if m != nil { + return m.QualityOfService + } + return nil +} + +func (m *ExecutionSpec) GetMaxParallelism() int32 { + if m != nil { + return m.MaxParallelism + } + return 0 +} + +func (m *ExecutionSpec) GetRawOutputDataConfig() *RawOutputDataConfig { + if m != nil { + return m.RawOutputDataConfig + } + return nil +} + +func (m *ExecutionSpec) GetClusterAssignment() *ClusterAssignment { + if m != nil { + return m.ClusterAssignment + } + return nil +} + +func (m *ExecutionSpec) GetInterruptible() *wrappers.BoolValue { + if m != nil { + return m.Interruptible + } + return nil +} + +func (m *ExecutionSpec) GetOverwriteCache() bool { + if m != nil { + return m.OverwriteCache + } + return false +} + +func (m *ExecutionSpec) GetEnvs() *Envs { + if m != nil { + return m.Envs + } + return nil +} + +func (m *ExecutionSpec) GetTags() []string { + if m != nil { + return m.Tags + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExecutionSpec) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ExecutionSpec_Notifications)(nil), + (*ExecutionSpec_DisableAll)(nil), + } +} + +// Request to terminate an in-progress execution. This action is irreversible. +// If an execution is already terminated, this request will simply be a no-op. +// This request will fail if it references a non-existent execution. +// If the request succeeds the phase "ABORTED" will be recorded for the termination +// with the optional cause added to the output_result. +type ExecutionTerminateRequest struct { + // Uniquely identifies the individual workflow execution to be terminated. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Optional reason for aborting. + Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionTerminateRequest) Reset() { *m = ExecutionTerminateRequest{} } +func (m *ExecutionTerminateRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionTerminateRequest) ProtoMessage() {} +func (*ExecutionTerminateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{14} +} + +func (m *ExecutionTerminateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionTerminateRequest.Unmarshal(m, b) +} +func (m *ExecutionTerminateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionTerminateRequest.Marshal(b, m, deterministic) +} +func (m *ExecutionTerminateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionTerminateRequest.Merge(m, src) +} +func (m *ExecutionTerminateRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionTerminateRequest.Size(m) +} +func (m *ExecutionTerminateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionTerminateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionTerminateRequest proto.InternalMessageInfo + +func (m *ExecutionTerminateRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ExecutionTerminateRequest) GetCause() string { + if m != nil { + return m.Cause + } + return "" +} + +type ExecutionTerminateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionTerminateResponse) Reset() { *m = ExecutionTerminateResponse{} } +func (m *ExecutionTerminateResponse) String() string { return proto.CompactTextString(m) } +func (*ExecutionTerminateResponse) ProtoMessage() {} +func (*ExecutionTerminateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{15} +} + +func (m *ExecutionTerminateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionTerminateResponse.Unmarshal(m, b) +} +func (m *ExecutionTerminateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionTerminateResponse.Marshal(b, m, deterministic) +} +func (m *ExecutionTerminateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionTerminateResponse.Merge(m, src) +} +func (m *ExecutionTerminateResponse) XXX_Size() int { + return xxx_messageInfo_ExecutionTerminateResponse.Size(m) +} +func (m *ExecutionTerminateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionTerminateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionTerminateResponse proto.InternalMessageInfo + +// Request structure to fetch inputs, output and other data produced by an execution. +// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` +type WorkflowExecutionGetDataRequest struct { + // The identifier of the execution for which to fetch inputs and outputs. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetDataRequest) Reset() { *m = WorkflowExecutionGetDataRequest{} } +func (m *WorkflowExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetDataRequest) ProtoMessage() {} +func (*WorkflowExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{16} +} + +func (m *WorkflowExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetDataRequest.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetDataRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionGetDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetDataRequest.Merge(m, src) +} +func (m *WorkflowExecutionGetDataRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetDataRequest.Size(m) +} +func (m *WorkflowExecutionGetDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetDataRequest proto.InternalMessageInfo + +func (m *WorkflowExecutionGetDataRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +type WorkflowExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of execution outputs. + // Deprecated: Please use full_outputs instead. + Outputs *UrlBlob `protobuf:"bytes,1,opt,name=outputs,proto3" json:"outputs,omitempty"` // Deprecated: Do not use. + // Signed url to fetch a core.LiteralMap of execution inputs. + // Deprecated: Please use full_inputs instead. + Inputs *UrlBlob `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetDataResponse) Reset() { *m = WorkflowExecutionGetDataResponse{} } +func (m *WorkflowExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetDataResponse) ProtoMessage() {} +func (*WorkflowExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{17} +} + +func (m *WorkflowExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetDataResponse.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetDataResponse.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionGetDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetDataResponse.Merge(m, src) +} +func (m *WorkflowExecutionGetDataResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetDataResponse.Size(m) +} +func (m *WorkflowExecutionGetDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetDataResponse proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *WorkflowExecutionGetDataResponse) GetOutputs() *UrlBlob { + if m != nil { + return m.Outputs + } + return nil +} + +// Deprecated: Do not use. +func (m *WorkflowExecutionGetDataResponse) GetInputs() *UrlBlob { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *WorkflowExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { + if m != nil { + return m.FullInputs + } + return nil +} + +func (m *WorkflowExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { + if m != nil { + return m.FullOutputs + } + return nil +} + +type ExecutionUpdateRequest struct { + // Identifier of the execution to update + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // State to set as the new value active/archive + State ExecutionState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionUpdateRequest) Reset() { *m = ExecutionUpdateRequest{} } +func (m *ExecutionUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionUpdateRequest) ProtoMessage() {} +func (*ExecutionUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{18} +} + +func (m *ExecutionUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionUpdateRequest.Unmarshal(m, b) +} +func (m *ExecutionUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionUpdateRequest.Marshal(b, m, deterministic) +} +func (m *ExecutionUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionUpdateRequest.Merge(m, src) +} +func (m *ExecutionUpdateRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionUpdateRequest.Size(m) +} +func (m *ExecutionUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionUpdateRequest proto.InternalMessageInfo + +func (m *ExecutionUpdateRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ExecutionUpdateRequest) GetState() ExecutionState { + if m != nil { + return m.State + } + return ExecutionState_EXECUTION_ACTIVE +} + +type ExecutionStateChangeDetails struct { + // The state of the execution is used to control its visibility in the UI/CLI. + State ExecutionState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` + // This timestamp represents when the state changed. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Identifies the entity (if any) responsible for causing the state change of the execution + Principal string `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionStateChangeDetails) Reset() { *m = ExecutionStateChangeDetails{} } +func (m *ExecutionStateChangeDetails) String() string { return proto.CompactTextString(m) } +func (*ExecutionStateChangeDetails) ProtoMessage() {} +func (*ExecutionStateChangeDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{19} +} + +func (m *ExecutionStateChangeDetails) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionStateChangeDetails.Unmarshal(m, b) +} +func (m *ExecutionStateChangeDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionStateChangeDetails.Marshal(b, m, deterministic) +} +func (m *ExecutionStateChangeDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionStateChangeDetails.Merge(m, src) +} +func (m *ExecutionStateChangeDetails) XXX_Size() int { + return xxx_messageInfo_ExecutionStateChangeDetails.Size(m) +} +func (m *ExecutionStateChangeDetails) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionStateChangeDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionStateChangeDetails proto.InternalMessageInfo + +func (m *ExecutionStateChangeDetails) GetState() ExecutionState { + if m != nil { + return m.State + } + return ExecutionState_EXECUTION_ACTIVE +} + +func (m *ExecutionStateChangeDetails) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +func (m *ExecutionStateChangeDetails) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +type ExecutionUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionUpdateResponse) Reset() { *m = ExecutionUpdateResponse{} } +func (m *ExecutionUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*ExecutionUpdateResponse) ProtoMessage() {} +func (*ExecutionUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{20} +} + +func (m *ExecutionUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionUpdateResponse.Unmarshal(m, b) +} +func (m *ExecutionUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionUpdateResponse.Marshal(b, m, deterministic) +} +func (m *ExecutionUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionUpdateResponse.Merge(m, src) +} +func (m *ExecutionUpdateResponse) XXX_Size() int { + return xxx_messageInfo_ExecutionUpdateResponse.Size(m) +} +func (m *ExecutionUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionUpdateResponse proto.InternalMessageInfo + +// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. +type WorkflowExecutionGetMetricsRequest struct { + // id defines the workflow execution to query for. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // depth defines the number of Flyte entity levels to traverse when breaking down execution details. + Depth int32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetMetricsRequest) Reset() { *m = WorkflowExecutionGetMetricsRequest{} } +func (m *WorkflowExecutionGetMetricsRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetMetricsRequest) ProtoMessage() {} +func (*WorkflowExecutionGetMetricsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{21} +} + +func (m *WorkflowExecutionGetMetricsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionGetMetricsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Merge(m, src) +} +func (m *WorkflowExecutionGetMetricsRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Size(m) +} +func (m *WorkflowExecutionGetMetricsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetMetricsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetMetricsRequest proto.InternalMessageInfo + +func (m *WorkflowExecutionGetMetricsRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *WorkflowExecutionGetMetricsRequest) GetDepth() int32 { + if m != nil { + return m.Depth + } + return 0 +} + +// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. +type WorkflowExecutionGetMetricsResponse struct { + // Span defines the top-level breakdown of the workflows execution. More precise information is nested in a + // hierarchical structure using Flyte entity references. + Span *core.Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetMetricsResponse) Reset() { *m = WorkflowExecutionGetMetricsResponse{} } +func (m *WorkflowExecutionGetMetricsResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetMetricsResponse) ProtoMessage() {} +func (*WorkflowExecutionGetMetricsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4e2785d91b3809ec, []int{22} +} + +func (m *WorkflowExecutionGetMetricsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionGetMetricsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Merge(m, src) +} +func (m *WorkflowExecutionGetMetricsResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Size(m) +} +func (m *WorkflowExecutionGetMetricsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetMetricsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetMetricsResponse proto.InternalMessageInfo + +func (m *WorkflowExecutionGetMetricsResponse) GetSpan() *core.Span { + if m != nil { + return m.Span + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.admin.ExecutionState", ExecutionState_name, ExecutionState_value) + proto.RegisterEnum("flyteidl.admin.ExecutionMetadata_ExecutionMode", ExecutionMetadata_ExecutionMode_name, ExecutionMetadata_ExecutionMode_value) + proto.RegisterType((*ExecutionCreateRequest)(nil), "flyteidl.admin.ExecutionCreateRequest") + proto.RegisterType((*ExecutionRelaunchRequest)(nil), "flyteidl.admin.ExecutionRelaunchRequest") + proto.RegisterType((*ExecutionRecoverRequest)(nil), "flyteidl.admin.ExecutionRecoverRequest") + proto.RegisterType((*ExecutionCreateResponse)(nil), "flyteidl.admin.ExecutionCreateResponse") + proto.RegisterType((*WorkflowExecutionGetRequest)(nil), "flyteidl.admin.WorkflowExecutionGetRequest") + proto.RegisterType((*Execution)(nil), "flyteidl.admin.Execution") + proto.RegisterType((*ExecutionList)(nil), "flyteidl.admin.ExecutionList") + proto.RegisterType((*LiteralMapBlob)(nil), "flyteidl.admin.LiteralMapBlob") + proto.RegisterType((*AbortMetadata)(nil), "flyteidl.admin.AbortMetadata") + proto.RegisterType((*ExecutionClosure)(nil), "flyteidl.admin.ExecutionClosure") + proto.RegisterType((*SystemMetadata)(nil), "flyteidl.admin.SystemMetadata") + proto.RegisterType((*ExecutionMetadata)(nil), "flyteidl.admin.ExecutionMetadata") + proto.RegisterType((*NotificationList)(nil), "flyteidl.admin.NotificationList") + proto.RegisterType((*ExecutionSpec)(nil), "flyteidl.admin.ExecutionSpec") + proto.RegisterType((*ExecutionTerminateRequest)(nil), "flyteidl.admin.ExecutionTerminateRequest") + proto.RegisterType((*ExecutionTerminateResponse)(nil), "flyteidl.admin.ExecutionTerminateResponse") + proto.RegisterType((*WorkflowExecutionGetDataRequest)(nil), "flyteidl.admin.WorkflowExecutionGetDataRequest") + proto.RegisterType((*WorkflowExecutionGetDataResponse)(nil), "flyteidl.admin.WorkflowExecutionGetDataResponse") + proto.RegisterType((*ExecutionUpdateRequest)(nil), "flyteidl.admin.ExecutionUpdateRequest") + proto.RegisterType((*ExecutionStateChangeDetails)(nil), "flyteidl.admin.ExecutionStateChangeDetails") + proto.RegisterType((*ExecutionUpdateResponse)(nil), "flyteidl.admin.ExecutionUpdateResponse") + proto.RegisterType((*WorkflowExecutionGetMetricsRequest)(nil), "flyteidl.admin.WorkflowExecutionGetMetricsRequest") + proto.RegisterType((*WorkflowExecutionGetMetricsResponse)(nil), "flyteidl.admin.WorkflowExecutionGetMetricsResponse") +} + +func init() { proto.RegisterFile("flyteidl/admin/execution.proto", fileDescriptor_4e2785d91b3809ec) } + +var fileDescriptor_4e2785d91b3809ec = []byte{ + // 1827 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5b, 0x73, 0xdb, 0xc6, + 0xf5, 0x17, 0x29, 0x52, 0xa2, 0x0e, 0x2d, 0x8a, 0x5e, 0x29, 0x32, 0x2c, 0x3b, 0xb6, 0x82, 0xcc, + 0xff, 0x6f, 0x4f, 0x32, 0x25, 0x27, 0x4a, 0x35, 0x99, 0xb8, 0x75, 0x26, 0x14, 0x45, 0x47, 0x4a, + 0x75, 0x71, 0x57, 0x17, 0xe7, 0x32, 0x19, 0x74, 0x05, 0xac, 0x48, 0x34, 0x00, 0x16, 0xde, 0x5d, + 0x48, 0xf6, 0x37, 0xe8, 0xf4, 0xa9, 0x8f, 0xed, 0x37, 0xe8, 0x53, 0x1f, 0xfb, 0xd0, 0xe7, 0x7e, + 0xb0, 0x0e, 0x16, 0x0b, 0x10, 0x00, 0x29, 0x4b, 0x1e, 0xeb, 0x0d, 0xbb, 0xe7, 0x77, 0x2e, 0x7b, + 0xf6, 0xdc, 0x16, 0xf0, 0xe8, 0xdc, 0x7b, 0x2b, 0xa9, 0xeb, 0x78, 0x5d, 0xe2, 0xf8, 0x6e, 0xd0, + 0xa5, 0x6f, 0xa8, 0x1d, 0x49, 0x97, 0x05, 0x9d, 0x90, 0x33, 0xc9, 0x50, 0x2b, 0xa5, 0x77, 0x14, + 0x7d, 0xed, 0x49, 0x09, 0x6f, 0x7b, 0x91, 0x90, 0x94, 0x5b, 0x44, 0x08, 0x77, 0x18, 0xf8, 0x34, + 0x90, 0x09, 0xe3, 0xda, 0x83, 0x32, 0x90, 0xf9, 0x7e, 0x2a, 0x75, 0xed, 0x61, 0x46, 0xb4, 0x19, + 0xa7, 0x5d, 0xcf, 0x95, 0x94, 0x13, 0x4f, 0x68, 0xea, 0xc7, 0x45, 0x6a, 0xc9, 0xa4, 0xb5, 0x47, + 0x45, 0xb2, 0xeb, 0xd0, 0x40, 0xba, 0xe7, 0x2e, 0xe5, 0x13, 0x9a, 0x15, 0xdd, 0xa7, 0x92, 0xbb, + 0xb6, 0x98, 0xae, 0x59, 0x50, 0x3b, 0xe2, 0xae, 0x7c, 0x9b, 0x8a, 0x1e, 0x32, 0x36, 0xf4, 0x68, + 0x57, 0xad, 0xce, 0xa2, 0xf3, 0xae, 0x13, 0x71, 0x92, 0x53, 0xfd, 0xb8, 0x4c, 0x97, 0xae, 0x4f, + 0x85, 0x24, 0x7e, 0x78, 0x95, 0x80, 0x4b, 0x4e, 0xc2, 0x90, 0x72, 0xad, 0xde, 0xfc, 0x6f, 0x05, + 0x56, 0x07, 0xe9, 0x79, 0xfa, 0x9c, 0x12, 0x49, 0x31, 0x7d, 0x1d, 0x51, 0x21, 0x91, 0x01, 0xf3, + 0x21, 0x67, 0x7f, 0xa6, 0xb6, 0x34, 0x2a, 0xeb, 0x95, 0xa7, 0x0b, 0x38, 0x5d, 0xa2, 0x55, 0x98, + 0x73, 0x98, 0x4f, 0xdc, 0xc0, 0xa8, 0x2a, 0x82, 0x5e, 0x21, 0x04, 0xb5, 0x80, 0xf8, 0xd4, 0x98, + 0x55, 0xbb, 0xea, 0x1b, 0x7d, 0x01, 0x35, 0x11, 0x52, 0xdb, 0xa8, 0xad, 0x57, 0x9e, 0x36, 0x37, + 0x3e, 0xee, 0x14, 0xaf, 0xaf, 0x93, 0xe9, 0x3e, 0x0a, 0xa9, 0x8d, 0x15, 0x14, 0x7d, 0x01, 0x73, + 0x6e, 0x10, 0x46, 0x52, 0x18, 0x75, 0xc5, 0x74, 0x7f, 0xcc, 0x14, 0xfb, 0xa8, 0xb3, 0x97, 0xdc, + 0xce, 0x3e, 0x09, 0xb1, 0x06, 0x9a, 0xff, 0xa8, 0x80, 0x91, 0x89, 0xc2, 0xd4, 0x23, 0x51, 0x60, + 0x8f, 0xd2, 0x83, 0x3c, 0x83, 0xaa, 0xeb, 0xa8, 0x33, 0x34, 0x37, 0x3e, 0x2b, 0xc9, 0x7a, 0xc5, + 0xf8, 0xaf, 0xe7, 0x1e, 0xbb, 0xcc, 0x98, 0x77, 0xb3, 0xdb, 0xc3, 0x55, 0xd7, 0x99, 0x7a, 0xa4, + 0x27, 0xb0, 0xc4, 0x2e, 0x28, 0xbf, 0xe4, 0xae, 0xa4, 0x96, 0x4d, 0xec, 0x11, 0x55, 0xa7, 0x6b, + 0xe0, 0x56, 0xb6, 0xdd, 0x8f, 0x77, 0xbf, 0xaf, 0x35, 0xaa, 0xed, 0x59, 0xf3, 0x9f, 0x15, 0xb8, + 0x97, 0xb3, 0xcd, 0x8e, 0x41, 0xb7, 0x69, 0x5a, 0x35, 0x67, 0xda, 0x73, 0x68, 0xf8, 0x54, 0x12, + 0x87, 0x48, 0xa2, 0x4c, 0x6e, 0x6e, 0x7c, 0x72, 0xa5, 0xc7, 0xf7, 0x35, 0x10, 0x67, 0x2c, 0xe6, + 0x49, 0xce, 0xd2, 0x34, 0x18, 0x44, 0xc8, 0x02, 0x41, 0x3f, 0xc4, 0x52, 0xf3, 0x47, 0x78, 0x30, + 0x01, 0xf9, 0x8e, 0xca, 0x5b, 0x70, 0x82, 0xf9, 0xef, 0x0a, 0x2c, 0x64, 0xb4, 0x0f, 0x72, 0x67, + 0x1a, 0xa8, 0xd5, 0x9b, 0x07, 0xea, 0x33, 0x98, 0xb7, 0x3d, 0x26, 0x22, 0x4e, 0xb5, 0xb3, 0xd7, + 0xaf, 0xe4, 0xea, 0x27, 0x38, 0x9c, 0x32, 0x98, 0x7f, 0x82, 0xc5, 0x8c, 0xb8, 0xe7, 0x0a, 0x89, + 0xbe, 0x06, 0xc8, 0x0a, 0x8b, 0x30, 0x2a, 0xeb, 0xb3, 0xc5, 0xc8, 0x2f, 0xc9, 0xc3, 0x39, 0x30, + 0x5a, 0x81, 0xba, 0x64, 0xbf, 0xd2, 0x34, 0x1d, 0x93, 0x85, 0x49, 0xa1, 0x35, 0xce, 0x94, 0x2d, + 0x8f, 0x9d, 0xa1, 0xaf, 0x60, 0xee, 0x82, 0x78, 0x11, 0x15, 0xda, 0x45, 0x57, 0x27, 0xd6, 0x56, + 0xd5, 0xa8, 0xec, 0xcc, 0x60, 0x0d, 0x47, 0x08, 0x66, 0x23, 0xee, 0x26, 0xe2, 0x77, 0x66, 0x70, + 0xbc, 0xd8, 0x9a, 0x83, 0x9a, 0x8a, 0x99, 0x3e, 0x2c, 0xf6, 0xce, 0x18, 0x97, 0x69, 0x38, 0xc5, + 0xd6, 0xd8, 0x24, 0x12, 0x54, 0x57, 0x8d, 0x64, 0x81, 0x1e, 0xc2, 0x42, 0xc8, 0xdd, 0xc0, 0x76, + 0x43, 0xe2, 0x69, 0x3b, 0xc7, 0x1b, 0xe6, 0xdf, 0xe7, 0xa1, 0x5d, 0xf6, 0x15, 0xfa, 0x06, 0xe6, + 0x59, 0x24, 0x55, 0x21, 0x48, 0xec, 0x7d, 0x54, 0x76, 0x47, 0xf1, 0x7c, 0xda, 0xe8, 0x94, 0x09, + 0x6d, 0x42, 0x9d, 0x72, 0xce, 0xf8, 0xe4, 0x95, 0xaa, 0xd3, 0x66, 0xfa, 0x06, 0x31, 0x68, 0x67, + 0x06, 0x27, 0x68, 0xf4, 0x7f, 0xd0, 0x24, 0xf1, 0x81, 0xac, 0xe4, 0x14, 0x10, 0xdb, 0xaa, 0x45, + 0x83, 0x22, 0xf4, 0xd5, 0x81, 0x5e, 0x40, 0x2b, 0x81, 0x65, 0x09, 0x77, 0x67, 0x7a, 0xe4, 0x14, + 0xbc, 0xb3, 0x33, 0x83, 0x17, 0x49, 0xc1, 0x5d, 0xdf, 0x42, 0x33, 0x31, 0xd8, 0x52, 0x42, 0x16, + 0x6f, 0x76, 0x33, 0x90, 0xf0, 0x6c, 0xc7, 0x12, 0x5e, 0xc0, 0x92, 0xcd, 0xfc, 0x30, 0x92, 0xd4, + 0xb1, 0x74, 0xe1, 0x9c, 0xbd, 0x81, 0x14, 0xdc, 0x4a, 0xb9, 0x76, 0x15, 0x13, 0xfa, 0x3d, 0xd4, + 0xc3, 0x11, 0x11, 0x49, 0x35, 0x6b, 0x6d, 0xfc, 0xff, 0x75, 0x09, 0xd4, 0x79, 0x19, 0xa3, 0x71, + 0xc2, 0x14, 0xc7, 0xaf, 0x90, 0x84, 0xc7, 0x46, 0x10, 0xa9, 0x2b, 0xf7, 0x5a, 0x27, 0x69, 0x3f, + 0x9d, 0xb4, 0xfd, 0x74, 0x8e, 0xd3, 0xfe, 0x84, 0x17, 0x34, 0xba, 0x27, 0xd1, 0x26, 0x34, 0xd2, + 0xbe, 0x66, 0xcc, 0x69, 0xcb, 0xcb, 0x8c, 0xdb, 0x1a, 0x80, 0x33, 0x68, 0xac, 0xd1, 0x56, 0x45, + 0x4a, 0x69, 0x9c, 0xbf, 0x5e, 0xa3, 0x46, 0xf7, 0x54, 0xb2, 0x45, 0xa1, 0x93, 0xb2, 0x36, 0xae, + 0x67, 0xd5, 0xe8, 0x9e, 0x44, 0x5b, 0xb0, 0x18, 0xb0, 0xb8, 0x6e, 0xd8, 0x24, 0x49, 0xd5, 0x05, + 0x95, 0xaa, 0x0f, 0xcb, 0xd7, 0x7e, 0x90, 0x03, 0xe1, 0x22, 0x0b, 0x7a, 0x06, 0xcd, 0x4b, 0xed, + 0x4d, 0xcb, 0x75, 0x8c, 0xe6, 0xd4, 0xdb, 0xca, 0xd5, 0x27, 0x48, 0xd1, 0xbb, 0x0e, 0xfa, 0x05, + 0x56, 0x84, 0x24, 0x71, 0xe7, 0x19, 0x91, 0x60, 0x48, 0x2d, 0x87, 0x4a, 0xe2, 0x7a, 0xc2, 0x68, + 0x29, 0x21, 0x9f, 0x5f, 0x5d, 0xb7, 0x62, 0xa6, 0xbe, 0xe2, 0xd9, 0x4e, 0x58, 0x30, 0x12, 0x13, + 0x7b, 0x5b, 0x4b, 0xb0, 0xa8, 0xc3, 0x91, 0x53, 0x11, 0x79, 0xd2, 0xfc, 0x19, 0x5a, 0x47, 0x6f, + 0x85, 0xa4, 0x7e, 0x16, 0xb1, 0x9f, 0xc3, 0xdd, 0xac, 0xf8, 0x58, 0x7a, 0xde, 0xd2, 0xc9, 0xde, + 0xa6, 0xe3, 0x24, 0x56, 0xfb, 0x71, 0xde, 0xc7, 0x9d, 0x49, 0x84, 0xc4, 0x4e, 0x5b, 0xd5, 0x78, + 0xc3, 0xfc, 0x4f, 0x0d, 0xee, 0x4e, 0x34, 0x24, 0xd4, 0x87, 0x9a, 0xcf, 0x9c, 0xa4, 0x80, 0xb4, + 0x36, 0xba, 0xd7, 0x76, 0xb0, 0xdc, 0x0e, 0x73, 0x28, 0x56, 0xcc, 0xef, 0x2e, 0x38, 0xf1, 0x70, + 0x13, 0x50, 0x21, 0xdd, 0x60, 0xa8, 0x72, 0x65, 0x11, 0xa7, 0x4b, 0xf4, 0x1c, 0xee, 0x08, 0x7b, + 0x44, 0x9d, 0xc8, 0x4b, 0x82, 0xa3, 0x76, 0x6d, 0x70, 0x34, 0x33, 0x7c, 0x4f, 0xa2, 0x9f, 0xe0, + 0xa3, 0x90, 0x70, 0x1a, 0x48, 0x2b, 0x60, 0x0e, 0xb5, 0x32, 0x7f, 0xe8, 0x8c, 0x28, 0x27, 0xd5, + 0x01, 0x73, 0xe8, 0xb4, 0x8e, 0xb4, 0x9c, 0x08, 0x29, 0x90, 0xd1, 0xcf, 0xb0, 0xcc, 0xe9, 0x39, + 0xe5, 0x34, 0xb0, 0xf3, 0x92, 0xdb, 0xef, 0xdd, 0xef, 0x50, 0x26, 0x66, 0x2c, 0xfc, 0x3b, 0x58, + 0x12, 0xea, 0x9e, 0xc7, 0x05, 0xed, 0xee, 0xf4, 0xaa, 0x5b, 0x0c, 0x07, 0xdc, 0x12, 0x85, 0xb5, + 0x39, 0xcc, 0x75, 0xb6, 0xf8, 0x3e, 0x10, 0xc0, 0xdc, 0x7e, 0xef, 0xe0, 0xa4, 0xb7, 0xd7, 0x9e, + 0x41, 0x8b, 0xb0, 0x70, 0xd4, 0xdf, 0x19, 0x6c, 0x9f, 0xec, 0x0d, 0xb6, 0xdb, 0x95, 0x98, 0x74, + 0xf4, 0xe3, 0xd1, 0xf1, 0x60, 0xbf, 0x5d, 0x45, 0x77, 0xa0, 0x81, 0x07, 0x7b, 0xbd, 0x93, 0x83, + 0xfe, 0x4e, 0x7b, 0x16, 0x21, 0x68, 0xf5, 0x77, 0x76, 0xf7, 0xb6, 0xad, 0x57, 0x87, 0xf8, 0x0f, + 0x2f, 0xf6, 0x0e, 0x5f, 0xb5, 0x6b, 0x31, 0x33, 0x1e, 0xf4, 0x0f, 0x4f, 0x07, 0x78, 0xb0, 0xdd, + 0xae, 0x9b, 0xa7, 0xd0, 0xce, 0x27, 0x99, 0xea, 0xa2, 0x13, 0xd9, 0x59, 0x79, 0xef, 0xec, 0x34, + 0xff, 0xd6, 0xc8, 0x9d, 0xe0, 0x28, 0x69, 0xf4, 0xcd, 0x64, 0xa4, 0xb4, 0x42, 0x8f, 0x04, 0x57, + 0x74, 0xcf, 0x7c, 0xbe, 0x26, 0xe8, 0x97, 0x1e, 0x09, 0xd0, 0x66, 0x36, 0xcd, 0x56, 0x6f, 0x52, + 0x94, 0x35, 0xf8, 0x03, 0x27, 0x39, 0xb4, 0x53, 0xf6, 0x43, 0x7d, 0xfa, 0x80, 0x52, 0x76, 0x60, + 0xdc, 0x9f, 0x8a, 0xb5, 0xea, 0x13, 0x68, 0x3a, 0xae, 0x20, 0x67, 0x1e, 0xb5, 0x88, 0xe7, 0xa9, + 0xfa, 0xdc, 0x88, 0x1b, 0x90, 0xde, 0xec, 0x79, 0x1e, 0xea, 0xc0, 0x9c, 0x47, 0xce, 0xa8, 0x27, + 0x74, 0x11, 0x5e, 0x9d, 0xe8, 0xd3, 0x8a, 0x8a, 0x35, 0x0a, 0x3d, 0x87, 0x26, 0x09, 0x02, 0x26, + 0xb5, 0x69, 0x49, 0xf9, 0x7d, 0x30, 0xd1, 0x37, 0xc7, 0x10, 0x9c, 0xc7, 0xa3, 0x5d, 0x68, 0xa7, + 0xcf, 0x24, 0xcb, 0x66, 0x81, 0xa4, 0x6f, 0xa4, 0xea, 0xd2, 0x85, 0x50, 0x55, 0xbe, 0x3d, 0xd2, + 0xb0, 0x7e, 0x82, 0xc2, 0x4b, 0xa2, 0xb8, 0x81, 0xbe, 0x86, 0x05, 0x12, 0xc9, 0x91, 0xc5, 0x99, + 0x47, 0x75, 0x1e, 0x19, 0x13, 0x76, 0x44, 0x72, 0x84, 0x99, 0x47, 0xd5, 0xf5, 0x34, 0x88, 0x5e, + 0xa1, 0x7d, 0x40, 0xaf, 0x23, 0xe2, 0xc5, 0x46, 0xb0, 0x73, 0x4b, 0x50, 0x7e, 0xe1, 0xda, 0x54, + 0xa7, 0xcc, 0xe3, 0x92, 0x1d, 0x7f, 0x4c, 0x80, 0x87, 0xe7, 0x47, 0x09, 0x0c, 0xb7, 0x5f, 0x97, + 0x76, 0xe2, 0x47, 0x85, 0x4f, 0xde, 0x58, 0x21, 0xe1, 0xc4, 0xf3, 0xa8, 0xe7, 0x0a, 0xdf, 0x40, + 0xeb, 0x95, 0xa7, 0x75, 0xdc, 0xf2, 0xc9, 0x9b, 0x97, 0xe3, 0x5d, 0xf4, 0x03, 0xac, 0x72, 0x72, + 0x69, 0xe5, 0x66, 0x86, 0xd8, 0x09, 0xe7, 0xee, 0xd0, 0x58, 0x56, 0xba, 0x3f, 0x2d, 0xdb, 0x8f, + 0xc9, 0xe5, 0x61, 0x36, 0x2c, 0xf4, 0x15, 0x14, 0x2f, 0xf3, 0xc9, 0x4d, 0xf4, 0x12, 0xd0, 0xe4, + 0xeb, 0xd9, 0x58, 0x99, 0x1e, 0x7c, 0xba, 0xbe, 0xf7, 0x32, 0x20, 0xbe, 0x6b, 0x97, 0xb7, 0xd0, + 0xb7, 0xb0, 0xe8, 0x06, 0x92, 0x72, 0x1e, 0x85, 0xd2, 0x3d, 0xf3, 0xa8, 0xf1, 0xd1, 0x15, 0xc5, + 0x74, 0x8b, 0x31, 0xef, 0x34, 0x9e, 0x35, 0x71, 0x91, 0x61, 0xda, 0x5b, 0x6b, 0x75, 0xda, 0x5b, + 0x0b, 0x3d, 0x85, 0x1a, 0x0d, 0x2e, 0x84, 0x71, 0x4f, 0x69, 0x58, 0x99, 0xc8, 0x95, 0xe0, 0x42, + 0x60, 0x85, 0x88, 0xdf, 0x4d, 0x92, 0x0c, 0x85, 0x61, 0xac, 0xcf, 0xc6, 0xef, 0xa6, 0xf8, 0x7b, + 0xcb, 0x80, 0xd5, 0x7c, 0xd4, 0x5b, 0xb1, 0x70, 0xee, 0x3a, 0x54, 0x7c, 0x5f, 0x6b, 0xd4, 0xda, + 0x75, 0xd3, 0x87, 0xfb, 0x59, 0xb6, 0x1d, 0x53, 0xee, 0xbb, 0x41, 0xee, 0xa1, 0xfc, 0x21, 0xaf, + 0x8e, 0x6c, 0x58, 0xae, 0xe6, 0x86, 0x65, 0xf3, 0x21, 0xac, 0x4d, 0x53, 0x97, 0x3c, 0xc5, 0xcc, + 0x5f, 0xe0, 0xf1, 0xb4, 0xe7, 0x54, 0x7c, 0x93, 0xb7, 0xf1, 0xa4, 0xfa, 0x4b, 0x15, 0xd6, 0xaf, + 0x96, 0xaf, 0x9f, 0x83, 0x9b, 0xe5, 0xd9, 0xfc, 0x5e, 0xd9, 0xe3, 0x27, 0xdc, 0x4b, 0x87, 0xf2, + 0xf1, 0x48, 0xfe, 0x65, 0xa9, 0x18, 0xbe, 0x93, 0x2b, 0x2d, 0x85, 0xcf, 0xa0, 0x79, 0x1e, 0x79, + 0xde, 0x4d, 0x67, 0x5b, 0x0c, 0x31, 0x3a, 0x9b, 0x69, 0xef, 0x28, 0xde, 0xd4, 0xd8, 0xda, 0x75, + 0xcc, 0x4a, 0x55, 0x92, 0x1a, 0xc2, 0xfc, 0x6b, 0xfe, 0xef, 0xc8, 0x89, 0x1a, 0x01, 0x6f, 0xe3, + 0xd2, 0x7f, 0x0b, 0x75, 0x35, 0x79, 0x29, 0x27, 0xb4, 0x26, 0x1b, 0x6c, 0x71, 0x66, 0xc3, 0x09, + 0xd8, 0xfc, 0x57, 0x05, 0x1e, 0xbc, 0x63, 0x9a, 0x1b, 0x4b, 0xad, 0xbc, 0x87, 0x54, 0xf4, 0x3b, + 0x68, 0x32, 0xdb, 0x8e, 0x38, 0x4f, 0xa6, 0x9d, 0xea, 0xb5, 0xd3, 0x0e, 0xa4, 0xf0, 0x9e, 0x2c, + 0xce, 0x58, 0xb3, 0xe5, 0x47, 0xdd, 0xfd, 0xdc, 0xdf, 0x84, 0xd4, 0x79, 0x3a, 0x84, 0x2f, 0xc0, + 0x9c, 0x16, 0x62, 0xfb, 0xc9, 0xaf, 0xb1, 0x5b, 0x4a, 0x2c, 0x87, 0x86, 0x72, 0xa4, 0x4e, 0x54, + 0xc7, 0xc9, 0xc2, 0x3c, 0x80, 0x4f, 0xdf, 0xa9, 0x57, 0x47, 0xf7, 0x13, 0xa8, 0x89, 0x30, 0x6b, + 0xf4, 0xcb, 0xe5, 0xae, 0x12, 0x92, 0x00, 0x2b, 0xc0, 0x67, 0xdf, 0x40, 0xab, 0xe8, 0x56, 0xb4, + 0x02, 0xed, 0xc1, 0x0f, 0x83, 0xfe, 0xc9, 0xf1, 0xee, 0xe1, 0x81, 0xd5, 0xeb, 0x1f, 0xef, 0x9e, + 0x0e, 0xda, 0x33, 0x68, 0x15, 0x50, 0x6e, 0x17, 0xf7, 0x77, 0x76, 0x4f, 0xe3, 0xf9, 0x67, 0xeb, + 0xab, 0x9f, 0x36, 0x87, 0xae, 0x1c, 0x45, 0x67, 0x1d, 0x9b, 0xf9, 0x5d, 0xa5, 0x86, 0xf1, 0x61, + 0x37, 0xfb, 0x27, 0x38, 0xa4, 0x41, 0x37, 0x3c, 0xfb, 0xcd, 0x90, 0x75, 0x8b, 0x7f, 0x2f, 0xcf, + 0xe6, 0xd4, 0xcd, 0x7c, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xd1, 0xc1, 0xb5, 0x2f, + 0x15, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.validate.go new file mode 100644 index 0000000000..a0a80f8483 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.validate.go @@ -0,0 +1,2183 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/execution.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +// 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{} + + _ = core.WorkflowExecution_Phase(0) +) + +// define the regex for a UUID once up-front +var _execution_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 ExecutionCreateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionCreateRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionCreateRequestValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionCreateRequestValidationError is the validation error returned by +// ExecutionCreateRequest.Validate if the designated constraints aren't met. +type ExecutionCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionCreateRequestValidationError) ErrorName() string { + return "ExecutionCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionCreateRequestValidationError{} + +// Validate checks the field values on ExecutionRelaunchRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionRelaunchRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionRelaunchRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Name + + // no validation rules for OverwriteCache + + return nil +} + +// ExecutionRelaunchRequestValidationError is the validation error returned by +// ExecutionRelaunchRequest.Validate if the designated constraints aren't met. +type ExecutionRelaunchRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionRelaunchRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionRelaunchRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionRelaunchRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionRelaunchRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionRelaunchRequestValidationError) ErrorName() string { + return "ExecutionRelaunchRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionRelaunchRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionRelaunchRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionRelaunchRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionRelaunchRequestValidationError{} + +// Validate checks the field values on ExecutionRecoverRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionRecoverRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionRecoverRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionRecoverRequestValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionRecoverRequestValidationError is the validation error returned by +// ExecutionRecoverRequest.Validate if the designated constraints aren't met. +type ExecutionRecoverRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionRecoverRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionRecoverRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionRecoverRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionRecoverRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionRecoverRequestValidationError) ErrorName() string { + return "ExecutionRecoverRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionRecoverRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionRecoverRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionRecoverRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionRecoverRequestValidationError{} + +// Validate checks the field values on ExecutionCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionCreateResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionCreateResponseValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionCreateResponseValidationError is the validation error returned by +// ExecutionCreateResponse.Validate if the designated constraints aren't met. +type ExecutionCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionCreateResponseValidationError) ErrorName() string { + return "ExecutionCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionCreateResponseValidationError{} + +// Validate checks the field values on WorkflowExecutionGetRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionGetRequestValidationError is the validation error returned +// by WorkflowExecutionGetRequest.Validate if the designated constraints +// aren't met. +type WorkflowExecutionGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetRequestValidationError) ErrorName() string { + return "WorkflowExecutionGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetRequestValidationError{} + +// Validate checks the field values on Execution with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Execution) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionValidationError is the validation error returned by +// Execution.Validate if the designated constraints aren't met. +type ExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionValidationError) ErrorName() string { return "ExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionValidationError{} + +// Validate checks the field values on ExecutionList with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ExecutionList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetExecutions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionListValidationError{ + field: fmt.Sprintf("Executions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// ExecutionListValidationError is the validation error returned by +// ExecutionList.Validate if the designated constraints aren't met. +type ExecutionListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionListValidationError) ErrorName() string { return "ExecutionListValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionListValidationError{} + +// Validate checks the field values on LiteralMapBlob with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LiteralMapBlob) Validate() error { + if m == nil { + return nil + } + + switch m.Data.(type) { + + case *LiteralMapBlob_Values: + + if v, ok := interface{}(m.GetValues()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralMapBlobValidationError{ + field: "Values", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralMapBlob_Uri: + // no validation rules for Uri + + } + + return nil +} + +// LiteralMapBlobValidationError is the validation error returned by +// LiteralMapBlob.Validate if the designated constraints aren't met. +type LiteralMapBlobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralMapBlobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralMapBlobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralMapBlobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralMapBlobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralMapBlobValidationError) ErrorName() string { return "LiteralMapBlobValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralMapBlobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralMapBlob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralMapBlobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralMapBlobValidationError{} + +// Validate checks the field values on AbortMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AbortMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Cause + + // no validation rules for Principal + + return nil +} + +// AbortMetadataValidationError is the validation error returned by +// AbortMetadata.Validate if the designated constraints aren't met. +type AbortMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AbortMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AbortMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AbortMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AbortMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AbortMetadataValidationError) ErrorName() string { return "AbortMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e AbortMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAbortMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AbortMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AbortMetadataValidationError{} + +// Validate checks the field values on ExecutionClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ExecutionClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetComputedInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "ComputedInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Phase + + if v, ok := interface{}(m.GetStartedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "StartedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetNotifications() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: fmt.Sprintf("Notifications[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetWorkflowId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "WorkflowId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStateChangeDetails()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "StateChangeDetails", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.OutputResult.(type) { + + case *ExecutionClosure_Outputs: + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExecutionClosure_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExecutionClosure_AbortCause: + // no validation rules for AbortCause + + case *ExecutionClosure_AbortMetadata: + + if v, ok := interface{}(m.GetAbortMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "AbortMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExecutionClosure_OutputData: + + if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "OutputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ExecutionClosureValidationError is the validation error returned by +// ExecutionClosure.Validate if the designated constraints aren't met. +type ExecutionClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionClosureValidationError) ErrorName() string { return "ExecutionClosureValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionClosureValidationError{} + +// Validate checks the field values on SystemMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SystemMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ExecutionCluster + + // no validation rules for Namespace + + return nil +} + +// SystemMetadataValidationError is the validation error returned by +// SystemMetadata.Validate if the designated constraints aren't met. +type SystemMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SystemMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SystemMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SystemMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SystemMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SystemMetadataValidationError) ErrorName() string { return "SystemMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e SystemMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSystemMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SystemMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SystemMetadataValidationError{} + +// Validate checks the field values on ExecutionMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ExecutionMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Mode + + // no validation rules for Principal + + // no validation rules for Nesting + + if v, ok := interface{}(m.GetScheduledAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionMetadataValidationError{ + field: "ScheduledAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentNodeExecution()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionMetadataValidationError{ + field: "ParentNodeExecution", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetReferenceExecution()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionMetadataValidationError{ + field: "ReferenceExecution", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSystemMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionMetadataValidationError{ + field: "SystemMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionMetadataValidationError is the validation error returned by +// ExecutionMetadata.Validate if the designated constraints aren't met. +type ExecutionMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionMetadataValidationError) ErrorName() string { + return "ExecutionMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionMetadataValidationError{} + +// Validate checks the field values on NotificationList with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *NotificationList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNotifications() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationListValidationError{ + field: fmt.Sprintf("Notifications[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NotificationListValidationError is the validation error returned by +// NotificationList.Validate if the designated constraints aren't met. +type NotificationListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NotificationListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NotificationListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NotificationListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NotificationListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NotificationListValidationError) ErrorName() string { return "NotificationListValidationError" } + +// Error satisfies the builtin error interface +func (e NotificationListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNotificationList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NotificationListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NotificationListValidationError{} + +// Validate checks the field values on ExecutionSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ExecutionSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetLaunchPlan()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "LaunchPlan", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLabels()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Labels", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAnnotations()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Annotations", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecurityContext()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "SecurityContext", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAuthRole()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "AuthRole", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetQualityOfService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "QualityOfService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxParallelism + + if v, ok := interface{}(m.GetRawOutputDataConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "RawOutputDataConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClusterAssignment()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "ClusterAssignment", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInterruptible()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Interruptible", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OverwriteCache + + if v, ok := interface{}(m.GetEnvs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Envs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.NotificationOverrides.(type) { + + case *ExecutionSpec_Notifications: + + if v, ok := interface{}(m.GetNotifications()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Notifications", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExecutionSpec_DisableAll: + // no validation rules for DisableAll + + } + + return nil +} + +// ExecutionSpecValidationError is the validation error returned by +// ExecutionSpec.Validate if the designated constraints aren't met. +type ExecutionSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionSpecValidationError) ErrorName() string { return "ExecutionSpecValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionSpecValidationError{} + +// Validate checks the field values on ExecutionTerminateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionTerminateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionTerminateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Cause + + return nil +} + +// ExecutionTerminateRequestValidationError is the validation error returned by +// ExecutionTerminateRequest.Validate if the designated constraints aren't met. +type ExecutionTerminateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionTerminateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionTerminateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionTerminateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionTerminateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionTerminateRequestValidationError) ErrorName() string { + return "ExecutionTerminateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionTerminateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionTerminateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionTerminateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionTerminateRequestValidationError{} + +// Validate checks the field values on ExecutionTerminateResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionTerminateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ExecutionTerminateResponseValidationError is the validation error returned +// by ExecutionTerminateResponse.Validate if the designated constraints aren't met. +type ExecutionTerminateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionTerminateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionTerminateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionTerminateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionTerminateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionTerminateResponseValidationError) ErrorName() string { + return "ExecutionTerminateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionTerminateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionTerminateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionTerminateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionTerminateResponseValidationError{} + +// Validate checks the field values on WorkflowExecutionGetDataRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionGetDataRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetDataRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionGetDataRequestValidationError is the validation error +// returned by WorkflowExecutionGetDataRequest.Validate if the designated +// constraints aren't met. +type WorkflowExecutionGetDataRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetDataRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetDataRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetDataRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetDataRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetDataRequestValidationError) ErrorName() string { + return "WorkflowExecutionGetDataRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetDataRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetDataRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetDataRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetDataRequestValidationError{} + +// Validate checks the field values on WorkflowExecutionGetDataResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *WorkflowExecutionGetDataResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetDataResponseValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetDataResponseValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFullInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetDataResponseValidationError{ + field: "FullInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFullOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetDataResponseValidationError{ + field: "FullOutputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionGetDataResponseValidationError is the validation error +// returned by WorkflowExecutionGetDataResponse.Validate if the designated +// constraints aren't met. +type WorkflowExecutionGetDataResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetDataResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetDataResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetDataResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetDataResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetDataResponseValidationError) ErrorName() string { + return "WorkflowExecutionGetDataResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetDataResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetDataResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetDataResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetDataResponseValidationError{} + +// Validate checks the field values on ExecutionUpdateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionUpdateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionUpdateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for State + + return nil +} + +// ExecutionUpdateRequestValidationError is the validation error returned by +// ExecutionUpdateRequest.Validate if the designated constraints aren't met. +type ExecutionUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionUpdateRequestValidationError) ErrorName() string { + return "ExecutionUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionUpdateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionUpdateRequestValidationError{} + +// Validate checks the field values on ExecutionStateChangeDetails with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionStateChangeDetails) Validate() error { + if m == nil { + return nil + } + + // no validation rules for State + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionStateChangeDetailsValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Principal + + return nil +} + +// ExecutionStateChangeDetailsValidationError is the validation error returned +// by ExecutionStateChangeDetails.Validate if the designated constraints +// aren't met. +type ExecutionStateChangeDetailsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionStateChangeDetailsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionStateChangeDetailsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionStateChangeDetailsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionStateChangeDetailsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionStateChangeDetailsValidationError) ErrorName() string { + return "ExecutionStateChangeDetailsValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionStateChangeDetailsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionStateChangeDetails.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionStateChangeDetailsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionStateChangeDetailsValidationError{} + +// Validate checks the field values on ExecutionUpdateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ExecutionUpdateResponseValidationError is the validation error returned by +// ExecutionUpdateResponse.Validate if the designated constraints aren't met. +type ExecutionUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionUpdateResponseValidationError) ErrorName() string { + return "ExecutionUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionUpdateResponseValidationError{} + +// Validate checks the field values on WorkflowExecutionGetMetricsRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *WorkflowExecutionGetMetricsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetMetricsRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Depth + + return nil +} + +// WorkflowExecutionGetMetricsRequestValidationError is the validation error +// returned by WorkflowExecutionGetMetricsRequest.Validate if the designated +// constraints aren't met. +type WorkflowExecutionGetMetricsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetMetricsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetMetricsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetMetricsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetMetricsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetMetricsRequestValidationError) ErrorName() string { + return "WorkflowExecutionGetMetricsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetMetricsRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetMetricsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetMetricsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetMetricsRequestValidationError{} + +// Validate checks the field values on WorkflowExecutionGetMetricsResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *WorkflowExecutionGetMetricsResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSpan()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetMetricsResponseValidationError{ + field: "Span", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionGetMetricsResponseValidationError is the validation error +// returned by WorkflowExecutionGetMetricsResponse.Validate if the designated +// constraints aren't met. +type WorkflowExecutionGetMetricsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetMetricsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetMetricsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetMetricsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetMetricsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetMetricsResponseValidationError) ErrorName() string { + return "WorkflowExecutionGetMetricsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetMetricsResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetMetricsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetMetricsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetMetricsResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json new file mode 100644 index 0000000000..c689c48651 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go new file mode 100644 index 0000000000..c8280a86f1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go @@ -0,0 +1,926 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/launch_plan.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + 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 + +// By default any launch plan regardless of state can be used to launch a workflow execution. +// However, at most one version of a launch plan +// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +// group will be observed and trigger executions at a defined cadence. +type LaunchPlanState int32 + +const ( + LaunchPlanState_INACTIVE LaunchPlanState = 0 + LaunchPlanState_ACTIVE LaunchPlanState = 1 +) + +var LaunchPlanState_name = map[int32]string{ + 0: "INACTIVE", + 1: "ACTIVE", +} + +var LaunchPlanState_value = map[string]int32{ + "INACTIVE": 0, + "ACTIVE": 1, +} + +func (x LaunchPlanState) String() string { + return proto.EnumName(LaunchPlanState_name, int32(x)) +} + +func (LaunchPlanState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{0} +} + +// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required +// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. +type LaunchPlanCreateRequest struct { + // Uniquely identifies a launch plan entity. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanCreateRequest) Reset() { *m = LaunchPlanCreateRequest{} } +func (m *LaunchPlanCreateRequest) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanCreateRequest) ProtoMessage() {} +func (*LaunchPlanCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{0} +} + +func (m *LaunchPlanCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanCreateRequest.Unmarshal(m, b) +} +func (m *LaunchPlanCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanCreateRequest.Marshal(b, m, deterministic) +} +func (m *LaunchPlanCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanCreateRequest.Merge(m, src) +} +func (m *LaunchPlanCreateRequest) XXX_Size() int { + return xxx_messageInfo_LaunchPlanCreateRequest.Size(m) +} +func (m *LaunchPlanCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanCreateRequest proto.InternalMessageInfo + +func (m *LaunchPlanCreateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *LaunchPlanCreateRequest) GetSpec() *LaunchPlanSpec { + if m != nil { + return m.Spec + } + return nil +} + +type LaunchPlanCreateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanCreateResponse) Reset() { *m = LaunchPlanCreateResponse{} } +func (m *LaunchPlanCreateResponse) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanCreateResponse) ProtoMessage() {} +func (*LaunchPlanCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{1} +} + +func (m *LaunchPlanCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanCreateResponse.Unmarshal(m, b) +} +func (m *LaunchPlanCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanCreateResponse.Marshal(b, m, deterministic) +} +func (m *LaunchPlanCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanCreateResponse.Merge(m, src) +} +func (m *LaunchPlanCreateResponse) XXX_Size() int { + return xxx_messageInfo_LaunchPlanCreateResponse.Size(m) +} +func (m *LaunchPlanCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanCreateResponse proto.InternalMessageInfo + +// A LaunchPlan provides the capability to templatize workflow executions. +// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +// definition doesn't necessarily have a default value for said input. +type LaunchPlan struct { + // Uniquely identifies a launch plan entity. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Values computed by the flyte platform after launch plan registration. + Closure *LaunchPlanClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlan) Reset() { *m = LaunchPlan{} } +func (m *LaunchPlan) String() string { return proto.CompactTextString(m) } +func (*LaunchPlan) ProtoMessage() {} +func (*LaunchPlan) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{2} +} + +func (m *LaunchPlan) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlan.Unmarshal(m, b) +} +func (m *LaunchPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlan.Marshal(b, m, deterministic) +} +func (m *LaunchPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlan.Merge(m, src) +} +func (m *LaunchPlan) XXX_Size() int { + return xxx_messageInfo_LaunchPlan.Size(m) +} +func (m *LaunchPlan) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlan proto.InternalMessageInfo + +func (m *LaunchPlan) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *LaunchPlan) GetSpec() *LaunchPlanSpec { + if m != nil { + return m.Spec + } + return nil +} + +func (m *LaunchPlan) GetClosure() *LaunchPlanClosure { + if m != nil { + return m.Closure + } + return nil +} + +// Response object for list launch plan requests. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type LaunchPlanList struct { + LaunchPlans []*LaunchPlan `protobuf:"bytes,1,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanList) Reset() { *m = LaunchPlanList{} } +func (m *LaunchPlanList) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanList) ProtoMessage() {} +func (*LaunchPlanList) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{3} +} + +func (m *LaunchPlanList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanList.Unmarshal(m, b) +} +func (m *LaunchPlanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanList.Marshal(b, m, deterministic) +} +func (m *LaunchPlanList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanList.Merge(m, src) +} +func (m *LaunchPlanList) XXX_Size() int { + return xxx_messageInfo_LaunchPlanList.Size(m) +} +func (m *LaunchPlanList) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanList.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanList proto.InternalMessageInfo + +func (m *LaunchPlanList) GetLaunchPlans() []*LaunchPlan { + if m != nil { + return m.LaunchPlans + } + return nil +} + +func (m *LaunchPlanList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Defines permissions associated with executions created by this launch plan spec. +// Use either of these roles when they have permissions required by your workflow execution. +// Deprecated. +// +// Deprecated: Do not use. +type Auth struct { + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Auth) Reset() { *m = Auth{} } +func (m *Auth) String() string { return proto.CompactTextString(m) } +func (*Auth) ProtoMessage() {} +func (*Auth) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{4} +} + +func (m *Auth) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth.Unmarshal(m, b) +} +func (m *Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth.Marshal(b, m, deterministic) +} +func (m *Auth) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth.Merge(m, src) +} +func (m *Auth) XXX_Size() int { + return xxx_messageInfo_Auth.Size(m) +} +func (m *Auth) XXX_DiscardUnknown() { + xxx_messageInfo_Auth.DiscardUnknown(m) +} + +var xxx_messageInfo_Auth proto.InternalMessageInfo + +func (m *Auth) GetAssumableIamRole() string { + if m != nil { + return m.AssumableIamRole + } + return "" +} + +func (m *Auth) GetKubernetesServiceAccount() string { + if m != nil { + return m.KubernetesServiceAccount + } + return "" +} + +// User-provided launch plan definition and configuration values. +type LaunchPlanSpec struct { + // Reference to the Workflow template that the launch plan references + WorkflowId *core.Identifier `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + // Metadata for the Launch Plan + EntityMetadata *LaunchPlanMetadata `protobuf:"bytes,2,opt,name=entity_metadata,json=entityMetadata,proto3" json:"entity_metadata,omitempty"` + // Input values to be passed for the execution. + // These can be overriden when an execution is created with this launch plan. + DefaultInputs *core.ParameterMap `protobuf:"bytes,3,opt,name=default_inputs,json=defaultInputs,proto3" json:"default_inputs,omitempty"` + // Fixed, non-overridable inputs for the Launch Plan. + // These can not be overriden when an execution is created with this launch plan. + FixedInputs *core.LiteralMap `protobuf:"bytes,4,opt,name=fixed_inputs,json=fixedInputs,proto3" json:"fixed_inputs,omitempty"` + // String to indicate the role to use to execute the workflow underneath + Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` // Deprecated: Do not use. + // Custom labels to be applied to the execution resource. + Labels *Labels `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` + // Custom annotations to be applied to the execution resource. + Annotations *Annotations `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"` + // Indicates the permission associated with workflow executions triggered with this launch plan. + Auth *Auth `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"` // Deprecated: Do not use. + AuthRole *AuthRole `protobuf:"bytes,9,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` // Deprecated: Do not use. + // Indicates security context for permissions triggered with this launch plan + SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Indicates the runtime priority of the execution. + QualityOfService *core.QualityOfService `protobuf:"bytes,16,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,17,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` + // Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. + // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + // and parallelism/concurrency of MapTasks is independent from this. + MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + Interruptible *wrappers.BoolValue `protobuf:"bytes,19,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,20,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *Envs `protobuf:"bytes,21,opt,name=envs,proto3" json:"envs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanSpec) Reset() { *m = LaunchPlanSpec{} } +func (m *LaunchPlanSpec) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanSpec) ProtoMessage() {} +func (*LaunchPlanSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{5} +} + +func (m *LaunchPlanSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanSpec.Unmarshal(m, b) +} +func (m *LaunchPlanSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanSpec.Marshal(b, m, deterministic) +} +func (m *LaunchPlanSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanSpec.Merge(m, src) +} +func (m *LaunchPlanSpec) XXX_Size() int { + return xxx_messageInfo_LaunchPlanSpec.Size(m) +} +func (m *LaunchPlanSpec) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanSpec proto.InternalMessageInfo + +func (m *LaunchPlanSpec) GetWorkflowId() *core.Identifier { + if m != nil { + return m.WorkflowId + } + return nil +} + +func (m *LaunchPlanSpec) GetEntityMetadata() *LaunchPlanMetadata { + if m != nil { + return m.EntityMetadata + } + return nil +} + +func (m *LaunchPlanSpec) GetDefaultInputs() *core.ParameterMap { + if m != nil { + return m.DefaultInputs + } + return nil +} + +func (m *LaunchPlanSpec) GetFixedInputs() *core.LiteralMap { + if m != nil { + return m.FixedInputs + } + return nil +} + +// Deprecated: Do not use. +func (m *LaunchPlanSpec) GetRole() string { + if m != nil { + return m.Role + } + return "" +} + +func (m *LaunchPlanSpec) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + +func (m *LaunchPlanSpec) GetAnnotations() *Annotations { + if m != nil { + return m.Annotations + } + return nil +} + +// Deprecated: Do not use. +func (m *LaunchPlanSpec) GetAuth() *Auth { + if m != nil { + return m.Auth + } + return nil +} + +// Deprecated: Do not use. +func (m *LaunchPlanSpec) GetAuthRole() *AuthRole { + if m != nil { + return m.AuthRole + } + return nil +} + +func (m *LaunchPlanSpec) GetSecurityContext() *core.SecurityContext { + if m != nil { + return m.SecurityContext + } + return nil +} + +func (m *LaunchPlanSpec) GetQualityOfService() *core.QualityOfService { + if m != nil { + return m.QualityOfService + } + return nil +} + +func (m *LaunchPlanSpec) GetRawOutputDataConfig() *RawOutputDataConfig { + if m != nil { + return m.RawOutputDataConfig + } + return nil +} + +func (m *LaunchPlanSpec) GetMaxParallelism() int32 { + if m != nil { + return m.MaxParallelism + } + return 0 +} + +func (m *LaunchPlanSpec) GetInterruptible() *wrappers.BoolValue { + if m != nil { + return m.Interruptible + } + return nil +} + +func (m *LaunchPlanSpec) GetOverwriteCache() bool { + if m != nil { + return m.OverwriteCache + } + return false +} + +func (m *LaunchPlanSpec) GetEnvs() *Envs { + if m != nil { + return m.Envs + } + return nil +} + +// Values computed by the flyte platform after launch plan registration. +// These include expected_inputs required to be present in a CreateExecutionRequest +// to launch the reference workflow as well timestamp values associated with the launch plan. +type LaunchPlanClosure struct { + // Indicate the Launch plan state. + State LaunchPlanState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` + // Indicates the set of inputs expected when creating an execution with the Launch plan + ExpectedInputs *core.ParameterMap `protobuf:"bytes,2,opt,name=expected_inputs,json=expectedInputs,proto3" json:"expected_inputs,omitempty"` + // Indicates the set of outputs expected to be produced by creating an execution with the Launch plan + ExpectedOutputs *core.VariableMap `protobuf:"bytes,3,opt,name=expected_outputs,json=expectedOutputs,proto3" json:"expected_outputs,omitempty"` + // Time at which the launch plan was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the launch plan was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanClosure) Reset() { *m = LaunchPlanClosure{} } +func (m *LaunchPlanClosure) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanClosure) ProtoMessage() {} +func (*LaunchPlanClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{6} +} + +func (m *LaunchPlanClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanClosure.Unmarshal(m, b) +} +func (m *LaunchPlanClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanClosure.Marshal(b, m, deterministic) +} +func (m *LaunchPlanClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanClosure.Merge(m, src) +} +func (m *LaunchPlanClosure) XXX_Size() int { + return xxx_messageInfo_LaunchPlanClosure.Size(m) +} +func (m *LaunchPlanClosure) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanClosure proto.InternalMessageInfo + +func (m *LaunchPlanClosure) GetState() LaunchPlanState { + if m != nil { + return m.State + } + return LaunchPlanState_INACTIVE +} + +func (m *LaunchPlanClosure) GetExpectedInputs() *core.ParameterMap { + if m != nil { + return m.ExpectedInputs + } + return nil +} + +func (m *LaunchPlanClosure) GetExpectedOutputs() *core.VariableMap { + if m != nil { + return m.ExpectedOutputs + } + return nil +} + +func (m *LaunchPlanClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *LaunchPlanClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +// the reference workflow. +type LaunchPlanMetadata struct { + // Schedule to execute the Launch Plan + Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + // List of notifications based on Execution status transitions + Notifications []*Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanMetadata) Reset() { *m = LaunchPlanMetadata{} } +func (m *LaunchPlanMetadata) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanMetadata) ProtoMessage() {} +func (*LaunchPlanMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{7} +} + +func (m *LaunchPlanMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanMetadata.Unmarshal(m, b) +} +func (m *LaunchPlanMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanMetadata.Marshal(b, m, deterministic) +} +func (m *LaunchPlanMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanMetadata.Merge(m, src) +} +func (m *LaunchPlanMetadata) XXX_Size() int { + return xxx_messageInfo_LaunchPlanMetadata.Size(m) +} +func (m *LaunchPlanMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanMetadata proto.InternalMessageInfo + +func (m *LaunchPlanMetadata) GetSchedule() *Schedule { + if m != nil { + return m.Schedule + } + return nil +} + +func (m *LaunchPlanMetadata) GetNotifications() []*Notification { + if m != nil { + return m.Notifications + } + return nil +} + +// Request to set the referenced launch plan state to the configured value. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type LaunchPlanUpdateRequest struct { + // Identifier of launch plan for which to change state. + // +required. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Desired state to apply to the launch plan. + // +required. + State LaunchPlanState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanUpdateRequest) Reset() { *m = LaunchPlanUpdateRequest{} } +func (m *LaunchPlanUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanUpdateRequest) ProtoMessage() {} +func (*LaunchPlanUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{8} +} + +func (m *LaunchPlanUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanUpdateRequest.Unmarshal(m, b) +} +func (m *LaunchPlanUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanUpdateRequest.Marshal(b, m, deterministic) +} +func (m *LaunchPlanUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanUpdateRequest.Merge(m, src) +} +func (m *LaunchPlanUpdateRequest) XXX_Size() int { + return xxx_messageInfo_LaunchPlanUpdateRequest.Size(m) +} +func (m *LaunchPlanUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanUpdateRequest proto.InternalMessageInfo + +func (m *LaunchPlanUpdateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *LaunchPlanUpdateRequest) GetState() LaunchPlanState { + if m != nil { + return m.State + } + return LaunchPlanState_INACTIVE +} + +// Purposefully empty, may be populated in the future. +type LaunchPlanUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanUpdateResponse) Reset() { *m = LaunchPlanUpdateResponse{} } +func (m *LaunchPlanUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanUpdateResponse) ProtoMessage() {} +func (*LaunchPlanUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{9} +} + +func (m *LaunchPlanUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanUpdateResponse.Unmarshal(m, b) +} +func (m *LaunchPlanUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanUpdateResponse.Marshal(b, m, deterministic) +} +func (m *LaunchPlanUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanUpdateResponse.Merge(m, src) +} +func (m *LaunchPlanUpdateResponse) XXX_Size() int { + return xxx_messageInfo_LaunchPlanUpdateResponse.Size(m) +} +func (m *LaunchPlanUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanUpdateResponse proto.InternalMessageInfo + +// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type ActiveLaunchPlanRequest struct { + // +required. + Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ActiveLaunchPlanRequest) Reset() { *m = ActiveLaunchPlanRequest{} } +func (m *ActiveLaunchPlanRequest) String() string { return proto.CompactTextString(m) } +func (*ActiveLaunchPlanRequest) ProtoMessage() {} +func (*ActiveLaunchPlanRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{10} +} + +func (m *ActiveLaunchPlanRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ActiveLaunchPlanRequest.Unmarshal(m, b) +} +func (m *ActiveLaunchPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ActiveLaunchPlanRequest.Marshal(b, m, deterministic) +} +func (m *ActiveLaunchPlanRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActiveLaunchPlanRequest.Merge(m, src) +} +func (m *ActiveLaunchPlanRequest) XXX_Size() int { + return xxx_messageInfo_ActiveLaunchPlanRequest.Size(m) +} +func (m *ActiveLaunchPlanRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ActiveLaunchPlanRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ActiveLaunchPlanRequest proto.InternalMessageInfo + +func (m *ActiveLaunchPlanRequest) GetId() *NamedEntityIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Represents a request structure to list active launch plans within a project/domain. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type ActiveLaunchPlanListRequest struct { + // Name of the project that contains the identifiers. + // +required. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the identifiers belongs to within the project. + // +required. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Indicates the number of resources to be returned. + // +required. + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ActiveLaunchPlanListRequest) Reset() { *m = ActiveLaunchPlanListRequest{} } +func (m *ActiveLaunchPlanListRequest) String() string { return proto.CompactTextString(m) } +func (*ActiveLaunchPlanListRequest) ProtoMessage() {} +func (*ActiveLaunchPlanListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_368a863574f5e699, []int{11} +} + +func (m *ActiveLaunchPlanListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ActiveLaunchPlanListRequest.Unmarshal(m, b) +} +func (m *ActiveLaunchPlanListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ActiveLaunchPlanListRequest.Marshal(b, m, deterministic) +} +func (m *ActiveLaunchPlanListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActiveLaunchPlanListRequest.Merge(m, src) +} +func (m *ActiveLaunchPlanListRequest) XXX_Size() int { + return xxx_messageInfo_ActiveLaunchPlanListRequest.Size(m) +} +func (m *ActiveLaunchPlanListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ActiveLaunchPlanListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ActiveLaunchPlanListRequest proto.InternalMessageInfo + +func (m *ActiveLaunchPlanListRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ActiveLaunchPlanListRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *ActiveLaunchPlanListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ActiveLaunchPlanListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *ActiveLaunchPlanListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.admin.LaunchPlanState", LaunchPlanState_name, LaunchPlanState_value) + proto.RegisterType((*LaunchPlanCreateRequest)(nil), "flyteidl.admin.LaunchPlanCreateRequest") + proto.RegisterType((*LaunchPlanCreateResponse)(nil), "flyteidl.admin.LaunchPlanCreateResponse") + proto.RegisterType((*LaunchPlan)(nil), "flyteidl.admin.LaunchPlan") + proto.RegisterType((*LaunchPlanList)(nil), "flyteidl.admin.LaunchPlanList") + proto.RegisterType((*Auth)(nil), "flyteidl.admin.Auth") + proto.RegisterType((*LaunchPlanSpec)(nil), "flyteidl.admin.LaunchPlanSpec") + proto.RegisterType((*LaunchPlanClosure)(nil), "flyteidl.admin.LaunchPlanClosure") + proto.RegisterType((*LaunchPlanMetadata)(nil), "flyteidl.admin.LaunchPlanMetadata") + proto.RegisterType((*LaunchPlanUpdateRequest)(nil), "flyteidl.admin.LaunchPlanUpdateRequest") + proto.RegisterType((*LaunchPlanUpdateResponse)(nil), "flyteidl.admin.LaunchPlanUpdateResponse") + proto.RegisterType((*ActiveLaunchPlanRequest)(nil), "flyteidl.admin.ActiveLaunchPlanRequest") + proto.RegisterType((*ActiveLaunchPlanListRequest)(nil), "flyteidl.admin.ActiveLaunchPlanListRequest") +} + +func init() { proto.RegisterFile("flyteidl/admin/launch_plan.proto", fileDescriptor_368a863574f5e699) } + +var fileDescriptor_368a863574f5e699 = []byte{ + // 1151 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x6d, 0x6f, 0x1b, 0xc5, + 0x13, 0xff, 0xdb, 0x75, 0x9e, 0x26, 0x8d, 0x93, 0x6e, 0xfb, 0x4f, 0x0f, 0xb7, 0xb4, 0xc1, 0x08, + 0x11, 0xa0, 0xb5, 0xa5, 0x42, 0x85, 0x5a, 0x5a, 0x09, 0x27, 0xcd, 0x0b, 0x8b, 0x3e, 0x84, 0x4d, + 0xa9, 0x10, 0x6f, 0x4e, 0xeb, 0xbb, 0xb1, 0xbd, 0x74, 0xef, 0xf6, 0xba, 0xbb, 0x97, 0x38, 0xe2, + 0x3b, 0xf0, 0x39, 0x10, 0xdf, 0x81, 0x8f, 0xc0, 0x77, 0x42, 0xb7, 0xb7, 0x77, 0xb6, 0xef, 0x12, + 0x15, 0x90, 0x78, 0x65, 0xcf, 0xce, 0xef, 0x37, 0x3b, 0x33, 0x3b, 0x0f, 0x07, 0x7b, 0x63, 0x71, + 0x6e, 0x90, 0x87, 0xa2, 0xcf, 0xc2, 0x88, 0xc7, 0x7d, 0xc1, 0xd2, 0x38, 0x98, 0xfa, 0x89, 0x60, + 0x71, 0x2f, 0x51, 0xd2, 0x48, 0xd2, 0x2e, 0x10, 0x3d, 0x8b, 0xe8, 0x7c, 0x58, 0x32, 0x02, 0xa9, + 0xb0, 0x8f, 0x33, 0x0c, 0x52, 0xc3, 0xa5, 0x83, 0x77, 0x6e, 0x2f, 0xab, 0x05, 0x37, 0xa8, 0x98, + 0xd0, 0x4e, 0x7b, 0x67, 0x59, 0xcb, 0x43, 0x8c, 0x0d, 0x1f, 0x73, 0x54, 0x4e, 0x5f, 0x31, 0xce, + 0x63, 0x83, 0x6a, 0xcc, 0x02, 0xbc, 0xd8, 0xb8, 0xc6, 0x20, 0x55, 0xdc, 0x9c, 0xd7, 0xc8, 0x79, + 0x2c, 0x3a, 0x98, 0x62, 0x98, 0x8a, 0x82, 0x7c, 0xab, 0xa2, 0x0e, 0x64, 0x14, 0x95, 0x6e, 0xdf, + 0x9d, 0x48, 0x39, 0x11, 0xd8, 0xb7, 0xd2, 0x28, 0x1d, 0xf7, 0x0d, 0x8f, 0x50, 0x1b, 0x16, 0x25, + 0x85, 0xe7, 0x55, 0xc0, 0x99, 0x62, 0x49, 0x82, 0xca, 0x45, 0xd6, 0x9d, 0xc1, 0xcd, 0xe7, 0x36, + 0x77, 0xc7, 0x82, 0xc5, 0x87, 0x0a, 0x99, 0x41, 0x8a, 0xef, 0x52, 0xd4, 0x86, 0x7c, 0x06, 0x4d, + 0x1e, 0x7a, 0x8d, 0xbd, 0xc6, 0xfe, 0xe6, 0x83, 0x0f, 0x7a, 0x65, 0x3a, 0xb3, 0x10, 0x7a, 0xc3, + 0x32, 0x03, 0xb4, 0xc9, 0x43, 0xf2, 0x00, 0x5a, 0x3a, 0xc1, 0xc0, 0x6b, 0x5a, 0xf0, 0x9d, 0xde, + 0x72, 0xee, 0x7b, 0xf3, 0x1b, 0x4e, 0x12, 0x0c, 0xa8, 0xc5, 0x76, 0x3b, 0xe0, 0xd5, 0x6f, 0xd6, + 0x89, 0x8c, 0x35, 0x76, 0x7f, 0x6b, 0x00, 0xcc, 0x95, 0xff, 0xb1, 0x27, 0xe4, 0x1b, 0x58, 0x0b, + 0x84, 0xd4, 0xa9, 0x42, 0xef, 0x8a, 0xa5, 0x7d, 0x74, 0x39, 0xed, 0x30, 0x07, 0xd2, 0x82, 0xd1, + 0x45, 0x68, 0xcf, 0xb5, 0xcf, 0xb9, 0x36, 0xe4, 0x29, 0x5c, 0x5d, 0x28, 0x47, 0xed, 0x35, 0xf6, + 0xae, 0xec, 0x6f, 0x3e, 0xe8, 0x5c, 0x6e, 0x93, 0x6e, 0x8a, 0xf2, 0xbf, 0x26, 0x37, 0x60, 0xc5, + 0xc8, 0xb7, 0x18, 0xdb, 0x10, 0x36, 0x68, 0x2e, 0x74, 0x4f, 0xa1, 0x35, 0x48, 0xcd, 0x94, 0xdc, + 0x03, 0xc2, 0xb4, 0x4e, 0x23, 0x36, 0x12, 0xe8, 0x73, 0x16, 0xf9, 0x4a, 0x0a, 0xb4, 0xa9, 0xd9, + 0xa0, 0x3b, 0xa5, 0x66, 0xc8, 0x22, 0x2a, 0x05, 0x92, 0x27, 0xd0, 0x79, 0x9b, 0x8e, 0x50, 0xc5, + 0x68, 0x50, 0xfb, 0x1a, 0xd5, 0x29, 0x0f, 0xd0, 0x67, 0x41, 0x20, 0xd3, 0xd8, 0xb8, 0x0b, 0xbc, + 0x39, 0xe2, 0x24, 0x07, 0x0c, 0x72, 0xfd, 0xe3, 0xa6, 0xd7, 0xe8, 0xfe, 0xb1, 0xb6, 0x18, 0x5f, + 0x96, 0x34, 0xf2, 0x18, 0x36, 0xcf, 0xa4, 0x7a, 0x3b, 0x16, 0xf2, 0xcc, 0xff, 0x3b, 0xcf, 0x02, + 0x05, 0x7a, 0x18, 0x92, 0xef, 0x60, 0x3b, 0x3b, 0x37, 0xe7, 0x7e, 0x84, 0x86, 0x85, 0xcc, 0x30, + 0xf7, 0x52, 0xdd, 0xcb, 0xd3, 0xf3, 0xc2, 0x21, 0x69, 0x3b, 0xa7, 0x16, 0x32, 0x39, 0x80, 0x76, + 0x88, 0x63, 0x96, 0x0a, 0xe3, 0xf3, 0x38, 0x49, 0x8d, 0x76, 0xcf, 0x77, 0xab, 0xe2, 0xcb, 0x31, + 0x53, 0x2c, 0x42, 0x83, 0xea, 0x05, 0x4b, 0xe8, 0x96, 0xa3, 0x0c, 0x2d, 0x83, 0x3c, 0x81, 0xab, + 0x63, 0x3e, 0xc3, 0xb0, 0xb0, 0xd0, 0xba, 0x30, 0x9a, 0xe7, 0xf9, 0x38, 0xc8, 0xf8, 0x9b, 0x16, + 0xee, 0xd8, 0xbb, 0xd0, 0xb2, 0xf9, 0x5f, 0xc9, 0x32, 0x79, 0xd0, 0xf4, 0x1a, 0xd4, 0xca, 0xa4, + 0x07, 0xab, 0x82, 0x8d, 0x50, 0x68, 0x6f, 0xd5, 0xda, 0xdb, 0xad, 0x47, 0x97, 0x69, 0xa9, 0x43, + 0x91, 0xa7, 0xb0, 0xc9, 0xe2, 0x58, 0x1a, 0x96, 0x4d, 0x24, 0xed, 0xad, 0x55, 0xc3, 0xc8, 0x49, + 0x83, 0x39, 0x84, 0x2e, 0xe2, 0xc9, 0x3d, 0x68, 0xb1, 0xd4, 0x4c, 0xbd, 0x75, 0xcb, 0xbb, 0x51, + 0xe3, 0xa5, 0x66, 0x9a, 0x3b, 0x97, 0xa1, 0xc8, 0x23, 0xd8, 0xc8, 0x7e, 0xf3, 0xca, 0xd9, 0xb0, + 0x14, 0xef, 0x22, 0x4a, 0x56, 0x41, 0x96, 0xb6, 0xce, 0x9c, 0x44, 0x86, 0xb0, 0x53, 0x0c, 0x2f, + 0x3f, 0x90, 0xb1, 0xc1, 0x99, 0xf1, 0xa0, 0xda, 0x69, 0x36, 0x63, 0x27, 0x0e, 0x76, 0x98, 0xa3, + 0xe8, 0xb6, 0x5e, 0x3e, 0x20, 0x2f, 0x80, 0xbc, 0x4b, 0x99, 0xc8, 0x2c, 0xc9, 0x71, 0x51, 0x9a, + 0xde, 0x8e, 0x35, 0x76, 0xb7, 0x62, 0xec, 0xfb, 0x1c, 0xf8, 0x6a, 0xec, 0x0a, 0x94, 0xee, 0xbc, + 0xab, 0x9c, 0x90, 0x1f, 0x61, 0x57, 0xb1, 0x33, 0x5f, 0xa6, 0x26, 0x49, 0x8d, 0x9f, 0x95, 0x47, + 0xe6, 0xe0, 0x98, 0x4f, 0xbc, 0x6b, 0xd6, 0xe4, 0xc7, 0xd5, 0x08, 0x29, 0x3b, 0x7b, 0x65, 0xc1, + 0xcf, 0x98, 0x61, 0x87, 0x16, 0x4a, 0xaf, 0xab, 0xfa, 0x21, 0xf9, 0x14, 0xb6, 0x23, 0x36, 0xf3, + 0x13, 0xa6, 0x98, 0x10, 0x28, 0xb8, 0x8e, 0x3c, 0xb2, 0xd7, 0xd8, 0x5f, 0xa1, 0xed, 0x88, 0xcd, + 0x8e, 0xe7, 0xa7, 0xe4, 0x5b, 0xd8, 0xb2, 0x83, 0x5f, 0xa5, 0x89, 0xe1, 0x23, 0x81, 0xde, 0x75, + 0x7b, 0x73, 0xa7, 0x97, 0x8f, 0xe0, 0x5e, 0x31, 0x82, 0x7b, 0x07, 0x52, 0x8a, 0x37, 0x4c, 0xa4, + 0x48, 0x97, 0x09, 0xd9, 0x55, 0xf2, 0x14, 0xd5, 0x99, 0xe2, 0x06, 0xfd, 0x80, 0x05, 0x53, 0xf4, + 0x6e, 0xec, 0x35, 0xf6, 0xd7, 0x69, 0xbb, 0x3c, 0x3e, 0xcc, 0x4e, 0xc9, 0x3e, 0xb4, 0x30, 0x3e, + 0xd5, 0xde, 0xff, 0x2f, 0x7e, 0xf0, 0xa3, 0xf8, 0x54, 0x53, 0x8b, 0xe8, 0xfe, 0xd9, 0x84, 0x6b, + 0xb5, 0xe9, 0x45, 0x1e, 0xc2, 0x8a, 0x36, 0xcc, 0xe4, 0x83, 0xa3, 0xbd, 0x98, 0xef, 0xda, 0x98, + 0xcc, 0x60, 0x34, 0x47, 0x93, 0x67, 0xb0, 0x8d, 0xb3, 0x04, 0x03, 0x33, 0xef, 0x97, 0xe6, 0xfb, + 0x3b, 0xae, 0x5d, 0x70, 0x5c, 0xd3, 0x1c, 0xc1, 0x4e, 0x69, 0x25, 0x7f, 0xaf, 0xa2, 0x71, 0x3b, + 0x15, 0x33, 0x6f, 0x98, 0xe2, 0xd9, 0x38, 0xcb, 0xac, 0x94, 0x37, 0xe7, 0x0f, 0xa4, 0xc9, 0x23, + 0x80, 0xc0, 0x6e, 0x8d, 0xd0, 0x67, 0xc6, 0xf5, 0x6d, 0x3d, 0xd7, 0xaf, 0x8b, 0x7d, 0x48, 0x37, + 0x1c, 0x7a, 0x60, 0x32, 0x6a, 0x9a, 0x84, 0x05, 0x75, 0xe5, 0xfd, 0x54, 0x87, 0x1e, 0x98, 0xee, + 0xaf, 0x0d, 0x20, 0xf5, 0xd1, 0x44, 0xbe, 0x82, 0xf5, 0x62, 0x6d, 0xbb, 0x81, 0x58, 0x6b, 0xa9, + 0x13, 0xa7, 0xa7, 0x25, 0x92, 0x1c, 0xc0, 0x56, 0x2c, 0xb3, 0x29, 0x19, 0xb8, 0xc6, 0x6f, 0xda, + 0x55, 0x71, 0xbb, 0x4a, 0x7d, 0xb9, 0x00, 0xa2, 0xcb, 0x94, 0xee, 0x2f, 0x8b, 0x0b, 0xfc, 0x07, + 0xeb, 0xe7, 0xbf, 0x58, 0xe0, 0x65, 0x41, 0x34, 0xff, 0x49, 0x41, 0x2c, 0xef, 0xf0, 0xe2, 0x72, + 0xb7, 0xc3, 0x8f, 0xe1, 0xe6, 0x20, 0x30, 0xfc, 0x14, 0x17, 0x16, 0x9d, 0x73, 0xec, 0xe1, 0x82, + 0x63, 0x9f, 0xd4, 0x82, 0x65, 0x11, 0x86, 0x47, 0x76, 0xd2, 0x2f, 0x3b, 0xd9, 0xfd, 0xbd, 0x01, + 0xb7, 0xaa, 0x26, 0xb3, 0x8d, 0x5b, 0x98, 0xf5, 0x60, 0x2d, 0x51, 0xf2, 0x67, 0x0c, 0x8c, 0x5b, + 0x88, 0x85, 0x48, 0x76, 0x61, 0x35, 0x94, 0x11, 0xe3, 0xc5, 0x52, 0x75, 0x52, 0xb6, 0x6b, 0x05, + 0x8f, 0xb8, 0xb1, 0xf5, 0xb7, 0x45, 0x73, 0x61, 0xbe, 0x81, 0x5b, 0x0b, 0x1b, 0x98, 0xdc, 0x87, + 0x35, 0x2d, 0x95, 0xf1, 0x47, 0xe7, 0xae, 0x62, 0x6a, 0x6d, 0x77, 0x22, 0x95, 0xa1, 0xab, 0x19, + 0xe8, 0xe0, 0xfc, 0xf3, 0x2f, 0x60, 0xbb, 0x92, 0x34, 0x72, 0x15, 0xd6, 0x87, 0x2f, 0x07, 0x87, + 0xaf, 0x87, 0x6f, 0x8e, 0x76, 0xfe, 0x47, 0x00, 0x56, 0xdd, 0xff, 0xc6, 0xc1, 0xd7, 0x3f, 0x3d, + 0x9c, 0x70, 0x33, 0x4d, 0x47, 0xbd, 0x40, 0x46, 0x7d, 0x6b, 0x56, 0xaa, 0x49, 0xbf, 0xfc, 0xf2, + 0x9b, 0x60, 0xdc, 0x4f, 0x46, 0xf7, 0x27, 0xb2, 0xbf, 0xfc, 0x31, 0x38, 0x5a, 0xb5, 0xd5, 0xfa, + 0xe5, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xde, 0x54, 0x4c, 0x65, 0x10, 0x0b, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.validate.go new file mode 100644 index 0000000000..21c16360fe --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.validate.go @@ -0,0 +1,1146 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/launch_plan.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 _launch_plan_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 LaunchPlanCreateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanCreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanCreateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanCreateRequestValidationError is the validation error returned by +// LaunchPlanCreateRequest.Validate if the designated constraints aren't met. +type LaunchPlanCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanCreateRequestValidationError) ErrorName() string { + return "LaunchPlanCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanCreateRequestValidationError{} + +// Validate checks the field values on LaunchPlanCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanCreateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// LaunchPlanCreateResponseValidationError is the validation error returned by +// LaunchPlanCreateResponse.Validate if the designated constraints aren't met. +type LaunchPlanCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanCreateResponseValidationError) ErrorName() string { + return "LaunchPlanCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanCreateResponseValidationError{} + +// Validate checks the field values on LaunchPlan with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *LaunchPlan) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanValidationError is the validation error returned by +// LaunchPlan.Validate if the designated constraints aren't met. +type LaunchPlanValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanValidationError) ErrorName() string { return "LaunchPlanValidationError" } + +// Error satisfies the builtin error interface +func (e LaunchPlanValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlan.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanValidationError{} + +// Validate checks the field values on LaunchPlanList with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LaunchPlanList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetLaunchPlans() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanListValidationError{ + field: fmt.Sprintf("LaunchPlans[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// LaunchPlanListValidationError is the validation error returned by +// LaunchPlanList.Validate if the designated constraints aren't met. +type LaunchPlanListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanListValidationError) ErrorName() string { return "LaunchPlanListValidationError" } + +// Error satisfies the builtin error interface +func (e LaunchPlanListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanListValidationError{} + +// Validate checks the field values on Auth with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Auth) Validate() error { + if m == nil { + return nil + } + + // no validation rules for AssumableIamRole + + // no validation rules for KubernetesServiceAccount + + return nil +} + +// AuthValidationError is the validation error returned by Auth.Validate if the +// designated constraints aren't met. +type AuthValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AuthValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AuthValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AuthValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AuthValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AuthValidationError) ErrorName() string { return "AuthValidationError" } + +// Error satisfies the builtin error interface +func (e AuthValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAuth.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AuthValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AuthValidationError{} + +// Validate checks the field values on LaunchPlanSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LaunchPlanSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkflowId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "WorkflowId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetEntityMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "EntityMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDefaultInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "DefaultInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFixedInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "FixedInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Role + + if v, ok := interface{}(m.GetLabels()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Labels", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAnnotations()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Annotations", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAuth()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Auth", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAuthRole()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "AuthRole", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSecurityContext()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "SecurityContext", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetQualityOfService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "QualityOfService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRawOutputDataConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "RawOutputDataConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxParallelism + + if v, ok := interface{}(m.GetInterruptible()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Interruptible", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OverwriteCache + + if v, ok := interface{}(m.GetEnvs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Envs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanSpecValidationError is the validation error returned by +// LaunchPlanSpec.Validate if the designated constraints aren't met. +type LaunchPlanSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanSpecValidationError) ErrorName() string { return "LaunchPlanSpecValidationError" } + +// Error satisfies the builtin error interface +func (e LaunchPlanSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanSpecValidationError{} + +// Validate checks the field values on LaunchPlanClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LaunchPlanClosure) Validate() error { + if m == nil { + return nil + } + + // no validation rules for State + + if v, ok := interface{}(m.GetExpectedInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "ExpectedInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetExpectedOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "ExpectedOutputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanClosureValidationError is the validation error returned by +// LaunchPlanClosure.Validate if the designated constraints aren't met. +type LaunchPlanClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanClosureValidationError) ErrorName() string { + return "LaunchPlanClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanClosureValidationError{} + +// Validate checks the field values on LaunchPlanMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSchedule()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanMetadataValidationError{ + field: "Schedule", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetNotifications() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanMetadataValidationError{ + field: fmt.Sprintf("Notifications[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LaunchPlanMetadataValidationError is the validation error returned by +// LaunchPlanMetadata.Validate if the designated constraints aren't met. +type LaunchPlanMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanMetadataValidationError) ErrorName() string { + return "LaunchPlanMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanMetadataValidationError{} + +// Validate checks the field values on LaunchPlanUpdateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanUpdateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanUpdateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for State + + return nil +} + +// LaunchPlanUpdateRequestValidationError is the validation error returned by +// LaunchPlanUpdateRequest.Validate if the designated constraints aren't met. +type LaunchPlanUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanUpdateRequestValidationError) ErrorName() string { + return "LaunchPlanUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanUpdateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanUpdateRequestValidationError{} + +// Validate checks the field values on LaunchPlanUpdateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// LaunchPlanUpdateResponseValidationError is the validation error returned by +// LaunchPlanUpdateResponse.Validate if the designated constraints aren't met. +type LaunchPlanUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanUpdateResponseValidationError) ErrorName() string { + return "LaunchPlanUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanUpdateResponseValidationError{} + +// Validate checks the field values on ActiveLaunchPlanRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ActiveLaunchPlanRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ActiveLaunchPlanRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ActiveLaunchPlanRequestValidationError is the validation error returned by +// ActiveLaunchPlanRequest.Validate if the designated constraints aren't met. +type ActiveLaunchPlanRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ActiveLaunchPlanRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ActiveLaunchPlanRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ActiveLaunchPlanRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ActiveLaunchPlanRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ActiveLaunchPlanRequestValidationError) ErrorName() string { + return "ActiveLaunchPlanRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ActiveLaunchPlanRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sActiveLaunchPlanRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ActiveLaunchPlanRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ActiveLaunchPlanRequestValidationError{} + +// Validate checks the field values on ActiveLaunchPlanListRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ActiveLaunchPlanListRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Limit + + // no validation rules for Token + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ActiveLaunchPlanListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ActiveLaunchPlanListRequestValidationError is the validation error returned +// by ActiveLaunchPlanListRequest.Validate if the designated constraints +// aren't met. +type ActiveLaunchPlanListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ActiveLaunchPlanListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ActiveLaunchPlanListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ActiveLaunchPlanListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ActiveLaunchPlanListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ActiveLaunchPlanListRequestValidationError) ErrorName() string { + return "ActiveLaunchPlanListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ActiveLaunchPlanListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sActiveLaunchPlanListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ActiveLaunchPlanListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ActiveLaunchPlanListRequestValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json new file mode 100644 index 0000000000..6a473691ef --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/launch_plan.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go new file mode 100644 index 0000000000..1e5363d064 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go @@ -0,0 +1,993 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/matchable_resource.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + wrappers "github.com/golang/protobuf/ptypes/wrappers" + 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 + +// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes +// based on matching tags. +type MatchableResource int32 + +const ( + // Applies to customizable task resource requests and limits. + MatchableResource_TASK_RESOURCE MatchableResource = 0 + // Applies to configuring templated kubernetes cluster resources. + MatchableResource_CLUSTER_RESOURCE MatchableResource = 1 + // Configures task and dynamic task execution queue assignment. + MatchableResource_EXECUTION_QUEUE MatchableResource = 2 + // Configures the K8s cluster label to be used for execution to be run + MatchableResource_EXECUTION_CLUSTER_LABEL MatchableResource = 3 + // Configures default quality of service when undefined in an execution spec. + MatchableResource_QUALITY_OF_SERVICE_SPECIFICATION MatchableResource = 4 + // Selects configurable plugin implementation behavior for a given task type. + MatchableResource_PLUGIN_OVERRIDE MatchableResource = 5 + // Adds defaults for customizable workflow-execution specifications and overrides. + MatchableResource_WORKFLOW_EXECUTION_CONFIG MatchableResource = 6 + // Controls how to select an available cluster on which this execution should run. + MatchableResource_CLUSTER_ASSIGNMENT MatchableResource = 7 +) + +var MatchableResource_name = map[int32]string{ + 0: "TASK_RESOURCE", + 1: "CLUSTER_RESOURCE", + 2: "EXECUTION_QUEUE", + 3: "EXECUTION_CLUSTER_LABEL", + 4: "QUALITY_OF_SERVICE_SPECIFICATION", + 5: "PLUGIN_OVERRIDE", + 6: "WORKFLOW_EXECUTION_CONFIG", + 7: "CLUSTER_ASSIGNMENT", +} + +var MatchableResource_value = map[string]int32{ + "TASK_RESOURCE": 0, + "CLUSTER_RESOURCE": 1, + "EXECUTION_QUEUE": 2, + "EXECUTION_CLUSTER_LABEL": 3, + "QUALITY_OF_SERVICE_SPECIFICATION": 4, + "PLUGIN_OVERRIDE": 5, + "WORKFLOW_EXECUTION_CONFIG": 6, + "CLUSTER_ASSIGNMENT": 7, +} + +func (x MatchableResource) String() string { + return proto.EnumName(MatchableResource_name, int32(x)) +} + +func (MatchableResource) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{0} +} + +type PluginOverride_MissingPluginBehavior int32 + +const ( + // By default, if this plugin is not enabled for a Flyte deployment then execution will fail. + PluginOverride_FAIL PluginOverride_MissingPluginBehavior = 0 + // Uses the system-configured default implementation. + PluginOverride_USE_DEFAULT PluginOverride_MissingPluginBehavior = 1 +) + +var PluginOverride_MissingPluginBehavior_name = map[int32]string{ + 0: "FAIL", + 1: "USE_DEFAULT", +} + +var PluginOverride_MissingPluginBehavior_value = map[string]int32{ + "FAIL": 0, + "USE_DEFAULT": 1, +} + +func (x PluginOverride_MissingPluginBehavior) String() string { + return proto.EnumName(PluginOverride_MissingPluginBehavior_name, int32(x)) +} + +func (PluginOverride_MissingPluginBehavior) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{5, 0} +} + +// Defines a set of overridable task resource attributes set during task registration. +type TaskResourceSpec struct { + Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` + Gpu string `protobuf:"bytes,2,opt,name=gpu,proto3" json:"gpu,omitempty"` + Memory string `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"` + Storage string `protobuf:"bytes,4,opt,name=storage,proto3" json:"storage,omitempty"` + EphemeralStorage string `protobuf:"bytes,5,opt,name=ephemeral_storage,json=ephemeralStorage,proto3" json:"ephemeral_storage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskResourceSpec) Reset() { *m = TaskResourceSpec{} } +func (m *TaskResourceSpec) String() string { return proto.CompactTextString(m) } +func (*TaskResourceSpec) ProtoMessage() {} +func (*TaskResourceSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{0} +} + +func (m *TaskResourceSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskResourceSpec.Unmarshal(m, b) +} +func (m *TaskResourceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskResourceSpec.Marshal(b, m, deterministic) +} +func (m *TaskResourceSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskResourceSpec.Merge(m, src) +} +func (m *TaskResourceSpec) XXX_Size() int { + return xxx_messageInfo_TaskResourceSpec.Size(m) +} +func (m *TaskResourceSpec) XXX_DiscardUnknown() { + xxx_messageInfo_TaskResourceSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskResourceSpec proto.InternalMessageInfo + +func (m *TaskResourceSpec) GetCpu() string { + if m != nil { + return m.Cpu + } + return "" +} + +func (m *TaskResourceSpec) GetGpu() string { + if m != nil { + return m.Gpu + } + return "" +} + +func (m *TaskResourceSpec) GetMemory() string { + if m != nil { + return m.Memory + } + return "" +} + +func (m *TaskResourceSpec) GetStorage() string { + if m != nil { + return m.Storage + } + return "" +} + +func (m *TaskResourceSpec) GetEphemeralStorage() string { + if m != nil { + return m.EphemeralStorage + } + return "" +} + +// Defines task resource defaults and limits that will be applied at task registration. +type TaskResourceAttributes struct { + Defaults *TaskResourceSpec `protobuf:"bytes,1,opt,name=defaults,proto3" json:"defaults,omitempty"` + Limits *TaskResourceSpec `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskResourceAttributes) Reset() { *m = TaskResourceAttributes{} } +func (m *TaskResourceAttributes) String() string { return proto.CompactTextString(m) } +func (*TaskResourceAttributes) ProtoMessage() {} +func (*TaskResourceAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{1} +} + +func (m *TaskResourceAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskResourceAttributes.Unmarshal(m, b) +} +func (m *TaskResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskResourceAttributes.Marshal(b, m, deterministic) +} +func (m *TaskResourceAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskResourceAttributes.Merge(m, src) +} +func (m *TaskResourceAttributes) XXX_Size() int { + return xxx_messageInfo_TaskResourceAttributes.Size(m) +} +func (m *TaskResourceAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_TaskResourceAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskResourceAttributes proto.InternalMessageInfo + +func (m *TaskResourceAttributes) GetDefaults() *TaskResourceSpec { + if m != nil { + return m.Defaults + } + return nil +} + +func (m *TaskResourceAttributes) GetLimits() *TaskResourceSpec { + if m != nil { + return m.Limits + } + return nil +} + +type ClusterResourceAttributes struct { + // Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). + // Map keys are the *case-sensitive* names of variables in templatized resource files. + // Map values should be the custom values which get substituted during resource creation. + Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClusterResourceAttributes) Reset() { *m = ClusterResourceAttributes{} } +func (m *ClusterResourceAttributes) String() string { return proto.CompactTextString(m) } +func (*ClusterResourceAttributes) ProtoMessage() {} +func (*ClusterResourceAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{2} +} + +func (m *ClusterResourceAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClusterResourceAttributes.Unmarshal(m, b) +} +func (m *ClusterResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClusterResourceAttributes.Marshal(b, m, deterministic) +} +func (m *ClusterResourceAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClusterResourceAttributes.Merge(m, src) +} +func (m *ClusterResourceAttributes) XXX_Size() int { + return xxx_messageInfo_ClusterResourceAttributes.Size(m) +} +func (m *ClusterResourceAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_ClusterResourceAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_ClusterResourceAttributes proto.InternalMessageInfo + +func (m *ClusterResourceAttributes) GetAttributes() map[string]string { + if m != nil { + return m.Attributes + } + return nil +} + +type ExecutionQueueAttributes struct { + // Tags used for assigning execution queues for tasks defined within this project. + Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionQueueAttributes) Reset() { *m = ExecutionQueueAttributes{} } +func (m *ExecutionQueueAttributes) String() string { return proto.CompactTextString(m) } +func (*ExecutionQueueAttributes) ProtoMessage() {} +func (*ExecutionQueueAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{3} +} + +func (m *ExecutionQueueAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionQueueAttributes.Unmarshal(m, b) +} +func (m *ExecutionQueueAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionQueueAttributes.Marshal(b, m, deterministic) +} +func (m *ExecutionQueueAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionQueueAttributes.Merge(m, src) +} +func (m *ExecutionQueueAttributes) XXX_Size() int { + return xxx_messageInfo_ExecutionQueueAttributes.Size(m) +} +func (m *ExecutionQueueAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionQueueAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionQueueAttributes proto.InternalMessageInfo + +func (m *ExecutionQueueAttributes) GetTags() []string { + if m != nil { + return m.Tags + } + return nil +} + +type ExecutionClusterLabel struct { + // Label value to determine where the execution will be run + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionClusterLabel) Reset() { *m = ExecutionClusterLabel{} } +func (m *ExecutionClusterLabel) String() string { return proto.CompactTextString(m) } +func (*ExecutionClusterLabel) ProtoMessage() {} +func (*ExecutionClusterLabel) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{4} +} + +func (m *ExecutionClusterLabel) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionClusterLabel.Unmarshal(m, b) +} +func (m *ExecutionClusterLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionClusterLabel.Marshal(b, m, deterministic) +} +func (m *ExecutionClusterLabel) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionClusterLabel.Merge(m, src) +} +func (m *ExecutionClusterLabel) XXX_Size() int { + return xxx_messageInfo_ExecutionClusterLabel.Size(m) +} +func (m *ExecutionClusterLabel) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionClusterLabel.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionClusterLabel proto.InternalMessageInfo + +func (m *ExecutionClusterLabel) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. +// In addition to an override implementation a selection of fallbacks can be provided or other modes +// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. +type PluginOverride struct { + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. + PluginId []string `protobuf:"bytes,2,rep,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + // Defines the behavior when no plugin from the plugin_id list is not found. + MissingPluginBehavior PluginOverride_MissingPluginBehavior `protobuf:"varint,4,opt,name=missing_plugin_behavior,json=missingPluginBehavior,proto3,enum=flyteidl.admin.PluginOverride_MissingPluginBehavior" json:"missing_plugin_behavior,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PluginOverride) Reset() { *m = PluginOverride{} } +func (m *PluginOverride) String() string { return proto.CompactTextString(m) } +func (*PluginOverride) ProtoMessage() {} +func (*PluginOverride) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{5} +} + +func (m *PluginOverride) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PluginOverride.Unmarshal(m, b) +} +func (m *PluginOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PluginOverride.Marshal(b, m, deterministic) +} +func (m *PluginOverride) XXX_Merge(src proto.Message) { + xxx_messageInfo_PluginOverride.Merge(m, src) +} +func (m *PluginOverride) XXX_Size() int { + return xxx_messageInfo_PluginOverride.Size(m) +} +func (m *PluginOverride) XXX_DiscardUnknown() { + xxx_messageInfo_PluginOverride.DiscardUnknown(m) +} + +var xxx_messageInfo_PluginOverride proto.InternalMessageInfo + +func (m *PluginOverride) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *PluginOverride) GetPluginId() []string { + if m != nil { + return m.PluginId + } + return nil +} + +func (m *PluginOverride) GetMissingPluginBehavior() PluginOverride_MissingPluginBehavior { + if m != nil { + return m.MissingPluginBehavior + } + return PluginOverride_FAIL +} + +type PluginOverrides struct { + Overrides []*PluginOverride `protobuf:"bytes,1,rep,name=overrides,proto3" json:"overrides,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PluginOverrides) Reset() { *m = PluginOverrides{} } +func (m *PluginOverrides) String() string { return proto.CompactTextString(m) } +func (*PluginOverrides) ProtoMessage() {} +func (*PluginOverrides) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{6} +} + +func (m *PluginOverrides) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PluginOverrides.Unmarshal(m, b) +} +func (m *PluginOverrides) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PluginOverrides.Marshal(b, m, deterministic) +} +func (m *PluginOverrides) XXX_Merge(src proto.Message) { + xxx_messageInfo_PluginOverrides.Merge(m, src) +} +func (m *PluginOverrides) XXX_Size() int { + return xxx_messageInfo_PluginOverrides.Size(m) +} +func (m *PluginOverrides) XXX_DiscardUnknown() { + xxx_messageInfo_PluginOverrides.DiscardUnknown(m) +} + +var xxx_messageInfo_PluginOverrides proto.InternalMessageInfo + +func (m *PluginOverrides) GetOverrides() []*PluginOverride { + if m != nil { + return m.Overrides + } + return nil +} + +// Adds defaults for customizable workflow-execution specifications and overrides. +type WorkflowExecutionConfig struct { + // Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. + MaxParallelism int32 `protobuf:"varint,1,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` + // Indicates security context permissions for executions triggered with this matchable attribute. + SecurityContext *core.SecurityContext `protobuf:"bytes,2,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,3,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` + // Custom labels to be applied to a triggered execution resource. + Labels *Labels `protobuf:"bytes,4,opt,name=labels,proto3" json:"labels,omitempty"` + // Custom annotations to be applied to a triggered execution resource. + Annotations *Annotations `protobuf:"bytes,5,opt,name=annotations,proto3" json:"annotations,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + Interruptible *wrappers.BoolValue `protobuf:"bytes,6,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,7,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *Envs `protobuf:"bytes,8,opt,name=envs,proto3" json:"envs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionConfig) Reset() { *m = WorkflowExecutionConfig{} } +func (m *WorkflowExecutionConfig) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionConfig) ProtoMessage() {} +func (*WorkflowExecutionConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{7} +} + +func (m *WorkflowExecutionConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionConfig.Unmarshal(m, b) +} +func (m *WorkflowExecutionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionConfig.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionConfig.Merge(m, src) +} +func (m *WorkflowExecutionConfig) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionConfig.Size(m) +} +func (m *WorkflowExecutionConfig) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionConfig proto.InternalMessageInfo + +func (m *WorkflowExecutionConfig) GetMaxParallelism() int32 { + if m != nil { + return m.MaxParallelism + } + return 0 +} + +func (m *WorkflowExecutionConfig) GetSecurityContext() *core.SecurityContext { + if m != nil { + return m.SecurityContext + } + return nil +} + +func (m *WorkflowExecutionConfig) GetRawOutputDataConfig() *RawOutputDataConfig { + if m != nil { + return m.RawOutputDataConfig + } + return nil +} + +func (m *WorkflowExecutionConfig) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + +func (m *WorkflowExecutionConfig) GetAnnotations() *Annotations { + if m != nil { + return m.Annotations + } + return nil +} + +func (m *WorkflowExecutionConfig) GetInterruptible() *wrappers.BoolValue { + if m != nil { + return m.Interruptible + } + return nil +} + +func (m *WorkflowExecutionConfig) GetOverwriteCache() bool { + if m != nil { + return m.OverwriteCache + } + return false +} + +func (m *WorkflowExecutionConfig) GetEnvs() *Envs { + if m != nil { + return m.Envs + } + return nil +} + +// Generic container for encapsulating all types of the above attributes messages. +type MatchingAttributes struct { + // Types that are valid to be assigned to Target: + // *MatchingAttributes_TaskResourceAttributes + // *MatchingAttributes_ClusterResourceAttributes + // *MatchingAttributes_ExecutionQueueAttributes + // *MatchingAttributes_ExecutionClusterLabel + // *MatchingAttributes_QualityOfService + // *MatchingAttributes_PluginOverrides + // *MatchingAttributes_WorkflowExecutionConfig + // *MatchingAttributes_ClusterAssignment + Target isMatchingAttributes_Target `protobuf_oneof:"target"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MatchingAttributes) Reset() { *m = MatchingAttributes{} } +func (m *MatchingAttributes) String() string { return proto.CompactTextString(m) } +func (*MatchingAttributes) ProtoMessage() {} +func (*MatchingAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{8} +} + +func (m *MatchingAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MatchingAttributes.Unmarshal(m, b) +} +func (m *MatchingAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MatchingAttributes.Marshal(b, m, deterministic) +} +func (m *MatchingAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchingAttributes.Merge(m, src) +} +func (m *MatchingAttributes) XXX_Size() int { + return xxx_messageInfo_MatchingAttributes.Size(m) +} +func (m *MatchingAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_MatchingAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchingAttributes proto.InternalMessageInfo + +type isMatchingAttributes_Target interface { + isMatchingAttributes_Target() +} + +type MatchingAttributes_TaskResourceAttributes struct { + TaskResourceAttributes *TaskResourceAttributes `protobuf:"bytes,1,opt,name=task_resource_attributes,json=taskResourceAttributes,proto3,oneof"` +} + +type MatchingAttributes_ClusterResourceAttributes struct { + ClusterResourceAttributes *ClusterResourceAttributes `protobuf:"bytes,2,opt,name=cluster_resource_attributes,json=clusterResourceAttributes,proto3,oneof"` +} + +type MatchingAttributes_ExecutionQueueAttributes struct { + ExecutionQueueAttributes *ExecutionQueueAttributes `protobuf:"bytes,3,opt,name=execution_queue_attributes,json=executionQueueAttributes,proto3,oneof"` +} + +type MatchingAttributes_ExecutionClusterLabel struct { + ExecutionClusterLabel *ExecutionClusterLabel `protobuf:"bytes,4,opt,name=execution_cluster_label,json=executionClusterLabel,proto3,oneof"` +} + +type MatchingAttributes_QualityOfService struct { + QualityOfService *core.QualityOfService `protobuf:"bytes,5,opt,name=quality_of_service,json=qualityOfService,proto3,oneof"` +} + +type MatchingAttributes_PluginOverrides struct { + PluginOverrides *PluginOverrides `protobuf:"bytes,6,opt,name=plugin_overrides,json=pluginOverrides,proto3,oneof"` +} + +type MatchingAttributes_WorkflowExecutionConfig struct { + WorkflowExecutionConfig *WorkflowExecutionConfig `protobuf:"bytes,7,opt,name=workflow_execution_config,json=workflowExecutionConfig,proto3,oneof"` +} + +type MatchingAttributes_ClusterAssignment struct { + ClusterAssignment *ClusterAssignment `protobuf:"bytes,8,opt,name=cluster_assignment,json=clusterAssignment,proto3,oneof"` +} + +func (*MatchingAttributes_TaskResourceAttributes) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ClusterResourceAttributes) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ExecutionQueueAttributes) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ExecutionClusterLabel) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_QualityOfService) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_PluginOverrides) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_WorkflowExecutionConfig) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ClusterAssignment) isMatchingAttributes_Target() {} + +func (m *MatchingAttributes) GetTarget() isMatchingAttributes_Target { + if m != nil { + return m.Target + } + return nil +} + +func (m *MatchingAttributes) GetTaskResourceAttributes() *TaskResourceAttributes { + if x, ok := m.GetTarget().(*MatchingAttributes_TaskResourceAttributes); ok { + return x.TaskResourceAttributes + } + return nil +} + +func (m *MatchingAttributes) GetClusterResourceAttributes() *ClusterResourceAttributes { + if x, ok := m.GetTarget().(*MatchingAttributes_ClusterResourceAttributes); ok { + return x.ClusterResourceAttributes + } + return nil +} + +func (m *MatchingAttributes) GetExecutionQueueAttributes() *ExecutionQueueAttributes { + if x, ok := m.GetTarget().(*MatchingAttributes_ExecutionQueueAttributes); ok { + return x.ExecutionQueueAttributes + } + return nil +} + +func (m *MatchingAttributes) GetExecutionClusterLabel() *ExecutionClusterLabel { + if x, ok := m.GetTarget().(*MatchingAttributes_ExecutionClusterLabel); ok { + return x.ExecutionClusterLabel + } + return nil +} + +func (m *MatchingAttributes) GetQualityOfService() *core.QualityOfService { + if x, ok := m.GetTarget().(*MatchingAttributes_QualityOfService); ok { + return x.QualityOfService + } + return nil +} + +func (m *MatchingAttributes) GetPluginOverrides() *PluginOverrides { + if x, ok := m.GetTarget().(*MatchingAttributes_PluginOverrides); ok { + return x.PluginOverrides + } + return nil +} + +func (m *MatchingAttributes) GetWorkflowExecutionConfig() *WorkflowExecutionConfig { + if x, ok := m.GetTarget().(*MatchingAttributes_WorkflowExecutionConfig); ok { + return x.WorkflowExecutionConfig + } + return nil +} + +func (m *MatchingAttributes) GetClusterAssignment() *ClusterAssignment { + if x, ok := m.GetTarget().(*MatchingAttributes_ClusterAssignment); ok { + return x.ClusterAssignment + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*MatchingAttributes) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*MatchingAttributes_TaskResourceAttributes)(nil), + (*MatchingAttributes_ClusterResourceAttributes)(nil), + (*MatchingAttributes_ExecutionQueueAttributes)(nil), + (*MatchingAttributes_ExecutionClusterLabel)(nil), + (*MatchingAttributes_QualityOfService)(nil), + (*MatchingAttributes_PluginOverrides)(nil), + (*MatchingAttributes_WorkflowExecutionConfig)(nil), + (*MatchingAttributes_ClusterAssignment)(nil), + } +} + +// Represents a custom set of attributes applied for either a domain; a domain and project; or +// domain, project and workflow name. +// These are used to override system level defaults for kubernetes cluster resource management, +// default execution values, and more all across different levels of specificity. +type MatchableAttributesConfiguration struct { + Attributes *MatchingAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` + Workflow string `protobuf:"bytes,4,opt,name=workflow,proto3" json:"workflow,omitempty"` + LaunchPlan string `protobuf:"bytes,5,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MatchableAttributesConfiguration) Reset() { *m = MatchableAttributesConfiguration{} } +func (m *MatchableAttributesConfiguration) String() string { return proto.CompactTextString(m) } +func (*MatchableAttributesConfiguration) ProtoMessage() {} +func (*MatchableAttributesConfiguration) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{9} +} + +func (m *MatchableAttributesConfiguration) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MatchableAttributesConfiguration.Unmarshal(m, b) +} +func (m *MatchableAttributesConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MatchableAttributesConfiguration.Marshal(b, m, deterministic) +} +func (m *MatchableAttributesConfiguration) XXX_Merge(src proto.Message) { + xxx_messageInfo_MatchableAttributesConfiguration.Merge(m, src) +} +func (m *MatchableAttributesConfiguration) XXX_Size() int { + return xxx_messageInfo_MatchableAttributesConfiguration.Size(m) +} +func (m *MatchableAttributesConfiguration) XXX_DiscardUnknown() { + xxx_messageInfo_MatchableAttributesConfiguration.DiscardUnknown(m) +} + +var xxx_messageInfo_MatchableAttributesConfiguration proto.InternalMessageInfo + +func (m *MatchableAttributesConfiguration) GetAttributes() *MatchingAttributes { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *MatchableAttributesConfiguration) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *MatchableAttributesConfiguration) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *MatchableAttributesConfiguration) GetWorkflow() string { + if m != nil { + return m.Workflow + } + return "" +} + +func (m *MatchableAttributesConfiguration) GetLaunchPlan() string { + if m != nil { + return m.LaunchPlan + } + return "" +} + +// Request all matching resource attributes for a resource type. +// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +type ListMatchableAttributesRequest struct { + // +required + ResourceType MatchableResource `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListMatchableAttributesRequest) Reset() { *m = ListMatchableAttributesRequest{} } +func (m *ListMatchableAttributesRequest) String() string { return proto.CompactTextString(m) } +func (*ListMatchableAttributesRequest) ProtoMessage() {} +func (*ListMatchableAttributesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{10} +} + +func (m *ListMatchableAttributesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListMatchableAttributesRequest.Unmarshal(m, b) +} +func (m *ListMatchableAttributesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListMatchableAttributesRequest.Marshal(b, m, deterministic) +} +func (m *ListMatchableAttributesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListMatchableAttributesRequest.Merge(m, src) +} +func (m *ListMatchableAttributesRequest) XXX_Size() int { + return xxx_messageInfo_ListMatchableAttributesRequest.Size(m) +} +func (m *ListMatchableAttributesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListMatchableAttributesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListMatchableAttributesRequest proto.InternalMessageInfo + +func (m *ListMatchableAttributesRequest) GetResourceType() MatchableResource { + if m != nil { + return m.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +// Response for a request for all matching resource attributes for a resource type. +// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +type ListMatchableAttributesResponse struct { + Configurations []*MatchableAttributesConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListMatchableAttributesResponse) Reset() { *m = ListMatchableAttributesResponse{} } +func (m *ListMatchableAttributesResponse) String() string { return proto.CompactTextString(m) } +func (*ListMatchableAttributesResponse) ProtoMessage() {} +func (*ListMatchableAttributesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_1d15bcabb02640f4, []int{11} +} + +func (m *ListMatchableAttributesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListMatchableAttributesResponse.Unmarshal(m, b) +} +func (m *ListMatchableAttributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListMatchableAttributesResponse.Marshal(b, m, deterministic) +} +func (m *ListMatchableAttributesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListMatchableAttributesResponse.Merge(m, src) +} +func (m *ListMatchableAttributesResponse) XXX_Size() int { + return xxx_messageInfo_ListMatchableAttributesResponse.Size(m) +} +func (m *ListMatchableAttributesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListMatchableAttributesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListMatchableAttributesResponse proto.InternalMessageInfo + +func (m *ListMatchableAttributesResponse) GetConfigurations() []*MatchableAttributesConfiguration { + if m != nil { + return m.Configurations + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.admin.MatchableResource", MatchableResource_name, MatchableResource_value) + proto.RegisterEnum("flyteidl.admin.PluginOverride_MissingPluginBehavior", PluginOverride_MissingPluginBehavior_name, PluginOverride_MissingPluginBehavior_value) + proto.RegisterType((*TaskResourceSpec)(nil), "flyteidl.admin.TaskResourceSpec") + proto.RegisterType((*TaskResourceAttributes)(nil), "flyteidl.admin.TaskResourceAttributes") + proto.RegisterType((*ClusterResourceAttributes)(nil), "flyteidl.admin.ClusterResourceAttributes") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.ClusterResourceAttributes.AttributesEntry") + proto.RegisterType((*ExecutionQueueAttributes)(nil), "flyteidl.admin.ExecutionQueueAttributes") + proto.RegisterType((*ExecutionClusterLabel)(nil), "flyteidl.admin.ExecutionClusterLabel") + proto.RegisterType((*PluginOverride)(nil), "flyteidl.admin.PluginOverride") + proto.RegisterType((*PluginOverrides)(nil), "flyteidl.admin.PluginOverrides") + proto.RegisterType((*WorkflowExecutionConfig)(nil), "flyteidl.admin.WorkflowExecutionConfig") + proto.RegisterType((*MatchingAttributes)(nil), "flyteidl.admin.MatchingAttributes") + proto.RegisterType((*MatchableAttributesConfiguration)(nil), "flyteidl.admin.MatchableAttributesConfiguration") + proto.RegisterType((*ListMatchableAttributesRequest)(nil), "flyteidl.admin.ListMatchableAttributesRequest") + proto.RegisterType((*ListMatchableAttributesResponse)(nil), "flyteidl.admin.ListMatchableAttributesResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/matchable_resource.proto", fileDescriptor_1d15bcabb02640f4) +} + +var fileDescriptor_1d15bcabb02640f4 = []byte{ + // 1339 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0xdb, 0x72, 0x1a, 0x47, + 0x13, 0x66, 0x75, 0x40, 0xa8, 0xf9, 0x0d, 0xab, 0xb1, 0x25, 0x21, 0xe9, 0xb7, 0xad, 0x6c, 0x0e, + 0x56, 0x92, 0x32, 0xa4, 0x48, 0x52, 0x71, 0x52, 0x71, 0x55, 0x10, 0x5e, 0x0c, 0x65, 0x24, 0xa4, + 0x01, 0x7c, 0xc8, 0xcd, 0xd6, 0xb0, 0x0c, 0xcb, 0x46, 0x7b, 0xd2, 0xec, 0xac, 0x10, 0x95, 0x97, + 0xc8, 0x45, 0xf2, 0x28, 0x79, 0x94, 0xdc, 0xe7, 0x3e, 0x79, 0x88, 0xd4, 0x1e, 0x81, 0x15, 0xb8, + 0x7c, 0xb7, 0xd3, 0xf3, 0xf5, 0x61, 0x7b, 0xba, 0xbf, 0x6e, 0x78, 0x32, 0x32, 0xa6, 0x9c, 0xea, + 0x43, 0xa3, 0x42, 0x86, 0xa6, 0x6e, 0x55, 0x4c, 0xc2, 0xd5, 0x31, 0x19, 0x18, 0x54, 0x61, 0xd4, + 0xb5, 0x3d, 0xa6, 0xd2, 0xb2, 0xc3, 0x6c, 0x6e, 0xa3, 0x42, 0x0c, 0x2c, 0x07, 0xc0, 0xc3, 0xa3, + 0x94, 0xa2, 0x6a, 0x9b, 0xa6, 0x6d, 0x85, 0xe0, 0xc3, 0xb4, 0x55, 0xd5, 0xf0, 0x5c, 0x4e, 0x99, + 0x42, 0x5c, 0x57, 0xd7, 0x2c, 0x93, 0x5a, 0x3c, 0x02, 0x3e, 0x4c, 0x80, 0xaa, 0xcd, 0x68, 0x85, + 0xde, 0x52, 0xd5, 0xe3, 0x7a, 0x62, 0xe7, 0xff, 0x8b, 0xd7, 0x2e, 0x55, 0x3d, 0xa6, 0xf3, 0x69, + 0x74, 0xfb, 0x48, 0xb3, 0x6d, 0xcd, 0xa0, 0x95, 0xe0, 0x34, 0xf0, 0x46, 0x95, 0x09, 0x23, 0x8e, + 0x43, 0x99, 0x1b, 0xde, 0x4b, 0x7f, 0x08, 0x20, 0xf6, 0x88, 0x7b, 0x85, 0xa3, 0x3f, 0xe9, 0x3a, + 0x54, 0x45, 0x22, 0xac, 0xab, 0x8e, 0x57, 0x12, 0x8e, 0x85, 0x93, 0x6d, 0xec, 0x7f, 0xfa, 0x12, + 0xcd, 0xf1, 0x4a, 0x6b, 0xa1, 0x44, 0x73, 0x3c, 0xb4, 0x07, 0x59, 0x93, 0x9a, 0x36, 0x9b, 0x96, + 0xd6, 0x03, 0x61, 0x74, 0x42, 0x25, 0xd8, 0x72, 0xb9, 0xcd, 0x88, 0x46, 0x4b, 0x1b, 0xc1, 0x45, + 0x7c, 0x44, 0x5f, 0xc2, 0x0e, 0x75, 0xc6, 0xd4, 0xa4, 0x8c, 0x18, 0x4a, 0x8c, 0xd9, 0x0c, 0x30, + 0x62, 0x72, 0xd1, 0x0d, 0xe5, 0xd2, 0x6f, 0x02, 0xec, 0xcd, 0xc7, 0x55, 0xe3, 0x9c, 0xe9, 0x03, + 0x8f, 0x53, 0x17, 0xfd, 0x08, 0xb9, 0x21, 0x1d, 0x11, 0xcf, 0xe0, 0x6e, 0x10, 0x62, 0xbe, 0x7a, + 0x5c, 0x5e, 0x4c, 0x7c, 0x39, 0xfd, 0x47, 0x38, 0xd1, 0x40, 0xcf, 0x20, 0x6b, 0xe8, 0xa6, 0xce, + 0xdd, 0xe0, 0x67, 0x3e, 0x44, 0x37, 0xc2, 0x4b, 0x7f, 0x0a, 0x70, 0x50, 0x0f, 0x1f, 0x69, 0x49, + 0x54, 0xef, 0x00, 0x48, 0x72, 0x2a, 0x09, 0xc7, 0xeb, 0x27, 0xf9, 0xea, 0xf7, 0x69, 0xdb, 0x2b, + 0xd5, 0xcb, 0xb3, 0x4f, 0xd9, 0xe2, 0x6c, 0x8a, 0xe7, 0x8c, 0x1d, 0x3e, 0x87, 0x62, 0xea, 0xda, + 0x7f, 0x8f, 0x2b, 0x3a, 0x8d, 0x5f, 0xe8, 0x8a, 0x4e, 0xd1, 0x03, 0xd8, 0xbc, 0x21, 0x86, 0x47, + 0xa3, 0x37, 0x0a, 0x0f, 0x3f, 0xac, 0x3d, 0x13, 0xa4, 0x32, 0x94, 0xe4, 0xb8, 0x66, 0x2e, 0x3d, + 0xea, 0xcd, 0x47, 0x8d, 0x60, 0x83, 0x13, 0x2d, 0x8c, 0x77, 0x1b, 0x07, 0xdf, 0xd2, 0x53, 0xd8, + 0x4d, 0xf0, 0x51, 0xc0, 0x6d, 0x32, 0xa0, 0xc6, 0xcc, 0x85, 0x30, 0xe7, 0x42, 0xfa, 0x57, 0x80, + 0xc2, 0x85, 0xe1, 0x69, 0xba, 0xd5, 0xb9, 0xa1, 0x8c, 0xe9, 0x43, 0x8a, 0x8e, 0x60, 0x9b, 0x13, + 0xf7, 0x4a, 0xe1, 0x53, 0x27, 0x06, 0xe7, 0x7c, 0x41, 0x6f, 0xea, 0x04, 0x97, 0x4e, 0x00, 0x57, + 0xf4, 0x61, 0x69, 0x2d, 0xf0, 0x9b, 0x0b, 0x05, 0xad, 0x21, 0x32, 0x60, 0xdf, 0xd4, 0x5d, 0x57, + 0xb7, 0x34, 0x25, 0x02, 0x0d, 0xe8, 0x98, 0xdc, 0xe8, 0x36, 0x0b, 0xaa, 0xa9, 0x50, 0xfd, 0x26, + 0x9d, 0xd2, 0x45, 0xd7, 0xe5, 0xb3, 0x50, 0x3b, 0x94, 0x9e, 0x46, 0xba, 0x78, 0xd7, 0x5c, 0x26, + 0x96, 0xaa, 0xb0, 0xbb, 0x14, 0x8f, 0x72, 0xb0, 0xd1, 0xa8, 0xb5, 0xda, 0x62, 0x06, 0x15, 0x21, + 0xdf, 0xef, 0xca, 0xca, 0x0b, 0xb9, 0x51, 0xeb, 0xb7, 0x7b, 0xa2, 0x20, 0x75, 0xa0, 0xb8, 0xe8, + 0xd2, 0x2f, 0xc8, 0x6d, 0x3b, 0x3e, 0x44, 0x2f, 0xff, 0xe8, 0xfd, 0x61, 0xe2, 0x99, 0x82, 0xf4, + 0xcf, 0x3a, 0xec, 0xbf, 0xb1, 0xd9, 0xd5, 0xc8, 0xb0, 0x27, 0xb3, 0xbc, 0xdb, 0xd6, 0x48, 0xd7, + 0xd0, 0x13, 0x28, 0x9a, 0xe4, 0x56, 0x71, 0x08, 0x23, 0x86, 0x41, 0x0d, 0xdd, 0x35, 0x83, 0x74, + 0x6e, 0xe2, 0x82, 0x49, 0x6e, 0x2f, 0x66, 0x52, 0xd4, 0x02, 0x31, 0x6e, 0x7c, 0x45, 0xb5, 0x2d, + 0x4e, 0x6f, 0x79, 0x54, 0xdf, 0x73, 0x91, 0xf8, 0xfc, 0x50, 0xee, 0x46, 0xb0, 0x7a, 0x88, 0xc2, + 0x45, 0x77, 0x51, 0x80, 0xde, 0xc2, 0x1e, 0x23, 0x13, 0xc5, 0xf6, 0xb8, 0xe3, 0x71, 0x65, 0x48, + 0x38, 0xf1, 0x2d, 0x8e, 0x74, 0x2d, 0x68, 0xf4, 0x7c, 0xf5, 0xe3, 0xf4, 0xaf, 0x61, 0x32, 0xe9, + 0x04, 0xe0, 0x17, 0x84, 0x93, 0x30, 0x70, 0x7c, 0x9f, 0xdd, 0x15, 0xa2, 0x32, 0x64, 0x0d, 0xbf, + 0x90, 0xdc, 0xe0, 0x2d, 0xf3, 0xd5, 0xbd, 0xb4, 0xa5, 0xa0, 0xcc, 0x5c, 0x1c, 0xa1, 0xd0, 0x73, + 0xc8, 0x13, 0xcb, 0xb2, 0x39, 0xf1, 0x33, 0xe2, 0x06, 0x54, 0x91, 0xaf, 0x1e, 0xa5, 0x95, 0x6a, + 0x33, 0x08, 0x9e, 0xc7, 0xa3, 0x9f, 0xe0, 0x9e, 0x6e, 0x71, 0xca, 0x98, 0xe7, 0x70, 0x7d, 0x60, + 0xd0, 0x52, 0x36, 0x30, 0x70, 0x58, 0x0e, 0x29, 0xb1, 0x1c, 0x53, 0x62, 0xf9, 0xd4, 0xb6, 0x8d, + 0xd7, 0x7e, 0x2d, 0xe3, 0x45, 0x05, 0x3f, 0xfd, 0xfe, 0x3b, 0x4d, 0x98, 0xce, 0xa9, 0xa2, 0x12, + 0x75, 0x4c, 0x4b, 0x5b, 0xc7, 0xc2, 0x49, 0x0e, 0x17, 0x12, 0x71, 0xdd, 0x97, 0xa2, 0x13, 0xd8, + 0xa0, 0xd6, 0x8d, 0x5b, 0xca, 0x05, 0x1e, 0x1e, 0xa4, 0x43, 0x94, 0xad, 0x1b, 0x17, 0x07, 0x08, + 0xe9, 0xf7, 0x2c, 0xa0, 0x33, 0x7f, 0x7e, 0xe8, 0x96, 0x36, 0xd7, 0x87, 0x03, 0x28, 0x05, 0x1d, + 0x13, 0x0f, 0x14, 0x65, 0x81, 0x4b, 0x7c, 0xa3, 0x9f, 0xbd, 0x8f, 0xa7, 0x66, 0x96, 0x9a, 0x19, + 0xbc, 0xc7, 0x97, 0xf3, 0xe6, 0x15, 0x1c, 0xc5, 0x33, 0x66, 0x99, 0x9b, 0xb0, 0x5c, 0x3e, 0xff, + 0x60, 0xca, 0x6a, 0x66, 0xf0, 0x81, 0xba, 0x92, 0x0e, 0xc7, 0x70, 0x98, 0x0c, 0x2a, 0xe5, 0xda, + 0x67, 0x9d, 0x79, 0x5f, 0x61, 0x25, 0x9d, 0xdc, 0xc9, 0xd3, 0x0a, 0x9a, 0x6a, 0x66, 0x70, 0x89, + 0xae, 0xa2, 0x30, 0x05, 0xf6, 0x67, 0x9e, 0xe2, 0x1f, 0x0c, 0x2a, 0x28, 0x2a, 0xb3, 0x4f, 0x57, + 0xba, 0x99, 0x67, 0xb7, 0x66, 0x06, 0xef, 0xd2, 0xa5, 0xb4, 0xd7, 0x01, 0x74, 0xed, 0x11, 0xc3, + 0x6f, 0x2d, 0x7b, 0xa4, 0xb8, 0x94, 0xdd, 0xe8, 0x2a, 0x8d, 0xaa, 0xf1, 0x71, 0xaa, 0xbb, 0x2e, + 0x43, 0x60, 0x67, 0xd4, 0x0d, 0x61, 0xcd, 0x0c, 0x16, 0xaf, 0x53, 0x32, 0xd4, 0x06, 0x31, 0x22, + 0xb7, 0x19, 0x6d, 0x64, 0xd3, 0xe6, 0x96, 0xd1, 0x86, 0x9f, 0x88, 0xa2, 0x93, 0x62, 0x1f, 0x0a, + 0x07, 0x93, 0x88, 0x3e, 0x94, 0xb9, 0x44, 0x84, 0x2d, 0xbb, 0x15, 0x98, 0x7d, 0x92, 0x36, 0xbb, + 0x82, 0x6f, 0x9a, 0x19, 0xbc, 0x3f, 0x59, 0x41, 0x45, 0x18, 0xd0, 0xdd, 0x0d, 0x25, 0x2a, 0xf8, + 0x8f, 0x56, 0x14, 0x4d, 0x2d, 0x01, 0x36, 0x33, 0x78, 0x47, 0x4d, 0x0b, 0x4f, 0x73, 0x90, 0xe5, + 0x84, 0x69, 0x94, 0x4b, 0x7f, 0x09, 0x70, 0x7c, 0x16, 0xaf, 0x55, 0xb3, 0xc7, 0x0d, 0x7d, 0x7b, + 0x2c, 0xe8, 0x68, 0x74, 0x9a, 0x1a, 0xb1, 0xbe, 0x6b, 0x29, 0xed, 0xfa, 0x6e, 0x73, 0xcd, 0xcf, + 0x52, 0x7f, 0x6d, 0x19, 0xda, 0x26, 0xd1, 0xad, 0x68, 0x4e, 0x46, 0x27, 0x7f, 0x6d, 0x71, 0x98, + 0xfd, 0x0b, 0x55, 0x79, 0xb4, 0xcf, 0xc4, 0x47, 0x74, 0x08, 0xb9, 0x38, 0x27, 0xd1, 0x46, 0x93, + 0x9c, 0xd1, 0x63, 0xc8, 0x1b, 0xc4, 0xb3, 0xd4, 0xb1, 0xe2, 0x18, 0xc4, 0x8a, 0x96, 0x19, 0x08, + 0x45, 0x17, 0x06, 0xb1, 0xa4, 0x31, 0x3c, 0x6a, 0xeb, 0x2e, 0x5f, 0xf2, 0x6b, 0x98, 0x5e, 0x7b, + 0xd4, 0xe5, 0xa8, 0x01, 0xf7, 0x92, 0x6e, 0x4c, 0xe6, 0x65, 0xe1, 0x6e, 0x4a, 0x13, 0x13, 0x71, + 0xb3, 0xe1, 0xff, 0xc5, 0x7a, 0xfe, 0x58, 0x95, 0x7e, 0x85, 0xc7, 0x2b, 0x3d, 0xb9, 0x8e, 0x6d, + 0xb9, 0x14, 0xbd, 0x85, 0x82, 0x3a, 0x9f, 0xd0, 0x78, 0x58, 0x7d, 0xb5, 0xd2, 0xd7, 0x8a, 0x97, + 0xc0, 0x29, 0x3b, 0x5f, 0xfc, 0x2d, 0xc0, 0xce, 0x9d, 0x00, 0xd1, 0x0e, 0xdc, 0xeb, 0xd5, 0xba, + 0xaf, 0x14, 0x2c, 0x77, 0x3b, 0x7d, 0x5c, 0x97, 0xc5, 0x0c, 0x7a, 0x00, 0x62, 0xbd, 0xdd, 0xef, + 0xf6, 0x64, 0x3c, 0x93, 0x0a, 0xe8, 0x3e, 0x14, 0xe5, 0xb7, 0x72, 0xbd, 0xdf, 0x6b, 0x75, 0xce, + 0x95, 0xcb, 0xbe, 0xdc, 0x97, 0xc5, 0x35, 0x74, 0x04, 0xfb, 0x33, 0x61, 0xac, 0xd4, 0xae, 0x9d, + 0xca, 0x6d, 0x71, 0x1d, 0x7d, 0x02, 0xc7, 0x97, 0xfd, 0x5a, 0xbb, 0xd5, 0x7b, 0xa7, 0x74, 0x1a, + 0x4a, 0x57, 0xc6, 0xaf, 0x5b, 0x75, 0x59, 0xe9, 0x5e, 0xc8, 0xf5, 0x56, 0xa3, 0x55, 0xaf, 0xf9, + 0x3a, 0xe2, 0x86, 0x6f, 0xf7, 0xa2, 0xdd, 0x7f, 0xd9, 0x3a, 0x57, 0x3a, 0xaf, 0x65, 0x8c, 0x5b, + 0x2f, 0x64, 0x71, 0x13, 0x3d, 0x84, 0x83, 0x37, 0x1d, 0xfc, 0xaa, 0xd1, 0xee, 0xbc, 0x51, 0xe6, + 0x1c, 0x74, 0xce, 0x1b, 0xad, 0x97, 0x62, 0x16, 0xed, 0x01, 0x8a, 0x9d, 0xd5, 0xba, 0xdd, 0xd6, + 0xcb, 0xf3, 0x33, 0xf9, 0xbc, 0x27, 0x6e, 0x9d, 0x7e, 0xf7, 0xf3, 0xb7, 0x9a, 0xce, 0xc7, 0xde, + 0xa0, 0xac, 0xda, 0x66, 0x25, 0x48, 0x98, 0xcd, 0xb4, 0x4a, 0xb2, 0x7c, 0x6b, 0xd4, 0xaa, 0x38, + 0x83, 0xa7, 0x9a, 0x5d, 0x59, 0xdc, 0xeb, 0x07, 0xd9, 0x60, 0xce, 0x7c, 0xfd, 0x5f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xb4, 0x80, 0xda, 0x35, 0x46, 0x0c, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.validate.go new file mode 100644 index 0000000000..96cc2c01ac --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.validate.go @@ -0,0 +1,1090 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/matchable_resource.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 _matchable_resource_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 TaskResourceSpec with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskResourceSpec) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Cpu + + // no validation rules for Gpu + + // no validation rules for Memory + + // no validation rules for Storage + + // no validation rules for EphemeralStorage + + return nil +} + +// TaskResourceSpecValidationError is the validation error returned by +// TaskResourceSpec.Validate if the designated constraints aren't met. +type TaskResourceSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskResourceSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskResourceSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskResourceSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskResourceSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskResourceSpecValidationError) ErrorName() string { return "TaskResourceSpecValidationError" } + +// Error satisfies the builtin error interface +func (e TaskResourceSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskResourceSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskResourceSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskResourceSpecValidationError{} + +// Validate checks the field values on TaskResourceAttributes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskResourceAttributes) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDefaults()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskResourceAttributesValidationError{ + field: "Defaults", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLimits()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskResourceAttributesValidationError{ + field: "Limits", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskResourceAttributesValidationError is the validation error returned by +// TaskResourceAttributes.Validate if the designated constraints aren't met. +type TaskResourceAttributesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskResourceAttributesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskResourceAttributesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskResourceAttributesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskResourceAttributesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskResourceAttributesValidationError) ErrorName() string { + return "TaskResourceAttributesValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskResourceAttributesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskResourceAttributes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskResourceAttributesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskResourceAttributesValidationError{} + +// Validate checks the field values on ClusterResourceAttributes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ClusterResourceAttributes) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Attributes + + return nil +} + +// ClusterResourceAttributesValidationError is the validation error returned by +// ClusterResourceAttributes.Validate if the designated constraints aren't met. +type ClusterResourceAttributesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ClusterResourceAttributesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ClusterResourceAttributesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ClusterResourceAttributesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ClusterResourceAttributesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ClusterResourceAttributesValidationError) ErrorName() string { + return "ClusterResourceAttributesValidationError" +} + +// Error satisfies the builtin error interface +func (e ClusterResourceAttributesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sClusterResourceAttributes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ClusterResourceAttributesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ClusterResourceAttributesValidationError{} + +// Validate checks the field values on ExecutionQueueAttributes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionQueueAttributes) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ExecutionQueueAttributesValidationError is the validation error returned by +// ExecutionQueueAttributes.Validate if the designated constraints aren't met. +type ExecutionQueueAttributesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionQueueAttributesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionQueueAttributesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionQueueAttributesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionQueueAttributesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionQueueAttributesValidationError) ErrorName() string { + return "ExecutionQueueAttributesValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionQueueAttributesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionQueueAttributes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionQueueAttributesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionQueueAttributesValidationError{} + +// Validate checks the field values on ExecutionClusterLabel with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionClusterLabel) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Value + + return nil +} + +// ExecutionClusterLabelValidationError is the validation error returned by +// ExecutionClusterLabel.Validate if the designated constraints aren't met. +type ExecutionClusterLabelValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionClusterLabelValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionClusterLabelValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionClusterLabelValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionClusterLabelValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionClusterLabelValidationError) ErrorName() string { + return "ExecutionClusterLabelValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionClusterLabelValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionClusterLabel.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionClusterLabelValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionClusterLabelValidationError{} + +// Validate checks the field values on PluginOverride with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PluginOverride) Validate() error { + if m == nil { + return nil + } + + // no validation rules for TaskType + + // no validation rules for MissingPluginBehavior + + return nil +} + +// PluginOverrideValidationError is the validation error returned by +// PluginOverride.Validate if the designated constraints aren't met. +type PluginOverrideValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PluginOverrideValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PluginOverrideValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PluginOverrideValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PluginOverrideValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PluginOverrideValidationError) ErrorName() string { return "PluginOverrideValidationError" } + +// Error satisfies the builtin error interface +func (e PluginOverrideValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPluginOverride.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PluginOverrideValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PluginOverrideValidationError{} + +// Validate checks the field values on PluginOverrides with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *PluginOverrides) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetOverrides() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PluginOverridesValidationError{ + field: fmt.Sprintf("Overrides[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PluginOverridesValidationError is the validation error returned by +// PluginOverrides.Validate if the designated constraints aren't met. +type PluginOverridesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PluginOverridesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PluginOverridesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PluginOverridesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PluginOverridesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PluginOverridesValidationError) ErrorName() string { return "PluginOverridesValidationError" } + +// Error satisfies the builtin error interface +func (e PluginOverridesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPluginOverrides.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PluginOverridesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PluginOverridesValidationError{} + +// Validate checks the field values on WorkflowExecutionConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxParallelism + + if v, ok := interface{}(m.GetSecurityContext()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionConfigValidationError{ + field: "SecurityContext", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRawOutputDataConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionConfigValidationError{ + field: "RawOutputDataConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLabels()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionConfigValidationError{ + field: "Labels", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAnnotations()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionConfigValidationError{ + field: "Annotations", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInterruptible()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionConfigValidationError{ + field: "Interruptible", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OverwriteCache + + if v, ok := interface{}(m.GetEnvs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionConfigValidationError{ + field: "Envs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionConfigValidationError is the validation error returned by +// WorkflowExecutionConfig.Validate if the designated constraints aren't met. +type WorkflowExecutionConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionConfigValidationError) ErrorName() string { + return "WorkflowExecutionConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionConfigValidationError{} + +// Validate checks the field values on MatchingAttributes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *MatchingAttributes) Validate() error { + if m == nil { + return nil + } + + switch m.Target.(type) { + + case *MatchingAttributes_TaskResourceAttributes: + + if v, ok := interface{}(m.GetTaskResourceAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "TaskResourceAttributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchingAttributes_ClusterResourceAttributes: + + if v, ok := interface{}(m.GetClusterResourceAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "ClusterResourceAttributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchingAttributes_ExecutionQueueAttributes: + + if v, ok := interface{}(m.GetExecutionQueueAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "ExecutionQueueAttributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchingAttributes_ExecutionClusterLabel: + + if v, ok := interface{}(m.GetExecutionClusterLabel()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "ExecutionClusterLabel", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchingAttributes_QualityOfService: + + if v, ok := interface{}(m.GetQualityOfService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "QualityOfService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchingAttributes_PluginOverrides: + + if v, ok := interface{}(m.GetPluginOverrides()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "PluginOverrides", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchingAttributes_WorkflowExecutionConfig: + + if v, ok := interface{}(m.GetWorkflowExecutionConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "WorkflowExecutionConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *MatchingAttributes_ClusterAssignment: + + if v, ok := interface{}(m.GetClusterAssignment()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchingAttributesValidationError{ + field: "ClusterAssignment", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// MatchingAttributesValidationError is the validation error returned by +// MatchingAttributes.Validate if the designated constraints aren't met. +type MatchingAttributesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MatchingAttributesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MatchingAttributesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MatchingAttributesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MatchingAttributesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MatchingAttributesValidationError) ErrorName() string { + return "MatchingAttributesValidationError" +} + +// Error satisfies the builtin error interface +func (e MatchingAttributesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sMatchingAttributes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MatchingAttributesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MatchingAttributesValidationError{} + +// Validate checks the field values on MatchableAttributesConfiguration with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *MatchableAttributesConfiguration) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MatchableAttributesConfigurationValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Domain + + // no validation rules for Project + + // no validation rules for Workflow + + // no validation rules for LaunchPlan + + return nil +} + +// MatchableAttributesConfigurationValidationError is the validation error +// returned by MatchableAttributesConfiguration.Validate if the designated +// constraints aren't met. +type MatchableAttributesConfigurationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MatchableAttributesConfigurationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MatchableAttributesConfigurationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MatchableAttributesConfigurationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MatchableAttributesConfigurationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MatchableAttributesConfigurationValidationError) ErrorName() string { + return "MatchableAttributesConfigurationValidationError" +} + +// Error satisfies the builtin error interface +func (e MatchableAttributesConfigurationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sMatchableAttributesConfiguration.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MatchableAttributesConfigurationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MatchableAttributesConfigurationValidationError{} + +// Validate checks the field values on ListMatchableAttributesRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListMatchableAttributesRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + return nil +} + +// ListMatchableAttributesRequestValidationError is the validation error +// returned by ListMatchableAttributesRequest.Validate if the designated +// constraints aren't met. +type ListMatchableAttributesRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListMatchableAttributesRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListMatchableAttributesRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListMatchableAttributesRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListMatchableAttributesRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListMatchableAttributesRequestValidationError) ErrorName() string { + return "ListMatchableAttributesRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ListMatchableAttributesRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListMatchableAttributesRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListMatchableAttributesRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListMatchableAttributesRequestValidationError{} + +// Validate checks the field values on ListMatchableAttributesResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListMatchableAttributesResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetConfigurations() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListMatchableAttributesResponseValidationError{ + field: fmt.Sprintf("Configurations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ListMatchableAttributesResponseValidationError is the validation error +// returned by ListMatchableAttributesResponse.Validate if the designated +// constraints aren't met. +type ListMatchableAttributesResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListMatchableAttributesResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListMatchableAttributesResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListMatchableAttributesResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListMatchableAttributesResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListMatchableAttributesResponseValidationError) ErrorName() string { + return "ListMatchableAttributesResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ListMatchableAttributesResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListMatchableAttributesResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListMatchableAttributesResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListMatchableAttributesResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.swagger.json new file mode 100644 index 0000000000..4f9f550804 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/matchable_resource.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go new file mode 100644 index 0000000000..4e69dbc4d9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go @@ -0,0 +1,1039 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/node_execution.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// A message used to fetch a single node execution entity. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +type NodeExecutionGetRequest struct { + // Uniquely identifies an individual node execution. + // +required + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionGetRequest) Reset() { *m = NodeExecutionGetRequest{} } +func (m *NodeExecutionGetRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionGetRequest) ProtoMessage() {} +func (*NodeExecutionGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{0} +} + +func (m *NodeExecutionGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionGetRequest.Unmarshal(m, b) +} +func (m *NodeExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionGetRequest.Marshal(b, m, deterministic) +} +func (m *NodeExecutionGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionGetRequest.Merge(m, src) +} +func (m *NodeExecutionGetRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionGetRequest.Size(m) +} +func (m *NodeExecutionGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionGetRequest proto.InternalMessageInfo + +func (m *NodeExecutionGetRequest) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Represents a request structure to retrieve a list of node execution entities. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +type NodeExecutionListRequest struct { + // Indicates the workflow execution to filter by. + // +required + WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Unique identifier of the parent node in the execution + // +optional + UniqueParentId string `protobuf:"bytes,6,opt,name=unique_parent_id,json=uniqueParentId,proto3" json:"unique_parent_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionListRequest) Reset() { *m = NodeExecutionListRequest{} } +func (m *NodeExecutionListRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionListRequest) ProtoMessage() {} +func (*NodeExecutionListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{1} +} + +func (m *NodeExecutionListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionListRequest.Unmarshal(m, b) +} +func (m *NodeExecutionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionListRequest.Marshal(b, m, deterministic) +} +func (m *NodeExecutionListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionListRequest.Merge(m, src) +} +func (m *NodeExecutionListRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionListRequest.Size(m) +} +func (m *NodeExecutionListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionListRequest proto.InternalMessageInfo + +func (m *NodeExecutionListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.WorkflowExecutionId + } + return nil +} + +func (m *NodeExecutionListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *NodeExecutionListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *NodeExecutionListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *NodeExecutionListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +func (m *NodeExecutionListRequest) GetUniqueParentId() string { + if m != nil { + return m.UniqueParentId + } + return "" +} + +// Represents a request structure to retrieve a list of node execution entities launched by a specific task. +// This can arise when a task yields a subworkflow. +type NodeExecutionForTaskListRequest struct { + // Indicates the node execution to filter by. + // +required + TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionForTaskListRequest) Reset() { *m = NodeExecutionForTaskListRequest{} } +func (m *NodeExecutionForTaskListRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionForTaskListRequest) ProtoMessage() {} +func (*NodeExecutionForTaskListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{2} +} + +func (m *NodeExecutionForTaskListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionForTaskListRequest.Unmarshal(m, b) +} +func (m *NodeExecutionForTaskListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionForTaskListRequest.Marshal(b, m, deterministic) +} +func (m *NodeExecutionForTaskListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionForTaskListRequest.Merge(m, src) +} +func (m *NodeExecutionForTaskListRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionForTaskListRequest.Size(m) +} +func (m *NodeExecutionForTaskListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionForTaskListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionForTaskListRequest proto.InternalMessageInfo + +func (m *NodeExecutionForTaskListRequest) GetTaskExecutionId() *core.TaskExecutionIdentifier { + if m != nil { + return m.TaskExecutionId + } + return nil +} + +func (m *NodeExecutionForTaskListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *NodeExecutionForTaskListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *NodeExecutionForTaskListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *NodeExecutionForTaskListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Encapsulates all details for a single node execution entity. +// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +// sub-workflow, or even a separate child-workflow execution. +// The same task can be called repeatedly in a single workflow but each node is unique. +type NodeExecution struct { + // Uniquely identifies an individual node execution. + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Computed results associated with this node execution. + Closure *NodeExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + // Metadata for Node Execution + Metadata *NodeExecutionMetaData `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecution) Reset() { *m = NodeExecution{} } +func (m *NodeExecution) String() string { return proto.CompactTextString(m) } +func (*NodeExecution) ProtoMessage() {} +func (*NodeExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{3} +} + +func (m *NodeExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecution.Unmarshal(m, b) +} +func (m *NodeExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecution.Marshal(b, m, deterministic) +} +func (m *NodeExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecution.Merge(m, src) +} +func (m *NodeExecution) XXX_Size() int { + return xxx_messageInfo_NodeExecution.Size(m) +} +func (m *NodeExecution) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecution proto.InternalMessageInfo + +func (m *NodeExecution) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *NodeExecution) GetInputUri() string { + if m != nil { + return m.InputUri + } + return "" +} + +func (m *NodeExecution) GetClosure() *NodeExecutionClosure { + if m != nil { + return m.Closure + } + return nil +} + +func (m *NodeExecution) GetMetadata() *NodeExecutionMetaData { + if m != nil { + return m.Metadata + } + return nil +} + +// Represents additional attributes related to a Node Execution +type NodeExecutionMetaData struct { + // Node executions are grouped depending on retries of the parent + // Retry group is unique within the context of a parent node. + RetryGroup string `protobuf:"bytes,1,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` + // Boolean flag indicating if the node has child nodes under it + // This can be true when a node contains a dynamic workflow which then produces + // child nodes. + IsParentNode bool `protobuf:"varint,2,opt,name=is_parent_node,json=isParentNode,proto3" json:"is_parent_node,omitempty"` + // Node id of the node in the original workflow + // This maps to value of WorkflowTemplate.nodes[X].id + SpecNodeId string `protobuf:"bytes,3,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` + // Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. + // This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. + IsDynamic bool `protobuf:"varint,4,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionMetaData) Reset() { *m = NodeExecutionMetaData{} } +func (m *NodeExecutionMetaData) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionMetaData) ProtoMessage() {} +func (*NodeExecutionMetaData) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{4} +} + +func (m *NodeExecutionMetaData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionMetaData.Unmarshal(m, b) +} +func (m *NodeExecutionMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionMetaData.Marshal(b, m, deterministic) +} +func (m *NodeExecutionMetaData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionMetaData.Merge(m, src) +} +func (m *NodeExecutionMetaData) XXX_Size() int { + return xxx_messageInfo_NodeExecutionMetaData.Size(m) +} +func (m *NodeExecutionMetaData) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionMetaData.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionMetaData proto.InternalMessageInfo + +func (m *NodeExecutionMetaData) GetRetryGroup() string { + if m != nil { + return m.RetryGroup + } + return "" +} + +func (m *NodeExecutionMetaData) GetIsParentNode() bool { + if m != nil { + return m.IsParentNode + } + return false +} + +func (m *NodeExecutionMetaData) GetSpecNodeId() string { + if m != nil { + return m.SpecNodeId + } + return "" +} + +func (m *NodeExecutionMetaData) GetIsDynamic() bool { + if m != nil { + return m.IsDynamic + } + return false +} + +// Request structure to retrieve a list of node execution entities. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +type NodeExecutionList struct { + NodeExecutions []*NodeExecution `protobuf:"bytes,1,rep,name=node_executions,json=nodeExecutions,proto3" json:"node_executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionList) Reset() { *m = NodeExecutionList{} } +func (m *NodeExecutionList) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionList) ProtoMessage() {} +func (*NodeExecutionList) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{5} +} + +func (m *NodeExecutionList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionList.Unmarshal(m, b) +} +func (m *NodeExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionList.Marshal(b, m, deterministic) +} +func (m *NodeExecutionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionList.Merge(m, src) +} +func (m *NodeExecutionList) XXX_Size() int { + return xxx_messageInfo_NodeExecutionList.Size(m) +} +func (m *NodeExecutionList) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionList.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionList proto.InternalMessageInfo + +func (m *NodeExecutionList) GetNodeExecutions() []*NodeExecution { + if m != nil { + return m.NodeExecutions + } + return nil +} + +func (m *NodeExecutionList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Container for node execution details and results. +type NodeExecutionClosure struct { + // Only a node in a terminal state will have a non-empty output_result. + // + // Types that are valid to be assigned to OutputResult: + // *NodeExecutionClosure_OutputUri + // *NodeExecutionClosure_Error + // *NodeExecutionClosure_OutputData + OutputResult isNodeExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // The last recorded phase for this node execution. + Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` + // Time at which the node execution began running. + StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the node execution spent running. + Duration *duration.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` + // Time at which the node execution was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the node execution was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // Store metadata for what the node launched. + // for ex: if this is a workflow node, we store information for the launched workflow. + // + // Types that are valid to be assigned to TargetMetadata: + // *NodeExecutionClosure_WorkflowNodeMetadata + // *NodeExecutionClosure_TaskNodeMetadata + TargetMetadata isNodeExecutionClosure_TargetMetadata `protobuf_oneof:"target_metadata"` + // String location uniquely identifying where the deck HTML file is. + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + DeckUri string `protobuf:"bytes,11,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required + // to correctly recover partially completed executions where the subworkflow has already been compiled. + DynamicJobSpecUri string `protobuf:"bytes,12,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionClosure) Reset() { *m = NodeExecutionClosure{} } +func (m *NodeExecutionClosure) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionClosure) ProtoMessage() {} +func (*NodeExecutionClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{6} +} + +func (m *NodeExecutionClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionClosure.Unmarshal(m, b) +} +func (m *NodeExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionClosure.Marshal(b, m, deterministic) +} +func (m *NodeExecutionClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionClosure.Merge(m, src) +} +func (m *NodeExecutionClosure) XXX_Size() int { + return xxx_messageInfo_NodeExecutionClosure.Size(m) +} +func (m *NodeExecutionClosure) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionClosure proto.InternalMessageInfo + +type isNodeExecutionClosure_OutputResult interface { + isNodeExecutionClosure_OutputResult() +} + +type NodeExecutionClosure_OutputUri struct { + OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type NodeExecutionClosure_Error struct { + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type NodeExecutionClosure_OutputData struct { + OutputData *core.LiteralMap `protobuf:"bytes,10,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*NodeExecutionClosure_OutputUri) isNodeExecutionClosure_OutputResult() {} + +func (*NodeExecutionClosure_Error) isNodeExecutionClosure_OutputResult() {} + +func (*NodeExecutionClosure_OutputData) isNodeExecutionClosure_OutputResult() {} + +func (m *NodeExecutionClosure) GetOutputResult() isNodeExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +// Deprecated: Do not use. +func (m *NodeExecutionClosure) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*NodeExecutionClosure_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *NodeExecutionClosure) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*NodeExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +// Deprecated: Do not use. +func (m *NodeExecutionClosure) GetOutputData() *core.LiteralMap { + if x, ok := m.GetOutputResult().(*NodeExecutionClosure_OutputData); ok { + return x.OutputData + } + return nil +} + +func (m *NodeExecutionClosure) GetPhase() core.NodeExecution_Phase { + if m != nil { + return m.Phase + } + return core.NodeExecution_UNDEFINED +} + +func (m *NodeExecutionClosure) GetStartedAt() *timestamp.Timestamp { + if m != nil { + return m.StartedAt + } + return nil +} + +func (m *NodeExecutionClosure) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +func (m *NodeExecutionClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *NodeExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +type isNodeExecutionClosure_TargetMetadata interface { + isNodeExecutionClosure_TargetMetadata() +} + +type NodeExecutionClosure_WorkflowNodeMetadata struct { + WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` +} + +type NodeExecutionClosure_TaskNodeMetadata struct { + TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,9,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` +} + +func (*NodeExecutionClosure_WorkflowNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} + +func (*NodeExecutionClosure_TaskNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} + +func (m *NodeExecutionClosure) GetTargetMetadata() isNodeExecutionClosure_TargetMetadata { + if m != nil { + return m.TargetMetadata + } + return nil +} + +func (m *NodeExecutionClosure) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { + if x, ok := m.GetTargetMetadata().(*NodeExecutionClosure_WorkflowNodeMetadata); ok { + return x.WorkflowNodeMetadata + } + return nil +} + +func (m *NodeExecutionClosure) GetTaskNodeMetadata() *TaskNodeMetadata { + if x, ok := m.GetTargetMetadata().(*NodeExecutionClosure_TaskNodeMetadata); ok { + return x.TaskNodeMetadata + } + return nil +} + +func (m *NodeExecutionClosure) GetDeckUri() string { + if m != nil { + return m.DeckUri + } + return "" +} + +func (m *NodeExecutionClosure) GetDynamicJobSpecUri() string { + if m != nil { + return m.DynamicJobSpecUri + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NodeExecutionClosure) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NodeExecutionClosure_OutputUri)(nil), + (*NodeExecutionClosure_Error)(nil), + (*NodeExecutionClosure_OutputData)(nil), + (*NodeExecutionClosure_WorkflowNodeMetadata)(nil), + (*NodeExecutionClosure_TaskNodeMetadata)(nil), + } +} + +// Metadata for a WorkflowNode +type WorkflowNodeMetadata struct { + // The identifier for a workflow execution launched by a node. + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=executionId,proto3" json:"executionId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowNodeMetadata) Reset() { *m = WorkflowNodeMetadata{} } +func (m *WorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*WorkflowNodeMetadata) ProtoMessage() {} +func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{7} +} + +func (m *WorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowNodeMetadata.Unmarshal(m, b) +} +func (m *WorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowNodeMetadata.Marshal(b, m, deterministic) +} +func (m *WorkflowNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowNodeMetadata.Merge(m, src) +} +func (m *WorkflowNodeMetadata) XXX_Size() int { + return xxx_messageInfo_WorkflowNodeMetadata.Size(m) +} +func (m *WorkflowNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowNodeMetadata proto.InternalMessageInfo + +func (m *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +// Metadata for the case in which the node is a TaskNode +type TaskNodeMetadata struct { + // Captures the status of caching for this execution. + CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` + // This structure carries the catalog artifact information + CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` + // The latest checkpoint location + CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskNodeMetadata) Reset() { *m = TaskNodeMetadata{} } +func (m *TaskNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*TaskNodeMetadata) ProtoMessage() {} +func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{8} +} + +func (m *TaskNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskNodeMetadata.Unmarshal(m, b) +} +func (m *TaskNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskNodeMetadata.Marshal(b, m, deterministic) +} +func (m *TaskNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskNodeMetadata.Merge(m, src) +} +func (m *TaskNodeMetadata) XXX_Size() int { + return xxx_messageInfo_TaskNodeMetadata.Size(m) +} +func (m *TaskNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_TaskNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskNodeMetadata proto.InternalMessageInfo + +func (m *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { + if m != nil { + return m.CacheStatus + } + return core.CatalogCacheStatus_CACHE_DISABLED +} + +func (m *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { + if m != nil { + return m.CatalogKey + } + return nil +} + +func (m *TaskNodeMetadata) GetCheckpointUri() string { + if m != nil { + return m.CheckpointUri + } + return "" +} + +// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. +type DynamicWorkflowNodeMetadata struct { + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the compiled representation of the embedded dynamic workflow. + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + // required to correctly recover partially completed executions where the subworkflow has already been compiled. + DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DynamicWorkflowNodeMetadata) Reset() { *m = DynamicWorkflowNodeMetadata{} } +func (m *DynamicWorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} +func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{9} +} + +func (m *DynamicWorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DynamicWorkflowNodeMetadata.Unmarshal(m, b) +} +func (m *DynamicWorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DynamicWorkflowNodeMetadata.Marshal(b, m, deterministic) +} +func (m *DynamicWorkflowNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicWorkflowNodeMetadata.Merge(m, src) +} +func (m *DynamicWorkflowNodeMetadata) XXX_Size() int { + return xxx_messageInfo_DynamicWorkflowNodeMetadata.Size(m) +} +func (m *DynamicWorkflowNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicWorkflowNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicWorkflowNodeMetadata proto.InternalMessageInfo + +func (m *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if m != nil { + return m.CompiledWorkflow + } + return nil +} + +func (m *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { + if m != nil { + return m.DynamicJobSpecUri + } + return "" +} + +// Request structure to fetch inputs and output for a node execution. +// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` +type NodeExecutionGetDataRequest struct { + // The identifier of the node execution for which to fetch inputs and outputs. + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionGetDataRequest) Reset() { *m = NodeExecutionGetDataRequest{} } +func (m *NodeExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionGetDataRequest) ProtoMessage() {} +func (*NodeExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{10} +} + +func (m *NodeExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionGetDataRequest.Unmarshal(m, b) +} +func (m *NodeExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionGetDataRequest.Marshal(b, m, deterministic) +} +func (m *NodeExecutionGetDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionGetDataRequest.Merge(m, src) +} +func (m *NodeExecutionGetDataRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionGetDataRequest.Size(m) +} +func (m *NodeExecutionGetDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionGetDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionGetDataRequest proto.InternalMessageInfo + +func (m *NodeExecutionGetDataRequest) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +type NodeExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of node execution inputs. + // Deprecated: Please use full_inputs instead. + Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. + // Signed url to fetch a core.LiteralMap of node execution outputs. + // Deprecated: Please use full_outputs instead. + Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` // Deprecated: Do not use. + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` + // Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. + DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` + FlyteUrls *FlyteURLs `protobuf:"bytes,17,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionGetDataResponse) Reset() { *m = NodeExecutionGetDataResponse{} } +func (m *NodeExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionGetDataResponse) ProtoMessage() {} +func (*NodeExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f73b3eae493fd736, []int{11} +} + +func (m *NodeExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionGetDataResponse.Unmarshal(m, b) +} +func (m *NodeExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionGetDataResponse.Marshal(b, m, deterministic) +} +func (m *NodeExecutionGetDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionGetDataResponse.Merge(m, src) +} +func (m *NodeExecutionGetDataResponse) XXX_Size() int { + return xxx_messageInfo_NodeExecutionGetDataResponse.Size(m) +} +func (m *NodeExecutionGetDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionGetDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionGetDataResponse proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *NodeExecutionGetDataResponse) GetInputs() *UrlBlob { + if m != nil { + return m.Inputs + } + return nil +} + +// Deprecated: Do not use. +func (m *NodeExecutionGetDataResponse) GetOutputs() *UrlBlob { + if m != nil { + return m.Outputs + } + return nil +} + +func (m *NodeExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { + if m != nil { + return m.FullInputs + } + return nil +} + +func (m *NodeExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { + if m != nil { + return m.FullOutputs + } + return nil +} + +func (m *NodeExecutionGetDataResponse) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { + if m != nil { + return m.DynamicWorkflow + } + return nil +} + +func (m *NodeExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { + if m != nil { + return m.FlyteUrls + } + return nil +} + +func init() { + proto.RegisterType((*NodeExecutionGetRequest)(nil), "flyteidl.admin.NodeExecutionGetRequest") + proto.RegisterType((*NodeExecutionListRequest)(nil), "flyteidl.admin.NodeExecutionListRequest") + proto.RegisterType((*NodeExecutionForTaskListRequest)(nil), "flyteidl.admin.NodeExecutionForTaskListRequest") + proto.RegisterType((*NodeExecution)(nil), "flyteidl.admin.NodeExecution") + proto.RegisterType((*NodeExecutionMetaData)(nil), "flyteidl.admin.NodeExecutionMetaData") + proto.RegisterType((*NodeExecutionList)(nil), "flyteidl.admin.NodeExecutionList") + proto.RegisterType((*NodeExecutionClosure)(nil), "flyteidl.admin.NodeExecutionClosure") + proto.RegisterType((*WorkflowNodeMetadata)(nil), "flyteidl.admin.WorkflowNodeMetadata") + proto.RegisterType((*TaskNodeMetadata)(nil), "flyteidl.admin.TaskNodeMetadata") + proto.RegisterType((*DynamicWorkflowNodeMetadata)(nil), "flyteidl.admin.DynamicWorkflowNodeMetadata") + proto.RegisterType((*NodeExecutionGetDataRequest)(nil), "flyteidl.admin.NodeExecutionGetDataRequest") + proto.RegisterType((*NodeExecutionGetDataResponse)(nil), "flyteidl.admin.NodeExecutionGetDataResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/node_execution.proto", fileDescriptor_f73b3eae493fd736) +} + +var fileDescriptor_f73b3eae493fd736 = []byte{ + // 1187 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xee, 0x26, 0x4d, 0x62, 0x1f, 0x27, 0x4e, 0x32, 0xb8, 0xd4, 0x6d, 0xfa, 0x63, 0xb6, 0x2d, + 0x0a, 0xa0, 0xda, 0x92, 0xab, 0x40, 0x41, 0x08, 0x88, 0x93, 0xfe, 0x04, 0x52, 0x28, 0x93, 0x1a, + 0x24, 0x84, 0x58, 0x8d, 0x77, 0xc7, 0xce, 0xe0, 0xf5, 0xce, 0x76, 0x66, 0x56, 0xc1, 0x2f, 0x82, + 0xc4, 0x15, 0xaf, 0xc2, 0x13, 0xf0, 0x1a, 0x48, 0x3c, 0x00, 0xd7, 0x68, 0x66, 0x67, 0xd7, 0xde, + 0xad, 0x9b, 0x48, 0xe5, 0x82, 0xcb, 0x39, 0xe7, 0x3b, 0xbf, 0xf3, 0x9d, 0x33, 0xbb, 0x70, 0x67, + 0x18, 0x4e, 0x15, 0x65, 0x41, 0xd8, 0x21, 0xc1, 0x84, 0x45, 0x9d, 0x88, 0x07, 0xd4, 0xa3, 0xbf, + 0x50, 0x3f, 0x51, 0x8c, 0x47, 0xed, 0x58, 0x70, 0xc5, 0x51, 0x3d, 0x03, 0xb5, 0x0d, 0xe8, 0xfa, + 0x4e, 0xc9, 0xc8, 0xe7, 0x93, 0x49, 0x06, 0xbe, 0x7e, 0x33, 0x57, 0xfa, 0x5c, 0xd0, 0x4e, 0xc9, + 0xd7, 0x9c, 0xad, 0x51, 0xfb, 0x44, 0x91, 0x90, 0x8f, 0xac, 0xf2, 0x46, 0x49, 0xc9, 0x27, 0x31, + 0x0b, 0xa9, 0xb0, 0xda, 0x5b, 0x45, 0x2d, 0x0b, 0x68, 0xa4, 0xd8, 0x90, 0xe5, 0xfa, 0x92, 0x75, + 0xc8, 0x14, 0x15, 0x24, 0x94, 0x56, 0x7b, 0x7b, 0xc4, 0xf9, 0x28, 0xa4, 0x1d, 0x73, 0x1a, 0x24, + 0xc3, 0x8e, 0x62, 0x13, 0x2a, 0x15, 0x99, 0xc4, 0x99, 0xfb, 0x32, 0x20, 0x48, 0x04, 0x99, 0x65, + 0xee, 0x7e, 0x0b, 0x57, 0xbf, 0xe6, 0x01, 0x7d, 0x94, 0x15, 0xf4, 0x84, 0x2a, 0x4c, 0x5f, 0x26, + 0x54, 0x2a, 0xf4, 0x21, 0x2c, 0xb1, 0xa0, 0xe9, 0xb4, 0x9c, 0xdd, 0x5a, 0xf7, 0xdd, 0x76, 0xde, + 0x2d, 0x9d, 0x46, 0xbb, 0x60, 0x73, 0x94, 0xe7, 0x8c, 0x97, 0x58, 0xe0, 0xfe, 0xb6, 0x04, 0xcd, + 0x82, 0xfe, 0x98, 0xc9, 0xdc, 0xe9, 0x4f, 0x70, 0xe5, 0x8c, 0x8b, 0xf1, 0x30, 0xe4, 0x67, 0xb3, + 0x1b, 0xf1, 0xf2, 0x38, 0xef, 0x97, 0xe2, 0x7c, 0x6f, 0xb1, 0x8b, 0x62, 0xbd, 0x75, 0xf6, 0xaa, + 0x12, 0x35, 0x60, 0x25, 0x64, 0x13, 0xa6, 0x9a, 0x4b, 0x2d, 0x67, 0x77, 0x03, 0xa7, 0x07, 0x2d, + 0x55, 0x7c, 0x4c, 0xa3, 0xe6, 0x72, 0xcb, 0xd9, 0xad, 0xe2, 0xf4, 0x80, 0x9a, 0xb0, 0x36, 0x64, + 0xa1, 0xa2, 0x42, 0x36, 0x2f, 0x1b, 0x79, 0x76, 0x44, 0xf7, 0x61, 0x4d, 0x72, 0xa1, 0xbc, 0xc1, + 0xb4, 0xb9, 0x62, 0xf2, 0x6a, 0xb4, 0x8b, 0x6c, 0x69, 0x9f, 0x70, 0xa1, 0xf0, 0xaa, 0x06, 0xf5, + 0xa6, 0x68, 0x17, 0xb6, 0x92, 0x88, 0xbd, 0x4c, 0xa8, 0x17, 0x13, 0x41, 0x23, 0xa5, 0xeb, 0x59, + 0x35, 0x1e, 0xeb, 0xa9, 0xfc, 0xb9, 0x11, 0x1f, 0x05, 0xee, 0xdf, 0x0e, 0xdc, 0x2e, 0xf4, 0xe6, + 0x31, 0x17, 0x2f, 0x88, 0x1c, 0xcf, 0xb7, 0x08, 0xc3, 0xb6, 0x22, 0x72, 0xbc, 0xa8, 0x3d, 0xe5, + 0x6b, 0xd0, 0xa6, 0x8b, 0x5a, 0xb3, 0xa9, 0x8a, 0x8a, 0xff, 0xa5, 0x2d, 0xee, 0x5f, 0x0e, 0x6c, + 0x14, 0x8a, 0x7d, 0x53, 0x4a, 0xa1, 0x1d, 0xa8, 0xb2, 0x28, 0x4e, 0x94, 0x97, 0x08, 0x66, 0x4a, + 0xa8, 0xe2, 0x8a, 0x11, 0xf4, 0x05, 0x43, 0x9f, 0xc1, 0x9a, 0x1f, 0x72, 0x99, 0x08, 0x6a, 0xea, + 0xa8, 0x75, 0xef, 0x96, 0xb3, 0x2a, 0xb8, 0x3e, 0x48, 0xb1, 0x38, 0x33, 0x42, 0xfb, 0x50, 0x99, + 0x50, 0x45, 0x02, 0xa2, 0x88, 0x29, 0xb8, 0xd6, 0xbd, 0x77, 0xae, 0x83, 0x67, 0x54, 0x91, 0x43, + 0xa2, 0x08, 0xce, 0xcd, 0xdc, 0xdf, 0x1d, 0xb8, 0xb2, 0x10, 0x83, 0x6e, 0x43, 0x4d, 0x50, 0x25, + 0xa6, 0xde, 0x48, 0xf0, 0x24, 0x36, 0xa5, 0x57, 0x31, 0x18, 0xd1, 0x13, 0x2d, 0x41, 0x77, 0xa1, + 0xce, 0x64, 0xc6, 0x1b, 0xbd, 0xa8, 0x4c, 0x7d, 0x15, 0xbc, 0xce, 0x64, 0xca, 0x1a, 0xed, 0x17, + 0xb5, 0x60, 0x5d, 0xc6, 0xd4, 0x37, 0x00, 0x4d, 0x87, 0xf4, 0xc2, 0x40, 0xcb, 0xb4, 0xfe, 0x28, + 0x40, 0x37, 0x01, 0x98, 0xf4, 0x82, 0x69, 0x44, 0x26, 0xcc, 0x37, 0x75, 0x54, 0x70, 0x95, 0xc9, + 0xc3, 0x54, 0xe0, 0xbe, 0x84, 0xed, 0x57, 0x66, 0x12, 0x3d, 0x86, 0xcd, 0xe2, 0x6a, 0x94, 0x4d, + 0xa7, 0xb5, 0xbc, 0x5b, 0xeb, 0xde, 0x3c, 0xb7, 0x01, 0xb8, 0x1e, 0xcd, 0x1f, 0xe5, 0x8c, 0x47, + 0x4b, 0x73, 0x3c, 0x72, 0xff, 0x59, 0x81, 0xc6, 0xa2, 0xce, 0xa3, 0x3b, 0x00, 0x3c, 0x51, 0xd9, + 0x75, 0x9a, 0x96, 0xf4, 0x96, 0x9a, 0xce, 0xd3, 0x4b, 0xb8, 0x9a, 0xca, 0xf5, 0xad, 0xee, 0xc1, + 0x0a, 0x15, 0x82, 0x0b, 0xe3, 0xb3, 0x90, 0x91, 0x61, 0x4b, 0xee, 0xf4, 0x91, 0x06, 0x3d, 0xbd, + 0x84, 0x53, 0x34, 0xfa, 0x02, 0x6a, 0xd6, 0xb7, 0xb9, 0x4f, 0x30, 0xc6, 0xd7, 0x4a, 0xc6, 0xc7, + 0xe9, 0x12, 0x7d, 0x46, 0x62, 0x1b, 0xd7, 0xe6, 0x63, 0x6e, 0xec, 0x21, 0xac, 0xc4, 0xa7, 0x44, + 0xa6, 0x64, 0xaa, 0x77, 0xdd, 0xf3, 0x68, 0xda, 0x7e, 0xae, 0x91, 0x38, 0x35, 0x40, 0x1f, 0x03, + 0x48, 0x45, 0x84, 0xa2, 0x81, 0x47, 0x94, 0xa5, 0xd2, 0xf5, 0x76, 0xba, 0x80, 0xdb, 0xd9, 0x02, + 0x6e, 0xbf, 0xc8, 0x36, 0x34, 0xae, 0x5a, 0xf4, 0xbe, 0x42, 0x7b, 0x50, 0xc9, 0x16, 0xb3, 0x1d, + 0xad, 0x6b, 0xaf, 0x18, 0x1e, 0x5a, 0x00, 0xce, 0xa1, 0x3a, 0xa2, 0x2f, 0x28, 0xb1, 0x11, 0x57, + 0x2f, 0x8e, 0x68, 0xd1, 0xfb, 0x4a, 0x9b, 0x26, 0x71, 0x90, 0x99, 0xae, 0x5d, 0x6c, 0x6a, 0xd1, + 0xfb, 0x0a, 0xfd, 0x08, 0x6f, 0xe7, 0x3b, 0xdc, 0xf0, 0x27, 0x1f, 0x9f, 0xca, 0xe2, 0xf9, 0xcb, + 0xb6, 0xb8, 0xee, 0xdd, 0x33, 0x8b, 0x7d, 0xea, 0xe0, 0xc6, 0xd9, 0x02, 0x39, 0x7a, 0x0e, 0xc8, + 0xac, 0xbf, 0xa2, 0xe7, 0xaa, 0xf1, 0xdc, 0x2a, 0x7b, 0xd6, 0x0b, 0xb0, 0xe4, 0x75, 0x4b, 0x95, + 0x64, 0xe8, 0x1a, 0x54, 0x02, 0xea, 0x8f, 0x0d, 0xdb, 0x6a, 0xe9, 0x46, 0xd3, 0x67, 0xcd, 0xb2, + 0x0e, 0x34, 0xec, 0xc8, 0x78, 0x3f, 0xf3, 0x81, 0x67, 0x66, 0x4c, 0xc3, 0xd6, 0x0d, 0x6c, 0xdb, + 0xea, 0xbe, 0xe4, 0x83, 0x93, 0x98, 0xfa, 0x7d, 0xc1, 0x7a, 0x9b, 0xb0, 0x61, 0xf9, 0x25, 0xa8, + 0x4c, 0x42, 0xd5, 0xdb, 0x86, 0x4d, 0x45, 0xc4, 0x88, 0xaa, 0x3c, 0x57, 0x37, 0x80, 0xc6, 0xa2, + 0x8a, 0xd1, 0x31, 0xd4, 0xe8, 0x6c, 0xc1, 0xbd, 0xc1, 0x8b, 0x37, 0x6f, 0xee, 0xfe, 0xe1, 0xc0, + 0x56, 0xb9, 0x7c, 0x74, 0x08, 0xeb, 0x3e, 0xf1, 0x4f, 0xa9, 0x27, 0x15, 0x51, 0x89, 0x34, 0x31, + 0xea, 0xdd, 0x77, 0x4a, 0x31, 0x0e, 0xd2, 0xef, 0x93, 0x03, 0x8d, 0x3c, 0x31, 0x40, 0x5c, 0xf3, + 0x67, 0x07, 0xf4, 0x39, 0xd4, 0xec, 0x27, 0x8c, 0x37, 0xa6, 0x53, 0x3b, 0x81, 0xb7, 0x16, 0x3b, + 0xc9, 0x42, 0x63, 0xb0, 0x26, 0x5f, 0xd1, 0x29, 0xba, 0x07, 0x75, 0xff, 0x94, 0xfa, 0xe3, 0x98, + 0xb3, 0x28, 0x9d, 0xf2, 0xf4, 0x25, 0xd9, 0x98, 0x49, 0xfb, 0x82, 0xb9, 0x7f, 0x3a, 0xb0, 0x63, + 0x17, 0xd4, 0xc2, 0x86, 0xbd, 0x37, 0xf7, 0x5c, 0x94, 0x67, 0xb8, 0xf4, 0x42, 0x9c, 0xc0, 0xb6, + 0xfd, 0xb0, 0x0a, 0xbc, 0x8c, 0x56, 0x36, 0xf1, 0xf2, 0x43, 0x73, 0x60, 0x71, 0x59, 0xc8, 0xec, + 0x41, 0xd8, 0xf2, 0x4b, 0x8a, 0xd7, 0xb2, 0x63, 0xf9, 0x35, 0xec, 0x70, 0xfb, 0xb0, 0x53, 0xfe, + 0x9a, 0x32, 0x2f, 0xc5, 0x7f, 0xfc, 0xa2, 0xfa, 0x75, 0x19, 0x6e, 0x2c, 0xf6, 0x2b, 0x63, 0x1e, + 0x49, 0x8a, 0x1e, 0xc0, 0xaa, 0x79, 0x0e, 0xa5, 0x75, 0x7e, 0xb5, 0x3c, 0x27, 0x7d, 0x11, 0xf6, + 0x42, 0x3e, 0xd0, 0xeb, 0x0e, 0x5b, 0x28, 0xda, 0x83, 0xb5, 0x94, 0xca, 0xd2, 0x36, 0xea, 0x5c, + 0xab, 0x0c, 0x8b, 0x3e, 0x81, 0xda, 0x30, 0x09, 0x43, 0xcf, 0x06, 0x5c, 0xbe, 0x60, 0xc3, 0x62, + 0xd0, 0xe8, 0xa3, 0x34, 0xe4, 0xa7, 0xb0, 0x6e, 0x6c, 0xb3, 0xb8, 0x97, 0x2f, 0x32, 0x36, 0xa1, + 0xbe, 0xb1, 0x91, 0xbf, 0x83, 0xad, 0xec, 0x3a, 0xf2, 0x2b, 0xde, 0x32, 0x1e, 0x3e, 0x28, 0x67, + 0x7e, 0x0e, 0xab, 0xf0, 0x66, 0x50, 0x54, 0xa2, 0x87, 0x00, 0xc6, 0xdc, 0x4b, 0x44, 0x28, 0x9b, + 0xdb, 0xe5, 0x9c, 0x52, 0x8f, 0x8f, 0xf5, 0xb1, 0x8f, 0x8f, 0x25, 0xae, 0x1a, 0x4d, 0x5f, 0x84, + 0xb2, 0xf7, 0xd1, 0x0f, 0x7b, 0x23, 0xa6, 0x4e, 0x93, 0x41, 0xdb, 0xe7, 0x93, 0x8e, 0x91, 0x73, + 0x31, 0xea, 0xe4, 0x9f, 0xec, 0x23, 0x1a, 0x75, 0xe2, 0xc1, 0xfd, 0x11, 0xef, 0x14, 0x7f, 0x2e, + 0x06, 0xab, 0x66, 0xc3, 0x3e, 0xf8, 0x37, 0x00, 0x00, 0xff, 0xff, 0x26, 0xae, 0x74, 0xa3, 0xaa, + 0x0c, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.validate.go new file mode 100644 index 0000000000..72b85d59fe --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.validate.go @@ -0,0 +1,1189 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/node_execution.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +// 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{} + + _ = core.NodeExecution_Phase(0) + + _ = core.CatalogCacheStatus(0) +) + +// define the regex for a UUID once up-front +var _node_execution_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 NodeExecutionGetRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionGetRequestValidationError is the validation error returned by +// NodeExecutionGetRequest.Validate if the designated constraints aren't met. +type NodeExecutionGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionGetRequestValidationError) ErrorName() string { + return "NodeExecutionGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionGetRequestValidationError{} + +// Validate checks the field values on NodeExecutionListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkflowExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionListRequestValidationError{ + field: "WorkflowExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for UniqueParentId + + return nil +} + +// NodeExecutionListRequestValidationError is the validation error returned by +// NodeExecutionListRequest.Validate if the designated constraints aren't met. +type NodeExecutionListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionListRequestValidationError) ErrorName() string { + return "NodeExecutionListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionListRequestValidationError{} + +// Validate checks the field values on NodeExecutionForTaskListRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionForTaskListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTaskExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionForTaskListRequestValidationError{ + field: "TaskExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionForTaskListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionForTaskListRequestValidationError is the validation error +// returned by NodeExecutionForTaskListRequest.Validate if the designated +// constraints aren't met. +type NodeExecutionForTaskListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionForTaskListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionForTaskListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionForTaskListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionForTaskListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionForTaskListRequestValidationError) ErrorName() string { + return "NodeExecutionForTaskListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionForTaskListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionForTaskListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionForTaskListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionForTaskListRequestValidationError{} + +// Validate checks the field values on NodeExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *NodeExecution) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for InputUri + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionValidationError is the validation error returned by +// NodeExecution.Validate if the designated constraints aren't met. +type NodeExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionValidationError) ErrorName() string { return "NodeExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e NodeExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionValidationError{} + +// Validate checks the field values on NodeExecutionMetaData with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionMetaData) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RetryGroup + + // no validation rules for IsParentNode + + // no validation rules for SpecNodeId + + // no validation rules for IsDynamic + + return nil +} + +// NodeExecutionMetaDataValidationError is the validation error returned by +// NodeExecutionMetaData.Validate if the designated constraints aren't met. +type NodeExecutionMetaDataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionMetaDataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionMetaDataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionMetaDataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionMetaDataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionMetaDataValidationError) ErrorName() string { + return "NodeExecutionMetaDataValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionMetaDataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionMetaData.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionMetaDataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionMetaDataValidationError{} + +// Validate checks the field values on NodeExecutionList with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *NodeExecutionList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNodeExecutions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionListValidationError{ + field: fmt.Sprintf("NodeExecutions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// NodeExecutionListValidationError is the validation error returned by +// NodeExecutionList.Validate if the designated constraints aren't met. +type NodeExecutionListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionListValidationError) ErrorName() string { + return "NodeExecutionListValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionListValidationError{} + +// Validate checks the field values on NodeExecutionClosure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionClosure) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Phase + + if v, ok := interface{}(m.GetStartedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "StartedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DeckUri + + // no validation rules for DynamicJobSpecUri + + switch m.OutputResult.(type) { + + case *NodeExecutionClosure_OutputUri: + // no validation rules for OutputUri + + case *NodeExecutionClosure_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *NodeExecutionClosure_OutputData: + + if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "OutputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.TargetMetadata.(type) { + + case *NodeExecutionClosure_WorkflowNodeMetadata: + + if v, ok := interface{}(m.GetWorkflowNodeMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "WorkflowNodeMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *NodeExecutionClosure_TaskNodeMetadata: + + if v, ok := interface{}(m.GetTaskNodeMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "TaskNodeMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NodeExecutionClosureValidationError is the validation error returned by +// NodeExecutionClosure.Validate if the designated constraints aren't met. +type NodeExecutionClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionClosureValidationError) ErrorName() string { + return "NodeExecutionClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionClosureValidationError{} + +// Validate checks the field values on WorkflowNodeMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowNodeMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeMetadataValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowNodeMetadataValidationError is the validation error returned by +// WorkflowNodeMetadata.Validate if the designated constraints aren't met. +type WorkflowNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowNodeMetadataValidationError) ErrorName() string { + return "WorkflowNodeMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowNodeMetadataValidationError{} + +// Validate checks the field values on TaskNodeMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskNodeMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for CacheStatus + + if v, ok := interface{}(m.GetCatalogKey()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskNodeMetadataValidationError{ + field: "CatalogKey", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for CheckpointUri + + return nil +} + +// TaskNodeMetadataValidationError is the validation error returned by +// TaskNodeMetadata.Validate if the designated constraints aren't met. +type TaskNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskNodeMetadataValidationError) ErrorName() string { return "TaskNodeMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e TaskNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskNodeMetadataValidationError{} + +// Validate checks the field values on DynamicWorkflowNodeMetadata with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DynamicWorkflowNodeMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicWorkflowNodeMetadataValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCompiledWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicWorkflowNodeMetadataValidationError{ + field: "CompiledWorkflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DynamicJobSpecUri + + return nil +} + +// DynamicWorkflowNodeMetadataValidationError is the validation error returned +// by DynamicWorkflowNodeMetadata.Validate if the designated constraints +// aren't met. +type DynamicWorkflowNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DynamicWorkflowNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DynamicWorkflowNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DynamicWorkflowNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DynamicWorkflowNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DynamicWorkflowNodeMetadataValidationError) ErrorName() string { + return "DynamicWorkflowNodeMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e DynamicWorkflowNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDynamicWorkflowNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DynamicWorkflowNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DynamicWorkflowNodeMetadataValidationError{} + +// Validate checks the field values on NodeExecutionGetDataRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionGetDataRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionGetDataRequestValidationError is the validation error returned +// by NodeExecutionGetDataRequest.Validate if the designated constraints +// aren't met. +type NodeExecutionGetDataRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionGetDataRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionGetDataRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionGetDataRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionGetDataRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionGetDataRequestValidationError) ErrorName() string { + return "NodeExecutionGetDataRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionGetDataRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionGetDataRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionGetDataRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionGetDataRequestValidationError{} + +// Validate checks the field values on NodeExecutionGetDataResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionGetDataResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFullInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "FullInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFullOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "FullOutputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDynamicWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "DynamicWorkflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFlyteUrls()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "FlyteUrls", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionGetDataResponseValidationError is the validation error returned +// by NodeExecutionGetDataResponse.Validate if the designated constraints +// aren't met. +type NodeExecutionGetDataResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionGetDataResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionGetDataResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionGetDataResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionGetDataResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionGetDataResponseValidationError) ErrorName() string { + return "NodeExecutionGetDataResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionGetDataResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionGetDataResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionGetDataResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionGetDataResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json new file mode 100644 index 0000000000..3562c6f709 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/node_execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go new file mode 100644 index 0000000000..954a303a6c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/notification.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Represents the Email object that is sent to a publisher/subscriber +// to forward the notification. +// Note: This is internal to Admin and doesn't need to be exposed to other components. +type EmailMessage struct { + // The list of email addresses to receive an email with the content populated in the other fields. + // Currently, each email recipient will receive its own email. + // This populates the TO field. + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + // The email of the sender. + // This populates the FROM field. + SenderEmail string `protobuf:"bytes,2,opt,name=sender_email,json=senderEmail,proto3" json:"sender_email,omitempty"` + // The content of the subject line. + // This populates the SUBJECT field. + SubjectLine string `protobuf:"bytes,3,opt,name=subject_line,json=subjectLine,proto3" json:"subject_line,omitempty"` + // The content of the email body. + // This populates the BODY field. + Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EmailMessage) Reset() { *m = EmailMessage{} } +func (m *EmailMessage) String() string { return proto.CompactTextString(m) } +func (*EmailMessage) ProtoMessage() {} +func (*EmailMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_cbe32eb21e00da05, []int{0} +} + +func (m *EmailMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmailMessage.Unmarshal(m, b) +} +func (m *EmailMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmailMessage.Marshal(b, m, deterministic) +} +func (m *EmailMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmailMessage.Merge(m, src) +} +func (m *EmailMessage) XXX_Size() int { + return xxx_messageInfo_EmailMessage.Size(m) +} +func (m *EmailMessage) XXX_DiscardUnknown() { + xxx_messageInfo_EmailMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_EmailMessage proto.InternalMessageInfo + +func (m *EmailMessage) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +func (m *EmailMessage) GetSenderEmail() string { + if m != nil { + return m.SenderEmail + } + return "" +} + +func (m *EmailMessage) GetSubjectLine() string { + if m != nil { + return m.SubjectLine + } + return "" +} + +func (m *EmailMessage) GetBody() string { + if m != nil { + return m.Body + } + return "" +} + +func init() { + proto.RegisterType((*EmailMessage)(nil), "flyteidl.admin.EmailMessage") +} + +func init() { proto.RegisterFile("flyteidl/admin/notification.proto", fileDescriptor_cbe32eb21e00da05) } + +var fileDescriptor_cbe32eb21e00da05 = []byte{ + // 208 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x3f, 0x4f, 0xc3, 0x30, + 0x10, 0x47, 0x15, 0x5a, 0x21, 0xd5, 0x54, 0x80, 0x3c, 0x65, 0x6c, 0x99, 0xca, 0x40, 0x3c, 0x20, + 0xc4, 0x8e, 0xc4, 0x06, 0x4b, 0x47, 0x96, 0xca, 0x7f, 0x2e, 0xe6, 0x90, 0x73, 0x17, 0xd9, 0xce, + 0x90, 0xcf, 0xc1, 0x17, 0x46, 0x38, 0x81, 0xa8, 0x9b, 0xf5, 0x7e, 0xcf, 0xd2, 0x3d, 0xb1, 0x6f, + 0xc3, 0x98, 0x01, 0x5d, 0x50, 0xda, 0x75, 0x48, 0x8a, 0x38, 0x63, 0x8b, 0x56, 0x67, 0x64, 0x6a, + 0xfa, 0xc8, 0x99, 0xe5, 0xf5, 0x9f, 0xd2, 0x14, 0xe5, 0xee, 0xbb, 0x12, 0xdb, 0xd7, 0x4e, 0x63, + 0x78, 0x87, 0x94, 0xb4, 0x07, 0x79, 0x2f, 0x6e, 0x23, 0x58, 0xec, 0x11, 0x28, 0xa7, 0x13, 0xfc, + 0x4e, 0x75, 0xb5, 0x5b, 0x1d, 0x36, 0xc7, 0x9b, 0x85, 0x97, 0x1f, 0x72, 0x2f, 0xb6, 0x09, 0xc8, + 0x41, 0x9c, 0xb5, 0x8b, 0x5d, 0x75, 0xd8, 0x1c, 0xaf, 0x26, 0xb6, 0x28, 0x83, 0xf9, 0x02, 0x9b, + 0x4f, 0x01, 0x09, 0xea, 0xd5, 0xac, 0x4c, 0xec, 0x0d, 0x09, 0xa4, 0x14, 0x6b, 0xc3, 0x6e, 0xac, + 0xd7, 0x65, 0x2a, 0xef, 0x97, 0xe7, 0x8f, 0x27, 0x8f, 0xf9, 0x73, 0x30, 0x8d, 0xe5, 0x4e, 0x95, + 0x93, 0x39, 0x7a, 0xf5, 0x9f, 0xe7, 0x81, 0x54, 0x6f, 0x1e, 0x3c, 0xab, 0xf3, 0x62, 0x73, 0x59, + 0x2a, 0x1f, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x59, 0x6f, 0x88, 0xf9, 0x0a, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.validate.go new file mode 100644 index 0000000000..46b7a7d305 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.validate.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/notification.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 _notification_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 EmailMessage with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *EmailMessage) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SenderEmail + + // no validation rules for SubjectLine + + // no validation rules for Body + + return nil +} + +// EmailMessageValidationError is the validation error returned by +// EmailMessage.Validate if the designated constraints aren't met. +type EmailMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EmailMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EmailMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EmailMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EmailMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EmailMessageValidationError) ErrorName() string { return "EmailMessageValidationError" } + +// Error satisfies the builtin error interface +func (e EmailMessageValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEmailMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EmailMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EmailMessageValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json new file mode 100644 index 0000000000..919aad7298 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/notification.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go new file mode 100644 index 0000000000..9c5e2a88c0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go @@ -0,0 +1,466 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/project.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// The state of the project is used to control its visibility in the UI and validity. +type Project_ProjectState int32 + +const ( + // By default, all projects are considered active. + Project_ACTIVE Project_ProjectState = 0 + // Archived projects are no longer visible in the UI and no longer valid. + Project_ARCHIVED Project_ProjectState = 1 + // System generated projects that aren't explicitly created or managed by a user. + Project_SYSTEM_GENERATED Project_ProjectState = 2 +) + +var Project_ProjectState_name = map[int32]string{ + 0: "ACTIVE", + 1: "ARCHIVED", + 2: "SYSTEM_GENERATED", +} + +var Project_ProjectState_value = map[string]int32{ + "ACTIVE": 0, + "ARCHIVED": 1, + "SYSTEM_GENERATED": 2, +} + +func (x Project_ProjectState) String() string { + return proto.EnumName(Project_ProjectState_name, int32(x)) +} + +func (Project_ProjectState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_2db065ce03bf106d, []int{1, 0} +} + +// Namespace within a project commonly used to differentiate between different service instances. +// e.g. "production", "development", etc. +type Domain struct { + // Globally unique domain name. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Display name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,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_2db065ce03bf106d, []int{0} +} + +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) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Domain) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Top-level namespace used to classify different entities like workflows and executions. +type Project struct { + // Globally unique project name. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Display name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Domains []*Domain `protobuf:"bytes,3,rep,name=domains,proto3" json:"domains,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Leverage Labels from flyteidl.admin.common.proto to + // tag projects with ownership information. + Labels *Labels `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` + State Project_ProjectState `protobuf:"varint,6,opt,name=state,proto3,enum=flyteidl.admin.Project_ProjectState" json:"state,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_2db065ce03bf106d, []int{1} +} + +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) GetDomains() []*Domain { + if m != nil { + return m.Domains + } + return nil +} + +func (m *Project) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *Project) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + +func (m *Project) GetState() Project_ProjectState { + if m != nil { + return m.State + } + return Project_ACTIVE +} + +// Represents a list of projects. +// See :ref:`ref_flyteidl.admin.Project` for more details +type Projects struct { + Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,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_2db065ce03bf106d, []int{2} +} + +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 +} + +func (m *Projects) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Request to retrieve a list of projects matching specified filters. +// See :ref:`ref_flyteidl.admin.Project` for more details +type ProjectListRequest struct { + // Indicates the number of projects to be returned. + // +required + Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,3,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,4,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectListRequest) Reset() { *m = ProjectListRequest{} } +func (m *ProjectListRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectListRequest) ProtoMessage() {} +func (*ProjectListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2db065ce03bf106d, []int{3} +} + +func (m *ProjectListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectListRequest.Unmarshal(m, b) +} +func (m *ProjectListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectListRequest.Marshal(b, m, deterministic) +} +func (m *ProjectListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectListRequest.Merge(m, src) +} +func (m *ProjectListRequest) XXX_Size() int { + return xxx_messageInfo_ProjectListRequest.Size(m) +} +func (m *ProjectListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectListRequest proto.InternalMessageInfo + +func (m *ProjectListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ProjectListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *ProjectListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *ProjectListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Adds a new user-project within the Flyte deployment. +// See :ref:`ref_flyteidl.admin.Project` for more details +type ProjectRegisterRequest struct { + // +required + Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRegisterRequest) Reset() { *m = ProjectRegisterRequest{} } +func (m *ProjectRegisterRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectRegisterRequest) ProtoMessage() {} +func (*ProjectRegisterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2db065ce03bf106d, []int{4} +} + +func (m *ProjectRegisterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRegisterRequest.Unmarshal(m, b) +} +func (m *ProjectRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRegisterRequest.Marshal(b, m, deterministic) +} +func (m *ProjectRegisterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRegisterRequest.Merge(m, src) +} +func (m *ProjectRegisterRequest) XXX_Size() int { + return xxx_messageInfo_ProjectRegisterRequest.Size(m) +} +func (m *ProjectRegisterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRegisterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRegisterRequest proto.InternalMessageInfo + +func (m *ProjectRegisterRequest) GetProject() *Project { + if m != nil { + return m.Project + } + return nil +} + +// Purposefully empty, may be updated in the future. +type ProjectRegisterResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRegisterResponse) Reset() { *m = ProjectRegisterResponse{} } +func (m *ProjectRegisterResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectRegisterResponse) ProtoMessage() {} +func (*ProjectRegisterResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2db065ce03bf106d, []int{5} +} + +func (m *ProjectRegisterResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRegisterResponse.Unmarshal(m, b) +} +func (m *ProjectRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRegisterResponse.Marshal(b, m, deterministic) +} +func (m *ProjectRegisterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRegisterResponse.Merge(m, src) +} +func (m *ProjectRegisterResponse) XXX_Size() int { + return xxx_messageInfo_ProjectRegisterResponse.Size(m) +} +func (m *ProjectRegisterResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRegisterResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRegisterResponse proto.InternalMessageInfo + +// Purposefully empty, may be updated in the future. +type ProjectUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectUpdateResponse) Reset() { *m = ProjectUpdateResponse{} } +func (m *ProjectUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectUpdateResponse) ProtoMessage() {} +func (*ProjectUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2db065ce03bf106d, []int{6} +} + +func (m *ProjectUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectUpdateResponse.Unmarshal(m, b) +} +func (m *ProjectUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectUpdateResponse.Marshal(b, m, deterministic) +} +func (m *ProjectUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectUpdateResponse.Merge(m, src) +} +func (m *ProjectUpdateResponse) XXX_Size() int { + return xxx_messageInfo_ProjectUpdateResponse.Size(m) +} +func (m *ProjectUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectUpdateResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("flyteidl.admin.Project_ProjectState", Project_ProjectState_name, Project_ProjectState_value) + proto.RegisterType((*Domain)(nil), "flyteidl.admin.Domain") + proto.RegisterType((*Project)(nil), "flyteidl.admin.Project") + proto.RegisterType((*Projects)(nil), "flyteidl.admin.Projects") + proto.RegisterType((*ProjectListRequest)(nil), "flyteidl.admin.ProjectListRequest") + proto.RegisterType((*ProjectRegisterRequest)(nil), "flyteidl.admin.ProjectRegisterRequest") + proto.RegisterType((*ProjectRegisterResponse)(nil), "flyteidl.admin.ProjectRegisterResponse") + proto.RegisterType((*ProjectUpdateResponse)(nil), "flyteidl.admin.ProjectUpdateResponse") +} + +func init() { proto.RegisterFile("flyteidl/admin/project.proto", fileDescriptor_2db065ce03bf106d) } + +var fileDescriptor_2db065ce03bf106d = []byte{ + // 459 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0xc7, 0xb1, 0xdb, 0xd8, 0x61, 0x52, 0xa2, 0x68, 0x14, 0x1a, 0xf3, 0x71, 0xb0, 0x2c, 0x0e, + 0x39, 0x50, 0x1b, 0x52, 0x21, 0x24, 0x0e, 0x48, 0x69, 0x63, 0x41, 0x45, 0x41, 0x68, 0x93, 0x56, + 0x82, 0x4b, 0xe5, 0x8f, 0xad, 0x59, 0xb0, 0xbd, 0xc6, 0xbb, 0x3d, 0xe4, 0x11, 0x78, 0x18, 0xde, + 0x11, 0x79, 0xbd, 0xae, 0xda, 0x10, 0x50, 0x4f, 0xf6, 0xcc, 0xfc, 0x76, 0xe6, 0x3f, 0x33, 0xbb, + 0xf0, 0xf4, 0x32, 0x5f, 0x4b, 0xca, 0xd2, 0x3c, 0x88, 0xd2, 0x82, 0x95, 0x41, 0x55, 0xf3, 0xef, + 0x34, 0x91, 0x7e, 0x55, 0x73, 0xc9, 0x71, 0xd8, 0x45, 0x7d, 0x15, 0x7d, 0xfc, 0x64, 0x83, 0x4e, + 0x78, 0x51, 0xf0, 0xb2, 0x85, 0xbd, 0xe7, 0x60, 0x2d, 0x78, 0x11, 0xb1, 0x12, 0x87, 0x60, 0xb2, + 0xd4, 0x31, 0x5c, 0x63, 0x7a, 0x9f, 0x98, 0x2c, 0x45, 0x84, 0xdd, 0x32, 0x2a, 0xa8, 0x63, 0x2a, + 0x8f, 0xfa, 0xf7, 0x7e, 0x9b, 0x60, 0x7f, 0x6e, 0x8b, 0xdd, 0x85, 0xc7, 0x17, 0x60, 0xa7, 0x2a, + 0xbb, 0x70, 0x76, 0xdc, 0x9d, 0xe9, 0x60, 0xb6, 0xef, 0xdf, 0x16, 0xe7, 0xb7, 0xc5, 0x49, 0x87, + 0xa1, 0x0b, 0x83, 0x94, 0x8a, 0xa4, 0x66, 0x95, 0x64, 0xbc, 0x74, 0x76, 0x55, 0xb2, 0x9b, 0x2e, + 0xf4, 0xc1, 0xca, 0xa3, 0x98, 0xe6, 0xc2, 0xe9, 0xb9, 0xc6, 0xb6, 0x94, 0xa7, 0x2a, 0x4a, 0x34, + 0x85, 0x6f, 0xa0, 0x27, 0x64, 0x24, 0xa9, 0x63, 0xb9, 0xc6, 0x74, 0x38, 0x7b, 0xb6, 0x89, 0xeb, + 0x7e, 0xba, 0xef, 0xb2, 0x61, 0x49, 0x7b, 0xc4, 0x7b, 0x0b, 0x7b, 0x37, 0xdd, 0x08, 0x60, 0xcd, + 0x8f, 0x57, 0x27, 0xe7, 0xe1, 0xe8, 0x1e, 0xee, 0x41, 0x7f, 0x4e, 0x8e, 0xdf, 0x9f, 0x9c, 0x87, + 0x8b, 0x91, 0x81, 0x63, 0x18, 0x2d, 0xbf, 0x2c, 0x57, 0xe1, 0xc7, 0x8b, 0x77, 0xe1, 0xa7, 0x90, + 0xcc, 0x57, 0xe1, 0x62, 0x64, 0x7a, 0x67, 0xd0, 0xd7, 0xe7, 0x05, 0x1e, 0x42, 0x5f, 0xef, 0x49, + 0x38, 0x86, 0x1a, 0xc6, 0xe4, 0x1f, 0x52, 0xc8, 0x35, 0x88, 0x63, 0xe8, 0x49, 0xfe, 0x83, 0x96, + 0x7a, 0xaa, 0xad, 0xe1, 0xfd, 0x32, 0x00, 0x35, 0x7b, 0xca, 0x84, 0x24, 0xf4, 0xe7, 0x15, 0x15, + 0xb2, 0x81, 0x73, 0x56, 0x30, 0xa9, 0x96, 0xf2, 0x80, 0xb4, 0xc6, 0xf6, 0x14, 0xe8, 0x80, 0x7d, + 0xc9, 0x72, 0x49, 0xeb, 0x66, 0x33, 0x8d, 0xbf, 0x33, 0xf1, 0x00, 0x6c, 0xc1, 0x6b, 0x79, 0x11, + 0xaf, 0xd5, 0xf4, 0x07, 0xb3, 0xf1, 0xa6, 0xcc, 0x25, 0xaf, 0x25, 0xb1, 0x1a, 0xe8, 0x68, 0xed, + 0x7d, 0x80, 0xfd, 0x4e, 0x36, 0xcd, 0x98, 0x90, 0xb4, 0xee, 0xe4, 0xbc, 0x04, 0x5b, 0xf7, 0xa1, + 0x04, 0xfd, 0xa7, 0xdf, 0x8e, 0xf3, 0x1e, 0xc1, 0xe4, 0xaf, 0x64, 0xa2, 0xe2, 0xa5, 0xa0, 0xde, + 0x04, 0x1e, 0xea, 0xd0, 0x59, 0x95, 0x36, 0x2b, 0xd2, 0x81, 0xa3, 0xd7, 0x5f, 0x5f, 0x65, 0x4c, + 0x7e, 0xbb, 0x8a, 0xfd, 0x84, 0x17, 0x81, 0xaa, 0xc0, 0xeb, 0x2c, 0xb8, 0xbe, 0xf4, 0x19, 0x2d, + 0x83, 0x2a, 0x3e, 0xc8, 0x78, 0x70, 0xfb, 0x1d, 0xc4, 0x96, 0x7a, 0x01, 0x87, 0x7f, 0x02, 0x00, + 0x00, 0xff, 0xff, 0xff, 0xe4, 0x77, 0x94, 0x4e, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.validate.go new file mode 100644 index 0000000000..7dcfc2d57e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.validate.go @@ -0,0 +1,577 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/project.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 _project_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 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 + } + + // no validation rules for Id + + // no validation rules for Name + + 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 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 + + for idx, item := range m.GetDomains() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectValidationError{ + field: fmt.Sprintf("Domains[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Description + + if v, ok := interface{}(m.GetLabels()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectValidationError{ + field: "Labels", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for State + + 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 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, + } + } + } + + } + + // no validation rules for Token + + 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 ProjectListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectListRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectListRequestValidationError is the validation error returned by +// ProjectListRequest.Validate if the designated constraints aren't met. +type ProjectListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectListRequestValidationError) ErrorName() string { + return "ProjectListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectListRequestValidationError{} + +// Validate checks the field values on ProjectRegisterRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectRegisterRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetProject()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectRegisterRequestValidationError{ + field: "Project", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectRegisterRequestValidationError is the validation error returned by +// ProjectRegisterRequest.Validate if the designated constraints aren't met. +type ProjectRegisterRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectRegisterRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectRegisterRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectRegisterRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectRegisterRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectRegisterRequestValidationError) ErrorName() string { + return "ProjectRegisterRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectRegisterRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectRegisterRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectRegisterRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectRegisterRequestValidationError{} + +// Validate checks the field values on ProjectRegisterResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectRegisterResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectRegisterResponseValidationError is the validation error returned by +// ProjectRegisterResponse.Validate if the designated constraints aren't met. +type ProjectRegisterResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectRegisterResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectRegisterResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectRegisterResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectRegisterResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectRegisterResponseValidationError) ErrorName() string { + return "ProjectRegisterResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectRegisterResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectRegisterResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectRegisterResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectRegisterResponseValidationError{} + +// Validate checks the field values on ProjectUpdateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectUpdateResponseValidationError is the validation error returned by +// ProjectUpdateResponse.Validate if the designated constraints aren't met. +type ProjectUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectUpdateResponseValidationError) ErrorName() string { + return "ProjectUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectUpdateResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json new file mode 100644 index 0000000000..5eae55af8c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/project.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go new file mode 100644 index 0000000000..4cccaec61d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go @@ -0,0 +1,362 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/project_attributes.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Defines a set of custom matching attributes at the project level. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributes struct { + // Unique project id for which this set of attributes will be applied. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + MatchingAttributes *MatchingAttributes `protobuf:"bytes,2,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectAttributes) Reset() { *m = ProjectAttributes{} } +func (m *ProjectAttributes) String() string { return proto.CompactTextString(m) } +func (*ProjectAttributes) ProtoMessage() {} +func (*ProjectAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8dc9faa9640256, []int{0} +} + +func (m *ProjectAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectAttributes.Unmarshal(m, b) +} +func (m *ProjectAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectAttributes.Marshal(b, m, deterministic) +} +func (m *ProjectAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectAttributes.Merge(m, src) +} +func (m *ProjectAttributes) XXX_Size() int { + return xxx_messageInfo_ProjectAttributes.Size(m) +} +func (m *ProjectAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectAttributes proto.InternalMessageInfo + +func (m *ProjectAttributes) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ProjectAttributes) GetMatchingAttributes() *MatchingAttributes { + if m != nil { + return m.MatchingAttributes + } + return nil +} + +// Sets custom attributes for a project +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesUpdateRequest struct { + // +required + Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectAttributesUpdateRequest) Reset() { *m = ProjectAttributesUpdateRequest{} } +func (m *ProjectAttributesUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectAttributesUpdateRequest) ProtoMessage() {} +func (*ProjectAttributesUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8dc9faa9640256, []int{1} +} + +func (m *ProjectAttributesUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectAttributesUpdateRequest.Unmarshal(m, b) +} +func (m *ProjectAttributesUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectAttributesUpdateRequest.Marshal(b, m, deterministic) +} +func (m *ProjectAttributesUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectAttributesUpdateRequest.Merge(m, src) +} +func (m *ProjectAttributesUpdateRequest) XXX_Size() int { + return xxx_messageInfo_ProjectAttributesUpdateRequest.Size(m) +} +func (m *ProjectAttributesUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectAttributesUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectAttributesUpdateRequest proto.InternalMessageInfo + +func (m *ProjectAttributesUpdateRequest) GetAttributes() *ProjectAttributes { + if m != nil { + return m.Attributes + } + return nil +} + +// Purposefully empty, may be populated in the future. +type ProjectAttributesUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectAttributesUpdateResponse) Reset() { *m = ProjectAttributesUpdateResponse{} } +func (m *ProjectAttributesUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectAttributesUpdateResponse) ProtoMessage() {} +func (*ProjectAttributesUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8dc9faa9640256, []int{2} +} + +func (m *ProjectAttributesUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectAttributesUpdateResponse.Unmarshal(m, b) +} +func (m *ProjectAttributesUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectAttributesUpdateResponse.Marshal(b, m, deterministic) +} +func (m *ProjectAttributesUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectAttributesUpdateResponse.Merge(m, src) +} +func (m *ProjectAttributesUpdateResponse) XXX_Size() int { + return xxx_messageInfo_ProjectAttributesUpdateResponse.Size(m) +} +func (m *ProjectAttributesUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectAttributesUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectAttributesUpdateResponse proto.InternalMessageInfo + +// Request to get an individual project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesGetRequest struct { + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Which type of matchable attributes to return. + // +required + ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectAttributesGetRequest) Reset() { *m = ProjectAttributesGetRequest{} } +func (m *ProjectAttributesGetRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectAttributesGetRequest) ProtoMessage() {} +func (*ProjectAttributesGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8dc9faa9640256, []int{3} +} + +func (m *ProjectAttributesGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectAttributesGetRequest.Unmarshal(m, b) +} +func (m *ProjectAttributesGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectAttributesGetRequest.Marshal(b, m, deterministic) +} +func (m *ProjectAttributesGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectAttributesGetRequest.Merge(m, src) +} +func (m *ProjectAttributesGetRequest) XXX_Size() int { + return xxx_messageInfo_ProjectAttributesGetRequest.Size(m) +} +func (m *ProjectAttributesGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectAttributesGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectAttributesGetRequest proto.InternalMessageInfo + +func (m *ProjectAttributesGetRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ProjectAttributesGetRequest) GetResourceType() MatchableResource { + if m != nil { + return m.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +// Response to get an individual project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesGetResponse struct { + Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectAttributesGetResponse) Reset() { *m = ProjectAttributesGetResponse{} } +func (m *ProjectAttributesGetResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectAttributesGetResponse) ProtoMessage() {} +func (*ProjectAttributesGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8dc9faa9640256, []int{4} +} + +func (m *ProjectAttributesGetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectAttributesGetResponse.Unmarshal(m, b) +} +func (m *ProjectAttributesGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectAttributesGetResponse.Marshal(b, m, deterministic) +} +func (m *ProjectAttributesGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectAttributesGetResponse.Merge(m, src) +} +func (m *ProjectAttributesGetResponse) XXX_Size() int { + return xxx_messageInfo_ProjectAttributesGetResponse.Size(m) +} +func (m *ProjectAttributesGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectAttributesGetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectAttributesGetResponse proto.InternalMessageInfo + +func (m *ProjectAttributesGetResponse) GetAttributes() *ProjectAttributes { + if m != nil { + return m.Attributes + } + return nil +} + +// Request to delete a set matchable project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesDeleteRequest struct { + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Which type of matchable attributes to delete. + // +required + ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectAttributesDeleteRequest) Reset() { *m = ProjectAttributesDeleteRequest{} } +func (m *ProjectAttributesDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectAttributesDeleteRequest) ProtoMessage() {} +func (*ProjectAttributesDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8dc9faa9640256, []int{5} +} + +func (m *ProjectAttributesDeleteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectAttributesDeleteRequest.Unmarshal(m, b) +} +func (m *ProjectAttributesDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectAttributesDeleteRequest.Marshal(b, m, deterministic) +} +func (m *ProjectAttributesDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectAttributesDeleteRequest.Merge(m, src) +} +func (m *ProjectAttributesDeleteRequest) XXX_Size() int { + return xxx_messageInfo_ProjectAttributesDeleteRequest.Size(m) +} +func (m *ProjectAttributesDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectAttributesDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectAttributesDeleteRequest proto.InternalMessageInfo + +func (m *ProjectAttributesDeleteRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ProjectAttributesDeleteRequest) GetResourceType() MatchableResource { + if m != nil { + return m.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +// Purposefully empty, may be populated in the future. +type ProjectAttributesDeleteResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectAttributesDeleteResponse) Reset() { *m = ProjectAttributesDeleteResponse{} } +func (m *ProjectAttributesDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectAttributesDeleteResponse) ProtoMessage() {} +func (*ProjectAttributesDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8dc9faa9640256, []int{6} +} + +func (m *ProjectAttributesDeleteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectAttributesDeleteResponse.Unmarshal(m, b) +} +func (m *ProjectAttributesDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectAttributesDeleteResponse.Marshal(b, m, deterministic) +} +func (m *ProjectAttributesDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectAttributesDeleteResponse.Merge(m, src) +} +func (m *ProjectAttributesDeleteResponse) XXX_Size() int { + return xxx_messageInfo_ProjectAttributesDeleteResponse.Size(m) +} +func (m *ProjectAttributesDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectAttributesDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectAttributesDeleteResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*ProjectAttributes)(nil), "flyteidl.admin.ProjectAttributes") + proto.RegisterType((*ProjectAttributesUpdateRequest)(nil), "flyteidl.admin.ProjectAttributesUpdateRequest") + proto.RegisterType((*ProjectAttributesUpdateResponse)(nil), "flyteidl.admin.ProjectAttributesUpdateResponse") + proto.RegisterType((*ProjectAttributesGetRequest)(nil), "flyteidl.admin.ProjectAttributesGetRequest") + proto.RegisterType((*ProjectAttributesGetResponse)(nil), "flyteidl.admin.ProjectAttributesGetResponse") + proto.RegisterType((*ProjectAttributesDeleteRequest)(nil), "flyteidl.admin.ProjectAttributesDeleteRequest") + proto.RegisterType((*ProjectAttributesDeleteResponse)(nil), "flyteidl.admin.ProjectAttributesDeleteResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/project_attributes.proto", fileDescriptor_cb8dc9faa9640256) +} + +var fileDescriptor_cb8dc9faa9640256 = []byte{ + // 314 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x31, 0x4f, 0xc3, 0x30, + 0x10, 0x85, 0x65, 0x06, 0x10, 0x06, 0x2a, 0x11, 0x96, 0x0a, 0x10, 0xb4, 0x5e, 0xe8, 0x42, 0x2c, + 0x81, 0x10, 0x73, 0x11, 0x82, 0xa9, 0x12, 0x32, 0xb0, 0xb0, 0x54, 0x4e, 0x7a, 0xa4, 0x41, 0x49, + 0x6c, 0x9c, 0xcb, 0x90, 0x09, 0xa9, 0xbf, 0x1c, 0xc9, 0x89, 0xdb, 0xb4, 0x49, 0x37, 0x18, 0x13, + 0xbd, 0x7b, 0xef, 0xf3, 0xbb, 0xa3, 0x57, 0x9f, 0x49, 0x89, 0x10, 0xcf, 0x12, 0x2e, 0x67, 0x69, + 0x9c, 0x71, 0x6d, 0xd4, 0x17, 0x84, 0x38, 0x95, 0x88, 0x26, 0x0e, 0x0a, 0x84, 0xdc, 0xd7, 0x46, + 0xa1, 0xf2, 0x7a, 0x4e, 0xe8, 0x5b, 0xe1, 0xe9, 0xe6, 0x60, 0x2a, 0x31, 0x9c, 0xcb, 0x20, 0x81, + 0xa9, 0x81, 0x5c, 0x15, 0x26, 0x84, 0x6a, 0x90, 0x2d, 0x08, 0x3d, 0x7e, 0xa9, 0x5c, 0xc7, 0x4b, + 0x53, 0xaf, 0x4f, 0xf7, 0xea, 0xa8, 0x3e, 0x19, 0x90, 0xd1, 0xbe, 0x70, 0x9f, 0xde, 0x2b, 0x3d, + 0xb1, 0x5e, 0x71, 0x16, 0x35, 0x28, 0xfa, 0x3b, 0x03, 0x32, 0x3a, 0xb8, 0x61, 0xfe, 0x3a, 0x86, + 0x3f, 0xa9, 0xa5, 0x2b, 0x6b, 0xe1, 0xa5, 0xad, 0x7f, 0x2c, 0xa4, 0x17, 0x2d, 0x86, 0x77, 0x3d, + 0x93, 0x08, 0x02, 0xbe, 0x0b, 0xc8, 0xd1, 0x1b, 0x53, 0xda, 0x48, 0x23, 0x36, 0x6d, 0xb8, 0x99, + 0xd6, 0xf2, 0x10, 0x8d, 0x21, 0x36, 0xa4, 0x97, 0x5b, 0x43, 0x72, 0xad, 0xb2, 0x1c, 0xd8, 0x0f, + 0x3d, 0x6b, 0x49, 0x9e, 0x01, 0x1d, 0xc4, 0xf6, 0x56, 0x9e, 0xe8, 0x91, 0xeb, 0x75, 0x8a, 0xa5, + 0x06, 0xdb, 0x47, 0xaf, 0x4d, 0x38, 0x71, 0x6b, 0x10, 0xb5, 0x5a, 0x1c, 0xba, 0xb9, 0xb7, 0x52, + 0x03, 0x93, 0xf4, 0xbc, 0x1b, 0xa0, 0x02, 0xfc, 0x8b, 0x1a, 0x16, 0xa4, 0xa3, 0xec, 0x47, 0x48, + 0x60, 0x55, 0xf6, 0xff, 0xbf, 0xb3, 0x6b, 0x17, 0x8e, 0xa1, 0x7a, 0xea, 0xc3, 0xfd, 0xc7, 0x5d, + 0x14, 0xe3, 0xbc, 0x08, 0xfc, 0x50, 0xa5, 0xdc, 0xfa, 0x2b, 0x13, 0xf1, 0xe5, 0x5d, 0x47, 0x90, + 0x71, 0x1d, 0x5c, 0x47, 0x8a, 0xaf, 0x9f, 0x7a, 0xb0, 0x6b, 0x0f, 0xfb, 0xf6, 0x37, 0x00, 0x00, + 0xff, 0xff, 0x34, 0x6f, 0x88, 0x40, 0x3c, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.validate.go new file mode 100644 index 0000000000..301ed25cc2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.validate.go @@ -0,0 +1,552 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/project_attributes.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 _project_attributes_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 ProjectAttributes with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ProjectAttributes) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + if v, ok := interface{}(m.GetMatchingAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectAttributesValidationError{ + field: "MatchingAttributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectAttributesValidationError is the validation error returned by +// ProjectAttributes.Validate if the designated constraints aren't met. +type ProjectAttributesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectAttributesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectAttributesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectAttributesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectAttributesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectAttributesValidationError) ErrorName() string { + return "ProjectAttributesValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectAttributesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectAttributes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectAttributesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectAttributesValidationError{} + +// Validate checks the field values on ProjectAttributesUpdateRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectAttributesUpdateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectAttributesUpdateRequestValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectAttributesUpdateRequestValidationError is the validation error +// returned by ProjectAttributesUpdateRequest.Validate if the designated +// constraints aren't met. +type ProjectAttributesUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectAttributesUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectAttributesUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectAttributesUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectAttributesUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectAttributesUpdateRequestValidationError) ErrorName() string { + return "ProjectAttributesUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectAttributesUpdateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectAttributesUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectAttributesUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectAttributesUpdateRequestValidationError{} + +// Validate checks the field values on ProjectAttributesUpdateResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectAttributesUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectAttributesUpdateResponseValidationError is the validation error +// returned by ProjectAttributesUpdateResponse.Validate if the designated +// constraints aren't met. +type ProjectAttributesUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectAttributesUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectAttributesUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectAttributesUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectAttributesUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectAttributesUpdateResponseValidationError) ErrorName() string { + return "ProjectAttributesUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectAttributesUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectAttributesUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectAttributesUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectAttributesUpdateResponseValidationError{} + +// Validate checks the field values on ProjectAttributesGetRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectAttributesGetRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for ResourceType + + return nil +} + +// ProjectAttributesGetRequestValidationError is the validation error returned +// by ProjectAttributesGetRequest.Validate if the designated constraints +// aren't met. +type ProjectAttributesGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectAttributesGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectAttributesGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectAttributesGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectAttributesGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectAttributesGetRequestValidationError) ErrorName() string { + return "ProjectAttributesGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectAttributesGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectAttributesGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectAttributesGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectAttributesGetRequestValidationError{} + +// Validate checks the field values on ProjectAttributesGetResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectAttributesGetResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectAttributesGetResponseValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectAttributesGetResponseValidationError is the validation error returned +// by ProjectAttributesGetResponse.Validate if the designated constraints +// aren't met. +type ProjectAttributesGetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectAttributesGetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectAttributesGetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectAttributesGetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectAttributesGetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectAttributesGetResponseValidationError) ErrorName() string { + return "ProjectAttributesGetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectAttributesGetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectAttributesGetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectAttributesGetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectAttributesGetResponseValidationError{} + +// Validate checks the field values on ProjectAttributesDeleteRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectAttributesDeleteRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for ResourceType + + return nil +} + +// ProjectAttributesDeleteRequestValidationError is the validation error +// returned by ProjectAttributesDeleteRequest.Validate if the designated +// constraints aren't met. +type ProjectAttributesDeleteRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectAttributesDeleteRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectAttributesDeleteRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectAttributesDeleteRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectAttributesDeleteRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectAttributesDeleteRequestValidationError) ErrorName() string { + return "ProjectAttributesDeleteRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectAttributesDeleteRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectAttributesDeleteRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectAttributesDeleteRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectAttributesDeleteRequestValidationError{} + +// Validate checks the field values on ProjectAttributesDeleteResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectAttributesDeleteResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectAttributesDeleteResponseValidationError is the validation error +// returned by ProjectAttributesDeleteResponse.Validate if the designated +// constraints aren't met. +type ProjectAttributesDeleteResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectAttributesDeleteResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectAttributesDeleteResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectAttributesDeleteResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectAttributesDeleteResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectAttributesDeleteResponseValidationError) ErrorName() string { + return "ProjectAttributesDeleteResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectAttributesDeleteResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectAttributesDeleteResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectAttributesDeleteResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectAttributesDeleteResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.swagger.json new file mode 100644 index 0000000000..4280d59371 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/project_attributes.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go new file mode 100644 index 0000000000..3fc2bdc3f3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go @@ -0,0 +1,393 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/project_domain_attributes.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Defines a set of custom matching attributes which defines resource defaults for a project and domain. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributes struct { + // Unique project id for which this set of attributes will be applied. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id for which this set of attributes will be applied. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + MatchingAttributes *MatchingAttributes `protobuf:"bytes,3,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectDomainAttributes) Reset() { *m = ProjectDomainAttributes{} } +func (m *ProjectDomainAttributes) String() string { return proto.CompactTextString(m) } +func (*ProjectDomainAttributes) ProtoMessage() {} +func (*ProjectDomainAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_e8ab0b551a649f05, []int{0} +} + +func (m *ProjectDomainAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectDomainAttributes.Unmarshal(m, b) +} +func (m *ProjectDomainAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectDomainAttributes.Marshal(b, m, deterministic) +} +func (m *ProjectDomainAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectDomainAttributes.Merge(m, src) +} +func (m *ProjectDomainAttributes) XXX_Size() int { + return xxx_messageInfo_ProjectDomainAttributes.Size(m) +} +func (m *ProjectDomainAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectDomainAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectDomainAttributes proto.InternalMessageInfo + +func (m *ProjectDomainAttributes) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ProjectDomainAttributes) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *ProjectDomainAttributes) GetMatchingAttributes() *MatchingAttributes { + if m != nil { + return m.MatchingAttributes + } + return nil +} + +// Sets custom attributes for a project-domain combination. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesUpdateRequest struct { + // +required + Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectDomainAttributesUpdateRequest) Reset() { *m = ProjectDomainAttributesUpdateRequest{} } +func (m *ProjectDomainAttributesUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectDomainAttributesUpdateRequest) ProtoMessage() {} +func (*ProjectDomainAttributesUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e8ab0b551a649f05, []int{1} +} + +func (m *ProjectDomainAttributesUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Unmarshal(m, b) +} +func (m *ProjectDomainAttributesUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Marshal(b, m, deterministic) +} +func (m *ProjectDomainAttributesUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Merge(m, src) +} +func (m *ProjectDomainAttributesUpdateRequest) XXX_Size() int { + return xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Size(m) +} +func (m *ProjectDomainAttributesUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectDomainAttributesUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectDomainAttributesUpdateRequest proto.InternalMessageInfo + +func (m *ProjectDomainAttributesUpdateRequest) GetAttributes() *ProjectDomainAttributes { + if m != nil { + return m.Attributes + } + return nil +} + +// Purposefully empty, may be populated in the future. +type ProjectDomainAttributesUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectDomainAttributesUpdateResponse) Reset() { *m = ProjectDomainAttributesUpdateResponse{} } +func (m *ProjectDomainAttributesUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectDomainAttributesUpdateResponse) ProtoMessage() {} +func (*ProjectDomainAttributesUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e8ab0b551a649f05, []int{2} +} + +func (m *ProjectDomainAttributesUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Unmarshal(m, b) +} +func (m *ProjectDomainAttributesUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Marshal(b, m, deterministic) +} +func (m *ProjectDomainAttributesUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Merge(m, src) +} +func (m *ProjectDomainAttributesUpdateResponse) XXX_Size() int { + return xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Size(m) +} +func (m *ProjectDomainAttributesUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectDomainAttributesUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectDomainAttributesUpdateResponse proto.InternalMessageInfo + +// Request to get an individual project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesGetRequest struct { + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Which type of matchable attributes to return. + // +required + ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectDomainAttributesGetRequest) Reset() { *m = ProjectDomainAttributesGetRequest{} } +func (m *ProjectDomainAttributesGetRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectDomainAttributesGetRequest) ProtoMessage() {} +func (*ProjectDomainAttributesGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e8ab0b551a649f05, []int{3} +} + +func (m *ProjectDomainAttributesGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectDomainAttributesGetRequest.Unmarshal(m, b) +} +func (m *ProjectDomainAttributesGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectDomainAttributesGetRequest.Marshal(b, m, deterministic) +} +func (m *ProjectDomainAttributesGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectDomainAttributesGetRequest.Merge(m, src) +} +func (m *ProjectDomainAttributesGetRequest) XXX_Size() int { + return xxx_messageInfo_ProjectDomainAttributesGetRequest.Size(m) +} +func (m *ProjectDomainAttributesGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectDomainAttributesGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectDomainAttributesGetRequest proto.InternalMessageInfo + +func (m *ProjectDomainAttributesGetRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ProjectDomainAttributesGetRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *ProjectDomainAttributesGetRequest) GetResourceType() MatchableResource { + if m != nil { + return m.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +// Response to get an individual project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesGetResponse struct { + Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectDomainAttributesGetResponse) Reset() { *m = ProjectDomainAttributesGetResponse{} } +func (m *ProjectDomainAttributesGetResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectDomainAttributesGetResponse) ProtoMessage() {} +func (*ProjectDomainAttributesGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e8ab0b551a649f05, []int{4} +} + +func (m *ProjectDomainAttributesGetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectDomainAttributesGetResponse.Unmarshal(m, b) +} +func (m *ProjectDomainAttributesGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectDomainAttributesGetResponse.Marshal(b, m, deterministic) +} +func (m *ProjectDomainAttributesGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectDomainAttributesGetResponse.Merge(m, src) +} +func (m *ProjectDomainAttributesGetResponse) XXX_Size() int { + return xxx_messageInfo_ProjectDomainAttributesGetResponse.Size(m) +} +func (m *ProjectDomainAttributesGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectDomainAttributesGetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectDomainAttributesGetResponse proto.InternalMessageInfo + +func (m *ProjectDomainAttributesGetResponse) GetAttributes() *ProjectDomainAttributes { + if m != nil { + return m.Attributes + } + return nil +} + +// Request to delete a set matchable project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesDeleteRequest struct { + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Which type of matchable attributes to delete. + // +required + ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectDomainAttributesDeleteRequest) Reset() { *m = ProjectDomainAttributesDeleteRequest{} } +func (m *ProjectDomainAttributesDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectDomainAttributesDeleteRequest) ProtoMessage() {} +func (*ProjectDomainAttributesDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_e8ab0b551a649f05, []int{5} +} + +func (m *ProjectDomainAttributesDeleteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Unmarshal(m, b) +} +func (m *ProjectDomainAttributesDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Marshal(b, m, deterministic) +} +func (m *ProjectDomainAttributesDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Merge(m, src) +} +func (m *ProjectDomainAttributesDeleteRequest) XXX_Size() int { + return xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Size(m) +} +func (m *ProjectDomainAttributesDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectDomainAttributesDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectDomainAttributesDeleteRequest proto.InternalMessageInfo + +func (m *ProjectDomainAttributesDeleteRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ProjectDomainAttributesDeleteRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *ProjectDomainAttributesDeleteRequest) GetResourceType() MatchableResource { + if m != nil { + return m.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +// Purposefully empty, may be populated in the future. +type ProjectDomainAttributesDeleteResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectDomainAttributesDeleteResponse) Reset() { *m = ProjectDomainAttributesDeleteResponse{} } +func (m *ProjectDomainAttributesDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectDomainAttributesDeleteResponse) ProtoMessage() {} +func (*ProjectDomainAttributesDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e8ab0b551a649f05, []int{6} +} + +func (m *ProjectDomainAttributesDeleteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Unmarshal(m, b) +} +func (m *ProjectDomainAttributesDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Marshal(b, m, deterministic) +} +func (m *ProjectDomainAttributesDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Merge(m, src) +} +func (m *ProjectDomainAttributesDeleteResponse) XXX_Size() int { + return xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Size(m) +} +func (m *ProjectDomainAttributesDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectDomainAttributesDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectDomainAttributesDeleteResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*ProjectDomainAttributes)(nil), "flyteidl.admin.ProjectDomainAttributes") + proto.RegisterType((*ProjectDomainAttributesUpdateRequest)(nil), "flyteidl.admin.ProjectDomainAttributesUpdateRequest") + proto.RegisterType((*ProjectDomainAttributesUpdateResponse)(nil), "flyteidl.admin.ProjectDomainAttributesUpdateResponse") + proto.RegisterType((*ProjectDomainAttributesGetRequest)(nil), "flyteidl.admin.ProjectDomainAttributesGetRequest") + proto.RegisterType((*ProjectDomainAttributesGetResponse)(nil), "flyteidl.admin.ProjectDomainAttributesGetResponse") + proto.RegisterType((*ProjectDomainAttributesDeleteRequest)(nil), "flyteidl.admin.ProjectDomainAttributesDeleteRequest") + proto.RegisterType((*ProjectDomainAttributesDeleteResponse)(nil), "flyteidl.admin.ProjectDomainAttributesDeleteResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/project_domain_attributes.proto", fileDescriptor_e8ab0b551a649f05) +} + +var fileDescriptor_e8ab0b551a649f05 = []byte{ + // 339 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x53, 0x4f, 0x4b, 0xfb, 0x40, + 0x10, 0x65, 0x7f, 0x3f, 0xa8, 0x38, 0x6a, 0x0f, 0x11, 0x34, 0x78, 0x6a, 0x17, 0xa5, 0xbd, 0x98, + 0x40, 0x45, 0x3c, 0x2b, 0xc5, 0x9e, 0x04, 0x89, 0x7a, 0xf1, 0x12, 0xf2, 0x67, 0x4c, 0x23, 0x49, + 0x76, 0xdd, 0x4c, 0x0e, 0xfd, 0x30, 0x42, 0x3f, 0xaa, 0xb8, 0xc9, 0xf6, 0x9f, 0x46, 0x11, 0x04, + 0x8f, 0x93, 0xbc, 0x79, 0xef, 0xed, 0x7b, 0x0c, 0x38, 0x4f, 0xd9, 0x8c, 0x30, 0x8d, 0x33, 0x37, + 0x88, 0xf3, 0xb4, 0x70, 0xa5, 0x12, 0xcf, 0x18, 0x91, 0x1f, 0x8b, 0x3c, 0x48, 0x0b, 0x3f, 0x20, + 0x52, 0x69, 0x58, 0x11, 0x96, 0x8e, 0x54, 0x82, 0x84, 0xd5, 0x35, 0x78, 0x47, 0xe3, 0x8f, 0x06, + 0x1b, 0xfb, 0x79, 0x40, 0xd1, 0x34, 0x08, 0x33, 0xf4, 0x15, 0x96, 0xa2, 0x52, 0x11, 0xd6, 0x8b, + 0x7c, 0xce, 0xe0, 0xf0, 0xb6, 0x26, 0x1f, 0x6b, 0xee, 0xcb, 0x05, 0xb5, 0x65, 0xc3, 0x56, 0xa3, + 0x6b, 0xb3, 0x1e, 0x1b, 0x6e, 0x7b, 0x66, 0xb4, 0x0e, 0xa0, 0x53, 0x3b, 0xb1, 0xff, 0xe9, 0x1f, + 0xcd, 0x64, 0xdd, 0xc1, 0xbe, 0x56, 0x4a, 0x8b, 0x64, 0xc5, 0xa3, 0xfd, 0xbf, 0xc7, 0x86, 0x3b, + 0x23, 0xee, 0xac, 0x9b, 0x74, 0x6e, 0x1a, 0xe8, 0x52, 0xd2, 0xb3, 0xf2, 0x0f, 0xdf, 0xb8, 0x80, + 0xe3, 0x16, 0x87, 0x0f, 0x32, 0x0e, 0x08, 0x3d, 0x7c, 0xa9, 0xb0, 0x24, 0x6b, 0x02, 0xb0, 0xa2, + 0xc9, 0xb4, 0xe6, 0x60, 0x53, 0xb3, 0x85, 0xc9, 0x5b, 0x59, 0xe5, 0x03, 0x38, 0xf9, 0x46, 0xb0, + 0x94, 0xa2, 0x28, 0x91, 0xbf, 0x32, 0xe8, 0xb7, 0x20, 0x27, 0x48, 0xc6, 0xd7, 0xcf, 0x63, 0xbc, + 0x86, 0x3d, 0x53, 0x93, 0x4f, 0x33, 0x89, 0x3a, 0xc0, 0xee, 0xa8, 0xff, 0x69, 0x80, 0xef, 0xad, + 0x7a, 0x0d, 0xda, 0xdb, 0x35, 0x7b, 0xf7, 0x33, 0x89, 0x3c, 0x07, 0xfe, 0x95, 0xbd, 0xfa, 0x15, + 0xbf, 0x97, 0xdb, 0x9c, 0xb5, 0x36, 0x35, 0xc6, 0x0c, 0x97, 0x4d, 0xfd, 0x5d, 0x22, 0xed, 0xd5, + 0x1a, 0x87, 0x75, 0x28, 0x57, 0x17, 0x8f, 0xe7, 0x49, 0x4a, 0xd3, 0x2a, 0x74, 0x22, 0x91, 0xbb, + 0x5a, 0x45, 0xa8, 0xc4, 0x5d, 0x9c, 0x55, 0x82, 0x85, 0x2b, 0xc3, 0xd3, 0x44, 0xb8, 0xeb, 0x97, + 0x16, 0x76, 0xf4, 0x5d, 0x9d, 0xbd, 0x05, 0x00, 0x00, 0xff, 0xff, 0x0e, 0x77, 0x7d, 0xa6, 0xc2, + 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.validate.go new file mode 100644 index 0000000000..6e9387c213 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.validate.go @@ -0,0 +1,558 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/project_domain_attributes.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 _project_domain_attributes_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 ProjectDomainAttributes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectDomainAttributes) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + if v, ok := interface{}(m.GetMatchingAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectDomainAttributesValidationError{ + field: "MatchingAttributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectDomainAttributesValidationError is the validation error returned by +// ProjectDomainAttributes.Validate if the designated constraints aren't met. +type ProjectDomainAttributesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectDomainAttributesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectDomainAttributesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectDomainAttributesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectDomainAttributesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectDomainAttributesValidationError) ErrorName() string { + return "ProjectDomainAttributesValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectDomainAttributesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectDomainAttributes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectDomainAttributesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectDomainAttributesValidationError{} + +// Validate checks the field values on ProjectDomainAttributesUpdateRequest +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *ProjectDomainAttributesUpdateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectDomainAttributesUpdateRequestValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectDomainAttributesUpdateRequestValidationError is the validation error +// returned by ProjectDomainAttributesUpdateRequest.Validate if the designated +// constraints aren't met. +type ProjectDomainAttributesUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectDomainAttributesUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectDomainAttributesUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectDomainAttributesUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectDomainAttributesUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectDomainAttributesUpdateRequestValidationError) ErrorName() string { + return "ProjectDomainAttributesUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectDomainAttributesUpdateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectDomainAttributesUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectDomainAttributesUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectDomainAttributesUpdateRequestValidationError{} + +// Validate checks the field values on ProjectDomainAttributesUpdateResponse +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *ProjectDomainAttributesUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectDomainAttributesUpdateResponseValidationError is the validation error +// returned by ProjectDomainAttributesUpdateResponse.Validate if the +// designated constraints aren't met. +type ProjectDomainAttributesUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectDomainAttributesUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectDomainAttributesUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectDomainAttributesUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectDomainAttributesUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectDomainAttributesUpdateResponseValidationError) ErrorName() string { + return "ProjectDomainAttributesUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectDomainAttributesUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectDomainAttributesUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectDomainAttributesUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectDomainAttributesUpdateResponseValidationError{} + +// Validate checks the field values on ProjectDomainAttributesGetRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ProjectDomainAttributesGetRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for ResourceType + + return nil +} + +// ProjectDomainAttributesGetRequestValidationError is the validation error +// returned by ProjectDomainAttributesGetRequest.Validate if the designated +// constraints aren't met. +type ProjectDomainAttributesGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectDomainAttributesGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectDomainAttributesGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectDomainAttributesGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectDomainAttributesGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectDomainAttributesGetRequestValidationError) ErrorName() string { + return "ProjectDomainAttributesGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectDomainAttributesGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectDomainAttributesGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectDomainAttributesGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectDomainAttributesGetRequestValidationError{} + +// Validate checks the field values on ProjectDomainAttributesGetResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *ProjectDomainAttributesGetResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectDomainAttributesGetResponseValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectDomainAttributesGetResponseValidationError is the validation error +// returned by ProjectDomainAttributesGetResponse.Validate if the designated +// constraints aren't met. +type ProjectDomainAttributesGetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectDomainAttributesGetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectDomainAttributesGetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectDomainAttributesGetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectDomainAttributesGetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectDomainAttributesGetResponseValidationError) ErrorName() string { + return "ProjectDomainAttributesGetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectDomainAttributesGetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectDomainAttributesGetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectDomainAttributesGetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectDomainAttributesGetResponseValidationError{} + +// Validate checks the field values on ProjectDomainAttributesDeleteRequest +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *ProjectDomainAttributesDeleteRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for ResourceType + + return nil +} + +// ProjectDomainAttributesDeleteRequestValidationError is the validation error +// returned by ProjectDomainAttributesDeleteRequest.Validate if the designated +// constraints aren't met. +type ProjectDomainAttributesDeleteRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectDomainAttributesDeleteRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectDomainAttributesDeleteRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectDomainAttributesDeleteRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectDomainAttributesDeleteRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectDomainAttributesDeleteRequestValidationError) ErrorName() string { + return "ProjectDomainAttributesDeleteRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectDomainAttributesDeleteRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectDomainAttributesDeleteRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectDomainAttributesDeleteRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectDomainAttributesDeleteRequestValidationError{} + +// Validate checks the field values on ProjectDomainAttributesDeleteResponse +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *ProjectDomainAttributesDeleteResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectDomainAttributesDeleteResponseValidationError is the validation error +// returned by ProjectDomainAttributesDeleteResponse.Validate if the +// designated constraints aren't met. +type ProjectDomainAttributesDeleteResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectDomainAttributesDeleteResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectDomainAttributesDeleteResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectDomainAttributesDeleteResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectDomainAttributesDeleteResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectDomainAttributesDeleteResponseValidationError) ErrorName() string { + return "ProjectDomainAttributesDeleteResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectDomainAttributesDeleteResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectDomainAttributesDeleteResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectDomainAttributesDeleteResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectDomainAttributesDeleteResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.swagger.json new file mode 100644 index 0000000000..61ce4b8922 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/project_domain_attributes.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go new file mode 100644 index 0000000000..96b5d2d039 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go @@ -0,0 +1,293 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/schedule.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Represents a frequency at which to run a schedule. +type FixedRateUnit int32 + +const ( + FixedRateUnit_MINUTE FixedRateUnit = 0 + FixedRateUnit_HOUR FixedRateUnit = 1 + FixedRateUnit_DAY FixedRateUnit = 2 +) + +var FixedRateUnit_name = map[int32]string{ + 0: "MINUTE", + 1: "HOUR", + 2: "DAY", +} + +var FixedRateUnit_value = map[string]int32{ + "MINUTE": 0, + "HOUR": 1, + "DAY": 2, +} + +func (x FixedRateUnit) String() string { + return proto.EnumName(FixedRateUnit_name, int32(x)) +} + +func (FixedRateUnit) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a71cf75647fcd25a, []int{0} +} + +// Option for schedules run at a certain frequency e.g. every 2 minutes. +type FixedRate struct { + Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + Unit FixedRateUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=flyteidl.admin.FixedRateUnit" json:"unit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FixedRate) Reset() { *m = FixedRate{} } +func (m *FixedRate) String() string { return proto.CompactTextString(m) } +func (*FixedRate) ProtoMessage() {} +func (*FixedRate) Descriptor() ([]byte, []int) { + return fileDescriptor_a71cf75647fcd25a, []int{0} +} + +func (m *FixedRate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FixedRate.Unmarshal(m, b) +} +func (m *FixedRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FixedRate.Marshal(b, m, deterministic) +} +func (m *FixedRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_FixedRate.Merge(m, src) +} +func (m *FixedRate) XXX_Size() int { + return xxx_messageInfo_FixedRate.Size(m) +} +func (m *FixedRate) XXX_DiscardUnknown() { + xxx_messageInfo_FixedRate.DiscardUnknown(m) +} + +var xxx_messageInfo_FixedRate proto.InternalMessageInfo + +func (m *FixedRate) GetValue() uint32 { + if m != nil { + return m.Value + } + return 0 +} + +func (m *FixedRate) GetUnit() FixedRateUnit { + if m != nil { + return m.Unit + } + return FixedRateUnit_MINUTE +} + +// Options for schedules to run according to a cron expression. +type CronSchedule struct { + // Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; + // Also supports nonstandard predefined scheduling definitions + // as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions + // except @reboot + Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + // ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations + Offset string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CronSchedule) Reset() { *m = CronSchedule{} } +func (m *CronSchedule) String() string { return proto.CompactTextString(m) } +func (*CronSchedule) ProtoMessage() {} +func (*CronSchedule) Descriptor() ([]byte, []int) { + return fileDescriptor_a71cf75647fcd25a, []int{1} +} + +func (m *CronSchedule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CronSchedule.Unmarshal(m, b) +} +func (m *CronSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CronSchedule.Marshal(b, m, deterministic) +} +func (m *CronSchedule) XXX_Merge(src proto.Message) { + xxx_messageInfo_CronSchedule.Merge(m, src) +} +func (m *CronSchedule) XXX_Size() int { + return xxx_messageInfo_CronSchedule.Size(m) +} +func (m *CronSchedule) XXX_DiscardUnknown() { + xxx_messageInfo_CronSchedule.DiscardUnknown(m) +} + +var xxx_messageInfo_CronSchedule proto.InternalMessageInfo + +func (m *CronSchedule) GetSchedule() string { + if m != nil { + return m.Schedule + } + return "" +} + +func (m *CronSchedule) GetOffset() string { + if m != nil { + return m.Offset + } + return "" +} + +// Defines complete set of information required to trigger an execution on a schedule. +type Schedule struct { + // Types that are valid to be assigned to ScheduleExpression: + // *Schedule_CronExpression + // *Schedule_Rate + // *Schedule_CronSchedule + ScheduleExpression isSchedule_ScheduleExpression `protobuf_oneof:"ScheduleExpression"` + // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + KickoffTimeInputArg string `protobuf:"bytes,3,opt,name=kickoff_time_input_arg,json=kickoffTimeInputArg,proto3" json:"kickoff_time_input_arg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Schedule) Reset() { *m = Schedule{} } +func (m *Schedule) String() string { return proto.CompactTextString(m) } +func (*Schedule) ProtoMessage() {} +func (*Schedule) Descriptor() ([]byte, []int) { + return fileDescriptor_a71cf75647fcd25a, []int{2} +} + +func (m *Schedule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Schedule.Unmarshal(m, b) +} +func (m *Schedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Schedule.Marshal(b, m, deterministic) +} +func (m *Schedule) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schedule.Merge(m, src) +} +func (m *Schedule) XXX_Size() int { + return xxx_messageInfo_Schedule.Size(m) +} +func (m *Schedule) XXX_DiscardUnknown() { + xxx_messageInfo_Schedule.DiscardUnknown(m) +} + +var xxx_messageInfo_Schedule proto.InternalMessageInfo + +type isSchedule_ScheduleExpression interface { + isSchedule_ScheduleExpression() +} + +type Schedule_CronExpression struct { + CronExpression string `protobuf:"bytes,1,opt,name=cron_expression,json=cronExpression,proto3,oneof"` +} + +type Schedule_Rate struct { + Rate *FixedRate `protobuf:"bytes,2,opt,name=rate,proto3,oneof"` +} + +type Schedule_CronSchedule struct { + CronSchedule *CronSchedule `protobuf:"bytes,4,opt,name=cron_schedule,json=cronSchedule,proto3,oneof"` +} + +func (*Schedule_CronExpression) isSchedule_ScheduleExpression() {} + +func (*Schedule_Rate) isSchedule_ScheduleExpression() {} + +func (*Schedule_CronSchedule) isSchedule_ScheduleExpression() {} + +func (m *Schedule) GetScheduleExpression() isSchedule_ScheduleExpression { + if m != nil { + return m.ScheduleExpression + } + return nil +} + +// Deprecated: Do not use. +func (m *Schedule) GetCronExpression() string { + if x, ok := m.GetScheduleExpression().(*Schedule_CronExpression); ok { + return x.CronExpression + } + return "" +} + +func (m *Schedule) GetRate() *FixedRate { + if x, ok := m.GetScheduleExpression().(*Schedule_Rate); ok { + return x.Rate + } + return nil +} + +func (m *Schedule) GetCronSchedule() *CronSchedule { + if x, ok := m.GetScheduleExpression().(*Schedule_CronSchedule); ok { + return x.CronSchedule + } + return nil +} + +func (m *Schedule) GetKickoffTimeInputArg() string { + if m != nil { + return m.KickoffTimeInputArg + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Schedule) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Schedule_CronExpression)(nil), + (*Schedule_Rate)(nil), + (*Schedule_CronSchedule)(nil), + } +} + +func init() { + proto.RegisterEnum("flyteidl.admin.FixedRateUnit", FixedRateUnit_name, FixedRateUnit_value) + proto.RegisterType((*FixedRate)(nil), "flyteidl.admin.FixedRate") + proto.RegisterType((*CronSchedule)(nil), "flyteidl.admin.CronSchedule") + proto.RegisterType((*Schedule)(nil), "flyteidl.admin.Schedule") +} + +func init() { proto.RegisterFile("flyteidl/admin/schedule.proto", fileDescriptor_a71cf75647fcd25a) } + +var fileDescriptor_a71cf75647fcd25a = []byte{ + // 358 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x8b, 0xda, 0x40, + 0x14, 0xc6, 0x13, 0x4d, 0xad, 0xbe, 0xaa, 0x95, 0xa9, 0x48, 0x5a, 0x2a, 0x88, 0x27, 0x29, 0x98, + 0x50, 0xa5, 0xf4, 0x6c, 0xac, 0x25, 0x1e, 0x76, 0x17, 0x66, 0xf5, 0xb0, 0x7b, 0x09, 0x31, 0x99, + 0xc4, 0xc1, 0x64, 0x26, 0x4c, 0x26, 0x8b, 0xfb, 0xaf, 0xef, 0x69, 0x71, 0xd4, 0xac, 0x2e, 0xec, + 0xf1, 0xf1, 0xcd, 0xfb, 0xbd, 0xef, 0x1b, 0x3e, 0xe8, 0x47, 0xc9, 0xb3, 0x24, 0x34, 0x4c, 0x6c, + 0x3f, 0x4c, 0x29, 0xb3, 0xf3, 0x60, 0x4b, 0xc2, 0x22, 0x21, 0x56, 0x26, 0xb8, 0xe4, 0xa8, 0x7d, + 0x96, 0x2d, 0x25, 0x0f, 0x57, 0xd0, 0xf8, 0x4f, 0xf7, 0x24, 0xc4, 0xbe, 0x24, 0xa8, 0x0b, 0x9f, + 0x9e, 0xfc, 0xa4, 0x20, 0xa6, 0x3e, 0xd0, 0x47, 0x2d, 0x7c, 0x1c, 0xd0, 0x6f, 0x30, 0x0a, 0x46, + 0xa5, 0x59, 0x19, 0xe8, 0xa3, 0xf6, 0xa4, 0x6f, 0x5d, 0x13, 0xac, 0x72, 0x7d, 0xcd, 0xa8, 0xc4, + 0xea, 0xe9, 0xd0, 0x81, 0xe6, 0x5c, 0x70, 0x76, 0x7f, 0xba, 0x8d, 0x7e, 0x40, 0xfd, 0xec, 0x43, + 0xb1, 0x1b, 0xb8, 0x9c, 0x51, 0x0f, 0x6a, 0x3c, 0x8a, 0x72, 0x72, 0x3c, 0xd0, 0xc0, 0xa7, 0x69, + 0xf8, 0xa2, 0x43, 0xbd, 0x04, 0x8c, 0xe1, 0x6b, 0x20, 0x38, 0xf3, 0xc8, 0x3e, 0x13, 0x24, 0xcf, + 0x29, 0x67, 0x47, 0x8e, 0x53, 0x31, 0x75, 0x57, 0xc3, 0xed, 0x83, 0xb8, 0x28, 0x35, 0x64, 0x83, + 0x21, 0x7c, 0x49, 0x14, 0xf1, 0xcb, 0xe4, 0xfb, 0x87, 0x96, 0x5d, 0x0d, 0xab, 0x87, 0x68, 0x0e, + 0x2d, 0xc5, 0x2f, 0x5d, 0x1a, 0x6a, 0xf3, 0xe7, 0xfb, 0xcd, 0xcb, 0x54, 0xae, 0x86, 0x9b, 0xc1, + 0x65, 0xca, 0x29, 0xf4, 0x76, 0x34, 0xd8, 0xf1, 0x28, 0xf2, 0x24, 0x4d, 0x89, 0x47, 0x59, 0x56, + 0x48, 0xcf, 0x17, 0xb1, 0x59, 0x55, 0xc9, 0xbe, 0x9d, 0xd4, 0x15, 0x4d, 0xc9, 0xf2, 0xa0, 0xcd, + 0x44, 0xec, 0x74, 0x01, 0x9d, 0x01, 0x6f, 0x01, 0x7e, 0x59, 0xd0, 0xba, 0xfa, 0x57, 0x04, 0x50, + 0xbb, 0x59, 0xde, 0xae, 0x57, 0x8b, 0x8e, 0x86, 0xea, 0x60, 0xb8, 0x77, 0x6b, 0xdc, 0xd1, 0xd1, + 0x67, 0xa8, 0xfe, 0x9b, 0x3d, 0x74, 0x2a, 0xce, 0xdf, 0xc7, 0x3f, 0x31, 0x95, 0xdb, 0x62, 0x63, + 0x05, 0x3c, 0xb5, 0x95, 0x69, 0x2e, 0x62, 0xbb, 0xec, 0x42, 0x4c, 0x98, 0x9d, 0x6d, 0xc6, 0x31, + 0xb7, 0xaf, 0xeb, 0xb1, 0xa9, 0xa9, 0x5a, 0x4c, 0x5f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x14, 0xbd, + 0x83, 0xd9, 0x37, 0x02, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.validate.go new file mode 100644 index 0000000000..8c27386f19 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.validate.go @@ -0,0 +1,271 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/schedule.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 _schedule_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 FixedRate with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *FixedRate) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Value + + // no validation rules for Unit + + return nil +} + +// FixedRateValidationError is the validation error returned by +// FixedRate.Validate if the designated constraints aren't met. +type FixedRateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FixedRateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FixedRateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FixedRateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FixedRateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FixedRateValidationError) ErrorName() string { return "FixedRateValidationError" } + +// Error satisfies the builtin error interface +func (e FixedRateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sFixedRate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FixedRateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FixedRateValidationError{} + +// Validate checks the field values on CronSchedule with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CronSchedule) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Schedule + + // no validation rules for Offset + + return nil +} + +// CronScheduleValidationError is the validation error returned by +// CronSchedule.Validate if the designated constraints aren't met. +type CronScheduleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CronScheduleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CronScheduleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CronScheduleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CronScheduleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CronScheduleValidationError) ErrorName() string { return "CronScheduleValidationError" } + +// Error satisfies the builtin error interface +func (e CronScheduleValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCronSchedule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CronScheduleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CronScheduleValidationError{} + +// Validate checks the field values on Schedule with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Schedule) Validate() error { + if m == nil { + return nil + } + + // no validation rules for KickoffTimeInputArg + + switch m.ScheduleExpression.(type) { + + case *Schedule_CronExpression: + // no validation rules for CronExpression + + case *Schedule_Rate: + + if v, ok := interface{}(m.GetRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScheduleValidationError{ + field: "Rate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Schedule_CronSchedule: + + if v, ok := interface{}(m.GetCronSchedule()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScheduleValidationError{ + field: "CronSchedule", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ScheduleValidationError is the validation error returned by +// Schedule.Validate if the designated constraints aren't met. +type ScheduleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScheduleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScheduleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ScheduleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScheduleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScheduleValidationError) ErrorName() string { return "ScheduleValidationError" } + +// Error satisfies the builtin error interface +func (e ScheduleValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchedule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScheduleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScheduleValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json new file mode 100644 index 0000000000..5891c05c04 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/schedule.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go new file mode 100644 index 0000000000..52c3dcc4f1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go @@ -0,0 +1,397 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/signal.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// SignalGetOrCreateRequest represents a request structure to retrive or create a signal. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalGetOrCreateRequest struct { + // A unique identifier for the requested signal. + Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // A type denoting the required value type for this signal. + Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignalGetOrCreateRequest) Reset() { *m = SignalGetOrCreateRequest{} } +func (m *SignalGetOrCreateRequest) String() string { return proto.CompactTextString(m) } +func (*SignalGetOrCreateRequest) ProtoMessage() {} +func (*SignalGetOrCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1c2d4aa3794afa, []int{0} +} + +func (m *SignalGetOrCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignalGetOrCreateRequest.Unmarshal(m, b) +} +func (m *SignalGetOrCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignalGetOrCreateRequest.Marshal(b, m, deterministic) +} +func (m *SignalGetOrCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalGetOrCreateRequest.Merge(m, src) +} +func (m *SignalGetOrCreateRequest) XXX_Size() int { + return xxx_messageInfo_SignalGetOrCreateRequest.Size(m) +} +func (m *SignalGetOrCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignalGetOrCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalGetOrCreateRequest proto.InternalMessageInfo + +func (m *SignalGetOrCreateRequest) GetId() *core.SignalIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *SignalGetOrCreateRequest) GetType() *core.LiteralType { + if m != nil { + return m.Type + } + return nil +} + +// SignalListRequest represents a request structure to retrieve a collection of signals. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalListRequest struct { + // Indicates the workflow execution to filter by. + // +required + WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignalListRequest) Reset() { *m = SignalListRequest{} } +func (m *SignalListRequest) String() string { return proto.CompactTextString(m) } +func (*SignalListRequest) ProtoMessage() {} +func (*SignalListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1c2d4aa3794afa, []int{1} +} + +func (m *SignalListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignalListRequest.Unmarshal(m, b) +} +func (m *SignalListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignalListRequest.Marshal(b, m, deterministic) +} +func (m *SignalListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalListRequest.Merge(m, src) +} +func (m *SignalListRequest) XXX_Size() int { + return xxx_messageInfo_SignalListRequest.Size(m) +} +func (m *SignalListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignalListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalListRequest proto.InternalMessageInfo + +func (m *SignalListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.WorkflowExecutionId + } + return nil +} + +func (m *SignalListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *SignalListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *SignalListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *SignalListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// SignalList represents collection of signals along with the token of the last result. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalList struct { + // A list of signals matching the input filters. + Signals []*Signal `protobuf:"bytes,1,rep,name=signals,proto3" json:"signals,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignalList) Reset() { *m = SignalList{} } +func (m *SignalList) String() string { return proto.CompactTextString(m) } +func (*SignalList) ProtoMessage() {} +func (*SignalList) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1c2d4aa3794afa, []int{2} +} + +func (m *SignalList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignalList.Unmarshal(m, b) +} +func (m *SignalList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignalList.Marshal(b, m, deterministic) +} +func (m *SignalList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalList.Merge(m, src) +} +func (m *SignalList) XXX_Size() int { + return xxx_messageInfo_SignalList.Size(m) +} +func (m *SignalList) XXX_DiscardUnknown() { + xxx_messageInfo_SignalList.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalList proto.InternalMessageInfo + +func (m *SignalList) GetSignals() []*Signal { + if m != nil { + return m.Signals + } + return nil +} + +func (m *SignalList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal +// effetively satisfies the signal condition within a Flyte workflow. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalSetRequest struct { + // A unique identifier for the requested signal. + Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The value of this signal, must match the defining signal type. + Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignalSetRequest) Reset() { *m = SignalSetRequest{} } +func (m *SignalSetRequest) String() string { return proto.CompactTextString(m) } +func (*SignalSetRequest) ProtoMessage() {} +func (*SignalSetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1c2d4aa3794afa, []int{3} +} + +func (m *SignalSetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignalSetRequest.Unmarshal(m, b) +} +func (m *SignalSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignalSetRequest.Marshal(b, m, deterministic) +} +func (m *SignalSetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalSetRequest.Merge(m, src) +} +func (m *SignalSetRequest) XXX_Size() int { + return xxx_messageInfo_SignalSetRequest.Size(m) +} +func (m *SignalSetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignalSetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalSetRequest proto.InternalMessageInfo + +func (m *SignalSetRequest) GetId() *core.SignalIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *SignalSetRequest) GetValue() *core.Literal { + if m != nil { + return m.Value + } + return nil +} + +// SignalSetResponse represents a response structure if signal setting succeeds. +type SignalSetResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignalSetResponse) Reset() { *m = SignalSetResponse{} } +func (m *SignalSetResponse) String() string { return proto.CompactTextString(m) } +func (*SignalSetResponse) ProtoMessage() {} +func (*SignalSetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1c2d4aa3794afa, []int{4} +} + +func (m *SignalSetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignalSetResponse.Unmarshal(m, b) +} +func (m *SignalSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignalSetResponse.Marshal(b, m, deterministic) +} +func (m *SignalSetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalSetResponse.Merge(m, src) +} +func (m *SignalSetResponse) XXX_Size() int { + return xxx_messageInfo_SignalSetResponse.Size(m) +} +func (m *SignalSetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SignalSetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalSetResponse proto.InternalMessageInfo + +// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte +// signal. Signals may exist either without a set value (representing a signal request) or with a +// populated value (indicating the signal has been given). +type Signal struct { + // A unique identifier for the requested signal. + Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // A type denoting the required value type for this signal. + Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // The value of the signal. This is only available if the signal has been "set" and must match + // the defined the type. + Value *core.Literal `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Signal) Reset() { *m = Signal{} } +func (m *Signal) String() string { return proto.CompactTextString(m) } +func (*Signal) ProtoMessage() {} +func (*Signal) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1c2d4aa3794afa, []int{5} +} + +func (m *Signal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Signal.Unmarshal(m, b) +} +func (m *Signal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Signal.Marshal(b, m, deterministic) +} +func (m *Signal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Signal.Merge(m, src) +} +func (m *Signal) XXX_Size() int { + return xxx_messageInfo_Signal.Size(m) +} +func (m *Signal) XXX_DiscardUnknown() { + xxx_messageInfo_Signal.DiscardUnknown(m) +} + +var xxx_messageInfo_Signal proto.InternalMessageInfo + +func (m *Signal) GetId() *core.SignalIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *Signal) GetType() *core.LiteralType { + if m != nil { + return m.Type + } + return nil +} + +func (m *Signal) GetValue() *core.Literal { + if m != nil { + return m.Value + } + return nil +} + +func init() { + proto.RegisterType((*SignalGetOrCreateRequest)(nil), "flyteidl.admin.SignalGetOrCreateRequest") + proto.RegisterType((*SignalListRequest)(nil), "flyteidl.admin.SignalListRequest") + proto.RegisterType((*SignalList)(nil), "flyteidl.admin.SignalList") + proto.RegisterType((*SignalSetRequest)(nil), "flyteidl.admin.SignalSetRequest") + proto.RegisterType((*SignalSetResponse)(nil), "flyteidl.admin.SignalSetResponse") + proto.RegisterType((*Signal)(nil), "flyteidl.admin.Signal") +} + +func init() { proto.RegisterFile("flyteidl/admin/signal.proto", fileDescriptor_4b1c2d4aa3794afa) } + +var fileDescriptor_4b1c2d4aa3794afa = []byte{ + // 429 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0x51, 0x8b, 0xd3, 0x40, + 0x10, 0xc7, 0x49, 0x7b, 0x6d, 0x71, 0x0f, 0x45, 0x73, 0xe7, 0xb1, 0x56, 0xd1, 0x92, 0xa7, 0x22, + 0xde, 0xae, 0x9c, 0x88, 0xef, 0x27, 0x22, 0xc2, 0x81, 0xb0, 0x3d, 0x10, 0x7c, 0xb0, 0xa4, 0xcd, + 0x34, 0x2e, 0xb7, 0xd9, 0xcd, 0xed, 0x4e, 0xad, 0xc1, 0x0f, 0xe2, 0x57, 0xf4, 0x63, 0x48, 0x77, + 0x93, 0xf4, 0xd2, 0xf3, 0x41, 0x04, 0x1f, 0x67, 0xfe, 0xff, 0x99, 0xfc, 0xc2, 0x7f, 0x87, 0x3c, + 0x5e, 0xa9, 0x0a, 0x41, 0x66, 0x8a, 0xa7, 0x59, 0x21, 0x35, 0x77, 0x32, 0xd7, 0xa9, 0x62, 0xa5, + 0x35, 0x68, 0xe2, 0x7b, 0x8d, 0xc8, 0xbc, 0x38, 0xde, 0x37, 0x2f, 0x4d, 0x51, 0x18, 0x1d, 0xcc, + 0xe3, 0xa7, 0xad, 0xb8, 0x34, 0x16, 0xb8, 0xcc, 0x40, 0xa3, 0x5c, 0x49, 0xb0, 0xb5, 0xfe, 0xa4, + 0xab, 0x2b, 0x89, 0x60, 0x53, 0xe5, 0x6a, 0xf5, 0x51, 0x57, 0xc5, 0xaa, 0x84, 0x5a, 0x4a, 0x7e, + 0x10, 0x3a, 0xf3, 0x54, 0xef, 0x01, 0x3f, 0xda, 0xb7, 0x16, 0x52, 0x04, 0x01, 0xd7, 0x6b, 0x70, + 0x18, 0x73, 0xd2, 0x93, 0x19, 0x8d, 0x26, 0xd1, 0xf4, 0xf0, 0xec, 0x19, 0x6b, 0x71, 0xb7, 0x3b, + 0x58, 0x18, 0xfa, 0xd0, 0x72, 0x88, 0x9e, 0xcc, 0x62, 0x46, 0x0e, 0xb6, 0xbb, 0x69, 0xcf, 0x8f, + 0x8c, 0xf7, 0x46, 0x2e, 0x02, 0xd4, 0x65, 0x55, 0x82, 0xf0, 0xbe, 0xe4, 0x57, 0x44, 0x1e, 0x84, + 0x45, 0x17, 0xd2, 0x61, 0xf3, 0xd9, 0x2f, 0xe4, 0xe1, 0xc6, 0xd8, 0xab, 0x95, 0x32, 0x9b, 0x39, + 0x7c, 0x87, 0xe5, 0x1a, 0xa5, 0xd1, 0xf3, 0x96, 0xe4, 0xf9, 0xde, 0xda, 0x4f, 0xb5, 0xf7, 0x5d, + 0x63, 0xbd, 0x01, 0x75, 0xb4, 0xb9, 0x2d, 0xc6, 0xc7, 0x64, 0xa0, 0x64, 0x21, 0xd1, 0x63, 0xde, + 0x15, 0xa1, 0xd8, 0x76, 0xd1, 0x5c, 0x81, 0xa6, 0xfd, 0x49, 0x34, 0xbd, 0x23, 0x42, 0x11, 0x53, + 0x32, 0x5a, 0x49, 0x85, 0x60, 0x1d, 0x3d, 0xf0, 0xfd, 0xa6, 0x8c, 0x4f, 0xc9, 0xc8, 0x19, 0x8b, + 0xf3, 0x45, 0x45, 0x07, 0x9e, 0xeb, 0x98, 0x75, 0x03, 0x65, 0x33, 0x63, 0x51, 0x0c, 0xb7, 0xa6, + 0xf3, 0x2a, 0xb9, 0x24, 0x64, 0xf7, 0xa7, 0xf1, 0x4b, 0x32, 0x0a, 0x6f, 0xc1, 0xd1, 0x68, 0xd2, + 0x9f, 0x1e, 0x9e, 0x9d, 0xdc, 0x1a, 0xf6, 0xb2, 0x68, 0x6c, 0x3b, 0xbc, 0xde, 0x0d, 0xbc, 0xe4, + 0x9a, 0xdc, 0x0f, 0xc6, 0x19, 0xe0, 0x3f, 0xa7, 0xf6, 0x82, 0x0c, 0xbe, 0xa5, 0x6a, 0xdd, 0xc4, + 0x76, 0xf2, 0xe7, 0xd8, 0x44, 0x30, 0x25, 0x47, 0x4d, 0x64, 0xfe, 0x93, 0xae, 0x34, 0xda, 0x41, + 0xf2, 0x33, 0x22, 0xc3, 0xd0, 0xfd, 0xef, 0x8f, 0x66, 0x87, 0xdb, 0xff, 0x0b, 0xdc, 0xf3, 0x37, + 0x9f, 0x5f, 0xe7, 0x12, 0xbf, 0xae, 0x17, 0x6c, 0x69, 0x0a, 0xee, 0xad, 0xc6, 0xe6, 0xbc, 0x3d, + 0x88, 0x1c, 0x34, 0x2f, 0x17, 0xa7, 0xb9, 0xe1, 0xdd, 0xf3, 0x5b, 0x0c, 0xfd, 0x7d, 0xbc, 0xfa, + 0x1d, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x2a, 0x71, 0x78, 0xc4, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.validate.go new file mode 100644 index 0000000000..bd497009e3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.validate.go @@ -0,0 +1,544 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/signal.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 _signal_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 SignalGetOrCreateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SignalGetOrCreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalGetOrCreateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalGetOrCreateRequestValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SignalGetOrCreateRequestValidationError is the validation error returned by +// SignalGetOrCreateRequest.Validate if the designated constraints aren't met. +type SignalGetOrCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalGetOrCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalGetOrCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalGetOrCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalGetOrCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalGetOrCreateRequestValidationError) ErrorName() string { + return "SignalGetOrCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e SignalGetOrCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignalGetOrCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalGetOrCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalGetOrCreateRequestValidationError{} + +// Validate checks the field values on SignalListRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SignalListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkflowExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalListRequestValidationError{ + field: "WorkflowExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SignalListRequestValidationError is the validation error returned by +// SignalListRequest.Validate if the designated constraints aren't met. +type SignalListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalListRequestValidationError) ErrorName() string { + return "SignalListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e SignalListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignalListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalListRequestValidationError{} + +// Validate checks the field values on SignalList with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SignalList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetSignals() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalListValidationError{ + field: fmt.Sprintf("Signals[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// SignalListValidationError is the validation error returned by +// SignalList.Validate if the designated constraints aren't met. +type SignalListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalListValidationError) ErrorName() string { return "SignalListValidationError" } + +// Error satisfies the builtin error interface +func (e SignalListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignalList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalListValidationError{} + +// Validate checks the field values on SignalSetRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SignalSetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalSetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalSetRequestValidationError{ + field: "Value", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SignalSetRequestValidationError is the validation error returned by +// SignalSetRequest.Validate if the designated constraints aren't met. +type SignalSetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalSetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalSetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalSetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalSetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalSetRequestValidationError) ErrorName() string { return "SignalSetRequestValidationError" } + +// Error satisfies the builtin error interface +func (e SignalSetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignalSetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalSetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalSetRequestValidationError{} + +// Validate checks the field values on SignalSetResponse with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SignalSetResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SignalSetResponseValidationError is the validation error returned by +// SignalSetResponse.Validate if the designated constraints aren't met. +type SignalSetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalSetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalSetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalSetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalSetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalSetResponseValidationError) ErrorName() string { + return "SignalSetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e SignalSetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignalSetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalSetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalSetResponseValidationError{} + +// Validate checks the field values on Signal with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Signal) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalValidationError{ + field: "Value", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SignalValidationError is the validation error returned by Signal.Validate if +// the designated constraints aren't met. +type SignalValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalValidationError) ErrorName() string { return "SignalValidationError" } + +// Error satisfies the builtin error interface +func (e SignalValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignal.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/signal.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/signal.swagger.json new file mode 100644 index 0000000000..968dff5b23 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/signal.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/signal.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go new file mode 100644 index 0000000000..b17dedc5f8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go @@ -0,0 +1,366 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/task.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// Represents a request structure to create a revision of a task. +// See :ref:`ref_flyteidl.admin.Task` for more details +type TaskCreateRequest struct { + // id represents the unique identifier of the task. + // +required + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the specification for task. + // +required + Spec *TaskSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskCreateRequest) Reset() { *m = TaskCreateRequest{} } +func (m *TaskCreateRequest) String() string { return proto.CompactTextString(m) } +func (*TaskCreateRequest) ProtoMessage() {} +func (*TaskCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9204120d588b2162, []int{0} +} + +func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskCreateRequest.Unmarshal(m, b) +} +func (m *TaskCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskCreateRequest.Marshal(b, m, deterministic) +} +func (m *TaskCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskCreateRequest.Merge(m, src) +} +func (m *TaskCreateRequest) XXX_Size() int { + return xxx_messageInfo_TaskCreateRequest.Size(m) +} +func (m *TaskCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskCreateRequest proto.InternalMessageInfo + +func (m *TaskCreateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *TaskCreateRequest) GetSpec() *TaskSpec { + if m != nil { + return m.Spec + } + return nil +} + +// Represents a response structure if task creation succeeds. +type TaskCreateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskCreateResponse) Reset() { *m = TaskCreateResponse{} } +func (m *TaskCreateResponse) String() string { return proto.CompactTextString(m) } +func (*TaskCreateResponse) ProtoMessage() {} +func (*TaskCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9204120d588b2162, []int{1} +} + +func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskCreateResponse.Unmarshal(m, b) +} +func (m *TaskCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskCreateResponse.Marshal(b, m, deterministic) +} +func (m *TaskCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskCreateResponse.Merge(m, src) +} +func (m *TaskCreateResponse) XXX_Size() int { + return xxx_messageInfo_TaskCreateResponse.Size(m) +} +func (m *TaskCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskCreateResponse proto.InternalMessageInfo + +// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +// arranged to process workflow inputs and produce a deterministic set of outputs. +// Tasks can come in many varieties tuned for specialized behavior. +type Task struct { + // id represents the unique identifier of the task. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the task. + Closure *TaskClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` + // One-liner overview of the entity. + ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Task) Reset() { *m = Task{} } +func (m *Task) String() string { return proto.CompactTextString(m) } +func (*Task) ProtoMessage() {} +func (*Task) Descriptor() ([]byte, []int) { + return fileDescriptor_9204120d588b2162, []int{2} +} + +func (m *Task) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Task.Unmarshal(m, b) +} +func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Task.Marshal(b, m, deterministic) +} +func (m *Task) XXX_Merge(src proto.Message) { + xxx_messageInfo_Task.Merge(m, src) +} +func (m *Task) XXX_Size() int { + return xxx_messageInfo_Task.Size(m) +} +func (m *Task) XXX_DiscardUnknown() { + xxx_messageInfo_Task.DiscardUnknown(m) +} + +var xxx_messageInfo_Task proto.InternalMessageInfo + +func (m *Task) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *Task) GetClosure() *TaskClosure { + if m != nil { + return m.Closure + } + return nil +} + +func (m *Task) GetShortDescription() string { + if m != nil { + return m.ShortDescription + } + return "" +} + +// Represents a list of tasks returned from the admin. +// See :ref:`ref_flyteidl.admin.Task` for more details +type TaskList struct { + // A list of tasks returned based on the request. + Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskList) Reset() { *m = TaskList{} } +func (m *TaskList) String() string { return proto.CompactTextString(m) } +func (*TaskList) ProtoMessage() {} +func (*TaskList) Descriptor() ([]byte, []int) { + return fileDescriptor_9204120d588b2162, []int{3} +} + +func (m *TaskList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskList.Unmarshal(m, b) +} +func (m *TaskList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskList.Marshal(b, m, deterministic) +} +func (m *TaskList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskList.Merge(m, src) +} +func (m *TaskList) XXX_Size() int { + return xxx_messageInfo_TaskList.Size(m) +} +func (m *TaskList) XXX_DiscardUnknown() { + xxx_messageInfo_TaskList.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskList proto.InternalMessageInfo + +func (m *TaskList) GetTasks() []*Task { + if m != nil { + return m.Tasks + } + return nil +} + +func (m *TaskList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Represents a structure that encapsulates the user-configured specification of the task. +type TaskSpec struct { + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // Represents the specification for description entity. + Description *DescriptionEntity `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskSpec) Reset() { *m = TaskSpec{} } +func (m *TaskSpec) String() string { return proto.CompactTextString(m) } +func (*TaskSpec) ProtoMessage() {} +func (*TaskSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_9204120d588b2162, []int{4} +} + +func (m *TaskSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskSpec.Unmarshal(m, b) +} +func (m *TaskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskSpec.Marshal(b, m, deterministic) +} +func (m *TaskSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskSpec.Merge(m, src) +} +func (m *TaskSpec) XXX_Size() int { + return xxx_messageInfo_TaskSpec.Size(m) +} +func (m *TaskSpec) XXX_DiscardUnknown() { + xxx_messageInfo_TaskSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskSpec proto.InternalMessageInfo + +func (m *TaskSpec) GetTemplate() *core.TaskTemplate { + if m != nil { + return m.Template + } + return nil +} + +func (m *TaskSpec) GetDescription() *DescriptionEntity { + if m != nil { + return m.Description + } + return nil +} + +// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +// and task metadata. +type TaskClosure struct { + // Represents the compiled representation of the task from the specification provided. + CompiledTask *core.CompiledTask `protobuf:"bytes,1,opt,name=compiled_task,json=compiledTask,proto3" json:"compiled_task,omitempty"` + // Time at which the task was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskClosure) Reset() { *m = TaskClosure{} } +func (m *TaskClosure) String() string { return proto.CompactTextString(m) } +func (*TaskClosure) ProtoMessage() {} +func (*TaskClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_9204120d588b2162, []int{5} +} + +func (m *TaskClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskClosure.Unmarshal(m, b) +} +func (m *TaskClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskClosure.Marshal(b, m, deterministic) +} +func (m *TaskClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskClosure.Merge(m, src) +} +func (m *TaskClosure) XXX_Size() int { + return xxx_messageInfo_TaskClosure.Size(m) +} +func (m *TaskClosure) XXX_DiscardUnknown() { + xxx_messageInfo_TaskClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskClosure proto.InternalMessageInfo + +func (m *TaskClosure) GetCompiledTask() *core.CompiledTask { + if m != nil { + return m.CompiledTask + } + return nil +} + +func (m *TaskClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func init() { + proto.RegisterType((*TaskCreateRequest)(nil), "flyteidl.admin.TaskCreateRequest") + proto.RegisterType((*TaskCreateResponse)(nil), "flyteidl.admin.TaskCreateResponse") + proto.RegisterType((*Task)(nil), "flyteidl.admin.Task") + proto.RegisterType((*TaskList)(nil), "flyteidl.admin.TaskList") + proto.RegisterType((*TaskSpec)(nil), "flyteidl.admin.TaskSpec") + proto.RegisterType((*TaskClosure)(nil), "flyteidl.admin.TaskClosure") +} + +func init() { proto.RegisterFile("flyteidl/admin/task.proto", fileDescriptor_9204120d588b2162) } + +var fileDescriptor_9204120d588b2162 = []byte{ + // 454 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x8f, 0xd3, 0x30, + 0x10, 0xc5, 0x95, 0xee, 0x2e, 0x6c, 0x5d, 0x40, 0xac, 0xd5, 0x43, 0xda, 0x45, 0x50, 0x72, 0xa1, + 0xfc, 0xb3, 0xa5, 0x45, 0xab, 0x15, 0x37, 0xa0, 0x70, 0x40, 0xda, 0x93, 0xe9, 0x89, 0x4b, 0x95, + 0x3a, 0xd3, 0xac, 0xd5, 0x24, 0x36, 0xf1, 0xf4, 0xb0, 0xdf, 0x00, 0x71, 0xe7, 0xfb, 0x22, 0x3b, + 0x6e, 0x48, 0xaa, 0xe5, 0xc0, 0xd1, 0x9e, 0x9f, 0x67, 0xde, 0x1b, 0x3f, 0x32, 0xd9, 0x14, 0xb7, + 0x08, 0x2a, 0x2b, 0x78, 0x9a, 0x95, 0xaa, 0xe2, 0x98, 0xda, 0x2d, 0x33, 0xb5, 0x46, 0x4d, 0x1f, + 0xed, 0x4b, 0xcc, 0x97, 0xa6, 0x4f, 0x5b, 0x54, 0xea, 0x1a, 0xb8, 0xca, 0xa0, 0x42, 0xb5, 0x51, + 0x50, 0x37, 0xfc, 0x74, 0xd2, 0xaf, 0xbb, 0x4e, 0x36, 0x94, 0x9e, 0xf4, 0x4b, 0x52, 0x97, 0x46, + 0x15, 0xed, 0xc3, 0x17, 0x07, 0x1a, 0x32, 0xb0, 0xb2, 0x56, 0x06, 0x95, 0xae, 0x56, 0x6e, 0x06, + 0xde, 0x06, 0xf0, 0x59, 0xae, 0x75, 0x5e, 0x00, 0xf7, 0xa7, 0xf5, 0x6e, 0xc3, 0x51, 0x95, 0x60, + 0x31, 0x2d, 0x4d, 0x03, 0x24, 0x05, 0x39, 0x5b, 0xa6, 0x76, 0xbb, 0xa8, 0x21, 0x45, 0x10, 0xf0, + 0x63, 0x07, 0x16, 0xe9, 0x4b, 0x32, 0x50, 0x59, 0x1c, 0xcd, 0xa2, 0xf9, 0xe8, 0x62, 0xc2, 0x5a, + 0x53, 0x4e, 0x09, 0xfb, 0xda, 0x9a, 0x10, 0x03, 0x95, 0xd1, 0x37, 0xe4, 0xd8, 0x1a, 0x90, 0xf1, + 0xc0, 0xc3, 0x31, 0xeb, 0x6f, 0x80, 0xb9, 0xde, 0xdf, 0x0c, 0x48, 0xe1, 0xa9, 0x64, 0x4c, 0x68, + 0x77, 0x9a, 0x35, 0xba, 0xb2, 0x90, 0xfc, 0x8e, 0xc8, 0xb1, 0xbb, 0xfe, 0x9f, 0xb9, 0x97, 0xe4, + 0xbe, 0x2c, 0xb4, 0xdd, 0xd5, 0x10, 0x46, 0x9f, 0xdf, 0x35, 0x7a, 0xd1, 0x20, 0x62, 0xcf, 0xd2, + 0xd7, 0xe4, 0xcc, 0xde, 0xe8, 0x1a, 0x57, 0x9d, 0x8d, 0xc5, 0x47, 0xb3, 0x68, 0x3e, 0x14, 0x8f, + 0x7d, 0xe1, 0xf3, 0xdf, 0xfb, 0xe4, 0x9a, 0x9c, 0xba, 0x26, 0xd7, 0xca, 0x22, 0x7d, 0x45, 0x4e, + 0xfc, 0xf7, 0xc4, 0xd1, 0xec, 0x68, 0x3e, 0xba, 0x18, 0xdf, 0x35, 0x4d, 0x34, 0x08, 0x1d, 0x93, + 0x13, 0xd4, 0x5b, 0xa8, 0xbc, 0xb2, 0xa1, 0x68, 0x0e, 0xc9, 0xcf, 0xa8, 0x69, 0xe7, 0xd6, 0x41, + 0xaf, 0xc8, 0x29, 0x42, 0x69, 0x8a, 0x14, 0x21, 0xf8, 0x3d, 0x3f, 0xf0, 0xeb, 0xd0, 0x65, 0x40, + 0x44, 0x0b, 0xd3, 0x05, 0x19, 0x75, 0xa5, 0x37, 0xde, 0x9f, 0x1f, 0xaa, 0xe9, 0xb8, 0xf8, 0xe2, + 0xe3, 0x20, 0xba, 0xaf, 0x92, 0x5f, 0x11, 0x19, 0x75, 0xd6, 0x43, 0x3f, 0x90, 0x87, 0x21, 0x60, + 0xd9, 0xca, 0x59, 0xf8, 0x87, 0xa4, 0x45, 0x60, 0xbc, 0xd7, 0x07, 0xb2, 0x73, 0xa2, 0xef, 0x09, + 0x91, 0xfe, 0x53, 0xb3, 0x55, 0x8a, 0x41, 0xd5, 0x94, 0x35, 0xe1, 0x63, 0xfb, 0xf0, 0xb1, 0xe5, + 0x3e, 0x7c, 0x62, 0x18, 0xe8, 0x8f, 0xf8, 0xe9, 0xea, 0xfb, 0x65, 0xae, 0xf0, 0x66, 0xb7, 0x66, + 0x52, 0x97, 0xdc, 0x4f, 0xd4, 0x75, 0xce, 0xdb, 0x84, 0xe7, 0x50, 0x71, 0xb3, 0x7e, 0x9b, 0x6b, + 0xde, 0x0f, 0xfd, 0xfa, 0x9e, 0xef, 0xfb, 0xee, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xef, 0xf4, + 0x1d, 0x42, 0x91, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.validate.go new file mode 100644 index 0000000000..aa781643a4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.validate.go @@ -0,0 +1,527 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/task.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 _task_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 TaskCreateRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskCreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskCreateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskCreateRequestValidationError is the validation error returned by +// TaskCreateRequest.Validate if the designated constraints aren't met. +type TaskCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskCreateRequestValidationError) ErrorName() string { + return "TaskCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskCreateRequestValidationError{} + +// Validate checks the field values on TaskCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskCreateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// TaskCreateResponseValidationError is the validation error returned by +// TaskCreateResponse.Validate if the designated constraints aren't met. +type TaskCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskCreateResponseValidationError) ErrorName() string { + return "TaskCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskCreateResponseValidationError{} + +// Validate checks the field values on Task with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Task) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ShortDescription + + return nil +} + +// TaskValidationError is the validation error returned by Task.Validate if the +// designated constraints aren't met. +type TaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskValidationError) ErrorName() string { return "TaskValidationError" } + +// Error satisfies the builtin error interface +func (e TaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskValidationError{} + +// Validate checks the field values on TaskList with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskListValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// TaskListValidationError is the validation error returned by +// TaskList.Validate if the designated constraints aren't met. +type TaskListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskListValidationError) ErrorName() string { return "TaskListValidationError" } + +// Error satisfies the builtin error interface +func (e TaskListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskListValidationError{} + +// Validate checks the field values on TaskSpec with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskSpecValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDescription()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskSpecValidationError{ + field: "Description", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskSpecValidationError is the validation error returned by +// TaskSpec.Validate if the designated constraints aren't met. +type TaskSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskSpecValidationError) ErrorName() string { return "TaskSpecValidationError" } + +// Error satisfies the builtin error interface +func (e TaskSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskSpecValidationError{} + +// Validate checks the field values on TaskClosure with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCompiledTask()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskClosureValidationError{ + field: "CompiledTask", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskClosureValidationError is the validation error returned by +// TaskClosure.Validate if the designated constraints aren't met. +type TaskClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskClosureValidationError) ErrorName() string { return "TaskClosureValidationError" } + +// Error satisfies the builtin error interface +func (e TaskClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskClosureValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json new file mode 100644 index 0000000000..8c7e13c9d3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/task.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go new file mode 100644 index 0000000000..a68b8936ce --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go @@ -0,0 +1,737 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/task_execution.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + event "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/event" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// A message used to fetch a single task execution entity. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +type TaskExecutionGetRequest struct { + // Unique identifier for the task execution. + // +required + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionGetRequest) Reset() { *m = TaskExecutionGetRequest{} } +func (m *TaskExecutionGetRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionGetRequest) ProtoMessage() {} +func (*TaskExecutionGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{0} +} + +func (m *TaskExecutionGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionGetRequest.Unmarshal(m, b) +} +func (m *TaskExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionGetRequest.Marshal(b, m, deterministic) +} +func (m *TaskExecutionGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionGetRequest.Merge(m, src) +} +func (m *TaskExecutionGetRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionGetRequest.Size(m) +} +func (m *TaskExecutionGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionGetRequest proto.InternalMessageInfo + +func (m *TaskExecutionGetRequest) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +type TaskExecutionListRequest struct { + // Indicates the node execution to filter by. + // +required + NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering for returned list. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionListRequest) Reset() { *m = TaskExecutionListRequest{} } +func (m *TaskExecutionListRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionListRequest) ProtoMessage() {} +func (*TaskExecutionListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{1} +} + +func (m *TaskExecutionListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionListRequest.Unmarshal(m, b) +} +func (m *TaskExecutionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionListRequest.Marshal(b, m, deterministic) +} +func (m *TaskExecutionListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionListRequest.Merge(m, src) +} +func (m *TaskExecutionListRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionListRequest.Size(m) +} +func (m *TaskExecutionListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionListRequest proto.InternalMessageInfo + +func (m *TaskExecutionListRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { + if m != nil { + return m.NodeExecutionId + } + return nil +} + +func (m *TaskExecutionListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *TaskExecutionListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *TaskExecutionListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *TaskExecutionListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Encapsulates all details for a single task execution entity. +// A task execution represents an instantiated task, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +type TaskExecution struct { + // Unique identifier for the task execution. + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Task execution details and results. + Closure *TaskExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + // Whether this task spawned nodes. + IsParent bool `protobuf:"varint,4,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecution) Reset() { *m = TaskExecution{} } +func (m *TaskExecution) String() string { return proto.CompactTextString(m) } +func (*TaskExecution) ProtoMessage() {} +func (*TaskExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{2} +} + +func (m *TaskExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecution.Unmarshal(m, b) +} +func (m *TaskExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecution.Marshal(b, m, deterministic) +} +func (m *TaskExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecution.Merge(m, src) +} +func (m *TaskExecution) XXX_Size() int { + return xxx_messageInfo_TaskExecution.Size(m) +} +func (m *TaskExecution) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecution proto.InternalMessageInfo + +func (m *TaskExecution) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *TaskExecution) GetInputUri() string { + if m != nil { + return m.InputUri + } + return "" +} + +func (m *TaskExecution) GetClosure() *TaskExecutionClosure { + if m != nil { + return m.Closure + } + return nil +} + +func (m *TaskExecution) GetIsParent() bool { + if m != nil { + return m.IsParent + } + return false +} + +// Response structure for a query to list of task execution entities. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +type TaskExecutionList struct { + TaskExecutions []*TaskExecution `protobuf:"bytes,1,rep,name=task_executions,json=taskExecutions,proto3" json:"task_executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionList) Reset() { *m = TaskExecutionList{} } +func (m *TaskExecutionList) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionList) ProtoMessage() {} +func (*TaskExecutionList) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{3} +} + +func (m *TaskExecutionList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionList.Unmarshal(m, b) +} +func (m *TaskExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionList.Marshal(b, m, deterministic) +} +func (m *TaskExecutionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionList.Merge(m, src) +} +func (m *TaskExecutionList) XXX_Size() int { + return xxx_messageInfo_TaskExecutionList.Size(m) +} +func (m *TaskExecutionList) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionList.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionList proto.InternalMessageInfo + +func (m *TaskExecutionList) GetTaskExecutions() []*TaskExecution { + if m != nil { + return m.TaskExecutions + } + return nil +} + +func (m *TaskExecutionList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Container for task execution details and results. +type TaskExecutionClosure struct { + // Types that are valid to be assigned to OutputResult: + // *TaskExecutionClosure_OutputUri + // *TaskExecutionClosure_Error + // *TaskExecutionClosure_OutputData + OutputResult isTaskExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // The last recorded phase for this task execution. + Phase core.TaskExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // Detailed log information output by the task execution. + Logs []*core.TaskLog `protobuf:"bytes,4,rep,name=logs,proto3" json:"logs,omitempty"` + // Time at which the task execution began running. + StartedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the task execution spent running. + Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + // Time at which the task execution was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the task execution was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // Custom data specific to the task plugin. + CustomInfo *_struct.Struct `protobuf:"bytes,9,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` + // If there is an explanation for the most recent phase transition, the reason will capture it. + Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,11,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata around how a task was executed. + Metadata *event.TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` + // The event version is used to indicate versioned changes in how data is maintained using this + // proto message. For example, event_verison > 0 means that maps tasks logs use the + // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + // in this message. + EventVersion int32 `protobuf:"varint,17,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` + // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason + // as previously done, is much more valuable in visualizing and understanding historical evaluations. + Reasons []*Reason `protobuf:"bytes,18,rep,name=reasons,proto3" json:"reasons,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionClosure) Reset() { *m = TaskExecutionClosure{} } +func (m *TaskExecutionClosure) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionClosure) ProtoMessage() {} +func (*TaskExecutionClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{4} +} + +func (m *TaskExecutionClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionClosure.Unmarshal(m, b) +} +func (m *TaskExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionClosure.Marshal(b, m, deterministic) +} +func (m *TaskExecutionClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionClosure.Merge(m, src) +} +func (m *TaskExecutionClosure) XXX_Size() int { + return xxx_messageInfo_TaskExecutionClosure.Size(m) +} +func (m *TaskExecutionClosure) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionClosure proto.InternalMessageInfo + +type isTaskExecutionClosure_OutputResult interface { + isTaskExecutionClosure_OutputResult() +} + +type TaskExecutionClosure_OutputUri struct { + OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type TaskExecutionClosure_Error struct { + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type TaskExecutionClosure_OutputData struct { + OutputData *core.LiteralMap `protobuf:"bytes,12,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*TaskExecutionClosure_OutputUri) isTaskExecutionClosure_OutputResult() {} + +func (*TaskExecutionClosure_Error) isTaskExecutionClosure_OutputResult() {} + +func (*TaskExecutionClosure_OutputData) isTaskExecutionClosure_OutputResult() {} + +func (m *TaskExecutionClosure) GetOutputResult() isTaskExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +// Deprecated: Do not use. +func (m *TaskExecutionClosure) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*TaskExecutionClosure_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *TaskExecutionClosure) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*TaskExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +// Deprecated: Do not use. +func (m *TaskExecutionClosure) GetOutputData() *core.LiteralMap { + if x, ok := m.GetOutputResult().(*TaskExecutionClosure_OutputData); ok { + return x.OutputData + } + return nil +} + +func (m *TaskExecutionClosure) GetPhase() core.TaskExecution_Phase { + if m != nil { + return m.Phase + } + return core.TaskExecution_UNDEFINED +} + +func (m *TaskExecutionClosure) GetLogs() []*core.TaskLog { + if m != nil { + return m.Logs + } + return nil +} + +func (m *TaskExecutionClosure) GetStartedAt() *timestamp.Timestamp { + if m != nil { + return m.StartedAt + } + return nil +} + +func (m *TaskExecutionClosure) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +func (m *TaskExecutionClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *TaskExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +func (m *TaskExecutionClosure) GetCustomInfo() *_struct.Struct { + if m != nil { + return m.CustomInfo + } + return nil +} + +func (m *TaskExecutionClosure) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *TaskExecutionClosure) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *TaskExecutionClosure) GetMetadata() *event.TaskExecutionMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *TaskExecutionClosure) GetEventVersion() int32 { + if m != nil { + return m.EventVersion + } + return 0 +} + +func (m *TaskExecutionClosure) GetReasons() []*Reason { + if m != nil { + return m.Reasons + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TaskExecutionClosure) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TaskExecutionClosure_OutputUri)(nil), + (*TaskExecutionClosure_Error)(nil), + (*TaskExecutionClosure_OutputData)(nil), + } +} + +// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. +type Reason struct { + // occurred_at is the timestamp indicating the instant that this reason happened. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // message is the explanation for the most recent phase transition or status update. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Reason) Reset() { *m = Reason{} } +func (m *Reason) String() string { return proto.CompactTextString(m) } +func (*Reason) ProtoMessage() {} +func (*Reason) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{5} +} + +func (m *Reason) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Reason.Unmarshal(m, b) +} +func (m *Reason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Reason.Marshal(b, m, deterministic) +} +func (m *Reason) XXX_Merge(src proto.Message) { + xxx_messageInfo_Reason.Merge(m, src) +} +func (m *Reason) XXX_Size() int { + return xxx_messageInfo_Reason.Size(m) +} +func (m *Reason) XXX_DiscardUnknown() { + xxx_messageInfo_Reason.DiscardUnknown(m) +} + +var xxx_messageInfo_Reason proto.InternalMessageInfo + +func (m *Reason) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +func (m *Reason) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +// Request structure to fetch inputs and output for a task execution. +// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` +type TaskExecutionGetDataRequest struct { + // The identifier of the task execution for which to fetch inputs and outputs. + // +required + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionGetDataRequest) Reset() { *m = TaskExecutionGetDataRequest{} } +func (m *TaskExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionGetDataRequest) ProtoMessage() {} +func (*TaskExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{6} +} + +func (m *TaskExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionGetDataRequest.Unmarshal(m, b) +} +func (m *TaskExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionGetDataRequest.Marshal(b, m, deterministic) +} +func (m *TaskExecutionGetDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionGetDataRequest.Merge(m, src) +} +func (m *TaskExecutionGetDataRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionGetDataRequest.Size(m) +} +func (m *TaskExecutionGetDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionGetDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionGetDataRequest proto.InternalMessageInfo + +func (m *TaskExecutionGetDataRequest) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +type TaskExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of task execution inputs. + // Deprecated: Please use full_inputs instead. + Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. + // Signed url to fetch a core.LiteralMap of task execution outputs. + // Deprecated: Please use full_outputs instead. + Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` // Deprecated: Do not use. + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` + // flyte tiny url to fetch a core.LiteralMap of task execution's IO + // Deck will be empty for task + FlyteUrls *FlyteURLs `protobuf:"bytes,5,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionGetDataResponse) Reset() { *m = TaskExecutionGetDataResponse{} } +func (m *TaskExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionGetDataResponse) ProtoMessage() {} +func (*TaskExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8cde4c3aa101642e, []int{7} +} + +func (m *TaskExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionGetDataResponse.Unmarshal(m, b) +} +func (m *TaskExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionGetDataResponse.Marshal(b, m, deterministic) +} +func (m *TaskExecutionGetDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionGetDataResponse.Merge(m, src) +} +func (m *TaskExecutionGetDataResponse) XXX_Size() int { + return xxx_messageInfo_TaskExecutionGetDataResponse.Size(m) +} +func (m *TaskExecutionGetDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionGetDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionGetDataResponse proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *TaskExecutionGetDataResponse) GetInputs() *UrlBlob { + if m != nil { + return m.Inputs + } + return nil +} + +// Deprecated: Do not use. +func (m *TaskExecutionGetDataResponse) GetOutputs() *UrlBlob { + if m != nil { + return m.Outputs + } + return nil +} + +func (m *TaskExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { + if m != nil { + return m.FullInputs + } + return nil +} + +func (m *TaskExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { + if m != nil { + return m.FullOutputs + } + return nil +} + +func (m *TaskExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { + if m != nil { + return m.FlyteUrls + } + return nil +} + +func init() { + proto.RegisterType((*TaskExecutionGetRequest)(nil), "flyteidl.admin.TaskExecutionGetRequest") + proto.RegisterType((*TaskExecutionListRequest)(nil), "flyteidl.admin.TaskExecutionListRequest") + proto.RegisterType((*TaskExecution)(nil), "flyteidl.admin.TaskExecution") + proto.RegisterType((*TaskExecutionList)(nil), "flyteidl.admin.TaskExecutionList") + proto.RegisterType((*TaskExecutionClosure)(nil), "flyteidl.admin.TaskExecutionClosure") + proto.RegisterType((*Reason)(nil), "flyteidl.admin.Reason") + proto.RegisterType((*TaskExecutionGetDataRequest)(nil), "flyteidl.admin.TaskExecutionGetDataRequest") + proto.RegisterType((*TaskExecutionGetDataResponse)(nil), "flyteidl.admin.TaskExecutionGetDataResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/task_execution.proto", fileDescriptor_8cde4c3aa101642e) +} + +var fileDescriptor_8cde4c3aa101642e = []byte{ + // 925 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xeb, 0x6e, 0x1b, 0x45, + 0x14, 0xee, 0xba, 0x89, 0x2f, 0xc7, 0xb9, 0x90, 0x51, 0xd4, 0x6c, 0x9d, 0x14, 0x2c, 0x07, 0x90, + 0x85, 0xd4, 0x35, 0x4a, 0x15, 0x08, 0x17, 0x21, 0x6c, 0xda, 0xd2, 0x48, 0x29, 0x94, 0x69, 0xcc, + 0x0f, 0xfe, 0xac, 0xc6, 0xbb, 0x63, 0x77, 0x94, 0xdd, 0x9d, 0xed, 0xcc, 0x6c, 0x85, 0xdf, 0x85, + 0x67, 0x41, 0xe2, 0x59, 0x78, 0x11, 0x34, 0x97, 0x75, 0xb2, 0xdb, 0x10, 0x4b, 0xf0, 0x67, 0xa5, + 0x73, 0xce, 0xf7, 0x9d, 0xfb, 0x19, 0x2d, 0x1c, 0xcf, 0x93, 0xa5, 0xa2, 0x2c, 0x4e, 0x46, 0x24, + 0x4e, 0x59, 0x36, 0x52, 0x44, 0x5e, 0x85, 0xf4, 0x77, 0x1a, 0x15, 0x8a, 0xf1, 0x2c, 0xc8, 0x05, + 0x57, 0x1c, 0xed, 0x94, 0xa0, 0xc0, 0x80, 0x7a, 0x87, 0x35, 0x52, 0xc4, 0xd3, 0xb4, 0x04, 0xf7, + 0x1e, 0xad, 0x8c, 0x11, 0x17, 0x74, 0x54, 0xf3, 0xd5, 0xfb, 0xb0, 0x6a, 0x66, 0x31, 0xcd, 0x14, + 0x9b, 0x33, 0x2a, 0x9c, 0xfd, 0xa8, 0x6a, 0x4f, 0x98, 0xa2, 0x82, 0x24, 0xd2, 0x59, 0x7b, 0x2b, + 0x2b, 0x7d, 0x47, 0x33, 0x65, 0xbf, 0xce, 0xf6, 0xd1, 0x82, 0xf3, 0x45, 0x42, 0x47, 0x46, 0x9a, + 0x15, 0xf3, 0x91, 0x62, 0x29, 0x95, 0x8a, 0xa4, 0x79, 0x19, 0xba, 0x0e, 0x88, 0x0b, 0x41, 0x6e, + 0xa4, 0x76, 0x54, 0xb7, 0x4b, 0x25, 0x8a, 0xc8, 0xb9, 0x1f, 0xfc, 0x02, 0x07, 0x97, 0x44, 0x5e, + 0x3d, 0x2b, 0xeb, 0xf9, 0x91, 0x2a, 0x4c, 0xdf, 0x16, 0x54, 0x2a, 0xf4, 0x05, 0x34, 0x58, 0xec, + 0x7b, 0x7d, 0x6f, 0xd8, 0x3d, 0xf9, 0x34, 0x58, 0x35, 0x4b, 0x17, 0x10, 0x54, 0x38, 0xe7, 0xab, + 0x6a, 0x71, 0x83, 0xc5, 0x83, 0xbf, 0x3d, 0xf0, 0x2b, 0xf6, 0x0b, 0x26, 0x57, 0x4e, 0x31, 0xec, + 0x65, 0x3c, 0xa6, 0xd7, 0xc3, 0x08, 0xff, 0x35, 0xc6, 0x4f, 0x3c, 0xa6, 0xb7, 0xc5, 0xd8, 0xcd, + 0xaa, 0x06, 0xb4, 0x0f, 0x9b, 0x09, 0x4b, 0x99, 0xf2, 0x1b, 0x7d, 0x6f, 0xb8, 0x8d, 0xad, 0xa0, + 0xb5, 0x8a, 0x5f, 0xd1, 0xcc, 0xbf, 0xdf, 0xf7, 0x86, 0x1d, 0x6c, 0x05, 0xe4, 0x43, 0x6b, 0xce, + 0x12, 0x45, 0x85, 0xf4, 0x37, 0x8c, 0xbe, 0x14, 0xd1, 0x63, 0x68, 0x49, 0x2e, 0x54, 0x38, 0x5b, + 0xfa, 0x9b, 0x26, 0x9f, 0xfd, 0xa0, 0xba, 0x20, 0xc1, 0x6b, 0x2e, 0x14, 0x6e, 0x6a, 0xd0, 0x64, + 0x39, 0xf8, 0xcb, 0x83, 0xed, 0x4a, 0x95, 0xff, 0xb5, 0x5f, 0xe8, 0x10, 0x3a, 0x2c, 0xcb, 0x0b, + 0x15, 0x16, 0x82, 0x99, 0x12, 0x3a, 0xb8, 0x6d, 0x14, 0x53, 0xc1, 0xd0, 0x77, 0xd0, 0x8a, 0x12, + 0x2e, 0x0b, 0x41, 0x4d, 0x1d, 0xdd, 0x93, 0x8f, 0xeb, 0x59, 0x55, 0x5c, 0xff, 0x60, 0xb1, 0xb8, + 0x24, 0x19, 0xe7, 0x32, 0xcc, 0x89, 0xa0, 0x99, 0x32, 0x15, 0xb7, 0x71, 0x9b, 0xc9, 0x57, 0x46, + 0x1e, 0xbc, 0x85, 0xbd, 0xf7, 0x06, 0x85, 0x9e, 0xc3, 0x6e, 0xf5, 0x5c, 0xa4, 0xef, 0xf5, 0xef, + 0x0f, 0xbb, 0x27, 0x8f, 0xee, 0x8c, 0x8c, 0x77, 0xd4, 0x4d, 0x51, 0x5e, 0xf7, 0xbf, 0x71, 0xa3, + 0xff, 0x83, 0x3f, 0x9a, 0xb0, 0x7f, 0x5b, 0xc6, 0xe8, 0x18, 0x80, 0x17, 0xaa, 0x6c, 0x83, 0xee, + 0x62, 0x67, 0xd2, 0xf0, 0xbd, 0x17, 0xf7, 0x70, 0xc7, 0xea, 0x75, 0x37, 0x4e, 0x61, 0x93, 0x0a, + 0xc1, 0x85, 0xf1, 0x59, 0xc9, 0xc8, 0x74, 0x79, 0xe5, 0xf4, 0x99, 0x06, 0xbd, 0xb8, 0x87, 0x2d, + 0x1a, 0x7d, 0x0f, 0x5d, 0xe7, 0x3b, 0x26, 0x8a, 0xf8, 0x5b, 0x86, 0xfc, 0xb0, 0x46, 0xbe, 0xb0, + 0x37, 0xf9, 0x92, 0xe4, 0x2e, 0xae, 0xcb, 0xe7, 0x29, 0x51, 0x04, 0x9d, 0xc1, 0x66, 0xfe, 0x86, + 0x48, 0x3b, 0x84, 0x9d, 0x93, 0xc1, 0x5d, 0xe3, 0x0d, 0x5e, 0x69, 0x24, 0xb6, 0x04, 0xf4, 0x19, + 0x6c, 0x24, 0x7c, 0xa1, 0xb7, 0x4d, 0xf7, 0xf0, 0xc1, 0x2d, 0xc4, 0x0b, 0xbe, 0xc0, 0x06, 0x83, + 0xbe, 0x02, 0x90, 0x8a, 0x08, 0x45, 0xe3, 0x90, 0x28, 0xb7, 0x85, 0xbd, 0xc0, 0xde, 0x6f, 0x50, + 0xde, 0x6f, 0x70, 0x59, 0x3e, 0x00, 0xb8, 0xe3, 0xd0, 0x63, 0x85, 0x4e, 0xa1, 0x5d, 0xde, 0xbd, + 0xdf, 0x74, 0xf5, 0xd5, 0x89, 0x4f, 0x1d, 0x00, 0xaf, 0xa0, 0x3a, 0x62, 0x24, 0x28, 0x71, 0x11, + 0x5b, 0xeb, 0x23, 0x3a, 0xf4, 0x58, 0x69, 0x6a, 0x91, 0xc7, 0x25, 0xb5, 0xbd, 0x9e, 0xea, 0xd0, + 0x63, 0x85, 0xce, 0xa0, 0x1b, 0x15, 0x52, 0xf1, 0x34, 0x64, 0xd9, 0x9c, 0xfb, 0x1d, 0xc3, 0x3d, + 0x78, 0x8f, 0xfb, 0xda, 0x3c, 0x54, 0x18, 0x2c, 0xf6, 0x3c, 0x9b, 0x73, 0xf4, 0x00, 0x9a, 0x82, + 0x12, 0xc9, 0x33, 0x1f, 0xcc, 0x56, 0x39, 0x49, 0xaf, 0xb9, 0x59, 0x5a, 0xb5, 0xcc, 0xa9, 0xdf, + 0xb5, 0x37, 0xa4, 0x15, 0x97, 0xcb, 0x9c, 0xa2, 0x31, 0xb4, 0x53, 0xaa, 0x88, 0x99, 0xfd, 0x07, + 0x26, 0xd6, 0x27, 0xd7, 0x63, 0xb0, 0x6f, 0x6d, 0x65, 0x80, 0x2f, 0x1d, 0x18, 0xaf, 0x68, 0xe8, + 0x18, 0xb6, 0x0d, 0x30, 0x7c, 0x47, 0x85, 0xd4, 0x3d, 0xde, 0xeb, 0x7b, 0xc3, 0x4d, 0xbc, 0x65, + 0x94, 0xbf, 0x5a, 0x1d, 0xfa, 0x1c, 0x5a, 0x36, 0x1d, 0xe9, 0xa3, 0xfa, 0xb4, 0xed, 0xc5, 0x60, + 0x63, 0xc6, 0x25, 0x6c, 0xb2, 0x0b, 0xdb, 0x6e, 0x31, 0x05, 0x95, 0x45, 0xa2, 0x06, 0x21, 0x34, + 0x2d, 0x06, 0x7d, 0x03, 0x5d, 0x1e, 0x45, 0x85, 0x10, 0xb6, 0xbf, 0xde, 0xda, 0xfe, 0x42, 0x09, + 0x1f, 0x2b, 0xfd, 0xca, 0xa5, 0x54, 0x4a, 0xb2, 0xa0, 0xee, 0xfa, 0x4a, 0x71, 0x30, 0x85, 0xc3, + 0xfa, 0x7b, 0xaf, 0x17, 0xfc, 0xff, 0xbe, 0xf9, 0x7f, 0x36, 0xe0, 0xe8, 0x76, 0xbf, 0x32, 0xe7, + 0x99, 0xa4, 0xe8, 0x09, 0x34, 0xcd, 0x9b, 0x26, 0x9d, 0xf3, 0x83, 0x7a, 0x6b, 0xa6, 0x22, 0x99, + 0x24, 0x7c, 0xa6, 0x6f, 0x0f, 0x3b, 0x28, 0x3a, 0x85, 0x96, 0x6d, 0x8f, 0x74, 0x07, 0x7f, 0x27, + 0xab, 0xc4, 0xa2, 0xaf, 0xa1, 0x3b, 0x2f, 0x92, 0x24, 0x74, 0x01, 0xef, 0xaf, 0x39, 0x77, 0x0c, + 0x1a, 0x7d, 0x6e, 0x43, 0x7e, 0x0b, 0x5b, 0x86, 0x5b, 0xc6, 0xdd, 0x58, 0x47, 0x36, 0xa1, 0x7e, + 0x76, 0x91, 0xcf, 0x00, 0x0c, 0x30, 0x2c, 0x44, 0x22, 0xdd, 0x01, 0x3f, 0xac, 0xe7, 0xfc, 0x5c, + 0x8b, 0x53, 0x7c, 0x21, 0x71, 0xc7, 0x58, 0xa6, 0x22, 0x91, 0x93, 0x2f, 0x7f, 0x3b, 0x5d, 0x30, + 0xf5, 0xa6, 0x98, 0x05, 0x11, 0x4f, 0x47, 0x46, 0xcf, 0xc5, 0x62, 0xb4, 0xfa, 0x31, 0x58, 0xd0, + 0x6c, 0x94, 0xcf, 0x1e, 0x2f, 0xf8, 0xa8, 0xfa, 0x97, 0x32, 0x6b, 0x9a, 0x55, 0x78, 0xf2, 0x4f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xae, 0x02, 0x8d, 0xf3, 0x08, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.validate.go new file mode 100644 index 0000000000..625e73bacc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.validate.go @@ -0,0 +1,852 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/task_execution.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +// 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{} + + _ = core.TaskExecution_Phase(0) +) + +// define the regex for a UUID once up-front +var _task_execution_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 TaskExecutionGetRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionGetRequestValidationError is the validation error returned by +// TaskExecutionGetRequest.Validate if the designated constraints aren't met. +type TaskExecutionGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionGetRequestValidationError) ErrorName() string { + return "TaskExecutionGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionGetRequestValidationError{} + +// Validate checks the field values on TaskExecutionListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNodeExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionListRequestValidationError{ + field: "NodeExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionListRequestValidationError is the validation error returned by +// TaskExecutionListRequest.Validate if the designated constraints aren't met. +type TaskExecutionListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionListRequestValidationError) ErrorName() string { + return "TaskExecutionListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionListRequestValidationError{} + +// Validate checks the field values on TaskExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskExecution) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for InputUri + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for IsParent + + return nil +} + +// TaskExecutionValidationError is the validation error returned by +// TaskExecution.Validate if the designated constraints aren't met. +type TaskExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionValidationError) ErrorName() string { return "TaskExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e TaskExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionValidationError{} + +// Validate checks the field values on TaskExecutionList with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskExecutionList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetTaskExecutions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionListValidationError{ + field: fmt.Sprintf("TaskExecutions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// TaskExecutionListValidationError is the validation error returned by +// TaskExecutionList.Validate if the designated constraints aren't met. +type TaskExecutionListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionListValidationError) ErrorName() string { + return "TaskExecutionListValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionListValidationError{} + +// Validate checks the field values on TaskExecutionClosure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionClosure) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Phase + + for idx, item := range m.GetLogs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: fmt.Sprintf("Logs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetStartedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "StartedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCustomInfo()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "CustomInfo", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Reason + + // no validation rules for TaskType + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EventVersion + + for idx, item := range m.GetReasons() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: fmt.Sprintf("Reasons[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.OutputResult.(type) { + + case *TaskExecutionClosure_OutputUri: + // no validation rules for OutputUri + + case *TaskExecutionClosure_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TaskExecutionClosure_OutputData: + + if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "OutputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskExecutionClosureValidationError is the validation error returned by +// TaskExecutionClosure.Validate if the designated constraints aren't met. +type TaskExecutionClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionClosureValidationError) ErrorName() string { + return "TaskExecutionClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionClosureValidationError{} + +// Validate checks the field values on Reason with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Reason) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReasonValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Message + + return nil +} + +// ReasonValidationError is the validation error returned by Reason.Validate if +// the designated constraints aren't met. +type ReasonValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReasonValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReasonValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReasonValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReasonValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReasonValidationError) ErrorName() string { return "ReasonValidationError" } + +// Error satisfies the builtin error interface +func (e ReasonValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sReason.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReasonValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReasonValidationError{} + +// Validate checks the field values on TaskExecutionGetDataRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionGetDataRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionGetDataRequestValidationError is the validation error returned +// by TaskExecutionGetDataRequest.Validate if the designated constraints +// aren't met. +type TaskExecutionGetDataRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionGetDataRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionGetDataRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionGetDataRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionGetDataRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionGetDataRequestValidationError) ErrorName() string { + return "TaskExecutionGetDataRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionGetDataRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionGetDataRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionGetDataRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionGetDataRequestValidationError{} + +// Validate checks the field values on TaskExecutionGetDataResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionGetDataResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataResponseValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataResponseValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFullInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataResponseValidationError{ + field: "FullInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFullOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataResponseValidationError{ + field: "FullOutputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFlyteUrls()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataResponseValidationError{ + field: "FlyteUrls", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionGetDataResponseValidationError is the validation error returned +// by TaskExecutionGetDataResponse.Validate if the designated constraints +// aren't met. +type TaskExecutionGetDataResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionGetDataResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionGetDataResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionGetDataResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionGetDataResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionGetDataResponseValidationError) ErrorName() string { + return "TaskExecutionGetDataResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionGetDataResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionGetDataResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionGetDataResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionGetDataResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json new file mode 100644 index 0000000000..8e73cb6c5b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/task_execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go new file mode 100644 index 0000000000..c51cf4d8d5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go @@ -0,0 +1,180 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/version.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Response for the GetVersion API +type GetVersionResponse struct { + // The control plane version information. FlyteAdmin and related components + // form the control plane of Flyte + ControlPlaneVersion *Version `protobuf:"bytes,1,opt,name=control_plane_version,json=controlPlaneVersion,proto3" json:"control_plane_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } +func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } +func (*GetVersionResponse) ProtoMessage() {} +func (*GetVersionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a025621cd13402e3, []int{0} +} + +func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVersionResponse.Unmarshal(m, b) +} +func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVersionResponse.Marshal(b, m, deterministic) +} +func (m *GetVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVersionResponse.Merge(m, src) +} +func (m *GetVersionResponse) XXX_Size() int { + return xxx_messageInfo_GetVersionResponse.Size(m) +} +func (m *GetVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetVersionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVersionResponse proto.InternalMessageInfo + +func (m *GetVersionResponse) GetControlPlaneVersion() *Version { + if m != nil { + return m.ControlPlaneVersion + } + return nil +} + +// Provides Version information for a component +type Version struct { + // Specifies the GIT sha of the build + Build string `protobuf:"bytes,1,opt,name=Build,proto3" json:"Build,omitempty"` + // Version for the build, should follow a semver + Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` + // Build timestamp + BuildTime string `protobuf:"bytes,3,opt,name=BuildTime,proto3" json:"BuildTime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Version) Reset() { *m = Version{} } +func (m *Version) String() string { return proto.CompactTextString(m) } +func (*Version) ProtoMessage() {} +func (*Version) Descriptor() ([]byte, []int) { + return fileDescriptor_a025621cd13402e3, []int{1} +} + +func (m *Version) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Version.Unmarshal(m, b) +} +func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Version.Marshal(b, m, deterministic) +} +func (m *Version) XXX_Merge(src proto.Message) { + xxx_messageInfo_Version.Merge(m, src) +} +func (m *Version) XXX_Size() int { + return xxx_messageInfo_Version.Size(m) +} +func (m *Version) XXX_DiscardUnknown() { + xxx_messageInfo_Version.DiscardUnknown(m) +} + +var xxx_messageInfo_Version proto.InternalMessageInfo + +func (m *Version) GetBuild() string { + if m != nil { + return m.Build + } + return "" +} + +func (m *Version) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *Version) GetBuildTime() string { + if m != nil { + return m.BuildTime + } + return "" +} + +// Empty request for GetVersion +type GetVersionRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } +func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } +func (*GetVersionRequest) ProtoMessage() {} +func (*GetVersionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a025621cd13402e3, []int{2} +} + +func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVersionRequest.Unmarshal(m, b) +} +func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVersionRequest.Marshal(b, m, deterministic) +} +func (m *GetVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVersionRequest.Merge(m, src) +} +func (m *GetVersionRequest) XXX_Size() int { + return xxx_messageInfo_GetVersionRequest.Size(m) +} +func (m *GetVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVersionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVersionRequest proto.InternalMessageInfo + +func init() { + proto.RegisterType((*GetVersionResponse)(nil), "flyteidl.admin.GetVersionResponse") + proto.RegisterType((*Version)(nil), "flyteidl.admin.Version") + proto.RegisterType((*GetVersionRequest)(nil), "flyteidl.admin.GetVersionRequest") +} + +func init() { proto.RegisterFile("flyteidl/admin/version.proto", fileDescriptor_a025621cd13402e3) } + +var fileDescriptor_a025621cd13402e3 = []byte{ + // 219 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0x4c, 0xc9, 0xcd, 0xcc, 0xd3, 0x2f, 0x4b, 0x2d, 0x2a, 0xce, + 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0xc9, 0xea, 0x81, 0x65, 0x95, + 0x12, 0xb9, 0x84, 0xdc, 0x53, 0x4b, 0xc2, 0x20, 0x6a, 0x82, 0x52, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, + 0x53, 0x85, 0xbc, 0xb9, 0x44, 0x93, 0xf3, 0xf3, 0x4a, 0x8a, 0xf2, 0x73, 0xe2, 0x0b, 0x72, 0x12, + 0xf3, 0x52, 0xe3, 0xa1, 0x86, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x89, 0xeb, 0xa1, 0x9a, + 0xa2, 0x07, 0xd3, 0x2f, 0x0c, 0xd5, 0x15, 0x00, 0xd2, 0x04, 0x15, 0x54, 0x0a, 0xe7, 0x62, 0x87, + 0x32, 0x85, 0x44, 0xb8, 0x58, 0x9d, 0x4a, 0x33, 0x73, 0x52, 0xc0, 0xe6, 0x70, 0x06, 0x41, 0x38, + 0x42, 0x12, 0x70, 0x05, 0x12, 0x4c, 0x60, 0x71, 0xb8, 0x7a, 0x19, 0x2e, 0x4e, 0xb0, 0x92, 0x90, + 0xcc, 0xdc, 0x54, 0x09, 0x66, 0xb0, 0x1c, 0x42, 0x40, 0x49, 0x98, 0x4b, 0x10, 0xd9, 0xed, 0x85, + 0xa5, 0xa9, 0xc5, 0x25, 0x4e, 0xe6, 0x51, 0xa6, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, + 0xf9, 0xb9, 0xfa, 0x60, 0x77, 0xe6, 0x17, 0xa5, 0xeb, 0xc3, 0x03, 0x25, 0x3d, 0x35, 0x4f, 0xbf, + 0x20, 0x49, 0x37, 0x3d, 0x5f, 0x1f, 0x35, 0x9c, 0x92, 0xd8, 0xc0, 0x01, 0x64, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x77, 0x9b, 0x1b, 0x7c, 0x40, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/version.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.validate.go new file mode 100644 index 0000000000..697aab8fc1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.validate.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/version.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 _version_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 GetVersionResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetVersionResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetControlPlaneVersion()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetVersionResponseValidationError{ + field: "ControlPlaneVersion", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetVersionResponseValidationError is the validation error returned by +// GetVersionResponse.Validate if the designated constraints aren't met. +type GetVersionResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetVersionResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetVersionResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetVersionResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetVersionResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetVersionResponseValidationError) ErrorName() string { + return "GetVersionResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetVersionResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetVersionResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetVersionResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetVersionResponseValidationError{} + +// Validate checks the field values on Version with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Version) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Build + + // no validation rules for Version + + // no validation rules for BuildTime + + return nil +} + +// VersionValidationError is the validation error returned by Version.Validate +// if the designated constraints aren't met. +type VersionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VersionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VersionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VersionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VersionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VersionValidationError) ErrorName() string { return "VersionValidationError" } + +// Error satisfies the builtin error interface +func (e VersionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVersion.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VersionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VersionValidationError{} + +// Validate checks the field values on GetVersionRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *GetVersionRequest) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// GetVersionRequestValidationError is the validation error returned by +// GetVersionRequest.Validate if the designated constraints aren't met. +type GetVersionRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetVersionRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetVersionRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetVersionRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetVersionRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetVersionRequestValidationError) ErrorName() string { + return "GetVersionRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetVersionRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetVersionRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetVersionRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetVersionRequestValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/version.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/version.swagger.json new file mode 100644 index 0000000000..bb45296df2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/version.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/version.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go new file mode 100644 index 0000000000..756045f43b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go @@ -0,0 +1,547 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/workflow.proto + +package admin + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// Represents a request structure to create a revision of a workflow. +// See :ref:`ref_flyteidl.admin.Workflow` for more details +type WorkflowCreateRequest struct { + // id represents the unique identifier of the workflow. + // +required + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the specification for workflow. + // +required + Spec *WorkflowSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowCreateRequest) Reset() { *m = WorkflowCreateRequest{} } +func (m *WorkflowCreateRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowCreateRequest) ProtoMessage() {} +func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{0} +} + +func (m *WorkflowCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowCreateRequest.Unmarshal(m, b) +} +func (m *WorkflowCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowCreateRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowCreateRequest.Merge(m, src) +} +func (m *WorkflowCreateRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowCreateRequest.Size(m) +} +func (m *WorkflowCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowCreateRequest proto.InternalMessageInfo + +func (m *WorkflowCreateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *WorkflowCreateRequest) GetSpec() *WorkflowSpec { + if m != nil { + return m.Spec + } + return nil +} + +type WorkflowCreateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowCreateResponse) Reset() { *m = WorkflowCreateResponse{} } +func (m *WorkflowCreateResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowCreateResponse) ProtoMessage() {} +func (*WorkflowCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{1} +} + +func (m *WorkflowCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowCreateResponse.Unmarshal(m, b) +} +func (m *WorkflowCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowCreateResponse.Marshal(b, m, deterministic) +} +func (m *WorkflowCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowCreateResponse.Merge(m, src) +} +func (m *WorkflowCreateResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowCreateResponse.Size(m) +} +func (m *WorkflowCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowCreateResponse proto.InternalMessageInfo + +// Represents the workflow structure stored in the Admin +// A workflow is created by ordering tasks and associating outputs to inputs +// in order to produce a directed-acyclic execution graph. +type Workflow struct { + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the workflow. + Closure *WorkflowClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` + // One-liner overview of the entity. + ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Workflow) Reset() { *m = Workflow{} } +func (m *Workflow) String() string { return proto.CompactTextString(m) } +func (*Workflow) ProtoMessage() {} +func (*Workflow) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{2} +} + +func (m *Workflow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Workflow.Unmarshal(m, b) +} +func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Workflow.Marshal(b, m, deterministic) +} +func (m *Workflow) XXX_Merge(src proto.Message) { + xxx_messageInfo_Workflow.Merge(m, src) +} +func (m *Workflow) XXX_Size() int { + return xxx_messageInfo_Workflow.Size(m) +} +func (m *Workflow) XXX_DiscardUnknown() { + xxx_messageInfo_Workflow.DiscardUnknown(m) +} + +var xxx_messageInfo_Workflow proto.InternalMessageInfo + +func (m *Workflow) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *Workflow) GetClosure() *WorkflowClosure { + if m != nil { + return m.Closure + } + return nil +} + +func (m *Workflow) GetShortDescription() string { + if m != nil { + return m.ShortDescription + } + return "" +} + +// Represents a list of workflows returned from the admin. +// See :ref:`ref_flyteidl.admin.Workflow` for more details +type WorkflowList struct { + // A list of workflows returned based on the request. + Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowList) Reset() { *m = WorkflowList{} } +func (m *WorkflowList) String() string { return proto.CompactTextString(m) } +func (*WorkflowList) ProtoMessage() {} +func (*WorkflowList) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{3} +} + +func (m *WorkflowList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowList.Unmarshal(m, b) +} +func (m *WorkflowList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowList.Marshal(b, m, deterministic) +} +func (m *WorkflowList) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowList.Merge(m, src) +} +func (m *WorkflowList) XXX_Size() int { + return xxx_messageInfo_WorkflowList.Size(m) +} +func (m *WorkflowList) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowList.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowList proto.InternalMessageInfo + +func (m *WorkflowList) GetWorkflows() []*Workflow { + if m != nil { + return m.Workflows + } + return nil +} + +func (m *WorkflowList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Represents a structure that encapsulates the specification of the workflow. +type WorkflowSpec struct { + // Template of the task that encapsulates all the metadata of the workflow. + Template *core.WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the + // propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out + // to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. + SubWorkflows []*core.WorkflowTemplate `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` + // Represents the specification for description entity. + Description *DescriptionEntity `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowSpec) Reset() { *m = WorkflowSpec{} } +func (m *WorkflowSpec) String() string { return proto.CompactTextString(m) } +func (*WorkflowSpec) ProtoMessage() {} +func (*WorkflowSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{4} +} + +func (m *WorkflowSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowSpec.Unmarshal(m, b) +} +func (m *WorkflowSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowSpec.Marshal(b, m, deterministic) +} +func (m *WorkflowSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowSpec.Merge(m, src) +} +func (m *WorkflowSpec) XXX_Size() int { + return xxx_messageInfo_WorkflowSpec.Size(m) +} +func (m *WorkflowSpec) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowSpec proto.InternalMessageInfo + +func (m *WorkflowSpec) GetTemplate() *core.WorkflowTemplate { + if m != nil { + return m.Template + } + return nil +} + +func (m *WorkflowSpec) GetSubWorkflows() []*core.WorkflowTemplate { + if m != nil { + return m.SubWorkflows + } + return nil +} + +func (m *WorkflowSpec) GetDescription() *DescriptionEntity { + if m != nil { + return m.Description + } + return nil +} + +// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +type WorkflowClosure struct { + // Represents the compiled representation of the workflow from the specification provided. + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` + // Time at which the workflow was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowClosure) Reset() { *m = WorkflowClosure{} } +func (m *WorkflowClosure) String() string { return proto.CompactTextString(m) } +func (*WorkflowClosure) ProtoMessage() {} +func (*WorkflowClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{5} +} + +func (m *WorkflowClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowClosure.Unmarshal(m, b) +} +func (m *WorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowClosure.Marshal(b, m, deterministic) +} +func (m *WorkflowClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowClosure.Merge(m, src) +} +func (m *WorkflowClosure) XXX_Size() int { + return xxx_messageInfo_WorkflowClosure.Size(m) +} +func (m *WorkflowClosure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowClosure proto.InternalMessageInfo + +func (m *WorkflowClosure) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if m != nil { + return m.CompiledWorkflow + } + return nil +} + +func (m *WorkflowClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +// The workflow id is already used and the structure is different +type WorkflowErrorExistsDifferentStructure struct { + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowErrorExistsDifferentStructure) Reset() { *m = WorkflowErrorExistsDifferentStructure{} } +func (m *WorkflowErrorExistsDifferentStructure) String() string { return proto.CompactTextString(m) } +func (*WorkflowErrorExistsDifferentStructure) ProtoMessage() {} +func (*WorkflowErrorExistsDifferentStructure) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{6} +} + +func (m *WorkflowErrorExistsDifferentStructure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Unmarshal(m, b) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Marshal(b, m, deterministic) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Merge(m, src) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_Size() int { + return xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Size(m) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowErrorExistsDifferentStructure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowErrorExistsDifferentStructure proto.InternalMessageInfo + +func (m *WorkflowErrorExistsDifferentStructure) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +// The workflow id is already used with an identical sctructure +type WorkflowErrorExistsIdenticalStructure struct { + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowErrorExistsIdenticalStructure) Reset() { *m = WorkflowErrorExistsIdenticalStructure{} } +func (m *WorkflowErrorExistsIdenticalStructure) String() string { return proto.CompactTextString(m) } +func (*WorkflowErrorExistsIdenticalStructure) ProtoMessage() {} +func (*WorkflowErrorExistsIdenticalStructure) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{7} +} + +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Unmarshal(m, b) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Marshal(b, m, deterministic) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Merge(m, src) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Size() int { + return xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Size(m) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowErrorExistsIdenticalStructure proto.InternalMessageInfo + +func (m *WorkflowErrorExistsIdenticalStructure) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +// When a CreateWorkflowRequest failes due to matching id +type CreateWorkflowFailureReason struct { + // Types that are valid to be assigned to Reason: + // *CreateWorkflowFailureReason_ExistsDifferentStructure + // *CreateWorkflowFailureReason_ExistsIdenticalStructure + Reason isCreateWorkflowFailureReason_Reason `protobuf_oneof:"reason"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateWorkflowFailureReason) Reset() { *m = CreateWorkflowFailureReason{} } +func (m *CreateWorkflowFailureReason) String() string { return proto.CompactTextString(m) } +func (*CreateWorkflowFailureReason) ProtoMessage() {} +func (*CreateWorkflowFailureReason) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{8} +} + +func (m *CreateWorkflowFailureReason) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateWorkflowFailureReason.Unmarshal(m, b) +} +func (m *CreateWorkflowFailureReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateWorkflowFailureReason.Marshal(b, m, deterministic) +} +func (m *CreateWorkflowFailureReason) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateWorkflowFailureReason.Merge(m, src) +} +func (m *CreateWorkflowFailureReason) XXX_Size() int { + return xxx_messageInfo_CreateWorkflowFailureReason.Size(m) +} +func (m *CreateWorkflowFailureReason) XXX_DiscardUnknown() { + xxx_messageInfo_CreateWorkflowFailureReason.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateWorkflowFailureReason proto.InternalMessageInfo + +type isCreateWorkflowFailureReason_Reason interface { + isCreateWorkflowFailureReason_Reason() +} + +type CreateWorkflowFailureReason_ExistsDifferentStructure struct { + ExistsDifferentStructure *WorkflowErrorExistsDifferentStructure `protobuf:"bytes,1,opt,name=exists_different_structure,json=existsDifferentStructure,proto3,oneof"` +} + +type CreateWorkflowFailureReason_ExistsIdenticalStructure struct { + ExistsIdenticalStructure *WorkflowErrorExistsIdenticalStructure `protobuf:"bytes,2,opt,name=exists_identical_structure,json=existsIdenticalStructure,proto3,oneof"` +} + +func (*CreateWorkflowFailureReason_ExistsDifferentStructure) isCreateWorkflowFailureReason_Reason() {} + +func (*CreateWorkflowFailureReason_ExistsIdenticalStructure) isCreateWorkflowFailureReason_Reason() {} + +func (m *CreateWorkflowFailureReason) GetReason() isCreateWorkflowFailureReason_Reason { + if m != nil { + return m.Reason + } + return nil +} + +func (m *CreateWorkflowFailureReason) GetExistsDifferentStructure() *WorkflowErrorExistsDifferentStructure { + if x, ok := m.GetReason().(*CreateWorkflowFailureReason_ExistsDifferentStructure); ok { + return x.ExistsDifferentStructure + } + return nil +} + +func (m *CreateWorkflowFailureReason) GetExistsIdenticalStructure() *WorkflowErrorExistsIdenticalStructure { + if x, ok := m.GetReason().(*CreateWorkflowFailureReason_ExistsIdenticalStructure); ok { + return x.ExistsIdenticalStructure + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CreateWorkflowFailureReason) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CreateWorkflowFailureReason_ExistsDifferentStructure)(nil), + (*CreateWorkflowFailureReason_ExistsIdenticalStructure)(nil), + } +} + +func init() { + proto.RegisterType((*WorkflowCreateRequest)(nil), "flyteidl.admin.WorkflowCreateRequest") + proto.RegisterType((*WorkflowCreateResponse)(nil), "flyteidl.admin.WorkflowCreateResponse") + proto.RegisterType((*Workflow)(nil), "flyteidl.admin.Workflow") + proto.RegisterType((*WorkflowList)(nil), "flyteidl.admin.WorkflowList") + proto.RegisterType((*WorkflowSpec)(nil), "flyteidl.admin.WorkflowSpec") + proto.RegisterType((*WorkflowClosure)(nil), "flyteidl.admin.WorkflowClosure") + proto.RegisterType((*WorkflowErrorExistsDifferentStructure)(nil), "flyteidl.admin.WorkflowErrorExistsDifferentStructure") + proto.RegisterType((*WorkflowErrorExistsIdenticalStructure)(nil), "flyteidl.admin.WorkflowErrorExistsIdenticalStructure") + proto.RegisterType((*CreateWorkflowFailureReason)(nil), "flyteidl.admin.CreateWorkflowFailureReason") +} + +func init() { proto.RegisterFile("flyteidl/admin/workflow.proto", fileDescriptor_827ade3f2372dc85) } + +var fileDescriptor_827ade3f2372dc85 = []byte{ + // 589 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0x25, 0x19, 0x8c, 0xd5, 0x1d, 0xb0, 0x45, 0x80, 0x42, 0x19, 0x6c, 0x44, 0x02, 0x8a, 0x10, + 0x09, 0x2a, 0x1a, 0x68, 0xe2, 0x89, 0xb5, 0x45, 0x20, 0xf1, 0xe4, 0x4e, 0x9a, 0x84, 0x90, 0xa2, + 0x7c, 0xdc, 0x64, 0xd6, 0x92, 0x38, 0xd8, 0x8e, 0xc6, 0x7e, 0x08, 0x8f, 0x3c, 0xf0, 0xa7, 0xf8, + 0x3d, 0xa8, 0x8e, 0x9d, 0xb4, 0x99, 0x0a, 0x83, 0xc7, 0xe4, 0x1e, 0x9f, 0x73, 0xee, 0xf1, 0xbd, + 0x46, 0x0f, 0x92, 0xec, 0x5c, 0x00, 0x89, 0x33, 0x2f, 0x88, 0x73, 0x52, 0x78, 0x67, 0x94, 0x9d, + 0x26, 0x19, 0x3d, 0x73, 0x4b, 0x46, 0x05, 0xb5, 0x6e, 0xea, 0xb2, 0x2b, 0xcb, 0x83, 0x9d, 0x06, + 0x1e, 0x51, 0x06, 0x5e, 0x44, 0xf3, 0x92, 0x64, 0xc0, 0x6a, 0xf4, 0xe0, 0xe1, 0x72, 0x95, 0xc4, + 0x50, 0x08, 0x92, 0x90, 0xa6, 0xde, 0x39, 0xbd, 0xac, 0x35, 0x78, 0xda, 0xb1, 0x12, 0x03, 0x8f, + 0x18, 0x29, 0x05, 0xa1, 0x85, 0x3f, 0x27, 0x12, 0xe7, 0x0a, 0xb8, 0x9b, 0x52, 0x9a, 0x66, 0xe0, + 0xc9, 0xaf, 0xb0, 0x4a, 0x3c, 0x41, 0x72, 0xe0, 0x22, 0xc8, 0xcb, 0x1a, 0xe0, 0x08, 0x74, 0xe7, + 0x58, 0x71, 0x8f, 0x19, 0x04, 0x02, 0x30, 0x7c, 0xad, 0x80, 0x0b, 0xeb, 0x19, 0x32, 0x49, 0x6c, + 0x1b, 0x7b, 0xc6, 0xb0, 0x3f, 0xba, 0xe7, 0x36, 0xbd, 0xcd, 0xdd, 0xb8, 0x1f, 0x1b, 0xb7, 0xd8, + 0x24, 0xb1, 0xf5, 0x12, 0x5d, 0xe5, 0x25, 0x44, 0xb6, 0x29, 0xc1, 0x3b, 0xee, 0x72, 0x10, 0xae, + 0xe6, 0x9f, 0x95, 0x10, 0x61, 0x89, 0x74, 0x6c, 0x74, 0xb7, 0xab, 0xca, 0x4b, 0x5a, 0x70, 0x70, + 0x7e, 0x18, 0x68, 0x43, 0x97, 0xfe, 0xc5, 0xc3, 0x01, 0xba, 0x1e, 0x65, 0x94, 0x57, 0x0c, 0x94, + 0x8d, 0xdd, 0x55, 0x36, 0xc6, 0x35, 0x0c, 0x6b, 0xbc, 0xf5, 0x1c, 0x6d, 0xf3, 0x13, 0xca, 0x84, + 0xbf, 0x90, 0xa2, 0xbd, 0xb6, 0x67, 0x0c, 0x7b, 0x78, 0x4b, 0x16, 0x26, 0xed, 0x7f, 0xe7, 0x0b, + 0xda, 0xd4, 0x44, 0x9f, 0x08, 0x17, 0xd6, 0x6b, 0xd4, 0xd3, 0x77, 0xc3, 0x6d, 0x63, 0x6f, 0x6d, + 0xd8, 0x1f, 0xd9, 0xab, 0x94, 0x71, 0x0b, 0xb5, 0x6e, 0xa3, 0x6b, 0x82, 0x9e, 0x42, 0x21, 0xdd, + 0xf6, 0x70, 0xfd, 0xe1, 0xfc, 0x32, 0x5a, 0xfa, 0x79, 0x5c, 0xd6, 0x5b, 0xb4, 0x21, 0x20, 0x2f, + 0xb3, 0x40, 0x80, 0xca, 0x61, 0xb7, 0x93, 0x83, 0x86, 0x1f, 0x29, 0x18, 0x6e, 0x0e, 0x58, 0x13, + 0x74, 0x83, 0x57, 0xa1, 0xdf, 0xfa, 0x33, 0xa5, 0xbf, 0xbf, 0x32, 0x6c, 0xf2, 0x2a, 0x3c, 0x6e, + 0x9c, 0x8e, 0x51, 0xbf, 0x1b, 0x4c, 0x7f, 0xf4, 0xa8, 0xdb, 0xe3, 0x42, 0x46, 0x53, 0x39, 0x80, + 0x78, 0xf1, 0x94, 0xf3, 0xd3, 0x40, 0xb7, 0x3a, 0x17, 0x60, 0xcd, 0xd0, 0xb6, 0x5a, 0x8a, 0xb8, + 0xf1, 0xa8, 0x9a, 0x7c, 0xd2, 0xb1, 0x38, 0x56, 0xb8, 0xee, 0x1d, 0x6e, 0x45, 0x9d, 0x82, 0x75, + 0x80, 0x50, 0x24, 0x27, 0x2a, 0xf6, 0x03, 0xa1, 0x46, 0x61, 0xe0, 0xd6, 0x5b, 0xe0, 0xea, 0x2d, + 0x70, 0x8f, 0xf4, 0x16, 0xe0, 0x9e, 0x42, 0xbf, 0x13, 0x0e, 0x46, 0x8f, 0x35, 0xcd, 0x94, 0x31, + 0xca, 0xa6, 0xdf, 0x08, 0x17, 0x7c, 0x42, 0x92, 0x04, 0x18, 0x14, 0x62, 0x26, 0x58, 0x15, 0x89, + 0xb9, 0xf1, 0xcb, 0x8f, 0xe5, 0x0a, 0xce, 0x1a, 0x14, 0x05, 0xd9, 0x7f, 0x71, 0x7e, 0x37, 0xd1, + 0xfd, 0x7a, 0x6b, 0x34, 0xf5, 0xfb, 0x80, 0x64, 0xf3, 0x38, 0x20, 0xe0, 0xb4, 0xb0, 0x2a, 0x34, + 0x00, 0x29, 0xe3, 0xc7, 0xda, 0xbb, 0xcf, 0xb5, 0x90, 0x92, 0xd8, 0x5f, 0x35, 0xa3, 0x7f, 0xec, + 0xfc, 0xc3, 0x15, 0x6c, 0xc3, 0xaa, 0x54, 0x5a, 0x59, 0xa2, 0xdb, 0x5b, 0x90, 0x35, 0x2f, 0x2d, + 0x7b, 0x31, 0x9c, 0x56, 0xf6, 0x62, 0xed, 0x70, 0x03, 0xad, 0x33, 0xd9, 0xf7, 0xe1, 0x9b, 0xcf, + 0xfb, 0x29, 0x11, 0x27, 0x55, 0xe8, 0x46, 0x34, 0xf7, 0xa4, 0x10, 0x65, 0xa9, 0xd7, 0x3c, 0x95, + 0x29, 0x14, 0x5e, 0x19, 0xbe, 0x48, 0xa9, 0xb7, 0xfc, 0x7a, 0x86, 0xeb, 0x72, 0x2e, 0x5e, 0xfd, + 0x0e, 0x00, 0x00, 0xff, 0xff, 0x55, 0xf4, 0x95, 0xe1, 0xe1, 0x05, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go new file mode 100644 index 0000000000..b5989e2ca7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go @@ -0,0 +1,796 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/workflow.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 _workflow_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 WorkflowCreateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowCreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowCreateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowCreateRequestValidationError is the validation error returned by +// WorkflowCreateRequest.Validate if the designated constraints aren't met. +type WorkflowCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowCreateRequestValidationError) ErrorName() string { + return "WorkflowCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowCreateRequestValidationError{} + +// Validate checks the field values on WorkflowCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowCreateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowCreateResponseValidationError is the validation error returned by +// WorkflowCreateResponse.Validate if the designated constraints aren't met. +type WorkflowCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowCreateResponseValidationError) ErrorName() string { + return "WorkflowCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowCreateResponseValidationError{} + +// Validate checks the field values on Workflow with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Workflow) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ShortDescription + + return nil +} + +// WorkflowValidationError is the validation error returned by +// Workflow.Validate if the designated constraints aren't met. +type WorkflowValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowValidationError) ErrorName() string { return "WorkflowValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflow.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowValidationError{} + +// Validate checks the field values on WorkflowList with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WorkflowList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetWorkflows() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowListValidationError{ + field: fmt.Sprintf("Workflows[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// WorkflowListValidationError is the validation error returned by +// WorkflowList.Validate if the designated constraints aren't met. +type WorkflowListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowListValidationError) ErrorName() string { return "WorkflowListValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowListValidationError{} + +// Validate checks the field values on WorkflowSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WorkflowSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowSpecValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSubWorkflows() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowSpecValidationError{ + field: fmt.Sprintf("SubWorkflows[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetDescription()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowSpecValidationError{ + field: "Description", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowSpecValidationError is the validation error returned by +// WorkflowSpec.Validate if the designated constraints aren't met. +type WorkflowSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowSpecValidationError) ErrorName() string { return "WorkflowSpecValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowSpecValidationError{} + +// Validate checks the field values on WorkflowClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCompiledWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: "CompiledWorkflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowClosureValidationError is the validation error returned by +// WorkflowClosure.Validate if the designated constraints aren't met. +type WorkflowClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowClosureValidationError) ErrorName() string { return "WorkflowClosureValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowClosureValidationError{} + +// Validate checks the field values on WorkflowErrorExistsDifferentStructure +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *WorkflowErrorExistsDifferentStructure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowErrorExistsDifferentStructureValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowErrorExistsDifferentStructureValidationError is the validation error +// returned by WorkflowErrorExistsDifferentStructure.Validate if the +// designated constraints aren't met. +type WorkflowErrorExistsDifferentStructureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowErrorExistsDifferentStructureValidationError) ErrorName() string { + return "WorkflowErrorExistsDifferentStructureValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowErrorExistsDifferentStructureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowErrorExistsDifferentStructure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowErrorExistsDifferentStructureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowErrorExistsDifferentStructureValidationError{} + +// Validate checks the field values on WorkflowErrorExistsIdenticalStructure +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *WorkflowErrorExistsIdenticalStructure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowErrorExistsIdenticalStructureValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowErrorExistsIdenticalStructureValidationError is the validation error +// returned by WorkflowErrorExistsIdenticalStructure.Validate if the +// designated constraints aren't met. +type WorkflowErrorExistsIdenticalStructureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowErrorExistsIdenticalStructureValidationError) ErrorName() string { + return "WorkflowErrorExistsIdenticalStructureValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowErrorExistsIdenticalStructureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowErrorExistsIdenticalStructure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowErrorExistsIdenticalStructureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowErrorExistsIdenticalStructureValidationError{} + +// Validate checks the field values on CreateWorkflowFailureReason with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateWorkflowFailureReason) Validate() error { + if m == nil { + return nil + } + + switch m.Reason.(type) { + + case *CreateWorkflowFailureReason_ExistsDifferentStructure: + + if v, ok := interface{}(m.GetExistsDifferentStructure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateWorkflowFailureReasonValidationError{ + field: "ExistsDifferentStructure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CreateWorkflowFailureReason_ExistsIdenticalStructure: + + if v, ok := interface{}(m.GetExistsIdenticalStructure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateWorkflowFailureReasonValidationError{ + field: "ExistsIdenticalStructure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CreateWorkflowFailureReasonValidationError is the validation error returned +// by CreateWorkflowFailureReason.Validate if the designated constraints +// aren't met. +type CreateWorkflowFailureReasonValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateWorkflowFailureReasonValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateWorkflowFailureReasonValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateWorkflowFailureReasonValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateWorkflowFailureReasonValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateWorkflowFailureReasonValidationError) ErrorName() string { + return "CreateWorkflowFailureReasonValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateWorkflowFailureReasonValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateWorkflowFailureReason.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateWorkflowFailureReasonValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateWorkflowFailureReasonValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json new file mode 100644 index 0000000000..7e1bd220f5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/workflow.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go new file mode 100644 index 0000000000..3d5ef8bd62 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go @@ -0,0 +1,420 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/workflow_attributes.proto + +package admin + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributes struct { + // Unique project id for which this set of attributes will be applied. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id for which this set of attributes will be applied. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Workflow name for which this set of attributes will be applied. + Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` + MatchingAttributes *MatchingAttributes `protobuf:"bytes,4,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowAttributes) Reset() { *m = WorkflowAttributes{} } +func (m *WorkflowAttributes) String() string { return proto.CompactTextString(m) } +func (*WorkflowAttributes) ProtoMessage() {} +func (*WorkflowAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba8a51ab86bc38c, []int{0} +} + +func (m *WorkflowAttributes) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowAttributes.Unmarshal(m, b) +} +func (m *WorkflowAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowAttributes.Marshal(b, m, deterministic) +} +func (m *WorkflowAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowAttributes.Merge(m, src) +} +func (m *WorkflowAttributes) XXX_Size() int { + return xxx_messageInfo_WorkflowAttributes.Size(m) +} +func (m *WorkflowAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowAttributes proto.InternalMessageInfo + +func (m *WorkflowAttributes) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *WorkflowAttributes) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *WorkflowAttributes) GetWorkflow() string { + if m != nil { + return m.Workflow + } + return "" +} + +func (m *WorkflowAttributes) GetMatchingAttributes() *MatchingAttributes { + if m != nil { + return m.MatchingAttributes + } + return nil +} + +// Sets custom attributes for a project, domain and workflow combination. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributesUpdateRequest struct { + Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowAttributesUpdateRequest) Reset() { *m = WorkflowAttributesUpdateRequest{} } +func (m *WorkflowAttributesUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowAttributesUpdateRequest) ProtoMessage() {} +func (*WorkflowAttributesUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba8a51ab86bc38c, []int{1} +} + +func (m *WorkflowAttributesUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowAttributesUpdateRequest.Unmarshal(m, b) +} +func (m *WorkflowAttributesUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowAttributesUpdateRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowAttributesUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowAttributesUpdateRequest.Merge(m, src) +} +func (m *WorkflowAttributesUpdateRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowAttributesUpdateRequest.Size(m) +} +func (m *WorkflowAttributesUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowAttributesUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowAttributesUpdateRequest proto.InternalMessageInfo + +func (m *WorkflowAttributesUpdateRequest) GetAttributes() *WorkflowAttributes { + if m != nil { + return m.Attributes + } + return nil +} + +// Purposefully empty, may be populated in the future. +type WorkflowAttributesUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowAttributesUpdateResponse) Reset() { *m = WorkflowAttributesUpdateResponse{} } +func (m *WorkflowAttributesUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowAttributesUpdateResponse) ProtoMessage() {} +func (*WorkflowAttributesUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba8a51ab86bc38c, []int{2} +} + +func (m *WorkflowAttributesUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowAttributesUpdateResponse.Unmarshal(m, b) +} +func (m *WorkflowAttributesUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowAttributesUpdateResponse.Marshal(b, m, deterministic) +} +func (m *WorkflowAttributesUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowAttributesUpdateResponse.Merge(m, src) +} +func (m *WorkflowAttributesUpdateResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowAttributesUpdateResponse.Size(m) +} +func (m *WorkflowAttributesUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowAttributesUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowAttributesUpdateResponse proto.InternalMessageInfo + +// Request to get an individual workflow attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributesGetRequest struct { + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Workflow name which this set of attributes references. + // +required + Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` + // Which type of matchable attributes to return. + // +required + ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowAttributesGetRequest) Reset() { *m = WorkflowAttributesGetRequest{} } +func (m *WorkflowAttributesGetRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowAttributesGetRequest) ProtoMessage() {} +func (*WorkflowAttributesGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba8a51ab86bc38c, []int{3} +} + +func (m *WorkflowAttributesGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowAttributesGetRequest.Unmarshal(m, b) +} +func (m *WorkflowAttributesGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowAttributesGetRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowAttributesGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowAttributesGetRequest.Merge(m, src) +} +func (m *WorkflowAttributesGetRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowAttributesGetRequest.Size(m) +} +func (m *WorkflowAttributesGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowAttributesGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowAttributesGetRequest proto.InternalMessageInfo + +func (m *WorkflowAttributesGetRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *WorkflowAttributesGetRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *WorkflowAttributesGetRequest) GetWorkflow() string { + if m != nil { + return m.Workflow + } + return "" +} + +func (m *WorkflowAttributesGetRequest) GetResourceType() MatchableResource { + if m != nil { + return m.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +// Response to get an individual workflow attribute override. +type WorkflowAttributesGetResponse struct { + Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowAttributesGetResponse) Reset() { *m = WorkflowAttributesGetResponse{} } +func (m *WorkflowAttributesGetResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowAttributesGetResponse) ProtoMessage() {} +func (*WorkflowAttributesGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba8a51ab86bc38c, []int{4} +} + +func (m *WorkflowAttributesGetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowAttributesGetResponse.Unmarshal(m, b) +} +func (m *WorkflowAttributesGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowAttributesGetResponse.Marshal(b, m, deterministic) +} +func (m *WorkflowAttributesGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowAttributesGetResponse.Merge(m, src) +} +func (m *WorkflowAttributesGetResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowAttributesGetResponse.Size(m) +} +func (m *WorkflowAttributesGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowAttributesGetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowAttributesGetResponse proto.InternalMessageInfo + +func (m *WorkflowAttributesGetResponse) GetAttributes() *WorkflowAttributes { + if m != nil { + return m.Attributes + } + return nil +} + +// Request to delete a set matchable workflow attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributesDeleteRequest struct { + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Workflow name which this set of attributes references. + // +required + Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` + // Which type of matchable attributes to delete. + // +required + ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowAttributesDeleteRequest) Reset() { *m = WorkflowAttributesDeleteRequest{} } +func (m *WorkflowAttributesDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowAttributesDeleteRequest) ProtoMessage() {} +func (*WorkflowAttributesDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba8a51ab86bc38c, []int{5} +} + +func (m *WorkflowAttributesDeleteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowAttributesDeleteRequest.Unmarshal(m, b) +} +func (m *WorkflowAttributesDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowAttributesDeleteRequest.Marshal(b, m, deterministic) +} +func (m *WorkflowAttributesDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowAttributesDeleteRequest.Merge(m, src) +} +func (m *WorkflowAttributesDeleteRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowAttributesDeleteRequest.Size(m) +} +func (m *WorkflowAttributesDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowAttributesDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowAttributesDeleteRequest proto.InternalMessageInfo + +func (m *WorkflowAttributesDeleteRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *WorkflowAttributesDeleteRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *WorkflowAttributesDeleteRequest) GetWorkflow() string { + if m != nil { + return m.Workflow + } + return "" +} + +func (m *WorkflowAttributesDeleteRequest) GetResourceType() MatchableResource { + if m != nil { + return m.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +// Purposefully empty, may be populated in the future. +type WorkflowAttributesDeleteResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowAttributesDeleteResponse) Reset() { *m = WorkflowAttributesDeleteResponse{} } +func (m *WorkflowAttributesDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowAttributesDeleteResponse) ProtoMessage() {} +func (*WorkflowAttributesDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8ba8a51ab86bc38c, []int{6} +} + +func (m *WorkflowAttributesDeleteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowAttributesDeleteResponse.Unmarshal(m, b) +} +func (m *WorkflowAttributesDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowAttributesDeleteResponse.Marshal(b, m, deterministic) +} +func (m *WorkflowAttributesDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowAttributesDeleteResponse.Merge(m, src) +} +func (m *WorkflowAttributesDeleteResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowAttributesDeleteResponse.Size(m) +} +func (m *WorkflowAttributesDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowAttributesDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowAttributesDeleteResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*WorkflowAttributes)(nil), "flyteidl.admin.WorkflowAttributes") + proto.RegisterType((*WorkflowAttributesUpdateRequest)(nil), "flyteidl.admin.WorkflowAttributesUpdateRequest") + proto.RegisterType((*WorkflowAttributesUpdateResponse)(nil), "flyteidl.admin.WorkflowAttributesUpdateResponse") + proto.RegisterType((*WorkflowAttributesGetRequest)(nil), "flyteidl.admin.WorkflowAttributesGetRequest") + proto.RegisterType((*WorkflowAttributesGetResponse)(nil), "flyteidl.admin.WorkflowAttributesGetResponse") + proto.RegisterType((*WorkflowAttributesDeleteRequest)(nil), "flyteidl.admin.WorkflowAttributesDeleteRequest") + proto.RegisterType((*WorkflowAttributesDeleteResponse)(nil), "flyteidl.admin.WorkflowAttributesDeleteResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/workflow_attributes.proto", fileDescriptor_8ba8a51ab86bc38c) +} + +var fileDescriptor_8ba8a51ab86bc38c = []byte{ + // 346 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0x4f, 0x4b, 0xc3, 0x40, + 0x10, 0xc5, 0x59, 0x95, 0xaa, 0xa3, 0xf6, 0xb0, 0x82, 0x84, 0xa2, 0x58, 0xf7, 0x62, 0x2f, 0x26, + 0x50, 0x11, 0xcf, 0x16, 0xd1, 0x93, 0x97, 0xa8, 0x08, 0x5e, 0x4a, 0xfe, 0x4c, 0xd3, 0x68, 0x92, + 0x5d, 0x37, 0x1b, 0x4a, 0xbf, 0x97, 0xd0, 0xaf, 0x27, 0x6e, 0xb3, 0x6d, 0x6a, 0xd2, 0x5b, 0x0f, + 0x1e, 0x27, 0xfb, 0x66, 0xe6, 0x97, 0xf7, 0x18, 0xe8, 0x8d, 0x92, 0xa9, 0xc2, 0x38, 0x4c, 0x1c, + 0x2f, 0x4c, 0xe3, 0xcc, 0x99, 0x70, 0xf9, 0x39, 0x4a, 0xf8, 0x64, 0xe8, 0x29, 0x25, 0x63, 0xbf, + 0x50, 0x98, 0xdb, 0x42, 0x72, 0xc5, 0x69, 0xdb, 0x28, 0x6d, 0xad, 0xec, 0x5c, 0xfe, 0xe9, 0x4c, + 0x3d, 0x15, 0x8c, 0x3d, 0x3f, 0xc1, 0xa1, 0xc4, 0x9c, 0x17, 0x32, 0xc0, 0x79, 0x23, 0x9b, 0x11, + 0xa0, 0x6f, 0xe5, 0xd8, 0xbb, 0xc5, 0x54, 0x6a, 0xc1, 0xae, 0x90, 0xfc, 0x03, 0x03, 0x65, 0x91, + 0x2e, 0xe9, 0xed, 0xbb, 0xa6, 0xa4, 0x27, 0xd0, 0x0a, 0x79, 0xea, 0xc5, 0x99, 0xb5, 0xa5, 0x1f, + 0xca, 0x8a, 0x76, 0x60, 0xcf, 0xe0, 0x59, 0xdb, 0xfa, 0x65, 0x51, 0xd3, 0x67, 0x38, 0xd6, 0x00, + 0x71, 0x16, 0x55, 0xd0, 0xad, 0x9d, 0x2e, 0xe9, 0x1d, 0xf4, 0x99, 0xbd, 0xca, 0x6e, 0x3f, 0x95, + 0xd2, 0x25, 0x8e, 0x4b, 0xd3, 0xda, 0x37, 0x86, 0x70, 0x5e, 0x07, 0x7f, 0x15, 0xa1, 0xa7, 0xd0, + 0xc5, 0xaf, 0x02, 0x73, 0x45, 0x07, 0x00, 0x95, 0x75, 0xa4, 0x79, 0x5d, 0x7d, 0x88, 0x5b, 0xe9, + 0x62, 0x0c, 0xba, 0xeb, 0xd7, 0xe4, 0x82, 0x67, 0x39, 0xb2, 0x6f, 0x02, 0xa7, 0x75, 0xd1, 0x23, + 0x2a, 0x03, 0xb2, 0x59, 0x3b, 0x1f, 0xe0, 0xc8, 0xa4, 0x38, 0x54, 0x53, 0x81, 0xda, 0xc8, 0x76, + 0xff, 0xa2, 0xd1, 0xc8, 0xdf, 0xd0, 0xdd, 0x52, 0xed, 0x1e, 0x9a, 0xbe, 0x97, 0xa9, 0x40, 0x16, + 0xc0, 0xd9, 0x1a, 0xea, 0xf9, 0x7f, 0x6d, 0xc4, 0xbf, 0x19, 0x69, 0xca, 0xe9, 0x1e, 0x13, 0x5c, + 0xe6, 0xf4, 0x3f, 0xed, 0x69, 0x4c, 0xde, 0x80, 0xcf, 0x1d, 0x1a, 0xdc, 0xbe, 0xdf, 0x44, 0xb1, + 0x1a, 0x17, 0xbe, 0x1d, 0xf0, 0xd4, 0xd1, 0x0b, 0xb8, 0x8c, 0x9c, 0xc5, 0xf5, 0x45, 0x98, 0x39, + 0xc2, 0xbf, 0x8a, 0xb8, 0xb3, 0x7a, 0x90, 0x7e, 0x4b, 0x9f, 0xdf, 0xf5, 0x4f, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xd5, 0xd6, 0x7a, 0x8c, 0xe3, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.validate.go new file mode 100644 index 0000000000..e72928d025 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.validate.go @@ -0,0 +1,564 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/workflow_attributes.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 _workflow_attributes_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 WorkflowAttributes with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowAttributes) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Workflow + + if v, ok := interface{}(m.GetMatchingAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowAttributesValidationError{ + field: "MatchingAttributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowAttributesValidationError is the validation error returned by +// WorkflowAttributes.Validate if the designated constraints aren't met. +type WorkflowAttributesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowAttributesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowAttributesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowAttributesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowAttributesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowAttributesValidationError) ErrorName() string { + return "WorkflowAttributesValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowAttributesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowAttributes.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowAttributesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowAttributesValidationError{} + +// Validate checks the field values on WorkflowAttributesUpdateRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowAttributesUpdateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowAttributesUpdateRequestValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowAttributesUpdateRequestValidationError is the validation error +// returned by WorkflowAttributesUpdateRequest.Validate if the designated +// constraints aren't met. +type WorkflowAttributesUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowAttributesUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowAttributesUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowAttributesUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowAttributesUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowAttributesUpdateRequestValidationError) ErrorName() string { + return "WorkflowAttributesUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowAttributesUpdateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowAttributesUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowAttributesUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowAttributesUpdateRequestValidationError{} + +// Validate checks the field values on WorkflowAttributesUpdateResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *WorkflowAttributesUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowAttributesUpdateResponseValidationError is the validation error +// returned by WorkflowAttributesUpdateResponse.Validate if the designated +// constraints aren't met. +type WorkflowAttributesUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowAttributesUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowAttributesUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowAttributesUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowAttributesUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowAttributesUpdateResponseValidationError) ErrorName() string { + return "WorkflowAttributesUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowAttributesUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowAttributesUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowAttributesUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowAttributesUpdateResponseValidationError{} + +// Validate checks the field values on WorkflowAttributesGetRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowAttributesGetRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Workflow + + // no validation rules for ResourceType + + return nil +} + +// WorkflowAttributesGetRequestValidationError is the validation error returned +// by WorkflowAttributesGetRequest.Validate if the designated constraints +// aren't met. +type WorkflowAttributesGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowAttributesGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowAttributesGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowAttributesGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowAttributesGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowAttributesGetRequestValidationError) ErrorName() string { + return "WorkflowAttributesGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowAttributesGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowAttributesGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowAttributesGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowAttributesGetRequestValidationError{} + +// Validate checks the field values on WorkflowAttributesGetResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowAttributesGetResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAttributes()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowAttributesGetResponseValidationError{ + field: "Attributes", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowAttributesGetResponseValidationError is the validation error +// returned by WorkflowAttributesGetResponse.Validate if the designated +// constraints aren't met. +type WorkflowAttributesGetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowAttributesGetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowAttributesGetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowAttributesGetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowAttributesGetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowAttributesGetResponseValidationError) ErrorName() string { + return "WorkflowAttributesGetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowAttributesGetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowAttributesGetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowAttributesGetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowAttributesGetResponseValidationError{} + +// Validate checks the field values on WorkflowAttributesDeleteRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowAttributesDeleteRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Workflow + + // no validation rules for ResourceType + + return nil +} + +// WorkflowAttributesDeleteRequestValidationError is the validation error +// returned by WorkflowAttributesDeleteRequest.Validate if the designated +// constraints aren't met. +type WorkflowAttributesDeleteRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowAttributesDeleteRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowAttributesDeleteRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowAttributesDeleteRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowAttributesDeleteRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowAttributesDeleteRequestValidationError) ErrorName() string { + return "WorkflowAttributesDeleteRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowAttributesDeleteRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowAttributesDeleteRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowAttributesDeleteRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowAttributesDeleteRequestValidationError{} + +// Validate checks the field values on WorkflowAttributesDeleteResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *WorkflowAttributesDeleteResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowAttributesDeleteResponseValidationError is the validation error +// returned by WorkflowAttributesDeleteResponse.Validate if the designated +// constraints aren't met. +type WorkflowAttributesDeleteResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowAttributesDeleteResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowAttributesDeleteResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowAttributesDeleteResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowAttributesDeleteResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowAttributesDeleteResponseValidationError) ErrorName() string { + return "WorkflowAttributesDeleteResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowAttributesDeleteResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowAttributesDeleteResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowAttributesDeleteResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowAttributesDeleteResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.swagger.json new file mode 100644 index 0000000000..96d8d580c0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/workflow_attributes.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go new file mode 100644 index 0000000000..39c64304a5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go @@ -0,0 +1,319 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/catalog.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future +type CatalogCacheStatus int32 + +const ( + // Used to indicate that caching was disabled + CatalogCacheStatus_CACHE_DISABLED CatalogCacheStatus = 0 + // Used to indicate that the cache lookup resulted in no matches + CatalogCacheStatus_CACHE_MISS CatalogCacheStatus = 1 + // used to indicate that the associated artifact was a result of a previous execution + CatalogCacheStatus_CACHE_HIT CatalogCacheStatus = 2 + // used to indicate that the resultant artifact was added to the cache + CatalogCacheStatus_CACHE_POPULATED CatalogCacheStatus = 3 + // Used to indicate that cache lookup failed because of an error + CatalogCacheStatus_CACHE_LOOKUP_FAILURE CatalogCacheStatus = 4 + // Used to indicate that cache lookup failed because of an error + CatalogCacheStatus_CACHE_PUT_FAILURE CatalogCacheStatus = 5 + // Used to indicate the cache lookup was skipped + CatalogCacheStatus_CACHE_SKIPPED CatalogCacheStatus = 6 +) + +var CatalogCacheStatus_name = map[int32]string{ + 0: "CACHE_DISABLED", + 1: "CACHE_MISS", + 2: "CACHE_HIT", + 3: "CACHE_POPULATED", + 4: "CACHE_LOOKUP_FAILURE", + 5: "CACHE_PUT_FAILURE", + 6: "CACHE_SKIPPED", +} + +var CatalogCacheStatus_value = map[string]int32{ + "CACHE_DISABLED": 0, + "CACHE_MISS": 1, + "CACHE_HIT": 2, + "CACHE_POPULATED": 3, + "CACHE_LOOKUP_FAILURE": 4, + "CACHE_PUT_FAILURE": 5, + "CACHE_SKIPPED": 6, +} + +func (x CatalogCacheStatus) String() string { + return proto.EnumName(CatalogCacheStatus_name, int32(x)) +} + +func (CatalogCacheStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_534f5d1443565574, []int{0} +} + +// Indicates the status of a catalog reservation operation. +type CatalogReservation_Status int32 + +const ( + // Used to indicate that reservations are disabled + CatalogReservation_RESERVATION_DISABLED CatalogReservation_Status = 0 + // Used to indicate that a reservation was successfully acquired or extended + CatalogReservation_RESERVATION_ACQUIRED CatalogReservation_Status = 1 + // Used to indicate that an active reservation currently exists + CatalogReservation_RESERVATION_EXISTS CatalogReservation_Status = 2 + // Used to indicate that the reservation has been successfully released + CatalogReservation_RESERVATION_RELEASED CatalogReservation_Status = 3 + // Used to indicate that a reservation operation resulted in failure + CatalogReservation_RESERVATION_FAILURE CatalogReservation_Status = 4 +) + +var CatalogReservation_Status_name = map[int32]string{ + 0: "RESERVATION_DISABLED", + 1: "RESERVATION_ACQUIRED", + 2: "RESERVATION_EXISTS", + 3: "RESERVATION_RELEASED", + 4: "RESERVATION_FAILURE", +} + +var CatalogReservation_Status_value = map[string]int32{ + "RESERVATION_DISABLED": 0, + "RESERVATION_ACQUIRED": 1, + "RESERVATION_EXISTS": 2, + "RESERVATION_RELEASED": 3, + "RESERVATION_FAILURE": 4, +} + +func (x CatalogReservation_Status) String() string { + return proto.EnumName(CatalogReservation_Status_name, int32(x)) +} + +func (CatalogReservation_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_534f5d1443565574, []int{2, 0} +} + +type CatalogArtifactTag struct { + // Artifact ID is generated name + ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + // Flyte computes the tag automatically, as the hash of the values + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CatalogArtifactTag) Reset() { *m = CatalogArtifactTag{} } +func (m *CatalogArtifactTag) String() string { return proto.CompactTextString(m) } +func (*CatalogArtifactTag) ProtoMessage() {} +func (*CatalogArtifactTag) Descriptor() ([]byte, []int) { + return fileDescriptor_534f5d1443565574, []int{0} +} + +func (m *CatalogArtifactTag) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CatalogArtifactTag.Unmarshal(m, b) +} +func (m *CatalogArtifactTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CatalogArtifactTag.Marshal(b, m, deterministic) +} +func (m *CatalogArtifactTag) XXX_Merge(src proto.Message) { + xxx_messageInfo_CatalogArtifactTag.Merge(m, src) +} +func (m *CatalogArtifactTag) XXX_Size() int { + return xxx_messageInfo_CatalogArtifactTag.Size(m) +} +func (m *CatalogArtifactTag) XXX_DiscardUnknown() { + xxx_messageInfo_CatalogArtifactTag.DiscardUnknown(m) +} + +var xxx_messageInfo_CatalogArtifactTag proto.InternalMessageInfo + +func (m *CatalogArtifactTag) GetArtifactId() string { + if m != nil { + return m.ArtifactId + } + return "" +} + +func (m *CatalogArtifactTag) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Catalog artifact information with specific metadata +type CatalogMetadata struct { + // Dataset ID in the catalog + DatasetId *Identifier `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` + // Artifact tag in the catalog + ArtifactTag *CatalogArtifactTag `protobuf:"bytes,2,opt,name=artifact_tag,json=artifactTag,proto3" json:"artifact_tag,omitempty"` + // Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + // + // Types that are valid to be assigned to SourceExecution: + // *CatalogMetadata_SourceTaskExecution + SourceExecution isCatalogMetadata_SourceExecution `protobuf_oneof:"source_execution"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CatalogMetadata) Reset() { *m = CatalogMetadata{} } +func (m *CatalogMetadata) String() string { return proto.CompactTextString(m) } +func (*CatalogMetadata) ProtoMessage() {} +func (*CatalogMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_534f5d1443565574, []int{1} +} + +func (m *CatalogMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CatalogMetadata.Unmarshal(m, b) +} +func (m *CatalogMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CatalogMetadata.Marshal(b, m, deterministic) +} +func (m *CatalogMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CatalogMetadata.Merge(m, src) +} +func (m *CatalogMetadata) XXX_Size() int { + return xxx_messageInfo_CatalogMetadata.Size(m) +} +func (m *CatalogMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CatalogMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CatalogMetadata proto.InternalMessageInfo + +func (m *CatalogMetadata) GetDatasetId() *Identifier { + if m != nil { + return m.DatasetId + } + return nil +} + +func (m *CatalogMetadata) GetArtifactTag() *CatalogArtifactTag { + if m != nil { + return m.ArtifactTag + } + return nil +} + +type isCatalogMetadata_SourceExecution interface { + isCatalogMetadata_SourceExecution() +} + +type CatalogMetadata_SourceTaskExecution struct { + SourceTaskExecution *TaskExecutionIdentifier `protobuf:"bytes,3,opt,name=source_task_execution,json=sourceTaskExecution,proto3,oneof"` +} + +func (*CatalogMetadata_SourceTaskExecution) isCatalogMetadata_SourceExecution() {} + +func (m *CatalogMetadata) GetSourceExecution() isCatalogMetadata_SourceExecution { + if m != nil { + return m.SourceExecution + } + return nil +} + +func (m *CatalogMetadata) GetSourceTaskExecution() *TaskExecutionIdentifier { + if x, ok := m.GetSourceExecution().(*CatalogMetadata_SourceTaskExecution); ok { + return x.SourceTaskExecution + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CatalogMetadata) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CatalogMetadata_SourceTaskExecution)(nil), + } +} + +type CatalogReservation struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CatalogReservation) Reset() { *m = CatalogReservation{} } +func (m *CatalogReservation) String() string { return proto.CompactTextString(m) } +func (*CatalogReservation) ProtoMessage() {} +func (*CatalogReservation) Descriptor() ([]byte, []int) { + return fileDescriptor_534f5d1443565574, []int{2} +} + +func (m *CatalogReservation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CatalogReservation.Unmarshal(m, b) +} +func (m *CatalogReservation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CatalogReservation.Marshal(b, m, deterministic) +} +func (m *CatalogReservation) XXX_Merge(src proto.Message) { + xxx_messageInfo_CatalogReservation.Merge(m, src) +} +func (m *CatalogReservation) XXX_Size() int { + return xxx_messageInfo_CatalogReservation.Size(m) +} +func (m *CatalogReservation) XXX_DiscardUnknown() { + xxx_messageInfo_CatalogReservation.DiscardUnknown(m) +} + +var xxx_messageInfo_CatalogReservation proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("flyteidl.core.CatalogCacheStatus", CatalogCacheStatus_name, CatalogCacheStatus_value) + proto.RegisterEnum("flyteidl.core.CatalogReservation_Status", CatalogReservation_Status_name, CatalogReservation_Status_value) + proto.RegisterType((*CatalogArtifactTag)(nil), "flyteidl.core.CatalogArtifactTag") + proto.RegisterType((*CatalogMetadata)(nil), "flyteidl.core.CatalogMetadata") + proto.RegisterType((*CatalogReservation)(nil), "flyteidl.core.CatalogReservation") +} + +func init() { proto.RegisterFile("flyteidl/core/catalog.proto", fileDescriptor_534f5d1443565574) } + +var fileDescriptor_534f5d1443565574 = []byte{ + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0x5f, 0x6f, 0xd3, 0x3e, + 0x14, 0x5d, 0xba, 0xfd, 0x2a, 0xf5, 0xf6, 0xd7, 0xcd, 0x73, 0x37, 0x08, 0x20, 0xf1, 0xa7, 0x0f, + 0x08, 0x21, 0x91, 0x48, 0x03, 0x21, 0x5e, 0xd3, 0xc4, 0xa8, 0xd6, 0x32, 0x1a, 0xec, 0x04, 0x21, + 0x84, 0x54, 0xb9, 0x89, 0x9b, 0x45, 0xeb, 0xea, 0x29, 0x71, 0x11, 0x3c, 0xf3, 0xc0, 0xb7, 0x40, + 0x7c, 0x54, 0xd4, 0x24, 0x4d, 0xff, 0xf0, 0x94, 0xdc, 0x73, 0xce, 0x3d, 0xf7, 0xd8, 0xbe, 0xf0, + 0x68, 0x36, 0xff, 0xa1, 0x65, 0x96, 0xcc, 0xed, 0x58, 0xe5, 0xd2, 0x8e, 0x85, 0x16, 0x73, 0x95, + 0x5a, 0x77, 0xb9, 0xd2, 0x0a, 0xf7, 0xd6, 0xa4, 0xb5, 0x22, 0x1f, 0x3e, 0xde, 0xd5, 0x66, 0x89, + 0x5c, 0xe8, 0x6c, 0x96, 0xc9, 0xbc, 0x92, 0x0f, 0x28, 0x60, 0xb7, 0xea, 0x77, 0x72, 0x9d, 0xcd, + 0x44, 0xac, 0x43, 0x91, 0xe2, 0x27, 0xd0, 0x15, 0x75, 0x39, 0xc9, 0x12, 0xd3, 0x78, 0x6a, 0xbc, + 0xe8, 0x30, 0x58, 0x43, 0x34, 0xc1, 0x18, 0x8e, 0x16, 0xe2, 0x56, 0x9a, 0xad, 0x92, 0x29, 0xff, + 0x07, 0x3f, 0x5b, 0x70, 0x52, 0x7b, 0x5d, 0x49, 0x2d, 0x12, 0xa1, 0x05, 0x7e, 0x07, 0xb0, 0xfa, + 0x16, 0xb2, 0xf1, 0xe9, 0x5e, 0x3c, 0xb0, 0x76, 0x22, 0x5a, 0xb4, 0xc9, 0xc4, 0x3a, 0xb5, 0x98, + 0x26, 0xd8, 0x83, 0xff, 0x9b, 0x08, 0x5a, 0xa4, 0xe5, 0xa4, 0xee, 0xc5, 0xb3, 0xbd, 0xde, 0x7f, + 0xb3, 0xb3, 0x26, 0xf9, 0xea, 0x20, 0x5f, 0xe1, 0xbc, 0x50, 0xcb, 0x3c, 0x96, 0x13, 0x2d, 0x8a, + 0x9b, 0x89, 0xfc, 0x2e, 0xe3, 0xa5, 0xce, 0xd4, 0xc2, 0x3c, 0x2c, 0xed, 0x9e, 0xef, 0xd9, 0x85, + 0xa2, 0xb8, 0x21, 0x6b, 0xcd, 0x26, 0xd7, 0xe8, 0x80, 0xf5, 0x2b, 0x9b, 0x1d, 0xc1, 0x10, 0x03, + 0xaa, 0xdd, 0x1b, 0xe3, 0xc1, 0x6f, 0xa3, 0xb9, 0x51, 0x26, 0x0b, 0x99, 0x7f, 0x13, 0x25, 0xfc, + 0xcb, 0x80, 0x36, 0xd7, 0x42, 0x2f, 0x0b, 0x6c, 0xc2, 0x19, 0x23, 0x9c, 0xb0, 0x4f, 0x4e, 0x48, + 0xc7, 0x1f, 0x26, 0x1e, 0xe5, 0xce, 0xd0, 0x27, 0x1e, 0x3a, 0xd8, 0x67, 0x1c, 0xf7, 0x63, 0x44, + 0x19, 0xf1, 0x90, 0x81, 0xef, 0x01, 0xde, 0x66, 0xc8, 0x67, 0xca, 0x43, 0x8e, 0x5a, 0xfb, 0x1d, + 0x8c, 0xf8, 0xc4, 0xe1, 0xc4, 0x43, 0x87, 0xf8, 0x3e, 0xf4, 0xb7, 0x99, 0xf7, 0x0e, 0xf5, 0x23, + 0x46, 0xd0, 0xd1, 0xcb, 0x3f, 0x9b, 0x80, 0xae, 0x88, 0xaf, 0x65, 0x9d, 0x0a, 0xc3, 0xb1, 0xeb, + 0xb8, 0x23, 0xb2, 0x9d, 0xe7, 0x18, 0xa0, 0xc2, 0xae, 0x28, 0xe7, 0xc8, 0xc0, 0x3d, 0xe8, 0x54, + 0xf5, 0x88, 0x86, 0xa8, 0x85, 0xfb, 0x70, 0x52, 0x95, 0xc1, 0x38, 0x88, 0x7c, 0x27, 0x2c, 0xe7, + 0x9a, 0x70, 0x56, 0x81, 0xfe, 0x78, 0x7c, 0x19, 0x05, 0x9b, 0xc1, 0xf8, 0x1c, 0x4e, 0x6b, 0x79, + 0x14, 0x36, 0xf0, 0x7f, 0xf8, 0x14, 0x7a, 0x15, 0xcc, 0x2f, 0x69, 0x10, 0x10, 0x0f, 0xb5, 0x87, + 0x6f, 0xbf, 0xbc, 0x49, 0x33, 0x7d, 0xbd, 0x9c, 0x5a, 0xb1, 0xba, 0xb5, 0xcb, 0x27, 0x52, 0x79, + 0x6a, 0x37, 0xab, 0x9c, 0xca, 0x85, 0x7d, 0x37, 0x7d, 0x95, 0x2a, 0x7b, 0x67, 0xbb, 0xa7, 0xed, + 0x72, 0xa7, 0x5f, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x98, 0xf7, 0xa0, 0x21, 0x03, 0x00, + 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.validate.go new file mode 100644 index 0000000000..86a8905f54 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.validate.go @@ -0,0 +1,276 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/catalog.proto + +package core + +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 _catalog_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 CatalogArtifactTag with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CatalogArtifactTag) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ArtifactId + + // no validation rules for Name + + return nil +} + +// CatalogArtifactTagValidationError is the validation error returned by +// CatalogArtifactTag.Validate if the designated constraints aren't met. +type CatalogArtifactTagValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CatalogArtifactTagValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CatalogArtifactTagValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CatalogArtifactTagValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CatalogArtifactTagValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CatalogArtifactTagValidationError) ErrorName() string { + return "CatalogArtifactTagValidationError" +} + +// Error satisfies the builtin error interface +func (e CatalogArtifactTagValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCatalogArtifactTag.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CatalogArtifactTagValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CatalogArtifactTagValidationError{} + +// Validate checks the field values on CatalogMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *CatalogMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDatasetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CatalogMetadataValidationError{ + field: "DatasetId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetArtifactTag()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CatalogMetadataValidationError{ + field: "ArtifactTag", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.SourceExecution.(type) { + + case *CatalogMetadata_SourceTaskExecution: + + if v, ok := interface{}(m.GetSourceTaskExecution()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CatalogMetadataValidationError{ + field: "SourceTaskExecution", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CatalogMetadataValidationError is the validation error returned by +// CatalogMetadata.Validate if the designated constraints aren't met. +type CatalogMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CatalogMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CatalogMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CatalogMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CatalogMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CatalogMetadataValidationError) ErrorName() string { return "CatalogMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e CatalogMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCatalogMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CatalogMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CatalogMetadataValidationError{} + +// Validate checks the field values on CatalogReservation with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CatalogReservation) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CatalogReservationValidationError is the validation error returned by +// CatalogReservation.Validate if the designated constraints aren't met. +type CatalogReservationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CatalogReservationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CatalogReservationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CatalogReservationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CatalogReservationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CatalogReservationValidationError) ErrorName() string { + return "CatalogReservationValidationError" +} + +// Error satisfies the builtin error interface +func (e CatalogReservationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCatalogReservation.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CatalogReservationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CatalogReservationValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/catalog.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/catalog.swagger.json new file mode 100644 index 0000000000..be5e05b196 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/catalog.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/catalog.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go new file mode 100644 index 0000000000..e8a216170d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go @@ -0,0 +1,311 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/compiler.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +// step uses this created ConnectionSet +type ConnectionSet struct { + // A list of all the node ids that are downstream from a given node id + Downstream map[string]*ConnectionSet_IdList `protobuf:"bytes,7,rep,name=downstream,proto3" json:"downstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // A list of all the node ids, that are upstream of this node id + Upstream map[string]*ConnectionSet_IdList `protobuf:"bytes,8,rep,name=upstream,proto3" json:"upstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConnectionSet) Reset() { *m = ConnectionSet{} } +func (m *ConnectionSet) String() string { return proto.CompactTextString(m) } +func (*ConnectionSet) ProtoMessage() {} +func (*ConnectionSet) Descriptor() ([]byte, []int) { + return fileDescriptor_d310dba155e4f065, []int{0} +} + +func (m *ConnectionSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConnectionSet.Unmarshal(m, b) +} +func (m *ConnectionSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConnectionSet.Marshal(b, m, deterministic) +} +func (m *ConnectionSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionSet.Merge(m, src) +} +func (m *ConnectionSet) XXX_Size() int { + return xxx_messageInfo_ConnectionSet.Size(m) +} +func (m *ConnectionSet) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionSet.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionSet proto.InternalMessageInfo + +func (m *ConnectionSet) GetDownstream() map[string]*ConnectionSet_IdList { + if m != nil { + return m.Downstream + } + return nil +} + +func (m *ConnectionSet) GetUpstream() map[string]*ConnectionSet_IdList { + if m != nil { + return m.Upstream + } + return nil +} + +type ConnectionSet_IdList 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 *ConnectionSet_IdList) Reset() { *m = ConnectionSet_IdList{} } +func (m *ConnectionSet_IdList) String() string { return proto.CompactTextString(m) } +func (*ConnectionSet_IdList) ProtoMessage() {} +func (*ConnectionSet_IdList) Descriptor() ([]byte, []int) { + return fileDescriptor_d310dba155e4f065, []int{0, 0} +} + +func (m *ConnectionSet_IdList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConnectionSet_IdList.Unmarshal(m, b) +} +func (m *ConnectionSet_IdList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConnectionSet_IdList.Marshal(b, m, deterministic) +} +func (m *ConnectionSet_IdList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionSet_IdList.Merge(m, src) +} +func (m *ConnectionSet_IdList) XXX_Size() int { + return xxx_messageInfo_ConnectionSet_IdList.Size(m) +} +func (m *ConnectionSet_IdList) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionSet_IdList.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionSet_IdList proto.InternalMessageInfo + +func (m *ConnectionSet_IdList) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer +type CompiledWorkflow struct { + // Completely contained Workflow Template + Template *WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + Connections *ConnectionSet `protobuf:"bytes,2,opt,name=connections,proto3" json:"connections,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompiledWorkflow) Reset() { *m = CompiledWorkflow{} } +func (m *CompiledWorkflow) String() string { return proto.CompactTextString(m) } +func (*CompiledWorkflow) ProtoMessage() {} +func (*CompiledWorkflow) Descriptor() ([]byte, []int) { + return fileDescriptor_d310dba155e4f065, []int{1} +} + +func (m *CompiledWorkflow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompiledWorkflow.Unmarshal(m, b) +} +func (m *CompiledWorkflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompiledWorkflow.Marshal(b, m, deterministic) +} +func (m *CompiledWorkflow) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompiledWorkflow.Merge(m, src) +} +func (m *CompiledWorkflow) XXX_Size() int { + return xxx_messageInfo_CompiledWorkflow.Size(m) +} +func (m *CompiledWorkflow) XXX_DiscardUnknown() { + xxx_messageInfo_CompiledWorkflow.DiscardUnknown(m) +} + +var xxx_messageInfo_CompiledWorkflow proto.InternalMessageInfo + +func (m *CompiledWorkflow) GetTemplate() *WorkflowTemplate { + if m != nil { + return m.Template + } + return nil +} + +func (m *CompiledWorkflow) GetConnections() *ConnectionSet { + if m != nil { + return m.Connections + } + return nil +} + +// Output of the Compilation step. This object represent one Task. We store more metadata at this layer +type CompiledTask struct { + // Completely contained TaskTemplate + Template *TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompiledTask) Reset() { *m = CompiledTask{} } +func (m *CompiledTask) String() string { return proto.CompactTextString(m) } +func (*CompiledTask) ProtoMessage() {} +func (*CompiledTask) Descriptor() ([]byte, []int) { + return fileDescriptor_d310dba155e4f065, []int{2} +} + +func (m *CompiledTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompiledTask.Unmarshal(m, b) +} +func (m *CompiledTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompiledTask.Marshal(b, m, deterministic) +} +func (m *CompiledTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompiledTask.Merge(m, src) +} +func (m *CompiledTask) XXX_Size() int { + return xxx_messageInfo_CompiledTask.Size(m) +} +func (m *CompiledTask) XXX_DiscardUnknown() { + xxx_messageInfo_CompiledTask.DiscardUnknown(m) +} + +var xxx_messageInfo_CompiledTask proto.InternalMessageInfo + +func (m *CompiledTask) GetTemplate() *TaskTemplate { + if m != nil { + return m.Template + } + return nil +} + +// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +// compiled subworkflows. +type CompiledWorkflowClosure struct { + //+required + Primary *CompiledWorkflow `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` + // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + // as an inlined workflow + //+optional + SubWorkflows []*CompiledWorkflow `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` + // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + //+required (at least 1) + Tasks []*CompiledTask `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompiledWorkflowClosure) Reset() { *m = CompiledWorkflowClosure{} } +func (m *CompiledWorkflowClosure) String() string { return proto.CompactTextString(m) } +func (*CompiledWorkflowClosure) ProtoMessage() {} +func (*CompiledWorkflowClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_d310dba155e4f065, []int{3} +} + +func (m *CompiledWorkflowClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompiledWorkflowClosure.Unmarshal(m, b) +} +func (m *CompiledWorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompiledWorkflowClosure.Marshal(b, m, deterministic) +} +func (m *CompiledWorkflowClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompiledWorkflowClosure.Merge(m, src) +} +func (m *CompiledWorkflowClosure) XXX_Size() int { + return xxx_messageInfo_CompiledWorkflowClosure.Size(m) +} +func (m *CompiledWorkflowClosure) XXX_DiscardUnknown() { + xxx_messageInfo_CompiledWorkflowClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_CompiledWorkflowClosure proto.InternalMessageInfo + +func (m *CompiledWorkflowClosure) GetPrimary() *CompiledWorkflow { + if m != nil { + return m.Primary + } + return nil +} + +func (m *CompiledWorkflowClosure) GetSubWorkflows() []*CompiledWorkflow { + if m != nil { + return m.SubWorkflows + } + return nil +} + +func (m *CompiledWorkflowClosure) GetTasks() []*CompiledTask { + if m != nil { + return m.Tasks + } + return nil +} + +func init() { + proto.RegisterType((*ConnectionSet)(nil), "flyteidl.core.ConnectionSet") + proto.RegisterMapType((map[string]*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.DownstreamEntry") + proto.RegisterMapType((map[string]*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.UpstreamEntry") + proto.RegisterType((*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.IdList") + proto.RegisterType((*CompiledWorkflow)(nil), "flyteidl.core.CompiledWorkflow") + proto.RegisterType((*CompiledTask)(nil), "flyteidl.core.CompiledTask") + proto.RegisterType((*CompiledWorkflowClosure)(nil), "flyteidl.core.CompiledWorkflowClosure") +} + +func init() { proto.RegisterFile("flyteidl/core/compiler.proto", fileDescriptor_d310dba155e4f065) } + +var fileDescriptor_d310dba155e4f065 = []byte{ + // 423 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcb, 0xca, 0xd3, 0x40, + 0x14, 0xc7, 0x49, 0x43, 0x2f, 0x9e, 0x34, 0x58, 0x66, 0x63, 0x4c, 0x0b, 0x86, 0xb8, 0x29, 0xa2, + 0x09, 0x56, 0x51, 0xab, 0xe0, 0xc2, 0x56, 0x45, 0xe8, 0x2a, 0x56, 0x04, 0x37, 0x9a, 0xcb, 0x34, + 0x86, 0x5c, 0x26, 0xcc, 0x4c, 0x2c, 0x79, 0x02, 0x97, 0x3e, 0x99, 0xef, 0xf4, 0x91, 0x2b, 0x4d, + 0x4a, 0xcb, 0xb7, 0xf8, 0x76, 0x2d, 0xe7, 0xf7, 0xbf, 0x1c, 0x26, 0x07, 0x16, 0x87, 0x28, 0xe7, + 0x38, 0xf0, 0x22, 0xd3, 0x25, 0x14, 0x9b, 0x2e, 0x89, 0xd3, 0x20, 0xc2, 0xd4, 0x48, 0x29, 0xe1, + 0x04, 0xc9, 0xcd, 0xd4, 0x28, 0xa6, 0x6a, 0x0f, 0x3e, 0x12, 0x1a, 0x1e, 0x22, 0x72, 0xac, 0x60, + 0xf5, 0x61, 0x77, 0xca, 0x6d, 0x16, 0xb2, 0x6a, 0xa4, 0xff, 0x15, 0x41, 0xde, 0x90, 0x24, 0xc1, + 0x2e, 0x0f, 0x48, 0xf2, 0x15, 0x73, 0xb4, 0x03, 0xf0, 0xc8, 0x31, 0x61, 0x9c, 0x62, 0x3b, 0x56, + 0xc6, 0x9a, 0xb8, 0x94, 0x56, 0x4f, 0x8d, 0x4e, 0x9c, 0xd1, 0x51, 0x18, 0xdb, 0x16, 0xff, 0x98, + 0x70, 0x9a, 0x5b, 0x27, 0x7a, 0xf4, 0x09, 0x26, 0x59, 0x5a, 0x7b, 0x4d, 0x4a, 0xaf, 0x27, 0x57, + 0xbd, 0xbe, 0xa5, 0xa7, 0x4e, 0xad, 0x56, 0x55, 0x61, 0xf4, 0xc5, 0xdb, 0x05, 0x8c, 0xa3, 0x19, + 0x88, 0x81, 0xc7, 0x14, 0x41, 0x13, 0x97, 0xf7, 0xac, 0xe2, 0xa7, 0xea, 0xc0, 0xfd, 0x5e, 0x85, + 0x02, 0x0a, 0x71, 0xae, 0x08, 0x9a, 0x50, 0x40, 0x21, 0xce, 0xd1, 0x1a, 0x86, 0x7f, 0xec, 0x28, + 0xc3, 0xca, 0x40, 0x13, 0x96, 0xd2, 0xea, 0xf1, 0xd5, 0x16, 0x55, 0x94, 0x55, 0x29, 0xde, 0x0e, + 0xde, 0x08, 0xea, 0x2f, 0x90, 0x3b, 0xd5, 0xee, 0x3c, 0x41, 0xff, 0x27, 0xc0, 0x6c, 0x53, 0x3d, + 0xb2, 0xf7, 0xbd, 0x7e, 0x3f, 0xf4, 0x0e, 0x26, 0x1c, 0xc7, 0x69, 0x64, 0x73, 0x5c, 0x46, 0x49, + 0xab, 0x47, 0x3d, 0xdb, 0x06, 0xdd, 0xd7, 0x98, 0xd5, 0x0a, 0xd0, 0x7b, 0x90, 0xdc, 0x36, 0x94, + 0xd5, 0xb5, 0x16, 0xd7, 0x6a, 0x59, 0xa7, 0x02, 0xfd, 0x33, 0x4c, 0x9b, 0x42, 0x7b, 0x9b, 0x85, + 0xe8, 0xf5, 0x59, 0x99, 0x79, 0xcf, 0xac, 0xc0, 0xce, 0x8b, 0xe8, 0xff, 0x05, 0x78, 0xd0, 0x5f, + 0x6d, 0x13, 0x11, 0x96, 0x51, 0x8c, 0xd6, 0x30, 0x4e, 0x69, 0x10, 0xdb, 0x34, 0xbf, 0xb0, 0x60, + 0x5f, 0x68, 0x35, 0x3c, 0xda, 0x82, 0xcc, 0x32, 0xe7, 0x67, 0xf3, 0xb1, 0x17, 0x1b, 0x8a, 0xb7, + 0x31, 0x98, 0xb2, 0xcc, 0x69, 0xfe, 0x30, 0xf4, 0x1c, 0x86, 0xe5, 0x41, 0x28, 0x62, 0xa9, 0x9e, + 0x5f, 0x50, 0x17, 0xab, 0x59, 0x15, 0xf9, 0xe1, 0xd5, 0x8f, 0x97, 0x7e, 0xc0, 0x7f, 0x67, 0x8e, + 0xe1, 0x92, 0xd8, 0x2c, 0x79, 0x42, 0x7d, 0xb3, 0xbd, 0x32, 0x1f, 0x27, 0x66, 0xea, 0x3c, 0xf3, + 0x89, 0xd9, 0x39, 0x3c, 0x67, 0x54, 0xde, 0xdc, 0x8b, 0x9b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, + 0x1f, 0x50, 0x2b, 0xdb, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.validate.go new file mode 100644 index 0000000000..5fa2a39c38 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.validate.go @@ -0,0 +1,470 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/compiler.proto + +package core + +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 _compiler_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 ConnectionSet with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ConnectionSet) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetDownstream() { + _ = val + + // no validation rules for Downstream[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionSetValidationError{ + field: fmt.Sprintf("Downstream[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for key, val := range m.GetUpstream() { + _ = val + + // no validation rules for Upstream[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConnectionSetValidationError{ + field: fmt.Sprintf("Upstream[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ConnectionSetValidationError is the validation error returned by +// ConnectionSet.Validate if the designated constraints aren't met. +type ConnectionSetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionSetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionSetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionSetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionSetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionSetValidationError) ErrorName() string { return "ConnectionSetValidationError" } + +// Error satisfies the builtin error interface +func (e ConnectionSetValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sConnectionSet.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionSetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionSetValidationError{} + +// Validate checks the field values on CompiledWorkflow with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *CompiledWorkflow) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetConnections()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowValidationError{ + field: "Connections", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CompiledWorkflowValidationError is the validation error returned by +// CompiledWorkflow.Validate if the designated constraints aren't met. +type CompiledWorkflowValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompiledWorkflowValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompiledWorkflowValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompiledWorkflowValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompiledWorkflowValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompiledWorkflowValidationError) ErrorName() string { return "CompiledWorkflowValidationError" } + +// Error satisfies the builtin error interface +func (e CompiledWorkflowValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCompiledWorkflow.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompiledWorkflowValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompiledWorkflowValidationError{} + +// Validate checks the field values on CompiledTask with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CompiledTask) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledTaskValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CompiledTaskValidationError is the validation error returned by +// CompiledTask.Validate if the designated constraints aren't met. +type CompiledTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompiledTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompiledTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompiledTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompiledTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompiledTaskValidationError) ErrorName() string { return "CompiledTaskValidationError" } + +// Error satisfies the builtin error interface +func (e CompiledTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCompiledTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompiledTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompiledTaskValidationError{} + +// Validate checks the field values on CompiledWorkflowClosure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CompiledWorkflowClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetPrimary()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowClosureValidationError{ + field: "Primary", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSubWorkflows() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowClosureValidationError{ + field: fmt.Sprintf("SubWorkflows[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowClosureValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CompiledWorkflowClosureValidationError is the validation error returned by +// CompiledWorkflowClosure.Validate if the designated constraints aren't met. +type CompiledWorkflowClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompiledWorkflowClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompiledWorkflowClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompiledWorkflowClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompiledWorkflowClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompiledWorkflowClosureValidationError) ErrorName() string { + return "CompiledWorkflowClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e CompiledWorkflowClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCompiledWorkflowClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompiledWorkflowClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompiledWorkflowClosureValidationError{} + +// Validate checks the field values on ConnectionSet_IdList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ConnectionSet_IdList) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ConnectionSet_IdListValidationError is the validation error returned by +// ConnectionSet_IdList.Validate if the designated constraints aren't met. +type ConnectionSet_IdListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionSet_IdListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionSet_IdListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionSet_IdListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionSet_IdListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionSet_IdListValidationError) ErrorName() string { + return "ConnectionSet_IdListValidationError" +} + +// Error satisfies the builtin error interface +func (e ConnectionSet_IdListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sConnectionSet_IdList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionSet_IdListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionSet_IdListValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json new file mode 100644 index 0000000000..872bee4245 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/compiler.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go new file mode 100644 index 0000000000..6bf74ba3a6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go @@ -0,0 +1,427 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/condition.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Binary Operator for each expression +type ComparisonExpression_Operator int32 + +const ( + ComparisonExpression_EQ ComparisonExpression_Operator = 0 + ComparisonExpression_NEQ ComparisonExpression_Operator = 1 + // Greater Than + ComparisonExpression_GT ComparisonExpression_Operator = 2 + ComparisonExpression_GTE ComparisonExpression_Operator = 3 + // Less Than + ComparisonExpression_LT ComparisonExpression_Operator = 4 + ComparisonExpression_LTE ComparisonExpression_Operator = 5 +) + +var ComparisonExpression_Operator_name = map[int32]string{ + 0: "EQ", + 1: "NEQ", + 2: "GT", + 3: "GTE", + 4: "LT", + 5: "LTE", +} + +var ComparisonExpression_Operator_value = map[string]int32{ + "EQ": 0, + "NEQ": 1, + "GT": 2, + "GTE": 3, + "LT": 4, + "LTE": 5, +} + +func (x ComparisonExpression_Operator) String() string { + return proto.EnumName(ComparisonExpression_Operator_name, int32(x)) +} + +func (ComparisonExpression_Operator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_df35c44899db166a, []int{0, 0} +} + +// Nested conditions. They can be conjoined using AND / OR +// Order of evaluation is not important as the operators are Commutative +type ConjunctionExpression_LogicalOperator int32 + +const ( + // Conjunction + ConjunctionExpression_AND ConjunctionExpression_LogicalOperator = 0 + ConjunctionExpression_OR ConjunctionExpression_LogicalOperator = 1 +) + +var ConjunctionExpression_LogicalOperator_name = map[int32]string{ + 0: "AND", + 1: "OR", +} + +var ConjunctionExpression_LogicalOperator_value = map[string]int32{ + "AND": 0, + "OR": 1, +} + +func (x ConjunctionExpression_LogicalOperator) String() string { + return proto.EnumName(ConjunctionExpression_LogicalOperator_name, int32(x)) +} + +func (ConjunctionExpression_LogicalOperator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_df35c44899db166a, []int{3, 0} +} + +// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. +// Each expression results in a boolean result. +type ComparisonExpression struct { + Operator ComparisonExpression_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ComparisonExpression_Operator" json:"operator,omitempty"` + LeftValue *Operand `protobuf:"bytes,2,opt,name=left_value,json=leftValue,proto3" json:"left_value,omitempty"` + RightValue *Operand `protobuf:"bytes,3,opt,name=right_value,json=rightValue,proto3" json:"right_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComparisonExpression) Reset() { *m = ComparisonExpression{} } +func (m *ComparisonExpression) String() string { return proto.CompactTextString(m) } +func (*ComparisonExpression) ProtoMessage() {} +func (*ComparisonExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_df35c44899db166a, []int{0} +} + +func (m *ComparisonExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ComparisonExpression.Unmarshal(m, b) +} +func (m *ComparisonExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ComparisonExpression.Marshal(b, m, deterministic) +} +func (m *ComparisonExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComparisonExpression.Merge(m, src) +} +func (m *ComparisonExpression) XXX_Size() int { + return xxx_messageInfo_ComparisonExpression.Size(m) +} +func (m *ComparisonExpression) XXX_DiscardUnknown() { + xxx_messageInfo_ComparisonExpression.DiscardUnknown(m) +} + +var xxx_messageInfo_ComparisonExpression proto.InternalMessageInfo + +func (m *ComparisonExpression) GetOperator() ComparisonExpression_Operator { + if m != nil { + return m.Operator + } + return ComparisonExpression_EQ +} + +func (m *ComparisonExpression) GetLeftValue() *Operand { + if m != nil { + return m.LeftValue + } + return nil +} + +func (m *ComparisonExpression) GetRightValue() *Operand { + if m != nil { + return m.RightValue + } + return nil +} + +// Defines an operand to a comparison expression. +type Operand struct { + // Types that are valid to be assigned to Val: + // *Operand_Primitive + // *Operand_Var + // *Operand_Scalar + Val isOperand_Val `protobuf_oneof:"val"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Operand) Reset() { *m = Operand{} } +func (m *Operand) String() string { return proto.CompactTextString(m) } +func (*Operand) ProtoMessage() {} +func (*Operand) Descriptor() ([]byte, []int) { + return fileDescriptor_df35c44899db166a, []int{1} +} + +func (m *Operand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Operand.Unmarshal(m, b) +} +func (m *Operand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Operand.Marshal(b, m, deterministic) +} +func (m *Operand) XXX_Merge(src proto.Message) { + xxx_messageInfo_Operand.Merge(m, src) +} +func (m *Operand) XXX_Size() int { + return xxx_messageInfo_Operand.Size(m) +} +func (m *Operand) XXX_DiscardUnknown() { + xxx_messageInfo_Operand.DiscardUnknown(m) +} + +var xxx_messageInfo_Operand proto.InternalMessageInfo + +type isOperand_Val interface { + isOperand_Val() +} + +type Operand_Primitive struct { + Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` +} + +type Operand_Var struct { + Var string `protobuf:"bytes,2,opt,name=var,proto3,oneof"` +} + +type Operand_Scalar struct { + Scalar *Scalar `protobuf:"bytes,3,opt,name=scalar,proto3,oneof"` +} + +func (*Operand_Primitive) isOperand_Val() {} + +func (*Operand_Var) isOperand_Val() {} + +func (*Operand_Scalar) isOperand_Val() {} + +func (m *Operand) GetVal() isOperand_Val { + if m != nil { + return m.Val + } + return nil +} + +// Deprecated: Do not use. +func (m *Operand) GetPrimitive() *Primitive { + if x, ok := m.GetVal().(*Operand_Primitive); ok { + return x.Primitive + } + return nil +} + +func (m *Operand) GetVar() string { + if x, ok := m.GetVal().(*Operand_Var); ok { + return x.Var + } + return "" +} + +func (m *Operand) GetScalar() *Scalar { + if x, ok := m.GetVal().(*Operand_Scalar); ok { + return x.Scalar + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Operand) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Operand_Primitive)(nil), + (*Operand_Var)(nil), + (*Operand_Scalar)(nil), + } +} + +// Defines a boolean expression tree. It can be a simple or a conjunction expression. +// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +type BooleanExpression struct { + // Types that are valid to be assigned to Expr: + // *BooleanExpression_Conjunction + // *BooleanExpression_Comparison + Expr isBooleanExpression_Expr `protobuf_oneof:"expr"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BooleanExpression) Reset() { *m = BooleanExpression{} } +func (m *BooleanExpression) String() string { return proto.CompactTextString(m) } +func (*BooleanExpression) ProtoMessage() {} +func (*BooleanExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_df35c44899db166a, []int{2} +} + +func (m *BooleanExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BooleanExpression.Unmarshal(m, b) +} +func (m *BooleanExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BooleanExpression.Marshal(b, m, deterministic) +} +func (m *BooleanExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanExpression.Merge(m, src) +} +func (m *BooleanExpression) XXX_Size() int { + return xxx_messageInfo_BooleanExpression.Size(m) +} +func (m *BooleanExpression) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanExpression.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanExpression proto.InternalMessageInfo + +type isBooleanExpression_Expr interface { + isBooleanExpression_Expr() +} + +type BooleanExpression_Conjunction struct { + Conjunction *ConjunctionExpression `protobuf:"bytes,1,opt,name=conjunction,proto3,oneof"` +} + +type BooleanExpression_Comparison struct { + Comparison *ComparisonExpression `protobuf:"bytes,2,opt,name=comparison,proto3,oneof"` +} + +func (*BooleanExpression_Conjunction) isBooleanExpression_Expr() {} + +func (*BooleanExpression_Comparison) isBooleanExpression_Expr() {} + +func (m *BooleanExpression) GetExpr() isBooleanExpression_Expr { + if m != nil { + return m.Expr + } + return nil +} + +func (m *BooleanExpression) GetConjunction() *ConjunctionExpression { + if x, ok := m.GetExpr().(*BooleanExpression_Conjunction); ok { + return x.Conjunction + } + return nil +} + +func (m *BooleanExpression) GetComparison() *ComparisonExpression { + if x, ok := m.GetExpr().(*BooleanExpression_Comparison); ok { + return x.Comparison + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BooleanExpression) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BooleanExpression_Conjunction)(nil), + (*BooleanExpression_Comparison)(nil), + } +} + +// Defines a conjunction expression of two boolean expressions. +type ConjunctionExpression struct { + Operator ConjunctionExpression_LogicalOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ConjunctionExpression_LogicalOperator" json:"operator,omitempty"` + LeftExpression *BooleanExpression `protobuf:"bytes,2,opt,name=left_expression,json=leftExpression,proto3" json:"left_expression,omitempty"` + RightExpression *BooleanExpression `protobuf:"bytes,3,opt,name=right_expression,json=rightExpression,proto3" json:"right_expression,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConjunctionExpression) Reset() { *m = ConjunctionExpression{} } +func (m *ConjunctionExpression) String() string { return proto.CompactTextString(m) } +func (*ConjunctionExpression) ProtoMessage() {} +func (*ConjunctionExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_df35c44899db166a, []int{3} +} + +func (m *ConjunctionExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConjunctionExpression.Unmarshal(m, b) +} +func (m *ConjunctionExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConjunctionExpression.Marshal(b, m, deterministic) +} +func (m *ConjunctionExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConjunctionExpression.Merge(m, src) +} +func (m *ConjunctionExpression) XXX_Size() int { + return xxx_messageInfo_ConjunctionExpression.Size(m) +} +func (m *ConjunctionExpression) XXX_DiscardUnknown() { + xxx_messageInfo_ConjunctionExpression.DiscardUnknown(m) +} + +var xxx_messageInfo_ConjunctionExpression proto.InternalMessageInfo + +func (m *ConjunctionExpression) GetOperator() ConjunctionExpression_LogicalOperator { + if m != nil { + return m.Operator + } + return ConjunctionExpression_AND +} + +func (m *ConjunctionExpression) GetLeftExpression() *BooleanExpression { + if m != nil { + return m.LeftExpression + } + return nil +} + +func (m *ConjunctionExpression) GetRightExpression() *BooleanExpression { + if m != nil { + return m.RightExpression + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.core.ComparisonExpression_Operator", ComparisonExpression_Operator_name, ComparisonExpression_Operator_value) + proto.RegisterEnum("flyteidl.core.ConjunctionExpression_LogicalOperator", ConjunctionExpression_LogicalOperator_name, ConjunctionExpression_LogicalOperator_value) + proto.RegisterType((*ComparisonExpression)(nil), "flyteidl.core.ComparisonExpression") + proto.RegisterType((*Operand)(nil), "flyteidl.core.Operand") + proto.RegisterType((*BooleanExpression)(nil), "flyteidl.core.BooleanExpression") + proto.RegisterType((*ConjunctionExpression)(nil), "flyteidl.core.ConjunctionExpression") +} + +func init() { proto.RegisterFile("flyteidl/core/condition.proto", fileDescriptor_df35c44899db166a) } + +var fileDescriptor_df35c44899db166a = []byte{ + // 486 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0xc6, 0xf3, 0x67, 0xeb, 0xd6, 0xb7, 0x62, 0x35, 0x16, 0x43, 0x15, 0x02, 0xa9, 0x0a, 0x1c, + 0x76, 0x80, 0x44, 0x2a, 0x03, 0x2e, 0x70, 0x20, 0x10, 0x2d, 0x88, 0x6a, 0x7f, 0x4c, 0xc5, 0x81, + 0x0b, 0x72, 0x53, 0x2f, 0x33, 0x72, 0xe3, 0xc8, 0x49, 0xab, 0xf1, 0x29, 0x38, 0xf0, 0x19, 0xb8, + 0xf1, 0x21, 0x91, 0xbd, 0x34, 0x6d, 0xd3, 0x0a, 0xf5, 0x98, 0xf7, 0x7d, 0x7e, 0x4f, 0x1e, 0xfb, + 0x7d, 0x0d, 0x4f, 0xae, 0xc5, 0xcf, 0x92, 0xf1, 0x89, 0x08, 0x12, 0xa9, 0x58, 0x90, 0xc8, 0x6c, + 0xc2, 0x4b, 0x2e, 0x33, 0x3f, 0x57, 0xb2, 0x94, 0xf8, 0xde, 0xa2, 0xed, 0xeb, 0xf6, 0xa3, 0xc7, + 0xeb, 0x6a, 0xc1, 0x4b, 0xa6, 0xa8, 0x28, 0xee, 0xc4, 0xde, 0x2f, 0x07, 0x1e, 0x7c, 0x90, 0xd3, + 0x9c, 0x2a, 0x5e, 0xc8, 0x2c, 0xba, 0xcd, 0x15, 0x2b, 0x0a, 0x2e, 0x33, 0x1c, 0xc3, 0xa1, 0xcc, + 0x99, 0xa2, 0xa5, 0x54, 0x3d, 0xbb, 0x6f, 0x9f, 0x1c, 0x0d, 0x9e, 0xfb, 0x6b, 0xc6, 0xfe, 0x36, + 0xcc, 0xbf, 0xa8, 0x18, 0x52, 0xd3, 0xf8, 0x15, 0x80, 0x60, 0xd7, 0xe5, 0xf7, 0x39, 0x15, 0x33, + 0xd6, 0x73, 0xfa, 0xf6, 0x49, 0x67, 0xf0, 0xb0, 0xe1, 0x65, 0xb0, 0x6c, 0x42, 0xda, 0x5a, 0xf9, + 0x55, 0x0b, 0xf1, 0x1b, 0xe8, 0x28, 0x9e, 0xde, 0x2c, 0x38, 0xf7, 0xbf, 0x1c, 0x18, 0xa9, 0x01, + 0xbd, 0x77, 0x70, 0xb8, 0x48, 0x81, 0x5b, 0xe0, 0x44, 0x57, 0xc8, 0xc2, 0x07, 0xe0, 0x9e, 0x47, + 0x57, 0xc8, 0xd6, 0x85, 0xb3, 0x11, 0x72, 0x74, 0xe1, 0x6c, 0x14, 0x21, 0x57, 0x17, 0x86, 0x23, + 0xb4, 0xa7, 0x0b, 0xc3, 0x51, 0x84, 0xf6, 0xbd, 0xdf, 0x36, 0x1c, 0x54, 0xb6, 0xf8, 0x2d, 0xb4, + 0x73, 0xc5, 0xa7, 0xbc, 0xe4, 0x73, 0x66, 0x6e, 0xa1, 0x33, 0xe8, 0x35, 0x12, 0x5c, 0x2e, 0xfa, + 0xa1, 0xd3, 0xb3, 0x63, 0x8b, 0x2c, 0x01, 0x8c, 0xc1, 0x9d, 0x53, 0x65, 0x4e, 0xdc, 0x8e, 0x2d, + 0xa2, 0x3f, 0x70, 0x00, 0xad, 0x22, 0xa1, 0x82, 0xaa, 0xea, 0x40, 0xc7, 0x0d, 0xbb, 0x2f, 0xa6, + 0x19, 0x5b, 0xa4, 0x92, 0x85, 0xfb, 0xda, 0x44, 0x78, 0x7f, 0x6d, 0xb8, 0x1f, 0x4a, 0x29, 0x18, + 0x5d, 0x1f, 0x52, 0x27, 0x91, 0xd9, 0x8f, 0x59, 0x96, 0xe8, 0xf9, 0x57, 0x09, 0x9f, 0x6d, 0xcc, + 0xa9, 0x56, 0x2c, 0xd1, 0xd8, 0x22, 0xab, 0x28, 0x8e, 0x00, 0x92, 0x7a, 0x9e, 0xd5, 0x90, 0x9e, + 0xee, 0x30, 0xf0, 0xd8, 0x22, 0x2b, 0x60, 0xd8, 0x82, 0x3d, 0x76, 0x9b, 0x2b, 0xef, 0x8f, 0x03, + 0xc7, 0x5b, 0xff, 0x8b, 0x2f, 0x37, 0xf6, 0xea, 0x74, 0x97, 0xbc, 0xfe, 0x50, 0xa6, 0x3c, 0xa1, + 0x62, 0xcb, 0x7e, 0x7d, 0x82, 0xae, 0xd9, 0x2f, 0x56, 0x8b, 0xab, 0xfc, 0xfd, 0x86, 0xf1, 0xc6, + 0xfd, 0x91, 0x23, 0x0d, 0xae, 0x84, 0xfb, 0x0c, 0xe8, 0x6e, 0xe7, 0x56, 0xbc, 0xdc, 0x1d, 0xbd, + 0xba, 0x86, 0x5c, 0x16, 0x3c, 0x0f, 0xba, 0x8d, 0xd0, 0x7a, 0xc9, 0xde, 0x9f, 0x7f, 0x44, 0x96, + 0xde, 0xba, 0x0b, 0x82, 0xec, 0xf0, 0xf5, 0xb7, 0xd3, 0x94, 0x97, 0x37, 0xb3, 0xb1, 0x9f, 0xc8, + 0x69, 0x60, 0x7e, 0x21, 0x55, 0x1a, 0xd4, 0x4f, 0x36, 0x65, 0x59, 0x90, 0x8f, 0x5f, 0xa4, 0x32, + 0x58, 0x7b, 0xc5, 0xe3, 0x96, 0x79, 0xbd, 0x2f, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xe4, + 0xe7, 0xb1, 0x0b, 0x04, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.validate.go new file mode 100644 index 0000000000..0eb34fb8ab --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.validate.go @@ -0,0 +1,405 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/condition.proto + +package core + +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 _condition_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 ComparisonExpression with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ComparisonExpression) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Operator + + if v, ok := interface{}(m.GetLeftValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ComparisonExpressionValidationError{ + field: "LeftValue", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRightValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ComparisonExpressionValidationError{ + field: "RightValue", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ComparisonExpressionValidationError is the validation error returned by +// ComparisonExpression.Validate if the designated constraints aren't met. +type ComparisonExpressionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ComparisonExpressionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ComparisonExpressionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ComparisonExpressionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ComparisonExpressionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ComparisonExpressionValidationError) ErrorName() string { + return "ComparisonExpressionValidationError" +} + +// Error satisfies the builtin error interface +func (e ComparisonExpressionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sComparisonExpression.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ComparisonExpressionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ComparisonExpressionValidationError{} + +// Validate checks the field values on Operand with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Operand) Validate() error { + if m == nil { + return nil + } + + switch m.Val.(type) { + + case *Operand_Primitive: + + if v, ok := interface{}(m.GetPrimitive()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OperandValidationError{ + field: "Primitive", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Operand_Var: + // no validation rules for Var + + case *Operand_Scalar: + + if v, ok := interface{}(m.GetScalar()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OperandValidationError{ + field: "Scalar", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// OperandValidationError is the validation error returned by Operand.Validate +// if the designated constraints aren't met. +type OperandValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OperandValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OperandValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OperandValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OperandValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OperandValidationError) ErrorName() string { return "OperandValidationError" } + +// Error satisfies the builtin error interface +func (e OperandValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sOperand.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OperandValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OperandValidationError{} + +// Validate checks the field values on BooleanExpression with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *BooleanExpression) Validate() error { + if m == nil { + return nil + } + + switch m.Expr.(type) { + + case *BooleanExpression_Conjunction: + + if v, ok := interface{}(m.GetConjunction()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BooleanExpressionValidationError{ + field: "Conjunction", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BooleanExpression_Comparison: + + if v, ok := interface{}(m.GetComparison()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BooleanExpressionValidationError{ + field: "Comparison", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// BooleanExpressionValidationError is the validation error returned by +// BooleanExpression.Validate if the designated constraints aren't met. +type BooleanExpressionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BooleanExpressionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BooleanExpressionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BooleanExpressionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BooleanExpressionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BooleanExpressionValidationError) ErrorName() string { + return "BooleanExpressionValidationError" +} + +// Error satisfies the builtin error interface +func (e BooleanExpressionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBooleanExpression.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BooleanExpressionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BooleanExpressionValidationError{} + +// Validate checks the field values on ConjunctionExpression with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ConjunctionExpression) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Operator + + if v, ok := interface{}(m.GetLeftExpression()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConjunctionExpressionValidationError{ + field: "LeftExpression", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRightExpression()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConjunctionExpressionValidationError{ + field: "RightExpression", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ConjunctionExpressionValidationError is the validation error returned by +// ConjunctionExpression.Validate if the designated constraints aren't met. +type ConjunctionExpressionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConjunctionExpressionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConjunctionExpressionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConjunctionExpressionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConjunctionExpressionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConjunctionExpressionValidationError) ErrorName() string { + return "ConjunctionExpressionValidationError" +} + +// Error satisfies the builtin error interface +func (e ConjunctionExpressionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sConjunctionExpression.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConjunctionExpressionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConjunctionExpressionValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json new file mode 100644 index 0000000000..003c697275 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/condition.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go new file mode 100644 index 0000000000..eb37f27ec0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go @@ -0,0 +1,131 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/dynamic_job.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Describes a set of tasks to execute and how the final outputs are produced. +type DynamicJobSpec struct { + // A collection of nodes to execute. + Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` + // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + // specified, is the count of nodes repeated field. + MinSuccesses int64 `protobuf:"varint,2,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"` + // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + // in bindings should have the generated id for the subtask. + Outputs []*Binding `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` + // [Optional] A complete list of task specs referenced in nodes. + Tasks []*TaskTemplate `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` + // [Optional] A complete list of task specs referenced in nodes. + Subworkflows []*WorkflowTemplate `protobuf:"bytes,5,rep,name=subworkflows,proto3" json:"subworkflows,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DynamicJobSpec) Reset() { *m = DynamicJobSpec{} } +func (m *DynamicJobSpec) String() string { return proto.CompactTextString(m) } +func (*DynamicJobSpec) ProtoMessage() {} +func (*DynamicJobSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_87e0015f5a750c69, []int{0} +} + +func (m *DynamicJobSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DynamicJobSpec.Unmarshal(m, b) +} +func (m *DynamicJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DynamicJobSpec.Marshal(b, m, deterministic) +} +func (m *DynamicJobSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicJobSpec.Merge(m, src) +} +func (m *DynamicJobSpec) XXX_Size() int { + return xxx_messageInfo_DynamicJobSpec.Size(m) +} +func (m *DynamicJobSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicJobSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicJobSpec proto.InternalMessageInfo + +func (m *DynamicJobSpec) GetNodes() []*Node { + if m != nil { + return m.Nodes + } + return nil +} + +func (m *DynamicJobSpec) GetMinSuccesses() int64 { + if m != nil { + return m.MinSuccesses + } + return 0 +} + +func (m *DynamicJobSpec) GetOutputs() []*Binding { + if m != nil { + return m.Outputs + } + return nil +} + +func (m *DynamicJobSpec) GetTasks() []*TaskTemplate { + if m != nil { + return m.Tasks + } + return nil +} + +func (m *DynamicJobSpec) GetSubworkflows() []*WorkflowTemplate { + if m != nil { + return m.Subworkflows + } + return nil +} + +func init() { + proto.RegisterType((*DynamicJobSpec)(nil), "flyteidl.core.DynamicJobSpec") +} + +func init() { proto.RegisterFile("flyteidl/core/dynamic_job.proto", fileDescriptor_87e0015f5a750c69) } + +var fileDescriptor_87e0015f5a750c69 = []byte{ + // 285 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4a, 0xc3, 0x40, + 0x10, 0xc6, 0x69, 0x6b, 0x15, 0xd6, 0xd6, 0xc3, 0x0a, 0x12, 0xab, 0xd0, 0xa2, 0x97, 0x7a, 0x30, + 0xeb, 0x3f, 0x7c, 0x80, 0xea, 0xc9, 0x83, 0x87, 0xb4, 0x20, 0x78, 0x29, 0xd9, 0xcd, 0x34, 0xae, + 0xdd, 0xec, 0x84, 0xcc, 0x86, 0xd2, 0x57, 0xf0, 0xa9, 0xc5, 0x4d, 0x53, 0x48, 0xf0, 0xba, 0xdf, + 0xef, 0x37, 0x3b, 0xf3, 0xb1, 0xf1, 0xca, 0x6c, 0x1d, 0xe8, 0xc4, 0x08, 0x85, 0x05, 0x88, 0x64, + 0x6b, 0xe3, 0x4c, 0xab, 0xe5, 0x37, 0xca, 0x30, 0x2f, 0xd0, 0x21, 0x1f, 0xd6, 0x40, 0xf8, 0x07, + 0x8c, 0xce, 0x9b, 0xbc, 0x8b, 0x69, 0x4d, 0x15, 0x39, 0xba, 0x6c, 0x46, 0x1b, 0x2c, 0xd6, 0x2b, + 0x83, 0x9b, 0xff, 0x53, 0xa3, 0x1d, 0x14, 0xb1, 0xd9, 0xb9, 0x57, 0x3f, 0x5d, 0x76, 0xf2, 0x5a, + 0xfd, 0xfd, 0x86, 0x72, 0x9e, 0x83, 0xe2, 0x37, 0xac, 0x6f, 0x31, 0x01, 0x0a, 0x3a, 0x93, 0xde, + 0xf4, 0xf8, 0xe1, 0x34, 0x6c, 0x2c, 0x12, 0xbe, 0x63, 0x02, 0x51, 0x45, 0xf0, 0x6b, 0x36, 0xcc, + 0xb4, 0x5d, 0x52, 0xa9, 0x14, 0x10, 0x01, 0x05, 0xdd, 0x49, 0x67, 0xda, 0x8b, 0x06, 0x99, 0xb6, + 0xf3, 0xfa, 0x8d, 0xdf, 0xb1, 0x23, 0x2c, 0x5d, 0x5e, 0x3a, 0x0a, 0x7a, 0x7e, 0xe2, 0x59, 0x6b, + 0xe2, 0x4c, 0xdb, 0x44, 0xdb, 0x34, 0xaa, 0x31, 0x7e, 0xcf, 0xfa, 0xfe, 0xbe, 0xe0, 0xc0, 0xf3, + 0x17, 0x2d, 0x7e, 0x11, 0xd3, 0x7a, 0x01, 0x59, 0x6e, 0x62, 0x07, 0x51, 0x45, 0xf2, 0x17, 0x36, + 0xa0, 0x52, 0xd6, 0xa7, 0x53, 0xd0, 0xf7, 0xe6, 0xb8, 0x65, 0x7e, 0xec, 0xf2, 0xbd, 0xdd, 0x90, + 0x66, 0xcf, 0x9f, 0x4f, 0xa9, 0x76, 0x5f, 0xa5, 0x0c, 0x15, 0x66, 0xc2, 0xab, 0x58, 0xa4, 0x62, + 0x5f, 0x60, 0x0a, 0x56, 0xe4, 0xf2, 0x36, 0x45, 0xd1, 0xe8, 0x54, 0x1e, 0xfa, 0x2e, 0x1f, 0x7f, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x57, 0x7d, 0x86, 0xd4, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.validate.go new file mode 100644 index 0000000000..3a74195817 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.validate.go @@ -0,0 +1,164 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/dynamic_job.proto + +package core + +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 _dynamic_job_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 DynamicJobSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *DynamicJobSpec) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNodes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Nodes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for MinSuccesses + + for idx, item := range m.GetOutputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Outputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetSubworkflows() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Subworkflows[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// DynamicJobSpecValidationError is the validation error returned by +// DynamicJobSpec.Validate if the designated constraints aren't met. +type DynamicJobSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DynamicJobSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DynamicJobSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DynamicJobSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DynamicJobSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DynamicJobSpecValidationError) ErrorName() string { return "DynamicJobSpecValidationError" } + +// Error satisfies the builtin error interface +func (e DynamicJobSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDynamicJobSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DynamicJobSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DynamicJobSpecValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json new file mode 100644 index 0000000000..7b0edff585 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/dynamic_job.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go new file mode 100644 index 0000000000..6e12d3b805 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go @@ -0,0 +1,188 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/errors.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Defines a generic error type that dictates the behavior of the retry strategy. +type ContainerError_Kind int32 + +const ( + ContainerError_NON_RECOVERABLE ContainerError_Kind = 0 + ContainerError_RECOVERABLE ContainerError_Kind = 1 +) + +var ContainerError_Kind_name = map[int32]string{ + 0: "NON_RECOVERABLE", + 1: "RECOVERABLE", +} + +var ContainerError_Kind_value = map[string]int32{ + "NON_RECOVERABLE": 0, + "RECOVERABLE": 1, +} + +func (x ContainerError_Kind) String() string { + return proto.EnumName(ContainerError_Kind_name, int32(x)) +} + +func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c2a49b99f342b879, []int{0, 0} +} + +// Error message to propagate detailed errors from container executions to the execution +// engine. +type ContainerError struct { + // A simplified code for errors, so that we can provide a glossary of all possible errors. + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + // A detailed error message. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + Kind ContainerError_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=flyteidl.core.ContainerError_Kind" json:"kind,omitempty"` + // Defines the origin of the error (system, user, unknown). + Origin ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=origin,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"origin,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContainerError) Reset() { *m = ContainerError{} } +func (m *ContainerError) String() string { return proto.CompactTextString(m) } +func (*ContainerError) ProtoMessage() {} +func (*ContainerError) Descriptor() ([]byte, []int) { + return fileDescriptor_c2a49b99f342b879, []int{0} +} + +func (m *ContainerError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContainerError.Unmarshal(m, b) +} +func (m *ContainerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContainerError.Marshal(b, m, deterministic) +} +func (m *ContainerError) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContainerError.Merge(m, src) +} +func (m *ContainerError) XXX_Size() int { + return xxx_messageInfo_ContainerError.Size(m) +} +func (m *ContainerError) XXX_DiscardUnknown() { + xxx_messageInfo_ContainerError.DiscardUnknown(m) +} + +var xxx_messageInfo_ContainerError proto.InternalMessageInfo + +func (m *ContainerError) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *ContainerError) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *ContainerError) GetKind() ContainerError_Kind { + if m != nil { + return m.Kind + } + return ContainerError_NON_RECOVERABLE +} + +func (m *ContainerError) GetOrigin() ExecutionError_ErrorKind { + if m != nil { + return m.Origin + } + return ExecutionError_UNKNOWN +} + +// Defines the errors.pb file format the container can produce to communicate +// failure reasons to the execution engine. +type ErrorDocument struct { + // The error raised during execution. + Error *ContainerError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorDocument) Reset() { *m = ErrorDocument{} } +func (m *ErrorDocument) String() string { return proto.CompactTextString(m) } +func (*ErrorDocument) ProtoMessage() {} +func (*ErrorDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_c2a49b99f342b879, []int{1} +} + +func (m *ErrorDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ErrorDocument.Unmarshal(m, b) +} +func (m *ErrorDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ErrorDocument.Marshal(b, m, deterministic) +} +func (m *ErrorDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorDocument.Merge(m, src) +} +func (m *ErrorDocument) XXX_Size() int { + return xxx_messageInfo_ErrorDocument.Size(m) +} +func (m *ErrorDocument) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorDocument.DiscardUnknown(m) +} + +var xxx_messageInfo_ErrorDocument proto.InternalMessageInfo + +func (m *ErrorDocument) GetError() *ContainerError { + if m != nil { + return m.Error + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.core.ContainerError_Kind", ContainerError_Kind_name, ContainerError_Kind_value) + proto.RegisterType((*ContainerError)(nil), "flyteidl.core.ContainerError") + proto.RegisterType((*ErrorDocument)(nil), "flyteidl.core.ErrorDocument") +} + +func init() { proto.RegisterFile("flyteidl/core/errors.proto", fileDescriptor_c2a49b99f342b879) } + +var fileDescriptor_c2a49b99f342b879 = []byte{ + // 283 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xc1, 0x4b, 0xc3, 0x30, + 0x14, 0xc6, 0xad, 0xd6, 0x89, 0x6f, 0x6c, 0x93, 0x78, 0x29, 0x83, 0xc1, 0xe8, 0xc5, 0x1d, 0x34, + 0x81, 0x4d, 0x76, 0x15, 0xb7, 0xf5, 0xa4, 0x6c, 0xd0, 0x83, 0x07, 0x2f, 0xb2, 0xb6, 0x31, 0x06, + 0xd7, 0xbc, 0x91, 0xa6, 0xa0, 0x7f, 0xb0, 0xff, 0x87, 0xf4, 0xd5, 0x8a, 0xdd, 0xc1, 0x4b, 0xc8, + 0x7b, 0xef, 0xfb, 0x7d, 0x79, 0xf9, 0x60, 0xf8, 0xba, 0xfb, 0x74, 0x52, 0x67, 0x3b, 0x91, 0xa2, + 0x95, 0x42, 0x5a, 0x8b, 0xb6, 0xe0, 0x7b, 0x8b, 0x0e, 0x59, 0xaf, 0x99, 0xf1, 0x6a, 0x36, 0x1c, + 0x1d, 0x48, 0x3f, 0x64, 0x5a, 0x3a, 0x8d, 0xa6, 0x56, 0x87, 0x5f, 0x1e, 0xf4, 0x97, 0x68, 0xdc, + 0x56, 0x1b, 0x69, 0xa3, 0xca, 0x87, 0x31, 0xf0, 0x53, 0xcc, 0x64, 0xe0, 0x8d, 0xbd, 0xc9, 0x79, + 0x4c, 0x77, 0x16, 0xc0, 0x59, 0x2e, 0x8b, 0x62, 0xab, 0x64, 0x70, 0x4c, 0xed, 0xa6, 0x64, 0x73, + 0xf0, 0xdf, 0xb5, 0xc9, 0x82, 0x93, 0xb1, 0x37, 0xe9, 0x4f, 0x43, 0xde, 0x7a, 0x9d, 0xb7, 0xad, + 0xf9, 0x83, 0x36, 0x59, 0x4c, 0x7a, 0x76, 0x07, 0x1d, 0xb4, 0x5a, 0x69, 0x13, 0xf8, 0x44, 0x5e, + 0x1d, 0x90, 0x51, 0xb3, 0x68, 0x4d, 0xd2, 0x49, 0xf8, 0x0f, 0x16, 0x5e, 0x83, 0x5f, 0xd5, 0xec, + 0x12, 0x06, 0xeb, 0xcd, 0xfa, 0x25, 0x8e, 0x96, 0x9b, 0xa7, 0x28, 0xbe, 0x5f, 0x3c, 0x46, 0x17, + 0x47, 0x6c, 0x00, 0xdd, 0xbf, 0x0d, 0x2f, 0x5c, 0x41, 0x8f, 0x2c, 0x56, 0x98, 0x96, 0xb9, 0x34, + 0x8e, 0xcd, 0xe0, 0x94, 0x62, 0xa3, 0x6f, 0x76, 0xa7, 0xa3, 0x7f, 0x17, 0x8f, 0x6b, 0xed, 0x62, + 0xfe, 0x7c, 0xab, 0xb4, 0x7b, 0x2b, 0x13, 0x9e, 0x62, 0x2e, 0x88, 0x40, 0xab, 0xc4, 0x6f, 0xc4, + 0x4a, 0x1a, 0xb1, 0x4f, 0x6e, 0x14, 0x8a, 0x56, 0xea, 0x49, 0x87, 0xc2, 0x9e, 0x7d, 0x07, 0x00, + 0x00, 0xff, 0xff, 0x79, 0x84, 0xe2, 0xf9, 0xb8, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.validate.go new file mode 100644 index 0000000000..4d091b1e6d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.validate.go @@ -0,0 +1,185 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/errors.proto + +package core + +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 _errors_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 ContainerError with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ContainerError) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Code + + // no validation rules for Message + + // no validation rules for Kind + + // no validation rules for Origin + + return nil +} + +// ContainerErrorValidationError is the validation error returned by +// ContainerError.Validate if the designated constraints aren't met. +type ContainerErrorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContainerErrorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContainerErrorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContainerErrorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContainerErrorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContainerErrorValidationError) ErrorName() string { return "ContainerErrorValidationError" } + +// Error satisfies the builtin error interface +func (e ContainerErrorValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContainerError.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContainerErrorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContainerErrorValidationError{} + +// Validate checks the field values on ErrorDocument with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ErrorDocument) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ErrorDocumentValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ErrorDocumentValidationError is the validation error returned by +// ErrorDocument.Validate if the designated constraints aren't met. +type ErrorDocumentValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ErrorDocumentValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ErrorDocumentValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ErrorDocumentValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ErrorDocumentValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ErrorDocumentValidationError) ErrorName() string { return "ErrorDocumentValidationError" } + +// Error satisfies the builtin error interface +func (e ErrorDocumentValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sErrorDocument.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ErrorDocumentValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ErrorDocumentValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json new file mode 100644 index 0000000000..24332df82c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/errors.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go new file mode 100644 index 0000000000..17ce67b6cd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go @@ -0,0 +1,677 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/execution.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + 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 WorkflowExecution_Phase int32 + +const ( + WorkflowExecution_UNDEFINED WorkflowExecution_Phase = 0 + WorkflowExecution_QUEUED WorkflowExecution_Phase = 1 + WorkflowExecution_RUNNING WorkflowExecution_Phase = 2 + WorkflowExecution_SUCCEEDING WorkflowExecution_Phase = 3 + WorkflowExecution_SUCCEEDED WorkflowExecution_Phase = 4 + WorkflowExecution_FAILING WorkflowExecution_Phase = 5 + WorkflowExecution_FAILED WorkflowExecution_Phase = 6 + WorkflowExecution_ABORTED WorkflowExecution_Phase = 7 + WorkflowExecution_TIMED_OUT WorkflowExecution_Phase = 8 + WorkflowExecution_ABORTING WorkflowExecution_Phase = 9 +) + +var WorkflowExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDING", + 4: "SUCCEEDED", + 5: "FAILING", + 6: "FAILED", + 7: "ABORTED", + 8: "TIMED_OUT", + 9: "ABORTING", +} + +var WorkflowExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDING": 3, + "SUCCEEDED": 4, + "FAILING": 5, + "FAILED": 6, + "ABORTED": 7, + "TIMED_OUT": 8, + "ABORTING": 9, +} + +func (x WorkflowExecution_Phase) String() string { + return proto.EnumName(WorkflowExecution_Phase_name, int32(x)) +} + +func (WorkflowExecution_Phase) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{0, 0} +} + +type NodeExecution_Phase int32 + +const ( + NodeExecution_UNDEFINED NodeExecution_Phase = 0 + NodeExecution_QUEUED NodeExecution_Phase = 1 + NodeExecution_RUNNING NodeExecution_Phase = 2 + NodeExecution_SUCCEEDED NodeExecution_Phase = 3 + NodeExecution_FAILING NodeExecution_Phase = 4 + NodeExecution_FAILED NodeExecution_Phase = 5 + NodeExecution_ABORTED NodeExecution_Phase = 6 + NodeExecution_SKIPPED NodeExecution_Phase = 7 + NodeExecution_TIMED_OUT NodeExecution_Phase = 8 + NodeExecution_DYNAMIC_RUNNING NodeExecution_Phase = 9 + NodeExecution_RECOVERED NodeExecution_Phase = 10 +) + +var NodeExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "FAILING", + 5: "FAILED", + 6: "ABORTED", + 7: "SKIPPED", + 8: "TIMED_OUT", + 9: "DYNAMIC_RUNNING", + 10: "RECOVERED", +} + +var NodeExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "FAILING": 4, + "FAILED": 5, + "ABORTED": 6, + "SKIPPED": 7, + "TIMED_OUT": 8, + "DYNAMIC_RUNNING": 9, + "RECOVERED": 10, +} + +func (x NodeExecution_Phase) String() string { + return proto.EnumName(NodeExecution_Phase_name, int32(x)) +} + +func (NodeExecution_Phase) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{1, 0} +} + +type TaskExecution_Phase int32 + +const ( + TaskExecution_UNDEFINED TaskExecution_Phase = 0 + TaskExecution_QUEUED TaskExecution_Phase = 1 + TaskExecution_RUNNING TaskExecution_Phase = 2 + TaskExecution_SUCCEEDED TaskExecution_Phase = 3 + TaskExecution_ABORTED TaskExecution_Phase = 4 + TaskExecution_FAILED TaskExecution_Phase = 5 + // To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing + TaskExecution_INITIALIZING TaskExecution_Phase = 6 + // To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded + TaskExecution_WAITING_FOR_RESOURCES TaskExecution_Phase = 7 +) + +var TaskExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "ABORTED", + 5: "FAILED", + 6: "INITIALIZING", + 7: "WAITING_FOR_RESOURCES", +} + +var TaskExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "ABORTED": 4, + "FAILED": 5, + "INITIALIZING": 6, + "WAITING_FOR_RESOURCES": 7, +} + +func (x TaskExecution_Phase) String() string { + return proto.EnumName(TaskExecution_Phase_name, int32(x)) +} + +func (TaskExecution_Phase) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{2, 0} +} + +// Error type: System or User +type ExecutionError_ErrorKind int32 + +const ( + ExecutionError_UNKNOWN ExecutionError_ErrorKind = 0 + ExecutionError_USER ExecutionError_ErrorKind = 1 + ExecutionError_SYSTEM ExecutionError_ErrorKind = 2 +) + +var ExecutionError_ErrorKind_name = map[int32]string{ + 0: "UNKNOWN", + 1: "USER", + 2: "SYSTEM", +} + +var ExecutionError_ErrorKind_value = map[string]int32{ + "UNKNOWN": 0, + "USER": 1, + "SYSTEM": 2, +} + +func (x ExecutionError_ErrorKind) String() string { + return proto.EnumName(ExecutionError_ErrorKind_name, int32(x)) +} + +func (ExecutionError_ErrorKind) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{3, 0} +} + +type TaskLog_MessageFormat int32 + +const ( + TaskLog_UNKNOWN TaskLog_MessageFormat = 0 + TaskLog_CSV TaskLog_MessageFormat = 1 + TaskLog_JSON TaskLog_MessageFormat = 2 +) + +var TaskLog_MessageFormat_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CSV", + 2: "JSON", +} + +var TaskLog_MessageFormat_value = map[string]int32{ + "UNKNOWN": 0, + "CSV": 1, + "JSON": 2, +} + +func (x TaskLog_MessageFormat) String() string { + return proto.EnumName(TaskLog_MessageFormat_name, int32(x)) +} + +func (TaskLog_MessageFormat) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{4, 0} +} + +type QualityOfService_Tier int32 + +const ( + // Default: no quality of service specified. + QualityOfService_UNDEFINED QualityOfService_Tier = 0 + QualityOfService_HIGH QualityOfService_Tier = 1 + QualityOfService_MEDIUM QualityOfService_Tier = 2 + QualityOfService_LOW QualityOfService_Tier = 3 +) + +var QualityOfService_Tier_name = map[int32]string{ + 0: "UNDEFINED", + 1: "HIGH", + 2: "MEDIUM", + 3: "LOW", +} + +var QualityOfService_Tier_value = map[string]int32{ + "UNDEFINED": 0, + "HIGH": 1, + "MEDIUM": 2, + "LOW": 3, +} + +func (x QualityOfService_Tier) String() string { + return proto.EnumName(QualityOfService_Tier_name, int32(x)) +} + +func (QualityOfService_Tier) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{6, 0} +} + +// Indicates various phases of Workflow Execution +type WorkflowExecution struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecution) Reset() { *m = WorkflowExecution{} } +func (m *WorkflowExecution) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecution) ProtoMessage() {} +func (*WorkflowExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{0} +} + +func (m *WorkflowExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecution.Unmarshal(m, b) +} +func (m *WorkflowExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecution.Marshal(b, m, deterministic) +} +func (m *WorkflowExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecution.Merge(m, src) +} +func (m *WorkflowExecution) XXX_Size() int { + return xxx_messageInfo_WorkflowExecution.Size(m) +} +func (m *WorkflowExecution) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecution proto.InternalMessageInfo + +// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows +type NodeExecution struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecution) Reset() { *m = NodeExecution{} } +func (m *NodeExecution) String() string { return proto.CompactTextString(m) } +func (*NodeExecution) ProtoMessage() {} +func (*NodeExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{1} +} + +func (m *NodeExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecution.Unmarshal(m, b) +} +func (m *NodeExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecution.Marshal(b, m, deterministic) +} +func (m *NodeExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecution.Merge(m, src) +} +func (m *NodeExecution) XXX_Size() int { + return xxx_messageInfo_NodeExecution.Size(m) +} +func (m *NodeExecution) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecution proto.InternalMessageInfo + +// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +// but this is the cumulative list that customers may want to know about for their task. +type TaskExecution struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecution) Reset() { *m = TaskExecution{} } +func (m *TaskExecution) String() string { return proto.CompactTextString(m) } +func (*TaskExecution) ProtoMessage() {} +func (*TaskExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{2} +} + +func (m *TaskExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecution.Unmarshal(m, b) +} +func (m *TaskExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecution.Marshal(b, m, deterministic) +} +func (m *TaskExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecution.Merge(m, src) +} +func (m *TaskExecution) XXX_Size() int { + return xxx_messageInfo_TaskExecution.Size(m) +} +func (m *TaskExecution) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecution proto.InternalMessageInfo + +// Represents the error message from the execution. +type ExecutionError struct { + // Error code indicates a grouping of a type of error. + // More Info: + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + // Detailed description of the error - including stack trace. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // Full error contents accessible via a URI + ErrorUri string `protobuf:"bytes,3,opt,name=error_uri,json=errorUri,proto3" json:"error_uri,omitempty"` + Kind ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=kind,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"kind,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionError) Reset() { *m = ExecutionError{} } +func (m *ExecutionError) String() string { return proto.CompactTextString(m) } +func (*ExecutionError) ProtoMessage() {} +func (*ExecutionError) Descriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{3} +} + +func (m *ExecutionError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionError.Unmarshal(m, b) +} +func (m *ExecutionError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionError.Marshal(b, m, deterministic) +} +func (m *ExecutionError) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionError.Merge(m, src) +} +func (m *ExecutionError) XXX_Size() int { + return xxx_messageInfo_ExecutionError.Size(m) +} +func (m *ExecutionError) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionError.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionError proto.InternalMessageInfo + +func (m *ExecutionError) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *ExecutionError) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *ExecutionError) GetErrorUri() string { + if m != nil { + return m.ErrorUri + } + return "" +} + +func (m *ExecutionError) GetKind() ExecutionError_ErrorKind { + if m != nil { + return m.Kind + } + return ExecutionError_UNKNOWN +} + +// Log information for the task that is specific to a log sink +// When our log story is flushed out, we may have more metadata here like log link expiry +type TaskLog struct { + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + MessageFormat TaskLog_MessageFormat `protobuf:"varint,3,opt,name=message_format,json=messageFormat,proto3,enum=flyteidl.core.TaskLog_MessageFormat" json:"message_format,omitempty"` + Ttl *duration.Duration `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskLog) Reset() { *m = TaskLog{} } +func (m *TaskLog) String() string { return proto.CompactTextString(m) } +func (*TaskLog) ProtoMessage() {} +func (*TaskLog) Descriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{4} +} + +func (m *TaskLog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskLog.Unmarshal(m, b) +} +func (m *TaskLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskLog.Marshal(b, m, deterministic) +} +func (m *TaskLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskLog.Merge(m, src) +} +func (m *TaskLog) XXX_Size() int { + return xxx_messageInfo_TaskLog.Size(m) +} +func (m *TaskLog) XXX_DiscardUnknown() { + xxx_messageInfo_TaskLog.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskLog proto.InternalMessageInfo + +func (m *TaskLog) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *TaskLog) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *TaskLog) GetMessageFormat() TaskLog_MessageFormat { + if m != nil { + return m.MessageFormat + } + return TaskLog_UNKNOWN +} + +func (m *TaskLog) GetTtl() *duration.Duration { + if m != nil { + return m.Ttl + } + return nil +} + +// Represents customized execution run-time attributes. +type QualityOfServiceSpec struct { + // Indicates how much queueing delay an execution can tolerate. + QueueingBudget *duration.Duration `protobuf:"bytes,1,opt,name=queueing_budget,json=queueingBudget,proto3" json:"queueing_budget,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QualityOfServiceSpec) Reset() { *m = QualityOfServiceSpec{} } +func (m *QualityOfServiceSpec) String() string { return proto.CompactTextString(m) } +func (*QualityOfServiceSpec) ProtoMessage() {} +func (*QualityOfServiceSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{5} +} + +func (m *QualityOfServiceSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QualityOfServiceSpec.Unmarshal(m, b) +} +func (m *QualityOfServiceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QualityOfServiceSpec.Marshal(b, m, deterministic) +} +func (m *QualityOfServiceSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_QualityOfServiceSpec.Merge(m, src) +} +func (m *QualityOfServiceSpec) XXX_Size() int { + return xxx_messageInfo_QualityOfServiceSpec.Size(m) +} +func (m *QualityOfServiceSpec) XXX_DiscardUnknown() { + xxx_messageInfo_QualityOfServiceSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_QualityOfServiceSpec proto.InternalMessageInfo + +func (m *QualityOfServiceSpec) GetQueueingBudget() *duration.Duration { + if m != nil { + return m.QueueingBudget + } + return nil +} + +// Indicates the priority of an execution. +type QualityOfService struct { + // Types that are valid to be assigned to Designation: + // *QualityOfService_Tier_ + // *QualityOfService_Spec + Designation isQualityOfService_Designation `protobuf_oneof:"designation"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QualityOfService) Reset() { *m = QualityOfService{} } +func (m *QualityOfService) String() string { return proto.CompactTextString(m) } +func (*QualityOfService) ProtoMessage() {} +func (*QualityOfService) Descriptor() ([]byte, []int) { + return fileDescriptor_1523842fd9084ee4, []int{6} +} + +func (m *QualityOfService) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QualityOfService.Unmarshal(m, b) +} +func (m *QualityOfService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QualityOfService.Marshal(b, m, deterministic) +} +func (m *QualityOfService) XXX_Merge(src proto.Message) { + xxx_messageInfo_QualityOfService.Merge(m, src) +} +func (m *QualityOfService) XXX_Size() int { + return xxx_messageInfo_QualityOfService.Size(m) +} +func (m *QualityOfService) XXX_DiscardUnknown() { + xxx_messageInfo_QualityOfService.DiscardUnknown(m) +} + +var xxx_messageInfo_QualityOfService proto.InternalMessageInfo + +type isQualityOfService_Designation interface { + isQualityOfService_Designation() +} + +type QualityOfService_Tier_ struct { + Tier QualityOfService_Tier `protobuf:"varint,1,opt,name=tier,proto3,enum=flyteidl.core.QualityOfService_Tier,oneof"` +} + +type QualityOfService_Spec struct { + Spec *QualityOfServiceSpec `protobuf:"bytes,2,opt,name=spec,proto3,oneof"` +} + +func (*QualityOfService_Tier_) isQualityOfService_Designation() {} + +func (*QualityOfService_Spec) isQualityOfService_Designation() {} + +func (m *QualityOfService) GetDesignation() isQualityOfService_Designation { + if m != nil { + return m.Designation + } + return nil +} + +func (m *QualityOfService) GetTier() QualityOfService_Tier { + if x, ok := m.GetDesignation().(*QualityOfService_Tier_); ok { + return x.Tier + } + return QualityOfService_UNDEFINED +} + +func (m *QualityOfService) GetSpec() *QualityOfServiceSpec { + if x, ok := m.GetDesignation().(*QualityOfService_Spec); ok { + return x.Spec + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*QualityOfService) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*QualityOfService_Tier_)(nil), + (*QualityOfService_Spec)(nil), + } +} + +func init() { + proto.RegisterEnum("flyteidl.core.WorkflowExecution_Phase", WorkflowExecution_Phase_name, WorkflowExecution_Phase_value) + proto.RegisterEnum("flyteidl.core.NodeExecution_Phase", NodeExecution_Phase_name, NodeExecution_Phase_value) + proto.RegisterEnum("flyteidl.core.TaskExecution_Phase", TaskExecution_Phase_name, TaskExecution_Phase_value) + proto.RegisterEnum("flyteidl.core.ExecutionError_ErrorKind", ExecutionError_ErrorKind_name, ExecutionError_ErrorKind_value) + proto.RegisterEnum("flyteidl.core.TaskLog_MessageFormat", TaskLog_MessageFormat_name, TaskLog_MessageFormat_value) + proto.RegisterEnum("flyteidl.core.QualityOfService_Tier", QualityOfService_Tier_name, QualityOfService_Tier_value) + proto.RegisterType((*WorkflowExecution)(nil), "flyteidl.core.WorkflowExecution") + proto.RegisterType((*NodeExecution)(nil), "flyteidl.core.NodeExecution") + proto.RegisterType((*TaskExecution)(nil), "flyteidl.core.TaskExecution") + proto.RegisterType((*ExecutionError)(nil), "flyteidl.core.ExecutionError") + proto.RegisterType((*TaskLog)(nil), "flyteidl.core.TaskLog") + proto.RegisterType((*QualityOfServiceSpec)(nil), "flyteidl.core.QualityOfServiceSpec") + proto.RegisterType((*QualityOfService)(nil), "flyteidl.core.QualityOfService") +} + +func init() { proto.RegisterFile("flyteidl/core/execution.proto", fileDescriptor_1523842fd9084ee4) } + +var fileDescriptor_1523842fd9084ee4 = []byte{ + // 730 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x5f, 0x6e, 0xda, 0x4a, + 0x14, 0xc6, 0x63, 0x70, 0xf8, 0x73, 0x08, 0x64, 0xee, 0xdc, 0x7b, 0x25, 0x72, 0xaf, 0x5a, 0x45, + 0x6e, 0xa5, 0x46, 0xaa, 0x6a, 0x4b, 0x34, 0xaa, 0xd4, 0xf6, 0x09, 0xf0, 0x90, 0xb8, 0x80, 0x9d, + 0xd8, 0x38, 0x28, 0x79, 0x41, 0x80, 0x07, 0xc7, 0x0a, 0x30, 0xd4, 0xd8, 0x6d, 0xf3, 0xde, 0x0d, + 0xf4, 0xa5, 0x2b, 0xa8, 0xd4, 0x1d, 0x74, 0x0d, 0x7d, 0xea, 0x02, 0xba, 0x9a, 0x6a, 0x06, 0x9c, + 0x00, 0xad, 0x5a, 0x55, 0xea, 0x0b, 0x9a, 0x33, 0xe7, 0x7c, 0x67, 0x7e, 0xdf, 0xc1, 0x33, 0x70, + 0x67, 0x34, 0xbe, 0x8e, 0x68, 0xe0, 0x8d, 0xb5, 0x21, 0x0b, 0xa9, 0x46, 0xdf, 0xd0, 0x61, 0x1c, + 0x05, 0x6c, 0xaa, 0xce, 0x42, 0x16, 0x31, 0x5c, 0x4c, 0xd2, 0x2a, 0x4f, 0xff, 0x77, 0xd7, 0x67, + 0xcc, 0x1f, 0x53, 0x4d, 0x24, 0x07, 0xf1, 0x48, 0xf3, 0xe2, 0xb0, 0x7f, 0x5b, 0xae, 0x7c, 0x94, + 0xe0, 0xaf, 0x2e, 0x0b, 0xaf, 0x46, 0x63, 0xf6, 0x9a, 0x24, 0xad, 0x94, 0x77, 0x12, 0x6c, 0x9f, + 0x5c, 0xf6, 0xe7, 0x14, 0x17, 0x21, 0xef, 0x9a, 0x3a, 0x69, 0x18, 0x26, 0xd1, 0xd1, 0x16, 0x06, + 0xc8, 0x9c, 0xba, 0xc4, 0x25, 0x3a, 0x92, 0x70, 0x01, 0xb2, 0xb6, 0x6b, 0x9a, 0x86, 0x79, 0x84, + 0x52, 0xb8, 0x04, 0xe0, 0xb8, 0xf5, 0x3a, 0x21, 0x3a, 0x8f, 0xd3, 0x5c, 0xb7, 0x8c, 0x89, 0x8e, + 0x64, 0x5e, 0xdb, 0xa8, 0x1a, 0x2d, 0x9e, 0xdb, 0xe6, 0x4d, 0x78, 0x40, 0x74, 0x94, 0xe1, 0x89, + 0x6a, 0xcd, 0xb2, 0x3b, 0x44, 0x47, 0x59, 0x2e, 0xea, 0x18, 0x6d, 0xa2, 0xf7, 0x2c, 0xb7, 0x83, + 0x72, 0x78, 0x07, 0x72, 0x22, 0xc7, 0x55, 0x79, 0xe5, 0x93, 0x04, 0x45, 0x93, 0x79, 0xf4, 0x96, + 0xf2, 0xc3, 0x6f, 0x53, 0xae, 0x51, 0xa5, 0x57, 0xa9, 0xe4, 0x15, 0xaa, 0xed, 0x55, 0x2a, 0x81, + 0xe8, 0x34, 0x8d, 0x93, 0x93, 0x1f, 0x21, 0xfe, 0x0d, 0xbb, 0xfa, 0xb9, 0x59, 0x6d, 0x1b, 0xf5, + 0x5e, 0x72, 0x4a, 0x9e, 0xd7, 0xd8, 0xa4, 0x6e, 0x9d, 0x11, 0x9b, 0xe8, 0x08, 0x94, 0xf7, 0x12, + 0x14, 0x3b, 0xfd, 0xf9, 0xd5, 0x2d, 0xf8, 0xdb, 0x3f, 0x00, 0x9e, 0xf0, 0xad, 0x83, 0x23, 0xd8, + 0x31, 0x4c, 0xa3, 0x63, 0x54, 0x5b, 0xc6, 0x05, 0x57, 0x66, 0xf0, 0x1e, 0xfc, 0xdb, 0xad, 0x1a, + 0x7c, 0x86, 0xbd, 0x86, 0x65, 0xf7, 0x6c, 0xe2, 0x58, 0xae, 0x5d, 0x27, 0x0e, 0xca, 0x2a, 0x9f, + 0x25, 0x28, 0xdd, 0x40, 0x91, 0x30, 0x64, 0x21, 0xc6, 0x20, 0x0f, 0x99, 0x47, 0xcb, 0xd2, 0xbe, + 0x74, 0x90, 0xb7, 0xc5, 0x1a, 0x97, 0x21, 0x3b, 0xa1, 0xf3, 0x79, 0xdf, 0xa7, 0xe5, 0x94, 0xd8, + 0x4e, 0x42, 0xfc, 0x3f, 0xe4, 0x29, 0x97, 0xf5, 0xe2, 0x30, 0x28, 0xa7, 0x45, 0x2e, 0x27, 0x36, + 0xdc, 0x30, 0xc0, 0xcf, 0x41, 0xbe, 0x0a, 0xa6, 0x5e, 0x59, 0xde, 0x97, 0x0e, 0x4a, 0x95, 0x07, + 0xea, 0xda, 0x77, 0xa9, 0xae, 0x9f, 0xab, 0x8a, 0xdf, 0x66, 0x30, 0xf5, 0x6c, 0x21, 0x52, 0x54, + 0xc8, 0xdf, 0x6c, 0x71, 0xb7, 0xae, 0xd9, 0x34, 0xad, 0xae, 0x89, 0xb6, 0x70, 0x0e, 0x64, 0xd7, + 0x21, 0x36, 0x92, 0xb8, 0x6f, 0xe7, 0xdc, 0xe9, 0x90, 0x36, 0x4a, 0x29, 0x5f, 0x25, 0xc8, 0xf2, + 0x19, 0xb7, 0x98, 0x8f, 0x11, 0xa4, 0x39, 0xcf, 0xc2, 0x02, 0x5f, 0x72, 0x57, 0xd3, 0xfe, 0x24, + 0xc1, 0x17, 0x6b, 0xdc, 0x84, 0xd2, 0xd2, 0x46, 0x6f, 0xc4, 0xc2, 0x49, 0x3f, 0x12, 0x06, 0x4a, + 0x95, 0xfb, 0x1b, 0xa0, 0xcb, 0xae, 0x6a, 0x7b, 0x51, 0xdc, 0x10, 0xb5, 0x76, 0x71, 0xb2, 0x1a, + 0xe2, 0x87, 0x90, 0x8e, 0xa2, 0xb1, 0xb0, 0x5a, 0xa8, 0xec, 0xa9, 0x8b, 0x3b, 0xa7, 0x26, 0x77, + 0x4e, 0xd5, 0x97, 0x77, 0xce, 0xe6, 0x55, 0x8a, 0x06, 0xc5, 0xb5, 0x66, 0xeb, 0xfe, 0xb2, 0x90, + 0xae, 0x3b, 0x67, 0x48, 0xe2, 0x46, 0x5f, 0x38, 0x96, 0x89, 0x52, 0xca, 0x05, 0xfc, 0x73, 0x1a, + 0xf7, 0xc7, 0x41, 0x74, 0x6d, 0x8d, 0x1c, 0x1a, 0xbe, 0x0a, 0x86, 0xd4, 0x99, 0xd1, 0x21, 0xae, + 0xc1, 0xee, 0xcb, 0x98, 0xc6, 0x34, 0x98, 0xfa, 0xbd, 0x41, 0xec, 0xf9, 0x34, 0x12, 0xa6, 0x7f, + 0x4a, 0x50, 0x4a, 0x14, 0x35, 0x21, 0x50, 0xbe, 0x48, 0x80, 0x36, 0x9b, 0xe3, 0x67, 0x20, 0x47, + 0x01, 0x0d, 0x45, 0xb7, 0xef, 0x27, 0xb2, 0x59, 0xae, 0x76, 0x02, 0x1a, 0x1e, 0x6f, 0xd9, 0x42, + 0x83, 0x9f, 0x82, 0x3c, 0x9f, 0xd1, 0xa1, 0x98, 0x75, 0xa1, 0x72, 0xef, 0x17, 0x5a, 0xee, 0x83, + 0x4b, 0xb9, 0x44, 0x39, 0x04, 0x99, 0xb7, 0xda, 0xbc, 0x14, 0x39, 0x90, 0x8f, 0x8d, 0xa3, 0xe3, + 0xc5, 0x3f, 0xde, 0x26, 0xba, 0xe1, 0xb6, 0x51, 0x8a, 0xcf, 0xa9, 0x65, 0x75, 0x51, 0xba, 0x56, + 0x84, 0x82, 0x47, 0xe7, 0x81, 0x3f, 0x15, 0x06, 0x6b, 0x4f, 0x2e, 0x0e, 0xfd, 0x20, 0xba, 0x8c, + 0x07, 0xea, 0x90, 0x4d, 0x34, 0x71, 0x3a, 0x0b, 0x7d, 0xed, 0xe6, 0xd1, 0xf4, 0xe9, 0x54, 0x9b, + 0x0d, 0x1e, 0xf9, 0x4c, 0x5b, 0x7b, 0x47, 0x07, 0x19, 0x31, 0xab, 0xc7, 0xdf, 0x02, 0x00, 0x00, + 0xff, 0xff, 0xca, 0x49, 0xc6, 0xee, 0x5f, 0x05, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.validate.go new file mode 100644 index 0000000000..202cbc6db6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.validate.go @@ -0,0 +1,548 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/execution.proto + +package core + +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 _execution_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 WorkflowExecution with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowExecution) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowExecutionValidationError is the validation error returned by +// WorkflowExecution.Validate if the designated constraints aren't met. +type WorkflowExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionValidationError) ErrorName() string { + return "WorkflowExecutionValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionValidationError{} + +// Validate checks the field values on NodeExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *NodeExecution) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// NodeExecutionValidationError is the validation error returned by +// NodeExecution.Validate if the designated constraints aren't met. +type NodeExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionValidationError) ErrorName() string { return "NodeExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e NodeExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionValidationError{} + +// Validate checks the field values on TaskExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskExecution) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// TaskExecutionValidationError is the validation error returned by +// TaskExecution.Validate if the designated constraints aren't met. +type TaskExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionValidationError) ErrorName() string { return "TaskExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e TaskExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionValidationError{} + +// Validate checks the field values on ExecutionError with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ExecutionError) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Code + + // no validation rules for Message + + // no validation rules for ErrorUri + + // no validation rules for Kind + + return nil +} + +// ExecutionErrorValidationError is the validation error returned by +// ExecutionError.Validate if the designated constraints aren't met. +type ExecutionErrorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionErrorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionErrorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionErrorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionErrorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionErrorValidationError) ErrorName() string { return "ExecutionErrorValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionErrorValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionError.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionErrorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionErrorValidationError{} + +// Validate checks the field values on TaskLog with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskLog) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Uri + + // no validation rules for Name + + // no validation rules for MessageFormat + + if v, ok := interface{}(m.GetTtl()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskLogValidationError{ + field: "Ttl", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskLogValidationError is the validation error returned by TaskLog.Validate +// if the designated constraints aren't met. +type TaskLogValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskLogValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskLogValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskLogValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskLogValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskLogValidationError) ErrorName() string { return "TaskLogValidationError" } + +// Error satisfies the builtin error interface +func (e TaskLogValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskLog.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskLogValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskLogValidationError{} + +// Validate checks the field values on QualityOfServiceSpec with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *QualityOfServiceSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetQueueingBudget()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return QualityOfServiceSpecValidationError{ + field: "QueueingBudget", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// QualityOfServiceSpecValidationError is the validation error returned by +// QualityOfServiceSpec.Validate if the designated constraints aren't met. +type QualityOfServiceSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e QualityOfServiceSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e QualityOfServiceSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e QualityOfServiceSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e QualityOfServiceSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e QualityOfServiceSpecValidationError) ErrorName() string { + return "QualityOfServiceSpecValidationError" +} + +// Error satisfies the builtin error interface +func (e QualityOfServiceSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sQualityOfServiceSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = QualityOfServiceSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = QualityOfServiceSpecValidationError{} + +// Validate checks the field values on QualityOfService with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *QualityOfService) Validate() error { + if m == nil { + return nil + } + + switch m.Designation.(type) { + + case *QualityOfService_Tier_: + // no validation rules for Tier + + case *QualityOfService_Spec: + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return QualityOfServiceValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// QualityOfServiceValidationError is the validation error returned by +// QualityOfService.Validate if the designated constraints aren't met. +type QualityOfServiceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e QualityOfServiceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e QualityOfServiceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e QualityOfServiceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e QualityOfServiceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e QualityOfServiceValidationError) ErrorName() string { return "QualityOfServiceValidationError" } + +// Error satisfies the builtin error interface +func (e QualityOfServiceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sQualityOfService.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = QualityOfServiceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = QualityOfServiceValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json new file mode 100644 index 0000000000..920ed79fa4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go new file mode 100644 index 0000000000..0fc64f4902 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go @@ -0,0 +1,396 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/identifier.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Indicates a resource type within Flyte. +type ResourceType int32 + +const ( + ResourceType_UNSPECIFIED ResourceType = 0 + ResourceType_TASK ResourceType = 1 + ResourceType_WORKFLOW ResourceType = 2 + ResourceType_LAUNCH_PLAN ResourceType = 3 + // A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. + // Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects + // in a similar manner to other Flyte objects + ResourceType_DATASET ResourceType = 4 +) + +var ResourceType_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "TASK", + 2: "WORKFLOW", + 3: "LAUNCH_PLAN", + 4: "DATASET", +} + +var ResourceType_value = map[string]int32{ + "UNSPECIFIED": 0, + "TASK": 1, + "WORKFLOW": 2, + "LAUNCH_PLAN": 3, + "DATASET": 4, +} + +func (x ResourceType) String() string { + return proto.EnumName(ResourceType_name, int32(x)) +} + +func (ResourceType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_adfa846a86e1fa0c, []int{0} +} + +// Encapsulation of fields that uniquely identifies a Flyte resource. +type Identifier struct { + // Identifies the specific type of resource that this identifier corresponds to. + ResourceType ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Specific version of the resource. + Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Identifier) Reset() { *m = Identifier{} } +func (m *Identifier) String() string { return proto.CompactTextString(m) } +func (*Identifier) ProtoMessage() {} +func (*Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_adfa846a86e1fa0c, []int{0} +} + +func (m *Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Identifier.Unmarshal(m, b) +} +func (m *Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Identifier.Marshal(b, m, deterministic) +} +func (m *Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_Identifier.Merge(m, src) +} +func (m *Identifier) XXX_Size() int { + return xxx_messageInfo_Identifier.Size(m) +} +func (m *Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_Identifier proto.InternalMessageInfo + +func (m *Identifier) GetResourceType() ResourceType { + if m != nil { + return m.ResourceType + } + return ResourceType_UNSPECIFIED +} + +func (m *Identifier) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *Identifier) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *Identifier) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Identifier) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +// Encapsulation of fields that uniquely identifies a Flyte workflow execution +type WorkflowExecutionIdentifier struct { + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User or system provided value for the resource. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionIdentifier) Reset() { *m = WorkflowExecutionIdentifier{} } +func (m *WorkflowExecutionIdentifier) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionIdentifier) ProtoMessage() {} +func (*WorkflowExecutionIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_adfa846a86e1fa0c, []int{1} +} + +func (m *WorkflowExecutionIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionIdentifier.Unmarshal(m, b) +} +func (m *WorkflowExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionIdentifier.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionIdentifier.Merge(m, src) +} +func (m *WorkflowExecutionIdentifier) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionIdentifier.Size(m) +} +func (m *WorkflowExecutionIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionIdentifier proto.InternalMessageInfo + +func (m *WorkflowExecutionIdentifier) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *WorkflowExecutionIdentifier) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *WorkflowExecutionIdentifier) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Encapsulation of fields that identify a Flyte node execution entity. +type NodeExecutionIdentifier struct { + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionIdentifier) Reset() { *m = NodeExecutionIdentifier{} } +func (m *NodeExecutionIdentifier) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionIdentifier) ProtoMessage() {} +func (*NodeExecutionIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_adfa846a86e1fa0c, []int{2} +} + +func (m *NodeExecutionIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionIdentifier.Unmarshal(m, b) +} +func (m *NodeExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionIdentifier.Marshal(b, m, deterministic) +} +func (m *NodeExecutionIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionIdentifier.Merge(m, src) +} +func (m *NodeExecutionIdentifier) XXX_Size() int { + return xxx_messageInfo_NodeExecutionIdentifier.Size(m) +} +func (m *NodeExecutionIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionIdentifier proto.InternalMessageInfo + +func (m *NodeExecutionIdentifier) GetNodeId() string { + if m != nil { + return m.NodeId + } + return "" +} + +func (m *NodeExecutionIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +// Encapsulation of fields that identify a Flyte task execution entity. +type TaskExecutionIdentifier struct { + TaskId *Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + NodeExecutionId *NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionIdentifier) Reset() { *m = TaskExecutionIdentifier{} } +func (m *TaskExecutionIdentifier) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionIdentifier) ProtoMessage() {} +func (*TaskExecutionIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_adfa846a86e1fa0c, []int{3} +} + +func (m *TaskExecutionIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionIdentifier.Unmarshal(m, b) +} +func (m *TaskExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionIdentifier.Marshal(b, m, deterministic) +} +func (m *TaskExecutionIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionIdentifier.Merge(m, src) +} +func (m *TaskExecutionIdentifier) XXX_Size() int { + return xxx_messageInfo_TaskExecutionIdentifier.Size(m) +} +func (m *TaskExecutionIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionIdentifier proto.InternalMessageInfo + +func (m *TaskExecutionIdentifier) GetTaskId() *Identifier { + if m != nil { + return m.TaskId + } + return nil +} + +func (m *TaskExecutionIdentifier) GetNodeExecutionId() *NodeExecutionIdentifier { + if m != nil { + return m.NodeExecutionId + } + return nil +} + +func (m *TaskExecutionIdentifier) GetRetryAttempt() uint32 { + if m != nil { + return m.RetryAttempt + } + return 0 +} + +// Encapsulation of fields the uniquely identify a signal. +type SignalIdentifier struct { + // Unique identifier for a signal. + SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // Identifies the Flyte workflow execution this signal belongs to. + ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignalIdentifier) Reset() { *m = SignalIdentifier{} } +func (m *SignalIdentifier) String() string { return proto.CompactTextString(m) } +func (*SignalIdentifier) ProtoMessage() {} +func (*SignalIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_adfa846a86e1fa0c, []int{4} +} + +func (m *SignalIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignalIdentifier.Unmarshal(m, b) +} +func (m *SignalIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignalIdentifier.Marshal(b, m, deterministic) +} +func (m *SignalIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalIdentifier.Merge(m, src) +} +func (m *SignalIdentifier) XXX_Size() int { + return xxx_messageInfo_SignalIdentifier.Size(m) +} +func (m *SignalIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_SignalIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalIdentifier proto.InternalMessageInfo + +func (m *SignalIdentifier) GetSignalId() string { + if m != nil { + return m.SignalId + } + return "" +} + +func (m *SignalIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.core.ResourceType", ResourceType_name, ResourceType_value) + proto.RegisterType((*Identifier)(nil), "flyteidl.core.Identifier") + proto.RegisterType((*WorkflowExecutionIdentifier)(nil), "flyteidl.core.WorkflowExecutionIdentifier") + proto.RegisterType((*NodeExecutionIdentifier)(nil), "flyteidl.core.NodeExecutionIdentifier") + proto.RegisterType((*TaskExecutionIdentifier)(nil), "flyteidl.core.TaskExecutionIdentifier") + proto.RegisterType((*SignalIdentifier)(nil), "flyteidl.core.SignalIdentifier") +} + +func init() { proto.RegisterFile("flyteidl/core/identifier.proto", fileDescriptor_adfa846a86e1fa0c) } + +var fileDescriptor_adfa846a86e1fa0c = []byte{ + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xc5, 0x69, 0x48, 0xd2, 0x49, 0x42, 0xcd, 0x1e, 0x88, 0x51, 0x24, 0x54, 0x19, 0x09, 0x55, + 0x95, 0xb0, 0xa5, 0x80, 0x38, 0x63, 0xda, 0x54, 0x58, 0x0d, 0x69, 0xe5, 0x38, 0x8a, 0xc4, 0x25, + 0x72, 0xec, 0x89, 0x59, 0x92, 0xec, 0x5a, 0xeb, 0x0d, 0xe0, 0x0b, 0x12, 0x3f, 0xc4, 0x67, 0xf0, + 0x5d, 0x68, 0x5d, 0xa7, 0x75, 0xa2, 0x14, 0x2e, 0xbd, 0x79, 0xe6, 0xbd, 0x9d, 0xf7, 0x66, 0x3c, + 0x03, 0x2f, 0xe6, 0xcb, 0x4c, 0x22, 0x8d, 0x96, 0x76, 0xc8, 0x05, 0xda, 0x34, 0x42, 0x26, 0xe9, + 0x9c, 0xa2, 0xb0, 0x12, 0xc1, 0x25, 0x27, 0xed, 0x0d, 0x6e, 0x29, 0xdc, 0xfc, 0xad, 0x01, 0xb8, + 0xb7, 0x1c, 0xf2, 0x1e, 0xda, 0x02, 0x53, 0xbe, 0x16, 0x21, 0x4e, 0x65, 0x96, 0xa0, 0xa1, 0x1d, + 0x6b, 0x27, 0x4f, 0x7a, 0x5d, 0x6b, 0xeb, 0x95, 0xe5, 0x15, 0x1c, 0x3f, 0x4b, 0xd0, 0x6b, 0x89, + 0x52, 0x44, 0x0c, 0xa8, 0x27, 0x82, 0x7f, 0xc5, 0x50, 0x1a, 0x95, 0x63, 0xed, 0xe4, 0xd0, 0xdb, + 0x84, 0xe4, 0x19, 0xd4, 0x22, 0xbe, 0x0a, 0x28, 0x33, 0x0e, 0x72, 0xa0, 0x88, 0x08, 0x81, 0x2a, + 0x0b, 0x56, 0x68, 0x54, 0xf3, 0x6c, 0xfe, 0xad, 0xaa, 0x7c, 0x43, 0x91, 0x52, 0xce, 0x8c, 0xc7, + 0x37, 0x55, 0x8a, 0xd0, 0x0c, 0xa1, 0x3b, 0xe1, 0x62, 0x31, 0x5f, 0xf2, 0xef, 0xfd, 0x1f, 0x18, + 0xae, 0x25, 0xe5, 0xac, 0xd4, 0x40, 0x49, 0x5e, 0xbb, 0x4f, 0xbe, 0xf2, 0x3f, 0x79, 0xf3, 0x97, + 0x06, 0x9d, 0x21, 0x8f, 0x70, 0x9f, 0x42, 0x07, 0xea, 0x8c, 0x47, 0x38, 0xa5, 0x51, 0xa1, 0x50, + 0x53, 0xa1, 0x1b, 0x91, 0x4f, 0xd0, 0xc2, 0x0d, 0x5f, 0xa1, 0x4a, 0xa6, 0xd9, 0x3b, 0xdd, 0x19, + 0xdd, 0x3f, 0xcc, 0x7b, 0x4d, 0xbc, 0x4b, 0x9a, 0x7f, 0x34, 0xe8, 0xf8, 0x41, 0xba, 0xd8, 0xe7, + 0xa1, 0x07, 0x75, 0x19, 0xa4, 0x8b, 0x8d, 0x87, 0x66, 0xef, 0xf9, 0x8e, 0x4a, 0xa9, 0x68, 0x4d, + 0x31, 0xdd, 0x88, 0x78, 0xf0, 0x34, 0xf7, 0xbd, 0xc7, 0xe3, 0xab, 0x9d, 0xd7, 0xf7, 0xb4, 0xee, + 0x1d, 0xb1, 0x6d, 0x80, 0xbc, 0x54, 0xeb, 0x22, 0x45, 0x36, 0x0d, 0xa4, 0xc4, 0x55, 0x22, 0xf3, + 0x3f, 0xdb, 0x56, 0x1b, 0x21, 0x45, 0xe6, 0xdc, 0xe4, 0xcc, 0x9f, 0xa0, 0x8f, 0x68, 0xcc, 0x82, + 0x65, 0xa9, 0x81, 0x2e, 0x1c, 0xa6, 0x79, 0xee, 0x6e, 0x8c, 0x8d, 0xb4, 0x20, 0x3d, 0xf0, 0x20, + 0x4f, 0xc7, 0xd0, 0x2a, 0xef, 0x2b, 0x39, 0x82, 0xe6, 0x78, 0x38, 0xba, 0xee, 0x9f, 0xb9, 0x17, + 0x6e, 0xff, 0x5c, 0x7f, 0x44, 0x1a, 0x50, 0xf5, 0x9d, 0xd1, 0xa5, 0xae, 0x91, 0x16, 0x34, 0x26, + 0x57, 0xde, 0xe5, 0xc5, 0xe0, 0x6a, 0xa2, 0x57, 0x14, 0x71, 0xe0, 0x8c, 0x87, 0x67, 0x1f, 0xa7, + 0xd7, 0x03, 0x67, 0xa8, 0x1f, 0x90, 0x26, 0xd4, 0xcf, 0x1d, 0xdf, 0x19, 0xf5, 0x7d, 0xbd, 0xfa, + 0xe1, 0xdd, 0xe7, 0xb7, 0x31, 0x95, 0x5f, 0xd6, 0x33, 0x2b, 0xe4, 0x2b, 0x3b, 0xf7, 0xc6, 0x45, + 0x6c, 0xdf, 0x9e, 0x5f, 0x8c, 0xcc, 0x4e, 0x66, 0xaf, 0x63, 0x6e, 0x6f, 0x5d, 0xe4, 0xac, 0x96, + 0xdf, 0xe1, 0x9b, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x5c, 0x4c, 0x03, 0xa9, 0x03, 0x00, + 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.validate.go new file mode 100644 index 0000000000..ab319a070f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.validate.go @@ -0,0 +1,430 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/identifier.proto + +package core + +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 _identifier_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 Identifier with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Identifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + // no validation rules for Version + + return nil +} + +// IdentifierValidationError is the validation error returned by +// Identifier.Validate if the designated constraints aren't met. +type IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IdentifierValidationError) ErrorName() string { return "IdentifierValidationError" } + +// Error satisfies the builtin error interface +func (e IdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IdentifierValidationError{} + +// Validate checks the field values on WorkflowExecutionIdentifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionIdentifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + return nil +} + +// WorkflowExecutionIdentifierValidationError is the validation error returned +// by WorkflowExecutionIdentifier.Validate if the designated constraints +// aren't met. +type WorkflowExecutionIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionIdentifierValidationError) ErrorName() string { + return "WorkflowExecutionIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionIdentifierValidationError{} + +// Validate checks the field values on NodeExecutionIdentifier with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionIdentifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NodeId + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionIdentifierValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionIdentifierValidationError is the validation error returned by +// NodeExecutionIdentifier.Validate if the designated constraints aren't met. +type NodeExecutionIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionIdentifierValidationError) ErrorName() string { + return "NodeExecutionIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionIdentifierValidationError{} + +// Validate checks the field values on TaskExecutionIdentifier with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionIdentifier) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTaskId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionIdentifierValidationError{ + field: "TaskId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetNodeExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionIdentifierValidationError{ + field: "NodeExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RetryAttempt + + return nil +} + +// TaskExecutionIdentifierValidationError is the validation error returned by +// TaskExecutionIdentifier.Validate if the designated constraints aren't met. +type TaskExecutionIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionIdentifierValidationError) ErrorName() string { + return "TaskExecutionIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionIdentifierValidationError{} + +// Validate checks the field values on SignalIdentifier with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SignalIdentifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SignalId + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalIdentifierValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SignalIdentifierValidationError is the validation error returned by +// SignalIdentifier.Validate if the designated constraints aren't met. +type SignalIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalIdentifierValidationError) ErrorName() string { return "SignalIdentifierValidationError" } + +// Error satisfies the builtin error interface +func (e SignalIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignalIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalIdentifierValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json new file mode 100644 index 0000000000..879a523929 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/identifier.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go new file mode 100644 index 0000000000..5bca18cb45 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go @@ -0,0 +1,337 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/interface.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Defines a strongly typed variable. +type Variable struct { + // Variable literal type. + Type *LiteralType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + //+optional string describing input variable + 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 *Variable) Reset() { *m = Variable{} } +func (m *Variable) String() string { return proto.CompactTextString(m) } +func (*Variable) ProtoMessage() {} +func (*Variable) Descriptor() ([]byte, []int) { + return fileDescriptor_cd7be6cbe85c3def, []int{0} +} + +func (m *Variable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Variable.Unmarshal(m, b) +} +func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Variable.Marshal(b, m, deterministic) +} +func (m *Variable) XXX_Merge(src proto.Message) { + xxx_messageInfo_Variable.Merge(m, src) +} +func (m *Variable) XXX_Size() int { + return xxx_messageInfo_Variable.Size(m) +} +func (m *Variable) XXX_DiscardUnknown() { + xxx_messageInfo_Variable.DiscardUnknown(m) +} + +var xxx_messageInfo_Variable proto.InternalMessageInfo + +func (m *Variable) GetType() *LiteralType { + if m != nil { + return m.Type + } + return nil +} + +func (m *Variable) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// A map of Variables +type VariableMap struct { + // Defines a map of variable names to variables. + Variables map[string]*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VariableMap) Reset() { *m = VariableMap{} } +func (m *VariableMap) String() string { return proto.CompactTextString(m) } +func (*VariableMap) ProtoMessage() {} +func (*VariableMap) Descriptor() ([]byte, []int) { + return fileDescriptor_cd7be6cbe85c3def, []int{1} +} + +func (m *VariableMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VariableMap.Unmarshal(m, b) +} +func (m *VariableMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VariableMap.Marshal(b, m, deterministic) +} +func (m *VariableMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_VariableMap.Merge(m, src) +} +func (m *VariableMap) XXX_Size() int { + return xxx_messageInfo_VariableMap.Size(m) +} +func (m *VariableMap) XXX_DiscardUnknown() { + xxx_messageInfo_VariableMap.DiscardUnknown(m) +} + +var xxx_messageInfo_VariableMap proto.InternalMessageInfo + +func (m *VariableMap) GetVariables() map[string]*Variable { + if m != nil { + return m.Variables + } + return nil +} + +// Defines strongly typed inputs and outputs. +type TypedInterface struct { + Inputs *VariableMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + Outputs *VariableMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TypedInterface) Reset() { *m = TypedInterface{} } +func (m *TypedInterface) String() string { return proto.CompactTextString(m) } +func (*TypedInterface) ProtoMessage() {} +func (*TypedInterface) Descriptor() ([]byte, []int) { + return fileDescriptor_cd7be6cbe85c3def, []int{2} +} + +func (m *TypedInterface) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TypedInterface.Unmarshal(m, b) +} +func (m *TypedInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TypedInterface.Marshal(b, m, deterministic) +} +func (m *TypedInterface) XXX_Merge(src proto.Message) { + xxx_messageInfo_TypedInterface.Merge(m, src) +} +func (m *TypedInterface) XXX_Size() int { + return xxx_messageInfo_TypedInterface.Size(m) +} +func (m *TypedInterface) XXX_DiscardUnknown() { + xxx_messageInfo_TypedInterface.DiscardUnknown(m) +} + +var xxx_messageInfo_TypedInterface proto.InternalMessageInfo + +func (m *TypedInterface) GetInputs() *VariableMap { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *TypedInterface) GetOutputs() *VariableMap { + if m != nil { + return m.Outputs + } + return nil +} + +// A parameter is used as input to a launch plan and has +// the special ability to have a default value or mark itself as required. +type Parameter struct { + //+required Variable. Defines the type of the variable backing this parameter. + Var *Variable `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + //+optional + // + // Types that are valid to be assigned to Behavior: + // *Parameter_Default + // *Parameter_Required + Behavior isParameter_Behavior `protobuf_oneof:"behavior"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Parameter) Reset() { *m = Parameter{} } +func (m *Parameter) String() string { return proto.CompactTextString(m) } +func (*Parameter) ProtoMessage() {} +func (*Parameter) Descriptor() ([]byte, []int) { + return fileDescriptor_cd7be6cbe85c3def, []int{3} +} + +func (m *Parameter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Parameter.Unmarshal(m, b) +} +func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Parameter.Marshal(b, m, deterministic) +} +func (m *Parameter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Parameter.Merge(m, src) +} +func (m *Parameter) XXX_Size() int { + return xxx_messageInfo_Parameter.Size(m) +} +func (m *Parameter) XXX_DiscardUnknown() { + xxx_messageInfo_Parameter.DiscardUnknown(m) +} + +var xxx_messageInfo_Parameter proto.InternalMessageInfo + +func (m *Parameter) GetVar() *Variable { + if m != nil { + return m.Var + } + return nil +} + +type isParameter_Behavior interface { + isParameter_Behavior() +} + +type Parameter_Default struct { + Default *Literal `protobuf:"bytes,2,opt,name=default,proto3,oneof"` +} + +type Parameter_Required struct { + Required bool `protobuf:"varint,3,opt,name=required,proto3,oneof"` +} + +func (*Parameter_Default) isParameter_Behavior() {} + +func (*Parameter_Required) isParameter_Behavior() {} + +func (m *Parameter) GetBehavior() isParameter_Behavior { + if m != nil { + return m.Behavior + } + return nil +} + +func (m *Parameter) GetDefault() *Literal { + if x, ok := m.GetBehavior().(*Parameter_Default); ok { + return x.Default + } + return nil +} + +func (m *Parameter) GetRequired() bool { + if x, ok := m.GetBehavior().(*Parameter_Required); ok { + return x.Required + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Parameter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Parameter_Default)(nil), + (*Parameter_Required)(nil), + } +} + +// A map of Parameters. +type ParameterMap struct { + // Defines a map of parameter names to parameters. + Parameters map[string]*Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterMap) Reset() { *m = ParameterMap{} } +func (m *ParameterMap) String() string { return proto.CompactTextString(m) } +func (*ParameterMap) ProtoMessage() {} +func (*ParameterMap) Descriptor() ([]byte, []int) { + return fileDescriptor_cd7be6cbe85c3def, []int{4} +} + +func (m *ParameterMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterMap.Unmarshal(m, b) +} +func (m *ParameterMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterMap.Marshal(b, m, deterministic) +} +func (m *ParameterMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterMap.Merge(m, src) +} +func (m *ParameterMap) XXX_Size() int { + return xxx_messageInfo_ParameterMap.Size(m) +} +func (m *ParameterMap) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterMap.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterMap proto.InternalMessageInfo + +func (m *ParameterMap) GetParameters() map[string]*Parameter { + if m != nil { + return m.Parameters + } + return nil +} + +func init() { + proto.RegisterType((*Variable)(nil), "flyteidl.core.Variable") + proto.RegisterType((*VariableMap)(nil), "flyteidl.core.VariableMap") + proto.RegisterMapType((map[string]*Variable)(nil), "flyteidl.core.VariableMap.VariablesEntry") + proto.RegisterType((*TypedInterface)(nil), "flyteidl.core.TypedInterface") + proto.RegisterType((*Parameter)(nil), "flyteidl.core.Parameter") + proto.RegisterType((*ParameterMap)(nil), "flyteidl.core.ParameterMap") + proto.RegisterMapType((map[string]*Parameter)(nil), "flyteidl.core.ParameterMap.ParametersEntry") +} + +func init() { proto.RegisterFile("flyteidl/core/interface.proto", fileDescriptor_cd7be6cbe85c3def) } + +var fileDescriptor_cd7be6cbe85c3def = []byte{ + // 425 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x5d, 0x6b, 0xd4, 0x40, + 0x14, 0xed, 0xec, 0x6a, 0xbb, 0x7b, 0xa3, 0x55, 0xe6, 0x41, 0x63, 0xa8, 0x10, 0xf2, 0xb4, 0x45, + 0x9a, 0x40, 0x2c, 0x22, 0x3e, 0x16, 0xc4, 0x8a, 0x0a, 0x32, 0xf8, 0x01, 0xe2, 0xcb, 0x24, 0xb9, + 0x9b, 0x0e, 0xa6, 0x99, 0x71, 0x32, 0x09, 0xc4, 0xdf, 0xe1, 0xdf, 0xf0, 0xcd, 0x1f, 0x28, 0xc9, + 0x26, 0x69, 0xb2, 0x34, 0xf8, 0x36, 0x77, 0xce, 0x39, 0x39, 0x27, 0x73, 0xb8, 0xf0, 0x74, 0x9b, + 0xd5, 0x06, 0x45, 0x92, 0x05, 0xb1, 0xd4, 0x18, 0x88, 0xdc, 0xa0, 0xde, 0xf2, 0x18, 0x7d, 0xa5, + 0xa5, 0x91, 0xf4, 0x7e, 0x0f, 0xfb, 0x0d, 0xec, 0x3c, 0x99, 0xb2, 0x4d, 0xad, 0xb0, 0xd8, 0x31, + 0x9d, 0x93, 0x29, 0x94, 0x09, 0x83, 0x9a, 0x67, 0x1d, 0xea, 0x7d, 0x87, 0xd5, 0x17, 0xae, 0x05, + 0x8f, 0x32, 0xa4, 0x3e, 0xdc, 0x69, 0x84, 0x36, 0x71, 0xc9, 0xc6, 0x0a, 0x1d, 0x7f, 0x62, 0xe1, + 0xbf, 0xdf, 0x09, 0x3f, 0xd5, 0x0a, 0x59, 0xcb, 0xa3, 0x2e, 0x58, 0x09, 0x16, 0xb1, 0x16, 0xca, + 0x08, 0x99, 0xdb, 0x0b, 0x97, 0x6c, 0xd6, 0x6c, 0x7c, 0xe5, 0xfd, 0x21, 0x60, 0xf5, 0x9f, 0xff, + 0xc0, 0x15, 0x7d, 0x03, 0xeb, 0xaa, 0x1b, 0x0b, 0x9b, 0xb8, 0xcb, 0x8d, 0x15, 0x9e, 0xee, 0xd9, + 0x8c, 0xe8, 0xc3, 0xb9, 0x78, 0x9d, 0x1b, 0x5d, 0xb3, 0x1b, 0xad, 0xf3, 0x19, 0x8e, 0xa7, 0x20, + 0x7d, 0x08, 0xcb, 0x1f, 0x58, 0xb7, 0xd9, 0xd7, 0xac, 0x39, 0xd2, 0x33, 0xb8, 0x5b, 0xf1, 0xac, + 0xc4, 0x36, 0x98, 0x15, 0x3e, 0x9e, 0x31, 0x62, 0x3b, 0xd6, 0xab, 0xc5, 0x4b, 0xe2, 0xfd, 0x82, + 0xe3, 0xe6, 0xff, 0x92, 0xb7, 0xfd, 0x6b, 0xd3, 0x10, 0x0e, 0x45, 0xae, 0x4a, 0x53, 0xcc, 0xbc, + 0xca, 0x28, 0x2e, 0xeb, 0x98, 0xf4, 0x1c, 0x8e, 0x64, 0x69, 0x5a, 0xd1, 0xe2, 0xbf, 0xa2, 0x9e, + 0xea, 0xfd, 0x26, 0xb0, 0xfe, 0xc8, 0x35, 0xbf, 0x46, 0x83, 0x9a, 0x9e, 0xc2, 0xb2, 0xe2, 0xba, + 0x33, 0x9d, 0x8d, 0xde, 0x70, 0x68, 0x08, 0x47, 0x09, 0x6e, 0x79, 0x99, 0x99, 0xce, 0xee, 0xd1, + 0xed, 0xcd, 0x5d, 0x1e, 0xb0, 0x9e, 0x48, 0x4f, 0x60, 0xa5, 0xf1, 0x67, 0x29, 0x34, 0x26, 0xf6, + 0xd2, 0x25, 0x9b, 0xd5, 0xe5, 0x01, 0x1b, 0x6e, 0x2e, 0x00, 0x56, 0x11, 0x5e, 0xf1, 0x4a, 0x48, + 0xed, 0xfd, 0x25, 0x70, 0x6f, 0x88, 0xd5, 0x74, 0xf8, 0x0e, 0x40, 0xf5, 0x73, 0x5f, 0xe2, 0xb3, + 0x3d, 0xc7, 0xb1, 0xe0, 0x66, 0xe8, 0x6a, 0x1c, 0xc9, 0x9d, 0xaf, 0xf0, 0x60, 0x0f, 0xbe, 0xa5, + 0x48, 0x7f, 0x5a, 0xa4, 0x3d, 0x67, 0x36, 0x6a, 0xf2, 0xe2, 0xc5, 0xb7, 0xf3, 0x54, 0x98, 0xab, + 0x32, 0xf2, 0x63, 0x79, 0x1d, 0xb4, 0x02, 0xa9, 0xd3, 0x60, 0xd8, 0x85, 0x14, 0xf3, 0x40, 0x45, + 0x67, 0xa9, 0x0c, 0x26, 0xeb, 0x11, 0x1d, 0xb6, 0x6b, 0xf1, 0xfc, 0x5f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x61, 0xf3, 0xc7, 0x07, 0x7f, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.validate.go new file mode 100644 index 0000000000..6e51a5e88f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.validate.go @@ -0,0 +1,455 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/interface.proto + +package core + +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 _interface_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 Variable with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Variable) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VariableValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Description + + return nil +} + +// VariableValidationError is the validation error returned by +// Variable.Validate if the designated constraints aren't met. +type VariableValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VariableValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VariableValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VariableValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VariableValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VariableValidationError) ErrorName() string { return "VariableValidationError" } + +// Error satisfies the builtin error interface +func (e VariableValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVariable.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VariableValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VariableValidationError{} + +// Validate checks the field values on VariableMap with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *VariableMap) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetVariables() { + _ = val + + // no validation rules for Variables[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VariableMapValidationError{ + field: fmt.Sprintf("Variables[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// VariableMapValidationError is the validation error returned by +// VariableMap.Validate if the designated constraints aren't met. +type VariableMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VariableMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VariableMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VariableMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VariableMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VariableMapValidationError) ErrorName() string { return "VariableMapValidationError" } + +// Error satisfies the builtin error interface +func (e VariableMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVariableMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VariableMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VariableMapValidationError{} + +// Validate checks the field values on TypedInterface with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TypedInterface) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TypedInterfaceValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TypedInterfaceValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TypedInterfaceValidationError is the validation error returned by +// TypedInterface.Validate if the designated constraints aren't met. +type TypedInterfaceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TypedInterfaceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TypedInterfaceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TypedInterfaceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TypedInterfaceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TypedInterfaceValidationError) ErrorName() string { return "TypedInterfaceValidationError" } + +// Error satisfies the builtin error interface +func (e TypedInterfaceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTypedInterface.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TypedInterfaceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TypedInterfaceValidationError{} + +// Validate checks the field values on Parameter with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Parameter) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetVar()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterValidationError{ + field: "Var", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Behavior.(type) { + + case *Parameter_Default: + + if v, ok := interface{}(m.GetDefault()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterValidationError{ + field: "Default", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Parameter_Required: + // no validation rules for Required + + } + + return nil +} + +// ParameterValidationError is the validation error returned by +// Parameter.Validate if the designated constraints aren't met. +type ParameterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterValidationError) ErrorName() string { return "ParameterValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterValidationError{} + +// Validate checks the field values on ParameterMap with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ParameterMap) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetParameters() { + _ = val + + // no validation rules for Parameters[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterMapValidationError{ + field: fmt.Sprintf("Parameters[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterMapValidationError is the validation error returned by +// ParameterMap.Validate if the designated constraints aren't met. +type ParameterMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterMapValidationError) ErrorName() string { return "ParameterMapValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterMapValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json new file mode 100644 index 0000000000..249d4d650e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/interface.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go new file mode 100644 index 0000000000..00f96bdf6f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go @@ -0,0 +1,1379 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/literals.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// Primitive Types +type Primitive struct { + // Defines one of simple primitive types. These types will get translated into different programming languages as + // described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + // + // Types that are valid to be assigned to Value: + // *Primitive_Integer + // *Primitive_FloatValue + // *Primitive_StringValue + // *Primitive_Boolean + // *Primitive_Datetime + // *Primitive_Duration + Value isPrimitive_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Primitive) Reset() { *m = Primitive{} } +func (m *Primitive) String() string { return proto.CompactTextString(m) } +func (*Primitive) ProtoMessage() {} +func (*Primitive) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{0} +} + +func (m *Primitive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Primitive.Unmarshal(m, b) +} +func (m *Primitive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Primitive.Marshal(b, m, deterministic) +} +func (m *Primitive) XXX_Merge(src proto.Message) { + xxx_messageInfo_Primitive.Merge(m, src) +} +func (m *Primitive) XXX_Size() int { + return xxx_messageInfo_Primitive.Size(m) +} +func (m *Primitive) XXX_DiscardUnknown() { + xxx_messageInfo_Primitive.DiscardUnknown(m) +} + +var xxx_messageInfo_Primitive proto.InternalMessageInfo + +type isPrimitive_Value interface { + isPrimitive_Value() +} + +type Primitive_Integer struct { + Integer int64 `protobuf:"varint,1,opt,name=integer,proto3,oneof"` +} + +type Primitive_FloatValue struct { + FloatValue float64 `protobuf:"fixed64,2,opt,name=float_value,json=floatValue,proto3,oneof"` +} + +type Primitive_StringValue struct { + StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Primitive_Boolean struct { + Boolean bool `protobuf:"varint,4,opt,name=boolean,proto3,oneof"` +} + +type Primitive_Datetime struct { + Datetime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=datetime,proto3,oneof"` +} + +type Primitive_Duration struct { + Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3,oneof"` +} + +func (*Primitive_Integer) isPrimitive_Value() {} + +func (*Primitive_FloatValue) isPrimitive_Value() {} + +func (*Primitive_StringValue) isPrimitive_Value() {} + +func (*Primitive_Boolean) isPrimitive_Value() {} + +func (*Primitive_Datetime) isPrimitive_Value() {} + +func (*Primitive_Duration) isPrimitive_Value() {} + +func (m *Primitive) GetValue() isPrimitive_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *Primitive) GetInteger() int64 { + if x, ok := m.GetValue().(*Primitive_Integer); ok { + return x.Integer + } + return 0 +} + +func (m *Primitive) GetFloatValue() float64 { + if x, ok := m.GetValue().(*Primitive_FloatValue); ok { + return x.FloatValue + } + return 0 +} + +func (m *Primitive) GetStringValue() string { + if x, ok := m.GetValue().(*Primitive_StringValue); ok { + return x.StringValue + } + return "" +} + +func (m *Primitive) GetBoolean() bool { + if x, ok := m.GetValue().(*Primitive_Boolean); ok { + return x.Boolean + } + return false +} + +func (m *Primitive) GetDatetime() *timestamp.Timestamp { + if x, ok := m.GetValue().(*Primitive_Datetime); ok { + return x.Datetime + } + return nil +} + +func (m *Primitive) GetDuration() *duration.Duration { + if x, ok := m.GetValue().(*Primitive_Duration); ok { + return x.Duration + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Primitive) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Primitive_Integer)(nil), + (*Primitive_FloatValue)(nil), + (*Primitive_StringValue)(nil), + (*Primitive_Boolean)(nil), + (*Primitive_Datetime)(nil), + (*Primitive_Duration)(nil), + } +} + +// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +// undefined since it can be assigned to a scalar of any LiteralType. +type Void struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Void) Reset() { *m = Void{} } +func (m *Void) String() string { return proto.CompactTextString(m) } +func (*Void) ProtoMessage() {} +func (*Void) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{1} +} + +func (m *Void) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Void.Unmarshal(m, b) +} +func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Void.Marshal(b, m, deterministic) +} +func (m *Void) XXX_Merge(src proto.Message) { + xxx_messageInfo_Void.Merge(m, src) +} +func (m *Void) XXX_Size() int { + return xxx_messageInfo_Void.Size(m) +} +func (m *Void) XXX_DiscardUnknown() { + xxx_messageInfo_Void.DiscardUnknown(m) +} + +var xxx_messageInfo_Void proto.InternalMessageInfo + +// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +type Blob struct { + Metadata *BlobMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Blob) Reset() { *m = Blob{} } +func (m *Blob) String() string { return proto.CompactTextString(m) } +func (*Blob) ProtoMessage() {} +func (*Blob) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{2} +} + +func (m *Blob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Blob.Unmarshal(m, b) +} +func (m *Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Blob.Marshal(b, m, deterministic) +} +func (m *Blob) XXX_Merge(src proto.Message) { + xxx_messageInfo_Blob.Merge(m, src) +} +func (m *Blob) XXX_Size() int { + return xxx_messageInfo_Blob.Size(m) +} +func (m *Blob) XXX_DiscardUnknown() { + xxx_messageInfo_Blob.DiscardUnknown(m) +} + +var xxx_messageInfo_Blob proto.InternalMessageInfo + +func (m *Blob) GetMetadata() *BlobMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *Blob) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +type BlobMetadata struct { + Type *BlobType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BlobMetadata) Reset() { *m = BlobMetadata{} } +func (m *BlobMetadata) String() string { return proto.CompactTextString(m) } +func (*BlobMetadata) ProtoMessage() {} +func (*BlobMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{3} +} + +func (m *BlobMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BlobMetadata.Unmarshal(m, b) +} +func (m *BlobMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BlobMetadata.Marshal(b, m, deterministic) +} +func (m *BlobMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlobMetadata.Merge(m, src) +} +func (m *BlobMetadata) XXX_Size() int { + return xxx_messageInfo_BlobMetadata.Size(m) +} +func (m *BlobMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_BlobMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_BlobMetadata proto.InternalMessageInfo + +func (m *BlobMetadata) GetType() *BlobType { + if m != nil { + return m.Type + } + return nil +} + +// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +type Binary struct { + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Binary) Reset() { *m = Binary{} } +func (m *Binary) String() string { return proto.CompactTextString(m) } +func (*Binary) ProtoMessage() {} +func (*Binary) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{4} +} + +func (m *Binary) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Binary.Unmarshal(m, b) +} +func (m *Binary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Binary.Marshal(b, m, deterministic) +} +func (m *Binary) XXX_Merge(src proto.Message) { + xxx_messageInfo_Binary.Merge(m, src) +} +func (m *Binary) XXX_Size() int { + return xxx_messageInfo_Binary.Size(m) +} +func (m *Binary) XXX_DiscardUnknown() { + xxx_messageInfo_Binary.DiscardUnknown(m) +} + +var xxx_messageInfo_Binary proto.InternalMessageInfo + +func (m *Binary) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +func (m *Binary) GetTag() string { + if m != nil { + return m.Tag + } + return "" +} + +// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +type Schema struct { + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Type *SchemaType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Schema) Reset() { *m = Schema{} } +func (m *Schema) String() string { return proto.CompactTextString(m) } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{5} +} + +func (m *Schema) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Schema.Unmarshal(m, b) +} +func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Schema.Marshal(b, m, deterministic) +} +func (m *Schema) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schema.Merge(m, src) +} +func (m *Schema) XXX_Size() int { + return xxx_messageInfo_Schema.Size(m) +} +func (m *Schema) XXX_DiscardUnknown() { + xxx_messageInfo_Schema.DiscardUnknown(m) +} + +var xxx_messageInfo_Schema proto.InternalMessageInfo + +func (m *Schema) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *Schema) GetType() *SchemaType { + if m != nil { + return m.Type + } + return nil +} + +// The runtime representation of a tagged union value. See `UnionType` for more details. +type Union struct { + Value *Literal `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Union) Reset() { *m = Union{} } +func (m *Union) String() string { return proto.CompactTextString(m) } +func (*Union) ProtoMessage() {} +func (*Union) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{6} +} + +func (m *Union) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Union.Unmarshal(m, b) +} +func (m *Union) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Union.Marshal(b, m, deterministic) +} +func (m *Union) XXX_Merge(src proto.Message) { + xxx_messageInfo_Union.Merge(m, src) +} +func (m *Union) XXX_Size() int { + return xxx_messageInfo_Union.Size(m) +} +func (m *Union) XXX_DiscardUnknown() { + xxx_messageInfo_Union.DiscardUnknown(m) +} + +var xxx_messageInfo_Union proto.InternalMessageInfo + +func (m *Union) GetValue() *Literal { + if m != nil { + return m.Value + } + return nil +} + +func (m *Union) GetType() *LiteralType { + if m != nil { + return m.Type + } + return nil +} + +type StructuredDatasetMetadata struct { + // Bundle the type information along with the literal. + // This is here because StructuredDatasets can often be more defined at run time than at compile time. + // That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, + // without any column information, but at run time, you might have that column information. + // flytekit python will copy this type information into the literal, from the type information, if not provided by + // the various plugins (encoders). + // Since this field is run time generated, it's not used for any type checking. + StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,1,opt,name=structured_dataset_type,json=structuredDatasetType,proto3" json:"structured_dataset_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredDatasetMetadata) Reset() { *m = StructuredDatasetMetadata{} } +func (m *StructuredDatasetMetadata) String() string { return proto.CompactTextString(m) } +func (*StructuredDatasetMetadata) ProtoMessage() {} +func (*StructuredDatasetMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{7} +} + +func (m *StructuredDatasetMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredDatasetMetadata.Unmarshal(m, b) +} +func (m *StructuredDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredDatasetMetadata.Marshal(b, m, deterministic) +} +func (m *StructuredDatasetMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredDatasetMetadata.Merge(m, src) +} +func (m *StructuredDatasetMetadata) XXX_Size() int { + return xxx_messageInfo_StructuredDatasetMetadata.Size(m) +} +func (m *StructuredDatasetMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredDatasetMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredDatasetMetadata proto.InternalMessageInfo + +func (m *StructuredDatasetMetadata) GetStructuredDatasetType() *StructuredDatasetType { + if m != nil { + return m.StructuredDatasetType + } + return nil +} + +type StructuredDataset struct { + // String location uniquely identifying where the data is. + // Should start with the storage location (e.g. s3://, gs://, bq://, etc.) + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Metadata *StructuredDatasetMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredDataset) Reset() { *m = StructuredDataset{} } +func (m *StructuredDataset) String() string { return proto.CompactTextString(m) } +func (*StructuredDataset) ProtoMessage() {} +func (*StructuredDataset) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{8} +} + +func (m *StructuredDataset) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredDataset.Unmarshal(m, b) +} +func (m *StructuredDataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredDataset.Marshal(b, m, deterministic) +} +func (m *StructuredDataset) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredDataset.Merge(m, src) +} +func (m *StructuredDataset) XXX_Size() int { + return xxx_messageInfo_StructuredDataset.Size(m) +} +func (m *StructuredDataset) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredDataset.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredDataset proto.InternalMessageInfo + +func (m *StructuredDataset) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *StructuredDataset) GetMetadata() *StructuredDatasetMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +type Scalar struct { + // Types that are valid to be assigned to Value: + // *Scalar_Primitive + // *Scalar_Blob + // *Scalar_Binary + // *Scalar_Schema + // *Scalar_NoneType + // *Scalar_Error + // *Scalar_Generic + // *Scalar_StructuredDataset + // *Scalar_Union + Value isScalar_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Scalar) Reset() { *m = Scalar{} } +func (m *Scalar) String() string { return proto.CompactTextString(m) } +func (*Scalar) ProtoMessage() {} +func (*Scalar) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{9} +} + +func (m *Scalar) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Scalar.Unmarshal(m, b) +} +func (m *Scalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Scalar.Marshal(b, m, deterministic) +} +func (m *Scalar) XXX_Merge(src proto.Message) { + xxx_messageInfo_Scalar.Merge(m, src) +} +func (m *Scalar) XXX_Size() int { + return xxx_messageInfo_Scalar.Size(m) +} +func (m *Scalar) XXX_DiscardUnknown() { + xxx_messageInfo_Scalar.DiscardUnknown(m) +} + +var xxx_messageInfo_Scalar proto.InternalMessageInfo + +type isScalar_Value interface { + isScalar_Value() +} + +type Scalar_Primitive struct { + Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` +} + +type Scalar_Blob struct { + Blob *Blob `protobuf:"bytes,2,opt,name=blob,proto3,oneof"` +} + +type Scalar_Binary struct { + Binary *Binary `protobuf:"bytes,3,opt,name=binary,proto3,oneof"` +} + +type Scalar_Schema struct { + Schema *Schema `protobuf:"bytes,4,opt,name=schema,proto3,oneof"` +} + +type Scalar_NoneType struct { + NoneType *Void `protobuf:"bytes,5,opt,name=none_type,json=noneType,proto3,oneof"` +} + +type Scalar_Error struct { + Error *Error `protobuf:"bytes,6,opt,name=error,proto3,oneof"` +} + +type Scalar_Generic struct { + Generic *_struct.Struct `protobuf:"bytes,7,opt,name=generic,proto3,oneof"` +} + +type Scalar_StructuredDataset struct { + StructuredDataset *StructuredDataset `protobuf:"bytes,8,opt,name=structured_dataset,json=structuredDataset,proto3,oneof"` +} + +type Scalar_Union struct { + Union *Union `protobuf:"bytes,9,opt,name=union,proto3,oneof"` +} + +func (*Scalar_Primitive) isScalar_Value() {} + +func (*Scalar_Blob) isScalar_Value() {} + +func (*Scalar_Binary) isScalar_Value() {} + +func (*Scalar_Schema) isScalar_Value() {} + +func (*Scalar_NoneType) isScalar_Value() {} + +func (*Scalar_Error) isScalar_Value() {} + +func (*Scalar_Generic) isScalar_Value() {} + +func (*Scalar_StructuredDataset) isScalar_Value() {} + +func (*Scalar_Union) isScalar_Value() {} + +func (m *Scalar) GetValue() isScalar_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *Scalar) GetPrimitive() *Primitive { + if x, ok := m.GetValue().(*Scalar_Primitive); ok { + return x.Primitive + } + return nil +} + +func (m *Scalar) GetBlob() *Blob { + if x, ok := m.GetValue().(*Scalar_Blob); ok { + return x.Blob + } + return nil +} + +func (m *Scalar) GetBinary() *Binary { + if x, ok := m.GetValue().(*Scalar_Binary); ok { + return x.Binary + } + return nil +} + +func (m *Scalar) GetSchema() *Schema { + if x, ok := m.GetValue().(*Scalar_Schema); ok { + return x.Schema + } + return nil +} + +func (m *Scalar) GetNoneType() *Void { + if x, ok := m.GetValue().(*Scalar_NoneType); ok { + return x.NoneType + } + return nil +} + +func (m *Scalar) GetError() *Error { + if x, ok := m.GetValue().(*Scalar_Error); ok { + return x.Error + } + return nil +} + +func (m *Scalar) GetGeneric() *_struct.Struct { + if x, ok := m.GetValue().(*Scalar_Generic); ok { + return x.Generic + } + return nil +} + +func (m *Scalar) GetStructuredDataset() *StructuredDataset { + if x, ok := m.GetValue().(*Scalar_StructuredDataset); ok { + return x.StructuredDataset + } + return nil +} + +func (m *Scalar) GetUnion() *Union { + if x, ok := m.GetValue().(*Scalar_Union); ok { + return x.Union + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Scalar) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Scalar_Primitive)(nil), + (*Scalar_Blob)(nil), + (*Scalar_Binary)(nil), + (*Scalar_Schema)(nil), + (*Scalar_NoneType)(nil), + (*Scalar_Error)(nil), + (*Scalar_Generic)(nil), + (*Scalar_StructuredDataset)(nil), + (*Scalar_Union)(nil), + } +} + +// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +type Literal struct { + // Types that are valid to be assigned to Value: + // *Literal_Scalar + // *Literal_Collection + // *Literal_Map + Value isLiteral_Value `protobuf_oneof:"value"` + // A hash representing this literal. + // This is used for caching purposes. For more details refer to RFC 1893 + // (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md) + Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Literal) Reset() { *m = Literal{} } +func (m *Literal) String() string { return proto.CompactTextString(m) } +func (*Literal) ProtoMessage() {} +func (*Literal) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{10} +} + +func (m *Literal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Literal.Unmarshal(m, b) +} +func (m *Literal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Literal.Marshal(b, m, deterministic) +} +func (m *Literal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Literal.Merge(m, src) +} +func (m *Literal) XXX_Size() int { + return xxx_messageInfo_Literal.Size(m) +} +func (m *Literal) XXX_DiscardUnknown() { + xxx_messageInfo_Literal.DiscardUnknown(m) +} + +var xxx_messageInfo_Literal proto.InternalMessageInfo + +type isLiteral_Value interface { + isLiteral_Value() +} + +type Literal_Scalar struct { + Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` +} + +type Literal_Collection struct { + Collection *LiteralCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` +} + +type Literal_Map struct { + Map *LiteralMap `protobuf:"bytes,3,opt,name=map,proto3,oneof"` +} + +func (*Literal_Scalar) isLiteral_Value() {} + +func (*Literal_Collection) isLiteral_Value() {} + +func (*Literal_Map) isLiteral_Value() {} + +func (m *Literal) GetValue() isLiteral_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *Literal) GetScalar() *Scalar { + if x, ok := m.GetValue().(*Literal_Scalar); ok { + return x.Scalar + } + return nil +} + +func (m *Literal) GetCollection() *LiteralCollection { + if x, ok := m.GetValue().(*Literal_Collection); ok { + return x.Collection + } + return nil +} + +func (m *Literal) GetMap() *LiteralMap { + if x, ok := m.GetValue().(*Literal_Map); ok { + return x.Map + } + return nil +} + +func (m *Literal) GetHash() string { + if m != nil { + return m.Hash + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Literal) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Literal_Scalar)(nil), + (*Literal_Collection)(nil), + (*Literal_Map)(nil), + } +} + +// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type LiteralCollection struct { + Literals []*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralCollection) Reset() { *m = LiteralCollection{} } +func (m *LiteralCollection) String() string { return proto.CompactTextString(m) } +func (*LiteralCollection) ProtoMessage() {} +func (*LiteralCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{11} +} + +func (m *LiteralCollection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralCollection.Unmarshal(m, b) +} +func (m *LiteralCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralCollection.Marshal(b, m, deterministic) +} +func (m *LiteralCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralCollection.Merge(m, src) +} +func (m *LiteralCollection) XXX_Size() int { + return xxx_messageInfo_LiteralCollection.Size(m) +} +func (m *LiteralCollection) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralCollection proto.InternalMessageInfo + +func (m *LiteralCollection) GetLiterals() []*Literal { + if m != nil { + return m.Literals + } + return nil +} + +// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type LiteralMap struct { + Literals map[string]*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralMap) Reset() { *m = LiteralMap{} } +func (m *LiteralMap) String() string { return proto.CompactTextString(m) } +func (*LiteralMap) ProtoMessage() {} +func (*LiteralMap) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{12} +} + +func (m *LiteralMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralMap.Unmarshal(m, b) +} +func (m *LiteralMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralMap.Marshal(b, m, deterministic) +} +func (m *LiteralMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralMap.Merge(m, src) +} +func (m *LiteralMap) XXX_Size() int { + return xxx_messageInfo_LiteralMap.Size(m) +} +func (m *LiteralMap) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralMap.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralMap proto.InternalMessageInfo + +func (m *LiteralMap) GetLiterals() map[string]*Literal { + if m != nil { + return m.Literals + } + return nil +} + +// A collection of BindingData items. +type BindingDataCollection struct { + Bindings []*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingDataCollection) Reset() { *m = BindingDataCollection{} } +func (m *BindingDataCollection) String() string { return proto.CompactTextString(m) } +func (*BindingDataCollection) ProtoMessage() {} +func (*BindingDataCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{13} +} + +func (m *BindingDataCollection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingDataCollection.Unmarshal(m, b) +} +func (m *BindingDataCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingDataCollection.Marshal(b, m, deterministic) +} +func (m *BindingDataCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingDataCollection.Merge(m, src) +} +func (m *BindingDataCollection) XXX_Size() int { + return xxx_messageInfo_BindingDataCollection.Size(m) +} +func (m *BindingDataCollection) XXX_DiscardUnknown() { + xxx_messageInfo_BindingDataCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingDataCollection proto.InternalMessageInfo + +func (m *BindingDataCollection) GetBindings() []*BindingData { + if m != nil { + return m.Bindings + } + return nil +} + +// A map of BindingData items. +type BindingDataMap struct { + Bindings map[string]*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingDataMap) Reset() { *m = BindingDataMap{} } +func (m *BindingDataMap) String() string { return proto.CompactTextString(m) } +func (*BindingDataMap) ProtoMessage() {} +func (*BindingDataMap) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{14} +} + +func (m *BindingDataMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingDataMap.Unmarshal(m, b) +} +func (m *BindingDataMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingDataMap.Marshal(b, m, deterministic) +} +func (m *BindingDataMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingDataMap.Merge(m, src) +} +func (m *BindingDataMap) XXX_Size() int { + return xxx_messageInfo_BindingDataMap.Size(m) +} +func (m *BindingDataMap) XXX_DiscardUnknown() { + xxx_messageInfo_BindingDataMap.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingDataMap proto.InternalMessageInfo + +func (m *BindingDataMap) GetBindings() map[string]*BindingData { + if m != nil { + return m.Bindings + } + return nil +} + +type UnionInfo struct { + TargetType *LiteralType `protobuf:"bytes,1,opt,name=targetType,proto3" json:"targetType,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnionInfo) Reset() { *m = UnionInfo{} } +func (m *UnionInfo) String() string { return proto.CompactTextString(m) } +func (*UnionInfo) ProtoMessage() {} +func (*UnionInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{15} +} + +func (m *UnionInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnionInfo.Unmarshal(m, b) +} +func (m *UnionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnionInfo.Marshal(b, m, deterministic) +} +func (m *UnionInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnionInfo.Merge(m, src) +} +func (m *UnionInfo) XXX_Size() int { + return xxx_messageInfo_UnionInfo.Size(m) +} +func (m *UnionInfo) XXX_DiscardUnknown() { + xxx_messageInfo_UnionInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_UnionInfo proto.InternalMessageInfo + +func (m *UnionInfo) GetTargetType() *LiteralType { + if m != nil { + return m.TargetType + } + return nil +} + +// Specifies either a simple value or a reference to another output. +type BindingData struct { + // Types that are valid to be assigned to Value: + // *BindingData_Scalar + // *BindingData_Collection + // *BindingData_Promise + // *BindingData_Map + Value isBindingData_Value `protobuf_oneof:"value"` + Union *UnionInfo `protobuf:"bytes,5,opt,name=union,proto3" json:"union,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingData) Reset() { *m = BindingData{} } +func (m *BindingData) String() string { return proto.CompactTextString(m) } +func (*BindingData) ProtoMessage() {} +func (*BindingData) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{16} +} + +func (m *BindingData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingData.Unmarshal(m, b) +} +func (m *BindingData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingData.Marshal(b, m, deterministic) +} +func (m *BindingData) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingData.Merge(m, src) +} +func (m *BindingData) XXX_Size() int { + return xxx_messageInfo_BindingData.Size(m) +} +func (m *BindingData) XXX_DiscardUnknown() { + xxx_messageInfo_BindingData.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingData proto.InternalMessageInfo + +type isBindingData_Value interface { + isBindingData_Value() +} + +type BindingData_Scalar struct { + Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` +} + +type BindingData_Collection struct { + Collection *BindingDataCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` +} + +type BindingData_Promise struct { + Promise *OutputReference `protobuf:"bytes,3,opt,name=promise,proto3,oneof"` +} + +type BindingData_Map struct { + Map *BindingDataMap `protobuf:"bytes,4,opt,name=map,proto3,oneof"` +} + +func (*BindingData_Scalar) isBindingData_Value() {} + +func (*BindingData_Collection) isBindingData_Value() {} + +func (*BindingData_Promise) isBindingData_Value() {} + +func (*BindingData_Map) isBindingData_Value() {} + +func (m *BindingData) GetValue() isBindingData_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *BindingData) GetScalar() *Scalar { + if x, ok := m.GetValue().(*BindingData_Scalar); ok { + return x.Scalar + } + return nil +} + +func (m *BindingData) GetCollection() *BindingDataCollection { + if x, ok := m.GetValue().(*BindingData_Collection); ok { + return x.Collection + } + return nil +} + +func (m *BindingData) GetPromise() *OutputReference { + if x, ok := m.GetValue().(*BindingData_Promise); ok { + return x.Promise + } + return nil +} + +func (m *BindingData) GetMap() *BindingDataMap { + if x, ok := m.GetValue().(*BindingData_Map); ok { + return x.Map + } + return nil +} + +func (m *BindingData) GetUnion() *UnionInfo { + if m != nil { + return m.Union + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*BindingData) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*BindingData_Scalar)(nil), + (*BindingData_Collection)(nil), + (*BindingData_Promise)(nil), + (*BindingData_Map)(nil), + } +} + +// An input/output binding of a variable to either static value or a node output. +type Binding struct { + // Variable name must match an input/output variable of the node. + Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // Data to use to bind this variable. + Binding *BindingData `protobuf:"bytes,2,opt,name=binding,proto3" json:"binding,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Binding) Reset() { *m = Binding{} } +func (m *Binding) String() string { return proto.CompactTextString(m) } +func (*Binding) ProtoMessage() {} +func (*Binding) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{17} +} + +func (m *Binding) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Binding.Unmarshal(m, b) +} +func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Binding.Marshal(b, m, deterministic) +} +func (m *Binding) XXX_Merge(src proto.Message) { + xxx_messageInfo_Binding.Merge(m, src) +} +func (m *Binding) XXX_Size() int { + return xxx_messageInfo_Binding.Size(m) +} +func (m *Binding) XXX_DiscardUnknown() { + xxx_messageInfo_Binding.DiscardUnknown(m) +} + +var xxx_messageInfo_Binding proto.InternalMessageInfo + +func (m *Binding) GetVar() string { + if m != nil { + return m.Var + } + return "" +} + +func (m *Binding) GetBinding() *BindingData { + if m != nil { + return m.Binding + } + return nil +} + +// A generic key value pair. +type KeyValuePair struct { + //required. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + //+optional. + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } +func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*KeyValuePair) ProtoMessage() {} +func (*KeyValuePair) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{18} +} + +func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) +} +func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) +} +func (m *KeyValuePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValuePair.Merge(m, src) +} +func (m *KeyValuePair) XXX_Size() int { + return xxx_messageInfo_KeyValuePair.Size(m) +} +func (m *KeyValuePair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValuePair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo + +func (m *KeyValuePair) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *KeyValuePair) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// Retry strategy associated with an executable unit. +type RetryStrategy struct { + // Number of retries. Retries will be consumed when the job fails with a recoverable error. + // The number of retries must be less than or equals to 10. + Retries uint32 `protobuf:"varint,5,opt,name=retries,proto3" json:"retries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetryStrategy) Reset() { *m = RetryStrategy{} } +func (m *RetryStrategy) String() string { return proto.CompactTextString(m) } +func (*RetryStrategy) ProtoMessage() {} +func (*RetryStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_a1a523b10667cdfb, []int{19} +} + +func (m *RetryStrategy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetryStrategy.Unmarshal(m, b) +} +func (m *RetryStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetryStrategy.Marshal(b, m, deterministic) +} +func (m *RetryStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetryStrategy.Merge(m, src) +} +func (m *RetryStrategy) XXX_Size() int { + return xxx_messageInfo_RetryStrategy.Size(m) +} +func (m *RetryStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_RetryStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_RetryStrategy proto.InternalMessageInfo + +func (m *RetryStrategy) GetRetries() uint32 { + if m != nil { + return m.Retries + } + return 0 +} + +func init() { + proto.RegisterType((*Primitive)(nil), "flyteidl.core.Primitive") + proto.RegisterType((*Void)(nil), "flyteidl.core.Void") + proto.RegisterType((*Blob)(nil), "flyteidl.core.Blob") + proto.RegisterType((*BlobMetadata)(nil), "flyteidl.core.BlobMetadata") + proto.RegisterType((*Binary)(nil), "flyteidl.core.Binary") + proto.RegisterType((*Schema)(nil), "flyteidl.core.Schema") + proto.RegisterType((*Union)(nil), "flyteidl.core.Union") + proto.RegisterType((*StructuredDatasetMetadata)(nil), "flyteidl.core.StructuredDatasetMetadata") + proto.RegisterType((*StructuredDataset)(nil), "flyteidl.core.StructuredDataset") + proto.RegisterType((*Scalar)(nil), "flyteidl.core.Scalar") + proto.RegisterType((*Literal)(nil), "flyteidl.core.Literal") + proto.RegisterType((*LiteralCollection)(nil), "flyteidl.core.LiteralCollection") + proto.RegisterType((*LiteralMap)(nil), "flyteidl.core.LiteralMap") + proto.RegisterMapType((map[string]*Literal)(nil), "flyteidl.core.LiteralMap.LiteralsEntry") + proto.RegisterType((*BindingDataCollection)(nil), "flyteidl.core.BindingDataCollection") + proto.RegisterType((*BindingDataMap)(nil), "flyteidl.core.BindingDataMap") + proto.RegisterMapType((map[string]*BindingData)(nil), "flyteidl.core.BindingDataMap.BindingsEntry") + proto.RegisterType((*UnionInfo)(nil), "flyteidl.core.UnionInfo") + proto.RegisterType((*BindingData)(nil), "flyteidl.core.BindingData") + proto.RegisterType((*Binding)(nil), "flyteidl.core.Binding") + proto.RegisterType((*KeyValuePair)(nil), "flyteidl.core.KeyValuePair") + proto.RegisterType((*RetryStrategy)(nil), "flyteidl.core.RetryStrategy") +} + +func init() { proto.RegisterFile("flyteidl/core/literals.proto", fileDescriptor_a1a523b10667cdfb) } + +var fileDescriptor_a1a523b10667cdfb = []byte{ + // 1066 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xf6, 0xda, 0x8e, 0x7f, 0x8e, 0x13, 0x44, 0x86, 0x84, 0x6e, 0x4c, 0x29, 0x66, 0xa9, 0x84, + 0xab, 0x12, 0xbb, 0xa4, 0x55, 0x88, 0xc2, 0x9d, 0x9b, 0x12, 0x57, 0x50, 0xb5, 0xd9, 0x94, 0x22, + 0x21, 0xa4, 0x68, 0x6c, 0x4f, 0x36, 0xa3, 0xac, 0x77, 0xac, 0xd9, 0x71, 0xa4, 0x7d, 0x02, 0xde, + 0x84, 0x4b, 0x2e, 0x78, 0x0c, 0x9e, 0x86, 0x47, 0x40, 0xf3, 0xb7, 0x5e, 0xef, 0x6e, 0xd2, 0xf6, + 0x6e, 0x76, 0xce, 0x77, 0xfe, 0xcf, 0x77, 0x76, 0xe0, 0xfe, 0x65, 0x98, 0x08, 0x42, 0x67, 0xe1, + 0x70, 0xca, 0x38, 0x19, 0x86, 0x54, 0x10, 0x8e, 0xc3, 0x78, 0xb0, 0xe0, 0x4c, 0x30, 0xb4, 0x65, + 0xa5, 0x03, 0x29, 0xed, 0x7e, 0x15, 0x30, 0x16, 0x84, 0x64, 0xa8, 0x84, 0x93, 0xe5, 0xe5, 0x50, + 0xd0, 0x39, 0x89, 0x05, 0x9e, 0x2f, 0x34, 0xbe, 0xfb, 0x20, 0x0f, 0x98, 0x2d, 0x39, 0x16, 0x94, + 0x45, 0x46, 0x7e, 0x3f, 0x2f, 0x8f, 0x05, 0x5f, 0x4e, 0x85, 0x91, 0xee, 0xad, 0xc7, 0x22, 0x92, + 0x05, 0x31, 0x81, 0x78, 0x7f, 0x56, 0xa1, 0xfd, 0x86, 0xd3, 0x39, 0x15, 0xf4, 0x86, 0xa0, 0x2e, + 0x34, 0x69, 0x24, 0x48, 0x40, 0xb8, 0xeb, 0xf4, 0x9c, 0x7e, 0x6d, 0x5c, 0xf1, 0xed, 0x05, 0xfa, + 0x1a, 0x3a, 0x97, 0x21, 0xc3, 0xe2, 0xe2, 0x06, 0x87, 0x4b, 0xe2, 0x56, 0x7b, 0x4e, 0xdf, 0x19, + 0x57, 0x7c, 0x50, 0x97, 0xef, 0xe4, 0x1d, 0xfa, 0x06, 0x36, 0x63, 0xc1, 0x69, 0x14, 0x18, 0x4c, + 0xad, 0xe7, 0xf4, 0xdb, 0xe3, 0x8a, 0xdf, 0xd1, 0xb7, 0x1a, 0xd4, 0x85, 0xe6, 0x84, 0xb1, 0x90, + 0xe0, 0xc8, 0xad, 0xf7, 0x9c, 0x7e, 0x4b, 0xfa, 0x30, 0x17, 0xe8, 0x08, 0x5a, 0x33, 0x2c, 0x88, + 0xcc, 0xde, 0xdd, 0xe8, 0x39, 0xfd, 0xce, 0x41, 0x77, 0xa0, 0x33, 0x1b, 0xd8, 0xcc, 0x06, 0x6f, + 0x6d, 0x69, 0xc6, 0x15, 0x3f, 0x45, 0xa3, 0x1f, 0xa0, 0x65, 0x4b, 0xe2, 0x36, 0x94, 0xe6, 0x5e, + 0x41, 0xf3, 0xc4, 0x00, 0x94, 0xa2, 0x39, 0x8f, 0x9a, 0xb0, 0xa1, 0x82, 0xf5, 0x1a, 0x50, 0x7f, + 0xc7, 0xe8, 0xcc, 0x3b, 0x83, 0xfa, 0x28, 0x64, 0x13, 0x69, 0x71, 0x4e, 0x04, 0x9e, 0x61, 0x81, + 0x55, 0x31, 0x3a, 0x07, 0x5f, 0x0c, 0xd6, 0xba, 0x36, 0x90, 0xb0, 0x57, 0x06, 0xe2, 0xa7, 0x60, + 0xf4, 0x29, 0xd4, 0x96, 0x9c, 0xea, 0xe4, 0x7d, 0x79, 0xf4, 0x7e, 0x84, 0xcd, 0x2c, 0x16, 0x3d, + 0x86, 0xba, 0xec, 0x81, 0x31, 0x7b, 0xaf, 0xc4, 0xec, 0xdb, 0x64, 0x41, 0x7c, 0x05, 0xf2, 0x9e, + 0x40, 0x63, 0x44, 0x23, 0xcc, 0x13, 0xb4, 0x63, 0x42, 0x55, 0x7a, 0x9b, 0xbe, 0xfe, 0x90, 0xee, + 0x04, 0x0e, 0x54, 0x3f, 0xda, 0xbe, 0x3c, 0x7a, 0x2f, 0xa1, 0x71, 0x3e, 0xbd, 0x22, 0xf3, 0x34, + 0x14, 0x27, 0x0d, 0x05, 0xed, 0x1b, 0xd7, 0x35, 0x53, 0xa3, 0x75, 0xd7, 0x5a, 0x2d, 0xe3, 0x9c, + 0xc0, 0xc6, 0xaf, 0x11, 0x65, 0x11, 0xfa, 0x2e, 0xeb, 0xbb, 0x73, 0xf0, 0x79, 0x4e, 0xf1, 0x17, + 0x3d, 0xde, 0x36, 0xa6, 0x81, 0xf1, 0x52, 0x35, 0x3d, 0x2c, 0x05, 0x67, 0xdc, 0x24, 0xb0, 0x77, + 0xae, 0x06, 0x76, 0xc9, 0xc9, 0xec, 0x04, 0x0b, 0x1c, 0x13, 0x91, 0x56, 0xeb, 0x0f, 0xb8, 0x17, + 0xa7, 0xc2, 0x8b, 0x99, 0x96, 0x5e, 0x64, 0x0a, 0xf8, 0x30, 0x9f, 0x45, 0xde, 0x94, 0xf2, 0xb4, + 0x1b, 0x97, 0x5d, 0x7b, 0xd7, 0xb0, 0x5d, 0xc0, 0x97, 0xd4, 0xed, 0x24, 0x33, 0x0d, 0x3a, 0xab, + 0xfe, 0xfb, 0xbc, 0x16, 0x47, 0xc3, 0xfb, 0xaf, 0x26, 0x5b, 0x83, 0x43, 0xcc, 0xd1, 0x11, 0xb4, + 0x17, 0x96, 0x77, 0x26, 0x0f, 0x37, 0x67, 0x31, 0xe5, 0xe5, 0xb8, 0xe2, 0xaf, 0xc0, 0xe8, 0x11, + 0xd4, 0x27, 0x21, 0x9b, 0x98, 0x30, 0x3e, 0x2b, 0x99, 0x9e, 0x71, 0xc5, 0x57, 0x10, 0x34, 0x84, + 0xc6, 0x44, 0xcd, 0x8e, 0xe9, 0xf7, 0x6e, 0x1e, 0xac, 0x84, 0xe3, 0x8a, 0x6f, 0x60, 0x52, 0x21, + 0x56, 0x33, 0xa0, 0xb8, 0x59, 0x54, 0xd0, 0x03, 0x22, 0x15, 0x34, 0x0c, 0x1d, 0x40, 0x3b, 0x62, + 0x11, 0xd1, 0xed, 0xd8, 0x28, 0x8d, 0x48, 0xb2, 0x4a, 0x52, 0x4e, 0xe2, 0x64, 0xc9, 0xe5, 0x2c, + 0x11, 0xce, 0x19, 0x37, 0x44, 0xdd, 0xc9, 0xe1, 0x5f, 0x48, 0xd9, 0xb8, 0xe2, 0x6b, 0x10, 0x7a, + 0x0a, 0xcd, 0x80, 0x44, 0x84, 0xd3, 0xa9, 0xdb, 0x34, 0x7c, 0xc9, 0x13, 0x5b, 0x97, 0x5e, 0x2e, + 0x12, 0x83, 0x44, 0x67, 0x80, 0x8a, 0x33, 0xe3, 0xb6, 0x94, 0x7e, 0xef, 0x7d, 0x8d, 0x1b, 0x57, + 0xfc, 0xed, 0xc2, 0xb0, 0xc8, 0xa8, 0x97, 0x92, 0x0a, 0x6e, 0xbb, 0x34, 0x6a, 0x45, 0x13, 0x19, + 0xb5, 0x02, 0xad, 0xd6, 0xca, 0xbf, 0x0e, 0x34, 0xcd, 0xc0, 0xeb, 0xea, 0xca, 0xee, 0x9b, 0x86, + 0x17, 0xab, 0x2b, 0x85, 0xba, 0xba, 0x6a, 0x48, 0x46, 0x00, 0x53, 0x16, 0x86, 0x64, 0xaa, 0xf6, + 0x5a, 0xb5, 0x34, 0x7c, 0x63, 0xfc, 0x79, 0x8a, 0x93, 0x4b, 0x79, 0xa5, 0x85, 0xf6, 0xa1, 0x36, + 0xc7, 0x8b, 0x5b, 0x08, 0x6f, 0x94, 0x5f, 0x61, 0xb9, 0x4d, 0x25, 0x0e, 0x21, 0xa8, 0x5f, 0xe1, + 0xf8, 0x4a, 0xf5, 0xbf, 0xed, 0xab, 0xf3, 0x2a, 0x99, 0x53, 0xd8, 0x2e, 0xb8, 0x43, 0x07, 0xd0, + 0xb2, 0x7f, 0x37, 0xd7, 0xe9, 0xd5, 0xee, 0xd8, 0x0e, 0x29, 0xce, 0xfb, 0xcb, 0x01, 0x58, 0xf9, + 0x46, 0xcf, 0x0b, 0x26, 0xbe, 0xbd, 0x35, 0x50, 0x7b, 0x8c, 0x5f, 0x44, 0x82, 0x27, 0x2b, 0x9b, + 0xdd, 0x73, 0xd8, 0x5a, 0x13, 0x49, 0x16, 0x5f, 0x93, 0xc4, 0xb2, 0xf8, 0x9a, 0x24, 0xab, 0x2d, + 0x56, 0xfd, 0x80, 0x2d, 0x76, 0x5c, 0x3d, 0x72, 0xbc, 0xd7, 0xb0, 0x3b, 0xa2, 0xd1, 0x8c, 0x46, + 0x81, 0x9c, 0x83, 0x4c, 0xd6, 0x87, 0xd0, 0x9a, 0x68, 0x81, 0x0d, 0xb9, 0x5b, 0x24, 0x97, 0xd5, + 0xf3, 0x53, 0xac, 0xf7, 0x8f, 0x03, 0x9f, 0x64, 0x24, 0x32, 0xfb, 0xd3, 0x82, 0xa9, 0xc7, 0xb7, + 0x9b, 0x92, 0x15, 0x30, 0x9f, 0xb6, 0x02, 0x56, 0xb9, 0xfb, 0x1b, 0x6c, 0xad, 0x89, 0x4a, 0x2a, + 0xf0, 0x64, 0xbd, 0x02, 0x77, 0xc5, 0x9c, 0xa9, 0xc2, 0x29, 0xb4, 0xd5, 0x7c, 0xbf, 0x8c, 0x2e, + 0x19, 0x3a, 0x06, 0x10, 0x98, 0x07, 0x7a, 0x7f, 0x9a, 0x49, 0xbe, 0x6b, 0xc5, 0x67, 0xd0, 0xde, + 0xdf, 0x55, 0xe8, 0x64, 0x7c, 0x7c, 0x3c, 0x23, 0x7e, 0x2a, 0x61, 0xc4, 0xc3, 0xdb, 0x93, 0xb8, + 0x95, 0x15, 0xc7, 0xd0, 0x5c, 0x70, 0x36, 0xa7, 0xb1, 0xfd, 0x15, 0x3e, 0xc8, 0x19, 0x79, 0xbd, + 0x14, 0x8b, 0xa5, 0xf0, 0xc9, 0x25, 0xe1, 0x24, 0x9a, 0xca, 0x15, 0x6c, 0x15, 0xd0, 0xf7, 0x9a, + 0x51, 0x7a, 0x43, 0x7e, 0x79, 0x67, 0xab, 0x2c, 0xab, 0x06, 0x76, 0x79, 0x6c, 0x94, 0x6e, 0xfa, + 0xb4, 0xb8, 0x85, 0xf5, 0x71, 0x06, 0x4d, 0x63, 0x51, 0x36, 0xf3, 0xc6, 0x14, 0xaa, 0xed, 0xcb, + 0x23, 0x7a, 0x06, 0x4d, 0xd3, 0xfb, 0x0f, 0x68, 0xa7, 0x85, 0x7a, 0x87, 0xb0, 0xf9, 0x33, 0x49, + 0xd4, 0x63, 0xec, 0x0d, 0xa6, 0xbc, 0x64, 0x48, 0x76, 0xb2, 0x43, 0xd2, 0x36, 0x83, 0xe0, 0x3d, + 0x82, 0x2d, 0x9f, 0x08, 0x9e, 0x9c, 0x0b, 0x8e, 0x05, 0x09, 0x12, 0xe4, 0x42, 0x93, 0x13, 0xc1, + 0x29, 0x89, 0x55, 0x5a, 0x5b, 0xbe, 0xfd, 0x1c, 0x1d, 0xfe, 0xfe, 0x2c, 0xa0, 0xe2, 0x6a, 0x39, + 0x19, 0x4c, 0xd9, 0x7c, 0xa8, 0x62, 0x62, 0x3c, 0x18, 0xa6, 0xcf, 0xd0, 0x80, 0x44, 0xc3, 0xc5, + 0x64, 0x3f, 0x60, 0xc3, 0xb5, 0x97, 0xe9, 0xa4, 0xa1, 0x56, 0xfa, 0xd3, 0xff, 0x03, 0x00, 0x00, + 0xff, 0xff, 0xea, 0x75, 0xf9, 0xee, 0x3d, 0x0b, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.validate.go new file mode 100644 index 0000000000..ce6446e643 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.validate.go @@ -0,0 +1,1762 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/literals.proto + +package core + +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 _literals_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 Primitive with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Primitive) Validate() error { + if m == nil { + return nil + } + + switch m.Value.(type) { + + case *Primitive_Integer: + // no validation rules for Integer + + case *Primitive_FloatValue: + // no validation rules for FloatValue + + case *Primitive_StringValue: + // no validation rules for StringValue + + case *Primitive_Boolean: + // no validation rules for Boolean + + case *Primitive_Datetime: + + if v, ok := interface{}(m.GetDatetime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PrimitiveValidationError{ + field: "Datetime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Primitive_Duration: + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PrimitiveValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PrimitiveValidationError is the validation error returned by +// Primitive.Validate if the designated constraints aren't met. +type PrimitiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PrimitiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PrimitiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PrimitiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PrimitiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PrimitiveValidationError) ErrorName() string { return "PrimitiveValidationError" } + +// Error satisfies the builtin error interface +func (e PrimitiveValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPrimitive.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PrimitiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PrimitiveValidationError{} + +// Validate checks the field values on Void with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Void) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// VoidValidationError is the validation error returned by Void.Validate if the +// designated constraints aren't met. +type VoidValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VoidValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VoidValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VoidValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VoidValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VoidValidationError) ErrorName() string { return "VoidValidationError" } + +// Error satisfies the builtin error interface +func (e VoidValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVoid.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VoidValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VoidValidationError{} + +// Validate checks the field values on Blob with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Blob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BlobValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Uri + + return nil +} + +// BlobValidationError is the validation error returned by Blob.Validate if the +// designated constraints aren't met. +type BlobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BlobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BlobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BlobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BlobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BlobValidationError) ErrorName() string { return "BlobValidationError" } + +// Error satisfies the builtin error interface +func (e BlobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBlob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BlobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BlobValidationError{} + +// Validate checks the field values on BlobMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BlobMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BlobMetadataValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BlobMetadataValidationError is the validation error returned by +// BlobMetadata.Validate if the designated constraints aren't met. +type BlobMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BlobMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BlobMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BlobMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BlobMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BlobMetadataValidationError) ErrorName() string { return "BlobMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e BlobMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBlobMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BlobMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BlobMetadataValidationError{} + +// Validate checks the field values on Binary with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Binary) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Value + + // no validation rules for Tag + + return nil +} + +// BinaryValidationError is the validation error returned by Binary.Validate if +// the designated constraints aren't met. +type BinaryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BinaryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BinaryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BinaryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BinaryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BinaryValidationError) ErrorName() string { return "BinaryValidationError" } + +// Error satisfies the builtin error interface +func (e BinaryValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBinary.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BinaryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BinaryValidationError{} + +// Validate checks the field values on Schema with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Schema) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Uri + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SchemaValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SchemaValidationError is the validation error returned by Schema.Validate if +// the designated constraints aren't met. +type SchemaValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SchemaValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SchemaValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SchemaValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SchemaValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SchemaValidationError) ErrorName() string { return "SchemaValidationError" } + +// Error satisfies the builtin error interface +func (e SchemaValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchema.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SchemaValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SchemaValidationError{} + +// Validate checks the field values on Union with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Union) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UnionValidationError{ + field: "Value", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UnionValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// UnionValidationError is the validation error returned by Union.Validate if +// the designated constraints aren't met. +type UnionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UnionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UnionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UnionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UnionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UnionValidationError) ErrorName() string { return "UnionValidationError" } + +// Error satisfies the builtin error interface +func (e UnionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUnion.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UnionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UnionValidationError{} + +// Validate checks the field values on StructuredDatasetMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StructuredDatasetMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetStructuredDatasetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StructuredDatasetMetadataValidationError{ + field: "StructuredDatasetType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StructuredDatasetMetadataValidationError is the validation error returned by +// StructuredDatasetMetadata.Validate if the designated constraints aren't met. +type StructuredDatasetMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StructuredDatasetMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StructuredDatasetMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StructuredDatasetMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StructuredDatasetMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StructuredDatasetMetadataValidationError) ErrorName() string { + return "StructuredDatasetMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e StructuredDatasetMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStructuredDatasetMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StructuredDatasetMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StructuredDatasetMetadataValidationError{} + +// Validate checks the field values on StructuredDataset with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *StructuredDataset) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Uri + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StructuredDatasetValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StructuredDatasetValidationError is the validation error returned by +// StructuredDataset.Validate if the designated constraints aren't met. +type StructuredDatasetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StructuredDatasetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StructuredDatasetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StructuredDatasetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StructuredDatasetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StructuredDatasetValidationError) ErrorName() string { + return "StructuredDatasetValidationError" +} + +// Error satisfies the builtin error interface +func (e StructuredDatasetValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStructuredDataset.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StructuredDatasetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StructuredDatasetValidationError{} + +// Validate checks the field values on Scalar with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Scalar) Validate() error { + if m == nil { + return nil + } + + switch m.Value.(type) { + + case *Scalar_Primitive: + + if v, ok := interface{}(m.GetPrimitive()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Primitive", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Blob: + + if v, ok := interface{}(m.GetBlob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Blob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Binary: + + if v, ok := interface{}(m.GetBinary()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Binary", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Schema: + + if v, ok := interface{}(m.GetSchema()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Schema", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_NoneType: + + if v, ok := interface{}(m.GetNoneType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "NoneType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Generic: + + if v, ok := interface{}(m.GetGeneric()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Generic", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_StructuredDataset: + + if v, ok := interface{}(m.GetStructuredDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "StructuredDataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Union: + + if v, ok := interface{}(m.GetUnion()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Union", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ScalarValidationError is the validation error returned by Scalar.Validate if +// the designated constraints aren't met. +type ScalarValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScalarValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScalarValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ScalarValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScalarValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScalarValidationError) ErrorName() string { return "ScalarValidationError" } + +// Error satisfies the builtin error interface +func (e ScalarValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sScalar.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScalarValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScalarValidationError{} + +// Validate checks the field values on Literal with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Literal) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Hash + + switch m.Value.(type) { + + case *Literal_Scalar: + + if v, ok := interface{}(m.GetScalar()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralValidationError{ + field: "Scalar", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Literal_Collection: + + if v, ok := interface{}(m.GetCollection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralValidationError{ + field: "Collection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Literal_Map: + + if v, ok := interface{}(m.GetMap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralValidationError{ + field: "Map", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LiteralValidationError is the validation error returned by Literal.Validate +// if the designated constraints aren't met. +type LiteralValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralValidationError) ErrorName() string { return "LiteralValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteral.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralValidationError{} + +// Validate checks the field values on LiteralCollection with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LiteralCollection) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetLiterals() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralCollectionValidationError{ + field: fmt.Sprintf("Literals[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LiteralCollectionValidationError is the validation error returned by +// LiteralCollection.Validate if the designated constraints aren't met. +type LiteralCollectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralCollectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralCollectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralCollectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralCollectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralCollectionValidationError) ErrorName() string { + return "LiteralCollectionValidationError" +} + +// Error satisfies the builtin error interface +func (e LiteralCollectionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralCollection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralCollectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralCollectionValidationError{} + +// Validate checks the field values on LiteralMap with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *LiteralMap) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetLiterals() { + _ = val + + // no validation rules for Literals[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralMapValidationError{ + field: fmt.Sprintf("Literals[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LiteralMapValidationError is the validation error returned by +// LiteralMap.Validate if the designated constraints aren't met. +type LiteralMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralMapValidationError) ErrorName() string { return "LiteralMapValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralMapValidationError{} + +// Validate checks the field values on BindingDataCollection with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *BindingDataCollection) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetBindings() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataCollectionValidationError{ + field: fmt.Sprintf("Bindings[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// BindingDataCollectionValidationError is the validation error returned by +// BindingDataCollection.Validate if the designated constraints aren't met. +type BindingDataCollectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingDataCollectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingDataCollectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingDataCollectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingDataCollectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingDataCollectionValidationError) ErrorName() string { + return "BindingDataCollectionValidationError" +} + +// Error satisfies the builtin error interface +func (e BindingDataCollectionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBindingDataCollection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingDataCollectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingDataCollectionValidationError{} + +// Validate checks the field values on BindingDataMap with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BindingDataMap) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetBindings() { + _ = val + + // no validation rules for Bindings[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataMapValidationError{ + field: fmt.Sprintf("Bindings[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// BindingDataMapValidationError is the validation error returned by +// BindingDataMap.Validate if the designated constraints aren't met. +type BindingDataMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingDataMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingDataMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingDataMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingDataMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingDataMapValidationError) ErrorName() string { return "BindingDataMapValidationError" } + +// Error satisfies the builtin error interface +func (e BindingDataMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBindingDataMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingDataMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingDataMapValidationError{} + +// Validate checks the field values on UnionInfo with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *UnionInfo) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTargetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UnionInfoValidationError{ + field: "TargetType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// UnionInfoValidationError is the validation error returned by +// UnionInfo.Validate if the designated constraints aren't met. +type UnionInfoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UnionInfoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UnionInfoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UnionInfoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UnionInfoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UnionInfoValidationError) ErrorName() string { return "UnionInfoValidationError" } + +// Error satisfies the builtin error interface +func (e UnionInfoValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUnionInfo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UnionInfoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UnionInfoValidationError{} + +// Validate checks the field values on BindingData with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BindingData) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetUnion()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Union", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Value.(type) { + + case *BindingData_Scalar: + + if v, ok := interface{}(m.GetScalar()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Scalar", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BindingData_Collection: + + if v, ok := interface{}(m.GetCollection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Collection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BindingData_Promise: + + if v, ok := interface{}(m.GetPromise()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Promise", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BindingData_Map: + + if v, ok := interface{}(m.GetMap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Map", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// BindingDataValidationError is the validation error returned by +// BindingData.Validate if the designated constraints aren't met. +type BindingDataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingDataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingDataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingDataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingDataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingDataValidationError) ErrorName() string { return "BindingDataValidationError" } + +// Error satisfies the builtin error interface +func (e BindingDataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBindingData.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingDataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingDataValidationError{} + +// Validate checks the field values on Binding with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Binding) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Var + + if v, ok := interface{}(m.GetBinding()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingValidationError{ + field: "Binding", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BindingValidationError is the validation error returned by Binding.Validate +// if the designated constraints aren't met. +type BindingValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingValidationError) ErrorName() string { return "BindingValidationError" } + +// Error satisfies the builtin error interface +func (e BindingValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBinding.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingValidationError{} + +// Validate checks the field values on KeyValuePair with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *KeyValuePair) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Key + + // no validation rules for Value + + return nil +} + +// KeyValuePairValidationError is the validation error returned by +// KeyValuePair.Validate if the designated constraints aren't met. +type KeyValuePairValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e KeyValuePairValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e KeyValuePairValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e KeyValuePairValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e KeyValuePairValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e KeyValuePairValidationError) ErrorName() string { return "KeyValuePairValidationError" } + +// Error satisfies the builtin error interface +func (e KeyValuePairValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sKeyValuePair.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = KeyValuePairValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = KeyValuePairValidationError{} + +// Validate checks the field values on RetryStrategy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RetryStrategy) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Retries + + return nil +} + +// RetryStrategyValidationError is the validation error returned by +// RetryStrategy.Validate if the designated constraints aren't met. +type RetryStrategyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RetryStrategyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RetryStrategyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RetryStrategyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RetryStrategyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RetryStrategyValidationError) ErrorName() string { return "RetryStrategyValidationError" } + +// Error satisfies the builtin error interface +func (e RetryStrategyValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRetryStrategy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RetryStrategyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RetryStrategyValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json new file mode 100644 index 0000000000..9e24ec5e5f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/literals.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go new file mode 100644 index 0000000000..981e8ef844 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go @@ -0,0 +1,194 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/metrics.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation +// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more +// precise definitions. +type Span struct { + // start_time defines the instance this span began. + StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // end_time defines the instance this span completed. + EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Types that are valid to be assigned to Id: + // *Span_WorkflowId + // *Span_NodeId + // *Span_TaskId + // *Span_OperationId + Id isSpan_Id `protobuf_oneof:"id"` + // spans defines a collection of Spans that breakdown this execution. + Spans []*Span `protobuf:"bytes,7,rep,name=spans,proto3" json:"spans,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Span) Reset() { *m = Span{} } +func (m *Span) String() string { return proto.CompactTextString(m) } +func (*Span) ProtoMessage() {} +func (*Span) Descriptor() ([]byte, []int) { + return fileDescriptor_756935f796ae3119, []int{0} +} + +func (m *Span) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Span.Unmarshal(m, b) +} +func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Span.Marshal(b, m, deterministic) +} +func (m *Span) XXX_Merge(src proto.Message) { + xxx_messageInfo_Span.Merge(m, src) +} +func (m *Span) XXX_Size() int { + return xxx_messageInfo_Span.Size(m) +} +func (m *Span) XXX_DiscardUnknown() { + xxx_messageInfo_Span.DiscardUnknown(m) +} + +var xxx_messageInfo_Span proto.InternalMessageInfo + +func (m *Span) GetStartTime() *timestamp.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *Span) GetEndTime() *timestamp.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +type isSpan_Id interface { + isSpan_Id() +} + +type Span_WorkflowId struct { + WorkflowId *WorkflowExecutionIdentifier `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3,oneof"` +} + +type Span_NodeId struct { + NodeId *NodeExecutionIdentifier `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3,oneof"` +} + +type Span_TaskId struct { + TaskId *TaskExecutionIdentifier `protobuf:"bytes,5,opt,name=task_id,json=taskId,proto3,oneof"` +} + +type Span_OperationId struct { + OperationId string `protobuf:"bytes,6,opt,name=operation_id,json=operationId,proto3,oneof"` +} + +func (*Span_WorkflowId) isSpan_Id() {} + +func (*Span_NodeId) isSpan_Id() {} + +func (*Span_TaskId) isSpan_Id() {} + +func (*Span_OperationId) isSpan_Id() {} + +func (m *Span) GetId() isSpan_Id { + if m != nil { + return m.Id + } + return nil +} + +func (m *Span) GetWorkflowId() *WorkflowExecutionIdentifier { + if x, ok := m.GetId().(*Span_WorkflowId); ok { + return x.WorkflowId + } + return nil +} + +func (m *Span) GetNodeId() *NodeExecutionIdentifier { + if x, ok := m.GetId().(*Span_NodeId); ok { + return x.NodeId + } + return nil +} + +func (m *Span) GetTaskId() *TaskExecutionIdentifier { + if x, ok := m.GetId().(*Span_TaskId); ok { + return x.TaskId + } + return nil +} + +func (m *Span) GetOperationId() string { + if x, ok := m.GetId().(*Span_OperationId); ok { + return x.OperationId + } + return "" +} + +func (m *Span) GetSpans() []*Span { + if m != nil { + return m.Spans + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Span) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Span_WorkflowId)(nil), + (*Span_NodeId)(nil), + (*Span_TaskId)(nil), + (*Span_OperationId)(nil), + } +} + +func init() { + proto.RegisterType((*Span)(nil), "flyteidl.core.Span") +} + +func init() { proto.RegisterFile("flyteidl/core/metrics.proto", fileDescriptor_756935f796ae3119) } + +var fileDescriptor_756935f796ae3119 = []byte{ + // 338 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4d, 0x4b, 0xeb, 0x40, + 0x14, 0x40, 0xfb, 0xdd, 0xd7, 0xc9, 0x7b, 0x9b, 0xbc, 0x4d, 0xe9, 0x83, 0x67, 0x51, 0x90, 0x2a, + 0x38, 0x03, 0xf5, 0x03, 0x5c, 0x5a, 0x10, 0x9a, 0x85, 0x2e, 0x62, 0x41, 0x70, 0x53, 0x92, 0xcc, + 0x4d, 0x1c, 0x9a, 0xcc, 0x0d, 0x33, 0x53, 0xaa, 0xbf, 0xc7, 0x3f, 0x2a, 0x33, 0x31, 0x85, 0x96, + 0x8a, 0xcb, 0xc9, 0x9c, 0x73, 0xc2, 0xcd, 0x0d, 0xf9, 0x97, 0xe6, 0xef, 0x06, 0x04, 0xcf, 0x59, + 0x82, 0x0a, 0x58, 0x01, 0x46, 0x89, 0x44, 0xd3, 0x52, 0xa1, 0x41, 0xff, 0x4f, 0x7d, 0x49, 0xed, + 0xe5, 0xe8, 0xff, 0x2e, 0x2b, 0x38, 0x48, 0x23, 0x52, 0x01, 0xaa, 0xc2, 0x47, 0x47, 0x19, 0x62, + 0x96, 0x03, 0x73, 0xa7, 0x78, 0x9d, 0x32, 0x23, 0x0a, 0xd0, 0x26, 0x2a, 0xca, 0x0a, 0x38, 0xfe, + 0x68, 0x93, 0xce, 0x53, 0x19, 0x49, 0xff, 0x96, 0x10, 0x6d, 0x22, 0x65, 0x96, 0x96, 0x18, 0x36, + 0xc7, 0xcd, 0x89, 0x37, 0x1d, 0xd1, 0x4a, 0xa7, 0xb5, 0x4e, 0x17, 0xb5, 0x1e, 0x0e, 0x1c, 0x6d, + 0xcf, 0xfe, 0x35, 0xf9, 0x05, 0x92, 0x57, 0x62, 0xeb, 0x47, 0xb1, 0x0f, 0x92, 0x3b, 0xed, 0x81, + 0x78, 0x1b, 0x54, 0xab, 0x34, 0xc7, 0xcd, 0x52, 0xf0, 0x61, 0xdb, 0x99, 0xe7, 0x74, 0x67, 0x40, + 0xfa, 0xfc, 0x45, 0xdc, 0xbf, 0x41, 0xb2, 0x36, 0x02, 0x65, 0xb0, 0x1d, 0x71, 0xde, 0x08, 0x49, + 0x1d, 0x08, 0xb8, 0x7f, 0x47, 0xfa, 0x12, 0x39, 0xd8, 0x54, 0xc7, 0xa5, 0x4e, 0xf7, 0x52, 0x8f, + 0xc8, 0xe1, 0x70, 0xa6, 0x67, 0xc5, 0x2a, 0x61, 0x22, 0xbd, 0xb2, 0x89, 0xee, 0xc1, 0xc4, 0x22, + 0xd2, 0xab, 0x6f, 0x12, 0x56, 0x0c, 0xb8, 0x7f, 0x42, 0x7e, 0x63, 0x09, 0x2a, 0xb2, 0x80, 0xed, + 0xf4, 0xc6, 0xcd, 0xc9, 0x60, 0xde, 0x08, 0xbd, 0xed, 0xd3, 0x80, 0xfb, 0x67, 0xa4, 0xab, 0xcb, + 0x48, 0xea, 0x61, 0x7f, 0xdc, 0x9e, 0x78, 0xd3, 0xbf, 0x7b, 0x6f, 0xb1, 0xfb, 0x08, 0x2b, 0x62, + 0xd6, 0x21, 0x2d, 0xc1, 0x67, 0x37, 0x2f, 0x57, 0x99, 0x30, 0xaf, 0xeb, 0x98, 0x26, 0x58, 0x30, + 0x47, 0xa3, 0xca, 0xd8, 0x76, 0xf9, 0x19, 0x48, 0x56, 0xc6, 0x17, 0x19, 0xb2, 0x9d, 0xff, 0x21, + 0xee, 0xb9, 0xef, 0x7f, 0xf9, 0x19, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x94, 0xbf, 0x5a, 0x53, 0x02, + 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.validate.go new file mode 100644 index 0000000000..3c14669ee8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.validate.go @@ -0,0 +1,179 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/metrics.proto + +package core + +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 _metrics_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 Span with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Span) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetStartTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SpanValidationError{ + field: "StartTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetEndTime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SpanValidationError{ + field: "EndTime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSpans() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SpanValidationError{ + field: fmt.Sprintf("Spans[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.Id.(type) { + + case *Span_WorkflowId: + + if v, ok := interface{}(m.GetWorkflowId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SpanValidationError{ + field: "WorkflowId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Span_NodeId: + + if v, ok := interface{}(m.GetNodeId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SpanValidationError{ + field: "NodeId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Span_TaskId: + + if v, ok := interface{}(m.GetTaskId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SpanValidationError{ + field: "TaskId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Span_OperationId: + // no validation rules for OperationId + + } + + return nil +} + +// SpanValidationError is the validation error returned by Span.Validate if the +// designated constraints aren't met. +type SpanValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SpanValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SpanValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SpanValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SpanValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SpanValidationError) ErrorName() string { return "SpanValidationError" } + +// Error satisfies the builtin error interface +func (e SpanValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSpan.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SpanValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SpanValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/metrics.swagger.json new file mode 100644 index 0000000000..f6b3727f91 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/metrics.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/metrics.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/security.pb.go b/flyteidl/gen/pb-go/flyteidl/core/security.pb.go new file mode 100644 index 0000000000..73156fca15 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/security.pb.go @@ -0,0 +1,491 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/security.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 Secret_MountType int32 + +const ( + // Default case, indicates the client can tolerate either mounting options. + Secret_ANY Secret_MountType = 0 + // ENV_VAR indicates the secret needs to be mounted as an environment variable. + Secret_ENV_VAR Secret_MountType = 1 + // FILE indicates the secret needs to be mounted as a file. + Secret_FILE Secret_MountType = 2 +) + +var Secret_MountType_name = map[int32]string{ + 0: "ANY", + 1: "ENV_VAR", + 2: "FILE", +} + +var Secret_MountType_value = map[string]int32{ + "ANY": 0, + "ENV_VAR": 1, + "FILE": 2, +} + +func (x Secret_MountType) String() string { + return proto.EnumName(Secret_MountType_name, int32(x)) +} + +func (Secret_MountType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0996009b6d39c02f, []int{0, 0} +} + +// Type of the token requested. +type OAuth2TokenRequest_Type int32 + +const ( + // CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. + OAuth2TokenRequest_CLIENT_CREDENTIALS OAuth2TokenRequest_Type = 0 +) + +var OAuth2TokenRequest_Type_name = map[int32]string{ + 0: "CLIENT_CREDENTIALS", +} + +var OAuth2TokenRequest_Type_value = map[string]int32{ + "CLIENT_CREDENTIALS": 0, +} + +func (x OAuth2TokenRequest_Type) String() string { + return proto.EnumName(OAuth2TokenRequest_Type_name, int32(x)) +} + +func (OAuth2TokenRequest_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0996009b6d39c02f, []int{3, 0} +} + +// Secret encapsulates information about the secret a task needs to proceed. An environment variable +// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +// secrets are passed through environment variables. +// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets +// are passed through file mounts. +type Secret struct { + // The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of + // the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. + // For AWS Secret Manager, this should be the name of the secret. + // +required + Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones + // that do not support it. + // +optional + GroupVersion string `protobuf:"bytes,2,opt,name=group_version,json=groupVersion,proto3" json:"group_version,omitempty"` + // The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation + // of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should + // match one of the keys inside the secret. For AWS Secret Manager, it's ignored. + // +optional + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail + // if the underlying key management system cannot satisfy that requirement. If not provided, the default location + // will depend on the key management system. + // +optional + MountRequirement Secret_MountType `protobuf:"varint,4,opt,name=mount_requirement,json=mountRequirement,proto3,enum=flyteidl.core.Secret_MountType" json:"mount_requirement,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Secret) Reset() { *m = Secret{} } +func (m *Secret) String() string { return proto.CompactTextString(m) } +func (*Secret) ProtoMessage() {} +func (*Secret) Descriptor() ([]byte, []int) { + return fileDescriptor_0996009b6d39c02f, []int{0} +} + +func (m *Secret) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Secret.Unmarshal(m, b) +} +func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Secret.Marshal(b, m, deterministic) +} +func (m *Secret) XXX_Merge(src proto.Message) { + xxx_messageInfo_Secret.Merge(m, src) +} +func (m *Secret) XXX_Size() int { + return xxx_messageInfo_Secret.Size(m) +} +func (m *Secret) XXX_DiscardUnknown() { + xxx_messageInfo_Secret.DiscardUnknown(m) +} + +var xxx_messageInfo_Secret proto.InternalMessageInfo + +func (m *Secret) GetGroup() string { + if m != nil { + return m.Group + } + return "" +} + +func (m *Secret) GetGroupVersion() string { + if m != nil { + return m.GroupVersion + } + return "" +} + +func (m *Secret) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Secret) GetMountRequirement() Secret_MountType { + if m != nil { + return m.MountRequirement + } + return Secret_ANY +} + +// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. +type OAuth2Client struct { + // client_id is the public id for the client to use. The system will not perform any pre-auth validation that the + // secret requested matches the client_id indicated here. + // +required + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // client_secret is a reference to the secret used to authenticate the OAuth2 client. + // +required + ClientSecret *Secret `protobuf:"bytes,2,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 *OAuth2Client) Reset() { *m = OAuth2Client{} } +func (m *OAuth2Client) String() string { return proto.CompactTextString(m) } +func (*OAuth2Client) ProtoMessage() {} +func (*OAuth2Client) Descriptor() ([]byte, []int) { + return fileDescriptor_0996009b6d39c02f, []int{1} +} + +func (m *OAuth2Client) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OAuth2Client.Unmarshal(m, b) +} +func (m *OAuth2Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OAuth2Client.Marshal(b, m, deterministic) +} +func (m *OAuth2Client) XXX_Merge(src proto.Message) { + xxx_messageInfo_OAuth2Client.Merge(m, src) +} +func (m *OAuth2Client) XXX_Size() int { + return xxx_messageInfo_OAuth2Client.Size(m) +} +func (m *OAuth2Client) XXX_DiscardUnknown() { + xxx_messageInfo_OAuth2Client.DiscardUnknown(m) +} + +var xxx_messageInfo_OAuth2Client proto.InternalMessageInfo + +func (m *OAuth2Client) GetClientId() string { + if m != nil { + return m.ClientId + } + return "" +} + +func (m *OAuth2Client) GetClientSecret() *Secret { + if m != nil { + return m.ClientSecret + } + return nil +} + +// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the +// right identity for the execution environment. +type Identity struct { + // iam_role references the fully qualified name of Identity & Access Management role to impersonate. + IamRole string `protobuf:"bytes,1,opt,name=iam_role,json=iamRole,proto3" json:"iam_role,omitempty"` + // k8s_service_account references a kubernetes service account to impersonate. + K8SServiceAccount string `protobuf:"bytes,2,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` + // oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when + // making external calls. + Oauth2Client *OAuth2Client `protobuf:"bytes,3,opt,name=oauth2_client,json=oauth2Client,proto3" json:"oauth2_client,omitempty"` + // execution_identity references the subject who makes the execution + ExecutionIdentity string `protobuf:"bytes,4,opt,name=execution_identity,json=executionIdentity,proto3" json:"execution_identity,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Identity) Reset() { *m = Identity{} } +func (m *Identity) String() string { return proto.CompactTextString(m) } +func (*Identity) ProtoMessage() {} +func (*Identity) Descriptor() ([]byte, []int) { + return fileDescriptor_0996009b6d39c02f, []int{2} +} + +func (m *Identity) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Identity.Unmarshal(m, b) +} +func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Identity.Marshal(b, m, deterministic) +} +func (m *Identity) XXX_Merge(src proto.Message) { + xxx_messageInfo_Identity.Merge(m, src) +} +func (m *Identity) XXX_Size() int { + return xxx_messageInfo_Identity.Size(m) +} +func (m *Identity) XXX_DiscardUnknown() { + xxx_messageInfo_Identity.DiscardUnknown(m) +} + +var xxx_messageInfo_Identity proto.InternalMessageInfo + +func (m *Identity) GetIamRole() string { + if m != nil { + return m.IamRole + } + return "" +} + +func (m *Identity) GetK8SServiceAccount() string { + if m != nil { + return m.K8SServiceAccount + } + return "" +} + +func (m *Identity) GetOauth2Client() *OAuth2Client { + if m != nil { + return m.Oauth2Client + } + return nil +} + +func (m *Identity) GetExecutionIdentity() string { + if m != nil { + return m.ExecutionIdentity + } + return "" +} + +// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. +// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +// tokens are passed through environment variables. +// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens +// are passed through file mounts. +type OAuth2TokenRequest struct { + // name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for + // environment variables and as a filename for mounting tokens as files. + // +required + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. + // +required + Type OAuth2TokenRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.OAuth2TokenRequest_Type" json:"type,omitempty"` + // client references the client_id/secret to use to request the OAuth2 token. + // +required + Client *OAuth2Client `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"` + // idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related + // information. + // +optional + IdpDiscoveryEndpoint string `protobuf:"bytes,4,opt,name=idp_discovery_endpoint,json=idpDiscoveryEndpoint,proto3" json:"idp_discovery_endpoint,omitempty"` + // token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is + // mandatory. + // +optional + TokenEndpoint string `protobuf:"bytes,5,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OAuth2TokenRequest) Reset() { *m = OAuth2TokenRequest{} } +func (m *OAuth2TokenRequest) String() string { return proto.CompactTextString(m) } +func (*OAuth2TokenRequest) ProtoMessage() {} +func (*OAuth2TokenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_0996009b6d39c02f, []int{3} +} + +func (m *OAuth2TokenRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OAuth2TokenRequest.Unmarshal(m, b) +} +func (m *OAuth2TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OAuth2TokenRequest.Marshal(b, m, deterministic) +} +func (m *OAuth2TokenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OAuth2TokenRequest.Merge(m, src) +} +func (m *OAuth2TokenRequest) XXX_Size() int { + return xxx_messageInfo_OAuth2TokenRequest.Size(m) +} +func (m *OAuth2TokenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OAuth2TokenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_OAuth2TokenRequest proto.InternalMessageInfo + +func (m *OAuth2TokenRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *OAuth2TokenRequest) GetType() OAuth2TokenRequest_Type { + if m != nil { + return m.Type + } + return OAuth2TokenRequest_CLIENT_CREDENTIALS +} + +func (m *OAuth2TokenRequest) GetClient() *OAuth2Client { + if m != nil { + return m.Client + } + return nil +} + +func (m *OAuth2TokenRequest) GetIdpDiscoveryEndpoint() string { + if m != nil { + return m.IdpDiscoveryEndpoint + } + return "" +} + +func (m *OAuth2TokenRequest) GetTokenEndpoint() string { + if m != nil { + return m.TokenEndpoint + } + return "" +} + +// SecurityContext holds security attributes that apply to tasks. +type SecurityContext struct { + // run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the + // backend plugin to choose the appropriate identity for the execution engine the task will run on. + RunAs *Identity `protobuf:"bytes,1,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` + // secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the + // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + // to the secret) and to pass it to the remote execution engine. + Secrets []*Secret `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty"` + // tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the + // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + // to the secret) and to pass it to the remote execution engine. + Tokens []*OAuth2TokenRequest `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SecurityContext) Reset() { *m = SecurityContext{} } +func (m *SecurityContext) String() string { return proto.CompactTextString(m) } +func (*SecurityContext) ProtoMessage() {} +func (*SecurityContext) Descriptor() ([]byte, []int) { + return fileDescriptor_0996009b6d39c02f, []int{4} +} + +func (m *SecurityContext) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SecurityContext.Unmarshal(m, b) +} +func (m *SecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SecurityContext.Marshal(b, m, deterministic) +} +func (m *SecurityContext) XXX_Merge(src proto.Message) { + xxx_messageInfo_SecurityContext.Merge(m, src) +} +func (m *SecurityContext) XXX_Size() int { + return xxx_messageInfo_SecurityContext.Size(m) +} +func (m *SecurityContext) XXX_DiscardUnknown() { + xxx_messageInfo_SecurityContext.DiscardUnknown(m) +} + +var xxx_messageInfo_SecurityContext proto.InternalMessageInfo + +func (m *SecurityContext) GetRunAs() *Identity { + if m != nil { + return m.RunAs + } + return nil +} + +func (m *SecurityContext) GetSecrets() []*Secret { + if m != nil { + return m.Secrets + } + return nil +} + +func (m *SecurityContext) GetTokens() []*OAuth2TokenRequest { + if m != nil { + return m.Tokens + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.core.Secret_MountType", Secret_MountType_name, Secret_MountType_value) + proto.RegisterEnum("flyteidl.core.OAuth2TokenRequest_Type", OAuth2TokenRequest_Type_name, OAuth2TokenRequest_Type_value) + proto.RegisterType((*Secret)(nil), "flyteidl.core.Secret") + proto.RegisterType((*OAuth2Client)(nil), "flyteidl.core.OAuth2Client") + proto.RegisterType((*Identity)(nil), "flyteidl.core.Identity") + proto.RegisterType((*OAuth2TokenRequest)(nil), "flyteidl.core.OAuth2TokenRequest") + proto.RegisterType((*SecurityContext)(nil), "flyteidl.core.SecurityContext") +} + +func init() { proto.RegisterFile("flyteidl/core/security.proto", fileDescriptor_0996009b6d39c02f) } + +var fileDescriptor_0996009b6d39c02f = []byte{ + // 597 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdb, 0x6e, 0xd3, 0x40, + 0x10, 0x6d, 0x2e, 0xcd, 0x65, 0x92, 0x94, 0x74, 0x28, 0x25, 0xa8, 0x08, 0x8a, 0x11, 0xa8, 0x12, + 0xaa, 0x2d, 0xa5, 0x15, 0x2a, 0x7d, 0x22, 0xa4, 0x41, 0x8a, 0x14, 0x82, 0xe4, 0x44, 0x95, 0xe0, + 0x65, 0x95, 0xda, 0x43, 0xba, 0x4a, 0xb2, 0x6b, 0xd6, 0xeb, 0xaa, 0xfe, 0x11, 0xfe, 0x82, 0xdf, + 0xe0, 0x99, 0x4f, 0x42, 0x5e, 0xdb, 0xbd, 0xa9, 0x08, 0xde, 0xc6, 0x73, 0xce, 0xec, 0x9e, 0x73, + 0x32, 0x59, 0x78, 0xfa, 0x6d, 0x19, 0x6b, 0xe2, 0xfe, 0xd2, 0xf1, 0xa4, 0x22, 0x27, 0x24, 0x2f, + 0x52, 0x5c, 0xc7, 0x76, 0xa0, 0xa4, 0x96, 0xd8, 0xca, 0x51, 0x3b, 0x41, 0xad, 0xdf, 0x05, 0xa8, + 0x4c, 0xc8, 0x53, 0xa4, 0x71, 0x0b, 0xd6, 0xe7, 0x4a, 0x46, 0x41, 0xa7, 0xb0, 0x5b, 0xd8, 0xab, + 0xbb, 0xe9, 0x07, 0xbe, 0x84, 0x96, 0x29, 0xd8, 0x05, 0xa9, 0x90, 0x4b, 0xd1, 0x29, 0x1a, 0xb4, + 0x69, 0x9a, 0xa7, 0x69, 0x0f, 0xdb, 0x50, 0x5a, 0x50, 0xdc, 0x29, 0x19, 0x28, 0x29, 0x71, 0x04, + 0x9b, 0x2b, 0x19, 0x09, 0xcd, 0x14, 0x7d, 0x8f, 0xb8, 0xa2, 0x15, 0x09, 0xdd, 0x29, 0xef, 0x16, + 0xf6, 0x36, 0xba, 0xcf, 0xed, 0x5b, 0x12, 0xec, 0xf4, 0x7a, 0xfb, 0x53, 0x42, 0x9f, 0xc6, 0x01, + 0xb9, 0x6d, 0x33, 0xe9, 0x5e, 0x0f, 0x5a, 0x6f, 0xa0, 0x7e, 0x05, 0x63, 0x15, 0x4a, 0xbd, 0xf1, + 0x97, 0xf6, 0x1a, 0x36, 0xa0, 0x3a, 0x18, 0x9f, 0xb2, 0xd3, 0x9e, 0xdb, 0x2e, 0x60, 0x0d, 0xca, + 0x1f, 0x87, 0xa3, 0x41, 0xbb, 0x68, 0xcd, 0xa1, 0xf9, 0xb9, 0x17, 0xe9, 0xf3, 0x6e, 0x7f, 0xc9, + 0x49, 0x68, 0xdc, 0x81, 0xba, 0x67, 0x2a, 0xc6, 0xfd, 0xcc, 0x5b, 0x2d, 0x6d, 0x0c, 0x7d, 0x3c, + 0x86, 0x56, 0x06, 0x86, 0x46, 0x86, 0xb1, 0xd7, 0xe8, 0x3e, 0xba, 0x57, 0xa3, 0xdb, 0x4c, 0xb9, + 0xe9, 0x97, 0xf5, 0xab, 0x00, 0xb5, 0xa1, 0x4f, 0x42, 0x73, 0x1d, 0xe3, 0x13, 0xa8, 0xf1, 0xd9, + 0x8a, 0x29, 0xb9, 0xa4, 0xec, 0x92, 0x2a, 0x9f, 0xad, 0x5c, 0xb9, 0x24, 0xb4, 0xe1, 0xe1, 0xe2, + 0x28, 0x64, 0x21, 0xa9, 0x0b, 0xee, 0x11, 0x9b, 0x79, 0x5e, 0xe2, 0x25, 0x0b, 0x72, 0x73, 0x71, + 0x14, 0x4e, 0x52, 0xa4, 0x97, 0x02, 0xf8, 0x1e, 0x5a, 0x72, 0x96, 0x18, 0x60, 0xe9, 0x75, 0x26, + 0xd7, 0x46, 0x77, 0xe7, 0x8e, 0xa6, 0x9b, 0x26, 0xdd, 0x66, 0x3a, 0x91, 0x59, 0xde, 0x07, 0xa4, + 0x4b, 0xf2, 0x22, 0xcd, 0xa5, 0x60, 0x3c, 0x93, 0x68, 0xe2, 0xaf, 0xbb, 0x9b, 0x57, 0x48, 0xae, + 0xdd, 0xfa, 0x51, 0x04, 0x4c, 0x4f, 0x9b, 0xca, 0x05, 0x89, 0x24, 0x79, 0x0a, 0x35, 0x22, 0x94, + 0xc5, 0x6c, 0x95, 0xdb, 0x31, 0x35, 0x1e, 0x43, 0x59, 0xc7, 0x01, 0x19, 0xf1, 0x1b, 0xdd, 0xd7, + 0xf7, 0x4a, 0xba, 0x79, 0x88, 0x6d, 0x7e, 0x51, 0x33, 0x83, 0x07, 0x50, 0xf9, 0x7f, 0x43, 0x19, + 0x15, 0x0f, 0x61, 0x9b, 0xfb, 0x01, 0xf3, 0x79, 0xe8, 0xc9, 0x0b, 0x52, 0x31, 0x23, 0xe1, 0x07, + 0x92, 0x67, 0xdb, 0x54, 0x77, 0xb7, 0xb8, 0x1f, 0x9c, 0xe4, 0xe0, 0x20, 0xc3, 0xf0, 0x15, 0x6c, + 0xe8, 0x44, 0xc5, 0x35, 0x7b, 0xdd, 0xb0, 0x5b, 0xa6, 0x9b, 0xd3, 0xac, 0x67, 0x50, 0x36, 0x2b, + 0xb5, 0x0d, 0xd8, 0x1f, 0x0d, 0x07, 0xe3, 0x29, 0xeb, 0xbb, 0x83, 0x93, 0xc1, 0x78, 0x3a, 0xec, + 0x8d, 0x26, 0xed, 0x35, 0xeb, 0x67, 0x01, 0x1e, 0x4c, 0xb2, 0xff, 0x4f, 0x5f, 0x0a, 0x4d, 0x97, + 0x1a, 0x6d, 0xa8, 0xa8, 0x48, 0xb0, 0x59, 0x68, 0x72, 0x69, 0x74, 0x1f, 0xdf, 0x71, 0x91, 0xa7, + 0xea, 0xae, 0xab, 0x48, 0xf4, 0x42, 0x74, 0xa0, 0x9a, 0xae, 0x56, 0xd8, 0x29, 0xee, 0x96, 0xfe, + 0xbe, 0x5b, 0x39, 0x0b, 0xdf, 0x41, 0xc5, 0xa8, 0x0c, 0x3b, 0x25, 0xc3, 0x7f, 0xf1, 0xcf, 0x90, + 0xdd, 0x6c, 0xe0, 0xc3, 0xdb, 0xaf, 0x87, 0x73, 0xae, 0xcf, 0xa3, 0x33, 0xdb, 0x93, 0x2b, 0xc7, + 0x8c, 0x49, 0x35, 0x77, 0xae, 0x1e, 0x84, 0x39, 0x09, 0x27, 0x38, 0xdb, 0x9f, 0x4b, 0xe7, 0xd6, + 0x1b, 0x71, 0x56, 0x31, 0x6f, 0xc3, 0xc1, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, 0x75, 0x0b, + 0x98, 0x3b, 0x04, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/security.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/security.pb.validate.go new file mode 100644 index 0000000000..139c056aad --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/security.pb.validate.go @@ -0,0 +1,456 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/security.proto + +package core + +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 _security_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 Secret with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Secret) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Group + + // no validation rules for GroupVersion + + // no validation rules for Key + + // no validation rules for MountRequirement + + return nil +} + +// SecretValidationError is the validation error returned by Secret.Validate if +// the designated constraints aren't met. +type SecretValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecretValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecretValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecretValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecretValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecretValidationError) ErrorName() string { return "SecretValidationError" } + +// Error satisfies the builtin error interface +func (e SecretValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSecret.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecretValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecretValidationError{} + +// Validate checks the field values on OAuth2Client with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *OAuth2Client) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ClientId + + if v, ok := interface{}(m.GetClientSecret()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OAuth2ClientValidationError{ + field: "ClientSecret", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// OAuth2ClientValidationError is the validation error returned by +// OAuth2Client.Validate if the designated constraints aren't met. +type OAuth2ClientValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OAuth2ClientValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OAuth2ClientValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OAuth2ClientValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OAuth2ClientValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OAuth2ClientValidationError) ErrorName() string { return "OAuth2ClientValidationError" } + +// Error satisfies the builtin error interface +func (e OAuth2ClientValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sOAuth2Client.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OAuth2ClientValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OAuth2ClientValidationError{} + +// Validate checks the field values on Identity with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Identity) Validate() error { + if m == nil { + return nil + } + + // no validation rules for IamRole + + // no validation rules for K8SServiceAccount + + if v, ok := interface{}(m.GetOauth2Client()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IdentityValidationError{ + field: "Oauth2Client", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ExecutionIdentity + + return nil +} + +// IdentityValidationError is the validation error returned by +// Identity.Validate if the designated constraints aren't met. +type IdentityValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IdentityValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IdentityValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IdentityValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IdentityValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IdentityValidationError) ErrorName() string { return "IdentityValidationError" } + +// Error satisfies the builtin error interface +func (e IdentityValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIdentity.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IdentityValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IdentityValidationError{} + +// Validate checks the field values on OAuth2TokenRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *OAuth2TokenRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Type + + if v, ok := interface{}(m.GetClient()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OAuth2TokenRequestValidationError{ + field: "Client", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for IdpDiscoveryEndpoint + + // no validation rules for TokenEndpoint + + return nil +} + +// OAuth2TokenRequestValidationError is the validation error returned by +// OAuth2TokenRequest.Validate if the designated constraints aren't met. +type OAuth2TokenRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OAuth2TokenRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OAuth2TokenRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OAuth2TokenRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OAuth2TokenRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OAuth2TokenRequestValidationError) ErrorName() string { + return "OAuth2TokenRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e OAuth2TokenRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sOAuth2TokenRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OAuth2TokenRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OAuth2TokenRequestValidationError{} + +// Validate checks the field values on SecurityContext with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SecurityContext) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRunAs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecurityContextValidationError{ + field: "RunAs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSecrets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecurityContextValidationError{ + field: fmt.Sprintf("Secrets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetTokens() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecurityContextValidationError{ + field: fmt.Sprintf("Tokens[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SecurityContextValidationError is the validation error returned by +// SecurityContext.Validate if the designated constraints aren't met. +type SecurityContextValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecurityContextValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecurityContextValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecurityContextValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecurityContextValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecurityContextValidationError) ErrorName() string { return "SecurityContextValidationError" } + +// Error satisfies the builtin error interface +func (e SecurityContextValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSecurityContext.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecurityContextValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecurityContextValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/security.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/security.swagger.json new file mode 100644 index 0000000000..687a127245 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/security.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/security.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go new file mode 100644 index 0000000000..157b7f3bfd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go @@ -0,0 +1,1368 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/tasks.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _struct "github.com/golang/protobuf/ptypes/struct" + 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 + +// Known resource names. +type Resources_ResourceName int32 + +const ( + Resources_UNKNOWN Resources_ResourceName = 0 + Resources_CPU Resources_ResourceName = 1 + Resources_GPU Resources_ResourceName = 2 + Resources_MEMORY Resources_ResourceName = 3 + Resources_STORAGE Resources_ResourceName = 4 + // For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. + Resources_EPHEMERAL_STORAGE Resources_ResourceName = 5 +) + +var Resources_ResourceName_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CPU", + 2: "GPU", + 3: "MEMORY", + 4: "STORAGE", + 5: "EPHEMERAL_STORAGE", +} + +var Resources_ResourceName_value = map[string]int32{ + "UNKNOWN": 0, + "CPU": 1, + "GPU": 2, + "MEMORY": 3, + "STORAGE": 4, + "EPHEMERAL_STORAGE": 5, +} + +func (x Resources_ResourceName) String() string { + return proto.EnumName(Resources_ResourceName_name, int32(x)) +} + +func (Resources_ResourceName) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{0, 0} +} + +type RuntimeMetadata_RuntimeType int32 + +const ( + RuntimeMetadata_OTHER RuntimeMetadata_RuntimeType = 0 + RuntimeMetadata_FLYTE_SDK RuntimeMetadata_RuntimeType = 1 +) + +var RuntimeMetadata_RuntimeType_name = map[int32]string{ + 0: "OTHER", + 1: "FLYTE_SDK", +} + +var RuntimeMetadata_RuntimeType_value = map[string]int32{ + "OTHER": 0, + "FLYTE_SDK": 1, +} + +func (x RuntimeMetadata_RuntimeType) String() string { + return proto.EnumName(RuntimeMetadata_RuntimeType_name, int32(x)) +} + +func (RuntimeMetadata_RuntimeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{1, 0} +} + +// Architecture-type the container image supports. +type Container_Architecture int32 + +const ( + Container_UNKNOWN Container_Architecture = 0 + Container_AMD64 Container_Architecture = 1 + Container_ARM64 Container_Architecture = 2 + Container_ARM_V6 Container_Architecture = 3 + Container_ARM_V7 Container_Architecture = 4 +) + +var Container_Architecture_name = map[int32]string{ + 0: "UNKNOWN", + 1: "AMD64", + 2: "ARM64", + 3: "ARM_V6", + 4: "ARM_V7", +} + +var Container_Architecture_value = map[string]int32{ + "UNKNOWN": 0, + "AMD64": 1, + "ARM64": 2, + "ARM_V6": 3, + "ARM_V7": 4, +} + +func (x Container_Architecture) String() string { + return proto.EnumName(Container_Architecture_name, int32(x)) +} + +func (Container_Architecture) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{5, 0} +} + +// Mode to use for downloading +type IOStrategy_DownloadMode int32 + +const ( + // All data will be downloaded before the main container is executed + IOStrategy_DOWNLOAD_EAGER IOStrategy_DownloadMode = 0 + // Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details + IOStrategy_DOWNLOAD_STREAM IOStrategy_DownloadMode = 1 + // Large objects (offloaded) will not be downloaded + IOStrategy_DO_NOT_DOWNLOAD IOStrategy_DownloadMode = 2 +) + +var IOStrategy_DownloadMode_name = map[int32]string{ + 0: "DOWNLOAD_EAGER", + 1: "DOWNLOAD_STREAM", + 2: "DO_NOT_DOWNLOAD", +} + +var IOStrategy_DownloadMode_value = map[string]int32{ + "DOWNLOAD_EAGER": 0, + "DOWNLOAD_STREAM": 1, + "DO_NOT_DOWNLOAD": 2, +} + +func (x IOStrategy_DownloadMode) String() string { + return proto.EnumName(IOStrategy_DownloadMode_name, int32(x)) +} + +func (IOStrategy_DownloadMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{6, 0} +} + +// Mode to use for uploading +type IOStrategy_UploadMode int32 + +const ( + // All data will be uploaded after the main container exits + IOStrategy_UPLOAD_ON_EXIT IOStrategy_UploadMode = 0 + // Data will be uploaded as it appears. Refer to protocol specification for details + IOStrategy_UPLOAD_EAGER IOStrategy_UploadMode = 1 + // Data will not be uploaded, only references will be written + IOStrategy_DO_NOT_UPLOAD IOStrategy_UploadMode = 2 +) + +var IOStrategy_UploadMode_name = map[int32]string{ + 0: "UPLOAD_ON_EXIT", + 1: "UPLOAD_EAGER", + 2: "DO_NOT_UPLOAD", +} + +var IOStrategy_UploadMode_value = map[string]int32{ + "UPLOAD_ON_EXIT": 0, + "UPLOAD_EAGER": 1, + "DO_NOT_UPLOAD": 2, +} + +func (x IOStrategy_UploadMode) String() string { + return proto.EnumName(IOStrategy_UploadMode_name, int32(x)) +} + +func (IOStrategy_UploadMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{6, 1} +} + +// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. +// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. +// JSON and YAML do not need any protobuf definitions to read it +// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) +type DataLoadingConfig_LiteralMapFormat int32 + +const ( + // JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html + DataLoadingConfig_JSON DataLoadingConfig_LiteralMapFormat = 0 + DataLoadingConfig_YAML DataLoadingConfig_LiteralMapFormat = 1 + // Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core + DataLoadingConfig_PROTO DataLoadingConfig_LiteralMapFormat = 2 +) + +var DataLoadingConfig_LiteralMapFormat_name = map[int32]string{ + 0: "JSON", + 1: "YAML", + 2: "PROTO", +} + +var DataLoadingConfig_LiteralMapFormat_value = map[string]int32{ + "JSON": 0, + "YAML": 1, + "PROTO": 2, +} + +func (x DataLoadingConfig_LiteralMapFormat) String() string { + return proto.EnumName(DataLoadingConfig_LiteralMapFormat_name, int32(x)) +} + +func (DataLoadingConfig_LiteralMapFormat) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{7, 0} +} + +// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid +// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. +// We support the following dialect: ansi, hive. +type Sql_Dialect int32 + +const ( + Sql_UNDEFINED Sql_Dialect = 0 + Sql_ANSI Sql_Dialect = 1 + Sql_HIVE Sql_Dialect = 2 + Sql_OTHER Sql_Dialect = 3 +) + +var Sql_Dialect_name = map[int32]string{ + 0: "UNDEFINED", + 1: "ANSI", + 2: "HIVE", + 3: "OTHER", +} + +var Sql_Dialect_value = map[string]int32{ + "UNDEFINED": 0, + "ANSI": 1, + "HIVE": 2, + "OTHER": 3, +} + +func (x Sql_Dialect) String() string { + return proto.EnumName(Sql_Dialect_name, int32(x)) +} + +func (Sql_Dialect) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{10, 0} +} + +// A customizable interface to convey resources requested for a container. This can be interpreted differently for different +// container engines. +type Resources struct { + // The desired set of resources requested. ResourceNames must be unique within the list. + Requests []*Resources_ResourceEntry `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + // within the list. + Limits []*Resources_ResourceEntry `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Resources) Reset() { *m = Resources{} } +func (m *Resources) String() string { return proto.CompactTextString(m) } +func (*Resources) ProtoMessage() {} +func (*Resources) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{0} +} + +func (m *Resources) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Resources.Unmarshal(m, b) +} +func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Resources.Marshal(b, m, deterministic) +} +func (m *Resources) XXX_Merge(src proto.Message) { + xxx_messageInfo_Resources.Merge(m, src) +} +func (m *Resources) XXX_Size() int { + return xxx_messageInfo_Resources.Size(m) +} +func (m *Resources) XXX_DiscardUnknown() { + xxx_messageInfo_Resources.DiscardUnknown(m) +} + +var xxx_messageInfo_Resources proto.InternalMessageInfo + +func (m *Resources) GetRequests() []*Resources_ResourceEntry { + if m != nil { + return m.Requests + } + return nil +} + +func (m *Resources) GetLimits() []*Resources_ResourceEntry { + if m != nil { + return m.Limits + } + return nil +} + +// Encapsulates a resource name and value. +type Resources_ResourceEntry struct { + // Resource name. + Name Resources_ResourceName `protobuf:"varint,1,opt,name=name,proto3,enum=flyteidl.core.Resources_ResourceName" json:"name,omitempty"` + // Value must be a valid k8s quantity. See + // https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Resources_ResourceEntry) Reset() { *m = Resources_ResourceEntry{} } +func (m *Resources_ResourceEntry) String() string { return proto.CompactTextString(m) } +func (*Resources_ResourceEntry) ProtoMessage() {} +func (*Resources_ResourceEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{0, 0} +} + +func (m *Resources_ResourceEntry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Resources_ResourceEntry.Unmarshal(m, b) +} +func (m *Resources_ResourceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Resources_ResourceEntry.Marshal(b, m, deterministic) +} +func (m *Resources_ResourceEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_Resources_ResourceEntry.Merge(m, src) +} +func (m *Resources_ResourceEntry) XXX_Size() int { + return xxx_messageInfo_Resources_ResourceEntry.Size(m) +} +func (m *Resources_ResourceEntry) XXX_DiscardUnknown() { + xxx_messageInfo_Resources_ResourceEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_Resources_ResourceEntry proto.InternalMessageInfo + +func (m *Resources_ResourceEntry) GetName() Resources_ResourceName { + if m != nil { + return m.Name + } + return Resources_UNKNOWN +} + +func (m *Resources_ResourceEntry) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// Runtime information. This is loosely defined to allow for extensibility. +type RuntimeMetadata struct { + // Type of runtime. + Type RuntimeMetadata_RuntimeType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.core.RuntimeMetadata_RuntimeType" json:"type,omitempty"` + // Version of the runtime. All versions should be backward compatible. However, certain cases call for version + // checks to ensure tighter validation or setting expectations. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + //+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + Flavor string `protobuf:"bytes,3,opt,name=flavor,proto3" json:"flavor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeMetadata) Reset() { *m = RuntimeMetadata{} } +func (m *RuntimeMetadata) String() string { return proto.CompactTextString(m) } +func (*RuntimeMetadata) ProtoMessage() {} +func (*RuntimeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{1} +} + +func (m *RuntimeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeMetadata.Unmarshal(m, b) +} +func (m *RuntimeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeMetadata.Marshal(b, m, deterministic) +} +func (m *RuntimeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeMetadata.Merge(m, src) +} +func (m *RuntimeMetadata) XXX_Size() int { + return xxx_messageInfo_RuntimeMetadata.Size(m) +} +func (m *RuntimeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeMetadata proto.InternalMessageInfo + +func (m *RuntimeMetadata) GetType() RuntimeMetadata_RuntimeType { + if m != nil { + return m.Type + } + return RuntimeMetadata_OTHER +} + +func (m *RuntimeMetadata) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *RuntimeMetadata) GetFlavor() string { + if m != nil { + return m.Flavor + } + return "" +} + +// Task Metadata +type TaskMetadata struct { + // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + Discoverable bool `protobuf:"varint,1,opt,name=discoverable,proto3" json:"discoverable,omitempty"` + // Runtime information about the task. + Runtime *RuntimeMetadata `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` + // The overall timeout of a task including user-triggered retries. + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Number of retries per task. + Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` + // Indicates a logical version to apply to this task for the purpose of discovery. + DiscoveryVersion string `protobuf:"bytes,6,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"` + // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + // of the ending of support for a given task. + DeprecatedErrorMessage string `protobuf:"bytes,7,opt,name=deprecated_error_message,json=deprecatedErrorMessage,proto3" json:"deprecated_error_message,omitempty"` + // Identify whether task is interruptible + // + // Types that are valid to be assigned to InterruptibleValue: + // *TaskMetadata_Interruptible + InterruptibleValue isTaskMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` + // Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work + CacheSerializable bool `protobuf:"varint,9,opt,name=cache_serializable,json=cacheSerializable,proto3" json:"cache_serializable,omitempty"` + // Indicates whether the task will generate a Deck URI when it finishes executing. + GeneratesDeck bool `protobuf:"varint,10,opt,name=generates_deck,json=generatesDeck,proto3" json:"generates_deck,omitempty"` + // Arbitrary tags that allow users and the platform to store small but arbitrary labels + Tags map[string]string `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this + // task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied + // identically as, the default PodTemplate configured in FlytePropeller. + PodTemplateName string `protobuf:"bytes,12,opt,name=pod_template_name,json=podTemplateName,proto3" json:"pod_template_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskMetadata) Reset() { *m = TaskMetadata{} } +func (m *TaskMetadata) String() string { return proto.CompactTextString(m) } +func (*TaskMetadata) ProtoMessage() {} +func (*TaskMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{2} +} + +func (m *TaskMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskMetadata.Unmarshal(m, b) +} +func (m *TaskMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskMetadata.Marshal(b, m, deterministic) +} +func (m *TaskMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskMetadata.Merge(m, src) +} +func (m *TaskMetadata) XXX_Size() int { + return xxx_messageInfo_TaskMetadata.Size(m) +} +func (m *TaskMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_TaskMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskMetadata proto.InternalMessageInfo + +func (m *TaskMetadata) GetDiscoverable() bool { + if m != nil { + return m.Discoverable + } + return false +} + +func (m *TaskMetadata) GetRuntime() *RuntimeMetadata { + if m != nil { + return m.Runtime + } + return nil +} + +func (m *TaskMetadata) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *TaskMetadata) GetRetries() *RetryStrategy { + if m != nil { + return m.Retries + } + return nil +} + +func (m *TaskMetadata) GetDiscoveryVersion() string { + if m != nil { + return m.DiscoveryVersion + } + return "" +} + +func (m *TaskMetadata) GetDeprecatedErrorMessage() string { + if m != nil { + return m.DeprecatedErrorMessage + } + return "" +} + +type isTaskMetadata_InterruptibleValue interface { + isTaskMetadata_InterruptibleValue() +} + +type TaskMetadata_Interruptible struct { + Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3,oneof"` +} + +func (*TaskMetadata_Interruptible) isTaskMetadata_InterruptibleValue() {} + +func (m *TaskMetadata) GetInterruptibleValue() isTaskMetadata_InterruptibleValue { + if m != nil { + return m.InterruptibleValue + } + return nil +} + +func (m *TaskMetadata) GetInterruptible() bool { + if x, ok := m.GetInterruptibleValue().(*TaskMetadata_Interruptible); ok { + return x.Interruptible + } + return false +} + +func (m *TaskMetadata) GetCacheSerializable() bool { + if m != nil { + return m.CacheSerializable + } + return false +} + +func (m *TaskMetadata) GetGeneratesDeck() bool { + if m != nil { + return m.GeneratesDeck + } + return false +} + +func (m *TaskMetadata) GetTags() map[string]string { + if m != nil { + return m.Tags + } + return nil +} + +func (m *TaskMetadata) GetPodTemplateName() string { + if m != nil { + return m.PodTemplateName + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TaskMetadata) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TaskMetadata_Interruptible)(nil), + } +} + +// A Task structure that uniquely identifies a task in the system +// Tasks are registered as a first step in the system. +type TaskTemplate struct { + // Auto generated taskId by the system. Task Id uniquely identifies this task globally. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + // extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + // implementation registered for the TaskCategory. + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // Extra metadata about the task. + Metadata *TaskMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees + // compile-time validation of the workflow to avoid costly runtime failures. + Interface *TypedInterface `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"` + // Custom data about the task. This is extensible to allow various plugins in the system. + Custom *_struct.Struct `protobuf:"bytes,5,opt,name=custom,proto3" json:"custom,omitempty"` + // Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + // If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + // handlers. + // + // Types that are valid to be assigned to Target: + // *TaskTemplate_Container + // *TaskTemplate_K8SPod + // *TaskTemplate_Sql + Target isTaskTemplate_Target `protobuf_oneof:"target"` + // This can be used to customize task handling at execution time for the same task type. + TaskTypeVersion int32 `protobuf:"varint,7,opt,name=task_type_version,json=taskTypeVersion,proto3" json:"task_type_version,omitempty"` + // security_context encapsulates security attributes requested to run this task. + SecurityContext *SecurityContext `protobuf:"bytes,8,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Metadata about the custom defined for this task. This is extensible to allow various plugins in the system + // to use as required. + // reserve the field numbers 1 through 15 for very frequently occurring message elements + Config map[string]string `protobuf:"bytes,16,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskTemplate) Reset() { *m = TaskTemplate{} } +func (m *TaskTemplate) String() string { return proto.CompactTextString(m) } +func (*TaskTemplate) ProtoMessage() {} +func (*TaskTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{3} +} + +func (m *TaskTemplate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskTemplate.Unmarshal(m, b) +} +func (m *TaskTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskTemplate.Marshal(b, m, deterministic) +} +func (m *TaskTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskTemplate.Merge(m, src) +} +func (m *TaskTemplate) XXX_Size() int { + return xxx_messageInfo_TaskTemplate.Size(m) +} +func (m *TaskTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_TaskTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskTemplate proto.InternalMessageInfo + +func (m *TaskTemplate) GetId() *Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *TaskTemplate) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *TaskTemplate) GetMetadata() *TaskMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *TaskTemplate) GetInterface() *TypedInterface { + if m != nil { + return m.Interface + } + return nil +} + +func (m *TaskTemplate) GetCustom() *_struct.Struct { + if m != nil { + return m.Custom + } + return nil +} + +type isTaskTemplate_Target interface { + isTaskTemplate_Target() +} + +type TaskTemplate_Container struct { + Container *Container `protobuf:"bytes,6,opt,name=container,proto3,oneof"` +} + +type TaskTemplate_K8SPod struct { + K8SPod *K8SPod `protobuf:"bytes,17,opt,name=k8s_pod,json=k8sPod,proto3,oneof"` +} + +type TaskTemplate_Sql struct { + Sql *Sql `protobuf:"bytes,18,opt,name=sql,proto3,oneof"` +} + +func (*TaskTemplate_Container) isTaskTemplate_Target() {} + +func (*TaskTemplate_K8SPod) isTaskTemplate_Target() {} + +func (*TaskTemplate_Sql) isTaskTemplate_Target() {} + +func (m *TaskTemplate) GetTarget() isTaskTemplate_Target { + if m != nil { + return m.Target + } + return nil +} + +func (m *TaskTemplate) GetContainer() *Container { + if x, ok := m.GetTarget().(*TaskTemplate_Container); ok { + return x.Container + } + return nil +} + +func (m *TaskTemplate) GetK8SPod() *K8SPod { + if x, ok := m.GetTarget().(*TaskTemplate_K8SPod); ok { + return x.K8SPod + } + return nil +} + +func (m *TaskTemplate) GetSql() *Sql { + if x, ok := m.GetTarget().(*TaskTemplate_Sql); ok { + return x.Sql + } + return nil +} + +func (m *TaskTemplate) GetTaskTypeVersion() int32 { + if m != nil { + return m.TaskTypeVersion + } + return 0 +} + +func (m *TaskTemplate) GetSecurityContext() *SecurityContext { + if m != nil { + return m.SecurityContext + } + return nil +} + +func (m *TaskTemplate) GetConfig() map[string]string { + if m != nil { + return m.Config + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TaskTemplate) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TaskTemplate_Container)(nil), + (*TaskTemplate_K8SPod)(nil), + (*TaskTemplate_Sql)(nil), + } +} + +// Defines port properties for a container. +type ContainerPort struct { + // Number of port to expose on the pod's IP address. + // This must be a valid port number, 0 < x < 65536. + ContainerPort uint32 `protobuf:"varint,1,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContainerPort) Reset() { *m = ContainerPort{} } +func (m *ContainerPort) String() string { return proto.CompactTextString(m) } +func (*ContainerPort) ProtoMessage() {} +func (*ContainerPort) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{4} +} + +func (m *ContainerPort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContainerPort.Unmarshal(m, b) +} +func (m *ContainerPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContainerPort.Marshal(b, m, deterministic) +} +func (m *ContainerPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContainerPort.Merge(m, src) +} +func (m *ContainerPort) XXX_Size() int { + return xxx_messageInfo_ContainerPort.Size(m) +} +func (m *ContainerPort) XXX_DiscardUnknown() { + xxx_messageInfo_ContainerPort.DiscardUnknown(m) +} + +var xxx_messageInfo_ContainerPort proto.InternalMessageInfo + +func (m *ContainerPort) GetContainerPort() uint32 { + if m != nil { + return m.ContainerPort + } + return 0 +} + +type Container struct { + // Container image url. Eg: docker/redis:latest + Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + // Command to be executed, if not provided, the default entrypoint in the container image will be used. + Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` + // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + // needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + // system will populate these before executing the container. + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + // Container resources requirement as specified by the container engine. + Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` + // Environment variables will be set as the container is starting up. + Env []*KeyValuePair `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"` + // Allows extra configs to be available for the container. + // TODO: elaborate on how configs will become available. + // Deprecated, please use TaskTemplate.config instead. + Config []*KeyValuePair `protobuf:"bytes,6,rep,name=config,proto3" json:"config,omitempty"` // Deprecated: Do not use. + // Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + // not supported on AWS Batch) + // Only K8s + Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"` + // BETA: Optional configuration for DataLoading. If not specified, then default values are used. + // This makes it possible to to run a completely portable container, that uses inputs and outputs + // only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. + // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + // to understand the default paths. + // Only K8s + DataConfig *DataLoadingConfig `protobuf:"bytes,9,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` + Architecture Container_Architecture `protobuf:"varint,10,opt,name=architecture,proto3,enum=flyteidl.core.Container_Architecture" json:"architecture,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Container) Reset() { *m = Container{} } +func (m *Container) String() string { return proto.CompactTextString(m) } +func (*Container) ProtoMessage() {} +func (*Container) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{5} +} + +func (m *Container) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Container.Unmarshal(m, b) +} +func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Container.Marshal(b, m, deterministic) +} +func (m *Container) XXX_Merge(src proto.Message) { + xxx_messageInfo_Container.Merge(m, src) +} +func (m *Container) XXX_Size() int { + return xxx_messageInfo_Container.Size(m) +} +func (m *Container) XXX_DiscardUnknown() { + xxx_messageInfo_Container.DiscardUnknown(m) +} + +var xxx_messageInfo_Container proto.InternalMessageInfo + +func (m *Container) GetImage() string { + if m != nil { + return m.Image + } + return "" +} + +func (m *Container) GetCommand() []string { + if m != nil { + return m.Command + } + return nil +} + +func (m *Container) GetArgs() []string { + if m != nil { + return m.Args + } + return nil +} + +func (m *Container) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *Container) GetEnv() []*KeyValuePair { + if m != nil { + return m.Env + } + return nil +} + +// Deprecated: Do not use. +func (m *Container) GetConfig() []*KeyValuePair { + if m != nil { + return m.Config + } + return nil +} + +func (m *Container) GetPorts() []*ContainerPort { + if m != nil { + return m.Ports + } + return nil +} + +func (m *Container) GetDataConfig() *DataLoadingConfig { + if m != nil { + return m.DataConfig + } + return nil +} + +func (m *Container) GetArchitecture() Container_Architecture { + if m != nil { + return m.Architecture + } + return Container_UNKNOWN +} + +// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) +type IOStrategy struct { + // Mode to use to manage downloads + DownloadMode IOStrategy_DownloadMode `protobuf:"varint,1,opt,name=download_mode,json=downloadMode,proto3,enum=flyteidl.core.IOStrategy_DownloadMode" json:"download_mode,omitempty"` + // Mode to use to manage uploads + UploadMode IOStrategy_UploadMode `protobuf:"varint,2,opt,name=upload_mode,json=uploadMode,proto3,enum=flyteidl.core.IOStrategy_UploadMode" json:"upload_mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IOStrategy) Reset() { *m = IOStrategy{} } +func (m *IOStrategy) String() string { return proto.CompactTextString(m) } +func (*IOStrategy) ProtoMessage() {} +func (*IOStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{6} +} + +func (m *IOStrategy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IOStrategy.Unmarshal(m, b) +} +func (m *IOStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IOStrategy.Marshal(b, m, deterministic) +} +func (m *IOStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_IOStrategy.Merge(m, src) +} +func (m *IOStrategy) XXX_Size() int { + return xxx_messageInfo_IOStrategy.Size(m) +} +func (m *IOStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_IOStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_IOStrategy proto.InternalMessageInfo + +func (m *IOStrategy) GetDownloadMode() IOStrategy_DownloadMode { + if m != nil { + return m.DownloadMode + } + return IOStrategy_DOWNLOAD_EAGER +} + +func (m *IOStrategy) GetUploadMode() IOStrategy_UploadMode { + if m != nil { + return m.UploadMode + } + return IOStrategy_UPLOAD_ON_EXIT +} + +// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. +// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path +// Any outputs generated by the user container - within output_path are automatically uploaded. +type DataLoadingConfig struct { + // Flag enables DataLoading Config. If this is not set, data loading will not be used! + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + // File system path (start at root). This folder will contain all the inputs exploded to a separate file. + // Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like + // /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations + // /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format + // /var/flyte/inputs/y -> Y is a file in Binary format + // /var/flyte/inputs/z/... -> Note Z itself is a directory + // More information about the protocol - refer to docs #TODO reference docs here + InputPath string `protobuf:"bytes,2,opt,name=input_path,json=inputPath,proto3" json:"input_path,omitempty"` + // File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file + OutputPath string `protobuf:"bytes,3,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"` + // In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. + // This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding + Format DataLoadingConfig_LiteralMapFormat `protobuf:"varint,4,opt,name=format,proto3,enum=flyteidl.core.DataLoadingConfig_LiteralMapFormat" json:"format,omitempty"` + IoStrategy *IOStrategy `protobuf:"bytes,5,opt,name=io_strategy,json=ioStrategy,proto3" json:"io_strategy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DataLoadingConfig) Reset() { *m = DataLoadingConfig{} } +func (m *DataLoadingConfig) String() string { return proto.CompactTextString(m) } +func (*DataLoadingConfig) ProtoMessage() {} +func (*DataLoadingConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{7} +} + +func (m *DataLoadingConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DataLoadingConfig.Unmarshal(m, b) +} +func (m *DataLoadingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DataLoadingConfig.Marshal(b, m, deterministic) +} +func (m *DataLoadingConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_DataLoadingConfig.Merge(m, src) +} +func (m *DataLoadingConfig) XXX_Size() int { + return xxx_messageInfo_DataLoadingConfig.Size(m) +} +func (m *DataLoadingConfig) XXX_DiscardUnknown() { + xxx_messageInfo_DataLoadingConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_DataLoadingConfig proto.InternalMessageInfo + +func (m *DataLoadingConfig) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false +} + +func (m *DataLoadingConfig) GetInputPath() string { + if m != nil { + return m.InputPath + } + return "" +} + +func (m *DataLoadingConfig) GetOutputPath() string { + if m != nil { + return m.OutputPath + } + return "" +} + +func (m *DataLoadingConfig) GetFormat() DataLoadingConfig_LiteralMapFormat { + if m != nil { + return m.Format + } + return DataLoadingConfig_JSON +} + +func (m *DataLoadingConfig) GetIoStrategy() *IOStrategy { + if m != nil { + return m.IoStrategy + } + return nil +} + +// Defines a pod spec and additional pod metadata that is created when a task is executed. +type K8SPod struct { + // Contains additional metadata for building a kubernetes pod. + Metadata *K8SObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Defines the primary pod spec created when a task is executed. + // This should be a JSON-marshalled pod spec, which can be defined in + // - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 + // - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py + PodSpec *_struct.Struct `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` + // BETA: Optional configuration for DataLoading. If not specified, then default values are used. + // This makes it possible to to run a completely portable container, that uses inputs and outputs + // only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. + // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + // to understand the default paths. + // Only K8s + DataConfig *DataLoadingConfig `protobuf:"bytes,3,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *K8SPod) Reset() { *m = K8SPod{} } +func (m *K8SPod) String() string { return proto.CompactTextString(m) } +func (*K8SPod) ProtoMessage() {} +func (*K8SPod) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{8} +} + +func (m *K8SPod) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_K8SPod.Unmarshal(m, b) +} +func (m *K8SPod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_K8SPod.Marshal(b, m, deterministic) +} +func (m *K8SPod) XXX_Merge(src proto.Message) { + xxx_messageInfo_K8SPod.Merge(m, src) +} +func (m *K8SPod) XXX_Size() int { + return xxx_messageInfo_K8SPod.Size(m) +} +func (m *K8SPod) XXX_DiscardUnknown() { + xxx_messageInfo_K8SPod.DiscardUnknown(m) +} + +var xxx_messageInfo_K8SPod proto.InternalMessageInfo + +func (m *K8SPod) GetMetadata() *K8SObjectMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *K8SPod) GetPodSpec() *_struct.Struct { + if m != nil { + return m.PodSpec + } + return nil +} + +func (m *K8SPod) GetDataConfig() *DataLoadingConfig { + if m != nil { + return m.DataConfig + } + return nil +} + +// Metadata for building a kubernetes object when a task is executed. +type K8SObjectMetadata struct { + // Optional labels to add to the pod definition. + Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Optional annotations to add to the pod definition. + Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *K8SObjectMetadata) Reset() { *m = K8SObjectMetadata{} } +func (m *K8SObjectMetadata) String() string { return proto.CompactTextString(m) } +func (*K8SObjectMetadata) ProtoMessage() {} +func (*K8SObjectMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{9} +} + +func (m *K8SObjectMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_K8SObjectMetadata.Unmarshal(m, b) +} +func (m *K8SObjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_K8SObjectMetadata.Marshal(b, m, deterministic) +} +func (m *K8SObjectMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_K8SObjectMetadata.Merge(m, src) +} +func (m *K8SObjectMetadata) XXX_Size() int { + return xxx_messageInfo_K8SObjectMetadata.Size(m) +} +func (m *K8SObjectMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_K8SObjectMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_K8SObjectMetadata proto.InternalMessageInfo + +func (m *K8SObjectMetadata) GetLabels() map[string]string { + if m != nil { + return m.Labels + } + return nil +} + +func (m *K8SObjectMetadata) GetAnnotations() map[string]string { + if m != nil { + return m.Annotations + } + return nil +} + +// Sql represents a generic sql workload with a statement and dialect. +type Sql struct { + // The actual query to run, the query can have templated parameters. + // We use Flyte's Golang templating format for Query templating. + // Refer to the templating documentation. + // https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py + // For example, + // insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet + // select * + // from my_table + // where ds = '{{ .Inputs.ds }}' + Statement string `protobuf:"bytes,1,opt,name=statement,proto3" json:"statement,omitempty"` + Dialect Sql_Dialect `protobuf:"varint,2,opt,name=dialect,proto3,enum=flyteidl.core.Sql_Dialect" json:"dialect,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Sql) Reset() { *m = Sql{} } +func (m *Sql) String() string { return proto.CompactTextString(m) } +func (*Sql) ProtoMessage() {} +func (*Sql) Descriptor() ([]byte, []int) { + return fileDescriptor_bd8423ba58d6ed80, []int{10} +} + +func (m *Sql) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Sql.Unmarshal(m, b) +} +func (m *Sql) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Sql.Marshal(b, m, deterministic) +} +func (m *Sql) XXX_Merge(src proto.Message) { + xxx_messageInfo_Sql.Merge(m, src) +} +func (m *Sql) XXX_Size() int { + return xxx_messageInfo_Sql.Size(m) +} +func (m *Sql) XXX_DiscardUnknown() { + xxx_messageInfo_Sql.DiscardUnknown(m) +} + +var xxx_messageInfo_Sql proto.InternalMessageInfo + +func (m *Sql) GetStatement() string { + if m != nil { + return m.Statement + } + return "" +} + +func (m *Sql) GetDialect() Sql_Dialect { + if m != nil { + return m.Dialect + } + return Sql_UNDEFINED +} + +func init() { + proto.RegisterEnum("flyteidl.core.Resources_ResourceName", Resources_ResourceName_name, Resources_ResourceName_value) + proto.RegisterEnum("flyteidl.core.RuntimeMetadata_RuntimeType", RuntimeMetadata_RuntimeType_name, RuntimeMetadata_RuntimeType_value) + proto.RegisterEnum("flyteidl.core.Container_Architecture", Container_Architecture_name, Container_Architecture_value) + proto.RegisterEnum("flyteidl.core.IOStrategy_DownloadMode", IOStrategy_DownloadMode_name, IOStrategy_DownloadMode_value) + proto.RegisterEnum("flyteidl.core.IOStrategy_UploadMode", IOStrategy_UploadMode_name, IOStrategy_UploadMode_value) + proto.RegisterEnum("flyteidl.core.DataLoadingConfig_LiteralMapFormat", DataLoadingConfig_LiteralMapFormat_name, DataLoadingConfig_LiteralMapFormat_value) + proto.RegisterEnum("flyteidl.core.Sql_Dialect", Sql_Dialect_name, Sql_Dialect_value) + proto.RegisterType((*Resources)(nil), "flyteidl.core.Resources") + proto.RegisterType((*Resources_ResourceEntry)(nil), "flyteidl.core.Resources.ResourceEntry") + proto.RegisterType((*RuntimeMetadata)(nil), "flyteidl.core.RuntimeMetadata") + proto.RegisterType((*TaskMetadata)(nil), "flyteidl.core.TaskMetadata") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.TaskMetadata.TagsEntry") + proto.RegisterType((*TaskTemplate)(nil), "flyteidl.core.TaskTemplate") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.TaskTemplate.ConfigEntry") + proto.RegisterType((*ContainerPort)(nil), "flyteidl.core.ContainerPort") + proto.RegisterType((*Container)(nil), "flyteidl.core.Container") + proto.RegisterType((*IOStrategy)(nil), "flyteidl.core.IOStrategy") + proto.RegisterType((*DataLoadingConfig)(nil), "flyteidl.core.DataLoadingConfig") + proto.RegisterType((*K8SPod)(nil), "flyteidl.core.K8sPod") + proto.RegisterType((*K8SObjectMetadata)(nil), "flyteidl.core.K8sObjectMetadata") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.K8sObjectMetadata.AnnotationsEntry") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.K8sObjectMetadata.LabelsEntry") + proto.RegisterType((*Sql)(nil), "flyteidl.core.Sql") +} + +func init() { proto.RegisterFile("flyteidl/core/tasks.proto", fileDescriptor_bd8423ba58d6ed80) } + +var fileDescriptor_bd8423ba58d6ed80 = []byte{ + // 1661 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0xdd, 0x72, 0x1b, 0x49, + 0x15, 0xb6, 0x24, 0x4b, 0xb2, 0x8e, 0xa4, 0x78, 0xdc, 0x4b, 0x96, 0x89, 0x49, 0x42, 0x6a, 0x8a, + 0xcd, 0x86, 0x85, 0x48, 0xc4, 0x9b, 0xb2, 0xbd, 0x0b, 0x15, 0x4a, 0x89, 0x26, 0xb1, 0xb0, 0xf5, + 0x53, 0x2d, 0x39, 0x4b, 0xa8, 0xa2, 0x86, 0xf6, 0x4c, 0x6b, 0x3c, 0x78, 0x34, 0x3d, 0xee, 0xe9, + 0x31, 0x88, 0x7b, 0x5e, 0x80, 0x97, 0xa0, 0xa8, 0xe2, 0x96, 0x4b, 0xde, 0x81, 0x97, 0xe1, 0x8e, + 0x0b, 0xaa, 0x7b, 0x7e, 0xf4, 0x63, 0x7b, 0x5d, 0xbe, 0x52, 0xf7, 0x39, 0xdf, 0x77, 0x7a, 0xfa, + 0xe8, 0x3b, 0x7d, 0xba, 0xe1, 0xd1, 0xd4, 0x9f, 0x0b, 0xea, 0x39, 0x7e, 0xdb, 0x66, 0x9c, 0xb6, + 0x05, 0x89, 0x2e, 0xa2, 0x56, 0xc8, 0x99, 0x60, 0xa8, 0x99, 0xb9, 0x5a, 0xd2, 0xb5, 0xfb, 0x74, + 0x15, 0xe9, 0x39, 0x34, 0x10, 0xde, 0xd4, 0xa3, 0x3c, 0x81, 0xef, 0x3e, 0x59, 0xf3, 0x07, 0x82, + 0xf2, 0x29, 0xb1, 0x69, 0xea, 0x7e, 0xbc, 0xea, 0xf6, 0x3d, 0x41, 0x39, 0xf1, 0xa3, 0x9b, 0xbd, + 0x11, 0xb5, 0x63, 0xee, 0x89, 0x79, 0xea, 0x7d, 0xea, 0x32, 0xe6, 0xfa, 0xb4, 0xad, 0x66, 0x67, + 0xf1, 0xb4, 0xed, 0xc4, 0x9c, 0x08, 0x8f, 0x05, 0x19, 0x7b, 0xdd, 0x1f, 0x09, 0x1e, 0xdb, 0x22, + 0xf1, 0x1a, 0xff, 0x29, 0x42, 0x0d, 0xd3, 0x88, 0xc5, 0xdc, 0xa6, 0x11, 0x7a, 0x0b, 0x5b, 0x9c, + 0x5e, 0xc6, 0x34, 0x12, 0x91, 0x5e, 0x78, 0x56, 0x7a, 0x51, 0xdf, 0x7b, 0xde, 0x5a, 0xd9, 0x68, + 0x2b, 0xc7, 0xe6, 0x23, 0x33, 0x10, 0x7c, 0x8e, 0x73, 0x1e, 0x7a, 0x03, 0x15, 0xdf, 0x9b, 0x79, + 0x22, 0xd2, 0x8b, 0xf7, 0x8a, 0x90, 0xb2, 0x76, 0xff, 0x00, 0xcd, 0x15, 0x07, 0xfa, 0x06, 0x36, + 0x03, 0x32, 0xa3, 0x7a, 0xe1, 0x59, 0xe1, 0xc5, 0x83, 0xbd, 0x2f, 0xee, 0x0c, 0x37, 0x20, 0x33, + 0x8a, 0x15, 0x05, 0xfd, 0x00, 0xca, 0x57, 0xc4, 0x8f, 0xa9, 0x5e, 0x7c, 0x56, 0x78, 0x51, 0xc3, + 0xc9, 0xc4, 0xf8, 0x3d, 0x34, 0x96, 0xb1, 0xa8, 0x0e, 0xd5, 0xd3, 0xc1, 0xf1, 0x60, 0xf8, 0xdd, + 0x40, 0xdb, 0x40, 0x55, 0x28, 0xbd, 0x1b, 0x9d, 0x6a, 0x05, 0x39, 0xf8, 0x30, 0x3a, 0xd5, 0x8a, + 0x08, 0xa0, 0xd2, 0x37, 0xfb, 0x43, 0xfc, 0x49, 0x2b, 0x49, 0xe8, 0x78, 0x32, 0xc4, 0x9d, 0x0f, + 0xa6, 0xb6, 0x89, 0x1e, 0xc2, 0x8e, 0x39, 0x3a, 0x32, 0xfb, 0x26, 0xee, 0x9c, 0x58, 0x99, 0xb9, + 0x6c, 0xfc, 0xb3, 0x00, 0xdb, 0x38, 0x0e, 0x84, 0x37, 0xa3, 0x7d, 0x2a, 0x88, 0x43, 0x04, 0x41, + 0x6f, 0x60, 0x53, 0xcc, 0xc3, 0x6c, 0x0f, 0x5f, 0xad, 0xef, 0x61, 0x15, 0x9d, 0xcd, 0x27, 0xf3, + 0x90, 0x62, 0xc5, 0x43, 0x3a, 0x54, 0xaf, 0x28, 0x8f, 0x3c, 0x16, 0xa4, 0x5b, 0xc9, 0xa6, 0xe8, + 0x73, 0xa8, 0x4c, 0x7d, 0x72, 0xc5, 0xb8, 0x5e, 0x52, 0x8e, 0x74, 0x66, 0x7c, 0x09, 0xf5, 0xa5, + 0x30, 0xa8, 0x06, 0xe5, 0xe1, 0xe4, 0xc8, 0xc4, 0xda, 0x06, 0x6a, 0x42, 0xed, 0xfd, 0xc9, 0xa7, + 0x89, 0x69, 0x8d, 0xbb, 0xc7, 0x5a, 0xc1, 0xf8, 0xef, 0x26, 0x34, 0x26, 0x24, 0xba, 0xc8, 0xbf, + 0xd5, 0x80, 0x86, 0xe3, 0x45, 0x36, 0xbb, 0xa2, 0x9c, 0x9c, 0xf9, 0xc9, 0x37, 0x6f, 0xe1, 0x15, + 0x1b, 0x3a, 0x84, 0x2a, 0x4f, 0xa2, 0xab, 0xef, 0xa9, 0xef, 0x3d, 0xfd, 0xfe, 0x2d, 0xe1, 0x0c, + 0x8e, 0xbe, 0x86, 0xaa, 0xfc, 0x65, 0xb1, 0xd0, 0x37, 0x15, 0xf3, 0x51, 0x2b, 0x11, 0x68, 0x2b, + 0x13, 0x68, 0xab, 0x9b, 0x0a, 0x18, 0x67, 0x48, 0xb4, 0x0f, 0x55, 0x4e, 0x05, 0xf7, 0x68, 0xa4, + 0x97, 0x15, 0xe9, 0xf1, 0x35, 0x15, 0x08, 0x3e, 0x1f, 0x0b, 0x4e, 0x04, 0x75, 0xe7, 0x38, 0x03, + 0xa3, 0x9f, 0xc1, 0x4e, 0xf6, 0xd9, 0x73, 0x2b, 0x4b, 0x60, 0x45, 0xe5, 0x49, 0xcb, 0x1d, 0x1f, + 0xd3, 0x4c, 0x1e, 0x82, 0xee, 0xd0, 0x90, 0x53, 0x9b, 0x08, 0xea, 0x58, 0x94, 0x73, 0xc6, 0xad, + 0x19, 0x8d, 0x22, 0xe2, 0x52, 0xbd, 0xaa, 0x38, 0x9f, 0x2f, 0xfc, 0xa6, 0x74, 0xf7, 0x13, 0x2f, + 0x7a, 0x0e, 0x4d, 0x55, 0xd1, 0x3c, 0x0e, 0x85, 0x27, 0x53, 0xb6, 0x25, 0x53, 0x76, 0xb4, 0x81, + 0x57, 0xcd, 0xe8, 0x25, 0x20, 0x9b, 0xd8, 0xe7, 0xd4, 0x8a, 0x28, 0xf7, 0x88, 0xef, 0xfd, 0x45, + 0xe5, 0xb7, 0xa6, 0xf2, 0xbb, 0xa3, 0x3c, 0xe3, 0x25, 0x07, 0xfa, 0x02, 0x1e, 0xb8, 0x34, 0xa0, + 0x72, 0x53, 0x91, 0xe5, 0x50, 0xfb, 0x42, 0x07, 0x05, 0x6d, 0xe6, 0xd6, 0x2e, 0xb5, 0x2f, 0x64, + 0x7d, 0x08, 0xe2, 0x46, 0x7a, 0x5d, 0x95, 0xdb, 0x7a, 0x7d, 0x2c, 0xff, 0xb5, 0xad, 0x09, 0x71, + 0xa3, 0xa4, 0xda, 0x14, 0x05, 0x7d, 0x05, 0x3b, 0x21, 0x73, 0x2c, 0x41, 0x67, 0xa1, 0x4f, 0x04, + 0xb5, 0x54, 0x9d, 0x35, 0xd4, 0x5e, 0xb7, 0x43, 0xe6, 0x4c, 0x52, 0xbb, 0xac, 0x92, 0xdd, 0x03, + 0xa8, 0xe5, 0x74, 0xa4, 0x41, 0xe9, 0x82, 0xce, 0x95, 0x34, 0x6a, 0x58, 0x0e, 0x6f, 0x2e, 0xb5, + 0x6f, 0x8b, 0x87, 0x85, 0xb7, 0x0f, 0xe1, 0xb3, 0x95, 0x34, 0x58, 0x49, 0x15, 0xfe, 0xb5, 0x9c, + 0xe8, 0x2e, 0x5b, 0x04, 0xfd, 0x14, 0x8a, 0x9e, 0xa3, 0x42, 0x4a, 0x51, 0xac, 0xee, 0xa2, 0x97, + 0x1f, 0xa8, 0xb8, 0xe8, 0x39, 0x08, 0xa5, 0xe5, 0x94, 0xac, 0x95, 0x94, 0xc8, 0x01, 0x6c, 0xcd, + 0xd2, 0x7d, 0xaa, 0x52, 0xa8, 0xef, 0xfd, 0xe8, 0x7b, 0x52, 0x81, 0x73, 0x30, 0xfa, 0x25, 0xd4, + 0xf2, 0xf3, 0x38, 0xd5, 0xe4, 0x93, 0x75, 0xe6, 0x3c, 0xa4, 0x4e, 0x2f, 0x03, 0xe1, 0x05, 0x1e, + 0xb5, 0xa1, 0x62, 0xc7, 0x91, 0x60, 0xb3, 0x54, 0x98, 0x3f, 0xbc, 0xa6, 0xe6, 0xb1, 0x3a, 0x6e, + 0x71, 0x0a, 0x43, 0x87, 0x50, 0xb3, 0x59, 0x20, 0x88, 0x17, 0x50, 0xae, 0xa4, 0x58, 0xdf, 0xd3, + 0xd7, 0x56, 0x7b, 0x97, 0xf9, 0x8f, 0x36, 0xf0, 0x02, 0x8c, 0x7e, 0x01, 0xd5, 0x8b, 0xc3, 0xc8, + 0x0a, 0x99, 0xa3, 0xef, 0x28, 0xde, 0xc3, 0x35, 0xde, 0xf1, 0x61, 0x34, 0x62, 0xce, 0xd1, 0x06, + 0xae, 0x5c, 0xa8, 0x11, 0x7a, 0x0e, 0xa5, 0xe8, 0xd2, 0xd7, 0x91, 0x42, 0xa3, 0x35, 0xf4, 0xf8, + 0xd2, 0x3f, 0xda, 0xc0, 0x12, 0x20, 0x65, 0x20, 0x7b, 0x9b, 0x25, 0xf3, 0x98, 0x97, 0x89, 0x94, + 0x7c, 0x19, 0x6f, 0x4b, 0x87, 0xdc, 0x7e, 0x56, 0x25, 0x3d, 0xd0, 0xb2, 0x06, 0x64, 0xc9, 0x6f, + 0xa3, 0x7f, 0x16, 0x4a, 0xee, 0xd7, 0x8f, 0x80, 0x71, 0x0a, 0x7b, 0x97, 0xa0, 0xf0, 0x76, 0xb4, + 0x6a, 0x40, 0xbf, 0x86, 0x8a, 0xcd, 0x82, 0xa9, 0xe7, 0xea, 0x9a, 0x92, 0xee, 0x97, 0x37, 0xfc, + 0x5f, 0x99, 0x3a, 0x64, 0x52, 0xa6, 0x9e, 0x9b, 0xb6, 0x8a, 0x84, 0xb6, 0xfb, 0x0d, 0xd4, 0x97, + 0xcc, 0xf7, 0x12, 0xe5, 0x16, 0x54, 0x04, 0xe1, 0x2e, 0x15, 0xc6, 0x3e, 0x34, 0xf3, 0x84, 0x8f, + 0x18, 0x17, 0xb2, 0xec, 0xf2, 0xa4, 0x5b, 0x21, 0xe3, 0x42, 0x45, 0x6c, 0xe2, 0xa6, 0xbd, 0x0c, + 0x33, 0xfe, 0x57, 0x82, 0x5a, 0x4e, 0x94, 0x2b, 0x79, 0x33, 0x79, 0x52, 0x24, 0xab, 0x27, 0x13, + 0x79, 0x6c, 0xdb, 0x6c, 0x36, 0x23, 0x81, 0xa3, 0x9a, 0x61, 0x0d, 0x67, 0x53, 0xa9, 0x60, 0xc2, + 0xdd, 0x48, 0x2f, 0x29, 0xb3, 0x1a, 0xa3, 0x7d, 0xa8, 0xf1, 0xac, 0x9b, 0xa5, 0x42, 0xd4, 0x6f, + 0xeb, 0x76, 0x78, 0x01, 0x45, 0x2f, 0xa1, 0x44, 0x83, 0x2b, 0xbd, 0xac, 0x92, 0xb8, 0x2e, 0xfa, + 0x63, 0x3a, 0xff, 0x28, 0x77, 0x3d, 0x22, 0x1e, 0xc7, 0x12, 0x87, 0x0e, 0xf2, 0xb4, 0x57, 0xee, + 0x64, 0xbc, 0x2d, 0xea, 0x85, 0x2c, 0xdd, 0x68, 0x0f, 0xca, 0x32, 0x1d, 0x91, 0x5e, 0x55, 0xbc, + 0xc7, 0xb7, 0xc9, 0x56, 0xa6, 0x07, 0x27, 0x50, 0xd4, 0x81, 0xba, 0x2c, 0x32, 0x2b, 0x5d, 0xb1, + 0xa6, 0x76, 0xf5, 0x6c, 0x8d, 0xd9, 0x25, 0x82, 0x9c, 0x30, 0xe2, 0x78, 0x81, 0x9b, 0xfc, 0x9f, + 0x18, 0x24, 0x29, 0x19, 0xa3, 0x1e, 0x34, 0x08, 0xb7, 0xcf, 0x3d, 0x41, 0x6d, 0x11, 0x73, 0xaa, + 0x0e, 0xc1, 0xeb, 0xf7, 0x80, 0x7c, 0xf5, 0x56, 0x67, 0x09, 0x8c, 0x57, 0xa8, 0x46, 0x0f, 0x1a, + 0xcb, 0xde, 0xd5, 0xce, 0x5f, 0x83, 0x72, 0xa7, 0xdf, 0xdd, 0x7f, 0xad, 0x15, 0xd4, 0x10, 0xf7, + 0xf7, 0x5f, 0x27, 0xdd, 0xbf, 0x83, 0xfb, 0xd6, 0xc7, 0x7d, 0xad, 0x94, 0x8f, 0x0f, 0xb4, 0x4d, + 0xe3, 0x5f, 0x45, 0x80, 0xde, 0x30, 0x6b, 0x39, 0xe8, 0x18, 0x9a, 0x0e, 0xfb, 0x53, 0xe0, 0x33, + 0xe2, 0x58, 0x33, 0xe6, 0x64, 0x9d, 0x7e, 0xfd, 0xf2, 0xb3, 0x60, 0xb4, 0xba, 0x29, 0xbc, 0xcf, + 0x1c, 0x8a, 0x1b, 0xce, 0xd2, 0x0c, 0x99, 0x50, 0x8f, 0xc3, 0x45, 0xa8, 0xa2, 0x0a, 0xf5, 0x93, + 0xdb, 0x43, 0x9d, 0x86, 0x79, 0x20, 0x88, 0xf3, 0xb1, 0x71, 0x02, 0x8d, 0xe5, 0x45, 0x10, 0x82, + 0x07, 0xdd, 0xe1, 0x77, 0x83, 0x93, 0x61, 0xa7, 0x6b, 0x99, 0x9d, 0x0f, 0xea, 0x32, 0xf0, 0x19, + 0x6c, 0xe7, 0xb6, 0xf1, 0x04, 0x9b, 0x9d, 0xbe, 0x56, 0x48, 0x8c, 0xd6, 0x60, 0x38, 0xb1, 0x32, + 0x9f, 0x56, 0x34, 0x4c, 0x80, 0xc5, 0x3a, 0x32, 0xd6, 0xe9, 0x48, 0xb1, 0x86, 0x03, 0xcb, 0xfc, + 0x6d, 0x6f, 0xa2, 0x6d, 0x20, 0x0d, 0x1a, 0xa9, 0x2d, 0x89, 0x5e, 0x40, 0x3b, 0xd0, 0x4c, 0x03, + 0x25, 0x0e, 0xad, 0x68, 0xfc, 0xbd, 0x08, 0x3b, 0xd7, 0xfe, 0x6f, 0x59, 0x28, 0x34, 0x90, 0x4d, + 0xcf, 0x49, 0xaf, 0x1b, 0xd9, 0x14, 0x3d, 0x01, 0xf0, 0x82, 0x30, 0x16, 0x56, 0x48, 0xc4, 0x79, + 0x5a, 0xc7, 0x35, 0x65, 0x19, 0x11, 0x71, 0x8e, 0x7e, 0x0c, 0x75, 0x16, 0x8b, 0xdc, 0x9f, 0xdc, + 0x81, 0x20, 0x31, 0x29, 0x40, 0x0f, 0x2a, 0x53, 0xc6, 0x67, 0x24, 0xb9, 0x6e, 0x3c, 0xd8, 0x7b, + 0x75, 0x97, 0xf6, 0x5a, 0x27, 0xc9, 0xed, 0xbb, 0x4f, 0xc2, 0xf7, 0x8a, 0x88, 0xd3, 0x00, 0xe8, + 0x5b, 0xa8, 0x7b, 0xcc, 0x8a, 0xd2, 0xac, 0xa7, 0x07, 0xfe, 0xa3, 0x5b, 0xff, 0x16, 0x0c, 0x1e, + 0xcb, 0xc6, 0xc6, 0x2b, 0xd0, 0xd6, 0xe3, 0xa2, 0x2d, 0xd8, 0xfc, 0xcd, 0x78, 0x28, 0xa5, 0xb7, + 0x05, 0x9b, 0x9f, 0x3a, 0xfd, 0x93, 0x44, 0x79, 0x23, 0x3c, 0x9c, 0x0c, 0xb5, 0xa2, 0xf1, 0xef, + 0x02, 0x54, 0x92, 0x23, 0x1d, 0xfd, 0x6a, 0xa9, 0xb7, 0x15, 0x6e, 0x2c, 0xa1, 0xe3, 0xc3, 0x68, + 0x78, 0xf6, 0x47, 0x6a, 0x8b, 0x1b, 0x1a, 0xdc, 0x1e, 0x6c, 0xc9, 0x2e, 0x1f, 0x85, 0xd4, 0x4e, + 0x6f, 0x6b, 0xb7, 0x76, 0xa9, 0x6a, 0xc8, 0x9c, 0x71, 0x48, 0xed, 0xf5, 0xba, 0x2d, 0xdd, 0xbf, + 0x6e, 0x8d, 0x7f, 0x14, 0x61, 0xe7, 0xda, 0x67, 0xa1, 0x2e, 0x54, 0x7c, 0x72, 0x46, 0xfd, 0xec, + 0x81, 0xf1, 0xf3, 0xbb, 0x36, 0xd2, 0x3a, 0x51, 0xf0, 0xec, 0x91, 0xa0, 0x26, 0x68, 0x0c, 0x75, + 0x12, 0x04, 0x4c, 0xa8, 0x7b, 0x62, 0xf6, 0xd2, 0x78, 0x75, 0x67, 0xa8, 0xce, 0x82, 0x93, 0xc4, + 0x5b, 0x8e, 0x22, 0xdb, 0xc9, 0xd2, 0x5a, 0xf7, 0x69, 0x27, 0xbb, 0x6f, 0x40, 0x5b, 0x8f, 0x7d, + 0x1f, 0xbe, 0xf1, 0xb7, 0x02, 0x94, 0xc6, 0x97, 0x3e, 0x7a, 0x0c, 0xb5, 0x48, 0x10, 0x41, 0x67, + 0x34, 0x10, 0x29, 0x73, 0x61, 0x40, 0xaf, 0xa1, 0xea, 0x78, 0xc4, 0xa7, 0xb6, 0x48, 0xcf, 0x84, + 0xdd, 0xeb, 0x3d, 0xbd, 0xd5, 0x4d, 0x10, 0x38, 0x83, 0x1a, 0x07, 0x50, 0x4d, 0x6d, 0xf2, 0xea, + 0x7f, 0x3a, 0xe8, 0x9a, 0xef, 0x7b, 0x03, 0xb3, 0x9b, 0xc8, 0xae, 0x33, 0x18, 0xf7, 0xb4, 0x82, + 0x1c, 0x1d, 0xf5, 0x3e, 0x9a, 0x5a, 0x71, 0xf1, 0x50, 0x28, 0xbd, 0xdd, 0xff, 0xdd, 0x6b, 0xd7, + 0x13, 0xe7, 0xf1, 0x59, 0xcb, 0x66, 0xb3, 0xb6, 0x5a, 0x89, 0x71, 0xb7, 0x9d, 0xbf, 0x46, 0x5d, + 0x1a, 0xb4, 0xc3, 0xb3, 0x97, 0x2e, 0x6b, 0xaf, 0x3c, 0x50, 0xcf, 0x2a, 0x4a, 0x55, 0x5f, 0xff, + 0x3f, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x11, 0xc2, 0xc9, 0x3f, 0x0f, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go new file mode 100644 index 0000000000..57d157dfd0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go @@ -0,0 +1,1136 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/tasks.proto + +package core + +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 _tasks_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 Resources with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Resources) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetRequests() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourcesValidationError{ + field: fmt.Sprintf("Requests[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetLimits() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourcesValidationError{ + field: fmt.Sprintf("Limits[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ResourcesValidationError is the validation error returned by +// Resources.Validate if the designated constraints aren't met. +type ResourcesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourcesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourcesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourcesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourcesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourcesValidationError) ErrorName() string { return "ResourcesValidationError" } + +// Error satisfies the builtin error interface +func (e ResourcesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResources.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourcesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourcesValidationError{} + +// Validate checks the field values on RuntimeMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RuntimeMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Type + + // no validation rules for Version + + // no validation rules for Flavor + + return nil +} + +// RuntimeMetadataValidationError is the validation error returned by +// RuntimeMetadata.Validate if the designated constraints aren't met. +type RuntimeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeMetadataValidationError) ErrorName() string { return "RuntimeMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e RuntimeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRuntimeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeMetadataValidationError{} + +// Validate checks the field values on TaskMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Discoverable + + if v, ok := interface{}(m.GetRuntime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskMetadataValidationError{ + field: "Runtime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskMetadataValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRetries()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskMetadataValidationError{ + field: "Retries", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DiscoveryVersion + + // no validation rules for DeprecatedErrorMessage + + // no validation rules for CacheSerializable + + // no validation rules for GeneratesDeck + + // no validation rules for Tags + + // no validation rules for PodTemplateName + + switch m.InterruptibleValue.(type) { + + case *TaskMetadata_Interruptible: + // no validation rules for Interruptible + + } + + return nil +} + +// TaskMetadataValidationError is the validation error returned by +// TaskMetadata.Validate if the designated constraints aren't met. +type TaskMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskMetadataValidationError) ErrorName() string { return "TaskMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e TaskMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskMetadataValidationError{} + +// Validate checks the field values on TaskTemplate with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskTemplate) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Type + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInterface()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Interface", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCustom()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Custom", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TaskTypeVersion + + if v, ok := interface{}(m.GetSecurityContext()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "SecurityContext", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Config + + switch m.Target.(type) { + + case *TaskTemplate_Container: + + if v, ok := interface{}(m.GetContainer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Container", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TaskTemplate_K8SPod: + + if v, ok := interface{}(m.GetK8SPod()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "K8SPod", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TaskTemplate_Sql: + + if v, ok := interface{}(m.GetSql()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Sql", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskTemplateValidationError is the validation error returned by +// TaskTemplate.Validate if the designated constraints aren't met. +type TaskTemplateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskTemplateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskTemplateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskTemplateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskTemplateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskTemplateValidationError) ErrorName() string { return "TaskTemplateValidationError" } + +// Error satisfies the builtin error interface +func (e TaskTemplateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskTemplate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskTemplateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskTemplateValidationError{} + +// Validate checks the field values on ContainerPort with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ContainerPort) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ContainerPort + + return nil +} + +// ContainerPortValidationError is the validation error returned by +// ContainerPort.Validate if the designated constraints aren't met. +type ContainerPortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContainerPortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContainerPortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContainerPortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContainerPortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContainerPortValidationError) ErrorName() string { return "ContainerPortValidationError" } + +// Error satisfies the builtin error interface +func (e ContainerPortValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContainerPort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContainerPortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContainerPortValidationError{} + +// Validate checks the field values on Container with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Container) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Image + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetEnv() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: fmt.Sprintf("Env[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: fmt.Sprintf("Config[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetPorts() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: fmt.Sprintf("Ports[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetDataConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: "DataConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Architecture + + return nil +} + +// ContainerValidationError is the validation error returned by +// Container.Validate if the designated constraints aren't met. +type ContainerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContainerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContainerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContainerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContainerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContainerValidationError) ErrorName() string { return "ContainerValidationError" } + +// Error satisfies the builtin error interface +func (e ContainerValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContainer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContainerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContainerValidationError{} + +// Validate checks the field values on IOStrategy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *IOStrategy) Validate() error { + if m == nil { + return nil + } + + // no validation rules for DownloadMode + + // no validation rules for UploadMode + + return nil +} + +// IOStrategyValidationError is the validation error returned by +// IOStrategy.Validate if the designated constraints aren't met. +type IOStrategyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IOStrategyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IOStrategyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IOStrategyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IOStrategyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IOStrategyValidationError) ErrorName() string { return "IOStrategyValidationError" } + +// Error satisfies the builtin error interface +func (e IOStrategyValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIOStrategy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IOStrategyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IOStrategyValidationError{} + +// Validate checks the field values on DataLoadingConfig with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *DataLoadingConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Enabled + + // no validation rules for InputPath + + // no validation rules for OutputPath + + // no validation rules for Format + + if v, ok := interface{}(m.GetIoStrategy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DataLoadingConfigValidationError{ + field: "IoStrategy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DataLoadingConfigValidationError is the validation error returned by +// DataLoadingConfig.Validate if the designated constraints aren't met. +type DataLoadingConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DataLoadingConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DataLoadingConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DataLoadingConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DataLoadingConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DataLoadingConfigValidationError) ErrorName() string { + return "DataLoadingConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e DataLoadingConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDataLoadingConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DataLoadingConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DataLoadingConfigValidationError{} + +// Validate checks the field values on K8SPod with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *K8SPod) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return K8SPodValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPodSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return K8SPodValidationError{ + field: "PodSpec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDataConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return K8SPodValidationError{ + field: "DataConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// K8SPodValidationError is the validation error returned by K8SPod.Validate if +// the designated constraints aren't met. +type K8SPodValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e K8SPodValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e K8SPodValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e K8SPodValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e K8SPodValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e K8SPodValidationError) ErrorName() string { return "K8SPodValidationError" } + +// Error satisfies the builtin error interface +func (e K8SPodValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sK8SPod.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = K8SPodValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = K8SPodValidationError{} + +// Validate checks the field values on K8SObjectMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *K8SObjectMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Labels + + // no validation rules for Annotations + + return nil +} + +// K8SObjectMetadataValidationError is the validation error returned by +// K8SObjectMetadata.Validate if the designated constraints aren't met. +type K8SObjectMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e K8SObjectMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e K8SObjectMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e K8SObjectMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e K8SObjectMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e K8SObjectMetadataValidationError) ErrorName() string { + return "K8SObjectMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e K8SObjectMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sK8SObjectMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = K8SObjectMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = K8SObjectMetadataValidationError{} + +// Validate checks the field values on Sql with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Sql) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Statement + + // no validation rules for Dialect + + return nil +} + +// SqlValidationError is the validation error returned by Sql.Validate if the +// designated constraints aren't met. +type SqlValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SqlValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SqlValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SqlValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SqlValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SqlValidationError) ErrorName() string { return "SqlValidationError" } + +// Error satisfies the builtin error interface +func (e SqlValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSql.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SqlValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SqlValidationError{} + +// Validate checks the field values on Resources_ResourceEntry with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Resources_ResourceEntry) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Value + + return nil +} + +// Resources_ResourceEntryValidationError is the validation error returned by +// Resources_ResourceEntry.Validate if the designated constraints aren't met. +type Resources_ResourceEntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Resources_ResourceEntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Resources_ResourceEntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Resources_ResourceEntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Resources_ResourceEntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Resources_ResourceEntryValidationError) ErrorName() string { + return "Resources_ResourceEntryValidationError" +} + +// Error satisfies the builtin error interface +func (e Resources_ResourceEntryValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResources_ResourceEntry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Resources_ResourceEntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Resources_ResourceEntryValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json new file mode 100644 index 0000000000..35cf925ff8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/tasks.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.pb.go b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go new file mode 100644 index 0000000000..6c376be1d0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go @@ -0,0 +1,958 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/types.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + 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 + +// Define a set of simple types. +type SimpleType int32 + +const ( + SimpleType_NONE SimpleType = 0 + SimpleType_INTEGER SimpleType = 1 + SimpleType_FLOAT SimpleType = 2 + SimpleType_STRING SimpleType = 3 + SimpleType_BOOLEAN SimpleType = 4 + SimpleType_DATETIME SimpleType = 5 + SimpleType_DURATION SimpleType = 6 + SimpleType_BINARY SimpleType = 7 + SimpleType_ERROR SimpleType = 8 + SimpleType_STRUCT SimpleType = 9 +) + +var SimpleType_name = map[int32]string{ + 0: "NONE", + 1: "INTEGER", + 2: "FLOAT", + 3: "STRING", + 4: "BOOLEAN", + 5: "DATETIME", + 6: "DURATION", + 7: "BINARY", + 8: "ERROR", + 9: "STRUCT", +} + +var SimpleType_value = map[string]int32{ + "NONE": 0, + "INTEGER": 1, + "FLOAT": 2, + "STRING": 3, + "BOOLEAN": 4, + "DATETIME": 5, + "DURATION": 6, + "BINARY": 7, + "ERROR": 8, + "STRUCT": 9, +} + +func (x SimpleType) String() string { + return proto.EnumName(SimpleType_name, int32(x)) +} + +func (SimpleType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{0} +} + +type SchemaType_SchemaColumn_SchemaColumnType int32 + +const ( + SchemaType_SchemaColumn_INTEGER SchemaType_SchemaColumn_SchemaColumnType = 0 + SchemaType_SchemaColumn_FLOAT SchemaType_SchemaColumn_SchemaColumnType = 1 + SchemaType_SchemaColumn_STRING SchemaType_SchemaColumn_SchemaColumnType = 2 + SchemaType_SchemaColumn_BOOLEAN SchemaType_SchemaColumn_SchemaColumnType = 3 + SchemaType_SchemaColumn_DATETIME SchemaType_SchemaColumn_SchemaColumnType = 4 + SchemaType_SchemaColumn_DURATION SchemaType_SchemaColumn_SchemaColumnType = 5 +) + +var SchemaType_SchemaColumn_SchemaColumnType_name = map[int32]string{ + 0: "INTEGER", + 1: "FLOAT", + 2: "STRING", + 3: "BOOLEAN", + 4: "DATETIME", + 5: "DURATION", +} + +var SchemaType_SchemaColumn_SchemaColumnType_value = map[string]int32{ + "INTEGER": 0, + "FLOAT": 1, + "STRING": 2, + "BOOLEAN": 3, + "DATETIME": 4, + "DURATION": 5, +} + +func (x SchemaType_SchemaColumn_SchemaColumnType) String() string { + return proto.EnumName(SchemaType_SchemaColumn_SchemaColumnType_name, int32(x)) +} + +func (SchemaType_SchemaColumn_SchemaColumnType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{0, 0, 0} +} + +type BlobType_BlobDimensionality int32 + +const ( + BlobType_SINGLE BlobType_BlobDimensionality = 0 + BlobType_MULTIPART BlobType_BlobDimensionality = 1 +) + +var BlobType_BlobDimensionality_name = map[int32]string{ + 0: "SINGLE", + 1: "MULTIPART", +} + +var BlobType_BlobDimensionality_value = map[string]int32{ + "SINGLE": 0, + "MULTIPART": 1, +} + +func (x BlobType_BlobDimensionality) String() string { + return proto.EnumName(BlobType_BlobDimensionality_name, int32(x)) +} + +func (BlobType_BlobDimensionality) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{2, 0} +} + +// Defines schema columns and types to strongly type-validate schemas interoperability. +type SchemaType struct { + // A list of ordered columns this schema comprises of. + Columns []*SchemaType_SchemaColumn `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SchemaType) Reset() { *m = SchemaType{} } +func (m *SchemaType) String() string { return proto.CompactTextString(m) } +func (*SchemaType) ProtoMessage() {} +func (*SchemaType) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{0} +} + +func (m *SchemaType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemaType.Unmarshal(m, b) +} +func (m *SchemaType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemaType.Marshal(b, m, deterministic) +} +func (m *SchemaType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaType.Merge(m, src) +} +func (m *SchemaType) XXX_Size() int { + return xxx_messageInfo_SchemaType.Size(m) +} +func (m *SchemaType) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaType.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaType proto.InternalMessageInfo + +func (m *SchemaType) GetColumns() []*SchemaType_SchemaColumn { + if m != nil { + return m.Columns + } + return nil +} + +type SchemaType_SchemaColumn struct { + // A unique name -within the schema type- for the column + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The column type. This allows a limited set of types currently. + Type SchemaType_SchemaColumn_SchemaColumnType `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SchemaType_SchemaColumn) Reset() { *m = SchemaType_SchemaColumn{} } +func (m *SchemaType_SchemaColumn) String() string { return proto.CompactTextString(m) } +func (*SchemaType_SchemaColumn) ProtoMessage() {} +func (*SchemaType_SchemaColumn) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{0, 0} +} + +func (m *SchemaType_SchemaColumn) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemaType_SchemaColumn.Unmarshal(m, b) +} +func (m *SchemaType_SchemaColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemaType_SchemaColumn.Marshal(b, m, deterministic) +} +func (m *SchemaType_SchemaColumn) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaType_SchemaColumn.Merge(m, src) +} +func (m *SchemaType_SchemaColumn) XXX_Size() int { + return xxx_messageInfo_SchemaType_SchemaColumn.Size(m) +} +func (m *SchemaType_SchemaColumn) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaType_SchemaColumn.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaType_SchemaColumn proto.InternalMessageInfo + +func (m *SchemaType_SchemaColumn) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaType_SchemaColumn) GetType() SchemaType_SchemaColumn_SchemaColumnType { + if m != nil { + return m.Type + } + return SchemaType_SchemaColumn_INTEGER +} + +type StructuredDatasetType struct { + // A list of ordered columns this schema comprises of. + Columns []*StructuredDatasetType_DatasetColumn `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` + // This is the storage format, the format of the bits at rest + // parquet, feather, csv, etc. + // For two types to be compatible, the format will need to be an exact match. + Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` + // This is a string representing the type that the bytes in external_schema_bytes are formatted in. + // This is an optional field that will not be used for type checking. + ExternalSchemaType string `protobuf:"bytes,3,opt,name=external_schema_type,json=externalSchemaType,proto3" json:"external_schema_type,omitempty"` + // The serialized bytes of a third-party schema library like Arrow. + // This is an optional field that will not be used for type checking. + ExternalSchemaBytes []byte `protobuf:"bytes,4,opt,name=external_schema_bytes,json=externalSchemaBytes,proto3" json:"external_schema_bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredDatasetType) Reset() { *m = StructuredDatasetType{} } +func (m *StructuredDatasetType) String() string { return proto.CompactTextString(m) } +func (*StructuredDatasetType) ProtoMessage() {} +func (*StructuredDatasetType) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{1} +} + +func (m *StructuredDatasetType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredDatasetType.Unmarshal(m, b) +} +func (m *StructuredDatasetType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredDatasetType.Marshal(b, m, deterministic) +} +func (m *StructuredDatasetType) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredDatasetType.Merge(m, src) +} +func (m *StructuredDatasetType) XXX_Size() int { + return xxx_messageInfo_StructuredDatasetType.Size(m) +} +func (m *StructuredDatasetType) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredDatasetType.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredDatasetType proto.InternalMessageInfo + +func (m *StructuredDatasetType) GetColumns() []*StructuredDatasetType_DatasetColumn { + if m != nil { + return m.Columns + } + return nil +} + +func (m *StructuredDatasetType) GetFormat() string { + if m != nil { + return m.Format + } + return "" +} + +func (m *StructuredDatasetType) GetExternalSchemaType() string { + if m != nil { + return m.ExternalSchemaType + } + return "" +} + +func (m *StructuredDatasetType) GetExternalSchemaBytes() []byte { + if m != nil { + return m.ExternalSchemaBytes + } + return nil +} + +type StructuredDatasetType_DatasetColumn struct { + // A unique name within the schema type for the column. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The column type. + LiteralType *LiteralType `protobuf:"bytes,2,opt,name=literal_type,json=literalType,proto3" json:"literal_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StructuredDatasetType_DatasetColumn) Reset() { *m = StructuredDatasetType_DatasetColumn{} } +func (m *StructuredDatasetType_DatasetColumn) String() string { return proto.CompactTextString(m) } +func (*StructuredDatasetType_DatasetColumn) ProtoMessage() {} +func (*StructuredDatasetType_DatasetColumn) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{1, 0} +} + +func (m *StructuredDatasetType_DatasetColumn) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StructuredDatasetType_DatasetColumn.Unmarshal(m, b) +} +func (m *StructuredDatasetType_DatasetColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StructuredDatasetType_DatasetColumn.Marshal(b, m, deterministic) +} +func (m *StructuredDatasetType_DatasetColumn) XXX_Merge(src proto.Message) { + xxx_messageInfo_StructuredDatasetType_DatasetColumn.Merge(m, src) +} +func (m *StructuredDatasetType_DatasetColumn) XXX_Size() int { + return xxx_messageInfo_StructuredDatasetType_DatasetColumn.Size(m) +} +func (m *StructuredDatasetType_DatasetColumn) XXX_DiscardUnknown() { + xxx_messageInfo_StructuredDatasetType_DatasetColumn.DiscardUnknown(m) +} + +var xxx_messageInfo_StructuredDatasetType_DatasetColumn proto.InternalMessageInfo + +func (m *StructuredDatasetType_DatasetColumn) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *StructuredDatasetType_DatasetColumn) GetLiteralType() *LiteralType { + if m != nil { + return m.LiteralType + } + return nil +} + +// Defines type behavior for blob objects +type BlobType struct { + // Format can be a free form string understood by SDK/UI etc like + // csv, parquet etc + Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"` + Dimensionality BlobType_BlobDimensionality `protobuf:"varint,2,opt,name=dimensionality,proto3,enum=flyteidl.core.BlobType_BlobDimensionality" json:"dimensionality,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BlobType) Reset() { *m = BlobType{} } +func (m *BlobType) String() string { return proto.CompactTextString(m) } +func (*BlobType) ProtoMessage() {} +func (*BlobType) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{2} +} + +func (m *BlobType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BlobType.Unmarshal(m, b) +} +func (m *BlobType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BlobType.Marshal(b, m, deterministic) +} +func (m *BlobType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlobType.Merge(m, src) +} +func (m *BlobType) XXX_Size() int { + return xxx_messageInfo_BlobType.Size(m) +} +func (m *BlobType) XXX_DiscardUnknown() { + xxx_messageInfo_BlobType.DiscardUnknown(m) +} + +var xxx_messageInfo_BlobType proto.InternalMessageInfo + +func (m *BlobType) GetFormat() string { + if m != nil { + return m.Format + } + return "" +} + +func (m *BlobType) GetDimensionality() BlobType_BlobDimensionality { + if m != nil { + return m.Dimensionality + } + return BlobType_SINGLE +} + +// Enables declaring enum types, with predefined string values +// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish +// To provide no defaults, make the first value as undefined. +type EnumType struct { + // Predefined set of enum values. + Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumType) Reset() { *m = EnumType{} } +func (m *EnumType) String() string { return proto.CompactTextString(m) } +func (*EnumType) ProtoMessage() {} +func (*EnumType) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{3} +} + +func (m *EnumType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumType.Unmarshal(m, b) +} +func (m *EnumType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumType.Marshal(b, m, deterministic) +} +func (m *EnumType) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumType.Merge(m, src) +} +func (m *EnumType) XXX_Size() int { + return xxx_messageInfo_EnumType.Size(m) +} +func (m *EnumType) XXX_DiscardUnknown() { + xxx_messageInfo_EnumType.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumType proto.InternalMessageInfo + +func (m *EnumType) GetValues() []string { + if m != nil { + return m.Values + } + return nil +} + +// Defines a tagged union type, also known as a variant (and formally as the sum type). +// +// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag +// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by +// storing the varaint's tag with the literal value and can be examined in runtime. +// +// Type S is typically written as +// S := Apple A | Banana B | Cantaloupe C | ... +// +// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: +// Optional X := X | Null +// +// See also: https://en.wikipedia.org/wiki/Tagged_union +type UnionType struct { + // Predefined set of variants in union. + Variants []*LiteralType `protobuf:"bytes,1,rep,name=variants,proto3" json:"variants,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnionType) Reset() { *m = UnionType{} } +func (m *UnionType) String() string { return proto.CompactTextString(m) } +func (*UnionType) ProtoMessage() {} +func (*UnionType) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{4} +} + +func (m *UnionType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnionType.Unmarshal(m, b) +} +func (m *UnionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnionType.Marshal(b, m, deterministic) +} +func (m *UnionType) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnionType.Merge(m, src) +} +func (m *UnionType) XXX_Size() int { + return xxx_messageInfo_UnionType.Size(m) +} +func (m *UnionType) XXX_DiscardUnknown() { + xxx_messageInfo_UnionType.DiscardUnknown(m) +} + +var xxx_messageInfo_UnionType proto.InternalMessageInfo + +func (m *UnionType) GetVariants() []*LiteralType { + if m != nil { + return m.Variants + } + return nil +} + +// Hints to improve type matching +// e.g. allows distinguishing output from custom type transformers +// even if the underlying IDL serialization matches. +type TypeStructure struct { + // Must exactly match for types to be castable + Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TypeStructure) Reset() { *m = TypeStructure{} } +func (m *TypeStructure) String() string { return proto.CompactTextString(m) } +func (*TypeStructure) ProtoMessage() {} +func (*TypeStructure) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{5} +} + +func (m *TypeStructure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TypeStructure.Unmarshal(m, b) +} +func (m *TypeStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TypeStructure.Marshal(b, m, deterministic) +} +func (m *TypeStructure) XXX_Merge(src proto.Message) { + xxx_messageInfo_TypeStructure.Merge(m, src) +} +func (m *TypeStructure) XXX_Size() int { + return xxx_messageInfo_TypeStructure.Size(m) +} +func (m *TypeStructure) XXX_DiscardUnknown() { + xxx_messageInfo_TypeStructure.DiscardUnknown(m) +} + +var xxx_messageInfo_TypeStructure proto.InternalMessageInfo + +func (m *TypeStructure) GetTag() string { + if m != nil { + return m.Tag + } + return "" +} + +// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. +type TypeAnnotation struct { + // A arbitrary JSON payload to describe a type. + Annotations *_struct.Struct `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TypeAnnotation) Reset() { *m = TypeAnnotation{} } +func (m *TypeAnnotation) String() string { return proto.CompactTextString(m) } +func (*TypeAnnotation) ProtoMessage() {} +func (*TypeAnnotation) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{6} +} + +func (m *TypeAnnotation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TypeAnnotation.Unmarshal(m, b) +} +func (m *TypeAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TypeAnnotation.Marshal(b, m, deterministic) +} +func (m *TypeAnnotation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TypeAnnotation.Merge(m, src) +} +func (m *TypeAnnotation) XXX_Size() int { + return xxx_messageInfo_TypeAnnotation.Size(m) +} +func (m *TypeAnnotation) XXX_DiscardUnknown() { + xxx_messageInfo_TypeAnnotation.DiscardUnknown(m) +} + +var xxx_messageInfo_TypeAnnotation proto.InternalMessageInfo + +func (m *TypeAnnotation) GetAnnotations() *_struct.Struct { + if m != nil { + return m.Annotations + } + return nil +} + +// Defines a strong type to allow type checking between interfaces. +type LiteralType struct { + // Types that are valid to be assigned to Type: + // *LiteralType_Simple + // *LiteralType_Schema + // *LiteralType_CollectionType + // *LiteralType_MapValueType + // *LiteralType_Blob + // *LiteralType_EnumType + // *LiteralType_StructuredDatasetType + // *LiteralType_UnionType + Type isLiteralType_Type `protobuf_oneof:"type"` + // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + // consumers to identify special behavior or display extended information for the type. + Metadata *_struct.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + // This field contains arbitrary data that might have special semantic + // meaning for the client but does not effect internal flyte behavior. + Annotation *TypeAnnotation `protobuf:"bytes,9,opt,name=annotation,proto3" json:"annotation,omitempty"` + // Hints to improve type matching. + Structure *TypeStructure `protobuf:"bytes,11,opt,name=structure,proto3" json:"structure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralType) Reset() { *m = LiteralType{} } +func (m *LiteralType) String() string { return proto.CompactTextString(m) } +func (*LiteralType) ProtoMessage() {} +func (*LiteralType) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{7} +} + +func (m *LiteralType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralType.Unmarshal(m, b) +} +func (m *LiteralType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralType.Marshal(b, m, deterministic) +} +func (m *LiteralType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralType.Merge(m, src) +} +func (m *LiteralType) XXX_Size() int { + return xxx_messageInfo_LiteralType.Size(m) +} +func (m *LiteralType) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralType.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralType proto.InternalMessageInfo + +type isLiteralType_Type interface { + isLiteralType_Type() +} + +type LiteralType_Simple struct { + Simple SimpleType `protobuf:"varint,1,opt,name=simple,proto3,enum=flyteidl.core.SimpleType,oneof"` +} + +type LiteralType_Schema struct { + Schema *SchemaType `protobuf:"bytes,2,opt,name=schema,proto3,oneof"` +} + +type LiteralType_CollectionType struct { + CollectionType *LiteralType `protobuf:"bytes,3,opt,name=collection_type,json=collectionType,proto3,oneof"` +} + +type LiteralType_MapValueType struct { + MapValueType *LiteralType `protobuf:"bytes,4,opt,name=map_value_type,json=mapValueType,proto3,oneof"` +} + +type LiteralType_Blob struct { + Blob *BlobType `protobuf:"bytes,5,opt,name=blob,proto3,oneof"` +} + +type LiteralType_EnumType struct { + EnumType *EnumType `protobuf:"bytes,7,opt,name=enum_type,json=enumType,proto3,oneof"` +} + +type LiteralType_StructuredDatasetType struct { + StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,8,opt,name=structured_dataset_type,json=structuredDatasetType,proto3,oneof"` +} + +type LiteralType_UnionType struct { + UnionType *UnionType `protobuf:"bytes,10,opt,name=union_type,json=unionType,proto3,oneof"` +} + +func (*LiteralType_Simple) isLiteralType_Type() {} + +func (*LiteralType_Schema) isLiteralType_Type() {} + +func (*LiteralType_CollectionType) isLiteralType_Type() {} + +func (*LiteralType_MapValueType) isLiteralType_Type() {} + +func (*LiteralType_Blob) isLiteralType_Type() {} + +func (*LiteralType_EnumType) isLiteralType_Type() {} + +func (*LiteralType_StructuredDatasetType) isLiteralType_Type() {} + +func (*LiteralType_UnionType) isLiteralType_Type() {} + +func (m *LiteralType) GetType() isLiteralType_Type { + if m != nil { + return m.Type + } + return nil +} + +func (m *LiteralType) GetSimple() SimpleType { + if x, ok := m.GetType().(*LiteralType_Simple); ok { + return x.Simple + } + return SimpleType_NONE +} + +func (m *LiteralType) GetSchema() *SchemaType { + if x, ok := m.GetType().(*LiteralType_Schema); ok { + return x.Schema + } + return nil +} + +func (m *LiteralType) GetCollectionType() *LiteralType { + if x, ok := m.GetType().(*LiteralType_CollectionType); ok { + return x.CollectionType + } + return nil +} + +func (m *LiteralType) GetMapValueType() *LiteralType { + if x, ok := m.GetType().(*LiteralType_MapValueType); ok { + return x.MapValueType + } + return nil +} + +func (m *LiteralType) GetBlob() *BlobType { + if x, ok := m.GetType().(*LiteralType_Blob); ok { + return x.Blob + } + return nil +} + +func (m *LiteralType) GetEnumType() *EnumType { + if x, ok := m.GetType().(*LiteralType_EnumType); ok { + return x.EnumType + } + return nil +} + +func (m *LiteralType) GetStructuredDatasetType() *StructuredDatasetType { + if x, ok := m.GetType().(*LiteralType_StructuredDatasetType); ok { + return x.StructuredDatasetType + } + return nil +} + +func (m *LiteralType) GetUnionType() *UnionType { + if x, ok := m.GetType().(*LiteralType_UnionType); ok { + return x.UnionType + } + return nil +} + +func (m *LiteralType) GetMetadata() *_struct.Struct { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *LiteralType) GetAnnotation() *TypeAnnotation { + if m != nil { + return m.Annotation + } + return nil +} + +func (m *LiteralType) GetStructure() *TypeStructure { + if m != nil { + return m.Structure + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*LiteralType) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*LiteralType_Simple)(nil), + (*LiteralType_Schema)(nil), + (*LiteralType_CollectionType)(nil), + (*LiteralType_MapValueType)(nil), + (*LiteralType_Blob)(nil), + (*LiteralType_EnumType)(nil), + (*LiteralType_StructuredDatasetType)(nil), + (*LiteralType_UnionType)(nil), + } +} + +// A reference to an output produced by a node. The type can be retrieved -and validated- from +// the underlying interface of the node. +type OutputReference struct { + // Node id must exist at the graph layer. + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // Variable name must refer to an output variable for the node. + Var string `protobuf:"bytes,2,opt,name=var,proto3" json:"var,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutputReference) Reset() { *m = OutputReference{} } +func (m *OutputReference) String() string { return proto.CompactTextString(m) } +func (*OutputReference) ProtoMessage() {} +func (*OutputReference) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{8} +} + +func (m *OutputReference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutputReference.Unmarshal(m, b) +} +func (m *OutputReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutputReference.Marshal(b, m, deterministic) +} +func (m *OutputReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputReference.Merge(m, src) +} +func (m *OutputReference) XXX_Size() int { + return xxx_messageInfo_OutputReference.Size(m) +} +func (m *OutputReference) XXX_DiscardUnknown() { + xxx_messageInfo_OutputReference.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputReference proto.InternalMessageInfo + +func (m *OutputReference) GetNodeId() string { + if m != nil { + return m.NodeId + } + return "" +} + +func (m *OutputReference) GetVar() string { + if m != nil { + return m.Var + } + return "" +} + +// Represents an error thrown from a node. +type Error struct { + // The node id that threw the error. + FailedNodeId string `protobuf:"bytes,1,opt,name=failed_node_id,json=failedNodeId,proto3" json:"failed_node_id,omitempty"` + // Error message thrown. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_51e8add38f4caaed, []int{9} +} + +func (m *Error) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Error.Unmarshal(m, b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Error.Marshal(b, m, deterministic) +} +func (m *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(m, src) +} +func (m *Error) XXX_Size() int { + return xxx_messageInfo_Error.Size(m) +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Error proto.InternalMessageInfo + +func (m *Error) GetFailedNodeId() string { + if m != nil { + return m.FailedNodeId + } + return "" +} + +func (m *Error) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func init() { + proto.RegisterEnum("flyteidl.core.SimpleType", SimpleType_name, SimpleType_value) + proto.RegisterEnum("flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType", SchemaType_SchemaColumn_SchemaColumnType_name, SchemaType_SchemaColumn_SchemaColumnType_value) + proto.RegisterEnum("flyteidl.core.BlobType_BlobDimensionality", BlobType_BlobDimensionality_name, BlobType_BlobDimensionality_value) + proto.RegisterType((*SchemaType)(nil), "flyteidl.core.SchemaType") + proto.RegisterType((*SchemaType_SchemaColumn)(nil), "flyteidl.core.SchemaType.SchemaColumn") + proto.RegisterType((*StructuredDatasetType)(nil), "flyteidl.core.StructuredDatasetType") + proto.RegisterType((*StructuredDatasetType_DatasetColumn)(nil), "flyteidl.core.StructuredDatasetType.DatasetColumn") + proto.RegisterType((*BlobType)(nil), "flyteidl.core.BlobType") + proto.RegisterType((*EnumType)(nil), "flyteidl.core.EnumType") + proto.RegisterType((*UnionType)(nil), "flyteidl.core.UnionType") + proto.RegisterType((*TypeStructure)(nil), "flyteidl.core.TypeStructure") + proto.RegisterType((*TypeAnnotation)(nil), "flyteidl.core.TypeAnnotation") + proto.RegisterType((*LiteralType)(nil), "flyteidl.core.LiteralType") + proto.RegisterType((*OutputReference)(nil), "flyteidl.core.OutputReference") + proto.RegisterType((*Error)(nil), "flyteidl.core.Error") +} + +func init() { proto.RegisterFile("flyteidl/core/types.proto", fileDescriptor_51e8add38f4caaed) } + +var fileDescriptor_51e8add38f4caaed = []byte{ + // 934 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0xdd, 0x6e, 0xe3, 0x44, + 0x14, 0x8e, 0x9b, 0x5f, 0x9f, 0xa4, 0x59, 0x6b, 0xa0, 0xd4, 0xad, 0x16, 0xa9, 0x58, 0x2b, 0x54, + 0xad, 0xb4, 0x09, 0x4a, 0x51, 0xd1, 0x22, 0x56, 0x22, 0x69, 0x4d, 0x13, 0x6d, 0x36, 0x41, 0x53, + 0x17, 0x09, 0x2e, 0x88, 0xc6, 0xc9, 0x24, 0x6b, 0xc9, 0xf6, 0x44, 0xf6, 0xb8, 0x22, 0x2f, 0xc0, + 0x7b, 0x70, 0xc5, 0x4b, 0x70, 0xcf, 0x2d, 0x8f, 0x84, 0x66, 0xfc, 0x17, 0x9b, 0x50, 0xf5, 0x6e, + 0x8e, 0xcf, 0xf7, 0x7d, 0x33, 0x73, 0xce, 0x37, 0x33, 0x86, 0xb3, 0xb5, 0xbb, 0xe3, 0xd4, 0x59, + 0xb9, 0xfd, 0x25, 0x0b, 0x68, 0x9f, 0xef, 0xb6, 0x34, 0xec, 0x6d, 0x03, 0xc6, 0x19, 0x3a, 0x4e, + 0x53, 0x3d, 0x91, 0x3a, 0x7f, 0xb9, 0x61, 0x6c, 0xe3, 0xd2, 0xbe, 0x4c, 0xda, 0xd1, 0xba, 0x1f, + 0xf2, 0x20, 0x5a, 0xf2, 0x18, 0x6c, 0xfc, 0x71, 0x04, 0x70, 0xbf, 0xfc, 0x48, 0x3d, 0x62, 0xed, + 0xb6, 0x14, 0x7d, 0x0f, 0xcd, 0x25, 0x73, 0x23, 0xcf, 0x0f, 0xf5, 0xea, 0x45, 0xf5, 0xb2, 0x3d, + 0xf8, 0xb2, 0x57, 0x50, 0xeb, 0xe5, 0xd8, 0x64, 0x78, 0x23, 0xe1, 0x38, 0xa5, 0x9d, 0xff, 0xa3, + 0x40, 0x67, 0x3f, 0x83, 0x10, 0xd4, 0x7c, 0xe2, 0x51, 0x5d, 0xb9, 0x50, 0x2e, 0x55, 0x2c, 0xc7, + 0xe8, 0x3d, 0xd4, 0xc4, 0x8a, 0xf5, 0xa3, 0x0b, 0xe5, 0xb2, 0x3b, 0xf8, 0xe6, 0x79, 0x73, 0x14, + 0x02, 0x91, 0xc5, 0x52, 0xc4, 0x58, 0x80, 0x56, 0xce, 0xa0, 0x36, 0x34, 0x27, 0x33, 0xcb, 0xbc, + 0x33, 0xb1, 0x56, 0x41, 0x2a, 0xd4, 0x7f, 0x98, 0xce, 0x87, 0x96, 0xa6, 0x20, 0x80, 0xc6, 0xbd, + 0x85, 0x27, 0xb3, 0x3b, 0xed, 0x48, 0x60, 0x46, 0xf3, 0xf9, 0xd4, 0x1c, 0xce, 0xb4, 0x2a, 0xea, + 0x40, 0xeb, 0x76, 0x68, 0x99, 0xd6, 0xe4, 0x83, 0xa9, 0xd5, 0x64, 0xf4, 0x80, 0x87, 0xd6, 0x64, + 0x3e, 0xd3, 0xea, 0xc6, 0xdf, 0x47, 0x70, 0x72, 0x2f, 0x8b, 0x16, 0x05, 0x74, 0x75, 0x4b, 0x38, + 0x09, 0x29, 0x97, 0xd3, 0x4c, 0xf3, 0x72, 0x29, 0xb2, 0x5c, 0x83, 0xf2, 0x56, 0x0e, 0xd1, 0x7a, + 0xc9, 0xb8, 0x54, 0x3a, 0xf4, 0x19, 0x34, 0xd6, 0x2c, 0xf0, 0x08, 0x97, 0x75, 0x51, 0x71, 0x12, + 0xa1, 0xaf, 0xe0, 0x53, 0xfa, 0x1b, 0xa7, 0x81, 0x4f, 0xdc, 0x45, 0x28, 0x77, 0xba, 0x90, 0xd5, + 0xab, 0x4a, 0x14, 0x4a, 0x73, 0x7b, 0x6d, 0x1c, 0xc0, 0x49, 0x99, 0x61, 0xef, 0x38, 0x0d, 0xf5, + 0xda, 0x85, 0x72, 0xd9, 0xc1, 0x9f, 0x14, 0x29, 0x23, 0x91, 0x3a, 0xb7, 0xe1, 0xb8, 0xb0, 0xae, + 0x83, 0x8d, 0x7b, 0x07, 0x1d, 0xd7, 0xe1, 0x34, 0x20, 0xee, 0x22, 0x6b, 0x60, 0x7b, 0x70, 0x5e, + 0xda, 0xf5, 0x34, 0x86, 0xc8, 0x1e, 0xb5, 0xdd, 0x3c, 0x30, 0xfe, 0x54, 0xa0, 0x35, 0x72, 0x99, + 0x2d, 0x17, 0x99, 0x6f, 0x57, 0x29, 0x6c, 0x17, 0x43, 0x77, 0xe5, 0x78, 0xd4, 0x0f, 0x1d, 0xe6, + 0x13, 0xd7, 0xe1, 0xbb, 0xc4, 0x26, 0xaf, 0x4b, 0xb3, 0xa4, 0x42, 0x72, 0x70, 0x5b, 0x60, 0xe0, + 0x92, 0x82, 0xd1, 0x07, 0xf4, 0x5f, 0x94, 0x74, 0xc3, 0x64, 0x76, 0x37, 0x35, 0xb5, 0x0a, 0x3a, + 0x06, 0xf5, 0xc3, 0xc3, 0xd4, 0x9a, 0xfc, 0x38, 0xc4, 0x96, 0xa6, 0x18, 0x06, 0xb4, 0x4c, 0x3f, + 0xf2, 0xd2, 0x85, 0x3e, 0x12, 0x37, 0xa2, 0x71, 0x93, 0x55, 0x9c, 0x44, 0xc6, 0x0d, 0xa8, 0x0f, + 0xbe, 0xc3, 0x62, 0xc7, 0x5d, 0x43, 0xeb, 0x91, 0x04, 0x0e, 0xf1, 0x79, 0xea, 0x85, 0xa7, 0xaa, + 0x92, 0x61, 0x8d, 0x2f, 0xe0, 0x58, 0x7c, 0xc9, 0x8c, 0x82, 0x34, 0xa8, 0x72, 0xb2, 0x49, 0x6a, + 0x22, 0x86, 0xc6, 0x7b, 0xe8, 0x0a, 0xc8, 0xd0, 0xf7, 0x19, 0x27, 0xdc, 0x61, 0x3e, 0x7a, 0x0b, + 0x6d, 0x92, 0x45, 0xa1, 0xc4, 0xb6, 0x07, 0xa7, 0xbd, 0xf8, 0xa4, 0xf7, 0xd2, 0x93, 0x9e, 0xb8, + 0x0f, 0xef, 0x63, 0x8d, 0xbf, 0xea, 0xd0, 0xde, 0x5b, 0x09, 0xba, 0x82, 0x46, 0xe8, 0x78, 0x5b, + 0x37, 0xee, 0x73, 0x77, 0x70, 0x56, 0x76, 0xb0, 0x4c, 0x0a, 0xe8, 0xb8, 0x82, 0x13, 0xa8, 0x24, + 0x49, 0xeb, 0x24, 0x06, 0x38, 0xfb, 0xdf, 0x13, 0x2c, 0x49, 0x32, 0x42, 0x26, 0xbc, 0x58, 0x32, + 0xd7, 0xa5, 0x4b, 0xb1, 0x90, 0xdc, 0xc1, 0x4f, 0x16, 0x6a, 0x5c, 0xc1, 0xdd, 0x9c, 0x24, 0x17, + 0x3c, 0x82, 0xae, 0x47, 0xb6, 0x0b, 0xd9, 0x83, 0x58, 0xa5, 0xf6, 0x0c, 0x95, 0x8e, 0x47, 0xb6, + 0x3f, 0x09, 0x8a, 0xd4, 0x78, 0x03, 0x35, 0xdb, 0x65, 0xb6, 0x5e, 0x4f, 0x0a, 0x77, 0xd8, 0x58, + 0xe3, 0x0a, 0x96, 0x30, 0x74, 0x0d, 0x2a, 0xf5, 0x23, 0x2f, 0x9e, 0xad, 0x79, 0x90, 0x93, 0x9a, + 0x65, 0x5c, 0xc1, 0x2d, 0x9a, 0x1a, 0xe7, 0x57, 0x38, 0x0d, 0xb3, 0x0b, 0x60, 0xb1, 0x8a, 0x4f, + 0x57, 0xac, 0xd2, 0x92, 0x2a, 0xaf, 0x9e, 0x73, 0x5d, 0x8c, 0x2b, 0xf8, 0x24, 0x3c, 0x78, 0xfd, + 0xbc, 0x05, 0x88, 0xfc, 0xac, 0x98, 0x20, 0x25, 0xf5, 0x92, 0x64, 0xe6, 0xd0, 0x71, 0x05, 0xab, + 0x51, 0x66, 0xd7, 0x2b, 0x68, 0x79, 0x94, 0x13, 0xb1, 0x26, 0xbd, 0xf1, 0xb4, 0x7d, 0x32, 0x20, + 0x7a, 0x07, 0x90, 0x5b, 0x49, 0x57, 0x25, 0xed, 0xf3, 0xd2, 0x7c, 0x45, 0xa7, 0xe2, 0x3d, 0x02, + 0xfa, 0x16, 0xd4, 0x6c, 0x1f, 0x7a, 0x5b, 0xb2, 0x5f, 0x1e, 0x60, 0x67, 0x45, 0xc0, 0x39, 0x7c, + 0xd4, 0x88, 0x5f, 0x0c, 0xe3, 0x3b, 0x78, 0x31, 0x8f, 0xf8, 0x36, 0xe2, 0x98, 0xae, 0x69, 0x40, + 0xfd, 0x25, 0x45, 0xa7, 0xd0, 0xf4, 0xd9, 0x8a, 0x2e, 0x9c, 0x55, 0x7a, 0x91, 0x88, 0x70, 0xb2, + 0x12, 0x27, 0xe9, 0x91, 0x04, 0xc9, 0x65, 0x2a, 0x86, 0xc6, 0x1d, 0xd4, 0xcd, 0x20, 0x60, 0x01, + 0x7a, 0x05, 0xdd, 0x35, 0x71, 0x5c, 0xba, 0x5a, 0x14, 0xa9, 0x9d, 0xf8, 0xeb, 0x2c, 0x16, 0xd0, + 0xa1, 0xe9, 0xd1, 0x30, 0x24, 0x1b, 0x9a, 0x88, 0xa4, 0xe1, 0xeb, 0xdf, 0x15, 0x80, 0xfc, 0x64, + 0xa0, 0x16, 0xd4, 0x66, 0xf3, 0x99, 0xb8, 0x46, 0xf6, 0x1e, 0x1e, 0x25, 0x7f, 0x78, 0x8e, 0xf6, + 0x1e, 0x9e, 0xea, 0xfe, 0xc3, 0x53, 0x2b, 0x3c, 0x3c, 0xf5, 0xc2, 0xc3, 0xd3, 0x10, 0xa4, 0xd1, + 0x64, 0x36, 0xc4, 0x3f, 0x6b, 0x4d, 0xa1, 0x65, 0x62, 0x3c, 0xc7, 0x5a, 0x2b, 0xd1, 0x7a, 0xb8, + 0xb1, 0x34, 0x75, 0x74, 0xfd, 0xcb, 0xd7, 0x1b, 0x87, 0x7f, 0x8c, 0xec, 0xde, 0x92, 0x79, 0x7d, + 0x59, 0x4c, 0x16, 0x6c, 0xfa, 0xd9, 0xdf, 0xc1, 0x86, 0xfa, 0xfd, 0xad, 0xfd, 0x66, 0xc3, 0xfa, + 0x85, 0x1f, 0x06, 0xbb, 0x21, 0xbb, 0x7c, 0xf5, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, 0x1f, + 0xce, 0xb9, 0x48, 0x08, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/types.pb.validate.go new file mode 100644 index 0000000000..2852025606 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/types.pb.validate.go @@ -0,0 +1,1031 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/types.proto + +package core + +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 _types_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 SchemaType with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SchemaType) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetColumns() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SchemaTypeValidationError{ + field: fmt.Sprintf("Columns[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SchemaTypeValidationError is the validation error returned by +// SchemaType.Validate if the designated constraints aren't met. +type SchemaTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SchemaTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SchemaTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SchemaTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SchemaTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SchemaTypeValidationError) ErrorName() string { return "SchemaTypeValidationError" } + +// Error satisfies the builtin error interface +func (e SchemaTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchemaType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SchemaTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SchemaTypeValidationError{} + +// Validate checks the field values on StructuredDatasetType with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *StructuredDatasetType) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetColumns() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StructuredDatasetTypeValidationError{ + field: fmt.Sprintf("Columns[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Format + + // no validation rules for ExternalSchemaType + + // no validation rules for ExternalSchemaBytes + + return nil +} + +// StructuredDatasetTypeValidationError is the validation error returned by +// StructuredDatasetType.Validate if the designated constraints aren't met. +type StructuredDatasetTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StructuredDatasetTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StructuredDatasetTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StructuredDatasetTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StructuredDatasetTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StructuredDatasetTypeValidationError) ErrorName() string { + return "StructuredDatasetTypeValidationError" +} + +// Error satisfies the builtin error interface +func (e StructuredDatasetTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStructuredDatasetType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StructuredDatasetTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StructuredDatasetTypeValidationError{} + +// Validate checks the field values on BlobType with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *BlobType) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Format + + // no validation rules for Dimensionality + + return nil +} + +// BlobTypeValidationError is the validation error returned by +// BlobType.Validate if the designated constraints aren't met. +type BlobTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BlobTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BlobTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BlobTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BlobTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BlobTypeValidationError) ErrorName() string { return "BlobTypeValidationError" } + +// Error satisfies the builtin error interface +func (e BlobTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBlobType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BlobTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BlobTypeValidationError{} + +// Validate checks the field values on EnumType with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *EnumType) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// EnumTypeValidationError is the validation error returned by +// EnumType.Validate if the designated constraints aren't met. +type EnumTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EnumTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EnumTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EnumTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EnumTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EnumTypeValidationError) ErrorName() string { return "EnumTypeValidationError" } + +// Error satisfies the builtin error interface +func (e EnumTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEnumType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EnumTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EnumTypeValidationError{} + +// Validate checks the field values on UnionType with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *UnionType) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetVariants() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UnionTypeValidationError{ + field: fmt.Sprintf("Variants[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// UnionTypeValidationError is the validation error returned by +// UnionType.Validate if the designated constraints aren't met. +type UnionTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UnionTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UnionTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UnionTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UnionTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UnionTypeValidationError) ErrorName() string { return "UnionTypeValidationError" } + +// Error satisfies the builtin error interface +func (e UnionTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUnionType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UnionTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UnionTypeValidationError{} + +// Validate checks the field values on TypeStructure with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TypeStructure) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Tag + + return nil +} + +// TypeStructureValidationError is the validation error returned by +// TypeStructure.Validate if the designated constraints aren't met. +type TypeStructureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TypeStructureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TypeStructureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TypeStructureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TypeStructureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TypeStructureValidationError) ErrorName() string { return "TypeStructureValidationError" } + +// Error satisfies the builtin error interface +func (e TypeStructureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTypeStructure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TypeStructureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TypeStructureValidationError{} + +// Validate checks the field values on TypeAnnotation with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TypeAnnotation) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAnnotations()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TypeAnnotationValidationError{ + field: "Annotations", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TypeAnnotationValidationError is the validation error returned by +// TypeAnnotation.Validate if the designated constraints aren't met. +type TypeAnnotationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TypeAnnotationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TypeAnnotationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TypeAnnotationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TypeAnnotationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TypeAnnotationValidationError) ErrorName() string { return "TypeAnnotationValidationError" } + +// Error satisfies the builtin error interface +func (e TypeAnnotationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTypeAnnotation.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TypeAnnotationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TypeAnnotationValidationError{} + +// Validate checks the field values on LiteralType with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LiteralType) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAnnotation()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Annotation", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetStructure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Structure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Type.(type) { + + case *LiteralType_Simple: + // no validation rules for Simple + + case *LiteralType_Schema: + + if v, ok := interface{}(m.GetSchema()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Schema", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_CollectionType: + + if v, ok := interface{}(m.GetCollectionType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "CollectionType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_MapValueType: + + if v, ok := interface{}(m.GetMapValueType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "MapValueType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_Blob: + + if v, ok := interface{}(m.GetBlob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Blob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_EnumType: + + if v, ok := interface{}(m.GetEnumType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "EnumType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_StructuredDatasetType: + + if v, ok := interface{}(m.GetStructuredDatasetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "StructuredDatasetType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_UnionType: + + if v, ok := interface{}(m.GetUnionType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "UnionType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LiteralTypeValidationError is the validation error returned by +// LiteralType.Validate if the designated constraints aren't met. +type LiteralTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralTypeValidationError) ErrorName() string { return "LiteralTypeValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralTypeValidationError{} + +// Validate checks the field values on OutputReference with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *OutputReference) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NodeId + + // no validation rules for Var + + return nil +} + +// OutputReferenceValidationError is the validation error returned by +// OutputReference.Validate if the designated constraints aren't met. +type OutputReferenceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutputReferenceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutputReferenceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutputReferenceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutputReferenceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutputReferenceValidationError) ErrorName() string { return "OutputReferenceValidationError" } + +// Error satisfies the builtin error interface +func (e OutputReferenceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sOutputReference.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutputReferenceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutputReferenceValidationError{} + +// Validate checks the field values on Error with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Error) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailedNodeId + + // no validation rules for Message + + return nil +} + +// ErrorValidationError is the validation error returned by Error.Validate if +// the designated constraints aren't met. +type ErrorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ErrorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ErrorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ErrorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ErrorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ErrorValidationError) ErrorName() string { return "ErrorValidationError" } + +// Error satisfies the builtin error interface +func (e ErrorValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sError.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ErrorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ErrorValidationError{} + +// Validate checks the field values on SchemaType_SchemaColumn with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SchemaType_SchemaColumn) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Type + + return nil +} + +// SchemaType_SchemaColumnValidationError is the validation error returned by +// SchemaType_SchemaColumn.Validate if the designated constraints aren't met. +type SchemaType_SchemaColumnValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SchemaType_SchemaColumnValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SchemaType_SchemaColumnValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SchemaType_SchemaColumnValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SchemaType_SchemaColumnValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SchemaType_SchemaColumnValidationError) ErrorName() string { + return "SchemaType_SchemaColumnValidationError" +} + +// Error satisfies the builtin error interface +func (e SchemaType_SchemaColumnValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchemaType_SchemaColumn.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SchemaType_SchemaColumnValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SchemaType_SchemaColumnValidationError{} + +// Validate checks the field values on StructuredDatasetType_DatasetColumn with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *StructuredDatasetType_DatasetColumn) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetLiteralType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return StructuredDatasetType_DatasetColumnValidationError{ + field: "LiteralType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// StructuredDatasetType_DatasetColumnValidationError is the validation error +// returned by StructuredDatasetType_DatasetColumn.Validate if the designated +// constraints aren't met. +type StructuredDatasetType_DatasetColumnValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e StructuredDatasetType_DatasetColumnValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e StructuredDatasetType_DatasetColumnValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e StructuredDatasetType_DatasetColumnValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e StructuredDatasetType_DatasetColumnValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e StructuredDatasetType_DatasetColumnValidationError) ErrorName() string { + return "StructuredDatasetType_DatasetColumnValidationError" +} + +// Error satisfies the builtin error interface +func (e StructuredDatasetType_DatasetColumnValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sStructuredDatasetType_DatasetColumn.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = StructuredDatasetType_DatasetColumnValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = StructuredDatasetType_DatasetColumnValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json new file mode 100644 index 0000000000..388060aaab --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/types.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go new file mode 100644 index 0000000000..c3203af98d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go @@ -0,0 +1,1440 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/workflow.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + 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 + +// Failure Handling Strategy +type WorkflowMetadata_OnFailurePolicy int32 + +const ( + // FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically + // abort all currently running nodes and clean up resources before finally marking the workflow executions as + // failed. + WorkflowMetadata_FAIL_IMMEDIATELY WorkflowMetadata_OnFailurePolicy = 0 + // FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will + // not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. + // Other nodes that will be executed to completion before cleaning up resources and marking the workflow + // execution as failed. + WorkflowMetadata_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE WorkflowMetadata_OnFailurePolicy = 1 +) + +var WorkflowMetadata_OnFailurePolicy_name = map[int32]string{ + 0: "FAIL_IMMEDIATELY", + 1: "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", +} + +var WorkflowMetadata_OnFailurePolicy_value = map[string]int32{ + "FAIL_IMMEDIATELY": 0, + "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE": 1, +} + +func (x WorkflowMetadata_OnFailurePolicy) String() string { + return proto.EnumName(WorkflowMetadata_OnFailurePolicy_name, int32(x)) +} + +func (WorkflowMetadata_OnFailurePolicy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{13, 0} +} + +// Defines a condition and the execution unit that should be executed if the condition is satisfied. +type IfBlock struct { + Condition *BooleanExpression `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + ThenNode *Node `protobuf:"bytes,2,opt,name=then_node,json=thenNode,proto3" json:"then_node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IfBlock) Reset() { *m = IfBlock{} } +func (m *IfBlock) String() string { return proto.CompactTextString(m) } +func (*IfBlock) ProtoMessage() {} +func (*IfBlock) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{0} +} + +func (m *IfBlock) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IfBlock.Unmarshal(m, b) +} +func (m *IfBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IfBlock.Marshal(b, m, deterministic) +} +func (m *IfBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_IfBlock.Merge(m, src) +} +func (m *IfBlock) XXX_Size() int { + return xxx_messageInfo_IfBlock.Size(m) +} +func (m *IfBlock) XXX_DiscardUnknown() { + xxx_messageInfo_IfBlock.DiscardUnknown(m) +} + +var xxx_messageInfo_IfBlock proto.InternalMessageInfo + +func (m *IfBlock) GetCondition() *BooleanExpression { + if m != nil { + return m.Condition + } + return nil +} + +func (m *IfBlock) GetThenNode() *Node { + if m != nil { + return m.ThenNode + } + return nil +} + +// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +// If no conditions were satisfied, the else_node or the error will execute. +type IfElseBlock struct { + //+required. First condition to evaluate. + Case *IfBlock `protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"` + //+optional. Additional branches to evaluate. + Other []*IfBlock `protobuf:"bytes,2,rep,name=other,proto3" json:"other,omitempty"` + //+required. + // + // Types that are valid to be assigned to Default: + // *IfElseBlock_ElseNode + // *IfElseBlock_Error + Default isIfElseBlock_Default `protobuf_oneof:"default"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IfElseBlock) Reset() { *m = IfElseBlock{} } +func (m *IfElseBlock) String() string { return proto.CompactTextString(m) } +func (*IfElseBlock) ProtoMessage() {} +func (*IfElseBlock) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{1} +} + +func (m *IfElseBlock) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IfElseBlock.Unmarshal(m, b) +} +func (m *IfElseBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IfElseBlock.Marshal(b, m, deterministic) +} +func (m *IfElseBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_IfElseBlock.Merge(m, src) +} +func (m *IfElseBlock) XXX_Size() int { + return xxx_messageInfo_IfElseBlock.Size(m) +} +func (m *IfElseBlock) XXX_DiscardUnknown() { + xxx_messageInfo_IfElseBlock.DiscardUnknown(m) +} + +var xxx_messageInfo_IfElseBlock proto.InternalMessageInfo + +func (m *IfElseBlock) GetCase() *IfBlock { + if m != nil { + return m.Case + } + return nil +} + +func (m *IfElseBlock) GetOther() []*IfBlock { + if m != nil { + return m.Other + } + return nil +} + +type isIfElseBlock_Default interface { + isIfElseBlock_Default() +} + +type IfElseBlock_ElseNode struct { + ElseNode *Node `protobuf:"bytes,3,opt,name=else_node,json=elseNode,proto3,oneof"` +} + +type IfElseBlock_Error struct { + Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"` +} + +func (*IfElseBlock_ElseNode) isIfElseBlock_Default() {} + +func (*IfElseBlock_Error) isIfElseBlock_Default() {} + +func (m *IfElseBlock) GetDefault() isIfElseBlock_Default { + if m != nil { + return m.Default + } + return nil +} + +func (m *IfElseBlock) GetElseNode() *Node { + if x, ok := m.GetDefault().(*IfElseBlock_ElseNode); ok { + return x.ElseNode + } + return nil +} + +func (m *IfElseBlock) GetError() *Error { + if x, ok := m.GetDefault().(*IfElseBlock_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*IfElseBlock) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*IfElseBlock_ElseNode)(nil), + (*IfElseBlock_Error)(nil), + } +} + +// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). +type BranchNode struct { + //+required + IfElse *IfElseBlock `protobuf:"bytes,1,opt,name=if_else,json=ifElse,proto3" json:"if_else,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BranchNode) Reset() { *m = BranchNode{} } +func (m *BranchNode) String() string { return proto.CompactTextString(m) } +func (*BranchNode) ProtoMessage() {} +func (*BranchNode) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{2} +} + +func (m *BranchNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BranchNode.Unmarshal(m, b) +} +func (m *BranchNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BranchNode.Marshal(b, m, deterministic) +} +func (m *BranchNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_BranchNode.Merge(m, src) +} +func (m *BranchNode) XXX_Size() int { + return xxx_messageInfo_BranchNode.Size(m) +} +func (m *BranchNode) XXX_DiscardUnknown() { + xxx_messageInfo_BranchNode.DiscardUnknown(m) +} + +var xxx_messageInfo_BranchNode proto.InternalMessageInfo + +func (m *BranchNode) GetIfElse() *IfElseBlock { + if m != nil { + return m.IfElse + } + return nil +} + +// Refers to the task that the Node is to execute. +type TaskNode struct { + // Types that are valid to be assigned to Reference: + // *TaskNode_ReferenceId + Reference isTaskNode_Reference `protobuf_oneof:"reference"` + // Optional overrides applied at task execution time. + Overrides *TaskNodeOverrides `protobuf:"bytes,2,opt,name=overrides,proto3" json:"overrides,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskNode) Reset() { *m = TaskNode{} } +func (m *TaskNode) String() string { return proto.CompactTextString(m) } +func (*TaskNode) ProtoMessage() {} +func (*TaskNode) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{3} +} + +func (m *TaskNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskNode.Unmarshal(m, b) +} +func (m *TaskNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskNode.Marshal(b, m, deterministic) +} +func (m *TaskNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskNode.Merge(m, src) +} +func (m *TaskNode) XXX_Size() int { + return xxx_messageInfo_TaskNode.Size(m) +} +func (m *TaskNode) XXX_DiscardUnknown() { + xxx_messageInfo_TaskNode.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskNode proto.InternalMessageInfo + +type isTaskNode_Reference interface { + isTaskNode_Reference() +} + +type TaskNode_ReferenceId struct { + ReferenceId *Identifier `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3,oneof"` +} + +func (*TaskNode_ReferenceId) isTaskNode_Reference() {} + +func (m *TaskNode) GetReference() isTaskNode_Reference { + if m != nil { + return m.Reference + } + return nil +} + +func (m *TaskNode) GetReferenceId() *Identifier { + if x, ok := m.GetReference().(*TaskNode_ReferenceId); ok { + return x.ReferenceId + } + return nil +} + +func (m *TaskNode) GetOverrides() *TaskNodeOverrides { + if m != nil { + return m.Overrides + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TaskNode) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TaskNode_ReferenceId)(nil), + } +} + +// Refers to a the workflow the node is to execute. +type WorkflowNode struct { + // Types that are valid to be assigned to Reference: + // *WorkflowNode_LaunchplanRef + // *WorkflowNode_SubWorkflowRef + Reference isWorkflowNode_Reference `protobuf_oneof:"reference"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowNode) Reset() { *m = WorkflowNode{} } +func (m *WorkflowNode) String() string { return proto.CompactTextString(m) } +func (*WorkflowNode) ProtoMessage() {} +func (*WorkflowNode) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{4} +} + +func (m *WorkflowNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowNode.Unmarshal(m, b) +} +func (m *WorkflowNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowNode.Marshal(b, m, deterministic) +} +func (m *WorkflowNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowNode.Merge(m, src) +} +func (m *WorkflowNode) XXX_Size() int { + return xxx_messageInfo_WorkflowNode.Size(m) +} +func (m *WorkflowNode) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowNode.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowNode proto.InternalMessageInfo + +type isWorkflowNode_Reference interface { + isWorkflowNode_Reference() +} + +type WorkflowNode_LaunchplanRef struct { + LaunchplanRef *Identifier `protobuf:"bytes,1,opt,name=launchplan_ref,json=launchplanRef,proto3,oneof"` +} + +type WorkflowNode_SubWorkflowRef struct { + SubWorkflowRef *Identifier `protobuf:"bytes,2,opt,name=sub_workflow_ref,json=subWorkflowRef,proto3,oneof"` +} + +func (*WorkflowNode_LaunchplanRef) isWorkflowNode_Reference() {} + +func (*WorkflowNode_SubWorkflowRef) isWorkflowNode_Reference() {} + +func (m *WorkflowNode) GetReference() isWorkflowNode_Reference { + if m != nil { + return m.Reference + } + return nil +} + +func (m *WorkflowNode) GetLaunchplanRef() *Identifier { + if x, ok := m.GetReference().(*WorkflowNode_LaunchplanRef); ok { + return x.LaunchplanRef + } + return nil +} + +func (m *WorkflowNode) GetSubWorkflowRef() *Identifier { + if x, ok := m.GetReference().(*WorkflowNode_SubWorkflowRef); ok { + return x.SubWorkflowRef + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*WorkflowNode) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*WorkflowNode_LaunchplanRef)(nil), + (*WorkflowNode_SubWorkflowRef)(nil), + } +} + +// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean +// signal with the provided signal_id. +type ApproveCondition struct { + // A unique identifier for the requested boolean signal. + SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ApproveCondition) Reset() { *m = ApproveCondition{} } +func (m *ApproveCondition) String() string { return proto.CompactTextString(m) } +func (*ApproveCondition) ProtoMessage() {} +func (*ApproveCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{5} +} + +func (m *ApproveCondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ApproveCondition.Unmarshal(m, b) +} +func (m *ApproveCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ApproveCondition.Marshal(b, m, deterministic) +} +func (m *ApproveCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApproveCondition.Merge(m, src) +} +func (m *ApproveCondition) XXX_Size() int { + return xxx_messageInfo_ApproveCondition.Size(m) +} +func (m *ApproveCondition) XXX_DiscardUnknown() { + xxx_messageInfo_ApproveCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_ApproveCondition proto.InternalMessageInfo + +func (m *ApproveCondition) GetSignalId() string { + if m != nil { + return m.SignalId + } + return "" +} + +// SignalCondition represents a dependency on an signal. +type SignalCondition struct { + // A unique identifier for the requested signal. + SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // A type denoting the required value type for this signal. + Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // The variable name for the signal value in this nodes outputs. + OutputVariableName string `protobuf:"bytes,3,opt,name=output_variable_name,json=outputVariableName,proto3" json:"output_variable_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SignalCondition) Reset() { *m = SignalCondition{} } +func (m *SignalCondition) String() string { return proto.CompactTextString(m) } +func (*SignalCondition) ProtoMessage() {} +func (*SignalCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{6} +} + +func (m *SignalCondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SignalCondition.Unmarshal(m, b) +} +func (m *SignalCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SignalCondition.Marshal(b, m, deterministic) +} +func (m *SignalCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignalCondition.Merge(m, src) +} +func (m *SignalCondition) XXX_Size() int { + return xxx_messageInfo_SignalCondition.Size(m) +} +func (m *SignalCondition) XXX_DiscardUnknown() { + xxx_messageInfo_SignalCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_SignalCondition proto.InternalMessageInfo + +func (m *SignalCondition) GetSignalId() string { + if m != nil { + return m.SignalId + } + return "" +} + +func (m *SignalCondition) GetType() *LiteralType { + if m != nil { + return m.Type + } + return nil +} + +func (m *SignalCondition) GetOutputVariableName() string { + if m != nil { + return m.OutputVariableName + } + return "" +} + +// SleepCondition represents a dependency on waiting for the specified duration. +type SleepCondition struct { + // The overall duration for this sleep. + Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SleepCondition) Reset() { *m = SleepCondition{} } +func (m *SleepCondition) String() string { return proto.CompactTextString(m) } +func (*SleepCondition) ProtoMessage() {} +func (*SleepCondition) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{7} +} + +func (m *SleepCondition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SleepCondition.Unmarshal(m, b) +} +func (m *SleepCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SleepCondition.Marshal(b, m, deterministic) +} +func (m *SleepCondition) XXX_Merge(src proto.Message) { + xxx_messageInfo_SleepCondition.Merge(m, src) +} +func (m *SleepCondition) XXX_Size() int { + return xxx_messageInfo_SleepCondition.Size(m) +} +func (m *SleepCondition) XXX_DiscardUnknown() { + xxx_messageInfo_SleepCondition.DiscardUnknown(m) +} + +var xxx_messageInfo_SleepCondition proto.InternalMessageInfo + +func (m *SleepCondition) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +// GateNode refers to the condition that is required for the gate to successfully complete. +type GateNode struct { + // Types that are valid to be assigned to Condition: + // *GateNode_Approve + // *GateNode_Signal + // *GateNode_Sleep + Condition isGateNode_Condition `protobuf_oneof:"condition"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GateNode) Reset() { *m = GateNode{} } +func (m *GateNode) String() string { return proto.CompactTextString(m) } +func (*GateNode) ProtoMessage() {} +func (*GateNode) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{8} +} + +func (m *GateNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GateNode.Unmarshal(m, b) +} +func (m *GateNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GateNode.Marshal(b, m, deterministic) +} +func (m *GateNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_GateNode.Merge(m, src) +} +func (m *GateNode) XXX_Size() int { + return xxx_messageInfo_GateNode.Size(m) +} +func (m *GateNode) XXX_DiscardUnknown() { + xxx_messageInfo_GateNode.DiscardUnknown(m) +} + +var xxx_messageInfo_GateNode proto.InternalMessageInfo + +type isGateNode_Condition interface { + isGateNode_Condition() +} + +type GateNode_Approve struct { + Approve *ApproveCondition `protobuf:"bytes,1,opt,name=approve,proto3,oneof"` +} + +type GateNode_Signal struct { + Signal *SignalCondition `protobuf:"bytes,2,opt,name=signal,proto3,oneof"` +} + +type GateNode_Sleep struct { + Sleep *SleepCondition `protobuf:"bytes,3,opt,name=sleep,proto3,oneof"` +} + +func (*GateNode_Approve) isGateNode_Condition() {} + +func (*GateNode_Signal) isGateNode_Condition() {} + +func (*GateNode_Sleep) isGateNode_Condition() {} + +func (m *GateNode) GetCondition() isGateNode_Condition { + if m != nil { + return m.Condition + } + return nil +} + +func (m *GateNode) GetApprove() *ApproveCondition { + if x, ok := m.GetCondition().(*GateNode_Approve); ok { + return x.Approve + } + return nil +} + +func (m *GateNode) GetSignal() *SignalCondition { + if x, ok := m.GetCondition().(*GateNode_Signal); ok { + return x.Signal + } + return nil +} + +func (m *GateNode) GetSleep() *SleepCondition { + if x, ok := m.GetCondition().(*GateNode_Sleep); ok { + return x.Sleep + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GateNode) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GateNode_Approve)(nil), + (*GateNode_Signal)(nil), + (*GateNode_Sleep)(nil), + } +} + +// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input +// values. An ArrayNode can be executed with configurable parallelism (separate from the parent +// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. +type ArrayNode struct { + // node is the sub-node that will be executed for each element in the array. + Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + // parallelism defines the minimum number of instances to bring up concurrently at any given + // point. Note that this is an optimistic restriction and that, due to network partitioning or + // other failures, the actual number of currently running instances might be more. This has to + // be a positive number if assigned. Default value is size. + Parallelism uint32 `protobuf:"varint,2,opt,name=parallelism,proto3" json:"parallelism,omitempty"` + // Types that are valid to be assigned to SuccessCriteria: + // *ArrayNode_MinSuccesses + // *ArrayNode_MinSuccessRatio + SuccessCriteria isArrayNode_SuccessCriteria `protobuf_oneof:"success_criteria"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArrayNode) Reset() { *m = ArrayNode{} } +func (m *ArrayNode) String() string { return proto.CompactTextString(m) } +func (*ArrayNode) ProtoMessage() {} +func (*ArrayNode) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{9} +} + +func (m *ArrayNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArrayNode.Unmarshal(m, b) +} +func (m *ArrayNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArrayNode.Marshal(b, m, deterministic) +} +func (m *ArrayNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArrayNode.Merge(m, src) +} +func (m *ArrayNode) XXX_Size() int { + return xxx_messageInfo_ArrayNode.Size(m) +} +func (m *ArrayNode) XXX_DiscardUnknown() { + xxx_messageInfo_ArrayNode.DiscardUnknown(m) +} + +var xxx_messageInfo_ArrayNode proto.InternalMessageInfo + +func (m *ArrayNode) GetNode() *Node { + if m != nil { + return m.Node + } + return nil +} + +func (m *ArrayNode) GetParallelism() uint32 { + if m != nil { + return m.Parallelism + } + return 0 +} + +type isArrayNode_SuccessCriteria interface { + isArrayNode_SuccessCriteria() +} + +type ArrayNode_MinSuccesses struct { + MinSuccesses uint32 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` +} + +type ArrayNode_MinSuccessRatio struct { + MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` +} + +func (*ArrayNode_MinSuccesses) isArrayNode_SuccessCriteria() {} + +func (*ArrayNode_MinSuccessRatio) isArrayNode_SuccessCriteria() {} + +func (m *ArrayNode) GetSuccessCriteria() isArrayNode_SuccessCriteria { + if m != nil { + return m.SuccessCriteria + } + return nil +} + +func (m *ArrayNode) GetMinSuccesses() uint32 { + if x, ok := m.GetSuccessCriteria().(*ArrayNode_MinSuccesses); ok { + return x.MinSuccesses + } + return 0 +} + +func (m *ArrayNode) GetMinSuccessRatio() float32 { + if x, ok := m.GetSuccessCriteria().(*ArrayNode_MinSuccessRatio); ok { + return x.MinSuccessRatio + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ArrayNode) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ArrayNode_MinSuccesses)(nil), + (*ArrayNode_MinSuccessRatio)(nil), + } +} + +// Defines extra information about the Node. +type NodeMetadata struct { + // A friendly name for the Node + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The overall timeout of a task. + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Number of retries per task. + Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` + // Identify whether node is interruptible + // + // Types that are valid to be assigned to InterruptibleValue: + // *NodeMetadata_Interruptible + InterruptibleValue isNodeMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeMetadata) Reset() { *m = NodeMetadata{} } +func (m *NodeMetadata) String() string { return proto.CompactTextString(m) } +func (*NodeMetadata) ProtoMessage() {} +func (*NodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{10} +} + +func (m *NodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeMetadata.Unmarshal(m, b) +} +func (m *NodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeMetadata.Marshal(b, m, deterministic) +} +func (m *NodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeMetadata.Merge(m, src) +} +func (m *NodeMetadata) XXX_Size() int { + return xxx_messageInfo_NodeMetadata.Size(m) +} +func (m *NodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_NodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeMetadata proto.InternalMessageInfo + +func (m *NodeMetadata) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NodeMetadata) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *NodeMetadata) GetRetries() *RetryStrategy { + if m != nil { + return m.Retries + } + return nil +} + +type isNodeMetadata_InterruptibleValue interface { + isNodeMetadata_InterruptibleValue() +} + +type NodeMetadata_Interruptible struct { + Interruptible bool `protobuf:"varint,6,opt,name=interruptible,proto3,oneof"` +} + +func (*NodeMetadata_Interruptible) isNodeMetadata_InterruptibleValue() {} + +func (m *NodeMetadata) GetInterruptibleValue() isNodeMetadata_InterruptibleValue { + if m != nil { + return m.InterruptibleValue + } + return nil +} + +func (m *NodeMetadata) GetInterruptible() bool { + if x, ok := m.GetInterruptibleValue().(*NodeMetadata_Interruptible); ok { + return x.Interruptible + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NodeMetadata) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NodeMetadata_Interruptible)(nil), + } +} + +// Links a variable to an alias. +type Alias struct { + // Must match one of the output variable names on a node. + Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // A workflow-level unique alias that downstream nodes can refer to in their input. + Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Alias) Reset() { *m = Alias{} } +func (m *Alias) String() string { return proto.CompactTextString(m) } +func (*Alias) ProtoMessage() {} +func (*Alias) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{11} +} + +func (m *Alias) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Alias.Unmarshal(m, b) +} +func (m *Alias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Alias.Marshal(b, m, deterministic) +} +func (m *Alias) XXX_Merge(src proto.Message) { + xxx_messageInfo_Alias.Merge(m, src) +} +func (m *Alias) XXX_Size() int { + return xxx_messageInfo_Alias.Size(m) +} +func (m *Alias) XXX_DiscardUnknown() { + xxx_messageInfo_Alias.DiscardUnknown(m) +} + +var xxx_messageInfo_Alias proto.InternalMessageInfo + +func (m *Alias) GetVar() string { + if m != nil { + return m.Var + } + return "" +} + +func (m *Alias) GetAlias() string { + if m != nil { + return m.Alias + } + return "" +} + +// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +// node. +type Node struct { + // A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved + // node ids that cannot be used by other nodes. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Extra metadata about the node. + Metadata *NodeMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + // must be fulfilled. + Inputs []*Binding `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` + //+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its + // upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs + // field. + UpstreamNodeIds []string `protobuf:"bytes,4,rep,name=upstream_node_ids,json=upstreamNodeIds,proto3" json:"upstream_node_ids,omitempty"` + //+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + // need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + // nodes outputs using the alias if one's specified. + OutputAliases []*Alias `protobuf:"bytes,5,rep,name=output_aliases,json=outputAliases,proto3" json:"output_aliases,omitempty"` + // Information about the target to execute in this node. + // + // Types that are valid to be assigned to Target: + // *Node_TaskNode + // *Node_WorkflowNode + // *Node_BranchNode + // *Node_GateNode + // *Node_ArrayNode + Target isNode_Target `protobuf_oneof:"target"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Node) Reset() { *m = Node{} } +func (m *Node) String() string { return proto.CompactTextString(m) } +func (*Node) ProtoMessage() {} +func (*Node) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{12} +} + +func (m *Node) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Node.Unmarshal(m, b) +} +func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Node.Marshal(b, m, deterministic) +} +func (m *Node) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node.Merge(m, src) +} +func (m *Node) XXX_Size() int { + return xxx_messageInfo_Node.Size(m) +} +func (m *Node) XXX_DiscardUnknown() { + xxx_messageInfo_Node.DiscardUnknown(m) +} + +var xxx_messageInfo_Node proto.InternalMessageInfo + +func (m *Node) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Node) GetMetadata() *NodeMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *Node) GetInputs() []*Binding { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *Node) GetUpstreamNodeIds() []string { + if m != nil { + return m.UpstreamNodeIds + } + return nil +} + +func (m *Node) GetOutputAliases() []*Alias { + if m != nil { + return m.OutputAliases + } + return nil +} + +type isNode_Target interface { + isNode_Target() +} + +type Node_TaskNode struct { + TaskNode *TaskNode `protobuf:"bytes,6,opt,name=task_node,json=taskNode,proto3,oneof"` +} + +type Node_WorkflowNode struct { + WorkflowNode *WorkflowNode `protobuf:"bytes,7,opt,name=workflow_node,json=workflowNode,proto3,oneof"` +} + +type Node_BranchNode struct { + BranchNode *BranchNode `protobuf:"bytes,8,opt,name=branch_node,json=branchNode,proto3,oneof"` +} + +type Node_GateNode struct { + GateNode *GateNode `protobuf:"bytes,9,opt,name=gate_node,json=gateNode,proto3,oneof"` +} + +type Node_ArrayNode struct { + ArrayNode *ArrayNode `protobuf:"bytes,10,opt,name=array_node,json=arrayNode,proto3,oneof"` +} + +func (*Node_TaskNode) isNode_Target() {} + +func (*Node_WorkflowNode) isNode_Target() {} + +func (*Node_BranchNode) isNode_Target() {} + +func (*Node_GateNode) isNode_Target() {} + +func (*Node_ArrayNode) isNode_Target() {} + +func (m *Node) GetTarget() isNode_Target { + if m != nil { + return m.Target + } + return nil +} + +func (m *Node) GetTaskNode() *TaskNode { + if x, ok := m.GetTarget().(*Node_TaskNode); ok { + return x.TaskNode + } + return nil +} + +func (m *Node) GetWorkflowNode() *WorkflowNode { + if x, ok := m.GetTarget().(*Node_WorkflowNode); ok { + return x.WorkflowNode + } + return nil +} + +func (m *Node) GetBranchNode() *BranchNode { + if x, ok := m.GetTarget().(*Node_BranchNode); ok { + return x.BranchNode + } + return nil +} + +func (m *Node) GetGateNode() *GateNode { + if x, ok := m.GetTarget().(*Node_GateNode); ok { + return x.GateNode + } + return nil +} + +func (m *Node) GetArrayNode() *ArrayNode { + if x, ok := m.GetTarget().(*Node_ArrayNode); ok { + return x.ArrayNode + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*Node) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*Node_TaskNode)(nil), + (*Node_WorkflowNode)(nil), + (*Node_BranchNode)(nil), + (*Node_GateNode)(nil), + (*Node_ArrayNode)(nil), + } +} + +// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not +// percolate down to child entities (like tasks) launched by the workflow. +type WorkflowMetadata struct { + // Indicates the runtime priority of workflow executions. + QualityOfService *QualityOfService `protobuf:"bytes,1,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` + // Defines how the system should behave when a failure is detected in the workflow execution. + OnFailure WorkflowMetadata_OnFailurePolicy `protobuf:"varint,2,opt,name=on_failure,json=onFailure,proto3,enum=flyteidl.core.WorkflowMetadata_OnFailurePolicy" json:"on_failure,omitempty"` + // Arbitrary tags that allow users and the platform to store small but arbitrary labels + Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowMetadata) Reset() { *m = WorkflowMetadata{} } +func (m *WorkflowMetadata) String() string { return proto.CompactTextString(m) } +func (*WorkflowMetadata) ProtoMessage() {} +func (*WorkflowMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{13} +} + +func (m *WorkflowMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowMetadata.Unmarshal(m, b) +} +func (m *WorkflowMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowMetadata.Marshal(b, m, deterministic) +} +func (m *WorkflowMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowMetadata.Merge(m, src) +} +func (m *WorkflowMetadata) XXX_Size() int { + return xxx_messageInfo_WorkflowMetadata.Size(m) +} +func (m *WorkflowMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowMetadata proto.InternalMessageInfo + +func (m *WorkflowMetadata) GetQualityOfService() *QualityOfService { + if m != nil { + return m.QualityOfService + } + return nil +} + +func (m *WorkflowMetadata) GetOnFailure() WorkflowMetadata_OnFailurePolicy { + if m != nil { + return m.OnFailure + } + return WorkflowMetadata_FAIL_IMMEDIATELY +} + +func (m *WorkflowMetadata) GetTags() map[string]string { + if m != nil { + return m.Tags + } + return nil +} + +// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to +// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it +// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes +// unless explicitly overridden at the node layer. +// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be +// added to both this object and the WorkflowMetadata object above. +type WorkflowMetadataDefaults struct { + // Whether child nodes of the workflow are interruptible. + Interruptible bool `protobuf:"varint,1,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowMetadataDefaults) Reset() { *m = WorkflowMetadataDefaults{} } +func (m *WorkflowMetadataDefaults) String() string { return proto.CompactTextString(m) } +func (*WorkflowMetadataDefaults) ProtoMessage() {} +func (*WorkflowMetadataDefaults) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{14} +} + +func (m *WorkflowMetadataDefaults) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowMetadataDefaults.Unmarshal(m, b) +} +func (m *WorkflowMetadataDefaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowMetadataDefaults.Marshal(b, m, deterministic) +} +func (m *WorkflowMetadataDefaults) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowMetadataDefaults.Merge(m, src) +} +func (m *WorkflowMetadataDefaults) XXX_Size() int { + return xxx_messageInfo_WorkflowMetadataDefaults.Size(m) +} +func (m *WorkflowMetadataDefaults) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowMetadataDefaults.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowMetadataDefaults proto.InternalMessageInfo + +func (m *WorkflowMetadataDefaults) GetInterruptible() bool { + if m != nil { + return m.Interruptible + } + return false +} + +// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +// directed acyclic graph. +type WorkflowTemplate struct { + // A globally unique identifier for the workflow. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Extra metadata about the workflow. + Metadata *WorkflowMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Defines a strongly typed interface for the Workflow. This can include some optional parameters. + Interface *TypedInterface `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"` + // A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. + Nodes []*Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"` + // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + // specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + // to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + // bind final outputs. + // Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + // just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + // outputs from the output of a task. + Outputs []*Binding `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` + //+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + // The interface of this node must match the Workflow interface with an additional input named 'error' of type + // pb.lyft.flyte.core.Error. + FailureNode *Node `protobuf:"bytes,6,opt,name=failure_node,json=failureNode,proto3" json:"failure_node,omitempty"` + // workflow defaults + MetadataDefaults *WorkflowMetadataDefaults `protobuf:"bytes,7,opt,name=metadata_defaults,json=metadataDefaults,proto3" json:"metadata_defaults,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowTemplate) Reset() { *m = WorkflowTemplate{} } +func (m *WorkflowTemplate) String() string { return proto.CompactTextString(m) } +func (*WorkflowTemplate) ProtoMessage() {} +func (*WorkflowTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{15} +} + +func (m *WorkflowTemplate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowTemplate.Unmarshal(m, b) +} +func (m *WorkflowTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowTemplate.Marshal(b, m, deterministic) +} +func (m *WorkflowTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowTemplate.Merge(m, src) +} +func (m *WorkflowTemplate) XXX_Size() int { + return xxx_messageInfo_WorkflowTemplate.Size(m) +} +func (m *WorkflowTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowTemplate proto.InternalMessageInfo + +func (m *WorkflowTemplate) GetId() *Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *WorkflowTemplate) GetMetadata() *WorkflowMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *WorkflowTemplate) GetInterface() *TypedInterface { + if m != nil { + return m.Interface + } + return nil +} + +func (m *WorkflowTemplate) GetNodes() []*Node { + if m != nil { + return m.Nodes + } + return nil +} + +func (m *WorkflowTemplate) GetOutputs() []*Binding { + if m != nil { + return m.Outputs + } + return nil +} + +func (m *WorkflowTemplate) GetFailureNode() *Node { + if m != nil { + return m.FailureNode + } + return nil +} + +func (m *WorkflowTemplate) GetMetadataDefaults() *WorkflowMetadataDefaults { + if m != nil { + return m.MetadataDefaults + } + return nil +} + +// Optional task node overrides that will be applied at task execution time. +type TaskNodeOverrides struct { + // A customizable interface to convey resources requested for a task container. + Resources *Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskNodeOverrides) Reset() { *m = TaskNodeOverrides{} } +func (m *TaskNodeOverrides) String() string { return proto.CompactTextString(m) } +func (*TaskNodeOverrides) ProtoMessage() {} +func (*TaskNodeOverrides) Descriptor() ([]byte, []int) { + return fileDescriptor_fccede37486c456e, []int{16} +} + +func (m *TaskNodeOverrides) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskNodeOverrides.Unmarshal(m, b) +} +func (m *TaskNodeOverrides) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskNodeOverrides.Marshal(b, m, deterministic) +} +func (m *TaskNodeOverrides) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskNodeOverrides.Merge(m, src) +} +func (m *TaskNodeOverrides) XXX_Size() int { + return xxx_messageInfo_TaskNodeOverrides.Size(m) +} +func (m *TaskNodeOverrides) XXX_DiscardUnknown() { + xxx_messageInfo_TaskNodeOverrides.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskNodeOverrides proto.InternalMessageInfo + +func (m *TaskNodeOverrides) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.core.WorkflowMetadata_OnFailurePolicy", WorkflowMetadata_OnFailurePolicy_name, WorkflowMetadata_OnFailurePolicy_value) + proto.RegisterType((*IfBlock)(nil), "flyteidl.core.IfBlock") + proto.RegisterType((*IfElseBlock)(nil), "flyteidl.core.IfElseBlock") + proto.RegisterType((*BranchNode)(nil), "flyteidl.core.BranchNode") + proto.RegisterType((*TaskNode)(nil), "flyteidl.core.TaskNode") + proto.RegisterType((*WorkflowNode)(nil), "flyteidl.core.WorkflowNode") + proto.RegisterType((*ApproveCondition)(nil), "flyteidl.core.ApproveCondition") + proto.RegisterType((*SignalCondition)(nil), "flyteidl.core.SignalCondition") + proto.RegisterType((*SleepCondition)(nil), "flyteidl.core.SleepCondition") + proto.RegisterType((*GateNode)(nil), "flyteidl.core.GateNode") + proto.RegisterType((*ArrayNode)(nil), "flyteidl.core.ArrayNode") + proto.RegisterType((*NodeMetadata)(nil), "flyteidl.core.NodeMetadata") + proto.RegisterType((*Alias)(nil), "flyteidl.core.Alias") + proto.RegisterType((*Node)(nil), "flyteidl.core.Node") + proto.RegisterType((*WorkflowMetadata)(nil), "flyteidl.core.WorkflowMetadata") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.WorkflowMetadata.TagsEntry") + proto.RegisterType((*WorkflowMetadataDefaults)(nil), "flyteidl.core.WorkflowMetadataDefaults") + proto.RegisterType((*WorkflowTemplate)(nil), "flyteidl.core.WorkflowTemplate") + proto.RegisterType((*TaskNodeOverrides)(nil), "flyteidl.core.TaskNodeOverrides") +} + +func init() { proto.RegisterFile("flyteidl/core/workflow.proto", fileDescriptor_fccede37486c456e) } + +var fileDescriptor_fccede37486c456e = []byte{ + // 1448 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0x4d, 0x73, 0xdb, 0xba, + 0x15, 0x95, 0x64, 0xd9, 0x16, 0xaf, 0x2d, 0x5b, 0x46, 0xdc, 0x56, 0xf9, 0xf6, 0x70, 0xd2, 0xc6, + 0xc9, 0xa4, 0x52, 0x26, 0x69, 0x9c, 0xb4, 0x6e, 0x33, 0x95, 0x62, 0x25, 0xd2, 0xd4, 0x1f, 0x09, + 0xac, 0x7e, 0x6e, 0x38, 0x10, 0x09, 0xca, 0x18, 0x53, 0xa4, 0x02, 0x80, 0x4e, 0x34, 0xfd, 0x13, + 0xdd, 0x75, 0xf9, 0x66, 0xde, 0xe2, 0xfd, 0x8d, 0xb7, 0x7a, 0xdb, 0xb7, 0x7a, 0x3f, 0xe7, 0x2d, + 0xde, 0x00, 0x24, 0x28, 0x8b, 0x96, 0xe2, 0xec, 0x44, 0xdc, 0x73, 0xc1, 0x83, 0x8b, 0x7b, 0xce, + 0xa5, 0xe0, 0x8e, 0x1f, 0x4c, 0x24, 0x65, 0x5e, 0xd0, 0x74, 0x23, 0x4e, 0x9b, 0x9f, 0x22, 0x7e, + 0xee, 0x07, 0xd1, 0xa7, 0xc6, 0x98, 0x47, 0x32, 0x42, 0x55, 0x13, 0x6d, 0xa8, 0xe8, 0xad, 0xbb, + 0xb3, 0x60, 0x37, 0x0a, 0x3d, 0x26, 0x59, 0x14, 0x26, 0xe8, 0x7c, 0x98, 0x7e, 0xa6, 0x6e, 0x7c, + 0x29, 0x7c, 0x6f, 0x36, 0xcc, 0x3c, 0x1a, 0x4a, 0xe6, 0x33, 0xca, 0xe7, 0xa7, 0xb3, 0x50, 0x52, + 0xee, 0x13, 0x97, 0xa6, 0xe1, 0x1c, 0xd3, 0x80, 0x49, 0xca, 0x49, 0x20, 0xd2, 0xe8, 0xcd, 0xd9, + 0xa8, 0x24, 0xe2, 0x7c, 0x51, 0x68, 0x32, 0xa6, 0x62, 0xfe, 0x9e, 0x82, 0xba, 0x31, 0x67, 0x72, + 0x62, 0x08, 0x0f, 0xa3, 0x68, 0x18, 0xd0, 0xa6, 0x7e, 0x1a, 0xc4, 0x7e, 0xd3, 0x8b, 0x39, 0x99, + 0x1e, 0xc8, 0xfe, 0x2f, 0xac, 0xf6, 0xfc, 0x76, 0x10, 0xb9, 0xe7, 0xe8, 0x35, 0x58, 0x59, 0x35, + 0xea, 0xc5, 0x9d, 0xe2, 0xee, 0xda, 0xb3, 0x9d, 0xc6, 0x4c, 0xf1, 0x1a, 0xed, 0x28, 0x0a, 0x28, + 0x09, 0x3b, 0x9f, 0xc7, 0x9c, 0x0a, 0xc1, 0xa2, 0x10, 0x4f, 0x53, 0xd0, 0x53, 0xb0, 0xe4, 0x19, + 0x0d, 0x9d, 0x30, 0xf2, 0x68, 0xbd, 0xa4, 0xf3, 0x6f, 0xe4, 0xf2, 0x8f, 0x23, 0x8f, 0xe2, 0x8a, + 0x42, 0xa9, 0x5f, 0xf6, 0x4f, 0x45, 0x58, 0xeb, 0xf9, 0x9d, 0x40, 0xd0, 0x84, 0xc1, 0x63, 0x28, + 0xbb, 0x44, 0xd0, 0xf4, 0xe5, 0xbf, 0xce, 0x25, 0xa7, 0x3c, 0xb1, 0xc6, 0xa0, 0x27, 0xb0, 0x1c, + 0xc9, 0x33, 0xca, 0xeb, 0xa5, 0x9d, 0xa5, 0x2f, 0x80, 0x13, 0x10, 0x7a, 0x06, 0x16, 0x0d, 0x04, + 0x4d, 0xb8, 0x2d, 0x2d, 0xe4, 0xd6, 0x2d, 0xe0, 0x8a, 0xc2, 0xa9, 0xdf, 0xea, 0x0d, 0x94, 0xf3, + 0x88, 0xd7, 0xcb, 0x1a, 0xbf, 0x9d, 0xc3, 0x77, 0x54, 0xac, 0x5b, 0xc0, 0x09, 0xa8, 0x6d, 0xc1, + 0xaa, 0x47, 0x7d, 0x12, 0x07, 0xd2, 0x6e, 0x01, 0xb4, 0x39, 0x09, 0xdd, 0x33, 0xbd, 0xcd, 0x73, + 0x58, 0x65, 0xbe, 0xa3, 0x76, 0x4d, 0xcf, 0x75, 0xeb, 0x0a, 0xd5, 0xac, 0x02, 0x78, 0x85, 0xe9, + 0x07, 0xfb, 0xff, 0x45, 0xa8, 0xf4, 0x89, 0x38, 0xd7, 0x3b, 0xbc, 0x86, 0x75, 0x4e, 0x7d, 0xca, + 0x69, 0xe8, 0x52, 0x87, 0x79, 0xe9, 0x36, 0x37, 0xf3, 0xdb, 0x64, 0xbd, 0xd8, 0x2d, 0xe0, 0xb5, + 0x2c, 0xa1, 0xe7, 0xa9, 0x8b, 0x8d, 0x2e, 0x28, 0xe7, 0xcc, 0xa3, 0x22, 0xbd, 0x98, 0xfc, 0xc5, + 0x9a, 0x77, 0x9d, 0x18, 0x1c, 0x9e, 0xa6, 0xb4, 0xd7, 0xc0, 0xca, 0xb6, 0xb3, 0xbf, 0x2b, 0xc2, + 0xfa, 0x3f, 0x53, 0x85, 0x69, 0x76, 0x6d, 0xd8, 0x08, 0x48, 0x1c, 0xba, 0x67, 0xe3, 0x80, 0x84, + 0x0e, 0xa7, 0xfe, 0xd7, 0xf0, 0xab, 0x4e, 0x53, 0x30, 0xf5, 0x51, 0x07, 0x6a, 0x22, 0x1e, 0x38, + 0x46, 0xb9, 0x7a, 0x97, 0xd2, 0xf5, 0xbb, 0x6c, 0x88, 0x78, 0x60, 0xb8, 0x60, 0xea, 0xcf, 0x12, + 0x6d, 0x42, 0xad, 0x35, 0x1e, 0xf3, 0xe8, 0x82, 0xbe, 0xc9, 0x5a, 0xf4, 0x36, 0x58, 0x82, 0x0d, + 0x43, 0x12, 0x98, 0x32, 0x5a, 0xb8, 0x92, 0x2c, 0xf4, 0x3c, 0xfb, 0x7f, 0x45, 0xd8, 0x3c, 0xd5, + 0x0f, 0x5f, 0x97, 0x80, 0x1a, 0x50, 0x56, 0x42, 0x4c, 0x99, 0xe6, 0xaf, 0xf5, 0x30, 0x11, 0x77, + 0x7f, 0x32, 0xa6, 0x58, 0xe3, 0xd0, 0x53, 0xd8, 0x8e, 0x62, 0x39, 0x8e, 0xa5, 0x73, 0x41, 0x38, + 0x23, 0x83, 0x80, 0x3a, 0x21, 0x19, 0x25, 0xfd, 0x68, 0x61, 0x94, 0xc4, 0xfe, 0x91, 0x86, 0x8e, + 0xc9, 0x88, 0xda, 0xef, 0x60, 0xe3, 0x34, 0xa0, 0x74, 0x3c, 0x25, 0xf4, 0x02, 0x2a, 0x46, 0xc1, + 0x59, 0x9d, 0x13, 0x89, 0x37, 0x8c, 0xc4, 0x1b, 0x07, 0x29, 0x00, 0x67, 0x50, 0xfb, 0x87, 0x22, + 0x54, 0xde, 0x11, 0x99, 0x34, 0xf6, 0x3e, 0xac, 0x92, 0xa4, 0x32, 0xe9, 0x16, 0xf7, 0x73, 0xd4, + 0xf3, 0x75, 0xeb, 0x16, 0xb0, 0xc9, 0x40, 0xaf, 0x60, 0x25, 0x29, 0x40, 0x7a, 0xec, 0x7b, 0xb9, + 0xdc, 0x5c, 0x05, 0xbb, 0x05, 0x9c, 0xe2, 0xd1, 0x0b, 0x58, 0x16, 0xea, 0x30, 0xa9, 0xfe, 0xee, + 0xe6, 0x13, 0x67, 0x0e, 0xaa, 0x84, 0xa5, 0xd1, 0xea, 0x52, 0x33, 0x8f, 0xb1, 0xbf, 0x2f, 0x82, + 0xd5, 0xe2, 0x9c, 0x4c, 0xf4, 0x41, 0x1e, 0x42, 0x59, 0x0b, 0xba, 0xb8, 0xd8, 0x6c, 0x34, 0x00, + 0xed, 0xc0, 0xda, 0x98, 0x70, 0x12, 0x04, 0x34, 0x60, 0x62, 0xa4, 0x99, 0x57, 0xf1, 0xe5, 0x25, + 0xf4, 0x5b, 0xa8, 0x8e, 0x58, 0xe8, 0x88, 0xd8, 0x75, 0xa9, 0x10, 0x54, 0x68, 0x92, 0xd5, 0x6e, + 0x01, 0xaf, 0x8f, 0x58, 0x78, 0x6a, 0x56, 0xd1, 0x13, 0xd8, 0xba, 0x04, 0x73, 0x74, 0x75, 0xb5, + 0x3f, 0x94, 0xba, 0x05, 0xbc, 0x39, 0x85, 0x62, 0x15, 0x68, 0x23, 0xd5, 0xd6, 0x09, 0xd2, 0xe5, + 0xaa, 0x1d, 0x18, 0xb1, 0x7f, 0x2c, 0xc2, 0xba, 0x62, 0x76, 0x44, 0x25, 0xf1, 0x88, 0x24, 0x08, + 0x41, 0x59, 0x77, 0x41, 0xd2, 0x5d, 0xfa, 0xb7, 0xf2, 0x0c, 0xc9, 0x46, 0x34, 0x8a, 0x65, 0x6a, + 0x3e, 0x5f, 0xb8, 0x64, 0x83, 0x44, 0x7b, 0xb0, 0xca, 0xa9, 0xe4, 0x8c, 0x8a, 0xfa, 0xb2, 0x4e, + 0xba, 0x93, 0x2b, 0x08, 0xa6, 0x92, 0x4f, 0x4e, 0x25, 0x27, 0x92, 0x0e, 0x27, 0xd8, 0x80, 0xd1, + 0xef, 0xa0, 0xaa, 0xe7, 0x14, 0x8f, 0xc7, 0x92, 0x0d, 0x02, 0x5a, 0x5f, 0xd9, 0x29, 0xee, 0x56, + 0x94, 0x48, 0x67, 0x96, 0xdb, 0xbf, 0x82, 0x1b, 0x33, 0x0b, 0xce, 0x05, 0x09, 0x62, 0xa5, 0xb3, + 0xe5, 0x56, 0xc0, 0x88, 0x40, 0x35, 0x58, 0xba, 0x20, 0x3c, 0x3d, 0x87, 0xfa, 0x89, 0xb6, 0x61, + 0x99, 0xa8, 0x90, 0x2e, 0xb8, 0x85, 0x93, 0x07, 0xfb, 0x9b, 0x32, 0x94, 0xf5, 0xf5, 0x6d, 0x40, + 0x29, 0x53, 0x55, 0x89, 0x79, 0xe8, 0x25, 0x54, 0x46, 0x69, 0x55, 0xd2, 0xe6, 0xba, 0x3d, 0xe7, + 0x4a, 0x4d, 0xe1, 0x70, 0x06, 0x46, 0x0d, 0x58, 0x61, 0xe1, 0x38, 0x96, 0xea, 0xd6, 0xe6, 0x0d, + 0x83, 0x36, 0x0b, 0x3d, 0x16, 0x0e, 0x71, 0x8a, 0x42, 0x8f, 0x61, 0x2b, 0x1e, 0x0b, 0xc9, 0x29, + 0x19, 0xe9, 0x89, 0xe0, 0x30, 0x4f, 0xd4, 0xcb, 0x3b, 0x4b, 0xbb, 0x16, 0xde, 0x34, 0x01, 0xf5, + 0xaa, 0x9e, 0x27, 0xd0, 0x3e, 0x6c, 0xa4, 0xa2, 0xd5, 0xec, 0x75, 0x71, 0x97, 0xe6, 0x8c, 0x03, + 0x5d, 0x03, 0x5c, 0x4d, 0xb0, 0xad, 0x04, 0x8a, 0xf6, 0xc0, 0x52, 0x53, 0x3c, 0x19, 0x3b, 0x2b, + 0xfa, 0x48, 0xbf, 0x59, 0xe0, 0xbc, 0x6a, 0xf4, 0x48, 0xe3, 0xf8, 0x6d, 0xa8, 0x66, 0x5e, 0xa8, + 0x73, 0x57, 0xe7, 0x96, 0xe3, 0xb2, 0x0f, 0xab, 0x56, 0xfd, 0x74, 0xd9, 0x97, 0xff, 0x0c, 0x6b, + 0x03, 0x3d, 0x85, 0x92, 0x1d, 0x2a, 0x73, 0xed, 0x74, 0x3a, 0xa7, 0xba, 0x05, 0x0c, 0x83, 0xe9, + 0xd4, 0xda, 0x03, 0x6b, 0x48, 0x64, 0x3a, 0x30, 0xad, 0xb9, 0xcc, 0x8d, 0x9f, 0x28, 0xe6, 0x43, + 0xe3, 0x2d, 0x7f, 0x04, 0x20, 0x4a, 0x9f, 0x49, 0x22, 0xe8, 0xc4, 0x7a, 0xbe, 0x54, 0x46, 0xc0, + 0xdd, 0x02, 0xb6, 0x88, 0x79, 0x68, 0x57, 0x60, 0x45, 0x12, 0x3e, 0xa4, 0xd2, 0xfe, 0xb9, 0x04, + 0x35, 0x73, 0xb6, 0x4c, 0x27, 0x47, 0x80, 0x3e, 0xc6, 0x24, 0x60, 0x72, 0xe2, 0x44, 0xbe, 0x23, + 0x28, 0xbf, 0x60, 0xee, 0x22, 0x03, 0xfb, 0x90, 0x00, 0x4f, 0xfc, 0xd3, 0x04, 0x86, 0x6b, 0x1f, + 0x73, 0x2b, 0xe8, 0x18, 0x20, 0x0a, 0x1d, 0x9f, 0xb0, 0x20, 0xe6, 0x89, 0x85, 0x6f, 0x3c, 0x6b, + 0x2e, 0xa8, 0xaf, 0xe1, 0xd0, 0x38, 0x09, 0xdf, 0x26, 0x09, 0xef, 0xa3, 0x80, 0xb9, 0x13, 0x6c, + 0x45, 0x66, 0x01, 0xfd, 0x05, 0xca, 0x92, 0x0c, 0x4d, 0x07, 0x3e, 0xba, 0x6e, 0xa7, 0x3e, 0x19, + 0x8a, 0x4e, 0x28, 0xf9, 0x04, 0xeb, 0xb4, 0x5b, 0x2f, 0xc1, 0xca, 0x96, 0x94, 0x92, 0xce, 0xe9, + 0xc4, 0x28, 0xe9, 0x9c, 0x4e, 0x94, 0x92, 0xb4, 0xda, 0x8c, 0x92, 0xf4, 0xc3, 0x9f, 0x4a, 0xaf, + 0x8a, 0xf6, 0x07, 0xd8, 0xcc, 0xb1, 0x42, 0xdb, 0x50, 0x7b, 0xdb, 0xea, 0x1d, 0x3a, 0xbd, 0xa3, + 0xa3, 0xce, 0x41, 0xaf, 0xd5, 0xef, 0x1c, 0xfe, 0xbb, 0x56, 0x40, 0xbb, 0xf0, 0x40, 0xaf, 0xb6, + 0xde, 0xf6, 0x3b, 0xd8, 0xe9, 0xfc, 0xab, 0xf3, 0xe6, 0xef, 0xfd, 0x56, 0xfb, 0xb0, 0xe3, 0x1c, + 0x9f, 0x1c, 0x74, 0x4e, 0x9d, 0x37, 0x27, 0x47, 0xef, 0x0f, 0x3b, 0xfd, 0x4e, 0xad, 0x68, 0xff, + 0x15, 0xea, 0x79, 0xbe, 0x07, 0xc9, 0xa7, 0x8d, 0x40, 0x0f, 0xf2, 0x66, 0xa1, 0x48, 0x56, 0x72, + 0x56, 0x61, 0x7f, 0xbb, 0x34, 0xbd, 0xc0, 0x3e, 0x1d, 0x8d, 0x03, 0x22, 0x29, 0x7a, 0x94, 0xc9, + 0xfd, 0x4b, 0x63, 0x5d, 0x3b, 0xc1, 0xfe, 0x15, 0x27, 0xb8, 0x7f, 0x4d, 0x41, 0x2f, 0xb9, 0xc1, + 0x3e, 0x58, 0xd9, 0x77, 0xf7, 0x82, 0x59, 0xa3, 0x86, 0xb2, 0xd7, 0x33, 0x20, 0x3c, 0xc5, 0xa3, + 0x47, 0xb0, 0xac, 0x3a, 0x37, 0xb1, 0x83, 0x05, 0x33, 0x25, 0x41, 0xa0, 0xa7, 0xb0, 0x9a, 0xa8, + 0xdd, 0x58, 0xc2, 0x22, 0xdb, 0x31, 0x30, 0xb4, 0x07, 0xeb, 0x69, 0xc3, 0x5d, 0x76, 0x84, 0xb9, + 0xef, 0x58, 0x4b, 0x81, 0x5a, 0x54, 0x7d, 0xd8, 0x32, 0xa7, 0x73, 0xd2, 0x8f, 0x4c, 0x91, 0x5a, + 0xc2, 0xc3, 0x6b, 0xea, 0x62, 0x2e, 0x0e, 0xd7, 0x46, 0xb9, 0x15, 0xfb, 0x6f, 0xb0, 0x75, 0xe5, + 0xb3, 0x4f, 0xe9, 0x9e, 0x53, 0x11, 0xc5, 0xdc, 0xa5, 0x22, 0xbd, 0xab, 0xfa, 0x95, 0x31, 0x92, + 0xc6, 0xf1, 0x14, 0xda, 0xde, 0xfb, 0xcf, 0x1f, 0x86, 0x4c, 0x9e, 0xc5, 0x83, 0x86, 0x1b, 0x8d, + 0x9a, 0x3a, 0x21, 0xe2, 0xc3, 0x66, 0xf6, 0xdf, 0x64, 0x48, 0xc3, 0xe6, 0x78, 0xf0, 0xfb, 0x61, + 0xd4, 0x9c, 0xf9, 0xbb, 0x32, 0x58, 0xd1, 0x03, 0xed, 0xf9, 0x2f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xc8, 0xd8, 0x49, 0xbd, 0xc4, 0x0d, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go new file mode 100644 index 0000000000..cf7a679a1f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go @@ -0,0 +1,1609 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/workflow.proto + +package core + +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 _workflow_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 IfBlock with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *IfBlock) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCondition()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfBlockValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetThenNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfBlockValidationError{ + field: "ThenNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// IfBlockValidationError is the validation error returned by IfBlock.Validate +// if the designated constraints aren't met. +type IfBlockValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IfBlockValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IfBlockValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IfBlockValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IfBlockValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IfBlockValidationError) ErrorName() string { return "IfBlockValidationError" } + +// Error satisfies the builtin error interface +func (e IfBlockValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIfBlock.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IfBlockValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IfBlockValidationError{} + +// Validate checks the field values on IfElseBlock with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *IfElseBlock) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCase()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: "Case", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetOther() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: fmt.Sprintf("Other[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.Default.(type) { + + case *IfElseBlock_ElseNode: + + if v, ok := interface{}(m.GetElseNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: "ElseNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *IfElseBlock_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// IfElseBlockValidationError is the validation error returned by +// IfElseBlock.Validate if the designated constraints aren't met. +type IfElseBlockValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IfElseBlockValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IfElseBlockValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IfElseBlockValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IfElseBlockValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IfElseBlockValidationError) ErrorName() string { return "IfElseBlockValidationError" } + +// Error satisfies the builtin error interface +func (e IfElseBlockValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIfElseBlock.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IfElseBlockValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IfElseBlockValidationError{} + +// Validate checks the field values on BranchNode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *BranchNode) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIfElse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BranchNodeValidationError{ + field: "IfElse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BranchNodeValidationError is the validation error returned by +// BranchNode.Validate if the designated constraints aren't met. +type BranchNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BranchNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BranchNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BranchNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BranchNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BranchNodeValidationError) ErrorName() string { return "BranchNodeValidationError" } + +// Error satisfies the builtin error interface +func (e BranchNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBranchNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BranchNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BranchNodeValidationError{} + +// Validate checks the field values on TaskNode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskNode) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetOverrides()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskNodeValidationError{ + field: "Overrides", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Reference.(type) { + + case *TaskNode_ReferenceId: + + if v, ok := interface{}(m.GetReferenceId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskNodeValidationError{ + field: "ReferenceId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskNodeValidationError is the validation error returned by +// TaskNode.Validate if the designated constraints aren't met. +type TaskNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskNodeValidationError) ErrorName() string { return "TaskNodeValidationError" } + +// Error satisfies the builtin error interface +func (e TaskNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskNodeValidationError{} + +// Validate checks the field values on WorkflowNode with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WorkflowNode) Validate() error { + if m == nil { + return nil + } + + switch m.Reference.(type) { + + case *WorkflowNode_LaunchplanRef: + + if v, ok := interface{}(m.GetLaunchplanRef()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeValidationError{ + field: "LaunchplanRef", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *WorkflowNode_SubWorkflowRef: + + if v, ok := interface{}(m.GetSubWorkflowRef()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeValidationError{ + field: "SubWorkflowRef", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WorkflowNodeValidationError is the validation error returned by +// WorkflowNode.Validate if the designated constraints aren't met. +type WorkflowNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowNodeValidationError) ErrorName() string { return "WorkflowNodeValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowNodeValidationError{} + +// Validate checks the field values on ApproveCondition with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ApproveCondition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SignalId + + return nil +} + +// ApproveConditionValidationError is the validation error returned by +// ApproveCondition.Validate if the designated constraints aren't met. +type ApproveConditionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ApproveConditionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ApproveConditionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ApproveConditionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ApproveConditionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ApproveConditionValidationError) ErrorName() string { return "ApproveConditionValidationError" } + +// Error satisfies the builtin error interface +func (e ApproveConditionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sApproveCondition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ApproveConditionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ApproveConditionValidationError{} + +// Validate checks the field values on SignalCondition with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SignalCondition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SignalId + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SignalConditionValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OutputVariableName + + return nil +} + +// SignalConditionValidationError is the validation error returned by +// SignalCondition.Validate if the designated constraints aren't met. +type SignalConditionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SignalConditionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SignalConditionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SignalConditionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SignalConditionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SignalConditionValidationError) ErrorName() string { return "SignalConditionValidationError" } + +// Error satisfies the builtin error interface +func (e SignalConditionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSignalCondition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SignalConditionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SignalConditionValidationError{} + +// Validate checks the field values on SleepCondition with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *SleepCondition) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SleepConditionValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SleepConditionValidationError is the validation error returned by +// SleepCondition.Validate if the designated constraints aren't met. +type SleepConditionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SleepConditionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SleepConditionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SleepConditionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SleepConditionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SleepConditionValidationError) ErrorName() string { return "SleepConditionValidationError" } + +// Error satisfies the builtin error interface +func (e SleepConditionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSleepCondition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SleepConditionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SleepConditionValidationError{} + +// Validate checks the field values on GateNode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *GateNode) Validate() error { + if m == nil { + return nil + } + + switch m.Condition.(type) { + + case *GateNode_Approve: + + if v, ok := interface{}(m.GetApprove()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GateNodeValidationError{ + field: "Approve", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *GateNode_Signal: + + if v, ok := interface{}(m.GetSignal()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GateNodeValidationError{ + field: "Signal", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *GateNode_Sleep: + + if v, ok := interface{}(m.GetSleep()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GateNodeValidationError{ + field: "Sleep", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// GateNodeValidationError is the validation error returned by +// GateNode.Validate if the designated constraints aren't met. +type GateNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GateNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GateNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GateNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GateNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GateNodeValidationError) ErrorName() string { return "GateNodeValidationError" } + +// Error satisfies the builtin error interface +func (e GateNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGateNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GateNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GateNodeValidationError{} + +// Validate checks the field values on ArrayNode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ArrayNode) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArrayNodeValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Parallelism + + switch m.SuccessCriteria.(type) { + + case *ArrayNode_MinSuccesses: + // no validation rules for MinSuccesses + + case *ArrayNode_MinSuccessRatio: + // no validation rules for MinSuccessRatio + + } + + return nil +} + +// ArrayNodeValidationError is the validation error returned by +// ArrayNode.Validate if the designated constraints aren't met. +type ArrayNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArrayNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArrayNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArrayNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArrayNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArrayNodeValidationError) ErrorName() string { return "ArrayNodeValidationError" } + +// Error satisfies the builtin error interface +func (e ArrayNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArrayNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArrayNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArrayNodeValidationError{} + +// Validate checks the field values on NodeMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *NodeMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeMetadataValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRetries()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeMetadataValidationError{ + field: "Retries", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.InterruptibleValue.(type) { + + case *NodeMetadata_Interruptible: + // no validation rules for Interruptible + + } + + return nil +} + +// NodeMetadataValidationError is the validation error returned by +// NodeMetadata.Validate if the designated constraints aren't met. +type NodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeMetadataValidationError) ErrorName() string { return "NodeMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e NodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeMetadataValidationError{} + +// Validate checks the field values on Alias with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Alias) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Var + + // no validation rules for Alias + + return nil +} + +// AliasValidationError is the validation error returned by Alias.Validate if +// the designated constraints aren't met. +type AliasValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AliasValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AliasValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AliasValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AliasValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AliasValidationError) ErrorName() string { return "AliasValidationError" } + +// Error satisfies the builtin error interface +func (e AliasValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlias.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AliasValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AliasValidationError{} + +// Validate checks the field values on Node with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Node) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Id + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetInputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: fmt.Sprintf("Inputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetOutputAliases() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: fmt.Sprintf("OutputAliases[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.Target.(type) { + + case *Node_TaskNode: + + if v, ok := interface{}(m.GetTaskNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "TaskNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Node_WorkflowNode: + + if v, ok := interface{}(m.GetWorkflowNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "WorkflowNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Node_BranchNode: + + if v, ok := interface{}(m.GetBranchNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "BranchNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Node_GateNode: + + if v, ok := interface{}(m.GetGateNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "GateNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Node_ArrayNode: + + if v, ok := interface{}(m.GetArrayNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "ArrayNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NodeValidationError is the validation error returned by Node.Validate if the +// designated constraints aren't met. +type NodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeValidationError) ErrorName() string { return "NodeValidationError" } + +// Error satisfies the builtin error interface +func (e NodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeValidationError{} + +// Validate checks the field values on WorkflowMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetQualityOfService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowMetadataValidationError{ + field: "QualityOfService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OnFailure + + // no validation rules for Tags + + return nil +} + +// WorkflowMetadataValidationError is the validation error returned by +// WorkflowMetadata.Validate if the designated constraints aren't met. +type WorkflowMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowMetadataValidationError) ErrorName() string { return "WorkflowMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowMetadataValidationError{} + +// Validate checks the field values on WorkflowMetadataDefaults with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowMetadataDefaults) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Interruptible + + return nil +} + +// WorkflowMetadataDefaultsValidationError is the validation error returned by +// WorkflowMetadataDefaults.Validate if the designated constraints aren't met. +type WorkflowMetadataDefaultsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowMetadataDefaultsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowMetadataDefaultsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowMetadataDefaultsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowMetadataDefaultsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowMetadataDefaultsValidationError) ErrorName() string { + return "WorkflowMetadataDefaultsValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowMetadataDefaultsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowMetadataDefaults.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowMetadataDefaultsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowMetadataDefaultsValidationError{} + +// Validate checks the field values on WorkflowTemplate with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowTemplate) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInterface()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "Interface", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetNodes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: fmt.Sprintf("Nodes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetOutputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: fmt.Sprintf("Outputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetFailureNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "FailureNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadataDefaults()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "MetadataDefaults", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowTemplateValidationError is the validation error returned by +// WorkflowTemplate.Validate if the designated constraints aren't met. +type WorkflowTemplateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowTemplateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowTemplateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowTemplateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowTemplateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowTemplateValidationError) ErrorName() string { return "WorkflowTemplateValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowTemplateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowTemplate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowTemplateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowTemplateValidationError{} + +// Validate checks the field values on TaskNodeOverrides with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskNodeOverrides) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskNodeOverridesValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskNodeOverridesValidationError is the validation error returned by +// TaskNodeOverrides.Validate if the designated constraints aren't met. +type TaskNodeOverridesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskNodeOverridesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskNodeOverridesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskNodeOverridesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskNodeOverridesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskNodeOverridesValidationError) ErrorName() string { + return "TaskNodeOverridesValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskNodeOverridesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskNodeOverrides.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskNodeOverridesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskNodeOverridesValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json new file mode 100644 index 0000000000..fe64388e3d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/workflow.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go new file mode 100644 index 0000000000..136a5bad0f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go @@ -0,0 +1,97 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/workflow_closure.proto + +package core + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Defines an enclosed package of workflow and tasks it references. +type WorkflowClosure struct { + //required. Workflow template. + Workflow *WorkflowTemplate `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"` + //optional. A collection of tasks referenced by the workflow. Only needed if the workflow + // references tasks. + Tasks []*TaskTemplate `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowClosure) Reset() { *m = WorkflowClosure{} } +func (m *WorkflowClosure) String() string { return proto.CompactTextString(m) } +func (*WorkflowClosure) ProtoMessage() {} +func (*WorkflowClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_76071051330050c4, []int{0} +} + +func (m *WorkflowClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowClosure.Unmarshal(m, b) +} +func (m *WorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowClosure.Marshal(b, m, deterministic) +} +func (m *WorkflowClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowClosure.Merge(m, src) +} +func (m *WorkflowClosure) XXX_Size() int { + return xxx_messageInfo_WorkflowClosure.Size(m) +} +func (m *WorkflowClosure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowClosure proto.InternalMessageInfo + +func (m *WorkflowClosure) GetWorkflow() *WorkflowTemplate { + if m != nil { + return m.Workflow + } + return nil +} + +func (m *WorkflowClosure) GetTasks() []*TaskTemplate { + if m != nil { + return m.Tasks + } + return nil +} + +func init() { + proto.RegisterType((*WorkflowClosure)(nil), "flyteidl.core.WorkflowClosure") +} + +func init() { + proto.RegisterFile("flyteidl/core/workflow_closure.proto", fileDescriptor_76071051330050c4) +} + +var fileDescriptor_76071051330050c4 = []byte{ + // 194 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0xcf, 0x2f, 0xca, 0x4e, 0xcb, + 0xc9, 0x2f, 0x8f, 0x4f, 0xce, 0xc9, 0x2f, 0x2e, 0x2d, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0xe2, 0x85, 0xa9, 0xd2, 0x03, 0xa9, 0x92, 0x92, 0xc1, 0xae, 0x09, 0xa2, 0x58, 0x4a, 0x12, + 0x55, 0xb6, 0x24, 0xb1, 0x38, 0xbb, 0x18, 0x22, 0xa5, 0xd4, 0xc8, 0xc8, 0xc5, 0x1f, 0x0e, 0x55, + 0xed, 0x0c, 0xb1, 0x41, 0xc8, 0x9a, 0x8b, 0x03, 0x66, 0x80, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, + 0x91, 0xbc, 0x1e, 0x8a, 0x75, 0x7a, 0x30, 0x1d, 0x21, 0xa9, 0xb9, 0x05, 0x39, 0x89, 0x25, 0xa9, + 0x41, 0x70, 0x0d, 0x42, 0x86, 0x5c, 0xac, 0x60, 0xf3, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, + 0xa4, 0xd1, 0x74, 0x86, 0x24, 0x16, 0x67, 0xc3, 0x75, 0x41, 0x54, 0x3a, 0x99, 0x45, 0x99, 0xa4, + 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x83, 0xd5, 0xe7, 0x17, 0xa5, 0xeb, + 0xc3, 0x1d, 0x9d, 0x9e, 0x9a, 0xa7, 0x5f, 0x90, 0xa4, 0x9b, 0x9e, 0xaf, 0x8f, 0xe2, 0x8f, 0x24, + 0x36, 0xb0, 0x17, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xe9, 0x8f, 0x2e, 0x32, 0x01, + 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.validate.go new file mode 100644 index 0000000000..c87e4a4aa0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.validate.go @@ -0,0 +1,127 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/workflow_closure.proto + +package core + +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 _workflow_closure_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 WorkflowClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: "Workflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WorkflowClosureValidationError is the validation error returned by +// WorkflowClosure.Validate if the designated constraints aren't met. +type WorkflowClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowClosureValidationError) ErrorName() string { return "WorkflowClosureValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowClosureValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json new file mode 100644 index 0000000000..a3531fed5a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/workflow_closure.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go new file mode 100644 index 0000000000..a643383127 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go @@ -0,0 +1,2810 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/datacatalog/datacatalog.proto + +package datacatalog + +import ( + context "context" + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// as use-cases come up we can add more operators, ex: gte, like, not eq etc. +type SinglePropertyFilter_ComparisonOperator int32 + +const ( + SinglePropertyFilter_EQUALS SinglePropertyFilter_ComparisonOperator = 0 +) + +var SinglePropertyFilter_ComparisonOperator_name = map[int32]string{ + 0: "EQUALS", +} + +var SinglePropertyFilter_ComparisonOperator_value = map[string]int32{ + "EQUALS": 0, +} + +func (x SinglePropertyFilter_ComparisonOperator) String() string { + return proto.EnumName(SinglePropertyFilter_ComparisonOperator_name, int32(x)) +} + +func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{30, 0} +} + +type PaginationOptions_SortOrder int32 + +const ( + PaginationOptions_DESCENDING PaginationOptions_SortOrder = 0 + PaginationOptions_ASCENDING PaginationOptions_SortOrder = 1 +) + +var PaginationOptions_SortOrder_name = map[int32]string{ + 0: "DESCENDING", + 1: "ASCENDING", +} + +var PaginationOptions_SortOrder_value = map[string]int32{ + "DESCENDING": 0, + "ASCENDING": 1, +} + +func (x PaginationOptions_SortOrder) String() string { + return proto.EnumName(PaginationOptions_SortOrder_name, int32(x)) +} + +func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{36, 0} +} + +type PaginationOptions_SortKey int32 + +const ( + PaginationOptions_CREATION_TIME PaginationOptions_SortKey = 0 +) + +var PaginationOptions_SortKey_name = map[int32]string{ + 0: "CREATION_TIME", +} + +var PaginationOptions_SortKey_value = map[string]int32{ + "CREATION_TIME": 0, +} + +func (x PaginationOptions_SortKey) String() string { + return proto.EnumName(PaginationOptions_SortKey_name, int32(x)) +} + +func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{36, 1} +} + +// +// Request message for creating a Dataset. +type CreateDatasetRequest struct { + Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDatasetRequest) Reset() { *m = CreateDatasetRequest{} } +func (m *CreateDatasetRequest) String() string { return proto.CompactTextString(m) } +func (*CreateDatasetRequest) ProtoMessage() {} +func (*CreateDatasetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{0} +} + +func (m *CreateDatasetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDatasetRequest.Unmarshal(m, b) +} +func (m *CreateDatasetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDatasetRequest.Marshal(b, m, deterministic) +} +func (m *CreateDatasetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDatasetRequest.Merge(m, src) +} +func (m *CreateDatasetRequest) XXX_Size() int { + return xxx_messageInfo_CreateDatasetRequest.Size(m) +} +func (m *CreateDatasetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDatasetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDatasetRequest proto.InternalMessageInfo + +func (m *CreateDatasetRequest) GetDataset() *Dataset { + if m != nil { + return m.Dataset + } + return nil +} + +// +// Response message for creating a Dataset +type CreateDatasetResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDatasetResponse) Reset() { *m = CreateDatasetResponse{} } +func (m *CreateDatasetResponse) String() string { return proto.CompactTextString(m) } +func (*CreateDatasetResponse) ProtoMessage() {} +func (*CreateDatasetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{1} +} + +func (m *CreateDatasetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDatasetResponse.Unmarshal(m, b) +} +func (m *CreateDatasetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDatasetResponse.Marshal(b, m, deterministic) +} +func (m *CreateDatasetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDatasetResponse.Merge(m, src) +} +func (m *CreateDatasetResponse) XXX_Size() int { + return xxx_messageInfo_CreateDatasetResponse.Size(m) +} +func (m *CreateDatasetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDatasetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDatasetResponse proto.InternalMessageInfo + +// +// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier +// which is a combination of several fields. +type GetDatasetRequest struct { + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDatasetRequest) Reset() { *m = GetDatasetRequest{} } +func (m *GetDatasetRequest) String() string { return proto.CompactTextString(m) } +func (*GetDatasetRequest) ProtoMessage() {} +func (*GetDatasetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{2} +} + +func (m *GetDatasetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDatasetRequest.Unmarshal(m, b) +} +func (m *GetDatasetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDatasetRequest.Marshal(b, m, deterministic) +} +func (m *GetDatasetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDatasetRequest.Merge(m, src) +} +func (m *GetDatasetRequest) XXX_Size() int { + return xxx_messageInfo_GetDatasetRequest.Size(m) +} +func (m *GetDatasetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDatasetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDatasetRequest proto.InternalMessageInfo + +func (m *GetDatasetRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +// +// Response message for retrieving a Dataset. The response will include the metadata for the +// Dataset. +type GetDatasetResponse struct { + Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDatasetResponse) Reset() { *m = GetDatasetResponse{} } +func (m *GetDatasetResponse) String() string { return proto.CompactTextString(m) } +func (*GetDatasetResponse) ProtoMessage() {} +func (*GetDatasetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{3} +} + +func (m *GetDatasetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDatasetResponse.Unmarshal(m, b) +} +func (m *GetDatasetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDatasetResponse.Marshal(b, m, deterministic) +} +func (m *GetDatasetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDatasetResponse.Merge(m, src) +} +func (m *GetDatasetResponse) XXX_Size() int { + return xxx_messageInfo_GetDatasetResponse.Size(m) +} +func (m *GetDatasetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDatasetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDatasetResponse proto.InternalMessageInfo + +func (m *GetDatasetResponse) GetDataset() *Dataset { + if m != nil { + return m.Dataset + } + return nil +} + +// +// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that +// can be one of artifact_id or tag. The result returned will include the artifact data and metadata +// associated with the artifact. +type GetArtifactRequest struct { + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Types that are valid to be assigned to QueryHandle: + // *GetArtifactRequest_ArtifactId + // *GetArtifactRequest_TagName + QueryHandle isGetArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetArtifactRequest) Reset() { *m = GetArtifactRequest{} } +func (m *GetArtifactRequest) String() string { return proto.CompactTextString(m) } +func (*GetArtifactRequest) ProtoMessage() {} +func (*GetArtifactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{4} +} + +func (m *GetArtifactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetArtifactRequest.Unmarshal(m, b) +} +func (m *GetArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetArtifactRequest.Marshal(b, m, deterministic) +} +func (m *GetArtifactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetArtifactRequest.Merge(m, src) +} +func (m *GetArtifactRequest) XXX_Size() int { + return xxx_messageInfo_GetArtifactRequest.Size(m) +} +func (m *GetArtifactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetArtifactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetArtifactRequest proto.InternalMessageInfo + +func (m *GetArtifactRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +type isGetArtifactRequest_QueryHandle interface { + isGetArtifactRequest_QueryHandle() +} + +type GetArtifactRequest_ArtifactId struct { + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +type GetArtifactRequest_TagName struct { + TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*GetArtifactRequest_ArtifactId) isGetArtifactRequest_QueryHandle() {} + +func (*GetArtifactRequest_TagName) isGetArtifactRequest_QueryHandle() {} + +func (m *GetArtifactRequest) GetQueryHandle() isGetArtifactRequest_QueryHandle { + if m != nil { + return m.QueryHandle + } + return nil +} + +func (m *GetArtifactRequest) GetArtifactId() string { + if x, ok := m.GetQueryHandle().(*GetArtifactRequest_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +func (m *GetArtifactRequest) GetTagName() string { + if x, ok := m.GetQueryHandle().(*GetArtifactRequest_TagName); ok { + return x.TagName + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GetArtifactRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GetArtifactRequest_ArtifactId)(nil), + (*GetArtifactRequest_TagName)(nil), + } +} + +// +// Response message for retrieving an Artifact. The result returned will include the artifact data +// and metadata associated with the artifact. +type GetArtifactResponse struct { + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetArtifactResponse) Reset() { *m = GetArtifactResponse{} } +func (m *GetArtifactResponse) String() string { return proto.CompactTextString(m) } +func (*GetArtifactResponse) ProtoMessage() {} +func (*GetArtifactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{5} +} + +func (m *GetArtifactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetArtifactResponse.Unmarshal(m, b) +} +func (m *GetArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetArtifactResponse.Marshal(b, m, deterministic) +} +func (m *GetArtifactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetArtifactResponse.Merge(m, src) +} +func (m *GetArtifactResponse) XXX_Size() int { + return xxx_messageInfo_GetArtifactResponse.Size(m) +} +func (m *GetArtifactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetArtifactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetArtifactResponse proto.InternalMessageInfo + +func (m *GetArtifactResponse) GetArtifact() *Artifact { + if m != nil { + return m.Artifact + } + return nil +} + +// +// Request message for creating an Artifact and its associated artifact Data. +type CreateArtifactRequest struct { + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateArtifactRequest) Reset() { *m = CreateArtifactRequest{} } +func (m *CreateArtifactRequest) String() string { return proto.CompactTextString(m) } +func (*CreateArtifactRequest) ProtoMessage() {} +func (*CreateArtifactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{6} +} + +func (m *CreateArtifactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateArtifactRequest.Unmarshal(m, b) +} +func (m *CreateArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateArtifactRequest.Marshal(b, m, deterministic) +} +func (m *CreateArtifactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateArtifactRequest.Merge(m, src) +} +func (m *CreateArtifactRequest) XXX_Size() int { + return xxx_messageInfo_CreateArtifactRequest.Size(m) +} +func (m *CreateArtifactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateArtifactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateArtifactRequest proto.InternalMessageInfo + +func (m *CreateArtifactRequest) GetArtifact() *Artifact { + if m != nil { + return m.Artifact + } + return nil +} + +// +// Response message for creating an Artifact. +type CreateArtifactResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateArtifactResponse) Reset() { *m = CreateArtifactResponse{} } +func (m *CreateArtifactResponse) String() string { return proto.CompactTextString(m) } +func (*CreateArtifactResponse) ProtoMessage() {} +func (*CreateArtifactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{7} +} + +func (m *CreateArtifactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateArtifactResponse.Unmarshal(m, b) +} +func (m *CreateArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateArtifactResponse.Marshal(b, m, deterministic) +} +func (m *CreateArtifactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateArtifactResponse.Merge(m, src) +} +func (m *CreateArtifactResponse) XXX_Size() int { + return xxx_messageInfo_CreateArtifactResponse.Size(m) +} +func (m *CreateArtifactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateArtifactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateArtifactResponse proto.InternalMessageInfo + +// +// Request message for tagging an Artifact. +type AddTagRequest struct { + Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddTagRequest) Reset() { *m = AddTagRequest{} } +func (m *AddTagRequest) String() string { return proto.CompactTextString(m) } +func (*AddTagRequest) ProtoMessage() {} +func (*AddTagRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{8} +} + +func (m *AddTagRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddTagRequest.Unmarshal(m, b) +} +func (m *AddTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddTagRequest.Marshal(b, m, deterministic) +} +func (m *AddTagRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddTagRequest.Merge(m, src) +} +func (m *AddTagRequest) XXX_Size() int { + return xxx_messageInfo_AddTagRequest.Size(m) +} +func (m *AddTagRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddTagRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddTagRequest proto.InternalMessageInfo + +func (m *AddTagRequest) GetTag() *Tag { + if m != nil { + return m.Tag + } + return nil +} + +// +// Response message for tagging an Artifact. +type AddTagResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddTagResponse) Reset() { *m = AddTagResponse{} } +func (m *AddTagResponse) String() string { return proto.CompactTextString(m) } +func (*AddTagResponse) ProtoMessage() {} +func (*AddTagResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{9} +} + +func (m *AddTagResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddTagResponse.Unmarshal(m, b) +} +func (m *AddTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddTagResponse.Marshal(b, m, deterministic) +} +func (m *AddTagResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddTagResponse.Merge(m, src) +} +func (m *AddTagResponse) XXX_Size() int { + return xxx_messageInfo_AddTagResponse.Size(m) +} +func (m *AddTagResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AddTagResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AddTagResponse proto.InternalMessageInfo + +// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. +type ListArtifactsRequest struct { + // Use a datasetID for which you want to retrieve the artifacts + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Apply the filter expression to this query + Filter *FilterExpression `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // Pagination options to get a page of artifacts + Pagination *PaginationOptions `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListArtifactsRequest) Reset() { *m = ListArtifactsRequest{} } +func (m *ListArtifactsRequest) String() string { return proto.CompactTextString(m) } +func (*ListArtifactsRequest) ProtoMessage() {} +func (*ListArtifactsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{10} +} + +func (m *ListArtifactsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListArtifactsRequest.Unmarshal(m, b) +} +func (m *ListArtifactsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListArtifactsRequest.Marshal(b, m, deterministic) +} +func (m *ListArtifactsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListArtifactsRequest.Merge(m, src) +} +func (m *ListArtifactsRequest) XXX_Size() int { + return xxx_messageInfo_ListArtifactsRequest.Size(m) +} +func (m *ListArtifactsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListArtifactsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListArtifactsRequest proto.InternalMessageInfo + +func (m *ListArtifactsRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +func (m *ListArtifactsRequest) GetFilter() *FilterExpression { + if m != nil { + return m.Filter + } + return nil +} + +func (m *ListArtifactsRequest) GetPagination() *PaginationOptions { + if m != nil { + return m.Pagination + } + return nil +} + +// Response to list artifacts +type ListArtifactsResponse struct { + // The list of artifacts + Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` + // Token to use to request the next page, pass this into the next requests PaginationOptions + NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListArtifactsResponse) Reset() { *m = ListArtifactsResponse{} } +func (m *ListArtifactsResponse) String() string { return proto.CompactTextString(m) } +func (*ListArtifactsResponse) ProtoMessage() {} +func (*ListArtifactsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{11} +} + +func (m *ListArtifactsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListArtifactsResponse.Unmarshal(m, b) +} +func (m *ListArtifactsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListArtifactsResponse.Marshal(b, m, deterministic) +} +func (m *ListArtifactsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListArtifactsResponse.Merge(m, src) +} +func (m *ListArtifactsResponse) XXX_Size() int { + return xxx_messageInfo_ListArtifactsResponse.Size(m) +} +func (m *ListArtifactsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListArtifactsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListArtifactsResponse proto.InternalMessageInfo + +func (m *ListArtifactsResponse) GetArtifacts() []*Artifact { + if m != nil { + return m.Artifacts + } + return nil +} + +func (m *ListArtifactsResponse) GetNextToken() string { + if m != nil { + return m.NextToken + } + return "" +} + +// List the datasets for the given query +type ListDatasetsRequest struct { + // Apply the filter expression to this query + Filter *FilterExpression `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` + // Pagination options to get a page of datasets + Pagination *PaginationOptions `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDatasetsRequest) Reset() { *m = ListDatasetsRequest{} } +func (m *ListDatasetsRequest) String() string { return proto.CompactTextString(m) } +func (*ListDatasetsRequest) ProtoMessage() {} +func (*ListDatasetsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{12} +} + +func (m *ListDatasetsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDatasetsRequest.Unmarshal(m, b) +} +func (m *ListDatasetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDatasetsRequest.Marshal(b, m, deterministic) +} +func (m *ListDatasetsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDatasetsRequest.Merge(m, src) +} +func (m *ListDatasetsRequest) XXX_Size() int { + return xxx_messageInfo_ListDatasetsRequest.Size(m) +} +func (m *ListDatasetsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListDatasetsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDatasetsRequest proto.InternalMessageInfo + +func (m *ListDatasetsRequest) GetFilter() *FilterExpression { + if m != nil { + return m.Filter + } + return nil +} + +func (m *ListDatasetsRequest) GetPagination() *PaginationOptions { + if m != nil { + return m.Pagination + } + return nil +} + +// List the datasets response with token for next pagination +type ListDatasetsResponse struct { + // The list of datasets + Datasets []*Dataset `protobuf:"bytes,1,rep,name=datasets,proto3" json:"datasets,omitempty"` + // Token to use to request the next page, pass this into the next requests PaginationOptions + NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListDatasetsResponse) Reset() { *m = ListDatasetsResponse{} } +func (m *ListDatasetsResponse) String() string { return proto.CompactTextString(m) } +func (*ListDatasetsResponse) ProtoMessage() {} +func (*ListDatasetsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{13} +} + +func (m *ListDatasetsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListDatasetsResponse.Unmarshal(m, b) +} +func (m *ListDatasetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListDatasetsResponse.Marshal(b, m, deterministic) +} +func (m *ListDatasetsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListDatasetsResponse.Merge(m, src) +} +func (m *ListDatasetsResponse) XXX_Size() int { + return xxx_messageInfo_ListDatasetsResponse.Size(m) +} +func (m *ListDatasetsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ListDatasetsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ListDatasetsResponse proto.InternalMessageInfo + +func (m *ListDatasetsResponse) GetDatasets() []*Dataset { + if m != nil { + return m.Datasets + } + return nil +} + +func (m *ListDatasetsResponse) GetNextToken() string { + if m != nil { + return m.NextToken + } + return "" +} + +// +// Request message for updating an Artifact and overwriting its associated ArtifactData. +type UpdateArtifactRequest struct { + // ID of dataset the artifact is associated with + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Either ID of artifact or name of tag to retrieve existing artifact from + // + // Types that are valid to be assigned to QueryHandle: + // *UpdateArtifactRequest_ArtifactId + // *UpdateArtifactRequest_TagName + QueryHandle isUpdateArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` + // List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + // ArtifactData entries will be removed from the underlying blob storage and database. + Data []*ArtifactData `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateArtifactRequest) Reset() { *m = UpdateArtifactRequest{} } +func (m *UpdateArtifactRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateArtifactRequest) ProtoMessage() {} +func (*UpdateArtifactRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{14} +} + +func (m *UpdateArtifactRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateArtifactRequest.Unmarshal(m, b) +} +func (m *UpdateArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateArtifactRequest.Marshal(b, m, deterministic) +} +func (m *UpdateArtifactRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateArtifactRequest.Merge(m, src) +} +func (m *UpdateArtifactRequest) XXX_Size() int { + return xxx_messageInfo_UpdateArtifactRequest.Size(m) +} +func (m *UpdateArtifactRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateArtifactRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateArtifactRequest proto.InternalMessageInfo + +func (m *UpdateArtifactRequest) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +type isUpdateArtifactRequest_QueryHandle interface { + isUpdateArtifactRequest_QueryHandle() +} + +type UpdateArtifactRequest_ArtifactId struct { + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +type UpdateArtifactRequest_TagName struct { + TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*UpdateArtifactRequest_ArtifactId) isUpdateArtifactRequest_QueryHandle() {} + +func (*UpdateArtifactRequest_TagName) isUpdateArtifactRequest_QueryHandle() {} + +func (m *UpdateArtifactRequest) GetQueryHandle() isUpdateArtifactRequest_QueryHandle { + if m != nil { + return m.QueryHandle + } + return nil +} + +func (m *UpdateArtifactRequest) GetArtifactId() string { + if x, ok := m.GetQueryHandle().(*UpdateArtifactRequest_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +func (m *UpdateArtifactRequest) GetTagName() string { + if x, ok := m.GetQueryHandle().(*UpdateArtifactRequest_TagName); ok { + return x.TagName + } + return "" +} + +func (m *UpdateArtifactRequest) GetData() []*ArtifactData { + if m != nil { + return m.Data + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*UpdateArtifactRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*UpdateArtifactRequest_ArtifactId)(nil), + (*UpdateArtifactRequest_TagName)(nil), + } +} + +// +// Response message for updating an Artifact. +type UpdateArtifactResponse struct { + // The unique ID of the artifact updated + ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateArtifactResponse) Reset() { *m = UpdateArtifactResponse{} } +func (m *UpdateArtifactResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateArtifactResponse) ProtoMessage() {} +func (*UpdateArtifactResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{15} +} + +func (m *UpdateArtifactResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateArtifactResponse.Unmarshal(m, b) +} +func (m *UpdateArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateArtifactResponse.Marshal(b, m, deterministic) +} +func (m *UpdateArtifactResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateArtifactResponse.Merge(m, src) +} +func (m *UpdateArtifactResponse) XXX_Size() int { + return xxx_messageInfo_UpdateArtifactResponse.Size(m) +} +func (m *UpdateArtifactResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateArtifactResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateArtifactResponse proto.InternalMessageInfo + +func (m *UpdateArtifactResponse) GetArtifactId() string { + if m != nil { + return m.ArtifactId + } + return "" +} + +// +// ReservationID message that is composed of several string fields. +type ReservationID struct { + // The unique ID for the reserved dataset + DatasetId *DatasetID `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` + // The specific artifact tag for the reservation + TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReservationID) Reset() { *m = ReservationID{} } +func (m *ReservationID) String() string { return proto.CompactTextString(m) } +func (*ReservationID) ProtoMessage() {} +func (*ReservationID) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{16} +} + +func (m *ReservationID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReservationID.Unmarshal(m, b) +} +func (m *ReservationID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReservationID.Marshal(b, m, deterministic) +} +func (m *ReservationID) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReservationID.Merge(m, src) +} +func (m *ReservationID) XXX_Size() int { + return xxx_messageInfo_ReservationID.Size(m) +} +func (m *ReservationID) XXX_DiscardUnknown() { + xxx_messageInfo_ReservationID.DiscardUnknown(m) +} + +var xxx_messageInfo_ReservationID proto.InternalMessageInfo + +func (m *ReservationID) GetDatasetId() *DatasetID { + if m != nil { + return m.DatasetId + } + return nil +} + +func (m *ReservationID) GetTagName() string { + if m != nil { + return m.TagName + } + return "" +} + +// Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance. +type GetOrExtendReservationRequest struct { + // The unique ID for the reservation + ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` + // The unique ID of the owner for the reservation + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + // Requested reservation extension heartbeat interval + HeartbeatInterval *duration.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetOrExtendReservationRequest) Reset() { *m = GetOrExtendReservationRequest{} } +func (m *GetOrExtendReservationRequest) String() string { return proto.CompactTextString(m) } +func (*GetOrExtendReservationRequest) ProtoMessage() {} +func (*GetOrExtendReservationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{17} +} + +func (m *GetOrExtendReservationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetOrExtendReservationRequest.Unmarshal(m, b) +} +func (m *GetOrExtendReservationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetOrExtendReservationRequest.Marshal(b, m, deterministic) +} +func (m *GetOrExtendReservationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOrExtendReservationRequest.Merge(m, src) +} +func (m *GetOrExtendReservationRequest) XXX_Size() int { + return xxx_messageInfo_GetOrExtendReservationRequest.Size(m) +} +func (m *GetOrExtendReservationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetOrExtendReservationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetOrExtendReservationRequest proto.InternalMessageInfo + +func (m *GetOrExtendReservationRequest) GetReservationId() *ReservationID { + if m != nil { + return m.ReservationId + } + return nil +} + +func (m *GetOrExtendReservationRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +func (m *GetOrExtendReservationRequest) GetHeartbeatInterval() *duration.Duration { + if m != nil { + return m.HeartbeatInterval + } + return nil +} + +// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. +type Reservation struct { + // The unique ID for the reservation + ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` + // The unique ID of the owner for the reservation + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + // Recommended heartbeat interval to extend reservation + HeartbeatInterval *duration.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + // Expiration timestamp of this reservation + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + // Free-form metadata associated with the artifact + Metadata *Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Reservation) Reset() { *m = Reservation{} } +func (m *Reservation) String() string { return proto.CompactTextString(m) } +func (*Reservation) ProtoMessage() {} +func (*Reservation) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{18} +} + +func (m *Reservation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Reservation.Unmarshal(m, b) +} +func (m *Reservation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Reservation.Marshal(b, m, deterministic) +} +func (m *Reservation) XXX_Merge(src proto.Message) { + xxx_messageInfo_Reservation.Merge(m, src) +} +func (m *Reservation) XXX_Size() int { + return xxx_messageInfo_Reservation.Size(m) +} +func (m *Reservation) XXX_DiscardUnknown() { + xxx_messageInfo_Reservation.DiscardUnknown(m) +} + +var xxx_messageInfo_Reservation proto.InternalMessageInfo + +func (m *Reservation) GetReservationId() *ReservationID { + if m != nil { + return m.ReservationId + } + return nil +} + +func (m *Reservation) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +func (m *Reservation) GetHeartbeatInterval() *duration.Duration { + if m != nil { + return m.HeartbeatInterval + } + return nil +} + +func (m *Reservation) GetExpiresAt() *timestamp.Timestamp { + if m != nil { + return m.ExpiresAt + } + return nil +} + +func (m *Reservation) GetMetadata() *Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +// Response including either a newly minted reservation or the existing reservation +type GetOrExtendReservationResponse struct { + // The reservation to be acquired or extended + Reservation *Reservation `protobuf:"bytes,1,opt,name=reservation,proto3" json:"reservation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetOrExtendReservationResponse) Reset() { *m = GetOrExtendReservationResponse{} } +func (m *GetOrExtendReservationResponse) String() string { return proto.CompactTextString(m) } +func (*GetOrExtendReservationResponse) ProtoMessage() {} +func (*GetOrExtendReservationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{19} +} + +func (m *GetOrExtendReservationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetOrExtendReservationResponse.Unmarshal(m, b) +} +func (m *GetOrExtendReservationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetOrExtendReservationResponse.Marshal(b, m, deterministic) +} +func (m *GetOrExtendReservationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOrExtendReservationResponse.Merge(m, src) +} +func (m *GetOrExtendReservationResponse) XXX_Size() int { + return xxx_messageInfo_GetOrExtendReservationResponse.Size(m) +} +func (m *GetOrExtendReservationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetOrExtendReservationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetOrExtendReservationResponse proto.InternalMessageInfo + +func (m *GetOrExtendReservationResponse) GetReservation() *Reservation { + if m != nil { + return m.Reservation + } + return nil +} + +// Request to release reservation +type ReleaseReservationRequest struct { + // The unique ID for the reservation + ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` + // The unique ID of the owner for the reservation + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReleaseReservationRequest) Reset() { *m = ReleaseReservationRequest{} } +func (m *ReleaseReservationRequest) String() string { return proto.CompactTextString(m) } +func (*ReleaseReservationRequest) ProtoMessage() {} +func (*ReleaseReservationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{20} +} + +func (m *ReleaseReservationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReleaseReservationRequest.Unmarshal(m, b) +} +func (m *ReleaseReservationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReleaseReservationRequest.Marshal(b, m, deterministic) +} +func (m *ReleaseReservationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReleaseReservationRequest.Merge(m, src) +} +func (m *ReleaseReservationRequest) XXX_Size() int { + return xxx_messageInfo_ReleaseReservationRequest.Size(m) +} +func (m *ReleaseReservationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ReleaseReservationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ReleaseReservationRequest proto.InternalMessageInfo + +func (m *ReleaseReservationRequest) GetReservationId() *ReservationID { + if m != nil { + return m.ReservationId + } + return nil +} + +func (m *ReleaseReservationRequest) GetOwnerId() string { + if m != nil { + return m.OwnerId + } + return "" +} + +// Response to release reservation +type ReleaseReservationResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReleaseReservationResponse) Reset() { *m = ReleaseReservationResponse{} } +func (m *ReleaseReservationResponse) String() string { return proto.CompactTextString(m) } +func (*ReleaseReservationResponse) ProtoMessage() {} +func (*ReleaseReservationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{21} +} + +func (m *ReleaseReservationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ReleaseReservationResponse.Unmarshal(m, b) +} +func (m *ReleaseReservationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ReleaseReservationResponse.Marshal(b, m, deterministic) +} +func (m *ReleaseReservationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReleaseReservationResponse.Merge(m, src) +} +func (m *ReleaseReservationResponse) XXX_Size() int { + return xxx_messageInfo_ReleaseReservationResponse.Size(m) +} +func (m *ReleaseReservationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ReleaseReservationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ReleaseReservationResponse proto.InternalMessageInfo + +// +// Dataset message. It is uniquely identified by DatasetID. +type Dataset struct { + Id *DatasetID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + PartitionKeys []string `protobuf:"bytes,3,rep,name=partitionKeys,proto3" json:"partitionKeys,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Dataset) Reset() { *m = Dataset{} } +func (m *Dataset) String() string { return proto.CompactTextString(m) } +func (*Dataset) ProtoMessage() {} +func (*Dataset) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{22} +} + +func (m *Dataset) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Dataset.Unmarshal(m, b) +} +func (m *Dataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Dataset.Marshal(b, m, deterministic) +} +func (m *Dataset) XXX_Merge(src proto.Message) { + xxx_messageInfo_Dataset.Merge(m, src) +} +func (m *Dataset) XXX_Size() int { + return xxx_messageInfo_Dataset.Size(m) +} +func (m *Dataset) XXX_DiscardUnknown() { + xxx_messageInfo_Dataset.DiscardUnknown(m) +} + +var xxx_messageInfo_Dataset proto.InternalMessageInfo + +func (m *Dataset) GetId() *DatasetID { + if m != nil { + return m.Id + } + return nil +} + +func (m *Dataset) GetMetadata() *Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *Dataset) GetPartitionKeys() []string { + if m != nil { + return m.PartitionKeys + } + return nil +} + +// +// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair +type Partition struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Partition) Reset() { *m = Partition{} } +func (m *Partition) String() string { return proto.CompactTextString(m) } +func (*Partition) ProtoMessage() {} +func (*Partition) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{23} +} + +func (m *Partition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Partition.Unmarshal(m, b) +} +func (m *Partition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Partition.Marshal(b, m, deterministic) +} +func (m *Partition) XXX_Merge(src proto.Message) { + xxx_messageInfo_Partition.Merge(m, src) +} +func (m *Partition) XXX_Size() int { + return xxx_messageInfo_Partition.Size(m) +} +func (m *Partition) XXX_DiscardUnknown() { + xxx_messageInfo_Partition.DiscardUnknown(m) +} + +var xxx_messageInfo_Partition proto.InternalMessageInfo + +func (m *Partition) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Partition) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// +// DatasetID message that is composed of several string fields. +type DatasetID struct { + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + UUID string `protobuf:"bytes,5,opt,name=UUID,proto3" json:"UUID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DatasetID) Reset() { *m = DatasetID{} } +func (m *DatasetID) String() string { return proto.CompactTextString(m) } +func (*DatasetID) ProtoMessage() {} +func (*DatasetID) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{24} +} + +func (m *DatasetID) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DatasetID.Unmarshal(m, b) +} +func (m *DatasetID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DatasetID.Marshal(b, m, deterministic) +} +func (m *DatasetID) XXX_Merge(src proto.Message) { + xxx_messageInfo_DatasetID.Merge(m, src) +} +func (m *DatasetID) XXX_Size() int { + return xxx_messageInfo_DatasetID.Size(m) +} +func (m *DatasetID) XXX_DiscardUnknown() { + xxx_messageInfo_DatasetID.DiscardUnknown(m) +} + +var xxx_messageInfo_DatasetID proto.InternalMessageInfo + +func (m *DatasetID) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *DatasetID) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *DatasetID) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *DatasetID) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *DatasetID) GetUUID() string { + if m != nil { + return m.UUID + } + return "" +} + +// +// Artifact message. It is composed of several string fields. +type Artifact struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Dataset *DatasetID `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"` + Data []*ArtifactData `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` + Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + Partitions []*Partition `protobuf:"bytes,5,rep,name=partitions,proto3" json:"partitions,omitempty"` + Tags []*Tag `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Artifact) Reset() { *m = Artifact{} } +func (m *Artifact) String() string { return proto.CompactTextString(m) } +func (*Artifact) ProtoMessage() {} +func (*Artifact) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{25} +} + +func (m *Artifact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Artifact.Unmarshal(m, b) +} +func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Artifact.Marshal(b, m, deterministic) +} +func (m *Artifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_Artifact.Merge(m, src) +} +func (m *Artifact) XXX_Size() int { + return xxx_messageInfo_Artifact.Size(m) +} +func (m *Artifact) XXX_DiscardUnknown() { + xxx_messageInfo_Artifact.DiscardUnknown(m) +} + +var xxx_messageInfo_Artifact proto.InternalMessageInfo + +func (m *Artifact) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Artifact) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +func (m *Artifact) GetData() []*ArtifactData { + if m != nil { + return m.Data + } + return nil +} + +func (m *Artifact) GetMetadata() *Metadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *Artifact) GetPartitions() []*Partition { + if m != nil { + return m.Partitions + } + return nil +} + +func (m *Artifact) GetTags() []*Tag { + if m != nil { + return m.Tags + } + return nil +} + +func (m *Artifact) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +// +// ArtifactData that belongs to an artifact +type ArtifactData struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArtifactData) Reset() { *m = ArtifactData{} } +func (m *ArtifactData) String() string { return proto.CompactTextString(m) } +func (*ArtifactData) ProtoMessage() {} +func (*ArtifactData) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{26} +} + +func (m *ArtifactData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArtifactData.Unmarshal(m, b) +} +func (m *ArtifactData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArtifactData.Marshal(b, m, deterministic) +} +func (m *ArtifactData) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactData.Merge(m, src) +} +func (m *ArtifactData) XXX_Size() int { + return xxx_messageInfo_ArtifactData.Size(m) +} +func (m *ArtifactData) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactData.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactData proto.InternalMessageInfo + +func (m *ArtifactData) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ArtifactData) GetValue() *core.Literal { + if m != nil { + return m.Value + } + return nil +} + +// +// Tag message that is unique to a Dataset. It is associated to a single artifact and +// can be retrieved by name later. +type Tag struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + Dataset *DatasetID `protobuf:"bytes,3,opt,name=dataset,proto3" json:"dataset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Tag) Reset() { *m = Tag{} } +func (m *Tag) String() string { return proto.CompactTextString(m) } +func (*Tag) ProtoMessage() {} +func (*Tag) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{27} +} + +func (m *Tag) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Tag.Unmarshal(m, b) +} +func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Tag.Marshal(b, m, deterministic) +} +func (m *Tag) XXX_Merge(src proto.Message) { + xxx_messageInfo_Tag.Merge(m, src) +} +func (m *Tag) XXX_Size() int { + return xxx_messageInfo_Tag.Size(m) +} +func (m *Tag) XXX_DiscardUnknown() { + xxx_messageInfo_Tag.DiscardUnknown(m) +} + +var xxx_messageInfo_Tag proto.InternalMessageInfo + +func (m *Tag) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Tag) GetArtifactId() string { + if m != nil { + return m.ArtifactId + } + return "" +} + +func (m *Tag) GetDataset() *DatasetID { + if m != nil { + return m.Dataset + } + return nil +} + +// +// Metadata representation for artifacts and datasets +type Metadata struct { + KeyMap map[string]string `protobuf:"bytes,1,rep,name=key_map,json=keyMap,proto3" json:"key_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Metadata) Reset() { *m = Metadata{} } +func (m *Metadata) String() string { return proto.CompactTextString(m) } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{28} +} + +func (m *Metadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Metadata.Unmarshal(m, b) +} +func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) +} +func (m *Metadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metadata.Merge(m, src) +} +func (m *Metadata) XXX_Size() int { + return xxx_messageInfo_Metadata.Size(m) +} +func (m *Metadata) XXX_DiscardUnknown() { + xxx_messageInfo_Metadata.DiscardUnknown(m) +} + +var xxx_messageInfo_Metadata proto.InternalMessageInfo + +func (m *Metadata) GetKeyMap() map[string]string { + if m != nil { + return m.KeyMap + } + return nil +} + +// Filter expression that is composed of a combination of single filters +type FilterExpression struct { + Filters []*SinglePropertyFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FilterExpression) Reset() { *m = FilterExpression{} } +func (m *FilterExpression) String() string { return proto.CompactTextString(m) } +func (*FilterExpression) ProtoMessage() {} +func (*FilterExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{29} +} + +func (m *FilterExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FilterExpression.Unmarshal(m, b) +} +func (m *FilterExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FilterExpression.Marshal(b, m, deterministic) +} +func (m *FilterExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_FilterExpression.Merge(m, src) +} +func (m *FilterExpression) XXX_Size() int { + return xxx_messageInfo_FilterExpression.Size(m) +} +func (m *FilterExpression) XXX_DiscardUnknown() { + xxx_messageInfo_FilterExpression.DiscardUnknown(m) +} + +var xxx_messageInfo_FilterExpression proto.InternalMessageInfo + +func (m *FilterExpression) GetFilters() []*SinglePropertyFilter { + if m != nil { + return m.Filters + } + return nil +} + +// A single property to filter on. +type SinglePropertyFilter struct { + // Types that are valid to be assigned to PropertyFilter: + // *SinglePropertyFilter_TagFilter + // *SinglePropertyFilter_PartitionFilter + // *SinglePropertyFilter_ArtifactFilter + // *SinglePropertyFilter_DatasetFilter + PropertyFilter isSinglePropertyFilter_PropertyFilter `protobuf_oneof:"property_filter"` + Operator SinglePropertyFilter_ComparisonOperator `protobuf:"varint,10,opt,name=operator,proto3,enum=datacatalog.SinglePropertyFilter_ComparisonOperator" json:"operator,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SinglePropertyFilter) Reset() { *m = SinglePropertyFilter{} } +func (m *SinglePropertyFilter) String() string { return proto.CompactTextString(m) } +func (*SinglePropertyFilter) ProtoMessage() {} +func (*SinglePropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{30} +} + +func (m *SinglePropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SinglePropertyFilter.Unmarshal(m, b) +} +func (m *SinglePropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SinglePropertyFilter.Marshal(b, m, deterministic) +} +func (m *SinglePropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_SinglePropertyFilter.Merge(m, src) +} +func (m *SinglePropertyFilter) XXX_Size() int { + return xxx_messageInfo_SinglePropertyFilter.Size(m) +} +func (m *SinglePropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_SinglePropertyFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_SinglePropertyFilter proto.InternalMessageInfo + +type isSinglePropertyFilter_PropertyFilter interface { + isSinglePropertyFilter_PropertyFilter() +} + +type SinglePropertyFilter_TagFilter struct { + TagFilter *TagPropertyFilter `protobuf:"bytes,1,opt,name=tag_filter,json=tagFilter,proto3,oneof"` +} + +type SinglePropertyFilter_PartitionFilter struct { + PartitionFilter *PartitionPropertyFilter `protobuf:"bytes,2,opt,name=partition_filter,json=partitionFilter,proto3,oneof"` +} + +type SinglePropertyFilter_ArtifactFilter struct { + ArtifactFilter *ArtifactPropertyFilter `protobuf:"bytes,3,opt,name=artifact_filter,json=artifactFilter,proto3,oneof"` +} + +type SinglePropertyFilter_DatasetFilter struct { + DatasetFilter *DatasetPropertyFilter `protobuf:"bytes,4,opt,name=dataset_filter,json=datasetFilter,proto3,oneof"` +} + +func (*SinglePropertyFilter_TagFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_PartitionFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_ArtifactFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_DatasetFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (m *SinglePropertyFilter) GetPropertyFilter() isSinglePropertyFilter_PropertyFilter { + if m != nil { + return m.PropertyFilter + } + return nil +} + +func (m *SinglePropertyFilter) GetTagFilter() *TagPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_TagFilter); ok { + return x.TagFilter + } + return nil +} + +func (m *SinglePropertyFilter) GetPartitionFilter() *PartitionPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_PartitionFilter); ok { + return x.PartitionFilter + } + return nil +} + +func (m *SinglePropertyFilter) GetArtifactFilter() *ArtifactPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_ArtifactFilter); ok { + return x.ArtifactFilter + } + return nil +} + +func (m *SinglePropertyFilter) GetDatasetFilter() *DatasetPropertyFilter { + if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_DatasetFilter); ok { + return x.DatasetFilter + } + return nil +} + +func (m *SinglePropertyFilter) GetOperator() SinglePropertyFilter_ComparisonOperator { + if m != nil { + return m.Operator + } + return SinglePropertyFilter_EQUALS +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SinglePropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SinglePropertyFilter_TagFilter)(nil), + (*SinglePropertyFilter_PartitionFilter)(nil), + (*SinglePropertyFilter_ArtifactFilter)(nil), + (*SinglePropertyFilter_DatasetFilter)(nil), + } +} + +// Artifact properties we can filter by +type ArtifactPropertyFilter struct { + // oneof because we can add more properties in the future + // + // Types that are valid to be assigned to Property: + // *ArtifactPropertyFilter_ArtifactId + Property isArtifactPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArtifactPropertyFilter) Reset() { *m = ArtifactPropertyFilter{} } +func (m *ArtifactPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*ArtifactPropertyFilter) ProtoMessage() {} +func (*ArtifactPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{31} +} + +func (m *ArtifactPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArtifactPropertyFilter.Unmarshal(m, b) +} +func (m *ArtifactPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArtifactPropertyFilter.Marshal(b, m, deterministic) +} +func (m *ArtifactPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactPropertyFilter.Merge(m, src) +} +func (m *ArtifactPropertyFilter) XXX_Size() int { + return xxx_messageInfo_ArtifactPropertyFilter.Size(m) +} +func (m *ArtifactPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactPropertyFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactPropertyFilter proto.InternalMessageInfo + +type isArtifactPropertyFilter_Property interface { + isArtifactPropertyFilter_Property() +} + +type ArtifactPropertyFilter_ArtifactId struct { + ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +func (*ArtifactPropertyFilter_ArtifactId) isArtifactPropertyFilter_Property() {} + +func (m *ArtifactPropertyFilter) GetProperty() isArtifactPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (m *ArtifactPropertyFilter) GetArtifactId() string { + if x, ok := m.GetProperty().(*ArtifactPropertyFilter_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ArtifactPropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ArtifactPropertyFilter_ArtifactId)(nil), + } +} + +// Tag properties we can filter by +type TagPropertyFilter struct { + // Types that are valid to be assigned to Property: + // *TagPropertyFilter_TagName + Property isTagPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TagPropertyFilter) Reset() { *m = TagPropertyFilter{} } +func (m *TagPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*TagPropertyFilter) ProtoMessage() {} +func (*TagPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{32} +} + +func (m *TagPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TagPropertyFilter.Unmarshal(m, b) +} +func (m *TagPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TagPropertyFilter.Marshal(b, m, deterministic) +} +func (m *TagPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_TagPropertyFilter.Merge(m, src) +} +func (m *TagPropertyFilter) XXX_Size() int { + return xxx_messageInfo_TagPropertyFilter.Size(m) +} +func (m *TagPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_TagPropertyFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_TagPropertyFilter proto.InternalMessageInfo + +type isTagPropertyFilter_Property interface { + isTagPropertyFilter_Property() +} + +type TagPropertyFilter_TagName struct { + TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*TagPropertyFilter_TagName) isTagPropertyFilter_Property() {} + +func (m *TagPropertyFilter) GetProperty() isTagPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (m *TagPropertyFilter) GetTagName() string { + if x, ok := m.GetProperty().(*TagPropertyFilter_TagName); ok { + return x.TagName + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TagPropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TagPropertyFilter_TagName)(nil), + } +} + +// Partition properties we can filter by +type PartitionPropertyFilter struct { + // Types that are valid to be assigned to Property: + // *PartitionPropertyFilter_KeyVal + Property isPartitionPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PartitionPropertyFilter) Reset() { *m = PartitionPropertyFilter{} } +func (m *PartitionPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*PartitionPropertyFilter) ProtoMessage() {} +func (*PartitionPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{33} +} + +func (m *PartitionPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PartitionPropertyFilter.Unmarshal(m, b) +} +func (m *PartitionPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PartitionPropertyFilter.Marshal(b, m, deterministic) +} +func (m *PartitionPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_PartitionPropertyFilter.Merge(m, src) +} +func (m *PartitionPropertyFilter) XXX_Size() int { + return xxx_messageInfo_PartitionPropertyFilter.Size(m) +} +func (m *PartitionPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_PartitionPropertyFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_PartitionPropertyFilter proto.InternalMessageInfo + +type isPartitionPropertyFilter_Property interface { + isPartitionPropertyFilter_Property() +} + +type PartitionPropertyFilter_KeyVal struct { + KeyVal *KeyValuePair `protobuf:"bytes,1,opt,name=key_val,json=keyVal,proto3,oneof"` +} + +func (*PartitionPropertyFilter_KeyVal) isPartitionPropertyFilter_Property() {} + +func (m *PartitionPropertyFilter) GetProperty() isPartitionPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (m *PartitionPropertyFilter) GetKeyVal() *KeyValuePair { + if x, ok := m.GetProperty().(*PartitionPropertyFilter_KeyVal); ok { + return x.KeyVal + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*PartitionPropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*PartitionPropertyFilter_KeyVal)(nil), + } +} + +type KeyValuePair struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } +func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*KeyValuePair) ProtoMessage() {} +func (*KeyValuePair) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{34} +} + +func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) +} +func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) +} +func (m *KeyValuePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValuePair.Merge(m, src) +} +func (m *KeyValuePair) XXX_Size() int { + return xxx_messageInfo_KeyValuePair.Size(m) +} +func (m *KeyValuePair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValuePair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo + +func (m *KeyValuePair) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *KeyValuePair) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// Dataset properties we can filter by +type DatasetPropertyFilter struct { + // Types that are valid to be assigned to Property: + // *DatasetPropertyFilter_Project + // *DatasetPropertyFilter_Name + // *DatasetPropertyFilter_Domain + // *DatasetPropertyFilter_Version + Property isDatasetPropertyFilter_Property `protobuf_oneof:"property"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DatasetPropertyFilter) Reset() { *m = DatasetPropertyFilter{} } +func (m *DatasetPropertyFilter) String() string { return proto.CompactTextString(m) } +func (*DatasetPropertyFilter) ProtoMessage() {} +func (*DatasetPropertyFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{35} +} + +func (m *DatasetPropertyFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DatasetPropertyFilter.Unmarshal(m, b) +} +func (m *DatasetPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DatasetPropertyFilter.Marshal(b, m, deterministic) +} +func (m *DatasetPropertyFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_DatasetPropertyFilter.Merge(m, src) +} +func (m *DatasetPropertyFilter) XXX_Size() int { + return xxx_messageInfo_DatasetPropertyFilter.Size(m) +} +func (m *DatasetPropertyFilter) XXX_DiscardUnknown() { + xxx_messageInfo_DatasetPropertyFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_DatasetPropertyFilter proto.InternalMessageInfo + +type isDatasetPropertyFilter_Property interface { + isDatasetPropertyFilter_Property() +} + +type DatasetPropertyFilter_Project struct { + Project string `protobuf:"bytes,1,opt,name=project,proto3,oneof"` +} + +type DatasetPropertyFilter_Name struct { + Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"` +} + +type DatasetPropertyFilter_Domain struct { + Domain string `protobuf:"bytes,3,opt,name=domain,proto3,oneof"` +} + +type DatasetPropertyFilter_Version struct { + Version string `protobuf:"bytes,4,opt,name=version,proto3,oneof"` +} + +func (*DatasetPropertyFilter_Project) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Name) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Domain) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Version) isDatasetPropertyFilter_Property() {} + +func (m *DatasetPropertyFilter) GetProperty() isDatasetPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (m *DatasetPropertyFilter) GetProject() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Project); ok { + return x.Project + } + return "" +} + +func (m *DatasetPropertyFilter) GetName() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Name); ok { + return x.Name + } + return "" +} + +func (m *DatasetPropertyFilter) GetDomain() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Domain); ok { + return x.Domain + } + return "" +} + +func (m *DatasetPropertyFilter) GetVersion() string { + if x, ok := m.GetProperty().(*DatasetPropertyFilter_Version); ok { + return x.Version + } + return "" +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DatasetPropertyFilter) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DatasetPropertyFilter_Project)(nil), + (*DatasetPropertyFilter_Name)(nil), + (*DatasetPropertyFilter_Domain)(nil), + (*DatasetPropertyFilter_Version)(nil), + } +} + +// Pagination options for making list requests +type PaginationOptions struct { + // the max number of results to return + Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + // the token to pass to fetch the next page + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + // the property that we want to sort the results by + SortKey PaginationOptions_SortKey `protobuf:"varint,3,opt,name=sortKey,proto3,enum=datacatalog.PaginationOptions_SortKey" json:"sortKey,omitempty"` + // the sort order of the results + SortOrder PaginationOptions_SortOrder `protobuf:"varint,4,opt,name=sortOrder,proto3,enum=datacatalog.PaginationOptions_SortOrder" json:"sortOrder,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PaginationOptions) Reset() { *m = PaginationOptions{} } +func (m *PaginationOptions) String() string { return proto.CompactTextString(m) } +func (*PaginationOptions) ProtoMessage() {} +func (*PaginationOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_275951237ff4368a, []int{36} +} + +func (m *PaginationOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PaginationOptions.Unmarshal(m, b) +} +func (m *PaginationOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PaginationOptions.Marshal(b, m, deterministic) +} +func (m *PaginationOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_PaginationOptions.Merge(m, src) +} +func (m *PaginationOptions) XXX_Size() int { + return xxx_messageInfo_PaginationOptions.Size(m) +} +func (m *PaginationOptions) XXX_DiscardUnknown() { + xxx_messageInfo_PaginationOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_PaginationOptions proto.InternalMessageInfo + +func (m *PaginationOptions) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *PaginationOptions) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *PaginationOptions) GetSortKey() PaginationOptions_SortKey { + if m != nil { + return m.SortKey + } + return PaginationOptions_CREATION_TIME +} + +func (m *PaginationOptions) GetSortOrder() PaginationOptions_SortOrder { + if m != nil { + return m.SortOrder + } + return PaginationOptions_DESCENDING +} + +func init() { + proto.RegisterEnum("datacatalog.SinglePropertyFilter_ComparisonOperator", SinglePropertyFilter_ComparisonOperator_name, SinglePropertyFilter_ComparisonOperator_value) + proto.RegisterEnum("datacatalog.PaginationOptions_SortOrder", PaginationOptions_SortOrder_name, PaginationOptions_SortOrder_value) + proto.RegisterEnum("datacatalog.PaginationOptions_SortKey", PaginationOptions_SortKey_name, PaginationOptions_SortKey_value) + proto.RegisterType((*CreateDatasetRequest)(nil), "datacatalog.CreateDatasetRequest") + proto.RegisterType((*CreateDatasetResponse)(nil), "datacatalog.CreateDatasetResponse") + proto.RegisterType((*GetDatasetRequest)(nil), "datacatalog.GetDatasetRequest") + proto.RegisterType((*GetDatasetResponse)(nil), "datacatalog.GetDatasetResponse") + proto.RegisterType((*GetArtifactRequest)(nil), "datacatalog.GetArtifactRequest") + proto.RegisterType((*GetArtifactResponse)(nil), "datacatalog.GetArtifactResponse") + proto.RegisterType((*CreateArtifactRequest)(nil), "datacatalog.CreateArtifactRequest") + proto.RegisterType((*CreateArtifactResponse)(nil), "datacatalog.CreateArtifactResponse") + proto.RegisterType((*AddTagRequest)(nil), "datacatalog.AddTagRequest") + proto.RegisterType((*AddTagResponse)(nil), "datacatalog.AddTagResponse") + proto.RegisterType((*ListArtifactsRequest)(nil), "datacatalog.ListArtifactsRequest") + proto.RegisterType((*ListArtifactsResponse)(nil), "datacatalog.ListArtifactsResponse") + proto.RegisterType((*ListDatasetsRequest)(nil), "datacatalog.ListDatasetsRequest") + proto.RegisterType((*ListDatasetsResponse)(nil), "datacatalog.ListDatasetsResponse") + proto.RegisterType((*UpdateArtifactRequest)(nil), "datacatalog.UpdateArtifactRequest") + proto.RegisterType((*UpdateArtifactResponse)(nil), "datacatalog.UpdateArtifactResponse") + proto.RegisterType((*ReservationID)(nil), "datacatalog.ReservationID") + proto.RegisterType((*GetOrExtendReservationRequest)(nil), "datacatalog.GetOrExtendReservationRequest") + proto.RegisterType((*Reservation)(nil), "datacatalog.Reservation") + proto.RegisterType((*GetOrExtendReservationResponse)(nil), "datacatalog.GetOrExtendReservationResponse") + proto.RegisterType((*ReleaseReservationRequest)(nil), "datacatalog.ReleaseReservationRequest") + proto.RegisterType((*ReleaseReservationResponse)(nil), "datacatalog.ReleaseReservationResponse") + proto.RegisterType((*Dataset)(nil), "datacatalog.Dataset") + proto.RegisterType((*Partition)(nil), "datacatalog.Partition") + proto.RegisterType((*DatasetID)(nil), "datacatalog.DatasetID") + proto.RegisterType((*Artifact)(nil), "datacatalog.Artifact") + proto.RegisterType((*ArtifactData)(nil), "datacatalog.ArtifactData") + proto.RegisterType((*Tag)(nil), "datacatalog.Tag") + proto.RegisterType((*Metadata)(nil), "datacatalog.Metadata") + proto.RegisterMapType((map[string]string)(nil), "datacatalog.Metadata.KeyMapEntry") + proto.RegisterType((*FilterExpression)(nil), "datacatalog.FilterExpression") + proto.RegisterType((*SinglePropertyFilter)(nil), "datacatalog.SinglePropertyFilter") + proto.RegisterType((*ArtifactPropertyFilter)(nil), "datacatalog.ArtifactPropertyFilter") + proto.RegisterType((*TagPropertyFilter)(nil), "datacatalog.TagPropertyFilter") + proto.RegisterType((*PartitionPropertyFilter)(nil), "datacatalog.PartitionPropertyFilter") + proto.RegisterType((*KeyValuePair)(nil), "datacatalog.KeyValuePair") + proto.RegisterType((*DatasetPropertyFilter)(nil), "datacatalog.DatasetPropertyFilter") + proto.RegisterType((*PaginationOptions)(nil), "datacatalog.PaginationOptions") +} + +func init() { + proto.RegisterFile("flyteidl/datacatalog/datacatalog.proto", fileDescriptor_275951237ff4368a) +} + +var fileDescriptor_275951237ff4368a = []byte{ + // 1669 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4b, 0x6f, 0xdb, 0xc6, + 0x16, 0x36, 0x25, 0x47, 0x32, 0x8f, 0x2c, 0x45, 0x9e, 0xd8, 0x8e, 0xac, 0x24, 0xb6, 0xc2, 0x04, + 0xbe, 0x46, 0xee, 0x8d, 0x94, 0x6b, 0x27, 0xc1, 0x4d, 0x72, 0xfb, 0x90, 0x2d, 0xc5, 0x56, 0x1d, + 0x3f, 0x42, 0x3f, 0x80, 0x3e, 0x00, 0x61, 0x6c, 0x8e, 0x19, 0xd6, 0x94, 0xc8, 0x90, 0xe3, 0xd4, + 0x5a, 0x15, 0xdd, 0x74, 0xd1, 0x76, 0x57, 0xa0, 0x7f, 0xa0, 0x3f, 0xa4, 0xcb, 0x74, 0xd5, 0xdf, + 0x54, 0x0c, 0x39, 0x43, 0x91, 0x14, 0x65, 0x2b, 0x5e, 0x04, 0xe8, 0x86, 0xe0, 0xcc, 0x9c, 0xf3, + 0xcd, 0x79, 0xcc, 0x99, 0x73, 0xce, 0xc0, 0xe2, 0x89, 0xd9, 0xa3, 0xc4, 0xd0, 0xcc, 0x9a, 0x86, + 0x29, 0x3e, 0xc6, 0x14, 0x9b, 0x96, 0x1e, 0xfe, 0xaf, 0xda, 0x8e, 0x45, 0x2d, 0x94, 0x0b, 0x4d, + 0x95, 0x6f, 0x07, 0x4c, 0xc7, 0x96, 0x43, 0x6a, 0xa6, 0x41, 0x89, 0x83, 0x4d, 0xd7, 0x27, 0x2d, + 0xcf, 0xeb, 0x96, 0xa5, 0x9b, 0xa4, 0xe6, 0x8d, 0x8e, 0xce, 0x4e, 0x6a, 0xda, 0x99, 0x83, 0xa9, + 0x61, 0x75, 0xf9, 0xfa, 0x42, 0x7c, 0x9d, 0x1a, 0x1d, 0xe2, 0x52, 0xdc, 0xb1, 0x7d, 0x02, 0xe5, + 0x25, 0x4c, 0xaf, 0x39, 0x04, 0x53, 0xd2, 0xc0, 0x14, 0xbb, 0x84, 0xaa, 0xe4, 0xed, 0x19, 0x71, + 0x29, 0xaa, 0x42, 0x56, 0xf3, 0x67, 0x4a, 0x52, 0x45, 0x5a, 0xca, 0x2d, 0x4f, 0x57, 0xc3, 0x82, + 0x0a, 0x6a, 0x41, 0xa4, 0xdc, 0x84, 0x99, 0x18, 0x8e, 0x6b, 0x5b, 0x5d, 0x97, 0x28, 0x4d, 0x98, + 0x5a, 0x27, 0x34, 0x86, 0xfe, 0x28, 0x8e, 0x3e, 0x9b, 0x84, 0xde, 0x6a, 0xf4, 0xf1, 0x1b, 0x80, + 0xc2, 0x30, 0x3e, 0xf8, 0x07, 0x4b, 0xf9, 0x9b, 0xe4, 0xc1, 0xd4, 0x1d, 0x6a, 0x9c, 0xe0, 0xe3, + 0xab, 0x8b, 0x83, 0xee, 0x42, 0x0e, 0x73, 0x90, 0xb6, 0xa1, 0x95, 0x52, 0x15, 0x69, 0x49, 0xde, + 0x18, 0x53, 0x41, 0x4c, 0xb6, 0x34, 0x74, 0x0b, 0x26, 0x28, 0xd6, 0xdb, 0x5d, 0xdc, 0x21, 0xa5, + 0x34, 0x5f, 0xcf, 0x52, 0xac, 0x6f, 0xe3, 0x0e, 0x59, 0x2d, 0xc0, 0xe4, 0xdb, 0x33, 0xe2, 0xf4, + 0xda, 0x6f, 0x70, 0x57, 0x33, 0x89, 0xb2, 0x01, 0x37, 0x22, 0x72, 0x71, 0xfd, 0xfe, 0x0b, 0x13, + 0x02, 0x91, 0x4b, 0x36, 0x13, 0x91, 0x2c, 0x60, 0x08, 0xc8, 0x94, 0x2f, 0x84, 0x23, 0xe2, 0x4a, + 0x5e, 0x01, 0xab, 0x04, 0xb3, 0x71, 0x2c, 0xee, 0xd5, 0x15, 0xc8, 0xd7, 0x35, 0x6d, 0x1f, 0xeb, + 0x02, 0x5d, 0x81, 0x34, 0xc5, 0x3a, 0x07, 0x2e, 0x46, 0x80, 0x19, 0x15, 0x5b, 0x54, 0x8a, 0x50, + 0x10, 0x4c, 0x1c, 0xe6, 0x0f, 0x09, 0xa6, 0x5f, 0x19, 0x6e, 0xa0, 0xb8, 0x7b, 0x75, 0x8f, 0x3c, + 0x81, 0xcc, 0x89, 0x61, 0x52, 0xe2, 0x78, 0xce, 0xc8, 0x2d, 0xdf, 0x89, 0x30, 0xbc, 0xf4, 0x96, + 0x9a, 0xe7, 0xb6, 0x43, 0x5c, 0xd7, 0xb0, 0xba, 0x2a, 0x27, 0x46, 0x9f, 0x02, 0xd8, 0x58, 0x37, + 0xba, 0x5e, 0xd0, 0x78, 0x7e, 0xca, 0x2d, 0xcf, 0x47, 0x58, 0x77, 0x83, 0xe5, 0x1d, 0x9b, 0x7d, + 0x5d, 0x35, 0xc4, 0xa1, 0x9c, 0xc2, 0x4c, 0x4c, 0x01, 0xee, 0xba, 0x15, 0x90, 0x85, 0x1d, 0xdd, + 0x92, 0x54, 0x49, 0x0f, 0xb7, 0x77, 0x9f, 0x0e, 0xdd, 0x01, 0xe8, 0x92, 0x73, 0xda, 0xa6, 0xd6, + 0x29, 0xe9, 0xfa, 0xa7, 0x4a, 0x95, 0xd9, 0xcc, 0x3e, 0x9b, 0x50, 0x7e, 0x91, 0xe0, 0x06, 0xdb, + 0x8d, 0xab, 0x1f, 0x58, 0xab, 0xaf, 0xbb, 0x74, 0x75, 0xdd, 0x53, 0x1f, 0xac, 0xbb, 0xee, 0x3b, + 0xaf, 0x2f, 0x0d, 0x57, 0xfd, 0x11, 0x4c, 0x70, 0xaf, 0x08, 0xcd, 0x93, 0xc3, 0x32, 0xa0, 0xba, + 0x4c, 0xef, 0x3f, 0x25, 0x98, 0x39, 0xb0, 0xb5, 0x84, 0x43, 0xfd, 0xd1, 0x23, 0x17, 0x3d, 0x84, + 0x71, 0x06, 0x55, 0x1a, 0xf7, 0x14, 0x9b, 0x4b, 0x74, 0x29, 0xdb, 0x56, 0xf5, 0xc8, 0x06, 0x02, + 0xfd, 0x19, 0xcc, 0xc6, 0x35, 0xe1, 0x56, 0x5b, 0x88, 0x0a, 0x26, 0x79, 0x46, 0x08, 0x89, 0xa5, + 0x60, 0xc8, 0xab, 0xc4, 0x25, 0xce, 0x3b, 0xcf, 0xfa, 0xad, 0x06, 0x7a, 0x02, 0xc0, 0xb5, 0x12, + 0x0c, 0xc3, 0xf5, 0x97, 0x39, 0x65, 0x4b, 0x43, 0x73, 0x21, 0xf5, 0x7c, 0x53, 0x0b, 0xe5, 0x94, + 0xf7, 0x12, 0xdc, 0x59, 0x27, 0x74, 0xc7, 0x69, 0x9e, 0x53, 0xd2, 0xd5, 0x42, 0xdb, 0x09, 0x83, + 0xd7, 0xa1, 0xe0, 0xf4, 0x67, 0xfb, 0xfb, 0x96, 0x23, 0xfb, 0x46, 0xe4, 0x54, 0xf3, 0x21, 0x0e, + 0x7f, 0x7f, 0xeb, 0xbb, 0x2e, 0x71, 0x02, 0xf3, 0xab, 0x59, 0x6f, 0xdc, 0xd2, 0xd0, 0x06, 0xa0, + 0x37, 0x04, 0x3b, 0xf4, 0x88, 0x60, 0xda, 0x36, 0xba, 0x94, 0x71, 0x99, 0x3c, 0x2a, 0xe7, 0xaa, + 0x7e, 0x2e, 0xab, 0x8a, 0x5c, 0x56, 0x6d, 0xf0, 0x5c, 0xa7, 0x4e, 0x05, 0x4c, 0x2d, 0xce, 0xa3, + 0xfc, 0x9e, 0x82, 0x5c, 0x48, 0x8a, 0x7f, 0x8a, 0xdc, 0xe8, 0x19, 0x00, 0x39, 0xb7, 0x0d, 0x87, + 0xb8, 0x6d, 0x4c, 0x4b, 0xe3, 0x5c, 0xc6, 0x38, 0xc2, 0xbe, 0xc8, 0xe2, 0xaa, 0xcc, 0xa9, 0xeb, + 0xde, 0x05, 0xdf, 0x21, 0x14, 0x7b, 0xa7, 0x33, 0x93, 0x70, 0xc1, 0x6f, 0xf1, 0x45, 0x35, 0x20, + 0x53, 0xbe, 0x81, 0xf9, 0x61, 0xee, 0xe6, 0xa7, 0xf2, 0x39, 0xe4, 0x42, 0x56, 0xe0, 0x46, 0x2b, + 0x0d, 0x33, 0x9a, 0x1a, 0x26, 0x56, 0x7a, 0x30, 0xa7, 0x12, 0x93, 0x60, 0x97, 0x7c, 0xec, 0x83, + 0xa4, 0xdc, 0x86, 0x72, 0xd2, 0xd6, 0x3c, 0xed, 0xfc, 0x24, 0x41, 0x96, 0x87, 0x06, 0x5a, 0x84, + 0xd4, 0xa5, 0xc1, 0x93, 0x32, 0xb4, 0x88, 0x75, 0x53, 0x23, 0x59, 0x17, 0xdd, 0x87, 0xbc, 0xcd, + 0xe2, 0x97, 0xed, 0xbd, 0x49, 0x7a, 0x6e, 0x29, 0x5d, 0x49, 0x2f, 0xc9, 0x6a, 0x74, 0x52, 0x59, + 0x01, 0x79, 0x57, 0x4c, 0xa0, 0x22, 0xa4, 0x4f, 0x49, 0x8f, 0x07, 0x3f, 0xfb, 0x45, 0xd3, 0x70, + 0xed, 0x1d, 0x36, 0xcf, 0x44, 0xa8, 0xfa, 0x03, 0xe5, 0x7b, 0x90, 0x03, 0xf1, 0x50, 0x09, 0xb2, + 0xb6, 0x63, 0x7d, 0x4b, 0x78, 0x62, 0x97, 0x55, 0x31, 0x44, 0x08, 0xc6, 0x43, 0x61, 0xee, 0xfd, + 0xa3, 0x59, 0xc8, 0x68, 0x56, 0x07, 0x1b, 0x7e, 0xb6, 0x93, 0x55, 0x3e, 0x62, 0x28, 0xef, 0x88, + 0xc3, 0x12, 0x84, 0x77, 0xec, 0x64, 0x55, 0x0c, 0x19, 0xca, 0xc1, 0x41, 0xab, 0x51, 0xba, 0xe6, + 0xa3, 0xb0, 0x7f, 0xe5, 0x7d, 0x0a, 0x26, 0xc4, 0x15, 0x86, 0x0a, 0x81, 0x0d, 0x65, 0xcf, 0x56, + 0xa1, 0x5b, 0x39, 0x35, 0xda, 0xad, 0x2c, 0x6e, 0xd5, 0xf4, 0x48, 0xb7, 0x6a, 0xc4, 0x19, 0xe3, + 0xa3, 0x39, 0xe3, 0x29, 0x4b, 0x76, 0xdc, 0xcc, 0x6e, 0xe9, 0x9a, 0xb7, 0xcf, 0x6c, 0x2c, 0xd9, + 0xf1, 0x65, 0x35, 0x44, 0x89, 0xee, 0xc3, 0x38, 0xc5, 0xba, 0x5b, 0xca, 0x78, 0x1c, 0x83, 0x95, + 0x8d, 0xb7, 0xca, 0xc2, 0xf6, 0xd8, 0xab, 0x94, 0x34, 0x16, 0xb6, 0xd9, 0xcb, 0xc3, 0x96, 0x53, + 0xd7, 0xa9, 0xb2, 0x0b, 0x93, 0x61, 0x0d, 0x03, 0x9f, 0x49, 0x21, 0x9f, 0xfd, 0x27, 0x7c, 0x08, + 0x98, 0xdc, 0xa2, 0x29, 0xa8, 0xb2, 0xa6, 0xa0, 0xfa, 0xca, 0x6f, 0x0a, 0xc4, 0xe1, 0x30, 0x21, + 0xbd, 0x8f, 0xf5, 0x44, 0xa0, 0x85, 0x84, 0xec, 0x17, 0xc9, 0x7d, 0x21, 0xd7, 0xa5, 0x47, 0xab, + 0xcc, 0x7f, 0x90, 0x60, 0x42, 0xd8, 0x1b, 0x3d, 0x87, 0xec, 0x29, 0xe9, 0xb5, 0x3b, 0xd8, 0xe6, + 0x99, 0xff, 0x6e, 0xa2, 0x5f, 0xaa, 0x9b, 0xa4, 0xb7, 0x85, 0xed, 0x66, 0x97, 0x3a, 0x3d, 0x35, + 0x73, 0xea, 0x0d, 0xca, 0xcf, 0x20, 0x17, 0x9a, 0x1e, 0x35, 0x14, 0x9e, 0xa7, 0xfe, 0x27, 0x29, + 0x3b, 0x50, 0x8c, 0x57, 0x39, 0xe8, 0x05, 0x64, 0xfd, 0x3a, 0xc7, 0x4d, 0x14, 0x65, 0xcf, 0xe8, + 0xea, 0x26, 0xd9, 0x75, 0x2c, 0x9b, 0x38, 0xb4, 0xe7, 0x73, 0xab, 0x82, 0x43, 0xf9, 0x2b, 0x0d, + 0xd3, 0x49, 0x14, 0xe8, 0x33, 0x00, 0x96, 0x3c, 0x23, 0xe5, 0xd6, 0x7c, 0xfc, 0x50, 0x44, 0x79, + 0x36, 0xc6, 0x54, 0x99, 0x62, 0x9d, 0x03, 0xbc, 0x86, 0x62, 0x70, 0xba, 0xda, 0x91, 0x8a, 0xf5, + 0x7e, 0xf2, 0x69, 0x1c, 0x00, 0xbb, 0x1e, 0xf0, 0x73, 0xc8, 0x6d, 0xb8, 0x1e, 0x38, 0x95, 0x23, + 0xfa, 0xbe, 0xbb, 0x97, 0x18, 0x47, 0x03, 0x80, 0x05, 0xc1, 0xcd, 0xf1, 0x36, 0xa1, 0x20, 0xea, + 0x0a, 0x0e, 0xe7, 0xc7, 0x98, 0x92, 0x74, 0x14, 0x06, 0xd0, 0xf2, 0x9c, 0x97, 0x83, 0xed, 0xc2, + 0x04, 0x23, 0xc0, 0xd4, 0x72, 0x4a, 0x50, 0x91, 0x96, 0x0a, 0xcb, 0x8f, 0x2f, 0xf5, 0x43, 0x75, + 0xcd, 0xea, 0xd8, 0xd8, 0x31, 0x5c, 0x56, 0x77, 0xfa, 0xbc, 0x6a, 0x80, 0xa2, 0x54, 0x00, 0x0d, + 0xae, 0x23, 0x80, 0x4c, 0xf3, 0xf5, 0x41, 0xfd, 0xd5, 0x5e, 0x71, 0x6c, 0x75, 0x0a, 0xae, 0xdb, + 0x1c, 0x90, 0x6b, 0xa0, 0xac, 0xc3, 0x6c, 0xb2, 0xfe, 0xf1, 0x82, 0x50, 0x1a, 0x2c, 0x08, 0x57, + 0x01, 0x26, 0x04, 0x9e, 0xf2, 0x7f, 0x98, 0x1a, 0xf0, 0x70, 0xa4, 0x62, 0x94, 0xe2, 0xbd, 0x5e, + 0x98, 0xfb, 0x6b, 0xb8, 0x39, 0xc4, 0xb1, 0xe8, 0xb1, 0x1f, 0x3a, 0xac, 0x70, 0x90, 0x78, 0xe1, + 0x10, 0xb6, 0xd3, 0x26, 0xe9, 0x1d, 0xb2, 0xf3, 0xbe, 0x8b, 0x0d, 0x66, 0x65, 0x16, 0x34, 0x87, + 0xd8, 0x8c, 0x80, 0x3f, 0x85, 0xc9, 0x30, 0xd5, 0xc8, 0xc9, 0xe4, 0x67, 0x09, 0x66, 0x12, 0xbd, + 0x89, 0xca, 0xb1, 0xcc, 0xc2, 0xd4, 0x12, 0xb9, 0x65, 0x3a, 0x9c, 0x5b, 0x36, 0xc6, 0xf8, 0x05, + 0x53, 0x8a, 0x66, 0x17, 0x26, 0x29, 0xcf, 0x2f, 0xe5, 0x58, 0x7e, 0x61, 0x58, 0x7c, 0x22, 0xa2, + 0xc5, 0xaf, 0x29, 0x98, 0x1a, 0xe8, 0x3b, 0x98, 0xe4, 0xa6, 0xd1, 0x31, 0x7c, 0x39, 0xf2, 0xaa, + 0x3f, 0x60, 0xb3, 0xe1, 0x96, 0xc1, 0x1f, 0xa0, 0xcf, 0x21, 0xeb, 0x5a, 0x0e, 0xdd, 0x24, 0x3d, + 0x4f, 0x88, 0xc2, 0xf2, 0xe2, 0xc5, 0x4d, 0x4d, 0x75, 0xcf, 0xa7, 0x56, 0x05, 0x1b, 0x7a, 0x09, + 0x32, 0xfb, 0xdd, 0x71, 0x34, 0x7e, 0xf8, 0x0b, 0xcb, 0x4b, 0x23, 0x60, 0x78, 0xf4, 0x6a, 0x9f, + 0x55, 0x79, 0x00, 0x72, 0x30, 0x8f, 0x0a, 0x00, 0x8d, 0xe6, 0xde, 0x5a, 0x73, 0xbb, 0xd1, 0xda, + 0x5e, 0x2f, 0x8e, 0xa1, 0x3c, 0xc8, 0xf5, 0x60, 0x28, 0x29, 0xb7, 0x21, 0xcb, 0xe5, 0x40, 0x53, + 0x90, 0x5f, 0x53, 0x9b, 0xf5, 0xfd, 0xd6, 0xce, 0x76, 0x7b, 0xbf, 0xb5, 0xd5, 0x2c, 0x8e, 0x2d, + 0xff, 0x98, 0x85, 0x1c, 0xf3, 0xd1, 0x9a, 0x2f, 0x00, 0x3a, 0x84, 0x7c, 0xe4, 0xbd, 0x05, 0x45, + 0x6f, 0xb7, 0xa4, 0x37, 0x9d, 0xb2, 0x72, 0x11, 0x09, 0xaf, 0xf7, 0xb6, 0x00, 0xfa, 0xef, 0x2c, + 0x28, 0x7a, 0xb3, 0x0d, 0xbc, 0xe3, 0x94, 0x17, 0x86, 0xae, 0x73, 0xb8, 0x2f, 0xa1, 0x10, 0x7d, + 0x41, 0x40, 0x49, 0x42, 0xc4, 0xba, 0xba, 0xf2, 0xbd, 0x0b, 0x69, 0x38, 0xf4, 0x2e, 0xe4, 0x42, + 0x4f, 0x26, 0x68, 0x40, 0x94, 0x38, 0x68, 0x65, 0x38, 0x01, 0x47, 0xac, 0x43, 0xc6, 0x7f, 0x9f, + 0x40, 0xd1, 0x22, 0x34, 0xf2, 0xd2, 0x51, 0xbe, 0x95, 0xb8, 0xc6, 0x21, 0x0e, 0x21, 0x1f, 0x79, + 0x0e, 0x88, 0xb9, 0x25, 0xe9, 0xad, 0x23, 0xe6, 0x96, 0xe4, 0xd7, 0x84, 0x3d, 0x98, 0x0c, 0xb7, + 0xda, 0xa8, 0x32, 0xc0, 0x13, 0x7b, 0x13, 0x28, 0xdf, 0xbd, 0x80, 0xa2, 0xef, 0x9c, 0x68, 0x2f, + 0x1a, 0x73, 0x4e, 0x62, 0xcb, 0x1d, 0x73, 0xce, 0x90, 0x66, 0xf6, 0x2d, 0xcc, 0x26, 0x37, 0x16, + 0xe8, 0x41, 0xdc, 0x0d, 0xc3, 0x9b, 0xcd, 0xf2, 0xbf, 0x47, 0xa2, 0xe5, 0x5b, 0x12, 0x40, 0x83, + 0x25, 0x3f, 0x5a, 0x8c, 0xb5, 0x13, 0x43, 0xda, 0x91, 0xf2, 0xbf, 0x2e, 0xa5, 0xf3, 0xb7, 0x59, + 0xfd, 0xe4, 0xab, 0x17, 0xba, 0x41, 0xdf, 0x9c, 0x1d, 0x55, 0x8f, 0xad, 0x4e, 0xcd, 0xab, 0xc3, + 0x2c, 0x47, 0xaf, 0x05, 0xaf, 0xb4, 0x3a, 0xe9, 0xd6, 0xec, 0xa3, 0x87, 0xba, 0x55, 0x4b, 0x7a, + 0xed, 0x3d, 0xca, 0x78, 0xc5, 0xe0, 0xca, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x74, 0x70, + 0xf4, 0x0c, 0x16, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// DataCatalogClient is the client API for DataCatalog service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DataCatalogClient interface { + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) + // Associate a tag with an artifact. Tags are unique within a Dataset. + AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) + // Return a paginated list of artifacts + ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) + // Return a paginated list of datasets + ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) +} + +type dataCatalogClient struct { + cc *grpc.ClientConn +} + +func NewDataCatalogClient(cc *grpc.ClientConn) DataCatalogClient { + return &dataCatalogClient{cc} +} + +func (c *dataCatalogClient) CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) { + out := new(CreateDatasetResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/CreateDataset", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) { + out := new(GetDatasetResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetDataset", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) { + out := new(CreateArtifactResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/CreateArtifact", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) { + out := new(GetArtifactResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetArtifact", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) { + out := new(AddTagResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/AddTag", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) { + out := new(ListArtifactsResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ListArtifacts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) { + out := new(ListDatasetsResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ListDatasets", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) { + out := new(UpdateArtifactResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/UpdateArtifact", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) { + out := new(GetOrExtendReservationResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetOrExtendReservation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) { + out := new(ReleaseReservationResponse) + err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ReleaseReservation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DataCatalogServer is the server API for DataCatalog service. +type DataCatalogServer interface { + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + CreateDataset(context.Context, *CreateDatasetRequest) (*CreateDatasetResponse, error) + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + GetDataset(context.Context, *GetDatasetRequest) (*GetDatasetResponse, error) + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) + // Associate a tag with an artifact. Tags are unique within a Dataset. + AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) + // Return a paginated list of artifacts + ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) + // Return a paginated list of datasets + ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + GetOrExtendReservation(context.Context, *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) +} + +// UnimplementedDataCatalogServer can be embedded to have forward compatible implementations. +type UnimplementedDataCatalogServer struct { +} + +func (*UnimplementedDataCatalogServer) CreateDataset(ctx context.Context, req *CreateDatasetRequest) (*CreateDatasetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDataset not implemented") +} +func (*UnimplementedDataCatalogServer) GetDataset(ctx context.Context, req *GetDatasetRequest) (*GetDatasetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDataset not implemented") +} +func (*UnimplementedDataCatalogServer) CreateArtifact(ctx context.Context, req *CreateArtifactRequest) (*CreateArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateArtifact not implemented") +} +func (*UnimplementedDataCatalogServer) GetArtifact(ctx context.Context, req *GetArtifactRequest) (*GetArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") +} +func (*UnimplementedDataCatalogServer) AddTag(ctx context.Context, req *AddTagRequest) (*AddTagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddTag not implemented") +} +func (*UnimplementedDataCatalogServer) ListArtifacts(ctx context.Context, req *ListArtifactsRequest) (*ListArtifactsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented") +} +func (*UnimplementedDataCatalogServer) ListDatasets(ctx context.Context, req *ListDatasetsRequest) (*ListDatasetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") +} +func (*UnimplementedDataCatalogServer) UpdateArtifact(ctx context.Context, req *UpdateArtifactRequest) (*UpdateArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateArtifact not implemented") +} +func (*UnimplementedDataCatalogServer) GetOrExtendReservation(ctx context.Context, req *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrExtendReservation not implemented") +} +func (*UnimplementedDataCatalogServer) ReleaseReservation(ctx context.Context, req *ReleaseReservationRequest) (*ReleaseReservationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReleaseReservation not implemented") +} + +func RegisterDataCatalogServer(s *grpc.Server, srv DataCatalogServer) { + s.RegisterService(&_DataCatalog_serviceDesc, srv) +} + +func _DataCatalog_CreateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDatasetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).CreateDataset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/CreateDataset", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).CreateDataset(ctx, req.(*CreateDatasetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_GetDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDatasetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetDataset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/GetDataset", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetDataset(ctx, req.(*GetDatasetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_CreateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).CreateArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/CreateArtifact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).CreateArtifact(ctx, req.(*CreateArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/GetArtifact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetArtifact(ctx, req.(*GetArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_AddTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddTagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).AddTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/AddTag", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).AddTag(ctx, req.(*AddTagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ListArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListArtifactsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ListArtifacts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/ListArtifacts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ListArtifacts(ctx, req.(*ListArtifactsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ListDatasets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDatasetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ListDatasets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/ListDatasets", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ListDatasets(ctx, req.(*ListDatasetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_UpdateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).UpdateArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/UpdateArtifact", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).UpdateArtifact(ctx, req.(*UpdateArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_GetOrExtendReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOrExtendReservationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetOrExtendReservation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/GetOrExtendReservation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetOrExtendReservation(ctx, req.(*GetOrExtendReservationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ReleaseReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReleaseReservationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ReleaseReservation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/datacatalog.DataCatalog/ReleaseReservation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ReleaseReservation(ctx, req.(*ReleaseReservationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _DataCatalog_serviceDesc = grpc.ServiceDesc{ + ServiceName: "datacatalog.DataCatalog", + HandlerType: (*DataCatalogServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateDataset", + Handler: _DataCatalog_CreateDataset_Handler, + }, + { + MethodName: "GetDataset", + Handler: _DataCatalog_GetDataset_Handler, + }, + { + MethodName: "CreateArtifact", + Handler: _DataCatalog_CreateArtifact_Handler, + }, + { + MethodName: "GetArtifact", + Handler: _DataCatalog_GetArtifact_Handler, + }, + { + MethodName: "AddTag", + Handler: _DataCatalog_AddTag_Handler, + }, + { + MethodName: "ListArtifacts", + Handler: _DataCatalog_ListArtifacts_Handler, + }, + { + MethodName: "ListDatasets", + Handler: _DataCatalog_ListDatasets_Handler, + }, + { + MethodName: "UpdateArtifact", + Handler: _DataCatalog_UpdateArtifact_Handler, + }, + { + MethodName: "GetOrExtendReservation", + Handler: _DataCatalog_GetOrExtendReservation_Handler, + }, + { + MethodName: "ReleaseReservation", + Handler: _DataCatalog_ReleaseReservation_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/datacatalog/datacatalog.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go new file mode 100644 index 0000000000..0f1f5dd9e6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go @@ -0,0 +1,3051 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/datacatalog/datacatalog.proto + +package datacatalog + +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 _datacatalog_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 CreateDatasetRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateDatasetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateDatasetRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CreateDatasetRequestValidationError is the validation error returned by +// CreateDatasetRequest.Validate if the designated constraints aren't met. +type CreateDatasetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateDatasetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateDatasetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateDatasetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateDatasetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateDatasetRequestValidationError) ErrorName() string { + return "CreateDatasetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateDatasetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateDatasetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateDatasetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateDatasetRequestValidationError{} + +// Validate checks the field values on CreateDatasetResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateDatasetResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CreateDatasetResponseValidationError is the validation error returned by +// CreateDatasetResponse.Validate if the designated constraints aren't met. +type CreateDatasetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateDatasetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateDatasetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateDatasetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateDatasetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateDatasetResponseValidationError) ErrorName() string { + return "CreateDatasetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateDatasetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateDatasetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateDatasetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateDatasetResponseValidationError{} + +// Validate checks the field values on GetDatasetRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *GetDatasetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetDatasetRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetDatasetRequestValidationError is the validation error returned by +// GetDatasetRequest.Validate if the designated constraints aren't met. +type GetDatasetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetDatasetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetDatasetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetDatasetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetDatasetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetDatasetRequestValidationError) ErrorName() string { + return "GetDatasetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetDatasetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetDatasetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetDatasetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetDatasetRequestValidationError{} + +// Validate checks the field values on GetDatasetResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetDatasetResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetDatasetResponseValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetDatasetResponseValidationError is the validation error returned by +// GetDatasetResponse.Validate if the designated constraints aren't met. +type GetDatasetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetDatasetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetDatasetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetDatasetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetDatasetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetDatasetResponseValidationError) ErrorName() string { + return "GetDatasetResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetDatasetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetDatasetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetDatasetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetDatasetResponseValidationError{} + +// Validate checks the field values on GetArtifactRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetArtifactRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetArtifactRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.QueryHandle.(type) { + + case *GetArtifactRequest_ArtifactId: + // no validation rules for ArtifactId + + case *GetArtifactRequest_TagName: + // no validation rules for TagName + + } + + return nil +} + +// GetArtifactRequestValidationError is the validation error returned by +// GetArtifactRequest.Validate if the designated constraints aren't met. +type GetArtifactRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetArtifactRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetArtifactRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetArtifactRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetArtifactRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetArtifactRequestValidationError) ErrorName() string { + return "GetArtifactRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetArtifactRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetArtifactRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetArtifactRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetArtifactRequestValidationError{} + +// Validate checks the field values on GetArtifactResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetArtifactResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetArtifactResponseValidationError{ + field: "Artifact", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetArtifactResponseValidationError is the validation error returned by +// GetArtifactResponse.Validate if the designated constraints aren't met. +type GetArtifactResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetArtifactResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetArtifactResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetArtifactResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetArtifactResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetArtifactResponseValidationError) ErrorName() string { + return "GetArtifactResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetArtifactResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetArtifactResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetArtifactResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetArtifactResponseValidationError{} + +// Validate checks the field values on CreateArtifactRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateArtifactRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateArtifactRequestValidationError{ + field: "Artifact", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CreateArtifactRequestValidationError is the validation error returned by +// CreateArtifactRequest.Validate if the designated constraints aren't met. +type CreateArtifactRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateArtifactRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateArtifactRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateArtifactRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateArtifactRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateArtifactRequestValidationError) ErrorName() string { + return "CreateArtifactRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateArtifactRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateArtifactRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateArtifactRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateArtifactRequestValidationError{} + +// Validate checks the field values on CreateArtifactResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateArtifactResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CreateArtifactResponseValidationError is the validation error returned by +// CreateArtifactResponse.Validate if the designated constraints aren't met. +type CreateArtifactResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateArtifactResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateArtifactResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateArtifactResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateArtifactResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateArtifactResponseValidationError) ErrorName() string { + return "CreateArtifactResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateArtifactResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateArtifactResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateArtifactResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateArtifactResponseValidationError{} + +// Validate checks the field values on AddTagRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AddTagRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTag()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddTagRequestValidationError{ + field: "Tag", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// AddTagRequestValidationError is the validation error returned by +// AddTagRequest.Validate if the designated constraints aren't met. +type AddTagRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AddTagRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AddTagRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AddTagRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AddTagRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AddTagRequestValidationError) ErrorName() string { return "AddTagRequestValidationError" } + +// Error satisfies the builtin error interface +func (e AddTagRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAddTagRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AddTagRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AddTagRequestValidationError{} + +// Validate checks the field values on AddTagResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AddTagResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// AddTagResponseValidationError is the validation error returned by +// AddTagResponse.Validate if the designated constraints aren't met. +type AddTagResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AddTagResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AddTagResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AddTagResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AddTagResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AddTagResponseValidationError) ErrorName() string { return "AddTagResponseValidationError" } + +// Error satisfies the builtin error interface +func (e AddTagResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAddTagResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AddTagResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AddTagResponseValidationError{} + +// Validate checks the field values on ListArtifactsRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListArtifactsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsRequestValidationError{ + field: "Filter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPagination()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsRequestValidationError{ + field: "Pagination", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListArtifactsRequestValidationError is the validation error returned by +// ListArtifactsRequest.Validate if the designated constraints aren't met. +type ListArtifactsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListArtifactsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListArtifactsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListArtifactsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListArtifactsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListArtifactsRequestValidationError) ErrorName() string { + return "ListArtifactsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ListArtifactsRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListArtifactsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListArtifactsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListArtifactsRequestValidationError{} + +// Validate checks the field values on ListArtifactsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListArtifactsResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetArtifacts() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListArtifactsResponseValidationError{ + field: fmt.Sprintf("Artifacts[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for NextToken + + return nil +} + +// ListArtifactsResponseValidationError is the validation error returned by +// ListArtifactsResponse.Validate if the designated constraints aren't met. +type ListArtifactsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListArtifactsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListArtifactsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListArtifactsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListArtifactsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListArtifactsResponseValidationError) ErrorName() string { + return "ListArtifactsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ListArtifactsResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListArtifactsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListArtifactsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListArtifactsResponseValidationError{} + +// Validate checks the field values on ListDatasetsRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListDatasetsRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListDatasetsRequestValidationError{ + field: "Filter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPagination()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListDatasetsRequestValidationError{ + field: "Pagination", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ListDatasetsRequestValidationError is the validation error returned by +// ListDatasetsRequest.Validate if the designated constraints aren't met. +type ListDatasetsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListDatasetsRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListDatasetsRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListDatasetsRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListDatasetsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListDatasetsRequestValidationError) ErrorName() string { + return "ListDatasetsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ListDatasetsRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListDatasetsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListDatasetsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListDatasetsRequestValidationError{} + +// Validate checks the field values on ListDatasetsResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ListDatasetsResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetDatasets() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListDatasetsResponseValidationError{ + field: fmt.Sprintf("Datasets[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for NextToken + + return nil +} + +// ListDatasetsResponseValidationError is the validation error returned by +// ListDatasetsResponse.Validate if the designated constraints aren't met. +type ListDatasetsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ListDatasetsResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ListDatasetsResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ListDatasetsResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ListDatasetsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ListDatasetsResponseValidationError) ErrorName() string { + return "ListDatasetsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ListDatasetsResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sListDatasetsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ListDatasetsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ListDatasetsResponseValidationError{} + +// Validate checks the field values on UpdateArtifactRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *UpdateArtifactRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateArtifactRequestValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetData() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return UpdateArtifactRequestValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.QueryHandle.(type) { + + case *UpdateArtifactRequest_ArtifactId: + // no validation rules for ArtifactId + + case *UpdateArtifactRequest_TagName: + // no validation rules for TagName + + } + + return nil +} + +// UpdateArtifactRequestValidationError is the validation error returned by +// UpdateArtifactRequest.Validate if the designated constraints aren't met. +type UpdateArtifactRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UpdateArtifactRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UpdateArtifactRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UpdateArtifactRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UpdateArtifactRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UpdateArtifactRequestValidationError) ErrorName() string { + return "UpdateArtifactRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e UpdateArtifactRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUpdateArtifactRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UpdateArtifactRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UpdateArtifactRequestValidationError{} + +// Validate checks the field values on UpdateArtifactResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *UpdateArtifactResponse) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ArtifactId + + return nil +} + +// UpdateArtifactResponseValidationError is the validation error returned by +// UpdateArtifactResponse.Validate if the designated constraints aren't met. +type UpdateArtifactResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UpdateArtifactResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UpdateArtifactResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UpdateArtifactResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UpdateArtifactResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UpdateArtifactResponseValidationError) ErrorName() string { + return "UpdateArtifactResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e UpdateArtifactResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUpdateArtifactResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UpdateArtifactResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UpdateArtifactResponseValidationError{} + +// Validate checks the field values on ReservationID with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ReservationID) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetDatasetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReservationIDValidationError{ + field: "DatasetId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TagName + + return nil +} + +// ReservationIDValidationError is the validation error returned by +// ReservationID.Validate if the designated constraints aren't met. +type ReservationIDValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReservationIDValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReservationIDValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReservationIDValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReservationIDValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReservationIDValidationError) ErrorName() string { return "ReservationIDValidationError" } + +// Error satisfies the builtin error interface +func (e ReservationIDValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sReservationID.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReservationIDValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReservationIDValidationError{} + +// Validate checks the field values on GetOrExtendReservationRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetOrExtendReservationRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetReservationId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetOrExtendReservationRequestValidationError{ + field: "ReservationId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OwnerId + + if v, ok := interface{}(m.GetHeartbeatInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetOrExtendReservationRequestValidationError{ + field: "HeartbeatInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetOrExtendReservationRequestValidationError is the validation error +// returned by GetOrExtendReservationRequest.Validate if the designated +// constraints aren't met. +type GetOrExtendReservationRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetOrExtendReservationRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetOrExtendReservationRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetOrExtendReservationRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetOrExtendReservationRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetOrExtendReservationRequestValidationError) ErrorName() string { + return "GetOrExtendReservationRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GetOrExtendReservationRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetOrExtendReservationRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetOrExtendReservationRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetOrExtendReservationRequestValidationError{} + +// Validate checks the field values on Reservation with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Reservation) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetReservationId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReservationValidationError{ + field: "ReservationId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OwnerId + + if v, ok := interface{}(m.GetHeartbeatInterval()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReservationValidationError{ + field: "HeartbeatInterval", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetExpiresAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReservationValidationError{ + field: "ExpiresAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReservationValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ReservationValidationError is the validation error returned by +// Reservation.Validate if the designated constraints aren't met. +type ReservationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReservationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReservationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReservationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReservationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReservationValidationError) ErrorName() string { return "ReservationValidationError" } + +// Error satisfies the builtin error interface +func (e ReservationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sReservation.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReservationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReservationValidationError{} + +// Validate checks the field values on GetOrExtendReservationResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GetOrExtendReservationResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetReservation()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetOrExtendReservationResponseValidationError{ + field: "Reservation", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetOrExtendReservationResponseValidationError is the validation error +// returned by GetOrExtendReservationResponse.Validate if the designated +// constraints aren't met. +type GetOrExtendReservationResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetOrExtendReservationResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetOrExtendReservationResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetOrExtendReservationResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetOrExtendReservationResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetOrExtendReservationResponseValidationError) ErrorName() string { + return "GetOrExtendReservationResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GetOrExtendReservationResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetOrExtendReservationResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetOrExtendReservationResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetOrExtendReservationResponseValidationError{} + +// Validate checks the field values on ReleaseReservationRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ReleaseReservationRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetReservationId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ReleaseReservationRequestValidationError{ + field: "ReservationId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for OwnerId + + return nil +} + +// ReleaseReservationRequestValidationError is the validation error returned by +// ReleaseReservationRequest.Validate if the designated constraints aren't met. +type ReleaseReservationRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReleaseReservationRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReleaseReservationRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReleaseReservationRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReleaseReservationRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReleaseReservationRequestValidationError) ErrorName() string { + return "ReleaseReservationRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ReleaseReservationRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sReleaseReservationRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReleaseReservationRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReleaseReservationRequestValidationError{} + +// Validate checks the field values on ReleaseReservationResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ReleaseReservationResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ReleaseReservationResponseValidationError is the validation error returned +// by ReleaseReservationResponse.Validate if the designated constraints aren't met. +type ReleaseReservationResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ReleaseReservationResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ReleaseReservationResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ReleaseReservationResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ReleaseReservationResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ReleaseReservationResponseValidationError) ErrorName() string { + return "ReleaseReservationResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ReleaseReservationResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sReleaseReservationResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ReleaseReservationResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ReleaseReservationResponseValidationError{} + +// Validate checks the field values on Dataset with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Dataset) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DatasetValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DatasetValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DatasetValidationError is the validation error returned by Dataset.Validate +// if the designated constraints aren't met. +type DatasetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DatasetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DatasetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DatasetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DatasetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DatasetValidationError) ErrorName() string { return "DatasetValidationError" } + +// Error satisfies the builtin error interface +func (e DatasetValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDataset.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DatasetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DatasetValidationError{} + +// Validate checks the field values on Partition with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Partition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Key + + // no validation rules for Value + + return nil +} + +// PartitionValidationError is the validation error returned by +// Partition.Validate if the designated constraints aren't met. +type PartitionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PartitionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PartitionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PartitionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PartitionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PartitionValidationError) ErrorName() string { return "PartitionValidationError" } + +// Error satisfies the builtin error interface +func (e PartitionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPartition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PartitionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PartitionValidationError{} + +// Validate checks the field values on DatasetID with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *DatasetID) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Name + + // no validation rules for Domain + + // no validation rules for Version + + // no validation rules for UUID + + return nil +} + +// DatasetIDValidationError is the validation error returned by +// DatasetID.Validate if the designated constraints aren't met. +type DatasetIDValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DatasetIDValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DatasetIDValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DatasetIDValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DatasetIDValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DatasetIDValidationError) ErrorName() string { return "DatasetIDValidationError" } + +// Error satisfies the builtin error interface +func (e DatasetIDValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDatasetID.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DatasetIDValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DatasetIDValidationError{} + +// Validate checks the field values on Artifact with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Artifact) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Id + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetData() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: fmt.Sprintf("Data[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetPartitions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: fmt.Sprintf("Partitions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetTags() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: fmt.Sprintf("Tags[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ArtifactValidationError is the validation error returned by +// Artifact.Validate if the designated constraints aren't met. +type ArtifactValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArtifactValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArtifactValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArtifactValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArtifactValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArtifactValidationError) ErrorName() string { return "ArtifactValidationError" } + +// Error satisfies the builtin error interface +func (e ArtifactValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArtifact.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArtifactValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArtifactValidationError{} + +// Validate checks the field values on ArtifactData with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ArtifactData) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactDataValidationError{ + field: "Value", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ArtifactDataValidationError is the validation error returned by +// ArtifactData.Validate if the designated constraints aren't met. +type ArtifactDataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArtifactDataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArtifactDataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArtifactDataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArtifactDataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArtifactDataValidationError) ErrorName() string { return "ArtifactDataValidationError" } + +// Error satisfies the builtin error interface +func (e ArtifactDataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArtifactData.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArtifactDataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArtifactDataValidationError{} + +// Validate checks the field values on Tag with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Tag) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for ArtifactId + + if v, ok := interface{}(m.GetDataset()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TagValidationError{ + field: "Dataset", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TagValidationError is the validation error returned by Tag.Validate if the +// designated constraints aren't met. +type TagValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TagValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TagValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TagValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TagValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TagValidationError) ErrorName() string { return "TagValidationError" } + +// Error satisfies the builtin error interface +func (e TagValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTag.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TagValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TagValidationError{} + +// Validate checks the field values on Metadata with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Metadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for KeyMap + + return nil +} + +// MetadataValidationError is the validation error returned by +// Metadata.Validate if the designated constraints aren't met. +type MetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MetadataValidationError) ErrorName() string { return "MetadataValidationError" } + +// Error satisfies the builtin error interface +func (e MetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MetadataValidationError{} + +// Validate checks the field values on FilterExpression with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *FilterExpression) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetFilters() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FilterExpressionValidationError{ + field: fmt.Sprintf("Filters[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// FilterExpressionValidationError is the validation error returned by +// FilterExpression.Validate if the designated constraints aren't met. +type FilterExpressionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FilterExpressionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FilterExpressionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FilterExpressionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FilterExpressionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FilterExpressionValidationError) ErrorName() string { return "FilterExpressionValidationError" } + +// Error satisfies the builtin error interface +func (e FilterExpressionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sFilterExpression.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FilterExpressionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FilterExpressionValidationError{} + +// Validate checks the field values on SinglePropertyFilter with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SinglePropertyFilter) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Operator + + switch m.PropertyFilter.(type) { + + case *SinglePropertyFilter_TagFilter: + + if v, ok := interface{}(m.GetTagFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SinglePropertyFilterValidationError{ + field: "TagFilter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SinglePropertyFilter_PartitionFilter: + + if v, ok := interface{}(m.GetPartitionFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SinglePropertyFilterValidationError{ + field: "PartitionFilter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SinglePropertyFilter_ArtifactFilter: + + if v, ok := interface{}(m.GetArtifactFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SinglePropertyFilterValidationError{ + field: "ArtifactFilter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SinglePropertyFilter_DatasetFilter: + + if v, ok := interface{}(m.GetDatasetFilter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SinglePropertyFilterValidationError{ + field: "DatasetFilter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SinglePropertyFilterValidationError is the validation error returned by +// SinglePropertyFilter.Validate if the designated constraints aren't met. +type SinglePropertyFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SinglePropertyFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SinglePropertyFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SinglePropertyFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SinglePropertyFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SinglePropertyFilterValidationError) ErrorName() string { + return "SinglePropertyFilterValidationError" +} + +// Error satisfies the builtin error interface +func (e SinglePropertyFilterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSinglePropertyFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SinglePropertyFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SinglePropertyFilterValidationError{} + +// Validate checks the field values on ArtifactPropertyFilter with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ArtifactPropertyFilter) Validate() error { + if m == nil { + return nil + } + + switch m.Property.(type) { + + case *ArtifactPropertyFilter_ArtifactId: + // no validation rules for ArtifactId + + } + + return nil +} + +// ArtifactPropertyFilterValidationError is the validation error returned by +// ArtifactPropertyFilter.Validate if the designated constraints aren't met. +type ArtifactPropertyFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArtifactPropertyFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArtifactPropertyFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArtifactPropertyFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArtifactPropertyFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArtifactPropertyFilterValidationError) ErrorName() string { + return "ArtifactPropertyFilterValidationError" +} + +// Error satisfies the builtin error interface +func (e ArtifactPropertyFilterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArtifactPropertyFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArtifactPropertyFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArtifactPropertyFilterValidationError{} + +// Validate checks the field values on TagPropertyFilter with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TagPropertyFilter) Validate() error { + if m == nil { + return nil + } + + switch m.Property.(type) { + + case *TagPropertyFilter_TagName: + // no validation rules for TagName + + } + + return nil +} + +// TagPropertyFilterValidationError is the validation error returned by +// TagPropertyFilter.Validate if the designated constraints aren't met. +type TagPropertyFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TagPropertyFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TagPropertyFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TagPropertyFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TagPropertyFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TagPropertyFilterValidationError) ErrorName() string { + return "TagPropertyFilterValidationError" +} + +// Error satisfies the builtin error interface +func (e TagPropertyFilterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTagPropertyFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TagPropertyFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TagPropertyFilterValidationError{} + +// Validate checks the field values on PartitionPropertyFilter with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *PartitionPropertyFilter) Validate() error { + if m == nil { + return nil + } + + switch m.Property.(type) { + + case *PartitionPropertyFilter_KeyVal: + + if v, ok := interface{}(m.GetKeyVal()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PartitionPropertyFilterValidationError{ + field: "KeyVal", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PartitionPropertyFilterValidationError is the validation error returned by +// PartitionPropertyFilter.Validate if the designated constraints aren't met. +type PartitionPropertyFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PartitionPropertyFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PartitionPropertyFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PartitionPropertyFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PartitionPropertyFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PartitionPropertyFilterValidationError) ErrorName() string { + return "PartitionPropertyFilterValidationError" +} + +// Error satisfies the builtin error interface +func (e PartitionPropertyFilterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPartitionPropertyFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PartitionPropertyFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PartitionPropertyFilterValidationError{} + +// Validate checks the field values on KeyValuePair with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *KeyValuePair) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Key + + // no validation rules for Value + + return nil +} + +// KeyValuePairValidationError is the validation error returned by +// KeyValuePair.Validate if the designated constraints aren't met. +type KeyValuePairValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e KeyValuePairValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e KeyValuePairValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e KeyValuePairValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e KeyValuePairValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e KeyValuePairValidationError) ErrorName() string { return "KeyValuePairValidationError" } + +// Error satisfies the builtin error interface +func (e KeyValuePairValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sKeyValuePair.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = KeyValuePairValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = KeyValuePairValidationError{} + +// Validate checks the field values on DatasetPropertyFilter with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DatasetPropertyFilter) Validate() error { + if m == nil { + return nil + } + + switch m.Property.(type) { + + case *DatasetPropertyFilter_Project: + // no validation rules for Project + + case *DatasetPropertyFilter_Name: + // no validation rules for Name + + case *DatasetPropertyFilter_Domain: + // no validation rules for Domain + + case *DatasetPropertyFilter_Version: + // no validation rules for Version + + } + + return nil +} + +// DatasetPropertyFilterValidationError is the validation error returned by +// DatasetPropertyFilter.Validate if the designated constraints aren't met. +type DatasetPropertyFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DatasetPropertyFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DatasetPropertyFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DatasetPropertyFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DatasetPropertyFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DatasetPropertyFilterValidationError) ErrorName() string { + return "DatasetPropertyFilterValidationError" +} + +// Error satisfies the builtin error interface +func (e DatasetPropertyFilterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDatasetPropertyFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DatasetPropertyFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DatasetPropertyFilterValidationError{} + +// Validate checks the field values on PaginationOptions with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *PaginationOptions) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for SortKey + + // no validation rules for SortOrder + + return nil +} + +// PaginationOptionsValidationError is the validation error returned by +// PaginationOptions.Validate if the designated constraints aren't met. +type PaginationOptionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PaginationOptionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PaginationOptionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PaginationOptionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PaginationOptionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PaginationOptionsValidationError) ErrorName() string { + return "PaginationOptionsValidationError" +} + +// Error satisfies the builtin error interface +func (e PaginationOptionsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPaginationOptions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PaginationOptionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PaginationOptionsValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.pb.go b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go new file mode 100644 index 0000000000..62b7a12e68 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/event/event.proto + +package event + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + 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 + +// Includes the broad category of machine used for this specific task execution. +type TaskExecutionMetadata_InstanceClass int32 + +const ( + // The default instance class configured for the flyte application platform. + TaskExecutionMetadata_DEFAULT TaskExecutionMetadata_InstanceClass = 0 + // The instance class configured for interruptible tasks. + TaskExecutionMetadata_INTERRUPTIBLE TaskExecutionMetadata_InstanceClass = 1 +) + +var TaskExecutionMetadata_InstanceClass_name = map[int32]string{ + 0: "DEFAULT", + 1: "INTERRUPTIBLE", +} + +var TaskExecutionMetadata_InstanceClass_value = map[string]int32{ + "DEFAULT": 0, + "INTERRUPTIBLE": 1, +} + +func (x TaskExecutionMetadata_InstanceClass) String() string { + return proto.EnumName(TaskExecutionMetadata_InstanceClass_name, int32(x)) +} + +func (TaskExecutionMetadata_InstanceClass) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{10, 0} +} + +type WorkflowExecutionEvent struct { + // Workflow execution id + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + // the id of the originator (Propeller) of the event + ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + Phase core.WorkflowExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the workflow. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Types that are valid to be assigned to OutputResult: + // *WorkflowExecutionEvent_OutputUri + // *WorkflowExecutionEvent_Error + // *WorkflowExecutionEvent_OutputData + OutputResult isWorkflowExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionEvent) Reset() { *m = WorkflowExecutionEvent{} } +func (m *WorkflowExecutionEvent) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionEvent) ProtoMessage() {} +func (*WorkflowExecutionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{0} +} + +func (m *WorkflowExecutionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionEvent.Unmarshal(m, b) +} +func (m *WorkflowExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionEvent.Marshal(b, m, deterministic) +} +func (m *WorkflowExecutionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionEvent.Merge(m, src) +} +func (m *WorkflowExecutionEvent) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionEvent.Size(m) +} +func (m *WorkflowExecutionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionEvent proto.InternalMessageInfo + +func (m *WorkflowExecutionEvent) GetExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +func (m *WorkflowExecutionEvent) GetProducerId() string { + if m != nil { + return m.ProducerId + } + return "" +} + +func (m *WorkflowExecutionEvent) GetPhase() core.WorkflowExecution_Phase { + if m != nil { + return m.Phase + } + return core.WorkflowExecution_UNDEFINED +} + +func (m *WorkflowExecutionEvent) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +type isWorkflowExecutionEvent_OutputResult interface { + isWorkflowExecutionEvent_OutputResult() +} + +type WorkflowExecutionEvent_OutputUri struct { + OutputUri string `protobuf:"bytes,5,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type WorkflowExecutionEvent_Error struct { + Error *core.ExecutionError `protobuf:"bytes,6,opt,name=error,proto3,oneof"` +} + +type WorkflowExecutionEvent_OutputData struct { + OutputData *core.LiteralMap `protobuf:"bytes,7,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*WorkflowExecutionEvent_OutputUri) isWorkflowExecutionEvent_OutputResult() {} + +func (*WorkflowExecutionEvent_Error) isWorkflowExecutionEvent_OutputResult() {} + +func (*WorkflowExecutionEvent_OutputData) isWorkflowExecutionEvent_OutputResult() {} + +func (m *WorkflowExecutionEvent) GetOutputResult() isWorkflowExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *WorkflowExecutionEvent) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *WorkflowExecutionEvent) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +func (m *WorkflowExecutionEvent) GetOutputData() *core.LiteralMap { + if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_OutputData); ok { + return x.OutputData + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*WorkflowExecutionEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*WorkflowExecutionEvent_OutputUri)(nil), + (*WorkflowExecutionEvent_Error)(nil), + (*WorkflowExecutionEvent_OutputData)(nil), + } +} + +type NodeExecutionEvent struct { + // Unique identifier for this node execution + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // the id of the originator (Propeller) of the event + ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the node. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Types that are valid to be assigned to InputValue: + // *NodeExecutionEvent_InputUri + // *NodeExecutionEvent_InputData + InputValue isNodeExecutionEvent_InputValue `protobuf_oneof:"input_value"` + // Types that are valid to be assigned to OutputResult: + // *NodeExecutionEvent_OutputUri + // *NodeExecutionEvent_Error + // *NodeExecutionEvent_OutputData + OutputResult isNodeExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + // Additional metadata to do with this event's node target based + // on the node type + // + // Types that are valid to be assigned to TargetMetadata: + // *NodeExecutionEvent_WorkflowNodeMetadata + // *NodeExecutionEvent_TaskNodeMetadata + TargetMetadata isNodeExecutionEvent_TargetMetadata `protobuf_oneof:"target_metadata"` + // [To be deprecated] Specifies which task (if any) launched this node. + ParentTaskMetadata *ParentTaskExecutionMetadata `protobuf:"bytes,9,opt,name=parent_task_metadata,json=parentTaskMetadata,proto3" json:"parent_task_metadata,omitempty"` + // Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. + ParentNodeMetadata *ParentNodeExecutionMetadata `protobuf:"bytes,10,opt,name=parent_node_metadata,json=parentNodeMetadata,proto3" json:"parent_node_metadata,omitempty"` + // Retry group to indicate grouping of nodes by retries + RetryGroup string `protobuf:"bytes,11,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` + // Identifier of the node in the original workflow/graph + // This maps to value of WorkflowTemplate.nodes[X].id + SpecNodeId string `protobuf:"bytes,12,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` + // Friendly readable name for the node + NodeName string `protobuf:"bytes,13,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + EventVersion int32 `protobuf:"varint,16,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` + // Whether this node launched a subworkflow. + IsParent bool `protobuf:"varint,17,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` + // Whether this node yielded a dynamic workflow. + IsDynamic bool `protobuf:"varint,18,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` + // String location uniquely identifying where the deck HTML file is + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + DeckUri string `protobuf:"bytes,19,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` + // This timestamp represents the instant when the event was reported by the executing framework. For example, + // when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when + // literal inputs are initially copied. The event however will not be sent until after the copy completes. + // Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + ReportedAt *timestamp.Timestamp `protobuf:"bytes,21,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionEvent) Reset() { *m = NodeExecutionEvent{} } +func (m *NodeExecutionEvent) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionEvent) ProtoMessage() {} +func (*NodeExecutionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{1} +} + +func (m *NodeExecutionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionEvent.Unmarshal(m, b) +} +func (m *NodeExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionEvent.Marshal(b, m, deterministic) +} +func (m *NodeExecutionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionEvent.Merge(m, src) +} +func (m *NodeExecutionEvent) XXX_Size() int { + return xxx_messageInfo_NodeExecutionEvent.Size(m) +} +func (m *NodeExecutionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionEvent proto.InternalMessageInfo + +func (m *NodeExecutionEvent) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *NodeExecutionEvent) GetProducerId() string { + if m != nil { + return m.ProducerId + } + return "" +} + +func (m *NodeExecutionEvent) GetPhase() core.NodeExecution_Phase { + if m != nil { + return m.Phase + } + return core.NodeExecution_UNDEFINED +} + +func (m *NodeExecutionEvent) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +type isNodeExecutionEvent_InputValue interface { + isNodeExecutionEvent_InputValue() +} + +type NodeExecutionEvent_InputUri struct { + InputUri string `protobuf:"bytes,5,opt,name=input_uri,json=inputUri,proto3,oneof"` +} + +type NodeExecutionEvent_InputData struct { + InputData *core.LiteralMap `protobuf:"bytes,20,opt,name=input_data,json=inputData,proto3,oneof"` +} + +func (*NodeExecutionEvent_InputUri) isNodeExecutionEvent_InputValue() {} + +func (*NodeExecutionEvent_InputData) isNodeExecutionEvent_InputValue() {} + +func (m *NodeExecutionEvent) GetInputValue() isNodeExecutionEvent_InputValue { + if m != nil { + return m.InputValue + } + return nil +} + +func (m *NodeExecutionEvent) GetInputUri() string { + if x, ok := m.GetInputValue().(*NodeExecutionEvent_InputUri); ok { + return x.InputUri + } + return "" +} + +func (m *NodeExecutionEvent) GetInputData() *core.LiteralMap { + if x, ok := m.GetInputValue().(*NodeExecutionEvent_InputData); ok { + return x.InputData + } + return nil +} + +type isNodeExecutionEvent_OutputResult interface { + isNodeExecutionEvent_OutputResult() +} + +type NodeExecutionEvent_OutputUri struct { + OutputUri string `protobuf:"bytes,6,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type NodeExecutionEvent_Error struct { + Error *core.ExecutionError `protobuf:"bytes,7,opt,name=error,proto3,oneof"` +} + +type NodeExecutionEvent_OutputData struct { + OutputData *core.LiteralMap `protobuf:"bytes,15,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*NodeExecutionEvent_OutputUri) isNodeExecutionEvent_OutputResult() {} + +func (*NodeExecutionEvent_Error) isNodeExecutionEvent_OutputResult() {} + +func (*NodeExecutionEvent_OutputData) isNodeExecutionEvent_OutputResult() {} + +func (m *NodeExecutionEvent) GetOutputResult() isNodeExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *NodeExecutionEvent) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*NodeExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *NodeExecutionEvent) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*NodeExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +func (m *NodeExecutionEvent) GetOutputData() *core.LiteralMap { + if x, ok := m.GetOutputResult().(*NodeExecutionEvent_OutputData); ok { + return x.OutputData + } + return nil +} + +type isNodeExecutionEvent_TargetMetadata interface { + isNodeExecutionEvent_TargetMetadata() +} + +type NodeExecutionEvent_WorkflowNodeMetadata struct { + WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` +} + +type NodeExecutionEvent_TaskNodeMetadata struct { + TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,14,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` +} + +func (*NodeExecutionEvent_WorkflowNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} + +func (*NodeExecutionEvent_TaskNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} + +func (m *NodeExecutionEvent) GetTargetMetadata() isNodeExecutionEvent_TargetMetadata { + if m != nil { + return m.TargetMetadata + } + return nil +} + +func (m *NodeExecutionEvent) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { + if x, ok := m.GetTargetMetadata().(*NodeExecutionEvent_WorkflowNodeMetadata); ok { + return x.WorkflowNodeMetadata + } + return nil +} + +func (m *NodeExecutionEvent) GetTaskNodeMetadata() *TaskNodeMetadata { + if x, ok := m.GetTargetMetadata().(*NodeExecutionEvent_TaskNodeMetadata); ok { + return x.TaskNodeMetadata + } + return nil +} + +func (m *NodeExecutionEvent) GetParentTaskMetadata() *ParentTaskExecutionMetadata { + if m != nil { + return m.ParentTaskMetadata + } + return nil +} + +func (m *NodeExecutionEvent) GetParentNodeMetadata() *ParentNodeExecutionMetadata { + if m != nil { + return m.ParentNodeMetadata + } + return nil +} + +func (m *NodeExecutionEvent) GetRetryGroup() string { + if m != nil { + return m.RetryGroup + } + return "" +} + +func (m *NodeExecutionEvent) GetSpecNodeId() string { + if m != nil { + return m.SpecNodeId + } + return "" +} + +func (m *NodeExecutionEvent) GetNodeName() string { + if m != nil { + return m.NodeName + } + return "" +} + +func (m *NodeExecutionEvent) GetEventVersion() int32 { + if m != nil { + return m.EventVersion + } + return 0 +} + +func (m *NodeExecutionEvent) GetIsParent() bool { + if m != nil { + return m.IsParent + } + return false +} + +func (m *NodeExecutionEvent) GetIsDynamic() bool { + if m != nil { + return m.IsDynamic + } + return false +} + +func (m *NodeExecutionEvent) GetDeckUri() string { + if m != nil { + return m.DeckUri + } + return "" +} + +func (m *NodeExecutionEvent) GetReportedAt() *timestamp.Timestamp { + if m != nil { + return m.ReportedAt + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NodeExecutionEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NodeExecutionEvent_InputUri)(nil), + (*NodeExecutionEvent_InputData)(nil), + (*NodeExecutionEvent_OutputUri)(nil), + (*NodeExecutionEvent_Error)(nil), + (*NodeExecutionEvent_OutputData)(nil), + (*NodeExecutionEvent_WorkflowNodeMetadata)(nil), + (*NodeExecutionEvent_TaskNodeMetadata)(nil), + } +} + +// For Workflow Nodes we need to send information about the workflow that's launched +type WorkflowNodeMetadata struct { + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowNodeMetadata) Reset() { *m = WorkflowNodeMetadata{} } +func (m *WorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*WorkflowNodeMetadata) ProtoMessage() {} +func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{2} +} + +func (m *WorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowNodeMetadata.Unmarshal(m, b) +} +func (m *WorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowNodeMetadata.Marshal(b, m, deterministic) +} +func (m *WorkflowNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowNodeMetadata.Merge(m, src) +} +func (m *WorkflowNodeMetadata) XXX_Size() int { + return xxx_messageInfo_WorkflowNodeMetadata.Size(m) +} +func (m *WorkflowNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowNodeMetadata proto.InternalMessageInfo + +func (m *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +type TaskNodeMetadata struct { + // Captures the status of caching for this execution. + CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` + // This structure carries the catalog artifact information + CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` + // Captures the status of cache reservations for this execution. + ReservationStatus core.CatalogReservation_Status `protobuf:"varint,3,opt,name=reservation_status,json=reservationStatus,proto3,enum=flyteidl.core.CatalogReservation_Status" json:"reservation_status,omitempty"` + // The latest checkpoint location + CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` + // In the case this task launched a dynamic workflow we capture its structure here. + DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskNodeMetadata) Reset() { *m = TaskNodeMetadata{} } +func (m *TaskNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*TaskNodeMetadata) ProtoMessage() {} +func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{3} +} + +func (m *TaskNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskNodeMetadata.Unmarshal(m, b) +} +func (m *TaskNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskNodeMetadata.Marshal(b, m, deterministic) +} +func (m *TaskNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskNodeMetadata.Merge(m, src) +} +func (m *TaskNodeMetadata) XXX_Size() int { + return xxx_messageInfo_TaskNodeMetadata.Size(m) +} +func (m *TaskNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_TaskNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskNodeMetadata proto.InternalMessageInfo + +func (m *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { + if m != nil { + return m.CacheStatus + } + return core.CatalogCacheStatus_CACHE_DISABLED +} + +func (m *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { + if m != nil { + return m.CatalogKey + } + return nil +} + +func (m *TaskNodeMetadata) GetReservationStatus() core.CatalogReservation_Status { + if m != nil { + return m.ReservationStatus + } + return core.CatalogReservation_RESERVATION_DISABLED +} + +func (m *TaskNodeMetadata) GetCheckpointUri() string { + if m != nil { + return m.CheckpointUri + } + return "" +} + +func (m *TaskNodeMetadata) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { + if m != nil { + return m.DynamicWorkflow + } + return nil +} + +// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. +type DynamicWorkflowNodeMetadata struct { + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the compiled representation of the embedded dynamic workflow. + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + // required to correctly recover partially completed executions where the workflow has already been compiled. + DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DynamicWorkflowNodeMetadata) Reset() { *m = DynamicWorkflowNodeMetadata{} } +func (m *DynamicWorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} +func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{4} +} + +func (m *DynamicWorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DynamicWorkflowNodeMetadata.Unmarshal(m, b) +} +func (m *DynamicWorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DynamicWorkflowNodeMetadata.Marshal(b, m, deterministic) +} +func (m *DynamicWorkflowNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicWorkflowNodeMetadata.Merge(m, src) +} +func (m *DynamicWorkflowNodeMetadata) XXX_Size() int { + return xxx_messageInfo_DynamicWorkflowNodeMetadata.Size(m) +} +func (m *DynamicWorkflowNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicWorkflowNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicWorkflowNodeMetadata proto.InternalMessageInfo + +func (m *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if m != nil { + return m.CompiledWorkflow + } + return nil +} + +func (m *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { + if m != nil { + return m.DynamicJobSpecUri + } + return "" +} + +type ParentTaskExecutionMetadata struct { + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParentTaskExecutionMetadata) Reset() { *m = ParentTaskExecutionMetadata{} } +func (m *ParentTaskExecutionMetadata) String() string { return proto.CompactTextString(m) } +func (*ParentTaskExecutionMetadata) ProtoMessage() {} +func (*ParentTaskExecutionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{5} +} + +func (m *ParentTaskExecutionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParentTaskExecutionMetadata.Unmarshal(m, b) +} +func (m *ParentTaskExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParentTaskExecutionMetadata.Marshal(b, m, deterministic) +} +func (m *ParentTaskExecutionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParentTaskExecutionMetadata.Merge(m, src) +} +func (m *ParentTaskExecutionMetadata) XXX_Size() int { + return xxx_messageInfo_ParentTaskExecutionMetadata.Size(m) +} +func (m *ParentTaskExecutionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ParentTaskExecutionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ParentTaskExecutionMetadata proto.InternalMessageInfo + +func (m *ParentTaskExecutionMetadata) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +type ParentNodeExecutionMetadata struct { + // Unique identifier of the parent node id within the execution + // This is value of core.NodeExecutionIdentifier.node_id of the parent node + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParentNodeExecutionMetadata) Reset() { *m = ParentNodeExecutionMetadata{} } +func (m *ParentNodeExecutionMetadata) String() string { return proto.CompactTextString(m) } +func (*ParentNodeExecutionMetadata) ProtoMessage() {} +func (*ParentNodeExecutionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{6} +} + +func (m *ParentNodeExecutionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParentNodeExecutionMetadata.Unmarshal(m, b) +} +func (m *ParentNodeExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParentNodeExecutionMetadata.Marshal(b, m, deterministic) +} +func (m *ParentNodeExecutionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParentNodeExecutionMetadata.Merge(m, src) +} +func (m *ParentNodeExecutionMetadata) XXX_Size() int { + return xxx_messageInfo_ParentNodeExecutionMetadata.Size(m) +} +func (m *ParentNodeExecutionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ParentNodeExecutionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ParentNodeExecutionMetadata proto.InternalMessageInfo + +func (m *ParentNodeExecutionMetadata) GetNodeId() string { + if m != nil { + return m.NodeId + } + return "" +} + +// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +type TaskExecutionEvent struct { + // ID of the task. In combination with the retryAttempt this will indicate + // the task execution uniquely for a given parent node execution. + TaskId *core.Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // A task execution is always kicked off by a node execution, the event consumer + // will use the parent_id to relate the task to it's parent node execution + ParentNodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=parent_node_execution_id,json=parentNodeExecutionId,proto3" json:"parent_node_execution_id,omitempty"` + // retry attempt number for this task, ie., 2 for the second attempt + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + // Phase associated with the event + Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // id of the process that sent this event, mainly for trace debugging + ProducerId string `protobuf:"bytes,5,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + // log information for the task execution + Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the task. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Types that are valid to be assigned to InputValue: + // *TaskExecutionEvent_InputUri + // *TaskExecutionEvent_InputData + InputValue isTaskExecutionEvent_InputValue `protobuf_oneof:"input_value"` + // Types that are valid to be assigned to OutputResult: + // *TaskExecutionEvent_OutputUri + // *TaskExecutionEvent_Error + // *TaskExecutionEvent_OutputData + OutputResult isTaskExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + CustomInfo *_struct.Struct `protobuf:"bytes,11,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` + // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + // that should be recorded regardless of the lack of phase change. + // The version field should be incremented when metadata changes across the duration of an individual phase. + PhaseVersion uint32 `protobuf:"varint,12,opt,name=phase_version,json=phaseVersion,proto3" json:"phase_version,omitempty"` + // An optional explanation for the phase transition. + Reason string `protobuf:"bytes,13,opt,name=reason,proto3" json:"reason,omitempty"` + // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin + // this type will be identical, but not all task executions necessarily use pre-registered definitions and this + // type is useful to render the task in the UI, filter task executions, etc. + TaskType string `protobuf:"bytes,14,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata around how a task was executed. + Metadata *TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` + // The event version is used to indicate versioned changes in how data is reported using this + // proto message. For example, event_verison > 0 means that maps tasks report logs using the + // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + // in this message. + EventVersion int32 `protobuf:"varint,18,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` + // This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s + // pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, + // but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps + // facilitates a more accurate portrayal of the evaluation time-series. + ReportedAt *timestamp.Timestamp `protobuf:"bytes,20,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionEvent) Reset() { *m = TaskExecutionEvent{} } +func (m *TaskExecutionEvent) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionEvent) ProtoMessage() {} +func (*TaskExecutionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{7} +} + +func (m *TaskExecutionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionEvent.Unmarshal(m, b) +} +func (m *TaskExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionEvent.Marshal(b, m, deterministic) +} +func (m *TaskExecutionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionEvent.Merge(m, src) +} +func (m *TaskExecutionEvent) XXX_Size() int { + return xxx_messageInfo_TaskExecutionEvent.Size(m) +} +func (m *TaskExecutionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionEvent proto.InternalMessageInfo + +func (m *TaskExecutionEvent) GetTaskId() *core.Identifier { + if m != nil { + return m.TaskId + } + return nil +} + +func (m *TaskExecutionEvent) GetParentNodeExecutionId() *core.NodeExecutionIdentifier { + if m != nil { + return m.ParentNodeExecutionId + } + return nil +} + +func (m *TaskExecutionEvent) GetRetryAttempt() uint32 { + if m != nil { + return m.RetryAttempt + } + return 0 +} + +func (m *TaskExecutionEvent) GetPhase() core.TaskExecution_Phase { + if m != nil { + return m.Phase + } + return core.TaskExecution_UNDEFINED +} + +func (m *TaskExecutionEvent) GetProducerId() string { + if m != nil { + return m.ProducerId + } + return "" +} + +func (m *TaskExecutionEvent) GetLogs() []*core.TaskLog { + if m != nil { + return m.Logs + } + return nil +} + +func (m *TaskExecutionEvent) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +type isTaskExecutionEvent_InputValue interface { + isTaskExecutionEvent_InputValue() +} + +type TaskExecutionEvent_InputUri struct { + InputUri string `protobuf:"bytes,8,opt,name=input_uri,json=inputUri,proto3,oneof"` +} + +type TaskExecutionEvent_InputData struct { + InputData *core.LiteralMap `protobuf:"bytes,19,opt,name=input_data,json=inputData,proto3,oneof"` +} + +func (*TaskExecutionEvent_InputUri) isTaskExecutionEvent_InputValue() {} + +func (*TaskExecutionEvent_InputData) isTaskExecutionEvent_InputValue() {} + +func (m *TaskExecutionEvent) GetInputValue() isTaskExecutionEvent_InputValue { + if m != nil { + return m.InputValue + } + return nil +} + +func (m *TaskExecutionEvent) GetInputUri() string { + if x, ok := m.GetInputValue().(*TaskExecutionEvent_InputUri); ok { + return x.InputUri + } + return "" +} + +func (m *TaskExecutionEvent) GetInputData() *core.LiteralMap { + if x, ok := m.GetInputValue().(*TaskExecutionEvent_InputData); ok { + return x.InputData + } + return nil +} + +type isTaskExecutionEvent_OutputResult interface { + isTaskExecutionEvent_OutputResult() +} + +type TaskExecutionEvent_OutputUri struct { + OutputUri string `protobuf:"bytes,9,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type TaskExecutionEvent_Error struct { + Error *core.ExecutionError `protobuf:"bytes,10,opt,name=error,proto3,oneof"` +} + +type TaskExecutionEvent_OutputData struct { + OutputData *core.LiteralMap `protobuf:"bytes,17,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*TaskExecutionEvent_OutputUri) isTaskExecutionEvent_OutputResult() {} + +func (*TaskExecutionEvent_Error) isTaskExecutionEvent_OutputResult() {} + +func (*TaskExecutionEvent_OutputData) isTaskExecutionEvent_OutputResult() {} + +func (m *TaskExecutionEvent) GetOutputResult() isTaskExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *TaskExecutionEvent) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*TaskExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *TaskExecutionEvent) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*TaskExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +func (m *TaskExecutionEvent) GetOutputData() *core.LiteralMap { + if x, ok := m.GetOutputResult().(*TaskExecutionEvent_OutputData); ok { + return x.OutputData + } + return nil +} + +func (m *TaskExecutionEvent) GetCustomInfo() *_struct.Struct { + if m != nil { + return m.CustomInfo + } + return nil +} + +func (m *TaskExecutionEvent) GetPhaseVersion() uint32 { + if m != nil { + return m.PhaseVersion + } + return 0 +} + +func (m *TaskExecutionEvent) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *TaskExecutionEvent) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *TaskExecutionEvent) GetMetadata() *TaskExecutionMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *TaskExecutionEvent) GetEventVersion() int32 { + if m != nil { + return m.EventVersion + } + return 0 +} + +func (m *TaskExecutionEvent) GetReportedAt() *timestamp.Timestamp { + if m != nil { + return m.ReportedAt + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TaskExecutionEvent) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TaskExecutionEvent_InputUri)(nil), + (*TaskExecutionEvent_InputData)(nil), + (*TaskExecutionEvent_OutputUri)(nil), + (*TaskExecutionEvent_Error)(nil), + (*TaskExecutionEvent_OutputData)(nil), + } +} + +// This message contains metadata about external resources produced or used by a specific task execution. +type ExternalResourceInfo struct { + // Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + // A unique index for the external resource with respect to all external resources for this task. Although the + // identifier may change between task reporting events or retries, this will remain the same to enable aggregating + // information from multiple reports. + Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + // Retry attempt number for this external resource, ie., 2 for the second attempt + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + // Phase associated with the external resource + Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // Captures the status of caching for this external resource execution. + CacheStatus core.CatalogCacheStatus `protobuf:"varint,5,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` + // log information for the external resource execution + Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExternalResourceInfo) Reset() { *m = ExternalResourceInfo{} } +func (m *ExternalResourceInfo) String() string { return proto.CompactTextString(m) } +func (*ExternalResourceInfo) ProtoMessage() {} +func (*ExternalResourceInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{8} +} + +func (m *ExternalResourceInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExternalResourceInfo.Unmarshal(m, b) +} +func (m *ExternalResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExternalResourceInfo.Marshal(b, m, deterministic) +} +func (m *ExternalResourceInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExternalResourceInfo.Merge(m, src) +} +func (m *ExternalResourceInfo) XXX_Size() int { + return xxx_messageInfo_ExternalResourceInfo.Size(m) +} +func (m *ExternalResourceInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ExternalResourceInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ExternalResourceInfo proto.InternalMessageInfo + +func (m *ExternalResourceInfo) GetExternalId() string { + if m != nil { + return m.ExternalId + } + return "" +} + +func (m *ExternalResourceInfo) GetIndex() uint32 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *ExternalResourceInfo) GetRetryAttempt() uint32 { + if m != nil { + return m.RetryAttempt + } + return 0 +} + +func (m *ExternalResourceInfo) GetPhase() core.TaskExecution_Phase { + if m != nil { + return m.Phase + } + return core.TaskExecution_UNDEFINED +} + +func (m *ExternalResourceInfo) GetCacheStatus() core.CatalogCacheStatus { + if m != nil { + return m.CacheStatus + } + return core.CatalogCacheStatus_CACHE_DISABLED +} + +func (m *ExternalResourceInfo) GetLogs() []*core.TaskLog { + if m != nil { + return m.Logs + } + return nil +} + +// This message holds task execution metadata specific to resource allocation used to manage concurrent +// executions for a project namespace. +type ResourcePoolInfo struct { + // Unique resource ID used to identify this execution when allocating a token. + AllocationToken string `protobuf:"bytes,1,opt,name=allocation_token,json=allocationToken,proto3" json:"allocation_token,omitempty"` + // Namespace under which this task execution requested an allocation token. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourcePoolInfo) Reset() { *m = ResourcePoolInfo{} } +func (m *ResourcePoolInfo) String() string { return proto.CompactTextString(m) } +func (*ResourcePoolInfo) ProtoMessage() {} +func (*ResourcePoolInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{9} +} + +func (m *ResourcePoolInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourcePoolInfo.Unmarshal(m, b) +} +func (m *ResourcePoolInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourcePoolInfo.Marshal(b, m, deterministic) +} +func (m *ResourcePoolInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourcePoolInfo.Merge(m, src) +} +func (m *ResourcePoolInfo) XXX_Size() int { + return xxx_messageInfo_ResourcePoolInfo.Size(m) +} +func (m *ResourcePoolInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ResourcePoolInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourcePoolInfo proto.InternalMessageInfo + +func (m *ResourcePoolInfo) GetAllocationToken() string { + if m != nil { + return m.AllocationToken + } + return "" +} + +func (m *ResourcePoolInfo) GetNamespace() string { + if m != nil { + return m.Namespace + } + return "" +} + +// Holds metadata around how a task was executed. +// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, +// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. +// Metadata is a container for these attributes across the task execution lifecycle. +type TaskExecutionMetadata struct { + // Unique, generated name for this task execution used by the backend. + GeneratedName string `protobuf:"bytes,1,opt,name=generated_name,json=generatedName,proto3" json:"generated_name,omitempty"` + // Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. + ExternalResources []*ExternalResourceInfo `protobuf:"bytes,2,rep,name=external_resources,json=externalResources,proto3" json:"external_resources,omitempty"` + // Includes additional data on concurrent resource management used during execution.. + // This is a repeated field because a plugin can request multiple resource allocations during execution. + ResourcePoolInfo []*ResourcePoolInfo `protobuf:"bytes,3,rep,name=resource_pool_info,json=resourcePoolInfo,proto3" json:"resource_pool_info,omitempty"` + // The identifier of the plugin used to execute this task. + PluginIdentifier string `protobuf:"bytes,4,opt,name=plugin_identifier,json=pluginIdentifier,proto3" json:"plugin_identifier,omitempty"` + InstanceClass TaskExecutionMetadata_InstanceClass `protobuf:"varint,16,opt,name=instance_class,json=instanceClass,proto3,enum=flyteidl.event.TaskExecutionMetadata_InstanceClass" json:"instance_class,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionMetadata) Reset() { *m = TaskExecutionMetadata{} } +func (m *TaskExecutionMetadata) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionMetadata) ProtoMessage() {} +func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_4b035d24120b1b12, []int{10} +} + +func (m *TaskExecutionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionMetadata.Unmarshal(m, b) +} +func (m *TaskExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionMetadata.Marshal(b, m, deterministic) +} +func (m *TaskExecutionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionMetadata.Merge(m, src) +} +func (m *TaskExecutionMetadata) XXX_Size() int { + return xxx_messageInfo_TaskExecutionMetadata.Size(m) +} +func (m *TaskExecutionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionMetadata proto.InternalMessageInfo + +func (m *TaskExecutionMetadata) GetGeneratedName() string { + if m != nil { + return m.GeneratedName + } + return "" +} + +func (m *TaskExecutionMetadata) GetExternalResources() []*ExternalResourceInfo { + if m != nil { + return m.ExternalResources + } + return nil +} + +func (m *TaskExecutionMetadata) GetResourcePoolInfo() []*ResourcePoolInfo { + if m != nil { + return m.ResourcePoolInfo + } + return nil +} + +func (m *TaskExecutionMetadata) GetPluginIdentifier() string { + if m != nil { + return m.PluginIdentifier + } + return "" +} + +func (m *TaskExecutionMetadata) GetInstanceClass() TaskExecutionMetadata_InstanceClass { + if m != nil { + return m.InstanceClass + } + return TaskExecutionMetadata_DEFAULT +} + +func init() { + proto.RegisterEnum("flyteidl.event.TaskExecutionMetadata_InstanceClass", TaskExecutionMetadata_InstanceClass_name, TaskExecutionMetadata_InstanceClass_value) + proto.RegisterType((*WorkflowExecutionEvent)(nil), "flyteidl.event.WorkflowExecutionEvent") + proto.RegisterType((*NodeExecutionEvent)(nil), "flyteidl.event.NodeExecutionEvent") + proto.RegisterType((*WorkflowNodeMetadata)(nil), "flyteidl.event.WorkflowNodeMetadata") + proto.RegisterType((*TaskNodeMetadata)(nil), "flyteidl.event.TaskNodeMetadata") + proto.RegisterType((*DynamicWorkflowNodeMetadata)(nil), "flyteidl.event.DynamicWorkflowNodeMetadata") + proto.RegisterType((*ParentTaskExecutionMetadata)(nil), "flyteidl.event.ParentTaskExecutionMetadata") + proto.RegisterType((*ParentNodeExecutionMetadata)(nil), "flyteidl.event.ParentNodeExecutionMetadata") + proto.RegisterType((*TaskExecutionEvent)(nil), "flyteidl.event.TaskExecutionEvent") + proto.RegisterType((*ExternalResourceInfo)(nil), "flyteidl.event.ExternalResourceInfo") + proto.RegisterType((*ResourcePoolInfo)(nil), "flyteidl.event.ResourcePoolInfo") + proto.RegisterType((*TaskExecutionMetadata)(nil), "flyteidl.event.TaskExecutionMetadata") +} + +func init() { proto.RegisterFile("flyteidl/event/event.proto", fileDescriptor_4b035d24120b1b12) } + +var fileDescriptor_4b035d24120b1b12 = []byte{ + // 1490 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x7d, 0x6e, 0xdb, 0x36, + 0x14, 0x8f, 0x9d, 0x0f, 0xdb, 0x4f, 0xb1, 0x63, 0xb3, 0x6e, 0xaa, 0x36, 0x4d, 0xe3, 0x79, 0xeb, + 0x90, 0xb6, 0x98, 0x0d, 0xb8, 0x68, 0x57, 0xac, 0x05, 0x86, 0x7c, 0x6d, 0xf1, 0x96, 0x06, 0x81, + 0x92, 0xb4, 0x40, 0xb7, 0x41, 0x60, 0x24, 0xc6, 0xd1, 0x2c, 0x8b, 0x02, 0x45, 0xa5, 0xf5, 0x29, + 0x76, 0x82, 0xed, 0x00, 0x3b, 0xcc, 0x4e, 0xb0, 0x4b, 0xec, 0x06, 0x03, 0x49, 0x49, 0x8e, 0x64, + 0x2d, 0x49, 0x3f, 0xf6, 0x4f, 0x00, 0xfd, 0xde, 0xe3, 0x8f, 0x8f, 0xef, 0x3b, 0x86, 0x3b, 0xa7, + 0xee, 0x98, 0x13, 0xc7, 0x76, 0xbb, 0xe4, 0x9c, 0x78, 0x5c, 0xfd, 0xed, 0xf8, 0x8c, 0x72, 0x8a, + 0x6a, 0xb1, 0xac, 0x23, 0xd1, 0x3b, 0x77, 0x13, 0x5d, 0x8b, 0x32, 0xd2, 0x75, 0x1d, 0x4e, 0x18, + 0x76, 0x03, 0xa5, 0x9d, 0x95, 0x5a, 0x74, 0xe4, 0x3b, 0x2e, 0x61, 0x91, 0x74, 0x35, 0x2d, 0x25, + 0xef, 0x88, 0x15, 0x72, 0x87, 0x7a, 0x91, 0xf8, 0x5e, 0x5a, 0xec, 0xd8, 0xc4, 0xe3, 0xce, 0xa9, + 0x93, 0x1c, 0x5f, 0xc9, 0x90, 0x63, 0x8e, 0x5d, 0x3a, 0x88, 0x84, 0x6b, 0x03, 0x4a, 0x07, 0x2e, + 0xe9, 0xca, 0xaf, 0x93, 0xf0, 0xb4, 0xcb, 0x9d, 0x11, 0x09, 0x38, 0x1e, 0xf9, 0xb1, 0x69, 0x59, + 0x85, 0x80, 0xb3, 0xd0, 0x8a, 0x9e, 0xd9, 0xfe, 0x73, 0x16, 0x96, 0x5f, 0x53, 0x36, 0x3c, 0x75, + 0xe9, 0xdb, 0x9d, 0xd8, 0xae, 0x1d, 0xf1, 0x62, 0xf4, 0x12, 0x16, 0x13, 0x4b, 0x4d, 0xc7, 0xd6, + 0x0b, 0xad, 0xc2, 0xba, 0xd6, 0x7b, 0xd8, 0x49, 0x1c, 0x23, 0xac, 0xe9, 0x4c, 0x1d, 0xee, 0x27, + 0xe6, 0x1b, 0x1a, 0x99, 0x80, 0x68, 0x0d, 0x34, 0x9f, 0x51, 0x3b, 0xb4, 0x08, 0x13, 0x6c, 0xc5, + 0x56, 0x61, 0xbd, 0x62, 0x40, 0x0c, 0xf5, 0x6d, 0xf4, 0x02, 0xe6, 0xfd, 0x33, 0x1c, 0x10, 0x7d, + 0xb6, 0x55, 0x58, 0xaf, 0xf5, 0xbe, 0xbc, 0xea, 0xa2, 0xce, 0x81, 0xd0, 0x36, 0xd4, 0x21, 0xf4, + 0x1c, 0x34, 0x6a, 0x59, 0x21, 0x63, 0xc4, 0x36, 0x31, 0xd7, 0xe7, 0xa4, 0xb1, 0x77, 0x3a, 0xea, + 0xf1, 0x9d, 0xf8, 0xf1, 0x9d, 0xa3, 0xd8, 0x3b, 0x06, 0xc4, 0xea, 0x1b, 0x1c, 0xad, 0x01, 0xd0, + 0x90, 0xfb, 0x21, 0x37, 0x43, 0xe6, 0xe8, 0xf3, 0xc2, 0xb4, 0xdd, 0x19, 0xa3, 0xa2, 0xb0, 0x63, + 0xe6, 0xa0, 0x27, 0x30, 0x4f, 0x18, 0xa3, 0x4c, 0x5f, 0x90, 0xbc, 0xab, 0x19, 0xdb, 0x26, 0x9e, + 0x13, 0x4a, 0xbb, 0x33, 0x86, 0xd2, 0x46, 0x2f, 0x40, 0x8b, 0x78, 0x6d, 0xcc, 0xb1, 0x5e, 0x92, + 0x87, 0x6f, 0x67, 0x0e, 0xef, 0xa9, 0x54, 0x7a, 0x89, 0xfd, 0xdd, 0x19, 0x23, 0xb2, 0x63, 0x1b, + 0x73, 0xbc, 0xb9, 0x04, 0xd5, 0xe8, 0x34, 0x23, 0x41, 0xe8, 0xf2, 0xf6, 0x6f, 0x15, 0x40, 0xfb, + 0xd4, 0x26, 0x99, 0x40, 0x3d, 0x85, 0x62, 0x12, 0x9e, 0xac, 0xd7, 0x52, 0xea, 0x17, 0x42, 0x53, + 0x74, 0xae, 0x11, 0x91, 0x67, 0xe9, 0x88, 0xb4, 0x2f, 0xe3, 0xfe, 0x84, 0xd1, 0x58, 0x85, 0x8a, + 0xe3, 0x65, 0x83, 0x51, 0x96, 0x90, 0x88, 0xc5, 0x37, 0x00, 0x4a, 0x2c, 0x7d, 0xda, 0xbc, 0xda, + 0xa7, 0x8a, 0x4d, 0xb8, 0x34, 0x13, 0xe8, 0x05, 0xc9, 0x5d, 0xc8, 0x0d, 0x74, 0xe9, 0x3a, 0x81, + 0x2e, 0xfc, 0x47, 0xa0, 0x97, 0xae, 0x32, 0xaa, 0x70, 0x31, 0xd0, 0xe8, 0x67, 0x58, 0x7e, 0x1b, + 0x65, 0xb7, 0xe9, 0x51, 0x9b, 0x98, 0x23, 0xc2, 0xb1, 0x24, 0x2a, 0x4b, 0xa2, 0x2f, 0x3a, 0xe9, + 0x66, 0x94, 0xd4, 0x82, 0x88, 0xc0, 0xcb, 0x48, 0x77, 0xb7, 0x68, 0x34, 0xdf, 0xe6, 0xe0, 0xe8, + 0x00, 0x10, 0xc7, 0xc1, 0x30, 0xc3, 0x5c, 0x93, 0xcc, 0xad, 0x2c, 0xf3, 0x11, 0x0e, 0x86, 0x19, + 0xd6, 0x3a, 0xcf, 0x60, 0xe8, 0x17, 0x68, 0xfa, 0x98, 0x11, 0x8f, 0x9b, 0x92, 0x38, 0xe1, 0xac, + 0x48, 0xce, 0x47, 0x59, 0xce, 0x03, 0xa9, 0x2b, 0x98, 0x13, 0xf7, 0xc5, 0x54, 0x06, 0xf2, 0x13, + 0x61, 0x0e, 0x7d, 0xda, 0x64, 0xb8, 0x8c, 0x3e, 0x95, 0x8c, 0x59, 0xfa, 0x94, 0xf5, 0x6b, 0xa0, + 0x31, 0xc2, 0xd9, 0xd8, 0x1c, 0x30, 0x1a, 0xfa, 0xba, 0xa6, 0xd2, 0x5e, 0x42, 0xdf, 0x0b, 0x04, + 0xb5, 0x60, 0x31, 0xf0, 0x89, 0xa5, 0x6e, 0x77, 0x6c, 0x7d, 0x51, 0x69, 0x08, 0x4c, 0x10, 0xf5, + 0x6d, 0xb4, 0x02, 0x15, 0x29, 0xf4, 0xf0, 0x88, 0xe8, 0x55, 0x29, 0x2e, 0x0b, 0x60, 0x1f, 0x8f, + 0x08, 0xfa, 0x1c, 0xaa, 0xd2, 0x30, 0xf3, 0x9c, 0xb0, 0xc0, 0xa1, 0x9e, 0x5e, 0x6f, 0x15, 0xd6, + 0xe7, 0x8d, 0x45, 0x09, 0xbe, 0x52, 0x98, 0x60, 0x70, 0x02, 0x53, 0x59, 0xa7, 0x37, 0x5a, 0x85, + 0xf5, 0xb2, 0x51, 0x76, 0x02, 0xf5, 0x14, 0xb4, 0x0a, 0xe0, 0x04, 0xa6, 0x3d, 0xf6, 0xf0, 0xc8, + 0xb1, 0x74, 0x24, 0xa5, 0x15, 0x27, 0xd8, 0x56, 0x00, 0xba, 0x0d, 0x65, 0x9b, 0x58, 0x43, 0x99, + 0xc2, 0x37, 0xe4, 0xe5, 0x25, 0xf1, 0x2d, 0xd2, 0xf7, 0xb9, 0x78, 0x9b, 0x4f, 0x19, 0x57, 0x75, + 0x77, 0xf3, 0xea, 0xba, 0x8b, 0xd5, 0x37, 0xf8, 0x66, 0x15, 0x34, 0x55, 0x58, 0xe7, 0xd8, 0x0d, + 0xc9, 0x54, 0xfb, 0xd9, 0x6c, 0xc0, 0x12, 0xc7, 0x6c, 0x40, 0x78, 0x12, 0x92, 0x36, 0x81, 0x66, + 0x5e, 0x2e, 0x7e, 0xe2, 0xd9, 0xd1, 0xfe, 0xa7, 0x08, 0xf5, 0x6c, 0x66, 0xa2, 0x6d, 0x58, 0xb4, + 0xb0, 0x75, 0x46, 0xcc, 0x80, 0x63, 0x1e, 0x06, 0xf2, 0x8e, 0x5a, 0xef, 0xb3, 0xcc, 0x1d, 0x5b, + 0x6a, 0x5a, 0x6e, 0x09, 0xcd, 0x43, 0xa9, 0x68, 0x68, 0xd6, 0xe4, 0x03, 0x7d, 0x0b, 0x5a, 0x34, + 0x50, 0xcd, 0x21, 0x19, 0xcb, 0x26, 0xa8, 0xf5, 0xee, 0xe5, 0x93, 0x24, 0x69, 0x05, 0xd1, 0x91, + 0x1f, 0xc9, 0x18, 0xbd, 0x06, 0xc4, 0x48, 0x40, 0xd8, 0x39, 0x96, 0x8f, 0x8d, 0x8c, 0x51, 0x1d, + 0x73, 0x3d, 0x9f, 0xc7, 0x98, 0xe8, 0x77, 0x22, 0x9b, 0x1a, 0x17, 0x38, 0x22, 0xcb, 0xee, 0x43, + 0xcd, 0x3a, 0x23, 0xd6, 0xd0, 0xa7, 0x8e, 0xa7, 0xfa, 0xd5, 0x9c, 0x0c, 0x76, 0x75, 0x82, 0x8a, + 0x90, 0xbf, 0x82, 0x7a, 0x94, 0x29, 0x66, 0x5c, 0xfe, 0x32, 0xe3, 0x72, 0x2a, 0x25, 0x4a, 0xa0, + 0xbc, 0x88, 0x19, 0x4b, 0x76, 0x5a, 0xd8, 0xfe, 0xab, 0x00, 0x2b, 0x97, 0x1c, 0x40, 0x0f, 0x2e, + 0x4c, 0x9d, 0x6c, 0xa7, 0xcb, 0x0c, 0x9a, 0x43, 0x68, 0x44, 0x1b, 0x91, 0x3d, 0xb1, 0xb1, 0x98, + 0x3b, 0xaf, 0xb6, 0x22, 0xbd, 0xf8, 0xca, 0x2d, 0x97, 0x06, 0x21, 0x23, 0x46, 0xdd, 0xca, 0x08, + 0x50, 0x17, 0x9a, 0xf1, 0xbb, 0x7f, 0xa5, 0x27, 0xa6, 0xac, 0x58, 0xe1, 0xa4, 0x59, 0xe9, 0xa4, + 0x46, 0x24, 0xfb, 0x81, 0x9e, 0x1c, 0xfa, 0xc4, 0x3a, 0x66, 0x4e, 0xfb, 0x18, 0x56, 0x2e, 0xe9, + 0x44, 0x97, 0x4e, 0xd1, 0xd4, 0x89, 0xf4, 0xe3, 0xda, 0x4f, 0x63, 0xda, 0xdc, 0x0e, 0x84, 0x6e, + 0x41, 0x29, 0xee, 0x23, 0x05, 0x69, 0xd9, 0x82, 0x27, 0x7b, 0x48, 0xfb, 0xef, 0x12, 0xa0, 0x14, + 0xaf, 0x1a, 0xe6, 0x3d, 0x28, 0xc9, 0xa6, 0x7a, 0x1d, 0xdf, 0x2e, 0x08, 0xcd, 0xbe, 0x8d, 0x4c, + 0xd0, 0x2f, 0x36, 0xcc, 0x54, 0xe5, 0x15, 0xdf, 0x6b, 0x2d, 0xb8, 0xe9, 0x4f, 0x3f, 0xa5, 0x6f, + 0x8b, 0x96, 0xa6, 0x5a, 0x26, 0xe6, 0x9c, 0x8c, 0x7c, 0x2e, 0x9d, 0x5c, 0x35, 0x16, 0x25, 0xb8, + 0xa1, 0xb0, 0xc9, 0xb6, 0x30, 0x97, 0xbb, 0x2d, 0xa4, 0xde, 0x9a, 0xde, 0x16, 0x32, 0x8b, 0xc8, + 0xfc, 0xd4, 0x22, 0xf2, 0x10, 0xe6, 0x5c, 0x3a, 0x08, 0xf4, 0x85, 0xd6, 0xec, 0xba, 0xd6, 0x5b, + 0xce, 0x61, 0xde, 0xa3, 0x03, 0x43, 0xea, 0x64, 0x57, 0x8f, 0xd2, 0x87, 0xaf, 0x1e, 0xe5, 0x2b, + 0x56, 0x8f, 0x1b, 0x1f, 0xb1, 0x7a, 0x54, 0x2e, 0x59, 0x3d, 0xe0, 0x63, 0x56, 0x8f, 0xc6, 0xfb, + 0xad, 0x1e, 0xcf, 0x40, 0xb3, 0xc2, 0x80, 0xd3, 0x91, 0xe9, 0x78, 0xa7, 0x54, 0x0e, 0x43, 0xad, + 0x77, 0x6b, 0xca, 0x5b, 0x87, 0xf2, 0x7f, 0x06, 0x03, 0x94, 0x6e, 0xdf, 0x3b, 0xa5, 0x22, 0x27, + 0x64, 0xf4, 0x92, 0x31, 0xb7, 0xa8, 0x72, 0x42, 0x82, 0xf1, 0x98, 0x5b, 0x86, 0x05, 0x46, 0x70, + 0x40, 0xbd, 0x68, 0x4a, 0x46, 0x5f, 0x62, 0xfc, 0xc9, 0x2c, 0xe7, 0x63, 0x9f, 0xc8, 0x55, 0xa4, + 0x62, 0x94, 0x05, 0x70, 0x34, 0xf6, 0x09, 0xda, 0x80, 0x72, 0x32, 0xf3, 0x55, 0x27, 0xbb, 0x9f, + 0xb7, 0xa6, 0x4c, 0x4f, 0xfb, 0xe4, 0xd8, 0xf4, 0x0c, 0x46, 0x39, 0x33, 0x38, 0x33, 0x2c, 0x9b, + 0x9f, 0x72, 0x58, 0xb6, 0xff, 0x28, 0x42, 0x73, 0xe7, 0x1d, 0x27, 0xcc, 0xc3, 0xae, 0x41, 0x02, + 0x1a, 0x32, 0x8b, 0x48, 0xbf, 0xad, 0x81, 0x46, 0x22, 0x7c, 0xd2, 0x14, 0x20, 0x86, 0xfa, 0x36, + 0x6a, 0xc2, 0xbc, 0xe3, 0xd9, 0xe4, 0x9d, 0x2c, 0xdd, 0xaa, 0xa1, 0x3e, 0xfe, 0xef, 0x12, 0xcc, + 0x0e, 0xd3, 0xf9, 0x0f, 0x1a, 0xa6, 0xef, 0x51, 0xa7, 0xed, 0x9f, 0xa0, 0x1e, 0xfb, 0xe5, 0x80, + 0x52, 0x57, 0xfa, 0xe6, 0x01, 0xd4, 0xb1, 0xeb, 0x52, 0x4b, 0x8d, 0x52, 0x4e, 0x87, 0xc4, 0x8b, + 0x1c, 0xb4, 0x34, 0xc1, 0x8f, 0x04, 0x8c, 0xee, 0x42, 0x45, 0x6c, 0x5f, 0x81, 0x8f, 0x2d, 0x12, + 0xfd, 0xeb, 0x32, 0x01, 0xda, 0xbf, 0xcf, 0xc2, 0xcd, 0xfc, 0x36, 0x7f, 0x1f, 0x6a, 0x03, 0xe2, + 0x11, 0x86, 0x45, 0xd4, 0xe5, 0xfe, 0xa6, 0x2e, 0xa8, 0x26, 0xa8, 0x5c, 0xe2, 0x0e, 0x01, 0x25, + 0x51, 0x62, 0x91, 0x99, 0x81, 0x5e, 0x94, 0xef, 0x9a, 0x5a, 0xc7, 0xf3, 0xe2, 0x6c, 0x34, 0x48, + 0x06, 0x0d, 0xd0, 0xbe, 0x5c, 0x15, 0xe4, 0x87, 0xe9, 0x53, 0xea, 0xaa, 0x9a, 0x9b, 0x95, 0xa4, + 0x53, 0x9b, 0x78, 0xd6, 0x39, 0x46, 0x9d, 0x65, 0xdd, 0xf5, 0x08, 0x1a, 0xbe, 0x1b, 0x0e, 0x1c, + 0xd1, 0xe8, 0xe3, 0x16, 0x1e, 0x2d, 0x09, 0x75, 0x25, 0x98, 0xb4, 0x76, 0xf4, 0x06, 0x6a, 0x8e, + 0x17, 0x70, 0xec, 0x59, 0xc4, 0xb4, 0x5c, 0x1c, 0x04, 0xb2, 0xb6, 0x6a, 0xbd, 0xc7, 0xd7, 0xaa, + 0xad, 0x4e, 0x3f, 0x3a, 0xbb, 0x25, 0x8e, 0x1a, 0x55, 0xe7, 0xe2, 0x67, 0xbb, 0x0b, 0xd5, 0x94, + 0x1c, 0x69, 0x50, 0xda, 0xde, 0xf9, 0x6e, 0xe3, 0x78, 0xef, 0xa8, 0x3e, 0x83, 0x1a, 0x50, 0xed, + 0xef, 0x1f, 0xed, 0x18, 0xc6, 0xf1, 0xc1, 0x51, 0x7f, 0x73, 0x6f, 0xa7, 0x5e, 0xd8, 0xfc, 0xfa, + 0xcd, 0x93, 0x81, 0xc3, 0xcf, 0xc2, 0x93, 0x8e, 0x45, 0x47, 0x5d, 0x69, 0x00, 0x65, 0x83, 0x6e, + 0xf2, 0x43, 0xc7, 0x80, 0x78, 0x5d, 0xff, 0xe4, 0xab, 0x01, 0xed, 0xa6, 0x7f, 0xa2, 0x39, 0x59, + 0x90, 0x65, 0xf9, 0xf8, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x21, 0x33, 0xa4, 0xbb, 0x11, + 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/event/event.pb.validate.go new file mode 100644 index 0000000000..c1ffac1465 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/event.pb.validate.go @@ -0,0 +1,1264 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/event/event.proto + +package event + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +// 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{} + + _ = core.WorkflowExecution_Phase(0) + + _ = core.NodeExecution_Phase(0) + + _ = core.CatalogCacheStatus(0) + + _ = core.CatalogReservation_Status(0) + + _ = core.TaskExecution_Phase(0) + + _ = core.TaskExecution_Phase(0) + + _ = core.CatalogCacheStatus(0) +) + +// define the regex for a UUID once up-front +var _event_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 WorkflowExecutionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ProducerId + + // no validation rules for Phase + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.OutputResult.(type) { + + case *WorkflowExecutionEvent_OutputUri: + // no validation rules for OutputUri + + case *WorkflowExecutionEvent_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *WorkflowExecutionEvent_OutputData: + + if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventValidationError{ + field: "OutputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WorkflowExecutionEventValidationError is the validation error returned by +// WorkflowExecutionEvent.Validate if the designated constraints aren't met. +type WorkflowExecutionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionEventValidationError) ErrorName() string { + return "WorkflowExecutionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionEventValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionEventValidationError{} + +// Validate checks the field values on NodeExecutionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ProducerId + + // no validation rules for Phase + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentTaskMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "ParentTaskMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentNodeMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "ParentNodeMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RetryGroup + + // no validation rules for SpecNodeId + + // no validation rules for NodeName + + // no validation rules for EventVersion + + // no validation rules for IsParent + + // no validation rules for IsDynamic + + // no validation rules for DeckUri + + if v, ok := interface{}(m.GetReportedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "ReportedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.InputValue.(type) { + + case *NodeExecutionEvent_InputUri: + // no validation rules for InputUri + + case *NodeExecutionEvent_InputData: + + if v, ok := interface{}(m.GetInputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "InputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.OutputResult.(type) { + + case *NodeExecutionEvent_OutputUri: + // no validation rules for OutputUri + + case *NodeExecutionEvent_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *NodeExecutionEvent_OutputData: + + if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "OutputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.TargetMetadata.(type) { + + case *NodeExecutionEvent_WorkflowNodeMetadata: + + if v, ok := interface{}(m.GetWorkflowNodeMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "WorkflowNodeMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *NodeExecutionEvent_TaskNodeMetadata: + + if v, ok := interface{}(m.GetTaskNodeMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "TaskNodeMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NodeExecutionEventValidationError is the validation error returned by +// NodeExecutionEvent.Validate if the designated constraints aren't met. +type NodeExecutionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionEventValidationError) ErrorName() string { + return "NodeExecutionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionEventValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionEventValidationError{} + +// Validate checks the field values on WorkflowNodeMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowNodeMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeMetadataValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowNodeMetadataValidationError is the validation error returned by +// WorkflowNodeMetadata.Validate if the designated constraints aren't met. +type WorkflowNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowNodeMetadataValidationError) ErrorName() string { + return "WorkflowNodeMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowNodeMetadataValidationError{} + +// Validate checks the field values on TaskNodeMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskNodeMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for CacheStatus + + if v, ok := interface{}(m.GetCatalogKey()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskNodeMetadataValidationError{ + field: "CatalogKey", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ReservationStatus + + // no validation rules for CheckpointUri + + if v, ok := interface{}(m.GetDynamicWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskNodeMetadataValidationError{ + field: "DynamicWorkflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskNodeMetadataValidationError is the validation error returned by +// TaskNodeMetadata.Validate if the designated constraints aren't met. +type TaskNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskNodeMetadataValidationError) ErrorName() string { return "TaskNodeMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e TaskNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskNodeMetadataValidationError{} + +// Validate checks the field values on DynamicWorkflowNodeMetadata with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DynamicWorkflowNodeMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicWorkflowNodeMetadataValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCompiledWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicWorkflowNodeMetadataValidationError{ + field: "CompiledWorkflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DynamicJobSpecUri + + return nil +} + +// DynamicWorkflowNodeMetadataValidationError is the validation error returned +// by DynamicWorkflowNodeMetadata.Validate if the designated constraints +// aren't met. +type DynamicWorkflowNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DynamicWorkflowNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DynamicWorkflowNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DynamicWorkflowNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DynamicWorkflowNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DynamicWorkflowNodeMetadataValidationError) ErrorName() string { + return "DynamicWorkflowNodeMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e DynamicWorkflowNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDynamicWorkflowNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DynamicWorkflowNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DynamicWorkflowNodeMetadataValidationError{} + +// Validate checks the field values on ParentTaskExecutionMetadata with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ParentTaskExecutionMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParentTaskExecutionMetadataValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ParentTaskExecutionMetadataValidationError is the validation error returned +// by ParentTaskExecutionMetadata.Validate if the designated constraints +// aren't met. +type ParentTaskExecutionMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParentTaskExecutionMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParentTaskExecutionMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParentTaskExecutionMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParentTaskExecutionMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParentTaskExecutionMetadataValidationError) ErrorName() string { + return "ParentTaskExecutionMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e ParentTaskExecutionMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParentTaskExecutionMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParentTaskExecutionMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParentTaskExecutionMetadataValidationError{} + +// Validate checks the field values on ParentNodeExecutionMetadata with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ParentNodeExecutionMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NodeId + + return nil +} + +// ParentNodeExecutionMetadataValidationError is the validation error returned +// by ParentNodeExecutionMetadata.Validate if the designated constraints +// aren't met. +type ParentNodeExecutionMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParentNodeExecutionMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParentNodeExecutionMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParentNodeExecutionMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParentNodeExecutionMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParentNodeExecutionMetadataValidationError) ErrorName() string { + return "ParentNodeExecutionMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e ParentNodeExecutionMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParentNodeExecutionMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParentNodeExecutionMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParentNodeExecutionMetadataValidationError{} + +// Validate checks the field values on TaskExecutionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTaskId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "TaskId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentNodeExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "ParentNodeExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RetryAttempt + + // no validation rules for Phase + + // no validation rules for ProducerId + + for idx, item := range m.GetLogs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: fmt.Sprintf("Logs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCustomInfo()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "CustomInfo", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for PhaseVersion + + // no validation rules for Reason + + // no validation rules for TaskType + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for EventVersion + + if v, ok := interface{}(m.GetReportedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "ReportedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.InputValue.(type) { + + case *TaskExecutionEvent_InputUri: + // no validation rules for InputUri + + case *TaskExecutionEvent_InputData: + + if v, ok := interface{}(m.GetInputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "InputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.OutputResult.(type) { + + case *TaskExecutionEvent_OutputUri: + // no validation rules for OutputUri + + case *TaskExecutionEvent_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *TaskExecutionEvent_OutputData: + + if v, ok := interface{}(m.GetOutputData()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "OutputData", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskExecutionEventValidationError is the validation error returned by +// TaskExecutionEvent.Validate if the designated constraints aren't met. +type TaskExecutionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionEventValidationError) ErrorName() string { + return "TaskExecutionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionEventValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionEventValidationError{} + +// Validate checks the field values on ExternalResourceInfo with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExternalResourceInfo) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ExternalId + + // no validation rules for Index + + // no validation rules for RetryAttempt + + // no validation rules for Phase + + // no validation rules for CacheStatus + + for idx, item := range m.GetLogs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExternalResourceInfoValidationError{ + field: fmt.Sprintf("Logs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ExternalResourceInfoValidationError is the validation error returned by +// ExternalResourceInfo.Validate if the designated constraints aren't met. +type ExternalResourceInfoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExternalResourceInfoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExternalResourceInfoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExternalResourceInfoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExternalResourceInfoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExternalResourceInfoValidationError) ErrorName() string { + return "ExternalResourceInfoValidationError" +} + +// Error satisfies the builtin error interface +func (e ExternalResourceInfoValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExternalResourceInfo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExternalResourceInfoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExternalResourceInfoValidationError{} + +// Validate checks the field values on ResourcePoolInfo with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ResourcePoolInfo) Validate() error { + if m == nil { + return nil + } + + // no validation rules for AllocationToken + + // no validation rules for Namespace + + return nil +} + +// ResourcePoolInfoValidationError is the validation error returned by +// ResourcePoolInfo.Validate if the designated constraints aren't met. +type ResourcePoolInfoValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourcePoolInfoValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourcePoolInfoValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourcePoolInfoValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourcePoolInfoValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourcePoolInfoValidationError) ErrorName() string { return "ResourcePoolInfoValidationError" } + +// Error satisfies the builtin error interface +func (e ResourcePoolInfoValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourcePoolInfo.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourcePoolInfoValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourcePoolInfoValidationError{} + +// Validate checks the field values on TaskExecutionMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for GeneratedName + + for idx, item := range m.GetExternalResources() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionMetadataValidationError{ + field: fmt.Sprintf("ExternalResources[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetResourcePoolInfo() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionMetadataValidationError{ + field: fmt.Sprintf("ResourcePoolInfo[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for PluginIdentifier + + // no validation rules for InstanceClass + + return nil +} + +// TaskExecutionMetadataValidationError is the validation error returned by +// TaskExecutionMetadata.Validate if the designated constraints aren't met. +type TaskExecutionMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionMetadataValidationError) ErrorName() string { + return "TaskExecutionMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionMetadataValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json b/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json new file mode 100644 index 0000000000..0f9d66da37 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/event/event.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go new file mode 100644 index 0000000000..11fbcb54f3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go @@ -0,0 +1,149 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/array_job.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +// will be executed concurrently. +type ArrayJob struct { + // Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an + // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + // running instances might be more. This has to be a positive number if assigned. Default value is size. + Parallelism int64 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"` + // Defines the number of instances to launch at most. This number should match the size of the input if the job + // requires processing of all input data. This has to be a positive number. + // In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // Types that are valid to be assigned to SuccessCriteria: + // *ArrayJob_MinSuccesses + // *ArrayJob_MinSuccessRatio + SuccessCriteria isArrayJob_SuccessCriteria `protobuf_oneof:"success_criteria"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArrayJob) Reset() { *m = ArrayJob{} } +func (m *ArrayJob) String() string { return proto.CompactTextString(m) } +func (*ArrayJob) ProtoMessage() {} +func (*ArrayJob) Descriptor() ([]byte, []int) { + return fileDescriptor_794211c91ec6cd2b, []int{0} +} + +func (m *ArrayJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArrayJob.Unmarshal(m, b) +} +func (m *ArrayJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArrayJob.Marshal(b, m, deterministic) +} +func (m *ArrayJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArrayJob.Merge(m, src) +} +func (m *ArrayJob) XXX_Size() int { + return xxx_messageInfo_ArrayJob.Size(m) +} +func (m *ArrayJob) XXX_DiscardUnknown() { + xxx_messageInfo_ArrayJob.DiscardUnknown(m) +} + +var xxx_messageInfo_ArrayJob proto.InternalMessageInfo + +func (m *ArrayJob) GetParallelism() int64 { + if m != nil { + return m.Parallelism + } + return 0 +} + +func (m *ArrayJob) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +type isArrayJob_SuccessCriteria interface { + isArrayJob_SuccessCriteria() +} + +type ArrayJob_MinSuccesses struct { + MinSuccesses int64 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` +} + +type ArrayJob_MinSuccessRatio struct { + MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` +} + +func (*ArrayJob_MinSuccesses) isArrayJob_SuccessCriteria() {} + +func (*ArrayJob_MinSuccessRatio) isArrayJob_SuccessCriteria() {} + +func (m *ArrayJob) GetSuccessCriteria() isArrayJob_SuccessCriteria { + if m != nil { + return m.SuccessCriteria + } + return nil +} + +func (m *ArrayJob) GetMinSuccesses() int64 { + if x, ok := m.GetSuccessCriteria().(*ArrayJob_MinSuccesses); ok { + return x.MinSuccesses + } + return 0 +} + +func (m *ArrayJob) GetMinSuccessRatio() float32 { + if x, ok := m.GetSuccessCriteria().(*ArrayJob_MinSuccessRatio); ok { + return x.MinSuccessRatio + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ArrayJob) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ArrayJob_MinSuccesses)(nil), + (*ArrayJob_MinSuccessRatio)(nil), + } +} + +func init() { + proto.RegisterType((*ArrayJob)(nil), "flyteidl.plugins.ArrayJob") +} + +func init() { proto.RegisterFile("flyteidl/plugins/array_job.proto", fileDescriptor_794211c91ec6cd2b) } + +var fileDescriptor_794211c91ec6cd2b = []byte{ + // 223 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0xd0, 0x31, 0x4f, 0xc3, 0x30, + 0x10, 0x05, 0xe0, 0xa6, 0xad, 0x10, 0x32, 0x20, 0x8a, 0xa7, 0x8c, 0x11, 0x12, 0x52, 0x07, 0x88, + 0x07, 0x06, 0xc4, 0x48, 0xa7, 0x8a, 0x31, 0x6c, 0x2c, 0x91, 0x6d, 0x8c, 0x39, 0x64, 0xfb, 0xac, + 0xb3, 0x33, 0x94, 0x7f, 0xc4, 0xbf, 0x44, 0xb1, 0x08, 0x44, 0xdd, 0x4e, 0xef, 0x7d, 0xcb, 0x3b, + 0xd6, 0xbc, 0xbb, 0x43, 0x36, 0xf0, 0xe6, 0x44, 0x74, 0x83, 0x85, 0x90, 0x84, 0x24, 0x92, 0x87, + 0xfe, 0x13, 0x55, 0x1b, 0x09, 0x33, 0xf2, 0xcd, 0x24, 0xda, 0x5f, 0x71, 0xfd, 0x5d, 0xb1, 0xd3, + 0xa7, 0x51, 0x3d, 0xa3, 0xe2, 0x0d, 0x3b, 0x8b, 0x92, 0xa4, 0x73, 0xc6, 0x41, 0xf2, 0x75, 0xd5, + 0x54, 0xdb, 0x55, 0x37, 0x8f, 0x38, 0x67, 0xeb, 0x04, 0x5f, 0xa6, 0x5e, 0x96, 0xaa, 0xdc, 0xfc, + 0x86, 0x5d, 0x78, 0x08, 0x7d, 0x1a, 0xb4, 0x36, 0x29, 0x99, 0x54, 0xaf, 0xc6, 0x72, 0xbf, 0xe8, + 0xce, 0x3d, 0x84, 0x97, 0x29, 0xe5, 0xb7, 0xec, 0x6a, 0xc6, 0x7a, 0x92, 0x19, 0xb0, 0x5e, 0x37, + 0xd5, 0x76, 0xb9, 0x5f, 0x74, 0x97, 0xff, 0xb4, 0x1b, 0x8b, 0x1d, 0x67, 0x9b, 0x49, 0x6a, 0x82, + 0x6c, 0x08, 0xe4, 0xee, 0xf1, 0xf5, 0xc1, 0x42, 0xfe, 0x18, 0x54, 0xab, 0xd1, 0x8b, 0x32, 0x05, + 0xc9, 0x8a, 0xbf, 0xd5, 0xd6, 0x04, 0x11, 0xd5, 0x9d, 0x45, 0x71, 0xfc, 0x08, 0x75, 0x52, 0xf6, + 0xdf, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x26, 0xec, 0x61, 0x11, 0x23, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.validate.go new file mode 100644 index 0000000000..322ffd7140 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.validate.go @@ -0,0 +1,115 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/array_job.proto + +package plugins + +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 _array_job_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 ArrayJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ArrayJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Parallelism + + // no validation rules for Size + + switch m.SuccessCriteria.(type) { + + case *ArrayJob_MinSuccesses: + // no validation rules for MinSuccesses + + case *ArrayJob_MinSuccessRatio: + // no validation rules for MinSuccessRatio + + } + + return nil +} + +// ArrayJobValidationError is the validation error returned by +// ArrayJob.Validate if the designated constraints aren't met. +type ArrayJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArrayJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArrayJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArrayJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArrayJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArrayJobValidationError) ErrorName() string { return "ArrayJobValidationError" } + +// Error satisfies the builtin error interface +func (e ArrayJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArrayJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArrayJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArrayJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go new file mode 100644 index 0000000000..427630790a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go @@ -0,0 +1,214 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/dask.proto + +package plugins + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// Custom Proto for Dask Plugin. +type DaskJob struct { + // Spec for the scheduler pod. + Scheduler *DaskScheduler `protobuf:"bytes,1,opt,name=scheduler,proto3" json:"scheduler,omitempty"` + // Spec of the default worker group. + Workers *DaskWorkerGroup `protobuf:"bytes,2,opt,name=workers,proto3" json:"workers,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DaskJob) Reset() { *m = DaskJob{} } +func (m *DaskJob) String() string { return proto.CompactTextString(m) } +func (*DaskJob) ProtoMessage() {} +func (*DaskJob) Descriptor() ([]byte, []int) { + return fileDescriptor_d719e18eb4f4b89f, []int{0} +} + +func (m *DaskJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DaskJob.Unmarshal(m, b) +} +func (m *DaskJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DaskJob.Marshal(b, m, deterministic) +} +func (m *DaskJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_DaskJob.Merge(m, src) +} +func (m *DaskJob) XXX_Size() int { + return xxx_messageInfo_DaskJob.Size(m) +} +func (m *DaskJob) XXX_DiscardUnknown() { + xxx_messageInfo_DaskJob.DiscardUnknown(m) +} + +var xxx_messageInfo_DaskJob proto.InternalMessageInfo + +func (m *DaskJob) GetScheduler() *DaskScheduler { + if m != nil { + return m.Scheduler + } + return nil +} + +func (m *DaskJob) GetWorkers() *DaskWorkerGroup { + if m != nil { + return m.Workers + } + return nil +} + +// Specification for the scheduler pod. +type DaskScheduler struct { + // Optional image to use. If unset, will use the default image. + Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + // Resources assigned to the scheduler pod. + Resources *core.Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DaskScheduler) Reset() { *m = DaskScheduler{} } +func (m *DaskScheduler) String() string { return proto.CompactTextString(m) } +func (*DaskScheduler) ProtoMessage() {} +func (*DaskScheduler) Descriptor() ([]byte, []int) { + return fileDescriptor_d719e18eb4f4b89f, []int{1} +} + +func (m *DaskScheduler) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DaskScheduler.Unmarshal(m, b) +} +func (m *DaskScheduler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DaskScheduler.Marshal(b, m, deterministic) +} +func (m *DaskScheduler) XXX_Merge(src proto.Message) { + xxx_messageInfo_DaskScheduler.Merge(m, src) +} +func (m *DaskScheduler) XXX_Size() int { + return xxx_messageInfo_DaskScheduler.Size(m) +} +func (m *DaskScheduler) XXX_DiscardUnknown() { + xxx_messageInfo_DaskScheduler.DiscardUnknown(m) +} + +var xxx_messageInfo_DaskScheduler proto.InternalMessageInfo + +func (m *DaskScheduler) GetImage() string { + if m != nil { + return m.Image + } + return "" +} + +func (m *DaskScheduler) GetResources() *core.Resources { + if m != nil { + return m.Resources + } + return nil +} + +type DaskWorkerGroup struct { + // Number of workers in the group. + NumberOfWorkers uint32 `protobuf:"varint,1,opt,name=number_of_workers,json=numberOfWorkers,proto3" json:"number_of_workers,omitempty"` + // Optional image to use for the pods of the worker group. If unset, will use the default image. + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources assigned to the all pods of the worker group. + // As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices + // it is advised to only set limits. If requests are not explicitly set, the plugin will make + // sure to set requests==limits. + // The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DaskWorkerGroup) Reset() { *m = DaskWorkerGroup{} } +func (m *DaskWorkerGroup) String() string { return proto.CompactTextString(m) } +func (*DaskWorkerGroup) ProtoMessage() {} +func (*DaskWorkerGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_d719e18eb4f4b89f, []int{2} +} + +func (m *DaskWorkerGroup) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DaskWorkerGroup.Unmarshal(m, b) +} +func (m *DaskWorkerGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DaskWorkerGroup.Marshal(b, m, deterministic) +} +func (m *DaskWorkerGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_DaskWorkerGroup.Merge(m, src) +} +func (m *DaskWorkerGroup) XXX_Size() int { + return xxx_messageInfo_DaskWorkerGroup.Size(m) +} +func (m *DaskWorkerGroup) XXX_DiscardUnknown() { + xxx_messageInfo_DaskWorkerGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_DaskWorkerGroup proto.InternalMessageInfo + +func (m *DaskWorkerGroup) GetNumberOfWorkers() uint32 { + if m != nil { + return m.NumberOfWorkers + } + return 0 +} + +func (m *DaskWorkerGroup) GetImage() string { + if m != nil { + return m.Image + } + return "" +} + +func (m *DaskWorkerGroup) GetResources() *core.Resources { + if m != nil { + return m.Resources + } + return nil +} + +func init() { + proto.RegisterType((*DaskJob)(nil), "flyteidl.plugins.DaskJob") + proto.RegisterType((*DaskScheduler)(nil), "flyteidl.plugins.DaskScheduler") + proto.RegisterType((*DaskWorkerGroup)(nil), "flyteidl.plugins.DaskWorkerGroup") +} + +func init() { proto.RegisterFile("flyteidl/plugins/dask.proto", fileDescriptor_d719e18eb4f4b89f) } + +var fileDescriptor_d719e18eb4f4b89f = []byte{ + // 281 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4f, 0x4b, 0xc4, 0x30, + 0x14, 0xc4, 0xe9, 0x8a, 0x2e, 0x8d, 0x2c, 0xab, 0xc1, 0x43, 0xd5, 0x83, 0xda, 0x93, 0x08, 0x26, + 0xa0, 0xa0, 0x88, 0x78, 0x11, 0x41, 0xf0, 0x22, 0xc4, 0x83, 0x20, 0xc8, 0xd2, 0x3f, 0x69, 0xb6, + 0xf4, 0xcf, 0x2b, 0x2f, 0x0d, 0xe2, 0x07, 0xf0, 0xe4, 0x97, 0x96, 0xa6, 0x66, 0x8b, 0x45, 0xc1, + 0x63, 0x98, 0xdf, 0xbc, 0x99, 0x30, 0x64, 0x3f, 0x2b, 0xdf, 0x5b, 0x99, 0xa7, 0x25, 0x6f, 0x4a, + 0xa3, 0xf2, 0x5a, 0xf3, 0x34, 0xd2, 0x05, 0x6b, 0x10, 0x5a, 0xa0, 0x5b, 0x4e, 0x64, 0xdf, 0xe2, + 0xde, 0xee, 0x0a, 0x4f, 0x00, 0x25, 0x6f, 0x23, 0x5d, 0xe8, 0x1e, 0x0e, 0x3f, 0x3c, 0x32, 0xbd, + 0x8b, 0x74, 0xf1, 0x00, 0x31, 0xbd, 0x21, 0xbe, 0x4e, 0x96, 0x32, 0x35, 0xa5, 0xc4, 0xc0, 0x3b, + 0xf4, 0x8e, 0x37, 0xcf, 0x0e, 0xd8, 0xf8, 0x18, 0xeb, 0xe8, 0x27, 0x87, 0x89, 0xc1, 0x41, 0xaf, + 0xc9, 0xf4, 0x0d, 0xb0, 0x90, 0xa8, 0x83, 0x89, 0x35, 0x1f, 0xfd, 0x6e, 0x7e, 0xb6, 0xd0, 0x3d, + 0x82, 0x69, 0x84, 0x73, 0x84, 0xaf, 0x64, 0xf6, 0xe3, 0x30, 0xdd, 0x21, 0xeb, 0x79, 0x15, 0x29, + 0x69, 0x8b, 0xf8, 0xa2, 0x7f, 0xd0, 0x0b, 0xe2, 0xa3, 0xd4, 0x60, 0x30, 0x91, 0x2e, 0x25, 0x18, + 0x52, 0xba, 0xdf, 0x31, 0xe1, 0x74, 0x31, 0xa0, 0xe1, 0xa7, 0x47, 0xe6, 0xa3, 0x6c, 0x7a, 0x42, + 0xb6, 0x6b, 0x53, 0xc5, 0x12, 0x17, 0x90, 0x2d, 0x5c, 0xf3, 0x2e, 0x6d, 0x26, 0xe6, 0xbd, 0xf0, + 0x98, 0xf5, 0xbc, 0x1e, 0xda, 0x4c, 0xfe, 0x6c, 0xb3, 0xf6, 0xef, 0x36, 0xb7, 0x57, 0x2f, 0x97, + 0x2a, 0x6f, 0x97, 0x26, 0x66, 0x09, 0x54, 0xdc, 0x1a, 0x00, 0x15, 0x5f, 0xad, 0xa4, 0x64, 0xcd, + 0x9b, 0xf8, 0x54, 0x01, 0x1f, 0xef, 0x1c, 0x6f, 0xd8, 0xd9, 0xce, 0xbf, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x4c, 0xea, 0xa6, 0xac, 0x02, 0x02, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.validate.go new file mode 100644 index 0000000000..74037528b0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.validate.go @@ -0,0 +1,277 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/dask.proto + +package plugins + +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 _dask_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 DaskJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *DaskJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetScheduler()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DaskJobValidationError{ + field: "Scheduler", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetWorkers()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DaskJobValidationError{ + field: "Workers", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DaskJobValidationError is the validation error returned by DaskJob.Validate +// if the designated constraints aren't met. +type DaskJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DaskJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DaskJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DaskJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DaskJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DaskJobValidationError) ErrorName() string { return "DaskJobValidationError" } + +// Error satisfies the builtin error interface +func (e DaskJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDaskJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DaskJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DaskJobValidationError{} + +// Validate checks the field values on DaskScheduler with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *DaskScheduler) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Image + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DaskSchedulerValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DaskSchedulerValidationError is the validation error returned by +// DaskScheduler.Validate if the designated constraints aren't met. +type DaskSchedulerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DaskSchedulerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DaskSchedulerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DaskSchedulerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DaskSchedulerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DaskSchedulerValidationError) ErrorName() string { return "DaskSchedulerValidationError" } + +// Error satisfies the builtin error interface +func (e DaskSchedulerValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDaskScheduler.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DaskSchedulerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DaskSchedulerValidationError{} + +// Validate checks the field values on DaskWorkerGroup with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *DaskWorkerGroup) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NumberOfWorkers + + // no validation rules for Image + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DaskWorkerGroupValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DaskWorkerGroupValidationError is the validation error returned by +// DaskWorkerGroup.Validate if the designated constraints aren't met. +type DaskWorkerGroupValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DaskWorkerGroupValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DaskWorkerGroupValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DaskWorkerGroupValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DaskWorkerGroupValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DaskWorkerGroupValidationError) ErrorName() string { return "DaskWorkerGroupValidationError" } + +// Error satisfies the builtin error interface +func (e DaskWorkerGroupValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDaskWorkerGroup.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DaskWorkerGroupValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DaskWorkerGroupValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go new file mode 100644 index 0000000000..5a9e51d44f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go @@ -0,0 +1,183 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/common.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 RestartPolicy int32 + +const ( + RestartPolicy_RESTART_POLICY_NEVER RestartPolicy = 0 + RestartPolicy_RESTART_POLICY_ON_FAILURE RestartPolicy = 1 + RestartPolicy_RESTART_POLICY_ALWAYS RestartPolicy = 2 +) + +var RestartPolicy_name = map[int32]string{ + 0: "RESTART_POLICY_NEVER", + 1: "RESTART_POLICY_ON_FAILURE", + 2: "RESTART_POLICY_ALWAYS", +} + +var RestartPolicy_value = map[string]int32{ + "RESTART_POLICY_NEVER": 0, + "RESTART_POLICY_ON_FAILURE": 1, + "RESTART_POLICY_ALWAYS": 2, +} + +func (x RestartPolicy) String() string { + return proto.EnumName(RestartPolicy_name, int32(x)) +} + +func (RestartPolicy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f625aa9156a15090, []int{0} +} + +type CleanPodPolicy int32 + +const ( + CleanPodPolicy_CLEANPOD_POLICY_NONE CleanPodPolicy = 0 + CleanPodPolicy_CLEANPOD_POLICY_RUNNING CleanPodPolicy = 1 + CleanPodPolicy_CLEANPOD_POLICY_ALL CleanPodPolicy = 2 +) + +var CleanPodPolicy_name = map[int32]string{ + 0: "CLEANPOD_POLICY_NONE", + 1: "CLEANPOD_POLICY_RUNNING", + 2: "CLEANPOD_POLICY_ALL", +} + +var CleanPodPolicy_value = map[string]int32{ + "CLEANPOD_POLICY_NONE": 0, + "CLEANPOD_POLICY_RUNNING": 1, + "CLEANPOD_POLICY_ALL": 2, +} + +func (x CleanPodPolicy) String() string { + return proto.EnumName(CleanPodPolicy_name, int32(x)) +} + +func (CleanPodPolicy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f625aa9156a15090, []int{1} +} + +type RunPolicy struct { + // Defines the policy to kill pods after the job completes. Default to None. + CleanPodPolicy CleanPodPolicy `protobuf:"varint,1,opt,name=clean_pod_policy,json=cleanPodPolicy,proto3,enum=flyteidl.plugins.kubeflow.CleanPodPolicy" json:"clean_pod_policy,omitempty"` + // TTL to clean up jobs. Default to infinite. + TtlSecondsAfterFinished int32 `protobuf:"varint,2,opt,name=ttl_seconds_after_finished,json=ttlSecondsAfterFinished,proto3" json:"ttl_seconds_after_finished,omitempty"` + // Specifies the duration in seconds relative to the startTime that the job may be active + // before the system tries to terminate it; value must be positive integer. + ActiveDeadlineSeconds int32 `protobuf:"varint,3,opt,name=active_deadline_seconds,json=activeDeadlineSeconds,proto3" json:"active_deadline_seconds,omitempty"` + // Number of retries before marking this job failed. + BackoffLimit int32 `protobuf:"varint,4,opt,name=backoff_limit,json=backoffLimit,proto3" json:"backoff_limit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RunPolicy) Reset() { *m = RunPolicy{} } +func (m *RunPolicy) String() string { return proto.CompactTextString(m) } +func (*RunPolicy) ProtoMessage() {} +func (*RunPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_f625aa9156a15090, []int{0} +} + +func (m *RunPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RunPolicy.Unmarshal(m, b) +} +func (m *RunPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RunPolicy.Marshal(b, m, deterministic) +} +func (m *RunPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RunPolicy.Merge(m, src) +} +func (m *RunPolicy) XXX_Size() int { + return xxx_messageInfo_RunPolicy.Size(m) +} +func (m *RunPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_RunPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_RunPolicy proto.InternalMessageInfo + +func (m *RunPolicy) GetCleanPodPolicy() CleanPodPolicy { + if m != nil { + return m.CleanPodPolicy + } + return CleanPodPolicy_CLEANPOD_POLICY_NONE +} + +func (m *RunPolicy) GetTtlSecondsAfterFinished() int32 { + if m != nil { + return m.TtlSecondsAfterFinished + } + return 0 +} + +func (m *RunPolicy) GetActiveDeadlineSeconds() int32 { + if m != nil { + return m.ActiveDeadlineSeconds + } + return 0 +} + +func (m *RunPolicy) GetBackoffLimit() int32 { + if m != nil { + return m.BackoffLimit + } + return 0 +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.kubeflow.RestartPolicy", RestartPolicy_name, RestartPolicy_value) + proto.RegisterEnum("flyteidl.plugins.kubeflow.CleanPodPolicy", CleanPodPolicy_name, CleanPodPolicy_value) + proto.RegisterType((*RunPolicy)(nil), "flyteidl.plugins.kubeflow.RunPolicy") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/kubeflow/common.proto", fileDescriptor_f625aa9156a15090) +} + +var fileDescriptor_f625aa9156a15090 = []byte{ + // 379 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xdf, 0xab, 0xd3, 0x30, + 0x1c, 0xc5, 0x6f, 0xe7, 0x0f, 0x30, 0x78, 0x47, 0x89, 0x5e, 0xda, 0x29, 0xc2, 0x50, 0x90, 0x39, + 0xb0, 0x05, 0x05, 0x45, 0x7c, 0xaa, 0x5b, 0x27, 0x83, 0xd2, 0x96, 0x74, 0x53, 0xe6, 0x4b, 0x6c, + 0xd3, 0xb4, 0x0b, 0x4b, 0x93, 0xd2, 0xa6, 0xca, 0xfe, 0x75, 0x9f, 0xa4, 0x5d, 0x37, 0x58, 0xe1, + 0x3e, 0xe6, 0x7c, 0xce, 0xf7, 0x7c, 0x43, 0x72, 0xc0, 0xdb, 0x8c, 0x1f, 0x15, 0x65, 0x29, 0xb7, + 0x4b, 0xde, 0xe4, 0x4c, 0xd4, 0xf6, 0xa1, 0x49, 0x68, 0xc6, 0xe5, 0x5f, 0x9b, 0xc8, 0xa2, 0x90, + 0xc2, 0x2a, 0x2b, 0xa9, 0x24, 0x9c, 0x9c, 0x7d, 0x56, 0xef, 0xb3, 0xce, 0xbe, 0xd7, 0xff, 0x34, + 0xf0, 0x04, 0x35, 0x22, 0x94, 0x9c, 0x91, 0x23, 0x8c, 0x80, 0x4e, 0x38, 0x8d, 0x05, 0x2e, 0x65, + 0x8a, 0xcb, 0x4e, 0x33, 0xb5, 0xa9, 0x36, 0x1b, 0x7f, 0x78, 0x67, 0xdd, 0x9b, 0x61, 0x2d, 0xda, + 0x91, 0x50, 0xa6, 0xa7, 0x10, 0x34, 0x26, 0x57, 0x67, 0xf8, 0x15, 0xbc, 0x50, 0x8a, 0xe3, 0x9a, + 0x12, 0x29, 0xd2, 0x1a, 0xc7, 0x99, 0xa2, 0x15, 0xce, 0x98, 0x60, 0xf5, 0x9e, 0xa6, 0xe6, 0x68, + 0xaa, 0xcd, 0x1e, 0x21, 0x43, 0x29, 0x1e, 0x9d, 0x0c, 0x4e, 0xcb, 0x57, 0x3d, 0x86, 0x9f, 0x80, + 0x11, 0x13, 0xc5, 0xfe, 0x50, 0x9c, 0xd2, 0x38, 0xe5, 0x4c, 0xd0, 0x73, 0x90, 0xf9, 0xa0, 0x9b, + 0xbc, 0x3b, 0xe1, 0x65, 0x4f, 0xfb, 0x10, 0xf8, 0x06, 0xdc, 0x26, 0x31, 0x39, 0xc8, 0x2c, 0xc3, + 0x9c, 0x15, 0x4c, 0x99, 0x0f, 0x3b, 0xf7, 0xd3, 0x5e, 0xf4, 0x5a, 0x6d, 0x4e, 0xc0, 0x2d, 0xa2, + 0xb5, 0x8a, 0x2b, 0xd5, 0x5f, 0xd5, 0x04, 0xcf, 0x91, 0x1b, 0x6d, 0x1c, 0xb4, 0xc1, 0x61, 0xe0, + 0xad, 0x17, 0x3b, 0xec, 0xbb, 0x3f, 0x5c, 0xa4, 0xdf, 0xc0, 0x57, 0x60, 0x32, 0x20, 0x81, 0x8f, + 0x57, 0xce, 0xda, 0xdb, 0x22, 0x57, 0xd7, 0xe0, 0x04, 0xdc, 0x0d, 0xb0, 0xe3, 0xfd, 0x74, 0x76, + 0x91, 0x3e, 0x9a, 0xff, 0x06, 0xe3, 0xeb, 0x07, 0x6a, 0xb7, 0x2c, 0x3c, 0xd7, 0xf1, 0xc3, 0x60, + 0x79, 0x59, 0x13, 0xf8, 0xae, 0x7e, 0x03, 0x5f, 0x02, 0x63, 0x48, 0xd0, 0xd6, 0xf7, 0xd7, 0xfe, + 0x77, 0x5d, 0x83, 0x06, 0x78, 0x36, 0x84, 0x8e, 0xe7, 0xe9, 0xa3, 0x6f, 0x5f, 0x7e, 0x7d, 0xce, + 0x99, 0xda, 0x37, 0x89, 0x45, 0x64, 0x61, 0x77, 0xff, 0x24, 0xab, 0xdc, 0xbe, 0x94, 0x23, 0xa7, + 0xc2, 0x2e, 0x93, 0xf7, 0xb9, 0xb4, 0x87, 0x7d, 0x49, 0x1e, 0x77, 0x05, 0xf9, 0xf8, 0x3f, 0x00, + 0x00, 0xff, 0xff, 0x98, 0x4b, 0x46, 0x68, 0x4a, 0x02, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.validate.go new file mode 100644 index 0000000000..0ec2f0e0e6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.validate.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/common.proto + +package plugins + +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 _common_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 RunPolicy with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RunPolicy) Validate() error { + if m == nil { + return nil + } + + // no validation rules for CleanPodPolicy + + // no validation rules for TtlSecondsAfterFinished + + // no validation rules for ActiveDeadlineSeconds + + // no validation rules for BackoffLimit + + return nil +} + +// RunPolicyValidationError is the validation error returned by +// RunPolicy.Validate if the designated constraints aren't met. +type RunPolicyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RunPolicyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RunPolicyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RunPolicyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RunPolicyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RunPolicyValidationError) ErrorName() string { return "RunPolicyValidationError" } + +// Error satisfies the builtin error interface +func (e RunPolicyValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRunPolicy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RunPolicyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RunPolicyValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go new file mode 100644 index 0000000000..40420db3e8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go @@ -0,0 +1,206 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/mpi.proto + +package plugins + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator +type DistributedMPITrainingTask struct { + // Worker replicas spec + WorkerReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` + // Master replicas spec + LauncherReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,2,opt,name=launcher_replicas,json=launcherReplicas,proto3" json:"launcher_replicas,omitempty"` + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` + // Number of slots per worker + Slots int32 `protobuf:"varint,4,opt,name=slots,proto3" json:"slots,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedMPITrainingTask) Reset() { *m = DistributedMPITrainingTask{} } +func (m *DistributedMPITrainingTask) String() string { return proto.CompactTextString(m) } +func (*DistributedMPITrainingTask) ProtoMessage() {} +func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { + return fileDescriptor_298b02c608b0cddf, []int{0} +} + +func (m *DistributedMPITrainingTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedMPITrainingTask.Unmarshal(m, b) +} +func (m *DistributedMPITrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedMPITrainingTask.Marshal(b, m, deterministic) +} +func (m *DistributedMPITrainingTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedMPITrainingTask.Merge(m, src) +} +func (m *DistributedMPITrainingTask) XXX_Size() int { + return xxx_messageInfo_DistributedMPITrainingTask.Size(m) +} +func (m *DistributedMPITrainingTask) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedMPITrainingTask.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedMPITrainingTask proto.InternalMessageInfo + +func (m *DistributedMPITrainingTask) GetWorkerReplicas() *DistributedMPITrainingReplicaSpec { + if m != nil { + return m.WorkerReplicas + } + return nil +} + +func (m *DistributedMPITrainingTask) GetLauncherReplicas() *DistributedMPITrainingReplicaSpec { + if m != nil { + return m.LauncherReplicas + } + return nil +} + +func (m *DistributedMPITrainingTask) GetRunPolicy() *RunPolicy { + if m != nil { + return m.RunPolicy + } + return nil +} + +func (m *DistributedMPITrainingTask) GetSlots() int32 { + if m != nil { + return m.Slots + } + return 0 +} + +// Replica specification for distributed MPI training +type DistributedMPITrainingReplicaSpec struct { + // Number of replicas + Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Image used for the replica group + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources required for the replica group + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // Restart policy determines whether pods will be restarted when they exit + RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` + // MPI sometimes requires different command set for different replica groups + Command []string `protobuf:"bytes,5,rep,name=command,proto3" json:"command,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedMPITrainingReplicaSpec) Reset() { *m = DistributedMPITrainingReplicaSpec{} } +func (m *DistributedMPITrainingReplicaSpec) String() string { return proto.CompactTextString(m) } +func (*DistributedMPITrainingReplicaSpec) ProtoMessage() {} +func (*DistributedMPITrainingReplicaSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_298b02c608b0cddf, []int{1} +} + +func (m *DistributedMPITrainingReplicaSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedMPITrainingReplicaSpec.Unmarshal(m, b) +} +func (m *DistributedMPITrainingReplicaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedMPITrainingReplicaSpec.Marshal(b, m, deterministic) +} +func (m *DistributedMPITrainingReplicaSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedMPITrainingReplicaSpec.Merge(m, src) +} +func (m *DistributedMPITrainingReplicaSpec) XXX_Size() int { + return xxx_messageInfo_DistributedMPITrainingReplicaSpec.Size(m) +} +func (m *DistributedMPITrainingReplicaSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedMPITrainingReplicaSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedMPITrainingReplicaSpec proto.InternalMessageInfo + +func (m *DistributedMPITrainingReplicaSpec) GetReplicas() int32 { + if m != nil { + return m.Replicas + } + return 0 +} + +func (m *DistributedMPITrainingReplicaSpec) GetImage() string { + if m != nil { + return m.Image + } + return "" +} + +func (m *DistributedMPITrainingReplicaSpec) GetResources() *core.Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *DistributedMPITrainingReplicaSpec) GetRestartPolicy() RestartPolicy { + if m != nil { + return m.RestartPolicy + } + return RestartPolicy_RESTART_POLICY_NEVER +} + +func (m *DistributedMPITrainingReplicaSpec) GetCommand() []string { + if m != nil { + return m.Command + } + return nil +} + +func init() { + proto.RegisterType((*DistributedMPITrainingTask)(nil), "flyteidl.plugins.kubeflow.DistributedMPITrainingTask") + proto.RegisterType((*DistributedMPITrainingReplicaSpec)(nil), "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/kubeflow/mpi.proto", fileDescriptor_298b02c608b0cddf) +} + +var fileDescriptor_298b02c608b0cddf = []byte{ + // 373 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0x4d, 0x6b, 0xdb, 0x30, + 0x00, 0xc5, 0xc9, 0xbc, 0xcd, 0x1a, 0xcb, 0x36, 0xb1, 0x83, 0xe7, 0x53, 0x96, 0x8d, 0xe1, 0xcb, + 0x2c, 0xc8, 0x60, 0xa5, 0xd0, 0x53, 0xdb, 0x4b, 0x0f, 0xa5, 0x41, 0xcd, 0xa9, 0x97, 0x20, 0x2b, + 0x8a, 0x23, 0x2c, 0x4b, 0x46, 0x1f, 0x84, 0xfc, 0xc4, 0xfe, 0xa3, 0x1e, 0x8b, 0x3f, 0x93, 0x96, + 0x26, 0xbd, 0xf4, 0xe6, 0x67, 0x3d, 0xbd, 0x0f, 0xfb, 0x81, 0x5f, 0x2b, 0xb1, 0xb5, 0x8c, 0x2f, + 0x05, 0x2a, 0x85, 0xcb, 0xb8, 0x34, 0x28, 0x77, 0x29, 0x5b, 0x09, 0xb5, 0x41, 0x45, 0xc9, 0x93, + 0x52, 0x2b, 0xab, 0xe0, 0x8f, 0x8e, 0x94, 0xb4, 0xa4, 0xa4, 0x23, 0x45, 0xfd, 0x11, 0xa2, 0x4a, + 0x33, 0x64, 0x89, 0xc9, 0x4d, 0x73, 0x2b, 0xfa, 0x73, 0x58, 0x9a, 0xaa, 0xa2, 0x50, 0xb2, 0xe1, + 0x4d, 0xee, 0x07, 0x20, 0xba, 0xe4, 0xc6, 0x6a, 0x9e, 0x3a, 0xcb, 0x96, 0xd7, 0xb3, 0xab, 0xb9, + 0x26, 0x5c, 0x72, 0x99, 0xcd, 0x89, 0xc9, 0x21, 0x03, 0x5f, 0x36, 0x4a, 0xe7, 0x4c, 0x2f, 0x34, + 0x2b, 0x05, 0xa7, 0xc4, 0x84, 0xde, 0xd8, 0x8b, 0x3f, 0x4d, 0xcf, 0x92, 0x83, 0xb1, 0x92, 0x97, + 0xf5, 0x70, 0x23, 0x70, 0x5b, 0x32, 0x8a, 0x47, 0x8d, 0x68, 0xfb, 0xca, 0x40, 0x0e, 0xbe, 0x09, + 0xe2, 0x24, 0x5d, 0xef, 0x1b, 0x0d, 0xde, 0xc0, 0xe8, 0x6b, 0x27, 0xdb, 0x5b, 0x5d, 0x00, 0xa0, + 0x9d, 0x5c, 0x94, 0x4a, 0x70, 0xba, 0x0d, 0x87, 0xb5, 0xc7, 0xef, 0x23, 0x1e, 0xd8, 0xc9, 0x59, + 0xcd, 0xc5, 0x81, 0xee, 0x1e, 0xe1, 0x77, 0xe0, 0x1b, 0xa1, 0xac, 0x09, 0xdf, 0x8d, 0xbd, 0xd8, + 0xc7, 0x0d, 0x98, 0x3c, 0x78, 0xe0, 0xe7, 0xab, 0x91, 0x60, 0x04, 0x3e, 0x3e, 0xf9, 0x96, 0x3e, + 0xee, 0x71, 0xa5, 0xcb, 0x0b, 0x92, 0xb1, 0xba, 0x7b, 0x80, 0x1b, 0x00, 0xff, 0x83, 0x40, 0x33, + 0xa3, 0x9c, 0xa6, 0xcc, 0xb4, 0x89, 0xc3, 0x5d, 0xe2, 0xea, 0xd7, 0x27, 0xb8, 0x3b, 0xc7, 0x3b, + 0x2a, 0xbc, 0x01, 0x23, 0xcd, 0x8c, 0x25, 0xda, 0x76, 0x75, 0xab, 0xb8, 0xa3, 0x69, 0x7c, 0xac, + 0x6e, 0x73, 0xa1, 0xad, 0xfc, 0x59, 0xef, 0x43, 0x18, 0x82, 0x0f, 0xd5, 0x78, 0x88, 0x5c, 0x86, + 0xfe, 0x78, 0x18, 0x07, 0xb8, 0x83, 0xe7, 0xa7, 0x77, 0x27, 0x19, 0xb7, 0x6b, 0x97, 0x26, 0x54, + 0x15, 0xa8, 0x96, 0x57, 0x3a, 0x43, 0xfd, 0x08, 0x33, 0x26, 0x51, 0x99, 0xfe, 0xcd, 0x14, 0x7a, + 0xbe, 0xcb, 0xf4, 0x7d, 0x3d, 0xc4, 0x7f, 0x8f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x31, 0xf8, 0x1a, + 0x19, 0x0d, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.validate.go new file mode 100644 index 0000000000..a68e68a3f7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.validate.go @@ -0,0 +1,220 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/mpi.proto + +package plugins + +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 _mpi_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 DistributedMPITrainingTask with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DistributedMPITrainingTask) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkerReplicas()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedMPITrainingTaskValidationError{ + field: "WorkerReplicas", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLauncherReplicas()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedMPITrainingTaskValidationError{ + field: "LauncherReplicas", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRunPolicy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedMPITrainingTaskValidationError{ + field: "RunPolicy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Slots + + return nil +} + +// DistributedMPITrainingTaskValidationError is the validation error returned +// by DistributedMPITrainingTask.Validate if the designated constraints aren't met. +type DistributedMPITrainingTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedMPITrainingTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedMPITrainingTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedMPITrainingTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedMPITrainingTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedMPITrainingTaskValidationError) ErrorName() string { + return "DistributedMPITrainingTaskValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedMPITrainingTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedMPITrainingTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedMPITrainingTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedMPITrainingTaskValidationError{} + +// Validate checks the field values on DistributedMPITrainingReplicaSpec with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *DistributedMPITrainingReplicaSpec) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Replicas + + // no validation rules for Image + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedMPITrainingReplicaSpecValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RestartPolicy + + return nil +} + +// DistributedMPITrainingReplicaSpecValidationError is the validation error +// returned by DistributedMPITrainingReplicaSpec.Validate if the designated +// constraints aren't met. +type DistributedMPITrainingReplicaSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedMPITrainingReplicaSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedMPITrainingReplicaSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedMPITrainingReplicaSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedMPITrainingReplicaSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedMPITrainingReplicaSpecValidationError) ErrorName() string { + return "DistributedMPITrainingReplicaSpecValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedMPITrainingReplicaSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedMPITrainingReplicaSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedMPITrainingReplicaSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedMPITrainingReplicaSpecValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go new file mode 100644 index 0000000000..7cef6b322b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go @@ -0,0 +1,276 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/pytorch.proto + +package plugins + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// Custom proto for torch elastic config for distributed training using +// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go +type ElasticConfig struct { + RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` + MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` + MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` + NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` + MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ElasticConfig) Reset() { *m = ElasticConfig{} } +func (m *ElasticConfig) String() string { return proto.CompactTextString(m) } +func (*ElasticConfig) ProtoMessage() {} +func (*ElasticConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_37e97bee6e09d707, []int{0} +} + +func (m *ElasticConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ElasticConfig.Unmarshal(m, b) +} +func (m *ElasticConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ElasticConfig.Marshal(b, m, deterministic) +} +func (m *ElasticConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ElasticConfig.Merge(m, src) +} +func (m *ElasticConfig) XXX_Size() int { + return xxx_messageInfo_ElasticConfig.Size(m) +} +func (m *ElasticConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ElasticConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ElasticConfig proto.InternalMessageInfo + +func (m *ElasticConfig) GetRdzvBackend() string { + if m != nil { + return m.RdzvBackend + } + return "" +} + +func (m *ElasticConfig) GetMinReplicas() int32 { + if m != nil { + return m.MinReplicas + } + return 0 +} + +func (m *ElasticConfig) GetMaxReplicas() int32 { + if m != nil { + return m.MaxReplicas + } + return 0 +} + +func (m *ElasticConfig) GetNprocPerNode() int32 { + if m != nil { + return m.NprocPerNode + } + return 0 +} + +func (m *ElasticConfig) GetMaxRestarts() int32 { + if m != nil { + return m.MaxRestarts + } + return 0 +} + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator +type DistributedPyTorchTrainingTask struct { + // Worker replicas spec + WorkerReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` + // Master replicas spec, master replicas can only have 1 replica + MasterReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,2,opt,name=master_replicas,json=masterReplicas,proto3" json:"master_replicas,omitempty"` + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` + // config for an elastic pytorch job + ElasticConfig *ElasticConfig `protobuf:"bytes,4,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedPyTorchTrainingTask) Reset() { *m = DistributedPyTorchTrainingTask{} } +func (m *DistributedPyTorchTrainingTask) String() string { return proto.CompactTextString(m) } +func (*DistributedPyTorchTrainingTask) ProtoMessage() {} +func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { + return fileDescriptor_37e97bee6e09d707, []int{1} +} + +func (m *DistributedPyTorchTrainingTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedPyTorchTrainingTask.Unmarshal(m, b) +} +func (m *DistributedPyTorchTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedPyTorchTrainingTask.Marshal(b, m, deterministic) +} +func (m *DistributedPyTorchTrainingTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedPyTorchTrainingTask.Merge(m, src) +} +func (m *DistributedPyTorchTrainingTask) XXX_Size() int { + return xxx_messageInfo_DistributedPyTorchTrainingTask.Size(m) +} +func (m *DistributedPyTorchTrainingTask) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedPyTorchTrainingTask.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedPyTorchTrainingTask proto.InternalMessageInfo + +func (m *DistributedPyTorchTrainingTask) GetWorkerReplicas() *DistributedPyTorchTrainingReplicaSpec { + if m != nil { + return m.WorkerReplicas + } + return nil +} + +func (m *DistributedPyTorchTrainingTask) GetMasterReplicas() *DistributedPyTorchTrainingReplicaSpec { + if m != nil { + return m.MasterReplicas + } + return nil +} + +func (m *DistributedPyTorchTrainingTask) GetRunPolicy() *RunPolicy { + if m != nil { + return m.RunPolicy + } + return nil +} + +func (m *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { + if m != nil { + return m.ElasticConfig + } + return nil +} + +type DistributedPyTorchTrainingReplicaSpec struct { + // Number of replicas + Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Image used for the replica group + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources required for the replica group + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // RestartPolicy determines whether pods will be restarted when they exit + RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedPyTorchTrainingReplicaSpec) Reset() { *m = DistributedPyTorchTrainingReplicaSpec{} } +func (m *DistributedPyTorchTrainingReplicaSpec) String() string { return proto.CompactTextString(m) } +func (*DistributedPyTorchTrainingReplicaSpec) ProtoMessage() {} +func (*DistributedPyTorchTrainingReplicaSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_37e97bee6e09d707, []int{2} +} + +func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Unmarshal(m, b) +} +func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Marshal(b, m, deterministic) +} +func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Merge(m, src) +} +func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Size() int { + return xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Size(m) +} +func (m *DistributedPyTorchTrainingReplicaSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec proto.InternalMessageInfo + +func (m *DistributedPyTorchTrainingReplicaSpec) GetReplicas() int32 { + if m != nil { + return m.Replicas + } + return 0 +} + +func (m *DistributedPyTorchTrainingReplicaSpec) GetImage() string { + if m != nil { + return m.Image + } + return "" +} + +func (m *DistributedPyTorchTrainingReplicaSpec) GetResources() *core.Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *DistributedPyTorchTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { + if m != nil { + return m.RestartPolicy + } + return RestartPolicy_RESTART_POLICY_NEVER +} + +func init() { + proto.RegisterType((*ElasticConfig)(nil), "flyteidl.plugins.kubeflow.ElasticConfig") + proto.RegisterType((*DistributedPyTorchTrainingTask)(nil), "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask") + proto.RegisterType((*DistributedPyTorchTrainingReplicaSpec)(nil), "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/kubeflow/pytorch.proto", fileDescriptor_37e97bee6e09d707) +} + +var fileDescriptor_37e97bee6e09d707 = []byte{ + // 468 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x8e, 0xd3, 0x30, + 0x10, 0xc6, 0xd5, 0x5d, 0x8a, 0xa8, 0xb3, 0xed, 0x4a, 0x11, 0x87, 0xd0, 0x03, 0x5a, 0xaa, 0x05, + 0x7a, 0x21, 0x91, 0x8a, 0x04, 0xe2, 0x86, 0x76, 0xe1, 0x0a, 0x95, 0xe9, 0x89, 0x4b, 0xe4, 0x38, + 0xd3, 0xac, 0x95, 0xc4, 0xb6, 0xc6, 0x0e, 0xbb, 0xe5, 0x19, 0x78, 0x29, 0x5e, 0x85, 0x27, 0x41, + 0x71, 0xfe, 0x75, 0x91, 0x5a, 0x71, 0xd8, 0x5b, 0x66, 0xfc, 0xcb, 0x37, 0xfe, 0xc6, 0x33, 0xe4, + 0xf5, 0xb6, 0xd8, 0x59, 0x10, 0x69, 0x11, 0xe9, 0xa2, 0xca, 0x84, 0x34, 0x51, 0x5e, 0x25, 0xb0, + 0x2d, 0xd4, 0x6d, 0xa4, 0x77, 0x56, 0x21, 0xbf, 0x09, 0x35, 0x2a, 0xab, 0xfc, 0x67, 0x1d, 0x18, + 0xb6, 0x60, 0xd8, 0x81, 0xf3, 0xfe, 0x28, 0xe2, 0x0a, 0x21, 0xb2, 0xcc, 0xe4, 0xa6, 0xf9, 0x6b, + 0xfe, 0xea, 0xb0, 0x3c, 0x57, 0x65, 0xa9, 0x64, 0xc3, 0x2d, 0x7e, 0x8f, 0xc8, 0xf4, 0x73, 0xc1, + 0x8c, 0x15, 0xfc, 0x5a, 0xc9, 0xad, 0xc8, 0xfc, 0x17, 0xe4, 0x0c, 0xd3, 0x9f, 0x3f, 0xe2, 0x84, + 0xf1, 0x1c, 0x64, 0x1a, 0x8c, 0x2e, 0x46, 0xcb, 0x09, 0xf5, 0xea, 0xdc, 0x55, 0x93, 0xaa, 0x91, + 0x52, 0xc8, 0x18, 0x41, 0x17, 0x82, 0x33, 0x13, 0x9c, 0x5c, 0x8c, 0x96, 0x63, 0xea, 0x95, 0x42, + 0xd2, 0x36, 0xe5, 0x10, 0x76, 0x37, 0x20, 0xa7, 0x2d, 0xc2, 0xee, 0x7a, 0xe4, 0x92, 0xcc, 0xa4, + 0x46, 0xc5, 0x63, 0x0d, 0x18, 0x4b, 0x95, 0x42, 0xf0, 0xc8, 0x41, 0x67, 0x2e, 0xbb, 0x06, 0xfc, + 0xa2, 0x52, 0x18, 0x84, 0x8c, 0x65, 0x68, 0x4d, 0x30, 0xde, 0x13, 0x6a, 0x52, 0x8b, 0x5f, 0xa7, + 0xe4, 0xf9, 0x27, 0x61, 0x2c, 0x8a, 0xa4, 0xb2, 0x90, 0xae, 0x77, 0x9b, 0xba, 0x7d, 0x1b, 0x64, + 0x42, 0x0a, 0x99, 0x6d, 0x98, 0xc9, 0x7d, 0x41, 0xce, 0x6f, 0x15, 0xe6, 0x80, 0xc3, 0x8d, 0x6a, + 0x5f, 0xde, 0xea, 0x63, 0x78, 0xb0, 0xbd, 0xe1, 0x61, 0xcd, 0xd6, 0xc3, 0x37, 0x0d, 0x9c, 0xce, + 0x1a, 0xe1, 0xde, 0x96, 0x20, 0xe7, 0x25, 0x33, 0x76, 0xbf, 0xd4, 0xc9, 0x43, 0x95, 0x6a, 0x84, + 0xfb, 0x52, 0xd7, 0x84, 0x60, 0x25, 0x63, 0xad, 0x0a, 0xc1, 0x77, 0xae, 0xc5, 0xde, 0xea, 0xf2, + 0x48, 0x15, 0x5a, 0xc9, 0xb5, 0x63, 0xe9, 0x04, 0xbb, 0x4f, 0xff, 0x2b, 0x99, 0x41, 0x33, 0x00, + 0x31, 0x77, 0x13, 0xe0, 0x9e, 0xc1, 0x5b, 0x2d, 0x8f, 0x08, 0xdd, 0x9b, 0x18, 0x3a, 0x85, 0xfd, + 0x70, 0xf1, 0x67, 0x44, 0x5e, 0xfe, 0x97, 0x1f, 0x7f, 0x4e, 0x9e, 0xdc, 0x7b, 0x8e, 0x31, 0xed, + 0x63, 0xff, 0x29, 0x19, 0x8b, 0x92, 0x65, 0xe0, 0x9a, 0x37, 0xa1, 0x4d, 0xe0, 0xbf, 0x23, 0x13, + 0x04, 0xa3, 0x2a, 0xe4, 0x60, 0x5a, 0xc3, 0xc1, 0x70, 0xcf, 0x7a, 0x0b, 0x42, 0xda, 0x9d, 0xd3, + 0x01, 0xad, 0x4d, 0xb6, 0x13, 0xd4, 0x75, 0xab, 0x36, 0x39, 0x3b, 0x6a, 0xb2, 0x9d, 0xaf, 0xb6, + 0x63, 0x53, 0xdc, 0x0f, 0xaf, 0x3e, 0x7c, 0x7f, 0x9f, 0x09, 0x7b, 0x53, 0x25, 0x21, 0x57, 0x65, + 0xe4, 0x44, 0x14, 0x66, 0x51, 0xbf, 0x75, 0x19, 0xc8, 0x48, 0x27, 0x6f, 0x32, 0x15, 0xfd, 0xbb, + 0x88, 0xc9, 0x63, 0xb7, 0x79, 0x6f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xdb, 0x04, 0x89, + 0x02, 0x04, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.validate.go new file mode 100644 index 0000000000..fa6e40749c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.validate.go @@ -0,0 +1,304 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/pytorch.proto + +package plugins + +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 _pytorch_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 ElasticConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ElasticConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RdzvBackend + + // no validation rules for MinReplicas + + // no validation rules for MaxReplicas + + // no validation rules for NprocPerNode + + // no validation rules for MaxRestarts + + return nil +} + +// ElasticConfigValidationError is the validation error returned by +// ElasticConfig.Validate if the designated constraints aren't met. +type ElasticConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ElasticConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ElasticConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ElasticConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ElasticConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ElasticConfigValidationError) ErrorName() string { return "ElasticConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ElasticConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sElasticConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ElasticConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ElasticConfigValidationError{} + +// Validate checks the field values on DistributedPyTorchTrainingTask with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DistributedPyTorchTrainingTask) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkerReplicas()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedPyTorchTrainingTaskValidationError{ + field: "WorkerReplicas", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMasterReplicas()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedPyTorchTrainingTaskValidationError{ + field: "MasterReplicas", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRunPolicy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedPyTorchTrainingTaskValidationError{ + field: "RunPolicy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetElasticConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedPyTorchTrainingTaskValidationError{ + field: "ElasticConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DistributedPyTorchTrainingTaskValidationError is the validation error +// returned by DistributedPyTorchTrainingTask.Validate if the designated +// constraints aren't met. +type DistributedPyTorchTrainingTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedPyTorchTrainingTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedPyTorchTrainingTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedPyTorchTrainingTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedPyTorchTrainingTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedPyTorchTrainingTaskValidationError) ErrorName() string { + return "DistributedPyTorchTrainingTaskValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedPyTorchTrainingTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedPyTorchTrainingTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedPyTorchTrainingTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedPyTorchTrainingTaskValidationError{} + +// Validate checks the field values on DistributedPyTorchTrainingReplicaSpec +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *DistributedPyTorchTrainingReplicaSpec) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Replicas + + // no validation rules for Image + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedPyTorchTrainingReplicaSpecValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RestartPolicy + + return nil +} + +// DistributedPyTorchTrainingReplicaSpecValidationError is the validation error +// returned by DistributedPyTorchTrainingReplicaSpec.Validate if the +// designated constraints aren't met. +type DistributedPyTorchTrainingReplicaSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedPyTorchTrainingReplicaSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedPyTorchTrainingReplicaSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedPyTorchTrainingReplicaSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedPyTorchTrainingReplicaSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedPyTorchTrainingReplicaSpecValidationError) ErrorName() string { + return "DistributedPyTorchTrainingReplicaSpecValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedPyTorchTrainingReplicaSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedPyTorchTrainingReplicaSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedPyTorchTrainingReplicaSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedPyTorchTrainingReplicaSpecValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go new file mode 100644 index 0000000000..b62e7fc9df --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go @@ -0,0 +1,197 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/tensorflow.proto + +package plugins + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator +type DistributedTensorflowTrainingTask struct { + // Worker replicas spec + WorkerReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` + // Parameter server replicas spec + PsReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` + // Chief replicas spec + ChiefReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy *RunPolicy `protobuf:"bytes,4,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedTensorflowTrainingTask) Reset() { *m = DistributedTensorflowTrainingTask{} } +func (m *DistributedTensorflowTrainingTask) String() string { return proto.CompactTextString(m) } +func (*DistributedTensorflowTrainingTask) ProtoMessage() {} +func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { + return fileDescriptor_93de2bd764ddf01a, []int{0} +} + +func (m *DistributedTensorflowTrainingTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedTensorflowTrainingTask.Unmarshal(m, b) +} +func (m *DistributedTensorflowTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedTensorflowTrainingTask.Marshal(b, m, deterministic) +} +func (m *DistributedTensorflowTrainingTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedTensorflowTrainingTask.Merge(m, src) +} +func (m *DistributedTensorflowTrainingTask) XXX_Size() int { + return xxx_messageInfo_DistributedTensorflowTrainingTask.Size(m) +} +func (m *DistributedTensorflowTrainingTask) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedTensorflowTrainingTask.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedTensorflowTrainingTask proto.InternalMessageInfo + +func (m *DistributedTensorflowTrainingTask) GetWorkerReplicas() *DistributedTensorflowTrainingReplicaSpec { + if m != nil { + return m.WorkerReplicas + } + return nil +} + +func (m *DistributedTensorflowTrainingTask) GetPsReplicas() *DistributedTensorflowTrainingReplicaSpec { + if m != nil { + return m.PsReplicas + } + return nil +} + +func (m *DistributedTensorflowTrainingTask) GetChiefReplicas() *DistributedTensorflowTrainingReplicaSpec { + if m != nil { + return m.ChiefReplicas + } + return nil +} + +func (m *DistributedTensorflowTrainingTask) GetRunPolicy() *RunPolicy { + if m != nil { + return m.RunPolicy + } + return nil +} + +type DistributedTensorflowTrainingReplicaSpec struct { + // Number of replicas + Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Image used for the replica group + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources required for the replica group + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // RestartPolicy Determines whether pods will be restarted when they exit + RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedTensorflowTrainingReplicaSpec) Reset() { + *m = DistributedTensorflowTrainingReplicaSpec{} +} +func (m *DistributedTensorflowTrainingReplicaSpec) String() string { return proto.CompactTextString(m) } +func (*DistributedTensorflowTrainingReplicaSpec) ProtoMessage() {} +func (*DistributedTensorflowTrainingReplicaSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_93de2bd764ddf01a, []int{1} +} + +func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Unmarshal(m, b) +} +func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Marshal(b, m, deterministic) +} +func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Merge(m, src) +} +func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Size() int { + return xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Size(m) +} +func (m *DistributedTensorflowTrainingReplicaSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec proto.InternalMessageInfo + +func (m *DistributedTensorflowTrainingReplicaSpec) GetReplicas() int32 { + if m != nil { + return m.Replicas + } + return 0 +} + +func (m *DistributedTensorflowTrainingReplicaSpec) GetImage() string { + if m != nil { + return m.Image + } + return "" +} + +func (m *DistributedTensorflowTrainingReplicaSpec) GetResources() *core.Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *DistributedTensorflowTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { + if m != nil { + return m.RestartPolicy + } + return RestartPolicy_RESTART_POLICY_NEVER +} + +func init() { + proto.RegisterType((*DistributedTensorflowTrainingTask)(nil), "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask") + proto.RegisterType((*DistributedTensorflowTrainingReplicaSpec)(nil), "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/kubeflow/tensorflow.proto", fileDescriptor_93de2bd764ddf01a) +} + +var fileDescriptor_93de2bd764ddf01a = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x41, 0x4b, 0xc3, 0x30, + 0x14, 0xc7, 0x99, 0x73, 0xe2, 0x32, 0x56, 0xa1, 0x78, 0x98, 0x3b, 0xe9, 0x10, 0x19, 0x82, 0x0d, + 0x4c, 0x50, 0xbc, 0x3a, 0xef, 0x4a, 0xdc, 0xc9, 0xcb, 0x68, 0xb3, 0xb7, 0x2e, 0xb6, 0x4d, 0xc2, + 0x4b, 0xc2, 0xd8, 0x37, 0xf2, 0x8b, 0xf9, 0x3d, 0x64, 0xed, 0xda, 0x4e, 0x61, 0xc3, 0xc3, 0x6e, + 0x79, 0xcd, 0x3f, 0xff, 0xdf, 0x7b, 0xaf, 0x7f, 0x72, 0x3b, 0x4f, 0x57, 0x16, 0xc4, 0x2c, 0xa5, + 0x3a, 0x75, 0xb1, 0x90, 0x86, 0x26, 0x2e, 0x82, 0x79, 0xaa, 0x96, 0xd4, 0x82, 0x34, 0x0a, 0xd7, + 0xc7, 0x40, 0xa3, 0xb2, 0xca, 0xbf, 0x28, 0xb5, 0xc1, 0x46, 0x1b, 0x94, 0xda, 0x7e, 0x75, 0x45, + 0xb9, 0x42, 0xa0, 0x36, 0x34, 0x89, 0x29, 0x5e, 0xf5, 0x6f, 0x76, 0x13, 0xb8, 0xca, 0x32, 0x25, + 0x0b, 0xdd, 0xe0, 0xab, 0x49, 0xae, 0x5e, 0x84, 0xb1, 0x28, 0x22, 0x67, 0x61, 0x36, 0xa9, 0xe8, + 0x13, 0x0c, 0x85, 0x14, 0x32, 0x9e, 0x84, 0x26, 0xf1, 0x53, 0x72, 0xb6, 0x54, 0x98, 0x00, 0x4e, + 0x11, 0x74, 0x2a, 0x78, 0x68, 0x7a, 0x8d, 0xcb, 0xc6, 0xb0, 0x33, 0x1a, 0x07, 0x3b, 0xbb, 0x0b, + 0xf6, 0xda, 0xb2, 0xc2, 0xe7, 0x5d, 0x03, 0x67, 0x5e, 0xe1, 0xbd, 0xf9, 0x64, 0xfc, 0x19, 0xe9, + 0x68, 0x53, 0x93, 0x8e, 0x0e, 0x47, 0x22, 0xda, 0x54, 0x94, 0x4f, 0xe2, 0xf1, 0x85, 0x80, 0x79, + 0x0d, 0x6a, 0x1e, 0x0e, 0xd4, 0xcd, 0xad, 0x2b, 0xd6, 0x98, 0x10, 0x74, 0x72, 0xaa, 0x55, 0x2a, + 0xf8, 0xaa, 0x77, 0x9c, 0x73, 0xae, 0xf7, 0x70, 0x98, 0x93, 0x6f, 0xb9, 0x96, 0xb5, 0xb1, 0x3c, + 0x0e, 0xbe, 0x1b, 0x64, 0xf8, 0xdf, 0x06, 0xfc, 0x3e, 0x39, 0xfd, 0xf5, 0xab, 0x5a, 0xac, 0xaa, + 0xfd, 0x73, 0xd2, 0x12, 0x59, 0x18, 0x43, 0xbe, 0xd9, 0x36, 0x2b, 0x0a, 0xff, 0x81, 0xb4, 0x11, + 0x8c, 0x72, 0xc8, 0xa1, 0x5c, 0x45, 0xaf, 0x6e, 0x71, 0x1d, 0xb0, 0x80, 0x95, 0xf7, 0xac, 0x96, + 0xfa, 0xaf, 0xc4, 0x43, 0x30, 0x36, 0x44, 0xbb, 0x3d, 0x9f, 0x37, 0x1a, 0xee, 0x9b, 0xaf, 0x78, + 0xb0, 0x99, 0xb1, 0x8b, 0xdb, 0xe5, 0xf3, 0xd3, 0xc7, 0x63, 0x2c, 0xec, 0xc2, 0x45, 0x01, 0x57, + 0x19, 0xcd, 0x4d, 0x14, 0xc6, 0xb4, 0x0a, 0x74, 0x0c, 0x92, 0xea, 0xe8, 0x2e, 0x56, 0xf4, 0x6f, + 0xc6, 0xa3, 0x93, 0x3c, 0xd4, 0xf7, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x01, 0x7d, 0x16, + 0x60, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.validate.go new file mode 100644 index 0000000000..098b4dc7cf --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.validate.go @@ -0,0 +1,229 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/kubeflow/tensorflow.proto + +package plugins + +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 _tensorflow_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 DistributedTensorflowTrainingTask with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *DistributedTensorflowTrainingTask) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkerReplicas()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedTensorflowTrainingTaskValidationError{ + field: "WorkerReplicas", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetPsReplicas()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedTensorflowTrainingTaskValidationError{ + field: "PsReplicas", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetChiefReplicas()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedTensorflowTrainingTaskValidationError{ + field: "ChiefReplicas", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRunPolicy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedTensorflowTrainingTaskValidationError{ + field: "RunPolicy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DistributedTensorflowTrainingTaskValidationError is the validation error +// returned by DistributedTensorflowTrainingTask.Validate if the designated +// constraints aren't met. +type DistributedTensorflowTrainingTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedTensorflowTrainingTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedTensorflowTrainingTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedTensorflowTrainingTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedTensorflowTrainingTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedTensorflowTrainingTaskValidationError) ErrorName() string { + return "DistributedTensorflowTrainingTaskValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedTensorflowTrainingTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedTensorflowTrainingTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedTensorflowTrainingTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedTensorflowTrainingTaskValidationError{} + +// Validate checks the field values on DistributedTensorflowTrainingReplicaSpec +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *DistributedTensorflowTrainingReplicaSpec) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Replicas + + // no validation rules for Image + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedTensorflowTrainingReplicaSpecValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RestartPolicy + + return nil +} + +// DistributedTensorflowTrainingReplicaSpecValidationError is the validation +// error returned by DistributedTensorflowTrainingReplicaSpec.Validate if the +// designated constraints aren't met. +type DistributedTensorflowTrainingReplicaSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedTensorflowTrainingReplicaSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedTensorflowTrainingReplicaSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedTensorflowTrainingReplicaSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedTensorflowTrainingReplicaSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedTensorflowTrainingReplicaSpecValidationError) ErrorName() string { + return "DistributedTensorflowTrainingReplicaSpecValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedTensorflowTrainingReplicaSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedTensorflowTrainingReplicaSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedTensorflowTrainingReplicaSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedTensorflowTrainingReplicaSpecValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go new file mode 100644 index 0000000000..f09295729e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go @@ -0,0 +1,107 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/mpi.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator +type DistributedMPITrainingTask struct { + // number of worker spawned in the cluster for this job + NumWorkers int32 `protobuf:"varint,1,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty"` + // number of launcher replicas spawned in the cluster for this job + // The launcher pod invokes mpirun and communicates with worker pods through MPI. + NumLauncherReplicas int32 `protobuf:"varint,2,opt,name=num_launcher_replicas,json=numLauncherReplicas,proto3" json:"num_launcher_replicas,omitempty"` + // number of slots per worker used in hostfile. + // The available slots (GPUs) in each pod. + Slots int32 `protobuf:"varint,3,opt,name=slots,proto3" json:"slots,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedMPITrainingTask) Reset() { *m = DistributedMPITrainingTask{} } +func (m *DistributedMPITrainingTask) String() string { return proto.CompactTextString(m) } +func (*DistributedMPITrainingTask) ProtoMessage() {} +func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { + return fileDescriptor_13cf3fae00e5b069, []int{0} +} + +func (m *DistributedMPITrainingTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedMPITrainingTask.Unmarshal(m, b) +} +func (m *DistributedMPITrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedMPITrainingTask.Marshal(b, m, deterministic) +} +func (m *DistributedMPITrainingTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedMPITrainingTask.Merge(m, src) +} +func (m *DistributedMPITrainingTask) XXX_Size() int { + return xxx_messageInfo_DistributedMPITrainingTask.Size(m) +} +func (m *DistributedMPITrainingTask) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedMPITrainingTask.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedMPITrainingTask proto.InternalMessageInfo + +func (m *DistributedMPITrainingTask) GetNumWorkers() int32 { + if m != nil { + return m.NumWorkers + } + return 0 +} + +func (m *DistributedMPITrainingTask) GetNumLauncherReplicas() int32 { + if m != nil { + return m.NumLauncherReplicas + } + return 0 +} + +func (m *DistributedMPITrainingTask) GetSlots() int32 { + if m != nil { + return m.Slots + } + return 0 +} + +func init() { + proto.RegisterType((*DistributedMPITrainingTask)(nil), "flyteidl.plugins.DistributedMPITrainingTask") +} + +func init() { proto.RegisterFile("flyteidl/plugins/mpi.proto", fileDescriptor_13cf3fae00e5b069) } + +var fileDescriptor_13cf3fae00e5b069 = []byte{ + // 209 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0x31, 0x4b, 0xc7, 0x30, + 0x10, 0x47, 0xa9, 0xf2, 0x77, 0x88, 0x8b, 0x44, 0x85, 0xd2, 0x45, 0x71, 0x72, 0xb1, 0x01, 0x1d, + 0xc4, 0x55, 0x5c, 0x04, 0x05, 0x29, 0x05, 0xc1, 0xa5, 0x24, 0x6d, 0x4c, 0x8f, 0x26, 0x97, 0x70, + 0x49, 0x10, 0x3f, 0x81, 0x5f, 0x5b, 0x4c, 0xab, 0x83, 0xe3, 0xdd, 0x7b, 0xc3, 0xef, 0xb1, 0xe6, + 0xdd, 0x7e, 0x26, 0x0d, 0x93, 0x15, 0xc1, 0x66, 0x03, 0x18, 0x85, 0x0b, 0xd0, 0x06, 0xf2, 0xc9, + 0xf3, 0xa3, 0x5f, 0xd6, 0x6e, 0xec, 0xe2, 0xab, 0x62, 0xcd, 0x03, 0xc4, 0x44, 0xa0, 0x72, 0xd2, + 0xd3, 0xf3, 0xcb, 0x63, 0x4f, 0x12, 0x10, 0xd0, 0xf4, 0x32, 0x2e, 0xfc, 0x8c, 0x1d, 0x62, 0x76, + 0xc3, 0x87, 0xa7, 0x45, 0x53, 0xac, 0xab, 0xf3, 0xea, 0x72, 0xd7, 0x31, 0xcc, 0xee, 0x75, 0xfd, + 0xf0, 0x6b, 0x76, 0xfa, 0x23, 0x58, 0x99, 0x71, 0x9c, 0x35, 0x0d, 0xa4, 0x83, 0x85, 0x51, 0xc6, + 0x7a, 0xaf, 0xa8, 0xc7, 0x98, 0xdd, 0xd3, 0xc6, 0xba, 0x0d, 0xf1, 0x13, 0xb6, 0x8b, 0xd6, 0xa7, + 0x58, 0xef, 0x17, 0x67, 0x3d, 0xee, 0xef, 0xde, 0x6e, 0x0d, 0xa4, 0x39, 0xab, 0x76, 0xf4, 0x4e, + 0x94, 0xa1, 0x9e, 0x8c, 0xf8, 0xab, 0x31, 0x1a, 0x45, 0x50, 0x57, 0xc6, 0x8b, 0xff, 0x81, 0xea, + 0xa0, 0xd4, 0xdd, 0x7c, 0x07, 0x00, 0x00, 0xff, 0xff, 0x76, 0x5d, 0x84, 0xbc, 0xfb, 0x00, 0x00, + 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.validate.go new file mode 100644 index 0000000000..c0d746eee7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.validate.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/mpi.proto + +package plugins + +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 _mpi_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 DistributedMPITrainingTask with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DistributedMPITrainingTask) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NumWorkers + + // no validation rules for NumLauncherReplicas + + // no validation rules for Slots + + return nil +} + +// DistributedMPITrainingTaskValidationError is the validation error returned +// by DistributedMPITrainingTask.Validate if the designated constraints aren't met. +type DistributedMPITrainingTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedMPITrainingTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedMPITrainingTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedMPITrainingTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedMPITrainingTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedMPITrainingTaskValidationError) ErrorName() string { + return "DistributedMPITrainingTaskValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedMPITrainingTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedMPITrainingTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedMPITrainingTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedMPITrainingTaskValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go new file mode 100644 index 0000000000..e0230fb442 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/presto.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field +// of a Presto task's TaskTemplate +type PrestoQuery struct { + RoutingGroup string `protobuf:"bytes,1,opt,name=routing_group,json=routingGroup,proto3" json:"routing_group,omitempty"` + Catalog string `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"` + Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` + Statement string `protobuf:"bytes,4,opt,name=statement,proto3" json:"statement,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PrestoQuery) Reset() { *m = PrestoQuery{} } +func (m *PrestoQuery) String() string { return proto.CompactTextString(m) } +func (*PrestoQuery) ProtoMessage() {} +func (*PrestoQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_881edc23a44f4737, []int{0} +} + +func (m *PrestoQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PrestoQuery.Unmarshal(m, b) +} +func (m *PrestoQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PrestoQuery.Marshal(b, m, deterministic) +} +func (m *PrestoQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrestoQuery.Merge(m, src) +} +func (m *PrestoQuery) XXX_Size() int { + return xxx_messageInfo_PrestoQuery.Size(m) +} +func (m *PrestoQuery) XXX_DiscardUnknown() { + xxx_messageInfo_PrestoQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_PrestoQuery proto.InternalMessageInfo + +func (m *PrestoQuery) GetRoutingGroup() string { + if m != nil { + return m.RoutingGroup + } + return "" +} + +func (m *PrestoQuery) GetCatalog() string { + if m != nil { + return m.Catalog + } + return "" +} + +func (m *PrestoQuery) GetSchema() string { + if m != nil { + return m.Schema + } + return "" +} + +func (m *PrestoQuery) GetStatement() string { + if m != nil { + return m.Statement + } + return "" +} + +func init() { + proto.RegisterType((*PrestoQuery)(nil), "flyteidl.plugins.PrestoQuery") +} + +func init() { proto.RegisterFile("flyteidl/plugins/presto.proto", fileDescriptor_881edc23a44f4737) } + +var fileDescriptor_881edc23a44f4737 = []byte{ + // 197 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0xc8, 0x29, 0x4d, 0xcf, 0xcc, 0x2b, 0xd6, 0x2f, 0x28, 0x4a, + 0x2d, 0x2e, 0xc9, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x49, 0xeb, 0x41, 0xa5, + 0x95, 0x9a, 0x18, 0xb9, 0xb8, 0x03, 0xc0, 0x4a, 0x02, 0x4b, 0x53, 0x8b, 0x2a, 0x85, 0x94, 0xb9, + 0x78, 0x8b, 0xf2, 0x4b, 0x4b, 0x32, 0xf3, 0xd2, 0xe3, 0xd3, 0x8b, 0xf2, 0x4b, 0x0b, 0x24, 0x18, + 0x15, 0x18, 0x35, 0x38, 0x83, 0x78, 0xa0, 0x82, 0xee, 0x20, 0x31, 0x21, 0x09, 0x2e, 0xf6, 0xe4, + 0xc4, 0x92, 0xc4, 0x9c, 0xfc, 0x74, 0x09, 0x26, 0xb0, 0x34, 0x8c, 0x2b, 0x24, 0xc6, 0xc5, 0x56, + 0x9c, 0x9c, 0x91, 0x9a, 0x9b, 0x28, 0xc1, 0x0c, 0x96, 0x80, 0xf2, 0x84, 0x64, 0xb8, 0x38, 0x8b, + 0x4b, 0x12, 0x4b, 0x52, 0x73, 0x53, 0xf3, 0x4a, 0x24, 0x58, 0xc0, 0x52, 0x08, 0x01, 0x27, 0xcb, + 0x28, 0xf3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0x1b, 0xf3, + 0x8b, 0xd2, 0xf5, 0xe1, 0x7e, 0x49, 0x4f, 0xcd, 0xd3, 0x2f, 0x48, 0xd2, 0x4d, 0xcf, 0xd7, 0x47, + 0xf7, 0x5e, 0x12, 0x1b, 0xd8, 0x63, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x71, 0x67, 0xf9, + 0x0f, 0xf9, 0x00, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.validate.go new file mode 100644 index 0000000000..42b8695fa9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.validate.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/presto.proto + +package plugins + +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 _presto_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 PrestoQuery with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *PrestoQuery) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RoutingGroup + + // no validation rules for Catalog + + // no validation rules for Schema + + // no validation rules for Statement + + return nil +} + +// PrestoQueryValidationError is the validation error returned by +// PrestoQuery.Validate if the designated constraints aren't met. +type PrestoQueryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PrestoQueryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PrestoQueryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PrestoQueryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PrestoQueryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PrestoQueryValidationError) ErrorName() string { return "PrestoQueryValidationError" } + +// Error satisfies the builtin error interface +func (e PrestoQueryValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPrestoQuery.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PrestoQueryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PrestoQueryValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go new file mode 100644 index 0000000000..f75649fa0f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go @@ -0,0 +1,175 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/pytorch.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Custom proto for torch elastic config for distributed training using +// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go +type ElasticConfig struct { + RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` + MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` + MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` + NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` + MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ElasticConfig) Reset() { *m = ElasticConfig{} } +func (m *ElasticConfig) String() string { return proto.CompactTextString(m) } +func (*ElasticConfig) ProtoMessage() {} +func (*ElasticConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_4df8a9374b28b766, []int{0} +} + +func (m *ElasticConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ElasticConfig.Unmarshal(m, b) +} +func (m *ElasticConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ElasticConfig.Marshal(b, m, deterministic) +} +func (m *ElasticConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ElasticConfig.Merge(m, src) +} +func (m *ElasticConfig) XXX_Size() int { + return xxx_messageInfo_ElasticConfig.Size(m) +} +func (m *ElasticConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ElasticConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ElasticConfig proto.InternalMessageInfo + +func (m *ElasticConfig) GetRdzvBackend() string { + if m != nil { + return m.RdzvBackend + } + return "" +} + +func (m *ElasticConfig) GetMinReplicas() int32 { + if m != nil { + return m.MinReplicas + } + return 0 +} + +func (m *ElasticConfig) GetMaxReplicas() int32 { + if m != nil { + return m.MaxReplicas + } + return 0 +} + +func (m *ElasticConfig) GetNprocPerNode() int32 { + if m != nil { + return m.NprocPerNode + } + return 0 +} + +func (m *ElasticConfig) GetMaxRestarts() int32 { + if m != nil { + return m.MaxRestarts + } + return 0 +} + +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator +type DistributedPyTorchTrainingTask struct { + // number of worker replicas spawned in the cluster for this job + Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` + // config for an elastic pytorch job + // + ElasticConfig *ElasticConfig `protobuf:"bytes,2,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedPyTorchTrainingTask) Reset() { *m = DistributedPyTorchTrainingTask{} } +func (m *DistributedPyTorchTrainingTask) String() string { return proto.CompactTextString(m) } +func (*DistributedPyTorchTrainingTask) ProtoMessage() {} +func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { + return fileDescriptor_4df8a9374b28b766, []int{1} +} + +func (m *DistributedPyTorchTrainingTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedPyTorchTrainingTask.Unmarshal(m, b) +} +func (m *DistributedPyTorchTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedPyTorchTrainingTask.Marshal(b, m, deterministic) +} +func (m *DistributedPyTorchTrainingTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedPyTorchTrainingTask.Merge(m, src) +} +func (m *DistributedPyTorchTrainingTask) XXX_Size() int { + return xxx_messageInfo_DistributedPyTorchTrainingTask.Size(m) +} +func (m *DistributedPyTorchTrainingTask) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedPyTorchTrainingTask.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedPyTorchTrainingTask proto.InternalMessageInfo + +func (m *DistributedPyTorchTrainingTask) GetWorkers() int32 { + if m != nil { + return m.Workers + } + return 0 +} + +func (m *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { + if m != nil { + return m.ElasticConfig + } + return nil +} + +func init() { + proto.RegisterType((*ElasticConfig)(nil), "flyteidl.plugins.ElasticConfig") + proto.RegisterType((*DistributedPyTorchTrainingTask)(nil), "flyteidl.plugins.DistributedPyTorchTrainingTask") +} + +func init() { proto.RegisterFile("flyteidl/plugins/pytorch.proto", fileDescriptor_4df8a9374b28b766) } + +var fileDescriptor_4df8a9374b28b766 = []byte{ + // 299 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xbd, 0x4f, 0xc3, 0x30, + 0x10, 0xc5, 0x15, 0xa0, 0x20, 0xdc, 0x0f, 0xa1, 0x4c, 0x99, 0x4a, 0xa9, 0x18, 0xba, 0x90, 0x48, + 0x30, 0x20, 0xd6, 0xf2, 0x31, 0xa2, 0x2a, 0xea, 0xc4, 0x12, 0x39, 0xf6, 0xd5, 0x3d, 0x35, 0xb5, + 0xad, 0xb3, 0x0b, 0x2d, 0x23, 0xff, 0x19, 0xff, 0x19, 0xaa, 0x9b, 0x7e, 0xd0, 0xf1, 0xde, 0xfd, + 0xee, 0xa4, 0xf7, 0x1e, 0xeb, 0x4e, 0xaa, 0x95, 0x07, 0x94, 0x55, 0x66, 0xab, 0x85, 0x42, 0xed, + 0x32, 0xbb, 0xf2, 0x86, 0xc4, 0x34, 0xb5, 0x64, 0xbc, 0x89, 0xaf, 0xb6, 0xfb, 0xb4, 0xde, 0xf7, + 0x7f, 0x23, 0xd6, 0x7e, 0xad, 0xb8, 0xf3, 0x28, 0x9e, 0x8d, 0x9e, 0xa0, 0x8a, 0x6f, 0x58, 0x8b, + 0xe4, 0xf7, 0x67, 0x51, 0x72, 0x31, 0x03, 0x2d, 0x93, 0xa8, 0x17, 0x0d, 0x2e, 0xf3, 0xe6, 0x5a, + 0x1b, 0x6e, 0xa4, 0x35, 0x32, 0x47, 0x5d, 0x10, 0xd8, 0x0a, 0x05, 0x77, 0xc9, 0x49, 0x2f, 0x1a, + 0x34, 0xf2, 0xe6, 0x1c, 0x75, 0x5e, 0x4b, 0x01, 0xe1, 0xcb, 0x3d, 0x72, 0x5a, 0x23, 0x7c, 0xb9, + 0x43, 0x6e, 0x59, 0x47, 0x5b, 0x32, 0xa2, 0xb0, 0x40, 0x85, 0x36, 0x12, 0x92, 0xb3, 0x00, 0xb5, + 0x82, 0x3a, 0x02, 0x7a, 0x37, 0x12, 0xf6, 0x8f, 0x9c, 0xe7, 0xe4, 0x5d, 0xd2, 0x38, 0x78, 0xb4, + 0x91, 0xfa, 0x3f, 0x11, 0xeb, 0xbe, 0xa0, 0xf3, 0x84, 0xe5, 0xc2, 0x83, 0x1c, 0xad, 0xc6, 0x6b, + 0xcb, 0x63, 0xe2, 0xa8, 0x51, 0xab, 0x31, 0x77, 0xb3, 0x38, 0x61, 0x17, 0x5f, 0x86, 0x66, 0x40, + 0x2e, 0xf8, 0x69, 0xe4, 0xdb, 0x31, 0x7e, 0x63, 0x1d, 0xd8, 0xf8, 0x2f, 0x44, 0x08, 0x20, 0xb8, + 0x69, 0xde, 0x5f, 0xa7, 0xc7, 0x59, 0xa5, 0xff, 0x72, 0xca, 0xdb, 0x70, 0x38, 0x0e, 0x9f, 0x3e, + 0x1e, 0x15, 0xfa, 0xe9, 0xa2, 0x4c, 0x85, 0x99, 0x67, 0xe1, 0xd6, 0x90, 0xca, 0x76, 0x85, 0x28, + 0xd0, 0x99, 0x2d, 0xef, 0x94, 0xc9, 0x8e, 0x3b, 0x2a, 0xcf, 0x43, 0x39, 0x0f, 0x7f, 0x01, 0x00, + 0x00, 0xff, 0xff, 0x6f, 0x80, 0x2c, 0x15, 0xbe, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.validate.go new file mode 100644 index 0000000000..17b90db727 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.validate.go @@ -0,0 +1,192 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/pytorch.proto + +package plugins + +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 _pytorch_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 ElasticConfig with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ElasticConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RdzvBackend + + // no validation rules for MinReplicas + + // no validation rules for MaxReplicas + + // no validation rules for NprocPerNode + + // no validation rules for MaxRestarts + + return nil +} + +// ElasticConfigValidationError is the validation error returned by +// ElasticConfig.Validate if the designated constraints aren't met. +type ElasticConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ElasticConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ElasticConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ElasticConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ElasticConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ElasticConfigValidationError) ErrorName() string { return "ElasticConfigValidationError" } + +// Error satisfies the builtin error interface +func (e ElasticConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sElasticConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ElasticConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ElasticConfigValidationError{} + +// Validate checks the field values on DistributedPyTorchTrainingTask with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DistributedPyTorchTrainingTask) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Workers + + if v, ok := interface{}(m.GetElasticConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DistributedPyTorchTrainingTaskValidationError{ + field: "ElasticConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// DistributedPyTorchTrainingTaskValidationError is the validation error +// returned by DistributedPyTorchTrainingTask.Validate if the designated +// constraints aren't met. +type DistributedPyTorchTrainingTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedPyTorchTrainingTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedPyTorchTrainingTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedPyTorchTrainingTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedPyTorchTrainingTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedPyTorchTrainingTaskValidationError) ErrorName() string { + return "DistributedPyTorchTrainingTaskValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedPyTorchTrainingTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedPyTorchTrainingTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedPyTorchTrainingTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedPyTorchTrainingTaskValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go new file mode 100644 index 0000000000..04db425f71 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go @@ -0,0 +1,214 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/qubole.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Defines a query to execute on a hive cluster. +type HiveQuery struct { + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + TimeoutSec uint32 `protobuf:"varint,2,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` + RetryCount uint32 `protobuf:"varint,3,opt,name=retryCount,proto3" json:"retryCount,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HiveQuery) Reset() { *m = HiveQuery{} } +func (m *HiveQuery) String() string { return proto.CompactTextString(m) } +func (*HiveQuery) ProtoMessage() {} +func (*HiveQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_7cb86d766c12ee2e, []int{0} +} + +func (m *HiveQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HiveQuery.Unmarshal(m, b) +} +func (m *HiveQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HiveQuery.Marshal(b, m, deterministic) +} +func (m *HiveQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_HiveQuery.Merge(m, src) +} +func (m *HiveQuery) XXX_Size() int { + return xxx_messageInfo_HiveQuery.Size(m) +} +func (m *HiveQuery) XXX_DiscardUnknown() { + xxx_messageInfo_HiveQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_HiveQuery proto.InternalMessageInfo + +func (m *HiveQuery) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +func (m *HiveQuery) GetTimeoutSec() uint32 { + if m != nil { + return m.TimeoutSec + } + return 0 +} + +func (m *HiveQuery) GetRetryCount() uint32 { + if m != nil { + return m.RetryCount + } + return 0 +} + +// Defines a collection of hive queries. +type HiveQueryCollection struct { + Queries []*HiveQuery `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HiveQueryCollection) Reset() { *m = HiveQueryCollection{} } +func (m *HiveQueryCollection) String() string { return proto.CompactTextString(m) } +func (*HiveQueryCollection) ProtoMessage() {} +func (*HiveQueryCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_7cb86d766c12ee2e, []int{1} +} + +func (m *HiveQueryCollection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HiveQueryCollection.Unmarshal(m, b) +} +func (m *HiveQueryCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HiveQueryCollection.Marshal(b, m, deterministic) +} +func (m *HiveQueryCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_HiveQueryCollection.Merge(m, src) +} +func (m *HiveQueryCollection) XXX_Size() int { + return xxx_messageInfo_HiveQueryCollection.Size(m) +} +func (m *HiveQueryCollection) XXX_DiscardUnknown() { + xxx_messageInfo_HiveQueryCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_HiveQueryCollection proto.InternalMessageInfo + +func (m *HiveQueryCollection) GetQueries() []*HiveQuery { + if m != nil { + return m.Queries + } + return nil +} + +// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +// of a hive task's TaskTemplate +type QuboleHiveJob struct { + ClusterLabel string `protobuf:"bytes,1,opt,name=cluster_label,json=clusterLabel,proto3" json:"cluster_label,omitempty"` + QueryCollection *HiveQueryCollection `protobuf:"bytes,2,opt,name=query_collection,json=queryCollection,proto3" json:"query_collection,omitempty"` // Deprecated: Do not use. + Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` + Query *HiveQuery `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QuboleHiveJob) Reset() { *m = QuboleHiveJob{} } +func (m *QuboleHiveJob) String() string { return proto.CompactTextString(m) } +func (*QuboleHiveJob) ProtoMessage() {} +func (*QuboleHiveJob) Descriptor() ([]byte, []int) { + return fileDescriptor_7cb86d766c12ee2e, []int{2} +} + +func (m *QuboleHiveJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QuboleHiveJob.Unmarshal(m, b) +} +func (m *QuboleHiveJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QuboleHiveJob.Marshal(b, m, deterministic) +} +func (m *QuboleHiveJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuboleHiveJob.Merge(m, src) +} +func (m *QuboleHiveJob) XXX_Size() int { + return xxx_messageInfo_QuboleHiveJob.Size(m) +} +func (m *QuboleHiveJob) XXX_DiscardUnknown() { + xxx_messageInfo_QuboleHiveJob.DiscardUnknown(m) +} + +var xxx_messageInfo_QuboleHiveJob proto.InternalMessageInfo + +func (m *QuboleHiveJob) GetClusterLabel() string { + if m != nil { + return m.ClusterLabel + } + return "" +} + +// Deprecated: Do not use. +func (m *QuboleHiveJob) GetQueryCollection() *HiveQueryCollection { + if m != nil { + return m.QueryCollection + } + return nil +} + +func (m *QuboleHiveJob) GetTags() []string { + if m != nil { + return m.Tags + } + return nil +} + +func (m *QuboleHiveJob) GetQuery() *HiveQuery { + if m != nil { + return m.Query + } + return nil +} + +func init() { + proto.RegisterType((*HiveQuery)(nil), "flyteidl.plugins.HiveQuery") + proto.RegisterType((*HiveQueryCollection)(nil), "flyteidl.plugins.HiveQueryCollection") + proto.RegisterType((*QuboleHiveJob)(nil), "flyteidl.plugins.QuboleHiveJob") +} + +func init() { proto.RegisterFile("flyteidl/plugins/qubole.proto", fileDescriptor_7cb86d766c12ee2e) } + +var fileDescriptor_7cb86d766c12ee2e = []byte{ + // 304 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0xc1, 0x4a, 0x03, 0x31, + 0x14, 0x64, 0xbb, 0x55, 0xe9, 0xab, 0xc5, 0x12, 0x3d, 0x04, 0x44, 0x5d, 0x2a, 0xc2, 0x5e, 0xdc, + 0x60, 0x45, 0xc4, 0x6b, 0x7b, 0x11, 0xe9, 0xa5, 0xab, 0x27, 0x2f, 0xa5, 0x89, 0xcf, 0x18, 0x48, + 0x37, 0x6d, 0x36, 0x11, 0xfa, 0x99, 0xfe, 0x91, 0x6c, 0xba, 0xdd, 0x42, 0x0f, 0xbd, 0xbd, 0xcc, + 0xbc, 0x64, 0x66, 0x32, 0x70, 0xf5, 0xad, 0xd7, 0x0e, 0xd5, 0x97, 0x66, 0x4b, 0xed, 0xa5, 0x2a, + 0x4a, 0xb6, 0xf2, 0xdc, 0x68, 0xcc, 0x96, 0xd6, 0x38, 0x43, 0xfa, 0x5b, 0x3a, 0xab, 0xe9, 0x01, + 0x87, 0xce, 0xab, 0xfa, 0xc5, 0xa9, 0x47, 0xbb, 0x26, 0x17, 0x70, 0xb4, 0xaa, 0x06, 0x1a, 0x25, + 0x51, 0xda, 0xc9, 0x37, 0x07, 0x72, 0x03, 0x5d, 0xa7, 0x16, 0x68, 0xbc, 0x9b, 0x95, 0x28, 0x68, + 0x2b, 0x89, 0xd2, 0x5e, 0x0e, 0x35, 0xf4, 0x8e, 0x82, 0x5c, 0x03, 0x58, 0x74, 0x76, 0x3d, 0x36, + 0xbe, 0x70, 0x34, 0xde, 0xf0, 0x3b, 0x64, 0x30, 0x81, 0xf3, 0x46, 0x63, 0x6c, 0xb4, 0x46, 0xe1, + 0x94, 0x29, 0xc8, 0x13, 0x9c, 0x54, 0x02, 0x0a, 0x4b, 0xda, 0x4a, 0xe2, 0xb4, 0x3b, 0xbc, 0xcc, + 0xf6, 0xed, 0x65, 0xcd, 0xbd, 0x7c, 0xbb, 0x3b, 0xf8, 0x8b, 0xa0, 0x37, 0x0d, 0xa1, 0x2a, 0xf2, + 0xcd, 0x70, 0x72, 0x0b, 0x3d, 0xa1, 0x7d, 0xe9, 0xd0, 0xce, 0xf4, 0x9c, 0xa3, 0xae, 0xed, 0x9f, + 0xd6, 0xe0, 0xa4, 0xc2, 0xc8, 0x07, 0xf4, 0x43, 0x9c, 0x99, 0x68, 0x1c, 0x84, 0x28, 0xdd, 0xe1, + 0xdd, 0x01, 0xd9, 0x9d, 0xdd, 0x51, 0x8b, 0x46, 0xf9, 0xd9, 0x6a, 0x2f, 0x03, 0x81, 0xb6, 0x9b, + 0xcb, 0x92, 0xc6, 0x49, 0x9c, 0x76, 0xf2, 0x30, 0x93, 0x87, 0xed, 0x2f, 0xb6, 0xc3, 0xf3, 0x07, + 0x53, 0x6d, 0x36, 0x47, 0x2f, 0x9f, 0xcf, 0x52, 0xb9, 0x1f, 0xcf, 0x33, 0x61, 0x16, 0x2c, 0xec, + 0x1b, 0x2b, 0x59, 0x53, 0xa6, 0xc4, 0x82, 0x2d, 0xf9, 0xbd, 0x34, 0x6c, 0xbf, 0x5f, 0x7e, 0x1c, + 0x9a, 0x7d, 0xfc, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x00, 0x47, 0xd1, 0x30, 0xfa, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.validate.go new file mode 100644 index 0000000000..55fab0f374 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.validate.go @@ -0,0 +1,276 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/qubole.proto + +package plugins + +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 _qubole_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 HiveQuery with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HiveQuery) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Query + + // no validation rules for TimeoutSec + + // no validation rules for RetryCount + + return nil +} + +// HiveQueryValidationError is the validation error returned by +// HiveQuery.Validate if the designated constraints aren't met. +type HiveQueryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HiveQueryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HiveQueryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HiveQueryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HiveQueryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HiveQueryValidationError) ErrorName() string { return "HiveQueryValidationError" } + +// Error satisfies the builtin error interface +func (e HiveQueryValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHiveQuery.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HiveQueryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HiveQueryValidationError{} + +// Validate checks the field values on HiveQueryCollection with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HiveQueryCollection) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetQueries() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HiveQueryCollectionValidationError{ + field: fmt.Sprintf("Queries[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HiveQueryCollectionValidationError is the validation error returned by +// HiveQueryCollection.Validate if the designated constraints aren't met. +type HiveQueryCollectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HiveQueryCollectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HiveQueryCollectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HiveQueryCollectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HiveQueryCollectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HiveQueryCollectionValidationError) ErrorName() string { + return "HiveQueryCollectionValidationError" +} + +// Error satisfies the builtin error interface +func (e HiveQueryCollectionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHiveQueryCollection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HiveQueryCollectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HiveQueryCollectionValidationError{} + +// Validate checks the field values on QuboleHiveJob with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *QuboleHiveJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ClusterLabel + + if v, ok := interface{}(m.GetQueryCollection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return QuboleHiveJobValidationError{ + field: "QueryCollection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetQuery()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return QuboleHiveJobValidationError{ + field: "Query", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// QuboleHiveJobValidationError is the validation error returned by +// QuboleHiveJob.Validate if the designated constraints aren't met. +type QuboleHiveJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e QuboleHiveJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e QuboleHiveJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e QuboleHiveJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e QuboleHiveJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e QuboleHiveJobValidationError) ErrorName() string { return "QuboleHiveJobValidationError" } + +// Error satisfies the builtin error interface +func (e QuboleHiveJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sQuboleHiveJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = QuboleHiveJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = QuboleHiveJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go new file mode 100644 index 0000000000..fd76d41436 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go @@ -0,0 +1,283 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/ray.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// RayJobSpec defines the desired state of RayJob +type RayJob struct { + // RayClusterSpec is the cluster template to run the job + RayCluster *RayCluster `protobuf:"bytes,1,opt,name=ray_cluster,json=rayCluster,proto3" json:"ray_cluster,omitempty"` + // runtime_env is base64 encoded. + // Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments + RuntimeEnv string `protobuf:"bytes,2,opt,name=runtime_env,json=runtimeEnv,proto3" json:"runtime_env,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RayJob) Reset() { *m = RayJob{} } +func (m *RayJob) String() string { return proto.CompactTextString(m) } +func (*RayJob) ProtoMessage() {} +func (*RayJob) Descriptor() ([]byte, []int) { + return fileDescriptor_b980f6d58c7489d7, []int{0} +} + +func (m *RayJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RayJob.Unmarshal(m, b) +} +func (m *RayJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RayJob.Marshal(b, m, deterministic) +} +func (m *RayJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_RayJob.Merge(m, src) +} +func (m *RayJob) XXX_Size() int { + return xxx_messageInfo_RayJob.Size(m) +} +func (m *RayJob) XXX_DiscardUnknown() { + xxx_messageInfo_RayJob.DiscardUnknown(m) +} + +var xxx_messageInfo_RayJob proto.InternalMessageInfo + +func (m *RayJob) GetRayCluster() *RayCluster { + if m != nil { + return m.RayCluster + } + return nil +} + +func (m *RayJob) GetRuntimeEnv() string { + if m != nil { + return m.RuntimeEnv + } + return "" +} + +// Define Ray cluster defines the desired state of RayCluster +type RayCluster struct { + // HeadGroupSpecs are the spec for the head pod + HeadGroupSpec *HeadGroupSpec `protobuf:"bytes,1,opt,name=head_group_spec,json=headGroupSpec,proto3" json:"head_group_spec,omitempty"` + // WorkerGroupSpecs are the specs for the worker pods + WorkerGroupSpec []*WorkerGroupSpec `protobuf:"bytes,2,rep,name=worker_group_spec,json=workerGroupSpec,proto3" json:"worker_group_spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RayCluster) Reset() { *m = RayCluster{} } +func (m *RayCluster) String() string { return proto.CompactTextString(m) } +func (*RayCluster) ProtoMessage() {} +func (*RayCluster) Descriptor() ([]byte, []int) { + return fileDescriptor_b980f6d58c7489d7, []int{1} +} + +func (m *RayCluster) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RayCluster.Unmarshal(m, b) +} +func (m *RayCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RayCluster.Marshal(b, m, deterministic) +} +func (m *RayCluster) XXX_Merge(src proto.Message) { + xxx_messageInfo_RayCluster.Merge(m, src) +} +func (m *RayCluster) XXX_Size() int { + return xxx_messageInfo_RayCluster.Size(m) +} +func (m *RayCluster) XXX_DiscardUnknown() { + xxx_messageInfo_RayCluster.DiscardUnknown(m) +} + +var xxx_messageInfo_RayCluster proto.InternalMessageInfo + +func (m *RayCluster) GetHeadGroupSpec() *HeadGroupSpec { + if m != nil { + return m.HeadGroupSpec + } + return nil +} + +func (m *RayCluster) GetWorkerGroupSpec() []*WorkerGroupSpec { + if m != nil { + return m.WorkerGroupSpec + } + return nil +} + +// HeadGroupSpec are the spec for the head pod +type HeadGroupSpec struct { + // Optional. RayStartParams are the params of the start command: address, object-store-memory. + // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + RayStartParams map[string]string `protobuf:"bytes,1,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HeadGroupSpec) Reset() { *m = HeadGroupSpec{} } +func (m *HeadGroupSpec) String() string { return proto.CompactTextString(m) } +func (*HeadGroupSpec) ProtoMessage() {} +func (*HeadGroupSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_b980f6d58c7489d7, []int{2} +} + +func (m *HeadGroupSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HeadGroupSpec.Unmarshal(m, b) +} +func (m *HeadGroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HeadGroupSpec.Marshal(b, m, deterministic) +} +func (m *HeadGroupSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_HeadGroupSpec.Merge(m, src) +} +func (m *HeadGroupSpec) XXX_Size() int { + return xxx_messageInfo_HeadGroupSpec.Size(m) +} +func (m *HeadGroupSpec) XXX_DiscardUnknown() { + xxx_messageInfo_HeadGroupSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_HeadGroupSpec proto.InternalMessageInfo + +func (m *HeadGroupSpec) GetRayStartParams() map[string]string { + if m != nil { + return m.RayStartParams + } + return nil +} + +// WorkerGroupSpec are the specs for the worker pods +type WorkerGroupSpec struct { + // Required. RayCluster can have multiple worker groups, and it distinguishes them by name + GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + // Required. Desired replicas of the worker group. Defaults to 1. + Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Optional. Min replicas of the worker group. MinReplicas defaults to 1. + MinReplicas int32 `protobuf:"varint,3,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` + // Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 + MaxReplicas int32 `protobuf:"varint,4,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` + // Optional. RayStartParams are the params of the start command: address, object-store-memory. + // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + RayStartParams map[string]string `protobuf:"bytes,5,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkerGroupSpec) Reset() { *m = WorkerGroupSpec{} } +func (m *WorkerGroupSpec) String() string { return proto.CompactTextString(m) } +func (*WorkerGroupSpec) ProtoMessage() {} +func (*WorkerGroupSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_b980f6d58c7489d7, []int{3} +} + +func (m *WorkerGroupSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkerGroupSpec.Unmarshal(m, b) +} +func (m *WorkerGroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkerGroupSpec.Marshal(b, m, deterministic) +} +func (m *WorkerGroupSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkerGroupSpec.Merge(m, src) +} +func (m *WorkerGroupSpec) XXX_Size() int { + return xxx_messageInfo_WorkerGroupSpec.Size(m) +} +func (m *WorkerGroupSpec) XXX_DiscardUnknown() { + xxx_messageInfo_WorkerGroupSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkerGroupSpec proto.InternalMessageInfo + +func (m *WorkerGroupSpec) GetGroupName() string { + if m != nil { + return m.GroupName + } + return "" +} + +func (m *WorkerGroupSpec) GetReplicas() int32 { + if m != nil { + return m.Replicas + } + return 0 +} + +func (m *WorkerGroupSpec) GetMinReplicas() int32 { + if m != nil { + return m.MinReplicas + } + return 0 +} + +func (m *WorkerGroupSpec) GetMaxReplicas() int32 { + if m != nil { + return m.MaxReplicas + } + return 0 +} + +func (m *WorkerGroupSpec) GetRayStartParams() map[string]string { + if m != nil { + return m.RayStartParams + } + return nil +} + +func init() { + proto.RegisterType((*RayJob)(nil), "flyteidl.plugins.RayJob") + proto.RegisterType((*RayCluster)(nil), "flyteidl.plugins.RayCluster") + proto.RegisterType((*HeadGroupSpec)(nil), "flyteidl.plugins.HeadGroupSpec") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry") + proto.RegisterType((*WorkerGroupSpec)(nil), "flyteidl.plugins.WorkerGroupSpec") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry") +} + +func init() { proto.RegisterFile("flyteidl/plugins/ray.proto", fileDescriptor_b980f6d58c7489d7) } + +var fileDescriptor_b980f6d58c7489d7 = []byte{ + // 412 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x93, 0x4d, 0xcb, 0xd3, 0x40, + 0x10, 0xc7, 0x49, 0x6a, 0x8b, 0x9d, 0x58, 0x5b, 0x57, 0x0f, 0xa5, 0x28, 0x6d, 0x73, 0xea, 0xc5, + 0x04, 0x5a, 0xc4, 0x17, 0xf0, 0xa0, 0x52, 0x2a, 0x82, 0x22, 0xdb, 0x83, 0x20, 0x48, 0xd8, 0xa4, + 0x6b, 0x12, 0x9a, 0xec, 0x2e, 0x9b, 0x4d, 0xdb, 0x7c, 0x1f, 0xbf, 0x80, 0x17, 0x3f, 0x9f, 0x64, + 0x9b, 0x27, 0x7d, 0x85, 0xde, 0x9e, 0xdb, 0xce, 0xcc, 0x7f, 0xfe, 0x33, 0xf9, 0x85, 0x81, 0xc1, + 0xef, 0xa4, 0x50, 0x34, 0x5e, 0x25, 0xae, 0x48, 0xf2, 0x30, 0x66, 0x99, 0x2b, 0x49, 0xe1, 0x08, + 0xc9, 0x15, 0x47, 0xbd, 0xbb, 0x9a, 0x53, 0xd5, 0xec, 0x08, 0x5a, 0x98, 0x14, 0x5f, 0xb8, 0x8f, + 0xde, 0x83, 0x25, 0x49, 0xe1, 0x05, 0x49, 0x9e, 0x29, 0x2a, 0xfb, 0xc6, 0xc8, 0x98, 0x58, 0xd3, + 0xe7, 0xce, 0x79, 0x87, 0x83, 0x49, 0xf1, 0x69, 0xaf, 0xc1, 0x20, 0xeb, 0x37, 0x1a, 0x82, 0x25, + 0x73, 0xa6, 0xe2, 0x94, 0x7a, 0x94, 0x6d, 0xfa, 0xe6, 0xc8, 0x98, 0xb4, 0x31, 0x54, 0xa9, 0x39, + 0xdb, 0xd8, 0x7f, 0x0c, 0x80, 0x43, 0x2f, 0x5a, 0x40, 0x37, 0xa2, 0x64, 0xe5, 0x85, 0x92, 0xe7, + 0xc2, 0xcb, 0x04, 0x0d, 0xaa, 0x91, 0xc3, 0xcb, 0x91, 0x9f, 0x29, 0x59, 0x2d, 0x4a, 0xdd, 0x52, + 0xd0, 0x00, 0x77, 0xa2, 0xe3, 0x10, 0x7d, 0x85, 0x27, 0x5b, 0x2e, 0xd7, 0x54, 0x1e, 0x5b, 0x99, + 0xa3, 0xc6, 0xc4, 0x9a, 0x8e, 0x2f, 0xad, 0x7e, 0x68, 0xe9, 0xc1, 0xac, 0xbb, 0x3d, 0x4d, 0xd8, + 0x7f, 0x0d, 0xe8, 0x9c, 0xcc, 0x43, 0xbf, 0xa0, 0x57, 0x82, 0xc9, 0x14, 0x91, 0xca, 0x13, 0x44, + 0x92, 0x34, 0xeb, 0x1b, 0xda, 0x7f, 0x76, 0x63, 0xd5, 0x92, 0xd5, 0xb2, 0x6c, 0xfb, 0xae, 0xbb, + 0xe6, 0x4c, 0xc9, 0x02, 0x3f, 0x96, 0x27, 0xc9, 0xc1, 0x07, 0x78, 0x7a, 0x45, 0x86, 0x7a, 0xd0, + 0x58, 0xd3, 0x42, 0x33, 0x69, 0xe3, 0xf2, 0x89, 0x9e, 0x41, 0x73, 0x43, 0x92, 0x9c, 0x56, 0x6c, + 0xf7, 0xc1, 0x3b, 0xf3, 0x8d, 0x61, 0xff, 0x33, 0xa1, 0x7b, 0xf6, 0x61, 0xe8, 0x05, 0xc0, 0x9e, + 0x07, 0x23, 0x29, 0xad, 0x6c, 0xda, 0x3a, 0xf3, 0x8d, 0xa4, 0x14, 0x0d, 0xe0, 0xa1, 0xa4, 0x22, + 0x89, 0x03, 0x92, 0x69, 0xbf, 0x26, 0xae, 0x63, 0x34, 0x86, 0x47, 0x69, 0xcc, 0xbc, 0xba, 0xde, + 0xd0, 0x75, 0x2b, 0x8d, 0x19, 0x3e, 0x96, 0x90, 0xdd, 0x41, 0xf2, 0xa0, 0x92, 0x90, 0x5d, 0x2d, + 0xf1, 0xae, 0x60, 0x6b, 0x6a, 0x6c, 0xaf, 0x6e, 0xfe, 0x96, 0x7b, 0x02, 0xf7, 0xf1, 0xed, 0xcf, + 0xd7, 0x61, 0xac, 0xa2, 0xdc, 0x77, 0x02, 0x9e, 0xba, 0x7a, 0x2b, 0x2e, 0x43, 0xb7, 0xbe, 0xa0, + 0x90, 0x32, 0x57, 0xf8, 0x2f, 0x43, 0xee, 0x9e, 0x1f, 0x95, 0xdf, 0xd2, 0x17, 0x35, 0xfb, 0x1f, + 0x00, 0x00, 0xff, 0xff, 0xfb, 0xc2, 0x9c, 0xe6, 0x6f, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.validate.go new file mode 100644 index 0000000000..e85e27a8ac --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.validate.go @@ -0,0 +1,344 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/ray.proto + +package plugins + +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 _ray_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 RayJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RayJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRayCluster()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RayJobValidationError{ + field: "RayCluster", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RuntimeEnv + + return nil +} + +// RayJobValidationError is the validation error returned by RayJob.Validate if +// the designated constraints aren't met. +type RayJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RayJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RayJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RayJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RayJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RayJobValidationError) ErrorName() string { return "RayJobValidationError" } + +// Error satisfies the builtin error interface +func (e RayJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRayJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RayJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RayJobValidationError{} + +// Validate checks the field values on RayCluster with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *RayCluster) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetHeadGroupSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RayClusterValidationError{ + field: "HeadGroupSpec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetWorkerGroupSpec() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return RayClusterValidationError{ + field: fmt.Sprintf("WorkerGroupSpec[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// RayClusterValidationError is the validation error returned by +// RayCluster.Validate if the designated constraints aren't met. +type RayClusterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RayClusterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RayClusterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RayClusterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RayClusterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RayClusterValidationError) ErrorName() string { return "RayClusterValidationError" } + +// Error satisfies the builtin error interface +func (e RayClusterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRayCluster.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RayClusterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RayClusterValidationError{} + +// Validate checks the field values on HeadGroupSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *HeadGroupSpec) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RayStartParams + + return nil +} + +// HeadGroupSpecValidationError is the validation error returned by +// HeadGroupSpec.Validate if the designated constraints aren't met. +type HeadGroupSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HeadGroupSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HeadGroupSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HeadGroupSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HeadGroupSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HeadGroupSpecValidationError) ErrorName() string { return "HeadGroupSpecValidationError" } + +// Error satisfies the builtin error interface +func (e HeadGroupSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHeadGroupSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HeadGroupSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HeadGroupSpecValidationError{} + +// Validate checks the field values on WorkerGroupSpec with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkerGroupSpec) Validate() error { + if m == nil { + return nil + } + + // no validation rules for GroupName + + // no validation rules for Replicas + + // no validation rules for MinReplicas + + // no validation rules for MaxReplicas + + // no validation rules for RayStartParams + + return nil +} + +// WorkerGroupSpecValidationError is the validation error returned by +// WorkerGroupSpec.Validate if the designated constraints aren't met. +type WorkerGroupSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkerGroupSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkerGroupSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkerGroupSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkerGroupSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkerGroupSpecValidationError) ErrorName() string { return "WorkerGroupSpecValidationError" } + +// Error satisfies the builtin error interface +func (e WorkerGroupSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkerGroupSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkerGroupSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkerGroupSpecValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go new file mode 100644 index 0000000000..c1021f6896 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.go @@ -0,0 +1,437 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 HyperparameterTuningObjectiveType_Value int32 + +const ( + HyperparameterTuningObjectiveType_MINIMIZE HyperparameterTuningObjectiveType_Value = 0 + HyperparameterTuningObjectiveType_MAXIMIZE HyperparameterTuningObjectiveType_Value = 1 +) + +var HyperparameterTuningObjectiveType_Value_name = map[int32]string{ + 0: "MINIMIZE", + 1: "MAXIMIZE", +} + +var HyperparameterTuningObjectiveType_Value_value = map[string]int32{ + "MINIMIZE": 0, + "MAXIMIZE": 1, +} + +func (x HyperparameterTuningObjectiveType_Value) String() string { + return proto.EnumName(HyperparameterTuningObjectiveType_Value_name, int32(x)) +} + +func (HyperparameterTuningObjectiveType_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{1, 0} +} + +type HyperparameterTuningStrategy_Value int32 + +const ( + HyperparameterTuningStrategy_BAYESIAN HyperparameterTuningStrategy_Value = 0 + HyperparameterTuningStrategy_RANDOM HyperparameterTuningStrategy_Value = 1 +) + +var HyperparameterTuningStrategy_Value_name = map[int32]string{ + 0: "BAYESIAN", + 1: "RANDOM", +} + +var HyperparameterTuningStrategy_Value_value = map[string]int32{ + "BAYESIAN": 0, + "RANDOM": 1, +} + +func (x HyperparameterTuningStrategy_Value) String() string { + return proto.EnumName(HyperparameterTuningStrategy_Value_name, int32(x)) +} + +func (HyperparameterTuningStrategy_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{3, 0} +} + +type TrainingJobEarlyStoppingType_Value int32 + +const ( + TrainingJobEarlyStoppingType_OFF TrainingJobEarlyStoppingType_Value = 0 + TrainingJobEarlyStoppingType_AUTO TrainingJobEarlyStoppingType_Value = 1 +) + +var TrainingJobEarlyStoppingType_Value_name = map[int32]string{ + 0: "OFF", + 1: "AUTO", +} + +var TrainingJobEarlyStoppingType_Value_value = map[string]int32{ + "OFF": 0, + "AUTO": 1, +} + +func (x TrainingJobEarlyStoppingType_Value) String() string { + return proto.EnumName(TrainingJobEarlyStoppingType_Value_name, int32(x)) +} + +func (TrainingJobEarlyStoppingType_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{4, 0} +} + +// A pass-through for SageMaker's hyperparameter tuning job +type HyperparameterTuningJob struct { + // The underlying training job that the hyperparameter tuning job will launch during the process + TrainingJob *TrainingJob `protobuf:"bytes,1,opt,name=training_job,json=trainingJob,proto3" json:"training_job,omitempty"` + // The maximum number of training jobs that an hpo job can launch. For resource limit purpose. + // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html + MaxNumberOfTrainingJobs int64 `protobuf:"varint,2,opt,name=max_number_of_training_jobs,json=maxNumberOfTrainingJobs,proto3" json:"max_number_of_training_jobs,omitempty"` + // The maximum number of concurrent training job that an hpo job can launch + // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html + MaxParallelTrainingJobs int64 `protobuf:"varint,3,opt,name=max_parallel_training_jobs,json=maxParallelTrainingJobs,proto3" json:"max_parallel_training_jobs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningJob) Reset() { *m = HyperparameterTuningJob{} } +func (m *HyperparameterTuningJob) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningJob) ProtoMessage() {} +func (*HyperparameterTuningJob) Descriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{0} +} + +func (m *HyperparameterTuningJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningJob.Unmarshal(m, b) +} +func (m *HyperparameterTuningJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningJob.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningJob.Merge(m, src) +} +func (m *HyperparameterTuningJob) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningJob.Size(m) +} +func (m *HyperparameterTuningJob) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningJob.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningJob proto.InternalMessageInfo + +func (m *HyperparameterTuningJob) GetTrainingJob() *TrainingJob { + if m != nil { + return m.TrainingJob + } + return nil +} + +func (m *HyperparameterTuningJob) GetMaxNumberOfTrainingJobs() int64 { + if m != nil { + return m.MaxNumberOfTrainingJobs + } + return 0 +} + +func (m *HyperparameterTuningJob) GetMaxParallelTrainingJobs() int64 { + if m != nil { + return m.MaxParallelTrainingJobs + } + return 0 +} + +// HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job +// with respect to the specified metric. +type HyperparameterTuningObjectiveType struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningObjectiveType) Reset() { *m = HyperparameterTuningObjectiveType{} } +func (m *HyperparameterTuningObjectiveType) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningObjectiveType) ProtoMessage() {} +func (*HyperparameterTuningObjectiveType) Descriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{1} +} + +func (m *HyperparameterTuningObjectiveType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningObjectiveType.Unmarshal(m, b) +} +func (m *HyperparameterTuningObjectiveType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningObjectiveType.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningObjectiveType) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningObjectiveType.Merge(m, src) +} +func (m *HyperparameterTuningObjectiveType) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningObjectiveType.Size(m) +} +func (m *HyperparameterTuningObjectiveType) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningObjectiveType.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningObjectiveType proto.InternalMessageInfo + +// The target metric and the objective of the hyperparameter tuning. +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html +type HyperparameterTuningObjective struct { + // HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job + // with respect to the specified metric. + ObjectiveType HyperparameterTuningObjectiveType_Value `protobuf:"varint,1,opt,name=objective_type,json=objectiveType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType_Value" json:"objective_type,omitempty"` + // The target metric name, which is the user-defined name of the metric specified in the + // training job's algorithm specification + MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningObjective) Reset() { *m = HyperparameterTuningObjective{} } +func (m *HyperparameterTuningObjective) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningObjective) ProtoMessage() {} +func (*HyperparameterTuningObjective) Descriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{2} +} + +func (m *HyperparameterTuningObjective) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningObjective.Unmarshal(m, b) +} +func (m *HyperparameterTuningObjective) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningObjective.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningObjective) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningObjective.Merge(m, src) +} +func (m *HyperparameterTuningObjective) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningObjective.Size(m) +} +func (m *HyperparameterTuningObjective) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningObjective.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningObjective proto.InternalMessageInfo + +func (m *HyperparameterTuningObjective) GetObjectiveType() HyperparameterTuningObjectiveType_Value { + if m != nil { + return m.ObjectiveType + } + return HyperparameterTuningObjectiveType_MINIMIZE +} + +func (m *HyperparameterTuningObjective) GetMetricName() string { + if m != nil { + return m.MetricName + } + return "" +} + +// Setting the strategy used when searching in the hyperparameter space +// Refer this doc for more details: +// https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ +type HyperparameterTuningStrategy struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningStrategy) Reset() { *m = HyperparameterTuningStrategy{} } +func (m *HyperparameterTuningStrategy) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningStrategy) ProtoMessage() {} +func (*HyperparameterTuningStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{3} +} + +func (m *HyperparameterTuningStrategy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningStrategy.Unmarshal(m, b) +} +func (m *HyperparameterTuningStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningStrategy.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningStrategy.Merge(m, src) +} +func (m *HyperparameterTuningStrategy) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningStrategy.Size(m) +} +func (m *HyperparameterTuningStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningStrategy proto.InternalMessageInfo + +// When the training jobs launched by the hyperparameter tuning job are not improving significantly, +// a hyperparameter tuning job can be stopping early. +// Note that there's only a subset of built-in algorithms that supports early stopping. +// see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html +type TrainingJobEarlyStoppingType struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJobEarlyStoppingType) Reset() { *m = TrainingJobEarlyStoppingType{} } +func (m *TrainingJobEarlyStoppingType) String() string { return proto.CompactTextString(m) } +func (*TrainingJobEarlyStoppingType) ProtoMessage() {} +func (*TrainingJobEarlyStoppingType) Descriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{4} +} + +func (m *TrainingJobEarlyStoppingType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJobEarlyStoppingType.Unmarshal(m, b) +} +func (m *TrainingJobEarlyStoppingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJobEarlyStoppingType.Marshal(b, m, deterministic) +} +func (m *TrainingJobEarlyStoppingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJobEarlyStoppingType.Merge(m, src) +} +func (m *TrainingJobEarlyStoppingType) XXX_Size() int { + return xxx_messageInfo_TrainingJobEarlyStoppingType.Size(m) +} +func (m *TrainingJobEarlyStoppingType) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJobEarlyStoppingType.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJobEarlyStoppingType proto.InternalMessageInfo + +// The specification of the hyperparameter tuning process +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config +type HyperparameterTuningJobConfig struct { + // ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range + HyperparameterRanges *ParameterRanges `protobuf:"bytes,1,opt,name=hyperparameter_ranges,json=hyperparameterRanges,proto3" json:"hyperparameter_ranges,omitempty"` + // Setting the strategy used when searching in the hyperparameter space + TuningStrategy HyperparameterTuningStrategy_Value `protobuf:"varint,2,opt,name=tuning_strategy,json=tuningStrategy,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterTuningStrategy_Value" json:"tuning_strategy,omitempty"` + // The target metric and the objective of the hyperparameter tuning. + TuningObjective *HyperparameterTuningObjective `protobuf:"bytes,3,opt,name=tuning_objective,json=tuningObjective,proto3" json:"tuning_objective,omitempty"` + // When the training jobs launched by the hyperparameter tuning job are not improving significantly, + // a hyperparameter tuning job can be stopping early. + TrainingJobEarlyStoppingType TrainingJobEarlyStoppingType_Value `protobuf:"varint,4,opt,name=training_job_early_stopping_type,json=trainingJobEarlyStoppingType,proto3,enum=flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType_Value" json:"training_job_early_stopping_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterTuningJobConfig) Reset() { *m = HyperparameterTuningJobConfig{} } +func (m *HyperparameterTuningJobConfig) String() string { return proto.CompactTextString(m) } +func (*HyperparameterTuningJobConfig) ProtoMessage() {} +func (*HyperparameterTuningJobConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_84374f4d1322c4ba, []int{5} +} + +func (m *HyperparameterTuningJobConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterTuningJobConfig.Unmarshal(m, b) +} +func (m *HyperparameterTuningJobConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterTuningJobConfig.Marshal(b, m, deterministic) +} +func (m *HyperparameterTuningJobConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterTuningJobConfig.Merge(m, src) +} +func (m *HyperparameterTuningJobConfig) XXX_Size() int { + return xxx_messageInfo_HyperparameterTuningJobConfig.Size(m) +} +func (m *HyperparameterTuningJobConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterTuningJobConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterTuningJobConfig proto.InternalMessageInfo + +func (m *HyperparameterTuningJobConfig) GetHyperparameterRanges() *ParameterRanges { + if m != nil { + return m.HyperparameterRanges + } + return nil +} + +func (m *HyperparameterTuningJobConfig) GetTuningStrategy() HyperparameterTuningStrategy_Value { + if m != nil { + return m.TuningStrategy + } + return HyperparameterTuningStrategy_BAYESIAN +} + +func (m *HyperparameterTuningJobConfig) GetTuningObjective() *HyperparameterTuningObjective { + if m != nil { + return m.TuningObjective + } + return nil +} + +func (m *HyperparameterTuningJobConfig) GetTrainingJobEarlyStoppingType() TrainingJobEarlyStoppingType_Value { + if m != nil { + return m.TrainingJobEarlyStoppingType + } + return TrainingJobEarlyStoppingType_OFF +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType_Value", HyperparameterTuningObjectiveType_Value_name, HyperparameterTuningObjectiveType_Value_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterTuningStrategy_Value", HyperparameterTuningStrategy_Value_name, HyperparameterTuningStrategy_Value_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType_Value", TrainingJobEarlyStoppingType_Value_name, TrainingJobEarlyStoppingType_Value_value) + proto.RegisterType((*HyperparameterTuningJob)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningJob") + proto.RegisterType((*HyperparameterTuningObjectiveType)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType") + proto.RegisterType((*HyperparameterTuningObjective)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningObjective") + proto.RegisterType((*HyperparameterTuningStrategy)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningStrategy") + proto.RegisterType((*TrainingJobEarlyStoppingType)(nil), "flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType") + proto.RegisterType((*HyperparameterTuningJobConfig)(nil), "flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto", fileDescriptor_84374f4d1322c4ba) +} + +var fileDescriptor_84374f4d1322c4ba = []byte{ + // 554 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xd1, 0x6e, 0xd3, 0x30, + 0x14, 0x5d, 0xe8, 0x18, 0xe3, 0x76, 0x94, 0xc8, 0x02, 0x6d, 0x2a, 0x45, 0x74, 0xe1, 0x81, 0x49, + 0x68, 0x89, 0x28, 0x0f, 0x68, 0x03, 0x21, 0x65, 0xa3, 0xd3, 0x5a, 0xa9, 0xed, 0x94, 0x16, 0x04, + 0x7b, 0x09, 0x4e, 0xe7, 0x7a, 0x29, 0x49, 0x1c, 0x39, 0x2e, 0x5a, 0x7e, 0x80, 0xaf, 0xe1, 0x87, + 0x78, 0xe3, 0x53, 0x50, 0x1d, 0xb7, 0x4d, 0xab, 0x92, 0x09, 0x1e, 0x7d, 0x75, 0xcf, 0xf1, 0xb9, + 0xe7, 0x5c, 0x1b, 0x8e, 0x47, 0x41, 0x2a, 0x88, 0x7f, 0x15, 0x58, 0x71, 0x30, 0xa1, 0x7e, 0x94, + 0x58, 0x09, 0xa6, 0x24, 0xc4, 0xdf, 0x08, 0xb7, 0xae, 0xd3, 0x98, 0xf0, 0x18, 0x73, 0x1c, 0x12, + 0x41, 0xb8, 0x2b, 0x26, 0x91, 0x1f, 0x51, 0x77, 0xcc, 0x3c, 0x33, 0xe6, 0x4c, 0x30, 0x54, 0x9d, + 0x61, 0x4d, 0x85, 0x35, 0xe7, 0xd8, 0xea, 0xab, 0x02, 0xde, 0x05, 0x25, 0xc7, 0x11, 0x25, 0x49, + 0x46, 0x57, 0x3d, 0x2c, 0x80, 0x08, 0x8e, 0xfd, 0xe5, 0xdb, 0x8d, 0xdf, 0x1a, 0xec, 0x9e, 0x2f, + 0x29, 0x1c, 0x48, 0x81, 0x6d, 0xe6, 0xa1, 0x36, 0xec, 0xe4, 0x11, 0x7b, 0x5a, 0x5d, 0x3b, 0x28, + 0x37, 0x5e, 0x98, 0x7f, 0x17, 0x6c, 0x0e, 0x54, 0x7f, 0x9b, 0x79, 0x4e, 0x59, 0x2c, 0x0e, 0xe8, + 0x1d, 0x3c, 0x09, 0xf1, 0x8d, 0x1b, 0x4d, 0x42, 0x8f, 0x70, 0x97, 0x8d, 0xdc, 0x3c, 0x73, 0xb2, + 0x77, 0xa7, 0xae, 0x1d, 0x94, 0x9c, 0xdd, 0x10, 0xdf, 0x74, 0x65, 0x47, 0x6f, 0x94, 0x63, 0x4a, + 0xd0, 0x5b, 0xa8, 0x4e, 0xd1, 0x53, 0x8d, 0x41, 0x40, 0x82, 0x15, 0x70, 0x69, 0x0e, 0xbe, 0x50, + 0x0d, 0x79, 0xb0, 0x71, 0x0e, 0xfb, 0xeb, 0x26, 0xec, 0x79, 0x63, 0x32, 0x14, 0xfe, 0x77, 0x32, + 0x48, 0x63, 0x62, 0x3c, 0x87, 0xbb, 0x9f, 0x70, 0x30, 0x21, 0x68, 0x07, 0xb6, 0x3b, 0xad, 0x6e, + 0xab, 0xd3, 0xba, 0x6c, 0xea, 0x1b, 0xf2, 0x64, 0x7f, 0xce, 0x4e, 0x9a, 0xf1, 0x53, 0x83, 0xa7, + 0x85, 0x54, 0x68, 0x0c, 0x15, 0x36, 0x3b, 0xb8, 0x22, 0x8d, 0x89, 0x34, 0xad, 0xd2, 0x38, 0x2d, + 0x32, 0xed, 0x56, 0x75, 0xa6, 0x94, 0xe6, 0x3c, 0x60, 0xf9, 0x22, 0x7a, 0x06, 0xe5, 0x90, 0x08, + 0xee, 0x0f, 0xdd, 0x08, 0x87, 0x44, 0x5a, 0x78, 0xdf, 0x81, 0xac, 0xd4, 0xc5, 0x21, 0x31, 0x6c, + 0xa8, 0xad, 0xa3, 0xee, 0x0b, 0x8e, 0x05, 0xa1, 0xa9, 0xb1, 0x9f, 0x9b, 0xf9, 0xc4, 0xfe, 0xd2, + 0xec, 0xb7, 0xec, 0xae, 0xbe, 0x81, 0x00, 0xb6, 0x1c, 0xbb, 0xfb, 0xa1, 0xd7, 0xd1, 0x35, 0xe3, + 0x18, 0x6a, 0x39, 0x2f, 0x9b, 0x98, 0x07, 0x69, 0x5f, 0xb0, 0x38, 0xf6, 0x23, 0x2a, 0x6d, 0xab, + 0xce, 0x28, 0xee, 0x41, 0xa9, 0x77, 0x76, 0xa6, 0x6f, 0xa0, 0x6d, 0xd8, 0xb4, 0x3f, 0x0e, 0x7a, + 0xba, 0x66, 0xfc, 0x2a, 0xad, 0x77, 0xab, 0xcd, 0xbc, 0x53, 0x16, 0x8d, 0x7c, 0x8a, 0xbe, 0xc2, + 0xe3, 0x95, 0xd7, 0x91, 0xad, 0xb2, 0xda, 0xb4, 0x97, 0x45, 0xa6, 0x5d, 0xcc, 0x30, 0x8e, 0x84, + 0x38, 0x8f, 0x96, 0x99, 0xb2, 0x2a, 0xa2, 0xf0, 0x50, 0x3d, 0xb8, 0x44, 0x4d, 0x2d, 0x7d, 0xaa, + 0x34, 0xde, 0xff, 0x6b, 0x20, 0x33, 0xd7, 0x54, 0x16, 0x15, 0xb1, 0x54, 0x45, 0x57, 0xa0, 0xab, + 0x8b, 0xe6, 0x21, 0xc9, 0xbd, 0x2c, 0x37, 0x8e, 0xfe, 0x3b, 0x7a, 0x47, 0x69, 0x5f, 0xac, 0xd7, + 0x0f, 0x0d, 0xea, 0xf9, 0xdd, 0x77, 0xc9, 0x34, 0x11, 0x37, 0x51, 0x91, 0x64, 0x1b, 0xb7, 0x79, + 0xfb, 0x80, 0x45, 0x99, 0xaa, 0x01, 0x6b, 0xa2, 0xa0, 0xe7, 0xe4, 0xe8, 0xf2, 0x0d, 0xf5, 0xc5, + 0xf5, 0xc4, 0x33, 0x87, 0x2c, 0xb4, 0xe4, 0x4d, 0x8c, 0x53, 0x6b, 0xfe, 0xf7, 0x50, 0x12, 0x59, + 0xb1, 0x77, 0x48, 0x99, 0xb5, 0xfa, 0x1d, 0x79, 0x5b, 0xf2, 0xe3, 0x79, 0xfd, 0x27, 0x00, 0x00, + 0xff, 0xff, 0x7d, 0x7a, 0x14, 0x9c, 0x34, 0x05, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go new file mode 100644 index 0000000000..08e5ef6b09 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.pb.validate.go @@ -0,0 +1,486 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto + +package plugins + +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 _hyperparameter_tuning_job_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 HyperparameterTuningJob with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterTuningJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTrainingJob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HyperparameterTuningJobValidationError{ + field: "TrainingJob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for MaxNumberOfTrainingJobs + + // no validation rules for MaxParallelTrainingJobs + + return nil +} + +// HyperparameterTuningJobValidationError is the validation error returned by +// HyperparameterTuningJob.Validate if the designated constraints aren't met. +type HyperparameterTuningJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterTuningJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterTuningJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterTuningJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterTuningJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterTuningJobValidationError) ErrorName() string { + return "HyperparameterTuningJobValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterTuningJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterTuningJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterTuningJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterTuningJobValidationError{} + +// Validate checks the field values on HyperparameterTuningObjectiveType with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *HyperparameterTuningObjectiveType) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// HyperparameterTuningObjectiveTypeValidationError is the validation error +// returned by HyperparameterTuningObjectiveType.Validate if the designated +// constraints aren't met. +type HyperparameterTuningObjectiveTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterTuningObjectiveTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterTuningObjectiveTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterTuningObjectiveTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterTuningObjectiveTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterTuningObjectiveTypeValidationError) ErrorName() string { + return "HyperparameterTuningObjectiveTypeValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterTuningObjectiveTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterTuningObjectiveType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterTuningObjectiveTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterTuningObjectiveTypeValidationError{} + +// Validate checks the field values on HyperparameterTuningObjective with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterTuningObjective) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ObjectiveType + + // no validation rules for MetricName + + return nil +} + +// HyperparameterTuningObjectiveValidationError is the validation error +// returned by HyperparameterTuningObjective.Validate if the designated +// constraints aren't met. +type HyperparameterTuningObjectiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterTuningObjectiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterTuningObjectiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterTuningObjectiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterTuningObjectiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterTuningObjectiveValidationError) ErrorName() string { + return "HyperparameterTuningObjectiveValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterTuningObjectiveValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterTuningObjective.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterTuningObjectiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterTuningObjectiveValidationError{} + +// Validate checks the field values on HyperparameterTuningStrategy with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterTuningStrategy) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// HyperparameterTuningStrategyValidationError is the validation error returned +// by HyperparameterTuningStrategy.Validate if the designated constraints +// aren't met. +type HyperparameterTuningStrategyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterTuningStrategyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterTuningStrategyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterTuningStrategyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterTuningStrategyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterTuningStrategyValidationError) ErrorName() string { + return "HyperparameterTuningStrategyValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterTuningStrategyValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterTuningStrategy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterTuningStrategyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterTuningStrategyValidationError{} + +// Validate checks the field values on TrainingJobEarlyStoppingType with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TrainingJobEarlyStoppingType) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// TrainingJobEarlyStoppingTypeValidationError is the validation error returned +// by TrainingJobEarlyStoppingType.Validate if the designated constraints +// aren't met. +type TrainingJobEarlyStoppingTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TrainingJobEarlyStoppingTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TrainingJobEarlyStoppingTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TrainingJobEarlyStoppingTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TrainingJobEarlyStoppingTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TrainingJobEarlyStoppingTypeValidationError) ErrorName() string { + return "TrainingJobEarlyStoppingTypeValidationError" +} + +// Error satisfies the builtin error interface +func (e TrainingJobEarlyStoppingTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTrainingJobEarlyStoppingType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TrainingJobEarlyStoppingTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TrainingJobEarlyStoppingTypeValidationError{} + +// Validate checks the field values on HyperparameterTuningJobConfig with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterTuningJobConfig) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetHyperparameterRanges()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HyperparameterTuningJobConfigValidationError{ + field: "HyperparameterRanges", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TuningStrategy + + if v, ok := interface{}(m.GetTuningObjective()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HyperparameterTuningJobConfigValidationError{ + field: "TuningObjective", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for TrainingJobEarlyStoppingType + + return nil +} + +// HyperparameterTuningJobConfigValidationError is the validation error +// returned by HyperparameterTuningJobConfig.Validate if the designated +// constraints aren't met. +type HyperparameterTuningJobConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterTuningJobConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterTuningJobConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterTuningJobConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterTuningJobConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterTuningJobConfigValidationError) ErrorName() string { + return "HyperparameterTuningJobConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterTuningJobConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterTuningJobConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterTuningJobConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterTuningJobConfigValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go new file mode 100644 index 0000000000..dbf8dedd97 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.go @@ -0,0 +1,435 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 HyperparameterScalingType_Value int32 + +const ( + HyperparameterScalingType_AUTO HyperparameterScalingType_Value = 0 + HyperparameterScalingType_LINEAR HyperparameterScalingType_Value = 1 + HyperparameterScalingType_LOGARITHMIC HyperparameterScalingType_Value = 2 + HyperparameterScalingType_REVERSELOGARITHMIC HyperparameterScalingType_Value = 3 +) + +var HyperparameterScalingType_Value_name = map[int32]string{ + 0: "AUTO", + 1: "LINEAR", + 2: "LOGARITHMIC", + 3: "REVERSELOGARITHMIC", +} + +var HyperparameterScalingType_Value_value = map[string]int32{ + "AUTO": 0, + "LINEAR": 1, + "LOGARITHMIC": 2, + "REVERSELOGARITHMIC": 3, +} + +func (x HyperparameterScalingType_Value) String() string { + return proto.EnumName(HyperparameterScalingType_Value_name, int32(x)) +} + +func (HyperparameterScalingType_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5f31fcc87eba0a70, []int{0, 0} +} + +// HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter +// For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +// See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ +type HyperparameterScalingType struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HyperparameterScalingType) Reset() { *m = HyperparameterScalingType{} } +func (m *HyperparameterScalingType) String() string { return proto.CompactTextString(m) } +func (*HyperparameterScalingType) ProtoMessage() {} +func (*HyperparameterScalingType) Descriptor() ([]byte, []int) { + return fileDescriptor_5f31fcc87eba0a70, []int{0} +} + +func (m *HyperparameterScalingType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HyperparameterScalingType.Unmarshal(m, b) +} +func (m *HyperparameterScalingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HyperparameterScalingType.Marshal(b, m, deterministic) +} +func (m *HyperparameterScalingType) XXX_Merge(src proto.Message) { + xxx_messageInfo_HyperparameterScalingType.Merge(m, src) +} +func (m *HyperparameterScalingType) XXX_Size() int { + return xxx_messageInfo_HyperparameterScalingType.Size(m) +} +func (m *HyperparameterScalingType) XXX_DiscardUnknown() { + xxx_messageInfo_HyperparameterScalingType.DiscardUnknown(m) +} + +var xxx_messageInfo_HyperparameterScalingType proto.InternalMessageInfo + +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +type ContinuousParameterRange struct { + MaxValue float64 `protobuf:"fixed64,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` + MinValue float64 `protobuf:"fixed64,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` + ScalingType HyperparameterScalingType_Value `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType_Value" json:"scaling_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContinuousParameterRange) Reset() { *m = ContinuousParameterRange{} } +func (m *ContinuousParameterRange) String() string { return proto.CompactTextString(m) } +func (*ContinuousParameterRange) ProtoMessage() {} +func (*ContinuousParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_5f31fcc87eba0a70, []int{1} +} + +func (m *ContinuousParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContinuousParameterRange.Unmarshal(m, b) +} +func (m *ContinuousParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContinuousParameterRange.Marshal(b, m, deterministic) +} +func (m *ContinuousParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContinuousParameterRange.Merge(m, src) +} +func (m *ContinuousParameterRange) XXX_Size() int { + return xxx_messageInfo_ContinuousParameterRange.Size(m) +} +func (m *ContinuousParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_ContinuousParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_ContinuousParameterRange proto.InternalMessageInfo + +func (m *ContinuousParameterRange) GetMaxValue() float64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetMinValue() float64 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *ContinuousParameterRange) GetScalingType() HyperparameterScalingType_Value { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +// IntegerParameterRange refers to a discrete range of hyperparameter values, allowing +// users to specify the search space of an integer hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +type IntegerParameterRange struct { + MaxValue int64 `protobuf:"varint,1,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` + MinValue int64 `protobuf:"varint,2,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` + ScalingType HyperparameterScalingType_Value `protobuf:"varint,3,opt,name=scaling_type,json=scalingType,proto3,enum=flyteidl.plugins.sagemaker.HyperparameterScalingType_Value" json:"scaling_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntegerParameterRange) Reset() { *m = IntegerParameterRange{} } +func (m *IntegerParameterRange) String() string { return proto.CompactTextString(m) } +func (*IntegerParameterRange) ProtoMessage() {} +func (*IntegerParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_5f31fcc87eba0a70, []int{2} +} + +func (m *IntegerParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntegerParameterRange.Unmarshal(m, b) +} +func (m *IntegerParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntegerParameterRange.Marshal(b, m, deterministic) +} +func (m *IntegerParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntegerParameterRange.Merge(m, src) +} +func (m *IntegerParameterRange) XXX_Size() int { + return xxx_messageInfo_IntegerParameterRange.Size(m) +} +func (m *IntegerParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_IntegerParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_IntegerParameterRange proto.InternalMessageInfo + +func (m *IntegerParameterRange) GetMaxValue() int64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func (m *IntegerParameterRange) GetMinValue() int64 { + if m != nil { + return m.MinValue + } + return 0 +} + +func (m *IntegerParameterRange) GetScalingType() HyperparameterScalingType_Value { + if m != nil { + return m.ScalingType + } + return HyperparameterScalingType_AUTO +} + +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +type CategoricalParameterRange struct { + Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CategoricalParameterRange) Reset() { *m = CategoricalParameterRange{} } +func (m *CategoricalParameterRange) String() string { return proto.CompactTextString(m) } +func (*CategoricalParameterRange) ProtoMessage() {} +func (*CategoricalParameterRange) Descriptor() ([]byte, []int) { + return fileDescriptor_5f31fcc87eba0a70, []int{3} +} + +func (m *CategoricalParameterRange) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CategoricalParameterRange.Unmarshal(m, b) +} +func (m *CategoricalParameterRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CategoricalParameterRange.Marshal(b, m, deterministic) +} +func (m *CategoricalParameterRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_CategoricalParameterRange.Merge(m, src) +} +func (m *CategoricalParameterRange) XXX_Size() int { + return xxx_messageInfo_CategoricalParameterRange.Size(m) +} +func (m *CategoricalParameterRange) XXX_DiscardUnknown() { + xxx_messageInfo_CategoricalParameterRange.DiscardUnknown(m) +} + +var xxx_messageInfo_CategoricalParameterRange proto.InternalMessageInfo + +func (m *CategoricalParameterRange) GetValues() []string { + if m != nil { + return m.Values + } + return nil +} + +// ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of +// the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange. +// This one-of structure in Flyte enables specifying a Parameter in a type-safe manner +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +type ParameterRangeOneOf struct { + // Types that are valid to be assigned to ParameterRangeType: + // *ParameterRangeOneOf_ContinuousParameterRange + // *ParameterRangeOneOf_IntegerParameterRange + // *ParameterRangeOneOf_CategoricalParameterRange + ParameterRangeType isParameterRangeOneOf_ParameterRangeType `protobuf_oneof:"parameter_range_type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterRangeOneOf) Reset() { *m = ParameterRangeOneOf{} } +func (m *ParameterRangeOneOf) String() string { return proto.CompactTextString(m) } +func (*ParameterRangeOneOf) ProtoMessage() {} +func (*ParameterRangeOneOf) Descriptor() ([]byte, []int) { + return fileDescriptor_5f31fcc87eba0a70, []int{4} +} + +func (m *ParameterRangeOneOf) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterRangeOneOf.Unmarshal(m, b) +} +func (m *ParameterRangeOneOf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterRangeOneOf.Marshal(b, m, deterministic) +} +func (m *ParameterRangeOneOf) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterRangeOneOf.Merge(m, src) +} +func (m *ParameterRangeOneOf) XXX_Size() int { + return xxx_messageInfo_ParameterRangeOneOf.Size(m) +} +func (m *ParameterRangeOneOf) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterRangeOneOf.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterRangeOneOf proto.InternalMessageInfo + +type isParameterRangeOneOf_ParameterRangeType interface { + isParameterRangeOneOf_ParameterRangeType() +} + +type ParameterRangeOneOf_ContinuousParameterRange struct { + ContinuousParameterRange *ContinuousParameterRange `protobuf:"bytes,1,opt,name=continuous_parameter_range,json=continuousParameterRange,proto3,oneof"` +} + +type ParameterRangeOneOf_IntegerParameterRange struct { + IntegerParameterRange *IntegerParameterRange `protobuf:"bytes,2,opt,name=integer_parameter_range,json=integerParameterRange,proto3,oneof"` +} + +type ParameterRangeOneOf_CategoricalParameterRange struct { + CategoricalParameterRange *CategoricalParameterRange `protobuf:"bytes,3,opt,name=categorical_parameter_range,json=categoricalParameterRange,proto3,oneof"` +} + +func (*ParameterRangeOneOf_ContinuousParameterRange) isParameterRangeOneOf_ParameterRangeType() {} + +func (*ParameterRangeOneOf_IntegerParameterRange) isParameterRangeOneOf_ParameterRangeType() {} + +func (*ParameterRangeOneOf_CategoricalParameterRange) isParameterRangeOneOf_ParameterRangeType() {} + +func (m *ParameterRangeOneOf) GetParameterRangeType() isParameterRangeOneOf_ParameterRangeType { + if m != nil { + return m.ParameterRangeType + } + return nil +} + +func (m *ParameterRangeOneOf) GetContinuousParameterRange() *ContinuousParameterRange { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_ContinuousParameterRange); ok { + return x.ContinuousParameterRange + } + return nil +} + +func (m *ParameterRangeOneOf) GetIntegerParameterRange() *IntegerParameterRange { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_IntegerParameterRange); ok { + return x.IntegerParameterRange + } + return nil +} + +func (m *ParameterRangeOneOf) GetCategoricalParameterRange() *CategoricalParameterRange { + if x, ok := m.GetParameterRangeType().(*ParameterRangeOneOf_CategoricalParameterRange); ok { + return x.CategoricalParameterRange + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ParameterRangeOneOf) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ParameterRangeOneOf_ContinuousParameterRange)(nil), + (*ParameterRangeOneOf_IntegerParameterRange)(nil), + (*ParameterRangeOneOf_CategoricalParameterRange)(nil), + } +} + +// ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +type ParameterRanges struct { + ParameterRangeMap map[string]*ParameterRangeOneOf `protobuf:"bytes,1,rep,name=parameter_range_map,json=parameterRangeMap,proto3" json:"parameter_range_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterRanges) Reset() { *m = ParameterRanges{} } +func (m *ParameterRanges) String() string { return proto.CompactTextString(m) } +func (*ParameterRanges) ProtoMessage() {} +func (*ParameterRanges) Descriptor() ([]byte, []int) { + return fileDescriptor_5f31fcc87eba0a70, []int{5} +} + +func (m *ParameterRanges) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterRanges.Unmarshal(m, b) +} +func (m *ParameterRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterRanges.Marshal(b, m, deterministic) +} +func (m *ParameterRanges) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterRanges.Merge(m, src) +} +func (m *ParameterRanges) XXX_Size() int { + return xxx_messageInfo_ParameterRanges.Size(m) +} +func (m *ParameterRanges) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterRanges.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterRanges proto.InternalMessageInfo + +func (m *ParameterRanges) GetParameterRangeMap() map[string]*ParameterRangeOneOf { + if m != nil { + return m.ParameterRangeMap + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.HyperparameterScalingType_Value", HyperparameterScalingType_Value_name, HyperparameterScalingType_Value_value) + proto.RegisterType((*HyperparameterScalingType)(nil), "flyteidl.plugins.sagemaker.HyperparameterScalingType") + proto.RegisterType((*ContinuousParameterRange)(nil), "flyteidl.plugins.sagemaker.ContinuousParameterRange") + proto.RegisterType((*IntegerParameterRange)(nil), "flyteidl.plugins.sagemaker.IntegerParameterRange") + proto.RegisterType((*CategoricalParameterRange)(nil), "flyteidl.plugins.sagemaker.CategoricalParameterRange") + proto.RegisterType((*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRangeOneOf") + proto.RegisterType((*ParameterRanges)(nil), "flyteidl.plugins.sagemaker.ParameterRanges") + proto.RegisterMapType((map[string]*ParameterRangeOneOf)(nil), "flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntry") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/parameter_ranges.proto", fileDescriptor_5f31fcc87eba0a70) +} + +var fileDescriptor_5f31fcc87eba0a70 = []byte{ + // 512 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x4d, 0x6f, 0xda, 0x40, + 0x10, 0xc5, 0xb8, 0x41, 0x61, 0xa8, 0x1a, 0xba, 0x69, 0x28, 0x90, 0x0b, 0xe2, 0xc4, 0xa5, 0xb6, + 0x42, 0x5a, 0xf5, 0xeb, 0x04, 0xc8, 0x2d, 0x48, 0x49, 0xa9, 0x36, 0x34, 0x87, 0x1e, 0x8a, 0x16, + 0x77, 0xb3, 0x5d, 0x61, 0xaf, 0x57, 0xeb, 0x75, 0x1b, 0xff, 0x84, 0xfe, 0x9c, 0x4a, 0xfd, 0x79, + 0x3d, 0x54, 0x2c, 0x84, 0x24, 0x0e, 0xa6, 0x3d, 0xe5, 0x66, 0xef, 0x7c, 0xbc, 0x37, 0xf3, 0x9e, + 0x06, 0x8e, 0x2e, 0x82, 0x54, 0x53, 0xfe, 0x35, 0x70, 0x65, 0x90, 0x30, 0x2e, 0x62, 0x37, 0x26, + 0x8c, 0x86, 0x64, 0x4e, 0x95, 0x2b, 0x89, 0x22, 0x21, 0xd5, 0x54, 0x4d, 0x15, 0x11, 0x8c, 0xc6, + 0x8e, 0x54, 0x91, 0x8e, 0x50, 0xf3, 0xaa, 0xc4, 0x59, 0x95, 0x38, 0xeb, 0x92, 0xb6, 0x0f, 0x8d, + 0x61, 0x2a, 0xa9, 0x5a, 0x97, 0x9e, 0xf9, 0x24, 0xe0, 0x82, 0x4d, 0x52, 0x49, 0xdb, 0xef, 0x60, + 0xe7, 0x9c, 0x04, 0x09, 0x45, 0xbb, 0xf0, 0xa0, 0xf7, 0x69, 0x32, 0xae, 0x16, 0x10, 0x40, 0xe9, + 0x64, 0xf4, 0xc1, 0xeb, 0xe1, 0xaa, 0x85, 0xf6, 0xa0, 0x72, 0x32, 0x7e, 0xdf, 0xc3, 0xa3, 0xc9, + 0xf0, 0x74, 0x34, 0xa8, 0x16, 0x51, 0x0d, 0x10, 0xf6, 0xce, 0x3d, 0x7c, 0xe6, 0xdd, 0x7c, 0xb7, + 0xdb, 0xbf, 0x2d, 0xa8, 0x0f, 0x22, 0xa1, 0xb9, 0x48, 0xa2, 0x24, 0xfe, 0x78, 0x05, 0x85, 0x17, + 0x24, 0xd1, 0x21, 0x94, 0x43, 0x72, 0x39, 0xfd, 0xbe, 0x00, 0xaa, 0x5b, 0x2d, 0xab, 0x63, 0xe1, + 0xdd, 0x90, 0x5c, 0x2e, 0x81, 0x17, 0x41, 0x2e, 0x56, 0xc1, 0xe2, 0x2a, 0xc8, 0xc5, 0x32, 0xf8, + 0x05, 0x1e, 0xc6, 0x4b, 0xb6, 0x53, 0x9d, 0x4a, 0x5a, 0xb7, 0x5b, 0x56, 0xe7, 0x51, 0xf7, 0xad, + 0x93, 0x3f, 0xae, 0x93, 0x3b, 0xab, 0x63, 0x5a, 0xe2, 0x4a, 0x7c, 0x63, 0xfc, 0x5f, 0x16, 0x1c, + 0x8c, 0x84, 0xa6, 0x8c, 0xaa, 0x7f, 0x71, 0xb6, 0xb7, 0x71, 0xb6, 0xef, 0x91, 0xf3, 0x31, 0x34, + 0x06, 0x44, 0x53, 0x16, 0x29, 0xee, 0x93, 0x20, 0x43, 0xbb, 0x06, 0x25, 0xc3, 0x2a, 0xae, 0x5b, + 0x2d, 0xbb, 0x53, 0xc6, 0xab, 0xbf, 0xf6, 0x4f, 0x1b, 0xf6, 0x6f, 0xa7, 0x8e, 0x05, 0x1d, 0x5f, + 0x20, 0x0d, 0x4d, 0x7f, 0x2d, 0xdb, 0x34, 0xe3, 0x2e, 0x33, 0x77, 0xa5, 0xfb, 0x7c, 0x1b, 0xf5, + 0x3c, 0xd1, 0x87, 0x05, 0x5c, 0xf7, 0xf3, 0x0c, 0x31, 0x87, 0xa7, 0x7c, 0xb9, 0xf5, 0x3b, 0x90, + 0x45, 0x03, 0x79, 0xb4, 0x0d, 0x72, 0xa3, 0x60, 0xc3, 0x02, 0x3e, 0xe0, 0x1b, 0x95, 0xfc, 0x01, + 0x87, 0xfe, 0xf5, 0xbe, 0xee, 0x00, 0xda, 0x06, 0xf0, 0xc5, 0xd6, 0x19, 0xf3, 0xd6, 0x3d, 0x2c, + 0xe0, 0x86, 0x9f, 0x17, 0xec, 0xd7, 0xe0, 0x49, 0x06, 0xcc, 0x18, 0xa2, 0xfd, 0xc7, 0x82, 0xbd, + 0xdb, 0xa9, 0x31, 0x52, 0xb0, 0x9f, 0xcd, 0x0d, 0x89, 0x34, 0x22, 0x56, 0xba, 0xfd, 0x6d, 0xe4, + 0x32, 0x9d, 0x32, 0xff, 0xa7, 0x44, 0x7a, 0x42, 0xab, 0x14, 0x3f, 0x96, 0xd9, 0xf7, 0x66, 0x02, + 0xb5, 0xcd, 0xc9, 0xa8, 0x0a, 0xf6, 0x9c, 0xa6, 0x46, 0xfe, 0x32, 0x5e, 0x7c, 0x22, 0x0f, 0x76, + 0xae, 0xdd, 0x5e, 0xe9, 0xba, 0xff, 0xcf, 0xc8, 0xf8, 0x0c, 0x2f, 0xab, 0xdf, 0x14, 0x5f, 0x59, + 0xfd, 0xd7, 0x9f, 0x5f, 0x32, 0xae, 0xbf, 0x25, 0x33, 0xc7, 0x8f, 0x42, 0xd7, 0xf4, 0x89, 0x14, + 0x73, 0xd7, 0x47, 0x8f, 0x51, 0xe1, 0xca, 0xd9, 0x33, 0x16, 0xb9, 0xd9, 0x3b, 0x38, 0x2b, 0x99, + 0x6b, 0x77, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0xef, 0x0c, 0xeb, 0x47, 0x22, 0x05, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go new file mode 100644 index 0000000000..309486134c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/parameter_ranges.pb.validate.go @@ -0,0 +1,506 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +package plugins + +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 _parameter_ranges_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 HyperparameterScalingType with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HyperparameterScalingType) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// HyperparameterScalingTypeValidationError is the validation error returned by +// HyperparameterScalingType.Validate if the designated constraints aren't met. +type HyperparameterScalingTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HyperparameterScalingTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HyperparameterScalingTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HyperparameterScalingTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HyperparameterScalingTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HyperparameterScalingTypeValidationError) ErrorName() string { + return "HyperparameterScalingTypeValidationError" +} + +// Error satisfies the builtin error interface +func (e HyperparameterScalingTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHyperparameterScalingType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HyperparameterScalingTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HyperparameterScalingTypeValidationError{} + +// Validate checks the field values on ContinuousParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ContinuousParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// ContinuousParameterRangeValidationError is the validation error returned by +// ContinuousParameterRange.Validate if the designated constraints aren't met. +type ContinuousParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContinuousParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContinuousParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContinuousParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContinuousParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContinuousParameterRangeValidationError) ErrorName() string { + return "ContinuousParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e ContinuousParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContinuousParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContinuousParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContinuousParameterRangeValidationError{} + +// Validate checks the field values on IntegerParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *IntegerParameterRange) Validate() error { + if m == nil { + return nil + } + + // no validation rules for MaxValue + + // no validation rules for MinValue + + // no validation rules for ScalingType + + return nil +} + +// IntegerParameterRangeValidationError is the validation error returned by +// IntegerParameterRange.Validate if the designated constraints aren't met. +type IntegerParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IntegerParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IntegerParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IntegerParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IntegerParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IntegerParameterRangeValidationError) ErrorName() string { + return "IntegerParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e IntegerParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIntegerParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IntegerParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IntegerParameterRangeValidationError{} + +// Validate checks the field values on CategoricalParameterRange with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CategoricalParameterRange) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// CategoricalParameterRangeValidationError is the validation error returned by +// CategoricalParameterRange.Validate if the designated constraints aren't met. +type CategoricalParameterRangeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CategoricalParameterRangeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CategoricalParameterRangeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CategoricalParameterRangeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CategoricalParameterRangeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CategoricalParameterRangeValidationError) ErrorName() string { + return "CategoricalParameterRangeValidationError" +} + +// Error satisfies the builtin error interface +func (e CategoricalParameterRangeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCategoricalParameterRange.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CategoricalParameterRangeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CategoricalParameterRangeValidationError{} + +// Validate checks the field values on ParameterRangeOneOf with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ParameterRangeOneOf) Validate() error { + if m == nil { + return nil + } + + switch m.ParameterRangeType.(type) { + + case *ParameterRangeOneOf_ContinuousParameterRange: + + if v, ok := interface{}(m.GetContinuousParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "ContinuousParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ParameterRangeOneOf_IntegerParameterRange: + + if v, ok := interface{}(m.GetIntegerParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "IntegerParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ParameterRangeOneOf_CategoricalParameterRange: + + if v, ok := interface{}(m.GetCategoricalParameterRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangeOneOfValidationError{ + field: "CategoricalParameterRange", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterRangeOneOfValidationError is the validation error returned by +// ParameterRangeOneOf.Validate if the designated constraints aren't met. +type ParameterRangeOneOfValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterRangeOneOfValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterRangeOneOfValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterRangeOneOfValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterRangeOneOfValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterRangeOneOfValidationError) ErrorName() string { + return "ParameterRangeOneOfValidationError" +} + +// Error satisfies the builtin error interface +func (e ParameterRangeOneOfValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterRangeOneOf.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterRangeOneOfValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterRangeOneOfValidationError{} + +// Validate checks the field values on ParameterRanges with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ParameterRanges) Validate() error { + if m == nil { + return nil + } + + for key, val := range m.GetParameterRangeMap() { + _ = val + + // no validation rules for ParameterRangeMap[key] + + if v, ok := interface{}(val).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterRangesValidationError{ + field: fmt.Sprintf("ParameterRangeMap[%v]", key), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ParameterRangesValidationError is the validation error returned by +// ParameterRanges.Validate if the designated constraints aren't met. +type ParameterRangesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterRangesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterRangesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterRangesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterRangesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterRangesValidationError) ErrorName() string { return "ParameterRangesValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterRangesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterRanges.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterRangesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterRangesValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go new file mode 100644 index 0000000000..58a6213aec --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.go @@ -0,0 +1,591 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/training_job.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/duration" + 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 InputMode_Value int32 + +const ( + InputMode_FILE InputMode_Value = 0 + InputMode_PIPE InputMode_Value = 1 +) + +var InputMode_Value_name = map[int32]string{ + 0: "FILE", + 1: "PIPE", +} + +var InputMode_Value_value = map[string]int32{ + "FILE": 0, + "PIPE": 1, +} + +func (x InputMode_Value) String() string { + return proto.EnumName(InputMode_Value_name, int32(x)) +} + +func (InputMode_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{0, 0} +} + +type AlgorithmName_Value int32 + +const ( + AlgorithmName_CUSTOM AlgorithmName_Value = 0 + AlgorithmName_XGBOOST AlgorithmName_Value = 1 +) + +var AlgorithmName_Value_name = map[int32]string{ + 0: "CUSTOM", + 1: "XGBOOST", +} + +var AlgorithmName_Value_value = map[string]int32{ + "CUSTOM": 0, + "XGBOOST": 1, +} + +func (x AlgorithmName_Value) String() string { + return proto.EnumName(AlgorithmName_Value_name, int32(x)) +} + +func (AlgorithmName_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{1, 0} +} + +type InputContentType_Value int32 + +const ( + InputContentType_TEXT_CSV InputContentType_Value = 0 +) + +var InputContentType_Value_name = map[int32]string{ + 0: "TEXT_CSV", +} + +var InputContentType_Value_value = map[string]int32{ + "TEXT_CSV": 0, +} + +func (x InputContentType_Value) String() string { + return proto.EnumName(InputContentType_Value_name, int32(x)) +} + +func (InputContentType_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{2, 0} +} + +type DistributedProtocol_Value int32 + +const ( + // Use this value if the user wishes to use framework-native distributed training interfaces. + // If this value is used, Flyte won't configure SageMaker to initialize unnecessary components such as + // OpenMPI or Parameter Server. + DistributedProtocol_UNSPECIFIED DistributedProtocol_Value = 0 + // Use this value if the user wishes to use MPI as the underlying protocol for her distributed training job + // MPI is a framework-agnostic distributed protocol. It has multiple implementations. Currently, we have only + // tested the OpenMPI implementation, which is the recommended implementation for Horovod. + DistributedProtocol_MPI DistributedProtocol_Value = 1 +) + +var DistributedProtocol_Value_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "MPI", +} + +var DistributedProtocol_Value_value = map[string]int32{ + "UNSPECIFIED": 0, + "MPI": 1, +} + +func (x DistributedProtocol_Value) String() string { + return proto.EnumName(DistributedProtocol_Value_name, int32(x)) +} + +func (DistributedProtocol_Value) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{5, 0} +} + +// The input mode that the algorithm supports. When using the File input mode, SageMaker downloads +// the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker +// volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly +// from S3 to the container. +// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html +// For the input modes that different SageMaker algorithms support, see: +// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html +type InputMode struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputMode) Reset() { *m = InputMode{} } +func (m *InputMode) String() string { return proto.CompactTextString(m) } +func (*InputMode) ProtoMessage() {} +func (*InputMode) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{0} +} + +func (m *InputMode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputMode.Unmarshal(m, b) +} +func (m *InputMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputMode.Marshal(b, m, deterministic) +} +func (m *InputMode) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputMode.Merge(m, src) +} +func (m *InputMode) XXX_Size() int { + return xxx_messageInfo_InputMode.Size(m) +} +func (m *InputMode) XXX_DiscardUnknown() { + xxx_messageInfo_InputMode.DiscardUnknown(m) +} + +var xxx_messageInfo_InputMode proto.InternalMessageInfo + +// The algorithm name is used for deciding which pre-built image to point to. +// This is only required for use cases where SageMaker's built-in algorithm mode is used. +// While we currently only support a subset of the algorithms, more will be added to the list. +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html +type AlgorithmName struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmName) Reset() { *m = AlgorithmName{} } +func (m *AlgorithmName) String() string { return proto.CompactTextString(m) } +func (*AlgorithmName) ProtoMessage() {} +func (*AlgorithmName) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{1} +} + +func (m *AlgorithmName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmName.Unmarshal(m, b) +} +func (m *AlgorithmName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmName.Marshal(b, m, deterministic) +} +func (m *AlgorithmName) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmName.Merge(m, src) +} +func (m *AlgorithmName) XXX_Size() int { + return xxx_messageInfo_AlgorithmName.Size(m) +} +func (m *AlgorithmName) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmName.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmName proto.InternalMessageInfo + +// Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data +// See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html +// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html +type InputContentType struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InputContentType) Reset() { *m = InputContentType{} } +func (m *InputContentType) String() string { return proto.CompactTextString(m) } +func (*InputContentType) ProtoMessage() {} +func (*InputContentType) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{2} +} + +func (m *InputContentType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InputContentType.Unmarshal(m, b) +} +func (m *InputContentType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InputContentType.Marshal(b, m, deterministic) +} +func (m *InputContentType) XXX_Merge(src proto.Message) { + xxx_messageInfo_InputContentType.Merge(m, src) +} +func (m *InputContentType) XXX_Size() int { + return xxx_messageInfo_InputContentType.Size(m) +} +func (m *InputContentType) XXX_DiscardUnknown() { + xxx_messageInfo_InputContentType.DiscardUnknown(m) +} + +var xxx_messageInfo_InputContentType proto.InternalMessageInfo + +// Specifies a metric that the training algorithm writes to stderr or stdout. +// This object is a pass-through. +// See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html +type MetricDefinition struct { + // User-defined name of the metric + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics + Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MetricDefinition) Reset() { *m = MetricDefinition{} } +func (m *MetricDefinition) String() string { return proto.CompactTextString(m) } +func (*MetricDefinition) ProtoMessage() {} +func (*MetricDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{3} +} + +func (m *MetricDefinition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MetricDefinition.Unmarshal(m, b) +} +func (m *MetricDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MetricDefinition.Marshal(b, m, deterministic) +} +func (m *MetricDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetricDefinition.Merge(m, src) +} +func (m *MetricDefinition) XXX_Size() int { + return xxx_messageInfo_MetricDefinition.Size(m) +} +func (m *MetricDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_MetricDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_MetricDefinition proto.InternalMessageInfo + +func (m *MetricDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *MetricDefinition) GetRegex() string { + if m != nil { + return m.Regex + } + return "" +} + +// Specifies the training algorithm to be used in the training job +// This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify +// TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm +// name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to +// CUSTOM. In this case, the value of the algorithm_version field has no effect +// For pass-through use cases: refer to this AWS official document for more details +// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html +type AlgorithmSpecification struct { + // The input mode can be either PIPE or FILE + InputMode InputMode_Value `protobuf:"varint,1,opt,name=input_mode,json=inputMode,proto3,enum=flyteidl.plugins.sagemaker.InputMode_Value" json:"input_mode,omitempty"` + // The algorithm name is used for deciding which pre-built image to point to + AlgorithmName AlgorithmName_Value `protobuf:"varint,2,opt,name=algorithm_name,json=algorithmName,proto3,enum=flyteidl.plugins.sagemaker.AlgorithmName_Value" json:"algorithm_name,omitempty"` + // The algorithm version field is used for deciding which pre-built image to point to + // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen + AlgorithmVersion string `protobuf:"bytes,3,opt,name=algorithm_version,json=algorithmVersion,proto3" json:"algorithm_version,omitempty"` + // A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + // See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html + // and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html + MetricDefinitions []*MetricDefinition `protobuf:"bytes,4,rep,name=metric_definitions,json=metricDefinitions,proto3" json:"metric_definitions,omitempty"` + // The content type of the input + // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html + // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html + InputContentType InputContentType_Value `protobuf:"varint,5,opt,name=input_content_type,json=inputContentType,proto3,enum=flyteidl.plugins.sagemaker.InputContentType_Value" json:"input_content_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AlgorithmSpecification) Reset() { *m = AlgorithmSpecification{} } +func (m *AlgorithmSpecification) String() string { return proto.CompactTextString(m) } +func (*AlgorithmSpecification) ProtoMessage() {} +func (*AlgorithmSpecification) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{4} +} + +func (m *AlgorithmSpecification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AlgorithmSpecification.Unmarshal(m, b) +} +func (m *AlgorithmSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AlgorithmSpecification.Marshal(b, m, deterministic) +} +func (m *AlgorithmSpecification) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlgorithmSpecification.Merge(m, src) +} +func (m *AlgorithmSpecification) XXX_Size() int { + return xxx_messageInfo_AlgorithmSpecification.Size(m) +} +func (m *AlgorithmSpecification) XXX_DiscardUnknown() { + xxx_messageInfo_AlgorithmSpecification.DiscardUnknown(m) +} + +var xxx_messageInfo_AlgorithmSpecification proto.InternalMessageInfo + +func (m *AlgorithmSpecification) GetInputMode() InputMode_Value { + if m != nil { + return m.InputMode + } + return InputMode_FILE +} + +func (m *AlgorithmSpecification) GetAlgorithmName() AlgorithmName_Value { + if m != nil { + return m.AlgorithmName + } + return AlgorithmName_CUSTOM +} + +func (m *AlgorithmSpecification) GetAlgorithmVersion() string { + if m != nil { + return m.AlgorithmVersion + } + return "" +} + +func (m *AlgorithmSpecification) GetMetricDefinitions() []*MetricDefinition { + if m != nil { + return m.MetricDefinitions + } + return nil +} + +func (m *AlgorithmSpecification) GetInputContentType() InputContentType_Value { + if m != nil { + return m.InputContentType + } + return InputContentType_TEXT_CSV +} + +// When enabling distributed training on a training job, the user should use this message to tell Flyte and SageMaker +// what kind of distributed protocol he/she wants to use to distribute the work. +type DistributedProtocol struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedProtocol) Reset() { *m = DistributedProtocol{} } +func (m *DistributedProtocol) String() string { return proto.CompactTextString(m) } +func (*DistributedProtocol) ProtoMessage() {} +func (*DistributedProtocol) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{5} +} + +func (m *DistributedProtocol) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedProtocol.Unmarshal(m, b) +} +func (m *DistributedProtocol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedProtocol.Marshal(b, m, deterministic) +} +func (m *DistributedProtocol) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedProtocol.Merge(m, src) +} +func (m *DistributedProtocol) XXX_Size() int { + return xxx_messageInfo_DistributedProtocol.Size(m) +} +func (m *DistributedProtocol) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedProtocol.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedProtocol proto.InternalMessageInfo + +// TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the +// number of instances to launch, and the size of the ML storage volume the user wants to provision +// Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html +type TrainingJobResourceConfig struct { + // The number of ML compute instances to use. For distributed training, provide a value greater than 1. + InstanceCount int64 `protobuf:"varint,1,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"` + // The ML compute instance type + InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + // The size of the ML storage volume that you want to provision. + VolumeSizeInGb int64 `protobuf:"varint,3,opt,name=volume_size_in_gb,json=volumeSizeInGb,proto3" json:"volume_size_in_gb,omitempty"` + // When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training. + // If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this + // field should be set to the corresponding enum value + DistributedProtocol DistributedProtocol_Value `protobuf:"varint,4,opt,name=distributed_protocol,json=distributedProtocol,proto3,enum=flyteidl.plugins.sagemaker.DistributedProtocol_Value" json:"distributed_protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJobResourceConfig) Reset() { *m = TrainingJobResourceConfig{} } +func (m *TrainingJobResourceConfig) String() string { return proto.CompactTextString(m) } +func (*TrainingJobResourceConfig) ProtoMessage() {} +func (*TrainingJobResourceConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{6} +} + +func (m *TrainingJobResourceConfig) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJobResourceConfig.Unmarshal(m, b) +} +func (m *TrainingJobResourceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJobResourceConfig.Marshal(b, m, deterministic) +} +func (m *TrainingJobResourceConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJobResourceConfig.Merge(m, src) +} +func (m *TrainingJobResourceConfig) XXX_Size() int { + return xxx_messageInfo_TrainingJobResourceConfig.Size(m) +} +func (m *TrainingJobResourceConfig) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJobResourceConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJobResourceConfig proto.InternalMessageInfo + +func (m *TrainingJobResourceConfig) GetInstanceCount() int64 { + if m != nil { + return m.InstanceCount + } + return 0 +} + +func (m *TrainingJobResourceConfig) GetInstanceType() string { + if m != nil { + return m.InstanceType + } + return "" +} + +func (m *TrainingJobResourceConfig) GetVolumeSizeInGb() int64 { + if m != nil { + return m.VolumeSizeInGb + } + return 0 +} + +func (m *TrainingJobResourceConfig) GetDistributedProtocol() DistributedProtocol_Value { + if m != nil { + return m.DistributedProtocol + } + return DistributedProtocol_UNSPECIFIED +} + +// The spec of a training job. This is mostly a pass-through object +// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html +type TrainingJob struct { + AlgorithmSpecification *AlgorithmSpecification `protobuf:"bytes,1,opt,name=algorithm_specification,json=algorithmSpecification,proto3" json:"algorithm_specification,omitempty"` + TrainingJobResourceConfig *TrainingJobResourceConfig `protobuf:"bytes,2,opt,name=training_job_resource_config,json=trainingJobResourceConfig,proto3" json:"training_job_resource_config,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TrainingJob) Reset() { *m = TrainingJob{} } +func (m *TrainingJob) String() string { return proto.CompactTextString(m) } +func (*TrainingJob) ProtoMessage() {} +func (*TrainingJob) Descriptor() ([]byte, []int) { + return fileDescriptor_6a68f64d8fd9fe30, []int{7} +} + +func (m *TrainingJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TrainingJob.Unmarshal(m, b) +} +func (m *TrainingJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TrainingJob.Marshal(b, m, deterministic) +} +func (m *TrainingJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_TrainingJob.Merge(m, src) +} +func (m *TrainingJob) XXX_Size() int { + return xxx_messageInfo_TrainingJob.Size(m) +} +func (m *TrainingJob) XXX_DiscardUnknown() { + xxx_messageInfo_TrainingJob.DiscardUnknown(m) +} + +var xxx_messageInfo_TrainingJob proto.InternalMessageInfo + +func (m *TrainingJob) GetAlgorithmSpecification() *AlgorithmSpecification { + if m != nil { + return m.AlgorithmSpecification + } + return nil +} + +func (m *TrainingJob) GetTrainingJobResourceConfig() *TrainingJobResourceConfig { + if m != nil { + return m.TrainingJobResourceConfig + } + return nil +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.sagemaker.InputMode_Value", InputMode_Value_name, InputMode_Value_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.AlgorithmName_Value", AlgorithmName_Value_name, AlgorithmName_Value_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.InputContentType_Value", InputContentType_Value_name, InputContentType_Value_value) + proto.RegisterEnum("flyteidl.plugins.sagemaker.DistributedProtocol_Value", DistributedProtocol_Value_name, DistributedProtocol_Value_value) + proto.RegisterType((*InputMode)(nil), "flyteidl.plugins.sagemaker.InputMode") + proto.RegisterType((*AlgorithmName)(nil), "flyteidl.plugins.sagemaker.AlgorithmName") + proto.RegisterType((*InputContentType)(nil), "flyteidl.plugins.sagemaker.InputContentType") + proto.RegisterType((*MetricDefinition)(nil), "flyteidl.plugins.sagemaker.MetricDefinition") + proto.RegisterType((*AlgorithmSpecification)(nil), "flyteidl.plugins.sagemaker.AlgorithmSpecification") + proto.RegisterType((*DistributedProtocol)(nil), "flyteidl.plugins.sagemaker.DistributedProtocol") + proto.RegisterType((*TrainingJobResourceConfig)(nil), "flyteidl.plugins.sagemaker.TrainingJobResourceConfig") + proto.RegisterType((*TrainingJob)(nil), "flyteidl.plugins.sagemaker.TrainingJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sagemaker/training_job.proto", fileDescriptor_6a68f64d8fd9fe30) +} + +var fileDescriptor_6a68f64d8fd9fe30 = []byte{ + // 660 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x5b, 0x4f, 0xdb, 0x4a, + 0x14, 0x85, 0x13, 0x12, 0x6e, 0x3b, 0x90, 0x63, 0x06, 0x0e, 0x27, 0x70, 0xaa, 0x8a, 0xba, 0xaa, + 0x04, 0xa2, 0xd8, 0x2a, 0x55, 0xd5, 0x56, 0xea, 0x4b, 0x09, 0x01, 0x19, 0x35, 0x10, 0x39, 0x21, + 0x42, 0xed, 0x83, 0xeb, 0xcb, 0x64, 0x98, 0x62, 0xcf, 0x58, 0xf6, 0x18, 0x15, 0x7e, 0x51, 0x7f, + 0x5f, 0x9f, 0xfb, 0x50, 0x79, 0x7c, 0x21, 0x8d, 0x42, 0xfa, 0xe6, 0xac, 0xd9, 0xde, 0xd9, 0xeb, + 0x5b, 0xdb, 0x03, 0x07, 0x23, 0xff, 0x4e, 0x60, 0xea, 0xf9, 0x7a, 0xe8, 0x27, 0x84, 0xb2, 0x58, + 0x8f, 0x6d, 0x82, 0x03, 0xfb, 0x06, 0x47, 0xba, 0x88, 0x6c, 0xca, 0x28, 0x23, 0xd6, 0x37, 0xee, + 0x68, 0x61, 0xc4, 0x05, 0x47, 0xdb, 0x45, 0xb9, 0x96, 0x97, 0x6b, 0x65, 0xf9, 0xf6, 0x53, 0xc2, + 0x39, 0xf1, 0xb1, 0x2e, 0x2b, 0x9d, 0x64, 0xa4, 0x7b, 0x49, 0x64, 0x0b, 0xca, 0x59, 0xf6, 0xae, + 0xba, 0x0b, 0xcb, 0x06, 0x0b, 0x13, 0xd1, 0xe5, 0x1e, 0x56, 0xff, 0x87, 0xf9, 0xa1, 0xed, 0x27, + 0x18, 0x2d, 0x41, 0xfd, 0xc4, 0xf8, 0xd4, 0x51, 0x2a, 0xe9, 0x53, 0xcf, 0xe8, 0x75, 0x94, 0xaa, + 0xfa, 0x0a, 0x56, 0x3f, 0xfa, 0x84, 0x47, 0x54, 0x5c, 0x07, 0xe7, 0x76, 0x80, 0xd5, 0x9d, 0xa2, + 0x1a, 0x60, 0xa1, 0x7d, 0xd9, 0x1f, 0x5c, 0x74, 0x95, 0x0a, 0x6a, 0xc0, 0xe2, 0xd5, 0xe9, 0xd1, + 0xc5, 0x45, 0x7f, 0xa0, 0x54, 0xd5, 0x3d, 0x50, 0x64, 0xf3, 0x36, 0x67, 0x02, 0x33, 0x31, 0xb8, + 0x0b, 0xb1, 0xfa, 0x6f, 0xf1, 0xd6, 0x0a, 0x2c, 0x0d, 0x3a, 0x57, 0x03, 0xab, 0xdd, 0x1f, 0x2a, + 0x15, 0xf5, 0x03, 0x28, 0x5d, 0x2c, 0x22, 0xea, 0x1e, 0xe3, 0x11, 0x65, 0x34, 0x9d, 0x10, 0x21, + 0xa8, 0x33, 0x3b, 0xc0, 0xad, 0xea, 0x4e, 0x75, 0x77, 0xd9, 0x94, 0xcf, 0x68, 0x03, 0xe6, 0x23, + 0x4c, 0xf0, 0xf7, 0xd6, 0x9c, 0x14, 0xb3, 0x1f, 0xea, 0x8f, 0x1a, 0x6c, 0x96, 0xc3, 0xf5, 0x43, + 0xec, 0xd2, 0x11, 0x75, 0xa5, 0x4d, 0x74, 0x06, 0x40, 0xd3, 0x19, 0xac, 0x80, 0x7b, 0x59, 0xab, + 0xe6, 0xe1, 0xbe, 0xf6, 0x38, 0x31, 0xad, 0xc4, 0xa1, 0xc9, 0x39, 0xcd, 0x65, 0x5a, 0x08, 0x68, + 0x08, 0x4d, 0xbb, 0xf8, 0x17, 0x4b, 0x8e, 0x36, 0x27, 0xfb, 0xe9, 0xb3, 0xfa, 0xfd, 0x01, 0x2d, + 0xef, 0xb9, 0x6a, 0x8f, 0x8b, 0x68, 0x1f, 0xd6, 0x1e, 0xfa, 0xde, 0xe2, 0x28, 0xa6, 0x9c, 0xb5, + 0x6a, 0xd2, 0xa0, 0x52, 0x1e, 0x0c, 0x33, 0x1d, 0x7d, 0x01, 0x14, 0x48, 0x52, 0x96, 0x57, 0xa2, + 0x8a, 0x5b, 0xf5, 0x9d, 0xda, 0x6e, 0xe3, 0xf0, 0xe5, 0xac, 0x41, 0x26, 0xf9, 0x9a, 0x6b, 0xc1, + 0x84, 0x12, 0xa3, 0xaf, 0x80, 0x32, 0x5a, 0x6e, 0x16, 0x99, 0x25, 0xee, 0x42, 0xdc, 0x9a, 0x97, + 0x2e, 0x0f, 0xff, 0x4a, 0x6d, 0x2c, 0xe7, 0xdc, 0xa8, 0x42, 0x27, 0xf3, 0x7f, 0x07, 0xeb, 0xc7, + 0x34, 0x16, 0x11, 0x75, 0x12, 0x81, 0xbd, 0x5e, 0xba, 0x84, 0x2e, 0xf7, 0xd5, 0x67, 0xc5, 0x5a, + 0xfc, 0x03, 0x8d, 0xcb, 0xf3, 0x7e, 0xaf, 0xd3, 0x36, 0x4e, 0x8c, 0xce, 0xb1, 0x52, 0x41, 0x8b, + 0x50, 0xeb, 0xf6, 0x0c, 0xa5, 0xaa, 0xfe, 0xaa, 0xc2, 0xd6, 0x20, 0xdf, 0xfe, 0x33, 0xee, 0x98, + 0x38, 0xe6, 0x49, 0xe4, 0xe2, 0x36, 0x67, 0x23, 0x4a, 0xd0, 0x0b, 0x68, 0x52, 0x16, 0x0b, 0x9b, + 0xb9, 0xd8, 0x72, 0x79, 0xc2, 0x84, 0xcc, 0xba, 0x66, 0xae, 0x16, 0x6a, 0x3b, 0x15, 0xd1, 0x73, + 0x28, 0x85, 0xcc, 0x5b, 0xb6, 0x47, 0x2b, 0x85, 0x98, 0xce, 0x88, 0xf6, 0x60, 0xed, 0x96, 0xfb, + 0x49, 0x80, 0xad, 0x98, 0xde, 0x63, 0x8b, 0x32, 0x8b, 0x38, 0x32, 0x8f, 0x9a, 0xd9, 0xcc, 0x0e, + 0xfa, 0xf4, 0x1e, 0x1b, 0xec, 0xd4, 0x41, 0xd7, 0xb0, 0xe1, 0x3d, 0xd8, 0xb1, 0xc2, 0xdc, 0x4f, + 0xab, 0x2e, 0x91, 0xbd, 0x99, 0x85, 0x6c, 0x0a, 0x86, 0x9c, 0xda, 0xba, 0x37, 0x85, 0xd0, 0xcf, + 0x2a, 0x34, 0xc6, 0xec, 0xa3, 0x1b, 0xf8, 0xef, 0x61, 0x69, 0xe2, 0xf1, 0x9d, 0x97, 0xce, 0x1b, + 0xb3, 0xf3, 0x9a, 0xfe, 0xb5, 0x98, 0x9b, 0xf6, 0xf4, 0xaf, 0xe8, 0x16, 0x9e, 0x8c, 0x5f, 0x3c, + 0x56, 0x94, 0xc3, 0x4f, 0xf7, 0x64, 0x44, 0x89, 0xa4, 0xd8, 0x98, 0x6d, 0xf7, 0xd1, 0xe8, 0xcc, + 0x2d, 0xf1, 0xd8, 0xd1, 0xd1, 0xfb, 0xcf, 0x6f, 0x09, 0x15, 0xd7, 0x89, 0xa3, 0xb9, 0x3c, 0xd0, + 0x65, 0x77, 0x1e, 0x11, 0xbd, 0xbc, 0x1f, 0x09, 0x66, 0x7a, 0xe8, 0x1c, 0x10, 0xae, 0x4f, 0x5e, + 0x99, 0xce, 0x82, 0xcc, 0xe2, 0xf5, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x16, 0xde, 0x9e, 0xb6, + 0x4d, 0x05, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go new file mode 100644 index 0000000000..19d1eb9a21 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sagemaker/training_job.pb.validate.go @@ -0,0 +1,617 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sagemaker/training_job.proto + +package plugins + +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 _training_job_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 InputMode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *InputMode) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// InputModeValidationError is the validation error returned by +// InputMode.Validate if the designated constraints aren't met. +type InputModeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e InputModeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e InputModeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e InputModeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e InputModeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e InputModeValidationError) ErrorName() string { return "InputModeValidationError" } + +// Error satisfies the builtin error interface +func (e InputModeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sInputMode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = InputModeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = InputModeValidationError{} + +// Validate checks the field values on AlgorithmName with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *AlgorithmName) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// AlgorithmNameValidationError is the validation error returned by +// AlgorithmName.Validate if the designated constraints aren't met. +type AlgorithmNameValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmNameValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmNameValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmNameValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmNameValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmNameValidationError) ErrorName() string { return "AlgorithmNameValidationError" } + +// Error satisfies the builtin error interface +func (e AlgorithmNameValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmName.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmNameValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmNameValidationError{} + +// Validate checks the field values on InputContentType with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *InputContentType) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// InputContentTypeValidationError is the validation error returned by +// InputContentType.Validate if the designated constraints aren't met. +type InputContentTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e InputContentTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e InputContentTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e InputContentTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e InputContentTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e InputContentTypeValidationError) ErrorName() string { return "InputContentTypeValidationError" } + +// Error satisfies the builtin error interface +func (e InputContentTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sInputContentType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = InputContentTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = InputContentTypeValidationError{} + +// Validate checks the field values on MetricDefinition with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *MetricDefinition) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Regex + + return nil +} + +// MetricDefinitionValidationError is the validation error returned by +// MetricDefinition.Validate if the designated constraints aren't met. +type MetricDefinitionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MetricDefinitionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MetricDefinitionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MetricDefinitionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MetricDefinitionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MetricDefinitionValidationError) ErrorName() string { return "MetricDefinitionValidationError" } + +// Error satisfies the builtin error interface +func (e MetricDefinitionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sMetricDefinition.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MetricDefinitionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MetricDefinitionValidationError{} + +// Validate checks the field values on AlgorithmSpecification with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *AlgorithmSpecification) Validate() error { + if m == nil { + return nil + } + + // no validation rules for InputMode + + // no validation rules for AlgorithmName + + // no validation rules for AlgorithmVersion + + for idx, item := range m.GetMetricDefinitions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AlgorithmSpecificationValidationError{ + field: fmt.Sprintf("MetricDefinitions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for InputContentType + + return nil +} + +// AlgorithmSpecificationValidationError is the validation error returned by +// AlgorithmSpecification.Validate if the designated constraints aren't met. +type AlgorithmSpecificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AlgorithmSpecificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AlgorithmSpecificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AlgorithmSpecificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AlgorithmSpecificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AlgorithmSpecificationValidationError) ErrorName() string { + return "AlgorithmSpecificationValidationError" +} + +// Error satisfies the builtin error interface +func (e AlgorithmSpecificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlgorithmSpecification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AlgorithmSpecificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AlgorithmSpecificationValidationError{} + +// Validate checks the field values on DistributedProtocol with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *DistributedProtocol) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// DistributedProtocolValidationError is the validation error returned by +// DistributedProtocol.Validate if the designated constraints aren't met. +type DistributedProtocolValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedProtocolValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedProtocolValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedProtocolValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedProtocolValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedProtocolValidationError) ErrorName() string { + return "DistributedProtocolValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedProtocolValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedProtocol.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedProtocolValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedProtocolValidationError{} + +// Validate checks the field values on TrainingJobResourceConfig with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TrainingJobResourceConfig) Validate() error { + if m == nil { + return nil + } + + // no validation rules for InstanceCount + + // no validation rules for InstanceType + + // no validation rules for VolumeSizeInGb + + // no validation rules for DistributedProtocol + + return nil +} + +// TrainingJobResourceConfigValidationError is the validation error returned by +// TrainingJobResourceConfig.Validate if the designated constraints aren't met. +type TrainingJobResourceConfigValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TrainingJobResourceConfigValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TrainingJobResourceConfigValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TrainingJobResourceConfigValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TrainingJobResourceConfigValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TrainingJobResourceConfigValidationError) ErrorName() string { + return "TrainingJobResourceConfigValidationError" +} + +// Error satisfies the builtin error interface +func (e TrainingJobResourceConfigValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTrainingJobResourceConfig.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TrainingJobResourceConfigValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TrainingJobResourceConfigValidationError{} + +// Validate checks the field values on TrainingJob with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TrainingJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetAlgorithmSpecification()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "AlgorithmSpecification", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTrainingJobResourceConfig()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TrainingJobValidationError{ + field: "TrainingJobResourceConfig", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TrainingJobValidationError is the validation error returned by +// TrainingJob.Validate if the designated constraints aren't met. +type TrainingJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TrainingJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TrainingJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TrainingJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TrainingJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TrainingJobValidationError) ErrorName() string { return "TrainingJobValidationError" } + +// Error satisfies the builtin error interface +func (e TrainingJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTrainingJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TrainingJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TrainingJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go new file mode 100644 index 0000000000..768bd46bac --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go @@ -0,0 +1,236 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/spark.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + 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 SparkApplication_Type int32 + +const ( + SparkApplication_PYTHON SparkApplication_Type = 0 + SparkApplication_JAVA SparkApplication_Type = 1 + SparkApplication_SCALA SparkApplication_Type = 2 + SparkApplication_R SparkApplication_Type = 3 +) + +var SparkApplication_Type_name = map[int32]string{ + 0: "PYTHON", + 1: "JAVA", + 2: "SCALA", + 3: "R", +} + +var SparkApplication_Type_value = map[string]int32{ + "PYTHON": 0, + "JAVA": 1, + "SCALA": 2, + "R": 3, +} + +func (x SparkApplication_Type) String() string { + return proto.EnumName(SparkApplication_Type_name, int32(x)) +} + +func (SparkApplication_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ca8a069b9820144a, []int{0, 0} +} + +type SparkApplication struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SparkApplication) Reset() { *m = SparkApplication{} } +func (m *SparkApplication) String() string { return proto.CompactTextString(m) } +func (*SparkApplication) ProtoMessage() {} +func (*SparkApplication) Descriptor() ([]byte, []int) { + return fileDescriptor_ca8a069b9820144a, []int{0} +} + +func (m *SparkApplication) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SparkApplication.Unmarshal(m, b) +} +func (m *SparkApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SparkApplication.Marshal(b, m, deterministic) +} +func (m *SparkApplication) XXX_Merge(src proto.Message) { + xxx_messageInfo_SparkApplication.Merge(m, src) +} +func (m *SparkApplication) XXX_Size() int { + return xxx_messageInfo_SparkApplication.Size(m) +} +func (m *SparkApplication) XXX_DiscardUnknown() { + xxx_messageInfo_SparkApplication.DiscardUnknown(m) +} + +var xxx_messageInfo_SparkApplication proto.InternalMessageInfo + +// Custom Proto for Spark Plugin. +type SparkJob struct { + ApplicationType SparkApplication_Type `protobuf:"varint,1,opt,name=applicationType,proto3,enum=flyteidl.plugins.SparkApplication_Type" json:"applicationType,omitempty"` + MainApplicationFile string `protobuf:"bytes,2,opt,name=mainApplicationFile,proto3" json:"mainApplicationFile,omitempty"` + MainClass string `protobuf:"bytes,3,opt,name=mainClass,proto3" json:"mainClass,omitempty"` + SparkConf map[string]string `protobuf:"bytes,4,rep,name=sparkConf,proto3" json:"sparkConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + HadoopConf map[string]string `protobuf:"bytes,5,rep,name=hadoopConf,proto3" json:"hadoopConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ExecutorPath string `protobuf:"bytes,6,opt,name=executorPath,proto3" json:"executorPath,omitempty"` + // Databricks job configuration. + // Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure. + DatabricksConf *_struct.Struct `protobuf:"bytes,7,opt,name=databricksConf,proto3" json:"databricksConf,omitempty"` + // Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html + // This token can be set in either flytepropeller or flytekit. + DatabricksToken string `protobuf:"bytes,8,opt,name=databricksToken,proto3" json:"databricksToken,omitempty"` + // Domain name of your deployment. Use the form .cloud.databricks.com. + // This instance name can be set in either flytepropeller or flytekit. + DatabricksInstance string `protobuf:"bytes,9,opt,name=databricksInstance,proto3" json:"databricksInstance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SparkJob) Reset() { *m = SparkJob{} } +func (m *SparkJob) String() string { return proto.CompactTextString(m) } +func (*SparkJob) ProtoMessage() {} +func (*SparkJob) Descriptor() ([]byte, []int) { + return fileDescriptor_ca8a069b9820144a, []int{1} +} + +func (m *SparkJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SparkJob.Unmarshal(m, b) +} +func (m *SparkJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SparkJob.Marshal(b, m, deterministic) +} +func (m *SparkJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_SparkJob.Merge(m, src) +} +func (m *SparkJob) XXX_Size() int { + return xxx_messageInfo_SparkJob.Size(m) +} +func (m *SparkJob) XXX_DiscardUnknown() { + xxx_messageInfo_SparkJob.DiscardUnknown(m) +} + +var xxx_messageInfo_SparkJob proto.InternalMessageInfo + +func (m *SparkJob) GetApplicationType() SparkApplication_Type { + if m != nil { + return m.ApplicationType + } + return SparkApplication_PYTHON +} + +func (m *SparkJob) GetMainApplicationFile() string { + if m != nil { + return m.MainApplicationFile + } + return "" +} + +func (m *SparkJob) GetMainClass() string { + if m != nil { + return m.MainClass + } + return "" +} + +func (m *SparkJob) GetSparkConf() map[string]string { + if m != nil { + return m.SparkConf + } + return nil +} + +func (m *SparkJob) GetHadoopConf() map[string]string { + if m != nil { + return m.HadoopConf + } + return nil +} + +func (m *SparkJob) GetExecutorPath() string { + if m != nil { + return m.ExecutorPath + } + return "" +} + +func (m *SparkJob) GetDatabricksConf() *_struct.Struct { + if m != nil { + return m.DatabricksConf + } + return nil +} + +func (m *SparkJob) GetDatabricksToken() string { + if m != nil { + return m.DatabricksToken + } + return "" +} + +func (m *SparkJob) GetDatabricksInstance() string { + if m != nil { + return m.DatabricksInstance + } + return "" +} + +func init() { + proto.RegisterEnum("flyteidl.plugins.SparkApplication_Type", SparkApplication_Type_name, SparkApplication_Type_value) + proto.RegisterType((*SparkApplication)(nil), "flyteidl.plugins.SparkApplication") + proto.RegisterType((*SparkJob)(nil), "flyteidl.plugins.SparkJob") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.HadoopConfEntry") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.SparkConfEntry") +} + +func init() { proto.RegisterFile("flyteidl/plugins/spark.proto", fileDescriptor_ca8a069b9820144a) } + +var fileDescriptor_ca8a069b9820144a = []byte{ + // 442 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x5d, 0x8b, 0xd3, 0x40, + 0x14, 0x35, 0xfd, 0xb2, 0xb9, 0x2b, 0x6d, 0xb8, 0x0a, 0x86, 0xd2, 0x87, 0xd2, 0x17, 0xa3, 0xe0, + 0x44, 0xea, 0x83, 0x1f, 0x28, 0x92, 0x2d, 0xea, 0x5a, 0x44, 0xd7, 0xb4, 0x08, 0xfa, 0x36, 0x49, + 0xa7, 0x69, 0xe8, 0xec, 0xcc, 0x90, 0x4c, 0xc4, 0xfc, 0x79, 0x91, 0x4c, 0xec, 0x66, 0x37, 0xac, + 0x82, 0x6f, 0xc9, 0xb9, 0xe7, 0x9c, 0x7b, 0x39, 0x87, 0x81, 0xe9, 0x8e, 0x97, 0x9a, 0xa5, 0x5b, + 0xee, 0x2b, 0x5e, 0x24, 0xa9, 0xc8, 0xfd, 0x5c, 0xd1, 0xec, 0x40, 0x54, 0x26, 0xb5, 0x44, 0xe7, + 0x38, 0x25, 0x7f, 0xa6, 0x93, 0x69, 0x22, 0x65, 0xc2, 0x99, 0x6f, 0xe6, 0x51, 0xb1, 0xf3, 0x73, + 0x9d, 0x15, 0xb1, 0xae, 0xf9, 0xf3, 0x53, 0x70, 0xd6, 0x95, 0x3c, 0x50, 0x8a, 0xa7, 0x31, 0xd5, + 0xa9, 0x14, 0x73, 0x02, 0xbd, 0x4d, 0xa9, 0x18, 0x02, 0x0c, 0xce, 0xbf, 0x6d, 0xce, 0x3e, 0x7f, + 0x72, 0x6e, 0xe1, 0x10, 0x7a, 0xab, 0xe0, 0x6b, 0xe0, 0x58, 0x68, 0x43, 0x7f, 0xbd, 0x0c, 0x3e, + 0x06, 0x4e, 0x07, 0xfb, 0x60, 0x85, 0x4e, 0x77, 0xfe, 0xab, 0x07, 0x43, 0x63, 0xb2, 0x92, 0x11, + 0x7e, 0x81, 0x31, 0x6d, 0xbc, 0x2a, 0x1f, 0xd7, 0x9a, 0x59, 0xde, 0x68, 0xf1, 0x80, 0xb4, 0x4f, + 0x23, 0xed, 0xcd, 0xa4, 0xa2, 0x87, 0x6d, 0x3d, 0x3e, 0x81, 0xbb, 0x17, 0x34, 0x15, 0x57, 0x88, + 0xef, 0x52, 0xce, 0xdc, 0xce, 0xcc, 0xf2, 0xec, 0xf0, 0xa6, 0x11, 0x4e, 0xc1, 0xae, 0xe0, 0x25, + 0xa7, 0x79, 0xee, 0x76, 0x0d, 0xaf, 0x01, 0xf0, 0x3d, 0xd8, 0x26, 0xb2, 0xa5, 0x14, 0x3b, 0xb7, + 0x37, 0xeb, 0x7a, 0x27, 0x8b, 0x87, 0x7f, 0x39, 0x6e, 0x25, 0xa3, 0xfa, 0xa3, 0xe2, 0xbe, 0x15, + 0x3a, 0x2b, 0xc3, 0x46, 0x8b, 0x2b, 0x80, 0x3d, 0xdd, 0x4a, 0xa9, 0x8c, 0x53, 0xdf, 0x38, 0x3d, + 0xfa, 0x87, 0xd3, 0xd9, 0x25, 0xb9, 0xb6, 0xba, 0xa2, 0xc6, 0x39, 0xdc, 0x61, 0x3f, 0x59, 0x5c, + 0x68, 0x99, 0x9d, 0x53, 0xbd, 0x77, 0x07, 0xe6, 0xea, 0x6b, 0x18, 0xbe, 0x81, 0xd1, 0x96, 0x6a, + 0x1a, 0x65, 0x69, 0x7c, 0xc8, 0xcd, 0xce, 0xdb, 0x33, 0xcb, 0x3b, 0x59, 0xdc, 0x27, 0x75, 0xc7, + 0xe4, 0xd8, 0x31, 0x59, 0x9b, 0x8e, 0xc3, 0x16, 0x1d, 0x3d, 0x18, 0x37, 0xc8, 0x46, 0x1e, 0x98, + 0x70, 0x87, 0x66, 0x4f, 0x1b, 0x46, 0x02, 0xd8, 0x40, 0x1f, 0x44, 0xae, 0xa9, 0x88, 0x99, 0x6b, + 0x1b, 0xf2, 0x0d, 0x93, 0xc9, 0x2b, 0x18, 0x5d, 0xcf, 0x09, 0x1d, 0xe8, 0x1e, 0x58, 0x69, 0xca, + 0xb7, 0xc3, 0xea, 0x13, 0xef, 0x41, 0xff, 0x07, 0xe5, 0xc5, 0xb1, 0xb9, 0xfa, 0xe7, 0x65, 0xe7, + 0xb9, 0x35, 0x79, 0x0d, 0xe3, 0x56, 0x36, 0xff, 0x23, 0x3f, 0x7d, 0xf1, 0xfd, 0x59, 0x92, 0xea, + 0x7d, 0x11, 0x91, 0x58, 0x5e, 0xf8, 0x26, 0x7f, 0x99, 0x25, 0xfe, 0xe5, 0x43, 0x49, 0x98, 0xf0, + 0x55, 0xf4, 0x38, 0x91, 0x7e, 0xfb, 0xed, 0x44, 0x03, 0x13, 0xd9, 0xd3, 0xdf, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x02, 0x51, 0x7a, 0xdc, 0x56, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.validate.go new file mode 100644 index 0000000000..0577090e28 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.validate.go @@ -0,0 +1,192 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/spark.proto + +package plugins + +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 _spark_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 SparkApplication with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SparkApplication) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SparkApplicationValidationError is the validation error returned by +// SparkApplication.Validate if the designated constraints aren't met. +type SparkApplicationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SparkApplicationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SparkApplicationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SparkApplicationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SparkApplicationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SparkApplicationValidationError) ErrorName() string { return "SparkApplicationValidationError" } + +// Error satisfies the builtin error interface +func (e SparkApplicationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSparkApplication.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SparkApplicationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SparkApplicationValidationError{} + +// Validate checks the field values on SparkJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SparkJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ApplicationType + + // no validation rules for MainApplicationFile + + // no validation rules for MainClass + + // no validation rules for SparkConf + + // no validation rules for HadoopConf + + // no validation rules for ExecutorPath + + if v, ok := interface{}(m.GetDatabricksConf()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SparkJobValidationError{ + field: "DatabricksConf", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DatabricksToken + + // no validation rules for DatabricksInstance + + return nil +} + +// SparkJobValidationError is the validation error returned by +// SparkJob.Validate if the designated constraints aren't met. +type SparkJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SparkJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SparkJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SparkJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SparkJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SparkJobValidationError) ErrorName() string { return "SparkJobValidationError" } + +// Error satisfies the builtin error interface +func (e SparkJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSparkJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SparkJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SparkJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go new file mode 100644 index 0000000000..f466c1c972 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go @@ -0,0 +1,102 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/tensorflow.proto + +package plugins + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + 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 + +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator +type DistributedTensorflowTrainingTask struct { + // number of worker, ps, chief replicas spawned in the cluster for this job + Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` + // PS -> Parameter server + PsReplicas int32 `protobuf:"varint,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` + ChiefReplicas int32 `protobuf:"varint,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DistributedTensorflowTrainingTask) Reset() { *m = DistributedTensorflowTrainingTask{} } +func (m *DistributedTensorflowTrainingTask) String() string { return proto.CompactTextString(m) } +func (*DistributedTensorflowTrainingTask) ProtoMessage() {} +func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { + return fileDescriptor_8da02783614e1bcc, []int{0} +} + +func (m *DistributedTensorflowTrainingTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DistributedTensorflowTrainingTask.Unmarshal(m, b) +} +func (m *DistributedTensorflowTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DistributedTensorflowTrainingTask.Marshal(b, m, deterministic) +} +func (m *DistributedTensorflowTrainingTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DistributedTensorflowTrainingTask.Merge(m, src) +} +func (m *DistributedTensorflowTrainingTask) XXX_Size() int { + return xxx_messageInfo_DistributedTensorflowTrainingTask.Size(m) +} +func (m *DistributedTensorflowTrainingTask) XXX_DiscardUnknown() { + xxx_messageInfo_DistributedTensorflowTrainingTask.DiscardUnknown(m) +} + +var xxx_messageInfo_DistributedTensorflowTrainingTask proto.InternalMessageInfo + +func (m *DistributedTensorflowTrainingTask) GetWorkers() int32 { + if m != nil { + return m.Workers + } + return 0 +} + +func (m *DistributedTensorflowTrainingTask) GetPsReplicas() int32 { + if m != nil { + return m.PsReplicas + } + return 0 +} + +func (m *DistributedTensorflowTrainingTask) GetChiefReplicas() int32 { + if m != nil { + return m.ChiefReplicas + } + return 0 +} + +func init() { + proto.RegisterType((*DistributedTensorflowTrainingTask)(nil), "flyteidl.plugins.DistributedTensorflowTrainingTask") +} + +func init() { proto.RegisterFile("flyteidl/plugins/tensorflow.proto", fileDescriptor_8da02783614e1bcc) } + +var fileDescriptor_8da02783614e1bcc = []byte{ + // 202 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0xc8, 0x29, 0x4d, 0xcf, 0xcc, 0x2b, 0xd6, 0x2f, 0x49, 0xcd, + 0x2b, 0xce, 0x2f, 0x4a, 0xcb, 0xc9, 0x2f, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, + 0x29, 0xd1, 0x83, 0x2a, 0x51, 0x6a, 0x65, 0xe4, 0x52, 0x74, 0xc9, 0x2c, 0x2e, 0x29, 0xca, 0x4c, + 0x2a, 0x2d, 0x49, 0x4d, 0x09, 0x81, 0xeb, 0x08, 0x29, 0x4a, 0xcc, 0xcc, 0xcb, 0xcc, 0x4b, 0x0f, + 0x49, 0x2c, 0xce, 0x16, 0x92, 0xe0, 0x62, 0x2f, 0xcf, 0x2f, 0xca, 0x4e, 0x2d, 0x2a, 0x96, 0x60, + 0x54, 0x60, 0xd4, 0x60, 0x0d, 0x82, 0x71, 0x85, 0xe4, 0xb9, 0xb8, 0x0b, 0x8a, 0xe3, 0x8b, 0x52, + 0x0b, 0x72, 0x32, 0x93, 0x13, 0x8b, 0x25, 0x98, 0xc0, 0xb2, 0x5c, 0x05, 0xc5, 0x41, 0x50, 0x11, + 0x21, 0x55, 0x2e, 0xbe, 0xe4, 0x8c, 0xcc, 0xd4, 0x34, 0x84, 0x1a, 0x66, 0xb0, 0x1a, 0x5e, 0xb0, + 0x28, 0x4c, 0x99, 0x93, 0x65, 0x94, 0x79, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, + 0xae, 0x3e, 0xd8, 0x99, 0xf9, 0x45, 0xe9, 0xfa, 0x70, 0x2f, 0xa5, 0xa7, 0xe6, 0xe9, 0x17, 0x24, + 0xe9, 0xa6, 0xe7, 0xeb, 0xa3, 0xfb, 0x32, 0x89, 0x0d, 0xec, 0x37, 0x63, 0x40, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x8f, 0xf1, 0xb9, 0xb2, 0x00, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.validate.go new file mode 100644 index 0000000000..ed7a8eeb80 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.validate.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/tensorflow.proto + +package plugins + +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 _tensorflow_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 DistributedTensorflowTrainingTask with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *DistributedTensorflowTrainingTask) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Workers + + // no validation rules for PsReplicas + + // no validation rules for ChiefReplicas + + return nil +} + +// DistributedTensorflowTrainingTaskValidationError is the validation error +// returned by DistributedTensorflowTrainingTask.Validate if the designated +// constraints aren't met. +type DistributedTensorflowTrainingTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DistributedTensorflowTrainingTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DistributedTensorflowTrainingTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DistributedTensorflowTrainingTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DistributedTensorflowTrainingTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DistributedTensorflowTrainingTaskValidationError) ErrorName() string { + return "DistributedTensorflowTrainingTaskValidationError" +} + +// Error satisfies the builtin error interface +func (e DistributedTensorflowTrainingTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDistributedTensorflowTrainingTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DistributedTensorflowTrainingTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DistributedTensorflowTrainingTaskValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go new file mode 100644 index 0000000000..56f80c8614 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/waitable.proto + +package plugins + +import ( + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// Represents an Execution that was launched and could be waited on. +type Waitable struct { + WfExecId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=wf_exec_id,json=wfExecId,proto3" json:"wf_exec_id,omitempty"` + Phase core.WorkflowExecution_Phase `protobuf:"varint,2,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + WorkflowId string `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Waitable) Reset() { *m = Waitable{} } +func (m *Waitable) String() string { return proto.CompactTextString(m) } +func (*Waitable) ProtoMessage() {} +func (*Waitable) Descriptor() ([]byte, []int) { + return fileDescriptor_6ff9364c45e52921, []int{0} +} + +func (m *Waitable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Waitable.Unmarshal(m, b) +} +func (m *Waitable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Waitable.Marshal(b, m, deterministic) +} +func (m *Waitable) XXX_Merge(src proto.Message) { + xxx_messageInfo_Waitable.Merge(m, src) +} +func (m *Waitable) XXX_Size() int { + return xxx_messageInfo_Waitable.Size(m) +} +func (m *Waitable) XXX_DiscardUnknown() { + xxx_messageInfo_Waitable.DiscardUnknown(m) +} + +var xxx_messageInfo_Waitable proto.InternalMessageInfo + +func (m *Waitable) GetWfExecId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.WfExecId + } + return nil +} + +func (m *Waitable) GetPhase() core.WorkflowExecution_Phase { + if m != nil { + return m.Phase + } + return core.WorkflowExecution_UNDEFINED +} + +func (m *Waitable) GetWorkflowId() string { + if m != nil { + return m.WorkflowId + } + return "" +} + +func init() { + proto.RegisterType((*Waitable)(nil), "flyteidl.plugins.Waitable") +} + +func init() { proto.RegisterFile("flyteidl/plugins/waitable.proto", fileDescriptor_6ff9364c45e52921) } + +var fileDescriptor_6ff9364c45e52921 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0xc8, 0x29, 0x4d, 0xcf, 0xcc, 0x2b, 0xd6, 0x2f, 0x4f, 0xcc, + 0x2c, 0x49, 0x4c, 0xca, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x29, 0xd0, + 0x83, 0x2a, 0x90, 0x92, 0x85, 0x6b, 0x49, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xad, 0x48, 0x4d, 0x2e, + 0x2d, 0xc9, 0xcc, 0xcf, 0x83, 0x68, 0x90, 0x92, 0x43, 0x95, 0xce, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, + 0x4c, 0xcb, 0x4c, 0x2d, 0x82, 0xc8, 0x2b, 0x6d, 0x66, 0xe4, 0xe2, 0x08, 0x87, 0xda, 0x21, 0xe4, + 0xc1, 0xc5, 0x55, 0x9e, 0x16, 0x0f, 0x32, 0x22, 0x3e, 0x33, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, + 0xdb, 0x48, 0x4b, 0x0f, 0x6e, 0x25, 0xc8, 0x04, 0xbd, 0xf0, 0xfc, 0xa2, 0xec, 0xb4, 0x9c, 0xfc, + 0x72, 0x57, 0x98, 0x45, 0x9e, 0x70, 0x23, 0x83, 0x38, 0xca, 0xd3, 0x40, 0xc2, 0x9e, 0x29, 0x42, + 0x36, 0x5c, 0xac, 0x05, 0x19, 0x89, 0xc5, 0xa9, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, 0x6a, + 0x84, 0x0c, 0xd1, 0x0b, 0x00, 0xa9, 0x0e, 0x82, 0x68, 0x12, 0x92, 0xe7, 0xe2, 0x2e, 0x87, 0xaa, + 0x00, 0x39, 0x84, 0x59, 0x81, 0x51, 0x83, 0x33, 0x88, 0x0b, 0x26, 0xe4, 0x99, 0xe2, 0x64, 0x19, + 0x65, 0x9e, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x36, 0x3b, 0xbf, + 0x28, 0x5d, 0x1f, 0xee, 0xd7, 0xf4, 0xd4, 0x3c, 0xfd, 0x82, 0x24, 0xdd, 0xf4, 0x7c, 0x7d, 0xf4, + 0x00, 0x4d, 0x62, 0x03, 0xfb, 0xdb, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xba, 0xa1, 0x43, + 0x6b, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.validate.go new file mode 100644 index 0000000000..cd52b41c62 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.validate.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/waitable.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" +) + +// 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{} + + _ = core.WorkflowExecution_Phase(0) +) + +// define the regex for a UUID once up-front +var _waitable_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 Waitable with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Waitable) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWfExecId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WaitableValidationError{ + field: "WfExecId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Phase + + // no validation rules for WorkflowId + + return nil +} + +// WaitableValidationError is the validation error returned by +// Waitable.Validate if the designated constraints aren't met. +type WaitableValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WaitableValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WaitableValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WaitableValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WaitableValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WaitableValidationError) ErrorName() string { return "WaitableValidationError" } + +// Error satisfies the builtin error interface +func (e WaitableValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWaitable.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WaitableValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WaitableValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go new file mode 100644 index 0000000000..1b35e94e46 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go @@ -0,0 +1,2237 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/admin.proto + +package service + +import ( + context "context" + fmt "fmt" + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + proto "github.com/golang/protobuf/proto" + _ "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 + +func init() { proto.RegisterFile("flyteidl/service/admin.proto", fileDescriptor_5cfa31da1d67295d) } + +var fileDescriptor_5cfa31da1d67295d = []byte{ + // 2163 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x9a, 0xdf, 0x6f, 0x1d, 0x47, + 0x15, 0xc7, 0x35, 0x36, 0x02, 0x31, 0x4d, 0x62, 0x7b, 0x9a, 0x60, 0x67, 0x63, 0x27, 0xe9, 0xba, + 0x8e, 0x7f, 0xdf, 0x75, 0x93, 0xb4, 0x51, 0x42, 0x7f, 0xb9, 0xb5, 0x73, 0x65, 0x48, 0x93, 0x62, + 0x52, 0x90, 0x2c, 0xa4, 0xab, 0xf5, 0xdd, 0x89, 0xb3, 0xc9, 0xbd, 0x77, 0x6f, 0x77, 0xc7, 0x2e, + 0x96, 0x65, 0xf1, 0x43, 0x08, 0x51, 0x21, 0xf1, 0xc0, 0x0f, 0x41, 0x21, 0xa2, 0x14, 0x8a, 0xf8, + 0x59, 0x5e, 0x40, 0x45, 0xbc, 0x54, 0x42, 0x80, 0xc4, 0x0b, 0x2f, 0xf0, 0xce, 0x0b, 0x7d, 0xe6, + 0x6f, 0x40, 0x7b, 0x66, 0x66, 0xef, 0xce, 0xee, 0xce, 0xee, 0xac, 0x49, 0x79, 0xe2, 0xcd, 0xbe, + 0xe7, 0x3b, 0x33, 0x9f, 0x73, 0xe6, 0xcc, 0x99, 0xd9, 0xdd, 0xc1, 0x93, 0x77, 0x3a, 0xfb, 0x8c, + 0xfa, 0x5e, 0xc7, 0x89, 0x68, 0xb8, 0xe7, 0xb7, 0xa9, 0xe3, 0x7a, 0x5d, 0xbf, 0xd7, 0xe8, 0x87, + 0x01, 0x0b, 0xc8, 0xa8, 0xb4, 0x36, 0x84, 0xd5, 0x9a, 0xdc, 0x09, 0x82, 0x9d, 0x0e, 0x75, 0xdc, + 0xbe, 0xef, 0xb8, 0xbd, 0x5e, 0xc0, 0x5c, 0xe6, 0x07, 0xbd, 0x88, 0xeb, 0xad, 0x41, 0x6f, 0xd0, + 0x8b, 0xd3, 0x0f, 0x83, 0x7b, 0xb4, 0xcd, 0x84, 0xb5, 0x51, 0x6c, 0x6d, 0x79, 0x41, 0xd7, 0xf5, + 0x7b, 0x2d, 0x97, 0xb1, 0xd0, 0xdf, 0xde, 0x65, 0x54, 0xf6, 0x36, 0xab, 0xd1, 0xe7, 0x84, 0xa7, + 0x33, 0x42, 0xe6, 0x46, 0xf7, 0x85, 0x69, 0x2a, 0x63, 0x7a, 0x2d, 0x08, 0xef, 0xdf, 0xe9, 0x04, + 0xaf, 0x09, 0xf3, 0x9c, 0xc6, 0x9c, 0x1f, 0xe3, 0x7c, 0x46, 0xd9, 0x71, 0x77, 0x7b, 0xed, 0xbb, + 0xad, 0x7e, 0xc7, 0x15, 0xc1, 0xb2, 0xac, 0x8c, 0x82, 0xee, 0xd1, 0x9e, 0x74, 0xfd, 0x6c, 0xd6, + 0xf6, 0x79, 0xda, 0xde, 0x8d, 0x23, 0xa7, 0x71, 0xb5, 0xeb, 0xb2, 0xf6, 0x5d, 0x77, 0xbb, 0x43, + 0x5b, 0x21, 0x8d, 0x82, 0xdd, 0xb0, 0x4d, 0x85, 0x70, 0x3a, 0x23, 0xec, 0x05, 0x1e, 0x6d, 0x65, + 0x7b, 0x9b, 0x2e, 0x88, 0x47, 0x4e, 0x94, 0x9d, 0xab, 0x3d, 0x1a, 0x46, 0x03, 0xeb, 0x99, 0x8c, + 0xb5, 0x1d, 0x74, 0xbb, 0x5a, 0x5a, 0x8f, 0x46, 0xed, 0xd0, 0xef, 0xc7, 0x9d, 0xb7, 0x68, 0x8f, + 0xf9, 0x6c, 0x9f, 0x0b, 0x2f, 0x7e, 0xe5, 0x26, 0x3e, 0xb6, 0x1a, 0x4b, 0x3e, 0xcd, 0xd3, 0x87, + 0x74, 0x31, 0x7e, 0x31, 0xa4, 0x2e, 0xa3, 0xb7, 0xdd, 0xe8, 0x3e, 0x79, 0x2c, 0xc9, 0x88, 0x06, + 0xcf, 0xba, 0xf8, 0x57, 0x6e, 0xdf, 0xa4, 0xaf, 0xee, 0xd2, 0x88, 0x59, 0x76, 0x99, 0x24, 0xea, + 0x07, 0xbd, 0x88, 0xda, 0x13, 0x5f, 0xfe, 0xc7, 0xfb, 0xdf, 0x1a, 0x22, 0xf6, 0x71, 0xc8, 0xca, + 0xbd, 0x27, 0xc0, 0xdf, 0xe8, 0x1a, 0x5a, 0x20, 0x5f, 0x43, 0xf8, 0x23, 0x4d, 0xca, 0x60, 0xb0, + 0xf3, 0xd9, 0x9e, 0x6e, 0x6d, 0xc7, 0xd9, 0xd4, 0xa4, 0x4c, 0x8e, 0x75, 0xb2, 0x68, 0x2c, 0x7b, + 0x1d, 0x7a, 0x7f, 0x8e, 0x3c, 0xa3, 0xf4, 0xee, 0x1c, 0xf8, 0x5e, 0x43, 0x24, 0xe4, 0x21, 0xfc, + 0xc3, 0xb3, 0x98, 0xff, 0xdd, 0x73, 0xbb, 0x94, 0xff, 0x25, 0xa2, 0x7a, 0x48, 0xbe, 0x8b, 0xf0, + 0x23, 0x37, 0xfc, 0x08, 0x58, 0x36, 0xbc, 0x88, 0xac, 0x64, 0x07, 0xbb, 0xe9, 0x76, 0xa9, 0xb7, + 0x0e, 0xd1, 0xdb, 0xf0, 0xe2, 0x28, 0xde, 0xf1, 0x69, 0x18, 0xb7, 0x90, 0x78, 0xf3, 0xc6, 0x2d, + 0xec, 0x45, 0x60, 0x9e, 0x21, 0xd3, 0x69, 0xe6, 0x96, 0xef, 0x45, 0xce, 0xc1, 0x80, 0x59, 0x00, + 0x93, 0xdf, 0x20, 0xfc, 0x51, 0x49, 0x16, 0x91, 0xe9, 0xec, 0x28, 0x9b, 0x22, 0x01, 0xd3, 0x28, + 0x13, 0x45, 0x91, 0x82, 0x91, 0xb7, 0x61, 0xe4, 0xcf, 0x91, 0x95, 0xba, 0xd1, 0xda, 0x9a, 0x23, + 0x17, 0xcc, 0xda, 0x90, 0x43, 0x7c, 0x82, 0x67, 0xc0, 0x67, 0xc5, 0x6a, 0x25, 0x33, 0x59, 0x1e, + 0x69, 0x51, 0x93, 0xe9, 0x42, 0x95, 0x4c, 0x24, 0xd4, 0x24, 0x38, 0xf1, 0x31, 0x7b, 0x4c, 0x02, + 0xc9, 0xb2, 0x00, 0x49, 0xf5, 0x6d, 0x84, 0x1f, 0x69, 0x52, 0x96, 0x0c, 0x5e, 0x9d, 0x58, 0x13, + 0xba, 0x71, 0xed, 0x0d, 0x18, 0xe9, 0x45, 0xb2, 0x9a, 0x1b, 0xa9, 0x76, 0x82, 0xbd, 0x89, 0xf0, + 0x48, 0x3c, 0x05, 0xb2, 0xef, 0x0f, 0x3c, 0xc9, 0x1c, 0x60, 0x9f, 0x27, 0xb3, 0x59, 0x76, 0x5d, + 0xa2, 0xbd, 0x87, 0xf0, 0xf1, 0x34, 0xa1, 0x61, 0xb2, 0x4d, 0xea, 0xa2, 0x07, 0x14, 0xf7, 0x80, + 0xc2, 0x23, 0x97, 0x8f, 0x12, 0xc1, 0xad, 0x25, 0xb2, 0x60, 0xde, 0x8e, 0x7c, 0x15, 0xe1, 0x51, + 0x9e, 0x2a, 0x37, 0xa0, 0xfa, 0xbf, 0xdc, 0x71, 0x7b, 0x64, 0x36, 0x8b, 0x37, 0xb0, 0xa9, 0xd9, + 0x37, 0x57, 0x2d, 0x14, 0xf9, 0x77, 0x0e, 0x7c, 0x3a, 0x6d, 0x9f, 0x94, 0x6c, 0xa9, 0xcd, 0x06, + 0x52, 0xf0, 0x07, 0x08, 0x1f, 0x6f, 0x52, 0x96, 0xa2, 0xa8, 0x4e, 0x42, 0x4b, 0x3f, 0xbc, 0x7d, + 0x03, 0x06, 0xbc, 0x4e, 0xd6, 0x8a, 0x06, 0xac, 0x9d, 0x89, 0x3f, 0x46, 0xf8, 0xd1, 0x26, 0x65, + 0xab, 0x6d, 0xe6, 0xef, 0x95, 0x46, 0x2a, 0xab, 0x30, 0x41, 0xbd, 0x0e, 0xa8, 0xcf, 0x93, 0x67, + 0x25, 0xaa, 0x0b, 0x9d, 0xb4, 0x6a, 0x12, 0x93, 0x07, 0x08, 0x9f, 0x8a, 0x13, 0x28, 0xcb, 0x10, + 0x91, 0xc5, 0x2a, 0xcc, 0x74, 0x72, 0x9e, 0xd5, 0xa3, 0x42, 0x7a, 0x3e, 0x05, 0xb8, 0x2b, 0xa4, + 0x51, 0x8a, 0x9b, 0x5f, 0x2b, 0x6f, 0x23, 0x3c, 0x16, 0x77, 0x30, 0xe8, 0xee, 0x03, 0x5f, 0xcf, + 0x17, 0x01, 0x35, 0xb5, 0x22, 0x52, 0x8c, 0xba, 0x25, 0xfd, 0x57, 0x51, 0x74, 0xd2, 0xf1, 0x33, + 0x5a, 0xd4, 0x55, 0x71, 0xeb, 0x03, 0xcc, 0x3d, 0x72, 0xe5, 0x88, 0x19, 0xb9, 0xe5, 0x90, 0xe5, + 0x5a, 0x4d, 0xc9, 0xbb, 0x08, 0x8f, 0xbe, 0xd2, 0xf7, 0x8c, 0x17, 0x37, 0xd7, 0x1a, 0x2c, 0x6e, + 0x29, 0x14, 0x8b, 0xfb, 0x16, 0x78, 0xb6, 0x61, 0x3d, 0x94, 0xb5, 0x16, 0x17, 0x83, 0x2f, 0x21, + 0x3c, 0xc2, 0x0b, 0xc8, 0xba, 0x3c, 0xe2, 0x91, 0xdc, 0x4e, 0x97, 0x98, 0xd4, 0x9a, 0x34, 0x5b, + 0xa9, 0x13, 0xd4, 0x53, 0x40, 0x3d, 0x6e, 0x13, 0x49, 0x9d, 0x1c, 0x27, 0xa1, 0x20, 0x7d, 0x03, + 0xe1, 0xb1, 0x4d, 0xca, 0x3d, 0x19, 0x50, 0xcc, 0x69, 0x7b, 0x97, 0xda, 0xda, 0x1c, 0x17, 0x80, + 0xe3, 0xbc, 0x7d, 0x26, 0xcf, 0xe1, 0x84, 0xa2, 0xd3, 0x18, 0xe8, 0xeb, 0x08, 0x8f, 0x6e, 0xd2, + 0x76, 0xb0, 0x47, 0xc3, 0x01, 0xcf, 0x6c, 0x09, 0x0f, 0x48, 0x6b, 0xe3, 0xcc, 0x00, 0xce, 0x39, + 0xdb, 0x2a, 0xc4, 0x81, 0x3e, 0x63, 0x9a, 0xef, 0x20, 0x7c, 0xac, 0x49, 0xd9, 0x80, 0x64, 0x51, + 0xb7, 0xa7, 0x25, 0x92, 0x54, 0xe5, 0x3e, 0xad, 0xa5, 0xb1, 0x9f, 0x81, 0xf1, 0xaf, 0x90, 0x27, + 0x0b, 0xc6, 0x37, 0x28, 0x82, 0x6f, 0x23, 0x3c, 0xc2, 0xd3, 0xd3, 0x24, 0x75, 0xd4, 0x8c, 0x9f, + 0xad, 0xd4, 0x89, 0x18, 0x3d, 0x0f, 0x8c, 0xd7, 0xac, 0xa3, 0x31, 0xc6, 0xe1, 0xfb, 0x03, 0xc2, + 0xa3, 0xe9, 0xf0, 0xad, 0xb9, 0xcc, 0x25, 0x8e, 0x49, 0x08, 0x63, 0xa5, 0x04, 0x5e, 0x31, 0x6f, + 0x20, 0xc8, 0x5f, 0x00, 0xf2, 0xa7, 0xc9, 0x35, 0x49, 0xee, 0xb9, 0xcc, 0xad, 0x19, 0xe2, 0xd7, + 0x11, 0x3e, 0x11, 0x57, 0xb4, 0x64, 0x10, 0xc3, 0x02, 0x39, 0xa5, 0x0d, 0x2f, 0xd4, 0xc7, 0x4b, + 0x80, 0xb6, 0x4c, 0x16, 0x6b, 0x04, 0x95, 0xbc, 0x83, 0x30, 0xb9, 0x4d, 0xc3, 0xae, 0xdf, 0x53, + 0x66, 0x7c, 0x5e, 0x3b, 0x54, 0x22, 0x96, 0x54, 0x0b, 0x26, 0x52, 0x75, 0xde, 0x17, 0x8e, 0x3e, + 0xef, 0x7f, 0xe7, 0xf3, 0x7e, 0x33, 0xf0, 0x68, 0xc9, 0x22, 0x56, 0xcc, 0xa9, 0x65, 0x33, 0x55, + 0x2a, 0xb4, 0xf7, 0x00, 0xaf, 0x4f, 0x7a, 0x12, 0x4f, 0x7d, 0x94, 0xe6, 0x8c, 0xc9, 0xbf, 0xad, + 0x2c, 0xb0, 0x62, 0x49, 0xd3, 0x2b, 0x86, 0x41, 0xc5, 0x86, 0xde, 0x7d, 0xef, 0x90, 0xfc, 0x13, + 0x61, 0x12, 0x4f, 0xa1, 0x42, 0x13, 0xe5, 0x6b, 0xa5, 0x62, 0x4f, 0x67, 0xc6, 0x63, 0x95, 0x4a, + 0xfb, 0x00, 0x7c, 0xdb, 0x25, 0x91, 0xd6, 0xb7, 0xe4, 0xac, 0xae, 0xf1, 0xb0, 0xd8, 0x9e, 0xf8, + 0x59, 0x6c, 0xe6, 0x19, 0xff, 0xd3, 0x0f, 0xe1, 0xd3, 0x79, 0x07, 0xaf, 0x07, 0x21, 0x3c, 0x86, + 0x3b, 0xa5, 0xf4, 0x42, 0x55, 0xd3, 0xdd, 0xdf, 0x0e, 0x83, 0xbf, 0xbf, 0x1e, 0x26, 0xbf, 0x18, + 0x96, 0x1e, 0xb7, 0xef, 0xfa, 0x1d, 0x2f, 0xa4, 0xd9, 0x97, 0x1f, 0x91, 0x73, 0xa0, 0xfe, 0xd0, + 0x92, 0x73, 0xa3, 0xfc, 0xa2, 0x89, 0x4a, 0xed, 0xa6, 0x49, 0xc0, 0x6a, 0xb7, 0x14, 0x99, 0x63, + 0xd2, 0x4e, 0xa6, 0x56, 0x91, 0x5a, 0x3c, 0xf8, 0x97, 0xfa, 0x20, 0x35, 0x25, 0xb0, 0x52, 0xa2, + 0xa5, 0x92, 0x02, 0x79, 0x30, 0x29, 0xd2, 0x84, 0x94, 0x85, 0xfb, 0x2d, 0x97, 0x31, 0xda, 0xed, + 0xb3, 0x43, 0xf2, 0x6f, 0x84, 0x4f, 0x66, 0x57, 0x37, 0x54, 0xf6, 0xc5, 0xaa, 0x15, 0x9e, 0xae, + 0xea, 0x4b, 0x66, 0x62, 0x51, 0x93, 0x72, 0x0b, 0x03, 0x2a, 0xfa, 0xff, 0x68, 0xe5, 0x7f, 0x01, + 0x8f, 0x6c, 0xd2, 0x1d, 0x3f, 0x62, 0x34, 0x7c, 0x99, 0x77, 0x98, 0xdf, 0x6c, 0x85, 0x41, 0xea, + 0xb4, 0x9b, 0x6d, 0x4e, 0x27, 0x1c, 0x3c, 0x03, 0x0e, 0x9e, 0xb2, 0x47, 0xa5, 0x83, 0x02, 0x1d, + 0x4e, 0x69, 0xaf, 0xe2, 0xe3, 0x7c, 0x6f, 0x96, 0xc3, 0x8f, 0x6b, 0xba, 0xb5, 0x66, 0x34, 0x86, + 0xcc, 0xd6, 0x7e, 0x1e, 0x46, 0xb3, 0xac, 0x53, 0xd9, 0xd1, 0x62, 0xc7, 0xa1, 0x84, 0xdf, 0xc1, + 0xc7, 0xe2, 0x25, 0x2a, 0x9a, 0x47, 0xc4, 0xd6, 0x74, 0x5c, 0xfa, 0x76, 0x49, 0xb6, 0x96, 0x6f, + 0xfa, 0x48, 0xce, 0x3b, 0xf2, 0x06, 0xc2, 0x8f, 0xaa, 0x2f, 0x85, 0xd6, 0xf7, 0x68, 0x8f, 0x91, + 0xe5, 0xca, 0x4d, 0x1f, 0x74, 0x72, 0xe8, 0x86, 0xa9, 0x5c, 0x04, 0x60, 0x1a, 0x80, 0xa6, 0xec, + 0x89, 0x64, 0x8f, 0x8b, 0xcd, 0x91, 0xfa, 0xc2, 0xe8, 0xf5, 0xe4, 0x80, 0x0e, 0xb9, 0x09, 0x5c, + 0xf3, 0xa5, 0x69, 0xab, 0x30, 0x2d, 0x98, 0x48, 0x75, 0x6f, 0x0e, 0x04, 0x4f, 0x9c, 0x83, 0x19, + 0x96, 0xb8, 0xce, 0x6a, 0x58, 0xc0, 0x64, 0xc6, 0x52, 0x24, 0xad, 0x60, 0x49, 0xde, 0xce, 0x7e, + 0x71, 0x18, 0xb6, 0x77, 0xa5, 0x8b, 0xfc, 0xf6, 0xae, 0x98, 0xcb, 0xb6, 0x77, 0x45, 0x68, 0xff, + 0x64, 0x08, 0x86, 0x7f, 0x30, 0x44, 0xde, 0x18, 0x52, 0xde, 0x82, 0x66, 0xd6, 0xb9, 0x71, 0xed, + 0xaf, 0x51, 0xec, 0x8d, 0xab, 0x7b, 0x45, 0x39, 0x2f, 0xac, 0xdf, 0x45, 0x05, 0x3b, 0x5f, 0xa1, + 0x0b, 0x4b, 0x72, 0xbe, 0x06, 0x7f, 0x6f, 0x88, 0x1f, 0x46, 0x94, 0xd8, 0x15, 0x1c, 0x46, 0x14, + 0x7b, 0xe9, 0xee, 0x9c, 0x53, 0xda, 0xbf, 0x43, 0x30, 0x13, 0xef, 0x20, 0xf2, 0x4b, 0xa4, 0x9d, + 0x09, 0xe3, 0x69, 0x30, 0x9d, 0x03, 0xb3, 0x09, 0xd0, 0x47, 0x9f, 0x3c, 0x18, 0x86, 0xed, 0x49, + 0xf1, 0xa7, 0x78, 0x7b, 0xca, 0x66, 0x68, 0xe9, 0xf6, 0x54, 0x2c, 0x16, 0x4b, 0xe6, 0xe7, 0x3c, + 0x69, 0xdf, 0x1a, 0x22, 0x3f, 0x1c, 0x52, 0x76, 0xa8, 0xff, 0x67, 0x6e, 0x36, 0x73, 0xff, 0x85, + 0xf0, 0x94, 0xb2, 0x99, 0xad, 0x41, 0x97, 0xab, 0xc9, 0x77, 0x3b, 0x72, 0x59, 0xb3, 0x8d, 0x64, + 0x85, 0xea, 0x63, 0xed, 0x93, 0x35, 0x5b, 0x89, 0x99, 0x7b, 0x05, 0x26, 0xee, 0x96, 0xf5, 0x89, + 0xcc, 0xce, 0x94, 0xff, 0xb8, 0xe9, 0x1c, 0xa8, 0xdf, 0x16, 0x45, 0x70, 0x52, 0x3f, 0x8a, 0xe0, + 0xc4, 0x25, 0xf2, 0x8f, 0x08, 0x5b, 0x4d, 0xca, 0x74, 0x2e, 0x3e, 0x61, 0x08, 0x9b, 0x2a, 0x9b, + 0x17, 0xeb, 0x34, 0x11, 0xce, 0x3d, 0x0d, 0xce, 0x3d, 0x35, 0x78, 0xc7, 0x5e, 0xe2, 0x5c, 0xfe, + 0x1d, 0xe1, 0xdf, 0x10, 0x9e, 0x5a, 0xa3, 0x1d, 0xfa, 0xdf, 0xcf, 0x14, 0xef, 0xa5, 0xee, 0x4c, + 0xc9, 0x56, 0xc2, 0x99, 0xe7, 0xc0, 0x99, 0xab, 0x0b, 0x47, 0x72, 0x26, 0x9e, 0x93, 0x77, 0x11, + 0x1e, 0x57, 0x32, 0x2f, 0xe5, 0x49, 0x43, 0xc3, 0xa4, 0xcb, 0x36, 0xc7, 0x58, 0x2f, 0xe8, 0xaf, + 0x01, 0xfd, 0x65, 0xcb, 0xc9, 0xd2, 0x57, 0x24, 0x58, 0x0c, 0xfe, 0x26, 0x3f, 0x70, 0xe7, 0xa9, + 0x17, 0x2b, 0x29, 0x52, 0x09, 0xb4, 0x64, 0x26, 0x16, 0xbc, 0x4b, 0xc0, 0x7b, 0x81, 0x3c, 0x5e, + 0xc6, 0x2b, 0x21, 0xc9, 0xaf, 0x10, 0x1e, 0x57, 0x52, 0xa5, 0x56, 0x68, 0xd5, 0xf4, 0x70, 0x8c, + 0xf5, 0x02, 0x55, 0x7c, 0xcf, 0x5a, 0x30, 0x42, 0x8d, 0xe3, 0xf9, 0x3e, 0xc2, 0x13, 0x7c, 0x7a, + 0xe4, 0x29, 0x31, 0x85, 0xab, 0x7d, 0x3d, 0xa5, 0x4b, 0x85, 0x15, 0xf3, 0x06, 0x02, 0x98, 0x02, + 0x70, 0xcb, 0xda, 0xca, 0x7d, 0x80, 0x3b, 0x42, 0xb5, 0x51, 0x7e, 0x93, 0x1d, 0x81, 0x9b, 0xbf, + 0x47, 0xf8, 0x54, 0xea, 0x7b, 0x67, 0xca, 0xc7, 0xa5, 0x6a, 0xe4, 0x54, 0xe2, 0x2c, 0x1b, 0xaa, + 0x85, 0x77, 0xab, 0xe0, 0xdd, 0xc7, 0xc9, 0xd5, 0x52, 0xef, 0x72, 0x2b, 0x74, 0xf0, 0x6e, 0xe2, + 0x90, 0xfc, 0x09, 0xe1, 0x09, 0x3e, 0xc9, 0x47, 0x9b, 0x20, 0x35, 0xa1, 0x56, 0xcc, 0x1b, 0x08, + 0x17, 0xd6, 0xc0, 0x85, 0x67, 0x17, 0x8e, 0xee, 0x42, 0x1c, 0xff, 0x1f, 0x21, 0x3c, 0x1e, 0x1f, + 0xa4, 0x5e, 0x92, 0x77, 0x42, 0xca, 0x16, 0x85, 0x46, 0xa8, 0x5d, 0x14, 0x5a, 0xbd, 0x70, 0xe1, + 0x71, 0x70, 0xe1, 0x2c, 0x99, 0x94, 0x2e, 0x0c, 0x6e, 0xa6, 0x0c, 0x7c, 0x88, 0x2b, 0x0b, 0x7c, + 0xad, 0x1a, 0x7c, 0x5c, 0xf2, 0x69, 0x94, 0x7f, 0xb8, 0x4d, 0x7d, 0x7b, 0x4a, 0x9f, 0x21, 0xcf, + 0x55, 0xe8, 0xf2, 0xa9, 0x10, 0x1f, 0x15, 0x3c, 0x7e, 0xd5, 0xc4, 0x8f, 0x43, 0x28, 0x2f, 0xc9, + 0xb4, 0xd8, 0x7e, 0x3f, 0x3e, 0x43, 0xe4, 0x37, 0xa1, 0x9f, 0x21, 0x7c, 0xa2, 0x49, 0x53, 0x80, + 0xfb, 0xf9, 0x4b, 0x03, 0x29, 0x63, 0x2a, 0x6d, 0xcf, 0x94, 0xc8, 0xec, 0x4f, 0x01, 0xd9, 0x27, + 0xc9, 0x86, 0x29, 0x59, 0xf5, 0x0b, 0xe3, 0xf7, 0x10, 0x1e, 0xe3, 0x0b, 0x3d, 0x0d, 0x3b, 0x57, + 0x42, 0xa1, 0xd6, 0x91, 0x79, 0x03, 0xa5, 0x98, 0xdc, 0xdb, 0x40, 0x7f, 0xd3, 0x7a, 0x78, 0xf4, + 0x71, 0xbe, 0x76, 0x30, 0x6e, 0x52, 0xf6, 0x19, 0x7e, 0x76, 0xcb, 0xdf, 0xf1, 0x19, 0xd8, 0xb4, + 0x77, 0x7c, 0xd2, 0x12, 0x81, 0x3a, 0x0e, 0xa8, 0x63, 0x64, 0x44, 0xa2, 0x8a, 0xb3, 0x21, 0xf9, + 0x33, 0xdf, 0xd4, 0xd6, 0x06, 0x57, 0x90, 0x44, 0xc4, 0xaa, 0xbf, 0x88, 0xe7, 0xd0, 0x72, 0x9d, + 0xd8, 0x3b, 0x30, 0xac, 0x4b, 0x5a, 0xc9, 0x69, 0x3c, 0x7b, 0xd5, 0x09, 0xe2, 0x04, 0xc7, 0xd3, + 0x9a, 0xa1, 0x52, 0xbf, 0x99, 0x7f, 0x73, 0x88, 0x2f, 0xf2, 0x2c, 0x82, 0x5f, 0x54, 0x66, 0x73, + 0x9c, 0xe9, 0xd5, 0x34, 0x63, 0xa4, 0xb6, 0xdf, 0xe2, 0x4f, 0x65, 0xdf, 0x47, 0xe4, 0x56, 0xb9, + 0x6f, 0xb5, 0x1d, 0xdb, 0x6a, 0x92, 0xf5, 0x87, 0xd2, 0x25, 0xf9, 0x0b, 0xbf, 0x48, 0x90, 0x3c, + 0x2e, 0xbd, 0x44, 0x59, 0xe8, 0xb7, 0x23, 0x72, 0xd1, 0xe4, 0x4b, 0x8e, 0x10, 0xcb, 0xb0, 0x5c, + 0xaa, 0xd5, 0x46, 0x64, 0x5d, 0xee, 0xee, 0x57, 0x97, 0x0b, 0xea, 0x7d, 0xca, 0x78, 0xe1, 0xea, + 0xd6, 0x95, 0x1d, 0x9f, 0xdd, 0xdd, 0xdd, 0x6e, 0xb4, 0x83, 0xae, 0x03, 0x1c, 0x41, 0xb8, 0xe3, + 0x24, 0xb7, 0xe8, 0x76, 0x68, 0xcf, 0xe9, 0x6f, 0x2f, 0xef, 0x04, 0x4e, 0xf6, 0x36, 0xe6, 0xf6, + 0x87, 0xe1, 0x22, 0xdd, 0xa5, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x92, 0x51, 0x02, 0xc6, 0xa8, + 0x29, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// 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 { + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) + GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) +} + +type adminServiceClient struct { + cc *grpc.ClientConn +} + +func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient { + return &adminServiceClient{cc} +} + +func (c *adminServiceClient) CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) { + out := new(admin.TaskCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) { + out := new(admin.Task) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTaskIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) { + out := new(admin.TaskList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTasks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) { + out := new(admin.WorkflowCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateWorkflow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) { + out := new(admin.Workflow) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetWorkflow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListWorkflowIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) { + out := new(admin.WorkflowList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListWorkflows", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) { + out := new(admin.LaunchPlanCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateLaunchPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { + out := new(admin.LaunchPlan) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetLaunchPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { + out := new(admin.LaunchPlan) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetActiveLaunchPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { + out := new(admin.LaunchPlanList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListActiveLaunchPlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListLaunchPlanIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { + out := new(admin.LaunchPlanList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListLaunchPlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) { + out := new(admin.LaunchPlanUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateLaunchPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RelaunchExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RecoverExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) { + out := new(admin.Execution) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) { + out := new(admin.ExecutionUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) { + out := new(admin.WorkflowExecutionGetDataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecutionData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) { + out := new(admin.ExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) { + out := new(admin.ExecutionTerminateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/TerminateExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) { + out := new(admin.NodeExecution) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNodeExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + out := new(admin.NodeExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNodeExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + out := new(admin.NodeExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNodeExecutionsForTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) { + out := new(admin.NodeExecutionGetDataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNodeExecutionData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) { + out := new(admin.ProjectRegisterResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RegisterProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) { + out := new(admin.ProjectUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) { + out := new(admin.Projects) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListProjects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) { + out := new(admin.WorkflowExecutionEventResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateWorkflowEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) { + out := new(admin.NodeExecutionEventResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateNodeEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) { + out := new(admin.TaskExecutionEventResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateTaskEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) { + out := new(admin.TaskExecution) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTaskExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) { + out := new(admin.TaskExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTaskExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) { + out := new(admin.TaskExecutionGetDataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTaskExecutionData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) { + out := new(admin.ProjectDomainAttributesUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) { + out := new(admin.ProjectDomainAttributesGetResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetProjectDomainAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) { + out := new(admin.ProjectDomainAttributesDeleteResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) { + out := new(admin.ProjectAttributesUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateProjectAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) { + out := new(admin.ProjectAttributesGetResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetProjectAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) { + out := new(admin.ProjectAttributesDeleteResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/DeleteProjectAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) { + out := new(admin.WorkflowAttributesUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateWorkflowAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) { + out := new(admin.WorkflowAttributesGetResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetWorkflowAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) { + out := new(admin.WorkflowAttributesDeleteResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/DeleteWorkflowAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) { + out := new(admin.ListMatchableAttributesResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListMatchableAttributes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) { + out := new(admin.NamedEntityList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNamedEntities", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) { + out := new(admin.NamedEntity) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNamedEntity", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) { + out := new(admin.NamedEntityUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateNamedEntity", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) { + out := new(admin.GetVersionResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) { + out := new(admin.DescriptionEntity) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetDescriptionEntity", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) { + out := new(admin.DescriptionEntityList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListDescriptionEntities", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) { + out := new(admin.WorkflowExecutionGetMetricsResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecutionMetrics", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminServiceServer is the server API for AdminService service. +type AdminServiceServer interface { + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + CreateTask(context.Context, *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + GetTask(context.Context, *admin.ObjectGetRequest) (*admin.Task, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + ListTaskIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + ListTasks(context.Context, *admin.ResourceListRequest) (*admin.TaskList, error) + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + CreateWorkflow(context.Context, *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + GetWorkflow(context.Context, *admin.ObjectGetRequest) (*admin.Workflow, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + ListWorkflowIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + ListWorkflows(context.Context, *admin.ResourceListRequest) (*admin.WorkflowList, error) + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + CreateLaunchPlan(context.Context, *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + GetLaunchPlan(context.Context, *admin.ObjectGetRequest) (*admin.LaunchPlan, error) + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + GetActiveLaunchPlan(context.Context, *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + ListActiveLaunchPlans(context.Context, *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + ListLaunchPlanIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + ListLaunchPlans(context.Context, *admin.ResourceListRequest) (*admin.LaunchPlanList, error) + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + UpdateLaunchPlan(context.Context, *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + CreateExecution(context.Context, *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + RelaunchExecution(context.Context, *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + RecoverExecution(context.Context, *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + GetExecution(context.Context, *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + UpdateExecution(context.Context, *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionData(context.Context, *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + ListExecutions(context.Context, *admin.ResourceListRequest) (*admin.ExecutionList, error) + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + TerminateExecution(context.Context, *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecution(context.Context, *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + ListNodeExecutions(context.Context, *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + ListNodeExecutionsForTask(context.Context, *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecutionData(context.Context, *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + RegisterProject(context.Context, *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + UpdateProject(context.Context, *admin.Project) (*admin.ProjectUpdateResponse, error) + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + ListProjects(context.Context, *admin.ProjectListRequest) (*admin.Projects, error) + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + CreateWorkflowEvent(context.Context, *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + CreateNodeEvent(context.Context, *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + CreateTaskEvent(context.Context, *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecution(context.Context, *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + ListTaskExecutions(context.Context, *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecutionData(context.Context, *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + UpdateProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + UpdateProjectAttributes(context.Context, *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectAttributes(context.Context, *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectAttributes(context.Context, *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + UpdateWorkflowAttributes(context.Context, *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + GetWorkflowAttributes(context.Context, *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + DeleteWorkflowAttributes(context.Context, *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + ListMatchableAttributes(context.Context, *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + ListNamedEntities(context.Context, *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + GetNamedEntity(context.Context, *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + UpdateNamedEntity(context.Context, *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) + GetVersion(context.Context, *admin.GetVersionRequest) (*admin.GetVersionResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + GetDescriptionEntity(context.Context, *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + ListDescriptionEntities(context.Context, *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionMetrics(context.Context, *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) +} + +// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAdminServiceServer struct { +} + +func (*UnimplementedAdminServiceServer) CreateTask(ctx context.Context, req *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") +} +func (*UnimplementedAdminServiceServer) GetTask(ctx context.Context, req *admin.ObjectGetRequest) (*admin.Task, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") +} +func (*UnimplementedAdminServiceServer) ListTaskIds(ctx context.Context, req *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTaskIds not implemented") +} +func (*UnimplementedAdminServiceServer) ListTasks(ctx context.Context, req *admin.ResourceListRequest) (*admin.TaskList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTasks not implemented") +} +func (*UnimplementedAdminServiceServer) CreateWorkflow(ctx context.Context, req *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflow not implemented") +} +func (*UnimplementedAdminServiceServer) GetWorkflow(ctx context.Context, req *admin.ObjectGetRequest) (*admin.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflow not implemented") +} +func (*UnimplementedAdminServiceServer) ListWorkflowIds(ctx context.Context, req *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowIds not implemented") +} +func (*UnimplementedAdminServiceServer) ListWorkflows(ctx context.Context, req *admin.ResourceListRequest) (*admin.WorkflowList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflows not implemented") +} +func (*UnimplementedAdminServiceServer) CreateLaunchPlan(ctx context.Context, req *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateLaunchPlan not implemented") +} +func (*UnimplementedAdminServiceServer) GetLaunchPlan(ctx context.Context, req *admin.ObjectGetRequest) (*admin.LaunchPlan, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLaunchPlan not implemented") +} +func (*UnimplementedAdminServiceServer) GetActiveLaunchPlan(ctx context.Context, req *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetActiveLaunchPlan not implemented") +} +func (*UnimplementedAdminServiceServer) ListActiveLaunchPlans(ctx context.Context, req *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListActiveLaunchPlans not implemented") +} +func (*UnimplementedAdminServiceServer) ListLaunchPlanIds(ctx context.Context, req *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlanIds not implemented") +} +func (*UnimplementedAdminServiceServer) ListLaunchPlans(ctx context.Context, req *admin.ResourceListRequest) (*admin.LaunchPlanList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlans not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateLaunchPlan(ctx context.Context, req *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateLaunchPlan not implemented") +} +func (*UnimplementedAdminServiceServer) CreateExecution(ctx context.Context, req *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateExecution not implemented") +} +func (*UnimplementedAdminServiceServer) RelaunchExecution(ctx context.Context, req *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RelaunchExecution not implemented") +} +func (*UnimplementedAdminServiceServer) RecoverExecution(ctx context.Context, req *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecoverExecution not implemented") +} +func (*UnimplementedAdminServiceServer) GetExecution(ctx context.Context, req *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExecution not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateExecution(ctx context.Context, req *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateExecution not implemented") +} +func (*UnimplementedAdminServiceServer) GetExecutionData(ctx context.Context, req *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExecutionData not implemented") +} +func (*UnimplementedAdminServiceServer) ListExecutions(ctx context.Context, req *admin.ResourceListRequest) (*admin.ExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExecutions not implemented") +} +func (*UnimplementedAdminServiceServer) TerminateExecution(ctx context.Context, req *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TerminateExecution not implemented") +} +func (*UnimplementedAdminServiceServer) GetNodeExecution(ctx context.Context, req *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecution not implemented") +} +func (*UnimplementedAdminServiceServer) ListNodeExecutions(ctx context.Context, req *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutions not implemented") +} +func (*UnimplementedAdminServiceServer) ListNodeExecutionsForTask(ctx context.Context, req *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutionsForTask not implemented") +} +func (*UnimplementedAdminServiceServer) GetNodeExecutionData(ctx context.Context, req *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecutionData not implemented") +} +func (*UnimplementedAdminServiceServer) RegisterProject(ctx context.Context, req *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterProject not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateProject(ctx context.Context, req *admin.Project) (*admin.ProjectUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") +} +func (*UnimplementedAdminServiceServer) ListProjects(ctx context.Context, req *admin.ProjectListRequest) (*admin.Projects, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjects not implemented") +} +func (*UnimplementedAdminServiceServer) CreateWorkflowEvent(ctx context.Context, req *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowEvent not implemented") +} +func (*UnimplementedAdminServiceServer) CreateNodeEvent(ctx context.Context, req *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNodeEvent not implemented") +} +func (*UnimplementedAdminServiceServer) CreateTaskEvent(ctx context.Context, req *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTaskEvent not implemented") +} +func (*UnimplementedAdminServiceServer) GetTaskExecution(ctx context.Context, req *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecution not implemented") +} +func (*UnimplementedAdminServiceServer) ListTaskExecutions(ctx context.Context, req *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTaskExecutions not implemented") +} +func (*UnimplementedAdminServiceServer) GetTaskExecutionData(ctx context.Context, req *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecutionData not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateProjectDomainAttributes(ctx context.Context, req *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectDomainAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) GetProjectDomainAttributes(ctx context.Context, req *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectDomainAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) DeleteProjectDomainAttributes(ctx context.Context, req *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectDomainAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateProjectAttributes(ctx context.Context, req *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) GetProjectAttributes(ctx context.Context, req *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) DeleteProjectAttributes(ctx context.Context, req *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateWorkflowAttributes(ctx context.Context, req *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) GetWorkflowAttributes(ctx context.Context, req *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) DeleteWorkflowAttributes(ctx context.Context, req *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflowAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) ListMatchableAttributes(ctx context.Context, req *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMatchableAttributes not implemented") +} +func (*UnimplementedAdminServiceServer) ListNamedEntities(ctx context.Context, req *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNamedEntities not implemented") +} +func (*UnimplementedAdminServiceServer) GetNamedEntity(ctx context.Context, req *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNamedEntity not implemented") +} +func (*UnimplementedAdminServiceServer) UpdateNamedEntity(ctx context.Context, req *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNamedEntity not implemented") +} +func (*UnimplementedAdminServiceServer) GetVersion(ctx context.Context, req *admin.GetVersionRequest) (*admin.GetVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") +} +func (*UnimplementedAdminServiceServer) GetDescriptionEntity(ctx context.Context, req *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDescriptionEntity not implemented") +} +func (*UnimplementedAdminServiceServer) ListDescriptionEntities(ctx context.Context, req *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDescriptionEntities not implemented") +} +func (*UnimplementedAdminServiceServer) GetExecutionMetrics(ctx context.Context, req *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExecutionMetrics not implemented") +} + +func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) { + s.RegisterService(&_AdminService_serviceDesc, srv) +} + +func _AdminService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateTask(ctx, req.(*admin.TaskCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTask(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTaskIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTaskIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListTaskIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTaskIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListTasks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTasks(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateWorkflow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateWorkflow(ctx, req.(*admin.WorkflowCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetWorkflow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetWorkflow(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListWorkflowIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListWorkflowIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListWorkflowIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListWorkflowIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListWorkflows(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListWorkflows", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListWorkflows(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.LaunchPlanCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateLaunchPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateLaunchPlan(ctx, req.(*admin.LaunchPlanCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetLaunchPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetLaunchPlan(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetActiveLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ActiveLaunchPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetActiveLaunchPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, req.(*admin.ActiveLaunchPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListActiveLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ActiveLaunchPlanListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListActiveLaunchPlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, req.(*admin.ActiveLaunchPlanListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListLaunchPlanIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListLaunchPlanIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListLaunchPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListLaunchPlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListLaunchPlans(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.LaunchPlanUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateLaunchPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, req.(*admin.LaunchPlanUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateExecution(ctx, req.(*admin.ExecutionCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RelaunchExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionRelaunchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RelaunchExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/RelaunchExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RelaunchExecution(ctx, req.(*admin.ExecutionRelaunchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RecoverExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionRecoverRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RecoverExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/RecoverExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RecoverExecution(ctx, req.(*admin.ExecutionRecoverRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecution(ctx, req.(*admin.WorkflowExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateExecution(ctx, req.(*admin.ExecutionUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetExecutionData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecutionData(ctx, req.(*admin.WorkflowExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListExecutions(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_TerminateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionTerminateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).TerminateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/TerminateExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).TerminateExecution(ctx, req.(*admin.ExecutionTerminateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNodeExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNodeExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetNodeExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNodeExecution(ctx, req.(*admin.NodeExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNodeExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNodeExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListNodeExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNodeExecutions(ctx, req.(*admin.NodeExecutionListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNodeExecutionsForTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionForTaskListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListNodeExecutionsForTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, req.(*admin.NodeExecutionForTaskListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNodeExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNodeExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetNodeExecutionData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNodeExecutionData(ctx, req.(*admin.NodeExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RegisterProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectRegisterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RegisterProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/RegisterProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RegisterProject(ctx, req.(*admin.ProjectRegisterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.Project) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateProject(ctx, req.(*admin.Project)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListProjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListProjects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListProjects(ctx, req.(*admin.ProjectListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateWorkflowEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateWorkflowEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, req.(*admin.WorkflowExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateNodeEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateNodeEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateNodeEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateNodeEvent(ctx, req.(*admin.NodeExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateTaskEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateTaskEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateTaskEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateTaskEvent(ctx, req.(*admin.TaskExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTaskExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTaskExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetTaskExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTaskExecution(ctx, req.(*admin.TaskExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTaskExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTaskExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListTaskExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTaskExecutions(ctx, req.(*admin.TaskExecutionListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTaskExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTaskExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetTaskExecutionData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTaskExecutionData(ctx, req.(*admin.TaskExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectDomainAttributesUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectDomainAttributesGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetProjectDomainAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_DeleteProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectDomainAttributesDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectAttributesUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateProjectAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, req.(*admin.ProjectAttributesUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectAttributesGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetProjectAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetProjectAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetProjectAttributes(ctx, req.(*admin.ProjectAttributesGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_DeleteProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectAttributesDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/DeleteProjectAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, req.(*admin.ProjectAttributesDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowAttributesUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateWorkflowAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowAttributesGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetWorkflowAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_DeleteWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowAttributesDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/DeleteWorkflowAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListMatchableAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ListMatchableAttributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListMatchableAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListMatchableAttributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListMatchableAttributes(ctx, req.(*admin.ListMatchableAttributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNamedEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNamedEntities(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListNamedEntities", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNamedEntities(ctx, req.(*admin.NamedEntityListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNamedEntity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetNamedEntity", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNamedEntity(ctx, req.(*admin.NamedEntityGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateNamedEntity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateNamedEntity", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateNamedEntity(ctx, req.(*admin.NamedEntityUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetVersion(ctx, req.(*admin.GetVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetDescriptionEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetDescriptionEntity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetDescriptionEntity", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetDescriptionEntity(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListDescriptionEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.DescriptionEntityListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListDescriptionEntities(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListDescriptionEntities", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListDescriptionEntities(ctx, req.(*admin.DescriptionEntityListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecutionMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetMetricsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecutionMetrics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetExecutionMetrics", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecutionMetrics(ctx, req.(*admin.WorkflowExecutionGetMetricsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _AdminService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AdminService", + HandlerType: (*AdminServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTask", + Handler: _AdminService_CreateTask_Handler, + }, + { + MethodName: "GetTask", + Handler: _AdminService_GetTask_Handler, + }, + { + MethodName: "ListTaskIds", + Handler: _AdminService_ListTaskIds_Handler, + }, + { + MethodName: "ListTasks", + Handler: _AdminService_ListTasks_Handler, + }, + { + MethodName: "CreateWorkflow", + Handler: _AdminService_CreateWorkflow_Handler, + }, + { + MethodName: "GetWorkflow", + Handler: _AdminService_GetWorkflow_Handler, + }, + { + MethodName: "ListWorkflowIds", + Handler: _AdminService_ListWorkflowIds_Handler, + }, + { + MethodName: "ListWorkflows", + Handler: _AdminService_ListWorkflows_Handler, + }, + { + MethodName: "CreateLaunchPlan", + Handler: _AdminService_CreateLaunchPlan_Handler, + }, + { + MethodName: "GetLaunchPlan", + Handler: _AdminService_GetLaunchPlan_Handler, + }, + { + MethodName: "GetActiveLaunchPlan", + Handler: _AdminService_GetActiveLaunchPlan_Handler, + }, + { + MethodName: "ListActiveLaunchPlans", + Handler: _AdminService_ListActiveLaunchPlans_Handler, + }, + { + MethodName: "ListLaunchPlanIds", + Handler: _AdminService_ListLaunchPlanIds_Handler, + }, + { + MethodName: "ListLaunchPlans", + Handler: _AdminService_ListLaunchPlans_Handler, + }, + { + MethodName: "UpdateLaunchPlan", + Handler: _AdminService_UpdateLaunchPlan_Handler, + }, + { + MethodName: "CreateExecution", + Handler: _AdminService_CreateExecution_Handler, + }, + { + MethodName: "RelaunchExecution", + Handler: _AdminService_RelaunchExecution_Handler, + }, + { + MethodName: "RecoverExecution", + Handler: _AdminService_RecoverExecution_Handler, + }, + { + MethodName: "GetExecution", + Handler: _AdminService_GetExecution_Handler, + }, + { + MethodName: "UpdateExecution", + Handler: _AdminService_UpdateExecution_Handler, + }, + { + MethodName: "GetExecutionData", + Handler: _AdminService_GetExecutionData_Handler, + }, + { + MethodName: "ListExecutions", + Handler: _AdminService_ListExecutions_Handler, + }, + { + MethodName: "TerminateExecution", + Handler: _AdminService_TerminateExecution_Handler, + }, + { + MethodName: "GetNodeExecution", + Handler: _AdminService_GetNodeExecution_Handler, + }, + { + MethodName: "ListNodeExecutions", + Handler: _AdminService_ListNodeExecutions_Handler, + }, + { + MethodName: "ListNodeExecutionsForTask", + Handler: _AdminService_ListNodeExecutionsForTask_Handler, + }, + { + MethodName: "GetNodeExecutionData", + Handler: _AdminService_GetNodeExecutionData_Handler, + }, + { + MethodName: "RegisterProject", + Handler: _AdminService_RegisterProject_Handler, + }, + { + MethodName: "UpdateProject", + Handler: _AdminService_UpdateProject_Handler, + }, + { + MethodName: "ListProjects", + Handler: _AdminService_ListProjects_Handler, + }, + { + MethodName: "CreateWorkflowEvent", + Handler: _AdminService_CreateWorkflowEvent_Handler, + }, + { + MethodName: "CreateNodeEvent", + Handler: _AdminService_CreateNodeEvent_Handler, + }, + { + MethodName: "CreateTaskEvent", + Handler: _AdminService_CreateTaskEvent_Handler, + }, + { + MethodName: "GetTaskExecution", + Handler: _AdminService_GetTaskExecution_Handler, + }, + { + MethodName: "ListTaskExecutions", + Handler: _AdminService_ListTaskExecutions_Handler, + }, + { + MethodName: "GetTaskExecutionData", + Handler: _AdminService_GetTaskExecutionData_Handler, + }, + { + MethodName: "UpdateProjectDomainAttributes", + Handler: _AdminService_UpdateProjectDomainAttributes_Handler, + }, + { + MethodName: "GetProjectDomainAttributes", + Handler: _AdminService_GetProjectDomainAttributes_Handler, + }, + { + MethodName: "DeleteProjectDomainAttributes", + Handler: _AdminService_DeleteProjectDomainAttributes_Handler, + }, + { + MethodName: "UpdateProjectAttributes", + Handler: _AdminService_UpdateProjectAttributes_Handler, + }, + { + MethodName: "GetProjectAttributes", + Handler: _AdminService_GetProjectAttributes_Handler, + }, + { + MethodName: "DeleteProjectAttributes", + Handler: _AdminService_DeleteProjectAttributes_Handler, + }, + { + MethodName: "UpdateWorkflowAttributes", + Handler: _AdminService_UpdateWorkflowAttributes_Handler, + }, + { + MethodName: "GetWorkflowAttributes", + Handler: _AdminService_GetWorkflowAttributes_Handler, + }, + { + MethodName: "DeleteWorkflowAttributes", + Handler: _AdminService_DeleteWorkflowAttributes_Handler, + }, + { + MethodName: "ListMatchableAttributes", + Handler: _AdminService_ListMatchableAttributes_Handler, + }, + { + MethodName: "ListNamedEntities", + Handler: _AdminService_ListNamedEntities_Handler, + }, + { + MethodName: "GetNamedEntity", + Handler: _AdminService_GetNamedEntity_Handler, + }, + { + MethodName: "UpdateNamedEntity", + Handler: _AdminService_UpdateNamedEntity_Handler, + }, + { + MethodName: "GetVersion", + Handler: _AdminService_GetVersion_Handler, + }, + { + MethodName: "GetDescriptionEntity", + Handler: _AdminService_GetDescriptionEntity_Handler, + }, + { + MethodName: "ListDescriptionEntities", + Handler: _AdminService_ListDescriptionEntities_Handler, + }, + { + MethodName: "GetExecutionMetrics", + Handler: _AdminService_GetExecutionMetrics_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/admin.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go new file mode 100644 index 0000000000..fa3a3110d3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go @@ -0,0 +1,4409 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/admin.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + "github.com/golang/protobuf/proto" + "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" +) + +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray + +func request_AdminService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskCreateRequest + 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.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} +) + +func request_AdminService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTaskIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_ListTaskIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTaskIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTasks_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListTasks_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTasks_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListTasks_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowCreateRequest + 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.CreateWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} +) + +func request_AdminService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflow_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflowIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_ListWorkflowIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflowIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflowIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflows_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListWorkflows_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.LaunchPlanCreateRequest + 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.CreateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} +) + +func request_AdminService_GetLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetLaunchPlan_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetActiveLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_GetActiveLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ActiveLaunchPlanRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetActiveLaunchPlan_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetActiveLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListActiveLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_ListActiveLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ActiveLaunchPlanListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListActiveLaunchPlans_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListActiveLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlanIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_ListLaunchPlanIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlanIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlanIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlans_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListLaunchPlans_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.LaunchPlanUpdateRequest + 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.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + msg, err := client.UpdateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionCreateRequest + 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.CreateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_RelaunchExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionRelaunchRequest + 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.RelaunchExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_RecoverExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionRecoverRequest + 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.RecoverExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_GetExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionUpdateRequest + 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.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := client.UpdateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_GetExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_TerminateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionTerminateRequest + 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.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := client.TerminateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNodeExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} +) + +func request_AdminService_GetNodeExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_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_AdminService_GetNodeExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNodeExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNodeExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListNodeExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["workflow_execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) + } + + val, ok = pathParams["workflow_execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) + } + + val, ok = pathParams["workflow_execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNodeExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNodeExecutionsForTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_execution_id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} +) + +func request_AdminService_ListNodeExecutionsForTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionForTaskListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.node_id", err) + } + + val, ok = pathParams["task_execution_id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.project", err) + } + + val, ok = pathParams["task_execution_id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.domain", err) + } + + val, ok = pathParams["task_execution_id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.name", err) + } + + val, ok = pathParams["task_execution_id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.version", err) + } + + val, ok = pathParams["task_execution_id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.retry_attempt", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutionsForTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNodeExecutionsForTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNodeExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} +) + +func request_AdminService_GetNodeExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_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_AdminService_GetNodeExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNodeExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_RegisterProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectRegisterRequest + 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.RegisterProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.Project + 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 + +} + +var ( + filter_AdminService_ListProjects_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminService_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectListRequest + 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_ListProjects_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateWorkflowEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowExecutionEventRequest + 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.CreateWorkflowEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateNodeEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionEventRequest + 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.CreateNodeEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateTaskEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionEventRequest + 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.CreateTaskEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTaskExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} +) + +func request_AdminService_GetTaskExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTaskExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"node_execution_id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} +) + +func request_AdminService_ListTaskExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.node_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_AdminService_ListTaskExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTaskExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTaskExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} +) + +func request_AdminService_GetTaskExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectDomainAttributesUpdateRequest + 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["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + val, ok = pathParams["attributes.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) + } + + msg, err := client.UpdateProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetProjectDomainAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_GetProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectDomainAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectDomainAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_DeleteProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectDomainAttributesDeleteRequest + 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"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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.DeleteProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectAttributesUpdateRequest + 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["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + msg, err := client.UpdateProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetProjectAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_AdminService_GetProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_DeleteProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectAttributesDeleteRequest + 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"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + msg, err := client.DeleteProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowAttributesUpdateRequest + 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["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + val, ok = pathParams["attributes.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) + } + + val, ok = pathParams["attributes.workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.workflow") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.workflow", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.workflow", err) + } + + msg, err := client.UpdateWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetWorkflowAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1, "workflow": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + +func request_AdminService_GetWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + val, ok = pathParams["workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") + } + + protoReq.Workflow, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflowAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_DeleteWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowAttributesDeleteRequest + 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"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + val, ok = pathParams["workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") + } + + protoReq.Workflow, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) + } + + msg, err := client.DeleteWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListMatchableAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminService_ListMatchableAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ListMatchableAttributesRequest + 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_ListMatchableAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListMatchableAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNamedEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} +) + +func request_AdminService_ListNamedEntities_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, core.ResourceType_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = core.ResourceType(e) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", 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) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNamedEntities_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNamedEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNamedEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "id": 1, "project": 2, "domain": 3, "name": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 3, 3, 3, 2, 4, 5, 6}} +) + +func request_AdminService_GetNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, core.ResourceType_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = core.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNamedEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityUpdateRequest + 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 + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, core.ResourceType_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = core.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := client.UpdateNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.GetVersionRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetDescriptionEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "resource_type": 1, "project": 2, "domain": 3, "name": 4, "version": 5}, Base: []int{1, 1, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 2, 3, 4, 5, 6, 7}} +) + +func request_AdminService_GetDescriptionEntity_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.resource_type") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.resource_type", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.resource_type", err) + } + + protoReq.Id.ResourceType = core.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDescriptionEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetDescriptionEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListDescriptionEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "id": 1, "project": 2, "domain": 3, "name": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 3, 3, 3, 2, 4, 5, 6}} +) + +func request_AdminService_ListDescriptionEntities_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.DescriptionEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, core.ResourceType_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = core.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListDescriptionEntities_1 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "id": 1, "project": 2, "domain": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 3, 3, 2, 4, 5}} +) + +func request_AdminService_ListDescriptionEntities_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.DescriptionEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, core.ResourceType_value) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = core.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecutionMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_GetExecutionMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowExecutionGetMetricsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionMetrics_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecutionMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// 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("POST", pattern_AdminService_CreateTask_0, func(w http.ResponseWriter, 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_CreateTask_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_CreateTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTask_0, func(w http.ResponseWriter, 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_GetTask_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_GetTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskIds_0, func(w http.ResponseWriter, 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_ListTaskIds_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_ListTaskIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_0, func(w http.ResponseWriter, 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_ListTasks_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_ListTasks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_1, func(w http.ResponseWriter, 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_ListTasks_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTasks_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflow_0, func(w http.ResponseWriter, 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_CreateWorkflow_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_CreateWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetWorkflow_0, func(w http.ResponseWriter, 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_GetWorkflow_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_GetWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflowIds_0, func(w http.ResponseWriter, 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_ListWorkflowIds_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_ListWorkflowIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_0, func(w http.ResponseWriter, 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_ListWorkflows_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_ListWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_1, func(w http.ResponseWriter, 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_ListWorkflows_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflows_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateLaunchPlan_0, func(w http.ResponseWriter, 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_CreateLaunchPlan_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_CreateLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetLaunchPlan_0, func(w http.ResponseWriter, 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_GetLaunchPlan_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_GetLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetActiveLaunchPlan_0, func(w http.ResponseWriter, 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_GetActiveLaunchPlan_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_GetActiveLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListActiveLaunchPlans_0, func(w http.ResponseWriter, 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_ListActiveLaunchPlans_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_ListActiveLaunchPlans_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlanIds_0, func(w http.ResponseWriter, 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_ListLaunchPlanIds_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_ListLaunchPlanIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_0, func(w http.ResponseWriter, 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_ListLaunchPlans_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_ListLaunchPlans_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_1, func(w http.ResponseWriter, 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_ListLaunchPlans_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlans_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateLaunchPlan_0, func(w http.ResponseWriter, 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_UpdateLaunchPlan_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_UpdateLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateExecution_0, func(w http.ResponseWriter, 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_CreateExecution_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_CreateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RelaunchExecution_0, func(w http.ResponseWriter, 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_RelaunchExecution_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_RelaunchExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RecoverExecution_0, func(w http.ResponseWriter, 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_RecoverExecution_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_RecoverExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecution_0, func(w http.ResponseWriter, 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_GetExecution_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_GetExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateExecution_0, func(w http.ResponseWriter, 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_UpdateExecution_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_UpdateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecutionData_0, func(w http.ResponseWriter, 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_GetExecutionData_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_GetExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListExecutions_0, func(w http.ResponseWriter, 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_ListExecutions_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_ListExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_TerminateExecution_0, func(w http.ResponseWriter, 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_TerminateExecution_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_TerminateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecution_0, func(w http.ResponseWriter, 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_GetNodeExecution_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_GetNodeExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutions_0, func(w http.ResponseWriter, 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_ListNodeExecutions_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_ListNodeExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutionsForTask_0, func(w http.ResponseWriter, 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_ListNodeExecutionsForTask_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_ListNodeExecutionsForTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecutionData_0, func(w http.ResponseWriter, 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_GetNodeExecutionData_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_GetNodeExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RegisterProject_0, func(w http.ResponseWriter, 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_RegisterProject_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_RegisterProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_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_AdminService_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_AdminService_UpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListProjects_0, func(w http.ResponseWriter, 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_ListProjects_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_ListProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflowEvent_0, func(w http.ResponseWriter, 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_CreateWorkflowEvent_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_CreateWorkflowEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateNodeEvent_0, func(w http.ResponseWriter, 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_CreateNodeEvent_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_CreateNodeEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateTaskEvent_0, func(w http.ResponseWriter, 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_CreateTaskEvent_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_CreateTaskEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecution_0, func(w http.ResponseWriter, 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_GetTaskExecution_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_GetTaskExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskExecutions_0, func(w http.ResponseWriter, 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_ListTaskExecutions_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_ListTaskExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecutionData_0, func(w http.ResponseWriter, 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_GetTaskExecutionData_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_GetTaskExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProjectDomainAttributes_0, func(w http.ResponseWriter, 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_UpdateProjectDomainAttributes_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_UpdateProjectDomainAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetProjectDomainAttributes_0, func(w http.ResponseWriter, 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_GetProjectDomainAttributes_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_GetProjectDomainAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteProjectDomainAttributes_0, func(w http.ResponseWriter, 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_DeleteProjectDomainAttributes_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_DeleteProjectDomainAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProjectAttributes_0, func(w http.ResponseWriter, 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_UpdateProjectAttributes_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_UpdateProjectAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetProjectAttributes_0, func(w http.ResponseWriter, 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_GetProjectAttributes_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_GetProjectAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteProjectAttributes_0, func(w http.ResponseWriter, 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_DeleteProjectAttributes_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_DeleteProjectAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateWorkflowAttributes_0, func(w http.ResponseWriter, 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_UpdateWorkflowAttributes_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_UpdateWorkflowAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetWorkflowAttributes_0, func(w http.ResponseWriter, 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_GetWorkflowAttributes_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_GetWorkflowAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteWorkflowAttributes_0, func(w http.ResponseWriter, 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_DeleteWorkflowAttributes_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_DeleteWorkflowAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListMatchableAttributes_0, func(w http.ResponseWriter, 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_ListMatchableAttributes_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_ListMatchableAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNamedEntities_0, func(w http.ResponseWriter, 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_ListNamedEntities_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_ListNamedEntities_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNamedEntity_0, func(w http.ResponseWriter, 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_GetNamedEntity_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_GetNamedEntity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateNamedEntity_0, func(w http.ResponseWriter, 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_UpdateNamedEntity_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_UpdateNamedEntity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetVersion_0, func(w http.ResponseWriter, 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_GetVersion_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_GetVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetDescriptionEntity_0, func(w http.ResponseWriter, 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_GetDescriptionEntity_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_GetDescriptionEntity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_0, func(w http.ResponseWriter, 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_ListDescriptionEntities_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_ListDescriptionEntities_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_1, func(w http.ResponseWriter, 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_ListDescriptionEntities_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListDescriptionEntities_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecutionMetrics_0, func(w http.ResponseWriter, 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_GetExecutionMetrics_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_GetExecutionMetrics_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AdminService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "tasks"}, "")) + + pattern_AdminService_GetTask_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListTaskIds_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{"api", "v1", "task_ids", "project", "domain"}, "")) + + pattern_AdminService_ListTasks_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListTasks_1 = 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{"api", "v1", "tasks", "id.project", "id.domain"}, "")) + + pattern_AdminService_CreateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "workflows"}, "")) + + pattern_AdminService_GetWorkflow_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListWorkflowIds_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{"api", "v1", "workflow_ids", "project", "domain"}, "")) + + pattern_AdminService_ListWorkflows_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListWorkflows_1 = 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{"api", "v1", "workflows", "id.project", "id.domain"}, "")) + + pattern_AdminService_CreateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "launch_plans"}, "")) + + pattern_AdminService_GetLaunchPlan_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_GetActiveLaunchPlan_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "active_launch_plans", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListActiveLaunchPlans_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{"api", "v1", "active_launch_plans", "project", "domain"}, "")) + + pattern_AdminService_ListLaunchPlanIds_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{"api", "v1", "launch_plan_ids", "project", "domain"}, "")) + + pattern_AdminService_ListLaunchPlans_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListLaunchPlans_1 = 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{"api", "v1", "launch_plans", "id.project", "id.domain"}, "")) + + pattern_AdminService_UpdateLaunchPlan_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_CreateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "executions"}, "")) + + pattern_AdminService_RelaunchExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "relaunch"}, "")) + + pattern_AdminService_RecoverExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "recover"}, "")) + + pattern_AdminService_GetExecution_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_UpdateExecution_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "data", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListExecutions_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{"api", "v1", "executions", "id.project", "id.domain"}, "")) + + pattern_AdminService_TerminateExecution_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetNodeExecution_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) + + pattern_AdminService_ListNodeExecutions_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "node_executions", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) + + pattern_AdminService_ListNodeExecutionsForTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "children", "task_executions", "task_execution_id.node_execution_id.execution_id.project", "task_execution_id.node_execution_id.execution_id.domain", "task_execution_id.node_execution_id.execution_id.name", "task_execution_id.node_execution_id.node_id", "task_execution_id.task_id.project", "task_execution_id.task_id.domain", "task_execution_id.task_id.name", "task_execution_id.task_id.version", "task_execution_id.retry_attempt"}, "")) + + pattern_AdminService_GetNodeExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "data", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) + + pattern_AdminService_RegisterProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) + + pattern_AdminService_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "projects", "id"}, "")) + + pattern_AdminService_ListProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) + + pattern_AdminService_CreateWorkflowEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "workflows"}, "")) + + pattern_AdminService_CreateNodeEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "nodes"}, "")) + + pattern_AdminService_CreateTaskEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "tasks"}, "")) + + pattern_AdminService_GetTaskExecution_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11}, []string{"api", "v1", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) + + pattern_AdminService_ListTaskExecutions_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "task_executions", "node_execution_id.execution_id.project", "node_execution_id.execution_id.domain", "node_execution_id.execution_id.name", "node_execution_id.node_id"}, "")) + + pattern_AdminService_GetTaskExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "data", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) + + pattern_AdminService_UpdateProjectDomainAttributes_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{"api", "v1", "project_domain_attributes", "attributes.project", "attributes.domain"}, "")) + + pattern_AdminService_GetProjectDomainAttributes_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{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) + + pattern_AdminService_DeleteProjectDomainAttributes_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{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) + + pattern_AdminService_UpdateProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "attributes.project"}, "")) + + pattern_AdminService_GetProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) + + pattern_AdminService_DeleteProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) + + pattern_AdminService_UpdateWorkflowAttributes_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "attributes.project", "attributes.domain", "attributes.workflow"}, "")) + + pattern_AdminService_GetWorkflowAttributes_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) + + pattern_AdminService_DeleteWorkflowAttributes_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) + + pattern_AdminService_ListMatchableAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "matchable_attributes"}, "")) + + pattern_AdminService_ListNamedEntities_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "named_entities", "resource_type", "project", "domain"}, "")) + + pattern_AdminService_GetNamedEntity_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_UpdateNamedEntity_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "")) + + pattern_AdminService_GetDescriptionEntity_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "description_entities", "id.resource_type", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListDescriptionEntities_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, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListDescriptionEntities_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain"}, "")) + + pattern_AdminService_GetExecutionMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "metrics", "executions", "id.project", "id.domain", "id.name"}, "")) +) + +var ( + forward_AdminService_CreateTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTaskIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTasks_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTasks_1 = runtime.ForwardResponseMessage + + forward_AdminService_CreateWorkflow_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetWorkflow_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflowIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflows_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflows_1 = runtime.ForwardResponseMessage + + forward_AdminService_CreateLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetActiveLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListActiveLaunchPlans_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlanIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlans_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlans_1 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_RelaunchExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_RecoverExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_TerminateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNodeExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNodeExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNodeExecutionsForTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNodeExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_RegisterProject_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateProject_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListProjects_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateWorkflowEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateNodeEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateTaskEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTaskExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTaskExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTaskExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateProjectDomainAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetProjectDomainAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_DeleteProjectDomainAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateProjectAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetProjectAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_DeleteProjectAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateWorkflowAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetWorkflowAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_DeleteWorkflowAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListMatchableAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNamedEntities_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNamedEntity_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateNamedEntity_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetVersion_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetDescriptionEntity_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListDescriptionEntities_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListDescriptionEntities_1 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecutionMetrics_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json new file mode 100644 index 0000000000..cafd3d9235 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json @@ -0,0 +1,7802 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/admin.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", + "operationId": "GetActiveLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlan" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/active_launch_plans/{project}/{domain}": { + "get": { + "summary": "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`.", + "operationId": "ListActiveLaunchPlans", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", + "operationId": "ListNodeExecutionsForTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionList" + } + } + }, + "parameters": [ + { + "name": "task_execution_id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "task_execution_id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "GetExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "GetNodeExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionGetDataResponse" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", + "operationId": "GetTaskExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskExecutionGetDataResponse" + } + } + }, + "parameters": [ + { + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", + "operationId": "GetDescriptionEntity", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDescriptionEntity" + } + } + }, + "parameters": [ + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "operationId": "ListDescriptionEntities2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDescriptionEntityList" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "operationId": "ListDescriptionEntities", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDescriptionEntityList" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/nodes": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", + "operationId": "CreateNodeEvent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionEventResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminNodeExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/tasks": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", + "operationId": "CreateTaskEvent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskExecutionEventResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminTaskExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/workflows": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", + "operationId": "CreateWorkflowEvent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions": { + "post": { + "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", + "operationId": "CreateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/recover": { + "post": { + "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", + "operationId": "RecoverExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionRecoverRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/relaunch": { + "post": { + "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", + "operationId": "RelaunchExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionRelaunchRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "ListExecutions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "GetExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecution" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "TerminateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionTerminateResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionTerminateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "UpdateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionUpdateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plan_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", + "operationId": "ListLaunchPlanIds", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", + "operationId": "CreateLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "operationId": "ListLaunchPlans2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "operationId": "ListLaunchPlans", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", + "operationId": "GetLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlan" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", + "operationId": "UpdateLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminLaunchPlanUpdateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/matchable_attributes": { + "get": { + "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", + "operationId": "ListMatchableAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminListMatchableAttributesResponse" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "GetExecutionMetrics", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "depth", + "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "operationId": "GetNamedEntity", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntity" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "operationId": "UpdateNamedEntity", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Resource type of the metadata to update\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminNamedEntityUpdateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/named_entities/{resource_type}/{project}/{domain}": { + "get": { + "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", + "operationId": "ListNamedEntities", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityList" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "GetNodeExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/flyteidladminNodeExecution" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "ListNodeExecutions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionList" + } + } + }, + "parameters": [ + { + "name": "workflow_execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "unique_parent_id", + "description": "Unique identifier of the parent node in the execution\n+optional.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_attributes/{attributes.project}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", + "operationId": "UpdateProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProjectAttributesUpdateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_attributes/{project}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "operationId": "GetProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesGetResponse" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "operationId": "DeleteProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesDeleteResponse" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProjectAttributesDeleteRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "operationId": "UpdateProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attributes.domain", + "description": "Unique domain id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesUpdateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_domain_attributes/{project}/{domain}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "operationId": "GetProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesGetResponse" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "operationId": "DeleteProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesDeleteResponse" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesDeleteRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/projects": { + "get": { + "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", + "operationId": "ListProjects", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjects" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "Indicates the number of projects to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + }, + "post": { + "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", + "operationId": "RegisterProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectRegisterResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProjectRegisterRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/projects/{id}": { + "put": { + "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project` \nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", + "operationId": "UpdateProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Globally unique project name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProject" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", + "operationId": "GetTaskExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/flyteidladminTaskExecution" + } + } + }, + "parameters": [ + { + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { + "get": { + "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", + "operationId": "ListTaskExecutions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskExecutionList" + } + } + }, + "parameters": [ + { + "name": "node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", + "operationId": "ListTaskIds", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", + "operationId": "CreateTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/flyteidladminTaskCreateResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/flyteidladminTaskCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "operationId": "ListTasks2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "operationId": "ListTasks", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", + "operationId": "GetTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTask" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/version": { + "get": { + "operationId": "GetVersion", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminGetVersionResponse" + } + } + }, + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "operationId": "UpdateWorkflowAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attributes.domain", + "description": "Unique domain id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attributes.workflow", + "description": "Workflow name for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesUpdateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflow_attributes/{project}/{domain}/{workflow}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "operationId": "GetWorkflowAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesGetResponse" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "operationId": "DeleteWorkflowAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesDeleteRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflow_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", + "operationId": "ListWorkflowIds", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", + "operationId": "CreateWorkflow", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowCreateResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", + "operationId": "ListWorkflows2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", + "operationId": "ListWorkflows", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition.", + "operationId": "GetWorkflow", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflow" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + } + }, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "CatalogReservationStatus": { + "type": "string", + "enum": [ + "RESERVATION_DISABLED", + "RESERVATION_ACQUIRED", + "RESERVATION_EXISTS", + "RESERVATION_RELEASED", + "RESERVATION_FAILURE" + ], + "default": "RESERVATION_DISABLED", + "description": "Indicates the status of a catalog reservation operation.\n\n - RESERVATION_DISABLED: Used to indicate that reservations are disabled\n - RESERVATION_ACQUIRED: Used to indicate that a reservation was successfully acquired or extended\n - RESERVATION_EXISTS: Used to indicate that an active reservation currently exists\n - RESERVATION_RELEASED: Used to indicate that the reservation has been successfully released\n - RESERVATION_FAILURE: Used to indicate that a reservation operation resulted in failure" + }, + "ComparisonExpressionOperator": { + "type": "string", + "enum": [ + "EQ", + "NEQ", + "GT", + "GTE", + "LT", + "LTE" + ], + "default": "EQ", + "description": "- GT: Greater Than\n - LT: Less Than", + "title": "Binary Operator for each expression" + }, + "ConjunctionExpressionLogicalOperator": { + "type": "string", + "enum": [ + "AND", + "OR" + ], + "default": "AND", + "description": "- AND: Conjunction", + "title": "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation is not important as the operators are Commutative" + }, + "ConnectionSetIdList": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ContainerArchitecture": { + "type": "string", + "enum": [ + "UNKNOWN", + "AMD64", + "ARM64", + "ARM_V6", + "ARM_V7" + ], + "default": "UNKNOWN", + "description": "Architecture-type the container image supports." + }, + "DataLoadingConfigLiteralMapFormat": { + "type": "string", + "enum": [ + "JSON", + "YAML", + "PROTO" + ], + "default": "JSON", + "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", + "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" + }, + "ExecutionErrorErrorKind": { + "type": "string", + "enum": [ + "UNKNOWN", + "USER", + "SYSTEM" + ], + "default": "UNKNOWN", + "title": "Error type: System or User" + }, + "ExecutionMetadataExecutionMode": { + "type": "string", + "enum": [ + "MANUAL", + "SCHEDULED", + "SYSTEM", + "RELAUNCH", + "CHILD_WORKFLOW", + "RECOVERED" + ], + "default": "MANUAL", + "description": "The method by which this execution was launched.\n\n - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual.\n - SCHEDULED: A schedule triggered this execution launch.\n - SYSTEM: A system process was responsible for launching this execution rather an individual.\n - RELAUNCH: This execution was launched with identical inputs as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered by another execution.\n - RECOVERED: This execution was recovered from another execution." + }, + "IOStrategyDownloadMode": { + "type": "string", + "enum": [ + "DOWNLOAD_EAGER", + "DOWNLOAD_STREAM", + "DO_NOT_DOWNLOAD" + ], + "default": "DOWNLOAD_EAGER", + "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", + "title": "Mode to use for downloading" + }, + "IOStrategyUploadMode": { + "type": "string", + "enum": [ + "UPLOAD_ON_EXIT", + "UPLOAD_EAGER", + "DO_NOT_UPLOAD" + ], + "default": "UPLOAD_ON_EXIT", + "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", + "title": "Mode to use for uploading" + }, + "PluginOverrideMissingPluginBehavior": { + "type": "string", + "enum": [ + "FAIL", + "USE_DEFAULT" + ], + "default": "FAIL", + "description": " - FAIL: By default, if this plugin is not enabled for a Flyte deployment then execution will fail.\n - USE_DEFAULT: Uses the system-configured default implementation." + }, + "ProjectProjectState": { + "type": "string", + "enum": [ + "ACTIVE", + "ARCHIVED", + "SYSTEM_GENERATED" + ], + "default": "ACTIVE", + "description": "The state of the project is used to control its visibility in the UI and validity.\n\n - ACTIVE: By default, all projects are considered active.\n - ARCHIVED: Archived projects are no longer visible in the UI and no longer valid.\n - SYSTEM_GENERATED: System generated projects that aren't explicitly created or managed by a user." + }, + "QualityOfServiceTier": { + "type": "string", + "enum": [ + "UNDEFINED", + "HIGH", + "MEDIUM", + "LOW" + ], + "default": "UNDEFINED", + "description": " - UNDEFINED: Default: no quality of service specified." + }, + "ResourcesResourceEntry": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ResourcesResourceName", + "description": "Resource name." + }, + "value": { + "type": "string", + "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + } + }, + "description": "Encapsulates a resource name and value." + }, + "ResourcesResourceName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU", + "GPU", + "MEMORY", + "STORAGE", + "EPHEMERAL_STORAGE" + ], + "default": "UNKNOWN", + "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." + }, + "RuntimeMetadataRuntimeType": { + "type": "string", + "enum": [ + "OTHER", + "FLYTE_SDK" + ], + "default": "OTHER" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SecretMountType": { + "type": "string", + "enum": [ + "ANY", + "ENV_VAR", + "FILE" + ], + "default": "ANY", + "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." + }, + "SortDirection": { + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING", + "description": " - DESCENDING: By default, fields are sorted in descending order." + }, + "SqlDialect": { + "type": "string", + "enum": [ + "UNDEFINED", + "ANSI", + "HIVE", + "OTHER" + ], + "default": "UNDEFINED", + "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "TaskExecutionMetadataInstanceClass": { + "type": "string", + "enum": [ + "DEFAULT", + "INTERRUPTIBLE" + ], + "default": "DEFAULT", + "description": "Includes the broad category of machine used for this specific task execution.\n\n - DEFAULT: The default instance class configured for the flyte application platform.\n - INTERRUPTIBLE: The instance class configured for interruptible tasks." + }, + "TaskLogMessageFormat": { + "type": "string", + "enum": [ + "UNKNOWN", + "CSV", + "JSON" + ], + "default": "UNKNOWN" + }, + "WorkflowMetadataOnFailurePolicy": { + "type": "string", + "enum": [ + "FAIL_IMMEDIATELY", + "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" + ], + "default": "FAIL_IMMEDIATELY", + "description": "- FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically\nabort all currently running nodes and clean up resources before finally marking the workflow executions as\nfailed.\n - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will\nnot alter the dependencies of the execution graph so any node that depend on the failed node will not be run.\nOther nodes that will be executed to completion before cleaning up resources and marking the workflow\nexecution as failed.", + "title": "Failure Handling Strategy" + }, + "adminAbortMetadata": { + "type": "object", + "properties": { + "cause": { + "type": "string", + "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." + }, + "principal": { + "type": "string", + "title": "Identifies the entity (if any) responsible for terminating the execution" + } + }, + "description": "Specifies metadata around an aborted workflow execution." + }, + "adminAnnotations": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of custom annotations to be applied to the execution resource." + } + }, + "description": "Annotation values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge annotations defined at registration and execution time." + }, + "adminAuth": { + "type": "object", + "properties": { + "assumable_iam_role": { + "type": "string", + "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." + }, + "kubernetes_service_account": { + "type": "string", + "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." + } + }, + "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." + }, + "adminAuthRole": { + "type": "object", + "properties": { + "assumable_iam_role": { + "type": "string", + "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." + }, + "kubernetes_service_account": { + "type": "string", + "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." + } + }, + "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." + }, + "adminClusterAssignment": { + "type": "object", + "properties": { + "cluster_pool_name": { + "type": "string" + } + }, + "description": "Encapsulates specifications for routing an execution onto a specific cluster." + }, + "adminClusterResourceAttributes": { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).\nMap keys are the *case-sensitive* names of variables in templatized resource files.\nMap values should be the custom values which get substituted during resource creation." + } + } + }, + "adminCronSchedule": { + "type": "object", + "properties": { + "schedule": { + "type": "string", + "title": "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;\nAlso supports nonstandard predefined scheduling definitions\nas described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\nexcept @reboot" + }, + "offset": { + "type": "string", + "title": "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" + } + }, + "description": "Options for schedules to run according to a cron expression." + }, + "adminDescription": { + "type": "object", + "properties": { + "value": { + "type": "string", + "title": "long description - no more than 4KB" + }, + "uri": { + "type": "string", + "title": "if the description sizes exceed some threshold we can offload the entire\ndescription proto altogether to an external data store, like S3 rather than store inline in the db" + }, + "format": { + "$ref": "#/definitions/adminDescriptionFormat", + "title": "Format of the long description" + }, + "icon_link": { + "type": "string", + "title": "Optional link to an icon for the entity" + } + }, + "description": "Full user description with formatting preserved. This can be rendered\nby clients, such as the console or command line tools with in-tact\nformatting." + }, + "adminDescriptionEntity": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the description entity." + }, + "short_description": { + "type": "string", + "description": "One-liner overview of the entity." + }, + "long_description": { + "$ref": "#/definitions/adminDescription", + "description": "Full user description with formatting preserved." + }, + "source_code": { + "$ref": "#/definitions/adminSourceCode", + "description": "Optional link to source code used to define this entity." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User-specified tags. These are arbitrary and can be used for searching\nfiltering and discovering tasks." + } + }, + "description": "DescriptionEntity contains detailed description for the task/workflow.\nDocumentation could provide insight into the algorithms, business use case, etc." + }, + "adminDescriptionEntityList": { + "type": "object", + "properties": { + "descriptionEntities": { + "type": "array", + "items": { + "$ref": "#/definitions/adminDescriptionEntity" + }, + "description": "A list of DescriptionEntities returned based on the request." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of DescriptionEntities returned from the admin.\nSee :ref:`ref_flyteidl.admin.DescriptionEntity` for more details" + }, + "adminDescriptionFormat": { + "type": "string", + "enum": [ + "DESCRIPTION_FORMAT_UNKNOWN", + "DESCRIPTION_FORMAT_MARKDOWN", + "DESCRIPTION_FORMAT_HTML", + "DESCRIPTION_FORMAT_RST" + ], + "default": "DESCRIPTION_FORMAT_UNKNOWN", + "description": "- DESCRIPTION_FORMAT_RST: python default documentation - comments is rst", + "title": "The format of the long description" + }, + "adminDomain": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Globally unique domain name." + }, + "name": { + "type": "string", + "description": "Display name." + } + }, + "description": "Namespace within a project commonly used to differentiate between different service instances.\ne.g. \"production\", \"development\", etc." + }, + "adminEmailNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The list of email addresses recipients for this notification.\n+required" + } + }, + "description": "Defines an email notification specification." + }, + "adminEnvs": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Map of custom environment variables to be applied to the execution resource." + } + }, + "description": "Environment variable values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge environment variables defined at registration and execution time." + }, + "adminExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Unique identifier of the workflow execution." + }, + "spec": { + "$ref": "#/definitions/adminExecutionSpec", + "description": "User-provided configuration and inputs for launching the execution." + }, + "closure": { + "$ref": "#/definitions/adminExecutionClosure", + "description": "Execution results." + } + }, + "description": "A workflow execution represents an instantiated workflow, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes.\nUsed as a response object used in Get and List execution requests." + }, + "adminExecutionClosure": { + "type": "object", + "properties": { + "outputs": { + "$ref": "#/definitions/adminLiteralMapBlob", + "description": "Output URI in the case of a successful execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "description": "Error information in the case of a failed execution." + }, + "abort_cause": { + "type": "string", + "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." + }, + "abort_metadata": { + "$ref": "#/definitions/adminAbortMetadata", + "description": "In the case of a user-specified abort, this will pass along the user and their supplied cause." + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." + }, + "computed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Inputs computed and passed for execution.\ncomputed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan" + }, + "phase": { + "$ref": "#/definitions/coreWorkflowExecutionPhase", + "description": "Most recent recorded phase for the execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution was last updated." + }, + "notifications": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNotification" + }, + "description": "The notification settings to use after merging the CreateExecutionRequest and the launch plan\nnotification settings. An execution launched with notifications will always prefer that definition\nto notifications defined statically in a launch plan." + }, + "workflow_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Identifies the workflow definition for this execution." + }, + "state_change_details": { + "$ref": "#/definitions/adminExecutionStateChangeDetails", + "title": "Provides the details of the last stage change" + } + }, + "title": "Encapsulates the results of the Execution" + }, + "adminExecutionClusterLabel": { + "type": "object", + "properties": { + "value": { + "type": "string", + "title": "Label value to determine where the execution will be run" + } + } + }, + "adminExecutionCreateRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "Name of the project the execution belongs to.\n+required" + }, + "domain": { + "type": "string", + "title": "Name of the domain the execution belongs to.\nA domain can be considered as a subset within a specific project.\n+required" + }, + "name": { + "type": "string", + "title": "User provided value for the resource.\nIf none is provided the system will generate a unique string.\n+optional" + }, + "spec": { + "$ref": "#/definitions/adminExecutionSpec", + "title": "Additional fields necessary to launch the execution.\n+optional" + }, + "inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The inputs required to start the execution. All required inputs must be\nincluded in this map. If not required and not provided, defaults apply.\n+optional" + } + }, + "description": "Request to launch an execution with the given project, domain and optionally-assigned name." + }, + "adminExecutionCreateResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "The unique identifier for a successfully created execution.\nIf the name was *not* specified in the create request, this identifier will include a generated name." + }, + "adminExecutionList": { + "type": "object", + "properties": { + "executions": { + "type": "array", + "items": { + "$ref": "#/definitions/adminExecution" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Used as a response for request to list executions.\nSee :ref:`ref_flyteidl.admin.Execution` for more details" + }, + "adminExecutionMetadata": { + "type": "object", + "properties": { + "mode": { + "$ref": "#/definitions/ExecutionMetadataExecutionMode" + }, + "principal": { + "type": "string", + "description": "Identifier of the entity that triggered this execution.\nFor systems using back-end authentication any value set here will be discarded in favor of the\nauthenticated user context." + }, + "nesting": { + "type": "integer", + "format": "int64", + "description": "Indicates the nestedness of this execution.\nIf a user launches a workflow execution, the default nesting is 0.\nIf this execution further launches a workflow (child workflow), the nesting level is incremented by 0 =\u003e 1\nGenerally, if workflow at nesting level k launches a workflow then the child workflow will have\nnesting = k + 1." + }, + "scheduled_at": { + "type": "string", + "format": "date-time", + "description": "For scheduled executions, the requested time for execution for this specific schedule invocation." + }, + "parent_node_execution": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "Which subworkflow node (if any) launched this execution" + }, + "reference_execution": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Optional, a reference workflow execution related to this execution.\nIn the case of a relaunch, this references the original workflow execution." + }, + "system_metadata": { + "$ref": "#/definitions/adminSystemMetadata", + "description": "Optional, platform-specific metadata about the execution.\nIn this the future this may be gated behind an ACL or some sort of authorization." + } + }, + "description": "Represents attributes about an execution which are not required to launch the execution but are useful to record.\nThese attributes are assigned at launch time and do not change." + }, + "adminExecutionQueueAttributes": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Tags used for assigning execution queues for tasks defined within this project." + } + } + }, + "adminExecutionRecoverRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Identifier of the workflow execution to recover." + }, + "name": { + "type": "string", + "title": "User provided value for the recovered execution.\nIf none is provided the system will generate a unique string.\n+optional" + }, + "metadata": { + "$ref": "#/definitions/adminExecutionMetadata", + "description": "Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution." + } + }, + "description": "Request to recover the referenced execution." + }, + "adminExecutionRelaunchRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "title": "Identifier of the workflow execution to relaunch.\n+required" + }, + "name": { + "type": "string", + "title": "User provided value for the relaunched execution.\nIf none is provided the system will generate a unique string.\n+optional" + }, + "overwrite_cache": { + "type": "boolean", + "format": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + } + }, + "description": "Request to relaunch the referenced execution." + }, + "adminExecutionSpec": { + "type": "object", + "properties": { + "launch_plan": { + "$ref": "#/definitions/coreIdentifier", + "title": "Launch plan to be executed" + }, + "inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Input values to be passed for the execution" + }, + "metadata": { + "$ref": "#/definitions/adminExecutionMetadata", + "title": "Metadata for the execution" + }, + "notifications": { + "$ref": "#/definitions/adminNotificationList", + "description": "List of notifications based on Execution status transitions\nWhen this list is not empty it is used rather than any notifications defined in the referenced launch plan.\nWhen this list is empty, the notifications defined for the launch plan will be applied." + }, + "disable_all": { + "type": "boolean", + "format": "boolean", + "description": "This should be set to true if all notifications are intended to be disabled for this execution." + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Labels to apply to the execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Annotations to apply to the execution resource." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "Optional: security context override to apply this execution." + }, + "auth_role": { + "$ref": "#/definitions/adminAuthRole", + "description": "Optional: auth override to apply this execution." + }, + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService", + "description": "Indicates the runtime priority of the execution." + }, + "max_parallelism": { + "type": "integer", + "format": "int32", + "description": "Controls the maximum number of task nodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." + }, + "raw_output_data_config": { + "$ref": "#/definitions/adminRawOutputDataConfig", + "title": "User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).\nThis should be a prefix like s3://my-bucket/my-data" + }, + "cluster_assignment": { + "$ref": "#/definitions/adminClusterAssignment", + "description": "Controls how to select an available cluster on which this execution should run." + }, + "interruptible": { + "type": "boolean", + "format": "boolean", + "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." + }, + "overwrite_cache": { + "type": "boolean", + "format": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + }, + "envs": { + "$ref": "#/definitions/adminEnvs", + "description": "Environment variables to be set for the execution." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Tags to be set for the execution." + } + }, + "description": "An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime\nof an execution as it progresses across phase changes." + }, + "adminExecutionState": { + "type": "string", + "enum": [ + "EXECUTION_ACTIVE", + "EXECUTION_ARCHIVED" + ], + "default": "EXECUTION_ACTIVE", + "description": "The state of the execution is used to control its visibility in the UI/CLI.\n\n - EXECUTION_ACTIVE: By default, all executions are considered active.\n - EXECUTION_ARCHIVED: Archived executions are no longer visible in the UI." + }, + "adminExecutionStateChangeDetails": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/adminExecutionState", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the state changed." + }, + "principal": { + "type": "string", + "title": "Identifies the entity (if any) responsible for causing the state change of the execution" + } + } + }, + "adminExecutionTerminateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Uniquely identifies the individual workflow execution to be terminated." + }, + "cause": { + "type": "string", + "description": "Optional reason for aborting." + } + }, + "description": "Request to terminate an in-progress execution. This action is irreversible.\nIf an execution is already terminated, this request will simply be a no-op.\nThis request will fail if it references a non-existent execution.\nIf the request succeeds the phase \"ABORTED\" will be recorded for the termination\nwith the optional cause added to the output_result." + }, + "adminExecutionTerminateResponse": { + "type": "object" + }, + "adminExecutionUpdateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "title": "Identifier of the execution to update" + }, + "state": { + "$ref": "#/definitions/adminExecutionState", + "title": "State to set as the new value active/archive" + } + } + }, + "adminExecutionUpdateResponse": { + "type": "object" + }, + "adminFixedRate": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + }, + "unit": { + "$ref": "#/definitions/adminFixedRateUnit" + } + }, + "description": "Option for schedules run at a certain frequency e.g. every 2 minutes." + }, + "adminFixedRateUnit": { + "type": "string", + "enum": [ + "MINUTE", + "HOUR", + "DAY" + ], + "default": "MINUTE", + "description": "Represents a frequency at which to run a schedule." + }, + "adminFlyteURLs": { + "type": "object", + "properties": { + "inputs": { + "type": "string" + }, + "outputs": { + "type": "string" + }, + "deck": { + "type": "string" + } + }, + "description": "These URLs are returned as part of node and task execution data requests." + }, + "adminGetVersionResponse": { + "type": "object", + "properties": { + "control_plane_version": { + "$ref": "#/definitions/adminVersion", + "title": "The control plane version information. FlyteAdmin and related components\nform the control plane of Flyte" + } + }, + "title": "Response for the GetVersion API" + }, + "adminLabels": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of custom labels to be applied to the execution resource." + } + }, + "description": "Label values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge labels defined at registration and execution time." + }, + "adminLaunchPlan": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Uniquely identifies a launch plan entity." + }, + "spec": { + "$ref": "#/definitions/adminLaunchPlanSpec", + "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." + }, + "closure": { + "$ref": "#/definitions/adminLaunchPlanClosure", + "description": "Values computed by the flyte platform after launch plan registration." + } + }, + "description": "A LaunchPlan provides the capability to templatize workflow executions.\nLaunch plans simplify associating one or more schedules, inputs and notifications with your workflows.\nLaunch plans can be shared and used to trigger executions with predefined inputs even when a workflow\ndefinition doesn't necessarily have a default value for said input." + }, + "adminLaunchPlanClosure": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/adminLaunchPlanState", + "description": "Indicate the Launch plan state." + }, + "expected_inputs": { + "$ref": "#/definitions/coreParameterMap", + "title": "Indicates the set of inputs expected when creating an execution with the Launch plan" + }, + "expected_outputs": { + "$ref": "#/definitions/coreVariableMap", + "title": "Indicates the set of outputs expected to be produced by creating an execution with the Launch plan" + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the launch plan was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the launch plan was last updated." + } + }, + "description": "Values computed by the flyte platform after launch plan registration.\nThese include expected_inputs required to be present in a CreateExecutionRequest\nto launch the reference workflow as well timestamp values associated with the launch plan." + }, + "adminLaunchPlanCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Uniquely identifies a launch plan entity." + }, + "spec": { + "$ref": "#/definitions/adminLaunchPlanSpec", + "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." + } + }, + "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan." + }, + "adminLaunchPlanCreateResponse": { + "type": "object" + }, + "adminLaunchPlanList": { + "type": "object", + "properties": { + "launch_plans": { + "type": "array", + "items": { + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Response object for list launch plan requests.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" + }, + "adminLaunchPlanMetadata": { + "type": "object", + "properties": { + "schedule": { + "$ref": "#/definitions/adminSchedule", + "title": "Schedule to execute the Launch Plan" + }, + "notifications": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNotification" + }, + "title": "List of notifications based on Execution status transitions" + } + }, + "description": "Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch\nthe reference workflow." + }, + "adminLaunchPlanSpec": { + "type": "object", + "properties": { + "workflow_id": { + "$ref": "#/definitions/coreIdentifier", + "title": "Reference to the Workflow template that the launch plan references" + }, + "entity_metadata": { + "$ref": "#/definitions/adminLaunchPlanMetadata", + "title": "Metadata for the Launch Plan" + }, + "default_inputs": { + "$ref": "#/definitions/coreParameterMap", + "description": "Input values to be passed for the execution.\nThese can be overriden when an execution is created with this launch plan." + }, + "fixed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Fixed, non-overridable inputs for the Launch Plan.\nThese can not be overriden when an execution is created with this launch plan." + }, + "role": { + "type": "string", + "title": "String to indicate the role to use to execute the workflow underneath" + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Custom labels to be applied to the execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Custom annotations to be applied to the execution resource." + }, + "auth": { + "$ref": "#/definitions/adminAuth", + "description": "Indicates the permission associated with workflow executions triggered with this launch plan." + }, + "auth_role": { + "$ref": "#/definitions/adminAuthRole" + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "title": "Indicates security context for permissions triggered with this launch plan" + }, + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService", + "description": "Indicates the runtime priority of the execution." + }, + "raw_output_data_config": { + "$ref": "#/definitions/adminRawOutputDataConfig", + "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." + }, + "max_parallelism": { + "type": "integer", + "format": "int32", + "description": "Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." + }, + "interruptible": { + "type": "boolean", + "format": "boolean", + "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." + }, + "overwrite_cache": { + "type": "boolean", + "format": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + }, + "envs": { + "$ref": "#/definitions/adminEnvs", + "description": "Environment variables to be set for the execution." + } + }, + "description": "User-provided launch plan definition and configuration values." + }, + "adminLaunchPlanState": { + "type": "string", + "enum": [ + "INACTIVE", + "ACTIVE" + ], + "default": "INACTIVE", + "description": "By default any launch plan regardless of state can be used to launch a workflow execution.\nHowever, at most one version of a launch plan\n(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be\nactive at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier\ngroup will be observed and trigger executions at a defined cadence." + }, + "adminLaunchPlanUpdateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Identifier of launch plan for which to change state.\n+required." + }, + "state": { + "$ref": "#/definitions/adminLaunchPlanState", + "description": "Desired state to apply to the launch plan.\n+required." + } + }, + "title": "Request to set the referenced launch plan state to the configured value.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" + }, + "adminLaunchPlanUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminListMatchableAttributesResponse": { + "type": "object", + "properties": { + "configurations": { + "type": "array", + "items": { + "$ref": "#/definitions/adminMatchableAttributesConfiguration" + } + } + }, + "title": "Response for a request for all matching resource attributes for a resource type.\nSee :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details" + }, + "adminLiteralMapBlob": { + "type": "object", + "properties": { + "values": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Data in LiteralMap format" + }, + "uri": { + "type": "string", + "title": "In the event that the map is too large, we return a uri to the data" + } + }, + "title": "Input/output data can represented by actual values or a link to where values are stored" + }, + "adminMatchableAttributesConfiguration": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "domain": { + "type": "string" + }, + "project": { + "type": "string" + }, + "workflow": { + "type": "string" + }, + "launch_plan": { + "type": "string" + } + }, + "description": "Represents a custom set of attributes applied for either a domain; a domain and project; or\ndomain, project and workflow name.\nThese are used to override system level defaults for kubernetes cluster resource management,\ndefault execution values, and more all across different levels of specificity." + }, + "adminMatchableResource": { + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE", + "description": "Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes\nbased on matching tags.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run." + }, + "adminMatchingAttributes": { + "type": "object", + "properties": { + "task_resource_attributes": { + "$ref": "#/definitions/adminTaskResourceAttributes" + }, + "cluster_resource_attributes": { + "$ref": "#/definitions/adminClusterResourceAttributes" + }, + "execution_queue_attributes": { + "$ref": "#/definitions/adminExecutionQueueAttributes" + }, + "execution_cluster_label": { + "$ref": "#/definitions/adminExecutionClusterLabel" + }, + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService" + }, + "plugin_overrides": { + "$ref": "#/definitions/adminPluginOverrides" + }, + "workflow_execution_config": { + "$ref": "#/definitions/adminWorkflowExecutionConfig" + }, + "cluster_assignment": { + "$ref": "#/definitions/adminClusterAssignment" + } + }, + "description": "Generic container for encapsulating all types of the above attributes messages." + }, + "adminNamedEntity": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Resource type of the named entity. One of Task, Workflow or LaunchPlan." + }, + "id": { + "$ref": "#/definitions/adminNamedEntityIdentifier" + }, + "metadata": { + "$ref": "#/definitions/adminNamedEntityMetadata", + "description": "Additional metadata around a named entity." + } + }, + "description": "Encapsulates information common to a NamedEntity, a Flyte resource such as a task,\nworkflow or launch plan. A NamedEntity is exclusively identified by its resource type\nand identifier." + }, + "adminNamedEntityIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "title": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'" + } + }, + "description": "Encapsulation of fields that identifies a Flyte resource.\nA Flyte resource can be a task, workflow or launch plan.\nA resource can internally have multiple versions and is uniquely identified\nby project, domain, and name." + }, + "adminNamedEntityIdentifierList": { + "type": "object", + "properties": { + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNamedEntityIdentifier" + }, + "description": "A list of identifiers." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "description": "Represents a list of NamedEntityIdentifiers." + }, + "adminNamedEntityList": { + "type": "object", + "properties": { + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNamedEntity" + }, + "title": "A list of NamedEntity objects" + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "description": "Represents a list of NamedEntityIdentifiers." + }, + "adminNamedEntityMetadata": { + "type": "object", + "properties": { + "description": { + "type": "string", + "title": "Common description across all versions of the entity\n+optional" + }, + "state": { + "$ref": "#/definitions/adminNamedEntityState", + "description": "Shared state across all version of the entity\nAt this point in time, only workflow entities can have their state archived." + } + }, + "description": "Additional metadata around a named entity." + }, + "adminNamedEntityState": { + "type": "string", + "enum": [ + "NAMED_ENTITY_ACTIVE", + "NAMED_ENTITY_ARCHIVED", + "SYSTEM_GENERATED" + ], + "default": "NAMED_ENTITY_ACTIVE", + "description": "The status of the named entity is used to control its visibility in the UI.\n\n - NAMED_ENTITY_ACTIVE: By default, all named entities are considered active and under development.\n - NAMED_ENTITY_ARCHIVED: Archived named entities are no longer visible in the UI.\n - SYSTEM_GENERATED: System generated entities that aren't explicitly created or managed by a user." + }, + "adminNamedEntityUpdateRequest": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "title": "Resource type of the metadata to update\n+required" + }, + "id": { + "$ref": "#/definitions/adminNamedEntityIdentifier", + "title": "Identifier of the metadata to update\n+required" + }, + "metadata": { + "$ref": "#/definitions/adminNamedEntityMetadata", + "title": "Metadata object to set as the new value\n+required" + } + }, + "description": "Request to set the referenced named entity state to the configured value." + }, + "adminNamedEntityUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminNodeExecutionClosure": { + "type": "object", + "properties": { + "output_uri": { + "type": "string", + "description": "Links to a remotely stored, serialized core.LiteralMap of node execution outputs.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the Node" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this node execution.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." + }, + "phase": { + "$ref": "#/definitions/coreNodeExecutionPhase", + "description": "The last recorded phase for this node execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the node execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution was last updated." + }, + "workflow_node_metadata": { + "$ref": "#/definitions/flyteidladminWorkflowNodeMetadata" + }, + "task_node_metadata": { + "$ref": "#/definitions/flyteidladminTaskNodeMetadata" + }, + "deck_uri": { + "type": "string", + "title": "String location uniquely identifying where the deck HTML file is.\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + }, + "dynamic_job_spec_uri": { + "type": "string", + "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required\nto correctly recover partially completed executions where the subworkflow has already been compiled." + } + }, + "description": "Container for node execution details and results." + }, + "adminNodeExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventNodeExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a node execution event has occurred." + }, + "adminNodeExecutionEventResponse": { + "type": "object" + }, + "adminNodeExecutionGetDataResponse": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of node execution inputs.\nDeprecated: Please use full_inputs instead." + }, + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of node execution outputs.\nDeprecated: Please use full_outputs instead." + }, + "full_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_inputs will only be populated if they are under a configured size threshold." + }, + "full_outputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_outputs will only be populated if they are under a configured size threshold." + }, + "dynamic_workflow": { + "$ref": "#/definitions/flyteidladminDynamicWorkflowNodeMetadata", + "description": "Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here." + }, + "flyte_urls": { + "$ref": "#/definitions/adminFlyteURLs" + } + }, + "description": "Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution." + }, + "adminNodeExecutionList": { + "type": "object", + "properties": { + "node_executions": { + "type": "array", + "items": { + "$ref": "#/definitions/flyteidladminNodeExecution" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Request structure to retrieve a list of node execution entities.\nSee :ref:`ref_flyteidl.admin.NodeExecution` for more details" + }, + "adminNodeExecutionMetaData": { + "type": "object", + "properties": { + "retry_group": { + "type": "string", + "description": "Node executions are grouped depending on retries of the parent\nRetry group is unique within the context of a parent node." + }, + "is_parent_node": { + "type": "boolean", + "format": "boolean", + "description": "Boolean flag indicating if the node has child nodes under it\nThis can be true when a node contains a dynamic workflow which then produces\nchild nodes." + }, + "spec_node_id": { + "type": "string", + "title": "Node id of the node in the original workflow\nThis maps to value of WorkflowTemplate.nodes[X].id" + }, + "is_dynamic": { + "type": "boolean", + "format": "boolean", + "description": "Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.\nThis is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true." + } + }, + "title": "Represents additional attributes related to a Node Execution" + }, + "adminNotification": { + "type": "object", + "properties": { + "phases": { + "type": "array", + "items": { + "$ref": "#/definitions/coreWorkflowExecutionPhase" + }, + "title": "A list of phases to which users can associate the notifications to.\n+required" + }, + "email": { + "$ref": "#/definitions/adminEmailNotification" + }, + "pager_duty": { + "$ref": "#/definitions/adminPagerDutyNotification" + }, + "slack": { + "$ref": "#/definitions/adminSlackNotification" + } + }, + "description": "Represents a structure for notifications based on execution status.\nThe notification content is configured within flyte admin but can be templatized.\nFuture iterations could expose configuring notifications with custom content." + }, + "adminNotificationList": { + "type": "object", + "properties": { + "notifications": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNotification" + } + } + } + }, + "adminPagerDutyNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Currently, PagerDuty notifications leverage email to trigger a notification.\n+required" + } + }, + "description": "Defines a pager duty notification specification." + }, + "adminPluginOverride": { + "type": "object", + "properties": { + "task_type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier." + }, + "plugin_id": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id." + }, + "missing_plugin_behavior": { + "$ref": "#/definitions/PluginOverrideMissingPluginBehavior", + "description": "Defines the behavior when no plugin from the plugin_id list is not found." + } + }, + "description": "This MatchableAttribute configures selecting alternate plugin implementations for a given task type.\nIn addition to an override implementation a selection of fallbacks can be provided or other modes\nfor handling cases where the desired plugin override is not enabled in a given Flyte deployment." + }, + "adminPluginOverrides": { + "type": "object", + "properties": { + "overrides": { + "type": "array", + "items": { + "$ref": "#/definitions/adminPluginOverride" + } + } + } + }, + "adminProject": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Globally unique project name." + }, + "name": { + "type": "string", + "description": "Display name." + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/adminDomain" + } + }, + "description": { + "type": "string" + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Leverage Labels from flyteidl.admin.common.proto to\ntag projects with ownership information." + }, + "state": { + "$ref": "#/definitions/ProjectProjectState" + } + }, + "description": "Top-level namespace used to classify different entities like workflows and executions." + }, + "adminProjectAttributes": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Unique project id for which this set of attributes will be applied." + }, + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + } + }, + "title": "Defines a set of custom matching attributes at the project level.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectAttributesDeleteRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "Unique project id which this set of attributes references.\n+required" + }, + "resource_type": { + "$ref": "#/definitions/adminMatchableResource", + "title": "Which type of matchable attributes to delete.\n+required" + } + }, + "title": "Request to delete a set matchable project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectAttributesDeleteResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectAttributesGetResponse": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminProjectAttributes" + } + }, + "title": "Response to get an individual project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectAttributesUpdateRequest": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminProjectAttributes", + "title": "+required" + } + }, + "title": "Sets custom attributes for a project\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectAttributesUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectDomainAttributes": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Unique project id for which this set of attributes will be applied." + }, + "domain": { + "type": "string", + "description": "Unique domain id for which this set of attributes will be applied." + }, + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + } + }, + "title": "Defines a set of custom matching attributes which defines resource defaults for a project and domain.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectDomainAttributesDeleteRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "Unique project id which this set of attributes references.\n+required" + }, + "domain": { + "type": "string", + "title": "Unique domain id which this set of attributes references.\n+required" + }, + "resource_type": { + "$ref": "#/definitions/adminMatchableResource", + "title": "Which type of matchable attributes to delete.\n+required" + } + }, + "title": "Request to delete a set matchable project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectDomainAttributesDeleteResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectDomainAttributesGetResponse": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminProjectDomainAttributes" + } + }, + "title": "Response to get an individual project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectDomainAttributesUpdateRequest": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminProjectDomainAttributes", + "title": "+required" + } + }, + "title": "Sets custom attributes for a project-domain combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectDomainAttributesUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectRegisterRequest": { + "type": "object", + "properties": { + "project": { + "$ref": "#/definitions/adminProject", + "title": "+required" + } + }, + "title": "Adds a new user-project within the Flyte deployment.\nSee :ref:`ref_flyteidl.admin.Project` for more details" + }, + "adminProjectRegisterResponse": { + "type": "object", + "description": "Purposefully empty, may be updated in the future." + }, + "adminProjectUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be updated in the future." + }, + "adminProjects": { + "type": "object", + "properties": { + "projects": { + "type": "array", + "items": { + "$ref": "#/definitions/adminProject" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of projects.\nSee :ref:`ref_flyteidl.admin.Project` for more details" + }, + "adminRawOutputDataConfig": { + "type": "object", + "properties": { + "output_location_prefix": { + "type": "string", + "title": "Prefix for where offloaded data from user workflows will be written\ne.g. s3://bucket/key or s3://bucket/" + } + }, + "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).\nSee https://github.com/flyteorg/flyte/issues/211 for more background information." + }, + "adminReason": { + "type": "object", + "properties": { + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "occurred_at is the timestamp indicating the instant that this reason happened." + }, + "message": { + "type": "string", + "description": "message is the explanation for the most recent phase transition or status update." + } + }, + "description": "Reason is a single message annotated with a timestamp to indicate the instant the reason occurred." + }, + "adminSchedule": { + "type": "object", + "properties": { + "cron_expression": { + "type": "string", + "title": "Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year\ne.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" + }, + "rate": { + "$ref": "#/definitions/adminFixedRate" + }, + "cron_schedule": { + "$ref": "#/definitions/adminCronSchedule" + }, + "kickoff_time_input_arg": { + "type": "string", + "description": "Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off." + } + }, + "description": "Defines complete set of information required to trigger an execution on a schedule." + }, + "adminSlackNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Currently, Slack notifications leverage email to trigger a notification.\n+required" + } + }, + "description": "Defines a slack notification specification." + }, + "adminSort": { + "type": "object", + "properties": { + "key": { + "type": "string", + "title": "Indicates an attribute to sort the response values.\n+required" + }, + "direction": { + "$ref": "#/definitions/SortDirection", + "title": "Indicates the direction to apply sort key for response values.\n+optional" + } + }, + "description": "Specifies sort ordering in a list request." + }, + "adminSourceCode": { + "type": "object", + "properties": { + "link": { + "type": "string" + } + }, + "title": "Link to source code used to define this entity" + }, + "adminSystemMetadata": { + "type": "object", + "properties": { + "execution_cluster": { + "type": "string", + "description": "Which execution cluster this execution ran on." + }, + "namespace": { + "type": "string", + "description": "Which kubernetes namespace the execution ran under." + } + }, + "description": "Represents system, rather than user-facing, metadata about an execution." + }, + "adminTask": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the task." + }, + "closure": { + "$ref": "#/definitions/adminTaskClosure", + "description": "closure encapsulates all the fields that maps to a compiled version of the task." + }, + "short_description": { + "type": "string", + "description": "One-liner overview of the entity." + } + }, + "description": "Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks\narranged to process workflow inputs and produce a deterministic set of outputs.\nTasks can come in many varieties tuned for specialized behavior." + }, + "adminTaskClosure": { + "type": "object", + "properties": { + "compiled_task": { + "$ref": "#/definitions/coreCompiledTask", + "description": "Represents the compiled representation of the task from the specification provided." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task was created." + } + }, + "description": "Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data\nand task metadata." + }, + "adminTaskExecutionClosure": { + "type": "object", + "properties": { + "output_uri": { + "type": "string", + "description": "Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "description": "Error information for the task execution. Populated if the execution failed." + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this task execution.\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "description": "The last recorded phase for this task execution." + }, + "logs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreTaskLog" + }, + "description": "Detailed log information output by the task execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the task execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution was last updated." + }, + "custom_info": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data specific to the task plugin." + }, + "reason": { + "type": "string", + "description": "If there is an explanation for the most recent phase transition, the reason will capture it." + }, + "task_type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier." + }, + "metadata": { + "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", + "description": "Metadata around how a task was executed." + }, + "event_version": { + "type": "integer", + "format": "int32", + "description": "The event version is used to indicate versioned changes in how data is maintained using this\nproto message. For example, event_verison \u003e 0 means that maps tasks logs use the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." + }, + "reasons": { + "type": "array", + "items": { + "$ref": "#/definitions/adminReason" + }, + "description": "A time-series of the phase transition or update explanations. This, when compared to storing a singular reason\nas previously done, is much more valuable in visualizing and understanding historical evaluations." + } + }, + "description": "Container for task execution details and results." + }, + "adminTaskExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventTaskExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a task execution event has occurred." + }, + "adminTaskExecutionEventResponse": { + "type": "object" + }, + "adminTaskExecutionGetDataResponse": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of task execution inputs.\nDeprecated: Please use full_inputs instead." + }, + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of task execution outputs.\nDeprecated: Please use full_outputs instead." + }, + "full_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_inputs will only be populated if they are under a configured size threshold." + }, + "full_outputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_outputs will only be populated if they are under a configured size threshold." + }, + "flyte_urls": { + "$ref": "#/definitions/adminFlyteURLs", + "title": "flyte tiny url to fetch a core.LiteralMap of task execution's IO\nDeck will be empty for task" + } + }, + "description": "Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution." + }, + "adminTaskExecutionList": { + "type": "object", + "properties": { + "task_executions": { + "type": "array", + "items": { + "$ref": "#/definitions/flyteidladminTaskExecution" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Response structure for a query to list of task execution entities.\nSee :ref:`ref_flyteidl.admin.TaskExecution` for more details" + }, + "adminTaskList": { + "type": "object", + "properties": { + "tasks": { + "type": "array", + "items": { + "$ref": "#/definitions/adminTask" + }, + "description": "A list of tasks returned based on the request." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of tasks returned from the admin.\nSee :ref:`ref_flyteidl.admin.Task` for more details" + }, + "adminTaskResourceAttributes": { + "type": "object", + "properties": { + "defaults": { + "$ref": "#/definitions/adminTaskResourceSpec" + }, + "limits": { + "$ref": "#/definitions/adminTaskResourceSpec" + } + }, + "description": "Defines task resource defaults and limits that will be applied at task registration." + }, + "adminTaskResourceSpec": { + "type": "object", + "properties": { + "cpu": { + "type": "string" + }, + "gpu": { + "type": "string" + }, + "memory": { + "type": "string" + }, + "storage": { + "type": "string" + }, + "ephemeral_storage": { + "type": "string" + } + }, + "description": "Defines a set of overridable task resource attributes set during task registration." + }, + "adminTaskSpec": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "description": "Template of the task that encapsulates all the metadata of the task." + }, + "description": { + "$ref": "#/definitions/adminDescriptionEntity", + "description": "Represents the specification for description entity." + } + }, + "description": "Represents a structure that encapsulates the user-configured specification of the task." + }, + "adminUrlBlob": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "Actual url value." + }, + "bytes": { + "type": "string", + "format": "int64", + "description": "Represents the size of the file accessible at the above url." + } + }, + "description": "Represents a string url and associated metadata used throughout the platform." + }, + "adminVersion": { + "type": "object", + "properties": { + "Build": { + "type": "string", + "title": "Specifies the GIT sha of the build" + }, + "Version": { + "type": "string", + "title": "Version for the build, should follow a semver" + }, + "BuildTime": { + "type": "string", + "title": "Build timestamp" + } + }, + "title": "Provides Version information for a component" + }, + "adminWorkflow": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "closure": { + "$ref": "#/definitions/adminWorkflowClosure", + "description": "closure encapsulates all the fields that maps to a compiled version of the workflow." + }, + "short_description": { + "type": "string", + "description": "One-liner overview of the entity." + } + }, + "description": "Represents the workflow structure stored in the Admin\nA workflow is created by ordering tasks and associating outputs to inputs\nin order to produce a directed-acyclic execution graph." + }, + "adminWorkflowAttributes": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Unique project id for which this set of attributes will be applied." + }, + "domain": { + "type": "string", + "description": "Unique domain id for which this set of attributes will be applied." + }, + "workflow": { + "type": "string", + "description": "Workflow name for which this set of attributes will be applied." + }, + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + } + }, + "title": "Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminWorkflowAttributesDeleteRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "Unique project id which this set of attributes references.\n+required" + }, + "domain": { + "type": "string", + "title": "Unique domain id which this set of attributes references.\n+required" + }, + "workflow": { + "type": "string", + "title": "Workflow name which this set of attributes references.\n+required" + }, + "resource_type": { + "$ref": "#/definitions/adminMatchableResource", + "title": "Which type of matchable attributes to delete.\n+required" + } + }, + "title": "Request to delete a set matchable workflow attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminWorkflowAttributesDeleteResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminWorkflowAttributesGetResponse": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminWorkflowAttributes" + } + }, + "description": "Response to get an individual workflow attribute override." + }, + "adminWorkflowAttributesUpdateRequest": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminWorkflowAttributes" + } + }, + "title": "Sets custom attributes for a project, domain and workflow combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminWorkflowAttributesUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminWorkflowClosure": { + "type": "object", + "properties": { + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure", + "description": "Represents the compiled representation of the workflow from the specification provided." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the workflow was created." + } + }, + "description": "A container holding the compiled workflow produced from the WorkflowSpec and additional metadata." + }, + "adminWorkflowCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "title": "id represents the unique identifier of the workflow.\n+required" + }, + "spec": { + "$ref": "#/definitions/adminWorkflowSpec", + "title": "Represents the specification for workflow.\n+required" + } + }, + "title": "Represents a request structure to create a revision of a workflow.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" + }, + "adminWorkflowCreateResponse": { + "type": "object" + }, + "adminWorkflowExecutionConfig": { + "type": "object", + "properties": { + "max_parallelism": { + "type": "integer", + "format": "int32", + "description": "Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "Indicates security context permissions for executions triggered with this matchable attribute." + }, + "raw_output_data_config": { + "$ref": "#/definitions/adminRawOutputDataConfig", + "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Custom labels to be applied to a triggered execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Custom annotations to be applied to a triggered execution resource." + }, + "interruptible": { + "type": "boolean", + "format": "boolean", + "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." + }, + "overwrite_cache": { + "type": "boolean", + "format": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + }, + "envs": { + "$ref": "#/definitions/adminEnvs", + "description": "Environment variables to be set for the execution." + } + }, + "description": "Adds defaults for customizable workflow-execution specifications and overrides." + }, + "adminWorkflowExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventWorkflowExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a workflow execution event has occurred." + }, + "adminWorkflowExecutionEventResponse": { + "type": "object" + }, + "adminWorkflowExecutionGetDataResponse": { + "type": "object", + "properties": { + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of execution outputs.\nDeprecated: Please use full_outputs instead." + }, + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of execution inputs.\nDeprecated: Please use full_inputs instead." + }, + "full_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_inputs will only be populated if they are under a configured size threshold." + }, + "full_outputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_outputs will only be populated if they are under a configured size threshold." + } + }, + "description": "Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution." + }, + "adminWorkflowExecutionGetMetricsResponse": { + "type": "object", + "properties": { + "span": { + "$ref": "#/definitions/coreSpan", + "description": "Span defines the top-level breakdown of the workflows execution. More precise information is nested in a\nhierarchical structure using Flyte entity references." + } + }, + "description": "WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution." + }, + "adminWorkflowList": { + "type": "object", + "properties": { + "workflows": { + "type": "array", + "items": { + "$ref": "#/definitions/adminWorkflow" + }, + "description": "A list of workflows returned based on the request." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of workflows returned from the admin.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" + }, + "adminWorkflowSpec": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreWorkflowTemplate", + "description": "Template of the task that encapsulates all the metadata of the workflow." + }, + "sub_workflows": { + "type": "array", + "items": { + "$ref": "#/definitions/coreWorkflowTemplate" + }, + "description": "Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the\npropeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out\nto Admin to see other registered workflows). In fact, subworkflows do not even need to be registered." + }, + "description": { + "$ref": "#/definitions/adminDescriptionEntity", + "description": "Represents the specification for description entity." + } + }, + "description": "Represents a structure that encapsulates the specification of the workflow." + }, + "coreAlias": { + "type": "object", + "properties": { + "var": { + "type": "string", + "description": "Must match one of the output variable names on a node." + }, + "alias": { + "type": "string", + "description": "A workflow-level unique alias that downstream nodes can refer to in their input." + } + }, + "description": "Links a variable to an alias." + }, + "coreApproveCondition": { + "type": "object", + "properties": { + "signal_id": { + "type": "string", + "description": "A unique identifier for the requested boolean signal." + } + }, + "description": "ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean\nsignal with the provided signal_id." + }, + "coreArrayNode": { + "type": "object", + "properties": { + "node": { + "$ref": "#/definitions/coreNode", + "description": "node is the sub-node that will be executed for each element in the array." + }, + "parallelism": { + "type": "integer", + "format": "int64", + "description": "parallelism defines the minimum number of instances to bring up concurrently at any given\npoint. Note that this is an optimistic restriction and that, due to network partitioning or\nother failures, the actual number of currently running instances might be more. This has to\nbe a positive number if assigned. Default value is size." + }, + "min_successes": { + "type": "integer", + "format": "int64", + "description": "min_successes is an absolute number of the minimum number of successful completions of\nsub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful\nand outputs will be computed. This has to be a non-negative number if assigned. Default\nvalue is size (if specified)." + }, + "min_success_ratio": { + "type": "number", + "format": "float", + "description": "If the array job size is not known beforehand, the min_success_ratio can instead be used\nto determine when an ArrayNode can be marked successful." + } + }, + "description": "ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input\nvalues. An ArrayNode can be executed with configurable parallelism (separate from the parent\nworkflow) and can be configured to succeed when a certain number of sub-nodes succeed." + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBinding": { + "type": "object", + "properties": { + "var": { + "type": "string", + "description": "Variable name must match an input/output variable of the node." + }, + "binding": { + "$ref": "#/definitions/coreBindingData", + "description": "Data to use to bind this variable." + } + }, + "description": "An input/output binding of a variable to either static value or a node output." + }, + "coreBindingData": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple scalar value." + }, + "collection": { + "$ref": "#/definitions/coreBindingDataCollection", + "description": "A collection of binding data. This allows nesting of binding data to any number\nof levels." + }, + "promise": { + "$ref": "#/definitions/coreOutputReference", + "description": "References an output promised by another node." + }, + "map": { + "$ref": "#/definitions/coreBindingDataMap", + "description": "A map of bindings. The key is always a string." + }, + "union": { + "$ref": "#/definitions/coreUnionInfo" + } + }, + "description": "Specifies either a simple value or a reference to another output." + }, + "coreBindingDataCollection": { + "type": "object", + "properties": { + "bindings": { + "type": "array", + "items": { + "$ref": "#/definitions/coreBindingData" + } + } + }, + "description": "A collection of BindingData items." + }, + "coreBindingDataMap": { + "type": "object", + "properties": { + "bindings": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreBindingData" + } + } + }, + "description": "A map of BindingData items." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreBooleanExpression": { + "type": "object", + "properties": { + "conjunction": { + "$ref": "#/definitions/coreConjunctionExpression" + }, + "comparison": { + "$ref": "#/definitions/coreComparisonExpression" + } + }, + "description": "Defines a boolean expression tree. It can be a simple or a conjunction expression.\nMultiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result." + }, + "coreBranchNode": { + "type": "object", + "properties": { + "if_else": { + "$ref": "#/definitions/coreIfElseBlock", + "title": "+required" + } + }, + "description": "BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at\nruntime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives)." + }, + "coreCatalogArtifactTag": { + "type": "object", + "properties": { + "artifact_id": { + "type": "string", + "title": "Artifact ID is generated name" + }, + "name": { + "type": "string", + "title": "Flyte computes the tag automatically, as the hash of the values" + } + } + }, + "coreCatalogCacheStatus": { + "type": "string", + "enum": [ + "CACHE_DISABLED", + "CACHE_MISS", + "CACHE_HIT", + "CACHE_POPULATED", + "CACHE_LOOKUP_FAILURE", + "CACHE_PUT_FAILURE", + "CACHE_SKIPPED" + ], + "default": "CACHE_DISABLED", + "description": "- CACHE_DISABLED: Used to indicate that caching was disabled\n - CACHE_MISS: Used to indicate that the cache lookup resulted in no matches\n - CACHE_HIT: used to indicate that the associated artifact was a result of a previous execution\n - CACHE_POPULATED: used to indicate that the resultant artifact was added to the cache\n - CACHE_LOOKUP_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_PUT_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_SKIPPED: Used to indicate the cache lookup was skipped", + "title": "Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future" + }, + "coreCatalogMetadata": { + "type": "object", + "properties": { + "dataset_id": { + "$ref": "#/definitions/coreIdentifier", + "title": "Dataset ID in the catalog" + }, + "artifact_tag": { + "$ref": "#/definitions/coreCatalogArtifactTag", + "title": "Artifact tag in the catalog" + }, + "source_task_execution": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "title": "Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions" + } + }, + "title": "Catalog artifact information with specific metadata" + }, + "coreComparisonExpression": { + "type": "object", + "properties": { + "operator": { + "$ref": "#/definitions/ComparisonExpressionOperator" + }, + "left_value": { + "$ref": "#/definitions/coreOperand" + }, + "right_value": { + "$ref": "#/definitions/coreOperand" + } + }, + "description": "Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.\nEach expression results in a boolean result." + }, + "coreCompiledTask": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "title": "Completely contained TaskTemplate" + } + }, + "title": "Output of the Compilation step. This object represent one Task. We store more metadata at this layer" + }, + "coreCompiledWorkflow": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreWorkflowTemplate", + "title": "Completely contained Workflow Template" + }, + "connections": { + "$ref": "#/definitions/coreConnectionSet", + "description": "For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored." + } + }, + "title": "Output of the compilation Step. This object represents one workflow. We store more metadata at this layer" + }, + "coreCompiledWorkflowClosure": { + "type": "object", + "properties": { + "primary": { + "$ref": "#/definitions/coreCompiledWorkflow", + "title": "+required" + }, + "sub_workflows": { + "type": "array", + "items": { + "$ref": "#/definitions/coreCompiledWorkflow" + }, + "title": "Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a\nunique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow\nas an inlined workflow\n+optional" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/definitions/coreCompiledTask" + }, + "title": "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id\n+required (at least 1)" + } + }, + "description": "A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow\nand its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that\nwill being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." + }, + "coreConjunctionExpression": { + "type": "object", + "properties": { + "operator": { + "$ref": "#/definitions/ConjunctionExpressionLogicalOperator" + }, + "left_expression": { + "$ref": "#/definitions/coreBooleanExpression" + }, + "right_expression": { + "$ref": "#/definitions/coreBooleanExpression" + } + }, + "description": "Defines a conjunction expression of two boolean expressions." + }, + "coreConnectionSet": { + "type": "object", + "properties": { + "downstream": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ConnectionSetIdList" + }, + "title": "A list of all the node ids that are downstream from a given node id" + }, + "upstream": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ConnectionSetIdList" + }, + "title": "A list of all the node ids, that are upstream of this node id" + } + }, + "title": "Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation\nstep uses this created ConnectionSet" + }, + "coreContainer": { + "type": "object", + "properties": { + "image": { + "type": "string", + "title": "Container image url. Eg: docker/redis:latest" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." + }, + "resources": { + "$ref": "#/definitions/coreResources", + "description": "Container resources requirement as specified by the container engine." + }, + "env": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." + }, + "ports": { + "type": "array", + "items": { + "$ref": "#/definitions/coreContainerPort" + }, + "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + }, + "architecture": { + "$ref": "#/definitions/ContainerArchitecture" + } + } + }, + "coreContainerPort": { + "type": "object", + "properties": { + "container_port": { + "type": "integer", + "format": "int64", + "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." + } + }, + "description": "Defines port properties for a container." + }, + "coreDataLoadingConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "format": "boolean", + "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" + }, + "input_path": { + "type": "string", + "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" + }, + "output_path": { + "type": "string", + "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" + }, + "format": { + "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", + "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" + }, + "io_strategy": { + "$ref": "#/definitions/coreIOStrategy" + } + }, + "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." + }, + "coreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreExecutionError": { + "type": "object", + "properties": { + "code": { + "type": "string", + "title": "Error code indicates a grouping of a type of error.\nMore Info: \u003cLink\u003e" + }, + "message": { + "type": "string", + "description": "Detailed description of the error - including stack trace." + }, + "error_uri": { + "type": "string", + "title": "Full error contents accessible via a URI" + }, + "kind": { + "$ref": "#/definitions/ExecutionErrorErrorKind" + } + }, + "description": "Represents the error message from the execution." + }, + "coreGateNode": { + "type": "object", + "properties": { + "approve": { + "$ref": "#/definitions/coreApproveCondition", + "description": "ApproveCondition represents a dependency on an external approval provided by a boolean signal." + }, + "signal": { + "$ref": "#/definitions/coreSignalCondition", + "description": "SignalCondition represents a dependency on an signal." + }, + "sleep": { + "$ref": "#/definitions/coreSleepCondition", + "description": "SleepCondition represents a dependency on waiting for the specified duration." + } + }, + "description": "GateNode refers to the condition that is required for the gate to successfully complete." + }, + "coreIOStrategy": { + "type": "object", + "properties": { + "download_mode": { + "$ref": "#/definitions/IOStrategyDownloadMode", + "title": "Mode to use to manage downloads" + }, + "upload_mode": { + "$ref": "#/definitions/IOStrategyUploadMode", + "title": "Mode to use to manage uploads" + } + }, + "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" + }, + "coreIdentifier": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifier corresponds to." + }, + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User provided value for the resource." + }, + "version": { + "type": "string", + "description": "Specific version of the resource." + } + }, + "description": "Encapsulation of fields that uniquely identifies a Flyte resource." + }, + "coreIdentity": { + "type": "object", + "properties": { + "iam_role": { + "type": "string", + "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." + }, + "k8s_service_account": { + "type": "string", + "description": "k8s_service_account references a kubernetes service account to impersonate." + }, + "oauth2_client": { + "$ref": "#/definitions/coreOAuth2Client", + "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." + }, + "execution_identity": { + "type": "string", + "title": "execution_identity references the subject who makes the execution" + } + }, + "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." + }, + "coreIfBlock": { + "type": "object", + "properties": { + "condition": { + "$ref": "#/definitions/coreBooleanExpression" + }, + "then_node": { + "$ref": "#/definitions/coreNode" + } + }, + "description": "Defines a condition and the execution unit that should be executed if the condition is satisfied." + }, + "coreIfElseBlock": { + "type": "object", + "properties": { + "case": { + "$ref": "#/definitions/coreIfBlock", + "description": "+required. First condition to evaluate." + }, + "other": { + "type": "array", + "items": { + "$ref": "#/definitions/coreIfBlock" + }, + "description": "+optional. Additional branches to evaluate." + }, + "else_node": { + "$ref": "#/definitions/coreNode", + "description": "The node to execute in case none of the branches were taken." + }, + "error": { + "$ref": "#/definitions/coreError", + "description": "An error to throw in case none of the branches were taken." + } + }, + "description": "Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.\nIf no conditions were satisfied, the else_node or the error will execute." + }, + "coreK8sObjectMetadata": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels to add to the pod definition." + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional annotations to add to the pod definition." + } + }, + "description": "Metadata for building a kubernetes object when a task is executed." + }, + "coreK8sPod": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreK8sObjectMetadata", + "description": "Contains additional metadata for building a kubernetes pod." + }, + "pod_spec": { + "$ref": "#/definitions/protobufStruct", + "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + } + }, + "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." + }, + "coreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/coreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "$ref": "#/definitions/protobufStruct", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreNode": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved\nnode ids that cannot be used by other nodes." + }, + "metadata": { + "$ref": "#/definitions/coreNodeMetadata", + "description": "Extra metadata about the node." + }, + "inputs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreBinding" + }, + "description": "Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface\nmust be fulfilled." + }, + "upstream_node_ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its\nupstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs\nfield." + }, + "output_aliases": { + "type": "array", + "items": { + "$ref": "#/definitions/coreAlias" + }, + "description": "+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes\nneed to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this\nnodes outputs using the alias if one's specified." + }, + "task_node": { + "$ref": "#/definitions/coreTaskNode", + "description": "Information about the Task to execute in this node." + }, + "workflow_node": { + "$ref": "#/definitions/coreWorkflowNode", + "description": "Information about the Workflow to execute in this mode." + }, + "branch_node": { + "$ref": "#/definitions/coreBranchNode", + "description": "Information about the branch node to evaluate in this node." + }, + "gate_node": { + "$ref": "#/definitions/coreGateNode", + "description": "Information about the condition to evaluate in this node." + }, + "array_node": { + "$ref": "#/definitions/coreArrayNode", + "description": "Information about the sub-node executions for each value in the list of this nodes\ninputs values." + } + }, + "description": "A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch\nnode." + }, + "coreNodeExecutionIdentifier": { + "type": "object", + "properties": { + "node_id": { + "type": "string" + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "Encapsulation of fields that identify a Flyte node execution entity." + }, + "coreNodeExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDED", + "FAILING", + "FAILED", + "ABORTED", + "SKIPPED", + "TIMED_OUT", + "DYNAMIC_RUNNING", + "RECOVERED" + ], + "default": "UNDEFINED" + }, + "coreNodeMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A friendly name for the Node" + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "interruptible": { + "type": "boolean", + "format": "boolean" + } + }, + "description": "Defines extra information about the Node." + }, + "coreOAuth2Client": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" + }, + "client_secret": { + "$ref": "#/definitions/coreSecret", + "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" + } + }, + "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." + }, + "coreOAuth2TokenRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" + }, + "type": { + "$ref": "#/definitions/coreOAuth2TokenRequestType", + "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" + }, + "client": { + "$ref": "#/definitions/coreOAuth2Client", + "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" + }, + "idp_discovery_endpoint": { + "type": "string", + "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" + }, + "token_endpoint": { + "type": "string", + "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" + } + }, + "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." + }, + "coreOAuth2TokenRequestType": { + "type": "string", + "enum": [ + "CLIENT_CREDENTIALS" + ], + "default": "CLIENT_CREDENTIALS", + "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + }, + "coreOperand": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive", + "title": "Can be a constant" + }, + "var": { + "type": "string", + "title": "Or one of this node's input variables" + }, + "scalar": { + "$ref": "#/definitions/coreScalar", + "title": "Replace the primitive field" + } + }, + "description": "Defines an operand to a comparison expression." + }, + "coreOutputReference": { + "type": "object", + "properties": { + "node_id": { + "type": "string", + "description": "Node id must exist at the graph layer." + }, + "var": { + "type": "string", + "description": "Variable name must refer to an output variable for the node." + } + }, + "description": "A reference to an output produced by a node. The type can be retrieved -and validated- from\nthe underlying interface of the node." + }, + "coreParameter": { + "type": "object", + "properties": { + "var": { + "$ref": "#/definitions/coreVariable", + "description": "+required Variable. Defines the type of the variable backing this parameter." + }, + "default": { + "$ref": "#/definitions/coreLiteral", + "description": "Defines a default value that has to match the variable type defined." + }, + "required": { + "type": "boolean", + "format": "boolean", + "description": "+optional, is this value required to be filled." + } + }, + "description": "A parameter is used as input to a launch plan and has\nthe special ability to have a default value or mark itself as required." + }, + "coreParameterMap": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreParameter" + }, + "description": "Defines a map of parameter names to parameters." + } + }, + "description": "A map of Parameters." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean", + "format": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreQualityOfService": { + "type": "object", + "properties": { + "tier": { + "$ref": "#/definitions/QualityOfServiceTier" + }, + "spec": { + "$ref": "#/definitions/coreQualityOfServiceSpec" + } + }, + "description": "Indicates the priority of an execution." + }, + "coreQualityOfServiceSpec": { + "type": "object", + "properties": { + "queueing_budget": { + "type": "string", + "description": "Indicates how much queueing delay an execution can tolerate." + } + }, + "description": "Represents customized execution run-time attributes." + }, + "coreResourceType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED", + "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" + }, + "coreResources": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." + } + }, + "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." + }, + "coreRetryStrategy": { + "type": "object", + "properties": { + "retries": { + "type": "integer", + "format": "int64", + "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." + } + }, + "description": "Retry strategy associated with an executable unit." + }, + "coreRuntimeMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/RuntimeMetadataRuntimeType", + "description": "Type of runtime." + }, + "version": { + "type": "string", + "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." + }, + "flavor": { + "type": "string", + "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + } + }, + "description": "Runtime information. This is loosely defined to allow for extensibility." + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/coreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "$ref": "#/definitions/protobufStruct" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSecret": { + "type": "object", + "properties": { + "group": { + "type": "string", + "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" + }, + "group_version": { + "type": "string", + "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" + }, + "key": { + "type": "string", + "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" + }, + "mount_requirement": { + "$ref": "#/definitions/SecretMountType", + "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" + } + }, + "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." + }, + "coreSecurityContext": { + "type": "object", + "properties": { + "run_as": { + "$ref": "#/definitions/coreIdentity", + "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/coreSecret" + }, + "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + }, + "tokens": { + "type": "array", + "items": { + "$ref": "#/definitions/coreOAuth2TokenRequest" + }, + "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + } + }, + "description": "SecurityContext holds security attributes that apply to tasks." + }, + "coreSignalCondition": { + "type": "object", + "properties": { + "signal_id": { + "type": "string", + "description": "A unique identifier for the requested signal." + }, + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "A type denoting the required value type for this signal." + }, + "output_variable_name": { + "type": "string", + "description": "The variable name for the signal value in this nodes outputs." + } + }, + "description": "SignalCondition represents a dependency on an signal." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreSleepCondition": { + "type": "object", + "properties": { + "duration": { + "type": "string", + "description": "The overall duration for this sleep." + } + }, + "description": "SleepCondition represents a dependency on waiting for the specified duration." + }, + "coreSpan": { + "type": "object", + "properties": { + "start_time": { + "type": "string", + "format": "date-time", + "description": "start_time defines the instance this span began." + }, + "end_time": { + "type": "string", + "format": "date-time", + "description": "end_time defines the instance this span completed." + }, + "workflow_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "workflow_id is the id of the workflow execution this Span represents." + }, + "node_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "description": "node_id is the id of the node execution this Span represents." + }, + "task_id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "description": "task_id is the id of the task execution this Span represents." + }, + "operation_id": { + "type": "string", + "description": "operation_id is the id of a unique operation that this Span represents." + }, + "spans": { + "type": "array", + "items": { + "$ref": "#/definitions/coreSpan" + }, + "description": "spans defines a collection of Spans that breakdown this execution." + } + }, + "description": "Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation\nwhich uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more\nprecise definitions." + }, + "coreSql": { + "type": "object", + "properties": { + "statement": { + "type": "string", + "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" + }, + "dialect": { + "$ref": "#/definitions/SqlDialect" + } + }, + "description": "Sql represents a generic sql workload with a statement and dialect." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTaskExecutionIdentifier": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier" + }, + "node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier" + }, + "retry_attempt": { + "type": "integer", + "format": "int64" + } + }, + "description": "Encapsulation of fields that identify a Flyte task execution entity." + }, + "coreTaskExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDED", + "ABORTED", + "FAILED", + "INITIALIZING", + "WAITING_FOR_RESOURCES" + ], + "default": "UNDEFINED", + "title": "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded" + }, + "coreTaskLog": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "name": { + "type": "string" + }, + "message_format": { + "$ref": "#/definitions/TaskLogMessageFormat" + }, + "ttl": { + "type": "string" + } + }, + "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" + }, + "coreTaskMetadata": { + "type": "object", + "properties": { + "discoverable": { + "type": "boolean", + "format": "boolean", + "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + }, + "runtime": { + "$ref": "#/definitions/coreRuntimeMetadata", + "description": "Runtime information about the task." + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task including user-triggered retries." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "discovery_version": { + "type": "string", + "description": "Indicates a logical version to apply to this task for the purpose of discovery." + }, + "deprecated_error_message": { + "type": "string", + "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." + }, + "interruptible": { + "type": "boolean", + "format": "boolean" + }, + "cache_serializable": { + "type": "boolean", + "format": "boolean", + "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + }, + "generates_deck": { + "type": "boolean", + "format": "boolean", + "description": "Indicates whether the task will generate a Deck URI when it finishes executing." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + }, + "pod_template_name": { + "type": "string", + "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." + } + }, + "title": "Task Metadata" + }, + "coreTaskNode": { + "type": "object", + "properties": { + "reference_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the task." + }, + "overrides": { + "$ref": "#/definitions/coreTaskNodeOverrides", + "description": "Optional overrides applied at task execution time." + } + }, + "description": "Refers to the task that the Node is to execute." + }, + "coreTaskNodeOverrides": { + "type": "object", + "properties": { + "resources": { + "$ref": "#/definitions/coreResources", + "description": "A customizable interface to convey resources requested for a task container." + } + }, + "description": "Optional task node overrides that will be applied at task execution time." + }, + "coreTaskTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + }, + "type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." + }, + "metadata": { + "$ref": "#/definitions/coreTaskMetadata", + "description": "Extra metadata about the task." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." + }, + "custom": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data about the task. This is extensible to allow various plugins in the system." + }, + "container": { + "$ref": "#/definitions/coreContainer" + }, + "k8s_pod": { + "$ref": "#/definitions/coreK8sPod" + }, + "sql": { + "$ref": "#/definitions/coreSql" + }, + "task_type_version": { + "type": "integer", + "format": "int32", + "description": "This can be used to customize task handling at execution time for the same task type." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "security_context encapsulates security attributes requested to run this task." + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" + } + }, + "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "$ref": "#/definitions/protobufStruct", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreTypedInterface": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreVariableMap" + }, + "outputs": { + "$ref": "#/definitions/coreVariableMap" + } + }, + "description": "Defines strongly typed inputs and outputs." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionInfo": { + "type": "object", + "properties": { + "targetType": { + "$ref": "#/definitions/coreLiteralType" + } + } + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVariable": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Variable literal type." + }, + "description": { + "type": "string", + "title": "+optional string describing input variable" + } + }, + "description": "Defines a strongly typed variable." + }, + "coreVariableMap": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreVariable" + }, + "description": "Defines a map of variable names to variables." + } + }, + "title": "A map of Variables" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "coreWorkflowExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDING", + "SUCCEEDED", + "FAILING", + "FAILED", + "ABORTED", + "TIMED_OUT", + "ABORTING" + ], + "default": "UNDEFINED" + }, + "coreWorkflowMetadata": { + "type": "object", + "properties": { + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService", + "description": "Indicates the runtime priority of workflow executions." + }, + "on_failure": { + "$ref": "#/definitions/WorkflowMetadataOnFailurePolicy", + "description": "Defines how the system should behave when a failure is detected in the workflow execution." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + } + }, + "description": "This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not\npercolate down to child entities (like tasks) launched by the workflow." + }, + "coreWorkflowMetadataDefaults": { + "type": "object", + "properties": { + "interruptible": { + "type": "boolean", + "format": "boolean", + "description": "Whether child nodes of the workflow are interruptible." + } + }, + "description": "The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to\na workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it\nis only relevant when a task executes. The settings here are the defaults that are passed to all nodes\nunless explicitly overridden at the node layer.\nIf you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be\nadded to both this object and the WorkflowMetadata object above." + }, + "coreWorkflowNode": { + "type": "object", + "properties": { + "launchplan_ref": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the launch plan." + }, + "sub_workflow_ref": { + "$ref": "#/definitions/coreIdentifier", + "title": "Reference to a subworkflow, that should be defined with the compiler context" + } + }, + "description": "Refers to a the workflow the node is to execute." + }, + "coreWorkflowTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the workflow." + }, + "metadata": { + "$ref": "#/definitions/coreWorkflowMetadata", + "description": "Extra metadata about the workflow." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "Defines a strongly typed interface for the Workflow. This can include some optional parameters." + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/coreNode" + }, + "description": "A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs." + }, + "outputs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreBinding" + }, + "description": "A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or\nspecify literals. All workflow outputs specified in the interface field must be bound in order for the workflow\nto be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to\nbind final outputs.\nMost of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can\njust have an output of some constant (`Output(5)`), but usually, the workflow will be pulling\noutputs from the output of a task." + }, + "failure_node": { + "$ref": "#/definitions/coreNode", + "description": "+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.\nThe interface of this node must match the Workflow interface with an additional input named 'error' of type\npb.lyft.flyte.core.Error." + }, + "metadata_defaults": { + "$ref": "#/definitions/coreWorkflowMetadataDefaults", + "title": "workflow defaults" + } + }, + "description": "Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,\ndirected acyclic graph." + }, + "eventExternalResourceInfo": { + "type": "object", + "properties": { + "external_id": { + "type": "string", + "description": "Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids." + }, + "index": { + "type": "integer", + "format": "int64", + "description": "A unique index for the external resource with respect to all external resources for this task. Although the\nidentifier may change between task reporting events or retries, this will remain the same to enable aggregating\ninformation from multiple reports." + }, + "retry_attempt": { + "type": "integer", + "format": "int64", + "title": "Retry attempt number for this external resource, ie., 2 for the second attempt" + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "title": "Phase associated with the external resource" + }, + "cache_status": { + "$ref": "#/definitions/coreCatalogCacheStatus", + "description": "Captures the status of caching for this external resource execution." + }, + "logs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreTaskLog" + }, + "title": "log information for the external resource execution" + } + }, + "description": "This message contains metadata about external resources produced or used by a specific task execution." + }, + "eventNodeExecutionEvent": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "Unique identifier for this node execution" + }, + "producer_id": { + "type": "string", + "title": "the id of the originator (Propeller) of the event" + }, + "phase": { + "$ref": "#/definitions/coreNodeExecutionPhase" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the node." + }, + "input_uri": { + "type": "string" + }, + "input_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw input data consumed by this node execution." + }, + "output_uri": { + "type": "string", + "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this node execution." + }, + "workflow_node_metadata": { + "$ref": "#/definitions/flyteidleventWorkflowNodeMetadata" + }, + "task_node_metadata": { + "$ref": "#/definitions/flyteidleventTaskNodeMetadata" + }, + "parent_task_metadata": { + "$ref": "#/definitions/eventParentTaskExecutionMetadata", + "description": "[To be deprecated] Specifies which task (if any) launched this node." + }, + "parent_node_metadata": { + "$ref": "#/definitions/eventParentNodeExecutionMetadata", + "description": "Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node." + }, + "retry_group": { + "type": "string", + "title": "Retry group to indicate grouping of nodes by retries" + }, + "spec_node_id": { + "type": "string", + "title": "Identifier of the node in the original workflow/graph\nThis maps to value of WorkflowTemplate.nodes[X].id" + }, + "node_name": { + "type": "string", + "title": "Friendly readable name for the node" + }, + "event_version": { + "type": "integer", + "format": "int32" + }, + "is_parent": { + "type": "boolean", + "format": "boolean", + "description": "Whether this node launched a subworkflow." + }, + "is_dynamic": { + "type": "boolean", + "format": "boolean", + "description": "Whether this node yielded a dynamic workflow." + }, + "deck_uri": { + "type": "string", + "title": "String location uniquely identifying where the deck HTML file is\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + }, + "reported_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents the instant when the event was reported by the executing framework. For example,\nwhen first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when\nliteral inputs are initially copied. The event however will not be sent until after the copy completes.\nExtracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series." + } + } + }, + "eventParentNodeExecutionMetadata": { + "type": "object", + "properties": { + "node_id": { + "type": "string", + "title": "Unique identifier of the parent node id within the execution\nThis is value of core.NodeExecutionIdentifier.node_id of the parent node" + } + } + }, + "eventParentTaskExecutionMetadata": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier" + } + } + }, + "eventResourcePoolInfo": { + "type": "object", + "properties": { + "allocation_token": { + "type": "string", + "description": "Unique resource ID used to identify this execution when allocating a token." + }, + "namespace": { + "type": "string", + "description": "Namespace under which this task execution requested an allocation token." + } + }, + "description": "This message holds task execution metadata specific to resource allocation used to manage concurrent\nexecutions for a project namespace." + }, + "eventTaskExecutionEvent": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "ID of the task. In combination with the retryAttempt this will indicate\nthe task execution uniquely for a given parent node execution." + }, + "parent_node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "A task execution is always kicked off by a node execution, the event consumer\nwill use the parent_id to relate the task to it's parent node execution" + }, + "retry_attempt": { + "type": "integer", + "format": "int64", + "title": "retry attempt number for this task, ie., 2 for the second attempt" + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "title": "Phase associated with the event" + }, + "producer_id": { + "type": "string", + "title": "id of the process that sent this event, mainly for trace debugging" + }, + "logs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreTaskLog" + }, + "title": "log information for the task execution" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the task." + }, + "input_uri": { + "type": "string", + "description": "URI of the input file, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "input_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw input data consumed by this task execution." + }, + "output_uri": { + "type": "string", + "description": "URI to the output of the execution, it will be in a format that encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this task execution." + }, + "custom_info": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data that the task plugin sends back. This is extensible to allow various plugins in the system." + }, + "phase_version": { + "type": "integer", + "format": "int64", + "description": "Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)\nthat should be recorded regardless of the lack of phase change.\nThe version field should be incremented when metadata changes across the duration of an individual phase." + }, + "reason": { + "type": "string", + "description": "An optional explanation for the phase transition." + }, + "task_type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin\nthis type will be identical, but not all task executions necessarily use pre-registered definitions and this\ntype is useful to render the task in the UI, filter task executions, etc." + }, + "metadata": { + "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", + "description": "Metadata around how a task was executed." + }, + "event_version": { + "type": "integer", + "format": "int32", + "description": "The event version is used to indicate versioned changes in how data is reported using this\nproto message. For example, event_verison \u003e 0 means that maps tasks report logs using the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." + }, + "reported_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s\npod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,\nbut this event will not be reported until the pod is marked as completed. Extracting both of these timestamps\nfacilitates a more accurate portrayal of the evaluation time-series." + } + }, + "description": "Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob." + }, + "eventWorkflowExecutionEvent": { + "type": "object", + "properties": { + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "title": "Workflow execution id" + }, + "producer_id": { + "type": "string", + "title": "the id of the originator (Propeller) of the event" + }, + "phase": { + "$ref": "#/definitions/coreWorkflowExecutionPhase" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the workflow." + }, + "output_uri": { + "type": "string", + "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this workflow execution." + } + } + }, + "flyteidladminDynamicWorkflowNodeMetadata": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure", + "description": "Represents the compiled representation of the embedded dynamic workflow." + }, + "dynamic_job_spec_uri": { + "type": "string", + "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the subworkflow has already been compiled." + } + }, + "description": "For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated." + }, + "flyteidladminNodeExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "description": "Uniquely identifies an individual node execution." + }, + "input_uri": { + "type": "string", + "description": "Path to remote data store where input blob is stored." + }, + "closure": { + "$ref": "#/definitions/adminNodeExecutionClosure", + "description": "Computed results associated with this node execution." + }, + "metadata": { + "$ref": "#/definitions/adminNodeExecutionMetaData", + "title": "Metadata for Node Execution" + } + }, + "description": "Encapsulates all details for a single node execution entity.\nA node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow execution.\nThe same task can be called repeatedly in a single workflow but each node is unique." + }, + "flyteidladminTaskCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "title": "id represents the unique identifier of the task.\n+required" + }, + "spec": { + "$ref": "#/definitions/adminTaskSpec", + "title": "Represents the specification for task.\n+required" + } + }, + "title": "Represents a request structure to create a revision of a task.\nSee :ref:`ref_flyteidl.admin.Task` for more details" + }, + "flyteidladminTaskCreateResponse": { + "type": "object", + "description": "Represents a response structure if task creation succeeds." + }, + "flyteidladminTaskExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "description": "Unique identifier for the task execution." + }, + "input_uri": { + "type": "string", + "description": "Path to remote data store where input blob is stored." + }, + "closure": { + "$ref": "#/definitions/adminTaskExecutionClosure", + "description": "Task execution details and results." + }, + "is_parent": { + "type": "boolean", + "format": "boolean", + "description": "Whether this task spawned nodes." + } + }, + "description": "Encapsulates all details for a single task execution entity.\nA task execution represents an instantiated task, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes." + }, + "flyteidladminTaskNodeMetadata": { + "type": "object", + "properties": { + "cache_status": { + "$ref": "#/definitions/coreCatalogCacheStatus", + "description": "Captures the status of caching for this execution." + }, + "catalog_key": { + "$ref": "#/definitions/coreCatalogMetadata", + "title": "This structure carries the catalog artifact information" + }, + "checkpoint_uri": { + "type": "string", + "title": "The latest checkpoint location" + } + }, + "title": "Metadata for the case in which the node is a TaskNode" + }, + "flyteidladminWorkflowNodeMetadata": { + "type": "object", + "properties": { + "executionId": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "The identifier for a workflow execution launched by a node." + } + }, + "title": "Metadata for a WorkflowNode" + }, + "flyteidleventDynamicWorkflowNodeMetadata": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure", + "description": "Represents the compiled representation of the embedded dynamic workflow." + }, + "dynamic_job_spec_uri": { + "type": "string", + "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the workflow has already been compiled." + } + }, + "description": "For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated." + }, + "flyteidleventTaskExecutionMetadata": { + "type": "object", + "properties": { + "generated_name": { + "type": "string", + "description": "Unique, generated name for this task execution used by the backend." + }, + "external_resources": { + "type": "array", + "items": { + "$ref": "#/definitions/eventExternalResourceInfo" + }, + "description": "Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution." + }, + "resource_pool_info": { + "type": "array", + "items": { + "$ref": "#/definitions/eventResourcePoolInfo" + }, + "description": "Includes additional data on concurrent resource management used during execution..\nThis is a repeated field because a plugin can request multiple resource allocations during execution." + }, + "plugin_identifier": { + "type": "string", + "description": "The identifier of the plugin used to execute this task." + }, + "instance_class": { + "$ref": "#/definitions/TaskExecutionMetadataInstanceClass" + } + }, + "description": "Holds metadata around how a task was executed.\nAs a task transitions across event phases during execution some attributes, such its generated name, generated external resources,\nand more may grow in size but not change necessarily based on the phase transition that sparked the event update.\nMetadata is a container for these attributes across the task execution lifecycle." + }, + "flyteidleventTaskNodeMetadata": { + "type": "object", + "properties": { + "cache_status": { + "$ref": "#/definitions/coreCatalogCacheStatus", + "description": "Captures the status of caching for this execution." + }, + "catalog_key": { + "$ref": "#/definitions/coreCatalogMetadata", + "title": "This structure carries the catalog artifact information" + }, + "reservation_status": { + "$ref": "#/definitions/CatalogReservationStatus", + "description": "Captures the status of cache reservations for this execution." + }, + "checkpoint_uri": { + "type": "string", + "title": "The latest checkpoint location" + }, + "dynamic_workflow": { + "$ref": "#/definitions/flyteidleventDynamicWorkflowNodeMetadata", + "description": "In the case this task launched a dynamic workflow we capture its structure here." + } + } + }, + "flyteidleventWorkflowNodeMetadata": { + "type": "object", + "properties": { + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "title": "For Workflow Nodes we need to send information about the workflow that's launched" + }, + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "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." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go new file mode 100644 index 0000000000..13122a9012 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -0,0 +1,204 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/agent.proto + +package service + +import ( + context "context" + fmt "fmt" + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + proto "github.com/golang/protobuf/proto" + 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 + +func init() { proto.RegisterFile("flyteidl/service/agent.proto", fileDescriptor_f7d1dfd1fb77d2ef) } + +var fileDescriptor_f7d1dfd1fb77d2ef = []byte{ + // 212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x4f, 0x4c, 0x4f, + 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0xc9, 0xea, 0x41, 0x65, 0xa5, + 0xa4, 0xe0, 0xea, 0x13, 0x53, 0x72, 0x33, 0xf3, 0x90, 0x55, 0x1b, 0xf5, 0x33, 0x71, 0x09, 0x3a, + 0x16, 0x57, 0xe6, 0x25, 0x3b, 0x82, 0x04, 0x83, 0x21, 0x3a, 0x84, 0x42, 0xb9, 0xb8, 0x9c, 0x8b, + 0x52, 0x13, 0x4b, 0x52, 0x43, 0x12, 0x8b, 0xb3, 0x85, 0x14, 0xf5, 0xe0, 0x46, 0x82, 0x0d, 0xd0, + 0x43, 0xc8, 0x05, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x48, 0x29, 0xe1, 0x53, 0x52, 0x5c, 0x90, + 0x9f, 0x57, 0x9c, 0xaa, 0xc4, 0x20, 0xe4, 0xc3, 0xc5, 0xee, 0x9e, 0x5a, 0x02, 0x36, 0x53, 0x0e, + 0x5d, 0x03, 0x54, 0x02, 0x66, 0xa0, 0x3c, 0x4e, 0x79, 0xb8, 0x69, 0xa1, 0x5c, 0x5c, 0x2e, 0xa9, + 0x39, 0xa9, 0xb8, 0x1c, 0x89, 0x90, 0xc3, 0xe9, 0x48, 0x64, 0x25, 0x30, 0x63, 0x9d, 0x2c, 0xa3, + 0xcc, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xc1, 0x3a, 0xf2, 0x8b, + 0xd2, 0xf5, 0xe1, 0x61, 0x98, 0x9e, 0x9a, 0xa7, 0x5f, 0x90, 0xa4, 0x9b, 0x9e, 0xaf, 0x8f, 0x1e, + 0x0d, 0x49, 0x6c, 0xe0, 0x30, 0x35, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x38, 0xbf, 0x55, 0xcc, + 0xa1, 0x01, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// AsyncAgentServiceClient is the client API for AsyncAgentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AsyncAgentServiceClient interface { + // Send a task create request to the agent server. + CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) + // Get job status. + GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) + // Delete the task resource. + DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) +} + +type asyncAgentServiceClient struct { + cc *grpc.ClientConn +} + +func NewAsyncAgentServiceClient(cc *grpc.ClientConn) AsyncAgentServiceClient { + return &asyncAgentServiceClient{cc} +} + +func (c *asyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { + out := new(admin.CreateTaskResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/CreateTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *asyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) { + out := new(admin.GetTaskResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/GetTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *asyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) { + out := new(admin.DeleteTaskResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/DeleteTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AsyncAgentServiceServer is the server API for AsyncAgentService service. +type AsyncAgentServiceServer interface { + // Send a task create request to the agent server. + CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) + // Get job status. + GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) + // Delete the task resource. + DeleteTask(context.Context, *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) +} + +// UnimplementedAsyncAgentServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAsyncAgentServiceServer struct { +} + +func (*UnimplementedAsyncAgentServiceServer) CreateTask(ctx context.Context, req *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") +} +func (*UnimplementedAsyncAgentServiceServer) GetTask(ctx context.Context, req *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") +} +func (*UnimplementedAsyncAgentServiceServer) DeleteTask(ctx context.Context, req *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") +} + +func RegisterAsyncAgentServiceServer(s *grpc.Server, srv AsyncAgentServiceServer) { + s.RegisterService(&_AsyncAgentService_serviceDesc, srv) +} + +func _AsyncAgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.CreateTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AsyncAgentService/CreateTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).CreateTask(ctx, req.(*admin.CreateTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AsyncAgentService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AsyncAgentService/GetTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).GetTask(ctx, req.(*admin.GetTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AsyncAgentService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.DeleteTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).DeleteTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AsyncAgentService/DeleteTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).DeleteTask(ctx, req.(*admin.DeleteTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _AsyncAgentService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AsyncAgentService", + HandlerType: (*AsyncAgentServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTask", + Handler: _AsyncAgentService_CreateTask_Handler, + }, + { + MethodName: "GetTask", + Handler: _AsyncAgentService_GetTask_Handler, + }, + { + MethodName: "DeleteTask", + Handler: _AsyncAgentService_DeleteTask_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/agent.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json new file mode 100644 index 0000000000..0a788c919c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json @@ -0,0 +1,1253 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/agent.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "ContainerArchitecture": { + "type": "string", + "enum": [ + "UNKNOWN", + "AMD64", + "ARM64", + "ARM_V6", + "ARM_V7" + ], + "default": "UNKNOWN", + "description": "Architecture-type the container image supports." + }, + "DataLoadingConfigLiteralMapFormat": { + "type": "string", + "enum": [ + "JSON", + "YAML", + "PROTO" + ], + "default": "JSON", + "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", + "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" + }, + "IOStrategyDownloadMode": { + "type": "string", + "enum": [ + "DOWNLOAD_EAGER", + "DOWNLOAD_STREAM", + "DO_NOT_DOWNLOAD" + ], + "default": "DOWNLOAD_EAGER", + "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", + "title": "Mode to use for downloading" + }, + "IOStrategyUploadMode": { + "type": "string", + "enum": [ + "UPLOAD_ON_EXIT", + "UPLOAD_EAGER", + "DO_NOT_UPLOAD" + ], + "default": "UPLOAD_ON_EXIT", + "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", + "title": "Mode to use for uploading" + }, + "ResourcesResourceEntry": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ResourcesResourceName", + "description": "Resource name." + }, + "value": { + "type": "string", + "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + } + }, + "description": "Encapsulates a resource name and value." + }, + "ResourcesResourceName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU", + "GPU", + "MEMORY", + "STORAGE", + "EPHEMERAL_STORAGE" + ], + "default": "UNKNOWN", + "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." + }, + "RuntimeMetadataRuntimeType": { + "type": "string", + "enum": [ + "OTHER", + "FLYTE_SDK" + ], + "default": "OTHER" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SecretMountType": { + "type": "string", + "enum": [ + "ANY", + "ENV_VAR", + "FILE" + ], + "default": "ANY", + "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." + }, + "SqlDialect": { + "type": "string", + "enum": [ + "UNDEFINED", + "ANSI", + "HIVE", + "OTHER" + ], + "default": "UNDEFINED", + "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "adminCreateTaskResponse": { + "type": "object", + "properties": { + "resource_meta": { + "type": "string", + "format": "byte", + "description": "Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata)." + } + }, + "description": "Represents a create response structure." + }, + "adminDeleteTaskResponse": { + "type": "object", + "description": "Response to delete a task." + }, + "adminGetTaskResponse": { + "type": "object", + "properties": { + "resource": { + "$ref": "#/definitions/adminResource" + } + }, + "description": "Response to get an individual task resource." + }, + "adminResource": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/flyteidladminState", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "outputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The outputs of the execution. It's typically used by sql task. Agent service will create a\nStructured dataset pointing to the query result table.\n+optional" + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreContainer": { + "type": "object", + "properties": { + "image": { + "type": "string", + "title": "Container image url. Eg: docker/redis:latest" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." + }, + "resources": { + "$ref": "#/definitions/coreResources", + "description": "Container resources requirement as specified by the container engine." + }, + "env": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." + }, + "ports": { + "type": "array", + "items": { + "$ref": "#/definitions/coreContainerPort" + }, + "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + }, + "architecture": { + "$ref": "#/definitions/ContainerArchitecture" + } + } + }, + "coreContainerPort": { + "type": "object", + "properties": { + "container_port": { + "type": "integer", + "format": "int64", + "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." + } + }, + "description": "Defines port properties for a container." + }, + "coreDataLoadingConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "format": "boolean", + "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" + }, + "input_path": { + "type": "string", + "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" + }, + "output_path": { + "type": "string", + "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" + }, + "format": { + "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", + "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" + }, + "io_strategy": { + "$ref": "#/definitions/coreIOStrategy" + } + }, + "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." + }, + "coreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreIOStrategy": { + "type": "object", + "properties": { + "download_mode": { + "$ref": "#/definitions/IOStrategyDownloadMode", + "title": "Mode to use to manage downloads" + }, + "upload_mode": { + "$ref": "#/definitions/IOStrategyUploadMode", + "title": "Mode to use to manage uploads" + } + }, + "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" + }, + "coreIdentifier": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifier corresponds to." + }, + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User provided value for the resource." + }, + "version": { + "type": "string", + "description": "Specific version of the resource." + } + }, + "description": "Encapsulation of fields that uniquely identifies a Flyte resource." + }, + "coreIdentity": { + "type": "object", + "properties": { + "iam_role": { + "type": "string", + "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." + }, + "k8s_service_account": { + "type": "string", + "description": "k8s_service_account references a kubernetes service account to impersonate." + }, + "oauth2_client": { + "$ref": "#/definitions/coreOAuth2Client", + "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." + }, + "execution_identity": { + "type": "string", + "title": "execution_identity references the subject who makes the execution" + } + }, + "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." + }, + "coreK8sObjectMetadata": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels to add to the pod definition." + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional annotations to add to the pod definition." + } + }, + "description": "Metadata for building a kubernetes object when a task is executed." + }, + "coreK8sPod": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreK8sObjectMetadata", + "description": "Contains additional metadata for building a kubernetes pod." + }, + "pod_spec": { + "$ref": "#/definitions/protobufStruct", + "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + } + }, + "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." + }, + "coreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/coreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "$ref": "#/definitions/protobufStruct", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreNodeExecutionIdentifier": { + "type": "object", + "properties": { + "node_id": { + "type": "string" + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "Encapsulation of fields that identify a Flyte node execution entity." + }, + "coreOAuth2Client": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" + }, + "client_secret": { + "$ref": "#/definitions/coreSecret", + "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" + } + }, + "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." + }, + "coreOAuth2TokenRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" + }, + "type": { + "$ref": "#/definitions/coreOAuth2TokenRequestType", + "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" + }, + "client": { + "$ref": "#/definitions/coreOAuth2Client", + "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" + }, + "idp_discovery_endpoint": { + "type": "string", + "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" + }, + "token_endpoint": { + "type": "string", + "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" + } + }, + "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." + }, + "coreOAuth2TokenRequestType": { + "type": "string", + "enum": [ + "CLIENT_CREDENTIALS" + ], + "default": "CLIENT_CREDENTIALS", + "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean", + "format": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreResourceType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED", + "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" + }, + "coreResources": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." + } + }, + "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." + }, + "coreRetryStrategy": { + "type": "object", + "properties": { + "retries": { + "type": "integer", + "format": "int64", + "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." + } + }, + "description": "Retry strategy associated with an executable unit." + }, + "coreRuntimeMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/RuntimeMetadataRuntimeType", + "description": "Type of runtime." + }, + "version": { + "type": "string", + "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." + }, + "flavor": { + "type": "string", + "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + } + }, + "description": "Runtime information. This is loosely defined to allow for extensibility." + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/coreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "$ref": "#/definitions/protobufStruct" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSecret": { + "type": "object", + "properties": { + "group": { + "type": "string", + "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" + }, + "group_version": { + "type": "string", + "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" + }, + "key": { + "type": "string", + "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" + }, + "mount_requirement": { + "$ref": "#/definitions/SecretMountType", + "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" + } + }, + "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." + }, + "coreSecurityContext": { + "type": "object", + "properties": { + "run_as": { + "$ref": "#/definitions/coreIdentity", + "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/coreSecret" + }, + "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + }, + "tokens": { + "type": "array", + "items": { + "$ref": "#/definitions/coreOAuth2TokenRequest" + }, + "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + } + }, + "description": "SecurityContext holds security attributes that apply to tasks." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreSql": { + "type": "object", + "properties": { + "statement": { + "type": "string", + "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" + }, + "dialect": { + "$ref": "#/definitions/SqlDialect" + } + }, + "description": "Sql represents a generic sql workload with a statement and dialect." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTaskExecutionIdentifier": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier" + }, + "node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier" + }, + "retry_attempt": { + "type": "integer", + "format": "int64" + } + }, + "description": "Encapsulation of fields that identify a Flyte task execution entity." + }, + "coreTaskMetadata": { + "type": "object", + "properties": { + "discoverable": { + "type": "boolean", + "format": "boolean", + "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + }, + "runtime": { + "$ref": "#/definitions/coreRuntimeMetadata", + "description": "Runtime information about the task." + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task including user-triggered retries." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "discovery_version": { + "type": "string", + "description": "Indicates a logical version to apply to this task for the purpose of discovery." + }, + "deprecated_error_message": { + "type": "string", + "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." + }, + "interruptible": { + "type": "boolean", + "format": "boolean" + }, + "cache_serializable": { + "type": "boolean", + "format": "boolean", + "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + }, + "generates_deck": { + "type": "boolean", + "format": "boolean", + "description": "Indicates whether the task will generate a Deck URI when it finishes executing." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + }, + "pod_template_name": { + "type": "string", + "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." + } + }, + "title": "Task Metadata" + }, + "coreTaskTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + }, + "type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." + }, + "metadata": { + "$ref": "#/definitions/coreTaskMetadata", + "description": "Extra metadata about the task." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." + }, + "custom": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data about the task. This is extensible to allow various plugins in the system." + }, + "container": { + "$ref": "#/definitions/coreContainer" + }, + "k8s_pod": { + "$ref": "#/definitions/coreK8sPod" + }, + "sql": { + "$ref": "#/definitions/coreSql" + }, + "task_type_version": { + "type": "integer", + "format": "int32", + "description": "This can be used to customize task handling at execution time for the same task type." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "security_context encapsulates security attributes requested to run this task." + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" + } + }, + "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "$ref": "#/definitions/protobufStruct", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreTypedInterface": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreVariableMap" + }, + "outputs": { + "$ref": "#/definitions/coreVariableMap" + } + }, + "description": "Defines strongly typed inputs and outputs." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVariable": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Variable literal type." + }, + "description": { + "type": "string", + "title": "+optional string describing input variable" + } + }, + "description": "Defines a strongly typed variable." + }, + "coreVariableMap": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreVariable" + }, + "description": "Defines a map of variable names to variables." + } + }, + "title": "A map of Variables" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "flyteidladminState": { + "type": "string", + "enum": [ + "RETRYABLE_FAILURE", + "PERMANENT_FAILURE", + "PENDING", + "RUNNING", + "SUCCEEDED" + ], + "default": "RETRYABLE_FAILURE", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "flyteidladminTaskExecutionMetadata": { + "type": "object", + "properties": { + "task_execution_id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "title": "ID of the task execution" + }, + "namespace": { + "type": "string", + "title": "k8s namespace where the task is executed in" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Labels attached to the task execution" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Annotations attached to the task execution" + }, + "k8s_service_account": { + "type": "string", + "title": "k8s service account associated with the task execution" + }, + "environment_variables": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Environment variables attached to the task execution" + } + }, + "description": "Represents a subset of runtime task execution metadata that are relevant to external plugins." + }, + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "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." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go new file mode 100644 index 0000000000..6dc8211ac9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go @@ -0,0 +1,479 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/auth.proto + +package service + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "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 OAuth2MetadataRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OAuth2MetadataRequest) Reset() { *m = OAuth2MetadataRequest{} } +func (m *OAuth2MetadataRequest) String() string { return proto.CompactTextString(m) } +func (*OAuth2MetadataRequest) ProtoMessage() {} +func (*OAuth2MetadataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6eee4a0c193ab842, []int{0} +} + +func (m *OAuth2MetadataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OAuth2MetadataRequest.Unmarshal(m, b) +} +func (m *OAuth2MetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OAuth2MetadataRequest.Marshal(b, m, deterministic) +} +func (m *OAuth2MetadataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OAuth2MetadataRequest.Merge(m, src) +} +func (m *OAuth2MetadataRequest) XXX_Size() int { + return xxx_messageInfo_OAuth2MetadataRequest.Size(m) +} +func (m *OAuth2MetadataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_OAuth2MetadataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_OAuth2MetadataRequest proto.InternalMessageInfo + +// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata +// as defined in https://tools.ietf.org/html/rfc8414 +type OAuth2MetadataResponse struct { + // Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external + // issuer. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are + // supported that use the authorization endpoint. + AuthorizationEndpoint string `protobuf:"bytes,2,opt,name=authorization_endpoint,json=authorizationEndpoint,proto3" json:"authorization_endpoint,omitempty"` + // URL of the authorization server's token endpoint [RFC6749]. + TokenEndpoint string `protobuf:"bytes,3,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` + // Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. + ResponseTypesSupported []string `protobuf:"bytes,4,rep,name=response_types_supported,json=responseTypesSupported,proto3" json:"response_types_supported,omitempty"` + // JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports. + ScopesSupported []string `protobuf:"bytes,5,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"` + // JSON array containing a list of client authentication methods supported by this token endpoint. + TokenEndpointAuthMethodsSupported []string `protobuf:"bytes,6,rep,name=token_endpoint_auth_methods_supported,json=tokenEndpointAuthMethodsSupported,proto3" json:"token_endpoint_auth_methods_supported,omitempty"` + // URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the + // client uses to validate signatures from the authorization server. + JwksUri string `protobuf:"bytes,7,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"` + // JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by + // this authorization server. + CodeChallengeMethodsSupported []string `protobuf:"bytes,8,rep,name=code_challenge_methods_supported,json=codeChallengeMethodsSupported,proto3" json:"code_challenge_methods_supported,omitempty"` + // JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. + GrantTypesSupported []string `protobuf:"bytes,9,rep,name=grant_types_supported,json=grantTypesSupported,proto3" json:"grant_types_supported,omitempty"` + // URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628] + DeviceAuthorizationEndpoint string `protobuf:"bytes,10,opt,name=device_authorization_endpoint,json=deviceAuthorizationEndpoint,proto3" json:"device_authorization_endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OAuth2MetadataResponse) Reset() { *m = OAuth2MetadataResponse{} } +func (m *OAuth2MetadataResponse) String() string { return proto.CompactTextString(m) } +func (*OAuth2MetadataResponse) ProtoMessage() {} +func (*OAuth2MetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6eee4a0c193ab842, []int{1} +} + +func (m *OAuth2MetadataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OAuth2MetadataResponse.Unmarshal(m, b) +} +func (m *OAuth2MetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OAuth2MetadataResponse.Marshal(b, m, deterministic) +} +func (m *OAuth2MetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OAuth2MetadataResponse.Merge(m, src) +} +func (m *OAuth2MetadataResponse) XXX_Size() int { + return xxx_messageInfo_OAuth2MetadataResponse.Size(m) +} +func (m *OAuth2MetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_OAuth2MetadataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_OAuth2MetadataResponse proto.InternalMessageInfo + +func (m *OAuth2MetadataResponse) GetIssuer() string { + if m != nil { + return m.Issuer + } + return "" +} + +func (m *OAuth2MetadataResponse) GetAuthorizationEndpoint() string { + if m != nil { + return m.AuthorizationEndpoint + } + return "" +} + +func (m *OAuth2MetadataResponse) GetTokenEndpoint() string { + if m != nil { + return m.TokenEndpoint + } + return "" +} + +func (m *OAuth2MetadataResponse) GetResponseTypesSupported() []string { + if m != nil { + return m.ResponseTypesSupported + } + return nil +} + +func (m *OAuth2MetadataResponse) GetScopesSupported() []string { + if m != nil { + return m.ScopesSupported + } + return nil +} + +func (m *OAuth2MetadataResponse) GetTokenEndpointAuthMethodsSupported() []string { + if m != nil { + return m.TokenEndpointAuthMethodsSupported + } + return nil +} + +func (m *OAuth2MetadataResponse) GetJwksUri() string { + if m != nil { + return m.JwksUri + } + return "" +} + +func (m *OAuth2MetadataResponse) GetCodeChallengeMethodsSupported() []string { + if m != nil { + return m.CodeChallengeMethodsSupported + } + return nil +} + +func (m *OAuth2MetadataResponse) GetGrantTypesSupported() []string { + if m != nil { + return m.GrantTypesSupported + } + return nil +} + +func (m *OAuth2MetadataResponse) GetDeviceAuthorizationEndpoint() string { + if m != nil { + return m.DeviceAuthorizationEndpoint + } + return "" +} + +type PublicClientAuthConfigRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublicClientAuthConfigRequest) Reset() { *m = PublicClientAuthConfigRequest{} } +func (m *PublicClientAuthConfigRequest) String() string { return proto.CompactTextString(m) } +func (*PublicClientAuthConfigRequest) ProtoMessage() {} +func (*PublicClientAuthConfigRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_6eee4a0c193ab842, []int{2} +} + +func (m *PublicClientAuthConfigRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublicClientAuthConfigRequest.Unmarshal(m, b) +} +func (m *PublicClientAuthConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublicClientAuthConfigRequest.Marshal(b, m, deterministic) +} +func (m *PublicClientAuthConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublicClientAuthConfigRequest.Merge(m, src) +} +func (m *PublicClientAuthConfigRequest) XXX_Size() int { + return xxx_messageInfo_PublicClientAuthConfigRequest.Size(m) +} +func (m *PublicClientAuthConfigRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PublicClientAuthConfigRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PublicClientAuthConfigRequest proto.InternalMessageInfo + +// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. +type PublicClientAuthConfigResponse struct { + // client_id to use when initiating OAuth2 authorization requests. + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // redirect uri to use when initiating OAuth2 authorization requests. + RedirectUri string `protobuf:"bytes,2,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` + // scopes to request when initiating OAuth2 authorization requests. + Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"` + // Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the + // default http `Authorization` header. + AuthorizationMetadataKey string `protobuf:"bytes,4,opt,name=authorization_metadata_key,json=authorizationMetadataKey,proto3" json:"authorization_metadata_key,omitempty"` + // ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used + // to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between + // SSL or no SSL connections. + ServiceHttpEndpoint string `protobuf:"bytes,5,opt,name=service_http_endpoint,json=serviceHttpEndpoint,proto3" json:"service_http_endpoint,omitempty"` + // audience to use when initiating OAuth2 authorization requests. + Audience string `protobuf:"bytes,6,opt,name=audience,proto3" json:"audience,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublicClientAuthConfigResponse) Reset() { *m = PublicClientAuthConfigResponse{} } +func (m *PublicClientAuthConfigResponse) String() string { return proto.CompactTextString(m) } +func (*PublicClientAuthConfigResponse) ProtoMessage() {} +func (*PublicClientAuthConfigResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6eee4a0c193ab842, []int{3} +} + +func (m *PublicClientAuthConfigResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublicClientAuthConfigResponse.Unmarshal(m, b) +} +func (m *PublicClientAuthConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublicClientAuthConfigResponse.Marshal(b, m, deterministic) +} +func (m *PublicClientAuthConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublicClientAuthConfigResponse.Merge(m, src) +} +func (m *PublicClientAuthConfigResponse) XXX_Size() int { + return xxx_messageInfo_PublicClientAuthConfigResponse.Size(m) +} +func (m *PublicClientAuthConfigResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PublicClientAuthConfigResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PublicClientAuthConfigResponse proto.InternalMessageInfo + +func (m *PublicClientAuthConfigResponse) GetClientId() string { + if m != nil { + return m.ClientId + } + return "" +} + +func (m *PublicClientAuthConfigResponse) GetRedirectUri() string { + if m != nil { + return m.RedirectUri + } + return "" +} + +func (m *PublicClientAuthConfigResponse) GetScopes() []string { + if m != nil { + return m.Scopes + } + return nil +} + +func (m *PublicClientAuthConfigResponse) GetAuthorizationMetadataKey() string { + if m != nil { + return m.AuthorizationMetadataKey + } + return "" +} + +func (m *PublicClientAuthConfigResponse) GetServiceHttpEndpoint() string { + if m != nil { + return m.ServiceHttpEndpoint + } + return "" +} + +func (m *PublicClientAuthConfigResponse) GetAudience() string { + if m != nil { + return m.Audience + } + return "" +} + +func init() { + proto.RegisterType((*OAuth2MetadataRequest)(nil), "flyteidl.service.OAuth2MetadataRequest") + proto.RegisterType((*OAuth2MetadataResponse)(nil), "flyteidl.service.OAuth2MetadataResponse") + proto.RegisterType((*PublicClientAuthConfigRequest)(nil), "flyteidl.service.PublicClientAuthConfigRequest") + proto.RegisterType((*PublicClientAuthConfigResponse)(nil), "flyteidl.service.PublicClientAuthConfigResponse") +} + +func init() { proto.RegisterFile("flyteidl/service/auth.proto", fileDescriptor_6eee4a0c193ab842) } + +var fileDescriptor_6eee4a0c193ab842 = []byte{ + // 633 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x4e, 0x14, 0x41, + 0x10, 0xce, 0x2e, 0xb0, 0xec, 0x96, 0x7f, 0xd8, 0x64, 0x97, 0x61, 0x11, 0x81, 0x4d, 0x08, 0x70, + 0xd8, 0x6d, 0xc5, 0x18, 0x35, 0xf1, 0x02, 0xc4, 0xa0, 0x31, 0x44, 0x02, 0x7a, 0xf1, 0xd2, 0x99, + 0x9d, 0x29, 0x66, 0xdb, 0x1d, 0xba, 0xc7, 0x9e, 0x1e, 0xc8, 0x7a, 0xf4, 0xe0, 0x0b, 0x78, 0xf0, + 0xe0, 0xc9, 0x07, 0xf2, 0xe4, 0x2b, 0xf8, 0x20, 0x66, 0xba, 0x7b, 0x80, 0x59, 0x40, 0x3d, 0x76, + 0x7f, 0x5f, 0x75, 0x55, 0x7d, 0xf5, 0x55, 0xc3, 0xc2, 0x51, 0x3c, 0xd2, 0xc8, 0xc3, 0x98, 0xa6, + 0xa8, 0x4e, 0x78, 0x80, 0xd4, 0xcf, 0xf4, 0xa0, 0x97, 0x28, 0xa9, 0x25, 0x99, 0x29, 0xc0, 0x9e, + 0x03, 0xdb, 0xf7, 0x22, 0x29, 0xa3, 0x18, 0xa9, 0x9f, 0x70, 0xea, 0x0b, 0x21, 0xb5, 0xaf, 0xb9, + 0x14, 0xa9, 0xe5, 0x77, 0xe6, 0xa0, 0xf9, 0x66, 0x2b, 0xd3, 0x83, 0xcd, 0x3d, 0xd4, 0x7e, 0xe8, + 0x6b, 0xff, 0x00, 0x3f, 0x66, 0x98, 0xea, 0xce, 0x8f, 0x49, 0x68, 0x8d, 0x23, 0x69, 0x22, 0x45, + 0x8a, 0xa4, 0x05, 0x35, 0x9e, 0xa6, 0x19, 0x2a, 0xaf, 0xb2, 0x5c, 0x59, 0x6f, 0x1c, 0xb8, 0x13, + 0x79, 0x0c, 0xad, 0xbc, 0x12, 0xa9, 0xf8, 0x27, 0x93, 0x83, 0xa1, 0x08, 0x13, 0xc9, 0x85, 0xf6, + 0xaa, 0x86, 0xd7, 0x2c, 0xa1, 0x2f, 0x1c, 0x48, 0x56, 0xe1, 0xb6, 0x96, 0x43, 0xbc, 0x40, 0x9f, + 0x30, 0xf4, 0x5b, 0xe6, 0xf6, 0x8c, 0xf6, 0x14, 0x3c, 0xe5, 0x2a, 0x60, 0x7a, 0x94, 0x60, 0xca, + 0xd2, 0x2c, 0x49, 0xa4, 0xd2, 0x18, 0x7a, 0x93, 0xcb, 0x13, 0xeb, 0x8d, 0x83, 0x56, 0x81, 0xbf, + 0xcd, 0xe1, 0xc3, 0x02, 0x25, 0x1b, 0x30, 0x93, 0x06, 0xb2, 0x1c, 0x31, 0x65, 0x22, 0xee, 0xd8, + 0xfb, 0x73, 0xea, 0x3e, 0xac, 0x96, 0x6b, 0x61, 0x79, 0xcd, 0xec, 0x18, 0xf5, 0x40, 0x86, 0x17, + 0xe3, 0x6b, 0x26, 0x7e, 0xa5, 0x54, 0x62, 0xae, 0xd6, 0x9e, 0x65, 0x9e, 0xbf, 0x38, 0x0f, 0xf5, + 0x0f, 0xa7, 0xc3, 0x94, 0x65, 0x8a, 0x7b, 0xd3, 0xa6, 0xaf, 0xe9, 0xfc, 0xfc, 0x4e, 0x71, 0xb2, + 0x0b, 0xcb, 0x81, 0x0c, 0x91, 0x05, 0x03, 0x3f, 0x8e, 0x51, 0x44, 0x78, 0x45, 0x9e, 0xba, 0xc9, + 0xb3, 0x98, 0xf3, 0x76, 0x0a, 0xda, 0xa5, 0x1c, 0x9b, 0xd0, 0x8c, 0x94, 0x2f, 0xf4, 0x25, 0x5d, + 0x1a, 0x26, 0x7a, 0xd6, 0x80, 0x63, 0xa2, 0x6c, 0xc3, 0x62, 0x88, 0xb9, 0x41, 0xd8, 0x35, 0x33, + 0x03, 0x53, 0xec, 0x82, 0x25, 0x6d, 0x5d, 0x35, 0xb9, 0xce, 0x12, 0x2c, 0xee, 0x67, 0xfd, 0x98, + 0x07, 0x3b, 0x31, 0x47, 0xdb, 0xff, 0x8e, 0x14, 0x47, 0x3c, 0x2a, 0x4c, 0xf4, 0xa5, 0x0a, 0xf7, + 0xaf, 0x63, 0x38, 0x33, 0x2d, 0x40, 0x23, 0x30, 0x18, 0xe3, 0xa1, 0xf3, 0x53, 0xdd, 0x5e, 0xbc, + 0x0a, 0xc9, 0x0a, 0xdc, 0x54, 0x18, 0x72, 0x85, 0x81, 0x36, 0x02, 0x5a, 0x1f, 0xdd, 0x28, 0xee, + 0x72, 0x11, 0x5b, 0x50, 0xb3, 0x43, 0xf4, 0x26, 0x4c, 0xb3, 0xee, 0x44, 0x9e, 0x43, 0xbb, 0xdc, + 0xd8, 0xb1, 0xb3, 0x31, 0x1b, 0xe2, 0xc8, 0x9b, 0x34, 0x0f, 0x79, 0x25, 0x46, 0xe1, 0xf3, 0xd7, + 0x38, 0xca, 0x15, 0x75, 0xfb, 0xc3, 0x06, 0x5a, 0x27, 0xe7, 0xaa, 0x4c, 0x99, 0xc0, 0x59, 0x07, + 0xbe, 0xd4, 0x3a, 0x39, 0x33, 0x68, 0x1b, 0xea, 0x7e, 0x16, 0x72, 0x14, 0x01, 0x7a, 0x35, 0xdb, + 0x48, 0x71, 0xde, 0xfc, 0x59, 0x85, 0x59, 0x67, 0x0f, 0x93, 0xe3, 0xd0, 0xc6, 0x93, 0x6f, 0x15, + 0xb8, 0xbb, 0x8b, 0xba, 0xbc, 0x68, 0x64, 0xad, 0x37, 0xbe, 0xc5, 0xbd, 0x2b, 0x97, 0xb4, 0xbd, + 0xfe, 0x6f, 0xa2, 0x95, 0xb9, 0x43, 0x3f, 0xff, 0xfa, 0xfd, 0xb5, 0xba, 0x41, 0xd6, 0x68, 0xef, + 0x14, 0xe3, 0xb8, 0x3b, 0x14, 0xf2, 0x54, 0x50, 0x99, 0x0b, 0xd0, 0x2d, 0xa9, 0xd0, 0xcd, 0x1f, + 0x42, 0x45, 0xbe, 0x57, 0xa0, 0xb9, 0x8b, 0xfa, 0xe2, 0xf4, 0xec, 0xe4, 0x08, 0xbd, 0x9c, 0xf4, + 0xaf, 0x2e, 0x68, 0x3f, 0xf8, 0xff, 0x00, 0x57, 0xed, 0x92, 0xa9, 0x76, 0x9e, 0xcc, 0xd1, 0xc0, + 0x00, 0xf4, 0xe4, 0x21, 0x35, 0x6f, 0x30, 0x6b, 0x8d, 0xed, 0x67, 0xef, 0x9f, 0x44, 0x5c, 0x0f, + 0xb2, 0x7e, 0x2f, 0x90, 0xc7, 0x16, 0x92, 0x2a, 0xa2, 0x67, 0x3f, 0x63, 0x84, 0x82, 0x26, 0xfd, + 0x6e, 0x24, 0xe9, 0xf8, 0x67, 0xd9, 0xaf, 0x99, 0x8f, 0xef, 0xd1, 0x9f, 0x00, 0x00, 0x00, 0xff, + 0xff, 0x39, 0xb1, 0x8a, 0x3d, 0x47, 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// AuthMetadataServiceClient is the client API for AuthMetadataService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AuthMetadataServiceClient interface { + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) +} + +type authMetadataServiceClient struct { + cc *grpc.ClientConn +} + +func NewAuthMetadataServiceClient(cc *grpc.ClientConn) AuthMetadataServiceClient { + return &authMetadataServiceClient{cc} +} + +func (c *authMetadataServiceClient) GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) { + out := new(OAuth2MetadataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authMetadataServiceClient) GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) { + out := new(PublicClientAuthConfigResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AuthMetadataServiceServer is the server API for AuthMetadataService service. +type AuthMetadataServiceServer interface { + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + GetOAuth2Metadata(context.Context, *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + GetPublicClientConfig(context.Context, *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) +} + +// UnimplementedAuthMetadataServiceServer can be embedded to have forward compatible implementations. +type UnimplementedAuthMetadataServiceServer struct { +} + +func (*UnimplementedAuthMetadataServiceServer) GetOAuth2Metadata(ctx context.Context, req *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOAuth2Metadata not implemented") +} +func (*UnimplementedAuthMetadataServiceServer) GetPublicClientConfig(ctx context.Context, req *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPublicClientConfig not implemented") +} + +func RegisterAuthMetadataServiceServer(s *grpc.Server, srv AuthMetadataServiceServer) { + s.RegisterService(&_AuthMetadataService_serviceDesc, srv) +} + +func _AuthMetadataService_GetOAuth2Metadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OAuth2MetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, req.(*OAuth2MetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AuthMetadataService_GetPublicClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicClientAuthConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, req.(*PublicClientAuthConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _AuthMetadataService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AuthMetadataService", + HandlerType: (*AuthMetadataServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetOAuth2Metadata", + Handler: _AuthMetadataService_GetOAuth2Metadata_Handler, + }, + { + MethodName: "GetPublicClientConfig", + Handler: _AuthMetadataService_GetPublicClientConfig_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/auth.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.gw.go new file mode 100644 index 0000000000..12d485a16a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.gw.go @@ -0,0 +1,140 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/auth.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/proto" + "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" +) + +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray + +func request_AuthMetadataService_GetOAuth2Metadata_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OAuth2MetadataRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetOAuth2Metadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AuthMetadataService_GetPublicClientConfig_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq PublicClientAuthConfigRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetPublicClientConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// RegisterAuthMetadataServiceHandlerFromEndpoint is same as RegisterAuthMetadataServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAuthMetadataServiceHandlerFromEndpoint(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 RegisterAuthMetadataServiceHandler(ctx, mux, conn) +} + +// RegisterAuthMetadataServiceHandler registers the http handlers for service AuthMetadataService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAuthMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAuthMetadataServiceHandlerClient(ctx, mux, NewAuthMetadataServiceClient(conn)) +} + +// RegisterAuthMetadataServiceHandlerClient registers the http handlers for service AuthMetadataService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthMetadataServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthMetadataServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "AuthMetadataServiceClient" to call the correct interceptors. +func RegisterAuthMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthMetadataServiceClient) error { + + mux.Handle("GET", pattern_AuthMetadataService_GetOAuth2Metadata_0, func(w http.ResponseWriter, 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_AuthMetadataService_GetOAuth2Metadata_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AuthMetadataService_GetOAuth2Metadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AuthMetadataService_GetPublicClientConfig_0, func(w http.ResponseWriter, 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_AuthMetadataService_GetPublicClientConfig_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AuthMetadataService_GetPublicClientConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AuthMetadataService_GetOAuth2Metadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{".well-known", "oauth-authorization-server"}, "")) + + pattern_AuthMetadataService_GetPublicClientConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"config", "v1", "flyte_client"}, "")) +) + +var ( + forward_AuthMetadataService_GetOAuth2Metadata_0 = runtime.ForwardResponseMessage + + forward_AuthMetadataService_GetPublicClientConfig_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/auth.swagger.json new file mode 100644 index 0000000000..e3fbf421f3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/auth.swagger.json @@ -0,0 +1,149 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/auth.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/.well-known/oauth-authorization-server": { + "get": { + "summary": "Anonymously accessible. Retrieves local or external oauth authorization server metadata.", + "operationId": "GetOAuth2Metadata", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceOAuth2MetadataResponse" + } + } + }, + "tags": [ + "AuthMetadataService" + ] + } + }, + "/config/v1/flyte_client": { + "get": { + "summary": "Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization\nrequests.", + "operationId": "GetPublicClientConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/servicePublicClientAuthConfigResponse" + } + } + }, + "tags": [ + "AuthMetadataService" + ] + } + } + }, + "definitions": { + "serviceOAuth2MetadataResponse": { + "type": "object", + "properties": { + "issuer": { + "type": "string", + "description": "Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external\nissuer." + }, + "authorization_endpoint": { + "type": "string", + "description": "URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are\nsupported that use the authorization endpoint." + }, + "token_endpoint": { + "type": "string", + "description": "URL of the authorization server's token endpoint [RFC6749]." + }, + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array containing a list of the OAuth 2.0 response_type values that this authorization server supports." + }, + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports." + }, + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of client authentication methods supported by this token endpoint." + }, + "jwks_uri": { + "type": "string", + "description": "URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the\nclient uses to validate signatures from the authorization server." + }, + "code_challenge_methods_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by\nthis authorization server." + }, + "grant_types_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports." + }, + "device_authorization_endpoint": { + "type": "string", + "title": "URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]" + } + }, + "title": "OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata\nas defined in https://tools.ietf.org/html/rfc8414" + }, + "servicePublicClientAuthConfigResponse": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "description": "client_id to use when initiating OAuth2 authorization requests." + }, + "redirect_uri": { + "type": "string", + "description": "redirect uri to use when initiating OAuth2 authorization requests." + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "scopes to request when initiating OAuth2 authorization requests." + }, + "authorization_metadata_key": { + "type": "string", + "description": "Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the\ndefault http `Authorization` header." + }, + "service_http_endpoint": { + "type": "string", + "description": "ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used\nto configure the gRPC connection can be used for the http one respecting the insecure flag to choose between\nSSL or no SSL connections." + }, + "audience": { + "type": "string", + "description": "audience to use when initiating OAuth2 authorization requests." + } + }, + "description": "FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users." + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go new file mode 100644 index 0000000000..c59c3099fe --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go @@ -0,0 +1,928 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/dataproxy.proto + +package service + +import ( + context "context" + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + _ "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 + +// ArtifactType +type ArtifactType int32 + +const ( + // ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. + ArtifactType_ARTIFACT_TYPE_UNDEFINED ArtifactType = 0 + // ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan + // finishes executing. + ArtifactType_ARTIFACT_TYPE_DECK ArtifactType = 1 +) + +var ArtifactType_name = map[int32]string{ + 0: "ARTIFACT_TYPE_UNDEFINED", + 1: "ARTIFACT_TYPE_DECK", +} + +var ArtifactType_value = map[string]int32{ + "ARTIFACT_TYPE_UNDEFINED": 0, + "ARTIFACT_TYPE_DECK": 1, +} + +func (x ArtifactType) String() string { + return proto.EnumName(ArtifactType_name, int32(x)) +} + +func (ArtifactType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{0} +} + +type CreateUploadLocationResponse struct { + // SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + NativeUrl string `protobuf:"bytes,2,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` + // ExpiresAt defines when will the signed URL expires. + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateUploadLocationResponse) Reset() { *m = CreateUploadLocationResponse{} } +func (m *CreateUploadLocationResponse) String() string { return proto.CompactTextString(m) } +func (*CreateUploadLocationResponse) ProtoMessage() {} +func (*CreateUploadLocationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{0} +} + +func (m *CreateUploadLocationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateUploadLocationResponse.Unmarshal(m, b) +} +func (m *CreateUploadLocationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateUploadLocationResponse.Marshal(b, m, deterministic) +} +func (m *CreateUploadLocationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateUploadLocationResponse.Merge(m, src) +} +func (m *CreateUploadLocationResponse) XXX_Size() int { + return xxx_messageInfo_CreateUploadLocationResponse.Size(m) +} +func (m *CreateUploadLocationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateUploadLocationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateUploadLocationResponse proto.InternalMessageInfo + +func (m *CreateUploadLocationResponse) GetSignedUrl() string { + if m != nil { + return m.SignedUrl + } + return "" +} + +func (m *CreateUploadLocationResponse) GetNativeUrl() string { + if m != nil { + return m.NativeUrl + } + return "" +} + +func (m *CreateUploadLocationResponse) GetExpiresAt() *timestamp.Timestamp { + if m != nil { + return m.ExpiresAt + } + return nil +} + +// CreateUploadLocationRequest specified request for the CreateUploadLocation API. +// The implementation in data proxy service will create the s3 location with some server side configured prefixes, +// and then: +// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR +// - project/domain/filename_root (if present)/filename (if present). +type CreateUploadLocationRequest struct { + // Project to create the upload location for + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Domain to create the upload location for. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. + // +optional. By default, the service will generate a consistent name based on the provided parameters. + Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + ExpiresIn *duration.Duration `protobuf:"bytes,4,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` + // ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the + // generated path. + // +required + ContentMd5 []byte `protobuf:"bytes,5,opt,name=content_md5,json=contentMd5,proto3" json:"content_md5,omitempty"` + // If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included + // this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix + // in data proxy config. This option is useful when uploading multiple files. + // +optional + FilenameRoot string `protobuf:"bytes,6,opt,name=filename_root,json=filenameRoot,proto3" json:"filename_root,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateUploadLocationRequest) Reset() { *m = CreateUploadLocationRequest{} } +func (m *CreateUploadLocationRequest) String() string { return proto.CompactTextString(m) } +func (*CreateUploadLocationRequest) ProtoMessage() {} +func (*CreateUploadLocationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{1} +} + +func (m *CreateUploadLocationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateUploadLocationRequest.Unmarshal(m, b) +} +func (m *CreateUploadLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateUploadLocationRequest.Marshal(b, m, deterministic) +} +func (m *CreateUploadLocationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateUploadLocationRequest.Merge(m, src) +} +func (m *CreateUploadLocationRequest) XXX_Size() int { + return xxx_messageInfo_CreateUploadLocationRequest.Size(m) +} +func (m *CreateUploadLocationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateUploadLocationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateUploadLocationRequest proto.InternalMessageInfo + +func (m *CreateUploadLocationRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *CreateUploadLocationRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *CreateUploadLocationRequest) GetFilename() string { + if m != nil { + return m.Filename + } + return "" +} + +func (m *CreateUploadLocationRequest) GetExpiresIn() *duration.Duration { + if m != nil { + return m.ExpiresIn + } + return nil +} + +func (m *CreateUploadLocationRequest) GetContentMd5() []byte { + if m != nil { + return m.ContentMd5 + } + return nil +} + +func (m *CreateUploadLocationRequest) GetFilenameRoot() string { + if m != nil { + return m.FilenameRoot + } + return "" +} + +// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. +// +// Deprecated: Do not use. +type CreateDownloadLocationRequest struct { + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + NativeUrl string `protobuf:"bytes,1,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + ExpiresIn *duration.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDownloadLocationRequest) Reset() { *m = CreateDownloadLocationRequest{} } +func (m *CreateDownloadLocationRequest) String() string { return proto.CompactTextString(m) } +func (*CreateDownloadLocationRequest) ProtoMessage() {} +func (*CreateDownloadLocationRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{2} +} + +func (m *CreateDownloadLocationRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDownloadLocationRequest.Unmarshal(m, b) +} +func (m *CreateDownloadLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDownloadLocationRequest.Marshal(b, m, deterministic) +} +func (m *CreateDownloadLocationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDownloadLocationRequest.Merge(m, src) +} +func (m *CreateDownloadLocationRequest) XXX_Size() int { + return xxx_messageInfo_CreateDownloadLocationRequest.Size(m) +} +func (m *CreateDownloadLocationRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDownloadLocationRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDownloadLocationRequest proto.InternalMessageInfo + +func (m *CreateDownloadLocationRequest) GetNativeUrl() string { + if m != nil { + return m.NativeUrl + } + return "" +} + +func (m *CreateDownloadLocationRequest) GetExpiresIn() *duration.Duration { + if m != nil { + return m.ExpiresIn + } + return nil +} + +// Deprecated: Do not use. +type CreateDownloadLocationResponse struct { + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` + // ExpiresAt defines when will the signed URL expires. + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDownloadLocationResponse) Reset() { *m = CreateDownloadLocationResponse{} } +func (m *CreateDownloadLocationResponse) String() string { return proto.CompactTextString(m) } +func (*CreateDownloadLocationResponse) ProtoMessage() {} +func (*CreateDownloadLocationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{3} +} + +func (m *CreateDownloadLocationResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDownloadLocationResponse.Unmarshal(m, b) +} +func (m *CreateDownloadLocationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDownloadLocationResponse.Marshal(b, m, deterministic) +} +func (m *CreateDownloadLocationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDownloadLocationResponse.Merge(m, src) +} +func (m *CreateDownloadLocationResponse) XXX_Size() int { + return xxx_messageInfo_CreateDownloadLocationResponse.Size(m) +} +func (m *CreateDownloadLocationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDownloadLocationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDownloadLocationResponse proto.InternalMessageInfo + +func (m *CreateDownloadLocationResponse) GetSignedUrl() string { + if m != nil { + return m.SignedUrl + } + return "" +} + +func (m *CreateDownloadLocationResponse) GetExpiresAt() *timestamp.Timestamp { + if m != nil { + return m.ExpiresAt + } + return nil +} + +// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) +type CreateDownloadLinkRequest struct { + // ArtifactType of the artifact requested. + ArtifactType ArtifactType `protobuf:"varint,1,opt,name=artifact_type,json=artifactType,proto3,enum=flyteidl.service.ArtifactType" json:"artifact_type,omitempty"` + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + ExpiresIn *duration.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` + // Types that are valid to be assigned to Source: + // *CreateDownloadLinkRequest_NodeExecutionId + Source isCreateDownloadLinkRequest_Source `protobuf_oneof:"source"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDownloadLinkRequest) Reset() { *m = CreateDownloadLinkRequest{} } +func (m *CreateDownloadLinkRequest) String() string { return proto.CompactTextString(m) } +func (*CreateDownloadLinkRequest) ProtoMessage() {} +func (*CreateDownloadLinkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{4} +} + +func (m *CreateDownloadLinkRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDownloadLinkRequest.Unmarshal(m, b) +} +func (m *CreateDownloadLinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDownloadLinkRequest.Marshal(b, m, deterministic) +} +func (m *CreateDownloadLinkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDownloadLinkRequest.Merge(m, src) +} +func (m *CreateDownloadLinkRequest) XXX_Size() int { + return xxx_messageInfo_CreateDownloadLinkRequest.Size(m) +} +func (m *CreateDownloadLinkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDownloadLinkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDownloadLinkRequest proto.InternalMessageInfo + +func (m *CreateDownloadLinkRequest) GetArtifactType() ArtifactType { + if m != nil { + return m.ArtifactType + } + return ArtifactType_ARTIFACT_TYPE_UNDEFINED +} + +func (m *CreateDownloadLinkRequest) GetExpiresIn() *duration.Duration { + if m != nil { + return m.ExpiresIn + } + return nil +} + +type isCreateDownloadLinkRequest_Source interface { + isCreateDownloadLinkRequest_Source() +} + +type CreateDownloadLinkRequest_NodeExecutionId struct { + NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,3,opt,name=node_execution_id,json=nodeExecutionId,proto3,oneof"` +} + +func (*CreateDownloadLinkRequest_NodeExecutionId) isCreateDownloadLinkRequest_Source() {} + +func (m *CreateDownloadLinkRequest) GetSource() isCreateDownloadLinkRequest_Source { + if m != nil { + return m.Source + } + return nil +} + +func (m *CreateDownloadLinkRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { + if x, ok := m.GetSource().(*CreateDownloadLinkRequest_NodeExecutionId); ok { + return x.NodeExecutionId + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CreateDownloadLinkRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CreateDownloadLinkRequest_NodeExecutionId)(nil), + } +} + +// CreateDownloadLinkResponse defines the response for the generated links +type CreateDownloadLinkResponse struct { + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` // Deprecated: Do not use. + // ExpiresAt defines when will the signed URL expire. + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // Deprecated: Do not use. + // New wrapper object containing the signed urls and expiration time + PreSignedUrls *PreSignedURLs `protobuf:"bytes,3,opt,name=pre_signed_urls,json=preSignedUrls,proto3" json:"pre_signed_urls,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateDownloadLinkResponse) Reset() { *m = CreateDownloadLinkResponse{} } +func (m *CreateDownloadLinkResponse) String() string { return proto.CompactTextString(m) } +func (*CreateDownloadLinkResponse) ProtoMessage() {} +func (*CreateDownloadLinkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{5} +} + +func (m *CreateDownloadLinkResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateDownloadLinkResponse.Unmarshal(m, b) +} +func (m *CreateDownloadLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateDownloadLinkResponse.Marshal(b, m, deterministic) +} +func (m *CreateDownloadLinkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateDownloadLinkResponse.Merge(m, src) +} +func (m *CreateDownloadLinkResponse) XXX_Size() int { + return xxx_messageInfo_CreateDownloadLinkResponse.Size(m) +} +func (m *CreateDownloadLinkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateDownloadLinkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateDownloadLinkResponse proto.InternalMessageInfo + +// Deprecated: Do not use. +func (m *CreateDownloadLinkResponse) GetSignedUrl() []string { + if m != nil { + return m.SignedUrl + } + return nil +} + +// Deprecated: Do not use. +func (m *CreateDownloadLinkResponse) GetExpiresAt() *timestamp.Timestamp { + if m != nil { + return m.ExpiresAt + } + return nil +} + +func (m *CreateDownloadLinkResponse) GetPreSignedUrls() *PreSignedURLs { + if m != nil { + return m.PreSignedUrls + } + return nil +} + +// Wrapper object since the message is shared across this and the GetDataResponse +type PreSignedURLs struct { + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` + // ExpiresAt defines when will the signed URL expire. + ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PreSignedURLs) Reset() { *m = PreSignedURLs{} } +func (m *PreSignedURLs) String() string { return proto.CompactTextString(m) } +func (*PreSignedURLs) ProtoMessage() {} +func (*PreSignedURLs) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{6} +} + +func (m *PreSignedURLs) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PreSignedURLs.Unmarshal(m, b) +} +func (m *PreSignedURLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PreSignedURLs.Marshal(b, m, deterministic) +} +func (m *PreSignedURLs) XXX_Merge(src proto.Message) { + xxx_messageInfo_PreSignedURLs.Merge(m, src) +} +func (m *PreSignedURLs) XXX_Size() int { + return xxx_messageInfo_PreSignedURLs.Size(m) +} +func (m *PreSignedURLs) XXX_DiscardUnknown() { + xxx_messageInfo_PreSignedURLs.DiscardUnknown(m) +} + +var xxx_messageInfo_PreSignedURLs proto.InternalMessageInfo + +func (m *PreSignedURLs) GetSignedUrl() []string { + if m != nil { + return m.SignedUrl + } + return nil +} + +func (m *PreSignedURLs) GetExpiresAt() *timestamp.Timestamp { + if m != nil { + return m.ExpiresAt + } + return nil +} + +// General request artifact to retrieve data from a Flyte artifact url. +type GetDataRequest struct { + // A unique identifier in the form of flyte:// that uniquely, for a given Flyte + // backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.). + // e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) + // flyte://v1/proj/development/execid/n2/i (for node execution input) + // flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) + FlyteUrl string `protobuf:"bytes,1,opt,name=flyte_url,json=flyteUrl,proto3" json:"flyte_url,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDataRequest) Reset() { *m = GetDataRequest{} } +func (m *GetDataRequest) String() string { return proto.CompactTextString(m) } +func (*GetDataRequest) ProtoMessage() {} +func (*GetDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{7} +} + +func (m *GetDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDataRequest.Unmarshal(m, b) +} +func (m *GetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDataRequest.Marshal(b, m, deterministic) +} +func (m *GetDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDataRequest.Merge(m, src) +} +func (m *GetDataRequest) XXX_Size() int { + return xxx_messageInfo_GetDataRequest.Size(m) +} +func (m *GetDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDataRequest proto.InternalMessageInfo + +func (m *GetDataRequest) GetFlyteUrl() string { + if m != nil { + return m.FlyteUrl + } + return "" +} + +type GetDataResponse struct { + // Types that are valid to be assigned to Data: + // *GetDataResponse_LiteralMap + // *GetDataResponse_PreSignedUrls + // *GetDataResponse_Literal + Data isGetDataResponse_Data `protobuf_oneof:"data"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetDataResponse) Reset() { *m = GetDataResponse{} } +func (m *GetDataResponse) String() string { return proto.CompactTextString(m) } +func (*GetDataResponse) ProtoMessage() {} +func (*GetDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_bffb71366d75dab0, []int{8} +} + +func (m *GetDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDataResponse.Unmarshal(m, b) +} +func (m *GetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDataResponse.Marshal(b, m, deterministic) +} +func (m *GetDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDataResponse.Merge(m, src) +} +func (m *GetDataResponse) XXX_Size() int { + return xxx_messageInfo_GetDataResponse.Size(m) +} +func (m *GetDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDataResponse proto.InternalMessageInfo + +type isGetDataResponse_Data interface { + isGetDataResponse_Data() +} + +type GetDataResponse_LiteralMap struct { + LiteralMap *core.LiteralMap `protobuf:"bytes,1,opt,name=literal_map,json=literalMap,proto3,oneof"` +} + +type GetDataResponse_PreSignedUrls struct { + PreSignedUrls *PreSignedURLs `protobuf:"bytes,2,opt,name=pre_signed_urls,json=preSignedUrls,proto3,oneof"` +} + +type GetDataResponse_Literal struct { + Literal *core.Literal `protobuf:"bytes,3,opt,name=literal,proto3,oneof"` +} + +func (*GetDataResponse_LiteralMap) isGetDataResponse_Data() {} + +func (*GetDataResponse_PreSignedUrls) isGetDataResponse_Data() {} + +func (*GetDataResponse_Literal) isGetDataResponse_Data() {} + +func (m *GetDataResponse) GetData() isGetDataResponse_Data { + if m != nil { + return m.Data + } + return nil +} + +func (m *GetDataResponse) GetLiteralMap() *core.LiteralMap { + if x, ok := m.GetData().(*GetDataResponse_LiteralMap); ok { + return x.LiteralMap + } + return nil +} + +func (m *GetDataResponse) GetPreSignedUrls() *PreSignedURLs { + if x, ok := m.GetData().(*GetDataResponse_PreSignedUrls); ok { + return x.PreSignedUrls + } + return nil +} + +func (m *GetDataResponse) GetLiteral() *core.Literal { + if x, ok := m.GetData().(*GetDataResponse_Literal); ok { + return x.Literal + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*GetDataResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*GetDataResponse_LiteralMap)(nil), + (*GetDataResponse_PreSignedUrls)(nil), + (*GetDataResponse_Literal)(nil), + } +} + +func init() { + proto.RegisterEnum("flyteidl.service.ArtifactType", ArtifactType_name, ArtifactType_value) + proto.RegisterType((*CreateUploadLocationResponse)(nil), "flyteidl.service.CreateUploadLocationResponse") + proto.RegisterType((*CreateUploadLocationRequest)(nil), "flyteidl.service.CreateUploadLocationRequest") + proto.RegisterType((*CreateDownloadLocationRequest)(nil), "flyteidl.service.CreateDownloadLocationRequest") + proto.RegisterType((*CreateDownloadLocationResponse)(nil), "flyteidl.service.CreateDownloadLocationResponse") + proto.RegisterType((*CreateDownloadLinkRequest)(nil), "flyteidl.service.CreateDownloadLinkRequest") + proto.RegisterType((*CreateDownloadLinkResponse)(nil), "flyteidl.service.CreateDownloadLinkResponse") + proto.RegisterType((*PreSignedURLs)(nil), "flyteidl.service.PreSignedURLs") + proto.RegisterType((*GetDataRequest)(nil), "flyteidl.service.GetDataRequest") + proto.RegisterType((*GetDataResponse)(nil), "flyteidl.service.GetDataResponse") +} + +func init() { proto.RegisterFile("flyteidl/service/dataproxy.proto", fileDescriptor_bffb71366d75dab0) } + +var fileDescriptor_bffb71366d75dab0 = []byte{ + // 907 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xef, 0xa4, 0x25, 0x6d, 0x5e, 0xd3, 0x3f, 0x8c, 0x56, 0x25, 0xeb, 0x76, 0xdb, 0xac, 0x17, + 0xa1, 0x52, 0xa8, 0x0d, 0x45, 0x2b, 0xd8, 0x15, 0x1c, 0xda, 0x24, 0xbb, 0x8d, 0xe8, 0x56, 0x95, + 0x37, 0x3d, 0xc0, 0xc5, 0x9a, 0xda, 0x93, 0x30, 0xac, 0x33, 0x63, 0xc6, 0x93, 0xd2, 0x4a, 0x88, + 0x03, 0x27, 0xee, 0x1c, 0x38, 0x70, 0xe1, 0xc4, 0x57, 0xe1, 0x03, 0x20, 0xf1, 0x01, 0x10, 0x37, + 0xbe, 0x01, 0x27, 0x64, 0x7b, 0xec, 0xc4, 0x49, 0xda, 0xcd, 0xa2, 0x3d, 0xbe, 0x79, 0x3f, 0xcf, + 0xef, 0xf7, 0x7e, 0xf3, 0xe6, 0x8d, 0xa1, 0xde, 0x0d, 0xae, 0x15, 0x65, 0x7e, 0x60, 0x47, 0x54, + 0x5e, 0x32, 0x8f, 0xda, 0x3e, 0x51, 0x24, 0x94, 0xe2, 0xea, 0xda, 0x0a, 0xa5, 0x50, 0x02, 0xaf, + 0x67, 0x08, 0x4b, 0x23, 0x8c, 0xad, 0x9e, 0x10, 0xbd, 0x80, 0xda, 0x24, 0x64, 0x36, 0xe1, 0x5c, + 0x28, 0xa2, 0x98, 0xe0, 0x51, 0x8a, 0x37, 0xb6, 0x75, 0x36, 0x89, 0x2e, 0x06, 0x5d, 0xdb, 0x1f, + 0xc8, 0x04, 0xa0, 0xf3, 0x3b, 0xe3, 0x79, 0xc5, 0xfa, 0x34, 0x52, 0xa4, 0x1f, 0x66, 0x1b, 0xe4, + 0x92, 0x3c, 0x21, 0xa9, 0xcd, 0x7c, 0xca, 0x15, 0xeb, 0x32, 0x2a, 0x75, 0x7e, 0xab, 0x98, 0x0f, + 0x98, 0xa2, 0x92, 0x04, 0x9a, 0xde, 0xfc, 0x19, 0xc1, 0x56, 0x43, 0x52, 0xa2, 0xe8, 0x79, 0x18, + 0x08, 0xe2, 0x9f, 0x08, 0x2f, 0x61, 0x77, 0x68, 0x14, 0x0a, 0x1e, 0x51, 0x7c, 0x0f, 0x20, 0x62, + 0x3d, 0x4e, 0x7d, 0x77, 0x20, 0x83, 0x1a, 0xaa, 0xa3, 0xdd, 0x8a, 0x53, 0x49, 0x57, 0xce, 0x65, + 0x10, 0xa7, 0x39, 0x51, 0xec, 0x92, 0x26, 0xe9, 0x52, 0x9a, 0x4e, 0x57, 0xe2, 0xf4, 0x23, 0x00, + 0x7a, 0x15, 0x32, 0x49, 0x23, 0x97, 0xa8, 0xda, 0x7c, 0x1d, 0xed, 0x2e, 0x1f, 0x18, 0x56, 0x5a, + 0x92, 0x95, 0x95, 0x64, 0x75, 0xb2, 0x92, 0x9c, 0x8a, 0x46, 0x1f, 0x2a, 0xf3, 0x1f, 0x04, 0x9b, + 0xd3, 0x95, 0x7d, 0x33, 0xa0, 0x91, 0xc2, 0x35, 0x58, 0x0c, 0xa5, 0xf8, 0x9a, 0x7a, 0x4a, 0xab, + 0xca, 0x42, 0xbc, 0x01, 0x65, 0x5f, 0xf4, 0x09, 0xe3, 0x5a, 0x8f, 0x8e, 0xb0, 0x01, 0x4b, 0x5d, + 0x16, 0x50, 0x4e, 0xfa, 0x34, 0x91, 0x52, 0x71, 0xf2, 0x18, 0x7f, 0x32, 0x14, 0xca, 0x78, 0x6d, + 0x21, 0x11, 0x7a, 0x77, 0x42, 0x68, 0x53, 0x9f, 0x4d, 0xae, 0xb3, 0xcd, 0xf1, 0x0e, 0x2c, 0x7b, + 0x82, 0x2b, 0xca, 0x95, 0xdb, 0xf7, 0x1f, 0xd6, 0xde, 0xa8, 0xa3, 0xdd, 0xaa, 0x03, 0x7a, 0xe9, + 0x99, 0xff, 0x10, 0x3f, 0x80, 0x95, 0x8c, 0xc6, 0x95, 0x42, 0xa8, 0x5a, 0x39, 0xe1, 0xae, 0x66, + 0x8b, 0x8e, 0x10, 0xca, 0xfc, 0x0e, 0xee, 0xa5, 0xc5, 0x36, 0xc5, 0xb7, 0x7c, 0x5a, 0xb9, 0x45, + 0xa3, 0xd1, 0xb8, 0xd1, 0x45, 0xfd, 0xa5, 0xd9, 0xf5, 0x3f, 0x2e, 0xd5, 0x90, 0xf9, 0x3d, 0x6c, + 0xdf, 0xc4, 0x3e, 0x5b, 0x1b, 0x14, 0xcf, 0xb9, 0xf4, 0x0a, 0xe7, 0x9c, 0xf0, 0xff, 0x8b, 0xe0, + 0xee, 0x98, 0x00, 0xc6, 0x5f, 0x64, 0xa5, 0x37, 0x60, 0x85, 0x48, 0xc5, 0xba, 0xc4, 0x53, 0xae, + 0xba, 0x0e, 0x69, 0x42, 0xbf, 0x7a, 0xb0, 0x6d, 0x8d, 0x5f, 0x35, 0xeb, 0x50, 0xc3, 0x3a, 0xd7, + 0x21, 0x75, 0xaa, 0x64, 0x24, 0xfa, 0xff, 0x06, 0xe1, 0x0e, 0xbc, 0xc9, 0x85, 0x4f, 0x5d, 0x7a, + 0x45, 0xbd, 0x41, 0x9c, 0x74, 0x99, 0xaf, 0x5b, 0xf9, 0x9d, 0xa1, 0x84, 0xf8, 0x72, 0x59, 0xa7, + 0xc2, 0xa7, 0xad, 0x0c, 0xd6, 0xce, 0x6f, 0xe2, 0xf1, 0x9c, 0xb3, 0xc6, 0x8b, 0xa9, 0xa3, 0x25, + 0x28, 0x47, 0x62, 0x20, 0x3d, 0x6a, 0xfe, 0x8e, 0xc0, 0x98, 0x56, 0xbc, 0x76, 0xfe, 0xfe, 0x98, + 0xf3, 0xf3, 0xbb, 0x95, 0xa3, 0x52, 0x0d, 0x8d, 0xba, 0xff, 0xd9, 0xab, 0xb9, 0x9f, 0x7e, 0x9e, + 0x9f, 0x00, 0x7e, 0x0a, 0x6b, 0xa1, 0xa4, 0xee, 0x90, 0x25, 0xd2, 0xe5, 0xed, 0x4c, 0x3a, 0x7c, + 0x26, 0xe9, 0xf3, 0x94, 0xd7, 0x39, 0x89, 0x9c, 0x95, 0x30, 0x0f, 0x65, 0x10, 0x99, 0x0c, 0x56, + 0x0a, 0xf9, 0x89, 0xae, 0x99, 0x7f, 0x5d, 0x5d, 0x63, 0xee, 0xc3, 0xea, 0x53, 0xaa, 0x9a, 0x44, + 0x91, 0xac, 0x4b, 0x36, 0xa1, 0x92, 0xa8, 0x1d, 0x69, 0xd0, 0xa5, 0x64, 0xe1, 0x5c, 0x06, 0xe6, + 0x9f, 0x08, 0xd6, 0x72, 0xbc, 0x36, 0xf6, 0x53, 0x58, 0xd6, 0xc3, 0xd0, 0xed, 0x93, 0x30, 0xf9, + 0x24, 0x6e, 0x89, 0xe2, 0x89, 0x9e, 0xa4, 0x88, 0x67, 0x24, 0x3c, 0x9e, 0x73, 0x20, 0xc8, 0x23, + 0xdc, 0x9e, 0x34, 0xad, 0x34, 0x93, 0x69, 0xc7, 0x73, 0x63, 0xb6, 0xe1, 0x03, 0x58, 0xd4, 0x1b, + 0x6b, 0xdf, 0x37, 0xa6, 0x8b, 0x38, 0x9e, 0x73, 0x32, 0xe0, 0x51, 0x19, 0x16, 0xe2, 0x97, 0x67, + 0xaf, 0x01, 0xd5, 0xd1, 0xa6, 0xc7, 0x9b, 0xf0, 0xd6, 0xa1, 0xd3, 0x69, 0x3f, 0x39, 0x6c, 0x74, + 0xdc, 0xce, 0x17, 0x67, 0x2d, 0xf7, 0xfc, 0xb4, 0xd9, 0x7a, 0xd2, 0x3e, 0x6d, 0x35, 0xd7, 0xe7, + 0xf0, 0x06, 0xe0, 0x62, 0xb2, 0xd9, 0x6a, 0x7c, 0xbe, 0x8e, 0x0e, 0xfe, 0x5a, 0x80, 0xf5, 0xd8, + 0x9a, 0xb3, 0xf8, 0x1d, 0x7b, 0x9e, 0x8a, 0xc6, 0xbf, 0x22, 0xb8, 0x33, 0x6d, 0xfe, 0xe2, 0xfd, + 0xc9, 0x02, 0x6f, 0x99, 0xd3, 0x86, 0x35, 0x2b, 0x3c, 0x3d, 0x16, 0xf3, 0xdd, 0x1f, 0xfe, 0xf8, + 0xfb, 0xa7, 0xd2, 0x03, 0x73, 0x3b, 0x79, 0x30, 0x2f, 0x3f, 0x1c, 0xbe, 0xb0, 0x76, 0x3e, 0x05, + 0x06, 0x92, 0x3f, 0x46, 0x7b, 0xf8, 0x37, 0x04, 0x1b, 0xd3, 0xe7, 0x16, 0xb6, 0x6f, 0x62, 0xbd, + 0x61, 0xbe, 0x1a, 0x1f, 0xcc, 0xfe, 0x41, 0x41, 0x68, 0x1d, 0xbf, 0x44, 0xe8, 0x8f, 0x25, 0x84, + 0x7f, 0x41, 0x80, 0x27, 0xaf, 0x38, 0x7e, 0xef, 0xa5, 0x9c, 0xc3, 0x29, 0x68, 0xbc, 0x3f, 0x1b, + 0x58, 0x8b, 0xdb, 0x4b, 0xc4, 0xbd, 0x6d, 0xee, 0xdc, 0x22, 0x2e, 0x60, 0xfc, 0x45, 0x6c, 0xa3, + 0x0f, 0x8b, 0xfa, 0x6e, 0xe0, 0xfa, 0x24, 0x49, 0xf1, 0x9a, 0x19, 0xf7, 0x6f, 0x41, 0x68, 0xee, + 0x3b, 0x09, 0xf7, 0x2a, 0xae, 0x8e, 0x72, 0x1f, 0x3d, 0xfa, 0xf2, 0xe3, 0x1e, 0x53, 0x5f, 0x0d, + 0x2e, 0x2c, 0x4f, 0xf4, 0xed, 0x64, 0x13, 0x21, 0x7b, 0x76, 0xfe, 0x77, 0xd2, 0xa3, 0xdc, 0x0e, + 0x2f, 0xf6, 0x7b, 0xc2, 0x1e, 0xff, 0xc7, 0xba, 0x28, 0x27, 0xb3, 0xe0, 0xa3, 0xff, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x31, 0x6c, 0xda, 0xe4, 0x7e, 0x09, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// DataProxyServiceClient is the client API for DataProxyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DataProxyServiceClient interface { + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) + GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) +} + +type dataProxyServiceClient struct { + cc *grpc.ClientConn +} + +func NewDataProxyServiceClient(cc *grpc.ClientConn) DataProxyServiceClient { + return &dataProxyServiceClient{cc} +} + +func (c *dataProxyServiceClient) CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) { + out := new(CreateUploadLocationResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/CreateUploadLocation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. +func (c *dataProxyServiceClient) CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) { + out := new(CreateDownloadLocationResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/CreateDownloadLocation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataProxyServiceClient) CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) { + out := new(CreateDownloadLinkResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/CreateDownloadLink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataProxyServiceClient) GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) { + out := new(GetDataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/GetData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DataProxyServiceServer is the server API for DataProxyService service. +type DataProxyServiceServer interface { + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + CreateUploadLocation(context.Context, *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLocation(context.Context, *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLink(context.Context, *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) + GetData(context.Context, *GetDataRequest) (*GetDataResponse, error) +} + +// UnimplementedDataProxyServiceServer can be embedded to have forward compatible implementations. +type UnimplementedDataProxyServiceServer struct { +} + +func (*UnimplementedDataProxyServiceServer) CreateUploadLocation(ctx context.Context, req *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUploadLocation not implemented") +} +func (*UnimplementedDataProxyServiceServer) CreateDownloadLocation(ctx context.Context, req *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLocation not implemented") +} +func (*UnimplementedDataProxyServiceServer) CreateDownloadLink(ctx context.Context, req *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLink not implemented") +} +func (*UnimplementedDataProxyServiceServer) GetData(ctx context.Context, req *GetDataRequest) (*GetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetData not implemented") +} + +func RegisterDataProxyServiceServer(s *grpc.Server, srv DataProxyServiceServer) { + s.RegisterService(&_DataProxyService_serviceDesc, srv) +} + +func _DataProxyService_CreateUploadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUploadLocationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.DataProxyService/CreateUploadLocation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, req.(*CreateUploadLocationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataProxyService_CreateDownloadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDownloadLocationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.DataProxyService/CreateDownloadLocation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, req.(*CreateDownloadLocationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataProxyService_CreateDownloadLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDownloadLinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.DataProxyService/CreateDownloadLink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, req.(*CreateDownloadLinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataProxyService_GetData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).GetData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.DataProxyService/GetData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).GetData(ctx, req.(*GetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _DataProxyService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.DataProxyService", + HandlerType: (*DataProxyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateUploadLocation", + Handler: _DataProxyService_CreateUploadLocation_Handler, + }, + { + MethodName: "CreateDownloadLocation", + Handler: _DataProxyService_CreateDownloadLocation_Handler, + }, + { + MethodName: "CreateDownloadLink", + Handler: _DataProxyService_CreateDownloadLink_Handler, + }, + { + MethodName: "GetData", + Handler: _DataProxyService_GetData_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/dataproxy.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.gw.go new file mode 100644 index 0000000000..c11d941745 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.gw.go @@ -0,0 +1,244 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/dataproxy.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/proto" + "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" +) + +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray + +func request_DataProxyService_CreateUploadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateUploadLocationRequest + 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.CreateUploadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_DataProxyService_CreateDownloadLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_DataProxyService_CreateDownloadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateDownloadLocationRequest + 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_DataProxyService_CreateDownloadLocation_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateDownloadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_DataProxyService_CreateDownloadLink_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreateDownloadLinkRequest + 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.CreateDownloadLink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_DataProxyService_GetData_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_DataProxyService_GetData_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetDataRequest + 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_DataProxyService_GetData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// RegisterDataProxyServiceHandlerFromEndpoint is same as RegisterDataProxyServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterDataProxyServiceHandlerFromEndpoint(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 RegisterDataProxyServiceHandler(ctx, mux, conn) +} + +// RegisterDataProxyServiceHandler registers the http handlers for service DataProxyService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterDataProxyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterDataProxyServiceHandlerClient(ctx, mux, NewDataProxyServiceClient(conn)) +} + +// RegisterDataProxyServiceHandlerClient registers the http handlers for service DataProxyService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DataProxyServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DataProxyServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "DataProxyServiceClient" to call the correct interceptors. +func RegisterDataProxyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DataProxyServiceClient) error { + + mux.Handle("POST", pattern_DataProxyService_CreateUploadLocation_0, func(w http.ResponseWriter, 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_DataProxyService_CreateUploadLocation_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateUploadLocation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_DataProxyService_CreateDownloadLocation_0, func(w http.ResponseWriter, 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_DataProxyService_CreateDownloadLocation_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateDownloadLocation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_DataProxyService_CreateDownloadLink_0, func(w http.ResponseWriter, 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_DataProxyService_CreateDownloadLink_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateDownloadLink_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_DataProxyService_GetData_0, func(w http.ResponseWriter, 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_DataProxyService_GetData_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_GetData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_DataProxyService_CreateUploadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) + + pattern_DataProxyService_CreateDownloadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) + + pattern_DataProxyService_CreateDownloadLink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_link"}, "")) + + pattern_DataProxyService_GetData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "data"}, "")) +) + +var ( + forward_DataProxyService_CreateUploadLocation_0 = runtime.ForwardResponseMessage + + forward_DataProxyService_CreateDownloadLocation_0 = runtime.ForwardResponseMessage + + forward_DataProxyService_CreateDownloadLink_0 = runtime.ForwardResponseMessage + + forward_DataProxyService_GetData_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.swagger.json new file mode 100644 index 0000000000..973243441c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.swagger.json @@ -0,0 +1,787 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/dataproxy.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/data": { + "get": { + "operationId": "GetData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceGetDataResponse" + } + } + }, + "parameters": [ + { + "name": "flyte_url", + "description": "A unique identifier in the form of flyte://\u003csomething\u003e that uniquely, for a given Flyte\nbackend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).\ne.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)\n flyte://v1/proj/development/execid/n2/i (for node execution input)\n flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node).", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "DataProxyService" + ] + } + }, + "/api/v1/dataproxy/artifact_link": { + "post": { + "summary": "CreateDownloadLocation creates a signed url to download artifacts.", + "operationId": "CreateDownloadLink", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceCreateDownloadLinkResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/serviceCreateDownloadLinkRequest" + } + } + ], + "tags": [ + "DataProxyService" + ] + } + }, + "/api/v1/dataproxy/artifact_urn": { + "get": { + "summary": "CreateDownloadLocation creates a signed url to download artifacts.", + "operationId": "CreateDownloadLocation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceCreateDownloadLocationResponse" + } + } + }, + "parameters": [ + { + "name": "native_url", + "description": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar).", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "expires_in", + "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "DataProxyService" + ] + }, + "post": { + "summary": "CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain.", + "operationId": "CreateUploadLocation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceCreateUploadLocationResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/serviceCreateUploadLocationRequest" + } + } + ], + "tags": [ + "DataProxyService" + ] + } + } + }, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/coreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "$ref": "#/definitions/protobufStruct", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreNodeExecutionIdentifier": { + "type": "object", + "properties": { + "node_id": { + "type": "string" + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "Encapsulation of fields that identify a Flyte node execution entity." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean", + "format": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/coreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "$ref": "#/definitions/protobufStruct" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "$ref": "#/definitions/protobufStruct", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "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." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + }, + "serviceArtifactType": { + "type": "string", + "enum": [ + "ARTIFACT_TYPE_UNDEFINED", + "ARTIFACT_TYPE_DECK" + ], + "default": "ARTIFACT_TYPE_UNDEFINED", + "description": "- ARTIFACT_TYPE_UNDEFINED: ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.\n - ARTIFACT_TYPE_DECK: ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan\nfinishes executing.", + "title": "ArtifactType" + }, + "serviceCreateDownloadLinkRequest": { + "type": "object", + "properties": { + "artifact_type": { + "$ref": "#/definitions/serviceArtifactType", + "description": "ArtifactType of the artifact requested." + }, + "expires_in": { + "type": "string", + "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." + }, + "node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "description": "NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the\nmost recent attempt of the task." + } + }, + "title": "CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)" + }, + "serviceCreateDownloadLinkResponse": { + "type": "object", + "properties": { + "signed_url": { + "type": "array", + "items": { + "type": "string" + }, + "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expire." + }, + "pre_signed_urls": { + "$ref": "#/definitions/servicePreSignedURLs", + "title": "New wrapper object containing the signed urls and expiration time" + } + }, + "title": "CreateDownloadLinkResponse defines the response for the generated links" + }, + "serviceCreateDownloadLocationResponse": { + "type": "object", + "properties": { + "signed_url": { + "type": "string", + "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expires." + } + } + }, + "serviceCreateUploadLocationRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "Project to create the upload location for\n+required" + }, + "domain": { + "type": "string", + "title": "Domain to create the upload location for.\n+required" + }, + "filename": { + "type": "string", + "description": "Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.\n+optional. By default, the service will generate a consistent name based on the provided parameters." + }, + "expires_in": { + "type": "string", + "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." + }, + "content_md5": { + "type": "string", + "format": "byte", + "title": "ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the\ngenerated path.\n+required" + }, + "filename_root": { + "type": "string", + "title": "If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included\nthis makes the upload location deterministic. The native url will still be prefixed by the upload location prefix\nin data proxy config. This option is useful when uploading multiple files.\n+optional" + } + }, + "description": "CreateUploadLocationRequest specified request for the CreateUploadLocation API.\nThe implementation in data proxy service will create the s3 location with some server side configured prefixes,\nand then:\n - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR\n - project/domain/filename_root (if present)/filename (if present)." + }, + "serviceCreateUploadLocationResponse": { + "type": "object", + "properties": { + "signed_url": { + "type": "string", + "title": "SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "native_url": { + "type": "string", + "title": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expires." + } + } + }, + "serviceGetDataResponse": { + "type": "object", + "properties": { + "literal_map": { + "$ref": "#/definitions/coreLiteralMap", + "title": "literal map data will be returned" + }, + "pre_signed_urls": { + "$ref": "#/definitions/servicePreSignedURLs", + "title": "Flyte deck html will be returned as a signed url users can download" + }, + "literal": { + "$ref": "#/definitions/coreLiteral", + "description": "Single literal will be returned. This is returned when the user/url requests a specific output or input\nby name. See the o3 example above." + } + } + }, + "servicePreSignedURLs": { + "type": "object", + "properties": { + "signed_url": { + "type": "array", + "items": { + "type": "string" + }, + "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expire." + } + }, + "title": "Wrapper object since the message is shared across this and the GetDataResponse" + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go new file mode 100644 index 0000000000..ad06a4df4e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go @@ -0,0 +1,570 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/external_plugin_service.proto + +package service + +import ( + context "context" + fmt "fmt" + core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core" + proto "github.com/golang/protobuf/proto" + 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 + +// The state of the execution is used to control its visibility in the UI/CLI. +type State int32 // Deprecated: Do not use. +const ( + State_RETRYABLE_FAILURE State = 0 + State_PERMANENT_FAILURE State = 1 + State_PENDING State = 2 + State_RUNNING State = 3 + State_SUCCEEDED State = 4 +) + +var State_name = map[int32]string{ + 0: "RETRYABLE_FAILURE", + 1: "PERMANENT_FAILURE", + 2: "PENDING", + 3: "RUNNING", + 4: "SUCCEEDED", +} + +var State_value = map[string]int32{ + "RETRYABLE_FAILURE": 0, + "PERMANENT_FAILURE": 1, + "PENDING": 2, + "RUNNING": 3, + "SUCCEEDED": 4, +} + +func (x State) String() string { + return proto.EnumName(State_name, int32(x)) +} + +func (State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_74cbdb08eef5b1d1, []int{0} +} + +// Represents a request structure to create task. +// +// Deprecated: Do not use. +type TaskCreateRequest struct { + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskCreateRequest) Reset() { *m = TaskCreateRequest{} } +func (m *TaskCreateRequest) String() string { return proto.CompactTextString(m) } +func (*TaskCreateRequest) ProtoMessage() {} +func (*TaskCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_74cbdb08eef5b1d1, []int{0} +} + +func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskCreateRequest.Unmarshal(m, b) +} +func (m *TaskCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskCreateRequest.Marshal(b, m, deterministic) +} +func (m *TaskCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskCreateRequest.Merge(m, src) +} +func (m *TaskCreateRequest) XXX_Size() int { + return xxx_messageInfo_TaskCreateRequest.Size(m) +} +func (m *TaskCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskCreateRequest proto.InternalMessageInfo + +func (m *TaskCreateRequest) GetInputs() *core.LiteralMap { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *TaskCreateRequest) GetTemplate() *core.TaskTemplate { + if m != nil { + return m.Template + } + return nil +} + +func (m *TaskCreateRequest) GetOutputPrefix() string { + if m != nil { + return m.OutputPrefix + } + return "" +} + +// Represents a create response structure. +// +// Deprecated: Do not use. +type TaskCreateResponse struct { + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskCreateResponse) Reset() { *m = TaskCreateResponse{} } +func (m *TaskCreateResponse) String() string { return proto.CompactTextString(m) } +func (*TaskCreateResponse) ProtoMessage() {} +func (*TaskCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_74cbdb08eef5b1d1, []int{1} +} + +func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskCreateResponse.Unmarshal(m, b) +} +func (m *TaskCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskCreateResponse.Marshal(b, m, deterministic) +} +func (m *TaskCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskCreateResponse.Merge(m, src) +} +func (m *TaskCreateResponse) XXX_Size() int { + return xxx_messageInfo_TaskCreateResponse.Size(m) +} +func (m *TaskCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskCreateResponse proto.InternalMessageInfo + +func (m *TaskCreateResponse) GetJobId() string { + if m != nil { + return m.JobId + } + return "" +} + +// A message used to fetch a job state from backend plugin server. +// +// Deprecated: Do not use. +type TaskGetRequest struct { + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // The unique id identifying the job. + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskGetRequest) Reset() { *m = TaskGetRequest{} } +func (m *TaskGetRequest) String() string { return proto.CompactTextString(m) } +func (*TaskGetRequest) ProtoMessage() {} +func (*TaskGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_74cbdb08eef5b1d1, []int{2} +} + +func (m *TaskGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskGetRequest.Unmarshal(m, b) +} +func (m *TaskGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskGetRequest.Marshal(b, m, deterministic) +} +func (m *TaskGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskGetRequest.Merge(m, src) +} +func (m *TaskGetRequest) XXX_Size() int { + return xxx_messageInfo_TaskGetRequest.Size(m) +} +func (m *TaskGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskGetRequest proto.InternalMessageInfo + +func (m *TaskGetRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *TaskGetRequest) GetJobId() string { + if m != nil { + return m.JobId + } + return "" +} + +// Response to get an individual task state. +// +// Deprecated: Do not use. +type TaskGetResponse struct { + // The state of the execution is used to control its visibility in the UI/CLI. + State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.service.State" json:"state,omitempty"` + // The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a + // Structured dataset pointing to the query result table. + // +optional + Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskGetResponse) Reset() { *m = TaskGetResponse{} } +func (m *TaskGetResponse) String() string { return proto.CompactTextString(m) } +func (*TaskGetResponse) ProtoMessage() {} +func (*TaskGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_74cbdb08eef5b1d1, []int{3} +} + +func (m *TaskGetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskGetResponse.Unmarshal(m, b) +} +func (m *TaskGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskGetResponse.Marshal(b, m, deterministic) +} +func (m *TaskGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskGetResponse.Merge(m, src) +} +func (m *TaskGetResponse) XXX_Size() int { + return xxx_messageInfo_TaskGetResponse.Size(m) +} +func (m *TaskGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskGetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskGetResponse proto.InternalMessageInfo + +func (m *TaskGetResponse) GetState() State { + if m != nil { + return m.State + } + return State_RETRYABLE_FAILURE +} + +func (m *TaskGetResponse) GetOutputs() *core.LiteralMap { + if m != nil { + return m.Outputs + } + return nil +} + +// A message used to delete a task. +// +// Deprecated: Do not use. +type TaskDeleteRequest struct { + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // The unique id identifying the job. + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskDeleteRequest) Reset() { *m = TaskDeleteRequest{} } +func (m *TaskDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*TaskDeleteRequest) ProtoMessage() {} +func (*TaskDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_74cbdb08eef5b1d1, []int{4} +} + +func (m *TaskDeleteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskDeleteRequest.Unmarshal(m, b) +} +func (m *TaskDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskDeleteRequest.Marshal(b, m, deterministic) +} +func (m *TaskDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskDeleteRequest.Merge(m, src) +} +func (m *TaskDeleteRequest) XXX_Size() int { + return xxx_messageInfo_TaskDeleteRequest.Size(m) +} +func (m *TaskDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskDeleteRequest proto.InternalMessageInfo + +func (m *TaskDeleteRequest) GetTaskType() string { + if m != nil { + return m.TaskType + } + return "" +} + +func (m *TaskDeleteRequest) GetJobId() string { + if m != nil { + return m.JobId + } + return "" +} + +// Response to delete a task. +// +// Deprecated: Do not use. +type TaskDeleteResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskDeleteResponse) Reset() { *m = TaskDeleteResponse{} } +func (m *TaskDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*TaskDeleteResponse) ProtoMessage() {} +func (*TaskDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_74cbdb08eef5b1d1, []int{5} +} + +func (m *TaskDeleteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskDeleteResponse.Unmarshal(m, b) +} +func (m *TaskDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskDeleteResponse.Marshal(b, m, deterministic) +} +func (m *TaskDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskDeleteResponse.Merge(m, src) +} +func (m *TaskDeleteResponse) XXX_Size() int { + return xxx_messageInfo_TaskDeleteResponse.Size(m) +} +func (m *TaskDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskDeleteResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("flyteidl.service.State", State_name, State_value) + proto.RegisterType((*TaskCreateRequest)(nil), "flyteidl.service.TaskCreateRequest") + proto.RegisterType((*TaskCreateResponse)(nil), "flyteidl.service.TaskCreateResponse") + proto.RegisterType((*TaskGetRequest)(nil), "flyteidl.service.TaskGetRequest") + proto.RegisterType((*TaskGetResponse)(nil), "flyteidl.service.TaskGetResponse") + proto.RegisterType((*TaskDeleteRequest)(nil), "flyteidl.service.TaskDeleteRequest") + proto.RegisterType((*TaskDeleteResponse)(nil), "flyteidl.service.TaskDeleteResponse") +} + +func init() { + proto.RegisterFile("flyteidl/service/external_plugin_service.proto", fileDescriptor_74cbdb08eef5b1d1) +} + +var fileDescriptor_74cbdb08eef5b1d1 = []byte{ + // 540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x6e, 0xda, 0x40, + 0x10, 0xad, 0x9d, 0x26, 0x84, 0x49, 0x93, 0x92, 0x95, 0x50, 0x1d, 0xd2, 0x4a, 0x94, 0xf4, 0x10, + 0x55, 0x8a, 0xad, 0x92, 0x43, 0xd4, 0xde, 0x08, 0xb8, 0x14, 0x95, 0x58, 0xc8, 0xc0, 0xa1, 0x55, + 0x24, 0xcb, 0x86, 0x81, 0x3a, 0x71, 0xec, 0xad, 0xbd, 0xae, 0xc2, 0x1f, 0xf4, 0x53, 0xf2, 0x99, + 0xd5, 0xee, 0xda, 0x0e, 0x90, 0x96, 0x43, 0x8f, 0x9e, 0x79, 0xf3, 0x66, 0xde, 0x9b, 0x59, 0x83, + 0x3e, 0x0b, 0x16, 0x0c, 0xfd, 0x69, 0x60, 0x24, 0x18, 0xff, 0xf2, 0x27, 0x68, 0xe0, 0x3d, 0xc3, + 0x38, 0x74, 0x03, 0x87, 0x06, 0xe9, 0xdc, 0x0f, 0x9d, 0x2c, 0xae, 0xd3, 0x38, 0x62, 0x11, 0xa9, + 0xe4, 0x78, 0x3d, 0x8b, 0xd7, 0x5e, 0x17, 0x0c, 0x93, 0x28, 0x46, 0x23, 0xf0, 0x19, 0xc6, 0x6e, + 0x90, 0x48, 0x7c, 0xed, 0x68, 0x35, 0xcb, 0xdc, 0xe4, 0x36, 0x4f, 0xbd, 0x59, 0x4d, 0xf9, 0x21, + 0xc3, 0x78, 0xe6, 0xe6, 0x9d, 0x1a, 0x0f, 0x0a, 0x1c, 0x8e, 0xdc, 0xe4, 0xb6, 0x1d, 0xa3, 0xcb, + 0xd0, 0xc6, 0x9f, 0x29, 0x26, 0x8c, 0x7c, 0x80, 0x1d, 0x3f, 0xa4, 0x29, 0x4b, 0x34, 0xa5, 0xae, + 0x9c, 0xee, 0x35, 0x8f, 0x0a, 0x01, 0x3a, 0x67, 0xd1, 0xfb, 0xb2, 0xfd, 0x95, 0x4b, 0xed, 0x0c, + 0x48, 0x2e, 0x60, 0x97, 0xe1, 0x1d, 0x0d, 0x5c, 0x86, 0x9a, 0x2a, 0x8a, 0x8e, 0xd7, 0x8a, 0x78, + 0x9b, 0x51, 0x06, 0xb1, 0x0b, 0x30, 0x39, 0x81, 0xfd, 0x28, 0x65, 0x34, 0x65, 0x0e, 0x8d, 0x71, + 0xe6, 0xdf, 0x6b, 0x5b, 0x75, 0xe5, 0xb4, 0x6c, 0xbf, 0x90, 0xc1, 0x81, 0x88, 0x7d, 0x52, 0x35, + 0xa5, 0x61, 0x00, 0x59, 0x9e, 0x34, 0xa1, 0x51, 0x98, 0x20, 0xa9, 0xc2, 0xce, 0x4d, 0xe4, 0x39, + 0xfe, 0x54, 0x8c, 0x5a, 0xb6, 0xb7, 0x6f, 0x22, 0xaf, 0x37, 0x15, 0x05, 0x5f, 0xe0, 0x80, 0x17, + 0x74, 0x91, 0xe5, 0xba, 0x8e, 0xa1, 0xcc, 0xbd, 0x71, 0xd8, 0x82, 0x62, 0x86, 0xdf, 0xe5, 0x81, + 0xd1, 0x82, 0x2e, 0x33, 0xa9, 0xeb, 0x4c, 0x0b, 0x78, 0x59, 0x30, 0x65, 0x7d, 0xcf, 0x60, 0x3b, + 0x61, 0x5c, 0x2c, 0xa7, 0x39, 0x68, 0xbe, 0xd2, 0xd7, 0x57, 0xa6, 0x0f, 0x79, 0xda, 0x96, 0x28, + 0x72, 0x0e, 0x25, 0x29, 0x28, 0xc9, 0xdc, 0xd9, 0x60, 0x69, 0x8e, 0x14, 0xad, 0xbf, 0xca, 0xfd, + 0x74, 0x30, 0xc0, 0xc7, 0xfd, 0xfc, 0xaf, 0x0e, 0x4d, 0x5a, 0x98, 0x93, 0x49, 0x29, 0x3c, 0xf3, + 0xde, 0x83, 0x6d, 0x31, 0x2f, 0xa9, 0xc2, 0xa1, 0x6d, 0x8e, 0xec, 0x6f, 0xad, 0xcb, 0xbe, 0xe9, + 0x7c, 0x6e, 0xf5, 0xfa, 0x63, 0xdb, 0xac, 0x3c, 0xe3, 0xe1, 0x81, 0x69, 0x5f, 0xb5, 0x2c, 0xd3, + 0x1a, 0x15, 0x61, 0x85, 0xec, 0x41, 0x69, 0x60, 0x5a, 0x9d, 0x9e, 0xd5, 0xad, 0xa8, 0xfc, 0xc3, + 0x1e, 0x5b, 0x16, 0xff, 0xd8, 0x22, 0xfb, 0x50, 0x1e, 0x8e, 0xdb, 0x6d, 0xd3, 0xec, 0x98, 0x9d, + 0xca, 0xf3, 0x9a, 0xaa, 0x29, 0xcd, 0x07, 0x15, 0xaa, 0x66, 0x76, 0xf7, 0x03, 0x71, 0xf6, 0x43, + 0x69, 0x15, 0xb9, 0x06, 0x90, 0x6b, 0xe5, 0xd3, 0x91, 0x93, 0xa7, 0x5e, 0x3e, 0x39, 0xd1, 0xda, + 0xbb, 0xcd, 0x20, 0x29, 0xad, 0xb1, 0xf5, 0x5b, 0x55, 0xc8, 0x10, 0x4a, 0x5d, 0x64, 0x82, 0xba, + 0xfe, 0xf7, 0xaa, 0xc7, 0x13, 0xa9, 0xbd, 0xdd, 0x80, 0x58, 0x26, 0xbd, 0x06, 0x90, 0x36, 0x6e, + 0x1a, 0x79, 0x65, 0x6b, 0xff, 0x1a, 0x79, 0x75, 0x1b, 0x82, 0xfd, 0xf2, 0xe3, 0xf7, 0x8b, 0xb9, + 0xcf, 0x7e, 0xa4, 0x9e, 0x3e, 0x89, 0xee, 0x0c, 0x51, 0x16, 0xc5, 0x73, 0xa3, 0x78, 0xcb, 0x73, + 0x0c, 0x0d, 0xea, 0x9d, 0xcd, 0x23, 0x63, 0xfd, 0xcf, 0xe2, 0xed, 0x88, 0x87, 0x7d, 0xfe, 0x27, + 0x00, 0x00, 0xff, 0xff, 0x1c, 0x25, 0x84, 0x2b, 0x74, 0x04, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// ExternalPluginServiceClient is the client API for ExternalPluginService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ExternalPluginServiceClient interface { + // Send a task create request to the backend plugin server. + CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) + // Get job status. + GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) + // Delete the task resource. + DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) +} + +type externalPluginServiceClient struct { + cc *grpc.ClientConn +} + +func NewExternalPluginServiceClient(cc *grpc.ClientConn) ExternalPluginServiceClient { + return &externalPluginServiceClient{cc} +} + +// Deprecated: Do not use. +func (c *externalPluginServiceClient) CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) { + out := new(TaskCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/CreateTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. +func (c *externalPluginServiceClient) GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) { + out := new(TaskGetResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/GetTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. +func (c *externalPluginServiceClient) DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) { + out := new(TaskDeleteResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/DeleteTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ExternalPluginServiceServer is the server API for ExternalPluginService service. +type ExternalPluginServiceServer interface { + // Send a task create request to the backend plugin server. + CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) + // Get job status. + GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) + // Delete the task resource. + DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) +} + +// UnimplementedExternalPluginServiceServer can be embedded to have forward compatible implementations. +type UnimplementedExternalPluginServiceServer struct { +} + +func (*UnimplementedExternalPluginServiceServer) CreateTask(ctx context.Context, req *TaskCreateRequest) (*TaskCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") +} +func (*UnimplementedExternalPluginServiceServer) GetTask(ctx context.Context, req *TaskGetRequest) (*TaskGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") +} +func (*UnimplementedExternalPluginServiceServer) DeleteTask(ctx context.Context, req *TaskDeleteRequest) (*TaskDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") +} + +func RegisterExternalPluginServiceServer(s *grpc.Server, srv ExternalPluginServiceServer) { + s.RegisterService(&_ExternalPluginService_serviceDesc, srv) +} + +func _ExternalPluginService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TaskCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalPluginServiceServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.ExternalPluginService/CreateTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalPluginServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalPluginService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TaskGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalPluginServiceServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.ExternalPluginService/GetTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalPluginServiceServer).GetTask(ctx, req.(*TaskGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalPluginService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TaskDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalPluginServiceServer).DeleteTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.ExternalPluginService/DeleteTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalPluginServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ExternalPluginService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.ExternalPluginService", + HandlerType: (*ExternalPluginServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTask", + Handler: _ExternalPluginService_CreateTask_Handler, + }, + { + MethodName: "GetTask", + Handler: _ExternalPluginService_GetTask_Handler, + }, + { + MethodName: "DeleteTask", + Handler: _ExternalPluginService_DeleteTask_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/external_plugin_service.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json new file mode 100644 index 0000000000..bb0e406339 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json @@ -0,0 +1,1158 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/external_plugin_service.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "ContainerArchitecture": { + "type": "string", + "enum": [ + "UNKNOWN", + "AMD64", + "ARM64", + "ARM_V6", + "ARM_V7" + ], + "default": "UNKNOWN", + "description": "Architecture-type the container image supports." + }, + "DataLoadingConfigLiteralMapFormat": { + "type": "string", + "enum": [ + "JSON", + "YAML", + "PROTO" + ], + "default": "JSON", + "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", + "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" + }, + "IOStrategyDownloadMode": { + "type": "string", + "enum": [ + "DOWNLOAD_EAGER", + "DOWNLOAD_STREAM", + "DO_NOT_DOWNLOAD" + ], + "default": "DOWNLOAD_EAGER", + "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", + "title": "Mode to use for downloading" + }, + "IOStrategyUploadMode": { + "type": "string", + "enum": [ + "UPLOAD_ON_EXIT", + "UPLOAD_EAGER", + "DO_NOT_UPLOAD" + ], + "default": "UPLOAD_ON_EXIT", + "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", + "title": "Mode to use for uploading" + }, + "ResourcesResourceEntry": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ResourcesResourceName", + "description": "Resource name." + }, + "value": { + "type": "string", + "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + } + }, + "description": "Encapsulates a resource name and value." + }, + "ResourcesResourceName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU", + "GPU", + "MEMORY", + "STORAGE", + "EPHEMERAL_STORAGE" + ], + "default": "UNKNOWN", + "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." + }, + "RuntimeMetadataRuntimeType": { + "type": "string", + "enum": [ + "OTHER", + "FLYTE_SDK" + ], + "default": "OTHER" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SecretMountType": { + "type": "string", + "enum": [ + "ANY", + "ENV_VAR", + "FILE" + ], + "default": "ANY", + "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." + }, + "SqlDialect": { + "type": "string", + "enum": [ + "UNDEFINED", + "ANSI", + "HIVE", + "OTHER" + ], + "default": "UNDEFINED", + "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreContainer": { + "type": "object", + "properties": { + "image": { + "type": "string", + "title": "Container image url. Eg: docker/redis:latest" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." + }, + "resources": { + "$ref": "#/definitions/coreResources", + "description": "Container resources requirement as specified by the container engine." + }, + "env": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." + }, + "ports": { + "type": "array", + "items": { + "$ref": "#/definitions/coreContainerPort" + }, + "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + }, + "architecture": { + "$ref": "#/definitions/ContainerArchitecture" + } + } + }, + "coreContainerPort": { + "type": "object", + "properties": { + "container_port": { + "type": "integer", + "format": "int64", + "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." + } + }, + "description": "Defines port properties for a container." + }, + "coreDataLoadingConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "format": "boolean", + "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" + }, + "input_path": { + "type": "string", + "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" + }, + "output_path": { + "type": "string", + "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" + }, + "format": { + "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", + "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" + }, + "io_strategy": { + "$ref": "#/definitions/coreIOStrategy" + } + }, + "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." + }, + "coreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreIOStrategy": { + "type": "object", + "properties": { + "download_mode": { + "$ref": "#/definitions/IOStrategyDownloadMode", + "title": "Mode to use to manage downloads" + }, + "upload_mode": { + "$ref": "#/definitions/IOStrategyUploadMode", + "title": "Mode to use to manage uploads" + } + }, + "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" + }, + "coreIdentifier": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifier corresponds to." + }, + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User provided value for the resource." + }, + "version": { + "type": "string", + "description": "Specific version of the resource." + } + }, + "description": "Encapsulation of fields that uniquely identifies a Flyte resource." + }, + "coreIdentity": { + "type": "object", + "properties": { + "iam_role": { + "type": "string", + "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." + }, + "k8s_service_account": { + "type": "string", + "description": "k8s_service_account references a kubernetes service account to impersonate." + }, + "oauth2_client": { + "$ref": "#/definitions/coreOAuth2Client", + "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." + }, + "execution_identity": { + "type": "string", + "title": "execution_identity references the subject who makes the execution" + } + }, + "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." + }, + "coreK8sObjectMetadata": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels to add to the pod definition." + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional annotations to add to the pod definition." + } + }, + "description": "Metadata for building a kubernetes object when a task is executed." + }, + "coreK8sPod": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreK8sObjectMetadata", + "description": "Contains additional metadata for building a kubernetes pod." + }, + "pod_spec": { + "$ref": "#/definitions/protobufStruct", + "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + } + }, + "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." + }, + "coreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/coreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "$ref": "#/definitions/protobufStruct", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreOAuth2Client": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" + }, + "client_secret": { + "$ref": "#/definitions/coreSecret", + "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" + } + }, + "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." + }, + "coreOAuth2TokenRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" + }, + "type": { + "$ref": "#/definitions/coreOAuth2TokenRequestType", + "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" + }, + "client": { + "$ref": "#/definitions/coreOAuth2Client", + "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" + }, + "idp_discovery_endpoint": { + "type": "string", + "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" + }, + "token_endpoint": { + "type": "string", + "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" + } + }, + "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." + }, + "coreOAuth2TokenRequestType": { + "type": "string", + "enum": [ + "CLIENT_CREDENTIALS" + ], + "default": "CLIENT_CREDENTIALS", + "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean", + "format": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreResourceType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED", + "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" + }, + "coreResources": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." + } + }, + "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." + }, + "coreRetryStrategy": { + "type": "object", + "properties": { + "retries": { + "type": "integer", + "format": "int64", + "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." + } + }, + "description": "Retry strategy associated with an executable unit." + }, + "coreRuntimeMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/RuntimeMetadataRuntimeType", + "description": "Type of runtime." + }, + "version": { + "type": "string", + "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." + }, + "flavor": { + "type": "string", + "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + } + }, + "description": "Runtime information. This is loosely defined to allow for extensibility." + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/coreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "$ref": "#/definitions/protobufStruct" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSecret": { + "type": "object", + "properties": { + "group": { + "type": "string", + "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" + }, + "group_version": { + "type": "string", + "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" + }, + "key": { + "type": "string", + "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" + }, + "mount_requirement": { + "$ref": "#/definitions/SecretMountType", + "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" + } + }, + "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." + }, + "coreSecurityContext": { + "type": "object", + "properties": { + "run_as": { + "$ref": "#/definitions/coreIdentity", + "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/coreSecret" + }, + "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + }, + "tokens": { + "type": "array", + "items": { + "$ref": "#/definitions/coreOAuth2TokenRequest" + }, + "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + } + }, + "description": "SecurityContext holds security attributes that apply to tasks." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreSql": { + "type": "object", + "properties": { + "statement": { + "type": "string", + "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" + }, + "dialect": { + "$ref": "#/definitions/SqlDialect" + } + }, + "description": "Sql represents a generic sql workload with a statement and dialect." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTaskMetadata": { + "type": "object", + "properties": { + "discoverable": { + "type": "boolean", + "format": "boolean", + "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + }, + "runtime": { + "$ref": "#/definitions/coreRuntimeMetadata", + "description": "Runtime information about the task." + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task including user-triggered retries." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "discovery_version": { + "type": "string", + "description": "Indicates a logical version to apply to this task for the purpose of discovery." + }, + "deprecated_error_message": { + "type": "string", + "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." + }, + "interruptible": { + "type": "boolean", + "format": "boolean" + }, + "cache_serializable": { + "type": "boolean", + "format": "boolean", + "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + }, + "generates_deck": { + "type": "boolean", + "format": "boolean", + "description": "Indicates whether the task will generate a Deck URI when it finishes executing." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + }, + "pod_template_name": { + "type": "string", + "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." + } + }, + "title": "Task Metadata" + }, + "coreTaskTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + }, + "type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." + }, + "metadata": { + "$ref": "#/definitions/coreTaskMetadata", + "description": "Extra metadata about the task." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." + }, + "custom": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data about the task. This is extensible to allow various plugins in the system." + }, + "container": { + "$ref": "#/definitions/coreContainer" + }, + "k8s_pod": { + "$ref": "#/definitions/coreK8sPod" + }, + "sql": { + "$ref": "#/definitions/coreSql" + }, + "task_type_version": { + "type": "integer", + "format": "int32", + "description": "This can be used to customize task handling at execution time for the same task type." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "security_context encapsulates security attributes requested to run this task." + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" + } + }, + "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "$ref": "#/definitions/protobufStruct", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreTypedInterface": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreVariableMap" + }, + "outputs": { + "$ref": "#/definitions/coreVariableMap" + } + }, + "description": "Defines strongly typed inputs and outputs." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVariable": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Variable literal type." + }, + "description": { + "type": "string", + "title": "+optional string describing input variable" + } + }, + "description": "Defines a strongly typed variable." + }, + "coreVariableMap": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreVariable" + }, + "description": "Defines a map of variable names to variables." + } + }, + "title": "A map of Variables" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "flyteidlserviceState": { + "type": "string", + "enum": [ + "RETRYABLE_FAILURE", + "PERMANENT_FAILURE", + "PENDING", + "RUNNING", + "SUCCEEDED" + ], + "default": "RETRYABLE_FAILURE", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "flyteidlserviceTaskCreateResponse": { + "type": "object", + "properties": { + "job_id": { + "type": "string" + } + }, + "description": "Represents a create response structure." + }, + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "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." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + }, + "serviceTaskDeleteResponse": { + "type": "object", + "description": "Response to delete a task." + }, + "serviceTaskGetResponse": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/flyteidlserviceState", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "outputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a\nStructured dataset pointing to the query result table.\n+optional" + } + }, + "description": "Response to get an individual task state." + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore new file mode 100644 index 0000000000..daf913b1b3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore new file mode 100644 index 0000000000..c5fa491b4c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION new file mode 100644 index 0000000000..6cecc1a68f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.6-SNAPSHOT \ No newline at end of file diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml new file mode 100644 index 0000000000..f5cb2ce9a5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md new file mode 100644 index 0000000000..27c6c30b87 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md @@ -0,0 +1,360 @@ +# Go API client for flyteadmin + +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +## Overview +This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. + +- API version: version not set +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.GoClientCodegen + +## Installation +Put the package under your project folder and add the following in import: +```golang +import "./flyteadmin" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdminServiceApi* | [**CreateExecution**](docs/AdminServiceApi.md#createexecution) | **Post** /api/v1/executions | Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` +*AdminServiceApi* | [**CreateLaunchPlan**](docs/AdminServiceApi.md#createlaunchplan) | **Post** /api/v1/launch_plans | Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition +*AdminServiceApi* | [**CreateNodeEvent**](docs/AdminServiceApi.md#createnodeevent) | **Post** /api/v1/events/nodes | Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. +*AdminServiceApi* | [**CreateTask**](docs/AdminServiceApi.md#createtask) | **Post** /api/v1/tasks | Create and upload a :ref:`ref_flyteidl.admin.Task` definition +*AdminServiceApi* | [**CreateTaskEvent**](docs/AdminServiceApi.md#createtaskevent) | **Post** /api/v1/events/tasks | Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. +*AdminServiceApi* | [**CreateWorkflow**](docs/AdminServiceApi.md#createworkflow) | **Post** /api/v1/workflows | Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition +*AdminServiceApi* | [**CreateWorkflowEvent**](docs/AdminServiceApi.md#createworkflowevent) | **Post** /api/v1/events/workflows | Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. +*AdminServiceApi* | [**DeleteProjectAttributes**](docs/AdminServiceApi.md#deleteprojectattributes) | **Delete** /api/v1/project_attributes/{project} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**DeleteProjectDomainAttributes**](docs/AdminServiceApi.md#deleteprojectdomainattributes) | **Delete** /api/v1/project_domain_attributes/{project}/{domain} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**DeleteWorkflowAttributes**](docs/AdminServiceApi.md#deleteworkflowattributes) | **Delete** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. +*AdminServiceApi* | [**GetActiveLaunchPlan**](docs/AdminServiceApi.md#getactivelaunchplan) | **Get** /api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name} | Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. +*AdminServiceApi* | [**GetDescriptionEntity**](docs/AdminServiceApi.md#getdescriptionentity) | **Get** /api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. +*AdminServiceApi* | [**GetExecution**](docs/AdminServiceApi.md#getexecution) | **Get** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Fetches a :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**GetExecutionData**](docs/AdminServiceApi.md#getexecutiondata) | **Get** /api/v1/data/executions/{id.project}/{id.domain}/{id.name} | Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**GetExecutionMetrics**](docs/AdminServiceApi.md#getexecutionmetrics) | **Get** /api/v1/metrics/executions/{id.project}/{id.domain}/{id.name} | Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**GetLaunchPlan**](docs/AdminServiceApi.md#getlaunchplan) | **Get** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. +*AdminServiceApi* | [**GetNamedEntity**](docs/AdminServiceApi.md#getnamedentity) | **Get** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. +*AdminServiceApi* | [**GetNodeExecution**](docs/AdminServiceApi.md#getnodeexecution) | **Get** /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. +*AdminServiceApi* | [**GetNodeExecutionData**](docs/AdminServiceApi.md#getnodeexecutiondata) | **Get** /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. +*AdminServiceApi* | [**GetProjectAttributes**](docs/AdminServiceApi.md#getprojectattributes) | **Get** /api/v1/project_attributes/{project} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**GetProjectDomainAttributes**](docs/AdminServiceApi.md#getprojectdomainattributes) | **Get** /api/v1/project_domain_attributes/{project}/{domain} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**GetTask**](docs/AdminServiceApi.md#gettask) | **Get** /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Task` definition. +*AdminServiceApi* | [**GetTaskExecution**](docs/AdminServiceApi.md#gettaskexecution) | **Get** /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**GetTaskExecutionData**](docs/AdminServiceApi.md#gettaskexecutiondata) | **Get** /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**GetVersion**](docs/AdminServiceApi.md#getversion) | **Get** /api/v1/version | +*AdminServiceApi* | [**GetWorkflow**](docs/AdminServiceApi.md#getworkflow) | **Get** /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. +*AdminServiceApi* | [**GetWorkflowAttributes**](docs/AdminServiceApi.md#getworkflowattributes) | **Get** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. +*AdminServiceApi* | [**ListActiveLaunchPlans**](docs/AdminServiceApi.md#listactivelaunchplans) | **Get** /api/v1/active_launch_plans/{project}/{domain} | List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. +*AdminServiceApi* | [**ListDescriptionEntities**](docs/AdminServiceApi.md#listdescriptionentities) | **Get** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. +*AdminServiceApi* | [**ListDescriptionEntities2**](docs/AdminServiceApi.md#listdescriptionentities2) | **Get** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. +*AdminServiceApi* | [**ListExecutions**](docs/AdminServiceApi.md#listexecutions) | **Get** /api/v1/executions/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**ListLaunchPlanIds**](docs/AdminServiceApi.md#listlaunchplanids) | **Get** /api/v1/launch_plan_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. +*AdminServiceApi* | [**ListLaunchPlans**](docs/AdminServiceApi.md#listlaunchplans) | **Get** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. +*AdminServiceApi* | [**ListLaunchPlans2**](docs/AdminServiceApi.md#listlaunchplans2) | **Get** /api/v1/launch_plans/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. +*AdminServiceApi* | [**ListMatchableAttributes**](docs/AdminServiceApi.md#listmatchableattributes) | **Get** /api/v1/matchable_attributes | Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. +*AdminServiceApi* | [**ListNamedEntities**](docs/AdminServiceApi.md#listnamedentities) | **Get** /api/v1/named_entities/{resource_type}/{project}/{domain} | Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. +*AdminServiceApi* | [**ListNodeExecutions**](docs/AdminServiceApi.md#listnodeexecutions) | **Get** /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. +*AdminServiceApi* | [**ListNodeExecutionsForTask**](docs/AdminServiceApi.md#listnodeexecutionsfortask) | **Get** /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**ListProjects**](docs/AdminServiceApi.md#listprojects) | **Get** /api/v1/projects | Fetches a list of :ref:`ref_flyteidl.admin.Project` +*AdminServiceApi* | [**ListTaskExecutions**](docs/AdminServiceApi.md#listtaskexecutions) | **Get** /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} | Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**ListTaskIds**](docs/AdminServiceApi.md#listtaskids) | **Get** /api/v1/task_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. +*AdminServiceApi* | [**ListTasks**](docs/AdminServiceApi.md#listtasks) | **Get** /api/v1/tasks/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. +*AdminServiceApi* | [**ListTasks2**](docs/AdminServiceApi.md#listtasks2) | **Get** /api/v1/tasks/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. +*AdminServiceApi* | [**ListWorkflowIds**](docs/AdminServiceApi.md#listworkflowids) | **Get** /api/v1/workflow_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. +*AdminServiceApi* | [**ListWorkflows**](docs/AdminServiceApi.md#listworkflows) | **Get** /api/v1/workflows/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. +*AdminServiceApi* | [**ListWorkflows2**](docs/AdminServiceApi.md#listworkflows2) | **Get** /api/v1/workflows/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. +*AdminServiceApi* | [**RecoverExecution**](docs/AdminServiceApi.md#recoverexecution) | **Post** /api/v1/executions/recover | Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. +*AdminServiceApi* | [**RegisterProject**](docs/AdminServiceApi.md#registerproject) | **Post** /api/v1/projects | Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. +*AdminServiceApi* | [**RelaunchExecution**](docs/AdminServiceApi.md#relaunchexecution) | **Post** /api/v1/executions/relaunch | Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` +*AdminServiceApi* | [**TerminateExecution**](docs/AdminServiceApi.md#terminateexecution) | **Delete** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**UpdateExecution**](docs/AdminServiceApi.md#updateexecution) | **Put** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**UpdateLaunchPlan**](docs/AdminServiceApi.md#updatelaunchplan) | **Put** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. +*AdminServiceApi* | [**UpdateNamedEntity**](docs/AdminServiceApi.md#updatenamedentity) | **Put** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. +*AdminServiceApi* | [**UpdateProject**](docs/AdminServiceApi.md#updateproject) | **Put** /api/v1/projects/{id} | Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. +*AdminServiceApi* | [**UpdateProjectAttributes**](docs/AdminServiceApi.md#updateprojectattributes) | **Put** /api/v1/project_attributes/{attributes.project} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level +*AdminServiceApi* | [**UpdateProjectDomainAttributes**](docs/AdminServiceApi.md#updateprojectdomainattributes) | **Put** /api/v1/project_domain_attributes/{attributes.project}/{attributes.domain} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**UpdateWorkflowAttributes**](docs/AdminServiceApi.md#updateworkflowattributes) | **Put** /api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + + +## Documentation For Models + + - [AdminAbortMetadata](docs/AdminAbortMetadata.md) + - [AdminAnnotations](docs/AdminAnnotations.md) + - [AdminAuth](docs/AdminAuth.md) + - [AdminAuthRole](docs/AdminAuthRole.md) + - [AdminClusterAssignment](docs/AdminClusterAssignment.md) + - [AdminClusterResourceAttributes](docs/AdminClusterResourceAttributes.md) + - [AdminCronSchedule](docs/AdminCronSchedule.md) + - [AdminDescription](docs/AdminDescription.md) + - [AdminDescriptionEntity](docs/AdminDescriptionEntity.md) + - [AdminDescriptionEntityList](docs/AdminDescriptionEntityList.md) + - [AdminDescriptionFormat](docs/AdminDescriptionFormat.md) + - [AdminDomain](docs/AdminDomain.md) + - [AdminEmailNotification](docs/AdminEmailNotification.md) + - [AdminEnvs](docs/AdminEnvs.md) + - [AdminExecution](docs/AdminExecution.md) + - [AdminExecutionClosure](docs/AdminExecutionClosure.md) + - [AdminExecutionClusterLabel](docs/AdminExecutionClusterLabel.md) + - [AdminExecutionCreateRequest](docs/AdminExecutionCreateRequest.md) + - [AdminExecutionCreateResponse](docs/AdminExecutionCreateResponse.md) + - [AdminExecutionList](docs/AdminExecutionList.md) + - [AdminExecutionMetadata](docs/AdminExecutionMetadata.md) + - [AdminExecutionQueueAttributes](docs/AdminExecutionQueueAttributes.md) + - [AdminExecutionRecoverRequest](docs/AdminExecutionRecoverRequest.md) + - [AdminExecutionRelaunchRequest](docs/AdminExecutionRelaunchRequest.md) + - [AdminExecutionSpec](docs/AdminExecutionSpec.md) + - [AdminExecutionState](docs/AdminExecutionState.md) + - [AdminExecutionStateChangeDetails](docs/AdminExecutionStateChangeDetails.md) + - [AdminExecutionTerminateRequest](docs/AdminExecutionTerminateRequest.md) + - [AdminExecutionTerminateResponse](docs/AdminExecutionTerminateResponse.md) + - [AdminExecutionUpdateRequest](docs/AdminExecutionUpdateRequest.md) + - [AdminExecutionUpdateResponse](docs/AdminExecutionUpdateResponse.md) + - [AdminFixedRate](docs/AdminFixedRate.md) + - [AdminFixedRateUnit](docs/AdminFixedRateUnit.md) + - [AdminFlyteUrLs](docs/AdminFlyteUrLs.md) + - [AdminGetVersionResponse](docs/AdminGetVersionResponse.md) + - [AdminLabels](docs/AdminLabels.md) + - [AdminLaunchPlan](docs/AdminLaunchPlan.md) + - [AdminLaunchPlanClosure](docs/AdminLaunchPlanClosure.md) + - [AdminLaunchPlanCreateRequest](docs/AdminLaunchPlanCreateRequest.md) + - [AdminLaunchPlanCreateResponse](docs/AdminLaunchPlanCreateResponse.md) + - [AdminLaunchPlanList](docs/AdminLaunchPlanList.md) + - [AdminLaunchPlanMetadata](docs/AdminLaunchPlanMetadata.md) + - [AdminLaunchPlanSpec](docs/AdminLaunchPlanSpec.md) + - [AdminLaunchPlanState](docs/AdminLaunchPlanState.md) + - [AdminLaunchPlanUpdateRequest](docs/AdminLaunchPlanUpdateRequest.md) + - [AdminLaunchPlanUpdateResponse](docs/AdminLaunchPlanUpdateResponse.md) + - [AdminListMatchableAttributesResponse](docs/AdminListMatchableAttributesResponse.md) + - [AdminLiteralMapBlob](docs/AdminLiteralMapBlob.md) + - [AdminMatchableAttributesConfiguration](docs/AdminMatchableAttributesConfiguration.md) + - [AdminMatchableResource](docs/AdminMatchableResource.md) + - [AdminMatchingAttributes](docs/AdminMatchingAttributes.md) + - [AdminNamedEntity](docs/AdminNamedEntity.md) + - [AdminNamedEntityIdentifier](docs/AdminNamedEntityIdentifier.md) + - [AdminNamedEntityIdentifierList](docs/AdminNamedEntityIdentifierList.md) + - [AdminNamedEntityList](docs/AdminNamedEntityList.md) + - [AdminNamedEntityMetadata](docs/AdminNamedEntityMetadata.md) + - [AdminNamedEntityState](docs/AdminNamedEntityState.md) + - [AdminNamedEntityUpdateRequest](docs/AdminNamedEntityUpdateRequest.md) + - [AdminNamedEntityUpdateResponse](docs/AdminNamedEntityUpdateResponse.md) + - [AdminNodeExecutionClosure](docs/AdminNodeExecutionClosure.md) + - [AdminNodeExecutionEventRequest](docs/AdminNodeExecutionEventRequest.md) + - [AdminNodeExecutionEventResponse](docs/AdminNodeExecutionEventResponse.md) + - [AdminNodeExecutionGetDataResponse](docs/AdminNodeExecutionGetDataResponse.md) + - [AdminNodeExecutionList](docs/AdminNodeExecutionList.md) + - [AdminNodeExecutionMetaData](docs/AdminNodeExecutionMetaData.md) + - [AdminNotification](docs/AdminNotification.md) + - [AdminNotificationList](docs/AdminNotificationList.md) + - [AdminPagerDutyNotification](docs/AdminPagerDutyNotification.md) + - [AdminPluginOverride](docs/AdminPluginOverride.md) + - [AdminPluginOverrides](docs/AdminPluginOverrides.md) + - [AdminProject](docs/AdminProject.md) + - [AdminProjectAttributes](docs/AdminProjectAttributes.md) + - [AdminProjectAttributesDeleteRequest](docs/AdminProjectAttributesDeleteRequest.md) + - [AdminProjectAttributesDeleteResponse](docs/AdminProjectAttributesDeleteResponse.md) + - [AdminProjectAttributesGetResponse](docs/AdminProjectAttributesGetResponse.md) + - [AdminProjectAttributesUpdateRequest](docs/AdminProjectAttributesUpdateRequest.md) + - [AdminProjectAttributesUpdateResponse](docs/AdminProjectAttributesUpdateResponse.md) + - [AdminProjectDomainAttributes](docs/AdminProjectDomainAttributes.md) + - [AdminProjectDomainAttributesDeleteRequest](docs/AdminProjectDomainAttributesDeleteRequest.md) + - [AdminProjectDomainAttributesDeleteResponse](docs/AdminProjectDomainAttributesDeleteResponse.md) + - [AdminProjectDomainAttributesGetResponse](docs/AdminProjectDomainAttributesGetResponse.md) + - [AdminProjectDomainAttributesUpdateRequest](docs/AdminProjectDomainAttributesUpdateRequest.md) + - [AdminProjectDomainAttributesUpdateResponse](docs/AdminProjectDomainAttributesUpdateResponse.md) + - [AdminProjectRegisterRequest](docs/AdminProjectRegisterRequest.md) + - [AdminProjectRegisterResponse](docs/AdminProjectRegisterResponse.md) + - [AdminProjectUpdateResponse](docs/AdminProjectUpdateResponse.md) + - [AdminProjects](docs/AdminProjects.md) + - [AdminRawOutputDataConfig](docs/AdminRawOutputDataConfig.md) + - [AdminReason](docs/AdminReason.md) + - [AdminSchedule](docs/AdminSchedule.md) + - [AdminSlackNotification](docs/AdminSlackNotification.md) + - [AdminSort](docs/AdminSort.md) + - [AdminSourceCode](docs/AdminSourceCode.md) + - [AdminSystemMetadata](docs/AdminSystemMetadata.md) + - [AdminTask](docs/AdminTask.md) + - [AdminTaskClosure](docs/AdminTaskClosure.md) + - [AdminTaskExecutionClosure](docs/AdminTaskExecutionClosure.md) + - [AdminTaskExecutionEventRequest](docs/AdminTaskExecutionEventRequest.md) + - [AdminTaskExecutionEventResponse](docs/AdminTaskExecutionEventResponse.md) + - [AdminTaskExecutionGetDataResponse](docs/AdminTaskExecutionGetDataResponse.md) + - [AdminTaskExecutionList](docs/AdminTaskExecutionList.md) + - [AdminTaskList](docs/AdminTaskList.md) + - [AdminTaskResourceAttributes](docs/AdminTaskResourceAttributes.md) + - [AdminTaskResourceSpec](docs/AdminTaskResourceSpec.md) + - [AdminTaskSpec](docs/AdminTaskSpec.md) + - [AdminUrlBlob](docs/AdminUrlBlob.md) + - [AdminVersion](docs/AdminVersion.md) + - [AdminWorkflow](docs/AdminWorkflow.md) + - [AdminWorkflowAttributes](docs/AdminWorkflowAttributes.md) + - [AdminWorkflowAttributesDeleteRequest](docs/AdminWorkflowAttributesDeleteRequest.md) + - [AdminWorkflowAttributesDeleteResponse](docs/AdminWorkflowAttributesDeleteResponse.md) + - [AdminWorkflowAttributesGetResponse](docs/AdminWorkflowAttributesGetResponse.md) + - [AdminWorkflowAttributesUpdateRequest](docs/AdminWorkflowAttributesUpdateRequest.md) + - [AdminWorkflowAttributesUpdateResponse](docs/AdminWorkflowAttributesUpdateResponse.md) + - [AdminWorkflowClosure](docs/AdminWorkflowClosure.md) + - [AdminWorkflowCreateRequest](docs/AdminWorkflowCreateRequest.md) + - [AdminWorkflowCreateResponse](docs/AdminWorkflowCreateResponse.md) + - [AdminWorkflowExecutionConfig](docs/AdminWorkflowExecutionConfig.md) + - [AdminWorkflowExecutionEventRequest](docs/AdminWorkflowExecutionEventRequest.md) + - [AdminWorkflowExecutionEventResponse](docs/AdminWorkflowExecutionEventResponse.md) + - [AdminWorkflowExecutionGetDataResponse](docs/AdminWorkflowExecutionGetDataResponse.md) + - [AdminWorkflowExecutionGetMetricsResponse](docs/AdminWorkflowExecutionGetMetricsResponse.md) + - [AdminWorkflowList](docs/AdminWorkflowList.md) + - [AdminWorkflowSpec](docs/AdminWorkflowSpec.md) + - [BlobTypeBlobDimensionality](docs/BlobTypeBlobDimensionality.md) + - [CatalogReservationStatus](docs/CatalogReservationStatus.md) + - [ComparisonExpressionOperator](docs/ComparisonExpressionOperator.md) + - [ConjunctionExpressionLogicalOperator](docs/ConjunctionExpressionLogicalOperator.md) + - [ConnectionSetIdList](docs/ConnectionSetIdList.md) + - [ContainerArchitecture](docs/ContainerArchitecture.md) + - [CoreAlias](docs/CoreAlias.md) + - [CoreApproveCondition](docs/CoreApproveCondition.md) + - [CoreArrayNode](docs/CoreArrayNode.md) + - [CoreBinary](docs/CoreBinary.md) + - [CoreBinding](docs/CoreBinding.md) + - [CoreBindingData](docs/CoreBindingData.md) + - [CoreBindingDataCollection](docs/CoreBindingDataCollection.md) + - [CoreBindingDataMap](docs/CoreBindingDataMap.md) + - [CoreBlob](docs/CoreBlob.md) + - [CoreBlobMetadata](docs/CoreBlobMetadata.md) + - [CoreBlobType](docs/CoreBlobType.md) + - [CoreBooleanExpression](docs/CoreBooleanExpression.md) + - [CoreBranchNode](docs/CoreBranchNode.md) + - [CoreCatalogArtifactTag](docs/CoreCatalogArtifactTag.md) + - [CoreCatalogCacheStatus](docs/CoreCatalogCacheStatus.md) + - [CoreCatalogMetadata](docs/CoreCatalogMetadata.md) + - [CoreComparisonExpression](docs/CoreComparisonExpression.md) + - [CoreCompiledTask](docs/CoreCompiledTask.md) + - [CoreCompiledWorkflow](docs/CoreCompiledWorkflow.md) + - [CoreCompiledWorkflowClosure](docs/CoreCompiledWorkflowClosure.md) + - [CoreConjunctionExpression](docs/CoreConjunctionExpression.md) + - [CoreConnectionSet](docs/CoreConnectionSet.md) + - [CoreContainer](docs/CoreContainer.md) + - [CoreContainerPort](docs/CoreContainerPort.md) + - [CoreDataLoadingConfig](docs/CoreDataLoadingConfig.md) + - [CoreEnumType](docs/CoreEnumType.md) + - [CoreError](docs/CoreError.md) + - [CoreExecutionError](docs/CoreExecutionError.md) + - [CoreGateNode](docs/CoreGateNode.md) + - [CoreIdentifier](docs/CoreIdentifier.md) + - [CoreIdentity](docs/CoreIdentity.md) + - [CoreIfBlock](docs/CoreIfBlock.md) + - [CoreIfElseBlock](docs/CoreIfElseBlock.md) + - [CoreIoStrategy](docs/CoreIoStrategy.md) + - [CoreK8sObjectMetadata](docs/CoreK8sObjectMetadata.md) + - [CoreK8sPod](docs/CoreK8sPod.md) + - [CoreKeyValuePair](docs/CoreKeyValuePair.md) + - [CoreLiteral](docs/CoreLiteral.md) + - [CoreLiteralCollection](docs/CoreLiteralCollection.md) + - [CoreLiteralMap](docs/CoreLiteralMap.md) + - [CoreLiteralType](docs/CoreLiteralType.md) + - [CoreNode](docs/CoreNode.md) + - [CoreNodeExecutionIdentifier](docs/CoreNodeExecutionIdentifier.md) + - [CoreNodeExecutionPhase](docs/CoreNodeExecutionPhase.md) + - [CoreNodeMetadata](docs/CoreNodeMetadata.md) + - [CoreOAuth2Client](docs/CoreOAuth2Client.md) + - [CoreOAuth2TokenRequest](docs/CoreOAuth2TokenRequest.md) + - [CoreOAuth2TokenRequestType](docs/CoreOAuth2TokenRequestType.md) + - [CoreOperand](docs/CoreOperand.md) + - [CoreOutputReference](docs/CoreOutputReference.md) + - [CoreParameter](docs/CoreParameter.md) + - [CoreParameterMap](docs/CoreParameterMap.md) + - [CorePrimitive](docs/CorePrimitive.md) + - [CoreQualityOfService](docs/CoreQualityOfService.md) + - [CoreQualityOfServiceSpec](docs/CoreQualityOfServiceSpec.md) + - [CoreResourceType](docs/CoreResourceType.md) + - [CoreResources](docs/CoreResources.md) + - [CoreRetryStrategy](docs/CoreRetryStrategy.md) + - [CoreRuntimeMetadata](docs/CoreRuntimeMetadata.md) + - [CoreScalar](docs/CoreScalar.md) + - [CoreSchema](docs/CoreSchema.md) + - [CoreSchemaType](docs/CoreSchemaType.md) + - [CoreSecret](docs/CoreSecret.md) + - [CoreSecurityContext](docs/CoreSecurityContext.md) + - [CoreSignalCondition](docs/CoreSignalCondition.md) + - [CoreSimpleType](docs/CoreSimpleType.md) + - [CoreSleepCondition](docs/CoreSleepCondition.md) + - [CoreSpan](docs/CoreSpan.md) + - [CoreSql](docs/CoreSql.md) + - [CoreStructuredDataset](docs/CoreStructuredDataset.md) + - [CoreStructuredDatasetMetadata](docs/CoreStructuredDatasetMetadata.md) + - [CoreStructuredDatasetType](docs/CoreStructuredDatasetType.md) + - [CoreTaskExecutionIdentifier](docs/CoreTaskExecutionIdentifier.md) + - [CoreTaskExecutionPhase](docs/CoreTaskExecutionPhase.md) + - [CoreTaskLog](docs/CoreTaskLog.md) + - [CoreTaskMetadata](docs/CoreTaskMetadata.md) + - [CoreTaskNode](docs/CoreTaskNode.md) + - [CoreTaskNodeOverrides](docs/CoreTaskNodeOverrides.md) + - [CoreTaskTemplate](docs/CoreTaskTemplate.md) + - [CoreTypeAnnotation](docs/CoreTypeAnnotation.md) + - [CoreTypeStructure](docs/CoreTypeStructure.md) + - [CoreTypedInterface](docs/CoreTypedInterface.md) + - [CoreUnion](docs/CoreUnion.md) + - [CoreUnionInfo](docs/CoreUnionInfo.md) + - [CoreUnionType](docs/CoreUnionType.md) + - [CoreVariable](docs/CoreVariable.md) + - [CoreVariableMap](docs/CoreVariableMap.md) + - [CoreVoid](docs/CoreVoid.md) + - [CoreWorkflowExecutionIdentifier](docs/CoreWorkflowExecutionIdentifier.md) + - [CoreWorkflowExecutionPhase](docs/CoreWorkflowExecutionPhase.md) + - [CoreWorkflowMetadata](docs/CoreWorkflowMetadata.md) + - [CoreWorkflowMetadataDefaults](docs/CoreWorkflowMetadataDefaults.md) + - [CoreWorkflowNode](docs/CoreWorkflowNode.md) + - [CoreWorkflowTemplate](docs/CoreWorkflowTemplate.md) + - [DataLoadingConfigLiteralMapFormat](docs/DataLoadingConfigLiteralMapFormat.md) + - [EventExternalResourceInfo](docs/EventExternalResourceInfo.md) + - [EventNodeExecutionEvent](docs/EventNodeExecutionEvent.md) + - [EventParentNodeExecutionMetadata](docs/EventParentNodeExecutionMetadata.md) + - [EventParentTaskExecutionMetadata](docs/EventParentTaskExecutionMetadata.md) + - [EventResourcePoolInfo](docs/EventResourcePoolInfo.md) + - [EventTaskExecutionEvent](docs/EventTaskExecutionEvent.md) + - [EventWorkflowExecutionEvent](docs/EventWorkflowExecutionEvent.md) + - [ExecutionErrorErrorKind](docs/ExecutionErrorErrorKind.md) + - [ExecutionMetadataExecutionMode](docs/ExecutionMetadataExecutionMode.md) + - [FlyteidladminDynamicWorkflowNodeMetadata](docs/FlyteidladminDynamicWorkflowNodeMetadata.md) + - [FlyteidladminNodeExecution](docs/FlyteidladminNodeExecution.md) + - [FlyteidladminTaskCreateRequest](docs/FlyteidladminTaskCreateRequest.md) + - [FlyteidladminTaskCreateResponse](docs/FlyteidladminTaskCreateResponse.md) + - [FlyteidladminTaskExecution](docs/FlyteidladminTaskExecution.md) + - [FlyteidladminTaskNodeMetadata](docs/FlyteidladminTaskNodeMetadata.md) + - [FlyteidladminWorkflowNodeMetadata](docs/FlyteidladminWorkflowNodeMetadata.md) + - [FlyteidleventDynamicWorkflowNodeMetadata](docs/FlyteidleventDynamicWorkflowNodeMetadata.md) + - [FlyteidleventTaskExecutionMetadata](docs/FlyteidleventTaskExecutionMetadata.md) + - [FlyteidleventTaskNodeMetadata](docs/FlyteidleventTaskNodeMetadata.md) + - [FlyteidleventWorkflowNodeMetadata](docs/FlyteidleventWorkflowNodeMetadata.md) + - [IoStrategyDownloadMode](docs/IoStrategyDownloadMode.md) + - [IoStrategyUploadMode](docs/IoStrategyUploadMode.md) + - [PluginOverrideMissingPluginBehavior](docs/PluginOverrideMissingPluginBehavior.md) + - [ProjectProjectState](docs/ProjectProjectState.md) + - [ProtobufListValue](docs/ProtobufListValue.md) + - [ProtobufNullValue](docs/ProtobufNullValue.md) + - [ProtobufStruct](docs/ProtobufStruct.md) + - [ProtobufValue](docs/ProtobufValue.md) + - [QualityOfServiceTier](docs/QualityOfServiceTier.md) + - [ResourcesResourceEntry](docs/ResourcesResourceEntry.md) + - [ResourcesResourceName](docs/ResourcesResourceName.md) + - [RuntimeMetadataRuntimeType](docs/RuntimeMetadataRuntimeType.md) + - [SchemaColumnSchemaColumnType](docs/SchemaColumnSchemaColumnType.md) + - [SchemaTypeSchemaColumn](docs/SchemaTypeSchemaColumn.md) + - [SecretMountType](docs/SecretMountType.md) + - [SortDirection](docs/SortDirection.md) + - [SqlDialect](docs/SqlDialect.md) + - [StructuredDatasetTypeDatasetColumn](docs/StructuredDatasetTypeDatasetColumn.md) + - [TaskExecutionMetadataInstanceClass](docs/TaskExecutionMetadataInstanceClass.md) + - [TaskLogMessageFormat](docs/TaskLogMessageFormat.md) + - [WorkflowMetadataOnFailurePolicy](docs/WorkflowMetadataOnFailurePolicy.md) + + +## Documentation For Authorization + Endpoints do not require authorization. + + +## Author + + + diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml new file mode 100644 index 0000000000..62e03103e3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml @@ -0,0 +1,111389 @@ +--- +swagger: "2.0" +info: + version: "version not set" + title: "flyteidl/service/admin.proto" +schemes: +- "http" +- "https" +consumes: +- "application/json" +produces: +- "application/json" +paths: + /api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`." + operationId: "GetActiveLaunchPlan" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminLaunchPlan" + /api/v1/active_launch_plans/{project}/{domain}: + get: + tags: + - "AdminService" + summary: "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`." + operationId: "ListActiveLaunchPlans" + parameters: + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers.\n+required." + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project.\n\ + +required." + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminLaunchPlanList" + ? /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} + : get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by\ + \ the reference :ref:`ref_flyteidl.admin.TaskExecution`." + operationId: "ListNodeExecutionsForTask" + parameters: + - name: "task_execution_id.node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdProject" + - name: "task_execution_id.node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdDomain" + - name: "task_execution_id.node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdName" + - name: "task_execution_id.node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdNodeId" + - name: "task_execution_id.task_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdProject" + - name: "task_execution_id.task_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdDomain" + - name: "task_execution_id.task_id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdName" + - name: "task_execution_id.task_id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdVersion" + - name: "task_execution_id.retry_attempt" + in: "path" + required: true + type: "integer" + format: "int64" + x-exportParamName: "TaskExecutionIdRetryAttempt" + - name: "task_execution_id.task_id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ + \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ + \ a compilation of multiple individual objects.\nEventually all Catalog\ + \ objects should be modeled similar to Flyte Objects. The Dataset entities\ + \ makes it possible for the UI and CLI to act on the objects \nin a similar\ + \ manner to other Flyte objects" + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "TaskExecutionIdTaskIdResourceType" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the, server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNodeExecutionList" + /api/v1/data/executions/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`." + operationId: "GetExecutionData" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowExecutionGetDataResponse" + /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}: + get: + tags: + - "AdminService" + summary: "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`." + operationId: "GetNodeExecutionData" + parameters: + - name: "id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdExecutionIdProject" + - name: "id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdExecutionIdDomain" + - name: "id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdExecutionIdName" + - name: "id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeId" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNodeExecutionGetDataResponse" + ? /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} + : get: + tags: + - "AdminService" + summary: "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`." + operationId: "GetTaskExecutionData" + parameters: + - name: "id.node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdProject" + - name: "id.node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdDomain" + - name: "id.node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdName" + - name: "id.node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdNodeId" + - name: "id.task_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdTaskIdProject" + - name: "id.task_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdTaskIdDomain" + - name: "id.task_id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdName" + - name: "id.task_id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdVersion" + - name: "id.retry_attempt" + in: "path" + required: true + type: "integer" + format: "int64" + x-exportParamName: "IdRetryAttempt" + - name: "id.task_id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ + \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ + \ a compilation of multiple individual objects.\nEventually all Catalog\ + \ objects should be modeled similar to Flyte Objects. The Dataset entities\ + \ makes it possible for the UI and CLI to act on the objects \nin a similar\ + \ manner to other Flyte objects" + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "IdTaskIdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminTaskExecutionGetDataResponse" + /api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}: + get: + tags: + - "AdminService" + summary: "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object." + operationId: "GetDescriptionEntity" + parameters: + - name: "id.resource_type" + in: "path" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to." + required: true + type: "string" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "IdResourceType" + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminDescriptionEntity" + /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions." + operationId: "ListDescriptionEntities2" + parameters: + - name: "resource_type" + in: "path" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to." + required: true + type: "string" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "ResourceType" + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminDescriptionEntityList" + /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions." + operationId: "ListDescriptionEntities" + parameters: + - name: "resource_type" + in: "path" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to." + required: true + type: "string" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "ResourceType" + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminDescriptionEntityList" + /api/v1/events/nodes: + post: + tags: + - "AdminService" + summary: "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred." + operationId: "CreateNodeEvent" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminNodeExecutionEventRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNodeExecutionEventResponse" + /api/v1/events/tasks: + post: + tags: + - "AdminService" + summary: "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred." + operationId: "CreateTaskEvent" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminTaskExecutionEventRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminTaskExecutionEventResponse" + /api/v1/events/workflows: + post: + tags: + - "AdminService" + summary: "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred." + operationId: "CreateWorkflowEvent" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminWorkflowExecutionEventRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowExecutionEventResponse" + /api/v1/executions: + post: + tags: + - "AdminService" + summary: "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`" + operationId: "CreateExecution" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminExecutionCreateResponse" + /api/v1/executions/recover: + post: + tags: + - "AdminService" + summary: "Recreates a previously-run workflow execution that will only start\ + \ executing from the last known failure point.\nIn Recover mode, users cannot\ + \ change any input parameters or update the version of the execution.\nThis\ + \ is extremely useful to recover from system errors and byzantine faults like\ + \ - Loss of K8s cluster, bugs in platform or instability, machine failures,\n\ + downstream system failures (downstream services), or simply to recover executions\ + \ that failed because of retry exhaustion and should complete if tried again.\n\ + See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details." + operationId: "RecoverExecution" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionRecoverRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminExecutionCreateResponse" + /api/v1/executions/relaunch: + post: + tags: + - "AdminService" + summary: "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`" + operationId: "RelaunchExecution" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionRelaunchRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminExecutionCreateResponse" + /api/v1/executions/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.Execution`." + operationId: "ListExecutions" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminExecutionList" + /api/v1/executions/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetches a :ref:`ref_flyteidl.admin.Execution`." + operationId: "GetExecution" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminExecution" + put: + tags: + - "AdminService" + summary: "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`." + operationId: "UpdateExecution" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionUpdateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminExecutionUpdateResponse" + delete: + tags: + - "AdminService" + summary: "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`." + operationId: "TerminateExecution" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionTerminateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminExecutionTerminateResponse" + /api/v1/launch_plan_ids/{project}/{domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of\ + \ launch plan objects." + operationId: "ListLaunchPlanIds" + parameters: + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers.\n+required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNamedEntityIdentifierList" + /api/v1/launch_plans: + post: + tags: + - "AdminService" + summary: "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition" + operationId: "CreateLaunchPlan" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminLaunchPlanCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminLaunchPlanCreateResponse" + /api/v1/launch_plans/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions." + operationId: "ListLaunchPlans2" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminLaunchPlanList" + /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions." + operationId: "ListLaunchPlans" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminLaunchPlanList" + /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}: + get: + tags: + - "AdminService" + summary: "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition." + operationId: "GetLaunchPlan" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - name: "id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ + \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ + \ a compilation of multiple individual objects.\nEventually all Catalog\ + \ objects should be modeled similar to Flyte Objects. The Dataset entities\ + \ makes it possible for the UI and CLI to act on the objects \nin a similar\ + \ manner to other Flyte objects" + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "IdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminLaunchPlan" + put: + tags: + - "AdminService" + summary: "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`." + operationId: "UpdateLaunchPlan" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminLaunchPlanUpdateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminLaunchPlanUpdateResponse" + /api/v1/matchable_attributes: + get: + tags: + - "AdminService" + summary: "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a specific resource type." + operationId: "ListMatchableAttributes" + parameters: + - name: "resource_type" + in: "query" + description: "+required.\n\n - TASK_RESOURCE: Applies to customizable task\ + \ resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring\ + \ templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures\ + \ task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL:\ + \ Configures the K8s cluster label to be used for execution to be run\n\ + \ - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service\ + \ when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable\ + \ plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG:\ + \ Adds defaults for customizable workflow-execution specifications and overrides.\n\ + \ - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which\ + \ this execution should run." + required: false + type: "string" + default: "TASK_RESOURCE" + enum: + - "TASK_RESOURCE" + - "CLUSTER_RESOURCE" + - "EXECUTION_QUEUE" + - "EXECUTION_CLUSTER_LABEL" + - "QUALITY_OF_SERVICE_SPECIFICATION" + - "PLUGIN_OVERRIDE" + - "WORKFLOW_EXECUTION_CONFIG" + - "CLUSTER_ASSIGNMENT" + x-exportParamName: "ResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminListMatchableAttributesResponse" + /api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`." + operationId: "GetExecutionMetrics" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "depth" + in: "query" + description: "depth defines the number of Flyte entity levels to traverse\ + \ when breaking down execution details." + required: false + type: "integer" + format: "int32" + x-exportParamName: "Depth" + x-optionalDataType: "Int32" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowExecutionGetMetricsResponse" + /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object." + operationId: "GetNamedEntity" + parameters: + - name: "resource_type" + in: "path" + description: "Resource type of the metadata to get. One of Task, Workflow\ + \ or LaunchPlan.\n+required" + required: true + type: "string" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "ResourceType" + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNamedEntity" + put: + tags: + - "AdminService" + summary: "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object." + operationId: "UpdateNamedEntity" + parameters: + - name: "resource_type" + in: "path" + description: "Resource type of the metadata to update\n+required" + required: true + type: "string" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "ResourceType" + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminNamedEntityUpdateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNamedEntityUpdateResponse" + /api/v1/named_entities/{resource_type}/{project}/{domain}: + get: + tags: + - "AdminService" + summary: "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects." + operationId: "ListNamedEntities" + parameters: + - name: "resource_type" + in: "path" + description: "Resource type of the metadata to query. One of Task, Workflow\ + \ or LaunchPlan.\n+required" + required: true + type: "string" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "ResourceType" + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers.\n+required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project." + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNamedEntityList" + /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}: + get: + tags: + - "AdminService" + summary: "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`." + operationId: "GetNodeExecution" + parameters: + - name: "id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdExecutionIdProject" + - name: "id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdExecutionIdDomain" + - name: "id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdExecutionIdName" + - name: "id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeId" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/flyteidladminNodeExecution" + /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`." + operationId: "ListNodeExecutions" + parameters: + - name: "workflow_execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "WorkflowExecutionIdProject" + - name: "workflow_execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "WorkflowExecutionIdDomain" + - name: "workflow_execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "WorkflowExecutionIdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + - name: "unique_parent_id" + in: "query" + description: "Unique identifier of the parent node in the execution\n+optional." + required: false + type: "string" + x-exportParamName: "UniqueParentId" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNodeExecutionList" + /api/v1/project_attributes/{attributes.project}: + put: + tags: + - "AdminService" + summary: "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ at the project level" + operationId: "UpdateProjectAttributes" + parameters: + - name: "attributes.project" + in: "path" + description: "Unique project id for which this set of attributes will be applied." + required: true + type: "string" + x-exportParamName: "AttributesProject" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminProjectAttributesUpdateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectAttributesUpdateResponse" + /api/v1/project_attributes/{project}: + get: + tags: + - "AdminService" + summary: "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project and domain." + operationId: "GetProjectAttributes" + parameters: + - name: "project" + in: "path" + description: "Unique project id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "resource_type" + in: "query" + description: "Which type of matchable attributes to return.\n+required.\n\n\ + \ - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n\ + \ - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster\ + \ resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution\ + \ queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster\ + \ label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ + \ Configures default quality of service when undefined in an execution spec.\n\ + \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior\ + \ for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for\ + \ customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT:\ + \ Controls how to select an available cluster on which this execution should\ + \ run." + required: false + type: "string" + default: "TASK_RESOURCE" + enum: + - "TASK_RESOURCE" + - "CLUSTER_RESOURCE" + - "EXECUTION_QUEUE" + - "EXECUTION_CLUSTER_LABEL" + - "QUALITY_OF_SERVICE_SPECIFICATION" + - "PLUGIN_OVERRIDE" + - "WORKFLOW_EXECUTION_CONFIG" + - "CLUSTER_ASSIGNMENT" + x-exportParamName: "ResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectAttributesGetResponse" + delete: + tags: + - "AdminService" + summary: "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project and domain." + operationId: "DeleteProjectAttributes" + parameters: + - name: "project" + in: "path" + description: "Unique project id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Project" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminProjectAttributesDeleteRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectAttributesDeleteResponse" + /api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}: + put: + tags: + - "AdminService" + summary: "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project and domain." + operationId: "UpdateProjectDomainAttributes" + parameters: + - name: "attributes.project" + in: "path" + description: "Unique project id for which this set of attributes will be applied." + required: true + type: "string" + x-exportParamName: "AttributesProject" + - name: "attributes.domain" + in: "path" + description: "Unique domain id for which this set of attributes will be applied." + required: true + type: "string" + x-exportParamName: "AttributesDomain" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminProjectDomainAttributesUpdateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectDomainAttributesUpdateResponse" + /api/v1/project_domain_attributes/{project}/{domain}: + get: + tags: + - "AdminService" + summary: "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project and domain." + operationId: "GetProjectDomainAttributes" + parameters: + - name: "project" + in: "path" + description: "Unique project id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Unique domain id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Domain" + - name: "resource_type" + in: "query" + description: "Which type of matchable attributes to return.\n+required.\n\n\ + \ - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n\ + \ - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster\ + \ resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution\ + \ queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster\ + \ label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ + \ Configures default quality of service when undefined in an execution spec.\n\ + \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior\ + \ for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for\ + \ customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT:\ + \ Controls how to select an available cluster on which this execution should\ + \ run." + required: false + type: "string" + default: "TASK_RESOURCE" + enum: + - "TASK_RESOURCE" + - "CLUSTER_RESOURCE" + - "EXECUTION_QUEUE" + - "EXECUTION_CLUSTER_LABEL" + - "QUALITY_OF_SERVICE_SPECIFICATION" + - "PLUGIN_OVERRIDE" + - "WORKFLOW_EXECUTION_CONFIG" + - "CLUSTER_ASSIGNMENT" + x-exportParamName: "ResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectDomainAttributesGetResponse" + delete: + tags: + - "AdminService" + summary: "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project and domain." + operationId: "DeleteProjectDomainAttributes" + parameters: + - name: "project" + in: "path" + description: "Unique project id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Unique domain id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Domain" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminProjectDomainAttributesDeleteRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectDomainAttributesDeleteResponse" + /api/v1/projects: + get: + tags: + - "AdminService" + summary: "Fetches a list of :ref:`ref_flyteidl.admin.Project`" + operationId: "ListProjects" + parameters: + - name: "limit" + in: "query" + description: "Indicates the number of projects to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjects" + post: + tags: + - "AdminService" + summary: "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment." + operationId: "RegisterProject" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminProjectRegisterRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectRegisterResponse" + /api/v1/projects/{id}: + put: + tags: + - "AdminService" + summary: "Updates an existing :ref:`ref_flyteidl.admin.Project` \nflyteidl.admin.Project\ + \ should be passed but the domains property should be empty;\nit will be ignored\ + \ in the handler as domains cannot be updated via this API." + operationId: "UpdateProject" + parameters: + - name: "id" + in: "path" + description: "Globally unique project name." + required: true + type: "string" + x-exportParamName: "Id" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminProject" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminProjectUpdateResponse" + ? /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} + : get: + tags: + - "AdminService" + summary: "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`." + operationId: "GetTaskExecution" + parameters: + - name: "id.node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdProject" + - name: "id.node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdDomain" + - name: "id.node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdName" + - name: "id.node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdNodeId" + - name: "id.task_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdTaskIdProject" + - name: "id.task_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdTaskIdDomain" + - name: "id.task_id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdName" + - name: "id.task_id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdVersion" + - name: "id.retry_attempt" + in: "path" + required: true + type: "integer" + format: "int64" + x-exportParamName: "IdRetryAttempt" + - name: "id.task_id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ + \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ + \ a compilation of multiple individual objects.\nEventually all Catalog\ + \ objects should be modeled similar to Flyte Objects. The Dataset entities\ + \ makes it possible for the UI and CLI to act on the objects \nin a similar\ + \ manner to other Flyte objects" + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "IdTaskIdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/flyteidladminTaskExecution" + ? /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} + : get: + tags: + - "AdminService" + summary: "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`." + operationId: "ListTaskExecutions" + parameters: + - name: "node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "NodeExecutionIdExecutionIdProject" + - name: "node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "NodeExecutionIdExecutionIdDomain" + - name: "node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "NodeExecutionIdExecutionIdName" + - name: "node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "NodeExecutionIdNodeId" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminTaskExecutionList" + /api/v1/task_ids/{project}/{domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of\ + \ task objects." + operationId: "ListTaskIds" + parameters: + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers.\n+required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNamedEntityIdentifierList" + /api/v1/tasks: + post: + tags: + - "AdminService" + summary: "Create and upload a :ref:`ref_flyteidl.admin.Task` definition" + operationId: "CreateTask" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/flyteidladminTaskCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/flyteidladminTaskCreateResponse" + /api/v1/tasks/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions." + operationId: "ListTasks2" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminTaskList" + /api/v1/tasks/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions." + operationId: "ListTasks" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminTaskList" + /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}: + get: + tags: + - "AdminService" + summary: "Fetch a :ref:`ref_flyteidl.admin.Task` definition." + operationId: "GetTask" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - name: "id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ + \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ + \ a compilation of multiple individual objects.\nEventually all Catalog\ + \ objects should be modeled similar to Flyte Objects. The Dataset entities\ + \ makes it possible for the UI and CLI to act on the objects \nin a similar\ + \ manner to other Flyte objects" + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "IdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminTask" + /api/v1/version: + get: + tags: + - "AdminService" + operationId: "GetVersion" + parameters: [] + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminGetVersionResponse" + /api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}: + put: + tags: + - "AdminService" + summary: "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project, domain and workflow." + operationId: "UpdateWorkflowAttributes" + parameters: + - name: "attributes.project" + in: "path" + description: "Unique project id for which this set of attributes will be applied." + required: true + type: "string" + x-exportParamName: "AttributesProject" + - name: "attributes.domain" + in: "path" + description: "Unique domain id for which this set of attributes will be applied." + required: true + type: "string" + x-exportParamName: "AttributesDomain" + - name: "attributes.workflow" + in: "path" + description: "Workflow name for which this set of attributes will be applied." + required: true + type: "string" + x-exportParamName: "AttributesWorkflow" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminWorkflowAttributesUpdateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowAttributesUpdateResponse" + /api/v1/workflow_attributes/{project}/{domain}/{workflow}: + get: + tags: + - "AdminService" + summary: "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project, domain and workflow." + operationId: "GetWorkflowAttributes" + parameters: + - name: "project" + in: "path" + description: "Unique project id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Unique domain id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Domain" + - name: "workflow" + in: "path" + description: "Workflow name which this set of attributes references.\n+required" + required: true + type: "string" + x-exportParamName: "Workflow" + - name: "resource_type" + in: "query" + description: "Which type of matchable attributes to return.\n+required.\n\n\ + \ - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n\ + \ - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster\ + \ resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution\ + \ queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster\ + \ label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ + \ Configures default quality of service when undefined in an execution spec.\n\ + \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior\ + \ for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for\ + \ customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT:\ + \ Controls how to select an available cluster on which this execution should\ + \ run." + required: false + type: "string" + default: "TASK_RESOURCE" + enum: + - "TASK_RESOURCE" + - "CLUSTER_RESOURCE" + - "EXECUTION_QUEUE" + - "EXECUTION_CLUSTER_LABEL" + - "QUALITY_OF_SERVICE_SPECIFICATION" + - "PLUGIN_OVERRIDE" + - "WORKFLOW_EXECUTION_CONFIG" + - "CLUSTER_ASSIGNMENT" + x-exportParamName: "ResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowAttributesGetResponse" + delete: + tags: + - "AdminService" + summary: "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ + \ for a project, domain and workflow." + operationId: "DeleteWorkflowAttributes" + parameters: + - name: "project" + in: "path" + description: "Unique project id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Unique domain id which this set of attributes references.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Domain" + - name: "workflow" + in: "path" + description: "Workflow name which this set of attributes references.\n+required" + required: true + type: "string" + x-exportParamName: "Workflow" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminWorkflowAttributesDeleteRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowAttributesDeleteResponse" + /api/v1/workflow_ids/{project}/{domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of\ + \ workflow objects." + operationId: "ListWorkflowIds" + parameters: + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers.\n+required" + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project.\n\ + +required" + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminNamedEntityIdentifierList" + /api/v1/workflows: + post: + tags: + - "AdminService" + summary: "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition" + operationId: "CreateWorkflow" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminWorkflowCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowCreateResponse" + /api/v1/workflows/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions." + operationId: "ListWorkflows2" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowList" + /api/v1/workflows/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + summary: "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions." + operationId: "ListWorkflows" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned.\n+required." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\n+required." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ + \ order." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflowList" + /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}: + get: + tags: + - "AdminService" + summary: "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition." + operationId: "GetWorkflow" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - name: "id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ + \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ + \ a compilation of multiple individual objects.\nEventually all Catalog\ + \ objects should be modeled similar to Flyte Objects. The Dataset entities\ + \ makes it possible for the UI and CLI to act on the objects \nin a similar\ + \ manner to other Flyte objects" + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + x-exportParamName: "IdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/adminWorkflow" +definitions: + BlobTypeBlobDimensionality: + type: "string" + enum: + - "SINGLE" + - "MULTIPART" + default: "SINGLE" + CatalogReservationStatus: + type: "string" + description: "Indicates the status of a catalog reservation operation.\n\n - RESERVATION_DISABLED:\ + \ Used to indicate that reservations are disabled\n - RESERVATION_ACQUIRED:\ + \ Used to indicate that a reservation was successfully acquired or extended\n\ + \ - RESERVATION_EXISTS: Used to indicate that an active reservation currently\ + \ exists\n - RESERVATION_RELEASED: Used to indicate that the reservation has\ + \ been successfully released\n - RESERVATION_FAILURE: Used to indicate that\ + \ a reservation operation resulted in failure" + enum: + - "RESERVATION_DISABLED" + - "RESERVATION_ACQUIRED" + - "RESERVATION_EXISTS" + - "RESERVATION_RELEASED" + - "RESERVATION_FAILURE" + default: "RESERVATION_DISABLED" + ComparisonExpressionOperator: + type: "string" + title: "Binary Operator for each expression" + description: "- GT: Greater Than\n - LT: Less Than" + enum: + - "EQ" + - "NEQ" + - "GT" + - "GTE" + - "LT" + - "LTE" + default: "EQ" + ConjunctionExpressionLogicalOperator: + type: "string" + title: "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation\ + \ is not important as the operators are Commutative" + description: "- AND: Conjunction" + enum: + - "AND" + - "OR" + default: "AND" + ConnectionSetIdList: + type: "object" + properties: + ids: + type: "array" + items: + type: "string" + example: + ids: + - "ids" + - "ids" + ContainerArchitecture: + type: "string" + description: "Architecture-type the container image supports." + enum: + - "UNKNOWN" + - "AMD64" + - "ARM64" + - "ARM_V6" + - "ARM_V7" + default: "UNKNOWN" + DataLoadingConfigLiteralMapFormat: + type: "string" + title: "LiteralMapFormat decides the encoding format in which the input metadata\ + \ should be made available to the containers.\nIf the user has access to the\ + \ protocol buffer definitions, it is recommended to use the PROTO format.\n\ + JSON and YAML do not need any protobuf definitions to read it\nAll remote references\ + \ in core.LiteralMap are replaced with local filesystem references (the data\ + \ is downloaded to local filesystem)" + description: "- JSON: JSON / YAML for the metadata (which contains inlined primitive\ + \ values). The representation is inline with the standard json specification\ + \ as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized\ + \ binary of `core.LiteralMap` defined in flyteidl/core" + enum: + - "JSON" + - "YAML" + - "PROTO" + default: "JSON" + ExecutionErrorErrorKind: + type: "string" + title: "Error type: System or User" + enum: + - "UNKNOWN" + - "USER" + - "SYSTEM" + default: "UNKNOWN" + ExecutionMetadataExecutionMode: + type: "string" + description: "The method by which this execution was launched.\n\n - MANUAL: The\ + \ default execution mode, MANUAL implies that an execution was launched by an\ + \ individual.\n - SCHEDULED: A schedule triggered this execution launch.\n -\ + \ SYSTEM: A system process was responsible for launching this execution rather\ + \ an individual.\n - RELAUNCH: This execution was launched with identical inputs\ + \ as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered\ + \ by another execution.\n - RECOVERED: This execution was recovered from another\ + \ execution." + enum: + - "MANUAL" + - "SCHEDULED" + - "SYSTEM" + - "RELAUNCH" + - "CHILD_WORKFLOW" + - "RECOVERED" + default: "MANUAL" + IOStrategyDownloadMode: + type: "string" + title: "Mode to use for downloading" + description: "- DOWNLOAD_EAGER: All data will be downloaded before the main container\ + \ is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an\ + \ End-Of-Stream marker will be written to indicate all data has been downloaded.\ + \ Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded)\ + \ will not be downloaded" + enum: + - "DOWNLOAD_EAGER" + - "DOWNLOAD_STREAM" + - "DO_NOT_DOWNLOAD" + default: "DOWNLOAD_EAGER" + IOStrategyUploadMode: + type: "string" + title: "Mode to use for uploading" + description: "- UPLOAD_ON_EXIT: All data will be uploaded after the main container\ + \ exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol\ + \ specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only\ + \ references will be written" + enum: + - "UPLOAD_ON_EXIT" + - "UPLOAD_EAGER" + - "DO_NOT_UPLOAD" + default: "UPLOAD_ON_EXIT" + PluginOverrideMissingPluginBehavior: + type: "string" + description: " - FAIL: By default, if this plugin is not enabled for a Flyte deployment\ + \ then execution will fail.\n - USE_DEFAULT: Uses the system-configured default\ + \ implementation." + enum: + - "FAIL" + - "USE_DEFAULT" + default: "FAIL" + ProjectProjectState: + type: "string" + description: "The state of the project is used to control its visibility in the\ + \ UI and validity.\n\n - ACTIVE: By default, all projects are considered active.\n\ + \ - ARCHIVED: Archived projects are no longer visible in the UI and no longer\ + \ valid.\n - SYSTEM_GENERATED: System generated projects that aren't explicitly\ + \ created or managed by a user." + enum: + - "ACTIVE" + - "ARCHIVED" + - "SYSTEM_GENERATED" + default: "ACTIVE" + QualityOfServiceTier: + type: "string" + description: " - UNDEFINED: Default: no quality of service specified." + enum: + - "UNDEFINED" + - "HIGH" + - "MEDIUM" + - "LOW" + default: "UNDEFINED" + ResourcesResourceEntry: + type: "object" + properties: + name: + description: "Resource name." + $ref: "#/definitions/ResourcesResourceName" + value: + type: "string" + title: "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + description: "Encapsulates a resource name and value." + example: + name: {} + value: "value" + ResourcesResourceName: + type: "string" + description: "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based\ + \ deployments, pods use ephemeral local storage for scratch space, caching,\ + \ and for logs." + enum: + - "UNKNOWN" + - "CPU" + - "GPU" + - "MEMORY" + - "STORAGE" + - "EPHEMERAL_STORAGE" + default: "UNKNOWN" + RuntimeMetadataRuntimeType: + type: "string" + enum: + - "OTHER" + - "FLYTE_SDK" + default: "OTHER" + SchemaColumnSchemaColumnType: + type: "string" + enum: + - "INTEGER" + - "FLOAT" + - "STRING" + - "BOOLEAN" + - "DATETIME" + - "DURATION" + default: "INTEGER" + SchemaTypeSchemaColumn: + type: "object" + properties: + name: + type: "string" + title: "A unique name -within the schema type- for the column" + type: + description: "The column type. This allows a limited set of types currently." + $ref: "#/definitions/SchemaColumnSchemaColumnType" + example: + name: "name" + type: {} + SecretMountType: + type: "string" + description: " - ANY: Default case, indicates the client can tolerate either mounting\ + \ options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as\ + \ an environment variable.\n - FILE: FILE indicates the secret needs to be mounted\ + \ as a file." + enum: + - "ANY" + - "ENV_VAR" + - "FILE" + default: "ANY" + SortDirection: + type: "string" + description: " - DESCENDING: By default, fields are sorted in descending order." + enum: + - "DESCENDING" + - "ASCENDING" + default: "DESCENDING" + SqlDialect: + type: "string" + description: "The dialect of the SQL statement. This is used to validate and parse\ + \ SQL statements at compilation time to avoid\nexpensive runtime operations.\ + \ If set to an unsupported dialect, no validation will be done on the statement.\n\ + We support the following dialect: ansi, hive." + enum: + - "UNDEFINED" + - "ANSI" + - "HIVE" + - "OTHER" + default: "UNDEFINED" + StructuredDatasetTypeDatasetColumn: + type: "object" + properties: + name: + type: "string" + description: "A unique name within the schema type for the column." + literal_type: + description: "The column type." + $ref: "#/definitions/coreLiteralType" + example: + name: "name" + TaskExecutionMetadataInstanceClass: + type: "string" + description: "Includes the broad category of machine used for this specific task\ + \ execution.\n\n - DEFAULT: The default instance class configured for the flyte\ + \ application platform.\n - INTERRUPTIBLE: The instance class configured for\ + \ interruptible tasks." + enum: + - "DEFAULT" + - "INTERRUPTIBLE" + default: "DEFAULT" + TaskLogMessageFormat: + type: "string" + enum: + - "UNKNOWN" + - "CSV" + - "JSON" + default: "UNKNOWN" + WorkflowMetadataOnFailurePolicy: + type: "string" + title: "Failure Handling Strategy" + description: "- FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail\ + \ as soon as a node fails in the workflow. It'll automatically\nabort all currently\ + \ running nodes and clean up resources before finally marking the workflow executions\ + \ as\nfailed.\n - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\ + \ instructs the system to make as much progress as it can. The system will\n\ + not alter the dependencies of the execution graph so any node that depend on\ + \ the failed node will not be run.\nOther nodes that will be executed to completion\ + \ before cleaning up resources and marking the workflow\nexecution as failed." + enum: + - "FAIL_IMMEDIATELY" + - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" + default: "FAIL_IMMEDIATELY" + adminAbortMetadata: + type: "object" + properties: + cause: + type: "string" + description: "In the case of a user-specified abort, this will pass along\ + \ the user-supplied cause." + principal: + type: "string" + title: "Identifies the entity (if any) responsible for terminating the execution" + description: "Specifies metadata around an aborted workflow execution." + example: + principal: "principal" + cause: "cause" + adminAnnotations: + type: "object" + properties: + values: + type: "object" + description: "Map of custom annotations to be applied to the execution resource." + additionalProperties: + type: "string" + description: "Annotation values to be applied to an execution resource.\nIn the\ + \ future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how\ + \ to merge annotations defined at registration and execution time." + example: + values: + key: "values" + adminAuth: + type: "object" + properties: + assumable_iam_role: + type: "string" + description: "Defines an optional iam role which will be used for tasks run\ + \ in executions created with this launch plan." + kubernetes_service_account: + type: "string" + description: "Defines an optional kubernetes service account which will be\ + \ used for tasks run in executions created with this launch plan." + description: "Defines permissions associated with executions created by this launch\ + \ plan spec.\nUse either of these roles when they have permissions required\ + \ by your workflow execution.\nDeprecated." + example: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + adminAuthRole: + type: "object" + properties: + assumable_iam_role: + type: "string" + description: "Defines an optional iam role which will be used for tasks run\ + \ in executions created with this launch plan." + kubernetes_service_account: + type: "string" + description: "Defines an optional kubernetes service account which will be\ + \ used for tasks run in executions created with this launch plan." + description: "Defines permissions associated with executions created by this launch\ + \ plan spec.\nUse either of these roles when they have permissions required\ + \ by your workflow execution.\nDeprecated." + example: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + adminClusterAssignment: + type: "object" + properties: + cluster_pool_name: + type: "string" + description: "Encapsulates specifications for routing an execution onto a specific\ + \ cluster." + example: + cluster_pool_name: "cluster_pool_name" + adminClusterResourceAttributes: + type: "object" + properties: + attributes: + type: "object" + description: "Custom resource attributes which will be applied in cluster\ + \ resource creation (e.g. quotas).\nMap keys are the *case-sensitive* names\ + \ of variables in templatized resource files.\nMap values should be the\ + \ custom values which get substituted during resource creation." + additionalProperties: + type: "string" + example: + attributes: + key: "attributes" + adminCronSchedule: + type: "object" + properties: + schedule: + type: "string" + title: "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;\n\ + Also supports nonstandard predefined scheduling definitions\nas described\ + \ by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\n\ + except @reboot" + offset: + type: "string" + title: "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" + description: "Options for schedules to run according to a cron expression." + example: + schedule: "schedule" + offset: "offset" + adminDescription: + type: "object" + properties: + value: + type: "string" + title: "long description - no more than 4KB" + uri: + type: "string" + title: "if the description sizes exceed some threshold we can offload the\ + \ entire\ndescription proto altogether to an external data store, like S3\ + \ rather than store inline in the db" + format: + title: "Format of the long description" + $ref: "#/definitions/adminDescriptionFormat" + icon_link: + type: "string" + title: "Optional link to an icon for the entity" + description: "Full user description with formatting preserved. This can be rendered\n\ + by clients, such as the console or command line tools with in-tact\nformatting." + example: + format: {} + icon_link: "icon_link" + value: "value" + uri: "uri" + adminDescriptionEntity: + type: "object" + properties: + id: + description: "id represents the unique identifier of the description entity." + $ref: "#/definitions/coreIdentifier" + short_description: + type: "string" + description: "One-liner overview of the entity." + long_description: + description: "Full user description with formatting preserved." + $ref: "#/definitions/adminDescription" + source_code: + description: "Optional link to source code used to define this entity." + $ref: "#/definitions/adminSourceCode" + tags: + type: "array" + description: "User-specified tags. These are arbitrary and can be used for\ + \ searching\nfiltering and discovering tasks." + items: + type: "string" + description: "DescriptionEntity contains detailed description for the task/workflow.\n\ + Documentation could provide insight into the algorithms, business use case,\ + \ etc." + example: + short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + long_description: + format: {} + icon_link: "icon_link" + value: "value" + uri: "uri" + source_code: + link: "link" + tags: + - "tags" + - "tags" + adminDescriptionEntityList: + type: "object" + properties: + descriptionEntities: + type: "array" + description: "A list of DescriptionEntities returned based on the request." + items: + $ref: "#/definitions/adminDescriptionEntity" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Represents a list of DescriptionEntities returned from the admin.\nSee\ + \ :ref:`ref_flyteidl.admin.DescriptionEntity` for more details" + example: + descriptionEntities: + - short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + long_description: + format: {} + icon_link: "icon_link" + value: "value" + uri: "uri" + source_code: + link: "link" + tags: + - "tags" + - "tags" + - short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + long_description: + format: {} + icon_link: "icon_link" + value: "value" + uri: "uri" + source_code: + link: "link" + tags: + - "tags" + - "tags" + token: "token" + adminDescriptionFormat: + type: "string" + title: "The format of the long description" + description: "- DESCRIPTION_FORMAT_RST: python default documentation - comments\ + \ is rst" + enum: + - "DESCRIPTION_FORMAT_UNKNOWN" + - "DESCRIPTION_FORMAT_MARKDOWN" + - "DESCRIPTION_FORMAT_HTML" + - "DESCRIPTION_FORMAT_RST" + default: "DESCRIPTION_FORMAT_UNKNOWN" + adminDomain: + type: "object" + properties: + id: + type: "string" + description: "Globally unique domain name." + name: + type: "string" + description: "Display name." + description: "Namespace within a project commonly used to differentiate between\ + \ different service instances.\ne.g. \"production\", \"development\", etc." + example: + name: "name" + id: "id" + adminEmailNotification: + type: "object" + properties: + recipients_email: + type: "array" + title: "The list of email addresses recipients for this notification.\n+required" + items: + type: "string" + description: "Defines an email notification specification." + example: + recipients_email: + - "recipients_email" + - "recipients_email" + adminEnvs: + type: "object" + properties: + values: + type: "array" + description: "Map of custom environment variables to be applied to the execution\ + \ resource." + items: + $ref: "#/definitions/coreKeyValuePair" + description: "Environment variable values to be applied to an execution resource.\n\ + In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify\ + \ how to merge environment variables defined at registration and execution time." + example: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + adminExecution: + type: "object" + properties: + id: + description: "Unique identifier of the workflow execution." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + spec: + description: "User-provided configuration and inputs for launching the execution." + $ref: "#/definitions/adminExecutionSpec" + closure: + description: "Execution results." + $ref: "#/definitions/adminExecutionClosure" + description: "A workflow execution represents an instantiated workflow, including\ + \ all inputs and additional\nmetadata as well as computed results included state,\ + \ outputs, and duration-based attributes.\nUsed as a response object used in\ + \ Get and List execution requests." + example: + id: + domain: "domain" + name: "name" + project: "project" + closure: + outputs: + values: + literals: {} + uri: "uri" + phase: {} + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + created_at: "2000-01-23T04:56:07.000+00:00" + state_change_details: + occurred_at: "2000-01-23T04:56:07.000+00:00" + principal: "principal" + state: {} + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + computed_inputs: + literals: {} + abort_metadata: + principal: "principal" + cause: "cause" + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + abort_cause: "abort_cause" + output_data: + literals: {} + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + spec: + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 0 + system_metadata: + execution_cluster: "execution_cluster" + namespace: "namespace" + disable_all: true + inputs: + literals: {} + annotations: + values: + key: "values" + max_parallelism: 6 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + tags: + - "tags" + - "tags" + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + adminExecutionClosure: + type: "object" + properties: + outputs: + description: "Output URI in the case of a successful execution.\nDEPRECATED.\ + \ Use GetExecutionData to fetch output data instead." + $ref: "#/definitions/adminLiteralMapBlob" + error: + description: "Error information in the case of a failed execution." + $ref: "#/definitions/coreExecutionError" + abort_cause: + type: "string" + description: "In the case of a user-specified abort, this will pass along\ + \ the user-supplied cause." + abort_metadata: + description: "In the case of a user-specified abort, this will pass along\ + \ the user and their supplied cause." + $ref: "#/definitions/adminAbortMetadata" + output_data: + description: "Raw output data produced by this execution.\nDEPRECATED. Use\ + \ GetExecutionData to fetch output data instead." + $ref: "#/definitions/coreLiteralMap" + computed_inputs: + title: "Inputs computed and passed for execution.\ncomputed_inputs depends\ + \ on inputs in ExecutionSpec, fixed and default inputs in launch plan" + $ref: "#/definitions/coreLiteralMap" + phase: + description: "Most recent recorded phase for the execution." + $ref: "#/definitions/coreWorkflowExecutionPhase" + started_at: + type: "string" + format: "date-time" + description: "Reported time at which the execution began running." + duration: + type: "string" + description: "The amount of time the execution spent running." + created_at: + type: "string" + format: "date-time" + description: "Reported time at which the execution was created." + updated_at: + type: "string" + format: "date-time" + description: "Reported time at which the execution was last updated." + notifications: + type: "array" + description: "The notification settings to use after merging the CreateExecutionRequest\ + \ and the launch plan\nnotification settings. An execution launched with\ + \ notifications will always prefer that definition\nto notifications defined\ + \ statically in a launch plan." + items: + $ref: "#/definitions/adminNotification" + workflow_id: + description: "Identifies the workflow definition for this execution." + $ref: "#/definitions/coreIdentifier" + state_change_details: + title: "Provides the details of the last stage change" + $ref: "#/definitions/adminExecutionStateChangeDetails" + title: "Encapsulates the results of the Execution" + example: + outputs: + values: + literals: {} + uri: "uri" + phase: {} + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + created_at: "2000-01-23T04:56:07.000+00:00" + state_change_details: + occurred_at: "2000-01-23T04:56:07.000+00:00" + principal: "principal" + state: {} + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + computed_inputs: + literals: {} + abort_metadata: + principal: "principal" + cause: "cause" + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + abort_cause: "abort_cause" + output_data: + literals: {} + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminExecutionClusterLabel: + type: "object" + properties: + value: + type: "string" + title: "Label value to determine where the execution will be run" + example: + value: "value" + adminExecutionCreateRequest: + type: "object" + properties: + project: + type: "string" + title: "Name of the project the execution belongs to.\n+required" + domain: + type: "string" + title: "Name of the domain the execution belongs to.\nA domain can be considered\ + \ as a subset within a specific project.\n+required" + name: + type: "string" + title: "User provided value for the resource.\nIf none is provided the system\ + \ will generate a unique string.\n+optional" + spec: + title: "Additional fields necessary to launch the execution.\n+optional" + $ref: "#/definitions/adminExecutionSpec" + inputs: + title: "The inputs required to start the execution. All required inputs must\ + \ be\nincluded in this map. If not required and not provided, defaults apply.\n\ + +optional" + $ref: "#/definitions/coreLiteralMap" + description: "Request to launch an execution with the given project, domain and\ + \ optionally-assigned name." + adminExecutionCreateResponse: + type: "object" + properties: + id: + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + description: "The unique identifier for a successfully created execution.\nIf\ + \ the name was *not* specified in the create request, this identifier will include\ + \ a generated name." + example: + id: + domain: "domain" + name: "name" + project: "project" + adminExecutionList: + type: "object" + properties: + executions: + type: "array" + items: + $ref: "#/definitions/adminExecution" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Used as a response for request to list executions.\nSee :ref:`ref_flyteidl.admin.Execution`\ + \ for more details" + example: + executions: + - id: + domain: "domain" + name: "name" + project: "project" + closure: + outputs: + values: + literals: {} + uri: "uri" + phase: {} + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + created_at: "2000-01-23T04:56:07.000+00:00" + state_change_details: + occurred_at: "2000-01-23T04:56:07.000+00:00" + principal: "principal" + state: {} + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + computed_inputs: + literals: {} + abort_metadata: + principal: "principal" + cause: "cause" + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + abort_cause: "abort_cause" + output_data: + literals: {} + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + spec: + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 0 + system_metadata: + execution_cluster: "execution_cluster" + namespace: "namespace" + disable_all: true + inputs: + literals: {} + annotations: + values: + key: "values" + max_parallelism: 6 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + tags: + - "tags" + - "tags" + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + - id: + domain: "domain" + name: "name" + project: "project" + closure: + outputs: + values: + literals: {} + uri: "uri" + phase: {} + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + created_at: "2000-01-23T04:56:07.000+00:00" + state_change_details: + occurred_at: "2000-01-23T04:56:07.000+00:00" + principal: "principal" + state: {} + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + computed_inputs: + literals: {} + abort_metadata: + principal: "principal" + cause: "cause" + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + abort_cause: "abort_cause" + output_data: + literals: {} + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + spec: + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 0 + system_metadata: + execution_cluster: "execution_cluster" + namespace: "namespace" + disable_all: true + inputs: + literals: {} + annotations: + values: + key: "values" + max_parallelism: 6 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + tags: + - "tags" + - "tags" + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + token: "token" + adminExecutionMetadata: + type: "object" + properties: + mode: + $ref: "#/definitions/ExecutionMetadataExecutionMode" + principal: + type: "string" + description: "Identifier of the entity that triggered this execution.\nFor\ + \ systems using back-end authentication any value set here will be discarded\ + \ in favor of the\nauthenticated user context." + nesting: + type: "integer" + format: "int64" + description: "Indicates the nestedness of this execution.\nIf a user launches\ + \ a workflow execution, the default nesting is 0.\nIf this execution further\ + \ launches a workflow (child workflow), the nesting level is incremented\ + \ by 0 => 1\nGenerally, if workflow at nesting level k launches a workflow\ + \ then the child workflow will have\nnesting = k + 1." + scheduled_at: + type: "string" + format: "date-time" + description: "For scheduled executions, the requested time for execution for\ + \ this specific schedule invocation." + parent_node_execution: + title: "Which subworkflow node (if any) launched this execution" + $ref: "#/definitions/coreNodeExecutionIdentifier" + reference_execution: + description: "Optional, a reference workflow execution related to this execution.\n\ + In the case of a relaunch, this references the original workflow execution." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + system_metadata: + description: "Optional, platform-specific metadata about the execution.\n\ + In this the future this may be gated behind an ACL or some sort of authorization." + $ref: "#/definitions/adminSystemMetadata" + description: "Represents attributes about an execution which are not required\ + \ to launch the execution but are useful to record.\nThese attributes are assigned\ + \ at launch time and do not change." + example: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 0 + system_metadata: + execution_cluster: "execution_cluster" + namespace: "namespace" + adminExecutionQueueAttributes: + type: "object" + properties: + tags: + type: "array" + description: "Tags used for assigning execution queues for tasks defined within\ + \ this project." + items: + type: "string" + example: + tags: + - "tags" + - "tags" + adminExecutionRecoverRequest: + type: "object" + properties: + id: + description: "Identifier of the workflow execution to recover." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + name: + type: "string" + title: "User provided value for the recovered execution.\nIf none is provided\ + \ the system will generate a unique string.\n+optional" + metadata: + description: "Additional metadata which will be used to overwrite any metadata\ + \ in the reference execution when triggering a recovery execution." + $ref: "#/definitions/adminExecutionMetadata" + description: "Request to recover the referenced execution." + adminExecutionRelaunchRequest: + type: "object" + properties: + id: + title: "Identifier of the workflow execution to relaunch.\n+required" + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + name: + type: "string" + title: "User provided value for the relaunched execution.\nIf none is provided\ + \ the system will generate a unique string.\n+optional" + overwrite_cache: + type: "boolean" + format: "boolean" + description: "Allows for all cached values of a workflow and its tasks to\ + \ be overwritten for a single execution.\nIf enabled, all calculations are\ + \ performed even if cached results would be available, overwriting the stored\n\ + data once execution finishes successfully." + description: "Request to relaunch the referenced execution." + adminExecutionSpec: + type: "object" + properties: + launch_plan: + title: "Launch plan to be executed" + $ref: "#/definitions/coreIdentifier" + inputs: + title: "Input values to be passed for the execution" + $ref: "#/definitions/coreLiteralMap" + metadata: + title: "Metadata for the execution" + $ref: "#/definitions/adminExecutionMetadata" + notifications: + description: "List of notifications based on Execution status transitions\n\ + When this list is not empty it is used rather than any notifications defined\ + \ in the referenced launch plan.\nWhen this list is empty, the notifications\ + \ defined for the launch plan will be applied." + $ref: "#/definitions/adminNotificationList" + disable_all: + type: "boolean" + format: "boolean" + description: "This should be set to true if all notifications are intended\ + \ to be disabled for this execution." + labels: + description: "Labels to apply to the execution resource." + $ref: "#/definitions/adminLabels" + annotations: + description: "Annotations to apply to the execution resource." + $ref: "#/definitions/adminAnnotations" + security_context: + description: "Optional: security context override to apply this execution." + $ref: "#/definitions/coreSecurityContext" + auth_role: + description: "Optional: auth override to apply this execution." + $ref: "#/definitions/adminAuthRole" + quality_of_service: + description: "Indicates the runtime priority of the execution." + $ref: "#/definitions/coreQualityOfService" + max_parallelism: + type: "integer" + format: "int32" + description: "Controls the maximum number of task nodes that can be run in\ + \ parallel for the entire workflow.\nThis is useful to achieve fairness.\ + \ Note: MapTasks are regarded as one unit,\nand parallelism/concurrency\ + \ of MapTasks is independent from this." + raw_output_data_config: + title: "User setting to configure where to store offloaded data (i.e. Blobs,\ + \ structured datasets, query data, etc.).\nThis should be a prefix like\ + \ s3://my-bucket/my-data" + $ref: "#/definitions/adminRawOutputDataConfig" + cluster_assignment: + description: "Controls how to select an available cluster on which this execution\ + \ should run." + $ref: "#/definitions/adminClusterAssignment" + interruptible: + type: "boolean" + format: "boolean" + description: "Allows for the interruptible flag of a workflow to be overwritten\ + \ for a single execution.\nOmitting this field uses the workflow's value\ + \ as a default.\nAs we need to distinguish between the field not being provided\ + \ and its default value false, we have to use a wrapper\naround the bool\ + \ field." + overwrite_cache: + type: "boolean" + format: "boolean" + description: "Allows for all cached values of a workflow and its tasks to\ + \ be overwritten for a single execution.\nIf enabled, all calculations are\ + \ performed even if cached results would be available, overwriting the stored\n\ + data once execution finishes successfully." + envs: + description: "Environment variables to be set for the execution." + $ref: "#/definitions/adminEnvs" + tags: + type: "array" + description: "Tags to be set for the execution." + items: + type: "string" + description: "An ExecutionSpec encompasses all data used to launch this execution.\ + \ The Spec does not change over the lifetime\nof an execution as it progresses\ + \ across phase changes." + example: + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 0 + system_metadata: + execution_cluster: "execution_cluster" + namespace: "namespace" + disable_all: true + inputs: + literals: {} + annotations: + values: + key: "values" + max_parallelism: 6 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + tags: + - "tags" + - "tags" + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + adminExecutionState: + type: "string" + description: "The state of the execution is used to control its visibility in\ + \ the UI/CLI.\n\n - EXECUTION_ACTIVE: By default, all executions are considered\ + \ active.\n - EXECUTION_ARCHIVED: Archived executions are no longer visible\ + \ in the UI." + enum: + - "EXECUTION_ACTIVE" + - "EXECUTION_ARCHIVED" + default: "EXECUTION_ACTIVE" + adminExecutionStateChangeDetails: + type: "object" + properties: + state: + description: "The state of the execution is used to control its visibility\ + \ in the UI/CLI." + $ref: "#/definitions/adminExecutionState" + occurred_at: + type: "string" + format: "date-time" + description: "This timestamp represents when the state changed." + principal: + type: "string" + title: "Identifies the entity (if any) responsible for causing the state change\ + \ of the execution" + example: + occurred_at: "2000-01-23T04:56:07.000+00:00" + principal: "principal" + state: {} + adminExecutionTerminateRequest: + type: "object" + properties: + id: + description: "Uniquely identifies the individual workflow execution to be\ + \ terminated." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + cause: + type: "string" + description: "Optional reason for aborting." + description: "Request to terminate an in-progress execution. This action is irreversible.\n\ + If an execution is already terminated, this request will simply be a no-op.\n\ + This request will fail if it references a non-existent execution.\nIf the request\ + \ succeeds the phase \"ABORTED\" will be recorded for the termination\nwith\ + \ the optional cause added to the output_result." + adminExecutionTerminateResponse: + type: "object" + adminExecutionUpdateRequest: + type: "object" + properties: + id: + title: "Identifier of the execution to update" + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + state: + title: "State to set as the new value active/archive" + $ref: "#/definitions/adminExecutionState" + adminExecutionUpdateResponse: + type: "object" + adminFixedRate: + type: "object" + properties: + value: + type: "integer" + format: "int64" + unit: + $ref: "#/definitions/adminFixedRateUnit" + description: "Option for schedules run at a certain frequency e.g. every 2 minutes." + example: + unit: {} + value: 0 + adminFixedRateUnit: + type: "string" + description: "Represents a frequency at which to run a schedule." + enum: + - "MINUTE" + - "HOUR" + - "DAY" + default: "MINUTE" + adminFlyteURLs: + type: "object" + properties: + inputs: + type: "string" + outputs: + type: "string" + deck: + type: "string" + description: "These URLs are returned as part of node and task execution data\ + \ requests." + example: + outputs: "outputs" + inputs: "inputs" + deck: "deck" + adminGetVersionResponse: + type: "object" + properties: + control_plane_version: + title: "The control plane version information. FlyteAdmin and related components\n\ + form the control plane of Flyte" + $ref: "#/definitions/adminVersion" + title: "Response for the GetVersion API" + example: + control_plane_version: + Version: "Version" + Build: "Build" + BuildTime: "BuildTime" + adminLabels: + type: "object" + properties: + values: + type: "object" + description: "Map of custom labels to be applied to the execution resource." + additionalProperties: + type: "string" + description: "Label values to be applied to an execution resource.\nIn the future\ + \ a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge\ + \ labels defined at registration and execution time." + example: + values: + key: "values" + adminLaunchPlan: + type: "object" + properties: + id: + description: "Uniquely identifies a launch plan entity." + $ref: "#/definitions/coreIdentifier" + spec: + description: "User-provided launch plan details, including reference workflow,\ + \ inputs and other metadata." + $ref: "#/definitions/adminLaunchPlanSpec" + closure: + description: "Values computed by the flyte platform after launch plan registration." + $ref: "#/definitions/adminLaunchPlanClosure" + description: "A LaunchPlan provides the capability to templatize workflow executions.\n\ + Launch plans simplify associating one or more schedules, inputs and notifications\ + \ with your workflows.\nLaunch plans can be shared and used to trigger executions\ + \ with predefined inputs even when a workflow\ndefinition doesn't necessarily\ + \ have a default value for said input." + example: + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + spec: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: {} + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_schedule: + schedule: "schedule" + offset: "offset" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + max_parallelism: 5 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + adminLaunchPlanClosure: + type: "object" + properties: + state: + description: "Indicate the Launch plan state." + $ref: "#/definitions/adminLaunchPlanState" + expected_inputs: + title: "Indicates the set of inputs expected when creating an execution with\ + \ the Launch plan" + $ref: "#/definitions/coreParameterMap" + expected_outputs: + title: "Indicates the set of outputs expected to be produced by creating an\ + \ execution with the Launch plan" + $ref: "#/definitions/coreVariableMap" + created_at: + type: "string" + format: "date-time" + description: "Time at which the launch plan was created." + updated_at: + type: "string" + format: "date-time" + description: "Time at which the launch plan was last updated." + description: "Values computed by the flyte platform after launch plan registration.\n\ + These include expected_inputs required to be present in a CreateExecutionRequest\n\ + to launch the reference workflow as well timestamp values associated with the\ + \ launch plan." + example: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + adminLaunchPlanCreateRequest: + type: "object" + properties: + id: + description: "Uniquely identifies a launch plan entity." + $ref: "#/definitions/coreIdentifier" + spec: + description: "User-provided launch plan details, including reference workflow,\ + \ inputs and other metadata." + $ref: "#/definitions/adminLaunchPlanSpec" + description: "Request to register a launch plan. The included LaunchPlanSpec may\ + \ have a complete or incomplete set of inputs required\nto launch a workflow\ + \ execution. By default all launch plans are registered in state INACTIVE. If\ + \ you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest,\ + \ after you have successfully created a launch plan." + adminLaunchPlanCreateResponse: + type: "object" + adminLaunchPlanList: + type: "object" + properties: + launch_plans: + type: "array" + items: + $ref: "#/definitions/adminLaunchPlan" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Response object for list launch plan requests.\nSee :ref:`ref_flyteidl.admin.LaunchPlan`\ + \ for more details" + example: + launch_plans: + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + spec: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: {} + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_schedule: + schedule: "schedule" + offset: "offset" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + max_parallelism: 5 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + spec: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: {} + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_schedule: + schedule: "schedule" + offset: "offset" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + max_parallelism: 5 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + token: "token" + adminLaunchPlanMetadata: + type: "object" + properties: + schedule: + title: "Schedule to execute the Launch Plan" + $ref: "#/definitions/adminSchedule" + notifications: + type: "array" + title: "List of notifications based on Execution status transitions" + items: + $ref: "#/definitions/adminNotification" + description: "Additional launch plan attributes included in the LaunchPlanSpec\ + \ not strictly required to launch\nthe reference workflow." + example: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_schedule: + schedule: "schedule" + offset: "offset" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminLaunchPlanSpec: + type: "object" + properties: + workflow_id: + title: "Reference to the Workflow template that the launch plan references" + $ref: "#/definitions/coreIdentifier" + entity_metadata: + title: "Metadata for the Launch Plan" + $ref: "#/definitions/adminLaunchPlanMetadata" + default_inputs: + description: "Input values to be passed for the execution.\nThese can be overriden\ + \ when an execution is created with this launch plan." + $ref: "#/definitions/coreParameterMap" + fixed_inputs: + description: "Fixed, non-overridable inputs for the Launch Plan.\nThese can\ + \ not be overriden when an execution is created with this launch plan." + $ref: "#/definitions/coreLiteralMap" + role: + type: "string" + title: "String to indicate the role to use to execute the workflow underneath" + labels: + description: "Custom labels to be applied to the execution resource." + $ref: "#/definitions/adminLabels" + annotations: + description: "Custom annotations to be applied to the execution resource." + $ref: "#/definitions/adminAnnotations" + auth: + description: "Indicates the permission associated with workflow executions\ + \ triggered with this launch plan." + $ref: "#/definitions/adminAuth" + auth_role: + $ref: "#/definitions/adminAuthRole" + security_context: + title: "Indicates security context for permissions triggered with this launch\ + \ plan" + $ref: "#/definitions/coreSecurityContext" + quality_of_service: + description: "Indicates the runtime priority of the execution." + $ref: "#/definitions/coreQualityOfService" + raw_output_data_config: + description: "Encapsulates user settings pertaining to offloaded data (i.e.\ + \ Blobs, Schema, query data, etc.)." + $ref: "#/definitions/adminRawOutputDataConfig" + max_parallelism: + type: "integer" + format: "int32" + description: "Controls the maximum number of tasknodes that can be run in\ + \ parallel for the entire workflow.\nThis is useful to achieve fairness.\ + \ Note: MapTasks are regarded as one unit,\nand parallelism/concurrency\ + \ of MapTasks is independent from this." + interruptible: + type: "boolean" + format: "boolean" + description: "Allows for the interruptible flag of a workflow to be overwritten\ + \ for a single execution.\nOmitting this field uses the workflow's value\ + \ as a default.\nAs we need to distinguish between the field not being provided\ + \ and its default value false, we have to use a wrapper\naround the bool\ + \ field." + overwrite_cache: + type: "boolean" + format: "boolean" + description: "Allows for all cached values of a workflow and its tasks to\ + \ be overwritten for a single execution.\nIf enabled, all calculations are\ + \ performed even if cached results would be available, overwriting the stored\n\ + data once execution finishes successfully." + envs: + description: "Environment variables to be set for the execution." + $ref: "#/definitions/adminEnvs" + description: "User-provided launch plan definition and configuration values." + example: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: {} + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_schedule: + schedule: "schedule" + offset: "offset" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + max_parallelism: 5 + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + labels: + values: + key: "values" + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + auth_role: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + adminLaunchPlanState: + type: "string" + description: "By default any launch plan regardless of state can be used to launch\ + \ a workflow execution.\nHowever, at most one version of a launch plan\n(e.g.\ + \ a NamedEntityIdentifier set of shared project, domain and name values) can\ + \ be\nactive at a time in regards to *schedules*. That is, at most one schedule\ + \ in a NamedEntityIdentifier\ngroup will be observed and trigger executions\ + \ at a defined cadence." + enum: + - "INACTIVE" + - "ACTIVE" + default: "INACTIVE" + adminLaunchPlanUpdateRequest: + type: "object" + properties: + id: + description: "Identifier of launch plan for which to change state.\n+required." + $ref: "#/definitions/coreIdentifier" + state: + description: "Desired state to apply to the launch plan.\n+required." + $ref: "#/definitions/adminLaunchPlanState" + title: "Request to set the referenced launch plan state to the configured value.\n\ + See :ref:`ref_flyteidl.admin.LaunchPlan` for more details" + adminLaunchPlanUpdateResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminListMatchableAttributesResponse: + type: "object" + properties: + configurations: + type: "array" + items: + $ref: "#/definitions/adminMatchableAttributesConfiguration" + title: "Response for a request for all matching resource attributes for a resource\ + \ type.\nSee :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for\ + \ more details" + example: + configurations: + - launch_plan: "launch_plan" + workflow: "workflow" + domain: "domain" + project: "project" + attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - launch_plan: "launch_plan" + workflow: "workflow" + domain: "domain" + project: "project" + attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminLiteralMapBlob: + type: "object" + properties: + values: + title: "Data in LiteralMap format" + $ref: "#/definitions/coreLiteralMap" + uri: + type: "string" + title: "In the event that the map is too large, we return a uri to the data" + title: "Input/output data can represented by actual values or a link to where\ + \ values are stored" + example: + values: + literals: {} + uri: "uri" + adminMatchableAttributesConfiguration: + type: "object" + properties: + attributes: + $ref: "#/definitions/adminMatchingAttributes" + domain: + type: "string" + project: + type: "string" + workflow: + type: "string" + launch_plan: + type: "string" + description: "Represents a custom set of attributes applied for either a domain;\ + \ a domain and project; or\ndomain, project and workflow name.\nThese are used\ + \ to override system level defaults for kubernetes cluster resource management,\n\ + default execution values, and more all across different levels of specificity." + example: + launch_plan: "launch_plan" + workflow: "workflow" + domain: "domain" + project: "project" + attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminMatchableResource: + type: "string" + description: "Defines a resource that can be configured by customizable Project-,\ + \ ProjectDomain- or WorkflowAttributes\nbased on matching tags.\n\n - TASK_RESOURCE:\ + \ Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE:\ + \ Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE:\ + \ Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL:\ + \ Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ + \ Configures default quality of service when undefined in an execution spec.\n\ + \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for\ + \ a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable\ + \ workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls\ + \ how to select an available cluster on which this execution should run." + enum: + - "TASK_RESOURCE" + - "CLUSTER_RESOURCE" + - "EXECUTION_QUEUE" + - "EXECUTION_CLUSTER_LABEL" + - "QUALITY_OF_SERVICE_SPECIFICATION" + - "PLUGIN_OVERRIDE" + - "WORKFLOW_EXECUTION_CONFIG" + - "CLUSTER_ASSIGNMENT" + default: "TASK_RESOURCE" + adminMatchingAttributes: + type: "object" + properties: + task_resource_attributes: + $ref: "#/definitions/adminTaskResourceAttributes" + cluster_resource_attributes: + $ref: "#/definitions/adminClusterResourceAttributes" + execution_queue_attributes: + $ref: "#/definitions/adminExecutionQueueAttributes" + execution_cluster_label: + $ref: "#/definitions/adminExecutionClusterLabel" + quality_of_service: + $ref: "#/definitions/coreQualityOfService" + plugin_overrides: + $ref: "#/definitions/adminPluginOverrides" + workflow_execution_config: + $ref: "#/definitions/adminWorkflowExecutionConfig" + cluster_assignment: + $ref: "#/definitions/adminClusterAssignment" + description: "Generic container for encapsulating all types of the above attributes\ + \ messages." + example: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminNamedEntity: + type: "object" + properties: + resource_type: + description: "Resource type of the named entity. One of Task, Workflow or\ + \ LaunchPlan." + $ref: "#/definitions/coreResourceType" + id: + $ref: "#/definitions/adminNamedEntityIdentifier" + metadata: + description: "Additional metadata around a named entity." + $ref: "#/definitions/adminNamedEntityMetadata" + description: "Encapsulates information common to a NamedEntity, a Flyte resource\ + \ such as a task,\nworkflow or launch plan. A NamedEntity is exclusively identified\ + \ by its resource type\nand identifier." + example: + metadata: + description: "description" + state: {} + resource_type: {} + id: + domain: "domain" + name: "name" + project: "project" + adminNamedEntityIdentifier: + type: "object" + properties: + project: + type: "string" + description: "Name of the project the resource belongs to." + domain: + type: "string" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + name: + type: "string" + title: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + description: "Encapsulation of fields that identifies a Flyte resource.\nA Flyte\ + \ resource can be a task, workflow or launch plan.\nA resource can internally\ + \ have multiple versions and is uniquely identified\nby project, domain, and\ + \ name." + example: + domain: "domain" + name: "name" + project: "project" + adminNamedEntityIdentifierList: + type: "object" + properties: + entities: + type: "array" + description: "A list of identifiers." + items: + $ref: "#/definitions/adminNamedEntityIdentifier" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + description: "Represents a list of NamedEntityIdentifiers." + example: + entities: + - domain: "domain" + name: "name" + project: "project" + - domain: "domain" + name: "name" + project: "project" + token: "token" + adminNamedEntityList: + type: "object" + properties: + entities: + type: "array" + title: "A list of NamedEntity objects" + items: + $ref: "#/definitions/adminNamedEntity" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + description: "Represents a list of NamedEntityIdentifiers." + example: + entities: + - metadata: + description: "description" + state: {} + resource_type: {} + id: + domain: "domain" + name: "name" + project: "project" + - metadata: + description: "description" + state: {} + resource_type: {} + id: + domain: "domain" + name: "name" + project: "project" + token: "token" + adminNamedEntityMetadata: + type: "object" + properties: + description: + type: "string" + title: "Common description across all versions of the entity\n+optional" + state: + description: "Shared state across all version of the entity\nAt this point\ + \ in time, only workflow entities can have their state archived." + $ref: "#/definitions/adminNamedEntityState" + description: "Additional metadata around a named entity." + example: + description: "description" + state: {} + adminNamedEntityState: + type: "string" + description: "The status of the named entity is used to control its visibility\ + \ in the UI.\n\n - NAMED_ENTITY_ACTIVE: By default, all named entities are considered\ + \ active and under development.\n - NAMED_ENTITY_ARCHIVED: Archived named entities\ + \ are no longer visible in the UI.\n - SYSTEM_GENERATED: System generated entities\ + \ that aren't explicitly created or managed by a user." + enum: + - "NAMED_ENTITY_ACTIVE" + - "NAMED_ENTITY_ARCHIVED" + - "SYSTEM_GENERATED" + default: "NAMED_ENTITY_ACTIVE" + adminNamedEntityUpdateRequest: + type: "object" + properties: + resource_type: + title: "Resource type of the metadata to update\n+required" + $ref: "#/definitions/coreResourceType" + id: + title: "Identifier of the metadata to update\n+required" + $ref: "#/definitions/adminNamedEntityIdentifier" + metadata: + title: "Metadata object to set as the new value\n+required" + $ref: "#/definitions/adminNamedEntityMetadata" + description: "Request to set the referenced named entity state to the configured\ + \ value." + adminNamedEntityUpdateResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminNodeExecutionClosure: + type: "object" + properties: + output_uri: + type: "string" + description: "Links to a remotely stored, serialized core.LiteralMap of node\ + \ execution outputs.\nDEPRECATED. Use GetNodeExecutionData to fetch output\ + \ data instead." + error: + title: "Error information for the Node" + $ref: "#/definitions/coreExecutionError" + output_data: + description: "Raw output data produced by this node execution.\nDEPRECATED.\ + \ Use GetNodeExecutionData to fetch output data instead." + $ref: "#/definitions/coreLiteralMap" + phase: + description: "The last recorded phase for this node execution." + $ref: "#/definitions/coreNodeExecutionPhase" + started_at: + type: "string" + format: "date-time" + description: "Time at which the node execution began running." + duration: + type: "string" + description: "The amount of time the node execution spent running." + created_at: + type: "string" + format: "date-time" + description: "Time at which the node execution was created." + updated_at: + type: "string" + format: "date-time" + description: "Time at which the node execution was last updated." + workflow_node_metadata: + $ref: "#/definitions/flyteidladminWorkflowNodeMetadata" + task_node_metadata: + $ref: "#/definitions/flyteidladminTaskNodeMetadata" + deck_uri: + type: "string" + title: "String location uniquely identifying where the deck HTML file is.\n\ + NativeUrl specifies the url in the format of the configured storage provider\ + \ (e.g. s3://my-bucket/randomstring/suffix.tar)" + dynamic_job_spec_uri: + type: "string" + description: "dynamic_job_spec_uri is the location of the DynamicJobSpec proto\ + \ message for a DynamicWorkflow. This is required\nto correctly recover\ + \ partially completed executions where the subworkflow has already been\ + \ compiled." + description: "Container for node execution details and results." + example: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + task_node_metadata: + catalog_key: + source_task_execution: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + dataset_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + artifact_tag: + name: "name" + artifact_id: "artifact_id" + checkpoint_uri: "checkpoint_uri" + cache_status: {} + dynamic_job_spec_uri: "dynamic_job_spec_uri" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + output_data: + literals: {} + deck_uri: "deck_uri" + adminNodeExecutionEventRequest: + type: "object" + properties: + request_id: + type: "string" + title: "Unique ID for this request that can be traced between services" + event: + description: "Details about the event that occurred." + $ref: "#/definitions/eventNodeExecutionEvent" + description: "Request to send a notification that a node execution event has occurred." + adminNodeExecutionEventResponse: + type: "object" + adminNodeExecutionGetDataResponse: + type: "object" + properties: + inputs: + description: "Signed url to fetch a core.LiteralMap of node execution inputs.\n\ + Deprecated: Please use full_inputs instead." + $ref: "#/definitions/adminUrlBlob" + outputs: + description: "Signed url to fetch a core.LiteralMap of node execution outputs.\n\ + Deprecated: Please use full_outputs instead." + $ref: "#/definitions/adminUrlBlob" + full_inputs: + description: "Full_inputs will only be populated if they are under a configured\ + \ size threshold." + $ref: "#/definitions/coreLiteralMap" + full_outputs: + description: "Full_outputs will only be populated if they are under a configured\ + \ size threshold." + $ref: "#/definitions/coreLiteralMap" + dynamic_workflow: + description: "Optional Workflow closure for a dynamically generated workflow,\ + \ in the case this node yields a dynamic workflow we return its structure\ + \ here." + $ref: "#/definitions/flyteidladminDynamicWorkflowNodeMetadata" + flyte_urls: + $ref: "#/definitions/adminFlyteURLs" + description: "Response structure for NodeExecutionGetDataRequest which contains\ + \ inputs and outputs for a node execution." + example: + outputs: + bytes: "bytes" + url: "url" + flyte_urls: + outputs: "outputs" + inputs: "inputs" + deck: "deck" + full_inputs: + literals: {} + dynamic_workflow: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + dynamic_job_spec_uri: "dynamic_job_spec_uri" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + inputs: + bytes: "bytes" + url: "url" + full_outputs: + literals: {} + adminNodeExecutionList: + type: "object" + properties: + node_executions: + type: "array" + items: + $ref: "#/definitions/flyteidladminNodeExecution" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Request structure to retrieve a list of node execution entities.\nSee\ + \ :ref:`ref_flyteidl.admin.NodeExecution` for more details" + example: + node_executions: + - metadata: + retry_group: "retry_group" + is_parent_node: true + spec_node_id: "spec_node_id" + is_dynamic: true + input_uri: "input_uri" + id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + closure: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + task_node_metadata: + catalog_key: + source_task_execution: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + dataset_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + artifact_tag: + name: "name" + artifact_id: "artifact_id" + checkpoint_uri: "checkpoint_uri" + cache_status: {} + dynamic_job_spec_uri: "dynamic_job_spec_uri" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + output_data: + literals: {} + deck_uri: "deck_uri" + - metadata: + retry_group: "retry_group" + is_parent_node: true + spec_node_id: "spec_node_id" + is_dynamic: true + input_uri: "input_uri" + id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + closure: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + task_node_metadata: + catalog_key: + source_task_execution: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + dataset_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + artifact_tag: + name: "name" + artifact_id: "artifact_id" + checkpoint_uri: "checkpoint_uri" + cache_status: {} + dynamic_job_spec_uri: "dynamic_job_spec_uri" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + output_data: + literals: {} + deck_uri: "deck_uri" + token: "token" + adminNodeExecutionMetaData: + type: "object" + properties: + retry_group: + type: "string" + description: "Node executions are grouped depending on retries of the parent\n\ + Retry group is unique within the context of a parent node." + is_parent_node: + type: "boolean" + format: "boolean" + description: "Boolean flag indicating if the node has child nodes under it\n\ + This can be true when a node contains a dynamic workflow which then produces\n\ + child nodes." + spec_node_id: + type: "string" + title: "Node id of the node in the original workflow\nThis maps to value of\ + \ WorkflowTemplate.nodes[X].id" + is_dynamic: + type: "boolean" + format: "boolean" + description: "Boolean flag indicating if the node has contains a dynamic workflow\ + \ which then produces child nodes.\nThis is to distinguish between subworkflows\ + \ and dynamic workflows which can both have is_parent_node as true." + title: "Represents additional attributes related to a Node Execution" + example: + retry_group: "retry_group" + is_parent_node: true + spec_node_id: "spec_node_id" + is_dynamic: true + adminNotification: + type: "object" + properties: + phases: + type: "array" + title: "A list of phases to which users can associate the notifications to.\n\ + +required" + items: + $ref: "#/definitions/coreWorkflowExecutionPhase" + email: + $ref: "#/definitions/adminEmailNotification" + pager_duty: + $ref: "#/definitions/adminPagerDutyNotification" + slack: + $ref: "#/definitions/adminSlackNotification" + description: "Represents a structure for notifications based on execution status.\n\ + The notification content is configured within flyte admin but can be templatized.\n\ + Future iterations could expose configuring notifications with custom content." + example: + pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminNotificationList: + type: "object" + properties: + notifications: + type: "array" + items: + $ref: "#/definitions/adminNotification" + example: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminPagerDutyNotification: + type: "object" + properties: + recipients_email: + type: "array" + title: "Currently, PagerDuty notifications leverage email to trigger a notification.\n\ + +required" + items: + type: "string" + description: "Defines a pager duty notification specification." + example: + recipients_email: + - "recipients_email" + - "recipients_email" + adminPluginOverride: + type: "object" + properties: + task_type: + type: "string" + description: "A predefined yet extensible Task type identifier." + plugin_id: + type: "array" + description: "A set of plugin ids which should handle tasks of this type instead\ + \ of the default registered plugin. The list will be tried in order until\ + \ a plugin is found with that id." + items: + type: "string" + missing_plugin_behavior: + description: "Defines the behavior when no plugin from the plugin_id list\ + \ is not found." + $ref: "#/definitions/PluginOverrideMissingPluginBehavior" + description: "This MatchableAttribute configures selecting alternate plugin implementations\ + \ for a given task type.\nIn addition to an override implementation a selection\ + \ of fallbacks can be provided or other modes\nfor handling cases where the\ + \ desired plugin override is not enabled in a given Flyte deployment." + example: + plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminPluginOverrides: + type: "object" + properties: + overrides: + type: "array" + items: + $ref: "#/definitions/adminPluginOverride" + example: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminProject: + type: "object" + properties: + id: + type: "string" + description: "Globally unique project name." + name: + type: "string" + description: "Display name." + domains: + type: "array" + items: + $ref: "#/definitions/adminDomain" + description: + type: "string" + labels: + description: "Leverage Labels from flyteidl.admin.common.proto to\ntag projects\ + \ with ownership information." + $ref: "#/definitions/adminLabels" + state: + $ref: "#/definitions/ProjectProjectState" + description: "Top-level namespace used to classify different entities like workflows\ + \ and executions." + example: + name: "name" + domains: + - name: "name" + id: "id" + - name: "name" + id: "id" + description: "description" + id: "id" + state: {} + labels: + values: + key: "values" + adminProjectAttributes: + type: "object" + properties: + project: + type: "string" + description: "Unique project id for which this set of attributes will be applied." + matching_attributes: + $ref: "#/definitions/adminMatchingAttributes" + title: "Defines a set of custom matching attributes at the project level.\nFor\ + \ more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + example: + project: "project" + matching_attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminProjectAttributesDeleteRequest: + type: "object" + properties: + project: + type: "string" + title: "Unique project id which this set of attributes references.\n+required" + resource_type: + title: "Which type of matchable attributes to delete.\n+required" + $ref: "#/definitions/adminMatchableResource" + title: "Request to delete a set matchable project level attribute override.\n\ + For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + adminProjectAttributesDeleteResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminProjectAttributesGetResponse: + type: "object" + properties: + attributes: + $ref: "#/definitions/adminProjectAttributes" + title: "Response to get an individual project level attribute override.\nFor more\ + \ info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + example: + attributes: + project: "project" + matching_attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminProjectAttributesUpdateRequest: + type: "object" + properties: + attributes: + title: "+required" + $ref: "#/definitions/adminProjectAttributes" + title: "Sets custom attributes for a project\nFor more info on matchable attributes,\ + \ see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + adminProjectAttributesUpdateResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminProjectDomainAttributes: + type: "object" + properties: + project: + type: "string" + description: "Unique project id for which this set of attributes will be applied." + domain: + type: "string" + description: "Unique domain id for which this set of attributes will be applied." + matching_attributes: + $ref: "#/definitions/adminMatchingAttributes" + title: "Defines a set of custom matching attributes which defines resource defaults\ + \ for a project and domain.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + example: + domain: "domain" + project: "project" + matching_attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminProjectDomainAttributesDeleteRequest: + type: "object" + properties: + project: + type: "string" + title: "Unique project id which this set of attributes references.\n+required" + domain: + type: "string" + title: "Unique domain id which this set of attributes references.\n+required" + resource_type: + title: "Which type of matchable attributes to delete.\n+required" + $ref: "#/definitions/adminMatchableResource" + title: "Request to delete a set matchable project domain attribute override.\n\ + For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + adminProjectDomainAttributesDeleteResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminProjectDomainAttributesGetResponse: + type: "object" + properties: + attributes: + $ref: "#/definitions/adminProjectDomainAttributes" + title: "Response to get an individual project domain attribute override.\nFor\ + \ more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + example: + attributes: + domain: "domain" + project: "project" + matching_attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminProjectDomainAttributesUpdateRequest: + type: "object" + properties: + attributes: + title: "+required" + $ref: "#/definitions/adminProjectDomainAttributes" + title: "Sets custom attributes for a project-domain combination.\nFor more info\ + \ on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + adminProjectDomainAttributesUpdateResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminProjectRegisterRequest: + type: "object" + properties: + project: + title: "+required" + $ref: "#/definitions/adminProject" + title: "Adds a new user-project within the Flyte deployment.\nSee :ref:`ref_flyteidl.admin.Project`\ + \ for more details" + adminProjectRegisterResponse: + type: "object" + description: "Purposefully empty, may be updated in the future." + adminProjectUpdateResponse: + type: "object" + description: "Purposefully empty, may be updated in the future." + adminProjects: + type: "object" + properties: + projects: + type: "array" + items: + $ref: "#/definitions/adminProject" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Represents a list of projects.\nSee :ref:`ref_flyteidl.admin.Project`\ + \ for more details" + example: + projects: + - name: "name" + domains: + - name: "name" + id: "id" + - name: "name" + id: "id" + description: "description" + id: "id" + state: {} + labels: + values: + key: "values" + - name: "name" + domains: + - name: "name" + id: "id" + - name: "name" + id: "id" + description: "description" + id: "id" + state: {} + labels: + values: + key: "values" + token: "token" + adminRawOutputDataConfig: + type: "object" + properties: + output_location_prefix: + type: "string" + title: "Prefix for where offloaded data from user workflows will be written\n\ + e.g. s3://bucket/key or s3://bucket/" + description: "Encapsulates user settings pertaining to offloaded data (i.e. Blobs,\ + \ Schema, query data, etc.).\nSee https://github.com/flyteorg/flyte/issues/211\ + \ for more background information." + example: + output_location_prefix: "output_location_prefix" + adminReason: + type: "object" + properties: + occurred_at: + type: "string" + format: "date-time" + description: "occurred_at is the timestamp indicating the instant that this\ + \ reason happened." + message: + type: "string" + description: "message is the explanation for the most recent phase transition\ + \ or status update." + description: "Reason is a single message annotated with a timestamp to indicate\ + \ the instant the reason occurred." + example: + occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + adminSchedule: + type: "object" + properties: + cron_expression: + type: "string" + title: "Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year\n\ + e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" + rate: + $ref: "#/definitions/adminFixedRate" + cron_schedule: + $ref: "#/definitions/adminCronSchedule" + kickoff_time_input_arg: + type: "string" + description: "Name of the input variable that the kickoff time will be supplied\ + \ to when the workflow is kicked off." + description: "Defines complete set of information required to trigger an execution\ + \ on a schedule." + example: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_schedule: + schedule: "schedule" + offset: "offset" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + adminSlackNotification: + type: "object" + properties: + recipients_email: + type: "array" + title: "Currently, Slack notifications leverage email to trigger a notification.\n\ + +required" + items: + type: "string" + description: "Defines a slack notification specification." + example: + recipients_email: + - "recipients_email" + - "recipients_email" + adminSort: + type: "object" + properties: + key: + type: "string" + title: "Indicates an attribute to sort the response values.\n+required" + direction: + title: "Indicates the direction to apply sort key for response values.\n+optional" + $ref: "#/definitions/SortDirection" + description: "Specifies sort ordering in a list request." + adminSourceCode: + type: "object" + properties: + link: + type: "string" + title: "Link to source code used to define this entity" + example: + link: "link" + adminSystemMetadata: + type: "object" + properties: + execution_cluster: + type: "string" + description: "Which execution cluster this execution ran on." + namespace: + type: "string" + description: "Which kubernetes namespace the execution ran under." + description: "Represents system, rather than user-facing, metadata about an execution." + example: + execution_cluster: "execution_cluster" + namespace: "namespace" + adminTask: + type: "object" + properties: + id: + description: "id represents the unique identifier of the task." + $ref: "#/definitions/coreIdentifier" + closure: + description: "closure encapsulates all the fields that maps to a compiled\ + \ version of the task." + $ref: "#/definitions/adminTaskClosure" + short_description: + type: "string" + description: "One-liner overview of the entity." + description: "Flyte workflows are composed of many ordered tasks. That is small,\ + \ reusable, self-contained logical blocks\narranged to process workflow inputs\ + \ and produce a deterministic set of outputs.\nTasks can come in many varieties\ + \ tuned for specialized behavior." + example: + short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + adminTaskClosure: + type: "object" + properties: + compiled_task: + description: "Represents the compiled representation of the task from the\ + \ specification provided." + $ref: "#/definitions/coreCompiledTask" + created_at: + type: "string" + format: "date-time" + description: "Time at which the task was created." + description: "Compute task attributes which include values derived from the TaskSpec,\ + \ as well as plugin-specific data\nand task metadata." + example: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + adminTaskExecutionClosure: + type: "object" + properties: + output_uri: + type: "string" + description: "Path to remote data store where output blob is stored if the\ + \ execution succeeded (and produced outputs).\nDEPRECATED. Use GetTaskExecutionData\ + \ to fetch output data instead." + error: + description: "Error information for the task execution. Populated if the execution\ + \ failed." + $ref: "#/definitions/coreExecutionError" + output_data: + description: "Raw output data produced by this task execution.\nDEPRECATED.\ + \ Use GetTaskExecutionData to fetch output data instead." + $ref: "#/definitions/coreLiteralMap" + phase: + description: "The last recorded phase for this task execution." + $ref: "#/definitions/coreTaskExecutionPhase" + logs: + type: "array" + description: "Detailed log information output by the task execution." + items: + $ref: "#/definitions/coreTaskLog" + started_at: + type: "string" + format: "date-time" + description: "Time at which the task execution began running." + duration: + type: "string" + description: "The amount of time the task execution spent running." + created_at: + type: "string" + format: "date-time" + description: "Time at which the task execution was created." + updated_at: + type: "string" + format: "date-time" + description: "Time at which the task execution was last updated." + custom_info: + description: "Custom data specific to the task plugin." + $ref: "#/definitions/protobufStruct" + reason: + type: "string" + description: "If there is an explanation for the most recent phase transition,\ + \ the reason will capture it." + task_type: + type: "string" + description: "A predefined yet extensible Task type identifier." + metadata: + description: "Metadata around how a task was executed." + $ref: "#/definitions/flyteidleventTaskExecutionMetadata" + event_version: + type: "integer" + format: "int32" + description: "The event version is used to indicate versioned changes in how\ + \ data is maintained using this\nproto message. For example, event_verison\ + \ > 0 means that maps tasks logs use the\nTaskExecutionMetadata ExternalResourceInfo\ + \ fields for each subtask rather than the TaskLog\nin this message." + reasons: + type: "array" + description: "A time-series of the phase transition or update explanations.\ + \ This, when compared to storing a singular reason\nas previously done,\ + \ is much more valuable in visualizing and understanding historical evaluations." + items: + $ref: "#/definitions/adminReason" + description: "Container for task execution details and results." + example: + phase: {} + reason: "reason" + metadata: + external_resources: + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + instance_class: {} + resource_pool_info: + - allocation_token: "allocation_token" + namespace: "namespace" + - allocation_token: "allocation_token" + namespace: "namespace" + generated_name: "generated_name" + plugin_identifier: "plugin_identifier" + reasons: + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + event_version: 1 + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + task_type: "task_type" + output_data: + literals: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + adminTaskExecutionEventRequest: + type: "object" + properties: + request_id: + type: "string" + title: "Unique ID for this request that can be traced between services" + event: + description: "Details about the event that occurred." + $ref: "#/definitions/eventTaskExecutionEvent" + description: "Request to send a notification that a task execution event has occurred." + adminTaskExecutionEventResponse: + type: "object" + adminTaskExecutionGetDataResponse: + type: "object" + properties: + inputs: + description: "Signed url to fetch a core.LiteralMap of task execution inputs.\n\ + Deprecated: Please use full_inputs instead." + $ref: "#/definitions/adminUrlBlob" + outputs: + description: "Signed url to fetch a core.LiteralMap of task execution outputs.\n\ + Deprecated: Please use full_outputs instead." + $ref: "#/definitions/adminUrlBlob" + full_inputs: + description: "Full_inputs will only be populated if they are under a configured\ + \ size threshold." + $ref: "#/definitions/coreLiteralMap" + full_outputs: + description: "Full_outputs will only be populated if they are under a configured\ + \ size threshold." + $ref: "#/definitions/coreLiteralMap" + flyte_urls: + title: "flyte tiny url to fetch a core.LiteralMap of task execution's IO\n\ + Deck will be empty for task" + $ref: "#/definitions/adminFlyteURLs" + description: "Response structure for TaskExecutionGetDataRequest which contains\ + \ inputs and outputs for a task execution." + example: + outputs: + bytes: "bytes" + url: "url" + flyte_urls: + outputs: "outputs" + inputs: "inputs" + deck: "deck" + full_inputs: + literals: {} + inputs: + bytes: "bytes" + url: "url" + full_outputs: + literals: {} + adminTaskExecutionList: + type: "object" + properties: + task_executions: + type: "array" + items: + $ref: "#/definitions/flyteidladminTaskExecution" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Response structure for a query to list of task execution entities.\nSee\ + \ :ref:`ref_flyteidl.admin.TaskExecution` for more details" + example: + task_executions: + - input_uri: "input_uri" + id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + is_parent: true + closure: + phase: {} + reason: "reason" + metadata: + external_resources: + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + instance_class: {} + resource_pool_info: + - allocation_token: "allocation_token" + namespace: "namespace" + - allocation_token: "allocation_token" + namespace: "namespace" + generated_name: "generated_name" + plugin_identifier: "plugin_identifier" + reasons: + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + event_version: 1 + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + task_type: "task_type" + output_data: + literals: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - input_uri: "input_uri" + id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + is_parent: true + closure: + phase: {} + reason: "reason" + metadata: + external_resources: + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + instance_class: {} + resource_pool_info: + - allocation_token: "allocation_token" + namespace: "namespace" + - allocation_token: "allocation_token" + namespace: "namespace" + generated_name: "generated_name" + plugin_identifier: "plugin_identifier" + reasons: + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + event_version: 1 + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + task_type: "task_type" + output_data: + literals: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + token: "token" + adminTaskList: + type: "object" + properties: + tasks: + type: "array" + description: "A list of tasks returned based on the request." + items: + $ref: "#/definitions/adminTask" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Represents a list of tasks returned from the admin.\nSee :ref:`ref_flyteidl.admin.Task`\ + \ for more details" + example: + tasks: + - short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + token: "token" + adminTaskResourceAttributes: + type: "object" + properties: + defaults: + $ref: "#/definitions/adminTaskResourceSpec" + limits: + $ref: "#/definitions/adminTaskResourceSpec" + description: "Defines task resource defaults and limits that will be applied at\ + \ task registration." + example: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + adminTaskResourceSpec: + type: "object" + properties: + cpu: + type: "string" + gpu: + type: "string" + memory: + type: "string" + storage: + type: "string" + ephemeral_storage: + type: "string" + description: "Defines a set of overridable task resource attributes set during\ + \ task registration." + example: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + adminTaskSpec: + type: "object" + properties: + template: + description: "Template of the task that encapsulates all the metadata of the\ + \ task." + $ref: "#/definitions/coreTaskTemplate" + description: + description: "Represents the specification for description entity." + $ref: "#/definitions/adminDescriptionEntity" + description: "Represents a structure that encapsulates the user-configured specification\ + \ of the task." + adminUrlBlob: + type: "object" + properties: + url: + type: "string" + description: "Actual url value." + bytes: + type: "string" + format: "int64" + description: "Represents the size of the file accessible at the above url." + description: "Represents a string url and associated metadata used throughout\ + \ the platform." + example: + bytes: "bytes" + url: "url" + adminVersion: + type: "object" + properties: + Build: + type: "string" + title: "Specifies the GIT sha of the build" + Version: + type: "string" + title: "Version for the build, should follow a semver" + BuildTime: + type: "string" + title: "Build timestamp" + title: "Provides Version information for a component" + example: + Version: "Version" + Build: "Build" + BuildTime: "BuildTime" + adminWorkflow: + type: "object" + properties: + id: + description: "id represents the unique identifier of the workflow." + $ref: "#/definitions/coreIdentifier" + closure: + description: "closure encapsulates all the fields that maps to a compiled\ + \ version of the workflow." + $ref: "#/definitions/adminWorkflowClosure" + short_description: + type: "string" + description: "One-liner overview of the entity." + description: "Represents the workflow structure stored in the Admin\nA workflow\ + \ is created by ordering tasks and associating outputs to inputs\nin order to\ + \ produce a directed-acyclic execution graph." + example: + short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + adminWorkflowAttributes: + type: "object" + properties: + project: + type: "string" + description: "Unique project id for which this set of attributes will be applied." + domain: + type: "string" + description: "Unique domain id for which this set of attributes will be applied." + workflow: + type: "string" + description: "Workflow name for which this set of attributes will be applied." + matching_attributes: + $ref: "#/definitions/adminMatchingAttributes" + title: "Defines a set of custom matching attributes which defines resource defaults\ + \ for a project, domain and workflow.\nFor more info on matchable attributes,\ + \ see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + example: + workflow: "workflow" + domain: "domain" + project: "project" + matching_attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminWorkflowAttributesDeleteRequest: + type: "object" + properties: + project: + type: "string" + title: "Unique project id which this set of attributes references.\n+required" + domain: + type: "string" + title: "Unique domain id which this set of attributes references.\n+required" + workflow: + type: "string" + title: "Workflow name which this set of attributes references.\n+required" + resource_type: + title: "Which type of matchable attributes to delete.\n+required" + $ref: "#/definitions/adminMatchableResource" + title: "Request to delete a set matchable workflow attribute override.\nFor more\ + \ info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + adminWorkflowAttributesDeleteResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminWorkflowAttributesGetResponse: + type: "object" + properties: + attributes: + $ref: "#/definitions/adminWorkflowAttributes" + description: "Response to get an individual workflow attribute override." + example: + attributes: + workflow: "workflow" + domain: "domain" + project: "project" + matching_attributes: + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + workflow_execution_config: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + cluster_assignment: + cluster_pool_name: "cluster_pool_name" + cluster_resource_attributes: + attributes: + key: "attributes" + execution_queue_attributes: + tags: + - "tags" + - "tags" + task_resource_attributes: + defaults: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + limits: + memory: "memory" + cpu: "cpu" + ephemeral_storage: "ephemeral_storage" + storage: "storage" + gpu: "gpu" + execution_cluster_label: + value: "value" + plugin_overrides: + overrides: + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + - plugin_id: + - "plugin_id" + - "plugin_id" + missing_plugin_behavior: {} + task_type: "task_type" + adminWorkflowAttributesUpdateRequest: + type: "object" + properties: + attributes: + $ref: "#/definitions/adminWorkflowAttributes" + title: "Sets custom attributes for a project, domain and workflow combination.\n\ + For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + adminWorkflowAttributesUpdateResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminWorkflowClosure: + type: "object" + properties: + compiled_workflow: + description: "Represents the compiled representation of the workflow from\ + \ the specification provided." + $ref: "#/definitions/coreCompiledWorkflowClosure" + created_at: + type: "string" + format: "date-time" + description: "Time at which the workflow was created." + description: "A container holding the compiled workflow produced from the WorkflowSpec\ + \ and additional metadata." + example: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + adminWorkflowCreateRequest: + type: "object" + properties: + id: + title: "id represents the unique identifier of the workflow.\n+required" + $ref: "#/definitions/coreIdentifier" + spec: + title: "Represents the specification for workflow.\n+required" + $ref: "#/definitions/adminWorkflowSpec" + title: "Represents a request structure to create a revision of a workflow.\nSee\ + \ :ref:`ref_flyteidl.admin.Workflow` for more details" + adminWorkflowCreateResponse: + type: "object" + adminWorkflowExecutionConfig: + type: "object" + properties: + max_parallelism: + type: "integer" + format: "int32" + description: "Can be used to control the number of parallel nodes to run within\ + \ the workflow. This is useful to achieve fairness." + security_context: + description: "Indicates security context permissions for executions triggered\ + \ with this matchable attribute." + $ref: "#/definitions/coreSecurityContext" + raw_output_data_config: + description: "Encapsulates user settings pertaining to offloaded data (i.e.\ + \ Blobs, Schema, query data, etc.)." + $ref: "#/definitions/adminRawOutputDataConfig" + labels: + description: "Custom labels to be applied to a triggered execution resource." + $ref: "#/definitions/adminLabels" + annotations: + description: "Custom annotations to be applied to a triggered execution resource." + $ref: "#/definitions/adminAnnotations" + interruptible: + type: "boolean" + format: "boolean" + description: "Allows for the interruptible flag of a workflow to be overwritten\ + \ for a single execution.\nOmitting this field uses the workflow's value\ + \ as a default.\nAs we need to distinguish between the field not being provided\ + \ and its default value false, we have to use a wrapper\naround the bool\ + \ field." + overwrite_cache: + type: "boolean" + format: "boolean" + description: "Allows for all cached values of a workflow and its tasks to\ + \ be overwritten for a single execution.\nIf enabled, all calculations are\ + \ performed even if cached results would be available, overwriting the stored\n\ + data once execution finishes successfully." + envs: + description: "Environment variables to be set for the execution." + $ref: "#/definitions/adminEnvs" + description: "Adds defaults for customizable workflow-execution specifications\ + \ and overrides." + example: + overwrite_cache: true + raw_output_data_config: + output_location_prefix: "output_location_prefix" + max_parallelism: 0 + annotations: + values: + key: "values" + envs: + values: + - value: "value" + key: "key" + - value: "value" + key: "key" + interruptible: true + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + labels: + values: + key: "values" + adminWorkflowExecutionEventRequest: + type: "object" + properties: + request_id: + type: "string" + title: "Unique ID for this request that can be traced between services" + event: + description: "Details about the event that occurred." + $ref: "#/definitions/eventWorkflowExecutionEvent" + description: "Request to send a notification that a workflow execution event has\ + \ occurred." + adminWorkflowExecutionEventResponse: + type: "object" + adminWorkflowExecutionGetDataResponse: + type: "object" + properties: + outputs: + description: "Signed url to fetch a core.LiteralMap of execution outputs.\n\ + Deprecated: Please use full_outputs instead." + $ref: "#/definitions/adminUrlBlob" + inputs: + description: "Signed url to fetch a core.LiteralMap of execution inputs.\n\ + Deprecated: Please use full_inputs instead." + $ref: "#/definitions/adminUrlBlob" + full_inputs: + description: "Full_inputs will only be populated if they are under a configured\ + \ size threshold." + $ref: "#/definitions/coreLiteralMap" + full_outputs: + description: "Full_outputs will only be populated if they are under a configured\ + \ size threshold." + $ref: "#/definitions/coreLiteralMap" + description: "Response structure for WorkflowExecutionGetDataRequest which contains\ + \ inputs and outputs for an execution." + example: + outputs: + bytes: "bytes" + url: "url" + full_inputs: + literals: {} + inputs: + bytes: "bytes" + url: "url" + full_outputs: + literals: {} + adminWorkflowExecutionGetMetricsResponse: + type: "object" + properties: + span: + description: "Span defines the top-level breakdown of the workflows execution.\ + \ More precise information is nested in a\nhierarchical structure using\ + \ Flyte entity references." + $ref: "#/definitions/coreSpan" + description: "WorkflowExecutionGetMetricsResponse represents the response containing\ + \ metrics for the specified workflow execution." + example: + span: + start_time: "2000-01-23T04:56:07.000+00:00" + spans: + - null + - null + workflow_id: + domain: "domain" + name: "name" + project: "project" + end_time: "2000-01-23T04:56:07.000+00:00" + task_id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + operation_id: "operation_id" + node_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + adminWorkflowList: + type: "object" + properties: + workflows: + type: "array" + description: "A list of workflows returned based on the request." + items: + $ref: "#/definitions/adminWorkflow" + token: + type: "string" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query. If there are no\ + \ more results, this value will be empty." + title: "Represents a list of workflows returned from the admin.\nSee :ref:`ref_flyteidl.admin.Workflow`\ + \ for more details" + example: + workflows: + - short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + - short_description: "short_description" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + token: "token" + adminWorkflowSpec: + type: "object" + properties: + template: + description: "Template of the task that encapsulates all the metadata of the\ + \ workflow." + $ref: "#/definitions/coreWorkflowTemplate" + sub_workflows: + type: "array" + description: "Workflows that are embedded into other workflows need to be\ + \ passed alongside the parent workflow to the\npropeller compiler (since\ + \ the compiler doesn't have any knowledge of other workflows - ie, it doesn't\ + \ reach out\nto Admin to see other registered workflows). In fact, subworkflows\ + \ do not even need to be registered." + items: + $ref: "#/definitions/coreWorkflowTemplate" + description: + description: "Represents the specification for description entity." + $ref: "#/definitions/adminDescriptionEntity" + description: "Represents a structure that encapsulates the specification of the\ + \ workflow." + coreAlias: + type: "object" + properties: + var: + type: "string" + description: "Must match one of the output variable names on a node." + alias: + type: "string" + description: "A workflow-level unique alias that downstream nodes can refer\ + \ to in their input." + description: "Links a variable to an alias." + example: + var: "var" + alias: "alias" + coreApproveCondition: + type: "object" + properties: + signal_id: + type: "string" + description: "A unique identifier for the requested boolean signal." + description: "ApproveCondition represents a dependency on an external approval.\ + \ During execution, this will manifest as a boolean\nsignal with the provided\ + \ signal_id." + example: + signal_id: "signal_id" + coreArrayNode: + type: "object" + properties: + node: + description: "node is the sub-node that will be executed for each element\ + \ in the array." + $ref: "#/definitions/coreNode" + parallelism: + type: "integer" + format: "int64" + description: "parallelism defines the minimum number of instances to bring\ + \ up concurrently at any given\npoint. Note that this is an optimistic restriction\ + \ and that, due to network partitioning or\nother failures, the actual number\ + \ of currently running instances might be more. This has to\nbe a positive\ + \ number if assigned. Default value is size." + min_successes: + type: "integer" + format: "int64" + description: "min_successes is an absolute number of the minimum number of\ + \ successful completions of\nsub-nodes. As soon as this criteria is met,\ + \ the ArrayNode will be marked as successful\nand outputs will be computed.\ + \ This has to be a non-negative number if assigned. Default\nvalue is size\ + \ (if specified)." + min_success_ratio: + type: "number" + format: "float" + description: "If the array job size is not known beforehand, the min_success_ratio\ + \ can instead be used\nto determine when an ArrayNode can be marked successful." + description: "ArrayNode is a Flyte node type that simplifies the execution of\ + \ a sub-node over a list of input\nvalues. An ArrayNode can be executed with\ + \ configurable parallelism (separate from the parent\nworkflow) and can be configured\ + \ to succeed when a certain number of sub-nodes succeed." + example: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + coreBinary: + type: "object" + properties: + value: + type: "string" + format: "byte" + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + tag: + type: "string" + description: "A simple byte array with a tag to help different parts of the system\ + \ communicate about what is in the byte array.\nIt's strongly advisable that\ + \ consumers of this type define a unique tag and validate the tag before parsing\ + \ the data." + example: + tag: "tag" + value: "value" + coreBinding: + type: "object" + properties: + var: + type: "string" + description: "Variable name must match an input/output variable of the node." + binding: + description: "Data to use to bind this variable." + $ref: "#/definitions/coreBindingData" + description: "An input/output binding of a variable to either static value or\ + \ a node output." + example: + var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + coreBindingData: + type: "object" + properties: + scalar: + description: "A simple scalar value." + $ref: "#/definitions/coreScalar" + collection: + description: "A collection of binding data. This allows nesting of binding\ + \ data to any number\nof levels." + $ref: "#/definitions/coreBindingDataCollection" + promise: + description: "References an output promised by another node." + $ref: "#/definitions/coreOutputReference" + map: + description: "A map of bindings. The key is always a string." + $ref: "#/definitions/coreBindingDataMap" + union: + $ref: "#/definitions/coreUnionInfo" + description: "Specifies either a simple value or a reference to another output." + example: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + coreBindingDataCollection: + type: "object" + properties: + bindings: + type: "array" + items: + $ref: "#/definitions/coreBindingData" + description: "A collection of BindingData items." + example: + bindings: + - null + - null + coreBindingDataMap: + type: "object" + properties: + bindings: + type: "object" + additionalProperties: + $ref: "#/definitions/coreBindingData" + description: "A map of BindingData items." + example: + bindings: {} + coreBlob: + type: "object" + properties: + metadata: + $ref: "#/definitions/coreBlobMetadata" + uri: + type: "string" + description: "Refers to an offloaded set of files. It encapsulates the type of\ + \ the store and a unique uri for where the data is.\nThere are no restrictions\ + \ on how the uri is formatted since it will depend on how to interact with the\ + \ store." + example: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + coreBlobMetadata: + type: "object" + properties: + type: + $ref: "#/definitions/coreBlobType" + example: + type: + dimensionality: {} + format: "format" + coreBlobType: + type: "object" + properties: + format: + type: "string" + title: "Format can be a free form string understood by SDK/UI etc like\ncsv,\ + \ parquet etc" + dimensionality: + $ref: "#/definitions/BlobTypeBlobDimensionality" + title: "Defines type behavior for blob objects" + example: + dimensionality: {} + format: "format" + coreBooleanExpression: + type: "object" + properties: + conjunction: + $ref: "#/definitions/coreConjunctionExpression" + comparison: + $ref: "#/definitions/coreComparisonExpression" + description: "Defines a boolean expression tree. It can be a simple or a conjunction\ + \ expression.\nMultiple expressions can be combined using a conjunction or a\ + \ disjunction to result in a final boolean result." + example: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + coreBranchNode: + type: "object" + properties: + if_else: + title: "+required" + $ref: "#/definitions/coreIfElseBlock" + description: "BranchNode is a special node that alter the flow of the workflow\ + \ graph. It allows the control flow to branch at\nruntime based on a series\ + \ of conditions that get evaluated on various parameters (e.g. inputs, primitives)." + example: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + coreCatalogArtifactTag: + type: "object" + properties: + artifact_id: + type: "string" + title: "Artifact ID is generated name" + name: + type: "string" + title: "Flyte computes the tag automatically, as the hash of the values" + example: + name: "name" + artifact_id: "artifact_id" + coreCatalogCacheStatus: + type: "string" + title: "Indicates the status of CatalogCaching. The reason why this is not embedded\ + \ in TaskNodeMetadata is, that we may use for other types of nodes as well in\ + \ the future" + description: "- CACHE_DISABLED: Used to indicate that caching was disabled\n -\ + \ CACHE_MISS: Used to indicate that the cache lookup resulted in no matches\n\ + \ - CACHE_HIT: used to indicate that the associated artifact was a result of\ + \ a previous execution\n - CACHE_POPULATED: used to indicate that the resultant\ + \ artifact was added to the cache\n - CACHE_LOOKUP_FAILURE: Used to indicate\ + \ that cache lookup failed because of an error\n - CACHE_PUT_FAILURE: Used to\ + \ indicate that cache lookup failed because of an error\n - CACHE_SKIPPED: Used\ + \ to indicate the cache lookup was skipped" + enum: + - "CACHE_DISABLED" + - "CACHE_MISS" + - "CACHE_HIT" + - "CACHE_POPULATED" + - "CACHE_LOOKUP_FAILURE" + - "CACHE_PUT_FAILURE" + - "CACHE_SKIPPED" + default: "CACHE_DISABLED" + coreCatalogMetadata: + type: "object" + properties: + dataset_id: + title: "Dataset ID in the catalog" + $ref: "#/definitions/coreIdentifier" + artifact_tag: + title: "Artifact tag in the catalog" + $ref: "#/definitions/coreCatalogArtifactTag" + source_task_execution: + title: "Today we only support TaskExecutionIdentifier as a source, as catalog\ + \ caching only works for task executions" + $ref: "#/definitions/coreTaskExecutionIdentifier" + title: "Catalog artifact information with specific metadata" + example: + source_task_execution: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + dataset_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + artifact_tag: + name: "name" + artifact_id: "artifact_id" + coreComparisonExpression: + type: "object" + properties: + operator: + $ref: "#/definitions/ComparisonExpressionOperator" + left_value: + $ref: "#/definitions/coreOperand" + right_value: + $ref: "#/definitions/coreOperand" + description: "Defines a 2-level tree where the root is a comparison operator and\ + \ Operands are primitives or known variables.\nEach expression results in a\ + \ boolean result." + example: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + coreCompiledTask: + type: "object" + properties: + template: + title: "Completely contained TaskTemplate" + $ref: "#/definitions/coreTaskTemplate" + title: "Output of the Compilation step. This object represent one Task. We store\ + \ more metadata at this layer" + example: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + coreCompiledWorkflow: + type: "object" + properties: + template: + title: "Completely contained Workflow Template" + $ref: "#/definitions/coreWorkflowTemplate" + connections: + description: "For internal use only! This field is used by the system and\ + \ must not be filled in. Any values set will be ignored." + $ref: "#/definitions/coreConnectionSet" + title: "Output of the compilation Step. This object represents one workflow. We\ + \ store more metadata at this layer" + example: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + coreCompiledWorkflowClosure: + type: "object" + properties: + primary: + title: "+required" + $ref: "#/definitions/coreCompiledWorkflow" + sub_workflows: + type: "array" + title: "Guaranteed that there will only exist one and only one workflow with\ + \ a given id, i.e., every sub workflow has a\nunique identifier. Also every\ + \ enclosed subworkflow is used either by a primary workflow or by a subworkflow\n\ + as an inlined workflow\n+optional" + items: + $ref: "#/definitions/coreCompiledWorkflow" + tasks: + type: "array" + title: "Guaranteed that there will only exist one and only one task with a\ + \ given id, i.e., every task has a unique id\n+required (at least 1)" + items: + $ref: "#/definitions/coreCompiledTask" + description: "A Compiled Workflow Closure contains all the information required\ + \ to start a new execution, or to visualize a workflow\nand its details. The\ + \ CompiledWorkflowClosure should always contain a primary workflow, that is\ + \ the main workflow that\nwill being the execution. All subworkflows are denormalized.\ + \ WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." + example: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + coreConjunctionExpression: + type: "object" + properties: + operator: + $ref: "#/definitions/ConjunctionExpressionLogicalOperator" + left_expression: + $ref: "#/definitions/coreBooleanExpression" + right_expression: + $ref: "#/definitions/coreBooleanExpression" + description: "Defines a conjunction expression of two boolean expressions." + example: + operator: {} + coreConnectionSet: + type: "object" + properties: + downstream: + type: "object" + title: "A list of all the node ids that are downstream from a given node id" + additionalProperties: + $ref: "#/definitions/ConnectionSetIdList" + upstream: + type: "object" + title: "A list of all the node ids, that are upstream of this node id" + additionalProperties: + $ref: "#/definitions/ConnectionSetIdList" + title: "Adjacency list for the workflow. This is created as part of the compilation\ + \ process. Every process after the compilation\nstep uses this created ConnectionSet" + example: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + coreContainer: + type: "object" + properties: + image: + type: "string" + title: "Container image url. Eg: docker/redis:latest" + command: + type: "array" + description: "Command to be executed, if not provided, the default entrypoint\ + \ in the container image will be used." + items: + type: "string" + args: + type: "array" + description: "These will default to Flyte given paths. If provided, the system\ + \ will not append known paths. If the task still\nneeds flyte's inputs and\ + \ outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes\ + \ sense and the\nsystem will populate these before executing the container." + items: + type: "string" + resources: + description: "Container resources requirement as specified by the container\ + \ engine." + $ref: "#/definitions/coreResources" + env: + type: "array" + description: "Environment variables will be set as the container is starting\ + \ up." + items: + $ref: "#/definitions/coreKeyValuePair" + config: + type: "array" + description: "Allows extra configs to be available for the container.\nTODO:\ + \ elaborate on how configs will become available.\nDeprecated, please use\ + \ TaskTemplate.config instead." + items: + $ref: "#/definitions/coreKeyValuePair" + ports: + type: "array" + title: "Ports to open in the container. This feature is not supported by all\ + \ execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\n\ + Only K8s" + items: + $ref: "#/definitions/coreContainerPort" + data_config: + title: "BETA: Optional configuration for DataLoading. If not specified, then\ + \ default values are used.\nThis makes it possible to to run a completely\ + \ portable container, that uses inputs and outputs\nonly from the local\ + \ file-system and without having any reference to flyteidl. This is supported\ + \ only on K8s at the moment.\nIf data loading is enabled, then data will\ + \ be mounted in accompanying directories specified in the DataLoadingConfig.\ + \ If the directories\nare not specified, inputs will be mounted onto and\ + \ outputs will be uploaded from a pre-determined file-system path. Refer\ + \ to the documentation\nto understand the default paths.\nOnly K8s" + $ref: "#/definitions/coreDataLoadingConfig" + architecture: + $ref: "#/definitions/ContainerArchitecture" + example: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + coreContainerPort: + type: "object" + properties: + container_port: + type: "integer" + format: "int64" + description: "Number of port to expose on the pod's IP address.\nThis must\ + \ be a valid port number, 0 < x < 65536." + description: "Defines port properties for a container." + example: + container_port: 5 + coreDataLoadingConfig: + type: "object" + properties: + enabled: + type: "boolean" + format: "boolean" + title: "Flag enables DataLoading Config. If this is not set, data loading\ + \ will not be used!" + input_path: + type: "string" + title: "File system path (start at root). This folder will contain all the\ + \ inputs exploded to a separate file.\nExample, if the input interface needs\ + \ (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs',\ + \ then the file system will look like\n/var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously.\ + \ The Blob and Multipart blob will reference local filesystem instead of\ + \ remote locations\n/var/flyte/inputs/x -> X is a file that contains the\ + \ value of x (integer) in string format\n/var/flyte/inputs/y -> Y is a file\ + \ in Binary format\n/var/flyte/inputs/z/... -> Note Z itself is a directory\n\ + More information about the protocol - refer to docs #TODO reference docs\ + \ here" + output_path: + type: "string" + title: "File system path (start at root). This folder should contain all the\ + \ outputs for the task as individual files and/or an error text file" + format: + title: "In the inputs folder, there will be an additional summary/metadata\ + \ file that contains references to all files or inlined primitive values.\n\ + This format decides the actual encoding for the data. Refer to the encoding\ + \ to understand the specifics of the contents and the encoding" + $ref: "#/definitions/DataLoadingConfigLiteralMapFormat" + io_strategy: + $ref: "#/definitions/coreIOStrategy" + description: "This configuration allows executing raw containers in Flyte using\ + \ the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit\ + \ or sdk inside the container. Any inputs required by the users container are\ + \ side-loaded in the input_path\nAny outputs generated by the user container\ + \ - within output_path are automatically uploaded." + example: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + coreEnumType: + type: "object" + properties: + values: + type: "array" + description: "Predefined set of enum values." + items: + type: "string" + description: "Enables declaring enum types, with predefined string values\nFor\ + \ len(values) > 0, the first value in the ordered list is regarded as the default\ + \ value. If you wish\nTo provide no defaults, make the first value as undefined." + example: + values: + - "values" + - "values" + coreError: + type: "object" + properties: + failed_node_id: + type: "string" + description: "The node id that threw the error." + message: + type: "string" + description: "Error message thrown." + description: "Represents an error thrown from a node." + example: + message: "message" + failed_node_id: "failed_node_id" + coreExecutionError: + type: "object" + properties: + code: + type: "string" + title: "Error code indicates a grouping of a type of error.\nMore Info: " + message: + type: "string" + description: "Detailed description of the error - including stack trace." + error_uri: + type: "string" + title: "Full error contents accessible via a URI" + kind: + $ref: "#/definitions/ExecutionErrorErrorKind" + description: "Represents the error message from the execution." + example: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + coreGateNode: + type: "object" + properties: + approve: + description: "ApproveCondition represents a dependency on an external approval\ + \ provided by a boolean signal." + $ref: "#/definitions/coreApproveCondition" + signal: + description: "SignalCondition represents a dependency on an signal." + $ref: "#/definitions/coreSignalCondition" + sleep: + description: "SleepCondition represents a dependency on waiting for the specified\ + \ duration." + $ref: "#/definitions/coreSleepCondition" + description: "GateNode refers to the condition that is required for the gate to\ + \ successfully complete." + example: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreIOStrategy: + type: "object" + properties: + download_mode: + title: "Mode to use to manage downloads" + $ref: "#/definitions/IOStrategyDownloadMode" + upload_mode: + title: "Mode to use to manage uploads" + $ref: "#/definitions/IOStrategyUploadMode" + title: "Strategy to use when dealing with Blob, Schema, or multipart blob data\ + \ (large datasets)" + example: + upload_mode: {} + download_mode: {} + coreIdentifier: + type: "object" + properties: + resource_type: + description: "Identifies the specific type of resource that this identifier\ + \ corresponds to." + $ref: "#/definitions/coreResourceType" + project: + type: "string" + description: "Name of the project the resource belongs to." + domain: + type: "string" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + name: + type: "string" + description: "User provided value for the resource." + version: + type: "string" + description: "Specific version of the resource." + description: "Encapsulation of fields that uniquely identifies a Flyte resource." + example: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + coreIdentity: + type: "object" + properties: + iam_role: + type: "string" + description: "iam_role references the fully qualified name of Identity & Access\ + \ Management role to impersonate." + k8s_service_account: + type: "string" + description: "k8s_service_account references a kubernetes service account\ + \ to impersonate." + oauth2_client: + description: "oauth2_client references an oauth2 client. Backend plugins can\ + \ use this information to impersonate the client when\nmaking external calls." + $ref: "#/definitions/coreOAuth2Client" + execution_identity: + type: "string" + title: "execution_identity references the subject who makes the execution" + description: "Identity encapsulates the various security identities a task can\ + \ run as. It's up to the underlying plugin to pick the\nright identity for the\ + \ execution environment." + example: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + coreIfBlock: + type: "object" + properties: + condition: + $ref: "#/definitions/coreBooleanExpression" + then_node: + $ref: "#/definitions/coreNode" + description: "Defines a condition and the execution unit that should be executed\ + \ if the condition is satisfied." + example: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + coreIfElseBlock: + type: "object" + properties: + case: + description: "+required. First condition to evaluate." + $ref: "#/definitions/coreIfBlock" + other: + type: "array" + description: "+optional. Additional branches to evaluate." + items: + $ref: "#/definitions/coreIfBlock" + else_node: + description: "The node to execute in case none of the branches were taken." + $ref: "#/definitions/coreNode" + error: + description: "An error to throw in case none of the branches were taken." + $ref: "#/definitions/coreError" + description: "Defines a series of if/else blocks. The first branch whose condition\ + \ evaluates to true is the one to execute.\nIf no conditions were satisfied,\ + \ the else_node or the error will execute." + example: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + coreK8sObjectMetadata: + type: "object" + properties: + labels: + type: "object" + description: "Optional labels to add to the pod definition." + additionalProperties: + type: "string" + annotations: + type: "object" + description: "Optional annotations to add to the pod definition." + additionalProperties: + type: "string" + description: "Metadata for building a kubernetes object when a task is executed." + example: + annotations: + key: "annotations" + labels: + key: "labels" + coreK8sPod: + type: "object" + properties: + metadata: + description: "Contains additional metadata for building a kubernetes pod." + $ref: "#/definitions/coreK8sObjectMetadata" + pod_spec: + title: "Defines the primary pod spec created when a task is executed.\nThis\ + \ should be a JSON-marshalled pod spec, which can be defined in\n- go, using:\ + \ https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n\ + - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + $ref: "#/definitions/protobufStruct" + data_config: + title: "BETA: Optional configuration for DataLoading. If not specified, then\ + \ default values are used.\nThis makes it possible to to run a completely\ + \ portable container, that uses inputs and outputs\nonly from the local\ + \ file-system and without having any reference to flytekit. This is supported\ + \ only on K8s at the moment.\nIf data loading is enabled, then data will\ + \ be mounted in accompanying directories specified in the DataLoadingConfig.\ + \ If the directories\nare not specified, inputs will be mounted onto and\ + \ outputs will be uploaded from a pre-determined file-system path. Refer\ + \ to the documentation\nto understand the default paths.\nOnly K8s" + $ref: "#/definitions/coreDataLoadingConfig" + description: "Defines a pod spec and additional pod metadata that is created when\ + \ a task is executed." + example: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + coreKeyValuePair: + type: "object" + properties: + key: + type: "string" + description: "required." + value: + type: "string" + description: "+optional." + description: "A generic key value pair." + example: + value: "value" + key: "key" + coreLiteral: + type: "object" + properties: + scalar: + description: "A simple value." + $ref: "#/definitions/coreScalar" + collection: + description: "A collection of literals to allow nesting." + $ref: "#/definitions/coreLiteralCollection" + map: + description: "A map of strings to literals." + $ref: "#/definitions/coreLiteralMap" + hash: + type: "string" + title: "A hash representing this literal.\nThis is used for caching purposes.\ + \ For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + description: "A simple value. This supports any level of nesting (e.g. array of\ + \ array of array of Blobs) as well as simple primitives." + example: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + coreLiteralCollection: + type: "object" + properties: + literals: + type: "array" + items: + $ref: "#/definitions/coreLiteral" + description: "A collection of literals. This is a workaround since oneofs in proto\ + \ messages cannot contain a repeated field." + example: + literals: + - null + - null + coreLiteralMap: + type: "object" + properties: + literals: + type: "object" + additionalProperties: + $ref: "#/definitions/coreLiteral" + description: "A map of literals. This is a workaround since oneofs in proto messages\ + \ cannot contain a repeated field." + example: + literals: {} + coreLiteralType: + type: "object" + properties: + simple: + description: "A simple type that can be compared one-to-one with another." + $ref: "#/definitions/coreSimpleType" + schema: + description: "A complex type that requires matching of inner fields." + $ref: "#/definitions/coreSchemaType" + collection_type: + description: "Defines the type of the value of a collection. Only homogeneous\ + \ collections are allowed." + $ref: "#/definitions/coreLiteralType" + map_value_type: + description: "Defines the type of the value of a map type. The type of the\ + \ key is always a string." + $ref: "#/definitions/coreLiteralType" + blob: + description: "A blob might have specialized implementation details depending\ + \ on associated metadata." + $ref: "#/definitions/coreBlobType" + enum_type: + description: "Defines an enum with pre-defined string values." + $ref: "#/definitions/coreEnumType" + structured_dataset_type: + title: "Generalized schema support" + $ref: "#/definitions/coreStructuredDatasetType" + union_type: + description: "Defines an union type with pre-defined LiteralTypes." + $ref: "#/definitions/coreUnionType" + metadata: + description: "This field contains type metadata that is descriptive of the\ + \ type, but is NOT considered in type-checking. This might be used by\n\ + consumers to identify special behavior or display extended information for\ + \ the type." + $ref: "#/definitions/protobufStruct" + annotation: + description: "This field contains arbitrary data that might have special semantic\n\ + meaning for the client but does not effect internal flyte behavior." + $ref: "#/definitions/coreTypeAnnotation" + structure: + description: "Hints to improve type matching." + $ref: "#/definitions/coreTypeStructure" + description: "Defines a strong type to allow type checking between interfaces." + example: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreNode: + type: "object" + properties: + id: + type: "string" + description: "A workflow-level unique identifier that identifies this node\ + \ in the workflow. 'inputs' and 'outputs' are reserved\nnode ids that cannot\ + \ be used by other nodes." + metadata: + description: "Extra metadata about the node." + $ref: "#/definitions/coreNodeMetadata" + inputs: + type: "array" + description: "Specifies how to bind the underlying interface's inputs. All\ + \ required inputs specified in the underlying interface\nmust be fulfilled." + items: + $ref: "#/definitions/coreBinding" + upstream_node_ids: + type: "array" + description: "+optional Specifies execution dependency for this node ensuring\ + \ it will only get scheduled to run after all its\nupstream nodes have completed.\ + \ This node will have an implicit dependency on any node that appears in\ + \ inputs\nfield." + items: + type: "string" + output_aliases: + type: "array" + description: "+optional. A node can define aliases for a subset of its outputs.\ + \ This is particularly useful if different nodes\nneed to conform to the\ + \ same interface (e.g. all branches in a branch node). Downstream nodes\ + \ must refer to this\nnodes outputs using the alias if one's specified." + items: + $ref: "#/definitions/coreAlias" + task_node: + description: "Information about the Task to execute in this node." + $ref: "#/definitions/coreTaskNode" + workflow_node: + description: "Information about the Workflow to execute in this mode." + $ref: "#/definitions/coreWorkflowNode" + branch_node: + description: "Information about the branch node to evaluate in this node." + $ref: "#/definitions/coreBranchNode" + gate_node: + description: "Information about the condition to evaluate in this node." + $ref: "#/definitions/coreGateNode" + array_node: + description: "Information about the sub-node executions for each value in\ + \ the list of this nodes\ninputs values." + $ref: "#/definitions/coreArrayNode" + description: "A Workflow graph Node. One unit of execution in the graph. Each\ + \ node can be linked to a Task, a Workflow or a branch\nnode." + example: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + coreNodeExecutionIdentifier: + type: "object" + properties: + node_id: + type: "string" + execution_id: + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + description: "Encapsulation of fields that identify a Flyte node execution entity." + example: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + coreNodeExecutionPhase: + type: "string" + enum: + - "UNDEFINED" + - "QUEUED" + - "RUNNING" + - "SUCCEEDED" + - "FAILING" + - "FAILED" + - "ABORTED" + - "SKIPPED" + - "TIMED_OUT" + - "DYNAMIC_RUNNING" + - "RECOVERED" + default: "UNDEFINED" + coreNodeMetadata: + type: "object" + properties: + name: + type: "string" + title: "A friendly name for the Node" + timeout: + type: "string" + description: "The overall timeout of a task." + retries: + description: "Number of retries per task." + $ref: "#/definitions/coreRetryStrategy" + interruptible: + type: "boolean" + format: "boolean" + description: "Defines extra information about the Node." + example: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + coreOAuth2Client: + type: "object" + properties: + client_id: + type: "string" + title: "client_id is the public id for the client to use. The system will\ + \ not perform any pre-auth validation that the\nsecret requested matches\ + \ the client_id indicated here.\n+required" + client_secret: + title: "client_secret is a reference to the secret used to authenticate the\ + \ OAuth2 client.\n+required" + $ref: "#/definitions/coreSecret" + description: "OAuth2Client encapsulates OAuth2 Client Credentials to be used when\ + \ making calls on behalf of that task." + example: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + coreOAuth2TokenRequest: + type: "object" + properties: + name: + type: "string" + title: "name indicates a unique id for the token request within this task\ + \ token requests. It'll be used as a suffix for\nenvironment variables and\ + \ as a filename for mounting tokens as files.\n+required" + type: + title: "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n\ + +required" + $ref: "#/definitions/coreOAuth2TokenRequestType" + client: + title: "client references the client_id/secret to use to request the OAuth2\ + \ token.\n+required" + $ref: "#/definitions/coreOAuth2Client" + idp_discovery_endpoint: + type: "string" + title: "idp_discovery_endpoint references the discovery endpoint used to retrieve\ + \ token endpoint and other related\ninformation.\n+optional" + token_endpoint: + type: "string" + title: "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint\ + \ is not provided, this parameter is\nmandatory.\n+optional" + description: "OAuth2TokenRequest encapsulates information needed to request an\ + \ OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix\ + \ of the environment variables that will be present if\ntokens are passed through\ + \ environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate\ + \ the prefix of the path where secrets will be mounted if tokens\nare passed\ + \ through file mounts." + example: + idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + coreOAuth2TokenRequestType: + type: "string" + description: "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS\ + \ indicates a 2-legged OAuth token requested using client credentials." + enum: + - "CLIENT_CREDENTIALS" + default: "CLIENT_CREDENTIALS" + coreOperand: + type: "object" + properties: + primitive: + title: "Can be a constant" + $ref: "#/definitions/corePrimitive" + var: + type: "string" + title: "Or one of this node's input variables" + scalar: + title: "Replace the primitive field" + $ref: "#/definitions/coreScalar" + description: "Defines an operand to a comparison expression." + example: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + coreOutputReference: + type: "object" + properties: + node_id: + type: "string" + description: "Node id must exist at the graph layer." + var: + type: "string" + description: "Variable name must refer to an output variable for the node." + description: "A reference to an output produced by a node. The type can be retrieved\ + \ -and validated- from\nthe underlying interface of the node." + example: + var: "var" + node_id: "node_id" + coreParameter: + type: "object" + properties: + var: + description: "+required Variable. Defines the type of the variable backing\ + \ this parameter." + $ref: "#/definitions/coreVariable" + default: + description: "Defines a default value that has to match the variable type\ + \ defined." + $ref: "#/definitions/coreLiteral" + required: + type: "boolean" + format: "boolean" + description: "+optional, is this value required to be filled." + description: "A parameter is used as input to a launch plan and has\nthe special\ + \ ability to have a default value or mark itself as required." + example: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + coreParameterMap: + type: "object" + properties: + parameters: + type: "object" + description: "Defines a map of parameter names to parameters." + additionalProperties: + $ref: "#/definitions/coreParameter" + description: "A map of Parameters." + example: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + map: + literals: {} + hash: "hash" + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + required: true + corePrimitive: + type: "object" + properties: + integer: + type: "string" + format: "int64" + float_value: + type: "number" + format: "double" + string_value: + type: "string" + boolean: + type: "boolean" + format: "boolean" + datetime: + type: "string" + format: "date-time" + duration: + type: "string" + title: "Primitive Types" + example: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + coreQualityOfService: + type: "object" + properties: + tier: + $ref: "#/definitions/QualityOfServiceTier" + spec: + $ref: "#/definitions/coreQualityOfServiceSpec" + description: "Indicates the priority of an execution." + example: + tier: {} + spec: + queueing_budget: "queueing_budget" + coreQualityOfServiceSpec: + type: "object" + properties: + queueing_budget: + type: "string" + description: "Indicates how much queueing delay an execution can tolerate." + description: "Represents customized execution run-time attributes." + example: + queueing_budget: "queueing_budget" + coreResourceType: + type: "string" + description: "Indicates a resource type within Flyte.\n\n - DATASET: A dataset\ + \ represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned\ + \ entity and can be a compilation of multiple individual objects.\nEventually\ + \ all Catalog objects should be modeled similar to Flyte Objects. The Dataset\ + \ entities makes it possible for the UI and CLI to act on the objects \nin\ + \ a similar manner to other Flyte objects" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + - "DATASET" + default: "UNSPECIFIED" + coreResources: + type: "object" + properties: + requests: + type: "array" + description: "The desired set of resources requested. ResourceNames must be\ + \ unique within the list." + items: + $ref: "#/definitions/ResourcesResourceEntry" + limits: + type: "array" + description: "Defines a set of bounds (e.g. min/max) within which the task\ + \ can reliably run. ResourceNames must be unique\nwithin the list." + items: + $ref: "#/definitions/ResourcesResourceEntry" + description: "A customizable interface to convey resources requested for a container.\ + \ This can be interpreted differently for different\ncontainer engines." + example: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + coreRetryStrategy: + type: "object" + properties: + retries: + type: "integer" + format: "int64" + description: "Number of retries. Retries will be consumed when the job fails\ + \ with a recoverable error.\nThe number of retries must be less than or\ + \ equals to 10." + description: "Retry strategy associated with an executable unit." + example: + retries: 0 + coreRuntimeMetadata: + type: "object" + properties: + type: + description: "Type of runtime." + $ref: "#/definitions/RuntimeMetadataRuntimeType" + version: + type: "string" + description: "Version of the runtime. All versions should be backward compatible.\ + \ However, certain cases call for version\nchecks to ensure tighter validation\ + \ or setting expectations." + flavor: + type: "string" + description: "+optional It can be used to provide extra information about\ + \ the runtime (e.g. python, golang... etc.)." + description: "Runtime information. This is loosely defined to allow for extensibility." + example: + flavor: "flavor" + type: {} + version: "version" + coreScalar: + type: "object" + properties: + primitive: + $ref: "#/definitions/corePrimitive" + blob: + $ref: "#/definitions/coreBlob" + binary: + $ref: "#/definitions/coreBinary" + schema: + $ref: "#/definitions/coreSchema" + none_type: + $ref: "#/definitions/coreVoid" + error: + $ref: "#/definitions/coreError" + generic: + $ref: "#/definitions/protobufStruct" + structured_dataset: + $ref: "#/definitions/coreStructuredDataset" + union: + $ref: "#/definitions/coreUnion" + example: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + coreSchema: + type: "object" + properties: + uri: + type: "string" + type: + $ref: "#/definitions/coreSchemaType" + description: "A strongly typed schema that defines the interface of data retrieved\ + \ from the underlying storage medium." + example: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + coreSchemaType: + type: "object" + properties: + columns: + type: "array" + description: "A list of ordered columns this schema comprises of." + items: + $ref: "#/definitions/SchemaTypeSchemaColumn" + description: "Defines schema columns and types to strongly type-validate schemas\ + \ interoperability." + example: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + coreSecret: + type: "object" + properties: + group: + type: "string" + title: "The name of the secret group where to find the key referenced below.\ + \ For K8s secrets, this should be the name of\nthe v1/secret object. For\ + \ Confidant, this should be the Credential name. For Vault, this should\ + \ be the secret name.\nFor AWS Secret Manager, this should be the name of\ + \ the secret.\n+required" + group_version: + type: "string" + title: "The group version to fetch. This is not supported in all secret management\ + \ systems. It'll be ignored for the ones\nthat do not support it.\n+optional" + key: + type: "string" + title: "The name of the secret to mount. This has to match an existing secret\ + \ in the system. It's up to the implementation\nof the secret management\ + \ system to require case sensitivity. For K8s secrets, Confidant and Vault,\ + \ this should\nmatch one of the keys inside the secret. For AWS Secret Manager,\ + \ it's ignored.\n+optional" + mount_requirement: + title: "mount_requirement is optional. Indicates where the secret has to be\ + \ mounted. If provided, the execution will fail\nif the underlying key management\ + \ system cannot satisfy that requirement. If not provided, the default location\n\ + will depend on the key management system.\n+optional" + $ref: "#/definitions/SecretMountType" + description: "Secret encapsulates information about the secret a task needs to\ + \ proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed\ + \ to indicate the prefix of the environment variables that will be present if\n\ + secrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR\ + \ will be passed to indicate the prefix of the path where secrets will be mounted\ + \ if secrets\nare passed through file mounts." + example: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + coreSecurityContext: + type: "object" + properties: + run_as: + description: "run_as encapsulates the identity a pod should run as. If the\ + \ task fills in multiple fields here, it'll be up to the\nbackend plugin\ + \ to choose the appropriate identity for the execution engine the task will\ + \ run on." + $ref: "#/definitions/coreIdentity" + secrets: + type: "array" + description: "secrets indicate the list of secrets the task needs in order\ + \ to proceed. Secrets will be mounted/passed to the\npod as it starts. If\ + \ the plugin responsible for kicking of the task will not run it on a flyte\ + \ cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch\ + \ the secret (which means propeller identity will need access\nto the secret)\ + \ and to pass it to the remote execution engine." + items: + $ref: "#/definitions/coreSecret" + tokens: + type: "array" + description: "tokens indicate the list of token requests the task needs in\ + \ order to proceed. Tokens will be mounted/passed to the\npod as it starts.\ + \ If the plugin responsible for kicking of the task will not run it on a\ + \ flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin\ + \ to fetch the secret (which means propeller identity will need access\n\ + to the secret) and to pass it to the remote execution engine." + items: + $ref: "#/definitions/coreOAuth2TokenRequest" + description: "SecurityContext holds security attributes that apply to tasks." + example: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + coreSignalCondition: + type: "object" + properties: + signal_id: + type: "string" + description: "A unique identifier for the requested signal." + type: + description: "A type denoting the required value type for this signal." + $ref: "#/definitions/coreLiteralType" + output_variable_name: + type: "string" + description: "The variable name for the signal value in this nodes outputs." + description: "SignalCondition represents a dependency on an signal." + example: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreSimpleType: + type: "string" + description: "Define a set of simple types." + enum: + - "NONE" + - "INTEGER" + - "FLOAT" + - "STRING" + - "BOOLEAN" + - "DATETIME" + - "DURATION" + - "BINARY" + - "ERROR" + - "STRUCT" + default: "NONE" + coreSleepCondition: + type: "object" + properties: + duration: + type: "string" + description: "The overall duration for this sleep." + description: "SleepCondition represents a dependency on waiting for the specified\ + \ duration." + example: + duration: "duration" + coreSpan: + type: "object" + properties: + start_time: + type: "string" + format: "date-time" + description: "start_time defines the instance this span began." + end_time: + type: "string" + format: "date-time" + description: "end_time defines the instance this span completed." + workflow_id: + description: "workflow_id is the id of the workflow execution this Span represents." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + node_id: + description: "node_id is the id of the node execution this Span represents." + $ref: "#/definitions/coreNodeExecutionIdentifier" + task_id: + description: "task_id is the id of the task execution this Span represents." + $ref: "#/definitions/coreTaskExecutionIdentifier" + operation_id: + type: "string" + description: "operation_id is the id of a unique operation that this Span\ + \ represents." + spans: + type: "array" + description: "spans defines a collection of Spans that breakdown this execution." + items: + $ref: "#/definitions/coreSpan" + description: "Span represents a duration trace of Flyte execution. The id field\ + \ denotes a Flyte execution entity or an operation\nwhich uniquely identifies\ + \ the Span. The spans attribute allows this Span to be further broken down into\ + \ more\nprecise definitions." + example: + start_time: "2000-01-23T04:56:07.000+00:00" + spans: + - null + - null + workflow_id: + domain: "domain" + name: "name" + project: "project" + end_time: "2000-01-23T04:56:07.000+00:00" + task_id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + operation_id: "operation_id" + node_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + coreSql: + type: "object" + properties: + statement: + type: "string" + title: "The actual query to run, the query can have templated parameters.\n\ + We use Flyte's Golang templating format for Query templating.\nRefer to\ + \ the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\n\ + For example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored\ + \ as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" + dialect: + $ref: "#/definitions/SqlDialect" + description: "Sql represents a generic sql workload with a statement and dialect." + example: + dialect: {} + statement: "statement" + coreStructuredDataset: + type: "object" + properties: + uri: + type: "string" + title: "String location uniquely identifying where the data is.\nShould start\ + \ with the storage location (e.g. s3://, gs://, bq://, etc.)" + metadata: + $ref: "#/definitions/coreStructuredDatasetMetadata" + example: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + coreStructuredDatasetMetadata: + type: "object" + properties: + structured_dataset_type: + description: "Bundle the type information along with the literal.\nThis is\ + \ here because StructuredDatasets can often be more defined at run time\ + \ than at compile time.\nThat is, at compile time you might only declare\ + \ a task to return a pandas dataframe or a StructuredDataset,\nwithout any\ + \ column information, but at run time, you might have that column information.\n\ + flytekit python will copy this type information into the literal, from the\ + \ type information, if not provided by\nthe various plugins (encoders).\n\ + Since this field is run time generated, it's not used for any type checking." + $ref: "#/definitions/coreStructuredDatasetType" + example: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + coreStructuredDatasetType: + type: "object" + properties: + columns: + type: "array" + description: "A list of ordered columns this schema comprises of." + items: + $ref: "#/definitions/StructuredDatasetTypeDatasetColumn" + format: + type: "string" + description: "This is the storage format, the format of the bits at rest\n\ + parquet, feather, csv, etc.\nFor two types to be compatible, the format\ + \ will need to be an exact match." + external_schema_type: + type: "string" + description: "This is a string representing the type that the bytes in external_schema_bytes\ + \ are formatted in.\nThis is an optional field that will not be used for\ + \ type checking." + external_schema_bytes: + type: "string" + format: "byte" + description: "The serialized bytes of a third-party schema library like Arrow.\n\ + This is an optional field that will not be used for type checking." + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + example: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + coreTaskExecutionIdentifier: + type: "object" + properties: + task_id: + $ref: "#/definitions/coreIdentifier" + node_execution_id: + $ref: "#/definitions/coreNodeExecutionIdentifier" + retry_attempt: + type: "integer" + format: "int64" + description: "Encapsulation of fields that identify a Flyte task execution entity." + example: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + coreTaskExecutionPhase: + type: "string" + title: "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull,\ + \ ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases,\ + \ where underlying resource is not available: Backoff error, Resource quota\ + \ exceeded" + enum: + - "UNDEFINED" + - "QUEUED" + - "RUNNING" + - "SUCCEEDED" + - "ABORTED" + - "FAILED" + - "INITIALIZING" + - "WAITING_FOR_RESOURCES" + default: "UNDEFINED" + coreTaskLog: + type: "object" + properties: + uri: + type: "string" + name: + type: "string" + message_format: + $ref: "#/definitions/TaskLogMessageFormat" + ttl: + type: "string" + title: "Log information for the task that is specific to a log sink\nWhen our\ + \ log story is flushed out, we may have more metadata here like log link expiry" + example: + message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + coreTaskMetadata: + type: "object" + properties: + discoverable: + type: "boolean" + format: "boolean" + description: "Indicates whether the system should attempt to lookup this task's\ + \ output to avoid duplication of work." + runtime: + description: "Runtime information about the task." + $ref: "#/definitions/coreRuntimeMetadata" + timeout: + type: "string" + description: "The overall timeout of a task including user-triggered retries." + retries: + description: "Number of retries per task." + $ref: "#/definitions/coreRetryStrategy" + discovery_version: + type: "string" + description: "Indicates a logical version to apply to this task for the purpose\ + \ of discovery." + deprecated_error_message: + type: "string" + description: "If set, this indicates that this task is deprecated. This will\ + \ enable owners of tasks to notify consumers\nof the ending of support for\ + \ a given task." + interruptible: + type: "boolean" + format: "boolean" + cache_serializable: + type: "boolean" + format: "boolean" + title: "Indicates whether the system should attempt to execute discoverable\ + \ instances in serial to avoid duplicate work" + generates_deck: + type: "boolean" + format: "boolean" + description: "Indicates whether the task will generate a Deck URI when it\ + \ finishes executing." + tags: + type: "object" + title: "Arbitrary tags that allow users and the platform to store small but\ + \ arbitrary labels" + additionalProperties: + type: "string" + pod_template_name: + type: "string" + description: "pod_template_name is the unique name of a PodTemplate k8s resource\ + \ to be used as the base configuration if this\ntask creates a k8s Pod.\ + \ If this value is set, the specified PodTemplate will be used instead of,\ + \ but applied\nidentically as, the default PodTemplate configured in FlytePropeller." + title: "Task Metadata" + example: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + coreTaskNode: + type: "object" + properties: + reference_id: + description: "A globally unique identifier for the task." + $ref: "#/definitions/coreIdentifier" + overrides: + description: "Optional overrides applied at task execution time." + $ref: "#/definitions/coreTaskNodeOverrides" + description: "Refers to the task that the Node is to execute." + example: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + coreTaskNodeOverrides: + type: "object" + properties: + resources: + description: "A customizable interface to convey resources requested for a\ + \ task container." + $ref: "#/definitions/coreResources" + description: "Optional task node overrides that will be applied at task execution\ + \ time." + example: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + coreTaskTemplate: + type: "object" + properties: + id: + description: "Auto generated taskId by the system. Task Id uniquely identifies\ + \ this task globally." + $ref: "#/definitions/coreIdentifier" + type: + type: "string" + description: "A predefined yet extensible Task type identifier. This can be\ + \ used to customize any of the components. If no\nextensions are provided\ + \ in the system, Flyte will resolve the this task to its TaskCategory and\ + \ default the\nimplementation registered for the TaskCategory." + metadata: + description: "Extra metadata about the task." + $ref: "#/definitions/coreTaskMetadata" + interface: + description: "A strongly typed interface for the task. This enables others\ + \ to use this task within a workflow and guarantees\ncompile-time validation\ + \ of the workflow to avoid costly runtime failures." + $ref: "#/definitions/coreTypedInterface" + custom: + description: "Custom data about the task. This is extensible to allow various\ + \ plugins in the system." + $ref: "#/definitions/protobufStruct" + container: + $ref: "#/definitions/coreContainer" + k8s_pod: + $ref: "#/definitions/coreK8sPod" + sql: + $ref: "#/definitions/coreSql" + task_type_version: + type: "integer" + format: "int32" + description: "This can be used to customize task handling at execution time\ + \ for the same task type." + security_context: + description: "security_context encapsulates security attributes requested\ + \ to run this task." + $ref: "#/definitions/coreSecurityContext" + config: + type: "object" + title: "Metadata about the custom defined for this task. This is extensible\ + \ to allow various plugins in the system\nto use as required.\nreserve the\ + \ field numbers 1 through 15 for very frequently occurring message elements" + additionalProperties: + type: "string" + description: "A Task structure that uniquely identifies a task in the system\n\ + Tasks are registered as a first step in the system." + example: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + coreTypeAnnotation: + type: "object" + properties: + annotations: + description: "A arbitrary JSON payload to describe a type." + $ref: "#/definitions/protobufStruct" + description: "TypeAnnotation encapsulates registration time information about\ + \ a type. This can be used for various control-plane operations. TypeAnnotation\ + \ will not be available at runtime when a task runs." + example: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + coreTypeStructure: + type: "object" + properties: + tag: + type: "string" + title: "Must exactly match for types to be castable" + description: "Hints to improve type matching\ne.g. allows distinguishing output\ + \ from custom type transformers\neven if the underlying IDL serialization matches." + example: + tag: "tag" + coreTypedInterface: + type: "object" + properties: + inputs: + $ref: "#/definitions/coreVariableMap" + outputs: + $ref: "#/definitions/coreVariableMap" + description: "Defines strongly typed inputs and outputs." + example: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreUnion: + type: "object" + properties: + value: + $ref: "#/definitions/coreLiteral" + type: + $ref: "#/definitions/coreLiteralType" + description: "The runtime representation of a tagged union value. See `UnionType`\ + \ for more details." + example: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreUnionInfo: + type: "object" + properties: + targetType: + $ref: "#/definitions/coreLiteralType" + example: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreUnionType: + type: "object" + properties: + variants: + type: "array" + description: "Predefined set of variants in union." + items: + $ref: "#/definitions/coreLiteralType" + description: "Defines a tagged union type, also known as a variant (and formally\ + \ as the sum type).\n\nA sum type S is defined by a sequence of types (A, B,\ + \ C, ...), each tagged by a string tag\nA value of type S is constructed from\ + \ a value of any of the variant types. The specific choice of type is recorded\ + \ by\nstoring the varaint's tag with the literal value and can be examined in\ + \ runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe\ + \ C | ...\n\nNotably, a nullable (optional) type is a sum type between some\ + \ type X and the singleton type representing a null-value:\nOptional X := X\ + \ | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + example: + variants: + - null + - null + coreVariable: + type: "object" + properties: + type: + description: "Variable literal type." + $ref: "#/definitions/coreLiteralType" + description: + type: "string" + title: "+optional string describing input variable" + description: "Defines a strongly typed variable." + example: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreVariableMap: + type: "object" + properties: + variables: + type: "object" + description: "Defines a map of variable names to variables." + additionalProperties: + $ref: "#/definitions/coreVariable" + title: "A map of Variables" + example: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + coreVoid: + type: "object" + description: "Used to denote a nil/null/None assignment to a scalar value. The\ + \ underlying LiteralType for Void is intentionally\nundefined since it can be\ + \ assigned to a scalar of any LiteralType." + coreWorkflowExecutionIdentifier: + type: "object" + properties: + project: + type: "string" + description: "Name of the project the resource belongs to." + domain: + type: "string" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + name: + type: "string" + description: "User or system provided value for the resource." + title: "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + example: + domain: "domain" + name: "name" + project: "project" + coreWorkflowExecutionPhase: + type: "string" + enum: + - "UNDEFINED" + - "QUEUED" + - "RUNNING" + - "SUCCEEDING" + - "SUCCEEDED" + - "FAILING" + - "FAILED" + - "ABORTED" + - "TIMED_OUT" + - "ABORTING" + default: "UNDEFINED" + coreWorkflowMetadata: + type: "object" + properties: + quality_of_service: + description: "Indicates the runtime priority of workflow executions." + $ref: "#/definitions/coreQualityOfService" + on_failure: + description: "Defines how the system should behave when a failure is detected\ + \ in the workflow execution." + $ref: "#/definitions/WorkflowMetadataOnFailurePolicy" + tags: + type: "object" + title: "Arbitrary tags that allow users and the platform to store small but\ + \ arbitrary labels" + additionalProperties: + type: "string" + description: "This is workflow layer metadata. These settings are only applicable\ + \ to the workflow as a whole, and do not\npercolate down to child entities (like\ + \ tasks) launched by the workflow." + example: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + coreWorkflowMetadataDefaults: + type: "object" + properties: + interruptible: + type: "boolean" + format: "boolean" + description: "Whether child nodes of the workflow are interruptible." + description: "The difference between these settings and the WorkflowMetadata ones\ + \ is that these are meant to be passed down to\na workflow's underlying entities\ + \ (like tasks). For instance, 'interruptible' has no meaning at the workflow\ + \ layer, it\nis only relevant when a task executes. The settings here are the\ + \ defaults that are passed to all nodes\nunless explicitly overridden at the\ + \ node layer.\nIf you are adding a setting that applies to both the Workflow\ + \ itself, and everything underneath it, it should be\nadded to both this object\ + \ and the WorkflowMetadata object above." + example: + interruptible: true + coreWorkflowNode: + type: "object" + properties: + launchplan_ref: + description: "A globally unique identifier for the launch plan." + $ref: "#/definitions/coreIdentifier" + sub_workflow_ref: + title: "Reference to a subworkflow, that should be defined with the compiler\ + \ context" + $ref: "#/definitions/coreIdentifier" + description: "Refers to a the workflow the node is to execute." + example: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + coreWorkflowTemplate: + type: "object" + properties: + id: + description: "A globally unique identifier for the workflow." + $ref: "#/definitions/coreIdentifier" + metadata: + description: "Extra metadata about the workflow." + $ref: "#/definitions/coreWorkflowMetadata" + interface: + description: "Defines a strongly typed interface for the Workflow. This can\ + \ include some optional parameters." + $ref: "#/definitions/coreTypedInterface" + nodes: + type: "array" + description: "A list of nodes. In addition, 'globals' is a special reserved\ + \ node id that can be used to consume workflow inputs." + items: + $ref: "#/definitions/coreNode" + outputs: + type: "array" + description: "A list of output bindings that specify how to construct workflow\ + \ outputs. Bindings can pull node outputs or\nspecify literals. All workflow\ + \ outputs specified in the interface field must be bound in order for the\ + \ workflow\nto be validated. A workflow has an implicit dependency on all\ + \ of its nodes to execute successfully in order to\nbind final outputs.\n\ + Most of these outputs will be Binding's with a BindingData of type OutputReference.\ + \ That is, your workflow can\njust have an output of some constant (`Output(5)`),\ + \ but usually, the workflow will be pulling\noutputs from the output of\ + \ a task." + items: + $ref: "#/definitions/coreBinding" + failure_node: + description: "+optional A catch-all node. This node is executed whenever the\ + \ execution engine determines the workflow has failed.\nThe interface of\ + \ this node must match the Workflow interface with an additional input named\ + \ 'error' of type\npb.lyft.flyte.core.Error." + $ref: "#/definitions/coreNode" + metadata_defaults: + title: "workflow defaults" + $ref: "#/definitions/coreWorkflowMetadataDefaults" + description: "Flyte Workflow Structure that encapsulates task, branch and subworkflow\ + \ nodes to form a statically analyzable,\ndirected acyclic graph." + example: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + eventExternalResourceInfo: + type: "object" + properties: + external_id: + type: "string" + description: "Identifier for an external resource created by this task execution,\ + \ for example Qubole query ID or presto query ids." + index: + type: "integer" + format: "int64" + description: "A unique index for the external resource with respect to all\ + \ external resources for this task. Although the\nidentifier may change\ + \ between task reporting events or retries, this will remain the same to\ + \ enable aggregating\ninformation from multiple reports." + retry_attempt: + type: "integer" + format: "int64" + title: "Retry attempt number for this external resource, ie., 2 for the second\ + \ attempt" + phase: + title: "Phase associated with the external resource" + $ref: "#/definitions/coreTaskExecutionPhase" + cache_status: + description: "Captures the status of caching for this external resource execution." + $ref: "#/definitions/coreCatalogCacheStatus" + logs: + type: "array" + title: "log information for the external resource execution" + items: + $ref: "#/definitions/coreTaskLog" + description: "This message contains metadata about external resources produced\ + \ or used by a specific task execution." + example: + index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + eventNodeExecutionEvent: + type: "object" + properties: + id: + title: "Unique identifier for this node execution" + $ref: "#/definitions/coreNodeExecutionIdentifier" + producer_id: + type: "string" + title: "the id of the originator (Propeller) of the event" + phase: + $ref: "#/definitions/coreNodeExecutionPhase" + occurred_at: + type: "string" + format: "date-time" + description: "This timestamp represents when the original event occurred,\ + \ it is generated\nby the executor of the node." + input_uri: + type: "string" + input_data: + description: "Raw input data consumed by this node execution." + $ref: "#/definitions/coreLiteralMap" + output_uri: + type: "string" + description: "URL to the output of the execution, it encodes all the information\n\ + including Cloud source provider. ie., s3://..." + error: + title: "Error information for the execution" + $ref: "#/definitions/coreExecutionError" + output_data: + description: "Raw output data produced by this node execution." + $ref: "#/definitions/coreLiteralMap" + workflow_node_metadata: + $ref: "#/definitions/flyteidleventWorkflowNodeMetadata" + task_node_metadata: + $ref: "#/definitions/flyteidleventTaskNodeMetadata" + parent_task_metadata: + description: "[To be deprecated] Specifies which task (if any) launched this\ + \ node." + $ref: "#/definitions/eventParentTaskExecutionMetadata" + parent_node_metadata: + description: "Specifies the parent node of the current node execution. Node\ + \ executions at level zero will not have a parent node." + $ref: "#/definitions/eventParentNodeExecutionMetadata" + retry_group: + type: "string" + title: "Retry group to indicate grouping of nodes by retries" + spec_node_id: + type: "string" + title: "Identifier of the node in the original workflow/graph\nThis maps to\ + \ value of WorkflowTemplate.nodes[X].id" + node_name: + type: "string" + title: "Friendly readable name for the node" + event_version: + type: "integer" + format: "int32" + is_parent: + type: "boolean" + format: "boolean" + description: "Whether this node launched a subworkflow." + is_dynamic: + type: "boolean" + format: "boolean" + description: "Whether this node yielded a dynamic workflow." + deck_uri: + type: "string" + title: "String location uniquely identifying where the deck HTML file is\n\ + NativeUrl specifies the url in the format of the configured storage provider\ + \ (e.g. s3://my-bucket/randomstring/suffix.tar)" + reported_at: + type: "string" + format: "date-time" + description: "This timestamp represents the instant when the event was reported\ + \ by the executing framework. For example,\nwhen first processing a node\ + \ the `occurred_at` timestamp should be the instant propeller makes progress,\ + \ so when\nliteral inputs are initially copied. The event however will not\ + \ be sent until after the copy completes.\nExtracting both of these timestamps\ + \ facilitates a more accurate portrayal of the evaluation time-series." + eventParentNodeExecutionMetadata: + type: "object" + properties: + node_id: + type: "string" + title: "Unique identifier of the parent node id within the execution\nThis\ + \ is value of core.NodeExecutionIdentifier.node_id of the parent node" + eventParentTaskExecutionMetadata: + type: "object" + properties: + id: + $ref: "#/definitions/coreTaskExecutionIdentifier" + eventResourcePoolInfo: + type: "object" + properties: + allocation_token: + type: "string" + description: "Unique resource ID used to identify this execution when allocating\ + \ a token." + namespace: + type: "string" + description: "Namespace under which this task execution requested an allocation\ + \ token." + description: "This message holds task execution metadata specific to resource\ + \ allocation used to manage concurrent\nexecutions for a project namespace." + example: + allocation_token: "allocation_token" + namespace: "namespace" + eventTaskExecutionEvent: + type: "object" + properties: + task_id: + description: "ID of the task. In combination with the retryAttempt this will\ + \ indicate\nthe task execution uniquely for a given parent node execution." + $ref: "#/definitions/coreIdentifier" + parent_node_execution_id: + title: "A task execution is always kicked off by a node execution, the event\ + \ consumer\nwill use the parent_id to relate the task to it's parent node\ + \ execution" + $ref: "#/definitions/coreNodeExecutionIdentifier" + retry_attempt: + type: "integer" + format: "int64" + title: "retry attempt number for this task, ie., 2 for the second attempt" + phase: + title: "Phase associated with the event" + $ref: "#/definitions/coreTaskExecutionPhase" + producer_id: + type: "string" + title: "id of the process that sent this event, mainly for trace debugging" + logs: + type: "array" + title: "log information for the task execution" + items: + $ref: "#/definitions/coreTaskLog" + occurred_at: + type: "string" + format: "date-time" + description: "This timestamp represents when the original event occurred,\ + \ it is generated\nby the executor of the task." + input_uri: + type: "string" + description: "URI of the input file, it encodes all the information\nincluding\ + \ Cloud source provider. ie., s3://..." + input_data: + description: "Raw input data consumed by this task execution." + $ref: "#/definitions/coreLiteralMap" + output_uri: + type: "string" + description: "URI to the output of the execution, it will be in a format that\ + \ encodes all the information\nincluding Cloud source provider. ie., s3://..." + error: + title: "Error information for the execution" + $ref: "#/definitions/coreExecutionError" + output_data: + description: "Raw output data produced by this task execution." + $ref: "#/definitions/coreLiteralMap" + custom_info: + description: "Custom data that the task plugin sends back. This is extensible\ + \ to allow various plugins in the system." + $ref: "#/definitions/protobufStruct" + phase_version: + type: "integer" + format: "int64" + description: "Some phases, like RUNNING, can send multiple events with changed\ + \ metadata (new logs, additional custom_info, etc)\nthat should be recorded\ + \ regardless of the lack of phase change.\nThe version field should be incremented\ + \ when metadata changes across the duration of an individual phase." + reason: + type: "string" + description: "An optional explanation for the phase transition." + task_type: + type: "string" + description: "A predefined yet extensible Task type identifier. If the task\ + \ definition is already registered in flyte admin\nthis type will be identical,\ + \ but not all task executions necessarily use pre-registered definitions\ + \ and this\ntype is useful to render the task in the UI, filter task executions,\ + \ etc." + metadata: + description: "Metadata around how a task was executed." + $ref: "#/definitions/flyteidleventTaskExecutionMetadata" + event_version: + type: "integer" + format: "int32" + description: "The event version is used to indicate versioned changes in how\ + \ data is reported using this\nproto message. For example, event_verison\ + \ > 0 means that maps tasks report logs using the\nTaskExecutionMetadata\ + \ ExternalResourceInfo fields for each subtask rather than the TaskLog\n\ + in this message." + reported_at: + type: "string" + format: "date-time" + description: "This timestamp represents the instant when the event was reported\ + \ by the executing framework. For example, a k8s\npod task may be marked\ + \ completed at (ie. `occurred_at`) the instant the container running user\ + \ code completes,\nbut this event will not be reported until the pod is\ + \ marked as completed. Extracting both of these timestamps\nfacilitates\ + \ a more accurate portrayal of the evaluation time-series." + description: "Plugin specific execution event information. For tasks like Python,\ + \ Hive, Spark, DynamicJob." + eventWorkflowExecutionEvent: + type: "object" + properties: + execution_id: + title: "Workflow execution id" + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + producer_id: + type: "string" + title: "the id of the originator (Propeller) of the event" + phase: + $ref: "#/definitions/coreWorkflowExecutionPhase" + occurred_at: + type: "string" + format: "date-time" + description: "This timestamp represents when the original event occurred,\ + \ it is generated\nby the executor of the workflow." + output_uri: + type: "string" + description: "URL to the output of the execution, it encodes all the information\n\ + including Cloud source provider. ie., s3://..." + error: + title: "Error information for the execution" + $ref: "#/definitions/coreExecutionError" + output_data: + description: "Raw output data produced by this workflow execution." + $ref: "#/definitions/coreLiteralMap" + flyteidladminDynamicWorkflowNodeMetadata: + type: "object" + properties: + id: + description: "id represents the unique identifier of the workflow." + $ref: "#/definitions/coreIdentifier" + compiled_workflow: + description: "Represents the compiled representation of the embedded dynamic\ + \ workflow." + $ref: "#/definitions/coreCompiledWorkflowClosure" + dynamic_job_spec_uri: + type: "string" + description: "dynamic_job_spec_uri is the location of the DynamicJobSpec proto\ + \ message for this DynamicWorkflow. This is\nrequired to correctly recover\ + \ partially completed executions where the subworkflow has already been\ + \ compiled." + description: "For dynamic workflow nodes we capture information about the dynamic\ + \ workflow definition that gets generated." + example: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 5 + - container_port: 5 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + architecture: {} + metadata: + retries: + retries: 0 + pod_template_name: "pod_template_name" + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + cache_serializable: true + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + interruptible: true + timeout: "timeout" + generates_deck: true + tags: + key: "tags" + task_type_version: 2 + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + k8s_pod: + metadata: + annotations: + key: "annotations" + labels: + key: "labels" + pod_spec: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + data_config: + io_strategy: + upload_mode: {} + download_mode: {} + format: {} + output_path: "output_path" + enabled: true + input_path: "input_path" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + config: + key: "config" + security_context: + run_as: + execution_identity: "execution_identity" + iam_role: "iam_role" + oauth2_client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + k8s_service_account: "k8s_service_account" + tokens: + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + - idp_discovery_endpoint: "idp_discovery_endpoint" + name: "name" + client: + client_secret: + mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + client_id: "client_id" + type: {} + token_endpoint: "token_endpoint" + secrets: + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + - mount_requirement: {} + group_version: "group_version" + key: "key" + group: "group" + sql: + dialect: {} + statement: "statement" + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + metadata: + on_failure: {} + quality_of_service: + tier: {} + spec: + queueing_budget: "queueing_budget" + tags: + key: "tags" + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + right_value: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + var: "var" + operator: {} + array_node: + min_successes: 1 + parallelism: 6 + min_success_ratio: 5.962134 + metadata: + retries: + retries: 0 + name: "name" + interruptible: true + timeout: "timeout" + gate_node: + sleep: + duration: "duration" + approve: + signal_id: "signal_id" + signal: + output_variable_name: "output_variable_name" + signal_id: "signal_id" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 1.4658129805029452 + integer: "integer" + binary: + tag: "tag" + value: "value" + structured_dataset: + metadata: + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + uri: "uri" + union: + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + union: + targetType: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + overrides: + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata_defaults: + interruptible: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + annotation: + annotations: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + structured_dataset_type: + external_schema_type: "external_schema_type" + columns: + - name: "name" + - name: "name" + format: "format" + external_schema_bytes: "external_schema_bytes" + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + enum_type: + values: + - "values" + - "values" + union_type: + variants: + - null + - null + simple: {} + structure: + tag: "tag" + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + dynamic_job_spec_uri: "dynamic_job_spec_uri" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + flyteidladminNodeExecution: + type: "object" + properties: + id: + description: "Uniquely identifies an individual node execution." + $ref: "#/definitions/coreNodeExecutionIdentifier" + input_uri: + type: "string" + description: "Path to remote data store where input blob is stored." + closure: + description: "Computed results associated with this node execution." + $ref: "#/definitions/adminNodeExecutionClosure" + metadata: + title: "Metadata for Node Execution" + $ref: "#/definitions/adminNodeExecutionMetaData" + description: "Encapsulates all details for a single node execution entity.\nA\ + \ node represents a component in the overall workflow graph. A node launch a\ + \ task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow\ + \ execution.\nThe same task can be called repeatedly in a single workflow but\ + \ each node is unique." + example: + metadata: + retry_group: "retry_group" + is_parent_node: true + spec_node_id: "spec_node_id" + is_dynamic: true + input_uri: "input_uri" + id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + closure: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + task_node_metadata: + catalog_key: + source_task_execution: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + dataset_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + artifact_tag: + name: "name" + artifact_id: "artifact_id" + checkpoint_uri: "checkpoint_uri" + cache_status: {} + dynamic_job_spec_uri: "dynamic_job_spec_uri" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + output_data: + literals: {} + deck_uri: "deck_uri" + flyteidladminTaskCreateRequest: + type: "object" + properties: + id: + title: "id represents the unique identifier of the task.\n+required" + $ref: "#/definitions/coreIdentifier" + spec: + title: "Represents the specification for task.\n+required" + $ref: "#/definitions/adminTaskSpec" + title: "Represents a request structure to create a revision of a task.\nSee :ref:`ref_flyteidl.admin.Task`\ + \ for more details" + flyteidladminTaskCreateResponse: + type: "object" + description: "Represents a response structure if task creation succeeds." + flyteidladminTaskExecution: + type: "object" + properties: + id: + description: "Unique identifier for the task execution." + $ref: "#/definitions/coreTaskExecutionIdentifier" + input_uri: + type: "string" + description: "Path to remote data store where input blob is stored." + closure: + description: "Task execution details and results." + $ref: "#/definitions/adminTaskExecutionClosure" + is_parent: + type: "boolean" + format: "boolean" + description: "Whether this task spawned nodes." + description: "Encapsulates all details for a single task execution entity.\nA\ + \ task execution represents an instantiated task, including all inputs and additional\n\ + metadata as well as computed results included state, outputs, and duration-based\ + \ attributes." + example: + input_uri: "input_uri" + id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + is_parent: true + closure: + phase: {} + reason: "reason" + metadata: + external_resources: + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + instance_class: {} + resource_pool_info: + - allocation_token: "allocation_token" + namespace: "namespace" + - allocation_token: "allocation_token" + namespace: "namespace" + generated_name: "generated_name" + plugin_identifier: "plugin_identifier" + reasons: + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + - occurred_at: "2000-01-23T04:56:07.000+00:00" + message: "message" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + kind: {} + message: "message" + error_uri: "error_uri" + duration: "duration" + event_version: 1 + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + task_type: "task_type" + output_data: + literals: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + flyteidladminTaskNodeMetadata: + type: "object" + properties: + cache_status: + description: "Captures the status of caching for this execution." + $ref: "#/definitions/coreCatalogCacheStatus" + catalog_key: + title: "This structure carries the catalog artifact information" + $ref: "#/definitions/coreCatalogMetadata" + checkpoint_uri: + type: "string" + title: "The latest checkpoint location" + title: "Metadata for the case in which the node is a TaskNode" + example: + catalog_key: + source_task_execution: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + dataset_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + artifact_tag: + name: "name" + artifact_id: "artifact_id" + checkpoint_uri: "checkpoint_uri" + cache_status: {} + flyteidladminWorkflowNodeMetadata: + type: "object" + properties: + executionId: + description: "The identifier for a workflow execution launched by a node." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + title: "Metadata for a WorkflowNode" + example: + executionId: + domain: "domain" + name: "name" + project: "project" + flyteidleventDynamicWorkflowNodeMetadata: + type: "object" + properties: + id: + description: "id represents the unique identifier of the workflow." + $ref: "#/definitions/coreIdentifier" + compiled_workflow: + description: "Represents the compiled representation of the embedded dynamic\ + \ workflow." + $ref: "#/definitions/coreCompiledWorkflowClosure" + dynamic_job_spec_uri: + type: "string" + description: "dynamic_job_spec_uri is the location of the DynamicJobSpec proto\ + \ message for this DynamicWorkflow. This is\nrequired to correctly recover\ + \ partially completed executions where the workflow has already been compiled." + description: "For dynamic workflow nodes we send information about the dynamic\ + \ workflow definition that gets generated." + flyteidleventTaskExecutionMetadata: + type: "object" + properties: + generated_name: + type: "string" + description: "Unique, generated name for this task execution used by the backend." + external_resources: + type: "array" + description: "Additional data on external resources on other back-ends or\ + \ platforms (e.g. Hive, Qubole, etc) launched by this task execution." + items: + $ref: "#/definitions/eventExternalResourceInfo" + resource_pool_info: + type: "array" + description: "Includes additional data on concurrent resource management used\ + \ during execution..\nThis is a repeated field because a plugin can request\ + \ multiple resource allocations during execution." + items: + $ref: "#/definitions/eventResourcePoolInfo" + plugin_identifier: + type: "string" + description: "The identifier of the plugin used to execute this task." + instance_class: + $ref: "#/definitions/TaskExecutionMetadataInstanceClass" + description: "Holds metadata around how a task was executed.\nAs a task transitions\ + \ across event phases during execution some attributes, such its generated name,\ + \ generated external resources,\nand more may grow in size but not change necessarily\ + \ based on the phase transition that sparked the event update.\nMetadata is\ + \ a container for these attributes across the task execution lifecycle." + example: + external_resources: + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - index: 0 + external_id: "external_id" + retry_attempt: 6 + cache_status: {} + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + instance_class: {} + resource_pool_info: + - allocation_token: "allocation_token" + namespace: "namespace" + - allocation_token: "allocation_token" + namespace: "namespace" + generated_name: "generated_name" + plugin_identifier: "plugin_identifier" + flyteidleventTaskNodeMetadata: + type: "object" + properties: + cache_status: + description: "Captures the status of caching for this execution." + $ref: "#/definitions/coreCatalogCacheStatus" + catalog_key: + title: "This structure carries the catalog artifact information" + $ref: "#/definitions/coreCatalogMetadata" + reservation_status: + description: "Captures the status of cache reservations for this execution." + $ref: "#/definitions/CatalogReservationStatus" + checkpoint_uri: + type: "string" + title: "The latest checkpoint location" + dynamic_workflow: + description: "In the case this task launched a dynamic workflow we capture\ + \ its structure here." + $ref: "#/definitions/flyteidleventDynamicWorkflowNodeMetadata" + flyteidleventWorkflowNodeMetadata: + type: "object" + properties: + execution_id: + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + title: "For Workflow Nodes we need to send information about the workflow that's\ + \ launched" + protobufListValue: + type: "object" + properties: + values: + type: "array" + description: "Repeated field of dynamically typed values." + items: + $ref: "#/definitions/protobufValue" + description: "`ListValue` is a wrapper around a repeated field of values.\n\n\ + The JSON representation for `ListValue` is JSON array." + example: + values: + - null + - null + protobufNullValue: + type: "string" + 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." + enum: + - "NULL_VALUE" + default: "NULL_VALUE" + protobufStruct: + type: "object" + properties: + fields: + type: "object" + description: "Unordered map of dynamically typed values." + additionalProperties: + $ref: "#/definitions/protobufValue" + description: "`Struct` represents a structured data value, consisting of fields\n\ + which map to dynamically typed values. In some languages, `Struct`\nmight be\ + \ supported by a native representation. For example, in\nscripting languages\ + \ like JS a struct is represented as an\nobject. The details of that representation\ + \ are described together\nwith the proto support for the language.\n\nThe JSON\ + \ representation for `Struct` is JSON object." + example: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + protobufValue: + type: "object" + properties: + null_value: + description: "Represents a null value." + $ref: "#/definitions/protobufNullValue" + number_value: + type: "number" + format: "double" + description: "Represents a double value." + string_value: + type: "string" + description: "Represents a string value." + bool_value: + type: "boolean" + format: "boolean" + description: "Represents a boolean value." + struct_value: + description: "Represents a structured value." + $ref: "#/definitions/protobufStruct" + list_value: + description: "Represents a repeated `Value`." + $ref: "#/definitions/protobufListValue" + description: "`Value` represents a dynamically typed value which can be either\n\ + null, a number, a string, a boolean, a recursive struct value, or a\nlist of\ + \ values. A producer of value is expected to set one of that\nvariants, absence\ + \ of any variant indicates an error.\n\nThe JSON representation for `Value`\ + \ is JSON value." + example: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go new file mode 100644 index 0000000000..1ad9e1f583 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go @@ -0,0 +1,5948 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type AdminServiceApiService service + +/* +AdminServiceApiService Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminExecutionCreateResponse +*/ +func (a *AdminServiceApiService) CreateExecution(ctx context.Context, body AdminExecutionCreateRequest) (AdminExecutionCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminLaunchPlanCreateResponse +*/ +func (a *AdminServiceApiService) CreateLaunchPlan(ctx context.Context, body AdminLaunchPlanCreateRequest) (AdminLaunchPlanCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminNodeExecutionEventResponse +*/ +func (a *AdminServiceApiService) CreateNodeEvent(ctx context.Context, body AdminNodeExecutionEventRequest) (AdminNodeExecutionEventResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionEventResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/events/nodes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionEventResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Create and upload a :ref:`ref_flyteidl.admin.Task` definition + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return FlyteidladminTaskCreateResponse +*/ +func (a *AdminServiceApiService) CreateTask(ctx context.Context, body FlyteidladminTaskCreateRequest) (FlyteidladminTaskCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FlyteidladminTaskCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v FlyteidladminTaskCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminTaskExecutionEventResponse +*/ +func (a *AdminServiceApiService) CreateTaskEvent(ctx context.Context, body AdminTaskExecutionEventRequest) (AdminTaskExecutionEventResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskExecutionEventResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/events/tasks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskExecutionEventResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminWorkflowCreateResponse +*/ +func (a *AdminServiceApiService) CreateWorkflow(ctx context.Context, body AdminWorkflowCreateRequest) (AdminWorkflowCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminWorkflowExecutionEventResponse +*/ +func (a *AdminServiceApiService) CreateWorkflowEvent(ctx context.Context, body AdminWorkflowExecutionEventRequest) (AdminWorkflowExecutionEventResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowExecutionEventResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/events/workflows" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowExecutionEventResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Unique project id which this set of attributes references. +required + * @param body + +@return AdminProjectAttributesDeleteResponse +*/ +func (a *AdminServiceApiService) DeleteProjectAttributes(ctx context.Context, project string, body AdminProjectAttributesDeleteRequest) (AdminProjectAttributesDeleteResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectAttributesDeleteResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/project_attributes/{project}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectAttributesDeleteResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Unique project id which this set of attributes references. +required + * @param domain Unique domain id which this set of attributes references. +required + * @param body + +@return AdminProjectDomainAttributesDeleteResponse +*/ +func (a *AdminServiceApiService) DeleteProjectDomainAttributes(ctx context.Context, project string, domain string, body AdminProjectDomainAttributesDeleteRequest) (AdminProjectDomainAttributesDeleteResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectDomainAttributesDeleteResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/project_domain_attributes/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectDomainAttributesDeleteResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Unique project id which this set of attributes references. +required + * @param domain Unique domain id which this set of attributes references. +required + * @param workflow Workflow name which this set of attributes references. +required + * @param body + +@return AdminWorkflowAttributesDeleteResponse +*/ +func (a *AdminServiceApiService) DeleteWorkflowAttributes(ctx context.Context, project string, domain string, workflow string, body AdminWorkflowAttributesDeleteRequest) (AdminWorkflowAttributesDeleteResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowAttributesDeleteResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_attributes/{project}/{domain}/{workflow}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"workflow"+"}", fmt.Sprintf("%v", workflow), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowAttributesDeleteResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + +@return AdminLaunchPlan +*/ +func (a *AdminServiceApiService) GetActiveLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string) (AdminLaunchPlan, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlan + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlan + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idResourceType Identifies the specific type of resource that this identifier corresponds to. + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + +@return AdminDescriptionEntity +*/ +func (a *AdminServiceApiService) GetDescriptionEntity(ctx context.Context, idResourceType string, idProject string, idDomain string, idName string, idVersion string) (AdminDescriptionEntity, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminDescriptionEntity + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.resource_type"+"}", fmt.Sprintf("%v", idResourceType), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminDescriptionEntity + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches a :ref:`ref_flyteidl.admin.Execution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + +@return AdminExecution +*/ +func (a *AdminServiceApiService) GetExecution(ctx context.Context, idProject string, idDomain string, idName string) (AdminExecution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + +@return AdminWorkflowExecutionGetDataResponse +*/ +func (a *AdminServiceApiService) GetExecutionData(ctx context.Context, idProject string, idDomain string, idName string) (AdminWorkflowExecutionGetDataResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowExecutionGetDataResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowExecutionGetDataResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + * @param optional nil or *GetExecutionMetricsOpts - Optional Parameters: + * @param "Depth" (optional.Int32) - depth defines the number of Flyte entity levels to traverse when breaking down execution details. + +@return AdminWorkflowExecutionGetMetricsResponse +*/ + +type GetExecutionMetricsOpts struct { + Depth optional.Int32 +} + +func (a *AdminServiceApiService) GetExecutionMetrics(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *GetExecutionMetricsOpts) (AdminWorkflowExecutionGetMetricsResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowExecutionGetMetricsResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Depth.IsSet() { + localVarQueryParams.Add("depth", parameterToString(localVarOptionals.Depth.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowExecutionGetMetricsResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param optional nil or *GetLaunchPlanOpts - Optional Parameters: + * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + +@return AdminLaunchPlan +*/ + +type GetLaunchPlanOpts struct { + IdResourceType optional.String +} + +func (a *AdminServiceApiService) GetLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetLaunchPlanOpts) (AdminLaunchPlan, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlan + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { + localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlan + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param resourceType Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. +required + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + +@return AdminNamedEntity +*/ +func (a *AdminServiceApiService) GetNamedEntity(ctx context.Context, resourceType string, idProject string, idDomain string, idName string) (AdminNamedEntity, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntity + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntity + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idExecutionIdProject Name of the project the resource belongs to. + * @param idExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idExecutionIdName User or system provided value for the resource. + * @param idNodeId + +@return FlyteidladminNodeExecution +*/ +func (a *AdminServiceApiService) GetNodeExecution(ctx context.Context, idExecutionIdProject string, idExecutionIdDomain string, idExecutionIdName string, idNodeId string) (FlyteidladminNodeExecution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FlyteidladminNodeExecution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.project"+"}", fmt.Sprintf("%v", idExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.domain"+"}", fmt.Sprintf("%v", idExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.name"+"}", fmt.Sprintf("%v", idExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_id"+"}", fmt.Sprintf("%v", idNodeId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v FlyteidladminNodeExecution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idExecutionIdProject Name of the project the resource belongs to. + * @param idExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idExecutionIdName User or system provided value for the resource. + * @param idNodeId + +@return AdminNodeExecutionGetDataResponse +*/ +func (a *AdminServiceApiService) GetNodeExecutionData(ctx context.Context, idExecutionIdProject string, idExecutionIdDomain string, idExecutionIdName string, idNodeId string) (AdminNodeExecutionGetDataResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionGetDataResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.project"+"}", fmt.Sprintf("%v", idExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.domain"+"}", fmt.Sprintf("%v", idExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.name"+"}", fmt.Sprintf("%v", idExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_id"+"}", fmt.Sprintf("%v", idNodeId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionGetDataResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Unique project id which this set of attributes references. +required + * @param optional nil or *GetProjectAttributesOpts - Optional Parameters: + * @param "ResourceType" (optional.String) - Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + +@return AdminProjectAttributesGetResponse +*/ + +type GetProjectAttributesOpts struct { + ResourceType optional.String +} + +func (a *AdminServiceApiService) GetProjectAttributes(ctx context.Context, project string, localVarOptionals *GetProjectAttributesOpts) (AdminProjectAttributesGetResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectAttributesGetResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/project_attributes/{project}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { + localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectAttributesGetResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Unique project id which this set of attributes references. +required + * @param domain Unique domain id which this set of attributes references. +required + * @param optional nil or *GetProjectDomainAttributesOpts - Optional Parameters: + * @param "ResourceType" (optional.String) - Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + +@return AdminProjectDomainAttributesGetResponse +*/ + +type GetProjectDomainAttributesOpts struct { + ResourceType optional.String +} + +func (a *AdminServiceApiService) GetProjectDomainAttributes(ctx context.Context, project string, domain string, localVarOptionals *GetProjectDomainAttributesOpts) (AdminProjectDomainAttributesGetResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectDomainAttributesGetResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/project_domain_attributes/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { + localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectDomainAttributesGetResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.Task` definition. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param optional nil or *GetTaskOpts - Optional Parameters: + * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + +@return AdminTask +*/ + +type GetTaskOpts struct { + IdResourceType optional.String +} + +func (a *AdminServiceApiService) GetTask(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetTaskOpts) (AdminTask, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTask + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { + localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTask + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param idNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idNodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param idNodeExecutionIdNodeId + * @param idTaskIdProject Name of the project the resource belongs to. + * @param idTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idTaskIdName User provided value for the resource. + * @param idTaskIdVersion Specific version of the resource. + * @param idRetryAttempt + * @param optional nil or *GetTaskExecutionOpts - Optional Parameters: + * @param "IdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + +@return FlyteidladminTaskExecution +*/ + +type GetTaskExecutionOpts struct { + IdTaskIdResourceType optional.String +} + +func (a *AdminServiceApiService) GetTaskExecution(ctx context.Context, idNodeExecutionIdExecutionIdProject string, idNodeExecutionIdExecutionIdDomain string, idNodeExecutionIdExecutionIdName string, idNodeExecutionIdNodeId string, idTaskIdProject string, idTaskIdDomain string, idTaskIdName string, idTaskIdVersion string, idRetryAttempt int64, localVarOptionals *GetTaskExecutionOpts) (FlyteidladminTaskExecution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FlyteidladminTaskExecution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", idNodeExecutionIdNodeId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.project"+"}", fmt.Sprintf("%v", idTaskIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.domain"+"}", fmt.Sprintf("%v", idTaskIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.name"+"}", fmt.Sprintf("%v", idTaskIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.version"+"}", fmt.Sprintf("%v", idTaskIdVersion), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.retry_attempt"+"}", fmt.Sprintf("%v", idRetryAttempt), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdTaskIdResourceType.IsSet() { + localVarQueryParams.Add("id.task_id.resource_type", parameterToString(localVarOptionals.IdTaskIdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v FlyteidladminTaskExecution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param idNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idNodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param idNodeExecutionIdNodeId + * @param idTaskIdProject Name of the project the resource belongs to. + * @param idTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idTaskIdName User provided value for the resource. + * @param idTaskIdVersion Specific version of the resource. + * @param idRetryAttempt + * @param optional nil or *GetTaskExecutionDataOpts - Optional Parameters: + * @param "IdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + +@return AdminTaskExecutionGetDataResponse +*/ + +type GetTaskExecutionDataOpts struct { + IdTaskIdResourceType optional.String +} + +func (a *AdminServiceApiService) GetTaskExecutionData(ctx context.Context, idNodeExecutionIdExecutionIdProject string, idNodeExecutionIdExecutionIdDomain string, idNodeExecutionIdExecutionIdName string, idNodeExecutionIdNodeId string, idTaskIdProject string, idTaskIdDomain string, idTaskIdName string, idTaskIdVersion string, idRetryAttempt int64, localVarOptionals *GetTaskExecutionDataOpts) (AdminTaskExecutionGetDataResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskExecutionGetDataResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", idNodeExecutionIdNodeId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.project"+"}", fmt.Sprintf("%v", idTaskIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.domain"+"}", fmt.Sprintf("%v", idTaskIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.name"+"}", fmt.Sprintf("%v", idTaskIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.version"+"}", fmt.Sprintf("%v", idTaskIdVersion), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.retry_attempt"+"}", fmt.Sprintf("%v", idRetryAttempt), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdTaskIdResourceType.IsSet() { + localVarQueryParams.Add("id.task_id.resource_type", parameterToString(localVarOptionals.IdTaskIdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskExecutionGetDataResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return AdminGetVersionResponse +*/ +func (a *AdminServiceApiService) GetVersion(ctx context.Context) (AdminGetVersionResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminGetVersionResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/version" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminGetVersionResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param optional nil or *GetWorkflowOpts - Optional Parameters: + * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + +@return AdminWorkflow +*/ + +type GetWorkflowOpts struct { + IdResourceType optional.String +} + +func (a *AdminServiceApiService) GetWorkflow(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetWorkflowOpts) (AdminWorkflow, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflow + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { + localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflow + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Unique project id which this set of attributes references. +required + * @param domain Unique domain id which this set of attributes references. +required + * @param workflow Workflow name which this set of attributes references. +required + * @param optional nil or *GetWorkflowAttributesOpts - Optional Parameters: + * @param "ResourceType" (optional.String) - Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + +@return AdminWorkflowAttributesGetResponse +*/ + +type GetWorkflowAttributesOpts struct { + ResourceType optional.String +} + +func (a *AdminServiceApiService) GetWorkflowAttributes(ctx context.Context, project string, domain string, workflow string, localVarOptionals *GetWorkflowAttributesOpts) (AdminWorkflowAttributesGetResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowAttributesGetResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_attributes/{project}/{domain}/{workflow}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"workflow"+"}", fmt.Sprintf("%v", workflow), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { + localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowAttributesGetResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Name of the project that contains the identifiers. +required. + * @param domain Name of the domain the identifiers belongs to within the project. +required. + * @param optional nil or *ListActiveLaunchPlansOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminLaunchPlanList +*/ + +type ListActiveLaunchPlansOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListActiveLaunchPlans(ctx context.Context, project string, domain string, localVarOptionals *ListActiveLaunchPlansOpts) (AdminLaunchPlanList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/active_launch_plans/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param resourceType Identifies the specific type of resource that this identifier corresponds to. + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param optional nil or *ListDescriptionEntitiesOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminDescriptionEntityList +*/ + +type ListDescriptionEntitiesOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListDescriptionEntities(ctx context.Context, resourceType string, idProject string, idDomain string, idName string, localVarOptionals *ListDescriptionEntitiesOpts) (AdminDescriptionEntityList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminDescriptionEntityList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminDescriptionEntityList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param resourceType Identifies the specific type of resource that this identifier corresponds to. + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListDescriptionEntities2Opts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminDescriptionEntityList +*/ + +type ListDescriptionEntities2Opts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListDescriptionEntities2(ctx context.Context, resourceType string, idProject string, idDomain string, localVarOptionals *ListDescriptionEntities2Opts) (AdminDescriptionEntityList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminDescriptionEntityList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminDescriptionEntityList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListExecutionsOpts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminExecutionList +*/ + +type ListExecutionsOpts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListExecutions(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListExecutionsOpts) (AdminExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Name of the project that contains the identifiers. +required + * @param domain Name of the domain the identifiers belongs to within the project. +required + * @param optional nil or *ListLaunchPlanIdsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. + +@return AdminNamedEntityIdentifierList +*/ + +type ListLaunchPlanIdsOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String + Filters optional.String +} + +func (a *AdminServiceApiService) ListLaunchPlanIds(ctx context.Context, project string, domain string, localVarOptionals *ListLaunchPlanIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityIdentifierList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plan_ids/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityIdentifierList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param optional nil or *ListLaunchPlansOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminLaunchPlanList +*/ + +type ListLaunchPlansOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListLaunchPlans(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListLaunchPlansOpts) (AdminLaunchPlanList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListLaunchPlans2Opts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminLaunchPlanList +*/ + +type ListLaunchPlans2Opts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListLaunchPlans2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListLaunchPlans2Opts) (AdminLaunchPlanList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ListMatchableAttributesOpts - Optional Parameters: + * @param "ResourceType" (optional.String) - +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + +@return AdminListMatchableAttributesResponse +*/ + +type ListMatchableAttributesOpts struct { + ResourceType optional.String +} + +func (a *AdminServiceApiService) ListMatchableAttributes(ctx context.Context, localVarOptionals *ListMatchableAttributesOpts) (AdminListMatchableAttributesResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminListMatchableAttributesResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/matchable_attributes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { + localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminListMatchableAttributesResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param resourceType Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. +required + * @param project Name of the project that contains the identifiers. +required + * @param domain Name of the domain the identifiers belongs to within the project. + * @param optional nil or *ListNamedEntitiesOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. + +@return AdminNamedEntityList +*/ + +type ListNamedEntitiesOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String + Filters optional.String +} + +func (a *AdminServiceApiService) ListNamedEntities(ctx context.Context, resourceType string, project string, domain string, localVarOptionals *ListNamedEntitiesOpts) (AdminNamedEntityList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/named_entities/{resource_type}/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param workflowExecutionIdProject Name of the project the resource belongs to. + * @param workflowExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param workflowExecutionIdName User or system provided value for the resource. + * @param optional nil or *ListNodeExecutionsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + * @param "UniqueParentId" (optional.String) - Unique identifier of the parent node in the execution +optional. + +@return AdminNodeExecutionList +*/ + +type ListNodeExecutionsOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String + UniqueParentId optional.String +} + +func (a *AdminServiceApiService) ListNodeExecutions(ctx context.Context, workflowExecutionIdProject string, workflowExecutionIdDomain string, workflowExecutionIdName string, localVarOptionals *ListNodeExecutionsOpts) (AdminNodeExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.project"+"}", fmt.Sprintf("%v", workflowExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.domain"+"}", fmt.Sprintf("%v", workflowExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.name"+"}", fmt.Sprintf("%v", workflowExecutionIdName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.UniqueParentId.IsSet() { + localVarQueryParams.Add("unique_parent_id", parameterToString(localVarOptionals.UniqueParentId.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param taskExecutionIdNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param taskExecutionIdNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param taskExecutionIdNodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param taskExecutionIdNodeExecutionIdNodeId + * @param taskExecutionIdTaskIdProject Name of the project the resource belongs to. + * @param taskExecutionIdTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param taskExecutionIdTaskIdName User provided value for the resource. + * @param taskExecutionIdTaskIdVersion Specific version of the resource. + * @param taskExecutionIdRetryAttempt + * @param optional nil or *ListNodeExecutionsForTaskOpts - Optional Parameters: + * @param "TaskExecutionIdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminNodeExecutionList +*/ + +type ListNodeExecutionsForTaskOpts struct { + TaskExecutionIdTaskIdResourceType optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListNodeExecutionsForTask(ctx context.Context, taskExecutionIdNodeExecutionIdExecutionIdProject string, taskExecutionIdNodeExecutionIdExecutionIdDomain string, taskExecutionIdNodeExecutionIdExecutionIdName string, taskExecutionIdNodeExecutionIdNodeId string, taskExecutionIdTaskIdProject string, taskExecutionIdTaskIdDomain string, taskExecutionIdTaskIdName string, taskExecutionIdTaskIdVersion string, taskExecutionIdRetryAttempt int64, localVarOptionals *ListNodeExecutionsForTaskOpts) (AdminNodeExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}" + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdNodeId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.project"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.domain"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.name"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.version"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdVersion), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.retry_attempt"+"}", fmt.Sprintf("%v", taskExecutionIdRetryAttempt), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.TaskExecutionIdTaskIdResourceType.IsSet() { + localVarQueryParams.Add("task_execution_id.task_id.resource_type", parameterToString(localVarOptionals.TaskExecutionIdTaskIdResourceType.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches a list of :ref:`ref_flyteidl.admin.Project` + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ListProjectsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of projects to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminProjects +*/ + +type ListProjectsOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListProjects(ctx context.Context, localVarOptionals *ListProjectsOpts) (AdminProjects, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjects + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjects + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param nodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param nodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param nodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param nodeExecutionIdNodeId + * @param optional nil or *ListTaskExecutionsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminTaskExecutionList +*/ + +type ListTaskExecutionsOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListTaskExecutions(ctx context.Context, nodeExecutionIdExecutionIdProject string, nodeExecutionIdExecutionIdDomain string, nodeExecutionIdExecutionIdName string, nodeExecutionIdNodeId string, localVarOptionals *ListTaskExecutionsOpts) (AdminTaskExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}" + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.node_id"+"}", fmt.Sprintf("%v", nodeExecutionIdNodeId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Name of the project that contains the identifiers. +required + * @param domain Name of the domain the identifiers belongs to within the project. +required + * @param optional nil or *ListTaskIdsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. + +@return AdminNamedEntityIdentifierList +*/ + +type ListTaskIdsOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String + Filters optional.String +} + +func (a *AdminServiceApiService) ListTaskIds(ctx context.Context, project string, domain string, localVarOptionals *ListTaskIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityIdentifierList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/task_ids/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityIdentifierList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param optional nil or *ListTasksOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminTaskList +*/ + +type ListTasksOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListTasks(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListTasksOpts) (AdminTaskList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListTasks2Opts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminTaskList +*/ + +type ListTasks2Opts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListTasks2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListTasks2Opts) (AdminTaskList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Name of the project that contains the identifiers. +required + * @param domain Name of the domain the identifiers belongs to within the project. +required + * @param optional nil or *ListWorkflowIdsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. + +@return AdminNamedEntityIdentifierList +*/ + +type ListWorkflowIdsOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String + Filters optional.String +} + +func (a *AdminServiceApiService) ListWorkflowIds(ctx context.Context, project string, domain string, localVarOptionals *ListWorkflowIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityIdentifierList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_ids/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityIdentifierList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param optional nil or *ListWorkflowsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminWorkflowList +*/ + +type ListWorkflowsOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListWorkflows(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListWorkflowsOpts) (AdminWorkflowList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListWorkflows2Opts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + +@return AdminWorkflowList +*/ + +type ListWorkflows2Opts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListWorkflows2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListWorkflows2Opts) (AdminWorkflowList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminExecutionCreateResponse +*/ +func (a *AdminServiceApiService) RecoverExecution(ctx context.Context, body AdminExecutionRecoverRequest) (AdminExecutionCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/recover" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminProjectRegisterResponse +*/ +func (a *AdminServiceApiService) RegisterProject(ctx context.Context, body AdminProjectRegisterRequest) (AdminProjectRegisterResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectRegisterResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectRegisterResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminExecutionCreateResponse +*/ +func (a *AdminServiceApiService) RelaunchExecution(ctx context.Context, body AdminExecutionRelaunchRequest) (AdminExecutionCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/relaunch" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + * @param body + +@return AdminExecutionTerminateResponse +*/ +func (a *AdminServiceApiService) TerminateExecution(ctx context.Context, idProject string, idDomain string, idName string, body AdminExecutionTerminateRequest) (AdminExecutionTerminateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionTerminateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionTerminateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + * @param body + +@return AdminExecutionUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateExecution(ctx context.Context, idProject string, idDomain string, idName string, body AdminExecutionUpdateRequest) (AdminExecutionUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param body + +@return AdminLaunchPlanUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, body AdminLaunchPlanUpdateRequest) (AdminLaunchPlanUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param resourceType Resource type of the metadata to update +required + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param body + +@return AdminNamedEntityUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateNamedEntity(ctx context.Context, resourceType string, idProject string, idDomain string, idName string, body AdminNamedEntityUpdateRequest) (AdminNamedEntityUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param id Globally unique project name. + * @param body + +@return AdminProjectUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateProject(ctx context.Context, id string, body AdminProject) (AdminProjectUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/projects/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param attributesProject Unique project id for which this set of attributes will be applied. + * @param body + +@return AdminProjectAttributesUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateProjectAttributes(ctx context.Context, attributesProject string, body AdminProjectAttributesUpdateRequest) (AdminProjectAttributesUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectAttributesUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/project_attributes/{attributes.project}" + localVarPath = strings.Replace(localVarPath, "{"+"attributes.project"+"}", fmt.Sprintf("%v", attributesProject), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectAttributesUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param attributesProject Unique project id for which this set of attributes will be applied. + * @param attributesDomain Unique domain id for which this set of attributes will be applied. + * @param body + +@return AdminProjectDomainAttributesUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateProjectDomainAttributes(ctx context.Context, attributesProject string, attributesDomain string, body AdminProjectDomainAttributesUpdateRequest) (AdminProjectDomainAttributesUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectDomainAttributesUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"attributes.project"+"}", fmt.Sprintf("%v", attributesProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attributes.domain"+"}", fmt.Sprintf("%v", attributesDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectDomainAttributesUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param attributesProject Unique project id for which this set of attributes will be applied. + * @param attributesDomain Unique domain id for which this set of attributes will be applied. + * @param attributesWorkflow Workflow name for which this set of attributes will be applied. + * @param body + +@return AdminWorkflowAttributesUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateWorkflowAttributes(ctx context.Context, attributesProject string, attributesDomain string, attributesWorkflow string, body AdminWorkflowAttributesUpdateRequest) (AdminWorkflowAttributesUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowAttributesUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}" + localVarPath = strings.Replace(localVarPath, "{"+"attributes.project"+"}", fmt.Sprintf("%v", attributesProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attributes.domain"+"}", fmt.Sprintf("%v", attributesDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"attributes.workflow"+"}", fmt.Sprintf("%v", attributesWorkflow), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowAttributesUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go new file mode 100644 index 0000000000..8fd676821e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go @@ -0,0 +1,464 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") + xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") +) + +// APIClient manages communication with the flyteidl/service/admin.proto API vversion not set +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AdminServiceApi *AdminServiceApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AdminServiceApi = (*AdminServiceApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } + + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile("file", filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + } + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } + expires = now.Add(lifetime) + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericSwaggerError Provides access to the body, error and model on returned errors. +type GenericSwaggerError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericSwaggerError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericSwaggerError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericSwaggerError) Model() interface{} { + return e.model +} \ No newline at end of file diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go new file mode 100644 index 0000000000..5ca411ba6a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go @@ -0,0 +1,72 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "net/http" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKey takes an APIKey as authentication for the request + ContextAPIKey = contextKey("apikey") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +type Configuration struct { + BasePath string `json:"basePath,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + cfg := &Configuration{ + BasePath: "http://localhost", + DefaultHeader: make(map[string]string), + UserAgent: "Swagger-Codegen/1.0.0/go", + } + return cfg +} + +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh new file mode 100644 index 0000000000..ae01b182ae --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_abort_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_abort_metadata.go new file mode 100644 index 0000000000..f2bd1e1146 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_abort_metadata.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Specifies metadata around an aborted workflow execution. +type AdminAbortMetadata struct { + // In the case of a user-specified abort, this will pass along the user-supplied cause. + Cause string `json:"cause,omitempty"` + Principal string `json:"principal,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go new file mode 100644 index 0000000000..ca3f4649dd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Annotation values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge annotations defined at registration and execution time. +type AdminAnnotations struct { + // Map of custom annotations to be applied to the execution resource. + Values map[string]string `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go new file mode 100644 index 0000000000..9901eb85e4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines permissions associated with executions created by this launch plan spec. Use either of these roles when they have permissions required by your workflow execution. Deprecated. +type AdminAuth struct { + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + AssumableIamRole string `json:"assumable_iam_role,omitempty"` + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + KubernetesServiceAccount string `json:"kubernetes_service_account,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth_role.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth_role.go new file mode 100644 index 0000000000..ca6c75ddee --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth_role.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines permissions associated with executions created by this launch plan spec. Use either of these roles when they have permissions required by your workflow execution. Deprecated. +type AdminAuthRole struct { + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + AssumableIamRole string `json:"assumable_iam_role,omitempty"` + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + KubernetesServiceAccount string `json:"kubernetes_service_account,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_assignment.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_assignment.go new file mode 100644 index 0000000000..de9cf5bf86 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_assignment.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates specifications for routing an execution onto a specific cluster. +type AdminClusterAssignment struct { + ClusterPoolName string `json:"cluster_pool_name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_resource_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_resource_attributes.go new file mode 100644 index 0000000000..05f3bb7756 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_resource_attributes.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminClusterResourceAttributes struct { + // Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). Map keys are the *case-sensitive* names of variables in templatized resource files. Map values should be the custom values which get substituted during resource creation. + Attributes map[string]string `json:"attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cron_schedule.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cron_schedule.go new file mode 100644 index 0000000000..fa40dd16bc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cron_schedule.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Options for schedules to run according to a cron expression. +type AdminCronSchedule struct { + Schedule string `json:"schedule,omitempty"` + Offset string `json:"offset,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description.go new file mode 100644 index 0000000000..6e696d7c12 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Full user description with formatting preserved. This can be rendered by clients, such as the console or command line tools with in-tact formatting. +type AdminDescription struct { + Value string `json:"value,omitempty"` + Uri string `json:"uri,omitempty"` + Format *AdminDescriptionFormat `json:"format,omitempty"` + IconLink string `json:"icon_link,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity.go new file mode 100644 index 0000000000..98fdc94706 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity.go @@ -0,0 +1,24 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// DescriptionEntity contains detailed description for the task/workflow. Documentation could provide insight into the algorithms, business use case, etc. +type AdminDescriptionEntity struct { + // id represents the unique identifier of the description entity. + Id *CoreIdentifier `json:"id,omitempty"` + // One-liner overview of the entity. + ShortDescription string `json:"short_description,omitempty"` + // Full user description with formatting preserved. + LongDescription *AdminDescription `json:"long_description,omitempty"` + // Optional link to source code used to define this entity. + SourceCode *AdminSourceCode `json:"source_code,omitempty"` + // User-specified tags. These are arbitrary and can be used for searching filtering and discovering tasks. + Tags []string `json:"tags,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity_list.go new file mode 100644 index 0000000000..98ca02f0a1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminDescriptionEntityList struct { + // A list of DescriptionEntities returned based on the request. + DescriptionEntities []AdminDescriptionEntity `json:"descriptionEntities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_format.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_format.go new file mode 100644 index 0000000000..c392910277 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_format.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminDescriptionFormat : - DESCRIPTION_FORMAT_RST: python default documentation - comments is rst +type AdminDescriptionFormat string + +// List of adminDescriptionFormat +const ( + AdminDescriptionFormatUNKNOWN AdminDescriptionFormat = "DESCRIPTION_FORMAT_UNKNOWN" + AdminDescriptionFormatMARKDOWN AdminDescriptionFormat = "DESCRIPTION_FORMAT_MARKDOWN" + AdminDescriptionFormatHTML AdminDescriptionFormat = "DESCRIPTION_FORMAT_HTML" + AdminDescriptionFormatRST AdminDescriptionFormat = "DESCRIPTION_FORMAT_RST" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go new file mode 100644 index 0000000000..2c2bdaa740 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Namespace within a project commonly used to differentiate between different service instances. e.g. \"production\", \"development\", etc. +type AdminDomain struct { + // Globally unique domain name. + Id string `json:"id,omitempty"` + // Display name. + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go new file mode 100644 index 0000000000..a5d8783209 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines an email notification specification. +type AdminEmailNotification struct { + RecipientsEmail []string `json:"recipients_email,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_envs.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_envs.go new file mode 100644 index 0000000000..7e8ed26ad0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_envs.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Environment variable values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge environment variables defined at registration and execution time. +type AdminEnvs struct { + // Map of custom environment variables to be applied to the execution resource. + Values []CoreKeyValuePair `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go new file mode 100644 index 0000000000..ac331c3483 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A workflow execution represents an instantiated workflow, including all inputs and additional metadata as well as computed results included state, outputs, and duration-based attributes. Used as a response object used in Get and List execution requests. +type AdminExecution struct { + // Unique identifier of the workflow execution. + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + // User-provided configuration and inputs for launching the execution. + Spec *AdminExecutionSpec `json:"spec,omitempty"` + // Execution results. + Closure *AdminExecutionClosure `json:"closure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go new file mode 100644 index 0000000000..831dcb9d02 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go @@ -0,0 +1,43 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type AdminExecutionClosure struct { + // Output URI in the case of a successful execution. DEPRECATED. Use GetExecutionData to fetch output data instead. + Outputs *AdminLiteralMapBlob `json:"outputs,omitempty"` + // Error information in the case of a failed execution. + Error_ *CoreExecutionError `json:"error,omitempty"` + // In the case of a user-specified abort, this will pass along the user-supplied cause. + AbortCause string `json:"abort_cause,omitempty"` + // In the case of a user-specified abort, this will pass along the user and their supplied cause. + AbortMetadata *AdminAbortMetadata `json:"abort_metadata,omitempty"` + // Raw output data produced by this execution. DEPRECATED. Use GetExecutionData to fetch output data instead. + OutputData *CoreLiteralMap `json:"output_data,omitempty"` + ComputedInputs *CoreLiteralMap `json:"computed_inputs,omitempty"` + // Most recent recorded phase for the execution. + Phase *CoreWorkflowExecutionPhase `json:"phase,omitempty"` + // Reported time at which the execution began running. + StartedAt time.Time `json:"started_at,omitempty"` + // The amount of time the execution spent running. + Duration string `json:"duration,omitempty"` + // Reported time at which the execution was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Reported time at which the execution was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. + Notifications []AdminNotification `json:"notifications,omitempty"` + // Identifies the workflow definition for this execution. + WorkflowId *CoreIdentifier `json:"workflow_id,omitempty"` + StateChangeDetails *AdminExecutionStateChangeDetails `json:"state_change_details,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_cluster_label.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_cluster_label.go new file mode 100644 index 0000000000..0666bf60c2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_cluster_label.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminExecutionClusterLabel struct { + Value string `json:"value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go new file mode 100644 index 0000000000..b8da1d4fca --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to launch an execution with the given project, domain and optionally-assigned name. +type AdminExecutionCreateRequest struct { + Project string `json:"project,omitempty"` + Domain string `json:"domain,omitempty"` + Name string `json:"name,omitempty"` + Spec *AdminExecutionSpec `json:"spec,omitempty"` + Inputs *CoreLiteralMap `json:"inputs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go new file mode 100644 index 0000000000..540bc7e143 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// The unique identifier for a successfully created execution. If the name was *not* specified in the create request, this identifier will include a generated name. +type AdminExecutionCreateResponse struct { + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go new file mode 100644 index 0000000000..bffe0c3a0b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminExecutionList struct { + Executions []AdminExecution `json:"executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go new file mode 100644 index 0000000000..9db8ddfd7f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go @@ -0,0 +1,30 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Represents attributes about an execution which are not required to launch the execution but are useful to record. These attributes are assigned at launch time and do not change. +type AdminExecutionMetadata struct { + Mode *ExecutionMetadataExecutionMode `json:"mode,omitempty"` + // Identifier of the entity that triggered this execution. For systems using back-end authentication any value set here will be discarded in favor of the authenticated user context. + Principal string `json:"principal,omitempty"` + // Indicates the nestedness of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. + Nesting int64 `json:"nesting,omitempty"` + // For scheduled executions, the requested time for execution for this specific schedule invocation. + ScheduledAt time.Time `json:"scheduled_at,omitempty"` + ParentNodeExecution *CoreNodeExecutionIdentifier `json:"parent_node_execution,omitempty"` + // Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. + ReferenceExecution *CoreWorkflowExecutionIdentifier `json:"reference_execution,omitempty"` + // Optional, platform-specific metadata about the execution. In this the future this may be gated behind an ACL or some sort of authorization. + SystemMetadata *AdminSystemMetadata `json:"system_metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_queue_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_queue_attributes.go new file mode 100644 index 0000000000..3cced5ad51 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_queue_attributes.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminExecutionQueueAttributes struct { + // Tags used for assigning execution queues for tasks defined within this project. + Tags []string `json:"tags,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_recover_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_recover_request.go new file mode 100644 index 0000000000..571e0013f9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_recover_request.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to recover the referenced execution. +type AdminExecutionRecoverRequest struct { + // Identifier of the workflow execution to recover. + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + Name string `json:"name,omitempty"` + // Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. + Metadata *AdminExecutionMetadata `json:"metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go new file mode 100644 index 0000000000..0f8ccc51c0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to relaunch the referenced execution. +type AdminExecutionRelaunchRequest struct { + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + Name string `json:"name,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. + OverwriteCache bool `json:"overwrite_cache,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go new file mode 100644 index 0000000000..3c9dc0ffdb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go @@ -0,0 +1,44 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime of an execution as it progresses across phase changes. +type AdminExecutionSpec struct { + LaunchPlan *CoreIdentifier `json:"launch_plan,omitempty"` + Inputs *CoreLiteralMap `json:"inputs,omitempty"` + Metadata *AdminExecutionMetadata `json:"metadata,omitempty"` + // List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. + Notifications *AdminNotificationList `json:"notifications,omitempty"` + // This should be set to true if all notifications are intended to be disabled for this execution. + DisableAll bool `json:"disable_all,omitempty"` + // Labels to apply to the execution resource. + Labels *AdminLabels `json:"labels,omitempty"` + // Annotations to apply to the execution resource. + Annotations *AdminAnnotations `json:"annotations,omitempty"` + // Optional: security context override to apply this execution. + SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` + // Optional: auth override to apply this execution. + AuthRole *AdminAuthRole `json:"auth_role,omitempty"` + // Indicates the runtime priority of the execution. + QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` + // Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. + MaxParallelism int32 `json:"max_parallelism,omitempty"` + RawOutputDataConfig *AdminRawOutputDataConfig `json:"raw_output_data_config,omitempty"` + // Controls how to select an available cluster on which this execution should run. + ClusterAssignment *AdminClusterAssignment `json:"cluster_assignment,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. + Interruptible bool `json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. + OverwriteCache bool `json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *AdminEnvs `json:"envs,omitempty"` + // Tags to be set for the execution. + Tags []string `json:"tags,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state.go new file mode 100644 index 0000000000..c67d546f89 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminExecutionState : The state of the execution is used to control its visibility in the UI/CLI. - EXECUTION_ACTIVE: By default, all executions are considered active. - EXECUTION_ARCHIVED: Archived executions are no longer visible in the UI. +type AdminExecutionState string + +// List of adminExecutionState +const ( + AdminExecutionStateACTIVE AdminExecutionState = "EXECUTION_ACTIVE" + AdminExecutionStateARCHIVED AdminExecutionState = "EXECUTION_ARCHIVED" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state_change_details.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state_change_details.go new file mode 100644 index 0000000000..44e3d275a0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state_change_details.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type AdminExecutionStateChangeDetails struct { + // The state of the execution is used to control its visibility in the UI/CLI. + State *AdminExecutionState `json:"state,omitempty"` + // This timestamp represents when the state changed. + OccurredAt time.Time `json:"occurred_at,omitempty"` + Principal string `json:"principal,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go new file mode 100644 index 0000000000..fe49673450 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to terminate an in-progress execution. This action is irreversible. If an execution is already terminated, this request will simply be a no-op. This request will fail if it references a non-existent execution. If the request succeeds the phase \"ABORTED\" will be recorded for the termination with the optional cause added to the output_result. +type AdminExecutionTerminateRequest struct { + // Uniquely identifies the individual workflow execution to be terminated. + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + // Optional reason for aborting. + Cause string `json:"cause,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go new file mode 100644 index 0000000000..7471278b35 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminExecutionTerminateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_request.go new file mode 100644 index 0000000000..681eb05ed9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_request.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminExecutionUpdateRequest struct { + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + State *AdminExecutionState `json:"state,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_response.go new file mode 100644 index 0000000000..34de2f4ce0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminExecutionUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go new file mode 100644 index 0000000000..b92e2a45e2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Option for schedules run at a certain frequency e.g. every 2 minutes. +type AdminFixedRate struct { + Value int64 `json:"value,omitempty"` + Unit *AdminFixedRateUnit `json:"unit,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go new file mode 100644 index 0000000000..4a6dd4877a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminFixedRateUnit : Represents a frequency at which to run a schedule. +type AdminFixedRateUnit string + +// List of adminFixedRateUnit +const ( + AdminFixedRateUnitMINUTE AdminFixedRateUnit = "MINUTE" + AdminFixedRateUnitHOUR AdminFixedRateUnit = "HOUR" + AdminFixedRateUnitDAY AdminFixedRateUnit = "DAY" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_flyte_ur_ls.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_flyte_ur_ls.go new file mode 100644 index 0000000000..6b8a49a661 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_flyte_ur_ls.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// These URLs are returned as part of node and task execution data requests. +type AdminFlyteUrLs struct { + Inputs string `json:"inputs,omitempty"` + Outputs string `json:"outputs,omitempty"` + Deck string `json:"deck,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_get_version_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_get_version_response.go new file mode 100644 index 0000000000..b09afbfe02 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_get_version_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminGetVersionResponse struct { + ControlPlaneVersion *AdminVersion `json:"control_plane_version,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go new file mode 100644 index 0000000000..a544db3a14 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Label values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge labels defined at registration and execution time. +type AdminLabels struct { + // Map of custom labels to be applied to the execution resource. + Values map[string]string `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go new file mode 100644 index 0000000000..d7fa0b566a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A LaunchPlan provides the capability to templatize workflow executions. Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow definition doesn't necessarily have a default value for said input. +type AdminLaunchPlan struct { + // Uniquely identifies a launch plan entity. + Id *CoreIdentifier `json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *AdminLaunchPlanSpec `json:"spec,omitempty"` + // Values computed by the flyte platform after launch plan registration. + Closure *AdminLaunchPlanClosure `json:"closure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go new file mode 100644 index 0000000000..540110cb0f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Values computed by the flyte platform after launch plan registration. These include expected_inputs required to be present in a CreateExecutionRequest to launch the reference workflow as well timestamp values associated with the launch plan. +type AdminLaunchPlanClosure struct { + // Indicate the Launch plan state. + State *AdminLaunchPlanState `json:"state,omitempty"` + ExpectedInputs *CoreParameterMap `json:"expected_inputs,omitempty"` + ExpectedOutputs *CoreVariableMap `json:"expected_outputs,omitempty"` + // Time at which the launch plan was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Time at which the launch plan was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go new file mode 100644 index 0000000000..f7a46775ad --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. +type AdminLaunchPlanCreateRequest struct { + // Uniquely identifies a launch plan entity. + Id *CoreIdentifier `json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *AdminLaunchPlanSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go new file mode 100644 index 0000000000..7203a99c80 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminLaunchPlanCreateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go new file mode 100644 index 0000000000..3e91d5a0b9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminLaunchPlanList struct { + LaunchPlans []AdminLaunchPlan `json:"launch_plans,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go new file mode 100644 index 0000000000..f368501cd8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch the reference workflow. +type AdminLaunchPlanMetadata struct { + Schedule *AdminSchedule `json:"schedule,omitempty"` + Notifications []AdminNotification `json:"notifications,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go new file mode 100644 index 0000000000..644ea168f5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go @@ -0,0 +1,41 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// User-provided launch plan definition and configuration values. +type AdminLaunchPlanSpec struct { + WorkflowId *CoreIdentifier `json:"workflow_id,omitempty"` + EntityMetadata *AdminLaunchPlanMetadata `json:"entity_metadata,omitempty"` + // Input values to be passed for the execution. These can be overriden when an execution is created with this launch plan. + DefaultInputs *CoreParameterMap `json:"default_inputs,omitempty"` + // Fixed, non-overridable inputs for the Launch Plan. These can not be overriden when an execution is created with this launch plan. + FixedInputs *CoreLiteralMap `json:"fixed_inputs,omitempty"` + Role string `json:"role,omitempty"` + // Custom labels to be applied to the execution resource. + Labels *AdminLabels `json:"labels,omitempty"` + // Custom annotations to be applied to the execution resource. + Annotations *AdminAnnotations `json:"annotations,omitempty"` + // Indicates the permission associated with workflow executions triggered with this launch plan. + Auth *AdminAuth `json:"auth,omitempty"` + AuthRole *AdminAuthRole `json:"auth_role,omitempty"` + SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` + // Indicates the runtime priority of the execution. + QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig *AdminRawOutputDataConfig `json:"raw_output_data_config,omitempty"` + // Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. + MaxParallelism int32 `json:"max_parallelism,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. + Interruptible bool `json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. + OverwriteCache bool `json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *AdminEnvs `json:"envs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go new file mode 100644 index 0000000000..f0a1d32782 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminLaunchPlanState : By default any launch plan regardless of state can be used to launch a workflow execution. However, at most one version of a launch plan (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier group will be observed and trigger executions at a defined cadence. +type AdminLaunchPlanState string + +// List of adminLaunchPlanState +const ( + AdminLaunchPlanStateINACTIVE AdminLaunchPlanState = "INACTIVE" + AdminLaunchPlanStateACTIVE AdminLaunchPlanState = "ACTIVE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go new file mode 100644 index 0000000000..bda31c28a1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminLaunchPlanUpdateRequest struct { + // Identifier of launch plan for which to change state. +required. + Id *CoreIdentifier `json:"id,omitempty"` + // Desired state to apply to the launch plan. +required. + State *AdminLaunchPlanState `json:"state,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go new file mode 100644 index 0000000000..84397b0166 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminLaunchPlanUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_list_matchable_attributes_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_list_matchable_attributes_response.go new file mode 100644 index 0000000000..92b56e3124 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_list_matchable_attributes_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminListMatchableAttributesResponse struct { + Configurations []AdminMatchableAttributesConfiguration `json:"configurations,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go new file mode 100644 index 0000000000..ac5e29d42c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminLiteralMapBlob struct { + Values *CoreLiteralMap `json:"values,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_attributes_configuration.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_attributes_configuration.go new file mode 100644 index 0000000000..df6a99884c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_attributes_configuration.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a custom set of attributes applied for either a domain; a domain and project; or domain, project and workflow name. These are used to override system level defaults for kubernetes cluster resource management, default execution values, and more all across different levels of specificity. +type AdminMatchableAttributesConfiguration struct { + Attributes *AdminMatchingAttributes `json:"attributes,omitempty"` + Domain string `json:"domain,omitempty"` + Project string `json:"project,omitempty"` + Workflow string `json:"workflow,omitempty"` + LaunchPlan string `json:"launch_plan,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_resource.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_resource.go new file mode 100644 index 0000000000..411a7becc0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_resource.go @@ -0,0 +1,24 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminMatchableResource : Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes based on matching tags. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. +type AdminMatchableResource string + +// List of adminMatchableResource +const ( + AdminMatchableResourceTASK_RESOURCE AdminMatchableResource = "TASK_RESOURCE" + AdminMatchableResourceCLUSTER_RESOURCE AdminMatchableResource = "CLUSTER_RESOURCE" + AdminMatchableResourceEXECUTION_QUEUE AdminMatchableResource = "EXECUTION_QUEUE" + AdminMatchableResourceEXECUTION_CLUSTER_LABEL AdminMatchableResource = "EXECUTION_CLUSTER_LABEL" + AdminMatchableResourceQUALITY_OF_SERVICE_SPECIFICATION AdminMatchableResource = "QUALITY_OF_SERVICE_SPECIFICATION" + AdminMatchableResourcePLUGIN_OVERRIDE AdminMatchableResource = "PLUGIN_OVERRIDE" + AdminMatchableResourceWORKFLOW_EXECUTION_CONFIG AdminMatchableResource = "WORKFLOW_EXECUTION_CONFIG" + AdminMatchableResourceCLUSTER_ASSIGNMENT AdminMatchableResource = "CLUSTER_ASSIGNMENT" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matching_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matching_attributes.go new file mode 100644 index 0000000000..2af9b6d702 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matching_attributes.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Generic container for encapsulating all types of the above attributes messages. +type AdminMatchingAttributes struct { + TaskResourceAttributes *AdminTaskResourceAttributes `json:"task_resource_attributes,omitempty"` + ClusterResourceAttributes *AdminClusterResourceAttributes `json:"cluster_resource_attributes,omitempty"` + ExecutionQueueAttributes *AdminExecutionQueueAttributes `json:"execution_queue_attributes,omitempty"` + ExecutionClusterLabel *AdminExecutionClusterLabel `json:"execution_cluster_label,omitempty"` + QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` + PluginOverrides *AdminPluginOverrides `json:"plugin_overrides,omitempty"` + WorkflowExecutionConfig *AdminWorkflowExecutionConfig `json:"workflow_execution_config,omitempty"` + ClusterAssignment *AdminClusterAssignment `json:"cluster_assignment,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity.go new file mode 100644 index 0000000000..6239ddb45a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, workflow or launch plan. A NamedEntity is exclusively identified by its resource type and identifier. +type AdminNamedEntity struct { + // Resource type of the named entity. One of Task, Workflow or LaunchPlan. + ResourceType *CoreResourceType `json:"resource_type,omitempty"` + Id *AdminNamedEntityIdentifier `json:"id,omitempty"` + // Additional metadata around a named entity. + Metadata *AdminNamedEntityMetadata `json:"metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go new file mode 100644 index 0000000000..9fa96c57b2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that identifies a Flyte resource. A Flyte resource can be a task, workflow or launch plan. A resource can internally have multiple versions and is uniquely identified by project, domain, and name. +type AdminNamedEntityIdentifier struct { + // Name of the project the resource belongs to. + Project string `json:"project,omitempty"` + // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + Domain string `json:"domain,omitempty"` + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go new file mode 100644 index 0000000000..55cbafc9c9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a list of NamedEntityIdentifiers. +type AdminNamedEntityIdentifierList struct { + // A list of identifiers. + Entities []AdminNamedEntityIdentifier `json:"entities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_list.go new file mode 100644 index 0000000000..d8042a7ff6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a list of NamedEntityIdentifiers. +type AdminNamedEntityList struct { + Entities []AdminNamedEntity `json:"entities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_metadata.go new file mode 100644 index 0000000000..b608d83515 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_metadata.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Additional metadata around a named entity. +type AdminNamedEntityMetadata struct { + Description string `json:"description,omitempty"` + // Shared state across all version of the entity At this point in time, only workflow entities can have their state archived. + State *AdminNamedEntityState `json:"state,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_state.go new file mode 100644 index 0000000000..eed0505492 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_state.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminNamedEntityState : The status of the named entity is used to control its visibility in the UI. - NAMED_ENTITY_ACTIVE: By default, all named entities are considered active and under development. - NAMED_ENTITY_ARCHIVED: Archived named entities are no longer visible in the UI. - SYSTEM_GENERATED: System generated entities that aren't explicitly created or managed by a user. +type AdminNamedEntityState string + +// List of adminNamedEntityState +const ( + AdminNamedEntityStateNAMED_ENTITY_ACTIVE AdminNamedEntityState = "NAMED_ENTITY_ACTIVE" + AdminNamedEntityStateNAMED_ENTITY_ARCHIVED AdminNamedEntityState = "NAMED_ENTITY_ARCHIVED" + AdminNamedEntityStateSYSTEM_GENERATED AdminNamedEntityState = "SYSTEM_GENERATED" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_request.go new file mode 100644 index 0000000000..66fb02ea37 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to set the referenced named entity state to the configured value. +type AdminNamedEntityUpdateRequest struct { + ResourceType *CoreResourceType `json:"resource_type,omitempty"` + Id *AdminNamedEntityIdentifier `json:"id,omitempty"` + Metadata *AdminNamedEntityMetadata `json:"metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_response.go new file mode 100644 index 0000000000..2376f0f26e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminNamedEntityUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go new file mode 100644 index 0000000000..a522ec663e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go @@ -0,0 +1,38 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Container for node execution details and results. +type AdminNodeExecutionClosure struct { + // Links to a remotely stored, serialized core.LiteralMap of node execution outputs. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` + // Raw output data produced by this node execution. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + OutputData *CoreLiteralMap `json:"output_data,omitempty"` + // The last recorded phase for this node execution. + Phase *CoreNodeExecutionPhase `json:"phase,omitempty"` + // Time at which the node execution began running. + StartedAt time.Time `json:"started_at,omitempty"` + // The amount of time the node execution spent running. + Duration string `json:"duration,omitempty"` + // Time at which the node execution was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Time at which the node execution was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` + WorkflowNodeMetadata *FlyteidladminWorkflowNodeMetadata `json:"workflow_node_metadata,omitempty"` + TaskNodeMetadata *FlyteidladminTaskNodeMetadata `json:"task_node_metadata,omitempty"` + DeckUri string `json:"deck_uri,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. + DynamicJobSpecUri string `json:"dynamic_job_spec_uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go new file mode 100644 index 0000000000..f31d2ce272 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to send a notification that a node execution event has occurred. +type AdminNodeExecutionEventRequest struct { + RequestId string `json:"request_id,omitempty"` + // Details about the event that occurred. + Event *EventNodeExecutionEvent `json:"event,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go new file mode 100644 index 0000000000..a1bec33b15 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminNodeExecutionEventResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go new file mode 100644 index 0000000000..0ab85da7cc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +type AdminNodeExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of node execution inputs. Deprecated: Please use full_inputs instead. + Inputs *AdminUrlBlob `json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of node execution outputs. Deprecated: Please use full_outputs instead. + Outputs *AdminUrlBlob `json:"outputs,omitempty"` + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *CoreLiteralMap `json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *CoreLiteralMap `json:"full_outputs,omitempty"` + // Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. + DynamicWorkflow *FlyteidladminDynamicWorkflowNodeMetadata `json:"dynamic_workflow,omitempty"` + FlyteUrls *AdminFlyteUrLs `json:"flyte_urls,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go new file mode 100644 index 0000000000..6ee23b657e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminNodeExecutionList struct { + NodeExecutions []FlyteidladminNodeExecution `json:"node_executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_meta_data.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_meta_data.go new file mode 100644 index 0000000000..08ad839a7e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_meta_data.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminNodeExecutionMetaData struct { + // Node executions are grouped depending on retries of the parent Retry group is unique within the context of a parent node. + RetryGroup string `json:"retry_group,omitempty"` + // Boolean flag indicating if the node has child nodes under it This can be true when a node contains a dynamic workflow which then produces child nodes. + IsParentNode bool `json:"is_parent_node,omitempty"` + SpecNodeId string `json:"spec_node_id,omitempty"` + // Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. + IsDynamic bool `json:"is_dynamic,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go new file mode 100644 index 0000000000..16cc5a3c71 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a structure for notifications based on execution status. The notification content is configured within flyte admin but can be templatized. Future iterations could expose configuring notifications with custom content. +type AdminNotification struct { + Phases []CoreWorkflowExecutionPhase `json:"phases,omitempty"` + Email *AdminEmailNotification `json:"email,omitempty"` + PagerDuty *AdminPagerDutyNotification `json:"pager_duty,omitempty"` + Slack *AdminSlackNotification `json:"slack,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go new file mode 100644 index 0000000000..b89a82f831 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminNotificationList struct { + Notifications []AdminNotification `json:"notifications,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go new file mode 100644 index 0000000000..c54a917fee --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a pager duty notification specification. +type AdminPagerDutyNotification struct { + RecipientsEmail []string `json:"recipients_email,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_override.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_override.go new file mode 100644 index 0000000000..cace6c40b7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_override.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. In addition to an override implementation a selection of fallbacks can be provided or other modes for handling cases where the desired plugin override is not enabled in a given Flyte deployment. +type AdminPluginOverride struct { + // A predefined yet extensible Task type identifier. + TaskType string `json:"task_type,omitempty"` + // A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. + PluginId []string `json:"plugin_id,omitempty"` + // Defines the behavior when no plugin from the plugin_id list is not found. + MissingPluginBehavior *PluginOverrideMissingPluginBehavior `json:"missing_plugin_behavior,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_overrides.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_overrides.go new file mode 100644 index 0000000000..b137c69f1e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_overrides.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminPluginOverrides struct { + Overrides []AdminPluginOverride `json:"overrides,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go new file mode 100644 index 0000000000..59da87f6cc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Top-level namespace used to classify different entities like workflows and executions. +type AdminProject struct { + // Globally unique project name. + Id string `json:"id,omitempty"` + // Display name. + Name string `json:"name,omitempty"` + Domains []AdminDomain `json:"domains,omitempty"` + Description string `json:"description,omitempty"` + // Leverage Labels from flyteidl.admin.common.proto to tag projects with ownership information. + Labels *AdminLabels `json:"labels,omitempty"` + State *ProjectProjectState `json:"state,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes.go new file mode 100644 index 0000000000..a719e4737b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectAttributes struct { + // Unique project id for which this set of attributes will be applied. + Project string `json:"project,omitempty"` + MatchingAttributes *AdminMatchingAttributes `json:"matching_attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_request.go new file mode 100644 index 0000000000..3081254e92 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_request.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectAttributesDeleteRequest struct { + Project string `json:"project,omitempty"` + ResourceType *AdminMatchableResource `json:"resource_type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_response.go new file mode 100644 index 0000000000..5c79b2c257 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminProjectAttributesDeleteResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_get_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_get_response.go new file mode 100644 index 0000000000..28391629eb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_get_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectAttributesGetResponse struct { + Attributes *AdminProjectAttributes `json:"attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_request.go new file mode 100644 index 0000000000..47892f4a97 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_request.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectAttributesUpdateRequest struct { + Attributes *AdminProjectAttributes `json:"attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_response.go new file mode 100644 index 0000000000..e54987aadf --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminProjectAttributesUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes.go new file mode 100644 index 0000000000..8cc141bc42 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectDomainAttributes struct { + // Unique project id for which this set of attributes will be applied. + Project string `json:"project,omitempty"` + // Unique domain id for which this set of attributes will be applied. + Domain string `json:"domain,omitempty"` + MatchingAttributes *AdminMatchingAttributes `json:"matching_attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_request.go new file mode 100644 index 0000000000..00b251417d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_request.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectDomainAttributesDeleteRequest struct { + Project string `json:"project,omitempty"` + Domain string `json:"domain,omitempty"` + ResourceType *AdminMatchableResource `json:"resource_type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_response.go new file mode 100644 index 0000000000..f3b853e4a8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminProjectDomainAttributesDeleteResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_get_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_get_response.go new file mode 100644 index 0000000000..b0a90f4837 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_get_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectDomainAttributesGetResponse struct { + Attributes *AdminProjectDomainAttributes `json:"attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_request.go new file mode 100644 index 0000000000..ffb143d783 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_request.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectDomainAttributesUpdateRequest struct { + Attributes *AdminProjectDomainAttributes `json:"attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_response.go new file mode 100644 index 0000000000..56d8148295 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminProjectDomainAttributesUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go new file mode 100644 index 0000000000..075f0de866 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectRegisterRequest struct { + Project *AdminProject `json:"project,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go new file mode 100644 index 0000000000..beae16e4a4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be updated in the future. +type AdminProjectRegisterResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_update_response.go new file mode 100644 index 0000000000..ca1f7fb47c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_update_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be updated in the future. +type AdminProjectUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go new file mode 100644 index 0000000000..ed23a4f275 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjects struct { + Projects []AdminProject `json:"projects,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_raw_output_data_config.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_raw_output_data_config.go new file mode 100644 index 0000000000..d440e07a07 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_raw_output_data_config.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). See https://github.com/flyteorg/flyte/issues/211 for more background information. +type AdminRawOutputDataConfig struct { + OutputLocationPrefix string `json:"output_location_prefix,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_reason.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_reason.go new file mode 100644 index 0000000000..353e673ac2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_reason.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. +type AdminReason struct { + // occurred_at is the timestamp indicating the instant that this reason happened. + OccurredAt time.Time `json:"occurred_at,omitempty"` + // message is the explanation for the most recent phase transition or status update. + Message string `json:"message,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go new file mode 100644 index 0000000000..b6c0a02014 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines complete set of information required to trigger an execution on a schedule. +type AdminSchedule struct { + CronExpression string `json:"cron_expression,omitempty"` + Rate *AdminFixedRate `json:"rate,omitempty"` + CronSchedule *AdminCronSchedule `json:"cron_schedule,omitempty"` + // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + KickoffTimeInputArg string `json:"kickoff_time_input_arg,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go new file mode 100644 index 0000000000..e6f0faf44d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a slack notification specification. +type AdminSlackNotification struct { + RecipientsEmail []string `json:"recipients_email,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go new file mode 100644 index 0000000000..7469a2cb02 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Specifies sort ordering in a list request. +type AdminSort struct { + Key string `json:"key,omitempty"` + Direction *SortDirection `json:"direction,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_source_code.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_source_code.go new file mode 100644 index 0000000000..72aa08c11a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_source_code.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminSourceCode struct { + Link string `json:"link,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_system_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_system_metadata.go new file mode 100644 index 0000000000..48569f8720 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_system_metadata.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents system, rather than user-facing, metadata about an execution. +type AdminSystemMetadata struct { + // Which execution cluster this execution ran on. + ExecutionCluster string `json:"execution_cluster,omitempty"` + // Which kubernetes namespace the execution ran under. + Namespace string `json:"namespace,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go new file mode 100644 index 0000000000..6ebc453247 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks arranged to process workflow inputs and produce a deterministic set of outputs. Tasks can come in many varieties tuned for specialized behavior. +type AdminTask struct { + // id represents the unique identifier of the task. + Id *CoreIdentifier `json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the task. + Closure *AdminTaskClosure `json:"closure,omitempty"` + // One-liner overview of the entity. + ShortDescription string `json:"short_description,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go new file mode 100644 index 0000000000..0491fd6b2b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data and task metadata. +type AdminTaskClosure struct { + // Represents the compiled representation of the task from the specification provided. + CompiledTask *CoreCompiledTask `json:"compiled_task,omitempty"` + // Time at which the task was created. + CreatedAt time.Time `json:"created_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go new file mode 100644 index 0000000000..2a0cd78a25 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go @@ -0,0 +1,48 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Container for task execution details and results. +type AdminTaskExecutionClosure struct { + // Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + OutputUri string `json:"output_uri,omitempty"` + // Error information for the task execution. Populated if the execution failed. + Error_ *CoreExecutionError `json:"error,omitempty"` + // Raw output data produced by this task execution. DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + OutputData *CoreLiteralMap `json:"output_data,omitempty"` + // The last recorded phase for this task execution. + Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` + // Detailed log information output by the task execution. + Logs []CoreTaskLog `json:"logs,omitempty"` + // Time at which the task execution began running. + StartedAt time.Time `json:"started_at,omitempty"` + // The amount of time the task execution spent running. + Duration string `json:"duration,omitempty"` + // Time at which the task execution was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Time at which the task execution was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // Custom data specific to the task plugin. + CustomInfo *ProtobufStruct `json:"custom_info,omitempty"` + // If there is an explanation for the most recent phase transition, the reason will capture it. + Reason string `json:"reason,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType string `json:"task_type,omitempty"` + // Metadata around how a task was executed. + Metadata *FlyteidleventTaskExecutionMetadata `json:"metadata,omitempty"` + // The event version is used to indicate versioned changes in how data is maintained using this proto message. For example, event_verison > 0 means that maps tasks logs use the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. + EventVersion int32 `json:"event_version,omitempty"` + // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason as previously done, is much more valuable in visualizing and understanding historical evaluations. + Reasons []AdminReason `json:"reasons,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go new file mode 100644 index 0000000000..47fe4cb73d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to send a notification that a task execution event has occurred. +type AdminTaskExecutionEventRequest struct { + RequestId string `json:"request_id,omitempty"` + // Details about the event that occurred. + Event *EventTaskExecutionEvent `json:"event,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go new file mode 100644 index 0000000000..f30c09a8f0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminTaskExecutionEventResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go new file mode 100644 index 0000000000..75c3e8423e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +type AdminTaskExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of task execution inputs. Deprecated: Please use full_inputs instead. + Inputs *AdminUrlBlob `json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of task execution outputs. Deprecated: Please use full_outputs instead. + Outputs *AdminUrlBlob `json:"outputs,omitempty"` + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *CoreLiteralMap `json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *CoreLiteralMap `json:"full_outputs,omitempty"` + FlyteUrls *AdminFlyteUrLs `json:"flyte_urls,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go new file mode 100644 index 0000000000..e5c42e9d01 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminTaskExecutionList struct { + TaskExecutions []FlyteidladminTaskExecution `json:"task_executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go new file mode 100644 index 0000000000..32baeb5315 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminTaskList struct { + // A list of tasks returned based on the request. + Tasks []AdminTask `json:"tasks,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_attributes.go new file mode 100644 index 0000000000..3917b5f2f8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_attributes.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines task resource defaults and limits that will be applied at task registration. +type AdminTaskResourceAttributes struct { + Defaults *AdminTaskResourceSpec `json:"defaults,omitempty"` + Limits *AdminTaskResourceSpec `json:"limits,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_spec.go new file mode 100644 index 0000000000..b022f1a976 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_spec.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a set of overridable task resource attributes set during task registration. +type AdminTaskResourceSpec struct { + Cpu string `json:"cpu,omitempty"` + Gpu string `json:"gpu,omitempty"` + Memory string `json:"memory,omitempty"` + Storage string `json:"storage,omitempty"` + EphemeralStorage string `json:"ephemeral_storage,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go new file mode 100644 index 0000000000..38c518515f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a structure that encapsulates the user-configured specification of the task. +type AdminTaskSpec struct { + // Template of the task that encapsulates all the metadata of the task. + Template *CoreTaskTemplate `json:"template,omitempty"` + // Represents the specification for description entity. + Description *AdminDescriptionEntity `json:"description,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go new file mode 100644 index 0000000000..fc2ac8662f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a string url and associated metadata used throughout the platform. +type AdminUrlBlob struct { + // Actual url value. + Url string `json:"url,omitempty"` + // Represents the size of the file accessible at the above url. + Bytes string `json:"bytes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_version.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_version.go new file mode 100644 index 0000000000..559cc80b93 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_version.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminVersion struct { + Build string `json:"Build,omitempty"` + Version string `json:"Version,omitempty"` + BuildTime string `json:"BuildTime,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go new file mode 100644 index 0000000000..8b092b6c3e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents the workflow structure stored in the Admin A workflow is created by ordering tasks and associating outputs to inputs in order to produce a directed-acyclic execution graph. +type AdminWorkflow struct { + // id represents the unique identifier of the workflow. + Id *CoreIdentifier `json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the workflow. + Closure *AdminWorkflowClosure `json:"closure,omitempty"` + // One-liner overview of the entity. + ShortDescription string `json:"short_description,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes.go new file mode 100644 index 0000000000..dba5c88346 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowAttributes struct { + // Unique project id for which this set of attributes will be applied. + Project string `json:"project,omitempty"` + // Unique domain id for which this set of attributes will be applied. + Domain string `json:"domain,omitempty"` + // Workflow name for which this set of attributes will be applied. + Workflow string `json:"workflow,omitempty"` + MatchingAttributes *AdminMatchingAttributes `json:"matching_attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_request.go new file mode 100644 index 0000000000..31bca658db --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowAttributesDeleteRequest struct { + Project string `json:"project,omitempty"` + Domain string `json:"domain,omitempty"` + Workflow string `json:"workflow,omitempty"` + ResourceType *AdminMatchableResource `json:"resource_type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_response.go new file mode 100644 index 0000000000..335d0be208 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminWorkflowAttributesDeleteResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_get_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_get_response.go new file mode 100644 index 0000000000..5cfbc5219b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_get_response.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response to get an individual workflow attribute override. +type AdminWorkflowAttributesGetResponse struct { + Attributes *AdminWorkflowAttributes `json:"attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_request.go new file mode 100644 index 0000000000..eb28b94d0d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_request.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowAttributesUpdateRequest struct { + Attributes *AdminWorkflowAttributes `json:"attributes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_response.go new file mode 100644 index 0000000000..1c449c700f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminWorkflowAttributesUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go new file mode 100644 index 0000000000..585ef055b9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +type AdminWorkflowClosure struct { + // Represents the compiled representation of the workflow from the specification provided. + CompiledWorkflow *CoreCompiledWorkflowClosure `json:"compiled_workflow,omitempty"` + // Time at which the workflow was created. + CreatedAt time.Time `json:"created_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go new file mode 100644 index 0000000000..53b4cbbb08 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowCreateRequest struct { + Id *CoreIdentifier `json:"id,omitempty"` + Spec *AdminWorkflowSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go new file mode 100644 index 0000000000..badaea629f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowCreateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_config.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_config.go new file mode 100644 index 0000000000..7c4b9660b9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_config.go @@ -0,0 +1,30 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Adds defaults for customizable workflow-execution specifications and overrides. +type AdminWorkflowExecutionConfig struct { + // Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. + MaxParallelism int32 `json:"max_parallelism,omitempty"` + // Indicates security context permissions for executions triggered with this matchable attribute. + SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig *AdminRawOutputDataConfig `json:"raw_output_data_config,omitempty"` + // Custom labels to be applied to a triggered execution resource. + Labels *AdminLabels `json:"labels,omitempty"` + // Custom annotations to be applied to a triggered execution resource. + Annotations *AdminAnnotations `json:"annotations,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. + Interruptible bool `json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. + OverwriteCache bool `json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *AdminEnvs `json:"envs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go new file mode 100644 index 0000000000..b44cf1fc95 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to send a notification that a workflow execution event has occurred. +type AdminWorkflowExecutionEventRequest struct { + RequestId string `json:"request_id,omitempty"` + // Details about the event that occurred. + Event *EventWorkflowExecutionEvent `json:"event,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go new file mode 100644 index 0000000000..e6805a3462 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowExecutionEventResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go new file mode 100644 index 0000000000..d4411944e3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +type AdminWorkflowExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of execution outputs. Deprecated: Please use full_outputs instead. + Outputs *AdminUrlBlob `json:"outputs,omitempty"` + // Signed url to fetch a core.LiteralMap of execution inputs. Deprecated: Please use full_inputs instead. + Inputs *AdminUrlBlob `json:"inputs,omitempty"` + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *CoreLiteralMap `json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *CoreLiteralMap `json:"full_outputs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_metrics_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_metrics_response.go new file mode 100644 index 0000000000..a64dbca99a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_metrics_response.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. +type AdminWorkflowExecutionGetMetricsResponse struct { + // Span defines the top-level breakdown of the workflows execution. More precise information is nested in a hierarchical structure using Flyte entity references. + Span *CoreSpan `json:"span,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go new file mode 100644 index 0000000000..8f6b9947b3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowList struct { + // A list of workflows returned based on the request. + Workflows []AdminWorkflow `json:"workflows,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. + Token string `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go new file mode 100644 index 0000000000..e4ff5018c7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a structure that encapsulates the specification of the workflow. +type AdminWorkflowSpec struct { + // Template of the task that encapsulates all the metadata of the workflow. + Template *CoreWorkflowTemplate `json:"template,omitempty"` + // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. + SubWorkflows []CoreWorkflowTemplate `json:"sub_workflows,omitempty"` + // Represents the specification for description entity. + Description *AdminDescriptionEntity `json:"description,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go new file mode 100644 index 0000000000..c2557772aa --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type BlobTypeBlobDimensionality string + +// List of BlobTypeBlobDimensionality +const ( + BlobTypeBlobDimensionalitySINGLE BlobTypeBlobDimensionality = "SINGLE" + BlobTypeBlobDimensionalityMULTIPART BlobTypeBlobDimensionality = "MULTIPART" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_catalog_reservation_status.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_catalog_reservation_status.go new file mode 100644 index 0000000000..42b34515db --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_catalog_reservation_status.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// CatalogReservationStatus : Indicates the status of a catalog reservation operation. - RESERVATION_DISABLED: Used to indicate that reservations are disabled - RESERVATION_ACQUIRED: Used to indicate that a reservation was successfully acquired or extended - RESERVATION_EXISTS: Used to indicate that an active reservation currently exists - RESERVATION_RELEASED: Used to indicate that the reservation has been successfully released - RESERVATION_FAILURE: Used to indicate that a reservation operation resulted in failure +type CatalogReservationStatus string + +// List of CatalogReservationStatus +const ( + CatalogReservationStatusDISABLED CatalogReservationStatus = "RESERVATION_DISABLED" + CatalogReservationStatusACQUIRED CatalogReservationStatus = "RESERVATION_ACQUIRED" + CatalogReservationStatusEXISTS CatalogReservationStatus = "RESERVATION_EXISTS" + CatalogReservationStatusRELEASED CatalogReservationStatus = "RESERVATION_RELEASED" + CatalogReservationStatusFAILURE CatalogReservationStatus = "RESERVATION_FAILURE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go new file mode 100644 index 0000000000..f12c82ff7d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ComparisonExpressionOperator : - GT: Greater Than - LT: Less Than +type ComparisonExpressionOperator string + +// List of ComparisonExpressionOperator +const ( + ComparisonExpressionOperatorEQ ComparisonExpressionOperator = "EQ" + ComparisonExpressionOperatorNEQ ComparisonExpressionOperator = "NEQ" + ComparisonExpressionOperatorGT ComparisonExpressionOperator = "GT" + ComparisonExpressionOperatorGTE ComparisonExpressionOperator = "GTE" + ComparisonExpressionOperatorLT ComparisonExpressionOperator = "LT" + ComparisonExpressionOperatorLTE ComparisonExpressionOperator = "LTE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go new file mode 100644 index 0000000000..537e3b45e7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ConjunctionExpressionLogicalOperator : - AND: Conjunction +type ConjunctionExpressionLogicalOperator string + +// List of ConjunctionExpressionLogicalOperator +const ( + ConjunctionExpressionLogicalOperatorAND ConjunctionExpressionLogicalOperator = "AND" + ConjunctionExpressionLogicalOperatorOR ConjunctionExpressionLogicalOperator = "OR" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go new file mode 100644 index 0000000000..6a6396583f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type ConnectionSetIdList struct { + Ids []string `json:"ids,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_container_architecture.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_container_architecture.go new file mode 100644 index 0000000000..2ec668c981 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_container_architecture.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ContainerArchitecture : Architecture-type the container image supports. +type ContainerArchitecture string + +// List of ContainerArchitecture +const ( + ContainerArchitectureUNKNOWN ContainerArchitecture = "UNKNOWN" + ContainerArchitectureAMD64 ContainerArchitecture = "AMD64" + ContainerArchitectureARM64 ContainerArchitecture = "ARM64" + ContainerArchitectureARM_V6 ContainerArchitecture = "ARM_V6" + ContainerArchitectureARM_V7 ContainerArchitecture = "ARM_V7" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go new file mode 100644 index 0000000000..2e0276e490 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Links a variable to an alias. +type CoreAlias struct { + // Must match one of the output variable names on a node. + Var_ string `json:"var,omitempty"` + // A workflow-level unique alias that downstream nodes can refer to in their input. + Alias string `json:"alias,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_approve_condition.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_approve_condition.go new file mode 100644 index 0000000000..e75ab0d299 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_approve_condition.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean signal with the provided signal_id. +type CoreApproveCondition struct { + // A unique identifier for the requested boolean signal. + SignalId string `json:"signal_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_array_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_array_node.go new file mode 100644 index 0000000000..3af3d44494 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_array_node.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input values. An ArrayNode can be executed with configurable parallelism (separate from the parent workflow) and can be configured to succeed when a certain number of sub-nodes succeed. +type CoreArrayNode struct { + // node is the sub-node that will be executed for each element in the array. + Node *CoreNode `json:"node,omitempty"` + // parallelism defines the minimum number of instances to bring up concurrently at any given point. Note that this is an optimistic restriction and that, due to network partitioning or other failures, the actual number of currently running instances might be more. This has to be a positive number if assigned. Default value is size. + Parallelism int64 `json:"parallelism,omitempty"` + // min_successes is an absolute number of the minimum number of successful completions of sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful and outputs will be computed. This has to be a non-negative number if assigned. Default value is size (if specified). + MinSuccesses int64 `json:"min_successes,omitempty"` + // If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an ArrayNode can be marked successful. + MinSuccessRatio float32 `json:"min_success_ratio,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go new file mode 100644 index 0000000000..b66a50bd78 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +type CoreBinary struct { + Value string `json:"value,omitempty"` + Tag string `json:"tag,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go new file mode 100644 index 0000000000..479a2a60ff --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// An input/output binding of a variable to either static value or a node output. +type CoreBinding struct { + // Variable name must match an input/output variable of the node. + Var_ string `json:"var,omitempty"` + // Data to use to bind this variable. + Binding *CoreBindingData `json:"binding,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go new file mode 100644 index 0000000000..903ef1f8e2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Specifies either a simple value or a reference to another output. +type CoreBindingData struct { + // A simple scalar value. + Scalar *CoreScalar `json:"scalar,omitempty"` + // A collection of binding data. This allows nesting of binding data to any number of levels. + Collection *CoreBindingDataCollection `json:"collection,omitempty"` + // References an output promised by another node. + Promise *CoreOutputReference `json:"promise,omitempty"` + // A map of bindings. The key is always a string. + Map_ *CoreBindingDataMap `json:"map,omitempty"` + Union *CoreUnionInfo `json:"union,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go new file mode 100644 index 0000000000..e83621557e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A collection of BindingData items. +type CoreBindingDataCollection struct { + Bindings []CoreBindingData `json:"bindings,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go new file mode 100644 index 0000000000..d63199bc45 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A map of BindingData items. +type CoreBindingDataMap struct { + Bindings map[string]CoreBindingData `json:"bindings,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go new file mode 100644 index 0000000000..081e36a03d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +type CoreBlob struct { + Metadata *CoreBlobMetadata `json:"metadata,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go new file mode 100644 index 0000000000..1dfb19dda9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreBlobMetadata struct { + Type_ *CoreBlobType `json:"type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go new file mode 100644 index 0000000000..5c751b9562 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreBlobType struct { + Format string `json:"format,omitempty"` + Dimensionality *BlobTypeBlobDimensionality `json:"dimensionality,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go new file mode 100644 index 0000000000..0ee33d7c3a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a boolean expression tree. It can be a simple or a conjunction expression. Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +type CoreBooleanExpression struct { + Conjunction *CoreConjunctionExpression `json:"conjunction,omitempty"` + Comparison *CoreComparisonExpression `json:"comparison,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go new file mode 100644 index 0000000000..e5860bb84a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). +type CoreBranchNode struct { + IfElse *CoreIfElseBlock `json:"if_else,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_artifact_tag.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_artifact_tag.go new file mode 100644 index 0000000000..94c8826d3a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_artifact_tag.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreCatalogArtifactTag struct { + ArtifactId string `json:"artifact_id,omitempty"` + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_cache_status.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_cache_status.go new file mode 100644 index 0000000000..6e50baf228 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_cache_status.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// CoreCatalogCacheStatus : - CACHE_DISABLED: Used to indicate that caching was disabled - CACHE_MISS: Used to indicate that the cache lookup resulted in no matches - CACHE_HIT: used to indicate that the associated artifact was a result of a previous execution - CACHE_POPULATED: used to indicate that the resultant artifact was added to the cache - CACHE_LOOKUP_FAILURE: Used to indicate that cache lookup failed because of an error - CACHE_PUT_FAILURE: Used to indicate that cache lookup failed because of an error - CACHE_SKIPPED: Used to indicate the cache lookup was skipped +type CoreCatalogCacheStatus string + +// List of coreCatalogCacheStatus +const ( + CoreCatalogCacheStatusDISABLED CoreCatalogCacheStatus = "CACHE_DISABLED" + CoreCatalogCacheStatusMISS CoreCatalogCacheStatus = "CACHE_MISS" + CoreCatalogCacheStatusHIT CoreCatalogCacheStatus = "CACHE_HIT" + CoreCatalogCacheStatusPOPULATED CoreCatalogCacheStatus = "CACHE_POPULATED" + CoreCatalogCacheStatusLOOKUP_FAILURE CoreCatalogCacheStatus = "CACHE_LOOKUP_FAILURE" + CoreCatalogCacheStatusPUT_FAILURE CoreCatalogCacheStatus = "CACHE_PUT_FAILURE" + CoreCatalogCacheStatusSKIPPED CoreCatalogCacheStatus = "CACHE_SKIPPED" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_metadata.go new file mode 100644 index 0000000000..a4223f28b8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_metadata.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreCatalogMetadata struct { + DatasetId *CoreIdentifier `json:"dataset_id,omitempty"` + ArtifactTag *CoreCatalogArtifactTag `json:"artifact_tag,omitempty"` + SourceTaskExecution *CoreTaskExecutionIdentifier `json:"source_task_execution,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go new file mode 100644 index 0000000000..86e9586a7d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. Each expression results in a boolean result. +type CoreComparisonExpression struct { + Operator *ComparisonExpressionOperator `json:"operator,omitempty"` + LeftValue *CoreOperand `json:"left_value,omitempty"` + RightValue *CoreOperand `json:"right_value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go new file mode 100644 index 0000000000..f5a06ebd27 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreCompiledTask struct { + Template *CoreTaskTemplate `json:"template,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go new file mode 100644 index 0000000000..c30998d66c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreCompiledWorkflow struct { + Template *CoreWorkflowTemplate `json:"template,omitempty"` + // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + Connections *CoreConnectionSet `json:"connections,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go new file mode 100644 index 0000000000..64753a21b5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of compiled subworkflows. +type CoreCompiledWorkflowClosure struct { + Primary *CoreCompiledWorkflow `json:"primary,omitempty"` + SubWorkflows []CoreCompiledWorkflow `json:"sub_workflows,omitempty"` + Tasks []CoreCompiledTask `json:"tasks,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go new file mode 100644 index 0000000000..cf8c99b9bb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a conjunction expression of two boolean expressions. +type CoreConjunctionExpression struct { + Operator *ConjunctionExpressionLogicalOperator `json:"operator,omitempty"` + LeftExpression *CoreBooleanExpression `json:"left_expression,omitempty"` + RightExpression *CoreBooleanExpression `json:"right_expression,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go new file mode 100644 index 0000000000..8d7b9bc344 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreConnectionSet struct { + Downstream map[string]ConnectionSetIdList `json:"downstream,omitempty"` + Upstream map[string]ConnectionSetIdList `json:"upstream,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go new file mode 100644 index 0000000000..26f0e9d65a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go @@ -0,0 +1,27 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreContainer struct { + Image string `json:"image,omitempty"` + // Command to be executed, if not provided, the default entrypoint in the container image will be used. + Command []string `json:"command,omitempty"` + // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. + Args []string `json:"args,omitempty"` + // Container resources requirement as specified by the container engine. + Resources *CoreResources `json:"resources,omitempty"` + // Environment variables will be set as the container is starting up. + Env []CoreKeyValuePair `json:"env,omitempty"` + // Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. Deprecated, please use TaskTemplate.config instead. + Config []CoreKeyValuePair `json:"config,omitempty"` + Ports []CoreContainerPort `json:"ports,omitempty"` + DataConfig *CoreDataLoadingConfig `json:"data_config,omitempty"` + Architecture *ContainerArchitecture `json:"architecture,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go new file mode 100644 index 0000000000..40e941c7e6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines port properties for a container. +type CoreContainerPort struct { + // Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + ContainerPort int64 `json:"container_port,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_data_loading_config.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_data_loading_config.go new file mode 100644 index 0000000000..f74fb3aaa1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_data_loading_config.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path Any outputs generated by the user container - within output_path are automatically uploaded. +type CoreDataLoadingConfig struct { + Enabled bool `json:"enabled,omitempty"` + InputPath string `json:"input_path,omitempty"` + OutputPath string `json:"output_path,omitempty"` + Format *DataLoadingConfigLiteralMapFormat `json:"format,omitempty"` + IoStrategy *CoreIoStrategy `json:"io_strategy,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_enum_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_enum_type.go new file mode 100644 index 0000000000..98925eabcf --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_enum_type.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Enables declaring enum types, with predefined string values For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish To provide no defaults, make the first value as undefined. +type CoreEnumType struct { + // Predefined set of enum values. + Values []string `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go new file mode 100644 index 0000000000..de5a0f838c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents an error thrown from a node. +type CoreError struct { + // The node id that threw the error. + FailedNodeId string `json:"failed_node_id,omitempty"` + // Error message thrown. + Message string `json:"message,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go new file mode 100644 index 0000000000..4b2b6e07b4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents the error message from the execution. +type CoreExecutionError struct { + Code string `json:"code,omitempty"` + // Detailed description of the error - including stack trace. + Message string `json:"message,omitempty"` + ErrorUri string `json:"error_uri,omitempty"` + Kind *ExecutionErrorErrorKind `json:"kind,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gate_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gate_node.go new file mode 100644 index 0000000000..27966e22c7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gate_node.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// GateNode refers to the condition that is required for the gate to successfully complete. +type CoreGateNode struct { + // ApproveCondition represents a dependency on an external approval provided by a boolean signal. + Approve *CoreApproveCondition `json:"approve,omitempty"` + // SignalCondition represents a dependency on an signal. + Signal *CoreSignalCondition `json:"signal,omitempty"` + // SleepCondition represents a dependency on waiting for the specified duration. + Sleep *CoreSleepCondition `json:"sleep,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go new file mode 100644 index 0000000000..36a08549cb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go @@ -0,0 +1,24 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that uniquely identifies a Flyte resource. +type CoreIdentifier struct { + // Identifies the specific type of resource that this identifier corresponds to. + ResourceType *CoreResourceType `json:"resource_type,omitempty"` + // Name of the project the resource belongs to. + Project string `json:"project,omitempty"` + // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + Domain string `json:"domain,omitempty"` + // User provided value for the resource. + Name string `json:"name,omitempty"` + // Specific version of the resource. + Version string `json:"version,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identity.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identity.go new file mode 100644 index 0000000000..60251e7b6b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identity.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the right identity for the execution environment. +type CoreIdentity struct { + // iam_role references the fully qualified name of Identity & Access Management role to impersonate. + IamRole string `json:"iam_role,omitempty"` + // k8s_service_account references a kubernetes service account to impersonate. + K8sServiceAccount string `json:"k8s_service_account,omitempty"` + // oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when making external calls. + Oauth2Client *CoreOAuth2Client `json:"oauth2_client,omitempty"` + ExecutionIdentity string `json:"execution_identity,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go new file mode 100644 index 0000000000..88c084f857 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a condition and the execution unit that should be executed if the condition is satisfied. +type CoreIfBlock struct { + Condition *CoreBooleanExpression `json:"condition,omitempty"` + ThenNode *CoreNode `json:"then_node,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go new file mode 100644 index 0000000000..f9e2b64918 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. If no conditions were satisfied, the else_node or the error will execute. +type CoreIfElseBlock struct { + // +required. First condition to evaluate. + Case_ *CoreIfBlock `json:"case,omitempty"` + // +optional. Additional branches to evaluate. + Other []CoreIfBlock `json:"other,omitempty"` + // The node to execute in case none of the branches were taken. + ElseNode *CoreNode `json:"else_node,omitempty"` + // An error to throw in case none of the branches were taken. + Error_ *CoreError `json:"error,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_io_strategy.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_io_strategy.go new file mode 100644 index 0000000000..d310d02903 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_io_strategy.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreIoStrategy struct { + DownloadMode *IoStrategyDownloadMode `json:"download_mode,omitempty"` + UploadMode *IoStrategyUploadMode `json:"upload_mode,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_object_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_object_metadata.go new file mode 100644 index 0000000000..a6ad3f789b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_object_metadata.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Metadata for building a kubernetes object when a task is executed. +type CoreK8sObjectMetadata struct { + // Optional labels to add to the pod definition. + Labels map[string]string `json:"labels,omitempty"` + // Optional annotations to add to the pod definition. + Annotations map[string]string `json:"annotations,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_pod.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_pod.go new file mode 100644 index 0000000000..df6db9479b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_pod.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a pod spec and additional pod metadata that is created when a task is executed. +type CoreK8sPod struct { + // Contains additional metadata for building a kubernetes pod. + Metadata *CoreK8sObjectMetadata `json:"metadata,omitempty"` + PodSpec *ProtobufStruct `json:"pod_spec,omitempty"` + DataConfig *CoreDataLoadingConfig `json:"data_config,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go new file mode 100644 index 0000000000..62a32a04af --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A generic key value pair. +type CoreKeyValuePair struct { + // required. + Key string `json:"key,omitempty"` + // +optional. + Value string `json:"value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go new file mode 100644 index 0000000000..03ee493617 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +type CoreLiteral struct { + // A simple value. + Scalar *CoreScalar `json:"scalar,omitempty"` + // A collection of literals to allow nesting. + Collection *CoreLiteralCollection `json:"collection,omitempty"` + // A map of strings to literals. + Map_ *CoreLiteralMap `json:"map,omitempty"` + Hash string `json:"hash,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go new file mode 100644 index 0000000000..b7de3d8c49 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type CoreLiteralCollection struct { + Literals []CoreLiteral `json:"literals,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go new file mode 100644 index 0000000000..58728f6325 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type CoreLiteralMap struct { + Literals map[string]CoreLiteral `json:"literals,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go new file mode 100644 index 0000000000..08611bf6c0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go @@ -0,0 +1,35 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a strong type to allow type checking between interfaces. +type CoreLiteralType struct { + // A simple type that can be compared one-to-one with another. + Simple *CoreSimpleType `json:"simple,omitempty"` + // A complex type that requires matching of inner fields. + Schema *CoreSchemaType `json:"schema,omitempty"` + // Defines the type of the value of a collection. Only homogeneous collections are allowed. + CollectionType *CoreLiteralType `json:"collection_type,omitempty"` + // Defines the type of the value of a map type. The type of the key is always a string. + MapValueType *CoreLiteralType `json:"map_value_type,omitempty"` + // A blob might have specialized implementation details depending on associated metadata. + Blob *CoreBlobType `json:"blob,omitempty"` + // Defines an enum with pre-defined string values. + EnumType *CoreEnumType `json:"enum_type,omitempty"` + StructuredDatasetType *CoreStructuredDatasetType `json:"structured_dataset_type,omitempty"` + // Defines an union type with pre-defined LiteralTypes. + UnionType *CoreUnionType `json:"union_type,omitempty"` + // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. + Metadata *ProtobufStruct `json:"metadata,omitempty"` + // This field contains arbitrary data that might have special semantic meaning for the client but does not effect internal flyte behavior. + Annotation *CoreTypeAnnotation `json:"annotation,omitempty"` + // Hints to improve type matching. + Structure *CoreTypeStructure `json:"structure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go new file mode 100644 index 0000000000..8a420c0e7a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go @@ -0,0 +1,34 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch node. +type CoreNode struct { + // A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved node ids that cannot be used by other nodes. + Id string `json:"id,omitempty"` + // Extra metadata about the node. + Metadata *CoreNodeMetadata `json:"metadata,omitempty"` + // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fulfilled. + Inputs []CoreBinding `json:"inputs,omitempty"` + // +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs field. + UpstreamNodeIds []string `json:"upstream_node_ids,omitempty"` + // +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. + OutputAliases []CoreAlias `json:"output_aliases,omitempty"` + // Information about the Task to execute in this node. + TaskNode *CoreTaskNode `json:"task_node,omitempty"` + // Information about the Workflow to execute in this mode. + WorkflowNode *CoreWorkflowNode `json:"workflow_node,omitempty"` + // Information about the branch node to evaluate in this node. + BranchNode *CoreBranchNode `json:"branch_node,omitempty"` + // Information about the condition to evaluate in this node. + GateNode *CoreGateNode `json:"gate_node,omitempty"` + // Information about the sub-node executions for each value in the list of this nodes inputs values. + ArrayNode *CoreArrayNode `json:"array_node,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go new file mode 100644 index 0000000000..2a391e095f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that identify a Flyte node execution entity. +type CoreNodeExecutionIdentifier struct { + NodeId string `json:"node_id,omitempty"` + ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go new file mode 100644 index 0000000000..55c46425a5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go @@ -0,0 +1,27 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreNodeExecutionPhase string + +// List of coreNodeExecutionPhase +const ( + CoreNodeExecutionPhaseUNDEFINED CoreNodeExecutionPhase = "UNDEFINED" + CoreNodeExecutionPhaseQUEUED CoreNodeExecutionPhase = "QUEUED" + CoreNodeExecutionPhaseRUNNING CoreNodeExecutionPhase = "RUNNING" + CoreNodeExecutionPhaseSUCCEEDED CoreNodeExecutionPhase = "SUCCEEDED" + CoreNodeExecutionPhaseFAILING CoreNodeExecutionPhase = "FAILING" + CoreNodeExecutionPhaseFAILED CoreNodeExecutionPhase = "FAILED" + CoreNodeExecutionPhaseABORTED CoreNodeExecutionPhase = "ABORTED" + CoreNodeExecutionPhaseSKIPPED CoreNodeExecutionPhase = "SKIPPED" + CoreNodeExecutionPhaseTIMED_OUT CoreNodeExecutionPhase = "TIMED_OUT" + CoreNodeExecutionPhaseDYNAMIC_RUNNING CoreNodeExecutionPhase = "DYNAMIC_RUNNING" + CoreNodeExecutionPhaseRECOVERED CoreNodeExecutionPhase = "RECOVERED" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go new file mode 100644 index 0000000000..3913c96c83 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines extra information about the Node. +type CoreNodeMetadata struct { + Name string `json:"name,omitempty"` + // The overall timeout of a task. + Timeout string `json:"timeout,omitempty"` + // Number of retries per task. + Retries *CoreRetryStrategy `json:"retries,omitempty"` + Interruptible bool `json:"interruptible,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_client.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_client.go new file mode 100644 index 0000000000..8413c9169f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_client.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. +type CoreOAuth2Client struct { + ClientId string `json:"client_id,omitempty"` + ClientSecret *CoreSecret `json:"client_secret,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request.go new file mode 100644 index 0000000000..6dcdb2dddd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if tokens are passed through environment variables. FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens are passed through file mounts. +type CoreOAuth2TokenRequest struct { + Name string `json:"name,omitempty"` + Type_ *CoreOAuth2TokenRequestType `json:"type,omitempty"` + Client *CoreOAuth2Client `json:"client,omitempty"` + IdpDiscoveryEndpoint string `json:"idp_discovery_endpoint,omitempty"` + TokenEndpoint string `json:"token_endpoint,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request_type.go new file mode 100644 index 0000000000..5e9b5d4e6f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request_type.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// CoreOAuth2TokenRequestType : Type of the token requested. - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. +type CoreOAuth2TokenRequestType string + +// List of coreOAuth2TokenRequestType +const ( + CoreOAuth2TokenRequestTypeCLIENT_CREDENTIALS CoreOAuth2TokenRequestType = "CLIENT_CREDENTIALS" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go new file mode 100644 index 0000000000..07f2887e70 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines an operand to a comparison expression. +type CoreOperand struct { + Primitive *CorePrimitive `json:"primitive,omitempty"` + Var_ string `json:"var,omitempty"` + Scalar *CoreScalar `json:"scalar,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go new file mode 100644 index 0000000000..9d05e33ebd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A reference to an output produced by a node. The type can be retrieved -and validated- from the underlying interface of the node. +type CoreOutputReference struct { + // Node id must exist at the graph layer. + NodeId string `json:"node_id,omitempty"` + // Variable name must refer to an output variable for the node. + Var_ string `json:"var,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go new file mode 100644 index 0000000000..096c7efb0e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A parameter is used as input to a launch plan and has the special ability to have a default value or mark itself as required. +type CoreParameter struct { + // +required Variable. Defines the type of the variable backing this parameter. + Var_ *CoreVariable `json:"var,omitempty"` + // Defines a default value that has to match the variable type defined. + Default_ *CoreLiteral `json:"default,omitempty"` + // +optional, is this value required to be filled. + Required bool `json:"required,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go new file mode 100644 index 0000000000..0c6fc94fb0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A map of Parameters. +type CoreParameterMap struct { + // Defines a map of parameter names to parameters. + Parameters map[string]CoreParameter `json:"parameters,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go new file mode 100644 index 0000000000..efe369c246 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type CorePrimitive struct { + Integer string `json:"integer,omitempty"` + FloatValue float64 `json:"float_value,omitempty"` + StringValue string `json:"string_value,omitempty"` + Boolean bool `json:"boolean,omitempty"` + Datetime time.Time `json:"datetime,omitempty"` + Duration string `json:"duration,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service.go new file mode 100644 index 0000000000..d735974d03 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Indicates the priority of an execution. +type CoreQualityOfService struct { + Tier *QualityOfServiceTier `json:"tier,omitempty"` + Spec *CoreQualityOfServiceSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service_spec.go new file mode 100644 index 0000000000..e7a8a8ad7a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service_spec.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents customized execution run-time attributes. +type CoreQualityOfServiceSpec struct { + // Indicates how much queueing delay an execution can tolerate. + QueueingBudget string `json:"queueing_budget,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go new file mode 100644 index 0000000000..26866d1c4c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// CoreResourceType : Indicates a resource type within Flyte. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects +type CoreResourceType string + +// List of coreResourceType +const ( + CoreResourceTypeUNSPECIFIED CoreResourceType = "UNSPECIFIED" + CoreResourceTypeTASK CoreResourceType = "TASK" + CoreResourceTypeWORKFLOW CoreResourceType = "WORKFLOW" + CoreResourceTypeLAUNCH_PLAN CoreResourceType = "LAUNCH_PLAN" + CoreResourceTypeDATASET CoreResourceType = "DATASET" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go new file mode 100644 index 0000000000..725140da08 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A customizable interface to convey resources requested for a container. This can be interpreted differently for different container engines. +type CoreResources struct { + // The desired set of resources requested. ResourceNames must be unique within the list. + Requests []ResourcesResourceEntry `json:"requests,omitempty"` + // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. + Limits []ResourcesResourceEntry `json:"limits,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go new file mode 100644 index 0000000000..4766ef1445 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Retry strategy associated with an executable unit. +type CoreRetryStrategy struct { + // Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. + Retries int64 `json:"retries,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go new file mode 100644 index 0000000000..51fe719888 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Runtime information. This is loosely defined to allow for extensibility. +type CoreRuntimeMetadata struct { + // Type of runtime. + Type_ *RuntimeMetadataRuntimeType `json:"type,omitempty"` + // Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. + Version string `json:"version,omitempty"` + // +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + Flavor string `json:"flavor,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go new file mode 100644 index 0000000000..09c05e7bef --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreScalar struct { + Primitive *CorePrimitive `json:"primitive,omitempty"` + Blob *CoreBlob `json:"blob,omitempty"` + Binary *CoreBinary `json:"binary,omitempty"` + Schema *CoreSchema `json:"schema,omitempty"` + NoneType *CoreVoid `json:"none_type,omitempty"` + Error_ *CoreError `json:"error,omitempty"` + Generic *ProtobufStruct `json:"generic,omitempty"` + StructuredDataset *CoreStructuredDataset `json:"structured_dataset,omitempty"` + Union *CoreUnion `json:"union,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema.go new file mode 100644 index 0000000000..b621770da0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +type CoreSchema struct { + Uri string `json:"uri,omitempty"` + Type_ *CoreSchemaType `json:"type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go new file mode 100644 index 0000000000..52df3a083e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines schema columns and types to strongly type-validate schemas interoperability. +type CoreSchemaType struct { + // A list of ordered columns this schema comprises of. + Columns []SchemaTypeSchemaColumn `json:"columns,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_secret.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_secret.go new file mode 100644 index 0000000000..3b709cefe6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_secret.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Secret encapsulates information about the secret a task needs to proceed. An environment variable FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if secrets are passed through environment variables. FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets are passed through file mounts. +type CoreSecret struct { + Group string `json:"group,omitempty"` + GroupVersion string `json:"group_version,omitempty"` + Key string `json:"key,omitempty"` + MountRequirement *SecretMountType `json:"mount_requirement,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_security_context.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_security_context.go new file mode 100644 index 0000000000..d5c2a841a9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_security_context.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// SecurityContext holds security attributes that apply to tasks. +type CoreSecurityContext struct { + // run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on. + RunAs *CoreIdentity `json:"run_as,omitempty"` + // secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. + Secrets []CoreSecret `json:"secrets,omitempty"` + // tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. + Tokens []CoreOAuth2TokenRequest `json:"tokens,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_signal_condition.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_signal_condition.go new file mode 100644 index 0000000000..22e6a53060 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_signal_condition.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// SignalCondition represents a dependency on an signal. +type CoreSignalCondition struct { + // A unique identifier for the requested signal. + SignalId string `json:"signal_id,omitempty"` + // A type denoting the required value type for this signal. + Type_ *CoreLiteralType `json:"type,omitempty"` + // The variable name for the signal value in this nodes outputs. + OutputVariableName string `json:"output_variable_name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go new file mode 100644 index 0000000000..23988bb9c1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// CoreSimpleType : Define a set of simple types. +type CoreSimpleType string + +// List of coreSimpleType +const ( + CoreSimpleTypeNONE CoreSimpleType = "NONE" + CoreSimpleTypeINTEGER CoreSimpleType = "INTEGER" + CoreSimpleTypeFLOAT CoreSimpleType = "FLOAT" + CoreSimpleTypeSTRING_ CoreSimpleType = "STRING" + CoreSimpleTypeBOOLEAN CoreSimpleType = "BOOLEAN" + CoreSimpleTypeDATETIME CoreSimpleType = "DATETIME" + CoreSimpleTypeDURATION CoreSimpleType = "DURATION" + CoreSimpleTypeBINARY CoreSimpleType = "BINARY" + CoreSimpleTypeERROR_ CoreSimpleType = "ERROR" + CoreSimpleTypeSTRUCT_ CoreSimpleType = "STRUCT" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sleep_condition.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sleep_condition.go new file mode 100644 index 0000000000..4646d8c012 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sleep_condition.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// SleepCondition represents a dependency on waiting for the specified duration. +type CoreSleepCondition struct { + // The overall duration for this sleep. + Duration string `json:"duration,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_span.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_span.go new file mode 100644 index 0000000000..c050250df6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_span.go @@ -0,0 +1,32 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more precise definitions. +type CoreSpan struct { + // start_time defines the instance this span began. + StartTime time.Time `json:"start_time,omitempty"` + // end_time defines the instance this span completed. + EndTime time.Time `json:"end_time,omitempty"` + // workflow_id is the id of the workflow execution this Span represents. + WorkflowId *CoreWorkflowExecutionIdentifier `json:"workflow_id,omitempty"` + // node_id is the id of the node execution this Span represents. + NodeId *CoreNodeExecutionIdentifier `json:"node_id,omitempty"` + // task_id is the id of the task execution this Span represents. + TaskId *CoreTaskExecutionIdentifier `json:"task_id,omitempty"` + // operation_id is the id of a unique operation that this Span represents. + OperationId string `json:"operation_id,omitempty"` + // spans defines a collection of Spans that breakdown this execution. + Spans []CoreSpan `json:"spans,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sql.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sql.go new file mode 100644 index 0000000000..c0cd22cb48 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sql.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Sql represents a generic sql workload with a statement and dialect. +type CoreSql struct { + Statement string `json:"statement,omitempty"` + Dialect *SqlDialect `json:"dialect,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset.go new file mode 100644 index 0000000000..88fb473fcc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreStructuredDataset struct { + Uri string `json:"uri,omitempty"` + Metadata *CoreStructuredDatasetMetadata `json:"metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_metadata.go new file mode 100644 index 0000000000..9ae04bc033 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_metadata.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreStructuredDatasetMetadata struct { + // Bundle the type information along with the literal. This is here because StructuredDatasets can often be more defined at run time than at compile time. That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, without any column information, but at run time, you might have that column information. flytekit python will copy this type information into the literal, from the type information, if not provided by the various plugins (encoders). Since this field is run time generated, it's not used for any type checking. + StructuredDatasetType *CoreStructuredDatasetType `json:"structured_dataset_type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_type.go new file mode 100644 index 0000000000..74d678705b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_type.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreStructuredDatasetType struct { + // A list of ordered columns this schema comprises of. + Columns []StructuredDatasetTypeDatasetColumn `json:"columns,omitempty"` + // This is the storage format, the format of the bits at rest parquet, feather, csv, etc. For two types to be compatible, the format will need to be an exact match. + Format string `json:"format,omitempty"` + // This is a string representing the type that the bytes in external_schema_bytes are formatted in. This is an optional field that will not be used for type checking. + ExternalSchemaType string `json:"external_schema_type,omitempty"` + // The serialized bytes of a third-party schema library like Arrow. This is an optional field that will not be used for type checking. + ExternalSchemaBytes string `json:"external_schema_bytes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go new file mode 100644 index 0000000000..c0f0264ad2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that identify a Flyte task execution entity. +type CoreTaskExecutionIdentifier struct { + TaskId *CoreIdentifier `json:"task_id,omitempty"` + NodeExecutionId *CoreNodeExecutionIdentifier `json:"node_execution_id,omitempty"` + RetryAttempt int64 `json:"retry_attempt,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go new file mode 100644 index 0000000000..0dd23b9a2c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go @@ -0,0 +1,24 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreTaskExecutionPhase string + +// List of coreTaskExecutionPhase +const ( + CoreTaskExecutionPhaseUNDEFINED CoreTaskExecutionPhase = "UNDEFINED" + CoreTaskExecutionPhaseQUEUED CoreTaskExecutionPhase = "QUEUED" + CoreTaskExecutionPhaseRUNNING CoreTaskExecutionPhase = "RUNNING" + CoreTaskExecutionPhaseSUCCEEDED CoreTaskExecutionPhase = "SUCCEEDED" + CoreTaskExecutionPhaseABORTED CoreTaskExecutionPhase = "ABORTED" + CoreTaskExecutionPhaseFAILED CoreTaskExecutionPhase = "FAILED" + CoreTaskExecutionPhaseINITIALIZING CoreTaskExecutionPhase = "INITIALIZING" + CoreTaskExecutionPhaseWAITING_FOR_RESOURCES CoreTaskExecutionPhase = "WAITING_FOR_RESOURCES" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go new file mode 100644 index 0000000000..1eef3655de --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreTaskLog struct { + Uri string `json:"uri,omitempty"` + Name string `json:"name,omitempty"` + MessageFormat *TaskLogMessageFormat `json:"message_format,omitempty"` + Ttl string `json:"ttl,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go new file mode 100644 index 0000000000..658e8e1607 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go @@ -0,0 +1,32 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreTaskMetadata struct { + // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + Discoverable bool `json:"discoverable,omitempty"` + // Runtime information about the task. + Runtime *CoreRuntimeMetadata `json:"runtime,omitempty"` + // The overall timeout of a task including user-triggered retries. + Timeout string `json:"timeout,omitempty"` + // Number of retries per task. + Retries *CoreRetryStrategy `json:"retries,omitempty"` + // Indicates a logical version to apply to this task for the purpose of discovery. + DiscoveryVersion string `json:"discovery_version,omitempty"` + // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. + DeprecatedErrorMessage string `json:"deprecated_error_message,omitempty"` + Interruptible bool `json:"interruptible,omitempty"` + CacheSerializable bool `json:"cache_serializable,omitempty"` + // Indicates whether the task will generate a Deck URI when it finishes executing. + GeneratesDeck bool `json:"generates_deck,omitempty"` + Tags map[string]string `json:"tags,omitempty"` + // pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied identically as, the default PodTemplate configured in FlytePropeller. + PodTemplateName string `json:"pod_template_name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go new file mode 100644 index 0000000000..63d75a8153 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Refers to the task that the Node is to execute. +type CoreTaskNode struct { + // A globally unique identifier for the task. + ReferenceId *CoreIdentifier `json:"reference_id,omitempty"` + // Optional overrides applied at task execution time. + Overrides *CoreTaskNodeOverrides `json:"overrides,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node_overrides.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node_overrides.go new file mode 100644 index 0000000000..241ad41197 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node_overrides.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Optional task node overrides that will be applied at task execution time. +type CoreTaskNodeOverrides struct { + // A customizable interface to convey resources requested for a task container. + Resources *CoreResources `json:"resources,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go new file mode 100644 index 0000000000..163a0eb7c8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go @@ -0,0 +1,32 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A Task structure that uniquely identifies a task in the system Tasks are registered as a first step in the system. +type CoreTaskTemplate struct { + // Auto generated taskId by the system. Task Id uniquely identifies this task globally. + Id *CoreIdentifier `json:"id,omitempty"` + // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. + Type_ string `json:"type,omitempty"` + // Extra metadata about the task. + Metadata *CoreTaskMetadata `json:"metadata,omitempty"` + // A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures. + Interface_ *CoreTypedInterface `json:"interface,omitempty"` + // Custom data about the task. This is extensible to allow various plugins in the system. + Custom *ProtobufStruct `json:"custom,omitempty"` + Container *CoreContainer `json:"container,omitempty"` + K8sPod *CoreK8sPod `json:"k8s_pod,omitempty"` + Sql *CoreSql `json:"sql,omitempty"` + // This can be used to customize task handling at execution time for the same task type. + TaskTypeVersion int32 `json:"task_type_version,omitempty"` + // security_context encapsulates security attributes requested to run this task. + SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` + Config map[string]string `json:"config,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_annotation.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_annotation.go new file mode 100644 index 0000000000..221a16877a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_annotation.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. +type CoreTypeAnnotation struct { + // A arbitrary JSON payload to describe a type. + Annotations *ProtobufStruct `json:"annotations,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_structure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_structure.go new file mode 100644 index 0000000000..d3e1d71721 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_structure.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Hints to improve type matching e.g. allows distinguishing output from custom type transformers even if the underlying IDL serialization matches. +type CoreTypeStructure struct { + Tag string `json:"tag,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go new file mode 100644 index 0000000000..8a14876460 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines strongly typed inputs and outputs. +type CoreTypedInterface struct { + Inputs *CoreVariableMap `json:"inputs,omitempty"` + Outputs *CoreVariableMap `json:"outputs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union.go new file mode 100644 index 0000000000..dc4a92e0d4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// The runtime representation of a tagged union value. See `UnionType` for more details. +type CoreUnion struct { + Value *CoreLiteral `json:"value,omitempty"` + Type_ *CoreLiteralType `json:"type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_info.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_info.go new file mode 100644 index 0000000000..f4468f7ad0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_info.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreUnionInfo struct { + TargetType *CoreLiteralType `json:"targetType,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_type.go new file mode 100644 index 0000000000..a2c710b49e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_type.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a tagged union type, also known as a variant (and formally as the sum type). A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by storing the varaint's tag with the literal value and can be examined in runtime. Type S is typically written as S := Apple A | Banana B | Cantaloupe C | ... Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: Optional X := X | Null See also: https://en.wikipedia.org/wiki/Tagged_union +type CoreUnionType struct { + // Predefined set of variants in union. + Variants []CoreLiteralType `json:"variants,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go new file mode 100644 index 0000000000..40e43f0588 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a strongly typed variable. +type CoreVariable struct { + // Variable literal type. + Type_ *CoreLiteralType `json:"type,omitempty"` + Description string `json:"description,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go new file mode 100644 index 0000000000..581bc9668a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreVariableMap struct { + // Defines a map of variable names to variables. + Variables map[string]CoreVariable `json:"variables,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go new file mode 100644 index 0000000000..94fc7ee1fc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally undefined since it can be assigned to a scalar of any LiteralType. +type CoreVoid struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go new file mode 100644 index 0000000000..cf61bea6ca --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreWorkflowExecutionIdentifier struct { + // Name of the project the resource belongs to. + Project string `json:"project,omitempty"` + // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + Domain string `json:"domain,omitempty"` + // User or system provided value for the resource. + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go new file mode 100644 index 0000000000..0745afacd7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreWorkflowExecutionPhase string + +// List of coreWorkflowExecutionPhase +const ( + CoreWorkflowExecutionPhaseUNDEFINED CoreWorkflowExecutionPhase = "UNDEFINED" + CoreWorkflowExecutionPhaseQUEUED CoreWorkflowExecutionPhase = "QUEUED" + CoreWorkflowExecutionPhaseRUNNING CoreWorkflowExecutionPhase = "RUNNING" + CoreWorkflowExecutionPhaseSUCCEEDING CoreWorkflowExecutionPhase = "SUCCEEDING" + CoreWorkflowExecutionPhaseSUCCEEDED CoreWorkflowExecutionPhase = "SUCCEEDED" + CoreWorkflowExecutionPhaseFAILING CoreWorkflowExecutionPhase = "FAILING" + CoreWorkflowExecutionPhaseFAILED CoreWorkflowExecutionPhase = "FAILED" + CoreWorkflowExecutionPhaseABORTED CoreWorkflowExecutionPhase = "ABORTED" + CoreWorkflowExecutionPhaseTIMED_OUT CoreWorkflowExecutionPhase = "TIMED_OUT" + CoreWorkflowExecutionPhaseABORTING CoreWorkflowExecutionPhase = "ABORTING" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go new file mode 100644 index 0000000000..9761a3abc4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not percolate down to child entities (like tasks) launched by the workflow. +type CoreWorkflowMetadata struct { + // Indicates the runtime priority of workflow executions. + QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` + // Defines how the system should behave when a failure is detected in the workflow execution. + OnFailure *WorkflowMetadataOnFailurePolicy `json:"on_failure,omitempty"` + Tags map[string]string `json:"tags,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata_defaults.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata_defaults.go new file mode 100644 index 0000000000..715c329160 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata_defaults.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it is only relevant when a task executes. The settings here are the defaults that are passed to all nodes unless explicitly overridden at the node layer. If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be added to both this object and the WorkflowMetadata object above. +type CoreWorkflowMetadataDefaults struct { + // Whether child nodes of the workflow are interruptible. + Interruptible bool `json:"interruptible,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go new file mode 100644 index 0000000000..42b07706aa --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Refers to a the workflow the node is to execute. +type CoreWorkflowNode struct { + // A globally unique identifier for the launch plan. + LaunchplanRef *CoreIdentifier `json:"launchplan_ref,omitempty"` + SubWorkflowRef *CoreIdentifier `json:"sub_workflow_ref,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go new file mode 100644 index 0000000000..377a19bf82 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go @@ -0,0 +1,27 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, directed acyclic graph. +type CoreWorkflowTemplate struct { + // A globally unique identifier for the workflow. + Id *CoreIdentifier `json:"id,omitempty"` + // Extra metadata about the workflow. + Metadata *CoreWorkflowMetadata `json:"metadata,omitempty"` + // Defines a strongly typed interface for the Workflow. This can include some optional parameters. + Interface_ *CoreTypedInterface `json:"interface,omitempty"` + // A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. + Nodes []CoreNode `json:"nodes,omitempty"` + // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. + Outputs []CoreBinding `json:"outputs,omitempty"` + // +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named 'error' of type pb.lyft.flyte.core.Error. + FailureNode *CoreNode `json:"failure_node,omitempty"` + MetadataDefaults *CoreWorkflowMetadataDefaults `json:"metadata_defaults,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_data_loading_config_literal_map_format.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_data_loading_config_literal_map_format.go new file mode 100644 index 0000000000..bfb25fd456 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_data_loading_config_literal_map_format.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// DataLoadingConfigLiteralMapFormat : - JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core +type DataLoadingConfigLiteralMapFormat string + +// List of DataLoadingConfigLiteralMapFormat +const ( + DataLoadingConfigLiteralMapFormatJSON DataLoadingConfigLiteralMapFormat = "JSON" + DataLoadingConfigLiteralMapFormatYAML DataLoadingConfigLiteralMapFormat = "YAML" + DataLoadingConfigLiteralMapFormatPROTO DataLoadingConfigLiteralMapFormat = "PROTO" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_external_resource_info.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_external_resource_info.go new file mode 100644 index 0000000000..8daa059ed9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_external_resource_info.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// This message contains metadata about external resources produced or used by a specific task execution. +type EventExternalResourceInfo struct { + // Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. + ExternalId string `json:"external_id,omitempty"` + // A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports. + Index int64 `json:"index,omitempty"` + RetryAttempt int64 `json:"retry_attempt,omitempty"` + Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` + // Captures the status of caching for this external resource execution. + CacheStatus *CoreCatalogCacheStatus `json:"cache_status,omitempty"` + Logs []CoreTaskLog `json:"logs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go new file mode 100644 index 0000000000..8d80e2a1e5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go @@ -0,0 +1,47 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type EventNodeExecutionEvent struct { + Id *CoreNodeExecutionIdentifier `json:"id,omitempty"` + ProducerId string `json:"producer_id,omitempty"` + Phase *CoreNodeExecutionPhase `json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated by the executor of the node. + OccurredAt time.Time `json:"occurred_at,omitempty"` + InputUri string `json:"input_uri,omitempty"` + // Raw input data consumed by this node execution. + InputData *CoreLiteralMap `json:"input_data,omitempty"` + // URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` + // Raw output data produced by this node execution. + OutputData *CoreLiteralMap `json:"output_data,omitempty"` + WorkflowNodeMetadata *FlyteidleventWorkflowNodeMetadata `json:"workflow_node_metadata,omitempty"` + TaskNodeMetadata *FlyteidleventTaskNodeMetadata `json:"task_node_metadata,omitempty"` + // [To be deprecated] Specifies which task (if any) launched this node. + ParentTaskMetadata *EventParentTaskExecutionMetadata `json:"parent_task_metadata,omitempty"` + // Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. + ParentNodeMetadata *EventParentNodeExecutionMetadata `json:"parent_node_metadata,omitempty"` + RetryGroup string `json:"retry_group,omitempty"` + SpecNodeId string `json:"spec_node_id,omitempty"` + NodeName string `json:"node_name,omitempty"` + EventVersion int32 `json:"event_version,omitempty"` + // Whether this node launched a subworkflow. + IsParent bool `json:"is_parent,omitempty"` + // Whether this node yielded a dynamic workflow. + IsDynamic bool `json:"is_dynamic,omitempty"` + DeckUri string `json:"deck_uri,omitempty"` + // This timestamp represents the instant when the event was reported by the executing framework. For example, when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when literal inputs are initially copied. The event however will not be sent until after the copy completes. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + ReportedAt time.Time `json:"reported_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_node_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_node_execution_metadata.go new file mode 100644 index 0000000000..80cd096b18 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_node_execution_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type EventParentNodeExecutionMetadata struct { + NodeId string `json:"node_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go new file mode 100644 index 0000000000..c5276ee64c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type EventParentTaskExecutionMetadata struct { + Id *CoreTaskExecutionIdentifier `json:"id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_resource_pool_info.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_resource_pool_info.go new file mode 100644 index 0000000000..4b2bde69b0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_resource_pool_info.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// This message holds task execution metadata specific to resource allocation used to manage concurrent executions for a project namespace. +type EventResourcePoolInfo struct { + // Unique resource ID used to identify this execution when allocating a token. + AllocationToken string `json:"allocation_token,omitempty"` + // Namespace under which this task execution requested an allocation token. + Namespace string `json:"namespace,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go new file mode 100644 index 0000000000..f394fdf302 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go @@ -0,0 +1,50 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +type EventTaskExecutionEvent struct { + // ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. + TaskId *CoreIdentifier `json:"task_id,omitempty"` + ParentNodeExecutionId *CoreNodeExecutionIdentifier `json:"parent_node_execution_id,omitempty"` + RetryAttempt int64 `json:"retry_attempt,omitempty"` + Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` + ProducerId string `json:"producer_id,omitempty"` + Logs []CoreTaskLog `json:"logs,omitempty"` + // This timestamp represents when the original event occurred, it is generated by the executor of the task. + OccurredAt time.Time `json:"occurred_at,omitempty"` + // URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... + InputUri string `json:"input_uri,omitempty"` + // Raw input data consumed by this task execution. + InputData *CoreLiteralMap `json:"input_data,omitempty"` + // URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` + // Raw output data produced by this task execution. + OutputData *CoreLiteralMap `json:"output_data,omitempty"` + // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + CustomInfo *ProtobufStruct `json:"custom_info,omitempty"` + // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. + PhaseVersion int64 `json:"phase_version,omitempty"` + // An optional explanation for the phase transition. + Reason string `json:"reason,omitempty"` + // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc. + TaskType string `json:"task_type,omitempty"` + // Metadata around how a task was executed. + Metadata *FlyteidleventTaskExecutionMetadata `json:"metadata,omitempty"` + // The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. + EventVersion int32 `json:"event_version,omitempty"` + // This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + ReportedAt time.Time `json:"reported_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go new file mode 100644 index 0000000000..279f0d5a5c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go @@ -0,0 +1,27 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type EventWorkflowExecutionEvent struct { + ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` + ProducerId string `json:"producer_id,omitempty"` + Phase *CoreWorkflowExecutionPhase `json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated by the executor of the workflow. + OccurredAt time.Time `json:"occurred_at,omitempty"` + // URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` + // Raw output data produced by this workflow execution. + OutputData *CoreLiteralMap `json:"output_data,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_error_error_kind.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_error_error_kind.go new file mode 100644 index 0000000000..fa2eb9e95e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_error_error_kind.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type ExecutionErrorErrorKind string + +// List of ExecutionErrorErrorKind +const ( + ExecutionErrorErrorKindUNKNOWN ExecutionErrorErrorKind = "UNKNOWN" + ExecutionErrorErrorKindUSER ExecutionErrorErrorKind = "USER" + ExecutionErrorErrorKindSYSTEM ExecutionErrorErrorKind = "SYSTEM" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go new file mode 100644 index 0000000000..000c4da4c6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ExecutionMetadataExecutionMode : The method by which this execution was launched. - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual. - SCHEDULED: A schedule triggered this execution launch. - SYSTEM: A system process was responsible for launching this execution rather an individual. - RELAUNCH: This execution was launched with identical inputs as a previous execution. - CHILD_WORKFLOW: This execution was triggered by another execution. - RECOVERED: This execution was recovered from another execution. +type ExecutionMetadataExecutionMode string + +// List of ExecutionMetadataExecutionMode +const ( + ExecutionMetadataExecutionModeMANUAL ExecutionMetadataExecutionMode = "MANUAL" + ExecutionMetadataExecutionModeSCHEDULED ExecutionMetadataExecutionMode = "SCHEDULED" + ExecutionMetadataExecutionModeSYSTEM ExecutionMetadataExecutionMode = "SYSTEM" + ExecutionMetadataExecutionModeRELAUNCH ExecutionMetadataExecutionMode = "RELAUNCH" + ExecutionMetadataExecutionModeCHILD_WORKFLOW ExecutionMetadataExecutionMode = "CHILD_WORKFLOW" + ExecutionMetadataExecutionModeRECOVERED ExecutionMetadataExecutionMode = "RECOVERED" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_dynamic_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_dynamic_workflow_node_metadata.go new file mode 100644 index 0000000000..be943d57f4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_dynamic_workflow_node_metadata.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. +type FlyteidladminDynamicWorkflowNodeMetadata struct { + // id represents the unique identifier of the workflow. + Id *CoreIdentifier `json:"id,omitempty"` + // Represents the compiled representation of the embedded dynamic workflow. + CompiledWorkflow *CoreCompiledWorkflowClosure `json:"compiled_workflow,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. + DynamicJobSpecUri string `json:"dynamic_job_spec_uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go new file mode 100644 index 0000000000..98ec72e86b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates all details for a single node execution entity. A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested sub-workflow, or even a separate child-workflow execution. The same task can be called repeatedly in a single workflow but each node is unique. +type FlyteidladminNodeExecution struct { + // Uniquely identifies an individual node execution. + Id *CoreNodeExecutionIdentifier `json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `json:"input_uri,omitempty"` + // Computed results associated with this node execution. + Closure *AdminNodeExecutionClosure `json:"closure,omitempty"` + Metadata *AdminNodeExecutionMetaData `json:"metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_request.go new file mode 100644 index 0000000000..ab5fca2a45 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_request.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type FlyteidladminTaskCreateRequest struct { + Id *CoreIdentifier `json:"id,omitempty"` + Spec *AdminTaskSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_response.go new file mode 100644 index 0000000000..caffded160 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a response structure if task creation succeeds. +type FlyteidladminTaskCreateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go new file mode 100644 index 0000000000..e0532d1a27 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates all details for a single task execution entity. A task execution represents an instantiated task, including all inputs and additional metadata as well as computed results included state, outputs, and duration-based attributes. +type FlyteidladminTaskExecution struct { + // Unique identifier for the task execution. + Id *CoreTaskExecutionIdentifier `json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `json:"input_uri,omitempty"` + // Task execution details and results. + Closure *AdminTaskExecutionClosure `json:"closure,omitempty"` + // Whether this task spawned nodes. + IsParent bool `json:"is_parent,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_node_metadata.go new file mode 100644 index 0000000000..56d98b26d1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_node_metadata.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type FlyteidladminTaskNodeMetadata struct { + // Captures the status of caching for this execution. + CacheStatus *CoreCatalogCacheStatus `json:"cache_status,omitempty"` + CatalogKey *CoreCatalogMetadata `json:"catalog_key,omitempty"` + CheckpointUri string `json:"checkpoint_uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go new file mode 100644 index 0000000000..fe99080d56 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type FlyteidladminWorkflowNodeMetadata struct { + // The identifier for a workflow execution launched by a node. + ExecutionId *CoreWorkflowExecutionIdentifier `json:"executionId,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_dynamic_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_dynamic_workflow_node_metadata.go new file mode 100644 index 0000000000..a02306af60 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_dynamic_workflow_node_metadata.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. +type FlyteidleventDynamicWorkflowNodeMetadata struct { + // id represents the unique identifier of the workflow. + Id *CoreIdentifier `json:"id,omitempty"` + // Represents the compiled representation of the embedded dynamic workflow. + CompiledWorkflow *CoreCompiledWorkflowClosure `json:"compiled_workflow,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the workflow has already been compiled. + DynamicJobSpecUri string `json:"dynamic_job_spec_uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_execution_metadata.go new file mode 100644 index 0000000000..71d474ab41 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_execution_metadata.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Holds metadata around how a task was executed. As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, and more may grow in size but not change necessarily based on the phase transition that sparked the event update. Metadata is a container for these attributes across the task execution lifecycle. +type FlyteidleventTaskExecutionMetadata struct { + // Unique, generated name for this task execution used by the backend. + GeneratedName string `json:"generated_name,omitempty"` + // Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. + ExternalResources []EventExternalResourceInfo `json:"external_resources,omitempty"` + // Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution. + ResourcePoolInfo []EventResourcePoolInfo `json:"resource_pool_info,omitempty"` + // The identifier of the plugin used to execute this task. + PluginIdentifier string `json:"plugin_identifier,omitempty"` + InstanceClass *TaskExecutionMetadataInstanceClass `json:"instance_class,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_node_metadata.go new file mode 100644 index 0000000000..50a76526b3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_node_metadata.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type FlyteidleventTaskNodeMetadata struct { + // Captures the status of caching for this execution. + CacheStatus *CoreCatalogCacheStatus `json:"cache_status,omitempty"` + CatalogKey *CoreCatalogMetadata `json:"catalog_key,omitempty"` + // Captures the status of cache reservations for this execution. + ReservationStatus *CatalogReservationStatus `json:"reservation_status,omitempty"` + CheckpointUri string `json:"checkpoint_uri,omitempty"` + // In the case this task launched a dynamic workflow we capture its structure here. + DynamicWorkflow *FlyteidleventDynamicWorkflowNodeMetadata `json:"dynamic_workflow,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go new file mode 100644 index 0000000000..0530d49c8d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type FlyteidleventWorkflowNodeMetadata struct { + ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_download_mode.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_download_mode.go new file mode 100644 index 0000000000..670fc15294 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_download_mode.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// IoStrategyDownloadMode : - DOWNLOAD_EAGER: All data will be downloaded before the main container is executed - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded +type IoStrategyDownloadMode string + +// List of IOStrategyDownloadMode +const ( + IoStrategyDownloadModeDOWNLOAD_EAGER IoStrategyDownloadMode = "DOWNLOAD_EAGER" + IoStrategyDownloadModeDOWNLOAD_STREAM IoStrategyDownloadMode = "DOWNLOAD_STREAM" + IoStrategyDownloadModeDO_NOT_DOWNLOAD IoStrategyDownloadMode = "DO_NOT_DOWNLOAD" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_upload_mode.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_upload_mode.go new file mode 100644 index 0000000000..d7b6e5f1fe --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_upload_mode.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// IoStrategyUploadMode : - UPLOAD_ON_EXIT: All data will be uploaded after the main container exits - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written +type IoStrategyUploadMode string + +// List of IOStrategyUploadMode +const ( + IoStrategyUploadModeUPLOAD_ON_EXIT IoStrategyUploadMode = "UPLOAD_ON_EXIT" + IoStrategyUploadModeUPLOAD_EAGER IoStrategyUploadMode = "UPLOAD_EAGER" + IoStrategyUploadModeDO_NOT_UPLOAD IoStrategyUploadMode = "DO_NOT_UPLOAD" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_plugin_override_missing_plugin_behavior.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_plugin_override_missing_plugin_behavior.go new file mode 100644 index 0000000000..2c8ff10df0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_plugin_override_missing_plugin_behavior.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// PluginOverrideMissingPluginBehavior : - FAIL: By default, if this plugin is not enabled for a Flyte deployment then execution will fail. - USE_DEFAULT: Uses the system-configured default implementation. +type PluginOverrideMissingPluginBehavior string + +// List of PluginOverrideMissingPluginBehavior +const ( + PluginOverrideMissingPluginBehaviorFAIL PluginOverrideMissingPluginBehavior = "FAIL" + PluginOverrideMissingPluginBehaviorUSE_DEFAULT PluginOverrideMissingPluginBehavior = "USE_DEFAULT" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_project_project_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_project_project_state.go new file mode 100644 index 0000000000..112958abfa --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_project_project_state.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ProjectProjectState : The state of the project is used to control its visibility in the UI and validity. - ACTIVE: By default, all projects are considered active. - ARCHIVED: Archived projects are no longer visible in the UI and no longer valid. - SYSTEM_GENERATED: System generated projects that aren't explicitly created or managed by a user. +type ProjectProjectState string + +// List of ProjectProjectState +const ( + ProjectProjectStateACTIVE ProjectProjectState = "ACTIVE" + ProjectProjectStateARCHIVED ProjectProjectState = "ARCHIVED" + ProjectProjectStateSYSTEM_GENERATED ProjectProjectState = "SYSTEM_GENERATED" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go new file mode 100644 index 0000000000..bc715dd55e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// `ListValue` is a wrapper around a repeated field of values. The JSON representation for `ListValue` is JSON array. +type ProtobufListValue struct { + // Repeated field of dynamically typed values. + Values []ProtobufValue `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go new file mode 100644 index 0000000000..b7bb2d3e80 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ProtobufNullValue : `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. +type ProtobufNullValue string + +// List of protobufNullValue +const ( + ProtobufNullValueNULL_VALUE ProtobufNullValue = "NULL_VALUE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go new file mode 100644 index 0000000000..377cb9bbcd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. +type ProtobufStruct struct { + // Unordered map of dynamically typed values. + Fields map[string]ProtobufValue `json:"fields,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go new file mode 100644 index 0000000000..67738ccee2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// `Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error. The JSON representation for `Value` is JSON value. +type ProtobufValue struct { + // Represents a null value. + NullValue *ProtobufNullValue `json:"null_value,omitempty"` + // Represents a double value. + NumberValue float64 `json:"number_value,omitempty"` + // Represents a string value. + StringValue string `json:"string_value,omitempty"` + // Represents a boolean value. + BoolValue bool `json:"bool_value,omitempty"` + // Represents a structured value. + StructValue *ProtobufStruct `json:"struct_value,omitempty"` + // Represents a repeated `Value`. + ListValue *ProtobufListValue `json:"list_value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_quality_of_service_tier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_quality_of_service_tier.go new file mode 100644 index 0000000000..b156cc3b7e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_quality_of_service_tier.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// QualityOfServiceTier : - UNDEFINED: Default: no quality of service specified. +type QualityOfServiceTier string + +// List of QualityOfServiceTier +const ( + QualityOfServiceTierUNDEFINED QualityOfServiceTier = "UNDEFINED" + QualityOfServiceTierHIGH QualityOfServiceTier = "HIGH" + QualityOfServiceTierMEDIUM QualityOfServiceTier = "MEDIUM" + QualityOfServiceTierLOW QualityOfServiceTier = "LOW" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go new file mode 100644 index 0000000000..cb02920221 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates a resource name and value. +type ResourcesResourceEntry struct { + // Resource name. + Name *ResourcesResourceName `json:"name,omitempty"` + Value string `json:"value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go new file mode 100644 index 0000000000..13b9f8b236 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ResourcesResourceName : Known resource names. - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. +type ResourcesResourceName string + +// List of ResourcesResourceName +const ( + ResourcesResourceNameUNKNOWN ResourcesResourceName = "UNKNOWN" + ResourcesResourceNameCPU ResourcesResourceName = "CPU" + ResourcesResourceNameGPU ResourcesResourceName = "GPU" + ResourcesResourceNameMEMORY ResourcesResourceName = "MEMORY" + ResourcesResourceNameSTORAGE ResourcesResourceName = "STORAGE" + ResourcesResourceNameEPHEMERAL_STORAGE ResourcesResourceName = "EPHEMERAL_STORAGE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go new file mode 100644 index 0000000000..85abd1fbcc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type RuntimeMetadataRuntimeType string + +// List of RuntimeMetadataRuntimeType +const ( + RuntimeMetadataRuntimeTypeOTHER RuntimeMetadataRuntimeType = "OTHER" + RuntimeMetadataRuntimeTypeFLYTE_SDK RuntimeMetadataRuntimeType = "FLYTE_SDK" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go new file mode 100644 index 0000000000..ece75c9671 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type SchemaColumnSchemaColumnType string + +// List of SchemaColumnSchemaColumnType +const ( + SchemaColumnSchemaColumnTypeINTEGER SchemaColumnSchemaColumnType = "INTEGER" + SchemaColumnSchemaColumnTypeFLOAT SchemaColumnSchemaColumnType = "FLOAT" + SchemaColumnSchemaColumnTypeSTRING_ SchemaColumnSchemaColumnType = "STRING" + SchemaColumnSchemaColumnTypeBOOLEAN SchemaColumnSchemaColumnType = "BOOLEAN" + SchemaColumnSchemaColumnTypeDATETIME SchemaColumnSchemaColumnType = "DATETIME" + SchemaColumnSchemaColumnTypeDURATION SchemaColumnSchemaColumnType = "DURATION" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go new file mode 100644 index 0000000000..33bc8433ad --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type SchemaTypeSchemaColumn struct { + Name string `json:"name,omitempty"` + // The column type. This allows a limited set of types currently. + Type_ *SchemaColumnSchemaColumnType `json:"type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_secret_mount_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_secret_mount_type.go new file mode 100644 index 0000000000..4f76410bc7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_secret_mount_type.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// SecretMountType : - ANY: Default case, indicates the client can tolerate either mounting options. - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable. - FILE: FILE indicates the secret needs to be mounted as a file. +type SecretMountType string + +// List of SecretMountType +const ( + SecretMountTypeANY SecretMountType = "ANY" + SecretMountTypeENV_VAR SecretMountType = "ENV_VAR" + SecretMountTypeFILE SecretMountType = "FILE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go new file mode 100644 index 0000000000..bc5e709b53 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// SortDirection : - DESCENDING: By default, fields are sorted in descending order. +type SortDirection string + +// List of SortDirection +const ( + SortDirectionDESCENDING SortDirection = "DESCENDING" + SortDirectionASCENDING SortDirection = "ASCENDING" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sql_dialect.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sql_dialect.go new file mode 100644 index 0000000000..4f3e1a661a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sql_dialect.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// SqlDialect : The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. We support the following dialect: ansi, hive. +type SqlDialect string + +// List of SqlDialect +const ( + SqlDialectUNDEFINED SqlDialect = "UNDEFINED" + SqlDialectANSI SqlDialect = "ANSI" + SqlDialectHIVE SqlDialect = "HIVE" + SqlDialectOTHER SqlDialect = "OTHER" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_structured_dataset_type_dataset_column.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_structured_dataset_type_dataset_column.go new file mode 100644 index 0000000000..ef02a51df2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_structured_dataset_type_dataset_column.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type StructuredDatasetTypeDatasetColumn struct { + // A unique name within the schema type for the column. + Name string `json:"name,omitempty"` + // The column type. + LiteralType *CoreLiteralType `json:"literal_type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_execution_metadata_instance_class.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_execution_metadata_instance_class.go new file mode 100644 index 0000000000..efff48b058 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_execution_metadata_instance_class.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// TaskExecutionMetadataInstanceClass : Includes the broad category of machine used for this specific task execution. - DEFAULT: The default instance class configured for the flyte application platform. - INTERRUPTIBLE: The instance class configured for interruptible tasks. +type TaskExecutionMetadataInstanceClass string + +// List of TaskExecutionMetadataInstanceClass +const ( + TaskExecutionMetadataInstanceClassDEFAULT_ TaskExecutionMetadataInstanceClass = "DEFAULT" + TaskExecutionMetadataInstanceClassINTERRUPTIBLE TaskExecutionMetadataInstanceClass = "INTERRUPTIBLE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go new file mode 100644 index 0000000000..46eab08cba --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type TaskLogMessageFormat string + +// List of TaskLogMessageFormat +const ( + TaskLogMessageFormatUNKNOWN TaskLogMessageFormat = "UNKNOWN" + TaskLogMessageFormatCSV TaskLogMessageFormat = "CSV" + TaskLogMessageFormatJSON TaskLogMessageFormat = "JSON" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_workflow_metadata_on_failure_policy.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_workflow_metadata_on_failure_policy.go new file mode 100644 index 0000000000..81379f25c6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_workflow_metadata_on_failure_policy.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// WorkflowMetadataOnFailurePolicy : - FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically abort all currently running nodes and clean up resources before finally marking the workflow executions as failed. - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. Other nodes that will be executed to completion before cleaning up resources and marking the workflow execution as failed. +type WorkflowMetadataOnFailurePolicy string + +// List of WorkflowMetadataOnFailurePolicy +const ( + WorkflowMetadataOnFailurePolicyIMMEDIATELY WorkflowMetadataOnFailurePolicy = "FAIL_IMMEDIATELY" + WorkflowMetadataOnFailurePolicyAFTER_EXECUTABLE_NODES_COMPLETE WorkflowMetadataOnFailurePolicy = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go new file mode 100644 index 0000000000..d8bc6fdc65 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go @@ -0,0 +1,43 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "net/http" +) + +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the swagger operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go new file mode 100644 index 0000000000..a240b5fbd3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go @@ -0,0 +1,280 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/identity.proto + +package service + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + _ "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 UserInfoRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserInfoRequest) Reset() { *m = UserInfoRequest{} } +func (m *UserInfoRequest) String() string { return proto.CompactTextString(m) } +func (*UserInfoRequest) ProtoMessage() {} +func (*UserInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_0c3f20efbeb1b3f8, []int{0} +} + +func (m *UserInfoRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserInfoRequest.Unmarshal(m, b) +} +func (m *UserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserInfoRequest.Marshal(b, m, deterministic) +} +func (m *UserInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserInfoRequest.Merge(m, src) +} +func (m *UserInfoRequest) XXX_Size() int { + return xxx_messageInfo_UserInfoRequest.Size(m) +} +func (m *UserInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UserInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UserInfoRequest proto.InternalMessageInfo + +// See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. +type UserInfoResponse struct { + // Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed + // by the Client. + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + // Full name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Shorthand name by which the End-User wishes to be referred to + PreferredUsername string `protobuf:"bytes,3,opt,name=preferred_username,json=preferredUsername,proto3" json:"preferred_username,omitempty"` + // Given name(s) or first name(s) + GivenName string `protobuf:"bytes,4,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` + // Surname(s) or last name(s) + FamilyName string `protobuf:"bytes,5,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` + // Preferred e-mail address + Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` + // Profile picture URL + Picture string `protobuf:"bytes,7,opt,name=picture,proto3" json:"picture,omitempty"` + // Additional claims + AdditionalClaims *_struct.Struct `protobuf:"bytes,8,opt,name=additional_claims,json=additionalClaims,proto3" json:"additional_claims,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserInfoResponse) Reset() { *m = UserInfoResponse{} } +func (m *UserInfoResponse) String() string { return proto.CompactTextString(m) } +func (*UserInfoResponse) ProtoMessage() {} +func (*UserInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0c3f20efbeb1b3f8, []int{1} +} + +func (m *UserInfoResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserInfoResponse.Unmarshal(m, b) +} +func (m *UserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserInfoResponse.Marshal(b, m, deterministic) +} +func (m *UserInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserInfoResponse.Merge(m, src) +} +func (m *UserInfoResponse) XXX_Size() int { + return xxx_messageInfo_UserInfoResponse.Size(m) +} +func (m *UserInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UserInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UserInfoResponse proto.InternalMessageInfo + +func (m *UserInfoResponse) GetSubject() string { + if m != nil { + return m.Subject + } + return "" +} + +func (m *UserInfoResponse) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UserInfoResponse) GetPreferredUsername() string { + if m != nil { + return m.PreferredUsername + } + return "" +} + +func (m *UserInfoResponse) GetGivenName() string { + if m != nil { + return m.GivenName + } + return "" +} + +func (m *UserInfoResponse) GetFamilyName() string { + if m != nil { + return m.FamilyName + } + return "" +} + +func (m *UserInfoResponse) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *UserInfoResponse) GetPicture() string { + if m != nil { + return m.Picture + } + return "" +} + +func (m *UserInfoResponse) GetAdditionalClaims() *_struct.Struct { + if m != nil { + return m.AdditionalClaims + } + return nil +} + +func init() { + proto.RegisterType((*UserInfoRequest)(nil), "flyteidl.service.UserInfoRequest") + proto.RegisterType((*UserInfoResponse)(nil), "flyteidl.service.UserInfoResponse") +} + +func init() { proto.RegisterFile("flyteidl/service/identity.proto", fileDescriptor_0c3f20efbeb1b3f8) } + +var fileDescriptor_0c3f20efbeb1b3f8 = []byte{ + // 372 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xbf, 0x6e, 0xfa, 0x30, + 0x10, 0xc7, 0xc5, 0x7f, 0x30, 0x03, 0x60, 0xfd, 0xa4, 0x5f, 0x84, 0x5a, 0x41, 0x33, 0xb1, 0x60, + 0x4b, 0x74, 0xa8, 0xba, 0xb6, 0x5d, 0x58, 0x3a, 0x80, 0x58, 0x3a, 0x14, 0x39, 0xc9, 0x25, 0x75, + 0x95, 0xd8, 0xc1, 0x76, 0x90, 0x58, 0xfb, 0x0a, 0x7d, 0x86, 0x3e, 0x51, 0x5f, 0xa1, 0x0f, 0x52, + 0x61, 0x27, 0x20, 0x31, 0x74, 0xcb, 0xdd, 0xe7, 0x73, 0x92, 0xf3, 0xbd, 0x43, 0x93, 0x38, 0x3d, + 0x18, 0xe0, 0x51, 0x4a, 0x35, 0xa8, 0x3d, 0x0f, 0x81, 0xf2, 0x08, 0x84, 0xe1, 0xe6, 0x40, 0x72, + 0x25, 0x8d, 0xc4, 0xc3, 0x4a, 0x20, 0xa5, 0x30, 0xbe, 0x4a, 0xa4, 0x4c, 0x52, 0xa0, 0x2c, 0xe7, + 0x94, 0x09, 0x21, 0x0d, 0x33, 0x5c, 0x0a, 0xed, 0xfc, 0x13, 0xb5, 0x55, 0x50, 0xc4, 0x54, 0x1b, + 0x55, 0x84, 0xc6, 0x51, 0x7f, 0x84, 0x06, 0x1b, 0x0d, 0x6a, 0x29, 0x62, 0xb9, 0x82, 0x5d, 0x01, + 0xda, 0xf8, 0x5f, 0x75, 0x34, 0x3c, 0xf7, 0x74, 0x2e, 0x85, 0x06, 0xec, 0xa1, 0x8e, 0x2e, 0x82, + 0x77, 0x08, 0x8d, 0x57, 0x9b, 0xd6, 0x66, 0xbd, 0x55, 0x55, 0x62, 0x8c, 0x9a, 0x82, 0x65, 0xe0, + 0xd5, 0x6d, 0xdb, 0x7e, 0xe3, 0x39, 0xc2, 0xb9, 0x82, 0x18, 0x94, 0x82, 0x68, 0x5b, 0x68, 0x50, + 0xd6, 0x68, 0x58, 0x63, 0x74, 0x22, 0x9b, 0x12, 0xe0, 0x6b, 0x84, 0x12, 0xbe, 0x07, 0xb1, 0xb5, + 0x5a, 0xd3, 0x6a, 0x3d, 0xdb, 0x79, 0x3e, 0xe2, 0x09, 0xea, 0xc7, 0x2c, 0xe3, 0xe9, 0xc1, 0xf1, + 0x96, 0xe5, 0xc8, 0xb5, 0xac, 0xf0, 0x0f, 0xb5, 0x20, 0x63, 0x3c, 0xf5, 0xda, 0x16, 0xb9, 0xe2, + 0xf8, 0xe4, 0x9c, 0x87, 0xa6, 0x50, 0xe0, 0x75, 0xdc, 0x93, 0xcb, 0x12, 0x3f, 0xa1, 0x11, 0x8b, + 0x22, 0x7e, 0x4c, 0x89, 0xa5, 0xdb, 0x30, 0x65, 0x3c, 0xd3, 0x5e, 0x77, 0x5a, 0x9b, 0xf5, 0x17, + 0xff, 0x89, 0x8b, 0x8b, 0x54, 0x71, 0x91, 0xb5, 0x8d, 0x6b, 0x35, 0x3c, 0x4f, 0x3c, 0xda, 0x81, + 0xc5, 0x0e, 0x0d, 0x96, 0xe5, 0x6a, 0xd6, 0x6e, 0x13, 0xf8, 0x15, 0x75, 0xab, 0xe4, 0xf0, 0x0d, + 0xb9, 0x5c, 0x14, 0xb9, 0x48, 0x7a, 0xec, 0xff, 0xa5, 0xb8, 0xe0, 0xfd, 0xfe, 0xc7, 0xf7, 0xcf, + 0x67, 0xbd, 0x85, 0x1b, 0x34, 0x83, 0x87, 0xfb, 0x97, 0xbb, 0x84, 0x9b, 0xb7, 0x22, 0x20, 0xa1, + 0xcc, 0xa8, 0x1d, 0x96, 0x2a, 0xa1, 0xa7, 0x93, 0x49, 0x40, 0xd0, 0x3c, 0x98, 0x27, 0x92, 0x5e, + 0x5e, 0x51, 0xd0, 0xb6, 0x3f, 0x74, 0xfb, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x8e, 0x13, 0xed, + 0x60, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// IdentityServiceClient is the client API for IdentityService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type IdentityServiceClient interface { + // Retrieves user information about the currently logged in user. + UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) +} + +type identityServiceClient struct { + cc *grpc.ClientConn +} + +func NewIdentityServiceClient(cc *grpc.ClientConn) IdentityServiceClient { + return &identityServiceClient{cc} +} + +func (c *identityServiceClient) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) { + out := new(UserInfoResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.IdentityService/UserInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// IdentityServiceServer is the server API for IdentityService service. +type IdentityServiceServer interface { + // Retrieves user information about the currently logged in user. + UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) +} + +// UnimplementedIdentityServiceServer can be embedded to have forward compatible implementations. +type UnimplementedIdentityServiceServer struct { +} + +func (*UnimplementedIdentityServiceServer) UserInfo(ctx context.Context, req *UserInfoRequest) (*UserInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented") +} + +func RegisterIdentityServiceServer(s *grpc.Server, srv IdentityServiceServer) { + s.RegisterService(&_IdentityService_serviceDesc, srv) +} + +func _IdentityService_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IdentityServiceServer).UserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.IdentityService/UserInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IdentityServiceServer).UserInfo(ctx, req.(*UserInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _IdentityService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.IdentityService", + HandlerType: (*IdentityServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UserInfo", + Handler: _IdentityService_UserInfo_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/identity.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.gw.go new file mode 100644 index 0000000000..d3ad8ae43f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.gw.go @@ -0,0 +1,107 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/identity.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/proto" + "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" +) + +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray + +func request_IdentityService_UserInfo_0(ctx context.Context, marshaler runtime.Marshaler, client IdentityServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UserInfoRequest + var metadata runtime.ServerMetadata + + msg, err := client.UserInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// RegisterIdentityServiceHandlerFromEndpoint is same as RegisterIdentityServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterIdentityServiceHandlerFromEndpoint(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 RegisterIdentityServiceHandler(ctx, mux, conn) +} + +// RegisterIdentityServiceHandler registers the http handlers for service IdentityService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterIdentityServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterIdentityServiceHandlerClient(ctx, mux, NewIdentityServiceClient(conn)) +} + +// RegisterIdentityServiceHandlerClient registers the http handlers for service IdentityService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IdentityServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IdentityServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "IdentityServiceClient" to call the correct interceptors. +func RegisterIdentityServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdentityServiceClient) error { + + mux.Handle("GET", pattern_IdentityService_UserInfo_0, func(w http.ResponseWriter, 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_IdentityService_UserInfo_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_IdentityService_UserInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_IdentityService_UserInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"me"}, "")) +) + +var ( + forward_IdentityService_UserInfo_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/identity.swagger.json new file mode 100644 index 0000000000..62cfc9e104 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/identity.swagger.json @@ -0,0 +1,142 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/identity.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/me": { + "get": { + "summary": "Retrieves user information about the currently logged in user.", + "operationId": "UserInfo", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceUserInfoResponse" + } + } + }, + "tags": [ + "IdentityService" + ] + } + } + }, + "definitions": { + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "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." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + }, + "serviceUserInfoResponse": { + "type": "object", + "properties": { + "subject": { + "type": "string", + "description": "Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed\nby the Client." + }, + "name": { + "type": "string", + "title": "Full name" + }, + "preferred_username": { + "type": "string", + "title": "Shorthand name by which the End-User wishes to be referred to" + }, + "given_name": { + "type": "string", + "title": "Given name(s) or first name(s)" + }, + "family_name": { + "type": "string", + "title": "Surname(s) or last name(s)" + }, + "email": { + "type": "string", + "title": "Preferred e-mail address" + }, + "picture": { + "type": "string", + "title": "Profile picture URL" + }, + "additional_claims": { + "$ref": "#/definitions/protobufStruct", + "title": "Additional claims" + } + }, + "description": "See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information." + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/openapi.go b/flyteidl/gen/pb-go/flyteidl/service/openapi.go new file mode 100644 index 0000000000..f6745a0f17 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/openapi.go @@ -0,0 +1,245 @@ +// Code generated by go-bindata. (@generated) DO NOT EDIT. + + //Package service generated by go-bindata.// sources: +// ../service/admin.swagger.json +package service + +import ( + "bytes" + "compress/gzip" + "fmt" + "io" + "io/ioutil" + "os" + "path/filepath" + "strings" + "time" +) + +func bindataRead(data []byte, name string) ([]byte, error) { + gz, err := gzip.NewReader(bytes.NewBuffer(data)) + if err != nil { + return nil, fmt.Errorf("read %q: %v", name, err) + } + + var buf bytes.Buffer + _, err = io.Copy(&buf, gz) + clErr := gz.Close() + + if err != nil { + return nil, fmt.Errorf("read %q: %v", name, err) + } + if clErr != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +type asset struct { + bytes []byte + info os.FileInfo +} + +type bindataFileInfo struct { + name string + size int64 + mode os.FileMode + modTime time.Time +} + +// Name return file name +func (fi bindataFileInfo) Name() string { + return fi.name +} + +// Size return file size +func (fi bindataFileInfo) Size() int64 { + return fi.size +} + +// Mode return file mode +func (fi bindataFileInfo) Mode() os.FileMode { + return fi.mode +} + +// ModTime return file modify time +func (fi bindataFileInfo) ModTime() time.Time { + return fi.modTime +} + +// IsDir return file whether a directory +func (fi bindataFileInfo) IsDir() bool { + return fi.mode&os.ModeDir != 0 +} + +// Sys return file is sys mode +func (fi bindataFileInfo) Sys() interface{} { + return nil +} + +var _adminSwaggerJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\xf9\x73\x2b\xb7\x95\x37\x8c\xff\x3e\x7f\x05\x9e\x3b\x4f\x95\xed\x44\x8b\x93\xcc\xe4\x9b\xd2\xd4\x53\xdf\x97\x96\x78\xaf\xf5\x58\x5b\xb4\xd8\xe3\x77\x98\xa2\xc1\x6e\x90\x44\xd4\x0d\x74\x00\xb4\x74\xe9\x54\xfe\xf7\xb7\x70\xb0\x34\x7a\x23\x9b\x8b\x24\xea\xba\x67\xaa\x62\x5d\x76\x37\xd6\x83\x83\xb3\x7e\xce\x3f\xff\x0d\xa1\x0f\xf2\x19\xcf\x66\x44\x7c\x38\x41\x1f\xfe\x78\xf4\xed\x87\x03\xfd\x1b\x65\x53\xfe\xe1\x04\xe9\xe7\x08\x7d\x50\x54\x25\x44\x3f\x9f\x26\x0b\x45\x68\x9c\x1c\x4b\x22\x9e\x68\x44\x8e\x71\x9c\x52\x76\x94\x09\xae\x38\x7c\x88\xd0\x87\x27\x22\x24\xe5\x4c\xbf\x6e\xff\x44\x8c\x2b\x24\x89\xfa\xf0\x6f\x08\xfd\x0b\x9a\x97\xd1\x9c\xa4\x44\x7e\x38\x41\xff\x63\x3e\x9a\x2b\x95\xb9\x06\xf4\xdf\x52\xbf\xfb\x37\x78\x37\xe2\x4c\xe6\xa5\x97\x71\x96\x25\x34\xc2\x8a\x72\x76\xfc\x77\xc9\x59\xf1\x6e\x26\x78\x9c\x47\x1d\xdf\xc5\x6a\x2e\x8b\x39\x1e\xe3\x8c\x1e\x3f\xfd\xe1\x18\x47\x8a\x3e\x91\x71\x82\x73\x16\xcd\xc7\x59\x82\x99\x3c\xfe\x27\x8d\xf5\x1c\xff\x4e\x22\xf5\x2f\xf8\x47\xcc\x53\x4c\x99\xf9\x9b\xe1\x94\xfc\xcb\xb7\x83\xd0\x87\x19\x51\xc1\x3f\xf5\x6c\xf3\x34\xc5\x62\xa1\x57\xe4\x23\x51\xd1\x1c\xa9\x39\x41\xa6\x1f\xe4\x96\x88\x4f\x11\x46\x27\x82\x4c\x4f\x7e\x11\x64\x3a\x76\x0b\x7d\x64\x16\xf8\x02\x46\x73\x93\x60\xf6\xcb\x91\x5d\x26\x68\x99\x67\x44\xc0\xdc\xce\x63\xdd\xfa\x27\xa2\x06\xd0\x6c\xf1\x7e\xf8\xb6\x20\x32\xe3\x4c\x12\x59\x1a\x1e\x42\x1f\xfe\xf8\xed\xb7\x95\x9f\x10\xfa\x10\x13\x19\x09\x9a\x29\xbb\x97\x03\x24\xf3\x28\x22\x52\x4e\xf3\x04\xb9\x96\xc2\xc1\x98\xa9\xea\x8d\xc5\xb5\xc6\x10\xfa\xf0\xbf\x05\x99\xea\x76\xfe\xfd\x38\x26\x53\xca\xa8\x6e\x57\x1a\xfa\x09\x46\x5b\xfa\xea\x5f\xff\xd6\xf4\xf7\xbf\x82\x19\x65\x58\xe0\x94\x28\x22\x8a\x1d\x37\xff\x57\x99\x8b\xde\x23\xdd\x79\xb1\x8f\xd5\x81\x57\x66\x7b\x85\x53\xa2\xf7\x44\xef\x94\xfd\x02\xfe\x16\x44\xf2\x5c\x44\x04\x4d\x48\xc2\xd9\x4c\x22\xc5\x6b\x6b\x40\xa1\x05\x4d\x5e\xd5\x27\x82\xfc\x23\xa7\x82\xe8\xbd\x52\x22\x27\x95\xa7\x6a\x91\xc1\x20\xa5\x12\x94\xcd\xc2\xa5\xf8\xd7\x41\xa7\xa9\x19\xaa\x5c\x63\x66\xe6\x83\xd6\x89\x8d\xd8\xc0\xbd\x12\x61\x86\x26\x04\xe9\xb3\x48\x63\x22\x48\x8c\xb0\x44\x18\xc9\x7c\x22\x89\x42\xcf\x54\xcd\x29\xd3\xff\xce\x48\x44\xa7\x34\x72\x6b\xb6\x3f\x6b\x03\x7f\x2e\x5f\x99\x07\x49\x84\x1e\xf8\x13\x8d\x49\x8c\x9e\x70\x92\x13\x34\xe5\xa2\xb4\x3c\x47\x23\x76\x3f\xd7\xeb\x90\x4e\x28\x83\x93\xa7\xd7\xd2\x51\xc8\xef\xdd\x72\xfd\x1e\xe9\xfe\x50\xce\xe8\x3f\x72\x92\x2c\x10\x8d\x09\x53\x74\x4a\x89\xac\xb6\xf6\x7b\x0e\xfd\xe3\x04\x1d\x22\xbd\xce\x44\x28\x58\x6f\xce\x14\xf9\xac\x24\x3a\x44\x09\x7d\x24\xe8\xab\x0b\x2a\x15\x1a\xdc\x9c\x7f\x75\x80\xbe\x32\xe7\x05\x01\x6f\xfa\xea\x15\x56\xd8\xff\xfd\xb7\xe0\xe8\x29\x3c\xab\x1e\xba\x0f\x03\x7d\x9a\xef\xcc\xd5\x50\xb4\xf0\xb7\x7f\x0b\xdb\xb1\xfb\xb5\x9c\xdf\x16\xcc\xd6\x72\xda\xae\xfc\x15\x96\xa9\xcc\x5a\xa5\xde\xa1\x6d\x39\xab\x6e\xb7\xca\x5a\xe5\xfb\xe2\xad\x7a\x0a\x2f\xcd\x5f\xb7\x61\xae\x58\x01\xd5\x63\xca\xcc\x21\xf1\x67\x46\x48\x7d\x4e\x1c\xf5\xee\x09\x4b\xd9\x86\xd7\x06\x33\x0b\xd8\xad\xe3\xa2\xc1\xaa\xec\xe1\xbc\x13\x9a\xd2\x55\xfb\x7b\xce\x62\x2d\x72\x59\x66\xc7\xf2\x74\x42\x84\x5e\x06\xc7\xf6\x60\xb6\x13\xcd\x06\x55\x2e\x18\x89\x3b\x4c\xf3\x1f\x39\x11\x8b\x25\xf3\x9c\xe2\x44\xb6\x4d\x94\x32\x45\xb4\x7c\x5b\x79\x3c\xe5\x22\xc5\xca\xbe\xf0\xe7\xff\x58\x77\x21\x14\x7f\x24\xab\xf6\xff\xdc\xec\x66\x84\x25\x90\x41\x9a\x27\x8a\x66\x09\x41\x19\x9e\x11\x69\x57\x24\x4f\x94\x3c\x80\xd7\xb4\x4c\x4d\xc4\xa1\xbf\x81\xa0\x07\x77\xf3\xe6\x12\x7e\x41\x53\x2f\x40\x32\xf2\x59\x41\x4b\x23\x06\x77\x2f\x2c\x51\x78\xa3\xbc\xc0\x52\x6e\x46\x33\x92\x0b\x35\x9e\x2c\x8e\x1e\x49\xad\xdf\x56\xca\xc1\x0c\x61\xa5\x04\x9d\xe4\x8a\xe8\x79\xeb\x36\xdc\xdd\x09\xec\xd1\x5c\xd0\x5d\x58\xc3\xdb\x4d\x38\xa6\x82\x44\x30\xb7\x75\x0e\x8c\xff\x4a\xcf\x5b\xeb\x2f\x0b\x33\xfb\x47\xb2\x00\x79\xa4\x61\x05\xfc\x96\x8f\xd8\x88\xa1\x43\x74\x36\xbc\x3b\x1d\x5e\x9d\x9d\x5f\x7d\x3a\x41\xdf\x2d\x50\x4c\xa6\x38\x4f\xd4\x01\x9a\x52\x92\xc4\x12\x61\x41\xa0\x49\x12\x6b\x99\x43\x0f\x86\xb0\x98\xb2\x19\xe2\x22\x26\xe2\xe5\x96\xb1\xf2\x94\xb0\x3c\xad\xdc\x2b\xf0\x7b\x31\xfa\xca\x17\x5a\xc4\xf0\x8f\x4a\x4f\xfe\x56\x5b\x60\x98\xb1\xee\x3b\x68\xed\xd5\x84\x9a\x68\x4e\x93\x58\x10\x76\xac\xb0\x7c\x1c\x93\xcf\x24\xca\xcd\x9d\xfc\xcf\xf2\x0f\x63\x2d\x99\xf2\x98\x94\x7f\x29\xfd\xa3\x10\x85\xd6\xfe\xd4\x6b\xa9\x6b\x7f\x09\x3a\x6d\xb7\xef\xe0\x17\x1a\x37\xbe\x0d\xbf\xac\x98\x83\x7b\x67\xc9\x60\xdd\x2b\xad\xa3\x72\x2f\x58\x89\xaf\xf1\x1d\x41\x94\x58\x8c\xb1\x52\x24\xcd\xd4\x9a\xfa\x3a\x46\x89\x96\x2b\x97\xc9\x91\x57\x3c\x26\x43\xd7\xdf\x2f\xc8\x88\xb3\x24\x46\x93\x85\xe5\x5a\x53\x22\x08\x8b\x48\x7b\x0b\xf7\x58\x3e\x16\x2d\xac\x12\x46\x4b\xfd\xc9\x8f\x5c\xe8\xcf\xdf\x83\x40\x5a\x1a\xf8\x6b\xc8\xa4\x9b\x9e\xb8\x2f\xce\x42\xb0\x21\xff\xe8\xed\x09\xdb\xaf\x64\x57\xeb\x03\x17\x48\x2e\xa4\x22\xe9\x4a\x3b\xc4\xfb\x59\x08\x7b\x41\xec\xeb\x80\x2b\x77\xd4\x6f\xe0\xd4\x97\x6f\xdc\xfe\x78\xaf\xb1\x64\xbb\xb2\x22\xee\xfb\x3c\x9d\x0f\x67\xf9\x54\xef\xdc\xf6\x05\x4e\x8c\x77\x31\xcd\x92\x2c\xb8\xeb\x41\xbe\x90\xb9\xa1\x75\xaf\xdc\x6a\x8f\x61\x00\x2b\x14\xcd\xb2\x1d\xda\x9f\x3f\xfd\x69\x68\xa1\x31\xe6\x38\x35\xa7\x32\x30\x56\xa1\x88\x0b\x23\x0b\xc6\xf6\xbc\x1b\x5d\x73\x70\x3f\xb8\x1b\xde\x9f\xa0\x01\x8a\xb1\xc2\xfa\x80\x0b\x92\x09\x22\x09\x53\xa0\xc7\xeb\xef\xd5\x02\xa5\x3c\x26\x89\xd1\x38\x3f\x6a\xc9\x17\x9d\x61\x85\x4f\xb1\xc2\x09\x9f\x1d\xa1\x01\xfc\x53\x7f\x4c\x25\xc2\x89\xe4\x08\x3b\xb2\x22\xb1\x6b\x02\xb3\xd8\xb1\x16\x8c\x22\x9e\x66\x34\xf1\x36\x78\x6f\x5c\xa1\x2c\xa6\x4f\x34\xce\x71\x82\xf8\x44\x73\x15\xad\x21\x0f\x9f\x08\x53\x39\x4e\x92\x05\xc2\x49\x82\x6c\xb7\xee\x05\x24\xe7\x3c\x4f\x62\xdd\xae\x1b\xa5\xa4\x29\x4d\xb0\xd0\x2a\xb8\x19\xed\xb5\x6d\x0b\xdd\xcf\x89\x1f\x2b\x8c\x4b\xaf\x66\x8a\x1f\x89\x44\x54\xa1\x8c\x4b\x49\x27\x49\x71\xe6\x1f\xce\x11\x8c\xfb\xf4\xe2\x1c\xf4\xf9\x48\x21\x6e\x78\xa8\xeb\xdc\xda\x6f\x5c\x8f\x29\x66\x8c\x40\xc7\x5c\xcd\x89\xb0\xdd\xdb\x97\xdf\x5a\x35\x7f\xb8\xba\xbb\x19\x9e\x9e\x7f\x3c\x1f\x9e\xd5\x75\xf3\xfb\xc1\xdd\x0f\xf5\x5f\x7f\xba\xbe\xfd\xe1\xe3\xc5\xf5\x4f\xf5\x27\x17\x83\x87\xab\xd3\xef\xc7\x37\x17\x83\xab\xfa\x43\x4b\x56\x9d\xd5\xfc\x70\x64\x6b\x9e\xad\xde\xa6\xf9\x52\x36\xcd\x83\x2f\xd7\xa8\x39\xa5\x09\xe8\xa0\x9d\x0d\x9a\xde\x86\x60\xbf\x44\x19\x96\xd2\x48\x46\x66\x04\x47\x23\x76\xc9\x85\x66\x60\x53\xae\x79\x84\x96\x9e\x94\xc8\x23\x45\xd9\xcc\x7f\x74\x82\x46\xf9\xb7\xdf\xfe\x29\xba\xa0\xec\x11\xfe\x22\xfb\xb8\x38\xbd\xc5\xb7\xb7\xf8\xfe\xb6\x2c\xbe\x5a\xf4\x39\x0e\x0d\xbd\xbb\x0d\x19\xd2\xc2\x05\xcb\x72\x05\xa2\x04\xcf\x95\xfe\x53\x77\x09\xe4\xb1\x24\x70\xa8\x9b\x41\xf1\x13\x51\xfe\x45\x2d\xda\xbc\x07\x3b\xe2\x4f\x5c\x3c\x4e\x13\xfe\xec\x07\xfe\x89\x28\x3d\xf6\x5b\xdb\x4b\x1f\x4a\xd4\x87\x12\xbd\x6d\x28\xd1\x5e\x19\xf3\x5e\x9e\xf9\x95\x2d\x7f\x86\x03\xb6\x78\xb2\x5a\x1d\x55\x2d\x7e\xa8\xc0\xcd\xf4\x2a\x5c\xb3\xec\xcc\x59\xc1\x39\x4b\x2f\xbf\x17\xee\x59\x1a\xf4\xeb\x73\xce\xdf\x84\xbf\xa5\x77\xa7\x6c\xb8\x50\xef\x92\xc1\x76\xbc\x3b\x5e\xcd\x19\xf2\xf2\x0c\xbf\x16\xdb\xb0\x4e\x30\xc3\x1a\xd1\x0b\x9d\xc3\x15\x56\xc4\x27\x34\x06\x24\x34\x45\x20\xd4\x43\x0e\x1a\x63\x0c\xb6\x0b\x2a\xd8\xf4\x6e\xea\x1e\x26\xf0\x89\xa8\xd2\xcb\xef\xe5\x6e\x2a\x0d\xfa\xf5\xef\xa6\xdf\x68\x74\x40\x1f\x0e\xf0\x82\x4b\xf7\xa5\xdf\x68\xfb\xeb\xf0\xff\x0d\x78\xf8\x7b\x97\xfe\x5a\x6b\xf4\x65\xf9\xf0\xbf\x54\xa7\xfd\xfb\xf4\xd2\xf7\x6e\xf9\xde\x2d\xff\x16\xfe\x93\xf7\xe7\x96\x7f\x59\xf5\xb4\x38\x5e\x63\x47\x0b\x56\x5f\x0b\x0e\xe5\xbf\x3a\x38\x69\xe0\x2f\xa7\xf2\xad\x1b\x34\xde\xaa\xc3\x9d\x15\xe3\x1b\xc2\x11\xfa\xc5\x12\xd2\x0a\x75\xae\xf6\xdd\x7b\x50\xe7\xea\x83\x7e\x79\x1d\xee\xcd\x98\xef\x0b\x5d\x9e\xef\x84\x0d\xac\x7f\x5b\x7e\xc1\x32\x79\x2f\x8b\xbf\x7c\x36\xfe\xde\x4c\xe8\xfd\xc8\xde\x6f\x70\xf1\x76\xbc\x75\x77\x9e\x93\xd5\x70\xcd\x06\xb7\xd3\xaa\x0c\xab\xea\xd7\x94\xc8\x3f\xbe\xcb\xfb\xf6\x35\x92\xac\xfa\x0b\xb7\xbf\x70\x6d\x53\xfd\x85\xfb\x05\x5f\xb8\x7b\x07\x7f\xb3\x37\x11\xa0\x7d\x10\x79\x0f\x8c\xd1\xc7\x90\xef\x70\x71\xfa\x18\xf2\x3e\x86\xfc\x37\x16\x43\xbe\x8d\xf6\xb4\x29\x16\xe5\x5b\xe8\x51\xbd\x1a\xd5\xab\x51\xe1\xef\xbd\x1a\xd5\xab\x51\xbd\x1a\xf5\x85\xa3\x88\xf6\x3a\x54\xf7\x85\xe8\x75\xa8\xce\x4b\xd5\xeb\x50\x4b\x16\xa7\xd7\xa1\x7a\x1d\xea\xb7\xa5\x43\x91\x27\xc2\x94\x84\x64\xb4\x50\xa3\xf8\x90\x71\xd9\xae\x09\x85\xdc\xa1\x41\x0b\x82\x36\xcb\x49\x61\x10\xb8\xf4\x0b\x9a\x63\x89\x78\x14\xe5\xa2\x72\x06\xaa\x7a\xd0\xa9\x20\x58\x11\x68\x41\x7f\xf8\x1e\xf4\x9f\xfa\x74\x5f\x2b\x06\x7f\xc2\xe3\x1a\xb5\x9b\x83\xd0\xf4\x64\xb9\x3c\xb2\xb3\xa9\xff\x23\x27\xdd\xd4\xbf\x17\x24\x6a\x85\xe5\xe3\x8e\x89\xba\x94\x6b\xb1\x11\x51\x43\x0b\xef\x85\xa8\xeb\xd3\xfd\xcd\x10\x75\xd3\xd4\xf7\x81\xa8\x9f\x6d\x1e\xff\x8e\x09\xbb\x06\x0f\xb0\x11\x71\xfb\x56\xde\x0b\x81\x37\x4f\xfb\x37\x43\xe4\x6d\xd3\x7f\x5b\x42\xf7\x29\x92\x9d\x49\xfc\x5e\xd0\xd9\x4c\xab\x19\xa0\xe1\x69\x52\x5c\x5d\x23\xa8\x48\x0a\x5c\x49\xd6\xfe\xd5\xf7\x40\xd2\x7e\xb0\x66\xec\xbf\x19\x5a\xae\xcd\x7b\x4f\x88\xf8\x58\x90\x88\x3f\x41\xbd\xb0\x6e\xc4\x7c\x4b\x80\x82\x81\x5f\x67\x82\x3c\x51\x9e\xcb\x64\x71\x28\x72\x86\x1c\xf3\x47\xbe\x79\x63\xad\x7e\xa6\x49\x82\x38\xd3\xfa\x97\xc2\x42\xb9\xc7\x5a\xff\x16\x3c\x85\x53\x91\x60\xa9\xd0\x23\xe3\xcf\x0c\x4d\x31\x4d\x72\x41\x50\xc6\x29\x53\x47\x23\x76\xce\xd0\xad\x19\x23\xe4\x0d\x1c\xa0\x5c\xea\xb3\x14\x61\xc6\xb8\x42\xd1\x1c\xb3\x19\x41\x98\x2d\x6c\x02\x6e\x41\x19\x88\x0b\x94\x67\x31\xd6\x8a\xef\x9c\x54\xa3\xf4\xfc\x18\xc1\x7c\x47\x25\xa2\x12\x91\xcf\x4a\x90\x94\x24\x0b\xdd\x87\xa6\x7d\xc5\x91\x5d\x1f\x33\x54\x9b\xce\x47\x84\xe0\x42\x42\xc6\xc1\x64\xf1\x2b\x66\x8a\x32\x82\x40\x51\x92\xc6\x34\x77\x88\x2e\xb8\x04\xb3\xcd\x0f\x7f\x91\x28\x4a\x72\xa9\x88\x38\x40\x93\x7c\x26\xb5\xa6\x98\x25\x58\x4d\xb9\x48\xf5\x08\x29\x93\x0a\x4f\x68\x42\xd5\xe2\x00\xa5\x38\x9a\x9b\xb6\x60\x0d\xe4\xc1\x88\xc5\xfc\x99\x49\x25\x08\xf6\xbd\xbb\x87\xe8\xeb\xf0\x99\x21\x00\xf9\xcd\x01\xa4\x1d\xd2\x54\xab\xbb\xc1\xf0\x8b\x1d\x37\x7b\xa2\x1b\x21\x31\x9a\x90\x08\xe7\xd2\x7a\x18\x94\x58\x20\xf2\x79\x8e\x73\x09\x7b\xa7\xa7\x67\x73\x36\x22\x9e\x66\x09\x51\x04\xd1\x29\x52\x82\x92\x18\xe1\x19\xa6\x7a\xe9\xee\xc8\x12\x10\x74\x4f\xf4\x76\x03\x2d\xd5\xff\x02\xea\x77\xca\x05\x41\x31\x51\x98\x26\x4b\xbd\x4e\xf6\xdb\x9e\xcb\xbd\x27\x2e\x57\xde\xf0\xbd\x60\x73\x06\xc4\x7f\x07\x97\x36\xb3\xa6\xfb\x08\x27\x5b\xde\xdf\xb7\x76\x50\x3d\x6d\xbf\x2f\xda\x36\xbb\xb6\x3f\xc4\xfd\x6a\x31\xd8\xdd\x2b\x5a\x14\xd5\x2c\xde\x15\x4d\xbf\x46\x58\x40\xef\x70\xee\x1d\xce\xad\x2b\xf3\x3e\x1d\xce\x7b\xe3\x31\xea\x7d\xce\x2f\xe4\x73\xa6\xb2\x77\x3a\xf7\x4e\xe7\xae\x0b\xd4\x3b\x9d\x7b\xa7\xf3\xfb\x75\x3a\xbf\x24\xee\xf3\x4e\xd1\x9d\xdf\x95\x68\xdd\x8b\xd5\xbd\x58\xdd\x43\x38\xfb\xa9\xed\x8a\x85\xb9\xaf\x3f\xc4\x24\x21\x8a\xb4\xdb\xb3\x88\x48\xb5\xb6\x60\xae\x67\xca\xb4\x1c\x37\x13\x44\xca\x6d\x19\x92\x6f\xf8\x7d\xb2\x25\x3f\xfc\x1e\x6a\xbe\xe7\x53\x3d\x9f\xda\x64\x6a\xfb\x63\x9a\x0d\x0e\xf3\x6b\xd9\x66\x3d\xff\xcd\xf2\x76\xe9\xef\xc1\xb8\x21\x0b\xbf\xa8\xa1\x70\x2d\xb5\x2b\xee\x0f\xb7\xa5\xf3\x2d\xf9\xb1\xe9\xeb\x7d\x32\x63\x33\xf6\x9e\x13\xf7\x9c\xb8\xe7\xc4\xef\x9b\x13\xbb\x93\xfc\xa6\x2e\x32\xe3\xa7\x1b\x67\x09\x66\x63\x1a\xcb\xe3\x7f\x16\xba\xfc\x4b\x79\xc8\xf4\x81\x8a\x4d\x8a\xa9\x4f\xe9\x14\xbf\xe8\x4f\x92\xc2\x60\xee\x31\x33\x57\x38\xd1\x8c\x8d\xfd\x26\xc1\xec\x3c\x7e\x17\x7e\xb4\xc6\xd9\xbf\x86\x4f\x6d\x1b\x3e\x8e\x15\x78\x3a\x30\x65\xc6\x84\x57\xe4\xd5\x96\x0c\x94\xfb\x71\xc2\xb7\xe1\xea\xc1\xc4\x02\xc6\xee\xf8\x75\xb0\x28\xfb\x37\xed\xde\xaf\xd3\xe7\x12\xf6\x9e\x8b\x8e\x13\xee\x3d\x17\xfb\xeb\xb9\x78\x2b\x77\xe4\x2b\x1f\xcf\xd7\x12\xeb\xba\x07\xe1\x9b\x68\x35\x08\x6a\xcd\xb3\x84\xe3\x78\x99\x2b\xa6\x10\xbc\x42\x70\x94\x95\x91\xf8\xc5\x67\xef\x41\x58\x2b\x46\xfb\x1b\x8b\xe4\xab\x4f\x7c\x5f\xb4\x94\x57\x0c\xe5\x6b\x26\xf1\x35\x54\x92\xf7\x81\x9f\x5a\x8c\xb7\x0f\xed\xeb\x2d\x4a\x6f\x6f\x51\xea\x43\xfb\x7a\x15\x70\xcf\x54\xc0\x3e\xb4\xaf\x0f\xed\xeb\x15\xe4\xe5\xd3\xee\x15\xe4\x2f\x22\xb4\xaf\x93\xa8\xfd\x82\xd8\x9b\xdb\x0b\xdd\xbd\xcc\xed\xde\xeb\x65\xee\x5e\xe6\xfe\x42\x65\xee\xfd\x58\xe1\x5e\xe0\xee\x05\xee\x5e\xe0\xee\x05\xee\x5e\xe0\xde\xf9\x32\xf6\x02\xf7\x6b\x16\xe8\x6c\x96\xba\x57\x24\xd9\xbc\x57\x5f\x4e\x2f\x6e\xf7\xe2\xf6\x7e\x8b\xdb\x7b\x33\xa1\xf7\x53\xe6\xb1\xdb\x7c\xfa\x22\xe5\x7d\x91\xf2\xbe\x48\xf9\x8b\x17\x29\x77\x5f\x77\xc8\xf8\xb0\x87\x4b\x61\x95\x4b\x03\xf8\x28\xc8\x8c\x4a\x05\xec\xbf\x8b\xbc\xb2\x3a\xd1\xe3\xbd\xca\x29\x7d\xaa\x87\x7f\xda\x4b\x2d\xbd\xd4\xf2\x1b\x95\x5a\xf6\x28\x16\x6c\x2f\x32\x56\x52\xac\xa2\x39\x9e\x24\x64\xec\x8d\x3e\xb2\xab\x1e\x7c\x41\xa5\x92\x28\xca\xa5\xe2\x69\xfb\xe5\x72\xe9\x7a\x18\xf8\x0e\x4e\x39\x9b\xd2\x59\x6e\xee\x16\x03\xce\x19\x9c\xe8\x42\x12\x5c\x64\x64\x95\xa7\xaa\xa1\xf5\x77\x71\x2d\x35\x0f\xfd\xb5\x6e\xa7\x75\x04\xf7\xc2\xc8\x67\xa5\x6e\x2d\x6b\x8d\x6f\x87\x77\xd7\x0f\xb7\xa7\xc3\x13\x34\xc8\xb2\x84\x1a\xbb\xbb\x21\x05\xfa\xab\x9e\x14\x52\x58\x3e\x16\x7b\x29\x0c\x99\x1b\x0c\x5b\x30\xf4\x6b\xd9\x18\x1d\xa2\xd3\x8b\x87\xbb\xfb\xe1\x6d\x4b\x83\x96\x50\x20\x6f\x95\xa4\x59\x82\x15\x89\xd1\x63\x3e\x21\x82\x11\x2d\xed\x58\xa4\xdb\xc2\xfc\x6f\x1a\x1d\xfe\xf7\xf0\xf4\xe1\xfe\xfc\xfa\x6a\xfc\xd7\x87\xe1\xc3\xf0\x04\x39\x8a\xd3\xcd\xea\x71\xe9\x51\xc4\x0b\x86\x53\xad\x81\xe8\x1f\x8a\x4c\xd9\x7f\xe4\x24\x27\x08\x4b\x49\x67\x2c\x25\x80\x08\x5c\x6a\xd1\x0d\xf8\x62\xf0\xdd\xf0\xa2\xdc\xf2\x9c\x84\xf0\xbb\x28\xc1\x13\x92\x58\x7f\x04\x98\xd8\x35\xa1\x07\x50\xc5\xc6\x51\x91\x9b\x55\xfd\xeb\xc3\xe0\xe2\xfc\xfe\xe7\xf1\xf5\xc7\xf1\xdd\xf0\xf6\xc7\xf3\xd3\xe1\xd8\x4a\x95\xa7\x03\xdd\x6f\xa9\x27\x2b\x7c\xa2\x7f\xe4\x38\xd1\xda\x09\x9f\x3a\x3c\x5e\xf4\x3c\x27\x0c\xe5\x0c\x28\xce\xa8\x3c\x5a\x0f\xf2\x9d\xea\x53\x66\x66\x74\x73\xf1\xf0\xe9\xfc\x6a\x7c\xfd\xe3\xf0\xf6\xf6\xfc\x6c\x78\x82\xee\x48\x02\x4a\x81\x5b\x74\xd8\xc5\x2c\xc9\x67\x94\x21\x9a\x66\x09\xd1\xab\x81\x6d\x36\xf1\x1c\x3f\x51\x2e\xec\xd1\x9d\xd1\x27\xc2\xcc\x3a\xc2\x99\x85\xf6\x9d\xf0\x3d\x0e\x96\xee\xfa\xea\xe3\xf9\xa7\x13\x34\x88\x63\x3f\x07\x09\x6d\x94\x28\xc7\xc1\x3a\x1f\x96\x87\xad\x99\x03\x74\x6f\x88\x88\x3f\x11\x21\x68\x4c\x2a\x74\x34\xb8\xbb\x3b\xff\x74\x75\x39\xbc\xba\x87\x15\x53\x82\x27\x12\xcd\xf9\x33\x98\xb2\x61\x86\x60\xe1\x7e\xc2\x34\x81\xce\xdc\x66\x71\x86\x9e\xe7\x14\xdc\x1f\x00\xcc\xec\x7b\x36\xfa\x99\xc8\xd9\x9b\x5b\x67\x4b\x07\xaf\xae\xb6\x54\x4f\x52\xfd\x8d\xca\xb1\x58\xf6\x42\x89\xca\xeb\x2f\xae\xa2\xd6\xfa\x17\x15\x72\x6b\x57\xd6\x6a\xf4\xd2\x3e\xd3\x62\xaf\x3b\xeb\x6a\xe5\x35\x7c\xbd\x6b\x96\x28\x41\x23\xf9\xb2\x50\x4f\x22\x67\x8a\xa6\x04\xd9\xce\xec\xe1\xdc\x21\xfc\xd3\xa5\x69\xf8\x3d\x5c\xb0\xb5\x52\x0e\x9f\x88\xb2\xc3\xef\x55\xc0\x5e\x05\xdc\x0f\x15\xf0\xbd\x65\xfb\xc7\x24\xab\x77\x58\x99\x18\xbc\x63\xbc\x5e\xb5\x20\x0d\x63\x4f\xb4\x16\xd5\x84\x3c\x91\x04\xa4\x3c\x25\xb0\x56\x1a\xad\xec\x32\x11\x04\x3f\x6a\x81\x2f\xe6\xcf\xa1\xe4\xd2\x80\xdc\x8f\x76\x73\x0b\x77\x09\xe2\xf8\xd3\x1f\x5f\xef\xb2\xd0\xcb\x1d\xbf\x46\x09\xef\x5b\x08\x92\x59\x8a\x11\x18\x24\xd8\xff\x62\x2d\xc1\x2b\x6e\x8b\xe0\x8b\xf7\x70\x51\x84\xc3\xdd\x23\xad\xeb\x36\x54\x82\x1d\x0b\x4d\x89\xc2\x31\x56\x58\x1f\x9a\x19\x51\x47\xe8\x9a\xc1\xb3\x7b\x2c\x1f\x0f\x90\xbb\xf2\x34\x5b\x29\xac\x0c\xaf\x90\x5a\xff\x4e\x0c\xf8\xeb\xf3\xf1\xfe\xfa\xee\xaf\xef\xe6\x95\xe9\xc3\x3c\x5b\x56\x78\x57\x17\xe3\x5a\x3e\xaf\xdd\xdd\x5f\xa6\xc5\xf7\x7b\x85\xbd\xae\x93\x6b\xa7\x17\x9a\xa9\x9c\xd5\xdf\x56\xe6\xff\xfa\xdb\xaa\xbf\xad\xfa\xdb\x6a\x0f\x56\xf8\xcd\x1d\x86\x0d\xdc\xfd\x4d\x3d\x86\xab\xb4\xd3\x8d\x21\xef\x0a\x6d\x74\x1d\xd0\xbb\x5f\xba\x62\xdb\x15\xdf\xd0\xf7\xe1\x23\x0c\x26\xf9\x1a\x69\x6d\x3b\xbd\xcc\x4d\xbe\x48\xaf\x9f\xbe\xe0\x8d\xdf\x23\x10\xee\x14\x81\x70\x3f\xe6\xfa\x22\x29\x70\x6f\x63\x31\x7d\xfb\xb4\xb7\x1e\x6a\xb0\x4f\xec\xea\x13\xbb\xe0\xf7\x1e\x6a\x70\x77\xd4\xfa\xb2\xd2\x35\x8f\xc9\xb8\x12\x25\xe0\xff\x39\xae\x7a\x7e\x4a\x4f\x42\x37\x50\xe9\x41\x91\xe9\x06\xad\xd3\x78\x97\x45\xa4\xae\x78\x4c\x3a\x47\x12\x94\x5e\xde\x73\x19\xdc\xcd\xd3\xc8\xe2\xa5\x81\xbf\xb0\x24\xde\xb2\xe5\x5f\xa2\x61\xa7\x81\x80\x7b\x2b\xcf\xca\x85\xfa\x52\xe3\x0b\x0a\x0e\xf5\x8e\x3c\x15\xdd\xd8\xb8\x8b\x69\x1c\xb7\x30\xf3\xe6\xe7\x9e\xa5\x37\x3f\x7e\x19\xcc\xa0\xee\x1c\x1d\xcc\x2a\xe1\xdb\xef\xc3\xae\x12\x8e\xf8\x35\x2c\x2b\x4b\xf7\xfe\x8b\xe3\xea\xcb\x28\xb9\xe7\xed\x1d\x97\xeb\x4b\xe5\xf0\x3d\xc4\xcf\x32\x5b\x47\x8f\xa1\xd3\x9b\x5a\xf6\x67\xc2\xbd\xa9\xe5\x5d\x9b\x5a\x8c\x8b\x76\x9c\x61\x41\x98\x6a\x10\xa9\xab\xd7\x09\xbc\x1e\x62\x2e\x38\xa9\x03\x1a\x40\x5a\xa2\x45\xf6\x42\xf6\x57\xd5\x97\x65\x7b\xb1\x82\x41\x90\x09\x79\xfc\xcf\xe2\x6f\x2f\xac\x97\x2a\x40\x2c\x89\x4e\x32\x58\xff\x52\xdf\xd1\xb9\x0d\x54\xda\x3e\x57\x12\xab\x92\x28\x08\x41\xd4\x2b\xe3\x99\x6e\xcc\xdb\xef\x2b\x45\xb2\x36\xe8\xd7\x8d\x6d\xaa\x6f\x7c\xb7\x03\xe4\x76\x86\x9a\x74\xbf\x20\xa7\x4c\x4b\xa3\x7c\x5a\x5c\x0c\x12\x3d\xd3\x24\x01\x44\x11\xc8\x78\x6c\xbb\x01\x7e\x73\x11\x0f\xad\x3b\xff\xa6\x71\x0f\x4d\xdc\xa1\x89\x25\x74\xb1\xa7\xee\x2a\x67\xda\x11\x1b\xa4\xb3\x82\x36\xb4\xc2\x00\xfb\x65\x70\x82\x4f\x44\xbd\x16\x1b\xd8\xf4\xec\x2f\x3d\xf7\x82\x4c\x89\x20\x2c\x22\x7b\xe8\x6d\x5f\x27\x0c\xe4\x27\x33\x49\x1b\x03\xe2\xa1\x04\xc2\xa9\x2a\x6e\xf5\xb4\x92\xa8\xdb\x67\x92\xf7\x99\xe4\x7d\x26\x79\xf5\xa8\xf7\x99\xe4\x7d\x26\x79\x63\x0e\x44\x4c\x12\xa2\x48\xab\x54\x71\x06\x8f\xdf\x4a\xaa\x30\xbd\x7f\x19\x82\x85\x99\x4b\x2f\x5b\xfc\x66\x34\x0b\xb7\xe1\x7b\xa1\x59\x98\xb3\xb6\xca\xfc\x50\xfa\xb1\x21\xc4\xfa\xd5\x4d\x12\x9b\x30\x8d\x92\x5d\xe2\x0c\x5e\x7f\x97\xac\xa3\x3a\xf4\xde\x46\x81\x82\xad\x7b\x39\x4e\x52\x3b\x02\xdd\x26\x6e\x3d\x86\xef\x77\xde\xfb\xc2\x41\xdb\xe8\x7e\x5f\xf9\xe8\xc6\x49\x29\xfb\x62\xb1\xf9\x82\x78\x64\x6f\xbd\x79\xe3\x5c\x89\x1a\x33\x7c\xb7\xd3\xed\x8d\x55\xbd\xb1\xaa\x37\x56\xf5\xc6\xaa\xde\x58\x85\x7a\x63\xd5\xda\xc6\xaa\x2f\x48\xa6\xea\x0d\x57\xbd\x58\xb5\xbb\xe9\xee\xab\x96\xb9\x4f\xd6\xba\xce\x28\xe9\x45\x0e\xd5\xca\xc8\x7b\x3b\xed\x5f\x56\x84\xdc\xdf\xb8\x11\xbc\x1f\x7e\x25\x5f\x9a\x25\x6d\x13\x58\xec\x76\xf4\x8b\x8d\x2b\xee\x4b\x87\x36\xae\x55\x1f\xf6\xbc\x64\x71\xfa\xb0\xe7\x3e\xec\x79\xef\xc2\x9e\x77\xae\xac\x64\x5c\x2e\x03\x24\x32\xa5\xb3\x96\xe6\x3f\xbb\x3b\x1b\x12\x8d\x80\x14\x0c\xca\x71\x4c\xb2\x84\x2f\xc0\x92\xb2\xe4\x3a\x77\x5d\xdc\xd4\x24\xea\x7d\xbf\xd1\xdd\xc8\x5f\x4b\xe7\xd8\x17\x99\xb4\x98\xf7\x5e\x48\xa1\xc7\xff\xac\xa4\xf3\x77\xc2\xcb\x64\x88\x7c\xa6\x12\x6e\xa5\xd5\x84\x3d\x62\xcd\x4f\x82\xd2\x85\xf6\x1e\x9c\xe4\x2a\xc8\xdd\x93\x5a\xb0\xca\x88\x50\x8b\xe0\x4d\x92\x66\x6a\xf1\x5f\x23\x46\x95\xf7\xb0\xd1\x19\xe3\xc2\x70\x35\xfd\xf1\x1c\xb3\x38\x21\x42\x5f\xaa\xae\x9d\x08\x33\xc6\x15\x88\x1b\x30\x83\x18\x3d\x51\x6c\x84\x93\xc1\xcd\x79\x67\x3f\xf3\x3b\x3a\x5d\xaf\x5d\xac\x6e\xc5\x5d\xf7\x29\xe1\x13\xa8\x60\x99\x97\x75\x7a\xdd\x40\xef\x19\x2d\xed\xdc\x5b\x31\x04\x85\xe5\x63\x15\x38\xa4\x9c\x85\x3e\x5e\x0a\x25\xb2\xe2\xdd\x12\xc6\xfc\xf2\x57\x2b\x70\x23\xe5\x67\x16\x80\x04\x1e\xc3\x90\xab\xe3\x70\x3f\x86\x1d\xba\xdf\x8a\x96\xdd\x2f\xae\x74\x37\xfc\x28\x88\x12\x8b\x31\x56\x4a\x33\x99\x5d\x62\x9c\xdc\x63\xf9\xd8\x19\xe3\xa4\xf4\xf2\x9e\xb3\x9c\x12\xc6\x49\x79\xe0\x2f\xce\x72\x3a\x52\xe7\x0a\xce\xf4\xfe\xf2\xe3\xbb\x9e\xb5\x35\x26\xfe\x5b\xc9\x95\xef\xc6\x7b\x56\x99\x69\xdf\x63\xde\xfc\x32\x66\xba\x37\x23\xac\xf0\xf3\x2f\xf1\xe4\x96\x6f\xa7\xfe\x88\x2e\x5b\xa3\x2f\xae\x10\x6e\x45\xe8\x58\x31\xb7\x77\x52\x10\xb7\x2a\x37\xed\x7a\x54\x2f\x63\xe6\x0e\x76\x63\x9d\x18\xa0\xf3\x32\x5a\xb9\x3f\x43\x2e\x2a\xa8\x28\x3d\x3b\x87\x44\x6b\x2a\xc3\x84\xf8\x88\x0b\x23\x79\xc5\xf6\xcc\x1a\xb3\x9d\x01\xf3\x3d\x41\x03\x14\xdb\xda\xfc\x82\x64\x82\x48\xc2\x94\x51\xb5\x4d\xbd\x2b\x57\xde\x9f\x32\x6b\x21\x3a\xc3\x0a\x9f\x62\x85\x13\x3e\x3b\x42\x03\x5f\xd8\x9f\x4a\x84\x13\xc9\x11\x76\x84\x43\x62\xd7\x04\x66\xb1\x63\x0f\x18\x45\x3c\xcd\x68\xe2\x91\xda\xbd\x15\x9f\xb2\x98\x3e\xd1\x38\xc7\x89\x47\xc6\x1e\xb1\xe1\x13\x61\x2a\x07\x15\x0e\x27\x09\xb2\xdd\xba\x17\x02\xfd\xdc\x8d\x52\xd2\x94\x26\x58\x20\xc5\xed\x68\xaf\x6d\x5b\xe8\x7e\x4e\xfc\x58\x1d\x0a\x38\x4a\xf1\x23\x91\x88\x2a\x94\x71\x29\xe9\x24\x29\x8e\xf1\xc3\x39\x82\x71\x9f\x5e\x9c\x83\x69\x34\x52\x88\x1b\x3e\xe8\x3a\xb7\x7e\x02\xd7\x63\x8a\x19\x23\xd0\x31\x57\x73\x22\x6c\xf7\xf6\xe5\xb7\xb6\x72\xbe\x35\x46\x74\xbb\xc5\x34\x1c\xd9\xdb\x29\x9d\x9d\x35\xce\xae\xea\x66\x37\x5d\xb3\x5d\xd1\x7c\x01\x2f\x6d\x77\x6d\xf0\x82\xca\xb2\x3a\xf8\x2e\x5c\xb6\xa5\x11\xbf\x06\x3e\xda\x6f\x54\x11\xec\xb5\xc0\x17\x59\xb7\x2f\x55\x05\xdc\x73\xfd\xaf\x47\x76\xeb\x51\xec\xfb\x00\x8c\x1d\x2e\x4e\x1f\x80\xd1\x07\x60\x7c\xb1\x01\x18\xed\xda\x04\x8d\xb7\x4e\xd7\x5b\xb3\x82\x94\x37\x0a\x88\x5f\x40\x94\xc2\xf2\xb1\x6b\x4d\x29\x2d\x2a\x9f\xc7\xef\x42\xaa\x6f\x9c\xf0\x6b\x48\xf7\x7d\x9d\xa2\x9d\xd6\x29\xda\xbb\x69\xf7\x82\x5f\x2f\xf8\xf5\xb2\x4d\xc7\x09\xf7\xb2\xcd\xfe\xca\x36\x6f\xa5\xb0\x7c\x49\x10\xba\x5a\x78\x2a\x65\xc6\x2c\x0d\xb0\x35\x70\x34\xe0\x1e\xc8\xb3\x84\xe3\x78\x55\x10\xce\x2f\xa8\x90\x6b\x96\x88\x66\xa6\x5d\xfd\xc1\x9e\x4b\x66\xb5\xf8\x1b\x33\xf2\xdf\x42\x4c\x6d\xeb\xd4\xdf\x34\xac\x16\xe8\x17\x82\xc9\x4a\x41\x69\x2f\xa5\x85\x54\x69\xba\x93\xc2\x21\xff\xb8\xe7\x54\xed\xb7\xf4\x35\xd4\x8b\x2f\xd8\x41\xd0\x3b\x01\x7e\x9b\x85\xcf\xf7\x46\x6a\xed\x55\xbb\x3e\xab\xb2\x37\xea\xf7\x8a\x6f\xaf\xf8\xee\x7c\x19\xf7\x49\xf1\x7d\x43\x89\xda\xa4\x89\xbc\x48\x19\xc3\xcd\x64\xeb\x5e\xb4\xee\x45\xeb\x5e\xb4\xfe\x62\x45\xeb\xfd\x58\xe1\x5e\xae\xee\xe5\xea\x5e\xae\xee\xe5\xea\x5e\xae\xde\xf9\x32\xf6\x72\x75\x45\xae\x86\xbf\x5c\x9a\xf4\xba\x42\x76\x67\xe1\xba\x43\x4e\xf4\x7b\x91\xac\x7b\xa9\xba\x97\xaa\xf7\x5b\xaa\xde\x9b\x09\x7d\x79\x89\x90\x7d\x2a\x61\x9f\x4a\xd8\xa7\x12\xbe\x45\x2a\xa1\xe3\x25\xcb\x24\x94\xba\x60\xf1\x63\x8d\x03\xed\xad\x6c\x51\x8c\x76\xd3\xf0\x8e\x5d\x2d\xb5\x03\x9a\xdf\xa4\xd2\x54\xe9\x37\xd7\xd0\x1e\xd5\x9f\x3a\x70\xd2\x82\x66\x14\x6e\x7c\xab\x11\xc2\x7e\xb2\x6f\xbe\x2f\x30\xf0\xfa\xa8\xfb\xfa\x53\x28\xd8\xb5\xbe\xfe\xd4\x0b\xce\xdb\x1d\xae\x15\x33\x77\x34\x6a\x6c\xbc\xef\x74\xda\x6f\x0e\x2e\xd7\x7e\xd2\xdf\x34\x5c\xae\xf1\x26\xa9\x25\xef\x1c\xff\xb3\xf1\xa2\x78\x83\xb2\x5b\x6b\xdf\x0e\x9f\x88\xfa\x52\xae\x86\xbe\xec\x56\x5f\x1f\x62\x47\xd3\xdd\x88\xf5\xbf\xdb\xd9\xf6\x45\xc6\xfa\x22\x63\x7d\x91\xb1\xbe\xc8\x58\x5f\x64\x0c\xfd\xc6\x8b\x8c\xad\x2d\x3e\x9a\x71\x7c\x29\x12\x64\x5f\x64\xac\x17\x22\x77\x37\xdd\xdf\x96\x10\xb9\x87\x16\x84\xbd\xa8\xa6\xe6\x2d\x08\x6f\x8e\xfb\xe1\x46\xd2\x15\xfb\xc3\x2d\x68\x8f\xff\x61\xff\xaf\xc7\xff\xe8\xf1\x3f\x5a\x66\xdd\x07\xb3\xf6\xf8\x1f\xa8\x0f\xd7\xec\xc3\x35\xf7\x39\x5c\xb3\xc3\x36\xf6\xf8\x1f\x1d\xc5\xb9\x17\xc2\x00\x71\x32\xd7\x5a\x38\x20\x3f\xd5\x15\x8d\xbd\x95\xd2\xdc\x58\x7f\x3b\x38\x20\x8d\xd3\xde\x0b\x95\xe4\x15\x71\x40\x9a\xe8\xba\xb3\x02\xf2\x3e\xf0\x40\xdc\x68\xfb\xc4\xc5\x3e\xc4\x7a\xff\x43\xac\xf7\x2e\x71\x71\x6f\x24\xd9\x5e\xdd\xeb\x73\x17\xfb\xdc\xc5\x5e\x19\xee\x95\xe1\x9d\x2f\xe3\x3e\x29\xc3\x6f\x2c\x61\xbf\x20\x2e\xc8\x76\xb2\x76\x2f\x6a\x9b\xf7\x7a\x51\xbb\x17\xb5\xbf\x50\x51\x7b\x3f\x56\xb8\x97\xb3\x7b\x39\xbb\x97\xb3\x7b\x39\xbb\x97\xb3\x77\xbe\x8c\xbd\x9c\xfd\x6a\x38\x21\x4d\xc2\x76\xc7\x7c\x9b\xf7\x24\x69\xf7\x52\x76\x2f\x65\xef\xb7\x94\xbd\x37\x13\xea\x31\x43\x7a\xcc\x90\x1e\x33\xa4\xc7\x0c\xd9\x48\xbe\xf9\x37\x7b\x2c\x3f\x04\x37\xb1\xbf\xb2\x3f\x7c\x97\xf0\xc9\xfd\x22\x23\xfa\xbf\x67\x34\x25\x4c\x82\x34\x4a\xd5\x22\x94\x67\x5a\x56\xbe\xbe\xe6\x1f\xee\xce\xaf\x3e\x5d\x84\xd9\x34\x1f\x2e\x1f\x2e\xee\xcf\x6f\x06\xb7\x7e\x5d\xfc\xac\xc2\xb5\xb0\xdf\x95\x44\x32\x4b\xf2\xb7\x44\xeb\x9e\x70\x6a\xee\x14\x56\xb9\xdc\x6c\x64\xb7\xc3\xbb\xe1\xed\x8f\x90\x0d\x34\x3e\x3b\xbf\x1b\x7c\x77\x51\x22\x88\xd2\xf3\xc1\xe9\x5f\x1f\xce\x6f\xdb\x9f\x0f\xff\xfb\xfc\xee\xfe\xae\xed\xe9\xed\xf0\x62\x38\xb8\x6b\xff\xfa\xe3\xe0\xfc\xe2\xe1\x76\xb8\x74\x3d\x96\x8e\x76\xb9\x12\x22\x61\x91\x20\xce\x1f\x45\x96\x6b\x88\x62\x0d\x91\x17\x1f\x1d\x3b\x6c\xea\xeb\x04\x3d\x58\x9d\x9e\xda\xc6\x0d\x83\x0d\x1a\x32\xca\x48\x4c\x25\x9e\x24\x24\xae\xb5\xe4\xd6\xb0\xad\x25\x5c\x1a\xd4\xb3\xd6\x9e\xbd\xc8\xa9\x79\x5e\x64\x78\x01\x82\x1c\x45\x45\x58\xdc\xd0\x87\xd9\x87\xd6\x1e\x98\xe6\x5d\xf4\x89\x94\x7a\x8a\x72\x21\x08\x53\xc9\x02\x91\xcf\x54\x2a\x59\x6b\xd4\x6d\x5f\x5b\xb3\xf6\x4e\xf5\x0d\xce\xb1\x44\x13\x42\x58\x79\xfc\x82\x24\x04\xcb\x86\x31\xdb\xdd\xef\xb6\x2c\x7e\xaf\xac\x35\xc6\x5c\x46\x53\x4c\x93\x5c\x90\xca\x69\xe1\x69\x86\x05\x95\x9c\x0d\x3f\xeb\xbb\x4c\x1f\xe4\x6b\xf8\x9c\x8b\xcd\x4e\xcc\xf0\xaf\x21\x05\x5f\x95\xff\xf9\xe9\xbe\xfc\xaf\xd2\x99\xbf\xb8\x2f\xff\x6b\x39\xad\x07\x0d\x57\x29\xfb\x10\x7d\xba\x3f\x41\x9f\x20\xc4\x49\xa0\xfb\x39\x36\x14\x7b\x71\x7f\x82\x2e\x88\x94\xf0\x4b\xf1\xb1\xa2\x2a\x81\xb9\x7d\x47\x19\x16\x0b\xe4\xa6\x6f\x12\x5d\x71\x34\x47\xc4\x2f\x4d\x75\xf1\xd8\xdf\x73\x06\xaa\x7b\xb1\x7a\x17\x7c\x46\x23\x9c\x6c\xb7\x88\x83\xab\x12\x1f\xb8\xbe\x5d\xba\x14\xe1\xdb\xf5\xb5\x18\x5c\x9d\x41\x12\xa9\x1b\x6a\xc3\xcc\xaf\x88\xd4\x44\x12\x71\x16\x5b\x2f\x8d\xbe\xfd\x17\x81\x50\xff\x77\x0e\x89\xb8\xb9\xa4\x6c\xa6\x5b\x44\xc7\xe8\xfa\x76\xc4\xae\x45\x6c\x0c\xa1\x44\x4b\xc3\x86\xe6\xa8\x44\x8c\x2b\x44\xd3\x8c\x0b\x85\x99\xd2\x8a\x00\x88\x01\x76\x45\x0c\x07\x38\xe5\x69\x9a\x2b\xac\x0f\x5a\x6d\x51\x99\x31\x87\xdc\x11\x75\x1e\x83\x6b\xa5\x61\x0d\x8d\x9c\x50\xcc\x25\x13\xba\x7d\x2d\xa3\x94\x75\x68\x1a\xd7\x54\x59\xd7\x04\x16\x02\x97\xa5\x89\x0f\x54\x91\xb4\xfa\x7e\xc7\x20\xcf\x7f\x35\x1a\x08\x4e\x4d\x52\x05\x11\x03\x11\xcd\xa9\x22\x91\xd2\x47\x70\x23\x9a\x78\xb8\xfa\xe1\xea\xfa\xa7\x50\x82\xf8\x30\xb8\x3c\xfb\xf3\x7f\x94\x7e\xb8\xbd\xac\xfd\x30\xfe\xf1\xcf\xb5\x5f\xfe\x7f\x4b\xe9\xa9\xda\x53\x4d\xcf\x0f\xe6\x72\x08\x22\x35\xd8\x84\xdd\x54\x11\x4d\xf1\x8c\x20\x99\x67\x9a\x02\xe4\x51\x79\x7f\xb5\x48\x79\xc1\x71\x4c\xd9\xcc\x64\x80\x5e\x50\x45\x04\x4e\x2e\x71\xf6\xd1\xd9\xaf\x37\x58\x9d\xff\x7b\x57\xca\xd7\xfd\xf0\xf3\xe0\x32\xcc\xf8\xfd\x70\x73\x7b\x7d\x7f\xbd\x74\xd6\xa5\x16\xea\xc7\x48\x3f\x3e\x81\xff\x45\xc7\x48\xb7\xee\x25\xdf\x94\x28\xac\x35\x02\xf4\xb5\x49\x9a\xf3\x89\x34\x94\x25\x70\x6a\x32\x41\x53\x0a\x57\x8a\xb1\xe0\x7d\x63\x84\x6b\xaf\x3d\xf8\x73\x63\x3e\x00\x6d\xd9\x5d\xca\x2c\xc6\x22\x46\x7f\x97\xd5\xf4\x71\x30\x1c\x9b\x1f\x48\x8c\x0e\xd1\x5c\xa9\x4c\x9e\x1c\x1f\x3f\x3f\x3f\x1f\xe9\xb7\x8f\xb8\x98\x1d\xeb\x3f\x0e\x09\x3b\x9a\xab\x34\x31\xe9\xf2\x7a\x15\x4e\xd0\x8d\xe0\xfa\x0a\x01\x05\x9d\x08\x8a\x13\xfa\x2b\x89\xd1\xc4\xf0\x3f\x3e\x45\xbf\x44\x5c\x90\xa3\x62\x63\xac\x51\xc9\xde\x23\xd6\xf0\x74\xac\x5f\x6a\x60\x26\xd5\xfd\x44\x31\x89\x68\x6c\xc5\x0c\xc2\x22\x0e\x96\x47\xe3\xab\xd0\xed\xb9\x4c\x43\xad\xd1\x64\xb9\x2a\x96\x33\x50\x56\x70\x4c\x82\x6c\x77\xc5\xcb\x04\xa7\x15\x9f\x73\xa3\xb6\xe6\x5a\x45\xd7\x77\x2b\x86\x5b\xd5\xbd\x9a\xe9\x09\x47\x3c\x41\x93\x7c\x3a\x25\x22\x74\x48\x1f\x68\x6d\x86\x4a\x24\x48\xc4\xd3\x14\x24\x06\xfd\x55\x2e\x0d\x55\xc3\x8a\xd9\xd1\x1e\x8d\x18\xec\xbf\x56\x73\x80\x02\x62\x0e\xac\x8e\x11\x12\x23\xcc\x16\xa6\x9b\x49\x3e\x0d\xdb\x37\x30\x14\x38\x46\x54\x8d\xd8\x20\x49\x90\x20\x29\x57\x24\xc8\xa1\x04\xe7\x59\x79\xc1\x81\x45\x0a\x92\x25\x38\x22\xb1\xa1\x87\x84\x47\x38\x41\x53\x9a\x10\xb9\x90\x8a\xa4\x61\x03\x5f\x83\xad\x46\xaf\x19\x95\x28\xe6\xcf\x2c\xe1\xd8\xce\xa3\xfa\xd9\x37\xe5\xd3\x38\x74\x10\x01\x43\x21\xb8\x80\xff\xf9\x81\xb2\x78\x67\x1c\xea\xe1\x6e\x78\x1b\xfe\xfb\xee\xe7\xbb\xfb\xe1\xe5\x7a\xdc\xc7\x53\x16\x0c\x0f\x74\xf8\x13\x74\x67\x16\x81\x0b\x2d\x11\x89\x96\x49\x5d\x5a\x52\x2a\x7e\xe0\xf1\x86\xdc\xf7\x72\x70\xf5\x30\x28\x71\x94\xbb\xd3\xef\x87\x67\x0f\x15\x7d\xc0\xce\xaf\x24\xc3\x1b\xf5\x2f\xfc\xed\xf4\xfb\xf3\x8b\xb3\x71\x83\xc2\xf8\xe1\x76\x78\x7a\xfd\xe3\xf0\xb6\xd0\xed\x1a\x97\xa8\x32\x98\x2a\xb3\xba\x37\x4c\x69\xce\x63\x34\x59\x34\x03\x42\x68\xc9\x39\x01\x5f\x6c\x01\x89\x62\x5a\x3d\x01\xde\xe4\xb0\x39\x8a\x2f\x52\x1e\x93\x03\xfb\x0e\x20\x69\x18\xe3\x8a\x91\x98\x9b\x1b\xd6\xbd\x63\x16\x18\x2a\x0c\xc8\x85\x5f\xb8\x13\x34\x40\x52\xbf\x98\xeb\x43\x2d\xe8\x6c\x06\x86\xc3\xca\x50\x4d\x6b\xf6\x53\x58\x5e\xf8\xce\xec\x7f\x26\x38\x9c\x73\xdd\xad\xb5\x38\x7b\xab\x84\xf9\x10\x50\x57\xca\x2d\x0a\x0c\x06\x87\x86\xa1\xb9\xcd\xd2\x8b\xd0\xba\x5e\xe6\x3c\x1a\x7b\x91\x3e\x5c\xc0\xb6\xa4\xb1\x77\x66\x82\x3c\x51\x9e\x07\x9f\x5a\x60\x8f\xd2\x8e\x37\x36\x5f\x2c\x00\x2c\x9b\x31\x8a\x54\x9a\xf1\xe4\xd1\xd8\x82\x66\x61\x4f\xd0\xc2\x54\xf0\xb4\xa1\x8d\xf2\x31\x39\xbf\xbe\x53\x02\x2b\x32\x5b\x9c\x59\x96\xb1\xf9\xf1\x38\xbb\xfe\xe9\xea\xe2\x7a\x70\x36\x1e\x0e\x3e\x95\x4f\xbc\x7f\x72\x77\x7f\x3b\x1c\x5c\x96\x1f\x8d\xaf\xae\xef\xc7\xee\x8d\xa5\x24\xdf\xd2\x41\xfd\x9e\x2e\xbf\x78\x82\x34\xcb\x05\xd6\xe8\x00\xef\x02\xfe\x38\x21\x53\x2e\x0c\x9f\x4f\x5d\xe8\x82\x15\x61\xdc\xda\x5a\x5d\xac\x32\x8b\x13\xb0\x8c\x35\x35\x69\xac\xde\x4a\x10\x9c\xc2\x3d\x81\x19\x1a\xb2\xf8\xf0\x7a\x7a\x78\x67\x7e\x4c\xb1\x78\x24\xc2\x7f\xfa\x2c\xa8\x52\x84\x95\x54\x3a\xec\x86\xec\x95\xc4\xa2\x83\x23\x74\xab\xf9\xbe\x7e\xdf\x5f\x6a\x9a\xd8\x63\xa2\x30\x4d\xa4\x1d\x6c\x69\x5d\x4f\xd0\x05\x16\xb3\xc2\x0e\xf7\x35\x9f\x4e\x4d\x63\xdf\x98\x61\xe8\x3b\xac\x34\x8b\x06\xde\xab\x49\xc3\xdd\x8b\xd0\x9f\x7d\xd9\xcb\xc3\x75\xaa\x7a\xc8\xb6\xa3\xa9\x87\x1b\x58\x71\xa3\xb1\x97\x74\x43\xfb\xa4\x81\xd6\x60\xe2\xe6\xf1\xf2\x4b\xa6\xb9\xed\x3a\x39\x95\x5f\x6c\x20\x27\x93\x4b\xa5\x77\x7e\xaa\xb5\xcd\x06\x5a\x22\x9f\xa9\x35\x18\x84\xe3\xae\x90\x50\xd1\x0c\x98\x57\x71\x96\x11\x2c\x64\xd3\x6e\x97\xc5\xc0\x96\xbd\x37\x3d\x85\x7d\xd8\x4d\x76\xfd\x1c\x20\xce\xc0\xe0\xe0\x85\x88\x0a\x45\x76\xa0\x01\xd3\x56\x8d\x02\x6e\x00\x6d\xe9\xda\x22\x1b\x5d\x52\xa9\x95\x46\xf3\xe3\x77\x16\x72\x69\x33\x82\xf8\x38\x38\xbf\xa8\x08\x17\xe3\xb3\xe1\xc7\xc1\xc3\xc5\x72\x33\x61\xe9\xbb\xea\x16\xa3\x43\xa4\x9f\x97\xfd\xe6\x74\x6a\xee\x0c\x07\x1c\x65\x54\x5a\xc2\xc0\x68\x65\xa1\x6a\x8c\xbd\x3a\x26\x59\xc2\x17\x29\x61\x60\xe2\x29\xdd\x84\x7a\x3d\xa7\x98\xda\xab\x25\x18\x2c\x58\x71\xac\xd9\x0d\xae\xb1\x43\x87\x56\x45\x62\x7f\xf3\x96\xc1\xaa\x2a\xac\xfb\xc6\x78\xcf\xec\x7f\xee\x14\x56\x1b\x9e\xb1\xc1\xe9\xfd\xf9\x8f\xc3\xb2\x7e\x78\xfa\xfd\xf9\x8f\x4d\x52\xcd\xf8\xd3\xf0\x6a\x78\x3b\xb8\x5f\x21\x9c\x54\x9a\x6c\x12\x4e\xa4\x1e\x70\xd5\x7b\x4a\xa5\x8f\x08\x8a\x0c\xe4\x15\xa2\x4a\xa2\x27\x2a\xe9\x84\x02\x40\x98\xf5\x44\x3e\x9c\x03\x67\x7d\xc2\x09\x8d\xa9\x5a\x38\xf1\xc5\xf4\x5b\xde\x47\xcd\x49\x6d\xfb\xc6\xec\x10\xfa\x27\xc1\xca\x67\x36\xc7\x4d\xfa\x04\x81\x6e\xfb\x04\x4a\x5b\xf0\x19\xd3\x82\x34\x9b\x11\x61\x86\x03\xde\x97\x70\x2c\xc1\x73\x3d\xaa\x50\x58\x29\x56\xcd\x0b\xad\x33\xc2\x88\x00\x10\x38\xdf\x89\x11\xa4\x04\x61\x5f\x69\x99\x2b\x4b\x68\x44\x55\xb2\x40\x11\xd8\xb0\xc0\x9c\x99\x62\x86\x67\x56\x38\x00\x35\xa7\x42\x12\x7f\x35\x28\x6a\xd7\x53\x6b\xda\xbf\xa7\x64\xc3\x63\xf6\x70\x75\x36\xfc\x78\x7e\x55\x26\x81\xef\xcf\x3f\x95\x44\xd8\xcb\xe1\xd9\xf9\x43\xe9\x36\xd7\x92\xec\x72\xb9\xbe\xda\x6c\xc3\x51\xf4\x2f\x9d\xa0\x33\xf3\xe9\x89\x5e\xdc\x06\x88\x38\xaf\xfc\x56\xd6\xe1\xd6\x85\xe4\xb9\x3f\x86\x4c\x89\x46\xbf\x44\x57\x13\x92\xf5\x41\x96\x6c\x48\xcd\xa1\x0a\xb5\xbe\xaf\xaa\x4e\xe5\xea\x94\xdd\x8b\x10\x74\x79\x54\x58\x96\xc2\x18\x06\x30\x1a\xb4\x19\xb1\x1a\xdc\x5a\x05\xc3\xfe\x11\x5c\xd4\x69\x2e\x95\x71\x25\x02\x71\xa2\xc7\xbf\x48\xbd\xa0\xe0\x6a\x3c\x42\x77\x84\x8c\x98\xb3\x1e\xcc\xa8\x9a\xe7\x93\xa3\x88\xa7\xc7\x05\x3e\xe1\x31\xce\x68\x8a\xb5\x24\x4d\xc4\xe2\x78\x92\xf0\xc9\x71\x8a\xa5\x22\xe2\x38\x7b\x9c\x41\x04\x8c\x73\xa7\x1e\xfb\x66\x67\xfc\xdf\x2f\xfe\xf4\xed\xe1\xc5\x5f\xbe\xfd\x50\xb7\x90\xb5\xed\xff\x90\x45\x38\x93\x79\x62\x23\xe6\x44\xb8\x36\xee\xc8\xe7\x64\xd5\x7e\x5f\x95\xb7\x6b\x3b\xfd\xf5\xf4\xe6\xa1\x64\xb1\x2e\xff\xf3\x72\x78\x79\x7d\xfb\x73\x89\x53\xde\x5f\xdf\x0e\x3e\x95\x18\xea\xf0\xe6\xfb\xe1\xe5\xf0\x76\x70\x31\x76\x0f\xb7\xb1\xbd\xfd\xc0\xf8\x33\x2b\x2f\x8d\x74\x1c\xb0\xd6\xd3\x09\xfa\xc8\x05\xfa\xc1\xef\xe4\xe1\x04\x4b\xb8\x62\xdc\x9d\x25\x0f\x50\xc6\x63\x60\xbc\x88\x64\x73\x92\x12\x81\x13\x6b\x33\x90\x8a\x0b\x3c\x33\x37\xbd\x8c\x04\x56\xd1\x1c\xc9\x0c\x47\xe4\x00\x45\x40\x0d\xb3\x03\xd8\x14\x50\xb5\xf8\xac\x6a\xe7\xbb\xcd\x99\xa2\x29\x71\x2a\xb8\xfd\xe7\xbd\xd9\x8c\x0d\x36\xe7\xfa\xfe\xfb\xb2\xb0\xf7\xf1\xe2\xe7\xfb\xe1\xf8\xee\xec\x87\xa5\xeb\x69\x3e\x2b\x8d\xec\x0e\x02\x90\x4e\x79\x92\xa7\x2c\xfc\x7b\xf3\xb1\x9d\x5f\xdd\x0f\x3f\x55\x47\x77\x3d\xb8\x2f\x53\xc6\x6d\x39\xc0\xed\xc3\x77\xd7\xd7\x17\xc3\x92\x4b\xf8\xc3\xd9\xe0\x7e\x78\x7f\x7e\x59\xa2\x9f\xb3\x87\x5b\x83\x46\xb8\x6c\x9a\x6e\x04\x0d\x13\xd5\xd3\x0a\xa7\xb9\x6b\x56\xd8\x89\x13\x0d\x6c\x40\xb9\x39\xcb\x87\x01\xdc\x8e\x09\x07\x03\xab\xce\xa1\x37\xa9\x46\x66\xa4\x8d\xec\x50\x95\xb7\x09\xb5\xb3\xe3\xa5\x1b\xbd\x8c\x2b\xdf\xfb\x21\x18\x28\x50\xa3\x6c\xe3\x24\xe1\xcf\x26\x94\x37\xa5\xfa\x56\xb6\xc0\x68\xfa\x15\x59\x78\x08\x8f\x1a\x38\x5e\x79\x5b\x48\x24\x88\xba\xe4\x39\x53\x9b\x93\xdc\xe0\xaa\xc4\x77\x86\x57\x3f\x8e\x7f\x1c\x94\x29\xf0\xfc\x62\x39\xab\x09\x9b\x68\xb8\x8a\x07\x57\x3f\xfb\x4b\x18\x02\xbe\x0f\xbc\x86\x6a\x64\xd7\x28\xa1\x5a\xec\x8d\xb0\xd6\x5e\x13\x90\x68\x10\xa1\x60\x72\x48\xf5\xe4\x20\xc0\x34\x33\xfe\x24\xc3\x9f\xcc\x20\x4f\xdc\x1f\x95\xf6\x24\xac\x0b\x58\x53\x5d\x3c\x3d\xb4\x63\xb5\x6a\x86\x08\x7b\xa2\x82\x03\x9e\x2d\x7a\xc2\x82\x6a\x69\xdc\xb4\xac\xe7\x7a\x02\xff\xbb\x5e\x9b\x60\x18\xad\x30\xae\x3b\x2e\xd4\x99\x0f\xe4\xdd\xcc\x1a\xd2\x14\xd0\x5a\x0f\x65\x6d\x36\x74\xd4\xbf\x6d\xd8\x9c\x2d\x03\x7e\xcb\x13\xfe\x47\x72\x46\x71\xa2\x19\xc0\xee\xe4\xc5\xc1\xd5\xdd\x79\x59\x7e\x2c\xab\x19\x01\x5f\xde\x58\x5e\x04\x43\xa5\x19\xb9\x53\x26\xee\xfe\x7a\x61\xb4\x0b\x00\x3d\x36\xe7\x36\x50\x2c\x40\x00\x72\x28\x28\x19\x16\xb2\xf2\x85\x44\x00\x84\x56\x04\x5c\xe9\x3b\x0b\xc2\x99\x9e\x38\x8d\x47\x8c\x7c\xce\x08\x93\x10\x1c\x60\xee\xb3\xc2\xd7\x2e\x8f\xd0\xf9\x14\x58\x82\x7e\x9d\xa1\x9c\x59\x07\x98\xbe\x70\xcd\x20\x0f\xb4\x28\x6b\x87\xe0\x35\x44\x30\xbc\x30\xe2\x82\xa5\x8a\xc1\x8f\xd8\x4f\xde\x89\x06\x8f\xa6\x5c\x33\x20\xbd\x8b\xb6\xbd\x13\x84\x99\xa4\x07\x48\x2b\x2c\xd5\x3d\x85\xd4\x01\xad\x50\xda\x10\x2e\xcd\x69\xec\x9f\xaf\x7f\x0d\xd4\xe2\x84\xc3\xcb\xa0\xf9\x2e\xa8\x5c\x05\x2d\xa2\x71\x62\x3c\x26\xe3\xee\x77\x42\xc4\x05\xb1\x7e\x96\xb5\xaf\x81\x55\x8c\xfd\x1e\xcb\xc7\x9a\xef\xe1\x9c\x49\x85\x59\x44\x4e\x13\x2c\x37\x0c\x42\x72\x36\x8e\x83\xb2\xc4\x71\x7b\xfb\x70\x73\x7f\xfe\xdd\x0a\x2e\x5f\xfd\xb8\x1e\x06\x14\x25\xb9\x73\xcf\x4d\x04\xc7\x31\xd2\xec\x73\xc6\x8d\x2b\xd0\x0a\xfe\x05\xf4\xb7\xc9\xeb\xf1\x01\x95\x25\xd8\xf1\x22\x1d\xc1\xda\x39\x42\x57\x02\xb5\x0b\x81\x22\xbd\x12\x28\x30\x79\xb8\xad\x06\xcf\xa2\x29\x48\x62\xad\x5b\x59\x82\xd5\x94\x8b\xd4\x70\xf9\xd2\xa4\x4d\xe3\xcb\x1b\xa5\x4c\x11\x21\xf2\x4c\x51\x87\xe5\x5e\x95\x52\xa1\xc2\x3b\x9f\x5d\x12\x29\xf1\x8c\x6c\xe3\x80\x6e\x52\x1e\xee\x7e\x0c\xff\x09\x0e\xe6\x2e\xb2\x7f\x69\x84\x2e\xf2\xdd\xd1\xd3\x35\xfb\x68\x02\x79\x6e\x78\x42\xa3\x0d\x03\xee\x3e\x0e\xce\x2f\xc6\xe7\x97\x5a\x89\x1f\xdc\x0f\x2f\x4a\xa2\x04\x3c\x1b\x7c\xbc\x1f\xde\x5a\x10\xeb\xc1\x77\x17\xc3\xf1\xd5\xf5\xd9\xf0\x6e\x7c\x7a\x7d\x79\x73\x31\x5c\x11\x99\xd3\xda\x78\xdd\xba\x5a\x7d\xf5\xa4\xf6\x0b\xec\xb0\xe6\x65\xa1\xbd\x0c\xb2\xc6\x30\x4d\xc0\x09\xce\x8d\x33\x1c\x23\xc6\x63\x02\x3f\x4b\x67\x9d\xf1\xc8\xd1\xe8\x5c\x7d\x95\x24\x08\xe7\x8a\xa7\x18\xbc\x36\xc9\x62\xc4\xf0\x44\xb3\x56\x9c\x24\x41\x78\x97\xc8\x19\xd3\x2c\x56\x37\x66\x20\xda\xa3\x84\x68\x76\x9e\x05\xc9\x7e\xd6\x6f\x30\xa5\x0c\x22\x6d\x53\x2c\x1e\x8d\x9b\xa9\xe8\xb2\x38\x14\x12\x61\x39\x62\x7a\x5c\xc4\x1a\x86\xba\xac\xf0\x49\xa7\xb7\x5a\x57\x27\xc5\x8f\x44\xaf\x4a\x9a\x47\x73\x94\x09\x3e\x13\x44\x4a\x6b\x5b\x8e\x30\x33\x01\x08\xf6\x75\x7d\x0d\x8d\x18\xe3\x7a\x29\x9c\x09\x3b\x26\x19\x61\x31\x61\x11\x35\x69\x7d\xe0\xbb\xf7\xa6\xcd\x99\xc0\xd9\x1c\x49\x0e\x4e\x6f\x58\x76\xb0\x5f\x99\x8f\xdc\x4d\x66\x66\x6c\x1e\x87\x16\x68\x91\x6b\x3e\x71\x0d\x72\xa2\x59\x65\xf8\xd8\x5d\x86\xce\xed\x62\xec\x80\x69\x96\x10\x65\xc0\xfa\x61\xc9\x61\x33\xf4\x5a\x97\xf6\x43\x6f\x53\xd3\x26\xe8\x0b\xdb\x8d\x19\x4b\x3b\xa2\xa3\x06\xcb\xb6\x3d\x52\xe8\x7b\xcc\xe2\x44\xb7\xe2\x7c\x18\xe5\xb3\x08\xa9\x28\x03\x4d\x35\xee\x34\x6e\x73\x8b\x46\x38\x97\xdb\x5c\xa3\x95\x5c\x4c\x63\x15\x3c\x2c\x82\x42\x80\xbc\x6d\x22\x26\xac\x6e\xa6\x59\x24\x4e\xb8\x5d\x25\xf3\x7a\x6e\xea\x3f\x21\x18\x4d\xcb\x35\x9b\x09\xca\x22\x9a\xe1\x64\x23\xdd\xaf\x12\x8c\x6f\x63\xdc\xbf\xa6\x53\x4d\x3e\xdf\xd4\xdc\xb6\x8a\x88\x14\x12\x94\xed\x30\xfd\x16\xae\x61\x49\xb2\x59\x0d\x44\x16\xd1\x24\x58\xf0\xdc\xf8\xe3\x60\x5d\x48\xdc\x70\x54\x8f\x9a\xb6\x5b\x9f\x0c\x5c\x0e\x80\xde\x60\xb3\x4d\xe4\x4f\xdb\xfa\x55\x5a\xb1\xbd\x9b\x60\x3c\x9c\xdc\x34\xb7\xd9\xb4\x03\xc1\xc3\x7f\x2d\xa3\x9d\x4b\x9c\x69\x9a\xb1\xb0\xfd\xb8\x98\xa3\x55\x92\x6c\x55\x30\x17\x3f\x13\xf8\xce\x7d\x5e\x48\xf7\xdd\x28\x96\xd0\x06\x40\xd5\x3b\x29\xc5\x10\x04\x39\xe6\x96\xc6\xa7\xb9\x96\x65\x11\x86\x28\x04\xf4\x35\x39\x9a\x1d\x21\x57\x84\xe1\x00\x0d\x6e\x6e\x86\x57\x67\x07\x88\xa8\xe8\x1b\x17\xb3\x68\x03\x96\x46\x4c\x71\x2b\xad\x2c\x5c\x01\x8d\x94\x88\x19\x29\xcd\xd9\x45\x37\x41\xa8\xf2\x8c\x4a\x65\xc3\x67\x35\x5f\x09\x4a\x9d\xd0\xb4\x2a\x66\x1b\x0a\xc9\xd5\x7c\x1b\xd2\xc0\x52\xe6\xa9\xd6\x65\xc7\x14\xa7\x63\xc1\x93\x6d\x98\xc2\x19\x4c\x05\xd4\x65\x9f\x9e\x4f\x71\x8a\x74\xb3\x36\x14\xc4\xbb\x1c\xbd\x48\xa7\x05\x23\xcd\x97\xf5\xbd\x19\xdc\x5b\xce\xfb\x60\xe3\xd1\xa8\x0b\x81\x80\xf4\xfd\x16\x56\x51\x98\x8d\xc7\xd6\x52\x3f\xc6\x51\xa4\x55\xee\x1d\x4f\x2a\xa8\x9f\xe3\x5c\x02\xb6\xa3\x17\x9b\xe6\x2a\x3a\x77\xc3\xcc\x34\x07\x83\x60\x60\x7d\xe5\x4a\x1e\xd1\xa2\xfd\x86\x7e\x27\x8b\x5a\xaf\xae\xc2\xcd\x83\xf4\x26\x15\x73\x09\x4b\x02\x3b\x29\x4d\x85\x1c\x35\x27\x0b\x34\xc7\x4f\xa4\xd4\xa5\x4b\x88\xd1\x0d\x2f\x78\x2e\x9a\x18\xdd\x88\x9d\x91\x4c\x10\x2d\xe9\x57\x1d\x28\x9e\xa6\x6f\xcb\x94\xd8\xd3\x75\x4f\xd7\xef\x9e\xae\x4f\x4d\xa1\xa4\x81\x2f\x8c\xb5\x95\x00\x67\x1a\x1b\x67\x9c\x27\xe3\x0e\x36\x91\xee\x2b\x5e\xf2\x84\x55\xca\x46\x01\x24\x00\xcf\x41\x3e\x2a\x5d\x9b\x5c\xdf\x75\x41\x8a\xad\x1d\xde\x92\x65\x70\x2e\xb3\xa0\x5e\xce\x36\xe7\xbd\xa9\x95\x65\x2d\xa1\x17\x17\x73\x4e\x8d\x7c\xe3\xdd\x65\x61\xfd\xd3\xd2\x61\x72\xa2\x08\x65\xb5\x6a\x6c\x86\x9e\xf5\x02\x1b\xb9\xe3\x1f\x39\x57\x58\x7e\x73\x34\x62\x5a\x88\x7a\x24\x0b\x63\x6e\xd5\x62\xca\xef\xb4\x2c\x7e\x28\x09\x93\x10\xee\xfd\x3b\xe3\x9e\xd3\x24\xee\xcc\xd5\x46\x35\x35\x45\xe0\x20\xe8\xda\xf7\x02\x21\xba\xb6\x51\x2b\x25\x15\x01\xd0\x20\xe7\x9b\xb9\xd8\x67\x66\xf8\x33\xa2\x20\xc5\x5a\x51\x05\x3a\x53\x6c\xaa\xcc\xd5\x86\xbe\xd2\x74\x65\xa8\x42\x70\xf0\x93\xc4\xf9\x76\x8c\x5f\xd6\xdb\x58\xc9\x19\xbd\xb6\x70\x67\x63\xde\x8f\x9d\xdd\x28\x12\xbc\x56\xba\x0d\x4b\x64\x76\x7a\x62\xd8\x81\xf3\x5f\x13\x76\xf4\x4c\x1f\x69\x46\x62\x8a\x21\x02\x5e\xff\xeb\x58\xcf\xeb\xdf\x4f\x6f\xaf\xaf\xc6\x45\x26\xcf\x7f\x8d\xd8\x20\x91\xdc\x67\x29\x20\xc6\x99\x0f\xb7\xcf\x04\x71\x22\xa1\x9d\x0b\x58\x5d\x0b\x33\xe2\x88\xb5\x8d\x20\xe6\x91\x3c\xc2\xcf\xf2\x08\xa7\xf8\x57\xce\xc0\x95\x3e\x80\x3f\x4f\x13\x9e\xc7\x3f\x61\x15\xcd\x8f\xe1\x5c\xab\x63\xf2\x44\x98\x32\x6e\x2a\xbd\x5c\x31\x24\xef\x4a\x88\xd6\xff\x77\x3d\xe6\x22\xa9\x48\x6a\x4d\x36\x22\x99\x42\xff\x8f\x20\x13\xce\x55\xf3\x25\xc5\xa7\x53\x49\xd6\xba\x90\x0a\x25\xed\xee\x1a\xfd\xe5\xcf\xdf\xfe\x41\x93\xd0\x26\x6b\x7c\x7e\x77\x3d\xd6\xdf\xff\xfb\x99\xfd\x5e\xae\xc1\xee\xae\xb3\x82\xb5\x39\xe2\x31\x81\xf3\x39\x83\xdb\x4f\x80\xf3\x02\xd8\x1b\x90\x43\xb1\x8f\x4d\xdc\xed\xac\xd4\xfa\x76\x2a\xdb\x46\x8b\x09\x2a\x76\x30\x47\x74\x88\x18\x47\xa9\x89\x35\xc5\x0c\xfd\xc7\x0f\xdf\x35\x6f\x60\x2e\xe8\x46\x1d\x52\x0b\xd7\x10\x74\x29\xe9\xaf\x44\x22\x4d\x35\x9a\x8a\x79\xaa\xbb\x16\x44\xce\x79\x12\xa3\x67\x02\x6a\x92\x8d\x03\xf5\x5a\xb9\x20\x23\x16\x36\x01\x21\x87\x08\x27\x8a\xcf\x08\xdc\xd5\x4e\x51\x53\x44\x68\x51\xc5\x64\x69\x28\x2e\xc8\x81\x81\xfa\xba\xfb\x93\x8b\xad\x86\x69\xc2\x23\x97\xd4\x62\x4d\x72\xf1\xa4\x79\xe6\xd3\xaa\xe9\x15\xb5\xdb\xf0\xab\x9b\x6c\xcd\xb6\xcd\x4b\x63\x93\x50\xac\x0d\xab\xba\x33\xcd\x83\xa1\x11\x67\xe3\x84\xb2\xc7\x8d\x36\xe3\xda\x89\x72\xba\x05\xbb\x66\xba\x45\x6f\xe7\x36\x16\x90\x35\xce\xc7\xc7\x3c\x49\x4c\x6a\x4b\xb8\x3d\x20\x77\x99\x75\x03\x61\x20\x33\x39\xa0\x24\xb6\x7e\x2f\xab\x09\x0b\xc2\x20\xe0\x6d\xc4\x26\x0b\xeb\xb3\x95\x07\x48\xe6\xd1\xdc\x65\xe6\x45\x9c\x49\x2d\x46\x73\x81\x22\x9e\xa6\xa6\xb8\x29\x23\x48\x71\x9e\x48\x1b\xed\xce\x0e\x15\x8e\xd4\x88\x15\xfd\xad\x38\x79\xa6\x02\xd2\x76\xa9\x7b\xdd\x5d\x3a\x45\xa5\xa5\xa5\x02\x37\x8d\x43\xcc\x06\x30\x82\x19\x4f\x54\x80\xfe\xc0\xeb\x67\xc9\x6c\x58\x8b\x66\x20\xe7\x5c\xa8\x71\xdc\xc8\x73\x56\x12\x4d\x95\x11\x32\x72\x98\x40\xd0\x30\x7f\xd2\xc2\x3f\x79\xf6\xc6\xd7\x65\x43\xd0\x54\xbd\x6c\x04\xdd\x8e\xd1\xd2\x91\xad\x4b\x82\x2d\x6b\x65\x10\x3c\xa2\x72\x4c\xf8\xaa\x31\xde\xc1\x57\xa7\xfa\xa3\xa5\x8b\x57\x3d\x77\x4e\x08\xe2\x71\x01\x36\x67\xee\x75\x9b\x11\xb2\x6c\x4d\x2d\x74\xc2\xcb\x65\x8e\x2e\x9b\xca\x43\xd9\x92\xab\xc7\x02\x26\x7b\x49\x40\xd6\xc4\x62\x42\x95\xc0\xa2\x84\x14\xe2\xf5\x41\x49\xb0\x80\xf8\xac\x11\x33\xb8\x71\x46\x53\x88\x51\x4c\x25\x24\x88\xc0\x5d\x1a\x38\xc3\x50\x37\x25\xb0\x72\xb4\x8b\x3c\x47\x13\x7f\x0e\x81\x65\x05\x69\x38\x66\xa7\x3b\xf2\xf8\x58\x5a\x3f\xe3\x51\x5e\x08\x72\x11\x48\xb8\x16\x53\x07\x51\x26\xe9\x6c\xae\x10\x65\xd6\xee\x88\x93\x19\x17\x54\xcd\x53\x79\x80\x26\xb9\xd4\x5a\xa8\x09\x56\x33\xf1\x28\x44\x45\x9d\xb8\xd0\xb6\x49\xc4\x71\xa5\xc1\xba\x8a\xb2\x01\x69\x74\x3b\x94\xc3\xca\x5d\xb1\x82\x70\x06\x1e\x67\xb0\xda\x06\x85\xba\x8d\x06\x9e\x12\x99\x38\x40\xee\x90\x9d\xa0\x0a\x48\xdb\x39\x00\x54\xc8\x9d\x79\x29\x5e\xa3\x10\x17\x32\xc9\xa0\x82\xb8\xd8\x6d\x90\xbc\xca\xc8\x94\x06\xbd\xc9\x3b\x9d\xd2\x4c\x35\x06\x6e\xd5\x5d\x45\xb7\x01\xe6\x4f\xb7\xc5\x86\x64\x2c\xa0\x66\x40\x6a\x1b\xb1\x3b\x42\xda\x81\xdc\x6a\x7b\x6f\x4a\xe3\xc2\x14\x6c\xa2\xc7\x72\x92\xdf\xc6\x89\x7d\x36\xbc\x3b\xbd\x3d\xbf\x31\x90\x13\xd7\xb7\x97\x83\xfb\x71\x83\x5f\xbb\xe1\xad\xcb\xc1\xed\x0f\x67\xab\x5f\xfb\xfe\xbe\x9c\x95\xdd\xf0\xca\xed\xdd\xf2\x64\x8e\x0e\x43\x6c\x48\x0a\x6b\xec\xe7\x04\x65\x0b\x35\xe7\xcc\x87\x28\xc4\x25\xde\x74\x88\x4c\x46\xb0\x82\x10\x22\x21\x55\x83\xe3\xf0\x1e\xe2\x72\x56\x4b\x98\xe5\xcd\x32\x30\x6c\x3b\x15\x8d\xd6\x38\x91\x9f\x12\x3e\x01\xbf\x75\x5e\x2a\x71\xbb\x24\x02\x7d\xcb\x78\x9f\x33\x2a\xb3\x04\x2f\x6a\x3d\xac\xba\x72\xae\x70\x4a\x20\xe2\xb8\xc0\x8f\x73\xc9\x22\x7a\x67\x20\x81\xc9\xdf\xeb\x74\x0a\x99\x4c\x8a\x62\x45\xd0\x84\xa8\x67\xc8\x9b\x73\xbf\x7a\x5b\xaa\x0b\x18\x91\x47\x23\x06\xe6\x9c\x91\x5e\xe4\x38\x87\x68\xbf\xd1\x87\x03\x34\xfa\x10\x93\x27\x92\xf0\x4c\xef\xbc\xfe\xa1\xe5\x92\x19\xa6\x98\x26\x57\x5c\x79\xcb\xdc\x36\xfb\x29\x48\x44\x33\x90\xcc\xc7\x44\xb7\xfb\x7a\x82\x47\x89\x92\x1d\x3b\x83\x31\x20\x1c\xc7\x5a\xc9\x06\x56\xe6\x86\x57\x84\x00\xb1\x60\xea\xa5\x5a\x99\xeb\x88\x14\xde\xfc\x6d\x7a\x0c\xdb\x2c\x9b\x3d\x1b\x77\x80\x3d\xbd\xa0\x4b\x76\xdb\x8b\x5c\x6b\x25\x3f\x90\x05\xa4\x60\xdc\x60\x2a\x36\x74\xcd\x36\xc5\xbc\xbe\x88\x93\x76\xd8\xd0\xd1\x1e\xb9\x6b\x9b\xd7\x61\x3b\xc7\xad\x8f\xd5\x7b\x2d\x2d\xd5\xc5\x72\xf9\x8e\x3b\xaa\xad\x0f\x6d\x4a\x6a\x6b\x08\x03\xaa\x2a\x5e\x19\x89\xd6\xd0\xb8\xfc\x00\xef\xf4\x77\x2b\x35\x15\x2f\xae\x45\x61\x4d\x7f\xd8\x05\x9b\x1c\x5f\xcd\xc7\x27\x2b\x47\x1c\x25\x5c\x96\xb1\x72\x3a\x0f\xfa\xd4\x7e\xba\x6c\xdc\xc3\x90\x7c\xb5\x5c\xb8\x56\x40\x43\xc3\xc2\x57\xc0\x20\xcd\x3d\xa3\xac\x87\xcc\xbe\x7d\x80\x28\x44\x5b\x82\x42\x96\x14\xc8\x01\x2c\x46\x85\x1b\x64\xc4\x8a\x98\x15\x89\x9e\x49\x02\x61\x6e\x11\x4f\x33\x30\xf1\xdb\xe1\xda\x96\x48\x6c\x22\x86\x0f\x10\xcf\x95\x6e\xcc\xe4\xe4\x38\x23\xae\x4d\xf8\x29\xdc\x1e\xc6\xf7\x66\x83\xdf\x3d\xb0\xb4\xa1\x75\x73\x97\x52\x86\x3e\x11\x05\xad\x00\x70\x7f\x38\x41\xd0\x13\xaa\x21\x94\xcd\x6b\xbf\xc5\x89\xb2\x33\x59\x63\xe7\x0b\xe0\x94\xef\x12\x3e\x59\x6e\x24\x80\xc6\xd1\xc3\xed\xb9\xb3\x48\x16\xf1\x53\x01\x7a\x71\xc9\xa3\x38\xbc\xb9\x1d\x9e\x0e\xee\x87\x67\x47\xe8\x41\x12\xbd\x3c\x7e\xba\x90\x5f\xed\x55\x12\x33\x72\x8b\xc4\xc2\xa4\x22\xb8\xcd\x10\x42\x84\x28\x65\x41\xaf\x60\x1c\x65\x98\x96\xe5\x84\x0d\x20\x29\xd4\x1a\xea\x00\x58\xa8\x3a\x4f\x1b\x99\xb7\xea\x04\x42\x9c\xd4\xf8\xfd\x44\xa9\x99\xf1\xa6\xf5\xc8\xbc\x55\xe4\x53\x8e\xe8\x7b\xe9\xc9\xc0\xd1\x52\x73\x42\x05\xea\x34\x2d\x43\x54\xe3\xee\x73\x0a\x42\xdc\x2f\x71\xb6\x3c\xfd\x14\x3f\x97\x88\xd6\x88\xc2\x81\xef\xfe\xa5\xcf\x81\x63\x6b\x63\xc3\x0a\xb7\x9f\x60\xe1\xd0\x32\xbc\xd5\xf3\x4d\x93\xf1\x21\x9d\x91\x2c\x9c\x58\x65\x10\x36\x8e\x55\x22\x38\x3b\xf0\x0b\x65\xa8\x74\x25\x1e\xa0\x29\xfd\x6c\x1b\x2d\xe2\xdb\xdd\xab\x41\xc0\x43\x4b\x3c\xe5\x1c\xd7\xcf\xd4\x1a\x62\xc3\x0d\x7c\xbf\x54\x88\xe4\x52\x8b\x44\x91\x16\x97\x04\x89\xb8\xd0\x37\x05\x74\x5b\x78\x21\x56\x89\x0c\x0a\x0b\xbd\x28\x75\xaf\xcc\xb2\xd3\x5f\xd4\x20\x89\xb1\x22\x87\x5a\xf4\x5a\x91\x00\x6d\x73\x64\x20\x9b\x06\xab\x00\x0e\xac\xb8\x79\x26\x64\x86\x99\x0b\xcd\x6e\x19\xae\xbb\xf2\xb6\x60\x55\x5a\x05\xc2\x90\x1e\x06\xf2\x15\xa4\xfe\x94\xc6\x21\x33\x58\xcf\xa5\xe3\xb0\xd1\x2f\xfb\xb0\x6c\xcf\xd8\x07\xe3\xb4\x0c\x36\xcf\xe2\x7d\x1a\x6c\x82\xa5\x42\x76\x4c\x6d\xa6\x88\x40\x45\x7c\x59\x23\x6c\x49\xb7\xef\xaa\xbc\x69\x12\x2a\x6b\xb1\x04\x3c\x23\xd2\xe1\xa6\x18\x94\x18\xad\xd3\x38\x41\xd8\x94\x62\xf6\x67\xdb\xd6\x64\x76\xb7\x44\xc8\x4c\x20\x48\xbf\xde\xf4\x11\x1a\xb0\x1a\x5e\x96\x8b\xcb\x2a\xad\x97\xb9\x93\x70\xf2\x8c\x17\x12\x65\xc2\x40\xcb\x98\xc8\x7d\x37\x79\xd0\xc0\xca\x1f\xf9\x50\x08\xe5\x52\x27\x10\xd8\x62\x56\x07\xcd\x39\xb9\x77\xfc\x02\xae\xbc\x4a\x54\xb9\x17\xc8\x8b\xe6\x0a\x5b\x45\x07\x56\xa7\xc8\x38\x9a\x63\x36\x23\x63\x67\x64\xdd\x44\x5b\xd2\xed\x9c\x42\x33\x67\xb6\x95\xe6\xcb\xe9\xc6\x28\x4c\xb6\xfe\x8b\x79\xd5\x1b\x10\xf5\x21\x90\x0a\xcf\x08\x32\x23\xea\x64\x96\x2e\x45\x8c\x59\xb0\x61\xd0\x13\x6c\xab\xc3\x72\x14\x7d\x9b\xf0\x0e\xa1\x4f\x17\x78\x42\x92\xb7\x89\x9c\x80\xae\xad\x71\x1e\xbc\x75\x26\x1b\x80\xa0\x67\xb0\xe7\x57\x58\x86\xb5\xde\x8b\xbc\x29\x37\x60\xd9\x3c\x4b\xd5\xcf\xb7\x98\xa8\xab\x15\xb2\xc9\x54\xdb\x2a\x88\x84\xd7\x5e\x50\x69\xa3\xc9\xc0\x16\x5e\x7f\x55\x9b\xf2\x66\x03\x09\x0a\x7e\xb4\x8c\x63\xeb\x8a\x1f\x2b\xa7\xb2\x31\xc8\x40\xc7\x2a\x78\xe7\x53\xc4\x38\x23\x88\xca\xe2\x65\x55\x4e\x87\xf2\x10\x3d\x5a\xc4\x37\xc6\x17\x5f\xa5\xcb\x17\x5f\x7a\x69\x4b\x4b\x01\x9e\xe0\x6d\x03\x2e\xbf\x9b\x11\xad\xa8\x62\xb1\x00\x88\x4f\xc3\x87\xcb\x32\xdd\xca\x71\xee\x5c\xe0\xbe\x77\x08\xae\x41\xa4\xae\xe2\x08\xc4\xc8\xca\xe0\x90\xc1\x41\xb5\x2f\xd9\x8f\x2c\x4c\xcd\x88\x79\xcb\x06\x10\x22\x95\x28\xc5\x19\xf8\xf4\x18\x57\xc5\x57\x06\x76\x49\xf9\x2d\x3c\x70\x82\xb8\x34\x35\xb4\x5a\x56\x60\x95\x69\xc7\x5d\xbf\xc5\xba\x96\xe1\x2d\x1d\x34\xef\x8c\x3e\x11\xe6\x68\xfa\xc0\x9d\x09\x3d\x28\xd7\x69\xb2\x38\xc4\x10\x66\x4c\xe2\xd0\xf3\xb1\x9c\x23\x19\x83\xcc\x3e\xd8\x23\xbb\x2f\xd9\x7d\x63\x18\x8d\x01\x49\x2b\xa1\xdb\xbb\xc0\xf0\x90\x4a\x2d\x6e\xaf\xc9\x04\xc7\x12\xfd\x8e\x71\xf5\xbb\x00\xd9\xd8\x19\x2f\xe0\x53\x67\x82\x3a\xa8\x95\x6c\x81\x43\x6b\x09\x07\xe1\x00\x61\x6b\xe5\xca\x6f\x1b\x1b\x50\x04\xbe\xbf\xa8\x34\x3a\xac\x67\xc1\xb5\xd5\xbc\xea\x3d\xf6\xa8\x7a\x2d\x54\x0d\x9e\xa6\xac\x5e\x71\xd2\x4b\x86\x4e\xb9\xca\x45\xef\xf7\xa2\x93\x6b\xbe\x86\x08\xb0\x0d\xb5\xa5\x9d\x23\xa7\x56\x80\x20\x37\xdb\x25\x36\xc9\xf3\x6c\x93\xcb\x45\x39\x74\xcd\x96\xc1\x68\x41\xf9\x3d\x1a\xb1\x8f\x5c\xd8\x2b\x58\xda\x3a\x03\x13\x1c\x3d\x1e\x12\x16\x23\x9c\xab\xb9\x41\xdb\xb5\x7e\x85\x85\xa5\x06\x2d\x69\x00\xd9\x78\x28\x0d\x2a\x23\x2c\x62\x57\xf1\xe2\x89\xbb\x51\x8c\x58\xd0\x08\x54\x32\x80\x42\x4f\x50\xaa\xb6\x4d\xd5\x24\x52\xeb\x57\x6d\x6b\xd1\x54\x84\xb5\x56\x82\x75\xf9\x39\x2b\x15\x95\x85\x1a\x0c\x10\xe0\xc4\xa7\xf5\xd5\x39\x77\xd6\x46\xa7\xdf\x69\x7a\xae\x7b\x21\x0e\xac\x46\x61\x4c\x52\x76\x06\x5a\xd2\xf9\xd6\xf1\xda\x12\x6a\xf0\x34\x17\x10\xae\xdb\xd4\xe6\xd7\xd1\x9c\x26\x85\xef\xe2\x9b\x03\x3f\x4c\xdd\x64\x42\x9e\x48\x62\x30\xeb\x23\x01\x91\xf9\xc6\x6a\xf8\x2d\xfa\x3f\xa6\x30\x29\xfa\xc3\x88\x7d\x02\x36\x9c\x24\x0b\x40\xd4\xf4\x2d\x63\x55\x69\xe6\xb1\x71\x00\xca\xa6\x02\xa1\xf2\x40\xcc\x5e\xcf\xf1\x13\x19\x31\xd7\xcc\xff\x41\x8f\xe8\xf7\xe8\x0f\x6d\xea\x9d\x0b\xb0\x7f\x61\x3b\xc7\xc7\x20\x7c\x3d\xb8\xe5\x2c\xa3\xb4\xfc\xc6\x99\x41\x4a\x46\xc8\x06\x64\x0d\x0f\x8c\x4d\xd9\x13\x8f\x6a\x59\x1c\xe1\xa9\xc5\x82\x30\x35\x66\x3c\x26\x63\xd2\xe0\xd2\x5c\xc2\x24\xb4\x10\x70\xc5\x63\xb2\xd2\x21\xe9\x99\xe9\x4f\x60\xba\x91\xf9\xc4\x6f\x07\x24\xf8\xfb\x6c\x6e\x6f\x7d\x28\x53\x5a\xf3\xc8\x3d\xfa\xec\x26\xe3\xde\xd4\x99\xea\xc2\x44\x0f\xe0\x42\xb0\x03\x68\x76\xe8\x25\x58\x39\xf7\x7a\xf5\x38\x56\x1d\x01\xfa\x65\x3d\x73\x7b\x59\x05\xb8\xba\x50\xfb\x44\xd0\x19\xd5\xf2\x7b\x77\x87\x2d\x70\xc2\x4d\xbc\x19\x06\x64\xb4\x93\x3b\xa3\x58\x0a\x07\xb4\x72\xe8\xe9\xaf\x70\x42\x4e\x78\x5e\x15\xe0\xed\x02\x50\x19\xba\xfb\xad\xac\xbe\xd0\x7c\x78\x66\x32\x00\xc9\x9c\x9a\x9c\xfb\xc1\xe9\x05\xd2\xa7\x83\xa7\x06\x98\x0a\x16\x2d\x57\x73\x2e\xe8\xaf\xad\x19\x4a\xed\x32\x7a\xe1\x69\x2d\x12\xba\xcc\x38\xcb\xd2\x3a\x10\xab\x11\x29\x54\x49\x2b\x69\xd2\x99\xd0\x24\x07\x0c\x56\xcd\x66\xa7\x79\x62\x0a\x37\x44\x5c\xc4\xa6\x72\xba\x2c\xa5\x8f\x41\x18\xae\x13\xef\xb1\xf2\x0d\x52\x0b\x55\x69\x4b\x43\x18\x0b\xce\x52\x01\xf4\xaf\x39\xc9\x77\x94\x81\xf7\xa6\x31\xcb\xf7\x78\x26\x8b\x20\x64\xb3\x36\x9a\x37\x17\xeb\xfb\x0f\x3d\x53\x19\xe4\xac\x3a\xcb\xa2\x87\x80\x32\x2a\xb9\x29\x0c\xba\x96\x45\xe7\xd6\x40\xdf\xef\xc0\xa4\xf3\x1a\xf1\x1c\x75\x19\xa9\x81\xfd\x58\xf2\x7b\xf2\x19\x9c\x55\x16\xf1\x42\x76\x12\x57\x43\xa0\x22\x7d\xbc\xa0\xc9\x64\x03\x26\x57\x17\xaa\x97\x46\x45\x17\x06\x14\xcf\xd6\x1a\x92\xa9\x15\x87\xb4\x8b\x67\x41\x01\x21\x6e\x51\xbc\xec\x6b\xe0\xba\xeb\x22\xe4\x31\x5a\x4a\x31\x62\x2d\xc4\x75\xb8\x25\x5c\x34\xf3\xf8\x35\x0c\x10\xb6\xa1\x72\xd7\x75\xbf\x7d\xdb\x89\x30\x2c\x69\x5f\x8f\x44\x1d\x1e\x66\xe5\x61\xf0\x95\x40\xde\xc6\x80\xe8\x45\x9b\xd7\x3b\x19\x9e\x1c\xc7\x11\x8e\xe6\xad\x93\x9a\x70\x9e\x10\xcc\xda\xa4\xd7\xc6\xc7\xd5\x23\x62\xc0\x4d\x81\x75\x27\x09\x20\xfc\xba\x25\xb0\x55\x21\x0b\xf1\x9d\xc5\x80\xcc\x6e\x78\xb8\x89\x0d\x74\x03\x55\x84\x39\xcb\x0f\x65\xb3\x84\x54\xd7\xca\x42\xe8\x1f\xd8\x4e\x92\x28\x4f\x82\xb2\x90\x19\x11\x7a\xd4\x7a\x89\x9f\x08\xd3\x3a\x83\x1d\x87\x73\x66\x3c\xbb\x84\x68\x5f\x0c\xea\xc0\x77\xed\xfc\x69\x90\x75\x18\x8f\x18\x1c\x5c\x5e\x3e\xac\x9a\x56\xa5\x56\x33\x42\xbb\xd4\xc6\xa7\x33\x10\x22\xd6\x3e\x9e\x77\x65\x33\xf1\xda\x67\xd2\xf4\x3d\x86\x18\x83\xad\x5d\x6b\x81\xfb\xa5\x80\x6a\x30\x1b\xeb\xe0\xb8\x5e\xc9\x88\x0c\x51\x1b\xe5\xb0\xd3\x20\x68\xa3\x0d\x0e\xea\x45\xef\x92\xa2\xfc\x85\xbb\x0d\x3a\x0e\x65\xa9\xab\xba\xa3\xe3\x19\xac\x93\xcb\xce\xed\x85\x0d\xd9\x2e\xbb\x6c\x7d\x7e\x4f\x11\xe6\x68\x0b\xbc\x2a\x81\x01\x9d\x00\x72\xca\x7f\x32\x1a\x36\x95\xc6\x02\xe6\xca\x5c\xa4\x99\x5a\xd8\xaa\x68\x70\x2f\x86\x39\xbd\x06\xf1\xad\xc9\x3d\x5c\xbd\x23\xe3\x92\x83\xb8\xa9\x33\xe8\xc8\x9a\x15\x1a\x9b\x74\x0b\x1d\x22\x88\x54\x10\x1b\xda\xa2\x41\x4c\x81\xd9\x31\x4e\x5a\x6d\x59\x3b\x60\x9a\x90\x66\x5b\xa0\x34\x58\xf0\x57\x25\x72\xa2\x79\x17\x4e\x92\xca\xbc\x30\xa4\x43\x2b\x5f\x64\x6e\x52\x54\xc2\xed\xee\xac\x4e\xf0\x84\xac\xe5\x9e\xbe\x30\x1f\x2c\xa5\x22\x78\x05\x22\xbb\xb3\x2c\x59\x74\x8b\x28\x0f\x43\xef\x1a\x41\xd2\x56\x0d\x2c\x84\x56\x5b\x7a\x37\x95\xe1\xc9\x36\x1b\xa2\x24\x51\x2e\xa8\x5a\x8c\xad\xd1\xaf\x3b\xd3\xba\xb3\x5f\x9e\xda\x0f\xbb\x68\xd4\x27\xc8\xf5\xe7\x8c\x8c\x70\x4f\x09\x6a\x2a\xe8\xd8\x29\x74\xd9\x6e\xad\x25\x37\x82\x27\x2d\x5b\x58\x87\xde\xd4\x6d\xa8\xba\x8b\x4d\x87\x67\x2b\x73\x8c\xf9\xd4\xe1\x22\x75\x5f\xd8\x6a\xc9\x92\x35\xac\xa5\x0e\x7e\x39\x13\x94\x0b\x5b\x19\xa4\x4b\x50\x5b\x8a\x3f\x8f\x33\x2c\x70\x92\x90\x84\xca\x74\x73\xdb\xee\x9f\xfe\xb8\x74\xb4\xa7\xa6\x82\x8d\xb4\xf5\xa0\x3e\xd3\x34\x4f\x11\xcb\xd3\x89\x95\x72\xb1\x7c\x0c\xc1\x2f\x5d\xaa\xbe\xc1\x70\x72\x03\x2c\x01\x06\x88\x00\xce\x74\xc4\x02\x60\x6b\x6b\xaa\xc0\xd1\x9c\x92\x27\x80\xdd\x14\x8c\x48\x79\x84\xae\xb8\x22\x27\xe8\x12\x67\xf7\x20\xa8\x99\x92\x92\x33\x63\x1d\xc7\x12\x69\xa9\x35\x67\x54\x1d\x8c\x98\x45\xc3\x76\xab\x72\x1c\x71\x66\x10\x51\x23\x58\x58\xdf\x04\x98\x7b\x1d\x34\xa8\x72\x89\x8d\x54\xb6\x2c\xb6\xc0\xcf\xe3\x20\x7a\x75\x6c\xb2\x03\xd6\xa0\xe3\x5b\xfc\x6c\xe2\xb5\xcf\xb0\xc2\xa6\x5a\xec\x32\xc9\xdd\x06\x44\xd9\x0a\x42\x06\x08\xd8\x05\x8e\x70\x8b\x46\xe1\x6b\x9f\x99\xe8\xd4\xaf\xe9\x11\x39\x42\xdf\x25\x7c\x22\x0f\x90\xf4\xa0\xd9\xf0\x50\x12\x25\x0f\x8c\x83\x0a\xfe\x6d\x52\xc1\xbe\x71\xab\x5f\xf0\x7d\x28\xfb\x37\xa5\x9f\x0d\x08\x86\xfc\xd3\xc9\xf1\x71\xba\x38\x9c\xe4\xd1\x23\x51\xfa\x2f\x90\x29\x1a\x57\xc8\x21\x48\xe1\x26\x3c\xaa\x55\xab\x53\xc7\xb2\xea\x44\x91\x36\xad\x46\x12\xc0\x4d\xd7\x57\xba\x2f\xac\xea\xa0\x8f\x38\x6b\xae\x1a\x69\xa7\x2c\xf2\xb6\xe3\x55\x02\x5c\x7e\x1d\x6d\xc5\x14\x8e\x0d\x71\x9e\xa7\x09\x9e\x55\x54\x96\x35\x94\x94\xeb\x94\x5a\x2a\xd2\x73\x87\x78\x0b\x7d\xca\xca\x51\x66\x5f\x39\x77\x24\xb8\x15\xad\xbb\xe5\x68\xc4\x06\x12\x3d\x13\x53\x0f\x16\x72\x12\xc1\x3b\x91\x53\x39\xf7\x19\x89\x60\x2f\x85\x46\x0d\x1c\xae\x41\x4d\xb0\x8a\xa3\xd3\xac\x9c\xff\xc6\x6a\xa0\x38\x91\xe4\x40\x37\x0c\x90\x68\x2e\x90\x10\x3d\x0b\x9c\x65\x44\x8c\x98\x85\x36\x05\x00\x6f\xce\x6d\x90\x48\x5b\x34\x79\xaf\x51\xbe\xae\x46\x19\x26\x7d\x94\x13\x16\x57\x9d\x6f\xc8\x6f\x5c\x9a\xea\xb1\x24\x37\x50\xcb\xa2\x5d\x23\xbd\xdf\xde\x6c\xdc\x71\xcc\xab\xb4\xf3\x41\x25\x4c\x1f\xca\x4d\xa7\xa0\x40\xca\xa2\xaa\xa6\xb3\xf5\x79\xf5\xbd\x24\xe6\x00\x32\x36\x7c\x1c\x73\x22\x03\x23\x3e\xf2\xb6\xb8\x84\x4e\x89\x96\x3e\x46\x4c\x93\x71\xe8\x70\x30\x00\xdb\x0e\x6f\x5b\x77\x1a\x09\x2e\xa5\x8d\xbc\x37\xed\x2c\xcf\x9f\xda\xa2\x96\x9f\x41\x09\x3f\xbf\xbe\x1a\xd7\xab\xfa\x05\xcf\x5c\x7d\x3f\xfb\xb0\x31\xc9\xbe\xb5\xa9\x95\xd5\xfc\x8a\xb5\x58\xa3\x9e\xdf\xf1\xe9\xc5\xb9\x2f\x62\x55\xe9\xba\x5e\xd0\x2f\x44\x56\x6f\x2f\xe9\x57\x9f\x71\x50\xdc\xaf\xd2\xc4\x92\xf2\x7e\xab\x37\xab\x1c\xef\xbb\x0d\x6c\x5e\x65\xeb\x57\xf2\x87\x32\xcd\xac\x0a\x4b\xdf\xd1\x36\xb5\x5c\x2b\x11\x08\x8c\x2f\xed\x61\x07\xc1\x4b\xbf\x25\x15\x4e\xb3\x30\xe5\xd2\xe1\x86\xda\x69\x9a\xa3\xd6\x76\x09\xbe\x2a\x9e\x79\x84\x4d\x34\x4b\x75\x70\xb5\xad\x58\xcf\xe3\x75\x6f\x61\xd2\x77\x11\xc6\xfc\x7a\x39\xcc\xc9\xa2\x88\xda\x93\x56\x76\x73\x25\xb8\x5b\xec\xfe\x13\xe2\x21\xe1\x5b\x37\x74\xdb\x24\x45\x0f\x1d\x25\x08\x96\x36\x1c\x03\x72\xf9\x2a\x79\x3e\x6b\x98\x87\xfd\x98\x4d\x36\xf0\xa1\x2f\xc2\x10\x5c\x35\xb6\xae\x58\xe4\x0e\x22\x15\x82\x3c\x11\x01\xb4\x63\x63\x7e\x58\xf9\xa8\xe2\x44\x10\x1c\x2f\x82\x15\xf1\x01\x07\xa6\x67\x30\x8f\x49\x9a\x6a\x05\x1e\x54\x13\xc6\x0f\x79\xe6\x74\x96\xd2\x5b\x50\x41\x83\x4e\xf5\x8d\x15\x84\x2b\xe8\x2f\xd8\x21\xf9\x4c\xa5\xd2\x72\x45\x43\xac\xa6\x6b\x04\x24\x1e\xa8\xab\x35\x27\xf6\x86\x1b\x7d\x18\x7c\x77\x7d\x7b\x3f\x3c\x1b\x7d\x28\xa2\xf3\x5d\xfa\x99\x47\x84\x72\x00\xff\x9c\x8d\x98\x0f\xa8\xf5\x00\xc8\xb0\x97\x08\xc7\x71\x81\x6c\x60\x95\x48\x23\xb3\x2d\xe5\xc8\xc1\xa9\x58\x19\x4a\xbb\xa4\x99\x07\xc8\x41\xda\xd7\x93\xb5\xc4\x75\x56\x3a\x39\x26\x93\x6a\x49\xca\xcb\x8e\x2e\x9b\x10\xbb\x55\x19\x5d\x9b\x28\x07\x2e\xc8\xc8\xb3\xd3\x95\xe0\x76\x3e\xc6\xe6\x12\x5e\x8f\xdb\xb9\x0d\xd9\x60\x53\x3f\xd2\xcf\x24\xbe\x6d\x91\xaa\x76\x92\xd1\xd2\x29\x12\xb0\x71\x17\x72\x46\xd7\xd1\xf8\xfd\x54\x1e\xf4\x77\xdd\xd9\xd2\x75\x01\xc9\x56\xc0\xab\x02\xb6\xaa\x42\x18\x45\x44\x28\x4c\x19\x9a\xc2\xc1\x66\xd1\x02\x01\x60\x07\x01\x1f\xf6\x1f\x51\x4a\x19\x20\x07\x2c\x5b\xda\x87\xf2\x3c\xd6\x10\x5a\x2f\xcf\xaf\x1e\xee\x4b\xa2\xea\xf7\xd7\x0f\xe5\xa2\xee\x83\x9f\x97\xca\xaa\x95\x16\x96\x05\x0b\x05\x53\x2c\xb2\x10\x2d\xca\xac\x5f\x99\xc6\x89\x26\x0b\x45\x1e\x6e\x2f\xb6\x92\xef\x9a\x9d\x65\xad\x18\xe1\xa1\x74\xd5\x8c\x88\xd0\xe5\xd3\x98\x44\xab\x50\x4c\xbb\xd3\x91\x89\x82\xd2\xeb\x60\xad\x89\x16\xe1\x0c\x4b\x94\x61\x61\xfd\x50\xb1\x09\x80\x2a\x57\x06\x33\x9a\xd7\x32\x04\x89\x4f\x44\xfd\xa8\xaf\x3e\xce\x76\x91\x05\x61\x45\x59\xf0\x8f\x92\xf1\x93\x69\x78\x8d\x93\x66\x87\xb2\x24\xd5\xc5\x09\xcb\xd0\x03\xb2\x3d\x84\xb8\x0b\x47\xa6\x42\xfc\x40\x37\x07\x2b\xe2\xe2\x09\xb5\x4a\xca\x99\xa6\x48\x03\xa7\xea\x30\x58\x83\xe6\xf8\xd4\x7c\xdc\x11\x91\x2e\x88\x6a\xd7\x6d\x15\x4b\x89\x06\x37\xe7\x0d\x6b\x7d\x51\x75\x21\x7d\x59\xe5\x6c\x12\xef\xcd\xda\x35\x48\x52\x90\x9e\xb8\x17\xa8\x48\x76\xa6\xdb\xc1\x20\x19\xa7\xff\x4d\x39\x92\x60\x1f\xd0\x7a\x9b\x54\x86\x52\xda\xf1\x0a\x60\xde\xf5\x32\xf1\x8a\x65\x58\x13\xf4\x28\x1c\x90\x4d\x03\x09\x81\x7e\xea\x31\xc6\x07\x21\xf0\x0f\x37\x05\x73\x6d\x6c\xc1\xce\xc0\x90\x8a\xd9\x74\x41\x43\xfa\xd1\x50\xb4\x07\xcb\x00\xf8\x0f\x57\x90\xd1\xc5\x06\xdb\xdc\xf5\x70\xba\x21\xb5\xad\x07\xa0\x54\x8c\xcf\x99\xbf\x2d\x16\x35\xce\xb0\xb5\x3b\x80\x12\xe5\x2a\x25\x34\x15\xd6\x3b\x1a\xb1\x20\x60\x45\x1a\xb5\x47\x9f\x11\x57\x9c\x04\x2a\xde\x32\x00\xb6\x86\x24\x1d\x2f\xfc\x94\x76\xa0\x9a\x22\xaf\xe6\xe5\xf2\x22\xb5\x7e\xec\xe9\x94\x73\xec\x12\x11\x9d\x05\xc5\xc6\x01\x86\xf6\x25\x68\x2f\x28\x28\x60\x3b\x06\x73\x34\x18\x2d\x70\x50\xae\x2e\x48\x5e\x8f\x39\x91\xec\x2b\xe5\x53\x3d\x69\x62\x4b\xa2\xe0\xaa\x7b\x40\x4b\x75\x98\xda\x96\x97\x1f\xf0\x1d\xa0\x33\xad\xab\x38\x04\xc7\x6a\xa5\x99\xca\xf9\x78\x81\x12\xc2\x58\x24\xe8\xb4\xcd\xaa\xfe\x39\x23\xd1\x26\x10\x32\x37\x58\xe0\x94\x28\x22\x96\x85\x23\x95\x8b\x49\x83\x88\xe3\x76\xd0\xf6\x6b\x76\xd1\x54\xda\xa8\x96\x64\xf1\xda\xed\xc5\x2a\x48\x18\x3f\x8b\xb5\xd0\xaf\xf4\x34\x7e\xb4\x96\xff\x35\x67\x61\xfb\x29\xa6\x61\xa3\xad\x02\x04\xa0\x6d\xe7\xf4\x3a\x50\x28\xf7\x35\x50\x91\x52\xb8\xd0\x9e\x60\xa0\xac\x1e\x65\x1b\xf8\xc9\x2a\x5e\xba\x13\xde\xed\x32\x1c\x5c\x0a\x6d\xe5\x50\x95\x72\x27\x80\x4a\x40\xa5\x32\x38\x20\xcd\x00\x26\x20\xb4\x34\x45\x48\x06\x6e\x3f\x0b\x6f\x57\x18\x74\xad\x64\x55\x2d\x2e\x55\x59\xae\x15\x3c\x6e\x57\xe0\x0e\xbd\x44\xb3\x6b\x89\x66\x15\x29\x97\xa2\x6b\x35\x75\x12\x51\xc1\x99\xb1\x45\x9f\x2d\x40\x40\x79\x82\x90\x7b\x64\xaf\x48\x5b\x39\x16\xae\x7e\xca\xfc\xbf\xca\x1c\xdc\x11\x75\x48\xaa\x4d\x49\x95\x47\x81\x0b\x0a\x3c\x50\x49\x28\x0d\xd8\xb8\x1a\x18\xad\x09\x83\x34\x56\xfe\xf3\x2b\xe3\xc0\x82\xe4\xe6\x05\xcf\xd1\x33\x95\x73\xa4\xf8\x88\x41\x9c\xa0\xf7\x06\x28\x8e\xcc\x8b\x07\xf0\x16\xc0\x20\xc8\x7c\x92\x52\x85\x70\x30\xc3\x92\x49\xf2\xc0\x9e\x67\xfd\x01\xcc\xb8\x31\xcf\xbe\x09\xa2\x67\xc5\xa1\xd9\xc0\xbe\x56\x34\xb2\x6d\x2a\x7d\x10\xd3\xfc\xb2\xc9\xf4\x81\xc6\x13\x6a\x98\x8d\x67\xae\xcf\xa6\x47\xcd\xd6\x06\x0b\x1a\x0a\xc8\xae\x54\xaa\xca\xdd\x62\x0d\x3d\x2b\x32\xe9\x8b\x8d\xe8\x94\x4a\x5f\xbc\xbe\x8b\x5c\xfa\xb6\x32\x65\xcb\x72\x2b\xdd\x27\x2d\xf6\x6f\x97\xb3\xab\xb8\x0b\x9c\x0f\x25\xa5\x9b\x56\x49\x69\xdf\x50\xcd\x8a\x84\x80\xcd\xc3\xcb\xd7\x51\x07\x8b\xfc\xac\x90\x8a\x82\x74\xcb\x32\x26\x0c\xa9\x72\x7e\xc6\x15\xe4\xd4\x44\x50\xc2\xbd\x96\xe7\x39\x62\xcd\x12\xc8\x72\x9e\xb8\x6d\x8a\xc6\x4e\xd1\xcf\x82\xf3\xe7\x66\x61\x2d\x5a\x3f\xf9\x20\x37\xa3\x2c\xdb\x62\xec\x55\x11\xb3\x70\xf1\xb5\x05\x27\x69\xc1\x63\x93\x84\xe3\x86\x53\xd9\x3c\xf4\x5a\x02\xc5\xca\x73\x61\x2f\xdd\x1d\xaa\x76\x35\xee\xdc\x39\xdf\xc4\xcb\xc8\x96\x1b\xbb\x80\x69\xa7\xc6\x57\x3c\xb5\x9b\x14\x99\x05\x50\xd1\x9d\x41\xa1\x56\xd1\x09\x74\xe3\x07\xe0\xdd\xb5\x43\xc7\x26\xd2\xc5\x03\x74\x57\xb6\xa4\x34\x61\x5b\xbc\xff\x05\x26\xbd\x6e\x61\xe0\xc0\xdb\x28\x6c\xb4\x2f\x0d\xed\x06\x50\x11\xd8\x06\x49\x56\xf8\xb0\x17\xed\x72\x16\x13\xc1\x08\x56\xf3\xd7\xcb\xb1\x38\xdd\xd6\x38\x1d\x8c\xef\x65\xf3\x2d\x4e\x77\x52\x15\x3e\x1c\x6e\xb9\x42\xfa\xca\x71\xea\xd7\xbb\xd8\x89\x6c\xe8\x81\xaf\x11\x5c\x53\x1c\x1b\x8c\x86\x01\x04\xcd\x3a\x54\xba\x55\x1a\x46\xb3\x32\xf7\x32\x09\x29\x0d\x56\x9f\x5a\x2a\x8a\x3e\xec\x61\x65\xe5\x15\x4b\xf2\x45\x64\x7e\xbc\x7c\x32\xc2\xb2\x1a\xce\x79\x90\x9f\x00\x85\xb4\x15\xa6\xcc\x72\xaf\x65\x29\x09\x5a\xa2\x4c\x71\x53\x16\xc2\xde\xe7\xb7\x7c\xf1\xe9\x2d\x7d\xb2\x43\x9f\xec\xd0\xb0\x47\x7d\xb2\x03\x42\xfb\x96\xec\xb0\x4a\x01\x5d\x66\xfe\xf4\x1e\x39\xa8\xb5\x59\x2a\x70\x63\xf6\x77\x85\x16\xb9\x79\x40\xbf\xb3\x20\x86\xd1\x50\xf6\x17\xfb\x43\x63\x40\x54\xed\xb3\xea\x6c\x43\x6b\x26\x5b\x54\x9d\x02\x58\xc4\x89\x45\xa1\xb3\xe1\xca\x65\xeb\xd3\x32\x43\xe9\x88\x7d\xcf\x9f\xc9\x13\x11\x07\x08\x2b\x94\x72\xa9\x80\x0f\xbb\xe8\x18\x38\x08\x25\x40\x73\x13\x05\x81\xd1\x15\x4e\x49\x6c\xea\x1d\x06\x41\x8d\xd6\x5c\x6b\x1d\xad\x4d\x60\xab\x80\x1b\x6a\xb6\xc1\x45\x4d\x8c\x98\x09\x34\x34\xc1\x6d\x20\x2b\x50\x37\x31\x20\x98\xdf\x79\x37\xf0\xef\x8e\xd0\xbd\xbe\x9f\xa8\x2c\x8f\x37\xc0\x5e\x6b\x1b\xdb\x88\xcd\x04\xcf\x33\x6f\x41\xe3\x13\x53\xf8\xd6\xc4\x3e\xd5\xdd\xc0\x30\x18\xe7\x03\x8e\x70\xac\x35\xf1\xe5\x84\xf3\x26\x31\xa8\x1b\x01\x18\x85\x04\xa4\x8f\xa1\x0f\xac\xb3\x81\xee\xc6\x7b\x1b\xc0\xb6\x2c\x83\x61\x7f\x21\xd7\xf2\x19\x91\x60\x13\xf2\x36\xf7\x52\x16\x79\x19\xa9\xa0\x71\x9c\xcb\x2c\xa2\xde\x6b\xe1\x2c\xfb\xcd\x20\x08\x45\xe7\x36\xe2\xcb\xa4\xa8\xda\x7b\xe2\xc5\x6c\xa5\x9d\x63\x67\xdb\xf8\xc5\x4d\x2e\x32\x0e\x92\x58\xb2\x70\xa0\x0d\x16\xe7\x2d\xe3\x59\x6e\xa2\xda\x68\x18\xe4\xd4\x48\xd9\x54\xaa\x4b\xac\xa2\xb9\xe6\xdc\x05\xde\xd9\x8e\xa2\xfd\x0a\xae\xfc\xb2\xf6\xd3\x86\x19\x9c\x86\xbd\xb7\x38\x14\x3a\xd8\xd3\xcd\xbd\xef\x82\xeb\x9d\x24\x91\xea\xfe\x8c\xd3\xcd\x96\xb3\x0e\xac\xa2\xee\x13\xfb\x44\x4f\x74\x15\x15\xad\x1a\x7f\x37\xda\x2a\xd7\xdb\xda\x79\x1c\xe1\x16\x00\x32\x67\x16\xae\xab\x78\xd1\xd6\x67\x6d\x71\xfe\x0b\xba\x59\x0e\x90\xc5\xc8\x7f\xd2\xe2\x88\xb7\xb7\xa6\x38\xd3\x4a\x84\xe2\xfa\x96\x14\x33\x23\xc7\x9a\x28\x59\x84\x51\x2e\xa8\x3b\xfb\x95\x8c\xf0\x76\xea\x00\xfb\xe4\x71\x58\x4f\x29\xc2\x41\xa9\x39\xe3\xee\xc7\x91\xca\xb1\x0f\x4b\x04\x9a\x70\x25\xd0\x4d\xf6\xbb\x73\xab\x0b\x27\xde\x35\xec\xe9\x4a\xc2\xde\x62\x97\x71\x13\xba\x61\xa7\x93\x46\xd9\x2c\x80\x46\x6c\xb6\x11\x77\xa9\x7c\xd0\xf8\x65\xb7\xea\x0d\x8d\x9f\x3a\xd9\x67\x93\x6f\x97\x40\x37\x6d\x1c\x99\x5d\x8a\x72\xb7\x61\xb0\x56\x7a\x0a\x41\x2b\xad\xfd\x0e\xb0\x67\x29\xb8\xe9\xb1\x95\xa6\xfe\xcb\xff\x65\x2a\x65\x99\xa5\xf9\x2f\xc4\xc5\x88\x99\xdf\x0f\x7c\x95\x0a\xfd\x42\x01\xff\x8a\x53\x52\x00\x64\x8a\x32\x94\x1e\x00\x8a\x58\x28\x34\x03\xf5\xeb\x41\xfa\xf5\x18\x1e\xf3\x09\x11\x8c\xe8\xa1\x39\xe8\x01\xcf\xcc\x52\xcc\xf0\x0c\x80\x85\x0f\x20\x2e\x0e\xc4\xd5\x42\x15\x31\x24\x6d\xaa\x1d\x02\xb7\xd2\xcc\xd2\x66\xdb\x16\x55\x7f\xa1\x4f\x23\xca\x5a\x5c\xd3\x22\xb8\xa2\x99\xfa\x6f\x6d\xff\x9b\x49\xec\xf7\x83\xbb\x1f\xc6\xb7\xc3\xbb\xeb\x87\xdb\xd3\x92\xd8\x7e\x7a\xf1\x70\x77\x3f\xbc\x6d\x7c\x56\x64\xaa\xfe\xf5\x61\xf8\xd0\xf2\xc8\x35\x70\x31\xf8\x6e\x58\x2a\xa1\xfd\xd7\x87\xc1\xc5\xf9\xfd\xcf\xe3\xeb\x8f\xe3\xbb\xe1\xed\x8f\xe7\xa7\xc3\xf1\xdd\xcd\xf0\xf4\xfc\xe3\xf9\xe9\x40\x7f\x19\xbe\x7b\x73\xf1\xf0\xe9\xfc\x6a\xec\x82\x8e\xc3\x47\x3f\x5d\xdf\xfe\xf0\xf1\xe2\xfa\xa7\x71\xd0\xe5\xf5\xd5\xc7\xf3\x4f\x4d\xb3\x18\xdc\xdd\x9d\x7f\xba\xba\x1c\x5e\x2d\x2f\xd5\xdd\xbc\x1a\xad\x55\x80\x83\x8b\x2c\x30\x1a\x05\x62\xd2\x64\x61\x49\x9b\xfe\x0a\xae\x8b\x1b\x43\x8f\x87\x07\xee\x2f\x53\x58\xfb\x50\xb3\x40\xe7\x15\x2b\xb8\xc7\x88\x79\xb7\xa5\xbf\x54\x15\x9e\x49\x97\x78\x5c\x1a\xed\x09\x1a\xc0\x59\x01\x85\xa1\xd4\x29\xe4\x35\xf8\x91\x3a\x47\x37\xd0\x61\x42\x53\x0a\x3e\x6f\x74\x88\xaa\x1b\x5e\x6e\xd0\xce\x09\x86\x60\xbd\x76\xf1\xb2\xd3\x20\xab\x39\xcd\x40\x29\x27\xc8\x71\x68\x62\xcc\x09\x06\x79\x76\xc1\x70\x4a\xa3\x6a\x02\x06\x80\xaf\xa2\x02\x68\xa4\xda\x62\x89\xc0\xca\x2d\xcf\x09\xfa\xe1\x2f\xc5\xa0\xc0\x83\x61\x35\xef\xbc\x56\x4f\xcf\x3e\x10\xb9\x59\xd5\x55\xe4\x59\xea\xc9\x1d\x73\x6b\x5a\x86\x73\x6b\xeb\x76\x83\xbb\x29\x67\x01\xd8\x58\xc9\xf7\xa4\x8f\xb7\x99\x51\x85\xc6\x4f\xd0\x1d\x00\x9d\xc8\x42\x75\xd7\xbb\x98\x25\xf9\x8c\x32\x44\xd3\x2c\x21\x45\xc5\xf7\x09\x99\xe3\x27\xca\x5d\xf1\x0a\x53\xe3\x03\xd6\xd1\x8a\x56\xe8\x10\xb5\x1e\x94\x13\x34\x88\x63\x59\x66\x70\x25\xca\x71\x2c\xf3\xb0\x3c\xec\x10\x1f\x8c\xc5\x9e\x6d\x56\xe8\xa8\x38\x72\xb0\x62\xbb\x87\x72\xa9\xb3\xc3\xf2\xdd\xbb\xc5\xf5\xaf\x57\x70\xec\x48\x79\xbc\x91\x30\x70\x8f\xe5\xa3\x63\xcd\xab\x04\x02\x07\xaa\xb3\x5d\x8f\x16\x5d\xa7\x6b\xa7\x7e\x65\xc7\x70\xd0\x36\xeb\xb3\x15\x13\x7a\x45\x97\x6e\xc6\x49\xa5\x70\x57\xe7\xfe\x4a\x85\xbf\x1a\x3b\xdb\xa9\xb7\xa7\x59\x1a\x83\x23\x39\xf6\xf4\xbf\xc6\x3c\x6e\xe0\xd3\x6b\xff\xe5\x52\x91\x6d\x1c\xac\xdb\xba\x3e\xa0\x5a\x8a\xae\xf5\x03\x2d\xa5\xc3\x1d\x81\x3b\x75\x17\x06\xa1\xec\x02\x8d\xc0\xdd\x87\x29\xb3\xc5\x78\x88\xf7\x47\xb9\xf2\xd3\xfa\x1c\xfb\x02\x71\x78\xc2\x9f\x4a\xca\x65\x4a\xa4\xc4\x2d\x70\x25\x81\x49\x6c\x1b\xc6\xe0\x4f\xa8\xfd\xb0\x23\x3d\xb9\x33\x79\xaf\xbf\x5a\x66\xf4\xb9\x0d\x35\x63\x37\x51\x2d\xb0\xc6\x2e\xce\x16\x5d\x9b\x6c\x3b\xcd\x5f\x0e\x8a\x50\x1a\x2e\x82\x08\xa3\x36\xf7\x4f\x47\xb3\x5a\x75\xc1\x1a\x6b\x2c\x85\x2e\xbc\xf5\x23\x70\x82\xd6\x37\xc6\xc3\xb6\x7e\x15\x5c\x5e\x9f\x35\xa8\xae\xe4\xef\x0c\xeb\x4f\x47\x3c\x4d\x8d\x5c\x50\xb2\xa5\x1e\x20\x6c\x92\x1c\x0b\x69\x4a\xe6\xd1\xdc\x78\x99\xf4\x95\x71\x30\x62\xcf\xc1\x86\x94\xc2\x80\x07\x61\x4b\x80\x25\xfa\x59\x1f\x37\xfa\x54\x0a\xae\x06\x91\x91\x42\xa4\x6f\x40\x08\xc6\x21\x58\x14\x8f\x5a\x41\xe0\xc1\x7e\x6d\x41\xea\x1b\x54\x0a\xac\xac\x6f\x5b\xbd\x40\x3f\xb7\xa0\x4c\xdf\x16\x9a\x72\xd7\x21\x04\x95\x02\x9b\x46\xb0\x83\x42\x81\xaf\x0a\xee\xed\x93\x35\x4d\x6e\x6f\x3a\xb1\x08\x15\x7a\xba\x6e\xb5\x7f\xef\x66\xf4\x7b\xe3\x77\xc8\x5b\x20\x4d\x82\xd6\x3c\xbe\x37\x3a\xd4\x32\xab\x4b\xb5\xb7\x81\x18\x12\x1d\x1a\xcc\xc0\xaf\x20\xce\x72\x70\x73\xfe\xd5\x01\xfa\x2a\xcc\x35\xfb\x6a\xa3\x03\x68\xc7\x6d\x8b\x05\x82\x36\x55\x4a\x38\x28\x1f\x3b\xd8\xab\xca\x49\xb4\x7b\x66\x0f\x22\x6a\x3b\x87\xfa\xcb\xd2\x37\xe0\x9c\x86\xe2\x77\xc6\x7f\xeb\xc3\x9d\xad\x0b\xc8\xc8\xb8\x54\x36\xac\x5d\x3c\x62\x93\x45\xd5\xc9\x73\xe0\xbd\x3c\x9d\x4f\xe9\xd6\x05\xdd\x74\x7b\xf5\xe4\xe4\x1d\x87\xe1\x2e\xbf\x0f\x56\xa4\x3b\x0f\x4c\xc4\x35\x9f\x06\x5c\xac\x2d\x4a\xa1\x8f\x5f\x6f\x9a\x55\xc9\x5e\xe6\x16\xb3\x71\x53\x56\xc9\x3f\xef\x8d\xdc\x3a\x04\x7d\x0f\x9a\x56\xc4\xc6\xfb\xb7\x08\xd7\x3d\x95\xbd\x2c\x95\xed\x22\xdf\xa1\x3c\xb8\xf5\x2f\xd0\x53\x23\xc7\x05\xcd\x38\x83\xab\x56\x26\x3c\x83\x2f\x55\xfd\x5b\x5d\x2e\x77\x4d\x9f\x6f\xb0\x26\xab\x9d\xbe\x77\x26\x70\xc0\xb8\x5d\xeb\x63\xad\x0e\x75\xa0\x6c\x09\x22\x4e\x4d\x6e\xa3\xa2\x29\x39\x40\x9c\x25\x8b\x20\xd8\xc1\x9e\x57\x20\x37\x13\xa3\x34\x27\x54\xb8\x4e\x2c\xc2\xe0\x5a\xc9\xf0\x6b\x4a\xe3\x6d\x34\xb2\x45\xa4\xc9\xd5\xe0\x72\x78\x36\x1e\x5e\xdd\x9f\xdf\xff\xdc\x80\x1e\x59\x7e\xec\x00\x24\x83\x17\xee\x7e\xbe\xbb\x1f\x5e\x8e\x3f\x0d\xaf\x86\xb7\x83\xfb\x15\xe0\x92\xcb\x3a\x6b\x03\x2e\xcc\x65\x93\xfa\xb6\x0e\x78\xa1\x33\xf3\x36\xf4\x5e\x87\x98\x0c\x3a\xa1\xa4\x05\x66\xd2\x24\xfe\xb3\x98\x08\x14\x93\x27\x92\xf0\xac\x30\xab\x36\x2e\x58\x80\x3f\xd9\xd0\xfe\x32\x0c\x4a\x68\xb3\xba\xc6\x27\xc8\x54\x7a\x0b\x8a\xdd\xfa\x06\x41\xe4\xc3\x82\xb0\xaf\x14\x22\x9f\xb3\x84\x46\x54\x05\x89\x81\x5c\x58\xf7\x8a\x71\x1f\x42\x74\xea\x0a\xe2\xda\x59\x34\xca\xce\x75\xfe\xd0\x93\x5e\xd7\xf6\xfd\x89\xf2\x78\x68\x2b\xcb\x07\xed\x40\xb1\x6f\x71\x1a\xd7\xe0\xda\x36\x18\xdd\x4b\x98\x07\xea\x19\x3a\x36\xb9\xaf\x05\xca\xad\x79\x90\xab\x6f\xc3\x65\x71\x32\xa5\x73\xbd\x3c\x50\xa6\x1b\xa5\xbe\x71\xb8\x4b\xa9\xac\xe6\x0e\x70\x37\x6c\xec\xfa\x9a\x01\x0b\xb5\x6a\x31\xcc\xc4\x9c\x62\x24\x48\xca\x95\x56\xc0\x4c\x44\xc0\x81\x16\xaa\x28\x4e\xe8\xaf\x80\x50\x25\xc8\x51\x10\x41\xe1\x70\xbd\x0a\xf7\x81\x45\x8f\x38\x1a\xb1\xb3\xe1\xcd\xed\xf0\x54\x33\xa4\x23\xf4\x20\x01\x7c\xaa\x34\xf5\x33\x4b\xde\x46\x1c\x0b\x23\x19\x28\x93\x8a\xe0\xb6\x60\x30\x22\x04\x17\xdd\xf9\x83\xef\x6f\x08\xdf\x35\x93\x37\x3c\x2b\xd9\xa6\x9c\x01\xe0\xaa\xb5\x26\x72\x90\x33\xb0\xf3\x94\xac\x5b\xfc\x5c\x5a\x91\x10\x7c\x03\x24\x91\xf2\xaa\xbf\xe0\x6a\x03\x7c\x67\xf7\xf9\x95\xfa\xbc\x81\x6f\x97\xcd\xf3\x1e\x42\xec\xa4\x2a\xb0\x40\x0d\x5c\xa8\xaf\x79\x53\x99\x67\xab\xa8\x28\xde\x02\xa8\xa3\x42\xfa\x13\x32\xc3\x0c\x89\x9c\xb1\x0a\x38\x6c\x68\x69\xab\x07\xcd\xac\x7b\x54\xf5\x9a\xe1\x94\xe7\x0c\x94\x06\x08\x63\x6d\x18\x8c\xcc\x08\x53\x2b\x06\xf3\x56\x30\x2c\x95\xa1\xee\x2f\x12\x4b\xc3\x40\xdb\xc0\x58\x9a\xfc\x49\x50\x78\x79\xbd\x6b\xd9\x05\xe5\x95\x9c\x4a\xfa\x50\xf9\xfb\xb9\x59\xcb\xc6\xf2\x71\xeb\xee\xee\xb1\x7c\x5c\xdd\x55\x4c\xa2\xc7\x75\x2f\x9b\x6a\x66\x66\x62\xeb\x56\xd7\x8c\x7d\x0b\xfd\xd4\x16\x66\x81\x72\xe5\xd1\x23\xfa\xfe\xfe\xf2\x02\x4d\xa9\x96\x7b\xf5\xb5\x72\x85\xb5\x8c\xfd\x20\x12\x67\x17\xb6\xb6\xd5\x5c\x24\xfe\xee\x85\x8d\x77\xa2\x54\x20\x25\xe8\x1b\x0d\xcf\x88\x33\xf6\x0a\x8b\xb5\x57\x29\xcc\x22\x30\x8b\x79\x6a\xe6\x71\x2c\xf3\xe9\x94\x7e\x3e\x52\x58\x7c\xd3\xb2\x1e\x26\xaa\x62\xfc\x77\x3e\x19\xeb\x11\x6d\x79\x11\x37\x35\x87\x6c\x39\x65\xbf\x6c\x76\x66\x67\xe6\xdd\xff\xcb\x27\x90\xeb\x9e\x09\x0e\xf8\x7f\xe0\x9d\xb3\x91\x0a\xf6\x15\x47\x49\x47\xc8\x25\x50\x95\x20\x4e\x22\x2e\x04\xb1\x29\xf2\xa6\xb2\x68\x86\x85\xa2\x60\xad\x75\x10\x29\x25\x6c\xfc\x62\x8b\xc2\x82\xdf\x73\x5c\xe0\x50\x4f\x08\x01\x07\x4f\x46\x93\xf5\x94\xde\xd3\x92\x6f\xb2\x72\x02\x6d\xe4\xa9\x45\xcd\x04\x83\xcc\x4a\x11\x6b\xf8\x44\x98\xda\x89\x7e\x02\x4d\x34\x24\xed\x77\xf3\x32\x98\x02\x9f\xe7\x67\xc5\xe5\xe6\x42\x7a\xc3\xa8\x26\x25\x30\xdc\xf3\x36\x51\xca\xba\xd4\xdb\x1c\xfd\x4f\x9d\x7d\xc7\xf0\x6a\x7d\x5d\x56\x84\xc6\xdb\xd5\x2e\x0a\x7d\x17\x61\xad\x0e\xd8\x7f\x43\x18\x1f\x49\x8c\x15\x23\x80\x8f\xb0\xca\x69\x75\xcf\x4d\x9f\x9a\xb6\x2a\x5d\xae\xdc\xf2\x0d\x30\x6b\x4a\xcd\x7c\x22\x90\xd2\xb9\x8b\x40\xf4\x75\x52\xf7\x61\x20\x0f\x22\x81\x10\xea\xa5\x56\x2c\x53\x64\x5c\x73\x3e\x2f\xd9\xe1\x0e\x32\xba\x19\x8c\x16\x1a\x49\x26\x48\xa4\xaf\xb2\x13\x74\x93\x10\x2d\x79\xe5\x5a\xfa\xca\x93\xc4\xe1\x7b\x2d\x97\x0e\xd7\xc2\xa4\x7b\xf1\x79\x05\xba\xc7\x92\x89\x39\x7c\xbb\xe5\x33\x0b\xd6\x60\xf7\x80\x0b\xc1\xfa\x82\x09\x19\x0c\x89\x65\x2d\x12\x38\xfc\xc2\xc4\xcd\x82\x29\x09\x97\x2e\x32\xfa\xab\x66\xbf\x82\xc8\x39\x6f\x4d\x72\x0c\x67\xfb\x32\x73\x70\x4b\xf9\x82\x93\x70\xf7\x61\x5b\x5c\x75\x07\xb9\xa6\x72\x07\x96\x44\x9c\x65\x53\xf4\xb5\x1f\x7c\xf4\x87\x45\x5b\xb5\x77\xab\x1d\x1a\xdc\x92\x85\xa9\x2d\x44\x3e\x2b\x5c\x17\x85\x32\xb3\x30\xbe\x57\xff\x79\x61\x40\x2e\x52\x02\xa8\x92\x45\xcd\x39\xa4\xef\xda\xb6\x2d\xd6\xf3\x1c\xe7\x62\x2d\x48\x8a\x02\xb3\x7c\x1d\xce\x6d\x93\x51\x8a\x61\xe9\x45\x68\x66\x97\xb6\x94\x04\x88\xd1\x36\xd4\x48\x96\x70\xe0\x2c\xd9\x98\x65\x6c\x54\xf1\xda\x99\xf2\xb6\x6e\x35\x90\x92\x0b\x51\xe6\xa5\xbc\x6b\x25\x0a\x2c\x4d\xa0\x47\x16\x5b\x1f\x59\xcc\xd6\x15\xf1\xb4\x07\x38\x80\x4a\x40\xe2\x7f\xe1\x40\xab\x0a\x0e\xd6\xe8\xbd\x2a\xf3\xa9\xb4\x3b\x9d\xd2\x9c\x4a\x5f\x68\x5e\x72\xb6\xa5\x07\x4e\x4f\x66\x31\x86\xc4\xd1\x6d\xa2\x70\x4a\xf3\x37\xde\x03\x68\x93\xc4\xc8\xa0\x17\x18\xdc\x63\xbb\x76\xde\x73\x92\x61\x41\x98\x1a\xb1\x5b\x3d\x0a\xf3\x45\x11\x89\xe1\xe2\x70\x1c\x16\x3d\x54\xac\x9d\x22\x6c\xbf\x82\x45\x6f\x0b\x84\x93\x63\xf3\x12\xa8\xa6\x2f\x98\x64\xff\x9d\x79\xc7\x60\x1e\x58\xcc\x1f\x3d\x55\x3a\x2d\xd4\x78\x2d\x40\x46\x73\x0a\x90\x03\x31\x91\xf6\x42\xa2\xca\x62\x4a\x78\xf1\x3b\x27\x0e\x7d\x19\x3e\xf3\xfc\xab\x89\x61\x3b\x43\x01\x73\x06\x3a\x39\x62\x41\x1f\x4b\xc0\x3a\x8d\xb2\xbe\xa1\x2a\x01\xfb\x4c\x63\xef\xf8\x82\x7f\x9a\x1d\xe2\x82\xce\x28\x0b\x4a\x26\xd9\xe9\xa5\x38\x03\xf3\xae\x39\x83\x7c\xea\xef\xb4\x7b\x9b\x65\x70\x04\x23\xfe\x9f\xff\xfe\xdb\x11\x6d\xf3\x7e\xc8\xb1\x5d\x81\x7d\xd8\xc9\xf5\xb6\x25\xdc\xf9\x00\x45\xa4\x05\x9d\x22\xd0\x69\x65\x29\x73\xa2\xf8\xd5\x5e\x6e\x9a\x68\xb8\x9a\x1b\x77\x6f\x99\xdc\xc1\x37\x22\xf2\xe5\x55\x04\x02\x16\x57\x04\x04\x14\x5e\xdf\x20\xe8\xd6\xd5\x88\x30\xc1\x92\xba\xfd\xca\x85\x52\x61\x50\x01\x98\xdf\x36\xc1\x89\x73\x2c\x5f\x2e\x02\xa5\xb1\xb6\x91\x31\x1a\x87\x77\xe4\xaa\x58\x14\x33\x48\x93\xd4\xa8\x77\x25\x97\x44\x98\x03\xed\x51\x9f\x2c\xf1\x84\x50\x85\x10\x8a\xb8\xc2\xa5\x46\x52\x4c\xd7\x0a\x9b\xd7\xef\x37\x03\x29\x96\x6c\xea\x78\x46\xc4\x38\xce\x4b\x31\xd2\xab\xda\xbe\xd1\x1f\x9d\xe5\x6a\xb1\xba\x7d\x99\xe0\x7a\x6d\x97\x65\xe0\x95\xfa\xfd\x96\x66\x57\x0b\x86\x41\x24\x4b\x59\x38\x6c\x81\x86\x24\x15\x68\x48\x1b\x5a\x59\xb2\x04\xc0\x45\xc3\x14\x20\xc7\x15\x0a\x83\xbd\x89\x0c\x80\x35\x8c\x1c\x4d\xf2\xc2\x72\xe2\x4b\x02\xc4\x47\x23\xf6\xd1\xd4\xd4\x00\x65\xc6\x0c\x20\x82\xbc\x16\xf2\x39\xe3\x92\x94\x12\xad\x1a\x60\xfe\x6d\xa2\xa4\x1d\x46\xb3\x4c\x5a\x7c\xb4\xbd\x48\xfa\xe6\x20\x9f\xf5\x0d\xaf\x4f\xb9\x99\x02\xb7\x92\x7a\x22\x9a\x51\x4d\x3b\xe3\xc6\x93\xf6\x72\xa5\x66\x8b\xd0\x25\x80\x7b\x52\xc9\xe2\x00\xf9\xe9\x55\x08\x22\x21\x4f\x04\xac\xc6\x30\xc6\xb0\x98\x43\xd9\x7c\xd5\xc2\x4e\x56\x1d\xa0\x22\xcb\x11\xd8\x02\x8a\xab\x23\x28\xe7\x82\x35\xd1\x62\x39\xcb\x65\xeb\x84\xac\xa6\xf8\x8b\x35\xa4\xd0\x41\x58\xd4\x62\x41\x14\x22\x9f\x15\xb1\x65\x2f\xef\x5d\xca\x5c\x3d\xca\x1e\x35\x67\xfd\xb4\x8b\x48\x2f\x5e\x80\x78\xe0\x12\xa5\x5d\x4e\x60\xec\xee\x7d\x9b\x23\x37\xc7\x2c\xb6\x89\x9f\x56\x96\xd6\x32\x05\xcc\xce\xd8\x96\x7c\x48\xbc\x4d\x5f\x0c\xd0\xc0\x4d\x9b\x06\xb6\x1c\x2e\x32\xa7\x17\x69\xc9\x1c\xa2\x08\xb8\xd0\x02\x6a\xce\x14\x4d\x34\x71\xd8\x31\x68\xad\x39\x67\x1e\x8f\x0f\x02\xb8\xdb\x20\xdf\xa8\x94\x94\xcd\xc6\x76\x25\x5d\x0e\x63\xb7\x8b\xa1\x4c\x53\x97\xa6\x29\xf3\xe3\x77\xae\xa1\xe5\xb6\x63\x43\xd6\x00\xc7\xe5\xb2\x27\x41\xb0\x66\xdc\x4d\xc6\xe2\xa8\xb9\xa4\xcb\x31\x8d\xcd\x52\x50\x53\x5d\x19\x26\xba\x8e\x79\x19\xc4\xba\x3a\x5c\x41\x71\x85\x48\x9b\x11\x69\xf2\x9c\x20\x20\x5d\xb5\xa4\x7c\xca\xd6\x54\xcf\x73\xe6\x45\x34\x5b\xdb\xc9\x27\xb4\x57\xb2\x46\xb1\xeb\xce\x46\xdd\xe3\x24\x99\xe0\xe8\xd1\x2b\x1b\x5e\xe5\xe6\xc2\x61\xe3\x6b\x01\x15\x8a\x7f\x19\xe2\xd2\x03\x8d\x40\xba\x09\x9d\x62\x06\xb0\xc6\x0e\xbb\xe8\xdc\xac\x9a\x45\x02\x33\x08\x45\x66\xf4\x26\x84\x3f\x26\x59\xc2\x17\x69\xcb\x7d\x56\xcd\x94\xdb\x26\x20\xa5\x2d\x51\x6f\xa7\x57\x59\x85\xe9\xad\x7d\x99\xd5\xd2\x6e\x76\x00\x9f\xb4\x06\x97\xfc\x94\xf0\x09\x58\x0e\xad\x96\xed\x52\x49\x82\x8c\x86\xea\x79\x5e\x37\xc1\xa5\x7a\x22\xa9\xcc\x12\xbc\x58\xd6\x83\x49\xad\x78\xd9\x7d\x33\xa9\xf8\xab\x8d\x60\xdd\x83\x92\x1b\x3f\x7f\x09\xa0\xde\x0b\x27\x09\x98\x77\x0d\xff\xaa\x18\x93\x4c\x4e\xdb\x91\xf1\xc5\x2a\x3e\x62\x0a\xcf\xdc\xe6\x5a\xe1\x92\x3f\x33\x22\xe4\x9c\x66\xa5\xa2\x80\x5b\x47\x41\x5b\x8a\xb6\xff\x31\x31\xbf\x6b\xf0\x4e\x9e\x1d\x1a\x20\x0e\x4d\x1f\x32\xc3\x51\x61\xfc\x8b\x12\x2c\x25\x9d\x2e\x02\xfc\x0c\x1f\x50\x0a\x59\x4a\x65\x6d\x39\xa8\xc3\xd5\xc4\x68\xcc\xf8\x76\x93\x40\xbe\x7d\xf2\xdc\x43\xf9\xf8\xd1\x38\x04\x2a\xd3\xf7\x49\x1d\x2c\xc5\xdd\xd4\x16\x34\xa5\x15\x70\xd5\x64\xca\x6f\x96\xf0\xbd\x14\xe3\xa6\xdd\x8c\x50\x08\x93\x76\xd8\x56\x91\xf1\xb8\x16\x21\xe6\x8b\x2a\x65\x0c\xc2\xe6\x6b\xc5\xc9\x99\x3f\x35\x71\x7a\x4c\x0c\x80\x0e\x28\x3e\x3e\x40\x72\x2b\x2c\xa9\x2e\x74\x71\x46\x12\xb2\x93\xc0\xe2\x0d\x88\xa4\xea\xb5\x0f\xc8\x63\x29\x69\x14\x58\xfa\xab\x8d\x0b\x1b\xc4\x3b\xb7\x20\xd2\x34\x0f\xfd\x27\x33\x50\x1b\xf2\xdc\xb4\x8b\x60\xff\x82\x55\xee\xaa\xbb\x34\x41\xdb\x99\x16\x2c\xc9\x15\xdd\x94\xe8\xaa\xe8\xd4\xcb\x2b\xfb\x48\x6a\x6f\x1c\x19\x5c\x1b\xd7\x27\xd2\x25\x8a\x61\xe5\x01\xd8\x88\x03\xd5\xf9\x74\x37\xba\xb0\x7e\x42\xc5\xd1\x8c\x28\x53\xe2\xde\xd7\xf1\x7f\x4f\x34\xb1\xb3\xbc\x86\x1d\xad\x7e\xf3\x21\x5f\xef\xd4\xde\x11\x25\xdd\x95\x50\x43\x0b\xb4\x9b\xb3\x87\x5b\xb0\x1f\xc7\xd2\x08\xae\x5f\xbc\xdc\xb2\x35\x16\x80\x1d\x99\xcd\x88\xff\x0d\x09\x54\x66\x8e\xb1\xfd\xc2\x67\xbf\x97\x70\x9f\x70\x09\x2b\xcf\xac\xd1\xdb\x73\xbd\x2a\x69\x7f\xe9\xa2\xd7\xfa\x34\x5e\x1d\x55\x41\xdd\xbd\x3c\xb8\x9e\x3c\xe8\xb0\x24\xf7\xf0\xf2\x6f\x3b\x06\xfb\x79\xff\xec\x81\x70\x58\xbb\x12\x77\x27\x22\xbe\x23\x32\xd9\x0b\x49\xb1\xb6\x15\xaf\x25\x2f\x1e\x3a\x30\x9f\x02\x1a\x67\x7f\xb7\x68\x3f\x4e\xf2\xad\x75\x03\xbd\xdc\x05\xbb\x9a\x5e\x76\x42\x1f\x80\x6b\x89\x21\xfd\x37\xb7\x85\x32\xe0\xf0\x06\x21\x63\x35\xdf\xc3\x8a\x60\x3c\x3b\xbc\x4e\x61\x78\xb5\xe5\x7c\x89\xed\xb5\xb9\x5e\x9d\x37\xf7\x25\x49\x6d\xdd\xb1\xec\x42\x47\x79\x61\x2f\x8e\xa5\xc6\xe0\x83\x3e\x26\xb6\xdb\x2d\xda\x80\x20\xe3\xb6\x6c\x97\x87\xac\xa9\xba\xd9\xf6\xd9\xea\x2e\x95\x6d\x9c\x09\x32\xa5\x9f\x37\x12\xc5\x6f\xe0\x53\xab\x5e\xea\x65\xae\xd4\x4b\x03\xf7\x0c\xd4\x57\x0b\xe2\xf6\xec\x4a\xdb\x9a\x4a\x23\x56\x24\x00\xda\xec\xbf\x47\xb2\x40\x5c\x94\x7e\xda\x14\xeb\x70\xf7\xb5\xdd\xcc\xbe\xce\x95\xca\xe4\xc9\xf1\xf1\x8c\xaa\x79\x3e\x39\x8a\x78\x6a\xc2\xcd\xb9\x98\x99\x3f\x8e\xa9\x94\x39\x91\xc7\x7f\xfc\xc3\x1f\x8a\x2d\x9e\xe0\xe8\x71\x66\xd0\x63\xea\x7e\xa7\xf2\x96\x13\x2c\xb7\x8b\xec\x71\x99\x5a\x2f\x9c\xb1\x1b\x74\xe3\x72\x24\xf5\x37\x52\xe1\x34\x0b\xa3\x47\x4d\x75\x34\xa9\x70\x51\x93\x01\xd2\xef\xf4\x34\xd1\x1c\x67\x19\x61\xed\x66\x07\x93\x4f\xb9\x05\xeb\x71\x19\x99\x76\x84\xe4\x73\x96\x60\x56\x46\x19\x80\x02\x43\x82\x44\x84\x29\x9b\x01\x5f\xd4\x4b\x06\x6a\x34\x48\x37\x86\xff\xaf\x97\x71\x07\x73\xa4\xb2\xa8\x1c\xe6\x86\x63\xab\x78\xba\xda\x8e\x38\x58\xba\x6a\xe5\xd4\x62\xed\x88\x5b\xb5\x65\xb9\x78\x77\xf5\xfa\xd9\xeb\x57\x6e\x11\x9c\x8d\xc9\x67\xcd\xe4\xe4\xa6\xb8\x54\x0f\x92\x48\x34\xf8\xe9\x0e\xc9\x05\x53\xf8\xf3\x09\xba\xa4\x0c\x04\xd8\xef\x79\x2e\x24\x3a\xc3\x8b\x43\x3e\x3d\x4c\x39\x53\x73\x74\x09\xff\x6b\x7f\x7a\x26\xe4\x11\xfd\x4c\xb0\xb0\xfc\xc1\x56\x5e\xf3\x45\xbc\x35\x09\x89\x9c\x49\x44\x9e\xf4\x09\xfd\xc3\x7f\xa2\xd4\xb4\x7c\x82\xbe\x3d\xfe\xc3\x7f\xa2\xdf\xc1\xff\xff\xff\xd1\xef\x5a\x34\xfd\xf5\x90\xad\xa0\x3e\xef\x6d\xd9\x9d\x7b\x50\x59\xa9\x0d\x4a\x96\x9f\x0a\x5e\xec\x54\x63\xcb\x8f\x34\x7a\xe4\xd3\xe9\x58\x13\x86\xc9\x57\x1b\x63\x51\x43\x45\xde\x10\x26\x94\xda\x02\xcb\xa6\x60\x5b\x51\x2a\xc5\x76\x6a\x80\x0d\x1c\xbb\x96\x79\x51\x60\x16\x82\x88\x4a\x45\x7b\xa9\x84\xaf\x48\xac\xb9\xea\x3a\xa7\xc3\x59\xf7\x5c\x8e\xb3\xb3\xe0\x84\x40\x20\x61\xd1\x70\x1f\xf8\x17\x46\xb1\x9a\x40\x1f\xbb\x90\x8d\xc7\xa1\x16\x5e\xfb\xc5\xc4\x4c\xc2\xd4\xde\x2a\x5e\x52\xd6\x3a\x5f\x1d\x2a\x79\xc7\xc5\x56\xfa\xd6\x23\xa9\xc5\x6c\x77\x2c\x0b\xe4\x4a\xd5\x86\xe5\xeb\x21\x11\x9a\x0b\x0f\xd7\x6b\xec\x22\xb6\x78\xe0\x6a\x2b\x26\x15\x26\xb8\xac\xdb\xa1\xd7\x53\x3f\xf3\x9f\xac\x1a\x26\x44\x9a\xb9\xb7\x8b\xb2\x68\x30\x5a\x2d\x22\x69\x96\xd8\x30\xe2\x06\x4c\xbf\x55\x1b\x7a\xe7\x61\x1c\xa0\x71\x08\x7b\x84\x94\x0f\xe6\x24\x5b\x9b\x27\xdf\xbc\x9f\xb9\x88\xc8\x29\xdf\x2e\xec\x35\xa1\xac\x16\x2f\xdf\xbd\xe2\x8e\x5f\xbd\x0b\x5b\x5b\xc9\xc1\xde\xf2\xb8\x50\x16\x8c\x5b\xc0\x16\x5b\x08\xf0\x36\xcb\xb3\x01\xdc\xb6\x5d\x40\x3a\xd6\x4a\x00\x6c\xc1\xb5\x8d\xe1\xb8\x60\x78\xae\x82\x44\xa5\x70\x84\xc0\x9a\x17\x2e\x89\x5d\x83\xa0\xa2\xad\xc7\x11\x14\x43\x29\x22\x95\x2a\x45\xc7\xb1\xa9\x08\x22\x36\x84\xe4\x34\x75\x89\x0e\x90\xc0\x10\x94\xa9\xe6\xba\x3d\x49\xc4\xe1\x14\x47\x94\xcd\x0e\x02\x34\x46\x40\x46\x08\xaf\x83\x26\x22\xbd\xc7\xf2\x71\xb7\x81\x86\x5b\xd7\x69\xa4\x71\x51\x2b\xcc\xe2\xa7\x18\xc7\x06\xad\x41\xd1\x29\x2c\x1f\xdb\x00\x84\x6a\xe8\x65\x4b\x46\xe7\x97\xc2\x61\x9e\x2d\x1b\x9f\xcb\xb4\x26\xa1\x3e\x05\xa5\x09\x5c\xe5\x60\x8b\x65\xe8\x12\xdb\xb0\x07\x1b\xa9\x82\x78\x2e\x19\xbf\x9c\x73\xa1\xc6\x1b\xc2\x9f\x56\xb3\xc5\x19\x39\x4c\x00\xb7\x84\x3f\x11\xf1\x44\xc9\x73\x19\x45\x74\x1d\x5a\x34\x46\xb3\x20\xaa\x0e\x60\x26\xd3\x8c\x43\x0a\xcd\x14\xa5\x98\x2d\x0c\xa3\xd4\xcc\x05\xcb\x47\xe9\xeb\x95\x22\x99\xe2\x24\x39\x40\x82\xe4\xd2\xd4\xf1\x95\x24\x99\x1e\xba\x8a\x0f\x31\x4a\xf8\x8c\x46\x38\x41\x93\x84\x47\x8f\x72\xc4\xb4\xa0\xc0\x66\x86\x49\x65\x82\x47\x44\xca\x40\xb2\x2a\x92\xb6\x6d\x2a\x1d\x14\x2b\x55\x44\xa4\x94\x51\xa9\x68\xe4\x44\xa6\x02\x7b\xc1\x94\xcc\x8e\x30\x98\x84\x21\x31\x11\x86\xab\x25\x3d\x62\x30\x28\x73\x66\x6b\x03\xc1\x75\x6d\xa1\xe5\x5c\x90\x78\xdb\x01\xda\x01\x52\x9e\xa3\x90\xb1\x2a\x1f\xc8\x15\x47\xea\xd4\x7e\x06\xc7\x78\x19\x09\xdc\x96\x4f\x94\x27\x48\x7f\xd2\x4a\xe8\x3d\x10\x53\xee\x43\xe0\x4b\x92\x8b\x8f\x0c\xdf\x33\xe0\x2e\x18\x72\x0b\x5c\xd7\x2a\x9a\xd6\xab\x08\x22\x0f\x94\xa3\xaa\x7a\xcd\x29\x8b\x92\x3c\xf6\x05\x09\xb5\x08\xf0\xa4\x89\xc4\x2d\x8f\x5e\x7b\x2d\x28\x1c\x20\x2c\xd1\x33\x49\x12\xfd\x5f\x13\x01\x7f\xe8\xeb\x03\x68\x96\x6c\x6a\x38\x40\x27\x8e\x4b\xb7\x51\xd4\xde\x81\x30\xde\x60\x35\x37\xa9\xed\x29\x57\xa6\x16\xa4\x01\x61\x74\xf6\x2d\x83\xda\x37\x49\xf8\x04\x4e\x3a\xe0\x33\xba\xd4\xd8\x20\xad\x2e\x8f\x22\x42\x62\x12\xa3\xaf\x83\x83\xeb\x61\x17\xbe\x69\x46\x0b\x2c\xad\xc8\x1e\x60\x33\x56\x0d\x6b\xad\x08\x8d\xe5\x72\x66\x47\xe8\xa6\x82\x3f\x12\x96\x29\xc7\x55\x34\xaa\x83\xda\x16\xbe\x0d\x9e\x63\x65\x12\x2f\xb7\x43\x6b\xe2\x39\x96\xfa\xdc\x01\x9e\x63\x65\x9e\x2d\xb1\xfb\x7c\xf6\xa2\x39\xc7\x7a\x52\x17\xbc\x7b\x22\x98\xc1\xc1\x32\x77\x67\x89\x04\xdd\x81\x5c\x34\x11\xe2\x7e\x61\x55\x56\x8a\xfe\xbd\x2d\x56\x65\x65\x30\xfb\x8c\x55\x59\x19\xea\xfe\x62\x55\x36\x0c\xb4\x03\x56\xa5\x71\xee\x8f\x35\x51\x77\x63\x0a\x90\xd8\x32\xc9\xa7\x77\x90\xea\xbd\x74\x8c\xa7\x26\x70\xc0\x5c\x63\xee\x8e\xb6\xd0\xcd\x30\x5a\x9b\x03\xd9\x16\x0e\x55\x71\x42\xac\x4b\x7b\xde\xfb\x46\xa5\xd1\xd0\xd6\x33\xbb\x1f\x84\xd6\x6e\xb0\x43\x46\x38\xb3\x39\xe5\x6d\x15\x55\xf6\x27\x7b\x76\x33\x18\x50\x80\xda\x2b\xb1\xfc\x4e\x40\x59\x97\x95\xe2\x04\x73\xfe\x6c\x0b\x04\x01\x19\x1a\xa2\x6c\x25\x41\xe8\x74\x6c\x95\xb6\xb6\x95\xa3\x4c\x91\x59\x55\xa7\x2d\x0e\x0d\x65\xea\x4f\x7f\x5c\xc9\x89\x0c\x92\xa0\x53\x0f\x83\x12\x01\xde\xd9\x61\x9f\x91\x18\x45\x73\xad\x15\x49\xad\xbe\xe8\xe9\x98\x9b\x55\xa2\x14\x53\xa7\x48\xe5\xd2\xb8\x96\xa8\x1c\xb1\x12\xf4\xe6\x11\xfa\x08\x75\x4f\x71\x9a\x69\xfd\xcb\xcf\x8f\x6a\x4a\x1a\xe5\xdf\x7e\xfb\x27\x82\xbe\x45\x29\xc1\xac\xa4\xc3\x82\xda\xa4\xaf\x3e\x80\xaa\x53\x73\x32\x62\x8d\x5b\x81\x86\x9f\x4d\x29\x25\x17\xef\x77\xce\xa6\xdc\xe9\xc4\x50\xcf\x0f\x47\x73\x24\xf3\x89\x29\x48\x1b\xd8\x30\x9c\x20\x7d\xc1\x67\xe0\xa8\x86\x1b\xd9\x0d\x7a\xd9\x29\x7c\xd9\x18\x00\xeb\x6e\xec\x7a\x1b\x0f\xe0\x1e\x39\x94\xa4\x04\x61\xd4\xe0\x34\x33\x9c\x2f\x3c\xf8\xd2\xe0\x9f\x1e\x18\x1f\x82\xd6\xcf\xb0\xb5\xec\x6b\x59\x1a\xc2\x79\xc1\x4b\x96\x27\x58\xd8\xa3\x3f\x62\x5a\xd1\x10\xe4\x89\xf2\x5c\x26\x0b\x14\x73\x46\x0e\x80\x12\xf2\x68\x6e\x1c\xab\x5a\x67\xc1\xb6\x2e\xc3\x13\x95\xb9\x56\x68\xa1\x2d\x57\x06\x42\x2a\x6c\xa0\x97\xe6\x14\xfa\xd1\xea\x37\x81\xaf\xc2\x2c\x39\xd4\x4d\x8b\x0a\xd1\x51\x2b\x3c\xbf\x23\x3a\x6a\x89\xaa\x7a\x74\x54\x8f\x8e\x5a\x5f\x97\x7d\x44\x47\xad\xec\x79\x37\x74\xd4\xa6\x2d\xdf\x00\x1d\xb5\xd4\xcc\x17\x83\x8e\x5a\x59\xd1\x2f\x06\x1d\xb5\x32\xaf\x1e\x1d\xf5\xcb\x43\x47\xdd\x12\xff\xb3\x99\x17\x1b\x7c\x25\x45\xd9\x62\x6d\x22\xfb\x4a\xa2\xf3\x6b\x4d\x60\xd1\x63\x39\xa8\xcd\x5f\x57\xdb\x63\x8e\x36\x33\xa1\xf5\x30\x47\x1b\x55\xf5\x76\x56\xb7\x2d\xc0\x13\x28\x06\xaf\x8c\x39\x5a\x9a\x40\x1f\x5f\xb9\x7e\x7c\x65\x23\xf1\xd9\xbe\xf5\xf0\x5c\xd0\x65\xf5\x42\xee\x88\x3a\x5a\xda\x9f\x4e\x91\x98\x20\xba\xef\x80\x12\x5f\x56\x9a\xbf\x2f\x1d\xf2\x95\xb2\x7c\xb8\x8a\xd2\xe2\x1f\x6b\x09\xcf\xa1\xc5\x19\x25\x3c\xf4\xff\xf7\x94\xbb\x41\x64\x70\x65\x79\xbd\x5f\xc5\xd0\x62\x07\x52\xed\x4c\xa1\x4e\x2b\xdd\x4d\xa2\xac\x4b\x9e\x5c\xd3\xc5\xec\x06\x71\x97\x91\xa8\xc5\xc6\x4c\x53\xba\xab\x66\x57\x5d\x64\x1e\x0b\x0b\x14\xf2\x5a\x5e\xa8\xbe\x9e\xcc\x70\x8c\x8c\x5f\x49\x87\x05\xa0\x0e\xf3\xe5\x8c\x4a\x25\x5a\x63\x9b\x6a\x23\xdc\xc6\x55\x9a\xe5\x9d\x03\x62\x82\x55\x9d\x6d\xf6\x59\x4a\x52\x2e\x56\x05\x56\x35\x7e\x69\x2b\xba\x6c\xf2\x29\xc9\xe6\x24\xd5\x92\xcc\x78\xdd\x46\xba\xee\xb7\x4f\x1a\xb6\xb9\x6b\x26\xd0\xb1\x44\x04\x81\x23\x54\xbf\x1b\x1b\x44\xca\xce\xdb\xbd\xed\x36\x5b\xcc\xcc\x35\x1d\x42\x0e\x33\x78\xb9\xc1\xcd\xbe\x54\x72\x77\x03\x7d\x37\xc6\x74\xf8\x90\x9a\xd5\x51\x1b\x4b\xe2\x35\x96\xe1\x4e\x15\x5f\xd9\x7a\xc7\x6b\xb8\xf2\xcb\xde\x79\xcd\x09\xc3\x62\xb7\xeb\x07\x78\xb4\xa0\xa6\xd6\x97\x07\x22\x73\x24\x11\x87\xa1\x66\x50\x1a\x4c\x7d\xbd\x4a\x54\xe2\x34\xca\x2d\x88\x24\x17\xad\x51\xa6\x5d\x0c\xda\x91\xca\x71\x02\x9a\x44\x58\xa4\xb1\xba\xa9\x93\x45\x43\xda\x63\x37\x8f\x09\x65\xea\xcf\xff\xb1\xd6\x6e\x6a\xd5\xca\xae\x1b\x14\x96\xc2\x51\x44\xa4\xb1\xb1\xdb\x28\x64\x3c\xe1\x4f\x50\x53\x6a\x9b\x5d\xd5\x47\x59\xcf\x5b\x33\x78\x0f\x45\x1c\x17\xa4\x6e\xc4\x85\xb9\xe0\xf9\x6c\xee\x6c\x48\xfa\xcc\xe8\xa9\x35\xed\xe5\x8f\x35\x1b\xf9\xda\x7b\xf9\x5d\x4e\x93\xcd\x2c\x74\x77\xa5\x6a\x5b\x9f\xce\xef\x91\x9c\xfb\xd3\x3a\x81\x66\x1b\x37\xb6\x3e\xe8\xee\x7d\xda\x6f\xbd\xbf\x06\xba\x39\x70\xf0\x9b\x53\x9e\x24\xe0\x69\x90\x24\x7d\x0a\x8b\xe4\x87\xdd\xc3\x84\xef\xe9\x7a\xc8\x79\x7e\x00\xf0\x75\x91\x18\xd1\x49\xfe\xba\x31\xa2\xa1\x44\x6e\xf4\xd5\xa0\x05\x13\xaa\xc6\x19\x61\x4d\x36\xb6\x9f\xea\x85\x4e\xde\x59\xc0\xa0\x8b\x1e\xdb\x59\xd0\xa0\x5b\x92\x57\x0e\x1c\x5c\x31\x8f\x7d\x0d\x1e\xac\x30\x3b\x1f\xcb\x57\x5c\x33\x2e\x70\xc8\x28\x3e\x03\xbd\xc4\x23\x36\x28\xe5\x53\xb8\x82\xd0\x93\x45\x11\x90\x6d\x74\x88\x90\x99\x41\x39\x09\x6b\x58\x01\x37\x9a\xfe\x0b\x34\x1d\x03\x5e\x6b\x42\x0a\x5d\xd8\x20\x44\x93\x93\xf8\x10\x47\x8b\x28\xa1\x51\xa0\x33\xcf\x04\xce\xe6\x4d\x1c\xcf\xed\x7c\x8f\xba\xf3\x56\xa8\x3b\x6d\x75\x97\xd6\x89\xdb\x76\x74\xc5\x70\x4a\x7a\x34\xa0\x26\x34\xa0\x03\x8f\x77\xc1\x8a\x0a\x52\x6f\x08\xa3\x50\x3f\x77\x3d\x24\xd0\x1b\x40\x02\x6d\x72\xf8\x0a\xbc\x9f\xd2\xb1\xeb\x61\x8a\x3e\x74\x82\x29\xf2\x97\xe0\x5e\x21\xcf\xb4\x9f\xc7\x37\x46\x34\xa9\x0f\xec\x2d\x61\x89\x1a\xc4\x85\x75\xe4\xa6\x65\xb8\x44\xcb\xe8\xa2\xd3\xba\xbc\x2d\x4a\xd0\x7a\x2b\xb3\x16\x00\x50\xe3\xdd\xb5\x27\x70\x40\xed\xdb\xb0\x27\xe7\x66\x97\x59\x2d\xeb\x95\xc8\x0c\x33\x5b\xd6\x51\xb0\xd6\x4b\x72\xf1\xf4\xf0\xbe\x12\x5d\x8a\x5a\x62\x9b\x25\xbb\x0c\x9c\x0f\x9a\x08\x34\xe7\x49\xec\x40\x28\xfc\x6a\xf9\x0e\x7c\x26\x80\x5f\x20\xb7\x19\x50\xd3\x1b\xb4\xad\xa2\x20\xd8\xb2\x94\x16\xbf\x89\x30\xdc\x1d\x30\x9a\x5d\x58\x11\x3c\x27\xd9\xc4\x7e\xb0\x52\x16\x91\x65\xf3\xf7\x92\x31\x96\x56\x08\xac\xe6\xcd\xc3\x5c\x69\xf7\x5d\x31\xb8\x65\xa2\x47\x60\x1c\x14\x4d\x15\x2d\x0d\x9d\xc1\xd3\x27\xea\x0c\x11\x38\xec\x71\xa9\x97\xce\xcd\xae\x93\xa7\xae\x4a\x2c\x1b\x04\x83\xd5\x2a\xb7\x6d\x0f\x0e\x94\xe2\xcf\xe3\x0c\x0b\x9c\x24\x24\xa1\x32\x7d\xb1\x60\xe0\xd3\xb2\xbb\x56\x9f\x55\xc1\x8d\x89\x88\xe5\xe9\xc4\x90\xa2\x1b\x88\xad\x17\xa9\x38\x12\x39\x0b\xa1\xcd\x9e\x6b\x45\xf5\x73\xb8\x17\xc0\xaa\x14\xcd\xa1\x38\xe9\x14\x53\xc1\x88\x6c\x2d\x05\x49\xa2\x5c\x50\xb5\x18\xdb\xca\x9a\xdd\x0f\xdc\x9d\xfd\xf2\xd4\x7e\xb8\xdc\xc3\xed\xb2\xfa\x5d\x7f\xbe\x92\x67\x46\x04\x94\x09\x72\x05\x6f\x82\xea\xa1\x16\xb5\x81\xf8\x5a\x43\x10\xfe\x5c\xbb\xb6\xdb\x02\x87\xf1\xf3\x38\xc8\xa8\x1a\x47\x55\xe2\x58\x75\x58\x9b\x70\xa7\x96\x4d\xf2\x85\x91\x97\x5a\xbc\xc8\x2f\x50\x65\xc4\xa6\x4d\x98\xa6\xf5\x80\x03\x57\x30\xd8\x2b\x8b\x8d\x09\x52\xde\xad\x52\xd5\x32\x4e\x8b\xf5\xd3\x14\x7c\xb4\x64\xb0\x83\xe0\xab\x0e\x23\x0e\x3a\xd9\xd1\xb0\xf5\x41\x17\x22\xcf\x14\x9d\xd4\xa1\x6d\xd4\xee\xaa\x8e\x0e\x12\x48\xb3\x76\x6e\x86\x52\xb7\xa6\x14\x69\x89\x13\xdb\xd9\x69\xf9\xdf\xe2\x88\x39\x84\x20\x83\xb0\x14\xe6\xf1\x5d\xa7\x54\x29\x97\x28\x60\x0c\xd0\x9a\x3a\xcb\xb6\xd9\xaf\x5c\xb8\x07\x86\x82\xa6\xc6\x44\x74\x34\x62\x03\x89\x9e\x09\x62\xc4\x42\x48\x34\x94\x2a\xf5\x56\x6d\xa8\xfd\x34\x21\xba\x27\x1f\x9b\xa2\x85\x07\xaa\xa4\x2f\x3f\x66\xfa\x98\xe2\x44\x92\x03\xdd\x30\x54\x2d\x55\x1c\x82\x3f\x31\x7a\x16\x38\xcb\x88\x18\x31\x9b\xc5\x01\x0e\x17\xce\x13\xd3\x7e\x5b\x88\xab\x5d\x03\x32\x8e\x70\x34\x7f\xa5\x3d\xc2\x90\x8c\x13\xcd\x49\xec\xf2\x85\xcb\xdb\xe3\xe6\x6d\x0c\xd6\x6b\x6c\xd6\xf9\xd4\x95\xcf\x3a\xb0\x9d\x24\x91\xe6\x28\xbe\x9a\x72\x46\x84\x1e\xb5\xa6\xe1\x27\xc2\x10\x9d\xba\x71\xd8\xd8\x1d\xf4\x0c\x9e\x29\x4d\xfa\x4f\x98\x26\x26\x01\xdf\x75\xed\x84\x40\x63\x7e\x1f\x31\xe3\xee\x66\x51\x29\x43\x95\x32\x2a\xe7\x9a\x53\xe7\xe0\x93\x04\x35\xa3\x2d\x71\x86\x3d\xad\x73\x9a\x87\xfa\xf5\xe5\x1c\xf4\x89\x0a\xce\x52\x48\x92\xb1\xb8\x4c\x6e\xf9\x24\x51\xfe\x78\x34\xa6\x38\xae\x94\x88\xe3\x58\x96\x8d\x9f\x46\xad\xa4\xbf\x96\xcc\x2e\x87\xa5\xac\xc0\x28\x80\x15\x82\x20\x4e\x57\x59\x6c\x99\xfc\xdb\xa7\x36\xd4\x53\x1b\x9a\xd7\x66\x1f\xd3\x1b\xfc\x21\x5e\x37\xc5\xa1\x6d\xfb\x77\x21\xd9\xee\x30\xd5\xe1\x8d\x73\x02\x5e\x26\x1d\xe0\x6d\xf3\x37\x5e\x22\x75\xa3\x4f\x70\x78\xc3\x04\x87\xce\x96\xda\x72\x6c\x76\xfb\xb1\x5d\x2b\x39\x60\x05\x98\x53\x53\x2f\x97\x44\x09\x1a\xc9\x5d\xf0\x07\x99\xe1\x8e\x51\x6d\xa0\x05\x66\x2b\xa4\x26\xfd\x82\x77\x42\x42\x9c\x98\xaf\xf3\x37\x11\x04\x3f\xc6\xfc\xb9\x66\xab\x93\x21\x9a\xc6\x25\xd7\x62\x8f\x20\x11\x95\xa4\x14\xc9\x42\x25\x62\x44\x5a\x63\x27\x1e\xb1\x39\x25\x02\x8b\x68\x0e\xd9\x8d\xc5\xc6\x98\x2c\x59\x03\x68\x64\x62\x19\x42\x6f\xd3\x1a\x9b\xde\x61\xdd\xab\x16\x26\x8f\x4f\x67\xf7\x5c\x8f\x24\x35\x9f\x78\x61\xc6\x4a\x19\xa1\x49\xae\xd3\xf6\x6f\x1b\x88\xef\x17\xfb\x45\x83\xf1\x7d\x30\x51\xf0\x45\xc7\x80\xfc\x82\x1a\xfa\xa0\xfc\x17\x0a\xca\x6f\x58\xe2\xf5\x02\xf3\x37\x32\xf9\xbd\x7e\xcc\xb0\xeb\xf9\x35\xe2\x86\x57\x05\x6d\xe5\x93\xf1\x8b\x1f\xbd\xc6\x39\x77\x3d\x81\x3f\x79\xa2\x30\x12\xb1\xd0\x74\x36\x21\x71\x0c\x9c\x56\x71\x5b\x29\xba\xa0\x1d\x67\x1e\xd0\x77\x2f\x96\x9a\xd8\x71\xc2\xd9\x4c\xd2\xd8\x80\xad\x64\x18\x2a\xb6\x86\xc6\x0b\x00\x17\x80\xfd\x4d\x12\x22\x9c\x57\x42\xa0\xaf\x25\x65\x16\x4d\xd1\xff\x16\x73\x22\xd9\x57\xca\x18\x0b\x30\x5b\xa0\x47\xc6\x9f\x13\x12\xcf\x60\x87\xaa\x83\x39\x44\x94\x1c\x20\xaa\xfc\x67\x02\xd0\x08\x78\xae\x46\x7a\xec\x10\x6b\x66\x34\x00\x62\xbf\x0d\x6a\xa2\xfb\x66\xbe\x39\x42\xe8\x9c\xa1\x29\x8e\xd4\x01\x92\xf9\xa4\x68\x3f\xe6\xa6\xc8\xb5\xd6\xbe\x83\x89\x17\x8d\xf4\x31\xe3\x0d\x9d\x37\x9f\x0d\xc7\x1d\x34\xb9\x0e\x12\x8a\xb7\x8a\xad\x7b\xc2\xdb\x40\x8c\x5e\xe6\xd2\x06\x61\x20\xce\xfc\xd1\xb7\xf0\x4a\x1e\x23\x1a\xf0\x3e\x0d\xde\x32\xe3\x71\xab\xad\xb3\x32\x95\x75\xc7\x52\x04\x42\x5a\x41\xc9\x3a\xaa\xa0\x5d\xb3\xdc\x5a\x6a\x92\x4a\x10\x9c\x5a\xe7\x80\xbe\x6a\x40\xac\x31\x61\x90\x7a\xf4\x54\x18\x09\x73\x9d\x2d\xbe\xa0\xec\x51\xef\x6e\x81\x8a\x0d\xf5\xe5\xa1\xe7\xa6\x4d\xcb\xf4\x8d\x47\x4e\x39\x33\x0e\xc2\xad\xe4\x4e\x3a\x63\x38\x59\xd3\xc6\x51\x5b\xb9\xba\x4f\xcf\xc9\x59\x56\x5c\xd0\x52\x84\x31\xf6\x21\xd3\xe3\x5a\x36\xa4\xca\x7c\x43\x79\x0f\xa3\x98\x64\x84\xc5\x84\x45\x0b\x20\x11\x06\xc8\x39\x82\xe1\x04\x61\xf8\x0e\x27\x47\xe8\xcc\xe4\xd7\x78\x09\xcf\x5e\xeb\x70\xa1\xa7\x98\xd1\xa9\xd6\x13\xc0\x08\x6b\x47\x39\x62\x66\x98\xce\x07\x12\x14\xed\xf7\x2b\xd6\xb4\x33\xfa\x06\xb9\xda\x12\x95\x98\x95\xbf\x47\xcb\x2f\x1c\xe8\x6d\xd9\xee\xe8\xe6\x5c\x0d\x02\x99\x4f\x0e\xe1\xdf\xa5\x84\x33\x07\xd4\x53\xa0\xc8\x90\x84\x80\x39\xd0\x7a\xbc\xe0\x62\x6c\x03\x96\xdb\x85\xdf\x6e\x45\x1e\x47\xd0\x47\x49\xa9\x49\x29\xa3\x69\x9e\x06\xce\x3b\x53\xb1\x20\xb2\xf6\x4b\x93\x89\x91\x69\x3d\x20\x72\xe0\xe5\x48\x5f\xae\x6c\x81\x66\xf4\x89\xb0\x11\xcb\x38\x65\xea\x08\x5d\x71\x45\x82\x12\x11\x06\x3a\x8a\x67\x8a\xa6\x06\xed\x54\x10\x7d\x0e\x0c\x28\x36\x00\x4d\xce\xb1\x3a\x40\x71\x0e\x47\x95\x11\xa5\x59\x87\xbe\x71\x15\xec\x0c\xc4\x47\x8b\x11\x33\x37\xdd\x14\xd3\x24\x17\xc4\xca\xac\xd8\xe4\xc5\x14\x43\x2e\x46\x66\x91\xd0\x82\x49\xa4\x74\x36\x57\x7a\x8b\xb4\x8c\x67\xfd\x8d\x73\xcd\x8d\xf8\x88\x4d\x08\xc2\x28\xe3\x92\x2a\xfa\xe4\xfd\x97\x74\x8a\xb0\x94\x60\x41\x39\x42\x67\x25\xfb\x3f\x95\xa0\x7a\xb7\xc5\xd5\x52\x36\xb6\xb6\xe7\xf6\x7c\x9c\xad\x37\xb2\xd4\x8b\x5d\x65\x3c\x91\x3c\xc9\x55\xe8\x82\x6d\xde\xdb\xc2\x34\xee\x80\xfb\xc1\x40\xcc\xa7\x23\xe6\xe8\x5a\x1e\xa1\x81\x44\x92\xeb\x5d\x92\x66\x2b\x23\x41\x15\x11\xd4\xa0\x38\x11\x65\x36\xc1\x9f\x53\x7f\x06\x52\x2c\x1e\xb5\x08\x15\x5a\xe0\x0d\xa6\x68\xc9\xda\x31\x31\x12\x12\xc0\x5a\x85\xdb\x01\xa6\x7f\xc4\x38\x3b\x64\x64\x86\x57\xed\xc8\x88\x95\xb6\x04\x7d\x4d\xa7\x85\x42\xda\xe6\x73\x0c\xd6\x6e\x0c\x91\x4f\x6d\xbb\x64\x3a\x6e\xdb\xa4\x69\xc2\xf1\x0a\xb7\xf1\xb4\x38\xf4\xe8\xef\x7c\x62\xc6\xa8\xf5\x7e\xae\x40\x0a\xd4\xea\xd5\x94\x0b\x32\xc7\x2c\x3e\x70\x9b\x55\x1e\x1b\xdc\x8c\xd6\xd4\xe6\x94\x31\x90\x04\x1d\x88\x30\x31\x58\x4c\x98\x05\x7b\x61\x15\x37\xbb\x15\xc5\x3e\xac\x75\x57\xf8\xd6\xa0\xf6\x89\x31\x40\x18\x96\xb7\xc8\xec\x11\x97\x34\xcd\x92\x22\xa7\x29\xb0\x8d\x4e\xb5\x88\xe5\x78\x24\x7f\x02\xd3\x95\xd3\xda\xe0\x56\xb7\x3b\xa7\xe9\xac\x61\xe4\x9e\x91\xc2\xad\xe1\x6c\x5e\xa6\x0c\x66\xc0\xc2\xbe\x96\x44\xff\x53\x91\x42\xed\x33\xc2\xfa\x88\x39\x11\xe4\x1b\xe0\x32\xb6\xd9\xc0\x78\xa6\x45\x68\x03\xf3\x6a\xd7\x0f\x45\xc6\xc9\x5d\x3a\x27\xf6\x30\xb8\x57\x1b\x2e\xaa\xef\x28\xc3\xa5\xcc\xdb\x0d\x04\xbf\x24\x5f\x2b\xb9\x2a\x70\xfb\x2d\xda\x6a\x9a\x28\xbc\xaa\xcc\xc8\x1a\x94\x60\xf6\x99\x20\xdd\x9d\xa5\x66\x57\xf1\x06\x43\x44\xc0\x9c\x24\x19\x8a\xe9\x14\xcc\x52\x0a\xd8\xb7\x07\x16\x33\x58\xf0\xfa\xb0\xa7\x39\x33\x20\x71\xc6\x23\xf2\x6c\xf1\xb6\xed\xd5\x58\x34\x7e\x34\x62\xe7\xea\x2b\xa9\x45\x74\xce\x66\xfa\xa2\x89\x9f\xa8\x2c\x8a\x9c\x44\x9c\xc9\x3c\x25\xc2\x76\xa1\x6f\x64\x4d\x91\xb6\x40\x00\x76\x32\x94\x1e\x9b\xde\xfb\x27\x9c\xd0\xd8\x15\xe2\xd1\x3f\x9a\x33\xa7\x47\x29\x9d\x47\xb1\x21\x24\xcc\x6e\x6e\xac\xd7\xea\xcd\xc4\xfa\x1f\x43\xc9\x1d\xa5\x85\x90\x8f\xad\xad\xfe\xb8\x2a\xe2\xdb\x55\x5f\x22\xde\x4f\x6a\x93\x42\xcb\x05\x23\xbb\x0a\x67\xab\x50\x0c\x1d\xa2\x6e\x6e\x42\x80\x75\x3f\xce\xe8\x63\x06\xb7\x16\xfb\xa9\x4c\xd0\x8e\xda\x70\x96\x50\xbc\x27\x14\x64\x03\xa9\xb0\x16\x2f\xcc\x75\xc0\x85\xd5\x70\xec\x9d\xd3\xbe\xb5\x67\x5b\x96\x89\x90\x11\x4e\xea\x3b\xbc\xc4\xde\x6c\xde\x5f\xae\x04\xd8\xe3\x66\xda\x5e\x9a\xf4\x1b\xf1\x24\x59\xa7\x84\x49\x65\xe6\xa7\xc5\xe7\xcb\x47\x54\xf4\xa3\x37\xc0\xed\x05\x9c\x1a\x73\x79\xe3\xc4\x9a\x52\xa4\xb2\xbb\x14\xbe\x64\xd4\xb0\x85\x65\xad\x23\xc6\xa7\x50\xe4\x26\x69\x8b\xea\xca\x04\x4f\xe9\x3a\x28\xcb\x26\xd0\xe9\xd6\xd9\xc5\x57\x58\x19\x9c\xf5\x1c\x44\x53\x43\x5e\xb6\x47\xc8\xd7\xc3\x56\xdc\x5c\x72\x86\x52\x9c\x6d\xb4\xe0\xab\xbc\x42\x03\x94\x1a\x97\x9c\x5d\x3d\xc0\x5b\x24\x50\x2f\x06\x16\xf9\x19\x2f\x8a\xd4\xe8\x36\xfc\x5c\xb6\x16\x39\x3c\xe8\xd7\xcf\xd9\x94\xaf\x71\x38\x8b\x54\x66\x7b\xfa\xb0\xa3\xd9\xe0\xfc\x79\x2f\x85\xd9\x7d\xb3\xa6\x5d\xce\xe3\x69\x13\x51\xaf\x7d\x32\xdd\x0a\xbe\xa4\x8d\x32\x64\x22\xa1\x79\x72\x9d\xbb\xb5\x7c\xb4\x82\x16\x11\x0c\x67\xf9\x52\x5d\x96\xe8\x70\xe7\x6b\x54\x69\x07\x19\x53\xb8\x0b\xa6\xbe\x69\x6e\xf5\x15\xd6\xcc\x1e\x92\x4e\x8b\xb5\x25\x76\xc3\x7a\x38\xc0\xae\x47\x8f\xfa\xdb\x7c\x42\x57\x16\x39\xe8\xbe\x18\xc0\xcd\xa4\xb5\x73\x15\x91\x99\x36\x45\x6d\x4a\x13\x2d\x62\x9f\x37\x18\x38\x5d\x82\x98\x0f\xa8\x32\xa1\xf2\x4e\x7a\xca\x05\x0d\x0a\x83\x3a\x19\x09\x51\x28\x50\x12\x3a\x79\x02\x85\x1e\x4c\x8b\x73\xfe\x6c\xa2\xd3\x05\xd5\x3c\xcb\x08\xab\x0a\xcc\x3d\x9a\x17\x50\x6b\x2d\x31\xc6\x26\xff\x01\x37\x31\x83\xd8\xd6\x3e\x2e\x46\xd5\xb2\xa5\xbb\x28\xf1\xd4\x3d\xff\xce\xf5\x7a\xaf\xbf\xa8\xef\x4d\xe3\x08\xef\xcb\xad\xaf\x3d\x3a\x2f\xe5\xaf\x1f\x30\xf5\x11\x3e\x75\x4a\x0f\x46\x53\x41\xc0\xc1\x9f\x7a\x4c\x0d\x03\xaa\xcb\x39\xdc\x77\x77\x67\x3f\x1c\x3f\x9c\x23\xa2\x22\x94\xd0\x47\x32\x62\x91\x7c\x3a\xd0\xe2\xf1\x3f\x72\xa2\xf4\xcf\x2d\x1e\x01\x9a\x12\x26\x81\x13\x50\x55\xc3\x1e\x6a\x5e\x48\xb7\x30\xfa\xbf\x67\xe5\xef\x97\x90\x7c\x2d\x7d\x18\x68\xd7\xd5\xbb\x01\x32\x85\x92\x1e\x66\x69\x65\x03\xc5\x18\x5b\xe4\xb0\xa9\x1a\xe6\x06\xe9\x42\xec\xef\x39\x5b\x53\xe8\x3a\x2d\x3e\x0a\x46\xd1\x22\xd3\xa5\x19\x06\xac\xeb\xf5\xf2\x90\xcc\x37\x8d\xad\xaf\x62\x22\x45\x5a\xb6\xb3\x2d\x17\x85\x43\x91\x12\x84\x00\x0b\xf1\xf4\x64\xef\x7a\x8b\xc4\xe1\x27\x16\x7c\x74\x34\x62\x97\xce\xe3\x5c\xfc\x2a\x0b\x3d\x3c\x9d\x04\x10\xe0\xe5\x56\xa0\xd9\x98\x4a\xff\x03\x14\x74\x91\x79\xa2\x4c\x45\xbb\x29\x65\x38\xf1\x03\x35\x4f\x9a\xb8\x84\xc0\x2c\x9a\x6f\x6b\x42\xa6\xd3\x31\x49\xd6\x91\x44\xcf\xa7\xc3\x44\x6a\xfa\x8e\x1e\x5b\x4e\xe7\x26\x35\x1b\x8b\xc9\xd8\x4a\xb4\xa6\xee\x13\x2a\x4c\xd0\x38\x31\x15\xe5\x08\x02\x1f\x65\x35\x7b\xcc\x00\x44\xe8\x5d\xb4\x92\xba\x71\x51\x9a\xb4\x0d\x1f\x92\x0d\xbd\x20\xac\x46\x4c\xe4\x0c\x8a\x4d\xf8\x88\x05\x8c\x0a\xbc\xf0\xc8\xf9\x0f\xac\x37\x67\xa6\xd9\x84\x81\xe3\x36\x2f\x6b\xfd\x8c\xe7\x12\x6c\x35\x29\x51\xfa\x82\xfa\x1a\xea\xc0\x9a\x90\xa1\x03\x94\x09\x9a\x82\xb9\x55\x7e\xd3\xb0\x75\xa7\x58\xe1\x84\xcf\x06\x42\xd1\x29\x8e\xd4\x3d\xde\x4a\x03\xc7\xb6\x99\x4d\xc3\x4f\xdd\x30\xd0\xf9\x99\x5e\xfc\x19\x61\x44\xc0\x44\xb5\x4e\xde\x7c\x84\xe1\xc9\x46\x9c\x1b\xac\x6c\xd6\x30\x2a\xbd\xc5\x02\xe7\x8a\xa7\x5a\xbf\xc5\x49\xb2\x38\x30\x16\x59\x82\xe6\x58\xce\xdd\x46\x1b\x63\x5a\x97\xbb\xc9\x2e\xee\x29\x8e\xe6\xe4\x0e\xaa\x22\x37\x2d\x6e\x65\x94\x1f\x08\xcb\xd3\x0f\x27\xe8\x7f\x8a\x39\x9e\x0e\x4e\xbf\x1f\x8e\xcf\xce\xef\x06\xdf\x5d\x0c\xcf\x82\xf9\xd8\x27\x97\xe7\x77\x77\xf5\x5f\xbf\x3f\xbf\xaf\xff\x78\x73\x7d\xf3\x70\x31\xb8\x6f\x6a\xe5\xe2\xfa\xfa\x87\x87\x9b\xf1\xc7\xc1\xf9\xc5\xc3\xed\xb0\xe1\xd3\x87\xfb\xf6\x87\x77\x3f\x9c\xdf\xdc\x0c\xcf\xdc\xaa\xfc\x2d\x38\x5d\x60\x3d\x86\xd4\x8b\xe6\x69\x54\x0f\xe0\x21\x2a\xbf\x78\x82\x1e\xaa\xa5\x0f\x6c\x2c\xb2\xc1\xb1\x78\xc6\x52\xf3\x30\x08\x85\x1f\x31\xe4\x3e\xd7\x8b\xd2\xf6\xa9\x09\xd7\x89\xe6\x04\x25\x9c\x3f\xe6\x99\x65\x6d\x26\x3e\x8c\x71\x63\xf8\x21\x32\x68\xed\xfb\xf3\xfb\x93\x7a\x09\x06\xdf\x58\x80\x98\xe5\xce\x00\x8c\x0b\x3b\x76\x0a\xb6\x14\x07\xcd\x5f\x58\x6f\x83\x1e\xfc\xce\x2c\xeb\xc7\xb4\x86\x99\xaa\x74\x13\xc7\xb6\xe8\xaf\x9b\x58\xd0\x70\x79\x5f\x97\xad\xa6\x5f\x0e\x53\x7b\x0a\x4d\x48\x84\x73\x13\xd4\xa4\xef\x29\x21\xb8\x08\x07\x5c\xd0\xc3\xee\x1a\xb5\x74\xd4\xd8\x60\x65\xcf\xf4\xc4\xe5\x23\xcd\x32\x12\x7f\xa8\xcb\x2f\xe5\xea\xb0\xb6\x26\x39\x9f\xa2\xe0\x4c\x6a\xbd\x1e\x74\x7e\x57\x38\x65\xbe\xf0\x9e\x34\x08\xdc\x28\x42\x59\x00\xc8\x59\xdf\x09\xbe\xb0\x05\x05\xd7\x18\x56\xe8\x99\x40\x4a\x75\x6e\x2b\x47\x19\xdd\x5b\x9f\x6d\xe8\xce\xd8\xb4\x5d\x1d\xb8\x52\xaa\x75\x2b\x33\xde\x85\xc0\xad\xbf\x97\xa4\x89\x11\x6f\x91\x17\x7b\x66\x1a\x05\xee\xec\x62\xde\x60\xc4\x2d\xc1\x0d\xee\x36\x68\xb0\x90\x2f\x91\xaf\xea\x37\xd2\x8a\xcb\x42\xb3\xed\x2e\xe3\x71\x58\x20\x25\x80\xeb\xee\x03\x2b\x81\x20\xaf\x5c\xab\x7b\x1e\xe3\x85\x26\x0e\x88\x35\x96\x79\x96\x71\xa1\x50\x4b\x1b\xc6\x8d\x6f\xc6\x07\x77\x8e\x9d\x87\xe7\x71\xd0\x88\x96\x30\x64\x43\x2d\x8d\x6e\xf0\x08\x76\x5d\x0b\xc6\x11\x06\xc8\x82\x22\xe8\xeb\x1e\xa5\x25\x95\xba\x44\xa1\x4d\xc2\xef\x36\x19\x06\x99\xbe\xe0\xbb\x96\xe1\x6b\xea\xfd\xda\xb5\xd0\xb8\xe5\x09\x99\xaa\x71\xa3\xd7\x67\x89\x81\x53\xb7\xc8\xda\x10\x65\xe8\x6c\xbe\x83\x16\xbb\x6b\x09\x7f\xb4\x81\x3d\x5a\x35\x08\x2c\x04\x82\x73\x65\xe4\xd3\x42\x87\x41\x6e\x35\xc1\xbc\x60\x3b\xb5\xb9\x60\x5e\x08\xd4\x32\xbf\xf1\x87\xfa\xb4\xa9\xa3\x11\x1b\x42\x00\x45\xa1\x88\xb8\x14\x31\xd0\x02\x56\xca\xff\xa5\xa2\xa3\xaf\x1a\xad\xd9\x8e\xf0\x5a\xd0\xbd\xad\x97\x9f\x2c\x50\x51\x58\xb6\xf4\x5d\x97\xd3\x63\xac\xde\x4e\x04\x34\x13\xb6\x65\xdc\x15\xc9\xac\x65\xde\xcc\xb3\x88\xf4\x81\xf8\x30\xdd\xd5\x11\xfa\xc9\x59\x7e\x20\xf0\xb5\xa8\xc9\x6c\x63\x37\x12\xbc\x70\xa0\x90\x4d\x0b\xbb\x0b\x9c\xc5\x5d\x87\xc2\x2e\x5f\x60\x0f\xe8\xd4\xb0\xca\x25\x05\x9c\x31\x63\x91\x5d\x23\xed\xe3\xd4\x7f\x74\x47\x96\x47\x05\x7c\x84\x32\x9c\x36\xb2\x0a\x84\x0e\x96\x2c\xfe\x97\xd9\x2c\x93\x89\xea\x0a\x6b\xd9\xb2\x88\xd6\x83\xaa\xcf\x0f\x78\x00\x4d\xa2\x2a\x9a\xd2\x24\x01\x39\xe0\x08\x0d\xa0\x3c\x30\x24\x72\xea\xab\xd0\x05\x58\xd0\x19\xe3\xab\x72\xcc\x5a\x88\x29\x0a\x88\xe9\xae\x9d\x98\x24\x50\x53\x91\xc7\xbf\x1b\x8a\xda\x01\xa6\x8b\xe6\x2d\xb8\x8e\x88\xdd\x1d\xc9\x65\x0d\xe5\xfd\x2d\xa2\xa3\x6b\xc3\x0d\x3e\xfc\x57\xf3\xd0\x3f\xe5\x58\x60\xa6\x20\xe6\xd7\x8a\xee\x82\x04\xa9\x47\xe4\x33\xc4\x67\x30\x63\x08\x86\x9f\xc2\xcd\x75\x2e\x7f\x08\xf7\x42\x34\x3e\x40\xf4\x88\x1c\x41\x75\x36\xa1\x65\x89\x49\xf1\xe6\x5c\x4b\x0e\x23\x56\x8b\x65\x3c\x42\x83\x44\x72\xfb\x05\x61\x51\x02\xe5\xb8\x83\xf0\x64\x4f\xf9\xd6\xad\x34\x59\x80\x82\x02\x5b\x59\x34\xcf\xed\x83\xe0\x43\x28\x32\x06\x3e\xf1\x04\x4e\x7a\xf1\xfb\xef\x79\x66\xbc\x15\x6d\x71\x12\x2f\x58\xce\xa1\x76\x0d\xbd\xd8\x26\x99\x52\x81\xcb\x36\x08\xde\x80\x8d\x29\x62\x4c\x03\x04\x16\xf4\x35\x56\x28\x21\x58\x2a\xf4\x87\x6f\xd6\x8a\x0d\x71\x13\x2c\xb8\xab\x3d\xbe\x45\xa2\x98\x4b\x35\x08\x85\x3b\xdf\x31\xd4\x8e\xc3\x42\x21\x8c\x18\x79\x0e\x23\x4b\x39\x04\x03\xbb\x82\x70\x24\xc8\x6d\x35\xf1\x64\x26\x33\x1f\xb2\x35\x8c\xca\xd4\xc2\x47\x1c\xdc\xb1\x75\x9f\xda\x61\x35\x50\x96\x55\x9e\x6c\x88\x27\x40\x72\x15\x41\xff\x73\xac\x46\xcc\x72\x56\x17\x36\x12\xa4\x79\x0d\x92\xa4\x1c\x68\x8f\x21\x97\x84\xe9\x09\x43\x7d\xf6\x23\xbf\x40\x57\xa0\x7e\xf9\x68\xe7\x92\x9d\xae\x38\x2c\x26\x1e\xcf\xe3\x1d\x85\x6d\x37\x4a\x3b\x4d\xf6\xe5\x57\x14\x82\x1b\xba\xbf\x30\x85\xf2\x3b\x08\xc3\xa4\x69\xc8\x2b\x0e\x56\xdd\xa6\xbf\x44\x36\xde\x75\x07\xdd\x45\xe5\x66\xfb\x38\x5c\xb3\xcf\xbc\xc1\xdc\xde\xb2\xb9\x81\x6c\xb1\x8d\x02\xee\xc3\xee\x5f\xcb\xe3\x5b\x1a\xfa\x79\x0c\x49\x7f\xab\xb9\x60\x91\x44\xe7\x58\x87\x89\xbd\x8e\x83\x9c\x9e\x20\x85\x00\x82\xff\x1c\xe3\xb3\x6f\xb6\x78\x5e\xb3\xf7\x3d\xfd\x83\x62\xfe\x6e\x2a\x3e\x08\xae\x3e\xf1\x76\x61\x6f\x10\xff\x1d\x47\x10\xe9\x0f\x3d\xb9\x1c\x83\x3a\x20\x93\x83\xb1\xc6\x60\xcc\x6f\x14\x0f\x33\xc1\x23\x22\xe5\x11\x1a\xc2\x45\x63\xff\x89\xf0\xd4\x39\x24\x82\x97\x47\x4c\x6b\x26\x0e\xbf\x25\x68\xbf\x4c\xe2\x4d\x27\xc0\x80\xc1\x6d\xe5\xcb\x49\x57\xd7\x28\x69\xd3\x26\x1c\x16\x1d\xb4\x01\x65\x0d\xd0\x70\x76\x82\x62\x1e\x3d\x12\x71\x2c\x48\x4c\xe5\x09\xf8\xd6\x55\xab\x53\x2f\xd5\xda\xf6\xd6\x92\x46\x5b\xa0\xc0\x8a\xa4\xb8\x53\xd3\xbf\x0d\xb0\x76\xe1\xb5\x07\x88\x4e\x41\x9d\x70\x39\x19\x26\x08\xd9\xc1\xdd\x10\xa6\xc4\x02\xe2\xfa\xbd\x29\xab\xb2\x10\x4e\xd3\xd0\x42\x5b\x5b\x36\x91\xd8\x45\x0c\xce\x86\xd3\xbe\x9f\x13\x49\x5c\xc0\x81\x99\x94\xe2\x36\x96\xd9\xb0\x8b\x0c\xab\xb9\x84\xd4\xd5\xf2\x1a\x58\xa5\x0b\x3e\xd5\x2b\x84\x33\x88\x57\x30\x56\x8a\xe2\x23\x9f\x60\x29\x15\x4d\x92\x11\x63\x84\xc4\x12\x41\x96\xe9\x57\x8d\x19\xf2\xfa\xd3\x03\x84\xe3\x18\xfd\xef\xaf\x3f\x5e\xfc\x7c\x3f\x1c\x9f\x5f\x81\xd1\xfa\xfc\x62\xf8\xcd\x81\xff\xf1\xfa\xe1\xde\xff\x6a\x2c\x2c\x4f\x44\xa0\x14\x3f\x82\x8a\xc7\x24\xb1\xc9\x13\x64\xc4\xc2\x91\x3a\xec\x00\xfd\x44\x12\x17\xe9\x6a\xc5\x14\x0f\xa1\x68\xf7\xb0\xb5\x62\xb1\xb1\xf9\xad\xa1\xfc\xde\xfa\x4f\x96\xd3\xa0\x23\x1e\xdf\x85\x13\x03\x21\x47\x06\xcb\x20\x99\xdc\xea\xbe\x05\xc1\x11\x36\xa3\xac\x2d\x1e\x8f\xb0\xa7\x97\x14\xe2\x7f\x20\x8b\x1f\xb5\x7a\x7d\x83\xa9\xe8\x4c\x7b\xcd\x68\x40\xee\xc4\x68\x3d\x1d\xcb\xea\xa1\x92\x46\x16\x36\xd9\x36\xad\x31\x9f\x4d\x40\x70\x6f\x3e\x5d\x0b\x2f\x45\x3e\x2b\xe1\x50\x2a\x7c\x3e\x87\x83\x72\xf2\x17\x4d\x41\x83\x23\x76\x7f\x7d\x76\x7d\x82\x48\x82\x27\x1c\x42\xf9\x6d\x48\x90\x6b\xc2\x2e\x58\xc4\xd3\xa0\xa1\x12\x42\xc9\x01\xca\x0a\x84\x92\xd0\x88\x76\x64\xda\x58\x81\x54\x92\x71\x51\xc7\xf7\xd8\xad\x0a\x68\x27\x7b\xc3\x45\x97\xeb\x5f\xbf\x06\x4b\xc7\x33\xad\xc8\x55\x38\xaf\xbd\x9b\xa7\x04\x9b\x5a\xfa\xc6\x2d\x64\x6d\xf9\x36\x80\x35\x49\x4a\xf5\x14\xf5\xc1\x91\x47\xd6\x05\x5f\xbc\xc9\x19\xfa\xe1\x2f\x12\x4d\x72\x35\x62\xe5\x36\x38\x43\x83\x9f\xee\xd0\x77\x58\x45\xf3\x6f\x46\xec\x5a\xab\x99\x3f\xfc\xa5\x05\x4a\x69\x6d\x74\x42\xbd\x26\x67\x58\xe1\x0b\x8e\x63\xca\x66\x4d\xd0\x84\x45\xfd\x98\xe1\xfd\xe0\x04\x5d\x5b\x1d\xbe\xc8\x04\xf1\x29\xc1\x41\x43\xc0\x90\x61\x22\x8e\x8b\x00\x2b\x67\x65\xf8\x36\xa3\x99\xc1\x85\x35\x62\xf7\x06\x93\x51\x73\x55\xaa\x50\xc6\x6d\x0d\x23\xad\x95\x19\xb4\x4a\xec\x32\xa4\x48\xb2\x40\x7a\x75\x80\x8c\xfd\x66\x58\x79\x0c\xe4\x99\x3a\xb3\x1f\x31\x50\xd0\x7d\x6e\x4a\xc2\x23\x9c\x40\x4c\xde\x61\x60\xd3\xd3\x6a\x3b\xcf\x21\x3f\xdc\x14\x3d\x5f\x94\x43\x67\x3d\x64\x81\x17\xca\xc2\x8d\x02\x03\x00\xec\xa3\xf5\xc6\xa6\x5c\x73\x1c\x83\xc5\x06\xc6\xb7\xc4\xac\x8e\xfe\xd0\x63\xb3\x99\x65\xd1\x4f\x7d\xda\x16\xcf\x99\xc3\x22\x89\xc0\x7c\xcf\x16\x10\xbe\x0d\x45\x47\x38\x84\x7e\x14\xdc\xd9\x12\x65\x6d\x17\xfd\x9d\x18\x7c\x36\x62\x26\x52\xb0\xb4\x2f\x21\x7a\x4f\xd0\x3b\x67\x10\xc8\x58\xcf\x15\xcb\x33\x1b\xd8\x68\x65\xfd\x4c\x90\x43\x9f\x01\x15\x97\xd6\x54\xdf\xb0\x47\xe8\x36\x54\xaf\x63\x1e\xe5\xa9\x43\x56\x86\xec\xa9\xa2\xac\x7c\x49\xe2\x31\x17\xfb\x2a\x8a\x07\x94\x16\x45\x20\x7d\xbc\xb3\x7e\x6c\x08\x66\x10\x7e\x5a\x97\xd4\xdb\x05\x5f\xe0\x1d\xdb\x45\xad\x99\x86\xc6\x59\xb9\xa5\x52\x6b\x5b\xe7\x25\x5e\x15\xe8\xaf\x5c\x80\xb0\x45\x3e\x67\x1c\x8c\xdc\x26\x3d\x8b\xc7\x5f\x49\x74\x7e\xa3\x25\x20\xad\xf1\xfa\x33\x98\x4b\x65\x82\xcb\x20\x5d\xc7\x7c\x6d\xd2\x05\x0e\xd0\xb7\x68\x94\x7f\xfb\xed\x9f\x22\xf4\xd9\xfd\xf1\xe7\xff\xfc\xcf\x3f\xfd\x79\x9d\x74\x12\xa7\x90\x43\xbb\xc5\x1a\xf9\x72\x52\x65\x91\x28\xdc\x81\x3a\xa7\xda\x62\x17\xec\x01\x6c\x5b\xfe\x4d\x50\x1e\x83\xd8\x21\x3c\xb3\x27\x5c\x86\x27\x13\x95\x8e\x66\x11\x49\x20\x89\x3a\x28\x73\x08\x2f\xec\x5a\x89\xfe\x7f\x2d\x01\x2b\x1b\xeb\xa3\xb2\x59\x8c\x13\x4d\xbc\x78\xad\x1b\x41\x5f\x5b\xfb\x9f\x02\x07\xe2\x37\xee\x82\xe3\x49\x4c\x84\x19\x93\x37\xd9\x79\x43\x22\x30\x07\xf2\x39\x4b\x78\xec\xe0\x51\x8b\x5c\x40\x0a\x02\xc2\xf0\x33\xd6\x9c\xfb\xc0\xc2\x68\x99\x8f\x8c\xe7\x65\x8a\x23\x83\x0a\x2a\xd1\xd7\x9f\x4f\xf4\x6f\x07\x68\x71\x02\x41\xa4\x07\xe8\xd7\x13\x8b\x96\x83\x85\x1a\xeb\x9f\xbe\x71\xb2\xb6\x6d\x02\x06\x4d\x25\xfa\xea\xf8\x09\x0b\x53\x33\xfa\xd8\x8c\xe8\x2b\xcb\x59\x7d\x5d\xbc\x50\x36\x4f\x38\x7f\xb4\x01\xb6\xb5\x0f\x8f\x1d\xf0\x1a\x90\xb7\xf7\x9b\x98\xad\xf7\x89\xf9\x0a\x1d\xc2\x0b\x04\x1d\x65\x13\x74\xf4\x77\xc9\x19\x3a\x5a\xe0\x34\xb1\xbf\xba\xa7\x36\xfe\x17\x4b\x9b\x13\x17\xfb\x20\x9f\x64\x61\x2c\xa5\xdf\x25\x7c\x02\xb3\xba\x74\x33\x35\x11\xb4\x30\xd0\xe2\xf6\x29\x2e\x2c\x3b\x11\x97\x88\x0a\xf8\x41\x29\x57\xe6\x15\xe0\x71\x4d\xb3\xfa\xec\x87\xf4\xdf\xc6\x2f\x0c\x8b\xe2\x92\xf8\x8c\x71\xd8\x47\xaf\xe9\x46\x3f\xa3\xaf\x2d\x0b\xfa\x46\xdf\x31\x36\x5c\xd9\x2c\x43\x53\x07\x0b\xdf\xc1\xcf\x41\x07\x94\x21\x93\x96\xb9\xe4\xcb\x5f\x8f\x8f\x8e\x8e\xfc\xd7\x90\xb5\xfe\xff\x22\xaa\x24\x49\xa6\xa6\x25\x77\x83\x2d\x46\xec\xd2\x15\x5e\x70\xc6\xeb\x02\xd2\x31\x13\x5c\xf1\x88\x27\xe8\xb0\x30\xe8\xc6\x3c\x92\xe8\xdf\xb5\x58\x1b\x2c\x25\xfc\xa8\xf5\xb8\x16\x18\x58\x83\xf4\xfc\x4a\x87\xca\x1a\xc4\xab\xc7\x2a\x44\x71\xf3\x8a\x2d\x96\x61\x15\x0f\xa0\x05\x4d\x39\xc7\x16\xe9\x4d\x08\xfd\x32\xf9\xac\xe0\x51\x0b\x90\x5e\x63\x28\x7b\xf3\x4d\x59\x63\xb7\x05\x9e\x9e\x21\xeb\x96\x05\xb0\x78\x57\x96\x33\x98\x79\x1e\x84\xee\x13\x7d\xb9\xb0\xb0\x14\x80\xcc\xd3\x14\x8b\xc5\x71\x71\xda\xea\xc4\x59\x20\xad\x01\x8f\x49\xdc\x02\x80\x0b\x37\xb1\x47\xcb\x46\x31\x58\xf1\xd2\xdd\x68\xfe\xec\x46\x50\xcb\x30\x40\x2c\x20\x2c\xe2\xb1\xa5\xeb\x22\xfb\xb4\x2c\xb1\xf8\x77\xea\xb2\x8a\x8b\x88\x91\x85\x31\x8e\x29\x03\xe1\x61\xdf\x70\x1f\xb7\xb0\x6f\x3e\x86\xaa\xb8\x64\xb6\x86\x7b\xf4\xfc\xfa\xce\x7d\xd3\xfd\xd2\x85\x75\x28\x8b\xec\x38\x09\xf1\xf1\xd8\x0c\x09\xfc\x5c\x5c\xbf\x10\xdb\x61\xac\x33\xb9\xcf\xcd\x35\xff\x3e\xe5\x37\x34\xd1\xb7\x16\xd0\xf8\xd1\x88\x95\x7e\x3e\x40\x24\xa1\x29\x65\x3e\xb6\xce\x30\x77\x3e\x35\xd2\xf3\x23\x55\x7a\xcb\x64\xfc\xa8\x39\x98\xc3\x75\x0a\x54\xaa\x01\x5b\x38\xd2\xf1\x8e\x29\x6b\x81\xc8\xa5\x1e\x57\xa1\xa3\x6b\x61\x56\x37\x71\x68\x05\x52\x1a\x10\x1e\x9c\xdf\x11\xd3\xad\xb9\xb3\x54\x84\x0b\x07\xed\x05\xcd\x1d\x3a\x40\xfc\x80\x03\x40\x1f\xa5\x98\x5f\x2f\xff\x36\x08\x28\x43\x96\xa7\xdb\x26\x9b\xd8\xf0\xe1\xb7\x32\xd3\xdd\x08\xe2\x6e\x2a\x9b\xb8\x44\x58\x9e\xba\x03\xb5\x06\xc5\x0d\xad\xf8\x13\x93\x28\xc1\x06\xa9\x46\x37\x04\x91\x8f\x07\xc6\x41\x9a\x05\x7d\x99\xeb\xc5\x74\x63\x6a\xec\x24\x84\x7d\x6d\xfe\xfd\x0d\xb2\x77\xc3\xb7\x07\xf6\x3e\x17\xd2\x23\x80\x98\x3d\x87\x1a\x8d\x24\x36\x36\x74\x40\x25\x9e\x61\x11\x1b\x6b\x79\xa8\x55\x98\x0c\x5e\x2d\x7f\x2d\x78\x8e\x9e\xa9\x9c\x8f\xd8\x3d\x77\x06\x47\xc4\xb8\xc7\x75\x3e\x00\x65\xb4\xd6\x1f\x96\xc0\x04\x60\xd4\x4d\x14\xa0\x99\xf0\x56\xb9\x46\x10\x05\x3b\x66\x3c\x26\xdb\x01\x18\xdd\x17\xbe\x0a\xe7\xbf\x16\xc4\xe4\x83\xc1\x4d\xd1\x96\x4e\x4b\xa4\x5c\xd3\x36\x5f\xdd\x78\xb8\x87\x6c\x3b\x50\x12\xf8\x79\x2d\x74\xed\x10\x1b\xcc\xdf\x6a\xd0\x8a\xd3\x38\x83\x6c\xe0\xd2\xda\x7b\xb4\xe4\x6d\x37\x21\x6a\x40\x2b\xea\x74\xf7\x9b\xb9\x47\xb0\xec\x3e\xc0\x18\xa3\x99\xe0\x79\xe6\x53\xe6\x5d\xba\x9f\xd9\x06\x2b\xd3\x9c\xb3\x29\x3f\xb1\x3a\xd5\x05\x65\x8f\x86\xe2\x5f\x6a\x8f\x0c\x20\x36\x89\x4b\x30\x6e\xae\x4a\x2b\xcc\xe1\x10\x51\x16\x25\x39\x5c\x7c\x52\xe1\xe8\xd1\x80\x7a\xb7\x19\x7d\xf5\x37\xe3\xd5\xc9\x94\x2d\x12\x53\x9e\x24\xb6\xdb\xe2\x02\x2d\xca\x58\x3f\x51\x8c\x30\x7a\xb8\x3d\x6f\xee\xfb\x91\xd6\x9d\x39\xcd\xb7\x67\x99\x40\xe0\x7f\x7e\xa0\x6b\xc5\x5d\x56\x60\xf1\x48\x89\xd4\xbd\x71\xa9\x0d\x74\x55\x13\xe9\x27\xac\xc8\xb6\x99\x50\x06\x03\x6c\x8d\x48\xbd\x1a\xb8\xda\x52\xeb\xf1\x96\xc8\x64\x05\xaa\x18\x84\x06\xb5\x43\xa4\x85\xc1\x5a\xf0\x70\x0d\xec\x06\x78\xbf\xdb\x7c\x2a\xef\xae\x98\xce\xf2\x61\x26\x84\xac\x81\x36\x70\xa7\x5f\xef\x38\xc8\xd2\xab\xcb\xc6\xf8\x8c\x4d\xf5\x85\x3a\xe8\x6f\x6c\x25\xbb\x75\x98\xad\x23\x47\x23\x5e\x4b\x9f\x23\xe2\x47\xe2\xc2\x70\xbc\x2c\xe6\xfa\x9d\x81\x6f\x8b\x97\x8a\x3b\x78\x0b\x6d\x03\xe1\x07\x62\xeb\x96\x61\x13\x5a\xfc\x1a\xa7\x9d\x01\xe5\x8a\x8e\xcf\xec\xc7\x97\x35\x78\x39\xcf\x8a\x2e\x21\x8b\xcf\x03\xa7\xa4\x98\xe9\x93\xed\x7a\x6d\x31\x42\x1a\x89\x70\xa3\x21\x3d\x64\x1b\x0d\xc8\xf4\xd8\xb1\xee\xa1\xed\xca\xb5\xf2\x6c\xec\xf0\x38\x31\x76\x26\x35\x07\x13\x44\x51\x2f\x48\x73\xb4\xb2\x29\xc2\xd4\x16\x4a\xf0\xff\xc7\xde\xb7\x35\xb7\x8d\x24\xe9\xbe\xcf\xaf\xa8\x88\x7d\xb0\x7d\x0e\x45\x4d\xf7\xc4\x6e\xf4\x3a\x62\x1f\x68\x59\x9e\xd6\xb4\x2d\x79\x24\xb9\xbb\xf7\x2c\x37\xe8\x22\x50\x24\x31\x02\xab\x60\x14\x20\x99\xb3\x33\xff\xfd\x44\x65\x66\x5d\x70\x25\x40\x4a\xb6\x67\xb6\x1f\x76\xa7\x2d\x02\x85\xba\x57\x56\xe6\x97\xdf\x97\xaf\xf1\x82\xa4\x45\xa1\x5f\xb4\x8c\xb0\xcf\x79\x38\x62\x84\x0f\xd0\x64\x0d\xe3\x9e\x60\x7e\xf7\xad\x34\x57\xcb\x2a\xb9\xa8\x3b\x95\x9d\xba\x71\xc0\x9c\xe7\x13\x31\x22\x95\x23\x13\x77\x6c\xd6\x4a\x37\x67\xca\x91\xda\xdc\x97\x7c\xeb\x18\x01\xac\x42\x30\xe5\x77\x61\xe5\x96\x02\x78\x71\xbb\xeb\x70\xb4\x08\x77\x58\x05\x12\xc5\xec\xaa\xc1\x5c\xce\xec\x23\x9e\xdd\xcb\x5c\xcc\x72\x34\xc0\x01\x1f\x8a\x68\x68\xb8\x5f\x71\xdf\xeb\xd4\xb8\x8e\x46\x8c\x4d\xde\xac\xeb\x88\x9b\xfb\x9d\x3b\x8d\x48\x31\xc8\x71\x78\xf6\xaa\x35\x91\x7c\xfe\x11\x1f\xbf\xb1\x4d\xac\x29\xf1\xb7\x7d\x78\xff\x5d\xca\x32\x46\x50\x41\xa1\xf8\x3f\x62\x48\xd3\x9d\x9f\xa6\x9e\x24\xae\xf6\xb1\xe6\x6a\x2d\x8e\xda\x8d\x13\xbe\x5d\xe4\xaa\x5b\xce\x6a\x40\x37\xd9\x22\x2a\xfe\x9d\x0d\xca\x5b\xec\xd8\xa7\x92\xa7\x78\xb8\x49\x9a\x8e\xb6\xda\x60\x2a\x7f\xff\x6f\x6c\x06\xa7\x0f\x7b\x07\xfb\x22\x04\xf8\xa1\xb4\x42\xb1\x64\x9b\x89\x5c\x2b\xc9\x3b\x75\xdd\xee\x7e\xd0\x0b\xd2\xa6\x59\xf0\x28\x52\x65\x53\x87\x66\x44\x4b\x5a\x4a\x0b\x1b\xc5\xd9\x5d\xb9\x14\xb9\x14\xa8\x5d\x07\xcf\x31\xfb\xdc\xa0\xea\x2a\x5e\x16\x9b\xef\x17\x51\x9a\x0c\x16\xcc\x81\xec\xa2\x99\x79\xed\x0c\xdf\xea\x6b\x40\xa5\xfc\x4a\xd5\x25\xc3\xdf\x18\xfe\x36\x65\xaf\x78\x74\x27\x64\xcc\xb2\xb4\x5c\x27\x44\x26\x00\x27\x14\x6c\x97\x81\x7b\xb6\xda\x30\xb4\x2d\xb0\x7c\x73\x0c\xcd\xe5\x96\xdf\x21\x89\x2d\x19\x91\x11\x4f\x3b\xa9\xa8\x9c\x59\xbd\x48\x9a\x73\x77\xef\x68\xb9\xf3\xb0\x59\x4c\x7d\xee\xe9\x12\x73\x2b\x1e\x36\x8a\x22\xd2\x15\xab\x7e\xc4\xc2\x75\xb3\xb5\xc1\xf9\x62\xf3\xf2\x9d\x8a\x21\x55\x06\x57\x2f\xb8\x7b\x81\x88\xb9\x94\x8c\x03\x6d\xcc\x33\xcd\xca\xcc\xda\x67\xe0\x87\x4c\x21\x2a\x8c\x43\x60\x7e\xc8\x12\x73\x4b\xdb\x88\xb9\x04\xa4\x2d\x73\xcd\x6b\x88\x5d\x31\xe1\x01\x31\x6d\x5b\xc3\x0a\x49\x13\x8e\x8b\x71\x36\x78\x9c\xf7\xcc\xd3\x81\x28\xe2\x62\x23\xe4\xe2\x00\x3a\xe1\xe1\x83\x56\x41\x0c\x93\x19\xec\xfc\xb9\xae\x0b\x4b\x99\x90\x80\x14\xb9\xf0\x43\xae\xcc\x64\x55\x33\xa3\x13\xcd\x34\x2f\x12\x6d\xf6\xb2\xd6\x1e\xf7\x54\x15\xc7\xf4\x3a\x1f\xc7\x8f\xd1\xc2\x8d\x51\xeb\x0b\x97\x95\x30\x65\x6f\xc0\x0b\x16\xdc\x0c\x94\x63\x9a\xe8\xda\xb0\x8a\x8d\xe8\xa4\x5c\x7c\x0c\x38\x8f\x6d\x41\xf0\x7c\xaf\x73\xd3\x65\xa0\x4c\xd9\xcc\x47\x1f\x90\x6b\x03\xe3\x0a\x7b\x5a\x24\x52\x2d\x0e\x99\x7c\x83\x1c\x75\x10\xa1\x87\x09\xc4\xc0\x92\xd2\xe6\xef\x9e\x41\xde\x55\xf3\x01\x92\x3c\xf9\x9d\x90\x7d\xde\x98\xe1\x35\x44\x77\x59\xaf\x4b\xc0\xf9\xe1\x14\xba\xe2\x0e\xa9\xe0\xf0\x65\xe7\xe9\x4d\x92\xd5\xa9\xe9\x72\x73\x0d\x89\xee\x28\xb5\x04\xbd\xb1\x44\x90\xf2\xb0\x51\x3a\x5c\x67\x76\xfc\xf0\x26\x9b\x97\x8e\x25\x1c\x52\x73\x5c\x07\x23\x26\x47\xaa\x90\x3f\x05\x6a\xed\x16\x29\x7a\x9a\xdd\x78\x33\xbb\x85\x42\x37\x40\x14\xcb\x16\xd5\x5c\xcd\x3f\xfd\xa0\xaf\x60\xc5\x3e\x46\xa6\x7e\xbb\x2c\xeb\xf1\x28\xf9\x03\xe3\x03\x0e\xff\xe5\x35\x5d\x79\xec\xb8\x25\x32\x15\x33\x3f\xbd\xc6\x0b\xb8\x7e\xfd\x66\xd5\x84\x5f\x07\xb5\x6d\xdf\xcc\x7e\x17\x80\x08\xd8\xb2\x4c\x50\x43\xbd\x62\x10\x2a\x6b\x71\x00\xff\x31\x1c\xff\x89\x76\xe7\x49\xfb\x1c\x7b\xaf\xe2\x63\x26\xd6\x78\x3a\xbd\xe6\xbc\x1e\x80\x31\xd6\x6d\x9a\xef\x3d\x3d\x91\xa9\x6e\x74\x68\xbc\x18\xae\x92\x0e\x70\x80\x65\xb9\xba\x01\x75\x91\x2e\xc6\x8a\x80\x78\xdf\xa6\xa0\x99\x71\x36\x9f\x71\x09\x11\x5d\x83\x42\xd1\x65\x7f\xfc\x73\xf6\xa7\x9b\xab\xcb\x93\x2d\xcf\xf5\x86\x43\x46\xb0\x2d\x6b\x62\x05\xdb\xf0\x7a\x6c\xa3\x5e\x89\x9c\xcb\x13\xb6\x56\x13\x8c\xb1\xbe\x64\x9b\xa2\xc8\xf4\xcb\xd3\xd3\x75\x52\x6c\xca\xe5\x34\x52\xdb\x53\xdf\x35\xa7\x3c\x4b\x4e\x97\xa9\x5a\x9e\xe6\x02\x50\xb6\x27\xdf\x4d\xbf\xff\x0e\x46\xe6\xf4\xfe\xbb\x53\x88\xac\x4d\xd7\xea\x5f\xde\x7e\xff\xef\x7f\xf8\x37\x53\x70\xb6\x2b\x36\x4a\xbe\xa4\x00\x6e\x6f\xd9\x27\x68\x95\x9f\xe2\x2b\xb5\xaf\xfc\xfb\xf4\xf7\x61\x35\xe8\xd1\xad\x8a\x45\xaa\x4f\xef\xbf\x5b\xd8\x81\x99\x66\xbb\xdf\x70\xa9\x5f\x0d\x97\x7a\x97\x14\xbf\xe1\x52\xbf\x2a\x2e\x75\xb8\x85\xe3\xf6\x18\x20\xfa\xf4\xfb\xa3\xf9\xbb\xdb\x23\xad\xeb\x7d\xdf\x3e\xd4\x72\x38\x84\x59\x03\x47\x1c\x11\x77\x62\xd4\x15\xbb\xd6\x5c\x77\x75\xe8\x70\xb1\x8d\x25\xdb\xef\x34\xe6\x47\x25\x49\x03\x0a\x24\x89\x80\xc8\x19\x5d\x82\x19\x4f\xda\xd0\xa6\x84\x76\x3a\xa6\xff\x9e\x92\x92\xfc\xb1\xb9\xc8\xa9\xb9\x07\xf2\x90\xa7\xf8\xb6\xc5\x66\xa9\x07\xcb\x3f\xfe\x18\xac\xdd\x03\x75\x5c\x1d\x19\x31\x4e\x1e\xa8\x8b\xad\x57\x47\x35\x36\x5c\x1f\x06\xf2\x9b\x21\xe5\x9f\x8b\xd3\x39\x55\x7c\xfa\xa0\x3d\x38\x2c\x8b\x02\x88\x84\x13\x59\x53\x56\xe6\x99\xd2\x42\x4f\xd9\x9b\x9a\xd2\xa1\x07\x2e\x5e\xbf\x39\x63\xdf\xfd\xf0\xef\x7f\x98\xcb\xe7\x2d\xe7\x36\xec\xf7\x2a\x5f\x13\x8e\x12\x4e\xeb\x2d\xd7\x85\xc8\x4f\xf3\x55\x74\x8a\xbb\xdc\xa9\x79\xff\x84\x3e\x7a\xa2\x56\x27\x8e\x92\xf8\x84\xd8\x59\xa7\xdb\x78\x1c\xc1\x40\x65\xea\xe1\x59\x43\x07\x8d\x86\x43\x09\xa9\x88\xd4\xca\x91\xcf\x63\x9e\x0b\xea\x54\xa8\x55\xcb\x7f\xbc\x4a\xd5\x52\xbf\x70\x04\x68\x5c\xdb\x6f\x78\x46\xa2\xee\xa5\xf9\x38\xec\xe4\x76\x8a\x3c\xa5\xa3\xc2\xee\x25\xe1\x75\x64\x4c\xc7\xb7\x2f\x36\x7f\xdc\x23\x1f\x03\xcf\x55\x29\x2d\xbb\xb3\x92\x42\xad\x00\xc5\x07\x96\xb0\x45\x29\x80\xaf\xd6\x9c\xb4\x9e\x7b\x21\x17\x19\x1e\x30\x10\x55\xe8\xee\xee\x23\x19\xce\xf7\xf5\xf3\x53\x30\x9c\x1f\xdb\xef\xb4\xa1\x7c\xa5\x0e\x3f\x16\x4a\x88\x4b\x69\x0c\xaa\xc2\x3c\xbf\x37\x82\xea\xf6\x01\xaf\x3e\xe4\xc9\x84\x33\x9e\x83\x91\x26\x4e\x0a\x75\x02\xa4\x35\x40\x85\x82\x9a\x03\x5d\xb0\x0a\x88\x3c\x8f\x39\x26\xcd\xf3\x03\xea\x89\x86\xf9\xe7\xa0\xa2\x64\x93\x68\xa4\xf0\x24\x48\x56\x22\xa5\xc8\x29\xa6\xb6\xf7\x44\x1d\x19\x97\x0e\x87\xb2\x1f\x91\x15\xe8\x5a\x07\x7c\xf0\x0e\x8f\xcf\x83\x4d\x60\xca\xc0\xfa\xdc\xa8\xad\x32\xe6\x8c\x2a\x75\xf0\x23\xde\x5e\xe0\x10\xee\xb4\xbd\xb6\x3c\x43\x92\xba\xaf\xd7\x1a\xb3\xb4\xcc\x4f\xe8\xd4\x0b\x1f\x1a\x25\xb1\xb1\xac\x8a\x0a\xec\xa9\xbf\x63\x83\xef\x9f\x37\x80\x7a\x40\x9d\x3a\x90\x8a\x25\x8e\xe7\xe4\xaf\xe6\x5e\x63\xa6\x94\xbb\x29\xb8\x93\x1b\x41\x3a\xc8\xc5\x18\xd2\xbd\x5a\x6b\xbe\x33\x5b\xba\xdc\x8e\x1c\x03\x07\x32\x1e\x32\x00\x5c\x22\xec\xd6\xe2\x6d\x4f\x5a\x01\xb7\x5d\xeb\xd2\x0a\xb3\xc6\x0b\xcb\x17\x3a\xae\xaa\x37\xae\x00\xa2\x06\x6d\xd6\xdb\xd3\x2d\x01\x3a\x1b\xfb\x18\x37\x04\x6b\x5b\x74\x80\x6e\xe4\xf8\xc5\x08\x02\x2b\x63\xfa\x0e\x3e\x82\x93\xb3\xd1\x83\xc1\x5a\xe8\xea\xc0\x71\x2e\xb6\x3e\x8f\x55\x1b\x9c\x1f\x19\xea\x7c\xf6\x8e\xa9\x65\xe3\xf2\xe8\x5e\xbc\xf7\x2a\xd4\xbb\x4c\x4c\xd8\xb2\x84\xdf\x2f\xaf\x6e\x43\xb4\x46\x82\xad\x3d\x89\x36\x22\xba\x03\x87\x09\x1e\x79\x4e\xb4\x91\xd8\xf0\xe6\xd2\x4b\x7f\x15\xca\x42\x0f\x76\x8e\x0d\xdd\x29\x02\xa8\x9c\xc5\x89\xce\x52\xbe\x83\x20\xaf\x44\x9c\xbe\x0f\x10\xbb\x04\x17\xb3\x15\xec\xf3\x17\x0f\x1f\x69\x33\x2a\x33\xff\xde\xd8\xbe\xe4\xf9\x32\x29\x72\x9e\xef\x98\xef\xcc\xe6\x7e\xc0\xb4\xd8\x72\x59\x24\xd1\x5c\x6e\x05\x97\x21\x2a\x8f\x82\xdc\xa6\x93\x63\x25\x88\x2f\x78\xb5\x12\x51\xe1\x09\x07\xc1\x78\x77\x3d\xb5\x6f\x0d\x8e\x6b\xbb\x5b\x79\xbd\x4d\xff\x31\x91\x98\xde\x9e\x6c\x01\xf3\x49\x73\x88\x8e\xc6\x03\x83\x37\x20\x15\x47\x47\xae\xbd\x0c\xc2\xbf\xec\x9c\x62\x4b\x51\x3c\x08\xc8\xa7\xa7\x04\xc0\x36\x1b\xff\x68\xb9\x80\xe3\xd4\x7f\xdb\x75\x93\x03\x24\x18\x2e\xb0\x10\x4c\xe6\x88\x7f\x64\x8d\xc1\xe7\x19\xa5\x24\x82\xb7\xe7\x19\xf9\xad\x9e\xc1\x31\x6d\x6e\x8f\xf9\xbd\x88\xe7\xb2\x4a\xab\x44\x36\xa3\x5f\x70\xcc\x0b\x61\x3d\xce\x6e\x63\xfb\x78\x90\x2f\xff\x1c\xa8\x24\x3c\x89\xa4\x4b\xba\xeb\x11\xe6\xc2\x46\x3f\xe5\xad\xca\x6a\x02\x86\xd6\xfd\x00\x48\x96\xd0\x56\xe8\x86\x74\xf1\x2a\x78\x0a\x37\x29\x1d\x69\x0c\x32\xca\x39\x00\x2c\xf9\x25\x1b\x9e\xce\xb6\x32\xe6\xd2\x66\x53\xaf\xca\x14\x59\x42\xbb\xa4\xc2\x88\x43\xca\x66\x7e\x7c\xbd\x0c\x20\xe7\x57\x63\x81\xb6\x98\x83\x3d\x04\x60\x64\xdc\xeb\xec\xac\x17\x52\xa3\x20\xb5\x95\x15\x02\xc7\xf3\x5a\x14\x70\x9a\xc7\x65\x8a\xc9\xc1\xe0\x31\x07\x3e\x2a\x9e\xa6\x2c\x29\xf4\x5c\x3a\xfa\x2c\x24\x43\x87\x1d\xd6\xba\xd4\xad\x22\xad\x74\xba\xb6\xa4\xdd\x0f\x76\x58\x12\x25\x45\x03\xc2\xbd\x0b\xa5\x38\xb2\x4c\x70\xcc\x65\xc3\x61\x9b\xcb\xf0\xce\x55\x1f\x04\x4a\xfc\x02\x8d\xf2\xc7\xc8\xc1\xea\x41\xe4\x83\xb0\xfb\xe8\x21\x99\xb2\x19\xb6\xce\x5c\xb8\xac\xca\x26\xd6\x96\xf2\xe7\x09\x69\x69\x6e\x35\x85\xb6\x3e\x72\x7f\x6f\x05\x39\xe7\xa8\x4c\x79\x9e\x02\x27\xfd\xaa\x4c\x59\xb2\x0a\x04\x43\x61\x0c\x90\x3c\xc9\x0c\x57\xa4\xe0\xac\xb6\x5e\x72\xcd\xb7\x22\xc8\xdb\x26\xf7\x4e\x1a\x60\x28\x90\x11\x1a\x83\xf3\xa6\xac\x17\x53\xf6\xba\xae\x30\x0f\x6b\x22\x20\x5d\x4c\x34\x6e\x7f\xae\xbe\x41\xca\x21\x2a\xd5\x27\x2b\x73\xa5\x7c\x16\xac\xba\x8e\x11\x04\xf2\xf6\x71\x00\x0d\x4b\xdd\xdf\x8f\x1a\x6e\x4d\x39\x36\xaf\xd6\x60\x1b\x6e\x41\x74\x54\xd0\x9e\x0a\x23\x2b\x19\x12\x56\x1e\x50\x51\x47\x08\xda\x52\xd9\x6d\x8f\x3e\x29\x8c\xe3\xc8\xaa\x06\x6a\x3f\xe3\x2b\x1a\xcc\x9c\x10\x8e\x33\xa4\x67\xd7\xbc\x18\x8b\xcd\x71\xc9\x38\xe3\x2b\xda\x8a\x83\x1a\x52\x4d\xd8\x3d\x46\xd6\xd3\x4b\xf0\x8f\xaf\xa8\x93\x7e\xf6\x7a\x00\x5e\x13\xbf\x92\x43\x69\x99\x0e\x5d\x0b\xf4\x5c\xd2\x61\x37\x3e\xfd\x73\xe6\xe7\x1c\x08\x1e\x31\x53\xfd\x29\xbb\x92\x02\x91\x73\x6a\x15\x1c\x2a\x54\x01\x52\x46\x02\xb2\x79\x19\x48\x50\xa7\x89\xbc\xb3\xd4\x12\x66\xc9\x4d\x18\xf7\xa5\xc3\xae\x87\xd3\x06\x77\x91\x0e\x5b\xb2\x4d\x9a\xe1\x08\xf3\x72\x58\x82\x66\xfb\x9d\x3f\x00\xa0\x8e\xdf\x01\xda\xda\x31\x7c\x58\x7a\x91\xe4\xee\x16\x57\xd1\x18\x0f\x51\xa3\x45\x52\xec\xf6\xf5\xef\xfb\x4d\x15\x85\x38\x42\xc8\xe8\xc3\xe5\xeb\xf3\x37\x17\x97\x55\xf5\xa1\x3f\x7f\x38\xff\x50\xfd\xcb\xf5\x87\xcb\xcb\x8b\xcb\x3f\x86\x7f\xba\xf9\x70\x76\x76\x7e\xfe\xba\xfa\xdc\x9b\xd9\xc5\xdb\xda\x73\xe6\x4f\xd5\x87\x66\xaf\xae\xae\x6b\x7a\x47\x56\xac\x28\xf8\xd3\xed\xc5\xbb\xf3\xd7\x8b\xab\x0f\x15\xc9\xa4\xd7\xff\x79\x39\x7b\x77\x71\xb6\x68\xa9\xcf\xf5\xf9\xd9\xd5\xcf\xe7\xd7\x7b\x14\x8f\x7c\x7b\x5b\xbb\xf4\x31\xe0\x63\x07\xeb\x5f\xcd\xd8\x2a\x4f\x84\x8c\xd3\x1d\x62\xef\xed\xcd\xb6\x06\xa6\x0d\xcf\xde\x64\x2b\x54\x79\x0c\x84\xfe\x76\x83\x0a\xf5\xc0\x82\x81\xa5\x51\xca\x2c\xd7\x77\x9d\x1c\x89\x45\xde\x8c\x0a\xf4\x66\x0a\x15\xf9\xce\xe5\xa2\xf5\x55\xc7\x33\x28\xd1\x47\x58\x26\xf2\xbe\xba\x80\x65\x94\x97\x59\x91\x2c\xbb\x93\x22\x06\x32\x0b\x8d\xbf\x7b\x23\xdf\x5f\x3b\x39\xca\x65\xfb\xc6\x58\xc9\x0d\x38\x06\x78\x0c\x25\x1c\x2a\xeb\xe6\xde\xb6\x60\xcd\xac\x5c\xa6\x49\xc4\x92\xb8\xee\x4f\xc1\x14\x36\x74\x19\xd7\x69\x41\x33\x91\x83\xa9\x6a\x6e\x00\x59\x2e\x4e\x78\x59\x6c\xac\xe2\xbc\xcb\x64\x44\x9a\x4e\x11\xe5\x02\x63\x01\x42\x83\x93\x16\xf5\xbc\x82\x2f\x41\x65\x28\x83\x3b\x06\xb2\x98\x69\x40\xd1\xde\x11\x23\xc0\x37\xb1\xf4\x11\x4e\x52\x7c\xbe\xb7\x6b\xa8\xc6\x89\xae\x8b\x39\xc3\x09\x8f\x3f\x5a\x55\x30\xd3\x6e\xb3\x53\x3b\x55\x2c\x1c\x64\x9b\xbb\xd1\xde\x8c\x7d\x73\x2c\x9c\x28\xd5\x64\x06\x2a\x9d\x7e\x3a\xcb\x05\x1c\x22\x04\x05\xb0\xfe\x0b\x80\xae\x50\xae\x07\xa4\x78\x98\xab\xda\x52\x6c\x78\xba\x42\x8b\xc3\x0c\x8d\x5f\x57\xcd\x29\x7a\xab\xee\x84\xbc\xc6\x01\xfb\x2a\xdb\xa1\xc4\x9b\x8f\xcf\xe9\x77\x1e\x21\xef\xc2\x34\x75\xb4\xb3\xca\xe6\xba\x81\x31\x55\xe0\x3d\x21\xf8\x19\x53\x3a\x3c\x63\xaf\x4d\x93\x5b\xad\x92\xcf\xa6\xc0\xb9\x14\xad\x9c\xa5\x80\x17\xb2\xec\x4a\x6e\x5f\x06\x6c\x14\x52\xd4\xdc\x09\x09\x7a\x62\x28\x37\xbc\x77\xce\x8e\xf3\x9f\x37\xc7\xa2\xc7\xa1\x0f\x3e\xbf\xa4\x22\xb3\x16\x46\x79\x6c\x3f\x15\x98\x63\x33\x65\xaf\x89\x78\xc3\xfc\xe5\xec\xed\xc5\xf9\xe5\xed\xe2\xec\xfa\xfc\xf5\xf9\xe5\xed\xc5\xec\xed\xcd\xd0\xe5\xf7\x18\x79\x51\xb5\xd5\x57\x4f\x0f\x72\x3b\xc4\x29\xad\x3c\x9f\x9e\xeb\x1a\xe5\x97\x1d\x0c\xc9\xfe\xda\x27\x71\xb6\x88\x13\x1d\x99\xe3\x6f\xb7\x10\x32\x06\xb2\xe7\x83\xa6\x6a\x7b\x51\xf5\x56\xb8\x27\x98\x7b\xc2\xee\x20\x78\xda\xdd\xdb\x19\xed\x7e\x07\xd4\x1d\xb8\x21\x73\x61\x16\x7f\x6c\xee\x07\xee\xb4\x99\xee\x57\xf8\x30\xc5\x1d\xd7\xb6\x6a\x11\xf5\x36\x61\x7d\x13\xad\x4b\x6e\xf6\x47\xfb\x18\x40\x0e\x3b\x7a\x85\x18\xf8\x42\xc6\xe9\x24\x50\x4b\x65\x89\x9e\xcb\x2d\x97\x31\x2f\x54\xbe\xeb\x68\xe2\xb0\xcd\x33\x5c\x36\xd5\x2d\x34\x3c\xb2\xa5\x10\xb1\x1d\x05\x7c\x94\xcb\xfa\x54\x42\x5e\xea\xdb\xab\x9f\xce\x2f\x6f\x16\xe7\x97\x3f\x2f\xde\x5f\x9f\xbf\xb9\xf8\xd5\x21\x21\x33\xae\xdb\xd4\x11\xb3\x5c\x98\xdd\xc5\xd2\x7c\xb4\xee\x2f\x28\x59\x68\xcb\x21\x99\xaa\x64\x35\x97\x76\x67\xc9\x7d\xf1\x9b\x5c\x95\xeb\x4d\x7b\x41\xf5\x5a\xbe\x9f\xdd\xfe\x78\x50\x35\x81\x84\x09\x75\xcd\x70\xb5\x35\x11\xa1\xc9\x8a\xf6\x3d\x84\x91\xd6\xaa\x07\x54\x62\xf0\x68\x5b\x94\xa1\x63\x47\x3b\xe8\xf6\xd2\xdc\xb4\x7a\x8d\xff\x96\xc7\xbb\x26\xd0\x6d\xb0\x6f\x56\x8e\x11\x40\x28\xa3\x3c\x66\xa3\xb4\x97\x2d\x7f\xab\x9c\x60\xdf\x9f\xa4\x62\xbd\x16\x31\x4e\xaf\x7a\xc1\xe4\x83\xa3\x2d\x30\xf2\xe7\x7a\x5b\x2f\x92\x80\xdd\x11\x07\xb3\xc3\x7b\x0d\xdf\xc0\xdf\xbb\x57\xda\xf7\x8a\x33\x2b\x92\x1d\x29\xa9\x0b\x2e\x3b\x02\xc9\xf7\x4d\x84\xe6\xa0\xad\xe8\x2a\x67\x2e\xf9\x89\x1c\x26\x36\x64\xe0\xd7\x41\x17\xe0\xe5\x78\x5c\xa8\xab\xc7\xb5\xc8\x52\x1e\x09\x97\xc3\x80\x0c\x78\x70\xaf\x3f\x24\x80\x47\x32\x81\x92\xfc\x2d\x81\x7c\x60\xa0\x29\xde\x32\x05\xc0\x73\x7b\x6d\xf7\xe3\xa7\x77\xad\xf4\x5e\xdc\x88\xf7\x0a\x1c\xcd\xa8\xd3\x44\xd0\x77\xf4\x45\x81\xf8\x59\x27\x2c\x79\xd4\x74\xa8\x7d\xf9\x67\x1a\x78\xbc\x33\x57\x1d\xdd\xdc\x32\xcb\xb9\xe9\xe1\x4c\xc7\xba\xbf\x70\xdf\x68\xcd\xaa\xb7\x00\x5f\x72\x96\xab\xb8\x8c\x2c\xf7\x0e\x14\xeb\xf1\x35\xe4\x4e\xb3\xc7\x7b\xcc\x4e\xcc\x30\xd3\x15\x49\xc4\x27\x80\x9c\x9f\xcb\xae\x60\x96\xdd\x81\x3a\x9c\x6c\xef\xed\x99\x79\xcc\xd8\xb7\xf4\x7e\xf7\xb2\xb0\x9d\x3d\x2c\x83\x95\xd9\xc7\xc1\xd4\xec\x80\x27\xd1\xb8\x2c\x39\x46\xaa\xab\xc6\x40\x17\xd5\x86\xdb\xd3\xc7\xa1\xa8\x86\x81\x50\xaa\xa9\x29\x78\x40\x6f\xb8\x46\xbb\xb9\x88\x36\xd5\x8a\x43\x6b\xaa\xf4\x74\xf5\xea\x3a\x3b\xf4\x38\xff\xc4\xa0\x78\xd5\x04\x6f\xf4\x09\x79\x90\x2b\x52\x63\x4e\x37\x71\xdc\xc4\x0f\x4d\x33\x77\x75\xc2\x5d\x17\x36\xac\x94\x97\x32\xda\xb0\x2c\xe5\x98\xb5\xbd\xe1\x1a\xa7\xb4\x05\x6d\xf0\x65\x92\x26\x05\xd0\xe1\x60\x2c\xb1\xd6\xc3\xe6\x3e\xc5\xf3\x3b\xcb\x40\xcb\x3d\xf7\x51\xdf\xa4\x3f\x12\x1c\xeb\xe5\xf9\xbf\x24\x3c\xd6\x2f\xd9\xe0\x8d\xde\x48\xa4\x9f\x96\x04\x8d\xf5\xc3\x61\x76\x3c\x98\x96\xbe\x2d\xe3\x46\x96\x4a\x7c\x5f\x7f\xbd\xd2\xdf\x2d\x66\xc2\x78\x68\x08\x51\xab\x8f\xd8\xe6\xeb\xc4\xeb\xad\x2b\x6b\x95\x2a\xde\x21\xfe\x6b\xcb\x46\x1e\xf5\xae\xb2\x63\x55\x2e\xbb\x98\x7b\xb1\x56\xfd\xa5\xf7\x45\x1d\xec\xba\x7d\x2c\xaf\x64\xb8\x01\xf2\x42\x14\xc9\x38\xc7\x4a\xd0\x68\x5e\x88\x13\x78\xbd\xbd\x70\x4a\xe5\x1b\xdc\xe6\xc6\x44\xf3\x6a\x1e\xce\x3a\x02\xd0\x5e\x73\x76\xfd\xb9\xe4\x66\x6b\xb8\x5a\xdd\x20\x3f\xcb\x31\x93\xac\x48\x9a\x33\xac\x7d\x25\xd6\xbf\x7a\x5b\x0d\xe9\x84\x73\x60\x70\xf6\x6b\x5b\x6b\x6e\xcc\xdb\xc3\x17\x64\x55\x21\x3f\xcb\x13\x05\x3c\x25\xa4\xcb\xdf\x43\x71\xd8\xfa\xdd\x23\x7a\xf2\x53\x29\x4a\x61\xe6\xfe\xb2\x8c\xd7\x4d\xcf\xea\x08\xeb\xcc\x37\x69\xa3\x1e\xd8\xb6\x8c\x36\xcc\x16\xce\x62\x91\xf2\x5d\xa5\x69\x60\x2f\x15\x2a\x05\xd2\xe0\x03\x19\x4c\xa3\x52\x17\x6a\x0b\xa0\x56\x5f\x6e\x5e\x4a\x98\xf0\x8c\x17\x45\x9e\x2c\xcb\xa2\x15\x00\x57\x61\x34\x3b\x30\x9c\x76\xf3\xfe\xfc\xec\xe2\xcd\x45\x2d\x96\x35\xbb\xf9\x29\xfc\xf7\x2f\x57\xd7\x3f\xbd\x79\x7b\xf5\x4b\xf8\xb7\xb7\xb3\x0f\x97\x67\x3f\x2e\xde\xbf\x9d\x5d\x56\x22\x5e\xb3\xdb\xd9\xcd\xf9\xed\x9e\xa0\x56\xf3\xab\xdd\x03\xc1\x03\xc2\x35\x0b\xb3\xb5\xcc\xd3\xf6\x6e\x4b\x5f\x7d\xc9\x66\x96\x7e\xae\x42\x90\x68\x03\x93\x80\x64\x40\x1d\x66\x8a\x5f\xbe\xe6\x05\x27\x5d\xfb\x29\x9b\x31\x02\x21\x23\xb8\x5c\x1b\x63\x81\xb8\xb9\xcc\xe8\x60\x11\xc6\x62\x88\xfc\xbd\xd1\x4b\xeb\xa9\x15\xb1\xe2\xa5\x22\x24\x61\xb7\x99\x54\x73\x79\x7e\x2f\x64\x51\x02\x43\x34\x4f\x53\x66\xe5\xf4\xe9\x81\x20\x4b\xdc\xd6\x52\x27\xdb\x24\xe5\xb9\x57\x41\xbb\xa2\xb2\xc0\x60\xb7\x75\x75\xa4\x40\xcd\x14\x64\x7b\x79\xf8\x70\xc1\xa0\xde\x67\x6f\x2f\xc0\x04\x8a\x0a\x2b\xf1\x61\x3f\x3e\x97\xc8\xba\x46\x5f\xdc\x72\x48\x78\x28\x14\x79\xf3\xf0\xf3\xf4\x70\xf7\x44\xd4\xc7\x2c\x62\xeb\xf7\x7e\x2a\x50\x95\xab\xa4\xfd\x8f\x73\x59\xe4\xbb\xc1\x76\xcd\x2d\x64\xf8\x6a\xb0\x4d\x09\x3f\x55\x55\x46\x43\x67\x0b\xb3\xa5\x5f\x82\xb1\x63\xc1\x7d\x14\x0b\x70\x2e\x7f\xc4\x52\x74\xd8\xdf\xa9\x39\x84\xbe\xd5\x7e\x08\x49\x58\xa0\x17\x96\xaa\x94\xb1\x26\xa4\xd7\x36\x91\xa7\x5b\xfe\xf9\x85\x6d\x29\x92\x1a\x38\x7d\x02\x20\xac\x12\xa9\xb9\x89\xec\xcc\x26\xd7\xdf\x5d\x73\xd9\xd3\x5f\xfb\xad\x45\xbb\xb3\xc2\xb5\xc7\xdf\x51\x11\xb3\x76\x2f\x76\x6d\xe3\xd7\xd0\x98\x41\x5c\x1c\x2d\x78\x28\x24\xcb\x85\x79\xd0\x01\xe2\x52\xc4\x39\xba\x7f\x03\xf0\xbd\xa2\x83\xd7\xbe\x77\x87\x31\xe6\xa3\x96\x4d\x6b\x74\xfb\x09\x44\x82\xe8\x4b\x66\xcc\x30\xd6\x6d\xdd\xac\x04\xf4\xa7\x20\x9e\x19\xac\xbf\xa8\x25\x5b\x41\xd6\x0b\xe9\x5c\xe7\x02\xdc\xea\x30\x14\x96\xd5\x1a\x68\x8d\x1a\x01\x74\x3b\x05\x52\xa1\xc1\xd9\x2c\xcd\x75\x4b\x7c\x2a\x29\x5e\xf8\xdd\xef\xc7\x9d\xb3\x45\xbe\x63\x56\x41\x21\xcc\xba\xa1\xa4\x33\x3a\x73\xa1\x5e\xa5\x4c\xda\xb8\xce\xae\x4b\x69\x8e\xe2\xc7\x80\x5a\x0c\x8f\xa5\xd5\x3e\x4a\xff\xdc\x9b\x98\x62\xdd\xc0\x39\x3e\xff\x64\xd4\x95\x3f\xd7\x18\x2b\xe9\x73\x00\x83\xa6\xd2\xc3\x03\x6d\xc9\xa3\xbb\x07\x9e\xc7\xe8\x2b\x04\xec\xc3\x94\xfd\xa8\x1e\xc4\xbd\xc8\x27\x2c\x12\x79\xc1\x89\x2e\x4a\x43\xf0\x17\x16\x14\x95\x33\x97\x90\x15\x80\xdc\x5b\x12\x24\xc2\x8b\x64\xbd\x31\xf7\xc9\x20\x74\xaf\x72\xb3\x1d\x15\xc8\x14\x98\x89\x88\x08\x7a\x3a\x3a\x60\x95\xf2\xfb\x26\xff\xd5\x21\xcc\x02\xec\xc2\xa5\x36\xda\xd8\x98\x55\x0a\xe8\x03\x5b\x50\x87\xd1\xa6\x89\x94\x2a\x13\xb6\x56\x29\x97\xeb\xe9\x74\xca\x44\x11\x4d\x5f\x8c\x9a\xe8\x54\x60\x18\x6d\x73\x90\xde\x54\x29\x2d\xd2\x9d\x23\x95\x71\x49\x17\x80\xf2\xfb\x5c\x08\xa9\x13\x74\x79\xb4\x4c\xff\x9b\xba\x27\xfa\xcb\x3a\xee\xdb\x6f\xaa\xa3\x53\xfa\x3a\xca\x01\xe1\xa1\x11\x25\xe1\xf3\xed\x37\xaf\x83\x52\x54\x3b\x58\x6d\x95\x1c\x9b\x77\xf9\xb3\xea\x92\xd1\x3e\x88\xeb\xad\xb5\x24\x22\xc6\x38\x28\x57\xad\xcb\x63\x51\x4b\x1f\x3c\x22\x73\xb0\x27\x09\x70\x64\xfe\x5f\xcb\xba\x6b\x59\x16\xb5\xe1\x1e\xbd\x2c\xf6\x6b\x21\xb4\x36\x68\x64\x7e\xa5\x4f\x84\x1e\x63\x3a\x61\x8a\x56\xba\x83\x1b\x97\xcb\xb6\x04\xcf\x72\x1c\x78\xc6\x2b\x8e\x7f\xc8\xfb\xf1\x91\x03\x47\x58\x14\x04\x0a\x74\xa1\x72\xbe\x16\x6c\x2b\xe2\xa4\xdc\xb6\x6e\x36\xae\xba\xc7\x60\xcd\x54\x5a\x6e\xbb\xa9\xe3\x8e\x35\xa0\x7d\x25\xf1\xbf\xce\xe0\x73\x83\x0d\x68\x2f\x18\x6f\x25\x69\xa8\xbe\xe8\x06\xa7\xbe\x36\x27\x65\x9e\x68\x20\x39\x3c\x24\xcd\xce\x15\x83\x45\x43\xb4\x6e\x97\xa1\xfb\xb5\x32\xba\x27\x36\xba\x43\xaf\x68\x1c\x55\x08\xf1\x75\x1f\x0a\x75\x04\xdb\xe8\x31\x02\xc1\x93\x83\xa2\xaa\x60\x36\x06\xd4\xe3\x04\xb1\x81\x02\x09\x07\x50\x28\xb6\xb2\x89\x5b\x77\x22\xa0\xc2\x8a\x81\x94\xfc\x01\x79\x55\x7e\xfa\x41\x5b\xc4\x00\x81\x3a\xbc\xc5\x52\xf8\x8f\x60\x6c\xe0\xfe\x3b\x8b\xe5\xc1\x16\x62\x11\x40\x58\x15\x73\x59\xb4\x16\xe0\xa1\x6e\x50\x16\xbe\xf2\x33\x2f\xd3\xf6\xc7\xa9\x7c\x78\x14\x05\x8e\x66\xbf\xdc\x30\xec\x6a\xa2\xaf\xce\xfb\x2a\x1a\x14\xb2\x1f\x4d\x04\xdd\xb5\x38\xc0\x12\xac\x8c\x03\x76\xba\xe5\x2f\x37\xdd\x2e\x8a\x68\xe3\x2d\x8f\xaa\x52\x31\xa9\xd7\x51\x3b\xb7\x9e\x90\x1b\x81\x9a\x21\xe2\x2d\x59\x4b\x15\x6a\x49\x28\x29\x20\x48\x63\x36\x20\x15\x16\xcb\x92\x62\x3f\xac\x68\x24\x4b\xd5\xbe\xa9\x56\x28\x84\x8b\x50\x3b\x2b\xb1\x36\xb8\x52\x24\xc8\x6d\x63\x31\x99\x78\x27\x22\x31\xb4\x3a\x51\x73\x95\x2d\x60\x2e\xab\x9f\x6a\x74\x92\xc5\xfd\x24\xb9\x40\x7e\x55\x6d\xac\xb7\x22\xb9\x37\x0b\xb5\x39\xad\xdd\x04\x85\x1d\xa0\x39\xf7\xe6\x12\xab\x1d\x90\xb4\xde\x89\x9d\x0e\x95\xd7\x68\x46\xb1\xae\x09\x99\x98\xf6\xd0\x78\xed\x1f\x0a\xe8\xb8\x45\xa0\x24\x3f\xec\x2c\xc3\x8f\xbe\x33\x2f\xf7\x00\x0a\x1b\x85\x9b\x39\xe8\x33\xe3\xbc\x4f\x91\xb6\x09\xdf\xcf\x34\x86\x1e\x33\x04\x88\xb0\x10\xf3\x15\xa6\x39\xc0\xc5\xd7\xdc\x6f\xe7\x92\x78\x9c\x83\x43\xce\x6c\x38\xcd\x61\xa3\x74\x5d\x64\x8f\xdd\x55\xa8\x46\x80\x6a\xcf\xd2\x0e\x56\x3f\x69\xe3\x8e\x56\xb8\x73\x2e\xe1\xd3\x98\xd0\x68\x7d\x78\xad\x1f\x3c\x10\x88\x46\x83\xdb\x09\x3e\x0b\xb2\x86\xf0\x49\x62\x9b\x43\x09\x3f\xbc\xfd\x44\xc2\x74\xdf\x4c\xb6\xe2\xbe\x2c\xea\xeb\xe6\xfc\xec\xfa\xfc\xf6\x8b\x81\xd3\x2c\x32\x6c\x34\x3a\xcd\xd6\xf3\xf5\xf9\x9b\xd9\x87\xb7\xb7\x8b\xd7\x17\xd7\x4f\x01\x4f\xa3\x9f\x0e\xc0\xa7\xdd\x10\x3d\xfc\x99\x92\x85\xf8\x7c\xd4\x99\x9c\x97\x72\xc1\x47\xe4\x49\x38\x81\x88\x3e\x73\x07\x0b\x6d\xd2\xdb\x3b\xee\x79\xe2\x3a\xc4\x13\xcd\xb1\xd9\xaf\xbc\xd3\x70\x95\xa4\x29\xa4\x8d\x3a\xf7\x3a\xa5\x24\x99\x4e\x85\xfd\xc7\xd2\x3b\xd2\x9e\x3a\x97\xcb\x8a\xfa\x00\xb8\xfc\x36\xe6\x12\x8c\x09\xa3\x99\xe9\x80\x3c\x81\x74\xbc\x3e\x06\xfc\x75\x22\x85\xaf\x06\xca\xed\x96\x92\x75\xd2\x16\xd3\x20\x3e\x65\x56\x30\x19\x5e\x43\x6d\x4d\x3b\xe3\x2a\xf3\xd3\x9a\x9f\xf6\x47\xd7\x42\x5c\xc4\x89\x44\xc3\xb4\xb2\x9a\x6f\xda\xa7\xee\xa9\x5f\x02\xd0\xef\x66\x24\x39\xc4\x20\x40\xd1\xd6\x0f\x24\x0d\x04\x2a\xe3\xf8\xe0\xc4\x5d\x82\x28\x1a\xb5\xaa\xf5\xb3\xd9\x0a\x4d\x5f\x27\x10\xa9\xe0\xc4\x84\x11\xa5\xa5\x2e\x44\x4e\x6e\x93\xd9\x2f\x37\x73\xf9\xca\x1c\x5f\x2f\xe8\x14\x22\xf5\x14\xfc\x04\x62\x38\x54\xe5\xfb\xd6\x42\x09\x77\xb0\xe7\xe8\xa3\xde\x0a\x2e\x35\xaa\x8d\xa7\xa9\xc8\xfd\xcc\xc0\xfa\x08\x11\x93\xe2\x1c\x50\x7f\xfa\xf7\x49\x70\x5a\xc1\xaa\x35\xf5\xa5\x5f\x49\x72\xb9\x3e\x9f\xba\xb2\x92\x01\x9e\xfa\x94\x33\xa7\x25\x4b\x62\xe8\x2c\x22\x64\x6f\xeb\x24\xaa\xe6\x2c\x0c\x9a\x4b\xb7\x58\xdc\x6f\x53\xe9\x11\xa7\xd2\x80\x73\x3d\x3c\x25\xd8\x46\x99\x0d\xd4\x49\x8b\xf8\x30\xb3\x63\x45\x48\x01\xff\x64\xba\xb1\xf5\xd4\xa9\xc9\xeb\x1d\x71\xea\xa0\x9e\xde\x71\x70\xce\x59\x0b\xfd\x8a\xd7\x71\xb2\xb1\x9d\x5e\xe5\xbe\xa7\xa1\x39\x9b\x59\xbc\x9d\x54\x85\x25\x2c\x70\x10\x37\xc2\xeb\x99\x07\x1c\x53\x46\x6f\x1d\x89\x7d\xc2\x5a\x29\x8b\x23\xd5\xaf\x6e\x43\x5c\x60\x25\x85\x13\x6b\x11\x26\x7f\xdb\x84\x6f\x47\x18\x31\x66\xf2\x1d\xae\xaf\x58\x9d\x73\x8e\x7c\xf0\x20\xb0\xc3\xe5\xd5\xe5\x79\x08\x55\xb8\xb8\xbc\x3d\xff\xe3\xf9\x75\x25\xf9\xf7\xed\xd5\xac\x92\xc0\x7b\x73\x7b\x5d\xcb\xdb\x7d\x75\x75\xf5\xf6\xbc\x81\x79\x38\xbf\xbd\x78\x57\x29\xfc\xf5\x87\xeb\xd9\xed\xc5\x55\xe5\xb9\x57\x17\x97\xb3\xeb\xff\x0c\xff\x72\x7e\x7d\x7d\x75\x5d\xfb\xde\x87\xb3\x7e\xf4\x44\xa5\x19\xed\xee\x1f\x1f\x9c\x0d\x78\x18\x5b\x97\x71\x55\x7f\xf2\x88\x55\x3c\x10\x84\xb5\x6f\x3a\xda\xdc\xde\x38\xa4\x67\xc7\x85\x61\xaa\x3a\x6a\xd6\x3d\xbe\x60\x66\xa5\xeb\x32\x7e\xdc\xb6\x67\x4e\xb5\xc5\x63\x80\xe2\x7a\x0d\x40\xf7\x95\x9a\xe3\x56\x17\x90\x00\x85\x5d\x9b\x41\x04\x6b\xcd\x3b\xe5\x62\x64\xfc\xe4\x35\xb5\xdf\xd8\x57\x4f\xcf\xfb\xb3\x87\x3e\xe5\xb1\xa8\x13\xfa\x2a\x1d\x7c\xcc\x66\x26\x27\xb1\x35\x14\xec\x8f\xc1\xc1\x0d\xcd\x30\x33\x27\x98\x8e\x5d\xca\x86\xed\x39\x0e\xfd\x54\x5d\x63\xeb\x4f\x1f\x69\xd6\xbd\xc6\xeb\x30\xa2\xde\xc0\xaf\x33\xa6\xde\xb7\x5c\xdf\x8d\xad\x37\x7d\xa4\x59\x6f\x30\xfb\x0e\xaa\x37\x38\xbc\x8b\x76\xce\x8d\x11\x9b\x58\x58\x4c\xb5\x7a\x2e\x21\xd8\x3d\x12\x08\x88\x0e\xab\xa3\x59\x00\x4f\x7b\xbd\xcc\xf8\xf0\x40\x06\xd4\xc6\x2d\x57\x5e\xa3\xa0\xbe\x81\x5f\xa1\x85\xcb\x5c\xf0\xbb\x58\x3d\xd0\x78\xd4\x91\xa1\x6c\xd0\x6e\x5e\xed\x20\xb3\x87\xdb\x23\x02\x64\xc7\xcd\x27\x11\xa5\xe6\x8b\x07\x98\x5c\x42\x24\xca\x68\x83\x05\xca\x97\x75\xd6\x12\xe0\x89\x91\x7e\x74\xe6\x12\xad\xf9\x36\xf5\x4c\x33\xaa\xa6\x46\xc4\x33\x00\x4d\x75\x36\x34\x06\xd7\x75\x30\xb0\x94\xcb\x50\xe6\x00\xa6\x5b\xe6\x70\x67\x82\x0e\x49\x24\x38\x93\x73\x73\xe1\xc9\x45\x94\x68\x11\x28\x08\xb5\x9e\xd8\x9f\x8e\xd3\x1b\x28\x78\xd1\xea\x76\x1d\xec\x0f\xe7\x51\x51\xf2\x94\x7d\x2a\x45\xbe\x23\xba\x36\xf4\x55\xe2\x5f\x22\x2e\x31\x69\xa2\x10\xdb\x0c\x52\x80\x43\xb4\xff\x5c\xfe\x02\x40\x09\x1c\x82\x67\x9a\xfd\x11\x20\x0f\xf6\x61\x3a\x84\xb7\xbc\x80\xb3\xf8\xcf\xf8\x0d\xf7\xdb\x74\x2e\x2b\x8a\x1c\xc1\x5b\x15\x71\x8e\xe9\x5c\x5a\x4a\xfc\x58\x45\x7a\x0a\x37\xbe\xa9\xca\xd7\xa7\x24\x26\x6b\x26\xbb\xba\x5b\x2a\x75\x77\x2a\xe4\x29\xf8\xa4\x8a\x53\x5e\x16\xea\x14\xe0\x52\x38\xfe\xfa\xd4\x6a\x4e\x5a\xd1\x4e\x7d\xba\x49\xee\x05\xfc\xbf\xe9\xa6\xd8\xa6\xff\xa2\xb3\xcd\xe7\x93\x75\x9a\x9f\x98\x77\x4f\xc2\x77\x4f\xec\xbb\x27\xf6\xdd\x13\xf3\x1a\xfe\xbf\x6c\x87\xe1\x1d\xf1\x99\x9b\xb3\x6c\x32\x97\x89\xd4\x22\x2f\xc0\xfa\x79\xc8\x93\xc2\x4b\x9f\xec\xd8\xb3\xff\xf9\x1f\x36\xcd\xf9\x03\xa6\xcf\xbd\xe6\x05\x7f\x8f\xfe\xc5\xbf\xff\xfd\x19\x04\x54\x31\xbf\x25\xe3\xf9\xa7\x52\x14\x73\xa9\x85\x59\x84\xec\xff\xcc\x25\x44\x60\xb7\xbb\x45\x81\x7e\x57\xf4\x41\xc6\x9a\xfd\x07\x96\x79\x81\xd4\x85\xb1\x36\x25\x75\x20\xeb\x13\x9e\xb6\xc8\x14\x77\xb8\xe8\x3f\xa5\xaf\xe9\xf9\x11\xcb\xfa\x53\x5a\x5d\xd5\x56\x7c\x43\x7f\x4a\xe1\x00\x4d\x15\xb7\x60\x2d\xe6\x26\x2f\xdc\x93\xa9\x72\x6d\x6b\xa4\x01\x0d\x78\xd2\x30\x7d\xfb\x5a\xb9\x41\xfa\x64\xeb\xb9\x6f\x6c\x23\x10\x2b\xf0\x71\x08\x88\x9e\x27\x66\x85\xdc\xa0\x27\x14\x2c\x37\x6c\x39\xd8\xa4\x14\x3a\x77\xe5\xa1\xe3\x42\xff\xe1\xe5\xe9\xe9\x84\xad\x35\xfc\xcf\xf2\x13\xfc\x0f\xa0\x87\x1e\x8b\x01\xb4\xd1\x99\x0e\x08\xd7\x1c\xe5\xfd\x23\xf1\x18\x28\xba\x2f\x41\x3a\x5d\x9b\xa6\xaf\x4a\x19\xa7\xc2\x67\x03\x56\x42\x22\xa9\xb2\x32\xe9\xe8\x18\xab\xcb\x7b\xc0\x18\x2f\x45\xc4\xcd\xc6\xd7\xf8\x36\x82\x4b\xd5\xaa\x10\x12\xbd\x61\xb9\x57\xff\xe2\xe8\xb9\x02\xb3\x18\xa0\x90\xbc\x20\xc8\xb9\x80\x3f\xc2\x47\x80\xc5\x79\x52\xff\x89\xed\x54\x49\x84\xc4\x40\xb3\x19\x8b\x28\x05\xd6\x77\x4b\x35\xc2\x72\x51\x94\xb9\x64\x9c\x65\x5c\xc6\x5c\xc3\x0c\x5c\xe5\x10\xed\xcc\x19\x6f\x56\x74\x82\x70\x5c\x55\x16\x40\xa0\x83\xc8\x82\xb0\x27\x90\x31\x3a\xa8\xf3\x24\xa8\x04\x9e\x09\x40\x5c\xdb\x78\x71\x3a\x97\x56\x9f\x8a\xb0\x70\xe8\x29\x8b\x54\xb6\x23\x7a\x94\x7a\xa7\x27\xd6\x73\x46\xdd\x3d\xf1\x78\x93\xfa\xb3\x13\x96\x54\x43\x6b\x40\x4e\x5d\x04\x0a\xbb\x56\xa3\xf8\xb9\x90\x91\x8a\x45\xae\x5f\x98\x65\x98\xb8\x7b\x07\xda\x0f\x89\xf6\x83\x01\xbb\x94\x39\xdc\xc8\x5b\x68\x8a\x77\x2a\x2e\xa6\x77\x2a\x74\xc6\x6d\x76\xce\xfe\xa5\xf2\xad\xa3\x60\xda\xea\x4b\xff\xf9\x45\x11\x31\x21\xae\xd3\xde\x39\x0f\x77\x41\xe0\x92\x0d\x77\x5c\x2c\x14\x6d\x1c\x32\x4e\xac\x9c\x69\x52\x80\x62\x5a\x2e\x74\x31\x97\x74\x02\x4f\xd8\x4a\x70\x63\xe7\x4d\x58\xa4\xef\x71\x33\xc6\xe3\xbe\x78\x50\x1e\x83\x63\xb5\x30\x00\x0c\x5b\x29\xdc\x3b\x89\xf1\x31\x40\x14\xf0\xa8\x40\x80\x41\xa7\xf2\xb5\x35\x55\xa0\xb3\x5a\x37\xc4\x03\xfa\xc1\x4a\x2b\xd4\x65\x8c\x42\x65\x0f\xe8\x89\x1d\x06\x8a\x59\xbd\x1e\xf8\x83\xd9\x78\xb0\x75\x08\x03\x09\x36\x47\xb0\xb8\x09\x4b\x8b\xeb\xcc\xc7\x70\x43\x7e\x6b\xf0\xcd\x74\x2d\xaa\x9e\x8e\x80\x0a\x1c\xe6\xb7\x30\xaf\xee\x75\x58\x69\x91\x5b\xdd\x07\x6c\x2b\xb2\xd1\x6d\x92\x3c\x3e\xc9\x78\x5e\xec\xec\xf4\x4d\x93\x25\xd0\xc5\xa7\xc9\x9d\x60\xb3\x3c\x57\x0f\x8f\xdd\x0b\x9d\x5b\x4b\xd7\x0d\xfb\x18\x24\xfb\xd8\x5b\x7e\x2b\x17\x65\xdd\xdd\x71\x18\xef\x65\x97\xe3\xa3\xf5\x3b\xb9\x28\xf2\xdd\xc2\x4c\xc4\x6d\xd6\xb9\x53\x0c\x4a\x9a\x18\x6e\xe4\x8e\xa3\xd4\xac\xb9\x30\x3a\x29\x35\x2b\xa3\xfa\xed\x50\x6a\xb6\xb0\x65\x36\x29\x35\x2f\x2e\x2f\x6e\x2f\x66\x6f\x2f\xfe\x5f\xad\xc4\x5f\x66\x17\xb7\x17\x97\x7f\x5c\xbc\xb9\xba\x5e\x5c\x9f\xdf\x5c\x7d\xb8\x3e\x3b\xef\xe7\xc8\x69\xd6\xde\x9b\xe0\x27\x2c\xfc\xce\x4b\x76\x1b\x00\x35\x30\xd9\x80\xec\x6f\xd2\x4b\x84\x59\x65\x16\x73\x22\xd7\x13\x58\xa8\x2f\xd9\x79\x9e\x5f\x6c\xf9\x5a\xbc\x2f\xd3\x14\xe0\x54\x98\xd9\x73\x96\x0b\xb8\x78\x4e\xd8\x7b\x15\x5f\x04\xef\x41\x3a\x62\x6b\x33\xe0\xfb\x3c\x8e\x73\xa1\x35\x7e\x7e\x42\xdf\x0f\xc0\x43\x2e\xd5\x91\xc0\x73\xfc\x9e\x27\xa9\xb9\xbf\xbd\x64\xaf\x78\x74\xa7\x56\x2b\x4c\x9f\x99\xb8\xc4\x29\xf6\xa9\x54\x05\x67\xe2\x73\x04\xbc\x50\xed\xf3\xe4\xad\x5a\x7f\x05\xa8\xf2\x80\xf0\x54\xc7\x25\x05\x74\xb1\x16\xed\xc7\x79\xfb\x46\x40\xad\x7c\x87\xaf\xbe\xc1\x37\xdb\x1d\x94\x45\xfa\x08\x99\xe2\x6f\xd5\xba\x5d\xa5\x04\xac\x6b\x92\x56\xa1\x40\x42\x44\xbc\x13\x6a\xcd\x74\x22\xef\xe6\xf2\x97\x8d\x90\x4c\x95\x39\xfe\x09\xae\xf9\xc6\xcc\x4c\x4b\xbd\x11\x20\x5b\x3a\x61\x0f\x82\x6d\xf9\x0e\xcd\x66\xb8\x13\x38\x69\x05\x98\x32\x70\x8a\x98\xb7\xd3\x44\x9a\xdd\x22\x4b\x6c\x5e\x42\x7d\xe8\x1f\xe3\xc6\x65\x59\xd1\xf8\xf1\xa4\xa5\x7d\xe7\x69\x05\x9f\x07\xae\x32\x8f\x9b\xb4\x00\x21\xda\xb9\x41\xb9\x51\xa9\xbb\x32\xf3\xfc\x89\xcf\x6c\x70\x12\xba\xfb\x5e\x25\x31\x8b\xcb\x2c\x4d\x22\xb7\xef\x3e\xa8\xbc\x93\x24\x16\x13\x68\x86\x9f\x3a\xf5\xb4\xb0\xbe\x86\xb5\x64\xe7\x04\x48\xba\x1e\xba\xd8\x27\x26\xcc\x65\x89\x8c\xd2\x12\x34\xa9\x4a\x2d\xf2\x93\x22\x4f\xd6\x6b\x30\xc0\x6d\xae\xdf\xb7\xcf\xa8\xeb\x19\xfb\x8e\x4f\x6b\x0b\x93\xce\x53\xb5\x4e\x22\x9e\x86\xe0\x66\x8f\x8a\x70\x94\x9d\x76\xd9\x93\x62\x27\xe4\x41\xd8\x0a\x75\x92\x01\x65\xb9\x00\xd6\xd8\x05\x6c\xe5\x0b\xda\xee\x8e\xa9\xf7\x8a\x99\x0b\x3a\xd6\x2b\x24\xd4\xb4\xe1\x05\x7b\xc2\xf9\x6f\x5b\xd9\x26\x30\x31\x51\xd2\x99\xa9\x07\x29\x72\xb0\x60\x01\xf6\x61\x5a\x2a\x15\xd8\x26\x4e\xca\xc9\xe1\x93\xad\x94\xd9\xca\x01\xb1\x31\x73\x76\x9d\xdc\x0b\xf9\xe5\x19\x90\x83\x0f\x44\x3c\xda\x88\x85\xb5\xcb\x1f\x7b\xcb\x72\x07\xc0\xc8\xcd\xca\x6a\x2a\x84\x5b\xa9\x0b\x6f\xc2\xd5\x09\x6b\xdc\xdc\xbb\x30\x90\xd8\x93\x91\x65\x2a\xb1\x88\x45\x74\xf7\xc5\xb7\x66\x0f\xb2\xb2\x15\x61\x9c\xbd\x16\xd1\x1d\xfb\x70\x7d\x81\xd9\xc0\x49\xc1\xcc\x56\xa0\x37\x5e\x23\xa6\xf3\xee\x56\xf0\xf5\x13\x90\x1b\x0d\x15\xb9\xf1\xbc\xe6\x4e\xda\xcb\x54\x88\x00\x51\x90\x2f\x69\x36\x49\xca\xa5\x01\x20\x18\x2f\xac\xf4\x09\x38\xe2\x99\xde\x82\xd2\x49\x59\x04\xf2\x60\x29\x5f\x8a\xb4\x83\xe5\x2f\x53\xf1\xc2\xc6\x49\x8e\x05\xf3\x34\xca\xb2\x7e\x0c\x8a\x3a\xda\x3c\x06\x6e\x2c\xd6\x5b\x7a\x90\xdd\xfd\xa0\x03\x7a\x0d\x15\x92\x0d\xc3\xbd\x9e\x6b\x51\xd3\xcb\x4f\x56\xa4\xc7\x82\x09\xfd\xa0\x3c\x6e\xf6\x4b\x53\xd2\x7b\x15\x13\x4c\xcf\xf1\x79\x19\x2b\x48\x90\xf7\xc4\xe3\x2a\xc2\x2a\x38\x75\x76\x0d\xbe\x01\x5d\x08\x1e\x33\xb5\x22\x6f\x62\x96\xa5\x09\xd0\xc8\xc6\xc8\x58\x0d\xec\x19\xba\x8a\x8e\x0f\x4b\xb3\x95\x0d\x48\x3e\xde\x5b\x20\x5e\x6f\xbc\xd1\x07\xb9\x4c\xbb\xaa\x4e\xee\xba\x4d\x75\xac\xf2\x98\xcb\x47\x3a\xf4\x0a\xdd\xef\x4d\x5b\xa7\x6a\x09\x1d\xd5\x0d\x8a\xeb\xd9\xa0\xcd\xee\x94\x27\xf1\x98\xe3\xdd\xf6\xc9\x95\x7b\xb5\xaf\x82\x57\xd6\xd3\xe1\xbe\x64\x87\x99\x11\xc9\x77\x18\xc1\xaf\xa5\xb1\xef\xbb\x6b\x43\x80\x50\xbb\x08\xa1\xb3\xc6\x0b\xa2\xb8\x87\x55\xe1\xb6\xe3\x8e\x6b\x75\xb5\x2d\x47\x0d\x74\x93\x18\x65\x4f\x5f\x7a\x2e\x95\xfe\x41\x3e\x82\xdd\x02\x57\xae\xa3\xb8\x18\xc3\x53\x6c\x87\x0e\x31\xbe\xa6\x3f\xfd\x20\x56\x92\x2f\x06\x8d\x68\xbd\xdf\xed\x2a\x3e\xa6\xcb\x9f\x62\x45\x95\x85\xf2\x2e\x7f\x68\xcf\x05\xf0\x67\x86\x69\x5d\xb0\x6d\x5c\xc4\x1d\x70\x01\x6b\x83\xd9\xa5\x39\x02\x84\x3a\x0a\x06\x9b\xe5\xc2\x06\x8f\x76\xa2\x70\xc9\xfd\xa9\x55\xa2\x82\xd8\x88\x6b\x75\x95\xdd\xc4\x12\x18\x38\x46\x2a\x88\x64\x90\xbd\x17\xa9\x6d\xa6\x24\x60\x53\x30\x55\x69\x2e\xa9\x70\xab\x27\xec\xc2\x2b\x95\x7c\xb7\x09\x79\xb5\x30\x7b\x42\x68\x95\xde\x53\x1c\x2d\xa0\xbd\x07\x25\x32\x53\xc1\x33\x73\x41\x30\xd7\x61\x08\xf0\xd2\xf6\x0e\x70\xf0\x9a\xa8\x6e\x2e\xd6\x89\x2e\x44\x98\x22\x18\xbe\xff\x68\xfa\x87\x95\x1b\x74\x5f\xd7\x77\xea\x1f\xee\x33\x85\xcd\xaa\x1d\x51\x9f\x5d\x26\xe2\x0b\xf7\x5e\xff\x64\xa8\x65\x71\xfb\x4d\xa2\x72\x0a\xe0\x1c\xc0\x2b\x80\x46\xbe\x27\xed\x08\xeb\xdd\x20\x11\x13\x0f\xf7\xa8\x36\x33\x44\xeb\x92\xe7\x5c\x16\x42\xe8\xb9\xa4\xe8\x23\xf2\x96\x85\xd4\x1c\x35\x34\x9c\x33\x70\x23\xa5\x0b\xa4\x01\x82\x57\x56\x3c\x49\xcb\xbc\xf3\xce\x89\xb3\xf2\x20\xee\x81\xbe\x5e\x3a\x83\x62\x59\xdb\xa0\xb9\x2c\xd6\x60\x15\x39\xea\x8c\x7a\xec\xb0\x9a\xe4\xd9\xd1\x04\xbb\xe5\x0e\x1f\x6f\xe7\x70\xec\x48\x6c\xfd\x41\x2f\x32\x35\x62\xc7\xfb\xe9\x07\xfd\x5e\x75\xa4\x04\xeb\x4f\x0d\xc7\x58\x4f\x0c\xfd\x53\x17\x85\x3f\xd7\x77\x10\x7e\xda\x77\x1f\xdf\xef\x64\xff\xc3\xf7\xfb\x83\x54\x9d\x7b\x17\xcc\xda\x0d\x97\x71\x6a\xee\xa9\xbc\xa8\x9d\x40\x1e\xec\x6b\xec\xe2\xc2\x6e\x8e\xdd\x99\x5d\x90\x28\xb1\x88\x1a\x59\x76\xfb\xfa\xa9\x96\x9e\xd7\x0b\xa8\xab\x7d\xa5\x9a\x34\xd7\x96\xac\xe1\x4f\x76\x12\xce\x74\x0b\xb6\x7b\x0a\xae\x92\xf5\x37\x70\xc9\x7a\xd7\xdc\x29\x23\x5a\x8a\x74\x7e\x39\xe4\xf7\x91\x8b\x11\x92\x6c\xcc\x66\x16\xf2\xf4\xce\x25\xe9\xea\x62\xe4\x15\x42\x6e\xc8\x45\xa5\xd9\x77\x2e\xf3\xf2\xbb\x7f\xb5\x4c\x44\x3b\xb6\x82\xbe\x06\xba\x2f\x15\x45\x65\x0e\x61\x51\x72\xdd\x30\x81\x67\x93\x1e\x45\xb2\x01\x27\xb2\x03\xb3\xa0\xf9\xd4\x66\x3d\x38\x5f\x5d\xa5\x51\xb7\xe0\xa2\x41\x85\x60\x77\x16\x92\xf0\x4b\xae\x0b\xa6\x0b\x91\xb5\xee\x4a\x15\xa3\xab\x2a\x82\x7d\x84\xd9\xe5\x25\xb8\x07\xda\xba\x23\xf6\xe8\x59\x70\x9d\xfe\xd3\xcd\xd5\x25\xcb\xf8\x0e\x70\x61\x85\x22\xf5\x72\x20\x63\xac\xaf\xdf\x7d\x23\x50\x6d\x7c\x75\xb1\x61\x9f\x5a\x80\x69\xbb\xef\x96\xbe\xd8\xb4\xa1\x60\xce\xd0\x94\x34\x4b\x39\x57\xe9\x49\x96\x72\x19\x40\x7f\xf5\x94\xd5\x3e\x1f\xc6\x7a\x5d\xd4\x87\xd0\x34\x50\x01\x70\xa7\xd0\x5c\xc8\xcb\x56\x70\x68\x55\xd7\xfb\xa8\xf0\x6e\xe7\x1e\xd1\x0b\x7a\x7b\x87\x74\xfa\x3c\x32\xcb\x04\x99\x05\x6c\xc8\xda\xa1\x1e\xb8\x06\x40\xe2\x88\x81\xea\x17\x21\x9f\x4b\xab\x31\xab\x1e\x34\x8b\x91\x7b\xa1\x4c\xf4\x06\xfc\x93\x18\x10\x00\x70\x10\xed\x2f\x88\x5c\xc8\xb9\xd4\x66\x40\xc1\xa7\x29\xee\x05\x39\x36\x2a\xc1\xb8\x8b\xd7\x6f\x5d\x7c\x1f\x07\x89\x64\xc0\x3a\xba\x3e\x30\xcc\x8e\xb9\xc0\xb4\xaa\x62\xef\xe7\xb8\x7f\xc7\xb3\xbe\xac\xb1\xa3\x4b\xdc\x37\x4a\x8e\x79\xa6\x6e\x75\x82\x3e\x28\x28\x03\x55\x52\xc7\xc2\xde\xfb\x20\x8f\xdc\x7e\x5a\x49\xaf\xf7\xf3\xeb\x0f\xbe\x84\x0d\xcb\x04\x1c\xb1\xf7\x04\x24\x70\x0e\x5b\xe3\xec\x65\xb3\xca\x41\x77\x05\xd8\xab\xd0\x93\x36\x65\x37\x42\xb0\x8f\xd0\x53\xe6\x63\x1f\x49\xd7\x0b\xe0\x82\x05\x4f\x5a\x65\x57\xe0\xe9\x0b\xb9\x52\xc7\x6d\x06\xf9\xba\x01\x47\x3b\xaa\x57\xda\xeb\x79\x2c\xe0\x0d\x52\x19\xe5\xd3\xe6\xdf\xb7\xb6\x6b\x0f\xbc\xed\xbd\xbf\x93\x53\x56\x9e\xad\xa9\x39\x9f\x61\x88\x0f\x61\x78\xaa\x4d\x12\xd3\xca\x09\xb2\x16\xdf\x49\xf5\x20\xd1\x16\xa0\x2f\xb1\xe7\x66\xfd\xc1\x01\x86\x0e\x54\x34\x0b\x4a\xdc\x0d\x5f\x00\x8d\xf2\xcc\xfd\x9b\xdd\x60\xac\x08\xeb\x0c\x3a\x21\x1a\x8c\x1f\x52\xf8\x80\xdd\xfc\xf9\x6c\xc2\x5e\x4d\xd8\xd9\x84\x4d\xa7\xd3\x17\x13\x54\x0b\xa6\x1a\xe1\x2b\x88\x1c\x2b\xf8\xda\x94\x4d\xca\x09\xab\xe0\x03\x20\xba\x63\x0e\x2b\xcb\x16\xc6\xfd\x53\x81\xe7\xc1\x36\x01\x73\x18\x29\xe1\x82\xe2\xea\xd1\x46\x25\xbe\x52\x00\xd1\x14\x91\xca\x2d\xc8\x53\x17\x2a\xb7\x80\xb5\x7b\x9e\xf3\x44\x42\x6a\x37\x6f\xc2\x75\xe9\xcb\x01\xb9\xb3\xf8\xcc\xb7\xd0\xfe\x44\x3a\x7e\x4b\xd3\x4d\xb7\xae\xfe\xc5\x2e\x23\x87\xf4\x43\x9e\x14\x85\x39\x9d\xf5\x5c\xde\xb0\x97\xff\xc1\x66\x59\x96\x0a\x36\x63\x7f\x63\xaf\xb8\xe4\x92\xb3\x57\xec\x6f\xec\x8c\xcb\x82\xa7\xaa\xcc\x04\x3b\x63\x7f\x33\xdd\x66\xca\xbb\x54\xe6\x38\xdc\x4d\x18\x67\xb2\x4c\xf1\xd4\x7f\x6e\xc1\x60\x2f\x5c\xbb\xb8\x1f\x9d\xa5\x28\x1e\x84\x90\x4c\xab\x2d\x1d\x85\xbf\xba\x98\x84\x4e\xe4\x3a\x15\x05\xcd\x87\x2a\x6c\x0f\x3f\x70\x02\x2d\x7d\x39\x97\xce\x97\xf7\xab\xa9\xf1\xaf\xec\x6f\xec\xb2\x4c\x53\x53\x25\xb3\xd1\x98\x89\xf4\x92\xd9\x34\x0a\x21\xa7\x0f\xc9\x5d\x92\x89\x38\xe1\x90\x48\x61\xfe\x75\x7a\x0b\xa3\xbd\x28\x3d\x67\x5e\xb8\xa6\x9d\xf6\xca\x31\x5b\xcf\x93\x24\x65\x3b\x09\x1e\x3b\xf8\x3d\x37\xbf\xea\xab\xe3\x2d\x22\xcf\x14\x4a\xeb\x81\x0c\x56\xd4\xcd\x09\xa5\x7e\x0e\xda\x02\x6a\x87\xad\x2d\xab\xe5\x28\x08\x0f\xf5\x63\x37\x59\xd0\xad\x7a\xf4\x3b\xe4\x00\x19\x9f\xa1\x5b\x6e\x43\x84\xa4\x92\xe6\x0e\xb6\xa4\xa7\xfa\x19\x14\x15\x72\xe2\x23\x3f\x57\x85\xbb\x2a\x5d\xac\x92\x41\x0a\x67\xb5\xca\x7e\x20\xdf\x05\x26\xa8\x99\x65\x9a\xa4\xa7\x66\xa9\x9e\x5e\x2a\x69\xae\xad\x3a\x59\x23\x3d\x11\xc0\x88\x50\x1a\xcc\x1a\x05\xb7\x55\x93\x35\x58\x02\x60\x1f\x98\x2a\x21\xb4\xad\x30\xbb\x80\x19\x82\x74\x37\x97\xe6\x0d\x3a\x91\x00\xe6\x9e\x38\x16\x5b\xfc\x9a\xd5\x52\xa7\x6f\xd1\x86\x1c\x14\xde\x32\xc1\xfa\x72\x68\x8f\x98\x70\x94\xb2\x75\x84\x57\xfc\x32\x60\x70\xa3\xd2\x2c\xbd\x07\xc6\x3d\x97\x22\x55\x72\x6d\x66\x45\xd7\x26\xa0\xb6\x3c\x39\x06\x58\x12\x56\x01\x0b\xeb\xac\x81\x39\x2c\xe9\x11\x1a\x12\x73\x4e\x26\xb1\xbf\xdf\xeb\x72\x69\xec\x08\xe7\x91\x75\xa7\x21\x35\xae\x2b\xa1\xf8\xb8\xf8\xf2\x07\x2d\x72\xa0\x59\x46\x84\x83\xf3\xf6\xe3\xc1\xe9\xc9\x36\xb0\x45\xc3\x16\x55\x2f\x30\xb6\xdd\x15\x42\xd1\x84\x46\x6a\xf5\x80\xf9\xf8\x35\x31\xb2\x4f\x29\x46\xdf\xaa\x3c\x0f\xcf\x99\xd2\xe8\x4f\x63\xd5\xe5\x6d\xef\x3d\x06\x7c\xf0\x13\xca\xbd\x2c\xd4\xca\x66\x52\x0e\x3f\xd3\x1b\x82\x3b\xc3\x50\x2a\x21\xc9\x76\x28\x4c\xd3\x9c\x38\x9d\xf9\xe0\x72\x41\x11\x89\x61\x95\xad\x77\xd8\x95\x7c\x83\xaf\xbf\x57\x69\x12\xf5\x83\xde\xec\x71\xb5\x51\x0f\x2d\x28\xa2\xa5\x00\x14\x28\xf9\x7f\xa8\x52\x68\xa1\x17\x22\x2a\x7c\xc4\xad\xd9\xb8\xff\xd5\x40\x9b\xfd\x77\x70\xf4\x28\xbb\x6e\x03\xd1\x47\x17\xc3\x83\xb3\x15\x08\x36\x81\x57\x1e\x7d\xad\x90\x4b\x07\xb1\xed\x88\x93\x0b\xba\xd2\xf3\xb0\x41\x3f\x6c\x54\x6a\xee\x62\x32\x26\xb2\xd2\xb9\xcc\x44\x1e\x29\x00\xa8\x60\x1e\xbc\x62\xd1\x26\x49\x63\x2f\xde\xf2\x1c\x10\xbd\x80\xbb\x7b\x41\x0a\x75\xc2\xc5\x98\x6d\xf1\x3d\xa7\xae\x9d\x76\x56\x23\xfb\x38\x0f\xd4\xe3\x41\xf4\xfa\xa6\xfd\x2f\x04\x25\xc3\xae\x20\x7a\xa1\x5a\xb4\xd0\x74\x7a\xa5\x3e\xa3\x3c\xbc\xa0\x62\xbd\xb2\x3a\x98\xf6\xe2\x54\xd4\xc6\x95\xa6\x59\xbd\x2b\x81\x74\x16\x51\x54\x08\x20\xd1\x02\xaa\xb3\x15\x1c\x6d\x31\x4f\x01\x49\x83\x3a\x97\x3e\x3e\xfa\x4c\x87\x76\x59\xeb\x38\x23\xa7\xaa\x05\x01\x4e\xd8\xb3\x4a\x43\x9f\x01\x29\xa9\x54\xf0\x3d\x8a\x61\x55\xba\x06\xa6\xeb\x84\x25\xc5\x5c\x26\x1a\x67\x66\x2e\x52\x71\x6f\x6a\x17\x3a\x8b\x09\xeb\x62\xef\xce\xb6\xd9\x80\x23\xe7\x36\xfd\xd8\x49\xab\xc3\x22\xcc\x43\x72\x4b\x0e\x8e\xe9\x58\x68\x63\x37\x82\x2c\x87\xf8\x6c\x16\x40\x02\xb1\x10\x84\x7f\xc4\x42\xda\xfa\x01\x2a\x04\xf5\x53\xe7\xf2\x62\x05\x39\xa0\x90\x79\x1a\xc7\x78\x0b\xb5\x42\x0d\x8e\x69\x2c\x21\xe7\xb0\xa2\x3b\xb9\x1d\x08\x12\x58\xc4\x95\x24\xee\x45\xbe\x2b\xc0\xa9\x0b\xfd\x2a\x05\x2f\x36\x2c\x29\x26\x40\x11\x67\x77\xca\xb9\xe4\x31\xa9\x63\x53\x71\xa6\x6b\x60\xde\xf7\x8c\x33\xfd\xbe\x54\xf7\x7d\x86\xed\xb1\xa8\x2f\x5c\xd5\x59\xca\xe5\x02\x4f\x90\xaf\x80\xfb\x0a\xb4\x2f\xbb\x42\x9d\xe5\x72\xe1\x68\x6d\x1e\xa5\x9e\x81\x0e\x71\xa8\x48\x6b\xec\x58\xfb\xa1\x09\x4e\x06\x4f\x6b\x6d\xaf\x27\xce\x4f\x43\xe8\x82\x9c\xd9\x08\xec\xf0\x5d\xc0\x43\xc2\x78\x0d\x89\x60\x67\xeb\x3e\x4c\x98\x9d\x01\xdf\x2a\x3e\x69\xc8\xc8\xd7\xce\x90\xfa\xb0\x8f\x87\xc6\x34\x2c\xc4\x83\xe0\x31\x7b\xaa\xf5\xb4\x10\x99\x4e\x3f\x4a\x13\x2a\x63\x5b\x1b\x84\xfb\x30\x79\x42\xa0\x1f\xce\xb9\x79\xda\xb5\x4d\xc3\x7b\x98\x6a\xc1\x56\x3e\xa6\x8f\x1a\xf6\xa9\xa1\x9e\x12\x9f\x7b\x0d\xf5\x9a\xb2\x0b\xc9\xac\xb9\x37\x61\xcf\x70\x62\xe9\x67\xe4\x82\x24\x81\x5c\x8a\x9d\xc7\xb4\x7a\x28\x5b\xb5\x0e\xc5\xc0\x9c\x01\xbf\xdc\x30\x12\xd4\x4b\x6d\xf8\xa4\xfd\xf2\x2a\x81\x9c\x85\x43\xd2\xd2\x31\x8a\xb8\xc4\x02\xe8\x90\xc4\x6b\xf7\x0e\x8d\x76\xe5\xbd\xd9\xbe\xc1\x36\xde\xc5\x5e\xd9\x17\x4d\x17\x65\x25\x9d\xa7\xf6\x77\xa6\xf2\xb9\xb4\xa5\x91\x4b\x52\xa3\x96\x52\xbd\xa8\x00\x42\x4d\x36\x7f\x30\x53\x01\xc4\x60\xe5\xb3\x40\x95\xcd\xf3\xaf\xd6\x77\x01\x00\x45\x2c\x85\x97\xf6\x9e\xb2\x99\xff\x9a\x31\x3c\xcc\x04\xdf\xe2\x31\x5f\xe7\x68\x4c\x53\xd3\x29\x49\x61\x29\x21\x83\xf4\x06\x5d\x02\xb1\xe9\xaa\x34\x9b\x51\xc0\xfe\x3a\x97\xa6\xf3\xd8\x2a\x01\xdc\x2f\xf5\xcb\x5c\xbe\x53\xda\x66\xd3\x6b\xdf\x1f\x16\x43\x4a\xdd\xf6\xcc\xa9\x88\xd1\x1f\x5e\xc3\xa1\x4d\x3e\xff\x9a\xac\x3c\xe4\xb5\x10\x25\xc6\x4e\x95\xb9\x6f\x54\xc4\xe5\x5c\xfe\xc5\x74\x0f\x8a\x3a\x3b\x45\x74\xb5\xc2\x25\x0c\x23\x08\xc1\x92\x8f\x58\xe8\xf3\x7f\x7d\xf1\xf1\x05\xe2\xd0\x4b\x0d\xc2\x8d\x93\xea\x01\xe2\x88\xc0\xcb\x34\x85\x48\xb4\x6d\x81\x23\xa3\xf0\x9f\xe0\x7d\xb0\x1c\xba\xd4\x2d\x64\xd5\xc4\x18\xb2\xd0\xfb\x66\xb0\x77\x3e\xcf\x58\xc4\x8b\x68\x73\x62\x6d\x39\xda\xc6\xec\xe9\x47\xc3\x87\x0a\x6e\xc6\xd2\x6a\xe7\xc2\x36\x17\xce\x7c\xeb\xd8\xf9\x2a\xf3\xc5\x34\x01\x80\x35\xb7\x75\x61\x18\x47\x1e\x8a\x93\xd3\x6b\x92\x7b\x3b\xcf\x3d\x6e\x65\xd9\xfc\x8d\x93\xbc\xe4\x92\x6f\x45\xcc\x9e\x41\xc6\xd4\x33\x3b\xf8\x73\x99\x2d\xa7\xe9\x6e\x55\x10\xc5\x93\xe9\x94\x29\x08\x18\xed\x39\xe5\x16\x71\xf3\x9a\xb4\xa7\xb3\x3b\x2f\x5a\xed\xb6\x8e\xeb\x1b\xf7\xa5\xe1\x06\x0b\xfa\xb8\x5c\xef\xdc\x54\x21\x42\x55\x26\x75\xae\xef\x26\x6c\x99\x73\x09\xda\x13\x71\x68\x54\xf9\xd5\x09\x97\x67\xe4\x4f\xb2\x29\x14\x92\xa7\x3b\xc0\x8e\x4f\xe6\x12\xc9\xa6\x80\x95\x78\x17\xa5\x49\xc4\xd6\x39\xcf\x36\x35\x3b\x48\xdc\x0b\x59\x9c\x13\xbb\x82\x05\xa9\x1f\x1b\x5a\x76\x6c\x0d\x47\x71\xee\x5d\x54\xad\x1d\xee\x69\x28\xbc\x87\x15\x13\x55\xe8\x46\x6d\x41\xad\x6e\x82\x4f\x48\x0a\x0d\xf8\xb8\xd8\x9f\xcb\xa5\x4a\x2d\xa1\xd9\xc5\x6b\xa6\x72\xd0\x12\x28\x14\xfd\x29\x89\xbb\x4e\xb1\x44\xc6\xe2\xf3\x51\xac\x02\xfd\x07\x92\x35\xef\xcc\x67\x02\xca\xfa\x7a\x63\x61\x15\xe5\xc2\x1c\x16\x85\xbd\xc1\x35\x9e\xd2\x75\x84\xdd\x2c\x2d\x36\x00\x7b\x43\xc0\xb5\xef\xd4\x2d\xdf\xb1\x68\xc3\xe5\x3a\xb8\x42\x03\x0a\x49\x64\x2a\x47\xcd\xbd\x7b\xa0\xef\x52\xb9\xcd\xda\xa4\x5c\x44\x42\x7d\x3b\x87\x37\x82\x2d\x95\x4d\x38\xe4\xeb\x75\x2e\xd6\x90\x48\x3f\x97\x95\x6c\x6a\xa0\x2e\xb3\x74\xff\xf8\x9d\xbe\x64\xd4\xc7\x61\x74\xe8\xba\xb5\x14\xf9\xce\xa5\xf2\x91\x60\xa5\xeb\xba\x46\xb7\x4e\x58\x22\xa6\x13\xf6\xbd\x07\x98\x8a\x48\x49\x97\x0b\xd8\x91\x08\x56\x73\x4d\xef\xd9\x8b\x5a\xa8\x1f\xda\xeb\x0e\xbf\x35\x64\x2f\x5b\x27\x4d\x6f\x32\x65\xc1\x8b\x72\xc4\x5e\x49\xd2\xc6\x67\xe6\xe5\x1b\x7c\xb7\x17\x83\xcd\x33\xb3\xbd\x59\xda\x1d\xf3\xbc\xd9\xe1\xcd\xb7\x3d\x2d\x6f\x5b\x5f\xef\x75\x74\xa6\xaa\xdb\xd1\xf9\x18\x26\xa5\xe5\x56\xd8\xef\xeb\x4c\x3b\xf8\x02\x7a\xda\x34\xd6\x95\x69\xc1\xa8\x04\x33\xd7\xf5\xeb\x56\xcb\x0e\x90\xe5\x2a\x2e\x23\x11\x9b\x95\x0b\x76\x3b\x22\x37\x1c\x6d\x41\x65\x93\x6c\x3b\x10\x2a\xdc\x2b\x20\x70\xfd\xa5\xee\xc6\x83\xe8\x6e\x5d\xf7\x7f\xe8\xb8\x17\x5b\xcb\xa4\xad\xd3\xc3\xf5\x89\xfd\x94\x8f\x3c\xa7\xdc\xe7\xab\x24\xb5\x2a\x4f\xd6\x89\xe4\x85\xca\xd9\x73\x97\x9c\xf8\xc2\x29\xdb\x40\x2f\x3e\xc6\x36\x51\xe9\x22\xdc\x26\xda\xef\x5e\x80\x67\x16\xf1\x62\x1c\x77\xd6\x58\x86\x67\x98\xa4\xe6\x29\x5d\xf0\x6d\x16\xd2\x3e\x3a\xdd\x60\xea\x99\x14\x3b\x81\xd9\x8a\x81\x8f\x2f\xd1\x3e\x07\x6b\x2e\xc9\x33\x8e\xe3\xa6\xf2\x90\xb7\xb8\xf3\x6c\xce\xca\x62\x71\x20\x95\x09\xbe\x3c\xce\x41\x42\xe1\xf2\x77\x3c\xeb\x27\x87\xe0\x74\x35\xc6\x24\x14\x27\xa6\x6c\x2d\x95\xea\xfc\xec\x57\x06\x18\x49\x56\x59\x0f\xf1\x5e\xbf\xb5\x01\x0d\x7f\x6f\xa9\x5c\x04\x60\x20\x90\x25\x4f\x83\x55\x81\x57\x50\xb7\xad\x99\x53\xdc\x32\x4a\x9c\xa5\xaa\x8c\x19\x6d\x6a\x14\x2e\xce\xa7\x78\x3a\x02\x6d\xe5\x74\xda\xc5\xe1\x35\x52\xb1\xd4\xed\x3f\xf0\x5e\xfb\x0a\x84\xdf\x3a\x76\xe0\xde\xa5\x4f\x3d\xfb\x64\x43\x4f\x3d\x0d\x63\xef\xb6\xe3\x51\x63\xef\xbc\xb5\xc0\xa1\x35\xce\x91\x07\xf7\xa6\x24\x4e\x61\xbd\x85\x8e\xee\x16\x96\xcf\x4a\x00\x51\xdf\x1d\xfd\x39\x9b\x69\xdb\xff\xa9\x8c\xe7\x42\x16\x0b\xf8\xe2\xb8\x8f\xc1\x47\xde\xc3\xeb\x15\x83\x69\x90\xc3\xf2\xbf\x6e\x15\xfa\xa1\x2d\x61\xc6\x7f\xb3\x1b\xf2\xbd\x68\xab\x6a\x6f\x4e\xc7\xe7\x09\x60\x63\x82\x98\x9d\x1b\xb8\x8e\xe1\xa2\x06\x1d\xd0\x7b\x41\x83\x2a\x5b\xfb\xa0\x06\xf9\xda\x43\x48\x15\x4a\x21\x37\x14\x65\x78\x9a\xad\xd6\xfe\x2d\x20\xd1\xbe\xac\xfc\x1b\x08\x0f\xcd\xf8\xa5\xec\xaf\x22\x57\x3e\x6d\x01\x9d\x2a\x61\xc1\xbd\xf6\xfa\xe1\xfa\x9f\x68\x8f\xa3\xf2\x64\x28\xbd\x06\x7f\x21\x4e\x12\xbc\xf9\x2e\x77\xf6\x3a\xd2\x45\xa7\x2e\xa2\x45\x07\xcf\xfe\xa0\xaa\x04\x17\xcf\x90\x37\x3f\xa9\x1d\x66\x76\x81\x9e\xc2\xbd\x9a\x58\xff\xb6\x3c\x23\x1c\x1a\x41\x5e\xeb\x41\x86\x29\x34\xe2\xbf\x7e\xfd\xef\x69\x97\xb2\x33\x54\x7d\x2c\xac\xc7\x55\xfe\x4d\x9e\x08\x19\x43\xd0\x90\xc7\x4d\x09\x18\x59\xf1\x22\x57\xb6\x67\x33\x0d\x1f\x25\xbb\xaf\xfd\xa8\xd5\x0b\x9c\x44\x5f\x20\xf2\xec\x37\x59\xb7\x7c\x2b\x71\xa9\x2e\x53\x42\x2f\xe2\x9d\xe4\xdb\xa6\x16\xf6\x93\xd6\x71\x97\x88\x34\x86\x2a\xd2\xd7\xf7\x45\x4f\x62\x11\xdd\x8d\xb5\x09\x0e\x26\xb0\x16\xd1\x1d\xfb\xf1\xf6\xdd\x5b\xd4\x2b\x4c\xf4\x5c\x5e\xf2\x22\xb9\x17\x1f\xf2\xd4\xb9\xad\x89\x91\x24\x4f\xed\x1a\xa9\x12\xaa\x06\xe4\x1d\x96\x7d\xd5\x1a\x0e\x21\xdf\xf5\x76\x77\xb2\x2c\xa3\x3b\x51\x9c\xe6\x5c\xc6\x6a\x8b\xcd\x38\xd5\xe5\x6a\x95\x7c\x9e\x16\x3c\xef\x20\xbf\x46\x3f\xc2\x57\xb4\x73\xbd\xa4\x49\xe1\x6d\x5e\x34\x75\x1f\x20\x3b\x91\x84\x72\x2b\xc6\x2d\x5c\x81\x73\xbe\x15\xc0\x5e\xc6\xaa\xc4\xf1\x50\x0a\x26\xfc\x81\xbe\x9a\xd6\x84\xf4\x56\xa4\xde\xfa\x31\x30\xee\x3f\x06\xb5\xaa\x2a\x08\xdb\x4a\x79\xcd\xb2\x2d\xbf\xc3\xfb\xe1\x3a\x17\x5a\x4f\x98\x56\x50\xe3\xb9\xb4\x98\x69\x9b\xd7\x03\xf8\x0c\xe0\x3f\x4c\x77\x2c\x52\x59\x02\x12\x6f\xae\x5d\x1b\xf5\x00\xfe\xe4\x30\xbd\x0d\x54\x39\x4b\x59\x24\x29\xe3\xab\x82\x9c\xcd\x40\xf6\x6c\xc5\x5d\xf4\x74\x2e\x21\x64\x18\x41\xf3\x21\x94\xef\xc2\x04\xae\x11\x9a\xad\x78\x94\xa4\x49\x41\x14\x34\x90\x0c\xc3\x4d\x7b\xcd\x79\x60\xfa\x32\xe7\x3b\x9e\xfa\x8b\x15\x4f\x4b\x9f\xd1\x77\xa2\x45\x9d\xe2\xec\x77\xe1\xff\x56\xee\xb9\x7d\xa7\xee\x11\x17\xde\x63\x0e\x9f\xe6\x95\xd6\x29\x8e\xfa\x73\x3c\x89\x2d\x4e\xb4\x62\xea\x7a\xe6\x59\x77\xfc\x80\xef\xbc\xe3\x52\x3d\xb5\x3a\x31\xcd\x2f\x8c\xe8\xbd\x76\x23\xec\x0b\xb9\x0b\xba\x38\x70\x87\x54\xdf\x7a\xbb\xdf\x2b\x95\x1e\xeb\xf1\xe6\xa9\xdd\x50\x17\x20\x9d\x78\xcc\x75\x0d\x27\x80\x73\x1c\x5d\xbc\x76\xb1\x57\x47\x2a\x5b\x15\x5c\x21\x58\x10\x55\x01\x36\x0a\xa8\x44\x0f\x62\x58\x67\x2d\xc1\xf7\x91\xc8\x67\x28\x03\x51\x3b\xd6\x74\x6e\xba\xe0\x83\x5c\x76\xee\xeb\x08\xc4\x7b\xb5\x1a\x8e\x72\x86\xa1\xd0\x61\xed\x53\xce\x31\x16\x12\x74\xba\x7e\x0c\xbe\x6d\xfb\x13\xe5\x95\xcd\xf9\x44\x56\xf2\x5c\x06\x16\x31\xb2\xea\x58\x68\xb9\xeb\xb5\x36\x7f\x59\x65\x1a\x1e\xed\x2f\x3b\x86\x85\xb9\x37\xa0\xf2\x3a\xd4\x53\x02\x4c\x40\xa4\xb6\xcb\x44\xda\x54\x65\x72\x22\x83\x29\x3f\xb3\x24\x77\xce\xe1\x6f\x4d\x72\x64\xd9\xaf\xf5\xbd\x33\x23\x42\xbe\xc0\x70\xcb\xda\x77\xdd\x0d\xef\x4f\x8f\x4b\x18\xdd\x81\x52\xad\xb7\x20\xd1\x8c\xa7\x0f\x7c\xa7\x41\x73\x54\x98\x5d\x71\x85\x8e\xd3\x6a\xfd\x27\xc1\xf1\x6e\x09\x14\x49\xc0\xbb\x24\x29\x62\x6a\x4b\x82\xfc\x0d\x22\xb5\xea\xaa\x9e\x17\xe7\x99\x6e\xef\x9c\xaf\x13\x0b\xc9\x7b\x63\x21\x18\x8c\xfc\xc7\x08\x7f\xf4\x38\x59\x8f\xf4\xf5\x06\xc7\x24\x5a\x64\x04\x17\x81\x04\x1e\xd8\x8e\xcd\xb7\x27\x6c\xcb\x13\x49\xcb\x00\x15\xac\x62\xb1\x2c\xd7\xeb\x4e\x17\xe4\xb7\x1f\xcb\xa8\xae\x93\x7f\x7a\x5f\x73\x2f\xb3\xd3\x63\x78\x63\x2f\xec\x97\xd0\x3d\x6c\xee\x55\x5f\xc6\x01\xfb\x15\xbd\xdd\xad\x21\xa7\xc6\x24\x7a\x1c\x6f\xf7\xc5\x10\x6f\xb7\xc5\xf8\x40\xaa\x15\x5d\x57\x2d\x0e\xe3\x37\x37\xf8\x97\x71\x83\x0f\x9a\x14\x48\xef\xb1\x48\xaa\x06\x7a\x4f\x0d\x0f\x64\x09\x73\x74\x92\x50\x2b\x52\x03\xd7\x42\xc6\x9a\x2d\x79\xf4\x04\xb4\x61\x70\x3a\x1e\xef\x6f\xdb\x03\x2e\xb9\x51\x5b\xc1\xe0\x53\x1a\xb5\x0f\x18\x65\xb3\x4d\x00\xb5\x68\x1a\xe8\x11\x19\x84\xf7\x80\xe3\x14\x91\x21\xb1\x37\xaa\x9f\x4b\xf1\xc0\xcc\x69\x35\x09\x61\x5c\xc1\xf0\x80\x28\xce\x0b\x63\x1d\x56\x30\xdf\x2e\x75\x3f\x17\x6b\x9e\xc7\x90\x69\x40\x4b\x32\xe5\xd1\x9d\xf9\x6f\xa8\x1f\x7d\x91\xa0\x66\x96\x9f\x1b\xe1\x8f\xbe\xb4\x44\x46\x39\x90\x32\x11\xaa\xcd\xd7\x0f\x5f\xd7\x8c\x47\xb9\xd2\xe8\x94\x71\x5a\x92\x90\xe9\x0a\x06\xec\x7d\x12\x97\x3c\xc5\x2f\x76\x7a\xb2\xb9\x3e\x8a\x6f\x7c\x16\xc8\xbe\x88\xcf\x59\xca\x65\x75\x4d\x62\x73\x81\xab\x26\xe9\x99\xf9\x8e\x72\xed\x98\xaa\x8c\xa6\x8e\xbc\x08\x14\x57\xfd\xb2\x42\xeb\x38\x17\x3c\xde\x85\xc4\x54\x89\x24\xdd\x7d\x1e\x6f\x13\x69\x86\xde\xaa\x7a\xb9\xfd\xd5\x12\xfc\x22\xe0\x12\xc4\x2f\xd2\xb4\xb6\xf4\x35\x93\xc2\x98\x54\x3c\x4f\xd2\x1d\x58\xd1\x59\x2e\x4e\x82\xef\x04\xeb\x9b\xf2\x3d\x80\xaa\x98\x48\x14\x4a\x2d\x56\x65\x8a\xb6\x36\xdc\x46\x5d\x03\x68\x1d\x7e\xb8\x98\x98\x63\xb6\x20\xca\xf9\xe0\xc3\x28\xe4\xf4\x18\xd8\xf9\x46\x0c\x6c\x5c\x1c\xc7\x13\xa7\xe5\x00\xf1\xdd\xa8\x07\x9b\xe8\xf3\xc0\x3d\x92\xb3\xeb\x4c\x79\x34\xdf\x7d\xbf\xf5\x65\xef\x3d\x76\x75\x62\xe7\xc7\x95\x80\x0d\xfd\x26\x62\xb7\x22\x13\x09\xcd\x21\x2d\x44\xef\x0f\x2d\x35\xe6\x0b\x99\xb1\x84\x5d\xdb\x5e\xef\xab\xee\x50\xe6\x5a\x97\x68\x25\xd9\xbc\xfc\xfd\xef\xff\x20\xd8\xef\x21\x81\x8a\xac\x70\x8c\xba\x00\x75\x1a\x96\x0e\x1b\x95\xfb\x80\x40\x5e\xb5\xc6\x88\xb0\x36\xe0\xa3\xcd\x56\x06\xe8\x20\x8f\x36\x4c\x97\x4b\xc4\xc5\x71\x72\xdc\x73\xe9\x98\x49\xdf\x2a\x80\xb8\xe1\x79\x66\x6b\xff\xbf\xc4\x4d\x8d\xec\xe0\x73\x99\x29\x24\xcf\x05\x40\xe1\x52\xb0\x2d\xcf\xef\x40\xec\x8d\x14\xbd\x19\x2f\xd8\xf3\x44\x4c\xab\x4e\xeb\x17\x95\xfa\x50\x98\x00\x49\x31\x59\x5e\x4a\x69\xd5\x2b\x98\x31\xc7\xbc\x07\x79\x32\x97\xcb\x32\xbc\x71\x55\x5c\xd0\x7e\x6a\x81\x1b\x1a\x36\x5b\x05\x4c\x09\x54\x29\xae\x03\xa5\x71\x36\xc0\x17\x3d\x97\x4f\xe4\x8c\xee\x72\x73\xbd\x27\xcb\xc3\xba\xb0\x02\xb4\x36\x34\x37\x14\x58\x84\xe1\xc0\x69\x0f\x47\xfb\x7b\x50\x59\x9c\xb0\x1f\x93\x7b\x31\x61\x37\x19\xcf\xef\x26\xec\x35\x06\x95\xfe\xa4\x96\x6d\x9e\xab\x46\x3a\xfd\xd1\xde\xab\xc3\x9c\x37\x83\xa5\xda\x9d\xcd\xfb\x4b\x53\x87\xbd\x2b\xa2\xfa\x8f\x89\xf3\xea\x60\x3a\xf8\x67\xbf\x7f\xef\x09\x7e\xfe\x06\x89\xfa\xa7\xbc\x0b\xf6\x93\x1c\xfc\x2e\xfc\x5f\xbb\x7f\x59\x8b\x0b\x6c\x4f\xda\xe5\x5a\xb1\x4e\xdf\x56\x5a\x67\x12\xd7\x0f\xe5\x66\x76\xe7\xb0\xa5\x40\xc9\xb3\xb1\x4b\xec\x1d\x01\xe5\xa6\x57\x6d\x7f\x9d\xa5\x4a\x97\x79\xff\xe2\xbf\xae\xd6\xda\x7e\xbd\x85\xe8\x10\x26\xdb\x76\x29\x20\x67\x7b\x28\xa8\x01\x1f\x5b\xfc\x45\x2d\x17\x80\xe0\x39\x6e\x85\xb7\x15\x67\xa5\x53\x5c\x1c\x88\xaa\xea\x4f\xc8\x9b\x4c\x00\xdf\x8e\x37\x45\xbd\x1b\xbc\x36\xc3\x9c\x43\x60\x2e\x2d\xfd\x30\xe6\x0b\xe6\xb9\x00\x9e\x54\x73\xef\xbd\x17\x39\xcb\x78\xee\xc2\xe8\xd6\x22\x0a\x6e\x3e\x1e\x6a\x11\xe6\xf8\x40\xaa\x1e\xdd\xb7\x96\x42\x48\xd7\xdb\x63\x4c\x09\x63\x1d\xd4\x7b\x9f\x30\x54\x0f\x82\x45\x08\xcf\xef\x50\x2f\x6b\xbc\x17\xdc\x05\xc1\xe4\x5e\x8b\x22\xd8\xcd\x6b\xa6\x45\x65\x69\x56\xe2\x32\xdf\x14\x8e\xbc\x35\xf2\x5a\xa3\x26\xaa\xb8\x0d\x06\x45\xb2\x1e\xc3\x4b\xfc\x9e\x17\x1b\xbc\xd0\x6e\x55\x41\x32\xf2\xc8\x91\x82\xf3\x05\x7d\xad\xcb\x54\x2d\x41\x8a\xc7\xfc\xd2\x75\x37\x8c\x68\x69\x0f\xea\xba\xe6\x80\x0d\xd9\x19\xcc\x6e\x02\x79\x86\xb9\xd0\x40\x37\xd1\x8c\xcd\x0c\x45\xbd\x8e\xbb\x74\x37\xab\x6b\x36\xfd\xd7\x8d\xcb\x76\x93\x9f\xdc\x2c\x6b\x80\x40\x9e\x1f\x90\x97\x71\x1e\xe6\xea\x19\xe3\x80\xa8\x5a\x29\xf8\x89\x6c\x8d\xb5\xf6\x5a\xc5\xd7\xb9\x9c\xe1\x2f\xc1\x21\xc0\xbd\x0e\x87\x43\x19\x92\xb8\x9f\x5b\x7f\x98\xbc\xc7\x66\x21\xae\x8d\x3c\x04\x13\xef\xc1\x83\xcb\xc0\x04\x72\xe5\x64\x91\xe4\x82\x49\x88\xbd\xcf\xa5\x2e\x97\x27\x9e\x96\xc1\xdc\xe2\xee\x81\x4a\x44\x8b\x8c\xc3\x55\x06\xd8\x5a\x4e\x5a\x8e\x61\xf4\xc7\x79\x3e\x7d\x4b\x5f\xc6\x53\xda\xfc\x21\x03\x0f\xf3\x82\x5d\xdb\x5d\x39\xe6\xb2\x06\xb7\x68\x9b\x93\x8a\x87\x5d\xdf\x7e\x01\x8a\x1f\x90\xd7\x77\x8d\xd8\x81\xaf\x7d\x80\x87\x31\xc0\xa1\x47\x37\x44\x91\xe6\xf2\xff\xda\xb3\xa1\x1b\xaa\x3a\x62\xa6\x9b\x9e\x31\x47\x54\x27\x84\xb6\x52\x37\x7b\x85\x0c\x8c\xc0\xee\x4a\x35\xa6\x7c\x5b\xa9\xdc\xa2\x39\x42\x7e\x7b\x45\x49\x98\xf0\xeb\x7d\xa2\x03\xb2\x63\xf8\xda\x8d\x10\xec\x65\x2e\x56\x2f\x3f\xe6\x62\xb5\xb0\x23\x3d\x85\x06\x4d\x4d\x8b\x9a\x94\xc7\x03\x27\x87\xce\x94\x6c\xa7\x7e\xdb\x43\xcd\x58\x6b\x12\x96\x13\xb4\x29\x59\x31\x2f\x83\x66\xda\x03\xf9\xef\x22\xae\x73\x31\x37\x6a\xf6\xc5\x8f\xb9\x2e\xfc\xd3\x00\x80\x51\x87\x7c\xd8\x3f\xff\xf1\x56\xe9\xb3\x21\xc7\xdb\x6d\x15\x28\x62\x37\x7b\x2e\xdd\x81\xd7\x0d\x28\xfe\xb2\x98\x67\x18\x40\x9d\xf1\x07\x49\x2c\x1e\xa3\x5c\x4f\xc3\x8e\xb5\x76\x21\x73\x73\xac\x35\x90\x5f\x7e\x95\x49\xeb\xe9\x4b\x9c\xd6\xd6\x24\x90\xa9\xe5\x69\x1a\x32\xca\xfb\xf8\xd2\x5c\xfa\x6c\x47\x63\xb5\xa6\xa9\x75\xe1\x55\xec\x0d\xe2\x6c\x89\x21\xcd\x54\x4c\x2c\xe5\x04\x91\xb5\x51\x14\xe8\x64\xc9\x41\x03\xd1\xe9\xac\xec\x5b\xcd\x8f\x75\x89\xfc\xc6\xb2\x6d\xf7\xc4\x5b\xf1\xb3\x8b\x3b\xb1\x1b\x5d\xd7\xf6\x48\x87\x97\x60\xdc\xc0\x62\xb6\xbb\x6c\xc4\xf3\xdc\x62\xc7\xe9\xab\xcc\xdc\x95\x56\x3c\xaa\xb8\x39\x3b\xea\xb9\x11\xd1\x5d\xa6\x12\x39\x7a\x2f\x0a\xea\x63\x0c\xa9\xc2\x9c\x67\xbe\x34\x77\x3b\x1c\x74\x38\x56\xec\x49\x6c\x88\x06\x50\x81\x05\x44\x7a\x2a\x2a\xce\x9c\xc6\x64\xf7\xb4\x7b\x6c\xff\x85\xf0\x67\xc3\x13\xf8\x62\x5b\xe2\x43\xb5\x53\x85\xb7\x38\x76\x2a\x3c\x88\xbc\x91\x53\x34\xb0\xb3\x39\xab\x10\xb8\xb5\x76\x29\xb8\x20\x7f\xf3\x0c\xfd\xe6\x19\xfa\x07\xf7\x0c\x7d\x49\xb7\x10\x20\x42\x9e\xd2\x27\xd4\x13\x20\x3f\x62\x39\xba\xaf\x1e\x2b\xb8\x8c\xd6\xf1\x24\x10\x06\x0d\xf2\xe7\x9a\xf0\x76\x4b\xaf\x50\x80\xac\x72\x74\x27\x64\x67\x8c\xde\x92\xe2\x74\xaa\xc7\x3e\x16\xec\xb3\x9b\xd3\x27\x78\xbb\x9f\x23\xcd\x03\x7c\x88\x32\xb5\x8d\x66\xc2\xac\x13\xb0\x3d\x4d\xc3\x4f\x00\x2a\xa5\x72\x47\xeb\xab\x29\xb7\x0b\x83\x91\x48\xbe\x83\x10\xa1\x1a\x11\xee\x50\x24\x98\xfd\xf0\x22\x53\x2a\x6d\x05\x84\x3d\x6a\x07\x36\xd2\x43\x86\x76\xde\x05\x1a\xa3\x3a\x84\x49\xd9\x5e\xf4\xa9\x06\x3e\x31\x01\xb3\x10\x40\x09\x00\x66\x53\x5c\x42\x86\x9e\xef\x8e\xa9\xcf\xeb\xe1\xce\xe1\x42\xc8\xa8\xa5\x88\x38\xa8\xe0\x59\xc8\x5a\xc4\x5d\xce\x45\x48\xb5\xd3\x48\x82\xd0\xcd\xef\x74\x44\x2d\xa1\xdc\x45\xd2\x46\xfb\x3f\x76\x71\xd5\x2c\x04\x0b\xa8\xc6\x9a\x5b\x24\x89\x25\x9d\xdb\x27\x7a\x68\x19\x76\x17\x51\xca\xf5\x40\xc3\xba\x75\xdf\xb9\xa0\x82\xce\xa0\x9c\xe1\x1b\xe9\x8f\x90\x84\xb2\x1d\x88\xdc\x99\xcb\x99\x13\xfd\xf3\xd8\x2f\x87\x57\xc3\x70\x29\x22\xf5\x1a\x43\x83\x4c\x76\xfe\xe6\x32\x61\xba\x8c\x36\xc0\xd5\x57\xdd\xa7\xc2\x7d\xab\xb9\x62\x27\x73\x69\x2e\x44\xe0\x6a\xd9\x72\xc8\xb6\x7e\x30\xc6\xaa\x4e\xfe\x2a\x1c\x3c\x8b\x28\xa1\x42\x44\x16\x5e\x9c\x94\x6c\x45\xaf\x59\xda\x44\x04\x58\x78\x4c\x49\x99\xc5\xbc\x10\xd3\xb9\x47\xdb\x24\xe8\xe9\xb4\x28\x0f\x32\x99\x75\xd8\xb0\x10\xbd\x57\xdb\x69\xd3\x64\x25\xa2\x5d\xd4\x50\x41\xe9\x27\x1f\xf8\xed\xda\xf6\x6d\x5d\xdb\x90\x63\x14\x33\xe5\xc6\x74\x2d\x55\xf5\xda\xbf\x7e\x5c\xe7\x0a\x16\xd4\x44\x8f\xe8\xe7\x2f\x78\xed\x6c\xb1\x81\xc7\xd9\xf3\x83\xef\x41\xfd\xc7\x99\xbf\xd8\xfa\xc3\x3a\x48\xac\x6f\x98\x85\x61\x70\xb1\x08\xa7\x8e\x31\x68\x07\x87\xf5\xbb\xb9\x4b\xbe\x29\x70\xd2\x90\x8b\xab\xb1\xb8\x1d\x5c\xe9\xd2\x5a\xda\x52\xe0\x79\xd7\x63\x71\x07\x9c\xd6\xbc\x78\xa6\x5d\xaf\x57\x77\x40\x8b\x78\x7f\x9b\xe8\xe2\xe7\x9a\x62\xe2\x61\x92\x8b\x4f\x66\x9a\xda\xaa\x62\x35\x87\x5a\x54\xd7\x55\x9b\x47\xad\xec\x9c\x83\xcb\x93\xd5\xc8\x32\xf5\x1e\x73\x0f\xfa\xe8\xfa\xeb\x23\x1e\x4d\x0f\x39\xcf\x32\x91\xdb\x83\xbc\x61\x6b\x81\xe0\x14\x7c\x05\x14\xe3\x36\x02\x65\x6b\x6b\xb7\x5c\xb3\x95\xd4\x8a\x86\xc7\xa0\xeb\xa6\xed\x23\x77\x59\xa6\x69\xe7\xc8\xed\xd7\xb1\xb9\xfc\xf0\xf6\xed\xe2\xe7\xd9\xdb\x0f\xe7\xb6\xf9\xad\xba\x30\xc1\x63\x9d\x7d\xe2\x6a\x42\x7d\xe2\x95\xe7\xcc\x67\x85\x95\xce\x55\xbe\xd5\xe8\xe4\x2a\xd3\xb4\xaa\x19\x34\x97\x1f\xa9\x1c\x80\x69\xa3\x1e\xa2\xe9\x37\xd6\xdb\x71\xd5\xef\xc3\x63\x1f\x4d\xe1\x1f\xf1\xdd\x13\xe6\x1b\xf1\x12\x94\xed\x48\x31\xab\xbd\x5f\x29\x07\xe4\x88\xe5\x80\x60\xe0\xae\xe5\xf0\xd8\xaa\x68\x87\x2d\x8f\x0f\x12\xf8\x98\x45\x6c\xc5\xcc\x1e\x65\x75\x60\xdf\x7d\xac\xc6\xa9\xdd\x5e\x1e\xe3\x95\x06\xca\x9d\xa0\x96\x15\x28\xf4\x7a\xb9\xa7\xb9\x44\x1f\xa8\xa9\x53\xa1\xba\xeb\xc4\x2e\xc8\xbc\x4d\xb9\x5c\x97\x7c\x6d\xac\x5b\xfb\xf1\xb9\xdc\x26\xeb\x0d\xb2\x4b\x94\x99\xc7\x27\x73\x26\x81\x84\xa4\x36\x85\x6a\xf8\xe4\x44\xce\x25\xb5\x49\xae\x7d\xf1\x88\x95\xfd\xd3\x8d\x6b\x0e\x81\xd2\xb1\x20\x92\xe3\x92\x73\x89\x83\x8b\xac\x17\x36\x12\x02\x37\x16\x5e\xd4\xa7\x2e\x87\xd8\x25\x4a\x56\x9b\x3d\x7d\x0d\x31\x99\xb9\x74\x89\xa9\xe8\x39\xa2\x36\x04\xb2\x0d\x58\xa5\xfd\xfb\x89\x1d\x0c\xbb\x26\xa8\x6e\xed\xb3\xfe\xe8\x33\xc0\x2c\xb8\xc5\x08\xed\xdd\xe6\x36\x36\xd0\x5b\xc8\x83\x8d\xa3\x8b\xad\x00\xb2\x91\xdb\x6b\x63\xdb\x85\xcf\x74\x42\x5b\x55\xb9\x4c\x47\x54\x09\x9f\xef\xad\x14\x6e\xc9\xfd\x95\x1a\x70\x1d\xbe\xae\x2d\x2d\x33\x4d\xfb\x3e\xbb\x54\xaa\x63\x5c\x1e\x31\xa0\x58\xa9\x14\xbd\xb0\xaf\x33\xca\xa8\x38\x64\xbe\x0c\x48\xd1\xab\x77\x91\xdd\x7d\xfa\x2a\x94\x26\xfa\xa0\xea\x78\xfb\x69\x70\x8d\x9c\x85\x40\x87\xdd\xa8\x1d\x96\xce\xb9\xca\x06\xdb\xb1\x4d\x52\x3c\xc9\x8a\xd8\x26\xb8\xbd\x98\xc5\x83\x0a\xb3\x66\xfe\x4f\xdc\x24\x9a\xf8\x91\x9b\x40\x25\xa3\x32\xd7\x66\xbb\xa4\xfd\x8e\x76\x6d\x95\x33\x3e\x97\x56\x0d\xc1\x6e\xc7\x33\x0b\xce\xcd\xdd\x5f\x31\xed\x31\x43\x36\x71\xb0\x58\x0b\xa6\xa4\xb0\xbb\xe1\x5c\x5a\xe5\xe3\x09\xe3\x4b\x6d\x05\x85\xb9\xdc\x39\x95\xdf\xc4\x49\xb8\x71\xc9\x00\xf5\xbc\x7f\xcf\xab\x99\x01\x95\x73\xfe\x77\xe6\xff\xfe\xfe\xbb\xff\x1f\x00\x00\xff\xff\xfc\xb0\x82\x8f\x3a\xa8\x04\x00") + +func adminSwaggerJsonBytes() ([]byte, error) { + return bindataRead( + _adminSwaggerJson, + "admin.swagger.json", + ) +} + +func adminSwaggerJson() (*asset, error) { + bytes, err := adminSwaggerJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "admin.swagger.json", size: 305210, mode: os.FileMode(420), modTime: time.Unix(1562572800, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +// Asset loads and returns the asset for the given name. +// It returns an error if the asset could not be found or +// could not be loaded. +func Asset(name string) ([]byte, error) { + cannonicalName := strings.Replace(name, "\\", "/", -1) + if f, ok := _bindata[cannonicalName]; ok { + a, err := f() + if err != nil { + return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) + } + return a.bytes, nil + } + return nil, fmt.Errorf("Asset %s not found", name) +} + +// MustAsset is like Asset but panics when Asset would return an error. +// It simplifies safe initialization of global variables. +func MustAsset(name string) []byte { + a, err := Asset(name) + if err != nil { + panic("asset: Asset(" + name + "): " + err.Error()) + } + + return a +} + +// AssetInfo loads and returns the asset info for the given name. +// It returns an error if the asset could not be found or +// could not be loaded. +func AssetInfo(name string) (os.FileInfo, error) { + cannonicalName := strings.Replace(name, "\\", "/", -1) + if f, ok := _bindata[cannonicalName]; ok { + a, err := f() + if err != nil { + return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) + } + return a.info, nil + } + return nil, fmt.Errorf("AssetInfo %s not found", name) +} + +// AssetNames returns the names of the assets. +func AssetNames() []string { + names := make([]string, 0, len(_bindata)) + for name := range _bindata { + names = append(names, name) + } + return names +} + +// _bindata is a table, holding each asset generator, mapped to its name. +var _bindata = map[string]func() (*asset, error){ + "admin.swagger.json": adminSwaggerJson, +} + +// AssetDir returns the file names below a certain +// directory embedded in the file by go-bindata. +// For example if you run go-bindata on data/... and data contains the +// following hierarchy: +// data/ +// foo.txt +// img/ +// a.png +// b.png +// then AssetDir("data") would return []string{"foo.txt", "img"} +// AssetDir("data/img") would return []string{"a.png", "b.png"} +// AssetDir("foo.txt") and AssetDir("notexist") would return an error +// AssetDir("") will return []string{"data"}. +func AssetDir(name string) ([]string, error) { + node := _bintree + if len(name) != 0 { + cannonicalName := strings.Replace(name, "\\", "/", -1) + pathList := strings.Split(cannonicalName, "/") + for _, p := range pathList { + node = node.Children[p] + if node == nil { + return nil, fmt.Errorf("Asset %s not found", name) + } + } + } + if node.Func != nil { + return nil, fmt.Errorf("Asset %s not found", name) + } + rv := make([]string, 0, len(node.Children)) + for childName := range node.Children { + rv = append(rv, childName) + } + return rv, nil +} + +type bintree struct { + Func func() (*asset, error) + Children map[string]*bintree +} + +var _bintree = &bintree{nil, map[string]*bintree{ + "admin.swagger.json": &bintree{adminSwaggerJson, map[string]*bintree{}}, +}} + +// RestoreAsset restores an asset under the given directory +func RestoreAsset(dir, name string) error { + data, err := Asset(name) + if err != nil { + return err + } + info, err := AssetInfo(name) + if err != nil { + return err + } + err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) + if err != nil { + return err + } + err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) + if err != nil { + return err + } + err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) + if err != nil { + return err + } + return nil +} + +// RestoreAssets restores an asset under the given directory recursively +func RestoreAssets(dir, name string) error { + children, err := AssetDir(name) + // File + if err != nil { + return RestoreAsset(dir, name) + } + // Dir + for _, child := range children { + err = RestoreAssets(dir, filepath.Join(name, child)) + if err != nil { + return err + } + } + return nil +} + +func _filePath(dir, name string) string { + cannonicalName := strings.Replace(name, "\\", "/", -1) + return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go new file mode 100644 index 0000000000..b992897ee8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go @@ -0,0 +1,211 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/signal.proto + +package service + +import ( + context "context" + fmt "fmt" + admin "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + proto "github.com/golang/protobuf/proto" + _ "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 + +func init() { proto.RegisterFile("flyteidl/service/signal.proto", fileDescriptor_ca211d25a1023377) } + +var fileDescriptor_ca211d25a1023377 = []byte{ + // 314 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x4a, 0xec, 0x30, + 0x14, 0x86, 0xef, 0x5c, 0x41, 0xb0, 0x22, 0x6a, 0x10, 0x17, 0x55, 0xc1, 0xe9, 0x4a, 0x04, 0x1b, + 0xd4, 0x85, 0xe8, 0x52, 0x17, 0x6e, 0x04, 0xc1, 0x2e, 0x04, 0x37, 0x43, 0xda, 0x9e, 0x89, 0x71, + 0xd2, 0x9c, 0x9a, 0xa4, 0x33, 0x8a, 0xcc, 0xc6, 0x57, 0x70, 0xe7, 0xdb, 0xf8, 0x0c, 0xbe, 0x82, + 0x0f, 0x22, 0x4d, 0x3b, 0x45, 0x87, 0xd6, 0xed, 0xf9, 0x3f, 0xfe, 0x9e, 0xaf, 0x27, 0xde, 0xce, + 0x50, 0x3e, 0x5b, 0x10, 0xa9, 0xa4, 0x06, 0xf4, 0x58, 0x24, 0x40, 0x8d, 0xe0, 0x8a, 0xc9, 0x30, + 0xd7, 0x68, 0x91, 0xac, 0xcd, 0xe2, 0xb0, 0x8e, 0xfd, 0x6d, 0x8e, 0xc8, 0x25, 0x50, 0x96, 0x0b, + 0xca, 0x94, 0x42, 0xcb, 0xac, 0x40, 0x65, 0x2a, 0xde, 0xdf, 0x6a, 0xea, 0x58, 0x9a, 0x09, 0xf5, + 0xab, 0xec, 0xe8, 0x7d, 0xc1, 0x5b, 0x89, 0xdc, 0x20, 0xaa, 0xca, 0xc8, 0xad, 0xb7, 0x7e, 0x09, + 0xf6, 0x5a, 0x5f, 0x68, 0x60, 0x16, 0xaa, 0x8c, 0xec, 0x85, 0xcd, 0x47, 0x5d, 0x49, 0x58, 0xcd, + 0x7f, 0x80, 0x37, 0xf0, 0x58, 0x80, 0xb1, 0xfe, 0x66, 0x3b, 0x19, 0xfc, 0x23, 0x1f, 0x3d, 0x6f, + 0xf9, 0x4a, 0x18, 0x5b, 0x0d, 0x0c, 0xe9, 0xb7, 0x93, 0x25, 0x32, 0x2b, 0xf3, 0xbb, 0x91, 0xc0, + 0xbc, 0x7e, 0x7e, 0xbd, 0xfd, 0xcf, 0xc8, 0xc8, 0x69, 0x8f, 0x0f, 0x6b, 0x2f, 0x43, 0x5f, 0x26, + 0xa8, 0x47, 0x43, 0x89, 0x93, 0x01, 0x3c, 0x41, 0x52, 0x94, 0xbf, 0x62, 0x20, 0xd2, 0xd2, 0xf7, + 0x01, 0x12, 0x3b, 0xed, 0xca, 0x53, 0xcc, 0x98, 0x50, 0x9d, 0xb1, 0x62, 0x19, 0x4c, 0x89, 0xf4, + 0x96, 0x22, 0xa8, 0x0d, 0xc8, 0x6e, 0xfb, 0x76, 0x11, 0x34, 0xfb, 0xf7, 0xff, 0x20, 0x4c, 0x8e, + 0xca, 0x40, 0xe0, 0x3b, 0x8d, 0x8d, 0x60, 0x75, 0x4e, 0xe3, 0xac, 0xb7, 0x7f, 0x7e, 0x7a, 0x77, + 0xc2, 0x85, 0xbd, 0x2f, 0xe2, 0x30, 0xc1, 0x8c, 0xba, 0x2a, 0xd4, 0x9c, 0x36, 0xf7, 0xe4, 0xa0, + 0x68, 0x1e, 0x1f, 0x70, 0xa4, 0xf3, 0x2f, 0x26, 0x5e, 0x74, 0xe7, 0x3d, 0xfe, 0x0e, 0x00, 0x00, + 0xff, 0xff, 0x99, 0xac, 0x92, 0x50, 0x4c, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// SignalServiceClient is the client API for SignalService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SignalServiceClient interface { + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) +} + +type signalServiceClient struct { + cc *grpc.ClientConn +} + +func NewSignalServiceClient(cc *grpc.ClientConn) SignalServiceClient { + return &signalServiceClient{cc} +} + +func (c *signalServiceClient) GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) { + out := new(admin.Signal) + err := c.cc.Invoke(ctx, "/flyteidl.service.SignalService/GetOrCreateSignal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *signalServiceClient) ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) { + out := new(admin.SignalList) + err := c.cc.Invoke(ctx, "/flyteidl.service.SignalService/ListSignals", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *signalServiceClient) SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) { + out := new(admin.SignalSetResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.SignalService/SetSignal", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SignalServiceServer is the server API for SignalService service. +type SignalServiceServer interface { + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + GetOrCreateSignal(context.Context, *admin.SignalGetOrCreateRequest) (*admin.Signal, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + ListSignals(context.Context, *admin.SignalListRequest) (*admin.SignalList, error) + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + SetSignal(context.Context, *admin.SignalSetRequest) (*admin.SignalSetResponse, error) +} + +// UnimplementedSignalServiceServer can be embedded to have forward compatible implementations. +type UnimplementedSignalServiceServer struct { +} + +func (*UnimplementedSignalServiceServer) GetOrCreateSignal(ctx context.Context, req *admin.SignalGetOrCreateRequest) (*admin.Signal, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrCreateSignal not implemented") +} +func (*UnimplementedSignalServiceServer) ListSignals(ctx context.Context, req *admin.SignalListRequest) (*admin.SignalList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSignals not implemented") +} +func (*UnimplementedSignalServiceServer) SetSignal(ctx context.Context, req *admin.SignalSetRequest) (*admin.SignalSetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetSignal not implemented") +} + +func RegisterSignalServiceServer(s *grpc.Server, srv SignalServiceServer) { + s.RegisterService(&_SignalService_serviceDesc, srv) +} + +func _SignalService_GetOrCreateSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.SignalGetOrCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SignalServiceServer).GetOrCreateSignal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.SignalService/GetOrCreateSignal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SignalServiceServer).GetOrCreateSignal(ctx, req.(*admin.SignalGetOrCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SignalService_ListSignals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.SignalListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SignalServiceServer).ListSignals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.SignalService/ListSignals", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SignalServiceServer).ListSignals(ctx, req.(*admin.SignalListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SignalService_SetSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.SignalSetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SignalServiceServer).SetSignal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.SignalService/SetSignal", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SignalServiceServer).SetSignal(ctx, req.(*admin.SignalSetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _SignalService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.SignalService", + HandlerType: (*SignalServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetOrCreateSignal", + Handler: _SignalService_GetOrCreateSignal_Handler, + }, + { + MethodName: "ListSignals", + Handler: _SignalService_ListSignals_Handler, + }, + { + MethodName: "SetSignal", + Handler: _SignalService_SetSignal_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/signal.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.gw.go new file mode 100644 index 0000000000..8a6b4895b1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.gw.go @@ -0,0 +1,200 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/signal.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin" + "github.com/golang/protobuf/proto" + "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" +) + +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray + +var ( + filter_SignalService_ListSignals_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_SignalService_ListSignals_0(ctx context.Context, marshaler runtime.Marshaler, client SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.SignalListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["workflow_execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) + } + + val, ok = pathParams["workflow_execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) + } + + val, ok = pathParams["workflow_execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SignalService_ListSignals_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListSignals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_SignalService_SetSignal_0(ctx context.Context, marshaler runtime.Marshaler, client SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.SignalSetRequest + 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.SetSignal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// RegisterSignalServiceHandlerFromEndpoint is same as RegisterSignalServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterSignalServiceHandlerFromEndpoint(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 RegisterSignalServiceHandler(ctx, mux, conn) +} + +// RegisterSignalServiceHandler registers the http handlers for service SignalService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterSignalServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterSignalServiceHandlerClient(ctx, mux, NewSignalServiceClient(conn)) +} + +// RegisterSignalServiceHandlerClient registers the http handlers for service SignalService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SignalServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SignalServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "SignalServiceClient" to call the correct interceptors. +func RegisterSignalServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SignalServiceClient) error { + + mux.Handle("GET", pattern_SignalService_ListSignals_0, func(w http.ResponseWriter, 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_SignalService_ListSignals_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_SignalService_ListSignals_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_SignalService_SetSignal_0, func(w http.ResponseWriter, 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_SignalService_SetSignal_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_SignalService_SetSignal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_SignalService_ListSignals_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, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "signals", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) + + pattern_SignalService_SetSignal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "signals"}, "")) +) + +var ( + forward_SignalService_ListSignals_0 = runtime.ForwardResponseMessage + + forward_SignalService_SetSignal_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/signal.swagger.json new file mode 100644 index 0000000000..3c130cef0a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/signal.swagger.json @@ -0,0 +1,715 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/signal.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/signals": { + "post": { + "summary": "Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition", + "operationId": "SetSignal", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminSignalSetResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminSignalSetRequest" + } + } + ], + "tags": [ + "SignalService" + ] + } + }, + "/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions.", + "operationId": "ListSignals", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminSignalList" + } + } + }, + "parameters": [ + { + "name": "workflow_execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "SignalService" + ] + } + } + }, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SortDirection": { + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING", + "description": " - DESCENDING: By default, fields are sorted in descending order." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "adminSignal": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreSignalIdentifier", + "description": "A unique identifier for the requested signal." + }, + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "A type denoting the required value type for this signal." + }, + "value": { + "$ref": "#/definitions/coreLiteral", + "description": "The value of the signal. This is only available if the signal has been \"set\" and must match\nthe defined the type." + } + }, + "description": "Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte\nsignal. Signals may exist either without a set value (representing a signal request) or with a\npopulated value (indicating the signal has been given)." + }, + "adminSignalList": { + "type": "object", + "properties": { + "signals": { + "type": "array", + "items": { + "$ref": "#/definitions/adminSignal" + }, + "description": "A list of signals matching the input filters." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "SignalList represents collection of signals along with the token of the last result.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" + }, + "adminSignalSetRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreSignalIdentifier", + "description": "A unique identifier for the requested signal." + }, + "value": { + "$ref": "#/definitions/coreLiteral", + "description": "The value of this signal, must match the defining signal type." + } + }, + "title": "SignalSetRequest represents a request structure to set the value on a signal. Setting a signal\neffetively satisfies the signal condition within a Flyte workflow.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" + }, + "adminSignalSetResponse": { + "type": "object", + "description": "SignalSetResponse represents a response structure if signal setting succeeds." + }, + "adminSort": { + "type": "object", + "properties": { + "key": { + "type": "string", + "title": "Indicates an attribute to sort the response values.\n+required" + }, + "direction": { + "$ref": "#/definitions/SortDirection", + "title": "Indicates the direction to apply sort key for response values.\n+optional" + } + }, + "description": "Specifies sort ordering in a list request." + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/coreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "$ref": "#/definitions/protobufStruct", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean", + "format": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/coreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "$ref": "#/definitions/protobufStruct" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSignalIdentifier": { + "type": "object", + "properties": { + "signal_id": { + "type": "string", + "description": "Unique identifier for a signal." + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Identifies the Flyte workflow execution this signal belongs to." + } + }, + "description": "Encapsulation of fields the uniquely identify a signal." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "$ref": "#/definitions/protobufStruct", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "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." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + } + } +} diff --git a/flyteidl/gen/pb-java/datacatalog/Datacatalog.java b/flyteidl/gen/pb-java/datacatalog/Datacatalog.java new file mode 100644 index 0000000000..a10dd9b2a4 --- /dev/null +++ b/flyteidl/gen/pb-java/datacatalog/Datacatalog.java @@ -0,0 +1,33934 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/datacatalog/datacatalog.proto + +package datacatalog; + +public final class Datacatalog { + private Datacatalog() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CreateDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Dataset dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.Dataset getDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder(); + } + /** + *

+   * Request message for creating a Dataset.
+   * 
+ * + * Protobuf type {@code datacatalog.CreateDatasetRequest} + */ + public static final class CreateDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateDatasetRequest) + CreateDatasetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetRequest.newBuilder() to construct. + private CreateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDatasetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDatasetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetRequest.class, datacatalog.Datacatalog.CreateDatasetRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Dataset dataset_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.CreateDatasetRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateDatasetRequest other = (datacatalog.Datacatalog.CreateDatasetRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.CreateDatasetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request message for creating a Dataset.
+     * 
+ * + * Protobuf type {@code datacatalog.CreateDatasetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateDatasetRequest) + datacatalog.Datacatalog.CreateDatasetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetRequest.class, datacatalog.Datacatalog.CreateDatasetRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateDatasetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateDatasetRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetRequest build() { + datacatalog.Datacatalog.CreateDatasetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetRequest buildPartial() { + datacatalog.Datacatalog.CreateDatasetRequest result = new datacatalog.Datacatalog.CreateDatasetRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.CreateDatasetRequest) { + return mergeFrom((datacatalog.Datacatalog.CreateDatasetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateDatasetRequest other) { + if (other == datacatalog.Datacatalog.CreateDatasetRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.CreateDatasetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateDatasetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Dataset dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetBuilder_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.CreateDatasetRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetRequest) + private static final datacatalog.Datacatalog.CreateDatasetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateDatasetRequest(); + } + + public static datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateDatasetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateDatasetResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response message for creating a Dataset
+   * 
+ * + * Protobuf type {@code datacatalog.CreateDatasetResponse} + */ + public static final class CreateDatasetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateDatasetResponse) + CreateDatasetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetResponse.newBuilder() to construct. + private CreateDatasetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDatasetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDatasetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetResponse.class, datacatalog.Datacatalog.CreateDatasetResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.CreateDatasetResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateDatasetResponse other = (datacatalog.Datacatalog.CreateDatasetResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.CreateDatasetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response message for creating a Dataset
+     * 
+ * + * Protobuf type {@code datacatalog.CreateDatasetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateDatasetResponse) + datacatalog.Datacatalog.CreateDatasetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateDatasetResponse.class, datacatalog.Datacatalog.CreateDatasetResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateDatasetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateDatasetResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetResponse build() { + datacatalog.Datacatalog.CreateDatasetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetResponse buildPartial() { + datacatalog.Datacatalog.CreateDatasetResponse result = new datacatalog.Datacatalog.CreateDatasetResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.CreateDatasetResponse) { + return mergeFrom((datacatalog.Datacatalog.CreateDatasetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateDatasetResponse other) { + if (other == datacatalog.Datacatalog.CreateDatasetResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.CreateDatasetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateDatasetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.CreateDatasetResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetResponse) + private static final datacatalog.Datacatalog.CreateDatasetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateDatasetResponse(); + } + + public static datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDatasetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + } + /** + *
+   * Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier
+   * which is a combination of several fields.
+   * 
+ * + * Protobuf type {@code datacatalog.GetDatasetRequest} + */ + public static final class GetDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetDatasetRequest) + GetDatasetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDatasetRequest.newBuilder() to construct. + private GetDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDatasetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetDatasetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetRequest.class, datacatalog.Datacatalog.GetDatasetRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.GetDatasetRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetDatasetRequest other = (datacatalog.Datacatalog.GetDatasetRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.GetDatasetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier
+     * which is a combination of several fields.
+     * 
+ * + * Protobuf type {@code datacatalog.GetDatasetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetDatasetRequest) + datacatalog.Datacatalog.GetDatasetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetRequest.class, datacatalog.Datacatalog.GetDatasetRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetDatasetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetDatasetRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetRequest build() { + datacatalog.Datacatalog.GetDatasetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetRequest buildPartial() { + datacatalog.Datacatalog.GetDatasetRequest result = new datacatalog.Datacatalog.GetDatasetRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.GetDatasetRequest) { + return mergeFrom((datacatalog.Datacatalog.GetDatasetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetDatasetRequest other) { + if (other == datacatalog.Datacatalog.GetDatasetRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.GetDatasetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetDatasetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.GetDatasetRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetRequest) + private static final datacatalog.Datacatalog.GetDatasetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetDatasetRequest(); + } + + public static datacatalog.Datacatalog.GetDatasetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDatasetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetDatasetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Dataset dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.Dataset getDataset(); + /** + * .datacatalog.Dataset dataset = 1; + */ + datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder(); + } + /** + *
+   * Response message for retrieving a Dataset. The response will include the metadata for the
+   * Dataset.
+   * 
+ * + * Protobuf type {@code datacatalog.GetDatasetResponse} + */ + public static final class GetDatasetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetDatasetResponse) + GetDatasetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDatasetResponse.newBuilder() to construct. + private GetDatasetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDatasetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetDatasetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetResponse.class, datacatalog.Datacatalog.GetDatasetResponse.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Dataset dataset_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.GetDatasetResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetDatasetResponse other = (datacatalog.Datacatalog.GetDatasetResponse) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.GetDatasetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response message for retrieving a Dataset. The response will include the metadata for the
+     * Dataset.
+     * 
+ * + * Protobuf type {@code datacatalog.GetDatasetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetDatasetResponse) + datacatalog.Datacatalog.GetDatasetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetDatasetResponse.class, datacatalog.Datacatalog.GetDatasetResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetDatasetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetDatasetResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetResponse build() { + datacatalog.Datacatalog.GetDatasetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetResponse buildPartial() { + datacatalog.Datacatalog.GetDatasetResponse result = new datacatalog.Datacatalog.GetDatasetResponse(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.GetDatasetResponse) { + return mergeFrom((datacatalog.Datacatalog.GetDatasetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetDatasetResponse other) { + if (other == datacatalog.Datacatalog.GetDatasetResponse.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.GetDatasetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetDatasetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Dataset dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetBuilder_; + /** + * .datacatalog.Dataset dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.Dataset value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Dataset dataset = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.Dataset dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.GetDatasetResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetResponse) + private static final datacatalog.Datacatalog.GetDatasetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetDatasetResponse(); + } + + public static datacatalog.Datacatalog.GetDatasetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDatasetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetDatasetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetArtifactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + * string artifact_id = 2; + */ + java.lang.String getArtifactId(); + /** + * string artifact_id = 2; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + /** + * string tag_name = 3; + */ + java.lang.String getTagName(); + /** + * string tag_name = 3; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + public datacatalog.Datacatalog.GetArtifactRequest.QueryHandleCase getQueryHandleCase(); + } + /** + *
+   * Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that
+   * can be one of artifact_id or tag. The result returned will include the artifact data and metadata
+   * associated with the artifact.
+   * 
+ * + * Protobuf type {@code datacatalog.GetArtifactRequest} + */ + public static final class GetArtifactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetArtifactRequest) + GetArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetArtifactRequest.newBuilder() to construct. + private GetArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetArtifactRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetArtifactRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 2; + queryHandle_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 3; + queryHandle_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactRequest.class, datacatalog.Datacatalog.GetArtifactRequest.Builder.class); + } + + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public enum QueryHandleCase + implements com.google.protobuf.Internal.EnumLite { + ARTIFACT_ID(2), + TAG_NAME(3), + QUERYHANDLE_NOT_SET(0); + private final int value; + private QueryHandleCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryHandleCase valueOf(int value) { + return forNumber(value); + } + + public static QueryHandleCase forNumber(int value) { + switch (value) { + case 2: return ARTIFACT_ID; + case 3: return TAG_NAME; + case 0: return QUERYHANDLE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 2; + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_NAME_FIELD_NUMBER = 3; + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (queryHandleCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryHandle_); + } + if (queryHandleCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryHandle_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + if (queryHandleCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryHandle_); + } + if (queryHandleCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryHandle_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.GetArtifactRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetArtifactRequest other = (datacatalog.Datacatalog.GetArtifactRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!getQueryHandleCase().equals(other.getQueryHandleCase())) return false; + switch (queryHandleCase_) { + case 2: + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + break; + case 3: + if (!getTagName() + .equals(other.getTagName())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + switch (queryHandleCase_) { + case 2: + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + break; + case 3: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.GetArtifactRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that
+     * can be one of artifact_id or tag. The result returned will include the artifact data and metadata
+     * associated with the artifact.
+     * 
+ * + * Protobuf type {@code datacatalog.GetArtifactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetArtifactRequest) + datacatalog.Datacatalog.GetArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactRequest.class, datacatalog.Datacatalog.GetArtifactRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetArtifactRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + queryHandleCase_ = 0; + queryHandle_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactRequest build() { + datacatalog.Datacatalog.GetArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactRequest buildPartial() { + datacatalog.Datacatalog.GetArtifactRequest result = new datacatalog.Datacatalog.GetArtifactRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (queryHandleCase_ == 2) { + result.queryHandle_ = queryHandle_; + } + if (queryHandleCase_ == 3) { + result.queryHandle_ = queryHandle_; + } + result.queryHandleCase_ = queryHandleCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.GetArtifactRequest) { + return mergeFrom((datacatalog.Datacatalog.GetArtifactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetArtifactRequest other) { + if (other == datacatalog.Datacatalog.GetArtifactRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + switch (other.getQueryHandleCase()) { + case ARTIFACT_ID: { + queryHandleCase_ = 2; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case TAG_NAME: { + queryHandleCase_ = 3; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case QUERYHANDLE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.GetArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public Builder clearQueryHandle() { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + return this; + } + + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string artifact_id = 2; + */ + public Builder clearArtifactId() { + if (queryHandleCase_ == 2) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 3; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 3; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 3; + */ + public Builder clearTagName() { + if (queryHandleCase_ == 3) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string tag_name = 3; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 3; + queryHandle_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.GetArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactRequest) + private static final datacatalog.Datacatalog.GetArtifactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetArtifactRequest(); + } + + public static datacatalog.Datacatalog.GetArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetArtifactRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetArtifactResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.Artifact getArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); + } + /** + *
+   * Response message for retrieving an Artifact. The result returned will include the artifact data
+   * and metadata associated with the artifact.
+   * 
+ * + * Protobuf type {@code datacatalog.GetArtifactResponse} + */ + public static final class GetArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetArtifactResponse) + GetArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetArtifactResponse.newBuilder() to construct. + private GetArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetArtifactResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetArtifactResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifact_); + artifact_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactResponse.class, datacatalog.Datacatalog.GetArtifactResponse.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Artifact artifact_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + return getArtifact(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (artifact_ != null) { + output.writeMessage(1, getArtifact()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (artifact_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArtifact()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.GetArtifactResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetArtifactResponse other = (datacatalog.Datacatalog.GetArtifactResponse) obj; + + if (hasArtifact() != other.hasArtifact()) return false; + if (hasArtifact()) { + if (!getArtifact() + .equals(other.getArtifact())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasArtifact()) { + hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.GetArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response message for retrieving an Artifact. The result returned will include the artifact data
+     * and metadata associated with the artifact.
+     * 
+ * + * Protobuf type {@code datacatalog.GetArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetArtifactResponse) + datacatalog.Datacatalog.GetArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetArtifactResponse.class, datacatalog.Datacatalog.GetArtifactResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetArtifactResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactBuilder_ == null) { + artifact_ = null; + } else { + artifact_ = null; + artifactBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactResponse build() { + datacatalog.Datacatalog.GetArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactResponse buildPartial() { + datacatalog.Datacatalog.GetArtifactResponse result = new datacatalog.Datacatalog.GetArtifactResponse(this); + if (artifactBuilder_ == null) { + result.artifact_ = artifact_; + } else { + result.artifact_ = artifactBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.GetArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.GetArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetArtifactResponse other) { + if (other == datacatalog.Datacatalog.GetArtifactResponse.getDefaultInstance()) return this; + if (other.hasArtifact()) { + mergeArtifact(other.getArtifact()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.GetArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder mergeArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null ? + datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( + getArtifact(), + getParentForChildren(), + isClean()); + artifact_ = null; + } + return artifactBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.GetArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactResponse) + private static final datacatalog.Datacatalog.GetArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetArtifactResponse(); + } + + public static datacatalog.Datacatalog.GetArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetArtifactResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetArtifactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateArtifactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Artifact artifact = 1; + */ + boolean hasArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.Artifact getArtifact(); + /** + * .datacatalog.Artifact artifact = 1; + */ + datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); + } + /** + *
+   * Request message for creating an Artifact and its associated artifact Data.
+   * 
+ * + * Protobuf type {@code datacatalog.CreateArtifactRequest} + */ + public static final class CreateArtifactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateArtifactRequest) + CreateArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateArtifactRequest.newBuilder() to construct. + private CreateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateArtifactRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateArtifactRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.Artifact.Builder subBuilder = null; + if (artifact_ != null) { + subBuilder = artifact_.toBuilder(); + } + artifact_ = input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifact_); + artifact_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactRequest.class, datacatalog.Datacatalog.CreateArtifactRequest.Builder.class); + } + + public static final int ARTIFACT_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Artifact artifact_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + return getArtifact(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (artifact_ != null) { + output.writeMessage(1, getArtifact()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (artifact_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArtifact()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.CreateArtifactRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateArtifactRequest other = (datacatalog.Datacatalog.CreateArtifactRequest) obj; + + if (hasArtifact() != other.hasArtifact()) return false; + if (hasArtifact()) { + if (!getArtifact() + .equals(other.getArtifact())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasArtifact()) { + hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; + hash = (53 * hash) + getArtifact().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.CreateArtifactRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request message for creating an Artifact and its associated artifact Data.
+     * 
+ * + * Protobuf type {@code datacatalog.CreateArtifactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateArtifactRequest) + datacatalog.Datacatalog.CreateArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactRequest.class, datacatalog.Datacatalog.CreateArtifactRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateArtifactRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactBuilder_ == null) { + artifact_ = null; + } else { + artifact_ = null; + artifactBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactRequest build() { + datacatalog.Datacatalog.CreateArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactRequest buildPartial() { + datacatalog.Datacatalog.CreateArtifactRequest result = new datacatalog.Datacatalog.CreateArtifactRequest(this); + if (artifactBuilder_ == null) { + result.artifact_ = artifact_; + } else { + result.artifact_ = artifactBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.CreateArtifactRequest) { + return mergeFrom((datacatalog.Datacatalog.CreateArtifactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateArtifactRequest other) { + if (other == datacatalog.Datacatalog.CreateArtifactRequest.getDefaultInstance()) return this; + if (other.hasArtifact()) { + mergeArtifact(other.getArtifact()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.CreateArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Artifact artifact_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; + /** + * .datacatalog.Artifact artifact = 1; + */ + public boolean hasArtifact() { + return artifactBuilder_ != null || artifact_ != null; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifact() { + if (artifactBuilder_ == null) { + return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } else { + return artifactBuilder_.getMessage(); + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifact_ = value; + onChanged(); + } else { + artifactBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder setArtifact( + datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactBuilder_ == null) { + artifact_ = builderForValue.build(); + onChanged(); + } else { + artifactBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder mergeArtifact(datacatalog.Datacatalog.Artifact value) { + if (artifactBuilder_ == null) { + if (artifact_ != null) { + artifact_ = + datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); + } else { + artifact_ = value; + } + onChanged(); + } else { + artifactBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public Builder clearArtifact() { + if (artifactBuilder_ == null) { + artifact_ = null; + onChanged(); + } else { + artifact_ = null; + artifactBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { + + onChanged(); + return getArtifactFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Artifact artifact = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { + if (artifactBuilder_ != null) { + return artifactBuilder_.getMessageOrBuilder(); + } else { + return artifact_ == null ? + datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; + } + } + /** + * .datacatalog.Artifact artifact = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactFieldBuilder() { + if (artifactBuilder_ == null) { + artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( + getArtifact(), + getParentForChildren(), + isClean()); + artifact_ = null; + } + return artifactBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.CreateArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactRequest) + private static final datacatalog.Datacatalog.CreateArtifactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateArtifactRequest(); + } + + public static datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateArtifactRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.CreateArtifactResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response message for creating an Artifact.
+   * 
+ * + * Protobuf type {@code datacatalog.CreateArtifactResponse} + */ + public static final class CreateArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.CreateArtifactResponse) + CreateArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateArtifactResponse.newBuilder() to construct. + private CreateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateArtifactResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateArtifactResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactResponse.class, datacatalog.Datacatalog.CreateArtifactResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.CreateArtifactResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.CreateArtifactResponse other = (datacatalog.Datacatalog.CreateArtifactResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.CreateArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response message for creating an Artifact.
+     * 
+ * + * Protobuf type {@code datacatalog.CreateArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.CreateArtifactResponse) + datacatalog.Datacatalog.CreateArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.CreateArtifactResponse.class, datacatalog.Datacatalog.CreateArtifactResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.CreateArtifactResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.CreateArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactResponse build() { + datacatalog.Datacatalog.CreateArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactResponse buildPartial() { + datacatalog.Datacatalog.CreateArtifactResponse result = new datacatalog.Datacatalog.CreateArtifactResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.CreateArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.CreateArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.CreateArtifactResponse other) { + if (other == datacatalog.Datacatalog.CreateArtifactResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.CreateArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.CreateArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.CreateArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactResponse) + private static final datacatalog.Datacatalog.CreateArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateArtifactResponse(); + } + + public static datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateArtifactResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddTagRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.AddTagRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.Tag tag = 1; + */ + boolean hasTag(); + /** + * .datacatalog.Tag tag = 1; + */ + datacatalog.Datacatalog.Tag getTag(); + /** + * .datacatalog.Tag tag = 1; + */ + datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder(); + } + /** + *
+   * Request message for tagging an Artifact.
+   * 
+ * + * Protobuf type {@code datacatalog.AddTagRequest} + */ + public static final class AddTagRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.AddTagRequest) + AddTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddTagRequest.newBuilder() to construct. + private AddTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddTagRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddTagRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.Tag.Builder subBuilder = null; + if (tag_ != null) { + subBuilder = tag_.toBuilder(); + } + tag_ = input.readMessage(datacatalog.Datacatalog.Tag.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tag_); + tag_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagRequest.class, datacatalog.Datacatalog.AddTagRequest.Builder.class); + } + + public static final int TAG_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Tag tag_; + /** + * .datacatalog.Tag tag = 1; + */ + public boolean hasTag() { + return tag_ != null; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.Tag getTag() { + return tag_ == null ? datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder() { + return getTag(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (tag_ != null) { + output.writeMessage(1, getTag()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tag_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTag()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.AddTagRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.AddTagRequest other = (datacatalog.Datacatalog.AddTagRequest) obj; + + if (hasTag() != other.hasTag()) return false; + if (hasTag()) { + if (!getTag() + .equals(other.getTag())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTag()) { + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.AddTagRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request message for tagging an Artifact.
+     * 
+ * + * Protobuf type {@code datacatalog.AddTagRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.AddTagRequest) + datacatalog.Datacatalog.AddTagRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagRequest.class, datacatalog.Datacatalog.AddTagRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.AddTagRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tagBuilder_ == null) { + tag_ = null; + } else { + tag_ = null; + tagBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.AddTagRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagRequest build() { + datacatalog.Datacatalog.AddTagRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagRequest buildPartial() { + datacatalog.Datacatalog.AddTagRequest result = new datacatalog.Datacatalog.AddTagRequest(this); + if (tagBuilder_ == null) { + result.tag_ = tag_; + } else { + result.tag_ = tagBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.AddTagRequest) { + return mergeFrom((datacatalog.Datacatalog.AddTagRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.AddTagRequest other) { + if (other == datacatalog.Datacatalog.AddTagRequest.getDefaultInstance()) return this; + if (other.hasTag()) { + mergeTag(other.getTag()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.AddTagRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.AddTagRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Tag tag_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> tagBuilder_; + /** + * .datacatalog.Tag tag = 1; + */ + public boolean hasTag() { + return tagBuilder_ != null || tag_ != null; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.Tag getTag() { + if (tagBuilder_ == null) { + return tag_ == null ? datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; + } else { + return tagBuilder_.getMessage(); + } + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder setTag(datacatalog.Datacatalog.Tag value) { + if (tagBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tag_ = value; + onChanged(); + } else { + tagBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder setTag( + datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagBuilder_ == null) { + tag_ = builderForValue.build(); + onChanged(); + } else { + tagBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder mergeTag(datacatalog.Datacatalog.Tag value) { + if (tagBuilder_ == null) { + if (tag_ != null) { + tag_ = + datacatalog.Datacatalog.Tag.newBuilder(tag_).mergeFrom(value).buildPartial(); + } else { + tag_ = value; + } + onChanged(); + } else { + tagBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public Builder clearTag() { + if (tagBuilder_ == null) { + tag_ = null; + onChanged(); + } else { + tag_ = null; + tagBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.Tag.Builder getTagBuilder() { + + onChanged(); + return getTagFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Tag tag = 1; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder() { + if (tagBuilder_ != null) { + return tagBuilder_.getMessageOrBuilder(); + } else { + return tag_ == null ? + datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; + } + } + /** + * .datacatalog.Tag tag = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> + getTagFieldBuilder() { + if (tagBuilder_ == null) { + tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder>( + getTag(), + getParentForChildren(), + isClean()); + tag_ = null; + } + return tagBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.AddTagRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.AddTagRequest) + private static final datacatalog.Datacatalog.AddTagRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.AddTagRequest(); + } + + public static datacatalog.Datacatalog.AddTagRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddTagRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddTagRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddTagResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.AddTagResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response message for tagging an Artifact.
+   * 
+ * + * Protobuf type {@code datacatalog.AddTagResponse} + */ + public static final class AddTagResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.AddTagResponse) + AddTagResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddTagResponse.newBuilder() to construct. + private AddTagResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddTagResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddTagResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagResponse.class, datacatalog.Datacatalog.AddTagResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.AddTagResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.AddTagResponse other = (datacatalog.Datacatalog.AddTagResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.AddTagResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.AddTagResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response message for tagging an Artifact.
+     * 
+ * + * Protobuf type {@code datacatalog.AddTagResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.AddTagResponse) + datacatalog.Datacatalog.AddTagResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.AddTagResponse.class, datacatalog.Datacatalog.AddTagResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.AddTagResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.AddTagResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagResponse build() { + datacatalog.Datacatalog.AddTagResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagResponse buildPartial() { + datacatalog.Datacatalog.AddTagResponse result = new datacatalog.Datacatalog.AddTagResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.AddTagResponse) { + return mergeFrom((datacatalog.Datacatalog.AddTagResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.AddTagResponse other) { + if (other == datacatalog.Datacatalog.AddTagResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.AddTagResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.AddTagResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.AddTagResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.AddTagResponse) + private static final datacatalog.Datacatalog.AddTagResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.AddTagResponse(); + } + + public static datacatalog.Datacatalog.AddTagResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddTagResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddTagResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.AddTagResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListArtifactsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListArtifactsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Use a datasetID for which you want to retrieve the artifacts
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + *
+     * Use a datasetID for which you want to retrieve the artifacts
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + *
+     * Use a datasetID for which you want to retrieve the artifacts
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + boolean hasFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + datacatalog.Datacatalog.FilterExpression getFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder(); + + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + boolean hasPagination(); + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + datacatalog.Datacatalog.PaginationOptions getPagination(); + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder(); + } + /** + *
+   * List the artifacts that belong to the Dataset, optionally filtered using filtered expression.
+   * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsRequest} + */ + public static final class ListArtifactsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListArtifactsRequest) + ListArtifactsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListArtifactsRequest.newBuilder() to construct. + private ListArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListArtifactsRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListArtifactsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + datacatalog.Datacatalog.FilterExpression.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = input.readMessage(datacatalog.Datacatalog.FilterExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + datacatalog.Datacatalog.PaginationOptions.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(datacatalog.Datacatalog.PaginationOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsRequest.class, datacatalog.Datacatalog.ListArtifactsRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + *
+     * Use a datasetID for which you want to retrieve the artifacts
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + *
+     * Use a datasetID for which you want to retrieve the artifacts
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + *
+     * Use a datasetID for which you want to retrieve the artifacts
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int FILTER_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.FilterExpression filter_; + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public boolean hasFilter() { + return filter_ != null; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + public static final int PAGINATION_FIELD_NUMBER = 3; + private datacatalog.Datacatalog.PaginationOptions pagination_; + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public boolean hasPagination() { + return pagination_ != null; + } + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + /** + *
+     * Pagination options to get a page of artifacts
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + return getPagination(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (filter_ != null) { + output.writeMessage(2, getFilter()); + } + if (pagination_ != null) { + output.writeMessage(3, getPagination()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFilter()); + } + if (pagination_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPagination()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ListArtifactsRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListArtifactsRequest other = (datacatalog.Datacatalog.ListArtifactsRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ListArtifactsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * List the artifacts that belong to the Dataset, optionally filtered using filtered expression.
+     * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListArtifactsRequest) + datacatalog.Datacatalog.ListArtifactsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsRequest.class, datacatalog.Datacatalog.ListArtifactsRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListArtifactsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListArtifactsRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsRequest build() { + datacatalog.Datacatalog.ListArtifactsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsRequest buildPartial() { + datacatalog.Datacatalog.ListArtifactsRequest result = new datacatalog.Datacatalog.ListArtifactsRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ListArtifactsRequest) { + return mergeFrom((datacatalog.Datacatalog.ListArtifactsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListArtifactsRequest other) { + if (other == datacatalog.Datacatalog.ListArtifactsRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ListArtifactsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListArtifactsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + *
+       * Use a datasetID for which you want to retrieve the artifacts
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + private datacatalog.Datacatalog.FilterExpression filter_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> filterBuilder_; + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder setFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder setFilter( + datacatalog.Datacatalog.FilterExpression.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder mergeFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + datacatalog.Datacatalog.FilterExpression.newBuilder(filter_).mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpression.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private datacatalog.Datacatalog.PaginationOptions pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> paginationBuilder_; + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public boolean hasPagination() { + return paginationBuilder_ != null || pagination_ != null; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder setPagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder setPagination( + datacatalog.Datacatalog.PaginationOptions.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder mergePagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + datacatalog.Datacatalog.PaginationOptions.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + + return this; + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptions.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + } + /** + *
+       * Pagination options to get a page of artifacts
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ListArtifactsRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsRequest) + private static final datacatalog.Datacatalog.ListArtifactsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListArtifactsRequest(); + } + + public static datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListArtifactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListArtifactsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListArtifactsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListArtifactsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + java.util.List + getArtifactsList(); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + datacatalog.Datacatalog.Artifact getArtifacts(int index); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + int getArtifactsCount(); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + java.util.List + getArtifactsOrBuilderList(); + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( + int index); + + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + java.lang.String getNextToken(); + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + com.google.protobuf.ByteString + getNextTokenBytes(); + } + /** + *
+   * Response to list artifacts
+   * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsResponse} + */ + public static final class ListArtifactsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListArtifactsResponse) + ListArtifactsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListArtifactsResponse.newBuilder() to construct. + private ListArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListArtifactsResponse() { + artifacts_ = java.util.Collections.emptyList(); + nextToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListArtifactsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + artifacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + artifacts_.add( + input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsResponse.class, datacatalog.Datacatalog.ListArtifactsResponse.Builder.class); + } + + private int bitField0_; + public static final int ARTIFACTS_FIELD_NUMBER = 1; + private java.util.List artifacts_; + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List getArtifactsList() { + return artifacts_; + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public int getArtifactsCount() { + return artifacts_.size(); + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifacts(int index) { + return artifacts_.get(index); + } + /** + *
+     * The list of artifacts
+     * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( + int index) { + return artifacts_.get(index); + } + + public static final int NEXT_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextToken_; + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } + } + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < artifacts_.size(); i++) { + output.writeMessage(1, artifacts_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < artifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, artifacts_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ListArtifactsResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListArtifactsResponse other = (datacatalog.Datacatalog.ListArtifactsResponse) obj; + + if (!getArtifactsList() + .equals(other.getArtifactsList())) return false; + if (!getNextToken() + .equals(other.getNextToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getArtifactsCount() > 0) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifactsList().hashCode(); + } + hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ListArtifactsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to list artifacts
+     * 
+ * + * Protobuf type {@code datacatalog.ListArtifactsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListArtifactsResponse) + datacatalog.Datacatalog.ListArtifactsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListArtifactsResponse.class, datacatalog.Datacatalog.ListArtifactsResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListArtifactsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getArtifactsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + artifactsBuilder_.clear(); + } + nextToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListArtifactsResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsResponse build() { + datacatalog.Datacatalog.ListArtifactsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsResponse buildPartial() { + datacatalog.Datacatalog.ListArtifactsResponse result = new datacatalog.Datacatalog.ListArtifactsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (artifactsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.artifacts_ = artifacts_; + } else { + result.artifacts_ = artifactsBuilder_.build(); + } + result.nextToken_ = nextToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ListArtifactsResponse) { + return mergeFrom((datacatalog.Datacatalog.ListArtifactsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListArtifactsResponse other) { + if (other == datacatalog.Datacatalog.ListArtifactsResponse.getDefaultInstance()) return this; + if (artifactsBuilder_ == null) { + if (!other.artifacts_.isEmpty()) { + if (artifacts_.isEmpty()) { + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArtifactsIsMutable(); + artifacts_.addAll(other.artifacts_); + } + onChanged(); + } + } else { + if (!other.artifacts_.isEmpty()) { + if (artifactsBuilder_.isEmpty()) { + artifactsBuilder_.dispose(); + artifactsBuilder_ = null; + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000001); + artifactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getArtifactsFieldBuilder() : null; + } else { + artifactsBuilder_.addAllMessages(other.artifacts_); + } + } + } + if (!other.getNextToken().isEmpty()) { + nextToken_ = other.nextToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ListArtifactsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListArtifactsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List artifacts_ = + java.util.Collections.emptyList(); + private void ensureArtifactsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + artifacts_ = new java.util.ArrayList(artifacts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactsBuilder_; + + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); + } else { + return artifactsBuilder_.getCount(); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder setArtifacts( + int index, datacatalog.Datacatalog.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.set(index, value); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder setArtifacts( + int index, datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts(datacatalog.Datacatalog.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(value); + onChanged(); + } else { + artifactsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts( + int index, datacatalog.Datacatalog.Artifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts( + datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addArtifacts( + int index, datacatalog.Datacatalog.Artifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder addAllArtifacts( + java.lang.Iterable values) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, artifacts_); + onChanged(); + } else { + artifactsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + artifactsBuilder_.clear(); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); + } else { + artifactsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder getArtifactsBuilder( + int index) { + return getArtifactsFieldBuilder().getBuilder(index); + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( + int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); } else { + return artifactsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifacts_); + } + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder addArtifactsBuilder() { + return getArtifactsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Artifact.getDefaultInstance()); + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public datacatalog.Datacatalog.Artifact.Builder addArtifactsBuilder( + int index) { + return getArtifactsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Artifact.getDefaultInstance()); + } + /** + *
+       * The list of artifacts
+       * 
+ * + * repeated .datacatalog.Artifact artifacts = 1; + */ + public java.util.List + getArtifactsBuilderList() { + return getArtifactsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( + artifacts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + private java.lang.Object nextToken_ = ""; + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextToken_ = value; + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder clearNextToken() { + + nextToken_ = getDefaultInstance().getNextToken(); + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ListArtifactsResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsResponse) + private static final datacatalog.Datacatalog.ListArtifactsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListArtifactsResponse(); + } + + public static datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListArtifactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListArtifactsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListDatasetsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListDatasetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + boolean hasFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + datacatalog.Datacatalog.FilterExpression getFilter(); + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder(); + + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + boolean hasPagination(); + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + datacatalog.Datacatalog.PaginationOptions getPagination(); + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder(); + } + /** + *
+   * List the datasets for the given query
+   * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsRequest} + */ + public static final class ListDatasetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListDatasetsRequest) + ListDatasetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetsRequest.newBuilder() to construct. + private ListDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDatasetsRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListDatasetsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.FilterExpression.Builder subBuilder = null; + if (filter_ != null) { + subBuilder = filter_.toBuilder(); + } + filter_ = input.readMessage(datacatalog.Datacatalog.FilterExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filter_); + filter_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + datacatalog.Datacatalog.PaginationOptions.Builder subBuilder = null; + if (pagination_ != null) { + subBuilder = pagination_.toBuilder(); + } + pagination_ = input.readMessage(datacatalog.Datacatalog.PaginationOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pagination_); + pagination_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsRequest.class, datacatalog.Datacatalog.ListDatasetsRequest.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.FilterExpression filter_; + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public boolean hasFilter() { + return filter_ != null; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + /** + *
+     * Apply the filter expression to this query
+     * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + return getFilter(); + } + + public static final int PAGINATION_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.PaginationOptions pagination_; + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public boolean hasPagination() { + return pagination_ != null; + } + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + /** + *
+     * Pagination options to get a page of datasets
+     * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + return getPagination(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (filter_ != null) { + output.writeMessage(1, getFilter()); + } + if (pagination_ != null) { + output.writeMessage(2, getPagination()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFilter()); + } + if (pagination_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPagination()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ListDatasetsRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListDatasetsRequest other = (datacatalog.Datacatalog.ListDatasetsRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ListDatasetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * List the datasets for the given query
+     * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListDatasetsRequest) + datacatalog.Datacatalog.ListDatasetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsRequest.class, datacatalog.Datacatalog.ListDatasetsRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListDatasetsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (filterBuilder_ == null) { + filter_ = null; + } else { + filter_ = null; + filterBuilder_ = null; + } + if (paginationBuilder_ == null) { + pagination_ = null; + } else { + pagination_ = null; + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListDatasetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsRequest build() { + datacatalog.Datacatalog.ListDatasetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsRequest buildPartial() { + datacatalog.Datacatalog.ListDatasetsRequest result = new datacatalog.Datacatalog.ListDatasetsRequest(this); + if (filterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + if (paginationBuilder_ == null) { + result.pagination_ = pagination_; + } else { + result.pagination_ = paginationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ListDatasetsRequest) { + return mergeFrom((datacatalog.Datacatalog.ListDatasetsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListDatasetsRequest other) { + if (other == datacatalog.Datacatalog.ListDatasetsRequest.getDefaultInstance()) return this; + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ListDatasetsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListDatasetsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.FilterExpression filter_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> filterBuilder_; + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public boolean hasFilter() { + return filterBuilder_ != null || filter_ != null; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpression getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder setFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder setFilter( + datacatalog.Datacatalog.FilterExpression.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder mergeFilter(datacatalog.Datacatalog.FilterExpression value) { + if (filterBuilder_ == null) { + if (filter_ != null) { + filter_ = + datacatalog.Datacatalog.FilterExpression.newBuilder(filter_).mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + filterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = null; + onChanged(); + } else { + filter_ = null; + filterBuilder_ = null; + } + + return this; + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpression.Builder getFilterBuilder() { + + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; + } + } + /** + *
+       * Apply the filter expression to this query
+       * 
+ * + * .datacatalog.FilterExpression filter = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private datacatalog.Datacatalog.PaginationOptions pagination_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> paginationBuilder_; + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public boolean hasPagination() { + return paginationBuilder_ != null || pagination_ != null; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptions getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder setPagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + onChanged(); + } else { + paginationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder setPagination( + datacatalog.Datacatalog.PaginationOptions.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + onChanged(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder mergePagination(datacatalog.Datacatalog.PaginationOptions value) { + if (paginationBuilder_ == null) { + if (pagination_ != null) { + pagination_ = + datacatalog.Datacatalog.PaginationOptions.newBuilder(pagination_).mergeFrom(value).buildPartial(); + } else { + pagination_ = value; + } + onChanged(); + } else { + paginationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public Builder clearPagination() { + if (paginationBuilder_ == null) { + pagination_ = null; + onChanged(); + } else { + pagination_ = null; + paginationBuilder_ = null; + } + + return this; + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptions.Builder getPaginationBuilder() { + + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; + } + } + /** + *
+       * Pagination options to get a page of datasets
+       * 
+ * + * .datacatalog.PaginationOptions pagination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ListDatasetsRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsRequest) + private static final datacatalog.Datacatalog.ListDatasetsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListDatasetsRequest(); + } + + public static datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListDatasetsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ListDatasetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + java.util.List + getDatasetsList(); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + datacatalog.Datacatalog.Dataset getDatasets(int index); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + int getDatasetsCount(); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + java.util.List + getDatasetsOrBuilderList(); + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( + int index); + + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + java.lang.String getNextToken(); + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + com.google.protobuf.ByteString + getNextTokenBytes(); + } + /** + *
+   * List the datasets response with token for next pagination
+   * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsResponse} + */ + public static final class ListDatasetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ListDatasetsResponse) + ListDatasetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetsResponse.newBuilder() to construct. + private ListDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDatasetsResponse() { + datasets_ = java.util.Collections.emptyList(); + nextToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListDatasetsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + datasets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + datasets_.add( + input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + datasets_ = java.util.Collections.unmodifiableList(datasets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsResponse.class, datacatalog.Datacatalog.ListDatasetsResponse.Builder.class); + } + + private int bitField0_; + public static final int DATASETS_FIELD_NUMBER = 1; + private java.util.List datasets_; + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List getDatasetsList() { + return datasets_; + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List + getDatasetsOrBuilderList() { + return datasets_; + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public int getDatasetsCount() { + return datasets_.size(); + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset getDatasets(int index) { + return datasets_.get(index); + } + /** + *
+     * The list of datasets
+     * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( + int index) { + return datasets_.get(index); + } + + public static final int NEXT_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextToken_; + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } + } + /** + *
+     * Token to use to request the next page, pass this into the next requests PaginationOptions
+     * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < datasets_.size(); i++) { + output.writeMessage(1, datasets_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < datasets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, datasets_.get(i)); + } + if (!getNextTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ListDatasetsResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ListDatasetsResponse other = (datacatalog.Datacatalog.ListDatasetsResponse) obj; + + if (!getDatasetsList() + .equals(other.getDatasetsList())) return false; + if (!getNextToken() + .equals(other.getNextToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDatasetsCount() > 0) { + hash = (37 * hash) + DATASETS_FIELD_NUMBER; + hash = (53 * hash) + getDatasetsList().hashCode(); + } + hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ListDatasetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * List the datasets response with token for next pagination
+     * 
+ * + * Protobuf type {@code datacatalog.ListDatasetsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ListDatasetsResponse) + datacatalog.Datacatalog.ListDatasetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ListDatasetsResponse.class, datacatalog.Datacatalog.ListDatasetsResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ListDatasetsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDatasetsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetsBuilder_ == null) { + datasets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + datasetsBuilder_.clear(); + } + nextToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.ListDatasetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsResponse build() { + datacatalog.Datacatalog.ListDatasetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsResponse buildPartial() { + datacatalog.Datacatalog.ListDatasetsResponse result = new datacatalog.Datacatalog.ListDatasetsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (datasetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + datasets_ = java.util.Collections.unmodifiableList(datasets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.datasets_ = datasets_; + } else { + result.datasets_ = datasetsBuilder_.build(); + } + result.nextToken_ = nextToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ListDatasetsResponse) { + return mergeFrom((datacatalog.Datacatalog.ListDatasetsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ListDatasetsResponse other) { + if (other == datacatalog.Datacatalog.ListDatasetsResponse.getDefaultInstance()) return this; + if (datasetsBuilder_ == null) { + if (!other.datasets_.isEmpty()) { + if (datasets_.isEmpty()) { + datasets_ = other.datasets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatasetsIsMutable(); + datasets_.addAll(other.datasets_); + } + onChanged(); + } + } else { + if (!other.datasets_.isEmpty()) { + if (datasetsBuilder_.isEmpty()) { + datasetsBuilder_.dispose(); + datasetsBuilder_ = null; + datasets_ = other.datasets_; + bitField0_ = (bitField0_ & ~0x00000001); + datasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDatasetsFieldBuilder() : null; + } else { + datasetsBuilder_.addAllMessages(other.datasets_); + } + } + } + if (!other.getNextToken().isEmpty()) { + nextToken_ = other.nextToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ListDatasetsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ListDatasetsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List datasets_ = + java.util.Collections.emptyList(); + private void ensureDatasetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + datasets_ = new java.util.ArrayList(datasets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetsBuilder_; + + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List getDatasetsList() { + if (datasetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(datasets_); + } else { + return datasetsBuilder_.getMessageList(); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public int getDatasetsCount() { + if (datasetsBuilder_ == null) { + return datasets_.size(); + } else { + return datasetsBuilder_.getCount(); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset getDatasets(int index) { + if (datasetsBuilder_ == null) { + return datasets_.get(index); + } else { + return datasetsBuilder_.getMessage(index); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder setDatasets( + int index, datacatalog.Datacatalog.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.set(index, value); + onChanged(); + } else { + datasetsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder setDatasets( + int index, datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.set(index, builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets(datacatalog.Datacatalog.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.add(value); + onChanged(); + } else { + datasetsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets( + int index, datacatalog.Datacatalog.Dataset value) { + if (datasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetsIsMutable(); + datasets_.add(index, value); + onChanged(); + } else { + datasetsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets( + datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.add(builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addDatasets( + int index, datacatalog.Datacatalog.Dataset.Builder builderForValue) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.add(index, builderForValue.build()); + onChanged(); + } else { + datasetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder addAllDatasets( + java.lang.Iterable values) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, datasets_); + onChanged(); + } else { + datasetsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder clearDatasets() { + if (datasetsBuilder_ == null) { + datasets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + datasetsBuilder_.clear(); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public Builder removeDatasets(int index) { + if (datasetsBuilder_ == null) { + ensureDatasetsIsMutable(); + datasets_.remove(index); + onChanged(); + } else { + datasetsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder getDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().getBuilder(index); + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( + int index) { + if (datasetsBuilder_ == null) { + return datasets_.get(index); } else { + return datasetsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List + getDatasetsOrBuilderList() { + if (datasetsBuilder_ != null) { + return datasetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(datasets_); + } + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder addDatasetsBuilder() { + return getDatasetsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Dataset.getDefaultInstance()); + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public datacatalog.Datacatalog.Dataset.Builder addDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Dataset.getDefaultInstance()); + } + /** + *
+       * The list of datasets
+       * 
+ * + * repeated .datacatalog.Dataset datasets = 1; + */ + public java.util.List + getDatasetsBuilderList() { + return getDatasetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> + getDatasetsFieldBuilder() { + if (datasetsBuilder_ == null) { + datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( + datasets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + datasets_ = null; + } + return datasetsBuilder_; + } + + private java.lang.Object nextToken_ = ""; + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public java.lang.String getNextToken() { + java.lang.Object ref = nextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public com.google.protobuf.ByteString + getNextTokenBytes() { + java.lang.Object ref = nextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextToken_ = value; + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder clearNextToken() { + + nextToken_ = getDefaultInstance().getNextToken(); + onChanged(); + return this; + } + /** + *
+       * Token to use to request the next page, pass this into the next requests PaginationOptions
+       * 
+ * + * string next_token = 2; + */ + public Builder setNextTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ListDatasetsResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsResponse) + private static final datacatalog.Datacatalog.ListDatasetsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListDatasetsResponse(); + } + + public static datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDatasetsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateArtifactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.UpdateArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + boolean hasDataset(); + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + * string artifact_id = 2; + */ + java.lang.String getArtifactId(); + /** + * string artifact_id = 2; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + /** + * string tag_name = 3; + */ + java.lang.String getTagName(); + /** + * string tag_name = 3; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + java.util.List + getDataList(); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + datacatalog.Datacatalog.ArtifactData getData(int index); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + int getDataCount(); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + java.util.List + getDataOrBuilderList(); + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index); + + public datacatalog.Datacatalog.UpdateArtifactRequest.QueryHandleCase getQueryHandleCase(); + } + /** + *
+   * Request message for updating an Artifact and overwriting its associated ArtifactData.
+   * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactRequest} + */ + public static final class UpdateArtifactRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.UpdateArtifactRequest) + UpdateArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateArtifactRequest.newBuilder() to construct. + private UpdateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateArtifactRequest() { + data_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateArtifactRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 2; + queryHandle_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + queryHandleCase_ = 3; + queryHandle_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + data_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + data_.add( + input.readMessage(datacatalog.Datacatalog.ArtifactData.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactRequest.class, datacatalog.Datacatalog.UpdateArtifactRequest.Builder.class); + } + + private int bitField0_; + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public enum QueryHandleCase + implements com.google.protobuf.Internal.EnumLite { + ARTIFACT_ID(2), + TAG_NAME(3), + QUERYHANDLE_NOT_SET(0); + private final int value; + private QueryHandleCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryHandleCase valueOf(int value) { + return forNumber(value); + } + + public static QueryHandleCase forNumber(int value) { + switch (value) { + case 2: return ARTIFACT_ID; + case 3: return TAG_NAME; + case 0: return QUERYHANDLE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + *
+     * ID of dataset the artifact is associated with
+     * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 2; + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_NAME_FIELD_NUMBER = 3; + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 4; + private java.util.List data_; + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List getDataList() { + return data_; + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List + getDataOrBuilderList() { + return data_; + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public int getDataCount() { + return data_.size(); + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + return data_.get(index); + } + /** + *
+     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+     * ArtifactData entries will be removed from the underlying blob storage and database.
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + return data_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (queryHandleCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryHandle_); + } + if (queryHandleCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryHandle_); + } + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(4, data_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDataset()); + } + if (queryHandleCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryHandle_); + } + if (queryHandleCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryHandle_); + } + for (int i = 0; i < data_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, data_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.UpdateArtifactRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.UpdateArtifactRequest other = (datacatalog.Datacatalog.UpdateArtifactRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!getDataList() + .equals(other.getDataList())) return false; + if (!getQueryHandleCase().equals(other.getQueryHandleCase())) return false; + switch (queryHandleCase_) { + case 2: + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + break; + case 3: + if (!getTagName() + .equals(other.getTagName())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + switch (queryHandleCase_) { + case 2: + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + break; + case 3: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.UpdateArtifactRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request message for updating an Artifact and overwriting its associated ArtifactData.
+     * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.UpdateArtifactRequest) + datacatalog.Datacatalog.UpdateArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactRequest.class, datacatalog.Datacatalog.UpdateArtifactRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.UpdateArtifactRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + dataBuilder_.clear(); + } + queryHandleCase_ = 0; + queryHandle_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.UpdateArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactRequest build() { + datacatalog.Datacatalog.UpdateArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactRequest buildPartial() { + datacatalog.Datacatalog.UpdateArtifactRequest result = new datacatalog.Datacatalog.UpdateArtifactRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (queryHandleCase_ == 2) { + result.queryHandle_ = queryHandle_; + } + if (queryHandleCase_ == 3) { + result.queryHandle_ = queryHandle_; + } + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.queryHandleCase_ = queryHandleCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.UpdateArtifactRequest) { + return mergeFrom((datacatalog.Datacatalog.UpdateArtifactRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.UpdateArtifactRequest other) { + if (other == datacatalog.Datacatalog.UpdateArtifactRequest.getDefaultInstance()) return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000008); + dataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataFieldBuilder() : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } + } + } + switch (other.getQueryHandleCase()) { + case ARTIFACT_ID: { + queryHandleCase_ = 2; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case TAG_NAME: { + queryHandleCase_ = 3; + queryHandle_ = other.queryHandle_; + onChanged(); + break; + } + case QUERYHANDLE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.UpdateArtifactRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.UpdateArtifactRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int queryHandleCase_ = 0; + private java.lang.Object queryHandle_; + public QueryHandleCase + getQueryHandleCase() { + return QueryHandleCase.forNumber( + queryHandleCase_); + } + + public Builder clearQueryHandle() { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + *
+       * ID of dataset the artifact is associated with
+       * 
+ * + * .datacatalog.DatasetID dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + /** + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 2) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 2) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 2) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string artifact_id = 2; + */ + public Builder clearArtifactId() { + if (queryHandleCase_ == 2) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string artifact_id = 2; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 2; + queryHandle_ = value; + onChanged(); + return this; + } + + /** + * string tag_name = 3; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryHandleCase_ == 3) { + queryHandle_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 3; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (queryHandleCase_ == 3) { + ref = queryHandle_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (queryHandleCase_ == 3) { + queryHandle_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 3; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryHandleCase_ = 3; + queryHandle_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 3; + */ + public Builder clearTagName() { + if (queryHandleCase_ == 3) { + queryHandleCase_ = 0; + queryHandle_ = null; + onChanged(); + } + return this; + } + /** + * string tag_name = 3; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryHandleCase_ = 3; + queryHandle_ = value; + onChanged(); + return this; + } + + private java.util.List data_ = + java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> dataBuilder_; + + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List getDataList() { + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public int getDataCount() { + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData(datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData( + datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder addAllData( + java.lang.Iterable values) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + dataBuilder_.clear(); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData.Builder getDataBuilder( + int index) { + return getDataFieldBuilder().getBuilder(index); + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder() { + return getDataFieldBuilder().addBuilder( + datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder( + int index) { + return getDataFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + *
+       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
+       * ArtifactData entries will be removed from the underlying blob storage and database.
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 4; + */ + public java.util.List + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder>( + data_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.UpdateArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactRequest) + private static final datacatalog.Datacatalog.UpdateArtifactRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.UpdateArtifactRequest(); + } + + public static datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateArtifactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateArtifactRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.UpdateArtifactResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique ID of the artifact updated
+     * 
+ * + * string artifact_id = 1; + */ + java.lang.String getArtifactId(); + /** + *
+     * The unique ID of the artifact updated
+     * 
+ * + * string artifact_id = 1; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + } + /** + *
+   * Response message for updating an Artifact.
+   * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactResponse} + */ + public static final class UpdateArtifactResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.UpdateArtifactResponse) + UpdateArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateArtifactResponse.newBuilder() to construct. + private UpdateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateArtifactResponse() { + artifactId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateArtifactResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + artifactId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactResponse.class, datacatalog.Datacatalog.UpdateArtifactResponse.Builder.class); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object artifactId_; + /** + *
+     * The unique ID of the artifact updated
+     * 
+ * + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } + } + /** + *
+     * The unique ID of the artifact updated
+     * 
+ * + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getArtifactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, artifactId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getArtifactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, artifactId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.UpdateArtifactResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.UpdateArtifactResponse other = (datacatalog.Datacatalog.UpdateArtifactResponse) obj; + + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.UpdateArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response message for updating an Artifact.
+     * 
+ * + * Protobuf type {@code datacatalog.UpdateArtifactResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.UpdateArtifactResponse) + datacatalog.Datacatalog.UpdateArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.UpdateArtifactResponse.class, datacatalog.Datacatalog.UpdateArtifactResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.UpdateArtifactResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + artifactId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.UpdateArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactResponse build() { + datacatalog.Datacatalog.UpdateArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactResponse buildPartial() { + datacatalog.Datacatalog.UpdateArtifactResponse result = new datacatalog.Datacatalog.UpdateArtifactResponse(this); + result.artifactId_ = artifactId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.UpdateArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.UpdateArtifactResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.UpdateArtifactResponse other) { + if (other == datacatalog.Datacatalog.UpdateArtifactResponse.getDefaultInstance()) return this; + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.UpdateArtifactResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.UpdateArtifactResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object artifactId_ = ""; + /** + *
+       * The unique ID of the artifact updated
+       * 
+ * + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique ID of the artifact updated
+       * 
+ * + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique ID of the artifact updated
+       * 
+ * + * string artifact_id = 1; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactId_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique ID of the artifact updated
+       * 
+ * + * string artifact_id = 1; + */ + public Builder clearArtifactId() { + + artifactId_ = getDefaultInstance().getArtifactId(); + onChanged(); + return this; + } + /** + *
+       * The unique ID of the artifact updated
+       * 
+ * + * string artifact_id = 1; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.UpdateArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactResponse) + private static final datacatalog.Datacatalog.UpdateArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.UpdateArtifactResponse(); + } + + public static datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateArtifactResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReservationIDOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReservationID) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + boolean hasDatasetId(); + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetID getDatasetId(); + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder(); + + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + java.lang.String getTagName(); + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + } + /** + *
+   * ReservationID message that is composed of several string fields.
+   * 
+ * + * Protobuf type {@code datacatalog.ReservationID} + */ + public static final class ReservationID extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ReservationID) + ReservationIDOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReservationID.newBuilder() to construct. + private ReservationID(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReservationID() { + tagName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReservationID( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (datasetId_ != null) { + subBuilder = datasetId_.toBuilder(); + } + datasetId_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetId_); + datasetId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tagName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID datasetId_; + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetId_ != null; + } + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + return getDatasetId(); + } + + public static final int TAG_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object tagName_; + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagName_ = s; + return s; + } + } + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (datasetId_ != null) { + output.writeMessage(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ReservationID)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ReservationID other = (datacatalog.Datacatalog.ReservationID) obj; + + if (hasDatasetId() != other.hasDatasetId()) return false; + if (hasDatasetId()) { + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + } + if (!getTagName() + .equals(other.getTagName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetId()) { + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + } + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ReservationID parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReservationID parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReservationID parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReservationID parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReservationID parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReservationID parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReservationID parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReservationID parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ReservationID parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReservationID parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ReservationID parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReservationID parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ReservationID prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ReservationID message that is composed of several string fields.
+     * 
+ * + * Protobuf type {@code datacatalog.ReservationID} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ReservationID) + datacatalog.Datacatalog.ReservationIDOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ReservationID.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetIdBuilder_ == null) { + datasetId_ = null; + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + tagName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReservationID.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ReservationID build() { + datacatalog.Datacatalog.ReservationID result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReservationID buildPartial() { + datacatalog.Datacatalog.ReservationID result = new datacatalog.Datacatalog.ReservationID(this); + if (datasetIdBuilder_ == null) { + result.datasetId_ = datasetId_; + } else { + result.datasetId_ = datasetIdBuilder_.build(); + } + result.tagName_ = tagName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ReservationID) { + return mergeFrom((datacatalog.Datacatalog.ReservationID)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ReservationID other) { + if (other == datacatalog.Datacatalog.ReservationID.getDefaultInstance()) return this; + if (other.hasDatasetId()) { + mergeDatasetId(other.getDatasetId()); + } + if (!other.getTagName().isEmpty()) { + tagName_ = other.tagName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ReservationID parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ReservationID) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.DatasetID datasetId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetIdBuilder_; + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetIdBuilder_ != null || datasetId_ != null; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + if (datasetIdBuilder_ == null) { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } else { + return datasetIdBuilder_.getMessage(); + } + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + onChanged(); + } else { + datasetIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetIdBuilder_ == null) { + datasetId_ = builderForValue.build(); + onChanged(); + } else { + datasetIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder mergeDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (datasetId_ != null) { + datasetId_ = + datacatalog.Datacatalog.DatasetID.newBuilder(datasetId_).mergeFrom(value).buildPartial(); + } else { + datasetId_ = value; + } + onChanged(); + } else { + datasetIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder clearDatasetId() { + if (datasetIdBuilder_ == null) { + datasetId_ = null; + onChanged(); + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetIdBuilder() { + + onChanged(); + return getDatasetIdFieldBuilder().getBuilder(); + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + if (datasetIdBuilder_ != null) { + return datasetIdBuilder_.getMessageOrBuilder(); + } else { + return datasetId_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetIdFieldBuilder() { + if (datasetIdBuilder_ == null) { + datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDatasetId(), + getParentForChildren(), + isClean()); + datasetId_ = null; + } + return datasetIdBuilder_; + } + + private java.lang.Object tagName_ = ""; + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tagName_ = value; + onChanged(); + return this; + } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public Builder clearTagName() { + + tagName_ = getDefaultInstance().getTagName(); + onChanged(); + return this; + } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tagName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ReservationID) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ReservationID) + private static final datacatalog.Datacatalog.ReservationID DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReservationID(); + } + + public static datacatalog.Datacatalog.ReservationID getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationID parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReservationID(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrExtendReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + boolean hasReservationId(); + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + datacatalog.Datacatalog.ReservationID getReservationId(); + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); + + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + java.lang.String getOwnerId(); + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + boolean hasHeartbeatInterval(); + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + com.google.protobuf.Duration getHeartbeatInterval(); + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder(); + } + /** + *
+   * Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance.
+   * 
+ * + * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} + */ + public static final class GetOrExtendReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationRequest) + GetOrExtendReservationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrExtendReservationRequest.newBuilder() to construct. + private GetOrExtendReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOrExtendReservationRequest() { + ownerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOrExtendReservationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; + if (reservationId_ != null) { + subBuilder = reservationId_.toBuilder(); + } + reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservationId_); + reservationId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + case 26: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (heartbeatInterval_ != null) { + subBuilder = heartbeatInterval_.toBuilder(); + } + heartbeatInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(heartbeatInterval_); + heartbeatInterval_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); + } + + public static final int RESERVATION_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.ReservationID reservationId_; + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public boolean hasReservationId() { + return reservationId_ != null; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID getReservationId() { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + return getReservationId(); + } + + public static final int OWNER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object ownerId_; + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } + } + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration heartbeatInterval_; + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public boolean hasHeartbeatInterval() { + return heartbeatInterval_ != null; + } + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration getHeartbeatInterval() { + return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { + return getHeartbeatInterval(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reservationId_ != null) { + output.writeMessage(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); + } + if (heartbeatInterval_ != null) { + output.writeMessage(3, getHeartbeatInterval()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reservationId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); + } + if (heartbeatInterval_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHeartbeatInterval()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.GetOrExtendReservationRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetOrExtendReservationRequest other = (datacatalog.Datacatalog.GetOrExtendReservationRequest) obj; + + if (hasReservationId() != other.hasReservationId()) return false; + if (hasReservationId()) { + if (!getReservationId() + .equals(other.getReservationId())) return false; + } + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (hasHeartbeatInterval() != other.hasHeartbeatInterval()) return false; + if (hasHeartbeatInterval()) { + if (!getHeartbeatInterval() + .equals(other.getHeartbeatInterval())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReservationId()) { + hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getReservationId().hashCode(); + } + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + if (hasHeartbeatInterval()) { + hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getHeartbeatInterval().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.GetOrExtendReservationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance.
+     * 
+ * + * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationRequest) + datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetOrExtendReservationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (reservationIdBuilder_ == null) { + reservationId_ = null; + } else { + reservationId_ = null; + reservationIdBuilder_ = null; + } + ownerId_ = ""; + + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = null; + } else { + heartbeatInterval_ = null; + heartbeatIntervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationRequest build() { + datacatalog.Datacatalog.GetOrExtendReservationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationRequest buildPartial() { + datacatalog.Datacatalog.GetOrExtendReservationRequest result = new datacatalog.Datacatalog.GetOrExtendReservationRequest(this); + if (reservationIdBuilder_ == null) { + result.reservationId_ = reservationId_; + } else { + result.reservationId_ = reservationIdBuilder_.build(); + } + result.ownerId_ = ownerId_; + if (heartbeatIntervalBuilder_ == null) { + result.heartbeatInterval_ = heartbeatInterval_; + } else { + result.heartbeatInterval_ = heartbeatIntervalBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.GetOrExtendReservationRequest) { + return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationRequest other) { + if (other == datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance()) return this; + if (other.hasReservationId()) { + mergeReservationId(other.getReservationId()); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); + } + if (other.hasHeartbeatInterval()) { + mergeHeartbeatInterval(other.getHeartbeatInterval()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.GetOrExtendReservationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.ReservationID reservationId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public boolean hasReservationId() { + return reservationIdBuilder_ != null || reservationId_ != null; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID getReservationId() { + if (reservationIdBuilder_ == null) { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } else { + return reservationIdBuilder_.getMessage(); + } + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationId_ = value; + onChanged(); + } else { + reservationIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder setReservationId( + datacatalog.Datacatalog.ReservationID.Builder builderForValue) { + if (reservationIdBuilder_ == null) { + reservationId_ = builderForValue.build(); + onChanged(); + } else { + reservationIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (reservationId_ != null) { + reservationId_ = + datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); + } else { + reservationId_ = value; + } + onChanged(); + } else { + reservationIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder clearReservationId() { + if (reservationIdBuilder_ == null) { + reservationId_ = null; + onChanged(); + } else { + reservationId_ = null; + reservationIdBuilder_ = null; + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { + + onChanged(); + return getReservationIdFieldBuilder().getBuilder(); + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + if (reservationIdBuilder_ != null) { + return reservationIdBuilder_.getMessageOrBuilder(); + } else { + return reservationId_ == null ? + datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> + getReservationIdFieldBuilder() { + if (reservationIdBuilder_ == null) { + reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( + getReservationId(), + getParentForChildren(), + isClean()); + reservationId_ = null; + } + return reservationIdBuilder_; + } + + private java.lang.Object ownerId_ = ""; + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration heartbeatInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public boolean hasHeartbeatInterval() { + return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration getHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } else { + return heartbeatIntervalBuilder_.getMessage(); + } + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + heartbeatInterval_ = value; + onChanged(); + } else { + heartbeatIntervalBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = builderForValue.build(); + onChanged(); + } else { + heartbeatIntervalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (heartbeatInterval_ != null) { + heartbeatInterval_ = + com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); + } else { + heartbeatInterval_ = value; + } + onChanged(); + } else { + heartbeatIntervalBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder clearHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = null; + onChanged(); + } else { + heartbeatInterval_ = null; + heartbeatIntervalBuilder_ = null; + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { + + onChanged(); + return getHeartbeatIntervalFieldBuilder().getBuilder(); + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { + if (heartbeatIntervalBuilder_ != null) { + return heartbeatIntervalBuilder_.getMessageOrBuilder(); + } else { + return heartbeatInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getHeartbeatIntervalFieldBuilder() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getHeartbeatInterval(), + getParentForChildren(), + isClean()); + heartbeatInterval_ = null; + } + return heartbeatIntervalBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.GetOrExtendReservationRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationRequest) + private static final datacatalog.Datacatalog.GetOrExtendReservationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationRequest(); + } + + public static datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrExtendReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrExtendReservationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReservationOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Reservation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + boolean hasReservationId(); + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + datacatalog.Datacatalog.ReservationID getReservationId(); + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); + + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + java.lang.String getOwnerId(); + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + + /** + *
+     * Recommended heartbeat interval to extend reservation
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + boolean hasHeartbeatInterval(); + /** + *
+     * Recommended heartbeat interval to extend reservation
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + com.google.protobuf.Duration getHeartbeatInterval(); + /** + *
+     * Recommended heartbeat interval to extend reservation
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder(); + + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + boolean hasExpiresAt(); + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + com.google.protobuf.Timestamp getExpiresAt(); + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); + + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + boolean hasMetadata(); + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + datacatalog.Datacatalog.Metadata getMetadata(); + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
+   * 
+ * + * Protobuf type {@code datacatalog.Reservation} + */ + public static final class Reservation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Reservation) + ReservationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Reservation.newBuilder() to construct. + private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Reservation() { + ownerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Reservation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; + if (reservationId_ != null) { + subBuilder = reservationId_.toBuilder(); + } + reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservationId_); + reservationId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + case 26: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (heartbeatInterval_ != null) { + subBuilder = heartbeatInterval_.toBuilder(); + } + heartbeatInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(heartbeatInterval_); + heartbeatInterval_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiresAt_ != null) { + subBuilder = expiresAt_.toBuilder(); + } + expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresAt_); + expiresAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + datacatalog.Datacatalog.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); + } + + public static final int RESERVATION_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.ReservationID reservationId_; + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public boolean hasReservationId() { + return reservationId_ != null; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID getReservationId() { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + return getReservationId(); + } + + public static final int OWNER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object ownerId_; + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } + } + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration heartbeatInterval_; + /** + *
+     * Recommended heartbeat interval to extend reservation
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public boolean hasHeartbeatInterval() { + return heartbeatInterval_ != null; + } + /** + *
+     * Recommended heartbeat interval to extend reservation
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration getHeartbeatInterval() { + return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } + /** + *
+     * Recommended heartbeat interval to extend reservation
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { + return getHeartbeatInterval(); + } + + public static final int EXPIRES_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp expiresAt_; + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public boolean hasExpiresAt() { + return expiresAt_ != null; + } + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + return getExpiresAt(); + } + + public static final int METADATA_FIELD_NUMBER = 6; + private datacatalog.Datacatalog.Metadata metadata_; + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reservationId_ != null) { + output.writeMessage(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); + } + if (heartbeatInterval_ != null) { + output.writeMessage(3, getHeartbeatInterval()); + } + if (expiresAt_ != null) { + output.writeMessage(4, getExpiresAt()); + } + if (metadata_ != null) { + output.writeMessage(6, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reservationId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); + } + if (heartbeatInterval_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHeartbeatInterval()); + } + if (expiresAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpiresAt()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.Reservation)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Reservation other = (datacatalog.Datacatalog.Reservation) obj; + + if (hasReservationId() != other.hasReservationId()) return false; + if (hasReservationId()) { + if (!getReservationId() + .equals(other.getReservationId())) return false; + } + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (hasHeartbeatInterval() != other.hasHeartbeatInterval()) return false; + if (hasHeartbeatInterval()) { + if (!getHeartbeatInterval() + .equals(other.getHeartbeatInterval())) return false; + } + if (hasExpiresAt() != other.hasExpiresAt()) return false; + if (hasExpiresAt()) { + if (!getExpiresAt() + .equals(other.getExpiresAt())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReservationId()) { + hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getReservationId().hashCode(); + } + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + if (hasHeartbeatInterval()) { + hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getHeartbeatInterval().hashCode(); + } + if (hasExpiresAt()) { + hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; + hash = (53 * hash) + getExpiresAt().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Reservation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Reservation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Reservation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Reservation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Reservation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Reservation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Reservation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Reservation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Reservation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Reservation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Reservation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Reservation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.Reservation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
+     * 
+ * + * Protobuf type {@code datacatalog.Reservation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Reservation) + datacatalog.Datacatalog.ReservationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Reservation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (reservationIdBuilder_ == null) { + reservationId_ = null; + } else { + reservationId_ = null; + reservationIdBuilder_ = null; + } + ownerId_ = ""; + + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = null; + } else { + heartbeatInterval_ = null; + heartbeatIntervalBuilder_ = null; + } + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Reservation getDefaultInstanceForType() { + return datacatalog.Datacatalog.Reservation.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Reservation build() { + datacatalog.Datacatalog.Reservation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Reservation buildPartial() { + datacatalog.Datacatalog.Reservation result = new datacatalog.Datacatalog.Reservation(this); + if (reservationIdBuilder_ == null) { + result.reservationId_ = reservationId_; + } else { + result.reservationId_ = reservationIdBuilder_.build(); + } + result.ownerId_ = ownerId_; + if (heartbeatIntervalBuilder_ == null) { + result.heartbeatInterval_ = heartbeatInterval_; + } else { + result.heartbeatInterval_ = heartbeatIntervalBuilder_.build(); + } + if (expiresAtBuilder_ == null) { + result.expiresAt_ = expiresAt_; + } else { + result.expiresAt_ = expiresAtBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.Reservation) { + return mergeFrom((datacatalog.Datacatalog.Reservation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Reservation other) { + if (other == datacatalog.Datacatalog.Reservation.getDefaultInstance()) return this; + if (other.hasReservationId()) { + mergeReservationId(other.getReservationId()); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); + } + if (other.hasHeartbeatInterval()) { + mergeHeartbeatInterval(other.getHeartbeatInterval()); + } + if (other.hasExpiresAt()) { + mergeExpiresAt(other.getExpiresAt()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.Reservation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Reservation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.ReservationID reservationId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public boolean hasReservationId() { + return reservationIdBuilder_ != null || reservationId_ != null; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID getReservationId() { + if (reservationIdBuilder_ == null) { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } else { + return reservationIdBuilder_.getMessage(); + } + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationId_ = value; + onChanged(); + } else { + reservationIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder setReservationId( + datacatalog.Datacatalog.ReservationID.Builder builderForValue) { + if (reservationIdBuilder_ == null) { + reservationId_ = builderForValue.build(); + onChanged(); + } else { + reservationIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (reservationId_ != null) { + reservationId_ = + datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); + } else { + reservationId_ = value; + } + onChanged(); + } else { + reservationIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder clearReservationId() { + if (reservationIdBuilder_ == null) { + reservationId_ = null; + onChanged(); + } else { + reservationId_ = null; + reservationIdBuilder_ = null; + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { + + onChanged(); + return getReservationIdFieldBuilder().getBuilder(); + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + if (reservationIdBuilder_ != null) { + return reservationIdBuilder_.getMessageOrBuilder(); + } else { + return reservationId_ == null ? + datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> + getReservationIdFieldBuilder() { + if (reservationIdBuilder_ == null) { + reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( + getReservationId(), + getParentForChildren(), + isClean()); + reservationId_ = null; + } + return reservationIdBuilder_; + } + + private java.lang.Object ownerId_ = ""; + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration heartbeatInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public boolean hasHeartbeatInterval() { + return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration getHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } else { + return heartbeatIntervalBuilder_.getMessage(); + } + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + heartbeatInterval_ = value; + onChanged(); + } else { + heartbeatIntervalBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = builderForValue.build(); + onChanged(); + } else { + heartbeatIntervalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (heartbeatInterval_ != null) { + heartbeatInterval_ = + com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); + } else { + heartbeatInterval_ = value; + } + onChanged(); + } else { + heartbeatIntervalBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder clearHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = null; + onChanged(); + } else { + heartbeatInterval_ = null; + heartbeatIntervalBuilder_ = null; + } + + return this; + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { + + onChanged(); + return getHeartbeatIntervalFieldBuilder().getBuilder(); + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { + if (heartbeatIntervalBuilder_ != null) { + return heartbeatIntervalBuilder_.getMessageOrBuilder(); + } else { + return heartbeatInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getHeartbeatIntervalFieldBuilder() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getHeartbeatInterval(), + getParentForChildren(), + isClean()); + heartbeatInterval_ = null; + } + return heartbeatIntervalBuilder_; + } + + private com.google.protobuf.Timestamp expiresAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public boolean hasExpiresAt() { + return expiresAtBuilder_ != null || expiresAt_ != null; + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + if (expiresAtBuilder_ == null) { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } else { + return expiresAtBuilder_.getMessage(); + } + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public Builder setExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresAt_ = value; + onChanged(); + } else { + expiresAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public Builder setExpiresAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expiresAtBuilder_ == null) { + expiresAt_ = builderForValue.build(); + onChanged(); + } else { + expiresAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (expiresAt_ != null) { + expiresAt_ = + com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); + } else { + expiresAt_ = value; + } + onChanged(); + } else { + expiresAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public Builder clearExpiresAt() { + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + onChanged(); + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { + + onChanged(); + return getExpiresAtFieldBuilder().getBuilder(); + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + if (expiresAtBuilder_ != null) { + return expiresAtBuilder_.getMessageOrBuilder(); + } else { + return expiresAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + } + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpiresAtFieldBuilder() { + if (expiresAtBuilder_ == null) { + expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiresAt(), + getParentForChildren(), + isClean()); + expiresAt_ = null; + } + return expiresAtBuilder_; + } + + private datacatalog.Datacatalog.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public Builder setMetadata( + datacatalog.Datacatalog.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.Reservation) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Reservation) + private static final datacatalog.Datacatalog.Reservation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Reservation(); + } + + public static datacatalog.Datacatalog.Reservation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Reservation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.Reservation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrExtendReservationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The reservation to be acquired or extended
+     * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + boolean hasReservation(); + /** + *
+     * The reservation to be acquired or extended
+     * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + datacatalog.Datacatalog.Reservation getReservation(); + /** + *
+     * The reservation to be acquired or extended
+     * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder(); + } + /** + *
+   * Response including either a newly minted reservation or the existing reservation
+   * 
+ * + * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} + */ + public static final class GetOrExtendReservationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationResponse) + GetOrExtendReservationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrExtendReservationResponse.newBuilder() to construct. + private GetOrExtendReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOrExtendReservationResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOrExtendReservationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.Reservation.Builder subBuilder = null; + if (reservation_ != null) { + subBuilder = reservation_.toBuilder(); + } + reservation_ = input.readMessage(datacatalog.Datacatalog.Reservation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservation_); + reservation_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); + } + + public static final int RESERVATION_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Reservation reservation_; + /** + *
+     * The reservation to be acquired or extended
+     * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public boolean hasReservation() { + return reservation_ != null; + } + /** + *
+     * The reservation to be acquired or extended
+     * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public datacatalog.Datacatalog.Reservation getReservation() { + return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; + } + /** + *
+     * The reservation to be acquired or extended
+     * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { + return getReservation(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reservation_ != null) { + output.writeMessage(1, getReservation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reservation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReservation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.GetOrExtendReservationResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.GetOrExtendReservationResponse other = (datacatalog.Datacatalog.GetOrExtendReservationResponse) obj; + + if (hasReservation() != other.hasReservation()) return false; + if (hasReservation()) { + if (!getReservation() + .equals(other.getReservation())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReservation()) { + hash = (37 * hash) + RESERVATION_FIELD_NUMBER; + hash = (53 * hash) + getReservation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.GetOrExtendReservationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response including either a newly minted reservation or the existing reservation
+     * 
+ * + * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationResponse) + datacatalog.Datacatalog.GetOrExtendReservationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.GetOrExtendReservationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (reservationBuilder_ == null) { + reservation_ = null; + } else { + reservation_ = null; + reservationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationResponse build() { + datacatalog.Datacatalog.GetOrExtendReservationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationResponse buildPartial() { + datacatalog.Datacatalog.GetOrExtendReservationResponse result = new datacatalog.Datacatalog.GetOrExtendReservationResponse(this); + if (reservationBuilder_ == null) { + result.reservation_ = reservation_; + } else { + result.reservation_ = reservationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.GetOrExtendReservationResponse) { + return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationResponse other) { + if (other == datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance()) return this; + if (other.hasReservation()) { + mergeReservation(other.getReservation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.GetOrExtendReservationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.Reservation reservation_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> reservationBuilder_; + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public boolean hasReservation() { + return reservationBuilder_ != null || reservation_ != null; + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public datacatalog.Datacatalog.Reservation getReservation() { + if (reservationBuilder_ == null) { + return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; + } else { + return reservationBuilder_.getMessage(); + } + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public Builder setReservation(datacatalog.Datacatalog.Reservation value) { + if (reservationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservation_ = value; + onChanged(); + } else { + reservationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public Builder setReservation( + datacatalog.Datacatalog.Reservation.Builder builderForValue) { + if (reservationBuilder_ == null) { + reservation_ = builderForValue.build(); + onChanged(); + } else { + reservationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public Builder mergeReservation(datacatalog.Datacatalog.Reservation value) { + if (reservationBuilder_ == null) { + if (reservation_ != null) { + reservation_ = + datacatalog.Datacatalog.Reservation.newBuilder(reservation_).mergeFrom(value).buildPartial(); + } else { + reservation_ = value; + } + onChanged(); + } else { + reservationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public Builder clearReservation() { + if (reservationBuilder_ == null) { + reservation_ = null; + onChanged(); + } else { + reservation_ = null; + reservationBuilder_ = null; + } + + return this; + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public datacatalog.Datacatalog.Reservation.Builder getReservationBuilder() { + + onChanged(); + return getReservationFieldBuilder().getBuilder(); + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { + if (reservationBuilder_ != null) { + return reservationBuilder_.getMessageOrBuilder(); + } else { + return reservation_ == null ? + datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; + } + } + /** + *
+       * The reservation to be acquired or extended
+       * 
+ * + * .datacatalog.Reservation reservation = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> + getReservationFieldBuilder() { + if (reservationBuilder_ == null) { + reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder>( + getReservation(), + getParentForChildren(), + isClean()); + reservation_ = null; + } + return reservationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.GetOrExtendReservationResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationResponse) + private static final datacatalog.Datacatalog.GetOrExtendReservationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationResponse(); + } + + public static datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrExtendReservationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOrExtendReservationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReleaseReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + boolean hasReservationId(); + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + datacatalog.Datacatalog.ReservationID getReservationId(); + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); + + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + java.lang.String getOwnerId(); + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + } + /** + *
+   * Request to release reservation
+   * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationRequest} + */ + public static final class ReleaseReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationRequest) + ReleaseReservationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseReservationRequest.newBuilder() to construct. + private ReleaseReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReleaseReservationRequest() { + ownerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReleaseReservationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; + if (reservationId_ != null) { + subBuilder = reservationId_.toBuilder(); + } + reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservationId_); + reservationId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); + } + + public static final int RESERVATION_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.ReservationID reservationId_; + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public boolean hasReservationId() { + return reservationId_ != null; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID getReservationId() { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + return getReservationId(); + } + + public static final int OWNER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object ownerId_; + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } + } + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reservationId_ != null) { + output.writeMessage(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reservationId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ReleaseReservationRequest)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ReleaseReservationRequest other = (datacatalog.Datacatalog.ReleaseReservationRequest) obj; + + if (hasReservationId() != other.hasReservationId()) return false; + if (hasReservationId()) { + if (!getReservationId() + .equals(other.getReservationId())) return false; + } + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReservationId()) { + hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getReservationId().hashCode(); + } + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ReleaseReservationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to release reservation
+     * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationRequest) + datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ReleaseReservationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (reservationIdBuilder_ == null) { + reservationId_ = null; + } else { + reservationId_ = null; + reservationIdBuilder_ = null; + } + ownerId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationRequest build() { + datacatalog.Datacatalog.ReleaseReservationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationRequest buildPartial() { + datacatalog.Datacatalog.ReleaseReservationRequest result = new datacatalog.Datacatalog.ReleaseReservationRequest(this); + if (reservationIdBuilder_ == null) { + result.reservationId_ = reservationId_; + } else { + result.reservationId_ = reservationIdBuilder_.build(); + } + result.ownerId_ = ownerId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ReleaseReservationRequest) { + return mergeFrom((datacatalog.Datacatalog.ReleaseReservationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationRequest other) { + if (other == datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance()) return this; + if (other.hasReservationId()) { + mergeReservationId(other.getReservationId()); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ReleaseReservationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ReleaseReservationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private datacatalog.Datacatalog.ReservationID reservationId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public boolean hasReservationId() { + return reservationIdBuilder_ != null || reservationId_ != null; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID getReservationId() { + if (reservationIdBuilder_ == null) { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } else { + return reservationIdBuilder_.getMessage(); + } + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationId_ = value; + onChanged(); + } else { + reservationIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder setReservationId( + datacatalog.Datacatalog.ReservationID.Builder builderForValue) { + if (reservationIdBuilder_ == null) { + reservationId_ = builderForValue.build(); + onChanged(); + } else { + reservationIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (reservationId_ != null) { + reservationId_ = + datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); + } else { + reservationId_ = value; + } + onChanged(); + } else { + reservationIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public Builder clearReservationId() { + if (reservationIdBuilder_ == null) { + reservationId_ = null; + onChanged(); + } else { + reservationId_ = null; + reservationIdBuilder_ = null; + } + + return this; + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { + + onChanged(); + return getReservationIdFieldBuilder().getBuilder(); + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + if (reservationIdBuilder_ != null) { + return reservationIdBuilder_.getMessageOrBuilder(); + } else { + return reservationId_ == null ? + datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } + } + /** + *
+       * The unique ID for the reservation
+       * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> + getReservationIdFieldBuilder() { + if (reservationIdBuilder_ == null) { + reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( + getReservationId(), + getParentForChildren(), + isClean()); + reservationId_ = null; + } + return reservationIdBuilder_; + } + + private java.lang.Object ownerId_ = ""; + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ReleaseReservationRequest) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) + private static final datacatalog.Datacatalog.ReleaseReservationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationRequest(); + } + + public static datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseReservationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReleaseReservationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response to release reservation
+   * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationResponse} + */ + public static final class ReleaseReservationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationResponse) + ReleaseReservationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseReservationResponse.newBuilder() to construct. + private ReleaseReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReleaseReservationResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReleaseReservationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationResponse.class, datacatalog.Datacatalog.ReleaseReservationResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ReleaseReservationResponse)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ReleaseReservationResponse other = (datacatalog.Datacatalog.ReleaseReservationResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ReleaseReservationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to release reservation
+     * 
+ * + * Protobuf type {@code datacatalog.ReleaseReservationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationResponse) + datacatalog.Datacatalog.ReleaseReservationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ReleaseReservationResponse.class, datacatalog.Datacatalog.ReleaseReservationResponse.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ReleaseReservationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReleaseReservationResponse.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationResponse build() { + datacatalog.Datacatalog.ReleaseReservationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationResponse buildPartial() { + datacatalog.Datacatalog.ReleaseReservationResponse result = new datacatalog.Datacatalog.ReleaseReservationResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ReleaseReservationResponse) { + return mergeFrom((datacatalog.Datacatalog.ReleaseReservationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationResponse other) { + if (other == datacatalog.Datacatalog.ReleaseReservationResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ReleaseReservationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ReleaseReservationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ReleaseReservationResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationResponse) + private static final datacatalog.Datacatalog.ReleaseReservationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationResponse(); + } + + public static datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseReservationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReleaseReservationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DatasetOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Dataset) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.DatasetID id = 1; + */ + boolean hasId(); + /** + * .datacatalog.DatasetID id = 1; + */ + datacatalog.Datacatalog.DatasetID getId(); + /** + * .datacatalog.DatasetID id = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder(); + + /** + * .datacatalog.Metadata metadata = 2; + */ + boolean hasMetadata(); + /** + * .datacatalog.Metadata metadata = 2; + */ + datacatalog.Datacatalog.Metadata getMetadata(); + /** + * .datacatalog.Metadata metadata = 2; + */ + datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * repeated string partitionKeys = 3; + */ + java.util.List + getPartitionKeysList(); + /** + * repeated string partitionKeys = 3; + */ + int getPartitionKeysCount(); + /** + * repeated string partitionKeys = 3; + */ + java.lang.String getPartitionKeys(int index); + /** + * repeated string partitionKeys = 3; + */ + com.google.protobuf.ByteString + getPartitionKeysBytes(int index); + } + /** + *
+   * Dataset message. It is uniquely identified by DatasetID.
+   * 
+ * + * Protobuf type {@code datacatalog.Dataset} + */ + public static final class Dataset extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Dataset) + DatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Dataset.newBuilder() to construct. + private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Dataset() { + partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Dataset( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + datacatalog.Datacatalog.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + partitionKeys_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = partitionKeys_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Dataset.class, datacatalog.Datacatalog.Dataset.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID id_; + /** + * .datacatalog.DatasetID id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetID getId() { + return id_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.Metadata metadata_; + /** + * .datacatalog.Metadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int PARTITIONKEYS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList partitionKeys_; + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ProtocolStringList + getPartitionKeysList() { + return partitionKeys_; + } + /** + * repeated string partitionKeys = 3; + */ + public int getPartitionKeysCount() { + return partitionKeys_.size(); + } + /** + * repeated string partitionKeys = 3; + */ + public java.lang.String getPartitionKeys(int index) { + return partitionKeys_.get(index); + } + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ByteString + getPartitionKeysBytes(int index) { + return partitionKeys_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + for (int i = 0; i < partitionKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partitionKeys_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + { + int dataSize = 0; + for (int i = 0; i < partitionKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(partitionKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getPartitionKeysList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.Dataset)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Dataset other = (datacatalog.Datacatalog.Dataset) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getPartitionKeysList() + .equals(other.getPartitionKeysList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getPartitionKeysCount() > 0) { + hash = (37 * hash) + PARTITIONKEYS_FIELD_NUMBER; + hash = (53 * hash) + getPartitionKeysList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Dataset parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Dataset parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Dataset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.Dataset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Dataset message. It is uniquely identified by DatasetID.
+     * 
+ * + * Protobuf type {@code datacatalog.Dataset} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Dataset) + datacatalog.Datacatalog.DatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Dataset.class, datacatalog.Datacatalog.Dataset.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Dataset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Dataset getDefaultInstanceForType() { + return datacatalog.Datacatalog.Dataset.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Dataset build() { + datacatalog.Datacatalog.Dataset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Dataset buildPartial() { + datacatalog.Datacatalog.Dataset result = new datacatalog.Datacatalog.Dataset(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = partitionKeys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.partitionKeys_ = partitionKeys_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.Dataset) { + return mergeFrom((datacatalog.Datacatalog.Dataset)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Dataset other) { + if (other == datacatalog.Datacatalog.Dataset.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.partitionKeys_.isEmpty()) { + if (partitionKeys_.isEmpty()) { + partitionKeys_ = other.partitionKeys_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePartitionKeysIsMutable(); + partitionKeys_.addAll(other.partitionKeys_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.Dataset parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Dataset) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private datacatalog.Datacatalog.DatasetID id_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> idBuilder_; + /** + * .datacatalog.DatasetID id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetID getId() { + if (idBuilder_ == null) { + return id_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder setId(datacatalog.Datacatalog.DatasetID value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder setId( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder mergeId(datacatalog.Datacatalog.DatasetID value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + datacatalog.Datacatalog.DatasetID.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetID id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; + } + } + /** + * .datacatalog.DatasetID id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private datacatalog.Datacatalog.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; + /** + * .datacatalog.Metadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder setMetadata( + datacatalog.Datacatalog.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .datacatalog.Metadata metadata = 2; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + } + /** + * .datacatalog.Metadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.LazyStringList partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePartitionKeysIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + partitionKeys_ = new com.google.protobuf.LazyStringArrayList(partitionKeys_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ProtocolStringList + getPartitionKeysList() { + return partitionKeys_.getUnmodifiableView(); + } + /** + * repeated string partitionKeys = 3; + */ + public int getPartitionKeysCount() { + return partitionKeys_.size(); + } + /** + * repeated string partitionKeys = 3; + */ + public java.lang.String getPartitionKeys(int index) { + return partitionKeys_.get(index); + } + /** + * repeated string partitionKeys = 3; + */ + public com.google.protobuf.ByteString + getPartitionKeysBytes(int index) { + return partitionKeys_.getByteString(index); + } + /** + * repeated string partitionKeys = 3; + */ + public Builder setPartitionKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionKeysIsMutable(); + partitionKeys_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder addPartitionKeys( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionKeysIsMutable(); + partitionKeys_.add(value); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder addAllPartitionKeys( + java.lang.Iterable values) { + ensurePartitionKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitionKeys_); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder clearPartitionKeys() { + partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string partitionKeys = 3; + */ + public Builder addPartitionKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePartitionKeysIsMutable(); + partitionKeys_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.Dataset) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Dataset) + private static final datacatalog.Datacatalog.Dataset DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Dataset(); + } + + public static datacatalog.Datacatalog.Dataset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Dataset(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.Dataset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PartitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Partition) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + */ + java.lang.String getKey(); + /** + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string value = 2; + */ + java.lang.String getValue(); + /** + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair
+   * 
+ * + * Protobuf type {@code datacatalog.Partition} + */ + public static final class Partition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Partition) + PartitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Partition.newBuilder() to construct. + private Partition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Partition() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Partition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Partition.class, datacatalog.Datacatalog.Partition.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.Partition)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Partition other = (datacatalog.Datacatalog.Partition) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Partition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Partition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Partition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Partition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Partition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Partition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Partition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Partition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.Partition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair
+     * 
+ * + * Protobuf type {@code datacatalog.Partition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Partition) + datacatalog.Datacatalog.PartitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Partition.class, datacatalog.Datacatalog.Partition.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Partition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Partition getDefaultInstanceForType() { + return datacatalog.Datacatalog.Partition.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Partition build() { + datacatalog.Datacatalog.Partition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Partition buildPartial() { + datacatalog.Datacatalog.Partition result = new datacatalog.Datacatalog.Partition(this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.Partition) { + return mergeFrom((datacatalog.Datacatalog.Partition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Partition other) { + if (other == datacatalog.Datacatalog.Partition.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.Partition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Partition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.Partition) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Partition) + private static final datacatalog.Datacatalog.Partition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Partition(); + } + + public static datacatalog.Datacatalog.Partition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Partition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Partition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.Partition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DatasetIDOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.DatasetID) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * The name of the dataset
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * The name of the dataset
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + java.lang.String getVersion(); + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + java.lang.String getUUID(); + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + com.google.protobuf.ByteString + getUUIDBytes(); + } + /** + *
+   * DatasetID message that is composed of several string fields.
+   * 
+ * + * Protobuf type {@code datacatalog.DatasetID} + */ + public static final class DatasetID extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.DatasetID) + DatasetIDOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetID.newBuilder() to construct. + private DatasetID(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DatasetID() { + project_ = ""; + name_ = ""; + domain_ = ""; + version_ = ""; + uUID_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DatasetID( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + uUID_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetID.class, datacatalog.Datacatalog.DatasetID.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * The name of the project
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * The name of the dataset
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * The name of the dataset
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * The domain (eg. environment)
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private volatile java.lang.Object version_; + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     * Version of the data schema
+     * 
+ * + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UUID_FIELD_NUMBER = 5; + private volatile java.lang.Object uUID_; + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + public java.lang.String getUUID() { + java.lang.Object ref = uUID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uUID_ = s; + return s; + } + } + /** + *
+     * UUID for the dataset (if set the above fields are optional)
+     * 
+ * + * string UUID = 5; + */ + public com.google.protobuf.ByteString + getUUIDBytes() { + java.lang.Object ref = uUID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uUID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); + } + if (!getUUIDBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uUID_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); + } + if (!getUUIDBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uUID_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.DatasetID)) { + return super.equals(obj); + } + datacatalog.Datacatalog.DatasetID other = (datacatalog.Datacatalog.DatasetID) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getUUID() + .equals(other.getUUID())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUUID().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.DatasetID parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetID parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetID parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.DatasetID prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DatasetID message that is composed of several string fields.
+     * 
+ * + * Protobuf type {@code datacatalog.DatasetID} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.DatasetID) + datacatalog.Datacatalog.DatasetIDOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetID.class, datacatalog.Datacatalog.DatasetID.Builder.class); + } + + // Construct using datacatalog.Datacatalog.DatasetID.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + name_ = ""; + + domain_ = ""; + + version_ = ""; + + uUID_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetID getDefaultInstanceForType() { + return datacatalog.Datacatalog.DatasetID.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetID build() { + datacatalog.Datacatalog.DatasetID result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetID buildPartial() { + datacatalog.Datacatalog.DatasetID result = new datacatalog.Datacatalog.DatasetID(this); + result.project_ = project_; + result.name_ = name_; + result.domain_ = domain_; + result.version_ = version_; + result.uUID_ = uUID_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.DatasetID) { + return mergeFrom((datacatalog.Datacatalog.DatasetID)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.DatasetID other) { + if (other == datacatalog.Datacatalog.DatasetID.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getUUID().isEmpty()) { + uUID_ = other.uUID_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.DatasetID parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.DatasetID) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * The name of the project
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * The name of the dataset
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the dataset
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the dataset
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the dataset
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * The name of the dataset
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * The domain (eg. environment)
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Version of the data schema
+       * 
+ * + * string version = 4; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object uUID_ = ""; + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public java.lang.String getUUID() { + java.lang.Object ref = uUID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uUID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public com.google.protobuf.ByteString + getUUIDBytes() { + java.lang.Object ref = uUID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uUID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public Builder setUUID( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uUID_ = value; + onChanged(); + return this; + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public Builder clearUUID() { + + uUID_ = getDefaultInstance().getUUID(); + onChanged(); + return this; + } + /** + *
+       * UUID for the dataset (if set the above fields are optional)
+       * 
+ * + * string UUID = 5; + */ + public Builder setUUIDBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uUID_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.DatasetID) + } + + // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) + private static final datacatalog.Datacatalog.DatasetID DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.DatasetID(); + } + + public static datacatalog.Datacatalog.DatasetID getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetID parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatasetID(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Artifact) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique ID of the artifact
+     * 
+ * + * string id = 1; + */ + java.lang.String getId(); + /** + *
+     * The unique ID of the artifact
+     * 
+ * + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * The Dataset that the artifact belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + boolean hasDataset(); + /** + *
+     * The Dataset that the artifact belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + *
+     * The Dataset that the artifact belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + java.util.List + getDataList(); + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + datacatalog.Datacatalog.ArtifactData getData(int index); + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + int getDataCount(); + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + java.util.List + getDataOrBuilderList(); + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index); + + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + boolean hasMetadata(); + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + datacatalog.Datacatalog.Metadata getMetadata(); + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * repeated .datacatalog.Partition partitions = 5; + */ + java.util.List + getPartitionsList(); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + datacatalog.Datacatalog.Partition getPartitions(int index); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + int getPartitionsCount(); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + java.util.List + getPartitionsOrBuilderList(); + /** + * repeated .datacatalog.Partition partitions = 5; + */ + datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( + int index); + + /** + * repeated .datacatalog.Tag tags = 6; + */ + java.util.List + getTagsList(); + /** + * repeated .datacatalog.Tag tags = 6; + */ + datacatalog.Datacatalog.Tag getTags(int index); + /** + * repeated .datacatalog.Tag tags = 6; + */ + int getTagsCount(); + /** + * repeated .datacatalog.Tag tags = 6; + */ + java.util.List + getTagsOrBuilderList(); + /** + * repeated .datacatalog.Tag tags = 6; + */ + datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( + int index); + + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * Artifact message. It is composed of several string fields.
+   * 
+ * + * Protobuf type {@code datacatalog.Artifact} + */ + public static final class Artifact extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Artifact) + ArtifactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Artifact.newBuilder() to construct. + private Artifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Artifact() { + id_ = ""; + data_ = java.util.Collections.emptyList(); + partitions_ = java.util.Collections.emptyList(); + tags_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Artifact( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + data_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + data_.add( + input.readMessage(datacatalog.Datacatalog.ArtifactData.parser(), extensionRegistry)); + break; + } + case 34: { + datacatalog.Datacatalog.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + partitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + partitions_.add( + input.readMessage(datacatalog.Datacatalog.Partition.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + tags_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + tags_.add( + input.readMessage(datacatalog.Datacatalog.Tag.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + partitions_ = java.util.Collections.unmodifiableList(partitions_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + tags_ = java.util.Collections.unmodifiableList(tags_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Artifact.class, datacatalog.Datacatalog.Artifact.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * The unique ID of the artifact
+     * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * The unique ID of the artifact
+     * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_FIELD_NUMBER = 2; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + *
+     * The Dataset that the artifact belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + *
+     * The Dataset that the artifact belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + *
+     * The Dataset that the artifact belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int DATA_FIELD_NUMBER = 3; + private java.util.List data_; + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List getDataList() { + return data_; + } + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List + getDataOrBuilderList() { + return data_; + } + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public int getDataCount() { + return data_.size(); + } + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + return data_.get(index); + } + /** + *
+     * A list of data that is associated with the artifact
+     * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + return data_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 4; + private datacatalog.Datacatalog.Metadata metadata_; + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int PARTITIONS_FIELD_NUMBER = 5; + private java.util.List partitions_; + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List getPartitionsList() { + return partitions_; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List + getPartitionsOrBuilderList() { + return partitions_; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public int getPartitionsCount() { + return partitions_.size(); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition getPartitions(int index) { + return partitions_.get(index); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( + int index) { + return partitions_.get(index); + } + + public static final int TAGS_FIELD_NUMBER = 6; + private java.util.List tags_; + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List getTagsList() { + return tags_; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List + getTagsOrBuilderList() { + return tags_; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag getTags(int index) { + return tags_.get(index); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( + int index) { + return tags_.get(index); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * creation timestamp of artifact, autogenerated by service
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (dataset_ != null) { + output.writeMessage(2, getDataset()); + } + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(3, data_.get(i)); + } + if (metadata_ != null) { + output.writeMessage(4, getMetadata()); + } + for (int i = 0; i < partitions_.size(); i++) { + output.writeMessage(5, partitions_.get(i)); + } + for (int i = 0; i < tags_.size(); i++) { + output.writeMessage(6, tags_.get(i)); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDataset()); + } + for (int i = 0; i < data_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, data_.get(i)); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + for (int i = 0; i < partitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, partitions_.get(i)); + } + for (int i = 0; i < tags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tags_.get(i)); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.Artifact)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Artifact other = (datacatalog.Datacatalog.Artifact) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!getDataList() + .equals(other.getDataList())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getPartitionsList() + .equals(other.getPartitionsList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getPartitionsCount() > 0) { + hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; + hash = (53 * hash) + getPartitionsList().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Artifact parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Artifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Artifact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Artifact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Artifact parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Artifact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.Artifact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Artifact message. It is composed of several string fields.
+     * 
+ * + * Protobuf type {@code datacatalog.Artifact} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Artifact) + datacatalog.Datacatalog.ArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Artifact.class, datacatalog.Datacatalog.Artifact.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Artifact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDataFieldBuilder(); + getPartitionsFieldBuilder(); + getTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + dataBuilder_.clear(); + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (partitionsBuilder_ == null) { + partitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + partitionsBuilder_.clear(); + } + if (tagsBuilder_ == null) { + tags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + tagsBuilder_.clear(); + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { + return datacatalog.Datacatalog.Artifact.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Artifact build() { + datacatalog.Datacatalog.Artifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Artifact buildPartial() { + datacatalog.Datacatalog.Artifact result = new datacatalog.Datacatalog.Artifact(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (partitionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + partitions_ = java.util.Collections.unmodifiableList(partitions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.partitions_ = partitions_; + } else { + result.partitions_ = partitionsBuilder_.build(); + } + if (tagsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + tags_ = java.util.Collections.unmodifiableList(tags_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tags_ = tags_; + } else { + result.tags_ = tagsBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.Artifact) { + return mergeFrom((datacatalog.Datacatalog.Artifact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Artifact other) { + if (other == datacatalog.Datacatalog.Artifact.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000004); + dataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataFieldBuilder() : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } + } + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (partitionsBuilder_ == null) { + if (!other.partitions_.isEmpty()) { + if (partitions_.isEmpty()) { + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePartitionsIsMutable(); + partitions_.addAll(other.partitions_); + } + onChanged(); + } + } else { + if (!other.partitions_.isEmpty()) { + if (partitionsBuilder_.isEmpty()) { + partitionsBuilder_.dispose(); + partitionsBuilder_ = null; + partitions_ = other.partitions_; + bitField0_ = (bitField0_ & ~0x00000010); + partitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartitionsFieldBuilder() : null; + } else { + partitionsBuilder_.addAllMessages(other.partitions_); + } + } + } + if (tagsBuilder_ == null) { + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + } else { + if (!other.tags_.isEmpty()) { + if (tagsBuilder_.isEmpty()) { + tagsBuilder_.dispose(); + tagsBuilder_ = null; + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000020); + tagsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTagsFieldBuilder() : null; + } else { + tagsBuilder_.addAllMessages(other.tags_); + } + } + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.Artifact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Artifact) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * The unique ID of the artifact
+       * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique ID of the artifact
+       * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique ID of the artifact
+       * 
+ * + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique ID of the artifact
+       * 
+ * + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * The unique ID of the artifact
+       * 
+ * + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + *
+       * The Dataset that the artifact belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + private java.util.List data_ = + java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> dataBuilder_; + + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List getDataList() { + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public int getDataCount() { + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData getData(int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder setData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData(datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData( + datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addData( + int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder addAllData( + java.lang.Iterable values) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + dataBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData.Builder getDataBuilder( + int index) { + return getDataFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder() { + return getDataFieldBuilder().addBuilder( + datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder( + int index) { + return getDataFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); + } + /** + *
+       * A list of data that is associated with the artifact
+       * 
+ * + * repeated .datacatalog.ArtifactData data = 3; + */ + public java.util.List + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder>( + data_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + private datacatalog.Datacatalog.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public Builder setMetadata( + datacatalog.Datacatalog.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List partitions_ = + java.util.Collections.emptyList(); + private void ensurePartitionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + partitions_ = new java.util.ArrayList(partitions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder> partitionsBuilder_; + + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List getPartitionsList() { + if (partitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partitions_); + } else { + return partitionsBuilder_.getMessageList(); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public int getPartitionsCount() { + if (partitionsBuilder_ == null) { + return partitions_.size(); + } else { + return partitionsBuilder_.getCount(); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition getPartitions(int index) { + if (partitionsBuilder_ == null) { + return partitions_.get(index); + } else { + return partitionsBuilder_.getMessage(index); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder setPartitions( + int index, datacatalog.Datacatalog.Partition value) { + if (partitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionsIsMutable(); + partitions_.set(index, value); + onChanged(); + } else { + partitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder setPartitions( + int index, datacatalog.Datacatalog.Partition.Builder builderForValue) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.set(index, builderForValue.build()); + onChanged(); + } else { + partitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions(datacatalog.Datacatalog.Partition value) { + if (partitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionsIsMutable(); + partitions_.add(value); + onChanged(); + } else { + partitionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions( + int index, datacatalog.Datacatalog.Partition value) { + if (partitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartitionsIsMutable(); + partitions_.add(index, value); + onChanged(); + } else { + partitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions( + datacatalog.Datacatalog.Partition.Builder builderForValue) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.add(builderForValue.build()); + onChanged(); + } else { + partitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addPartitions( + int index, datacatalog.Datacatalog.Partition.Builder builderForValue) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.add(index, builderForValue.build()); + onChanged(); + } else { + partitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder addAllPartitions( + java.lang.Iterable values) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitions_); + onChanged(); + } else { + partitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder clearPartitions() { + if (partitionsBuilder_ == null) { + partitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + partitionsBuilder_.clear(); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public Builder removePartitions(int index) { + if (partitionsBuilder_ == null) { + ensurePartitionsIsMutable(); + partitions_.remove(index); + onChanged(); + } else { + partitionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition.Builder getPartitionsBuilder( + int index) { + return getPartitionsFieldBuilder().getBuilder(index); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( + int index) { + if (partitionsBuilder_ == null) { + return partitions_.get(index); } else { + return partitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List + getPartitionsOrBuilderList() { + if (partitionsBuilder_ != null) { + return partitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partitions_); + } + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition.Builder addPartitionsBuilder() { + return getPartitionsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Partition.getDefaultInstance()); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public datacatalog.Datacatalog.Partition.Builder addPartitionsBuilder( + int index) { + return getPartitionsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Partition.getDefaultInstance()); + } + /** + * repeated .datacatalog.Partition partitions = 5; + */ + public java.util.List + getPartitionsBuilderList() { + return getPartitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder> + getPartitionsFieldBuilder() { + if (partitionsBuilder_ == null) { + partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder>( + partitions_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + partitions_ = null; + } + return partitionsBuilder_; + } + + private java.util.List tags_ = + java.util.Collections.emptyList(); + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tags_ = new java.util.ArrayList(tags_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> tagsBuilder_; + + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List getTagsList() { + if (tagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tags_); + } else { + return tagsBuilder_.getMessageList(); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public int getTagsCount() { + if (tagsBuilder_ == null) { + return tags_.size(); + } else { + return tagsBuilder_.getCount(); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag getTags(int index) { + if (tagsBuilder_ == null) { + return tags_.get(index); + } else { + return tagsBuilder_.getMessage(index); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder setTags( + int index, datacatalog.Datacatalog.Tag value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + } else { + tagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder setTags( + int index, datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.set(index, builderForValue.build()); + onChanged(); + } else { + tagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags(datacatalog.Datacatalog.Tag value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + } else { + tagsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags( + int index, datacatalog.Datacatalog.Tag value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(index, value); + onChanged(); + } else { + tagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags( + datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.add(builderForValue.build()); + onChanged(); + } else { + tagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addTags( + int index, datacatalog.Datacatalog.Tag.Builder builderForValue) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.add(index, builderForValue.build()); + onChanged(); + } else { + tagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder addAllTags( + java.lang.Iterable values) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + } else { + tagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder clearTags() { + if (tagsBuilder_ == null) { + tags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + tagsBuilder_.clear(); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public Builder removeTags(int index) { + if (tagsBuilder_ == null) { + ensureTagsIsMutable(); + tags_.remove(index); + onChanged(); + } else { + tagsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag.Builder getTagsBuilder( + int index) { + return getTagsFieldBuilder().getBuilder(index); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( + int index) { + if (tagsBuilder_ == null) { + return tags_.get(index); } else { + return tagsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List + getTagsOrBuilderList() { + if (tagsBuilder_ != null) { + return tagsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tags_); + } + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag.Builder addTagsBuilder() { + return getTagsFieldBuilder().addBuilder( + datacatalog.Datacatalog.Tag.getDefaultInstance()); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public datacatalog.Datacatalog.Tag.Builder addTagsBuilder( + int index) { + return getTagsFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.Tag.getDefaultInstance()); + } + /** + * repeated .datacatalog.Tag tags = 6; + */ + public java.util.List + getTagsBuilderList() { + return getTagsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> + getTagsFieldBuilder() { + if (tagsBuilder_ == null) { + tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder>( + tags_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + tags_ = null; + } + return tagsBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * creation timestamp of artifact, autogenerated by service
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.Artifact) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Artifact) + private static final datacatalog.Datacatalog.Artifact DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Artifact(); + } + + public static datacatalog.Datacatalog.Artifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Artifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Artifact(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ArtifactData) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + */ + java.lang.String getName(); + /** + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .flyteidl.core.Literal value = 2; + */ + boolean hasValue(); + /** + * .flyteidl.core.Literal value = 2; + */ + flyteidl.core.Literals.Literal getValue(); + /** + * .flyteidl.core.Literal value = 2; + */ + flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); + } + /** + *
+   * ArtifactData that belongs to an artifact
+   * 
+ * + * Protobuf type {@code datacatalog.ArtifactData} + */ + public static final class ArtifactData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ArtifactData) + ArtifactDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactData.newBuilder() to construct. + private ArtifactData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArtifactData() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArtifactData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactData.class, datacatalog.Datacatalog.ArtifactData.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private flyteidl.core.Literals.Literal value_; + /** + * .flyteidl.core.Literal value = 2; + */ + public boolean hasValue() { + return value_ != null; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal getValue() { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + return getValue(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ArtifactData)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ArtifactData other = (datacatalog.Datacatalog.ArtifactData) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ArtifactData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ArtifactData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ArtifactData that belongs to an artifact
+     * 
+ * + * Protobuf type {@code datacatalog.ArtifactData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ArtifactData) + datacatalog.Datacatalog.ArtifactDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactData.class, datacatalog.Datacatalog.ArtifactData.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ArtifactData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactData getDefaultInstanceForType() { + return datacatalog.Datacatalog.ArtifactData.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactData build() { + datacatalog.Datacatalog.ArtifactData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactData buildPartial() { + datacatalog.Datacatalog.ArtifactData result = new datacatalog.Datacatalog.ArtifactData(this); + result.name_ = name_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ArtifactData) { + return mergeFrom((datacatalog.Datacatalog.ArtifactData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ArtifactData other) { + if (other == datacatalog.Datacatalog.ArtifactData.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ArtifactData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ArtifactData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Literals.Literal value_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; + /** + * .flyteidl.core.Literal value = 2; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal getValue() { + if (valueBuilder_ == null) { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder setValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder setValue( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder mergeValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + } + /** + * .flyteidl.core.Literal value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ArtifactData) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) + private static final datacatalog.Datacatalog.ArtifactData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ArtifactData(); + } + + public static datacatalog.Datacatalog.ArtifactData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TagOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Tag) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of tag
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Name of tag
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The tagged artifact
+     * 
+ * + * string artifact_id = 2; + */ + java.lang.String getArtifactId(); + /** + *
+     * The tagged artifact
+     * 
+ * + * string artifact_id = 2; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + /** + *
+     * The Dataset that this tag belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + boolean hasDataset(); + /** + *
+     * The Dataset that this tag belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + datacatalog.Datacatalog.DatasetID getDataset(); + /** + *
+     * The Dataset that this tag belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); + } + /** + *
+   * Tag message that is unique to a Dataset. It is associated to a single artifact and
+   * can be retrieved by name later.
+   * 
+ * + * Protobuf type {@code datacatalog.Tag} + */ + public static final class Tag extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Tag) + TagOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tag.newBuilder() to construct. + private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Tag() { + name_ = ""; + artifactId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Tag( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + artifactId_ = s; + break; + } + case 26: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Tag.class, datacatalog.Datacatalog.Tag.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name of tag
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * Name of tag
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object artifactId_; + /** + *
+     * The tagged artifact
+     * 
+ * + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } + } + /** + *
+     * The tagged artifact
+     * 
+ * + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_FIELD_NUMBER = 3; + private datacatalog.Datacatalog.DatasetID dataset_; + /** + *
+     * The Dataset that this tag belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + *
+     * The Dataset that this tag belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + /** + *
+     * The Dataset that this tag belongs to
+     * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getArtifactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, artifactId_); + } + if (dataset_ != null) { + output.writeMessage(3, getDataset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getArtifactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, artifactId_); + } + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDataset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.Tag)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Tag other = (datacatalog.Datacatalog.Tag) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset() + .equals(other.getDataset())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Tag parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Tag parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Tag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Tag parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Tag parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Tag parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Tag parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Tag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.Tag prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Tag message that is unique to a Dataset. It is associated to a single artifact and
+     * can be retrieved by name later.
+     * 
+ * + * Protobuf type {@code datacatalog.Tag} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Tag) + datacatalog.Datacatalog.TagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Tag.class, datacatalog.Datacatalog.Tag.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Tag.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + artifactId_ = ""; + + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Tag getDefaultInstanceForType() { + return datacatalog.Datacatalog.Tag.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Tag build() { + datacatalog.Datacatalog.Tag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Tag buildPartial() { + datacatalog.Datacatalog.Tag result = new datacatalog.Datacatalog.Tag(this); + result.name_ = name_; + result.artifactId_ = artifactId_; + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.Tag) { + return mergeFrom((datacatalog.Datacatalog.Tag)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Tag other) { + if (other == datacatalog.Datacatalog.Tag.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + onChanged(); + } + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.Tag parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Tag) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name of tag
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of tag
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of tag
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of tag
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of tag
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object artifactId_ = ""; + /** + *
+       * The tagged artifact
+       * 
+ * + * string artifact_id = 2; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The tagged artifact
+       * 
+ * + * string artifact_id = 2; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The tagged artifact
+       * 
+ * + * string artifact_id = 2; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactId_ = value; + onChanged(); + return this; + } + /** + *
+       * The tagged artifact
+       * 
+ * + * string artifact_id = 2; + */ + public Builder clearArtifactId() { + + artifactId_ = getDefaultInstance().getArtifactId(); + onChanged(); + return this; + } + /** + *
+       * The tagged artifact
+       * 
+ * + * string artifact_id = 2; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactId_ = value; + onChanged(); + return this; + } + + private datacatalog.Datacatalog.DatasetID dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetID getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public Builder setDataset( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; + } + } + /** + *
+       * The Dataset that this tag belongs to
+       * 
+ * + * .datacatalog.DatasetID dataset = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDataset(), + getParentForChildren(), + isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.Tag) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Tag) + private static final datacatalog.Datacatalog.Tag DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Tag(); + } + + public static datacatalog.Datacatalog.Tag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tag parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Tag(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.Tag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + int getKeyMapCount(); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + boolean containsKeyMap( + java.lang.String key); + /** + * Use {@link #getKeyMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getKeyMap(); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + java.util.Map + getKeyMapMap(); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + java.lang.String getKeyMapOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + java.lang.String getKeyMapOrThrow( + java.lang.String key); + } + /** + *
+   * Metadata representation for artifacts and datasets
+   * 
+ * + * Protobuf type {@code datacatalog.Metadata} + */ + public static final class Metadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Metadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Metadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keyMap_ = com.google.protobuf.MapField.newMapField( + KeyMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + keyMap__ = input.readMessage( + KeyMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + keyMap_.getMutableMap().put( + keyMap__.getKey(), keyMap__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetKeyMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Metadata.class, datacatalog.Datacatalog.Metadata.Builder.class); + } + + public static final int KEY_MAP_FIELD_NUMBER = 1; + private static final class KeyMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datacatalog.Datacatalog.internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> keyMap_; + private com.google.protobuf.MapField + internalGetKeyMap() { + if (keyMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KeyMapDefaultEntryHolder.defaultEntry); + } + return keyMap_; + } + + public int getKeyMapCount() { + return internalGetKeyMap().getMap().size(); + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public boolean containsKeyMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKeyMap().getMap().containsKey(key); + } + /** + * Use {@link #getKeyMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getKeyMap() { + return getKeyMapMap(); + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public java.util.Map getKeyMapMap() { + return internalGetKeyMap().getMap(); + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * key map is a dictionary of key/val strings that represent metadata
+     * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetKeyMap(), + KeyMapDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetKeyMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + keyMap__ = KeyMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, keyMap__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.Metadata)) { + return super.equals(obj); + } + datacatalog.Datacatalog.Metadata other = (datacatalog.Datacatalog.Metadata) obj; + + if (!internalGetKeyMap().equals( + other.internalGetKeyMap())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetKeyMap().getMap().isEmpty()) { + hash = (37 * hash) + KEY_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetKeyMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.Metadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Metadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.Metadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.Metadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Metadata representation for artifacts and datasets
+     * 
+ * + * Protobuf type {@code datacatalog.Metadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.Metadata) + datacatalog.Datacatalog.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetKeyMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableKeyMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.Metadata.class, datacatalog.Datacatalog.Metadata.Builder.class); + } + + // Construct using datacatalog.Datacatalog.Metadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableKeyMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.Metadata getDefaultInstanceForType() { + return datacatalog.Datacatalog.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.Metadata build() { + datacatalog.Datacatalog.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.Metadata buildPartial() { + datacatalog.Datacatalog.Metadata result = new datacatalog.Datacatalog.Metadata(this); + int from_bitField0_ = bitField0_; + result.keyMap_ = internalGetKeyMap(); + result.keyMap_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.Metadata) { + return mergeFrom((datacatalog.Datacatalog.Metadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.Metadata other) { + if (other == datacatalog.Datacatalog.Metadata.getDefaultInstance()) return this; + internalGetMutableKeyMap().mergeFrom( + other.internalGetKeyMap()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.Metadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.Metadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> keyMap_; + private com.google.protobuf.MapField + internalGetKeyMap() { + if (keyMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + KeyMapDefaultEntryHolder.defaultEntry); + } + return keyMap_; + } + private com.google.protobuf.MapField + internalGetMutableKeyMap() { + onChanged();; + if (keyMap_ == null) { + keyMap_ = com.google.protobuf.MapField.newMapField( + KeyMapDefaultEntryHolder.defaultEntry); + } + if (!keyMap_.isMutable()) { + keyMap_ = keyMap_.copy(); + } + return keyMap_; + } + + public int getKeyMapCount() { + return internalGetKeyMap().getMap().size(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public boolean containsKeyMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetKeyMap().getMap().containsKey(key); + } + /** + * Use {@link #getKeyMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getKeyMap() { + return getKeyMapMap(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public java.util.Map getKeyMapMap() { + return internalGetKeyMap().getMap(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public java.lang.String getKeyMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetKeyMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearKeyMap() { + internalGetMutableKeyMap().getMutableMap() + .clear(); + return this; + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public Builder removeKeyMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableKeyMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableKeyMap() { + return internalGetMutableKeyMap().getMutableMap(); + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + public Builder putKeyMap( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableKeyMap().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * key map is a dictionary of key/val strings that represent metadata
+       * 
+ * + * map<string, string> key_map = 1; + */ + + public Builder putAllKeyMap( + java.util.Map values) { + internalGetMutableKeyMap().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.Metadata) + } + + // @@protoc_insertion_point(class_scope:datacatalog.Metadata) + private static final datacatalog.Datacatalog.Metadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Metadata(); + } + + public static datacatalog.Datacatalog.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FilterExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.FilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + java.util.List + getFiltersList(); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + int getFiltersCount(); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + java.util.List + getFiltersOrBuilderList(); + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( + int index); + } + /** + *
+   * Filter expression that is composed of a combination of single filters
+   * 
+ * + * Protobuf type {@code datacatalog.FilterExpression} + */ + public static final class FilterExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.FilterExpression) + FilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FilterExpression.newBuilder() to construct. + private FilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FilterExpression() { + filters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FilterExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + filters_.add( + input.readMessage(datacatalog.Datacatalog.SinglePropertyFilter.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.FilterExpression.class, datacatalog.Datacatalog.FilterExpression.Builder.class); + } + + public static final int FILTERS_FIELD_NUMBER = 1; + private java.util.List filters_; + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List getFiltersList() { + return filters_; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List + getFiltersOrBuilderList() { + return filters_; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public int getFiltersCount() { + return filters_.size(); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index) { + return filters_.get(index); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( + int index) { + return filters_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < filters_.size(); i++) { + output.writeMessage(1, filters_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < filters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, filters_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.FilterExpression)) { + return super.equals(obj); + } + datacatalog.Datacatalog.FilterExpression other = (datacatalog.Datacatalog.FilterExpression) obj; + + if (!getFiltersList() + .equals(other.getFiltersList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFiltersCount() > 0) { + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFiltersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.FilterExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.FilterExpression parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.FilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.FilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Filter expression that is composed of a combination of single filters
+     * 
+ * + * Protobuf type {@code datacatalog.FilterExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.FilterExpression) + datacatalog.Datacatalog.FilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.FilterExpression.class, datacatalog.Datacatalog.FilterExpression.Builder.class); + } + + // Construct using datacatalog.Datacatalog.FilterExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFiltersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + filtersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.FilterExpression getDefaultInstanceForType() { + return datacatalog.Datacatalog.FilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.FilterExpression build() { + datacatalog.Datacatalog.FilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.FilterExpression buildPartial() { + datacatalog.Datacatalog.FilterExpression result = new datacatalog.Datacatalog.FilterExpression(this); + int from_bitField0_ = bitField0_; + if (filtersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filters_ = java.util.Collections.unmodifiableList(filters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filters_ = filters_; + } else { + result.filters_ = filtersBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.FilterExpression) { + return mergeFrom((datacatalog.Datacatalog.FilterExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.FilterExpression other) { + if (other == datacatalog.Datacatalog.FilterExpression.getDefaultInstance()) return this; + if (filtersBuilder_ == null) { + if (!other.filters_.isEmpty()) { + if (filters_.isEmpty()) { + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFiltersIsMutable(); + filters_.addAll(other.filters_); + } + onChanged(); + } + } else { + if (!other.filters_.isEmpty()) { + if (filtersBuilder_.isEmpty()) { + filtersBuilder_.dispose(); + filtersBuilder_ = null; + filters_ = other.filters_; + bitField0_ = (bitField0_ & ~0x00000001); + filtersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFiltersFieldBuilder() : null; + } else { + filtersBuilder_.addAllMessages(other.filters_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.FilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.FilterExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List filters_ = + java.util.Collections.emptyList(); + private void ensureFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filters_ = new java.util.ArrayList(filters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder> filtersBuilder_; + + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List getFiltersList() { + if (filtersBuilder_ == null) { + return java.util.Collections.unmodifiableList(filters_); + } else { + return filtersBuilder_.getMessageList(); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public int getFiltersCount() { + if (filtersBuilder_ == null) { + return filters_.size(); + } else { + return filtersBuilder_.getCount(); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); + } else { + return filtersBuilder_.getMessage(index); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder setFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.set(index, value); + onChanged(); + } else { + filtersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder setFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.set(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters(datacatalog.Datacatalog.SinglePropertyFilter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(value); + onChanged(); + } else { + filtersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter value) { + if (filtersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFiltersIsMutable(); + filters_.add(index, value); + onChanged(); + } else { + filtersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters( + datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addFilters( + int index, datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.add(index, builderForValue.build()); + onChanged(); + } else { + filtersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder addAllFilters( + java.lang.Iterable values) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, filters_); + onChanged(); + } else { + filtersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder clearFilters() { + if (filtersBuilder_ == null) { + filters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filtersBuilder_.clear(); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public Builder removeFilters(int index) { + if (filtersBuilder_ == null) { + ensureFiltersIsMutable(); + filters_.remove(index); + onChanged(); + } else { + filtersBuilder_.remove(index); + } + return this; + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.Builder getFiltersBuilder( + int index) { + return getFiltersFieldBuilder().getBuilder(index); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( + int index) { + if (filtersBuilder_ == null) { + return filters_.get(index); } else { + return filtersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List + getFiltersOrBuilderList() { + if (filtersBuilder_ != null) { + return filtersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filters_); + } + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.Builder addFiltersBuilder() { + return getFiltersFieldBuilder().addBuilder( + datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.Builder addFiltersBuilder( + int index) { + return getFiltersFieldBuilder().addBuilder( + index, datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()); + } + /** + * repeated .datacatalog.SinglePropertyFilter filters = 1; + */ + public java.util.List + getFiltersBuilderList() { + return getFiltersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder> + getFiltersFieldBuilder() { + if (filtersBuilder_ == null) { + filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder>( + filters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filters_ = null; + } + return filtersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.FilterExpression) + } + + // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) + private static final datacatalog.Datacatalog.FilterExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.FilterExpression(); + } + + public static datacatalog.Datacatalog.FilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FilterExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.FilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SinglePropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.SinglePropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + boolean hasTagFilter(); + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + datacatalog.Datacatalog.TagPropertyFilter getTagFilter(); + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder(); + + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + boolean hasPartitionFilter(); + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter(); + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder(); + + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + boolean hasArtifactFilter(); + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter(); + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder(); + + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + boolean hasDatasetFilter(); + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter(); + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder(); + + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + int getOperatorValue(); + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator(); + + public datacatalog.Datacatalog.SinglePropertyFilter.PropertyFilterCase getPropertyFilterCase(); + } + /** + *
+   * A single property to filter on.
+   * 
+ * + * Protobuf type {@code datacatalog.SinglePropertyFilter} + */ + public static final class SinglePropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.SinglePropertyFilter) + SinglePropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SinglePropertyFilter.newBuilder() to construct. + private SinglePropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SinglePropertyFilter() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SinglePropertyFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.TagPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 1) { + subBuilder = ((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.TagPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 1; + break; + } + case 18: { + datacatalog.Datacatalog.PartitionPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 2) { + subBuilder = ((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.PartitionPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 2; + break; + } + case 26: { + datacatalog.Datacatalog.ArtifactPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 3) { + subBuilder = ((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.ArtifactPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 3; + break; + } + case 34: { + datacatalog.Datacatalog.DatasetPropertyFilter.Builder subBuilder = null; + if (propertyFilterCase_ == 4) { + subBuilder = ((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_).toBuilder(); + } + propertyFilter_ = + input.readMessage(datacatalog.Datacatalog.DatasetPropertyFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); + propertyFilter_ = subBuilder.buildPartial(); + } + propertyFilterCase_ = 4; + break; + } + case 80: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.SinglePropertyFilter.class, datacatalog.Datacatalog.SinglePropertyFilter.Builder.class); + } + + /** + *
+     * as use-cases come up we can add more operators, ex: gte, like, not eq etc.
+     * 
+ * + * Protobuf enum {@code datacatalog.SinglePropertyFilter.ComparisonOperator} + */ + public enum ComparisonOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQUALS = 0; + */ + EQUALS(0), + UNRECOGNIZED(-1), + ; + + /** + * EQUALS = 0; + */ + public static final int EQUALS_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ComparisonOperator valueOf(int value) { + return forNumber(value); + } + + public static ComparisonOperator forNumber(int value) { + switch (value) { + case 0: return EQUALS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ComparisonOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComparisonOperator findValueByNumber(int number) { + return ComparisonOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datacatalog.Datacatalog.SinglePropertyFilter.getDescriptor().getEnumTypes().get(0); + } + + private static final ComparisonOperator[] VALUES = values(); + + public static ComparisonOperator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ComparisonOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datacatalog.SinglePropertyFilter.ComparisonOperator) + } + + private int propertyFilterCase_ = 0; + private java.lang.Object propertyFilter_; + public enum PropertyFilterCase + implements com.google.protobuf.Internal.EnumLite { + TAG_FILTER(1), + PARTITION_FILTER(2), + ARTIFACT_FILTER(3), + DATASET_FILTER(4), + PROPERTYFILTER_NOT_SET(0); + private final int value; + private PropertyFilterCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyFilterCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyFilterCase forNumber(int value) { + switch (value) { + case 1: return TAG_FILTER; + case 2: return PARTITION_FILTER; + case 3: return ARTIFACT_FILTER; + case 4: return DATASET_FILTER; + case 0: return PROPERTYFILTER_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyFilterCase + getPropertyFilterCase() { + return PropertyFilterCase.forNumber( + propertyFilterCase_); + } + + public static final int TAG_FILTER_FIELD_NUMBER = 1; + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public boolean hasTagFilter() { + return propertyFilterCase_ == 1; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilter getTagFilter() { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder() { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + + public static final int PARTITION_FILTER_FIELD_NUMBER = 2; + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public boolean hasPartitionFilter() { + return propertyFilterCase_ == 2; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter() { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder() { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + + public static final int ARTIFACT_FILTER_FIELD_NUMBER = 3; + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public boolean hasArtifactFilter() { + return propertyFilterCase_ == 3; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter() { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder() { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + + public static final int DATASET_FILTER_FIELD_NUMBER = 4; + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public boolean hasDatasetFilter() { + return propertyFilterCase_ == 4; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter() { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder() { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + + public static final int OPERATOR_FIELD_NUMBER = 10; + private int operator_; + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+     * field 10 in case we add more entities to query
+     * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator result = datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.valueOf(operator_); + return result == null ? datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (propertyFilterCase_ == 1) { + output.writeMessage(1, (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 2) { + output.writeMessage(2, (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 3) { + output.writeMessage(3, (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 4) { + output.writeMessage(4, (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); + } + if (operator_ != datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.EQUALS.getNumber()) { + output.writeEnum(10, operator_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyFilterCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); + } + if (propertyFilterCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); + } + if (operator_ != datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.EQUALS.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, operator_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.SinglePropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.SinglePropertyFilter other = (datacatalog.Datacatalog.SinglePropertyFilter) obj; + + if (operator_ != other.operator_) return false; + if (!getPropertyFilterCase().equals(other.getPropertyFilterCase())) return false; + switch (propertyFilterCase_) { + case 1: + if (!getTagFilter() + .equals(other.getTagFilter())) return false; + break; + case 2: + if (!getPartitionFilter() + .equals(other.getPartitionFilter())) return false; + break; + case 3: + if (!getArtifactFilter() + .equals(other.getArtifactFilter())) return false; + break; + case 4: + if (!getDatasetFilter() + .equals(other.getDatasetFilter())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + switch (propertyFilterCase_) { + case 1: + hash = (37 * hash) + TAG_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getTagFilter().hashCode(); + break; + case 2: + hash = (37 * hash) + PARTITION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getPartitionFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + ARTIFACT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getArtifactFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + DATASET_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDatasetFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.SinglePropertyFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A single property to filter on.
+     * 
+ * + * Protobuf type {@code datacatalog.SinglePropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.SinglePropertyFilter) + datacatalog.Datacatalog.SinglePropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.SinglePropertyFilter.class, datacatalog.Datacatalog.SinglePropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.SinglePropertyFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operator_ = 0; + + propertyFilterCase_ = 0; + propertyFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.SinglePropertyFilter build() { + datacatalog.Datacatalog.SinglePropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.SinglePropertyFilter buildPartial() { + datacatalog.Datacatalog.SinglePropertyFilter result = new datacatalog.Datacatalog.SinglePropertyFilter(this); + if (propertyFilterCase_ == 1) { + if (tagFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = tagFilterBuilder_.build(); + } + } + if (propertyFilterCase_ == 2) { + if (partitionFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = partitionFilterBuilder_.build(); + } + } + if (propertyFilterCase_ == 3) { + if (artifactFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = artifactFilterBuilder_.build(); + } + } + if (propertyFilterCase_ == 4) { + if (datasetFilterBuilder_ == null) { + result.propertyFilter_ = propertyFilter_; + } else { + result.propertyFilter_ = datasetFilterBuilder_.build(); + } + } + result.operator_ = operator_; + result.propertyFilterCase_ = propertyFilterCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.SinglePropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.SinglePropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.SinglePropertyFilter other) { + if (other == datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + switch (other.getPropertyFilterCase()) { + case TAG_FILTER: { + mergeTagFilter(other.getTagFilter()); + break; + } + case PARTITION_FILTER: { + mergePartitionFilter(other.getPartitionFilter()); + break; + } + case ARTIFACT_FILTER: { + mergeArtifactFilter(other.getArtifactFilter()); + break; + } + case DATASET_FILTER: { + mergeDatasetFilter(other.getDatasetFilter()); + break; + } + case PROPERTYFILTER_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.SinglePropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.SinglePropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyFilterCase_ = 0; + private java.lang.Object propertyFilter_; + public PropertyFilterCase + getPropertyFilterCase() { + return PropertyFilterCase.forNumber( + propertyFilterCase_); + } + + public Builder clearPropertyFilter() { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder> tagFilterBuilder_; + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public boolean hasTagFilter() { + return propertyFilterCase_ == 1; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilter getTagFilter() { + if (tagFilterBuilder_ == null) { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 1) { + return tagFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder setTagFilter(datacatalog.Datacatalog.TagPropertyFilter value) { + if (tagFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + tagFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 1; + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder setTagFilter( + datacatalog.Datacatalog.TagPropertyFilter.Builder builderForValue) { + if (tagFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + tagFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 1; + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder mergeTagFilter(datacatalog.Datacatalog.TagPropertyFilter value) { + if (tagFilterBuilder_ == null) { + if (propertyFilterCase_ == 1 && + propertyFilter_ != datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.TagPropertyFilter.newBuilder((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 1) { + tagFilterBuilder_.mergeFrom(value); + } + tagFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 1; + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public Builder clearTagFilter() { + if (tagFilterBuilder_ == null) { + if (propertyFilterCase_ == 1) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 1) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + tagFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilter.Builder getTagFilterBuilder() { + return getTagFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + public datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder() { + if ((propertyFilterCase_ == 1) && (tagFilterBuilder_ != null)) { + return tagFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 1) { + return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.TagPropertyFilter tag_filter = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder> + getTagFilterFieldBuilder() { + if (tagFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 1)) { + propertyFilter_ = datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + tagFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 1; + onChanged();; + return tagFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder> partitionFilterBuilder_; + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public boolean hasPartitionFilter() { + return propertyFilterCase_ == 2; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter() { + if (partitionFilterBuilder_ == null) { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 2) { + return partitionFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder setPartitionFilter(datacatalog.Datacatalog.PartitionPropertyFilter value) { + if (partitionFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + partitionFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 2; + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder setPartitionFilter( + datacatalog.Datacatalog.PartitionPropertyFilter.Builder builderForValue) { + if (partitionFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + partitionFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 2; + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder mergePartitionFilter(datacatalog.Datacatalog.PartitionPropertyFilter value) { + if (partitionFilterBuilder_ == null) { + if (propertyFilterCase_ == 2 && + propertyFilter_ != datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.PartitionPropertyFilter.newBuilder((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 2) { + partitionFilterBuilder_.mergeFrom(value); + } + partitionFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 2; + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public Builder clearPartitionFilter() { + if (partitionFilterBuilder_ == null) { + if (propertyFilterCase_ == 2) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 2) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + partitionFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilter.Builder getPartitionFilterBuilder() { + return getPartitionFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + public datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder() { + if ((propertyFilterCase_ == 2) && (partitionFilterBuilder_ != null)) { + return partitionFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 2) { + return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder> + getPartitionFilterFieldBuilder() { + if (partitionFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 2)) { + propertyFilter_ = datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + partitionFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 2; + onChanged();; + return partitionFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder> artifactFilterBuilder_; + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public boolean hasArtifactFilter() { + return propertyFilterCase_ == 3; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter() { + if (artifactFilterBuilder_ == null) { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 3) { + return artifactFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder setArtifactFilter(datacatalog.Datacatalog.ArtifactPropertyFilter value) { + if (artifactFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + artifactFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 3; + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder setArtifactFilter( + datacatalog.Datacatalog.ArtifactPropertyFilter.Builder builderForValue) { + if (artifactFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + artifactFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 3; + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder mergeArtifactFilter(datacatalog.Datacatalog.ArtifactPropertyFilter value) { + if (artifactFilterBuilder_ == null) { + if (propertyFilterCase_ == 3 && + propertyFilter_ != datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.ArtifactPropertyFilter.newBuilder((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 3) { + artifactFilterBuilder_.mergeFrom(value); + } + artifactFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 3; + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public Builder clearArtifactFilter() { + if (artifactFilterBuilder_ == null) { + if (propertyFilterCase_ == 3) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 3) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + artifactFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilter.Builder getArtifactFilterBuilder() { + return getArtifactFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + public datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder() { + if ((propertyFilterCase_ == 3) && (artifactFilterBuilder_ != null)) { + return artifactFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 3) { + return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder> + getArtifactFilterFieldBuilder() { + if (artifactFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 3)) { + propertyFilter_ = datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + artifactFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 3; + onChanged();; + return artifactFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder> datasetFilterBuilder_; + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public boolean hasDatasetFilter() { + return propertyFilterCase_ == 4; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter() { + if (datasetFilterBuilder_ == null) { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } else { + if (propertyFilterCase_ == 4) { + return datasetFilterBuilder_.getMessage(); + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder setDatasetFilter(datacatalog.Datacatalog.DatasetPropertyFilter value) { + if (datasetFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyFilter_ = value; + onChanged(); + } else { + datasetFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 4; + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder setDatasetFilter( + datacatalog.Datacatalog.DatasetPropertyFilter.Builder builderForValue) { + if (datasetFilterBuilder_ == null) { + propertyFilter_ = builderForValue.build(); + onChanged(); + } else { + datasetFilterBuilder_.setMessage(builderForValue.build()); + } + propertyFilterCase_ = 4; + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder mergeDatasetFilter(datacatalog.Datacatalog.DatasetPropertyFilter value) { + if (datasetFilterBuilder_ == null) { + if (propertyFilterCase_ == 4 && + propertyFilter_ != datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance()) { + propertyFilter_ = datacatalog.Datacatalog.DatasetPropertyFilter.newBuilder((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_) + .mergeFrom(value).buildPartial(); + } else { + propertyFilter_ = value; + } + onChanged(); + } else { + if (propertyFilterCase_ == 4) { + datasetFilterBuilder_.mergeFrom(value); + } + datasetFilterBuilder_.setMessage(value); + } + propertyFilterCase_ = 4; + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public Builder clearDatasetFilter() { + if (datasetFilterBuilder_ == null) { + if (propertyFilterCase_ == 4) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + onChanged(); + } + } else { + if (propertyFilterCase_ == 4) { + propertyFilterCase_ = 0; + propertyFilter_ = null; + } + datasetFilterBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilter.Builder getDatasetFilterBuilder() { + return getDatasetFilterFieldBuilder().getBuilder(); + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + public datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder() { + if ((propertyFilterCase_ == 4) && (datasetFilterBuilder_ != null)) { + return datasetFilterBuilder_.getMessageOrBuilder(); + } else { + if (propertyFilterCase_ == 4) { + return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; + } + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + } + /** + * .datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder> + getDatasetFilterFieldBuilder() { + if (datasetFilterBuilder_ == null) { + if (!(propertyFilterCase_ == 4)) { + propertyFilter_ = datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + datasetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder>( + (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_, + getParentForChildren(), + isClean()); + propertyFilter_ = null; + } + propertyFilterCase_ = 4; + onChanged();; + return datasetFilterBuilder_; + } + + private int operator_ = 0; + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator result = datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.valueOf(operator_); + return result == null ? datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.UNRECOGNIZED : result; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public Builder setOperator(datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * field 10 in case we add more entities to query
+       * 
+ * + * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.SinglePropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) + private static final datacatalog.Datacatalog.SinglePropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.SinglePropertyFilter(); + } + + public static datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SinglePropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SinglePropertyFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ArtifactPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * string artifact_id = 1; + */ + java.lang.String getArtifactId(); + /** + * string artifact_id = 1; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + public datacatalog.Datacatalog.ArtifactPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Artifact properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.ArtifactPropertyFilter} + */ + public static final class ArtifactPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ArtifactPropertyFilter) + ArtifactPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactPropertyFilter.newBuilder() to construct. + private ArtifactPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArtifactPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArtifactPropertyFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 1; + property_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactPropertyFilter.class, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + ARTIFACT_ID(1), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return ARTIFACT_ID; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + /** + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } + } + /** + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (propertyCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.ArtifactPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.ArtifactPropertyFilter other = (datacatalog.Datacatalog.ArtifactPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (propertyCase_) { + case 1: + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.ArtifactPropertyFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Artifact properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.ArtifactPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.ArtifactPropertyFilter) + datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.ArtifactPropertyFilter.class, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.ArtifactPropertyFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactPropertyFilter build() { + datacatalog.Datacatalog.ArtifactPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactPropertyFilter buildPartial() { + datacatalog.Datacatalog.ArtifactPropertyFilter result = new datacatalog.Datacatalog.ArtifactPropertyFilter(this); + if (propertyCase_ == 1) { + result.property_ = property_; + } + result.propertyCase_ = propertyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.ArtifactPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.ArtifactPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.ArtifactPropertyFilter other) { + if (other == datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case ARTIFACT_ID: { + propertyCase_ = 1; + property_ = other.property_; + onChanged(); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ArtifactPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ArtifactPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + /** + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string artifact_id = 1; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + /** + * string artifact_id = 1; + */ + public Builder clearArtifactId() { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string artifact_id = 1; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.ArtifactPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) + private static final datacatalog.Datacatalog.ArtifactPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ArtifactPropertyFilter(); + } + + public static datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactPropertyFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TagPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.TagPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * string tag_name = 1; + */ + java.lang.String getTagName(); + /** + * string tag_name = 1; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + public datacatalog.Datacatalog.TagPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Tag properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.TagPropertyFilter} + */ + public static final class TagPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.TagPropertyFilter) + TagPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use TagPropertyFilter.newBuilder() to construct. + private TagPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TagPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TagPropertyFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 1; + property_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.TagPropertyFilter.class, datacatalog.Datacatalog.TagPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + TAG_NAME(1), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return TAG_NAME; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int TAG_NAME_FIELD_NUMBER = 1; + /** + * string tag_name = 1; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } + } + /** + * string tag_name = 1; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (propertyCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.TagPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.TagPropertyFilter other = (datacatalog.Datacatalog.TagPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + if (!getTagName() + .equals(other.getTagName())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (propertyCase_) { + case 1: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.TagPropertyFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Tag properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.TagPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.TagPropertyFilter) + datacatalog.Datacatalog.TagPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.TagPropertyFilter.class, datacatalog.Datacatalog.TagPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.TagPropertyFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.TagPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.TagPropertyFilter build() { + datacatalog.Datacatalog.TagPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.TagPropertyFilter buildPartial() { + datacatalog.Datacatalog.TagPropertyFilter result = new datacatalog.Datacatalog.TagPropertyFilter(this); + if (propertyCase_ == 1) { + result.property_ = property_; + } + result.propertyCase_ = propertyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.TagPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.TagPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.TagPropertyFilter other) { + if (other == datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case TAG_NAME: { + propertyCase_ = 1; + property_ = other.property_; + onChanged(); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.TagPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.TagPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + /** + * string tag_name = 1; + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag_name = 1; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag_name = 1; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + /** + * string tag_name = 1; + */ + public Builder clearTagName() { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string tag_name = 1; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.TagPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) + private static final datacatalog.Datacatalog.TagPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.TagPropertyFilter(); + } + + public static datacatalog.Datacatalog.TagPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TagPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TagPropertyFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.TagPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PartitionPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.PartitionPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + boolean hasKeyVal(); + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + datacatalog.Datacatalog.KeyValuePair getKeyVal(); + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder(); + + public datacatalog.Datacatalog.PartitionPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Partition properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.PartitionPropertyFilter} + */ + public static final class PartitionPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.PartitionPropertyFilter) + PartitionPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use PartitionPropertyFilter.newBuilder() to construct. + private PartitionPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PartitionPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PartitionPropertyFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datacatalog.Datacatalog.KeyValuePair.Builder subBuilder = null; + if (propertyCase_ == 1) { + subBuilder = ((datacatalog.Datacatalog.KeyValuePair) property_).toBuilder(); + } + property_ = + input.readMessage(datacatalog.Datacatalog.KeyValuePair.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((datacatalog.Datacatalog.KeyValuePair) property_); + property_ = subBuilder.buildPartial(); + } + propertyCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PartitionPropertyFilter.class, datacatalog.Datacatalog.PartitionPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + KEY_VAL(1), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return KEY_VAL; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int KEY_VAL_FIELD_NUMBER = 1; + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public boolean hasKeyVal() { + return propertyCase_ == 1; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePair getKeyVal() { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder() { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (propertyCase_ == 1) { + output.writeMessage(1, (datacatalog.Datacatalog.KeyValuePair) property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (datacatalog.Datacatalog.KeyValuePair) property_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.PartitionPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.PartitionPropertyFilter other = (datacatalog.Datacatalog.PartitionPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + if (!getKeyVal() + .equals(other.getKeyVal())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (propertyCase_) { + case 1: + hash = (37 * hash) + KEY_VAL_FIELD_NUMBER; + hash = (53 * hash) + getKeyVal().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.PartitionPropertyFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Partition properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.PartitionPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.PartitionPropertyFilter) + datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PartitionPropertyFilter.class, datacatalog.Datacatalog.PartitionPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.PartitionPropertyFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.PartitionPropertyFilter build() { + datacatalog.Datacatalog.PartitionPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.PartitionPropertyFilter buildPartial() { + datacatalog.Datacatalog.PartitionPropertyFilter result = new datacatalog.Datacatalog.PartitionPropertyFilter(this); + if (propertyCase_ == 1) { + if (keyValBuilder_ == null) { + result.property_ = property_; + } else { + result.property_ = keyValBuilder_.build(); + } + } + result.propertyCase_ = propertyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.PartitionPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.PartitionPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.PartitionPropertyFilter other) { + if (other == datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case KEY_VAL: { + mergeKeyVal(other.getKeyVal()); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.PartitionPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.PartitionPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder> keyValBuilder_; + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public boolean hasKeyVal() { + return propertyCase_ == 1; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePair getKeyVal() { + if (keyValBuilder_ == null) { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } else { + if (propertyCase_ == 1) { + return keyValBuilder_.getMessage(); + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder setKeyVal(datacatalog.Datacatalog.KeyValuePair value) { + if (keyValBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + onChanged(); + } else { + keyValBuilder_.setMessage(value); + } + propertyCase_ = 1; + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder setKeyVal( + datacatalog.Datacatalog.KeyValuePair.Builder builderForValue) { + if (keyValBuilder_ == null) { + property_ = builderForValue.build(); + onChanged(); + } else { + keyValBuilder_.setMessage(builderForValue.build()); + } + propertyCase_ = 1; + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder mergeKeyVal(datacatalog.Datacatalog.KeyValuePair value) { + if (keyValBuilder_ == null) { + if (propertyCase_ == 1 && + property_ != datacatalog.Datacatalog.KeyValuePair.getDefaultInstance()) { + property_ = datacatalog.Datacatalog.KeyValuePair.newBuilder((datacatalog.Datacatalog.KeyValuePair) property_) + .mergeFrom(value).buildPartial(); + } else { + property_ = value; + } + onChanged(); + } else { + if (propertyCase_ == 1) { + keyValBuilder_.mergeFrom(value); + } + keyValBuilder_.setMessage(value); + } + propertyCase_ = 1; + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public Builder clearKeyVal() { + if (keyValBuilder_ == null) { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + } else { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + } + keyValBuilder_.clear(); + } + return this; + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePair.Builder getKeyValBuilder() { + return getKeyValFieldBuilder().getBuilder(); + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + public datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder() { + if ((propertyCase_ == 1) && (keyValBuilder_ != null)) { + return keyValBuilder_.getMessageOrBuilder(); + } else { + if (propertyCase_ == 1) { + return (datacatalog.Datacatalog.KeyValuePair) property_; + } + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + } + /** + * .datacatalog.KeyValuePair key_val = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder> + getKeyValFieldBuilder() { + if (keyValBuilder_ == null) { + if (!(propertyCase_ == 1)) { + property_ = datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + keyValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder>( + (datacatalog.Datacatalog.KeyValuePair) property_, + getParentForChildren(), + isClean()); + property_ = null; + } + propertyCase_ = 1; + onChanged();; + return keyValBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.PartitionPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) + private static final datacatalog.Datacatalog.PartitionPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.PartitionPropertyFilter(); + } + + public static datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PartitionPropertyFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValuePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + */ + java.lang.String getKey(); + /** + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string value = 2; + */ + java.lang.String getValue(); + /** + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code datacatalog.KeyValuePair} + */ + public static final class KeyValuePair extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.KeyValuePair) + KeyValuePairOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyValuePair() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyValuePair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.KeyValuePair.class, datacatalog.Datacatalog.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.KeyValuePair)) { + return super.equals(obj); + } + datacatalog.Datacatalog.KeyValuePair other = (datacatalog.Datacatalog.KeyValuePair) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.KeyValuePair parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.KeyValuePair prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datacatalog.KeyValuePair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.KeyValuePair) + datacatalog.Datacatalog.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.KeyValuePair.class, datacatalog.Datacatalog.KeyValuePair.Builder.class); + } + + // Construct using datacatalog.Datacatalog.KeyValuePair.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.KeyValuePair getDefaultInstanceForType() { + return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.KeyValuePair build() { + datacatalog.Datacatalog.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.KeyValuePair buildPartial() { + datacatalog.Datacatalog.KeyValuePair result = new datacatalog.Datacatalog.KeyValuePair(this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.KeyValuePair) { + return mergeFrom((datacatalog.Datacatalog.KeyValuePair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.KeyValuePair other) { + if (other == datacatalog.Datacatalog.KeyValuePair.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.KeyValuePair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.KeyValuePair) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) + private static final datacatalog.Datacatalog.KeyValuePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.KeyValuePair(); + } + + public static datacatalog.Datacatalog.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValuePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValuePair(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DatasetPropertyFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.DatasetPropertyFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * string project = 1; + */ + java.lang.String getProject(); + /** + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + * string name = 2; + */ + java.lang.String getName(); + /** + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string domain = 3; + */ + java.lang.String getDomain(); + /** + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * string version = 4; + */ + java.lang.String getVersion(); + /** + * string version = 4; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + public datacatalog.Datacatalog.DatasetPropertyFilter.PropertyCase getPropertyCase(); + } + /** + *
+   * Dataset properties we can filter by
+   * 
+ * + * Protobuf type {@code datacatalog.DatasetPropertyFilter} + */ + public static final class DatasetPropertyFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.DatasetPropertyFilter) + DatasetPropertyFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetPropertyFilter.newBuilder() to construct. + private DatasetPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DatasetPropertyFilter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DatasetPropertyFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 1; + property_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 2; + property_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 3; + property_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + propertyCase_ = 4; + property_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetPropertyFilter.class, datacatalog.Datacatalog.DatasetPropertyFilter.Builder.class); + } + + private int propertyCase_ = 0; + private java.lang.Object property_; + public enum PropertyCase + implements com.google.protobuf.Internal.EnumLite { + PROJECT(1), + NAME(2), + DOMAIN(3), + VERSION(4), + PROPERTY_NOT_SET(0); + private final int value; + private PropertyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PropertyCase valueOf(int value) { + return forNumber(value); + } + + public static PropertyCase forNumber(int value) { + switch (value) { + case 1: return PROJECT; + case 2: return NAME; + case 3: return DOMAIN; + case 4: return VERSION; + case 0: return PROPERTY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + /** + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } + } + /** + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 2) { + property_ = s; + } + return s; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 2) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + /** + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 3) { + property_ = s; + } + return s; + } + } + /** + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 3) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + /** + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 4) { + property_ = s; + } + return s; + } + } + /** + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 4) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (propertyCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (propertyCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); + } + if (propertyCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, property_); + } + if (propertyCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, property_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (propertyCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (propertyCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); + } + if (propertyCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, property_); + } + if (propertyCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, property_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.DatasetPropertyFilter)) { + return super.equals(obj); + } + datacatalog.Datacatalog.DatasetPropertyFilter other = (datacatalog.Datacatalog.DatasetPropertyFilter) obj; + + if (!getPropertyCase().equals(other.getPropertyCase())) return false; + switch (propertyCase_) { + case 1: + if (!getProject() + .equals(other.getProject())) return false; + break; + case 2: + if (!getName() + .equals(other.getName())) return false; + break; + case 3: + if (!getDomain() + .equals(other.getDomain())) return false; + break; + case 4: + if (!getVersion() + .equals(other.getVersion())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (propertyCase_) { + case 1: + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + break; + case 2: + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + break; + case 3: + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + break; + case 4: + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.DatasetPropertyFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Dataset properties we can filter by
+     * 
+ * + * Protobuf type {@code datacatalog.DatasetPropertyFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.DatasetPropertyFilter) + datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.DatasetPropertyFilter.class, datacatalog.Datacatalog.DatasetPropertyFilter.Builder.class); + } + + // Construct using datacatalog.Datacatalog.DatasetPropertyFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + propertyCase_ = 0; + property_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstanceForType() { + return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetPropertyFilter build() { + datacatalog.Datacatalog.DatasetPropertyFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetPropertyFilter buildPartial() { + datacatalog.Datacatalog.DatasetPropertyFilter result = new datacatalog.Datacatalog.DatasetPropertyFilter(this); + if (propertyCase_ == 1) { + result.property_ = property_; + } + if (propertyCase_ == 2) { + result.property_ = property_; + } + if (propertyCase_ == 3) { + result.property_ = property_; + } + if (propertyCase_ == 4) { + result.property_ = property_; + } + result.propertyCase_ = propertyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.DatasetPropertyFilter) { + return mergeFrom((datacatalog.Datacatalog.DatasetPropertyFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.DatasetPropertyFilter other) { + if (other == datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance()) return this; + switch (other.getPropertyCase()) { + case PROJECT: { + propertyCase_ = 1; + property_ = other.property_; + onChanged(); + break; + } + case NAME: { + propertyCase_ = 2; + property_ = other.property_; + onChanged(); + break; + } + case DOMAIN: { + propertyCase_ = 3; + property_ = other.property_; + onChanged(); + break; + } + case VERSION: { + propertyCase_ = 4; + property_ = other.property_; + onChanged(); + break; + } + case PROPERTY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.DatasetPropertyFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.DatasetPropertyFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int propertyCase_ = 0; + private java.lang.Object property_; + public PropertyCase + getPropertyCase() { + return PropertyCase.forNumber( + propertyCase_); + } + + public Builder clearProperty() { + propertyCase_ = 0; + property_ = null; + onChanged(); + return this; + } + + + /** + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 1) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 1) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 1) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + /** + * string project = 1; + */ + public Builder clearProject() { + if (propertyCase_ == 1) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 1; + property_ = value; + onChanged(); + return this; + } + + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 2) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 2) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 2) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 2; + property_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder clearName() { + if (propertyCase_ == 2) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 2; + property_ = value; + onChanged(); + return this; + } + + /** + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 3) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 3) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 3) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 3; + property_ = value; + onChanged(); + return this; + } + /** + * string domain = 3; + */ + public Builder clearDomain() { + if (propertyCase_ == 3) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 3; + property_ = value; + onChanged(); + return this; + } + + /** + * string version = 4; + */ + public java.lang.String getVersion() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (propertyCase_ == 4) { + property_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string version = 4; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = ""; + if (propertyCase_ == 4) { + ref = property_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (propertyCase_ == 4) { + property_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 4; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + propertyCase_ = 4; + property_ = value; + onChanged(); + return this; + } + /** + * string version = 4; + */ + public Builder clearVersion() { + if (propertyCase_ == 4) { + propertyCase_ = 0; + property_ = null; + onChanged(); + } + return this; + } + /** + * string version = 4; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + propertyCase_ = 4; + property_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.DatasetPropertyFilter) + } + + // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) + private static final datacatalog.Datacatalog.DatasetPropertyFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.DatasetPropertyFilter(); + } + + public static datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetPropertyFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatasetPropertyFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PaginationOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.PaginationOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * the max number of results to return
+     * 
+ * + * uint32 limit = 1; + */ + int getLimit(); + + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + int getSortKeyValue(); + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey(); + + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + int getSortOrderValue(); + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder(); + } + /** + *
+   * Pagination options for making list requests
+   * 
+ * + * Protobuf type {@code datacatalog.PaginationOptions} + */ + public static final class PaginationOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.PaginationOptions) + PaginationOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PaginationOptions.newBuilder() to construct. + private PaginationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PaginationOptions() { + token_ = ""; + sortKey_ = 0; + sortOrder_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PaginationOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + limit_ = input.readUInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + sortKey_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + sortOrder_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PaginationOptions.class, datacatalog.Datacatalog.PaginationOptions.Builder.class); + } + + /** + * Protobuf enum {@code datacatalog.PaginationOptions.SortOrder} + */ + public enum SortOrder + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DESCENDING = 0; + */ + DESCENDING(0), + /** + * ASCENDING = 1; + */ + ASCENDING(1), + UNRECOGNIZED(-1), + ; + + /** + * DESCENDING = 0; + */ + public static final int DESCENDING_VALUE = 0; + /** + * ASCENDING = 1; + */ + public static final int ASCENDING_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SortOrder valueOf(int value) { + return forNumber(value); + } + + public static SortOrder forNumber(int value) { + switch (value) { + case 0: return DESCENDING; + case 1: return ASCENDING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SortOrder> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SortOrder findValueByNumber(int number) { + return SortOrder.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datacatalog.Datacatalog.PaginationOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final SortOrder[] VALUES = values(); + + public static SortOrder valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SortOrder(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datacatalog.PaginationOptions.SortOrder) + } + + /** + * Protobuf enum {@code datacatalog.PaginationOptions.SortKey} + */ + public enum SortKey + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CREATION_TIME = 0; + */ + CREATION_TIME(0), + UNRECOGNIZED(-1), + ; + + /** + * CREATION_TIME = 0; + */ + public static final int CREATION_TIME_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SortKey valueOf(int value) { + return forNumber(value); + } + + public static SortKey forNumber(int value) { + switch (value) { + case 0: return CREATION_TIME; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SortKey> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SortKey findValueByNumber(int number) { + return SortKey.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datacatalog.Datacatalog.PaginationOptions.getDescriptor().getEnumTypes().get(1); + } + + private static final SortKey[] VALUES = values(); + + public static SortKey valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SortKey(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datacatalog.PaginationOptions.SortKey) + } + + public static final int LIMIT_FIELD_NUMBER = 1; + private int limit_; + /** + *
+     * the max number of results to return
+     * 
+ * + * uint32 limit = 1; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * the token to pass to fetch the next page
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORTKEY_FIELD_NUMBER = 3; + private int sortKey_; + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public int getSortKeyValue() { + return sortKey_; + } + /** + *
+     * the property that we want to sort the results by
+     * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortKey result = datacatalog.Datacatalog.PaginationOptions.SortKey.valueOf(sortKey_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortKey.UNRECOGNIZED : result; + } + + public static final int SORTORDER_FIELD_NUMBER = 4; + private int sortOrder_; + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public int getSortOrderValue() { + return sortOrder_; + } + /** + *
+     * the sort order of the results
+     * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortOrder result = datacatalog.Datacatalog.PaginationOptions.SortOrder.valueOf(sortOrder_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortOrder.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (limit_ != 0) { + output.writeUInt32(1, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + if (sortKey_ != datacatalog.Datacatalog.PaginationOptions.SortKey.CREATION_TIME.getNumber()) { + output.writeEnum(3, sortKey_); + } + if (sortOrder_ != datacatalog.Datacatalog.PaginationOptions.SortOrder.DESCENDING.getNumber()) { + output.writeEnum(4, sortOrder_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + if (sortKey_ != datacatalog.Datacatalog.PaginationOptions.SortKey.CREATION_TIME.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, sortKey_); + } + if (sortOrder_ != datacatalog.Datacatalog.PaginationOptions.SortOrder.DESCENDING.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, sortOrder_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datacatalog.Datacatalog.PaginationOptions)) { + return super.equals(obj); + } + datacatalog.Datacatalog.PaginationOptions other = (datacatalog.Datacatalog.PaginationOptions) obj; + + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (sortKey_ != other.sortKey_) return false; + if (sortOrder_ != other.sortOrder_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + SORTKEY_FIELD_NUMBER; + hash = (53 * hash) + sortKey_; + hash = (37 * hash) + SORTORDER_FIELD_NUMBER; + hash = (53 * hash) + sortOrder_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PaginationOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datacatalog.Datacatalog.PaginationOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datacatalog.Datacatalog.PaginationOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Pagination options for making list requests
+     * 
+ * + * Protobuf type {@code datacatalog.PaginationOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datacatalog.PaginationOptions) + datacatalog.Datacatalog.PaginationOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.PaginationOptions.class, datacatalog.Datacatalog.PaginationOptions.Builder.class); + } + + // Construct using datacatalog.Datacatalog.PaginationOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + limit_ = 0; + + token_ = ""; + + sortKey_ = 0; + + sortOrder_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; + } + + @java.lang.Override + public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { + return datacatalog.Datacatalog.PaginationOptions.getDefaultInstance(); + } + + @java.lang.Override + public datacatalog.Datacatalog.PaginationOptions build() { + datacatalog.Datacatalog.PaginationOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datacatalog.Datacatalog.PaginationOptions buildPartial() { + datacatalog.Datacatalog.PaginationOptions result = new datacatalog.Datacatalog.PaginationOptions(this); + result.limit_ = limit_; + result.token_ = token_; + result.sortKey_ = sortKey_; + result.sortOrder_ = sortOrder_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datacatalog.Datacatalog.PaginationOptions) { + return mergeFrom((datacatalog.Datacatalog.PaginationOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datacatalog.Datacatalog.PaginationOptions other) { + if (other == datacatalog.Datacatalog.PaginationOptions.getDefaultInstance()) return this; + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.sortKey_ != 0) { + setSortKeyValue(other.getSortKeyValue()); + } + if (other.sortOrder_ != 0) { + setSortOrderValue(other.getSortOrderValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.PaginationOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.PaginationOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int limit_ ; + /** + *
+       * the max number of results to return
+       * 
+ * + * uint32 limit = 1; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * the max number of results to return
+       * 
+ * + * uint32 limit = 1; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * the max number of results to return
+       * 
+ * + * uint32 limit = 1; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * the token to pass to fetch the next page
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private int sortKey_ = 0; + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public int getSortKeyValue() { + return sortKey_; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public Builder setSortKeyValue(int value) { + sortKey_ = value; + onChanged(); + return this; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortKey result = datacatalog.Datacatalog.PaginationOptions.SortKey.valueOf(sortKey_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortKey.UNRECOGNIZED : result; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public Builder setSortKey(datacatalog.Datacatalog.PaginationOptions.SortKey value) { + if (value == null) { + throw new NullPointerException(); + } + + sortKey_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * the property that we want to sort the results by
+       * 
+ * + * .datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + public Builder clearSortKey() { + + sortKey_ = 0; + onChanged(); + return this; + } + + private int sortOrder_ = 0; + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public int getSortOrderValue() { + return sortOrder_; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public Builder setSortOrderValue(int value) { + sortOrder_ = value; + onChanged(); + return this; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder() { + @SuppressWarnings("deprecation") + datacatalog.Datacatalog.PaginationOptions.SortOrder result = datacatalog.Datacatalog.PaginationOptions.SortOrder.valueOf(sortOrder_); + return result == null ? datacatalog.Datacatalog.PaginationOptions.SortOrder.UNRECOGNIZED : result; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public Builder setSortOrder(datacatalog.Datacatalog.PaginationOptions.SortOrder value) { + if (value == null) { + throw new NullPointerException(); + } + + sortOrder_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * the sort order of the results
+       * 
+ * + * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + public Builder clearSortOrder() { + + sortOrder_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datacatalog.PaginationOptions) + } + + // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) + private static final datacatalog.Datacatalog.PaginationOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.PaginationOptions(); + } + + public static datacatalog.Datacatalog.PaginationOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PaginationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PaginationOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateDatasetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateDatasetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetDatasetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetDatasetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetArtifactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetArtifactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateArtifactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_CreateArtifactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_AddTagRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_AddTagRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_AddTagResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_AddTagResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListArtifactsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListArtifactsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListDatasetsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ListDatasetsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_UpdateArtifactRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_UpdateArtifactResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ReservationID_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ReservationID_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Reservation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Reservation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ReleaseReservationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ReleaseReservationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Dataset_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Dataset_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Partition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Partition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_DatasetID_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_DatasetID_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Artifact_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Artifact_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ArtifactData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ArtifactData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Tag_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Tag_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Metadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Metadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_Metadata_KeyMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_Metadata_KeyMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_FilterExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_FilterExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_SinglePropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_ArtifactPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_TagPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_PartitionPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_KeyValuePair_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_KeyValuePair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_DatasetPropertyFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datacatalog_PaginationOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datacatalog_PaginationOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&flyteidl/datacatalog/datacatalog.proto" + + "\022\013datacatalog\032\034flyteidl/core/literals.pr" + + "oto\032\036google/protobuf/duration.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"=\n\024CreateDa" + + "tasetRequest\022%\n\007dataset\030\001 \001(\0132\024.datacata" + + "log.Dataset\"\027\n\025CreateDatasetResponse\"<\n\021" + + "GetDatasetRequest\022\'\n\007dataset\030\001 \001(\0132\026.dat" + + "acatalog.DatasetID\";\n\022GetDatasetResponse" + + "\022%\n\007dataset\030\001 \001(\0132\024.datacatalog.Dataset\"" + + "x\n\022GetArtifactRequest\022\'\n\007dataset\030\001 \001(\0132\026" + + ".datacatalog.DatasetID\022\025\n\013artifact_id\030\002 " + + "\001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014query_handl" + + "e\">\n\023GetArtifactResponse\022\'\n\010artifact\030\001 \001" + + "(\0132\025.datacatalog.Artifact\"@\n\025CreateArtif" + + "actRequest\022\'\n\010artifact\030\001 \001(\0132\025.datacatal" + + "og.Artifact\"\030\n\026CreateArtifactResponse\".\n" + + "\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.datacatalo" + + "g.Tag\"\020\n\016AddTagResponse\"\242\001\n\024ListArtifact" + + "sRequest\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog." + + "DatasetID\022-\n\006filter\030\002 \001(\0132\035.datacatalog." + + "FilterExpression\0222\n\npagination\030\003 \001(\0132\036.d" + + "atacatalog.PaginationOptions\"U\n\025ListArti" + + "factsResponse\022(\n\tartifacts\030\001 \003(\0132\025.datac" + + "atalog.Artifact\022\022\n\nnext_token\030\002 \001(\t\"x\n\023L" + + "istDatasetsRequest\022-\n\006filter\030\001 \001(\0132\035.dat" + + "acatalog.FilterExpression\0222\n\npagination\030" + + "\002 \001(\0132\036.datacatalog.PaginationOptions\"R\n" + + "\024ListDatasetsResponse\022&\n\010datasets\030\001 \003(\0132" + + "\024.datacatalog.Dataset\022\022\n\nnext_token\030\002 \001(" + + "\t\"\244\001\n\025UpdateArtifactRequest\022\'\n\007dataset\030\001" + + " \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifact" + + "_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000\022\'\n\004data\030" + + "\004 \003(\0132\031.datacatalog.ArtifactDataB\016\n\014quer" + + "y_handle\"-\n\026UpdateArtifactResponse\022\023\n\013ar" + + "tifact_id\030\001 \001(\t\"M\n\rReservationID\022*\n\ndata" + + "set_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010" + + "tag_name\030\002 \001(\t\"\234\001\n\035GetOrExtendReservatio" + + "nRequest\0222\n\016reservation_id\030\001 \001(\0132\032.datac" + + "atalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225" + + "\n\022heartbeat_interval\030\003 \001(\0132\031.google.prot" + + "obuf.Duration\"\343\001\n\013Reservation\0222\n\016reserva" + + "tion_id\030\001 \001(\0132\032.datacatalog.ReservationI" + + "D\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_interva" + + "l\030\003 \001(\0132\031.google.protobuf.Duration\022.\n\nex" + + "pires_at\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\'\n\010metadata\030\006 \001(\0132\025.datacatalog.Metad" + + "ata\"O\n\036GetOrExtendReservationResponse\022-\n" + + "\013reservation\030\001 \001(\0132\030.datacatalog.Reserva" + + "tion\"a\n\031ReleaseReservationRequest\0222\n\016res" + + "ervation_id\030\001 \001(\0132\032.datacatalog.Reservat" + + "ionID\022\020\n\010owner_id\030\002 \001(\t\"\034\n\032ReleaseReserv" + + "ationResponse\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.d" + + "atacatalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025" + + ".datacatalog.Metadata\022\025\n\rpartitionKeys\030\003" + + " \003(\t\"\'\n\tPartition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t\"Y\n\tDatasetID\022\017\n\007project\030\001 \001(\t\022\014\n\004n" + + "ame\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\017\n\007version\030\004 \001" + + "(\t\022\014\n\004UUID\030\005 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001(" + + "\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Dataset" + + "ID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.ArtifactD" + + "ata\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Meta" + + "data\022*\n\npartitions\030\005 \003(\0132\026.datacatalog.P" + + "artition\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Tag" + + "\022.\n\ncreated_at\030\007 \001(\0132\032.google.protobuf.T" + + "imestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022%" + + "\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal\"Q\n" + + "\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002 \001(\t\022" + + "\'\n\007dataset\030\003 \001(\0132\026.datacatalog.DatasetID" + + "\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.datacata" + + "log.Metadata.KeyMapEntry\032-\n\013KeyMapEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020Filte" + + "rExpression\0222\n\007filters\030\001 \003(\0132!.datacatal" + + "og.SinglePropertyFilter\"\211\003\n\024SingleProper" + + "tyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.datacatal" + + "og.TagPropertyFilterH\000\022@\n\020partition_filt" + + "er\030\002 \001(\0132$.datacatalog.PartitionProperty" + + "FilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#.data" + + "catalog.ArtifactPropertyFilterH\000\022<\n\016data" + + "set_filter\030\004 \001(\0132\".datacatalog.DatasetPr" + + "opertyFilterH\000\022F\n\010operator\030\n \001(\01624.datac" + + "atalog.SinglePropertyFilter.ComparisonOp" + + "erator\" \n\022ComparisonOperator\022\n\n\006EQUALS\020\000" + + "B\021\n\017property_filter\";\n\026ArtifactPropertyF" + + "ilter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010property" + + "\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\tH" + + "\000B\n\n\010property\"S\n\027PartitionPropertyFilter" + + "\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.KeyValue" + + "PairH\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetPropert" + + "yFilter\022\021\n\007project\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(\t" + + "H\000\022\020\n\006domain\030\003 \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000B" + + "\n\n\010property\"\361\001\n\021PaginationOptions\022\r\n\005lim" + + "it\030\001 \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(\016" + + "2&.datacatalog.PaginationOptions.SortKey" + + "\022;\n\tsortOrder\030\004 \001(\0162(.datacatalog.Pagina" + + "tionOptions.SortOrder\"*\n\tSortOrder\022\016\n\nDE" + + "SCENDING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n\r" + + "CREATION_TIME\020\0002\206\007\n\013DataCatalog\022V\n\rCreat" + + "eDataset\022!.datacatalog.CreateDatasetRequ" + + "est\032\".datacatalog.CreateDatasetResponse\022" + + "M\n\nGetDataset\022\036.datacatalog.GetDatasetRe" + + "quest\032\037.datacatalog.GetDatasetResponse\022Y" + + "\n\016CreateArtifact\022\".datacatalog.CreateArt" + + "ifactRequest\032#.datacatalog.CreateArtifac" + + "tResponse\022P\n\013GetArtifact\022\037.datacatalog.G" + + "etArtifactRequest\032 .datacatalog.GetArtif" + + "actResponse\022A\n\006AddTag\022\032.datacatalog.AddT" + + "agRequest\032\033.datacatalog.AddTagResponse\022V" + + "\n\rListArtifacts\022!.datacatalog.ListArtifa" + + "ctsRequest\032\".datacatalog.ListArtifactsRe" + + "sponse\022S\n\014ListDatasets\022 .datacatalog.Lis" + + "tDatasetsRequest\032!.datacatalog.ListDatas" + + "etsResponse\022Y\n\016UpdateArtifact\022\".datacata" + + "log.UpdateArtifactRequest\032#.datacatalog." + + "UpdateArtifactResponse\022q\n\026GetOrExtendRes" + + "ervation\022*.datacatalog.GetOrExtendReserv" + + "ationRequest\032+.datacatalog.GetOrExtendRe" + + "servationResponse\022e\n\022ReleaseReservation\022" + + "&.datacatalog.ReleaseReservationRequest\032" + + "\'.datacatalog.ReleaseReservationResponse" + + "B=Z;github.com/flyteorg/flyteidl/gen/pb-" + + "go/flyteidl/datacatalogb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_datacatalog_CreateDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateDatasetRequest_descriptor, + new java.lang.String[] { "Dataset", }); + internal_static_datacatalog_CreateDatasetResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateDatasetResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_GetDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetDatasetRequest_descriptor, + new java.lang.String[] { "Dataset", }); + internal_static_datacatalog_GetDatasetResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetDatasetResponse_descriptor, + new java.lang.String[] { "Dataset", }); + internal_static_datacatalog_GetArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetArtifactRequest_descriptor, + new java.lang.String[] { "Dataset", "ArtifactId", "TagName", "QueryHandle", }); + internal_static_datacatalog_GetArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetArtifactResponse_descriptor, + new java.lang.String[] { "Artifact", }); + internal_static_datacatalog_CreateArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateArtifactRequest_descriptor, + new java.lang.String[] { "Artifact", }); + internal_static_datacatalog_CreateArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_CreateArtifactResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_AddTagRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_datacatalog_AddTagRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_AddTagRequest_descriptor, + new java.lang.String[] { "Tag", }); + internal_static_datacatalog_AddTagResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_datacatalog_AddTagResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_AddTagResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_ListArtifactsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListArtifactsRequest_descriptor, + new java.lang.String[] { "Dataset", "Filter", "Pagination", }); + internal_static_datacatalog_ListArtifactsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListArtifactsResponse_descriptor, + new java.lang.String[] { "Artifacts", "NextToken", }); + internal_static_datacatalog_ListDatasetsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListDatasetsRequest_descriptor, + new java.lang.String[] { "Filter", "Pagination", }); + internal_static_datacatalog_ListDatasetsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ListDatasetsResponse_descriptor, + new java.lang.String[] { "Datasets", "NextToken", }); + internal_static_datacatalog_UpdateArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_UpdateArtifactRequest_descriptor, + new java.lang.String[] { "Dataset", "ArtifactId", "TagName", "Data", "QueryHandle", }); + internal_static_datacatalog_UpdateArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_UpdateArtifactResponse_descriptor, + new java.lang.String[] { "ArtifactId", }); + internal_static_datacatalog_ReservationID_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_datacatalog_ReservationID_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ReservationID_descriptor, + new java.lang.String[] { "DatasetId", "TagName", }); + internal_static_datacatalog_GetOrExtendReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetOrExtendReservationRequest_descriptor, + new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", }); + internal_static_datacatalog_Reservation_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_datacatalog_Reservation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Reservation_descriptor, + new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", "ExpiresAt", "Metadata", }); + internal_static_datacatalog_GetOrExtendReservationResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_GetOrExtendReservationResponse_descriptor, + new java.lang.String[] { "Reservation", }); + internal_static_datacatalog_ReleaseReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ReleaseReservationRequest_descriptor, + new java.lang.String[] { "ReservationId", "OwnerId", }); + internal_static_datacatalog_ReleaseReservationResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ReleaseReservationResponse_descriptor, + new java.lang.String[] { }); + internal_static_datacatalog_Dataset_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_datacatalog_Dataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Dataset_descriptor, + new java.lang.String[] { "Id", "Metadata", "PartitionKeys", }); + internal_static_datacatalog_Partition_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_datacatalog_Partition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Partition_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datacatalog_DatasetID_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_datacatalog_DatasetID_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_DatasetID_descriptor, + new java.lang.String[] { "Project", "Name", "Domain", "Version", "UUID", }); + internal_static_datacatalog_Artifact_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_datacatalog_Artifact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Artifact_descriptor, + new java.lang.String[] { "Id", "Dataset", "Data", "Metadata", "Partitions", "Tags", "CreatedAt", }); + internal_static_datacatalog_ArtifactData_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_datacatalog_ArtifactData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ArtifactData_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_datacatalog_Tag_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_datacatalog_Tag_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Tag_descriptor, + new java.lang.String[] { "Name", "ArtifactId", "Dataset", }); + internal_static_datacatalog_Metadata_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_datacatalog_Metadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Metadata_descriptor, + new java.lang.String[] { "KeyMap", }); + internal_static_datacatalog_Metadata_KeyMapEntry_descriptor = + internal_static_datacatalog_Metadata_descriptor.getNestedTypes().get(0); + internal_static_datacatalog_Metadata_KeyMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datacatalog_FilterExpression_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_datacatalog_FilterExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_FilterExpression_descriptor, + new java.lang.String[] { "Filters", }); + internal_static_datacatalog_SinglePropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_SinglePropertyFilter_descriptor, + new java.lang.String[] { "TagFilter", "PartitionFilter", "ArtifactFilter", "DatasetFilter", "Operator", "PropertyFilter", }); + internal_static_datacatalog_ArtifactPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_ArtifactPropertyFilter_descriptor, + new java.lang.String[] { "ArtifactId", "Property", }); + internal_static_datacatalog_TagPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_TagPropertyFilter_descriptor, + new java.lang.String[] { "TagName", "Property", }); + internal_static_datacatalog_PartitionPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_PartitionPropertyFilter_descriptor, + new java.lang.String[] { "KeyVal", "Property", }); + internal_static_datacatalog_KeyValuePair_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_datacatalog_KeyValuePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_KeyValuePair_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datacatalog_DatasetPropertyFilter_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_DatasetPropertyFilter_descriptor, + new java.lang.String[] { "Project", "Name", "Domain", "Version", "Property", }); + internal_static_datacatalog_PaginationOptions_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_datacatalog_PaginationOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datacatalog_PaginationOptions_descriptor, + new java.lang.String[] { "Limit", "Token", "SortKey", "SortOrder", }); + flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Agent.java b/flyteidl/gen/pb-java/flyteidl/admin/Agent.java new file mode 100644 index 0000000000..cefc777009 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Agent.java @@ -0,0 +1,7526 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/agent.proto + +package flyteidl.admin; + +public final class Agent { + private Agent() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The state of the execution is used to control its visibility in the UI/CLI.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * RETRYABLE_FAILURE = 0; + */ + RETRYABLE_FAILURE(0), + /** + * PERMANENT_FAILURE = 1; + */ + PERMANENT_FAILURE(1), + /** + * PENDING = 2; + */ + PENDING(2), + /** + * RUNNING = 3; + */ + RUNNING(3), + /** + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + UNRECOGNIZED(-1), + ; + + /** + * RETRYABLE_FAILURE = 0; + */ + public static final int RETRYABLE_FAILURE_VALUE = 0; + /** + * PERMANENT_FAILURE = 1; + */ + public static final int PERMANENT_FAILURE_VALUE = 1; + /** + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + /** + * RUNNING = 3; + */ + public static final int RUNNING_VALUE = 3; + /** + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: return RETRYABLE_FAILURE; + case 1: return PERMANENT_FAILURE; + case 2: return PENDING; + case 3: return RUNNING; + case 4: return SUCCEEDED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.Agent.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.State) + } + + public interface TaskExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of the task execution
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + boolean hasTaskExecutionId(); + /** + *
+     * ID of the task execution
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); + /** + *
+     * ID of the task execution
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); + + /** + *
+     * k8s namespace where the task is executed in
+     * 
+ * + * string namespace = 2; + */ + java.lang.String getNamespace(); + /** + *
+     * k8s namespace where the task is executed in
+     * 
+ * + * string namespace = 2; + */ + com.google.protobuf.ByteString + getNamespaceBytes(); + + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + int getLabelsCount(); + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + java.util.Map + getLabelsMap(); + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + int getAnnotationsCount(); + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+     * k8s service account associated with the task execution
+     * 
+ * + * string k8s_service_account = 5; + */ + java.lang.String getK8SServiceAccount(); + /** + *
+     * k8s service account associated with the task execution
+     * 
+ * + * string k8s_service_account = 5; + */ + com.google.protobuf.ByteString + getK8SServiceAccountBytes(); + + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + int getEnvironmentVariablesCount(); + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + boolean containsEnvironmentVariables( + java.lang.String key); + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getEnvironmentVariables(); + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + java.util.Map + getEnvironmentVariablesMap(); + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + + java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + + java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key); + } + /** + *
+   * Represents a subset of runtime task execution metadata that are relevant to external plugins.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionMetadata} + */ + public static final class TaskExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionMetadata) + TaskExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionMetadata.newBuilder() to construct. + private TaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionMetadata() { + namespace_ = ""; + k8SServiceAccount_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (taskExecutionId_ != null) { + subBuilder = taskExecutionId_.toBuilder(); + } + taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskExecutionId_); + taskExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + namespace_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + annotations_.getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + k8SServiceAccount_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000020; + } + com.google.protobuf.MapEntry + environmentVariables__ = input.readMessage( + EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + environmentVariables_.getMutableMap().put( + environmentVariables__.getKey(), environmentVariables__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + case 4: + return internalGetAnnotations(); + case 6: + return internalGetEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.TaskExecutionMetadata.class, flyteidl.admin.Agent.TaskExecutionMetadata.Builder.class); + } + + private int bitField0_; + public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + /** + *
+     * ID of the task execution
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionId_ != null; + } + /** + *
+     * ID of the task execution
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + /** + *
+     * ID of the task execution
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + return getTaskExecutionId(); + } + + public static final int NAMESPACE_FIELD_NUMBER = 2; + private volatile java.lang.Object namespace_; + /** + *
+     * k8s namespace where the task is executed in
+     * 
+ * + * string namespace = 2; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + *
+     * k8s namespace where the task is executed in
+     * 
+ * + * string namespace = 2; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 3; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels attached to the task execution
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 4; + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Annotations attached to the task execution
+     * 
+ * + * map<string, string> annotations = 4; + */ + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int K8S_SERVICE_ACCOUNT_FIELD_NUMBER = 5; + private volatile java.lang.Object k8SServiceAccount_; + /** + *
+     * k8s service account associated with the task execution
+     * 
+ * + * string k8s_service_account = 5; + */ + public java.lang.String getK8SServiceAccount() { + java.lang.Object ref = k8SServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + k8SServiceAccount_ = s; + return s; + } + } + /** + *
+     * k8s service account associated with the task execution
+     * 
+ * + * string k8s_service_account = 5; + */ + public com.google.protobuf.ByteString + getK8SServiceAccountBytes() { + java.lang.Object ref = k8SServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + k8SServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; + private static final class EnvironmentVariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField + internalGetEnvironmentVariables() { + if (environmentVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + return environmentVariables_; + } + + public int getEnvironmentVariablesCount() { + return internalGetEnvironmentVariables().getMap().size(); + } + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetEnvironmentVariables().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getEnvironmentVariables() { + return getEnvironmentVariablesMap(); + } + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + + public java.util.Map getEnvironmentVariablesMap() { + return internalGetEnvironmentVariables().getMap(); + } + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + + public java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Environment variables attached to the task execution
+     * 
+ * + * map<string, string> environment_variables = 6; + */ + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (taskExecutionId_ != null) { + output.writeMessage(1, getTaskExecutionId()); + } + if (!getNamespaceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 4); + if (!getK8SServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, k8SServiceAccount_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnvironmentVariables(), + EnvironmentVariablesDefaultEntryHolder.defaultEntry, + 6); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskExecutionId()); + } + if (!getNamespaceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, labels__); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, annotations__); + } + if (!getK8SServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, k8SServiceAccount_); + } + for (java.util.Map.Entry entry + : internalGetEnvironmentVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, environmentVariables__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.TaskExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.admin.Agent.TaskExecutionMetadata other = (flyteidl.admin.Agent.TaskExecutionMetadata) obj; + + if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; + if (hasTaskExecutionId()) { + if (!getTaskExecutionId() + .equals(other.getTaskExecutionId())) return false; + } + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!getK8SServiceAccount() + .equals(other.getK8SServiceAccount())) return false; + if (!internalGetEnvironmentVariables().equals( + other.internalGetEnvironmentVariables())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskExecutionId()) { + hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionId().hashCode(); + } + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + K8S_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getK8SServiceAccount().hashCode(); + if (!internalGetEnvironmentVariables().getMap().isEmpty()) { + hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetEnvironmentVariables().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.TaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.TaskExecutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a subset of runtime task execution metadata that are relevant to external plugins.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionMetadata) + flyteidl.admin.Agent.TaskExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + case 4: + return internalGetAnnotations(); + case 6: + return internalGetEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + case 4: + return internalGetMutableAnnotations(); + case 6: + return internalGetMutableEnvironmentVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.TaskExecutionMetadata.class, flyteidl.admin.Agent.TaskExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.admin.Agent.TaskExecutionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + namespace_ = ""; + + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + k8SServiceAccount_ = ""; + + internalGetMutableEnvironmentVariables().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.TaskExecutionMetadata getDefaultInstanceForType() { + return flyteidl.admin.Agent.TaskExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.TaskExecutionMetadata build() { + flyteidl.admin.Agent.TaskExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.TaskExecutionMetadata buildPartial() { + flyteidl.admin.Agent.TaskExecutionMetadata result = new flyteidl.admin.Agent.TaskExecutionMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskExecutionIdBuilder_ == null) { + result.taskExecutionId_ = taskExecutionId_; + } else { + result.taskExecutionId_ = taskExecutionIdBuilder_.build(); + } + result.namespace_ = namespace_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + result.k8SServiceAccount_ = k8SServiceAccount_; + result.environmentVariables_ = internalGetEnvironmentVariables(); + result.environmentVariables_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.TaskExecutionMetadata) { + return mergeFrom((flyteidl.admin.Agent.TaskExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.TaskExecutionMetadata other) { + if (other == flyteidl.admin.Agent.TaskExecutionMetadata.getDefaultInstance()) return this; + if (other.hasTaskExecutionId()) { + mergeTaskExecutionId(other.getTaskExecutionId()); + } + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + if (!other.getK8SServiceAccount().isEmpty()) { + k8SServiceAccount_ = other.k8SServiceAccount_; + onChanged(); + } + internalGetMutableEnvironmentVariables().mergeFrom( + other.internalGetEnvironmentVariables()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.TaskExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.TaskExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } else { + return taskExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskExecutionId_ = value; + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = builderForValue.build(); + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (taskExecutionId_ != null) { + taskExecutionId_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); + } else { + taskExecutionId_ = value; + } + onChanged(); + } else { + taskExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder clearTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + onChanged(); + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { + + onChanged(); + return getTaskExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + if (taskExecutionIdBuilder_ != null) { + return taskExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return taskExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + } + /** + *
+       * ID of the task execution
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getTaskExecutionIdFieldBuilder() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getTaskExecutionId(), + getParentForChildren(), + isClean()); + taskExecutionId_ = null; + } + return taskExecutionIdBuilder_; + } + + private java.lang.Object namespace_ = ""; + /** + *
+       * k8s namespace where the task is executed in
+       * 
+ * + * string namespace = 2; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * k8s namespace where the task is executed in
+       * 
+ * + * string namespace = 2; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * k8s namespace where the task is executed in
+       * 
+ * + * string namespace = 2; + */ + public Builder setNamespace( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + namespace_ = value; + onChanged(); + return this; + } + /** + *
+       * k8s namespace where the task is executed in
+       * 
+ * + * string namespace = 2; + */ + public Builder clearNamespace() { + + namespace_ = getDefaultInstance().getNamespace(); + onChanged(); + return this; + } + /** + *
+       * k8s namespace where the task is executed in
+       * 
+ * + * string namespace = 2; + */ + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + namespace_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+       * Labels attached to the task execution
+       * 
+ * + * map<string, string> labels = 3; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+       * Labels attached to the task execution
+       * 
+ * + * map<string, string> labels = 3; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+       * Labels attached to the task execution
+       * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Labels attached to the task execution
+       * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Labels attached to the task execution
+       * 
+ * + * map<string, string> labels = 3; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+       * Labels attached to the task execution
+       * 
+ * + * map<string, string> labels = 3; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Labels attached to the task execution
+       * 
+ * + * map<string, string> labels = 3; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged();; + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+       * Annotations attached to the task execution
+       * 
+ * + * map<string, string> annotations = 4; + */ + + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+       * Annotations attached to the task execution
+       * 
+ * + * map<string, string> annotations = 4; + */ + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+       * Annotations attached to the task execution
+       * 
+ * + * map<string, string> annotations = 4; + */ + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Annotations attached to the task execution
+       * 
+ * + * map<string, string> annotations = 4; + */ + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Annotations attached to the task execution
+       * 
+ * + * map<string, string> annotations = 4; + */ + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+       * Annotations attached to the task execution
+       * 
+ * + * map<string, string> annotations = 4; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Annotations attached to the task execution
+       * 
+ * + * map<string, string> annotations = 4; + */ + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object k8SServiceAccount_ = ""; + /** + *
+       * k8s service account associated with the task execution
+       * 
+ * + * string k8s_service_account = 5; + */ + public java.lang.String getK8SServiceAccount() { + java.lang.Object ref = k8SServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + k8SServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * k8s service account associated with the task execution
+       * 
+ * + * string k8s_service_account = 5; + */ + public com.google.protobuf.ByteString + getK8SServiceAccountBytes() { + java.lang.Object ref = k8SServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + k8SServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * k8s service account associated with the task execution
+       * 
+ * + * string k8s_service_account = 5; + */ + public Builder setK8SServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + k8SServiceAccount_ = value; + onChanged(); + return this; + } + /** + *
+       * k8s service account associated with the task execution
+       * 
+ * + * string k8s_service_account = 5; + */ + public Builder clearK8SServiceAccount() { + + k8SServiceAccount_ = getDefaultInstance().getK8SServiceAccount(); + onChanged(); + return this; + } + /** + *
+       * k8s service account associated with the task execution
+       * 
+ * + * string k8s_service_account = 5; + */ + public Builder setK8SServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + k8SServiceAccount_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> environmentVariables_; + private com.google.protobuf.MapField + internalGetEnvironmentVariables() { + if (environmentVariables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + return environmentVariables_; + } + private com.google.protobuf.MapField + internalGetMutableEnvironmentVariables() { + onChanged();; + if (environmentVariables_ == null) { + environmentVariables_ = com.google.protobuf.MapField.newMapField( + EnvironmentVariablesDefaultEntryHolder.defaultEntry); + } + if (!environmentVariables_.isMutable()) { + environmentVariables_ = environmentVariables_.copy(); + } + return environmentVariables_; + } + + public int getEnvironmentVariablesCount() { + return internalGetEnvironmentVariables().getMap().size(); + } + /** + *
+       * Environment variables attached to the task execution
+       * 
+ * + * map<string, string> environment_variables = 6; + */ + + public boolean containsEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetEnvironmentVariables().getMap().containsKey(key); + } + /** + * Use {@link #getEnvironmentVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getEnvironmentVariables() { + return getEnvironmentVariablesMap(); + } + /** + *
+       * Environment variables attached to the task execution
+       * 
+ * + * map<string, string> environment_variables = 6; + */ + + public java.util.Map getEnvironmentVariablesMap() { + return internalGetEnvironmentVariables().getMap(); + } + /** + *
+       * Environment variables attached to the task execution
+       * 
+ * + * map<string, string> environment_variables = 6; + */ + + public java.lang.String getEnvironmentVariablesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Environment variables attached to the task execution
+       * 
+ * + * map<string, string> environment_variables = 6; + */ + + public java.lang.String getEnvironmentVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetEnvironmentVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearEnvironmentVariables() { + internalGetMutableEnvironmentVariables().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Environment variables attached to the task execution
+       * 
+ * + * map<string, string> environment_variables = 6; + */ + + public Builder removeEnvironmentVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableEnvironmentVariables().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableEnvironmentVariables() { + return internalGetMutableEnvironmentVariables().getMutableMap(); + } + /** + *
+       * Environment variables attached to the task execution
+       * 
+ * + * map<string, string> environment_variables = 6; + */ + public Builder putEnvironmentVariables( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableEnvironmentVariables().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Environment variables attached to the task execution
+       * 
+ * + * map<string, string> environment_variables = 6; + */ + + public Builder putAllEnvironmentVariables( + java.util.Map values) { + internalGetMutableEnvironmentVariables().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionMetadata) + private static final flyteidl.admin.Agent.TaskExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.TaskExecutionMetadata(); + } + + public static flyteidl.admin.Agent.TaskExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.TaskExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + java.lang.String getOutputPrefix(); + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + com.google.protobuf.ByteString + getOutputPrefixBytes(); + + /** + *
+     * subset of runtime task execution metadata.
+     * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + boolean hasTaskExecutionMetadata(); + /** + *
+     * subset of runtime task execution metadata.
+     * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + flyteidl.admin.Agent.TaskExecutionMetadata getTaskExecutionMetadata(); + /** + *
+     * subset of runtime task execution metadata.
+     * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + flyteidl.admin.Agent.TaskExecutionMetadataOrBuilder getTaskExecutionMetadataOrBuilder(); + } + /** + *
+   * Represents a request structure to create task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskRequest} + */ + public static final class CreateTaskRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateTaskRequest) + CreateTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTaskRequest.newBuilder() to construct. + private CreateTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateTaskRequest() { + outputPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputPrefix_ = s; + break; + } + case 34: { + flyteidl.admin.Agent.TaskExecutionMetadata.Builder subBuilder = null; + if (taskExecutionMetadata_ != null) { + subBuilder = taskExecutionMetadata_.toBuilder(); + } + taskExecutionMetadata_ = input.readMessage(flyteidl.admin.Agent.TaskExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskExecutionMetadata_); + taskExecutionMetadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskRequest.class, flyteidl.admin.Agent.CreateTaskRequest.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int TEMPLATE_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int OUTPUT_PREFIX_FIELD_NUMBER = 3; + private volatile java.lang.Object outputPrefix_; + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + public java.lang.String getOutputPrefix() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPrefix_ = s; + return s; + } + } + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + public com.google.protobuf.ByteString + getOutputPrefixBytes() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_EXECUTION_METADATA_FIELD_NUMBER = 4; + private flyteidl.admin.Agent.TaskExecutionMetadata taskExecutionMetadata_; + /** + *
+     * subset of runtime task execution metadata.
+     * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public boolean hasTaskExecutionMetadata() { + return taskExecutionMetadata_ != null; + } + /** + *
+     * subset of runtime task execution metadata.
+     * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public flyteidl.admin.Agent.TaskExecutionMetadata getTaskExecutionMetadata() { + return taskExecutionMetadata_ == null ? flyteidl.admin.Agent.TaskExecutionMetadata.getDefaultInstance() : taskExecutionMetadata_; + } + /** + *
+     * subset of runtime task execution metadata.
+     * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public flyteidl.admin.Agent.TaskExecutionMetadataOrBuilder getTaskExecutionMetadataOrBuilder() { + return getTaskExecutionMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (template_ != null) { + output.writeMessage(2, getTemplate()); + } + if (!getOutputPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPrefix_); + } + if (taskExecutionMetadata_ != null) { + output.writeMessage(4, getTaskExecutionMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTemplate()); + } + if (!getOutputPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPrefix_); + } + if (taskExecutionMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTaskExecutionMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.CreateTaskRequest)) { + return super.equals(obj); + } + flyteidl.admin.Agent.CreateTaskRequest other = (flyteidl.admin.Agent.CreateTaskRequest) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!getOutputPrefix() + .equals(other.getOutputPrefix())) return false; + if (hasTaskExecutionMetadata() != other.hasTaskExecutionMetadata()) return false; + if (hasTaskExecutionMetadata()) { + if (!getTaskExecutionMetadata() + .equals(other.getTaskExecutionMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (37 * hash) + OUTPUT_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getOutputPrefix().hashCode(); + if (hasTaskExecutionMetadata()) { + hash = (37 * hash) + TASK_EXECUTION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.CreateTaskRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to create task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateTaskRequest) + flyteidl.admin.Agent.CreateTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskRequest.class, flyteidl.admin.Agent.CreateTaskRequest.Builder.class); + } + + // Construct using flyteidl.admin.Agent.CreateTaskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + outputPrefix_ = ""; + + if (taskExecutionMetadataBuilder_ == null) { + taskExecutionMetadata_ = null; + } else { + taskExecutionMetadata_ = null; + taskExecutionMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest getDefaultInstanceForType() { + return flyteidl.admin.Agent.CreateTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest build() { + flyteidl.admin.Agent.CreateTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest buildPartial() { + flyteidl.admin.Agent.CreateTaskRequest result = new flyteidl.admin.Agent.CreateTaskRequest(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + result.outputPrefix_ = outputPrefix_; + if (taskExecutionMetadataBuilder_ == null) { + result.taskExecutionMetadata_ = taskExecutionMetadata_; + } else { + result.taskExecutionMetadata_ = taskExecutionMetadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.CreateTaskRequest) { + return mergeFrom((flyteidl.admin.Agent.CreateTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.CreateTaskRequest other) { + if (other == flyteidl.admin.Agent.CreateTaskRequest.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (!other.getOutputPrefix().isEmpty()) { + outputPrefix_ = other.outputPrefix_; + onChanged(); + } + if (other.hasTaskExecutionMetadata()) { + mergeTaskExecutionMetadata(other.getTaskExecutionMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.CreateTaskRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.CreateTaskRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private java.lang.Object outputPrefix_ = ""; + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public java.lang.String getOutputPrefix() { + java.lang.Object ref = outputPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public com.google.protobuf.ByteString + getOutputPrefixBytes() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder setOutputPrefix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputPrefix_ = value; + onChanged(); + return this; + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder clearOutputPrefix() { + + outputPrefix_ = getDefaultInstance().getOutputPrefix(); + onChanged(); + return this; + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder setOutputPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputPrefix_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Agent.TaskExecutionMetadata taskExecutionMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.TaskExecutionMetadata, flyteidl.admin.Agent.TaskExecutionMetadata.Builder, flyteidl.admin.Agent.TaskExecutionMetadataOrBuilder> taskExecutionMetadataBuilder_; + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public boolean hasTaskExecutionMetadata() { + return taskExecutionMetadataBuilder_ != null || taskExecutionMetadata_ != null; + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public flyteidl.admin.Agent.TaskExecutionMetadata getTaskExecutionMetadata() { + if (taskExecutionMetadataBuilder_ == null) { + return taskExecutionMetadata_ == null ? flyteidl.admin.Agent.TaskExecutionMetadata.getDefaultInstance() : taskExecutionMetadata_; + } else { + return taskExecutionMetadataBuilder_.getMessage(); + } + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public Builder setTaskExecutionMetadata(flyteidl.admin.Agent.TaskExecutionMetadata value) { + if (taskExecutionMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskExecutionMetadata_ = value; + onChanged(); + } else { + taskExecutionMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public Builder setTaskExecutionMetadata( + flyteidl.admin.Agent.TaskExecutionMetadata.Builder builderForValue) { + if (taskExecutionMetadataBuilder_ == null) { + taskExecutionMetadata_ = builderForValue.build(); + onChanged(); + } else { + taskExecutionMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public Builder mergeTaskExecutionMetadata(flyteidl.admin.Agent.TaskExecutionMetadata value) { + if (taskExecutionMetadataBuilder_ == null) { + if (taskExecutionMetadata_ != null) { + taskExecutionMetadata_ = + flyteidl.admin.Agent.TaskExecutionMetadata.newBuilder(taskExecutionMetadata_).mergeFrom(value).buildPartial(); + } else { + taskExecutionMetadata_ = value; + } + onChanged(); + } else { + taskExecutionMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public Builder clearTaskExecutionMetadata() { + if (taskExecutionMetadataBuilder_ == null) { + taskExecutionMetadata_ = null; + onChanged(); + } else { + taskExecutionMetadata_ = null; + taskExecutionMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public flyteidl.admin.Agent.TaskExecutionMetadata.Builder getTaskExecutionMetadataBuilder() { + + onChanged(); + return getTaskExecutionMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + public flyteidl.admin.Agent.TaskExecutionMetadataOrBuilder getTaskExecutionMetadataOrBuilder() { + if (taskExecutionMetadataBuilder_ != null) { + return taskExecutionMetadataBuilder_.getMessageOrBuilder(); + } else { + return taskExecutionMetadata_ == null ? + flyteidl.admin.Agent.TaskExecutionMetadata.getDefaultInstance() : taskExecutionMetadata_; + } + } + /** + *
+       * subset of runtime task execution metadata.
+       * 
+ * + * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.TaskExecutionMetadata, flyteidl.admin.Agent.TaskExecutionMetadata.Builder, flyteidl.admin.Agent.TaskExecutionMetadataOrBuilder> + getTaskExecutionMetadataFieldBuilder() { + if (taskExecutionMetadataBuilder_ == null) { + taskExecutionMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.TaskExecutionMetadata, flyteidl.admin.Agent.TaskExecutionMetadata.Builder, flyteidl.admin.Agent.TaskExecutionMetadataOrBuilder>( + getTaskExecutionMetadata(), + getParentForChildren(), + isClean()); + taskExecutionMetadata_ = null; + } + return taskExecutionMetadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.CreateTaskRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskRequest) + private static final flyteidl.admin.Agent.CreateTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.CreateTaskRequest(); + } + + public static flyteidl.admin.Agent.CreateTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTaskRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateTaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateTaskResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 1; + */ + com.google.protobuf.ByteString getResourceMeta(); + } + /** + *
+   * Represents a create response structure.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskResponse} + */ + public static final class CreateTaskResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateTaskResponse) + CreateTaskResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTaskResponse.newBuilder() to construct. + private CreateTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateTaskResponse() { + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateTaskResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + resourceMeta_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskResponse.class, flyteidl.admin.Agent.CreateTaskResponse.Builder.class); + } + + public static final int RESOURCE_META_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+     * 
+ * + * bytes resource_meta = 1; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!resourceMeta_.isEmpty()) { + output.writeBytes(1, resourceMeta_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, resourceMeta_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.CreateTaskResponse)) { + return super.equals(obj); + } + flyteidl.admin.Agent.CreateTaskResponse other = (flyteidl.admin.Agent.CreateTaskResponse) obj; + + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.CreateTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.CreateTaskResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a create response structure.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.CreateTaskResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateTaskResponse) + flyteidl.admin.Agent.CreateTaskResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.CreateTaskResponse.class, flyteidl.admin.Agent.CreateTaskResponse.Builder.class); + } + + // Construct using flyteidl.admin.Agent.CreateTaskResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse getDefaultInstanceForType() { + return flyteidl.admin.Agent.CreateTaskResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse build() { + flyteidl.admin.Agent.CreateTaskResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse buildPartial() { + flyteidl.admin.Agent.CreateTaskResponse result = new flyteidl.admin.Agent.CreateTaskResponse(this); + result.resourceMeta_ = resourceMeta_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.CreateTaskResponse) { + return mergeFrom((flyteidl.admin.Agent.CreateTaskResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.CreateTaskResponse other) { + if (other == flyteidl.admin.Agent.CreateTaskResponse.getDefaultInstance()) return this; + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.CreateTaskResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.CreateTaskResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 1; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 1; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
+       * 
+ * + * bytes resource_meta = 1; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.CreateTaskResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskResponse) + private static final flyteidl.admin.Agent.CreateTaskResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.CreateTaskResponse(); + } + + public static flyteidl.admin.Agent.CreateTaskResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTaskResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTaskResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.CreateTaskResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + com.google.protobuf.ByteString getResourceMeta(); + } + /** + *
+   * A message used to fetch a job resource from flyte agent server.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskRequest} + */ + public static final class GetTaskRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskRequest) + GetTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskRequest.newBuilder() to construct. + private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskRequest() { + taskType_ = ""; + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + + resourceMeta_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskRequest.class, flyteidl.admin.Agent.GetTaskRequest.Builder.class); + } + + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_META_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + output.writeBytes(2, resourceMeta_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, resourceMeta_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.GetTaskRequest)) { + return super.equals(obj); + } + flyteidl.admin.Agent.GetTaskRequest other = (flyteidl.admin.Agent.GetTaskRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.GetTaskRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to fetch a job resource from flyte agent server.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskRequest) + flyteidl.admin.Agent.GetTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskRequest.class, flyteidl.admin.Agent.GetTaskRequest.Builder.class); + } + + // Construct using flyteidl.admin.Agent.GetTaskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest getDefaultInstanceForType() { + return flyteidl.admin.Agent.GetTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest build() { + flyteidl.admin.Agent.GetTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest buildPartial() { + flyteidl.admin.Agent.GetTaskRequest result = new flyteidl.admin.Agent.GetTaskRequest(this); + result.taskType_ = taskType_; + result.resourceMeta_ = resourceMeta_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.GetTaskRequest) { + return mergeFrom((flyteidl.admin.Agent.GetTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.GetTaskRequest other) { + if (other == flyteidl.admin.Agent.GetTaskRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.GetTaskRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.GetTaskRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskRequest) + private static final flyteidl.admin.Agent.GetTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.GetTaskRequest(); + } + + public static flyteidl.admin.Agent.GetTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.Resource resource = 1; + */ + boolean hasResource(); + /** + * .flyteidl.admin.Resource resource = 1; + */ + flyteidl.admin.Agent.Resource getResource(); + /** + * .flyteidl.admin.Resource resource = 1; + */ + flyteidl.admin.Agent.ResourceOrBuilder getResourceOrBuilder(); + } + /** + *
+   * Response to get an individual task resource.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskResponse} + */ + public static final class GetTaskResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskResponse) + GetTaskResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskResponse.newBuilder() to construct. + private GetTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTaskResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTaskResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Agent.Resource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = input.readMessage(flyteidl.admin.Agent.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskResponse.class, flyteidl.admin.Agent.GetTaskResponse.Builder.class); + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + private flyteidl.admin.Agent.Resource resource_; + /** + * .flyteidl.admin.Resource resource = 1; + */ + public boolean hasResource() { + return resource_ != null; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.Resource getResource() { + return resource_ == null ? flyteidl.admin.Agent.Resource.getDefaultInstance() : resource_; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.ResourceOrBuilder getResourceOrBuilder() { + return getResource(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resource_ != null) { + output.writeMessage(1, getResource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResource()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.GetTaskResponse)) { + return super.equals(obj); + } + flyteidl.admin.Agent.GetTaskResponse other = (flyteidl.admin.Agent.GetTaskResponse) obj; + + if (hasResource() != other.hasResource()) return false; + if (hasResource()) { + if (!getResource() + .equals(other.getResource())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.GetTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.GetTaskResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to get an individual task resource.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetTaskResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskResponse) + flyteidl.admin.Agent.GetTaskResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.GetTaskResponse.class, flyteidl.admin.Agent.GetTaskResponse.Builder.class); + } + + // Construct using flyteidl.admin.Agent.GetTaskResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resourceBuilder_ == null) { + resource_ = null; + } else { + resource_ = null; + resourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_GetTaskResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse getDefaultInstanceForType() { + return flyteidl.admin.Agent.GetTaskResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse build() { + flyteidl.admin.Agent.GetTaskResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse buildPartial() { + flyteidl.admin.Agent.GetTaskResponse result = new flyteidl.admin.Agent.GetTaskResponse(this); + if (resourceBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = resourceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.GetTaskResponse) { + return mergeFrom((flyteidl.admin.Agent.GetTaskResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.GetTaskResponse other) { + if (other == flyteidl.admin.Agent.GetTaskResponse.getDefaultInstance()) return this; + if (other.hasResource()) { + mergeResource(other.getResource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.GetTaskResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.GetTaskResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Agent.Resource resource_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.Resource, flyteidl.admin.Agent.Resource.Builder, flyteidl.admin.Agent.ResourceOrBuilder> resourceBuilder_; + /** + * .flyteidl.admin.Resource resource = 1; + */ + public boolean hasResource() { + return resourceBuilder_ != null || resource_ != null; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.Resource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null ? flyteidl.admin.Agent.Resource.getDefaultInstance() : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder setResource(flyteidl.admin.Agent.Resource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder setResource( + flyteidl.admin.Agent.Resource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder mergeResource(flyteidl.admin.Agent.Resource value) { + if (resourceBuilder_ == null) { + if (resource_ != null) { + resource_ = + flyteidl.admin.Agent.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + resourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + resource_ = null; + onChanged(); + } else { + resource_ = null; + resourceBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.Resource.Builder getResourceBuilder() { + + onChanged(); + return getResourceFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + public flyteidl.admin.Agent.ResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null ? + flyteidl.admin.Agent.Resource.getDefaultInstance() : resource_; + } + } + /** + * .flyteidl.admin.Resource resource = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.Resource, flyteidl.admin.Agent.Resource.Builder, flyteidl.admin.Agent.ResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Agent.Resource, flyteidl.admin.Agent.Resource.Builder, flyteidl.admin.Agent.ResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); + resource_ = null; + } + return resourceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetTaskResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskResponse) + private static final flyteidl.admin.Agent.GetTaskResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.GetTaskResponse(); + } + + public static flyteidl.admin.Agent.GetTaskResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTaskResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTaskResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.GetTaskResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Resource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + int getStateValue(); + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + flyteidl.admin.Agent.State getState(); + + /** + *
+     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + flyteidl.core.Literals.LiteralMap getOutputs(); + /** + *
+     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.Resource} + */ + public static final class Resource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Resource) + ResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resource.newBuilder() to construct. + private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Resource() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Resource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.Resource.class, flyteidl.admin.Agent.Resource.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.State state = 1; + */ + public flyteidl.admin.Agent.State getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Agent.State result = flyteidl.admin.Agent.State.valueOf(state_); + return result == null ? flyteidl.admin.Agent.State.UNRECOGNIZED : result; + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Literals.LiteralMap outputs_; + /** + *
+     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getOutputs() { + return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } + /** + *
+     * The outputs of the execution. It's typically used by sql task. Agent service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != flyteidl.admin.Agent.State.RETRYABLE_FAILURE.getNumber()) { + output.writeEnum(1, state_); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.admin.Agent.State.RETRYABLE_FAILURE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.Resource)) { + return super.equals(obj); + } + flyteidl.admin.Agent.Resource other = (flyteidl.admin.Agent.Resource) obj; + + if (state_ != other.state_) return false; + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.Resource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.Resource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.Resource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.Resource parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.Resource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.Resource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.Resource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.Resource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Resource) + flyteidl.admin.Agent.ResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.Resource.class, flyteidl.admin.Agent.Resource.Builder.class); + } + + // Construct using flyteidl.admin.Agent.Resource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_Resource_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource getDefaultInstanceForType() { + return flyteidl.admin.Agent.Resource.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource build() { + flyteidl.admin.Agent.Resource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource buildPartial() { + flyteidl.admin.Agent.Resource result = new flyteidl.admin.Agent.Resource(this); + result.state_ = state_; + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.Resource) { + return mergeFrom((flyteidl.admin.Agent.Resource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.Resource other) { + if (other == flyteidl.admin.Agent.Resource.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.Resource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.Resource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public flyteidl.admin.Agent.State getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Agent.State result = flyteidl.admin.Agent.State.valueOf(state_); + return result == null ? flyteidl.admin.Agent.State.UNRECOGNIZED : result; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public Builder setState(flyteidl.admin.Agent.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.State state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Literals.LiteralMap outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputsBuilder_; + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder setOutputs(flyteidl.core.Literals.LiteralMap value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder setOutputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder mergeOutputs(flyteidl.core.Literals.LiteralMap value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Agent service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Resource) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Resource) + private static final flyteidl.admin.Agent.Resource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.Resource(); + } + + public static flyteidl.admin.Agent.Resource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.Resource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DeleteTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + com.google.protobuf.ByteString getResourceMeta(); + } + /** + *
+   * A message used to delete a task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskRequest} + */ + public static final class DeleteTaskRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DeleteTaskRequest) + DeleteTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTaskRequest.newBuilder() to construct. + private DeleteTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteTaskRequest() { + taskType_ = ""; + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + + resourceMeta_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskRequest.class, flyteidl.admin.Agent.DeleteTaskRequest.Builder.class); + } + + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_META_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString resourceMeta_; + /** + *
+     * Metadata about the resource to be pass to the agent.
+     * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + output.writeBytes(2, resourceMeta_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!resourceMeta_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, resourceMeta_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.DeleteTaskRequest)) { + return super.equals(obj); + } + flyteidl.admin.Agent.DeleteTaskRequest other = (flyteidl.admin.Agent.DeleteTaskRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getResourceMeta() + .equals(other.getResourceMeta())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; + hash = (53 * hash) + getResourceMeta().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.DeleteTaskRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to delete a task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DeleteTaskRequest) + flyteidl.admin.Agent.DeleteTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskRequest.class, flyteidl.admin.Agent.DeleteTaskRequest.Builder.class); + } + + // Construct using flyteidl.admin.Agent.DeleteTaskRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest getDefaultInstanceForType() { + return flyteidl.admin.Agent.DeleteTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest build() { + flyteidl.admin.Agent.DeleteTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest buildPartial() { + flyteidl.admin.Agent.DeleteTaskRequest result = new flyteidl.admin.Agent.DeleteTaskRequest(this); + result.taskType_ = taskType_; + result.resourceMeta_ = resourceMeta_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.DeleteTaskRequest) { + return mergeFrom((flyteidl.admin.Agent.DeleteTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.DeleteTaskRequest other) { + if (other == flyteidl.admin.Agent.DeleteTaskRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { + setResourceMeta(other.getResourceMeta()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.DeleteTaskRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.DeleteTaskRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public com.google.protobuf.ByteString getResourceMeta() { + return resourceMeta_; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder setResourceMeta(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceMeta_ = value; + onChanged(); + return this; + } + /** + *
+       * Metadata about the resource to be pass to the agent.
+       * 
+ * + * bytes resource_meta = 2; + */ + public Builder clearResourceMeta() { + + resourceMeta_ = getDefaultInstance().getResourceMeta(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DeleteTaskRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskRequest) + private static final flyteidl.admin.Agent.DeleteTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.DeleteTaskRequest(); + } + + public static flyteidl.admin.Agent.DeleteTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTaskRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTaskRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteTaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DeleteTaskResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response to delete a task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskResponse} + */ + public static final class DeleteTaskResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DeleteTaskResponse) + DeleteTaskResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTaskResponse.newBuilder() to construct. + private DeleteTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteTaskResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteTaskResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskResponse.class, flyteidl.admin.Agent.DeleteTaskResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Agent.DeleteTaskResponse)) { + return super.equals(obj); + } + flyteidl.admin.Agent.DeleteTaskResponse other = (flyteidl.admin.Agent.DeleteTaskResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Agent.DeleteTaskResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Agent.DeleteTaskResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to delete a task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DeleteTaskResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DeleteTaskResponse) + flyteidl.admin.Agent.DeleteTaskResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Agent.DeleteTaskResponse.class, flyteidl.admin.Agent.DeleteTaskResponse.Builder.class); + } + + // Construct using flyteidl.admin.Agent.DeleteTaskResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Agent.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse getDefaultInstanceForType() { + return flyteidl.admin.Agent.DeleteTaskResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse build() { + flyteidl.admin.Agent.DeleteTaskResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse buildPartial() { + flyteidl.admin.Agent.DeleteTaskResponse result = new flyteidl.admin.Agent.DeleteTaskResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Agent.DeleteTaskResponse) { + return mergeFrom((flyteidl.admin.Agent.DeleteTaskResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Agent.DeleteTaskResponse other) { + if (other == flyteidl.admin.Agent.DeleteTaskResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Agent.DeleteTaskResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Agent.DeleteTaskResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DeleteTaskResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskResponse) + private static final flyteidl.admin.Agent.DeleteTaskResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Agent.DeleteTaskResponse(); + } + + public static flyteidl.admin.Agent.DeleteTaskResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTaskResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTaskResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Agent.DeleteTaskResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_CreateTaskRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_CreateTaskResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetTaskResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Resource_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Resource_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" + + "dmin\032\034flyteidl/core/literals.proto\032\031flyt" + + "eidl/core/tasks.proto\032\035flyteidl/core/int" + + "erface.proto\032\036flyteidl/core/identifier.p" + + "roto\"\232\004\n\025TaskExecutionMetadata\022A\n\021task_e" + + "xecution_id\030\001 \001(\0132&.flyteidl.core.TaskEx" + + "ecutionIdentifier\022\021\n\tnamespace\030\002 \001(\t\022A\n\006" + + "labels\030\003 \003(\01321.flyteidl.admin.TaskExecut" + + "ionMetadata.LabelsEntry\022K\n\013annotations\030\004" + + " \003(\01326.flyteidl.admin.TaskExecutionMetad" + + "ata.AnnotationsEntry\022\033\n\023k8s_service_acco" + + "unt\030\005 \001(\t\022^\n\025environment_variables\030\006 \003(\013" + + "2?.flyteidl.admin.TaskExecutionMetadata." + + "EnvironmentVariablesEntry\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Anno" + + "tationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\032;\n\031EnvironmentVariablesEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\314\001\n\021CreateTask" + + "Request\022)\n\006inputs\030\001 \001(\0132\031.flyteidl.core." + + "LiteralMap\022-\n\010template\030\002 \001(\0132\033.flyteidl." + + "core.TaskTemplate\022\025\n\routput_prefix\030\003 \001(\t" + + "\022F\n\027task_execution_metadata\030\004 \001(\0132%.flyt" + + "eidl.admin.TaskExecutionMetadata\"+\n\022Crea" + + "teTaskResponse\022\025\n\rresource_meta\030\001 \001(\014\":\n" + + "\016GetTaskRequest\022\021\n\ttask_type\030\001 \001(\t\022\025\n\rre" + + "source_meta\030\002 \001(\014\"=\n\017GetTaskResponse\022*\n\010" + + "resource\030\001 \001(\0132\030.flyteidl.admin.Resource" + + "\"\\\n\010Resource\022$\n\005state\030\001 \001(\0162\025.flyteidl.a" + + "dmin.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl.c" + + "ore.LiteralMap\"=\n\021DeleteTaskRequest\022\021\n\tt" + + "ask_type\030\001 \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n" + + "\022DeleteTaskResponse*^\n\005State\022\025\n\021RETRYABL" + + "E_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001\022\013\n\007PE" + + "NDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004B7Z5g" + + "ithub.com/flyteorg/flyteidl/gen/pb-go/fl" + + "yteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor, + new java.lang.String[] { "TaskExecutionId", "Namespace", "Labels", "Annotations", "K8SServiceAccount", "EnvironmentVariables", }); + internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor = + internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor = + internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor = + internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor.getNestedTypes().get(2); + internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_CreateTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_CreateTaskRequest_descriptor, + new java.lang.String[] { "Inputs", "Template", "OutputPrefix", "TaskExecutionMetadata", }); + internal_static_flyteidl_admin_CreateTaskResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_CreateTaskResponse_descriptor, + new java.lang.String[] { "ResourceMeta", }); + internal_static_flyteidl_admin_GetTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskRequest_descriptor, + new java.lang.String[] { "TaskType", "ResourceMeta", }); + internal_static_flyteidl_admin_GetTaskResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetTaskResponse_descriptor, + new java.lang.String[] { "Resource", }); + internal_static_flyteidl_admin_Resource_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_Resource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Resource_descriptor, + new java.lang.String[] { "State", "Outputs", }); + internal_static_flyteidl_admin_DeleteTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DeleteTaskRequest_descriptor, + new java.lang.String[] { "TaskType", "ResourceMeta", }); + internal_static_flyteidl_admin_DeleteTaskResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DeleteTaskResponse_descriptor, + new java.lang.String[] { }); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ClusterAssignmentOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ClusterAssignmentOuterClass.java new file mode 100644 index 0000000000..d36dcfdc8e --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ClusterAssignmentOuterClass.java @@ -0,0 +1,615 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/cluster_assignment.proto + +package flyteidl.admin; + +public final class ClusterAssignmentOuterClass { + private ClusterAssignmentOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ClusterAssignmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterAssignment) + com.google.protobuf.MessageOrBuilder { + + /** + * string cluster_pool_name = 3; + */ + java.lang.String getClusterPoolName(); + /** + * string cluster_pool_name = 3; + */ + com.google.protobuf.ByteString + getClusterPoolNameBytes(); + } + /** + *
+   * Encapsulates specifications for routing an execution onto a specific cluster.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ClusterAssignment} + */ + public static final class ClusterAssignment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterAssignment) + ClusterAssignmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterAssignment.newBuilder() to construct. + private ClusterAssignment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterAssignment() { + clusterPoolName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterAssignment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterPoolName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.class, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder.class); + } + + public static final int CLUSTER_POOL_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object clusterPoolName_; + /** + * string cluster_pool_name = 3; + */ + public java.lang.String getClusterPoolName() { + java.lang.Object ref = clusterPoolName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterPoolName_ = s; + return s; + } + } + /** + * string cluster_pool_name = 3; + */ + public com.google.protobuf.ByteString + getClusterPoolNameBytes() { + java.lang.Object ref = clusterPoolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterPoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getClusterPoolNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterPoolName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClusterPoolNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterPoolName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment)) { + return super.equals(obj); + } + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment other = (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) obj; + + if (!getClusterPoolName() + .equals(other.getClusterPoolName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_POOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterPoolName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulates specifications for routing an execution onto a specific cluster.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ClusterAssignment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterAssignment) + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.class, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder.class); + } + + // Construct using flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + clusterPoolName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getDefaultInstanceForType() { + return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment build() { + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment buildPartial() { + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment result = new flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment(this); + result.clusterPoolName_ = clusterPoolName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) { + return mergeFrom((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment other) { + if (other == flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance()) return this; + if (!other.getClusterPoolName().isEmpty()) { + clusterPoolName_ = other.clusterPoolName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object clusterPoolName_ = ""; + /** + * string cluster_pool_name = 3; + */ + public java.lang.String getClusterPoolName() { + java.lang.Object ref = clusterPoolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterPoolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cluster_pool_name = 3; + */ + public com.google.protobuf.ByteString + getClusterPoolNameBytes() { + java.lang.Object ref = clusterPoolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterPoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cluster_pool_name = 3; + */ + public Builder setClusterPoolName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterPoolName_ = value; + onChanged(); + return this; + } + /** + * string cluster_pool_name = 3; + */ + public Builder clearClusterPoolName() { + + clusterPoolName_ = getDefaultInstance().getClusterPoolName(); + onChanged(); + return this; + } + /** + * string cluster_pool_name = 3; + */ + public Builder setClusterPoolNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterPoolName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ClusterAssignment) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterAssignment) + private static final flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment(); + } + + public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterAssignment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterAssignment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ClusterAssignment_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'flyteidl/admin/cluster_assignment.prot" + + "o\022\016flyteidl.admin\":\n\021ClusterAssignment\022\031" + + "\n\021cluster_pool_name\030\003 \001(\tJ\004\010\001\020\002J\004\010\002\020\003B7Z" + + "5github.com/flyteorg/flyteidl/gen/pb-go/" + + "flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_ClusterAssignment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ClusterAssignment_descriptor, + new java.lang.String[] { "ClusterPoolName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Common.java b/flyteidl/gen/pb-java/flyteidl/admin/Common.java new file mode 100644 index 0000000000..f236673403 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Common.java @@ -0,0 +1,22871 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +package flyteidl.admin; + +public final class Common { + private Common() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The status of the named entity is used to control its visibility in the UI.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.NamedEntityState} + */ + public enum NamedEntityState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * By default, all named entities are considered active and under development.
+     * 
+ * + * NAMED_ENTITY_ACTIVE = 0; + */ + NAMED_ENTITY_ACTIVE(0), + /** + *
+     * Archived named entities are no longer visible in the UI.
+     * 
+ * + * NAMED_ENTITY_ARCHIVED = 1; + */ + NAMED_ENTITY_ARCHIVED(1), + /** + *
+     * System generated entities that aren't explicitly created or managed by a user.
+     * 
+ * + * SYSTEM_GENERATED = 2; + */ + SYSTEM_GENERATED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * By default, all named entities are considered active and under development.
+     * 
+ * + * NAMED_ENTITY_ACTIVE = 0; + */ + public static final int NAMED_ENTITY_ACTIVE_VALUE = 0; + /** + *
+     * Archived named entities are no longer visible in the UI.
+     * 
+ * + * NAMED_ENTITY_ARCHIVED = 1; + */ + public static final int NAMED_ENTITY_ARCHIVED_VALUE = 1; + /** + *
+     * System generated entities that aren't explicitly created or managed by a user.
+     * 
+ * + * SYSTEM_GENERATED = 2; + */ + public static final int SYSTEM_GENERATED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NamedEntityState valueOf(int value) { + return forNumber(value); + } + + public static NamedEntityState forNumber(int value) { + switch (value) { + case 0: return NAMED_ENTITY_ACTIVE; + case 1: return NAMED_ENTITY_ARCHIVED; + case 2: return SYSTEM_GENERATED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NamedEntityState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NamedEntityState findValueByNumber(int number) { + return NamedEntityState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.Common.getDescriptor().getEnumTypes().get(0); + } + + private static final NamedEntityState[] VALUES = values(); + + public static NamedEntityState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NamedEntityState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.NamedEntityState) + } + + public interface NamedEntityIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that identifies a Flyte resource.
+   * A Flyte resource can be a task, workflow or launch plan.
+   * A resource can internally have multiple versions and is uniquely identified
+   * by project, domain, and name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class NamedEntityIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifier) + NamedEntityIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifier.newBuilder() to construct. + private NamedEntityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityIdentifier)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifier other = (flyteidl.admin.Common.NamedEntityIdentifier) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulation of fields that identifies a Flyte resource.
+     * A Flyte resource can be a task, workflow or launch plan.
+     * A resource can internally have multiple versions and is uniquely identified
+     * by project, domain, and name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifier) + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier build() { + flyteidl.admin.Common.NamedEntityIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifier result = new flyteidl.admin.Common.NamedEntityIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifier) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifier other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) + private static final flyteidl.admin.Common.NamedEntityIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifier(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + java.lang.String getDescription(); + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + int getStateValue(); + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + flyteidl.admin.Common.NamedEntityState getState(); + } + /** + *
+   * Additional metadata around a named entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} + */ + public static final class NamedEntityMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityMetadata) + NamedEntityMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityMetadata.newBuilder() to construct. + private NamedEntityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityMetadata() { + description_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object description_; + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * Common description across all versions of the entity
+     * +optional
+     * 
+ * + * string description = 1; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Shared state across all version of the entity
+     * At this point in time, only workflow entities can have their state archived.
+     * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public flyteidl.admin.Common.NamedEntityState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); + return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); + } + if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); + } + if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityMetadata)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityMetadata other = (flyteidl.admin.Common.NamedEntityMetadata) obj; + + if (!getDescription() + .equals(other.getDescription())) return false; + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Additional metadata around a named entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityMetadata) + flyteidl.admin.Common.NamedEntityMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + description_ = ""; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata build() { + flyteidl.admin.Common.NamedEntityMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata buildPartial() { + flyteidl.admin.Common.NamedEntityMetadata result = new flyteidl.admin.Common.NamedEntityMetadata(this); + result.description_ = description_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityMetadata) { + return mergeFrom((flyteidl.admin.Common.NamedEntityMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityMetadata other) { + if (other == flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * Common description across all versions of the entity
+       * +optional
+       * 
+ * + * string description = 1; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public flyteidl.admin.Common.NamedEntityState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); + return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder setState(flyteidl.admin.Common.NamedEntityState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Shared state across all version of the entity
+       * At this point in time, only workflow entities can have their state archived.
+       * 
+ * + * .flyteidl.admin.NamedEntityState state = 2; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) + private static final flyteidl.admin.Common.NamedEntityMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityMetadata(); + } + + public static flyteidl.admin.Common.NamedEntityMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Additional metadata around a named entity.
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Additional metadata around a named entity.
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadata getMetadata(); + /** + *
+     * Additional metadata around a named entity.
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Encapsulates information common to a NamedEntity, a Flyte resource such as a task,
+   * workflow or launch plan. A NamedEntity is exclusively identified by its resource type
+   * and identifier.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntity} + */ + public static final class NamedEntity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntity) + NamedEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntity.newBuilder() to construct. + private NamedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntity() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + /** + *
+     * Additional metadata around a named entity.
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Additional metadata around a named entity.
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Additional metadata around a named entity.
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntity)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntity other = (flyteidl.admin.Common.NamedEntity) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulates information common to a NamedEntity, a Flyte resource such as a task,
+     * workflow or launch plan. A NamedEntity is exclusively identified by its resource type
+     * and identifier.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntity) + flyteidl.admin.Common.NamedEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntity.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity build() { + flyteidl.admin.Common.NamedEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity buildPartial() { + flyteidl.admin.Common.NamedEntity result = new flyteidl.admin.Common.NamedEntity(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntity) { + return mergeFrom((flyteidl.admin.Common.NamedEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntity other) { + if (other == flyteidl.admin.Common.NamedEntity.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Additional metadata around a named entity.
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntity) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) + private static final flyteidl.admin.Common.NamedEntity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntity(); + } + + public static flyteidl.admin.Common.NamedEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Sort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates an attribute to sort the response values.
+     * +required
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     * Indicates an attribute to sort the response values.
+     * +required
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + int getDirectionValue(); + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + flyteidl.admin.Common.Sort.Direction getDirection(); + } + /** + *
+   * Specifies sort ordering in a list request.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Sort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Sort) + SortOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sort.newBuilder() to construct. + private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Sort() { + key_ = ""; + direction_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sort( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.admin.Sort.Direction} + */ + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * By default, fields are sorted in descending order.
+       * 
+ * + * DESCENDING = 0; + */ + DESCENDING(0), + /** + * ASCENDING = 1; + */ + ASCENDING(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * By default, fields are sorted in descending order.
+       * 
+ * + * DESCENDING = 0; + */ + public static final int DESCENDING_VALUE = 0; + /** + * ASCENDING = 1; + */ + public static final int ASCENDING_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + public static Direction forNumber(int value) { + switch (value) { + case 0: return DESCENDING; + case 1: return ASCENDING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.Common.Sort.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.Sort.Direction) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     * Indicates an attribute to sort the response values.
+     * +required
+     * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + *
+     * Indicates an attribute to sort the response values.
+     * +required
+     * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private int direction_; + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + output.writeEnum(2, direction_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, direction_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.Sort)) { + return super.equals(obj); + } + flyteidl.admin.Common.Sort other = (flyteidl.admin.Common.Sort) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (direction_ != other.direction_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Sort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies sort ordering in a list request.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Sort) + flyteidl.admin.Common.SortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + // Construct using flyteidl.admin.Common.Sort.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + direction_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return flyteidl.admin.Common.Sort.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Sort build() { + flyteidl.admin.Common.Sort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Sort buildPartial() { + flyteidl.admin.Common.Sort result = new flyteidl.admin.Common.Sort(this); + result.key_ = key_; + result.direction_ = direction_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Sort) { + return mergeFrom((flyteidl.admin.Common.Sort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Sort other) { + if (other == flyteidl.admin.Common.Sort.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Sort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Sort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       * Indicates an attribute to sort the response values.
+       * +required
+       * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * +required
+       * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * +required
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * +required
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * +required
+       * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int direction_ = 0; + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + @SuppressWarnings("deprecation") + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirection(flyteidl.admin.Common.Sort.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Sort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) + private static final flyteidl.admin.Common.Sort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Sort(); + } + + public static flyteidl.admin.Common.Sort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sort(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + } + /** + *
+   * Represents a request structure to list NamedEntityIdentifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class NamedEntityIdentifierListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + NamedEntityIdentifierListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierListRequest.newBuilder() to construct. + private NamedEntityIdentifierListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierListRequest() { + project_ = ""; + domain_ = ""; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + public static final int FILTERS_FIELD_NUMBER = 6; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 6; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filters_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filters_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityIdentifierListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierListRequest other = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!getFilters() + .equals(other.getFilters())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityIdentifierListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to list NamedEntityIdentifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + flyteidl.admin.Common.NamedEntityIdentifierListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + filters_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest build() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + result.filters_ = filters_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifierListRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierListRequest other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifierListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 6; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + private static final flyteidl.admin.Common.NamedEntityIdentifierListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifierListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 2; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 2; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 4; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + boolean hasSortBy(); + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + } + /** + *
+   * Represents a request structure to list NamedEntity objects
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} + */ + public static final class NamedEntityListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityListRequest) + NamedEntityListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityListRequest.newBuilder() to construct. + private NamedEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityListRequest() { + resourceType_ = 0; + project_ = ""; + domain_ = ""; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 32: { + + limit_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * +required
+     * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 4; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 4; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 5; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 5; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Specifies how listed entities should be sorted in the response.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + public static final int FILTERS_FIELD_NUMBER = 7; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 7; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (limit_ != 0) { + output.writeUInt32(4, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, token_); + } + if (sortBy_ != null) { + output.writeMessage(6, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filters_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSortBy()); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filters_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityListRequest other = (flyteidl.admin.Common.NamedEntityListRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!getFilters() + .equals(other.getFilters())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to list NamedEntity objects
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityListRequest) + flyteidl.admin.Common.NamedEntityListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + filters_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest build() { + flyteidl.admin.Common.NamedEntityListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest buildPartial() { + flyteidl.admin.Common.NamedEntityListRequest result = new flyteidl.admin.Common.NamedEntityListRequest(this); + result.resourceType_ = resourceType_; + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + result.filters_ = filters_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityListRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityListRequest other) { + if (other == flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 2; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 2; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required
+       * 
+ * + * string project = 2; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 4; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 5; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Specifies how listed entities should be sorted in the response.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 7; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) + private static final flyteidl.admin.Common.NamedEntityListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityListRequest(); + } + + public static flyteidl.admin.Common.NamedEntityListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + int getEntitiesCount(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesOrBuilderList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of NamedEntityIdentifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class NamedEntityIdentifierList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierList) + NamedEntityIdentifierListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierList.newBuilder() to construct. + private NamedEntityIdentifierList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierList() { + entities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entities_.add( + input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + private int bitField0_; + public static final int ENTITIES_FIELD_NUMBER = 1; + private java.util.List entities_; + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + return entities_.get(index); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + return entities_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityIdentifierList)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierList other = (flyteidl.admin.Common.NamedEntityIdentifierList) obj; + + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityIdentifierList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a list of NamedEntityIdentifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierList) + flyteidl.admin.Common.NamedEntityIdentifierListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEntitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList build() { + flyteidl.admin.Common.NamedEntityIdentifierList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierList result = new flyteidl.admin.Common.NamedEntityIdentifierList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifierList) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierList other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance()) return this; + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifierList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List entities_ = + java.util.Collections.emptyList(); + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(entities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> entitiesBuilder_; + + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addAllEntities( + java.lang.Iterable values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder() { + return getEntitiesFieldBuilder().addBuilder( + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesBuilderList() { + return getEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifierList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) + private static final flyteidl.admin.Common.NamedEntityIdentifierList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierList(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityIdentifierList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + java.util.List + getEntitiesList(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + flyteidl.admin.Common.NamedEntity getEntities(int index); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + int getEntitiesCount(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + java.util.List + getEntitiesOrBuilderList(); + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of NamedEntityIdentifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityList} + */ + public static final class NamedEntityList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityList) + NamedEntityListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityList.newBuilder() to construct. + private NamedEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityList() { + entities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entities_.add( + input.readMessage(flyteidl.admin.Common.NamedEntity.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); + } + + private int bitField0_; + public static final int ENTITIES_FIELD_NUMBER = 1; + private java.util.List entities_; + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List getEntitiesList() { + return entities_; + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + return entities_; + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity getEntities(int index) { + return entities_.get(index); + } + /** + *
+     * A list of NamedEntity objects
+     * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index) { + return entities_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityList)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityList other = (flyteidl.admin.Common.NamedEntityList) obj; + + if (!getEntitiesList() + .equals(other.getEntitiesList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a list of NamedEntityIdentifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityList) + flyteidl.admin.Common.NamedEntityListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEntitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList build() { + flyteidl.admin.Common.NamedEntityList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList buildPartial() { + flyteidl.admin.Common.NamedEntityList result = new flyteidl.admin.Common.NamedEntityList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityList) { + return mergeFrom((flyteidl.admin.Common.NamedEntityList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityList other) { + if (other == flyteidl.admin.Common.NamedEntityList.getDefaultInstance()) return this; + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List entities_ = + java.util.Collections.emptyList(); + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entities_ = new java.util.ArrayList(entities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> entitiesBuilder_; + + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities(flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntity value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder addAllEntities( + java.lang.Iterable values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder getEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( + int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder() { + return getEntitiesFieldBuilder().addBuilder( + flyteidl.admin.Common.NamedEntity.getDefaultInstance()); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.Common.NamedEntity.getDefaultInstance()); + } + /** + *
+       * A list of NamedEntity objects
+       * 
+ * + * repeated .flyteidl.admin.NamedEntity entities = 1; + */ + public java.util.List + getEntitiesBuilderList() { + return getEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> + getEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) + private static final flyteidl.admin.Common.NamedEntityList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityList(); + } + + public static flyteidl.admin.Common.NamedEntityList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * The identifier for the named entity for which to fetch metadata.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + *
+     * The identifier for the named entity for which to fetch metadata.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * The identifier for the named entity for which to fetch metadata.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A request to retrieve the metadata associated with a NamedEntityIdentifier
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} + */ + public static final class NamedEntityGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityGetRequest) + NamedEntityGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityGetRequest.newBuilder() to construct. + private NamedEntityGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityGetRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * The identifier for the named entity for which to fetch metadata.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier for the named entity for which to fetch metadata.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier for the named entity for which to fetch metadata.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityGetRequest other = (flyteidl.admin.Common.NamedEntityGetRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A request to retrieve the metadata associated with a NamedEntityIdentifier
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityGetRequest) + flyteidl.admin.Common.NamedEntityGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest build() { + flyteidl.admin.Common.NamedEntityGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest buildPartial() { + flyteidl.admin.Common.NamedEntityGetRequest result = new flyteidl.admin.Common.NamedEntityGetRequest(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityGetRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityGetRequest other) { + if (other == flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier for the named entity for which to fetch metadata.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) + private static final flyteidl.admin.Common.NamedEntityGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityGetRequest(); + } + + public static flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Resource type of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Resource type of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Identifier of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + *
+     * Identifier of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * Identifier of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Metadata object to set as the new value
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Metadata object to set as the new value
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadata getMetadata(); + /** + *
+     * Metadata object to set as the new value
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Request to set the referenced named entity state to the configured value.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} + */ + public static final class NamedEntityUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateRequest) + NamedEntityUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityUpdateRequest.newBuilder() to construct. + private NamedEntityUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityUpdateRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityUpdateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Resource type of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Resource type of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * Identifier of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the metadata to update
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + /** + *
+     * Metadata object to set as the new value
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata object to set as the new value
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata object to set as the new value
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityUpdateRequest other = (flyteidl.admin.Common.NamedEntityUpdateRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to set the referenced named entity state to the configured value.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateRequest) + flyteidl.admin.Common.NamedEntityUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest build() { + flyteidl.admin.Common.NamedEntityUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest buildPartial() { + flyteidl.admin.Common.NamedEntityUpdateRequest result = new flyteidl.admin.Common.NamedEntityUpdateRequest(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityUpdateRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateRequest other) { + if (other == flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Resource type of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Resource type of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Resource type of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Resource type of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the metadata to update
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.Common.NamedEntityMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata object to set as the new value
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) + private static final flyteidl.admin.Common.NamedEntityUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateRequest(); + } + + public static flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} + */ + public static final class NamedEntityUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateResponse) + NamedEntityUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityUpdateResponse.newBuilder() to construct. + private NamedEntityUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.NamedEntityUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityUpdateResponse other = (flyteidl.admin.Common.NamedEntityUpdateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateResponse) + flyteidl.admin.Common.NamedEntityUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse build() { + flyteidl.admin.Common.NamedEntityUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse buildPartial() { + flyteidl.admin.Common.NamedEntityUpdateResponse result = new flyteidl.admin.Common.NamedEntityUpdateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityUpdateResponse) { + return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateResponse other) { + if (other == flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) + private static final flyteidl.admin.Common.NamedEntityUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateResponse(); + } + + public static flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NamedEntityUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ObjectGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ObjectGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates a unique version of resource.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Indicates a unique version of resource.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Indicates a unique version of resource.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Shared request structure to fetch a single resource.
+   * Resources include: Task, Workflow, LaunchPlan
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class ObjectGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ObjectGetRequest) + ObjectGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectGetRequest.newBuilder() to construct. + private ObjectGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ObjectGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Indicates a unique version of resource.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Indicates a unique version of resource.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Indicates a unique version of resource.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.ObjectGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ObjectGetRequest other = (flyteidl.admin.Common.ObjectGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.ObjectGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Shared request structure to fetch a single resource.
+     * Resources include: Task, Workflow, LaunchPlan
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ObjectGetRequest) + flyteidl.admin.Common.ObjectGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ObjectGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest build() { + flyteidl.admin.Common.ObjectGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest buildPartial() { + flyteidl.admin.Common.ObjectGetRequest result = new flyteidl.admin.Common.ObjectGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.ObjectGetRequest) { + return mergeFrom((flyteidl.admin.Common.ObjectGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ObjectGetRequest other) { + if (other == flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.ObjectGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ObjectGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Indicates a unique version of resource.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ObjectGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) + private static final flyteidl.admin.Common.ObjectGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ObjectGetRequest(); + } + + public static flyteidl.admin.Common.ObjectGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ResourceListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the resource.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Shared request structure to retrieve a list of resources.
+   * Resources include: Task, Workflow, LaunchPlan
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class ResourceListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ResourceListRequest) + ResourceListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceListRequest.newBuilder() to construct. + private ResourceListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * id represents the unique identifier of the resource.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.ResourceListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ResourceListRequest other = (flyteidl.admin.Common.ResourceListRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.ResourceListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Shared request structure to retrieve a list of resources.
+     * Resources include: Task, Workflow, LaunchPlan
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ResourceListRequest) + flyteidl.admin.Common.ResourceListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ResourceListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ResourceListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest build() { + flyteidl.admin.Common.ResourceListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest buildPartial() { + flyteidl.admin.Common.ResourceListRequest result = new flyteidl.admin.Common.ResourceListRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.ResourceListRequest) { + return mergeFrom((flyteidl.admin.Common.ResourceListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ResourceListRequest other) { + if (other == flyteidl.admin.Common.ResourceListRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.ResourceListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ResourceListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ResourceListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) + private static final flyteidl.admin.Common.ResourceListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ResourceListRequest(); + } + + public static flyteidl.admin.Common.ResourceListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmailNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + *
+   * Defines an email notification specification.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EmailNotification} + */ + public static final class EmailNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailNotification) + EmailNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailNotification.newBuilder() to construct. + private EmailNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailNotification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.EmailNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.EmailNotification other = (flyteidl.admin.Common.EmailNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.EmailNotification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines an email notification specification.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EmailNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailNotification) + flyteidl.admin.Common.EmailNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.EmailNotification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification build() { + flyteidl.admin.Common.EmailNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification buildPartial() { + flyteidl.admin.Common.EmailNotification result = new flyteidl.admin.Common.EmailNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.EmailNotification) { + return mergeFrom((flyteidl.admin.Common.EmailNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.EmailNotification other) { + if (other == flyteidl.admin.Common.EmailNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.EmailNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.EmailNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EmailNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) + private static final flyteidl.admin.Common.EmailNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.EmailNotification(); + } + + public static flyteidl.admin.Common.EmailNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailNotification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PagerDutyNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.PagerDutyNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + *
+   * Defines a pager duty notification specification.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.PagerDutyNotification} + */ + public static final class PagerDutyNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.PagerDutyNotification) + PagerDutyNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use PagerDutyNotification.newBuilder() to construct. + private PagerDutyNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagerDutyNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagerDutyNotification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.PagerDutyNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.PagerDutyNotification other = (flyteidl.admin.Common.PagerDutyNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.PagerDutyNotification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a pager duty notification specification.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.PagerDutyNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.PagerDutyNotification) + flyteidl.admin.Common.PagerDutyNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.PagerDutyNotification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification build() { + flyteidl.admin.Common.PagerDutyNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification buildPartial() { + flyteidl.admin.Common.PagerDutyNotification result = new flyteidl.admin.Common.PagerDutyNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.PagerDutyNotification) { + return mergeFrom((flyteidl.admin.Common.PagerDutyNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.PagerDutyNotification other) { + if (other == flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.PagerDutyNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.PagerDutyNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.PagerDutyNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) + private static final flyteidl.admin.Common.PagerDutyNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.PagerDutyNotification(); + } + + public static flyteidl.admin.Common.PagerDutyNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PagerDutyNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagerDutyNotification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SlackNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SlackNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + *
+   * Defines a slack notification specification.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SlackNotification} + */ + public static final class SlackNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SlackNotification) + SlackNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackNotification.newBuilder() to construct. + private SlackNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SlackNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SlackNotification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * +required
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.SlackNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.SlackNotification other = (flyteidl.admin.Common.SlackNotification) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.SlackNotification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a slack notification specification.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SlackNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SlackNotification) + flyteidl.admin.Common.SlackNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.SlackNotification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification build() { + flyteidl.admin.Common.SlackNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification buildPartial() { + flyteidl.admin.Common.SlackNotification result = new flyteidl.admin.Common.SlackNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.SlackNotification) { + return mergeFrom((flyteidl.admin.Common.SlackNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.SlackNotification other) { + if (other == flyteidl.admin.Common.SlackNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.SlackNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.SlackNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * +required
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SlackNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) + private static final flyteidl.admin.Common.SlackNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.SlackNotification(); + } + + public static flyteidl.admin.Common.SlackNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SlackNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SlackNotification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Notification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List getPhasesList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesCount(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List + getPhasesValueList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesValue(int index); + + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + boolean hasEmail(); + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotification getEmail(); + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder(); + + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + boolean hasPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotification getPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder(); + + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + boolean hasSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotification getSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder(); + + public flyteidl.admin.Common.Notification.TypeCase getTypeCase(); + } + /** + *
+   * Represents a structure for notifications based on execution status.
+   * The notification content is configured within flyte admin but can be templatized.
+   * Future iterations could expose configuring notifications with custom content.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Notification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Notification) + NotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Notification.newBuilder() to construct. + private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Notification() { + phases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Notification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + break; + } + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 18: { + flyteidl.admin.Common.EmailNotification.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.admin.Common.EmailNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.EmailNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.EmailNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.admin.Common.PagerDutyNotification.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.admin.Common.PagerDutyNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.PagerDutyNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.PagerDutyNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.admin.Common.SlackNotification.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.admin.Common.SlackNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.SlackNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.SlackNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + private int bitField0_; + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + EMAIL(2), + PAGER_DUTY(3), + SLACK(4), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 2: return EMAIL; + case 3: return PAGER_DUTY; + case 4: return SLACK; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int PHASES_FIELD_NUMBER = 1; + private java.util.List phases_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase> phases_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>() { + public flyteidl.core.Execution.WorkflowExecution.Phase convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(from); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + }; + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return phases_; + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * +required
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + private int phasesMemoizedSerializedSize; + + public static final int EMAIL_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + public static final int PAGER_DUTY_FIELD_NUMBER = 3; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + public static final int SLACK_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getPhasesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(phasesMemoizedSerializedSize); + } + for (int i = 0; i < phases_.size(); i++) { + output.writeEnumNoTag(phases_.get(i)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.Common.SlackNotification) type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < phases_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(phases_.get(i)); + } + size += dataSize; + if (!getPhasesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }phasesMemoizedSerializedSize = dataSize; + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.Common.SlackNotification) type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.Notification)) { + return super.equals(obj); + } + flyteidl.admin.Common.Notification other = (flyteidl.admin.Common.Notification) obj; + + if (!phases_.equals(other.phases_)) return false; + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 2: + if (!getEmail() + .equals(other.getEmail())) return false; + break; + case 3: + if (!getPagerDuty() + .equals(other.getPagerDuty())) return false; + break; + case 4: + if (!getSlack() + .equals(other.getSlack())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPhasesCount() > 0) { + hash = (37 * hash) + PHASES_FIELD_NUMBER; + hash = (53 * hash) + phases_.hashCode(); + } + switch (typeCase_) { + case 2: + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + break; + case 3: + hash = (37 * hash) + PAGER_DUTY_FIELD_NUMBER; + hash = (53 * hash) + getPagerDuty().hashCode(); + break; + case 4: + hash = (37 * hash) + SLACK_FIELD_NUMBER; + hash = (53 * hash) + getSlack().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Notification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a structure for notifications based on execution status.
+     * The notification content is configured within flyte admin but can be templatized.
+     * Future iterations could expose configuring notifications with custom content.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Notification) + flyteidl.admin.Common.NotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + // Construct using flyteidl.admin.Common.Notification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return flyteidl.admin.Common.Notification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Notification build() { + flyteidl.admin.Common.Notification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Notification buildPartial() { + flyteidl.admin.Common.Notification result = new flyteidl.admin.Common.Notification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.phases_ = phases_; + if (typeCase_ == 2) { + if (emailBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = emailBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (pagerDutyBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = pagerDutyBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (slackBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = slackBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Notification) { + return mergeFrom((flyteidl.admin.Common.Notification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Notification other) { + if (other == flyteidl.admin.Common.Notification.getDefaultInstance()) return this; + if (!other.phases_.isEmpty()) { + if (phases_.isEmpty()) { + phases_ = other.phases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePhasesIsMutable(); + phases_.addAll(other.phases_); + } + onChanged(); + } + switch (other.getTypeCase()) { + case EMAIL: { + mergeEmail(other.getEmail()); + break; + } + case PAGER_DUTY: { + mergePagerDuty(other.getPagerDuty()); + break; + } + case SLACK: { + mergeSlack(other.getSlack()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Notification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Notification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.util.List phases_ = + java.util.Collections.emptyList(); + private void ensurePhasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + phases_ = new java.util.ArrayList(phases_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhases( + int index, flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhases(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhases( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (flyteidl.core.Execution.WorkflowExecution.Phase value : values) { + phases_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder clearPhases() { + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return java.util.Collections.unmodifiableList(phases_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhasesValue( + int index, int value) { + ensurePhasesIsMutable(); + phases_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhasesValue(int value) { + ensurePhasesIsMutable(); + phases_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * +required
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhasesValue( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (int value : values) { + phases_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> emailBuilder_; + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return emailBuilder_.getMessage(); + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail( + flyteidl.admin.Common.EmailNotification.Builder builderForValue) { + if (emailBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + emailBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder mergeEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.admin.Common.EmailNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.EmailNotification.newBuilder((flyteidl.admin.Common.EmailNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + emailBuilder_.mergeFrom(value); + } + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder clearEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + emailBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification.Builder getEmailBuilder() { + return getEmailFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if ((typeCase_ == 2) && (emailBuilder_ != null)) { + return emailBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EmailNotification email = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> + getEmailFieldBuilder() { + if (emailBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder>( + (flyteidl.admin.Common.EmailNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return emailBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> pagerDutyBuilder_; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return pagerDutyBuilder_.getMessage(); + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty( + flyteidl.admin.Common.PagerDutyNotification.Builder builderForValue) { + if (pagerDutyBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + pagerDutyBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder mergePagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.PagerDutyNotification.newBuilder((flyteidl.admin.Common.PagerDutyNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + pagerDutyBuilder_.mergeFrom(value); + } + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder clearPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + pagerDutyBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification.Builder getPagerDutyBuilder() { + return getPagerDutyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if ((typeCase_ == 3) && (pagerDutyBuilder_ != null)) { + return pagerDutyBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> + getPagerDutyFieldBuilder() { + if (pagerDutyBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + pagerDutyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder>( + (flyteidl.admin.Common.PagerDutyNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return pagerDutyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> slackBuilder_; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return slackBuilder_.getMessage(); + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack( + flyteidl.admin.Common.SlackNotification.Builder builderForValue) { + if (slackBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + slackBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder mergeSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.admin.Common.SlackNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.SlackNotification.newBuilder((flyteidl.admin.Common.SlackNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + slackBuilder_.mergeFrom(value); + } + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder clearSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + slackBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification.Builder getSlackBuilder() { + return getSlackFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if ((typeCase_ == 4) && (slackBuilder_ != null)) { + return slackBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> + getSlackFieldBuilder() { + if (slackBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + slackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder>( + (flyteidl.admin.Common.SlackNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return slackBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Notification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) + private static final flyteidl.admin.Common.Notification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Notification(); + } + + public static flyteidl.admin.Common.Notification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Notification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Notification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface UrlBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.UrlBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + java.lang.String getUrl(); + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + long getBytes(); + } + /** + *
+   * Represents a string url and associated metadata used throughout the platform.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + @java.lang.Deprecated public static final class UrlBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.UrlBlob) + UrlBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use UrlBlob.newBuilder() to construct. + private UrlBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UrlBlob() { + url_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UrlBlob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + url_ = s; + break; + } + case 16: { + + bytes_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BYTES_FIELD_NUMBER = 2; + private long bytes_; + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (bytes_ != 0L) { + output.writeInt64(2, bytes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (bytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, bytes_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.UrlBlob)) { + return super.equals(obj); + } + flyteidl.admin.Common.UrlBlob other = (flyteidl.admin.Common.UrlBlob) obj; + + if (!getUrl() + .equals(other.getUrl())) return false; + if (getBytes() + != other.getBytes()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBytes()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.UrlBlob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a string url and associated metadata used throughout the platform.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.UrlBlob) + flyteidl.admin.Common.UrlBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + // Construct using flyteidl.admin.Common.UrlBlob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + url_ = ""; + + bytes_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return flyteidl.admin.Common.UrlBlob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob build() { + flyteidl.admin.Common.UrlBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob buildPartial() { + flyteidl.admin.Common.UrlBlob result = new flyteidl.admin.Common.UrlBlob(this); + result.url_ = url_; + result.bytes_ = bytes_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.UrlBlob) { + return mergeFrom((flyteidl.admin.Common.UrlBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.UrlBlob other) { + if (other == flyteidl.admin.Common.UrlBlob.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (other.getBytes() != 0L) { + setBytes(other.getBytes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.UrlBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.UrlBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + url_ = value; + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder clearUrl() { + + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); + return this; + } + + private long bytes_ ; + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder setBytes(long value) { + + bytes_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder clearBytes() { + + bytes_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.UrlBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) + private static final flyteidl.admin.Common.UrlBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.UrlBlob(); + } + + public static flyteidl.admin.Common.UrlBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UrlBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UrlBlob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Labels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Label values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge labels defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Labels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Labels) + LabelsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Labels.newBuilder() to construct. + private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Labels() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Labels( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.Labels)) { + return super.equals(obj); + } + flyteidl.admin.Common.Labels other = (flyteidl.admin.Common.Labels) obj; + + if (!internalGetValues().equals( + other.internalGetValues())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Labels prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Label values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge labels defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Labels) + flyteidl.admin.Common.LabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + // Construct using flyteidl.admin.Common.Labels.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return flyteidl.admin.Common.Labels.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Labels build() { + flyteidl.admin.Common.Labels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Labels buildPartial() { + flyteidl.admin.Common.Labels result = new flyteidl.admin.Common.Labels(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Labels) { + return mergeFrom((flyteidl.admin.Common.Labels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Labels other) { + if (other == flyteidl.admin.Common.Labels.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Labels parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Labels) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Labels) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) + private static final flyteidl.admin.Common.Labels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Labels(); + } + + public static flyteidl.admin.Common.Labels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Labels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Labels(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AnnotationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Annotations) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Annotation values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge annotations defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Annotations extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Annotations) + AnnotationsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Annotations.newBuilder() to construct. + private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Annotations() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Annotations( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.Annotations)) { + return super.equals(obj); + } + flyteidl.admin.Common.Annotations other = (flyteidl.admin.Common.Annotations) obj; + + if (!internalGetValues().equals( + other.internalGetValues())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Annotations prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Annotation values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge annotations defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Annotations) + flyteidl.admin.Common.AnnotationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + // Construct using flyteidl.admin.Common.Annotations.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return flyteidl.admin.Common.Annotations.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations build() { + flyteidl.admin.Common.Annotations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations buildPartial() { + flyteidl.admin.Common.Annotations result = new flyteidl.admin.Common.Annotations(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Annotations) { + return mergeFrom((flyteidl.admin.Common.Annotations)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Annotations other) { + if (other == flyteidl.admin.Common.Annotations.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Annotations parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Annotations) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Annotations) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) + private static final flyteidl.admin.Common.Annotations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Annotations(); + } + + public static flyteidl.admin.Common.Annotations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Annotations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Annotations(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EnvsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Envs) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + java.util.List + getValuesList(); + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + flyteidl.core.Literals.KeyValuePair getValues(int index); + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getValuesOrBuilder( + int index); + } + /** + *
+   * Environment variable values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge environment variables defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Envs} + */ + public static final class Envs extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Envs) + EnvsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Envs.newBuilder() to construct. + private Envs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Envs() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Envs( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Envs.class, flyteidl.admin.Common.Envs.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private java.util.List values_; + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public java.util.List getValuesList() { + return values_; + } + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public flyteidl.core.Literals.KeyValuePair getValues(int index) { + return values_.get(index); + } + /** + *
+     * Map of custom environment variables to be applied to the execution resource.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getValuesOrBuilder( + int index) { + return values_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(1, values_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.Envs)) { + return super.equals(obj); + } + flyteidl.admin.Common.Envs other = (flyteidl.admin.Common.Envs) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Envs parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Envs parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Envs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Envs parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Envs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Envs parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Envs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Envs parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Envs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Envs parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.Envs parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Envs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Envs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Environment variable values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge environment variables defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Envs} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Envs) + flyteidl.admin.Common.EnvsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Envs.class, flyteidl.admin.Common.Envs.Builder.class); + } + + // Construct using flyteidl.admin.Common.Envs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValuesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + valuesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.Envs getDefaultInstanceForType() { + return flyteidl.admin.Common.Envs.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.Envs build() { + flyteidl.admin.Common.Envs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.Envs buildPartial() { + flyteidl.admin.Common.Envs result = new flyteidl.admin.Common.Envs(this); + int from_bitField0_ = bitField0_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Envs) { + return mergeFrom((flyteidl.admin.Common.Envs)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Envs other) { + if (other == flyteidl.admin.Common.Envs.getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Envs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Envs) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> valuesBuilder_; + + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public flyteidl.core.Literals.KeyValuePair getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder setValues( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder setValues( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder addValues(flyteidl.core.Literals.KeyValuePair value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder addValues( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder addValues( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder addValues( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Map of custom environment variables to be applied to the execution resource.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Envs) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Envs) + private static final flyteidl.admin.Common.Envs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Envs(); + } + + public static flyteidl.admin.Common.Envs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Envs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Envs(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.Envs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface AuthRoleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.AuthRole) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + java.lang.String getAssumableIamRole(); + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + com.google.protobuf.ByteString + getAssumableIamRoleBytes(); + + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + java.lang.String getKubernetesServiceAccount(); + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + com.google.protobuf.ByteString + getKubernetesServiceAccountBytes(); + } + /** + *
+   * Defines permissions associated with executions created by this launch plan spec.
+   * Use either of these roles when they have permissions required by your workflow execution.
+   * Deprecated.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.AuthRole} + */ + @java.lang.Deprecated public static final class AuthRole extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.AuthRole) + AuthRoleOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthRole.newBuilder() to construct. + private AuthRole(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthRole() { + assumableIamRole_ = ""; + kubernetesServiceAccount_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthRole( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + assumableIamRole_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + kubernetesServiceAccount_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); + } + + public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; + private volatile java.lang.Object assumableIamRole_; + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = assumableIamRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assumableIamRole_ = s; + return s; + } + } + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = assumableIamRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assumableIamRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + private volatile java.lang.Object kubernetesServiceAccount_; + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesServiceAccount_ = s; + return s; + } + } + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kubernetesServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAssumableIamRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assumableIamRole_); + } + if (!getKubernetesServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kubernetesServiceAccount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAssumableIamRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assumableIamRole_); + } + if (!getKubernetesServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kubernetesServiceAccount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.AuthRole)) { + return super.equals(obj); + } + flyteidl.admin.Common.AuthRole other = (flyteidl.admin.Common.AuthRole) obj; + + if (!getAssumableIamRole() + .equals(other.getAssumableIamRole())) return false; + if (!getKubernetesServiceAccount() + .equals(other.getKubernetesServiceAccount())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAssumableIamRole().hashCode(); + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.AuthRole parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.AuthRole parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.AuthRole prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines permissions associated with executions created by this launch plan spec.
+     * Use either of these roles when they have permissions required by your workflow execution.
+     * Deprecated.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.AuthRole} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.AuthRole) + flyteidl.admin.Common.AuthRoleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); + } + + // Construct using flyteidl.admin.Common.AuthRole.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + assumableIamRole_ = ""; + + kubernetesServiceAccount_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { + return flyteidl.admin.Common.AuthRole.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole build() { + flyteidl.admin.Common.AuthRole result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole buildPartial() { + flyteidl.admin.Common.AuthRole result = new flyteidl.admin.Common.AuthRole(this); + result.assumableIamRole_ = assumableIamRole_; + result.kubernetesServiceAccount_ = kubernetesServiceAccount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.AuthRole) { + return mergeFrom((flyteidl.admin.Common.AuthRole)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.AuthRole other) { + if (other == flyteidl.admin.Common.AuthRole.getDefaultInstance()) return this; + if (!other.getAssumableIamRole().isEmpty()) { + assumableIamRole_ = other.assumableIamRole_; + onChanged(); + } + if (!other.getKubernetesServiceAccount().isEmpty()) { + kubernetesServiceAccount_ = other.kubernetesServiceAccount_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.AuthRole parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.AuthRole) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object assumableIamRole_ = ""; + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = assumableIamRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assumableIamRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = assumableIamRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assumableIamRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + assumableIamRole_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public Builder clearAssumableIamRole() { + + assumableIamRole_ = getDefaultInstance().getAssumableIamRole(); + onChanged(); + return this; + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + assumableIamRole_ = value; + onChanged(); + return this; + } + + private java.lang.Object kubernetesServiceAccount_ = ""; + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = kubernetesServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kubernetesServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kubernetesServiceAccount_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public Builder clearKubernetesServiceAccount() { + + kubernetesServiceAccount_ = getDefaultInstance().getKubernetesServiceAccount(); + onChanged(); + return this; + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kubernetesServiceAccount_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.AuthRole) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) + private static final flyteidl.admin.Common.AuthRole DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.AuthRole(); + } + + public static flyteidl.admin.Common.AuthRole getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthRole(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RawOutputDataConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.RawOutputDataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Prefix for where offloaded data from user workflows will be written
+     * e.g. s3://bucket/key or s3://bucket/
+     * 
+ * + * string output_location_prefix = 1; + */ + java.lang.String getOutputLocationPrefix(); + /** + *
+     * Prefix for where offloaded data from user workflows will be written
+     * e.g. s3://bucket/key or s3://bucket/
+     * 
+ * + * string output_location_prefix = 1; + */ + com.google.protobuf.ByteString + getOutputLocationPrefixBytes(); + } + /** + *
+   * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+   * See https://github.com/flyteorg/flyte/issues/211 for more background information.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.RawOutputDataConfig} + */ + public static final class RawOutputDataConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.RawOutputDataConfig) + RawOutputDataConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RawOutputDataConfig.newBuilder() to construct. + private RawOutputDataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RawOutputDataConfig() { + outputLocationPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RawOutputDataConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + outputLocationPrefix_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.RawOutputDataConfig.class, flyteidl.admin.Common.RawOutputDataConfig.Builder.class); + } + + public static final int OUTPUT_LOCATION_PREFIX_FIELD_NUMBER = 1; + private volatile java.lang.Object outputLocationPrefix_; + /** + *
+     * Prefix for where offloaded data from user workflows will be written
+     * e.g. s3://bucket/key or s3://bucket/
+     * 
+ * + * string output_location_prefix = 1; + */ + public java.lang.String getOutputLocationPrefix() { + java.lang.Object ref = outputLocationPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputLocationPrefix_ = s; + return s; + } + } + /** + *
+     * Prefix for where offloaded data from user workflows will be written
+     * e.g. s3://bucket/key or s3://bucket/
+     * 
+ * + * string output_location_prefix = 1; + */ + public com.google.protobuf.ByteString + getOutputLocationPrefixBytes() { + java.lang.Object ref = outputLocationPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputLocationPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getOutputLocationPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocationPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getOutputLocationPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputLocationPrefix_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.RawOutputDataConfig)) { + return super.equals(obj); + } + flyteidl.admin.Common.RawOutputDataConfig other = (flyteidl.admin.Common.RawOutputDataConfig) obj; + + if (!getOutputLocationPrefix() + .equals(other.getOutputLocationPrefix())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTPUT_LOCATION_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getOutputLocationPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.RawOutputDataConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * See https://github.com/flyteorg/flyte/issues/211 for more background information.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.RawOutputDataConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.RawOutputDataConfig) + flyteidl.admin.Common.RawOutputDataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.RawOutputDataConfig.class, flyteidl.admin.Common.RawOutputDataConfig.Builder.class); + } + + // Construct using flyteidl.admin.Common.RawOutputDataConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + outputLocationPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.RawOutputDataConfig getDefaultInstanceForType() { + return flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.RawOutputDataConfig build() { + flyteidl.admin.Common.RawOutputDataConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.RawOutputDataConfig buildPartial() { + flyteidl.admin.Common.RawOutputDataConfig result = new flyteidl.admin.Common.RawOutputDataConfig(this); + result.outputLocationPrefix_ = outputLocationPrefix_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.RawOutputDataConfig) { + return mergeFrom((flyteidl.admin.Common.RawOutputDataConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.RawOutputDataConfig other) { + if (other == flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance()) return this; + if (!other.getOutputLocationPrefix().isEmpty()) { + outputLocationPrefix_ = other.outputLocationPrefix_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.RawOutputDataConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.RawOutputDataConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object outputLocationPrefix_ = ""; + /** + *
+       * Prefix for where offloaded data from user workflows will be written
+       * e.g. s3://bucket/key or s3://bucket/
+       * 
+ * + * string output_location_prefix = 1; + */ + public java.lang.String getOutputLocationPrefix() { + java.lang.Object ref = outputLocationPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputLocationPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Prefix for where offloaded data from user workflows will be written
+       * e.g. s3://bucket/key or s3://bucket/
+       * 
+ * + * string output_location_prefix = 1; + */ + public com.google.protobuf.ByteString + getOutputLocationPrefixBytes() { + java.lang.Object ref = outputLocationPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputLocationPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Prefix for where offloaded data from user workflows will be written
+       * e.g. s3://bucket/key or s3://bucket/
+       * 
+ * + * string output_location_prefix = 1; + */ + public Builder setOutputLocationPrefix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputLocationPrefix_ = value; + onChanged(); + return this; + } + /** + *
+       * Prefix for where offloaded data from user workflows will be written
+       * e.g. s3://bucket/key or s3://bucket/
+       * 
+ * + * string output_location_prefix = 1; + */ + public Builder clearOutputLocationPrefix() { + + outputLocationPrefix_ = getDefaultInstance().getOutputLocationPrefix(); + onChanged(); + return this; + } + /** + *
+       * Prefix for where offloaded data from user workflows will be written
+       * e.g. s3://bucket/key or s3://bucket/
+       * 
+ * + * string output_location_prefix = 1; + */ + public Builder setOutputLocationPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputLocationPrefix_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.RawOutputDataConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.RawOutputDataConfig) + private static final flyteidl.admin.Common.RawOutputDataConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.RawOutputDataConfig(); + } + + public static flyteidl.admin.Common.RawOutputDataConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RawOutputDataConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RawOutputDataConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.RawOutputDataConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlyteURLsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.FlyteURLs) + com.google.protobuf.MessageOrBuilder { + + /** + * string inputs = 1; + */ + java.lang.String getInputs(); + /** + * string inputs = 1; + */ + com.google.protobuf.ByteString + getInputsBytes(); + + /** + * string outputs = 2; + */ + java.lang.String getOutputs(); + /** + * string outputs = 2; + */ + com.google.protobuf.ByteString + getOutputsBytes(); + + /** + * string deck = 3; + */ + java.lang.String getDeck(); + /** + * string deck = 3; + */ + com.google.protobuf.ByteString + getDeckBytes(); + } + /** + *
+   * These URLs are returned as part of node and task execution data requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.FlyteURLs} + */ + public static final class FlyteURLs extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.FlyteURLs) + FlyteURLsOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlyteURLs.newBuilder() to construct. + private FlyteURLs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlyteURLs() { + inputs_ = ""; + outputs_ = ""; + deck_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlyteURLs( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + inputs_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + outputs_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + deck_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.FlyteURLs.class, flyteidl.admin.Common.FlyteURLs.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private volatile java.lang.Object inputs_; + /** + * string inputs = 1; + */ + public java.lang.String getInputs() { + java.lang.Object ref = inputs_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputs_ = s; + return s; + } + } + /** + * string inputs = 1; + */ + public com.google.protobuf.ByteString + getInputsBytes() { + java.lang.Object ref = inputs_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private volatile java.lang.Object outputs_; + /** + * string outputs = 2; + */ + public java.lang.String getOutputs() { + java.lang.Object ref = outputs_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputs_ = s; + return s; + } + } + /** + * string outputs = 2; + */ + public com.google.protobuf.ByteString + getOutputsBytes() { + java.lang.Object ref = outputs_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DECK_FIELD_NUMBER = 3; + private volatile java.lang.Object deck_; + /** + * string deck = 3; + */ + public java.lang.String getDeck() { + java.lang.Object ref = deck_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deck_ = s; + return s; + } + } + /** + * string deck = 3; + */ + public com.google.protobuf.ByteString + getDeckBytes() { + java.lang.Object ref = deck_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deck_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getInputsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputs_); + } + if (!getOutputsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputs_); + } + if (!getDeckBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deck_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputs_); + } + if (!getOutputsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputs_); + } + if (!getDeckBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deck_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Common.FlyteURLs)) { + return super.equals(obj); + } + flyteidl.admin.Common.FlyteURLs other = (flyteidl.admin.Common.FlyteURLs) obj; + + if (!getInputs() + .equals(other.getInputs())) return false; + if (!getOutputs() + .equals(other.getOutputs())) return false; + if (!getDeck() + .equals(other.getDeck())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + hash = (37 * hash) + DECK_FIELD_NUMBER; + hash = (53 * hash) + getDeck().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.FlyteURLs parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.FlyteURLs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.FlyteURLs parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.FlyteURLs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.FlyteURLs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * These URLs are returned as part of node and task execution data requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.FlyteURLs} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.FlyteURLs) + flyteidl.admin.Common.FlyteURLsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.FlyteURLs.class, flyteidl.admin.Common.FlyteURLs.Builder.class); + } + + // Construct using flyteidl.admin.Common.FlyteURLs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputs_ = ""; + + outputs_ = ""; + + deck_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Common.FlyteURLs getDefaultInstanceForType() { + return flyteidl.admin.Common.FlyteURLs.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Common.FlyteURLs build() { + flyteidl.admin.Common.FlyteURLs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Common.FlyteURLs buildPartial() { + flyteidl.admin.Common.FlyteURLs result = new flyteidl.admin.Common.FlyteURLs(this); + result.inputs_ = inputs_; + result.outputs_ = outputs_; + result.deck_ = deck_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.FlyteURLs) { + return mergeFrom((flyteidl.admin.Common.FlyteURLs)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.FlyteURLs other) { + if (other == flyteidl.admin.Common.FlyteURLs.getDefaultInstance()) return this; + if (!other.getInputs().isEmpty()) { + inputs_ = other.inputs_; + onChanged(); + } + if (!other.getOutputs().isEmpty()) { + outputs_ = other.outputs_; + onChanged(); + } + if (!other.getDeck().isEmpty()) { + deck_ = other.deck_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.FlyteURLs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.FlyteURLs) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object inputs_ = ""; + /** + * string inputs = 1; + */ + public java.lang.String getInputs() { + java.lang.Object ref = inputs_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputs_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string inputs = 1; + */ + public com.google.protobuf.ByteString + getInputsBytes() { + java.lang.Object ref = inputs_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string inputs = 1; + */ + public Builder setInputs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputs_ = value; + onChanged(); + return this; + } + /** + * string inputs = 1; + */ + public Builder clearInputs() { + + inputs_ = getDefaultInstance().getInputs(); + onChanged(); + return this; + } + /** + * string inputs = 1; + */ + public Builder setInputsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputs_ = value; + onChanged(); + return this; + } + + private java.lang.Object outputs_ = ""; + /** + * string outputs = 2; + */ + public java.lang.String getOutputs() { + java.lang.Object ref = outputs_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputs_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string outputs = 2; + */ + public com.google.protobuf.ByteString + getOutputsBytes() { + java.lang.Object ref = outputs_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputs_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string outputs = 2; + */ + public Builder setOutputs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputs_ = value; + onChanged(); + return this; + } + /** + * string outputs = 2; + */ + public Builder clearOutputs() { + + outputs_ = getDefaultInstance().getOutputs(); + onChanged(); + return this; + } + /** + * string outputs = 2; + */ + public Builder setOutputsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputs_ = value; + onChanged(); + return this; + } + + private java.lang.Object deck_ = ""; + /** + * string deck = 3; + */ + public java.lang.String getDeck() { + java.lang.Object ref = deck_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deck_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string deck = 3; + */ + public com.google.protobuf.ByteString + getDeckBytes() { + java.lang.Object ref = deck_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deck_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string deck = 3; + */ + public Builder setDeck( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deck_ = value; + onChanged(); + return this; + } + /** + * string deck = 3; + */ + public Builder clearDeck() { + + deck_ = getDefaultInstance().getDeck(); + onChanged(); + return this; + } + /** + * string deck = 3; + */ + public Builder setDeckBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deck_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.FlyteURLs) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FlyteURLs) + private static final flyteidl.admin.Common.FlyteURLs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.FlyteURLs(); + } + + public static flyteidl.admin.Common.FlyteURLs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlyteURLs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlyteURLs(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Common.FlyteURLs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Sort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Sort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ResourceListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SlackNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Notification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Notification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_UrlBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Envs_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Envs_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_AuthRole_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_AuthRole_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_FlyteURLs_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033flyteidl/admin/common.proto\022\016flyteidl." + + "admin\032\035flyteidl/core/execution.proto\032\036fl" + + "yteidl/core/identifier.proto\032\034flyteidl/c" + + "ore/literals.proto\032\037google/protobuf/time" + + "stamp.proto\"F\n\025NamedEntityIdentifier\022\017\n\007" + + "project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 " + + "\001(\t\"[\n\023NamedEntityMetadata\022\023\n\013descriptio" + + "n\030\001 \001(\t\022/\n\005state\030\002 \001(\0162 .flyteidl.admin." + + "NamedEntityState\"\253\001\n\013NamedEntity\0222\n\rreso" + + "urce_type\030\001 \001(\0162\033.flyteidl.core.Resource" + + "Type\0221\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedE" + + "ntityIdentifier\0225\n\010metadata\030\003 \001(\0132#.flyt" + + "eidl.admin.NamedEntityMetadata\"r\n\004Sort\022\013" + + "\n\003key\030\001 \001(\t\0221\n\tdirection\030\002 \001(\0162\036.flyteid" + + "l.admin.Sort.Direction\"*\n\tDirection\022\016\n\nD" + + "ESCENDING\020\000\022\r\n\tASCENDING\020\001\"\231\001\n NamedEnti" + + "tyIdentifierListRequest\022\017\n\007project\030\001 \001(\t" + + "\022\016\n\006domain\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token" + + "\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin" + + ".Sort\022\017\n\007filters\030\006 \001(\t\"\303\001\n\026NamedEntityLi" + + "stRequest\0222\n\rresource_type\030\001 \001(\0162\033.flyte" + + "idl.core.ResourceType\022\017\n\007project\030\002 \001(\t\022\016" + + "\n\006domain\030\003 \001(\t\022\r\n\005limit\030\004 \001(\r\022\r\n\005token\030\005" + + " \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admin.S" + + "ort\022\017\n\007filters\030\007 \001(\t\"c\n\031NamedEntityIdent" + + "ifierList\0227\n\010entities\030\001 \003(\0132%.flyteidl.a" + + "dmin.NamedEntityIdentifier\022\r\n\005token\030\002 \001(" + + "\t\"O\n\017NamedEntityList\022-\n\010entities\030\001 \003(\0132\033" + + ".flyteidl.admin.NamedEntity\022\r\n\005token\030\002 \001" + + "(\t\"~\n\025NamedEntityGetRequest\0222\n\rresource_" + + "type\030\001 \001(\0162\033.flyteidl.core.ResourceType\022" + + "1\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedEntity" + + "Identifier\"\270\001\n\030NamedEntityUpdateRequest\022" + + "2\n\rresource_type\030\001 \001(\0162\033.flyteidl.core.R" + + "esourceType\0221\n\002id\030\002 \001(\0132%.flyteidl.admin" + + ".NamedEntityIdentifier\0225\n\010metadata\030\003 \001(\013" + + "2#.flyteidl.admin.NamedEntityMetadata\"\033\n" + + "\031NamedEntityUpdateResponse\"9\n\020ObjectGetR" + + "equest\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Ident" + + "ifier\"\236\001\n\023ResourceListRequest\0221\n\002id\030\001 \001(" + + "\0132%.flyteidl.admin.NamedEntityIdentifier" + + "\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filter" + + "s\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admi" + + "n.Sort\"-\n\021EmailNotification\022\030\n\020recipient" + + "s_email\030\001 \003(\t\"1\n\025PagerDutyNotification\022\030" + + "\n\020recipients_email\030\001 \003(\t\"-\n\021SlackNotific" + + "ation\022\030\n\020recipients_email\030\001 \003(\t\"\363\001\n\014Noti" + + "fication\0226\n\006phases\030\001 \003(\0162&.flyteidl.core" + + ".WorkflowExecution.Phase\0222\n\005email\030\002 \001(\0132" + + "!.flyteidl.admin.EmailNotificationH\000\022;\n\n" + + "pager_duty\030\003 \001(\0132%.flyteidl.admin.PagerD" + + "utyNotificationH\000\0222\n\005slack\030\004 \001(\0132!.flyte" + + "idl.admin.SlackNotificationH\000B\006\n\004type\")\n" + + "\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r\n\005bytes\030\002 \001(\003:\002\030\001" + + "\"k\n\006Labels\0222\n\006values\030\001 \003(\0132\".flyteidl.ad" + + "min.Labels.ValuesEntry\032-\n\013ValuesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\013Annotat" + + "ions\0227\n\006values\030\001 \003(\0132\'.flyteidl.admin.An" + + "notations.ValuesEntry\032-\n\013ValuesEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\004Envs\022+\n\006" + + "values\030\001 \003(\0132\033.flyteidl.core.KeyValuePai" + + "r\"N\n\010AuthRole\022\032\n\022assumable_iam_role\030\001 \001(" + + "\t\022\"\n\032kubernetes_service_account\030\002 \001(\t:\002\030" + + "\001\"5\n\023RawOutputDataConfig\022\036\n\026output_locat" + + "ion_prefix\030\001 \001(\t\":\n\tFlyteURLs\022\016\n\006inputs\030" + + "\001 \001(\t\022\017\n\007outputs\030\002 \001(\t\022\014\n\004deck\030\003 \001(\t*\\\n\020" + + "NamedEntityState\022\027\n\023NAMED_ENTITY_ACTIVE\020" + + "\000\022\031\n\025NAMED_ENTITY_ARCHIVED\020\001\022\024\n\020SYSTEM_G" + + "ENERATED\020\002B7Z5github.com/flyteorg/flytei" + + "dl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityMetadata_descriptor, + new java.lang.String[] { "Description", "State", }); + internal_static_flyteidl_admin_NamedEntity_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntity_descriptor, + new java.lang.String[] { "ResourceType", "Id", "Metadata", }); + internal_static_flyteidl_admin_Sort_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_Sort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Sort_descriptor, + new java.lang.String[] { "Key", "Direction", }); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityListRequest_descriptor, + new java.lang.String[] { "ResourceType", "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor, + new java.lang.String[] { "Entities", "Token", }); + internal_static_flyteidl_admin_NamedEntityList_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityList_descriptor, + new java.lang.String[] { "Entities", "Token", }); + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor, + new java.lang.String[] { "ResourceType", "Id", }); + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor, + new java.lang.String[] { "ResourceType", "Id", "Metadata", }); + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ObjectGetRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ObjectGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_ResourceListRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ResourceListRequest_descriptor, + new java.lang.String[] { "Id", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_EmailNotification_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_PagerDutyNotification_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_PagerDutyNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_SlackNotification_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SlackNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_Notification_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_admin_Notification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Notification_descriptor, + new java.lang.String[] { "Phases", "Email", "PagerDuty", "Slack", "Type", }); + internal_static_flyteidl_admin_UrlBlob_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_UrlBlob_descriptor, + new java.lang.String[] { "Url", "Bytes", }); + internal_static_flyteidl_admin_Labels_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_flyteidl_admin_Labels_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Labels_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_Annotations_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_flyteidl_admin_Annotations_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Annotations_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_Envs_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_flyteidl_admin_Envs_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Envs_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_AuthRole_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_flyteidl_admin_AuthRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_AuthRole_descriptor, + new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", }); + internal_static_flyteidl_admin_RawOutputDataConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_RawOutputDataConfig_descriptor, + new java.lang.String[] { "OutputLocationPrefix", }); + internal_static_flyteidl_admin_FlyteURLs_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_FlyteURLs_descriptor, + new java.lang.String[] { "Inputs", "Outputs", "Deck", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/DescriptionEntityOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/DescriptionEntityOuterClass.java new file mode 100644 index 0000000000..f70cf0204d --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/DescriptionEntityOuterClass.java @@ -0,0 +1,6299 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/description_entity.proto + +package flyteidl.admin; + +public final class DescriptionEntityOuterClass { + private DescriptionEntityOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The format of the long description
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.DescriptionFormat} + */ + public enum DescriptionFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DESCRIPTION_FORMAT_UNKNOWN = 0; + */ + DESCRIPTION_FORMAT_UNKNOWN(0), + /** + * DESCRIPTION_FORMAT_MARKDOWN = 1; + */ + DESCRIPTION_FORMAT_MARKDOWN(1), + /** + * DESCRIPTION_FORMAT_HTML = 2; + */ + DESCRIPTION_FORMAT_HTML(2), + /** + *
+     * python default documentation - comments is rst
+     * 
+ * + * DESCRIPTION_FORMAT_RST = 3; + */ + DESCRIPTION_FORMAT_RST(3), + UNRECOGNIZED(-1), + ; + + /** + * DESCRIPTION_FORMAT_UNKNOWN = 0; + */ + public static final int DESCRIPTION_FORMAT_UNKNOWN_VALUE = 0; + /** + * DESCRIPTION_FORMAT_MARKDOWN = 1; + */ + public static final int DESCRIPTION_FORMAT_MARKDOWN_VALUE = 1; + /** + * DESCRIPTION_FORMAT_HTML = 2; + */ + public static final int DESCRIPTION_FORMAT_HTML_VALUE = 2; + /** + *
+     * python default documentation - comments is rst
+     * 
+ * + * DESCRIPTION_FORMAT_RST = 3; + */ + public static final int DESCRIPTION_FORMAT_RST_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DescriptionFormat valueOf(int value) { + return forNumber(value); + } + + public static DescriptionFormat forNumber(int value) { + switch (value) { + case 0: return DESCRIPTION_FORMAT_UNKNOWN; + case 1: return DESCRIPTION_FORMAT_MARKDOWN; + case 2: return DESCRIPTION_FORMAT_HTML; + case 3: return DESCRIPTION_FORMAT_RST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DescriptionFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DescriptionFormat findValueByNumber(int number) { + return DescriptionFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final DescriptionFormat[] VALUES = values(); + + public static DescriptionFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DescriptionFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.DescriptionFormat) + } + + public interface DescriptionEntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DescriptionEntity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the description entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the description entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the description entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 2; + */ + java.lang.String getShortDescription(); + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 2; + */ + com.google.protobuf.ByteString + getShortDescriptionBytes(); + + /** + *
+     * Full user description with formatting preserved.
+     * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + boolean hasLongDescription(); + /** + *
+     * Full user description with formatting preserved.
+     * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + flyteidl.admin.DescriptionEntityOuterClass.Description getLongDescription(); + /** + *
+     * Full user description with formatting preserved.
+     * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder getLongDescriptionOrBuilder(); + + /** + *
+     * Optional link to source code used to define this entity.
+     * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + boolean hasSourceCode(); + /** + *
+     * Optional link to source code used to define this entity.
+     * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + flyteidl.admin.DescriptionEntityOuterClass.SourceCode getSourceCode(); + /** + *
+     * Optional link to source code used to define this entity.
+     * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder getSourceCodeOrBuilder(); + + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + java.util.List + getTagsList(); + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + int getTagsCount(); + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + java.lang.String getTags(int index); + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + *
+   * DescriptionEntity contains detailed description for the task/workflow.
+   * Documentation could provide insight into the algorithms, business use case, etc.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DescriptionEntity} + */ + public static final class DescriptionEntity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DescriptionEntity) + DescriptionEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use DescriptionEntity.newBuilder() to construct. + private DescriptionEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DescriptionEntity() { + shortDescription_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DescriptionEntity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + shortDescription_ = s; + break; + } + case 26: { + flyteidl.admin.DescriptionEntityOuterClass.Description.Builder subBuilder = null; + if (longDescription_ != null) { + subBuilder = longDescription_.toBuilder(); + } + longDescription_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.Description.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(longDescription_); + longDescription_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder subBuilder = null; + if (sourceCode_ != null) { + subBuilder = sourceCode_.toBuilder(); + } + sourceCode_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.SourceCode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceCode_); + sourceCode_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + tags_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the description entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the description entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the description entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object shortDescription_; + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 2; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } + } + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 2; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LONG_DESCRIPTION_FIELD_NUMBER = 3; + private flyteidl.admin.DescriptionEntityOuterClass.Description longDescription_; + /** + *
+     * Full user description with formatting preserved.
+     * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public boolean hasLongDescription() { + return longDescription_ != null; + } + /** + *
+     * Full user description with formatting preserved.
+     * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.Description getLongDescription() { + return longDescription_ == null ? flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance() : longDescription_; + } + /** + *
+     * Full user description with formatting preserved.
+     * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder getLongDescriptionOrBuilder() { + return getLongDescription(); + } + + public static final int SOURCE_CODE_FIELD_NUMBER = 4; + private flyteidl.admin.DescriptionEntityOuterClass.SourceCode sourceCode_; + /** + *
+     * Optional link to source code used to define this entity.
+     * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public boolean hasSourceCode() { + return sourceCode_ != null; + } + /** + *
+     * Optional link to source code used to define this entity.
+     * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public flyteidl.admin.DescriptionEntityOuterClass.SourceCode getSourceCode() { + return sourceCode_ == null ? flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance() : sourceCode_; + } + /** + *
+     * Optional link to source code used to define this entity.
+     * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder getSourceCodeOrBuilder() { + return getSourceCode(); + } + + public static final int TAGS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * User-specified tags. These are arbitrary and can be used for searching
+     * filtering and discovering tasks.
+     * 
+ * + * repeated string tags = 5; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getShortDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortDescription_); + } + if (longDescription_ != null) { + output.writeMessage(3, getLongDescription()); + } + if (sourceCode_ != null) { + output.writeMessage(4, getSourceCode()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tags_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getShortDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortDescription_); + } + if (longDescription_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLongDescription()); + } + if (sourceCode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSourceCode()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity)) { + return super.equals(obj); + } + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity other = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getShortDescription() + .equals(other.getShortDescription())) return false; + if (hasLongDescription() != other.hasLongDescription()) return false; + if (hasLongDescription()) { + if (!getLongDescription() + .equals(other.getLongDescription())) return false; + } + if (hasSourceCode() != other.hasSourceCode()) return false; + if (hasSourceCode()) { + if (!getSourceCode() + .equals(other.getSourceCode())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getShortDescription().hashCode(); + if (hasLongDescription()) { + hash = (37 * hash) + LONG_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getLongDescription().hashCode(); + } + if (hasSourceCode()) { + hash = (37 * hash) + SOURCE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSourceCode().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DescriptionEntity contains detailed description for the task/workflow.
+     * Documentation could provide insight into the algorithms, business use case, etc.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DescriptionEntity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DescriptionEntity) + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder.class); + } + + // Construct using flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + shortDescription_ = ""; + + if (longDescriptionBuilder_ == null) { + longDescription_ = null; + } else { + longDescription_ = null; + longDescriptionBuilder_ = null; + } + if (sourceCodeBuilder_ == null) { + sourceCode_ = null; + } else { + sourceCode_ = null; + sourceCodeBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_descriptor; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDefaultInstanceForType() { + return flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity build() { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity buildPartial() { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity result = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.shortDescription_ = shortDescription_; + if (longDescriptionBuilder_ == null) { + result.longDescription_ = longDescription_; + } else { + result.longDescription_ = longDescriptionBuilder_.build(); + } + if (sourceCodeBuilder_ == null) { + result.sourceCode_ = sourceCode_; + } else { + result.sourceCode_ = sourceCodeBuilder_.build(); + } + if (((bitField0_ & 0x00000010) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.tags_ = tags_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity) { + return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity other) { + if (other == flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getShortDescription().isEmpty()) { + shortDescription_ = other.shortDescription_; + onChanged(); + } + if (other.hasLongDescription()) { + mergeLongDescription(other.getLongDescription()); + } + if (other.hasSourceCode()) { + mergeSourceCode(other.getSourceCode()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the description entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object shortDescription_ = ""; + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 2; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 2; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 2; + */ + public Builder setShortDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + shortDescription_ = value; + onChanged(); + return this; + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 2; + */ + public Builder clearShortDescription() { + + shortDescription_ = getDefaultInstance().getShortDescription(); + onChanged(); + return this; + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 2; + */ + public Builder setShortDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + shortDescription_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.DescriptionEntityOuterClass.Description longDescription_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.Description, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder> longDescriptionBuilder_; + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public boolean hasLongDescription() { + return longDescriptionBuilder_ != null || longDescription_ != null; + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.Description getLongDescription() { + if (longDescriptionBuilder_ == null) { + return longDescription_ == null ? flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance() : longDescription_; + } else { + return longDescriptionBuilder_.getMessage(); + } + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public Builder setLongDescription(flyteidl.admin.DescriptionEntityOuterClass.Description value) { + if (longDescriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + longDescription_ = value; + onChanged(); + } else { + longDescriptionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public Builder setLongDescription( + flyteidl.admin.DescriptionEntityOuterClass.Description.Builder builderForValue) { + if (longDescriptionBuilder_ == null) { + longDescription_ = builderForValue.build(); + onChanged(); + } else { + longDescriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public Builder mergeLongDescription(flyteidl.admin.DescriptionEntityOuterClass.Description value) { + if (longDescriptionBuilder_ == null) { + if (longDescription_ != null) { + longDescription_ = + flyteidl.admin.DescriptionEntityOuterClass.Description.newBuilder(longDescription_).mergeFrom(value).buildPartial(); + } else { + longDescription_ = value; + } + onChanged(); + } else { + longDescriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public Builder clearLongDescription() { + if (longDescriptionBuilder_ == null) { + longDescription_ = null; + onChanged(); + } else { + longDescription_ = null; + longDescriptionBuilder_ = null; + } + + return this; + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.Description.Builder getLongDescriptionBuilder() { + + onChanged(); + return getLongDescriptionFieldBuilder().getBuilder(); + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder getLongDescriptionOrBuilder() { + if (longDescriptionBuilder_ != null) { + return longDescriptionBuilder_.getMessageOrBuilder(); + } else { + return longDescription_ == null ? + flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance() : longDescription_; + } + } + /** + *
+       * Full user description with formatting preserved.
+       * 
+ * + * .flyteidl.admin.Description long_description = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.Description, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder> + getLongDescriptionFieldBuilder() { + if (longDescriptionBuilder_ == null) { + longDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.Description, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder>( + getLongDescription(), + getParentForChildren(), + isClean()); + longDescription_ = null; + } + return longDescriptionBuilder_; + } + + private flyteidl.admin.DescriptionEntityOuterClass.SourceCode sourceCode_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.SourceCode, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder, flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder> sourceCodeBuilder_; + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public boolean hasSourceCode() { + return sourceCodeBuilder_ != null || sourceCode_ != null; + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public flyteidl.admin.DescriptionEntityOuterClass.SourceCode getSourceCode() { + if (sourceCodeBuilder_ == null) { + return sourceCode_ == null ? flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance() : sourceCode_; + } else { + return sourceCodeBuilder_.getMessage(); + } + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public Builder setSourceCode(flyteidl.admin.DescriptionEntityOuterClass.SourceCode value) { + if (sourceCodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceCode_ = value; + onChanged(); + } else { + sourceCodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public Builder setSourceCode( + flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder builderForValue) { + if (sourceCodeBuilder_ == null) { + sourceCode_ = builderForValue.build(); + onChanged(); + } else { + sourceCodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public Builder mergeSourceCode(flyteidl.admin.DescriptionEntityOuterClass.SourceCode value) { + if (sourceCodeBuilder_ == null) { + if (sourceCode_ != null) { + sourceCode_ = + flyteidl.admin.DescriptionEntityOuterClass.SourceCode.newBuilder(sourceCode_).mergeFrom(value).buildPartial(); + } else { + sourceCode_ = value; + } + onChanged(); + } else { + sourceCodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public Builder clearSourceCode() { + if (sourceCodeBuilder_ == null) { + sourceCode_ = null; + onChanged(); + } else { + sourceCode_ = null; + sourceCodeBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder getSourceCodeBuilder() { + + onChanged(); + return getSourceCodeFieldBuilder().getBuilder(); + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + public flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder getSourceCodeOrBuilder() { + if (sourceCodeBuilder_ != null) { + return sourceCodeBuilder_.getMessageOrBuilder(); + } else { + return sourceCode_ == null ? + flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance() : sourceCode_; + } + } + /** + *
+       * Optional link to source code used to define this entity.
+       * 
+ * + * .flyteidl.admin.SourceCode source_code = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.SourceCode, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder, flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder> + getSourceCodeFieldBuilder() { + if (sourceCodeBuilder_ == null) { + sourceCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.SourceCode, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder, flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder>( + getSourceCode(), + getParentForChildren(), + isClean()); + sourceCode_ = null; + } + return sourceCodeBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * User-specified tags. These are arbitrary and can be used for searching
+       * filtering and discovering tasks.
+       * 
+ * + * repeated string tags = 5; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DescriptionEntity) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntity) + private static final flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity(); + } + + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DescriptionEntity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DescriptionEntity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DescriptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Description) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * long description - no more than 4KB
+     * 
+ * + * string value = 1; + */ + java.lang.String getValue(); + /** + *
+     * long description - no more than 4KB
+     * 
+ * + * string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
+     * if the description sizes exceed some threshold we can offload the entire
+     * description proto altogether to an external data store, like S3 rather than store inline in the db
+     * 
+ * + * string uri = 2; + */ + java.lang.String getUri(); + /** + *
+     * if the description sizes exceed some threshold we can offload the entire
+     * description proto altogether to an external data store, like S3 rather than store inline in the db
+     * 
+ * + * string uri = 2; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+     * Format of the long description
+     * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + int getFormatValue(); + /** + *
+     * Format of the long description
+     * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat getFormat(); + + /** + *
+     * Optional link to an icon for the entity
+     * 
+ * + * string icon_link = 4; + */ + java.lang.String getIconLink(); + /** + *
+     * Optional link to an icon for the entity
+     * 
+ * + * string icon_link = 4; + */ + com.google.protobuf.ByteString + getIconLinkBytes(); + + public flyteidl.admin.DescriptionEntityOuterClass.Description.ContentCase getContentCase(); + } + /** + *
+   * Full user description with formatting preserved. This can be rendered
+   * by clients, such as the console or command line tools with in-tact
+   * formatting.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Description} + */ + public static final class Description extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Description) + DescriptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Description.newBuilder() to construct. + private Description(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Description() { + format_ = 0; + iconLink_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Description( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + contentCase_ = 1; + content_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + contentCase_ = 2; + content_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + format_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + iconLink_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.Description.class, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder.class); + } + + private int contentCase_ = 0; + private java.lang.Object content_; + public enum ContentCase + implements com.google.protobuf.Internal.EnumLite { + VALUE(1), + URI(2), + CONTENT_NOT_SET(0); + private final int value; + private ContentCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 1: return VALUE; + case 2: return URI; + case 0: return CONTENT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + public static final int VALUE_FIELD_NUMBER = 1; + /** + *
+     * long description - no more than 4KB
+     * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = ""; + if (contentCase_ == 1) { + ref = content_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 1) { + content_ = s; + } + return s; + } + } + /** + *
+     * long description - no more than 4KB
+     * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 1) { + ref = content_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 1) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 2; + /** + *
+     * if the description sizes exceed some threshold we can offload the entire
+     * description proto altogether to an external data store, like S3 rather than store inline in the db
+     * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 2) { + content_ = s; + } + return s; + } + } + /** + *
+     * if the description sizes exceed some threshold we can offload the entire
+     * description proto altogether to an external data store, like S3 rather than store inline in the db
+     * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 2) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMAT_FIELD_NUMBER = 3; + private int format_; + /** + *
+     * Format of the long description
+     * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + public int getFormatValue() { + return format_; + } + /** + *
+     * Format of the long description
+     * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat result = flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.valueOf(format_); + return result == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.UNRECOGNIZED : result; + } + + public static final int ICON_LINK_FIELD_NUMBER = 4; + private volatile java.lang.Object iconLink_; + /** + *
+     * Optional link to an icon for the entity
+     * 
+ * + * string icon_link = 4; + */ + public java.lang.String getIconLink() { + java.lang.Object ref = iconLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconLink_ = s; + return s; + } + } + /** + *
+     * Optional link to an icon for the entity
+     * 
+ * + * string icon_link = 4; + */ + public com.google.protobuf.ByteString + getIconLinkBytes() { + java.lang.Object ref = iconLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (contentCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); + } + if (contentCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); + } + if (format_ != flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.DESCRIPTION_FORMAT_UNKNOWN.getNumber()) { + output.writeEnum(3, format_); + } + if (!getIconLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, iconLink_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contentCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); + } + if (contentCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); + } + if (format_ != flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.DESCRIPTION_FORMAT_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, format_); + } + if (!getIconLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, iconLink_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.DescriptionEntityOuterClass.Description)) { + return super.equals(obj); + } + flyteidl.admin.DescriptionEntityOuterClass.Description other = (flyteidl.admin.DescriptionEntityOuterClass.Description) obj; + + if (format_ != other.format_) return false; + if (!getIconLink() + .equals(other.getIconLink())) return false; + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 1: + if (!getValue() + .equals(other.getValue())) return false; + break; + case 2: + if (!getUri() + .equals(other.getUri())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + format_; + hash = (37 * hash) + ICON_LINK_FIELD_NUMBER; + hash = (53 * hash) + getIconLink().hashCode(); + switch (contentCase_) { + case 1: + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + break; + case 2: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.DescriptionEntityOuterClass.Description prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Full user description with formatting preserved. This can be rendered
+     * by clients, such as the console or command line tools with in-tact
+     * formatting.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Description} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Description) + flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.Description.class, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder.class); + } + + // Construct using flyteidl.admin.DescriptionEntityOuterClass.Description.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + format_ = 0; + + iconLink_ = ""; + + contentCase_ = 0; + content_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_descriptor; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.Description getDefaultInstanceForType() { + return flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.Description build() { + flyteidl.admin.DescriptionEntityOuterClass.Description result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.Description buildPartial() { + flyteidl.admin.DescriptionEntityOuterClass.Description result = new flyteidl.admin.DescriptionEntityOuterClass.Description(this); + if (contentCase_ == 1) { + result.content_ = content_; + } + if (contentCase_ == 2) { + result.content_ = content_; + } + result.format_ = format_; + result.iconLink_ = iconLink_; + result.contentCase_ = contentCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.DescriptionEntityOuterClass.Description) { + return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.Description)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.Description other) { + if (other == flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance()) return this; + if (other.format_ != 0) { + setFormatValue(other.getFormatValue()); + } + if (!other.getIconLink().isEmpty()) { + iconLink_ = other.iconLink_; + onChanged(); + } + switch (other.getContentCase()) { + case VALUE: { + contentCase_ = 1; + content_ = other.content_; + onChanged(); + break; + } + case URI: { + contentCase_ = 2; + content_ = other.content_; + onChanged(); + break; + } + case CONTENT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.DescriptionEntityOuterClass.Description parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.Description) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int contentCase_ = 0; + private java.lang.Object content_; + public ContentCase + getContentCase() { + return ContentCase.forNumber( + contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + + + /** + *
+       * long description - no more than 4KB
+       * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = ""; + if (contentCase_ == 1) { + ref = content_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 1) { + content_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * long description - no more than 4KB
+       * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 1) { + ref = content_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 1) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * long description - no more than 4KB
+       * 
+ * + * string value = 1; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contentCase_ = 1; + content_ = value; + onChanged(); + return this; + } + /** + *
+       * long description - no more than 4KB
+       * 
+ * + * string value = 1; + */ + public Builder clearValue() { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + /** + *
+       * long description - no more than 4KB
+       * 
+ * + * string value = 1; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentCase_ = 1; + content_ = value; + onChanged(); + return this; + } + + /** + *
+       * if the description sizes exceed some threshold we can offload the entire
+       * description proto altogether to an external data store, like S3 rather than store inline in the db
+       * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (contentCase_ == 2) { + content_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * if the description sizes exceed some threshold we can offload the entire
+       * description proto altogether to an external data store, like S3 rather than store inline in the db
+       * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (contentCase_ == 2) { + ref = content_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (contentCase_ == 2) { + content_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * if the description sizes exceed some threshold we can offload the entire
+       * description proto altogether to an external data store, like S3 rather than store inline in the db
+       * 
+ * + * string uri = 2; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contentCase_ = 2; + content_ = value; + onChanged(); + return this; + } + /** + *
+       * if the description sizes exceed some threshold we can offload the entire
+       * description proto altogether to an external data store, like S3 rather than store inline in the db
+       * 
+ * + * string uri = 2; + */ + public Builder clearUri() { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + /** + *
+       * if the description sizes exceed some threshold we can offload the entire
+       * description proto altogether to an external data store, like S3 rather than store inline in the db
+       * 
+ * + * string uri = 2; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentCase_ = 2; + content_ = value; + onChanged(); + return this; + } + + private int format_ = 0; + /** + *
+       * Format of the long description
+       * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + public int getFormatValue() { + return format_; + } + /** + *
+       * Format of the long description
+       * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + public Builder setFormatValue(int value) { + format_ = value; + onChanged(); + return this; + } + /** + *
+       * Format of the long description
+       * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat result = flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.valueOf(format_); + return result == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.UNRECOGNIZED : result; + } + /** + *
+       * Format of the long description
+       * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + public Builder setFormat(flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Format of the long description
+       * 
+ * + * .flyteidl.admin.DescriptionFormat format = 3; + */ + public Builder clearFormat() { + + format_ = 0; + onChanged(); + return this; + } + + private java.lang.Object iconLink_ = ""; + /** + *
+       * Optional link to an icon for the entity
+       * 
+ * + * string icon_link = 4; + */ + public java.lang.String getIconLink() { + java.lang.Object ref = iconLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional link to an icon for the entity
+       * 
+ * + * string icon_link = 4; + */ + public com.google.protobuf.ByteString + getIconLinkBytes() { + java.lang.Object ref = iconLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional link to an icon for the entity
+       * 
+ * + * string icon_link = 4; + */ + public Builder setIconLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + iconLink_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional link to an icon for the entity
+       * 
+ * + * string icon_link = 4; + */ + public Builder clearIconLink() { + + iconLink_ = getDefaultInstance().getIconLink(); + onChanged(); + return this; + } + /** + *
+       * Optional link to an icon for the entity
+       * 
+ * + * string icon_link = 4; + */ + public Builder setIconLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + iconLink_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Description) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Description) + private static final flyteidl.admin.DescriptionEntityOuterClass.Description DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.Description(); + } + + public static flyteidl.admin.DescriptionEntityOuterClass.Description getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Description parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Description(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.Description getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SourceCodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SourceCode) + com.google.protobuf.MessageOrBuilder { + + /** + * string link = 1; + */ + java.lang.String getLink(); + /** + * string link = 1; + */ + com.google.protobuf.ByteString + getLinkBytes(); + } + /** + *
+   * Link to source code used to define this entity
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SourceCode} + */ + public static final class SourceCode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SourceCode) + SourceCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceCode.newBuilder() to construct. + private SourceCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SourceCode() { + link_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SourceCode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + link_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.SourceCode.class, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder.class); + } + + public static final int LINK_FIELD_NUMBER = 1; + private volatile java.lang.Object link_; + /** + * string link = 1; + */ + public java.lang.String getLink() { + java.lang.Object ref = link_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + link_ = s; + return s; + } + } + /** + * string link = 1; + */ + public com.google.protobuf.ByteString + getLinkBytes() { + java.lang.Object ref = link_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + link_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getLinkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, link_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLinkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, link_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.DescriptionEntityOuterClass.SourceCode)) { + return super.equals(obj); + } + flyteidl.admin.DescriptionEntityOuterClass.SourceCode other = (flyteidl.admin.DescriptionEntityOuterClass.SourceCode) obj; + + if (!getLink() + .equals(other.getLink())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINK_FIELD_NUMBER; + hash = (53 * hash) + getLink().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.DescriptionEntityOuterClass.SourceCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Link to source code used to define this entity
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SourceCode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SourceCode) + flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.SourceCode.class, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder.class); + } + + // Construct using flyteidl.admin.DescriptionEntityOuterClass.SourceCode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + link_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_descriptor; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.SourceCode getDefaultInstanceForType() { + return flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.SourceCode build() { + flyteidl.admin.DescriptionEntityOuterClass.SourceCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.SourceCode buildPartial() { + flyteidl.admin.DescriptionEntityOuterClass.SourceCode result = new flyteidl.admin.DescriptionEntityOuterClass.SourceCode(this); + result.link_ = link_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.DescriptionEntityOuterClass.SourceCode) { + return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.SourceCode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.SourceCode other) { + if (other == flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance()) return this; + if (!other.getLink().isEmpty()) { + link_ = other.link_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.DescriptionEntityOuterClass.SourceCode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.SourceCode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object link_ = ""; + /** + * string link = 1; + */ + public java.lang.String getLink() { + java.lang.Object ref = link_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + link_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string link = 1; + */ + public com.google.protobuf.ByteString + getLinkBytes() { + java.lang.Object ref = link_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + link_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string link = 1; + */ + public Builder setLink( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + link_ = value; + onChanged(); + return this; + } + /** + * string link = 1; + */ + public Builder clearLink() { + + link_ = getDefaultInstance().getLink(); + onChanged(); + return this; + } + /** + * string link = 1; + */ + public Builder setLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + link_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SourceCode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SourceCode) + private static final flyteidl.admin.DescriptionEntityOuterClass.SourceCode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.SourceCode(); + } + + public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceCode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.SourceCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DescriptionEntityListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DescriptionEntityList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + java.util.List + getDescriptionEntitiesList(); + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescriptionEntities(int index); + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + int getDescriptionEntitiesCount(); + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + java.util.List + getDescriptionEntitiesOrBuilderList(); + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionEntitiesOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of DescriptionEntities returned from the admin.
+   * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DescriptionEntityList} + */ + public static final class DescriptionEntityList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DescriptionEntityList) + DescriptionEntityListOrBuilder { + private static final long serialVersionUID = 0L; + // Use DescriptionEntityList.newBuilder() to construct. + private DescriptionEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DescriptionEntityList() { + descriptionEntities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DescriptionEntityList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descriptionEntities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descriptionEntities_.add( + input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descriptionEntities_ = java.util.Collections.unmodifiableList(descriptionEntities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.Builder.class); + } + + private int bitField0_; + public static final int DESCRIPTIONENTITIES_FIELD_NUMBER = 1; + private java.util.List descriptionEntities_; + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public java.util.List getDescriptionEntitiesList() { + return descriptionEntities_; + } + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public java.util.List + getDescriptionEntitiesOrBuilderList() { + return descriptionEntities_; + } + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public int getDescriptionEntitiesCount() { + return descriptionEntities_.size(); + } + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescriptionEntities(int index) { + return descriptionEntities_.get(index); + } + /** + *
+     * A list of DescriptionEntities returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionEntitiesOrBuilder( + int index) { + return descriptionEntities_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < descriptionEntities_.size(); i++) { + output.writeMessage(1, descriptionEntities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < descriptionEntities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, descriptionEntities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList)) { + return super.equals(obj); + } + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList other = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList) obj; + + if (!getDescriptionEntitiesList() + .equals(other.getDescriptionEntitiesList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDescriptionEntitiesCount() > 0) { + hash = (37 * hash) + DESCRIPTIONENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getDescriptionEntitiesList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a list of DescriptionEntities returned from the admin.
+     * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DescriptionEntityList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DescriptionEntityList) + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.Builder.class); + } + + // Construct using flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDescriptionEntitiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (descriptionEntitiesBuilder_ == null) { + descriptionEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + descriptionEntitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList getDefaultInstanceForType() { + return flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList build() { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList buildPartial() { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList result = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (descriptionEntitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + descriptionEntities_ = java.util.Collections.unmodifiableList(descriptionEntities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descriptionEntities_ = descriptionEntities_; + } else { + result.descriptionEntities_ = descriptionEntitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList) { + return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList other) { + if (other == flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.getDefaultInstance()) return this; + if (descriptionEntitiesBuilder_ == null) { + if (!other.descriptionEntities_.isEmpty()) { + if (descriptionEntities_.isEmpty()) { + descriptionEntities_ = other.descriptionEntities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.addAll(other.descriptionEntities_); + } + onChanged(); + } + } else { + if (!other.descriptionEntities_.isEmpty()) { + if (descriptionEntitiesBuilder_.isEmpty()) { + descriptionEntitiesBuilder_.dispose(); + descriptionEntitiesBuilder_ = null; + descriptionEntities_ = other.descriptionEntities_; + bitField0_ = (bitField0_ & ~0x00000001); + descriptionEntitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDescriptionEntitiesFieldBuilder() : null; + } else { + descriptionEntitiesBuilder_.addAllMessages(other.descriptionEntities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List descriptionEntities_ = + java.util.Collections.emptyList(); + private void ensureDescriptionEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descriptionEntities_ = new java.util.ArrayList(descriptionEntities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> descriptionEntitiesBuilder_; + + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public java.util.List getDescriptionEntitiesList() { + if (descriptionEntitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(descriptionEntities_); + } else { + return descriptionEntitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public int getDescriptionEntitiesCount() { + if (descriptionEntitiesBuilder_ == null) { + return descriptionEntities_.size(); + } else { + return descriptionEntitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescriptionEntities(int index) { + if (descriptionEntitiesBuilder_ == null) { + return descriptionEntities_.get(index); + } else { + return descriptionEntitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder setDescriptionEntities( + int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { + if (descriptionEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.set(index, value); + onChanged(); + } else { + descriptionEntitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder setDescriptionEntities( + int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { + if (descriptionEntitiesBuilder_ == null) { + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.set(index, builderForValue.build()); + onChanged(); + } else { + descriptionEntitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder addDescriptionEntities(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { + if (descriptionEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.add(value); + onChanged(); + } else { + descriptionEntitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder addDescriptionEntities( + int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { + if (descriptionEntitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.add(index, value); + onChanged(); + } else { + descriptionEntitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder addDescriptionEntities( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { + if (descriptionEntitiesBuilder_ == null) { + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.add(builderForValue.build()); + onChanged(); + } else { + descriptionEntitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder addDescriptionEntities( + int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { + if (descriptionEntitiesBuilder_ == null) { + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.add(index, builderForValue.build()); + onChanged(); + } else { + descriptionEntitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder addAllDescriptionEntities( + java.lang.Iterable values) { + if (descriptionEntitiesBuilder_ == null) { + ensureDescriptionEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descriptionEntities_); + onChanged(); + } else { + descriptionEntitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder clearDescriptionEntities() { + if (descriptionEntitiesBuilder_ == null) { + descriptionEntities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + descriptionEntitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public Builder removeDescriptionEntities(int index) { + if (descriptionEntitiesBuilder_ == null) { + ensureDescriptionEntitiesIsMutable(); + descriptionEntities_.remove(index); + onChanged(); + } else { + descriptionEntitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder getDescriptionEntitiesBuilder( + int index) { + return getDescriptionEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionEntitiesOrBuilder( + int index) { + if (descriptionEntitiesBuilder_ == null) { + return descriptionEntities_.get(index); } else { + return descriptionEntitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public java.util.List + getDescriptionEntitiesOrBuilderList() { + if (descriptionEntitiesBuilder_ != null) { + return descriptionEntitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(descriptionEntities_); + } + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder addDescriptionEntitiesBuilder() { + return getDescriptionEntitiesFieldBuilder().addBuilder( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance()); + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder addDescriptionEntitiesBuilder( + int index) { + return getDescriptionEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance()); + } + /** + *
+       * A list of DescriptionEntities returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + public java.util.List + getDescriptionEntitiesBuilderList() { + return getDescriptionEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> + getDescriptionEntitiesFieldBuilder() { + if (descriptionEntitiesBuilder_ == null) { + descriptionEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder>( + descriptionEntities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + descriptionEntities_ = null; + } + return descriptionEntitiesBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DescriptionEntityList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityList) + private static final flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList(); + } + + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DescriptionEntityList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DescriptionEntityList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DescriptionEntityListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DescriptionEntityListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * The identifier for the description entity.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + boolean hasId(); + /** + *
+     * The identifier for the description entity.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * The identifier for the description entity.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 5; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 5; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of DescriptionEntities.
+   * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DescriptionEntityListRequest} + */ + public static final class DescriptionEntityListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DescriptionEntityListRequest) + DescriptionEntityListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DescriptionEntityListRequest.newBuilder() to construct. + private DescriptionEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DescriptionEntityListRequest() { + resourceType_ = 0; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DescriptionEntityListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * The identifier for the description entity.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier for the description entity.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier for the description entity.
+     * +required
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 5; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 5; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 5; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filters_); + } + if (sortBy_ != null) { + output.writeMessage(6, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSortBy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest)) { + return super.equals(obj); + } + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest other = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to retrieve a list of DescriptionEntities.
+     * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DescriptionEntityListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DescriptionEntityListRequest) + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.Builder.class); + } + + // Construct using flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest getDefaultInstanceForType() { + return flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest build() { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest buildPartial() { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest result = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest(this); + result.resourceType_ = resourceType_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest) { + return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest other) { + if (other == flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier for the description entity.
+       * +required
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 5; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 5; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 5; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 5; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 5; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DescriptionEntityListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityListRequest) + private static final flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest(); + } + + public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DescriptionEntityListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DescriptionEntityListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DescriptionEntity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Description_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Description_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SourceCode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SourceCode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DescriptionEntityList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'flyteidl/admin/description_entity.prot" + + "o\022\016flyteidl.admin\032\036flyteidl/core/identif" + + "ier.proto\032\033flyteidl/admin/common.proto\"\313" + + "\001\n\021DescriptionEntity\022%\n\002id\030\001 \001(\0132\031.flyte" + + "idl.core.Identifier\022\031\n\021short_description" + + "\030\002 \001(\t\0225\n\020long_description\030\003 \001(\0132\033.flyte" + + "idl.admin.Description\022/\n\013source_code\030\004 \001" + + "(\0132\032.flyteidl.admin.SourceCode\022\014\n\004tags\030\005" + + " \003(\t\"~\n\013Description\022\017\n\005value\030\001 \001(\tH\000\022\r\n\003" + + "uri\030\002 \001(\tH\000\0221\n\006format\030\003 \001(\0162!.flyteidl.a" + + "dmin.DescriptionFormat\022\021\n\ticon_link\030\004 \001(" + + "\tB\t\n\007content\"\032\n\nSourceCode\022\014\n\004link\030\001 \001(\t" + + "\"f\n\025DescriptionEntityList\022>\n\023description" + + "Entities\030\001 \003(\0132!.flyteidl.admin.Descript" + + "ionEntity\022\r\n\005token\030\002 \001(\t\"\333\001\n\034Description" + + "EntityListRequest\0222\n\rresource_type\030\001 \001(\016" + + "2\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(" + + "\0132%.flyteidl.admin.NamedEntityIdentifier" + + "\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022\017\n\007filter" + + "s\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admi" + + "n.Sort*\215\001\n\021DescriptionFormat\022\036\n\032DESCRIPT" + + "ION_FORMAT_UNKNOWN\020\000\022\037\n\033DESCRIPTION_FORM" + + "AT_MARKDOWN\020\001\022\033\n\027DESCRIPTION_FORMAT_HTML" + + "\020\002\022\032\n\026DESCRIPTION_FORMAT_RST\020\003B7Z5github" + + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + + "l/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_DescriptionEntity_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DescriptionEntity_descriptor, + new java.lang.String[] { "Id", "ShortDescription", "LongDescription", "SourceCode", "Tags", }); + internal_static_flyteidl_admin_Description_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Description_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Description_descriptor, + new java.lang.String[] { "Value", "Uri", "Format", "IconLink", "Content", }); + internal_static_flyteidl_admin_SourceCode_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_SourceCode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SourceCode_descriptor, + new java.lang.String[] { "Link", }); + internal_static_flyteidl_admin_DescriptionEntityList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DescriptionEntityList_descriptor, + new java.lang.String[] { "DescriptionEntities", "Token", }); + internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor, + new java.lang.String[] { "ResourceType", "Id", "Limit", "Token", "Filters", "SortBy", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Event.java b/flyteidl/gen/pb-java/flyteidl/admin/Event.java new file mode 100644 index 0000000000..2cf63d6c83 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Event.java @@ -0,0 +1,6086 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +package flyteidl.admin; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EventErrorAlreadyInTerminalStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorAlreadyInTerminalState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * +required
+     * 
+ * + * string current_phase = 1; + */ + java.lang.String getCurrentPhase(); + /** + *
+     * +required
+     * 
+ * + * string current_phase = 1; + */ + com.google.protobuf.ByteString + getCurrentPhaseBytes(); + } + /** + *
+   * Indicates that a sent event was not used to update execution state due to
+   * the referenced execution already being terminated (and therefore ineligible
+   * for further state transitions).
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class EventErrorAlreadyInTerminalState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + EventErrorAlreadyInTerminalStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventErrorAlreadyInTerminalState.newBuilder() to construct. + private EventErrorAlreadyInTerminalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventErrorAlreadyInTerminalState() { + currentPhase_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventErrorAlreadyInTerminalState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + currentPhase_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + public static final int CURRENT_PHASE_FIELD_NUMBER = 1; + private volatile java.lang.Object currentPhase_; + /** + *
+     * +required
+     * 
+ * + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentPhase_ = s; + return s; + } + } + /** + *
+     * +required
+     * 
+ * + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCurrentPhaseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPhase_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCurrentPhaseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPhase_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.EventErrorAlreadyInTerminalState)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventErrorAlreadyInTerminalState other = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) obj; + + if (!getCurrentPhase() + .equals(other.getCurrentPhase())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CURRENT_PHASE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentPhase().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.EventErrorAlreadyInTerminalState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Indicates that a sent event was not used to update execution state due to
+     * the referenced execution already being terminated (and therefore ineligible
+     * for further state transitions).
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + currentPhase_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState build() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState buildPartial() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(this); + result.currentPhase_ = currentPhase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.EventErrorAlreadyInTerminalState) { + return mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventErrorAlreadyInTerminalState other) { + if (other == flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) return this; + if (!other.getCurrentPhase().isEmpty()) { + currentPhase_ = other.currentPhase_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object currentPhase_ = ""; + /** + *
+       * +required
+       * 
+ * + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentPhase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * +required
+       * 
+ * + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * +required
+       * 
+ * + * string current_phase = 1; + */ + public Builder setCurrentPhase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentPhase_ = value; + onChanged(); + return this; + } + /** + *
+       * +required
+       * 
+ * + * string current_phase = 1; + */ + public Builder clearCurrentPhase() { + + currentPhase_ = getDefaultInstance().getCurrentPhase(); + onChanged(); + return this; + } + /** + *
+       * +required
+       * 
+ * + * string current_phase = 1; + */ + public Builder setCurrentPhaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentPhase_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + private static final flyteidl.admin.Event.EventErrorAlreadyInTerminalState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(); + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventErrorAlreadyInTerminalState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventErrorAlreadyInTerminalState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventErrorIncompatibleClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorIncompatibleCluster) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The cluster which has been recorded as processing the execution.
+     * +required
+     * 
+ * + * string cluster = 1; + */ + java.lang.String getCluster(); + /** + *
+     * The cluster which has been recorded as processing the execution.
+     * +required
+     * 
+ * + * string cluster = 1; + */ + com.google.protobuf.ByteString + getClusterBytes(); + } + /** + *
+   * Indicates an event was rejected because it came from a different cluster than 
+   * is on record as running the execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EventErrorIncompatibleCluster} + */ + public static final class EventErrorIncompatibleCluster extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorIncompatibleCluster) + EventErrorIncompatibleClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventErrorIncompatibleCluster.newBuilder() to construct. + private EventErrorIncompatibleCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventErrorIncompatibleCluster() { + cluster_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventErrorIncompatibleCluster( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cluster_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorIncompatibleCluster.class, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder.class); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + private volatile java.lang.Object cluster_; + /** + *
+     * The cluster which has been recorded as processing the execution.
+     * +required
+     * 
+ * + * string cluster = 1; + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + *
+     * The cluster which has been recorded as processing the execution.
+     * +required
+     * 
+ * + * string cluster = 1; + */ + public com.google.protobuf.ByteString + getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getClusterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClusterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.EventErrorIncompatibleCluster)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventErrorIncompatibleCluster other = (flyteidl.admin.Event.EventErrorIncompatibleCluster) obj; + + if (!getCluster() + .equals(other.getCluster())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.EventErrorIncompatibleCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Indicates an event was rejected because it came from a different cluster than 
+     * is on record as running the execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EventErrorIncompatibleCluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorIncompatibleCluster) + flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorIncompatibleCluster.class, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventErrorIncompatibleCluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + cluster_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorIncompatibleCluster getDefaultInstanceForType() { + return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorIncompatibleCluster build() { + flyteidl.admin.Event.EventErrorIncompatibleCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorIncompatibleCluster buildPartial() { + flyteidl.admin.Event.EventErrorIncompatibleCluster result = new flyteidl.admin.Event.EventErrorIncompatibleCluster(this); + result.cluster_ = cluster_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.EventErrorIncompatibleCluster) { + return mergeFrom((flyteidl.admin.Event.EventErrorIncompatibleCluster)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventErrorIncompatibleCluster other) { + if (other == flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance()) return this; + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.EventErrorIncompatibleCluster parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventErrorIncompatibleCluster) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cluster_ = ""; + /** + *
+       * The cluster which has been recorded as processing the execution.
+       * +required
+       * 
+ * + * string cluster = 1; + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The cluster which has been recorded as processing the execution.
+       * +required
+       * 
+ * + * string cluster = 1; + */ + public com.google.protobuf.ByteString + getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The cluster which has been recorded as processing the execution.
+       * +required
+       * 
+ * + * string cluster = 1; + */ + public Builder setCluster( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cluster_ = value; + onChanged(); + return this; + } + /** + *
+       * The cluster which has been recorded as processing the execution.
+       * +required
+       * 
+ * + * string cluster = 1; + */ + public Builder clearCluster() { + + cluster_ = getDefaultInstance().getCluster(); + onChanged(); + return this; + } + /** + *
+       * The cluster which has been recorded as processing the execution.
+       * +required
+       * 
+ * + * string cluster = 1; + */ + public Builder setClusterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cluster_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EventErrorIncompatibleCluster) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorIncompatibleCluster) + private static final flyteidl.admin.Event.EventErrorIncompatibleCluster DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorIncompatibleCluster(); + } + + public static flyteidl.admin.Event.EventErrorIncompatibleCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventErrorIncompatibleCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventErrorIncompatibleCluster(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.EventErrorIncompatibleCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventFailureReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + boolean hasAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder(); + + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + boolean hasIncompatibleCluster(); + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + flyteidl.admin.Event.EventErrorIncompatibleCluster getIncompatibleCluster(); + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder getIncompatibleClusterOrBuilder(); + + public flyteidl.admin.Event.EventFailureReason.ReasonCase getReasonCase(); + } + /** + *
+   * Indicates why a sent event was not used to update execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EventFailureReason} + */ + public static final class EventFailureReason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventFailureReason) + EventFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventFailureReason.newBuilder() to construct. + private EventFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventFailureReason() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventFailureReason( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder subBuilder = null; + if (reasonCase_ == 1) { + subBuilder = ((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.Event.EventErrorAlreadyInTerminalState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 1; + break; + } + case 18: { + flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder subBuilder = null; + if (reasonCase_ == 2) { + subBuilder = ((flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.Event.EventErrorIncompatibleCluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite { + ALREADY_IN_TERMINAL_STATE(1), + INCOMPATIBLE_CLUSTER(2), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return ALREADY_IN_TERMINAL_STATE; + case 2: return INCOMPATIBLE_CLUSTER; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + public static final int INCOMPATIBLE_CLUSTER_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public boolean hasIncompatibleCluster() { + return reasonCase_ == 2; + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public flyteidl.admin.Event.EventErrorIncompatibleCluster getIncompatibleCluster() { + if (reasonCase_ == 2) { + return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; + } + return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder getIncompatibleClusterOrBuilder() { + if (reasonCase_ == 2) { + return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; + } + return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + if (reasonCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + if (reasonCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.EventFailureReason)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventFailureReason other = (flyteidl.admin.Event.EventFailureReason) obj; + + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 1: + if (!getAlreadyInTerminalState() + .equals(other.getAlreadyInTerminalState())) return false; + break; + case 2: + if (!getIncompatibleCluster() + .equals(other.getIncompatibleCluster())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + getAlreadyInTerminalState().hashCode(); + break; + case 2: + hash = (37 * hash) + INCOMPATIBLE_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getIncompatibleCluster().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.EventFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Indicates why a sent event was not used to update execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EventFailureReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventFailureReason) + flyteidl.admin.Event.EventFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventFailureReason.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return flyteidl.admin.Event.EventFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason build() { + flyteidl.admin.Event.EventFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason buildPartial() { + flyteidl.admin.Event.EventFailureReason result = new flyteidl.admin.Event.EventFailureReason(this); + if (reasonCase_ == 1) { + if (alreadyInTerminalStateBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = alreadyInTerminalStateBuilder_.build(); + } + } + if (reasonCase_ == 2) { + if (incompatibleClusterBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = incompatibleClusterBuilder_.build(); + } + } + result.reasonCase_ = reasonCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.EventFailureReason) { + return mergeFrom((flyteidl.admin.Event.EventFailureReason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventFailureReason other) { + if (other == flyteidl.admin.Event.EventFailureReason.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case ALREADY_IN_TERMINAL_STATE: { + mergeAlreadyInTerminalState(other.getAlreadyInTerminalState()); + break; + } + case INCOMPATIBLE_CLUSTER: { + mergeIncompatibleCluster(other.getIncompatibleCluster()); + break; + } + case REASON_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.EventFailureReason parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventFailureReason) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> alreadyInTerminalStateBuilder_; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return alreadyInTerminalStateBuilder_.getMessage(); + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder builderForValue) { + if (alreadyInTerminalStateBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder mergeAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + alreadyInTerminalStateBuilder_.mergeFrom(value); + } + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder clearAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + alreadyInTerminalStateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder getAlreadyInTerminalStateBuilder() { + return getAlreadyInTerminalStateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if ((reasonCase_ == 1) && (alreadyInTerminalStateBuilder_ != null)) { + return alreadyInTerminalStateBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> + getAlreadyInTerminalStateFieldBuilder() { + if (alreadyInTerminalStateBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + alreadyInTerminalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder>( + (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged();; + return alreadyInTerminalStateBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorIncompatibleCluster, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder, flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder> incompatibleClusterBuilder_; + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public boolean hasIncompatibleCluster() { + return reasonCase_ == 2; + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public flyteidl.admin.Event.EventErrorIncompatibleCluster getIncompatibleCluster() { + if (incompatibleClusterBuilder_ == null) { + if (reasonCase_ == 2) { + return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; + } + return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); + } else { + if (reasonCase_ == 2) { + return incompatibleClusterBuilder_.getMessage(); + } + return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public Builder setIncompatibleCluster(flyteidl.admin.Event.EventErrorIncompatibleCluster value) { + if (incompatibleClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + incompatibleClusterBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public Builder setIncompatibleCluster( + flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder builderForValue) { + if (incompatibleClusterBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + incompatibleClusterBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public Builder mergeIncompatibleCluster(flyteidl.admin.Event.EventErrorIncompatibleCluster value) { + if (incompatibleClusterBuilder_ == null) { + if (reasonCase_ == 2 && + reason_ != flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance()) { + reason_ = flyteidl.admin.Event.EventErrorIncompatibleCluster.newBuilder((flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 2) { + incompatibleClusterBuilder_.mergeFrom(value); + } + incompatibleClusterBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public Builder clearIncompatibleCluster() { + if (incompatibleClusterBuilder_ == null) { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + } + incompatibleClusterBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder getIncompatibleClusterBuilder() { + return getIncompatibleClusterFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + public flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder getIncompatibleClusterOrBuilder() { + if ((reasonCase_ == 2) && (incompatibleClusterBuilder_ != null)) { + return incompatibleClusterBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 2) { + return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; + } + return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorIncompatibleCluster, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder, flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder> + getIncompatibleClusterFieldBuilder() { + if (incompatibleClusterBuilder_ == null) { + if (!(reasonCase_ == 2)) { + reason_ = flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); + } + incompatibleClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorIncompatibleCluster, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder, flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder>( + (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 2; + onChanged();; + return incompatibleClusterBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EventFailureReason) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) + private static final flyteidl.admin.Event.EventFailureReason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventFailureReason(); + } + + public static flyteidl.admin.Event.EventFailureReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFailureReason(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a workflow execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class WorkflowExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventRequest) + WorkflowExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventRequest.newBuilder() to construct. + private WorkflowExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.WorkflowExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.WorkflowExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventRequest other = (flyteidl.admin.Event.WorkflowExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.WorkflowExecutionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to send a notification that a workflow execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventRequest) + flyteidl.admin.Event.WorkflowExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest build() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = new flyteidl.admin.Event.WorkflowExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.WorkflowExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventRequest other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.WorkflowExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.WorkflowExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) + private static final flyteidl.admin.Event.WorkflowExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventRequest(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class WorkflowExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventResponse) + WorkflowExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventResponse.newBuilder() to construct. + private WorkflowExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.WorkflowExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventResponse other = (flyteidl.admin.Event.WorkflowExecutionEventResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.WorkflowExecutionEventResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventResponse) + flyteidl.admin.Event.WorkflowExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse build() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = new flyteidl.admin.Event.WorkflowExecutionEventResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.WorkflowExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventResponse other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.WorkflowExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) + private static final flyteidl.admin.Event.WorkflowExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventResponse(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a node execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class NodeExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventRequest) + NodeExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventRequest.newBuilder() to construct. + private NodeExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.NodeExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.NodeExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.NodeExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventRequest other = (flyteidl.admin.Event.NodeExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.NodeExecutionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to send a notification that a node execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventRequest) + flyteidl.admin.Event.NodeExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest build() { + flyteidl.admin.Event.NodeExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest buildPartial() { + flyteidl.admin.Event.NodeExecutionEventRequest result = new flyteidl.admin.Event.NodeExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.NodeExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventRequest other) { + if (other == flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.NodeExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.NodeExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.NodeExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) + private static final flyteidl.admin.Event.NodeExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventRequest(); + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class NodeExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventResponse) + NodeExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventResponse.newBuilder() to construct. + private NodeExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.NodeExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventResponse other = (flyteidl.admin.Event.NodeExecutionEventResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.NodeExecutionEventResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventResponse) + flyteidl.admin.Event.NodeExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse build() { + flyteidl.admin.Event.NodeExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse buildPartial() { + flyteidl.admin.Event.NodeExecutionEventResponse result = new flyteidl.admin.Event.NodeExecutionEventResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.NodeExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventResponse other) { + if (other == flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.NodeExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) + private static final flyteidl.admin.Event.NodeExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventResponse(); + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a task execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class TaskExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventRequest) + TaskExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventRequest.newBuilder() to construct. + private TaskExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.TaskExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.TaskExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.TaskExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventRequest other = (flyteidl.admin.Event.TaskExecutionEventRequest) obj; + + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (hasEvent() != other.hasEvent()) return false; + if (hasEvent()) { + if (!getEvent() + .equals(other.getEvent())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.TaskExecutionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to send a notification that a task execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventRequest) + flyteidl.admin.Event.TaskExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest build() { + flyteidl.admin.Event.TaskExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest buildPartial() { + flyteidl.admin.Event.TaskExecutionEventRequest result = new flyteidl.admin.Event.TaskExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.TaskExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventRequest other) { + if (other == flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.TaskExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.TaskExecutionEvent event_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.TaskExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) + private static final flyteidl.admin.Event.TaskExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventRequest(); + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class TaskExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventResponse) + TaskExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventResponse.newBuilder() to construct. + private TaskExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Event.TaskExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventResponse other = (flyteidl.admin.Event.TaskExecutionEventResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.TaskExecutionEventResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventResponse) + flyteidl.admin.Event.TaskExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse build() { + flyteidl.admin.Event.TaskExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse buildPartial() { + flyteidl.admin.Event.TaskExecutionEventResponse result = new flyteidl.admin.Event.TaskExecutionEventResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.TaskExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventResponse other) { + if (other == flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.TaskExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) + private static final flyteidl.admin.Event.TaskExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventResponse(); + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventFailureReason_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/admin/event.proto\022\016flyteidl.a" + + "dmin\032\032flyteidl/event/event.proto\"9\n Even" + + "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + + "phase\030\001 \001(\t\"0\n\035EventErrorIncompatibleClu" + + "ster\022\017\n\007cluster\030\001 \001(\t\"\304\001\n\022EventFailureRe" + + "ason\022U\n\031already_in_terminal_state\030\001 \001(\0132" + + "0.flyteidl.admin.EventErrorAlreadyInTerm" + + "inalStateH\000\022M\n\024incompatible_cluster\030\002 \001(" + + "\0132-.flyteidl.admin.EventErrorIncompatibl" + + "eClusterH\000B\010\n\006reason\"j\n\035WorkflowExecutio" + + "nEventRequest\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005eve" + + "nt\030\002 \001(\0132&.flyteidl.event.WorkflowExecut" + + "ionEvent\" \n\036WorkflowExecutionEventRespon" + + "se\"b\n\031NodeExecutionEventRequest\022\022\n\nreque" + + "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + + "ent.NodeExecutionEvent\"\034\n\032NodeExecutionE" + + "ventResponse\"b\n\031TaskExecutionEventReques" + + "t\022\022\n\nrequest_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".f" + + "lyteidl.event.TaskExecutionEvent\"\034\n\032Task" + + "ExecutionEventResponseB7Z5github.com/fly" + + "teorg/flyteidl/gen/pb-go/flyteidl/adminb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.event.Event.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor, + new java.lang.String[] { "CurrentPhase", }); + internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor, + new java.lang.String[] { "Cluster", }); + internal_static_flyteidl_admin_EventFailureReason_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventFailureReason_descriptor, + new java.lang.String[] { "AlreadyInTerminalState", "IncompatibleCluster", "Reason", }); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor, + new java.lang.String[] { }); + flyteidl.event.Event.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java new file mode 100644 index 0000000000..4ceddc6412 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java @@ -0,0 +1,28727 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +package flyteidl.admin; + +public final class ExecutionOuterClass { + private ExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The state of the execution is used to control its visibility in the UI/CLI.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.ExecutionState} + */ + public enum ExecutionState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * By default, all executions are considered active.
+     * 
+ * + * EXECUTION_ACTIVE = 0; + */ + EXECUTION_ACTIVE(0), + /** + *
+     * Archived executions are no longer visible in the UI.
+     * 
+ * + * EXECUTION_ARCHIVED = 1; + */ + EXECUTION_ARCHIVED(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * By default, all executions are considered active.
+     * 
+ * + * EXECUTION_ACTIVE = 0; + */ + public static final int EXECUTION_ACTIVE_VALUE = 0; + /** + *
+     * Archived executions are no longer visible in the UI.
+     * 
+ * + * EXECUTION_ARCHIVED = 1; + */ + public static final int EXECUTION_ARCHIVED_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionState valueOf(int value) { + return forNumber(value); + } + + public static ExecutionState forNumber(int value) { + switch (value) { + case 0: return EXECUTION_ACTIVE; + case 1: return EXECUTION_ARCHIVED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ExecutionState[] VALUES = values(); + + public static ExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExecutionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionState) + } + + public interface ExecutionCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the execution belongs to.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the execution belongs to.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the execution belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the execution belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Additional fields necessary to launch the execution.
+     * +optional
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + boolean hasSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * +optional
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * +optional
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + boolean hasInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + } + /** + *
+   * Request to launch an execution with the given project, domain and optionally-assigned name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class ExecutionCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateRequest) + ExecutionCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateRequest.newBuilder() to construct. + private ExecutionCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateRequest() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the execution belongs to.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the execution belongs to.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the execution belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the execution belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_FIELD_NUMBER = 4; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * Additional fields necessary to launch the execution.
+     * +optional
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * +optional
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * +optional
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int INPUTS_FIELD_NUMBER = 5; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (spec_ != null) { + output.writeMessage(4, getSpec()); + } + if (inputs_ != null) { + output.writeMessage(5, getInputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSpec()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to launch an execution with the given project, domain and optionally-assigned name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the execution belongs to.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the execution belongs to.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the execution belongs to.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the execution belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * +optional
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionRelaunchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRelaunchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 4; + */ + boolean getOverwriteCache(); + } + /** + *
+   * Request to relaunch the referenced execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class ExecutionRelaunchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRelaunchRequest) + ExecutionRelaunchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionRelaunchRequest.newBuilder() to construct. + private ExecutionRelaunchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionRelaunchRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionRelaunchRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 32: { + + overwriteCache_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERWRITE_CACHE_FIELD_NUMBER = 4; + private boolean overwriteCache_; + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 4; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (overwriteCache_ != false) { + output.writeBool(4, overwriteCache_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (overwriteCache_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, overwriteCache_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getName() + .equals(other.getName())) return false; + if (getOverwriteCache() + != other.getOverwriteCache()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOverwriteCache()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to relaunch the referenced execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRelaunchRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + name_ = ""; + + overwriteCache_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.name_ = name_; + result.overwriteCache_ = overwriteCache_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getOverwriteCache() != false) { + setOverwriteCache(other.getOverwriteCache()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean overwriteCache_ ; + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 4; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 4; + */ + public Builder setOverwriteCache(boolean value) { + + overwriteCache_ = value; + onChanged(); + return this; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 4; + */ + public Builder clearOverwriteCache() { + + overwriteCache_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionRelaunchRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionRelaunchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionRelaunchRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionRecoverRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRecoverRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of the workflow execution to recover.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of the workflow execution to recover.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Identifier of the workflow execution to recover.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User provided value for the recovered execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the recovered execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); + /** + *
+     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Request to recover the referenced execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRecoverRequest} + */ + public static final class ExecutionRecoverRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRecoverRequest) + ExecutionRecoverRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionRecoverRequest.newBuilder() to construct. + private ExecutionRecoverRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionRecoverRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionRecoverRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Identifier of the workflow execution to recover.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the workflow execution to recover.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the workflow execution to recover.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the recovered execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the recovered execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + /** + *
+     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getName() + .equals(other.getName())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to recover the referenced execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRecoverRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRecoverRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + name_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.name_ = name_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the workflow execution to recover.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the recovered execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the recovered execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the recovered execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the recovered execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the recovered execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionRecoverRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRecoverRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionRecoverRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionRecoverRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The unique identifier for a successfully created execution.
+   * If the name was *not* specified in the create request, this identifier will include a generated name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class ExecutionCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateResponse) + ExecutionCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateResponse.newBuilder() to construct. + private ExecutionCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The unique identifier for a successfully created execution.
+     * If the name was *not* specified in the create request, this identifier will include a generated name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single workflow execution entity.
+   * See :ref:`ref_flyteidl.admin.Execution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class WorkflowExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetRequest) + WorkflowExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetRequest.newBuilder() to construct. + private WorkflowExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to fetch a single workflow execution entity.
+     * See :ref:`ref_flyteidl.admin.Execution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Execution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Execution results.
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Execution results.
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure(); + /** + *
+     * Execution results.
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A workflow execution represents an instantiated workflow, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * Used as a response object used in Get and List execution requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Execution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Execution) + ExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Execution.newBuilder() to construct. + private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Execution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Execution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; + /** + *
+     * Execution results.
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Execution results.
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Execution results.
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.Execution)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.Execution other = (flyteidl.admin.ExecutionOuterClass.Execution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.Execution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A workflow execution represents an instantiated workflow, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * Used as a response object used in Get and List execution requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Execution) + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.Execution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution build() { + flyteidl.admin.ExecutionOuterClass.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution buildPartial() { + flyteidl.admin.ExecutionOuterClass.Execution result = new flyteidl.admin.ExecutionOuterClass.Execution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.Execution) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.Execution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.Execution other) { + if (other == flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.Execution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.Execution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Execution results.
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Execution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) + private static final flyteidl.admin.ExecutionOuterClass.Execution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.Execution(); + } + + public static flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Execution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + int getExecutionsCount(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Used as a response for request to list executions.
+   * See :ref:`ref_flyteidl.admin.Execution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class ExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionList) + ExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionList.newBuilder() to construct. + private ExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionList() { + executions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + executions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + executions_.add( + input.readMessage(flyteidl.admin.ExecutionOuterClass.Execution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + private int bitField0_; + public static final int EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List executions_; + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + return executions_.size(); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + return executions_.get(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + return executions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < executions_.size(); i++) { + output.writeMessage(1, executions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionList other = (flyteidl.admin.ExecutionOuterClass.ExecutionList) obj; + + if (!getExecutionsList() + .equals(other.getExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Used as a response for request to list executions.
+     * See :ref:`ref_flyteidl.admin.Execution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionList) + flyteidl.admin.ExecutionOuterClass.ExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + executionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList build() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = new flyteidl.admin.ExecutionOuterClass.ExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionList other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance()) return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionsFieldBuilder() : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List executions_ = + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + executions_ = new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> executionsBuilder_; + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions(flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder getExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder().addBuilder( + flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionList(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LiteralMapBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder(); + + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + java.lang.String getUri(); + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + com.google.protobuf.ByteString + getUriBytes(); + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.DataCase getDataCase(); + } + /** + *
+   * Input/output data can represented by actual values or a link to where values are stored
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class LiteralMapBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LiteralMapBlob) + LiteralMapBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMapBlob.newBuilder() to construct. + private LiteralMapBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMapBlob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMapBlob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (dataCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); + } + data_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 2; + data_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + private int dataCase_ = 0; + private java.lang.Object data_; + public enum DataCase + implements com.google.protobuf.Internal.EnumLite { + @java.lang.Deprecated VALUES(1), + URI(2), + DATA_NOT_SET(0); + private final int value; + private DataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: return VALUES; + case 2: return URI; + case 0: return DATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public static final int VALUES_FIELD_NUMBER = 1; + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getValues() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int URI_FIELD_NUMBER = 2; + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } + } + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getValues() + .equals(other.getValues())) return false; + break; + case 2: + if (!getUri() + .equals(other.getUri())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValues().hashCode(); + break; + case 2: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Input/output data can represented by actual values or a link to where values are stored
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LiteralMapBlob) + flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob build() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob buildPartial() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(this); + if (dataCase_ == 1) { + if (valuesBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = valuesBuilder_.build(); + } + } + if (dataCase_ == 2) { + result.data_ = data_; + } + result.dataCase_ = dataCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other) { + if (other == flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) return this; + switch (other.getDataCase()) { + case VALUES: { + mergeValues(other.getValues()); + break; + } + case URI: { + dataCase_ = 2; + data_ = other.data_; + onChanged(); + break; + } + case DATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataCase_ = 0; + private java.lang.Object data_; + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> valuesBuilder_; + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (dataCase_ == 1) { + return valuesBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setValues( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (valuesBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + valuesBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (dataCase_ == 1 && + data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 1) { + valuesBuilder_.mergeFrom(value); + } + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + } + valuesBuilder_.clear(); + } + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getValuesBuilder() { + return getValuesFieldBuilder().getBuilder(); + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if ((dataCase_ == 1) && (valuesBuilder_ != null)) { + return valuesBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + if (!(dataCase_ == 1)) { + data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 1; + onChanged();; + return valuesBuilder_; + } + + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder clearUri() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LiteralMapBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) + private static final flyteidl.admin.ExecutionOuterClass.LiteralMapBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(); + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralMapBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMapBlob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AbortMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.AbortMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + java.lang.String getCause(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + com.google.protobuf.ByteString + getCauseBytes(); + + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + } + /** + *
+   * Specifies metadata around an aborted workflow execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.AbortMetadata} + */ + public static final class AbortMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.AbortMetadata) + AbortMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AbortMetadata.newBuilder() to construct. + private AbortMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AbortMetadata() { + cause_ = ""; + principal_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AbortMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cause_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); + } + + public static final int CAUSE_FIELD_NUMBER = 1; + private volatile java.lang.Object cause_; + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string cause = 1; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private volatile java.lang.Object principal_; + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifies the entity (if any) responsible for terminating the execution
+     * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCauseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cause_); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCauseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cause_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.AbortMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.AbortMetadata other = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) obj; + + if (!getCause() + .equals(other.getCause())) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.AbortMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies metadata around an aborted workflow execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.AbortMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.AbortMetadata) + flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.AbortMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + cause_ = ""; + + principal_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata build() { + flyteidl.admin.ExecutionOuterClass.AbortMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.AbortMetadata result = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(this); + result.cause_ = cause_; + result.principal_ = principal_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.AbortMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.AbortMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) return this; + if (!other.getCause().isEmpty()) { + cause_ = other.cause_; + onChanged(); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.AbortMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cause_ = ""; + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder setCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cause_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder clearCause() { + + cause_ = getDefaultInstance().getCause(); + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string cause = 1; + */ + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cause_ = value; + onChanged(); + return this; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for terminating the execution
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.AbortMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) + private static final flyteidl.admin.ExecutionOuterClass.AbortMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AbortMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbortMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Output URI in the case of a successful execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasOutputs(); + /** + *
+     * Output URI in the case of a successful execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs(); + /** + *
+     * Output URI in the case of a successful execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Error information in the case of a failed execution.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information in the case of a failed execution.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information in the case of a failed execution.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getAbortCause(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getAbortCauseBytes(); + + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + boolean hasAbortMetadata(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder(); + + /** + *
+     * Raw output data produced by this execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasOutputData(); + /** + *
+     * Raw output data produced by this execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getOutputData(); + /** + *
+     * Raw output data produced by this execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); + + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder(); + + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * Reported time at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Reported time at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Reported time at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + int getNotificationsCount(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + boolean hasWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + /** + *
+     * Provides the details of the last stage change
+     * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + boolean hasStateChangeDetails(); + /** + *
+     * Provides the details of the last stage change
+     * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getStateChangeDetails(); + /** + *
+     * Provides the details of the last stage change
+     * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder getStateChangeDetailsOrBuilder(); + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Encapsulates the results of the Execution
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class ExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClosure) + ExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionClosure.newBuilder() to construct. + private ExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionClosure() { + phase_ = 0; + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder subBuilder = null; + if (outputResultCase_ == 1) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 1; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (computedInputs_ != null) { + subBuilder = computedInputs_.toBuilder(); + } + computedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(computedInputs_); + computedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000800) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 10; + outputResult_ = s; + break; + } + case 90: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder subBuilder = null; + if (outputResultCase_ == 12) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.AbortMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 12; + break; + } + case 106: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputResultCase_ == 13) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 13; + break; + } + case 114: { + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder subBuilder = null; + if (stateChangeDetails_ != null) { + subBuilder = stateChangeDetails_.toBuilder(); + } + stateChangeDetails_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stateChangeDetails_); + stateChangeDetails_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000800) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + @java.lang.Deprecated OUTPUTS(1), + ERROR(2), + @java.lang.Deprecated ABORT_CAUSE(10), + ABORT_METADATA(12), + @java.lang.Deprecated OUTPUT_DATA(13), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUTS; + case 2: return ERROR; + case 10: return ABORT_CAUSE; + case 12: return ABORT_METADATA; + case 13: return OUTPUT_DATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + /** + *
+     * Output URI in the case of a successful execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+     * Output URI in the case of a successful execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + /** + *
+     * Output URI in the case of a successful execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information in the case of a failed execution.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information in the case of a failed execution.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information in the case of a failed execution.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int ABORT_CAUSE_FIELD_NUMBER = 10; + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ABORT_METADATA_FIELD_NUMBER = 12; + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public boolean hasAbortMetadata() { + return outputResultCase_ == 12; + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+     * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + + public static final int OUTPUT_DATA_FIELD_NUMBER = 13; + /** + *
+     * Raw output data produced by this execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputData() { + return outputResultCase_ == 13; + } + /** + *
+     * Raw output data produced by this execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputResultCase_ == 13) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw output data produced by this execution.
+     * DEPRECATED. Use GetExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if (outputResultCase_ == 13) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int COMPUTED_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Literals.LiteralMap computedInputs_; + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasComputedInputs() { + return computedInputs_ != null; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + return getComputedInputs(); + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Reported time at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Reported time at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Reported time at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 9; + private java.util.List notifications_; + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 11; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + public static final int STATE_CHANGE_DETAILS_FIELD_NUMBER = 14; + private flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails stateChangeDetails_; + /** + *
+     * Provides the details of the last stage change
+     * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public boolean hasStateChangeDetails() { + return stateChangeDetails_ != null; + } + /** + *
+     * Provides the details of the last stage change
+     * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getStateChangeDetails() { + return stateChangeDetails_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance() : stateChangeDetails_; + } + /** + *
+     * Provides the details of the last stage change
+     * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder getStateChangeDetailsOrBuilder() { + return getStateChangeDetails(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + output.writeMessage(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, outputResult_); + } + if (workflowId_ != null) { + output.writeMessage(11, getWorkflowId()); + } + if (outputResultCase_ == 12) { + output.writeMessage(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + } + if (outputResultCase_ == 13) { + output.writeMessage(13, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (stateChangeDetails_ != null) { + output.writeMessage(14, getStateChangeDetails()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, outputResult_); + } + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getWorkflowId()); + } + if (outputResultCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); + } + if (outputResultCase_ == 13) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (stateChangeDetails_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getStateChangeDetails()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionClosure other = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) obj; + + if (hasComputedInputs() != other.hasComputedInputs()) return false; + if (hasComputedInputs()) { + if (!getComputedInputs() + .equals(other.getComputedInputs())) return false; + } + if (phase_ != other.phase_) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasUpdatedAt() != other.hasUpdatedAt()) return false; + if (hasUpdatedAt()) { + if (!getUpdatedAt() + .equals(other.getUpdatedAt())) return false; + } + if (!getNotificationsList() + .equals(other.getNotificationsList())) return false; + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + } + if (hasStateChangeDetails() != other.hasStateChangeDetails()) return false; + if (hasStateChangeDetails()) { + if (!getStateChangeDetails() + .equals(other.getStateChangeDetails())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputs() + .equals(other.getOutputs())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 10: + if (!getAbortCause() + .equals(other.getAbortCause())) return false; + break; + case 12: + if (!getAbortMetadata() + .equals(other.getAbortMetadata())) return false; + break; + case 13: + if (!getOutputData() + .equals(other.getOutputData())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasComputedInputs()) { + hash = (37 * hash) + COMPUTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getComputedInputs().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + if (hasStateChangeDetails()) { + hash = (37 * hash) + STATE_CHANGE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getStateChangeDetails().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 10: + hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getAbortCause().hashCode(); + break; + case 12: + hash = (37 * hash) + ABORT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getAbortMetadata().hashCode(); + break; + case 13: + hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOutputData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulates the results of the Execution
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClosure) + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + notificationsBuilder_.clear(); + } + if (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + if (stateChangeDetailsBuilder_ == null) { + stateChangeDetails_ = null; + } else { + stateChangeDetails_ = null; + stateChangeDetailsBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure build() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + if (outputsBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputsBuilder_.build(); + } + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 10) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 12) { + if (abortMetadataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = abortMetadataBuilder_.build(); + } + } + if (outputResultCase_ == 13) { + if (outputDataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputDataBuilder_.build(); + } + } + if (computedInputsBuilder_ == null) { + result.computedInputs_ = computedInputs_; + } else { + result.computedInputs_ = computedInputsBuilder_.build(); + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + if (stateChangeDetailsBuilder_ == null) { + result.stateChangeDetails_ = stateChangeDetails_; + } else { + result.stateChangeDetails_ = stateChangeDetailsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionClosure) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionClosure other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance()) return this; + if (other.hasComputedInputs()) { + mergeComputedInputs(other.getComputedInputs()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000800); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + if (other.hasStateChangeDetails()) { + mergeStateChangeDetails(other.getStateChangeDetails()); + } + switch (other.getOutputResultCase()) { + case OUTPUTS: { + mergeOutputs(other.getOutputs()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case ABORT_CAUSE: { + outputResultCase_ = 10; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ABORT_METADATA: { + mergeAbortMetadata(other.getAbortMetadata()); + break; + } + case OUTPUT_DATA: { + mergeOutputData(other.getOutputData()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> outputsBuilder_; + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } else { + if (outputResultCase_ == 1) { + return outputsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1 && + outputResult_ != flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 1) { + outputsBuilder_.mergeFrom(value); + } + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder getOutputsBuilder() { + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if ((outputResultCase_ == 1) && (outputsBuilder_ != null)) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * Output URI in the case of a successful execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + if (!(outputResultCase_ == 1)) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 1; + onChanged();; + return outputsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAbortCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAbortCause() { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAbortCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> abortMetadataBuilder_; + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public boolean hasAbortMetadata() { + return outputResultCase_ == 12; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } else { + if (outputResultCase_ == 12) { + return abortMetadataBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder setAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { + if (abortMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + abortMetadataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder setAbortMetadata( + flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder builderForValue) { + if (abortMetadataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + abortMetadataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder mergeAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12 && + outputResult_ != flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.newBuilder((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 12) { + abortMetadataBuilder_.mergeFrom(value); + } + abortMetadataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public Builder clearAbortMetadata() { + if (abortMetadataBuilder_ == null) { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + } + abortMetadataBuilder_.clear(); + } + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder getAbortMetadataBuilder() { + return getAbortMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { + if ((outputResultCase_ == 12) && (abortMetadataBuilder_ != null)) { + return abortMetadataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 12) { + return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
+       * 
+ * + * .flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> + getAbortMetadataFieldBuilder() { + if (abortMetadataBuilder_ == null) { + if (!(outputResultCase_ == 12)) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); + } + abortMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 12; + onChanged();; + return abortMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputData() { + return outputResultCase_ == 13; + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 13) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (outputResultCase_ == 13) { + return outputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 13; + return this; + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputDataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputDataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 13; + return this; + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 13 && + outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 13) { + outputDataBuilder_.mergeFrom(value); + } + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 13; + return this; + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 13) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 13) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { + return getOutputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if ((outputResultCase_ == 13) && (outputDataBuilder_ != null)) { + return outputDataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 13) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this execution.
+       * DEPRECATED. Use GetExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputDataFieldBuilder() { + if (outputDataBuilder_ == null) { + if (!(outputResultCase_ == 13)) { + outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 13; + onChanged();; + return outputDataBuilder_; + } + + private flyteidl.core.Literals.LiteralMap computedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> computedInputsBuilder_; + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasComputedInputs() { + return computedInputsBuilder_ != null || computedInputs_ != null; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { + if (computedInputsBuilder_ == null) { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } else { + return computedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + computedInputs_ = value; + onChanged(); + } else { + computedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setComputedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (computedInputsBuilder_ == null) { + computedInputs_ = builderForValue.build(); + onChanged(); + } else { + computedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (computedInputs_ != null) { + computedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(computedInputs_).mergeFrom(value).buildPartial(); + } else { + computedInputs_ = value; + } + onChanged(); + } else { + computedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearComputedInputs() { + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + onChanged(); + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getComputedInputsBuilder() { + + onChanged(); + return getComputedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + if (computedInputsBuilder_ != null) { + return computedInputsBuilder_.getMessageOrBuilder(); + } else { + return computedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getComputedInputsFieldBuilder() { + if (computedInputsBuilder_ == null) { + computedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getComputedInputs(), + getParentForChildren(), + isClean()); + computedInputs_ = null; + } + return computedInputsBuilder_; + } + + private int phase_ = 0; + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Reported time at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails stateChangeDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder> stateChangeDetailsBuilder_; + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public boolean hasStateChangeDetails() { + return stateChangeDetailsBuilder_ != null || stateChangeDetails_ != null; + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getStateChangeDetails() { + if (stateChangeDetailsBuilder_ == null) { + return stateChangeDetails_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance() : stateChangeDetails_; + } else { + return stateChangeDetailsBuilder_.getMessage(); + } + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public Builder setStateChangeDetails(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails value) { + if (stateChangeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateChangeDetails_ = value; + onChanged(); + } else { + stateChangeDetailsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public Builder setStateChangeDetails( + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder builderForValue) { + if (stateChangeDetailsBuilder_ == null) { + stateChangeDetails_ = builderForValue.build(); + onChanged(); + } else { + stateChangeDetailsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public Builder mergeStateChangeDetails(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails value) { + if (stateChangeDetailsBuilder_ == null) { + if (stateChangeDetails_ != null) { + stateChangeDetails_ = + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.newBuilder(stateChangeDetails_).mergeFrom(value).buildPartial(); + } else { + stateChangeDetails_ = value; + } + onChanged(); + } else { + stateChangeDetailsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public Builder clearStateChangeDetails() { + if (stateChangeDetailsBuilder_ == null) { + stateChangeDetails_ = null; + onChanged(); + } else { + stateChangeDetails_ = null; + stateChangeDetailsBuilder_ = null; + } + + return this; + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder getStateChangeDetailsBuilder() { + + onChanged(); + return getStateChangeDetailsFieldBuilder().getBuilder(); + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder getStateChangeDetailsOrBuilder() { + if (stateChangeDetailsBuilder_ != null) { + return stateChangeDetailsBuilder_.getMessageOrBuilder(); + } else { + return stateChangeDetails_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance() : stateChangeDetails_; + } + } + /** + *
+       * Provides the details of the last stage change
+       * 
+ * + * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder> + getStateChangeDetailsFieldBuilder() { + if (stateChangeDetailsBuilder_ == null) { + stateChangeDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder>( + getStateChangeDetails(), + getParentForChildren(), + isClean()); + stateChangeDetails_ = null; + } + return stateChangeDetailsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SystemMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SystemMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + java.lang.String getExecutionCluster(); + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + com.google.protobuf.ByteString + getExecutionClusterBytes(); + + /** + *
+     * Which kubernetes namespace the execution ran under.
+     * 
+ * + * string namespace = 2; + */ + java.lang.String getNamespace(); + /** + *
+     * Which kubernetes namespace the execution ran under.
+     * 
+ * + * string namespace = 2; + */ + com.google.protobuf.ByteString + getNamespaceBytes(); + } + /** + *
+   * Represents system, rather than user-facing, metadata about an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SystemMetadata} + */ + public static final class SystemMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SystemMetadata) + SystemMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SystemMetadata.newBuilder() to construct. + private SystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SystemMetadata() { + executionCluster_ = ""; + namespace_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SystemMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + executionCluster_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + namespace_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); + } + + public static final int EXECUTION_CLUSTER_FIELD_NUMBER = 1; + private volatile java.lang.Object executionCluster_; + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + public java.lang.String getExecutionCluster() { + java.lang.Object ref = executionCluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionCluster_ = s; + return s; + } + } + /** + *
+     * Which execution cluster this execution ran on.
+     * 
+ * + * string execution_cluster = 1; + */ + public com.google.protobuf.ByteString + getExecutionClusterBytes() { + java.lang.Object ref = executionCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_FIELD_NUMBER = 2; + private volatile java.lang.Object namespace_; + /** + *
+     * Which kubernetes namespace the execution ran under.
+     * 
+ * + * string namespace = 2; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + *
+     * Which kubernetes namespace the execution ran under.
+     * 
+ * + * string namespace = 2; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getExecutionClusterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionCluster_); + } + if (!getNamespaceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getExecutionClusterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionCluster_); + } + if (!getNamespaceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.SystemMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.SystemMetadata other = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) obj; + + if (!getExecutionCluster() + .equals(other.getExecutionCluster())) return false; + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXECUTION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getExecutionCluster().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.SystemMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents system, rather than user-facing, metadata about an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SystemMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SystemMetadata) + flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.SystemMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + executionCluster_ = ""; + + namespace_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata build() { + flyteidl.admin.ExecutionOuterClass.SystemMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.SystemMetadata result = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(this); + result.executionCluster_ = executionCluster_; + result.namespace_ = namespace_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.SystemMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.SystemMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.SystemMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance()) return this; + if (!other.getExecutionCluster().isEmpty()) { + executionCluster_ = other.executionCluster_; + onChanged(); + } + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.SystemMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object executionCluster_ = ""; + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public java.lang.String getExecutionCluster() { + java.lang.Object ref = executionCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public com.google.protobuf.ByteString + getExecutionClusterBytes() { + java.lang.Object ref = executionCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder setExecutionCluster( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executionCluster_ = value; + onChanged(); + return this; + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder clearExecutionCluster() { + + executionCluster_ = getDefaultInstance().getExecutionCluster(); + onChanged(); + return this; + } + /** + *
+       * Which execution cluster this execution ran on.
+       * 
+ * + * string execution_cluster = 1; + */ + public Builder setExecutionClusterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executionCluster_ = value; + onChanged(); + return this; + } + + private java.lang.Object namespace_ = ""; + /** + *
+       * Which kubernetes namespace the execution ran under.
+       * 
+ * + * string namespace = 2; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Which kubernetes namespace the execution ran under.
+       * 
+ * + * string namespace = 2; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Which kubernetes namespace the execution ran under.
+       * 
+ * + * string namespace = 2; + */ + public Builder setNamespace( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + namespace_ = value; + onChanged(); + return this; + } + /** + *
+       * Which kubernetes namespace the execution ran under.
+       * 
+ * + * string namespace = 2; + */ + public Builder clearNamespace() { + + namespace_ = getDefaultInstance().getNamespace(); + onChanged(); + return this; + } + /** + *
+       * Which kubernetes namespace the execution ran under.
+       * 
+ * + * string namespace = 2; + */ + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + namespace_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SystemMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) + private static final flyteidl.admin.ExecutionOuterClass.SystemMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SystemMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + int getModeValue(); + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode(); + + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + + /** + *
+     * Indicates the nestedness of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + int getNesting(); + + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + boolean hasScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.Timestamp getScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); + + /** + *
+     * Which subworkflow node (if any) launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + boolean hasParentNodeExecution(); + /** + *
+     * Which subworkflow node (if any) launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); + /** + *
+     * Which subworkflow node (if any) launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); + + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + boolean hasReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); + + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + boolean hasSystemMetadata(); + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata(); + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder(); + } + /** + *
+   * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+   * These attributes are assigned at launch time and do not change.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class ExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionMetadata) + ExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionMetadata.newBuilder() to construct. + private ExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionMetadata() { + mode_ = 0; + principal_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 24: { + + nesting_ = input.readUInt32(); + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduledAt_ != null) { + subBuilder = scheduledAt_.toBuilder(); + } + scheduledAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduledAt_); + scheduledAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecution_ != null) { + subBuilder = parentNodeExecution_.toBuilder(); + } + parentNodeExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecution_); + parentNodeExecution_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (referenceExecution_ != null) { + subBuilder = referenceExecution_.toBuilder(); + } + referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceExecution_); + referenceExecution_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder subBuilder = null; + if (systemMetadata_ != null) { + subBuilder = systemMetadata_.toBuilder(); + } + systemMetadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.SystemMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(systemMetadata_); + systemMetadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + /** + *
+     * The method by which this execution was launched.
+     * 
+ * + * Protobuf enum {@code flyteidl.admin.ExecutionMetadata.ExecutionMode} + */ + public enum ExecutionMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + MANUAL(0), + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + SCHEDULED(1), + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + RELAUNCH(3), + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + CHILD_WORKFLOW(4), + /** + *
+       * This execution was recovered from another execution.
+       * 
+ * + * RECOVERED = 5; + */ + RECOVERED(5), + UNRECOGNIZED(-1), + ; + + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + public static final int MANUAL_VALUE = 0; + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + public static final int SCHEDULED_VALUE = 1; + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + public static final int RELAUNCH_VALUE = 3; + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + public static final int CHILD_WORKFLOW_VALUE = 4; + /** + *
+       * This execution was recovered from another execution.
+       * 
+ * + * RECOVERED = 5; + */ + public static final int RECOVERED_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionMode valueOf(int value) { + return forNumber(value); + } + + public static ExecutionMode forNumber(int value) { + switch (value) { + case 0: return MANUAL; + case 1: return SCHEDULED; + case 2: return SYSTEM; + case 3: return RELAUNCH; + case 4: return CHILD_WORKFLOW; + case 5: return RECOVERED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionMode findValueByNumber(int number) { + return ExecutionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final ExecutionMode[] VALUES = values(); + + public static ExecutionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExecutionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionMetadata.ExecutionMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_; + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private volatile java.lang.Object principal_; + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifier of the entity that triggered this execution.
+     * For systems using back-end authentication any value set here will be discarded in favor of the
+     * authenticated user context.
+     * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NESTING_FIELD_NUMBER = 3; + private int nesting_; + /** + *
+     * Indicates the nestedness of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + + public static final int SCHEDULED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp scheduledAt_; + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAt_ != null; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + return getScheduledAt(); + } + + public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 5; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; + /** + *
+     * Which subworkflow node (if any) launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecution_ != null; + } + /** + *
+     * Which subworkflow node (if any) launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + /** + *
+     * Which subworkflow node (if any) launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + return getParentNodeExecution(); + } + + public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 16; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecution_ != null; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + return getReferenceExecution(); + } + + public static final int SYSTEM_METADATA_FIELD_NUMBER = 17; + private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public boolean hasSystemMetadata() { + return systemMetadata_ != null; + } + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { + return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } + /** + *
+     * Optional, platform-specific metadata about the execution.
+     * In this the future this may be gated behind an ACL or some sort of authorization.
+     * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { + return getSystemMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + output.writeEnum(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + if (nesting_ != 0) { + output.writeUInt32(3, nesting_); + } + if (scheduledAt_ != null) { + output.writeMessage(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + output.writeMessage(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + output.writeMessage(16, getReferenceExecution()); + } + if (systemMetadata_ != null) { + output.writeMessage(17, getSystemMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + if (nesting_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, nesting_); + } + if (scheduledAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getReferenceExecution()); + } + if (systemMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getSystemMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) obj; + + if (mode_ != other.mode_) return false; + if (!getPrincipal() + .equals(other.getPrincipal())) return false; + if (getNesting() + != other.getNesting()) return false; + if (hasScheduledAt() != other.hasScheduledAt()) return false; + if (hasScheduledAt()) { + if (!getScheduledAt() + .equals(other.getScheduledAt())) return false; + } + if (hasParentNodeExecution() != other.hasParentNodeExecution()) return false; + if (hasParentNodeExecution()) { + if (!getParentNodeExecution() + .equals(other.getParentNodeExecution())) return false; + } + if (hasReferenceExecution() != other.hasReferenceExecution()) return false; + if (hasReferenceExecution()) { + if (!getReferenceExecution() + .equals(other.getReferenceExecution())) return false; + } + if (hasSystemMetadata() != other.hasSystemMetadata()) return false; + if (hasSystemMetadata()) { + if (!getSystemMetadata() + .equals(other.getSystemMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + NESTING_FIELD_NUMBER; + hash = (53 * hash) + getNesting(); + if (hasScheduledAt()) { + hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; + hash = (53 * hash) + getScheduledAt().hashCode(); + } + if (hasParentNodeExecution()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecution().hashCode(); + } + if (hasReferenceExecution()) { + hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getReferenceExecution().hashCode(); + } + if (hasSystemMetadata()) { + hash = (37 * hash) + SYSTEM_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getSystemMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+     * These attributes are assigned at launch time and do not change.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionMetadata) + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + mode_ = 0; + + principal_ = ""; + + nesting_ = 0; + + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + if (systemMetadataBuilder_ == null) { + systemMetadata_ = null; + } else { + systemMetadata_ = null; + systemMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata build() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(this); + result.mode_ = mode_; + result.principal_ = principal_; + result.nesting_ = nesting_; + if (scheduledAtBuilder_ == null) { + result.scheduledAt_ = scheduledAt_; + } else { + result.scheduledAt_ = scheduledAtBuilder_.build(); + } + if (parentNodeExecutionBuilder_ == null) { + result.parentNodeExecution_ = parentNodeExecution_; + } else { + result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); + } + if (referenceExecutionBuilder_ == null) { + result.referenceExecution_ = referenceExecution_; + } else { + result.referenceExecution_ = referenceExecutionBuilder_.build(); + } + if (systemMetadataBuilder_ == null) { + result.systemMetadata_ = systemMetadata_; + } else { + result.systemMetadata_ = systemMetadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + if (other.getNesting() != 0) { + setNesting(other.getNesting()); + } + if (other.hasScheduledAt()) { + mergeScheduledAt(other.getScheduledAt()); + } + if (other.hasParentNodeExecution()) { + mergeParentNodeExecution(other.getParentNodeExecution()); + } + if (other.hasReferenceExecution()) { + mergeReferenceExecution(other.getReferenceExecution()); + } + if (other.hasSystemMetadata()) { + mergeSystemMetadata(other.getSystemMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int mode_ = 0; + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setModeValue(int value) { + mode_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setMode(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * For systems using back-end authentication any value set here will be discarded in favor of the
+       * authenticated user context.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + + private int nesting_ ; + /** + *
+       * Indicates the nestedness of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + /** + *
+       * Indicates the nestedness of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder setNesting(int value) { + + nesting_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the nestedness of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder clearNesting() { + + nesting_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp scheduledAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAtBuilder_ != null || scheduledAt_ != null; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + if (scheduledAtBuilder_ == null) { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } else { + return scheduledAtBuilder_.getMessage(); + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduledAt_ = value; + onChanged(); + } else { + scheduledAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = builderForValue.build(); + onChanged(); + } else { + scheduledAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (scheduledAt_ != null) { + scheduledAt_ = + com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); + } else { + scheduledAt_ = value; + } + onChanged(); + } else { + scheduledAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder clearScheduledAt() { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + onChanged(); + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { + + onChanged(); + return getScheduledAtFieldBuilder().getBuilder(); + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + if (scheduledAtBuilder_ != null) { + return scheduledAtBuilder_.getMessageOrBuilder(); + } else { + return scheduledAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getScheduledAtFieldBuilder() { + if (scheduledAtBuilder_ == null) { + scheduledAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduledAt(), + getParentForChildren(), + isClean()); + scheduledAt_ = null; + } + return scheduledAtBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionBuilder_; + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } else { + return parentNodeExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecution_ = value; + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder mergeParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (parentNodeExecution_ != null) { + parentNodeExecution_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecution_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecution_ = value; + } + onChanged(); + } else { + parentNodeExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder clearParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + onChanged(); + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { + + onChanged(); + return getParentNodeExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + if (parentNodeExecutionBuilder_ != null) { + return parentNodeExecutionBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecution_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + } + /** + *
+       * Which subworkflow node (if any) launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionFieldBuilder() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecution(), + getParentForChildren(), + isClean()); + parentNodeExecution_ = null; + } + return parentNodeExecutionBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecutionBuilder_ != null || referenceExecution_ != null; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } else { + return referenceExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceExecution_ = value; + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = builderForValue.build(); + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (referenceExecution_ != null) { + referenceExecution_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); + } else { + referenceExecution_ = value; + } + onChanged(); + } else { + referenceExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder clearReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + onChanged(); + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { + + onChanged(); + return getReferenceExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + if (referenceExecutionBuilder_ != null) { + return referenceExecutionBuilder_.getMessageOrBuilder(); + } else { + return referenceExecution_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getReferenceExecutionFieldBuilder() { + if (referenceExecutionBuilder_ == null) { + referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getReferenceExecution(), + getParentForChildren(), + isClean()); + referenceExecution_ = null; + } + return referenceExecutionBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> systemMetadataBuilder_; + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public boolean hasSystemMetadata() { + return systemMetadataBuilder_ != null || systemMetadata_ != null; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { + if (systemMetadataBuilder_ == null) { + return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } else { + return systemMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder setSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { + if (systemMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemMetadata_ = value; + onChanged(); + } else { + systemMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder setSystemMetadata( + flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder builderForValue) { + if (systemMetadataBuilder_ == null) { + systemMetadata_ = builderForValue.build(); + onChanged(); + } else { + systemMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder mergeSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { + if (systemMetadataBuilder_ == null) { + if (systemMetadata_ != null) { + systemMetadata_ = + flyteidl.admin.ExecutionOuterClass.SystemMetadata.newBuilder(systemMetadata_).mergeFrom(value).buildPartial(); + } else { + systemMetadata_ = value; + } + onChanged(); + } else { + systemMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public Builder clearSystemMetadata() { + if (systemMetadataBuilder_ == null) { + systemMetadata_ = null; + onChanged(); + } else { + systemMetadata_ = null; + systemMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder getSystemMetadataBuilder() { + + onChanged(); + return getSystemMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { + if (systemMetadataBuilder_ != null) { + return systemMetadataBuilder_.getMessageOrBuilder(); + } else { + return systemMetadata_ == null ? + flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; + } + } + /** + *
+       * Optional, platform-specific metadata about the execution.
+       * In this the future this may be gated behind an ACL or some sort of authorization.
+       * 
+ * + * .flyteidl.admin.SystemMetadata system_metadata = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> + getSystemMetadataFieldBuilder() { + if (systemMetadataBuilder_ == null) { + systemMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder>( + getSystemMetadata(), + getParentForChildren(), + isClean()); + systemMetadata_ = null; + } + return systemMetadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NotificationList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + int getNotificationsCount(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.NotificationList} + */ + public static final class NotificationList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NotificationList) + NotificationListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationList.newBuilder() to construct. + private NotificationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationList() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotificationList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 1; + private java.util.List notifications_; + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(1, notifications_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notifications_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.NotificationList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.NotificationList other = (flyteidl.admin.ExecutionOuterClass.NotificationList) obj; + + if (!getNotificationsList() + .equals(other.getNotificationsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.NotificationList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.NotificationList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NotificationList) + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList build() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList buildPartial() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = new flyteidl.admin.ExecutionOuterClass.NotificationList(this); + int from_bitField0_ = bitField0_; + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.NotificationList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.NotificationList other) { + if (other == flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) return this; + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.NotificationList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.NotificationList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NotificationList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) + private static final flyteidl.admin.ExecutionOuterClass.NotificationList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.NotificationList(); + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + boolean hasLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder(); + + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + boolean hasNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder(); + + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + boolean getDisableAll(); + + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + boolean hasLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + boolean hasAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Optional: security context override to apply this execution.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + boolean hasSecurityContext(); + /** + *
+     * Optional: security context override to apply this execution.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + flyteidl.core.Security.SecurityContext getSecurityContext(); + /** + *
+     * Optional: security context override to apply this execution.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); + + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasAuthRole(); + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.AuthRole getAuthRole(); + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); + + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + /** + *
+     * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
+     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+     * and parallelism/concurrency of MapTasks is independent from this.
+     * 
+ * + * int32 max_parallelism = 18; + */ + int getMaxParallelism(); + + /** + *
+     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+     * This should be a prefix like s3://my-bucket/my-data
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + boolean hasRawOutputDataConfig(); + /** + *
+     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+     * This should be a prefix like s3://my-bucket/my-data
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig(); + /** + *
+     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+     * This should be a prefix like s3://my-bucket/my-data
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder(); + + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + boolean hasClusterAssignment(); + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment(); + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder(); + + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + boolean hasInterruptible(); + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + com.google.protobuf.BoolValue getInterruptible(); + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder(); + + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 22; + */ + boolean getOverwriteCache(); + + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + boolean hasEnvs(); + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + flyteidl.admin.Common.Envs getEnvs(); + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder(); + + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + java.util.List + getTagsList(); + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + int getTagsCount(); + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + java.lang.String getTags(int index); + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.NotificationOverridesCase getNotificationOverridesCase(); + } + /** + *
+   * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+   * of an execution as it progresses across phase changes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class ExecutionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionSpec) + ExecutionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionSpec.newBuilder() to construct. + private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionSpec() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (launchPlan_ != null) { + subBuilder = launchPlan_.toBuilder(); + } + launchPlan_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(launchPlan_); + launchPlan_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder subBuilder = null; + if (notificationOverridesCase_ == 5) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_).toBuilder(); + } + notificationOverrides_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.NotificationList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + notificationOverrides_ = subBuilder.buildPartial(); + } + notificationOverridesCase_ = 5; + break; + } + case 48: { + notificationOverridesCase_ = 6; + notificationOverrides_ = input.readBool(); + break; + } + case 58: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + flyteidl.core.Security.SecurityContext.Builder subBuilder = null; + if (securityContext_ != null) { + subBuilder = securityContext_.toBuilder(); + } + securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityContext_); + securityContext_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.admin.Common.AuthRole.Builder subBuilder = null; + if (authRole_ != null) { + subBuilder = authRole_.toBuilder(); + } + authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authRole_); + authRole_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = subBuilder.buildPartial(); + } + + break; + } + case 144: { + + maxParallelism_ = input.readInt32(); + break; + } + case 154: { + flyteidl.admin.Common.RawOutputDataConfig.Builder subBuilder = null; + if (rawOutputDataConfig_ != null) { + subBuilder = rawOutputDataConfig_.toBuilder(); + } + rawOutputDataConfig_ = input.readMessage(flyteidl.admin.Common.RawOutputDataConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rawOutputDataConfig_); + rawOutputDataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 162: { + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder subBuilder = null; + if (clusterAssignment_ != null) { + subBuilder = clusterAssignment_.toBuilder(); + } + clusterAssignment_ = input.readMessage(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clusterAssignment_); + clusterAssignment_ = subBuilder.buildPartial(); + } + + break; + } + case 170: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (interruptible_ != null) { + subBuilder = interruptible_.toBuilder(); + } + interruptible_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interruptible_); + interruptible_ = subBuilder.buildPartial(); + } + + break; + } + case 176: { + + overwriteCache_ = input.readBool(); + break; + } + case 186: { + flyteidl.admin.Common.Envs.Builder subBuilder = null; + if (envs_ != null) { + subBuilder = envs_.toBuilder(); + } + envs_ = input.readMessage(flyteidl.admin.Common.Envs.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(envs_); + envs_ = subBuilder.buildPartial(); + } + + break; + } + case 194: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00010000) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00010000; + } + tags_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00010000) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + private int bitField0_; + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public enum NotificationOverridesCase + implements com.google.protobuf.Internal.EnumLite { + NOTIFICATIONS(5), + DISABLE_ALL(6), + NOTIFICATIONOVERRIDES_NOT_SET(0); + private final int value; + private NotificationOverridesCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotificationOverridesCase valueOf(int value) { + return forNumber(value); + } + + public static NotificationOverridesCase forNumber(int value) { + switch (value) { + case 5: return NOTIFICATIONS; + case 6: return DISABLE_ALL; + case 0: return NOTIFICATIONOVERRIDES_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public static final int LAUNCH_PLAN_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlan_ != null; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + return getLaunchPlan(); + } + + public static final int INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 5; + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + public static final int DISABLE_ALL_FIELD_NUMBER = 6; + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + + public static final int LABELS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 8; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int SECURITY_CONTEXT_FIELD_NUMBER = 10; + private flyteidl.core.Security.SecurityContext securityContext_; + /** + *
+     * Optional: security context override to apply this execution.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public boolean hasSecurityContext() { + return securityContext_ != null; + } + /** + *
+     * Optional: security context override to apply this execution.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + /** + *
+     * Optional: security context override to apply this execution.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + return getSecurityContext(); + } + + public static final int AUTH_ROLE_FIELD_NUMBER = 16; + private flyteidl.admin.Common.AuthRole authRole_; + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuthRole() { + return authRole_ != null; + } + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + /** + *
+     * Optional: auth override to apply this execution.
+     * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + return getAuthRole(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 17; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + public static final int MAX_PARALLELISM_FIELD_NUMBER = 18; + private int maxParallelism_; + /** + *
+     * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
+     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+     * and parallelism/concurrency of MapTasks is independent from this.
+     * 
+ * + * int32 max_parallelism = 18; + */ + public int getMaxParallelism() { + return maxParallelism_; + } + + public static final int RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER = 19; + private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; + /** + *
+     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+     * This should be a prefix like s3://my-bucket/my-data
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public boolean hasRawOutputDataConfig() { + return rawOutputDataConfig_ != null; + } + /** + *
+     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+     * This should be a prefix like s3://my-bucket/my-data
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { + return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } + /** + *
+     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+     * This should be a prefix like s3://my-bucket/my-data
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { + return getRawOutputDataConfig(); + } + + public static final int CLUSTER_ASSIGNMENT_FIELD_NUMBER = 20; + private flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment clusterAssignment_; + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public boolean hasClusterAssignment() { + return clusterAssignment_ != null; + } + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { + return clusterAssignment_ == null ? flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance() : clusterAssignment_; + } + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { + return getClusterAssignment(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 21; + private com.google.protobuf.BoolValue interruptible_; + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public boolean hasInterruptible() { + return interruptible_ != null; + } + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public com.google.protobuf.BoolValue getInterruptible() { + return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { + return getInterruptible(); + } + + public static final int OVERWRITE_CACHE_FIELD_NUMBER = 22; + private boolean overwriteCache_; + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 22; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + + public static final int ENVS_FIELD_NUMBER = 23; + private flyteidl.admin.Common.Envs envs_; + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public boolean hasEnvs() { + return envs_ != null; + } + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public flyteidl.admin.Common.Envs getEnvs() { + return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { + return getEnvs(); + } + + public static final int TAGS_FIELD_NUMBER = 24; + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * Tags to be set for the execution.
+     * 
+ * + * repeated string tags = 24; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (launchPlan_ != null) { + output.writeMessage(1, getLaunchPlan()); + } + if (inputs_ != null) { + output.writeMessage(2, getInputs()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + output.writeMessage(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + output.writeMessage(7, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(8, getAnnotations()); + } + if (securityContext_ != null) { + output.writeMessage(10, getSecurityContext()); + } + if (authRole_ != null) { + output.writeMessage(16, getAuthRole()); + } + if (qualityOfService_ != null) { + output.writeMessage(17, getQualityOfService()); + } + if (maxParallelism_ != 0) { + output.writeInt32(18, maxParallelism_); + } + if (rawOutputDataConfig_ != null) { + output.writeMessage(19, getRawOutputDataConfig()); + } + if (clusterAssignment_ != null) { + output.writeMessage(20, getClusterAssignment()); + } + if (interruptible_ != null) { + output.writeMessage(21, getInterruptible()); + } + if (overwriteCache_ != false) { + output.writeBool(22, overwriteCache_); + } + if (envs_ != null) { + output.writeMessage(23, getEnvs()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, tags_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (launchPlan_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLaunchPlan()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputs()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAnnotations()); + } + if (securityContext_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSecurityContext()); + } + if (authRole_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getAuthRole()); + } + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getQualityOfService()); + } + if (maxParallelism_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, maxParallelism_); + } + if (rawOutputDataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getRawOutputDataConfig()); + } + if (clusterAssignment_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getClusterAssignment()); + } + if (interruptible_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getInterruptible()); + } + if (overwriteCache_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(22, overwriteCache_); + } + if (envs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getEnvs()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 2 * getTagsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionSpec)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionSpec other = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) obj; + + if (hasLaunchPlan() != other.hasLaunchPlan()) return false; + if (hasLaunchPlan()) { + if (!getLaunchPlan() + .equals(other.getLaunchPlan())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (hasSecurityContext() != other.hasSecurityContext()) return false; + if (hasSecurityContext()) { + if (!getSecurityContext() + .equals(other.getSecurityContext())) return false; + } + if (hasAuthRole() != other.hasAuthRole()) return false; + if (hasAuthRole()) { + if (!getAuthRole() + .equals(other.getAuthRole())) return false; + } + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + } + if (getMaxParallelism() + != other.getMaxParallelism()) return false; + if (hasRawOutputDataConfig() != other.hasRawOutputDataConfig()) return false; + if (hasRawOutputDataConfig()) { + if (!getRawOutputDataConfig() + .equals(other.getRawOutputDataConfig())) return false; + } + if (hasClusterAssignment() != other.hasClusterAssignment()) return false; + if (hasClusterAssignment()) { + if (!getClusterAssignment() + .equals(other.getClusterAssignment())) return false; + } + if (hasInterruptible() != other.hasInterruptible()) return false; + if (hasInterruptible()) { + if (!getInterruptible() + .equals(other.getInterruptible())) return false; + } + if (getOverwriteCache() + != other.getOverwriteCache()) return false; + if (hasEnvs() != other.hasEnvs()) return false; + if (hasEnvs()) { + if (!getEnvs() + .equals(other.getEnvs())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getNotificationOverridesCase().equals(other.getNotificationOverridesCase())) return false; + switch (notificationOverridesCase_) { + case 5: + if (!getNotifications() + .equals(other.getNotifications())) return false; + break; + case 6: + if (getDisableAll() + != other.getDisableAll()) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLaunchPlan()) { + hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlan().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasSecurityContext()) { + hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSecurityContext().hashCode(); + } + if (hasAuthRole()) { + hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAuthRole().hashCode(); + } + if (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + hash = (37 * hash) + MAX_PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + getMaxParallelism(); + if (hasRawOutputDataConfig()) { + hash = (37 * hash) + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRawOutputDataConfig().hashCode(); + } + if (hasClusterAssignment()) { + hash = (37 * hash) + CLUSTER_ASSIGNMENT_FIELD_NUMBER; + hash = (53 * hash) + getClusterAssignment().hashCode(); + } + if (hasInterruptible()) { + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + getInterruptible().hashCode(); + } + hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOverwriteCache()); + if (hasEnvs()) { + hash = (37 * hash) + ENVS_FIELD_NUMBER; + hash = (53 * hash) + getEnvs().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + switch (notificationOverridesCase_) { + case 5: + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotifications().hashCode(); + break; + case 6: + hash = (37 * hash) + DISABLE_ALL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableAll()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+     * of an execution as it progresses across phase changes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionSpec) + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (launchPlanBuilder_ == null) { + launchPlan_ = null; + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (securityContextBuilder_ == null) { + securityContext_ = null; + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + if (authRoleBuilder_ == null) { + authRole_ = null; + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + maxParallelism_ = 0; + + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = null; + } else { + rawOutputDataConfig_ = null; + rawOutputDataConfigBuilder_ = null; + } + if (clusterAssignmentBuilder_ == null) { + clusterAssignment_ = null; + } else { + clusterAssignment_ = null; + clusterAssignmentBuilder_ = null; + } + if (interruptibleBuilder_ == null) { + interruptible_ = null; + } else { + interruptible_ = null; + interruptibleBuilder_ = null; + } + overwriteCache_ = false; + + if (envsBuilder_ == null) { + envs_ = null; + } else { + envs_ = null; + envsBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00010000); + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec build() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (launchPlanBuilder_ == null) { + result.launchPlan_ = launchPlan_; + } else { + result.launchPlan_ = launchPlanBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (notificationOverridesCase_ == 5) { + if (notificationsBuilder_ == null) { + result.notificationOverrides_ = notificationOverrides_; + } else { + result.notificationOverrides_ = notificationsBuilder_.build(); + } + } + if (notificationOverridesCase_ == 6) { + result.notificationOverrides_ = notificationOverrides_; + } + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (securityContextBuilder_ == null) { + result.securityContext_ = securityContext_; + } else { + result.securityContext_ = securityContextBuilder_.build(); + } + if (authRoleBuilder_ == null) { + result.authRole_ = authRole_; + } else { + result.authRole_ = authRoleBuilder_.build(); + } + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.build(); + } + result.maxParallelism_ = maxParallelism_; + if (rawOutputDataConfigBuilder_ == null) { + result.rawOutputDataConfig_ = rawOutputDataConfig_; + } else { + result.rawOutputDataConfig_ = rawOutputDataConfigBuilder_.build(); + } + if (clusterAssignmentBuilder_ == null) { + result.clusterAssignment_ = clusterAssignment_; + } else { + result.clusterAssignment_ = clusterAssignmentBuilder_.build(); + } + if (interruptibleBuilder_ == null) { + result.interruptible_ = interruptible_; + } else { + result.interruptible_ = interruptibleBuilder_.build(); + } + result.overwriteCache_ = overwriteCache_; + if (envsBuilder_ == null) { + result.envs_ = envs_; + } else { + result.envs_ = envsBuilder_.build(); + } + if (((bitField0_ & 0x00010000) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.tags_ = tags_; + result.bitField0_ = to_bitField0_; + result.notificationOverridesCase_ = notificationOverridesCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionSpec) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionSpec other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance()) return this; + if (other.hasLaunchPlan()) { + mergeLaunchPlan(other.getLaunchPlan()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasSecurityContext()) { + mergeSecurityContext(other.getSecurityContext()); + } + if (other.hasAuthRole()) { + mergeAuthRole(other.getAuthRole()); + } + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + if (other.getMaxParallelism() != 0) { + setMaxParallelism(other.getMaxParallelism()); + } + if (other.hasRawOutputDataConfig()) { + mergeRawOutputDataConfig(other.getRawOutputDataConfig()); + } + if (other.hasClusterAssignment()) { + mergeClusterAssignment(other.getClusterAssignment()); + } + if (other.hasInterruptible()) { + mergeInterruptible(other.getInterruptible()); + } + if (other.getOverwriteCache() != false) { + setOverwriteCache(other.getOverwriteCache()); + } + if (other.hasEnvs()) { + mergeEnvs(other.getEnvs()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + switch (other.getNotificationOverridesCase()) { + case NOTIFICATIONS: { + mergeNotifications(other.getNotifications()); + break; + } + case DISABLE_ALL: { + setDisableAll(other.getDisableAll()); + break; + } + case NOTIFICATIONOVERRIDES_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public Builder clearNotificationOverrides() { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanBuilder_; + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlanBuilder_ != null || launchPlan_ != null; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + if (launchPlanBuilder_ == null) { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } else { + return launchPlanBuilder_.getMessage(); + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + launchPlan_ = value; + onChanged(); + } else { + launchPlanBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchPlanBuilder_ == null) { + launchPlan_ = builderForValue.build(); + onChanged(); + } else { + launchPlanBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder mergeLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (launchPlan_ != null) { + launchPlan_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlan_).mergeFrom(value).buildPartial(); + } else { + launchPlan_ = value; + } + onChanged(); + } else { + launchPlanBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder clearLaunchPlan() { + if (launchPlanBuilder_ == null) { + launchPlan_ = null; + onChanged(); + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanBuilder() { + + onChanged(); + return getLaunchPlanFieldBuilder().getBuilder(); + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + if (launchPlanBuilder_ != null) { + return launchPlanBuilder_.getMessageOrBuilder(); + } else { + return launchPlan_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchPlanFieldBuilder() { + if (launchPlanBuilder_ == null) { + launchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getLaunchPlan(), + getParentForChildren(), + isClean()); + launchPlan_ = null; + } + return launchPlanBuilder_; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> notificationsBuilder_; + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } else { + if (notificationOverridesCase_ == 5) { + return notificationsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationOverrides_ = value; + onChanged(); + } else { + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications( + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder builderForValue) { + if (notificationsBuilder_ == null) { + notificationOverrides_ = builderForValue.build(); + onChanged(); + } else { + notificationsBuilder_.setMessage(builderForValue.build()); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder mergeNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5 && + notificationOverrides_ != flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_) + .mergeFrom(value).buildPartial(); + } else { + notificationOverrides_ = value; + } + onChanged(); + } else { + if (notificationOverridesCase_ == 5) { + notificationsBuilder_.mergeFrom(value); + } + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + } else { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + } + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList.Builder getNotificationsBuilder() { + return getNotificationsFieldBuilder().getBuilder(); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if ((notificationOverridesCase_ == 5) && (notificationsBuilder_ != null)) { + return notificationsBuilder_.getMessageOrBuilder(); + } else { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + if (!(notificationOverridesCase_ == 5)) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_, + getParentForChildren(), + isClean()); + notificationOverrides_ = null; + } + notificationOverridesCase_ = 5; + onChanged();; + return notificationsBuilder_; + } + + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder setDisableAll(boolean value) { + notificationOverridesCase_ = 6; + notificationOverrides_ = value; + onChanged(); + return this; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder clearDisableAll() { + if (notificationOverridesCase_ == 6) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + return this; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private flyteidl.core.Security.SecurityContext securityContext_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public boolean hasSecurityContext() { + return securityContextBuilder_ != null || securityContext_ != null; + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + if (securityContextBuilder_ == null) { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } else { + return securityContextBuilder_.getMessage(); + } + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityContext_ = value; + onChanged(); + } else { + securityContextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder setSecurityContext( + flyteidl.core.Security.SecurityContext.Builder builderForValue) { + if (securityContextBuilder_ == null) { + securityContext_ = builderForValue.build(); + onChanged(); + } else { + securityContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (securityContext_ != null) { + securityContext_ = + flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); + } else { + securityContext_ = value; + } + onChanged(); + } else { + securityContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder clearSecurityContext() { + if (securityContextBuilder_ == null) { + securityContext_ = null; + onChanged(); + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { + + onChanged(); + return getSecurityContextFieldBuilder().getBuilder(); + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + if (securityContextBuilder_ != null) { + return securityContextBuilder_.getMessageOrBuilder(); + } else { + return securityContext_ == null ? + flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + } + /** + *
+       * Optional: security context override to apply this execution.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> + getSecurityContextFieldBuilder() { + if (securityContextBuilder_ == null) { + securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( + getSecurityContext(), + getParentForChildren(), + isClean()); + securityContext_ = null; + } + return securityContextBuilder_; + } + + private flyteidl.admin.Common.AuthRole authRole_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuthRole() { + return authRoleBuilder_ != null || authRole_ != null; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { + if (authRoleBuilder_ == null) { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } else { + return authRoleBuilder_.getMessage(); + } + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authRole_ = value; + onChanged(); + } else { + authRoleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuthRole( + flyteidl.admin.Common.AuthRole.Builder builderForValue) { + if (authRoleBuilder_ == null) { + authRole_ = builderForValue.build(); + onChanged(); + } else { + authRoleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (authRole_ != null) { + authRole_ = + flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); + } else { + authRole_ = value; + } + onChanged(); + } else { + authRoleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAuthRole() { + if (authRoleBuilder_ == null) { + authRole_ = null; + onChanged(); + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { + + onChanged(); + return getAuthRoleFieldBuilder().getBuilder(); + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + if (authRoleBuilder_ != null) { + return authRoleBuilder_.getMessageOrBuilder(); + } else { + return authRole_ == null ? + flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + } + /** + *
+       * Optional: auth override to apply this execution.
+       * 
+ * + * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> + getAuthRoleFieldBuilder() { + if (authRoleBuilder_ == null) { + authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( + getAuthRole(), + getParentForChildren(), + isClean()); + authRole_ = null; + } + return authRoleBuilder_; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + + private int maxParallelism_ ; + /** + *
+       * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
+       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+       * and parallelism/concurrency of MapTasks is independent from this.
+       * 
+ * + * int32 max_parallelism = 18; + */ + public int getMaxParallelism() { + return maxParallelism_; + } + /** + *
+       * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
+       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+       * and parallelism/concurrency of MapTasks is independent from this.
+       * 
+ * + * int32 max_parallelism = 18; + */ + public Builder setMaxParallelism(int value) { + + maxParallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
+       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+       * and parallelism/concurrency of MapTasks is independent from this.
+       * 
+ * + * int32 max_parallelism = 18; + */ + public Builder clearMaxParallelism() { + + maxParallelism_ = 0; + onChanged(); + return this; + } + + private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> rawOutputDataConfigBuilder_; + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public boolean hasRawOutputDataConfig() { + return rawOutputDataConfigBuilder_ != null || rawOutputDataConfig_ != null; + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { + if (rawOutputDataConfigBuilder_ == null) { + return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } else { + return rawOutputDataConfigBuilder_.getMessage(); + } + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public Builder setRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { + if (rawOutputDataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rawOutputDataConfig_ = value; + onChanged(); + } else { + rawOutputDataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public Builder setRawOutputDataConfig( + flyteidl.admin.Common.RawOutputDataConfig.Builder builderForValue) { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = builderForValue.build(); + onChanged(); + } else { + rawOutputDataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public Builder mergeRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { + if (rawOutputDataConfigBuilder_ == null) { + if (rawOutputDataConfig_ != null) { + rawOutputDataConfig_ = + flyteidl.admin.Common.RawOutputDataConfig.newBuilder(rawOutputDataConfig_).mergeFrom(value).buildPartial(); + } else { + rawOutputDataConfig_ = value; + } + onChanged(); + } else { + rawOutputDataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public Builder clearRawOutputDataConfig() { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = null; + onChanged(); + } else { + rawOutputDataConfig_ = null; + rawOutputDataConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public flyteidl.admin.Common.RawOutputDataConfig.Builder getRawOutputDataConfigBuilder() { + + onChanged(); + return getRawOutputDataConfigFieldBuilder().getBuilder(); + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { + if (rawOutputDataConfigBuilder_ != null) { + return rawOutputDataConfigBuilder_.getMessageOrBuilder(); + } else { + return rawOutputDataConfig_ == null ? + flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } + } + /** + *
+       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
+       * This should be a prefix like s3://my-bucket/my-data
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> + getRawOutputDataConfigFieldBuilder() { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder>( + getRawOutputDataConfig(), + getParentForChildren(), + isClean()); + rawOutputDataConfig_ = null; + } + return rawOutputDataConfigBuilder_; + } + + private flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment clusterAssignment_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> clusterAssignmentBuilder_; + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public boolean hasClusterAssignment() { + return clusterAssignmentBuilder_ != null || clusterAssignment_ != null; + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { + if (clusterAssignmentBuilder_ == null) { + return clusterAssignment_ == null ? flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance() : clusterAssignment_; + } else { + return clusterAssignmentBuilder_.getMessage(); + } + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public Builder setClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { + if (clusterAssignmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterAssignment_ = value; + onChanged(); + } else { + clusterAssignmentBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public Builder setClusterAssignment( + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder builderForValue) { + if (clusterAssignmentBuilder_ == null) { + clusterAssignment_ = builderForValue.build(); + onChanged(); + } else { + clusterAssignmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public Builder mergeClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { + if (clusterAssignmentBuilder_ == null) { + if (clusterAssignment_ != null) { + clusterAssignment_ = + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.newBuilder(clusterAssignment_).mergeFrom(value).buildPartial(); + } else { + clusterAssignment_ = value; + } + onChanged(); + } else { + clusterAssignmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public Builder clearClusterAssignment() { + if (clusterAssignmentBuilder_ == null) { + clusterAssignment_ = null; + onChanged(); + } else { + clusterAssignment_ = null; + clusterAssignmentBuilder_ = null; + } + + return this; + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder getClusterAssignmentBuilder() { + + onChanged(); + return getClusterAssignmentFieldBuilder().getBuilder(); + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { + if (clusterAssignmentBuilder_ != null) { + return clusterAssignmentBuilder_.getMessageOrBuilder(); + } else { + return clusterAssignment_ == null ? + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance() : clusterAssignment_; + } + } + /** + *
+       * Controls how to select an available cluster on which this execution should run.
+       * 
+ * + * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> + getClusterAssignmentFieldBuilder() { + if (clusterAssignmentBuilder_ == null) { + clusterAssignmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder>( + getClusterAssignment(), + getParentForChildren(), + isClean()); + clusterAssignment_ = null; + } + return clusterAssignmentBuilder_; + } + + private com.google.protobuf.BoolValue interruptible_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> interruptibleBuilder_; + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public boolean hasInterruptible() { + return interruptibleBuilder_ != null || interruptible_ != null; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public com.google.protobuf.BoolValue getInterruptible() { + if (interruptibleBuilder_ == null) { + return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } else { + return interruptibleBuilder_.getMessage(); + } + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public Builder setInterruptible(com.google.protobuf.BoolValue value) { + if (interruptibleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interruptible_ = value; + onChanged(); + } else { + interruptibleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public Builder setInterruptible( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (interruptibleBuilder_ == null) { + interruptible_ = builderForValue.build(); + onChanged(); + } else { + interruptibleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public Builder mergeInterruptible(com.google.protobuf.BoolValue value) { + if (interruptibleBuilder_ == null) { + if (interruptible_ != null) { + interruptible_ = + com.google.protobuf.BoolValue.newBuilder(interruptible_).mergeFrom(value).buildPartial(); + } else { + interruptible_ = value; + } + onChanged(); + } else { + interruptibleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public Builder clearInterruptible() { + if (interruptibleBuilder_ == null) { + interruptible_ = null; + onChanged(); + } else { + interruptible_ = null; + interruptibleBuilder_ = null; + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public com.google.protobuf.BoolValue.Builder getInterruptibleBuilder() { + + onChanged(); + return getInterruptibleFieldBuilder().getBuilder(); + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { + if (interruptibleBuilder_ != null) { + return interruptibleBuilder_.getMessageOrBuilder(); + } else { + return interruptible_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getInterruptibleFieldBuilder() { + if (interruptibleBuilder_ == null) { + interruptibleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getInterruptible(), + getParentForChildren(), + isClean()); + interruptible_ = null; + } + return interruptibleBuilder_; + } + + private boolean overwriteCache_ ; + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 22; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 22; + */ + public Builder setOverwriteCache(boolean value) { + + overwriteCache_ = value; + onChanged(); + return this; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 22; + */ + public Builder clearOverwriteCache() { + + overwriteCache_ = false; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Envs envs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> envsBuilder_; + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public boolean hasEnvs() { + return envsBuilder_ != null || envs_ != null; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public flyteidl.admin.Common.Envs getEnvs() { + if (envsBuilder_ == null) { + return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } else { + return envsBuilder_.getMessage(); + } + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public Builder setEnvs(flyteidl.admin.Common.Envs value) { + if (envsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + envs_ = value; + onChanged(); + } else { + envsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public Builder setEnvs( + flyteidl.admin.Common.Envs.Builder builderForValue) { + if (envsBuilder_ == null) { + envs_ = builderForValue.build(); + onChanged(); + } else { + envsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public Builder mergeEnvs(flyteidl.admin.Common.Envs value) { + if (envsBuilder_ == null) { + if (envs_ != null) { + envs_ = + flyteidl.admin.Common.Envs.newBuilder(envs_).mergeFrom(value).buildPartial(); + } else { + envs_ = value; + } + onChanged(); + } else { + envsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public Builder clearEnvs() { + if (envsBuilder_ == null) { + envs_ = null; + onChanged(); + } else { + envs_ = null; + envsBuilder_ = null; + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public flyteidl.admin.Common.Envs.Builder getEnvsBuilder() { + + onChanged(); + return getEnvsFieldBuilder().getBuilder(); + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { + if (envsBuilder_ != null) { + return envsBuilder_.getMessageOrBuilder(); + } else { + return envs_ == null ? + flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> + getEnvsFieldBuilder() { + if (envsBuilder_ == null) { + envsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder>( + getEnvs(), + getParentForChildren(), + isClean()); + envs_ = null; + } + return envsBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00010000) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00010000; + } + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + *
+       * Tags to be set for the execution.
+       * 
+ * + * repeated string tags = 24; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + java.lang.String getCause(); + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + com.google.protobuf.ByteString + getCauseBytes(); + } + /** + *
+   * Request to terminate an in-progress execution.  This action is irreversible.
+   * If an execution is already terminated, this request will simply be a no-op.
+   * This request will fail if it references a non-existent execution.
+   * If the request succeeds the phase "ABORTED" will be recorded for the termination
+   * with the optional cause added to the output_result.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class ExecutionTerminateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateRequest) + ExecutionTerminateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateRequest.newBuilder() to construct. + private ExecutionTerminateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateRequest() { + cause_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cause_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CAUSE_FIELD_NUMBER = 2; + private volatile java.lang.Object cause_; + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } + } + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getCauseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getCauseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getCause() + .equals(other.getCause())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to terminate an in-progress execution.  This action is irreversible.
+     * If an execution is already terminated, this request will simply be a no-op.
+     * This request will fail if it references a non-existent execution.
+     * If the request succeeds the phase "ABORTED" will be recorded for the termination
+     * with the optional cause added to the output_result.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + cause_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.cause_ = cause_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getCause().isEmpty()) { + cause_ = other.cause_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object cause_ = ""; + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cause_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder clearCause() { + + cause_ = getDefaultInstance().getCause(); + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cause_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionTerminateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTerminateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class ExecutionTerminateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateResponse) + ExecutionTerminateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateResponse.newBuilder() to construct. + private ExecutionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionTerminateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTerminateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs, output and other data produced by an execution.
+   * By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class WorkflowExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + WorkflowExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataRequest.newBuilder() to construct. + private WorkflowExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request structure to fetch inputs, output and other data produced by an execution.
+     * By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + boolean hasFullInputs(); + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + flyteidl.core.Literals.LiteralMap getFullInputs(); + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder(); + + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + boolean hasFullOutputs(); + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + flyteidl.core.Literals.LiteralMap getFullOutputs(); + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder(); + } + /** + *
+   * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class WorkflowExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + WorkflowExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataResponse.newBuilder() to construct. + private WorkflowExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fullInputs_ != null) { + subBuilder = fullInputs_.toBuilder(); + } + fullInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullInputs_); + fullInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fullOutputs_ != null) { + subBuilder = fullOutputs_.toBuilder(); + } + fullOutputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullOutputs_); + fullOutputs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + public static final int INPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int FULL_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Literals.LiteralMap fullInputs_; + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public boolean hasFullInputs() { + return fullInputs_ != null; + } + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getFullInputs() { + return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { + return getFullInputs(); + } + + public static final int FULL_OUTPUTS_FIELD_NUMBER = 4; + private flyteidl.core.Literals.LiteralMap fullOutputs_; + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public boolean hasFullOutputs() { + return fullOutputs_ != null; + } + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFullOutputs() { + return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { + return getFullOutputs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputs_ != null) { + output.writeMessage(1, getOutputs()); + } + if (inputs_ != null) { + output.writeMessage(2, getInputs()); + } + if (fullInputs_ != null) { + output.writeMessage(3, getFullInputs()); + } + if (fullOutputs_ != null) { + output.writeMessage(4, getFullOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputs()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputs()); + } + if (fullInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFullInputs()); + } + if (fullOutputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFullOutputs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) obj; + + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasFullInputs() != other.hasFullInputs()) return false; + if (hasFullInputs()) { + if (!getFullInputs() + .equals(other.getFullInputs())) return false; + } + if (hasFullOutputs() != other.hasFullOutputs()) return false; + if (hasFullOutputs()) { + if (!getFullOutputs() + .equals(other.getFullOutputs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasFullInputs()) { + hash = (37 * hash) + FULL_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFullInputs().hashCode(); + } + if (hasFullOutputs()) { + hash = (37 * hash) + FULL_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFullOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (fullInputsBuilder_ == null) { + fullInputs_ = null; + } else { + fullInputs_ = null; + fullInputsBuilder_ = null; + } + if (fullOutputsBuilder_ == null) { + fullOutputs_ = null; + } else { + fullOutputs_ = null; + fullOutputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(this); + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (fullInputsBuilder_ == null) { + result.fullInputs_ = fullInputs_; + } else { + result.fullInputs_ = fullInputsBuilder_.build(); + } + if (fullOutputsBuilder_ == null) { + result.fullOutputs_ = fullOutputs_; + } else { + result.fullOutputs_ = fullOutputsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasFullInputs()) { + mergeFullInputs(other.getFullInputs()); + } + if (other.hasFullOutputs()) { + mergeFullOutputs(other.getFullOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fullInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullInputsBuilder_; + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public boolean hasFullInputs() { + return fullInputsBuilder_ != null || fullInputs_ != null; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getFullInputs() { + if (fullInputsBuilder_ == null) { + return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } else { + return fullInputsBuilder_.getMessage(); + } + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder setFullInputs(flyteidl.core.Literals.LiteralMap value) { + if (fullInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullInputs_ = value; + onChanged(); + } else { + fullInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder setFullInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fullInputsBuilder_ == null) { + fullInputs_ = builderForValue.build(); + onChanged(); + } else { + fullInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder mergeFullInputs(flyteidl.core.Literals.LiteralMap value) { + if (fullInputsBuilder_ == null) { + if (fullInputs_ != null) { + fullInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fullInputs_).mergeFrom(value).buildPartial(); + } else { + fullInputs_ = value; + } + onChanged(); + } else { + fullInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder clearFullInputs() { + if (fullInputsBuilder_ == null) { + fullInputs_ = null; + onChanged(); + } else { + fullInputs_ = null; + fullInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFullInputsBuilder() { + + onChanged(); + return getFullInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { + if (fullInputsBuilder_ != null) { + return fullInputsBuilder_.getMessageOrBuilder(); + } else { + return fullInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFullInputsFieldBuilder() { + if (fullInputsBuilder_ == null) { + fullInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFullInputs(), + getParentForChildren(), + isClean()); + fullInputs_ = null; + } + return fullInputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fullOutputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullOutputsBuilder_; + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public boolean hasFullOutputs() { + return fullOutputsBuilder_ != null || fullOutputs_ != null; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFullOutputs() { + if (fullOutputsBuilder_ == null) { + return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } else { + return fullOutputsBuilder_.getMessage(); + } + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder setFullOutputs(flyteidl.core.Literals.LiteralMap value) { + if (fullOutputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullOutputs_ = value; + onChanged(); + } else { + fullOutputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder setFullOutputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fullOutputsBuilder_ == null) { + fullOutputs_ = builderForValue.build(); + onChanged(); + } else { + fullOutputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder mergeFullOutputs(flyteidl.core.Literals.LiteralMap value) { + if (fullOutputsBuilder_ == null) { + if (fullOutputs_ != null) { + fullOutputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fullOutputs_).mergeFrom(value).buildPartial(); + } else { + fullOutputs_ = value; + } + onChanged(); + } else { + fullOutputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder clearFullOutputs() { + if (fullOutputsBuilder_ == null) { + fullOutputs_ = null; + onChanged(); + } else { + fullOutputs_ = null; + fullOutputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFullOutputsBuilder() { + + onChanged(); + return getFullOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { + if (fullOutputsBuilder_ != null) { + return fullOutputsBuilder_.getMessageOrBuilder(); + } else { + return fullOutputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFullOutputsFieldBuilder() { + if (fullOutputsBuilder_ == null) { + fullOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFullOutputs(), + getParentForChildren(), + isClean()); + fullOutputs_ = null; + } + return fullOutputsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of the execution to update
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of the execution to update
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Identifier of the execution to update
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * State to set as the new value active/archive
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + int getStateValue(); + /** + *
+     * State to set as the new value active/archive
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionState getState(); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionUpdateRequest} + */ + public static final class ExecutionUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionUpdateRequest) + ExecutionUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionUpdateRequest.newBuilder() to construct. + private ExecutionUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionUpdateRequest() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionUpdateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Identifier of the execution to update
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the execution to update
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the execution to update
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * State to set as the new value active/archive
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * State to set as the new value active/archive
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionUpdateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the execution to update
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int state_ = 0; + /** + *
+       * State to set as the new value active/archive
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * State to set as the new value active/archive
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * State to set as the new value active/archive
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; + } + /** + *
+       * State to set as the new value active/archive
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + public Builder setState(flyteidl.admin.ExecutionOuterClass.ExecutionState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * State to set as the new value active/archive
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 2; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionStateChangeDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionStateChangeDetails) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + int getStateValue(); + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionState getState(); + + /** + *
+     * This timestamp represents when the state changed.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the state changed.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the state changed.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * Identifies the entity (if any) responsible for causing the state change of the execution
+     * 
+ * + * string principal = 3; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifies the entity (if any) responsible for causing the state change of the execution
+     * 
+ * + * string principal = 3; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionStateChangeDetails} + */ + public static final class ExecutionStateChangeDetails extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionStateChangeDetails) + ExecutionStateChangeDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionStateChangeDetails.newBuilder() to construct. + private ExecutionStateChangeDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionStateChangeDetails() { + state_ = 0; + principal_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionStateChangeDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.class, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the state changed.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the state changed.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the state changed.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int PRINCIPAL_FIELD_NUMBER = 3; + private volatile java.lang.Object principal_; + /** + *
+     * Identifies the entity (if any) responsible for causing the state change of the execution
+     * 
+ * + * string principal = 3; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifies the entity (if any) responsible for causing the state change of the execution
+     * 
+ * + * string principal = 3; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { + output.writeEnum(1, state_); + } + if (occurredAt_ != null) { + output.writeMessage(2, getOccurredAt()); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, principal_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOccurredAt()); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, principal_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails other = (flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails) obj; + + if (state_ != other.state_) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getPrincipal() + .equals(other.getPrincipal())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionStateChangeDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionStateChangeDetails) + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.class, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + principal_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails build() { + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails result = new flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails(this); + result.state_ = state_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.principal_ = principal_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + public Builder setState(flyteidl.admin.ExecutionOuterClass.ExecutionState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.admin.ExecutionState state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the state changed.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifies the entity (if any) responsible for causing the state change of the execution
+       * 
+ * + * string principal = 3; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for causing the state change of the execution
+       * 
+ * + * string principal = 3; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifies the entity (if any) responsible for causing the state change of the execution
+       * 
+ * + * string principal = 3; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for causing the state change of the execution
+       * 
+ * + * string principal = 3; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifies the entity (if any) responsible for causing the state change of the execution
+       * 
+ * + * string principal = 3; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionStateChangeDetails) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionStateChangeDetails) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionStateChangeDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionStateChangeDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionUpdateResponse} + */ + public static final class ExecutionUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionUpdateResponse) + ExecutionUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionUpdateResponse.newBuilder() to construct. + private ExecutionUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionUpdateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetMetricsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id defines the workflow execution to query for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * id defines the workflow execution to query for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * id defines the workflow execution to query for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
+     * 
+ * + * int32 depth = 2; + */ + int getDepth(); + } + /** + *
+   * WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsRequest} + */ + public static final class WorkflowExecutionGetMetricsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + WorkflowExecutionGetMetricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetMetricsRequest.newBuilder() to construct. + private WorkflowExecutionGetMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetMetricsRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetMetricsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + depth_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * id defines the workflow execution to query for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id defines the workflow execution to query for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * id defines the workflow execution to query for.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int DEPTH_FIELD_NUMBER = 2; + private int depth_; + /** + *
+     * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
+     * 
+ * + * int32 depth = 2; + */ + public int getDepth() { + return depth_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (depth_ != 0) { + output.writeInt32(2, depth_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (depth_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, depth_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (getDepth() + != other.getDepth()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + DEPTH_FIELD_NUMBER; + hash = (53 * hash) + getDepth(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + depth_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.depth_ = depth_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.getDepth() != 0) { + setDepth(other.getDepth()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id defines the workflow execution to query for.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int depth_ ; + /** + *
+       * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
+       * 
+ * + * int32 depth = 2; + */ + public int getDepth() { + return depth_; + } + /** + *
+       * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
+       * 
+ * + * int32 depth = 2; + */ + public Builder setDepth(int value) { + + depth_ = value; + onChanged(); + return this; + } + /** + *
+       * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
+       * 
+ * + * int32 depth = 2; + */ + public Builder clearDepth() { + + depth_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetMetricsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetMetricsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+     * hierarchical structure using Flyte entity references.
+     * 
+ * + * .flyteidl.core.Span span = 1; + */ + boolean hasSpan(); + /** + *
+     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+     * hierarchical structure using Flyte entity references.
+     * 
+ * + * .flyteidl.core.Span span = 1; + */ + flyteidl.core.Metrics.Span getSpan(); + /** + *
+     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+     * hierarchical structure using Flyte entity references.
+     * 
+ * + * .flyteidl.core.Span span = 1; + */ + flyteidl.core.Metrics.SpanOrBuilder getSpanOrBuilder(); + } + /** + *
+   * WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsResponse} + */ + public static final class WorkflowExecutionGetMetricsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + WorkflowExecutionGetMetricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetMetricsResponse.newBuilder() to construct. + private WorkflowExecutionGetMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetMetricsResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetMetricsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Metrics.Span.Builder subBuilder = null; + if (span_ != null) { + subBuilder = span_.toBuilder(); + } + span_ = input.readMessage(flyteidl.core.Metrics.Span.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(span_); + span_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.Builder.class); + } + + public static final int SPAN_FIELD_NUMBER = 1; + private flyteidl.core.Metrics.Span span_; + /** + *
+     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+     * hierarchical structure using Flyte entity references.
+     * 
+ * + * .flyteidl.core.Span span = 1; + */ + public boolean hasSpan() { + return span_ != null; + } + /** + *
+     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+     * hierarchical structure using Flyte entity references.
+     * 
+ * + * .flyteidl.core.Span span = 1; + */ + public flyteidl.core.Metrics.Span getSpan() { + return span_ == null ? flyteidl.core.Metrics.Span.getDefaultInstance() : span_; + } + /** + *
+     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+     * hierarchical structure using Flyte entity references.
+     * 
+ * + * .flyteidl.core.Span span = 1; + */ + public flyteidl.core.Metrics.SpanOrBuilder getSpanOrBuilder() { + return getSpan(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (span_ != null) { + output.writeMessage(1, getSpan()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (span_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSpan()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse) obj; + + if (hasSpan() != other.hasSpan()) return false; + if (hasSpan()) { + if (!getSpan() + .equals(other.getSpan())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSpan()) { + hash = (37 * hash) + SPAN_FIELD_NUMBER; + hash = (53 * hash) + getSpan().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (spanBuilder_ == null) { + span_ = null; + } else { + span_ = null; + spanBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse(this); + if (spanBuilder_ == null) { + result.span_ = span_; + } else { + result.span_ = spanBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.getDefaultInstance()) return this; + if (other.hasSpan()) { + mergeSpan(other.getSpan()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Metrics.Span span_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> spanBuilder_; + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public boolean hasSpan() { + return spanBuilder_ != null || span_ != null; + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public flyteidl.core.Metrics.Span getSpan() { + if (spanBuilder_ == null) { + return span_ == null ? flyteidl.core.Metrics.Span.getDefaultInstance() : span_; + } else { + return spanBuilder_.getMessage(); + } + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public Builder setSpan(flyteidl.core.Metrics.Span value) { + if (spanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + span_ = value; + onChanged(); + } else { + spanBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public Builder setSpan( + flyteidl.core.Metrics.Span.Builder builderForValue) { + if (spanBuilder_ == null) { + span_ = builderForValue.build(); + onChanged(); + } else { + spanBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public Builder mergeSpan(flyteidl.core.Metrics.Span value) { + if (spanBuilder_ == null) { + if (span_ != null) { + span_ = + flyteidl.core.Metrics.Span.newBuilder(span_).mergeFrom(value).buildPartial(); + } else { + span_ = value; + } + onChanged(); + } else { + spanBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public Builder clearSpan() { + if (spanBuilder_ == null) { + span_ = null; + onChanged(); + } else { + span_ = null; + spanBuilder_ = null; + } + + return this; + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public flyteidl.core.Metrics.Span.Builder getSpanBuilder() { + + onChanged(); + return getSpanFieldBuilder().getBuilder(); + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + public flyteidl.core.Metrics.SpanOrBuilder getSpanOrBuilder() { + if (spanBuilder_ != null) { + return spanBuilder_.getMessageOrBuilder(); + } else { + return span_ == null ? + flyteidl.core.Metrics.Span.getDefaultInstance() : span_; + } + } + /** + *
+       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
+       * hierarchical structure using Flyte entity references.
+       * 
+ * + * .flyteidl.core.Span span = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> + getSpanFieldBuilder() { + if (spanBuilder_ == null) { + spanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder>( + getSpan(), + getParentForChildren(), + isClean()); + span_ = null; + } + return spanBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsResponse) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionGetMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetMetricsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Execution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Execution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_AbortMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SystemMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NotificationList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036flyteidl/admin/execution.proto\022\016flytei" + + "dl.admin\032\'flyteidl/admin/cluster_assignm" + + "ent.proto\032\033flyteidl/admin/common.proto\032\034" + + "flyteidl/core/literals.proto\032\035flyteidl/c" + + "ore/execution.proto\032\036flyteidl/core/ident" + + "ifier.proto\032\033flyteidl/core/metrics.proto" + + "\032\034flyteidl/core/security.proto\032\036google/p" + + "rotobuf/duration.proto\032\037google/protobuf/" + + "timestamp.proto\032\036google/protobuf/wrapper" + + "s.proto\"\237\001\n\026ExecutionCreateRequest\022\017\n\007pr" + + "oject\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(" + + "\t\022+\n\004spec\030\004 \001(\0132\035.flyteidl.admin.Executi" + + "onSpec\022)\n\006inputs\030\005 \001(\0132\031.flyteidl.core.L" + + "iteralMap\"\177\n\030ExecutionRelaunchRequest\0226\n" + + "\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExecut" + + "ionIdentifier\022\014\n\004name\030\003 \001(\t\022\027\n\017overwrite" + + "_cache\030\004 \001(\010J\004\010\002\020\003\"\224\001\n\027ExecutionRecoverR" + + "equest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Workf" + + "lowExecutionIdentifier\022\014\n\004name\030\002 \001(\t\0223\n\010" + + "metadata\030\003 \001(\0132!.flyteidl.admin.Executio" + + "nMetadata\"Q\n\027ExecutionCreateResponse\0226\n\002" + + "id\030\001 \001(\0132*.flyteidl.core.WorkflowExecuti" + + "onIdentifier\"U\n\033WorkflowExecutionGetRequ" + + "est\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Workflow" + + "ExecutionIdentifier\"\243\001\n\tExecution\0226\n\002id\030" + + "\001 \001(\0132*.flyteidl.core.WorkflowExecutionI" + + "dentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl.admin" + + ".ExecutionSpec\0221\n\007closure\030\003 \001(\0132 .flytei" + + "dl.admin.ExecutionClosure\"M\n\rExecutionLi" + + "st\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl.admin." + + "Execution\022\r\n\005token\030\002 \001(\t\"X\n\016LiteralMapBl" + + "ob\022/\n\006values\030\001 \001(\0132\031.flyteidl.core.Liter" + + "alMapB\002\030\001H\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\rAb" + + "ortMetadata\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipal\030" + + "\002 \001(\t\"\360\005\n\020ExecutionClosure\0225\n\007outputs\030\001 " + + "\001(\0132\036.flyteidl.admin.LiteralMapBlobB\002\030\001H" + + "\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Executi" + + "onErrorH\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016" + + "abort_metadata\030\014 \001(\0132\035.flyteidl.admin.Ab" + + "ortMetadataH\000\0224\n\013output_data\030\r \001(\0132\031.fly" + + "teidl.core.LiteralMapB\002\030\001H\000\0226\n\017computed_" + + "inputs\030\003 \001(\0132\031.flyteidl.core.LiteralMapB" + + "\002\030\001\0225\n\005phase\030\004 \001(\0162&.flyteidl.core.Workf" + + "lowExecution.Phase\022.\n\nstarted_at\030\005 \001(\0132\032" + + ".google.protobuf.Timestamp\022+\n\010duration\030\006" + + " \001(\0132\031.google.protobuf.Duration\022.\n\ncreat" + + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + + ".\n\nupdated_at\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestamp\0223\n\rnotifications\030\t \003(\0132\034.flyteid" + + "l.admin.Notification\022.\n\013workflow_id\030\013 \001(" + + "\0132\031.flyteidl.core.Identifier\022I\n\024state_ch" + + "ange_details\030\016 \001(\0132+.flyteidl.admin.Exec" + + "utionStateChangeDetailsB\017\n\routput_result" + + "\">\n\016SystemMetadata\022\031\n\021execution_cluster\030" + + "\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\"\332\003\n\021ExecutionMe" + + "tadata\022=\n\004mode\030\001 \001(\0162/.flyteidl.admin.Ex" + + "ecutionMetadata.ExecutionMode\022\021\n\tprincip" + + "al\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014scheduled_a" + + "t\030\004 \001(\0132\032.google.protobuf.Timestamp\022E\n\025p" + + "arent_node_execution\030\005 \001(\0132&.flyteidl.co" + + "re.NodeExecutionIdentifier\022G\n\023reference_" + + "execution\030\020 \001(\0132*.flyteidl.core.Workflow" + + "ExecutionIdentifier\0227\n\017system_metadata\030\021" + + " \001(\0132\036.flyteidl.admin.SystemMetadata\"g\n\r" + + "ExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tSCHEDULED\020\001" + + "\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016CHILD_WORK" + + "FLOW\020\004\022\r\n\tRECOVERED\020\005\"G\n\020NotificationLis" + + "t\0223\n\rnotifications\030\001 \003(\0132\034.flyteidl.admi" + + "n.Notification\"\262\006\n\rExecutionSpec\022.\n\013laun" + + "ch_plan\030\001 \001(\0132\031.flyteidl.core.Identifier" + + "\022-\n\006inputs\030\002 \001(\0132\031.flyteidl.core.Literal" + + "MapB\002\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.adm" + + "in.ExecutionMetadata\0229\n\rnotifications\030\005 " + + "\001(\0132 .flyteidl.admin.NotificationListH\000\022" + + "\025\n\013disable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\0132\026" + + ".flyteidl.admin.Labels\0220\n\013annotations\030\010 " + + "\001(\0132\033.flyteidl.admin.Annotations\0228\n\020secu" + + "rity_context\030\n \001(\0132\036.flyteidl.core.Secur" + + "ityContext\022/\n\tauth_role\030\020 \001(\0132\030.flyteidl" + + ".admin.AuthRoleB\002\030\001\022;\n\022quality_of_servic" + + "e\030\021 \001(\0132\037.flyteidl.core.QualityOfService" + + "\022\027\n\017max_parallelism\030\022 \001(\005\022C\n\026raw_output_" + + "data_config\030\023 \001(\0132#.flyteidl.admin.RawOu" + + "tputDataConfig\022=\n\022cluster_assignment\030\024 \001" + + "(\0132!.flyteidl.admin.ClusterAssignment\0221\n" + + "\rinterruptible\030\025 \001(\0132\032.google.protobuf.B" + + "oolValue\022\027\n\017overwrite_cache\030\026 \001(\010\022\"\n\004env" + + "s\030\027 \001(\0132\024.flyteidl.admin.Envs\022\014\n\004tags\030\030 " + + "\003(\tB\030\n\026notification_overridesJ\004\010\004\020\005\"b\n\031E" + + "xecutionTerminateRequest\0226\n\002id\030\001 \001(\0132*.f" + + "lyteidl.core.WorkflowExecutionIdentifier" + + "\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTerminateRes" + + "ponse\"Y\n\037WorkflowExecutionGetDataRequest" + + "\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExe" + + "cutionIdentifier\"\336\001\n WorkflowExecutionGe" + + "tDataResponse\022,\n\007outputs\030\001 \001(\0132\027.flyteid" + + "l.admin.UrlBlobB\002\030\001\022+\n\006inputs\030\002 \001(\0132\027.fl" + + "yteidl.admin.UrlBlobB\002\030\001\022.\n\013full_inputs\030" + + "\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014full" + + "_outputs\030\004 \001(\0132\031.flyteidl.core.LiteralMa" + + "p\"\177\n\026ExecutionUpdateRequest\0226\n\002id\030\001 \001(\0132" + + "*.flyteidl.core.WorkflowExecutionIdentif" + + "ier\022-\n\005state\030\002 \001(\0162\036.flyteidl.admin.Exec" + + "utionState\"\220\001\n\033ExecutionStateChangeDetai" + + "ls\022-\n\005state\030\001 \001(\0162\036.flyteidl.admin.Execu" + + "tionState\022/\n\013occurred_at\030\002 \001(\0132\032.google." + + "protobuf.Timestamp\022\021\n\tprincipal\030\003 \001(\t\"\031\n" + + "\027ExecutionUpdateResponse\"k\n\"WorkflowExec" + + "utionGetMetricsRequest\0226\n\002id\030\001 \001(\0132*.fly" + + "teidl.core.WorkflowExecutionIdentifier\022\r" + + "\n\005depth\030\002 \001(\005\"H\n#WorkflowExecutionGetMet" + + "ricsResponse\022!\n\004span\030\001 \001(\0132\023.flyteidl.co" + + "re.Span*>\n\016ExecutionState\022\024\n\020EXECUTION_A" + + "CTIVE\020\000\022\026\n\022EXECUTION_ARCHIVED\020\001B7Z5githu" + + "b.com/flyteorg/flyteidl/gen/pb-go/flytei" + + "dl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Metrics.getDescriptor(), + flyteidl.core.Security.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", "Spec", "Inputs", }); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor, + new java.lang.String[] { "Id", "Name", "OverwriteCache", }); + internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor, + new java.lang.String[] { "Id", "Name", "Metadata", }); + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_Execution_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_Execution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Execution_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_ExecutionList_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionList_descriptor, + new java.lang.String[] { "Executions", "Token", }); + internal_static_flyteidl_admin_LiteralMapBlob_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LiteralMapBlob_descriptor, + new java.lang.String[] { "Values", "Uri", "Data", }); + internal_static_flyteidl_admin_AbortMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_AbortMetadata_descriptor, + new java.lang.String[] { "Cause", "Principal", }); + internal_static_flyteidl_admin_ExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionClosure_descriptor, + new java.lang.String[] { "Outputs", "Error", "AbortCause", "AbortMetadata", "OutputData", "ComputedInputs", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "Notifications", "WorkflowId", "StateChangeDetails", "OutputResult", }); + internal_static_flyteidl_admin_SystemMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SystemMetadata_descriptor, + new java.lang.String[] { "ExecutionCluster", "Namespace", }); + internal_static_flyteidl_admin_ExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionMetadata_descriptor, + new java.lang.String[] { "Mode", "Principal", "Nesting", "ScheduledAt", "ParentNodeExecution", "ReferenceExecution", "SystemMetadata", }); + internal_static_flyteidl_admin_NotificationList_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NotificationList_descriptor, + new java.lang.String[] { "Notifications", }); + internal_static_flyteidl_admin_ExecutionSpec_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionSpec_descriptor, + new java.lang.String[] { "LaunchPlan", "Inputs", "Metadata", "Notifications", "DisableAll", "Labels", "Annotations", "SecurityContext", "AuthRole", "QualityOfService", "MaxParallelism", "RawOutputDataConfig", "ClusterAssignment", "Interruptible", "OverwriteCache", "Envs", "Tags", "NotificationOverrides", }); + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor, + new java.lang.String[] { "Id", "Cause", }); + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Outputs", "Inputs", "FullInputs", "FullOutputs", }); + internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor, + new java.lang.String[] { "Id", "State", }); + internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor, + new java.lang.String[] { "State", "OccurredAt", "Principal", }); + internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor, + new java.lang.String[] { "Id", "Depth", }); + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor, + new java.lang.String[] { "Span", }); + flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Metrics.getDescriptor(); + flyteidl.core.Security.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java new file mode 100644 index 0000000000..826aa2eab1 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java @@ -0,0 +1,14726 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +package flyteidl.admin; + +public final class LaunchPlanOuterClass { + private LaunchPlanOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * By default any launch plan regardless of state can be used to launch a workflow execution.
+   * However, at most one version of a launch plan
+   * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be
+   * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier
+   * group will be observed and trigger executions at a defined cadence.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.LaunchPlanState} + */ + public enum LaunchPlanState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INACTIVE = 0; + */ + INACTIVE(0), + /** + * ACTIVE = 1; + */ + ACTIVE(1), + UNRECOGNIZED(-1), + ; + + /** + * INACTIVE = 0; + */ + public static final int INACTIVE_VALUE = 0; + /** + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LaunchPlanState valueOf(int value) { + return forNumber(value); + } + + public static LaunchPlanState forNumber(int value) { + switch (value) { + case 0: return INACTIVE; + case 1: return ACTIVE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LaunchPlanState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LaunchPlanState findValueByNumber(int number) { + return LaunchPlanState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final LaunchPlanState[] VALUES = values(); + + public static LaunchPlanState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LaunchPlanState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.LaunchPlanState) + } + + public interface LaunchPlanCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required
+   * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+   * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class LaunchPlanCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateRequest) + LaunchPlanCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateRequest.newBuilder() to construct. + private LaunchPlanCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required
+     * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+     * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class LaunchPlanCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateResponse) + LaunchPlanCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateResponse.newBuilder() to construct. + private LaunchPlanCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlan) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure(); + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A LaunchPlan provides the capability to templatize workflow executions.
+   * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+   * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+   * definition doesn't necessarily have a default value for said input.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class LaunchPlan extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlan) + LaunchPlanOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlan.newBuilder() to construct. + private LaunchPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlan() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlan( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A LaunchPlan provides the capability to templatize workflow executions.
+     * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+     * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+     * definition doesn't necessarily have a default value for said input.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlan) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> closureBuilder_; + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Values computed by the flyte platform after launch plan registration.
+       * 
+ * + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlan) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlan DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlan(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + int getLaunchPlansCount(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansOrBuilderList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Response object for list launch plan requests.
+   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class LaunchPlanList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanList) + LaunchPlanListOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanList.newBuilder() to construct. + private LaunchPlanList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanList() { + launchPlans_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + launchPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + launchPlans_.add( + input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + private int bitField0_; + public static final int LAUNCH_PLANS_FIELD_NUMBER = 1; + private java.util.List launchPlans_; + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + return launchPlans_.size(); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + return launchPlans_.get(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + return launchPlans_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < launchPlans_.size(); i++) { + output.writeMessage(1, launchPlans_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < launchPlans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, launchPlans_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) obj; + + if (!getLaunchPlansList() + .equals(other.getLaunchPlansList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLaunchPlansCount() > 0) { + hash = (37 * hash) + LAUNCH_PLANS_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlansList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response object for list launch plan requests.
+     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanList) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLaunchPlansFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + launchPlansBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (launchPlansBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.launchPlans_ = launchPlans_; + } else { + result.launchPlans_ = launchPlansBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance()) return this; + if (launchPlansBuilder_ == null) { + if (!other.launchPlans_.isEmpty()) { + if (launchPlans_.isEmpty()) { + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLaunchPlansIsMutable(); + launchPlans_.addAll(other.launchPlans_); + } + onChanged(); + } + } else { + if (!other.launchPlans_.isEmpty()) { + if (launchPlansBuilder_.isEmpty()) { + launchPlansBuilder_.dispose(); + launchPlansBuilder_ = null; + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + launchPlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLaunchPlansFieldBuilder() : null; + } else { + launchPlansBuilder_.addAllMessages(other.launchPlans_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List launchPlans_ = + java.util.Collections.emptyList(); + private void ensureLaunchPlansIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + launchPlans_ = new java.util.ArrayList(launchPlans_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> launchPlansBuilder_; + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + if (launchPlansBuilder_ == null) { + return java.util.Collections.unmodifiableList(launchPlans_); + } else { + return launchPlansBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + if (launchPlansBuilder_ == null) { + return launchPlans_.size(); + } else { + return launchPlansBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); + } else { + return launchPlansBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, value); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addAllLaunchPlans( + java.lang.Iterable values) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, launchPlans_); + onChanged(); + } else { + launchPlansBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder clearLaunchPlans() { + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + launchPlansBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder removeLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.remove(index); + onChanged(); + } else { + launchPlansBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); } else { + return launchPlansBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + if (launchPlansBuilder_ != null) { + return launchPlansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(launchPlans_); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder() { + return getLaunchPlansFieldBuilder().addBuilder( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().addBuilder( + index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansBuilderList() { + return getLaunchPlansFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> + getLaunchPlansFieldBuilder() { + if (launchPlansBuilder_ == null) { + launchPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( + launchPlans_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + launchPlans_ = null; + } + return launchPlansBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface AuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Auth) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + java.lang.String getAssumableIamRole(); + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + com.google.protobuf.ByteString + getAssumableIamRoleBytes(); + + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + java.lang.String getKubernetesServiceAccount(); + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + com.google.protobuf.ByteString + getKubernetesServiceAccountBytes(); + } + /** + *
+   * Defines permissions associated with executions created by this launch plan spec.
+   * Use either of these roles when they have permissions required by your workflow execution.
+   * Deprecated.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + @java.lang.Deprecated public static final class Auth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Auth) + AuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use Auth.newBuilder() to construct. + private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Auth() { + assumableIamRole_ = ""; + kubernetesServiceAccount_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Auth( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + assumableIamRole_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + kubernetesServiceAccount_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; + private volatile java.lang.Object assumableIamRole_; + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = assumableIamRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assumableIamRole_ = s; + return s; + } + } + /** + *
+     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = assumableIamRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assumableIamRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + private volatile java.lang.Object kubernetesServiceAccount_; + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesServiceAccount_ = s; + return s; + } + } + /** + *
+     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+     * 
+ * + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kubernetesServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAssumableIamRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assumableIamRole_); + } + if (!getKubernetesServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kubernetesServiceAccount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAssumableIamRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assumableIamRole_); + } + if (!getKubernetesServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kubernetesServiceAccount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.Auth)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.Auth other = (flyteidl.admin.LaunchPlanOuterClass.Auth) obj; + + if (!getAssumableIamRole() + .equals(other.getAssumableIamRole())) return false; + if (!getKubernetesServiceAccount() + .equals(other.getKubernetesServiceAccount())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAssumableIamRole().hashCode(); + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.Auth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines permissions associated with executions created by this launch plan spec.
+     * Use either of these roles when they have permissions required by your workflow execution.
+     * Deprecated.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Auth) + flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + assumableIamRole_ = ""; + + kubernetesServiceAccount_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth build() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = new flyteidl.admin.LaunchPlanOuterClass.Auth(this); + result.assumableIamRole_ = assumableIamRole_; + result.kubernetesServiceAccount_ = kubernetesServiceAccount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.Auth) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.Auth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.Auth other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance()) return this; + if (!other.getAssumableIamRole().isEmpty()) { + assumableIamRole_ = other.assumableIamRole_; + onChanged(); + } + if (!other.getKubernetesServiceAccount().isEmpty()) { + kubernetesServiceAccount_ = other.kubernetesServiceAccount_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.Auth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.Auth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object assumableIamRole_ = ""; + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = assumableIamRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assumableIamRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = assumableIamRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + assumableIamRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + assumableIamRole_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public Builder clearAssumableIamRole() { + + assumableIamRole_ = getDefaultInstance().getAssumableIamRole(); + onChanged(); + return this; + } + /** + *
+       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + assumableIamRole_ = value; + onChanged(); + return this; + } + + private java.lang.Object kubernetesServiceAccount_ = ""; + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = kubernetesServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = kubernetesServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kubernetesServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kubernetesServiceAccount_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public Builder clearKubernetesServiceAccount() { + + kubernetesServiceAccount_ = getDefaultInstance().getKubernetesServiceAccount(); + onChanged(); + return this; + } + /** + *
+       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
+       * 
+ * + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kubernetesServiceAccount_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Auth) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) + private static final flyteidl.admin.LaunchPlanOuterClass.Auth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.Auth(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Auth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Auth(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + boolean hasWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + boolean hasEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder(); + + /** + *
+     * Input values to be passed for the execution.
+     * These can be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + boolean hasDefaultInputs(); + /** + *
+     * Input values to be passed for the execution.
+     * These can be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMap getDefaultInputs(); + /** + *
+     * Input values to be passed for the execution.
+     * These can be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder(); + + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan.
+     * These can not be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + boolean hasFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan.
+     * These can not be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMap getFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan.
+     * These can not be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder(); + + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getRole(); + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getRoleBytes(); + + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + boolean hasLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + boolean hasAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.Auth getAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder(); + + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasAuthRole(); + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.AuthRole getAuthRole(); + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); + + /** + *
+     * Indicates security context for permissions triggered with this launch plan
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + boolean hasSecurityContext(); + /** + *
+     * Indicates security context for permissions triggered with this launch plan
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + flyteidl.core.Security.SecurityContext getSecurityContext(); + /** + *
+     * Indicates security context for permissions triggered with this launch plan
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); + + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + boolean hasRawOutputDataConfig(); + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig(); + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder(); + + /** + *
+     * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
+     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+     * and parallelism/concurrency of MapTasks is independent from this.
+     * 
+ * + * int32 max_parallelism = 18; + */ + int getMaxParallelism(); + + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + boolean hasInterruptible(); + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + com.google.protobuf.BoolValue getInterruptible(); + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder(); + + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 20; + */ + boolean getOverwriteCache(); + + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + boolean hasEnvs(); + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + flyteidl.admin.Common.Envs getEnvs(); + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder(); + } + /** + *
+   * User-provided launch plan definition and configuration values.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class LaunchPlanSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanSpec) + LaunchPlanSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanSpec.newBuilder() to construct. + private LaunchPlanSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanSpec() { + role_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder subBuilder = null; + if (entityMetadata_ != null) { + subBuilder = entityMetadata_.toBuilder(); + } + entityMetadata_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityMetadata_); + entityMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (defaultInputs_ != null) { + subBuilder = defaultInputs_.toBuilder(); + } + defaultInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultInputs_); + defaultInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fixedInputs_ != null) { + subBuilder = fixedInputs_.toBuilder(); + } + fixedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fixedInputs_); + fixedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + role_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder subBuilder = null; + if (auth_ != null) { + subBuilder = auth_.toBuilder(); + } + auth_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.Auth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(auth_); + auth_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + flyteidl.admin.Common.AuthRole.Builder subBuilder = null; + if (authRole_ != null) { + subBuilder = authRole_.toBuilder(); + } + authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authRole_); + authRole_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + flyteidl.core.Security.SecurityContext.Builder subBuilder = null; + if (securityContext_ != null) { + subBuilder = securityContext_.toBuilder(); + } + securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityContext_); + securityContext_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.admin.Common.RawOutputDataConfig.Builder subBuilder = null; + if (rawOutputDataConfig_ != null) { + subBuilder = rawOutputDataConfig_.toBuilder(); + } + rawOutputDataConfig_ = input.readMessage(flyteidl.admin.Common.RawOutputDataConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rawOutputDataConfig_); + rawOutputDataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 144: { + + maxParallelism_ = input.readInt32(); + break; + } + case 154: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (interruptible_ != null) { + subBuilder = interruptible_.toBuilder(); + } + interruptible_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interruptible_); + interruptible_ = subBuilder.buildPartial(); + } + + break; + } + case 160: { + + overwriteCache_ = input.readBool(); + break; + } + case 170: { + flyteidl.admin.Common.Envs.Builder subBuilder = null; + if (envs_ != null) { + subBuilder = envs_.toBuilder(); + } + envs_ = input.readMessage(flyteidl.admin.Common.Envs.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(envs_); + envs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + public static final int ENTITY_METADATA_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadata_ != null; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + return getEntityMetadata(); + } + + public static final int DEFAULT_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.ParameterMap defaultInputs_; + /** + *
+     * Input values to be passed for the execution.
+     * These can be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputs_ != null; + } + /** + *
+     * Input values to be passed for the execution.
+     * These can be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + /** + *
+     * Input values to be passed for the execution.
+     * These can be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + return getDefaultInputs(); + } + + public static final int FIXED_INPUTS_FIELD_NUMBER = 4; + private flyteidl.core.Literals.LiteralMap fixedInputs_; + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan.
+     * These can not be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputs_ != null; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan.
+     * These can not be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan.
+     * These can not be overriden when an execution is created with this launch plan.
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + return getFixedInputs(); + } + + public static final int ROLE_FIELD_NUMBER = 5; + private volatile java.lang.Object role_; + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int AUTH_FIELD_NUMBER = 8; + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuth() { + return auth_ != null; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + return getAuth(); + } + + public static final int AUTH_ROLE_FIELD_NUMBER = 9; + private flyteidl.admin.Common.AuthRole authRole_; + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuthRole() { + return authRole_ != null; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + return getAuthRole(); + } + + public static final int SECURITY_CONTEXT_FIELD_NUMBER = 10; + private flyteidl.core.Security.SecurityContext securityContext_; + /** + *
+     * Indicates security context for permissions triggered with this launch plan
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public boolean hasSecurityContext() { + return securityContext_ != null; + } + /** + *
+     * Indicates security context for permissions triggered with this launch plan
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + /** + *
+     * Indicates security context for permissions triggered with this launch plan
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + return getSecurityContext(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 16; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of the execution.
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + public static final int RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER = 17; + private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public boolean hasRawOutputDataConfig() { + return rawOutputDataConfig_ != null; + } + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { + return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { + return getRawOutputDataConfig(); + } + + public static final int MAX_PARALLELISM_FIELD_NUMBER = 18; + private int maxParallelism_; + /** + *
+     * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
+     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+     * and parallelism/concurrency of MapTasks is independent from this.
+     * 
+ * + * int32 max_parallelism = 18; + */ + public int getMaxParallelism() { + return maxParallelism_; + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 19; + private com.google.protobuf.BoolValue interruptible_; + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public boolean hasInterruptible() { + return interruptible_ != null; + } + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public com.google.protobuf.BoolValue getInterruptible() { + return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { + return getInterruptible(); + } + + public static final int OVERWRITE_CACHE_FIELD_NUMBER = 20; + private boolean overwriteCache_; + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 20; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + + public static final int ENVS_FIELD_NUMBER = 21; + private flyteidl.admin.Common.Envs envs_; + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public boolean hasEnvs() { + return envs_ != null; + } + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public flyteidl.admin.Common.Envs getEnvs() { + return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { + return getEnvs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflowId_ != null) { + output.writeMessage(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + output.writeMessage(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + output.writeMessage(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + output.writeMessage(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, role_); + } + if (labels_ != null) { + output.writeMessage(6, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(7, getAnnotations()); + } + if (auth_ != null) { + output.writeMessage(8, getAuth()); + } + if (authRole_ != null) { + output.writeMessage(9, getAuthRole()); + } + if (securityContext_ != null) { + output.writeMessage(10, getSecurityContext()); + } + if (qualityOfService_ != null) { + output.writeMessage(16, getQualityOfService()); + } + if (rawOutputDataConfig_ != null) { + output.writeMessage(17, getRawOutputDataConfig()); + } + if (maxParallelism_ != 0) { + output.writeInt32(18, maxParallelism_); + } + if (interruptible_ != null) { + output.writeMessage(19, getInterruptible()); + } + if (overwriteCache_ != false) { + output.writeBool(20, overwriteCache_); + } + if (envs_ != null) { + output.writeMessage(21, getEnvs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, role_); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAnnotations()); + } + if (auth_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAuth()); + } + if (authRole_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getAuthRole()); + } + if (securityContext_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getSecurityContext()); + } + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getQualityOfService()); + } + if (rawOutputDataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getRawOutputDataConfig()); + } + if (maxParallelism_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, maxParallelism_); + } + if (interruptible_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getInterruptible()); + } + if (overwriteCache_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, overwriteCache_); + } + if (envs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getEnvs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) obj; + + if (hasWorkflowId() != other.hasWorkflowId()) return false; + if (hasWorkflowId()) { + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + } + if (hasEntityMetadata() != other.hasEntityMetadata()) return false; + if (hasEntityMetadata()) { + if (!getEntityMetadata() + .equals(other.getEntityMetadata())) return false; + } + if (hasDefaultInputs() != other.hasDefaultInputs()) return false; + if (hasDefaultInputs()) { + if (!getDefaultInputs() + .equals(other.getDefaultInputs())) return false; + } + if (hasFixedInputs() != other.hasFixedInputs()) return false; + if (hasFixedInputs()) { + if (!getFixedInputs() + .equals(other.getFixedInputs())) return false; + } + if (!getRole() + .equals(other.getRole())) return false; + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (hasAuth() != other.hasAuth()) return false; + if (hasAuth()) { + if (!getAuth() + .equals(other.getAuth())) return false; + } + if (hasAuthRole() != other.hasAuthRole()) return false; + if (hasAuthRole()) { + if (!getAuthRole() + .equals(other.getAuthRole())) return false; + } + if (hasSecurityContext() != other.hasSecurityContext()) return false; + if (hasSecurityContext()) { + if (!getSecurityContext() + .equals(other.getSecurityContext())) return false; + } + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + } + if (hasRawOutputDataConfig() != other.hasRawOutputDataConfig()) return false; + if (hasRawOutputDataConfig()) { + if (!getRawOutputDataConfig() + .equals(other.getRawOutputDataConfig())) return false; + } + if (getMaxParallelism() + != other.getMaxParallelism()) return false; + if (hasInterruptible() != other.hasInterruptible()) return false; + if (hasInterruptible()) { + if (!getInterruptible() + .equals(other.getInterruptible())) return false; + } + if (getOverwriteCache() + != other.getOverwriteCache()) return false; + if (hasEnvs() != other.hasEnvs()) return false; + if (hasEnvs()) { + if (!getEnvs() + .equals(other.getEnvs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + if (hasEntityMetadata()) { + hash = (37 * hash) + ENTITY_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEntityMetadata().hashCode(); + } + if (hasDefaultInputs()) { + hash = (37 * hash) + DEFAULT_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultInputs().hashCode(); + } + if (hasFixedInputs()) { + hash = (37 * hash) + FIXED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFixedInputs().hashCode(); + } + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasAuth()) { + hash = (37 * hash) + AUTH_FIELD_NUMBER; + hash = (53 * hash) + getAuth().hashCode(); + } + if (hasAuthRole()) { + hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAuthRole().hashCode(); + } + if (hasSecurityContext()) { + hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSecurityContext().hashCode(); + } + if (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + if (hasRawOutputDataConfig()) { + hash = (37 * hash) + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRawOutputDataConfig().hashCode(); + } + hash = (37 * hash) + MAX_PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + getMaxParallelism(); + if (hasInterruptible()) { + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + getInterruptible().hashCode(); + } + hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOverwriteCache()); + if (hasEnvs()) { + hash = (37 * hash) + ENVS_FIELD_NUMBER; + hash = (53 * hash) + getEnvs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * User-provided launch plan definition and configuration values.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanSpec) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + role_ = ""; + + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (authBuilder_ == null) { + auth_ = null; + } else { + auth_ = null; + authBuilder_ = null; + } + if (authRoleBuilder_ == null) { + authRole_ = null; + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + if (securityContextBuilder_ == null) { + securityContext_ = null; + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = null; + } else { + rawOutputDataConfig_ = null; + rawOutputDataConfigBuilder_ = null; + } + maxParallelism_ = 0; + + if (interruptibleBuilder_ == null) { + interruptible_ = null; + } else { + interruptible_ = null; + interruptibleBuilder_ = null; + } + overwriteCache_ = false; + + if (envsBuilder_ == null) { + envs_ = null; + } else { + envs_ = null; + envsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(this); + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + if (entityMetadataBuilder_ == null) { + result.entityMetadata_ = entityMetadata_; + } else { + result.entityMetadata_ = entityMetadataBuilder_.build(); + } + if (defaultInputsBuilder_ == null) { + result.defaultInputs_ = defaultInputs_; + } else { + result.defaultInputs_ = defaultInputsBuilder_.build(); + } + if (fixedInputsBuilder_ == null) { + result.fixedInputs_ = fixedInputs_; + } else { + result.fixedInputs_ = fixedInputsBuilder_.build(); + } + result.role_ = role_; + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (authBuilder_ == null) { + result.auth_ = auth_; + } else { + result.auth_ = authBuilder_.build(); + } + if (authRoleBuilder_ == null) { + result.authRole_ = authRole_; + } else { + result.authRole_ = authRoleBuilder_.build(); + } + if (securityContextBuilder_ == null) { + result.securityContext_ = securityContext_; + } else { + result.securityContext_ = securityContextBuilder_.build(); + } + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.build(); + } + if (rawOutputDataConfigBuilder_ == null) { + result.rawOutputDataConfig_ = rawOutputDataConfig_; + } else { + result.rawOutputDataConfig_ = rawOutputDataConfigBuilder_.build(); + } + result.maxParallelism_ = maxParallelism_; + if (interruptibleBuilder_ == null) { + result.interruptible_ = interruptible_; + } else { + result.interruptible_ = interruptibleBuilder_.build(); + } + result.overwriteCache_ = overwriteCache_; + if (envsBuilder_ == null) { + result.envs_ = envs_; + } else { + result.envs_ = envsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance()) return this; + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + if (other.hasEntityMetadata()) { + mergeEntityMetadata(other.getEntityMetadata()); + } + if (other.hasDefaultInputs()) { + mergeDefaultInputs(other.getDefaultInputs()); + } + if (other.hasFixedInputs()) { + mergeFixedInputs(other.getFixedInputs()); + } + if (!other.getRole().isEmpty()) { + role_ = other.role_; + onChanged(); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasAuth()) { + mergeAuth(other.getAuth()); + } + if (other.hasAuthRole()) { + mergeAuthRole(other.getAuthRole()); + } + if (other.hasSecurityContext()) { + mergeSecurityContext(other.getSecurityContext()); + } + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + if (other.hasRawOutputDataConfig()) { + mergeRawOutputDataConfig(other.getRawOutputDataConfig()); + } + if (other.getMaxParallelism() != 0) { + setMaxParallelism(other.getMaxParallelism()); + } + if (other.hasInterruptible()) { + mergeInterruptible(other.getInterruptible()); + } + if (other.getOverwriteCache() != false) { + setOverwriteCache(other.getOverwriteCache()); + } + if (other.hasEnvs()) { + mergeEnvs(other.getEnvs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> entityMetadataBuilder_; + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadataBuilder_ != null || entityMetadata_ != null; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + if (entityMetadataBuilder_ == null) { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } else { + return entityMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityMetadata_ = value; + onChanged(); + } else { + entityMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder builderForValue) { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = builderForValue.build(); + onChanged(); + } else { + entityMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder mergeEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (entityMetadata_ != null) { + entityMetadata_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder(entityMetadata_).mergeFrom(value).buildPartial(); + } else { + entityMetadata_ = value; + } + onChanged(); + } else { + entityMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder clearEntityMetadata() { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + onChanged(); + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder getEntityMetadataBuilder() { + + onChanged(); + return getEntityMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + if (entityMetadataBuilder_ != null) { + return entityMetadataBuilder_.getMessageOrBuilder(); + } else { + return entityMetadata_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> + getEntityMetadataFieldBuilder() { + if (entityMetadataBuilder_ == null) { + entityMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder>( + getEntityMetadata(), + getParentForChildren(), + isClean()); + entityMetadata_ = null; + } + return entityMetadataBuilder_; + } + + private flyteidl.core.Interface.ParameterMap defaultInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> defaultInputsBuilder_; + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputsBuilder_ != null || defaultInputs_ != null; + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + if (defaultInputsBuilder_ == null) { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } else { + return defaultInputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultInputs_ = value; + onChanged(); + } else { + defaultInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = builderForValue.build(); + onChanged(); + } else { + defaultInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder mergeDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (defaultInputs_ != null) { + defaultInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(defaultInputs_).mergeFrom(value).buildPartial(); + } else { + defaultInputs_ = value; + } + onChanged(); + } else { + defaultInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder clearDefaultInputs() { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + onChanged(); + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap.Builder getDefaultInputsBuilder() { + + onChanged(); + return getDefaultInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + if (defaultInputsBuilder_ != null) { + return defaultInputsBuilder_.getMessageOrBuilder(); + } else { + return defaultInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + } + /** + *
+       * Input values to be passed for the execution.
+       * These can be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getDefaultInputsFieldBuilder() { + if (defaultInputsBuilder_ == null) { + defaultInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getDefaultInputs(), + getParentForChildren(), + isClean()); + defaultInputs_ = null; + } + return defaultInputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fixedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fixedInputsBuilder_; + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputsBuilder_ != null || fixedInputs_ != null; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + if (fixedInputsBuilder_ == null) { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } else { + return fixedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fixedInputs_ = value; + onChanged(); + } else { + fixedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = builderForValue.build(); + onChanged(); + } else { + fixedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder mergeFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (fixedInputs_ != null) { + fixedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fixedInputs_).mergeFrom(value).buildPartial(); + } else { + fixedInputs_ = value; + } + onChanged(); + } else { + fixedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder clearFixedInputs() { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + onChanged(); + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFixedInputsBuilder() { + + onChanged(); + return getFixedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + if (fixedInputsBuilder_ != null) { + return fixedInputsBuilder_.getMessageOrBuilder(); + } else { + return fixedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan.
+       * These can not be overriden when an execution is created with this launch plan.
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFixedInputsFieldBuilder() { + if (fixedInputsBuilder_ == null) { + fixedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFixedInputs(), + getParentForChildren(), + isClean()); + fixedInputs_ = null; + } + return fixedInputsBuilder_; + } + + private java.lang.Object role_ = ""; + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> authBuilder_; + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuth() { + return authBuilder_ != null || auth_ != null; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + if (authBuilder_ == null) { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } else { + return authBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + auth_ = value; + onChanged(); + } else { + authBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuth( + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder builderForValue) { + if (authBuilder_ == null) { + auth_ = builderForValue.build(); + onChanged(); + } else { + authBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (auth_ != null) { + auth_ = + flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder(auth_).mergeFrom(value).buildPartial(); + } else { + auth_ = value; + } + onChanged(); + } else { + authBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAuth() { + if (authBuilder_ == null) { + auth_ = null; + onChanged(); + } else { + auth_ = null; + authBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth.Builder getAuthBuilder() { + + onChanged(); + return getAuthFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + if (authBuilder_ != null) { + return authBuilder_.getMessageOrBuilder(); + } else { + return auth_ == null ? + flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> + getAuthFieldBuilder() { + if (authBuilder_ == null) { + authBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder>( + getAuth(), + getParentForChildren(), + isClean()); + auth_ = null; + } + return authBuilder_; + } + + private flyteidl.admin.Common.AuthRole authRole_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasAuthRole() { + return authRoleBuilder_ != null || authRole_ != null; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { + if (authRoleBuilder_ == null) { + return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } else { + return authRoleBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authRole_ = value; + onChanged(); + } else { + authRoleBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setAuthRole( + flyteidl.admin.Common.AuthRole.Builder builderForValue) { + if (authRoleBuilder_ == null) { + authRole_ = builderForValue.build(); + onChanged(); + } else { + authRoleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { + if (authRoleBuilder_ == null) { + if (authRole_ != null) { + authRole_ = + flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); + } else { + authRole_ = value; + } + onChanged(); + } else { + authRoleBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearAuthRole() { + if (authRoleBuilder_ == null) { + authRole_ = null; + onChanged(); + } else { + authRole_ = null; + authRoleBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { + + onChanged(); + return getAuthRoleFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { + if (authRoleBuilder_ != null) { + return authRoleBuilder_.getMessageOrBuilder(); + } else { + return authRole_ == null ? + flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; + } + } + /** + * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> + getAuthRoleFieldBuilder() { + if (authRoleBuilder_ == null) { + authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( + getAuthRole(), + getParentForChildren(), + isClean()); + authRole_ = null; + } + return authRoleBuilder_; + } + + private flyteidl.core.Security.SecurityContext securityContext_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public boolean hasSecurityContext() { + return securityContextBuilder_ != null || securityContext_ != null; + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + if (securityContextBuilder_ == null) { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } else { + return securityContextBuilder_.getMessage(); + } + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityContext_ = value; + onChanged(); + } else { + securityContextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder setSecurityContext( + flyteidl.core.Security.SecurityContext.Builder builderForValue) { + if (securityContextBuilder_ == null) { + securityContext_ = builderForValue.build(); + onChanged(); + } else { + securityContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (securityContext_ != null) { + securityContext_ = + flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); + } else { + securityContext_ = value; + } + onChanged(); + } else { + securityContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public Builder clearSecurityContext() { + if (securityContextBuilder_ == null) { + securityContext_ = null; + onChanged(); + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { + + onChanged(); + return getSecurityContextFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + if (securityContextBuilder_ != null) { + return securityContextBuilder_.getMessageOrBuilder(); + } else { + return securityContext_ == null ? + flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + } + /** + *
+       * Indicates security context for permissions triggered with this launch plan
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> + getSecurityContextFieldBuilder() { + if (securityContextBuilder_ == null) { + securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( + getSecurityContext(), + getParentForChildren(), + isClean()); + securityContext_ = null; + } + return securityContextBuilder_; + } + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of the execution.
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + + private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> rawOutputDataConfigBuilder_; + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public boolean hasRawOutputDataConfig() { + return rawOutputDataConfigBuilder_ != null || rawOutputDataConfig_ != null; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { + if (rawOutputDataConfigBuilder_ == null) { + return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } else { + return rawOutputDataConfigBuilder_.getMessage(); + } + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public Builder setRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { + if (rawOutputDataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rawOutputDataConfig_ = value; + onChanged(); + } else { + rawOutputDataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public Builder setRawOutputDataConfig( + flyteidl.admin.Common.RawOutputDataConfig.Builder builderForValue) { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = builderForValue.build(); + onChanged(); + } else { + rawOutputDataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public Builder mergeRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { + if (rawOutputDataConfigBuilder_ == null) { + if (rawOutputDataConfig_ != null) { + rawOutputDataConfig_ = + flyteidl.admin.Common.RawOutputDataConfig.newBuilder(rawOutputDataConfig_).mergeFrom(value).buildPartial(); + } else { + rawOutputDataConfig_ = value; + } + onChanged(); + } else { + rawOutputDataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public Builder clearRawOutputDataConfig() { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = null; + onChanged(); + } else { + rawOutputDataConfig_ = null; + rawOutputDataConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public flyteidl.admin.Common.RawOutputDataConfig.Builder getRawOutputDataConfigBuilder() { + + onChanged(); + return getRawOutputDataConfigFieldBuilder().getBuilder(); + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { + if (rawOutputDataConfigBuilder_ != null) { + return rawOutputDataConfigBuilder_.getMessageOrBuilder(); + } else { + return rawOutputDataConfig_ == null ? + flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> + getRawOutputDataConfigFieldBuilder() { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder>( + getRawOutputDataConfig(), + getParentForChildren(), + isClean()); + rawOutputDataConfig_ = null; + } + return rawOutputDataConfigBuilder_; + } + + private int maxParallelism_ ; + /** + *
+       * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
+       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+       * and parallelism/concurrency of MapTasks is independent from this.
+       * 
+ * + * int32 max_parallelism = 18; + */ + public int getMaxParallelism() { + return maxParallelism_; + } + /** + *
+       * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
+       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+       * and parallelism/concurrency of MapTasks is independent from this.
+       * 
+ * + * int32 max_parallelism = 18; + */ + public Builder setMaxParallelism(int value) { + + maxParallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
+       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
+       * and parallelism/concurrency of MapTasks is independent from this.
+       * 
+ * + * int32 max_parallelism = 18; + */ + public Builder clearMaxParallelism() { + + maxParallelism_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue interruptible_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> interruptibleBuilder_; + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public boolean hasInterruptible() { + return interruptibleBuilder_ != null || interruptible_ != null; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public com.google.protobuf.BoolValue getInterruptible() { + if (interruptibleBuilder_ == null) { + return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } else { + return interruptibleBuilder_.getMessage(); + } + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public Builder setInterruptible(com.google.protobuf.BoolValue value) { + if (interruptibleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interruptible_ = value; + onChanged(); + } else { + interruptibleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public Builder setInterruptible( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (interruptibleBuilder_ == null) { + interruptible_ = builderForValue.build(); + onChanged(); + } else { + interruptibleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public Builder mergeInterruptible(com.google.protobuf.BoolValue value) { + if (interruptibleBuilder_ == null) { + if (interruptible_ != null) { + interruptible_ = + com.google.protobuf.BoolValue.newBuilder(interruptible_).mergeFrom(value).buildPartial(); + } else { + interruptible_ = value; + } + onChanged(); + } else { + interruptibleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public Builder clearInterruptible() { + if (interruptibleBuilder_ == null) { + interruptible_ = null; + onChanged(); + } else { + interruptible_ = null; + interruptibleBuilder_ = null; + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public com.google.protobuf.BoolValue.Builder getInterruptibleBuilder() { + + onChanged(); + return getInterruptibleFieldBuilder().getBuilder(); + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { + if (interruptibleBuilder_ != null) { + return interruptibleBuilder_.getMessageOrBuilder(); + } else { + return interruptible_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getInterruptibleFieldBuilder() { + if (interruptibleBuilder_ == null) { + interruptibleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getInterruptible(), + getParentForChildren(), + isClean()); + interruptible_ = null; + } + return interruptibleBuilder_; + } + + private boolean overwriteCache_ ; + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 20; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 20; + */ + public Builder setOverwriteCache(boolean value) { + + overwriteCache_ = value; + onChanged(); + return this; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 20; + */ + public Builder clearOverwriteCache() { + + overwriteCache_ = false; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Envs envs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> envsBuilder_; + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public boolean hasEnvs() { + return envsBuilder_ != null || envs_ != null; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public flyteidl.admin.Common.Envs getEnvs() { + if (envsBuilder_ == null) { + return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } else { + return envsBuilder_.getMessage(); + } + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public Builder setEnvs(flyteidl.admin.Common.Envs value) { + if (envsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + envs_ = value; + onChanged(); + } else { + envsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public Builder setEnvs( + flyteidl.admin.Common.Envs.Builder builderForValue) { + if (envsBuilder_ == null) { + envs_ = builderForValue.build(); + onChanged(); + } else { + envsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public Builder mergeEnvs(flyteidl.admin.Common.Envs value) { + if (envsBuilder_ == null) { + if (envs_ != null) { + envs_ = + flyteidl.admin.Common.Envs.newBuilder(envs_).mergeFrom(value).buildPartial(); + } else { + envs_ = value; + } + onChanged(); + } else { + envsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public Builder clearEnvs() { + if (envsBuilder_ == null) { + envs_ = null; + onChanged(); + } else { + envs_ = null; + envsBuilder_ = null; + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public flyteidl.admin.Common.Envs.Builder getEnvsBuilder() { + + onChanged(); + return getEnvsFieldBuilder().getBuilder(); + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { + if (envsBuilder_ != null) { + return envsBuilder_.getMessageOrBuilder(); + } else { + return envs_ == null ? + flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> + getEnvsFieldBuilder() { + if (envsBuilder_ == null) { + envsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder>( + getEnvs(), + getParentForChildren(), + isClean()); + envs_ = null; + } + return envsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicate the Launch plan state. 
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + int getStateValue(); + /** + *
+     * Indicate the Launch plan state. 
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + + /** + *
+     * Indicates the set of inputs expected when creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + boolean hasExpectedInputs(); + /** + *
+     * Indicates the set of inputs expected when creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMap getExpectedInputs(); + /** + *
+     * Indicates the set of inputs expected when creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder(); + + /** + *
+     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + boolean hasExpectedOutputs(); + /** + *
+     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMap getExpectedOutputs(); + /** + *
+     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder(); + + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + } + /** + *
+   * Values computed by the flyte platform after launch plan registration.
+   * These include expected_inputs required to be present in a CreateExecutionRequest
+   * to launch the reference workflow as well timestamp values associated with the launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class LaunchPlanClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanClosure) + LaunchPlanClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanClosure.newBuilder() to construct. + private LaunchPlanClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanClosure() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (expectedInputs_ != null) { + subBuilder = expectedInputs_.toBuilder(); + } + expectedInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedInputs_); + expectedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (expectedOutputs_ != null) { + subBuilder = expectedOutputs_.toBuilder(); + } + expectedOutputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedOutputs_); + expectedOutputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * Indicate the Launch plan state. 
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Indicate the Launch plan state. 
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + public static final int EXPECTED_INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.ParameterMap expectedInputs_; + /** + *
+     * Indicates the set of inputs expected when creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputs_ != null; + } + /** + *
+     * Indicates the set of inputs expected when creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + /** + *
+     * Indicates the set of inputs expected when creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + return getExpectedInputs(); + } + + public static final int EXPECTED_OUTPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.VariableMap expectedOutputs_; + /** + *
+     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputs_ != null; + } + /** + *
+     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + /** + *
+     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + return getExpectedOutputs(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(1, state_); + } + if (expectedInputs_ != null) { + output.writeMessage(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + output.writeMessage(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + output.writeMessage(4, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(5, getUpdatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (expectedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdatedAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) obj; + + if (state_ != other.state_) return false; + if (hasExpectedInputs() != other.hasExpectedInputs()) return false; + if (hasExpectedInputs()) { + if (!getExpectedInputs() + .equals(other.getExpectedInputs())) return false; + } + if (hasExpectedOutputs() != other.hasExpectedOutputs()) return false; + if (hasExpectedOutputs()) { + if (!getExpectedOutputs() + .equals(other.getExpectedOutputs())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasUpdatedAt() != other.hasUpdatedAt()) return false; + if (hasUpdatedAt()) { + if (!getUpdatedAt() + .equals(other.getUpdatedAt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasExpectedInputs()) { + hash = (37 * hash) + EXPECTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedInputs().hashCode(); + } + if (hasExpectedOutputs()) { + hash = (37 * hash) + EXPECTED_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedOutputs().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * These include expected_inputs required to be present in a CreateExecutionRequest
+     * to launch the reference workflow as well timestamp values associated with the launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanClosure) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(this); + result.state_ = state_; + if (expectedInputsBuilder_ == null) { + result.expectedInputs_ = expectedInputs_; + } else { + result.expectedInputs_ = expectedInputsBuilder_.build(); + } + if (expectedOutputsBuilder_ == null) { + result.expectedOutputs_ = expectedOutputs_; + } else { + result.expectedOutputs_ = expectedOutputsBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasExpectedInputs()) { + mergeExpectedInputs(other.getExpectedInputs()); + } + if (other.hasExpectedOutputs()) { + mergeExpectedOutputs(other.getExpectedOutputs()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * Indicate the Launch plan state. 
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Indicate the Launch plan state. 
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan state. 
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Indicate the Launch plan state. 
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan state. 
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Interface.ParameterMap expectedInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> expectedInputsBuilder_; + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputsBuilder_ != null || expectedInputs_ != null; + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + if (expectedInputsBuilder_ == null) { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } else { + return expectedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedInputs_ = value; + onChanged(); + } else { + expectedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = builderForValue.build(); + onChanged(); + } else { + expectedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder mergeExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (expectedInputs_ != null) { + expectedInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(expectedInputs_).mergeFrom(value).buildPartial(); + } else { + expectedInputs_ = value; + } + onChanged(); + } else { + expectedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder clearExpectedInputs() { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + onChanged(); + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap.Builder getExpectedInputsBuilder() { + + onChanged(); + return getExpectedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + if (expectedInputsBuilder_ != null) { + return expectedInputsBuilder_.getMessageOrBuilder(); + } else { + return expectedInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + } + /** + *
+       * Indicates the set of inputs expected when creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getExpectedInputsFieldBuilder() { + if (expectedInputsBuilder_ == null) { + expectedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getExpectedInputs(), + getParentForChildren(), + isClean()); + expectedInputs_ = null; + } + return expectedInputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap expectedOutputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> expectedOutputsBuilder_; + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputsBuilder_ != null || expectedOutputs_ != null; + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } else { + return expectedOutputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedOutputs_ = value; + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = builderForValue.build(); + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder mergeExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (expectedOutputs_ != null) { + expectedOutputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(expectedOutputs_).mergeFrom(value).buildPartial(); + } else { + expectedOutputs_ = value; + } + onChanged(); + } else { + expectedOutputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder clearExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + onChanged(); + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap.Builder getExpectedOutputsBuilder() { + + onChanged(); + return getExpectedOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + if (expectedOutputsBuilder_ != null) { + return expectedOutputsBuilder_.getMessageOrBuilder(); + } else { + return expectedOutputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + } + /** + *
+       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getExpectedOutputsFieldBuilder() { + if (expectedOutputsBuilder_ == null) { + expectedOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getExpectedOutputs(), + getParentForChildren(), + isClean()); + expectedOutputs_ = null; + } + return expectedOutputsBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + boolean hasSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.Schedule getSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + int getNotificationsCount(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + *
+   * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+   * the reference workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class LaunchPlanMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanMetadata) + LaunchPlanMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanMetadata.newBuilder() to construct. + private LaunchPlanMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanMetadata() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.ScheduleOuterClass.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = input.readMessage(flyteidl.admin.ScheduleOuterClass.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + private int bitField0_; + public static final int SCHEDULE_FIELD_NUMBER = 1; + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return schedule_ != null; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + return getSchedule(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 2; + private java.util.List notifications_; + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (schedule_ != null) { + output.writeMessage(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(2, notifications_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (schedule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, notifications_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) obj; + + if (hasSchedule() != other.hasSchedule()) return false; + if (hasSchedule()) { + if (!getSchedule() + .equals(other.getSchedule())) return false; + } + if (!getNotificationsList() + .equals(other.getNotificationsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchedule()) { + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+     * the reference workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanMetadata) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (scheduleBuilder_ == null) { + schedule_ = null; + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (scheduleBuilder_ == null) { + result.schedule_ = schedule_; + } else { + result.schedule_ = scheduleBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance()) return this; + if (other.hasSchedule()) { + mergeSchedule(other.getSchedule()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> scheduleBuilder_; + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return scheduleBuilder_ != null || schedule_ != null; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + if (scheduleBuilder_ == null) { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } else { + return scheduleBuilder_.getMessage(); + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + onChanged(); + } else { + scheduleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule( + flyteidl.admin.ScheduleOuterClass.Schedule.Builder builderForValue) { + if (scheduleBuilder_ == null) { + schedule_ = builderForValue.build(); + onChanged(); + } else { + scheduleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder mergeSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (schedule_ != null) { + schedule_ = + flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + } else { + schedule_ = value; + } + onChanged(); + } else { + scheduleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder clearSchedule() { + if (scheduleBuilder_ == null) { + schedule_ = null; + onChanged(); + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule.Builder getScheduleBuilder() { + + onChanged(); + return getScheduleFieldBuilder().getBuilder(); + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + if (scheduleBuilder_ != null) { + return scheduleBuilder_.getMessageOrBuilder(); + } else { + return schedule_ == null ? + flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> + getScheduleFieldBuilder() { + if (scheduleBuilder_ == null) { + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); + schedule_ = null; + } + return scheduleBuilder_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of launch plan for which to change state.
+     * +required.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * +required.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * +required.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Desired state to apply to the launch plan.
+     * +required.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + int getStateValue(); + /** + *
+     * Desired state to apply to the launch plan.
+     * +required.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + } + /** + *
+   * Request to set the referenced launch plan state to the configured value.
+   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class LaunchPlanUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateRequest) + LaunchPlanUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateRequest.newBuilder() to construct. + private LaunchPlanUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateRequest() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Identifier of launch plan for which to change state.
+     * +required.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * +required.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * +required.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * Desired state to apply to the launch plan.
+     * +required.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Desired state to apply to the launch plan.
+     * +required.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to set the referenced launch plan state to the configured value.
+     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * +required.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int state_ = 0; + /** + *
+       * Desired state to apply to the launch plan.
+       * +required.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * +required.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * +required.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * +required.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * +required.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class LaunchPlanUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateResponse) + LaunchPlanUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateResponse.newBuilder() to construct. + private LaunchPlanUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LaunchPlanUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActiveLaunchPlanRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * +required.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * +required.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * +required.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
+   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} + */ + public static final class ActiveLaunchPlanRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanRequest) + ActiveLaunchPlanRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveLaunchPlanRequest.newBuilder() to construct. + private ActiveLaunchPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ActiveLaunchPlanRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActiveLaunchPlanRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * +required.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * +required.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * +required.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
+     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanRequest) + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest build() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * +required.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ActiveLaunchPlanRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveLaunchPlanRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActiveLaunchPlanRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ActiveLaunchPlanListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project that contains the identifiers.
+     * +required.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * +required.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required.
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to list active launch plans within a project/domain.
+   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} + */ + public static final class ActiveLaunchPlanListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanListRequest) + ActiveLaunchPlanListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveLaunchPlanListRequest.newBuilder() to construct. + private ActiveLaunchPlanListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ActiveLaunchPlanListRequest() { + project_ = ""; + domain_ = ""; + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ActiveLaunchPlanListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * +required.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * +required.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * +required.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required.
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to list active launch plans within a project/domain.
+     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanListRequest) + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest build() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * +required.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * +required.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * +required.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required.
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ActiveLaunchPlanListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveLaunchPlanListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ActiveLaunchPlanListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlan_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Auth_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Auth_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n flyteidl/admin/launch_plan.proto\022\016flyt" + + "eidl.admin\032\035flyteidl/core/execution.prot" + + "o\032\034flyteidl/core/literals.proto\032\036flyteid" + + "l/core/identifier.proto\032\035flyteidl/core/i" + + "nterface.proto\032\034flyteidl/core/security.p" + + "roto\032\035flyteidl/admin/schedule.proto\032\033fly" + + "teidl/admin/common.proto\032\037google/protobu" + + "f/timestamp.proto\032\036google/protobuf/wrapp" + + "ers.proto\"n\n\027LaunchPlanCreateRequest\022%\n\002" + + "id\030\001 \001(\0132\031.flyteidl.core.Identifier\022,\n\004s" + + "pec\030\002 \001(\0132\036.flyteidl.admin.LaunchPlanSpe" + + "c\"\032\n\030LaunchPlanCreateResponse\"\225\001\n\nLaunch" + + "Plan\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identif" + + "ier\022,\n\004spec\030\002 \001(\0132\036.flyteidl.admin.Launc" + + "hPlanSpec\0222\n\007closure\030\003 \001(\0132!.flyteidl.ad" + + "min.LaunchPlanClosure\"Q\n\016LaunchPlanList\022" + + "0\n\014launch_plans\030\001 \003(\0132\032.flyteidl.admin.L" + + "aunchPlan\022\r\n\005token\030\002 \001(\t\"J\n\004Auth\022\032\n\022assu" + + "mable_iam_role\030\001 \001(\t\022\"\n\032kubernetes_servi" + + "ce_account\030\002 \001(\t:\002\030\001\"\355\005\n\016LaunchPlanSpec\022" + + ".\n\013workflow_id\030\001 \001(\0132\031.flyteidl.core.Ide" + + "ntifier\022;\n\017entity_metadata\030\002 \001(\0132\".flyte" + + "idl.admin.LaunchPlanMetadata\0223\n\016default_" + + "inputs\030\003 \001(\0132\033.flyteidl.core.ParameterMa" + + "p\022/\n\014fixed_inputs\030\004 \001(\0132\031.flyteidl.core." + + "LiteralMap\022\020\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006" + + " \001(\0132\026.flyteidl.admin.Labels\0220\n\013annotati" + + "ons\030\007 \001(\0132\033.flyteidl.admin.Annotations\022&" + + "\n\004auth\030\010 \001(\0132\024.flyteidl.admin.AuthB\002\030\001\022/" + + "\n\tauth_role\030\t \001(\0132\030.flyteidl.admin.AuthR" + + "oleB\002\030\001\0228\n\020security_context\030\n \001(\0132\036.flyt" + + "eidl.core.SecurityContext\022;\n\022quality_of_" + + "service\030\020 \001(\0132\037.flyteidl.core.QualityOfS" + + "ervice\022C\n\026raw_output_data_config\030\021 \001(\0132#" + + ".flyteidl.admin.RawOutputDataConfig\022\027\n\017m" + + "ax_parallelism\030\022 \001(\005\0221\n\rinterruptible\030\023 " + + "\001(\0132\032.google.protobuf.BoolValue\022\027\n\017overw" + + "rite_cache\030\024 \001(\010\022\"\n\004envs\030\025 \001(\0132\024.flyteid" + + "l.admin.Envs\"\217\002\n\021LaunchPlanClosure\022.\n\005st" + + "ate\030\001 \001(\0162\037.flyteidl.admin.LaunchPlanSta" + + "te\0224\n\017expected_inputs\030\002 \001(\0132\033.flyteidl.c" + + "ore.ParameterMap\0224\n\020expected_outputs\030\003 \001" + + "(\0132\032.flyteidl.core.VariableMap\022.\n\ncreate" + + "d_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022." + + "\n\nupdated_at\030\005 \001(\0132\032.google.protobuf.Tim" + + "estamp\"u\n\022LaunchPlanMetadata\022*\n\010schedule" + + "\030\001 \001(\0132\030.flyteidl.admin.Schedule\0223\n\rnoti" + + "fications\030\002 \003(\0132\034.flyteidl.admin.Notific" + + "ation\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001" + + " \001(\0132\031.flyteidl.core.Identifier\022.\n\005state" + + "\030\002 \001(\0162\037.flyteidl.admin.LaunchPlanState\"" + + "\032\n\030LaunchPlanUpdateResponse\"L\n\027ActiveLau" + + "nchPlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.ad" + + "min.NamedEntityIdentifier\"\203\001\n\033ActiveLaun" + + "chPlanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006do" + + "main\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t" + + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*" + + "+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTI" + + "VE\020\001B7Z5github.com/flyteorg/flyteidl/gen" + + "/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Security.getDescriptor(), + flyteidl.admin.ScheduleOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_LaunchPlan_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlan_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_LaunchPlanList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanList_descriptor, + new java.lang.String[] { "LaunchPlans", "Token", }); + internal_static_flyteidl_admin_Auth_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Auth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Auth_descriptor, + new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", }); + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor, + new java.lang.String[] { "WorkflowId", "EntityMetadata", "DefaultInputs", "FixedInputs", "Role", "Labels", "Annotations", "Auth", "AuthRole", "SecurityContext", "QualityOfService", "RawOutputDataConfig", "MaxParallelism", "Interruptible", "OverwriteCache", "Envs", }); + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor, + new java.lang.String[] { "State", "ExpectedInputs", "ExpectedOutputs", "CreatedAt", "UpdatedAt", }); + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor, + new java.lang.String[] { "Schedule", "Notifications", }); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor, + new java.lang.String[] { "Id", "State", }); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Security.getDescriptor(); + flyteidl.admin.ScheduleOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java new file mode 100644 index 0000000000..398761528a --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java @@ -0,0 +1,13251 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/matchable_resource.proto + +package flyteidl.admin; + +public final class MatchableResourceOuterClass { + private MatchableResourceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
+   * based on matching tags.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.MatchableResource} + */ + public enum MatchableResource + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Applies to customizable task resource requests and limits.
+     * 
+ * + * TASK_RESOURCE = 0; + */ + TASK_RESOURCE(0), + /** + *
+     * Applies to configuring templated kubernetes cluster resources.
+     * 
+ * + * CLUSTER_RESOURCE = 1; + */ + CLUSTER_RESOURCE(1), + /** + *
+     * Configures task and dynamic task execution queue assignment.
+     * 
+ * + * EXECUTION_QUEUE = 2; + */ + EXECUTION_QUEUE(2), + /** + *
+     * Configures the K8s cluster label to be used for execution to be run
+     * 
+ * + * EXECUTION_CLUSTER_LABEL = 3; + */ + EXECUTION_CLUSTER_LABEL(3), + /** + *
+     * Configures default quality of service when undefined in an execution spec.
+     * 
+ * + * QUALITY_OF_SERVICE_SPECIFICATION = 4; + */ + QUALITY_OF_SERVICE_SPECIFICATION(4), + /** + *
+     * Selects configurable plugin implementation behavior for a given task type.
+     * 
+ * + * PLUGIN_OVERRIDE = 5; + */ + PLUGIN_OVERRIDE(5), + /** + *
+     * Adds defaults for customizable workflow-execution specifications and overrides.
+     * 
+ * + * WORKFLOW_EXECUTION_CONFIG = 6; + */ + WORKFLOW_EXECUTION_CONFIG(6), + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * CLUSTER_ASSIGNMENT = 7; + */ + CLUSTER_ASSIGNMENT(7), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Applies to customizable task resource requests and limits.
+     * 
+ * + * TASK_RESOURCE = 0; + */ + public static final int TASK_RESOURCE_VALUE = 0; + /** + *
+     * Applies to configuring templated kubernetes cluster resources.
+     * 
+ * + * CLUSTER_RESOURCE = 1; + */ + public static final int CLUSTER_RESOURCE_VALUE = 1; + /** + *
+     * Configures task and dynamic task execution queue assignment.
+     * 
+ * + * EXECUTION_QUEUE = 2; + */ + public static final int EXECUTION_QUEUE_VALUE = 2; + /** + *
+     * Configures the K8s cluster label to be used for execution to be run
+     * 
+ * + * EXECUTION_CLUSTER_LABEL = 3; + */ + public static final int EXECUTION_CLUSTER_LABEL_VALUE = 3; + /** + *
+     * Configures default quality of service when undefined in an execution spec.
+     * 
+ * + * QUALITY_OF_SERVICE_SPECIFICATION = 4; + */ + public static final int QUALITY_OF_SERVICE_SPECIFICATION_VALUE = 4; + /** + *
+     * Selects configurable plugin implementation behavior for a given task type.
+     * 
+ * + * PLUGIN_OVERRIDE = 5; + */ + public static final int PLUGIN_OVERRIDE_VALUE = 5; + /** + *
+     * Adds defaults for customizable workflow-execution specifications and overrides.
+     * 
+ * + * WORKFLOW_EXECUTION_CONFIG = 6; + */ + public static final int WORKFLOW_EXECUTION_CONFIG_VALUE = 6; + /** + *
+     * Controls how to select an available cluster on which this execution should run.
+     * 
+ * + * CLUSTER_ASSIGNMENT = 7; + */ + public static final int CLUSTER_ASSIGNMENT_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchableResource valueOf(int value) { + return forNumber(value); + } + + public static MatchableResource forNumber(int value) { + switch (value) { + case 0: return TASK_RESOURCE; + case 1: return CLUSTER_RESOURCE; + case 2: return EXECUTION_QUEUE; + case 3: return EXECUTION_CLUSTER_LABEL; + case 4: return QUALITY_OF_SERVICE_SPECIFICATION; + case 5: return PLUGIN_OVERRIDE; + case 6: return WORKFLOW_EXECUTION_CONFIG; + case 7: return CLUSTER_ASSIGNMENT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MatchableResource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchableResource findValueByNumber(int number) { + return MatchableResource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final MatchableResource[] VALUES = values(); + + public static MatchableResource valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchableResource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.MatchableResource) + } + + public interface TaskResourceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * string cpu = 1; + */ + java.lang.String getCpu(); + /** + * string cpu = 1; + */ + com.google.protobuf.ByteString + getCpuBytes(); + + /** + * string gpu = 2; + */ + java.lang.String getGpu(); + /** + * string gpu = 2; + */ + com.google.protobuf.ByteString + getGpuBytes(); + + /** + * string memory = 3; + */ + java.lang.String getMemory(); + /** + * string memory = 3; + */ + com.google.protobuf.ByteString + getMemoryBytes(); + + /** + * string storage = 4; + */ + java.lang.String getStorage(); + /** + * string storage = 4; + */ + com.google.protobuf.ByteString + getStorageBytes(); + + /** + * string ephemeral_storage = 5; + */ + java.lang.String getEphemeralStorage(); + /** + * string ephemeral_storage = 5; + */ + com.google.protobuf.ByteString + getEphemeralStorageBytes(); + } + /** + *
+   * Defines a set of overridable task resource attributes set during task registration.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskResourceSpec} + */ + public static final class TaskResourceSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceSpec) + TaskResourceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskResourceSpec.newBuilder() to construct. + private TaskResourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskResourceSpec() { + cpu_ = ""; + gpu_ = ""; + memory_ = ""; + storage_ = ""; + ephemeralStorage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskResourceSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + cpu_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + gpu_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + memory_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + storage_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + ephemeralStorage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); + } + + public static final int CPU_FIELD_NUMBER = 1; + private volatile java.lang.Object cpu_; + /** + * string cpu = 1; + */ + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpu_ = s; + return s; + } + } + /** + * string cpu = 1; + */ + public com.google.protobuf.ByteString + getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_FIELD_NUMBER = 2; + private volatile java.lang.Object gpu_; + /** + * string gpu = 2; + */ + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpu_ = s; + return s; + } + } + /** + * string gpu = 2; + */ + public com.google.protobuf.ByteString + getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMORY_FIELD_NUMBER = 3; + private volatile java.lang.Object memory_; + /** + * string memory = 3; + */ + public java.lang.String getMemory() { + java.lang.Object ref = memory_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + memory_ = s; + return s; + } + } + /** + * string memory = 3; + */ + public com.google.protobuf.ByteString + getMemoryBytes() { + java.lang.Object ref = memory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_FIELD_NUMBER = 4; + private volatile java.lang.Object storage_; + /** + * string storage = 4; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } + } + /** + * string storage = 4; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPHEMERAL_STORAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object ephemeralStorage_; + /** + * string ephemeral_storage = 5; + */ + public java.lang.String getEphemeralStorage() { + java.lang.Object ref = ephemeralStorage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ephemeralStorage_ = s; + return s; + } + } + /** + * string ephemeral_storage = 5; + */ + public com.google.protobuf.ByteString + getEphemeralStorageBytes() { + java.lang.Object ref = ephemeralStorage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ephemeralStorage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCpuBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpu_); + } + if (!getGpuBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gpu_); + } + if (!getMemoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, memory_); + } + if (!getStorageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storage_); + } + if (!getEphemeralStorageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ephemeralStorage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCpuBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpu_); + } + if (!getGpuBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gpu_); + } + if (!getMemoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, memory_); + } + if (!getStorageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storage_); + } + if (!getEphemeralStorageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ephemeralStorage_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) obj; + + if (!getCpu() + .equals(other.getCpu())) return false; + if (!getGpu() + .equals(other.getGpu())) return false; + if (!getMemory() + .equals(other.getMemory())) return false; + if (!getStorage() + .equals(other.getStorage())) return false; + if (!getEphemeralStorage() + .equals(other.getEphemeralStorage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CPU_FIELD_NUMBER; + hash = (53 * hash) + getCpu().hashCode(); + hash = (37 * hash) + GPU_FIELD_NUMBER; + hash = (53 * hash) + getGpu().hashCode(); + hash = (37 * hash) + MEMORY_FIELD_NUMBER; + hash = (53 * hash) + getMemory().hashCode(); + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getStorage().hashCode(); + hash = (37 * hash) + EPHEMERAL_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getEphemeralStorage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a set of overridable task resource attributes set during task registration.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskResourceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceSpec) + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + cpu_ = ""; + + gpu_ = ""; + + memory_ = ""; + + storage_ = ""; + + ephemeralStorage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec build() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(this); + result.cpu_ = cpu_; + result.gpu_ = gpu_; + result.memory_ = memory_; + result.storage_ = storage_; + result.ephemeralStorage_ = ephemeralStorage_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance()) return this; + if (!other.getCpu().isEmpty()) { + cpu_ = other.cpu_; + onChanged(); + } + if (!other.getGpu().isEmpty()) { + gpu_ = other.gpu_; + onChanged(); + } + if (!other.getMemory().isEmpty()) { + memory_ = other.memory_; + onChanged(); + } + if (!other.getStorage().isEmpty()) { + storage_ = other.storage_; + onChanged(); + } + if (!other.getEphemeralStorage().isEmpty()) { + ephemeralStorage_ = other.ephemeralStorage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object cpu_ = ""; + /** + * string cpu = 1; + */ + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cpu = 1; + */ + public com.google.protobuf.ByteString + getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cpu = 1; + */ + public Builder setCpu( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cpu_ = value; + onChanged(); + return this; + } + /** + * string cpu = 1; + */ + public Builder clearCpu() { + + cpu_ = getDefaultInstance().getCpu(); + onChanged(); + return this; + } + /** + * string cpu = 1; + */ + public Builder setCpuBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cpu_ = value; + onChanged(); + return this; + } + + private java.lang.Object gpu_ = ""; + /** + * string gpu = 2; + */ + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string gpu = 2; + */ + public com.google.protobuf.ByteString + getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string gpu = 2; + */ + public Builder setGpu( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gpu_ = value; + onChanged(); + return this; + } + /** + * string gpu = 2; + */ + public Builder clearGpu() { + + gpu_ = getDefaultInstance().getGpu(); + onChanged(); + return this; + } + /** + * string gpu = 2; + */ + public Builder setGpuBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gpu_ = value; + onChanged(); + return this; + } + + private java.lang.Object memory_ = ""; + /** + * string memory = 3; + */ + public java.lang.String getMemory() { + java.lang.Object ref = memory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + memory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string memory = 3; + */ + public com.google.protobuf.ByteString + getMemoryBytes() { + java.lang.Object ref = memory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + memory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string memory = 3; + */ + public Builder setMemory( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + memory_ = value; + onChanged(); + return this; + } + /** + * string memory = 3; + */ + public Builder clearMemory() { + + memory_ = getDefaultInstance().getMemory(); + onChanged(); + return this; + } + /** + * string memory = 3; + */ + public Builder setMemoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + memory_ = value; + onChanged(); + return this; + } + + private java.lang.Object storage_ = ""; + /** + * string storage = 4; + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string storage = 4; + */ + public com.google.protobuf.ByteString + getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string storage = 4; + */ + public Builder setStorage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storage_ = value; + onChanged(); + return this; + } + /** + * string storage = 4; + */ + public Builder clearStorage() { + + storage_ = getDefaultInstance().getStorage(); + onChanged(); + return this; + } + /** + * string storage = 4; + */ + public Builder setStorageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storage_ = value; + onChanged(); + return this; + } + + private java.lang.Object ephemeralStorage_ = ""; + /** + * string ephemeral_storage = 5; + */ + public java.lang.String getEphemeralStorage() { + java.lang.Object ref = ephemeralStorage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ephemeralStorage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ephemeral_storage = 5; + */ + public com.google.protobuf.ByteString + getEphemeralStorageBytes() { + java.lang.Object ref = ephemeralStorage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ephemeralStorage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ephemeral_storage = 5; + */ + public Builder setEphemeralStorage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ephemeralStorage_ = value; + onChanged(); + return this; + } + /** + * string ephemeral_storage = 5; + */ + public Builder clearEphemeralStorage() { + + ephemeralStorage_ = getDefaultInstance().getEphemeralStorage(); + onChanged(); + return this; + } + /** + * string ephemeral_storage = 5; + */ + public Builder setEphemeralStorageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ephemeralStorage_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskResourceSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) + private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskResourceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskResourceSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskResourceAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + boolean hasDefaults(); + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults(); + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder(); + + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + boolean hasLimits(); + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits(); + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder(); + } + /** + *
+   * Defines task resource defaults and limits that will be applied at task registration.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} + */ + public static final class TaskResourceAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceAttributes) + TaskResourceAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskResourceAttributes.newBuilder() to construct. + private TaskResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskResourceAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskResourceAttributes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; + if (defaults_ != null) { + subBuilder = defaults_.toBuilder(); + } + defaults_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaults_); + defaults_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; + if (limits_ != null) { + subBuilder = limits_.toBuilder(); + } + limits_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(limits_); + limits_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); + } + + public static final int DEFAULTS_FIELD_NUMBER = 1; + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public boolean hasDefaults() { + return defaults_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { + return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { + return getDefaults(); + } + + public static final int LIMITS_FIELD_NUMBER = 2; + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public boolean hasLimits() { + return limits_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { + return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { + return getLimits(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (defaults_ != null) { + output.writeMessage(1, getDefaults()); + } + if (limits_ != null) { + output.writeMessage(2, getLimits()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (defaults_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDefaults()); + } + if (limits_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLimits()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) obj; + + if (hasDefaults() != other.hasDefaults()) return false; + if (hasDefaults()) { + if (!getDefaults() + .equals(other.getDefaults())) return false; + } + if (hasLimits() != other.hasLimits()) return false; + if (hasLimits()) { + if (!getLimits() + .equals(other.getLimits())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDefaults()) { + hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getDefaults().hashCode(); + } + if (hasLimits()) { + hash = (37 * hash) + LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getLimits().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines task resource defaults and limits that will be applied at task registration.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceAttributes) + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (defaultsBuilder_ == null) { + defaults_ = null; + } else { + defaults_ = null; + defaultsBuilder_ = null; + } + if (limitsBuilder_ == null) { + limits_ = null; + } else { + limits_ = null; + limitsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(this); + if (defaultsBuilder_ == null) { + result.defaults_ = defaults_; + } else { + result.defaults_ = defaultsBuilder_.build(); + } + if (limitsBuilder_ == null) { + result.limits_ = limits_; + } else { + result.limits_ = limitsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) return this; + if (other.hasDefaults()) { + mergeDefaults(other.getDefaults()); + } + if (other.hasLimits()) { + mergeLimits(other.getLimits()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> defaultsBuilder_; + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public boolean hasDefaults() { + return defaultsBuilder_ != null || defaults_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { + if (defaultsBuilder_ == null) { + return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } else { + return defaultsBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder setDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (defaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaults_ = value; + onChanged(); + } else { + defaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder setDefaults( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { + if (defaultsBuilder_ == null) { + defaults_ = builderForValue.build(); + onChanged(); + } else { + defaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder mergeDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (defaultsBuilder_ == null) { + if (defaults_ != null) { + defaults_ = + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(defaults_).mergeFrom(value).buildPartial(); + } else { + defaults_ = value; + } + onChanged(); + } else { + defaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public Builder clearDefaults() { + if (defaultsBuilder_ == null) { + defaults_ = null; + onChanged(); + } else { + defaults_ = null; + defaultsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getDefaultsBuilder() { + + onChanged(); + return getDefaultsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { + if (defaultsBuilder_ != null) { + return defaultsBuilder_.getMessageOrBuilder(); + } else { + return defaults_ == null ? + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; + } + } + /** + * .flyteidl.admin.TaskResourceSpec defaults = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> + getDefaultsFieldBuilder() { + if (defaultsBuilder_ == null) { + defaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( + getDefaults(), + getParentForChildren(), + isClean()); + defaults_ = null; + } + return defaultsBuilder_; + } + + private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> limitsBuilder_; + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public boolean hasLimits() { + return limitsBuilder_ != null || limits_ != null; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { + if (limitsBuilder_ == null) { + return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } else { + return limitsBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder setLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + limits_ = value; + onChanged(); + } else { + limitsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder setLimits( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { + if (limitsBuilder_ == null) { + limits_ = builderForValue.build(); + onChanged(); + } else { + limitsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder mergeLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { + if (limitsBuilder_ == null) { + if (limits_ != null) { + limits_ = + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(limits_).mergeFrom(value).buildPartial(); + } else { + limits_ = value; + } + onChanged(); + } else { + limitsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public Builder clearLimits() { + if (limitsBuilder_ == null) { + limits_ = null; + onChanged(); + } else { + limits_ = null; + limitsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getLimitsBuilder() { + + onChanged(); + return getLimitsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { + if (limitsBuilder_ != null) { + return limitsBuilder_.getMessageOrBuilder(); + } else { + return limits_ == null ? + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; + } + } + /** + * .flyteidl.admin.TaskResourceSpec limits = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> + getLimitsFieldBuilder() { + if (limitsBuilder_ == null) { + limitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( + getLimits(), + getParentForChildren(), + isClean()); + limits_ = null; + } + return limitsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskResourceAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskResourceAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskResourceAttributes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ClusterResourceAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterResourceAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + int getAttributesCount(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttributes(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + java.util.Map + getAttributesMap(); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + java.lang.String getAttributesOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} + */ + public static final class ClusterResourceAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterResourceAttributes) + ClusterResourceAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterResourceAttributes.newBuilder() to construct. + private ClusterResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterResourceAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClusterResourceAttributes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+     * Map keys are the *case-sensitive* names of variables in templatized resource files.
+     * Map values should be the custom values which get substituted during resource creation.
+     * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, attributes__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) obj; + + if (!internalGetAttributes().equals( + other.internalGetAttributes())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterResourceAttributes) + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(this); + int from_bitField0_ = bitField0_; + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) return this; + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + private com.google.protobuf.MapField + internalGetMutableAttributes() { + onChanged();; + if (attributes_ == null) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + internalGetMutableAttributes().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributes() { + return internalGetMutableAttributes().getMutableMap(); + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + public Builder putAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
+       * Map keys are the *case-sensitive* names of variables in templatized resource files.
+       * Map values should be the custom values which get substituted during resource creation.
+       * 
+ * + * map<string, string> attributes = 1; + */ + + public Builder putAllAttributes( + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ClusterResourceAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterResourceAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClusterResourceAttributes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionQueueAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionQueueAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + java.util.List + getTagsList(); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + int getTagsCount(); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + java.lang.String getTags(int index); + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} + */ + public static final class ExecutionQueueAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionQueueAttributes) + ExecutionQueueAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionQueueAttributes.newBuilder() to construct. + private ExecutionQueueAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionQueueAttributes() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionQueueAttributes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tags_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * Tags used for assigning execution queues for tasks defined within this project.
+     * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) obj; + + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionQueueAttributes) + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tags_ = tags_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) return this; + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Tags used for assigning execution queues for tasks defined within this project.
+       * 
+ * + * repeated string tags = 1; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionQueueAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionQueueAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionQueueAttributes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionClusterLabelOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClusterLabel) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + java.lang.String getValue(); + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} + */ + public static final class ExecutionClusterLabel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClusterLabel) + ExecutionClusterLabelOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionClusterLabel.newBuilder() to construct. + private ExecutionClusterLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionClusterLabel() { + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionClusterLabel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
+     * Label value to determine where the execution will be run
+     * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) obj; + + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClusterLabel) + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel build() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(this); + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       * Label value to determine where the execution will be run
+       * 
+ * + * string value = 1; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionClusterLabel) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) + private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionClusterLabel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionClusterLabel(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PluginOverrideOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.PluginOverride) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + java.util.List + getPluginIdList(); + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + int getPluginIdCount(); + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + java.lang.String getPluginId(int index); + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + com.google.protobuf.ByteString + getPluginIdBytes(int index); + + /** + *
+     * Defines the behavior when no plugin from the plugin_id list is not found.
+     * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + int getMissingPluginBehaviorValue(); + /** + *
+     * Defines the behavior when no plugin from the plugin_id list is not found.
+     * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior getMissingPluginBehavior(); + } + /** + *
+   * This MatchableAttribute configures selecting alternate plugin implementations for a given task type.
+   * In addition to an override implementation a selection of fallbacks can be provided or other modes
+   * for handling cases where the desired plugin override is not enabled in a given Flyte deployment.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.PluginOverride} + */ + public static final class PluginOverride extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.PluginOverride) + PluginOverrideOrBuilder { + private static final long serialVersionUID = 0L; + // Use PluginOverride.newBuilder() to construct. + private PluginOverride(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PluginOverride() { + taskType_ = ""; + pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + missingPluginBehavior_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PluginOverride( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pluginId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + pluginId_.add(s); + break; + } + case 32: { + int rawValue = input.readEnum(); + + missingPluginBehavior_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + pluginId_ = pluginId_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.PluginOverride.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.admin.PluginOverride.MissingPluginBehavior} + */ + public enum MissingPluginBehavior + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * By default, if this plugin is not enabled for a Flyte deployment then execution will fail.
+       * 
+ * + * FAIL = 0; + */ + FAIL(0), + /** + *
+       * Uses the system-configured default implementation.
+       * 
+ * + * USE_DEFAULT = 1; + */ + USE_DEFAULT(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * By default, if this plugin is not enabled for a Flyte deployment then execution will fail.
+       * 
+ * + * FAIL = 0; + */ + public static final int FAIL_VALUE = 0; + /** + *
+       * Uses the system-configured default implementation.
+       * 
+ * + * USE_DEFAULT = 1; + */ + public static final int USE_DEFAULT_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MissingPluginBehavior valueOf(int value) { + return forNumber(value); + } + + public static MissingPluginBehavior forNumber(int value) { + switch (value) { + case 0: return FAIL; + case 1: return USE_DEFAULT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MissingPluginBehavior> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MissingPluginBehavior findValueByNumber(int number) { + return MissingPluginBehavior.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDescriptor().getEnumTypes().get(0); + } + + private static final MissingPluginBehavior[] VALUES = values(); + + public static MissingPluginBehavior valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MissingPluginBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.PluginOverride.MissingPluginBehavior) + } + + private int bitField0_; + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLUGIN_ID_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList pluginId_; + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + public com.google.protobuf.ProtocolStringList + getPluginIdList() { + return pluginId_; + } + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + public int getPluginIdCount() { + return pluginId_.size(); + } + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + public java.lang.String getPluginId(int index) { + return pluginId_.get(index); + } + /** + *
+     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+     * 
+ * + * repeated string plugin_id = 2; + */ + public com.google.protobuf.ByteString + getPluginIdBytes(int index) { + return pluginId_.getByteString(index); + } + + public static final int MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER = 4; + private int missingPluginBehavior_; + /** + *
+     * Defines the behavior when no plugin from the plugin_id list is not found.
+     * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + public int getMissingPluginBehaviorValue() { + return missingPluginBehavior_; + } + /** + *
+     * Defines the behavior when no plugin from the plugin_id list is not found.
+     * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior getMissingPluginBehavior() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior result = flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.valueOf(missingPluginBehavior_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + for (int i = 0; i < pluginId_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pluginId_.getRaw(i)); + } + if (missingPluginBehavior_ != flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.FAIL.getNumber()) { + output.writeEnum(4, missingPluginBehavior_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + { + int dataSize = 0; + for (int i = 0; i < pluginId_.size(); i++) { + dataSize += computeStringSizeNoTag(pluginId_.getRaw(i)); + } + size += dataSize; + size += 1 * getPluginIdList().size(); + } + if (missingPluginBehavior_ != flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.FAIL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, missingPluginBehavior_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.PluginOverride)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.PluginOverride other = (flyteidl.admin.MatchableResourceOuterClass.PluginOverride) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getPluginIdList() + .equals(other.getPluginIdList())) return false; + if (missingPluginBehavior_ != other.missingPluginBehavior_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + if (getPluginIdCount() > 0) { + hash = (37 * hash) + PLUGIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getPluginIdList().hashCode(); + } + hash = (37 * hash) + MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + missingPluginBehavior_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.PluginOverride prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This MatchableAttribute configures selecting alternate plugin implementations for a given task type.
+     * In addition to an override implementation a selection of fallbacks can be provided or other modes
+     * for handling cases where the desired plugin override is not enabled in a given Flyte deployment.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.PluginOverride} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.PluginOverride) + flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.PluginOverride.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.PluginOverride.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + missingPluginBehavior_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride build() { + flyteidl.admin.MatchableResourceOuterClass.PluginOverride result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.PluginOverride result = new flyteidl.admin.MatchableResourceOuterClass.PluginOverride(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.taskType_ = taskType_; + if (((bitField0_ & 0x00000002) != 0)) { + pluginId_ = pluginId_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.pluginId_ = pluginId_; + result.missingPluginBehavior_ = missingPluginBehavior_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.PluginOverride) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.PluginOverride)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.PluginOverride other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (!other.pluginId_.isEmpty()) { + if (pluginId_.isEmpty()) { + pluginId_ = other.pluginId_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePluginIdIsMutable(); + pluginId_.addAll(other.pluginId_); + } + onChanged(); + } + if (other.missingPluginBehavior_ != 0) { + setMissingPluginBehaviorValue(other.getMissingPluginBehaviorValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.PluginOverride parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.PluginOverride) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePluginIdIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + pluginId_ = new com.google.protobuf.LazyStringArrayList(pluginId_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public com.google.protobuf.ProtocolStringList + getPluginIdList() { + return pluginId_.getUnmodifiableView(); + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public int getPluginIdCount() { + return pluginId_.size(); + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public java.lang.String getPluginId(int index) { + return pluginId_.get(index); + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public com.google.protobuf.ByteString + getPluginIdBytes(int index) { + return pluginId_.getByteString(index); + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public Builder setPluginId( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePluginIdIsMutable(); + pluginId_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public Builder addPluginId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePluginIdIsMutable(); + pluginId_.add(value); + onChanged(); + return this; + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public Builder addAllPluginId( + java.lang.Iterable values) { + ensurePluginIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pluginId_); + onChanged(); + return this; + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public Builder clearPluginId() { + pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
+       * 
+ * + * repeated string plugin_id = 2; + */ + public Builder addPluginIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePluginIdIsMutable(); + pluginId_.add(value); + onChanged(); + return this; + } + + private int missingPluginBehavior_ = 0; + /** + *
+       * Defines the behavior when no plugin from the plugin_id list is not found.
+       * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + public int getMissingPluginBehaviorValue() { + return missingPluginBehavior_; + } + /** + *
+       * Defines the behavior when no plugin from the plugin_id list is not found.
+       * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + public Builder setMissingPluginBehaviorValue(int value) { + missingPluginBehavior_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the behavior when no plugin from the plugin_id list is not found.
+       * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior getMissingPluginBehavior() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior result = flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.valueOf(missingPluginBehavior_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.UNRECOGNIZED : result; + } + /** + *
+       * Defines the behavior when no plugin from the plugin_id list is not found.
+       * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + public Builder setMissingPluginBehavior(flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + + missingPluginBehavior_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines the behavior when no plugin from the plugin_id list is not found.
+       * 
+ * + * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + public Builder clearMissingPluginBehavior() { + + missingPluginBehavior_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.PluginOverride) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverride) + private static final flyteidl.admin.MatchableResourceOuterClass.PluginOverride DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.PluginOverride(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PluginOverride parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PluginOverride(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PluginOverridesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.PluginOverrides) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + java.util.List + getOverridesList(); + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.PluginOverride getOverrides(int index); + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + int getOverridesCount(); + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + java.util.List + getOverridesOrBuilderList(); + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder getOverridesOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.PluginOverrides} + */ + public static final class PluginOverrides extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.PluginOverrides) + PluginOverridesOrBuilder { + private static final long serialVersionUID = 0L; + // Use PluginOverrides.newBuilder() to construct. + private PluginOverrides(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PluginOverrides() { + overrides_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PluginOverrides( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + overrides_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + overrides_.add( + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.PluginOverride.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + overrides_ = java.util.Collections.unmodifiableList(overrides_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder.class); + } + + public static final int OVERRIDES_FIELD_NUMBER = 1; + private java.util.List overrides_; + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public java.util.List getOverridesList() { + return overrides_; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public java.util.List + getOverridesOrBuilderList() { + return overrides_; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public int getOverridesCount() { + return overrides_.size(); + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride getOverrides(int index) { + return overrides_.get(index); + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder getOverridesOrBuilder( + int index) { + return overrides_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < overrides_.size(); i++) { + output.writeMessage(1, overrides_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < overrides_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, overrides_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.PluginOverrides)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides other = (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) obj; + + if (!getOverridesList() + .equals(other.getOverridesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOverridesCount() > 0) { + hash = (37 * hash) + OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getOverridesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.admin.PluginOverrides} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.PluginOverrides) + flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOverridesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (overridesBuilder_ == null) { + overrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + overridesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides build() { + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides result = new flyteidl.admin.MatchableResourceOuterClass.PluginOverrides(this); + int from_bitField0_ = bitField0_; + if (overridesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + overrides_ = java.util.Collections.unmodifiableList(overrides_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.overrides_ = overrides_; + } else { + result.overrides_ = overridesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance()) return this; + if (overridesBuilder_ == null) { + if (!other.overrides_.isEmpty()) { + if (overrides_.isEmpty()) { + overrides_ = other.overrides_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOverridesIsMutable(); + overrides_.addAll(other.overrides_); + } + onChanged(); + } + } else { + if (!other.overrides_.isEmpty()) { + if (overridesBuilder_.isEmpty()) { + overridesBuilder_.dispose(); + overridesBuilder_ = null; + overrides_ = other.overrides_; + bitField0_ = (bitField0_ & ~0x00000001); + overridesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOverridesFieldBuilder() : null; + } else { + overridesBuilder_.addAllMessages(other.overrides_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List overrides_ = + java.util.Collections.emptyList(); + private void ensureOverridesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + overrides_ = new java.util.ArrayList(overrides_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.PluginOverride, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder> overridesBuilder_; + + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public java.util.List getOverridesList() { + if (overridesBuilder_ == null) { + return java.util.Collections.unmodifiableList(overrides_); + } else { + return overridesBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public int getOverridesCount() { + if (overridesBuilder_ == null) { + return overrides_.size(); + } else { + return overridesBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride getOverrides(int index) { + if (overridesBuilder_ == null) { + return overrides_.get(index); + } else { + return overridesBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder setOverrides( + int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride value) { + if (overridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverridesIsMutable(); + overrides_.set(index, value); + onChanged(); + } else { + overridesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder setOverrides( + int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder builderForValue) { + if (overridesBuilder_ == null) { + ensureOverridesIsMutable(); + overrides_.set(index, builderForValue.build()); + onChanged(); + } else { + overridesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder addOverrides(flyteidl.admin.MatchableResourceOuterClass.PluginOverride value) { + if (overridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverridesIsMutable(); + overrides_.add(value); + onChanged(); + } else { + overridesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder addOverrides( + int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride value) { + if (overridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverridesIsMutable(); + overrides_.add(index, value); + onChanged(); + } else { + overridesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder addOverrides( + flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder builderForValue) { + if (overridesBuilder_ == null) { + ensureOverridesIsMutable(); + overrides_.add(builderForValue.build()); + onChanged(); + } else { + overridesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder addOverrides( + int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder builderForValue) { + if (overridesBuilder_ == null) { + ensureOverridesIsMutable(); + overrides_.add(index, builderForValue.build()); + onChanged(); + } else { + overridesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder addAllOverrides( + java.lang.Iterable values) { + if (overridesBuilder_ == null) { + ensureOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, overrides_); + onChanged(); + } else { + overridesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder clearOverrides() { + if (overridesBuilder_ == null) { + overrides_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + overridesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public Builder removeOverrides(int index) { + if (overridesBuilder_ == null) { + ensureOverridesIsMutable(); + overrides_.remove(index); + onChanged(); + } else { + overridesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder getOverridesBuilder( + int index) { + return getOverridesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder getOverridesOrBuilder( + int index) { + if (overridesBuilder_ == null) { + return overrides_.get(index); } else { + return overridesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public java.util.List + getOverridesOrBuilderList() { + if (overridesBuilder_ != null) { + return overridesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(overrides_); + } + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder addOverridesBuilder() { + return getOverridesFieldBuilder().addBuilder( + flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder addOverridesBuilder( + int index) { + return getOverridesFieldBuilder().addBuilder( + index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.PluginOverride overrides = 1; + */ + public java.util.List + getOverridesBuilderList() { + return getOverridesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.PluginOverride, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder> + getOverridesFieldBuilder() { + if (overridesBuilder_ == null) { + overridesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.PluginOverride, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder>( + overrides_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + overrides_ = null; + } + return overridesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.PluginOverrides) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverrides) + private static final flyteidl.admin.MatchableResourceOuterClass.PluginOverrides DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.PluginOverrides(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PluginOverrides parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PluginOverrides(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
+     * 
+ * + * int32 max_parallelism = 1; + */ + int getMaxParallelism(); + + /** + *
+     * Indicates security context permissions for executions triggered with this matchable attribute. 
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + boolean hasSecurityContext(); + /** + *
+     * Indicates security context permissions for executions triggered with this matchable attribute. 
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + flyteidl.core.Security.SecurityContext getSecurityContext(); + /** + *
+     * Indicates security context permissions for executions triggered with this matchable attribute. 
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); + + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + boolean hasRawOutputDataConfig(); + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig(); + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder(); + + /** + *
+     * Custom labels to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + boolean hasLabels(); + /** + *
+     * Custom labels to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Custom labels to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Custom annotations to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + boolean hasAnnotations(); + /** + *
+     * Custom annotations to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Custom annotations to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + boolean hasInterruptible(); + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + com.google.protobuf.BoolValue getInterruptible(); + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder(); + + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 7; + */ + boolean getOverwriteCache(); + + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + boolean hasEnvs(); + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + flyteidl.admin.Common.Envs getEnvs(); + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder(); + } + /** + *
+   * Adds defaults for customizable workflow-execution specifications and overrides.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionConfig} + */ + public static final class WorkflowExecutionConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionConfig) + WorkflowExecutionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionConfig.newBuilder() to construct. + private WorkflowExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionConfig() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + maxParallelism_ = input.readInt32(); + break; + } + case 18: { + flyteidl.core.Security.SecurityContext.Builder subBuilder = null; + if (securityContext_ != null) { + subBuilder = securityContext_.toBuilder(); + } + securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityContext_); + securityContext_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.Common.RawOutputDataConfig.Builder subBuilder = null; + if (rawOutputDataConfig_ != null) { + subBuilder = rawOutputDataConfig_.toBuilder(); + } + rawOutputDataConfig_ = input.readMessage(flyteidl.admin.Common.RawOutputDataConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rawOutputDataConfig_); + rawOutputDataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (interruptible_ != null) { + subBuilder = interruptible_.toBuilder(); + } + interruptible_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interruptible_); + interruptible_ = subBuilder.buildPartial(); + } + + break; + } + case 56: { + + overwriteCache_ = input.readBool(); + break; + } + case 66: { + flyteidl.admin.Common.Envs.Builder subBuilder = null; + if (envs_ != null) { + subBuilder = envs_.toBuilder(); + } + envs_ = input.readMessage(flyteidl.admin.Common.Envs.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(envs_); + envs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.class, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder.class); + } + + public static final int MAX_PARALLELISM_FIELD_NUMBER = 1; + private int maxParallelism_; + /** + *
+     * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
+     * 
+ * + * int32 max_parallelism = 1; + */ + public int getMaxParallelism() { + return maxParallelism_; + } + + public static final int SECURITY_CONTEXT_FIELD_NUMBER = 2; + private flyteidl.core.Security.SecurityContext securityContext_; + /** + *
+     * Indicates security context permissions for executions triggered with this matchable attribute. 
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public boolean hasSecurityContext() { + return securityContext_ != null; + } + /** + *
+     * Indicates security context permissions for executions triggered with this matchable attribute. 
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + /** + *
+     * Indicates security context permissions for executions triggered with this matchable attribute. 
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + return getSecurityContext(); + } + + public static final int RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER = 3; + private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public boolean hasRawOutputDataConfig() { + return rawOutputDataConfig_ != null; + } + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { + return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } + /** + *
+     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+     * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { + return getRawOutputDataConfig(); + } + + public static final int LABELS_FIELD_NUMBER = 4; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Custom labels to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Custom labels to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Custom labels to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Custom annotations to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Custom annotations to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Custom annotations to be applied to a triggered execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue interruptible_; + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public boolean hasInterruptible() { + return interruptible_ != null; + } + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public com.google.protobuf.BoolValue getInterruptible() { + return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } + /** + *
+     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+     * Omitting this field uses the workflow's value as a default.
+     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+     * around the bool field.
+     * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { + return getInterruptible(); + } + + public static final int OVERWRITE_CACHE_FIELD_NUMBER = 7; + private boolean overwriteCache_; + /** + *
+     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+     * data once execution finishes successfully.
+     * 
+ * + * bool overwrite_cache = 7; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + + public static final int ENVS_FIELD_NUMBER = 8; + private flyteidl.admin.Common.Envs envs_; + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public boolean hasEnvs() { + return envs_ != null; + } + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public flyteidl.admin.Common.Envs getEnvs() { + return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } + /** + *
+     * Environment variables to be set for the execution.
+     * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { + return getEnvs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (maxParallelism_ != 0) { + output.writeInt32(1, maxParallelism_); + } + if (securityContext_ != null) { + output.writeMessage(2, getSecurityContext()); + } + if (rawOutputDataConfig_ != null) { + output.writeMessage(3, getRawOutputDataConfig()); + } + if (labels_ != null) { + output.writeMessage(4, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(5, getAnnotations()); + } + if (interruptible_ != null) { + output.writeMessage(6, getInterruptible()); + } + if (overwriteCache_ != false) { + output.writeBool(7, overwriteCache_); + } + if (envs_ != null) { + output.writeMessage(8, getEnvs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxParallelism_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, maxParallelism_); + } + if (securityContext_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSecurityContext()); + } + if (rawOutputDataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRawOutputDataConfig()); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAnnotations()); + } + if (interruptible_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getInterruptible()); + } + if (overwriteCache_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, overwriteCache_); + } + if (envs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getEnvs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig other = (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) obj; + + if (getMaxParallelism() + != other.getMaxParallelism()) return false; + if (hasSecurityContext() != other.hasSecurityContext()) return false; + if (hasSecurityContext()) { + if (!getSecurityContext() + .equals(other.getSecurityContext())) return false; + } + if (hasRawOutputDataConfig() != other.hasRawOutputDataConfig()) return false; + if (hasRawOutputDataConfig()) { + if (!getRawOutputDataConfig() + .equals(other.getRawOutputDataConfig())) return false; + } + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (hasInterruptible() != other.hasInterruptible()) return false; + if (hasInterruptible()) { + if (!getInterruptible() + .equals(other.getInterruptible())) return false; + } + if (getOverwriteCache() + != other.getOverwriteCache()) return false; + if (hasEnvs() != other.hasEnvs()) return false; + if (hasEnvs()) { + if (!getEnvs() + .equals(other.getEnvs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + getMaxParallelism(); + if (hasSecurityContext()) { + hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSecurityContext().hashCode(); + } + if (hasRawOutputDataConfig()) { + hash = (37 * hash) + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRawOutputDataConfig().hashCode(); + } + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasInterruptible()) { + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + getInterruptible().hashCode(); + } + hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOverwriteCache()); + if (hasEnvs()) { + hash = (37 * hash) + ENVS_FIELD_NUMBER; + hash = (53 * hash) + getEnvs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Adds defaults for customizable workflow-execution specifications and overrides.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionConfig) + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.class, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + maxParallelism_ = 0; + + if (securityContextBuilder_ == null) { + securityContext_ = null; + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = null; + } else { + rawOutputDataConfig_ = null; + rawOutputDataConfigBuilder_ = null; + } + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (interruptibleBuilder_ == null) { + interruptible_ = null; + } else { + interruptible_ = null; + interruptibleBuilder_ = null; + } + overwriteCache_ = false; + + if (envsBuilder_ == null) { + envs_ = null; + } else { + envs_ = null; + envsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig build() { + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig result = new flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig(this); + result.maxParallelism_ = maxParallelism_; + if (securityContextBuilder_ == null) { + result.securityContext_ = securityContext_; + } else { + result.securityContext_ = securityContextBuilder_.build(); + } + if (rawOutputDataConfigBuilder_ == null) { + result.rawOutputDataConfig_ = rawOutputDataConfig_; + } else { + result.rawOutputDataConfig_ = rawOutputDataConfigBuilder_.build(); + } + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (interruptibleBuilder_ == null) { + result.interruptible_ = interruptible_; + } else { + result.interruptible_ = interruptibleBuilder_.build(); + } + result.overwriteCache_ = overwriteCache_; + if (envsBuilder_ == null) { + result.envs_ = envs_; + } else { + result.envs_ = envsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance()) return this; + if (other.getMaxParallelism() != 0) { + setMaxParallelism(other.getMaxParallelism()); + } + if (other.hasSecurityContext()) { + mergeSecurityContext(other.getSecurityContext()); + } + if (other.hasRawOutputDataConfig()) { + mergeRawOutputDataConfig(other.getRawOutputDataConfig()); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasInterruptible()) { + mergeInterruptible(other.getInterruptible()); + } + if (other.getOverwriteCache() != false) { + setOverwriteCache(other.getOverwriteCache()); + } + if (other.hasEnvs()) { + mergeEnvs(other.getEnvs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int maxParallelism_ ; + /** + *
+       * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
+       * 
+ * + * int32 max_parallelism = 1; + */ + public int getMaxParallelism() { + return maxParallelism_; + } + /** + *
+       * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
+       * 
+ * + * int32 max_parallelism = 1; + */ + public Builder setMaxParallelism(int value) { + + maxParallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
+       * 
+ * + * int32 max_parallelism = 1; + */ + public Builder clearMaxParallelism() { + + maxParallelism_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Security.SecurityContext securityContext_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public boolean hasSecurityContext() { + return securityContextBuilder_ != null || securityContext_ != null; + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + if (securityContextBuilder_ == null) { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } else { + return securityContextBuilder_.getMessage(); + } + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityContext_ = value; + onChanged(); + } else { + securityContextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public Builder setSecurityContext( + flyteidl.core.Security.SecurityContext.Builder builderForValue) { + if (securityContextBuilder_ == null) { + securityContext_ = builderForValue.build(); + onChanged(); + } else { + securityContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (securityContext_ != null) { + securityContext_ = + flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); + } else { + securityContext_ = value; + } + onChanged(); + } else { + securityContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public Builder clearSecurityContext() { + if (securityContextBuilder_ == null) { + securityContext_ = null; + onChanged(); + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { + + onChanged(); + return getSecurityContextFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + if (securityContextBuilder_ != null) { + return securityContextBuilder_.getMessageOrBuilder(); + } else { + return securityContext_ == null ? + flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + } + /** + *
+       * Indicates security context permissions for executions triggered with this matchable attribute. 
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> + getSecurityContextFieldBuilder() { + if (securityContextBuilder_ == null) { + securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( + getSecurityContext(), + getParentForChildren(), + isClean()); + securityContext_ = null; + } + return securityContextBuilder_; + } + + private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> rawOutputDataConfigBuilder_; + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public boolean hasRawOutputDataConfig() { + return rawOutputDataConfigBuilder_ != null || rawOutputDataConfig_ != null; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { + if (rawOutputDataConfigBuilder_ == null) { + return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } else { + return rawOutputDataConfigBuilder_.getMessage(); + } + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public Builder setRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { + if (rawOutputDataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rawOutputDataConfig_ = value; + onChanged(); + } else { + rawOutputDataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public Builder setRawOutputDataConfig( + flyteidl.admin.Common.RawOutputDataConfig.Builder builderForValue) { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = builderForValue.build(); + onChanged(); + } else { + rawOutputDataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public Builder mergeRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { + if (rawOutputDataConfigBuilder_ == null) { + if (rawOutputDataConfig_ != null) { + rawOutputDataConfig_ = + flyteidl.admin.Common.RawOutputDataConfig.newBuilder(rawOutputDataConfig_).mergeFrom(value).buildPartial(); + } else { + rawOutputDataConfig_ = value; + } + onChanged(); + } else { + rawOutputDataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public Builder clearRawOutputDataConfig() { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfig_ = null; + onChanged(); + } else { + rawOutputDataConfig_ = null; + rawOutputDataConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public flyteidl.admin.Common.RawOutputDataConfig.Builder getRawOutputDataConfigBuilder() { + + onChanged(); + return getRawOutputDataConfigFieldBuilder().getBuilder(); + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { + if (rawOutputDataConfigBuilder_ != null) { + return rawOutputDataConfigBuilder_.getMessageOrBuilder(); + } else { + return rawOutputDataConfig_ == null ? + flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; + } + } + /** + *
+       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
+       * 
+ * + * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> + getRawOutputDataConfigFieldBuilder() { + if (rawOutputDataConfigBuilder_ == null) { + rawOutputDataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder>( + getRawOutputDataConfig(), + getParentForChildren(), + isClean()); + rawOutputDataConfig_ = null; + } + return rawOutputDataConfigBuilder_; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Custom labels to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Custom annotations to be applied to a triggered execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private com.google.protobuf.BoolValue interruptible_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> interruptibleBuilder_; + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public boolean hasInterruptible() { + return interruptibleBuilder_ != null || interruptible_ != null; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public com.google.protobuf.BoolValue getInterruptible() { + if (interruptibleBuilder_ == null) { + return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } else { + return interruptibleBuilder_.getMessage(); + } + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public Builder setInterruptible(com.google.protobuf.BoolValue value) { + if (interruptibleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interruptible_ = value; + onChanged(); + } else { + interruptibleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public Builder setInterruptible( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (interruptibleBuilder_ == null) { + interruptible_ = builderForValue.build(); + onChanged(); + } else { + interruptibleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public Builder mergeInterruptible(com.google.protobuf.BoolValue value) { + if (interruptibleBuilder_ == null) { + if (interruptible_ != null) { + interruptible_ = + com.google.protobuf.BoolValue.newBuilder(interruptible_).mergeFrom(value).buildPartial(); + } else { + interruptible_ = value; + } + onChanged(); + } else { + interruptibleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public Builder clearInterruptible() { + if (interruptibleBuilder_ == null) { + interruptible_ = null; + onChanged(); + } else { + interruptible_ = null; + interruptibleBuilder_ = null; + } + + return this; + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public com.google.protobuf.BoolValue.Builder getInterruptibleBuilder() { + + onChanged(); + return getInterruptibleFieldBuilder().getBuilder(); + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { + if (interruptibleBuilder_ != null) { + return interruptibleBuilder_.getMessageOrBuilder(); + } else { + return interruptible_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; + } + } + /** + *
+       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
+       * Omitting this field uses the workflow's value as a default.
+       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
+       * around the bool field.
+       * 
+ * + * .google.protobuf.BoolValue interruptible = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getInterruptibleFieldBuilder() { + if (interruptibleBuilder_ == null) { + interruptibleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getInterruptible(), + getParentForChildren(), + isClean()); + interruptible_ = null; + } + return interruptibleBuilder_; + } + + private boolean overwriteCache_ ; + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 7; + */ + public boolean getOverwriteCache() { + return overwriteCache_; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 7; + */ + public Builder setOverwriteCache(boolean value) { + + overwriteCache_ = value; + onChanged(); + return this; + } + /** + *
+       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
+       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
+       * data once execution finishes successfully.
+       * 
+ * + * bool overwrite_cache = 7; + */ + public Builder clearOverwriteCache() { + + overwriteCache_ = false; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Envs envs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> envsBuilder_; + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public boolean hasEnvs() { + return envsBuilder_ != null || envs_ != null; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public flyteidl.admin.Common.Envs getEnvs() { + if (envsBuilder_ == null) { + return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } else { + return envsBuilder_.getMessage(); + } + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public Builder setEnvs(flyteidl.admin.Common.Envs value) { + if (envsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + envs_ = value; + onChanged(); + } else { + envsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public Builder setEnvs( + flyteidl.admin.Common.Envs.Builder builderForValue) { + if (envsBuilder_ == null) { + envs_ = builderForValue.build(); + onChanged(); + } else { + envsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public Builder mergeEnvs(flyteidl.admin.Common.Envs value) { + if (envsBuilder_ == null) { + if (envs_ != null) { + envs_ = + flyteidl.admin.Common.Envs.newBuilder(envs_).mergeFrom(value).buildPartial(); + } else { + envs_ = value; + } + onChanged(); + } else { + envsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public Builder clearEnvs() { + if (envsBuilder_ == null) { + envs_ = null; + onChanged(); + } else { + envs_ = null; + envsBuilder_ = null; + } + + return this; + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public flyteidl.admin.Common.Envs.Builder getEnvsBuilder() { + + onChanged(); + return getEnvsFieldBuilder().getBuilder(); + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { + if (envsBuilder_ != null) { + return envsBuilder_.getMessageOrBuilder(); + } else { + return envs_ == null ? + flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; + } + } + /** + *
+       * Environment variables to be set for the execution.
+       * 
+ * + * .flyteidl.admin.Envs envs = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> + getEnvsFieldBuilder() { + if (envsBuilder_ == null) { + envsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder>( + getEnvs(), + getParentForChildren(), + isClean()); + envs_ = null; + } + return envsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionConfig) + private static final flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchingAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchingAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + boolean hasTaskResourceAttributes(); + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes(); + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder(); + + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + boolean hasClusterResourceAttributes(); + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes(); + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder(); + + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + boolean hasExecutionQueueAttributes(); + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes(); + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder(); + + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + boolean hasExecutionClusterLabel(); + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel(); + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder(); + + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + boolean hasQualityOfService(); + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + boolean hasPluginOverrides(); + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getPluginOverrides(); + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder getPluginOverridesOrBuilder(); + + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + boolean hasWorkflowExecutionConfig(); + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getWorkflowExecutionConfig(); + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder getWorkflowExecutionConfigOrBuilder(); + + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + boolean hasClusterAssignment(); + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment(); + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder(); + + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.TargetCase getTargetCase(); + } + /** + *
+   * Generic container for encapsulating all types of the above attributes messages.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.MatchingAttributes} + */ + public static final class MatchingAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchingAttributes) + MatchingAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchingAttributes.newBuilder() to construct. + private MatchingAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchingAttributes() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchingAttributes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder subBuilder = null; + if (targetCase_ == 1) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 1; + break; + } + case 18: { + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; + } + case 26: { + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder subBuilder = null; + if (targetCase_ == 3) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 3; + break; + } + case 34: { + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder subBuilder = null; + if (targetCase_ == 4) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 4; + break; + } + case 42: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (targetCase_ == 5) { + subBuilder = ((flyteidl.core.Execution.QualityOfService) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfService) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 5; + break; + } + case 50: { + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 58: { + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder subBuilder = null; + if (targetCase_ == 7) { + subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 7; + break; + } + case 66: { + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder subBuilder = null; + if (targetCase_ == 8) { + subBuilder = ((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 8; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TASK_RESOURCE_ATTRIBUTES(1), + CLUSTER_RESOURCE_ATTRIBUTES(2), + EXECUTION_QUEUE_ATTRIBUTES(3), + EXECUTION_CLUSTER_LABEL(4), + QUALITY_OF_SERVICE(5), + PLUGIN_OVERRIDES(6), + WORKFLOW_EXECUTION_CONFIG(7), + CLUSTER_ASSIGNMENT(8), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 1: return TASK_RESOURCE_ATTRIBUTES; + case 2: return CLUSTER_RESOURCE_ATTRIBUTES; + case 3: return EXECUTION_QUEUE_ATTRIBUTES; + case 4: return EXECUTION_CLUSTER_LABEL; + case 5: return QUALITY_OF_SERVICE; + case 6: return PLUGIN_OVERRIDES; + case 7: return WORKFLOW_EXECUTION_CONFIG; + case 8: return CLUSTER_ASSIGNMENT; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public boolean hasTaskResourceAttributes() { + return targetCase_ == 1; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + + public static final int CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public boolean hasClusterResourceAttributes() { + return targetCase_ == 2; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + + public static final int EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER = 3; + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public boolean hasExecutionQueueAttributes() { + return targetCase_ == 3; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + + public static final int EXECUTION_CLUSTER_LABEL_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public boolean hasExecutionClusterLabel() { + return targetCase_ == 4; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 5; + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public boolean hasQualityOfService() { + return targetCase_ == 5; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + + public static final int PLUGIN_OVERRIDES_FIELD_NUMBER = 6; + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public boolean hasPluginOverrides() { + return targetCase_ == 6; + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getPluginOverrides() { + if (targetCase_ == 6) { + return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder getPluginOverridesOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); + } + + public static final int WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER = 7; + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public boolean hasWorkflowExecutionConfig() { + return targetCase_ == 7; + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getWorkflowExecutionConfig() { + if (targetCase_ == 7) { + return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder getWorkflowExecutionConfigOrBuilder() { + if (targetCase_ == 7) { + return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); + } + + public static final int CLUSTER_ASSIGNMENT_FIELD_NUMBER = 8; + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public boolean hasClusterAssignment() { + return targetCase_ == 8; + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { + if (targetCase_ == 8) { + return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; + } + return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { + if (targetCase_ == 8) { + return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; + } + return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (targetCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + } + if (targetCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + } + if (targetCase_ == 3) { + output.writeMessage(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + } + if (targetCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + } + if (targetCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Execution.QualityOfService) target_); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_); + } + if (targetCase_ == 7) { + output.writeMessage(7, (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_); + } + if (targetCase_ == 8) { + output.writeMessage(8, (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); + } + if (targetCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); + } + if (targetCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); + } + if (targetCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); + } + if (targetCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Execution.QualityOfService) target_); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_); + } + if (targetCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_); + } + if (targetCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) obj; + + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 1: + if (!getTaskResourceAttributes() + .equals(other.getTaskResourceAttributes())) return false; + break; + case 2: + if (!getClusterResourceAttributes() + .equals(other.getClusterResourceAttributes())) return false; + break; + case 3: + if (!getExecutionQueueAttributes() + .equals(other.getExecutionQueueAttributes())) return false; + break; + case 4: + if (!getExecutionClusterLabel() + .equals(other.getExecutionClusterLabel())) return false; + break; + case 5: + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + break; + case 6: + if (!getPluginOverrides() + .equals(other.getPluginOverrides())) return false; + break; + case 7: + if (!getWorkflowExecutionConfig() + .equals(other.getWorkflowExecutionConfig())) return false; + break; + case 8: + if (!getClusterAssignment() + .equals(other.getClusterAssignment())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (targetCase_) { + case 1: + hash = (37 * hash) + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getTaskResourceAttributes().hashCode(); + break; + case 2: + hash = (37 * hash) + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getClusterResourceAttributes().hashCode(); + break; + case 3: + hash = (37 * hash) + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getExecutionQueueAttributes().hashCode(); + break; + case 4: + hash = (37 * hash) + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getExecutionClusterLabel().hashCode(); + break; + case 5: + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + break; + case 6: + hash = (37 * hash) + PLUGIN_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getPluginOverrides().hashCode(); + break; + case 7: + hash = (37 * hash) + WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecutionConfig().hashCode(); + break; + case 8: + hash = (37 * hash) + CLUSTER_ASSIGNMENT_FIELD_NUMBER; + hash = (53 * hash) + getClusterAssignment().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Generic container for encapsulating all types of the above attributes messages.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.MatchingAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchingAttributes) + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes build() { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(this); + if (targetCase_ == 1) { + if (taskResourceAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = taskResourceAttributesBuilder_.build(); + } + } + if (targetCase_ == 2) { + if (clusterResourceAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = clusterResourceAttributesBuilder_.build(); + } + } + if (targetCase_ == 3) { + if (executionQueueAttributesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = executionQueueAttributesBuilder_.build(); + } + } + if (targetCase_ == 4) { + if (executionClusterLabelBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = executionClusterLabelBuilder_.build(); + } + } + if (targetCase_ == 5) { + if (qualityOfServiceBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = qualityOfServiceBuilder_.build(); + } + } + if (targetCase_ == 6) { + if (pluginOverridesBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = pluginOverridesBuilder_.build(); + } + } + if (targetCase_ == 7) { + if (workflowExecutionConfigBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = workflowExecutionConfigBuilder_.build(); + } + } + if (targetCase_ == 8) { + if (clusterAssignmentBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = clusterAssignmentBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance()) return this; + switch (other.getTargetCase()) { + case TASK_RESOURCE_ATTRIBUTES: { + mergeTaskResourceAttributes(other.getTaskResourceAttributes()); + break; + } + case CLUSTER_RESOURCE_ATTRIBUTES: { + mergeClusterResourceAttributes(other.getClusterResourceAttributes()); + break; + } + case EXECUTION_QUEUE_ATTRIBUTES: { + mergeExecutionQueueAttributes(other.getExecutionQueueAttributes()); + break; + } + case EXECUTION_CLUSTER_LABEL: { + mergeExecutionClusterLabel(other.getExecutionClusterLabel()); + break; + } + case QUALITY_OF_SERVICE: { + mergeQualityOfService(other.getQualityOfService()); + break; + } + case PLUGIN_OVERRIDES: { + mergePluginOverrides(other.getPluginOverrides()); + break; + } + case WORKFLOW_EXECUTION_CONFIG: { + mergeWorkflowExecutionConfig(other.getWorkflowExecutionConfig()); + break; + } + case CLUSTER_ASSIGNMENT: { + mergeClusterAssignment(other.getClusterAssignment()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> taskResourceAttributesBuilder_; + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public boolean hasTaskResourceAttributes() { + return targetCase_ == 1; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 1) { + return taskResourceAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder setTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { + if (taskResourceAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + taskResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder setTaskResourceAttributes( + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder builderForValue) { + if (taskResourceAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + taskResourceAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder mergeTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1 && + target_ != flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 1) { + taskResourceAttributesBuilder_.mergeFrom(value); + } + taskResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 1; + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public Builder clearTaskResourceAttributes() { + if (taskResourceAttributesBuilder_ == null) { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 1) { + targetCase_ = 0; + target_ = null; + } + taskResourceAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder getTaskResourceAttributesBuilder() { + return getTaskResourceAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { + if ((targetCase_ == 1) && (taskResourceAttributesBuilder_ != null)) { + return taskResourceAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 1) { + return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> + getTaskResourceAttributesFieldBuilder() { + if (taskResourceAttributesBuilder_ == null) { + if (!(targetCase_ == 1)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); + } + taskResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 1; + onChanged();; + return taskResourceAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> clusterResourceAttributesBuilder_; + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public boolean hasClusterResourceAttributes() { + return targetCase_ == 2; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 2) { + return clusterResourceAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder setClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { + if (clusterResourceAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + clusterResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder setClusterResourceAttributes( + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder builderForValue) { + if (clusterResourceAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + clusterResourceAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder mergeClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 2) { + clusterResourceAttributesBuilder_.mergeFrom(value); + } + clusterResourceAttributesBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public Builder clearClusterResourceAttributes() { + if (clusterResourceAttributesBuilder_ == null) { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + } + clusterResourceAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder getClusterResourceAttributesBuilder() { + return getClusterResourceAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { + if ((targetCase_ == 2) && (clusterResourceAttributesBuilder_ != null)) { + return clusterResourceAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 2) { + return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> + getClusterResourceAttributesFieldBuilder() { + if (clusterResourceAttributesBuilder_ == null) { + if (!(targetCase_ == 2)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); + } + clusterResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 2; + onChanged();; + return clusterResourceAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> executionQueueAttributesBuilder_; + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public boolean hasExecutionQueueAttributes() { + return targetCase_ == 3; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } else { + if (targetCase_ == 3) { + return executionQueueAttributesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder setExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { + if (executionQueueAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + executionQueueAttributesBuilder_.setMessage(value); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder setExecutionQueueAttributes( + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder builderForValue) { + if (executionQueueAttributesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + executionQueueAttributesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder mergeExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 3) { + executionQueueAttributesBuilder_.mergeFrom(value); + } + executionQueueAttributesBuilder_.setMessage(value); + } + targetCase_ = 3; + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public Builder clearExecutionQueueAttributes() { + if (executionQueueAttributesBuilder_ == null) { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + } + executionQueueAttributesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder getExecutionQueueAttributesBuilder() { + return getExecutionQueueAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { + if ((targetCase_ == 3) && (executionQueueAttributesBuilder_ != null)) { + return executionQueueAttributesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 3) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> + getExecutionQueueAttributesFieldBuilder() { + if (executionQueueAttributesBuilder_ == null) { + if (!(targetCase_ == 3)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); + } + executionQueueAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 3; + onChanged();; + return executionQueueAttributesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> executionClusterLabelBuilder_; + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public boolean hasExecutionClusterLabel() { + return targetCase_ == 4; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } else { + if (targetCase_ == 4) { + return executionClusterLabelBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder setExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { + if (executionClusterLabelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + executionClusterLabelBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder setExecutionClusterLabel( + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder builderForValue) { + if (executionClusterLabelBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + executionClusterLabelBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder mergeExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4 && + target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 4) { + executionClusterLabelBuilder_.mergeFrom(value); + } + executionClusterLabelBuilder_.setMessage(value); + } + targetCase_ = 4; + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public Builder clearExecutionClusterLabel() { + if (executionClusterLabelBuilder_ == null) { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 4) { + targetCase_ = 0; + target_ = null; + } + executionClusterLabelBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder getExecutionClusterLabelBuilder() { + return getExecutionClusterLabelFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { + if ((targetCase_ == 4) && (executionClusterLabelBuilder_ != null)) { + return executionClusterLabelBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 4) { + return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> + getExecutionClusterLabelFieldBuilder() { + if (executionClusterLabelBuilder_ == null) { + if (!(targetCase_ == 4)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); + } + executionClusterLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 4; + onChanged();; + return executionClusterLabelBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public boolean hasQualityOfService() { + return targetCase_ == 5; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } else { + if (targetCase_ == 5) { + return qualityOfServiceBuilder_.getMessage(); + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5 && + target_ != flyteidl.core.Execution.QualityOfService.getDefaultInstance()) { + target_ = flyteidl.core.Execution.QualityOfService.newBuilder((flyteidl.core.Execution.QualityOfService) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 5) { + qualityOfServiceBuilder_.mergeFrom(value); + } + qualityOfServiceBuilder_.setMessage(value); + } + targetCase_ = 5; + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 5) { + targetCase_ = 0; + target_ = null; + } + qualityOfServiceBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if ((targetCase_ == 5) && (qualityOfServiceBuilder_ != null)) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 5) { + return (flyteidl.core.Execution.QualityOfService) target_; + } + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfService quality_of_service = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + if (!(targetCase_ == 5)) { + target_ = flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + (flyteidl.core.Execution.QualityOfService) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 5; + onChanged();; + return qualityOfServiceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder> pluginOverridesBuilder_; + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public boolean hasPluginOverrides() { + return targetCase_ == 6; + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getPluginOverrides() { + if (pluginOverridesBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return pluginOverridesBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public Builder setPluginOverrides(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides value) { + if (pluginOverridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + pluginOverridesBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public Builder setPluginOverrides( + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder builderForValue) { + if (pluginOverridesBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + pluginOverridesBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public Builder mergePluginOverrides(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides value) { + if (pluginOverridesBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.newBuilder((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + pluginOverridesBuilder_.mergeFrom(value); + } + pluginOverridesBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public Builder clearPluginOverrides() { + if (pluginOverridesBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + pluginOverridesBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder getPluginOverridesBuilder() { + return getPluginOverridesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + public flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder getPluginOverridesOrBuilder() { + if ((targetCase_ == 6) && (pluginOverridesBuilder_ != null)) { + return pluginOverridesBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder> + getPluginOverridesFieldBuilder() { + if (pluginOverridesBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); + } + pluginOverridesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.PluginOverrides, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return pluginOverridesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder> workflowExecutionConfigBuilder_; + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public boolean hasWorkflowExecutionConfig() { + return targetCase_ == 7; + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getWorkflowExecutionConfig() { + if (workflowExecutionConfigBuilder_ == null) { + if (targetCase_ == 7) { + return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); + } else { + if (targetCase_ == 7) { + return workflowExecutionConfigBuilder_.getMessage(); + } + return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public Builder setWorkflowExecutionConfig(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig value) { + if (workflowExecutionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + workflowExecutionConfigBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public Builder setWorkflowExecutionConfig( + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder builderForValue) { + if (workflowExecutionConfigBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + workflowExecutionConfigBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 7; + return this; + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public Builder mergeWorkflowExecutionConfig(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig value) { + if (workflowExecutionConfigBuilder_ == null) { + if (targetCase_ == 7 && + target_ != flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance()) { + target_ = flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.newBuilder((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 7) { + workflowExecutionConfigBuilder_.mergeFrom(value); + } + workflowExecutionConfigBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public Builder clearWorkflowExecutionConfig() { + if (workflowExecutionConfigBuilder_ == null) { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + } + workflowExecutionConfigBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder getWorkflowExecutionConfigBuilder() { + return getWorkflowExecutionConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder getWorkflowExecutionConfigOrBuilder() { + if ((targetCase_ == 7) && (workflowExecutionConfigBuilder_ != null)) { + return workflowExecutionConfigBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 7) { + return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; + } + return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder> + getWorkflowExecutionConfigFieldBuilder() { + if (workflowExecutionConfigBuilder_ == null) { + if (!(targetCase_ == 7)) { + target_ = flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); + } + workflowExecutionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder>( + (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 7; + onChanged();; + return workflowExecutionConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> clusterAssignmentBuilder_; + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public boolean hasClusterAssignment() { + return targetCase_ == 8; + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { + if (clusterAssignmentBuilder_ == null) { + if (targetCase_ == 8) { + return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; + } + return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); + } else { + if (targetCase_ == 8) { + return clusterAssignmentBuilder_.getMessage(); + } + return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public Builder setClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { + if (clusterAssignmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + clusterAssignmentBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public Builder setClusterAssignment( + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder builderForValue) { + if (clusterAssignmentBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + clusterAssignmentBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 8; + return this; + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public Builder mergeClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { + if (clusterAssignmentBuilder_ == null) { + if (targetCase_ == 8 && + target_ != flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance()) { + target_ = flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.newBuilder((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 8) { + clusterAssignmentBuilder_.mergeFrom(value); + } + clusterAssignmentBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public Builder clearClusterAssignment() { + if (clusterAssignmentBuilder_ == null) { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + } + clusterAssignmentBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder getClusterAssignmentBuilder() { + return getClusterAssignmentFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { + if ((targetCase_ == 8) && (clusterAssignmentBuilder_ != null)) { + return clusterAssignmentBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 8) { + return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; + } + return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> + getClusterAssignmentFieldBuilder() { + if (clusterAssignmentBuilder_ == null) { + if (!(targetCase_ == 8)) { + target_ = flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); + } + clusterAssignmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder>( + (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 8; + onChanged();; + return clusterAssignmentBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.MatchingAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) + private static final flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchingAttributes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchableAttributesConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchableAttributesConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes(); + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder(); + + /** + * string domain = 2; + */ + java.lang.String getDomain(); + /** + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * string project = 3; + */ + java.lang.String getProject(); + /** + * string project = 3; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + * string workflow = 4; + */ + java.lang.String getWorkflow(); + /** + * string workflow = 4; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * string launch_plan = 5; + */ + java.lang.String getLaunchPlan(); + /** + * string launch_plan = 5; + */ + com.google.protobuf.ByteString + getLaunchPlanBytes(); + } + /** + *
+   * Represents a custom set of attributes applied for either a domain; a domain and project; or
+   * domain, project and workflow name.
+   * These are used to override system level defaults for kubernetes cluster resource management,
+   * default execution values, and more all across different levels of specificity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} + */ + public static final class MatchableAttributesConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchableAttributesConfiguration) + MatchableAttributesConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchableAttributesConfiguration.newBuilder() to construct. + private MatchableAttributesConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchableAttributesConfiguration() { + domain_ = ""; + project_ = ""; + workflow_ = ""; + launchPlan_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchableAttributesConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + launchPlan_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 3; + private volatile java.lang.Object project_; + /** + * string project = 3; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + * string project = 3; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 4; + private volatile java.lang.Object workflow_; + /** + * string workflow = 4; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } + } + /** + * string workflow = 4; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAUNCH_PLAN_FIELD_NUMBER = 5; + private volatile java.lang.Object launchPlan_; + /** + * string launch_plan = 5; + */ + public java.lang.String getLaunchPlan() { + java.lang.Object ref = launchPlan_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + launchPlan_ = s; + return s; + } + } + /** + * string launch_plan = 5; + */ + public com.google.protobuf.ByteString + getLaunchPlanBytes() { + java.lang.Object ref = launchPlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + launchPlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workflow_); + } + if (!getLaunchPlanBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, launchPlan_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workflow_); + } + if (!getLaunchPlanBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, launchPlan_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (!getLaunchPlan() + .equals(other.getLaunchPlan())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlan().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a custom set of attributes applied for either a domain; a domain and project; or
+     * domain, project and workflow name.
+     * These are used to override system level defaults for kubernetes cluster resource management,
+     * default execution values, and more all across different levels of specificity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchableAttributesConfiguration) + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + domain_ = ""; + + project_ = ""; + + workflow_ = ""; + + launchPlan_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration build() { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + result.domain_ = domain_; + result.project_ = project_; + result.workflow_ = workflow_; + result.launchPlan_ = launchPlan_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (!other.getLaunchPlan().isEmpty()) { + launchPlan_ = other.launchPlan_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + + private java.lang.Object domain_ = ""; + /** + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * string project = 3; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string project = 3; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string project = 3; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + * string project = 3; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + * string project = 3; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + * string workflow = 4; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workflow = 4; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workflow = 4; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + * string workflow = 4; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + * string workflow = 4; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private java.lang.Object launchPlan_ = ""; + /** + * string launch_plan = 5; + */ + public java.lang.String getLaunchPlan() { + java.lang.Object ref = launchPlan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + launchPlan_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string launch_plan = 5; + */ + public com.google.protobuf.ByteString + getLaunchPlanBytes() { + java.lang.Object ref = launchPlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + launchPlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string launch_plan = 5; + */ + public Builder setLaunchPlan( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + launchPlan_ = value; + onChanged(); + return this; + } + /** + * string launch_plan = 5; + */ + public Builder clearLaunchPlan() { + + launchPlan_ = getDefaultInstance().getLaunchPlan(); + onChanged(); + return this; + } + /** + * string launch_plan = 5; + */ + public Builder setLaunchPlanBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + launchPlan_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.MatchableAttributesConfiguration) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) + private static final flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchableAttributesConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchableAttributesConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMatchableAttributesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request all matching resource attributes for a resource type.
+   * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} + */ + public static final class ListMatchableAttributesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesRequest) + ListMatchableAttributesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMatchableAttributesRequest.newBuilder() to construct. + private ListMatchableAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMatchableAttributesRequest() { + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMatchableAttributesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(1, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request all matching resource attributes for a resource type.
+     * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesRequest) + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest build() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(this); + result.resourceType_ = resourceType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ListMatchableAttributesRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) + private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMatchableAttributesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMatchableAttributesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListMatchableAttributesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + java.util.List + getConfigurationsList(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + int getConfigurationsCount(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + java.util.List + getConfigurationsOrBuilderList(); + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index); + } + /** + *
+   * Response for a request for all matching resource attributes for a resource type.
+   * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} + */ + public static final class ListMatchableAttributesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesResponse) + ListMatchableAttributesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMatchableAttributesResponse.newBuilder() to construct. + private ListMatchableAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListMatchableAttributesResponse() { + configurations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMatchableAttributesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + configurations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + configurations_.add( + input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); + } + + public static final int CONFIGURATIONS_FIELD_NUMBER = 1; + private java.util.List configurations_; + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List getConfigurationsList() { + return configurations_; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsOrBuilderList() { + return configurations_; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public int getConfigurationsCount() { + return configurations_.size(); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { + return configurations_.get(index); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + return configurations_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < configurations_.size(); i++) { + output.writeMessage(1, configurations_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < configurations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, configurations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)) { + return super.equals(obj); + } + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) obj; + + if (!getConfigurationsList() + .equals(other.getConfigurationsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConfigurationsCount() > 0) { + hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response for a request for all matching resource attributes for a resource type.
+     * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesResponse) + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); + } + + // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConfigurationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + configurationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { + return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse build() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse buildPartial() { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(this); + int from_bitField0_ = bitField0_; + if (configurationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.configurations_ = configurations_; + } else { + result.configurations_ = configurationsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) { + return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other) { + if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance()) return this; + if (configurationsBuilder_ == null) { + if (!other.configurations_.isEmpty()) { + if (configurations_.isEmpty()) { + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConfigurationsIsMutable(); + configurations_.addAll(other.configurations_); + } + onChanged(); + } + } else { + if (!other.configurations_.isEmpty()) { + if (configurationsBuilder_.isEmpty()) { + configurationsBuilder_.dispose(); + configurationsBuilder_ = null; + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000001); + configurationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigurationsFieldBuilder() : null; + } else { + configurationsBuilder_.addAllMessages(other.configurations_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List configurations_ = + java.util.Collections.emptyList(); + private void ensureConfigurationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + configurations_ = new java.util.ArrayList(configurations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> configurationsBuilder_; + + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List getConfigurationsList() { + if (configurationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(configurations_); + } else { + return configurationsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public int getConfigurationsCount() { + if (configurationsBuilder_ == null) { + return configurations_.size(); + } else { + return configurationsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); + } else { + return configurationsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder setConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.set(index, value); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder setConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.set(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(value); + onChanged(); + } else { + configurationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { + if (configurationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigurationsIsMutable(); + configurations_.add(index, value); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addConfigurations( + int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(index, builderForValue.build()); + onChanged(); + } else { + configurationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder addAllConfigurations( + java.lang.Iterable values) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, configurations_); + onChanged(); + } else { + configurationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder clearConfigurations() { + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + configurationsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public Builder removeConfigurations(int index) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.remove(index); + onChanged(); + } else { + configurationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder getConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( + int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); } else { + return configurationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsOrBuilderList() { + if (configurationsBuilder_ != null) { + return configurationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(configurations_); + } + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder() { + return getConfigurationsFieldBuilder().addBuilder( + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder( + int index) { + return getConfigurationsFieldBuilder().addBuilder( + index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + public java.util.List + getConfigurationsBuilderList() { + return getConfigurationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> + getConfigurationsFieldBuilder() { + if (configurationsBuilder_ == null) { + configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder>( + configurations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + configurations_ = null; + } + return configurationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ListMatchableAttributesResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) + private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(); + } + + public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMatchableAttributesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMatchableAttributesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskResourceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_PluginOverride_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_PluginOverrides_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_MatchingAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'flyteidl/admin/matchable_resource.prot" + + "o\022\016flyteidl.admin\032\033flyteidl/admin/common" + + ".proto\032\'flyteidl/admin/cluster_assignmen" + + "t.proto\032\035flyteidl/core/execution.proto\032\034" + + "flyteidl/core/security.proto\032\036google/pro" + + "tobuf/wrappers.proto\"h\n\020TaskResourceSpec" + + "\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 \001(\t\022\016\n\006memory\030\003 \001" + + "(\t\022\017\n\007storage\030\004 \001(\t\022\031\n\021ephemeral_storage" + + "\030\005 \001(\t\"~\n\026TaskResourceAttributes\0222\n\010defa" + + "ults\030\001 \001(\0132 .flyteidl.admin.TaskResource" + + "Spec\0220\n\006limits\030\002 \001(\0132 .flyteidl.admin.Ta" + + "skResourceSpec\"\235\001\n\031ClusterResourceAttrib" + + "utes\022M\n\nattributes\030\001 \003(\01329.flyteidl.admi" + + "n.ClusterResourceAttributes.AttributesEn" + + "try\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"(\n\030ExecutionQueueAttribut" + + "es\022\014\n\004tags\030\001 \003(\t\"&\n\025ExecutionClusterLabe" + + "l\022\r\n\005value\030\001 \001(\t\"\301\001\n\016PluginOverride\022\021\n\tt" + + "ask_type\030\001 \001(\t\022\021\n\tplugin_id\030\002 \003(\t\022U\n\027mis" + + "sing_plugin_behavior\030\004 \001(\01624.flyteidl.ad" + + "min.PluginOverride.MissingPluginBehavior" + + "\"2\n\025MissingPluginBehavior\022\010\n\004FAIL\020\000\022\017\n\013U" + + "SE_DEFAULT\020\001\"D\n\017PluginOverrides\0221\n\toverr" + + "ides\030\001 \003(\0132\036.flyteidl.admin.PluginOverri" + + "de\"\373\002\n\027WorkflowExecutionConfig\022\027\n\017max_pa" + + "rallelism\030\001 \001(\005\0228\n\020security_context\030\002 \001(" + + "\0132\036.flyteidl.core.SecurityContext\022C\n\026raw" + + "_output_data_config\030\003 \001(\0132#.flyteidl.adm" + + "in.RawOutputDataConfig\022&\n\006labels\030\004 \001(\0132\026" + + ".flyteidl.admin.Labels\0220\n\013annotations\030\005 " + + "\001(\0132\033.flyteidl.admin.Annotations\0221\n\rinte" + + "rruptible\030\006 \001(\0132\032.google.protobuf.BoolVa" + + "lue\022\027\n\017overwrite_cache\030\007 \001(\010\022\"\n\004envs\030\010 \001" + + "(\0132\024.flyteidl.admin.Envs\"\341\004\n\022MatchingAtt" + + "ributes\022J\n\030task_resource_attributes\030\001 \001(" + + "\0132&.flyteidl.admin.TaskResourceAttribute" + + "sH\000\022P\n\033cluster_resource_attributes\030\002 \001(\013" + + "2).flyteidl.admin.ClusterResourceAttribu" + + "tesH\000\022N\n\032execution_queue_attributes\030\003 \001(" + + "\0132(.flyteidl.admin.ExecutionQueueAttribu" + + "tesH\000\022H\n\027execution_cluster_label\030\004 \001(\0132%" + + ".flyteidl.admin.ExecutionClusterLabelH\000\022" + + "=\n\022quality_of_service\030\005 \001(\0132\037.flyteidl.c" + + "ore.QualityOfServiceH\000\022;\n\020plugin_overrid" + + "es\030\006 \001(\0132\037.flyteidl.admin.PluginOverride" + + "sH\000\022L\n\031workflow_execution_config\030\007 \001(\0132\'" + + ".flyteidl.admin.WorkflowExecutionConfigH" + + "\000\022?\n\022cluster_assignment\030\010 \001(\0132!.flyteidl" + + ".admin.ClusterAssignmentH\000B\010\n\006target\"\242\001\n" + + " MatchableAttributesConfiguration\0226\n\natt" + + "ributes\030\001 \001(\0132\".flyteidl.admin.MatchingA" + + "ttributes\022\016\n\006domain\030\002 \001(\t\022\017\n\007project\030\003 \001" + + "(\t\022\020\n\010workflow\030\004 \001(\t\022\023\n\013launch_plan\030\005 \001(" + + "\t\"Z\n\036ListMatchableAttributesRequest\0228\n\rr" + + "esource_type\030\001 \001(\0162!.flyteidl.admin.Matc" + + "hableResource\"k\n\037ListMatchableAttributes" + + "Response\022H\n\016configurations\030\001 \003(\01320.flyte" + + "idl.admin.MatchableAttributesConfigurati" + + "on*\340\001\n\021MatchableResource\022\021\n\rTASK_RESOURC" + + "E\020\000\022\024\n\020CLUSTER_RESOURCE\020\001\022\023\n\017EXECUTION_Q" + + "UEUE\020\002\022\033\n\027EXECUTION_CLUSTER_LABEL\020\003\022$\n Q" + + "UALITY_OF_SERVICE_SPECIFICATION\020\004\022\023\n\017PLU" + + "GIN_OVERRIDE\020\005\022\035\n\031WORKFLOW_EXECUTION_CON" + + "FIG\020\006\022\026\n\022CLUSTER_ASSIGNMENT\020\007B7Z5github." + + "com/flyteorg/flyteidl/gen/pb-go/flyteidl" + + "/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.Security.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskResourceSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskResourceSpec_descriptor, + new java.lang.String[] { "Cpu", "Gpu", "Memory", "Storage", "EphemeralStorage", }); + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskResourceAttributes_descriptor, + new java.lang.String[] { "Defaults", "Limits", }); + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor = + internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor, + new java.lang.String[] { "Tags", }); + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor, + new java.lang.String[] { "Value", }); + internal_static_flyteidl_admin_PluginOverride_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_PluginOverride_descriptor, + new java.lang.String[] { "TaskType", "PluginId", "MissingPluginBehavior", }); + internal_static_flyteidl_admin_PluginOverrides_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_PluginOverrides_descriptor, + new java.lang.String[] { "Overrides", }); + internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor, + new java.lang.String[] { "MaxParallelism", "SecurityContext", "RawOutputDataConfig", "Labels", "Annotations", "Interruptible", "OverwriteCache", "Envs", }); + internal_static_flyteidl_admin_MatchingAttributes_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_MatchingAttributes_descriptor, + new java.lang.String[] { "TaskResourceAttributes", "ClusterResourceAttributes", "ExecutionQueueAttributes", "ExecutionClusterLabel", "QualityOfService", "PluginOverrides", "WorkflowExecutionConfig", "ClusterAssignment", "Target", }); + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor, + new java.lang.String[] { "Attributes", "Domain", "Project", "Workflow", "LaunchPlan", }); + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor, + new java.lang.String[] { "ResourceType", }); + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor, + new java.lang.String[] { "Configurations", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.Security.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java new file mode 100644 index 0000000000..7fde076944 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java @@ -0,0 +1,15866 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +package flyteidl.admin; + +public final class NodeExecutionOuterClass { + private NodeExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface NodeExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single node execution entity.
+   * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class NodeExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetRequest) + NodeExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetRequest.newBuilder() to construct. + private NodeExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to fetch a single node execution entity.
+     * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + boolean hasWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + * string token = 3; + */ + java.lang.String getToken(); + /** + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + + /** + *
+     * Unique identifier of the parent node in the execution
+     * +optional
+     * 
+ * + * string unique_parent_id = 6; + */ + java.lang.String getUniqueParentId(); + /** + *
+     * Unique identifier of the parent node in the execution
+     * +optional
+     * 
+ * + * string unique_parent_id = 6; + */ + com.google.protobuf.ByteString + getUniqueParentIdBytes(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities.
+   * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class NodeExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionListRequest) + NodeExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionListRequest.newBuilder() to construct. + private NodeExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionListRequest() { + token_ = ""; + filters_ = ""; + uniqueParentId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (workflowExecutionId_ != null) { + subBuilder = workflowExecutionId_.toBuilder(); + } + workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowExecutionId_); + workflowExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + uniqueParentId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionId_ != null; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + return getWorkflowExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + public static final int UNIQUE_PARENT_ID_FIELD_NUMBER = 6; + private volatile java.lang.Object uniqueParentId_; + /** + *
+     * Unique identifier of the parent node in the execution
+     * +optional
+     * 
+ * + * string unique_parent_id = 6; + */ + public java.lang.String getUniqueParentId() { + java.lang.Object ref = uniqueParentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uniqueParentId_ = s; + return s; + } + } + /** + *
+     * Unique identifier of the parent node in the execution
+     * +optional
+     * 
+ * + * string unique_parent_id = 6; + */ + public com.google.protobuf.ByteString + getUniqueParentIdBytes() { + java.lang.Object ref = uniqueParentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uniqueParentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflowExecutionId_ != null) { + output.writeMessage(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + if (!getUniqueParentIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uniqueParentId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + if (!getUniqueParentIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uniqueParentId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) obj; + + if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; + if (hasWorkflowExecutionId()) { + if (!getWorkflowExecutionId() + .equals(other.getWorkflowExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!getUniqueParentId() + .equals(other.getUniqueParentId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflowExecutionId()) { + hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (37 * hash) + UNIQUE_PARENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getUniqueParentId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities.
+     * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + uniqueParentId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(this); + if (workflowExecutionIdBuilder_ == null) { + result.workflowExecutionId_ = workflowExecutionId_; + } else { + result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + result.uniqueParentId_ = uniqueParentId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance()) return this; + if (other.hasWorkflowExecutionId()) { + mergeWorkflowExecutionId(other.getWorkflowExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + if (!other.getUniqueParentId().isEmpty()) { + uniqueParentId_ = other.uniqueParentId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } else { + return workflowExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowExecutionId_ = value; + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = builderForValue.build(); + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (workflowExecutionId_ != null) { + workflowExecutionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); + } else { + workflowExecutionId_ = value; + } + onChanged(); + } else { + workflowExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder clearWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + onChanged(); + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { + + onChanged(); + return getWorkflowExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + if (workflowExecutionIdBuilder_ != null) { + return workflowExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return workflowExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowExecutionIdFieldBuilder() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWorkflowExecutionId(), + getParentForChildren(), + isClean()); + workflowExecutionId_ = null; + } + return workflowExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + + private java.lang.Object uniqueParentId_ = ""; + /** + *
+       * Unique identifier of the parent node in the execution
+       * +optional
+       * 
+ * + * string unique_parent_id = 6; + */ + public java.lang.String getUniqueParentId() { + java.lang.Object ref = uniqueParentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uniqueParentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique identifier of the parent node in the execution
+       * +optional
+       * 
+ * + * string unique_parent_id = 6; + */ + public com.google.protobuf.ByteString + getUniqueParentIdBytes() { + java.lang.Object ref = uniqueParentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uniqueParentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique identifier of the parent node in the execution
+       * +optional
+       * 
+ * + * string unique_parent_id = 6; + */ + public Builder setUniqueParentId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uniqueParentId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique identifier of the parent node in the execution
+       * +optional
+       * 
+ * + * string unique_parent_id = 6; + */ + public Builder clearUniqueParentId() { + + uniqueParentId_ = getDefaultInstance().getUniqueParentId(); + onChanged(); + return this; + } + /** + *
+       * Unique identifier of the parent node in the execution
+       * +optional
+       * 
+ * + * string unique_parent_id = 6; + */ + public Builder setUniqueParentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uniqueParentId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionForTaskListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionForTaskListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + boolean hasTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+   * This can arise when a task yields a subworkflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class NodeExecutionForTaskListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + NodeExecutionForTaskListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionForTaskListRequest.newBuilder() to construct. + private NodeExecutionForTaskListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionForTaskListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionForTaskListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (taskExecutionId_ != null) { + subBuilder = taskExecutionId_.toBuilder(); + } + taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskExecutionId_); + taskExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + return getTaskExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (taskExecutionId_ != null) { + output.writeMessage(1, getTaskExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) obj; + + if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; + if (hasTaskExecutionId()) { + if (!getTaskExecutionId() + .equals(other.getTaskExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskExecutionId()) { + hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+     * This can arise when a task yields a subworkflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(this); + if (taskExecutionIdBuilder_ == null) { + result.taskExecutionId_ = taskExecutionId_; + } else { + result.taskExecutionId_ = taskExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance()) return this; + if (other.hasTaskExecutionId()) { + mergeTaskExecutionId(other.getTaskExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } else { + return taskExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskExecutionId_ = value; + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = builderForValue.build(); + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (taskExecutionId_ != null) { + taskExecutionId_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); + } else { + taskExecutionId_ = value; + } + onChanged(); + } else { + taskExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder clearTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + onChanged(); + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { + + onChanged(); + return getTaskExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + if (taskExecutionIdBuilder_ != null) { + return taskExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return taskExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getTaskExecutionIdFieldBuilder() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getTaskExecutionId(), + getParentForChildren(), + isClean()); + taskExecutionId_ = null; + } + return taskExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionForTaskListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionForTaskListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + boolean hasMetadata(); + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata(); + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * Encapsulates all details for a single node execution entity.
+   * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+   * sub-workflow, or even a separate child-workflow execution.
+   * The same task can be called repeatedly in a single workflow but each node is unique.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int METADATA_FIELD_NUMBER = 4; + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { + return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata for Node Execution
+     * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + if (metadata_ != null) { + output.writeMessage(4, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecution)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecution other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulates all details for a single node execution entity.
+     * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+     * sub-workflow, or even a separate child-workflow execution.
+     * The same task can be called repeatedly in a single workflow but each node is unique.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecution) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecution) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecution other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder setMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder setMetadata( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder mergeMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata for Node Execution
+       * 
+ * + * .flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionMetaDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionMetaData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Node executions are grouped depending on retries of the parent
+     * Retry group is unique within the context of a parent node.
+     * 
+ * + * string retry_group = 1; + */ + java.lang.String getRetryGroup(); + /** + *
+     * Node executions are grouped depending on retries of the parent
+     * Retry group is unique within the context of a parent node.
+     * 
+ * + * string retry_group = 1; + */ + com.google.protobuf.ByteString + getRetryGroupBytes(); + + /** + *
+     * Boolean flag indicating if the node has child nodes under it
+     * This can be true when a node contains a dynamic workflow which then produces
+     * child nodes.
+     * 
+ * + * bool is_parent_node = 2; + */ + boolean getIsParentNode(); + + /** + *
+     * Node id of the node in the original workflow
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 3; + */ + java.lang.String getSpecNodeId(); + /** + *
+     * Node id of the node in the original workflow
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 3; + */ + com.google.protobuf.ByteString + getSpecNodeIdBytes(); + + /** + *
+     * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
+     * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
+     * 
+ * + * bool is_dynamic = 4; + */ + boolean getIsDynamic(); + } + /** + *
+   * Represents additional attributes related to a Node Execution
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} + */ + public static final class NodeExecutionMetaData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionMetaData) + NodeExecutionMetaDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionMetaData.newBuilder() to construct. + private NodeExecutionMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionMetaData() { + retryGroup_ = ""; + specNodeId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionMetaData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + retryGroup_ = s; + break; + } + case 16: { + + isParentNode_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + specNodeId_ = s; + break; + } + case 32: { + + isDynamic_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); + } + + public static final int RETRY_GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object retryGroup_; + /** + *
+     * Node executions are grouped depending on retries of the parent
+     * Retry group is unique within the context of a parent node.
+     * 
+ * + * string retry_group = 1; + */ + public java.lang.String getRetryGroup() { + java.lang.Object ref = retryGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + retryGroup_ = s; + return s; + } + } + /** + *
+     * Node executions are grouped depending on retries of the parent
+     * Retry group is unique within the context of a parent node.
+     * 
+ * + * string retry_group = 1; + */ + public com.google.protobuf.ByteString + getRetryGroupBytes() { + java.lang.Object ref = retryGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + retryGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_PARENT_NODE_FIELD_NUMBER = 2; + private boolean isParentNode_; + /** + *
+     * Boolean flag indicating if the node has child nodes under it
+     * This can be true when a node contains a dynamic workflow which then produces
+     * child nodes.
+     * 
+ * + * bool is_parent_node = 2; + */ + public boolean getIsParentNode() { + return isParentNode_; + } + + public static final int SPEC_NODE_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object specNodeId_; + /** + *
+     * Node id of the node in the original workflow
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 3; + */ + public java.lang.String getSpecNodeId() { + java.lang.Object ref = specNodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + specNodeId_ = s; + return s; + } + } + /** + *
+     * Node id of the node in the original workflow
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 3; + */ + public com.google.protobuf.ByteString + getSpecNodeIdBytes() { + java.lang.Object ref = specNodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + specNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_DYNAMIC_FIELD_NUMBER = 4; + private boolean isDynamic_; + /** + *
+     * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
+     * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
+     * 
+ * + * bool is_dynamic = 4; + */ + public boolean getIsDynamic() { + return isDynamic_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRetryGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, retryGroup_); + } + if (isParentNode_ != false) { + output.writeBool(2, isParentNode_); + } + if (!getSpecNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, specNodeId_); + } + if (isDynamic_ != false) { + output.writeBool(4, isDynamic_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRetryGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, retryGroup_); + } + if (isParentNode_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isParentNode_); + } + if (!getSpecNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, specNodeId_); + } + if (isDynamic_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isDynamic_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) obj; + + if (!getRetryGroup() + .equals(other.getRetryGroup())) return false; + if (getIsParentNode() + != other.getIsParentNode()) return false; + if (!getSpecNodeId() + .equals(other.getSpecNodeId())) return false; + if (getIsDynamic() + != other.getIsDynamic()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETRY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getRetryGroup().hashCode(); + hash = (37 * hash) + IS_PARENT_NODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsParentNode()); + hash = (37 * hash) + SPEC_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSpecNodeId().hashCode(); + hash = (37 * hash) + IS_DYNAMIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDynamic()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents additional attributes related to a Node Execution
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionMetaData) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + retryGroup_ = ""; + + isParentNode_ = false; + + specNodeId_ = ""; + + isDynamic_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(this); + result.retryGroup_ = retryGroup_; + result.isParentNode_ = isParentNode_; + result.specNodeId_ = specNodeId_; + result.isDynamic_ = isDynamic_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance()) return this; + if (!other.getRetryGroup().isEmpty()) { + retryGroup_ = other.retryGroup_; + onChanged(); + } + if (other.getIsParentNode() != false) { + setIsParentNode(other.getIsParentNode()); + } + if (!other.getSpecNodeId().isEmpty()) { + specNodeId_ = other.specNodeId_; + onChanged(); + } + if (other.getIsDynamic() != false) { + setIsDynamic(other.getIsDynamic()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object retryGroup_ = ""; + /** + *
+       * Node executions are grouped depending on retries of the parent
+       * Retry group is unique within the context of a parent node.
+       * 
+ * + * string retry_group = 1; + */ + public java.lang.String getRetryGroup() { + java.lang.Object ref = retryGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + retryGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Node executions are grouped depending on retries of the parent
+       * Retry group is unique within the context of a parent node.
+       * 
+ * + * string retry_group = 1; + */ + public com.google.protobuf.ByteString + getRetryGroupBytes() { + java.lang.Object ref = retryGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + retryGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Node executions are grouped depending on retries of the parent
+       * Retry group is unique within the context of a parent node.
+       * 
+ * + * string retry_group = 1; + */ + public Builder setRetryGroup( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + retryGroup_ = value; + onChanged(); + return this; + } + /** + *
+       * Node executions are grouped depending on retries of the parent
+       * Retry group is unique within the context of a parent node.
+       * 
+ * + * string retry_group = 1; + */ + public Builder clearRetryGroup() { + + retryGroup_ = getDefaultInstance().getRetryGroup(); + onChanged(); + return this; + } + /** + *
+       * Node executions are grouped depending on retries of the parent
+       * Retry group is unique within the context of a parent node.
+       * 
+ * + * string retry_group = 1; + */ + public Builder setRetryGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + retryGroup_ = value; + onChanged(); + return this; + } + + private boolean isParentNode_ ; + /** + *
+       * Boolean flag indicating if the node has child nodes under it
+       * This can be true when a node contains a dynamic workflow which then produces
+       * child nodes.
+       * 
+ * + * bool is_parent_node = 2; + */ + public boolean getIsParentNode() { + return isParentNode_; + } + /** + *
+       * Boolean flag indicating if the node has child nodes under it
+       * This can be true when a node contains a dynamic workflow which then produces
+       * child nodes.
+       * 
+ * + * bool is_parent_node = 2; + */ + public Builder setIsParentNode(boolean value) { + + isParentNode_ = value; + onChanged(); + return this; + } + /** + *
+       * Boolean flag indicating if the node has child nodes under it
+       * This can be true when a node contains a dynamic workflow which then produces
+       * child nodes.
+       * 
+ * + * bool is_parent_node = 2; + */ + public Builder clearIsParentNode() { + + isParentNode_ = false; + onChanged(); + return this; + } + + private java.lang.Object specNodeId_ = ""; + /** + *
+       * Node id of the node in the original workflow
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 3; + */ + public java.lang.String getSpecNodeId() { + java.lang.Object ref = specNodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + specNodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Node id of the node in the original workflow
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 3; + */ + public com.google.protobuf.ByteString + getSpecNodeIdBytes() { + java.lang.Object ref = specNodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + specNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Node id of the node in the original workflow
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 3; + */ + public Builder setSpecNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + specNodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Node id of the node in the original workflow
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 3; + */ + public Builder clearSpecNodeId() { + + specNodeId_ = getDefaultInstance().getSpecNodeId(); + onChanged(); + return this; + } + /** + *
+       * Node id of the node in the original workflow
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 3; + */ + public Builder setSpecNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + specNodeId_ = value; + onChanged(); + return this; + } + + private boolean isDynamic_ ; + /** + *
+       * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
+       * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
+       * 
+ * + * bool is_dynamic = 4; + */ + public boolean getIsDynamic() { + return isDynamic_; + } + /** + *
+       * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
+       * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
+       * 
+ * + * bool is_dynamic = 4; + */ + public Builder setIsDynamic(boolean value) { + + isDynamic_ = value; + onChanged(); + return this; + } + /** + *
+       * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
+       * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
+       * 
+ * + * bool is_dynamic = 4; + */ + public Builder clearIsDynamic() { + + isDynamic_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionMetaData) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionMetaData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionMetaData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + int getNodeExecutionsCount(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Request structure to retrieve a list of node execution entities.
+   * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class NodeExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionList) + NodeExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionList.newBuilder() to construct. + private NodeExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionList() { + nodeExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodeExecutions_.add( + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + private int bitField0_; + public static final int NODE_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List nodeExecutions_; + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + return nodeExecutions_.size(); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + return nodeExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + return nodeExecutions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < nodeExecutions_.size(); i++) { + output.writeMessage(1, nodeExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) obj; + + if (!getNodeExecutionsList() + .equals(other.getNodeExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeExecutionsCount() > 0) { + hash = (37 * hash) + NODE_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request structure to retrieve a list of node execution entities.
+     * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionList) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodeExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeExecutions_ = nodeExecutions_; + } else { + result.nodeExecutions_ = nodeExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance()) return this; + if (nodeExecutionsBuilder_ == null) { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutions_.isEmpty()) { + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.addAll(other.nodeExecutions_); + } + onChanged(); + } + } else { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutionsBuilder_.isEmpty()) { + nodeExecutionsBuilder_.dispose(); + nodeExecutionsBuilder_ = null; + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeExecutionsFieldBuilder() : null; + } else { + nodeExecutionsBuilder_.addAllMessages(other.nodeExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodeExecutions_ = + java.util.Collections.emptyList(); + private void ensureNodeExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeExecutions_ = new java.util.ArrayList(nodeExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> nodeExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + if (nodeExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } else { + return nodeExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.size(); + } else { + return nodeExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); + } else { + return nodeExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions(flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addAllNodeExecutions( + java.lang.Iterable values) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeExecutions_); + onChanged(); + } else { + nodeExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder clearNodeExecutions() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder removeNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.remove(index); + onChanged(); + } else { + nodeExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder getNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); } else { + return nodeExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + if (nodeExecutionsBuilder_ != null) { + return nodeExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder() { + return getNodeExecutionsFieldBuilder().addBuilder( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsBuilderList() { + return getNodeExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> + getNodeExecutionsFieldBuilder() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder>( + nodeExecutions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodeExecutions_ = null; + } + return nodeExecutionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getOutputUri(); + /** + *
+     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Raw output data produced by this node execution.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasOutputData(); + /** + *
+     * Raw output data produced by this node execution.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getOutputData(); + /** + *
+     * Raw output data produced by this node execution.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); + + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + boolean hasTaskNodeMetadata(); + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getTaskNodeMetadata(); + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder(); + + /** + *
+     * String location uniquely identifying where the deck HTML file is.
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 11; + */ + java.lang.String getDeckUri(); + /** + *
+     * String location uniquely identifying where the deck HTML file is.
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 11; + */ + com.google.protobuf.ByteString + getDeckUriBytes(); + + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+     * to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 12; + */ + java.lang.String getDynamicJobSpecUri(); + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+     * to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 12; + */ + com.google.protobuf.ByteString + getDynamicJobSpecUriBytes(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.OutputResultCase getOutputResultCase(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.TargetMetadataCase getTargetMetadataCase(); + } + /** + *
+   * Container for node execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class NodeExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionClosure) + NodeExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionClosure.newBuilder() to construct. + private NodeExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionClosure() { + phase_ = 0; + deckUri_ = ""; + dynamicJobSpecUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + break; + } + case 74: { + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 9) { + subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 9; + break; + } + case 82: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputResultCase_ == 10) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 10; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + deckUri_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + dynamicJobSpecUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + @java.lang.Deprecated OUTPUT_URI(1), + ERROR(2), + @java.lang.Deprecated OUTPUT_DATA(10), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 10: return OUTPUT_DATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TASK_NODE_METADATA(9), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 9: return TASK_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + *
+     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int OUTPUT_DATA_FIELD_NUMBER = 10; + /** + *
+     * Raw output data produced by this node execution.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputData() { + return outputResultCase_ == 10; + } + /** + *
+     * Raw output data produced by this node execution.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw output data produced by this node execution.
+     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + public static final int TASK_NODE_METADATA_FIELD_NUMBER = 9; + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public boolean hasTaskNodeMetadata() { + return targetMetadataCase_ == 9; + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getTaskNodeMetadata() { + if (targetMetadataCase_ == 9) { + return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 9) { + return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); + } + + public static final int DECK_URI_FIELD_NUMBER = 11; + private volatile java.lang.Object deckUri_; + /** + *
+     * String location uniquely identifying where the deck HTML file is.
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 11; + */ + public java.lang.String getDeckUri() { + java.lang.Object ref = deckUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deckUri_ = s; + return s; + } + } + /** + *
+     * String location uniquely identifying where the deck HTML file is.
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 11; + */ + public com.google.protobuf.ByteString + getDeckUriBytes() { + java.lang.Object ref = deckUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER = 12; + private volatile java.lang.Object dynamicJobSpecUri_; + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+     * to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 12; + */ + public java.lang.String getDynamicJobSpecUri() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dynamicJobSpecUri_ = s; + return s; + } + } + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+     * to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 12; + */ + public com.google.protobuf.ByteString + getDynamicJobSpecUriBytes() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dynamicJobSpecUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (startedAt_ != null) { + output.writeMessage(4, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(5, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(6, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + if (targetMetadataCase_ == 9) { + output.writeMessage(9, (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_); + } + if (outputResultCase_ == 10) { + output.writeMessage(10, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (!getDeckUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, deckUri_); + } + if (!getDynamicJobSpecUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dynamicJobSpecUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + if (targetMetadataCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (!getDeckUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, deckUri_); + } + if (!getDynamicJobSpecUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, dynamicJobSpecUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) obj; + + if (phase_ != other.phase_) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasUpdatedAt() != other.hasUpdatedAt()) return false; + if (hasUpdatedAt()) { + if (!getUpdatedAt() + .equals(other.getUpdatedAt())) return false; + } + if (!getDeckUri() + .equals(other.getDeckUri())) return false; + if (!getDynamicJobSpecUri() + .equals(other.getDynamicJobSpecUri())) return false; + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 10: + if (!getOutputData() + .equals(other.getOutputData())) return false; + break; + case 0: + default: + } + if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; + switch (targetMetadataCase_) { + case 8: + if (!getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata())) return false; + break; + case 9: + if (!getTaskNodeMetadata() + .equals(other.getTaskNodeMetadata())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + hash = (37 * hash) + DECK_URI_FIELD_NUMBER; + hash = (53 * hash) + getDeckUri().hashCode(); + hash = (37 * hash) + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER; + hash = (53 * hash) + getDynamicJobSpecUri().hashCode(); + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 10: + hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOutputData().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 9: + hash = (37 * hash) + TASK_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTaskNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Container for node execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionClosure) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + deckUri_ = ""; + + dynamicJobSpecUri_ = ""; + + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(this); + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 10) { + if (outputDataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputDataBuilder_.build(); + } + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + if (targetMetadataCase_ == 9) { + if (taskNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = taskNodeMetadataBuilder_.build(); + } + } + result.deckUri_ = deckUri_; + result.dynamicJobSpecUri_ = dynamicJobSpecUri_; + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (!other.getDeckUri().isEmpty()) { + deckUri_ = other.deckUri_; + onChanged(); + } + if (!other.getDynamicJobSpecUri().isEmpty()) { + dynamicJobSpecUri_ = other.dynamicJobSpecUri_; + onChanged(); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUT_DATA: { + mergeOutputData(other.getOutputData()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TASK_NODE_METADATA: { + mergeTaskNodeMetadata(other.getTaskNodeMetadata()); + break; + } + case TARGETMETADATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + /** + *
+       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputData() { + return outputResultCase_ == 10; + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 10) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (outputResultCase_ == 10) { + return outputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputDataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputDataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 10 && + outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 10) { + outputDataBuilder_.mergeFrom(value); + } + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { + return getOutputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if ((outputResultCase_ == 10) && (outputDataBuilder_ != null)) { + return outputDataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 10) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this node execution.
+       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputDataFieldBuilder() { + if (outputDataBuilder_ == null) { + if (!(outputResultCase_ == 10)) { + outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 10; + onChanged();; + return outputDataBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder>( + (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder> taskNodeMetadataBuilder_; + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public boolean hasTaskNodeMetadata() { + return targetMetadataCase_ == 9; + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getTaskNodeMetadata() { + if (taskNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 9) { + return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 9) { + return taskNodeMetadataBuilder_.getMessage(); + } + return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public Builder setTaskNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata value) { + if (taskNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + taskNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 9; + return this; + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public Builder setTaskNodeMetadata( + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder builderForValue) { + if (taskNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + taskNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 9; + return this; + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public Builder mergeTaskNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata value) { + if (taskNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 9 && + targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 9) { + taskNodeMetadataBuilder_.mergeFrom(value); + } + taskNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 9; + return this; + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public Builder clearTaskNodeMetadata() { + if (taskNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 9) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 9) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + taskNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder getTaskNodeMetadataBuilder() { + return getTaskNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 9) && (taskNodeMetadataBuilder_ != null)) { + return taskNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 9) { + return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder> + getTaskNodeMetadataFieldBuilder() { + if (taskNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 9)) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); + } + taskNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder>( + (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 9; + onChanged();; + return taskNodeMetadataBuilder_; + } + + private java.lang.Object deckUri_ = ""; + /** + *
+       * String location uniquely identifying where the deck HTML file is.
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 11; + */ + public java.lang.String getDeckUri() { + java.lang.Object ref = deckUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deckUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String location uniquely identifying where the deck HTML file is.
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 11; + */ + public com.google.protobuf.ByteString + getDeckUriBytes() { + java.lang.Object ref = deckUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String location uniquely identifying where the deck HTML file is.
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 11; + */ + public Builder setDeckUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deckUri_ = value; + onChanged(); + return this; + } + /** + *
+       * String location uniquely identifying where the deck HTML file is.
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 11; + */ + public Builder clearDeckUri() { + + deckUri_ = getDefaultInstance().getDeckUri(); + onChanged(); + return this; + } + /** + *
+       * String location uniquely identifying where the deck HTML file is.
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 11; + */ + public Builder setDeckUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deckUri_ = value; + onChanged(); + return this; + } + + private java.lang.Object dynamicJobSpecUri_ = ""; + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+       * to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 12; + */ + public java.lang.String getDynamicJobSpecUri() { + java.lang.Object ref = dynamicJobSpecUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dynamicJobSpecUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+       * to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 12; + */ + public com.google.protobuf.ByteString + getDynamicJobSpecUriBytes() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dynamicJobSpecUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+       * to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 12; + */ + public Builder setDynamicJobSpecUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dynamicJobSpecUri_ = value; + onChanged(); + return this; + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+       * to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 12; + */ + public Builder clearDynamicJobSpecUri() { + + dynamicJobSpecUri_ = getDefaultInstance().getDynamicJobSpecUri(); + onChanged(); + return this; + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
+       * to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 12; + */ + public Builder setDynamicJobSpecUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dynamicJobSpecUri_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier for a workflow execution launched by a node.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + boolean hasExecutionId(); + /** + *
+     * The identifier for a workflow execution launched by a node.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + *
+     * The identifier for a workflow execution launched by a node.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Metadata for a WorkflowNode
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTIONID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + *
+     * The identifier for a workflow execution launched by a node.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + *
+     * The identifier for a workflow execution launched by a node.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + *
+     * The identifier for a workflow execution launched by a node.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTIONID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Metadata for a WorkflowNode
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowNodeMetadata) + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata build() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + *
+       * The identifier for a workflow execution launched by a node.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) + private static final flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + int getCacheStatusValue(); + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus(); + + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + boolean hasCatalogKey(); + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + flyteidl.core.Catalog.CatalogMetadata getCatalogKey(); + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder(); + + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + java.lang.String getCheckpointUri(); + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + com.google.protobuf.ByteString + getCheckpointUriBytes(); + } + /** + *
+   * Metadata for the case in which the node is a TaskNode
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskNodeMetadata} + */ + public static final class TaskNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskNodeMetadata) + TaskNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskNodeMetadata.newBuilder() to construct. + private TaskNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskNodeMetadata() { + cacheStatus_ = 0; + checkpointUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskNodeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + cacheStatus_ = rawValue; + break; + } + case 18: { + flyteidl.core.Catalog.CatalogMetadata.Builder subBuilder = null; + if (catalogKey_ != null) { + subBuilder = catalogKey_.toBuilder(); + } + catalogKey_ = input.readMessage(flyteidl.core.Catalog.CatalogMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(catalogKey_); + catalogKey_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + checkpointUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder.class); + } + + public static final int CACHE_STATUS_FIELD_NUMBER = 1; + private int cacheStatus_; + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public int getCacheStatusValue() { + return cacheStatus_; + } + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); + return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; + } + + public static final int CATALOG_KEY_FIELD_NUMBER = 2; + private flyteidl.core.Catalog.CatalogMetadata catalogKey_; + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public boolean hasCatalogKey() { + return catalogKey_ != null; + } + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { + return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; + } + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { + return getCatalogKey(); + } + + public static final int CHECKPOINT_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object checkpointUri_; + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + public java.lang.String getCheckpointUri() { + java.lang.Object ref = checkpointUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointUri_ = s; + return s; + } + } + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + public com.google.protobuf.ByteString + getCheckpointUriBytes() { + java.lang.Object ref = checkpointUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { + output.writeEnum(1, cacheStatus_); + } + if (catalogKey_ != null) { + output.writeMessage(2, getCatalogKey()); + } + if (!getCheckpointUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, checkpointUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, cacheStatus_); + } + if (catalogKey_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCatalogKey()); + } + if (!getCheckpointUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, checkpointUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) obj; + + if (cacheStatus_ != other.cacheStatus_) return false; + if (hasCatalogKey() != other.hasCatalogKey()) return false; + if (hasCatalogKey()) { + if (!getCatalogKey() + .equals(other.getCatalogKey())) return false; + } + if (!getCheckpointUri() + .equals(other.getCheckpointUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CACHE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + cacheStatus_; + if (hasCatalogKey()) { + hash = (37 * hash) + CATALOG_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCatalogKey().hashCode(); + } + hash = (37 * hash) + CHECKPOINT_URI_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Metadata for the case in which the node is a TaskNode
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskNodeMetadata) + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + cacheStatus_ = 0; + + if (catalogKeyBuilder_ == null) { + catalogKey_ = null; + } else { + catalogKey_ = null; + catalogKeyBuilder_ = null; + } + checkpointUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata build() { + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata(this); + result.cacheStatus_ = cacheStatus_; + if (catalogKeyBuilder_ == null) { + result.catalogKey_ = catalogKey_; + } else { + result.catalogKey_ = catalogKeyBuilder_.build(); + } + result.checkpointUri_ = checkpointUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance()) return this; + if (other.cacheStatus_ != 0) { + setCacheStatusValue(other.getCacheStatusValue()); + } + if (other.hasCatalogKey()) { + mergeCatalogKey(other.getCatalogKey()); + } + if (!other.getCheckpointUri().isEmpty()) { + checkpointUri_ = other.checkpointUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int cacheStatus_ = 0; + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public int getCacheStatusValue() { + return cacheStatus_; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public Builder setCacheStatusValue(int value) { + cacheStatus_ = value; + onChanged(); + return this; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); + return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public Builder setCacheStatus(flyteidl.core.Catalog.CatalogCacheStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + cacheStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public Builder clearCacheStatus() { + + cacheStatus_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Catalog.CatalogMetadata catalogKey_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> catalogKeyBuilder_; + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public boolean hasCatalogKey() { + return catalogKeyBuilder_ != null || catalogKey_ != null; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { + if (catalogKeyBuilder_ == null) { + return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; + } else { + return catalogKeyBuilder_.getMessage(); + } + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder setCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { + if (catalogKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalogKey_ = value; + onChanged(); + } else { + catalogKeyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder setCatalogKey( + flyteidl.core.Catalog.CatalogMetadata.Builder builderForValue) { + if (catalogKeyBuilder_ == null) { + catalogKey_ = builderForValue.build(); + onChanged(); + } else { + catalogKeyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder mergeCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { + if (catalogKeyBuilder_ == null) { + if (catalogKey_ != null) { + catalogKey_ = + flyteidl.core.Catalog.CatalogMetadata.newBuilder(catalogKey_).mergeFrom(value).buildPartial(); + } else { + catalogKey_ = value; + } + onChanged(); + } else { + catalogKeyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder clearCatalogKey() { + if (catalogKeyBuilder_ == null) { + catalogKey_ = null; + onChanged(); + } else { + catalogKey_ = null; + catalogKeyBuilder_ = null; + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadata.Builder getCatalogKeyBuilder() { + + onChanged(); + return getCatalogKeyFieldBuilder().getBuilder(); + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { + if (catalogKeyBuilder_ != null) { + return catalogKeyBuilder_.getMessageOrBuilder(); + } else { + return catalogKey_ == null ? + flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; + } + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> + getCatalogKeyFieldBuilder() { + if (catalogKeyBuilder_ == null) { + catalogKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder>( + getCatalogKey(), + getParentForChildren(), + isClean()); + catalogKey_ = null; + } + return catalogKeyBuilder_; + } + + private java.lang.Object checkpointUri_ = ""; + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public java.lang.String getCheckpointUri() { + java.lang.Object ref = checkpointUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public com.google.protobuf.ByteString + getCheckpointUriBytes() { + java.lang.Object ref = checkpointUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public Builder setCheckpointUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + checkpointUri_ = value; + onChanged(); + return this; + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public Builder clearCheckpointUri() { + + checkpointUri_ = getDefaultInstance().getCheckpointUri(); + onChanged(); + return this; + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public Builder setCheckpointUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + checkpointUri_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskNodeMetadata) + private static final flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DynamicWorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.DynamicWorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + boolean hasCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); + + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + java.lang.String getDynamicJobSpecUri(); + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + com.google.protobuf.ByteString + getDynamicJobSpecUriBytes(); + } + /** + *
+   * For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.DynamicWorkflowNodeMetadata} + */ + public static final class DynamicWorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.DynamicWorkflowNodeMetadata) + DynamicWorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicWorkflowNodeMetadata.newBuilder() to construct. + private DynamicWorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DynamicWorkflowNodeMetadata() { + dynamicJobSpecUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DynamicWorkflowNodeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; + if (compiledWorkflow_ != null) { + subBuilder = compiledWorkflow_.toBuilder(); + } + compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledWorkflow_); + compiledWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + dynamicJobSpecUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 2; + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflow_ != null; + } + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + return getCompiledWorkflow(); + } + + public static final int DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object dynamicJobSpecUri_; + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public java.lang.String getDynamicJobSpecUri() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dynamicJobSpecUri_ = s; + return s; + } + } + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public com.google.protobuf.ByteString + getDynamicJobSpecUriBytes() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dynamicJobSpecUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (compiledWorkflow_ != null) { + output.writeMessage(2, getCompiledWorkflow()); + } + if (!getDynamicJobSpecUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dynamicJobSpecUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (compiledWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCompiledWorkflow()); + } + if (!getDynamicJobSpecUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dynamicJobSpecUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; + if (hasCompiledWorkflow()) { + if (!getCompiledWorkflow() + .equals(other.getCompiledWorkflow())) return false; + } + if (!getDynamicJobSpecUri() + .equals(other.getDynamicJobSpecUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasCompiledWorkflow()) { + hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCompiledWorkflow().hashCode(); + } + hash = (37 * hash) + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER; + hash = (53 * hash) + getDynamicJobSpecUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.DynamicWorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.DynamicWorkflowNodeMetadata) + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + dynamicJobSpecUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata build() { + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (compiledWorkflowBuilder_ == null) { + result.compiledWorkflow_ = compiledWorkflow_; + } else { + result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); + } + result.dynamicJobSpecUri_ = dynamicJobSpecUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasCompiledWorkflow()) { + mergeCompiledWorkflow(other.getCompiledWorkflow()); + } + if (!other.getDynamicJobSpecUri().isEmpty()) { + dynamicJobSpecUri_ = other.dynamicJobSpecUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } else { + return compiledWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledWorkflow_ = value; + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder setCompiledWorkflow( + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = builderForValue.build(); + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (compiledWorkflow_ != null) { + compiledWorkflow_ = + flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); + } else { + compiledWorkflow_ = value; + } + onChanged(); + } else { + compiledWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder clearCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + onChanged(); + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { + + onChanged(); + return getCompiledWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + if (compiledWorkflowBuilder_ != null) { + return compiledWorkflowBuilder_.getMessageOrBuilder(); + } else { + return compiledWorkflow_ == null ? + flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> + getCompiledWorkflowFieldBuilder() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( + getCompiledWorkflow(), + getParentForChildren(), + isClean()); + compiledWorkflow_ = null; + } + return compiledWorkflowBuilder_; + } + + private java.lang.Object dynamicJobSpecUri_ = ""; + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public java.lang.String getDynamicJobSpecUri() { + java.lang.Object ref = dynamicJobSpecUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dynamicJobSpecUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public com.google.protobuf.ByteString + getDynamicJobSpecUriBytes() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dynamicJobSpecUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public Builder setDynamicJobSpecUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dynamicJobSpecUri_ = value; + onChanged(); + return this; + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public Builder clearDynamicJobSpecUri() { + + dynamicJobSpecUri_ = getDefaultInstance().getDynamicJobSpecUri(); + onChanged(); + return this; + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public Builder setDynamicJobSpecUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dynamicJobSpecUri_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.DynamicWorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.DynamicWorkflowNodeMetadata) + private static final flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicWorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DynamicWorkflowNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output for a node execution.
+   * By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class NodeExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataRequest) + NodeExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataRequest.newBuilder() to construct. + private NodeExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request structure to fetch inputs and output for a node execution.
+     * By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + boolean hasFullInputs(); + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + flyteidl.core.Literals.LiteralMap getFullInputs(); + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder(); + + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold. 
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + boolean hasFullOutputs(); + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold. 
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + flyteidl.core.Literals.LiteralMap getFullOutputs(); + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold. 
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder(); + + /** + *
+     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+     * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + boolean hasDynamicWorkflow(); + /** + *
+     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+     * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDynamicWorkflow(); + /** + *
+     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+     * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder(); + + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + boolean hasFlyteUrls(); + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + flyteidl.admin.Common.FlyteURLs getFlyteUrls(); + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder(); + } + /** + *
+   * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class NodeExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataResponse) + NodeExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataResponse.newBuilder() to construct. + private NodeExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fullInputs_ != null) { + subBuilder = fullInputs_.toBuilder(); + } + fullInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullInputs_); + fullInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fullOutputs_ != null) { + subBuilder = fullOutputs_.toBuilder(); + } + fullOutputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullOutputs_); + fullOutputs_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder subBuilder = null; + if (dynamicWorkflow_ != null) { + subBuilder = dynamicWorkflow_.toBuilder(); + } + dynamicWorkflow_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dynamicWorkflow_); + dynamicWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.admin.Common.FlyteURLs.Builder subBuilder = null; + if (flyteUrls_ != null) { + subBuilder = flyteUrls_.toBuilder(); + } + flyteUrls_ = input.readMessage(flyteidl.admin.Common.FlyteURLs.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(flyteUrls_); + flyteUrls_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + public static final int FULL_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Literals.LiteralMap fullInputs_; + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public boolean hasFullInputs() { + return fullInputs_ != null; + } + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getFullInputs() { + return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { + return getFullInputs(); + } + + public static final int FULL_OUTPUTS_FIELD_NUMBER = 4; + private flyteidl.core.Literals.LiteralMap fullOutputs_; + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold. 
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public boolean hasFullOutputs() { + return fullOutputs_ != null; + } + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold. 
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFullOutputs() { + return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold. 
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { + return getFullOutputs(); + } + + public static final int DYNAMIC_WORKFLOW_FIELD_NUMBER = 16; + private flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata dynamicWorkflow_; + /** + *
+     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+     * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public boolean hasDynamicWorkflow() { + return dynamicWorkflow_ != null; + } + /** + *
+     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+     * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDynamicWorkflow() { + return dynamicWorkflow_ == null ? flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; + } + /** + *
+     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+     * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { + return getDynamicWorkflow(); + } + + public static final int FLYTE_URLS_FIELD_NUMBER = 17; + private flyteidl.admin.Common.FlyteURLs flyteUrls_; + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public boolean hasFlyteUrls() { + return flyteUrls_ != null; + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { + return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { + return getFlyteUrls(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + if (fullInputs_ != null) { + output.writeMessage(3, getFullInputs()); + } + if (fullOutputs_ != null) { + output.writeMessage(4, getFullOutputs()); + } + if (dynamicWorkflow_ != null) { + output.writeMessage(16, getDynamicWorkflow()); + } + if (flyteUrls_ != null) { + output.writeMessage(17, getFlyteUrls()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + if (fullInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFullInputs()); + } + if (fullOutputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFullOutputs()); + } + if (dynamicWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getDynamicWorkflow()); + } + if (flyteUrls_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getFlyteUrls()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (hasFullInputs() != other.hasFullInputs()) return false; + if (hasFullInputs()) { + if (!getFullInputs() + .equals(other.getFullInputs())) return false; + } + if (hasFullOutputs() != other.hasFullOutputs()) return false; + if (hasFullOutputs()) { + if (!getFullOutputs() + .equals(other.getFullOutputs())) return false; + } + if (hasDynamicWorkflow() != other.hasDynamicWorkflow()) return false; + if (hasDynamicWorkflow()) { + if (!getDynamicWorkflow() + .equals(other.getDynamicWorkflow())) return false; + } + if (hasFlyteUrls() != other.hasFlyteUrls()) return false; + if (hasFlyteUrls()) { + if (!getFlyteUrls() + .equals(other.getFlyteUrls())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + if (hasFullInputs()) { + hash = (37 * hash) + FULL_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFullInputs().hashCode(); + } + if (hasFullOutputs()) { + hash = (37 * hash) + FULL_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFullOutputs().hashCode(); + } + if (hasDynamicWorkflow()) { + hash = (37 * hash) + DYNAMIC_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getDynamicWorkflow().hashCode(); + } + if (hasFlyteUrls()) { + hash = (37 * hash) + FLYTE_URLS_FIELD_NUMBER; + hash = (53 * hash) + getFlyteUrls().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataResponse) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + if (fullInputsBuilder_ == null) { + fullInputs_ = null; + } else { + fullInputs_ = null; + fullInputsBuilder_ = null; + } + if (fullOutputsBuilder_ == null) { + fullOutputs_ = null; + } else { + fullOutputs_ = null; + fullOutputsBuilder_ = null; + } + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflow_ = null; + } else { + dynamicWorkflow_ = null; + dynamicWorkflowBuilder_ = null; + } + if (flyteUrlsBuilder_ == null) { + flyteUrls_ = null; + } else { + flyteUrls_ = null; + flyteUrlsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (fullInputsBuilder_ == null) { + result.fullInputs_ = fullInputs_; + } else { + result.fullInputs_ = fullInputsBuilder_.build(); + } + if (fullOutputsBuilder_ == null) { + result.fullOutputs_ = fullOutputs_; + } else { + result.fullOutputs_ = fullOutputsBuilder_.build(); + } + if (dynamicWorkflowBuilder_ == null) { + result.dynamicWorkflow_ = dynamicWorkflow_; + } else { + result.dynamicWorkflow_ = dynamicWorkflowBuilder_.build(); + } + if (flyteUrlsBuilder_ == null) { + result.flyteUrls_ = flyteUrls_; + } else { + result.flyteUrls_ = flyteUrlsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + if (other.hasFullInputs()) { + mergeFullInputs(other.getFullInputs()); + } + if (other.hasFullOutputs()) { + mergeFullOutputs(other.getFullOutputs()); + } + if (other.hasDynamicWorkflow()) { + mergeDynamicWorkflow(other.getDynamicWorkflow()); + } + if (other.hasFlyteUrls()) { + mergeFlyteUrls(other.getFlyteUrls()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fullInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullInputsBuilder_; + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public boolean hasFullInputs() { + return fullInputsBuilder_ != null || fullInputs_ != null; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getFullInputs() { + if (fullInputsBuilder_ == null) { + return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } else { + return fullInputsBuilder_.getMessage(); + } + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder setFullInputs(flyteidl.core.Literals.LiteralMap value) { + if (fullInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullInputs_ = value; + onChanged(); + } else { + fullInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder setFullInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fullInputsBuilder_ == null) { + fullInputs_ = builderForValue.build(); + onChanged(); + } else { + fullInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder mergeFullInputs(flyteidl.core.Literals.LiteralMap value) { + if (fullInputsBuilder_ == null) { + if (fullInputs_ != null) { + fullInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fullInputs_).mergeFrom(value).buildPartial(); + } else { + fullInputs_ = value; + } + onChanged(); + } else { + fullInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder clearFullInputs() { + if (fullInputsBuilder_ == null) { + fullInputs_ = null; + onChanged(); + } else { + fullInputs_ = null; + fullInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFullInputsBuilder() { + + onChanged(); + return getFullInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { + if (fullInputsBuilder_ != null) { + return fullInputsBuilder_.getMessageOrBuilder(); + } else { + return fullInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFullInputsFieldBuilder() { + if (fullInputsBuilder_ == null) { + fullInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFullInputs(), + getParentForChildren(), + isClean()); + fullInputs_ = null; + } + return fullInputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fullOutputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullOutputsBuilder_; + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public boolean hasFullOutputs() { + return fullOutputsBuilder_ != null || fullOutputs_ != null; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFullOutputs() { + if (fullOutputsBuilder_ == null) { + return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } else { + return fullOutputsBuilder_.getMessage(); + } + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder setFullOutputs(flyteidl.core.Literals.LiteralMap value) { + if (fullOutputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullOutputs_ = value; + onChanged(); + } else { + fullOutputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder setFullOutputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fullOutputsBuilder_ == null) { + fullOutputs_ = builderForValue.build(); + onChanged(); + } else { + fullOutputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder mergeFullOutputs(flyteidl.core.Literals.LiteralMap value) { + if (fullOutputsBuilder_ == null) { + if (fullOutputs_ != null) { + fullOutputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fullOutputs_).mergeFrom(value).buildPartial(); + } else { + fullOutputs_ = value; + } + onChanged(); + } else { + fullOutputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder clearFullOutputs() { + if (fullOutputsBuilder_ == null) { + fullOutputs_ = null; + onChanged(); + } else { + fullOutputs_ = null; + fullOutputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFullOutputsBuilder() { + + onChanged(); + return getFullOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { + if (fullOutputsBuilder_ != null) { + return fullOutputsBuilder_.getMessageOrBuilder(); + } else { + return fullOutputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold. 
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFullOutputsFieldBuilder() { + if (fullOutputsBuilder_ == null) { + fullOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFullOutputs(), + getParentForChildren(), + isClean()); + fullOutputs_ = null; + } + return fullOutputsBuilder_; + } + + private flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata dynamicWorkflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder> dynamicWorkflowBuilder_; + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public boolean hasDynamicWorkflow() { + return dynamicWorkflowBuilder_ != null || dynamicWorkflow_ != null; + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDynamicWorkflow() { + if (dynamicWorkflowBuilder_ == null) { + return dynamicWorkflow_ == null ? flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; + } else { + return dynamicWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder setDynamicWorkflow(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata value) { + if (dynamicWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dynamicWorkflow_ = value; + onChanged(); + } else { + dynamicWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder setDynamicWorkflow( + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder builderForValue) { + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflow_ = builderForValue.build(); + onChanged(); + } else { + dynamicWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder mergeDynamicWorkflow(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata value) { + if (dynamicWorkflowBuilder_ == null) { + if (dynamicWorkflow_ != null) { + dynamicWorkflow_ = + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.newBuilder(dynamicWorkflow_).mergeFrom(value).buildPartial(); + } else { + dynamicWorkflow_ = value; + } + onChanged(); + } else { + dynamicWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder clearDynamicWorkflow() { + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflow_ = null; + onChanged(); + } else { + dynamicWorkflow_ = null; + dynamicWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder getDynamicWorkflowBuilder() { + + onChanged(); + return getDynamicWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { + if (dynamicWorkflowBuilder_ != null) { + return dynamicWorkflowBuilder_.getMessageOrBuilder(); + } else { + return dynamicWorkflow_ == null ? + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; + } + } + /** + *
+       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
+       * 
+ * + * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder> + getDynamicWorkflowFieldBuilder() { + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder>( + getDynamicWorkflow(), + getParentForChildren(), + isClean()); + dynamicWorkflow_ = null; + } + return dynamicWorkflowBuilder_; + } + + private flyteidl.admin.Common.FlyteURLs flyteUrls_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> flyteUrlsBuilder_; + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public boolean hasFlyteUrls() { + return flyteUrlsBuilder_ != null || flyteUrls_ != null; + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { + if (flyteUrlsBuilder_ == null) { + return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; + } else { + return flyteUrlsBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public Builder setFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { + if (flyteUrlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flyteUrls_ = value; + onChanged(); + } else { + flyteUrlsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public Builder setFlyteUrls( + flyteidl.admin.Common.FlyteURLs.Builder builderForValue) { + if (flyteUrlsBuilder_ == null) { + flyteUrls_ = builderForValue.build(); + onChanged(); + } else { + flyteUrlsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public Builder mergeFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { + if (flyteUrlsBuilder_ == null) { + if (flyteUrls_ != null) { + flyteUrls_ = + flyteidl.admin.Common.FlyteURLs.newBuilder(flyteUrls_).mergeFrom(value).buildPartial(); + } else { + flyteUrls_ = value; + } + onChanged(); + } else { + flyteUrlsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public Builder clearFlyteUrls() { + if (flyteUrlsBuilder_ == null) { + flyteUrls_ = null; + onChanged(); + } else { + flyteUrls_ = null; + flyteUrlsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public flyteidl.admin.Common.FlyteURLs.Builder getFlyteUrlsBuilder() { + + onChanged(); + return getFlyteUrlsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { + if (flyteUrlsBuilder_ != null) { + return flyteUrlsBuilder_.getMessageOrBuilder(); + } else { + return flyteUrls_ == null ? + flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; + } + } + /** + * .flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> + getFlyteUrlsFieldBuilder() { + if (flyteUrlsBuilder_ == null) { + flyteUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder>( + getFlyteUrls(), + getParentForChildren(), + isClean()); + flyteUrls_ = null; + } + return flyteUrlsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n#flyteidl/admin/node_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\033flyte" + + "idl/core/catalog.proto\032\034flyteidl/core/co" + + "mpiler.proto\032\036flyteidl/core/identifier.p" + + "roto\032\034flyteidl/core/literals.proto\032\037goog" + + "le/protobuf/timestamp.proto\032\036google/prot" + + "obuf/duration.proto\"M\n\027NodeExecutionGetR" + + "equest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + + "xecutionIdentifier\"\325\001\n\030NodeExecutionList" + + "Request\022I\n\025workflow_execution_id\030\001 \001(\0132*" + + ".flyteidl.core.WorkflowExecutionIdentifi" + + "er\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filt" + + "ers\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.ad" + + "min.Sort\022\030\n\020unique_parent_id\030\006 \001(\t\"\272\001\n\037N" + + "odeExecutionForTaskListRequest\022A\n\021task_e" + + "xecution_id\030\001 \001(\0132&.flyteidl.core.TaskEx" + + "ecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" + + "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" + + "\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExecutio" + + "n\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeExecut" + + "ionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007clos" + + "ure\030\003 \001(\0132$.flyteidl.admin.NodeExecution" + + "Closure\0227\n\010metadata\030\004 \001(\0132%.flyteidl.adm" + + "in.NodeExecutionMetaData\"n\n\025NodeExecutio" + + "nMetaData\022\023\n\013retry_group\030\001 \001(\t\022\026\n\016is_par" + + "ent_node\030\002 \001(\010\022\024\n\014spec_node_id\030\003 \001(\t\022\022\n\n" + + "is_dynamic\030\004 \001(\010\"Z\n\021NodeExecutionList\0226\n" + + "\017node_executions\030\001 \003(\0132\035.flyteidl.admin." + + "NodeExecution\022\r\n\005token\030\002 \001(\t\"\342\004\n\024NodeExe" + + "cutionClosure\022\030\n\noutput_uri\030\001 \001(\tB\002\030\001H\000\022" + + ".\n\005error\030\002 \001(\0132\035.flyteidl.core.Execution" + + "ErrorH\000\0224\n\013output_data\030\n \001(\0132\031.flyteidl." + + "core.LiteralMapB\002\030\001H\000\0221\n\005phase\030\003 \001(\0162\".f" + + "lyteidl.core.NodeExecution.Phase\022.\n\nstar" + + "ted_at\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\022+\n\010duration\030\005 \001(\0132\031.google.protobuf.Dur" + + "ation\022.\n\ncreated_at\030\006 \001(\0132\032.google.proto" + + "buf.Timestamp\022.\n\nupdated_at\030\007 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022F\n\026workflow_node_m" + + "etadata\030\010 \001(\0132$.flyteidl.admin.WorkflowN" + + "odeMetadataH\001\022>\n\022task_node_metadata\030\t \001(" + + "\0132 .flyteidl.admin.TaskNodeMetadataH\001\022\020\n" + + "\010deck_uri\030\013 \001(\t\022\034\n\024dynamic_job_spec_uri\030" + + "\014 \001(\tB\017\n\routput_resultB\021\n\017target_metadat" + + "a\"W\n\024WorkflowNodeMetadata\022?\n\013executionId" + + "\030\001 \001(\0132*.flyteidl.core.WorkflowExecution" + + "Identifier\"\230\001\n\020TaskNodeMetadata\0227\n\014cache" + + "_status\030\001 \001(\0162!.flyteidl.core.CatalogCac" + + "heStatus\0223\n\013catalog_key\030\002 \001(\0132\036.flyteidl" + + ".core.CatalogMetadata\022\026\n\016checkpoint_uri\030" + + "\004 \001(\t\"\245\001\n\033DynamicWorkflowNodeMetadata\022%\n" + + "\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A\n\021" + + "compiled_workflow\030\002 \001(\0132&.flyteidl.core." + + "CompiledWorkflowClosure\022\034\n\024dynamic_job_s" + + "pec_uri\030\003 \001(\t\"Q\n\033NodeExecutionGetDataReq" + + "uest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeExe" + + "cutionIdentifier\"\320\002\n\034NodeExecutionGetDat" + + "aResponse\022+\n\006inputs\030\001 \001(\0132\027.flyteidl.adm" + + "in.UrlBlobB\002\030\001\022,\n\007outputs\030\002 \001(\0132\027.flytei" + + "dl.admin.UrlBlobB\002\030\001\022.\n\013full_inputs\030\003 \001(" + + "\0132\031.flyteidl.core.LiteralMap\022/\n\014full_out" + + "puts\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022E\n" + + "\020dynamic_workflow\030\020 \001(\0132+.flyteidl.admin" + + ".DynamicWorkflowNodeMetadata\022-\n\nflyte_ur" + + "ls\030\021 \001(\0132\031.flyteidl.admin.FlyteURLsB7Z5g" + + "ithub.com/flyteorg/flyteidl/gen/pb-go/fl" + + "yteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.Catalog.getDescriptor(), + flyteidl.core.Compiler.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor, + new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", "UniqueParentId", }); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor, + new java.lang.String[] { "TaskExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", "Metadata", }); + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor, + new java.lang.String[] { "RetryGroup", "IsParentNode", "SpecNodeId", "IsDynamic", }); + internal_static_flyteidl_admin_NodeExecutionList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionList_descriptor, + new java.lang.String[] { "NodeExecutions", "Token", }); + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "OutputData", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "WorkflowNodeMetadata", "TaskNodeMetadata", "DeckUri", "DynamicJobSpecUri", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_admin_TaskNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskNodeMetadata_descriptor, + new java.lang.String[] { "CacheStatus", "CatalogKey", "CheckpointUri", }); + internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor, + new java.lang.String[] { "Id", "CompiledWorkflow", "DynamicJobSpecUri", }); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", "FullInputs", "FullOutputs", "DynamicWorkflow", "FlyteUrls", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.Catalog.getDescriptor(); + flyteidl.core.Compiler.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Notification.java b/flyteidl/gen/pb-java/flyteidl/admin/Notification.java new file mode 100644 index 0000000000..934af41b89 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Notification.java @@ -0,0 +1,1325 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +package flyteidl.admin; + +public final class Notification { + private Notification() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EmailMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + java.lang.String getSenderEmail(); + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + com.google.protobuf.ByteString + getSenderEmailBytes(); + + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + java.lang.String getSubjectLine(); + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + com.google.protobuf.ByteString + getSubjectLineBytes(); + + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + java.lang.String getBody(); + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + com.google.protobuf.ByteString + getBodyBytes(); + } + /** + *
+   * Represents the Email object that is sent to a publisher/subscriber
+   * to forward the notification.
+   * Note: This is internal to Admin and doesn't need to be exposed to other components.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class EmailMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailMessage) + EmailMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailMessage.newBuilder() to construct. + private EmailMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailMessage() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + senderEmail_ = ""; + subjectLine_ = ""; + body_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + senderEmail_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subjectLine_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + body_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + private int bitField0_; + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + public static final int SENDER_EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object senderEmail_; + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderEmail_ = s; + return s; + } + } + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_LINE_FIELD_NUMBER = 3; + private volatile java.lang.Object subjectLine_; + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectLine_ = s; + return s; + } + } + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BODY_FIELD_NUMBER = 4; + private volatile java.lang.Object body_; + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } + } + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + if (!getSenderEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + if (!getSenderEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.Notification.EmailMessage)) { + return super.equals(obj); + } + flyteidl.admin.Notification.EmailMessage other = (flyteidl.admin.Notification.EmailMessage) obj; + + if (!getRecipientsEmailList() + .equals(other.getRecipientsEmailList())) return false; + if (!getSenderEmail() + .equals(other.getSenderEmail())) return false; + if (!getSubjectLine() + .equals(other.getSubjectLine())) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (37 * hash) + SENDER_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getSenderEmail().hashCode(); + hash = (37 * hash) + SUBJECT_LINE_FIELD_NUMBER; + hash = (53 * hash) + getSubjectLine().hashCode(); + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Notification.EmailMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents the Email object that is sent to a publisher/subscriber
+     * to forward the notification.
+     * Note: This is internal to Admin and doesn't need to be exposed to other components.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailMessage) + flyteidl.admin.Notification.EmailMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + // Construct using flyteidl.admin.Notification.EmailMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + senderEmail_ = ""; + + subjectLine_ = ""; + + body_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return flyteidl.admin.Notification.EmailMessage.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage build() { + flyteidl.admin.Notification.EmailMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage buildPartial() { + flyteidl.admin.Notification.EmailMessage result = new flyteidl.admin.Notification.EmailMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + result.senderEmail_ = senderEmail_; + result.subjectLine_ = subjectLine_; + result.body_ = body_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Notification.EmailMessage) { + return mergeFrom((flyteidl.admin.Notification.EmailMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Notification.EmailMessage other) { + if (other == flyteidl.admin.Notification.EmailMessage.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + if (!other.getSenderEmail().isEmpty()) { + senderEmail_ = other.senderEmail_; + onChanged(); + } + if (!other.getSubjectLine().isEmpty()) { + subjectLine_ = other.subjectLine_; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Notification.EmailMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Notification.EmailMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + + private java.lang.Object senderEmail_ = ""; + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + senderEmail_ = value; + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder clearSenderEmail() { + + senderEmail_ = getDefaultInstance().getSenderEmail(); + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + senderEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object subjectLine_ = ""; + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectLine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLine( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subjectLine_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder clearSubjectLine() { + + subjectLine_ = getDefaultInstance().getSubjectLine(); + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subjectLine_ = value; + onChanged(); + return this; + } + + private java.lang.Object body_ = ""; + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBody( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder clearBody() { + + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + body_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EmailMessage) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) + private static final flyteidl.admin.Notification.EmailMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Notification.EmailMessage(); + } + + public static flyteidl.admin.Notification.EmailMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmailMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!flyteidl/admin/notification.proto\022\016fly" + + "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + + "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + + "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB7Z5githu" + + "b.com/flyteorg/flyteidl/gen/pb-go/flytei" + + "dl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_EmailMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailMessage_descriptor, + new java.lang.String[] { "RecipientsEmail", "SenderEmail", "SubjectLine", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ProjectAttributesOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ProjectAttributesOuterClass.java new file mode 100644 index 0000000000..b01c6ccfae --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ProjectAttributesOuterClass.java @@ -0,0 +1,4545 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_attributes.proto + +package flyteidl.admin; + +public final class ProjectAttributesOuterClass { + private ProjectAttributesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ProjectAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + boolean hasMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); + } + /** + *
+   * Defines a set of custom matching attributes at the project level.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributes} + */ + public static final class ProjectAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributes) + ProjectAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectAttributes.newBuilder() to construct. + private ProjectAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectAttributes() { + project_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectAttributes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (matchingAttributes_ != null) { + subBuilder = matchingAttributes_.toBuilder(); + } + matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchingAttributes_); + matchingAttributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 2; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public boolean hasMatchingAttributes() { + return matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + return getMatchingAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (matchingAttributes_ != null) { + output.writeMessage(2, getMatchingAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (matchingAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMatchingAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes)) { + return super.equals(obj); + } + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; + if (hasMatchingAttributes()) { + if (!getMatchingAttributes() + .equals(other.getMatchingAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasMatchingAttributes()) { + hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a set of custom matching attributes at the project level.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributes) + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder.class); + } + + // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getDefaultInstanceForType() { + return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes build() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes buildPartial() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes(this); + result.project_ = project_; + if (matchingAttributesBuilder_ == null) { + result.matchingAttributes_ = matchingAttributes_; + } else { + result.matchingAttributes_ = matchingAttributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes) { + return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes other) { + if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (other.hasMatchingAttributes()) { + mergeMatchingAttributes(other.getMatchingAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public boolean hasMatchingAttributes() { + return matchingAttributesBuilder_ != null || matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } else { + return matchingAttributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchingAttributes_ = value; + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public Builder setMatchingAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = builderForValue.build(); + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (matchingAttributes_ != null) { + matchingAttributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); + } else { + matchingAttributes_ = value; + } + onChanged(); + } else { + matchingAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public Builder clearMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + onChanged(); + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { + + onChanged(); + return getMatchingAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + if (matchingAttributesBuilder_ != null) { + return matchingAttributesBuilder_.getMessageOrBuilder(); + } else { + return matchingAttributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getMatchingAttributesFieldBuilder() { + if (matchingAttributesBuilder_ == null) { + matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getMatchingAttributes(), + getParentForChildren(), + isClean()); + matchingAttributes_ = null; + } + return matchingAttributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributes) + private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes(); + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectAttributes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectAttributesUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes(); + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Sets custom attributes for a project
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateRequest} + */ + public static final class ProjectAttributesUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesUpdateRequest) + ProjectAttributesUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectAttributesUpdateRequest.newBuilder() to construct. + private ProjectAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectAttributesUpdateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectAttributesUpdateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; + } + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Sets custom attributes for a project
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesUpdateRequest) + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest build() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest buildPartial() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest) { + return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest other) { + if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> attributesBuilder_; + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; + } + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectAttributesUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateRequest) + private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest(); + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectAttributesUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectAttributesUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectAttributesUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateResponse} + */ + public static final class ProjectAttributesUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesUpdateResponse) + ProjectAttributesUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectAttributesUpdateResponse.newBuilder() to construct. + private ProjectAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectAttributesUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectAttributesUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesUpdateResponse) + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse build() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse buildPartial() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse) { + return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse other) { + if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectAttributesUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateResponse) + private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse(); + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectAttributesUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectAttributesUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectAttributesGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + int getResourceTypeValue(); + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request to get an individual project level attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesGetRequest} + */ + public static final class ProjectAttributesGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesGetRequest) + ProjectAttributesGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectAttributesGetRequest.newBuilder() to construct. + private ProjectAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectAttributesGetRequest() { + project_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectAttributesGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private int resourceType_; + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(2, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (resourceType_ != other.resourceType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to get an individual project level attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesGetRequest) + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest build() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest buildPartial() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest(this); + result.project_ = project_; + result.resourceType_ = resourceType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest) { + return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest other) { + if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectAttributesGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetRequest) + private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest(); + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectAttributesGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectAttributesGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectAttributesGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes(); + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Response to get an individual project level attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesGetResponse} + */ + public static final class ProjectAttributesGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesGetResponse) + ProjectAttributesGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectAttributesGetResponse.newBuilder() to construct. + private ProjectAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectAttributesGetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectAttributesGetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to get an individual project level attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesGetResponse) + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse build() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse buildPartial() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse) { + return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse other) { + if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.ProjectAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectAttributesGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetResponse) + private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse(); + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectAttributesGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectAttributesGetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectAttributesDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + int getResourceTypeValue(); + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request to delete a set matchable project level attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteRequest} + */ + public static final class ProjectAttributesDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesDeleteRequest) + ProjectAttributesDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectAttributesDeleteRequest.newBuilder() to construct. + private ProjectAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectAttributesDeleteRequest() { + project_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectAttributesDeleteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private int resourceType_; + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(2, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (resourceType_ != other.resourceType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to delete a set matchable project level attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesDeleteRequest) + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest build() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest buildPartial() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest(this); + result.project_ = project_; + result.resourceType_ = resourceType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest) { + return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest other) { + if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 2; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectAttributesDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteRequest) + private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest(); + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectAttributesDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectAttributesDeleteRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectAttributesDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteResponse} + */ + public static final class ProjectAttributesDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesDeleteResponse) + ProjectAttributesDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectAttributesDeleteResponse.newBuilder() to construct. + private ProjectAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectAttributesDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectAttributesDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesDeleteResponse) + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse build() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse buildPartial() { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse) { + return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse other) { + if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectAttributesDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteResponse) + private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse(); + } + + public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectAttributesDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectAttributesDeleteResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'flyteidl/admin/project_attributes.prot" + + "o\022\016flyteidl.admin\032\'flyteidl/admin/matcha" + + "ble_resource.proto\"e\n\021ProjectAttributes\022" + + "\017\n\007project\030\001 \001(\t\022?\n\023matching_attributes\030" + + "\002 \001(\0132\".flyteidl.admin.MatchingAttribute" + + "s\"W\n\036ProjectAttributesUpdateRequest\0225\n\na" + + "ttributes\030\001 \001(\0132!.flyteidl.admin.Project" + + "Attributes\"!\n\037ProjectAttributesUpdateRes" + + "ponse\"h\n\033ProjectAttributesGetRequest\022\017\n\007" + + "project\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.f" + + "lyteidl.admin.MatchableResource\"U\n\034Proje" + + "ctAttributesGetResponse\0225\n\nattributes\030\001 " + + "\001(\0132!.flyteidl.admin.ProjectAttributes\"k" + + "\n\036ProjectAttributesDeleteRequest\022\017\n\007proj" + + "ect\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.flyte" + + "idl.admin.MatchableResource\"!\n\037ProjectAt" + + "tributesDeleteResponseB7Z5github.com/fly" + + "teorg/flyteidl/gen/pb-go/flyteidl/adminb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ProjectAttributes_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectAttributes_descriptor, + new java.lang.String[] { "Project", "MatchingAttributes", }); + internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor, + new java.lang.String[] { "Project", "ResourceType", }); + internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor, + new java.lang.String[] { "Project", "ResourceType", }); + internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java new file mode 100644 index 0000000000..063fdd4d27 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java @@ -0,0 +1,5084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project_domain_attributes.proto + +package flyteidl.admin; + +public final class ProjectDomainAttributesOuterClass { + private ProjectDomainAttributesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ProjectDomainAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + boolean hasMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); + } + /** + *
+   * Defines a set of custom matching attributes which defines resource defaults for a project and domain.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} + */ + public static final class ProjectDomainAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributes) + ProjectDomainAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributes.newBuilder() to construct. + private ProjectDomainAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributes() { + project_ = ""; + domain_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (matchingAttributes_ != null) { + subBuilder = matchingAttributes_.toBuilder(); + } + matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchingAttributes_); + matchingAttributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 3; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public boolean hasMatchingAttributes() { + return matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + return getMatchingAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (matchingAttributes_ != null) { + output.writeMessage(3, getMatchingAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (matchingAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMatchingAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; + if (hasMatchingAttributes()) { + if (!getMatchingAttributes() + .equals(other.getMatchingAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + if (hasMatchingAttributes()) { + hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a set of custom matching attributes which defines resource defaults for a project and domain.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributes) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(this); + result.project_ = project_; + result.domain_ = domain_; + if (matchingAttributesBuilder_ == null) { + result.matchingAttributes_ = matchingAttributes_; + } else { + result.matchingAttributes_ = matchingAttributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.hasMatchingAttributes()) { + mergeMatchingAttributes(other.getMatchingAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public boolean hasMatchingAttributes() { + return matchingAttributesBuilder_ != null || matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } else { + return matchingAttributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchingAttributes_ = value; + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder setMatchingAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = builderForValue.build(); + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (matchingAttributes_ != null) { + matchingAttributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); + } else { + matchingAttributes_ = value; + } + onChanged(); + } else { + matchingAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public Builder clearMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + onChanged(); + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { + + onChanged(); + return getMatchingAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + if (matchingAttributesBuilder_ != null) { + return matchingAttributesBuilder_.getMessageOrBuilder(); + } else { + return matchingAttributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getMatchingAttributesFieldBuilder() { + if (matchingAttributesBuilder_ == null) { + matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getMatchingAttributes(), + getParentForChildren(), + isClean()); + matchingAttributes_ = null; + } + return matchingAttributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectDomainAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Sets custom attributes for a project-domain combination.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} + */ + public static final class ProjectDomainAttributesUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + ProjectDomainAttributesUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesUpdateRequest.newBuilder() to construct. + private ProjectDomainAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesUpdateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesUpdateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Sets custom attributes for a project-domain combination.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} + */ + public static final class ProjectDomainAttributesUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + ProjectDomainAttributesUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesUpdateResponse.newBuilder() to construct. + private ProjectDomainAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + int getResourceTypeValue(); + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request to get an individual project domain attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} + */ + public static final class ProjectDomainAttributesGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) + ProjectDomainAttributesGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesGetRequest.newBuilder() to construct. + private ProjectDomainAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesGetRequest() { + project_ = ""; + domain_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private int resourceType_; + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(3, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resourceType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (resourceType_ != other.resourceType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to get an individual project domain attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.resourceType_ = resourceType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Response to get an individual project domain attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} + */ + public static final class ProjectDomainAttributesGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) + ProjectDomainAttributesGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesGetResponse.newBuilder() to construct. + private ProjectDomainAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesGetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesGetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to get an individual project domain attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesGetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + int getResourceTypeValue(); + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request to delete a set matchable project domain attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} + */ + public static final class ProjectDomainAttributesDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + ProjectDomainAttributesDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesDeleteRequest.newBuilder() to construct. + private ProjectDomainAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesDeleteRequest() { + project_ = ""; + domain_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesDeleteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private int resourceType_; + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(3, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resourceType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (resourceType_ != other.resourceType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to delete a set matchable project domain attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.resourceType_ = resourceType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 3; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesDeleteRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectDomainAttributesDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} + */ + public static final class ProjectDomainAttributesDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + ProjectDomainAttributesDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDomainAttributesDeleteResponse.newBuilder() to construct. + private ProjectDomainAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectDomainAttributesDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectDomainAttributesDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse build() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse buildPartial() { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) { + return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other) { + if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) + private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(); + } + + public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDomainAttributesDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectDomainAttributesDeleteResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.flyteidl/admin/project_domain_attribut" + + "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" + + "/matchable_resource.proto\"{\n\027ProjectDoma" + + "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" + + "\002 \001(\t\022?\n\023matching_attributes\030\003 \001(\0132\".fly" + + "teidl.admin.MatchingAttributes\"c\n$Projec" + + "tDomainAttributesUpdateRequest\022;\n\nattrib" + + "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" + + "nAttributes\"\'\n%ProjectDomainAttributesUp" + + "dateResponse\"~\n!ProjectDomainAttributesG" + + "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + + "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" + + "in.MatchableResource\"a\n\"ProjectDomainAtt" + + "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" + + ".flyteidl.admin.ProjectDomainAttributes\"" + + "\201\001\n$ProjectDomainAttributesDeleteRequest" + + "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" + + "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" + + "bleResource\"\'\n%ProjectDomainAttributesDe" + + "leteResponseB7Z5github.com/flyteorg/flyt" + + "eidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor, + new java.lang.String[] { "Project", "Domain", "MatchingAttributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "ResourceType", }); + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "ResourceType", }); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java new file mode 100644 index 0000000000..8b464a4f94 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java @@ -0,0 +1,6331 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +package flyteidl.admin; + +public final class ProjectOuterClass { + private ProjectOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DomainOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Domain) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Globally unique domain name.
+     * 
+ * + * string id = 1; + */ + java.lang.String getId(); + /** + *
+     * Globally unique domain name.
+     * 
+ * + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Namespace within a project commonly used to differentiate between different service instances.
+   * e.g. "production", "development", etc.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Domain extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Domain) + DomainOrBuilder { + private static final long serialVersionUID = 0L; + // Use Domain.newBuilder() to construct. + private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Domain() { + id_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Domain( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * Globally unique domain name.
+     * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * Globally unique domain name.
+     * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.Domain)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Domain other = (flyteidl.admin.ProjectOuterClass.Domain) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.Domain prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Namespace within a project commonly used to differentiate between different service instances.
+     * e.g. "production", "development", etc.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Domain) + flyteidl.admin.ProjectOuterClass.DomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Domain.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain build() { + flyteidl.admin.ProjectOuterClass.Domain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain buildPartial() { + flyteidl.admin.ProjectOuterClass.Domain result = new flyteidl.admin.ProjectOuterClass.Domain(this); + result.id_ = id_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Domain) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Domain)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Domain other) { + if (other == flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Domain parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Domain) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + *
+       * Globally unique domain name.
+       * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Globally unique domain name.
+       * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Globally unique domain name.
+       * 
+ * + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * Globally unique domain name.
+       * 
+ * + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * Globally unique domain name.
+       * 
+ * + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Domain) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) + private static final flyteidl.admin.ProjectOuterClass.Domain DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Domain(); + } + + public static flyteidl.admin.ProjectOuterClass.Domain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Domain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Domain(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Project) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Globally unique project name.
+     * 
+ * + * string id = 1; + */ + java.lang.String getId(); + /** + *
+     * Globally unique project name.
+     * 
+ * + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.Domain getDomains(int index); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + int getDomainsCount(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsOrBuilderList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index); + + /** + * string description = 4; + */ + java.lang.String getDescription(); + /** + * string description = 4; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * Leverage Labels from flyteidl.admin.common.proto to
+     * tag projects with ownership information.
+     * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + boolean hasLabels(); + /** + *
+     * Leverage Labels from flyteidl.admin.common.proto to
+     * tag projects with ownership information.
+     * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Leverage Labels from flyteidl.admin.common.proto to
+     * tag projects with ownership information.
+     * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + int getStateValue(); + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + flyteidl.admin.ProjectOuterClass.Project.ProjectState getState(); + } + /** + *
+   * Top-level namespace used to classify different entities like workflows and executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Project extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Project) + ProjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use Project.newBuilder() to construct. + private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Project() { + id_ = ""; + name_ = ""; + domains_ = java.util.Collections.emptyList(); + description_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Project( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + domains_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + domains_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Domain.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + /** + *
+     * The state of the project is used to control its visibility in the UI and validity.
+     * 
+ * + * Protobuf enum {@code flyteidl.admin.Project.ProjectState} + */ + public enum ProjectState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * By default, all projects are considered active.
+       * 
+ * + * ACTIVE = 0; + */ + ACTIVE(0), + /** + *
+       * Archived projects are no longer visible in the UI and no longer valid.
+       * 
+ * + * ARCHIVED = 1; + */ + ARCHIVED(1), + /** + *
+       * System generated projects that aren't explicitly created or managed by a user.
+       * 
+ * + * SYSTEM_GENERATED = 2; + */ + SYSTEM_GENERATED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * By default, all projects are considered active.
+       * 
+ * + * ACTIVE = 0; + */ + public static final int ACTIVE_VALUE = 0; + /** + *
+       * Archived projects are no longer visible in the UI and no longer valid.
+       * 
+ * + * ARCHIVED = 1; + */ + public static final int ARCHIVED_VALUE = 1; + /** + *
+       * System generated projects that aren't explicitly created or managed by a user.
+       * 
+ * + * SYSTEM_GENERATED = 2; + */ + public static final int SYSTEM_GENERATED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProjectState valueOf(int value) { + return forNumber(value); + } + + public static ProjectState forNumber(int value) { + switch (value) { + case 0: return ACTIVE; + case 1: return ARCHIVED; + case 2: return SYSTEM_GENERATED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProjectState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProjectState findValueByNumber(int number) { + return ProjectState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.Project.getDescriptor().getEnumTypes().get(0); + } + + private static final ProjectState[] VALUES = values(); + + public static ProjectState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProjectState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.Project.ProjectState) + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * Globally unique project name.
+     * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * Globally unique project name.
+     * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAINS_FIELD_NUMBER = 3; + private java.util.List domains_; + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + return domains_.get(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + return domains_.get(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + * string description = 4; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * string description = 4; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Leverage Labels from flyteidl.admin.common.proto to
+     * tag projects with ownership information.
+     * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Leverage Labels from flyteidl.admin.common.proto to
+     * tag projects with ownership information.
+     * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Leverage Labels from flyteidl.admin.common.proto to
+     * tag projects with ownership information.
+     * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_; + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + public int getStateValue() { + return state_; + } + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + public flyteidl.admin.ProjectOuterClass.Project.ProjectState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.ProjectOuterClass.Project.ProjectState result = flyteidl.admin.ProjectOuterClass.Project.ProjectState.valueOf(state_); + return result == null ? flyteidl.admin.ProjectOuterClass.Project.ProjectState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + output.writeMessage(3, domains_.get(i)); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (labels_ != null) { + output.writeMessage(5, getLabels()); + } + if (state_ != flyteidl.admin.ProjectOuterClass.Project.ProjectState.ACTIVE.getNumber()) { + output.writeEnum(6, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, domains_.get(i)); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLabels()); + } + if (state_ != flyteidl.admin.ProjectOuterClass.Project.ProjectState.ACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.Project)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Project other = (flyteidl.admin.ProjectOuterClass.Project) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDomainsList() + .equals(other.getDomainsList())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) return false; + } + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.Project prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Top-level namespace used to classify different entities like workflows and executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Project) + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Project.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDomainsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + name_ = ""; + + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + domainsBuilder_.clear(); + } + description_ = ""; + + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project build() { + flyteidl.admin.ProjectOuterClass.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project buildPartial() { + flyteidl.admin.ProjectOuterClass.Project result = new flyteidl.admin.ProjectOuterClass.Project(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + result.name_ = name_; + if (domainsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.domains_ = domains_; + } else { + result.domains_ = domainsBuilder_.build(); + } + result.description_ = description_; + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + result.state_ = state_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Project) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Project)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Project other) { + if (other == flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (domainsBuilder_ == null) { + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + } else { + if (!other.domains_.isEmpty()) { + if (domainsBuilder_.isEmpty()) { + domainsBuilder_.dispose(); + domainsBuilder_ = null; + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + domainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDomainsFieldBuilder() : null; + } else { + domainsBuilder_.addAllMessages(other.domains_); + } + } + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Project parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Project) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * Globally unique project name.
+       * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Globally unique project name.
+       * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Globally unique project name.
+       * 
+ * + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * Globally unique project name.
+       * 
+ * + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * Globally unique project name.
+       * 
+ * + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List domains_ = + java.util.Collections.emptyList(); + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + domains_ = new java.util.ArrayList(domains_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> domainsBuilder_; + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + if (domainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domains_); + } else { + return domainsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + if (domainsBuilder_ == null) { + return domains_.size(); + } else { + return domainsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + } else { + domainsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.set(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains(flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + } else { + domainsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(index, value); + onChanged(); + } else { + domainsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addAllDomains( + java.lang.Iterable values) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); + onChanged(); + } else { + domainsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder clearDomains() { + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + domainsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder removeDomains(int index) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.remove(index); + onChanged(); + } else { + domainsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder getDomainsBuilder( + int index) { + return getDomainsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); } else { + return domainsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + if (domainsBuilder_ != null) { + return domainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domains_); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder() { + return getDomainsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder( + int index) { + return getDomainsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsBuilderList() { + return getDomainsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> + getDomainsFieldBuilder() { + if (domainsBuilder_ == null) { + domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder>( + domains_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + domains_ = null; + } + return domainsBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * string description = 4; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string description = 4; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string description = 4; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * string description = 4; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * string description = 4; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Labels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Leverage Labels from flyteidl.admin.common.proto to
+       * tag projects with ownership information.
+       * 
+ * + * .flyteidl.admin.Labels labels = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private int state_ = 0; + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + public int getStateValue() { + return state_; + } + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + public flyteidl.admin.ProjectOuterClass.Project.ProjectState getState() { + @SuppressWarnings("deprecation") + flyteidl.admin.ProjectOuterClass.Project.ProjectState result = flyteidl.admin.ProjectOuterClass.Project.ProjectState.valueOf(state_); + return result == null ? flyteidl.admin.ProjectOuterClass.Project.ProjectState.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + public Builder setState(flyteidl.admin.ProjectOuterClass.Project.ProjectState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.Project.ProjectState state = 6; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Project) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) + private static final flyteidl.admin.ProjectOuterClass.Project DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Project(); + } + + public static flyteidl.admin.ProjectOuterClass.Project getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Project parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Project(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Projects) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProjects(int index); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + int getProjectsCount(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsOrBuilderList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of projects.
+   * See :ref:`ref_flyteidl.admin.Project` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Projects} + */ + public static final class Projects extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Projects) + ProjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Projects.newBuilder() to construct. + private Projects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Projects() { + projects_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Projects( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projects_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projects_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + private int bitField0_; + public static final int PROJECTS_FIELD_NUMBER = 1; + private java.util.List projects_; + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + return projects_.get(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + return projects_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < projects_.size(); i++) { + output.writeMessage(1, projects_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < projects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, projects_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.Projects)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Projects other = (flyteidl.admin.ProjectOuterClass.Projects) obj; + + if (!getProjectsList() + .equals(other.getProjectsList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.Projects prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a list of projects.
+     * See :ref:`ref_flyteidl.admin.Project` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Projects} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Projects) + flyteidl.admin.ProjectOuterClass.ProjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Projects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProjectsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + projectsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects build() { + flyteidl.admin.ProjectOuterClass.Projects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects buildPartial() { + flyteidl.admin.ProjectOuterClass.Projects result = new flyteidl.admin.ProjectOuterClass.Projects(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (projectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projects_ = projects_; + } else { + result.projects_ = projectsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Projects) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Projects)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Projects other) { + if (other == flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance()) return this; + if (projectsBuilder_ == null) { + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + } else { + if (!other.projects_.isEmpty()) { + if (projectsBuilder_.isEmpty()) { + projectsBuilder_.dispose(); + projectsBuilder_ = null; + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + projectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProjectsFieldBuilder() : null; + } else { + projectsBuilder_.addAllMessages(other.projects_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Projects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Projects) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List projects_ = + java.util.Collections.emptyList(); + private void ensureProjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + projects_ = new java.util.ArrayList(projects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectsBuilder_; + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + if (projectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(projects_); + } else { + return projectsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + if (projectsBuilder_ == null) { + return projects_.size(); + } else { + return projectsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); + } else { + return projectsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + onChanged(); + } else { + projectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.set(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + onChanged(); + } else { + projectsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(index, value); + onChanged(); + } else { + projectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addAllProjects( + java.lang.Iterable values) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); + onChanged(); + } else { + projectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder clearProjects() { + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder removeProjects(int index) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.remove(index); + onChanged(); + } else { + projectsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectsBuilder( + int index) { + return getProjectsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); } else { + return projectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + if (projectsBuilder_ != null) { + return projectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projects_); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder() { + return getProjectsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder( + int index) { + return getProjectsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsBuilderList() { + return getProjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectsFieldBuilder() { + if (projectsBuilder_ == null) { + projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + projects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + projects_ = null; + } + return projectsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Projects) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) + private static final flyteidl.admin.ProjectOuterClass.Projects DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Projects(); + } + + public static flyteidl.admin.ProjectOuterClass.Projects getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Projects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Projects(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the number of projects to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 1; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 3; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 3; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Request to retrieve a list of projects matching specified filters. 
+   * See :ref:`ref_flyteidl.admin.Project` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectListRequest} + */ + public static final class ProjectListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectListRequest) + ProjectListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectListRequest.newBuilder() to construct. + private ProjectListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + limit_ = input.readUInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 34: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + public static final int LIMIT_FIELD_NUMBER = 1; + private int limit_; + /** + *
+     * Indicates the number of projects to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 1; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 3; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 3; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 3; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 4; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (limit_ != 0) { + output.writeUInt32(1, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filters_); + } + if (sortBy_ != null) { + output.writeMessage(4, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSortBy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.ProjectListRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectListRequest other = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) obj; + + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.ProjectListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to retrieve a list of projects matching specified filters. 
+     * See :ref:`ref_flyteidl.admin.Project` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectListRequest) + flyteidl.admin.ProjectOuterClass.ProjectListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(this); + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.ProjectListRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectListRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance()) return this; + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.ProjectListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of projects to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 1; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of projects to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 1; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of projects to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 1; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 3; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 3; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 3; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 3; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 3; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.Project project = 1; + */ + boolean hasProject(); + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProject(); + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder(); + } + /** + *
+   * Adds a new user-project within the Flyte deployment.
+   * See :ref:`ref_flyteidl.admin.Project` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} + */ + public static final class ProjectRegisterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterRequest) + ProjectRegisterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterRequest.newBuilder() to construct. + private ProjectRegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.ProjectOuterClass.Project.Builder subBuilder = null; + if (project_ != null) { + subBuilder = project_.toBuilder(); + } + project_ = input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(project_); + project_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectOuterClass.Project project_; + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return project_ != null; + } + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + /** + *
+     * +required
+     * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + return getProject(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (project_ != null) { + output.writeMessage(1, getProject()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (project_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProject()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) obj; + + if (hasProject() != other.hasProject()) return false; + if (hasProject()) { + if (!getProject() + .equals(other.getProject())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProject()) { + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Adds a new user-project within the Flyte deployment.
+     * See :ref:`ref_flyteidl.admin.Project` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterRequest) + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (projectBuilder_ == null) { + project_ = null; + } else { + project_ = null; + projectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(this); + if (projectBuilder_ == null) { + result.project_ = project_; + } else { + result.project_ = projectBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance()) return this; + if (other.hasProject()) { + mergeProject(other.getProject()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectOuterClass.Project project_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectBuilder_; + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return projectBuilder_ != null || project_ != null; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + if (projectBuilder_ == null) { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } else { + return projectBuilder_.getMessage(); + } + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + onChanged(); + } else { + projectBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectBuilder_ == null) { + project_ = builderForValue.build(); + onChanged(); + } else { + projectBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public Builder mergeProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (project_ != null) { + project_ = + flyteidl.admin.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial(); + } else { + project_ = value; + } + onChanged(); + } else { + projectBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public Builder clearProject() { + if (projectBuilder_ == null) { + project_ = null; + onChanged(); + } else { + project_ = null; + projectBuilder_ = null; + } + + return this; + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectBuilder() { + + onChanged(); + return getProjectFieldBuilder().getBuilder(); + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + if (projectBuilder_ != null) { + return projectBuilder_.getMessageOrBuilder(); + } else { + return project_ == null ? + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + } + /** + *
+       * +required
+       * 
+ * + * .flyteidl.admin.Project project = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectFieldBuilder() { + if (projectBuilder_ == null) { + projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + getProject(), + getParentForChildren(), + isClean()); + project_ = null; + } + return projectBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectRegisterRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectRegisterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be updated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} + */ + public static final class ProjectRegisterResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterResponse) + ProjectRegisterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterResponse.newBuilder() to construct. + private ProjectRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be updated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterResponse) + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectRegisterResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectRegisterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be updated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectUpdateResponse} + */ + public static final class ProjectUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectUpdateResponse) + ProjectUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectUpdateResponse.newBuilder() to construct. + private ProjectUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.class, flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse other = (flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be updated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ProjectUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectUpdateResponse) + flyteidl.admin.ProjectOuterClass.ProjectUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.class, flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse build() { + flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse result = new flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectUpdateResponse) + private static final flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Domain_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Domain_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Project_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Project_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Projects_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Projects_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/admin/project.proto\022\016flyteidl" + + ".admin\032\033flyteidl/admin/common.proto\"\"\n\006D" + + "omain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"\376\001\n\007Proj" + + "ect\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\'\n\007domains" + + "\030\003 \003(\0132\026.flyteidl.admin.Domain\022\023\n\013descri" + + "ption\030\004 \001(\t\022&\n\006labels\030\005 \001(\0132\026.flyteidl.a" + + "dmin.Labels\0223\n\005state\030\006 \001(\0162$.flyteidl.ad" + + "min.Project.ProjectState\">\n\014ProjectState" + + "\022\n\n\006ACTIVE\020\000\022\014\n\010ARCHIVED\020\001\022\024\n\020SYSTEM_GEN" + + "ERATED\020\002\"D\n\010Projects\022)\n\010projects\030\001 \003(\0132\027" + + ".flyteidl.admin.Project\022\r\n\005token\030\002 \001(\t\"j" + + "\n\022ProjectListRequest\022\r\n\005limit\030\001 \001(\r\022\r\n\005t" + + "oken\030\002 \001(\t\022\017\n\007filters\030\003 \001(\t\022%\n\007sort_by\030\004" + + " \001(\0132\024.flyteidl.admin.Sort\"B\n\026ProjectReg" + + "isterRequest\022(\n\007project\030\001 \001(\0132\027.flyteidl" + + ".admin.Project\"\031\n\027ProjectRegisterRespons" + + "e\"\027\n\025ProjectUpdateResponseB7Z5github.com" + + "/flyteorg/flyteidl/gen/pb-go/flyteidl/ad" + + "minb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_Domain_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_Domain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Domain_descriptor, + new java.lang.String[] { "Id", "Name", }); + internal_static_flyteidl_admin_Project_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Project_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Project_descriptor, + new java.lang.String[] { "Id", "Name", "Domains", "Description", "Labels", "State", }); + internal_static_flyteidl_admin_Projects_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Projects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Projects_descriptor, + new java.lang.String[] { "Projects", "Token", }); + internal_static_flyteidl_admin_ProjectListRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectListRequest_descriptor, + new java.lang.String[] { "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java new file mode 100644 index 0000000000..82eaac0a1e --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java @@ -0,0 +1,2871 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +package flyteidl.admin; + +public final class ScheduleOuterClass { + private ScheduleOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Represents a frequency at which to run a schedule.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.FixedRateUnit} + */ + public enum FixedRateUnit + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINUTE = 0; + */ + MINUTE(0), + /** + * HOUR = 1; + */ + HOUR(1), + /** + * DAY = 2; + */ + DAY(2), + UNRECOGNIZED(-1), + ; + + /** + * MINUTE = 0; + */ + public static final int MINUTE_VALUE = 0; + /** + * HOUR = 1; + */ + public static final int HOUR_VALUE = 1; + /** + * DAY = 2; + */ + public static final int DAY_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FixedRateUnit valueOf(int value) { + return forNumber(value); + } + + public static FixedRateUnit forNumber(int value) { + switch (value) { + case 0: return MINUTE; + case 1: return HOUR; + case 2: return DAY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FixedRateUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FixedRateUnit findValueByNumber(int number) { + return FixedRateUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final FixedRateUnit[] VALUES = values(); + + public static FixedRateUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FixedRateUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.FixedRateUnit) + } + + public interface FixedRateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.FixedRate) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 value = 1; + */ + int getValue(); + + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + int getUnitValue(); + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit(); + } + /** + *
+   * Option for schedules run at a certain frequency e.g. every 2 minutes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class FixedRate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.FixedRate) + FixedRateOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedRate.newBuilder() to construct. + private FixedRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FixedRate() { + unit_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FixedRate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + value_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + unit_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private int value_; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + + public static final int UNIT_FIELD_NUMBER = 2; + private int unit_; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + @SuppressWarnings("deprecation") + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != 0) { + output.writeUInt32(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + output.writeEnum(2, unit_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, unit_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ScheduleOuterClass.FixedRate)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.FixedRate other = (flyteidl.admin.ScheduleOuterClass.FixedRate) obj; + + if (getValue() + != other.getValue()) return false; + if (unit_ != other.unit_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue(); + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + unit_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ScheduleOuterClass.FixedRate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Option for schedules run at a certain frequency e.g. every 2 minutes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.FixedRate) + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = 0; + + unit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate build() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate buildPartial() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = new flyteidl.admin.ScheduleOuterClass.FixedRate(this); + result.value_ = value_; + result.unit_ = unit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ScheduleOuterClass.FixedRate) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.FixedRate other) { + if (other == flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) return this; + if (other.getValue() != 0) { + setValue(other.getValue()); + } + if (other.unit_ != 0) { + setUnitValue(other.getUnitValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ScheduleOuterClass.FixedRate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.FixedRate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int value_ ; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + /** + * uint32 value = 1; + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + /** + * uint32 value = 1; + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + + private int unit_ = 0; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnitValue(int value) { + unit_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + @SuppressWarnings("deprecation") + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnit(flyteidl.admin.ScheduleOuterClass.FixedRateUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + unit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder clearUnit() { + + unit_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.FixedRate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) + private static final flyteidl.admin.ScheduleOuterClass.FixedRate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.FixedRate(); + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedRate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FixedRate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CronScheduleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.CronSchedule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+     * Also supports nonstandard predefined scheduling definitions
+     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+     * except @reboot
+     * 
+ * + * string schedule = 1; + */ + java.lang.String getSchedule(); + /** + *
+     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+     * Also supports nonstandard predefined scheduling definitions
+     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+     * except @reboot
+     * 
+ * + * string schedule = 1; + */ + com.google.protobuf.ByteString + getScheduleBytes(); + + /** + *
+     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+     * 
+ * + * string offset = 2; + */ + java.lang.String getOffset(); + /** + *
+     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+     * 
+ * + * string offset = 2; + */ + com.google.protobuf.ByteString + getOffsetBytes(); + } + /** + *
+   * Options for schedules to run according to a cron expression.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.CronSchedule} + */ + public static final class CronSchedule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.CronSchedule) + CronScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use CronSchedule.newBuilder() to construct. + private CronSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CronSchedule() { + schedule_ = ""; + offset_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CronSchedule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + schedule_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + offset_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.CronSchedule.class, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder.class); + } + + public static final int SCHEDULE_FIELD_NUMBER = 1; + private volatile java.lang.Object schedule_; + /** + *
+     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+     * Also supports nonstandard predefined scheduling definitions
+     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+     * except @reboot
+     * 
+ * + * string schedule = 1; + */ + public java.lang.String getSchedule() { + java.lang.Object ref = schedule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schedule_ = s; + return s; + } + } + /** + *
+     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+     * Also supports nonstandard predefined scheduling definitions
+     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+     * except @reboot
+     * 
+ * + * string schedule = 1; + */ + public com.google.protobuf.ByteString + getScheduleBytes() { + java.lang.Object ref = schedule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OFFSET_FIELD_NUMBER = 2; + private volatile java.lang.Object offset_; + /** + *
+     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+     * 
+ * + * string offset = 2; + */ + public java.lang.String getOffset() { + java.lang.Object ref = offset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offset_ = s; + return s; + } + } + /** + *
+     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+     * 
+ * + * string offset = 2; + */ + public com.google.protobuf.ByteString + getOffsetBytes() { + java.lang.Object ref = offset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + offset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getScheduleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schedule_); + } + if (!getOffsetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, offset_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getScheduleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schedule_); + } + if (!getOffsetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, offset_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ScheduleOuterClass.CronSchedule)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.CronSchedule other = (flyteidl.admin.ScheduleOuterClass.CronSchedule) obj; + + if (!getSchedule() + .equals(other.getSchedule())) return false; + if (!getOffset() + .equals(other.getOffset())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getOffset().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ScheduleOuterClass.CronSchedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Options for schedules to run according to a cron expression.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.CronSchedule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.CronSchedule) + flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.CronSchedule.class, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.CronSchedule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + schedule_ = ""; + + offset_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.CronSchedule getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.CronSchedule build() { + flyteidl.admin.ScheduleOuterClass.CronSchedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.CronSchedule buildPartial() { + flyteidl.admin.ScheduleOuterClass.CronSchedule result = new flyteidl.admin.ScheduleOuterClass.CronSchedule(this); + result.schedule_ = schedule_; + result.offset_ = offset_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ScheduleOuterClass.CronSchedule) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.CronSchedule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.CronSchedule other) { + if (other == flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance()) return this; + if (!other.getSchedule().isEmpty()) { + schedule_ = other.schedule_; + onChanged(); + } + if (!other.getOffset().isEmpty()) { + offset_ = other.offset_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ScheduleOuterClass.CronSchedule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.CronSchedule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object schedule_ = ""; + /** + *
+       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+       * Also supports nonstandard predefined scheduling definitions
+       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+       * except @reboot
+       * 
+ * + * string schedule = 1; + */ + public java.lang.String getSchedule() { + java.lang.Object ref = schedule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schedule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+       * Also supports nonstandard predefined scheduling definitions
+       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+       * except @reboot
+       * 
+ * + * string schedule = 1; + */ + public com.google.protobuf.ByteString + getScheduleBytes() { + java.lang.Object ref = schedule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schedule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+       * Also supports nonstandard predefined scheduling definitions
+       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+       * except @reboot
+       * 
+ * + * string schedule = 1; + */ + public Builder setSchedule( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schedule_ = value; + onChanged(); + return this; + } + /** + *
+       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+       * Also supports nonstandard predefined scheduling definitions
+       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+       * except @reboot
+       * 
+ * + * string schedule = 1; + */ + public Builder clearSchedule() { + + schedule_ = getDefaultInstance().getSchedule(); + onChanged(); + return this; + } + /** + *
+       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
+       * Also supports nonstandard predefined scheduling definitions
+       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
+       * except @reboot
+       * 
+ * + * string schedule = 1; + */ + public Builder setScheduleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schedule_ = value; + onChanged(); + return this; + } + + private java.lang.Object offset_ = ""; + /** + *
+       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+       * 
+ * + * string offset = 2; + */ + public java.lang.String getOffset() { + java.lang.Object ref = offset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + offset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+       * 
+ * + * string offset = 2; + */ + public com.google.protobuf.ByteString + getOffsetBytes() { + java.lang.Object ref = offset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + offset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+       * 
+ * + * string offset = 2; + */ + public Builder setOffset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + offset_ = value; + onChanged(); + return this; + } + /** + *
+       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+       * 
+ * + * string offset = 2; + */ + public Builder clearOffset() { + + offset_ = getDefaultInstance().getOffset(); + onChanged(); + return this; + } + /** + *
+       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
+       * 
+ * + * string offset = 2; + */ + public Builder setOffsetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + offset_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.CronSchedule) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CronSchedule) + private static final flyteidl.admin.ScheduleOuterClass.CronSchedule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.CronSchedule(); + } + + public static flyteidl.admin.ScheduleOuterClass.CronSchedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CronSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CronSchedule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.CronSchedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScheduleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+     * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getCronExpression(); + /** + *
+     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+     * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getCronExpressionBytes(); + + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + boolean hasRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRate getRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder(); + + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + boolean hasCronSchedule(); + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + flyteidl.admin.ScheduleOuterClass.CronSchedule getCronSchedule(); + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder getCronScheduleOrBuilder(); + + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + java.lang.String getKickoffTimeInputArg(); + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + com.google.protobuf.ByteString + getKickoffTimeInputArgBytes(); + + public flyteidl.admin.ScheduleOuterClass.Schedule.ScheduleExpressionCase getScheduleExpressionCase(); + } + /** + *
+   * Defines complete set of information required to trigger an execution on a schedule.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schedule() { + kickoffTimeInputArg_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schedule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + scheduleExpressionCase_ = 1; + scheduleExpression_ = s; + break; + } + case 18: { + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder subBuilder = null; + if (scheduleExpressionCase_ == 2) { + subBuilder = ((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_).toBuilder(); + } + scheduleExpression_ = + input.readMessage(flyteidl.admin.ScheduleOuterClass.FixedRate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + scheduleExpression_ = subBuilder.buildPartial(); + } + scheduleExpressionCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + kickoffTimeInputArg_ = s; + break; + } + case 34: { + flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder subBuilder = null; + if (scheduleExpressionCase_ == 4) { + subBuilder = ((flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_).toBuilder(); + } + scheduleExpression_ = + input.readMessage(flyteidl.admin.ScheduleOuterClass.CronSchedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_); + scheduleExpression_ = subBuilder.buildPartial(); + } + scheduleExpressionCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public enum ScheduleExpressionCase + implements com.google.protobuf.Internal.EnumLite { + @java.lang.Deprecated CRON_EXPRESSION(1), + RATE(2), + CRON_SCHEDULE(4), + SCHEDULEEXPRESSION_NOT_SET(0); + private final int value; + private ScheduleExpressionCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScheduleExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static ScheduleExpressionCase forNumber(int value) { + switch (value) { + case 1: return CRON_EXPRESSION; + case 2: return RATE; + case 4: return CRON_SCHEDULE; + case 0: return SCHEDULEEXPRESSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public static final int CRON_EXPRESSION_FIELD_NUMBER = 1; + /** + *
+     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+     * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } + } + /** + *
+     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+     * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RATE_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + public static final int CRON_SCHEDULE_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public boolean hasCronSchedule() { + return scheduleExpressionCase_ == 4; + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public flyteidl.admin.ScheduleOuterClass.CronSchedule getCronSchedule() { + if (scheduleExpressionCase_ == 4) { + return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder getCronScheduleOrBuilder() { + if (scheduleExpressionCase_ == 4) { + return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); + } + + public static final int KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER = 3; + private volatile java.lang.Object kickoffTimeInputArg_; + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kickoffTimeInputArg_ = s; + return s; + } + } + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (scheduleExpressionCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kickoffTimeInputArg_); + } + if (scheduleExpressionCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scheduleExpressionCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kickoffTimeInputArg_); + } + if (scheduleExpressionCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.ScheduleOuterClass.Schedule)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.Schedule other = (flyteidl.admin.ScheduleOuterClass.Schedule) obj; + + if (!getKickoffTimeInputArg() + .equals(other.getKickoffTimeInputArg())) return false; + if (!getScheduleExpressionCase().equals(other.getScheduleExpressionCase())) return false; + switch (scheduleExpressionCase_) { + case 1: + if (!getCronExpression() + .equals(other.getCronExpression())) return false; + break; + case 2: + if (!getRate() + .equals(other.getRate())) return false; + break; + case 4: + if (!getCronSchedule() + .equals(other.getCronSchedule())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER; + hash = (53 * hash) + getKickoffTimeInputArg().hashCode(); + switch (scheduleExpressionCase_) { + case 1: + hash = (37 * hash) + CRON_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getCronExpression().hashCode(); + break; + case 2: + hash = (37 * hash) + RATE_FIELD_NUMBER; + hash = (53 * hash) + getRate().hashCode(); + break; + case 4: + hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getCronSchedule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ScheduleOuterClass.Schedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines complete set of information required to trigger an execution on a schedule.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Schedule) + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + kickoffTimeInputArg_ = ""; + + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule build() { + flyteidl.admin.ScheduleOuterClass.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule buildPartial() { + flyteidl.admin.ScheduleOuterClass.Schedule result = new flyteidl.admin.ScheduleOuterClass.Schedule(this); + if (scheduleExpressionCase_ == 1) { + result.scheduleExpression_ = scheduleExpression_; + } + if (scheduleExpressionCase_ == 2) { + if (rateBuilder_ == null) { + result.scheduleExpression_ = scheduleExpression_; + } else { + result.scheduleExpression_ = rateBuilder_.build(); + } + } + if (scheduleExpressionCase_ == 4) { + if (cronScheduleBuilder_ == null) { + result.scheduleExpression_ = scheduleExpression_; + } else { + result.scheduleExpression_ = cronScheduleBuilder_.build(); + } + } + result.kickoffTimeInputArg_ = kickoffTimeInputArg_; + result.scheduleExpressionCase_ = scheduleExpressionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ScheduleOuterClass.Schedule) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.Schedule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.Schedule other) { + if (other == flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance()) return this; + if (!other.getKickoffTimeInputArg().isEmpty()) { + kickoffTimeInputArg_ = other.kickoffTimeInputArg_; + onChanged(); + } + switch (other.getScheduleExpressionCase()) { + case CRON_EXPRESSION: { + scheduleExpressionCase_ = 1; + scheduleExpression_ = other.scheduleExpression_; + onChanged(); + break; + } + case RATE: { + mergeRate(other.getRate()); + break; + } + case CRON_SCHEDULE: { + mergeCronSchedule(other.getCronSchedule()); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ScheduleOuterClass.Schedule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.Schedule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public Builder clearScheduleExpression() { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + return this; + } + + + /** + *
+       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+       * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+       * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+       * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setCronExpression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + /** + *
+       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+       * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearCronExpression() { + if (scheduleExpressionCase_ == 1) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
+       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
+       * 
+ * + * string cron_expression = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setCronExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> rateBuilder_; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } else { + if (scheduleExpressionCase_ == 2) { + return rateBuilder_.getMessage(); + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpression_ = value; + onChanged(); + } else { + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate( + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder builderForValue) { + if (rateBuilder_ == null) { + scheduleExpression_ = builderForValue.build(); + onChanged(); + } else { + rateBuilder_.setMessage(builderForValue.build()); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder mergeRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2 && + scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_) + .mergeFrom(value).buildPartial(); + } else { + scheduleExpression_ = value; + } + onChanged(); + } else { + if (scheduleExpressionCase_ == 2) { + rateBuilder_.mergeFrom(value); + } + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder clearRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + } else { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + } + rateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate.Builder getRateBuilder() { + return getRateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if ((scheduleExpressionCase_ == 2) && (rateBuilder_ != null)) { + return rateBuilder_.getMessageOrBuilder(); + } else { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> + getRateFieldBuilder() { + if (rateBuilder_ == null) { + if (!(scheduleExpressionCase_ == 2)) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + rateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder>( + (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_, + getParentForChildren(), + isClean()); + scheduleExpression_ = null; + } + scheduleExpressionCase_ = 2; + onChanged();; + return rateBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.CronSchedule, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder, flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder> cronScheduleBuilder_; + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public boolean hasCronSchedule() { + return scheduleExpressionCase_ == 4; + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public flyteidl.admin.ScheduleOuterClass.CronSchedule getCronSchedule() { + if (cronScheduleBuilder_ == null) { + if (scheduleExpressionCase_ == 4) { + return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); + } else { + if (scheduleExpressionCase_ == 4) { + return cronScheduleBuilder_.getMessage(); + } + return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public Builder setCronSchedule(flyteidl.admin.ScheduleOuterClass.CronSchedule value) { + if (cronScheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpression_ = value; + onChanged(); + } else { + cronScheduleBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 4; + return this; + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public Builder setCronSchedule( + flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder builderForValue) { + if (cronScheduleBuilder_ == null) { + scheduleExpression_ = builderForValue.build(); + onChanged(); + } else { + cronScheduleBuilder_.setMessage(builderForValue.build()); + } + scheduleExpressionCase_ = 4; + return this; + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public Builder mergeCronSchedule(flyteidl.admin.ScheduleOuterClass.CronSchedule value) { + if (cronScheduleBuilder_ == null) { + if (scheduleExpressionCase_ == 4 && + scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance()) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.CronSchedule.newBuilder((flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_) + .mergeFrom(value).buildPartial(); + } else { + scheduleExpression_ = value; + } + onChanged(); + } else { + if (scheduleExpressionCase_ == 4) { + cronScheduleBuilder_.mergeFrom(value); + } + cronScheduleBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 4; + return this; + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public Builder clearCronSchedule() { + if (cronScheduleBuilder_ == null) { + if (scheduleExpressionCase_ == 4) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + } else { + if (scheduleExpressionCase_ == 4) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + } + cronScheduleBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder getCronScheduleBuilder() { + return getCronScheduleFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + public flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder getCronScheduleOrBuilder() { + if ((scheduleExpressionCase_ == 4) && (cronScheduleBuilder_ != null)) { + return cronScheduleBuilder_.getMessageOrBuilder(); + } else { + if (scheduleExpressionCase_ == 4) { + return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.CronSchedule cron_schedule = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.CronSchedule, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder, flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder> + getCronScheduleFieldBuilder() { + if (cronScheduleBuilder_ == null) { + if (!(scheduleExpressionCase_ == 4)) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); + } + cronScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.CronSchedule, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder, flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder>( + (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_, + getParentForChildren(), + isClean()); + scheduleExpression_ = null; + } + scheduleExpressionCase_ = 4; + onChanged();; + return cronScheduleBuilder_; + } + + private java.lang.Object kickoffTimeInputArg_ = ""; + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kickoffTimeInputArg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArg( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kickoffTimeInputArg_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder clearKickoffTimeInputArg() { + + kickoffTimeInputArg_ = getDefaultInstance().getKickoffTimeInputArg(); + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArgBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kickoffTimeInputArg_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Schedule) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) + private static final flyteidl.admin.ScheduleOuterClass.Schedule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.Schedule(); + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_FixedRate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_CronSchedule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Schedule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/admin/schedule.proto\022\016flyteid" + + "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + + "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + + "\"0\n\014CronSchedule\022\020\n\010schedule\030\001 \001(\t\022\016\n\006of" + + "fset\030\002 \001(\t\"\301\001\n\010Schedule\022\035\n\017cron_expressi" + + "on\030\001 \001(\tB\002\030\001H\000\022)\n\004rate\030\002 \001(\0132\031.flyteidl." + + "admin.FixedRateH\000\0225\n\rcron_schedule\030\004 \001(\013" + + "2\034.flyteidl.admin.CronScheduleH\000\022\036\n\026kick" + + "off_time_input_arg\030\003 \001(\tB\024\n\022ScheduleExpr" + + "ession*.\n\rFixedRateUnit\022\n\n\006MINUTE\020\000\022\010\n\004H" + + "OUR\020\001\022\007\n\003DAY\020\002B7Z5github.com/flyteorg/fl" + + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_FixedRate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_FixedRate_descriptor, + new java.lang.String[] { "Value", "Unit", }); + internal_static_flyteidl_admin_CronSchedule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_CronSchedule_descriptor, + new java.lang.String[] { "Schedule", "Offset", }); + internal_static_flyteidl_admin_Schedule_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Schedule_descriptor, + new java.lang.String[] { "CronExpression", "Rate", "CronSchedule", "KickoffTimeInputArg", "ScheduleExpression", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/SignalOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/SignalOuterClass.java new file mode 100644 index 0000000000..490119af7f --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/SignalOuterClass.java @@ -0,0 +1,6128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/signal.proto + +package flyteidl.admin; + +public final class SignalOuterClass { + private SignalOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SignalGetOrCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalGetOrCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.SignalIdentifier getId(); + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + boolean hasType(); + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + } + /** + *
+   * SignalGetOrCreateRequest represents a request structure to retrive or create a signal.
+   * See :ref:`ref_flyteidl.admin.Signal` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SignalGetOrCreateRequest} + */ + public static final class SignalGetOrCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalGetOrCreateRequest) + SignalGetOrCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalGetOrCreateRequest.newBuilder() to construct. + private SignalGetOrCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignalGetOrCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalGetOrCreateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.SignalIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.class, flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest other = (flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SignalGetOrCreateRequest represents a request structure to retrive or create a signal.
+     * See :ref:`ref_flyteidl.admin.Signal` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SignalGetOrCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalGetOrCreateRequest) + flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.class, flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest build() { + flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest buildPartial() { + flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest result = new flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest) { + return mergeFrom((flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest other) { + if (other == flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> idBuilder_; + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.SignalIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SignalGetOrCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalGetOrCreateRequest) + private static final flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest(); + } + + public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalGetOrCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalGetOrCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + boolean hasWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * SignalListRequest represents a request structure to retrieve a collection of signals.
+   * See :ref:`ref_flyteidl.admin.Signal` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SignalListRequest} + */ + public static final class SignalListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalListRequest) + SignalListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalListRequest.newBuilder() to construct. + private SignalListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignalListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (workflowExecutionId_ != null) { + subBuilder = workflowExecutionId_.toBuilder(); + } + workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowExecutionId_); + workflowExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalListRequest.class, flyteidl.admin.SignalOuterClass.SignalListRequest.Builder.class); + } + + public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionId_ != null; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + return getWorkflowExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflowExecutionId_ != null) { + output.writeMessage(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.SignalOuterClass.SignalListRequest)) { + return super.equals(obj); + } + flyteidl.admin.SignalOuterClass.SignalListRequest other = (flyteidl.admin.SignalOuterClass.SignalListRequest) obj; + + if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; + if (hasWorkflowExecutionId()) { + if (!getWorkflowExecutionId() + .equals(other.getWorkflowExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflowExecutionId()) { + hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.SignalOuterClass.SignalListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SignalListRequest represents a request structure to retrieve a collection of signals.
+     * See :ref:`ref_flyteidl.admin.Signal` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SignalListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalListRequest) + flyteidl.admin.SignalOuterClass.SignalListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalListRequest.class, flyteidl.admin.SignalOuterClass.SignalListRequest.Builder.class); + } + + // Construct using flyteidl.admin.SignalOuterClass.SignalListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalListRequest getDefaultInstanceForType() { + return flyteidl.admin.SignalOuterClass.SignalListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalListRequest build() { + flyteidl.admin.SignalOuterClass.SignalListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalListRequest buildPartial() { + flyteidl.admin.SignalOuterClass.SignalListRequest result = new flyteidl.admin.SignalOuterClass.SignalListRequest(this); + if (workflowExecutionIdBuilder_ == null) { + result.workflowExecutionId_ = workflowExecutionId_; + } else { + result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.SignalOuterClass.SignalListRequest) { + return mergeFrom((flyteidl.admin.SignalOuterClass.SignalListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalListRequest other) { + if (other == flyteidl.admin.SignalOuterClass.SignalListRequest.getDefaultInstance()) return this; + if (other.hasWorkflowExecutionId()) { + mergeWorkflowExecutionId(other.getWorkflowExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.SignalOuterClass.SignalListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.SignalOuterClass.SignalListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } else { + return workflowExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowExecutionId_ = value; + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = builderForValue.build(); + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (workflowExecutionId_ != null) { + workflowExecutionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); + } else { + workflowExecutionId_ = value; + } + onChanged(); + } else { + workflowExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder clearWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + onChanged(); + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { + + onChanged(); + return getWorkflowExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + if (workflowExecutionIdBuilder_ != null) { + return workflowExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return workflowExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowExecutionIdFieldBuilder() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWorkflowExecutionId(), + getParentForChildren(), + isClean()); + workflowExecutionId_ = null; + } + return workflowExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SignalListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalListRequest) + private static final flyteidl.admin.SignalOuterClass.SignalListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalListRequest(); + } + + public static flyteidl.admin.SignalOuterClass.SignalListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + java.util.List + getSignalsList(); + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + flyteidl.admin.SignalOuterClass.Signal getSignals(int index); + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + int getSignalsCount(); + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + java.util.List + getSignalsOrBuilderList(); + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + flyteidl.admin.SignalOuterClass.SignalOrBuilder getSignalsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * SignalList represents collection of signals along with the token of the last result.
+   * See :ref:`ref_flyteidl.admin.Signal` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SignalList} + */ + public static final class SignalList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalList) + SignalListOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalList.newBuilder() to construct. + private SignalList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignalList() { + signals_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + signals_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + signals_.add( + input.readMessage(flyteidl.admin.SignalOuterClass.Signal.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + signals_ = java.util.Collections.unmodifiableList(signals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalList.class, flyteidl.admin.SignalOuterClass.SignalList.Builder.class); + } + + private int bitField0_; + public static final int SIGNALS_FIELD_NUMBER = 1; + private java.util.List signals_; + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public java.util.List getSignalsList() { + return signals_; + } + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public java.util.List + getSignalsOrBuilderList() { + return signals_; + } + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public int getSignalsCount() { + return signals_.size(); + } + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public flyteidl.admin.SignalOuterClass.Signal getSignals(int index) { + return signals_.get(index); + } + /** + *
+     * A list of signals matching the input filters.
+     * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public flyteidl.admin.SignalOuterClass.SignalOrBuilder getSignalsOrBuilder( + int index) { + return signals_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < signals_.size(); i++) { + output.writeMessage(1, signals_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < signals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, signals_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.SignalOuterClass.SignalList)) { + return super.equals(obj); + } + flyteidl.admin.SignalOuterClass.SignalList other = (flyteidl.admin.SignalOuterClass.SignalList) obj; + + if (!getSignalsList() + .equals(other.getSignalsList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSignalsCount() > 0) { + hash = (37 * hash) + SIGNALS_FIELD_NUMBER; + hash = (53 * hash) + getSignalsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.SignalOuterClass.SignalList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SignalList represents collection of signals along with the token of the last result.
+     * See :ref:`ref_flyteidl.admin.Signal` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SignalList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalList) + flyteidl.admin.SignalOuterClass.SignalListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalList.class, flyteidl.admin.SignalOuterClass.SignalList.Builder.class); + } + + // Construct using flyteidl.admin.SignalOuterClass.SignalList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSignalsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (signalsBuilder_ == null) { + signals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + signalsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalList getDefaultInstanceForType() { + return flyteidl.admin.SignalOuterClass.SignalList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalList build() { + flyteidl.admin.SignalOuterClass.SignalList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalList buildPartial() { + flyteidl.admin.SignalOuterClass.SignalList result = new flyteidl.admin.SignalOuterClass.SignalList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (signalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + signals_ = java.util.Collections.unmodifiableList(signals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.signals_ = signals_; + } else { + result.signals_ = signalsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.SignalOuterClass.SignalList) { + return mergeFrom((flyteidl.admin.SignalOuterClass.SignalList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalList other) { + if (other == flyteidl.admin.SignalOuterClass.SignalList.getDefaultInstance()) return this; + if (signalsBuilder_ == null) { + if (!other.signals_.isEmpty()) { + if (signals_.isEmpty()) { + signals_ = other.signals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSignalsIsMutable(); + signals_.addAll(other.signals_); + } + onChanged(); + } + } else { + if (!other.signals_.isEmpty()) { + if (signalsBuilder_.isEmpty()) { + signalsBuilder_.dispose(); + signalsBuilder_ = null; + signals_ = other.signals_; + bitField0_ = (bitField0_ & ~0x00000001); + signalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSignalsFieldBuilder() : null; + } else { + signalsBuilder_.addAllMessages(other.signals_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.SignalOuterClass.SignalList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.SignalOuterClass.SignalList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List signals_ = + java.util.Collections.emptyList(); + private void ensureSignalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + signals_ = new java.util.ArrayList(signals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.SignalOuterClass.Signal, flyteidl.admin.SignalOuterClass.Signal.Builder, flyteidl.admin.SignalOuterClass.SignalOrBuilder> signalsBuilder_; + + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public java.util.List getSignalsList() { + if (signalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(signals_); + } else { + return signalsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public int getSignalsCount() { + if (signalsBuilder_ == null) { + return signals_.size(); + } else { + return signalsBuilder_.getCount(); + } + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public flyteidl.admin.SignalOuterClass.Signal getSignals(int index) { + if (signalsBuilder_ == null) { + return signals_.get(index); + } else { + return signalsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder setSignals( + int index, flyteidl.admin.SignalOuterClass.Signal value) { + if (signalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalsIsMutable(); + signals_.set(index, value); + onChanged(); + } else { + signalsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder setSignals( + int index, flyteidl.admin.SignalOuterClass.Signal.Builder builderForValue) { + if (signalsBuilder_ == null) { + ensureSignalsIsMutable(); + signals_.set(index, builderForValue.build()); + onChanged(); + } else { + signalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder addSignals(flyteidl.admin.SignalOuterClass.Signal value) { + if (signalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalsIsMutable(); + signals_.add(value); + onChanged(); + } else { + signalsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder addSignals( + int index, flyteidl.admin.SignalOuterClass.Signal value) { + if (signalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignalsIsMutable(); + signals_.add(index, value); + onChanged(); + } else { + signalsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder addSignals( + flyteidl.admin.SignalOuterClass.Signal.Builder builderForValue) { + if (signalsBuilder_ == null) { + ensureSignalsIsMutable(); + signals_.add(builderForValue.build()); + onChanged(); + } else { + signalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder addSignals( + int index, flyteidl.admin.SignalOuterClass.Signal.Builder builderForValue) { + if (signalsBuilder_ == null) { + ensureSignalsIsMutable(); + signals_.add(index, builderForValue.build()); + onChanged(); + } else { + signalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder addAllSignals( + java.lang.Iterable values) { + if (signalsBuilder_ == null) { + ensureSignalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, signals_); + onChanged(); + } else { + signalsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder clearSignals() { + if (signalsBuilder_ == null) { + signals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + signalsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public Builder removeSignals(int index) { + if (signalsBuilder_ == null) { + ensureSignalsIsMutable(); + signals_.remove(index); + onChanged(); + } else { + signalsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public flyteidl.admin.SignalOuterClass.Signal.Builder getSignalsBuilder( + int index) { + return getSignalsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public flyteidl.admin.SignalOuterClass.SignalOrBuilder getSignalsOrBuilder( + int index) { + if (signalsBuilder_ == null) { + return signals_.get(index); } else { + return signalsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public java.util.List + getSignalsOrBuilderList() { + if (signalsBuilder_ != null) { + return signalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(signals_); + } + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public flyteidl.admin.SignalOuterClass.Signal.Builder addSignalsBuilder() { + return getSignalsFieldBuilder().addBuilder( + flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance()); + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public flyteidl.admin.SignalOuterClass.Signal.Builder addSignalsBuilder( + int index) { + return getSignalsFieldBuilder().addBuilder( + index, flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance()); + } + /** + *
+       * A list of signals matching the input filters.
+       * 
+ * + * repeated .flyteidl.admin.Signal signals = 1; + */ + public java.util.List + getSignalsBuilderList() { + return getSignalsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.SignalOuterClass.Signal, flyteidl.admin.SignalOuterClass.Signal.Builder, flyteidl.admin.SignalOuterClass.SignalOrBuilder> + getSignalsFieldBuilder() { + if (signalsBuilder_ == null) { + signalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.SignalOuterClass.Signal, flyteidl.admin.SignalOuterClass.Signal.Builder, flyteidl.admin.SignalOuterClass.SignalOrBuilder>( + signals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + signals_ = null; + } + return signalsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SignalList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalList) + private static final flyteidl.admin.SignalOuterClass.SignalList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalList(); + } + + public static flyteidl.admin.SignalOuterClass.SignalList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.SignalIdentifier getId(); + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * The value of this signal, must match the defining signal type.
+     * 
+ * + * .flyteidl.core.Literal value = 2; + */ + boolean hasValue(); + /** + *
+     * The value of this signal, must match the defining signal type.
+     * 
+ * + * .flyteidl.core.Literal value = 2; + */ + flyteidl.core.Literals.Literal getValue(); + /** + *
+     * The value of this signal, must match the defining signal type.
+     * 
+ * + * .flyteidl.core.Literal value = 2; + */ + flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); + } + /** + *
+   * SignalSetRequest represents a request structure to set the value on a signal. Setting a signal
+   * effetively satisfies the signal condition within a Flyte workflow.
+   * See :ref:`ref_flyteidl.admin.Signal` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SignalSetRequest} + */ + public static final class SignalSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalSetRequest) + SignalSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalSetRequest.newBuilder() to construct. + private SignalSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignalSetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalSetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.SignalIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalSetRequest.class, flyteidl.admin.SignalOuterClass.SignalSetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int VALUE_FIELD_NUMBER = 2; + private flyteidl.core.Literals.Literal value_; + /** + *
+     * The value of this signal, must match the defining signal type.
+     * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public boolean hasValue() { + return value_ != null; + } + /** + *
+     * The value of this signal, must match the defining signal type.
+     * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal getValue() { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + /** + *
+     * The value of this signal, must match the defining signal type.
+     * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + return getValue(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.SignalOuterClass.SignalSetRequest)) { + return super.equals(obj); + } + flyteidl.admin.SignalOuterClass.SignalSetRequest other = (flyteidl.admin.SignalOuterClass.SignalSetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.SignalOuterClass.SignalSetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SignalSetRequest represents a request structure to set the value on a signal. Setting a signal
+     * effetively satisfies the signal condition within a Flyte workflow.
+     * See :ref:`ref_flyteidl.admin.Signal` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SignalSetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalSetRequest) + flyteidl.admin.SignalOuterClass.SignalSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalSetRequest.class, flyteidl.admin.SignalOuterClass.SignalSetRequest.Builder.class); + } + + // Construct using flyteidl.admin.SignalOuterClass.SignalSetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetRequest getDefaultInstanceForType() { + return flyteidl.admin.SignalOuterClass.SignalSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetRequest build() { + flyteidl.admin.SignalOuterClass.SignalSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetRequest buildPartial() { + flyteidl.admin.SignalOuterClass.SignalSetRequest result = new flyteidl.admin.SignalOuterClass.SignalSetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.SignalOuterClass.SignalSetRequest) { + return mergeFrom((flyteidl.admin.SignalOuterClass.SignalSetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalSetRequest other) { + if (other == flyteidl.admin.SignalOuterClass.SignalSetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.SignalOuterClass.SignalSetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.SignalOuterClass.SignalSetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> idBuilder_; + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.SignalIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Literals.Literal value_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal getValue() { + if (valueBuilder_ == null) { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public Builder setValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public Builder setValue( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public Builder mergeValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.Literal.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + } + /** + *
+       * The value of this signal, must match the defining signal type.
+       * 
+ * + * .flyteidl.core.Literal value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SignalSetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetRequest) + private static final flyteidl.admin.SignalOuterClass.SignalSetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalSetRequest(); + } + + public static flyteidl.admin.SignalOuterClass.SignalSetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalSetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalSetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalSetResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * SignalSetResponse represents a response structure if signal setting succeeds.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.SignalSetResponse} + */ + public static final class SignalSetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalSetResponse) + SignalSetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalSetResponse.newBuilder() to construct. + private SignalSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignalSetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalSetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalSetResponse.class, flyteidl.admin.SignalOuterClass.SignalSetResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.SignalOuterClass.SignalSetResponse)) { + return super.equals(obj); + } + flyteidl.admin.SignalOuterClass.SignalSetResponse other = (flyteidl.admin.SignalOuterClass.SignalSetResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.SignalOuterClass.SignalSetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SignalSetResponse represents a response structure if signal setting succeeds.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.SignalSetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalSetResponse) + flyteidl.admin.SignalOuterClass.SignalSetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.SignalSetResponse.class, flyteidl.admin.SignalOuterClass.SignalSetResponse.Builder.class); + } + + // Construct using flyteidl.admin.SignalOuterClass.SignalSetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetResponse getDefaultInstanceForType() { + return flyteidl.admin.SignalOuterClass.SignalSetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetResponse build() { + flyteidl.admin.SignalOuterClass.SignalSetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetResponse buildPartial() { + flyteidl.admin.SignalOuterClass.SignalSetResponse result = new flyteidl.admin.SignalOuterClass.SignalSetResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.SignalOuterClass.SignalSetResponse) { + return mergeFrom((flyteidl.admin.SignalOuterClass.SignalSetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalSetResponse other) { + if (other == flyteidl.admin.SignalOuterClass.SignalSetResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.SignalOuterClass.SignalSetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.SignalOuterClass.SignalSetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SignalSetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetResponse) + private static final flyteidl.admin.SignalOuterClass.SignalSetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalSetResponse(); + } + + public static flyteidl.admin.SignalOuterClass.SignalSetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalSetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.SignalSetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Signal) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.SignalIdentifier getId(); + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + boolean hasType(); + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + + /** + *
+     * The value of the signal. This is only available if the signal has been "set" and must match
+     * the defined the type.
+     * 
+ * + * .flyteidl.core.Literal value = 3; + */ + boolean hasValue(); + /** + *
+     * The value of the signal. This is only available if the signal has been "set" and must match
+     * the defined the type.
+     * 
+ * + * .flyteidl.core.Literal value = 3; + */ + flyteidl.core.Literals.Literal getValue(); + /** + *
+     * The value of the signal. This is only available if the signal has been "set" and must match
+     * the defined the type.
+     * 
+ * + * .flyteidl.core.Literal value = 3; + */ + flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); + } + /** + *
+   * Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte
+   * signal. Signals may exist either without a set value (representing a signal request) or with a
+   * populated value (indicating the signal has been given).
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Signal} + */ + public static final class Signal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Signal) + SignalOrBuilder { + private static final long serialVersionUID = 0L; + // Use Signal.newBuilder() to construct. + private Signal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Signal() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Signal( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.SignalIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.Signal.class, flyteidl.admin.SignalOuterClass.Signal.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int VALUE_FIELD_NUMBER = 3; + private flyteidl.core.Literals.Literal value_; + /** + *
+     * The value of the signal. This is only available if the signal has been "set" and must match
+     * the defined the type.
+     * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public boolean hasValue() { + return value_ != null; + } + /** + *
+     * The value of the signal. This is only available if the signal has been "set" and must match
+     * the defined the type.
+     * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public flyteidl.core.Literals.Literal getValue() { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + /** + *
+     * The value of the signal. This is only available if the signal has been "set" and must match
+     * the defined the type.
+     * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + return getValue(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (value_ != null) { + output.writeMessage(3, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.SignalOuterClass.Signal)) { + return super.equals(obj); + } + flyteidl.admin.SignalOuterClass.Signal other = (flyteidl.admin.SignalOuterClass.Signal) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.Signal parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.Signal parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.SignalOuterClass.Signal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.SignalOuterClass.Signal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte
+     * signal. Signals may exist either without a set value (representing a signal request) or with a
+     * populated value (indicating the signal has been given).
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Signal} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Signal) + flyteidl.admin.SignalOuterClass.SignalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.SignalOuterClass.Signal.class, flyteidl.admin.SignalOuterClass.Signal.Builder.class); + } + + // Construct using flyteidl.admin.SignalOuterClass.Signal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_descriptor; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.Signal getDefaultInstanceForType() { + return flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.Signal build() { + flyteidl.admin.SignalOuterClass.Signal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.Signal buildPartial() { + flyteidl.admin.SignalOuterClass.Signal result = new flyteidl.admin.SignalOuterClass.Signal(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.SignalOuterClass.Signal) { + return mergeFrom((flyteidl.admin.SignalOuterClass.Signal)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.SignalOuterClass.Signal other) { + if (other == flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.SignalOuterClass.Signal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.SignalOuterClass.Signal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> idBuilder_; + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.SignalIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * .flyteidl.core.SignalIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private flyteidl.core.Literals.Literal value_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public flyteidl.core.Literals.Literal getValue() { + if (valueBuilder_ == null) { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public Builder setValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public Builder setValue( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public Builder mergeValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public flyteidl.core.Literals.Literal.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + } + /** + *
+       * The value of the signal. This is only available if the signal has been "set" and must match
+       * the defined the type.
+       * 
+ * + * .flyteidl.core.Literal value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Signal) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Signal) + private static final flyteidl.admin.SignalOuterClass.Signal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.Signal(); + } + + public static flyteidl.admin.SignalOuterClass.Signal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Signal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Signal(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.SignalOuterClass.Signal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SignalListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SignalList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SignalList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SignalSetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SignalSetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Signal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Signal_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033flyteidl/admin/signal.proto\022\016flyteidl." + + "admin\032\033flyteidl/admin/common.proto\032\036flyt" + + "eidl/core/identifier.proto\032\034flyteidl/cor" + + "e/literals.proto\032\031flyteidl/core/types.pr" + + "oto\"q\n\030SignalGetOrCreateRequest\022+\n\002id\030\001 " + + "\001(\0132\037.flyteidl.core.SignalIdentifier\022(\n\004" + + "type\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\264" + + "\001\n\021SignalListRequest\022I\n\025workflow_executi" + + "on_id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + + "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + + "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + + "\024.flyteidl.admin.Sort\"D\n\nSignalList\022\'\n\007s" + + "ignals\030\001 \003(\0132\026.flyteidl.admin.Signal\022\r\n\005" + + "token\030\002 \001(\t\"f\n\020SignalSetRequest\022+\n\002id\030\001 " + + "\001(\0132\037.flyteidl.core.SignalIdentifier\022%\n\005" + + "value\030\002 \001(\0132\026.flyteidl.core.Literal\"\023\n\021S" + + "ignalSetResponse\"\206\001\n\006Signal\022+\n\002id\030\001 \001(\0132" + + "\037.flyteidl.core.SignalIdentifier\022(\n\004type" + + "\030\002 \001(\0132\032.flyteidl.core.LiteralType\022%\n\005va" + + "lue\030\003 \001(\0132\026.flyteidl.core.LiteralB7Z5git" + + "hub.com/flyteorg/flyteidl/gen/pb-go/flyt" + + "eidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor, + new java.lang.String[] { "Id", "Type", }); + internal_static_flyteidl_admin_SignalListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SignalListRequest_descriptor, + new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_SignalList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_SignalList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SignalList_descriptor, + new java.lang.String[] { "Signals", "Token", }); + internal_static_flyteidl_admin_SignalSetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SignalSetRequest_descriptor, + new java.lang.String[] { "Id", "Value", }); + internal_static_flyteidl_admin_SignalSetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SignalSetResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Signal_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_Signal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Signal_descriptor, + new java.lang.String[] { "Id", "Type", "Value", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java new file mode 100644 index 0000000000..7094d57d6c --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java @@ -0,0 +1,12106 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +package flyteidl.admin; + +public final class TaskExecutionOuterClass { + private TaskExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single task execution entity.
+   * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class TaskExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetRequest) + TaskExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetRequest.newBuilder() to construct. + private TaskExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to fetch a single task execution entity.
+     * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + boolean hasNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution.
+   * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class TaskExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionListRequest) + TaskExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionListRequest.newBuilder() to construct. + private TaskExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionListRequest() { + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * +required
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * +required
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nodeExecutionId_ != null) { + output.writeMessage(1, getNodeExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) obj; + + if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; + if (hasNodeExecutionId()) { + if (!getNodeExecutionId() + .equals(other.getNodeExecutionId())) return false; + } + if (getLimit() + != other.getLimit()) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!getFilters() + .equals(other.getFilters())) return false; + if (hasSortBy() != other.hasSortBy()) return false; + if (hasSortBy()) { + if (!getSortBy() + .equals(other.getSortBy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution.
+     * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionListRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(this); + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance()) return this; + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * +required
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * +required
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + boolean getIsParent(); + } + /** + *
+   * Encapsulates all details for a single task execution entity.
+   * A task execution represents an instantiated task, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + isParent_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int IS_PARENT_FIELD_NUMBER = 4; + private boolean isParent_; + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + if (isParent_ != false) { + output.writeBool(4, isParent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + if (isParent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isParent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecution)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecution other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (getIsParent() + != other.getIsParent()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsParent()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulates all details for a single task execution entity.
+     * A task execution represents an instantiated task, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecution) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + isParent_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + result.isParent_ = isParent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecution) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecution other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (other.getIsParent() != false) { + setIsParent(other.getIsParent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private boolean isParent_ ; + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder setIsParent(boolean value) { + + isParent_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder clearIsParent() { + + isParent_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + int getTaskExecutionsCount(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Response structure for a query to list of task execution entities.
+   * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class TaskExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionList) + TaskExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionList.newBuilder() to construct. + private TaskExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionList() { + taskExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + taskExecutions_.add( + input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + private int bitField0_; + public static final int TASK_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List taskExecutions_; + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + return taskExecutions_.size(); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + return taskExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + return taskExecutions_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < taskExecutions_.size(); i++) { + output.writeMessage(1, taskExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taskExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, taskExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) obj; + + if (!getTaskExecutionsList() + .equals(other.getTaskExecutionsList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTaskExecutionsCount() > 0) { + hash = (37 * hash) + TASK_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response structure for a query to list of task execution entities.
+     * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionList) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTaskExecutionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + taskExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taskExecutions_ = taskExecutions_; + } else { + result.taskExecutions_ = taskExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance()) return this; + if (taskExecutionsBuilder_ == null) { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutions_.isEmpty()) { + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaskExecutionsIsMutable(); + taskExecutions_.addAll(other.taskExecutions_); + } + onChanged(); + } + } else { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutionsBuilder_.isEmpty()) { + taskExecutionsBuilder_.dispose(); + taskExecutionsBuilder_ = null; + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + taskExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaskExecutionsFieldBuilder() : null; + } else { + taskExecutionsBuilder_.addAllMessages(other.taskExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List taskExecutions_ = + java.util.Collections.emptyList(); + private void ensureTaskExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + taskExecutions_ = new java.util.ArrayList(taskExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> taskExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + if (taskExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taskExecutions_); + } else { + return taskExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.size(); + } else { + return taskExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); + } else { + return taskExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions(flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addAllTaskExecutions( + java.lang.Iterable values) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taskExecutions_); + onChanged(); + } else { + taskExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder clearTaskExecutions() { + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + taskExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder removeTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.remove(index); + onChanged(); + } else { + taskExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder getTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); } else { + return taskExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + if (taskExecutionsBuilder_ != null) { + return taskExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taskExecutions_); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder() { + return getTaskExecutionsFieldBuilder().addBuilder( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsBuilderList() { + return getTaskExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> + getTaskExecutionsFieldBuilder() { + if (taskExecutionsBuilder_ == null) { + taskExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder>( + taskExecutions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + taskExecutions_ = null; + } + return taskExecutionsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getOutputUri(); + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Raw output data produced by this task execution.
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasOutputData(); + /** + *
+     * Raw output data produced by this task execution.
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getOutputData(); + /** + *
+     * Raw output data produced by this task execution.
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); + + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + int getLogsCount(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + /** + *
+     * If there is an explanation for the most recent phase transition, the reason will capture it.
+     * 
+ * + * string reason = 10; + */ + java.lang.String getReason(); + /** + *
+     * If there is an explanation for the most recent phase transition, the reason will capture it.
+     * 
+ * + * string reason = 10; + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 11; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 11; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + boolean hasMetadata(); + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + flyteidl.event.Event.TaskExecutionMetadata getMetadata(); + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * The event version is used to indicate versioned changes in how data is maintained using this
+     * proto message. For example, event_verison > 0 means that maps tasks logs use the
+     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+     * in this message.
+     * 
+ * + * int32 event_version = 17; + */ + int getEventVersion(); + + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + java.util.List + getReasonsList(); + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + flyteidl.admin.TaskExecutionOuterClass.Reason getReasons(int index); + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + int getReasonsCount(); + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + java.util.List + getReasonsOrBuilderList(); + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder getReasonsOrBuilder( + int index); + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Container for task execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class TaskExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionClosure) + TaskExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionClosure.newBuilder() to construct. + private TaskExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionClosure() { + phase_ = 0; + logs_ = java.util.Collections.emptyList(); + reason_ = ""; + taskType_ = ""; + reasons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + reason_ = s; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 98: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputResultCase_ == 12) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 12; + break; + } + case 130: { + flyteidl.event.Event.TaskExecutionMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.event.Event.TaskExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 136: { + + eventVersion_ = input.readInt32(); + break; + } + case 146: { + if (!((mutable_bitField0_ & 0x00004000) != 0)) { + reasons_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00004000; + } + reasons_.add( + input.readMessage(flyteidl.admin.TaskExecutionOuterClass.Reason.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + if (((mutable_bitField0_ & 0x00004000) != 0)) { + reasons_ = java.util.Collections.unmodifiableList(reasons_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + @java.lang.Deprecated OUTPUT_URI(1), + ERROR(2), + @java.lang.Deprecated OUTPUT_DATA(12), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 12: return OUTPUT_DATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int OUTPUT_DATA_FIELD_NUMBER = 12; + /** + *
+     * Raw output data produced by this task execution.
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputData() { + return outputResultCase_ == 12; + } + /** + *
+     * Raw output data produced by this task execution.
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputResultCase_ == 12) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw output data produced by this task execution.
+     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if (outputResultCase_ == 12) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int LOGS_FIELD_NUMBER = 4; + private java.util.List logs_; + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 9; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + public static final int REASON_FIELD_NUMBER = 10; + private volatile java.lang.Object reason_; + /** + *
+     * If there is an explanation for the most recent phase transition, the reason will capture it.
+     * 
+ * + * string reason = 10; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + *
+     * If there is an explanation for the most recent phase transition, the reason will capture it.
+     * 
+ * + * string reason = 10; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_TYPE_FIELD_NUMBER = 11; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 11; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 11; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 16; + private flyteidl.event.Event.TaskExecutionMetadata metadata_; + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { + return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int EVENT_VERSION_FIELD_NUMBER = 17; + private int eventVersion_; + /** + *
+     * The event version is used to indicate versioned changes in how data is maintained using this
+     * proto message. For example, event_verison > 0 means that maps tasks logs use the
+     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+     * in this message.
+     * 
+ * + * int32 event_version = 17; + */ + public int getEventVersion() { + return eventVersion_; + } + + public static final int REASONS_FIELD_NUMBER = 18; + private java.util.List reasons_; + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public java.util.List getReasonsList() { + return reasons_; + } + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public java.util.List + getReasonsOrBuilderList() { + return reasons_; + } + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public int getReasonsCount() { + return reasons_.size(); + } + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public flyteidl.admin.TaskExecutionOuterClass.Reason getReasons(int index) { + return reasons_.get(index); + } + /** + *
+     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+     * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder getReasonsOrBuilder( + int index) { + return reasons_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(4, logs_.get(i)); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + if (customInfo_ != null) { + output.writeMessage(9, getCustomInfo()); + } + if (!getReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reason_); + } + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, taskType_); + } + if (outputResultCase_ == 12) { + output.writeMessage(12, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (metadata_ != null) { + output.writeMessage(16, getMetadata()); + } + if (eventVersion_ != 0) { + output.writeInt32(17, eventVersion_); + } + for (int i = 0; i < reasons_.size(); i++) { + output.writeMessage(18, reasons_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, logs_.get(i)); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCustomInfo()); + } + if (!getReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, reason_); + } + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, taskType_); + } + if (outputResultCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getMetadata()); + } + if (eventVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(17, eventVersion_); + } + for (int i = 0; i < reasons_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, reasons_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) obj; + + if (phase_ != other.phase_) return false; + if (!getLogsList() + .equals(other.getLogsList())) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasUpdatedAt() != other.hasUpdatedAt()) return false; + if (hasUpdatedAt()) { + if (!getUpdatedAt() + .equals(other.getUpdatedAt())) return false; + } + if (hasCustomInfo() != other.hasCustomInfo()) return false; + if (hasCustomInfo()) { + if (!getCustomInfo() + .equals(other.getCustomInfo())) return false; + } + if (!getReason() + .equals(other.getReason())) return false; + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (getEventVersion() + != other.getEventVersion()) return false; + if (!getReasonsList() + .equals(other.getReasonsList())) return false; + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 1: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 2: + if (!getError() + .equals(other.getError())) return false; + break; + case 12: + if (!getOutputData() + .equals(other.getOutputData())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + EVENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getEventVersion(); + if (getReasonsCount() > 0) { + hash = (37 * hash) + REASONS_FIELD_NUMBER; + hash = (53 * hash) + getReasonsList().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 12: + hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOutputData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Container for task execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionClosure) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + getReasonsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + phase_ = 0; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + logsBuilder_.clear(); + } + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + reason_ = ""; + + taskType_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + eventVersion_ = 0; + + if (reasonsBuilder_ == null) { + reasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + } else { + reasonsBuilder_.clear(); + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 12) { + if (outputDataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputDataBuilder_.build(); + } + } + result.phase_ = phase_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.reason_ = reason_; + result.taskType_ = taskType_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.eventVersion_ = eventVersion_; + if (reasonsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + reasons_ = java.util.Collections.unmodifiableList(reasons_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.reasons_ = reasons_; + } else { + result.reasons_ = reasonsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000010); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getEventVersion() != 0) { + setEventVersion(other.getEventVersion()); + } + if (reasonsBuilder_ == null) { + if (!other.reasons_.isEmpty()) { + if (reasons_.isEmpty()) { + reasons_ = other.reasons_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureReasonsIsMutable(); + reasons_.addAll(other.reasons_); + } + onChanged(); + } + } else { + if (!other.reasons_.isEmpty()) { + if (reasonsBuilder_.isEmpty()) { + reasonsBuilder_.dispose(); + reasonsBuilder_ = null; + reasons_ = other.reasons_; + bitField0_ = (bitField0_ & ~0x00004000); + reasonsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReasonsFieldBuilder() : null; + } else { + reasonsBuilder_.addAllMessages(other.reasons_); + } + } + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUT_DATA: { + mergeOutputData(other.getOutputData()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * string output_uri = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputData() { + return outputResultCase_ == 12; + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 12) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (outputResultCase_ == 12) { + return outputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputDataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputDataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 12 && + outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 12) { + outputDataBuilder_.mergeFrom(value); + } + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 12; + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 12) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { + return getOutputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if ((outputResultCase_ == 12) && (outputDataBuilder_ != null)) { + return outputDataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 12) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this task execution.
+       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputDataFieldBuilder() { + if (outputDataBuilder_ == null) { + if (!(outputResultCase_ == 12)) { + outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 12; + onChanged();; + return outputDataBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private com.google.protobuf.Struct customInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + + private java.lang.Object reason_ = ""; + /** + *
+       * If there is an explanation for the most recent phase transition, the reason will capture it.
+       * 
+ * + * string reason = 10; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If there is an explanation for the most recent phase transition, the reason will capture it.
+       * 
+ * + * string reason = 10; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If there is an explanation for the most recent phase transition, the reason will capture it.
+       * 
+ * + * string reason = 10; + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); + return this; + } + /** + *
+       * If there is an explanation for the most recent phase transition, the reason will capture it.
+       * 
+ * + * string reason = 10; + */ + public Builder clearReason() { + + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + *
+       * If there is an explanation for the most recent phase transition, the reason will capture it.
+       * 
+ * + * string reason = 10; + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 11; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 11; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 11; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 11; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 11; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.TaskExecutionMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder setMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder setMetadata( + flyteidl.event.Event.TaskExecutionMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder mergeMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.event.Event.TaskExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private int eventVersion_ ; + /** + *
+       * The event version is used to indicate versioned changes in how data is maintained using this
+       * proto message. For example, event_verison > 0 means that maps tasks logs use the
+       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+       * in this message.
+       * 
+ * + * int32 event_version = 17; + */ + public int getEventVersion() { + return eventVersion_; + } + /** + *
+       * The event version is used to indicate versioned changes in how data is maintained using this
+       * proto message. For example, event_verison > 0 means that maps tasks logs use the
+       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+       * in this message.
+       * 
+ * + * int32 event_version = 17; + */ + public Builder setEventVersion(int value) { + + eventVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * The event version is used to indicate versioned changes in how data is maintained using this
+       * proto message. For example, event_verison > 0 means that maps tasks logs use the
+       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+       * in this message.
+       * 
+ * + * int32 event_version = 17; + */ + public Builder clearEventVersion() { + + eventVersion_ = 0; + onChanged(); + return this; + } + + private java.util.List reasons_ = + java.util.Collections.emptyList(); + private void ensureReasonsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + reasons_ = new java.util.ArrayList(reasons_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.Reason, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder, flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder> reasonsBuilder_; + + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public java.util.List getReasonsList() { + if (reasonsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reasons_); + } else { + return reasonsBuilder_.getMessageList(); + } + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public int getReasonsCount() { + if (reasonsBuilder_ == null) { + return reasons_.size(); + } else { + return reasonsBuilder_.getCount(); + } + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public flyteidl.admin.TaskExecutionOuterClass.Reason getReasons(int index) { + if (reasonsBuilder_ == null) { + return reasons_.get(index); + } else { + return reasonsBuilder_.getMessage(index); + } + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder setReasons( + int index, flyteidl.admin.TaskExecutionOuterClass.Reason value) { + if (reasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.set(index, value); + onChanged(); + } else { + reasonsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder setReasons( + int index, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder builderForValue) { + if (reasonsBuilder_ == null) { + ensureReasonsIsMutable(); + reasons_.set(index, builderForValue.build()); + onChanged(); + } else { + reasonsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder addReasons(flyteidl.admin.TaskExecutionOuterClass.Reason value) { + if (reasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.add(value); + onChanged(); + } else { + reasonsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder addReasons( + int index, flyteidl.admin.TaskExecutionOuterClass.Reason value) { + if (reasonsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.add(index, value); + onChanged(); + } else { + reasonsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder addReasons( + flyteidl.admin.TaskExecutionOuterClass.Reason.Builder builderForValue) { + if (reasonsBuilder_ == null) { + ensureReasonsIsMutable(); + reasons_.add(builderForValue.build()); + onChanged(); + } else { + reasonsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder addReasons( + int index, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder builderForValue) { + if (reasonsBuilder_ == null) { + ensureReasonsIsMutable(); + reasons_.add(index, builderForValue.build()); + onChanged(); + } else { + reasonsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder addAllReasons( + java.lang.Iterable values) { + if (reasonsBuilder_ == null) { + ensureReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reasons_); + onChanged(); + } else { + reasonsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder clearReasons() { + if (reasonsBuilder_ == null) { + reasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + reasonsBuilder_.clear(); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public Builder removeReasons(int index) { + if (reasonsBuilder_ == null) { + ensureReasonsIsMutable(); + reasons_.remove(index); + onChanged(); + } else { + reasonsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public flyteidl.admin.TaskExecutionOuterClass.Reason.Builder getReasonsBuilder( + int index) { + return getReasonsFieldBuilder().getBuilder(index); + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder getReasonsOrBuilder( + int index) { + if (reasonsBuilder_ == null) { + return reasons_.get(index); } else { + return reasonsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public java.util.List + getReasonsOrBuilderList() { + if (reasonsBuilder_ != null) { + return reasonsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reasons_); + } + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public flyteidl.admin.TaskExecutionOuterClass.Reason.Builder addReasonsBuilder() { + return getReasonsFieldBuilder().addBuilder( + flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance()); + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public flyteidl.admin.TaskExecutionOuterClass.Reason.Builder addReasonsBuilder( + int index) { + return getReasonsFieldBuilder().addBuilder( + index, flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance()); + } + /** + *
+       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
+       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
+       * 
+ * + * repeated .flyteidl.admin.Reason reasons = 18; + */ + public java.util.List + getReasonsBuilderList() { + return getReasonsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.Reason, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder, flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder> + getReasonsFieldBuilder() { + if (reasonsBuilder_ == null) { + reasonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.Reason, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder, flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder>( + reasons_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + reasons_ = null; + } + return reasonsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Reason) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * occurred_at is the timestamp indicating the instant that this reason happened.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + boolean hasOccurredAt(); + /** + *
+     * occurred_at is the timestamp indicating the instant that this reason happened.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * occurred_at is the timestamp indicating the instant that this reason happened.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * message is the explanation for the most recent phase transition or status update.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * message is the explanation for the most recent phase transition or status update.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Reason is a single message annotated with a timestamp to indicate the instant the reason occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Reason} + */ + public static final class Reason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Reason) + ReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use Reason.newBuilder() to construct. + private Reason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Reason() { + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Reason( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.Reason.class, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder.class); + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * occurred_at is the timestamp indicating the instant that this reason happened.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * occurred_at is the timestamp indicating the instant that this reason happened.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * occurred_at is the timestamp indicating the instant that this reason happened.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * message is the explanation for the most recent phase transition or status update.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+     * message is the explanation for the most recent phase transition or status update.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (occurredAt_ != null) { + output.writeMessage(1, getOccurredAt()); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOccurredAt()); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.Reason)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.Reason other = (flyteidl.admin.TaskExecutionOuterClass.Reason) obj; + + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getMessage() + .equals(other.getMessage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.Reason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Reason is a single message annotated with a timestamp to indicate the instant the reason occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Reason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Reason) + flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.Reason.class, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.Reason.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.Reason getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.Reason build() { + flyteidl.admin.TaskExecutionOuterClass.Reason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.Reason buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.Reason result = new flyteidl.admin.TaskExecutionOuterClass.Reason(this); + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.Reason) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.Reason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.Reason other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance()) return this; + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.Reason parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.Reason) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * occurred_at is the timestamp indicating the instant that this reason happened.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object message_ = ""; + /** + *
+       * message is the explanation for the most recent phase transition or status update.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * message is the explanation for the most recent phase transition or status update.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * message is the explanation for the most recent phase transition or status update.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * message is the explanation for the most recent phase transition or status update.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * message is the explanation for the most recent phase transition or status update.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Reason) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Reason) + private static final flyteidl.admin.TaskExecutionOuterClass.Reason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.Reason(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.Reason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Reason(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.Reason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output for a task execution.
+   * By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class TaskExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataRequest) + TaskExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataRequest.newBuilder() to construct. + private TaskExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * +required
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request structure to fetch inputs and output for a task execution.
+     * By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * +required
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + boolean hasFullInputs(); + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + flyteidl.core.Literals.LiteralMap getFullInputs(); + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder(); + + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + boolean hasFullOutputs(); + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + flyteidl.core.Literals.LiteralMap getFullOutputs(); + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder(); + + /** + *
+     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+     * Deck will be empty for task
+     * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + boolean hasFlyteUrls(); + /** + *
+     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+     * Deck will be empty for task
+     * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + flyteidl.admin.Common.FlyteURLs getFlyteUrls(); + /** + *
+     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+     * Deck will be empty for task
+     * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder(); + } + /** + *
+   * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class TaskExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataResponse) + TaskExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataResponse.newBuilder() to construct. + private TaskExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fullInputs_ != null) { + subBuilder = fullInputs_.toBuilder(); + } + fullInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullInputs_); + fullInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fullOutputs_ != null) { + subBuilder = fullOutputs_.toBuilder(); + } + fullOutputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fullOutputs_); + fullOutputs_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.admin.Common.FlyteURLs.Builder subBuilder = null; + if (flyteUrls_ != null) { + subBuilder = flyteUrls_.toBuilder(); + } + flyteUrls_ = input.readMessage(flyteidl.admin.Common.FlyteURLs.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(flyteUrls_); + flyteUrls_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * Deprecated: Please use full_inputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * Deprecated: Please use full_outputs instead.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + public static final int FULL_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Literals.LiteralMap fullInputs_; + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public boolean hasFullInputs() { + return fullInputs_ != null; + } + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getFullInputs() { + return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } + /** + *
+     * Full_inputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { + return getFullInputs(); + } + + public static final int FULL_OUTPUTS_FIELD_NUMBER = 4; + private flyteidl.core.Literals.LiteralMap fullOutputs_; + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public boolean hasFullOutputs() { + return fullOutputs_ != null; + } + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFullOutputs() { + return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } + /** + *
+     * Full_outputs will only be populated if they are under a configured size threshold.
+     * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { + return getFullOutputs(); + } + + public static final int FLYTE_URLS_FIELD_NUMBER = 5; + private flyteidl.admin.Common.FlyteURLs flyteUrls_; + /** + *
+     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+     * Deck will be empty for task
+     * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public boolean hasFlyteUrls() { + return flyteUrls_ != null; + } + /** + *
+     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+     * Deck will be empty for task
+     * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { + return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; + } + /** + *
+     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+     * Deck will be empty for task
+     * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { + return getFlyteUrls(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + if (fullInputs_ != null) { + output.writeMessage(3, getFullInputs()); + } + if (fullOutputs_ != null) { + output.writeMessage(4, getFullOutputs()); + } + if (flyteUrls_ != null) { + output.writeMessage(5, getFlyteUrls()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + if (fullInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFullInputs()); + } + if (fullOutputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFullOutputs()); + } + if (flyteUrls_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getFlyteUrls()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (hasFullInputs() != other.hasFullInputs()) return false; + if (hasFullInputs()) { + if (!getFullInputs() + .equals(other.getFullInputs())) return false; + } + if (hasFullOutputs() != other.hasFullOutputs()) return false; + if (hasFullOutputs()) { + if (!getFullOutputs() + .equals(other.getFullOutputs())) return false; + } + if (hasFlyteUrls() != other.hasFlyteUrls()) return false; + if (hasFlyteUrls()) { + if (!getFlyteUrls() + .equals(other.getFlyteUrls())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + if (hasFullInputs()) { + hash = (37 * hash) + FULL_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFullInputs().hashCode(); + } + if (hasFullOutputs()) { + hash = (37 * hash) + FULL_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFullOutputs().hashCode(); + } + if (hasFlyteUrls()) { + hash = (37 * hash) + FLYTE_URLS_FIELD_NUMBER; + hash = (53 * hash) + getFlyteUrls().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataResponse) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + if (fullInputsBuilder_ == null) { + fullInputs_ = null; + } else { + fullInputs_ = null; + fullInputsBuilder_ = null; + } + if (fullOutputsBuilder_ == null) { + fullOutputs_ = null; + } else { + fullOutputs_ = null; + fullOutputsBuilder_ = null; + } + if (flyteUrlsBuilder_ == null) { + flyteUrls_ = null; + } else { + flyteUrls_ = null; + flyteUrlsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (fullInputsBuilder_ == null) { + result.fullInputs_ = fullInputs_; + } else { + result.fullInputs_ = fullInputsBuilder_.build(); + } + if (fullOutputsBuilder_ == null) { + result.fullOutputs_ = fullOutputs_; + } else { + result.fullOutputs_ = fullOutputsBuilder_.build(); + } + if (flyteUrlsBuilder_ == null) { + result.flyteUrls_ = flyteUrls_; + } else { + result.flyteUrls_ = flyteUrlsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + if (other.hasFullInputs()) { + mergeFullInputs(other.getFullInputs()); + } + if (other.hasFullOutputs()) { + mergeFullOutputs(other.getFullOutputs()); + } + if (other.hasFlyteUrls()) { + mergeFlyteUrls(other.getFlyteUrls()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * Deprecated: Please use full_inputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * Deprecated: Please use full_outputs instead.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fullInputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullInputsBuilder_; + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public boolean hasFullInputs() { + return fullInputsBuilder_ != null || fullInputs_ != null; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getFullInputs() { + if (fullInputsBuilder_ == null) { + return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } else { + return fullInputsBuilder_.getMessage(); + } + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder setFullInputs(flyteidl.core.Literals.LiteralMap value) { + if (fullInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullInputs_ = value; + onChanged(); + } else { + fullInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder setFullInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fullInputsBuilder_ == null) { + fullInputs_ = builderForValue.build(); + onChanged(); + } else { + fullInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder mergeFullInputs(flyteidl.core.Literals.LiteralMap value) { + if (fullInputsBuilder_ == null) { + if (fullInputs_ != null) { + fullInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fullInputs_).mergeFrom(value).buildPartial(); + } else { + fullInputs_ = value; + } + onChanged(); + } else { + fullInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public Builder clearFullInputs() { + if (fullInputsBuilder_ == null) { + fullInputs_ = null; + onChanged(); + } else { + fullInputs_ = null; + fullInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFullInputsBuilder() { + + onChanged(); + return getFullInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { + if (fullInputsBuilder_ != null) { + return fullInputsBuilder_.getMessageOrBuilder(); + } else { + return fullInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; + } + } + /** + *
+       * Full_inputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFullInputsFieldBuilder() { + if (fullInputsBuilder_ == null) { + fullInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFullInputs(), + getParentForChildren(), + isClean()); + fullInputs_ = null; + } + return fullInputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fullOutputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullOutputsBuilder_; + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public boolean hasFullOutputs() { + return fullOutputsBuilder_ != null || fullOutputs_ != null; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFullOutputs() { + if (fullOutputsBuilder_ == null) { + return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } else { + return fullOutputsBuilder_.getMessage(); + } + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder setFullOutputs(flyteidl.core.Literals.LiteralMap value) { + if (fullOutputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fullOutputs_ = value; + onChanged(); + } else { + fullOutputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder setFullOutputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fullOutputsBuilder_ == null) { + fullOutputs_ = builderForValue.build(); + onChanged(); + } else { + fullOutputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder mergeFullOutputs(flyteidl.core.Literals.LiteralMap value) { + if (fullOutputsBuilder_ == null) { + if (fullOutputs_ != null) { + fullOutputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fullOutputs_).mergeFrom(value).buildPartial(); + } else { + fullOutputs_ = value; + } + onChanged(); + } else { + fullOutputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public Builder clearFullOutputs() { + if (fullOutputsBuilder_ == null) { + fullOutputs_ = null; + onChanged(); + } else { + fullOutputs_ = null; + fullOutputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFullOutputsBuilder() { + + onChanged(); + return getFullOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { + if (fullOutputsBuilder_ != null) { + return fullOutputsBuilder_.getMessageOrBuilder(); + } else { + return fullOutputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; + } + } + /** + *
+       * Full_outputs will only be populated if they are under a configured size threshold.
+       * 
+ * + * .flyteidl.core.LiteralMap full_outputs = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFullOutputsFieldBuilder() { + if (fullOutputsBuilder_ == null) { + fullOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFullOutputs(), + getParentForChildren(), + isClean()); + fullOutputs_ = null; + } + return fullOutputsBuilder_; + } + + private flyteidl.admin.Common.FlyteURLs flyteUrls_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> flyteUrlsBuilder_; + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public boolean hasFlyteUrls() { + return flyteUrlsBuilder_ != null || flyteUrls_ != null; + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { + if (flyteUrlsBuilder_ == null) { + return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; + } else { + return flyteUrlsBuilder_.getMessage(); + } + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public Builder setFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { + if (flyteUrlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + flyteUrls_ = value; + onChanged(); + } else { + flyteUrlsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public Builder setFlyteUrls( + flyteidl.admin.Common.FlyteURLs.Builder builderForValue) { + if (flyteUrlsBuilder_ == null) { + flyteUrls_ = builderForValue.build(); + onChanged(); + } else { + flyteUrlsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public Builder mergeFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { + if (flyteUrlsBuilder_ == null) { + if (flyteUrls_ != null) { + flyteUrls_ = + flyteidl.admin.Common.FlyteURLs.newBuilder(flyteUrls_).mergeFrom(value).buildPartial(); + } else { + flyteUrls_ = value; + } + onChanged(); + } else { + flyteUrlsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public Builder clearFlyteUrls() { + if (flyteUrlsBuilder_ == null) { + flyteUrls_ = null; + onChanged(); + } else { + flyteUrls_ = null; + flyteUrlsBuilder_ = null; + } + + return this; + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public flyteidl.admin.Common.FlyteURLs.Builder getFlyteUrlsBuilder() { + + onChanged(); + return getFlyteUrlsFieldBuilder().getBuilder(); + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { + if (flyteUrlsBuilder_ != null) { + return flyteUrlsBuilder_.getMessageOrBuilder(); + } else { + return flyteUrls_ == null ? + flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; + } + } + /** + *
+       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
+       * Deck will be empty for task
+       * 
+ * + * .flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> + getFlyteUrlsFieldBuilder() { + if (flyteUrlsBuilder_ == null) { + flyteUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder>( + getFlyteUrls(), + getParentForChildren(), + isClean()); + flyteUrls_ = null; + } + return flyteUrlsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Reason_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Reason_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n#flyteidl/admin/task_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\036flyte" + + "idl/core/identifier.proto\032\034flyteidl/core" + + "/literals.proto\032\032flyteidl/event/event.pr" + + "oto\032\037google/protobuf/timestamp.proto\032\036go" + + "ogle/protobuf/duration.proto\032\034google/pro" + + "tobuf/struct.proto\"M\n\027TaskExecutionGetRe" + + "quest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.TaskEx" + + "ecutionIdentifier\"\263\001\n\030TaskExecutionListR" + + "equest\022A\n\021node_execution_id\030\001 \001(\0132&.flyt" + + "eidl.core.NodeExecutionIdentifier\022\r\n\005lim" + + "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + + "\240\001\n\rTaskExecution\0222\n\002id\030\001 \001(\0132&.flyteidl" + + ".core.TaskExecutionIdentifier\022\021\n\tinput_u" + + "ri\030\002 \001(\t\0225\n\007closure\030\003 \001(\0132$.flyteidl.adm" + + "in.TaskExecutionClosure\022\021\n\tis_parent\030\004 \001" + + "(\010\"Z\n\021TaskExecutionList\0226\n\017task_executio" + + "ns\030\001 \003(\0132\035.flyteidl.admin.TaskExecution\022" + + "\r\n\005token\030\002 \001(\t\"\207\005\n\024TaskExecutionClosure\022" + + "\030\n\noutput_uri\030\001 \001(\tB\002\030\001H\000\022.\n\005error\030\002 \001(\013" + + "2\035.flyteidl.core.ExecutionErrorH\000\0224\n\013out" + + "put_data\030\014 \001(\0132\031.flyteidl.core.LiteralMa" + + "pB\002\030\001H\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.T" + + "askExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.flyte" + + "idl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022+\n\010duration\030\006 \001" + + "(\0132\031.google.protobuf.Duration\022.\n\ncreated" + + "_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022.\n" + + "\nupdated_at\030\010 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\013custom_info\030\t \001(\0132\027.google.prot" + + "obuf.Struct\022\016\n\006reason\030\n \001(\t\022\021\n\ttask_type" + + "\030\013 \001(\t\0227\n\010metadata\030\020 \001(\0132%.flyteidl.even" + + "t.TaskExecutionMetadata\022\025\n\revent_version" + + "\030\021 \001(\005\022\'\n\007reasons\030\022 \003(\0132\026.flyteidl.admin" + + ".ReasonB\017\n\routput_result\"J\n\006Reason\022/\n\013oc" + + "curred_at\030\001 \001(\0132\032.google.protobuf.Timest" + + "amp\022\017\n\007message\030\002 \001(\t\"Q\n\033TaskExecutionGet" + + "DataRequest\0222\n\002id\030\001 \001(\0132&.flyteidl.core." + + "TaskExecutionIdentifier\"\211\002\n\034TaskExecutio" + + "nGetDataResponse\022+\n\006inputs\030\001 \001(\0132\027.flyte" + + "idl.admin.UrlBlobB\002\030\001\022,\n\007outputs\030\002 \001(\0132\027" + + ".flyteidl.admin.UrlBlobB\002\030\001\022.\n\013full_inpu" + + "ts\030\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014f" + + "ull_outputs\030\004 \001(\0132\031.flyteidl.core.Litera" + + "lMap\022-\n\nflyte_urls\030\005 \001(\0132\031.flyteidl.admi" + + "n.FlyteURLsB7Z5github.com/flyteorg/flyte" + + "idl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.event.Event.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor, + new java.lang.String[] { "NodeExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", "IsParent", }); + internal_static_flyteidl_admin_TaskExecutionList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionList_descriptor, + new java.lang.String[] { "TaskExecutions", "Token", }); + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "OutputData", "Phase", "Logs", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "CustomInfo", "Reason", "TaskType", "Metadata", "EventVersion", "Reasons", "OutputResult", }); + internal_static_flyteidl_admin_Reason_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_Reason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Reason_descriptor, + new java.lang.String[] { "OccurredAt", "Message", }); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", "FullInputs", "FullOutputs", "FlyteUrls", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.event.Event.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java new file mode 100644 index 0000000000..dbdefaa61d --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java @@ -0,0 +1,5569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +package flyteidl.admin; + +public final class TaskOuterClass { + private TaskOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for task.
+     * +required
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for task.
+     * +required
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpec getSpec(); + /** + *
+     * Represents the specification for task.
+     * +required
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a task.
+   * See :ref:`ref_flyteidl.admin.Task` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class TaskCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateRequest) + TaskCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateRequest.newBuilder() to construct. + private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskSpec spec_; + /** + *
+     * Represents the specification for task.
+     * +required
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for task.
+     * +required
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for task.
+     * +required
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskOuterClass.TaskCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateRequest other = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to create a revision of a task.
+     * See :ref:`ref_flyteidl.admin.Task` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateRequest) + flyteidl.admin.TaskOuterClass.TaskCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest build() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskCreateRequest) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateRequest other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.TaskOuterClass.TaskSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for task.
+       * +required
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) + private static final flyteidl.admin.TaskOuterClass.TaskCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Represents a response structure if task creation succeeds.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class TaskCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateResponse) + TaskCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateResponse.newBuilder() to construct. + private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskOuterClass.TaskCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateResponse other = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a response structure if task creation succeeds.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateResponse) + flyteidl.admin.TaskOuterClass.TaskCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse build() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskCreateResponse) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateResponse other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) + private static final flyteidl.admin.TaskOuterClass.TaskCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Task) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + java.lang.String getShortDescription(); + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + com.google.protobuf.ByteString + getShortDescriptionBytes(); + } + /** + *
+   * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+   * arranged to process workflow inputs and produce a deterministic set of outputs.
+   * Tasks can come in many varieties tuned for specialized behavior. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Task extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Task) + TaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use Task.newBuilder() to construct. + private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Task() { + shortDescription_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Task( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + shortDescription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object shortDescription_; + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } + } + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (closure_ != null) { + output.writeMessage(2, getClosure()); + } + if (!getShortDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + if (!getShortDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskOuterClass.Task)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.Task other = (flyteidl.admin.TaskOuterClass.Task) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (!getShortDescription() + .equals(other.getShortDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getShortDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.Task prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+     * arranged to process workflow inputs and produce a deterministic set of outputs.
+     * Tasks can come in many varieties tuned for specialized behavior. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Task) + flyteidl.admin.TaskOuterClass.TaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.Task.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + shortDescription_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.Task.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task build() { + flyteidl.admin.TaskOuterClass.Task result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task buildPartial() { + flyteidl.admin.TaskOuterClass.Task result = new flyteidl.admin.TaskOuterClass.Task(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + result.shortDescription_ = shortDescription_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.Task) { + return mergeFrom((flyteidl.admin.TaskOuterClass.Task)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.Task other) { + if (other == flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (!other.getShortDescription().isEmpty()) { + shortDescription_ = other.shortDescription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.Task parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.Task) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.TaskOuterClass.TaskClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private java.lang.Object shortDescription_ = ""; + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public Builder setShortDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + shortDescription_ = value; + onChanged(); + return this; + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public Builder clearShortDescription() { + + shortDescription_ = getDefaultInstance().getShortDescription(); + onChanged(); + return this; + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public Builder setShortDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + shortDescription_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Task) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) + private static final flyteidl.admin.TaskOuterClass.Task DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.Task(); + } + + public static flyteidl.admin.TaskOuterClass.Task getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Task parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Task(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.Task getTasks(int index); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + int getTasksCount(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of tasks returned from the admin.
+   * See :ref:`ref_flyteidl.admin.Task` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class TaskList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskList) + TaskListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskList.newBuilder() to construct. + private TaskList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskList() { + tasks_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tasks_.add( + input.readMessage(flyteidl.admin.TaskOuterClass.Task.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + private int bitField0_; + public static final int TASKS_FIELD_NUMBER = 1; + private java.util.List tasks_; + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(1, tasks_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tasks_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskOuterClass.TaskList)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskList other = (flyteidl.admin.TaskOuterClass.TaskList) obj; + + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a list of tasks returned from the admin.
+     * See :ref:`ref_flyteidl.admin.Task` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskList) + flyteidl.admin.TaskOuterClass.TaskListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tasksBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList build() { + flyteidl.admin.TaskOuterClass.TaskList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList buildPartial() { + flyteidl.admin.TaskOuterClass.TaskList result = new flyteidl.admin.TaskOuterClass.TaskList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskList) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskList other) { + if (other == flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance()) return this; + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> tasksBuilder_; + + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks(flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) + private static final flyteidl.admin.TaskOuterClass.TaskList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskList(); + } + + public static flyteidl.admin.TaskOuterClass.TaskList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + boolean hasDescription(); + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription(); + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder(); + } + /** + *
+   * Represents a structure that encapsulates the user-configured specification of the task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class TaskSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskSpec) + TaskSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskSpec.newBuilder() to construct. + private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder subBuilder = null; + if (description_ != null) { + subBuilder = description_.toBuilder(); + } + description_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(description_); + description_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public boolean hasDescription() { + return description_ != null; + } + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { + return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; + } + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { + return getDescription(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + if (description_ != null) { + output.writeMessage(2, getDescription()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + if (description_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDescription()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskOuterClass.TaskSpec)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskSpec other = (flyteidl.admin.TaskOuterClass.TaskSpec) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription() + .equals(other.getDescription())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a structure that encapsulates the user-configured specification of the task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskSpec) + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (descriptionBuilder_ == null) { + description_ = null; + } else { + description_ = null; + descriptionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec build() { + flyteidl.admin.TaskOuterClass.TaskSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec buildPartial() { + flyteidl.admin.TaskOuterClass.TaskSpec result = new flyteidl.admin.TaskOuterClass.TaskSpec(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (descriptionBuilder_ == null) { + result.description_ = description_; + } else { + result.description_ = descriptionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskSpec) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskSpec other) { + if (other == flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (other.hasDescription()) { + mergeDescription(other.getDescription()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> descriptionBuilder_; + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public boolean hasDescription() { + return descriptionBuilder_ != null || description_ != null; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { + if (descriptionBuilder_ == null) { + return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; + } else { + return descriptionBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public Builder setDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { + if (descriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + onChanged(); + } else { + descriptionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public Builder setDescription( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { + if (descriptionBuilder_ == null) { + description_ = builderForValue.build(); + onChanged(); + } else { + descriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public Builder mergeDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { + if (descriptionBuilder_ == null) { + if (description_ != null) { + description_ = + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.newBuilder(description_).mergeFrom(value).buildPartial(); + } else { + description_ = value; + } + onChanged(); + } else { + descriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public Builder clearDescription() { + if (descriptionBuilder_ == null) { + description_ = null; + onChanged(); + } else { + description_ = null; + descriptionBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder getDescriptionBuilder() { + + onChanged(); + return getDescriptionFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { + if (descriptionBuilder_ != null) { + return descriptionBuilder_.getMessageOrBuilder(); + } else { + return description_ == null ? + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; + } + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> + getDescriptionFieldBuilder() { + if (descriptionBuilder_ == null) { + descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder>( + getDescription(), + getParentForChildren(), + isClean()); + description_ = null; + } + return descriptionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) + private static final flyteidl.admin.TaskOuterClass.TaskSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskSpec(); + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + boolean hasCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTask getCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder(); + + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+   * and task metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class TaskClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskClosure) + TaskClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskClosure.newBuilder() to construct. + private TaskClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Compiler.CompiledTask.Builder subBuilder = null; + if (compiledTask_ != null) { + subBuilder = compiledTask_.toBuilder(); + } + compiledTask_ = input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledTask_); + compiledTask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + public static final int COMPILED_TASK_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledTask compiledTask_; + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTask_ != null; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + return getCompiledTask(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (compiledTask_ != null) { + output.writeMessage(1, getCompiledTask()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledTask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledTask()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.TaskOuterClass.TaskClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskClosure other = (flyteidl.admin.TaskOuterClass.TaskClosure) obj; + + if (hasCompiledTask() != other.hasCompiledTask()) return false; + if (hasCompiledTask()) { + if (!getCompiledTask() + .equals(other.getCompiledTask())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCompiledTask()) { + hash = (37 * hash) + COMPILED_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCompiledTask().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+     * and task metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskClosure) + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (compiledTaskBuilder_ == null) { + compiledTask_ = null; + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure build() { + flyteidl.admin.TaskOuterClass.TaskClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure buildPartial() { + flyteidl.admin.TaskOuterClass.TaskClosure result = new flyteidl.admin.TaskOuterClass.TaskClosure(this); + if (compiledTaskBuilder_ == null) { + result.compiledTask_ = compiledTask_; + } else { + result.compiledTask_ = compiledTaskBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskClosure) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskClosure other) { + if (other == flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance()) return this; + if (other.hasCompiledTask()) { + mergeCompiledTask(other.getCompiledTask()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledTask compiledTask_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> compiledTaskBuilder_; + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTaskBuilder_ != null || compiledTask_ != null; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + if (compiledTaskBuilder_ == null) { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } else { + return compiledTaskBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledTask_ = value; + onChanged(); + } else { + compiledTaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (compiledTaskBuilder_ == null) { + compiledTask_ = builderForValue.build(); + onChanged(); + } else { + compiledTaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder mergeCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (compiledTask_ != null) { + compiledTask_ = + flyteidl.core.Compiler.CompiledTask.newBuilder(compiledTask_).mergeFrom(value).buildPartial(); + } else { + compiledTask_ = value; + } + onChanged(); + } else { + compiledTaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder clearCompiledTask() { + if (compiledTaskBuilder_ == null) { + compiledTask_ = null; + onChanged(); + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getCompiledTaskBuilder() { + + onChanged(); + return getCompiledTaskFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + if (compiledTaskBuilder_ != null) { + return compiledTaskBuilder_.getMessageOrBuilder(); + } else { + return compiledTask_ == null ? + flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getCompiledTaskFieldBuilder() { + if (compiledTaskBuilder_ == null) { + compiledTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + getCompiledTask(), + getParentForChildren(), + isClean()); + compiledTask_ = null; + } + return compiledTaskBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) + private static final flyteidl.admin.TaskOuterClass.TaskClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskClosure(); + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Task_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Task_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031flyteidl/admin/task.proto\022\016flyteidl.ad" + + "min\032\036flyteidl/core/identifier.proto\032\031fly" + + "teidl/core/tasks.proto\032\034flyteidl/core/co" + + "mpiler.proto\032\'flyteidl/admin/description" + + "_entity.proto\032\037google/protobuf/timestamp" + + ".proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132" + + "\031.flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\013" + + "2\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreate" + + "Response\"v\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl." + + "core.Identifier\022,\n\007closure\030\002 \001(\0132\033.flyte" + + "idl.admin.TaskClosure\022\031\n\021short_descripti" + + "on\030\003 \001(\t\">\n\010TaskList\022#\n\005tasks\030\001 \003(\0132\024.fl" + + "yteidl.admin.Task\022\r\n\005token\030\002 \001(\t\"q\n\010Task" + + "Spec\022-\n\010template\030\001 \001(\0132\033.flyteidl.core.T" + + "askTemplate\0226\n\013description\030\002 \001(\0132!.flyte" + + "idl.admin.DescriptionEntity\"q\n\013TaskClosu" + + "re\0222\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.cor" + + "e.CompiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB7Z5github.com/fly" + + "teorg/flyteidl/gen/pb-go/flyteidl/adminb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Compiler.getDescriptor(), + flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_TaskCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Task_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Task_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Task_descriptor, + new java.lang.String[] { "Id", "Closure", "ShortDescription", }); + internal_static_flyteidl_admin_TaskList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskList_descriptor, + new java.lang.String[] { "Tasks", "Token", }); + internal_static_flyteidl_admin_TaskSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskSpec_descriptor, + new java.lang.String[] { "Template", "Description", }); + internal_static_flyteidl_admin_TaskClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskClosure_descriptor, + new java.lang.String[] { "CompiledTask", "CreatedAt", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Compiler.getDescriptor(); + flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/VersionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/VersionOuterClass.java new file mode 100644 index 0000000000..eeba2f4d2d --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/VersionOuterClass.java @@ -0,0 +1,2129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/version.proto + +package flyteidl.admin; + +public final class VersionOuterClass { + private VersionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GetVersionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetVersionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The control plane version information. FlyteAdmin and related components
+     * form the control plane of Flyte
+     * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + boolean hasControlPlaneVersion(); + /** + *
+     * The control plane version information. FlyteAdmin and related components
+     * form the control plane of Flyte
+     * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + flyteidl.admin.VersionOuterClass.Version getControlPlaneVersion(); + /** + *
+     * The control plane version information. FlyteAdmin and related components
+     * form the control plane of Flyte
+     * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + flyteidl.admin.VersionOuterClass.VersionOrBuilder getControlPlaneVersionOrBuilder(); + } + /** + *
+   * Response for the GetVersion API
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetVersionResponse} + */ + public static final class GetVersionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetVersionResponse) + GetVersionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetVersionResponse.newBuilder() to construct. + private GetVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetVersionResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetVersionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.VersionOuterClass.Version.Builder subBuilder = null; + if (controlPlaneVersion_ != null) { + subBuilder = controlPlaneVersion_.toBuilder(); + } + controlPlaneVersion_ = input.readMessage(flyteidl.admin.VersionOuterClass.Version.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(controlPlaneVersion_); + controlPlaneVersion_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.VersionOuterClass.GetVersionResponse.class, flyteidl.admin.VersionOuterClass.GetVersionResponse.Builder.class); + } + + public static final int CONTROL_PLANE_VERSION_FIELD_NUMBER = 1; + private flyteidl.admin.VersionOuterClass.Version controlPlaneVersion_; + /** + *
+     * The control plane version information. FlyteAdmin and related components
+     * form the control plane of Flyte
+     * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public boolean hasControlPlaneVersion() { + return controlPlaneVersion_ != null; + } + /** + *
+     * The control plane version information. FlyteAdmin and related components
+     * form the control plane of Flyte
+     * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public flyteidl.admin.VersionOuterClass.Version getControlPlaneVersion() { + return controlPlaneVersion_ == null ? flyteidl.admin.VersionOuterClass.Version.getDefaultInstance() : controlPlaneVersion_; + } + /** + *
+     * The control plane version information. FlyteAdmin and related components
+     * form the control plane of Flyte
+     * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public flyteidl.admin.VersionOuterClass.VersionOrBuilder getControlPlaneVersionOrBuilder() { + return getControlPlaneVersion(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (controlPlaneVersion_ != null) { + output.writeMessage(1, getControlPlaneVersion()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (controlPlaneVersion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getControlPlaneVersion()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.VersionOuterClass.GetVersionResponse)) { + return super.equals(obj); + } + flyteidl.admin.VersionOuterClass.GetVersionResponse other = (flyteidl.admin.VersionOuterClass.GetVersionResponse) obj; + + if (hasControlPlaneVersion() != other.hasControlPlaneVersion()) return false; + if (hasControlPlaneVersion()) { + if (!getControlPlaneVersion() + .equals(other.getControlPlaneVersion())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasControlPlaneVersion()) { + hash = (37 * hash) + CONTROL_PLANE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getControlPlaneVersion().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.VersionOuterClass.GetVersionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response for the GetVersion API
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetVersionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetVersionResponse) + flyteidl.admin.VersionOuterClass.GetVersionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.VersionOuterClass.GetVersionResponse.class, flyteidl.admin.VersionOuterClass.GetVersionResponse.Builder.class); + } + + // Construct using flyteidl.admin.VersionOuterClass.GetVersionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (controlPlaneVersionBuilder_ == null) { + controlPlaneVersion_ = null; + } else { + controlPlaneVersion_ = null; + controlPlaneVersionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionResponse getDefaultInstanceForType() { + return flyteidl.admin.VersionOuterClass.GetVersionResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionResponse build() { + flyteidl.admin.VersionOuterClass.GetVersionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionResponse buildPartial() { + flyteidl.admin.VersionOuterClass.GetVersionResponse result = new flyteidl.admin.VersionOuterClass.GetVersionResponse(this); + if (controlPlaneVersionBuilder_ == null) { + result.controlPlaneVersion_ = controlPlaneVersion_; + } else { + result.controlPlaneVersion_ = controlPlaneVersionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.VersionOuterClass.GetVersionResponse) { + return mergeFrom((flyteidl.admin.VersionOuterClass.GetVersionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.VersionOuterClass.GetVersionResponse other) { + if (other == flyteidl.admin.VersionOuterClass.GetVersionResponse.getDefaultInstance()) return this; + if (other.hasControlPlaneVersion()) { + mergeControlPlaneVersion(other.getControlPlaneVersion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.VersionOuterClass.GetVersionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.VersionOuterClass.GetVersionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.VersionOuterClass.Version controlPlaneVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.VersionOuterClass.Version, flyteidl.admin.VersionOuterClass.Version.Builder, flyteidl.admin.VersionOuterClass.VersionOrBuilder> controlPlaneVersionBuilder_; + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public boolean hasControlPlaneVersion() { + return controlPlaneVersionBuilder_ != null || controlPlaneVersion_ != null; + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public flyteidl.admin.VersionOuterClass.Version getControlPlaneVersion() { + if (controlPlaneVersionBuilder_ == null) { + return controlPlaneVersion_ == null ? flyteidl.admin.VersionOuterClass.Version.getDefaultInstance() : controlPlaneVersion_; + } else { + return controlPlaneVersionBuilder_.getMessage(); + } + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public Builder setControlPlaneVersion(flyteidl.admin.VersionOuterClass.Version value) { + if (controlPlaneVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlPlaneVersion_ = value; + onChanged(); + } else { + controlPlaneVersionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public Builder setControlPlaneVersion( + flyteidl.admin.VersionOuterClass.Version.Builder builderForValue) { + if (controlPlaneVersionBuilder_ == null) { + controlPlaneVersion_ = builderForValue.build(); + onChanged(); + } else { + controlPlaneVersionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public Builder mergeControlPlaneVersion(flyteidl.admin.VersionOuterClass.Version value) { + if (controlPlaneVersionBuilder_ == null) { + if (controlPlaneVersion_ != null) { + controlPlaneVersion_ = + flyteidl.admin.VersionOuterClass.Version.newBuilder(controlPlaneVersion_).mergeFrom(value).buildPartial(); + } else { + controlPlaneVersion_ = value; + } + onChanged(); + } else { + controlPlaneVersionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public Builder clearControlPlaneVersion() { + if (controlPlaneVersionBuilder_ == null) { + controlPlaneVersion_ = null; + onChanged(); + } else { + controlPlaneVersion_ = null; + controlPlaneVersionBuilder_ = null; + } + + return this; + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public flyteidl.admin.VersionOuterClass.Version.Builder getControlPlaneVersionBuilder() { + + onChanged(); + return getControlPlaneVersionFieldBuilder().getBuilder(); + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + public flyteidl.admin.VersionOuterClass.VersionOrBuilder getControlPlaneVersionOrBuilder() { + if (controlPlaneVersionBuilder_ != null) { + return controlPlaneVersionBuilder_.getMessageOrBuilder(); + } else { + return controlPlaneVersion_ == null ? + flyteidl.admin.VersionOuterClass.Version.getDefaultInstance() : controlPlaneVersion_; + } + } + /** + *
+       * The control plane version information. FlyteAdmin and related components
+       * form the control plane of Flyte
+       * 
+ * + * .flyteidl.admin.Version control_plane_version = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.VersionOuterClass.Version, flyteidl.admin.VersionOuterClass.Version.Builder, flyteidl.admin.VersionOuterClass.VersionOrBuilder> + getControlPlaneVersionFieldBuilder() { + if (controlPlaneVersionBuilder_ == null) { + controlPlaneVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.VersionOuterClass.Version, flyteidl.admin.VersionOuterClass.Version.Builder, flyteidl.admin.VersionOuterClass.VersionOrBuilder>( + getControlPlaneVersion(), + getParentForChildren(), + isClean()); + controlPlaneVersion_ = null; + } + return controlPlaneVersionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetVersionResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionResponse) + private static final flyteidl.admin.VersionOuterClass.GetVersionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.VersionOuterClass.GetVersionResponse(); + } + + public static flyteidl.admin.VersionOuterClass.GetVersionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVersionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVersionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Version) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Specifies the GIT sha of the build
+     * 
+ * + * string Build = 1; + */ + java.lang.String getBuild(); + /** + *
+     * Specifies the GIT sha of the build
+     * 
+ * + * string Build = 1; + */ + com.google.protobuf.ByteString + getBuildBytes(); + + /** + *
+     * Version for the build, should follow a semver
+     * 
+ * + * string Version = 2; + */ + java.lang.String getVersion(); + /** + *
+     * Version for the build, should follow a semver
+     * 
+ * + * string Version = 2; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * Build timestamp
+     * 
+ * + * string BuildTime = 3; + */ + java.lang.String getBuildTime(); + /** + *
+     * Build timestamp
+     * 
+ * + * string BuildTime = 3; + */ + com.google.protobuf.ByteString + getBuildTimeBytes(); + } + /** + *
+   * Provides Version information for a component
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Version} + */ + public static final class Version extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Version) + VersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Version.newBuilder() to construct. + private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Version() { + build_ = ""; + version_ = ""; + buildTime_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Version( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + build_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + buildTime_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.VersionOuterClass.Version.class, flyteidl.admin.VersionOuterClass.Version.Builder.class); + } + + public static final int BUILD_FIELD_NUMBER = 1; + private volatile java.lang.Object build_; + /** + *
+     * Specifies the GIT sha of the build
+     * 
+ * + * string Build = 1; + */ + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } + } + /** + *
+     * Specifies the GIT sha of the build
+     * 
+ * + * string Build = 1; + */ + public com.google.protobuf.ByteString + getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + *
+     * Version for the build, should follow a semver
+     * 
+ * + * string Version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     * Version for the build, should follow a semver
+     * 
+ * + * string Version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUILDTIME_FIELD_NUMBER = 3; + private volatile java.lang.Object buildTime_; + /** + *
+     * Build timestamp
+     * 
+ * + * string BuildTime = 3; + */ + public java.lang.String getBuildTime() { + java.lang.Object ref = buildTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + buildTime_ = s; + return s; + } + } + /** + *
+     * Build timestamp
+     * 
+ * + * string BuildTime = 3; + */ + public com.google.protobuf.ByteString + getBuildTimeBytes() { + java.lang.Object ref = buildTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getBuildBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!getBuildTimeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, buildTime_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getBuildBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, build_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!getBuildTimeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, buildTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.VersionOuterClass.Version)) { + return super.equals(obj); + } + flyteidl.admin.VersionOuterClass.Version other = (flyteidl.admin.VersionOuterClass.Version) obj; + + if (!getBuild() + .equals(other.getBuild())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getBuildTime() + .equals(other.getBuildTime())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUILD_FIELD_NUMBER; + hash = (53 * hash) + getBuild().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + BUILDTIME_FIELD_NUMBER; + hash = (53 * hash) + getBuildTime().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.Version parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.Version parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.Version parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.VersionOuterClass.Version prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Provides Version information for a component
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Version} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Version) + flyteidl.admin.VersionOuterClass.VersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.VersionOuterClass.Version.class, flyteidl.admin.VersionOuterClass.Version.Builder.class); + } + + // Construct using flyteidl.admin.VersionOuterClass.Version.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + build_ = ""; + + version_ = ""; + + buildTime_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_descriptor; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.Version getDefaultInstanceForType() { + return flyteidl.admin.VersionOuterClass.Version.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.Version build() { + flyteidl.admin.VersionOuterClass.Version result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.Version buildPartial() { + flyteidl.admin.VersionOuterClass.Version result = new flyteidl.admin.VersionOuterClass.Version(this); + result.build_ = build_; + result.version_ = version_; + result.buildTime_ = buildTime_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.VersionOuterClass.Version) { + return mergeFrom((flyteidl.admin.VersionOuterClass.Version)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.VersionOuterClass.Version other) { + if (other == flyteidl.admin.VersionOuterClass.Version.getDefaultInstance()) return this; + if (!other.getBuild().isEmpty()) { + build_ = other.build_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getBuildTime().isEmpty()) { + buildTime_ = other.buildTime_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.VersionOuterClass.Version parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.VersionOuterClass.Version) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object build_ = ""; + /** + *
+       * Specifies the GIT sha of the build
+       * 
+ * + * string Build = 1; + */ + public java.lang.String getBuild() { + java.lang.Object ref = build_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + build_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Specifies the GIT sha of the build
+       * 
+ * + * string Build = 1; + */ + public com.google.protobuf.ByteString + getBuildBytes() { + java.lang.Object ref = build_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + build_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Specifies the GIT sha of the build
+       * 
+ * + * string Build = 1; + */ + public Builder setBuild( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + build_ = value; + onChanged(); + return this; + } + /** + *
+       * Specifies the GIT sha of the build
+       * 
+ * + * string Build = 1; + */ + public Builder clearBuild() { + + build_ = getDefaultInstance().getBuild(); + onChanged(); + return this; + } + /** + *
+       * Specifies the GIT sha of the build
+       * 
+ * + * string Build = 1; + */ + public Builder setBuildBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + build_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Version for the build, should follow a semver
+       * 
+ * + * string Version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Version for the build, should follow a semver
+       * 
+ * + * string Version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Version for the build, should follow a semver
+       * 
+ * + * string Version = 2; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version for the build, should follow a semver
+       * 
+ * + * string Version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Version for the build, should follow a semver
+       * 
+ * + * string Version = 2; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object buildTime_ = ""; + /** + *
+       * Build timestamp
+       * 
+ * + * string BuildTime = 3; + */ + public java.lang.String getBuildTime() { + java.lang.Object ref = buildTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + buildTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Build timestamp
+       * 
+ * + * string BuildTime = 3; + */ + public com.google.protobuf.ByteString + getBuildTimeBytes() { + java.lang.Object ref = buildTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Build timestamp
+       * 
+ * + * string BuildTime = 3; + */ + public Builder setBuildTime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + buildTime_ = value; + onChanged(); + return this; + } + /** + *
+       * Build timestamp
+       * 
+ * + * string BuildTime = 3; + */ + public Builder clearBuildTime() { + + buildTime_ = getDefaultInstance().getBuildTime(); + onChanged(); + return this; + } + /** + *
+       * Build timestamp
+       * 
+ * + * string BuildTime = 3; + */ + public Builder setBuildTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + buildTime_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Version) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Version) + private static final flyteidl.admin.VersionOuterClass.Version DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.VersionOuterClass.Version(); + } + + public static flyteidl.admin.VersionOuterClass.Version getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Version parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Version(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.Version getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetVersionRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Empty request for GetVersion
+   * 
+ * + * Protobuf type {@code flyteidl.admin.GetVersionRequest} + */ + public static final class GetVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.GetVersionRequest) + GetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetVersionRequest.newBuilder() to construct. + private GetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetVersionRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetVersionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.VersionOuterClass.GetVersionRequest.class, flyteidl.admin.VersionOuterClass.GetVersionRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.VersionOuterClass.GetVersionRequest)) { + return super.equals(obj); + } + flyteidl.admin.VersionOuterClass.GetVersionRequest other = (flyteidl.admin.VersionOuterClass.GetVersionRequest) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.VersionOuterClass.GetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Empty request for GetVersion
+     * 
+ * + * Protobuf type {@code flyteidl.admin.GetVersionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetVersionRequest) + flyteidl.admin.VersionOuterClass.GetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.VersionOuterClass.GetVersionRequest.class, flyteidl.admin.VersionOuterClass.GetVersionRequest.Builder.class); + } + + // Construct using flyteidl.admin.VersionOuterClass.GetVersionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionRequest getDefaultInstanceForType() { + return flyteidl.admin.VersionOuterClass.GetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionRequest build() { + flyteidl.admin.VersionOuterClass.GetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionRequest buildPartial() { + flyteidl.admin.VersionOuterClass.GetVersionRequest result = new flyteidl.admin.VersionOuterClass.GetVersionRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.VersionOuterClass.GetVersionRequest) { + return mergeFrom((flyteidl.admin.VersionOuterClass.GetVersionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.VersionOuterClass.GetVersionRequest other) { + if (other == flyteidl.admin.VersionOuterClass.GetVersionRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.VersionOuterClass.GetVersionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.VersionOuterClass.GetVersionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.GetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionRequest) + private static final flyteidl.admin.VersionOuterClass.GetVersionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.VersionOuterClass.GetVersionRequest(); + } + + public static flyteidl.admin.VersionOuterClass.GetVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetVersionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.VersionOuterClass.GetVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetVersionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Version_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Version_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_GetVersionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/admin/version.proto\022\016flyteidl" + + ".admin\"L\n\022GetVersionResponse\0226\n\025control_" + + "plane_version\030\001 \001(\0132\027.flyteidl.admin.Ver" + + "sion\"<\n\007Version\022\r\n\005Build\030\001 \001(\t\022\017\n\007Versio" + + "n\030\002 \001(\t\022\021\n\tBuildTime\030\003 \001(\t\"\023\n\021GetVersion" + + "RequestB7Z5github.com/flyteorg/flyteidl/" + + "gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_GetVersionResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetVersionResponse_descriptor, + new java.lang.String[] { "ControlPlaneVersion", }); + internal_static_flyteidl_admin_Version_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Version_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Version_descriptor, + new java.lang.String[] { "Build", "Version", "BuildTime", }); + internal_static_flyteidl_admin_GetVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_GetVersionRequest_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java new file mode 100644 index 0000000000..707e61bcdc --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java @@ -0,0 +1,5560 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow_attributes.proto + +package flyteidl.admin; + +public final class WorkflowAttributesOuterClass { + private WorkflowAttributesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowAttributesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + boolean hasMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); + } + /** + *
+   * Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributes} + */ + public static final class WorkflowAttributes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributes) + WorkflowAttributesOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributes.newBuilder() to construct. + private WorkflowAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributes() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 34: { + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; + if (matchingAttributes_ != null) { + subBuilder = matchingAttributes_.toBuilder(); + } + matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchingAttributes_); + matchingAttributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id for which this set of attributes will be applied.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id for which this set of attributes will be applied.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name for which this set of attributes will be applied.
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 4; + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public boolean hasMatchingAttributes() { + return matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + return getMatchingAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (matchingAttributes_ != null) { + output.writeMessage(4, getMatchingAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (matchingAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMatchingAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; + if (hasMatchingAttributes()) { + if (!getMatchingAttributes() + .equals(other.getMatchingAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + if (hasMatchingAttributes()) { + hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getMatchingAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributes) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + if (matchingAttributesBuilder_ == null) { + result.matchingAttributes_ = matchingAttributes_; + } else { + result.matchingAttributes_ = matchingAttributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.hasMatchingAttributes()) { + mergeMatchingAttributes(other.getMatchingAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id for which this set of attributes will be applied.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id for which this set of attributes will be applied.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name for which this set of attributes will be applied.
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public boolean hasMatchingAttributes() { + return matchingAttributesBuilder_ != null || matchingAttributes_ != null; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } else { + return matchingAttributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchingAttributes_ = value; + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder setMatchingAttributes( + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = builderForValue.build(); + onChanged(); + } else { + matchingAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { + if (matchingAttributesBuilder_ == null) { + if (matchingAttributes_ != null) { + matchingAttributes_ = + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); + } else { + matchingAttributes_ = value; + } + onChanged(); + } else { + matchingAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public Builder clearMatchingAttributes() { + if (matchingAttributesBuilder_ == null) { + matchingAttributes_ = null; + onChanged(); + } else { + matchingAttributes_ = null; + matchingAttributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { + + onChanged(); + return getMatchingAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { + if (matchingAttributesBuilder_ != null) { + return matchingAttributesBuilder_.getMessageOrBuilder(); + } else { + return matchingAttributes_ == null ? + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; + } + } + /** + * .flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> + getMatchingAttributesFieldBuilder() { + if (matchingAttributesBuilder_ == null) { + matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( + getMatchingAttributes(), + getParentForChildren(), + isClean()); + matchingAttributes_ = null; + } + return matchingAttributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowAttributes) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Sets custom attributes for a project, domain and workflow combination.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} + */ + public static final class WorkflowAttributesUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) + WorkflowAttributesUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesUpdateRequest.newBuilder() to construct. + private WorkflowAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesUpdateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesUpdateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Sets custom attributes for a project, domain and workflow combination.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} + */ + public static final class WorkflowAttributesUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) + WorkflowAttributesUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesUpdateResponse.newBuilder() to construct. + private WorkflowAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + int getResourceTypeValue(); + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request to get an individual workflow attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} + */ + public static final class WorkflowAttributesGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetRequest) + WorkflowAttributesGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesGetRequest.newBuilder() to construct. + private WorkflowAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesGetRequest() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; + private int resourceType_; + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Which type of matchable attributes to return.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(4, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resourceType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (resourceType_ != other.resourceType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to get an individual workflow attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + result.resourceType_ = resourceType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to return.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowAttributesGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + boolean hasAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); + } + /** + *
+   * Response to get an individual workflow attribute override.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} + */ + public static final class WorkflowAttributesGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetResponse) + WorkflowAttributesGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesGetResponse.newBuilder() to construct. + private WorkflowAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesGetResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesGetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; + if (attributes_ != null) { + subBuilder = attributes_.toBuilder(); + } + attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributes_); + attributes_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 1; + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + return getAttributes(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (attributes_ != null) { + output.writeMessage(1, getAttributes()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttributes()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) obj; + + if (hasAttributes() != other.hasAttributes()) return false; + if (hasAttributes()) { + if (!getAttributes() + .equals(other.getAttributes())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAttributes()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to get an individual workflow attribute override.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (attributesBuilder_ == null) { + attributes_ = null; + } else { + attributes_ = null; + attributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(this); + if (attributesBuilder_ == null) { + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance()) return this; + if (other.hasAttributes()) { + mergeAttributes(other.getAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public boolean hasAttributes() { + return attributesBuilder_ != null || attributes_ != null; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { + if (attributesBuilder_ == null) { + return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } else { + return attributesBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributes_ = value; + onChanged(); + } else { + attributesBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder setAttributes( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { + if (attributesBuilder_ == null) { + attributes_ = builderForValue.build(); + onChanged(); + } else { + attributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { + if (attributesBuilder_ == null) { + if (attributes_ != null) { + attributes_ = + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); + } else { + attributes_ = value; + } + onChanged(); + } else { + attributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public Builder clearAttributes() { + if (attributesBuilder_ == null) { + attributes_ = null; + onChanged(); + } else { + attributes_ = null; + attributesBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { + + onChanged(); + return getAttributesFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilder(); + } else { + return attributes_ == null ? + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; + } + } + /** + * .flyteidl.admin.WorkflowAttributes attributes = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> + getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( + getAttributes(), + getParentForChildren(), + isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowAttributesGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesGetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + java.lang.String getWorkflow(); + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + com.google.protobuf.ByteString + getWorkflowBytes(); + + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + int getResourceTypeValue(); + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); + } + /** + *
+   * Request to delete a set matchable workflow attribute override.
+   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} + */ + public static final class WorkflowAttributesDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) + WorkflowAttributesDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesDeleteRequest.newBuilder() to construct. + private WorkflowAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesDeleteRequest() { + project_ = ""; + domain_ = ""; + workflow_ = ""; + resourceType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesDeleteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflow_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Unique project id which this set of attributes references.
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Unique domain id which this set of attributes references.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKFLOW_FIELD_NUMBER = 3; + private volatile java.lang.Object workflow_; + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } + } + /** + *
+     * Workflow name which this set of attributes references.
+     * +required
+     * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; + private int resourceType_; + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Which type of matchable attributes to delete.
+     * +required
+     * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + output.writeEnum(4, resourceType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getWorkflowBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); + } + if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resourceType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + if (resourceType_ != other.resourceType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Request to delete a set matchable workflow attribute override.
+     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + workflow_ = ""; + + resourceType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.workflow_ = workflow_; + result.resourceType_ = resourceType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getWorkflow().isEmpty()) { + workflow_ = other.workflow_; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Unique project id which this set of attributes references.
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Unique domain id which this set of attributes references.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object workflow_ = ""; + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public java.lang.String getWorkflow() { + java.lang.Object ref = workflow_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflow_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public com.google.protobuf.ByteString + getWorkflowBytes() { + java.lang.Object ref = workflow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflow( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflow_ = value; + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public Builder clearWorkflow() { + + workflow_ = getDefaultInstance().getWorkflow(); + onChanged(); + return this; + } + /** + *
+       * Workflow name which this set of attributes references.
+       * +required
+       * 
+ * + * string workflow = 3; + */ + public Builder setWorkflowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflow_ = value; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); + return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Which type of matchable attributes to delete.
+       * +required
+       * 
+ * + * .flyteidl.admin.MatchableResource resource_type = 4; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesDeleteRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowAttributesDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} + */ + public static final class WorkflowAttributesDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) + WorkflowAttributesDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowAttributesDeleteResponse.newBuilder() to construct. + private WorkflowAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowAttributesDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowAttributesDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse build() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse buildPartial() { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) { + return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other) { + if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) + private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(); + } + + public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowAttributesDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowAttributesDeleteResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n(flyteidl/admin/workflow_attributes.pro" + + "to\022\016flyteidl.admin\032\'flyteidl/admin/match" + + "able_resource.proto\"\210\001\n\022WorkflowAttribut" + + "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" + + "orkflow\030\003 \001(\t\022?\n\023matching_attributes\030\004 \001" + + "(\0132\".flyteidl.admin.MatchingAttributes\"Y" + + "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" + + "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" + + "ttributes\"\"\n WorkflowAttributesUpdateRes" + + "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" + + "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" + + "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" + + "idl.admin.MatchableResource\"W\n\035WorkflowA" + + "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" + + "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" + + "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" + + "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " + + "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" + + "min.MatchableResource\"\"\n WorkflowAttribu" + + "tesDeleteResponseB7Z5github.com/flyteorg" + + "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_WorkflowAttributes_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributes_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "MatchingAttributes", }); + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor, + new java.lang.String[] { "Attributes", }); + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java new file mode 100644 index 0000000000..c7b891b02b --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java @@ -0,0 +1,8302 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +package flyteidl.admin; + +public final class WorkflowOuterClass { + private WorkflowOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for workflow.
+     * +required
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for workflow.
+     * +required
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec(); + /** + *
+     * Represents the specification for workflow.
+     * +required
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a workflow.
+   * See :ref:`ref_flyteidl.admin.Workflow` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class WorkflowCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateRequest) + WorkflowCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateRequest.newBuilder() to construct. + private WorkflowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * +required
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; + /** + *
+     * Represents the specification for workflow.
+     * +required
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for workflow.
+     * +required
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for workflow.
+     * +required
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec() + .equals(other.getSpec())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to create a revision of a workflow.
+     * See :ref:`ref_flyteidl.admin.Workflow` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateRequest) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * +required
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for workflow.
+       * +required
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class WorkflowCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateResponse) + WorkflowCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateResponse.newBuilder() to construct. + private WorkflowCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Purposefully empty, may be populated in the future. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateResponse) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Workflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + java.lang.String getShortDescription(); + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + com.google.protobuf.ByteString + getShortDescriptionBytes(); + } + /** + *
+   * Represents the workflow structure stored in the Admin
+   * A workflow is created by ordering tasks and associating outputs to inputs
+   * in order to produce a directed-acyclic execution graph.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Workflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Workflow) + WorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use Workflow.newBuilder() to construct. + private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Workflow() { + shortDescription_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Workflow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + shortDescription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object shortDescription_; + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } + } + /** + *
+     * One-liner overview of the entity.
+     * 
+ * + * string short_description = 3; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (closure_ != null) { + output.writeMessage(2, getClosure()); + } + if (!getShortDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + if (!getShortDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.Workflow)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.Workflow other = (flyteidl.admin.WorkflowOuterClass.Workflow) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasClosure() != other.hasClosure()) return false; + if (hasClosure()) { + if (!getClosure() + .equals(other.getClosure())) return false; + } + if (!getShortDescription() + .equals(other.getShortDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getShortDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.Workflow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents the workflow structure stored in the Admin
+     * A workflow is created by ordering tasks and associating outputs to inputs
+     * in order to produce a directed-acyclic execution graph.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Workflow) + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.Workflow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + shortDescription_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow build() { + flyteidl.admin.WorkflowOuterClass.Workflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow buildPartial() { + flyteidl.admin.WorkflowOuterClass.Workflow result = new flyteidl.admin.WorkflowOuterClass.Workflow(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + result.shortDescription_ = shortDescription_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.Workflow) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.Workflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.Workflow other) { + if (other == flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (!other.getShortDescription().isEmpty()) { + shortDescription_ = other.shortDescription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.Workflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.Workflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private java.lang.Object shortDescription_ = ""; + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public java.lang.String getShortDescription() { + java.lang.Object ref = shortDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public com.google.protobuf.ByteString + getShortDescriptionBytes() { + java.lang.Object ref = shortDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shortDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public Builder setShortDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + shortDescription_ = value; + onChanged(); + return this; + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public Builder clearShortDescription() { + + shortDescription_ = getDefaultInstance().getShortDescription(); + onChanged(); + return this; + } + /** + *
+       * One-liner overview of the entity.
+       * 
+ * + * string short_description = 3; + */ + public Builder setShortDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + shortDescription_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Workflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) + private static final flyteidl.admin.WorkflowOuterClass.Workflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.Workflow(); + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workflow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + int getWorkflowsCount(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsOrBuilderList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + *
+   * Represents a list of workflows returned from the admin.
+   * See :ref:`ref_flyteidl.admin.Workflow` for more details
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class WorkflowList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowList) + WorkflowListOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowList.newBuilder() to construct. + private WorkflowList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowList() { + workflows_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + workflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workflows_.add( + input.readMessage(flyteidl.admin.WorkflowOuterClass.Workflow.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOWS_FIELD_NUMBER = 1; + private java.util.List workflows_; + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + return workflows_.size(); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + return workflows_.get(index); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + return workflows_.get(index); + } + + public static final int TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } + } + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query. If there are no more results, this value will be empty.
+     * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < workflows_.size(); i++) { + output.writeMessage(1, workflows_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < workflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workflows_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowList)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowList other = (flyteidl.admin.WorkflowOuterClass.WorkflowList) obj; + + if (!getWorkflowsList() + .equals(other.getWorkflowsList())) return false; + if (!getToken() + .equals(other.getToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWorkflowsCount() > 0) { + hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowsList().hashCode(); + } + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a list of workflows returned from the admin.
+     * See :ref:`ref_flyteidl.admin.Workflow` for more details
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowList) + flyteidl.admin.WorkflowOuterClass.WorkflowListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + workflowsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList build() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = new flyteidl.admin.WorkflowOuterClass.WorkflowList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workflows_ = workflows_; + } else { + result.workflows_ = workflowsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowList) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowList other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance()) return this; + if (workflowsBuilder_ == null) { + if (!other.workflows_.isEmpty()) { + if (workflows_.isEmpty()) { + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkflowsIsMutable(); + workflows_.addAll(other.workflows_); + } + onChanged(); + } + } else { + if (!other.workflows_.isEmpty()) { + if (workflowsBuilder_.isEmpty()) { + workflowsBuilder_.dispose(); + workflowsBuilder_ = null; + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + workflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkflowsFieldBuilder() : null; + } else { + workflowsBuilder_.addAllMessages(other.workflows_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List workflows_ = + java.util.Collections.emptyList(); + private void ensureWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workflows_ = new java.util.ArrayList(workflows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> workflowsBuilder_; + + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + if (workflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workflows_); + } else { + return workflowsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + if (workflowsBuilder_ == null) { + return workflows_.size(); + } else { + return workflowsBuilder_.getCount(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); + } else { + return workflowsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.set(index, value); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.set(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows(flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(value); + onChanged(); + } else { + workflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(index, value); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addAllWorkflows( + java.lang.Iterable values) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workflows_); + onChanged(); + } else { + workflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder clearWorkflows() { + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder removeWorkflows(int index) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.remove(index); + onChanged(); + } else { + workflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder getWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); } else { + return workflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + if (workflowsBuilder_ != null) { + return workflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workflows_); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder() { + return getWorkflowsFieldBuilder().addBuilder( + flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().addBuilder( + index, flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsBuilderList() { + return getWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> + getWorkflowsFieldBuilder() { + if (workflowsBuilder_ == null) { + workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder>( + workflows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workflows_ = null; + } + return workflowsBuilder_; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + token_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+       * in a query. If there are no more results, this value will be empty.
+       * 
+ * + * string token = 2; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowList(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + java.util.List + getSubWorkflowsList(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + int getSubWorkflowsCount(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + java.util.List + getSubWorkflowsOrBuilderList(); + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index); + + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + boolean hasDescription(); + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription(); + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder(); + } + /** + *
+   * Represents a structure that encapsulates the specification of the workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class WorkflowSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowSpec) + WorkflowSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowSpec.newBuilder() to construct. + private WorkflowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowSpec() { + subWorkflows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subWorkflows_.add( + input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry)); + break; + } + case 26: { + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder subBuilder = null; + if (description_ != null) { + subBuilder = description_.toBuilder(); + } + description_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(description_); + description_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + private int bitField0_; + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; + private java.util.List subWorkflows_; + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + return subWorkflows_; + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + return subWorkflows_; + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + return subWorkflows_.size(); + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { + return subWorkflows_.get(index); + } + /** + *
+     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index) { + return subWorkflows_.get(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public boolean hasDescription() { + return description_ != null; + } + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { + return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; + } + /** + *
+     * Represents the specification for description entity.
+     * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { + return getDescription(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + output.writeMessage(2, subWorkflows_.get(i)); + } + if (description_ != null) { + output.writeMessage(3, getDescription()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, subWorkflows_.get(i)); + } + if (description_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDescription()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowSpec)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowSpec other = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!getSubWorkflowsList() + .equals(other.getSubWorkflowsList())) return false; + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription() + .equals(other.getDescription())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (getSubWorkflowsCount() > 0) { + hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowsList().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a structure that encapsulates the specification of the workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowSpec) + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubWorkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + subWorkflowsBuilder_.clear(); + } + if (descriptionBuilder_ == null) { + description_ = null; + } else { + description_ = null; + descriptionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec build() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (subWorkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subWorkflows_ = subWorkflows_; + } else { + result.subWorkflows_ = subWorkflowsBuilder_.build(); + } + if (descriptionBuilder_ == null) { + result.description_ = description_; + } else { + result.description_ = descriptionBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowSpec) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowSpec other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (subWorkflowsBuilder_ == null) { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflows_.isEmpty()) { + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubWorkflowsIsMutable(); + subWorkflows_.addAll(other.subWorkflows_); + } + onChanged(); + } + } else { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflowsBuilder_.isEmpty()) { + subWorkflowsBuilder_.dispose(); + subWorkflowsBuilder_ = null; + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + subWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubWorkflowsFieldBuilder() : null; + } else { + subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); + } + } + } + if (other.hasDescription()) { + mergeDescription(other.getDescription()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Workflow.WorkflowTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private java.util.List subWorkflows_ = + java.util.Collections.emptyList(); + private void ensureSubWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(subWorkflows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subWorkflowsBuilder_; + + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + if (subWorkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subWorkflows_); + } else { + return subWorkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.size(); + } else { + return subWorkflowsBuilder_.getCount(); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); + } else { + return subWorkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows(flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder addAllSubWorkflows( + java.lang.Iterable values) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subWorkflows_); + onChanged(); + } else { + subWorkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder clearSubWorkflows() { + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public Builder removeSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.remove(index); + onChanged(); + } else { + subWorkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( + int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); } else { + return subWorkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + if (subWorkflowsBuilder_ != null) { + return subWorkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subWorkflows_); + } + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder() { + return getSubWorkflowsFieldBuilder().addBuilder( + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
+       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
+       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsBuilderList() { + return getSubWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getSubWorkflowsFieldBuilder() { + if (subWorkflowsBuilder_ == null) { + subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + subWorkflows_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + subWorkflows_ = null; + } + return subWorkflowsBuilder_; + } + + private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> descriptionBuilder_; + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public boolean hasDescription() { + return descriptionBuilder_ != null || description_ != null; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { + if (descriptionBuilder_ == null) { + return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; + } else { + return descriptionBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public Builder setDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { + if (descriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + onChanged(); + } else { + descriptionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public Builder setDescription( + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { + if (descriptionBuilder_ == null) { + description_ = builderForValue.build(); + onChanged(); + } else { + descriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public Builder mergeDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { + if (descriptionBuilder_ == null) { + if (description_ != null) { + description_ = + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.newBuilder(description_).mergeFrom(value).buildPartial(); + } else { + description_ = value; + } + onChanged(); + } else { + descriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public Builder clearDescription() { + if (descriptionBuilder_ == null) { + description_ = null; + onChanged(); + } else { + description_ = null; + descriptionBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder getDescriptionBuilder() { + + onChanged(); + return getDescriptionFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { + if (descriptionBuilder_ != null) { + return descriptionBuilder_.getMessageOrBuilder(); + } else { + return description_ == null ? + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; + } + } + /** + *
+       * Represents the specification for description entity.
+       * 
+ * + * .flyteidl.admin.DescriptionEntity description = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> + getDescriptionFieldBuilder() { + if (descriptionBuilder_ == null) { + descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder>( + getDescription(), + getParentForChildren(), + isClean()); + description_ = null; + } + return descriptionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + boolean hasCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); + + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; + if (compiledWorkflow_ != null) { + subBuilder = compiledWorkflow_.toBuilder(); + } + compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledWorkflow_); + compiledWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflow_ != null; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + return getCompiledWorkflow(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (compiledWorkflow_ != null) { + output.writeMessage(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowClosure other = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) obj; + + if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; + if (hasCompiledWorkflow()) { + if (!getCompiledWorkflow() + .equals(other.getCompiledWorkflow())) return false; + } + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCompiledWorkflow()) { + hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCompiledWorkflow().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowClosure) + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(this); + if (compiledWorkflowBuilder_ == null) { + result.compiledWorkflow_ = compiledWorkflow_; + } else { + result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowClosure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasCompiledWorkflow()) { + mergeCompiledWorkflow(other.getCompiledWorkflow()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } else { + return compiledWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledWorkflow_ = value; + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow( + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = builderForValue.build(); + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (compiledWorkflow_ != null) { + compiledWorkflow_ = + flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); + } else { + compiledWorkflow_ = value; + } + onChanged(); + } else { + compiledWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder clearCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + onChanged(); + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { + + onChanged(); + return getCompiledWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + if (compiledWorkflowBuilder_ != null) { + return compiledWorkflowBuilder_.getMessageOrBuilder(); + } else { + return compiledWorkflow_ == null ? + flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> + getCompiledWorkflowFieldBuilder() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( + getCompiledWorkflow(), + getParentForChildren(), + isClean()); + compiledWorkflow_ = null; + } + return compiledWorkflowBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowErrorExistsDifferentStructureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The workflow id is already used and the structure is different
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsDifferentStructure} + */ + public static final class WorkflowErrorExistsDifferentStructure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + WorkflowErrorExistsDifferentStructureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowErrorExistsDifferentStructure.newBuilder() to construct. + private WorkflowErrorExistsDifferentStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowErrorExistsDifferentStructure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowErrorExistsDifferentStructure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure other = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The workflow id is already used and the structure is different
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsDifferentStructure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure result = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowErrorExistsDifferentStructure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowErrorExistsDifferentStructure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowErrorExistsIdenticalStructureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The workflow id is already used with an identical sctructure
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsIdenticalStructure} + */ + public static final class WorkflowErrorExistsIdenticalStructure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + WorkflowErrorExistsIdenticalStructureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowErrorExistsIdenticalStructure.newBuilder() to construct. + private WorkflowErrorExistsIdenticalStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowErrorExistsIdenticalStructure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowErrorExistsIdenticalStructure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure other = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The workflow id is already used with an identical sctructure
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsIdenticalStructure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure result = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowErrorExistsIdenticalStructure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowErrorExistsIdenticalStructure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateWorkflowFailureReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateWorkflowFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + boolean hasExistsDifferentStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getExistsDifferentStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder getExistsDifferentStructureOrBuilder(); + + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + boolean hasExistsIdenticalStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getExistsIdenticalStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder getExistsIdenticalStructureOrBuilder(); + + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.ReasonCase getReasonCase(); + } + /** + *
+   * When a CreateWorkflowRequest failes due to matching id
+   * 
+ * + * Protobuf type {@code flyteidl.admin.CreateWorkflowFailureReason} + */ + public static final class CreateWorkflowFailureReason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateWorkflowFailureReason) + CreateWorkflowFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateWorkflowFailureReason.newBuilder() to construct. + private CreateWorkflowFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateWorkflowFailureReason() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateWorkflowFailureReason( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder subBuilder = null; + if (reasonCase_ == 1) { + subBuilder = ((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 1; + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder subBuilder = null; + if (reasonCase_ == 2) { + subBuilder = ((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.class, flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite { + EXISTS_DIFFERENT_STRUCTURE(1), + EXISTS_IDENTICAL_STRUCTURE(2), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return EXISTS_DIFFERENT_STRUCTURE; + case 2: return EXISTS_IDENTICAL_STRUCTURE; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public boolean hasExistsDifferentStructure() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getExistsDifferentStructure() { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder getExistsDifferentStructureOrBuilder() { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + + public static final int EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public boolean hasExistsIdenticalStructure() { + return reasonCase_ == 2; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getExistsIdenticalStructure() { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder getExistsIdenticalStructureOrBuilder() { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_); + } + if (reasonCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_); + } + if (reasonCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason other = (flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason) obj; + + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 1: + if (!getExistsDifferentStructure() + .equals(other.getExistsDifferentStructure())) return false; + break; + case 2: + if (!getExistsIdenticalStructure() + .equals(other.getExistsIdenticalStructure())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getExistsDifferentStructure().hashCode(); + break; + case 2: + hash = (37 * hash) + EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getExistsIdenticalStructure().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * When a CreateWorkflowRequest failes due to matching id
+     * 
+ * + * Protobuf type {@code flyteidl.admin.CreateWorkflowFailureReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateWorkflowFailureReason) + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.class, flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason build() { + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason buildPartial() { + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason result = new flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason(this); + if (reasonCase_ == 1) { + if (existsDifferentStructureBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = existsDifferentStructureBuilder_.build(); + } + } + if (reasonCase_ == 2) { + if (existsIdenticalStructureBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = existsIdenticalStructureBuilder_.build(); + } + } + result.reasonCase_ = reasonCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason other) { + if (other == flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case EXISTS_DIFFERENT_STRUCTURE: { + mergeExistsDifferentStructure(other.getExistsDifferentStructure()); + break; + } + case EXISTS_IDENTICAL_STRUCTURE: { + mergeExistsIdenticalStructure(other.getExistsIdenticalStructure()); + break; + } + case REASON_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder> existsDifferentStructureBuilder_; + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public boolean hasExistsDifferentStructure() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getExistsDifferentStructure() { + if (existsDifferentStructureBuilder_ == null) { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return existsDifferentStructureBuilder_.getMessage(); + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder setExistsDifferentStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure value) { + if (existsDifferentStructureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + existsDifferentStructureBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder setExistsDifferentStructure( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder builderForValue) { + if (existsDifferentStructureBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + existsDifferentStructureBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder mergeExistsDifferentStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure value) { + if (existsDifferentStructureBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance()) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.newBuilder((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + existsDifferentStructureBuilder_.mergeFrom(value); + } + existsDifferentStructureBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder clearExistsDifferentStructure() { + if (existsDifferentStructureBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + existsDifferentStructureBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder getExistsDifferentStructureBuilder() { + return getExistsDifferentStructureFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder getExistsDifferentStructureOrBuilder() { + if ((reasonCase_ == 1) && (existsDifferentStructureBuilder_ != null)) { + return existsDifferentStructureBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder> + getExistsDifferentStructureFieldBuilder() { + if (existsDifferentStructureBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + existsDifferentStructureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder>( + (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged();; + return existsDifferentStructureBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder> existsIdenticalStructureBuilder_; + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public boolean hasExistsIdenticalStructure() { + return reasonCase_ == 2; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getExistsIdenticalStructure() { + if (existsIdenticalStructureBuilder_ == null) { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } else { + if (reasonCase_ == 2) { + return existsIdenticalStructureBuilder_.getMessage(); + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder setExistsIdenticalStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure value) { + if (existsIdenticalStructureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + existsIdenticalStructureBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder setExistsIdenticalStructure( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder builderForValue) { + if (existsIdenticalStructureBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + existsIdenticalStructureBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder mergeExistsIdenticalStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure value) { + if (existsIdenticalStructureBuilder_ == null) { + if (reasonCase_ == 2 && + reason_ != flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance()) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.newBuilder((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 2) { + existsIdenticalStructureBuilder_.mergeFrom(value); + } + existsIdenticalStructureBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder clearExistsIdenticalStructure() { + if (existsIdenticalStructureBuilder_ == null) { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + } + existsIdenticalStructureBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder getExistsIdenticalStructureBuilder() { + return getExistsIdenticalStructureFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder getExistsIdenticalStructureOrBuilder() { + if ((reasonCase_ == 2) && (existsIdenticalStructureBuilder_ != null)) { + return existsIdenticalStructureBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder> + getExistsIdenticalStructureFieldBuilder() { + if (existsIdenticalStructureBuilder_ == null) { + if (!(reasonCase_ == 2)) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + existsIdenticalStructureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder>( + (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 2; + onChanged();; + return existsIdenticalStructureBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.CreateWorkflowFailureReason) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateWorkflowFailureReason) + private static final flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason(); + } + + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkflowFailureReason(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Workflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Workflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/admin/workflow.proto\022\016flyteid" + + "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + + "lyteidl/core/identifier.proto\032\034flyteidl/" + + "core/workflow.proto\032\'flyteidl/admin/desc" + + "ription_entity.proto\032\037google/protobuf/ti" + + "mestamp.proto\"j\n\025WorkflowCreateRequest\022%" + + "\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\022*\n" + + "\004spec\030\002 \001(\0132\034.flyteidl.admin.WorkflowSpe" + + "c\"\030\n\026WorkflowCreateResponse\"~\n\010Workflow\022" + + "%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\0220" + + "\n\007closure\030\002 \001(\0132\037.flyteidl.admin.Workflo" + + "wClosure\022\031\n\021short_description\030\003 \001(\t\"J\n\014W" + + "orkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flyteid" + + "l.admin.Workflow\022\r\n\005token\030\002 \001(\t\"\261\001\n\014Work" + + "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + + "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" + + "(\0132\037.flyteidl.core.WorkflowTemplate\0226\n\013d" + + "escription\030\003 \001(\0132!.flyteidl.admin.Descri" + + "ptionEntity\"\204\001\n\017WorkflowClosure\022A\n\021compi" + + "led_workflow\030\001 \001(\0132&.flyteidl.core.Compi" + + "ledWorkflowClosure\022.\n\ncreated_at\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\"N\n%WorkflowEr" + + "rorExistsDifferentStructure\022%\n\002id\030\001 \001(\0132" + + "\031.flyteidl.core.Identifier\"N\n%WorkflowEr" + + "rorExistsIdenticalStructure\022%\n\002id\030\001 \001(\0132" + + "\031.flyteidl.core.Identifier\"\341\001\n\033CreateWor" + + "kflowFailureReason\022[\n\032exists_different_s" + + "tructure\030\001 \001(\01325.flyteidl.admin.Workflow" + + "ErrorExistsDifferentStructureH\000\022[\n\032exist" + + "s_identical_structure\030\002 \001(\01325.flyteidl.a" + + "dmin.WorkflowErrorExistsIdenticalStructu" + + "reH\000B\010\n\006reasonB7Z5github.com/flyteorg/fl" + + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Compiler.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Workflow_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Workflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Workflow_descriptor, + new java.lang.String[] { "Id", "Closure", "ShortDescription", }); + internal_static_flyteidl_admin_WorkflowList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowList_descriptor, + new java.lang.String[] { "Workflows", "Token", }); + internal_static_flyteidl_admin_WorkflowSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowSpec_descriptor, + new java.lang.String[] { "Template", "SubWorkflows", "Description", }); + internal_static_flyteidl_admin_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowClosure_descriptor, + new java.lang.String[] { "CompiledWorkflow", "CreatedAt", }); + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor, + new java.lang.String[] { "ExistsDifferentStructure", "ExistsIdenticalStructure", "Reason", }); + flyteidl.core.Compiler.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Catalog.java b/flyteidl/gen/pb-java/flyteidl/core/Catalog.java new file mode 100644 index 0000000000..103123580b --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Catalog.java @@ -0,0 +1,2910 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/catalog.proto + +package flyteidl.core; + +public final class Catalog { + private Catalog() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future
+   * 
+ * + * Protobuf enum {@code flyteidl.core.CatalogCacheStatus} + */ + public enum CatalogCacheStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Used to indicate that caching was disabled
+     * 
+ * + * CACHE_DISABLED = 0; + */ + CACHE_DISABLED(0), + /** + *
+     * Used to indicate that the cache lookup resulted in no matches
+     * 
+ * + * CACHE_MISS = 1; + */ + CACHE_MISS(1), + /** + *
+     * used to indicate that the associated artifact was a result of a previous execution
+     * 
+ * + * CACHE_HIT = 2; + */ + CACHE_HIT(2), + /** + *
+     * used to indicate that the resultant artifact was added to the cache
+     * 
+ * + * CACHE_POPULATED = 3; + */ + CACHE_POPULATED(3), + /** + *
+     * Used to indicate that cache lookup failed because of an error
+     * 
+ * + * CACHE_LOOKUP_FAILURE = 4; + */ + CACHE_LOOKUP_FAILURE(4), + /** + *
+     * Used to indicate that cache lookup failed because of an error
+     * 
+ * + * CACHE_PUT_FAILURE = 5; + */ + CACHE_PUT_FAILURE(5), + /** + *
+     * Used to indicate the cache lookup was skipped
+     * 
+ * + * CACHE_SKIPPED = 6; + */ + CACHE_SKIPPED(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Used to indicate that caching was disabled
+     * 
+ * + * CACHE_DISABLED = 0; + */ + public static final int CACHE_DISABLED_VALUE = 0; + /** + *
+     * Used to indicate that the cache lookup resulted in no matches
+     * 
+ * + * CACHE_MISS = 1; + */ + public static final int CACHE_MISS_VALUE = 1; + /** + *
+     * used to indicate that the associated artifact was a result of a previous execution
+     * 
+ * + * CACHE_HIT = 2; + */ + public static final int CACHE_HIT_VALUE = 2; + /** + *
+     * used to indicate that the resultant artifact was added to the cache
+     * 
+ * + * CACHE_POPULATED = 3; + */ + public static final int CACHE_POPULATED_VALUE = 3; + /** + *
+     * Used to indicate that cache lookup failed because of an error
+     * 
+ * + * CACHE_LOOKUP_FAILURE = 4; + */ + public static final int CACHE_LOOKUP_FAILURE_VALUE = 4; + /** + *
+     * Used to indicate that cache lookup failed because of an error
+     * 
+ * + * CACHE_PUT_FAILURE = 5; + */ + public static final int CACHE_PUT_FAILURE_VALUE = 5; + /** + *
+     * Used to indicate the cache lookup was skipped
+     * 
+ * + * CACHE_SKIPPED = 6; + */ + public static final int CACHE_SKIPPED_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CatalogCacheStatus valueOf(int value) { + return forNumber(value); + } + + public static CatalogCacheStatus forNumber(int value) { + switch (value) { + case 0: return CACHE_DISABLED; + case 1: return CACHE_MISS; + case 2: return CACHE_HIT; + case 3: return CACHE_POPULATED; + case 4: return CACHE_LOOKUP_FAILURE; + case 5: return CACHE_PUT_FAILURE; + case 6: return CACHE_SKIPPED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CatalogCacheStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CatalogCacheStatus findValueByNumber(int number) { + return CatalogCacheStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Catalog.getDescriptor().getEnumTypes().get(0); + } + + private static final CatalogCacheStatus[] VALUES = values(); + + public static CatalogCacheStatus valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CatalogCacheStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.CatalogCacheStatus) + } + + public interface CatalogArtifactTagOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CatalogArtifactTag) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Artifact ID is generated name
+     * 
+ * + * string artifact_id = 1; + */ + java.lang.String getArtifactId(); + /** + *
+     * Artifact ID is generated name
+     * 
+ * + * string artifact_id = 1; + */ + com.google.protobuf.ByteString + getArtifactIdBytes(); + + /** + *
+     * Flyte computes the tag automatically, as the hash of the values
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Flyte computes the tag automatically, as the hash of the values
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + * Protobuf type {@code flyteidl.core.CatalogArtifactTag} + */ + public static final class CatalogArtifactTag extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CatalogArtifactTag) + CatalogArtifactTagOrBuilder { + private static final long serialVersionUID = 0L; + // Use CatalogArtifactTag.newBuilder() to construct. + private CatalogArtifactTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CatalogArtifactTag() { + artifactId_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CatalogArtifactTag( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + artifactId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Catalog.CatalogArtifactTag.class, flyteidl.core.Catalog.CatalogArtifactTag.Builder.class); + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object artifactId_; + /** + *
+     * Artifact ID is generated name
+     * 
+ * + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } + } + /** + *
+     * Artifact ID is generated name
+     * 
+ * + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Flyte computes the tag automatically, as the hash of the values
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * Flyte computes the tag automatically, as the hash of the values
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getArtifactIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, artifactId_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getArtifactIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, artifactId_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Catalog.CatalogArtifactTag)) { + return super.equals(obj); + } + flyteidl.core.Catalog.CatalogArtifactTag other = (flyteidl.core.Catalog.CatalogArtifactTag) obj; + + if (!getArtifactId() + .equals(other.getArtifactId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Catalog.CatalogArtifactTag prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.CatalogArtifactTag} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CatalogArtifactTag) + flyteidl.core.Catalog.CatalogArtifactTagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Catalog.CatalogArtifactTag.class, flyteidl.core.Catalog.CatalogArtifactTag.Builder.class); + } + + // Construct using flyteidl.core.Catalog.CatalogArtifactTag.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + artifactId_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_descriptor; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogArtifactTag getDefaultInstanceForType() { + return flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogArtifactTag build() { + flyteidl.core.Catalog.CatalogArtifactTag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogArtifactTag buildPartial() { + flyteidl.core.Catalog.CatalogArtifactTag result = new flyteidl.core.Catalog.CatalogArtifactTag(this); + result.artifactId_ = artifactId_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Catalog.CatalogArtifactTag) { + return mergeFrom((flyteidl.core.Catalog.CatalogArtifactTag)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Catalog.CatalogArtifactTag other) { + if (other == flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance()) return this; + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Catalog.CatalogArtifactTag parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Catalog.CatalogArtifactTag) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object artifactId_ = ""; + /** + *
+       * Artifact ID is generated name
+       * 
+ * + * string artifact_id = 1; + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Artifact ID is generated name
+       * 
+ * + * string artifact_id = 1; + */ + public com.google.protobuf.ByteString + getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Artifact ID is generated name
+       * 
+ * + * string artifact_id = 1; + */ + public Builder setArtifactId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactId_ = value; + onChanged(); + return this; + } + /** + *
+       * Artifact ID is generated name
+       * 
+ * + * string artifact_id = 1; + */ + public Builder clearArtifactId() { + + artifactId_ = getDefaultInstance().getArtifactId(); + onChanged(); + return this; + } + /** + *
+       * Artifact ID is generated name
+       * 
+ * + * string artifact_id = 1; + */ + public Builder setArtifactIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactId_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Flyte computes the tag automatically, as the hash of the values
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Flyte computes the tag automatically, as the hash of the values
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Flyte computes the tag automatically, as the hash of the values
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Flyte computes the tag automatically, as the hash of the values
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Flyte computes the tag automatically, as the hash of the values
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CatalogArtifactTag) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogArtifactTag) + private static final flyteidl.core.Catalog.CatalogArtifactTag DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Catalog.CatalogArtifactTag(); + } + + public static flyteidl.core.Catalog.CatalogArtifactTag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogArtifactTag parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CatalogArtifactTag(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogArtifactTag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CatalogMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CatalogMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Dataset ID in the catalog
+     * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + boolean hasDatasetId(); + /** + *
+     * Dataset ID in the catalog
+     * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getDatasetId(); + /** + *
+     * Dataset ID in the catalog
+     * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getDatasetIdOrBuilder(); + + /** + *
+     * Artifact tag in the catalog
+     * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + boolean hasArtifactTag(); + /** + *
+     * Artifact tag in the catalog
+     * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + flyteidl.core.Catalog.CatalogArtifactTag getArtifactTag(); + /** + *
+     * Artifact tag in the catalog
+     * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + flyteidl.core.Catalog.CatalogArtifactTagOrBuilder getArtifactTagOrBuilder(); + + /** + *
+     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + boolean hasSourceTaskExecution(); + /** + *
+     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getSourceTaskExecution(); + /** + *
+     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getSourceTaskExecutionOrBuilder(); + + public flyteidl.core.Catalog.CatalogMetadata.SourceExecutionCase getSourceExecutionCase(); + } + /** + *
+   * Catalog artifact information with specific metadata
+   * 
+ * + * Protobuf type {@code flyteidl.core.CatalogMetadata} + */ + public static final class CatalogMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CatalogMetadata) + CatalogMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CatalogMetadata.newBuilder() to construct. + private CatalogMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CatalogMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CatalogMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (datasetId_ != null) { + subBuilder = datasetId_.toBuilder(); + } + datasetId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetId_); + datasetId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Catalog.CatalogArtifactTag.Builder subBuilder = null; + if (artifactTag_ != null) { + subBuilder = artifactTag_.toBuilder(); + } + artifactTag_ = input.readMessage(flyteidl.core.Catalog.CatalogArtifactTag.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifactTag_); + artifactTag_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (sourceExecutionCase_ == 3) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_).toBuilder(); + } + sourceExecution_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_); + sourceExecution_ = subBuilder.buildPartial(); + } + sourceExecutionCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Catalog.CatalogMetadata.class, flyteidl.core.Catalog.CatalogMetadata.Builder.class); + } + + private int sourceExecutionCase_ = 0; + private java.lang.Object sourceExecution_; + public enum SourceExecutionCase + implements com.google.protobuf.Internal.EnumLite { + SOURCE_TASK_EXECUTION(3), + SOURCEEXECUTION_NOT_SET(0); + private final int value; + private SourceExecutionCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceExecutionCase valueOf(int value) { + return forNumber(value); + } + + public static SourceExecutionCase forNumber(int value) { + switch (value) { + case 3: return SOURCE_TASK_EXECUTION; + case 0: return SOURCEEXECUTION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceExecutionCase + getSourceExecutionCase() { + return SourceExecutionCase.forNumber( + sourceExecutionCase_); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier datasetId_; + /** + *
+     * Dataset ID in the catalog
+     * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetId_ != null; + } + /** + *
+     * Dataset ID in the catalog
+     * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getDatasetId() { + return datasetId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : datasetId_; + } + /** + *
+     * Dataset ID in the catalog
+     * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getDatasetIdOrBuilder() { + return getDatasetId(); + } + + public static final int ARTIFACT_TAG_FIELD_NUMBER = 2; + private flyteidl.core.Catalog.CatalogArtifactTag artifactTag_; + /** + *
+     * Artifact tag in the catalog
+     * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public boolean hasArtifactTag() { + return artifactTag_ != null; + } + /** + *
+     * Artifact tag in the catalog
+     * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public flyteidl.core.Catalog.CatalogArtifactTag getArtifactTag() { + return artifactTag_ == null ? flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance() : artifactTag_; + } + /** + *
+     * Artifact tag in the catalog
+     * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public flyteidl.core.Catalog.CatalogArtifactTagOrBuilder getArtifactTagOrBuilder() { + return getArtifactTag(); + } + + public static final int SOURCE_TASK_EXECUTION_FIELD_NUMBER = 3; + /** + *
+     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public boolean hasSourceTaskExecution() { + return sourceExecutionCase_ == 3; + } + /** + *
+     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getSourceTaskExecution() { + if (sourceExecutionCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + /** + *
+     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getSourceTaskExecutionOrBuilder() { + if (sourceExecutionCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (datasetId_ != null) { + output.writeMessage(1, getDatasetId()); + } + if (artifactTag_ != null) { + output.writeMessage(2, getArtifactTag()); + } + if (sourceExecutionCase_ == 3) { + output.writeMessage(3, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatasetId()); + } + if (artifactTag_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getArtifactTag()); + } + if (sourceExecutionCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Catalog.CatalogMetadata)) { + return super.equals(obj); + } + flyteidl.core.Catalog.CatalogMetadata other = (flyteidl.core.Catalog.CatalogMetadata) obj; + + if (hasDatasetId() != other.hasDatasetId()) return false; + if (hasDatasetId()) { + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + } + if (hasArtifactTag() != other.hasArtifactTag()) return false; + if (hasArtifactTag()) { + if (!getArtifactTag() + .equals(other.getArtifactTag())) return false; + } + if (!getSourceExecutionCase().equals(other.getSourceExecutionCase())) return false; + switch (sourceExecutionCase_) { + case 3: + if (!getSourceTaskExecution() + .equals(other.getSourceTaskExecution())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetId()) { + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + } + if (hasArtifactTag()) { + hash = (37 * hash) + ARTIFACT_TAG_FIELD_NUMBER; + hash = (53 * hash) + getArtifactTag().hashCode(); + } + switch (sourceExecutionCase_) { + case 3: + hash = (37 * hash) + SOURCE_TASK_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getSourceTaskExecution().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Catalog.CatalogMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Catalog artifact information with specific metadata
+     * 
+ * + * Protobuf type {@code flyteidl.core.CatalogMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CatalogMetadata) + flyteidl.core.Catalog.CatalogMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Catalog.CatalogMetadata.class, flyteidl.core.Catalog.CatalogMetadata.Builder.class); + } + + // Construct using flyteidl.core.Catalog.CatalogMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetIdBuilder_ == null) { + datasetId_ = null; + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + if (artifactTagBuilder_ == null) { + artifactTag_ = null; + } else { + artifactTag_ = null; + artifactTagBuilder_ = null; + } + sourceExecutionCase_ = 0; + sourceExecution_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogMetadata getDefaultInstanceForType() { + return flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogMetadata build() { + flyteidl.core.Catalog.CatalogMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogMetadata buildPartial() { + flyteidl.core.Catalog.CatalogMetadata result = new flyteidl.core.Catalog.CatalogMetadata(this); + if (datasetIdBuilder_ == null) { + result.datasetId_ = datasetId_; + } else { + result.datasetId_ = datasetIdBuilder_.build(); + } + if (artifactTagBuilder_ == null) { + result.artifactTag_ = artifactTag_; + } else { + result.artifactTag_ = artifactTagBuilder_.build(); + } + if (sourceExecutionCase_ == 3) { + if (sourceTaskExecutionBuilder_ == null) { + result.sourceExecution_ = sourceExecution_; + } else { + result.sourceExecution_ = sourceTaskExecutionBuilder_.build(); + } + } + result.sourceExecutionCase_ = sourceExecutionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Catalog.CatalogMetadata) { + return mergeFrom((flyteidl.core.Catalog.CatalogMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Catalog.CatalogMetadata other) { + if (other == flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance()) return this; + if (other.hasDatasetId()) { + mergeDatasetId(other.getDatasetId()); + } + if (other.hasArtifactTag()) { + mergeArtifactTag(other.getArtifactTag()); + } + switch (other.getSourceExecutionCase()) { + case SOURCE_TASK_EXECUTION: { + mergeSourceTaskExecution(other.getSourceTaskExecution()); + break; + } + case SOURCEEXECUTION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Catalog.CatalogMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Catalog.CatalogMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceExecutionCase_ = 0; + private java.lang.Object sourceExecution_; + public SourceExecutionCase + getSourceExecutionCase() { + return SourceExecutionCase.forNumber( + sourceExecutionCase_); + } + + public Builder clearSourceExecution() { + sourceExecutionCase_ = 0; + sourceExecution_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.Identifier datasetId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> datasetIdBuilder_; + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetIdBuilder_ != null || datasetId_ != null; + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getDatasetId() { + if (datasetIdBuilder_ == null) { + return datasetId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : datasetId_; + } else { + return datasetIdBuilder_.getMessage(); + } + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public Builder setDatasetId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (datasetIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + onChanged(); + } else { + datasetIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public Builder setDatasetId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (datasetIdBuilder_ == null) { + datasetId_ = builderForValue.build(); + onChanged(); + } else { + datasetIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public Builder mergeDatasetId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (datasetIdBuilder_ == null) { + if (datasetId_ != null) { + datasetId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(datasetId_).mergeFrom(value).buildPartial(); + } else { + datasetId_ = value; + } + onChanged(); + } else { + datasetIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public Builder clearDatasetId() { + if (datasetIdBuilder_ == null) { + datasetId_ = null; + onChanged(); + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getDatasetIdBuilder() { + + onChanged(); + return getDatasetIdFieldBuilder().getBuilder(); + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getDatasetIdOrBuilder() { + if (datasetIdBuilder_ != null) { + return datasetIdBuilder_.getMessageOrBuilder(); + } else { + return datasetId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : datasetId_; + } + } + /** + *
+       * Dataset ID in the catalog
+       * 
+ * + * .flyteidl.core.Identifier dataset_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getDatasetIdFieldBuilder() { + if (datasetIdBuilder_ == null) { + datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getDatasetId(), + getParentForChildren(), + isClean()); + datasetId_ = null; + } + return datasetIdBuilder_; + } + + private flyteidl.core.Catalog.CatalogArtifactTag artifactTag_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogArtifactTag, flyteidl.core.Catalog.CatalogArtifactTag.Builder, flyteidl.core.Catalog.CatalogArtifactTagOrBuilder> artifactTagBuilder_; + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public boolean hasArtifactTag() { + return artifactTagBuilder_ != null || artifactTag_ != null; + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public flyteidl.core.Catalog.CatalogArtifactTag getArtifactTag() { + if (artifactTagBuilder_ == null) { + return artifactTag_ == null ? flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance() : artifactTag_; + } else { + return artifactTagBuilder_.getMessage(); + } + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public Builder setArtifactTag(flyteidl.core.Catalog.CatalogArtifactTag value) { + if (artifactTagBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactTag_ = value; + onChanged(); + } else { + artifactTagBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public Builder setArtifactTag( + flyteidl.core.Catalog.CatalogArtifactTag.Builder builderForValue) { + if (artifactTagBuilder_ == null) { + artifactTag_ = builderForValue.build(); + onChanged(); + } else { + artifactTagBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public Builder mergeArtifactTag(flyteidl.core.Catalog.CatalogArtifactTag value) { + if (artifactTagBuilder_ == null) { + if (artifactTag_ != null) { + artifactTag_ = + flyteidl.core.Catalog.CatalogArtifactTag.newBuilder(artifactTag_).mergeFrom(value).buildPartial(); + } else { + artifactTag_ = value; + } + onChanged(); + } else { + artifactTagBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public Builder clearArtifactTag() { + if (artifactTagBuilder_ == null) { + artifactTag_ = null; + onChanged(); + } else { + artifactTag_ = null; + artifactTagBuilder_ = null; + } + + return this; + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public flyteidl.core.Catalog.CatalogArtifactTag.Builder getArtifactTagBuilder() { + + onChanged(); + return getArtifactTagFieldBuilder().getBuilder(); + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + public flyteidl.core.Catalog.CatalogArtifactTagOrBuilder getArtifactTagOrBuilder() { + if (artifactTagBuilder_ != null) { + return artifactTagBuilder_.getMessageOrBuilder(); + } else { + return artifactTag_ == null ? + flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance() : artifactTag_; + } + } + /** + *
+       * Artifact tag in the catalog
+       * 
+ * + * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogArtifactTag, flyteidl.core.Catalog.CatalogArtifactTag.Builder, flyteidl.core.Catalog.CatalogArtifactTagOrBuilder> + getArtifactTagFieldBuilder() { + if (artifactTagBuilder_ == null) { + artifactTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogArtifactTag, flyteidl.core.Catalog.CatalogArtifactTag.Builder, flyteidl.core.Catalog.CatalogArtifactTagOrBuilder>( + getArtifactTag(), + getParentForChildren(), + isClean()); + artifactTag_ = null; + } + return artifactTagBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> sourceTaskExecutionBuilder_; + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public boolean hasSourceTaskExecution() { + return sourceExecutionCase_ == 3; + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getSourceTaskExecution() { + if (sourceTaskExecutionBuilder_ == null) { + if (sourceExecutionCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } else { + if (sourceExecutionCase_ == 3) { + return sourceTaskExecutionBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public Builder setSourceTaskExecution(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (sourceTaskExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceExecution_ = value; + onChanged(); + } else { + sourceTaskExecutionBuilder_.setMessage(value); + } + sourceExecutionCase_ = 3; + return this; + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public Builder setSourceTaskExecution( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (sourceTaskExecutionBuilder_ == null) { + sourceExecution_ = builderForValue.build(); + onChanged(); + } else { + sourceTaskExecutionBuilder_.setMessage(builderForValue.build()); + } + sourceExecutionCase_ = 3; + return this; + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public Builder mergeSourceTaskExecution(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (sourceTaskExecutionBuilder_ == null) { + if (sourceExecutionCase_ == 3 && + sourceExecution_ != flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) { + sourceExecution_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_) + .mergeFrom(value).buildPartial(); + } else { + sourceExecution_ = value; + } + onChanged(); + } else { + if (sourceExecutionCase_ == 3) { + sourceTaskExecutionBuilder_.mergeFrom(value); + } + sourceTaskExecutionBuilder_.setMessage(value); + } + sourceExecutionCase_ = 3; + return this; + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public Builder clearSourceTaskExecution() { + if (sourceTaskExecutionBuilder_ == null) { + if (sourceExecutionCase_ == 3) { + sourceExecutionCase_ = 0; + sourceExecution_ = null; + onChanged(); + } + } else { + if (sourceExecutionCase_ == 3) { + sourceExecutionCase_ = 0; + sourceExecution_ = null; + } + sourceTaskExecutionBuilder_.clear(); + } + return this; + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getSourceTaskExecutionBuilder() { + return getSourceTaskExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getSourceTaskExecutionOrBuilder() { + if ((sourceExecutionCase_ == 3) && (sourceTaskExecutionBuilder_ != null)) { + return sourceTaskExecutionBuilder_.getMessageOrBuilder(); + } else { + if (sourceExecutionCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getSourceTaskExecutionFieldBuilder() { + if (sourceTaskExecutionBuilder_ == null) { + if (!(sourceExecutionCase_ == 3)) { + sourceExecution_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + sourceTaskExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_, + getParentForChildren(), + isClean()); + sourceExecution_ = null; + } + sourceExecutionCase_ = 3; + onChanged();; + return sourceTaskExecutionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CatalogMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogMetadata) + private static final flyteidl.core.Catalog.CatalogMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Catalog.CatalogMetadata(); + } + + public static flyteidl.core.Catalog.CatalogMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CatalogMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CatalogReservationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CatalogReservation) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.core.CatalogReservation} + */ + public static final class CatalogReservation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CatalogReservation) + CatalogReservationOrBuilder { + private static final long serialVersionUID = 0L; + // Use CatalogReservation.newBuilder() to construct. + private CatalogReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CatalogReservation() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CatalogReservation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Catalog.CatalogReservation.class, flyteidl.core.Catalog.CatalogReservation.Builder.class); + } + + /** + *
+     * Indicates the status of a catalog reservation operation.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.CatalogReservation.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Used to indicate that reservations are disabled
+       * 
+ * + * RESERVATION_DISABLED = 0; + */ + RESERVATION_DISABLED(0), + /** + *
+       * Used to indicate that a reservation was successfully acquired or extended
+       * 
+ * + * RESERVATION_ACQUIRED = 1; + */ + RESERVATION_ACQUIRED(1), + /** + *
+       * Used to indicate that an active reservation currently exists
+       * 
+ * + * RESERVATION_EXISTS = 2; + */ + RESERVATION_EXISTS(2), + /** + *
+       * Used to indicate that the reservation has been successfully released
+       * 
+ * + * RESERVATION_RELEASED = 3; + */ + RESERVATION_RELEASED(3), + /** + *
+       * Used to indicate that a reservation operation resulted in failure
+       * 
+ * + * RESERVATION_FAILURE = 4; + */ + RESERVATION_FAILURE(4), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Used to indicate that reservations are disabled
+       * 
+ * + * RESERVATION_DISABLED = 0; + */ + public static final int RESERVATION_DISABLED_VALUE = 0; + /** + *
+       * Used to indicate that a reservation was successfully acquired or extended
+       * 
+ * + * RESERVATION_ACQUIRED = 1; + */ + public static final int RESERVATION_ACQUIRED_VALUE = 1; + /** + *
+       * Used to indicate that an active reservation currently exists
+       * 
+ * + * RESERVATION_EXISTS = 2; + */ + public static final int RESERVATION_EXISTS_VALUE = 2; + /** + *
+       * Used to indicate that the reservation has been successfully released
+       * 
+ * + * RESERVATION_RELEASED = 3; + */ + public static final int RESERVATION_RELEASED_VALUE = 3; + /** + *
+       * Used to indicate that a reservation operation resulted in failure
+       * 
+ * + * RESERVATION_FAILURE = 4; + */ + public static final int RESERVATION_FAILURE_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + public static Status forNumber(int value) { + switch (value) { + case 0: return RESERVATION_DISABLED; + case 1: return RESERVATION_ACQUIRED; + case 2: return RESERVATION_EXISTS; + case 3: return RESERVATION_RELEASED; + case 4: return RESERVATION_FAILURE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Catalog.CatalogReservation.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.CatalogReservation.Status) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Catalog.CatalogReservation)) { + return super.equals(obj); + } + flyteidl.core.Catalog.CatalogReservation other = (flyteidl.core.Catalog.CatalogReservation) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogReservation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogReservation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Catalog.CatalogReservation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Catalog.CatalogReservation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.CatalogReservation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CatalogReservation) + flyteidl.core.Catalog.CatalogReservationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Catalog.CatalogReservation.class, flyteidl.core.Catalog.CatalogReservation.Builder.class); + } + + // Construct using flyteidl.core.Catalog.CatalogReservation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_descriptor; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogReservation getDefaultInstanceForType() { + return flyteidl.core.Catalog.CatalogReservation.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogReservation build() { + flyteidl.core.Catalog.CatalogReservation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogReservation buildPartial() { + flyteidl.core.Catalog.CatalogReservation result = new flyteidl.core.Catalog.CatalogReservation(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Catalog.CatalogReservation) { + return mergeFrom((flyteidl.core.Catalog.CatalogReservation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Catalog.CatalogReservation other) { + if (other == flyteidl.core.Catalog.CatalogReservation.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Catalog.CatalogReservation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Catalog.CatalogReservation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CatalogReservation) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogReservation) + private static final flyteidl.core.Catalog.CatalogReservation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Catalog.CatalogReservation(); + } + + public static flyteidl.core.Catalog.CatalogReservation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogReservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CatalogReservation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Catalog.CatalogReservation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CatalogArtifactTag_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CatalogArtifactTag_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CatalogMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CatalogMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CatalogReservation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CatalogReservation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033flyteidl/core/catalog.proto\022\rflyteidl." + + "core\032\036flyteidl/core/identifier.proto\"7\n\022" + + "CatalogArtifactTag\022\023\n\013artifact_id\030\001 \001(\t\022" + + "\014\n\004name\030\002 \001(\t\"\326\001\n\017CatalogMetadata\022-\n\ndat" + + "aset_id\030\001 \001(\0132\031.flyteidl.core.Identifier" + + "\0227\n\014artifact_tag\030\002 \001(\0132!.flyteidl.core.C" + + "atalogArtifactTag\022G\n\025source_task_executi" + + "on\030\003 \001(\0132&.flyteidl.core.TaskExecutionId" + + "entifierH\000B\022\n\020source_execution\"\236\001\n\022Catal" + + "ogReservation\"\207\001\n\006Status\022\030\n\024RESERVATION_" + + "DISABLED\020\000\022\030\n\024RESERVATION_ACQUIRED\020\001\022\026\n\022" + + "RESERVATION_EXISTS\020\002\022\030\n\024RESERVATION_RELE" + + "ASED\020\003\022\027\n\023RESERVATION_FAILURE\020\004*\240\001\n\022Cata" + + "logCacheStatus\022\022\n\016CACHE_DISABLED\020\000\022\016\n\nCA" + + "CHE_MISS\020\001\022\r\n\tCACHE_HIT\020\002\022\023\n\017CACHE_POPUL" + + "ATED\020\003\022\030\n\024CACHE_LOOKUP_FAILURE\020\004\022\025\n\021CACH" + + "E_PUT_FAILURE\020\005\022\021\n\rCACHE_SKIPPED\020\006B6Z4gi" + + "thub.com/flyteorg/flyteidl/gen/pb-go/fly" + + "teidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_CatalogArtifactTag_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_CatalogArtifactTag_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CatalogArtifactTag_descriptor, + new java.lang.String[] { "ArtifactId", "Name", }); + internal_static_flyteidl_core_CatalogMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_CatalogMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CatalogMetadata_descriptor, + new java.lang.String[] { "DatasetId", "ArtifactTag", "SourceTaskExecution", "SourceExecution", }); + internal_static_flyteidl_core_CatalogReservation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_CatalogReservation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CatalogReservation_descriptor, + new java.lang.String[] { }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Compiler.java b/flyteidl/gen/pb-java/flyteidl/core/Compiler.java new file mode 100644 index 0000000000..7bb2322674 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Compiler.java @@ -0,0 +1,5243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +package flyteidl.core; + +public final class Compiler { + private Compiler() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ConnectionSetOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + int getDownstreamCount(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + boolean containsDownstream( + java.lang.String key); + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDownstream(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + java.util.Map + getDownstreamMap(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key); + + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + int getUpstreamCount(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + boolean containsUpstream( + java.lang.String key); + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUpstream(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + java.util.Map + getUpstreamMap(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key); + } + /** + *
+   * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+   * step uses this created ConnectionSet
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class ConnectionSet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet) + ConnectionSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionSet.newBuilder() to construct. + private ConnectionSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectionSet() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionSet( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 58: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + downstream__ = input.readMessage( + DownstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + downstream_.getMutableMap().put( + downstream__.getKey(), downstream__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + upstream__ = input.readMessage( + UpstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + upstream_.getMutableMap().put( + upstream__.getKey(), upstream__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + public interface IdListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet.IdList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string ids = 1; + */ + java.util.List + getIdsList(); + /** + * repeated string ids = 1; + */ + int getIdsCount(); + /** + * repeated string ids = 1; + */ + java.lang.String getIds(int index); + /** + * repeated string ids = 1; + */ + com.google.protobuf.ByteString + getIdsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} + */ + public static final class IdList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet.IdList) + IdListOrBuilder { + private static final long serialVersionUID = 0L; + // Use IdList.newBuilder() to construct. + private IdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IdList() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IdList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ids_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + ids_ = ids_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + public static final int IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList ids_; + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_; + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < ids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < ids_.size(); i++) { + dataSize += computeStringSizeNoTag(ids_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Compiler.ConnectionSet.IdList)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet.IdList other = (flyteidl.core.Compiler.ConnectionSet.IdList) obj; + + if (!getIdsList() + .equals(other.getIdsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.ConnectionSet.IdList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet.IdList) + flyteidl.core.Compiler.ConnectionSet.IdListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.IdList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList build() { + flyteidl.core.Compiler.ConnectionSet.IdList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList buildPartial() { + flyteidl.core.Compiler.ConnectionSet.IdList result = new flyteidl.core.Compiler.ConnectionSet.IdList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + ids_ = ids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ids_ = ids_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.ConnectionSet.IdList) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet.IdList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet.IdList other) { + if (other == flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()) return this; + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.ConnectionSet.IdList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet.IdList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ids_ = new com.google.protobuf.LazyStringArrayList(ids_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_.getUnmodifiableView(); + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + /** + * repeated string ids = 1; + */ + public Builder setIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addAllIds( + java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ids_); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder clearIds() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ConnectionSet.IdList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) + private static final flyteidl.core.Compiler.ConnectionSet.IdList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet.IdList(); + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IdList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DOWNSTREAM_FIELD_NUMBER = 7; + private static final class DownstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UPSTREAM_FIELD_NUMBER = 8; + private static final class UpstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDownstream(), + DownstreamDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUpstream(), + UpstreamDefaultEntryHolder.defaultEntry, + 8); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetDownstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + downstream__ = DownstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, downstream__); + } + for (java.util.Map.Entry entry + : internalGetUpstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + upstream__ = UpstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, upstream__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Compiler.ConnectionSet)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet other = (flyteidl.core.Compiler.ConnectionSet) obj; + + if (!internalGetDownstream().equals( + other.internalGetDownstream())) return false; + if (!internalGetUpstream().equals( + other.internalGetUpstream())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetDownstream().getMap().isEmpty()) { + hash = (37 * hash) + DOWNSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetDownstream().hashCode(); + } + if (!internalGetUpstream().getMap().isEmpty()) { + hash = (37 * hash) + UPSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetUpstream().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.ConnectionSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+     * step uses this created ConnectionSet
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet) + flyteidl.core.Compiler.ConnectionSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableDownstream(); + case 8: + return internalGetMutableUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableDownstream().clear(); + internalGetMutableUpstream().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet build() { + flyteidl.core.Compiler.ConnectionSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet buildPartial() { + flyteidl.core.Compiler.ConnectionSet result = new flyteidl.core.Compiler.ConnectionSet(this); + int from_bitField0_ = bitField0_; + result.downstream_ = internalGetDownstream(); + result.downstream_.makeImmutable(); + result.upstream_ = internalGetUpstream(); + result.upstream_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.ConnectionSet) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet other) { + if (other == flyteidl.core.Compiler.ConnectionSet.getDefaultInstance()) return this; + internalGetMutableDownstream().mergeFrom( + other.internalGetDownstream()); + internalGetMutableUpstream().mergeFrom( + other.internalGetUpstream()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.ConnectionSet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + private com.google.protobuf.MapField + internalGetMutableDownstream() { + onChanged();; + if (downstream_ == null) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + if (!downstream_.isMutable()) { + downstream_ = downstream_.copy(); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDownstream() { + internalGetMutableDownstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder removeDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDownstream() { + return internalGetMutableDownstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + public Builder putDownstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder putAllDownstream( + java.util.Map values) { + internalGetMutableDownstream().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + private com.google.protobuf.MapField + internalGetMutableUpstream() { + onChanged();; + if (upstream_ == null) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + if (!upstream_.isMutable()) { + upstream_ = upstream_.copy(); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUpstream() { + internalGetMutableUpstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder removeUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUpstream() { + return internalGetMutableUpstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + public Builder putUpstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder putAllUpstream( + java.util.Map values) { + internalGetMutableUpstream().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ConnectionSet) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) + private static final flyteidl.core.Compiler.ConnectionSet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet(); + } + + public static flyteidl.core.Compiler.ConnectionSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionSet(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + boolean hasConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSet getConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder(); + } + /** + *
+   * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class CompiledWorkflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflow) + CompiledWorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflow.newBuilder() to construct. + private CompiledWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Compiler.ConnectionSet.Builder subBuilder = null; + if (connections_ != null) { + subBuilder = connections_.toBuilder(); + } + connections_ = input.readMessage(flyteidl.core.Compiler.ConnectionSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connections_); + connections_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 2; + private flyteidl.core.Compiler.ConnectionSet connections_; + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connections_ != null; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + return getConnections(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + if (connections_ != null) { + output.writeMessage(2, getConnections()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + if (connections_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnections()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Compiler.CompiledWorkflow)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflow other = (flyteidl.core.Compiler.CompiledWorkflow) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (hasConnections() != other.hasConnections()) return false; + if (hasConnections()) { + if (!getConnections() + .equals(other.getConnections())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (hasConnections()) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnections().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.CompiledWorkflow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflow) + flyteidl.core.Compiler.CompiledWorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (connectionsBuilder_ == null) { + connections_ = null; + } else { + connections_ = null; + connectionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow build() { + flyteidl.core.Compiler.CompiledWorkflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow buildPartial() { + flyteidl.core.Compiler.CompiledWorkflow result = new flyteidl.core.Compiler.CompiledWorkflow(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (connectionsBuilder_ == null) { + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.CompiledWorkflow) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflow other) { + if (other == flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (other.hasConnections()) { + mergeConnections(other.getConnections()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.CompiledWorkflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.WorkflowTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private flyteidl.core.Compiler.ConnectionSet connections_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> connectionsBuilder_; + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connectionsBuilder_ != null || connections_ != null; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + if (connectionsBuilder_ == null) { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } else { + return connectionsBuilder_.getMessage(); + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connections_ = value; + onChanged(); + } else { + connectionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections( + flyteidl.core.Compiler.ConnectionSet.Builder builderForValue) { + if (connectionsBuilder_ == null) { + connections_ = builderForValue.build(); + onChanged(); + } else { + connectionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder mergeConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (connections_ != null) { + connections_ = + flyteidl.core.Compiler.ConnectionSet.newBuilder(connections_).mergeFrom(value).buildPartial(); + } else { + connections_ = value; + } + onChanged(); + } else { + connectionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = null; + onChanged(); + } else { + connections_ = null; + connectionsBuilder_ = null; + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet.Builder getConnectionsBuilder() { + + onChanged(); + return getConnectionsFieldBuilder().getBuilder(); + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilder(); + } else { + return connections_ == null ? + flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder>( + getConnections(), + getParentForChildren(), + isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CompiledWorkflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) + private static final flyteidl.core.Compiler.CompiledWorkflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflow(); + } + + public static flyteidl.core.Compiler.CompiledWorkflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledWorkflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class CompiledTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledTask) + CompiledTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledTask.newBuilder() to construct. + private CompiledTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Compiler.CompiledTask)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledTask other = (flyteidl.core.Compiler.CompiledTask) obj; + + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.CompiledTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledTask) + flyteidl.core.Compiler.CompiledTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask build() { + flyteidl.core.Compiler.CompiledTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask buildPartial() { + flyteidl.core.Compiler.CompiledTask result = new flyteidl.core.Compiler.CompiledTask(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.CompiledTask) { + return mergeFrom((flyteidl.core.Compiler.CompiledTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledTask other) { + if (other == flyteidl.core.Compiler.CompiledTask.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.CompiledTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CompiledTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) + private static final flyteidl.core.Compiler.CompiledTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledTask(); + } + + public static flyteidl.core.Compiler.CompiledTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + boolean hasPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflow getPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder(); + + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + int getSubWorkflowsCount(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index); + + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTask getTasks(int index); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + int getTasksCount(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+   * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+   * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+   * compiled subworkflows.
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class CompiledWorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflowClosure) + CompiledWorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflowClosure.newBuilder() to construct. + private CompiledWorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflowClosure() { + subWorkflows_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflowClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Compiler.CompiledWorkflow.Builder subBuilder = null; + if (primary_ != null) { + subBuilder = primary_.toBuilder(); + } + primary_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(primary_); + primary_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subWorkflows_.add( + input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tasks_.add( + input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int PRIMARY_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflow primary_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primary_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + return getPrimary(); + } + + public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; + private java.util.List subWorkflows_; + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + return subWorkflows_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + return subWorkflows_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + return subWorkflows_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 3; + private java.util.List tasks_; + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (at least 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (primary_ != null) { + output.writeMessage(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + output.writeMessage(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(3, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (primary_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tasks_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Compiler.CompiledWorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflowClosure other = (flyteidl.core.Compiler.CompiledWorkflowClosure) obj; + + if (hasPrimary() != other.hasPrimary()) return false; + if (hasPrimary()) { + if (!getPrimary() + .equals(other.getPrimary())) return false; + } + if (!getSubWorkflowsList() + .equals(other.getSubWorkflowsList())) return false; + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrimary()) { + hash = (37 * hash) + PRIMARY_FIELD_NUMBER; + hash = (53 * hash) + getPrimary().hashCode(); + } + if (getSubWorkflowsCount() > 0) { + hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.CompiledWorkflowClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+     * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+     * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+     * compiled subworkflows.
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflowClosure) + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubWorkflowsFieldBuilder(); + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (primaryBuilder_ == null) { + primary_ = null; + } else { + primary_ = null; + primaryBuilder_ = null; + } + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + subWorkflowsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + tasksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure build() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure buildPartial() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = new flyteidl.core.Compiler.CompiledWorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (primaryBuilder_ == null) { + result.primary_ = primary_; + } else { + result.primary_ = primaryBuilder_.build(); + } + if (subWorkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subWorkflows_ = subWorkflows_; + } else { + result.subWorkflows_ = subWorkflowsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.CompiledWorkflowClosure) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflowClosure other) { + if (other == flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance()) return this; + if (other.hasPrimary()) { + mergePrimary(other.getPrimary()); + } + if (subWorkflowsBuilder_ == null) { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflows_.isEmpty()) { + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubWorkflowsIsMutable(); + subWorkflows_.addAll(other.subWorkflows_); + } + onChanged(); + } + } else { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflowsBuilder_.isEmpty()) { + subWorkflowsBuilder_.dispose(); + subWorkflowsBuilder_ = null; + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + subWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubWorkflowsFieldBuilder() : null; + } else { + subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.CompiledWorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Compiler.CompiledWorkflow primary_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> primaryBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primaryBuilder_ != null || primary_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + if (primaryBuilder_ == null) { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } else { + return primaryBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primary_ = value; + onChanged(); + } else { + primaryBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (primaryBuilder_ == null) { + primary_ = builderForValue.build(); + onChanged(); + } else { + primaryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder mergePrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (primary_ != null) { + primary_ = + flyteidl.core.Compiler.CompiledWorkflow.newBuilder(primary_).mergeFrom(value).buildPartial(); + } else { + primary_ = value; + } + onChanged(); + } else { + primaryBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder clearPrimary() { + if (primaryBuilder_ == null) { + primary_ = null; + onChanged(); + } else { + primary_ = null; + primaryBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getPrimaryBuilder() { + + onChanged(); + return getPrimaryFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + if (primaryBuilder_ != null) { + return primaryBuilder_.getMessageOrBuilder(); + } else { + return primary_ == null ? + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getPrimaryFieldBuilder() { + if (primaryBuilder_ == null) { + primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + getPrimary(), + getParentForChildren(), + isClean()); + primary_ = null; + } + return primaryBuilder_; + } + + private java.util.List subWorkflows_ = + java.util.Collections.emptyList(); + private void ensureSubWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + subWorkflows_ = new java.util.ArrayList(subWorkflows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> subWorkflowsBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + if (subWorkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subWorkflows_); + } else { + return subWorkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.size(); + } else { + return subWorkflowsBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); + } else { + return subWorkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows(flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addAllSubWorkflows( + java.lang.Iterable values) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subWorkflows_); + onChanged(); + } else { + subWorkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder clearSubWorkflows() { + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder removeSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.remove(index); + onChanged(); + } else { + subWorkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); } else { + return subWorkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + if (subWorkflowsBuilder_ != null) { + return subWorkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subWorkflows_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder() { + return getSubWorkflowsFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsBuilderList() { + return getSubWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getSubWorkflowsFieldBuilder() { + if (subWorkflowsBuilder_ == null) { + subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + subWorkflows_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + subWorkflows_ = null; + } + return subWorkflowsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> tasksBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks(flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (at least 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CompiledWorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) + private static final flyteidl.core.Compiler.CompiledWorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflowClosure(); + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompiledWorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflowClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/core/compiler.proto\022\rflyteidl" + + ".core\032\034flyteidl/core/workflow.proto\032\031fly" + + "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + + "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + + "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + + " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + + "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + + "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + + ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + + "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + + " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + + "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + + "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + + "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + + "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + + "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + + "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + + "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + + "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + + "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + + "iledTaskB6Z4github.com/flyteorg/flyteidl" + + "/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ConnectionSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_descriptor, + new java.lang.String[] { "Downstream", "Upstream", }); + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor, + new java.lang.String[] { "Ids", }); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(2); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_CompiledWorkflow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflow_descriptor, + new java.lang.String[] { "Template", "Connections", }); + internal_static_flyteidl_core_CompiledTask_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledTask_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor, + new java.lang.String[] { "Primary", "SubWorkflows", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Condition.java b/flyteidl/gen/pb-java/flyteidl/core/Condition.java new file mode 100644 index 0000000000..ec3247ff34 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Condition.java @@ -0,0 +1,4348 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +package flyteidl.core; + +public final class Condition { + private Condition() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ComparisonExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ComparisonExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + flyteidl.core.Condition.ComparisonExpression.Operator getOperator(); + + /** + * .flyteidl.core.Operand left_value = 2; + */ + boolean hasLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.Operand getLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder(); + + /** + * .flyteidl.core.Operand right_value = 3; + */ + boolean hasRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.Operand getRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder(); + } + /** + *
+   * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
+   * Each expression results in a boolean result.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class ComparisonExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ComparisonExpression) + ComparisonExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComparisonExpression.newBuilder() to construct. + private ComparisonExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComparisonExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComparisonExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (leftValue_ != null) { + subBuilder = leftValue_.toBuilder(); + } + leftValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftValue_); + leftValue_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (rightValue_ != null) { + subBuilder = rightValue_.toBuilder(); + } + rightValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightValue_); + rightValue_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + /** + *
+     * Binary Operator for each expression
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ComparisonExpression.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQ = 0; + */ + EQ(0), + /** + * NEQ = 1; + */ + NEQ(1), + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + GT(2), + /** + * GTE = 3; + */ + GTE(3), + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + LT(4), + /** + * LTE = 5; + */ + LTE(5), + UNRECOGNIZED(-1), + ; + + /** + * EQ = 0; + */ + public static final int EQ_VALUE = 0; + /** + * NEQ = 1; + */ + public static final int NEQ_VALUE = 1; + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + public static final int GT_VALUE = 2; + /** + * GTE = 3; + */ + public static final int GTE_VALUE = 3; + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + public static final int LT_VALUE = 4; + /** + * LTE = 5; + */ + public static final int LTE_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + public static Operator forNumber(int value) { + switch (value) { + case 0: return EQ; + case 1: return NEQ; + case 2: return GT; + case 3: return GTE; + case 4: return LT; + case 5: return LTE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Condition.ComparisonExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ComparisonExpression.Operator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + + public static final int LEFT_VALUE_FIELD_NUMBER = 2; + private flyteidl.core.Condition.Operand leftValue_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + return getLeftValue(); + } + + public static final int RIGHT_VALUE_FIELD_NUMBER = 3; + private flyteidl.core.Condition.Operand rightValue_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + return getRightValue(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftValue_ != null) { + output.writeMessage(2, getLeftValue()); + } + if (rightValue_ != null) { + output.writeMessage(3, getRightValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftValue()); + } + if (rightValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Condition.ComparisonExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ComparisonExpression other = (flyteidl.core.Condition.ComparisonExpression) obj; + + if (operator_ != other.operator_) return false; + if (hasLeftValue() != other.hasLeftValue()) return false; + if (hasLeftValue()) { + if (!getLeftValue() + .equals(other.getLeftValue())) return false; + } + if (hasRightValue() != other.hasRightValue()) return false; + if (hasRightValue()) { + if (!getRightValue() + .equals(other.getRightValue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftValue()) { + hash = (37 * hash) + LEFT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getLeftValue().hashCode(); + } + if (hasRightValue()) { + hash = (37 * hash) + RIGHT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRightValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.ComparisonExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
+     * Each expression results in a boolean result.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ComparisonExpression) + flyteidl.core.Condition.ComparisonExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ComparisonExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operator_ = 0; + + if (leftValueBuilder_ == null) { + leftValue_ = null; + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + if (rightValueBuilder_ == null) { + rightValue_ = null; + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression build() { + flyteidl.core.Condition.ComparisonExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression buildPartial() { + flyteidl.core.Condition.ComparisonExpression result = new flyteidl.core.Condition.ComparisonExpression(this); + result.operator_ = operator_; + if (leftValueBuilder_ == null) { + result.leftValue_ = leftValue_; + } else { + result.leftValue_ = leftValueBuilder_.build(); + } + if (rightValueBuilder_ == null) { + result.rightValue_ = rightValue_; + } else { + result.rightValue_ = rightValueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.ComparisonExpression) { + return mergeFrom((flyteidl.core.Condition.ComparisonExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ComparisonExpression other) { + if (other == flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftValue()) { + mergeLeftValue(other.getLeftValue()); + } + if (other.hasRightValue()) { + mergeRightValue(other.getRightValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.ComparisonExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ComparisonExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ComparisonExpression.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.Operand leftValue_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> leftValueBuilder_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValueBuilder_ != null || leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + if (leftValueBuilder_ == null) { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } else { + return leftValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftValue_ = value; + onChanged(); + } else { + leftValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (leftValueBuilder_ == null) { + leftValue_ = builderForValue.build(); + onChanged(); + } else { + leftValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder mergeLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (leftValue_ != null) { + leftValue_ = + flyteidl.core.Condition.Operand.newBuilder(leftValue_).mergeFrom(value).buildPartial(); + } else { + leftValue_ = value; + } + onChanged(); + } else { + leftValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder clearLeftValue() { + if (leftValueBuilder_ == null) { + leftValue_ = null; + onChanged(); + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand.Builder getLeftValueBuilder() { + + onChanged(); + return getLeftValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + if (leftValueBuilder_ != null) { + return leftValueBuilder_.getMessageOrBuilder(); + } else { + return leftValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getLeftValueFieldBuilder() { + if (leftValueBuilder_ == null) { + leftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getLeftValue(), + getParentForChildren(), + isClean()); + leftValue_ = null; + } + return leftValueBuilder_; + } + + private flyteidl.core.Condition.Operand rightValue_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> rightValueBuilder_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValueBuilder_ != null || rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + if (rightValueBuilder_ == null) { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } else { + return rightValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightValue_ = value; + onChanged(); + } else { + rightValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (rightValueBuilder_ == null) { + rightValue_ = builderForValue.build(); + onChanged(); + } else { + rightValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder mergeRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (rightValue_ != null) { + rightValue_ = + flyteidl.core.Condition.Operand.newBuilder(rightValue_).mergeFrom(value).buildPartial(); + } else { + rightValue_ = value; + } + onChanged(); + } else { + rightValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder clearRightValue() { + if (rightValueBuilder_ == null) { + rightValue_ = null; + onChanged(); + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand.Builder getRightValueBuilder() { + + onChanged(); + return getRightValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + if (rightValueBuilder_ != null) { + return rightValueBuilder_.getMessageOrBuilder(); + } else { + return rightValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getRightValueFieldBuilder() { + if (rightValueBuilder_ == null) { + rightValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getRightValue(), + getParentForChildren(), + isClean()); + rightValue_ = null; + } + return rightValueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ComparisonExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) + private static final flyteidl.core.Condition.ComparisonExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ComparisonExpression(); + } + + public static flyteidl.core.Condition.ComparisonExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComparisonExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComparisonExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OperandOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Operand) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.Primitive getPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * Replace the primitive field
+     * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + boolean hasScalar(); + /** + *
+     * Replace the primitive field
+     * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * Replace the primitive field
+     * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + public flyteidl.core.Condition.Operand.ValCase getValCase(); + } + /** + *
+   * Defines an operand to a comparison expression.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Operand extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Operand) + OperandOrBuilder { + private static final long serialVersionUID = 0L; + // Use Operand.newBuilder() to construct. + private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Operand() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Operand( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) val_).toBuilder(); + } + val_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) val_); + val_ = subBuilder.buildPartial(); + } + valCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + valCase_ = 2; + val_ = s; + break; + } + case 26: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.Scalar) val_).toBuilder(); + } + val_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) val_); + val_ = subBuilder.buildPartial(); + } + valCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + private int valCase_ = 0; + private java.lang.Object val_; + public enum ValCase + implements com.google.protobuf.Internal.EnumLite { + @java.lang.Deprecated PRIMITIVE(1), + VAR(2), + SCALAR(3), + VAL_NOT_SET(0); + private final int value; + private ValCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValCase valueOf(int value) { + return forNumber(value); + } + + public static ValCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return VAR; + case 3: return SCALAR; + case 0: return VAL_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.Primitive getPrimitive() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int VAR_FIELD_NUMBER = 2; + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } + } + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCALAR_FIELD_NUMBER = 3; + /** + *
+     * Replace the primitive field
+     * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public boolean hasScalar() { + return valCase_ == 3; + } + /** + *
+     * Replace the primitive field
+     * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valCase_ == 3) { + return (flyteidl.core.Literals.Scalar) val_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * Replace the primitive field
+     * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valCase_ == 3) { + return (flyteidl.core.Literals.Scalar) val_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); + } + if (valCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.Scalar) val_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); + } + if (valCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.Scalar) val_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Condition.Operand)) { + return super.equals(obj); + } + flyteidl.core.Condition.Operand other = (flyteidl.core.Condition.Operand) obj; + + if (!getValCase().equals(other.getValCase())) return false; + switch (valCase_) { + case 1: + if (!getPrimitive() + .equals(other.getPrimitive())) return false; + break; + case 2: + if (!getVar() + .equals(other.getVar())) return false; + break; + case 3: + if (!getScalar() + .equals(other.getScalar())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + break; + case 3: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.Operand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines an operand to a comparison expression.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Operand) + flyteidl.core.Condition.OperandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + // Construct using flyteidl.core.Condition.Operand.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + valCase_ = 0; + val_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return flyteidl.core.Condition.Operand.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.Operand build() { + flyteidl.core.Condition.Operand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.Operand buildPartial() { + flyteidl.core.Condition.Operand result = new flyteidl.core.Condition.Operand(this); + if (valCase_ == 1) { + if (primitiveBuilder_ == null) { + result.val_ = val_; + } else { + result.val_ = primitiveBuilder_.build(); + } + } + if (valCase_ == 2) { + result.val_ = val_; + } + if (valCase_ == 3) { + if (scalarBuilder_ == null) { + result.val_ = val_; + } else { + result.val_ = scalarBuilder_.build(); + } + } + result.valCase_ = valCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.Operand) { + return mergeFrom((flyteidl.core.Condition.Operand)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.Operand other) { + if (other == flyteidl.core.Condition.Operand.getDefaultInstance()) return this; + switch (other.getValCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case VAR: { + valCase_ = 2; + val_ = other.val_; + onChanged(); + break; + } + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case VAL_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.Operand parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.Operand) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valCase_ = 0; + private java.lang.Object val_; + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public Builder clearVal() { + valCase_ = 0; + val_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + val_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + val_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valCase_ == 1 && + val_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + val_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) val_) + .mergeFrom(value).buildPartial(); + } else { + val_ = value; + } + onChanged(); + } else { + if (valCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + onChanged(); + } + } else { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valCase_ == 1)) { + val_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) val_, + getParentForChildren(), + isClean()); + val_ = null; + } + valCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valCase_ = 2; + val_ = value; + onChanged(); + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + if (valCase_ == 2) { + valCase_ = 0; + val_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valCase_ = 2; + val_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public boolean hasScalar() { + return valCase_ == 3; + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valCase_ == 3) { + return (flyteidl.core.Literals.Scalar) val_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valCase_ == 3) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + val_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valCase_ = 3; + return this; + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + val_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valCase_ = 3; + return this; + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valCase_ == 3 && + val_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + val_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) val_) + .mergeFrom(value).buildPartial(); + } else { + val_ = value; + } + onChanged(); + } else { + if (valCase_ == 3) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valCase_ = 3; + return this; + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valCase_ == 3) { + valCase_ = 0; + val_ = null; + onChanged(); + } + } else { + if (valCase_ == 3) { + valCase_ = 0; + val_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valCase_ == 3) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valCase_ == 3) { + return (flyteidl.core.Literals.Scalar) val_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * Replace the primitive field
+       * 
+ * + * .flyteidl.core.Scalar scalar = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valCase_ == 3)) { + val_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) val_, + getParentForChildren(), + isClean()); + val_ = null; + } + valCase_ = 3; + onChanged();; + return scalarBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Operand) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) + private static final flyteidl.core.Condition.Operand DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.Operand(); + } + + public static flyteidl.core.Condition.Operand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operand(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BooleanExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BooleanExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + boolean hasConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpression getConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder(); + + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + boolean hasComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpression getComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder(); + + public flyteidl.core.Condition.BooleanExpression.ExprCase getExprCase(); + } + /** + *
+   * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+   * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class BooleanExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BooleanExpression) + BooleanExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BooleanExpression.newBuilder() to construct. + private BooleanExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BooleanExpression() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BooleanExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Condition.ConjunctionExpression.Builder subBuilder = null; + if (exprCase_ == 1) { + subBuilder = ((flyteidl.core.Condition.ConjunctionExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ConjunctionExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ConjunctionExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: { + flyteidl.core.Condition.ComparisonExpression.Builder subBuilder = null; + if (exprCase_ == 2) { + subBuilder = ((flyteidl.core.Condition.ComparisonExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ComparisonExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ComparisonExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + public enum ExprCase + implements com.google.protobuf.Internal.EnumLite { + CONJUNCTION(1), + COMPARISON(2), + EXPR_NOT_SET(0); + private final int value; + private ExprCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: return CONJUNCTION; + case 2: return COMPARISON; + case 0: return EXPR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public static final int CONJUNCTION_FIELD_NUMBER = 1; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + public static final int COMPARISON_FIELD_NUMBER = 2; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Condition.BooleanExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.BooleanExpression other = (flyteidl.core.Condition.BooleanExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getConjunction() + .equals(other.getConjunction())) return false; + break; + case 2: + if (!getComparison() + .equals(other.getComparison())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + CONJUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getConjunction().hashCode(); + break; + case 2: + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + getComparison().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.BooleanExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+     * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BooleanExpression) + flyteidl.core.Condition.BooleanExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.BooleanExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.BooleanExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression build() { + flyteidl.core.Condition.BooleanExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression buildPartial() { + flyteidl.core.Condition.BooleanExpression result = new flyteidl.core.Condition.BooleanExpression(this); + if (exprCase_ == 1) { + if (conjunctionBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = conjunctionBuilder_.build(); + } + } + if (exprCase_ == 2) { + if (comparisonBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = comparisonBuilder_.build(); + } + } + result.exprCase_ = exprCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.BooleanExpression) { + return mergeFrom((flyteidl.core.Condition.BooleanExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.BooleanExpression other) { + if (other == flyteidl.core.Condition.BooleanExpression.getDefaultInstance()) return this; + switch (other.getExprCase()) { + case CONJUNCTION: { + mergeConjunction(other.getConjunction()); + break; + } + case COMPARISON: { + mergeComparison(other.getComparison()); + break; + } + case EXPR_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.BooleanExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.BooleanExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int exprCase_ = 0; + private java.lang.Object expr_; + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> conjunctionBuilder_; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return conjunctionBuilder_.getMessage(); + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction( + flyteidl.core.Condition.ConjunctionExpression.Builder builderForValue) { + if (conjunctionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + conjunctionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder mergeConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1 && + expr_ != flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.newBuilder((flyteidl.core.Condition.ConjunctionExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + conjunctionBuilder_.mergeFrom(value); + } + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder clearConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + conjunctionBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.Builder getConjunctionBuilder() { + return getConjunctionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if ((exprCase_ == 1) && (conjunctionBuilder_ != null)) { + return conjunctionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> + getConjunctionFieldBuilder() { + if (conjunctionBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + conjunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder>( + (flyteidl.core.Condition.ConjunctionExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged();; + return conjunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> comparisonBuilder_; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return comparisonBuilder_.getMessage(); + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison( + flyteidl.core.Condition.ComparisonExpression.Builder builderForValue) { + if (comparisonBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + comparisonBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder mergeComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2 && + expr_ != flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ComparisonExpression.newBuilder((flyteidl.core.Condition.ComparisonExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + comparisonBuilder_.mergeFrom(value); + } + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder clearComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + comparisonBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression.Builder getComparisonBuilder() { + return getComparisonFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if ((exprCase_ == 2) && (comparisonBuilder_ != null)) { + return comparisonBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> + getComparisonFieldBuilder() { + if (comparisonBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder>( + (flyteidl.core.Condition.ComparisonExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged();; + return comparisonBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BooleanExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) + private static final flyteidl.core.Condition.BooleanExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.BooleanExpression(); + } + + public static flyteidl.core.Condition.BooleanExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BooleanExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BooleanExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConjunctionExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConjunctionExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator(); + + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + boolean hasLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpression getLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder(); + + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + boolean hasRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpression getRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder(); + } + /** + *
+   * Defines a conjunction expression of two boolean expressions.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class ConjunctionExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConjunctionExpression) + ConjunctionExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConjunctionExpression.newBuilder() to construct. + private ConjunctionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConjunctionExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConjunctionExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (leftExpression_ != null) { + subBuilder = leftExpression_.toBuilder(); + } + leftExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftExpression_); + leftExpression_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (rightExpression_ != null) { + subBuilder = rightExpression_.toBuilder(); + } + rightExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightExpression_); + rightExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + /** + *
+     * Nested conditions. They can be conjoined using AND / OR
+     * Order of evaluation is not important as the operators are Commutative
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ConjunctionExpression.LogicalOperator} + */ + public enum LogicalOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + AND(0), + /** + * OR = 1; + */ + OR(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + public static final int AND_VALUE = 0; + /** + * OR = 1; + */ + public static final int OR_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LogicalOperator valueOf(int value) { + return forNumber(value); + } + + public static LogicalOperator forNumber(int value) { + switch (value) { + case 0: return AND; + case 1: return OR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LogicalOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogicalOperator findValueByNumber(int number) { + return LogicalOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Condition.ConjunctionExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final LogicalOperator[] VALUES = values(); + + public static LogicalOperator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LogicalOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ConjunctionExpression.LogicalOperator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + + public static final int LEFT_EXPRESSION_FIELD_NUMBER = 2; + private flyteidl.core.Condition.BooleanExpression leftExpression_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + return getLeftExpression(); + } + + public static final int RIGHT_EXPRESSION_FIELD_NUMBER = 3; + private flyteidl.core.Condition.BooleanExpression rightExpression_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + return getRightExpression(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftExpression_ != null) { + output.writeMessage(2, getLeftExpression()); + } + if (rightExpression_ != null) { + output.writeMessage(3, getRightExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftExpression()); + } + if (rightExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Condition.ConjunctionExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ConjunctionExpression other = (flyteidl.core.Condition.ConjunctionExpression) obj; + + if (operator_ != other.operator_) return false; + if (hasLeftExpression() != other.hasLeftExpression()) return false; + if (hasLeftExpression()) { + if (!getLeftExpression() + .equals(other.getLeftExpression())) return false; + } + if (hasRightExpression() != other.hasRightExpression()) return false; + if (hasRightExpression()) { + if (!getRightExpression() + .equals(other.getRightExpression())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftExpression()) { + hash = (37 * hash) + LEFT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getLeftExpression().hashCode(); + } + if (hasRightExpression()) { + hash = (37 * hash) + RIGHT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRightExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.ConjunctionExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a conjunction expression of two boolean expressions.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConjunctionExpression) + flyteidl.core.Condition.ConjunctionExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ConjunctionExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operator_ = 0; + + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression build() { + flyteidl.core.Condition.ConjunctionExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression buildPartial() { + flyteidl.core.Condition.ConjunctionExpression result = new flyteidl.core.Condition.ConjunctionExpression(this); + result.operator_ = operator_; + if (leftExpressionBuilder_ == null) { + result.leftExpression_ = leftExpression_; + } else { + result.leftExpression_ = leftExpressionBuilder_.build(); + } + if (rightExpressionBuilder_ == null) { + result.rightExpression_ = rightExpression_; + } else { + result.rightExpression_ = rightExpressionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.ConjunctionExpression) { + return mergeFrom((flyteidl.core.Condition.ConjunctionExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ConjunctionExpression other) { + if (other == flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftExpression()) { + mergeLeftExpression(other.getLeftExpression()); + } + if (other.hasRightExpression()) { + mergeRightExpression(other.getRightExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.ConjunctionExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ConjunctionExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + @SuppressWarnings("deprecation") + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ConjunctionExpression.LogicalOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.BooleanExpression leftExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> leftExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpressionBuilder_ != null || leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + if (leftExpressionBuilder_ == null) { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } else { + return leftExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftExpression_ = value; + onChanged(); + } else { + leftExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (leftExpressionBuilder_ == null) { + leftExpression_ = builderForValue.build(); + onChanged(); + } else { + leftExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder mergeLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (leftExpression_ != null) { + leftExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(leftExpression_).mergeFrom(value).buildPartial(); + } else { + leftExpression_ = value; + } + onChanged(); + } else { + leftExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder clearLeftExpression() { + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + onChanged(); + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getLeftExpressionBuilder() { + + onChanged(); + return getLeftExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + if (leftExpressionBuilder_ != null) { + return leftExpressionBuilder_.getMessageOrBuilder(); + } else { + return leftExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getLeftExpressionFieldBuilder() { + if (leftExpressionBuilder_ == null) { + leftExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getLeftExpression(), + getParentForChildren(), + isClean()); + leftExpression_ = null; + } + return leftExpressionBuilder_; + } + + private flyteidl.core.Condition.BooleanExpression rightExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> rightExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpressionBuilder_ != null || rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + if (rightExpressionBuilder_ == null) { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } else { + return rightExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightExpression_ = value; + onChanged(); + } else { + rightExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (rightExpressionBuilder_ == null) { + rightExpression_ = builderForValue.build(); + onChanged(); + } else { + rightExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder mergeRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (rightExpression_ != null) { + rightExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(rightExpression_).mergeFrom(value).buildPartial(); + } else { + rightExpression_ = value; + } + onChanged(); + } else { + rightExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder clearRightExpression() { + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + onChanged(); + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getRightExpressionBuilder() { + + onChanged(); + return getRightExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + if (rightExpressionBuilder_ != null) { + return rightExpressionBuilder_.getMessageOrBuilder(); + } else { + return rightExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getRightExpressionFieldBuilder() { + if (rightExpressionBuilder_ == null) { + rightExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getRightExpression(), + getParentForChildren(), + isClean()); + rightExpression_ = null; + } + return rightExpressionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ConjunctionExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) + private static final flyteidl.core.Condition.ConjunctionExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ConjunctionExpression(); + } + + public static flyteidl.core.Condition.ConjunctionExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConjunctionExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConjunctionExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ComparisonExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Operand_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Operand_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BooleanExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConjunctionExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/core/condition.proto\022\rflyteid" + + "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + + "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + + ",.flyteidl.core.ComparisonExpression.Ope" + + "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + + "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + + "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + + "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"{\n" + + "\007Operand\0221\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + + "ore.PrimitiveB\002\030\001H\000\022\r\n\003var\030\002 \001(\tH\000\022\'\n\006sc" + + "alar\030\003 \001(\0132\025.flyteidl.core.ScalarH\000B\005\n\003v" + + "al\"\223\001\n\021BooleanExpression\022;\n\013conjunction\030" + + "\001 \001(\0132$.flyteidl.core.ConjunctionExpress" + + "ionH\000\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.cor" + + "e.ComparisonExpressionH\000B\006\n\004expr\"\372\001\n\025Con" + + "junctionExpression\022F\n\010operator\030\001 \001(\01624.f" + + "lyteidl.core.ConjunctionExpression.Logic" + + "alOperator\0229\n\017left_expression\030\002 \001(\0132 .fl" + + "yteidl.core.BooleanExpression\022:\n\020right_e" + + "xpression\030\003 \001(\0132 .flyteidl.core.BooleanE" + + "xpression\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n" + + "\002OR\020\001B6Z4github.com/flyteorg/flyteidl/ge" + + "n/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ComparisonExpression_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ComparisonExpression_descriptor, + new java.lang.String[] { "Operator", "LeftValue", "RightValue", }); + internal_static_flyteidl_core_Operand_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Operand_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Operand_descriptor, + new java.lang.String[] { "Primitive", "Var", "Scalar", "Val", }); + internal_static_flyteidl_core_BooleanExpression_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BooleanExpression_descriptor, + new java.lang.String[] { "Conjunction", "Comparison", "Expr", }); + internal_static_flyteidl_core_ConjunctionExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConjunctionExpression_descriptor, + new java.lang.String[] { "Operator", "LeftExpression", "RightExpression", }); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/DynamicJob.java b/flyteidl/gen/pb-java/flyteidl/core/DynamicJob.java new file mode 100644 index 0000000000..724f41f3c8 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/DynamicJob.java @@ -0,0 +1,2542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +package flyteidl.core; + +public final class DynamicJob { + private DynamicJob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DynamicJobSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.DynamicJobSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + int getNodesCount(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + long getMinSuccesses(); + + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + int getOutputsCount(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + int getTasksCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + int getSubworkflowsCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index); + } + /** + *
+   * Describes a set of tasks to execute and how the final outputs are produced.
+   * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class DynamicJobSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.DynamicJobSpec) + DynamicJobSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicJobSpec.newBuilder() to construct. + private DynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DynamicJobSpec() { + nodes_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + subworkflows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DynamicJobSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 16: { + + minSuccesses_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + subworkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + subworkflows_.add( + input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + private int bitField0_; + public static final int NODES_FIELD_NUMBER = 1; + private java.util.List nodes_; + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 2; + private long minSuccesses_; + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + + public static final int OUTPUTS_FIELD_NUMBER = 3; + private java.util.List outputs_; + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 4; + private java.util.List tasks_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + public static final int SUBWORKFLOWS_FIELD_NUMBER = 5; + private java.util.List subworkflows_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + return subworkflows_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + return subworkflows_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + return subworkflows_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + output.writeInt64(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + output.writeMessage(5, subworkflows_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, subworkflows_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.DynamicJob.DynamicJobSpec)) { + return super.equals(obj); + } + flyteidl.core.DynamicJob.DynamicJobSpec other = (flyteidl.core.DynamicJob.DynamicJobSpec) obj; + + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (getMinSuccesses() + != other.getMinSuccesses()) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!getSubworkflowsList() + .equals(other.getSubworkflowsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + if (getSubworkflowsCount() > 0) { + hash = (37 * hash) + SUBWORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubworkflowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.DynamicJob.DynamicJobSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Describes a set of tasks to execute and how the final outputs are produced.
+     * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.DynamicJobSpec) + flyteidl.core.DynamicJob.DynamicJobSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + // Construct using flyteidl.core.DynamicJob.DynamicJobSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + getTasksFieldBuilder(); + getSubworkflowsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodesBuilder_.clear(); + } + minSuccesses_ = 0L; + + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + outputsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + tasksBuilder_.clear(); + } + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec build() { + flyteidl.core.DynamicJob.DynamicJobSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec buildPartial() { + flyteidl.core.DynamicJob.DynamicJobSpec result = new flyteidl.core.DynamicJob.DynamicJobSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + result.minSuccesses_ = minSuccesses_; + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + if (subworkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.subworkflows_ = subworkflows_; + } else { + result.subworkflows_ = subworkflowsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.DynamicJob.DynamicJobSpec) { + return mergeFrom((flyteidl.core.DynamicJob.DynamicJobSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.DynamicJob.DynamicJobSpec other) { + if (other == flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance()) return this; + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (other.getMinSuccesses() != 0L) { + setMinSuccesses(other.getMinSuccesses()); + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (subworkflowsBuilder_ == null) { + if (!other.subworkflows_.isEmpty()) { + if (subworkflows_.isEmpty()) { + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSubworkflowsIsMutable(); + subworkflows_.addAll(other.subworkflows_); + } + onChanged(); + } + } else { + if (!other.subworkflows_.isEmpty()) { + if (subworkflowsBuilder_.isEmpty()) { + subworkflowsBuilder_.dispose(); + subworkflowsBuilder_ = null; + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + subworkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubworkflowsFieldBuilder() : null; + } else { + subworkflowsBuilder_.addAllMessages(other.subworkflows_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.DynamicJob.DynamicJobSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.DynamicJob.DynamicJobSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private long minSuccesses_ ; + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder setMinSuccesses(long value) { + + minSuccesses_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder clearMinSuccesses() { + + minSuccesses_ = 0L; + onChanged(); + return this; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.util.List subworkflows_ = + java.util.Collections.emptyList(); + private void ensureSubworkflowsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + subworkflows_ = new java.util.ArrayList(subworkflows_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subworkflowsBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + if (subworkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subworkflows_); + } else { + return subworkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + if (subworkflowsBuilder_ == null) { + return subworkflows_.size(); + } else { + return subworkflowsBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); + } else { + return subworkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, value); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows(flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addAllSubworkflows( + java.lang.Iterable values) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subworkflows_); + onChanged(); + } else { + subworkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder clearSubworkflows() { + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder removeSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.remove(index); + onChanged(); + } else { + subworkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); } else { + return subworkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + if (subworkflowsBuilder_ != null) { + return subworkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subworkflows_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder() { + return getSubworkflowsFieldBuilder().addBuilder( + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsBuilderList() { + return getSubworkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getSubworkflowsFieldBuilder() { + if (subworkflowsBuilder_ == null) { + subworkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + subworkflows_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + subworkflows_ = null; + } + return subworkflowsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.DynamicJobSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) + private static final flyteidl.core.DynamicJob.DynamicJobSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.DynamicJob.DynamicJobSpec(); + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicJobSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DynamicJobSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_DynamicJobSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037flyteidl/core/dynamic_job.proto\022\rflyte" + + "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + + "teidl/core/workflow.proto\032\034flyteidl/core" + + "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + + "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + + "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + + "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + + ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + + "2\037.flyteidl.core.WorkflowTemplateB6Z4git" + + "hub.com/flyteorg/flyteidl/gen/pb-go/flyt" + + "eidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_DynamicJobSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_DynamicJobSpec_descriptor, + new java.lang.String[] { "Nodes", "MinSuccesses", "Outputs", "Tasks", "Subworkflows", }); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Errors.java b/flyteidl/gen/pb-java/flyteidl/core/Errors.java new file mode 100644 index 0000000000..a6ea3a8d5b --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Errors.java @@ -0,0 +1,1883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +package flyteidl.core; + +public final class Errors { + private Errors() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ContainerErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + int getKindValue(); + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + flyteidl.core.Errors.ContainerError.Kind getKind(); + + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + int getOriginValue(); + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin(); + } + /** + *
+   * Error message to propagate detailed errors from container executions to the execution
+   * engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class ContainerError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerError) + ContainerErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerError.newBuilder() to construct. + private ContainerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerError() { + code_ = ""; + message_ = ""; + kind_ = 0; + origin_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerError( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + origin_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + /** + *
+     * Defines a generic error type that dictates the behavior of the retry strategy.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ContainerError.Kind} + */ + public enum Kind + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NON_RECOVERABLE = 0; + */ + NON_RECOVERABLE(0), + /** + * RECOVERABLE = 1; + */ + RECOVERABLE(1), + UNRECOGNIZED(-1), + ; + + /** + * NON_RECOVERABLE = 0; + */ + public static final int NON_RECOVERABLE_VALUE = 0; + /** + * RECOVERABLE = 1; + */ + public static final int RECOVERABLE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Kind valueOf(int value) { + return forNumber(value); + } + + public static Kind forNumber(int value) { + switch (value) { + case 0: return NON_RECOVERABLE; + case 1: return RECOVERABLE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Kind> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Errors.ContainerError.getDescriptor().getEnumTypes().get(0); + } + + private static final Kind[] VALUES = values(); + + public static Kind valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Kind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ContainerError.Kind) + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 3; + private int kind_; + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + + public static final int ORIGIN_FIELD_NUMBER = 4; + private int origin_; + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public int getOriginValue() { + return origin_; + } + /** + *
+     * Defines the origin of the error (system, user, unknown).
+     * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + output.writeEnum(3, kind_); + } + if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + output.writeEnum(4, origin_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, kind_); + } + if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, origin_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Errors.ContainerError)) { + return super.equals(obj); + } + flyteidl.core.Errors.ContainerError other = (flyteidl.core.Errors.ContainerError) obj; + + if (!getCode() + .equals(other.getCode())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (kind_ != other.kind_) return false; + if (origin_ != other.origin_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + hash = (37 * hash) + ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + origin_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Errors.ContainerError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Error message to propagate detailed errors from container executions to the execution
+     * engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerError) + flyteidl.core.Errors.ContainerErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + // Construct using flyteidl.core.Errors.ContainerError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = ""; + + message_ = ""; + + kind_ = 0; + + origin_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return flyteidl.core.Errors.ContainerError.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError build() { + flyteidl.core.Errors.ContainerError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError buildPartial() { + flyteidl.core.Errors.ContainerError result = new flyteidl.core.Errors.ContainerError(this); + result.code_ = code_; + result.message_ = message_; + result.kind_ = kind_; + result.origin_ = origin_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Errors.ContainerError) { + return mergeFrom((flyteidl.core.Errors.ContainerError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ContainerError other) { + if (other == flyteidl.core.Errors.ContainerError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + if (other.origin_ != 0) { + setOriginValue(other.getOriginValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Errors.ContainerError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ContainerError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int kind_ = 0; + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKind(flyteidl.core.Errors.ContainerError.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder clearKind() { + + kind_ = 0; + onChanged(); + return this; + } + + private int origin_ = 0; + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public int getOriginValue() { + return origin_; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder setOriginValue(int value) { + origin_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder setOrigin(flyteidl.core.Execution.ExecutionError.ErrorKind value) { + if (value == null) { + throw new NullPointerException(); + } + + origin_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines the origin of the error (system, user, unknown).
+       * 
+ * + * .flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + public Builder clearOrigin() { + + origin_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ContainerError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) + private static final flyteidl.core.Errors.ContainerError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ContainerError(); + } + + public static flyteidl.core.Errors.ContainerError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerError(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorDocumentOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ErrorDocument) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + boolean hasError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerError getError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder(); + } + /** + *
+   * Defines the errors.pb file format the container can produce to communicate
+   * failure reasons to the execution engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class ErrorDocument extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ErrorDocument) + ErrorDocumentOrBuilder { + private static final long serialVersionUID = 0L; + // Use ErrorDocument.newBuilder() to construct. + private ErrorDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorDocument() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ErrorDocument( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Errors.ContainerError.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(flyteidl.core.Errors.ContainerError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + public static final int ERROR_FIELD_NUMBER = 1; + private flyteidl.core.Errors.ContainerError error_; + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return error_ != null; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + return getError(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (error_ != null) { + output.writeMessage(1, getError()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getError()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Errors.ErrorDocument)) { + return super.equals(obj); + } + flyteidl.core.Errors.ErrorDocument other = (flyteidl.core.Errors.ErrorDocument) obj; + + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError() + .equals(other.getError())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Errors.ErrorDocument prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines the errors.pb file format the container can produce to communicate
+     * failure reasons to the execution engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ErrorDocument) + flyteidl.core.Errors.ErrorDocumentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + // Construct using flyteidl.core.Errors.ErrorDocument.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return flyteidl.core.Errors.ErrorDocument.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument build() { + flyteidl.core.Errors.ErrorDocument result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument buildPartial() { + flyteidl.core.Errors.ErrorDocument result = new flyteidl.core.Errors.ErrorDocument(this); + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Errors.ErrorDocument) { + return mergeFrom((flyteidl.core.Errors.ErrorDocument)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ErrorDocument other) { + if (other == flyteidl.core.Errors.ErrorDocument.getDefaultInstance()) return this; + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Errors.ErrorDocument parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ErrorDocument) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Errors.ContainerError error_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> errorBuilder_; + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + if (errorBuilder_ == null) { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError( + flyteidl.core.Errors.ContainerError.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder mergeError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = + flyteidl.core.Errors.ContainerError.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ErrorDocument) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) + private static final flyteidl.core.Errors.ErrorDocument DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ErrorDocument(); + } + + public static flyteidl.core.Errors.ErrorDocument getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorDocument(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ErrorDocument_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/core/errors.proto\022\rflyteidl.c" + + "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" + + "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" + + " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" + + "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" + + "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" + + "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" + + "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" + + ".core.ContainerErrorB6Z4github.com/flyte" + + "org/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ContainerError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ContainerError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerError_descriptor, + new java.lang.String[] { "Code", "Message", "Kind", "Origin", }); + internal_static_flyteidl_core_ErrorDocument_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ErrorDocument_descriptor, + new java.lang.String[] { "Error", }); + flyteidl.core.Execution.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Execution.java b/flyteidl/gen/pb-java/flyteidl/core/Execution.java new file mode 100644 index 0000000000..596db042e6 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Execution.java @@ -0,0 +1,5793 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +package flyteidl.core; + +public final class Execution { + private Execution() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Workflow Execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class WorkflowExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution) + WorkflowExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecution.newBuilder() to construct. + private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDING = 3; + */ + SUCCEEDING(3), + /** + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * FAILING = 5; + */ + FAILING(5), + /** + * FAILED = 6; + */ + FAILED(6), + /** + * ABORTED = 7; + */ + ABORTED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + /** + * ABORTING = 9; + */ + ABORTING(9), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDING = 3; + */ + public static final int SUCCEEDING_VALUE = 3; + /** + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + /** + * FAILING = 5; + */ + public static final int FAILING_VALUE = 5; + /** + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * ABORTED = 7; + */ + public static final int ABORTED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + /** + * ABORTING = 9; + */ + public static final int ABORTING_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDING; + case 4: return SUCCEEDED; + case 5: return FAILING; + case 6: return FAILED; + case 7: return ABORTED; + case 8: return TIMED_OUT; + case 9: return ABORTING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Execution.WorkflowExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.WorkflowExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Indicates various phases of Workflow Execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution) + flyteidl.core.Execution.WorkflowExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.WorkflowExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution build() { + flyteidl.core.Execution.WorkflowExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution buildPartial() { + flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.WorkflowExecution) { + return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) { + if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.WorkflowExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) + private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution(); + } + + public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.NodeExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * FAILING = 4; + */ + FAILING(4), + /** + * FAILED = 5; + */ + FAILED(5), + /** + * ABORTED = 6; + */ + ABORTED(6), + /** + * SKIPPED = 7; + */ + SKIPPED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + /** + * DYNAMIC_RUNNING = 9; + */ + DYNAMIC_RUNNING(9), + /** + * RECOVERED = 10; + */ + RECOVERED(10), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * FAILING = 4; + */ + public static final int FAILING_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + * ABORTED = 6; + */ + public static final int ABORTED_VALUE = 6; + /** + * SKIPPED = 7; + */ + public static final int SKIPPED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + /** + * DYNAMIC_RUNNING = 9; + */ + public static final int DYNAMIC_RUNNING_VALUE = 9; + /** + * RECOVERED = 10; + */ + public static final int RECOVERED_VALUE = 10; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return FAILING; + case 5: return FAILED; + case 6: return ABORTED; + case 7: return SKIPPED; + case 8: return TIMED_OUT; + case 9: return DYNAMIC_RUNNING; + case 10: return RECOVERED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Execution.NodeExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.NodeExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution) + flyteidl.core.Execution.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.NodeExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.NodeExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution build() { + flyteidl.core.Execution.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution buildPartial() { + flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.NodeExecution) { + return mergeFrom((flyteidl.core.Execution.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) { + if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) + private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution(); + } + + public static flyteidl.core.Execution.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+   * but this is the cumulative list that customers may want to know about for their task.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * ABORTED = 4; + */ + ABORTED(4), + /** + * FAILED = 5; + */ + FAILED(5), + /** + *
+       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
+       * 
+ * + * INITIALIZING = 6; + */ + INITIALIZING(6), + /** + *
+       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
+       * 
+ * + * WAITING_FOR_RESOURCES = 7; + */ + WAITING_FOR_RESOURCES(7), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * ABORTED = 4; + */ + public static final int ABORTED_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + *
+       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
+       * 
+ * + * INITIALIZING = 6; + */ + public static final int INITIALIZING_VALUE = 6; + /** + *
+       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
+       * 
+ * + * WAITING_FOR_RESOURCES = 7; + */ + public static final int WAITING_FOR_RESOURCES_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return ABORTED; + case 5: return FAILED; + case 6: return INITIALIZING; + case 7: return WAITING_FOR_RESOURCES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Execution.TaskExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.TaskExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+     * but this is the cumulative list that customers may want to know about for their task.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution) + flyteidl.core.Execution.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskExecution.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution build() { + flyteidl.core.Execution.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution buildPartial() { + flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.TaskExecution) { + return mergeFrom((flyteidl.core.Execution.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) { + if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) + private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution(); + } + + public static flyteidl.core.Execution.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + java.lang.String getErrorUri(); + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + com.google.protobuf.ByteString + getErrorUriBytes(); + + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + int getKindValue(); + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + flyteidl.core.Execution.ExecutionError.ErrorKind getKind(); + } + /** + *
+   * Represents the error message from the execution.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class ExecutionError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError) + ExecutionErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionError.newBuilder() to construct. + private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionError() { + code_ = ""; + message_ = ""; + errorUri_ = ""; + kind_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionError( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + errorUri_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + /** + *
+     * Error type: System or User
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ExecutionError.ErrorKind} + */ + public enum ErrorKind + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * USER = 1; + */ + USER(1), + /** + * SYSTEM = 2; + */ + SYSTEM(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ErrorKind valueOf(int value) { + return forNumber(value); + } + + public static ErrorKind forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return USER; + case 2: return SYSTEM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ErrorKind> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorKind findValueByNumber(int number) { + return ErrorKind.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.ExecutionError.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorKind[] VALUES = values(); + + public static ErrorKind valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ErrorKind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ExecutionError.ErrorKind) + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object errorUri_; + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorUri_ = s; + return s; + } + } + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 4; + private int kind_; + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public int getKindValue() { + return kind_; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_); + } + if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + output.writeEnum(4, kind_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_); + } + if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, kind_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Execution.ExecutionError)) { + return super.equals(obj); + } + flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj; + + if (!getCode() + .equals(other.getCode())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!getErrorUri() + .equals(other.getErrorUri())) return false; + if (kind_ != other.kind_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; + hash = (53 * hash) + getErrorUri().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.ExecutionError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents the error message from the execution.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError) + flyteidl.core.Execution.ExecutionErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + // Construct using flyteidl.core.Execution.ExecutionError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = ""; + + message_ = ""; + + errorUri_ = ""; + + kind_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError build() { + flyteidl.core.Execution.ExecutionError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError buildPartial() { + flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this); + result.code_ = code_; + result.message_ = message_; + result.errorUri_ = errorUri_; + result.kind_ = kind_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.ExecutionError) { + return mergeFrom((flyteidl.core.Execution.ExecutionError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) { + if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getErrorUri().isEmpty()) { + errorUri_ = other.errorUri_; + onChanged(); + } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.ExecutionError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object errorUri_ = ""; + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder clearErrorUri() { + + errorUri_ = getDefaultInstance().getErrorUri(); + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorUri_ = value; + onChanged(); + return this; + } + + private int kind_ = 0; + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public int getKindValue() { + return kind_; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); + return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder setKind(flyteidl.core.Execution.ExecutionError.ErrorKind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + public Builder clearKind() { + + kind_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ExecutionError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) + private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError(); + } + + public static flyteidl.core.Execution.ExecutionError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionError(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * string name = 2; + */ + java.lang.String getName(); + /** + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + int getMessageFormatValue(); + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat(); + + /** + * .google.protobuf.Duration ttl = 4; + */ + boolean hasTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.Duration getTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + } + /** + *
+   * Log information for the task that is specific to a log sink
+   * When our log story is flushed out, we may have more metadata here like log link expiry
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class TaskLog extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog) + TaskLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskLog.newBuilder() to construct. + private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskLog() { + uri_ = ""; + name_ = ""; + messageFormat_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskLog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + messageFormat_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (ttl_ != null) { + subBuilder = ttl_.toBuilder(); + } + ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ttl_); + ttl_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat} + */ + public enum MessageFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CSV = 1; + */ + CSV(1), + /** + * JSON = 2; + */ + JSON(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CSV = 1; + */ + public static final int CSV_VALUE = 1; + /** + * JSON = 2; + */ + public static final int JSON_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageFormat valueOf(int value) { + return forNumber(value); + } + + public static MessageFormat forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CSV; + case 2: return JSON; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MessageFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MessageFormat findValueByNumber(int number) { + return MessageFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0); + } + + private static final MessageFormat[] VALUES = values(); + + public static MessageFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MessageFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat) + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FORMAT_FIELD_NUMBER = 3; + private int messageFormat_; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + + public static final int TTL_FIELD_NUMBER = 4; + private com.google.protobuf.Duration ttl_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + return getTtl(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + output.writeEnum(3, messageFormat_); + } + if (ttl_ != null) { + output.writeMessage(4, getTtl()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, messageFormat_); + } + if (ttl_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTtl()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Execution.TaskLog)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (!getName() + .equals(other.getName())) return false; + if (messageFormat_ != other.messageFormat_) return false; + if (hasTtl() != other.hasTtl()) return false; + if (hasTtl()) { + if (!getTtl() + .equals(other.getTtl())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + messageFormat_; + if (hasTtl()) { + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.TaskLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Log information for the task that is specific to a log sink
+     * When our log story is flushed out, we may have more metadata here like log link expiry
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog) + flyteidl.core.Execution.TaskLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + name_ = ""; + + messageFormat_ = 0; + + if (ttlBuilder_ == null) { + ttl_ = null; + } else { + ttl_ = null; + ttlBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskLog.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog build() { + flyteidl.core.Execution.TaskLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog buildPartial() { + flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this); + result.uri_ = uri_; + result.name_ = name_; + result.messageFormat_ = messageFormat_; + if (ttlBuilder_ == null) { + result.ttl_ = ttl_; + } else { + result.ttl_ = ttlBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.TaskLog) { + return mergeFrom((flyteidl.core.Execution.TaskLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) { + if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.messageFormat_ != 0) { + setMessageFormatValue(other.getMessageFormatValue()); + } + if (other.hasTtl()) { + mergeTtl(other.getTtl()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.TaskLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int messageFormat_ = 0; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormatValue(int value) { + messageFormat_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + messageFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder clearMessageFormat() { + + messageFormat_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration ttl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttlBuilder_ != null || ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } else { + return ttlBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttl_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + ttl_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (ttl_ != null) { + ttl_ = + com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); + } else { + ttl_ = value; + } + onChanged(); + } else { + ttlBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + ttl_ = null; + onChanged(); + } else { + ttl_ = null; + ttlBuilder_ = null; + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + + onChanged(); + return getTtlFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (ttlBuilder_ != null) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + return ttl_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTtl(), + getParentForChildren(), + isClean()); + ttl_ = null; + } + return ttlBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskLog) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) + private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog(); + } + + public static flyteidl.core.Execution.TaskLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskLog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QualityOfServiceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfServiceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + boolean hasQueueingBudget(); + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + com.google.protobuf.Duration getQueueingBudget(); + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder(); + } + /** + *
+   * Represents customized execution run-time attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} + */ + public static final class QualityOfServiceSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfServiceSpec) + QualityOfServiceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityOfServiceSpec.newBuilder() to construct. + private QualityOfServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QualityOfServiceSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QualityOfServiceSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (queueingBudget_ != null) { + subBuilder = queueingBudget_.toBuilder(); + } + queueingBudget_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queueingBudget_); + queueingBudget_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); + } + + public static final int QUEUEING_BUDGET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration queueingBudget_; + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public boolean hasQueueingBudget() { + return queueingBudget_ != null; + } + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration getQueueingBudget() { + return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } + /** + *
+     * Indicates how much queueing delay an execution can tolerate.
+     * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { + return getQueueingBudget(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (queueingBudget_ != null) { + output.writeMessage(1, getQueueingBudget()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queueingBudget_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getQueueingBudget()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Execution.QualityOfServiceSpec)) { + return super.equals(obj); + } + flyteidl.core.Execution.QualityOfServiceSpec other = (flyteidl.core.Execution.QualityOfServiceSpec) obj; + + if (hasQueueingBudget() != other.hasQueueingBudget()) return false; + if (hasQueueingBudget()) { + if (!getQueueingBudget() + .equals(other.getQueueingBudget())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQueueingBudget()) { + hash = (37 * hash) + QUEUEING_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getQueueingBudget().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.QualityOfServiceSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents customized execution run-time attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfServiceSpec) + flyteidl.core.Execution.QualityOfServiceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); + } + + // Construct using flyteidl.core.Execution.QualityOfServiceSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (queueingBudgetBuilder_ == null) { + queueingBudget_ = null; + } else { + queueingBudget_ = null; + queueingBudgetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec build() { + flyteidl.core.Execution.QualityOfServiceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec buildPartial() { + flyteidl.core.Execution.QualityOfServiceSpec result = new flyteidl.core.Execution.QualityOfServiceSpec(this); + if (queueingBudgetBuilder_ == null) { + result.queueingBudget_ = queueingBudget_; + } else { + result.queueingBudget_ = queueingBudgetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.QualityOfServiceSpec) { + return mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.QualityOfServiceSpec other) { + if (other == flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) return this; + if (other.hasQueueingBudget()) { + mergeQueueingBudget(other.getQueueingBudget()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.QualityOfServiceSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.QualityOfServiceSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration queueingBudget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> queueingBudgetBuilder_; + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public boolean hasQueueingBudget() { + return queueingBudgetBuilder_ != null || queueingBudget_ != null; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration getQueueingBudget() { + if (queueingBudgetBuilder_ == null) { + return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } else { + return queueingBudgetBuilder_.getMessage(); + } + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder setQueueingBudget(com.google.protobuf.Duration value) { + if (queueingBudgetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queueingBudget_ = value; + onChanged(); + } else { + queueingBudgetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder setQueueingBudget( + com.google.protobuf.Duration.Builder builderForValue) { + if (queueingBudgetBuilder_ == null) { + queueingBudget_ = builderForValue.build(); + onChanged(); + } else { + queueingBudgetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder mergeQueueingBudget(com.google.protobuf.Duration value) { + if (queueingBudgetBuilder_ == null) { + if (queueingBudget_ != null) { + queueingBudget_ = + com.google.protobuf.Duration.newBuilder(queueingBudget_).mergeFrom(value).buildPartial(); + } else { + queueingBudget_ = value; + } + onChanged(); + } else { + queueingBudgetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public Builder clearQueueingBudget() { + if (queueingBudgetBuilder_ == null) { + queueingBudget_ = null; + onChanged(); + } else { + queueingBudget_ = null; + queueingBudgetBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.Duration.Builder getQueueingBudgetBuilder() { + + onChanged(); + return getQueueingBudgetFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { + if (queueingBudgetBuilder_ != null) { + return queueingBudgetBuilder_.getMessageOrBuilder(); + } else { + return queueingBudget_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; + } + } + /** + *
+       * Indicates how much queueing delay an execution can tolerate.
+       * 
+ * + * .google.protobuf.Duration queueing_budget = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getQueueingBudgetFieldBuilder() { + if (queueingBudgetBuilder_ == null) { + queueingBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getQueueingBudget(), + getParentForChildren(), + isClean()); + queueingBudget_ = null; + } + return queueingBudgetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.QualityOfServiceSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) + private static final flyteidl.core.Execution.QualityOfServiceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfServiceSpec(); + } + + public static flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityOfServiceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QualityOfServiceSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QualityOfServiceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfService) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + int getTierValue(); + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + flyteidl.core.Execution.QualityOfService.Tier getTier(); + + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + boolean hasSpec(); + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + flyteidl.core.Execution.QualityOfServiceSpec getSpec(); + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder(); + + public flyteidl.core.Execution.QualityOfService.DesignationCase getDesignationCase(); + } + /** + *
+   * Indicates the priority of an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfService} + */ + public static final class QualityOfService extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfService) + QualityOfServiceOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityOfService.newBuilder() to construct. + private QualityOfService(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QualityOfService() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QualityOfService( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + designationCase_ = 1; + designation_ = rawValue; + break; + } + case 18: { + flyteidl.core.Execution.QualityOfServiceSpec.Builder subBuilder = null; + if (designationCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.QualityOfServiceSpec) designation_).toBuilder(); + } + designation_ = + input.readMessage(flyteidl.core.Execution.QualityOfServiceSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec) designation_); + designation_ = subBuilder.buildPartial(); + } + designationCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.QualityOfService.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default: no quality of service specified.
+       * 
+ * + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * HIGH = 1; + */ + HIGH(1), + /** + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * LOW = 3; + */ + LOW(3), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default: no quality of service specified.
+       * 
+ * + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * HIGH = 1; + */ + public static final int HIGH_VALUE = 1; + /** + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + /** + * LOW = 3; + */ + public static final int LOW_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Tier valueOf(int value) { + return forNumber(value); + } + + public static Tier forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return HIGH; + case 2: return MEDIUM; + case 3: return LOW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.QualityOfService.getDescriptor().getEnumTypes().get(0); + } + + private static final Tier[] VALUES = values(); + + public static Tier valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.QualityOfService.Tier) + } + + private int designationCase_ = 0; + private java.lang.Object designation_; + public enum DesignationCase + implements com.google.protobuf.Internal.EnumLite { + TIER(1), + SPEC(2), + DESIGNATION_NOT_SET(0); + private final int value; + private DesignationCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DesignationCase valueOf(int value) { + return forNumber(value); + } + + public static DesignationCase forNumber(int value) { + switch (value) { + case 1: return TIER; + case 2: return SPEC; + case 0: return DESIGNATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DesignationCase + getDesignationCase() { + return DesignationCase.forNumber( + designationCase_); + } + + public static final int TIER_FIELD_NUMBER = 1; + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public int getTierValue() { + if (designationCase_ == 1) { + return (java.lang.Integer) designation_; + } + return 0; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public flyteidl.core.Execution.QualityOfService.Tier getTier() { + if (designationCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( + (java.lang.Integer) designation_); + return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; + } + return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; + } + + public static final int SPEC_FIELD_NUMBER = 2; + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public boolean hasSpec() { + return designationCase_ == 2; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (designationCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) designation_)); + } + if (designationCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (designationCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) designation_)); + } + if (designationCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Execution.QualityOfService)) { + return super.equals(obj); + } + flyteidl.core.Execution.QualityOfService other = (flyteidl.core.Execution.QualityOfService) obj; + + if (!getDesignationCase().equals(other.getDesignationCase())) return false; + switch (designationCase_) { + case 1: + if (getTierValue() + != other.getTierValue()) return false; + break; + case 2: + if (!getSpec() + .equals(other.getSpec())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (designationCase_) { + case 1: + hash = (37 * hash) + TIER_FIELD_NUMBER; + hash = (53 * hash) + getTierValue(); + break; + case 2: + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.QualityOfService parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.QualityOfService parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.QualityOfService prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Indicates the priority of an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.core.QualityOfService} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfService) + flyteidl.core.Execution.QualityOfServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); + } + + // Construct using flyteidl.core.Execution.QualityOfService.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + designationCase_ = 0; + designation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { + return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService build() { + flyteidl.core.Execution.QualityOfService result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService buildPartial() { + flyteidl.core.Execution.QualityOfService result = new flyteidl.core.Execution.QualityOfService(this); + if (designationCase_ == 1) { + result.designation_ = designation_; + } + if (designationCase_ == 2) { + if (specBuilder_ == null) { + result.designation_ = designation_; + } else { + result.designation_ = specBuilder_.build(); + } + } + result.designationCase_ = designationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.QualityOfService) { + return mergeFrom((flyteidl.core.Execution.QualityOfService)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.QualityOfService other) { + if (other == flyteidl.core.Execution.QualityOfService.getDefaultInstance()) return this; + switch (other.getDesignationCase()) { + case TIER: { + setTierValue(other.getTierValue()); + break; + } + case SPEC: { + mergeSpec(other.getSpec()); + break; + } + case DESIGNATION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.QualityOfService parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.QualityOfService) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int designationCase_ = 0; + private java.lang.Object designation_; + public DesignationCase + getDesignationCase() { + return DesignationCase.forNumber( + designationCase_); + } + + public Builder clearDesignation() { + designationCase_ = 0; + designation_ = null; + onChanged(); + return this; + } + + + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public int getTierValue() { + if (designationCase_ == 1) { + return ((java.lang.Integer) designation_).intValue(); + } + return 0; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder setTierValue(int value) { + designationCase_ = 1; + designation_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public flyteidl.core.Execution.QualityOfService.Tier getTier() { + if (designationCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( + (java.lang.Integer) designation_); + return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; + } + return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder setTier(flyteidl.core.Execution.QualityOfService.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + designationCase_ = 1; + designation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.QualityOfService.Tier tier = 1; + */ + public Builder clearTier() { + if (designationCase_ == 1) { + designationCase_ = 0; + designation_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> specBuilder_; + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public boolean hasSpec() { + return designationCase_ == 2; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { + if (specBuilder_ == null) { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } else { + if (designationCase_ == 2) { + return specBuilder_.getMessage(); + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder setSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + designation_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder setSpec( + flyteidl.core.Execution.QualityOfServiceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + designation_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { + if (specBuilder_ == null) { + if (designationCase_ == 2 && + designation_ != flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) { + designation_ = flyteidl.core.Execution.QualityOfServiceSpec.newBuilder((flyteidl.core.Execution.QualityOfServiceSpec) designation_) + .mergeFrom(value).buildPartial(); + } else { + designation_ = value; + } + onChanged(); + } else { + if (designationCase_ == 2) { + specBuilder_.mergeFrom(value); + } + specBuilder_.setMessage(value); + } + designationCase_ = 2; + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + if (designationCase_ == 2) { + designationCase_ = 0; + designation_ = null; + onChanged(); + } + } else { + if (designationCase_ == 2) { + designationCase_ = 0; + designation_ = null; + } + specBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpec.Builder getSpecBuilder() { + return getSpecFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { + if ((designationCase_ == 2) && (specBuilder_ != null)) { + return specBuilder_.getMessageOrBuilder(); + } else { + if (designationCase_ == 2) { + return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; + } + return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + } + /** + * .flyteidl.core.QualityOfServiceSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + if (!(designationCase_ == 2)) { + designation_ = flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); + } + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder>( + (flyteidl.core.Execution.QualityOfServiceSpec) designation_, + getParentForChildren(), + isClean()); + designation_ = null; + } + designationCase_ = 2; + onChanged();; + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.QualityOfService) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) + private static final flyteidl.core.Execution.QualityOfService DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfService(); + } + + public static flyteidl.core.Execution.QualityOfService getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityOfService parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QualityOfService(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ExecutionError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskLog_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_QualityOfService_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_QualityOfService_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/core/execution.proto\022\rflyteid" + + "l.core\032\036google/protobuf/duration.proto\"\247" + + "\001\n\021WorkflowExecution\"\221\001\n\005Phase\022\r\n\tUNDEFI" + + "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + + "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + + "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\022\014\n\010AB" + + "ORTING\020\t\"\266\001\n\rNodeExecution\"\244\001\n\005Phase\022\r\n\t" + + "UNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\t" + + "SUCCEEDED\020\003\022\013\n\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007" + + "ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\r\n\tTIMED_OUT\020\010\022\023\n" + + "\017DYNAMIC_RUNNING\020\t\022\r\n\tRECOVERED\020\n\"\226\001\n\rTa" + + "skExecution\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006" + + "QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007" + + "ABORTED\020\004\022\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022" + + "\031\n\025WAITING_FOR_RESOURCES\020\007\"\251\001\n\016Execution" + + "Error\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\t" + + "error_uri\030\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl" + + ".core.ExecutionError.ErrorKind\".\n\tErrorK" + + "ind\022\013\n\007UNKNOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273" + + "\001\n\007TaskLog\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n" + + "\016message_format\030\003 \001(\0162$.flyteidl.core.Ta" + + "skLog.MessageFormat\022&\n\003ttl\030\004 \001(\0132\031.googl" + + "e.protobuf.Duration\"/\n\rMessageFormat\022\013\n\007" + + "UNKNOWN\020\000\022\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityO" + + "fServiceSpec\0222\n\017queueing_budget\030\001 \001(\0132\031." + + "google.protobuf.Duration\"\302\001\n\020QualityOfSe" + + "rvice\0224\n\004tier\030\001 \001(\0162$.flyteidl.core.Qual" + + "ityOfService.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyt" + + "eidl.core.QualityOfServiceSpecH\000\"4\n\004Tier" + + "\022\r\n\tUNDEFINED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n" + + "\003LOW\020\003B\r\n\013designationB6Z4github.com/flyt" + + "eorg/flyteidl/gen/pb-go/flyteidl/coreb\006p" + + "roto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowExecution_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_ExecutionError_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ExecutionError_descriptor, + new java.lang.String[] { "Code", "Message", "ErrorUri", "Kind", }); + internal_static_flyteidl_core_TaskLog_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_TaskLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskLog_descriptor, + new java.lang.String[] { "Uri", "Name", "MessageFormat", "Ttl", }); + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_QualityOfServiceSpec_descriptor, + new java.lang.String[] { "QueueingBudget", }); + internal_static_flyteidl_core_QualityOfService_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_QualityOfService_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_QualityOfService_descriptor, + new java.lang.String[] { "Tier", "Spec", "Designation", }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/IdentifierOuterClass.java b/flyteidl/gen/pb-java/flyteidl/core/IdentifierOuterClass.java new file mode 100644 index 0000000000..c227de1f87 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/IdentifierOuterClass.java @@ -0,0 +1,4925 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +package flyteidl.core; + +public final class IdentifierOuterClass { + private IdentifierOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Indicates a resource type within Flyte.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.ResourceType} + */ + public enum ResourceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * TASK = 1; + */ + TASK(1), + /** + * WORKFLOW = 2; + */ + WORKFLOW(2), + /** + * LAUNCH_PLAN = 3; + */ + LAUNCH_PLAN(3), + /** + *
+     * A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.
+     * Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI  and CLI to act on the objects 
+     * in a similar manner to other Flyte objects
+     * 
+ * + * DATASET = 4; + */ + DATASET(4), + UNRECOGNIZED(-1), + ; + + /** + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * TASK = 1; + */ + public static final int TASK_VALUE = 1; + /** + * WORKFLOW = 2; + */ + public static final int WORKFLOW_VALUE = 2; + /** + * LAUNCH_PLAN = 3; + */ + public static final int LAUNCH_PLAN_VALUE = 3; + /** + *
+     * A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.
+     * Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI  and CLI to act on the objects 
+     * in a similar manner to other Flyte objects
+     * 
+ * + * DATASET = 4; + */ + public static final int DATASET_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceType valueOf(int value) { + return forNumber(value); + } + + public static ResourceType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return TASK; + case 2: return WORKFLOW; + case 3: return LAUNCH_PLAN; + case 4: return DATASET; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceType findValueByNumber(int number) { + return ResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceType[] VALUES = values(); + + public static ResourceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ResourceType) + } + + public interface IdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Identifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + java.lang.String getVersion(); + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + com.google.protobuf.ByteString + getVersionBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte resource.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Identifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Identifier) + IdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use Identifier.newBuilder() to construct. + private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Identifier() { + resourceType_ = 0; + project_ = ""; + domain_ = ""; + name_ = ""; + version_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Identifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Identifies the specific type of resource that this identifier corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object version_; + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.IdentifierOuterClass.Identifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.Identifier other = (flyteidl.core.IdentifierOuterClass.Identifier) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.Identifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte resource.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Identifier) + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.Identifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = 0; + + project_ = ""; + + domain_ = ""; + + name_ = ""; + + version_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier build() { + flyteidl.core.IdentifierOuterClass.Identifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier buildPartial() { + flyteidl.core.IdentifierOuterClass.Identifier result = new flyteidl.core.IdentifierOuterClass.Identifier(this); + result.resourceType_ = resourceType_; + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + result.version_ = version_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.Identifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.Identifier other) { + if (other == flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.Identifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.Identifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + @SuppressWarnings("deprecation") + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifier corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Identifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) + private static final flyteidl.core.IdentifierOuterClass.Identifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.Identifier(); + } + + public static flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Identifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Identifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class WorkflowExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecutionIdentifier) + WorkflowExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionIdentifier.newBuilder() to construct. + private WorkflowExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte node execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class NodeExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecutionIdentifier) + NodeExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionIdentifier.newBuilder() to construct. + private NodeExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionIdentifier() { + nodeId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (executionId_ != null) { + output.writeMessage(2, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecutionId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulation of fields that identify a Flyte node execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = ""; + + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(this); + result.nodeId_ = nodeId_; + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.NodeExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + boolean hasNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte task execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class TaskExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecutionIdentifier) + TaskExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionIdentifier.newBuilder() to construct. + private TaskExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionIdentifier() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + output.writeMessage(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) obj; + + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; + } + if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; + if (hasNodeExecutionId()) { + if (!getNodeExecutionId() + .equals(other.getNodeExecutionId())) return false; + } + if (getRetryAttempt() + != other.getRetryAttempt()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulation of fields that identify a Flyte task execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(this); + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SignalIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for a signal.
+     * 
+ * + * string signal_id = 1; + */ + java.lang.String getSignalId(); + /** + *
+     * Unique identifier for a signal.
+     * 
+ * + * string signal_id = 1; + */ + com.google.protobuf.ByteString + getSignalIdBytes(); + + /** + *
+     * Identifies the Flyte workflow execution this signal belongs to.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + boolean hasExecutionId(); + /** + *
+     * Identifies the Flyte workflow execution this signal belongs to.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + *
+     * Identifies the Flyte workflow execution this signal belongs to.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Encapsulation of fields the uniquely identify a signal.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SignalIdentifier} + */ + public static final class SignalIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SignalIdentifier) + SignalIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalIdentifier.newBuilder() to construct. + private SignalIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignalIdentifier() { + signalId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + signalId_ = s; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.SignalIdentifier.class, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder.class); + } + + public static final int SIGNAL_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object signalId_; + /** + *
+     * Unique identifier for a signal.
+     * 
+ * + * string signal_id = 1; + */ + public java.lang.String getSignalId() { + java.lang.Object ref = signalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signalId_ = s; + return s; + } + } + /** + *
+     * Unique identifier for a signal.
+     * 
+ * + * string signal_id = 1; + */ + public com.google.protobuf.ByteString + getSignalIdBytes() { + java.lang.Object ref = signalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + *
+     * Identifies the Flyte workflow execution this signal belongs to.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + *
+     * Identifies the Flyte workflow execution this signal belongs to.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + *
+     * Identifies the Flyte workflow execution this signal belongs to.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSignalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signalId_); + } + if (executionId_ != null) { + output.writeMessage(2, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSignalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signalId_); + } + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecutionId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.IdentifierOuterClass.SignalIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.SignalIdentifier other = (flyteidl.core.IdentifierOuterClass.SignalIdentifier) obj; + + if (!getSignalId() + .equals(other.getSignalId())) return false; + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getSignalId().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.SignalIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Encapsulation of fields the uniquely identify a signal.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SignalIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SignalIdentifier) + flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.SignalIdentifier.class, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.SignalIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signalId_ = ""; + + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_descriptor; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.SignalIdentifier build() { + flyteidl.core.IdentifierOuterClass.SignalIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.SignalIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.SignalIdentifier result = new flyteidl.core.IdentifierOuterClass.SignalIdentifier(this); + result.signalId_ = signalId_; + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.SignalIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.SignalIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.SignalIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance()) return this; + if (!other.getSignalId().isEmpty()) { + signalId_ = other.signalId_; + onChanged(); + } + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.SignalIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.SignalIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object signalId_ = ""; + /** + *
+       * Unique identifier for a signal.
+       * 
+ * + * string signal_id = 1; + */ + public java.lang.String getSignalId() { + java.lang.Object ref = signalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique identifier for a signal.
+       * 
+ * + * string signal_id = 1; + */ + public com.google.protobuf.ByteString + getSignalIdBytes() { + java.lang.Object ref = signalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique identifier for a signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder setSignalId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + signalId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique identifier for a signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder clearSignalId() { + + signalId_ = getDefaultInstance().getSignalId(); + onChanged(); + return this; + } + /** + *
+       * Unique identifier for a signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder setSignalIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + signalId_ = value; + onChanged(); + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + *
+       * Identifies the Flyte workflow execution this signal belongs to.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SignalIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SignalIdentifier) + private static final flyteidl.core.IdentifierOuterClass.SignalIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.SignalIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.SignalIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.IdentifierOuterClass.SignalIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Identifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Identifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SignalIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SignalIdentifier_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036flyteidl/core/identifier.proto\022\rflytei" + + "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + + "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + + "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + + "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + + "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + + "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + + "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + + "(\0132*.flyteidl.core.WorkflowExecutionIden" + + "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + + "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + + "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + + "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + + "pt\030\003 \001(\r\"g\n\020SignalIdentifier\022\021\n\tsignal_i" + + "d\030\001 \001(\t\022@\n\014execution_id\030\002 \001(\0132*.flyteidl" + + ".core.WorkflowExecutionIdentifier*U\n\014Res" + + "ourceType\022\017\n\013UNSPECIFIED\020\000\022\010\n\004TASK\020\001\022\014\n\010" + + "WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN\020\003\022\013\n\007DATASET\020\004" + + "B6Z4github.com/flyteorg/flyteidl/gen/pb-" + + "go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_core_Identifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Identifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Identifier_descriptor, + new java.lang.String[] { "ResourceType", "Project", "Domain", "Name", "Version", }); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor, + new java.lang.String[] { "NodeId", "ExecutionId", }); + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor, + new java.lang.String[] { "TaskId", "NodeExecutionId", "RetryAttempt", }); + internal_static_flyteidl_core_SignalIdentifier_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_SignalIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SignalIdentifier_descriptor, + new java.lang.String[] { "SignalId", "ExecutionId", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Interface.java b/flyteidl/gen/pb-java/flyteidl/core/Interface.java new file mode 100644 index 0000000000..6a267174bb --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Interface.java @@ -0,0 +1,4503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +package flyteidl.core; + +public final class Interface { + private Interface() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface VariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Variable) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + boolean hasType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Defines a strongly typed variable.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Variable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Variable) + VariableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Variable.newBuilder() to construct. + private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Variable() { + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Variable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != null) { + output.writeMessage(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Interface.Variable)) { + return super.equals(obj); + } + flyteidl.core.Interface.Variable other = (flyteidl.core.Interface.Variable) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!getDescription() + .equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.Variable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a strongly typed variable.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Variable) + flyteidl.core.Interface.VariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + // Construct using flyteidl.core.Interface.Variable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + description_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return flyteidl.core.Interface.Variable.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.Variable build() { + flyteidl.core.Interface.Variable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.Variable buildPartial() { + flyteidl.core.Interface.Variable result = new flyteidl.core.Interface.Variable(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + result.description_ = description_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.Variable) { + return mergeFrom((flyteidl.core.Interface.Variable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Variable other) { + if (other == flyteidl.core.Interface.Variable.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.Variable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Variable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Variable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) + private static final flyteidl.core.Interface.Variable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Variable(); + } + + public static flyteidl.core.Interface.Variable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Variable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Variable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VariableMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.VariableMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + int getVariablesCount(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + boolean containsVariables( + java.lang.String key); + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getVariables(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + java.util.Map + getVariablesMap(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Variables
+   * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class VariableMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.VariableMap) + VariableMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use VariableMap.newBuilder() to construct. + private VariableMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VariableMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VariableMap( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + variables__ = input.readMessage( + VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + variables_.getMutableMap().put( + variables__.getKey(), variables__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + private static final class VariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Variable> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Variable.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetVariables(), + VariablesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, variables__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Interface.VariableMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.VariableMap other = (flyteidl.core.Interface.VariableMap) obj; + + if (!internalGetVariables().equals( + other.internalGetVariables())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetVariables().getMap().isEmpty()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetVariables().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.VariableMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A map of Variables
+     * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.VariableMap) + flyteidl.core.Interface.VariableMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.VariableMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableVariables().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return flyteidl.core.Interface.VariableMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap build() { + flyteidl.core.Interface.VariableMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap buildPartial() { + flyteidl.core.Interface.VariableMap result = new flyteidl.core.Interface.VariableMap(this); + int from_bitField0_ = bitField0_; + result.variables_ = internalGetVariables(); + result.variables_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.VariableMap) { + return mergeFrom((flyteidl.core.Interface.VariableMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.VariableMap other) { + if (other == flyteidl.core.Interface.VariableMap.getDefaultInstance()) return this; + internalGetMutableVariables().mergeFrom( + other.internalGetVariables()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.VariableMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.VariableMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + private com.google.protobuf.MapField + internalGetMutableVariables() { + onChanged();; + if (variables_ == null) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + if (!variables_.isMutable()) { + variables_ = variables_.copy(); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearVariables() { + internalGetMutableVariables().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder removeVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableVariables() { + return internalGetMutableVariables().getMutableMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + public Builder putVariables( + java.lang.String key, + flyteidl.core.Interface.Variable value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder putAllVariables( + java.util.Map values) { + internalGetMutableVariables().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.VariableMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) + private static final flyteidl.core.Interface.VariableMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.VariableMap(); + } + + public static flyteidl.core.Interface.VariableMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VariableMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TypedInterfaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TypedInterface) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + boolean hasInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMap getInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder(); + + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + boolean hasOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMap getOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Defines strongly typed inputs and outputs.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class TypedInterface extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TypedInterface) + TypedInterfaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TypedInterface.newBuilder() to construct. + private TypedInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TypedInterface() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TypedInterface( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.core.Interface.VariableMap inputs_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.VariableMap outputs_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Interface.TypedInterface)) { + return super.equals(obj); + } + flyteidl.core.Interface.TypedInterface other = (flyteidl.core.Interface.TypedInterface) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.TypedInterface prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines strongly typed inputs and outputs.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TypedInterface) + flyteidl.core.Interface.TypedInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + // Construct using flyteidl.core.Interface.TypedInterface.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return flyteidl.core.Interface.TypedInterface.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface build() { + flyteidl.core.Interface.TypedInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface buildPartial() { + flyteidl.core.Interface.TypedInterface result = new flyteidl.core.Interface.TypedInterface(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.TypedInterface) { + return mergeFrom((flyteidl.core.Interface.TypedInterface)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.TypedInterface other) { + if (other == flyteidl.core.Interface.TypedInterface.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.TypedInterface parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.TypedInterface) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Interface.VariableMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> inputsBuilder_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder mergeInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TypedInterface) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) + private static final flyteidl.core.Interface.TypedInterface DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.TypedInterface(); + } + + public static flyteidl.core.Interface.TypedInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypedInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypedInterface(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Parameter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + boolean hasVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.Variable getVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder(); + + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + boolean hasDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.Literal getDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder(); + + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + boolean getRequired(); + + public flyteidl.core.Interface.Parameter.BehaviorCase getBehaviorCase(); + } + /** + *
+   * A parameter is used as input to a launch plan and has
+   * the special ability to have a default value or mark itself as required.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameter.newBuilder() to construct. + private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Parameter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Parameter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Interface.Variable.Builder subBuilder = null; + if (var_ != null) { + subBuilder = var_.toBuilder(); + } + var_ = input.readMessage(flyteidl.core.Interface.Variable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(var_); + var_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (behaviorCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Literal) behavior_).toBuilder(); + } + behavior_ = + input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Literal) behavior_); + behavior_ = subBuilder.buildPartial(); + } + behaviorCase_ = 2; + break; + } + case 24: { + behaviorCase_ = 3; + behavior_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public enum BehaviorCase + implements com.google.protobuf.Internal.EnumLite { + DEFAULT(2), + REQUIRED(3), + BEHAVIOR_NOT_SET(0); + private final int value; + private BehaviorCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BehaviorCase valueOf(int value) { + return forNumber(value); + } + + public static BehaviorCase forNumber(int value) { + switch (value) { + case 2: return DEFAULT; + case 3: return REQUIRED; + case 0: return BEHAVIOR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public static final int VAR_FIELD_NUMBER = 1; + private flyteidl.core.Interface.Variable var_; + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return var_ != null; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + return getVar(); + } + + public static final int DEFAULT_FIELD_NUMBER = 2; + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (var_ != null) { + output.writeMessage(1, getVar()); + } + if (behaviorCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + output.writeBool( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (var_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVar()); + } + if (behaviorCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Interface.Parameter)) { + return super.equals(obj); + } + flyteidl.core.Interface.Parameter other = (flyteidl.core.Interface.Parameter) obj; + + if (hasVar() != other.hasVar()) return false; + if (hasVar()) { + if (!getVar() + .equals(other.getVar())) return false; + } + if (!getBehaviorCase().equals(other.getBehaviorCase())) return false; + switch (behaviorCase_) { + case 2: + if (!getDefault() + .equals(other.getDefault())) return false; + break; + case 3: + if (getRequired() + != other.getRequired()) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVar()) { + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + } + switch (behaviorCase_) { + case 2: + hash = (37 * hash) + DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getDefault().hashCode(); + break; + case 3: + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.Parameter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A parameter is used as input to a launch plan and has
+     * the special ability to have a default value or mark itself as required.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Parameter) + flyteidl.core.Interface.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + // Construct using flyteidl.core.Interface.Parameter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (varBuilder_ == null) { + var_ = null; + } else { + var_ = null; + varBuilder_ = null; + } + behaviorCase_ = 0; + behavior_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return flyteidl.core.Interface.Parameter.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter build() { + flyteidl.core.Interface.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter buildPartial() { + flyteidl.core.Interface.Parameter result = new flyteidl.core.Interface.Parameter(this); + if (varBuilder_ == null) { + result.var_ = var_; + } else { + result.var_ = varBuilder_.build(); + } + if (behaviorCase_ == 2) { + if (defaultBuilder_ == null) { + result.behavior_ = behavior_; + } else { + result.behavior_ = defaultBuilder_.build(); + } + } + if (behaviorCase_ == 3) { + result.behavior_ = behavior_; + } + result.behaviorCase_ = behaviorCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.Parameter) { + return mergeFrom((flyteidl.core.Interface.Parameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Parameter other) { + if (other == flyteidl.core.Interface.Parameter.getDefaultInstance()) return this; + if (other.hasVar()) { + mergeVar(other.getVar()); + } + switch (other.getBehaviorCase()) { + case DEFAULT: { + mergeDefault(other.getDefault()); + break; + } + case REQUIRED: { + setRequired(other.getRequired()); + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.Parameter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Parameter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public Builder clearBehavior() { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.Interface.Variable var_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> varBuilder_; + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return varBuilder_ != null || var_ != null; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + if (varBuilder_ == null) { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } else { + return varBuilder_.getMessage(); + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + var_ = value; + onChanged(); + } else { + varBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar( + flyteidl.core.Interface.Variable.Builder builderForValue) { + if (varBuilder_ == null) { + var_ = builderForValue.build(); + onChanged(); + } else { + varBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder mergeVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (var_ != null) { + var_ = + flyteidl.core.Interface.Variable.newBuilder(var_).mergeFrom(value).buildPartial(); + } else { + var_ = value; + } + onChanged(); + } else { + varBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder clearVar() { + if (varBuilder_ == null) { + var_ = null; + onChanged(); + } else { + var_ = null; + varBuilder_ = null; + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable.Builder getVarBuilder() { + + onChanged(); + return getVarFieldBuilder().getBuilder(); + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + if (varBuilder_ != null) { + return varBuilder_.getMessageOrBuilder(); + } else { + return var_ == null ? + flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> + getVarFieldBuilder() { + if (varBuilder_ == null) { + varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder>( + getVar(), + getParentForChildren(), + isClean()); + var_ = null; + } + return varBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> defaultBuilder_; + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } else { + if (behaviorCase_ == 2) { + return defaultBuilder_.getMessage(); + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + behavior_ = value; + onChanged(); + } else { + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (defaultBuilder_ == null) { + behavior_ = builderForValue.build(); + onChanged(); + } else { + defaultBuilder_.setMessage(builderForValue.build()); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder mergeDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2 && + behavior_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { + behavior_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) behavior_) + .mergeFrom(value).buildPartial(); + } else { + behavior_ = value; + } + onChanged(); + } else { + if (behaviorCase_ == 2) { + defaultBuilder_.mergeFrom(value); + } + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder clearDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + } + } else { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + } + defaultBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal.Builder getDefaultBuilder() { + return getDefaultFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if ((behaviorCase_ == 2) && (defaultBuilder_ != null)) { + return defaultBuilder_.getMessageOrBuilder(); + } else { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getDefaultFieldBuilder() { + if (defaultBuilder_ == null) { + if (!(behaviorCase_ == 2)) { + behavior_ = flyteidl.core.Literals.Literal.getDefaultInstance(); + } + defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + (flyteidl.core.Literals.Literal) behavior_, + getParentForChildren(), + isClean()); + behavior_ = null; + } + behaviorCase_ = 2; + onChanged();; + return defaultBuilder_; + } + + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder setRequired(boolean value) { + behaviorCase_ = 3; + behavior_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder clearRequired() { + if (behaviorCase_ == 3) { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Parameter) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) + private static final flyteidl.core.Interface.Parameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Parameter(); + } + + public static flyteidl.core.Interface.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Parameter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ParameterMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + int getParametersCount(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + java.util.Map + getParametersMap(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Parameters.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class ParameterMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ParameterMap) + ParameterMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterMap.newBuilder() to construct. + private ParameterMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterMap( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameters_.getMutableMap().put( + parameters__.getKey(), parameters__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + public static final int PARAMETERS_FIELD_NUMBER = 1; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Parameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Parameter.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameters__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Interface.ParameterMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.ParameterMap other = (flyteidl.core.Interface.ParameterMap) obj; + + if (!internalGetParameters().equals( + other.internalGetParameters())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.ParameterMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A map of Parameters.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ParameterMap) + flyteidl.core.Interface.ParameterMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.ParameterMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableParameters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return flyteidl.core.Interface.ParameterMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap build() { + flyteidl.core.Interface.ParameterMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap buildPartial() { + flyteidl.core.Interface.ParameterMap result = new flyteidl.core.Interface.ParameterMap(this); + int from_bitField0_ = bitField0_; + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.ParameterMap) { + return mergeFrom((flyteidl.core.Interface.ParameterMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.ParameterMap other) { + if (other == flyteidl.core.Interface.ParameterMap.getDefaultInstance()) return this; + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.ParameterMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.ParameterMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + private com.google.protobuf.MapField + internalGetMutableParameters() { + onChanged();; + if (parameters_ == null) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + internalGetMutableParameters().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + return internalGetMutableParameters().getMutableMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + public Builder putParameters( + java.lang.String key, + flyteidl.core.Interface.Parameter value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder putAllParameters( + java.util.Map values) { + internalGetMutableParameters().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ParameterMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) + private static final flyteidl.core.Interface.ParameterMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.ParameterMap(); + } + + public static flyteidl.core.Interface.ParameterMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Variable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Variable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TypedInterface_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Parameter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Parameter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/core/interface.proto\022\rflyteid" + + "l.core\032\031flyteidl/core/types.proto\032\034flyte" + + "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + + "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + + "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + + "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + + "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + + "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + + "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + + "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + + "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + + ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + + "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + + "vior\"\234\001\n\014ParameterMap\022?\n\nparameters\030\001 \003(" + + "\0132+.flyteidl.core.ParameterMap.Parameter" + + "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + + "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + + "\0028\001B6Z4github.com/flyteorg/flyteidl/gen/" + + "pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Types.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Variable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Variable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Variable_descriptor, + new java.lang.String[] { "Type", "Description", }); + internal_static_flyteidl_core_VariableMap_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_VariableMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_descriptor, + new java.lang.String[] { "Variables", }); + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor = + internal_static_flyteidl_core_VariableMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_TypedInterface_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TypedInterface_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + internal_static_flyteidl_core_Parameter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_Parameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Parameter_descriptor, + new java.lang.String[] { "Var", "Default", "Required", "Behavior", }); + internal_static_flyteidl_core_ParameterMap_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_descriptor, + new java.lang.String[] { "Parameters", }); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor = + internal_static_flyteidl_core_ParameterMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + flyteidl.core.Types.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Literals.java b/flyteidl/gen/pb-java/flyteidl/core/Literals.java new file mode 100644 index 0000000000..619840edb9 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Literals.java @@ -0,0 +1,18693 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +package flyteidl.core; + +public final class Literals { + private Literals() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PrimitiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Primitive) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 integer = 1; + */ + long getInteger(); + + /** + * double float_value = 2; + */ + double getFloatValue(); + + /** + * string string_value = 3; + */ + java.lang.String getStringValue(); + /** + * string string_value = 3; + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + * bool boolean = 4; + */ + boolean getBoolean(); + + /** + * .google.protobuf.Timestamp datetime = 5; + */ + boolean hasDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.Timestamp getDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder(); + + /** + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + public flyteidl.core.Literals.Primitive.ValueCase getValueCase(); + } + /** + *
+   * Primitive Types
+   * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Primitive extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Primitive) + PrimitiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use Primitive.newBuilder() to construct. + private Primitive(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Primitive() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Primitive( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + valueCase_ = 1; + value_ = input.readInt64(); + break; + } + case 17: { + valueCase_ = 2; + value_ = input.readDouble(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } + case 32: { + valueCase_ = 4; + value_ = input.readBool(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((com.google.protobuf.Timestamp) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((com.google.protobuf.Duration) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + INTEGER(1), + FLOAT_VALUE(2), + STRING_VALUE(3), + BOOLEAN(4), + DATETIME(5), + DURATION(6), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return INTEGER; + case 2: return FLOAT_VALUE; + case 3: return STRING_VALUE; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int INTEGER_FIELD_NUMBER = 1; + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int FLOAT_VALUE_FIELD_NUMBER = 2; + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 3; + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOLEAN_FIELD_NUMBER = 4; + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + + public static final int DATETIME_FIELD_NUMBER = 5; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeInt64( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + output.writeDouble( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (valueCase_ == 4) { + output.writeBool( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Duration) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.protobuf.Duration) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Primitive)) { + return super.equals(obj); + } + flyteidl.core.Literals.Primitive other = (flyteidl.core.Literals.Primitive) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (getInteger() + != other.getInteger()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getFloatValue()) + != java.lang.Double.doubleToLongBits( + other.getFloatValue())) return false; + break; + case 3: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 4: + if (getBoolean() + != other.getBoolean()) return false; + break; + case 5: + if (!getDatetime() + .equals(other.getDatetime())) return false; + break; + case 6: + if (!getDuration() + .equals(other.getDuration())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + INTEGER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInteger()); + break; + case 2: + hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFloatValue())); + break; + case 3: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 4: + hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolean()); + break; + case 5: + hash = (37 * hash) + DATETIME_FIELD_NUMBER; + hash = (53 * hash) + getDatetime().hashCode(); + break; + case 6: + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Primitive prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Primitive Types
+     * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Primitive) + flyteidl.core.Literals.PrimitiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + // Construct using flyteidl.core.Literals.Primitive.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive build() { + flyteidl.core.Literals.Primitive result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive buildPartial() { + flyteidl.core.Literals.Primitive result = new flyteidl.core.Literals.Primitive(this); + if (valueCase_ == 1) { + result.value_ = value_; + } + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + if (valueCase_ == 5) { + if (datetimeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = datetimeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (durationBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = durationBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Primitive) { + return mergeFrom((flyteidl.core.Literals.Primitive)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Primitive other) { + if (other == flyteidl.core.Literals.Primitive.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case INTEGER: { + setInteger(other.getInteger()); + break; + } + case FLOAT_VALUE: { + setFloatValue(other.getFloatValue()); + break; + } + case STRING_VALUE: { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case BOOLEAN: { + setBoolean(other.getBoolean()); + break; + } + case DATETIME: { + mergeDatetime(other.getDatetime()); + break; + } + case DURATION: { + mergeDuration(other.getDuration()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Primitive parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Primitive) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * int64 integer = 1; + */ + public Builder setInteger(long value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + /** + * int64 integer = 1; + */ + public Builder clearInteger() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * double float_value = 2; + */ + public Builder setFloatValue(double value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * double float_value = 2; + */ + public Builder clearFloatValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string string_value = 3; + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * string string_value = 3; + */ + public Builder clearStringValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * string string_value = 3; + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + /** + * bool boolean = 4; + */ + public Builder setBoolean(boolean value) { + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * bool boolean = 4; + */ + public Builder clearBoolean() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datetimeBuilder_; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return datetimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (datetimeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + datetimeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder mergeDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + datetimeBuilder_.mergeFrom(value); + } + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder clearDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + datetimeBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp.Builder getDatetimeBuilder() { + return getDatetimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if ((valueCase_ == 5) && (datetimeBuilder_ != null)) { + return datetimeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDatetimeFieldBuilder() { + if (datetimeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + datetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return datetimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return durationBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (valueCase_ == 6 && + value_ != com.google.protobuf.Duration.getDefaultInstance()) { + value_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + durationBuilder_.mergeFrom(value); + } + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + durationBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + return getDurationFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if ((valueCase_ == 6) && (durationBuilder_ != null)) { + return durationBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = com.google.protobuf.Duration.getDefaultInstance(); + } + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return durationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Primitive) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) + private static final flyteidl.core.Literals.Primitive DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Primitive(); + } + + public static flyteidl.core.Literals.Primitive getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Primitive parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Primitive(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VoidOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Void) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+   * undefined since it can be assigned to a scalar of any LiteralType.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Void extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Void) + VoidOrBuilder { + private static final long serialVersionUID = 0L; + // Use Void.newBuilder() to construct. + private Void(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Void() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Void( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Void)) { + return super.equals(obj); + } + flyteidl.core.Literals.Void other = (flyteidl.core.Literals.Void) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Void prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+     * undefined since it can be assigned to a scalar of any LiteralType.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Void) + flyteidl.core.Literals.VoidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + // Construct using flyteidl.core.Literals.Void.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Void getDefaultInstanceForType() { + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Void build() { + flyteidl.core.Literals.Void result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Void buildPartial() { + flyteidl.core.Literals.Void result = new flyteidl.core.Literals.Void(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Void) { + return mergeFrom((flyteidl.core.Literals.Void)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Void other) { + if (other == flyteidl.core.Literals.Void.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Void parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Void) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Void) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Void) + private static final flyteidl.core.Literals.Void DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Void(); + } + + public static flyteidl.core.Literals.Void getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Void parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Void(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Void getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Blob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + boolean hasMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadata getMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder(); + + /** + * string uri = 3; + */ + java.lang.String getUri(); + /** + * string uri = 3; + */ + com.google.protobuf.ByteString + getUriBytes(); + } + /** + *
+   * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+   * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Blob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Blob() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Blob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.BlobMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Literals.BlobMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + public static final int METADATA_FIELD_NUMBER = 1; + private flyteidl.core.Literals.BlobMetadata metadata_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int URI_FIELD_NUMBER = 3; + private volatile java.lang.Object uri_; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (metadata_ != null) { + output.writeMessage(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Blob)) { + return super.equals(obj); + } + flyteidl.core.Literals.Blob other = (flyteidl.core.Literals.Blob) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getUri() + .equals(other.getUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Blob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+     * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Blob) + flyteidl.core.Literals.BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + // Construct using flyteidl.core.Literals.Blob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + uri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Blob build() { + flyteidl.core.Literals.Blob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Blob buildPartial() { + flyteidl.core.Literals.Blob result = new flyteidl.core.Literals.Blob(this); + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.uri_ = uri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Blob) { + return mergeFrom((flyteidl.core.Literals.Blob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Blob other) { + if (other == flyteidl.core.Literals.Blob.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Blob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Blob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.BlobMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> metadataBuilder_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata( + flyteidl.core.Literals.BlobMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder mergeMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Literals.BlobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 3; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Blob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) + private static final flyteidl.core.Literals.Blob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Blob(); + } + + public static flyteidl.core.Literals.Blob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobType type = 1; + */ + boolean hasType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobType getType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.BlobMetadata} + */ + public static final class BlobMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobMetadata) + BlobMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobMetadata.newBuilder() to construct. + private BlobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.BlobType type_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != null) { + output.writeMessage(1, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.BlobMetadata)) { + return super.equals(obj); + } + flyteidl.core.Literals.BlobMetadata other = (flyteidl.core.Literals.BlobMetadata) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BlobMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.BlobMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobMetadata) + flyteidl.core.Literals.BlobMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + // Construct using flyteidl.core.Literals.BlobMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return flyteidl.core.Literals.BlobMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata build() { + flyteidl.core.Literals.BlobMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata buildPartial() { + flyteidl.core.Literals.BlobMetadata result = new flyteidl.core.Literals.BlobMetadata(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BlobMetadata) { + return mergeFrom((flyteidl.core.Literals.BlobMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BlobMetadata other) { + if (other == flyteidl.core.Literals.BlobMetadata.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BlobMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BlobMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.BlobType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.BlobType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BlobMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) + private static final flyteidl.core.Literals.BlobMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BlobMetadata(); + } + + public static flyteidl.core.Literals.BlobMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlobMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BinaryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binary) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes value = 1; + */ + com.google.protobuf.ByteString getValue(); + + /** + * string tag = 2; + */ + java.lang.String getTag(); + /** + * string tag = 2; + */ + com.google.protobuf.ByteString + getTagBytes(); + } + /** + *
+   * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+   * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Binary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binary) + BinaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binary.newBuilder() to construct. + private Binary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binary() { + value_ = com.google.protobuf.ByteString.EMPTY; + tag_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binary( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + + value_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int TAG_FIELD_NUMBER = 2; + private volatile java.lang.Object tag_; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!value_.isEmpty()) { + output.writeBytes(1, value_); + } + if (!getTagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, value_); + } + if (!getTagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Binary)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binary other = (flyteidl.core.Literals.Binary) obj; + + if (!getValue() + .equals(other.getValue())) return false; + if (!getTag() + .equals(other.getTag())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Binary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+     * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binary) + flyteidl.core.Literals.BinaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = com.google.protobuf.ByteString.EMPTY; + + tag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Binary build() { + flyteidl.core.Literals.Binary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Binary buildPartial() { + flyteidl.core.Literals.Binary result = new flyteidl.core.Literals.Binary(this); + result.value_ = value_; + result.tag_ = tag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Binary) { + return mergeFrom((flyteidl.core.Literals.Binary)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binary other) { + if (other == flyteidl.core.Literals.Binary.getDefaultInstance()) return this; + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Binary parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binary) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 1; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private java.lang.Object tag_ = ""; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag = 2; + */ + public Builder setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tag_ = value; + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder clearTag() { + + tag_ = getDefaultInstance().getTag(); + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Binary) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) + private static final flyteidl.core.Literals.Binary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binary(); + } + + public static flyteidl.core.Literals.Binary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binary(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * .flyteidl.core.SchemaType type = 3; + */ + boolean hasType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaType getType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder(); + } + /** + *
+   * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schema() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 26: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private flyteidl.core.Types.SchemaType type_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (type_ != null) { + output.writeMessage(3, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getType()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Schema)) { + return super.equals(obj); + } + flyteidl.core.Literals.Schema other = (flyteidl.core.Literals.Schema) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Schema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Schema) + flyteidl.core.Literals.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + // Construct using flyteidl.core.Literals.Schema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Schema build() { + flyteidl.core.Literals.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Schema buildPartial() { + flyteidl.core.Literals.Schema result = new flyteidl.core.Literals.Schema(this); + result.uri_ = uri_; + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Schema) { + return mergeFrom((flyteidl.core.Literals.Schema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Schema other) { + if (other == flyteidl.core.Literals.Schema.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasType()) { + mergeType(other.getType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Schema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Schema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Types.SchemaType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder mergeType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.SchemaType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Schema) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) + private static final flyteidl.core.Literals.Schema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Schema(); + } + + public static flyteidl.core.Literals.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schema(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UnionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Union) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Literal value = 1; + */ + boolean hasValue(); + /** + * .flyteidl.core.Literal value = 1; + */ + flyteidl.core.Literals.Literal getValue(); + /** + * .flyteidl.core.Literal value = 1; + */ + flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); + + /** + * .flyteidl.core.LiteralType type = 2; + */ + boolean hasType(); + /** + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralType getType(); + /** + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + } + /** + *
+   * The runtime representation of a tagged union value. See `UnionType` for more details.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Union} + */ + public static final class Union extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Union) + UnionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Union.newBuilder() to construct. + private Union(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Union() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Union( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Union_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Union_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Union.class, flyteidl.core.Literals.Union.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private flyteidl.core.Literals.Literal value_; + /** + * .flyteidl.core.Literal value = 1; + */ + public boolean hasValue() { + return value_ != null; + } + /** + * .flyteidl.core.Literal value = 1; + */ + public flyteidl.core.Literals.Literal getValue() { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + /** + * .flyteidl.core.Literal value = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + return getValue(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private flyteidl.core.Types.LiteralType type_; + /** + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != null) { + output.writeMessage(1, getValue()); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getValue()); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Union)) { + return super.equals(obj); + } + flyteidl.core.Literals.Union other = (flyteidl.core.Literals.Union) obj; + + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Union parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Union parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Union parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Union parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Union parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Union parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Union parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Union parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Union parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Union parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Union parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Union parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Union prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The runtime representation of a tagged union value. See `UnionType` for more details.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Union} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Union) + flyteidl.core.Literals.UnionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Union_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Union_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Union.class, flyteidl.core.Literals.Union.Builder.class); + } + + // Construct using flyteidl.core.Literals.Union.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Union_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Union getDefaultInstanceForType() { + return flyteidl.core.Literals.Union.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Union build() { + flyteidl.core.Literals.Union result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Union buildPartial() { + flyteidl.core.Literals.Union result = new flyteidl.core.Literals.Union(this); + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Union) { + return mergeFrom((flyteidl.core.Literals.Union)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Union other) { + if (other == flyteidl.core.Literals.Union.getDefaultInstance()) return this; + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Union parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Union) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.Literal value_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; + /** + * .flyteidl.core.Literal value = 1; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * .flyteidl.core.Literal value = 1; + */ + public flyteidl.core.Literals.Literal getValue() { + if (valueBuilder_ == null) { + return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Literal value = 1; + */ + public Builder setValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 1; + */ + public Builder setValue( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 1; + */ + public Builder mergeValue(flyteidl.core.Literals.Literal value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Literal value = 1; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Literal value = 1; + */ + public flyteidl.core.Literals.Literal.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Literal value = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + flyteidl.core.Literals.Literal.getDefaultInstance() : value_; + } + } + /** + * .flyteidl.core.Literal value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.LiteralType type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Union) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Union) + private static final flyteidl.core.Literals.Union DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Union(); + } + + public static flyteidl.core.Literals.Union getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Union parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Union(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Union getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StructuredDatasetMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDatasetMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Bundle the type information along with the literal.
+     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+     * without any column information, but at run time, you might have that column information.
+     * flytekit python will copy this type information into the literal, from the type information, if not provided by
+     * the various plugins (encoders).
+     * Since this field is run time generated, it's not used for any type checking.
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + boolean hasStructuredDatasetType(); + /** + *
+     * Bundle the type information along with the literal.
+     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+     * without any column information, but at run time, you might have that column information.
+     * flytekit python will copy this type information into the literal, from the type information, if not provided by
+     * the various plugins (encoders).
+     * Since this field is run time generated, it's not used for any type checking.
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType(); + /** + *
+     * Bundle the type information along with the literal.
+     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+     * without any column information, but at run time, you might have that column information.
+     * flytekit python will copy this type information into the literal, from the type information, if not provided by
+     * the various plugins (encoders).
+     * Since this field is run time generated, it's not used for any type checking.
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.StructuredDatasetMetadata} + */ + public static final class StructuredDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDatasetMetadata) + StructuredDatasetMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructuredDatasetMetadata.newBuilder() to construct. + private StructuredDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructuredDatasetMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StructuredDatasetMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Types.StructuredDatasetType.Builder subBuilder = null; + if (structuredDatasetType_ != null) { + subBuilder = structuredDatasetType_.toBuilder(); + } + structuredDatasetType_ = input.readMessage(flyteidl.core.Types.StructuredDatasetType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(structuredDatasetType_); + structuredDatasetType_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.StructuredDatasetMetadata.class, flyteidl.core.Literals.StructuredDatasetMetadata.Builder.class); + } + + public static final int STRUCTURED_DATASET_TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.StructuredDatasetType structuredDatasetType_; + /** + *
+     * Bundle the type information along with the literal.
+     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+     * without any column information, but at run time, you might have that column information.
+     * flytekit python will copy this type information into the literal, from the type information, if not provided by
+     * the various plugins (encoders).
+     * Since this field is run time generated, it's not used for any type checking.
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public boolean hasStructuredDatasetType() { + return structuredDatasetType_ != null; + } + /** + *
+     * Bundle the type information along with the literal.
+     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+     * without any column information, but at run time, you might have that column information.
+     * flytekit python will copy this type information into the literal, from the type information, if not provided by
+     * the various plugins (encoders).
+     * Since this field is run time generated, it's not used for any type checking.
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { + return structuredDatasetType_ == null ? flyteidl.core.Types.StructuredDatasetType.getDefaultInstance() : structuredDatasetType_; + } + /** + *
+     * Bundle the type information along with the literal.
+     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+     * without any column information, but at run time, you might have that column information.
+     * flytekit python will copy this type information into the literal, from the type information, if not provided by
+     * the various plugins (encoders).
+     * Since this field is run time generated, it's not used for any type checking.
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { + return getStructuredDatasetType(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (structuredDatasetType_ != null) { + output.writeMessage(1, getStructuredDatasetType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (structuredDatasetType_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStructuredDatasetType()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.StructuredDatasetMetadata)) { + return super.equals(obj); + } + flyteidl.core.Literals.StructuredDatasetMetadata other = (flyteidl.core.Literals.StructuredDatasetMetadata) obj; + + if (hasStructuredDatasetType() != other.hasStructuredDatasetType()) return false; + if (hasStructuredDatasetType()) { + if (!getStructuredDatasetType() + .equals(other.getStructuredDatasetType())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStructuredDatasetType()) { + hash = (37 * hash) + STRUCTURED_DATASET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDatasetType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.StructuredDatasetMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.StructuredDatasetMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDatasetMetadata) + flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.StructuredDatasetMetadata.class, flyteidl.core.Literals.StructuredDatasetMetadata.Builder.class); + } + + // Construct using flyteidl.core.Literals.StructuredDatasetMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (structuredDatasetTypeBuilder_ == null) { + structuredDatasetType_ = null; + } else { + structuredDatasetType_ = null; + structuredDatasetTypeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDatasetMetadata getDefaultInstanceForType() { + return flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDatasetMetadata build() { + flyteidl.core.Literals.StructuredDatasetMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDatasetMetadata buildPartial() { + flyteidl.core.Literals.StructuredDatasetMetadata result = new flyteidl.core.Literals.StructuredDatasetMetadata(this); + if (structuredDatasetTypeBuilder_ == null) { + result.structuredDatasetType_ = structuredDatasetType_; + } else { + result.structuredDatasetType_ = structuredDatasetTypeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.StructuredDatasetMetadata) { + return mergeFrom((flyteidl.core.Literals.StructuredDatasetMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.StructuredDatasetMetadata other) { + if (other == flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance()) return this; + if (other.hasStructuredDatasetType()) { + mergeStructuredDatasetType(other.getStructuredDatasetType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.StructuredDatasetMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.StructuredDatasetMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.StructuredDatasetType structuredDatasetType_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> structuredDatasetTypeBuilder_; + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public boolean hasStructuredDatasetType() { + return structuredDatasetTypeBuilder_ != null || structuredDatasetType_ != null; + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { + if (structuredDatasetTypeBuilder_ == null) { + return structuredDatasetType_ == null ? flyteidl.core.Types.StructuredDatasetType.getDefaultInstance() : structuredDatasetType_; + } else { + return structuredDatasetTypeBuilder_.getMessage(); + } + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public Builder setStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { + if (structuredDatasetTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structuredDatasetType_ = value; + onChanged(); + } else { + structuredDatasetTypeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public Builder setStructuredDatasetType( + flyteidl.core.Types.StructuredDatasetType.Builder builderForValue) { + if (structuredDatasetTypeBuilder_ == null) { + structuredDatasetType_ = builderForValue.build(); + onChanged(); + } else { + structuredDatasetTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public Builder mergeStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { + if (structuredDatasetTypeBuilder_ == null) { + if (structuredDatasetType_ != null) { + structuredDatasetType_ = + flyteidl.core.Types.StructuredDatasetType.newBuilder(structuredDatasetType_).mergeFrom(value).buildPartial(); + } else { + structuredDatasetType_ = value; + } + onChanged(); + } else { + structuredDatasetTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public Builder clearStructuredDatasetType() { + if (structuredDatasetTypeBuilder_ == null) { + structuredDatasetType_ = null; + onChanged(); + } else { + structuredDatasetType_ = null; + structuredDatasetTypeBuilder_ = null; + } + + return this; + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.Builder getStructuredDatasetTypeBuilder() { + + onChanged(); + return getStructuredDatasetTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { + if (structuredDatasetTypeBuilder_ != null) { + return structuredDatasetTypeBuilder_.getMessageOrBuilder(); + } else { + return structuredDatasetType_ == null ? + flyteidl.core.Types.StructuredDatasetType.getDefaultInstance() : structuredDatasetType_; + } + } + /** + *
+       * Bundle the type information along with the literal.
+       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
+       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
+       * without any column information, but at run time, you might have that column information.
+       * flytekit python will copy this type information into the literal, from the type information, if not provided by
+       * the various plugins (encoders).
+       * Since this field is run time generated, it's not used for any type checking.
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> + getStructuredDatasetTypeFieldBuilder() { + if (structuredDatasetTypeBuilder_ == null) { + structuredDatasetTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder>( + getStructuredDatasetType(), + getParentForChildren(), + isClean()); + structuredDatasetType_ = null; + } + return structuredDatasetTypeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.StructuredDatasetMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetMetadata) + private static final flyteidl.core.Literals.StructuredDatasetMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.StructuredDatasetMetadata(); + } + + public static flyteidl.core.Literals.StructuredDatasetMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructuredDatasetMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDatasetMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StructuredDatasetOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDataset) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * String location uniquely identifying where the data is.
+     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+     * 
+ * + * string uri = 1; + */ + java.lang.String getUri(); + /** + *
+     * String location uniquely identifying where the data is.
+     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+     * 
+ * + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + flyteidl.core.Literals.StructuredDatasetMetadata getMetadata(); + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder getMetadataOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.StructuredDataset} + */ + public static final class StructuredDataset extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDataset) + StructuredDatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructuredDataset.newBuilder() to construct. + private StructuredDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructuredDataset() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StructuredDataset( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 18: { + flyteidl.core.Literals.StructuredDatasetMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Literals.StructuredDatasetMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.StructuredDataset.class, flyteidl.core.Literals.StructuredDataset.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + *
+     * String location uniquely identifying where the data is.
+     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+     * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + *
+     * String location uniquely identifying where the data is.
+     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+     * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Literals.StructuredDatasetMetadata metadata_; + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public flyteidl.core.Literals.StructuredDatasetMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance() : metadata_; + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.StructuredDataset)) { + return super.equals(obj); + } + flyteidl.core.Literals.StructuredDataset other = (flyteidl.core.Literals.StructuredDataset) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.StructuredDataset parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.StructuredDataset parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.StructuredDataset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.StructuredDataset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.StructuredDataset} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDataset) + flyteidl.core.Literals.StructuredDatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.StructuredDataset.class, flyteidl.core.Literals.StructuredDataset.Builder.class); + } + + // Construct using flyteidl.core.Literals.StructuredDataset.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uri_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDataset getDefaultInstanceForType() { + return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDataset build() { + flyteidl.core.Literals.StructuredDataset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDataset buildPartial() { + flyteidl.core.Literals.StructuredDataset result = new flyteidl.core.Literals.StructuredDataset(this); + result.uri_ = uri_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.StructuredDataset) { + return mergeFrom((flyteidl.core.Literals.StructuredDataset)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.StructuredDataset other) { + if (other == flyteidl.core.Literals.StructuredDataset.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.StructuredDataset parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.StructuredDataset) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + *
+       * String location uniquely identifying where the data is.
+       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+       * 
+ * + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String location uniquely identifying where the data is.
+       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+       * 
+ * + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String location uniquely identifying where the data is.
+       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+       * 
+ * + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + *
+       * String location uniquely identifying where the data is.
+       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+       * 
+ * + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + *
+       * String location uniquely identifying where the data is.
+       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
+       * 
+ * + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Literals.StructuredDatasetMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.StructuredDatasetMetadata, flyteidl.core.Literals.StructuredDatasetMetadata.Builder, flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder> metadataBuilder_; + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public flyteidl.core.Literals.StructuredDatasetMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Literals.StructuredDatasetMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Literals.StructuredDatasetMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Literals.StructuredDatasetMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Literals.StructuredDatasetMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public flyteidl.core.Literals.StructuredDatasetMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + public flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.StructuredDatasetMetadata, flyteidl.core.Literals.StructuredDatasetMetadata.Builder, flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.StructuredDatasetMetadata, flyteidl.core.Literals.StructuredDatasetMetadata.Builder, flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.StructuredDataset) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDataset) + private static final flyteidl.core.Literals.StructuredDataset DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.StructuredDataset(); + } + + public static flyteidl.core.Literals.StructuredDataset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructuredDataset(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.StructuredDataset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScalarOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Scalar) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Primitive primitive = 1; + */ + boolean hasPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.Primitive getPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + * .flyteidl.core.Blob blob = 2; + */ + boolean hasBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.Blob getBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder(); + + /** + * .flyteidl.core.Binary binary = 3; + */ + boolean hasBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.Binary getBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder(); + + /** + * .flyteidl.core.Schema schema = 4; + */ + boolean hasSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.Schema getSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * .flyteidl.core.Void none_type = 5; + */ + boolean hasNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.Void getNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder(); + + /** + * .flyteidl.core.Error error = 6; + */ + boolean hasError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.Error getError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + /** + * .google.protobuf.Struct generic = 7; + */ + boolean hasGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.Struct getGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.StructOrBuilder getGenericOrBuilder(); + + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + boolean hasStructuredDataset(); + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + flyteidl.core.Literals.StructuredDataset getStructuredDataset(); + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + flyteidl.core.Literals.StructuredDatasetOrBuilder getStructuredDatasetOrBuilder(); + + /** + * .flyteidl.core.Union union = 9; + */ + boolean hasUnion(); + /** + * .flyteidl.core.Union union = 9; + */ + flyteidl.core.Literals.Union getUnion(); + /** + * .flyteidl.core.Union union = 9; + */ + flyteidl.core.Literals.UnionOrBuilder getUnionOrBuilder(); + + public flyteidl.core.Literals.Scalar.ValueCase getValueCase(); + } + /** + * Protobuf type {@code flyteidl.core.Scalar} + */ + public static final class Scalar extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Scalar) + ScalarOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scalar.newBuilder() to construct. + private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Scalar() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Scalar( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.Blob.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Blob) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Blob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Blob) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.Binary.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.Binary) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Binary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Binary) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.Schema.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.Schema) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Schema) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + flyteidl.core.Literals.Void.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((flyteidl.core.Literals.Void) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Void.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Void) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((flyteidl.core.Types.Error) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 58: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (valueCase_ == 7) { + subBuilder = ((com.google.protobuf.Struct) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Struct) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 7; + break; + } + case 66: { + flyteidl.core.Literals.StructuredDataset.Builder subBuilder = null; + if (valueCase_ == 8) { + subBuilder = ((flyteidl.core.Literals.StructuredDataset) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.StructuredDataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.StructuredDataset) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 8; + break; + } + case 74: { + flyteidl.core.Literals.Union.Builder subBuilder = null; + if (valueCase_ == 9) { + subBuilder = ((flyteidl.core.Literals.Union) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Union.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Union) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 9; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + PRIMITIVE(1), + BLOB(2), + BINARY(3), + SCHEMA(4), + NONE_TYPE(5), + ERROR(6), + GENERIC(7), + STRUCTURED_DATASET(8), + UNION(9), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return BLOB; + case 3: return BINARY; + case 4: return SCHEMA; + case 5: return NONE_TYPE; + case 6: return ERROR; + case 7: return GENERIC; + case 8: return STRUCTURED_DATASET; + case 9: return UNION; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 2; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + public static final int BINARY_FIELD_NUMBER = 3; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + public static final int SCHEMA_FIELD_NUMBER = 4; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + public static final int NONE_TYPE_FIELD_NUMBER = 5; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + public static final int GENERIC_FIELD_NUMBER = 7; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int STRUCTURED_DATASET_FIELD_NUMBER = 8; + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public boolean hasStructuredDataset() { + return valueCase_ == 8; + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public flyteidl.core.Literals.StructuredDataset getStructuredDataset() { + if (valueCase_ == 8) { + return (flyteidl.core.Literals.StructuredDataset) value_; + } + return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public flyteidl.core.Literals.StructuredDatasetOrBuilder getStructuredDatasetOrBuilder() { + if (valueCase_ == 8) { + return (flyteidl.core.Literals.StructuredDataset) value_; + } + return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); + } + + public static final int UNION_FIELD_NUMBER = 9; + /** + * .flyteidl.core.Union union = 9; + */ + public boolean hasUnion() { + return valueCase_ == 9; + } + /** + * .flyteidl.core.Union union = 9; + */ + public flyteidl.core.Literals.Union getUnion() { + if (valueCase_ == 9) { + return (flyteidl.core.Literals.Union) value_; + } + return flyteidl.core.Literals.Union.getDefaultInstance(); + } + /** + * .flyteidl.core.Union union = 9; + */ + public flyteidl.core.Literals.UnionOrBuilder getUnionOrBuilder() { + if (valueCase_ == 9) { + return (flyteidl.core.Literals.Union) value_; + } + return flyteidl.core.Literals.Union.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (com.google.protobuf.Struct) value_); + } + if (valueCase_ == 8) { + output.writeMessage(8, (flyteidl.core.Literals.StructuredDataset) value_); + } + if (valueCase_ == 9) { + output.writeMessage(9, (flyteidl.core.Literals.Union) value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.protobuf.Struct) value_); + } + if (valueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.core.Literals.StructuredDataset) value_); + } + if (valueCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (flyteidl.core.Literals.Union) value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Scalar)) { + return super.equals(obj); + } + flyteidl.core.Literals.Scalar other = (flyteidl.core.Literals.Scalar) obj; + + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getPrimitive() + .equals(other.getPrimitive())) return false; + break; + case 2: + if (!getBlob() + .equals(other.getBlob())) return false; + break; + case 3: + if (!getBinary() + .equals(other.getBinary())) return false; + break; + case 4: + if (!getSchema() + .equals(other.getSchema())) return false; + break; + case 5: + if (!getNoneType() + .equals(other.getNoneType())) return false; + break; + case 6: + if (!getError() + .equals(other.getError())) return false; + break; + case 7: + if (!getGeneric() + .equals(other.getGeneric())) return false; + break; + case 8: + if (!getStructuredDataset() + .equals(other.getStructuredDataset())) return false; + break; + case 9: + if (!getUnion() + .equals(other.getUnion())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 3: + hash = (37 * hash) + BINARY_FIELD_NUMBER; + hash = (53 * hash) + getBinary().hashCode(); + break; + case 4: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 5: + hash = (37 * hash) + NONE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getNoneType().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 7: + hash = (37 * hash) + GENERIC_FIELD_NUMBER; + hash = (53 * hash) + getGeneric().hashCode(); + break; + case 8: + hash = (37 * hash) + STRUCTURED_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDataset().hashCode(); + break; + case 9: + hash = (37 * hash) + UNION_FIELD_NUMBER; + hash = (53 * hash) + getUnion().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Scalar prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.Scalar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Scalar) + flyteidl.core.Literals.ScalarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + // Construct using flyteidl.core.Literals.Scalar.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar build() { + flyteidl.core.Literals.Scalar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar buildPartial() { + flyteidl.core.Literals.Scalar result = new flyteidl.core.Literals.Scalar(this); + if (valueCase_ == 1) { + if (primitiveBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = primitiveBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (blobBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blobBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (binaryBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = binaryBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (schemaBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = schemaBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (noneTypeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = noneTypeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (errorBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = errorBuilder_.build(); + } + } + if (valueCase_ == 7) { + if (genericBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = genericBuilder_.build(); + } + } + if (valueCase_ == 8) { + if (structuredDatasetBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = structuredDatasetBuilder_.build(); + } + } + if (valueCase_ == 9) { + if (unionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = unionBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Scalar) { + return mergeFrom((flyteidl.core.Literals.Scalar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Scalar other) { + if (other == flyteidl.core.Literals.Scalar.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case BINARY: { + mergeBinary(other.getBinary()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case NONE_TYPE: { + mergeNoneType(other.getNoneType()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case GENERIC: { + mergeGeneric(other.getGeneric()); + break; + } + case STRUCTURED_DATASET: { + mergeStructuredDataset(other.getStructuredDataset()); + break; + } + case UNION: { + mergeUnion(other.getUnion()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Scalar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Scalar) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valueCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> blobBuilder_; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob( + flyteidl.core.Literals.Blob.Builder builderForValue) { + if (blobBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder mergeBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.Blob.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Blob.newBuilder((flyteidl.core.Literals.Blob) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if ((valueCase_ == 2) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.Blob.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder>( + (flyteidl.core.Literals.Blob) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> binaryBuilder_; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return binaryBuilder_.getMessage(); + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary( + flyteidl.core.Literals.Binary.Builder builderForValue) { + if (binaryBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + binaryBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder mergeBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.Binary.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Binary.newBuilder((flyteidl.core.Literals.Binary) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + binaryBuilder_.mergeFrom(value); + } + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder clearBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + binaryBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary.Builder getBinaryBuilder() { + return getBinaryFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if ((valueCase_ == 3) && (binaryBuilder_ != null)) { + return binaryBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> + getBinaryFieldBuilder() { + if (binaryBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.Binary.getDefaultInstance(); + } + binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder>( + (flyteidl.core.Literals.Binary) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return binaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> schemaBuilder_; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema( + flyteidl.core.Literals.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder mergeSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.Schema.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Schema.newBuilder((flyteidl.core.Literals.Schema) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if ((valueCase_ == 4) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.Schema.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder>( + (flyteidl.core.Literals.Schema) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> noneTypeBuilder_; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return noneTypeBuilder_.getMessage(); + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType( + flyteidl.core.Literals.Void.Builder builderForValue) { + if (noneTypeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + noneTypeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder mergeNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != flyteidl.core.Literals.Void.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Void.newBuilder((flyteidl.core.Literals.Void) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + noneTypeBuilder_.mergeFrom(value); + } + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder clearNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + noneTypeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void.Builder getNoneTypeBuilder() { + return getNoneTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if ((valueCase_ == 5) && (noneTypeBuilder_ != null)) { + return noneTypeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> + getNoneTypeFieldBuilder() { + if (noneTypeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = flyteidl.core.Literals.Void.getDefaultInstance(); + } + noneTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder>( + (flyteidl.core.Literals.Void) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return noneTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (valueCase_ == 6 && + value_ != flyteidl.core.Types.Error.getDefaultInstance()) { + value_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((valueCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> genericBuilder_; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return genericBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric( + com.google.protobuf.Struct.Builder builderForValue) { + if (genericBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + genericBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder mergeGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (valueCase_ == 7 && + value_ != com.google.protobuf.Struct.getDefaultInstance()) { + value_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + genericBuilder_.mergeFrom(value); + } + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder clearGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + genericBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct.Builder getGenericBuilder() { + return getGenericFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if ((valueCase_ == 7) && (genericBuilder_ != null)) { + return genericBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getGenericFieldBuilder() { + if (genericBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = com.google.protobuf.Struct.getDefaultInstance(); + } + genericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged();; + return genericBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.StructuredDataset, flyteidl.core.Literals.StructuredDataset.Builder, flyteidl.core.Literals.StructuredDatasetOrBuilder> structuredDatasetBuilder_; + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public boolean hasStructuredDataset() { + return valueCase_ == 8; + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public flyteidl.core.Literals.StructuredDataset getStructuredDataset() { + if (structuredDatasetBuilder_ == null) { + if (valueCase_ == 8) { + return (flyteidl.core.Literals.StructuredDataset) value_; + } + return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); + } else { + if (valueCase_ == 8) { + return structuredDatasetBuilder_.getMessage(); + } + return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); + } + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public Builder setStructuredDataset(flyteidl.core.Literals.StructuredDataset value) { + if (structuredDatasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + structuredDatasetBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public Builder setStructuredDataset( + flyteidl.core.Literals.StructuredDataset.Builder builderForValue) { + if (structuredDatasetBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + structuredDatasetBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 8; + return this; + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public Builder mergeStructuredDataset(flyteidl.core.Literals.StructuredDataset value) { + if (structuredDatasetBuilder_ == null) { + if (valueCase_ == 8 && + value_ != flyteidl.core.Literals.StructuredDataset.getDefaultInstance()) { + value_ = flyteidl.core.Literals.StructuredDataset.newBuilder((flyteidl.core.Literals.StructuredDataset) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 8) { + structuredDatasetBuilder_.mergeFrom(value); + } + structuredDatasetBuilder_.setMessage(value); + } + valueCase_ = 8; + return this; + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public Builder clearStructuredDataset() { + if (structuredDatasetBuilder_ == null) { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 8) { + valueCase_ = 0; + value_ = null; + } + structuredDatasetBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public flyteidl.core.Literals.StructuredDataset.Builder getStructuredDatasetBuilder() { + return getStructuredDatasetFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + public flyteidl.core.Literals.StructuredDatasetOrBuilder getStructuredDatasetOrBuilder() { + if ((valueCase_ == 8) && (structuredDatasetBuilder_ != null)) { + return structuredDatasetBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 8) { + return (flyteidl.core.Literals.StructuredDataset) value_; + } + return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); + } + } + /** + * .flyteidl.core.StructuredDataset structured_dataset = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.StructuredDataset, flyteidl.core.Literals.StructuredDataset.Builder, flyteidl.core.Literals.StructuredDatasetOrBuilder> + getStructuredDatasetFieldBuilder() { + if (structuredDatasetBuilder_ == null) { + if (!(valueCase_ == 8)) { + value_ = flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); + } + structuredDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.StructuredDataset, flyteidl.core.Literals.StructuredDataset.Builder, flyteidl.core.Literals.StructuredDatasetOrBuilder>( + (flyteidl.core.Literals.StructuredDataset) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 8; + onChanged();; + return structuredDatasetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Union, flyteidl.core.Literals.Union.Builder, flyteidl.core.Literals.UnionOrBuilder> unionBuilder_; + /** + * .flyteidl.core.Union union = 9; + */ + public boolean hasUnion() { + return valueCase_ == 9; + } + /** + * .flyteidl.core.Union union = 9; + */ + public flyteidl.core.Literals.Union getUnion() { + if (unionBuilder_ == null) { + if (valueCase_ == 9) { + return (flyteidl.core.Literals.Union) value_; + } + return flyteidl.core.Literals.Union.getDefaultInstance(); + } else { + if (valueCase_ == 9) { + return unionBuilder_.getMessage(); + } + return flyteidl.core.Literals.Union.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Union union = 9; + */ + public Builder setUnion(flyteidl.core.Literals.Union value) { + if (unionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + unionBuilder_.setMessage(value); + } + valueCase_ = 9; + return this; + } + /** + * .flyteidl.core.Union union = 9; + */ + public Builder setUnion( + flyteidl.core.Literals.Union.Builder builderForValue) { + if (unionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + unionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 9; + return this; + } + /** + * .flyteidl.core.Union union = 9; + */ + public Builder mergeUnion(flyteidl.core.Literals.Union value) { + if (unionBuilder_ == null) { + if (valueCase_ == 9 && + value_ != flyteidl.core.Literals.Union.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Union.newBuilder((flyteidl.core.Literals.Union) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 9) { + unionBuilder_.mergeFrom(value); + } + unionBuilder_.setMessage(value); + } + valueCase_ = 9; + return this; + } + /** + * .flyteidl.core.Union union = 9; + */ + public Builder clearUnion() { + if (unionBuilder_ == null) { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 9) { + valueCase_ = 0; + value_ = null; + } + unionBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Union union = 9; + */ + public flyteidl.core.Literals.Union.Builder getUnionBuilder() { + return getUnionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Union union = 9; + */ + public flyteidl.core.Literals.UnionOrBuilder getUnionOrBuilder() { + if ((valueCase_ == 9) && (unionBuilder_ != null)) { + return unionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 9) { + return (flyteidl.core.Literals.Union) value_; + } + return flyteidl.core.Literals.Union.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Union union = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Union, flyteidl.core.Literals.Union.Builder, flyteidl.core.Literals.UnionOrBuilder> + getUnionFieldBuilder() { + if (unionBuilder_ == null) { + if (!(valueCase_ == 9)) { + value_ = flyteidl.core.Literals.Union.getDefaultInstance(); + } + unionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Union, flyteidl.core.Literals.Union.Builder, flyteidl.core.Literals.UnionOrBuilder>( + (flyteidl.core.Literals.Union) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 9; + onChanged();; + return unionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Scalar) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) + private static final flyteidl.core.Literals.Scalar DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Scalar(); + } + + public static flyteidl.core.Literals.Scalar getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scalar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Scalar(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Literal) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollection getCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + boolean hasMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMap getMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder(); + + /** + *
+     * A hash representing this literal.
+     * This is used for caching purposes. For more details refer to RFC 1893
+     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+     * 
+ * + * string hash = 4; + */ + java.lang.String getHash(); + /** + *
+     * A hash representing this literal.
+     * This is used for caching purposes. For more details refer to RFC 1893
+     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+     * 
+ * + * string hash = 4; + */ + com.google.protobuf.ByteString + getHashBytes(); + + public flyteidl.core.Literals.Literal.ValueCase getValueCase(); + } + /** + *
+   * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Literal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Literal) + LiteralOrBuilder { + private static final long serialVersionUID = 0L; + // Use Literal.newBuilder() to construct. + private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Literal() { + hash_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Literal( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.LiteralCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.LiteralCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + hash_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + MAP(3), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 3; + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int HASH_FIELD_NUMBER = 4; + private volatile java.lang.Object hash_; + /** + *
+     * A hash representing this literal.
+     * This is used for caching purposes. For more details refer to RFC 1893
+     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+     * 
+ * + * string hash = 4; + */ + public java.lang.String getHash() { + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } + } + /** + *
+     * A hash representing this literal.
+     * This is used for caching purposes. For more details refer to RFC 1893
+     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+     * 
+ * + * string hash = 4; + */ + public com.google.protobuf.ByteString + getHashBytes() { + java.lang.Object ref = hash_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.LiteralMap) value_); + } + if (!getHashBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hash_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.LiteralMap) value_); + } + if (!getHashBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hash_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Literal)) { + return super.equals(obj); + } + flyteidl.core.Literals.Literal other = (flyteidl.core.Literals.Literal) obj; + + if (!getHash() + .equals(other.getHash())) return false; + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getScalar() + .equals(other.getScalar())) return false; + break; + case 2: + if (!getCollection() + .equals(other.getCollection())) return false; + break; + case 3: + if (!getMap() + .equals(other.getMap())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HASH_FIELD_NUMBER; + hash = (53 * hash) + getHash().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Literal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Literal) + flyteidl.core.Literals.LiteralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + // Construct using flyteidl.core.Literals.Literal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hash_ = ""; + + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Literal build() { + flyteidl.core.Literals.Literal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Literal buildPartial() { + flyteidl.core.Literals.Literal result = new flyteidl.core.Literals.Literal(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + result.hash_ = hash_; + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Literal) { + return mergeFrom((flyteidl.core.Literals.Literal)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Literal other) { + if (other == flyteidl.core.Literals.Literal.getDefaultInstance()) return this; + if (!other.getHash().isEmpty()) { + hash_ = other.hash_; + onChanged(); + } + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Literal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Literal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.LiteralCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralCollection.newBuilder((flyteidl.core.Literals.LiteralCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder>( + (flyteidl.core.Literals.LiteralCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> mapBuilder_; + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder mergeMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 3) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return mapBuilder_; + } + + private java.lang.Object hash_ = ""; + /** + *
+       * A hash representing this literal.
+       * This is used for caching purposes. For more details refer to RFC 1893
+       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+       * 
+ * + * string hash = 4; + */ + public java.lang.String getHash() { + java.lang.Object ref = hash_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hash_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A hash representing this literal.
+       * This is used for caching purposes. For more details refer to RFC 1893
+       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+       * 
+ * + * string hash = 4; + */ + public com.google.protobuf.ByteString + getHashBytes() { + java.lang.Object ref = hash_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hash_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A hash representing this literal.
+       * This is used for caching purposes. For more details refer to RFC 1893
+       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+       * 
+ * + * string hash = 4; + */ + public Builder setHash( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hash_ = value; + onChanged(); + return this; + } + /** + *
+       * A hash representing this literal.
+       * This is used for caching purposes. For more details refer to RFC 1893
+       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+       * 
+ * + * string hash = 4; + */ + public Builder clearHash() { + + hash_ = getDefaultInstance().getHash(); + onChanged(); + return this; + } + /** + *
+       * A hash representing this literal.
+       * This is used for caching purposes. For more details refer to RFC 1893
+       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
+       * 
+ * + * string hash = 4; + */ + public Builder setHashBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hash_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Literal) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) + private static final flyteidl.core.Literals.Literal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Literal(); + } + + public static flyteidl.core.Literals.Literal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Literal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Literal(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.Literal getLiterals(int index); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + int getLiteralsCount(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsOrBuilderList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index); + } + /** + *
+   * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class LiteralCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralCollection) + LiteralCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralCollection.newBuilder() to construct. + private LiteralCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralCollection() { + literals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralCollection( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + literals_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + literals_.add( + input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private java.util.List literals_; + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + return literals_.size(); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + return literals_.get(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + return literals_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < literals_.size(); i++) { + output.writeMessage(1, literals_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < literals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.LiteralCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralCollection other = (flyteidl.core.Literals.LiteralCollection) obj; + + if (!getLiteralsList() + .equals(other.getLiteralsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLiteralsCount() > 0) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + getLiteralsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.LiteralCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralCollection) + flyteidl.core.Literals.LiteralCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLiteralsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + literalsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection build() { + flyteidl.core.Literals.LiteralCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection buildPartial() { + flyteidl.core.Literals.LiteralCollection result = new flyteidl.core.Literals.LiteralCollection(this); + int from_bitField0_ = bitField0_; + if (literalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.literals_ = literals_; + } else { + result.literals_ = literalsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.LiteralCollection) { + return mergeFrom((flyteidl.core.Literals.LiteralCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralCollection other) { + if (other == flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) return this; + if (literalsBuilder_ == null) { + if (!other.literals_.isEmpty()) { + if (literals_.isEmpty()) { + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLiteralsIsMutable(); + literals_.addAll(other.literals_); + } + onChanged(); + } + } else { + if (!other.literals_.isEmpty()) { + if (literalsBuilder_.isEmpty()) { + literalsBuilder_.dispose(); + literalsBuilder_ = null; + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + literalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLiteralsFieldBuilder() : null; + } else { + literalsBuilder_.addAllMessages(other.literals_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.LiteralCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List literals_ = + java.util.Collections.emptyList(); + private void ensureLiteralsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + literals_ = new java.util.ArrayList(literals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalsBuilder_; + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + if (literalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(literals_); + } else { + return literalsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + if (literalsBuilder_ == null) { + return literals_.size(); + } else { + return literalsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); + } else { + return literalsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.set(index, value); + onChanged(); + } else { + literalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.set(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals(flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(value); + onChanged(); + } else { + literalsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(index, value); + onChanged(); + } else { + literalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addAllLiterals( + java.lang.Iterable values) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, literals_); + onChanged(); + } else { + literalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder clearLiterals() { + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + literalsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder removeLiterals(int index) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.remove(index); + onChanged(); + } else { + literalsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder getLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); } else { + return literalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + if (literalsBuilder_ != null) { + return literalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(literals_); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder() { + return getLiteralsFieldBuilder().addBuilder( + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsBuilderList() { + return getLiteralsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getLiteralsFieldBuilder() { + if (literalsBuilder_ == null) { + literalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + literals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + literals_ = null; + } + return literalsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.LiteralCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) + private static final flyteidl.core.Literals.LiteralCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralCollection(); + } + + public static flyteidl.core.Literals.LiteralCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralCollection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + int getLiteralsCount(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + boolean containsLiterals( + java.lang.String key); + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLiterals(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + java.util.Map + getLiteralsMap(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class LiteralMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralMap) + LiteralMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMap.newBuilder() to construct. + private LiteralMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMap( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + literals__ = input.readMessage( + LiteralsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + literals_.getMutableMap().put( + literals__.getKey(), literals__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private static final class LiteralsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.Literal> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLiterals(), + LiteralsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetLiterals().getMap().entrySet()) { + com.google.protobuf.MapEntry + literals__ = LiteralsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.LiteralMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralMap other = (flyteidl.core.Literals.LiteralMap) obj; + + if (!internalGetLiterals().equals( + other.internalGetLiterals())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLiterals().getMap().isEmpty()) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLiterals().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.LiteralMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralMap) + flyteidl.core.Literals.LiteralMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableLiterals().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap build() { + flyteidl.core.Literals.LiteralMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap buildPartial() { + flyteidl.core.Literals.LiteralMap result = new flyteidl.core.Literals.LiteralMap(this); + int from_bitField0_ = bitField0_; + result.literals_ = internalGetLiterals(); + result.literals_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.LiteralMap) { + return mergeFrom((flyteidl.core.Literals.LiteralMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralMap other) { + if (other == flyteidl.core.Literals.LiteralMap.getDefaultInstance()) return this; + internalGetMutableLiterals().mergeFrom( + other.internalGetLiterals()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.LiteralMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + private com.google.protobuf.MapField + internalGetMutableLiterals() { + onChanged();; + if (literals_ == null) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + if (!literals_.isMutable()) { + literals_ = literals_.copy(); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLiterals() { + internalGetMutableLiterals().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder removeLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLiterals() { + return internalGetMutableLiterals().getMutableMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + public Builder putLiterals( + java.lang.String key, + flyteidl.core.Literals.Literal value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder putAllLiterals( + java.util.Map values) { + internalGetMutableLiterals().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.LiteralMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) + private static final flyteidl.core.Literals.LiteralMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralMap(); + } + + public static flyteidl.core.Literals.LiteralMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingData getBindings(int index); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + int getBindingsCount(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsOrBuilderList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index); + } + /** + *
+   * A collection of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class BindingDataCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataCollection) + BindingDataCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataCollection.newBuilder() to construct. + private BindingDataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataCollection() { + bindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataCollection( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bindings_.add( + input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private java.util.List bindings_; + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + return bindings_.size(); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + return bindings_.get(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + return bindings_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < bindings_.size(); i++) { + output.writeMessage(1, bindings_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < bindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.BindingDataCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataCollection other = (flyteidl.core.Literals.BindingDataCollection) obj; + + if (!getBindingsList() + .equals(other.getBindingsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBindingsCount() > 0) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getBindingsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BindingDataCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A collection of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataCollection) + flyteidl.core.Literals.BindingDataCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBindingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + bindingsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection build() { + flyteidl.core.Literals.BindingDataCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection buildPartial() { + flyteidl.core.Literals.BindingDataCollection result = new flyteidl.core.Literals.BindingDataCollection(this); + int from_bitField0_ = bitField0_; + if (bindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + } else { + result.bindings_ = bindingsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BindingDataCollection) { + return mergeFrom((flyteidl.core.Literals.BindingDataCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataCollection other) { + if (other == flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) return this; + if (bindingsBuilder_ == null) { + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + } else { + if (!other.bindings_.isEmpty()) { + if (bindingsBuilder_.isEmpty()) { + bindingsBuilder_.dispose(); + bindingsBuilder_ = null; + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + bindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindingsFieldBuilder() : null; + } else { + bindingsBuilder_.addAllMessages(other.bindings_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BindingDataCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List bindings_ = + java.util.Collections.emptyList(); + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingsBuilder_; + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + if (bindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bindings_); + } else { + return bindingsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + if (bindingsBuilder_ == null) { + return bindings_.size(); + } else { + return bindingsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.set(index, value); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.set(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings(flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(value); + onChanged(); + } else { + bindingsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(index, value); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addAllBindings( + java.lang.Iterable values) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindings_); + onChanged(); + } else { + bindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder clearBindings() { + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bindingsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder removeBindings(int index) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.remove(index); + onChanged(); + } else { + bindingsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingsBuilder( + int index) { + return getBindingsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); } else { + return bindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + if (bindingsBuilder_ != null) { + return bindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bindings_); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder() { + return getBindingsFieldBuilder().addBuilder( + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder( + int index) { + return getBindingsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsBuilderList() { + return getBindingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingsFieldBuilder() { + if (bindingsBuilder_ == null) { + bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + bindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bindings_ = null; + } + return bindingsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BindingDataCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) + private static final flyteidl.core.Literals.BindingDataCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataCollection(); + } + + public static flyteidl.core.Literals.BindingDataCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDataCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataCollection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + int getBindingsCount(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + boolean containsBindings( + java.lang.String key); + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getBindings(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + java.util.Map + getBindingsMap(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class BindingDataMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataMap) + BindingDataMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataMap.newBuilder() to construct. + private BindingDataMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataMap( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + bindings__ = input.readMessage( + BindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + bindings_.getMutableMap().put( + bindings__.getKey(), bindings__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private static final class BindingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.BindingData> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetBindings(), + BindingsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetBindings().getMap().entrySet()) { + com.google.protobuf.MapEntry + bindings__ = BindingsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.BindingDataMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataMap other = (flyteidl.core.Literals.BindingDataMap) obj; + + if (!internalGetBindings().equals( + other.internalGetBindings())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetBindings().getMap().isEmpty()) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetBindings().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BindingDataMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A map of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataMap) + flyteidl.core.Literals.BindingDataMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableBindings().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap build() { + flyteidl.core.Literals.BindingDataMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap buildPartial() { + flyteidl.core.Literals.BindingDataMap result = new flyteidl.core.Literals.BindingDataMap(this); + int from_bitField0_ = bitField0_; + result.bindings_ = internalGetBindings(); + result.bindings_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BindingDataMap) { + return mergeFrom((flyteidl.core.Literals.BindingDataMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataMap other) { + if (other == flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) return this; + internalGetMutableBindings().mergeFrom( + other.internalGetBindings()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BindingDataMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + private com.google.protobuf.MapField + internalGetMutableBindings() { + onChanged();; + if (bindings_ == null) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + if (!bindings_.isMutable()) { + bindings_ = bindings_.copy(); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearBindings() { + internalGetMutableBindings().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder removeBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableBindings() { + return internalGetMutableBindings().getMutableMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + public Builder putBindings( + java.lang.String key, + flyteidl.core.Literals.BindingData value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder putAllBindings( + java.util.Map values) { + internalGetMutableBindings().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BindingDataMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) + private static final flyteidl.core.Literals.BindingDataMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataMap(); + } + + public static flyteidl.core.Literals.BindingDataMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingDataMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UnionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.UnionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + boolean hasTargetType(); + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + flyteidl.core.Types.LiteralType getTargetType(); + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTargetTypeOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.UnionInfo} + */ + public static final class UnionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.UnionInfo) + UnionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnionInfo.newBuilder() to construct. + private UnionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UnionInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UnionInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (targetType_ != null) { + subBuilder = targetType_.toBuilder(); + } + targetType_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetType_); + targetType_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.UnionInfo.class, flyteidl.core.Literals.UnionInfo.Builder.class); + } + + public static final int TARGETTYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.LiteralType targetType_; + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public boolean hasTargetType() { + return targetType_ != null; + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public flyteidl.core.Types.LiteralType getTargetType() { + return targetType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : targetType_; + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTargetTypeOrBuilder() { + return getTargetType(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (targetType_ != null) { + output.writeMessage(1, getTargetType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetType_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTargetType()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.UnionInfo)) { + return super.equals(obj); + } + flyteidl.core.Literals.UnionInfo other = (flyteidl.core.Literals.UnionInfo) obj; + + if (hasTargetType() != other.hasTargetType()) return false; + if (hasTargetType()) { + if (!getTargetType() + .equals(other.getTargetType())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTargetType()) { + hash = (37 * hash) + TARGETTYPE_FIELD_NUMBER; + hash = (53 * hash) + getTargetType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.UnionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.UnionInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.UnionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.UnionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.UnionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.UnionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.UnionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.UnionInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.UnionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.UnionInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.UnionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.UnionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.UnionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.UnionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.UnionInfo) + flyteidl.core.Literals.UnionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.UnionInfo.class, flyteidl.core.Literals.UnionInfo.Builder.class); + } + + // Construct using flyteidl.core.Literals.UnionInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (targetTypeBuilder_ == null) { + targetType_ = null; + } else { + targetType_ = null; + targetTypeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.UnionInfo getDefaultInstanceForType() { + return flyteidl.core.Literals.UnionInfo.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.UnionInfo build() { + flyteidl.core.Literals.UnionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.UnionInfo buildPartial() { + flyteidl.core.Literals.UnionInfo result = new flyteidl.core.Literals.UnionInfo(this); + if (targetTypeBuilder_ == null) { + result.targetType_ = targetType_; + } else { + result.targetType_ = targetTypeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.UnionInfo) { + return mergeFrom((flyteidl.core.Literals.UnionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.UnionInfo other) { + if (other == flyteidl.core.Literals.UnionInfo.getDefaultInstance()) return this; + if (other.hasTargetType()) { + mergeTargetType(other.getTargetType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.UnionInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.UnionInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.LiteralType targetType_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> targetTypeBuilder_; + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public boolean hasTargetType() { + return targetTypeBuilder_ != null || targetType_ != null; + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public flyteidl.core.Types.LiteralType getTargetType() { + if (targetTypeBuilder_ == null) { + return targetType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : targetType_; + } else { + return targetTypeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public Builder setTargetType(flyteidl.core.Types.LiteralType value) { + if (targetTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetType_ = value; + onChanged(); + } else { + targetTypeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public Builder setTargetType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (targetTypeBuilder_ == null) { + targetType_ = builderForValue.build(); + onChanged(); + } else { + targetTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public Builder mergeTargetType(flyteidl.core.Types.LiteralType value) { + if (targetTypeBuilder_ == null) { + if (targetType_ != null) { + targetType_ = + flyteidl.core.Types.LiteralType.newBuilder(targetType_).mergeFrom(value).buildPartial(); + } else { + targetType_ = value; + } + onChanged(); + } else { + targetTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public Builder clearTargetType() { + if (targetTypeBuilder_ == null) { + targetType_ = null; + onChanged(); + } else { + targetType_ = null; + targetTypeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public flyteidl.core.Types.LiteralType.Builder getTargetTypeBuilder() { + + onChanged(); + return getTargetTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTargetTypeOrBuilder() { + if (targetTypeBuilder_ != null) { + return targetTypeBuilder_.getMessageOrBuilder(); + } else { + return targetType_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : targetType_; + } + } + /** + * .flyteidl.core.LiteralType targetType = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTargetTypeFieldBuilder() { + if (targetTypeBuilder_ == null) { + targetTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getTargetType(), + getParentForChildren(), + isClean()); + targetType_ = null; + } + return targetTypeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.UnionInfo) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.UnionInfo) + private static final flyteidl.core.Literals.UnionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.UnionInfo(); + } + + public static flyteidl.core.Literals.UnionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnionInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.UnionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollection getCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + boolean hasPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReference getPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder(); + + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + boolean hasMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMap getMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder(); + + /** + * .flyteidl.core.UnionInfo union = 5; + */ + boolean hasUnion(); + /** + * .flyteidl.core.UnionInfo union = 5; + */ + flyteidl.core.Literals.UnionInfo getUnion(); + /** + * .flyteidl.core.UnionInfo union = 5; + */ + flyteidl.core.Literals.UnionInfoOrBuilder getUnionOrBuilder(); + + public flyteidl.core.Literals.BindingData.ValueCase getValueCase(); + } + /** + *
+   * Specifies either a simple value or a reference to another output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class BindingData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingData) + BindingDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingData.newBuilder() to construct. + private BindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingData() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.BindingDataCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.BindingDataCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.OutputReference.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Types.OutputReference) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.OutputReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.OutputReference) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.BindingDataMap.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.BindingDataMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + flyteidl.core.Literals.UnionInfo.Builder subBuilder = null; + if (union_ != null) { + subBuilder = union_.toBuilder(); + } + union_ = input.readMessage(flyteidl.core.Literals.UnionInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(union_); + union_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + PROMISE(3), + MAP(4), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return PROMISE; + case 4: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + public static final int PROMISE_FIELD_NUMBER = 3; + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 4; + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + public static final int UNION_FIELD_NUMBER = 5; + private flyteidl.core.Literals.UnionInfo union_; + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public boolean hasUnion() { + return union_ != null; + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public flyteidl.core.Literals.UnionInfo getUnion() { + return union_ == null ? flyteidl.core.Literals.UnionInfo.getDefaultInstance() : union_; + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public flyteidl.core.Literals.UnionInfoOrBuilder getUnionOrBuilder() { + return getUnion(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.BindingDataMap) value_); + } + if (union_ != null) { + output.writeMessage(5, getUnion()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.BindingDataMap) value_); + } + if (union_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUnion()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.BindingData)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingData other = (flyteidl.core.Literals.BindingData) obj; + + if (hasUnion() != other.hasUnion()) return false; + if (hasUnion()) { + if (!getUnion() + .equals(other.getUnion())) return false; + } + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 1: + if (!getScalar() + .equals(other.getScalar())) return false; + break; + case 2: + if (!getCollection() + .equals(other.getCollection())) return false; + break; + case 3: + if (!getPromise() + .equals(other.getPromise())) return false; + break; + case 4: + if (!getMap() + .equals(other.getMap())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUnion()) { + hash = (37 * hash) + UNION_FIELD_NUMBER; + hash = (53 * hash) + getUnion().hashCode(); + } + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + PROMISE_FIELD_NUMBER; + hash = (53 * hash) + getPromise().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BindingData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies either a simple value or a reference to another output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingData) + flyteidl.core.Literals.BindingDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (unionBuilder_ == null) { + union_ = null; + } else { + union_ = null; + unionBuilder_ = null; + } + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingData.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData build() { + flyteidl.core.Literals.BindingData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData buildPartial() { + flyteidl.core.Literals.BindingData result = new flyteidl.core.Literals.BindingData(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (promiseBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = promiseBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + if (unionBuilder_ == null) { + result.union_ = union_; + } else { + result.union_ = unionBuilder_.build(); + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BindingData) { + return mergeFrom((flyteidl.core.Literals.BindingData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingData other) { + if (other == flyteidl.core.Literals.BindingData.getDefaultInstance()) return this; + if (other.hasUnion()) { + mergeUnion(other.getUnion()); + } + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case PROMISE: { + mergePromise(other.getPromise()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BindingData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.BindingDataCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataCollection.newBuilder((flyteidl.core.Literals.BindingDataCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder>( + (flyteidl.core.Literals.BindingDataCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> promiseBuilder_; + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return promiseBuilder_.getMessage(); + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise( + flyteidl.core.Types.OutputReference.Builder builderForValue) { + if (promiseBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + promiseBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder mergePromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Types.OutputReference.getDefaultInstance()) { + value_ = flyteidl.core.Types.OutputReference.newBuilder((flyteidl.core.Types.OutputReference) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + promiseBuilder_.mergeFrom(value); + } + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder clearPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + promiseBuilder_.clear(); + } + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference.Builder getPromiseBuilder() { + return getPromiseFieldBuilder().getBuilder(); + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if ((valueCase_ == 3) && (promiseBuilder_ != null)) { + return promiseBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> + getPromiseFieldBuilder() { + if (promiseBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + promiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder>( + (flyteidl.core.Types.OutputReference) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return promiseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> mapBuilder_; + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap( + flyteidl.core.Literals.BindingDataMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder mergeMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataMap.newBuilder((flyteidl.core.Literals.BindingDataMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 4) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder>( + (flyteidl.core.Literals.BindingDataMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return mapBuilder_; + } + + private flyteidl.core.Literals.UnionInfo union_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.UnionInfo, flyteidl.core.Literals.UnionInfo.Builder, flyteidl.core.Literals.UnionInfoOrBuilder> unionBuilder_; + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public boolean hasUnion() { + return unionBuilder_ != null || union_ != null; + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public flyteidl.core.Literals.UnionInfo getUnion() { + if (unionBuilder_ == null) { + return union_ == null ? flyteidl.core.Literals.UnionInfo.getDefaultInstance() : union_; + } else { + return unionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public Builder setUnion(flyteidl.core.Literals.UnionInfo value) { + if (unionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + union_ = value; + onChanged(); + } else { + unionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public Builder setUnion( + flyteidl.core.Literals.UnionInfo.Builder builderForValue) { + if (unionBuilder_ == null) { + union_ = builderForValue.build(); + onChanged(); + } else { + unionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public Builder mergeUnion(flyteidl.core.Literals.UnionInfo value) { + if (unionBuilder_ == null) { + if (union_ != null) { + union_ = + flyteidl.core.Literals.UnionInfo.newBuilder(union_).mergeFrom(value).buildPartial(); + } else { + union_ = value; + } + onChanged(); + } else { + unionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public Builder clearUnion() { + if (unionBuilder_ == null) { + union_ = null; + onChanged(); + } else { + union_ = null; + unionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public flyteidl.core.Literals.UnionInfo.Builder getUnionBuilder() { + + onChanged(); + return getUnionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + public flyteidl.core.Literals.UnionInfoOrBuilder getUnionOrBuilder() { + if (unionBuilder_ != null) { + return unionBuilder_.getMessageOrBuilder(); + } else { + return union_ == null ? + flyteidl.core.Literals.UnionInfo.getDefaultInstance() : union_; + } + } + /** + * .flyteidl.core.UnionInfo union = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.UnionInfo, flyteidl.core.Literals.UnionInfo.Builder, flyteidl.core.Literals.UnionInfoOrBuilder> + getUnionFieldBuilder() { + if (unionBuilder_ == null) { + unionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.UnionInfo, flyteidl.core.Literals.UnionInfo.Builder, flyteidl.core.Literals.UnionInfoOrBuilder>( + getUnion(), + getParentForChildren(), + isClean()); + union_ = null; + } + return unionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BindingData) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) + private static final flyteidl.core.Literals.BindingData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingData(); + } + + public static flyteidl.core.Literals.BindingData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binding) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + boolean hasBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingData getBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder(); + } + /** + *
+   * An input/output binding of a variable to either static value or a node output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Binding extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binding) + BindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binding.newBuilder() to construct. + private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binding() { + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binding( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = s; + break; + } + case 18: { + flyteidl.core.Literals.BindingData.Builder subBuilder = null; + if (binding_ != null) { + subBuilder = binding_.toBuilder(); + } + binding_ = input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binding_); + binding_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BINDING_FIELD_NUMBER = 2; + private flyteidl.core.Literals.BindingData binding_; + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return binding_ != null; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + return getBinding(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (binding_ != null) { + output.writeMessage(2, getBinding()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (binding_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBinding()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.Binding)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binding other = (flyteidl.core.Literals.Binding) obj; + + if (!getVar() + .equals(other.getVar())) return false; + if (hasBinding() != other.hasBinding()) return false; + if (hasBinding()) { + if (!getBinding() + .equals(other.getBinding())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + if (hasBinding()) { + hash = (37 * hash) + BINDING_FIELD_NUMBER; + hash = (53 * hash) + getBinding().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Binding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An input/output binding of a variable to either static value or a node output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binding) + flyteidl.core.Literals.BindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + var_ = ""; + + if (bindingBuilder_ == null) { + binding_ = null; + } else { + binding_ = null; + bindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return flyteidl.core.Literals.Binding.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.Binding build() { + flyteidl.core.Literals.Binding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.Binding buildPartial() { + flyteidl.core.Literals.Binding result = new flyteidl.core.Literals.Binding(this); + result.var_ = var_; + if (bindingBuilder_ == null) { + result.binding_ = binding_; + } else { + result.binding_ = bindingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Binding) { + return mergeFrom((flyteidl.core.Literals.Binding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binding other) { + if (other == flyteidl.core.Literals.Binding.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (other.hasBinding()) { + mergeBinding(other.getBinding()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Binding parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binding) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Literals.BindingData binding_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingBuilder_; + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return bindingBuilder_ != null || binding_ != null; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + if (bindingBuilder_ == null) { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } else { + return bindingBuilder_.getMessage(); + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binding_ = value; + onChanged(); + } else { + bindingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingBuilder_ == null) { + binding_ = builderForValue.build(); + onChanged(); + } else { + bindingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder mergeBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (binding_ != null) { + binding_ = + flyteidl.core.Literals.BindingData.newBuilder(binding_).mergeFrom(value).buildPartial(); + } else { + binding_ = value; + } + onChanged(); + } else { + bindingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder clearBinding() { + if (bindingBuilder_ == null) { + binding_ = null; + onChanged(); + } else { + binding_ = null; + bindingBuilder_ = null; + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingBuilder() { + + onChanged(); + return getBindingFieldBuilder().getBuilder(); + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + if (bindingBuilder_ != null) { + return bindingBuilder_.getMessageOrBuilder(); + } else { + return binding_ == null ? + flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingFieldBuilder() { + if (bindingBuilder_ == null) { + bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + getBinding(), + getParentForChildren(), + isClean()); + binding_ = null; + } + return bindingBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Binding) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) + private static final flyteidl.core.Literals.Binding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binding(); + } + + public static flyteidl.core.Literals.Binding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binding(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValuePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * A generic key value pair.
+   * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class KeyValuePair extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.KeyValuePair) + KeyValuePairOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyValuePair() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyValuePair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.KeyValuePair)) { + return super.equals(obj); + } + flyteidl.core.Literals.KeyValuePair other = (flyteidl.core.Literals.KeyValuePair) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.KeyValuePair prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A generic key value pair.
+     * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.KeyValuePair) + flyteidl.core.Literals.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + // Construct using flyteidl.core.Literals.KeyValuePair.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return flyteidl.core.Literals.KeyValuePair.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair build() { + flyteidl.core.Literals.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair buildPartial() { + flyteidl.core.Literals.KeyValuePair result = new flyteidl.core.Literals.KeyValuePair(this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.KeyValuePair) { + return mergeFrom((flyteidl.core.Literals.KeyValuePair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.KeyValuePair other) { + if (other == flyteidl.core.Literals.KeyValuePair.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.KeyValuePair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.KeyValuePair) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) + private static final flyteidl.core.Literals.KeyValuePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.KeyValuePair(); + } + + public static flyteidl.core.Literals.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValuePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValuePair(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RetryStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RetryStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + int getRetries(); + } + /** + *
+   * Retry strategy associated with an executable unit.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class RetryStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RetryStrategy) + RetryStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetryStrategy.newBuilder() to construct. + private RetryStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RetryStrategy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RetryStrategy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 40: { + + retries_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private int retries_; + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (retries_ != 0) { + output.writeUInt32(5, retries_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retries_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, retries_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Literals.RetryStrategy)) { + return super.equals(obj); + } + flyteidl.core.Literals.RetryStrategy other = (flyteidl.core.Literals.RetryStrategy) obj; + + if (getRetries() + != other.getRetries()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.RetryStrategy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Retry strategy associated with an executable unit.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RetryStrategy) + flyteidl.core.Literals.RetryStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + // Construct using flyteidl.core.Literals.RetryStrategy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + retries_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return flyteidl.core.Literals.RetryStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy build() { + flyteidl.core.Literals.RetryStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy buildPartial() { + flyteidl.core.Literals.RetryStrategy result = new flyteidl.core.Literals.RetryStrategy(this); + result.retries_ = retries_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.RetryStrategy) { + return mergeFrom((flyteidl.core.Literals.RetryStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.RetryStrategy other) { + if (other == flyteidl.core.Literals.RetryStrategy.getDefaultInstance()) return this; + if (other.getRetries() != 0) { + setRetries(other.getRetries()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.RetryStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.RetryStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retries_ ; + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder setRetries(int value) { + + retries_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder clearRetries() { + + retries_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.RetryStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) + private static final flyteidl.core.Literals.RetryStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.RetryStrategy(); + } + + public static flyteidl.core.Literals.RetryStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryStrategy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Primitive_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Primitive_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Void_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Void_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Blob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Blob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binary_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binary_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Schema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Schema_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Union_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Union_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_StructuredDatasetMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_StructuredDataset_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_StructuredDataset_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Scalar_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Scalar_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Literal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Literal_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_UnionInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_UnionInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binding_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binding_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_KeyValuePair_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RetryStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/core/literals.proto\022\rflyteidl" + + ".core\032\037google/protobuf/timestamp.proto\032\036" + + "google/protobuf/duration.proto\032\034google/p" + + "rotobuf/struct.proto\032\031flyteidl/core/type" + + "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + + "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + + "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + + " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + + "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + + "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + + " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + + "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + + "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + + "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + + "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + + "ype\"X\n\005Union\022%\n\005value\030\001 \001(\0132\026.flyteidl.c" + + "ore.Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.cor" + + "e.LiteralType\"b\n\031StructuredDatasetMetada" + + "ta\022E\n\027structured_dataset_type\030\001 \001(\0132$.fl" + + "yteidl.core.StructuredDatasetType\"\\\n\021Str" + + "ucturedDataset\022\013\n\003uri\030\001 \001(\t\022:\n\010metadata\030" + + "\002 \001(\0132(.flyteidl.core.StructuredDatasetM" + + "etadata\"\233\003\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030." + + "flyteidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132" + + "\023.flyteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025" + + ".flyteidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132" + + "\025.flyteidl.core.SchemaH\000\022(\n\tnone_type\030\005 " + + "\001(\0132\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(" + + "\0132\024.flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001" + + "(\0132\027.google.protobuf.StructH\000\022>\n\022structu" + + "red_dataset\030\010 \001(\0132 .flyteidl.core.Struct" + + "uredDatasetH\000\022%\n\005union\030\t \001(\0132\024.flyteidl." + + "core.UnionH\000B\007\n\005value\"\253\001\n\007Literal\022\'\n\006sca" + + "lar\030\001 \001(\0132\025.flyteidl.core.ScalarH\000\0226\n\nco" + + "llection\030\002 \001(\0132 .flyteidl.core.LiteralCo" + + "llectionH\000\022(\n\003map\030\003 \001(\0132\031.flyteidl.core." + + "LiteralMapH\000\022\014\n\004hash\030\004 \001(\tB\007\n\005value\"=\n\021L" + + "iteralCollection\022(\n\010literals\030\001 \003(\0132\026.fly" + + "teidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lit" + + "erals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.L" + + "iteralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001" + + "(\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Litera" + + "l:\0028\001\"E\n\025BindingDataCollection\022,\n\010bindin" + + "gs\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n" + + "\016BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyt" + + "eidl.core.BindingDataMap.BindingsEntry\032K" + + "\n\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 " + + "\001(\0132\032.flyteidl.core.BindingData:\0028\001\";\n\tU" + + "nionInfo\022.\n\ntargetType\030\001 \001(\0132\032.flyteidl." + + "core.LiteralType\"\205\002\n\013BindingData\022\'\n\006scal" + + "ar\030\001 \001(\0132\025.flyteidl.core.ScalarH\000\022:\n\ncol" + + "lection\030\002 \001(\0132$.flyteidl.core.BindingDat" + + "aCollectionH\000\0221\n\007promise\030\003 \001(\0132\036.flyteid" + + "l.core.OutputReferenceH\000\022,\n\003map\030\004 \001(\0132\035." + + "flyteidl.core.BindingDataMapH\000\022\'\n\005union\030" + + "\005 \001(\0132\030.flyteidl.core.UnionInfoB\007\n\005value" + + "\"C\n\007Binding\022\013\n\003var\030\001 \001(\t\022+\n\007binding\030\002 \001(" + + "\0132\032.flyteidl.core.BindingData\"*\n\014KeyValu" + + "ePair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\" \n\rRet" + + "ryStrategy\022\017\n\007retries\030\005 \001(\rB6Z4github.co" + + "m/flyteorg/flyteidl/gen/pb-go/flyteidl/c" + + "oreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Primitive_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Primitive_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Primitive_descriptor, + new java.lang.String[] { "Integer", "FloatValue", "StringValue", "Boolean", "Datetime", "Duration", "Value", }); + internal_static_flyteidl_core_Void_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Void_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Void_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_Blob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_Blob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Blob_descriptor, + new java.lang.String[] { "Metadata", "Uri", }); + internal_static_flyteidl_core_BlobMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobMetadata_descriptor, + new java.lang.String[] { "Type", }); + internal_static_flyteidl_core_Binary_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_Binary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binary_descriptor, + new java.lang.String[] { "Value", "Tag", }); + internal_static_flyteidl_core_Schema_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Schema_descriptor, + new java.lang.String[] { "Uri", "Type", }); + internal_static_flyteidl_core_Union_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_Union_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Union_descriptor, + new java.lang.String[] { "Value", "Type", }); + internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_StructuredDatasetMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor, + new java.lang.String[] { "StructuredDatasetType", }); + internal_static_flyteidl_core_StructuredDataset_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_StructuredDataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_StructuredDataset_descriptor, + new java.lang.String[] { "Uri", "Metadata", }); + internal_static_flyteidl_core_Scalar_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_Scalar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Scalar_descriptor, + new java.lang.String[] { "Primitive", "Blob", "Binary", "Schema", "NoneType", "Error", "Generic", "StructuredDataset", "Union", "Value", }); + internal_static_flyteidl_core_Literal_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_Literal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Literal_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Map", "Hash", "Value", }); + internal_static_flyteidl_core_LiteralCollection_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralCollection_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor = + internal_static_flyteidl_core_LiteralMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_BindingDataCollection_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataCollection_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor = + internal_static_flyteidl_core_BindingDataMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_UnionInfo_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_core_UnionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_UnionInfo_descriptor, + new java.lang.String[] { "TargetType", }); + internal_static_flyteidl_core_BindingData_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_core_BindingData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingData_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Promise", "Map", "Union", "Value", }); + internal_static_flyteidl_core_Binding_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_flyteidl_core_Binding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binding_descriptor, + new java.lang.String[] { "Var", "Binding", }); + internal_static_flyteidl_core_KeyValuePair_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_KeyValuePair_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_RetryStrategy_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RetryStrategy_descriptor, + new java.lang.String[] { "Retries", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Metrics.java b/flyteidl/gen/pb-java/flyteidl/core/Metrics.java new file mode 100644 index 0000000000..b941867c62 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Metrics.java @@ -0,0 +1,2586 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/metrics.proto + +package flyteidl.core; + +public final class Metrics { + private Metrics() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SpanOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Span) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * start_time defines the instance this span began.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + boolean hasStartTime(); + /** + *
+     * start_time defines the instance this span began.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+     * start_time defines the instance this span began.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+     * end_time defines the instance this span completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + boolean hasEndTime(); + /** + *
+     * end_time defines the instance this span completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+     * end_time defines the instance this span completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + *
+     * workflow_id is the id of the workflow execution this Span represents.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + boolean hasWorkflowId(); + /** + *
+     * workflow_id is the id of the workflow execution this Span represents.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowId(); + /** + *
+     * workflow_id is the id of the workflow execution this Span represents.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowIdOrBuilder(); + + /** + *
+     * node_id is the id of the node execution this Span represents.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + boolean hasNodeId(); + /** + *
+     * node_id is the id of the node execution this Span represents.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeId(); + /** + *
+     * node_id is the id of the node execution this Span represents.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeIdOrBuilder(); + + /** + *
+     * task_id is the id of the task execution this Span represents.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + boolean hasTaskId(); + /** + *
+     * task_id is the id of the task execution this Span represents.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskId(); + /** + *
+     * task_id is the id of the task execution this Span represents.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskIdOrBuilder(); + + /** + *
+     * operation_id is the id of a unique operation that this Span represents.
+     * 
+ * + * string operation_id = 6; + */ + java.lang.String getOperationId(); + /** + *
+     * operation_id is the id of a unique operation that this Span represents.
+     * 
+ * + * string operation_id = 6; + */ + com.google.protobuf.ByteString + getOperationIdBytes(); + + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + java.util.List + getSpansList(); + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + flyteidl.core.Metrics.Span getSpans(int index); + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + int getSpansCount(); + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + java.util.List + getSpansOrBuilderList(); + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + flyteidl.core.Metrics.SpanOrBuilder getSpansOrBuilder( + int index); + + public flyteidl.core.Metrics.Span.IdCase getIdCase(); + } + /** + *
+   * Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation
+   * which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more
+   * precise definitions.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Span} + */ + public static final class Span extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Span) + SpanOrBuilder { + private static final long serialVersionUID = 0L; + // Use Span.newBuilder() to construct. + private Span(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Span() { + spans_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Span( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (idCase_ == 3) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_).toBuilder(); + } + id_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); + id_ = subBuilder.buildPartial(); + } + idCase_ = 3; + break; + } + case 34: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (idCase_ == 4) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_).toBuilder(); + } + id_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_); + id_ = subBuilder.buildPartial(); + } + idCase_ = 4; + break; + } + case 42: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (idCase_ == 5) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_).toBuilder(); + } + id_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); + id_ = subBuilder.buildPartial(); + } + idCase_ = 5; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + idCase_ = 6; + id_ = s; + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { + spans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + spans_.add( + input.readMessage(flyteidl.core.Metrics.Span.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000040) != 0)) { + spans_ = java.util.Collections.unmodifiableList(spans_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Metrics.Span.class, flyteidl.core.Metrics.Span.Builder.class); + } + + private int bitField0_; + private int idCase_ = 0; + private java.lang.Object id_; + public enum IdCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_ID(3), + NODE_ID(4), + TASK_ID(5), + OPERATION_ID(6), + ID_NOT_SET(0); + private final int value; + private IdCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IdCase valueOf(int value) { + return forNumber(value); + } + + public static IdCase forNumber(int value) { + switch (value) { + case 3: return WORKFLOW_ID; + case 4: return NODE_ID; + case 5: return TASK_ID; + case 6: return OPERATION_ID; + case 0: return ID_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + *
+     * start_time defines the instance this span began.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+     * start_time defines the instance this span began.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+     * start_time defines the instance this span began.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + *
+     * end_time defines the instance this span completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+     * end_time defines the instance this span completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+     * end_time defines the instance this span completed.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 3; + /** + *
+     * workflow_id is the id of the workflow execution this Span represents.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public boolean hasWorkflowId() { + return idCase_ == 3; + } + /** + *
+     * workflow_id is the id of the workflow execution this Span represents.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowId() { + if (idCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + /** + *
+     * workflow_id is the id of the workflow execution this Span represents.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowIdOrBuilder() { + if (idCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + + public static final int NODE_ID_FIELD_NUMBER = 4; + /** + *
+     * node_id is the id of the node execution this Span represents.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public boolean hasNodeId() { + return idCase_ == 4; + } + /** + *
+     * node_id is the id of the node execution this Span represents.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeId() { + if (idCase_ == 4) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + /** + *
+     * node_id is the id of the node execution this Span represents.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeIdOrBuilder() { + if (idCase_ == 4) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + + public static final int TASK_ID_FIELD_NUMBER = 5; + /** + *
+     * task_id is the id of the task execution this Span represents.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public boolean hasTaskId() { + return idCase_ == 5; + } + /** + *
+     * task_id is the id of the task execution this Span represents.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskId() { + if (idCase_ == 5) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + /** + *
+     * task_id is the id of the task execution this Span represents.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskIdOrBuilder() { + if (idCase_ == 5) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + + public static final int OPERATION_ID_FIELD_NUMBER = 6; + /** + *
+     * operation_id is the id of a unique operation that this Span represents.
+     * 
+ * + * string operation_id = 6; + */ + public java.lang.String getOperationId() { + java.lang.Object ref = ""; + if (idCase_ == 6) { + ref = id_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 6) { + id_ = s; + } + return s; + } + } + /** + *
+     * operation_id is the id of a unique operation that this Span represents.
+     * 
+ * + * string operation_id = 6; + */ + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 6) { + ref = id_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 6) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPANS_FIELD_NUMBER = 7; + private java.util.List spans_; + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public java.util.List getSpansList() { + return spans_; + } + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public java.util.List + getSpansOrBuilderList() { + return spans_; + } + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public int getSpansCount() { + return spans_.size(); + } + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public flyteidl.core.Metrics.Span getSpans(int index) { + return spans_.get(index); + } + /** + *
+     * spans defines a collection of Spans that breakdown this execution.
+     * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public flyteidl.core.Metrics.SpanOrBuilder getSpansOrBuilder( + int index) { + return spans_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (idCase_ == 3) { + output.writeMessage(3, (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); + } + if (idCase_ == 4) { + output.writeMessage(4, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_); + } + if (idCase_ == 5) { + output.writeMessage(5, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); + } + if (idCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, id_); + } + for (int i = 0; i < spans_.size(); i++) { + output.writeMessage(7, spans_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (idCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); + } + if (idCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_); + } + if (idCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); + } + if (idCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, id_); + } + for (int i = 0; i < spans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, spans_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Metrics.Span)) { + return super.equals(obj); + } + flyteidl.core.Metrics.Span other = (flyteidl.core.Metrics.Span) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getSpansList() + .equals(other.getSpansList())) return false; + if (!getIdCase().equals(other.getIdCase())) return false; + switch (idCase_) { + case 3: + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + break; + case 4: + if (!getNodeId() + .equals(other.getNodeId())) return false; + break; + case 5: + if (!getTaskId() + .equals(other.getTaskId())) return false; + break; + case 6: + if (!getOperationId() + .equals(other.getOperationId())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getSpansCount() > 0) { + hash = (37 * hash) + SPANS_FIELD_NUMBER; + hash = (53 * hash) + getSpansList().hashCode(); + } + switch (idCase_) { + case 3: + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + break; + case 4: + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + break; + case 5: + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + break; + case 6: + hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperationId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Metrics.Span parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Metrics.Span parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Metrics.Span parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Metrics.Span parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Metrics.Span parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Metrics.Span parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Metrics.Span parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Metrics.Span parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Metrics.Span parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Metrics.Span parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Metrics.Span parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Metrics.Span parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Metrics.Span prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation
+     * which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more
+     * precise definitions.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Span} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Span) + flyteidl.core.Metrics.SpanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Metrics.Span.class, flyteidl.core.Metrics.Span.Builder.class); + } + + // Construct using flyteidl.core.Metrics.Span.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSpansFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + if (spansBuilder_ == null) { + spans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + spansBuilder_.clear(); + } + idCase_ = 0; + id_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_descriptor; + } + + @java.lang.Override + public flyteidl.core.Metrics.Span getDefaultInstanceForType() { + return flyteidl.core.Metrics.Span.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Metrics.Span build() { + flyteidl.core.Metrics.Span result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Metrics.Span buildPartial() { + flyteidl.core.Metrics.Span result = new flyteidl.core.Metrics.Span(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + if (idCase_ == 3) { + if (workflowIdBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = workflowIdBuilder_.build(); + } + } + if (idCase_ == 4) { + if (nodeIdBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = nodeIdBuilder_.build(); + } + } + if (idCase_ == 5) { + if (taskIdBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = taskIdBuilder_.build(); + } + } + if (idCase_ == 6) { + result.id_ = id_; + } + if (spansBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + spans_ = java.util.Collections.unmodifiableList(spans_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.spans_ = spans_; + } else { + result.spans_ = spansBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.idCase_ = idCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Metrics.Span) { + return mergeFrom((flyteidl.core.Metrics.Span)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Metrics.Span other) { + if (other == flyteidl.core.Metrics.Span.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (spansBuilder_ == null) { + if (!other.spans_.isEmpty()) { + if (spans_.isEmpty()) { + spans_ = other.spans_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSpansIsMutable(); + spans_.addAll(other.spans_); + } + onChanged(); + } + } else { + if (!other.spans_.isEmpty()) { + if (spansBuilder_.isEmpty()) { + spansBuilder_.dispose(); + spansBuilder_ = null; + spans_ = other.spans_; + bitField0_ = (bitField0_ & ~0x00000040); + spansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpansFieldBuilder() : null; + } else { + spansBuilder_.addAllMessages(other.spans_); + } + } + } + switch (other.getIdCase()) { + case WORKFLOW_ID: { + mergeWorkflowId(other.getWorkflowId()); + break; + } + case NODE_ID: { + mergeNodeId(other.getNodeId()); + break; + } + case TASK_ID: { + mergeTaskId(other.getTaskId()); + break; + } + case OPERATION_ID: { + idCase_ = 6; + id_ = other.id_; + onChanged(); + break; + } + case ID_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Metrics.Span parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Metrics.Span) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int idCase_ = 0; + private java.lang.Object id_; + public IdCase + getIdCase() { + return IdCase.forNumber( + idCase_); + } + + public Builder clearId() { + idCase_ = 0; + id_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+       * start_time defines the instance this span began.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+       * end_time defines the instance this span completed.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public boolean hasWorkflowId() { + return idCase_ == 3; + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + if (idCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } else { + if (idCase_ == 3) { + return workflowIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + idCase_ = 3; + return this; + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + idCase_ = 3; + return this; + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowIdBuilder_ == null) { + if (idCase_ == 3 && + id_ != flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) { + id_ = flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_) + .mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + if (idCase_ == 3) { + workflowIdBuilder_.mergeFrom(value); + } + workflowIdBuilder_.setMessage(value); + } + idCase_ = 3; + return this; + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + if (idCase_ == 3) { + idCase_ = 0; + id_ = null; + onChanged(); + } + } else { + if (idCase_ == 3) { + idCase_ = 0; + id_ = null; + } + workflowIdBuilder_.clear(); + } + return this; + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowIdBuilder() { + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowIdOrBuilder() { + if ((idCase_ == 3) && (workflowIdBuilder_ != null)) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + if (idCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * workflow_id is the id of the workflow execution this Span represents.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + if (!(idCase_ == 3)) { + id_ = flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_, + getParentForChildren(), + isClean()); + id_ = null; + } + idCase_ = 3; + onChanged();; + return workflowIdBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeIdBuilder_; + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public boolean hasNodeId() { + return idCase_ == 4; + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeId() { + if (nodeIdBuilder_ == null) { + if (idCase_ == 4) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } else { + if (idCase_ == 4) { + return nodeIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public Builder setNodeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + nodeIdBuilder_.setMessage(value); + } + idCase_ = 4; + return this; + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public Builder setNodeId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeIdBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + nodeIdBuilder_.setMessage(builderForValue.build()); + } + idCase_ = 4; + return this; + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public Builder mergeNodeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeIdBuilder_ == null) { + if (idCase_ == 4 && + id_ != flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) { + id_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_) + .mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + if (idCase_ == 4) { + nodeIdBuilder_.mergeFrom(value); + } + nodeIdBuilder_.setMessage(value); + } + idCase_ = 4; + return this; + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public Builder clearNodeId() { + if (nodeIdBuilder_ == null) { + if (idCase_ == 4) { + idCase_ = 0; + id_ = null; + onChanged(); + } + } else { + if (idCase_ == 4) { + idCase_ = 0; + id_ = null; + } + nodeIdBuilder_.clear(); + } + return this; + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeIdBuilder() { + return getNodeIdFieldBuilder().getBuilder(); + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeIdOrBuilder() { + if ((idCase_ == 4) && (nodeIdBuilder_ != null)) { + return nodeIdBuilder_.getMessageOrBuilder(); + } else { + if (idCase_ == 4) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * node_id is the id of the node execution this Span represents.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeIdFieldBuilder() { + if (nodeIdBuilder_ == null) { + if (!(idCase_ == 4)) { + id_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + nodeIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_, + getParentForChildren(), + isClean()); + id_ = null; + } + idCase_ = 4; + onChanged();; + return nodeIdBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskIdBuilder_; + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public boolean hasTaskId() { + return idCase_ == 5; + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskId() { + if (taskIdBuilder_ == null) { + if (idCase_ == 5) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } else { + if (idCase_ == 5) { + return taskIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + idCase_ = 5; + return this; + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + idCase_ = 5; + return this; + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskIdBuilder_ == null) { + if (idCase_ == 5 && + id_ != flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) { + id_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_) + .mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + if (idCase_ == 5) { + taskIdBuilder_.mergeFrom(value); + } + taskIdBuilder_.setMessage(value); + } + idCase_ = 5; + return this; + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + if (idCase_ == 5) { + idCase_ = 0; + id_ = null; + onChanged(); + } + } else { + if (idCase_ == 5) { + idCase_ = 0; + id_ = null; + } + taskIdBuilder_.clear(); + } + return this; + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskIdBuilder() { + return getTaskIdFieldBuilder().getBuilder(); + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskIdOrBuilder() { + if ((idCase_ == 5) && (taskIdBuilder_ != null)) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + if (idCase_ == 5) { + return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; + } + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * task_id is the id of the task execution this Span represents.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + if (!(idCase_ == 5)) { + id_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_, + getParentForChildren(), + isClean()); + id_ = null; + } + idCase_ = 5; + onChanged();; + return taskIdBuilder_; + } + + /** + *
+       * operation_id is the id of a unique operation that this Span represents.
+       * 
+ * + * string operation_id = 6; + */ + public java.lang.String getOperationId() { + java.lang.Object ref = ""; + if (idCase_ == 6) { + ref = id_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (idCase_ == 6) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * operation_id is the id of a unique operation that this Span represents.
+       * 
+ * + * string operation_id = 6; + */ + public com.google.protobuf.ByteString + getOperationIdBytes() { + java.lang.Object ref = ""; + if (idCase_ == 6) { + ref = id_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (idCase_ == 6) { + id_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * operation_id is the id of a unique operation that this Span represents.
+       * 
+ * + * string operation_id = 6; + */ + public Builder setOperationId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + idCase_ = 6; + id_ = value; + onChanged(); + return this; + } + /** + *
+       * operation_id is the id of a unique operation that this Span represents.
+       * 
+ * + * string operation_id = 6; + */ + public Builder clearOperationId() { + if (idCase_ == 6) { + idCase_ = 0; + id_ = null; + onChanged(); + } + return this; + } + /** + *
+       * operation_id is the id of a unique operation that this Span represents.
+       * 
+ * + * string operation_id = 6; + */ + public Builder setOperationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + idCase_ = 6; + id_ = value; + onChanged(); + return this; + } + + private java.util.List spans_ = + java.util.Collections.emptyList(); + private void ensureSpansIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + spans_ = new java.util.ArrayList(spans_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> spansBuilder_; + + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public java.util.List getSpansList() { + if (spansBuilder_ == null) { + return java.util.Collections.unmodifiableList(spans_); + } else { + return spansBuilder_.getMessageList(); + } + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public int getSpansCount() { + if (spansBuilder_ == null) { + return spans_.size(); + } else { + return spansBuilder_.getCount(); + } + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public flyteidl.core.Metrics.Span getSpans(int index) { + if (spansBuilder_ == null) { + return spans_.get(index); + } else { + return spansBuilder_.getMessage(index); + } + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder setSpans( + int index, flyteidl.core.Metrics.Span value) { + if (spansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpansIsMutable(); + spans_.set(index, value); + onChanged(); + } else { + spansBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder setSpans( + int index, flyteidl.core.Metrics.Span.Builder builderForValue) { + if (spansBuilder_ == null) { + ensureSpansIsMutable(); + spans_.set(index, builderForValue.build()); + onChanged(); + } else { + spansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder addSpans(flyteidl.core.Metrics.Span value) { + if (spansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpansIsMutable(); + spans_.add(value); + onChanged(); + } else { + spansBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder addSpans( + int index, flyteidl.core.Metrics.Span value) { + if (spansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpansIsMutable(); + spans_.add(index, value); + onChanged(); + } else { + spansBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder addSpans( + flyteidl.core.Metrics.Span.Builder builderForValue) { + if (spansBuilder_ == null) { + ensureSpansIsMutable(); + spans_.add(builderForValue.build()); + onChanged(); + } else { + spansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder addSpans( + int index, flyteidl.core.Metrics.Span.Builder builderForValue) { + if (spansBuilder_ == null) { + ensureSpansIsMutable(); + spans_.add(index, builderForValue.build()); + onChanged(); + } else { + spansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder addAllSpans( + java.lang.Iterable values) { + if (spansBuilder_ == null) { + ensureSpansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spans_); + onChanged(); + } else { + spansBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder clearSpans() { + if (spansBuilder_ == null) { + spans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + spansBuilder_.clear(); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public Builder removeSpans(int index) { + if (spansBuilder_ == null) { + ensureSpansIsMutable(); + spans_.remove(index); + onChanged(); + } else { + spansBuilder_.remove(index); + } + return this; + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public flyteidl.core.Metrics.Span.Builder getSpansBuilder( + int index) { + return getSpansFieldBuilder().getBuilder(index); + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public flyteidl.core.Metrics.SpanOrBuilder getSpansOrBuilder( + int index) { + if (spansBuilder_ == null) { + return spans_.get(index); } else { + return spansBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public java.util.List + getSpansOrBuilderList() { + if (spansBuilder_ != null) { + return spansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(spans_); + } + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public flyteidl.core.Metrics.Span.Builder addSpansBuilder() { + return getSpansFieldBuilder().addBuilder( + flyteidl.core.Metrics.Span.getDefaultInstance()); + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public flyteidl.core.Metrics.Span.Builder addSpansBuilder( + int index) { + return getSpansFieldBuilder().addBuilder( + index, flyteidl.core.Metrics.Span.getDefaultInstance()); + } + /** + *
+       * spans defines a collection of Spans that breakdown this execution.
+       * 
+ * + * repeated .flyteidl.core.Span spans = 7; + */ + public java.util.List + getSpansBuilderList() { + return getSpansFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> + getSpansFieldBuilder() { + if (spansBuilder_ == null) { + spansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder>( + spans_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + spans_ = null; + } + return spansBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Span) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Span) + private static final flyteidl.core.Metrics.Span DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Metrics.Span(); + } + + public static flyteidl.core.Metrics.Span getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Span parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Span(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Metrics.Span getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Span_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Span_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033flyteidl/core/metrics.proto\022\rflyteidl." + + "core\032\036flyteidl/core/identifier.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\337\002\n\004Span\022." + + "\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\022A\n\013workflow_id\030\003 \001(\0132*.flyt" + + "eidl.core.WorkflowExecutionIdentifierH\000\022" + + "9\n\007node_id\030\004 \001(\0132&.flyteidl.core.NodeExe" + + "cutionIdentifierH\000\0229\n\007task_id\030\005 \001(\0132&.fl" + + "yteidl.core.TaskExecutionIdentifierH\000\022\026\n" + + "\014operation_id\030\006 \001(\tH\000\022\"\n\005spans\030\007 \003(\0132\023.f" + + "lyteidl.core.SpanB\004\n\002idB6Z4github.com/fl" + + "yteorg/flyteidl/gen/pb-go/flyteidl/coreb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Span_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Span_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Span_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "WorkflowId", "NodeId", "TaskId", "OperationId", "Spans", "Id", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Security.java b/flyteidl/gen/pb-java/flyteidl/core/Security.java new file mode 100644 index 0000000000..e2e5879c19 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Security.java @@ -0,0 +1,6846 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/security.proto + +package flyteidl.core; + +public final class Security { + private Security() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SecretOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Secret) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+     * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+     * For AWS Secret Manager, this should be the name of the secret.
+     * +required
+     * 
+ * + * string group = 1; + */ + java.lang.String getGroup(); + /** + *
+     * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+     * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+     * For AWS Secret Manager, this should be the name of the secret.
+     * +required
+     * 
+ * + * string group = 1; + */ + com.google.protobuf.ByteString + getGroupBytes(); + + /** + *
+     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+     * that do not support it.
+     * +optional
+     * 
+ * + * string group_version = 2; + */ + java.lang.String getGroupVersion(); + /** + *
+     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+     * that do not support it.
+     * +optional
+     * 
+ * + * string group_version = 2; + */ + com.google.protobuf.ByteString + getGroupVersionBytes(); + + /** + *
+     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+     * +optional
+     * 
+ * + * string key = 3; + */ + java.lang.String getKey(); + /** + *
+     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+     * +optional
+     * 
+ * + * string key = 3; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+     * will depend on the key management system.
+     * +optional
+     * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + int getMountRequirementValue(); + /** + *
+     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+     * will depend on the key management system.
+     * +optional
+     * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + flyteidl.core.Security.Secret.MountType getMountRequirement(); + } + /** + *
+   * Secret encapsulates information about the secret a task needs to proceed. An environment variable
+   * FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
+   * secrets are passed through environment variables.
+   * FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets
+   * are passed through file mounts.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Secret} + */ + public static final class Secret extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Secret) + SecretOrBuilder { + private static final long serialVersionUID = 0L; + // Use Secret.newBuilder() to construct. + private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Secret() { + group_ = ""; + groupVersion_ = ""; + key_ = ""; + mountRequirement_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Secret( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + group_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + groupVersion_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + mountRequirement_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_Secret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_Secret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.Secret.class, flyteidl.core.Security.Secret.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.Secret.MountType} + */ + public enum MountType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default case, indicates the client can tolerate either mounting options.
+       * 
+ * + * ANY = 0; + */ + ANY(0), + /** + *
+       * ENV_VAR indicates the secret needs to be mounted as an environment variable.
+       * 
+ * + * ENV_VAR = 1; + */ + ENV_VAR(1), + /** + *
+       * FILE indicates the secret needs to be mounted as a file.
+       * 
+ * + * FILE = 2; + */ + FILE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default case, indicates the client can tolerate either mounting options.
+       * 
+ * + * ANY = 0; + */ + public static final int ANY_VALUE = 0; + /** + *
+       * ENV_VAR indicates the secret needs to be mounted as an environment variable.
+       * 
+ * + * ENV_VAR = 1; + */ + public static final int ENV_VAR_VALUE = 1; + /** + *
+       * FILE indicates the secret needs to be mounted as a file.
+       * 
+ * + * FILE = 2; + */ + public static final int FILE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MountType valueOf(int value) { + return forNumber(value); + } + + public static MountType forNumber(int value) { + switch (value) { + case 0: return ANY; + case 1: return ENV_VAR; + case 2: return FILE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MountType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MountType findValueByNumber(int number) { + return MountType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Security.Secret.getDescriptor().getEnumTypes().get(0); + } + + private static final MountType[] VALUES = values(); + + public static MountType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MountType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.Secret.MountType) + } + + public static final int GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object group_; + /** + *
+     * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+     * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+     * For AWS Secret Manager, this should be the name of the secret.
+     * +required
+     * 
+ * + * string group = 1; + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } + } + /** + *
+     * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+     * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+     * For AWS Secret Manager, this should be the name of the secret.
+     * +required
+     * 
+ * + * string group = 1; + */ + public com.google.protobuf.ByteString + getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object groupVersion_; + /** + *
+     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+     * that do not support it.
+     * +optional
+     * 
+ * + * string group_version = 2; + */ + public java.lang.String getGroupVersion() { + java.lang.Object ref = groupVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupVersion_ = s; + return s; + } + } + /** + *
+     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+     * that do not support it.
+     * +optional
+     * 
+ * + * string group_version = 2; + */ + public com.google.protobuf.ByteString + getGroupVersionBytes() { + java.lang.Object ref = groupVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 3; + private volatile java.lang.Object key_; + /** + *
+     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+     * +optional
+     * 
+ * + * string key = 3; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + *
+     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+     * +optional
+     * 
+ * + * string key = 3; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOUNT_REQUIREMENT_FIELD_NUMBER = 4; + private int mountRequirement_; + /** + *
+     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+     * will depend on the key management system.
+     * +optional
+     * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + public int getMountRequirementValue() { + return mountRequirement_; + } + /** + *
+     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+     * will depend on the key management system.
+     * +optional
+     * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + public flyteidl.core.Security.Secret.MountType getMountRequirement() { + @SuppressWarnings("deprecation") + flyteidl.core.Security.Secret.MountType result = flyteidl.core.Security.Secret.MountType.valueOf(mountRequirement_); + return result == null ? flyteidl.core.Security.Secret.MountType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); + } + if (!getGroupVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupVersion_); + } + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); + } + if (mountRequirement_ != flyteidl.core.Security.Secret.MountType.ANY.getNumber()) { + output.writeEnum(4, mountRequirement_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_); + } + if (!getGroupVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupVersion_); + } + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); + } + if (mountRequirement_ != flyteidl.core.Security.Secret.MountType.ANY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, mountRequirement_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Security.Secret)) { + return super.equals(obj); + } + flyteidl.core.Security.Secret other = (flyteidl.core.Security.Secret) obj; + + if (!getGroup() + .equals(other.getGroup())) return false; + if (!getGroupVersion() + .equals(other.getGroupVersion())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (mountRequirement_ != other.mountRequirement_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + hash = (37 * hash) + GROUP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getGroupVersion().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + MOUNT_REQUIREMENT_FIELD_NUMBER; + hash = (53 * hash) + mountRequirement_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Security.Secret parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.Secret parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.Secret parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.Secret parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.Secret parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.Secret parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.Secret parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.Secret parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.Secret parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Security.Secret parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.Secret parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.Secret parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Security.Secret prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Secret encapsulates information about the secret a task needs to proceed. An environment variable
+     * FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
+     * secrets are passed through environment variables.
+     * FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets
+     * are passed through file mounts.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Secret} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Secret) + flyteidl.core.Security.SecretOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_Secret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_Secret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.Secret.class, flyteidl.core.Security.Secret.Builder.class); + } + + // Construct using flyteidl.core.Security.Secret.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + group_ = ""; + + groupVersion_ = ""; + + key_ = ""; + + mountRequirement_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Security.internal_static_flyteidl_core_Secret_descriptor; + } + + @java.lang.Override + public flyteidl.core.Security.Secret getDefaultInstanceForType() { + return flyteidl.core.Security.Secret.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Security.Secret build() { + flyteidl.core.Security.Secret result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Security.Secret buildPartial() { + flyteidl.core.Security.Secret result = new flyteidl.core.Security.Secret(this); + result.group_ = group_; + result.groupVersion_ = groupVersion_; + result.key_ = key_; + result.mountRequirement_ = mountRequirement_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Security.Secret) { + return mergeFrom((flyteidl.core.Security.Secret)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Security.Secret other) { + if (other == flyteidl.core.Security.Secret.getDefaultInstance()) return this; + if (!other.getGroup().isEmpty()) { + group_ = other.group_; + onChanged(); + } + if (!other.getGroupVersion().isEmpty()) { + groupVersion_ = other.groupVersion_; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.mountRequirement_ != 0) { + setMountRequirementValue(other.getMountRequirementValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Security.Secret parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Security.Secret) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object group_ = ""; + /** + *
+       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+       * For AWS Secret Manager, this should be the name of the secret.
+       * +required
+       * 
+ * + * string group = 1; + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+       * For AWS Secret Manager, this should be the name of the secret.
+       * +required
+       * 
+ * + * string group = 1; + */ + public com.google.protobuf.ByteString + getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+       * For AWS Secret Manager, this should be the name of the secret.
+       * +required
+       * 
+ * + * string group = 1; + */ + public Builder setGroup( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + group_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+       * For AWS Secret Manager, this should be the name of the secret.
+       * +required
+       * 
+ * + * string group = 1; + */ + public Builder clearGroup() { + + group_ = getDefaultInstance().getGroup(); + onChanged(); + return this; + } + /** + *
+       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
+       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
+       * For AWS Secret Manager, this should be the name of the secret.
+       * +required
+       * 
+ * + * string group = 1; + */ + public Builder setGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + group_ = value; + onChanged(); + return this; + } + + private java.lang.Object groupVersion_ = ""; + /** + *
+       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+       * that do not support it.
+       * +optional
+       * 
+ * + * string group_version = 2; + */ + public java.lang.String getGroupVersion() { + java.lang.Object ref = groupVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+       * that do not support it.
+       * +optional
+       * 
+ * + * string group_version = 2; + */ + public com.google.protobuf.ByteString + getGroupVersionBytes() { + java.lang.Object ref = groupVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+       * that do not support it.
+       * +optional
+       * 
+ * + * string group_version = 2; + */ + public Builder setGroupVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+       * that do not support it.
+       * +optional
+       * 
+ * + * string group_version = 2; + */ + public Builder clearGroupVersion() { + + groupVersion_ = getDefaultInstance().getGroupVersion(); + onChanged(); + return this; + } + /** + *
+       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
+       * that do not support it.
+       * +optional
+       * 
+ * + * string group_version = 2; + */ + public Builder setGroupVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+       * +optional
+       * 
+ * + * string key = 3; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+       * +optional
+       * 
+ * + * string key = 3; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+       * +optional
+       * 
+ * + * string key = 3; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+       * +optional
+       * 
+ * + * string key = 3; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
+       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
+       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
+       * +optional
+       * 
+ * + * string key = 3; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int mountRequirement_ = 0; + /** + *
+       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+       * will depend on the key management system.
+       * +optional
+       * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + public int getMountRequirementValue() { + return mountRequirement_; + } + /** + *
+       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+       * will depend on the key management system.
+       * +optional
+       * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + public Builder setMountRequirementValue(int value) { + mountRequirement_ = value; + onChanged(); + return this; + } + /** + *
+       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+       * will depend on the key management system.
+       * +optional
+       * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + public flyteidl.core.Security.Secret.MountType getMountRequirement() { + @SuppressWarnings("deprecation") + flyteidl.core.Security.Secret.MountType result = flyteidl.core.Security.Secret.MountType.valueOf(mountRequirement_); + return result == null ? flyteidl.core.Security.Secret.MountType.UNRECOGNIZED : result; + } + /** + *
+       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+       * will depend on the key management system.
+       * +optional
+       * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + public Builder setMountRequirement(flyteidl.core.Security.Secret.MountType value) { + if (value == null) { + throw new NullPointerException(); + } + + mountRequirement_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
+       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
+       * will depend on the key management system.
+       * +optional
+       * 
+ * + * .flyteidl.core.Secret.MountType mount_requirement = 4; + */ + public Builder clearMountRequirement() { + + mountRequirement_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Secret) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Secret) + private static final flyteidl.core.Security.Secret DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Security.Secret(); + } + + public static flyteidl.core.Security.Secret getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Secret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Secret(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Security.Secret getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OAuth2ClientOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.OAuth2Client) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+     * secret requested matches the client_id indicated here.
+     * +required
+     * 
+ * + * string client_id = 1; + */ + java.lang.String getClientId(); + /** + *
+     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+     * secret requested matches the client_id indicated here.
+     * +required
+     * 
+ * + * string client_id = 1; + */ + com.google.protobuf.ByteString + getClientIdBytes(); + + /** + *
+     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+     * +required
+     * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + boolean hasClientSecret(); + /** + *
+     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+     * +required
+     * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + flyteidl.core.Security.Secret getClientSecret(); + /** + *
+     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+     * +required
+     * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + flyteidl.core.Security.SecretOrBuilder getClientSecretOrBuilder(); + } + /** + *
+   * OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task.
+   * 
+ * + * Protobuf type {@code flyteidl.core.OAuth2Client} + */ + public static final class OAuth2Client extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.OAuth2Client) + OAuth2ClientOrBuilder { + private static final long serialVersionUID = 0L; + // Use OAuth2Client.newBuilder() to construct. + private OAuth2Client(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OAuth2Client() { + clientId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OAuth2Client( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = s; + break; + } + case 18: { + flyteidl.core.Security.Secret.Builder subBuilder = null; + if (clientSecret_ != null) { + subBuilder = clientSecret_.toBuilder(); + } + clientSecret_ = input.readMessage(flyteidl.core.Security.Secret.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clientSecret_); + clientSecret_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.OAuth2Client.class, flyteidl.core.Security.OAuth2Client.Builder.class); + } + + public static final int CLIENT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object clientId_; + /** + *
+     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+     * secret requested matches the client_id indicated here.
+     * +required
+     * 
+ * + * string client_id = 1; + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + *
+     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+     * secret requested matches the client_id indicated here.
+     * +required
+     * 
+ * + * string client_id = 1; + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 2; + private flyteidl.core.Security.Secret clientSecret_; + /** + *
+     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+     * +required
+     * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public boolean hasClientSecret() { + return clientSecret_ != null; + } + /** + *
+     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+     * +required
+     * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public flyteidl.core.Security.Secret getClientSecret() { + return clientSecret_ == null ? flyteidl.core.Security.Secret.getDefaultInstance() : clientSecret_; + } + /** + *
+     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+     * +required
+     * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public flyteidl.core.Security.SecretOrBuilder getClientSecretOrBuilder() { + return getClientSecret(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); + } + if (clientSecret_ != null) { + output.writeMessage(2, getClientSecret()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); + } + if (clientSecret_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClientSecret()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Security.OAuth2Client)) { + return super.equals(obj); + } + flyteidl.core.Security.OAuth2Client other = (flyteidl.core.Security.OAuth2Client) obj; + + if (!getClientId() + .equals(other.getClientId())) return false; + if (hasClientSecret() != other.hasClientSecret()) return false; + if (hasClientSecret()) { + if (!getClientSecret() + .equals(other.getClientSecret())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + if (hasClientSecret()) { + hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Security.OAuth2Client parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.OAuth2Client parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2Client parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.OAuth2Client parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2Client parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.OAuth2Client parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2Client parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.OAuth2Client parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2Client parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Security.OAuth2Client parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2Client parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.OAuth2Client parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Security.OAuth2Client prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task.
+     * 
+ * + * Protobuf type {@code flyteidl.core.OAuth2Client} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.OAuth2Client) + flyteidl.core.Security.OAuth2ClientOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.OAuth2Client.class, flyteidl.core.Security.OAuth2Client.Builder.class); + } + + // Construct using flyteidl.core.Security.OAuth2Client.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + clientId_ = ""; + + if (clientSecretBuilder_ == null) { + clientSecret_ = null; + } else { + clientSecret_ = null; + clientSecretBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_descriptor; + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2Client getDefaultInstanceForType() { + return flyteidl.core.Security.OAuth2Client.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2Client build() { + flyteidl.core.Security.OAuth2Client result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2Client buildPartial() { + flyteidl.core.Security.OAuth2Client result = new flyteidl.core.Security.OAuth2Client(this); + result.clientId_ = clientId_; + if (clientSecretBuilder_ == null) { + result.clientSecret_ = clientSecret_; + } else { + result.clientSecret_ = clientSecretBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Security.OAuth2Client) { + return mergeFrom((flyteidl.core.Security.OAuth2Client)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Security.OAuth2Client other) { + if (other == flyteidl.core.Security.OAuth2Client.getDefaultInstance()) return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + onChanged(); + } + if (other.hasClientSecret()) { + mergeClientSecret(other.getClientSecret()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Security.OAuth2Client parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Security.OAuth2Client) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object clientId_ = ""; + /** + *
+       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+       * secret requested matches the client_id indicated here.
+       * +required
+       * 
+ * + * string client_id = 1; + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+       * secret requested matches the client_id indicated here.
+       * +required
+       * 
+ * + * string client_id = 1; + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+       * secret requested matches the client_id indicated here.
+       * +required
+       * 
+ * + * string client_id = 1; + */ + public Builder setClientId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientId_ = value; + onChanged(); + return this; + } + /** + *
+       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+       * secret requested matches the client_id indicated here.
+       * +required
+       * 
+ * + * string client_id = 1; + */ + public Builder clearClientId() { + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + /** + *
+       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
+       * secret requested matches the client_id indicated here.
+       * +required
+       * 
+ * + * string client_id = 1; + */ + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientId_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Security.Secret clientSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> clientSecretBuilder_; + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public boolean hasClientSecret() { + return clientSecretBuilder_ != null || clientSecret_ != null; + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public flyteidl.core.Security.Secret getClientSecret() { + if (clientSecretBuilder_ == null) { + return clientSecret_ == null ? flyteidl.core.Security.Secret.getDefaultInstance() : clientSecret_; + } else { + return clientSecretBuilder_.getMessage(); + } + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public Builder setClientSecret(flyteidl.core.Security.Secret value) { + if (clientSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + onChanged(); + } else { + clientSecretBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public Builder setClientSecret( + flyteidl.core.Security.Secret.Builder builderForValue) { + if (clientSecretBuilder_ == null) { + clientSecret_ = builderForValue.build(); + onChanged(); + } else { + clientSecretBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public Builder mergeClientSecret(flyteidl.core.Security.Secret value) { + if (clientSecretBuilder_ == null) { + if (clientSecret_ != null) { + clientSecret_ = + flyteidl.core.Security.Secret.newBuilder(clientSecret_).mergeFrom(value).buildPartial(); + } else { + clientSecret_ = value; + } + onChanged(); + } else { + clientSecretBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public Builder clearClientSecret() { + if (clientSecretBuilder_ == null) { + clientSecret_ = null; + onChanged(); + } else { + clientSecret_ = null; + clientSecretBuilder_ = null; + } + + return this; + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public flyteidl.core.Security.Secret.Builder getClientSecretBuilder() { + + onChanged(); + return getClientSecretFieldBuilder().getBuilder(); + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + public flyteidl.core.Security.SecretOrBuilder getClientSecretOrBuilder() { + if (clientSecretBuilder_ != null) { + return clientSecretBuilder_.getMessageOrBuilder(); + } else { + return clientSecret_ == null ? + flyteidl.core.Security.Secret.getDefaultInstance() : clientSecret_; + } + } + /** + *
+       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
+       * +required
+       * 
+ * + * .flyteidl.core.Secret client_secret = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> + getClientSecretFieldBuilder() { + if (clientSecretBuilder_ == null) { + clientSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder>( + getClientSecret(), + getParentForChildren(), + isClean()); + clientSecret_ = null; + } + return clientSecretBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.OAuth2Client) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2Client) + private static final flyteidl.core.Security.OAuth2Client DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Security.OAuth2Client(); + } + + public static flyteidl.core.Security.OAuth2Client getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuth2Client parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OAuth2Client(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2Client getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IdentityOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Identity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+     * 
+ * + * string iam_role = 1; + */ + java.lang.String getIamRole(); + /** + *
+     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+     * 
+ * + * string iam_role = 1; + */ + com.google.protobuf.ByteString + getIamRoleBytes(); + + /** + *
+     * k8s_service_account references a kubernetes service account to impersonate.
+     * 
+ * + * string k8s_service_account = 2; + */ + java.lang.String getK8SServiceAccount(); + /** + *
+     * k8s_service_account references a kubernetes service account to impersonate.
+     * 
+ * + * string k8s_service_account = 2; + */ + com.google.protobuf.ByteString + getK8SServiceAccountBytes(); + + /** + *
+     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+     * making external calls.
+     * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + boolean hasOauth2Client(); + /** + *
+     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+     * making external calls.
+     * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + flyteidl.core.Security.OAuth2Client getOauth2Client(); + /** + *
+     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+     * making external calls.
+     * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + flyteidl.core.Security.OAuth2ClientOrBuilder getOauth2ClientOrBuilder(); + + /** + *
+     * execution_identity references the subject who makes the execution
+     * 
+ * + * string execution_identity = 4; + */ + java.lang.String getExecutionIdentity(); + /** + *
+     * execution_identity references the subject who makes the execution
+     * 
+ * + * string execution_identity = 4; + */ + com.google.protobuf.ByteString + getExecutionIdentityBytes(); + } + /** + *
+   * Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the
+   * right identity for the execution environment.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Identity} + */ + public static final class Identity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Identity) + IdentityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Identity.newBuilder() to construct. + private Identity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Identity() { + iamRole_ = ""; + k8SServiceAccount_ = ""; + executionIdentity_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Identity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + iamRole_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + k8SServiceAccount_ = s; + break; + } + case 26: { + flyteidl.core.Security.OAuth2Client.Builder subBuilder = null; + if (oauth2Client_ != null) { + subBuilder = oauth2Client_.toBuilder(); + } + oauth2Client_ = input.readMessage(flyteidl.core.Security.OAuth2Client.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(oauth2Client_); + oauth2Client_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + executionIdentity_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_Identity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_Identity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.Identity.class, flyteidl.core.Security.Identity.Builder.class); + } + + public static final int IAM_ROLE_FIELD_NUMBER = 1; + private volatile java.lang.Object iamRole_; + /** + *
+     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+     * 
+ * + * string iam_role = 1; + */ + public java.lang.String getIamRole() { + java.lang.Object ref = iamRole_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iamRole_ = s; + return s; + } + } + /** + *
+     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+     * 
+ * + * string iam_role = 1; + */ + public com.google.protobuf.ByteString + getIamRoleBytes() { + java.lang.Object ref = iamRole_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iamRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int K8S_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + private volatile java.lang.Object k8SServiceAccount_; + /** + *
+     * k8s_service_account references a kubernetes service account to impersonate.
+     * 
+ * + * string k8s_service_account = 2; + */ + public java.lang.String getK8SServiceAccount() { + java.lang.Object ref = k8SServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + k8SServiceAccount_ = s; + return s; + } + } + /** + *
+     * k8s_service_account references a kubernetes service account to impersonate.
+     * 
+ * + * string k8s_service_account = 2; + */ + public com.google.protobuf.ByteString + getK8SServiceAccountBytes() { + java.lang.Object ref = k8SServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + k8SServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OAUTH2_CLIENT_FIELD_NUMBER = 3; + private flyteidl.core.Security.OAuth2Client oauth2Client_; + /** + *
+     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+     * making external calls.
+     * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public boolean hasOauth2Client() { + return oauth2Client_ != null; + } + /** + *
+     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+     * making external calls.
+     * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public flyteidl.core.Security.OAuth2Client getOauth2Client() { + return oauth2Client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : oauth2Client_; + } + /** + *
+     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+     * making external calls.
+     * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public flyteidl.core.Security.OAuth2ClientOrBuilder getOauth2ClientOrBuilder() { + return getOauth2Client(); + } + + public static final int EXECUTION_IDENTITY_FIELD_NUMBER = 4; + private volatile java.lang.Object executionIdentity_; + /** + *
+     * execution_identity references the subject who makes the execution
+     * 
+ * + * string execution_identity = 4; + */ + public java.lang.String getExecutionIdentity() { + java.lang.Object ref = executionIdentity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionIdentity_ = s; + return s; + } + } + /** + *
+     * execution_identity references the subject who makes the execution
+     * 
+ * + * string execution_identity = 4; + */ + public com.google.protobuf.ByteString + getExecutionIdentityBytes() { + java.lang.Object ref = executionIdentity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIamRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRole_); + } + if (!getK8SServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, k8SServiceAccount_); + } + if (oauth2Client_ != null) { + output.writeMessage(3, getOauth2Client()); + } + if (!getExecutionIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, executionIdentity_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIamRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iamRole_); + } + if (!getK8SServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, k8SServiceAccount_); + } + if (oauth2Client_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOauth2Client()); + } + if (!getExecutionIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, executionIdentity_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Security.Identity)) { + return super.equals(obj); + } + flyteidl.core.Security.Identity other = (flyteidl.core.Security.Identity) obj; + + if (!getIamRole() + .equals(other.getIamRole())) return false; + if (!getK8SServiceAccount() + .equals(other.getK8SServiceAccount())) return false; + if (hasOauth2Client() != other.hasOauth2Client()) return false; + if (hasOauth2Client()) { + if (!getOauth2Client() + .equals(other.getOauth2Client())) return false; + } + if (!getExecutionIdentity() + .equals(other.getExecutionIdentity())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getIamRole().hashCode(); + hash = (37 * hash) + K8S_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getK8SServiceAccount().hashCode(); + if (hasOauth2Client()) { + hash = (37 * hash) + OAUTH2_CLIENT_FIELD_NUMBER; + hash = (53 * hash) + getOauth2Client().hashCode(); + } + hash = (37 * hash) + EXECUTION_IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getExecutionIdentity().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Security.Identity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.Identity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.Identity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.Identity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.Identity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.Identity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.Identity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.Identity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.Identity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Security.Identity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.Identity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.Identity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Security.Identity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the
+     * right identity for the execution environment.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Identity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Identity) + flyteidl.core.Security.IdentityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_Identity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_Identity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.Identity.class, flyteidl.core.Security.Identity.Builder.class); + } + + // Construct using flyteidl.core.Security.Identity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + iamRole_ = ""; + + k8SServiceAccount_ = ""; + + if (oauth2ClientBuilder_ == null) { + oauth2Client_ = null; + } else { + oauth2Client_ = null; + oauth2ClientBuilder_ = null; + } + executionIdentity_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Security.internal_static_flyteidl_core_Identity_descriptor; + } + + @java.lang.Override + public flyteidl.core.Security.Identity getDefaultInstanceForType() { + return flyteidl.core.Security.Identity.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Security.Identity build() { + flyteidl.core.Security.Identity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Security.Identity buildPartial() { + flyteidl.core.Security.Identity result = new flyteidl.core.Security.Identity(this); + result.iamRole_ = iamRole_; + result.k8SServiceAccount_ = k8SServiceAccount_; + if (oauth2ClientBuilder_ == null) { + result.oauth2Client_ = oauth2Client_; + } else { + result.oauth2Client_ = oauth2ClientBuilder_.build(); + } + result.executionIdentity_ = executionIdentity_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Security.Identity) { + return mergeFrom((flyteidl.core.Security.Identity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Security.Identity other) { + if (other == flyteidl.core.Security.Identity.getDefaultInstance()) return this; + if (!other.getIamRole().isEmpty()) { + iamRole_ = other.iamRole_; + onChanged(); + } + if (!other.getK8SServiceAccount().isEmpty()) { + k8SServiceAccount_ = other.k8SServiceAccount_; + onChanged(); + } + if (other.hasOauth2Client()) { + mergeOauth2Client(other.getOauth2Client()); + } + if (!other.getExecutionIdentity().isEmpty()) { + executionIdentity_ = other.executionIdentity_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Security.Identity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Security.Identity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object iamRole_ = ""; + /** + *
+       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+       * 
+ * + * string iam_role = 1; + */ + public java.lang.String getIamRole() { + java.lang.Object ref = iamRole_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iamRole_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+       * 
+ * + * string iam_role = 1; + */ + public com.google.protobuf.ByteString + getIamRoleBytes() { + java.lang.Object ref = iamRole_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iamRole_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+       * 
+ * + * string iam_role = 1; + */ + public Builder setIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + iamRole_ = value; + onChanged(); + return this; + } + /** + *
+       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+       * 
+ * + * string iam_role = 1; + */ + public Builder clearIamRole() { + + iamRole_ = getDefaultInstance().getIamRole(); + onChanged(); + return this; + } + /** + *
+       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
+       * 
+ * + * string iam_role = 1; + */ + public Builder setIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + iamRole_ = value; + onChanged(); + return this; + } + + private java.lang.Object k8SServiceAccount_ = ""; + /** + *
+       * k8s_service_account references a kubernetes service account to impersonate.
+       * 
+ * + * string k8s_service_account = 2; + */ + public java.lang.String getK8SServiceAccount() { + java.lang.Object ref = k8SServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + k8SServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * k8s_service_account references a kubernetes service account to impersonate.
+       * 
+ * + * string k8s_service_account = 2; + */ + public com.google.protobuf.ByteString + getK8SServiceAccountBytes() { + java.lang.Object ref = k8SServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + k8SServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * k8s_service_account references a kubernetes service account to impersonate.
+       * 
+ * + * string k8s_service_account = 2; + */ + public Builder setK8SServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + k8SServiceAccount_ = value; + onChanged(); + return this; + } + /** + *
+       * k8s_service_account references a kubernetes service account to impersonate.
+       * 
+ * + * string k8s_service_account = 2; + */ + public Builder clearK8SServiceAccount() { + + k8SServiceAccount_ = getDefaultInstance().getK8SServiceAccount(); + onChanged(); + return this; + } + /** + *
+       * k8s_service_account references a kubernetes service account to impersonate.
+       * 
+ * + * string k8s_service_account = 2; + */ + public Builder setK8SServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + k8SServiceAccount_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Security.OAuth2Client oauth2Client_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> oauth2ClientBuilder_; + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public boolean hasOauth2Client() { + return oauth2ClientBuilder_ != null || oauth2Client_ != null; + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public flyteidl.core.Security.OAuth2Client getOauth2Client() { + if (oauth2ClientBuilder_ == null) { + return oauth2Client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : oauth2Client_; + } else { + return oauth2ClientBuilder_.getMessage(); + } + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public Builder setOauth2Client(flyteidl.core.Security.OAuth2Client value) { + if (oauth2ClientBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oauth2Client_ = value; + onChanged(); + } else { + oauth2ClientBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public Builder setOauth2Client( + flyteidl.core.Security.OAuth2Client.Builder builderForValue) { + if (oauth2ClientBuilder_ == null) { + oauth2Client_ = builderForValue.build(); + onChanged(); + } else { + oauth2ClientBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public Builder mergeOauth2Client(flyteidl.core.Security.OAuth2Client value) { + if (oauth2ClientBuilder_ == null) { + if (oauth2Client_ != null) { + oauth2Client_ = + flyteidl.core.Security.OAuth2Client.newBuilder(oauth2Client_).mergeFrom(value).buildPartial(); + } else { + oauth2Client_ = value; + } + onChanged(); + } else { + oauth2ClientBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public Builder clearOauth2Client() { + if (oauth2ClientBuilder_ == null) { + oauth2Client_ = null; + onChanged(); + } else { + oauth2Client_ = null; + oauth2ClientBuilder_ = null; + } + + return this; + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public flyteidl.core.Security.OAuth2Client.Builder getOauth2ClientBuilder() { + + onChanged(); + return getOauth2ClientFieldBuilder().getBuilder(); + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + public flyteidl.core.Security.OAuth2ClientOrBuilder getOauth2ClientOrBuilder() { + if (oauth2ClientBuilder_ != null) { + return oauth2ClientBuilder_.getMessageOrBuilder(); + } else { + return oauth2Client_ == null ? + flyteidl.core.Security.OAuth2Client.getDefaultInstance() : oauth2Client_; + } + } + /** + *
+       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
+       * making external calls.
+       * 
+ * + * .flyteidl.core.OAuth2Client oauth2_client = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> + getOauth2ClientFieldBuilder() { + if (oauth2ClientBuilder_ == null) { + oauth2ClientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder>( + getOauth2Client(), + getParentForChildren(), + isClean()); + oauth2Client_ = null; + } + return oauth2ClientBuilder_; + } + + private java.lang.Object executionIdentity_ = ""; + /** + *
+       * execution_identity references the subject who makes the execution
+       * 
+ * + * string execution_identity = 4; + */ + public java.lang.String getExecutionIdentity() { + java.lang.Object ref = executionIdentity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionIdentity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * execution_identity references the subject who makes the execution
+       * 
+ * + * string execution_identity = 4; + */ + public com.google.protobuf.ByteString + getExecutionIdentityBytes() { + java.lang.Object ref = executionIdentity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * execution_identity references the subject who makes the execution
+       * 
+ * + * string execution_identity = 4; + */ + public Builder setExecutionIdentity( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executionIdentity_ = value; + onChanged(); + return this; + } + /** + *
+       * execution_identity references the subject who makes the execution
+       * 
+ * + * string execution_identity = 4; + */ + public Builder clearExecutionIdentity() { + + executionIdentity_ = getDefaultInstance().getExecutionIdentity(); + onChanged(); + return this; + } + /** + *
+       * execution_identity references the subject who makes the execution
+       * 
+ * + * string execution_identity = 4; + */ + public Builder setExecutionIdentityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executionIdentity_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Identity) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identity) + private static final flyteidl.core.Security.Identity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Security.Identity(); + } + + public static flyteidl.core.Security.Identity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Identity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Identity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Security.Identity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OAuth2TokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.OAuth2TokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+     * environment variables and as a filename for mounting tokens as files.
+     * +required
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+     * environment variables and as a filename for mounting tokens as files.
+     * +required
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + int getTypeValue(); + /** + *
+     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + flyteidl.core.Security.OAuth2TokenRequest.Type getType(); + + /** + *
+     * client references the client_id/secret to use to request the OAuth2 token.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + boolean hasClient(); + /** + *
+     * client references the client_id/secret to use to request the OAuth2 token.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + flyteidl.core.Security.OAuth2Client getClient(); + /** + *
+     * client references the client_id/secret to use to request the OAuth2 token.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + flyteidl.core.Security.OAuth2ClientOrBuilder getClientOrBuilder(); + + /** + *
+     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+     * information.
+     * +optional
+     * 
+ * + * string idp_discovery_endpoint = 4; + */ + java.lang.String getIdpDiscoveryEndpoint(); + /** + *
+     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+     * information.
+     * +optional
+     * 
+ * + * string idp_discovery_endpoint = 4; + */ + com.google.protobuf.ByteString + getIdpDiscoveryEndpointBytes(); + + /** + *
+     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+     * mandatory.
+     * +optional
+     * 
+ * + * string token_endpoint = 5; + */ + java.lang.String getTokenEndpoint(); + /** + *
+     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+     * mandatory.
+     * +optional
+     * 
+ * + * string token_endpoint = 5; + */ + com.google.protobuf.ByteString + getTokenEndpointBytes(); + } + /** + *
+   * OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.
+   * FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
+   * tokens are passed through environment variables.
+   * FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens
+   * are passed through file mounts.
+   * 
+ * + * Protobuf type {@code flyteidl.core.OAuth2TokenRequest} + */ + public static final class OAuth2TokenRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.OAuth2TokenRequest) + OAuth2TokenRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use OAuth2TokenRequest.newBuilder() to construct. + private OAuth2TokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OAuth2TokenRequest() { + name_ = ""; + type_ = 0; + idpDiscoveryEndpoint_ = ""; + tokenEndpoint_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OAuth2TokenRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: { + flyteidl.core.Security.OAuth2Client.Builder subBuilder = null; + if (client_ != null) { + subBuilder = client_.toBuilder(); + } + client_ = input.readMessage(flyteidl.core.Security.OAuth2Client.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(client_); + client_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + idpDiscoveryEndpoint_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + tokenEndpoint_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.OAuth2TokenRequest.class, flyteidl.core.Security.OAuth2TokenRequest.Builder.class); + } + + /** + *
+     * Type of the token requested.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.OAuth2TokenRequest.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials.
+       * 
+ * + * CLIENT_CREDENTIALS = 0; + */ + CLIENT_CREDENTIALS(0), + UNRECOGNIZED(-1), + ; + + /** + *
+       * CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials.
+       * 
+ * + * CLIENT_CREDENTIALS = 0; + */ + public static final int CLIENT_CREDENTIALS_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return CLIENT_CREDENTIALS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Security.OAuth2TokenRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.OAuth2TokenRequest.Type) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+     * environment variables and as a filename for mounting tokens as files.
+     * +required
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+     * environment variables and as a filename for mounting tokens as files.
+     * +required
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + public flyteidl.core.Security.OAuth2TokenRequest.Type getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Security.OAuth2TokenRequest.Type result = flyteidl.core.Security.OAuth2TokenRequest.Type.valueOf(type_); + return result == null ? flyteidl.core.Security.OAuth2TokenRequest.Type.UNRECOGNIZED : result; + } + + public static final int CLIENT_FIELD_NUMBER = 3; + private flyteidl.core.Security.OAuth2Client client_; + /** + *
+     * client references the client_id/secret to use to request the OAuth2 token.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public boolean hasClient() { + return client_ != null; + } + /** + *
+     * client references the client_id/secret to use to request the OAuth2 token.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public flyteidl.core.Security.OAuth2Client getClient() { + return client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : client_; + } + /** + *
+     * client references the client_id/secret to use to request the OAuth2 token.
+     * +required
+     * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public flyteidl.core.Security.OAuth2ClientOrBuilder getClientOrBuilder() { + return getClient(); + } + + public static final int IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER = 4; + private volatile java.lang.Object idpDiscoveryEndpoint_; + /** + *
+     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+     * information.
+     * +optional
+     * 
+ * + * string idp_discovery_endpoint = 4; + */ + public java.lang.String getIdpDiscoveryEndpoint() { + java.lang.Object ref = idpDiscoveryEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idpDiscoveryEndpoint_ = s; + return s; + } + } + /** + *
+     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+     * information.
+     * +optional
+     * 
+ * + * string idp_discovery_endpoint = 4; + */ + public com.google.protobuf.ByteString + getIdpDiscoveryEndpointBytes() { + java.lang.Object ref = idpDiscoveryEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idpDiscoveryEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 5; + private volatile java.lang.Object tokenEndpoint_; + /** + *
+     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+     * mandatory.
+     * +optional
+     * 
+ * + * string token_endpoint = 5; + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } + } + /** + *
+     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+     * mandatory.
+     * +optional
+     * 
+ * + * string token_endpoint = 5; + */ + public com.google.protobuf.ByteString + getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != flyteidl.core.Security.OAuth2TokenRequest.Type.CLIENT_CREDENTIALS.getNumber()) { + output.writeEnum(2, type_); + } + if (client_ != null) { + output.writeMessage(3, getClient()); + } + if (!getIdpDiscoveryEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, idpDiscoveryEndpoint_); + } + if (!getTokenEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tokenEndpoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != flyteidl.core.Security.OAuth2TokenRequest.Type.CLIENT_CREDENTIALS.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + if (client_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClient()); + } + if (!getIdpDiscoveryEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, idpDiscoveryEndpoint_); + } + if (!getTokenEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tokenEndpoint_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Security.OAuth2TokenRequest)) { + return super.equals(obj); + } + flyteidl.core.Security.OAuth2TokenRequest other = (flyteidl.core.Security.OAuth2TokenRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (hasClient() != other.hasClient()) return false; + if (hasClient()) { + if (!getClient() + .equals(other.getClient())) return false; + } + if (!getIdpDiscoveryEndpoint() + .equals(other.getIdpDiscoveryEndpoint())) return false; + if (!getTokenEndpoint() + .equals(other.getTokenEndpoint())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasClient()) { + hash = (37 * hash) + CLIENT_FIELD_NUMBER; + hash = (53 * hash) + getClient().hashCode(); + } + hash = (37 * hash) + IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getIdpDiscoveryEndpoint().hashCode(); + hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndpoint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Security.OAuth2TokenRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.
+     * FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
+     * tokens are passed through environment variables.
+     * FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens
+     * are passed through file mounts.
+     * 
+ * + * Protobuf type {@code flyteidl.core.OAuth2TokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.OAuth2TokenRequest) + flyteidl.core.Security.OAuth2TokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.OAuth2TokenRequest.class, flyteidl.core.Security.OAuth2TokenRequest.Builder.class); + } + + // Construct using flyteidl.core.Security.OAuth2TokenRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = 0; + + if (clientBuilder_ == null) { + client_ = null; + } else { + client_ = null; + clientBuilder_ = null; + } + idpDiscoveryEndpoint_ = ""; + + tokenEndpoint_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2TokenRequest getDefaultInstanceForType() { + return flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2TokenRequest build() { + flyteidl.core.Security.OAuth2TokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2TokenRequest buildPartial() { + flyteidl.core.Security.OAuth2TokenRequest result = new flyteidl.core.Security.OAuth2TokenRequest(this); + result.name_ = name_; + result.type_ = type_; + if (clientBuilder_ == null) { + result.client_ = client_; + } else { + result.client_ = clientBuilder_.build(); + } + result.idpDiscoveryEndpoint_ = idpDiscoveryEndpoint_; + result.tokenEndpoint_ = tokenEndpoint_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Security.OAuth2TokenRequest) { + return mergeFrom((flyteidl.core.Security.OAuth2TokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Security.OAuth2TokenRequest other) { + if (other == flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasClient()) { + mergeClient(other.getClient()); + } + if (!other.getIdpDiscoveryEndpoint().isEmpty()) { + idpDiscoveryEndpoint_ = other.idpDiscoveryEndpoint_; + onChanged(); + } + if (!other.getTokenEndpoint().isEmpty()) { + tokenEndpoint_ = other.tokenEndpoint_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Security.OAuth2TokenRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Security.OAuth2TokenRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+       * environment variables and as a filename for mounting tokens as files.
+       * +required
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+       * environment variables and as a filename for mounting tokens as files.
+       * +required
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+       * environment variables and as a filename for mounting tokens as files.
+       * +required
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+       * environment variables and as a filename for mounting tokens as files.
+       * +required
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
+       * environment variables and as a filename for mounting tokens as files.
+       * +required
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + public flyteidl.core.Security.OAuth2TokenRequest.Type getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Security.OAuth2TokenRequest.Type result = flyteidl.core.Security.OAuth2TokenRequest.Type.valueOf(type_); + return result == null ? flyteidl.core.Security.OAuth2TokenRequest.Type.UNRECOGNIZED : result; + } + /** + *
+       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + public Builder setType(flyteidl.core.Security.OAuth2TokenRequest.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Security.OAuth2Client client_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> clientBuilder_; + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public boolean hasClient() { + return clientBuilder_ != null || client_ != null; + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public flyteidl.core.Security.OAuth2Client getClient() { + if (clientBuilder_ == null) { + return client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : client_; + } else { + return clientBuilder_.getMessage(); + } + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public Builder setClient(flyteidl.core.Security.OAuth2Client value) { + if (clientBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + client_ = value; + onChanged(); + } else { + clientBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public Builder setClient( + flyteidl.core.Security.OAuth2Client.Builder builderForValue) { + if (clientBuilder_ == null) { + client_ = builderForValue.build(); + onChanged(); + } else { + clientBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public Builder mergeClient(flyteidl.core.Security.OAuth2Client value) { + if (clientBuilder_ == null) { + if (client_ != null) { + client_ = + flyteidl.core.Security.OAuth2Client.newBuilder(client_).mergeFrom(value).buildPartial(); + } else { + client_ = value; + } + onChanged(); + } else { + clientBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public Builder clearClient() { + if (clientBuilder_ == null) { + client_ = null; + onChanged(); + } else { + client_ = null; + clientBuilder_ = null; + } + + return this; + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public flyteidl.core.Security.OAuth2Client.Builder getClientBuilder() { + + onChanged(); + return getClientFieldBuilder().getBuilder(); + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + public flyteidl.core.Security.OAuth2ClientOrBuilder getClientOrBuilder() { + if (clientBuilder_ != null) { + return clientBuilder_.getMessageOrBuilder(); + } else { + return client_ == null ? + flyteidl.core.Security.OAuth2Client.getDefaultInstance() : client_; + } + } + /** + *
+       * client references the client_id/secret to use to request the OAuth2 token.
+       * +required
+       * 
+ * + * .flyteidl.core.OAuth2Client client = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> + getClientFieldBuilder() { + if (clientBuilder_ == null) { + clientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder>( + getClient(), + getParentForChildren(), + isClean()); + client_ = null; + } + return clientBuilder_; + } + + private java.lang.Object idpDiscoveryEndpoint_ = ""; + /** + *
+       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+       * information.
+       * +optional
+       * 
+ * + * string idp_discovery_endpoint = 4; + */ + public java.lang.String getIdpDiscoveryEndpoint() { + java.lang.Object ref = idpDiscoveryEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + idpDiscoveryEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+       * information.
+       * +optional
+       * 
+ * + * string idp_discovery_endpoint = 4; + */ + public com.google.protobuf.ByteString + getIdpDiscoveryEndpointBytes() { + java.lang.Object ref = idpDiscoveryEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + idpDiscoveryEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+       * information.
+       * +optional
+       * 
+ * + * string idp_discovery_endpoint = 4; + */ + public Builder setIdpDiscoveryEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + idpDiscoveryEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+       * information.
+       * +optional
+       * 
+ * + * string idp_discovery_endpoint = 4; + */ + public Builder clearIdpDiscoveryEndpoint() { + + idpDiscoveryEndpoint_ = getDefaultInstance().getIdpDiscoveryEndpoint(); + onChanged(); + return this; + } + /** + *
+       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
+       * information.
+       * +optional
+       * 
+ * + * string idp_discovery_endpoint = 4; + */ + public Builder setIdpDiscoveryEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + idpDiscoveryEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object tokenEndpoint_ = ""; + /** + *
+       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+       * mandatory.
+       * +optional
+       * 
+ * + * string token_endpoint = 5; + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+       * mandatory.
+       * +optional
+       * 
+ * + * string token_endpoint = 5; + */ + public com.google.protobuf.ByteString + getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+       * mandatory.
+       * +optional
+       * 
+ * + * string token_endpoint = 5; + */ + public Builder setTokenEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tokenEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+       * mandatory.
+       * +optional
+       * 
+ * + * string token_endpoint = 5; + */ + public Builder clearTokenEndpoint() { + + tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); + onChanged(); + return this; + } + /** + *
+       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
+       * mandatory.
+       * +optional
+       * 
+ * + * string token_endpoint = 5; + */ + public Builder setTokenEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tokenEndpoint_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.OAuth2TokenRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2TokenRequest) + private static final flyteidl.core.Security.OAuth2TokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Security.OAuth2TokenRequest(); + } + + public static flyteidl.core.Security.OAuth2TokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuth2TokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OAuth2TokenRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Security.OAuth2TokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecurityContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SecurityContext) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+     * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + boolean hasRunAs(); + /** + *
+     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+     * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + flyteidl.core.Security.Identity getRunAs(); + /** + *
+     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+     * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + flyteidl.core.Security.IdentityOrBuilder getRunAsOrBuilder(); + + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + java.util.List + getSecretsList(); + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + flyteidl.core.Security.Secret getSecrets(int index); + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + int getSecretsCount(); + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + java.util.List + getSecretsOrBuilderList(); + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + flyteidl.core.Security.SecretOrBuilder getSecretsOrBuilder( + int index); + + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + java.util.List + getTokensList(); + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + flyteidl.core.Security.OAuth2TokenRequest getTokens(int index); + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + int getTokensCount(); + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + java.util.List + getTokensOrBuilderList(); + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + flyteidl.core.Security.OAuth2TokenRequestOrBuilder getTokensOrBuilder( + int index); + } + /** + *
+   * SecurityContext holds security attributes that apply to tasks.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SecurityContext} + */ + public static final class SecurityContext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SecurityContext) + SecurityContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityContext.newBuilder() to construct. + private SecurityContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityContext() { + secrets_ = java.util.Collections.emptyList(); + tokens_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SecurityContext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Security.Identity.Builder subBuilder = null; + if (runAs_ != null) { + subBuilder = runAs_.toBuilder(); + } + runAs_ = input.readMessage(flyteidl.core.Security.Identity.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runAs_); + runAs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + secrets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + secrets_.add( + input.readMessage(flyteidl.core.Security.Secret.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tokens_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tokens_.add( + input.readMessage(flyteidl.core.Security.OAuth2TokenRequest.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + secrets_ = java.util.Collections.unmodifiableList(secrets_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + tokens_ = java.util.Collections.unmodifiableList(tokens_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.SecurityContext.class, flyteidl.core.Security.SecurityContext.Builder.class); + } + + private int bitField0_; + public static final int RUN_AS_FIELD_NUMBER = 1; + private flyteidl.core.Security.Identity runAs_; + /** + *
+     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+     * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public boolean hasRunAs() { + return runAs_ != null; + } + /** + *
+     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+     * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public flyteidl.core.Security.Identity getRunAs() { + return runAs_ == null ? flyteidl.core.Security.Identity.getDefaultInstance() : runAs_; + } + /** + *
+     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+     * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public flyteidl.core.Security.IdentityOrBuilder getRunAsOrBuilder() { + return getRunAs(); + } + + public static final int SECRETS_FIELD_NUMBER = 2; + private java.util.List secrets_; + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public java.util.List getSecretsList() { + return secrets_; + } + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public java.util.List + getSecretsOrBuilderList() { + return secrets_; + } + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public int getSecretsCount() { + return secrets_.size(); + } + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public flyteidl.core.Security.Secret getSecrets(int index) { + return secrets_.get(index); + } + /** + *
+     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public flyteidl.core.Security.SecretOrBuilder getSecretsOrBuilder( + int index) { + return secrets_.get(index); + } + + public static final int TOKENS_FIELD_NUMBER = 3; + private java.util.List tokens_; + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public java.util.List getTokensList() { + return tokens_; + } + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public java.util.List + getTokensOrBuilderList() { + return tokens_; + } + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public int getTokensCount() { + return tokens_.size(); + } + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public flyteidl.core.Security.OAuth2TokenRequest getTokens(int index) { + return tokens_.get(index); + } + /** + *
+     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+     * to the secret) and to pass it to the remote execution engine.
+     * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public flyteidl.core.Security.OAuth2TokenRequestOrBuilder getTokensOrBuilder( + int index) { + return tokens_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (runAs_ != null) { + output.writeMessage(1, getRunAs()); + } + for (int i = 0; i < secrets_.size(); i++) { + output.writeMessage(2, secrets_.get(i)); + } + for (int i = 0; i < tokens_.size(); i++) { + output.writeMessage(3, tokens_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runAs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRunAs()); + } + for (int i = 0; i < secrets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, secrets_.get(i)); + } + for (int i = 0; i < tokens_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tokens_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Security.SecurityContext)) { + return super.equals(obj); + } + flyteidl.core.Security.SecurityContext other = (flyteidl.core.Security.SecurityContext) obj; + + if (hasRunAs() != other.hasRunAs()) return false; + if (hasRunAs()) { + if (!getRunAs() + .equals(other.getRunAs())) return false; + } + if (!getSecretsList() + .equals(other.getSecretsList())) return false; + if (!getTokensList() + .equals(other.getTokensList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRunAs()) { + hash = (37 * hash) + RUN_AS_FIELD_NUMBER; + hash = (53 * hash) + getRunAs().hashCode(); + } + if (getSecretsCount() > 0) { + hash = (37 * hash) + SECRETS_FIELD_NUMBER; + hash = (53 * hash) + getSecretsList().hashCode(); + } + if (getTokensCount() > 0) { + hash = (37 * hash) + TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getTokensList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Security.SecurityContext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.SecurityContext parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.SecurityContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.SecurityContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.SecurityContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Security.SecurityContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Security.SecurityContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.SecurityContext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.SecurityContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Security.SecurityContext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Security.SecurityContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Security.SecurityContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Security.SecurityContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SecurityContext holds security attributes that apply to tasks.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SecurityContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SecurityContext) + flyteidl.core.Security.SecurityContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Security.SecurityContext.class, flyteidl.core.Security.SecurityContext.Builder.class); + } + + // Construct using flyteidl.core.Security.SecurityContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSecretsFieldBuilder(); + getTokensFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (runAsBuilder_ == null) { + runAs_ = null; + } else { + runAs_ = null; + runAsBuilder_ = null; + } + if (secretsBuilder_ == null) { + secrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + secretsBuilder_.clear(); + } + if (tokensBuilder_ == null) { + tokens_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + tokensBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_descriptor; + } + + @java.lang.Override + public flyteidl.core.Security.SecurityContext getDefaultInstanceForType() { + return flyteidl.core.Security.SecurityContext.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Security.SecurityContext build() { + flyteidl.core.Security.SecurityContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Security.SecurityContext buildPartial() { + flyteidl.core.Security.SecurityContext result = new flyteidl.core.Security.SecurityContext(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (runAsBuilder_ == null) { + result.runAs_ = runAs_; + } else { + result.runAs_ = runAsBuilder_.build(); + } + if (secretsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + secrets_ = java.util.Collections.unmodifiableList(secrets_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.secrets_ = secrets_; + } else { + result.secrets_ = secretsBuilder_.build(); + } + if (tokensBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + tokens_ = java.util.Collections.unmodifiableList(tokens_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tokens_ = tokens_; + } else { + result.tokens_ = tokensBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Security.SecurityContext) { + return mergeFrom((flyteidl.core.Security.SecurityContext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Security.SecurityContext other) { + if (other == flyteidl.core.Security.SecurityContext.getDefaultInstance()) return this; + if (other.hasRunAs()) { + mergeRunAs(other.getRunAs()); + } + if (secretsBuilder_ == null) { + if (!other.secrets_.isEmpty()) { + if (secrets_.isEmpty()) { + secrets_ = other.secrets_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSecretsIsMutable(); + secrets_.addAll(other.secrets_); + } + onChanged(); + } + } else { + if (!other.secrets_.isEmpty()) { + if (secretsBuilder_.isEmpty()) { + secretsBuilder_.dispose(); + secretsBuilder_ = null; + secrets_ = other.secrets_; + bitField0_ = (bitField0_ & ~0x00000002); + secretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecretsFieldBuilder() : null; + } else { + secretsBuilder_.addAllMessages(other.secrets_); + } + } + } + if (tokensBuilder_ == null) { + if (!other.tokens_.isEmpty()) { + if (tokens_.isEmpty()) { + tokens_ = other.tokens_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTokensIsMutable(); + tokens_.addAll(other.tokens_); + } + onChanged(); + } + } else { + if (!other.tokens_.isEmpty()) { + if (tokensBuilder_.isEmpty()) { + tokensBuilder_.dispose(); + tokensBuilder_ = null; + tokens_ = other.tokens_; + bitField0_ = (bitField0_ & ~0x00000004); + tokensBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTokensFieldBuilder() : null; + } else { + tokensBuilder_.addAllMessages(other.tokens_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Security.SecurityContext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Security.SecurityContext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Security.Identity runAs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.Identity, flyteidl.core.Security.Identity.Builder, flyteidl.core.Security.IdentityOrBuilder> runAsBuilder_; + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public boolean hasRunAs() { + return runAsBuilder_ != null || runAs_ != null; + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public flyteidl.core.Security.Identity getRunAs() { + if (runAsBuilder_ == null) { + return runAs_ == null ? flyteidl.core.Security.Identity.getDefaultInstance() : runAs_; + } else { + return runAsBuilder_.getMessage(); + } + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public Builder setRunAs(flyteidl.core.Security.Identity value) { + if (runAsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runAs_ = value; + onChanged(); + } else { + runAsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public Builder setRunAs( + flyteidl.core.Security.Identity.Builder builderForValue) { + if (runAsBuilder_ == null) { + runAs_ = builderForValue.build(); + onChanged(); + } else { + runAsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public Builder mergeRunAs(flyteidl.core.Security.Identity value) { + if (runAsBuilder_ == null) { + if (runAs_ != null) { + runAs_ = + flyteidl.core.Security.Identity.newBuilder(runAs_).mergeFrom(value).buildPartial(); + } else { + runAs_ = value; + } + onChanged(); + } else { + runAsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public Builder clearRunAs() { + if (runAsBuilder_ == null) { + runAs_ = null; + onChanged(); + } else { + runAs_ = null; + runAsBuilder_ = null; + } + + return this; + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public flyteidl.core.Security.Identity.Builder getRunAsBuilder() { + + onChanged(); + return getRunAsFieldBuilder().getBuilder(); + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + public flyteidl.core.Security.IdentityOrBuilder getRunAsOrBuilder() { + if (runAsBuilder_ != null) { + return runAsBuilder_.getMessageOrBuilder(); + } else { + return runAs_ == null ? + flyteidl.core.Security.Identity.getDefaultInstance() : runAs_; + } + } + /** + *
+       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
+       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
+       * 
+ * + * .flyteidl.core.Identity run_as = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.Identity, flyteidl.core.Security.Identity.Builder, flyteidl.core.Security.IdentityOrBuilder> + getRunAsFieldBuilder() { + if (runAsBuilder_ == null) { + runAsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.Identity, flyteidl.core.Security.Identity.Builder, flyteidl.core.Security.IdentityOrBuilder>( + getRunAs(), + getParentForChildren(), + isClean()); + runAs_ = null; + } + return runAsBuilder_; + } + + private java.util.List secrets_ = + java.util.Collections.emptyList(); + private void ensureSecretsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + secrets_ = new java.util.ArrayList(secrets_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> secretsBuilder_; + + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public java.util.List getSecretsList() { + if (secretsBuilder_ == null) { + return java.util.Collections.unmodifiableList(secrets_); + } else { + return secretsBuilder_.getMessageList(); + } + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public int getSecretsCount() { + if (secretsBuilder_ == null) { + return secrets_.size(); + } else { + return secretsBuilder_.getCount(); + } + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public flyteidl.core.Security.Secret getSecrets(int index) { + if (secretsBuilder_ == null) { + return secrets_.get(index); + } else { + return secretsBuilder_.getMessage(index); + } + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder setSecrets( + int index, flyteidl.core.Security.Secret value) { + if (secretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretsIsMutable(); + secrets_.set(index, value); + onChanged(); + } else { + secretsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder setSecrets( + int index, flyteidl.core.Security.Secret.Builder builderForValue) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.set(index, builderForValue.build()); + onChanged(); + } else { + secretsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder addSecrets(flyteidl.core.Security.Secret value) { + if (secretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretsIsMutable(); + secrets_.add(value); + onChanged(); + } else { + secretsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder addSecrets( + int index, flyteidl.core.Security.Secret value) { + if (secretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretsIsMutable(); + secrets_.add(index, value); + onChanged(); + } else { + secretsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder addSecrets( + flyteidl.core.Security.Secret.Builder builderForValue) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.add(builderForValue.build()); + onChanged(); + } else { + secretsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder addSecrets( + int index, flyteidl.core.Security.Secret.Builder builderForValue) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.add(index, builderForValue.build()); + onChanged(); + } else { + secretsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder addAllSecrets( + java.lang.Iterable values) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secrets_); + onChanged(); + } else { + secretsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder clearSecrets() { + if (secretsBuilder_ == null) { + secrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + secretsBuilder_.clear(); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public Builder removeSecrets(int index) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.remove(index); + onChanged(); + } else { + secretsBuilder_.remove(index); + } + return this; + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public flyteidl.core.Security.Secret.Builder getSecretsBuilder( + int index) { + return getSecretsFieldBuilder().getBuilder(index); + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public flyteidl.core.Security.SecretOrBuilder getSecretsOrBuilder( + int index) { + if (secretsBuilder_ == null) { + return secrets_.get(index); } else { + return secretsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public java.util.List + getSecretsOrBuilderList() { + if (secretsBuilder_ != null) { + return secretsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secrets_); + } + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public flyteidl.core.Security.Secret.Builder addSecretsBuilder() { + return getSecretsFieldBuilder().addBuilder( + flyteidl.core.Security.Secret.getDefaultInstance()); + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public flyteidl.core.Security.Secret.Builder addSecretsBuilder( + int index) { + return getSecretsFieldBuilder().addBuilder( + index, flyteidl.core.Security.Secret.getDefaultInstance()); + } + /** + *
+       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.Secret secrets = 2; + */ + public java.util.List + getSecretsBuilderList() { + return getSecretsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> + getSecretsFieldBuilder() { + if (secretsBuilder_ == null) { + secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder>( + secrets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + secrets_ = null; + } + return secretsBuilder_; + } + + private java.util.List tokens_ = + java.util.Collections.emptyList(); + private void ensureTokensIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tokens_ = new java.util.ArrayList(tokens_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Security.OAuth2TokenRequest, flyteidl.core.Security.OAuth2TokenRequest.Builder, flyteidl.core.Security.OAuth2TokenRequestOrBuilder> tokensBuilder_; + + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public java.util.List getTokensList() { + if (tokensBuilder_ == null) { + return java.util.Collections.unmodifiableList(tokens_); + } else { + return tokensBuilder_.getMessageList(); + } + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public int getTokensCount() { + if (tokensBuilder_ == null) { + return tokens_.size(); + } else { + return tokensBuilder_.getCount(); + } + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public flyteidl.core.Security.OAuth2TokenRequest getTokens(int index) { + if (tokensBuilder_ == null) { + return tokens_.get(index); + } else { + return tokensBuilder_.getMessage(index); + } + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder setTokens( + int index, flyteidl.core.Security.OAuth2TokenRequest value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.set(index, value); + onChanged(); + } else { + tokensBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder setTokens( + int index, flyteidl.core.Security.OAuth2TokenRequest.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.set(index, builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder addTokens(flyteidl.core.Security.OAuth2TokenRequest value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.add(value); + onChanged(); + } else { + tokensBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder addTokens( + int index, flyteidl.core.Security.OAuth2TokenRequest value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokensIsMutable(); + tokens_.add(index, value); + onChanged(); + } else { + tokensBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder addTokens( + flyteidl.core.Security.OAuth2TokenRequest.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder addTokens( + int index, flyteidl.core.Security.OAuth2TokenRequest.Builder builderForValue) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.add(index, builderForValue.build()); + onChanged(); + } else { + tokensBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder addAllTokens( + java.lang.Iterable values) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokens_); + onChanged(); + } else { + tokensBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder clearTokens() { + if (tokensBuilder_ == null) { + tokens_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + tokensBuilder_.clear(); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public Builder removeTokens(int index) { + if (tokensBuilder_ == null) { + ensureTokensIsMutable(); + tokens_.remove(index); + onChanged(); + } else { + tokensBuilder_.remove(index); + } + return this; + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public flyteidl.core.Security.OAuth2TokenRequest.Builder getTokensBuilder( + int index) { + return getTokensFieldBuilder().getBuilder(index); + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public flyteidl.core.Security.OAuth2TokenRequestOrBuilder getTokensOrBuilder( + int index) { + if (tokensBuilder_ == null) { + return tokens_.get(index); } else { + return tokensBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public java.util.List + getTokensOrBuilderList() { + if (tokensBuilder_ != null) { + return tokensBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tokens_); + } + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public flyteidl.core.Security.OAuth2TokenRequest.Builder addTokensBuilder() { + return getTokensFieldBuilder().addBuilder( + flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance()); + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public flyteidl.core.Security.OAuth2TokenRequest.Builder addTokensBuilder( + int index) { + return getTokensFieldBuilder().addBuilder( + index, flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance()); + } + /** + *
+       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
+       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
+       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
+       * to the secret) and to pass it to the remote execution engine.
+       * 
+ * + * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + public java.util.List + getTokensBuilderList() { + return getTokensFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Security.OAuth2TokenRequest, flyteidl.core.Security.OAuth2TokenRequest.Builder, flyteidl.core.Security.OAuth2TokenRequestOrBuilder> + getTokensFieldBuilder() { + if (tokensBuilder_ == null) { + tokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Security.OAuth2TokenRequest, flyteidl.core.Security.OAuth2TokenRequest.Builder, flyteidl.core.Security.OAuth2TokenRequestOrBuilder>( + tokens_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + tokens_ = null; + } + return tokensBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SecurityContext) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SecurityContext) + private static final flyteidl.core.Security.SecurityContext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Security.SecurityContext(); + } + + public static flyteidl.core.Security.SecurityContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SecurityContext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Security.SecurityContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Secret_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Secret_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_OAuth2Client_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_OAuth2Client_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Identity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Identity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_OAuth2TokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SecurityContext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SecurityContext_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/core/security.proto\022\rflyteidl" + + ".core\"\244\001\n\006Secret\022\r\n\005group\030\001 \001(\t\022\025\n\rgroup" + + "_version\030\002 \001(\t\022\013\n\003key\030\003 \001(\t\022:\n\021mount_req" + + "uirement\030\004 \001(\0162\037.flyteidl.core.Secret.Mo" + + "untType\"+\n\tMountType\022\007\n\003ANY\020\000\022\013\n\007ENV_VAR" + + "\020\001\022\010\n\004FILE\020\002\"O\n\014OAuth2Client\022\021\n\tclient_i" + + "d\030\001 \001(\t\022,\n\rclient_secret\030\002 \001(\0132\025.flyteid" + + "l.core.Secret\"\211\001\n\010Identity\022\020\n\010iam_role\030\001" + + " \001(\t\022\033\n\023k8s_service_account\030\002 \001(\t\0222\n\roau" + + "th2_client\030\003 \001(\0132\033.flyteidl.core.OAuth2C" + + "lient\022\032\n\022execution_identity\030\004 \001(\t\"\335\001\n\022OA" + + "uth2TokenRequest\022\014\n\004name\030\001 \001(\t\0224\n\004type\030\002" + + " \001(\0162&.flyteidl.core.OAuth2TokenRequest." + + "Type\022+\n\006client\030\003 \001(\0132\033.flyteidl.core.OAu" + + "th2Client\022\036\n\026idp_discovery_endpoint\030\004 \001(" + + "\t\022\026\n\016token_endpoint\030\005 \001(\t\"\036\n\004Type\022\026\n\022CLI" + + "ENT_CREDENTIALS\020\000\"\225\001\n\017SecurityContext\022\'\n" + + "\006run_as\030\001 \001(\0132\027.flyteidl.core.Identity\022&" + + "\n\007secrets\030\002 \003(\0132\025.flyteidl.core.Secret\0221" + + "\n\006tokens\030\003 \003(\0132!.flyteidl.core.OAuth2Tok" + + "enRequestB6Z4github.com/flyteorg/flyteid" + + "l/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_core_Secret_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Secret_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Secret_descriptor, + new java.lang.String[] { "Group", "GroupVersion", "Key", "MountRequirement", }); + internal_static_flyteidl_core_OAuth2Client_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_OAuth2Client_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_OAuth2Client_descriptor, + new java.lang.String[] { "ClientId", "ClientSecret", }); + internal_static_flyteidl_core_Identity_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_Identity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Identity_descriptor, + new java.lang.String[] { "IamRole", "K8SServiceAccount", "Oauth2Client", "ExecutionIdentity", }); + internal_static_flyteidl_core_OAuth2TokenRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_OAuth2TokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_OAuth2TokenRequest_descriptor, + new java.lang.String[] { "Name", "Type", "Client", "IdpDiscoveryEndpoint", "TokenEndpoint", }); + internal_static_flyteidl_core_SecurityContext_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_SecurityContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SecurityContext_descriptor, + new java.lang.String[] { "RunAs", "Secrets", "Tokens", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Tasks.java b/flyteidl/gen/pb-java/flyteidl/core/Tasks.java new file mode 100644 index 0000000000..a7d7acf1a6 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Tasks.java @@ -0,0 +1,18879 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +package flyteidl.core; + +public final class Tasks { + private Tasks() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ResourcesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + int getRequestsCount(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index); + + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + int getLimitsCount(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsOrBuilderList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index); + } + /** + *
+   * A customizable interface to convey resources requested for a container. This can be interpreted differently for different
+   * container engines.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Resources extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources) + ResourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resources.newBuilder() to construct. + private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Resources() { + requests_ = java.util.Collections.emptyList(); + limits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Resources( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + limits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + limits_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + /** + *
+     * Known resource names.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.Resources.ResourceName} + */ + public enum ResourceName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CPU = 1; + */ + CPU(1), + /** + * GPU = 2; + */ + GPU(2), + /** + * MEMORY = 3; + */ + MEMORY(3), + /** + * STORAGE = 4; + */ + STORAGE(4), + /** + *
+       * For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.
+       * 
+ * + * EPHEMERAL_STORAGE = 5; + */ + EPHEMERAL_STORAGE(5), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CPU = 1; + */ + public static final int CPU_VALUE = 1; + /** + * GPU = 2; + */ + public static final int GPU_VALUE = 2; + /** + * MEMORY = 3; + */ + public static final int MEMORY_VALUE = 3; + /** + * STORAGE = 4; + */ + public static final int STORAGE_VALUE = 4; + /** + *
+       * For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.
+       * 
+ * + * EPHEMERAL_STORAGE = 5; + */ + public static final int EPHEMERAL_STORAGE_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceName valueOf(int value) { + return forNumber(value); + } + + public static ResourceName forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CPU; + case 2: return GPU; + case 3: return MEMORY; + case 4: return STORAGE; + case 5: return EPHEMERAL_STORAGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceName findValueByNumber(int number) { + return ResourceName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.Resources.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceName[] VALUES = values(); + + public static ResourceName valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ResourceName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.Resources.ResourceName) + } + + public interface ResourceEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources.ResourceEntry) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + int getNameValue(); + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + flyteidl.core.Tasks.Resources.ResourceName getName(); + + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+     * Encapsulates a resource name and value.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class ResourceEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources.ResourceEntry) + ResourceEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceEntry.newBuilder() to construct. + private ResourceEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceEntry() { + name_ = 0; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + name_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private int name_; + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + output.writeEnum(1, name_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.Resources.ResourceEntry)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources.ResourceEntry other = (flyteidl.core.Tasks.Resources.ResourceEntry) obj; + + if (name_ != other.name_) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + name_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.Resources.ResourceEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Encapsulates a resource name and value.
+       * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources.ResourceEntry) + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.ResourceEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = 0; + + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry build() { + flyteidl.core.Tasks.Resources.ResourceEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry buildPartial() { + flyteidl.core.Tasks.Resources.ResourceEntry result = new flyteidl.core.Tasks.Resources.ResourceEntry(this); + result.name_ = name_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.Resources.ResourceEntry) { + return mergeFrom((flyteidl.core.Tasks.Resources.ResourceEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources.ResourceEntry other) { + if (other == flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()) return this; + if (other.name_ != 0) { + setNameValue(other.getNameValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.Resources.ResourceEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources.ResourceEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int name_ = 0; + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setNameValue(int value) { + name_ = value; + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setName(flyteidl.core.Tasks.Resources.ResourceName value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder clearName() { + + name_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Resources.ResourceEntry) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) + private static final flyteidl.core.Tasks.Resources.ResourceEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources.ResourceEntry(); + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + public static final int LIMITS_FIELD_NUMBER = 2; + private java.util.List limits_; + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + return limits_.size(); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + return limits_.get(index); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + return limits_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + output.writeMessage(2, limits_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, limits_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.Resources)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources other = (flyteidl.core.Tasks.Resources) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) return false; + if (!getLimitsList() + .equals(other.getLimitsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (getLimitsCount() > 0) { + hash = (37 * hash) + LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getLimitsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.Resources prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A customizable interface to convey resources requested for a container. This can be interpreted differently for different
+     * container engines.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources) + flyteidl.core.Tasks.ResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + getLimitsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + limitsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources build() { + flyteidl.core.Tasks.Resources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources buildPartial() { + flyteidl.core.Tasks.Resources result = new flyteidl.core.Tasks.Resources(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + if (limitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.limits_ = limits_; + } else { + result.limits_ = limitsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.Resources) { + return mergeFrom((flyteidl.core.Tasks.Resources)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources other) { + if (other == flyteidl.core.Tasks.Resources.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + if (limitsBuilder_ == null) { + if (!other.limits_.isEmpty()) { + if (limits_.isEmpty()) { + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLimitsIsMutable(); + limits_.addAll(other.limits_); + } + onChanged(); + } + } else { + if (!other.limits_.isEmpty()) { + if (limitsBuilder_.isEmpty()) { + limitsBuilder_.dispose(); + limitsBuilder_ = null; + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + limitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLimitsFieldBuilder() : null; + } else { + limitsBuilder_.addAllMessages(other.limits_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.Resources parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> requestsBuilder_; + + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + private java.util.List limits_ = + java.util.Collections.emptyList(); + private void ensureLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + limits_ = new java.util.ArrayList(limits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> limitsBuilder_; + + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + if (limitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(limits_); + } else { + return limitsBuilder_.getMessageList(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + if (limitsBuilder_ == null) { + return limits_.size(); + } else { + return limitsBuilder_.getCount(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); + } else { + return limitsBuilder_.getMessage(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.set(index, value); + onChanged(); + } else { + limitsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.set(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(value); + onChanged(); + } else { + limitsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(index, value); + onChanged(); + } else { + limitsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addAllLimits( + java.lang.Iterable values) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, limits_); + onChanged(); + } else { + limitsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder clearLimits() { + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + limitsBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder removeLimits(int index) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.remove(index); + onChanged(); + } else { + limitsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getLimitsBuilder( + int index) { + return getLimitsFieldBuilder().getBuilder(index); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); } else { + return limitsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + if (limitsBuilder_ != null) { + return limitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(limits_); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder() { + return getLimitsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder( + int index) { + return getLimitsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsBuilderList() { + return getLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getLimitsFieldBuilder() { + if (limitsBuilder_ == null) { + limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + limits_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + limits_ = null; + } + return limitsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Resources) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) + private static final flyteidl.core.Tasks.Resources DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources(); + } + + public static flyteidl.core.Tasks.Resources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Resources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resources(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuntimeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RuntimeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + int getTypeValue(); + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType(); + + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + java.lang.String getVersion(); + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + java.lang.String getFlavor(); + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + com.google.protobuf.ByteString + getFlavorBytes(); + } + /** + *
+   * Runtime information. This is loosely defined to allow for extensibility.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class RuntimeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RuntimeMetadata) + RuntimeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeMetadata.newBuilder() to construct. + private RuntimeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuntimeMetadata() { + type_ = 0; + version_ = ""; + flavor_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RuntimeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + flavor_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.RuntimeMetadata.RuntimeType} + */ + public enum RuntimeType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OTHER = 0; + */ + OTHER(0), + /** + * FLYTE_SDK = 1; + */ + FLYTE_SDK(1), + UNRECOGNIZED(-1), + ; + + /** + * OTHER = 0; + */ + public static final int OTHER_VALUE = 0; + /** + * FLYTE_SDK = 1; + */ + public static final int FLYTE_SDK_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuntimeType valueOf(int value) { + return forNumber(value); + } + + public static RuntimeType forNumber(int value) { + switch (value) { + case 0: return OTHER; + case 1: return FLYTE_SDK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeType findValueByNumber(int number) { + return RuntimeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.RuntimeMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final RuntimeType[] VALUES = values(); + + public static RuntimeType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RuntimeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.RuntimeMetadata.RuntimeType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLAVOR_FIELD_NUMBER = 3; + private volatile java.lang.Object flavor_; + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flavor_ = s; + return s; + } + } + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + output.writeEnum(1, type_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!getFlavorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flavor_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!getFlavorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flavor_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.RuntimeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.RuntimeMetadata other = (flyteidl.core.Tasks.RuntimeMetadata) obj; + + if (type_ != other.type_) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getFlavor() + .equals(other.getFlavor())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + FLAVOR_FIELD_NUMBER; + hash = (53 * hash) + getFlavor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.RuntimeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Runtime information. This is loosely defined to allow for extensibility.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RuntimeMetadata) + flyteidl.core.Tasks.RuntimeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.RuntimeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + version_ = ""; + + flavor_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata build() { + flyteidl.core.Tasks.RuntimeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata buildPartial() { + flyteidl.core.Tasks.RuntimeMetadata result = new flyteidl.core.Tasks.RuntimeMetadata(this); + result.type_ = type_; + result.version_ = version_; + result.flavor_ = flavor_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.RuntimeMetadata) { + return mergeFrom((flyteidl.core.Tasks.RuntimeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.RuntimeMetadata other) { + if (other == flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getFlavor().isEmpty()) { + flavor_ = other.flavor_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.RuntimeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.RuntimeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setType(flyteidl.core.Tasks.RuntimeMetadata.RuntimeType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object flavor_ = ""; + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flavor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flavor_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder clearFlavor() { + + flavor_ = getDefaultInstance().getFlavor(); + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flavor_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.RuntimeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) + private static final flyteidl.core.Tasks.RuntimeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.RuntimeMetadata(); + } + + public static flyteidl.core.Tasks.RuntimeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + boolean getDiscoverable(); + + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + boolean hasRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadata getRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder(); + + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + java.lang.String getDiscoveryVersion(); + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + com.google.protobuf.ByteString + getDiscoveryVersionBytes(); + + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + java.lang.String getDeprecatedErrorMessage(); + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes(); + + /** + * bool interruptible = 8; + */ + boolean getInterruptible(); + + /** + *
+     * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
+     * 
+ * + * bool cache_serializable = 9; + */ + boolean getCacheSerializable(); + + /** + *
+     * Indicates whether the task will generate a Deck URI when it finishes executing.
+     * 
+ * + * bool generates_deck = 10; + */ + boolean getGeneratesDeck(); + + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + int getTagsCount(); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + boolean containsTags( + java.lang.String key); + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTags(); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + java.util.Map + getTagsMap(); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + + java.lang.String getTagsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + + java.lang.String getTagsOrThrow( + java.lang.String key); + + /** + *
+     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+     * identically as, the default PodTemplate configured in FlytePropeller.
+     * 
+ * + * string pod_template_name = 12; + */ + java.lang.String getPodTemplateName(); + /** + *
+     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+     * identically as, the default PodTemplate configured in FlytePropeller.
+     * 
+ * + * string pod_template_name = 12; + */ + com.google.protobuf.ByteString + getPodTemplateNameBytes(); + + public flyteidl.core.Tasks.TaskMetadata.InterruptibleValueCase getInterruptibleValueCase(); + } + /** + *
+   * Task Metadata
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class TaskMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskMetadata) + TaskMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskMetadata.newBuilder() to construct. + private TaskMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskMetadata() { + discoveryVersion_ = ""; + deprecatedErrorMessage_ = ""; + podTemplateName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + discoverable_ = input.readBool(); + break; + } + case 18: { + flyteidl.core.Tasks.RuntimeMetadata.Builder subBuilder = null; + if (runtime_ != null) { + subBuilder = runtime_.toBuilder(); + } + runtime_ = input.readMessage(flyteidl.core.Tasks.RuntimeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtime_); + runtime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + discoveryVersion_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + deprecatedErrorMessage_ = s; + break; + } + case 64: { + interruptibleValueCase_ = 8; + interruptibleValue_ = input.readBool(); + break; + } + case 72: { + + cacheSerializable_ = input.readBool(); + break; + } + case 80: { + + generatesDeck_ = input.readBool(); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000200) != 0)) { + tags_ = com.google.protobuf.MapField.newMapField( + TagsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000200; + } + com.google.protobuf.MapEntry + tags__ = input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + tags_.getMutableMap().put( + tags__.getKey(), tags__.getValue()); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + podTemplateName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + private int bitField0_; + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public enum InterruptibleValueCase + implements com.google.protobuf.Internal.EnumLite { + INTERRUPTIBLE(8), + INTERRUPTIBLEVALUE_NOT_SET(0); + private final int value; + private InterruptibleValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterruptibleValueCase valueOf(int value) { + return forNumber(value); + } + + public static InterruptibleValueCase forNumber(int value) { + switch (value) { + case 8: return INTERRUPTIBLE; + case 0: return INTERRUPTIBLEVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public static final int DISCOVERABLE_FIELD_NUMBER = 1; + private boolean discoverable_; + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + + public static final int RUNTIME_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.RuntimeMetadata runtime_; + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtime_ != null; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + return getRuntime(); + } + + public static final int TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + public static final int DISCOVERY_VERSION_FIELD_NUMBER = 6; + private volatile java.lang.Object discoveryVersion_; + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + discoveryVersion_ = s; + return s; + } + } + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER = 7; + private volatile java.lang.Object deprecatedErrorMessage_; + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deprecatedErrorMessage_ = s; + return s; + } + } + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 8; + /** + * bool interruptible = 8; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 8) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + + public static final int CACHE_SERIALIZABLE_FIELD_NUMBER = 9; + private boolean cacheSerializable_; + /** + *
+     * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
+     * 
+ * + * bool cache_serializable = 9; + */ + public boolean getCacheSerializable() { + return cacheSerializable_; + } + + public static final int GENERATES_DECK_FIELD_NUMBER = 10; + private boolean generatesDeck_; + /** + *
+     * Indicates whether the task will generate a Deck URI when it finishes executing.
+     * 
+ * + * bool generates_deck = 10; + */ + public boolean getGeneratesDeck() { + return generatesDeck_; + } + + public static final int TAGS_FIELD_NUMBER = 11; + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + + public java.lang.String getTagsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 11; + */ + + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int POD_TEMPLATE_NAME_FIELD_NUMBER = 12; + private volatile java.lang.Object podTemplateName_; + /** + *
+     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+     * identically as, the default PodTemplate configured in FlytePropeller.
+     * 
+ * + * string pod_template_name = 12; + */ + public java.lang.String getPodTemplateName() { + java.lang.Object ref = podTemplateName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podTemplateName_ = s; + return s; + } + } + /** + *
+     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+     * identically as, the default PodTemplate configured in FlytePropeller.
+     * 
+ * + * string pod_template_name = 12; + */ + public com.google.protobuf.ByteString + getPodTemplateNameBytes() { + java.lang.Object ref = podTemplateName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podTemplateName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (discoverable_ != false) { + output.writeBool(1, discoverable_); + } + if (runtime_ != null) { + output.writeMessage(2, getRuntime()); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deprecatedErrorMessage_); + } + if (interruptibleValueCase_ == 8) { + output.writeBool( + 8, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + if (cacheSerializable_ != false) { + output.writeBool(9, cacheSerializable_); + } + if (generatesDeck_ != false) { + output.writeBool(10, generatesDeck_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTags(), + TagsDefaultEntryHolder.defaultEntry, + 11); + if (!getPodTemplateNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, podTemplateName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (discoverable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, discoverable_); + } + if (runtime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRuntime()); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deprecatedErrorMessage_); + } + if (interruptibleValueCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 8, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + if (cacheSerializable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, cacheSerializable_); + } + if (generatesDeck_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, generatesDeck_); + } + for (java.util.Map.Entry entry + : internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry + tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, tags__); + } + if (!getPodTemplateNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, podTemplateName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.TaskMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskMetadata other = (flyteidl.core.Tasks.TaskMetadata) obj; + + if (getDiscoverable() + != other.getDiscoverable()) return false; + if (hasRuntime() != other.hasRuntime()) return false; + if (hasRuntime()) { + if (!getRuntime() + .equals(other.getRuntime())) return false; + } + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (hasRetries() != other.hasRetries()) return false; + if (hasRetries()) { + if (!getRetries() + .equals(other.getRetries())) return false; + } + if (!getDiscoveryVersion() + .equals(other.getDiscoveryVersion())) return false; + if (!getDeprecatedErrorMessage() + .equals(other.getDeprecatedErrorMessage())) return false; + if (getCacheSerializable() + != other.getCacheSerializable()) return false; + if (getGeneratesDeck() + != other.getGeneratesDeck()) return false; + if (!internalGetTags().equals( + other.internalGetTags())) return false; + if (!getPodTemplateName() + .equals(other.getPodTemplateName())) return false; + if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; + switch (interruptibleValueCase_) { + case 8: + if (getInterruptible() + != other.getInterruptible()) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISCOVERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDiscoverable()); + if (hasRuntime()) { + hash = (37 * hash) + RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getRuntime().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + hash = (37 * hash) + DISCOVERY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryVersion().hashCode(); + hash = (37 * hash) + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedErrorMessage().hashCode(); + hash = (37 * hash) + CACHE_SERIALIZABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCacheSerializable()); + hash = (37 * hash) + GENERATES_DECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGeneratesDeck()); + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (37 * hash) + POD_TEMPLATE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPodTemplateName().hashCode(); + switch (interruptibleValueCase_) { + case 8: + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.TaskMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Task Metadata
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskMetadata) + flyteidl.core.Tasks.TaskMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 11: + return internalGetTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 11: + return internalGetMutableTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + discoverable_ = false; + + if (runtimeBuilder_ == null) { + runtime_ = null; + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + discoveryVersion_ = ""; + + deprecatedErrorMessage_ = ""; + + cacheSerializable_ = false; + + generatesDeck_ = false; + + internalGetMutableTags().clear(); + podTemplateName_ = ""; + + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata build() { + flyteidl.core.Tasks.TaskMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata buildPartial() { + flyteidl.core.Tasks.TaskMetadata result = new flyteidl.core.Tasks.TaskMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.discoverable_ = discoverable_; + if (runtimeBuilder_ == null) { + result.runtime_ = runtime_; + } else { + result.runtime_ = runtimeBuilder_.build(); + } + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + result.discoveryVersion_ = discoveryVersion_; + result.deprecatedErrorMessage_ = deprecatedErrorMessage_; + if (interruptibleValueCase_ == 8) { + result.interruptibleValue_ = interruptibleValue_; + } + result.cacheSerializable_ = cacheSerializable_; + result.generatesDeck_ = generatesDeck_; + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + result.podTemplateName_ = podTemplateName_; + result.bitField0_ = to_bitField0_; + result.interruptibleValueCase_ = interruptibleValueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.TaskMetadata) { + return mergeFrom((flyteidl.core.Tasks.TaskMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskMetadata other) { + if (other == flyteidl.core.Tasks.TaskMetadata.getDefaultInstance()) return this; + if (other.getDiscoverable() != false) { + setDiscoverable(other.getDiscoverable()); + } + if (other.hasRuntime()) { + mergeRuntime(other.getRuntime()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + if (!other.getDiscoveryVersion().isEmpty()) { + discoveryVersion_ = other.discoveryVersion_; + onChanged(); + } + if (!other.getDeprecatedErrorMessage().isEmpty()) { + deprecatedErrorMessage_ = other.deprecatedErrorMessage_; + onChanged(); + } + if (other.getCacheSerializable() != false) { + setCacheSerializable(other.getCacheSerializable()); + } + if (other.getGeneratesDeck() != false) { + setGeneratesDeck(other.getGeneratesDeck()); + } + internalGetMutableTags().mergeFrom( + other.internalGetTags()); + if (!other.getPodTemplateName().isEmpty()) { + podTemplateName_ = other.podTemplateName_; + onChanged(); + } + switch (other.getInterruptibleValueCase()) { + case INTERRUPTIBLE: { + setInterruptible(other.getInterruptible()); + break; + } + case INTERRUPTIBLEVALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.TaskMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public Builder clearInterruptibleValue() { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private boolean discoverable_ ; + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder setDiscoverable(boolean value) { + + discoverable_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder clearDiscoverable() { + + discoverable_ = false; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.RuntimeMetadata runtime_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> runtimeBuilder_; + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtimeBuilder_ != null || runtime_ != null; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + if (runtimeBuilder_ == null) { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } else { + return runtimeBuilder_.getMessage(); + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtime_ = value; + onChanged(); + } else { + runtimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime( + flyteidl.core.Tasks.RuntimeMetadata.Builder builderForValue) { + if (runtimeBuilder_ == null) { + runtime_ = builderForValue.build(); + onChanged(); + } else { + runtimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder mergeRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (runtime_ != null) { + runtime_ = + flyteidl.core.Tasks.RuntimeMetadata.newBuilder(runtime_).mergeFrom(value).buildPartial(); + } else { + runtime_ = value; + } + onChanged(); + } else { + runtimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder clearRuntime() { + if (runtimeBuilder_ == null) { + runtime_ = null; + onChanged(); + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata.Builder getRuntimeBuilder() { + + onChanged(); + return getRuntimeFieldBuilder().getBuilder(); + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + if (runtimeBuilder_ != null) { + return runtimeBuilder_.getMessageOrBuilder(); + } else { + return runtime_ == null ? + flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> + getRuntimeFieldBuilder() { + if (runtimeBuilder_ == null) { + runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder>( + getRuntime(), + getParentForChildren(), + isClean()); + runtime_ = null; + } + return runtimeBuilder_; + } + + private com.google.protobuf.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + + private java.lang.Object discoveryVersion_ = ""; + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + discoveryVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + discoveryVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder clearDiscoveryVersion() { + + discoveryVersion_ = getDefaultInstance().getDiscoveryVersion(); + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + discoveryVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object deprecatedErrorMessage_ = ""; + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deprecatedErrorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder clearDeprecatedErrorMessage() { + + deprecatedErrorMessage_ = getDefaultInstance().getDeprecatedErrorMessage(); + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + + /** + * bool interruptible = 8; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 8) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + /** + * bool interruptible = 8; + */ + public Builder setInterruptible(boolean value) { + interruptibleValueCase_ = 8; + interruptibleValue_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 8; + */ + public Builder clearInterruptible() { + if (interruptibleValueCase_ == 8) { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + } + return this; + } + + private boolean cacheSerializable_ ; + /** + *
+       * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
+       * 
+ * + * bool cache_serializable = 9; + */ + public boolean getCacheSerializable() { + return cacheSerializable_; + } + /** + *
+       * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
+       * 
+ * + * bool cache_serializable = 9; + */ + public Builder setCacheSerializable(boolean value) { + + cacheSerializable_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
+       * 
+ * + * bool cache_serializable = 9; + */ + public Builder clearCacheSerializable() { + + cacheSerializable_ = false; + onChanged(); + return this; + } + + private boolean generatesDeck_ ; + /** + *
+       * Indicates whether the task will generate a Deck URI when it finishes executing.
+       * 
+ * + * bool generates_deck = 10; + */ + public boolean getGeneratesDeck() { + return generatesDeck_; + } + /** + *
+       * Indicates whether the task will generate a Deck URI when it finishes executing.
+       * 
+ * + * bool generates_deck = 10; + */ + public Builder setGeneratesDeck(boolean value) { + + generatesDeck_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates whether the task will generate a Deck URI when it finishes executing.
+       * 
+ * + * bool generates_deck = 10; + */ + public Builder clearGeneratesDeck() { + + generatesDeck_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + private com.google.protobuf.MapField + internalGetMutableTags() { + onChanged();; + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField( + TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 11; + */ + + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 11; + */ + + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 11; + */ + + public java.lang.String getTagsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 11; + */ + + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + internalGetMutableTags().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 11; + */ + + public Builder removeTags( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableTags().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTags() { + return internalGetMutableTags().getMutableMap(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 11; + */ + public Builder putTags( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableTags().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 11; + */ + + public Builder putAllTags( + java.util.Map values) { + internalGetMutableTags().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object podTemplateName_ = ""; + /** + *
+       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+       * identically as, the default PodTemplate configured in FlytePropeller.
+       * 
+ * + * string pod_template_name = 12; + */ + public java.lang.String getPodTemplateName() { + java.lang.Object ref = podTemplateName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podTemplateName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+       * identically as, the default PodTemplate configured in FlytePropeller.
+       * 
+ * + * string pod_template_name = 12; + */ + public com.google.protobuf.ByteString + getPodTemplateNameBytes() { + java.lang.Object ref = podTemplateName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podTemplateName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+       * identically as, the default PodTemplate configured in FlytePropeller.
+       * 
+ * + * string pod_template_name = 12; + */ + public Builder setPodTemplateName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + podTemplateName_ = value; + onChanged(); + return this; + } + /** + *
+       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+       * identically as, the default PodTemplate configured in FlytePropeller.
+       * 
+ * + * string pod_template_name = 12; + */ + public Builder clearPodTemplateName() { + + podTemplateName_ = getDefaultInstance().getPodTemplateName(); + onChanged(); + return this; + } + /** + *
+       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
+       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
+       * identically as, the default PodTemplate configured in FlytePropeller.
+       * 
+ * + * string pod_template_name = 12; + */ + public Builder setPodTemplateNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + podTemplateName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) + private static final flyteidl.core.Tasks.TaskMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskMetadata(); + } + + public static flyteidl.core.Tasks.TaskMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + java.lang.String getType(); + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadata getMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + boolean hasInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + boolean hasCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.Struct getCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.StructOrBuilder getCustomOrBuilder(); + + /** + * .flyteidl.core.Container container = 6; + */ + boolean hasContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.Container getContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder(); + + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + boolean hasK8SPod(); + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + flyteidl.core.Tasks.K8sPod getK8SPod(); + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + flyteidl.core.Tasks.K8sPodOrBuilder getK8SPodOrBuilder(); + + /** + * .flyteidl.core.Sql sql = 18; + */ + boolean hasSql(); + /** + * .flyteidl.core.Sql sql = 18; + */ + flyteidl.core.Tasks.Sql getSql(); + /** + * .flyteidl.core.Sql sql = 18; + */ + flyteidl.core.Tasks.SqlOrBuilder getSqlOrBuilder(); + + /** + *
+     * This can be used to customize task handling at execution time for the same task type.
+     * 
+ * + * int32 task_type_version = 7; + */ + int getTaskTypeVersion(); + + /** + *
+     * security_context encapsulates security attributes requested to run this task.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + boolean hasSecurityContext(); + /** + *
+     * security_context encapsulates security attributes requested to run this task.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + flyteidl.core.Security.SecurityContext getSecurityContext(); + /** + *
+     * security_context encapsulates security attributes requested to run this task.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); + + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + int getConfigCount(); + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + boolean containsConfig( + java.lang.String key); + /** + * Use {@link #getConfigMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getConfig(); + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + java.util.Map + getConfigMap(); + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + + java.lang.String getConfigOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + + java.lang.String getConfigOrThrow( + java.lang.String key); + + public flyteidl.core.Tasks.TaskTemplate.TargetCase getTargetCase(); + } + /** + *
+   * A Task structure that uniquely identifies a task in the system
+   * Tasks are registered as a first step in the system.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class TaskTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskTemplate) + TaskTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskTemplate.newBuilder() to construct. + private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskTemplate() { + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskTemplate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.TaskMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Tasks.TaskMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (custom_ != null) { + subBuilder = custom_.toBuilder(); + } + custom_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(custom_); + custom_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyteidl.core.Tasks.Container.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Tasks.Container) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Tasks.Container.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Tasks.Container) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 56: { + + taskTypeVersion_ = input.readInt32(); + break; + } + case 66: { + flyteidl.core.Security.SecurityContext.Builder subBuilder = null; + if (securityContext_ != null) { + subBuilder = securityContext_.toBuilder(); + } + securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(securityContext_); + securityContext_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { + config_ = com.google.protobuf.MapField.newMapField( + ConfigDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000400; + } + com.google.protobuf.MapEntry + config__ = input.readMessage( + ConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + config_.getMutableMap().put( + config__.getKey(), config__.getValue()); + break; + } + case 138: { + flyteidl.core.Tasks.K8sPod.Builder subBuilder = null; + if (targetCase_ == 17) { + subBuilder = ((flyteidl.core.Tasks.K8sPod) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Tasks.K8sPod.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Tasks.K8sPod) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 17; + break; + } + case 146: { + flyteidl.core.Tasks.Sql.Builder subBuilder = null; + if (targetCase_ == 18) { + subBuilder = ((flyteidl.core.Tasks.Sql) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Tasks.Sql.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Tasks.Sql) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 18; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 16: + return internalGetConfig(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + private int bitField0_; + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + CONTAINER(6), + K8S_POD(17), + SQL(18), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return CONTAINER; + case 17: return K8S_POD; + case 18: return SQL; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.TaskMetadata metadata_; + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 4; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private com.google.protobuf.Struct custom_; + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return custom_ != null; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + return getCustom(); + } + + public static final int CONTAINER_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + public static final int K8S_POD_FIELD_NUMBER = 17; + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public boolean hasK8SPod() { + return targetCase_ == 17; + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public flyteidl.core.Tasks.K8sPod getK8SPod() { + if (targetCase_ == 17) { + return (flyteidl.core.Tasks.K8sPod) target_; + } + return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public flyteidl.core.Tasks.K8sPodOrBuilder getK8SPodOrBuilder() { + if (targetCase_ == 17) { + return (flyteidl.core.Tasks.K8sPod) target_; + } + return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); + } + + public static final int SQL_FIELD_NUMBER = 18; + /** + * .flyteidl.core.Sql sql = 18; + */ + public boolean hasSql() { + return targetCase_ == 18; + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public flyteidl.core.Tasks.Sql getSql() { + if (targetCase_ == 18) { + return (flyteidl.core.Tasks.Sql) target_; + } + return flyteidl.core.Tasks.Sql.getDefaultInstance(); + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public flyteidl.core.Tasks.SqlOrBuilder getSqlOrBuilder() { + if (targetCase_ == 18) { + return (flyteidl.core.Tasks.Sql) target_; + } + return flyteidl.core.Tasks.Sql.getDefaultInstance(); + } + + public static final int TASK_TYPE_VERSION_FIELD_NUMBER = 7; + private int taskTypeVersion_; + /** + *
+     * This can be used to customize task handling at execution time for the same task type.
+     * 
+ * + * int32 task_type_version = 7; + */ + public int getTaskTypeVersion() { + return taskTypeVersion_; + } + + public static final int SECURITY_CONTEXT_FIELD_NUMBER = 8; + private flyteidl.core.Security.SecurityContext securityContext_; + /** + *
+     * security_context encapsulates security attributes requested to run this task.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public boolean hasSecurityContext() { + return securityContext_ != null; + } + /** + *
+     * security_context encapsulates security attributes requested to run this task.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + /** + *
+     * security_context encapsulates security attributes requested to run this task.
+     * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + return getSecurityContext(); + } + + public static final int CONFIG_FIELD_NUMBER = 16; + private static final class ConfigDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_ConfigEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> config_; + private com.google.protobuf.MapField + internalGetConfig() { + if (config_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConfigDefaultEntryHolder.defaultEntry); + } + return config_; + } + + public int getConfigCount() { + return internalGetConfig().getMap().size(); + } + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + + public boolean containsConfig( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetConfig().getMap().containsKey(key); + } + /** + * Use {@link #getConfigMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getConfig() { + return getConfigMap(); + } + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + + public java.util.Map getConfigMap() { + return internalGetConfig().getMap(); + } + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + + public java.lang.String getConfigOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+     * to use as required.
+     * reserve the field numbers 1 through 15 for very frequently occurring message elements
+     * 
+ * + * map<string, string> config = 16; + */ + + public java.lang.String getConfigOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConfig().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(4, getInterface()); + } + if (custom_ != null) { + output.writeMessage(5, getCustom()); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Tasks.Container) target_); + } + if (taskTypeVersion_ != 0) { + output.writeInt32(7, taskTypeVersion_); + } + if (securityContext_ != null) { + output.writeMessage(8, getSecurityContext()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConfig(), + ConfigDefaultEntryHolder.defaultEntry, + 16); + if (targetCase_ == 17) { + output.writeMessage(17, (flyteidl.core.Tasks.K8sPod) target_); + } + if (targetCase_ == 18) { + output.writeMessage(18, (flyteidl.core.Tasks.Sql) target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInterface()); + } + if (custom_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCustom()); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Tasks.Container) target_); + } + if (taskTypeVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, taskTypeVersion_); + } + if (securityContext_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSecurityContext()); + } + for (java.util.Map.Entry entry + : internalGetConfig().getMap().entrySet()) { + com.google.protobuf.MapEntry + config__ = ConfigDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, config__); + } + if (targetCase_ == 17) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, (flyteidl.core.Tasks.K8sPod) target_); + } + if (targetCase_ == 18) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, (flyteidl.core.Tasks.Sql) target_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.TaskTemplate)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskTemplate other = (flyteidl.core.Tasks.TaskTemplate) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getType() + .equals(other.getType())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasInterface() != other.hasInterface()) return false; + if (hasInterface()) { + if (!getInterface() + .equals(other.getInterface())) return false; + } + if (hasCustom() != other.hasCustom()) return false; + if (hasCustom()) { + if (!getCustom() + .equals(other.getCustom())) return false; + } + if (getTaskTypeVersion() + != other.getTaskTypeVersion()) return false; + if (hasSecurityContext() != other.hasSecurityContext()) return false; + if (hasSecurityContext()) { + if (!getSecurityContext() + .equals(other.getSecurityContext())) return false; + } + if (!internalGetConfig().equals( + other.internalGetConfig())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 6: + if (!getContainer() + .equals(other.getContainer())) return false; + break; + case 17: + if (!getK8SPod() + .equals(other.getK8SPod())) return false; + break; + case 18: + if (!getSql() + .equals(other.getSql())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (hasCustom()) { + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + } + hash = (37 * hash) + TASK_TYPE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTaskTypeVersion(); + if (hasSecurityContext()) { + hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getSecurityContext().hashCode(); + } + if (!internalGetConfig().getMap().isEmpty()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + internalGetConfig().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + CONTAINER_FIELD_NUMBER; + hash = (53 * hash) + getContainer().hashCode(); + break; + case 17: + hash = (37 * hash) + K8S_POD_FIELD_NUMBER; + hash = (53 * hash) + getK8SPod().hashCode(); + break; + case 18: + hash = (37 * hash) + SQL_FIELD_NUMBER; + hash = (53 * hash) + getSql().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.TaskTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A Task structure that uniquely identifies a task in the system
+     * Tasks are registered as a first step in the system.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskTemplate) + flyteidl.core.Tasks.TaskTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 16: + return internalGetConfig(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 16: + return internalGetMutableConfig(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + type_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (customBuilder_ == null) { + custom_ = null; + } else { + custom_ = null; + customBuilder_ = null; + } + taskTypeVersion_ = 0; + + if (securityContextBuilder_ == null) { + securityContext_ = null; + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + internalGetMutableConfig().clear(); + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskTemplate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate build() { + flyteidl.core.Tasks.TaskTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate buildPartial() { + flyteidl.core.Tasks.TaskTemplate result = new flyteidl.core.Tasks.TaskTemplate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.type_ = type_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (customBuilder_ == null) { + result.custom_ = custom_; + } else { + result.custom_ = customBuilder_.build(); + } + if (targetCase_ == 6) { + if (containerBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = containerBuilder_.build(); + } + } + if (targetCase_ == 17) { + if (k8SPodBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = k8SPodBuilder_.build(); + } + } + if (targetCase_ == 18) { + if (sqlBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = sqlBuilder_.build(); + } + } + result.taskTypeVersion_ = taskTypeVersion_; + if (securityContextBuilder_ == null) { + result.securityContext_ = securityContext_; + } else { + result.securityContext_ = securityContextBuilder_.build(); + } + result.config_ = internalGetConfig(); + result.config_.makeImmutable(); + result.bitField0_ = to_bitField0_; + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.TaskTemplate) { + return mergeFrom((flyteidl.core.Tasks.TaskTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskTemplate other) { + if (other == flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (other.hasCustom()) { + mergeCustom(other.getCustom()); + } + if (other.getTaskTypeVersion() != 0) { + setTaskTypeVersion(other.getTaskTypeVersion()); + } + if (other.hasSecurityContext()) { + mergeSecurityContext(other.getSecurityContext()); + } + internalGetMutableConfig().mergeFrom( + other.internalGetConfig()); + switch (other.getTargetCase()) { + case CONTAINER: { + mergeContainer(other.getContainer()); + break; + } + case K8S_POD: { + mergeK8SPod(other.getK8SPod()); + break; + } + case SQL: { + mergeSql(other.getSql()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.TaskTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object type_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.TaskMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.core.Tasks.TaskMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Tasks.TaskMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private com.google.protobuf.Struct custom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customBuilder_; + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return customBuilder_ != null || custom_ != null; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + if (customBuilder_ == null) { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } else { + return customBuilder_.getMessage(); + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + custom_ = value; + onChanged(); + } else { + customBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom( + com.google.protobuf.Struct.Builder builderForValue) { + if (customBuilder_ == null) { + custom_ = builderForValue.build(); + onChanged(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder mergeCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (custom_ != null) { + custom_ = + com.google.protobuf.Struct.newBuilder(custom_).mergeFrom(value).buildPartial(); + } else { + custom_ = value; + } + onChanged(); + } else { + customBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder clearCustom() { + if (customBuilder_ == null) { + custom_ = null; + onChanged(); + } else { + custom_ = null; + customBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct.Builder getCustomBuilder() { + + onChanged(); + return getCustomFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + if (customBuilder_ != null) { + return customBuilder_.getMessageOrBuilder(); + } else { + return custom_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomFieldBuilder() { + if (customBuilder_ == null) { + customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustom(), + getParentForChildren(), + isClean()); + custom_ = null; + } + return customBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> containerBuilder_; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return containerBuilder_.getMessage(); + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer( + flyteidl.core.Tasks.Container.Builder builderForValue) { + if (containerBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + containerBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder mergeContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Tasks.Container.getDefaultInstance()) { + target_ = flyteidl.core.Tasks.Container.newBuilder((flyteidl.core.Tasks.Container) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + containerBuilder_.mergeFrom(value); + } + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder clearContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + containerBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container.Builder getContainerBuilder() { + return getContainerFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if ((targetCase_ == 6) && (containerBuilder_ != null)) { + return containerBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> + getContainerFieldBuilder() { + if (containerBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Tasks.Container.getDefaultInstance(); + } + containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder>( + (flyteidl.core.Tasks.Container) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return containerBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.K8sPod, flyteidl.core.Tasks.K8sPod.Builder, flyteidl.core.Tasks.K8sPodOrBuilder> k8SPodBuilder_; + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public boolean hasK8SPod() { + return targetCase_ == 17; + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public flyteidl.core.Tasks.K8sPod getK8SPod() { + if (k8SPodBuilder_ == null) { + if (targetCase_ == 17) { + return (flyteidl.core.Tasks.K8sPod) target_; + } + return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); + } else { + if (targetCase_ == 17) { + return k8SPodBuilder_.getMessage(); + } + return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); + } + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public Builder setK8SPod(flyteidl.core.Tasks.K8sPod value) { + if (k8SPodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + k8SPodBuilder_.setMessage(value); + } + targetCase_ = 17; + return this; + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public Builder setK8SPod( + flyteidl.core.Tasks.K8sPod.Builder builderForValue) { + if (k8SPodBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + k8SPodBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 17; + return this; + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public Builder mergeK8SPod(flyteidl.core.Tasks.K8sPod value) { + if (k8SPodBuilder_ == null) { + if (targetCase_ == 17 && + target_ != flyteidl.core.Tasks.K8sPod.getDefaultInstance()) { + target_ = flyteidl.core.Tasks.K8sPod.newBuilder((flyteidl.core.Tasks.K8sPod) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 17) { + k8SPodBuilder_.mergeFrom(value); + } + k8SPodBuilder_.setMessage(value); + } + targetCase_ = 17; + return this; + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public Builder clearK8SPod() { + if (k8SPodBuilder_ == null) { + if (targetCase_ == 17) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 17) { + targetCase_ = 0; + target_ = null; + } + k8SPodBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public flyteidl.core.Tasks.K8sPod.Builder getK8SPodBuilder() { + return getK8SPodFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + public flyteidl.core.Tasks.K8sPodOrBuilder getK8SPodOrBuilder() { + if ((targetCase_ == 17) && (k8SPodBuilder_ != null)) { + return k8SPodBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 17) { + return (flyteidl.core.Tasks.K8sPod) target_; + } + return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); + } + } + /** + * .flyteidl.core.K8sPod k8s_pod = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.K8sPod, flyteidl.core.Tasks.K8sPod.Builder, flyteidl.core.Tasks.K8sPodOrBuilder> + getK8SPodFieldBuilder() { + if (k8SPodBuilder_ == null) { + if (!(targetCase_ == 17)) { + target_ = flyteidl.core.Tasks.K8sPod.getDefaultInstance(); + } + k8SPodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.K8sPod, flyteidl.core.Tasks.K8sPod.Builder, flyteidl.core.Tasks.K8sPodOrBuilder>( + (flyteidl.core.Tasks.K8sPod) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 17; + onChanged();; + return k8SPodBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Sql, flyteidl.core.Tasks.Sql.Builder, flyteidl.core.Tasks.SqlOrBuilder> sqlBuilder_; + /** + * .flyteidl.core.Sql sql = 18; + */ + public boolean hasSql() { + return targetCase_ == 18; + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public flyteidl.core.Tasks.Sql getSql() { + if (sqlBuilder_ == null) { + if (targetCase_ == 18) { + return (flyteidl.core.Tasks.Sql) target_; + } + return flyteidl.core.Tasks.Sql.getDefaultInstance(); + } else { + if (targetCase_ == 18) { + return sqlBuilder_.getMessage(); + } + return flyteidl.core.Tasks.Sql.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public Builder setSql(flyteidl.core.Tasks.Sql value) { + if (sqlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + sqlBuilder_.setMessage(value); + } + targetCase_ = 18; + return this; + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public Builder setSql( + flyteidl.core.Tasks.Sql.Builder builderForValue) { + if (sqlBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + sqlBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 18; + return this; + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public Builder mergeSql(flyteidl.core.Tasks.Sql value) { + if (sqlBuilder_ == null) { + if (targetCase_ == 18 && + target_ != flyteidl.core.Tasks.Sql.getDefaultInstance()) { + target_ = flyteidl.core.Tasks.Sql.newBuilder((flyteidl.core.Tasks.Sql) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 18) { + sqlBuilder_.mergeFrom(value); + } + sqlBuilder_.setMessage(value); + } + targetCase_ = 18; + return this; + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public Builder clearSql() { + if (sqlBuilder_ == null) { + if (targetCase_ == 18) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 18) { + targetCase_ = 0; + target_ = null; + } + sqlBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public flyteidl.core.Tasks.Sql.Builder getSqlBuilder() { + return getSqlFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Sql sql = 18; + */ + public flyteidl.core.Tasks.SqlOrBuilder getSqlOrBuilder() { + if ((targetCase_ == 18) && (sqlBuilder_ != null)) { + return sqlBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 18) { + return (flyteidl.core.Tasks.Sql) target_; + } + return flyteidl.core.Tasks.Sql.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Sql sql = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Sql, flyteidl.core.Tasks.Sql.Builder, flyteidl.core.Tasks.SqlOrBuilder> + getSqlFieldBuilder() { + if (sqlBuilder_ == null) { + if (!(targetCase_ == 18)) { + target_ = flyteidl.core.Tasks.Sql.getDefaultInstance(); + } + sqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Sql, flyteidl.core.Tasks.Sql.Builder, flyteidl.core.Tasks.SqlOrBuilder>( + (flyteidl.core.Tasks.Sql) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 18; + onChanged();; + return sqlBuilder_; + } + + private int taskTypeVersion_ ; + /** + *
+       * This can be used to customize task handling at execution time for the same task type.
+       * 
+ * + * int32 task_type_version = 7; + */ + public int getTaskTypeVersion() { + return taskTypeVersion_; + } + /** + *
+       * This can be used to customize task handling at execution time for the same task type.
+       * 
+ * + * int32 task_type_version = 7; + */ + public Builder setTaskTypeVersion(int value) { + + taskTypeVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * This can be used to customize task handling at execution time for the same task type.
+       * 
+ * + * int32 task_type_version = 7; + */ + public Builder clearTaskTypeVersion() { + + taskTypeVersion_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Security.SecurityContext securityContext_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public boolean hasSecurityContext() { + return securityContextBuilder_ != null || securityContext_ != null; + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public flyteidl.core.Security.SecurityContext getSecurityContext() { + if (securityContextBuilder_ == null) { + return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } else { + return securityContextBuilder_.getMessage(); + } + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityContext_ = value; + onChanged(); + } else { + securityContextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public Builder setSecurityContext( + flyteidl.core.Security.SecurityContext.Builder builderForValue) { + if (securityContextBuilder_ == null) { + securityContext_ = builderForValue.build(); + onChanged(); + } else { + securityContextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { + if (securityContextBuilder_ == null) { + if (securityContext_ != null) { + securityContext_ = + flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); + } else { + securityContext_ = value; + } + onChanged(); + } else { + securityContextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public Builder clearSecurityContext() { + if (securityContextBuilder_ == null) { + securityContext_ = null; + onChanged(); + } else { + securityContext_ = null; + securityContextBuilder_ = null; + } + + return this; + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { + + onChanged(); + return getSecurityContextFieldBuilder().getBuilder(); + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { + if (securityContextBuilder_ != null) { + return securityContextBuilder_.getMessageOrBuilder(); + } else { + return securityContext_ == null ? + flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; + } + } + /** + *
+       * security_context encapsulates security attributes requested to run this task.
+       * 
+ * + * .flyteidl.core.SecurityContext security_context = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> + getSecurityContextFieldBuilder() { + if (securityContextBuilder_ == null) { + securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( + getSecurityContext(), + getParentForChildren(), + isClean()); + securityContext_ = null; + } + return securityContextBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> config_; + private com.google.protobuf.MapField + internalGetConfig() { + if (config_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConfigDefaultEntryHolder.defaultEntry); + } + return config_; + } + private com.google.protobuf.MapField + internalGetMutableConfig() { + onChanged();; + if (config_ == null) { + config_ = com.google.protobuf.MapField.newMapField( + ConfigDefaultEntryHolder.defaultEntry); + } + if (!config_.isMutable()) { + config_ = config_.copy(); + } + return config_; + } + + public int getConfigCount() { + return internalGetConfig().getMap().size(); + } + /** + *
+       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+       * to use as required.
+       * reserve the field numbers 1 through 15 for very frequently occurring message elements
+       * 
+ * + * map<string, string> config = 16; + */ + + public boolean containsConfig( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetConfig().getMap().containsKey(key); + } + /** + * Use {@link #getConfigMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getConfig() { + return getConfigMap(); + } + /** + *
+       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+       * to use as required.
+       * reserve the field numbers 1 through 15 for very frequently occurring message elements
+       * 
+ * + * map<string, string> config = 16; + */ + + public java.util.Map getConfigMap() { + return internalGetConfig().getMap(); + } + /** + *
+       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+       * to use as required.
+       * reserve the field numbers 1 through 15 for very frequently occurring message elements
+       * 
+ * + * map<string, string> config = 16; + */ + + public java.lang.String getConfigOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+       * to use as required.
+       * reserve the field numbers 1 through 15 for very frequently occurring message elements
+       * 
+ * + * map<string, string> config = 16; + */ + + public java.lang.String getConfigOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConfig().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConfig() { + internalGetMutableConfig().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+       * to use as required.
+       * reserve the field numbers 1 through 15 for very frequently occurring message elements
+       * 
+ * + * map<string, string> config = 16; + */ + + public Builder removeConfig( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableConfig().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableConfig() { + return internalGetMutableConfig().getMutableMap(); + } + /** + *
+       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+       * to use as required.
+       * reserve the field numbers 1 through 15 for very frequently occurring message elements
+       * 
+ * + * map<string, string> config = 16; + */ + public Builder putConfig( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableConfig().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
+       * to use as required.
+       * reserve the field numbers 1 through 15 for very frequently occurring message elements
+       * 
+ * + * map<string, string> config = 16; + */ + + public Builder putAllConfig( + java.util.Map values) { + internalGetMutableConfig().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) + private static final flyteidl.core.Tasks.TaskTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskTemplate(); + } + + public static flyteidl.core.Tasks.TaskTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerPortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerPort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + int getContainerPort(); + } + /** + *
+   * Defines port properties for a container.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class ContainerPort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerPort) + ContainerPortOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerPort.newBuilder() to construct. + private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerPort() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerPort( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + containerPort_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + public static final int CONTAINER_PORT_FIELD_NUMBER = 1; + private int containerPort_; + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (containerPort_ != 0) { + output.writeUInt32(1, containerPort_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (containerPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, containerPort_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.ContainerPort)) { + return super.equals(obj); + } + flyteidl.core.Tasks.ContainerPort other = (flyteidl.core.Tasks.ContainerPort) obj; + + if (getContainerPort() + != other.getContainerPort()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTAINER_PORT_FIELD_NUMBER; + hash = (53 * hash) + getContainerPort(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.ContainerPort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines port properties for a container.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerPort) + flyteidl.core.Tasks.ContainerPortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + // Construct using flyteidl.core.Tasks.ContainerPort.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + containerPort_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return flyteidl.core.Tasks.ContainerPort.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort build() { + flyteidl.core.Tasks.ContainerPort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort buildPartial() { + flyteidl.core.Tasks.ContainerPort result = new flyteidl.core.Tasks.ContainerPort(this); + result.containerPort_ = containerPort_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.ContainerPort) { + return mergeFrom((flyteidl.core.Tasks.ContainerPort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.ContainerPort other) { + if (other == flyteidl.core.Tasks.ContainerPort.getDefaultInstance()) return this; + if (other.getContainerPort() != 0) { + setContainerPort(other.getContainerPort()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.ContainerPort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.ContainerPort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int containerPort_ ; + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder setContainerPort(int value) { + + containerPort_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder clearContainerPort() { + + containerPort_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ContainerPort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) + private static final flyteidl.core.Tasks.ContainerPort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.ContainerPort(); + } + + public static flyteidl.core.Tasks.ContainerPort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerPort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerPort(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Container) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + java.lang.String getImage(); + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.util.List + getCommandList(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + int getCommandCount(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.lang.String getCommand(int index); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + com.google.protobuf.ByteString + getCommandBytes(int index); + + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.util.List + getArgsList(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + int getArgsCount(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.lang.String getArgs(int index); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + com.google.protobuf.ByteString + getArgsBytes(int index); + + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + boolean hasResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePair getEnv(int index); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + int getEnvCount(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvOrBuilderList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index); + + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getConfigList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.KeyValuePair getConfig(int index); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated int getConfigCount(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getConfigOrBuilderList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index); + + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPort getPorts(int index); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + int getPortsCount(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index); + + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + boolean hasDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); + + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + int getArchitectureValue(); + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + flyteidl.core.Tasks.Container.Architecture getArchitecture(); + } + /** + * Protobuf type {@code flyteidl.core.Container} + */ + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Container) + ContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Container.newBuilder() to construct. + private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Container() { + image_ = ""; + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + env_ = java.util.Collections.emptyList(); + config_ = java.util.Collections.emptyList(); + ports_ = java.util.Collections.emptyList(); + architecture_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Container( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + command_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + args_.add(s); + break; + } + case 34: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + env_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + env_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + config_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + config_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { + ports_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + ports_.add( + input.readMessage(flyteidl.core.Tasks.ContainerPort.parser(), extensionRegistry)); + break; + } + case 74: { + flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; + if (dataConfig_ != null) { + subBuilder = dataConfig_.toBuilder(); + } + dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataConfig_); + dataConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 80: { + int rawValue = input.readEnum(); + + architecture_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + command_ = command_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + config_ = java.util.Collections.unmodifiableList(config_); + } + if (((mutable_bitField0_ & 0x00000040) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + /** + *
+     * Architecture-type the container image supports.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.Container.Architecture} + */ + public enum Architecture + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * AMD64 = 1; + */ + AMD64(1), + /** + * ARM64 = 2; + */ + ARM64(2), + /** + * ARM_V6 = 3; + */ + ARM_V6(3), + /** + * ARM_V7 = 4; + */ + ARM_V7(4), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * AMD64 = 1; + */ + public static final int AMD64_VALUE = 1; + /** + * ARM64 = 2; + */ + public static final int ARM64_VALUE = 2; + /** + * ARM_V6 = 3; + */ + public static final int ARM_V6_VALUE = 3; + /** + * ARM_V7 = 4; + */ + public static final int ARM_V7_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Architecture valueOf(int value) { + return forNumber(value); + } + + public static Architecture forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return AMD64; + case 2: return ARM64; + case 3: return ARM_V6; + case 4: return ARM_V7; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Architecture> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Architecture findValueByNumber(int number) { + return Architecture.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.Container.getDescriptor().getEnumTypes().get(0); + } + + private static final Architecture[] VALUES = values(); + + public static Architecture valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Architecture(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.Container.Architecture) + } + + private int bitField0_; + public static final int IMAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object image_; + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } + } + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMAND_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList command_; + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_; + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList args_; + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_; + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int RESOURCES_FIELD_NUMBER = 4; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + public static final int ENV_FIELD_NUMBER = 5; + private java.util.List env_; + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + return env_.get(index); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + return env_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 6; + private java.util.List config_; + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List getConfigList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List + getConfigOrBuilderList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public int getConfigCount() { + return config_.size(); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + return config_.get(index); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * Deprecated, please use TaskTemplate.config instead.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + return config_.get(index); + } + + public static final int PORTS_FIELD_NUMBER = 7; + private java.util.List ports_; + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + return ports_.size(); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + return ports_.get(index); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * Only K8s
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + return ports_.get(index); + } + + public static final int DATA_CONFIG_FIELD_NUMBER = 9; + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public boolean hasDataConfig() { + return dataConfig_ != null; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + return getDataConfig(); + } + + public static final int ARCHITECTURE_FIELD_NUMBER = 10; + private int architecture_; + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + public int getArchitectureValue() { + return architecture_; + } + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + public flyteidl.core.Tasks.Container.Architecture getArchitecture() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Container.Architecture result = flyteidl.core.Tasks.Container.Architecture.valueOf(architecture_); + return result == null ? flyteidl.core.Tasks.Container.Architecture.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + for (int i = 0; i < command_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); + } + if (resources_ != null) { + output.writeMessage(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + output.writeMessage(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + output.writeMessage(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeMessage(7, ports_.get(i)); + } + if (dataConfig_ != null) { + output.writeMessage(9, getDataConfig()); + } + if (architecture_ != flyteidl.core.Tasks.Container.Architecture.UNKNOWN.getNumber()) { + output.writeEnum(10, architecture_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + { + int dataSize = 0; + for (int i = 0; i < command_.size(); i++) { + dataSize += computeStringSizeNoTag(command_.getRaw(i)); + } + size += dataSize; + size += 1 * getCommandList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, ports_.get(i)); + } + if (dataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDataConfig()); + } + if (architecture_ != flyteidl.core.Tasks.Container.Architecture.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, architecture_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.Container)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Container other = (flyteidl.core.Tasks.Container) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (!getEnvList() + .equals(other.getEnvList())) return false; + if (!getConfigList() + .equals(other.getConfigList())) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (hasDataConfig() != other.hasDataConfig()) return false; + if (hasDataConfig()) { + if (!getDataConfig() + .equals(other.getDataConfig())) return false; + } + if (architecture_ != other.architecture_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (getCommandCount() > 0) { + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommandList().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } + if (getConfigCount() > 0) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigList().hashCode(); + } + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + if (hasDataConfig()) { + hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDataConfig().hashCode(); + } + hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + architecture_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.Container prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.Container} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Container) + flyteidl.core.Tasks.ContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Container.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnvFieldBuilder(); + getConfigFieldBuilder(); + getPortsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + image_ = ""; + + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + envBuilder_.clear(); + } + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + configBuilder_.clear(); + } + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + portsBuilder_.clear(); + } + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + architecture_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Container build() { + flyteidl.core.Tasks.Container result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Container buildPartial() { + flyteidl.core.Tasks.Container result = new flyteidl.core.Tasks.Container(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.image_ = image_; + if (((bitField0_ & 0x00000002) != 0)) { + command_ = command_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.command_ = command_; + if (((bitField0_ & 0x00000004) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.args_ = args_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + if (envBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + env_ = java.util.Collections.unmodifiableList(env_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.env_ = env_; + } else { + result.env_ = envBuilder_.build(); + } + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + config_ = java.util.Collections.unmodifiableList(config_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + if (portsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.ports_ = ports_; + } else { + result.ports_ = portsBuilder_.build(); + } + if (dataConfigBuilder_ == null) { + result.dataConfig_ = dataConfig_; + } else { + result.dataConfig_ = dataConfigBuilder_.build(); + } + result.architecture_ = architecture_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.Container) { + return mergeFrom((flyteidl.core.Tasks.Container)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Container other) { + if (other == flyteidl.core.Tasks.Container.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (!other.command_.isEmpty()) { + if (command_.isEmpty()) { + command_ = other.command_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCommandIsMutable(); + command_.addAll(other.command_); + } + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + if (envBuilder_ == null) { + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + } else { + if (!other.env_.isEmpty()) { + if (envBuilder_.isEmpty()) { + envBuilder_.dispose(); + envBuilder_ = null; + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + envBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEnvFieldBuilder() : null; + } else { + envBuilder_.addAllMessages(other.env_); + } + } + } + if (configBuilder_ == null) { + if (!other.config_.isEmpty()) { + if (config_.isEmpty()) { + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConfigIsMutable(); + config_.addAll(other.config_); + } + onChanged(); + } + } else { + if (!other.config_.isEmpty()) { + if (configBuilder_.isEmpty()) { + configBuilder_.dispose(); + configBuilder_ = null; + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + configBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigFieldBuilder() : null; + } else { + configBuilder_.addAllMessages(other.config_); + } + } + } + if (portsBuilder_ == null) { + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + onChanged(); + } + } else { + if (!other.ports_.isEmpty()) { + if (portsBuilder_.isEmpty()) { + portsBuilder_.dispose(); + portsBuilder_ = null; + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + portsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPortsFieldBuilder() : null; + } else { + portsBuilder_.addAllMessages(other.ports_); + } + } + } + if (other.hasDataConfig()) { + mergeDataConfig(other.getDataConfig()); + } + if (other.architecture_ != 0) { + setArchitectureValue(other.getArchitectureValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.Container parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Container) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object image_ = ""; + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(command_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_.getUnmodifiableView(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommand( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addAllCommand( + java.lang.Iterable values) { + ensureCommandIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder clearCommand() { + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_.getUnmodifiableView(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addAllArgs( + java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private java.util.List env_ = + java.util.Collections.emptyList(); + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + env_ = new java.util.ArrayList(env_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> envBuilder_; + + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + if (envBuilder_ == null) { + return java.util.Collections.unmodifiableList(env_); + } else { + return envBuilder_.getMessageList(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + if (envBuilder_ == null) { + return env_.size(); + } else { + return envBuilder_.getCount(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessage(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + } else { + envBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.set(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv(flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + } else { + envBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(index, value); + onChanged(); + } else { + envBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addAllEnv( + java.lang.Iterable values) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, env_); + onChanged(); + } else { + envBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder clearEnv() { + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + envBuilder_.clear(); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder removeEnv(int index) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.remove(index); + onChanged(); + } else { + envBuilder_.remove(index); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getEnvBuilder( + int index) { + return getEnvFieldBuilder().getBuilder(index); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + if (envBuilder_ == null) { + return env_.get(index); } else { + return envBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + if (envBuilder_ != null) { + return envBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(env_); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder() { + return getEnvFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder( + int index) { + return getEnvFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvBuilderList() { + return getEnvFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getEnvFieldBuilder() { + if (envBuilder_ == null) { + envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + env_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + env_ = null; + } + return envBuilder_; + } + + private java.util.List config_ = + java.util.Collections.emptyList(); + private void ensureConfigIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + config_ = new java.util.ArrayList(config_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> configBuilder_; + + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List getConfigList() { + if (configBuilder_ == null) { + return java.util.Collections.unmodifiableList(config_); + } else { + return configBuilder_.getMessageList(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public int getConfigCount() { + if (configBuilder_ == null) { + return config_.size(); + } else { + return configBuilder_.getCount(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + if (configBuilder_ == null) { + return config_.get(index); + } else { + return configBuilder_.getMessage(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.set(index, value); + onChanged(); + } else { + configBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.set(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addConfig(flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(value); + onChanged(); + } else { + configBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(index, value); + onChanged(); + } else { + configBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addConfig( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addAllConfig( + java.lang.Iterable values) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, config_); + onChanged(); + } else { + configBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + configBuilder_.clear(); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public Builder removeConfig(int index) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.remove(index); + onChanged(); + } else { + configBuilder_.remove(index); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair.Builder getConfigBuilder( + int index) { + return getConfigFieldBuilder().getBuilder(index); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + if (configBuilder_ == null) { + return config_.get(index); } else { + return configBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List + getConfigOrBuilderList() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(config_); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder() { + return getConfigFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder( + int index) { + return getConfigFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * Deprecated, please use TaskTemplate.config instead.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List + getConfigBuilderList() { + return getConfigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + config_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.util.List ports_ = + java.util.Collections.emptyList(); + private void ensurePortsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + ports_ = new java.util.ArrayList(ports_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> portsBuilder_; + + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + if (portsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ports_); + } else { + return portsBuilder_.getMessageList(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + if (portsBuilder_ == null) { + return ports_.size(); + } else { + return portsBuilder_.getCount(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + if (portsBuilder_ == null) { + return ports_.get(index); + } else { + return portsBuilder_.getMessage(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.set(index, value); + onChanged(); + } else { + portsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.set(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts(flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(value); + onChanged(); + } else { + portsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(index, value); + onChanged(); + } else { + portsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addAllPorts( + java.lang.Iterable values) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + onChanged(); + } else { + portsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder clearPorts() { + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + portsBuilder_.clear(); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder removePorts(int index) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.remove(index); + onChanged(); + } else { + portsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder getPortsBuilder( + int index) { + return getPortsFieldBuilder().getBuilder(index); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + if (portsBuilder_ == null) { + return ports_.get(index); } else { + return portsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + if (portsBuilder_ != null) { + return portsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ports_); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder() { + return getPortsFieldBuilder().addBuilder( + flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder( + int index) { + return getPortsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * Only K8s
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsBuilderList() { + return getPortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> + getPortsFieldBuilder() { + if (portsBuilder_ == null) { + portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder>( + ports_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + ports_ = null; + } + return portsBuilder_; + } + + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public boolean hasDataConfig() { + return dataConfigBuilder_ != null || dataConfig_ != null; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + if (dataConfigBuilder_ == null) { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } else { + return dataConfigBuilder_.getMessage(); + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataConfig_ = value; + onChanged(); + } else { + dataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder setDataConfig( + flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { + if (dataConfigBuilder_ == null) { + dataConfig_ = builderForValue.build(); + onChanged(); + } else { + dataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (dataConfig_ != null) { + dataConfig_ = + flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); + } else { + dataConfig_ = value; + } + onChanged(); + } else { + dataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public Builder clearDataConfig() { + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + onChanged(); + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { + + onChanged(); + return getDataConfigFieldBuilder().getBuilder(); + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + if (dataConfigBuilder_ != null) { + return dataConfigBuilder_.getMessageOrBuilder(); + } else { + return dataConfig_ == null ? + flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> + getDataConfigFieldBuilder() { + if (dataConfigBuilder_ == null) { + dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( + getDataConfig(), + getParentForChildren(), + isClean()); + dataConfig_ = null; + } + return dataConfigBuilder_; + } + + private int architecture_ = 0; + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + public int getArchitectureValue() { + return architecture_; + } + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + public Builder setArchitectureValue(int value) { + architecture_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + public flyteidl.core.Tasks.Container.Architecture getArchitecture() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Container.Architecture result = flyteidl.core.Tasks.Container.Architecture.valueOf(architecture_); + return result == null ? flyteidl.core.Tasks.Container.Architecture.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + public Builder setArchitecture(flyteidl.core.Tasks.Container.Architecture value) { + if (value == null) { + throw new NullPointerException(); + } + + architecture_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.Container.Architecture architecture = 10; + */ + public Builder clearArchitecture() { + + architecture_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Container) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Container) + private static final flyteidl.core.Tasks.Container DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Container(); + } + + public static flyteidl.core.Tasks.Container getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IOStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IOStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + int getDownloadModeValue(); + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode(); + + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + int getUploadModeValue(); + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode(); + } + /** + *
+   * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
+   * 
+ * + * Protobuf type {@code flyteidl.core.IOStrategy} + */ + public static final class IOStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IOStrategy) + IOStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use IOStrategy.newBuilder() to construct. + private IOStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IOStrategy() { + downloadMode_ = 0; + uploadMode_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IOStrategy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + downloadMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + uploadMode_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); + } + + /** + *
+     * Mode to use for downloading
+     * 
+ * + * Protobuf enum {@code flyteidl.core.IOStrategy.DownloadMode} + */ + public enum DownloadMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * All data will be downloaded before the main container is executed
+       * 
+ * + * DOWNLOAD_EAGER = 0; + */ + DOWNLOAD_EAGER(0), + /** + *
+       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
+       * 
+ * + * DOWNLOAD_STREAM = 1; + */ + DOWNLOAD_STREAM(1), + /** + *
+       * Large objects (offloaded) will not be downloaded
+       * 
+ * + * DO_NOT_DOWNLOAD = 2; + */ + DO_NOT_DOWNLOAD(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * All data will be downloaded before the main container is executed
+       * 
+ * + * DOWNLOAD_EAGER = 0; + */ + public static final int DOWNLOAD_EAGER_VALUE = 0; + /** + *
+       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
+       * 
+ * + * DOWNLOAD_STREAM = 1; + */ + public static final int DOWNLOAD_STREAM_VALUE = 1; + /** + *
+       * Large objects (offloaded) will not be downloaded
+       * 
+ * + * DO_NOT_DOWNLOAD = 2; + */ + public static final int DO_NOT_DOWNLOAD_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DownloadMode valueOf(int value) { + return forNumber(value); + } + + public static DownloadMode forNumber(int value) { + switch (value) { + case 0: return DOWNLOAD_EAGER; + case 1: return DOWNLOAD_STREAM; + case 2: return DO_NOT_DOWNLOAD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DownloadMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DownloadMode findValueByNumber(int number) { + return DownloadMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(0); + } + + private static final DownloadMode[] VALUES = values(); + + public static DownloadMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DownloadMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.DownloadMode) + } + + /** + *
+     * Mode to use for uploading
+     * 
+ * + * Protobuf enum {@code flyteidl.core.IOStrategy.UploadMode} + */ + public enum UploadMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * All data will be uploaded after the main container exits
+       * 
+ * + * UPLOAD_ON_EXIT = 0; + */ + UPLOAD_ON_EXIT(0), + /** + *
+       * Data will be uploaded as it appears. Refer to protocol specification for details
+       * 
+ * + * UPLOAD_EAGER = 1; + */ + UPLOAD_EAGER(1), + /** + *
+       * Data will not be uploaded, only references will be written
+       * 
+ * + * DO_NOT_UPLOAD = 2; + */ + DO_NOT_UPLOAD(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * All data will be uploaded after the main container exits
+       * 
+ * + * UPLOAD_ON_EXIT = 0; + */ + public static final int UPLOAD_ON_EXIT_VALUE = 0; + /** + *
+       * Data will be uploaded as it appears. Refer to protocol specification for details
+       * 
+ * + * UPLOAD_EAGER = 1; + */ + public static final int UPLOAD_EAGER_VALUE = 1; + /** + *
+       * Data will not be uploaded, only references will be written
+       * 
+ * + * DO_NOT_UPLOAD = 2; + */ + public static final int DO_NOT_UPLOAD_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UploadMode valueOf(int value) { + return forNumber(value); + } + + public static UploadMode forNumber(int value) { + switch (value) { + case 0: return UPLOAD_ON_EXIT; + case 1: return UPLOAD_EAGER; + case 2: return DO_NOT_UPLOAD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UploadMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UploadMode findValueByNumber(int number) { + return UploadMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(1); + } + + private static final UploadMode[] VALUES = values(); + + public static UploadMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UploadMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.UploadMode) + } + + public static final int DOWNLOAD_MODE_FIELD_NUMBER = 1; + private int downloadMode_; + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public int getDownloadModeValue() { + return downloadMode_; + } + /** + *
+     * Mode to use to manage downloads
+     * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; + } + + public static final int UPLOAD_MODE_FIELD_NUMBER = 2; + private int uploadMode_; + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public int getUploadModeValue() { + return uploadMode_; + } + /** + *
+     * Mode to use to manage uploads
+     * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { + output.writeEnum(1, downloadMode_); + } + if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { + output.writeEnum(2, uploadMode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, downloadMode_); + } + if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, uploadMode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.IOStrategy)) { + return super.equals(obj); + } + flyteidl.core.Tasks.IOStrategy other = (flyteidl.core.Tasks.IOStrategy) obj; + + if (downloadMode_ != other.downloadMode_) return false; + if (uploadMode_ != other.uploadMode_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOWNLOAD_MODE_FIELD_NUMBER; + hash = (53 * hash) + downloadMode_; + hash = (37 * hash) + UPLOAD_MODE_FIELD_NUMBER; + hash = (53 * hash) + uploadMode_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.IOStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.IOStrategy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.IOStrategy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
+     * 
+ * + * Protobuf type {@code flyteidl.core.IOStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IOStrategy) + flyteidl.core.Tasks.IOStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); + } + + // Construct using flyteidl.core.Tasks.IOStrategy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + downloadMode_ = 0; + + uploadMode_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { + return flyteidl.core.Tasks.IOStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy build() { + flyteidl.core.Tasks.IOStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy buildPartial() { + flyteidl.core.Tasks.IOStrategy result = new flyteidl.core.Tasks.IOStrategy(this); + result.downloadMode_ = downloadMode_; + result.uploadMode_ = uploadMode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.IOStrategy) { + return mergeFrom((flyteidl.core.Tasks.IOStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.IOStrategy other) { + if (other == flyteidl.core.Tasks.IOStrategy.getDefaultInstance()) return this; + if (other.downloadMode_ != 0) { + setDownloadModeValue(other.getDownloadModeValue()); + } + if (other.uploadMode_ != 0) { + setUploadModeValue(other.getUploadModeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.IOStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.IOStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int downloadMode_ = 0; + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public int getDownloadModeValue() { + return downloadMode_; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder setDownloadModeValue(int value) { + downloadMode_ = value; + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder setDownloadMode(flyteidl.core.Tasks.IOStrategy.DownloadMode value) { + if (value == null) { + throw new NullPointerException(); + } + + downloadMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage downloads
+       * 
+ * + * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + public Builder clearDownloadMode() { + + downloadMode_ = 0; + onChanged(); + return this; + } + + private int uploadMode_ = 0; + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public int getUploadModeValue() { + return uploadMode_; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder setUploadModeValue(int value) { + uploadMode_ = value; + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); + return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder setUploadMode(flyteidl.core.Tasks.IOStrategy.UploadMode value) { + if (value == null) { + throw new NullPointerException(); + } + + uploadMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Mode to use to manage uploads
+       * 
+ * + * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + public Builder clearUploadMode() { + + uploadMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.IOStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) + private static final flyteidl.core.Tasks.IOStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.IOStrategy(); + } + + public static flyteidl.core.Tasks.IOStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IOStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IOStrategy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DataLoadingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.DataLoadingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Flag enables DataLoading Config. If this is not set, data loading will not be used!
+     * 
+ * + * bool enabled = 1; + */ + boolean getEnabled(); + + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + java.lang.String getInputPath(); + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + com.google.protobuf.ByteString + getInputPathBytes(); + + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + java.lang.String getOutputPath(); + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + com.google.protobuf.ByteString + getOutputPathBytes(); + + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + int getFormatValue(); + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat(); + + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + boolean hasIoStrategy(); + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + flyteidl.core.Tasks.IOStrategy getIoStrategy(); + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder(); + } + /** + *
+   * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
+   * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
+   * Any outputs generated by the user container - within output_path are automatically uploaded.
+   * 
+ * + * Protobuf type {@code flyteidl.core.DataLoadingConfig} + */ + public static final class DataLoadingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.DataLoadingConfig) + DataLoadingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataLoadingConfig.newBuilder() to construct. + private DataLoadingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DataLoadingConfig() { + inputPath_ = ""; + outputPath_ = ""; + format_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DataLoadingConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + enabled_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputPath_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputPath_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); + + format_ = rawValue; + break; + } + case 42: { + flyteidl.core.Tasks.IOStrategy.Builder subBuilder = null; + if (ioStrategy_ != null) { + subBuilder = ioStrategy_.toBuilder(); + } + ioStrategy_ = input.readMessage(flyteidl.core.Tasks.IOStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ioStrategy_); + ioStrategy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); + } + + /** + *
+     * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.
+     * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.
+     * JSON and YAML do not need any protobuf definitions to read it
+     * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)
+     * 
+ * + * Protobuf enum {@code flyteidl.core.DataLoadingConfig.LiteralMapFormat} + */ + public enum LiteralMapFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
+       * 
+ * + * JSON = 0; + */ + JSON(0), + /** + * YAML = 1; + */ + YAML(1), + /** + *
+       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
+       * 
+ * + * PROTO = 2; + */ + PROTO(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
+       * 
+ * + * JSON = 0; + */ + public static final int JSON_VALUE = 0; + /** + * YAML = 1; + */ + public static final int YAML_VALUE = 1; + /** + *
+       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
+       * 
+ * + * PROTO = 2; + */ + public static final int PROTO_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LiteralMapFormat valueOf(int value) { + return forNumber(value); + } + + public static LiteralMapFormat forNumber(int value) { + switch (value) { + case 0: return JSON; + case 1: return YAML; + case 2: return PROTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LiteralMapFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LiteralMapFormat findValueByNumber(int number) { + return LiteralMapFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.DataLoadingConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LiteralMapFormat[] VALUES = values(); + + public static LiteralMapFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LiteralMapFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.DataLoadingConfig.LiteralMapFormat) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + *
+     * Flag enables DataLoading Config. If this is not set, data loading will not be used!
+     * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + + public static final int INPUT_PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object inputPath_; + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } + } + /** + *
+     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+     * /var/flyte/inputs/y -> Y is a file in Binary format
+     * /var/flyte/inputs/z/... -> Note Z itself is a directory
+     * More information about the protocol - refer to docs #TODO reference docs here
+     * 
+ * + * string input_path = 2; + */ + public com.google.protobuf.ByteString + getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_PATH_FIELD_NUMBER = 3; + private volatile java.lang.Object outputPath_; + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + public java.lang.String getOutputPath() { + java.lang.Object ref = outputPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPath_ = s; + return s; + } + } + /** + *
+     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+     * 
+ * + * string output_path = 3; + */ + public com.google.protobuf.ByteString + getOutputPathBytes() { + java.lang.Object ref = outputPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMAT_FIELD_NUMBER = 4; + private int format_; + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+     * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); + return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; + } + + public static final int IO_STRATEGY_FIELD_NUMBER = 5; + private flyteidl.core.Tasks.IOStrategy ioStrategy_; + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public boolean hasIoStrategy() { + return ioStrategy_ != null; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy getIoStrategy() { + return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { + return getIoStrategy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!getInputPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputPath_); + } + if (!getOutputPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPath_); + } + if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { + output.writeEnum(4, format_); + } + if (ioStrategy_ != null) { + output.writeMessage(5, getIoStrategy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!getInputPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputPath_); + } + if (!getOutputPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPath_); + } + if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, format_); + } + if (ioStrategy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getIoStrategy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.DataLoadingConfig)) { + return super.equals(obj); + } + flyteidl.core.Tasks.DataLoadingConfig other = (flyteidl.core.Tasks.DataLoadingConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getInputPath() + .equals(other.getInputPath())) return false; + if (!getOutputPath() + .equals(other.getOutputPath())) return false; + if (format_ != other.format_) return false; + if (hasIoStrategy() != other.hasIoStrategy()) return false; + if (hasIoStrategy()) { + if (!getIoStrategy() + .equals(other.getIoStrategy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getInputPath().hashCode(); + hash = (37 * hash) + OUTPUT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getOutputPath().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + format_; + if (hasIoStrategy()) { + hash = (37 * hash) + IO_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getIoStrategy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.DataLoadingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
+     * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
+     * Any outputs generated by the user container - within output_path are automatically uploaded.
+     * 
+ * + * Protobuf type {@code flyteidl.core.DataLoadingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.DataLoadingConfig) + flyteidl.core.Tasks.DataLoadingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); + } + + // Construct using flyteidl.core.Tasks.DataLoadingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + inputPath_ = ""; + + outputPath_ = ""; + + format_ = 0; + + if (ioStrategyBuilder_ == null) { + ioStrategy_ = null; + } else { + ioStrategy_ = null; + ioStrategyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { + return flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig build() { + flyteidl.core.Tasks.DataLoadingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig buildPartial() { + flyteidl.core.Tasks.DataLoadingConfig result = new flyteidl.core.Tasks.DataLoadingConfig(this); + result.enabled_ = enabled_; + result.inputPath_ = inputPath_; + result.outputPath_ = outputPath_; + result.format_ = format_; + if (ioStrategyBuilder_ == null) { + result.ioStrategy_ = ioStrategy_; + } else { + result.ioStrategy_ = ioStrategyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.DataLoadingConfig) { + return mergeFrom((flyteidl.core.Tasks.DataLoadingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.DataLoadingConfig other) { + if (other == flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getInputPath().isEmpty()) { + inputPath_ = other.inputPath_; + onChanged(); + } + if (!other.getOutputPath().isEmpty()) { + outputPath_ = other.outputPath_; + onChanged(); + } + if (other.format_ != 0) { + setFormatValue(other.getFormatValue()); + } + if (other.hasIoStrategy()) { + mergeIoStrategy(other.getIoStrategy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.DataLoadingConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.DataLoadingConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_ ; + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used!
+       * 
+ * + * bool enabled = 1; + */ + public boolean getEnabled() { + return enabled_; + } + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used!
+       * 
+ * + * bool enabled = 1; + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + *
+       * Flag enables DataLoading Config. If this is not set, data loading will not be used!
+       * 
+ * + * bool enabled = 1; + */ + public Builder clearEnabled() { + + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object inputPath_ = ""; + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public java.lang.String getInputPath() { + java.lang.Object ref = inputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public com.google.protobuf.ByteString + getInputPathBytes() { + java.lang.Object ref = inputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder setInputPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputPath_ = value; + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder clearInputPath() { + + inputPath_ = getDefaultInstance().getInputPath(); + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
+       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
+       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
+       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
+       * /var/flyte/inputs/y -> Y is a file in Binary format
+       * /var/flyte/inputs/z/... -> Note Z itself is a directory
+       * More information about the protocol - refer to docs #TODO reference docs here
+       * 
+ * + * string input_path = 2; + */ + public Builder setInputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputPath_ = value; + onChanged(); + return this; + } + + private java.lang.Object outputPath_ = ""; + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public java.lang.String getOutputPath() { + java.lang.Object ref = outputPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public com.google.protobuf.ByteString + getOutputPathBytes() { + java.lang.Object ref = outputPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder setOutputPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputPath_ = value; + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder clearOutputPath() { + + outputPath_ = getDefaultInstance().getOutputPath(); + onChanged(); + return this; + } + /** + *
+       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
+       * 
+ * + * string output_path = 3; + */ + public Builder setOutputPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputPath_ = value; + onChanged(); + return this; + } + + private int format_ = 0; + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public int getFormatValue() { + return format_; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder setFormatValue(int value) { + format_ = value; + onChanged(); + return this; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); + return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder setFormat(flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
+       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
+       * 
+ * + * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + public Builder clearFormat() { + + format_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.IOStrategy ioStrategy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> ioStrategyBuilder_; + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public boolean hasIoStrategy() { + return ioStrategyBuilder_ != null || ioStrategy_ != null; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy getIoStrategy() { + if (ioStrategyBuilder_ == null) { + return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } else { + return ioStrategyBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder setIoStrategy(flyteidl.core.Tasks.IOStrategy value) { + if (ioStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ioStrategy_ = value; + onChanged(); + } else { + ioStrategyBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder setIoStrategy( + flyteidl.core.Tasks.IOStrategy.Builder builderForValue) { + if (ioStrategyBuilder_ == null) { + ioStrategy_ = builderForValue.build(); + onChanged(); + } else { + ioStrategyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder mergeIoStrategy(flyteidl.core.Tasks.IOStrategy value) { + if (ioStrategyBuilder_ == null) { + if (ioStrategy_ != null) { + ioStrategy_ = + flyteidl.core.Tasks.IOStrategy.newBuilder(ioStrategy_).mergeFrom(value).buildPartial(); + } else { + ioStrategy_ = value; + } + onChanged(); + } else { + ioStrategyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public Builder clearIoStrategy() { + if (ioStrategyBuilder_ == null) { + ioStrategy_ = null; + onChanged(); + } else { + ioStrategy_ = null; + ioStrategyBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategy.Builder getIoStrategyBuilder() { + + onChanged(); + return getIoStrategyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { + if (ioStrategyBuilder_ != null) { + return ioStrategyBuilder_.getMessageOrBuilder(); + } else { + return ioStrategy_ == null ? + flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; + } + } + /** + * .flyteidl.core.IOStrategy io_strategy = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> + getIoStrategyFieldBuilder() { + if (ioStrategyBuilder_ == null) { + ioStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder>( + getIoStrategy(), + getParentForChildren(), + isClean()); + ioStrategy_ = null; + } + return ioStrategyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.DataLoadingConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) + private static final flyteidl.core.Tasks.DataLoadingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.DataLoadingConfig(); + } + + public static flyteidl.core.Tasks.DataLoadingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataLoadingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataLoadingConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface K8sPodOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.K8sPod) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Contains additional metadata for building a kubernetes pod.
+     * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Contains additional metadata for building a kubernetes pod.
+     * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + flyteidl.core.Tasks.K8sObjectMetadata getMetadata(); + /** + *
+     * Contains additional metadata for building a kubernetes pod.
+     * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + flyteidl.core.Tasks.K8sObjectMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Defines the primary pod spec created when a task is executed.
+     * This should be a JSON-marshalled pod spec, which can be defined in
+     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+     * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + boolean hasPodSpec(); + /** + *
+     * Defines the primary pod spec created when a task is executed.
+     * This should be a JSON-marshalled pod spec, which can be defined in
+     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+     * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + com.google.protobuf.Struct getPodSpec(); + /** + *
+     * Defines the primary pod spec created when a task is executed.
+     * This should be a JSON-marshalled pod spec, which can be defined in
+     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+     * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + com.google.protobuf.StructOrBuilder getPodSpecOrBuilder(); + + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + boolean hasDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); + } + /** + *
+   * Defines a pod spec and additional pod metadata that is created when a task is executed.
+   * 
+ * + * Protobuf type {@code flyteidl.core.K8sPod} + */ + public static final class K8sPod extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.K8sPod) + K8sPodOrBuilder { + private static final long serialVersionUID = 0L; + // Use K8sPod.newBuilder() to construct. + private K8sPod(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private K8sPod() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private K8sPod( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Tasks.K8sObjectMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Tasks.K8sObjectMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (podSpec_ != null) { + subBuilder = podSpec_.toBuilder(); + } + podSpec_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podSpec_); + podSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; + if (dataConfig_ != null) { + subBuilder = dataConfig_.toBuilder(); + } + dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataConfig_); + dataConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.K8sPod.class, flyteidl.core.Tasks.K8sPod.Builder.class); + } + + public static final int METADATA_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.K8sObjectMetadata metadata_; + /** + *
+     * Contains additional metadata for building a kubernetes pod.
+     * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Contains additional metadata for building a kubernetes pod.
+     * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public flyteidl.core.Tasks.K8sObjectMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Contains additional metadata for building a kubernetes pod.
+     * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public flyteidl.core.Tasks.K8sObjectMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int POD_SPEC_FIELD_NUMBER = 2; + private com.google.protobuf.Struct podSpec_; + /** + *
+     * Defines the primary pod spec created when a task is executed.
+     * This should be a JSON-marshalled pod spec, which can be defined in
+     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+     * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public boolean hasPodSpec() { + return podSpec_ != null; + } + /** + *
+     * Defines the primary pod spec created when a task is executed.
+     * This should be a JSON-marshalled pod spec, which can be defined in
+     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+     * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public com.google.protobuf.Struct getPodSpec() { + return podSpec_ == null ? com.google.protobuf.Struct.getDefaultInstance() : podSpec_; + } + /** + *
+     * Defines the primary pod spec created when a task is executed.
+     * This should be a JSON-marshalled pod spec, which can be defined in
+     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+     * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public com.google.protobuf.StructOrBuilder getPodSpecOrBuilder() { + return getPodSpec(); + } + + public static final int DATA_CONFIG_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public boolean hasDataConfig() { + return dataConfig_ != null; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + /** + *
+     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+     * This makes it possible to to run a completely portable container, that uses inputs and outputs
+     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+     * to understand the default paths.
+     * Only K8s
+     * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + return getDataConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (metadata_ != null) { + output.writeMessage(1, getMetadata()); + } + if (podSpec_ != null) { + output.writeMessage(2, getPodSpec()); + } + if (dataConfig_ != null) { + output.writeMessage(3, getDataConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (podSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPodSpec()); + } + if (dataConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDataConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.K8sPod)) { + return super.equals(obj); + } + flyteidl.core.Tasks.K8sPod other = (flyteidl.core.Tasks.K8sPod) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasPodSpec() != other.hasPodSpec()) return false; + if (hasPodSpec()) { + if (!getPodSpec() + .equals(other.getPodSpec())) return false; + } + if (hasDataConfig() != other.hasDataConfig()) return false; + if (hasDataConfig()) { + if (!getDataConfig() + .equals(other.getDataConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasPodSpec()) { + hash = (37 * hash) + POD_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPodSpec().hashCode(); + } + if (hasDataConfig()) { + hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDataConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.K8sPod parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.K8sPod parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sPod parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.K8sPod parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sPod parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.K8sPod parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sPod parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.K8sPod parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sPod parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.K8sPod parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sPod parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.K8sPod parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.K8sPod prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a pod spec and additional pod metadata that is created when a task is executed.
+     * 
+ * + * Protobuf type {@code flyteidl.core.K8sPod} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.K8sPod) + flyteidl.core.Tasks.K8sPodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.K8sPod.class, flyteidl.core.Tasks.K8sPod.Builder.class); + } + + // Construct using flyteidl.core.Tasks.K8sPod.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (podSpecBuilder_ == null) { + podSpec_ = null; + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sPod getDefaultInstanceForType() { + return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sPod build() { + flyteidl.core.Tasks.K8sPod result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sPod buildPartial() { + flyteidl.core.Tasks.K8sPod result = new flyteidl.core.Tasks.K8sPod(this); + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (podSpecBuilder_ == null) { + result.podSpec_ = podSpec_; + } else { + result.podSpec_ = podSpecBuilder_.build(); + } + if (dataConfigBuilder_ == null) { + result.dataConfig_ = dataConfig_; + } else { + result.dataConfig_ = dataConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.K8sPod) { + return mergeFrom((flyteidl.core.Tasks.K8sPod)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.K8sPod other) { + if (other == flyteidl.core.Tasks.K8sPod.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasPodSpec()) { + mergePodSpec(other.getPodSpec()); + } + if (other.hasDataConfig()) { + mergeDataConfig(other.getDataConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.K8sPod parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.K8sPod) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.K8sObjectMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.K8sObjectMetadata, flyteidl.core.Tasks.K8sObjectMetadata.Builder, flyteidl.core.Tasks.K8sObjectMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public flyteidl.core.Tasks.K8sObjectMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public Builder setMetadata(flyteidl.core.Tasks.K8sObjectMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public Builder setMetadata( + flyteidl.core.Tasks.K8sObjectMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public Builder mergeMetadata(flyteidl.core.Tasks.K8sObjectMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Tasks.K8sObjectMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public flyteidl.core.Tasks.K8sObjectMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + public flyteidl.core.Tasks.K8sObjectMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Contains additional metadata for building a kubernetes pod.
+       * 
+ * + * .flyteidl.core.K8sObjectMetadata metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.K8sObjectMetadata, flyteidl.core.Tasks.K8sObjectMetadata.Builder, flyteidl.core.Tasks.K8sObjectMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.K8sObjectMetadata, flyteidl.core.Tasks.K8sObjectMetadata.Builder, flyteidl.core.Tasks.K8sObjectMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.Struct podSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> podSpecBuilder_; + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public boolean hasPodSpec() { + return podSpecBuilder_ != null || podSpec_ != null; + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public com.google.protobuf.Struct getPodSpec() { + if (podSpecBuilder_ == null) { + return podSpec_ == null ? com.google.protobuf.Struct.getDefaultInstance() : podSpec_; + } else { + return podSpecBuilder_.getMessage(); + } + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public Builder setPodSpec(com.google.protobuf.Struct value) { + if (podSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSpec_ = value; + onChanged(); + } else { + podSpecBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public Builder setPodSpec( + com.google.protobuf.Struct.Builder builderForValue) { + if (podSpecBuilder_ == null) { + podSpec_ = builderForValue.build(); + onChanged(); + } else { + podSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public Builder mergePodSpec(com.google.protobuf.Struct value) { + if (podSpecBuilder_ == null) { + if (podSpec_ != null) { + podSpec_ = + com.google.protobuf.Struct.newBuilder(podSpec_).mergeFrom(value).buildPartial(); + } else { + podSpec_ = value; + } + onChanged(); + } else { + podSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public Builder clearPodSpec() { + if (podSpecBuilder_ == null) { + podSpec_ = null; + onChanged(); + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + + return this; + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public com.google.protobuf.Struct.Builder getPodSpecBuilder() { + + onChanged(); + return getPodSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + public com.google.protobuf.StructOrBuilder getPodSpecOrBuilder() { + if (podSpecBuilder_ != null) { + return podSpecBuilder_.getMessageOrBuilder(); + } else { + return podSpec_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : podSpec_; + } + } + /** + *
+       * Defines the primary pod spec created when a task is executed.
+       * This should be a JSON-marshalled pod spec, which can be defined in
+       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
+       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
+       * 
+ * + * .google.protobuf.Struct pod_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getPodSpecFieldBuilder() { + if (podSpecBuilder_ == null) { + podSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getPodSpec(), + getParentForChildren(), + isClean()); + podSpec_ = null; + } + return podSpecBuilder_; + } + + private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public boolean hasDataConfig() { + return dataConfigBuilder_ != null || dataConfig_ != null; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { + if (dataConfigBuilder_ == null) { + return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } else { + return dataConfigBuilder_.getMessage(); + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataConfig_ = value; + onChanged(); + } else { + dataConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public Builder setDataConfig( + flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { + if (dataConfigBuilder_ == null) { + dataConfig_ = builderForValue.build(); + onChanged(); + } else { + dataConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { + if (dataConfigBuilder_ == null) { + if (dataConfig_ != null) { + dataConfig_ = + flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); + } else { + dataConfig_ = value; + } + onChanged(); + } else { + dataConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public Builder clearDataConfig() { + if (dataConfigBuilder_ == null) { + dataConfig_ = null; + onChanged(); + } else { + dataConfig_ = null; + dataConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { + + onChanged(); + return getDataConfigFieldBuilder().getBuilder(); + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { + if (dataConfigBuilder_ != null) { + return dataConfigBuilder_.getMessageOrBuilder(); + } else { + return dataConfig_ == null ? + flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; + } + } + /** + *
+       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
+       * This makes it possible to to run a completely portable container, that uses inputs and outputs
+       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
+       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
+       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
+       * to understand the default paths.
+       * Only K8s
+       * 
+ * + * .flyteidl.core.DataLoadingConfig data_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> + getDataConfigFieldBuilder() { + if (dataConfigBuilder_ == null) { + dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( + getDataConfig(), + getParentForChildren(), + isClean()); + dataConfig_ = null; + } + return dataConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.K8sPod) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.K8sPod) + private static final flyteidl.core.Tasks.K8sPod DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.K8sPod(); + } + + public static flyteidl.core.Tasks.K8sPod getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public K8sPod parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new K8sPod(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sPod getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface K8sObjectMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.K8sObjectMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + int getLabelsCount(); + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + java.util.Map + getLabelsMap(); + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + int getAnnotationsCount(); + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + } + /** + *
+   * Metadata for building a kubernetes object when a task is executed.
+   * 
+ * + * Protobuf type {@code flyteidl.core.K8sObjectMetadata} + */ + public static final class K8sObjectMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.K8sObjectMetadata) + K8sObjectMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use K8sObjectMetadata.newBuilder() to construct. + private K8sObjectMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private K8sObjectMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private K8sObjectMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + annotations_.getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + case 2: + return internalGetAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.K8sObjectMetadata.class, flyteidl.core.Tasks.K8sObjectMetadata.Builder.class); + } + + public static final int LABELS_FIELD_NUMBER = 1; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Optional labels to add to the pod definition.
+     * 
+ * + * map<string, string> labels = 1; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 2; + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Optional annotations to add to the pod definition.
+     * 
+ * + * map<string, string> annotations = 2; + */ + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 1); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, labels__); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, annotations__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.K8sObjectMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.K8sObjectMetadata other = (flyteidl.core.Tasks.K8sObjectMetadata) obj; + + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.K8sObjectMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Metadata for building a kubernetes object when a task is executed.
+     * 
+ * + * Protobuf type {@code flyteidl.core.K8sObjectMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.K8sObjectMetadata) + flyteidl.core.Tasks.K8sObjectMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + case 2: + return internalGetAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableLabels(); + case 2: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.K8sObjectMetadata.class, flyteidl.core.Tasks.K8sObjectMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.K8sObjectMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sObjectMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sObjectMetadata build() { + flyteidl.core.Tasks.K8sObjectMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sObjectMetadata buildPartial() { + flyteidl.core.Tasks.K8sObjectMetadata result = new flyteidl.core.Tasks.K8sObjectMetadata(this); + int from_bitField0_ = bitField0_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.K8sObjectMetadata) { + return mergeFrom((flyteidl.core.Tasks.K8sObjectMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.K8sObjectMetadata other) { + if (other == flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance()) return this; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.K8sObjectMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.K8sObjectMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+       * Optional labels to add to the pod definition.
+       * 
+ * + * map<string, string> labels = 1; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+       * Optional labels to add to the pod definition.
+       * 
+ * + * map<string, string> labels = 1; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+       * Optional labels to add to the pod definition.
+       * 
+ * + * map<string, string> labels = 1; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Optional labels to add to the pod definition.
+       * 
+ * + * map<string, string> labels = 1; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Optional labels to add to the pod definition.
+       * 
+ * + * map<string, string> labels = 1; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+       * Optional labels to add to the pod definition.
+       * 
+ * + * map<string, string> labels = 1; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Optional labels to add to the pod definition.
+       * 
+ * + * map<string, string> labels = 1; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + onChanged();; + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+       * Optional annotations to add to the pod definition.
+       * 
+ * + * map<string, string> annotations = 2; + */ + + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+       * Optional annotations to add to the pod definition.
+       * 
+ * + * map<string, string> annotations = 2; + */ + + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+       * Optional annotations to add to the pod definition.
+       * 
+ * + * map<string, string> annotations = 2; + */ + + public java.lang.String getAnnotationsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Optional annotations to add to the pod definition.
+       * 
+ * + * map<string, string> annotations = 2; + */ + + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Optional annotations to add to the pod definition.
+       * 
+ * + * map<string, string> annotations = 2; + */ + + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+       * Optional annotations to add to the pod definition.
+       * 
+ * + * map<string, string> annotations = 2; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Optional annotations to add to the pod definition.
+       * 
+ * + * map<string, string> annotations = 2; + */ + + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.K8sObjectMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.K8sObjectMetadata) + private static final flyteidl.core.Tasks.K8sObjectMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.K8sObjectMetadata(); + } + + public static flyteidl.core.Tasks.K8sObjectMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public K8sObjectMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new K8sObjectMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.K8sObjectMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SqlOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Sql) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The actual query to run, the query can have templated parameters.
+     * We use Flyte's Golang templating format for Query templating.
+     * Refer to the templating documentation.
+     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+     * For example,
+     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+     * select *
+     * from my_table
+     * where ds = '{{ .Inputs.ds }}'
+     * 
+ * + * string statement = 1; + */ + java.lang.String getStatement(); + /** + *
+     * The actual query to run, the query can have templated parameters.
+     * We use Flyte's Golang templating format for Query templating.
+     * Refer to the templating documentation.
+     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+     * For example,
+     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+     * select *
+     * from my_table
+     * where ds = '{{ .Inputs.ds }}'
+     * 
+ * + * string statement = 1; + */ + com.google.protobuf.ByteString + getStatementBytes(); + + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + int getDialectValue(); + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + flyteidl.core.Tasks.Sql.Dialect getDialect(); + } + /** + *
+   * Sql represents a generic sql workload with a statement and dialect.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Sql} + */ + public static final class Sql extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Sql) + SqlOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sql.newBuilder() to construct. + private Sql(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Sql() { + statement_ = ""; + dialect_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sql( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + statement_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + dialect_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Sql.class, flyteidl.core.Tasks.Sql.Builder.class); + } + + /** + *
+     * The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid
+     * expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.
+     * We support the following dialect: ansi, hive.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.Sql.Dialect} + */ + public enum Dialect + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * ANSI = 1; + */ + ANSI(1), + /** + * HIVE = 2; + */ + HIVE(2), + /** + * OTHER = 3; + */ + OTHER(3), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * ANSI = 1; + */ + public static final int ANSI_VALUE = 1; + /** + * HIVE = 2; + */ + public static final int HIVE_VALUE = 2; + /** + * OTHER = 3; + */ + public static final int OTHER_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Dialect valueOf(int value) { + return forNumber(value); + } + + public static Dialect forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return ANSI; + case 2: return HIVE; + case 3: return OTHER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Dialect> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Dialect findValueByNumber(int number) { + return Dialect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.Sql.getDescriptor().getEnumTypes().get(0); + } + + private static final Dialect[] VALUES = values(); + + public static Dialect valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Dialect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.Sql.Dialect) + } + + public static final int STATEMENT_FIELD_NUMBER = 1; + private volatile java.lang.Object statement_; + /** + *
+     * The actual query to run, the query can have templated parameters.
+     * We use Flyte's Golang templating format for Query templating.
+     * Refer to the templating documentation.
+     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+     * For example,
+     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+     * select *
+     * from my_table
+     * where ds = '{{ .Inputs.ds }}'
+     * 
+ * + * string statement = 1; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statement_ = s; + return s; + } + } + /** + *
+     * The actual query to run, the query can have templated parameters.
+     * We use Flyte's Golang templating format for Query templating.
+     * Refer to the templating documentation.
+     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+     * For example,
+     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+     * select *
+     * from my_table
+     * where ds = '{{ .Inputs.ds }}'
+     * 
+ * + * string statement = 1; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIALECT_FIELD_NUMBER = 2; + private int dialect_; + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + public int getDialectValue() { + return dialect_; + } + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + public flyteidl.core.Tasks.Sql.Dialect getDialect() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Sql.Dialect result = flyteidl.core.Tasks.Sql.Dialect.valueOf(dialect_); + return result == null ? flyteidl.core.Tasks.Sql.Dialect.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getStatementBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, statement_); + } + if (dialect_ != flyteidl.core.Tasks.Sql.Dialect.UNDEFINED.getNumber()) { + output.writeEnum(2, dialect_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStatementBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, statement_); + } + if (dialect_ != flyteidl.core.Tasks.Sql.Dialect.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dialect_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Tasks.Sql)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Sql other = (flyteidl.core.Tasks.Sql) obj; + + if (!getStatement() + .equals(other.getStatement())) return false; + if (dialect_ != other.dialect_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATEMENT_FIELD_NUMBER; + hash = (53 * hash) + getStatement().hashCode(); + hash = (37 * hash) + DIALECT_FIELD_NUMBER; + hash = (53 * hash) + dialect_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Sql parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Sql parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Sql parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Sql parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Sql parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Sql parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Sql parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Sql parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Sql parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Sql parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Tasks.Sql parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Sql parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.Sql prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Sql represents a generic sql workload with a statement and dialect.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Sql} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Sql) + flyteidl.core.Tasks.SqlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Sql.class, flyteidl.core.Tasks.Sql.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Sql.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + statement_ = ""; + + dialect_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_descriptor; + } + + @java.lang.Override + public flyteidl.core.Tasks.Sql getDefaultInstanceForType() { + return flyteidl.core.Tasks.Sql.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Tasks.Sql build() { + flyteidl.core.Tasks.Sql result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Tasks.Sql buildPartial() { + flyteidl.core.Tasks.Sql result = new flyteidl.core.Tasks.Sql(this); + result.statement_ = statement_; + result.dialect_ = dialect_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.Sql) { + return mergeFrom((flyteidl.core.Tasks.Sql)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Sql other) { + if (other == flyteidl.core.Tasks.Sql.getDefaultInstance()) return this; + if (!other.getStatement().isEmpty()) { + statement_ = other.statement_; + onChanged(); + } + if (other.dialect_ != 0) { + setDialectValue(other.getDialectValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.Sql parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Sql) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object statement_ = ""; + /** + *
+       * The actual query to run, the query can have templated parameters.
+       * We use Flyte's Golang templating format for Query templating.
+       * Refer to the templating documentation.
+       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+       * For example,
+       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+       * select *
+       * from my_table
+       * where ds = '{{ .Inputs.ds }}'
+       * 
+ * + * string statement = 1; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The actual query to run, the query can have templated parameters.
+       * We use Flyte's Golang templating format for Query templating.
+       * Refer to the templating documentation.
+       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+       * For example,
+       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+       * select *
+       * from my_table
+       * where ds = '{{ .Inputs.ds }}'
+       * 
+ * + * string statement = 1; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The actual query to run, the query can have templated parameters.
+       * We use Flyte's Golang templating format for Query templating.
+       * Refer to the templating documentation.
+       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+       * For example,
+       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+       * select *
+       * from my_table
+       * where ds = '{{ .Inputs.ds }}'
+       * 
+ * + * string statement = 1; + */ + public Builder setStatement( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statement_ = value; + onChanged(); + return this; + } + /** + *
+       * The actual query to run, the query can have templated parameters.
+       * We use Flyte's Golang templating format for Query templating.
+       * Refer to the templating documentation.
+       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+       * For example,
+       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+       * select *
+       * from my_table
+       * where ds = '{{ .Inputs.ds }}'
+       * 
+ * + * string statement = 1; + */ + public Builder clearStatement() { + + statement_ = getDefaultInstance().getStatement(); + onChanged(); + return this; + } + /** + *
+       * The actual query to run, the query can have templated parameters.
+       * We use Flyte's Golang templating format for Query templating.
+       * Refer to the templating documentation.
+       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
+       * For example,
+       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
+       * select *
+       * from my_table
+       * where ds = '{{ .Inputs.ds }}'
+       * 
+ * + * string statement = 1; + */ + public Builder setStatementBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statement_ = value; + onChanged(); + return this; + } + + private int dialect_ = 0; + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + public int getDialectValue() { + return dialect_; + } + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + public Builder setDialectValue(int value) { + dialect_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + public flyteidl.core.Tasks.Sql.Dialect getDialect() { + @SuppressWarnings("deprecation") + flyteidl.core.Tasks.Sql.Dialect result = flyteidl.core.Tasks.Sql.Dialect.valueOf(dialect_); + return result == null ? flyteidl.core.Tasks.Sql.Dialect.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + public Builder setDialect(flyteidl.core.Tasks.Sql.Dialect value) { + if (value == null) { + throw new NullPointerException(); + } + + dialect_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.Sql.Dialect dialect = 2; + */ + public Builder clearDialect() { + + dialect_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Sql) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Sql) + private static final flyteidl.core.Tasks.Sql DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Sql(); + } + + public static flyteidl.core.Tasks.Sql getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sql parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sql(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Tasks.Sql getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RuntimeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskMetadata_TagsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskMetadata_TagsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskTemplate_ConfigEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskTemplate_ConfigEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerPort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Container_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Container_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IOStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IOStrategy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_DataLoadingConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_K8sPod_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_K8sPod_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_K8sObjectMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_K8sObjectMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Sql_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Sql_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031flyteidl/core/tasks.proto\022\rflyteidl.co" + + "re\032\036flyteidl/core/identifier.proto\032\035flyt" + + "eidl/core/interface.proto\032\034flyteidl/core" + + "/literals.proto\032\034flyteidl/core/security." + + "proto\032\036google/protobuf/duration.proto\032\034g" + + "oogle/protobuf/struct.proto\"\261\002\n\tResource" + + "s\0228\n\010requests\030\001 \003(\0132&.flyteidl.core.Reso" + + "urces.ResourceEntry\0226\n\006limits\030\002 \003(\0132&.fl" + + "yteidl.core.Resources.ResourceEntry\032S\n\rR" + + "esourceEntry\0223\n\004name\030\001 \001(\0162%.flyteidl.co" + + "re.Resources.ResourceName\022\r\n\005value\030\002 \001(\t" + + "\"]\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022\007\n\003CPU\020\001\022\007" + + "\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE\020\004\022\025\n\021EPHE" + + "MERAL_STORAGE\020\005\"\225\001\n\017RuntimeMetadata\0228\n\004t" + + "ype\030\001 \001(\0162*.flyteidl.core.RuntimeMetadat" + + "a.RuntimeType\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor" + + "\030\003 \001(\t\"\'\n\013RuntimeType\022\t\n\005OTHER\020\000\022\r\n\tFLYT" + + "E_SDK\020\001\"\316\003\n\014TaskMetadata\022\024\n\014discoverable" + + "\030\001 \001(\010\022/\n\007runtime\030\002 \001(\0132\036.flyteidl.core." + + "RuntimeMetadata\022*\n\007timeout\030\004 \001(\0132\031.googl" + + "e.protobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.f" + + "lyteidl.core.RetryStrategy\022\031\n\021discovery_" + + "version\030\006 \001(\t\022 \n\030deprecated_error_messag" + + "e\030\007 \001(\t\022\027\n\rinterruptible\030\010 \001(\010H\000\022\032\n\022cach" + + "e_serializable\030\t \001(\010\022\026\n\016generates_deck\030\n" + + " \001(\010\0223\n\004tags\030\013 \003(\0132%.flyteidl.core.TaskM" + + "etadata.TagsEntry\022\031\n\021pod_template_name\030\014" + + " \001(\t\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001B\025\n\023interruptible_value\"\220\004\n\014Tas" + + "kTemplate\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Id" + + "entifier\022\014\n\004type\030\002 \001(\t\022-\n\010metadata\030\003 \001(\013" + + "2\033.flyteidl.core.TaskMetadata\0220\n\tinterfa" + + "ce\030\004 \001(\0132\035.flyteidl.core.TypedInterface\022" + + "\'\n\006custom\030\005 \001(\0132\027.google.protobuf.Struct" + + "\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl.core.Cont" + + "ainerH\000\022(\n\007k8s_pod\030\021 \001(\0132\025.flyteidl.core" + + ".K8sPodH\000\022!\n\003sql\030\022 \001(\0132\022.flyteidl.core.S" + + "qlH\000\022\031\n\021task_type_version\030\007 \001(\005\0228\n\020secur" + + "ity_context\030\010 \001(\0132\036.flyteidl.core.Securi" + + "tyContext\0227\n\006config\030\020 \003(\0132\'.flyteidl.cor" + + "e.TaskTemplate.ConfigEntry\032-\n\013ConfigEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006tar" + + "get\"\'\n\rContainerPort\022\026\n\016container_port\030\001" + + " \001(\r\"\255\003\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007com" + + "mand\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022+\n\tresources\030\004 " + + "\001(\0132\030.flyteidl.core.Resources\022(\n\003env\030\005 \003" + + "(\0132\033.flyteidl.core.KeyValuePair\022/\n\006confi" + + "g\030\006 \003(\0132\033.flyteidl.core.KeyValuePairB\002\030\001" + + "\022+\n\005ports\030\007 \003(\0132\034.flyteidl.core.Containe" + + "rPort\0225\n\013data_config\030\t \001(\0132 .flyteidl.co" + + "re.DataLoadingConfig\022;\n\014architecture\030\n \001" + + "(\0162%.flyteidl.core.Container.Architectur" + + "e\"I\n\014Architecture\022\013\n\007UNKNOWN\020\000\022\t\n\005AMD64\020" + + "\001\022\t\n\005ARM64\020\002\022\n\n\006ARM_V6\020\003\022\n\n\006ARM_V7\020\004\"\233\002\n" + + "\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&.fly" + + "teidl.core.IOStrategy.DownloadMode\0229\n\013up" + + "load_mode\030\002 \001(\0162$.flyteidl.core.IOStrate" + + "gy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOWNLOA" + + "D_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO_NOT" + + "_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_ON_E" + + "XIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UPLOAD" + + "\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030\001 \001(" + + "\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path\030\003 \001" + + "(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.DataL" + + "oadingConfig.LiteralMapFormat\022.\n\013io_stra" + + "tegy\030\005 \001(\0132\031.flyteidl.core.IOStrategy\"1\n" + + "\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020\001\022\t\n" + + "\005PROTO\020\002\"\236\001\n\006K8sPod\0222\n\010metadata\030\001 \001(\0132 ." + + "flyteidl.core.K8sObjectMetadata\022)\n\010pod_s" + + "pec\030\002 \001(\0132\027.google.protobuf.Struct\0225\n\013da" + + "ta_config\030\003 \001(\0132 .flyteidl.core.DataLoad" + + "ingConfig\"\374\001\n\021K8sObjectMetadata\022<\n\006label" + + "s\030\001 \003(\0132,.flyteidl.core.K8sObjectMetadat" + + "a.LabelsEntry\022F\n\013annotations\030\002 \003(\01321.fly" + + "teidl.core.K8sObjectMetadata.Annotations" + + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"~\n\003Sql\022\021\n\tstate" + + "ment\030\001 \001(\t\022+\n\007dialect\030\002 \001(\0162\032.flyteidl.c" + + "ore.Sql.Dialect\"7\n\007Dialect\022\r\n\tUNDEFINED\020" + + "\000\022\010\n\004ANSI\020\001\022\010\n\004HIVE\020\002\022\t\n\005OTHER\020\003B6Z4gith" + + "ub.com/flyteorg/flyteidl/gen/pb-go/flyte" + + "idl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Security.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Resources_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Resources_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_descriptor, + new java.lang.String[] { "Requests", "Limits", }); + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor = + internal_static_flyteidl_core_Resources_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_flyteidl_core_RuntimeMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RuntimeMetadata_descriptor, + new java.lang.String[] { "Type", "Version", "Flavor", }); + internal_static_flyteidl_core_TaskMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskMetadata_descriptor, + new java.lang.String[] { "Discoverable", "Runtime", "Timeout", "Retries", "DiscoveryVersion", "DeprecatedErrorMessage", "Interruptible", "CacheSerializable", "GeneratesDeck", "Tags", "PodTemplateName", "InterruptibleValue", }); + internal_static_flyteidl_core_TaskMetadata_TagsEntry_descriptor = + internal_static_flyteidl_core_TaskMetadata_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_TaskMetadata_TagsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskMetadata_TagsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_TaskTemplate_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskTemplate_descriptor, + new java.lang.String[] { "Id", "Type", "Metadata", "Interface", "Custom", "Container", "K8SPod", "Sql", "TaskTypeVersion", "SecurityContext", "Config", "Target", }); + internal_static_flyteidl_core_TaskTemplate_ConfigEntry_descriptor = + internal_static_flyteidl_core_TaskTemplate_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_TaskTemplate_ConfigEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskTemplate_ConfigEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerPort_descriptor, + new java.lang.String[] { "ContainerPort", }); + internal_static_flyteidl_core_Container_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Container_descriptor, + new java.lang.String[] { "Image", "Command", "Args", "Resources", "Env", "Config", "Ports", "DataConfig", "Architecture", }); + internal_static_flyteidl_core_IOStrategy_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_IOStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IOStrategy_descriptor, + new java.lang.String[] { "DownloadMode", "UploadMode", }); + internal_static_flyteidl_core_DataLoadingConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_DataLoadingConfig_descriptor, + new java.lang.String[] { "Enabled", "InputPath", "OutputPath", "Format", "IoStrategy", }); + internal_static_flyteidl_core_K8sPod_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_K8sPod_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_K8sPod_descriptor, + new java.lang.String[] { "Metadata", "PodSpec", "DataConfig", }); + internal_static_flyteidl_core_K8sObjectMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_K8sObjectMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_K8sObjectMetadata_descriptor, + new java.lang.String[] { "Labels", "Annotations", }); + internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_descriptor = + internal_static_flyteidl_core_K8sObjectMetadata_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_descriptor = + internal_static_flyteidl_core_K8sObjectMetadata_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_Sql_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_Sql_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Sql_descriptor, + new java.lang.String[] { "Statement", "Dialect", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Security.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Types.java b/flyteidl/gen/pb-java/flyteidl/core/Types.java new file mode 100644 index 0000000000..227d63ac77 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Types.java @@ -0,0 +1,12914 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +package flyteidl.core; + +public final class Types { + private Types() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Define a set of simple types.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.SimpleType} + */ + public enum SimpleType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NONE = 0; + */ + NONE(0), + /** + * INTEGER = 1; + */ + INTEGER(1), + /** + * FLOAT = 2; + */ + FLOAT(2), + /** + * STRING = 3; + */ + STRING(3), + /** + * BOOLEAN = 4; + */ + BOOLEAN(4), + /** + * DATETIME = 5; + */ + DATETIME(5), + /** + * DURATION = 6; + */ + DURATION(6), + /** + * BINARY = 7; + */ + BINARY(7), + /** + * ERROR = 8; + */ + ERROR(8), + /** + * STRUCT = 9; + */ + STRUCT(9), + UNRECOGNIZED(-1), + ; + + /** + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + * INTEGER = 1; + */ + public static final int INTEGER_VALUE = 1; + /** + * FLOAT = 2; + */ + public static final int FLOAT_VALUE = 2; + /** + * STRING = 3; + */ + public static final int STRING_VALUE = 3; + /** + * BOOLEAN = 4; + */ + public static final int BOOLEAN_VALUE = 4; + /** + * DATETIME = 5; + */ + public static final int DATETIME_VALUE = 5; + /** + * DURATION = 6; + */ + public static final int DURATION_VALUE = 6; + /** + * BINARY = 7; + */ + public static final int BINARY_VALUE = 7; + /** + * ERROR = 8; + */ + public static final int ERROR_VALUE = 8; + /** + * STRUCT = 9; + */ + public static final int STRUCT_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SimpleType valueOf(int value) { + return forNumber(value); + } + + public static SimpleType forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return INTEGER; + case 2: return FLOAT; + case 3: return STRING; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 7: return BINARY; + case 8: return ERROR; + case 9: return STRUCT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SimpleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SimpleType findValueByNumber(int number) { + return SimpleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Types.getDescriptor().getEnumTypes().get(0); + } + + private static final SimpleType[] VALUES = values(); + + public static SimpleType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SimpleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SimpleType) + } + + public interface SchemaTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + int getColumnsCount(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsOrBuilderList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index); + } + /** + *
+   * Defines schema columns and types to strongly type-validate schemas interoperability.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class SchemaType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType) + SchemaTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaType.newBuilder() to construct. + private SchemaType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaType() { + columns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add( + input.readMessage(flyteidl.core.Types.SchemaType.SchemaColumn.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + public interface SchemaColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType.SchemaColumn) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + int getTypeValue(); + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType(); + } + /** + * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class SchemaColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType.SchemaColumn) + SchemaColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaColumn.newBuilder() to construct. + private SchemaColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaColumn() { + name_ = ""; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} + */ + public enum SchemaColumnType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INTEGER = 0; + */ + INTEGER(0), + /** + * FLOAT = 1; + */ + FLOAT(1), + /** + * STRING = 2; + */ + STRING(2), + /** + * BOOLEAN = 3; + */ + BOOLEAN(3), + /** + * DATETIME = 4; + */ + DATETIME(4), + /** + * DURATION = 5; + */ + DURATION(5), + UNRECOGNIZED(-1), + ; + + /** + * INTEGER = 0; + */ + public static final int INTEGER_VALUE = 0; + /** + * FLOAT = 1; + */ + public static final int FLOAT_VALUE = 1; + /** + * STRING = 2; + */ + public static final int STRING_VALUE = 2; + /** + * BOOLEAN = 3; + */ + public static final int BOOLEAN_VALUE = 3; + /** + * DATETIME = 4; + */ + public static final int DATETIME_VALUE = 4; + /** + * DURATION = 5; + */ + public static final int DURATION_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaColumnType valueOf(int value) { + return forNumber(value); + } + + public static SchemaColumnType forNumber(int value) { + switch (value) { + case 0: return INTEGER; + case 1: return FLOAT; + case 2: return STRING; + case 3: return BOOLEAN; + case 4: return DATETIME; + case 5: return DURATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaColumnType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaColumnType findValueByNumber(int number) { + return SchemaColumnType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Types.SchemaType.SchemaColumn.getDescriptor().getEnumTypes().get(0); + } + + private static final SchemaColumnType[] VALUES = values(); + + public static SchemaColumnType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SchemaColumnType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + output.writeEnum(2, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.SchemaType.SchemaColumn)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType.SchemaColumn other = (flyteidl.core.Types.SchemaType.SchemaColumn) obj; + + if (!getName() + .equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.SchemaType.SchemaColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType.SchemaColumn) + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.SchemaColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn build() { + flyteidl.core.Types.SchemaType.SchemaColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn buildPartial() { + flyteidl.core.Types.SchemaType.SchemaColumn result = new flyteidl.core.Types.SchemaType.SchemaColumn(this); + result.name_ = name_; + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.SchemaType.SchemaColumn) { + return mergeFrom((flyteidl.core.Types.SchemaType.SchemaColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType.SchemaColumn other) { + if (other == flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.SchemaType.SchemaColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType.SchemaColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setType(flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SchemaType.SchemaColumn) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) + private static final flyteidl.core.Types.SchemaType.SchemaColumn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType.SchemaColumn(); + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaColumn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int COLUMNS_FIELD_NUMBER = 3; + private java.util.List columns_; + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + return columns_.get(index); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + return columns_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(3, columns_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, columns_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.SchemaType)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType other = (flyteidl.core.Types.SchemaType) obj; + + if (!getColumnsList() + .equals(other.getColumnsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.SchemaType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines schema columns and types to strongly type-validate schemas interoperability.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType) + flyteidl.core.Types.SchemaTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColumnsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType build() { + flyteidl.core.Types.SchemaType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType buildPartial() { + flyteidl.core.Types.SchemaType result = new flyteidl.core.Types.SchemaType(this); + int from_bitField0_ = bitField0_; + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.SchemaType) { + return mergeFrom((flyteidl.core.Types.SchemaType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType other) { + if (other == flyteidl.core.Types.SchemaType.getDefaultInstance()) return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnsFieldBuilder() : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.SchemaType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List columns_ = + java.util.Collections.emptyList(); + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> columnsBuilder_; + + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns(flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder getColumnsBuilder( + int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder() { + return getColumnsFieldBuilder().addBuilder( + flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder( + int index) { + return getColumnsFieldBuilder().addBuilder( + index, flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder>( + columns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + columns_ = null; + } + return columnsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SchemaType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) + private static final flyteidl.core.Types.SchemaType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType(); + } + + public static flyteidl.core.Types.SchemaType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StructuredDatasetTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDatasetType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + java.util.List + getColumnsList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + flyteidl.core.Types.StructuredDatasetType.DatasetColumn getColumns(int index); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + int getColumnsCount(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + java.util.List + getColumnsOrBuilderList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder getColumnsOrBuilder( + int index); + + /** + *
+     * This is the storage format, the format of the bits at rest
+     * parquet, feather, csv, etc.
+     * For two types to be compatible, the format will need to be an exact match.
+     * 
+ * + * string format = 2; + */ + java.lang.String getFormat(); + /** + *
+     * This is the storage format, the format of the bits at rest
+     * parquet, feather, csv, etc.
+     * For two types to be compatible, the format will need to be an exact match.
+     * 
+ * + * string format = 2; + */ + com.google.protobuf.ByteString + getFormatBytes(); + + /** + *
+     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+     * This is an optional field that will not be used for type checking.
+     * 
+ * + * string external_schema_type = 3; + */ + java.lang.String getExternalSchemaType(); + /** + *
+     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+     * This is an optional field that will not be used for type checking.
+     * 
+ * + * string external_schema_type = 3; + */ + com.google.protobuf.ByteString + getExternalSchemaTypeBytes(); + + /** + *
+     * The serialized bytes of a third-party schema library like Arrow.
+     * This is an optional field that will not be used for type checking.
+     * 
+ * + * bytes external_schema_bytes = 4; + */ + com.google.protobuf.ByteString getExternalSchemaBytes(); + } + /** + * Protobuf type {@code flyteidl.core.StructuredDatasetType} + */ + public static final class StructuredDatasetType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDatasetType) + StructuredDatasetTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructuredDatasetType.newBuilder() to construct. + private StructuredDatasetType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructuredDatasetType() { + columns_ = java.util.Collections.emptyList(); + format_ = ""; + externalSchemaType_ = ""; + externalSchemaBytes_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StructuredDatasetType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add( + input.readMessage(flyteidl.core.Types.StructuredDatasetType.DatasetColumn.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + format_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + externalSchemaType_ = s; + break; + } + case 34: { + + externalSchemaBytes_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.StructuredDatasetType.class, flyteidl.core.Types.StructuredDatasetType.Builder.class); + } + + public interface DatasetColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDatasetType.DatasetColumn) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * A unique name within the schema type for the column.
+       * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+       * A unique name within the schema type for the column.
+       * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       * The column type.
+       * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + boolean hasLiteralType(); + /** + *
+       * The column type.
+       * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + flyteidl.core.Types.LiteralType getLiteralType(); + /** + *
+       * The column type.
+       * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getLiteralTypeOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.StructuredDatasetType.DatasetColumn} + */ + public static final class DatasetColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDatasetType.DatasetColumn) + DatasetColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetColumn.newBuilder() to construct. + private DatasetColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DatasetColumn() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DatasetColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (literalType_ != null) { + subBuilder = literalType_.toBuilder(); + } + literalType_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(literalType_); + literalType_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.StructuredDatasetType.DatasetColumn.class, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       * A unique name within the schema type for the column.
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+       * A unique name within the schema type for the column.
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LITERAL_TYPE_FIELD_NUMBER = 2; + private flyteidl.core.Types.LiteralType literalType_; + /** + *
+       * The column type.
+       * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public boolean hasLiteralType() { + return literalType_ != null; + } + /** + *
+       * The column type.
+       * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public flyteidl.core.Types.LiteralType getLiteralType() { + return literalType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : literalType_; + } + /** + *
+       * The column type.
+       * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getLiteralTypeOrBuilder() { + return getLiteralType(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (literalType_ != null) { + output.writeMessage(2, getLiteralType()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (literalType_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLiteralType()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.StructuredDatasetType.DatasetColumn)) { + return super.equals(obj); + } + flyteidl.core.Types.StructuredDatasetType.DatasetColumn other = (flyteidl.core.Types.StructuredDatasetType.DatasetColumn) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasLiteralType() != other.hasLiteralType()) return false; + if (hasLiteralType()) { + if (!getLiteralType() + .equals(other.getLiteralType())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasLiteralType()) { + hash = (37 * hash) + LITERAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getLiteralType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.StructuredDatasetType.DatasetColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.StructuredDatasetType.DatasetColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDatasetType.DatasetColumn) + flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.StructuredDatasetType.DatasetColumn.class, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder.class); + } + + // Construct using flyteidl.core.Types.StructuredDatasetType.DatasetColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (literalTypeBuilder_ == null) { + literalType_ = null; + } else { + literalType_ = null; + literalTypeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn getDefaultInstanceForType() { + return flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn build() { + flyteidl.core.Types.StructuredDatasetType.DatasetColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn buildPartial() { + flyteidl.core.Types.StructuredDatasetType.DatasetColumn result = new flyteidl.core.Types.StructuredDatasetType.DatasetColumn(this); + result.name_ = name_; + if (literalTypeBuilder_ == null) { + result.literalType_ = literalType_; + } else { + result.literalType_ = literalTypeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.StructuredDatasetType.DatasetColumn) { + return mergeFrom((flyteidl.core.Types.StructuredDatasetType.DatasetColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.StructuredDatasetType.DatasetColumn other) { + if (other == flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasLiteralType()) { + mergeLiteralType(other.getLiteralType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.StructuredDatasetType.DatasetColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.StructuredDatasetType.DatasetColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+         * A unique name within the schema type for the column.
+         * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * A unique name within the schema type for the column.
+         * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * A unique name within the schema type for the column.
+         * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         * A unique name within the schema type for the column.
+         * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         * A unique name within the schema type for the column.
+         * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Types.LiteralType literalType_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> literalTypeBuilder_; + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public boolean hasLiteralType() { + return literalTypeBuilder_ != null || literalType_ != null; + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public flyteidl.core.Types.LiteralType getLiteralType() { + if (literalTypeBuilder_ == null) { + return literalType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : literalType_; + } else { + return literalTypeBuilder_.getMessage(); + } + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public Builder setLiteralType(flyteidl.core.Types.LiteralType value) { + if (literalTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + literalType_ = value; + onChanged(); + } else { + literalTypeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public Builder setLiteralType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (literalTypeBuilder_ == null) { + literalType_ = builderForValue.build(); + onChanged(); + } else { + literalTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public Builder mergeLiteralType(flyteidl.core.Types.LiteralType value) { + if (literalTypeBuilder_ == null) { + if (literalType_ != null) { + literalType_ = + flyteidl.core.Types.LiteralType.newBuilder(literalType_).mergeFrom(value).buildPartial(); + } else { + literalType_ = value; + } + onChanged(); + } else { + literalTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public Builder clearLiteralType() { + if (literalTypeBuilder_ == null) { + literalType_ = null; + onChanged(); + } else { + literalType_ = null; + literalTypeBuilder_ = null; + } + + return this; + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public flyteidl.core.Types.LiteralType.Builder getLiteralTypeBuilder() { + + onChanged(); + return getLiteralTypeFieldBuilder().getBuilder(); + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getLiteralTypeOrBuilder() { + if (literalTypeBuilder_ != null) { + return literalTypeBuilder_.getMessageOrBuilder(); + } else { + return literalType_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : literalType_; + } + } + /** + *
+         * The column type.
+         * 
+ * + * .flyteidl.core.LiteralType literal_type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getLiteralTypeFieldBuilder() { + if (literalTypeBuilder_ == null) { + literalTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getLiteralType(), + getParentForChildren(), + isClean()); + literalType_ = null; + } + return literalTypeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.StructuredDatasetType.DatasetColumn) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType.DatasetColumn) + private static final flyteidl.core.Types.StructuredDatasetType.DatasetColumn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.StructuredDatasetType.DatasetColumn(); + } + + public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatasetColumn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int COLUMNS_FIELD_NUMBER = 1; + private java.util.List columns_; + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public java.util.List getColumnsList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn getColumns(int index) { + return columns_.get(index); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder getColumnsOrBuilder( + int index) { + return columns_.get(index); + } + + public static final int FORMAT_FIELD_NUMBER = 2; + private volatile java.lang.Object format_; + /** + *
+     * This is the storage format, the format of the bits at rest
+     * parquet, feather, csv, etc.
+     * For two types to be compatible, the format will need to be an exact match.
+     * 
+ * + * string format = 2; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } + } + /** + *
+     * This is the storage format, the format of the bits at rest
+     * parquet, feather, csv, etc.
+     * For two types to be compatible, the format will need to be an exact match.
+     * 
+ * + * string format = 2; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER = 3; + private volatile java.lang.Object externalSchemaType_; + /** + *
+     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+     * This is an optional field that will not be used for type checking.
+     * 
+ * + * string external_schema_type = 3; + */ + public java.lang.String getExternalSchemaType() { + java.lang.Object ref = externalSchemaType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalSchemaType_ = s; + return s; + } + } + /** + *
+     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+     * This is an optional field that will not be used for type checking.
+     * 
+ * + * string external_schema_type = 3; + */ + public com.google.protobuf.ByteString + getExternalSchemaTypeBytes() { + java.lang.Object ref = externalSchemaType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + externalSchemaType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString externalSchemaBytes_; + /** + *
+     * The serialized bytes of a third-party schema library like Arrow.
+     * This is an optional field that will not be used for type checking.
+     * 
+ * + * bytes external_schema_bytes = 4; + */ + public com.google.protobuf.ByteString getExternalSchemaBytes() { + return externalSchemaBytes_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(1, columns_.get(i)); + } + if (!getFormatBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, format_); + } + if (!getExternalSchemaTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalSchemaType_); + } + if (!externalSchemaBytes_.isEmpty()) { + output.writeBytes(4, externalSchemaBytes_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, columns_.get(i)); + } + if (!getFormatBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, format_); + } + if (!getExternalSchemaTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalSchemaType_); + } + if (!externalSchemaBytes_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, externalSchemaBytes_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.StructuredDatasetType)) { + return super.equals(obj); + } + flyteidl.core.Types.StructuredDatasetType other = (flyteidl.core.Types.StructuredDatasetType) obj; + + if (!getColumnsList() + .equals(other.getColumnsList())) return false; + if (!getFormat() + .equals(other.getFormat())) return false; + if (!getExternalSchemaType() + .equals(other.getExternalSchemaType())) return false; + if (!getExternalSchemaBytes() + .equals(other.getExternalSchemaBytes())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFormat().hashCode(); + hash = (37 * hash) + EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getExternalSchemaType().hashCode(); + hash = (37 * hash) + EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getExternalSchemaBytes().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.StructuredDatasetType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.StructuredDatasetType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.StructuredDatasetType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.core.StructuredDatasetType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDatasetType) + flyteidl.core.Types.StructuredDatasetTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.StructuredDatasetType.class, flyteidl.core.Types.StructuredDatasetType.Builder.class); + } + + // Construct using flyteidl.core.Types.StructuredDatasetType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColumnsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnsBuilder_.clear(); + } + format_ = ""; + + externalSchemaType_ = ""; + + externalSchemaBytes_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType getDefaultInstanceForType() { + return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType build() { + flyteidl.core.Types.StructuredDatasetType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType buildPartial() { + flyteidl.core.Types.StructuredDatasetType result = new flyteidl.core.Types.StructuredDatasetType(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + result.format_ = format_; + result.externalSchemaType_ = externalSchemaType_; + result.externalSchemaBytes_ = externalSchemaBytes_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.StructuredDatasetType) { + return mergeFrom((flyteidl.core.Types.StructuredDatasetType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.StructuredDatasetType other) { + if (other == flyteidl.core.Types.StructuredDatasetType.getDefaultInstance()) return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnsFieldBuilder() : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + if (!other.getFormat().isEmpty()) { + format_ = other.format_; + onChanged(); + } + if (!other.getExternalSchemaType().isEmpty()) { + externalSchemaType_ = other.externalSchemaType_; + onChanged(); + } + if (other.getExternalSchemaBytes() != com.google.protobuf.ByteString.EMPTY) { + setExternalSchemaBytes(other.getExternalSchemaBytes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.StructuredDatasetType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.StructuredDatasetType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List columns_ = + java.util.Collections.emptyList(); + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType.DatasetColumn, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder, flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder> columnsBuilder_; + + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder setColumns( + int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder setColumns( + int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder addColumns(flyteidl.core.Types.StructuredDatasetType.DatasetColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder addColumns( + int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder addColumns( + flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder addColumns( + int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder getColumnsBuilder( + int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder getColumnsOrBuilder( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder addColumnsBuilder() { + return getColumnsFieldBuilder().addBuilder( + flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder addColumnsBuilder( + int index) { + return getColumnsFieldBuilder().addBuilder( + index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType.DatasetColumn, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder, flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType.DatasetColumn, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder, flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder>( + columns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + private java.lang.Object format_ = ""; + /** + *
+       * This is the storage format, the format of the bits at rest
+       * parquet, feather, csv, etc.
+       * For two types to be compatible, the format will need to be an exact match.
+       * 
+ * + * string format = 2; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * This is the storage format, the format of the bits at rest
+       * parquet, feather, csv, etc.
+       * For two types to be compatible, the format will need to be an exact match.
+       * 
+ * + * string format = 2; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * This is the storage format, the format of the bits at rest
+       * parquet, feather, csv, etc.
+       * For two types to be compatible, the format will need to be an exact match.
+       * 
+ * + * string format = 2; + */ + public Builder setFormat( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value; + onChanged(); + return this; + } + /** + *
+       * This is the storage format, the format of the bits at rest
+       * parquet, feather, csv, etc.
+       * For two types to be compatible, the format will need to be an exact match.
+       * 
+ * + * string format = 2; + */ + public Builder clearFormat() { + + format_ = getDefaultInstance().getFormat(); + onChanged(); + return this; + } + /** + *
+       * This is the storage format, the format of the bits at rest
+       * parquet, feather, csv, etc.
+       * For two types to be compatible, the format will need to be an exact match.
+       * 
+ * + * string format = 2; + */ + public Builder setFormatBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + format_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalSchemaType_ = ""; + /** + *
+       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * string external_schema_type = 3; + */ + public java.lang.String getExternalSchemaType() { + java.lang.Object ref = externalSchemaType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalSchemaType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * string external_schema_type = 3; + */ + public com.google.protobuf.ByteString + getExternalSchemaTypeBytes() { + java.lang.Object ref = externalSchemaType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + externalSchemaType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * string external_schema_type = 3; + */ + public Builder setExternalSchemaType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalSchemaType_ = value; + onChanged(); + return this; + } + /** + *
+       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * string external_schema_type = 3; + */ + public Builder clearExternalSchemaType() { + + externalSchemaType_ = getDefaultInstance().getExternalSchemaType(); + onChanged(); + return this; + } + /** + *
+       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * string external_schema_type = 3; + */ + public Builder setExternalSchemaTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalSchemaType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString externalSchemaBytes_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * The serialized bytes of a third-party schema library like Arrow.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * bytes external_schema_bytes = 4; + */ + public com.google.protobuf.ByteString getExternalSchemaBytes() { + return externalSchemaBytes_; + } + /** + *
+       * The serialized bytes of a third-party schema library like Arrow.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * bytes external_schema_bytes = 4; + */ + public Builder setExternalSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + externalSchemaBytes_ = value; + onChanged(); + return this; + } + /** + *
+       * The serialized bytes of a third-party schema library like Arrow.
+       * This is an optional field that will not be used for type checking.
+       * 
+ * + * bytes external_schema_bytes = 4; + */ + public Builder clearExternalSchemaBytes() { + + externalSchemaBytes_ = getDefaultInstance().getExternalSchemaBytes(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.StructuredDatasetType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType) + private static final flyteidl.core.Types.StructuredDatasetType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.StructuredDatasetType(); + } + + public static flyteidl.core.Types.StructuredDatasetType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredDatasetType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructuredDatasetType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.StructuredDatasetType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + java.lang.String getFormat(); + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + com.google.protobuf.ByteString + getFormatBytes(); + + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + int getDimensionalityValue(); + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality(); + } + /** + *
+   * Defines type behavior for blob objects
+   * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class BlobType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobType) + BlobTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobType.newBuilder() to construct. + private BlobType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobType() { + format_ = ""; + dimensionality_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + format_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + dimensionality_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.BlobType.BlobDimensionality} + */ + public enum BlobDimensionality + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SINGLE = 0; + */ + SINGLE(0), + /** + * MULTIPART = 1; + */ + MULTIPART(1), + UNRECOGNIZED(-1), + ; + + /** + * SINGLE = 0; + */ + public static final int SINGLE_VALUE = 0; + /** + * MULTIPART = 1; + */ + public static final int MULTIPART_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BlobDimensionality valueOf(int value) { + return forNumber(value); + } + + public static BlobDimensionality forNumber(int value) { + switch (value) { + case 0: return SINGLE; + case 1: return MULTIPART; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlobDimensionality> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlobDimensionality findValueByNumber(int number) { + return BlobDimensionality.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Types.BlobType.getDescriptor().getEnumTypes().get(0); + } + + private static final BlobDimensionality[] VALUES = values(); + + public static BlobDimensionality valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BlobDimensionality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.BlobType.BlobDimensionality) + } + + public static final int FORMAT_FIELD_NUMBER = 1; + private volatile java.lang.Object format_; + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } + } + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONALITY_FIELD_NUMBER = 2; + private int dimensionality_; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFormatBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + output.writeEnum(2, dimensionality_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFormatBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dimensionality_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.BlobType)) { + return super.equals(obj); + } + flyteidl.core.Types.BlobType other = (flyteidl.core.Types.BlobType) obj; + + if (!getFormat() + .equals(other.getFormat())) return false; + if (dimensionality_ != other.dimensionality_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFormat().hashCode(); + hash = (37 * hash) + DIMENSIONALITY_FIELD_NUMBER; + hash = (53 * hash) + dimensionality_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.BlobType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines type behavior for blob objects
+     * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobType) + flyteidl.core.Types.BlobTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + // Construct using flyteidl.core.Types.BlobType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + format_ = ""; + + dimensionality_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.BlobType build() { + flyteidl.core.Types.BlobType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.BlobType buildPartial() { + flyteidl.core.Types.BlobType result = new flyteidl.core.Types.BlobType(this); + result.format_ = format_; + result.dimensionality_ = dimensionality_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.BlobType) { + return mergeFrom((flyteidl.core.Types.BlobType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.BlobType other) { + if (other == flyteidl.core.Types.BlobType.getDefaultInstance()) return this; + if (!other.getFormat().isEmpty()) { + format_ = other.format_; + onChanged(); + } + if (other.dimensionality_ != 0) { + setDimensionalityValue(other.getDimensionalityValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.BlobType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.BlobType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object format_ = ""; + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormat( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value; + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder clearFormat() { + + format_ = getDefaultInstance().getFormat(); + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormatBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + format_ = value; + onChanged(); + return this; + } + + private int dimensionality_ = 0; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionalityValue(int value) { + dimensionality_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + @SuppressWarnings("deprecation") + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionality(flyteidl.core.Types.BlobType.BlobDimensionality value) { + if (value == null) { + throw new NullPointerException(); + } + + dimensionality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder clearDimensionality() { + + dimensionality_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BlobType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) + private static final flyteidl.core.Types.BlobType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.BlobType(); + } + + public static flyteidl.core.Types.BlobType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlobType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EnumTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.EnumType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + java.util.List + getValuesList(); + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + int getValuesCount(); + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + java.lang.String getValues(int index); + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + *
+   * Enables declaring enum types, with predefined string values
+   * For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish
+   * To provide no defaults, make the first value as undefined.
+   * 
+ * + * Protobuf type {@code flyteidl.core.EnumType} + */ + public static final class EnumType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.EnumType) + EnumTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnumType.newBuilder() to construct. + private EnumType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EnumType() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EnumType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.EnumType.class, flyteidl.core.Types.EnumType.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + *
+     * Predefined set of enum values.
+     * 
+ * + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.EnumType)) { + return super.equals(obj); + } + flyteidl.core.Types.EnumType other = (flyteidl.core.Types.EnumType) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.EnumType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.EnumType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.EnumType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.EnumType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.EnumType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.EnumType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.EnumType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.EnumType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.EnumType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.EnumType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.EnumType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.EnumType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.EnumType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Enables declaring enum types, with predefined string values
+     * For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish
+     * To provide no defaults, make the first value as undefined.
+     * 
+ * + * Protobuf type {@code flyteidl.core.EnumType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.EnumType) + flyteidl.core.Types.EnumTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.EnumType.class, flyteidl.core.Types.EnumType.Builder.class); + } + + // Construct using flyteidl.core.Types.EnumType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.EnumType getDefaultInstanceForType() { + return flyteidl.core.Types.EnumType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.EnumType build() { + flyteidl.core.Types.EnumType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.EnumType buildPartial() { + flyteidl.core.Types.EnumType result = new flyteidl.core.Types.EnumType(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.EnumType) { + return mergeFrom((flyteidl.core.Types.EnumType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.EnumType other) { + if (other == flyteidl.core.Types.EnumType.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.EnumType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.EnumType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_.getUnmodifiableView(); + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Predefined set of enum values.
+       * 
+ * + * repeated string values = 1; + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.EnumType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.EnumType) + private static final flyteidl.core.Types.EnumType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.EnumType(); + } + + public static flyteidl.core.Types.EnumType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnumType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnumType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.EnumType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UnionTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.UnionType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + java.util.List + getVariantsList(); + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + flyteidl.core.Types.LiteralType getVariants(int index); + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + int getVariantsCount(); + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + java.util.List + getVariantsOrBuilderList(); + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getVariantsOrBuilder( + int index); + } + /** + *
+   * Defines a tagged union type, also known as a variant (and formally as the sum type).
+   * A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag
+   * A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by
+   * storing the varaint's tag with the literal value and can be examined in runtime.
+   * Type S is typically written as
+   * S := Apple A | Banana B | Cantaloupe C | ...
+   * Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:
+   * Optional X := X | Null
+   * See also: https://en.wikipedia.org/wiki/Tagged_union
+   * 
+ * + * Protobuf type {@code flyteidl.core.UnionType} + */ + public static final class UnionType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.UnionType) + UnionTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnionType.newBuilder() to construct. + private UnionType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UnionType() { + variants_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UnionType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + variants_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + variants_.add( + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + variants_ = java.util.Collections.unmodifiableList(variants_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.UnionType.class, flyteidl.core.Types.UnionType.Builder.class); + } + + public static final int VARIANTS_FIELD_NUMBER = 1; + private java.util.List variants_; + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public java.util.List getVariantsList() { + return variants_; + } + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public java.util.List + getVariantsOrBuilderList() { + return variants_; + } + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public int getVariantsCount() { + return variants_.size(); + } + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public flyteidl.core.Types.LiteralType getVariants(int index) { + return variants_.get(index); + } + /** + *
+     * Predefined set of variants in union.
+     * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getVariantsOrBuilder( + int index) { + return variants_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < variants_.size(); i++) { + output.writeMessage(1, variants_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < variants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, variants_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.UnionType)) { + return super.equals(obj); + } + flyteidl.core.Types.UnionType other = (flyteidl.core.Types.UnionType) obj; + + if (!getVariantsList() + .equals(other.getVariantsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVariantsCount() > 0) { + hash = (37 * hash) + VARIANTS_FIELD_NUMBER; + hash = (53 * hash) + getVariantsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.UnionType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.UnionType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.UnionType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.UnionType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.UnionType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.UnionType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.UnionType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.UnionType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.UnionType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.UnionType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.UnionType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.UnionType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.UnionType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a tagged union type, also known as a variant (and formally as the sum type).
+     * A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag
+     * A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by
+     * storing the varaint's tag with the literal value and can be examined in runtime.
+     * Type S is typically written as
+     * S := Apple A | Banana B | Cantaloupe C | ...
+     * Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:
+     * Optional X := X | Null
+     * See also: https://en.wikipedia.org/wiki/Tagged_union
+     * 
+ * + * Protobuf type {@code flyteidl.core.UnionType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.UnionType) + flyteidl.core.Types.UnionTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.UnionType.class, flyteidl.core.Types.UnionType.Builder.class); + } + + // Construct using flyteidl.core.Types.UnionType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVariantsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (variantsBuilder_ == null) { + variants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + variantsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.UnionType getDefaultInstanceForType() { + return flyteidl.core.Types.UnionType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.UnionType build() { + flyteidl.core.Types.UnionType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.UnionType buildPartial() { + flyteidl.core.Types.UnionType result = new flyteidl.core.Types.UnionType(this); + int from_bitField0_ = bitField0_; + if (variantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + variants_ = java.util.Collections.unmodifiableList(variants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.variants_ = variants_; + } else { + result.variants_ = variantsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.UnionType) { + return mergeFrom((flyteidl.core.Types.UnionType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.UnionType other) { + if (other == flyteidl.core.Types.UnionType.getDefaultInstance()) return this; + if (variantsBuilder_ == null) { + if (!other.variants_.isEmpty()) { + if (variants_.isEmpty()) { + variants_ = other.variants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVariantsIsMutable(); + variants_.addAll(other.variants_); + } + onChanged(); + } + } else { + if (!other.variants_.isEmpty()) { + if (variantsBuilder_.isEmpty()) { + variantsBuilder_.dispose(); + variantsBuilder_ = null; + variants_ = other.variants_; + bitField0_ = (bitField0_ & ~0x00000001); + variantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVariantsFieldBuilder() : null; + } else { + variantsBuilder_.addAllMessages(other.variants_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.UnionType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.UnionType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List variants_ = + java.util.Collections.emptyList(); + private void ensureVariantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + variants_ = new java.util.ArrayList(variants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> variantsBuilder_; + + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public java.util.List getVariantsList() { + if (variantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(variants_); + } else { + return variantsBuilder_.getMessageList(); + } + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public int getVariantsCount() { + if (variantsBuilder_ == null) { + return variants_.size(); + } else { + return variantsBuilder_.getCount(); + } + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public flyteidl.core.Types.LiteralType getVariants(int index) { + if (variantsBuilder_ == null) { + return variants_.get(index); + } else { + return variantsBuilder_.getMessage(index); + } + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder setVariants( + int index, flyteidl.core.Types.LiteralType value) { + if (variantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantsIsMutable(); + variants_.set(index, value); + onChanged(); + } else { + variantsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder setVariants( + int index, flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (variantsBuilder_ == null) { + ensureVariantsIsMutable(); + variants_.set(index, builderForValue.build()); + onChanged(); + } else { + variantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder addVariants(flyteidl.core.Types.LiteralType value) { + if (variantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantsIsMutable(); + variants_.add(value); + onChanged(); + } else { + variantsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder addVariants( + int index, flyteidl.core.Types.LiteralType value) { + if (variantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariantsIsMutable(); + variants_.add(index, value); + onChanged(); + } else { + variantsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder addVariants( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (variantsBuilder_ == null) { + ensureVariantsIsMutable(); + variants_.add(builderForValue.build()); + onChanged(); + } else { + variantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder addVariants( + int index, flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (variantsBuilder_ == null) { + ensureVariantsIsMutable(); + variants_.add(index, builderForValue.build()); + onChanged(); + } else { + variantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder addAllVariants( + java.lang.Iterable values) { + if (variantsBuilder_ == null) { + ensureVariantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, variants_); + onChanged(); + } else { + variantsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder clearVariants() { + if (variantsBuilder_ == null) { + variants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + variantsBuilder_.clear(); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public Builder removeVariants(int index) { + if (variantsBuilder_ == null) { + ensureVariantsIsMutable(); + variants_.remove(index); + onChanged(); + } else { + variantsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public flyteidl.core.Types.LiteralType.Builder getVariantsBuilder( + int index) { + return getVariantsFieldBuilder().getBuilder(index); + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getVariantsOrBuilder( + int index) { + if (variantsBuilder_ == null) { + return variants_.get(index); } else { + return variantsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public java.util.List + getVariantsOrBuilderList() { + if (variantsBuilder_ != null) { + return variantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(variants_); + } + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public flyteidl.core.Types.LiteralType.Builder addVariantsBuilder() { + return getVariantsFieldBuilder().addBuilder( + flyteidl.core.Types.LiteralType.getDefaultInstance()); + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public flyteidl.core.Types.LiteralType.Builder addVariantsBuilder( + int index) { + return getVariantsFieldBuilder().addBuilder( + index, flyteidl.core.Types.LiteralType.getDefaultInstance()); + } + /** + *
+       * Predefined set of variants in union.
+       * 
+ * + * repeated .flyteidl.core.LiteralType variants = 1; + */ + public java.util.List + getVariantsBuilderList() { + return getVariantsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getVariantsFieldBuilder() { + if (variantsBuilder_ == null) { + variantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + variants_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + variants_ = null; + } + return variantsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.UnionType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.UnionType) + private static final flyteidl.core.Types.UnionType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.UnionType(); + } + + public static flyteidl.core.Types.UnionType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnionType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnionType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.UnionType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TypeStructureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TypeStructure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Must exactly match for types to be castable
+     * 
+ * + * string tag = 1; + */ + java.lang.String getTag(); + /** + *
+     * Must exactly match for types to be castable
+     * 
+ * + * string tag = 1; + */ + com.google.protobuf.ByteString + getTagBytes(); + } + /** + *
+   * Hints to improve type matching
+   * e.g. allows distinguishing output from custom type transformers
+   * even if the underlying IDL serialization matches.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TypeStructure} + */ + public static final class TypeStructure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TypeStructure) + TypeStructureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TypeStructure.newBuilder() to construct. + private TypeStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TypeStructure() { + tag_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TypeStructure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + tag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.TypeStructure.class, flyteidl.core.Types.TypeStructure.Builder.class); + } + + public static final int TAG_FIELD_NUMBER = 1; + private volatile java.lang.Object tag_; + /** + *
+     * Must exactly match for types to be castable
+     * 
+ * + * string tag = 1; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } + } + /** + *
+     * Must exactly match for types to be castable
+     * 
+ * + * string tag = 1; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.TypeStructure)) { + return super.equals(obj); + } + flyteidl.core.Types.TypeStructure other = (flyteidl.core.Types.TypeStructure) obj; + + if (!getTag() + .equals(other.getTag())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.TypeStructure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.TypeStructure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.TypeStructure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.TypeStructure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.TypeStructure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.TypeStructure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.TypeStructure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.TypeStructure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.TypeStructure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.TypeStructure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.TypeStructure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.TypeStructure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.TypeStructure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Hints to improve type matching
+     * e.g. allows distinguishing output from custom type transformers
+     * even if the underlying IDL serialization matches.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TypeStructure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TypeStructure) + flyteidl.core.Types.TypeStructureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.TypeStructure.class, flyteidl.core.Types.TypeStructure.Builder.class); + } + + // Construct using flyteidl.core.Types.TypeStructure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + tag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.TypeStructure getDefaultInstanceForType() { + return flyteidl.core.Types.TypeStructure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.TypeStructure build() { + flyteidl.core.Types.TypeStructure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.TypeStructure buildPartial() { + flyteidl.core.Types.TypeStructure result = new flyteidl.core.Types.TypeStructure(this); + result.tag_ = tag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.TypeStructure) { + return mergeFrom((flyteidl.core.Types.TypeStructure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.TypeStructure other) { + if (other == flyteidl.core.Types.TypeStructure.getDefaultInstance()) return this; + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.TypeStructure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.TypeStructure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object tag_ = ""; + /** + *
+       * Must exactly match for types to be castable
+       * 
+ * + * string tag = 1; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Must exactly match for types to be castable
+       * 
+ * + * string tag = 1; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Must exactly match for types to be castable
+       * 
+ * + * string tag = 1; + */ + public Builder setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tag_ = value; + onChanged(); + return this; + } + /** + *
+       * Must exactly match for types to be castable
+       * 
+ * + * string tag = 1; + */ + public Builder clearTag() { + + tag_ = getDefaultInstance().getTag(); + onChanged(); + return this; + } + /** + *
+       * Must exactly match for types to be castable
+       * 
+ * + * string tag = 1; + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tag_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TypeStructure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypeStructure) + private static final flyteidl.core.Types.TypeStructure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.TypeStructure(); + } + + public static flyteidl.core.Types.TypeStructure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeStructure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeStructure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.TypeStructure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TypeAnnotationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TypeAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A arbitrary JSON payload to describe a type.
+     * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + boolean hasAnnotations(); + /** + *
+     * A arbitrary JSON payload to describe a type.
+     * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + com.google.protobuf.Struct getAnnotations(); + /** + *
+     * A arbitrary JSON payload to describe a type.
+     * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder(); + } + /** + *
+   * TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TypeAnnotation} + */ + public static final class TypeAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TypeAnnotation) + TypeAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TypeAnnotation.newBuilder() to construct. + private TypeAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TypeAnnotation() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TypeAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.TypeAnnotation.class, flyteidl.core.Types.TypeAnnotation.Builder.class); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 1; + private com.google.protobuf.Struct annotations_; + /** + *
+     * A arbitrary JSON payload to describe a type.
+     * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * A arbitrary JSON payload to describe a type.
+     * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public com.google.protobuf.Struct getAnnotations() { + return annotations_ == null ? com.google.protobuf.Struct.getDefaultInstance() : annotations_; + } + /** + *
+     * A arbitrary JSON payload to describe a type.
+     * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (annotations_ != null) { + output.writeMessage(1, getAnnotations()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotations()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.TypeAnnotation)) { + return super.equals(obj); + } + flyteidl.core.Types.TypeAnnotation other = (flyteidl.core.Types.TypeAnnotation) obj; + + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations() + .equals(other.getAnnotations())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.TypeAnnotation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.TypeAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.TypeAnnotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.TypeAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.TypeAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TypeAnnotation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TypeAnnotation) + flyteidl.core.Types.TypeAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.TypeAnnotation.class, flyteidl.core.Types.TypeAnnotation.Builder.class); + } + + // Construct using flyteidl.core.Types.TypeAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.TypeAnnotation getDefaultInstanceForType() { + return flyteidl.core.Types.TypeAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.TypeAnnotation build() { + flyteidl.core.Types.TypeAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.TypeAnnotation buildPartial() { + flyteidl.core.Types.TypeAnnotation result = new flyteidl.core.Types.TypeAnnotation(this); + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.TypeAnnotation) { + return mergeFrom((flyteidl.core.Types.TypeAnnotation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.TypeAnnotation other) { + if (other == flyteidl.core.Types.TypeAnnotation.getDefaultInstance()) return this; + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.TypeAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.TypeAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Struct annotations_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> annotationsBuilder_; + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public com.google.protobuf.Struct getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? com.google.protobuf.Struct.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public Builder setAnnotations(com.google.protobuf.Struct value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public Builder setAnnotations( + com.google.protobuf.Struct.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public Builder mergeAnnotations(com.google.protobuf.Struct value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + com.google.protobuf.Struct.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public com.google.protobuf.Struct.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + public com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : annotations_; + } + } + /** + *
+       * A arbitrary JSON payload to describe a type.
+       * 
+ * + * .google.protobuf.Struct annotations = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TypeAnnotation) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypeAnnotation) + private static final flyteidl.core.Types.TypeAnnotation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.TypeAnnotation(); + } + + public static flyteidl.core.Types.TypeAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.TypeAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + int getSimpleValue(); + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + flyteidl.core.Types.SimpleType getSimple(); + + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + boolean hasSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaType getSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder(); + + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + boolean hasCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralType getCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder(); + + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + boolean hasMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralType getMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder(); + + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + boolean hasBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobType getBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder(); + + /** + *
+     * Defines an enum with pre-defined string values.
+     * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + boolean hasEnumType(); + /** + *
+     * Defines an enum with pre-defined string values.
+     * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + flyteidl.core.Types.EnumType getEnumType(); + /** + *
+     * Defines an enum with pre-defined string values.
+     * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + flyteidl.core.Types.EnumTypeOrBuilder getEnumTypeOrBuilder(); + + /** + *
+     * Generalized schema support
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + boolean hasStructuredDatasetType(); + /** + *
+     * Generalized schema support
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType(); + /** + *
+     * Generalized schema support
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder(); + + /** + *
+     * Defines an union type with pre-defined LiteralTypes.
+     * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + boolean hasUnionType(); + /** + *
+     * Defines an union type with pre-defined LiteralTypes.
+     * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + flyteidl.core.Types.UnionType getUnionType(); + /** + *
+     * Defines an union type with pre-defined LiteralTypes.
+     * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + flyteidl.core.Types.UnionTypeOrBuilder getUnionTypeOrBuilder(); + + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + boolean hasMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.Struct getMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + /** + *
+     * This field contains arbitrary data that might have special semantic
+     * meaning for the client but does not effect internal flyte behavior.
+     * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + boolean hasAnnotation(); + /** + *
+     * This field contains arbitrary data that might have special semantic
+     * meaning for the client but does not effect internal flyte behavior.
+     * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + flyteidl.core.Types.TypeAnnotation getAnnotation(); + /** + *
+     * This field contains arbitrary data that might have special semantic
+     * meaning for the client but does not effect internal flyte behavior.
+     * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + flyteidl.core.Types.TypeAnnotationOrBuilder getAnnotationOrBuilder(); + + /** + *
+     * Hints to improve type matching.
+     * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + boolean hasStructure(); + /** + *
+     * Hints to improve type matching.
+     * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + flyteidl.core.Types.TypeStructure getStructure(); + /** + *
+     * Hints to improve type matching.
+     * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + flyteidl.core.Types.TypeStructureOrBuilder getStructureOrBuilder(); + + public flyteidl.core.Types.LiteralType.TypeCase getTypeCase(); + } + /** + *
+   * Defines a strong type to allow type checking between interfaces.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class LiteralType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralType) + LiteralTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralType.newBuilder() to construct. + private LiteralType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + typeCase_ = 1; + type_ = rawValue; + break; + } + case 18: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.core.Types.SchemaType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.SchemaType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + case 42: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (typeCase_ == 5) { + subBuilder = ((flyteidl.core.Types.BlobType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.BlobType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.core.Types.EnumType.Builder subBuilder = null; + if (typeCase_ == 7) { + subBuilder = ((flyteidl.core.Types.EnumType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.EnumType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.EnumType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 7; + break; + } + case 66: { + flyteidl.core.Types.StructuredDatasetType.Builder subBuilder = null; + if (typeCase_ == 8) { + subBuilder = ((flyteidl.core.Types.StructuredDatasetType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.StructuredDatasetType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.StructuredDatasetType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 8; + break; + } + case 74: { + flyteidl.core.Types.TypeAnnotation.Builder subBuilder = null; + if (annotation_ != null) { + subBuilder = annotation_.toBuilder(); + } + annotation_ = input.readMessage(flyteidl.core.Types.TypeAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotation_); + annotation_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + flyteidl.core.Types.UnionType.Builder subBuilder = null; + if (typeCase_ == 10) { + subBuilder = ((flyteidl.core.Types.UnionType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.UnionType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.UnionType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 10; + break; + } + case 90: { + flyteidl.core.Types.TypeStructure.Builder subBuilder = null; + if (structure_ != null) { + subBuilder = structure_.toBuilder(); + } + structure_ = input.readMessage(flyteidl.core.Types.TypeStructure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(structure_); + structure_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + SIMPLE(1), + SCHEMA(2), + COLLECTION_TYPE(3), + MAP_VALUE_TYPE(4), + BLOB(5), + ENUM_TYPE(7), + STRUCTURED_DATASET_TYPE(8), + UNION_TYPE(10), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: return SIMPLE; + case 2: return SCHEMA; + case 3: return COLLECTION_TYPE; + case 4: return MAP_VALUE_TYPE; + case 5: return BLOB; + case 7: return ENUM_TYPE; + case 8: return STRUCTURED_DATASET_TYPE; + case 10: return UNION_TYPE; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int SIMPLE_FIELD_NUMBER = 1; + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return (java.lang.Integer) type_; + } + return 0; + } + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int MAP_VALUE_TYPE_FIELD_NUMBER = 4; + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 5; + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + public static final int ENUM_TYPE_FIELD_NUMBER = 7; + /** + *
+     * Defines an enum with pre-defined string values.
+     * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public boolean hasEnumType() { + return typeCase_ == 7; + } + /** + *
+     * Defines an enum with pre-defined string values.
+     * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public flyteidl.core.Types.EnumType getEnumType() { + if (typeCase_ == 7) { + return (flyteidl.core.Types.EnumType) type_; + } + return flyteidl.core.Types.EnumType.getDefaultInstance(); + } + /** + *
+     * Defines an enum with pre-defined string values.
+     * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public flyteidl.core.Types.EnumTypeOrBuilder getEnumTypeOrBuilder() { + if (typeCase_ == 7) { + return (flyteidl.core.Types.EnumType) type_; + } + return flyteidl.core.Types.EnumType.getDefaultInstance(); + } + + public static final int STRUCTURED_DATASET_TYPE_FIELD_NUMBER = 8; + /** + *
+     * Generalized schema support
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public boolean hasStructuredDatasetType() { + return typeCase_ == 8; + } + /** + *
+     * Generalized schema support
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { + if (typeCase_ == 8) { + return (flyteidl.core.Types.StructuredDatasetType) type_; + } + return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); + } + /** + *
+     * Generalized schema support
+     * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { + if (typeCase_ == 8) { + return (flyteidl.core.Types.StructuredDatasetType) type_; + } + return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); + } + + public static final int UNION_TYPE_FIELD_NUMBER = 10; + /** + *
+     * Defines an union type with pre-defined LiteralTypes.
+     * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public boolean hasUnionType() { + return typeCase_ == 10; + } + /** + *
+     * Defines an union type with pre-defined LiteralTypes.
+     * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public flyteidl.core.Types.UnionType getUnionType() { + if (typeCase_ == 10) { + return (flyteidl.core.Types.UnionType) type_; + } + return flyteidl.core.Types.UnionType.getDefaultInstance(); + } + /** + *
+     * Defines an union type with pre-defined LiteralTypes.
+     * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public flyteidl.core.Types.UnionTypeOrBuilder getUnionTypeOrBuilder() { + if (typeCase_ == 10) { + return (flyteidl.core.Types.UnionType) type_; + } + return flyteidl.core.Types.UnionType.getDefaultInstance(); + } + + public static final int METADATA_FIELD_NUMBER = 6; + private com.google.protobuf.Struct metadata_; + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int ANNOTATION_FIELD_NUMBER = 9; + private flyteidl.core.Types.TypeAnnotation annotation_; + /** + *
+     * This field contains arbitrary data that might have special semantic
+     * meaning for the client but does not effect internal flyte behavior.
+     * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public boolean hasAnnotation() { + return annotation_ != null; + } + /** + *
+     * This field contains arbitrary data that might have special semantic
+     * meaning for the client but does not effect internal flyte behavior.
+     * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public flyteidl.core.Types.TypeAnnotation getAnnotation() { + return annotation_ == null ? flyteidl.core.Types.TypeAnnotation.getDefaultInstance() : annotation_; + } + /** + *
+     * This field contains arbitrary data that might have special semantic
+     * meaning for the client but does not effect internal flyte behavior.
+     * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public flyteidl.core.Types.TypeAnnotationOrBuilder getAnnotationOrBuilder() { + return getAnnotation(); + } + + public static final int STRUCTURE_FIELD_NUMBER = 11; + private flyteidl.core.Types.TypeStructure structure_; + /** + *
+     * Hints to improve type matching.
+     * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public boolean hasStructure() { + return structure_ != null; + } + /** + *
+     * Hints to improve type matching.
+     * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public flyteidl.core.Types.TypeStructure getStructure() { + return structure_ == null ? flyteidl.core.Types.TypeStructure.getDefaultInstance() : structure_; + } + /** + *
+     * Hints to improve type matching.
+     * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public flyteidl.core.Types.TypeStructureOrBuilder getStructureOrBuilder() { + return getStructure(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (typeCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + output.writeMessage(6, getMetadata()); + } + if (typeCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Types.EnumType) type_); + } + if (typeCase_ == 8) { + output.writeMessage(8, (flyteidl.core.Types.StructuredDatasetType) type_); + } + if (annotation_ != null) { + output.writeMessage(9, getAnnotation()); + } + if (typeCase_ == 10) { + output.writeMessage(10, (flyteidl.core.Types.UnionType) type_); + } + if (structure_ != null) { + output.writeMessage(11, getStructure()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMetadata()); + } + if (typeCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Types.EnumType) type_); + } + if (typeCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.core.Types.StructuredDatasetType) type_); + } + if (annotation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getAnnotation()); + } + if (typeCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (flyteidl.core.Types.UnionType) type_); + } + if (structure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getStructure()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.LiteralType)) { + return super.equals(obj); + } + flyteidl.core.Types.LiteralType other = (flyteidl.core.Types.LiteralType) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasAnnotation() != other.hasAnnotation()) return false; + if (hasAnnotation()) { + if (!getAnnotation() + .equals(other.getAnnotation())) return false; + } + if (hasStructure() != other.hasStructure()) return false; + if (hasStructure()) { + if (!getStructure() + .equals(other.getStructure())) return false; + } + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (getSimpleValue() + != other.getSimpleValue()) return false; + break; + case 2: + if (!getSchema() + .equals(other.getSchema())) return false; + break; + case 3: + if (!getCollectionType() + .equals(other.getCollectionType())) return false; + break; + case 4: + if (!getMapValueType() + .equals(other.getMapValueType())) return false; + break; + case 5: + if (!getBlob() + .equals(other.getBlob())) return false; + break; + case 7: + if (!getEnumType() + .equals(other.getEnumType())) return false; + break; + case 8: + if (!getStructuredDatasetType() + .equals(other.getStructuredDatasetType())) return false; + break; + case 10: + if (!getUnionType() + .equals(other.getUnionType())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasAnnotation()) { + hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getAnnotation().hashCode(); + } + if (hasStructure()) { + hash = (37 * hash) + STRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getStructure().hashCode(); + } + switch (typeCase_) { + case 1: + hash = (37 * hash) + SIMPLE_FIELD_NUMBER; + hash = (53 * hash) + getSimpleValue(); + break; + case 2: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 3: + hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCollectionType().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMapValueType().hashCode(); + break; + case 5: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 7: + hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEnumType().hashCode(); + break; + case 8: + hash = (37 * hash) + STRUCTURED_DATASET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDatasetType().hashCode(); + break; + case 10: + hash = (37 * hash) + UNION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getUnionType().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.LiteralType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a strong type to allow type checking between interfaces.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralType) + flyteidl.core.Types.LiteralTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + // Construct using flyteidl.core.Types.LiteralType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (annotationBuilder_ == null) { + annotation_ = null; + } else { + annotation_ = null; + annotationBuilder_ = null; + } + if (structureBuilder_ == null) { + structure_ = null; + } else { + structure_ = null; + structureBuilder_ = null; + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType build() { + flyteidl.core.Types.LiteralType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType buildPartial() { + flyteidl.core.Types.LiteralType result = new flyteidl.core.Types.LiteralType(this); + if (typeCase_ == 1) { + result.type_ = type_; + } + if (typeCase_ == 2) { + if (schemaBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = schemaBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (collectionTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = collectionTypeBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (mapValueTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = mapValueTypeBuilder_.build(); + } + } + if (typeCase_ == 5) { + if (blobBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = blobBuilder_.build(); + } + } + if (typeCase_ == 7) { + if (enumTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = enumTypeBuilder_.build(); + } + } + if (typeCase_ == 8) { + if (structuredDatasetTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = structuredDatasetTypeBuilder_.build(); + } + } + if (typeCase_ == 10) { + if (unionTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = unionTypeBuilder_.build(); + } + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (annotationBuilder_ == null) { + result.annotation_ = annotation_; + } else { + result.annotation_ = annotationBuilder_.build(); + } + if (structureBuilder_ == null) { + result.structure_ = structure_; + } else { + result.structure_ = structureBuilder_.build(); + } + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.LiteralType) { + return mergeFrom((flyteidl.core.Types.LiteralType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.LiteralType other) { + if (other == flyteidl.core.Types.LiteralType.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasAnnotation()) { + mergeAnnotation(other.getAnnotation()); + } + if (other.hasStructure()) { + mergeStructure(other.getStructure()); + } + switch (other.getTypeCase()) { + case SIMPLE: { + setSimpleValue(other.getSimpleValue()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case COLLECTION_TYPE: { + mergeCollectionType(other.getCollectionType()); + break; + } + case MAP_VALUE_TYPE: { + mergeMapValueType(other.getMapValueType()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case ENUM_TYPE: { + mergeEnumType(other.getEnumType()); + break; + } + case STRUCTURED_DATASET_TYPE: { + mergeStructuredDatasetType(other.getStructuredDatasetType()); + break; + } + case UNION_TYPE: { + mergeUnionType(other.getUnionType()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.LiteralType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.LiteralType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return ((java.lang.Integer) type_).intValue(); + } + return 0; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimpleValue(int value) { + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + @SuppressWarnings("deprecation") + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimple(flyteidl.core.Types.SimpleType value) { + if (value == null) { + throw new NullPointerException(); + } + typeCase_ = 1; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder clearSimple() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> schemaBuilder_; + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (schemaBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder mergeSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.core.Types.SchemaType.getDefaultInstance()) { + type_ = flyteidl.core.Types.SchemaType.newBuilder((flyteidl.core.Types.SchemaType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if ((typeCase_ == 2) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + (flyteidl.core.Types.SchemaType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> collectionTypeBuilder_; + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return collectionTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (collectionTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + collectionTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder mergeCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + collectionTypeBuilder_.mergeFrom(value); + } + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder clearCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + collectionTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType.Builder getCollectionTypeBuilder() { + return getCollectionTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if ((typeCase_ == 3) && (collectionTypeBuilder_ != null)) { + return collectionTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getCollectionTypeFieldBuilder() { + if (collectionTypeBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + collectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return collectionTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> mapValueTypeBuilder_; + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return mapValueTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (mapValueTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder mergeMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + mapValueTypeBuilder_.mergeFrom(value); + } + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder clearMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + mapValueTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType.Builder getMapValueTypeBuilder() { + return getMapValueTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if ((typeCase_ == 4) && (mapValueTypeBuilder_ != null)) { + return mapValueTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getMapValueTypeFieldBuilder() { + if (mapValueTypeBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + mapValueTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return mapValueTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> blobBuilder_; + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } else { + if (typeCase_ == 5) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (blobBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder mergeBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (typeCase_ == 5 && + type_ != flyteidl.core.Types.BlobType.getDefaultInstance()) { + type_ = flyteidl.core.Types.BlobType.newBuilder((flyteidl.core.Types.BlobType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 5) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if ((typeCase_ == 5) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(typeCase_ == 5)) { + type_ = flyteidl.core.Types.BlobType.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + (flyteidl.core.Types.BlobType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 5; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.EnumType, flyteidl.core.Types.EnumType.Builder, flyteidl.core.Types.EnumTypeOrBuilder> enumTypeBuilder_; + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public boolean hasEnumType() { + return typeCase_ == 7; + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public flyteidl.core.Types.EnumType getEnumType() { + if (enumTypeBuilder_ == null) { + if (typeCase_ == 7) { + return (flyteidl.core.Types.EnumType) type_; + } + return flyteidl.core.Types.EnumType.getDefaultInstance(); + } else { + if (typeCase_ == 7) { + return enumTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.EnumType.getDefaultInstance(); + } + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public Builder setEnumType(flyteidl.core.Types.EnumType value) { + if (enumTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + enumTypeBuilder_.setMessage(value); + } + typeCase_ = 7; + return this; + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public Builder setEnumType( + flyteidl.core.Types.EnumType.Builder builderForValue) { + if (enumTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + enumTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 7; + return this; + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public Builder mergeEnumType(flyteidl.core.Types.EnumType value) { + if (enumTypeBuilder_ == null) { + if (typeCase_ == 7 && + type_ != flyteidl.core.Types.EnumType.getDefaultInstance()) { + type_ = flyteidl.core.Types.EnumType.newBuilder((flyteidl.core.Types.EnumType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 7) { + enumTypeBuilder_.mergeFrom(value); + } + enumTypeBuilder_.setMessage(value); + } + typeCase_ = 7; + return this; + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public Builder clearEnumType() { + if (enumTypeBuilder_ == null) { + if (typeCase_ == 7) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 7) { + typeCase_ = 0; + type_ = null; + } + enumTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public flyteidl.core.Types.EnumType.Builder getEnumTypeBuilder() { + return getEnumTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + public flyteidl.core.Types.EnumTypeOrBuilder getEnumTypeOrBuilder() { + if ((typeCase_ == 7) && (enumTypeBuilder_ != null)) { + return enumTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 7) { + return (flyteidl.core.Types.EnumType) type_; + } + return flyteidl.core.Types.EnumType.getDefaultInstance(); + } + } + /** + *
+       * Defines an enum with pre-defined string values.
+       * 
+ * + * .flyteidl.core.EnumType enum_type = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.EnumType, flyteidl.core.Types.EnumType.Builder, flyteidl.core.Types.EnumTypeOrBuilder> + getEnumTypeFieldBuilder() { + if (enumTypeBuilder_ == null) { + if (!(typeCase_ == 7)) { + type_ = flyteidl.core.Types.EnumType.getDefaultInstance(); + } + enumTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.EnumType, flyteidl.core.Types.EnumType.Builder, flyteidl.core.Types.EnumTypeOrBuilder>( + (flyteidl.core.Types.EnumType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 7; + onChanged();; + return enumTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> structuredDatasetTypeBuilder_; + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public boolean hasStructuredDatasetType() { + return typeCase_ == 8; + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { + if (structuredDatasetTypeBuilder_ == null) { + if (typeCase_ == 8) { + return (flyteidl.core.Types.StructuredDatasetType) type_; + } + return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); + } else { + if (typeCase_ == 8) { + return structuredDatasetTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); + } + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public Builder setStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { + if (structuredDatasetTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + structuredDatasetTypeBuilder_.setMessage(value); + } + typeCase_ = 8; + return this; + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public Builder setStructuredDatasetType( + flyteidl.core.Types.StructuredDatasetType.Builder builderForValue) { + if (structuredDatasetTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + structuredDatasetTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 8; + return this; + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public Builder mergeStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { + if (structuredDatasetTypeBuilder_ == null) { + if (typeCase_ == 8 && + type_ != flyteidl.core.Types.StructuredDatasetType.getDefaultInstance()) { + type_ = flyteidl.core.Types.StructuredDatasetType.newBuilder((flyteidl.core.Types.StructuredDatasetType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 8) { + structuredDatasetTypeBuilder_.mergeFrom(value); + } + structuredDatasetTypeBuilder_.setMessage(value); + } + typeCase_ = 8; + return this; + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public Builder clearStructuredDatasetType() { + if (structuredDatasetTypeBuilder_ == null) { + if (typeCase_ == 8) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 8) { + typeCase_ = 0; + type_ = null; + } + structuredDatasetTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public flyteidl.core.Types.StructuredDatasetType.Builder getStructuredDatasetTypeBuilder() { + return getStructuredDatasetTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { + if ((typeCase_ == 8) && (structuredDatasetTypeBuilder_ != null)) { + return structuredDatasetTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 8) { + return (flyteidl.core.Types.StructuredDatasetType) type_; + } + return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); + } + } + /** + *
+       * Generalized schema support
+       * 
+ * + * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> + getStructuredDatasetTypeFieldBuilder() { + if (structuredDatasetTypeBuilder_ == null) { + if (!(typeCase_ == 8)) { + type_ = flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); + } + structuredDatasetTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder>( + (flyteidl.core.Types.StructuredDatasetType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 8; + onChanged();; + return structuredDatasetTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.UnionType, flyteidl.core.Types.UnionType.Builder, flyteidl.core.Types.UnionTypeOrBuilder> unionTypeBuilder_; + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public boolean hasUnionType() { + return typeCase_ == 10; + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public flyteidl.core.Types.UnionType getUnionType() { + if (unionTypeBuilder_ == null) { + if (typeCase_ == 10) { + return (flyteidl.core.Types.UnionType) type_; + } + return flyteidl.core.Types.UnionType.getDefaultInstance(); + } else { + if (typeCase_ == 10) { + return unionTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.UnionType.getDefaultInstance(); + } + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public Builder setUnionType(flyteidl.core.Types.UnionType value) { + if (unionTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + unionTypeBuilder_.setMessage(value); + } + typeCase_ = 10; + return this; + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public Builder setUnionType( + flyteidl.core.Types.UnionType.Builder builderForValue) { + if (unionTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + unionTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 10; + return this; + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public Builder mergeUnionType(flyteidl.core.Types.UnionType value) { + if (unionTypeBuilder_ == null) { + if (typeCase_ == 10 && + type_ != flyteidl.core.Types.UnionType.getDefaultInstance()) { + type_ = flyteidl.core.Types.UnionType.newBuilder((flyteidl.core.Types.UnionType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 10) { + unionTypeBuilder_.mergeFrom(value); + } + unionTypeBuilder_.setMessage(value); + } + typeCase_ = 10; + return this; + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public Builder clearUnionType() { + if (unionTypeBuilder_ == null) { + if (typeCase_ == 10) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 10) { + typeCase_ = 0; + type_ = null; + } + unionTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public flyteidl.core.Types.UnionType.Builder getUnionTypeBuilder() { + return getUnionTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + public flyteidl.core.Types.UnionTypeOrBuilder getUnionTypeOrBuilder() { + if ((typeCase_ == 10) && (unionTypeBuilder_ != null)) { + return unionTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 10) { + return (flyteidl.core.Types.UnionType) type_; + } + return flyteidl.core.Types.UnionType.getDefaultInstance(); + } + } + /** + *
+       * Defines an union type with pre-defined LiteralTypes.
+       * 
+ * + * .flyteidl.core.UnionType union_type = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.UnionType, flyteidl.core.Types.UnionType.Builder, flyteidl.core.Types.UnionTypeOrBuilder> + getUnionTypeFieldBuilder() { + if (unionTypeBuilder_ == null) { + if (!(typeCase_ == 10)) { + type_ = flyteidl.core.Types.UnionType.getDefaultInstance(); + } + unionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.UnionType, flyteidl.core.Types.UnionType.Builder, flyteidl.core.Types.UnionTypeOrBuilder>( + (flyteidl.core.Types.UnionType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 10; + onChanged();; + return unionTypeBuilder_; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata( + com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Types.TypeAnnotation annotation_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.TypeAnnotation, flyteidl.core.Types.TypeAnnotation.Builder, flyteidl.core.Types.TypeAnnotationOrBuilder> annotationBuilder_; + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public boolean hasAnnotation() { + return annotationBuilder_ != null || annotation_ != null; + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public flyteidl.core.Types.TypeAnnotation getAnnotation() { + if (annotationBuilder_ == null) { + return annotation_ == null ? flyteidl.core.Types.TypeAnnotation.getDefaultInstance() : annotation_; + } else { + return annotationBuilder_.getMessage(); + } + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public Builder setAnnotation(flyteidl.core.Types.TypeAnnotation value) { + if (annotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotation_ = value; + onChanged(); + } else { + annotationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public Builder setAnnotation( + flyteidl.core.Types.TypeAnnotation.Builder builderForValue) { + if (annotationBuilder_ == null) { + annotation_ = builderForValue.build(); + onChanged(); + } else { + annotationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public Builder mergeAnnotation(flyteidl.core.Types.TypeAnnotation value) { + if (annotationBuilder_ == null) { + if (annotation_ != null) { + annotation_ = + flyteidl.core.Types.TypeAnnotation.newBuilder(annotation_).mergeFrom(value).buildPartial(); + } else { + annotation_ = value; + } + onChanged(); + } else { + annotationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public Builder clearAnnotation() { + if (annotationBuilder_ == null) { + annotation_ = null; + onChanged(); + } else { + annotation_ = null; + annotationBuilder_ = null; + } + + return this; + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public flyteidl.core.Types.TypeAnnotation.Builder getAnnotationBuilder() { + + onChanged(); + return getAnnotationFieldBuilder().getBuilder(); + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + public flyteidl.core.Types.TypeAnnotationOrBuilder getAnnotationOrBuilder() { + if (annotationBuilder_ != null) { + return annotationBuilder_.getMessageOrBuilder(); + } else { + return annotation_ == null ? + flyteidl.core.Types.TypeAnnotation.getDefaultInstance() : annotation_; + } + } + /** + *
+       * This field contains arbitrary data that might have special semantic
+       * meaning for the client but does not effect internal flyte behavior.
+       * 
+ * + * .flyteidl.core.TypeAnnotation annotation = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.TypeAnnotation, flyteidl.core.Types.TypeAnnotation.Builder, flyteidl.core.Types.TypeAnnotationOrBuilder> + getAnnotationFieldBuilder() { + if (annotationBuilder_ == null) { + annotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.TypeAnnotation, flyteidl.core.Types.TypeAnnotation.Builder, flyteidl.core.Types.TypeAnnotationOrBuilder>( + getAnnotation(), + getParentForChildren(), + isClean()); + annotation_ = null; + } + return annotationBuilder_; + } + + private flyteidl.core.Types.TypeStructure structure_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.TypeStructure, flyteidl.core.Types.TypeStructure.Builder, flyteidl.core.Types.TypeStructureOrBuilder> structureBuilder_; + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public boolean hasStructure() { + return structureBuilder_ != null || structure_ != null; + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public flyteidl.core.Types.TypeStructure getStructure() { + if (structureBuilder_ == null) { + return structure_ == null ? flyteidl.core.Types.TypeStructure.getDefaultInstance() : structure_; + } else { + return structureBuilder_.getMessage(); + } + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public Builder setStructure(flyteidl.core.Types.TypeStructure value) { + if (structureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structure_ = value; + onChanged(); + } else { + structureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public Builder setStructure( + flyteidl.core.Types.TypeStructure.Builder builderForValue) { + if (structureBuilder_ == null) { + structure_ = builderForValue.build(); + onChanged(); + } else { + structureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public Builder mergeStructure(flyteidl.core.Types.TypeStructure value) { + if (structureBuilder_ == null) { + if (structure_ != null) { + structure_ = + flyteidl.core.Types.TypeStructure.newBuilder(structure_).mergeFrom(value).buildPartial(); + } else { + structure_ = value; + } + onChanged(); + } else { + structureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public Builder clearStructure() { + if (structureBuilder_ == null) { + structure_ = null; + onChanged(); + } else { + structure_ = null; + structureBuilder_ = null; + } + + return this; + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public flyteidl.core.Types.TypeStructure.Builder getStructureBuilder() { + + onChanged(); + return getStructureFieldBuilder().getBuilder(); + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + public flyteidl.core.Types.TypeStructureOrBuilder getStructureOrBuilder() { + if (structureBuilder_ != null) { + return structureBuilder_.getMessageOrBuilder(); + } else { + return structure_ == null ? + flyteidl.core.Types.TypeStructure.getDefaultInstance() : structure_; + } + } + /** + *
+       * Hints to improve type matching.
+       * 
+ * + * .flyteidl.core.TypeStructure structure = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.TypeStructure, flyteidl.core.Types.TypeStructure.Builder, flyteidl.core.Types.TypeStructureOrBuilder> + getStructureFieldBuilder() { + if (structureBuilder_ == null) { + structureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.TypeStructure, flyteidl.core.Types.TypeStructure.Builder, flyteidl.core.Types.TypeStructureOrBuilder>( + getStructure(), + getParentForChildren(), + isClean()); + structure_ = null; + } + return structureBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.LiteralType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) + private static final flyteidl.core.Types.LiteralType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.LiteralType(); + } + + public static flyteidl.core.Types.LiteralType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LiteralType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OutputReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.OutputReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + } + /** + *
+   * A reference to an output produced by a node. The type can be retrieved -and validated- from
+   * the underlying interface of the node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class OutputReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.OutputReference) + OutputReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputReference.newBuilder() to construct. + private OutputReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OutputReference() { + nodeId_ = ""; + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OutputReference( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } + } + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VAR_FIELD_NUMBER = 2; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, var_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, var_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.OutputReference)) { + return super.equals(obj); + } + flyteidl.core.Types.OutputReference other = (flyteidl.core.Types.OutputReference) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!getVar() + .equals(other.getVar())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.OutputReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A reference to an output produced by a node. The type can be retrieved -and validated- from
+     * the underlying interface of the node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.OutputReference) + flyteidl.core.Types.OutputReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + // Construct using flyteidl.core.Types.OutputReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = ""; + + var_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference build() { + flyteidl.core.Types.OutputReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference buildPartial() { + flyteidl.core.Types.OutputReference result = new flyteidl.core.Types.OutputReference(this); + result.nodeId_ = nodeId_; + result.var_ = var_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.OutputReference) { + return mergeFrom((flyteidl.core.Types.OutputReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.OutputReference other) { + if (other == flyteidl.core.Types.OutputReference.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.OutputReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.OutputReference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.OutputReference) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) + private static final flyteidl.core.Types.OutputReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.OutputReference(); + } + + public static flyteidl.core.Types.OutputReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutputReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputReference(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Error) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + java.lang.String getFailedNodeId(); + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + com.google.protobuf.ByteString + getFailedNodeIdBytes(); + + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Represents an error thrown from a node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Error extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Error) + ErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use Error.newBuilder() to construct. + private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Error() { + failedNodeId_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Error( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + failedNodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + public static final int FAILED_NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object failedNodeId_; + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failedNodeId_ = s; + return s; + } + } + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFailedNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFailedNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Types.Error)) { + return super.equals(obj); + } + flyteidl.core.Types.Error other = (flyteidl.core.Types.Error) obj; + + if (!getFailedNodeId() + .equals(other.getFailedNodeId())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FAILED_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFailedNodeId().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.Error prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents an error thrown from a node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Error) + flyteidl.core.Types.ErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + // Construct using flyteidl.core.Types.Error.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + failedNodeId_ = ""; + + message_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + @java.lang.Override + public flyteidl.core.Types.Error getDefaultInstanceForType() { + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Types.Error build() { + flyteidl.core.Types.Error result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Types.Error buildPartial() { + flyteidl.core.Types.Error result = new flyteidl.core.Types.Error(this); + result.failedNodeId_ = failedNodeId_; + result.message_ = message_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.Error) { + return mergeFrom((flyteidl.core.Types.Error)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.Error other) { + if (other == flyteidl.core.Types.Error.getDefaultInstance()) return this; + if (!other.getFailedNodeId().isEmpty()) { + failedNodeId_ = other.failedNodeId_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.Error parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.Error) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object failedNodeId_ = ""; + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failedNodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + failedNodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder clearFailedNodeId() { + + failedNodeId_ = getDefaultInstance().getFailedNodeId(); + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + failedNodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Error) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Error) + private static final flyteidl.core.Types.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.Error(); + } + + public static flyteidl.core.Types.Error getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Error(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Types.Error getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_StructuredDatasetType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_StructuredDatasetType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_EnumType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_EnumType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_UnionType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_UnionType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TypeStructure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TypeStructure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TypeAnnotation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TypeAnnotation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_OutputReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_OutputReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Error_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Error_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031flyteidl/core/types.proto\022\rflyteidl.co" + + "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + + "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + + ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + + "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + + ".core.SchemaType.SchemaColumn.SchemaColu" + + "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + + "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + + "ATETIME\020\004\022\014\n\010DURATION\020\005\"\372\001\n\025StructuredDa" + + "tasetType\022C\n\007columns\030\001 \003(\01322.flyteidl.co" + + "re.StructuredDatasetType.DatasetColumn\022\016" + + "\n\006format\030\002 \001(\t\022\034\n\024external_schema_type\030\003" + + " \001(\t\022\035\n\025external_schema_bytes\030\004 \001(\014\032O\n\rD" + + "atasetColumn\022\014\n\004name\030\001 \001(\t\0220\n\014literal_ty" + + "pe\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\217\001\n" + + "\010BlobType\022\016\n\006format\030\001 \001(\t\022B\n\016dimensional" + + "ity\030\002 \001(\0162*.flyteidl.core.BlobType.BlobD" + + "imensionality\"/\n\022BlobDimensionality\022\n\n\006S" + + "INGLE\020\000\022\r\n\tMULTIPART\020\001\"\032\n\010EnumType\022\016\n\006va" + + "lues\030\001 \003(\t\"9\n\tUnionType\022,\n\010variants\030\001 \003(" + + "\0132\032.flyteidl.core.LiteralType\"\034\n\rTypeStr" + + "ucture\022\013\n\003tag\030\001 \001(\t\">\n\016TypeAnnotation\022,\n" + + "\013annotations\030\001 \001(\0132\027.google.protobuf.Str" + + "uct\"\273\004\n\013LiteralType\022+\n\006simple\030\001 \001(\0162\031.fl" + + "yteidl.core.SimpleTypeH\000\022+\n\006schema\030\002 \001(\013" + + "2\031.flyteidl.core.SchemaTypeH\000\0225\n\017collect" + + "ion_type\030\003 \001(\0132\032.flyteidl.core.LiteralTy" + + "peH\000\0224\n\016map_value_type\030\004 \001(\0132\032.flyteidl." + + "core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027.flyte" + + "idl.core.BlobTypeH\000\022,\n\tenum_type\030\007 \001(\0132\027" + + ".flyteidl.core.EnumTypeH\000\022G\n\027structured_" + + "dataset_type\030\010 \001(\0132$.flyteidl.core.Struc" + + "turedDatasetTypeH\000\022.\n\nunion_type\030\n \001(\0132\030" + + ".flyteidl.core.UnionTypeH\000\022)\n\010metadata\030\006" + + " \001(\0132\027.google.protobuf.Struct\0221\n\nannotat" + + "ion\030\t \001(\0132\035.flyteidl.core.TypeAnnotation" + + "\022/\n\tstructure\030\013 \001(\0132\034.flyteidl.core.Type" + + "StructureB\006\n\004type\"/\n\017OutputReference\022\017\n\007" + + "node_id\030\001 \001(\t\022\013\n\003var\030\002 \001(\t\"0\n\005Error\022\026\n\016f" + + "ailed_node_id\030\001 \001(\t\022\017\n\007message\030\002 \001(\t*\206\001\n" + + "\nSimpleType\022\010\n\004NONE\020\000\022\013\n\007INTEGER\020\001\022\t\n\005FL" + + "OAT\020\002\022\n\n\006STRING\020\003\022\013\n\007BOOLEAN\020\004\022\014\n\010DATETI" + + "ME\020\005\022\014\n\010DURATION\020\006\022\n\n\006BINARY\020\007\022\t\n\005ERROR\020" + + "\010\022\n\n\006STRUCT\020\tB6Z4github.com/flyteorg/fly" + + "teidl/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_SchemaType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_SchemaType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_descriptor, + new java.lang.String[] { "Columns", }); + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor = + internal_static_flyteidl_core_SchemaType_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor, + new java.lang.String[] { "Name", "Type", }); + internal_static_flyteidl_core_StructuredDatasetType_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_StructuredDatasetType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_StructuredDatasetType_descriptor, + new java.lang.String[] { "Columns", "Format", "ExternalSchemaType", "ExternalSchemaBytes", }); + internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor = + internal_static_flyteidl_core_StructuredDatasetType_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor, + new java.lang.String[] { "Name", "LiteralType", }); + internal_static_flyteidl_core_BlobType_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BlobType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobType_descriptor, + new java.lang.String[] { "Format", "Dimensionality", }); + internal_static_flyteidl_core_EnumType_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_EnumType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_EnumType_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_core_UnionType_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_UnionType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_UnionType_descriptor, + new java.lang.String[] { "Variants", }); + internal_static_flyteidl_core_TypeStructure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_TypeStructure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TypeStructure_descriptor, + new java.lang.String[] { "Tag", }); + internal_static_flyteidl_core_TypeAnnotation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_TypeAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TypeAnnotation_descriptor, + new java.lang.String[] { "Annotations", }); + internal_static_flyteidl_core_LiteralType_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_LiteralType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralType_descriptor, + new java.lang.String[] { "Simple", "Schema", "CollectionType", "MapValueType", "Blob", "EnumType", "StructuredDatasetType", "UnionType", "Metadata", "Annotation", "Structure", "Type", }); + internal_static_flyteidl_core_OutputReference_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_OutputReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_OutputReference_descriptor, + new java.lang.String[] { "NodeId", "Var", }); + internal_static_flyteidl_core_Error_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_Error_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Error_descriptor, + new java.lang.String[] { "FailedNodeId", "Message", }); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Workflow.java b/flyteidl/gen/pb-java/flyteidl/core/Workflow.java new file mode 100644 index 0000000000..9d7cf7e7de --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Workflow.java @@ -0,0 +1,21354 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +package flyteidl.core; + +public final class Workflow { + private Workflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface IfBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + boolean hasCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpression getCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder(); + + /** + * .flyteidl.core.Node then_node = 2; + */ + boolean hasThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.Node getThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder(); + } + /** + *
+   * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class IfBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfBlock) + IfBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfBlock.newBuilder() to construct. + private IfBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfBlock() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfBlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (condition_ != null) { + subBuilder = condition_.toBuilder(); + } + condition_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(condition_); + condition_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (thenNode_ != null) { + subBuilder = thenNode_.toBuilder(); + } + thenNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(thenNode_); + thenNode_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + public static final int CONDITION_FIELD_NUMBER = 1; + private flyteidl.core.Condition.BooleanExpression condition_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + return getCondition(); + } + + public static final int THEN_NODE_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.Node thenNode_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + return getThenNode(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (condition_ != null) { + output.writeMessage(1, getCondition()); + } + if (thenNode_ != null) { + output.writeMessage(2, getThenNode()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (condition_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCondition()); + } + if (thenNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getThenNode()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.IfBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfBlock other = (flyteidl.core.Workflow.IfBlock) obj; + + if (hasCondition() != other.hasCondition()) return false; + if (hasCondition()) { + if (!getCondition() + .equals(other.getCondition())) return false; + } + if (hasThenNode() != other.hasThenNode()) return false; + if (hasThenNode()) { + if (!getThenNode() + .equals(other.getThenNode())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCondition()) { + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + } + if (hasThenNode()) { + hash = (37 * hash) + THEN_NODE_FIELD_NUMBER; + hash = (53 * hash) + getThenNode().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.IfBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfBlock) + flyteidl.core.Workflow.IfBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (conditionBuilder_ == null) { + condition_ = null; + } else { + condition_ = null; + conditionBuilder_ = null; + } + if (thenNodeBuilder_ == null) { + thenNode_ = null; + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfBlock.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock build() { + flyteidl.core.Workflow.IfBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock buildPartial() { + flyteidl.core.Workflow.IfBlock result = new flyteidl.core.Workflow.IfBlock(this); + if (conditionBuilder_ == null) { + result.condition_ = condition_; + } else { + result.condition_ = conditionBuilder_.build(); + } + if (thenNodeBuilder_ == null) { + result.thenNode_ = thenNode_; + } else { + result.thenNode_ = thenNodeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.IfBlock) { + return mergeFrom((flyteidl.core.Workflow.IfBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfBlock other) { + if (other == flyteidl.core.Workflow.IfBlock.getDefaultInstance()) return this; + if (other.hasCondition()) { + mergeCondition(other.getCondition()); + } + if (other.hasThenNode()) { + mergeThenNode(other.getThenNode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.IfBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Condition.BooleanExpression condition_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> conditionBuilder_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return conditionBuilder_ != null || condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + if (conditionBuilder_ == null) { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } else { + return conditionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + conditionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (conditionBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + conditionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder mergeCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (condition_ != null) { + condition_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(condition_).mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + conditionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder clearCondition() { + if (conditionBuilder_ == null) { + condition_ = null; + onChanged(); + } else { + condition_ = null; + conditionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getConditionBuilder() { + + onChanged(); + return getConditionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + if (conditionBuilder_ != null) { + return conditionBuilder_.getMessageOrBuilder(); + } else { + return condition_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getConditionFieldBuilder() { + if (conditionBuilder_ == null) { + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); + condition_ = null; + } + return conditionBuilder_; + } + + private flyteidl.core.Workflow.Node thenNode_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> thenNodeBuilder_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNodeBuilder_ != null || thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + if (thenNodeBuilder_ == null) { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } else { + return thenNodeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + thenNode_ = value; + onChanged(); + } else { + thenNodeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (thenNodeBuilder_ == null) { + thenNode_ = builderForValue.build(); + onChanged(); + } else { + thenNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder mergeThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (thenNode_ != null) { + thenNode_ = + flyteidl.core.Workflow.Node.newBuilder(thenNode_).mergeFrom(value).buildPartial(); + } else { + thenNode_ = value; + } + onChanged(); + } else { + thenNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder clearThenNode() { + if (thenNodeBuilder_ == null) { + thenNode_ = null; + onChanged(); + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node.Builder getThenNodeBuilder() { + + onChanged(); + return getThenNodeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + if (thenNodeBuilder_ != null) { + return thenNodeBuilder_.getMessageOrBuilder(); + } else { + return thenNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getThenNodeFieldBuilder() { + if (thenNodeBuilder_ == null) { + thenNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getThenNode(), + getParentForChildren(), + isClean()); + thenNode_ = null; + } + return thenNodeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.IfBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) + private static final flyteidl.core.Workflow.IfBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfBlock(); + } + + public static flyteidl.core.Workflow.IfBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IfBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IfElseBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfElseBlock) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + boolean hasCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlock getCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder(); + + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlock getOther(int index); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + int getOtherCount(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherOrBuilderList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index); + + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + boolean hasElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.Node getElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder(); + + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + boolean hasError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.Error getError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + public flyteidl.core.Workflow.IfElseBlock.DefaultCase getDefaultCase(); + } + /** + *
+   * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+   * If no conditions were satisfied, the else_node or the error will execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class IfElseBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfElseBlock) + IfElseBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfElseBlock.newBuilder() to construct. + private IfElseBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfElseBlock() { + other_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfElseBlock( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Workflow.IfBlock.Builder subBuilder = null; + if (case_ != null) { + subBuilder = case_.toBuilder(); + } + case_ = input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(case_); + case_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + other_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + other_.add( + input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry)); + break; + } + case 26: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (defaultCase_ == 3) { + subBuilder = ((flyteidl.core.Workflow.Node) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.Node) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (defaultCase_ == 4) { + subBuilder = ((flyteidl.core.Types.Error) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + other_ = java.util.Collections.unmodifiableList(other_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + private int bitField0_; + private int defaultCase_ = 0; + private java.lang.Object default_; + public enum DefaultCase + implements com.google.protobuf.Internal.EnumLite { + ELSE_NODE(3), + ERROR(4), + DEFAULT_NOT_SET(0); + private final int value; + private DefaultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DefaultCase valueOf(int value) { + return forNumber(value); + } + + public static DefaultCase forNumber(int value) { + switch (value) { + case 3: return ELSE_NODE; + case 4: return ERROR; + case 0: return DEFAULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public static final int CASE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfBlock case_; + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return case_ != null; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + return getCase(); + } + + public static final int OTHER_FIELD_NUMBER = 2; + private java.util.List other_; + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + return other_.size(); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + return other_.get(index); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + return other_.get(index); + } + + public static final int ELSE_NODE_FIELD_NUMBER = 3; + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 4; + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (case_ != null) { + output.writeMessage(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + output.writeMessage(2, other_.get(i)); + } + if (defaultCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.Error) default_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (case_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, other_.get(i)); + } + if (defaultCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.Error) default_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.IfElseBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfElseBlock other = (flyteidl.core.Workflow.IfElseBlock) obj; + + if (hasCase() != other.hasCase()) return false; + if (hasCase()) { + if (!getCase() + .equals(other.getCase())) return false; + } + if (!getOtherList() + .equals(other.getOtherList())) return false; + if (!getDefaultCase().equals(other.getDefaultCase())) return false; + switch (defaultCase_) { + case 3: + if (!getElseNode() + .equals(other.getElseNode())) return false; + break; + case 4: + if (!getError() + .equals(other.getError())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCase()) { + hash = (37 * hash) + CASE_FIELD_NUMBER; + hash = (53 * hash) + getCase().hashCode(); + } + if (getOtherCount() > 0) { + hash = (37 * hash) + OTHER_FIELD_NUMBER; + hash = (53 * hash) + getOtherList().hashCode(); + } + switch (defaultCase_) { + case 3: + hash = (37 * hash) + ELSE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getElseNode().hashCode(); + break; + case 4: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.IfElseBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+     * If no conditions were satisfied, the else_node or the error will execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfElseBlock) + flyteidl.core.Workflow.IfElseBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfElseBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOtherFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (caseBuilder_ == null) { + case_ = null; + } else { + case_ = null; + caseBuilder_ = null; + } + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + otherBuilder_.clear(); + } + defaultCase_ = 0; + default_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfElseBlock.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock build() { + flyteidl.core.Workflow.IfElseBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock buildPartial() { + flyteidl.core.Workflow.IfElseBlock result = new flyteidl.core.Workflow.IfElseBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (caseBuilder_ == null) { + result.case_ = case_; + } else { + result.case_ = caseBuilder_.build(); + } + if (otherBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + other_ = java.util.Collections.unmodifiableList(other_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.other_ = other_; + } else { + result.other_ = otherBuilder_.build(); + } + if (defaultCase_ == 3) { + if (elseNodeBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = elseNodeBuilder_.build(); + } + } + if (defaultCase_ == 4) { + if (errorBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = errorBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.defaultCase_ = defaultCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.IfElseBlock) { + return mergeFrom((flyteidl.core.Workflow.IfElseBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfElseBlock other) { + if (other == flyteidl.core.Workflow.IfElseBlock.getDefaultInstance()) return this; + if (other.hasCase()) { + mergeCase(other.getCase()); + } + if (otherBuilder_ == null) { + if (!other.other_.isEmpty()) { + if (other_.isEmpty()) { + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOtherIsMutable(); + other_.addAll(other.other_); + } + onChanged(); + } + } else { + if (!other.other_.isEmpty()) { + if (otherBuilder_.isEmpty()) { + otherBuilder_.dispose(); + otherBuilder_ = null; + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + otherBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOtherFieldBuilder() : null; + } else { + otherBuilder_.addAllMessages(other.other_); + } + } + } + switch (other.getDefaultCase()) { + case ELSE_NODE: { + mergeElseNode(other.getElseNode()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.IfElseBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfElseBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int defaultCase_ = 0; + private java.lang.Object default_; + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public Builder clearDefault() { + defaultCase_ = 0; + default_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.Workflow.IfBlock case_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> caseBuilder_; + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return caseBuilder_ != null || case_ != null; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + if (caseBuilder_ == null) { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } else { + return caseBuilder_.getMessage(); + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + case_ = value; + onChanged(); + } else { + caseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (caseBuilder_ == null) { + case_ = builderForValue.build(); + onChanged(); + } else { + caseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder mergeCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (case_ != null) { + case_ = + flyteidl.core.Workflow.IfBlock.newBuilder(case_).mergeFrom(value).buildPartial(); + } else { + case_ = value; + } + onChanged(); + } else { + caseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder clearCase() { + if (caseBuilder_ == null) { + case_ = null; + onChanged(); + } else { + case_ = null; + caseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock.Builder getCaseBuilder() { + + onChanged(); + return getCaseFieldBuilder().getBuilder(); + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + if (caseBuilder_ != null) { + return caseBuilder_.getMessageOrBuilder(); + } else { + return case_ == null ? + flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getCaseFieldBuilder() { + if (caseBuilder_ == null) { + caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + getCase(), + getParentForChildren(), + isClean()); + case_ = null; + } + return caseBuilder_; + } + + private java.util.List other_ = + java.util.Collections.emptyList(); + private void ensureOtherIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + other_ = new java.util.ArrayList(other_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> otherBuilder_; + + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + if (otherBuilder_ == null) { + return java.util.Collections.unmodifiableList(other_); + } else { + return otherBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + if (otherBuilder_ == null) { + return other_.size(); + } else { + return otherBuilder_.getCount(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + if (otherBuilder_ == null) { + return other_.get(index); + } else { + return otherBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.set(index, value); + onChanged(); + } else { + otherBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.set(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther(flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(value); + onChanged(); + } else { + otherBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(index, value); + onChanged(); + } else { + otherBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addAllOther( + java.lang.Iterable values) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, other_); + onChanged(); + } else { + otherBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder clearOther() { + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + otherBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder removeOther(int index) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.remove(index); + onChanged(); + } else { + otherBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder getOtherBuilder( + int index) { + return getOtherFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + if (otherBuilder_ == null) { + return other_.get(index); } else { + return otherBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + if (otherBuilder_ != null) { + return otherBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(other_); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder() { + return getOtherFieldBuilder().addBuilder( + flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder( + int index) { + return getOtherFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherBuilderList() { + return getOtherFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getOtherFieldBuilder() { + if (otherBuilder_ == null) { + otherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + other_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + other_ = null; + } + return otherBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> elseNodeBuilder_; + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } else { + if (defaultCase_ == 3) { + return elseNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (elseNodeBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + elseNodeBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder mergeElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3 && + default_ != flyteidl.core.Workflow.Node.getDefaultInstance()) { + default_ = flyteidl.core.Workflow.Node.newBuilder((flyteidl.core.Workflow.Node) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 3) { + elseNodeBuilder_.mergeFrom(value); + } + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder clearElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + } + elseNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node.Builder getElseNodeBuilder() { + return getElseNodeFieldBuilder().getBuilder(); + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if ((defaultCase_ == 3) && (elseNodeBuilder_ != null)) { + return elseNodeBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getElseNodeFieldBuilder() { + if (elseNodeBuilder_ == null) { + if (!(defaultCase_ == 3)) { + default_ = flyteidl.core.Workflow.Node.getDefaultInstance(); + } + elseNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + (flyteidl.core.Workflow.Node) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 3; + onChanged();; + return elseNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (defaultCase_ == 4) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (defaultCase_ == 4 && + default_ != flyteidl.core.Types.Error.getDefaultInstance()) { + default_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 4) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((defaultCase_ == 4) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(defaultCase_ == 4)) { + default_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 4; + onChanged();; + return errorBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.IfElseBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) + private static final flyteidl.core.Workflow.IfElseBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfElseBlock(); + } + + public static flyteidl.core.Workflow.IfElseBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IfElseBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfElseBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BranchNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BranchNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + boolean hasIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlock getIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder(); + } + /** + *
+   * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+   * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives).
+   * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class BranchNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BranchNode) + BranchNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BranchNode.newBuilder() to construct. + private BranchNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BranchNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BranchNode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Workflow.IfElseBlock.Builder subBuilder = null; + if (ifElse_ != null) { + subBuilder = ifElse_.toBuilder(); + } + ifElse_ = input.readMessage(flyteidl.core.Workflow.IfElseBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ifElse_); + ifElse_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + public static final int IF_ELSE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfElseBlock ifElse_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElse_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + return getIfElse(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (ifElse_ != null) { + output.writeMessage(1, getIfElse()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ifElse_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIfElse()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.BranchNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.BranchNode other = (flyteidl.core.Workflow.BranchNode) obj; + + if (hasIfElse() != other.hasIfElse()) return false; + if (hasIfElse()) { + if (!getIfElse() + .equals(other.getIfElse())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIfElse()) { + hash = (37 * hash) + IF_ELSE_FIELD_NUMBER; + hash = (53 * hash) + getIfElse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.BranchNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+     * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives).
+     * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BranchNode) + flyteidl.core.Workflow.BranchNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.BranchNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (ifElseBuilder_ == null) { + ifElse_ = null; + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode build() { + flyteidl.core.Workflow.BranchNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode buildPartial() { + flyteidl.core.Workflow.BranchNode result = new flyteidl.core.Workflow.BranchNode(this); + if (ifElseBuilder_ == null) { + result.ifElse_ = ifElse_; + } else { + result.ifElse_ = ifElseBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.BranchNode) { + return mergeFrom((flyteidl.core.Workflow.BranchNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.BranchNode other) { + if (other == flyteidl.core.Workflow.BranchNode.getDefaultInstance()) return this; + if (other.hasIfElse()) { + mergeIfElse(other.getIfElse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.BranchNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.BranchNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.IfElseBlock ifElse_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> ifElseBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElseBuilder_ != null || ifElse_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + if (ifElseBuilder_ == null) { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } else { + return ifElseBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ifElse_ = value; + onChanged(); + } else { + ifElseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse( + flyteidl.core.Workflow.IfElseBlock.Builder builderForValue) { + if (ifElseBuilder_ == null) { + ifElse_ = builderForValue.build(); + onChanged(); + } else { + ifElseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder mergeIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (ifElse_ != null) { + ifElse_ = + flyteidl.core.Workflow.IfElseBlock.newBuilder(ifElse_).mergeFrom(value).buildPartial(); + } else { + ifElse_ = value; + } + onChanged(); + } else { + ifElseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder clearIfElse() { + if (ifElseBuilder_ == null) { + ifElse_ = null; + onChanged(); + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock.Builder getIfElseBuilder() { + + onChanged(); + return getIfElseFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + if (ifElseBuilder_ != null) { + return ifElseBuilder_.getMessageOrBuilder(); + } else { + return ifElse_ == null ? + flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> + getIfElseFieldBuilder() { + if (ifElseBuilder_ == null) { + ifElseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder>( + getIfElse(), + getParentForChildren(), + isClean()); + ifElse_ = null; + } + return ifElseBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BranchNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) + private static final flyteidl.core.Workflow.BranchNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.BranchNode(); + } + + public static flyteidl.core.Workflow.BranchNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BranchNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BranchNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + boolean hasReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder(); + + /** + *
+     * Optional overrides applied at task execution time.
+     * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + boolean hasOverrides(); + /** + *
+     * Optional overrides applied at task execution time.
+     * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + flyteidl.core.Workflow.TaskNodeOverrides getOverrides(); + /** + *
+     * Optional overrides applied at task execution time.
+     * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + flyteidl.core.Workflow.TaskNodeOverridesOrBuilder getOverridesOrBuilder(); + + public flyteidl.core.Workflow.TaskNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to the task that the Node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class TaskNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNode) + TaskNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskNode.newBuilder() to construct. + private TaskNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskNode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + break; + } + case 18: { + flyteidl.core.Workflow.TaskNodeOverrides.Builder subBuilder = null; + if (overrides_ != null) { + subBuilder = overrides_.toBuilder(); + } + overrides_ = input.readMessage(flyteidl.core.Workflow.TaskNodeOverrides.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(overrides_); + overrides_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + REFERENCE_ID(1), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return REFERENCE_ID; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int REFERENCE_ID_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + public static final int OVERRIDES_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.TaskNodeOverrides overrides_; + /** + *
+     * Optional overrides applied at task execution time.
+     * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public boolean hasOverrides() { + return overrides_ != null; + } + /** + *
+     * Optional overrides applied at task execution time.
+     * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public flyteidl.core.Workflow.TaskNodeOverrides getOverrides() { + return overrides_ == null ? flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance() : overrides_; + } + /** + *
+     * Optional overrides applied at task execution time.
+     * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public flyteidl.core.Workflow.TaskNodeOverridesOrBuilder getOverridesOrBuilder() { + return getOverrides(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (overrides_ != null) { + output.writeMessage(2, getOverrides()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (overrides_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOverrides()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.TaskNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.TaskNode other = (flyteidl.core.Workflow.TaskNode) obj; + + if (hasOverrides() != other.hasOverrides()) return false; + if (hasOverrides()) { + if (!getOverrides() + .equals(other.getOverrides())) return false; + } + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 1: + if (!getReferenceId() + .equals(other.getReferenceId())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOverrides()) { + hash = (37 * hash) + OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getOverrides().hashCode(); + } + switch (referenceCase_) { + case 1: + hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReferenceId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.TaskNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Refers to the task that the Node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNode) + flyteidl.core.Workflow.TaskNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.TaskNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (overridesBuilder_ == null) { + overrides_ = null; + } else { + overrides_ = null; + overridesBuilder_ = null; + } + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode build() { + flyteidl.core.Workflow.TaskNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode buildPartial() { + flyteidl.core.Workflow.TaskNode result = new flyteidl.core.Workflow.TaskNode(this); + if (referenceCase_ == 1) { + if (referenceIdBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = referenceIdBuilder_.build(); + } + } + if (overridesBuilder_ == null) { + result.overrides_ = overrides_; + } else { + result.overrides_ = overridesBuilder_.build(); + } + result.referenceCase_ = referenceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.TaskNode) { + return mergeFrom((flyteidl.core.Workflow.TaskNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.TaskNode other) { + if (other == flyteidl.core.Workflow.TaskNode.getDefaultInstance()) return this; + if (other.hasOverrides()) { + mergeOverrides(other.getOverrides()); + } + switch (other.getReferenceCase()) { + case REFERENCE_ID: { + mergeReferenceId(other.getReferenceId()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.TaskNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.TaskNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> referenceIdBuilder_; + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return referenceIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (referenceIdBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + referenceIdBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder mergeReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + referenceIdBuilder_.mergeFrom(value); + } + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder clearReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + referenceIdBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getReferenceIdBuilder() { + return getReferenceIdFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if ((referenceCase_ == 1) && (referenceIdBuilder_ != null)) { + return referenceIdBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getReferenceIdFieldBuilder() { + if (referenceIdBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + referenceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return referenceIdBuilder_; + } + + private flyteidl.core.Workflow.TaskNodeOverrides overrides_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNodeOverrides, flyteidl.core.Workflow.TaskNodeOverrides.Builder, flyteidl.core.Workflow.TaskNodeOverridesOrBuilder> overridesBuilder_; + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public boolean hasOverrides() { + return overridesBuilder_ != null || overrides_ != null; + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public flyteidl.core.Workflow.TaskNodeOverrides getOverrides() { + if (overridesBuilder_ == null) { + return overrides_ == null ? flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance() : overrides_; + } else { + return overridesBuilder_.getMessage(); + } + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public Builder setOverrides(flyteidl.core.Workflow.TaskNodeOverrides value) { + if (overridesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + overrides_ = value; + onChanged(); + } else { + overridesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public Builder setOverrides( + flyteidl.core.Workflow.TaskNodeOverrides.Builder builderForValue) { + if (overridesBuilder_ == null) { + overrides_ = builderForValue.build(); + onChanged(); + } else { + overridesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public Builder mergeOverrides(flyteidl.core.Workflow.TaskNodeOverrides value) { + if (overridesBuilder_ == null) { + if (overrides_ != null) { + overrides_ = + flyteidl.core.Workflow.TaskNodeOverrides.newBuilder(overrides_).mergeFrom(value).buildPartial(); + } else { + overrides_ = value; + } + onChanged(); + } else { + overridesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public Builder clearOverrides() { + if (overridesBuilder_ == null) { + overrides_ = null; + onChanged(); + } else { + overrides_ = null; + overridesBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public flyteidl.core.Workflow.TaskNodeOverrides.Builder getOverridesBuilder() { + + onChanged(); + return getOverridesFieldBuilder().getBuilder(); + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + public flyteidl.core.Workflow.TaskNodeOverridesOrBuilder getOverridesOrBuilder() { + if (overridesBuilder_ != null) { + return overridesBuilder_.getMessageOrBuilder(); + } else { + return overrides_ == null ? + flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance() : overrides_; + } + } + /** + *
+       * Optional overrides applied at task execution time.
+       * 
+ * + * .flyteidl.core.TaskNodeOverrides overrides = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNodeOverrides, flyteidl.core.Workflow.TaskNodeOverrides.Builder, flyteidl.core.Workflow.TaskNodeOverridesOrBuilder> + getOverridesFieldBuilder() { + if (overridesBuilder_ == null) { + overridesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNodeOverrides, flyteidl.core.Workflow.TaskNodeOverrides.Builder, flyteidl.core.Workflow.TaskNodeOverridesOrBuilder>( + getOverrides(), + getParentForChildren(), + isClean()); + overrides_ = null; + } + return overridesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) + private static final flyteidl.core.Workflow.TaskNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNode(); + } + + public static flyteidl.core.Workflow.TaskNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + boolean hasLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder(); + + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + boolean hasSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder(); + + public flyteidl.core.Workflow.WorkflowNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to a the workflow the node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class WorkflowNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowNode) + WorkflowNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNode.newBuilder() to construct. + private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 2) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + LAUNCHPLAN_REF(1), + SUB_WORKFLOW_REF(2), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return LAUNCHPLAN_REF; + case 2: return SUB_WORKFLOW_REF; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int LAUNCHPLAN_REF_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + public static final int SUB_WORKFLOW_REF_FIELD_NUMBER = 2; + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.WorkflowNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowNode other = (flyteidl.core.Workflow.WorkflowNode) obj; + + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 1: + if (!getLaunchplanRef() + .equals(other.getLaunchplanRef())) return false; + break; + case 2: + if (!getSubWorkflowRef() + .equals(other.getSubWorkflowRef())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (referenceCase_) { + case 1: + hash = (37 * hash) + LAUNCHPLAN_REF_FIELD_NUMBER; + hash = (53 * hash) + getLaunchplanRef().hashCode(); + break; + case 2: + hash = (37 * hash) + SUB_WORKFLOW_REF_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowRef().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.WorkflowNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Refers to a the workflow the node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowNode) + flyteidl.core.Workflow.WorkflowNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode build() { + flyteidl.core.Workflow.WorkflowNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode buildPartial() { + flyteidl.core.Workflow.WorkflowNode result = new flyteidl.core.Workflow.WorkflowNode(this); + if (referenceCase_ == 1) { + if (launchplanRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = launchplanRefBuilder_.build(); + } + } + if (referenceCase_ == 2) { + if (subWorkflowRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = subWorkflowRefBuilder_.build(); + } + } + result.referenceCase_ = referenceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.WorkflowNode) { + return mergeFrom((flyteidl.core.Workflow.WorkflowNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowNode other) { + if (other == flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case LAUNCHPLAN_REF: { + mergeLaunchplanRef(other.getLaunchplanRef()); + break; + } + case SUB_WORKFLOW_REF: { + mergeSubWorkflowRef(other.getSubWorkflowRef()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.WorkflowNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchplanRefBuilder_; + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return launchplanRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchplanRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + launchplanRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder mergeLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + launchplanRefBuilder_.mergeFrom(value); + } + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder clearLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + launchplanRefBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchplanRefBuilder() { + return getLaunchplanRefFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if ((referenceCase_ == 1) && (launchplanRefBuilder_ != null)) { + return launchplanRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchplanRefFieldBuilder() { + if (launchplanRefBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + launchplanRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return launchplanRefBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> subWorkflowRefBuilder_; + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 2) { + return subWorkflowRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (subWorkflowRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder mergeSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 2) { + subWorkflowRefBuilder_.mergeFrom(value); + } + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder clearSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + } + subWorkflowRefBuilder_.clear(); + } + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getSubWorkflowRefBuilder() { + return getSubWorkflowRefFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if ((referenceCase_ == 2) && (subWorkflowRefBuilder_ != null)) { + return subWorkflowRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getSubWorkflowRefFieldBuilder() { + if (subWorkflowRefBuilder_ == null) { + if (!(referenceCase_ == 2)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + subWorkflowRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 2; + onChanged();; + return subWorkflowRefBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) + private static final flyteidl.core.Workflow.WorkflowNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowNode(); + } + + public static flyteidl.core.Workflow.WorkflowNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ApproveConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ApproveCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A unique identifier for the requested boolean signal.
+     * 
+ * + * string signal_id = 1; + */ + java.lang.String getSignalId(); + /** + *
+     * A unique identifier for the requested boolean signal.
+     * 
+ * + * string signal_id = 1; + */ + com.google.protobuf.ByteString + getSignalIdBytes(); + } + /** + *
+   * ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean
+   * signal with the provided signal_id.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ApproveCondition} + */ + public static final class ApproveCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ApproveCondition) + ApproveConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApproveCondition.newBuilder() to construct. + private ApproveCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ApproveCondition() { + signalId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ApproveCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + signalId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.ApproveCondition.class, flyteidl.core.Workflow.ApproveCondition.Builder.class); + } + + public static final int SIGNAL_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object signalId_; + /** + *
+     * A unique identifier for the requested boolean signal.
+     * 
+ * + * string signal_id = 1; + */ + public java.lang.String getSignalId() { + java.lang.Object ref = signalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signalId_ = s; + return s; + } + } + /** + *
+     * A unique identifier for the requested boolean signal.
+     * 
+ * + * string signal_id = 1; + */ + public com.google.protobuf.ByteString + getSignalIdBytes() { + java.lang.Object ref = signalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSignalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signalId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSignalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signalId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.ApproveCondition)) { + return super.equals(obj); + } + flyteidl.core.Workflow.ApproveCondition other = (flyteidl.core.Workflow.ApproveCondition) obj; + + if (!getSignalId() + .equals(other.getSignalId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getSignalId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.ApproveCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.ApproveCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.ApproveCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.ApproveCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean
+     * signal with the provided signal_id.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ApproveCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ApproveCondition) + flyteidl.core.Workflow.ApproveConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.ApproveCondition.class, flyteidl.core.Workflow.ApproveCondition.Builder.class); + } + + // Construct using flyteidl.core.Workflow.ApproveCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signalId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.ApproveCondition getDefaultInstanceForType() { + return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.ApproveCondition build() { + flyteidl.core.Workflow.ApproveCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.ApproveCondition buildPartial() { + flyteidl.core.Workflow.ApproveCondition result = new flyteidl.core.Workflow.ApproveCondition(this); + result.signalId_ = signalId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.ApproveCondition) { + return mergeFrom((flyteidl.core.Workflow.ApproveCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.ApproveCondition other) { + if (other == flyteidl.core.Workflow.ApproveCondition.getDefaultInstance()) return this; + if (!other.getSignalId().isEmpty()) { + signalId_ = other.signalId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.ApproveCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.ApproveCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object signalId_ = ""; + /** + *
+       * A unique identifier for the requested boolean signal.
+       * 
+ * + * string signal_id = 1; + */ + public java.lang.String getSignalId() { + java.lang.Object ref = signalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A unique identifier for the requested boolean signal.
+       * 
+ * + * string signal_id = 1; + */ + public com.google.protobuf.ByteString + getSignalIdBytes() { + java.lang.Object ref = signalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A unique identifier for the requested boolean signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder setSignalId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + signalId_ = value; + onChanged(); + return this; + } + /** + *
+       * A unique identifier for the requested boolean signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder clearSignalId() { + + signalId_ = getDefaultInstance().getSignalId(); + onChanged(); + return this; + } + /** + *
+       * A unique identifier for the requested boolean signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder setSignalIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + signalId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ApproveCondition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ApproveCondition) + private static final flyteidl.core.Workflow.ApproveCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.ApproveCondition(); + } + + public static flyteidl.core.Workflow.ApproveCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApproveCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApproveCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.ApproveCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignalConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SignalCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * string signal_id = 1; + */ + java.lang.String getSignalId(); + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * string signal_id = 1; + */ + com.google.protobuf.ByteString + getSignalIdBytes(); + + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + boolean hasType(); + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + + /** + *
+     * The variable name for the signal value in this nodes outputs.
+     * 
+ * + * string output_variable_name = 3; + */ + java.lang.String getOutputVariableName(); + /** + *
+     * The variable name for the signal value in this nodes outputs.
+     * 
+ * + * string output_variable_name = 3; + */ + com.google.protobuf.ByteString + getOutputVariableNameBytes(); + } + /** + *
+   * SignalCondition represents a dependency on an signal.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SignalCondition} + */ + public static final class SignalCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SignalCondition) + SignalConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalCondition.newBuilder() to construct. + private SignalCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignalCondition() { + signalId_ = ""; + outputVariableName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SignalCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + signalId_ = s; + break; + } + case 18: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputVariableName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.SignalCondition.class, flyteidl.core.Workflow.SignalCondition.Builder.class); + } + + public static final int SIGNAL_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object signalId_; + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * string signal_id = 1; + */ + public java.lang.String getSignalId() { + java.lang.Object ref = signalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signalId_ = s; + return s; + } + } + /** + *
+     * A unique identifier for the requested signal.
+     * 
+ * + * string signal_id = 1; + */ + public com.google.protobuf.ByteString + getSignalIdBytes() { + java.lang.Object ref = signalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * A type denoting the required value type for this signal.
+     * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int OUTPUT_VARIABLE_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object outputVariableName_; + /** + *
+     * The variable name for the signal value in this nodes outputs.
+     * 
+ * + * string output_variable_name = 3; + */ + public java.lang.String getOutputVariableName() { + java.lang.Object ref = outputVariableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputVariableName_ = s; + return s; + } + } + /** + *
+     * The variable name for the signal value in this nodes outputs.
+     * 
+ * + * string output_variable_name = 3; + */ + public com.google.protobuf.ByteString + getOutputVariableNameBytes() { + java.lang.Object ref = outputVariableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputVariableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSignalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signalId_); + } + if (type_ != null) { + output.writeMessage(2, getType()); + } + if (!getOutputVariableNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputVariableName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSignalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signalId_); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getType()); + } + if (!getOutputVariableNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputVariableName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.SignalCondition)) { + return super.equals(obj); + } + flyteidl.core.Workflow.SignalCondition other = (flyteidl.core.Workflow.SignalCondition) obj; + + if (!getSignalId() + .equals(other.getSignalId())) return false; + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType() + .equals(other.getType())) return false; + } + if (!getOutputVariableName() + .equals(other.getOutputVariableName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getSignalId().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (37 * hash) + OUTPUT_VARIABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOutputVariableName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.SignalCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.SignalCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.SignalCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.SignalCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.SignalCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SignalCondition represents a dependency on an signal.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SignalCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SignalCondition) + flyteidl.core.Workflow.SignalConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.SignalCondition.class, flyteidl.core.Workflow.SignalCondition.Builder.class); + } + + // Construct using flyteidl.core.Workflow.SignalCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signalId_ = ""; + + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + outputVariableName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.SignalCondition getDefaultInstanceForType() { + return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.SignalCondition build() { + flyteidl.core.Workflow.SignalCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.SignalCondition buildPartial() { + flyteidl.core.Workflow.SignalCondition result = new flyteidl.core.Workflow.SignalCondition(this); + result.signalId_ = signalId_; + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + result.outputVariableName_ = outputVariableName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.SignalCondition) { + return mergeFrom((flyteidl.core.Workflow.SignalCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.SignalCondition other) { + if (other == flyteidl.core.Workflow.SignalCondition.getDefaultInstance()) return this; + if (!other.getSignalId().isEmpty()) { + signalId_ = other.signalId_; + onChanged(); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (!other.getOutputVariableName().isEmpty()) { + outputVariableName_ = other.outputVariableName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.SignalCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.SignalCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object signalId_ = ""; + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * string signal_id = 1; + */ + public java.lang.String getSignalId() { + java.lang.Object ref = signalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * string signal_id = 1; + */ + public com.google.protobuf.ByteString + getSignalIdBytes() { + java.lang.Object ref = signalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder setSignalId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + signalId_ = value; + onChanged(); + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder clearSignalId() { + + signalId_ = getDefaultInstance().getSignalId(); + onChanged(); + return this; + } + /** + *
+       * A unique identifier for the requested signal.
+       * 
+ * + * string signal_id = 1; + */ + public Builder setSignalIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + signalId_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Types.LiteralType type_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * A type denoting the required value type for this signal.
+       * 
+ * + * .flyteidl.core.LiteralType type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private java.lang.Object outputVariableName_ = ""; + /** + *
+       * The variable name for the signal value in this nodes outputs.
+       * 
+ * + * string output_variable_name = 3; + */ + public java.lang.String getOutputVariableName() { + java.lang.Object ref = outputVariableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputVariableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The variable name for the signal value in this nodes outputs.
+       * 
+ * + * string output_variable_name = 3; + */ + public com.google.protobuf.ByteString + getOutputVariableNameBytes() { + java.lang.Object ref = outputVariableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputVariableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The variable name for the signal value in this nodes outputs.
+       * 
+ * + * string output_variable_name = 3; + */ + public Builder setOutputVariableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputVariableName_ = value; + onChanged(); + return this; + } + /** + *
+       * The variable name for the signal value in this nodes outputs.
+       * 
+ * + * string output_variable_name = 3; + */ + public Builder clearOutputVariableName() { + + outputVariableName_ = getDefaultInstance().getOutputVariableName(); + onChanged(); + return this; + } + /** + *
+       * The variable name for the signal value in this nodes outputs.
+       * 
+ * + * string output_variable_name = 3; + */ + public Builder setOutputVariableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputVariableName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SignalCondition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SignalCondition) + private static final flyteidl.core.Workflow.SignalCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.SignalCondition(); + } + + public static flyteidl.core.Workflow.SignalCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignalCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.SignalCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SleepConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SleepCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The overall duration for this sleep.
+     * 
+ * + * .google.protobuf.Duration duration = 1; + */ + boolean hasDuration(); + /** + *
+     * The overall duration for this sleep.
+     * 
+ * + * .google.protobuf.Duration duration = 1; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The overall duration for this sleep.
+     * 
+ * + * .google.protobuf.Duration duration = 1; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + } + /** + *
+   * SleepCondition represents a dependency on waiting for the specified duration.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SleepCondition} + */ + public static final class SleepCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SleepCondition) + SleepConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SleepCondition.newBuilder() to construct. + private SleepCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SleepCondition() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SleepCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.SleepCondition.class, flyteidl.core.Workflow.SleepCondition.Builder.class); + } + + public static final int DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration duration_; + /** + *
+     * The overall duration for this sleep.
+     * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The overall duration for this sleep.
+     * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The overall duration for this sleep.
+     * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (duration_ != null) { + output.writeMessage(1, getDuration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDuration()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.SleepCondition)) { + return super.equals(obj); + } + flyteidl.core.Workflow.SleepCondition other = (flyteidl.core.Workflow.SleepCondition) obj; + + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.SleepCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.SleepCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.SleepCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.SleepCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.SleepCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * SleepCondition represents a dependency on waiting for the specified duration.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SleepCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SleepCondition) + flyteidl.core.Workflow.SleepConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.SleepCondition.class, flyteidl.core.Workflow.SleepCondition.Builder.class); + } + + // Construct using flyteidl.core.Workflow.SleepCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.SleepCondition getDefaultInstanceForType() { + return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.SleepCondition build() { + flyteidl.core.Workflow.SleepCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.SleepCondition buildPartial() { + flyteidl.core.Workflow.SleepCondition result = new flyteidl.core.Workflow.SleepCondition(this); + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.SleepCondition) { + return mergeFrom((flyteidl.core.Workflow.SleepCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.SleepCondition other) { + if (other == flyteidl.core.Workflow.SleepCondition.getDefaultInstance()) return this; + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.SleepCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.SleepCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The overall duration for this sleep.
+       * 
+ * + * .google.protobuf.Duration duration = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SleepCondition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SleepCondition) + private static final flyteidl.core.Workflow.SleepCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.SleepCondition(); + } + + public static flyteidl.core.Workflow.SleepCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SleepCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SleepCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.SleepCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GateNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.GateNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+     * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + boolean hasApprove(); + /** + *
+     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+     * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + flyteidl.core.Workflow.ApproveCondition getApprove(); + /** + *
+     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+     * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + flyteidl.core.Workflow.ApproveConditionOrBuilder getApproveOrBuilder(); + + /** + *
+     * SignalCondition represents a dependency on an signal.
+     * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + boolean hasSignal(); + /** + *
+     * SignalCondition represents a dependency on an signal.
+     * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + flyteidl.core.Workflow.SignalCondition getSignal(); + /** + *
+     * SignalCondition represents a dependency on an signal.
+     * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + flyteidl.core.Workflow.SignalConditionOrBuilder getSignalOrBuilder(); + + /** + *
+     * SleepCondition represents a dependency on waiting for the specified duration.
+     * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + boolean hasSleep(); + /** + *
+     * SleepCondition represents a dependency on waiting for the specified duration.
+     * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + flyteidl.core.Workflow.SleepCondition getSleep(); + /** + *
+     * SleepCondition represents a dependency on waiting for the specified duration.
+     * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + flyteidl.core.Workflow.SleepConditionOrBuilder getSleepOrBuilder(); + + public flyteidl.core.Workflow.GateNode.ConditionCase getConditionCase(); + } + /** + *
+   * GateNode refers to the condition that is required for the gate to successfully complete.
+   * 
+ * + * Protobuf type {@code flyteidl.core.GateNode} + */ + public static final class GateNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.GateNode) + GateNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use GateNode.newBuilder() to construct. + private GateNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GateNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GateNode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Workflow.ApproveCondition.Builder subBuilder = null; + if (conditionCase_ == 1) { + subBuilder = ((flyteidl.core.Workflow.ApproveCondition) condition_).toBuilder(); + } + condition_ = + input.readMessage(flyteidl.core.Workflow.ApproveCondition.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.ApproveCondition) condition_); + condition_ = subBuilder.buildPartial(); + } + conditionCase_ = 1; + break; + } + case 18: { + flyteidl.core.Workflow.SignalCondition.Builder subBuilder = null; + if (conditionCase_ == 2) { + subBuilder = ((flyteidl.core.Workflow.SignalCondition) condition_).toBuilder(); + } + condition_ = + input.readMessage(flyteidl.core.Workflow.SignalCondition.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.SignalCondition) condition_); + condition_ = subBuilder.buildPartial(); + } + conditionCase_ = 2; + break; + } + case 26: { + flyteidl.core.Workflow.SleepCondition.Builder subBuilder = null; + if (conditionCase_ == 3) { + subBuilder = ((flyteidl.core.Workflow.SleepCondition) condition_).toBuilder(); + } + condition_ = + input.readMessage(flyteidl.core.Workflow.SleepCondition.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.SleepCondition) condition_); + condition_ = subBuilder.buildPartial(); + } + conditionCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.GateNode.class, flyteidl.core.Workflow.GateNode.Builder.class); + } + + private int conditionCase_ = 0; + private java.lang.Object condition_; + public enum ConditionCase + implements com.google.protobuf.Internal.EnumLite { + APPROVE(1), + SIGNAL(2), + SLEEP(3), + CONDITION_NOT_SET(0); + private final int value; + private ConditionCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConditionCase valueOf(int value) { + return forNumber(value); + } + + public static ConditionCase forNumber(int value) { + switch (value) { + case 1: return APPROVE; + case 2: return SIGNAL; + case 3: return SLEEP; + case 0: return CONDITION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ConditionCase + getConditionCase() { + return ConditionCase.forNumber( + conditionCase_); + } + + public static final int APPROVE_FIELD_NUMBER = 1; + /** + *
+     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+     * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public boolean hasApprove() { + return conditionCase_ == 1; + } + /** + *
+     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+     * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public flyteidl.core.Workflow.ApproveCondition getApprove() { + if (conditionCase_ == 1) { + return (flyteidl.core.Workflow.ApproveCondition) condition_; + } + return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); + } + /** + *
+     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+     * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public flyteidl.core.Workflow.ApproveConditionOrBuilder getApproveOrBuilder() { + if (conditionCase_ == 1) { + return (flyteidl.core.Workflow.ApproveCondition) condition_; + } + return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); + } + + public static final int SIGNAL_FIELD_NUMBER = 2; + /** + *
+     * SignalCondition represents a dependency on an signal.
+     * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public boolean hasSignal() { + return conditionCase_ == 2; + } + /** + *
+     * SignalCondition represents a dependency on an signal.
+     * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public flyteidl.core.Workflow.SignalCondition getSignal() { + if (conditionCase_ == 2) { + return (flyteidl.core.Workflow.SignalCondition) condition_; + } + return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); + } + /** + *
+     * SignalCondition represents a dependency on an signal.
+     * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public flyteidl.core.Workflow.SignalConditionOrBuilder getSignalOrBuilder() { + if (conditionCase_ == 2) { + return (flyteidl.core.Workflow.SignalCondition) condition_; + } + return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); + } + + public static final int SLEEP_FIELD_NUMBER = 3; + /** + *
+     * SleepCondition represents a dependency on waiting for the specified duration.
+     * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public boolean hasSleep() { + return conditionCase_ == 3; + } + /** + *
+     * SleepCondition represents a dependency on waiting for the specified duration.
+     * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public flyteidl.core.Workflow.SleepCondition getSleep() { + if (conditionCase_ == 3) { + return (flyteidl.core.Workflow.SleepCondition) condition_; + } + return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); + } + /** + *
+     * SleepCondition represents a dependency on waiting for the specified duration.
+     * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public flyteidl.core.Workflow.SleepConditionOrBuilder getSleepOrBuilder() { + if (conditionCase_ == 3) { + return (flyteidl.core.Workflow.SleepCondition) condition_; + } + return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (conditionCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Workflow.ApproveCondition) condition_); + } + if (conditionCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Workflow.SignalCondition) condition_); + } + if (conditionCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Workflow.SleepCondition) condition_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conditionCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Workflow.ApproveCondition) condition_); + } + if (conditionCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Workflow.SignalCondition) condition_); + } + if (conditionCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Workflow.SleepCondition) condition_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.GateNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.GateNode other = (flyteidl.core.Workflow.GateNode) obj; + + if (!getConditionCase().equals(other.getConditionCase())) return false; + switch (conditionCase_) { + case 1: + if (!getApprove() + .equals(other.getApprove())) return false; + break; + case 2: + if (!getSignal() + .equals(other.getSignal())) return false; + break; + case 3: + if (!getSleep() + .equals(other.getSleep())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (conditionCase_) { + case 1: + hash = (37 * hash) + APPROVE_FIELD_NUMBER; + hash = (53 * hash) + getApprove().hashCode(); + break; + case 2: + hash = (37 * hash) + SIGNAL_FIELD_NUMBER; + hash = (53 * hash) + getSignal().hashCode(); + break; + case 3: + hash = (37 * hash) + SLEEP_FIELD_NUMBER; + hash = (53 * hash) + getSleep().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.GateNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.GateNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.GateNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.GateNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.GateNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.GateNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.GateNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.GateNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.GateNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.GateNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.GateNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.GateNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.GateNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * GateNode refers to the condition that is required for the gate to successfully complete.
+     * 
+ * + * Protobuf type {@code flyteidl.core.GateNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.GateNode) + flyteidl.core.Workflow.GateNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.GateNode.class, flyteidl.core.Workflow.GateNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.GateNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + conditionCase_ = 0; + condition_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.GateNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.GateNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.GateNode build() { + flyteidl.core.Workflow.GateNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.GateNode buildPartial() { + flyteidl.core.Workflow.GateNode result = new flyteidl.core.Workflow.GateNode(this); + if (conditionCase_ == 1) { + if (approveBuilder_ == null) { + result.condition_ = condition_; + } else { + result.condition_ = approveBuilder_.build(); + } + } + if (conditionCase_ == 2) { + if (signalBuilder_ == null) { + result.condition_ = condition_; + } else { + result.condition_ = signalBuilder_.build(); + } + } + if (conditionCase_ == 3) { + if (sleepBuilder_ == null) { + result.condition_ = condition_; + } else { + result.condition_ = sleepBuilder_.build(); + } + } + result.conditionCase_ = conditionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.GateNode) { + return mergeFrom((flyteidl.core.Workflow.GateNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.GateNode other) { + if (other == flyteidl.core.Workflow.GateNode.getDefaultInstance()) return this; + switch (other.getConditionCase()) { + case APPROVE: { + mergeApprove(other.getApprove()); + break; + } + case SIGNAL: { + mergeSignal(other.getSignal()); + break; + } + case SLEEP: { + mergeSleep(other.getSleep()); + break; + } + case CONDITION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.GateNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.GateNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int conditionCase_ = 0; + private java.lang.Object condition_; + public ConditionCase + getConditionCase() { + return ConditionCase.forNumber( + conditionCase_); + } + + public Builder clearCondition() { + conditionCase_ = 0; + condition_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.ApproveCondition, flyteidl.core.Workflow.ApproveCondition.Builder, flyteidl.core.Workflow.ApproveConditionOrBuilder> approveBuilder_; + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public boolean hasApprove() { + return conditionCase_ == 1; + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public flyteidl.core.Workflow.ApproveCondition getApprove() { + if (approveBuilder_ == null) { + if (conditionCase_ == 1) { + return (flyteidl.core.Workflow.ApproveCondition) condition_; + } + return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); + } else { + if (conditionCase_ == 1) { + return approveBuilder_.getMessage(); + } + return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); + } + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public Builder setApprove(flyteidl.core.Workflow.ApproveCondition value) { + if (approveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + approveBuilder_.setMessage(value); + } + conditionCase_ = 1; + return this; + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public Builder setApprove( + flyteidl.core.Workflow.ApproveCondition.Builder builderForValue) { + if (approveBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + approveBuilder_.setMessage(builderForValue.build()); + } + conditionCase_ = 1; + return this; + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public Builder mergeApprove(flyteidl.core.Workflow.ApproveCondition value) { + if (approveBuilder_ == null) { + if (conditionCase_ == 1 && + condition_ != flyteidl.core.Workflow.ApproveCondition.getDefaultInstance()) { + condition_ = flyteidl.core.Workflow.ApproveCondition.newBuilder((flyteidl.core.Workflow.ApproveCondition) condition_) + .mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + if (conditionCase_ == 1) { + approveBuilder_.mergeFrom(value); + } + approveBuilder_.setMessage(value); + } + conditionCase_ = 1; + return this; + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public Builder clearApprove() { + if (approveBuilder_ == null) { + if (conditionCase_ == 1) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } + } else { + if (conditionCase_ == 1) { + conditionCase_ = 0; + condition_ = null; + } + approveBuilder_.clear(); + } + return this; + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public flyteidl.core.Workflow.ApproveCondition.Builder getApproveBuilder() { + return getApproveFieldBuilder().getBuilder(); + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + public flyteidl.core.Workflow.ApproveConditionOrBuilder getApproveOrBuilder() { + if ((conditionCase_ == 1) && (approveBuilder_ != null)) { + return approveBuilder_.getMessageOrBuilder(); + } else { + if (conditionCase_ == 1) { + return (flyteidl.core.Workflow.ApproveCondition) condition_; + } + return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); + } + } + /** + *
+       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
+       * 
+ * + * .flyteidl.core.ApproveCondition approve = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.ApproveCondition, flyteidl.core.Workflow.ApproveCondition.Builder, flyteidl.core.Workflow.ApproveConditionOrBuilder> + getApproveFieldBuilder() { + if (approveBuilder_ == null) { + if (!(conditionCase_ == 1)) { + condition_ = flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); + } + approveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.ApproveCondition, flyteidl.core.Workflow.ApproveCondition.Builder, flyteidl.core.Workflow.ApproveConditionOrBuilder>( + (flyteidl.core.Workflow.ApproveCondition) condition_, + getParentForChildren(), + isClean()); + condition_ = null; + } + conditionCase_ = 1; + onChanged();; + return approveBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.SignalCondition, flyteidl.core.Workflow.SignalCondition.Builder, flyteidl.core.Workflow.SignalConditionOrBuilder> signalBuilder_; + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public boolean hasSignal() { + return conditionCase_ == 2; + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public flyteidl.core.Workflow.SignalCondition getSignal() { + if (signalBuilder_ == null) { + if (conditionCase_ == 2) { + return (flyteidl.core.Workflow.SignalCondition) condition_; + } + return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); + } else { + if (conditionCase_ == 2) { + return signalBuilder_.getMessage(); + } + return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); + } + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public Builder setSignal(flyteidl.core.Workflow.SignalCondition value) { + if (signalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + signalBuilder_.setMessage(value); + } + conditionCase_ = 2; + return this; + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public Builder setSignal( + flyteidl.core.Workflow.SignalCondition.Builder builderForValue) { + if (signalBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + signalBuilder_.setMessage(builderForValue.build()); + } + conditionCase_ = 2; + return this; + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public Builder mergeSignal(flyteidl.core.Workflow.SignalCondition value) { + if (signalBuilder_ == null) { + if (conditionCase_ == 2 && + condition_ != flyteidl.core.Workflow.SignalCondition.getDefaultInstance()) { + condition_ = flyteidl.core.Workflow.SignalCondition.newBuilder((flyteidl.core.Workflow.SignalCondition) condition_) + .mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + if (conditionCase_ == 2) { + signalBuilder_.mergeFrom(value); + } + signalBuilder_.setMessage(value); + } + conditionCase_ = 2; + return this; + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public Builder clearSignal() { + if (signalBuilder_ == null) { + if (conditionCase_ == 2) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } + } else { + if (conditionCase_ == 2) { + conditionCase_ = 0; + condition_ = null; + } + signalBuilder_.clear(); + } + return this; + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public flyteidl.core.Workflow.SignalCondition.Builder getSignalBuilder() { + return getSignalFieldBuilder().getBuilder(); + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + public flyteidl.core.Workflow.SignalConditionOrBuilder getSignalOrBuilder() { + if ((conditionCase_ == 2) && (signalBuilder_ != null)) { + return signalBuilder_.getMessageOrBuilder(); + } else { + if (conditionCase_ == 2) { + return (flyteidl.core.Workflow.SignalCondition) condition_; + } + return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); + } + } + /** + *
+       * SignalCondition represents a dependency on an signal.
+       * 
+ * + * .flyteidl.core.SignalCondition signal = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.SignalCondition, flyteidl.core.Workflow.SignalCondition.Builder, flyteidl.core.Workflow.SignalConditionOrBuilder> + getSignalFieldBuilder() { + if (signalBuilder_ == null) { + if (!(conditionCase_ == 2)) { + condition_ = flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); + } + signalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.SignalCondition, flyteidl.core.Workflow.SignalCondition.Builder, flyteidl.core.Workflow.SignalConditionOrBuilder>( + (flyteidl.core.Workflow.SignalCondition) condition_, + getParentForChildren(), + isClean()); + condition_ = null; + } + conditionCase_ = 2; + onChanged();; + return signalBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.SleepCondition, flyteidl.core.Workflow.SleepCondition.Builder, flyteidl.core.Workflow.SleepConditionOrBuilder> sleepBuilder_; + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public boolean hasSleep() { + return conditionCase_ == 3; + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public flyteidl.core.Workflow.SleepCondition getSleep() { + if (sleepBuilder_ == null) { + if (conditionCase_ == 3) { + return (flyteidl.core.Workflow.SleepCondition) condition_; + } + return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); + } else { + if (conditionCase_ == 3) { + return sleepBuilder_.getMessage(); + } + return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); + } + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public Builder setSleep(flyteidl.core.Workflow.SleepCondition value) { + if (sleepBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + sleepBuilder_.setMessage(value); + } + conditionCase_ = 3; + return this; + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public Builder setSleep( + flyteidl.core.Workflow.SleepCondition.Builder builderForValue) { + if (sleepBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + sleepBuilder_.setMessage(builderForValue.build()); + } + conditionCase_ = 3; + return this; + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public Builder mergeSleep(flyteidl.core.Workflow.SleepCondition value) { + if (sleepBuilder_ == null) { + if (conditionCase_ == 3 && + condition_ != flyteidl.core.Workflow.SleepCondition.getDefaultInstance()) { + condition_ = flyteidl.core.Workflow.SleepCondition.newBuilder((flyteidl.core.Workflow.SleepCondition) condition_) + .mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + if (conditionCase_ == 3) { + sleepBuilder_.mergeFrom(value); + } + sleepBuilder_.setMessage(value); + } + conditionCase_ = 3; + return this; + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public Builder clearSleep() { + if (sleepBuilder_ == null) { + if (conditionCase_ == 3) { + conditionCase_ = 0; + condition_ = null; + onChanged(); + } + } else { + if (conditionCase_ == 3) { + conditionCase_ = 0; + condition_ = null; + } + sleepBuilder_.clear(); + } + return this; + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public flyteidl.core.Workflow.SleepCondition.Builder getSleepBuilder() { + return getSleepFieldBuilder().getBuilder(); + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + public flyteidl.core.Workflow.SleepConditionOrBuilder getSleepOrBuilder() { + if ((conditionCase_ == 3) && (sleepBuilder_ != null)) { + return sleepBuilder_.getMessageOrBuilder(); + } else { + if (conditionCase_ == 3) { + return (flyteidl.core.Workflow.SleepCondition) condition_; + } + return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); + } + } + /** + *
+       * SleepCondition represents a dependency on waiting for the specified duration.
+       * 
+ * + * .flyteidl.core.SleepCondition sleep = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.SleepCondition, flyteidl.core.Workflow.SleepCondition.Builder, flyteidl.core.Workflow.SleepConditionOrBuilder> + getSleepFieldBuilder() { + if (sleepBuilder_ == null) { + if (!(conditionCase_ == 3)) { + condition_ = flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); + } + sleepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.SleepCondition, flyteidl.core.Workflow.SleepCondition.Builder, flyteidl.core.Workflow.SleepConditionOrBuilder>( + (flyteidl.core.Workflow.SleepCondition) condition_, + getParentForChildren(), + isClean()); + condition_ = null; + } + conditionCase_ = 3; + onChanged();; + return sleepBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.GateNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.GateNode) + private static final flyteidl.core.Workflow.GateNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.GateNode(); + } + + public static flyteidl.core.Workflow.GateNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GateNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GateNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.GateNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArrayNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ArrayNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * node is the sub-node that will be executed for each element in the array.
+     * 
+ * + * .flyteidl.core.Node node = 1; + */ + boolean hasNode(); + /** + *
+     * node is the sub-node that will be executed for each element in the array.
+     * 
+ * + * .flyteidl.core.Node node = 1; + */ + flyteidl.core.Workflow.Node getNode(); + /** + *
+     * node is the sub-node that will be executed for each element in the array.
+     * 
+ * + * .flyteidl.core.Node node = 1; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodeOrBuilder(); + + /** + *
+     * parallelism defines the minimum number of instances to bring up concurrently at any given
+     * point. Note that this is an optimistic restriction and that, due to network partitioning or
+     * other failures, the actual number of currently running instances might be more. This has to
+     * be a positive number if assigned. Default value is size.
+     * 
+ * + * uint32 parallelism = 2; + */ + int getParallelism(); + + /** + *
+     * min_successes is an absolute number of the minimum number of successful completions of
+     * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
+     * and outputs will be computed. This has to be a non-negative number if assigned. Default
+     * value is size (if specified).
+     * 
+ * + * uint32 min_successes = 3; + */ + int getMinSuccesses(); + + /** + *
+     * If the array job size is not known beforehand, the min_success_ratio can instead be used
+     * to determine when an ArrayNode can be marked successful.
+     * 
+ * + * float min_success_ratio = 4; + */ + float getMinSuccessRatio(); + + public flyteidl.core.Workflow.ArrayNode.SuccessCriteriaCase getSuccessCriteriaCase(); + } + /** + *
+   * ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input
+   * values. An ArrayNode can be executed with configurable parallelism (separate from the parent
+   * workflow) and can be configured to succeed when a certain number of sub-nodes succeed.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ArrayNode} + */ + public static final class ArrayNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ArrayNode) + ArrayNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArrayNode.newBuilder() to construct. + private ArrayNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArrayNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArrayNode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (node_ != null) { + subBuilder = node_.toBuilder(); + } + node_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(node_); + node_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + parallelism_ = input.readUInt32(); + break; + } + case 24: { + successCriteriaCase_ = 3; + successCriteria_ = input.readUInt32(); + break; + } + case 37: { + successCriteriaCase_ = 4; + successCriteria_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.ArrayNode.class, flyteidl.core.Workflow.ArrayNode.Builder.class); + } + + private int successCriteriaCase_ = 0; + private java.lang.Object successCriteria_; + public enum SuccessCriteriaCase + implements com.google.protobuf.Internal.EnumLite { + MIN_SUCCESSES(3), + MIN_SUCCESS_RATIO(4), + SUCCESSCRITERIA_NOT_SET(0); + private final int value; + private SuccessCriteriaCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SuccessCriteriaCase valueOf(int value) { + return forNumber(value); + } + + public static SuccessCriteriaCase forNumber(int value) { + switch (value) { + case 3: return MIN_SUCCESSES; + case 4: return MIN_SUCCESS_RATIO; + case 0: return SUCCESSCRITERIA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SuccessCriteriaCase + getSuccessCriteriaCase() { + return SuccessCriteriaCase.forNumber( + successCriteriaCase_); + } + + public static final int NODE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.Node node_; + /** + *
+     * node is the sub-node that will be executed for each element in the array.
+     * 
+ * + * .flyteidl.core.Node node = 1; + */ + public boolean hasNode() { + return node_ != null; + } + /** + *
+     * node is the sub-node that will be executed for each element in the array.
+     * 
+ * + * .flyteidl.core.Node node = 1; + */ + public flyteidl.core.Workflow.Node getNode() { + return node_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : node_; + } + /** + *
+     * node is the sub-node that will be executed for each element in the array.
+     * 
+ * + * .flyteidl.core.Node node = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodeOrBuilder() { + return getNode(); + } + + public static final int PARALLELISM_FIELD_NUMBER = 2; + private int parallelism_; + /** + *
+     * parallelism defines the minimum number of instances to bring up concurrently at any given
+     * point. Note that this is an optimistic restriction and that, due to network partitioning or
+     * other failures, the actual number of currently running instances might be more. This has to
+     * be a positive number if assigned. Default value is size.
+     * 
+ * + * uint32 parallelism = 2; + */ + public int getParallelism() { + return parallelism_; + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; + /** + *
+     * min_successes is an absolute number of the minimum number of successful completions of
+     * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
+     * and outputs will be computed. This has to be a non-negative number if assigned. Default
+     * value is size (if specified).
+     * 
+ * + * uint32 min_successes = 3; + */ + public int getMinSuccesses() { + if (successCriteriaCase_ == 3) { + return (java.lang.Integer) successCriteria_; + } + return 0; + } + + public static final int MIN_SUCCESS_RATIO_FIELD_NUMBER = 4; + /** + *
+     * If the array job size is not known beforehand, the min_success_ratio can instead be used
+     * to determine when an ArrayNode can be marked successful.
+     * 
+ * + * float min_success_ratio = 4; + */ + public float getMinSuccessRatio() { + if (successCriteriaCase_ == 4) { + return (java.lang.Float) successCriteria_; + } + return 0F; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (node_ != null) { + output.writeMessage(1, getNode()); + } + if (parallelism_ != 0) { + output.writeUInt32(2, parallelism_); + } + if (successCriteriaCase_ == 3) { + output.writeUInt32( + 3, (int)((java.lang.Integer) successCriteria_)); + } + if (successCriteriaCase_ == 4) { + output.writeFloat( + 4, (float)((java.lang.Float) successCriteria_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (node_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNode()); + } + if (parallelism_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, parallelism_); + } + if (successCriteriaCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size( + 3, (int)((java.lang.Integer) successCriteria_)); + } + if (successCriteriaCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 4, (float)((java.lang.Float) successCriteria_)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.ArrayNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.ArrayNode other = (flyteidl.core.Workflow.ArrayNode) obj; + + if (hasNode() != other.hasNode()) return false; + if (hasNode()) { + if (!getNode() + .equals(other.getNode())) return false; + } + if (getParallelism() + != other.getParallelism()) return false; + if (!getSuccessCriteriaCase().equals(other.getSuccessCriteriaCase())) return false; + switch (successCriteriaCase_) { + case 3: + if (getMinSuccesses() + != other.getMinSuccesses()) return false; + break; + case 4: + if (java.lang.Float.floatToIntBits(getMinSuccessRatio()) + != java.lang.Float.floatToIntBits( + other.getMinSuccessRatio())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNode()) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNode().hashCode(); + } + hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + getParallelism(); + switch (successCriteriaCase_) { + case 3: + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + getMinSuccesses(); + break; + case 4: + hash = (37 * hash) + MIN_SUCCESS_RATIO_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMinSuccessRatio()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.ArrayNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.ArrayNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.ArrayNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.ArrayNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.ArrayNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input
+     * values. An ArrayNode can be executed with configurable parallelism (separate from the parent
+     * workflow) and can be configured to succeed when a certain number of sub-nodes succeed.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ArrayNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ArrayNode) + flyteidl.core.Workflow.ArrayNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.ArrayNode.class, flyteidl.core.Workflow.ArrayNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.ArrayNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nodeBuilder_ == null) { + node_ = null; + } else { + node_ = null; + nodeBuilder_ = null; + } + parallelism_ = 0; + + successCriteriaCase_ = 0; + successCriteria_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.ArrayNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.ArrayNode build() { + flyteidl.core.Workflow.ArrayNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.ArrayNode buildPartial() { + flyteidl.core.Workflow.ArrayNode result = new flyteidl.core.Workflow.ArrayNode(this); + if (nodeBuilder_ == null) { + result.node_ = node_; + } else { + result.node_ = nodeBuilder_.build(); + } + result.parallelism_ = parallelism_; + if (successCriteriaCase_ == 3) { + result.successCriteria_ = successCriteria_; + } + if (successCriteriaCase_ == 4) { + result.successCriteria_ = successCriteria_; + } + result.successCriteriaCase_ = successCriteriaCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.ArrayNode) { + return mergeFrom((flyteidl.core.Workflow.ArrayNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.ArrayNode other) { + if (other == flyteidl.core.Workflow.ArrayNode.getDefaultInstance()) return this; + if (other.hasNode()) { + mergeNode(other.getNode()); + } + if (other.getParallelism() != 0) { + setParallelism(other.getParallelism()); + } + switch (other.getSuccessCriteriaCase()) { + case MIN_SUCCESSES: { + setMinSuccesses(other.getMinSuccesses()); + break; + } + case MIN_SUCCESS_RATIO: { + setMinSuccessRatio(other.getMinSuccessRatio()); + break; + } + case SUCCESSCRITERIA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.ArrayNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.ArrayNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int successCriteriaCase_ = 0; + private java.lang.Object successCriteria_; + public SuccessCriteriaCase + getSuccessCriteriaCase() { + return SuccessCriteriaCase.forNumber( + successCriteriaCase_); + } + + public Builder clearSuccessCriteria() { + successCriteriaCase_ = 0; + successCriteria_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.Workflow.Node node_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodeBuilder_; + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public boolean hasNode() { + return nodeBuilder_ != null || node_ != null; + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public flyteidl.core.Workflow.Node getNode() { + if (nodeBuilder_ == null) { + return node_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : node_; + } else { + return nodeBuilder_.getMessage(); + } + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public Builder setNode(flyteidl.core.Workflow.Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + node_ = value; + onChanged(); + } else { + nodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public Builder setNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + node_ = builderForValue.build(); + onChanged(); + } else { + nodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public Builder mergeNode(flyteidl.core.Workflow.Node value) { + if (nodeBuilder_ == null) { + if (node_ != null) { + node_ = + flyteidl.core.Workflow.Node.newBuilder(node_).mergeFrom(value).buildPartial(); + } else { + node_ = value; + } + onChanged(); + } else { + nodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public Builder clearNode() { + if (nodeBuilder_ == null) { + node_ = null; + onChanged(); + } else { + node_ = null; + nodeBuilder_ = null; + } + + return this; + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public flyteidl.core.Workflow.Node.Builder getNodeBuilder() { + + onChanged(); + return getNodeFieldBuilder().getBuilder(); + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodeOrBuilder() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilder(); + } else { + return node_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : node_; + } + } + /** + *
+       * node is the sub-node that will be executed for each element in the array.
+       * 
+ * + * .flyteidl.core.Node node = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getNode(), + getParentForChildren(), + isClean()); + node_ = null; + } + return nodeBuilder_; + } + + private int parallelism_ ; + /** + *
+       * parallelism defines the minimum number of instances to bring up concurrently at any given
+       * point. Note that this is an optimistic restriction and that, due to network partitioning or
+       * other failures, the actual number of currently running instances might be more. This has to
+       * be a positive number if assigned. Default value is size.
+       * 
+ * + * uint32 parallelism = 2; + */ + public int getParallelism() { + return parallelism_; + } + /** + *
+       * parallelism defines the minimum number of instances to bring up concurrently at any given
+       * point. Note that this is an optimistic restriction and that, due to network partitioning or
+       * other failures, the actual number of currently running instances might be more. This has to
+       * be a positive number if assigned. Default value is size.
+       * 
+ * + * uint32 parallelism = 2; + */ + public Builder setParallelism(int value) { + + parallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * parallelism defines the minimum number of instances to bring up concurrently at any given
+       * point. Note that this is an optimistic restriction and that, due to network partitioning or
+       * other failures, the actual number of currently running instances might be more. This has to
+       * be a positive number if assigned. Default value is size.
+       * 
+ * + * uint32 parallelism = 2; + */ + public Builder clearParallelism() { + + parallelism_ = 0; + onChanged(); + return this; + } + + /** + *
+       * min_successes is an absolute number of the minimum number of successful completions of
+       * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
+       * and outputs will be computed. This has to be a non-negative number if assigned. Default
+       * value is size (if specified).
+       * 
+ * + * uint32 min_successes = 3; + */ + public int getMinSuccesses() { + if (successCriteriaCase_ == 3) { + return (java.lang.Integer) successCriteria_; + } + return 0; + } + /** + *
+       * min_successes is an absolute number of the minimum number of successful completions of
+       * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
+       * and outputs will be computed. This has to be a non-negative number if assigned. Default
+       * value is size (if specified).
+       * 
+ * + * uint32 min_successes = 3; + */ + public Builder setMinSuccesses(int value) { + successCriteriaCase_ = 3; + successCriteria_ = value; + onChanged(); + return this; + } + /** + *
+       * min_successes is an absolute number of the minimum number of successful completions of
+       * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
+       * and outputs will be computed. This has to be a non-negative number if assigned. Default
+       * value is size (if specified).
+       * 
+ * + * uint32 min_successes = 3; + */ + public Builder clearMinSuccesses() { + if (successCriteriaCase_ == 3) { + successCriteriaCase_ = 0; + successCriteria_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * If the array job size is not known beforehand, the min_success_ratio can instead be used
+       * to determine when an ArrayNode can be marked successful.
+       * 
+ * + * float min_success_ratio = 4; + */ + public float getMinSuccessRatio() { + if (successCriteriaCase_ == 4) { + return (java.lang.Float) successCriteria_; + } + return 0F; + } + /** + *
+       * If the array job size is not known beforehand, the min_success_ratio can instead be used
+       * to determine when an ArrayNode can be marked successful.
+       * 
+ * + * float min_success_ratio = 4; + */ + public Builder setMinSuccessRatio(float value) { + successCriteriaCase_ = 4; + successCriteria_ = value; + onChanged(); + return this; + } + /** + *
+       * If the array job size is not known beforehand, the min_success_ratio can instead be used
+       * to determine when an ArrayNode can be marked successful.
+       * 
+ * + * float min_success_ratio = 4; + */ + public Builder clearMinSuccessRatio() { + if (successCriteriaCase_ == 4) { + successCriteriaCase_ = 0; + successCriteria_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ArrayNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ArrayNode) + private static final flyteidl.core.Workflow.ArrayNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.ArrayNode(); + } + + public static flyteidl.core.Workflow.ArrayNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrayNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.ArrayNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + + /** + * bool interruptible = 6; + */ + boolean getInterruptible(); + + public flyteidl.core.Workflow.NodeMetadata.InterruptibleValueCase getInterruptibleValueCase(); + } + /** + *
+   * Defines extra information about the Node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class NodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeMetadata) + NodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeMetadata.newBuilder() to construct. + private NodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeMetadata() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + interruptibleValueCase_ = 6; + interruptibleValue_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public enum InterruptibleValueCase + implements com.google.protobuf.Internal.EnumLite { + INTERRUPTIBLE(6), + INTERRUPTIBLEVALUE_NOT_SET(0); + private final int value; + private InterruptibleValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InterruptibleValueCase valueOf(int value) { + return forNumber(value); + } + + public static InterruptibleValueCase forNumber(int value) { + switch (value) { + case 6: return INTERRUPTIBLE; + case 0: return INTERRUPTIBLEVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; + /** + * bool interruptible = 6; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 6) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + if (interruptibleValueCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + if (interruptibleValueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) interruptibleValue_)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.NodeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.NodeMetadata other = (flyteidl.core.Workflow.NodeMetadata) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (hasRetries() != other.hasRetries()) return false; + if (hasRetries()) { + if (!getRetries() + .equals(other.getRetries())) return false; + } + if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; + switch (interruptibleValueCase_) { + case 6: + if (getInterruptible() + != other.getInterruptible()) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + switch (interruptibleValueCase_) { + case 6: + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.NodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines extra information about the Node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeMetadata) + flyteidl.core.Workflow.NodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.NodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.NodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata build() { + flyteidl.core.Workflow.NodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata buildPartial() { + flyteidl.core.Workflow.NodeMetadata result = new flyteidl.core.Workflow.NodeMetadata(this); + result.name_ = name_; + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + if (interruptibleValueCase_ == 6) { + result.interruptibleValue_ = interruptibleValue_; + } + result.interruptibleValueCase_ = interruptibleValueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.NodeMetadata) { + return mergeFrom((flyteidl.core.Workflow.NodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.NodeMetadata other) { + if (other == flyteidl.core.Workflow.NodeMetadata.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + switch (other.getInterruptibleValueCase()) { + case INTERRUPTIBLE: { + setInterruptible(other.getInterruptible()); + break; + } + case INTERRUPTIBLEVALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.NodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.NodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int interruptibleValueCase_ = 0; + private java.lang.Object interruptibleValue_; + public InterruptibleValueCase + getInterruptibleValueCase() { + return InterruptibleValueCase.forNumber( + interruptibleValueCase_); + } + + public Builder clearInterruptibleValue() { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + return this; + } + + + private java.lang.Object name_ = ""; + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + + /** + * bool interruptible = 6; + */ + public boolean getInterruptible() { + if (interruptibleValueCase_ == 6) { + return (java.lang.Boolean) interruptibleValue_; + } + return false; + } + /** + * bool interruptible = 6; + */ + public Builder setInterruptible(boolean value) { + interruptibleValueCase_ = 6; + interruptibleValue_ = value; + onChanged(); + return this; + } + /** + * bool interruptible = 6; + */ + public Builder clearInterruptible() { + if (interruptibleValueCase_ == 6) { + interruptibleValueCase_ = 0; + interruptibleValue_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.NodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) + private static final flyteidl.core.Workflow.NodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.NodeMetadata(); + } + + public static flyteidl.core.Workflow.NodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AliasOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Alias) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + java.lang.String getAlias(); + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + com.google.protobuf.ByteString + getAliasBytes(); + } + /** + *
+   * Links a variable to an alias.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Alias extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Alias) + AliasOrBuilder { + private static final long serialVersionUID = 0L; + // Use Alias.newBuilder() to construct. + private Alias(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Alias() { + var_ = ""; + alias_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Alias( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } + } + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 2; + private volatile java.lang.Object alias_; + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.Alias)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Alias other = (flyteidl.core.Workflow.Alias) obj; + + if (!getVar() + .equals(other.getVar())) return false; + if (!getAlias() + .equals(other.getAlias())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.Alias prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Links a variable to an alias.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Alias) + flyteidl.core.Workflow.AliasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Alias.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + var_ = ""; + + alias_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return flyteidl.core.Workflow.Alias.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias build() { + flyteidl.core.Workflow.Alias result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias buildPartial() { + flyteidl.core.Workflow.Alias result = new flyteidl.core.Workflow.Alias(this); + result.var_ = var_; + result.alias_ = alias_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.Alias) { + return mergeFrom((flyteidl.core.Workflow.Alias)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Alias other) { + if (other == flyteidl.core.Workflow.Alias.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.Alias parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Alias) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Alias) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) + private static final flyteidl.core.Workflow.Alias DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Alias(); + } + + public static flyteidl.core.Workflow.Alias getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Alias parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Alias(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Node) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + java.lang.String getId(); + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadata getMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.Binding getInputs(int index); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + int getInputsCount(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsOrBuilderList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index); + + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.util.List + getUpstreamNodeIdsList(); + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + int getUpstreamNodeIdsCount(); + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.lang.String getUpstreamNodeIds(int index); + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index); + + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.Alias getOutputAliases(int index); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + int getOutputAliasesCount(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesOrBuilderList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index); + + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + boolean hasTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNode getTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder(); + + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + boolean hasWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNode getWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder(); + + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + boolean hasBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNode getBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder(); + + /** + *
+     * Information about the condition to evaluate in this node.
+     * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + boolean hasGateNode(); + /** + *
+     * Information about the condition to evaluate in this node.
+     * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + flyteidl.core.Workflow.GateNode getGateNode(); + /** + *
+     * Information about the condition to evaluate in this node.
+     * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + flyteidl.core.Workflow.GateNodeOrBuilder getGateNodeOrBuilder(); + + /** + *
+     * Information about the sub-node executions for each value in the list of this nodes
+     * inputs values.
+     * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + boolean hasArrayNode(); + /** + *
+     * Information about the sub-node executions for each value in the list of this nodes
+     * inputs values.
+     * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + flyteidl.core.Workflow.ArrayNode getArrayNode(); + /** + *
+     * Information about the sub-node executions for each value in the list of this nodes
+     * inputs values.
+     * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + flyteidl.core.Workflow.ArrayNodeOrBuilder getArrayNodeOrBuilder(); + + public flyteidl.core.Workflow.Node.TargetCase getTargetCase(); + } + /** + *
+   * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+   * node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Node() { + id_ = ""; + inputs_ = java.util.Collections.emptyList(); + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputAliases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Node( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + flyteidl.core.Workflow.NodeMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.NodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + inputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + upstreamNodeIds_.add(s); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + outputAliases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputAliases_.add( + input.readMessage(flyteidl.core.Workflow.Alias.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.TaskNode.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Workflow.TaskNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.TaskNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.TaskNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 58: { + flyteidl.core.Workflow.WorkflowNode.Builder subBuilder = null; + if (targetCase_ == 7) { + subBuilder = ((flyteidl.core.Workflow.WorkflowNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.WorkflowNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.WorkflowNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 7; + break; + } + case 66: { + flyteidl.core.Workflow.BranchNode.Builder subBuilder = null; + if (targetCase_ == 8) { + subBuilder = ((flyteidl.core.Workflow.BranchNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.BranchNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.BranchNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 8; + break; + } + case 74: { + flyteidl.core.Workflow.GateNode.Builder subBuilder = null; + if (targetCase_ == 9) { + subBuilder = ((flyteidl.core.Workflow.GateNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.GateNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.GateNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 9; + break; + } + case 82: { + flyteidl.core.Workflow.ArrayNode.Builder subBuilder = null; + if (targetCase_ == 10) { + subBuilder = ((flyteidl.core.Workflow.ArrayNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.ArrayNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.ArrayNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 10; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + private int bitField0_; + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TASK_NODE(6), + WORKFLOW_NODE(7), + BRANCH_NODE(8), + GATE_NODE(9), + ARRAY_NODE(10), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return TASK_NODE; + case 7: return WORKFLOW_NODE; + case 8: return BRANCH_NODE; + case 9: return GATE_NODE; + case 10: return ARRAY_NODE; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.NodeMetadata metadata_; + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INPUTS_FIELD_NUMBER = 3; + private java.util.List inputs_; + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + return inputs_.get(index); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fulfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + public static final int UPSTREAM_NODE_IDS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList upstreamNodeIds_; + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_; + } + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + + public static final int OUTPUT_ALIASES_FIELD_NUMBER = 5; + private java.util.List outputAliases_; + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + return outputAliases_.size(); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + return outputAliases_.get(index); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + return outputAliases_.get(index); + } + + public static final int TASK_NODE_FIELD_NUMBER = 6; + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_FIELD_NUMBER = 7; + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + public static final int BRANCH_NODE_FIELD_NUMBER = 8; + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + public static final int GATE_NODE_FIELD_NUMBER = 9; + /** + *
+     * Information about the condition to evaluate in this node.
+     * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public boolean hasGateNode() { + return targetCase_ == 9; + } + /** + *
+     * Information about the condition to evaluate in this node.
+     * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public flyteidl.core.Workflow.GateNode getGateNode() { + if (targetCase_ == 9) { + return (flyteidl.core.Workflow.GateNode) target_; + } + return flyteidl.core.Workflow.GateNode.getDefaultInstance(); + } + /** + *
+     * Information about the condition to evaluate in this node.
+     * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public flyteidl.core.Workflow.GateNodeOrBuilder getGateNodeOrBuilder() { + if (targetCase_ == 9) { + return (flyteidl.core.Workflow.GateNode) target_; + } + return flyteidl.core.Workflow.GateNode.getDefaultInstance(); + } + + public static final int ARRAY_NODE_FIELD_NUMBER = 10; + /** + *
+     * Information about the sub-node executions for each value in the list of this nodes
+     * inputs values.
+     * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public boolean hasArrayNode() { + return targetCase_ == 10; + } + /** + *
+     * Information about the sub-node executions for each value in the list of this nodes
+     * inputs values.
+     * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public flyteidl.core.Workflow.ArrayNode getArrayNode() { + if (targetCase_ == 10) { + return (flyteidl.core.Workflow.ArrayNode) target_; + } + return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); + } + /** + *
+     * Information about the sub-node executions for each value in the list of this nodes
+     * inputs values.
+     * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public flyteidl.core.Workflow.ArrayNodeOrBuilder getArrayNodeOrBuilder() { + if (targetCase_ == 10) { + return (flyteidl.core.Workflow.ArrayNode) target_; + } + return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(3, inputs_.get(i)); + } + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamNodeIds_.getRaw(i)); + } + for (int i = 0; i < outputAliases_.size(); i++) { + output.writeMessage(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + output.writeMessage(8, (flyteidl.core.Workflow.BranchNode) target_); + } + if (targetCase_ == 9) { + output.writeMessage(9, (flyteidl.core.Workflow.GateNode) target_); + } + if (targetCase_ == 10) { + output.writeMessage(10, (flyteidl.core.Workflow.ArrayNode) target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, inputs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + dataSize += computeStringSizeNoTag(upstreamNodeIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getUpstreamNodeIdsList().size(); + } + for (int i = 0; i < outputAliases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.core.Workflow.BranchNode) target_); + } + if (targetCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (flyteidl.core.Workflow.GateNode) target_); + } + if (targetCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (flyteidl.core.Workflow.ArrayNode) target_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.Node)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Node other = (flyteidl.core.Workflow.Node) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getInputsList() + .equals(other.getInputsList())) return false; + if (!getUpstreamNodeIdsList() + .equals(other.getUpstreamNodeIdsList())) return false; + if (!getOutputAliasesList() + .equals(other.getOutputAliasesList())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 6: + if (!getTaskNode() + .equals(other.getTaskNode())) return false; + break; + case 7: + if (!getWorkflowNode() + .equals(other.getWorkflowNode())) return false; + break; + case 8: + if (!getBranchNode() + .equals(other.getBranchNode())) return false; + break; + case 9: + if (!getGateNode() + .equals(other.getGateNode())) return false; + break; + case 10: + if (!getArrayNode() + .equals(other.getArrayNode())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getUpstreamNodeIdsCount() > 0) { + hash = (37 * hash) + UPSTREAM_NODE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getUpstreamNodeIdsList().hashCode(); + } + if (getOutputAliasesCount() > 0) { + hash = (37 * hash) + OUTPUT_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getOutputAliasesList().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + TASK_NODE_FIELD_NUMBER; + hash = (53 * hash) + getTaskNode().hashCode(); + break; + case 7: + hash = (37 * hash) + WORKFLOW_NODE_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNode().hashCode(); + break; + case 8: + hash = (37 * hash) + BRANCH_NODE_FIELD_NUMBER; + hash = (53 * hash) + getBranchNode().hashCode(); + break; + case 9: + hash = (37 * hash) + GATE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getGateNode().hashCode(); + break; + case 10: + hash = (37 * hash) + ARRAY_NODE_FIELD_NUMBER; + hash = (53 * hash) + getArrayNode().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.Node prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+     * node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Node) + flyteidl.core.Workflow.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Node.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputsFieldBuilder(); + getOutputAliasesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + inputsBuilder_.clear(); + } + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputAliasesBuilder_.clear(); + } + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.Node build() { + flyteidl.core.Workflow.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.Node buildPartial() { + flyteidl.core.Workflow.Node result = new flyteidl.core.Workflow.Node(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (((bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.upstreamNodeIds_ = upstreamNodeIds_; + if (outputAliasesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputAliases_ = outputAliases_; + } else { + result.outputAliases_ = outputAliasesBuilder_.build(); + } + if (targetCase_ == 6) { + if (taskNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = taskNodeBuilder_.build(); + } + } + if (targetCase_ == 7) { + if (workflowNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = workflowNodeBuilder_.build(); + } + } + if (targetCase_ == 8) { + if (branchNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = branchNodeBuilder_.build(); + } + } + if (targetCase_ == 9) { + if (gateNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = gateNodeBuilder_.build(); + } + } + if (targetCase_ == 10) { + if (arrayNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = arrayNodeBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.Node) { + return mergeFrom((flyteidl.core.Workflow.Node)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Node other) { + if (other == flyteidl.core.Workflow.Node.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (!other.upstreamNodeIds_.isEmpty()) { + if (upstreamNodeIds_.isEmpty()) { + upstreamNodeIds_ = other.upstreamNodeIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.addAll(other.upstreamNodeIds_); + } + onChanged(); + } + if (outputAliasesBuilder_ == null) { + if (!other.outputAliases_.isEmpty()) { + if (outputAliases_.isEmpty()) { + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputAliasesIsMutable(); + outputAliases_.addAll(other.outputAliases_); + } + onChanged(); + } + } else { + if (!other.outputAliases_.isEmpty()) { + if (outputAliasesBuilder_.isEmpty()) { + outputAliasesBuilder_.dispose(); + outputAliasesBuilder_ = null; + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + outputAliasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputAliasesFieldBuilder() : null; + } else { + outputAliasesBuilder_.addAllMessages(other.outputAliases_); + } + } + } + switch (other.getTargetCase()) { + case TASK_NODE: { + mergeTaskNode(other.getTaskNode()); + break; + } + case WORKFLOW_NODE: { + mergeWorkflowNode(other.getWorkflowNode()); + break; + } + case BRANCH_NODE: { + mergeBranchNode(other.getBranchNode()); + break; + } + case GATE_NODE: { + mergeGateNode(other.getGateNode()); + break; + } + case ARRAY_NODE: { + mergeArrayNode(other.getArrayNode()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.Node parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Node) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Workflow.NodeMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.NodeMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.NodeMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> inputsBuilder_; + + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs(flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fulfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + inputs_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private com.google.protobuf.LazyStringList upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUpstreamNodeIdsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(upstreamNodeIds_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_.getUnmodifiableView(); + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder setUpstreamNodeIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addAllUpstreamNodeIds( + java.lang.Iterable values) { + ensureUpstreamNodeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, upstreamNodeIds_); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder clearUpstreamNodeIds() { + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + + private java.util.List outputAliases_ = + java.util.Collections.emptyList(); + private void ensureOutputAliasesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputAliases_ = new java.util.ArrayList(outputAliases_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> outputAliasesBuilder_; + + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + if (outputAliasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputAliases_); + } else { + return outputAliasesBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + if (outputAliasesBuilder_ == null) { + return outputAliases_.size(); + } else { + return outputAliasesBuilder_.getCount(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); + } else { + return outputAliasesBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, value); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases(flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addAllOutputAliases( + java.lang.Iterable values) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputAliases_); + onChanged(); + } else { + outputAliasesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder clearOutputAliases() { + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputAliasesBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder removeOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.remove(index); + onChanged(); + } else { + outputAliasesBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder getOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); } else { + return outputAliasesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + if (outputAliasesBuilder_ != null) { + return outputAliasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputAliases_); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder() { + return getOutputAliasesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesBuilderList() { + return getOutputAliasesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> + getOutputAliasesFieldBuilder() { + if (outputAliasesBuilder_ == null) { + outputAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder>( + outputAliases_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputAliases_ = null; + } + return outputAliasesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> taskNodeBuilder_; + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return taskNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode( + flyteidl.core.Workflow.TaskNode.Builder builderForValue) { + if (taskNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + taskNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder mergeTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Workflow.TaskNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.TaskNode.newBuilder((flyteidl.core.Workflow.TaskNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + taskNodeBuilder_.mergeFrom(value); + } + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder clearTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + taskNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode.Builder getTaskNodeBuilder() { + return getTaskNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if ((targetCase_ == 6) && (taskNodeBuilder_ != null)) { + return taskNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> + getTaskNodeFieldBuilder() { + if (taskNodeBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + taskNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder>( + (flyteidl.core.Workflow.TaskNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return taskNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> workflowNodeBuilder_; + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } else { + if (targetCase_ == 7) { + return workflowNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode( + flyteidl.core.Workflow.WorkflowNode.Builder builderForValue) { + if (workflowNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder mergeWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7 && + target_ != flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.WorkflowNode.newBuilder((flyteidl.core.Workflow.WorkflowNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 7) { + workflowNodeBuilder_.mergeFrom(value); + } + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder clearWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + } + workflowNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode.Builder getWorkflowNodeBuilder() { + return getWorkflowNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if ((targetCase_ == 7) && (workflowNodeBuilder_ != null)) { + return workflowNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> + getWorkflowNodeFieldBuilder() { + if (workflowNodeBuilder_ == null) { + if (!(targetCase_ == 7)) { + target_ = flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + workflowNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder>( + (flyteidl.core.Workflow.WorkflowNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 7; + onChanged();; + return workflowNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> branchNodeBuilder_; + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } else { + if (targetCase_ == 8) { + return branchNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode( + flyteidl.core.Workflow.BranchNode.Builder builderForValue) { + if (branchNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + branchNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder mergeBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8 && + target_ != flyteidl.core.Workflow.BranchNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.BranchNode.newBuilder((flyteidl.core.Workflow.BranchNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 8) { + branchNodeBuilder_.mergeFrom(value); + } + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder clearBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + } + branchNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode.Builder getBranchNodeBuilder() { + return getBranchNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if ((targetCase_ == 8) && (branchNodeBuilder_ != null)) { + return branchNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> + getBranchNodeFieldBuilder() { + if (branchNodeBuilder_ == null) { + if (!(targetCase_ == 8)) { + target_ = flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + branchNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder>( + (flyteidl.core.Workflow.BranchNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 8; + onChanged();; + return branchNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.GateNode, flyteidl.core.Workflow.GateNode.Builder, flyteidl.core.Workflow.GateNodeOrBuilder> gateNodeBuilder_; + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public boolean hasGateNode() { + return targetCase_ == 9; + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public flyteidl.core.Workflow.GateNode getGateNode() { + if (gateNodeBuilder_ == null) { + if (targetCase_ == 9) { + return (flyteidl.core.Workflow.GateNode) target_; + } + return flyteidl.core.Workflow.GateNode.getDefaultInstance(); + } else { + if (targetCase_ == 9) { + return gateNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.GateNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public Builder setGateNode(flyteidl.core.Workflow.GateNode value) { + if (gateNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + gateNodeBuilder_.setMessage(value); + } + targetCase_ = 9; + return this; + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public Builder setGateNode( + flyteidl.core.Workflow.GateNode.Builder builderForValue) { + if (gateNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + gateNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 9; + return this; + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public Builder mergeGateNode(flyteidl.core.Workflow.GateNode value) { + if (gateNodeBuilder_ == null) { + if (targetCase_ == 9 && + target_ != flyteidl.core.Workflow.GateNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.GateNode.newBuilder((flyteidl.core.Workflow.GateNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 9) { + gateNodeBuilder_.mergeFrom(value); + } + gateNodeBuilder_.setMessage(value); + } + targetCase_ = 9; + return this; + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public Builder clearGateNode() { + if (gateNodeBuilder_ == null) { + if (targetCase_ == 9) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 9) { + targetCase_ = 0; + target_ = null; + } + gateNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public flyteidl.core.Workflow.GateNode.Builder getGateNodeBuilder() { + return getGateNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + public flyteidl.core.Workflow.GateNodeOrBuilder getGateNodeOrBuilder() { + if ((targetCase_ == 9) && (gateNodeBuilder_ != null)) { + return gateNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 9) { + return (flyteidl.core.Workflow.GateNode) target_; + } + return flyteidl.core.Workflow.GateNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the condition to evaluate in this node.
+       * 
+ * + * .flyteidl.core.GateNode gate_node = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.GateNode, flyteidl.core.Workflow.GateNode.Builder, flyteidl.core.Workflow.GateNodeOrBuilder> + getGateNodeFieldBuilder() { + if (gateNodeBuilder_ == null) { + if (!(targetCase_ == 9)) { + target_ = flyteidl.core.Workflow.GateNode.getDefaultInstance(); + } + gateNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.GateNode, flyteidl.core.Workflow.GateNode.Builder, flyteidl.core.Workflow.GateNodeOrBuilder>( + (flyteidl.core.Workflow.GateNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 9; + onChanged();; + return gateNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.ArrayNode, flyteidl.core.Workflow.ArrayNode.Builder, flyteidl.core.Workflow.ArrayNodeOrBuilder> arrayNodeBuilder_; + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public boolean hasArrayNode() { + return targetCase_ == 10; + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public flyteidl.core.Workflow.ArrayNode getArrayNode() { + if (arrayNodeBuilder_ == null) { + if (targetCase_ == 10) { + return (flyteidl.core.Workflow.ArrayNode) target_; + } + return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); + } else { + if (targetCase_ == 10) { + return arrayNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public Builder setArrayNode(flyteidl.core.Workflow.ArrayNode value) { + if (arrayNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + arrayNodeBuilder_.setMessage(value); + } + targetCase_ = 10; + return this; + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public Builder setArrayNode( + flyteidl.core.Workflow.ArrayNode.Builder builderForValue) { + if (arrayNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + arrayNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 10; + return this; + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public Builder mergeArrayNode(flyteidl.core.Workflow.ArrayNode value) { + if (arrayNodeBuilder_ == null) { + if (targetCase_ == 10 && + target_ != flyteidl.core.Workflow.ArrayNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.ArrayNode.newBuilder((flyteidl.core.Workflow.ArrayNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 10) { + arrayNodeBuilder_.mergeFrom(value); + } + arrayNodeBuilder_.setMessage(value); + } + targetCase_ = 10; + return this; + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public Builder clearArrayNode() { + if (arrayNodeBuilder_ == null) { + if (targetCase_ == 10) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 10) { + targetCase_ = 0; + target_ = null; + } + arrayNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public flyteidl.core.Workflow.ArrayNode.Builder getArrayNodeBuilder() { + return getArrayNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + public flyteidl.core.Workflow.ArrayNodeOrBuilder getArrayNodeOrBuilder() { + if ((targetCase_ == 10) && (arrayNodeBuilder_ != null)) { + return arrayNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 10) { + return (flyteidl.core.Workflow.ArrayNode) target_; + } + return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the sub-node executions for each value in the list of this nodes
+       * inputs values.
+       * 
+ * + * .flyteidl.core.ArrayNode array_node = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.ArrayNode, flyteidl.core.Workflow.ArrayNode.Builder, flyteidl.core.Workflow.ArrayNodeOrBuilder> + getArrayNodeFieldBuilder() { + if (arrayNodeBuilder_ == null) { + if (!(targetCase_ == 10)) { + target_ = flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); + } + arrayNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.ArrayNode, flyteidl.core.Workflow.ArrayNode.Builder, flyteidl.core.Workflow.ArrayNodeOrBuilder>( + (flyteidl.core.Workflow.ArrayNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 10; + onChanged();; + return arrayNodeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Node) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Node) + private static final flyteidl.core.Workflow.Node DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Node(); + } + + public static flyteidl.core.Workflow.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + boolean hasQualityOfService(); + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + flyteidl.core.Execution.QualityOfService getQualityOfService(); + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); + + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + int getOnFailureValue(); + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure(); + + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + int getTagsCount(); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + boolean containsTags( + java.lang.String key); + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTags(); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + java.util.Map + getTagsMap(); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + + java.lang.String getTagsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + + java.lang.String getTagsOrThrow( + java.lang.String key); + } + /** + *
+   * This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not
+   * percolate down to child entities (like tasks) launched by the workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class WorkflowMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadata) + WorkflowMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowMetadata.newBuilder() to construct. + private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowMetadata() { + onFailure_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; + if (qualityOfService_ != null) { + subBuilder = qualityOfService_.toBuilder(); + } + qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualityOfService_); + qualityOfService_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + onFailure_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tags_ = com.google.protobuf.MapField.newMapField( + TagsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + tags__ = input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + tags_.getMutableMap().put( + tags__.getKey(), tags__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + /** + *
+     * Failure Handling Strategy
+     * 
+ * + * Protobuf enum {@code flyteidl.core.WorkflowMetadata.OnFailurePolicy} + */ + public enum OnFailurePolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
+       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
+       * failed.
+       * 
+ * + * FAIL_IMMEDIATELY = 0; + */ + FAIL_IMMEDIATELY(0), + /** + *
+       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
+       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
+       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
+       * execution as failed.
+       * 
+ * + * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + */ + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
+       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
+       * failed.
+       * 
+ * + * FAIL_IMMEDIATELY = 0; + */ + public static final int FAIL_IMMEDIATELY_VALUE = 0; + /** + *
+       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
+       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
+       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
+       * execution as failed.
+       * 
+ * + * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + */ + public static final int FAIL_AFTER_EXECUTABLE_NODES_COMPLETE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OnFailurePolicy valueOf(int value) { + return forNumber(value); + } + + public static OnFailurePolicy forNumber(int value) { + switch (value) { + case 0: return FAIL_IMMEDIATELY; + case 1: return FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OnFailurePolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OnFailurePolicy findValueByNumber(int number) { + return OnFailurePolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Workflow.WorkflowMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final OnFailurePolicy[] VALUES = values(); + + public static OnFailurePolicy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OnFailurePolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowMetadata.OnFailurePolicy) + } + + private int bitField0_; + public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 1; + private flyteidl.core.Execution.QualityOfService qualityOfService_; + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public boolean hasQualityOfService() { + return qualityOfService_ != null; + } + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + /** + *
+     * Indicates the runtime priority of workflow executions. 
+     * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + return getQualityOfService(); + } + + public static final int ON_FAILURE_FIELD_NUMBER = 2; + private int onFailure_; + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public int getOnFailureValue() { + return onFailure_; + } + /** + *
+     * Defines how the system should behave when a failure is detected in the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { + @SuppressWarnings("deprecation") + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); + return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; + } + + public static final int TAGS_FIELD_NUMBER = 3; + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + + public java.lang.String getTagsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+     * 
+ * + * map<string, string> tags = 3; + */ + + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (qualityOfService_ != null) { + output.writeMessage(1, getQualityOfService()); + } + if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { + output.writeEnum(2, onFailure_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTags(), + TagsDefaultEntryHolder.defaultEntry, + 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (qualityOfService_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getQualityOfService()); + } + if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, onFailure_); + } + for (java.util.Map.Entry entry + : internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry + tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tags__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.WorkflowMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowMetadata other = (flyteidl.core.Workflow.WorkflowMetadata) obj; + + if (hasQualityOfService() != other.hasQualityOfService()) return false; + if (hasQualityOfService()) { + if (!getQualityOfService() + .equals(other.getQualityOfService())) return false; + } + if (onFailure_ != other.onFailure_) return false; + if (!internalGetTags().equals( + other.internalGetTags())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQualityOfService()) { + hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getQualityOfService().hashCode(); + } + hash = (37 * hash) + ON_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + onFailure_; + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.WorkflowMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not
+     * percolate down to child entities (like tasks) launched by the workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadata) + flyteidl.core.Workflow.WorkflowMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + onFailure_ = 0; + + internalGetMutableTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata build() { + flyteidl.core.Workflow.WorkflowMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata buildPartial() { + flyteidl.core.Workflow.WorkflowMetadata result = new flyteidl.core.Workflow.WorkflowMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (qualityOfServiceBuilder_ == null) { + result.qualityOfService_ = qualityOfService_; + } else { + result.qualityOfService_ = qualityOfServiceBuilder_.build(); + } + result.onFailure_ = onFailure_; + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.WorkflowMetadata) { + return mergeFrom((flyteidl.core.Workflow.WorkflowMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadata other) { + if (other == flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance()) return this; + if (other.hasQualityOfService()) { + mergeQualityOfService(other.getQualityOfService()); + } + if (other.onFailure_ != 0) { + setOnFailureValue(other.getOnFailureValue()); + } + internalGetMutableTags().mergeFrom( + other.internalGetTags()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.WorkflowMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Execution.QualityOfService qualityOfService_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public boolean hasQualityOfService() { + return qualityOfServiceBuilder_ != null || qualityOfService_ != null; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService getQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } else { + return qualityOfServiceBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualityOfService_ = value; + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder setQualityOfService( + flyteidl.core.Execution.QualityOfService.Builder builderForValue) { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = builderForValue.build(); + onChanged(); + } else { + qualityOfServiceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { + if (qualityOfServiceBuilder_ == null) { + if (qualityOfService_ != null) { + qualityOfService_ = + flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); + } else { + qualityOfService_ = value; + } + onChanged(); + } else { + qualityOfServiceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public Builder clearQualityOfService() { + if (qualityOfServiceBuilder_ == null) { + qualityOfService_ = null; + onChanged(); + } else { + qualityOfService_ = null; + qualityOfServiceBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { + + onChanged(); + return getQualityOfServiceFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { + if (qualityOfServiceBuilder_ != null) { + return qualityOfServiceBuilder_.getMessageOrBuilder(); + } else { + return qualityOfService_ == null ? + flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; + } + } + /** + *
+       * Indicates the runtime priority of workflow executions. 
+       * 
+ * + * .flyteidl.core.QualityOfService quality_of_service = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> + getQualityOfServiceFieldBuilder() { + if (qualityOfServiceBuilder_ == null) { + qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( + getQualityOfService(), + getParentForChildren(), + isClean()); + qualityOfService_ = null; + } + return qualityOfServiceBuilder_; + } + + private int onFailure_ = 0; + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public int getOnFailureValue() { + return onFailure_; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder setOnFailureValue(int value) { + onFailure_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { + @SuppressWarnings("deprecation") + flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); + return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder setOnFailure(flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + onFailure_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines how the system should behave when a failure is detected in the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + public Builder clearOnFailure() { + + onFailure_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + private com.google.protobuf.MapField + internalGetMutableTags() { + onChanged();; + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField( + TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 3; + */ + + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 3; + */ + + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 3; + */ + + public java.lang.String getTagsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 3; + */ + + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + internalGetMutableTags().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 3; + */ + + public Builder removeTags( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableTags().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTags() { + return internalGetMutableTags().getMutableMap(); + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 3; + */ + public Builder putTags( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableTags().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
+       * 
+ * + * map<string, string> tags = 3; + */ + + public Builder putAllTags( + java.util.Map values) { + internalGetMutableTags().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) + private static final flyteidl.core.Workflow.WorkflowMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadata(); + } + + public static flyteidl.core.Workflow.WorkflowMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowMetadataDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadataDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Whether child nodes of the workflow are interruptible.
+     * 
+ * + * bool interruptible = 1; + */ + boolean getInterruptible(); + } + /** + *
+   * The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to
+   * a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it
+   * is only relevant when a task executes. The settings here are the defaults that are passed to all nodes
+   * unless explicitly overridden at the node layer.
+   * If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be
+   * added to both this object and the WorkflowMetadata object above.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} + */ + public static final class WorkflowMetadataDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadataDefaults) + WorkflowMetadataDefaultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowMetadataDefaults.newBuilder() to construct. + private WorkflowMetadataDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowMetadataDefaults() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowMetadataDefaults( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + interruptible_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); + } + + public static final int INTERRUPTIBLE_FIELD_NUMBER = 1; + private boolean interruptible_; + /** + *
+     * Whether child nodes of the workflow are interruptible.
+     * 
+ * + * bool interruptible = 1; + */ + public boolean getInterruptible() { + return interruptible_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (interruptible_ != false) { + output.writeBool(1, interruptible_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (interruptible_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, interruptible_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.WorkflowMetadataDefaults)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowMetadataDefaults other = (flyteidl.core.Workflow.WorkflowMetadataDefaults) obj; + + if (getInterruptible() + != other.getInterruptible()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterruptible()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.WorkflowMetadataDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to
+     * a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it
+     * is only relevant when a task executes. The settings here are the defaults that are passed to all nodes
+     * unless explicitly overridden at the node layer.
+     * If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be
+     * added to both this object and the WorkflowMetadata object above.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadataDefaults) + flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowMetadataDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + interruptible_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults build() { + flyteidl.core.Workflow.WorkflowMetadataDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults buildPartial() { + flyteidl.core.Workflow.WorkflowMetadataDefaults result = new flyteidl.core.Workflow.WorkflowMetadataDefaults(this); + result.interruptible_ = interruptible_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.WorkflowMetadataDefaults) { + return mergeFrom((flyteidl.core.Workflow.WorkflowMetadataDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadataDefaults other) { + if (other == flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance()) return this; + if (other.getInterruptible() != false) { + setInterruptible(other.getInterruptible()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.WorkflowMetadataDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowMetadataDefaults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean interruptible_ ; + /** + *
+       * Whether child nodes of the workflow are interruptible.
+       * 
+ * + * bool interruptible = 1; + */ + public boolean getInterruptible() { + return interruptible_; + } + /** + *
+       * Whether child nodes of the workflow are interruptible.
+       * 
+ * + * bool interruptible = 1; + */ + public Builder setInterruptible(boolean value) { + + interruptible_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether child nodes of the workflow are interruptible.
+       * 
+ * + * bool interruptible = 1; + */ + public Builder clearInterruptible() { + + interruptible_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowMetadataDefaults) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) + private static final flyteidl.core.Workflow.WorkflowMetadataDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadataDefaults(); + } + + public static flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowMetadataDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowMetadataDefaults(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadata getMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + boolean hasInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesList(); + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + int getNodesCount(); + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + int getOutputsCount(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + boolean hasFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.Node getFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder(); + + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + boolean hasMetadataDefaults(); + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults(); + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder(); + } + /** + *
+   * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+   * directed acyclic graph.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class WorkflowTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowTemplate) + WorkflowTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowTemplate.newBuilder() to construct. + private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowTemplate() { + nodes_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowTemplate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.WorkflowMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (failureNode_ != null) { + subBuilder = failureNode_.toBuilder(); + } + failureNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(failureNode_); + failureNode_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder subBuilder = null; + if (metadataDefaults_ != null) { + subBuilder = metadataDefaults_.toBuilder(); + } + metadataDefaults_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadataDefaults.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadataDefaults_); + metadataDefaults_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * A globally unique identifier for the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.WorkflowMetadata metadata_; + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 3; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int NODES_FIELD_NUMBER = 4; + private java.util.List nodes_; + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 5; + private java.util.List outputs_; + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int FAILURE_NODE_FIELD_NUMBER = 6; + private flyteidl.core.Workflow.Node failureNode_; + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNode_ != null; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + return getFailureNode(); + } + + public static final int METADATA_DEFAULTS_FIELD_NUMBER = 7; + private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public boolean hasMetadataDefaults() { + return metadataDefaults_ != null; + } + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { + return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } + /** + *
+     * workflow defaults
+     * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { + return getMetadataDefaults(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(5, outputs_.get(i)); + } + if (failureNode_ != null) { + output.writeMessage(6, getFailureNode()); + } + if (metadataDefaults_ != null) { + output.writeMessage(7, getMetadataDefaults()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputs_.get(i)); + } + if (failureNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getFailureNode()); + } + if (metadataDefaults_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getMetadataDefaults()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.WorkflowTemplate)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowTemplate other = (flyteidl.core.Workflow.WorkflowTemplate) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasInterface() != other.hasInterface()) return false; + if (hasInterface()) { + if (!getInterface() + .equals(other.getInterface())) return false; + } + if (!getNodesList() + .equals(other.getNodesList())) return false; + if (!getOutputsList() + .equals(other.getOutputsList())) return false; + if (hasFailureNode() != other.hasFailureNode()) return false; + if (hasFailureNode()) { + if (!getFailureNode() + .equals(other.getFailureNode())) return false; + } + if (hasMetadataDefaults() != other.hasMetadataDefaults()) return false; + if (hasMetadataDefaults()) { + if (!getMetadataDefaults() + .equals(other.getMetadataDefaults())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (hasFailureNode()) { + hash = (37 * hash) + FAILURE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getFailureNode().hashCode(); + } + if (hasMetadataDefaults()) { + hash = (37 * hash) + METADATA_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataDefaults().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.WorkflowTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+     * directed acyclic graph.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowTemplate) + flyteidl.core.Workflow.WorkflowTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + nodesBuilder_.clear(); + } + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputsBuilder_.clear(); + } + if (failureNodeBuilder_ == null) { + failureNode_ = null; + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = null; + } else { + metadataDefaults_ = null; + metadataDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate build() { + flyteidl.core.Workflow.WorkflowTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate buildPartial() { + flyteidl.core.Workflow.WorkflowTemplate result = new flyteidl.core.Workflow.WorkflowTemplate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (failureNodeBuilder_ == null) { + result.failureNode_ = failureNode_; + } else { + result.failureNode_ = failureNodeBuilder_.build(); + } + if (metadataDefaultsBuilder_ == null) { + result.metadataDefaults_ = metadataDefaults_; + } else { + result.metadataDefaults_ = metadataDefaultsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.WorkflowTemplate) { + return mergeFrom((flyteidl.core.Workflow.WorkflowTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowTemplate other) { + if (other == flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (other.hasFailureNode()) { + mergeFailureNode(other.getFailureNode()); + } + if (other.hasMetadataDefaults()) { + mergeMetadataDefaults(other.getMetadataDefaults()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.WorkflowTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * A globally unique identifier for the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Workflow.WorkflowMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.WorkflowMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.WorkflowMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.core.Workflow.Node failureNode_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> failureNodeBuilder_; + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNodeBuilder_ != null || failureNode_ != null; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + if (failureNodeBuilder_ == null) { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } else { + return failureNodeBuilder_.getMessage(); + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failureNode_ = value; + onChanged(); + } else { + failureNodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (failureNodeBuilder_ == null) { + failureNode_ = builderForValue.build(); + onChanged(); + } else { + failureNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder mergeFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (failureNode_ != null) { + failureNode_ = + flyteidl.core.Workflow.Node.newBuilder(failureNode_).mergeFrom(value).buildPartial(); + } else { + failureNode_ = value; + } + onChanged(); + } else { + failureNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder clearFailureNode() { + if (failureNodeBuilder_ == null) { + failureNode_ = null; + onChanged(); + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node.Builder getFailureNodeBuilder() { + + onChanged(); + return getFailureNodeFieldBuilder().getBuilder(); + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + if (failureNodeBuilder_ != null) { + return failureNodeBuilder_.getMessageOrBuilder(); + } else { + return failureNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getFailureNodeFieldBuilder() { + if (failureNodeBuilder_ == null) { + failureNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getFailureNode(), + getParentForChildren(), + isClean()); + failureNode_ = null; + } + return failureNodeBuilder_; + } + + private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> metadataDefaultsBuilder_; + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public boolean hasMetadataDefaults() { + return metadataDefaultsBuilder_ != null || metadataDefaults_ != null; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { + if (metadataDefaultsBuilder_ == null) { + return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } else { + return metadataDefaultsBuilder_.getMessage(); + } + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder setMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { + if (metadataDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadataDefaults_ = value; + onChanged(); + } else { + metadataDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder setMetadataDefaults( + flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder builderForValue) { + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = builderForValue.build(); + onChanged(); + } else { + metadataDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder mergeMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { + if (metadataDefaultsBuilder_ == null) { + if (metadataDefaults_ != null) { + metadataDefaults_ = + flyteidl.core.Workflow.WorkflowMetadataDefaults.newBuilder(metadataDefaults_).mergeFrom(value).buildPartial(); + } else { + metadataDefaults_ = value; + } + onChanged(); + } else { + metadataDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public Builder clearMetadataDefaults() { + if (metadataDefaultsBuilder_ == null) { + metadataDefaults_ = null; + onChanged(); + } else { + metadataDefaults_ = null; + metadataDefaultsBuilder_ = null; + } + + return this; + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder getMetadataDefaultsBuilder() { + + onChanged(); + return getMetadataDefaultsFieldBuilder().getBuilder(); + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { + if (metadataDefaultsBuilder_ != null) { + return metadataDefaultsBuilder_.getMessageOrBuilder(); + } else { + return metadataDefaults_ == null ? + flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; + } + } + /** + *
+       * workflow defaults
+       * 
+ * + * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> + getMetadataDefaultsFieldBuilder() { + if (metadataDefaultsBuilder_ == null) { + metadataDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder>( + getMetadataDefaults(), + getParentForChildren(), + isClean()); + metadataDefaults_ = null; + } + return metadataDefaultsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) + private static final flyteidl.core.Workflow.WorkflowTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowTemplate(); + } + + public static flyteidl.core.Workflow.WorkflowTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskNodeOverridesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNodeOverrides) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A customizable interface to convey resources requested for a task container. 
+     * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + boolean hasResources(); + /** + *
+     * A customizable interface to convey resources requested for a task container. 
+     * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * A customizable interface to convey resources requested for a task container. 
+     * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + } + /** + *
+   * Optional task node overrides that will be applied at task execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskNodeOverrides} + */ + public static final class TaskNodeOverrides extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNodeOverrides) + TaskNodeOverridesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskNodeOverrides.newBuilder() to construct. + private TaskNodeOverrides(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskNodeOverrides() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskNodeOverrides( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNodeOverrides.class, flyteidl.core.Workflow.TaskNodeOverrides.Builder.class); + } + + public static final int RESOURCES_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * A customizable interface to convey resources requested for a task container. 
+     * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * A customizable interface to convey resources requested for a task container. 
+     * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * A customizable interface to convey resources requested for a task container. 
+     * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resources_ != null) { + output.writeMessage(1, getResources()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResources()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.Workflow.TaskNodeOverrides)) { + return super.equals(obj); + } + flyteidl.core.Workflow.TaskNodeOverrides other = (flyteidl.core.Workflow.TaskNodeOverrides) obj; + + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.TaskNodeOverrides prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Optional task node overrides that will be applied at task execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskNodeOverrides} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNodeOverrides) + flyteidl.core.Workflow.TaskNodeOverridesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNodeOverrides.class, flyteidl.core.Workflow.TaskNodeOverrides.Builder.class); + } + + // Construct using flyteidl.core.Workflow.TaskNodeOverrides.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_descriptor; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNodeOverrides getDefaultInstanceForType() { + return flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNodeOverrides build() { + flyteidl.core.Workflow.TaskNodeOverrides result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNodeOverrides buildPartial() { + flyteidl.core.Workflow.TaskNodeOverrides result = new flyteidl.core.Workflow.TaskNodeOverrides(this); + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.TaskNodeOverrides) { + return mergeFrom((flyteidl.core.Workflow.TaskNodeOverrides)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.TaskNodeOverrides other) { + if (other == flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance()) return this; + if (other.hasResources()) { + mergeResources(other.getResources()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.TaskNodeOverrides parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.TaskNodeOverrides) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * A customizable interface to convey resources requested for a task container. 
+       * 
+ * + * .flyteidl.core.Resources resources = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskNodeOverrides) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNodeOverrides) + private static final flyteidl.core.Workflow.TaskNodeOverrides DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNodeOverrides(); + } + + public static flyteidl.core.Workflow.TaskNodeOverrides getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskNodeOverrides parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskNodeOverrides(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.Workflow.TaskNodeOverrides getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfElseBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BranchNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BranchNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ApproveCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ApproveCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SignalCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SignalCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SleepCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SleepCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_GateNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_GateNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ArrayNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ArrayNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Alias_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Alias_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Node_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskNodeOverrides_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskNodeOverrides_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/core/workflow.proto\022\rflyteidl" + + ".core\032\035flyteidl/core/condition.proto\032\035fl" + + "yteidl/core/execution.proto\032\036flyteidl/co" + + "re/identifier.proto\032\035flyteidl/core/inter" + + "face.proto\032\034flyteidl/core/literals.proto" + + "\032\031flyteidl/core/tasks.proto\032\031flyteidl/co" + + "re/types.proto\032\034flyteidl/core/security.p" + + "roto\032\036google/protobuf/duration.proto\"f\n\007" + + "IfBlock\0223\n\tcondition\030\001 \001(\0132 .flyteidl.co" + + "re.BooleanExpression\022&\n\tthen_node\030\002 \001(\0132" + + "\023.flyteidl.core.Node\"\266\001\n\013IfElseBlock\022$\n\004" + + "case\030\001 \001(\0132\026.flyteidl.core.IfBlock\022%\n\005ot" + + "her\030\002 \003(\0132\026.flyteidl.core.IfBlock\022(\n\tels" + + "e_node\030\003 \001(\0132\023.flyteidl.core.NodeH\000\022%\n\005e" + + "rror\030\004 \001(\0132\024.flyteidl.core.ErrorH\000B\t\n\007de" + + "fault\"9\n\nBranchNode\022+\n\007if_else\030\001 \001(\0132\032.f" + + "lyteidl.core.IfElseBlock\"\177\n\010TaskNode\0221\n\014" + + "reference_id\030\001 \001(\0132\031.flyteidl.core.Ident" + + "ifierH\000\0223\n\toverrides\030\002 \001(\0132 .flyteidl.co" + + "re.TaskNodeOverridesB\013\n\treference\"\207\001\n\014Wo" + + "rkflowNode\0223\n\016launchplan_ref\030\001 \001(\0132\031.fly" + + "teidl.core.IdentifierH\000\0225\n\020sub_workflow_" + + "ref\030\002 \001(\0132\031.flyteidl.core.IdentifierH\000B\013" + + "\n\treference\"%\n\020ApproveCondition\022\021\n\tsigna" + + "l_id\030\001 \001(\t\"l\n\017SignalCondition\022\021\n\tsignal_" + + "id\030\001 \001(\t\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" + + "iteralType\022\034\n\024output_variable_name\030\003 \001(\t" + + "\"=\n\016SleepCondition\022+\n\010duration\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\"\255\001\n\010GateNode\0222\n\007" + + "approve\030\001 \001(\0132\037.flyteidl.core.ApproveCon" + + "ditionH\000\0220\n\006signal\030\002 \001(\0132\036.flyteidl.core" + + ".SignalConditionH\000\022.\n\005sleep\030\003 \001(\0132\035.flyt" + + "eidl.core.SleepConditionH\000B\013\n\tcondition\"" + + "\215\001\n\tArrayNode\022!\n\004node\030\001 \001(\0132\023.flyteidl.c" + + "ore.Node\022\023\n\013parallelism\030\002 \001(\r\022\027\n\rmin_suc" + + "cesses\030\003 \001(\rH\000\022\033\n\021min_success_ratio\030\004 \001(" + + "\002H\000B\022\n\020success_criteria\"\247\001\n\014NodeMetadata" + + "\022\014\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google" + + ".protobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.fl" + + "yteidl.core.RetryStrategy\022\027\n\rinterruptib" + + "le\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Ali" + + "as\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\260\003\n\004Node\022" + + "\n\n\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl" + + ".core.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.fly" + + "teidl.core.Binding\022\031\n\021upstream_node_ids\030" + + "\004 \003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl" + + ".core.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteid" + + "l.core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\013" + + "2\033.flyteidl.core.WorkflowNodeH\000\0220\n\013branc" + + "h_node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH" + + "\000\022,\n\tgate_node\030\t \001(\0132\027.flyteidl.core.Gat" + + "eNodeH\000\022.\n\narray_node\030\n \001(\0132\030.flyteidl.c" + + "ore.ArrayNodeH\000B\010\n\006target\"\315\002\n\020WorkflowMe" + + "tadata\022;\n\022quality_of_service\030\001 \001(\0132\037.fly" + + "teidl.core.QualityOfService\022C\n\non_failur" + + "e\030\002 \001(\0162/.flyteidl.core.WorkflowMetadata" + + ".OnFailurePolicy\0227\n\004tags\030\003 \003(\0132).flyteid" + + "l.core.WorkflowMetadata.TagsEntry\032+\n\tTag" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q" + + "\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020\000\022" + + "(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\020" + + "\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinterru" + + "ptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002id\030" + + "\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010meta" + + "data\030\002 \001(\0132\037.flyteidl.core.WorkflowMetad" + + "ata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core.T" + + "ypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteidl." + + "core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl.co" + + "re.Binding\022)\n\014failure_node\030\006 \001(\0132\023.flyte" + + "idl.core.Node\022B\n\021metadata_defaults\030\007 \001(\013" + + "2\'.flyteidl.core.WorkflowMetadataDefault" + + "s\"@\n\021TaskNodeOverrides\022+\n\tresources\030\001 \001(" + + "\0132\030.flyteidl.core.ResourcesB6Z4github.co" + + "m/flyteorg/flyteidl/gen/pb-go/flyteidl/c" + + "oreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Condition.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + flyteidl.core.Security.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_IfBlock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_IfBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfBlock_descriptor, + new java.lang.String[] { "Condition", "ThenNode", }); + internal_static_flyteidl_core_IfElseBlock_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfElseBlock_descriptor, + new java.lang.String[] { "Case", "Other", "ElseNode", "Error", "Default", }); + internal_static_flyteidl_core_BranchNode_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BranchNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BranchNode_descriptor, + new java.lang.String[] { "IfElse", }); + internal_static_flyteidl_core_TaskNode_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskNode_descriptor, + new java.lang.String[] { "ReferenceId", "Overrides", "Reference", }); + internal_static_flyteidl_core_WorkflowNode_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowNode_descriptor, + new java.lang.String[] { "LaunchplanRef", "SubWorkflowRef", "Reference", }); + internal_static_flyteidl_core_ApproveCondition_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_ApproveCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ApproveCondition_descriptor, + new java.lang.String[] { "SignalId", }); + internal_static_flyteidl_core_SignalCondition_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_SignalCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SignalCondition_descriptor, + new java.lang.String[] { "SignalId", "Type", "OutputVariableName", }); + internal_static_flyteidl_core_SleepCondition_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_SleepCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SleepCondition_descriptor, + new java.lang.String[] { "Duration", }); + internal_static_flyteidl_core_GateNode_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_GateNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_GateNode_descriptor, + new java.lang.String[] { "Approve", "Signal", "Sleep", "Condition", }); + internal_static_flyteidl_core_ArrayNode_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_ArrayNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ArrayNode_descriptor, + new java.lang.String[] { "Node", "Parallelism", "MinSuccesses", "MinSuccessRatio", "SuccessCriteria", }); + internal_static_flyteidl_core_NodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeMetadata_descriptor, + new java.lang.String[] { "Name", "Timeout", "Retries", "Interruptible", "InterruptibleValue", }); + internal_static_flyteidl_core_Alias_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_core_Alias_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Alias_descriptor, + new java.lang.String[] { "Var", "Alias", }); + internal_static_flyteidl_core_Node_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_core_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Node_descriptor, + new java.lang.String[] { "Id", "Metadata", "Inputs", "UpstreamNodeIds", "OutputAliases", "TaskNode", "WorkflowNode", "BranchNode", "GateNode", "ArrayNode", "Target", }); + internal_static_flyteidl_core_WorkflowMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadata_descriptor, + new java.lang.String[] { "QualityOfService", "OnFailure", "Tags", }); + internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_descriptor = + internal_static_flyteidl_core_WorkflowMetadata_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor, + new java.lang.String[] { "Interruptible", }); + internal_static_flyteidl_core_WorkflowTemplate_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowTemplate_descriptor, + new java.lang.String[] { "Id", "Metadata", "Interface", "Nodes", "Outputs", "FailureNode", "MetadataDefaults", }); + internal_static_flyteidl_core_TaskNodeOverrides_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_flyteidl_core_TaskNodeOverrides_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskNodeOverrides_descriptor, + new java.lang.String[] { "Resources", }); + flyteidl.core.Condition.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + flyteidl.core.Security.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java b/flyteidl/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java new file mode 100644 index 0000000000..688ec45fde --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java @@ -0,0 +1,1251 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +package flyteidl.core; + +public final class WorkflowClosureOuterClass { + private WorkflowClosureOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + boolean hasWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder(); + + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + int getTasksCount(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * Defines an enclosed package of workflow and tasks it references.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (workflow_ != null) { + subBuilder = workflow_.toBuilder(); + } + workflow_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflow_); + workflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate workflow_; + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflow_ != null; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + return getWorkflow(); + } + + public static final int TASKS_FIELD_NUMBER = 2; + private java.util.List tasks_; + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflow_ != null) { + output.writeMessage(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(2, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tasks_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) obj; + + if (hasWorkflow() != other.hasWorkflow()) return false; + if (hasWorkflow()) { + if (!getWorkflow() + .equals(other.getWorkflow())) return false; + } + if (!getTasksList() + .equals(other.getTasksList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflow()) { + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines an enclosed package of workflow and tasks it references.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowClosure) + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workflowBuilder_ == null) { + workflow_ = null; + } else { + workflow_ = null; + workflowBuilder_ = null; + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + tasksBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure build() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure buildPartial() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowBuilder_ == null) { + result.workflow_ = workflow_; + } else { + result.workflow_ = workflowBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other) { + if (other == flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasWorkflow()) { + mergeWorkflow(other.getWorkflow()); + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Workflow.WorkflowTemplate workflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> workflowBuilder_; + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflowBuilder_ != null || workflow_ != null; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + if (workflowBuilder_ == null) { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } else { + return workflowBuilder_.getMessage(); + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflow_ = value; + onChanged(); + } else { + workflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (workflowBuilder_ == null) { + workflow_ = builderForValue.build(); + onChanged(); + } else { + workflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder mergeWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (workflow_ != null) { + workflow_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(workflow_).mergeFrom(value).buildPartial(); + } else { + workflow_ = value; + } + onChanged(); + } else { + workflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder clearWorkflow() { + if (workflowBuilder_ == null) { + workflow_ = null; + onChanged(); + } else { + workflow_ = null; + workflowBuilder_ = null; + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getWorkflowBuilder() { + + onChanged(); + return getWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + if (workflowBuilder_ != null) { + return workflowBuilder_.getMessageOrBuilder(); + } else { + return workflow_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getWorkflowFieldBuilder() { + if (workflowBuilder_ == null) { + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); + workflow_ = null; + } + return workflowBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) + private static final flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(); + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n$flyteidl/core/workflow_closure.proto\022\r" + + "flyteidl.core\032\034flyteidl/core/workflow.pr" + + "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + + "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + + "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + + "yteidl.core.TaskTemplateB6Z4github.com/f" + + "lyteorg/flyteidl/gen/pb-go/flyteidl/core" + + "b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowClosure_descriptor, + new java.lang.String[] { "Workflow", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/event/Event.java b/flyteidl/gen/pb-java/flyteidl/event/Event.java new file mode 100644 index 0000000000..2376082bfc --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/event/Event.java @@ -0,0 +1,20464 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +package flyteidl.event; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Raw output data produced by this workflow execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + boolean hasOutputData(); + /** + *
+     * Raw output data produced by this workflow execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + flyteidl.core.Literals.LiteralMap getOutputData(); + /** + *
+     * Raw output data produced by this workflow execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); + + public flyteidl.event.Event.WorkflowExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} + */ + public static final class WorkflowExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowExecutionEvent) + WorkflowExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEvent.newBuilder() to construct. + private WorkflowExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEvent() { + producerId_ = ""; + phase_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 5; + outputResult_ = s; + break; + } + case 50: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 6) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 6; + break; + } + case 58: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputResultCase_ == 7) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 7; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(5), + ERROR(6), + OUTPUT_DATA(7), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 5: return OUTPUT_URI; + case 6: return ERROR; + case 7: return OUTPUT_DATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 5; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int OUTPUT_DATA_FIELD_NUMBER = 7; + /** + *
+     * Raw output data produced by this workflow execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public boolean hasOutputData() { + return outputResultCase_ == 7; + } + /** + *
+     * Raw output data produced by this workflow execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw output data produced by this workflow execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputResult_); + } + if (outputResultCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (outputResultCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputResult_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (outputResultCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.WorkflowExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowExecutionEvent other = (flyteidl.event.Event.WorkflowExecutionEvent) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + } + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (phase_ != other.phase_) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 5: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 6: + if (!getError() + .equals(other.getError())) return false; + break; + case 7: + if (!getOutputData() + .equals(other.getOutputData())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + switch (outputResultCase_) { + case 5: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 7: + hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOutputData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.WorkflowExecutionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowExecutionEvent) + flyteidl.event.Event.WorkflowExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent build() { + flyteidl.event.Event.WorkflowExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent buildPartial() { + flyteidl.event.Event.WorkflowExecutionEvent result = new flyteidl.event.Event.WorkflowExecutionEvent(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + if (outputResultCase_ == 5) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 6) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 7) { + if (outputDataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputDataBuilder_.build(); + } + } + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.WorkflowExecutionEvent) { + return mergeFrom((flyteidl.event.Event.WorkflowExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowExecutionEvent other) { + if (other == flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 5; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUT_DATA: { + mergeOutputData(other.getOutputData()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.WorkflowExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 5) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 6)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 6; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public boolean hasOutputData() { + return outputResultCase_ == 7; + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 7) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (outputResultCase_ == 7) { + return outputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public Builder setOutputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputDataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputDataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 7 && + outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 7) { + outputDataBuilder_.mergeFrom(value); + } + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public Builder clearOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { + return getOutputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if ((outputResultCase_ == 7) && (outputDataBuilder_ != null)) { + return outputDataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 7) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this workflow execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputDataFieldBuilder() { + if (outputDataBuilder_ == null) { + if (!(outputResultCase_ == 7)) { + outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 7; + onChanged();; + return outputDataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.WorkflowExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) + private static final flyteidl.event.Event.WorkflowExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowExecutionEvent(); + } + + public static flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.NodeExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + * string input_uri = 5; + */ + java.lang.String getInputUri(); + /** + * string input_uri = 5; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Raw input data consumed by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + boolean hasInputData(); + /** + *
+     * Raw input data consumed by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + flyteidl.core.Literals.LiteralMap getInputData(); + /** + *
+     * Raw input data consumed by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Raw output data produced by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + boolean hasOutputData(); + /** + *
+     * Raw output data produced by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + flyteidl.core.Literals.LiteralMap getOutputData(); + /** + *
+     * Raw output data produced by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); + + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + boolean hasTaskNodeMetadata(); + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + flyteidl.event.Event.TaskNodeMetadata getTaskNodeMetadata(); + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + flyteidl.event.Event.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder(); + + /** + *
+     * [To be deprecated] Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + boolean hasParentTaskMetadata(); + /** + *
+     * [To be deprecated] Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata(); + /** + *
+     * [To be deprecated] Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder(); + + /** + *
+     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+     * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + boolean hasParentNodeMetadata(); + /** + *
+     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+     * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + flyteidl.event.Event.ParentNodeExecutionMetadata getParentNodeMetadata(); + /** + *
+     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+     * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder getParentNodeMetadataOrBuilder(); + + /** + *
+     * Retry group to indicate grouping of nodes by retries
+     * 
+ * + * string retry_group = 11; + */ + java.lang.String getRetryGroup(); + /** + *
+     * Retry group to indicate grouping of nodes by retries
+     * 
+ * + * string retry_group = 11; + */ + com.google.protobuf.ByteString + getRetryGroupBytes(); + + /** + *
+     * Identifier of the node in the original workflow/graph
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 12; + */ + java.lang.String getSpecNodeId(); + /** + *
+     * Identifier of the node in the original workflow/graph
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 12; + */ + com.google.protobuf.ByteString + getSpecNodeIdBytes(); + + /** + *
+     * Friendly readable name for the node
+     * 
+ * + * string node_name = 13; + */ + java.lang.String getNodeName(); + /** + *
+     * Friendly readable name for the node
+     * 
+ * + * string node_name = 13; + */ + com.google.protobuf.ByteString + getNodeNameBytes(); + + /** + * int32 event_version = 16; + */ + int getEventVersion(); + + /** + *
+     * Whether this node launched a subworkflow.
+     * 
+ * + * bool is_parent = 17; + */ + boolean getIsParent(); + + /** + *
+     * Whether this node yielded a dynamic workflow.
+     * 
+ * + * bool is_dynamic = 18; + */ + boolean getIsDynamic(); + + /** + *
+     * String location uniquely identifying where the deck HTML file is
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 19; + */ + java.lang.String getDeckUri(); + /** + *
+     * String location uniquely identifying where the deck HTML file is
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 19; + */ + com.google.protobuf.ByteString + getDeckUriBytes(); + + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example,
+     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + boolean hasReportedAt(); + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example,
+     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + com.google.protobuf.Timestamp getReportedAt(); + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example,
+     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder(); + + public flyteidl.event.Event.NodeExecutionEvent.InputValueCase getInputValueCase(); + + public flyteidl.event.Event.NodeExecutionEvent.OutputResultCase getOutputResultCase(); + + public flyteidl.event.Event.NodeExecutionEvent.TargetMetadataCase getTargetMetadataCase(); + } + /** + * Protobuf type {@code flyteidl.event.NodeExecutionEvent} + */ + public static final class NodeExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.NodeExecutionEvent) + NodeExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEvent.newBuilder() to construct. + private NodeExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEvent() { + producerId_ = ""; + phase_ = 0; + retryGroup_ = ""; + specNodeId_ = ""; + nodeName_ = ""; + deckUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + inputValueCase_ = 5; + inputValue_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 6; + outputResult_ = s; + break; + } + case 58: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 7) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 7; + break; + } + case 66: { + flyteidl.event.Event.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.event.Event.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + break; + } + case 74: { + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder subBuilder = null; + if (parentTaskMetadata_ != null) { + subBuilder = parentTaskMetadata_.toBuilder(); + } + parentTaskMetadata_ = input.readMessage(flyteidl.event.Event.ParentTaskExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentTaskMetadata_); + parentTaskMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + flyteidl.event.Event.ParentNodeExecutionMetadata.Builder subBuilder = null; + if (parentNodeMetadata_ != null) { + subBuilder = parentNodeMetadata_.toBuilder(); + } + parentNodeMetadata_ = input.readMessage(flyteidl.event.Event.ParentNodeExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeMetadata_); + parentNodeMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + retryGroup_ = s; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + specNodeId_ = s; + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeName_ = s; + break; + } + case 114: { + flyteidl.event.Event.TaskNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 14) { + subBuilder = ((flyteidl.event.Event.TaskNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.event.Event.TaskNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.event.Event.TaskNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 14; + break; + } + case 122: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputResultCase_ == 15) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 15; + break; + } + case 128: { + + eventVersion_ = input.readInt32(); + break; + } + case 136: { + + isParent_ = input.readBool(); + break; + } + case 144: { + + isDynamic_ = input.readBool(); + break; + } + case 154: { + java.lang.String s = input.readStringRequireUtf8(); + + deckUri_ = s; + break; + } + case 162: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputValueCase_ == 20) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) inputValue_).toBuilder(); + } + inputValue_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) inputValue_); + inputValue_ = subBuilder.buildPartial(); + } + inputValueCase_ = 20; + break; + } + case 170: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (reportedAt_ != null) { + subBuilder = reportedAt_.toBuilder(); + } + reportedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reportedAt_); + reportedAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + private int inputValueCase_ = 0; + private java.lang.Object inputValue_; + public enum InputValueCase + implements com.google.protobuf.Internal.EnumLite { + INPUT_URI(5), + INPUT_DATA(20), + INPUTVALUE_NOT_SET(0); + private final int value; + private InputValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputValueCase valueOf(int value) { + return forNumber(value); + } + + public static InputValueCase forNumber(int value) { + switch (value) { + case 5: return INPUT_URI; + case 20: return INPUT_DATA; + case 0: return INPUTVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InputValueCase + getInputValueCase() { + return InputValueCase.forNumber( + inputValueCase_); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(6), + ERROR(7), + OUTPUT_DATA(15), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 6: return OUTPUT_URI; + case 7: return ERROR; + case 15: return OUTPUT_DATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TASK_NODE_METADATA(14), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 14: return TASK_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 5; + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = ""; + if (inputValueCase_ == 5) { + ref = inputValue_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputValueCase_ == 5) { + inputValue_ = s; + } + return s; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = ""; + if (inputValueCase_ == 5) { + ref = inputValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (inputValueCase_ == 5) { + inputValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_DATA_FIELD_NUMBER = 20; + /** + *
+     * Raw input data consumed by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public boolean hasInputData() { + return inputValueCase_ == 20; + } + /** + *
+     * Raw input data consumed by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public flyteidl.core.Literals.LiteralMap getInputData() { + if (inputValueCase_ == 20) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw input data consumed by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { + if (inputValueCase_ == 20) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 6; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 7; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int OUTPUT_DATA_FIELD_NUMBER = 15; + /** + *
+     * Raw output data produced by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public boolean hasOutputData() { + return outputResultCase_ == 15; + } + /** + *
+     * Raw output data produced by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputResultCase_ == 15) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw output data produced by this node execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if (outputResultCase_ == 15) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + public static final int TASK_NODE_METADATA_FIELD_NUMBER = 14; + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public boolean hasTaskNodeMetadata() { + return targetMetadataCase_ == 14; + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public flyteidl.event.Event.TaskNodeMetadata getTaskNodeMetadata() { + if (targetMetadataCase_ == 14) { + return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public flyteidl.event.Event.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 14) { + return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); + } + + public static final int PARENT_TASK_METADATA_FIELD_NUMBER = 9; + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; + /** + *
+     * [To be deprecated] Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadata_ != null; + } + /** + *
+     * [To be deprecated] Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + /** + *
+     * [To be deprecated] Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + return getParentTaskMetadata(); + } + + public static final int PARENT_NODE_METADATA_FIELD_NUMBER = 10; + private flyteidl.event.Event.ParentNodeExecutionMetadata parentNodeMetadata_; + /** + *
+     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+     * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public boolean hasParentNodeMetadata() { + return parentNodeMetadata_ != null; + } + /** + *
+     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+     * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public flyteidl.event.Event.ParentNodeExecutionMetadata getParentNodeMetadata() { + return parentNodeMetadata_ == null ? flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance() : parentNodeMetadata_; + } + /** + *
+     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+     * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder getParentNodeMetadataOrBuilder() { + return getParentNodeMetadata(); + } + + public static final int RETRY_GROUP_FIELD_NUMBER = 11; + private volatile java.lang.Object retryGroup_; + /** + *
+     * Retry group to indicate grouping of nodes by retries
+     * 
+ * + * string retry_group = 11; + */ + public java.lang.String getRetryGroup() { + java.lang.Object ref = retryGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + retryGroup_ = s; + return s; + } + } + /** + *
+     * Retry group to indicate grouping of nodes by retries
+     * 
+ * + * string retry_group = 11; + */ + public com.google.protobuf.ByteString + getRetryGroupBytes() { + java.lang.Object ref = retryGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + retryGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_NODE_ID_FIELD_NUMBER = 12; + private volatile java.lang.Object specNodeId_; + /** + *
+     * Identifier of the node in the original workflow/graph
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 12; + */ + public java.lang.String getSpecNodeId() { + java.lang.Object ref = specNodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + specNodeId_ = s; + return s; + } + } + /** + *
+     * Identifier of the node in the original workflow/graph
+     * This maps to value of WorkflowTemplate.nodes[X].id
+     * 
+ * + * string spec_node_id = 12; + */ + public com.google.protobuf.ByteString + getSpecNodeIdBytes() { + java.lang.Object ref = specNodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + specNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_NAME_FIELD_NUMBER = 13; + private volatile java.lang.Object nodeName_; + /** + *
+     * Friendly readable name for the node
+     * 
+ * + * string node_name = 13; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeName_ = s; + return s; + } + } + /** + *
+     * Friendly readable name for the node
+     * 
+ * + * string node_name = 13; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_VERSION_FIELD_NUMBER = 16; + private int eventVersion_; + /** + * int32 event_version = 16; + */ + public int getEventVersion() { + return eventVersion_; + } + + public static final int IS_PARENT_FIELD_NUMBER = 17; + private boolean isParent_; + /** + *
+     * Whether this node launched a subworkflow.
+     * 
+ * + * bool is_parent = 17; + */ + public boolean getIsParent() { + return isParent_; + } + + public static final int IS_DYNAMIC_FIELD_NUMBER = 18; + private boolean isDynamic_; + /** + *
+     * Whether this node yielded a dynamic workflow.
+     * 
+ * + * bool is_dynamic = 18; + */ + public boolean getIsDynamic() { + return isDynamic_; + } + + public static final int DECK_URI_FIELD_NUMBER = 19; + private volatile java.lang.Object deckUri_; + /** + *
+     * String location uniquely identifying where the deck HTML file is
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 19; + */ + public java.lang.String getDeckUri() { + java.lang.Object ref = deckUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deckUri_ = s; + return s; + } + } + /** + *
+     * String location uniquely identifying where the deck HTML file is
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string deck_uri = 19; + */ + public com.google.protobuf.ByteString + getDeckUriBytes() { + java.lang.Object ref = deckUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORTED_AT_FIELD_NUMBER = 21; + private com.google.protobuf.Timestamp reportedAt_; + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example,
+     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public boolean hasReportedAt() { + return reportedAt_ != null; + } + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example,
+     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public com.google.protobuf.Timestamp getReportedAt() { + return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; + } + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example,
+     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { + return getReportedAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (inputValueCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputValue_); + } + if (outputResultCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outputResult_); + } + if (outputResultCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + output.writeMessage(9, getParentTaskMetadata()); + } + if (parentNodeMetadata_ != null) { + output.writeMessage(10, getParentNodeMetadata()); + } + if (!getRetryGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, retryGroup_); + } + if (!getSpecNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, specNodeId_); + } + if (!getNodeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, nodeName_); + } + if (targetMetadataCase_ == 14) { + output.writeMessage(14, (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_); + } + if (outputResultCase_ == 15) { + output.writeMessage(15, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (eventVersion_ != 0) { + output.writeInt32(16, eventVersion_); + } + if (isParent_ != false) { + output.writeBool(17, isParent_); + } + if (isDynamic_ != false) { + output.writeBool(18, isDynamic_); + } + if (!getDeckUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, deckUri_); + } + if (inputValueCase_ == 20) { + output.writeMessage(20, (flyteidl.core.Literals.LiteralMap) inputValue_); + } + if (reportedAt_ != null) { + output.writeMessage(21, getReportedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (inputValueCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputValue_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outputResult_); + } + if (outputResultCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getParentTaskMetadata()); + } + if (parentNodeMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getParentNodeMetadata()); + } + if (!getRetryGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, retryGroup_); + } + if (!getSpecNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, specNodeId_); + } + if (!getNodeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, nodeName_); + } + if (targetMetadataCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_); + } + if (outputResultCase_ == 15) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (eventVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(16, eventVersion_); + } + if (isParent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(17, isParent_); + } + if (isDynamic_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(18, isDynamic_); + } + if (!getDeckUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, deckUri_); + } + if (inputValueCase_ == 20) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, (flyteidl.core.Literals.LiteralMap) inputValue_); + } + if (reportedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getReportedAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.NodeExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.NodeExecutionEvent other = (flyteidl.event.Event.NodeExecutionEvent) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (phase_ != other.phase_) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (hasParentTaskMetadata() != other.hasParentTaskMetadata()) return false; + if (hasParentTaskMetadata()) { + if (!getParentTaskMetadata() + .equals(other.getParentTaskMetadata())) return false; + } + if (hasParentNodeMetadata() != other.hasParentNodeMetadata()) return false; + if (hasParentNodeMetadata()) { + if (!getParentNodeMetadata() + .equals(other.getParentNodeMetadata())) return false; + } + if (!getRetryGroup() + .equals(other.getRetryGroup())) return false; + if (!getSpecNodeId() + .equals(other.getSpecNodeId())) return false; + if (!getNodeName() + .equals(other.getNodeName())) return false; + if (getEventVersion() + != other.getEventVersion()) return false; + if (getIsParent() + != other.getIsParent()) return false; + if (getIsDynamic() + != other.getIsDynamic()) return false; + if (!getDeckUri() + .equals(other.getDeckUri())) return false; + if (hasReportedAt() != other.hasReportedAt()) return false; + if (hasReportedAt()) { + if (!getReportedAt() + .equals(other.getReportedAt())) return false; + } + if (!getInputValueCase().equals(other.getInputValueCase())) return false; + switch (inputValueCase_) { + case 5: + if (!getInputUri() + .equals(other.getInputUri())) return false; + break; + case 20: + if (!getInputData() + .equals(other.getInputData())) return false; + break; + case 0: + default: + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 6: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 7: + if (!getError() + .equals(other.getError())) return false; + break; + case 15: + if (!getOutputData() + .equals(other.getOutputData())) return false; + break; + case 0: + default: + } + if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; + switch (targetMetadataCase_) { + case 8: + if (!getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata())) return false; + break; + case 14: + if (!getTaskNodeMetadata() + .equals(other.getTaskNodeMetadata())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + if (hasParentTaskMetadata()) { + hash = (37 * hash) + PARENT_TASK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getParentTaskMetadata().hashCode(); + } + if (hasParentNodeMetadata()) { + hash = (37 * hash) + PARENT_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeMetadata().hashCode(); + } + hash = (37 * hash) + RETRY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getRetryGroup().hashCode(); + hash = (37 * hash) + SPEC_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSpecNodeId().hashCode(); + hash = (37 * hash) + NODE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNodeName().hashCode(); + hash = (37 * hash) + EVENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getEventVersion(); + hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsParent()); + hash = (37 * hash) + IS_DYNAMIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDynamic()); + hash = (37 * hash) + DECK_URI_FIELD_NUMBER; + hash = (53 * hash) + getDeckUri().hashCode(); + if (hasReportedAt()) { + hash = (37 * hash) + REPORTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getReportedAt().hashCode(); + } + switch (inputValueCase_) { + case 5: + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + break; + case 20: + hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getInputData().hashCode(); + break; + case 0: + default: + } + switch (outputResultCase_) { + case 6: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 7: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 15: + hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOutputData().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 14: + hash = (37 * hash) + TASK_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTaskNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.NodeExecutionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.event.NodeExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.NodeExecutionEvent) + flyteidl.event.Event.NodeExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.NodeExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + if (parentNodeMetadataBuilder_ == null) { + parentNodeMetadata_ = null; + } else { + parentNodeMetadata_ = null; + parentNodeMetadataBuilder_ = null; + } + retryGroup_ = ""; + + specNodeId_ = ""; + + nodeName_ = ""; + + eventVersion_ = 0; + + isParent_ = false; + + isDynamic_ = false; + + deckUri_ = ""; + + if (reportedAtBuilder_ == null) { + reportedAt_ = null; + } else { + reportedAt_ = null; + reportedAtBuilder_ = null; + } + inputValueCase_ = 0; + inputValue_ = null; + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent build() { + flyteidl.event.Event.NodeExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent buildPartial() { + flyteidl.event.Event.NodeExecutionEvent result = new flyteidl.event.Event.NodeExecutionEvent(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + if (inputValueCase_ == 5) { + result.inputValue_ = inputValue_; + } + if (inputValueCase_ == 20) { + if (inputDataBuilder_ == null) { + result.inputValue_ = inputValue_; + } else { + result.inputValue_ = inputDataBuilder_.build(); + } + } + if (outputResultCase_ == 6) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 7) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 15) { + if (outputDataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputDataBuilder_.build(); + } + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + if (targetMetadataCase_ == 14) { + if (taskNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = taskNodeMetadataBuilder_.build(); + } + } + if (parentTaskMetadataBuilder_ == null) { + result.parentTaskMetadata_ = parentTaskMetadata_; + } else { + result.parentTaskMetadata_ = parentTaskMetadataBuilder_.build(); + } + if (parentNodeMetadataBuilder_ == null) { + result.parentNodeMetadata_ = parentNodeMetadata_; + } else { + result.parentNodeMetadata_ = parentNodeMetadataBuilder_.build(); + } + result.retryGroup_ = retryGroup_; + result.specNodeId_ = specNodeId_; + result.nodeName_ = nodeName_; + result.eventVersion_ = eventVersion_; + result.isParent_ = isParent_; + result.isDynamic_ = isDynamic_; + result.deckUri_ = deckUri_; + if (reportedAtBuilder_ == null) { + result.reportedAt_ = reportedAt_; + } else { + result.reportedAt_ = reportedAtBuilder_.build(); + } + result.inputValueCase_ = inputValueCase_; + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.NodeExecutionEvent) { + return mergeFrom((flyteidl.event.Event.NodeExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.NodeExecutionEvent other) { + if (other == flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (other.hasParentTaskMetadata()) { + mergeParentTaskMetadata(other.getParentTaskMetadata()); + } + if (other.hasParentNodeMetadata()) { + mergeParentNodeMetadata(other.getParentNodeMetadata()); + } + if (!other.getRetryGroup().isEmpty()) { + retryGroup_ = other.retryGroup_; + onChanged(); + } + if (!other.getSpecNodeId().isEmpty()) { + specNodeId_ = other.specNodeId_; + onChanged(); + } + if (!other.getNodeName().isEmpty()) { + nodeName_ = other.nodeName_; + onChanged(); + } + if (other.getEventVersion() != 0) { + setEventVersion(other.getEventVersion()); + } + if (other.getIsParent() != false) { + setIsParent(other.getIsParent()); + } + if (other.getIsDynamic() != false) { + setIsDynamic(other.getIsDynamic()); + } + if (!other.getDeckUri().isEmpty()) { + deckUri_ = other.deckUri_; + onChanged(); + } + if (other.hasReportedAt()) { + mergeReportedAt(other.getReportedAt()); + } + switch (other.getInputValueCase()) { + case INPUT_URI: { + inputValueCase_ = 5; + inputValue_ = other.inputValue_; + onChanged(); + break; + } + case INPUT_DATA: { + mergeInputData(other.getInputData()); + break; + } + case INPUTVALUE_NOT_SET: { + break; + } + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 6; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUT_DATA: { + mergeOutputData(other.getOutputData()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TASK_NODE_METADATA: { + mergeTaskNodeMetadata(other.getTaskNodeMetadata()); + break; + } + case TARGETMETADATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.NodeExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.NodeExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int inputValueCase_ = 0; + private java.lang.Object inputValue_; + public InputValueCase + getInputValueCase() { + return InputValueCase.forNumber( + inputValueCase_); + } + + public Builder clearInputValue() { + inputValueCase_ = 0; + inputValue_ = null; + onChanged(); + return this; + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = ""; + if (inputValueCase_ == 5) { + ref = inputValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputValueCase_ == 5) { + inputValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = ""; + if (inputValueCase_ == 5) { + ref = inputValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (inputValueCase_ == 5) { + inputValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string input_uri = 5; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputValueCase_ = 5; + inputValue_ = value; + onChanged(); + return this; + } + /** + * string input_uri = 5; + */ + public Builder clearInputUri() { + if (inputValueCase_ == 5) { + inputValueCase_ = 0; + inputValue_ = null; + onChanged(); + } + return this; + } + /** + * string input_uri = 5; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputValueCase_ = 5; + inputValue_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputDataBuilder_; + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public boolean hasInputData() { + return inputValueCase_ == 20; + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public flyteidl.core.Literals.LiteralMap getInputData() { + if (inputDataBuilder_ == null) { + if (inputValueCase_ == 20) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (inputValueCase_ == 20) { + return inputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public Builder setInputData(flyteidl.core.Literals.LiteralMap value) { + if (inputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputValue_ = value; + onChanged(); + } else { + inputDataBuilder_.setMessage(value); + } + inputValueCase_ = 20; + return this; + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public Builder setInputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputDataBuilder_ == null) { + inputValue_ = builderForValue.build(); + onChanged(); + } else { + inputDataBuilder_.setMessage(builderForValue.build()); + } + inputValueCase_ = 20; + return this; + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public Builder mergeInputData(flyteidl.core.Literals.LiteralMap value) { + if (inputDataBuilder_ == null) { + if (inputValueCase_ == 20 && + inputValue_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + inputValue_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) inputValue_) + .mergeFrom(value).buildPartial(); + } else { + inputValue_ = value; + } + onChanged(); + } else { + if (inputValueCase_ == 20) { + inputDataBuilder_.mergeFrom(value); + } + inputDataBuilder_.setMessage(value); + } + inputValueCase_ = 20; + return this; + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public Builder clearInputData() { + if (inputDataBuilder_ == null) { + if (inputValueCase_ == 20) { + inputValueCase_ = 0; + inputValue_ = null; + onChanged(); + } + } else { + if (inputValueCase_ == 20) { + inputValueCase_ = 0; + inputValue_ = null; + } + inputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputDataBuilder() { + return getInputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { + if ((inputValueCase_ == 20) && (inputDataBuilder_ != null)) { + return inputDataBuilder_.getMessageOrBuilder(); + } else { + if (inputValueCase_ == 20) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw input data consumed by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputDataFieldBuilder() { + if (inputDataBuilder_ == null) { + if (!(inputValueCase_ == 20)) { + inputValue_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + inputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) inputValue_, + getParentForChildren(), + isClean()); + inputValue_ = null; + } + inputValueCase_ = 20; + onChanged();; + return inputDataBuilder_; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 7) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 7) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 7) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 7)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 7; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public boolean hasOutputData() { + return outputResultCase_ == 15; + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 15) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (outputResultCase_ == 15) { + return outputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 15; + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public Builder setOutputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputDataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputDataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 15; + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 15 && + outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 15) { + outputDataBuilder_.mergeFrom(value); + } + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 15; + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public Builder clearOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 15) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 15) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { + return getOutputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if ((outputResultCase_ == 15) && (outputDataBuilder_ != null)) { + return outputDataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 15) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this node execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputDataFieldBuilder() { + if (outputDataBuilder_ == null) { + if (!(outputResultCase_ == 15)) { + outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 15; + onChanged();; + return outputDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.event.Event.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.newBuilder((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder>( + (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskNodeMetadata, flyteidl.event.Event.TaskNodeMetadata.Builder, flyteidl.event.Event.TaskNodeMetadataOrBuilder> taskNodeMetadataBuilder_; + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public boolean hasTaskNodeMetadata() { + return targetMetadataCase_ == 14; + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public flyteidl.event.Event.TaskNodeMetadata getTaskNodeMetadata() { + if (taskNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 14) { + return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 14) { + return taskNodeMetadataBuilder_.getMessage(); + } + return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public Builder setTaskNodeMetadata(flyteidl.event.Event.TaskNodeMetadata value) { + if (taskNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + taskNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 14; + return this; + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public Builder setTaskNodeMetadata( + flyteidl.event.Event.TaskNodeMetadata.Builder builderForValue) { + if (taskNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + taskNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 14; + return this; + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public Builder mergeTaskNodeMetadata(flyteidl.event.Event.TaskNodeMetadata value) { + if (taskNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 14 && + targetMetadata_ != flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.event.Event.TaskNodeMetadata.newBuilder((flyteidl.event.Event.TaskNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 14) { + taskNodeMetadataBuilder_.mergeFrom(value); + } + taskNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 14; + return this; + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public Builder clearTaskNodeMetadata() { + if (taskNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 14) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 14) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + taskNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public flyteidl.event.Event.TaskNodeMetadata.Builder getTaskNodeMetadataBuilder() { + return getTaskNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + public flyteidl.event.Event.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 14) && (taskNodeMetadataBuilder_ != null)) { + return taskNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 14) { + return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskNodeMetadata, flyteidl.event.Event.TaskNodeMetadata.Builder, flyteidl.event.Event.TaskNodeMetadataOrBuilder> + getTaskNodeMetadataFieldBuilder() { + if (taskNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 14)) { + targetMetadata_ = flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); + } + taskNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskNodeMetadata, flyteidl.event.Event.TaskNodeMetadata.Builder, flyteidl.event.Event.TaskNodeMetadataOrBuilder>( + (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 14; + onChanged();; + return taskNodeMetadataBuilder_; + } + + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> parentTaskMetadataBuilder_; + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadataBuilder_ != null || parentTaskMetadata_ != null; + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } else { + return parentTaskMetadataBuilder_.getMessage(); + } + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentTaskMetadata_ = value; + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata( + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder builderForValue) { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = builderForValue.build(); + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder mergeParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (parentTaskMetadata_ != null) { + parentTaskMetadata_ = + flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder(parentTaskMetadata_).mergeFrom(value).buildPartial(); + } else { + parentTaskMetadata_ = value; + } + onChanged(); + } else { + parentTaskMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder clearParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + onChanged(); + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata.Builder getParentTaskMetadataBuilder() { + + onChanged(); + return getParentTaskMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + if (parentTaskMetadataBuilder_ != null) { + return parentTaskMetadataBuilder_.getMessageOrBuilder(); + } else { + return parentTaskMetadata_ == null ? + flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + } + /** + *
+       * [To be deprecated] Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> + getParentTaskMetadataFieldBuilder() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder>( + getParentTaskMetadata(), + getParentForChildren(), + isClean()); + parentTaskMetadata_ = null; + } + return parentTaskMetadataBuilder_; + } + + private flyteidl.event.Event.ParentNodeExecutionMetadata parentNodeMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentNodeExecutionMetadata, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder, flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder> parentNodeMetadataBuilder_; + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public boolean hasParentNodeMetadata() { + return parentNodeMetadataBuilder_ != null || parentNodeMetadata_ != null; + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public flyteidl.event.Event.ParentNodeExecutionMetadata getParentNodeMetadata() { + if (parentNodeMetadataBuilder_ == null) { + return parentNodeMetadata_ == null ? flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance() : parentNodeMetadata_; + } else { + return parentNodeMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public Builder setParentNodeMetadata(flyteidl.event.Event.ParentNodeExecutionMetadata value) { + if (parentNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeMetadata_ = value; + onChanged(); + } else { + parentNodeMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public Builder setParentNodeMetadata( + flyteidl.event.Event.ParentNodeExecutionMetadata.Builder builderForValue) { + if (parentNodeMetadataBuilder_ == null) { + parentNodeMetadata_ = builderForValue.build(); + onChanged(); + } else { + parentNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public Builder mergeParentNodeMetadata(flyteidl.event.Event.ParentNodeExecutionMetadata value) { + if (parentNodeMetadataBuilder_ == null) { + if (parentNodeMetadata_ != null) { + parentNodeMetadata_ = + flyteidl.event.Event.ParentNodeExecutionMetadata.newBuilder(parentNodeMetadata_).mergeFrom(value).buildPartial(); + } else { + parentNodeMetadata_ = value; + } + onChanged(); + } else { + parentNodeMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public Builder clearParentNodeMetadata() { + if (parentNodeMetadataBuilder_ == null) { + parentNodeMetadata_ = null; + onChanged(); + } else { + parentNodeMetadata_ = null; + parentNodeMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public flyteidl.event.Event.ParentNodeExecutionMetadata.Builder getParentNodeMetadataBuilder() { + + onChanged(); + return getParentNodeMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + public flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder getParentNodeMetadataOrBuilder() { + if (parentNodeMetadataBuilder_ != null) { + return parentNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + return parentNodeMetadata_ == null ? + flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance() : parentNodeMetadata_; + } + } + /** + *
+       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
+       * 
+ * + * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentNodeExecutionMetadata, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder, flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder> + getParentNodeMetadataFieldBuilder() { + if (parentNodeMetadataBuilder_ == null) { + parentNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentNodeExecutionMetadata, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder, flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder>( + getParentNodeMetadata(), + getParentForChildren(), + isClean()); + parentNodeMetadata_ = null; + } + return parentNodeMetadataBuilder_; + } + + private java.lang.Object retryGroup_ = ""; + /** + *
+       * Retry group to indicate grouping of nodes by retries
+       * 
+ * + * string retry_group = 11; + */ + public java.lang.String getRetryGroup() { + java.lang.Object ref = retryGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + retryGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Retry group to indicate grouping of nodes by retries
+       * 
+ * + * string retry_group = 11; + */ + public com.google.protobuf.ByteString + getRetryGroupBytes() { + java.lang.Object ref = retryGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + retryGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Retry group to indicate grouping of nodes by retries
+       * 
+ * + * string retry_group = 11; + */ + public Builder setRetryGroup( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + retryGroup_ = value; + onChanged(); + return this; + } + /** + *
+       * Retry group to indicate grouping of nodes by retries
+       * 
+ * + * string retry_group = 11; + */ + public Builder clearRetryGroup() { + + retryGroup_ = getDefaultInstance().getRetryGroup(); + onChanged(); + return this; + } + /** + *
+       * Retry group to indicate grouping of nodes by retries
+       * 
+ * + * string retry_group = 11; + */ + public Builder setRetryGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + retryGroup_ = value; + onChanged(); + return this; + } + + private java.lang.Object specNodeId_ = ""; + /** + *
+       * Identifier of the node in the original workflow/graph
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 12; + */ + public java.lang.String getSpecNodeId() { + java.lang.Object ref = specNodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + specNodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifier of the node in the original workflow/graph
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 12; + */ + public com.google.protobuf.ByteString + getSpecNodeIdBytes() { + java.lang.Object ref = specNodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + specNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifier of the node in the original workflow/graph
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 12; + */ + public Builder setSpecNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + specNodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifier of the node in the original workflow/graph
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 12; + */ + public Builder clearSpecNodeId() { + + specNodeId_ = getDefaultInstance().getSpecNodeId(); + onChanged(); + return this; + } + /** + *
+       * Identifier of the node in the original workflow/graph
+       * This maps to value of WorkflowTemplate.nodes[X].id
+       * 
+ * + * string spec_node_id = 12; + */ + public Builder setSpecNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + specNodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object nodeName_ = ""; + /** + *
+       * Friendly readable name for the node
+       * 
+ * + * string node_name = 13; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Friendly readable name for the node
+       * 
+ * + * string node_name = 13; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Friendly readable name for the node
+       * 
+ * + * string node_name = 13; + */ + public Builder setNodeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeName_ = value; + onChanged(); + return this; + } + /** + *
+       * Friendly readable name for the node
+       * 
+ * + * string node_name = 13; + */ + public Builder clearNodeName() { + + nodeName_ = getDefaultInstance().getNodeName(); + onChanged(); + return this; + } + /** + *
+       * Friendly readable name for the node
+       * 
+ * + * string node_name = 13; + */ + public Builder setNodeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeName_ = value; + onChanged(); + return this; + } + + private int eventVersion_ ; + /** + * int32 event_version = 16; + */ + public int getEventVersion() { + return eventVersion_; + } + /** + * int32 event_version = 16; + */ + public Builder setEventVersion(int value) { + + eventVersion_ = value; + onChanged(); + return this; + } + /** + * int32 event_version = 16; + */ + public Builder clearEventVersion() { + + eventVersion_ = 0; + onChanged(); + return this; + } + + private boolean isParent_ ; + /** + *
+       * Whether this node launched a subworkflow.
+       * 
+ * + * bool is_parent = 17; + */ + public boolean getIsParent() { + return isParent_; + } + /** + *
+       * Whether this node launched a subworkflow.
+       * 
+ * + * bool is_parent = 17; + */ + public Builder setIsParent(boolean value) { + + isParent_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this node launched a subworkflow.
+       * 
+ * + * bool is_parent = 17; + */ + public Builder clearIsParent() { + + isParent_ = false; + onChanged(); + return this; + } + + private boolean isDynamic_ ; + /** + *
+       * Whether this node yielded a dynamic workflow.
+       * 
+ * + * bool is_dynamic = 18; + */ + public boolean getIsDynamic() { + return isDynamic_; + } + /** + *
+       * Whether this node yielded a dynamic workflow.
+       * 
+ * + * bool is_dynamic = 18; + */ + public Builder setIsDynamic(boolean value) { + + isDynamic_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this node yielded a dynamic workflow.
+       * 
+ * + * bool is_dynamic = 18; + */ + public Builder clearIsDynamic() { + + isDynamic_ = false; + onChanged(); + return this; + } + + private java.lang.Object deckUri_ = ""; + /** + *
+       * String location uniquely identifying where the deck HTML file is
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 19; + */ + public java.lang.String getDeckUri() { + java.lang.Object ref = deckUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deckUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String location uniquely identifying where the deck HTML file is
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 19; + */ + public com.google.protobuf.ByteString + getDeckUriBytes() { + java.lang.Object ref = deckUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String location uniquely identifying where the deck HTML file is
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 19; + */ + public Builder setDeckUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deckUri_ = value; + onChanged(); + return this; + } + /** + *
+       * String location uniquely identifying where the deck HTML file is
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 19; + */ + public Builder clearDeckUri() { + + deckUri_ = getDefaultInstance().getDeckUri(); + onChanged(); + return this; + } + /** + *
+       * String location uniquely identifying where the deck HTML file is
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string deck_uri = 19; + */ + public Builder setDeckUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deckUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp reportedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> reportedAtBuilder_; + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public boolean hasReportedAt() { + return reportedAtBuilder_ != null || reportedAt_ != null; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public com.google.protobuf.Timestamp getReportedAt() { + if (reportedAtBuilder_ == null) { + return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; + } else { + return reportedAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public Builder setReportedAt(com.google.protobuf.Timestamp value) { + if (reportedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportedAt_ = value; + onChanged(); + } else { + reportedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public Builder setReportedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (reportedAtBuilder_ == null) { + reportedAt_ = builderForValue.build(); + onChanged(); + } else { + reportedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public Builder mergeReportedAt(com.google.protobuf.Timestamp value) { + if (reportedAtBuilder_ == null) { + if (reportedAt_ != null) { + reportedAt_ = + com.google.protobuf.Timestamp.newBuilder(reportedAt_).mergeFrom(value).buildPartial(); + } else { + reportedAt_ = value; + } + onChanged(); + } else { + reportedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public Builder clearReportedAt() { + if (reportedAtBuilder_ == null) { + reportedAt_ = null; + onChanged(); + } else { + reportedAt_ = null; + reportedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public com.google.protobuf.Timestamp.Builder getReportedAtBuilder() { + + onChanged(); + return getReportedAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { + if (reportedAtBuilder_ != null) { + return reportedAtBuilder_.getMessageOrBuilder(); + } else { + return reportedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; + } + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example,
+       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
+       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
+       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getReportedAtFieldBuilder() { + if (reportedAtBuilder_ == null) { + reportedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReportedAt(), + getParentForChildren(), + isClean()); + reportedAt_ = null; + } + return reportedAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.NodeExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) + private static final flyteidl.event.Event.NodeExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.NodeExecutionEvent(); + } + + public static flyteidl.event.Event.NodeExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * For Workflow Nodes we need to send information about the workflow that's launched
+   * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowNodeMetadata other = (flyteidl.event.Event.WorkflowNodeMetadata) obj; + + if (hasExecutionId() != other.hasExecutionId()) return false; + if (hasExecutionId()) { + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.WorkflowNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * For Workflow Nodes we need to send information about the workflow that's launched
+     * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowNodeMetadata) + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata build() { + flyteidl.event.Event.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata buildPartial() { + flyteidl.event.Event.WorkflowNodeMetadata result = new flyteidl.event.Event.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowNodeMetadata other) { + if (other == flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) + private static final flyteidl.event.Event.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowNodeMetadata(); + } + + public static flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + int getCacheStatusValue(); + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus(); + + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + boolean hasCatalogKey(); + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + flyteidl.core.Catalog.CatalogMetadata getCatalogKey(); + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder(); + + /** + *
+     * Captures the status of cache reservations for this execution.
+     * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + int getReservationStatusValue(); + /** + *
+     * Captures the status of cache reservations for this execution.
+     * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + flyteidl.core.Catalog.CatalogReservation.Status getReservationStatus(); + + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + java.lang.String getCheckpointUri(); + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + com.google.protobuf.ByteString + getCheckpointUriBytes(); + + /** + *
+     * In the case this task launched a dynamic workflow we capture its structure here.
+     * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + boolean hasDynamicWorkflow(); + /** + *
+     * In the case this task launched a dynamic workflow we capture its structure here.
+     * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + flyteidl.event.Event.DynamicWorkflowNodeMetadata getDynamicWorkflow(); + /** + *
+     * In the case this task launched a dynamic workflow we capture its structure here.
+     * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.event.TaskNodeMetadata} + */ + public static final class TaskNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.TaskNodeMetadata) + TaskNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskNodeMetadata.newBuilder() to construct. + private TaskNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskNodeMetadata() { + cacheStatus_ = 0; + reservationStatus_ = 0; + checkpointUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskNodeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + cacheStatus_ = rawValue; + break; + } + case 18: { + flyteidl.core.Catalog.CatalogMetadata.Builder subBuilder = null; + if (catalogKey_ != null) { + subBuilder = catalogKey_.toBuilder(); + } + catalogKey_ = input.readMessage(flyteidl.core.Catalog.CatalogMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(catalogKey_); + catalogKey_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + reservationStatus_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + checkpointUri_ = s; + break; + } + case 130: { + flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder subBuilder = null; + if (dynamicWorkflow_ != null) { + subBuilder = dynamicWorkflow_.toBuilder(); + } + dynamicWorkflow_ = input.readMessage(flyteidl.event.Event.DynamicWorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dynamicWorkflow_); + dynamicWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskNodeMetadata.class, flyteidl.event.Event.TaskNodeMetadata.Builder.class); + } + + public static final int CACHE_STATUS_FIELD_NUMBER = 1; + private int cacheStatus_; + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public int getCacheStatusValue() { + return cacheStatus_; + } + /** + *
+     * Captures the status of caching for this execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); + return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; + } + + public static final int CATALOG_KEY_FIELD_NUMBER = 2; + private flyteidl.core.Catalog.CatalogMetadata catalogKey_; + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public boolean hasCatalogKey() { + return catalogKey_ != null; + } + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { + return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; + } + /** + *
+     * This structure carries the catalog artifact information
+     * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { + return getCatalogKey(); + } + + public static final int RESERVATION_STATUS_FIELD_NUMBER = 3; + private int reservationStatus_; + /** + *
+     * Captures the status of cache reservations for this execution.
+     * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + public int getReservationStatusValue() { + return reservationStatus_; + } + /** + *
+     * Captures the status of cache reservations for this execution.
+     * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + public flyteidl.core.Catalog.CatalogReservation.Status getReservationStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogReservation.Status result = flyteidl.core.Catalog.CatalogReservation.Status.valueOf(reservationStatus_); + return result == null ? flyteidl.core.Catalog.CatalogReservation.Status.UNRECOGNIZED : result; + } + + public static final int CHECKPOINT_URI_FIELD_NUMBER = 4; + private volatile java.lang.Object checkpointUri_; + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + public java.lang.String getCheckpointUri() { + java.lang.Object ref = checkpointUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointUri_ = s; + return s; + } + } + /** + *
+     * The latest checkpoint location
+     * 
+ * + * string checkpoint_uri = 4; + */ + public com.google.protobuf.ByteString + getCheckpointUriBytes() { + java.lang.Object ref = checkpointUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DYNAMIC_WORKFLOW_FIELD_NUMBER = 16; + private flyteidl.event.Event.DynamicWorkflowNodeMetadata dynamicWorkflow_; + /** + *
+     * In the case this task launched a dynamic workflow we capture its structure here.
+     * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public boolean hasDynamicWorkflow() { + return dynamicWorkflow_ != null; + } + /** + *
+     * In the case this task launched a dynamic workflow we capture its structure here.
+     * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.event.Event.DynamicWorkflowNodeMetadata getDynamicWorkflow() { + return dynamicWorkflow_ == null ? flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; + } + /** + *
+     * In the case this task launched a dynamic workflow we capture its structure here.
+     * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { + return getDynamicWorkflow(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { + output.writeEnum(1, cacheStatus_); + } + if (catalogKey_ != null) { + output.writeMessage(2, getCatalogKey()); + } + if (reservationStatus_ != flyteidl.core.Catalog.CatalogReservation.Status.RESERVATION_DISABLED.getNumber()) { + output.writeEnum(3, reservationStatus_); + } + if (!getCheckpointUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, checkpointUri_); + } + if (dynamicWorkflow_ != null) { + output.writeMessage(16, getDynamicWorkflow()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, cacheStatus_); + } + if (catalogKey_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCatalogKey()); + } + if (reservationStatus_ != flyteidl.core.Catalog.CatalogReservation.Status.RESERVATION_DISABLED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, reservationStatus_); + } + if (!getCheckpointUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, checkpointUri_); + } + if (dynamicWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getDynamicWorkflow()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.TaskNodeMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.TaskNodeMetadata other = (flyteidl.event.Event.TaskNodeMetadata) obj; + + if (cacheStatus_ != other.cacheStatus_) return false; + if (hasCatalogKey() != other.hasCatalogKey()) return false; + if (hasCatalogKey()) { + if (!getCatalogKey() + .equals(other.getCatalogKey())) return false; + } + if (reservationStatus_ != other.reservationStatus_) return false; + if (!getCheckpointUri() + .equals(other.getCheckpointUri())) return false; + if (hasDynamicWorkflow() != other.hasDynamicWorkflow()) return false; + if (hasDynamicWorkflow()) { + if (!getDynamicWorkflow() + .equals(other.getDynamicWorkflow())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CACHE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + cacheStatus_; + if (hasCatalogKey()) { + hash = (37 * hash) + CATALOG_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCatalogKey().hashCode(); + } + hash = (37 * hash) + RESERVATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + reservationStatus_; + hash = (37 * hash) + CHECKPOINT_URI_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointUri().hashCode(); + if (hasDynamicWorkflow()) { + hash = (37 * hash) + DYNAMIC_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getDynamicWorkflow().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.TaskNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskNodeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.TaskNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.event.TaskNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskNodeMetadata) + flyteidl.event.Event.TaskNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskNodeMetadata.class, flyteidl.event.Event.TaskNodeMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.TaskNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + cacheStatus_ = 0; + + if (catalogKeyBuilder_ == null) { + catalogKey_ = null; + } else { + catalogKey_ = null; + catalogKeyBuilder_ = null; + } + reservationStatus_ = 0; + + checkpointUri_ = ""; + + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflow_ = null; + } else { + dynamicWorkflow_ = null; + dynamicWorkflowBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.TaskNodeMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.TaskNodeMetadata build() { + flyteidl.event.Event.TaskNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.TaskNodeMetadata buildPartial() { + flyteidl.event.Event.TaskNodeMetadata result = new flyteidl.event.Event.TaskNodeMetadata(this); + result.cacheStatus_ = cacheStatus_; + if (catalogKeyBuilder_ == null) { + result.catalogKey_ = catalogKey_; + } else { + result.catalogKey_ = catalogKeyBuilder_.build(); + } + result.reservationStatus_ = reservationStatus_; + result.checkpointUri_ = checkpointUri_; + if (dynamicWorkflowBuilder_ == null) { + result.dynamicWorkflow_ = dynamicWorkflow_; + } else { + result.dynamicWorkflow_ = dynamicWorkflowBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.TaskNodeMetadata) { + return mergeFrom((flyteidl.event.Event.TaskNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.TaskNodeMetadata other) { + if (other == flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance()) return this; + if (other.cacheStatus_ != 0) { + setCacheStatusValue(other.getCacheStatusValue()); + } + if (other.hasCatalogKey()) { + mergeCatalogKey(other.getCatalogKey()); + } + if (other.reservationStatus_ != 0) { + setReservationStatusValue(other.getReservationStatusValue()); + } + if (!other.getCheckpointUri().isEmpty()) { + checkpointUri_ = other.checkpointUri_; + onChanged(); + } + if (other.hasDynamicWorkflow()) { + mergeDynamicWorkflow(other.getDynamicWorkflow()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.TaskNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.TaskNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int cacheStatus_ = 0; + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public int getCacheStatusValue() { + return cacheStatus_; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public Builder setCacheStatusValue(int value) { + cacheStatus_ = value; + onChanged(); + return this; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); + return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public Builder setCacheStatus(flyteidl.core.Catalog.CatalogCacheStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + cacheStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Captures the status of caching for this execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + public Builder clearCacheStatus() { + + cacheStatus_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Catalog.CatalogMetadata catalogKey_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> catalogKeyBuilder_; + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public boolean hasCatalogKey() { + return catalogKeyBuilder_ != null || catalogKey_ != null; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { + if (catalogKeyBuilder_ == null) { + return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; + } else { + return catalogKeyBuilder_.getMessage(); + } + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder setCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { + if (catalogKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + catalogKey_ = value; + onChanged(); + } else { + catalogKeyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder setCatalogKey( + flyteidl.core.Catalog.CatalogMetadata.Builder builderForValue) { + if (catalogKeyBuilder_ == null) { + catalogKey_ = builderForValue.build(); + onChanged(); + } else { + catalogKeyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder mergeCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { + if (catalogKeyBuilder_ == null) { + if (catalogKey_ != null) { + catalogKey_ = + flyteidl.core.Catalog.CatalogMetadata.newBuilder(catalogKey_).mergeFrom(value).buildPartial(); + } else { + catalogKey_ = value; + } + onChanged(); + } else { + catalogKeyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public Builder clearCatalogKey() { + if (catalogKeyBuilder_ == null) { + catalogKey_ = null; + onChanged(); + } else { + catalogKey_ = null; + catalogKeyBuilder_ = null; + } + + return this; + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadata.Builder getCatalogKeyBuilder() { + + onChanged(); + return getCatalogKeyFieldBuilder().getBuilder(); + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { + if (catalogKeyBuilder_ != null) { + return catalogKeyBuilder_.getMessageOrBuilder(); + } else { + return catalogKey_ == null ? + flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; + } + } + /** + *
+       * This structure carries the catalog artifact information
+       * 
+ * + * .flyteidl.core.CatalogMetadata catalog_key = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> + getCatalogKeyFieldBuilder() { + if (catalogKeyBuilder_ == null) { + catalogKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder>( + getCatalogKey(), + getParentForChildren(), + isClean()); + catalogKey_ = null; + } + return catalogKeyBuilder_; + } + + private int reservationStatus_ = 0; + /** + *
+       * Captures the status of cache reservations for this execution.
+       * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + public int getReservationStatusValue() { + return reservationStatus_; + } + /** + *
+       * Captures the status of cache reservations for this execution.
+       * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + public Builder setReservationStatusValue(int value) { + reservationStatus_ = value; + onChanged(); + return this; + } + /** + *
+       * Captures the status of cache reservations for this execution.
+       * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + public flyteidl.core.Catalog.CatalogReservation.Status getReservationStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogReservation.Status result = flyteidl.core.Catalog.CatalogReservation.Status.valueOf(reservationStatus_); + return result == null ? flyteidl.core.Catalog.CatalogReservation.Status.UNRECOGNIZED : result; + } + /** + *
+       * Captures the status of cache reservations for this execution.
+       * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + public Builder setReservationStatus(flyteidl.core.Catalog.CatalogReservation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + reservationStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Captures the status of cache reservations for this execution.
+       * 
+ * + * .flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + public Builder clearReservationStatus() { + + reservationStatus_ = 0; + onChanged(); + return this; + } + + private java.lang.Object checkpointUri_ = ""; + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public java.lang.String getCheckpointUri() { + java.lang.Object ref = checkpointUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public com.google.protobuf.ByteString + getCheckpointUriBytes() { + java.lang.Object ref = checkpointUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkpointUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public Builder setCheckpointUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + checkpointUri_ = value; + onChanged(); + return this; + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public Builder clearCheckpointUri() { + + checkpointUri_ = getDefaultInstance().getCheckpointUri(); + onChanged(); + return this; + } + /** + *
+       * The latest checkpoint location
+       * 
+ * + * string checkpoint_uri = 4; + */ + public Builder setCheckpointUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + checkpointUri_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.DynamicWorkflowNodeMetadata dynamicWorkflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.DynamicWorkflowNodeMetadata, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder, flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder> dynamicWorkflowBuilder_; + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public boolean hasDynamicWorkflow() { + return dynamicWorkflowBuilder_ != null || dynamicWorkflow_ != null; + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.event.Event.DynamicWorkflowNodeMetadata getDynamicWorkflow() { + if (dynamicWorkflowBuilder_ == null) { + return dynamicWorkflow_ == null ? flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; + } else { + return dynamicWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder setDynamicWorkflow(flyteidl.event.Event.DynamicWorkflowNodeMetadata value) { + if (dynamicWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dynamicWorkflow_ = value; + onChanged(); + } else { + dynamicWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder setDynamicWorkflow( + flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder builderForValue) { + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflow_ = builderForValue.build(); + onChanged(); + } else { + dynamicWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder mergeDynamicWorkflow(flyteidl.event.Event.DynamicWorkflowNodeMetadata value) { + if (dynamicWorkflowBuilder_ == null) { + if (dynamicWorkflow_ != null) { + dynamicWorkflow_ = + flyteidl.event.Event.DynamicWorkflowNodeMetadata.newBuilder(dynamicWorkflow_).mergeFrom(value).buildPartial(); + } else { + dynamicWorkflow_ = value; + } + onChanged(); + } else { + dynamicWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public Builder clearDynamicWorkflow() { + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflow_ = null; + onChanged(); + } else { + dynamicWorkflow_ = null; + dynamicWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder getDynamicWorkflowBuilder() { + + onChanged(); + return getDynamicWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + public flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { + if (dynamicWorkflowBuilder_ != null) { + return dynamicWorkflowBuilder_.getMessageOrBuilder(); + } else { + return dynamicWorkflow_ == null ? + flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; + } + } + /** + *
+       * In the case this task launched a dynamic workflow we capture its structure here.
+       * 
+ * + * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.DynamicWorkflowNodeMetadata, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder, flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder> + getDynamicWorkflowFieldBuilder() { + if (dynamicWorkflowBuilder_ == null) { + dynamicWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.DynamicWorkflowNodeMetadata, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder, flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder>( + getDynamicWorkflow(), + getParentForChildren(), + isClean()); + dynamicWorkflow_ = null; + } + return dynamicWorkflowBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.TaskNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskNodeMetadata) + private static final flyteidl.event.Event.TaskNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.TaskNodeMetadata(); + } + + public static flyteidl.event.Event.TaskNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.TaskNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DynamicWorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.DynamicWorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + boolean hasCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); + + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the workflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + java.lang.String getDynamicJobSpecUri(); + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the workflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + com.google.protobuf.ByteString + getDynamicJobSpecUriBytes(); + } + /** + *
+   * For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated.
+   * 
+ * + * Protobuf type {@code flyteidl.event.DynamicWorkflowNodeMetadata} + */ + public static final class DynamicWorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.DynamicWorkflowNodeMetadata) + DynamicWorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicWorkflowNodeMetadata.newBuilder() to construct. + private DynamicWorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DynamicWorkflowNodeMetadata() { + dynamicJobSpecUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DynamicWorkflowNodeMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; + if (compiledWorkflow_ != null) { + subBuilder = compiledWorkflow_.toBuilder(); + } + compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledWorkflow_); + compiledWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + dynamicJobSpecUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.DynamicWorkflowNodeMetadata.class, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 2; + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflow_ != null; + } + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + /** + *
+     * Represents the compiled representation of the embedded dynamic workflow.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + return getCompiledWorkflow(); + } + + public static final int DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object dynamicJobSpecUri_; + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the workflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public java.lang.String getDynamicJobSpecUri() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dynamicJobSpecUri_ = s; + return s; + } + } + /** + *
+     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+     * required to correctly recover partially completed executions where the workflow has already been compiled.
+     * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public com.google.protobuf.ByteString + getDynamicJobSpecUriBytes() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dynamicJobSpecUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (compiledWorkflow_ != null) { + output.writeMessage(2, getCompiledWorkflow()); + } + if (!getDynamicJobSpecUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dynamicJobSpecUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (compiledWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCompiledWorkflow()); + } + if (!getDynamicJobSpecUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dynamicJobSpecUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.DynamicWorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.DynamicWorkflowNodeMetadata other = (flyteidl.event.Event.DynamicWorkflowNodeMetadata) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; + if (hasCompiledWorkflow()) { + if (!getCompiledWorkflow() + .equals(other.getCompiledWorkflow())) return false; + } + if (!getDynamicJobSpecUri() + .equals(other.getDynamicJobSpecUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasCompiledWorkflow()) { + hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCompiledWorkflow().hashCode(); + } + hash = (37 * hash) + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER; + hash = (53 * hash) + getDynamicJobSpecUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.DynamicWorkflowNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated.
+     * 
+ * + * Protobuf type {@code flyteidl.event.DynamicWorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.DynamicWorkflowNodeMetadata) + flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.DynamicWorkflowNodeMetadata.class, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.DynamicWorkflowNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + dynamicJobSpecUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.DynamicWorkflowNodeMetadata build() { + flyteidl.event.Event.DynamicWorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.DynamicWorkflowNodeMetadata buildPartial() { + flyteidl.event.Event.DynamicWorkflowNodeMetadata result = new flyteidl.event.Event.DynamicWorkflowNodeMetadata(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (compiledWorkflowBuilder_ == null) { + result.compiledWorkflow_ = compiledWorkflow_; + } else { + result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); + } + result.dynamicJobSpecUri_ = dynamicJobSpecUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.DynamicWorkflowNodeMetadata) { + return mergeFrom((flyteidl.event.Event.DynamicWorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.DynamicWorkflowNodeMetadata other) { + if (other == flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasCompiledWorkflow()) { + mergeCompiledWorkflow(other.getCompiledWorkflow()); + } + if (!other.getDynamicJobSpecUri().isEmpty()) { + dynamicJobSpecUri_ = other.dynamicJobSpecUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.DynamicWorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.DynamicWorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } else { + return compiledWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledWorkflow_ = value; + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder setCompiledWorkflow( + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = builderForValue.build(); + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (compiledWorkflow_ != null) { + compiledWorkflow_ = + flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); + } else { + compiledWorkflow_ = value; + } + onChanged(); + } else { + compiledWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public Builder clearCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + onChanged(); + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { + + onChanged(); + return getCompiledWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + if (compiledWorkflowBuilder_ != null) { + return compiledWorkflowBuilder_.getMessageOrBuilder(); + } else { + return compiledWorkflow_ == null ? + flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + } + /** + *
+       * Represents the compiled representation of the embedded dynamic workflow.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> + getCompiledWorkflowFieldBuilder() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( + getCompiledWorkflow(), + getParentForChildren(), + isClean()); + compiledWorkflow_ = null; + } + return compiledWorkflowBuilder_; + } + + private java.lang.Object dynamicJobSpecUri_ = ""; + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the workflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public java.lang.String getDynamicJobSpecUri() { + java.lang.Object ref = dynamicJobSpecUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dynamicJobSpecUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the workflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public com.google.protobuf.ByteString + getDynamicJobSpecUriBytes() { + java.lang.Object ref = dynamicJobSpecUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dynamicJobSpecUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the workflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public Builder setDynamicJobSpecUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dynamicJobSpecUri_ = value; + onChanged(); + return this; + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the workflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public Builder clearDynamicJobSpecUri() { + + dynamicJobSpecUri_ = getDefaultInstance().getDynamicJobSpecUri(); + onChanged(); + return this; + } + /** + *
+       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
+       * required to correctly recover partially completed executions where the workflow has already been compiled.
+       * 
+ * + * string dynamic_job_spec_uri = 3; + */ + public Builder setDynamicJobSpecUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dynamicJobSpecUri_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.DynamicWorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.DynamicWorkflowNodeMetadata) + private static final flyteidl.event.Event.DynamicWorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.DynamicWorkflowNodeMetadata(); + } + + public static flyteidl.event.Event.DynamicWorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DynamicWorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DynamicWorkflowNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParentTaskExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentTaskExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class ParentTaskExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.ParentTaskExecutionMetadata) + ParentTaskExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParentTaskExecutionMetadata.newBuilder() to construct. + private ParentTaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParentTaskExecutionMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParentTaskExecutionMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.ParentTaskExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.ParentTaskExecutionMetadata other = (flyteidl.event.Event.ParentTaskExecutionMetadata) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.ParentTaskExecutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentTaskExecutionMetadata) + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata build() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata buildPartial() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = new flyteidl.event.Event.ParentTaskExecutionMetadata(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.ParentTaskExecutionMetadata) { + return mergeFrom((flyteidl.event.Event.ParentTaskExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.ParentTaskExecutionMetadata other) { + if (other == flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.ParentTaskExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.ParentTaskExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.ParentTaskExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) + private static final flyteidl.event.Event.ParentTaskExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.ParentTaskExecutionMetadata(); + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParentTaskExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParentTaskExecutionMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParentNodeExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentNodeExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier of the parent node id within the execution
+     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+     * 
+ * + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + *
+     * Unique identifier of the parent node id within the execution
+     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+     * 
+ * + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + } + /** + * Protobuf type {@code flyteidl.event.ParentNodeExecutionMetadata} + */ + public static final class ParentNodeExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.ParentNodeExecutionMetadata) + ParentNodeExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParentNodeExecutionMetadata.newBuilder() to construct. + private ParentNodeExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParentNodeExecutionMetadata() { + nodeId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParentNodeExecutionMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentNodeExecutionMetadata.class, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + *
+     * Unique identifier of the parent node id within the execution
+     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+     * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } + } + /** + *
+     * Unique identifier of the parent node id within the execution
+     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+     * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.ParentNodeExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.ParentNodeExecutionMetadata other = (flyteidl.event.Event.ParentNodeExecutionMetadata) obj; + + if (!getNodeId() + .equals(other.getNodeId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.ParentNodeExecutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.event.ParentNodeExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentNodeExecutionMetadata) + flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentNodeExecutionMetadata.class, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.ParentNodeExecutionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nodeId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.ParentNodeExecutionMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.ParentNodeExecutionMetadata build() { + flyteidl.event.Event.ParentNodeExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.ParentNodeExecutionMetadata buildPartial() { + flyteidl.event.Event.ParentNodeExecutionMetadata result = new flyteidl.event.Event.ParentNodeExecutionMetadata(this); + result.nodeId_ = nodeId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.ParentNodeExecutionMetadata) { + return mergeFrom((flyteidl.event.Event.ParentNodeExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.ParentNodeExecutionMetadata other) { + if (other == flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.ParentNodeExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.ParentNodeExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + *
+       * Unique identifier of the parent node id within the execution
+       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+       * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique identifier of the parent node id within the execution
+       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+       * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique identifier of the parent node id within the execution
+       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique identifier of the parent node id within the execution
+       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+       * 
+ * + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + *
+       * Unique identifier of the parent node id within the execution
+       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.ParentNodeExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentNodeExecutionMetadata) + private static final flyteidl.event.Event.ParentNodeExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.ParentNodeExecutionMetadata(); + } + + public static flyteidl.event.Event.ParentNodeExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParentNodeExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParentNodeExecutionMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.ParentNodeExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + boolean hasParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder(); + + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + java.lang.String getProducerId(); + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + int getLogsCount(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + java.lang.String getInputUri(); + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Raw input data consumed by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + boolean hasInputData(); + /** + *
+     * Raw input data consumed by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + flyteidl.core.Literals.LiteralMap getInputData(); + /** + *
+     * Raw input data consumed by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder(); + + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + java.lang.String getOutputUri(); + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Raw output data produced by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + boolean hasOutputData(); + /** + *
+     * Raw output data produced by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + flyteidl.core.Literals.LiteralMap getOutputData(); + /** + *
+     * Raw output data produced by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); + + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + int getPhaseVersion(); + + /** + *
+     * An optional explanation for the phase transition.
+     * 
+ * + * string reason = 13; + */ + java.lang.String getReason(); + /** + *
+     * An optional explanation for the phase transition.
+     * 
+ * + * string reason = 13; + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+     * type is useful to render the task in the UI, filter task executions, etc.
+     * 
+ * + * string task_type = 14; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+     * type is useful to render the task in the UI, filter task executions, etc.
+     * 
+ * + * string task_type = 14; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + boolean hasMetadata(); + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + flyteidl.event.Event.TaskExecutionMetadata getMetadata(); + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * The event version is used to indicate versioned changes in how data is reported using this
+     * proto message. For example, event_verison > 0 means that maps tasks report logs using the
+     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+     * in this message.
+     * 
+ * + * int32 event_version = 18; + */ + int getEventVersion(); + + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+     * facilitates a more accurate portrayal of the evaluation time-series. 
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + boolean hasReportedAt(); + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+     * facilitates a more accurate portrayal of the evaluation time-series. 
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + com.google.protobuf.Timestamp getReportedAt(); + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+     * facilitates a more accurate portrayal of the evaluation time-series. 
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder(); + + public flyteidl.event.Event.TaskExecutionEvent.InputValueCase getInputValueCase(); + + public flyteidl.event.Event.TaskExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+   * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class TaskExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionEvent) + TaskExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEvent.newBuilder() to construct. + private TaskExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEvent() { + phase_ = 0; + producerId_ = ""; + logs_ = java.util.Collections.emptyList(); + reason_ = ""; + taskType_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecutionId_ != null) { + subBuilder = parentNodeExecutionId_.toBuilder(); + } + parentNodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecutionId_); + parentNodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + inputValueCase_ = 8; + inputValue_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 9; + outputResult_ = s; + break; + } + case 82: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 10) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 10; + break; + } + case 90: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 96: { + + phaseVersion_ = input.readUInt32(); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + reason_ = s; + break; + } + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 130: { + flyteidl.event.Event.TaskExecutionMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.event.Event.TaskExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputResultCase_ == 17) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 17; + break; + } + case 144: { + + eventVersion_ = input.readInt32(); + break; + } + case 154: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputValueCase_ == 19) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) inputValue_).toBuilder(); + } + inputValue_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) inputValue_); + inputValue_ = subBuilder.buildPartial(); + } + inputValueCase_ = 19; + break; + } + case 162: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (reportedAt_ != null) { + subBuilder = reportedAt_.toBuilder(); + } + reportedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reportedAt_); + reportedAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + private int bitField0_; + private int inputValueCase_ = 0; + private java.lang.Object inputValue_; + public enum InputValueCase + implements com.google.protobuf.Internal.EnumLite { + INPUT_URI(8), + INPUT_DATA(19), + INPUTVALUE_NOT_SET(0); + private final int value; + private InputValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputValueCase valueOf(int value) { + return forNumber(value); + } + + public static InputValueCase forNumber(int value) { + switch (value) { + case 8: return INPUT_URI; + case 19: return INPUT_DATA; + case 0: return INPUTVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public InputValueCase + getInputValueCase() { + return InputValueCase.forNumber( + inputValueCase_); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(9), + ERROR(10), + OUTPUT_DATA(17), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 9: return OUTPUT_URI; + case 10: return ERROR; + case 17: return OUTPUT_DATA; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int PARENT_NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionId_ != null; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + return getParentNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object producerId_; + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } + } + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGS_FIELD_NUMBER = 6; + private java.util.List logs_; + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 8; + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = ""; + if (inputValueCase_ == 8) { + ref = inputValue_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputValueCase_ == 8) { + inputValue_ = s; + } + return s; + } + } + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = ""; + if (inputValueCase_ == 8) { + ref = inputValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (inputValueCase_ == 8) { + inputValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_DATA_FIELD_NUMBER = 19; + /** + *
+     * Raw input data consumed by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public boolean hasInputData() { + return inputValueCase_ == 19; + } + /** + *
+     * Raw input data consumed by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public flyteidl.core.Literals.LiteralMap getInputData() { + if (inputValueCase_ == 19) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw input data consumed by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { + if (inputValueCase_ == 19) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 9; + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 10; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int OUTPUT_DATA_FIELD_NUMBER = 17; + /** + *
+     * Raw output data produced by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public boolean hasOutputData() { + return outputResultCase_ == 17; + } + /** + *
+     * Raw output data produced by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputResultCase_ == 17) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Raw output data produced by this task execution.
+     * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if (outputResultCase_ == 17) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 11; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + public static final int PHASE_VERSION_FIELD_NUMBER = 12; + private int phaseVersion_; + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + + public static final int REASON_FIELD_NUMBER = 13; + private volatile java.lang.Object reason_; + /** + *
+     * An optional explanation for the phase transition.
+     * 
+ * + * string reason = 13; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } + } + /** + *
+     * An optional explanation for the phase transition.
+     * 
+ * + * string reason = 13; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TASK_TYPE_FIELD_NUMBER = 14; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+     * type is useful to render the task in the UI, filter task executions, etc.
+     * 
+ * + * string task_type = 14; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+     * type is useful to render the task in the UI, filter task executions, etc.
+     * 
+ * + * string task_type = 14; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 16; + private flyteidl.event.Event.TaskExecutionMetadata metadata_; + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { + return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata around how a task was executed.
+     * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int EVENT_VERSION_FIELD_NUMBER = 18; + private int eventVersion_; + /** + *
+     * The event version is used to indicate versioned changes in how data is reported using this
+     * proto message. For example, event_verison > 0 means that maps tasks report logs using the
+     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+     * in this message.
+     * 
+ * + * int32 event_version = 18; + */ + public int getEventVersion() { + return eventVersion_; + } + + public static final int REPORTED_AT_FIELD_NUMBER = 20; + private com.google.protobuf.Timestamp reportedAt_; + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+     * facilitates a more accurate portrayal of the evaluation time-series. 
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public boolean hasReportedAt() { + return reportedAt_ != null; + } + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+     * facilitates a more accurate portrayal of the evaluation time-series. 
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public com.google.protobuf.Timestamp getReportedAt() { + return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; + } + /** + *
+     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+     * facilitates a more accurate portrayal of the evaluation time-series. 
+     * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { + return getReportedAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + output.writeMessage(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(6, logs_.get(i)); + } + if (occurredAt_ != null) { + output.writeMessage(7, getOccurredAt()); + } + if (inputValueCase_ == 8) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, inputValue_); + } + if (outputResultCase_ == 9) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputResult_); + } + if (outputResultCase_ == 10) { + output.writeMessage(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + output.writeMessage(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + output.writeUInt32(12, phaseVersion_); + } + if (!getReasonBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, reason_); + } + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, taskType_); + } + if (metadata_ != null) { + output.writeMessage(16, getMetadata()); + } + if (outputResultCase_ == 17) { + output.writeMessage(17, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (eventVersion_ != 0) { + output.writeInt32(18, eventVersion_); + } + if (inputValueCase_ == 19) { + output.writeMessage(19, (flyteidl.core.Literals.LiteralMap) inputValue_); + } + if (reportedAt_ != null) { + output.writeMessage(20, getReportedAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, logs_.get(i)); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOccurredAt()); + } + if (inputValueCase_ == 8) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, inputValue_); + } + if (outputResultCase_ == 9) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputResult_); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(12, phaseVersion_); + } + if (!getReasonBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, reason_); + } + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, taskType_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getMetadata()); + } + if (outputResultCase_ == 17) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, (flyteidl.core.Literals.LiteralMap) outputResult_); + } + if (eventVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, eventVersion_); + } + if (inputValueCase_ == 19) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, (flyteidl.core.Literals.LiteralMap) inputValue_); + } + if (reportedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getReportedAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.TaskExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.TaskExecutionEvent other = (flyteidl.event.Event.TaskExecutionEvent) obj; + + if (hasTaskId() != other.hasTaskId()) return false; + if (hasTaskId()) { + if (!getTaskId() + .equals(other.getTaskId())) return false; + } + if (hasParentNodeExecutionId() != other.hasParentNodeExecutionId()) return false; + if (hasParentNodeExecutionId()) { + if (!getParentNodeExecutionId() + .equals(other.getParentNodeExecutionId())) return false; + } + if (getRetryAttempt() + != other.getRetryAttempt()) return false; + if (phase_ != other.phase_) return false; + if (!getProducerId() + .equals(other.getProducerId())) return false; + if (!getLogsList() + .equals(other.getLogsList())) return false; + if (hasOccurredAt() != other.hasOccurredAt()) return false; + if (hasOccurredAt()) { + if (!getOccurredAt() + .equals(other.getOccurredAt())) return false; + } + if (hasCustomInfo() != other.hasCustomInfo()) return false; + if (hasCustomInfo()) { + if (!getCustomInfo() + .equals(other.getCustomInfo())) return false; + } + if (getPhaseVersion() + != other.getPhaseVersion()) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (getEventVersion() + != other.getEventVersion()) return false; + if (hasReportedAt() != other.hasReportedAt()) return false; + if (hasReportedAt()) { + if (!getReportedAt() + .equals(other.getReportedAt())) return false; + } + if (!getInputValueCase().equals(other.getInputValueCase())) return false; + switch (inputValueCase_) { + case 8: + if (!getInputUri() + .equals(other.getInputUri())) return false; + break; + case 19: + if (!getInputData() + .equals(other.getInputData())) return false; + break; + case 0: + default: + } + if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; + switch (outputResultCase_) { + case 9: + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + break; + case 10: + if (!getError() + .equals(other.getError())) return false; + break; + case 17: + if (!getOutputData() + .equals(other.getOutputData())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasParentNodeExecutionId()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + hash = (37 * hash) + PHASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPhaseVersion(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + EVENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getEventVersion(); + if (hasReportedAt()) { + hash = (37 * hash) + REPORTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getReportedAt().hashCode(); + } + switch (inputValueCase_) { + case 8: + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + break; + case 19: + hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getInputData().hashCode(); + break; + case 0: + default: + } + switch (outputResultCase_) { + case 9: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 10: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 17: + hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOutputData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.TaskExecutionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+     * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionEvent) + flyteidl.event.Event.TaskExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.TaskExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + phase_ = 0; + + producerId_ = ""; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + logsBuilder_.clear(); + } + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + phaseVersion_ = 0; + + reason_ = ""; + + taskType_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + eventVersion_ = 0; + + if (reportedAtBuilder_ == null) { + reportedAt_ = null; + } else { + reportedAt_ = null; + reportedAtBuilder_ = null; + } + inputValueCase_ = 0; + inputValue_ = null; + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent build() { + flyteidl.event.Event.TaskExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent buildPartial() { + flyteidl.event.Event.TaskExecutionEvent result = new flyteidl.event.Event.TaskExecutionEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (parentNodeExecutionIdBuilder_ == null) { + result.parentNodeExecutionId_ = parentNodeExecutionId_; + } else { + result.parentNodeExecutionId_ = parentNodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + result.phase_ = phase_; + result.producerId_ = producerId_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + if (inputValueCase_ == 8) { + result.inputValue_ = inputValue_; + } + if (inputValueCase_ == 19) { + if (inputDataBuilder_ == null) { + result.inputValue_ = inputValue_; + } else { + result.inputValue_ = inputDataBuilder_.build(); + } + } + if (outputResultCase_ == 9) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 10) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 17) { + if (outputDataBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputDataBuilder_.build(); + } + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.phaseVersion_ = phaseVersion_; + result.reason_ = reason_; + result.taskType_ = taskType_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.eventVersion_ = eventVersion_; + if (reportedAtBuilder_ == null) { + result.reportedAt_ = reportedAt_; + } else { + result.reportedAt_ = reportedAtBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.inputValueCase_ = inputValueCase_; + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.TaskExecutionEvent) { + return mergeFrom((flyteidl.event.Event.TaskExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.TaskExecutionEvent other) { + if (other == flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasParentNodeExecutionId()) { + mergeParentNodeExecutionId(other.getParentNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + if (other.getPhaseVersion() != 0) { + setPhaseVersion(other.getPhaseVersion()); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.getEventVersion() != 0) { + setEventVersion(other.getEventVersion()); + } + if (other.hasReportedAt()) { + mergeReportedAt(other.getReportedAt()); + } + switch (other.getInputValueCase()) { + case INPUT_URI: { + inputValueCase_ = 8; + inputValue_ = other.inputValue_; + onChanged(); + break; + } + case INPUT_DATA: { + mergeInputData(other.getInputData()); + break; + } + case INPUTVALUE_NOT_SET: { + break; + } + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 9; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUT_DATA: { + mergeOutputData(other.getOutputData()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.TaskExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.TaskExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int inputValueCase_ = 0; + private java.lang.Object inputValue_; + public InputValueCase + getInputValueCase() { + return InputValueCase.forNumber( + inputValueCase_); + } + + public Builder clearInputValue() { + inputValueCase_ = 0; + inputValue_ = null; + onChanged(); + return this; + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionIdBuilder_; + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionIdBuilder_ != null || parentNodeExecutionId_ != null; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } else { + return parentNodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecutionId_ = value; + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder mergeParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (parentNodeExecutionId_ != null) { + parentNodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecutionId_ = value; + } + onChanged(); + } else { + parentNodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder clearParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + onChanged(); + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionIdBuilder() { + + onChanged(); + return getParentNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + if (parentNodeExecutionIdBuilder_ != null) { + return parentNodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionIdFieldBuilder() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecutionId(), + getParentForChildren(), + isClean()); + parentNodeExecutionId_ = null; + } + return parentNodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp occurredAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = ""; + if (inputValueCase_ == 8) { + ref = inputValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (inputValueCase_ == 8) { + inputValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = ""; + if (inputValueCase_ == 8) { + ref = inputValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (inputValueCase_ == 8) { + inputValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputValueCase_ = 8; + inputValue_ = value; + onChanged(); + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder clearInputUri() { + if (inputValueCase_ == 8) { + inputValueCase_ = 0; + inputValue_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputValueCase_ = 8; + inputValue_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputDataBuilder_; + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public boolean hasInputData() { + return inputValueCase_ == 19; + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public flyteidl.core.Literals.LiteralMap getInputData() { + if (inputDataBuilder_ == null) { + if (inputValueCase_ == 19) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (inputValueCase_ == 19) { + return inputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public Builder setInputData(flyteidl.core.Literals.LiteralMap value) { + if (inputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputValue_ = value; + onChanged(); + } else { + inputDataBuilder_.setMessage(value); + } + inputValueCase_ = 19; + return this; + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public Builder setInputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputDataBuilder_ == null) { + inputValue_ = builderForValue.build(); + onChanged(); + } else { + inputDataBuilder_.setMessage(builderForValue.build()); + } + inputValueCase_ = 19; + return this; + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public Builder mergeInputData(flyteidl.core.Literals.LiteralMap value) { + if (inputDataBuilder_ == null) { + if (inputValueCase_ == 19 && + inputValue_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + inputValue_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) inputValue_) + .mergeFrom(value).buildPartial(); + } else { + inputValue_ = value; + } + onChanged(); + } else { + if (inputValueCase_ == 19) { + inputDataBuilder_.mergeFrom(value); + } + inputDataBuilder_.setMessage(value); + } + inputValueCase_ = 19; + return this; + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public Builder clearInputData() { + if (inputDataBuilder_ == null) { + if (inputValueCase_ == 19) { + inputValueCase_ = 0; + inputValue_ = null; + onChanged(); + } + } else { + if (inputValueCase_ == 19) { + inputValueCase_ = 0; + inputValue_ = null; + } + inputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputDataBuilder() { + return getInputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { + if ((inputValueCase_ == 19) && (inputDataBuilder_ != null)) { + return inputDataBuilder_.getMessageOrBuilder(); + } else { + if (inputValueCase_ == 19) { + return (flyteidl.core.Literals.LiteralMap) inputValue_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw input data consumed by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap input_data = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputDataFieldBuilder() { + if (inputDataBuilder_ == null) { + if (!(inputValueCase_ == 19)) { + inputValue_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + inputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) inputValue_, + getParentForChildren(), + isClean()); + inputValue_ = null; + } + inputValueCase_ = 19; + onChanged();; + return inputDataBuilder_; + } + + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 9) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 10) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 10) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 10) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 10)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 10; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public boolean hasOutputData() { + return outputResultCase_ == 17; + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public flyteidl.core.Literals.LiteralMap getOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 17) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (outputResultCase_ == 17) { + return outputDataBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 17; + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public Builder setOutputData( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputDataBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputDataBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 17; + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 17 && + outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 17) { + outputDataBuilder_.mergeFrom(value); + } + outputDataBuilder_.setMessage(value); + } + outputResultCase_ = 17; + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public Builder clearOutputData() { + if (outputDataBuilder_ == null) { + if (outputResultCase_ == 17) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 17) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputDataBuilder_.clear(); + } + return this; + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { + return getOutputDataFieldBuilder().getBuilder(); + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { + if ((outputResultCase_ == 17) && (outputDataBuilder_ != null)) { + return outputDataBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 17) { + return (flyteidl.core.Literals.LiteralMap) outputResult_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Raw output data produced by this task execution.
+       * 
+ * + * .flyteidl.core.LiteralMap output_data = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputDataFieldBuilder() { + if (outputDataBuilder_ == null) { + if (!(outputResultCase_ == 17)) { + outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 17; + onChanged();; + return outputDataBuilder_; + } + + private com.google.protobuf.Struct customInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + + private int phaseVersion_ ; + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder setPhaseVersion(int value) { + + phaseVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder clearPhaseVersion() { + + phaseVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + *
+       * An optional explanation for the phase transition.
+       * 
+ * + * string reason = 13; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * An optional explanation for the phase transition.
+       * 
+ * + * string reason = 13; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * An optional explanation for the phase transition.
+       * 
+ * + * string reason = 13; + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value; + onChanged(); + return this; + } + /** + *
+       * An optional explanation for the phase transition.
+       * 
+ * + * string reason = 13; + */ + public Builder clearReason() { + + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + *
+       * An optional explanation for the phase transition.
+       * 
+ * + * string reason = 13; + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+       * type is useful to render the task in the UI, filter task executions, etc.
+       * 
+ * + * string task_type = 14; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+       * type is useful to render the task in the UI, filter task executions, etc.
+       * 
+ * + * string task_type = 14; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+       * type is useful to render the task in the UI, filter task executions, etc.
+       * 
+ * + * string task_type = 14; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+       * type is useful to render the task in the UI, filter task executions, etc.
+       * 
+ * + * string task_type = 14; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
+       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
+       * type is useful to render the task in the UI, filter task executions, etc.
+       * 
+ * + * string task_type = 14; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.TaskExecutionMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder setMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder setMetadata( + flyteidl.event.Event.TaskExecutionMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder mergeMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.event.Event.TaskExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata around how a task was executed.
+       * 
+ * + * .flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private int eventVersion_ ; + /** + *
+       * The event version is used to indicate versioned changes in how data is reported using this
+       * proto message. For example, event_verison > 0 means that maps tasks report logs using the
+       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+       * in this message.
+       * 
+ * + * int32 event_version = 18; + */ + public int getEventVersion() { + return eventVersion_; + } + /** + *
+       * The event version is used to indicate versioned changes in how data is reported using this
+       * proto message. For example, event_verison > 0 means that maps tasks report logs using the
+       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+       * in this message.
+       * 
+ * + * int32 event_version = 18; + */ + public Builder setEventVersion(int value) { + + eventVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * The event version is used to indicate versioned changes in how data is reported using this
+       * proto message. For example, event_verison > 0 means that maps tasks report logs using the
+       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
+       * in this message.
+       * 
+ * + * int32 event_version = 18; + */ + public Builder clearEventVersion() { + + eventVersion_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp reportedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> reportedAtBuilder_; + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public boolean hasReportedAt() { + return reportedAtBuilder_ != null || reportedAt_ != null; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public com.google.protobuf.Timestamp getReportedAt() { + if (reportedAtBuilder_ == null) { + return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; + } else { + return reportedAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public Builder setReportedAt(com.google.protobuf.Timestamp value) { + if (reportedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportedAt_ = value; + onChanged(); + } else { + reportedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public Builder setReportedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (reportedAtBuilder_ == null) { + reportedAt_ = builderForValue.build(); + onChanged(); + } else { + reportedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public Builder mergeReportedAt(com.google.protobuf.Timestamp value) { + if (reportedAtBuilder_ == null) { + if (reportedAt_ != null) { + reportedAt_ = + com.google.protobuf.Timestamp.newBuilder(reportedAt_).mergeFrom(value).buildPartial(); + } else { + reportedAt_ = value; + } + onChanged(); + } else { + reportedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public Builder clearReportedAt() { + if (reportedAtBuilder_ == null) { + reportedAt_ = null; + onChanged(); + } else { + reportedAt_ = null; + reportedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public com.google.protobuf.Timestamp.Builder getReportedAtBuilder() { + + onChanged(); + return getReportedAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { + if (reportedAtBuilder_ != null) { + return reportedAtBuilder_.getMessageOrBuilder(); + } else { + return reportedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; + } + } + /** + *
+       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
+       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
+       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
+       * facilitates a more accurate portrayal of the evaluation time-series. 
+       * 
+ * + * .google.protobuf.Timestamp reported_at = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getReportedAtFieldBuilder() { + if (reportedAtBuilder_ == null) { + reportedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getReportedAt(), + getParentForChildren(), + isClean()); + reportedAt_ = null; + } + return reportedAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.TaskExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) + private static final flyteidl.event.Event.TaskExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionEvent(); + } + + public static flyteidl.event.Event.TaskExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExternalResourceInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.ExternalResourceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+     * 
+ * + * string external_id = 1; + */ + java.lang.String getExternalId(); + /** + *
+     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+     * 
+ * + * string external_id = 1; + */ + com.google.protobuf.ByteString + getExternalIdBytes(); + + /** + *
+     * A unique index for the external resource with respect to all external resources for this task. Although the
+     * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
+     * information from multiple reports.
+     * 
+ * + * uint32 index = 2; + */ + int getIndex(); + + /** + *
+     * Retry attempt number for this external resource, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + + /** + *
+     * Phase associated with the external resource
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Phase associated with the external resource
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * Captures the status of caching for this external resource execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + int getCacheStatusValue(); + /** + *
+     * Captures the status of caching for this external resource execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus(); + + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsList(); + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + int getLogsCount(); + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + } + /** + *
+   * This message contains metadata about external resources produced or used by a specific task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.event.ExternalResourceInfo} + */ + public static final class ExternalResourceInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.ExternalResourceInfo) + ExternalResourceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExternalResourceInfo.newBuilder() to construct. + private ExternalResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExternalResourceInfo() { + externalId_ = ""; + phase_ = 0; + cacheStatus_ = 0; + logs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExternalResourceInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 16: { + + index_ = input.readUInt32(); + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); + + cacheStatus_ = rawValue; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ExternalResourceInfo.class, flyteidl.event.Event.ExternalResourceInfo.Builder.class); + } + + private int bitField0_; + public static final int EXTERNAL_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object externalId_; + /** + *
+     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+     * 
+ * + * string external_id = 1; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } + } + /** + *
+     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+     * 
+ * + * string external_id = 1; + */ + public com.google.protobuf.ByteString + getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_FIELD_NUMBER = 2; + private int index_; + /** + *
+     * A unique index for the external resource with respect to all external resources for this task. Although the
+     * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
+     * information from multiple reports.
+     * 
+ * + * uint32 index = 2; + */ + public int getIndex() { + return index_; + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + *
+     * Retry attempt number for this external resource, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Phase associated with the external resource
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Phase associated with the external resource
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int CACHE_STATUS_FIELD_NUMBER = 5; + private int cacheStatus_; + /** + *
+     * Captures the status of caching for this external resource execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + public int getCacheStatusValue() { + return cacheStatus_; + } + /** + *
+     * Captures the status of caching for this external resource execution.
+     * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); + return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; + } + + public static final int LOGS_FIELD_NUMBER = 6; + private java.util.List logs_; + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * log information for the external resource execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getExternalIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalId_); + } + if (index_ != 0) { + output.writeUInt32(2, index_); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { + output.writeEnum(5, cacheStatus_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(6, logs_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getExternalIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, externalId_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, index_); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, cacheStatus_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, logs_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.ExternalResourceInfo)) { + return super.equals(obj); + } + flyteidl.event.Event.ExternalResourceInfo other = (flyteidl.event.Event.ExternalResourceInfo) obj; + + if (!getExternalId() + .equals(other.getExternalId())) return false; + if (getIndex() + != other.getIndex()) return false; + if (getRetryAttempt() + != other.getRetryAttempt()) return false; + if (phase_ != other.phase_) return false; + if (cacheStatus_ != other.cacheStatus_) return false; + if (!getLogsList() + .equals(other.getLogsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + CACHE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + cacheStatus_; + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ExternalResourceInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ExternalResourceInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ExternalResourceInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.ExternalResourceInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message contains metadata about external resources produced or used by a specific task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.event.ExternalResourceInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.ExternalResourceInfo) + flyteidl.event.Event.ExternalResourceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ExternalResourceInfo.class, flyteidl.event.Event.ExternalResourceInfo.Builder.class); + } + + // Construct using flyteidl.event.Event.ExternalResourceInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + externalId_ = ""; + + index_ = 0; + + retryAttempt_ = 0; + + phase_ = 0; + + cacheStatus_ = 0; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + logsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.ExternalResourceInfo getDefaultInstanceForType() { + return flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.ExternalResourceInfo build() { + flyteidl.event.Event.ExternalResourceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.ExternalResourceInfo buildPartial() { + flyteidl.event.Event.ExternalResourceInfo result = new flyteidl.event.Event.ExternalResourceInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.externalId_ = externalId_; + result.index_ = index_; + result.retryAttempt_ = retryAttempt_; + result.phase_ = phase_; + result.cacheStatus_ = cacheStatus_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.ExternalResourceInfo) { + return mergeFrom((flyteidl.event.Event.ExternalResourceInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.ExternalResourceInfo other) { + if (other == flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance()) return this; + if (!other.getExternalId().isEmpty()) { + externalId_ = other.externalId_; + onChanged(); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.cacheStatus_ != 0) { + setCacheStatusValue(other.getCacheStatusValue()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.ExternalResourceInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.ExternalResourceInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object externalId_ = ""; + /** + *
+       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+       * 
+ * + * string external_id = 1; + */ + public java.lang.String getExternalId() { + java.lang.Object ref = externalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+       * 
+ * + * string external_id = 1; + */ + public com.google.protobuf.ByteString + getExternalIdBytes() { + java.lang.Object ref = externalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + externalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+       * 
+ * + * string external_id = 1; + */ + public Builder setExternalId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + externalId_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+       * 
+ * + * string external_id = 1; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + *
+       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
+       * 
+ * + * string external_id = 1; + */ + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + externalId_ = value; + onChanged(); + return this; + } + + private int index_ ; + /** + *
+       * A unique index for the external resource with respect to all external resources for this task. Although the
+       * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
+       * information from multiple reports.
+       * 
+ * + * uint32 index = 2; + */ + public int getIndex() { + return index_; + } + /** + *
+       * A unique index for the external resource with respect to all external resources for this task. Although the
+       * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
+       * information from multiple reports.
+       * 
+ * + * uint32 index = 2; + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + *
+       * A unique index for the external resource with respect to all external resources for this task. Although the
+       * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
+       * information from multiple reports.
+       * 
+ * + * uint32 index = 2; + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private int retryAttempt_ ; + /** + *
+       * Retry attempt number for this external resource, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + *
+       * Retry attempt number for this external resource, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + *
+       * Retry attempt number for this external resource, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + *
+       * Phase associated with the external resource
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Phase associated with the external resource
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Phase associated with the external resource
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Phase associated with the external resource
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Phase associated with the external resource
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private int cacheStatus_ = 0; + /** + *
+       * Captures the status of caching for this external resource execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + public int getCacheStatusValue() { + return cacheStatus_; + } + /** + *
+       * Captures the status of caching for this external resource execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + public Builder setCacheStatusValue(int value) { + cacheStatus_ = value; + onChanged(); + return this; + } + /** + *
+       * Captures the status of caching for this external resource execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { + @SuppressWarnings("deprecation") + flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); + return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; + } + /** + *
+       * Captures the status of caching for this external resource execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + public Builder setCacheStatus(flyteidl.core.Catalog.CatalogCacheStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + cacheStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Captures the status of caching for this external resource execution.
+       * 
+ * + * .flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + public Builder clearCacheStatus() { + + cacheStatus_ = 0; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the external resource execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.ExternalResourceInfo) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.ExternalResourceInfo) + private static final flyteidl.event.Event.ExternalResourceInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.ExternalResourceInfo(); + } + + public static flyteidl.event.Event.ExternalResourceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalResourceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExternalResourceInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.ExternalResourceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourcePoolInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.ResourcePoolInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique resource ID used to identify this execution when allocating a token.
+     * 
+ * + * string allocation_token = 1; + */ + java.lang.String getAllocationToken(); + /** + *
+     * Unique resource ID used to identify this execution when allocating a token.
+     * 
+ * + * string allocation_token = 1; + */ + com.google.protobuf.ByteString + getAllocationTokenBytes(); + + /** + *
+     * Namespace under which this task execution requested an allocation token.
+     * 
+ * + * string namespace = 2; + */ + java.lang.String getNamespace(); + /** + *
+     * Namespace under which this task execution requested an allocation token.
+     * 
+ * + * string namespace = 2; + */ + com.google.protobuf.ByteString + getNamespaceBytes(); + } + /** + *
+   * This message holds task execution metadata specific to resource allocation used to manage concurrent
+   * executions for a project namespace.
+   * 
+ * + * Protobuf type {@code flyteidl.event.ResourcePoolInfo} + */ + public static final class ResourcePoolInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.ResourcePoolInfo) + ResourcePoolInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourcePoolInfo.newBuilder() to construct. + private ResourcePoolInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourcePoolInfo() { + allocationToken_ = ""; + namespace_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourcePoolInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + allocationToken_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + namespace_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ResourcePoolInfo.class, flyteidl.event.Event.ResourcePoolInfo.Builder.class); + } + + public static final int ALLOCATION_TOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object allocationToken_; + /** + *
+     * Unique resource ID used to identify this execution when allocating a token.
+     * 
+ * + * string allocation_token = 1; + */ + public java.lang.String getAllocationToken() { + java.lang.Object ref = allocationToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allocationToken_ = s; + return s; + } + } + /** + *
+     * Unique resource ID used to identify this execution when allocating a token.
+     * 
+ * + * string allocation_token = 1; + */ + public com.google.protobuf.ByteString + getAllocationTokenBytes() { + java.lang.Object ref = allocationToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_FIELD_NUMBER = 2; + private volatile java.lang.Object namespace_; + /** + *
+     * Namespace under which this task execution requested an allocation token.
+     * 
+ * + * string namespace = 2; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + *
+     * Namespace under which this task execution requested an allocation token.
+     * 
+ * + * string namespace = 2; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAllocationTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allocationToken_); + } + if (!getNamespaceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAllocationTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, allocationToken_); + } + if (!getNamespaceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.ResourcePoolInfo)) { + return super.equals(obj); + } + flyteidl.event.Event.ResourcePoolInfo other = (flyteidl.event.Event.ResourcePoolInfo) obj; + + if (!getAllocationToken() + .equals(other.getAllocationToken())) return false; + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALLOCATION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAllocationToken().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ResourcePoolInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ResourcePoolInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ResourcePoolInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.ResourcePoolInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message holds task execution metadata specific to resource allocation used to manage concurrent
+     * executions for a project namespace.
+     * 
+ * + * Protobuf type {@code flyteidl.event.ResourcePoolInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.ResourcePoolInfo) + flyteidl.event.Event.ResourcePoolInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ResourcePoolInfo.class, flyteidl.event.Event.ResourcePoolInfo.Builder.class); + } + + // Construct using flyteidl.event.Event.ResourcePoolInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + allocationToken_ = ""; + + namespace_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.ResourcePoolInfo getDefaultInstanceForType() { + return flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.ResourcePoolInfo build() { + flyteidl.event.Event.ResourcePoolInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.ResourcePoolInfo buildPartial() { + flyteidl.event.Event.ResourcePoolInfo result = new flyteidl.event.Event.ResourcePoolInfo(this); + result.allocationToken_ = allocationToken_; + result.namespace_ = namespace_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.ResourcePoolInfo) { + return mergeFrom((flyteidl.event.Event.ResourcePoolInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.ResourcePoolInfo other) { + if (other == flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance()) return this; + if (!other.getAllocationToken().isEmpty()) { + allocationToken_ = other.allocationToken_; + onChanged(); + } + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.ResourcePoolInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.ResourcePoolInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object allocationToken_ = ""; + /** + *
+       * Unique resource ID used to identify this execution when allocating a token.
+       * 
+ * + * string allocation_token = 1; + */ + public java.lang.String getAllocationToken() { + java.lang.Object ref = allocationToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + allocationToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique resource ID used to identify this execution when allocating a token.
+       * 
+ * + * string allocation_token = 1; + */ + public com.google.protobuf.ByteString + getAllocationTokenBytes() { + java.lang.Object ref = allocationToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique resource ID used to identify this execution when allocating a token.
+       * 
+ * + * string allocation_token = 1; + */ + public Builder setAllocationToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + allocationToken_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique resource ID used to identify this execution when allocating a token.
+       * 
+ * + * string allocation_token = 1; + */ + public Builder clearAllocationToken() { + + allocationToken_ = getDefaultInstance().getAllocationToken(); + onChanged(); + return this; + } + /** + *
+       * Unique resource ID used to identify this execution when allocating a token.
+       * 
+ * + * string allocation_token = 1; + */ + public Builder setAllocationTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + allocationToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object namespace_ = ""; + /** + *
+       * Namespace under which this task execution requested an allocation token.
+       * 
+ * + * string namespace = 2; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Namespace under which this task execution requested an allocation token.
+       * 
+ * + * string namespace = 2; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Namespace under which this task execution requested an allocation token.
+       * 
+ * + * string namespace = 2; + */ + public Builder setNamespace( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + namespace_ = value; + onChanged(); + return this; + } + /** + *
+       * Namespace under which this task execution requested an allocation token.
+       * 
+ * + * string namespace = 2; + */ + public Builder clearNamespace() { + + namespace_ = getDefaultInstance().getNamespace(); + onChanged(); + return this; + } + /** + *
+       * Namespace under which this task execution requested an allocation token.
+       * 
+ * + * string namespace = 2; + */ + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + namespace_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.ResourcePoolInfo) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.ResourcePoolInfo) + private static final flyteidl.event.Event.ResourcePoolInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.ResourcePoolInfo(); + } + + public static flyteidl.event.Event.ResourcePoolInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourcePoolInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourcePoolInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.ResourcePoolInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique, generated name for this task execution used by the backend.
+     * 
+ * + * string generated_name = 1; + */ + java.lang.String getGeneratedName(); + /** + *
+     * Unique, generated name for this task execution used by the backend.
+     * 
+ * + * string generated_name = 1; + */ + com.google.protobuf.ByteString + getGeneratedNameBytes(); + + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + java.util.List + getExternalResourcesList(); + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + flyteidl.event.Event.ExternalResourceInfo getExternalResources(int index); + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + int getExternalResourcesCount(); + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + java.util.List + getExternalResourcesOrBuilderList(); + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + flyteidl.event.Event.ExternalResourceInfoOrBuilder getExternalResourcesOrBuilder( + int index); + + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + java.util.List + getResourcePoolInfoList(); + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + flyteidl.event.Event.ResourcePoolInfo getResourcePoolInfo(int index); + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + int getResourcePoolInfoCount(); + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + java.util.List + getResourcePoolInfoOrBuilderList(); + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + flyteidl.event.Event.ResourcePoolInfoOrBuilder getResourcePoolInfoOrBuilder( + int index); + + /** + *
+     * The identifier of the plugin used to execute this task.
+     * 
+ * + * string plugin_identifier = 4; + */ + java.lang.String getPluginIdentifier(); + /** + *
+     * The identifier of the plugin used to execute this task.
+     * 
+ * + * string plugin_identifier = 4; + */ + com.google.protobuf.ByteString + getPluginIdentifierBytes(); + + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + int getInstanceClassValue(); + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + flyteidl.event.Event.TaskExecutionMetadata.InstanceClass getInstanceClass(); + } + /** + *
+   * Holds metadata around how a task was executed.
+   * As a task transitions across event phases during execution some attributes, such its generated name, generated external resources,
+   * and more may grow in size but not change necessarily based on the phase transition that sparked the event update.
+   * Metadata is a container for these attributes across the task execution lifecycle.
+   * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionMetadata} + */ + public static final class TaskExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionMetadata) + TaskExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionMetadata.newBuilder() to construct. + private TaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionMetadata() { + generatedName_ = ""; + externalResources_ = java.util.Collections.emptyList(); + resourcePoolInfo_ = java.util.Collections.emptyList(); + pluginIdentifier_ = ""; + instanceClass_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + generatedName_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + externalResources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + externalResources_.add( + input.readMessage(flyteidl.event.Event.ExternalResourceInfo.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + resourcePoolInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + resourcePoolInfo_.add( + input.readMessage(flyteidl.event.Event.ResourcePoolInfo.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pluginIdentifier_ = s; + break; + } + case 128: { + int rawValue = input.readEnum(); + + instanceClass_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + externalResources_ = java.util.Collections.unmodifiableList(externalResources_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + resourcePoolInfo_ = java.util.Collections.unmodifiableList(resourcePoolInfo_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionMetadata.class, flyteidl.event.Event.TaskExecutionMetadata.Builder.class); + } + + /** + *
+     * Includes the broad category of machine used for this specific task execution.
+     * 
+ * + * Protobuf enum {@code flyteidl.event.TaskExecutionMetadata.InstanceClass} + */ + public enum InstanceClass + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * The default instance class configured for the flyte application platform.
+       * 
+ * + * DEFAULT = 0; + */ + DEFAULT(0), + /** + *
+       * The instance class configured for interruptible tasks.
+       * 
+ * + * INTERRUPTIBLE = 1; + */ + INTERRUPTIBLE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * The default instance class configured for the flyte application platform.
+       * 
+ * + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + *
+       * The instance class configured for interruptible tasks.
+       * 
+ * + * INTERRUPTIBLE = 1; + */ + public static final int INTERRUPTIBLE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InstanceClass valueOf(int value) { + return forNumber(value); + } + + public static InstanceClass forNumber(int value) { + switch (value) { + case 0: return DEFAULT; + case 1: return INTERRUPTIBLE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InstanceClass> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InstanceClass findValueByNumber(int number) { + return InstanceClass.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.event.Event.TaskExecutionMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final InstanceClass[] VALUES = values(); + + public static InstanceClass valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private InstanceClass(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.event.TaskExecutionMetadata.InstanceClass) + } + + private int bitField0_; + public static final int GENERATED_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object generatedName_; + /** + *
+     * Unique, generated name for this task execution used by the backend.
+     * 
+ * + * string generated_name = 1; + */ + public java.lang.String getGeneratedName() { + java.lang.Object ref = generatedName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatedName_ = s; + return s; + } + } + /** + *
+     * Unique, generated name for this task execution used by the backend.
+     * 
+ * + * string generated_name = 1; + */ + public com.google.protobuf.ByteString + getGeneratedNameBytes() { + java.lang.Object ref = generatedName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + generatedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_RESOURCES_FIELD_NUMBER = 2; + private java.util.List externalResources_; + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public java.util.List getExternalResourcesList() { + return externalResources_; + } + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public java.util.List + getExternalResourcesOrBuilderList() { + return externalResources_; + } + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public int getExternalResourcesCount() { + return externalResources_.size(); + } + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public flyteidl.event.Event.ExternalResourceInfo getExternalResources(int index) { + return externalResources_.get(index); + } + /** + *
+     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+     * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public flyteidl.event.Event.ExternalResourceInfoOrBuilder getExternalResourcesOrBuilder( + int index) { + return externalResources_.get(index); + } + + public static final int RESOURCE_POOL_INFO_FIELD_NUMBER = 3; + private java.util.List resourcePoolInfo_; + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public java.util.List getResourcePoolInfoList() { + return resourcePoolInfo_; + } + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public java.util.List + getResourcePoolInfoOrBuilderList() { + return resourcePoolInfo_; + } + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public int getResourcePoolInfoCount() { + return resourcePoolInfo_.size(); + } + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public flyteidl.event.Event.ResourcePoolInfo getResourcePoolInfo(int index) { + return resourcePoolInfo_.get(index); + } + /** + *
+     * Includes additional data on concurrent resource management used during execution..
+     * This is a repeated field because a plugin can request multiple resource allocations during execution.
+     * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public flyteidl.event.Event.ResourcePoolInfoOrBuilder getResourcePoolInfoOrBuilder( + int index) { + return resourcePoolInfo_.get(index); + } + + public static final int PLUGIN_IDENTIFIER_FIELD_NUMBER = 4; + private volatile java.lang.Object pluginIdentifier_; + /** + *
+     * The identifier of the plugin used to execute this task.
+     * 
+ * + * string plugin_identifier = 4; + */ + public java.lang.String getPluginIdentifier() { + java.lang.Object ref = pluginIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pluginIdentifier_ = s; + return s; + } + } + /** + *
+     * The identifier of the plugin used to execute this task.
+     * 
+ * + * string plugin_identifier = 4; + */ + public com.google.protobuf.ByteString + getPluginIdentifierBytes() { + java.lang.Object ref = pluginIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pluginIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_CLASS_FIELD_NUMBER = 16; + private int instanceClass_; + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + public int getInstanceClassValue() { + return instanceClass_; + } + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata.InstanceClass getInstanceClass() { + @SuppressWarnings("deprecation") + flyteidl.event.Event.TaskExecutionMetadata.InstanceClass result = flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.valueOf(instanceClass_); + return result == null ? flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getGeneratedNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, generatedName_); + } + for (int i = 0; i < externalResources_.size(); i++) { + output.writeMessage(2, externalResources_.get(i)); + } + for (int i = 0; i < resourcePoolInfo_.size(); i++) { + output.writeMessage(3, resourcePoolInfo_.get(i)); + } + if (!getPluginIdentifierBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pluginIdentifier_); + } + if (instanceClass_ != flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.DEFAULT.getNumber()) { + output.writeEnum(16, instanceClass_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGeneratedNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, generatedName_); + } + for (int i = 0; i < externalResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, externalResources_.get(i)); + } + for (int i = 0; i < resourcePoolInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, resourcePoolInfo_.get(i)); + } + if (!getPluginIdentifierBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pluginIdentifier_); + } + if (instanceClass_ != flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(16, instanceClass_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.event.Event.TaskExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.TaskExecutionMetadata other = (flyteidl.event.Event.TaskExecutionMetadata) obj; + + if (!getGeneratedName() + .equals(other.getGeneratedName())) return false; + if (!getExternalResourcesList() + .equals(other.getExternalResourcesList())) return false; + if (!getResourcePoolInfoList() + .equals(other.getResourcePoolInfoList())) return false; + if (!getPluginIdentifier() + .equals(other.getPluginIdentifier())) return false; + if (instanceClass_ != other.instanceClass_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GENERATED_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedName().hashCode(); + if (getExternalResourcesCount() > 0) { + hash = (37 * hash) + EXTERNAL_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getExternalResourcesList().hashCode(); + } + if (getResourcePoolInfoCount() > 0) { + hash = (37 * hash) + RESOURCE_POOL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getResourcePoolInfoList().hashCode(); + } + hash = (37 * hash) + PLUGIN_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPluginIdentifier().hashCode(); + hash = (37 * hash) + INSTANCE_CLASS_FIELD_NUMBER; + hash = (53 * hash) + instanceClass_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.TaskExecutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Holds metadata around how a task was executed.
+     * As a task transitions across event phases during execution some attributes, such its generated name, generated external resources,
+     * and more may grow in size but not change necessarily based on the phase transition that sparked the event update.
+     * Metadata is a container for these attributes across the task execution lifecycle.
+     * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionMetadata) + flyteidl.event.Event.TaskExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionMetadata.class, flyteidl.event.Event.TaskExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.TaskExecutionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getExternalResourcesFieldBuilder(); + getResourcePoolInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + generatedName_ = ""; + + if (externalResourcesBuilder_ == null) { + externalResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + externalResourcesBuilder_.clear(); + } + if (resourcePoolInfoBuilder_ == null) { + resourcePoolInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + resourcePoolInfoBuilder_.clear(); + } + pluginIdentifier_ = ""; + + instanceClass_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionMetadata build() { + flyteidl.event.Event.TaskExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionMetadata buildPartial() { + flyteidl.event.Event.TaskExecutionMetadata result = new flyteidl.event.Event.TaskExecutionMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.generatedName_ = generatedName_; + if (externalResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + externalResources_ = java.util.Collections.unmodifiableList(externalResources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.externalResources_ = externalResources_; + } else { + result.externalResources_ = externalResourcesBuilder_.build(); + } + if (resourcePoolInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + resourcePoolInfo_ = java.util.Collections.unmodifiableList(resourcePoolInfo_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resourcePoolInfo_ = resourcePoolInfo_; + } else { + result.resourcePoolInfo_ = resourcePoolInfoBuilder_.build(); + } + result.pluginIdentifier_ = pluginIdentifier_; + result.instanceClass_ = instanceClass_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.TaskExecutionMetadata) { + return mergeFrom((flyteidl.event.Event.TaskExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.TaskExecutionMetadata other) { + if (other == flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance()) return this; + if (!other.getGeneratedName().isEmpty()) { + generatedName_ = other.generatedName_; + onChanged(); + } + if (externalResourcesBuilder_ == null) { + if (!other.externalResources_.isEmpty()) { + if (externalResources_.isEmpty()) { + externalResources_ = other.externalResources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExternalResourcesIsMutable(); + externalResources_.addAll(other.externalResources_); + } + onChanged(); + } + } else { + if (!other.externalResources_.isEmpty()) { + if (externalResourcesBuilder_.isEmpty()) { + externalResourcesBuilder_.dispose(); + externalResourcesBuilder_ = null; + externalResources_ = other.externalResources_; + bitField0_ = (bitField0_ & ~0x00000002); + externalResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExternalResourcesFieldBuilder() : null; + } else { + externalResourcesBuilder_.addAllMessages(other.externalResources_); + } + } + } + if (resourcePoolInfoBuilder_ == null) { + if (!other.resourcePoolInfo_.isEmpty()) { + if (resourcePoolInfo_.isEmpty()) { + resourcePoolInfo_ = other.resourcePoolInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.addAll(other.resourcePoolInfo_); + } + onChanged(); + } + } else { + if (!other.resourcePoolInfo_.isEmpty()) { + if (resourcePoolInfoBuilder_.isEmpty()) { + resourcePoolInfoBuilder_.dispose(); + resourcePoolInfoBuilder_ = null; + resourcePoolInfo_ = other.resourcePoolInfo_; + bitField0_ = (bitField0_ & ~0x00000004); + resourcePoolInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcePoolInfoFieldBuilder() : null; + } else { + resourcePoolInfoBuilder_.addAllMessages(other.resourcePoolInfo_); + } + } + } + if (!other.getPluginIdentifier().isEmpty()) { + pluginIdentifier_ = other.pluginIdentifier_; + onChanged(); + } + if (other.instanceClass_ != 0) { + setInstanceClassValue(other.getInstanceClassValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.TaskExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.TaskExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object generatedName_ = ""; + /** + *
+       * Unique, generated name for this task execution used by the backend.
+       * 
+ * + * string generated_name = 1; + */ + public java.lang.String getGeneratedName() { + java.lang.Object ref = generatedName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatedName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique, generated name for this task execution used by the backend.
+       * 
+ * + * string generated_name = 1; + */ + public com.google.protobuf.ByteString + getGeneratedNameBytes() { + java.lang.Object ref = generatedName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + generatedName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique, generated name for this task execution used by the backend.
+       * 
+ * + * string generated_name = 1; + */ + public Builder setGeneratedName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + generatedName_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique, generated name for this task execution used by the backend.
+       * 
+ * + * string generated_name = 1; + */ + public Builder clearGeneratedName() { + + generatedName_ = getDefaultInstance().getGeneratedName(); + onChanged(); + return this; + } + /** + *
+       * Unique, generated name for this task execution used by the backend.
+       * 
+ * + * string generated_name = 1; + */ + public Builder setGeneratedNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + generatedName_ = value; + onChanged(); + return this; + } + + private java.util.List externalResources_ = + java.util.Collections.emptyList(); + private void ensureExternalResourcesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + externalResources_ = new java.util.ArrayList(externalResources_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.event.Event.ExternalResourceInfo, flyteidl.event.Event.ExternalResourceInfo.Builder, flyteidl.event.Event.ExternalResourceInfoOrBuilder> externalResourcesBuilder_; + + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public java.util.List getExternalResourcesList() { + if (externalResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(externalResources_); + } else { + return externalResourcesBuilder_.getMessageList(); + } + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public int getExternalResourcesCount() { + if (externalResourcesBuilder_ == null) { + return externalResources_.size(); + } else { + return externalResourcesBuilder_.getCount(); + } + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public flyteidl.event.Event.ExternalResourceInfo getExternalResources(int index) { + if (externalResourcesBuilder_ == null) { + return externalResources_.get(index); + } else { + return externalResourcesBuilder_.getMessage(index); + } + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder setExternalResources( + int index, flyteidl.event.Event.ExternalResourceInfo value) { + if (externalResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalResourcesIsMutable(); + externalResources_.set(index, value); + onChanged(); + } else { + externalResourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder setExternalResources( + int index, flyteidl.event.Event.ExternalResourceInfo.Builder builderForValue) { + if (externalResourcesBuilder_ == null) { + ensureExternalResourcesIsMutable(); + externalResources_.set(index, builderForValue.build()); + onChanged(); + } else { + externalResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder addExternalResources(flyteidl.event.Event.ExternalResourceInfo value) { + if (externalResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalResourcesIsMutable(); + externalResources_.add(value); + onChanged(); + } else { + externalResourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder addExternalResources( + int index, flyteidl.event.Event.ExternalResourceInfo value) { + if (externalResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExternalResourcesIsMutable(); + externalResources_.add(index, value); + onChanged(); + } else { + externalResourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder addExternalResources( + flyteidl.event.Event.ExternalResourceInfo.Builder builderForValue) { + if (externalResourcesBuilder_ == null) { + ensureExternalResourcesIsMutable(); + externalResources_.add(builderForValue.build()); + onChanged(); + } else { + externalResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder addExternalResources( + int index, flyteidl.event.Event.ExternalResourceInfo.Builder builderForValue) { + if (externalResourcesBuilder_ == null) { + ensureExternalResourcesIsMutable(); + externalResources_.add(index, builderForValue.build()); + onChanged(); + } else { + externalResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder addAllExternalResources( + java.lang.Iterable values) { + if (externalResourcesBuilder_ == null) { + ensureExternalResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, externalResources_); + onChanged(); + } else { + externalResourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder clearExternalResources() { + if (externalResourcesBuilder_ == null) { + externalResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + externalResourcesBuilder_.clear(); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public Builder removeExternalResources(int index) { + if (externalResourcesBuilder_ == null) { + ensureExternalResourcesIsMutable(); + externalResources_.remove(index); + onChanged(); + } else { + externalResourcesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public flyteidl.event.Event.ExternalResourceInfo.Builder getExternalResourcesBuilder( + int index) { + return getExternalResourcesFieldBuilder().getBuilder(index); + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public flyteidl.event.Event.ExternalResourceInfoOrBuilder getExternalResourcesOrBuilder( + int index) { + if (externalResourcesBuilder_ == null) { + return externalResources_.get(index); } else { + return externalResourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public java.util.List + getExternalResourcesOrBuilderList() { + if (externalResourcesBuilder_ != null) { + return externalResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(externalResources_); + } + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public flyteidl.event.Event.ExternalResourceInfo.Builder addExternalResourcesBuilder() { + return getExternalResourcesFieldBuilder().addBuilder( + flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance()); + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public flyteidl.event.Event.ExternalResourceInfo.Builder addExternalResourcesBuilder( + int index) { + return getExternalResourcesFieldBuilder().addBuilder( + index, flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance()); + } + /** + *
+       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
+       * 
+ * + * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + public java.util.List + getExternalResourcesBuilderList() { + return getExternalResourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.event.Event.ExternalResourceInfo, flyteidl.event.Event.ExternalResourceInfo.Builder, flyteidl.event.Event.ExternalResourceInfoOrBuilder> + getExternalResourcesFieldBuilder() { + if (externalResourcesBuilder_ == null) { + externalResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.event.Event.ExternalResourceInfo, flyteidl.event.Event.ExternalResourceInfo.Builder, flyteidl.event.Event.ExternalResourceInfoOrBuilder>( + externalResources_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + externalResources_ = null; + } + return externalResourcesBuilder_; + } + + private java.util.List resourcePoolInfo_ = + java.util.Collections.emptyList(); + private void ensureResourcePoolInfoIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + resourcePoolInfo_ = new java.util.ArrayList(resourcePoolInfo_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.event.Event.ResourcePoolInfo, flyteidl.event.Event.ResourcePoolInfo.Builder, flyteidl.event.Event.ResourcePoolInfoOrBuilder> resourcePoolInfoBuilder_; + + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public java.util.List getResourcePoolInfoList() { + if (resourcePoolInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourcePoolInfo_); + } else { + return resourcePoolInfoBuilder_.getMessageList(); + } + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public int getResourcePoolInfoCount() { + if (resourcePoolInfoBuilder_ == null) { + return resourcePoolInfo_.size(); + } else { + return resourcePoolInfoBuilder_.getCount(); + } + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public flyteidl.event.Event.ResourcePoolInfo getResourcePoolInfo(int index) { + if (resourcePoolInfoBuilder_ == null) { + return resourcePoolInfo_.get(index); + } else { + return resourcePoolInfoBuilder_.getMessage(index); + } + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder setResourcePoolInfo( + int index, flyteidl.event.Event.ResourcePoolInfo value) { + if (resourcePoolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.set(index, value); + onChanged(); + } else { + resourcePoolInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder setResourcePoolInfo( + int index, flyteidl.event.Event.ResourcePoolInfo.Builder builderForValue) { + if (resourcePoolInfoBuilder_ == null) { + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcePoolInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder addResourcePoolInfo(flyteidl.event.Event.ResourcePoolInfo value) { + if (resourcePoolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.add(value); + onChanged(); + } else { + resourcePoolInfoBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder addResourcePoolInfo( + int index, flyteidl.event.Event.ResourcePoolInfo value) { + if (resourcePoolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.add(index, value); + onChanged(); + } else { + resourcePoolInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder addResourcePoolInfo( + flyteidl.event.Event.ResourcePoolInfo.Builder builderForValue) { + if (resourcePoolInfoBuilder_ == null) { + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.add(builderForValue.build()); + onChanged(); + } else { + resourcePoolInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder addResourcePoolInfo( + int index, flyteidl.event.Event.ResourcePoolInfo.Builder builderForValue) { + if (resourcePoolInfoBuilder_ == null) { + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcePoolInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder addAllResourcePoolInfo( + java.lang.Iterable values) { + if (resourcePoolInfoBuilder_ == null) { + ensureResourcePoolInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourcePoolInfo_); + onChanged(); + } else { + resourcePoolInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder clearResourcePoolInfo() { + if (resourcePoolInfoBuilder_ == null) { + resourcePoolInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + resourcePoolInfoBuilder_.clear(); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public Builder removeResourcePoolInfo(int index) { + if (resourcePoolInfoBuilder_ == null) { + ensureResourcePoolInfoIsMutable(); + resourcePoolInfo_.remove(index); + onChanged(); + } else { + resourcePoolInfoBuilder_.remove(index); + } + return this; + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public flyteidl.event.Event.ResourcePoolInfo.Builder getResourcePoolInfoBuilder( + int index) { + return getResourcePoolInfoFieldBuilder().getBuilder(index); + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public flyteidl.event.Event.ResourcePoolInfoOrBuilder getResourcePoolInfoOrBuilder( + int index) { + if (resourcePoolInfoBuilder_ == null) { + return resourcePoolInfo_.get(index); } else { + return resourcePoolInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public java.util.List + getResourcePoolInfoOrBuilderList() { + if (resourcePoolInfoBuilder_ != null) { + return resourcePoolInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourcePoolInfo_); + } + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public flyteidl.event.Event.ResourcePoolInfo.Builder addResourcePoolInfoBuilder() { + return getResourcePoolInfoFieldBuilder().addBuilder( + flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance()); + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public flyteidl.event.Event.ResourcePoolInfo.Builder addResourcePoolInfoBuilder( + int index) { + return getResourcePoolInfoFieldBuilder().addBuilder( + index, flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance()); + } + /** + *
+       * Includes additional data on concurrent resource management used during execution..
+       * This is a repeated field because a plugin can request multiple resource allocations during execution.
+       * 
+ * + * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + public java.util.List + getResourcePoolInfoBuilderList() { + return getResourcePoolInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.event.Event.ResourcePoolInfo, flyteidl.event.Event.ResourcePoolInfo.Builder, flyteidl.event.Event.ResourcePoolInfoOrBuilder> + getResourcePoolInfoFieldBuilder() { + if (resourcePoolInfoBuilder_ == null) { + resourcePoolInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.event.Event.ResourcePoolInfo, flyteidl.event.Event.ResourcePoolInfo.Builder, flyteidl.event.Event.ResourcePoolInfoOrBuilder>( + resourcePoolInfo_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + resourcePoolInfo_ = null; + } + return resourcePoolInfoBuilder_; + } + + private java.lang.Object pluginIdentifier_ = ""; + /** + *
+       * The identifier of the plugin used to execute this task.
+       * 
+ * + * string plugin_identifier = 4; + */ + public java.lang.String getPluginIdentifier() { + java.lang.Object ref = pluginIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pluginIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The identifier of the plugin used to execute this task.
+       * 
+ * + * string plugin_identifier = 4; + */ + public com.google.protobuf.ByteString + getPluginIdentifierBytes() { + java.lang.Object ref = pluginIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pluginIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The identifier of the plugin used to execute this task.
+       * 
+ * + * string plugin_identifier = 4; + */ + public Builder setPluginIdentifier( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pluginIdentifier_ = value; + onChanged(); + return this; + } + /** + *
+       * The identifier of the plugin used to execute this task.
+       * 
+ * + * string plugin_identifier = 4; + */ + public Builder clearPluginIdentifier() { + + pluginIdentifier_ = getDefaultInstance().getPluginIdentifier(); + onChanged(); + return this; + } + /** + *
+       * The identifier of the plugin used to execute this task.
+       * 
+ * + * string plugin_identifier = 4; + */ + public Builder setPluginIdentifierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pluginIdentifier_ = value; + onChanged(); + return this; + } + + private int instanceClass_ = 0; + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + public int getInstanceClassValue() { + return instanceClass_; + } + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + public Builder setInstanceClassValue(int value) { + instanceClass_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + public flyteidl.event.Event.TaskExecutionMetadata.InstanceClass getInstanceClass() { + @SuppressWarnings("deprecation") + flyteidl.event.Event.TaskExecutionMetadata.InstanceClass result = flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.valueOf(instanceClass_); + return result == null ? flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.UNRECOGNIZED : result; + } + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + public Builder setInstanceClass(flyteidl.event.Event.TaskExecutionMetadata.InstanceClass value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceClass_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + public Builder clearInstanceClass() { + + instanceClass_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.TaskExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionMetadata) + private static final flyteidl.event.Event.TaskExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionMetadata(); + } + + public static flyteidl.event.Event.TaskExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.event.Event.TaskExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_TaskNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_ExternalResourceInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_ResourcePoolInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/event/event.proto\022\016flyteidl.e" + + "vent\032\034flyteidl/core/literals.proto\032\034flyt" + + "eidl/core/compiler.proto\032\035flyteidl/core/" + + "execution.proto\032\036flyteidl/core/identifie" + + "r.proto\032\033flyteidl/core/catalog.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\034google/pr" + + "otobuf/struct.proto\"\340\002\n\026WorkflowExecutio" + + "nEvent\022@\n\014execution_id\030\001 \001(\0132*.flyteidl." + + "core.WorkflowExecutionIdentifier\022\023\n\013prod" + + "ucer_id\030\002 \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl." + + "core.WorkflowExecution.Phase\022/\n\013occurred" + + "_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n" + + "\noutput_uri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.fly" + + "teidl.core.ExecutionErrorH\000\0220\n\013output_da" + + "ta\030\007 \001(\0132\031.flyteidl.core.LiteralMapH\000B\017\n" + + "\routput_result\"\217\007\n\022NodeExecutionEvent\0222\n" + + "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + + "dentifier\022\023\n\013producer_id\030\002 \001(\t\0221\n\005phase\030" + + "\003 \001(\0162\".flyteidl.core.NodeExecution.Phas" + + "e\022/\n\013occurred_at\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\022\023\n\tinput_uri\030\005 \001(\tH\000\022/\n\ninput" + + "_data\030\024 \001(\0132\031.flyteidl.core.LiteralMapH\000" + + "\022\024\n\noutput_uri\030\006 \001(\tH\001\022.\n\005error\030\007 \001(\0132\035." + + "flyteidl.core.ExecutionErrorH\001\0220\n\013output" + + "_data\030\017 \001(\0132\031.flyteidl.core.LiteralMapH\001" + + "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + + "idl.event.WorkflowNodeMetadataH\002\022>\n\022task" + + "_node_metadata\030\016 \001(\0132 .flyteidl.event.Ta" + + "skNodeMetadataH\002\022I\n\024parent_task_metadata" + + "\030\t \001(\0132+.flyteidl.event.ParentTaskExecut" + + "ionMetadata\022I\n\024parent_node_metadata\030\n \001(" + + "\0132+.flyteidl.event.ParentNodeExecutionMe" + + "tadata\022\023\n\013retry_group\030\013 \001(\t\022\024\n\014spec_node" + + "_id\030\014 \001(\t\022\021\n\tnode_name\030\r \001(\t\022\025\n\revent_ve" + + "rsion\030\020 \001(\005\022\021\n\tis_parent\030\021 \001(\010\022\022\n\nis_dyn" + + "amic\030\022 \001(\010\022\020\n\010deck_uri\030\023 \001(\t\022/\n\013reported" + + "_at\030\025 \001(\0132\032.google.protobuf.TimestampB\r\n" + + "\013input_valueB\017\n\routput_resultB\021\n\017target_" + + "metadata\"X\n\024WorkflowNodeMetadata\022@\n\014exec" + + "ution_id\030\001 \001(\0132*.flyteidl.core.WorkflowE" + + "xecutionIdentifier\"\245\002\n\020TaskNodeMetadata\022" + + "7\n\014cache_status\030\001 \001(\0162!.flyteidl.core.Ca" + + "talogCacheStatus\0223\n\013catalog_key\030\002 \001(\0132\036." + + "flyteidl.core.CatalogMetadata\022D\n\022reserva" + + "tion_status\030\003 \001(\0162(.flyteidl.core.Catalo" + + "gReservation.Status\022\026\n\016checkpoint_uri\030\004 " + + "\001(\t\022E\n\020dynamic_workflow\030\020 \001(\0132+.flyteidl" + + ".event.DynamicWorkflowNodeMetadata\"\245\001\n\033D" + + "ynamicWorkflowNodeMetadata\022%\n\002id\030\001 \001(\0132\031" + + ".flyteidl.core.Identifier\022A\n\021compiled_wo" + + "rkflow\030\002 \001(\0132&.flyteidl.core.CompiledWor" + + "kflowClosure\022\034\n\024dynamic_job_spec_uri\030\003 \001" + + "(\t\"Q\n\033ParentTaskExecutionMetadata\0222\n\002id\030" + + "\001 \001(\0132&.flyteidl.core.TaskExecutionIdent" + + "ifier\".\n\033ParentNodeExecutionMetadata\022\017\n\007" + + "node_id\030\001 \001(\t\"\207\006\n\022TaskExecutionEvent\022*\n\007" + + "task_id\030\001 \001(\0132\031.flyteidl.core.Identifier" + + "\022H\n\030parent_node_execution_id\030\002 \001(\0132&.fly" + + "teidl.core.NodeExecutionIdentifier\022\025\n\rre" + + "try_attempt\030\003 \001(\r\0221\n\005phase\030\004 \001(\0162\".flyte" + + "idl.core.TaskExecution.Phase\022\023\n\013producer" + + "_id\030\005 \001(\t\022$\n\004logs\030\006 \003(\0132\026.flyteidl.core." + + "TaskLog\022/\n\013occurred_at\030\007 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\023\n\tinput_uri\030\010 \001(\tH\000\022/\n" + + "\ninput_data\030\023 \001(\0132\031.flyteidl.core.Litera" + + "lMapH\000\022\024\n\noutput_uri\030\t \001(\tH\001\022.\n\005error\030\n " + + "\001(\0132\035.flyteidl.core.ExecutionErrorH\001\0220\n\013" + + "output_data\030\021 \001(\0132\031.flyteidl.core.Litera" + + "lMapH\001\022,\n\013custom_info\030\013 \001(\0132\027.google.pro" + + "tobuf.Struct\022\025\n\rphase_version\030\014 \001(\r\022\016\n\006r" + + "eason\030\r \001(\t\022\021\n\ttask_type\030\016 \001(\t\0227\n\010metada" + + "ta\030\020 \001(\0132%.flyteidl.event.TaskExecutionM" + + "etadata\022\025\n\revent_version\030\022 \001(\005\022/\n\013report" + + "ed_at\030\024 \001(\0132\032.google.protobuf.TimestampB" + + "\r\n\013input_valueB\017\n\routput_result\"\343\001\n\024Exte" + + "rnalResourceInfo\022\023\n\013external_id\030\001 \001(\t\022\r\n" + + "\005index\030\002 \001(\r\022\025\n\rretry_attempt\030\003 \001(\r\0221\n\005p" + + "hase\030\004 \001(\0162\".flyteidl.core.TaskExecution" + + ".Phase\0227\n\014cache_status\030\005 \001(\0162!.flyteidl." + + "core.CatalogCacheStatus\022$\n\004logs\030\006 \003(\0132\026." + + "flyteidl.core.TaskLog\"?\n\020ResourcePoolInf" + + "o\022\030\n\020allocation_token\030\001 \001(\t\022\021\n\tnamespace" + + "\030\002 \001(\t\"\310\002\n\025TaskExecutionMetadata\022\026\n\016gene" + + "rated_name\030\001 \001(\t\022@\n\022external_resources\030\002" + + " \003(\0132$.flyteidl.event.ExternalResourceIn" + + "fo\022<\n\022resource_pool_info\030\003 \003(\0132 .flyteid" + + "l.event.ResourcePoolInfo\022\031\n\021plugin_ident" + + "ifier\030\004 \001(\t\022K\n\016instance_class\030\020 \001(\01623.fl" + + "yteidl.event.TaskExecutionMetadata.Insta" + + "nceClass\"/\n\rInstanceClass\022\013\n\007DEFAULT\020\000\022\021" + + "\n\rINTERRUPTIBLE\020\001B7Z5github.com/flyteorg" + + "/flyteidl/gen/pb-go/flyteidl/eventb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Compiler.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Catalog.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor, + new java.lang.String[] { "ExecutionId", "ProducerId", "Phase", "OccurredAt", "OutputUri", "Error", "OutputData", "OutputResult", }); + internal_static_flyteidl_event_NodeExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_NodeExecutionEvent_descriptor, + new java.lang.String[] { "Id", "ProducerId", "Phase", "OccurredAt", "InputUri", "InputData", "OutputUri", "Error", "OutputData", "WorkflowNodeMetadata", "TaskNodeMetadata", "ParentTaskMetadata", "ParentNodeMetadata", "RetryGroup", "SpecNodeId", "NodeName", "EventVersion", "IsParent", "IsDynamic", "DeckUri", "ReportedAt", "InputValue", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_event_TaskNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_TaskNodeMetadata_descriptor, + new java.lang.String[] { "CacheStatus", "CatalogKey", "ReservationStatus", "CheckpointUri", "DynamicWorkflow", }); + internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor, + new java.lang.String[] { "Id", "CompiledWorkflow", "DynamicJobSpecUri", }); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor, + new java.lang.String[] { "NodeId", }); + internal_static_flyteidl_event_TaskExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_TaskExecutionEvent_descriptor, + new java.lang.String[] { "TaskId", "ParentNodeExecutionId", "RetryAttempt", "Phase", "ProducerId", "Logs", "OccurredAt", "InputUri", "InputData", "OutputUri", "Error", "OutputData", "CustomInfo", "PhaseVersion", "Reason", "TaskType", "Metadata", "EventVersion", "ReportedAt", "InputValue", "OutputResult", }); + internal_static_flyteidl_event_ExternalResourceInfo_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_ExternalResourceInfo_descriptor, + new java.lang.String[] { "ExternalId", "Index", "RetryAttempt", "Phase", "CacheStatus", "Logs", }); + internal_static_flyteidl_event_ResourcePoolInfo_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_ResourcePoolInfo_descriptor, + new java.lang.String[] { "AllocationToken", "Namespace", }); + internal_static_flyteidl_event_TaskExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_TaskExecutionMetadata_descriptor, + new java.lang.String[] { "GeneratedName", "ExternalResources", "ResourcePoolInfo", "PluginIdentifier", "InstanceClass", }); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Compiler.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Catalog.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java new file mode 100644 index 0000000000..fa8dfcc552 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java @@ -0,0 +1,947 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +package flyteidl.plugins; + +public final class ArrayJobOuterClass { + private ArrayJobOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ArrayJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ArrayJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + long getParallelism(); + + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
+     * 
+ * + * int64 size = 2; + */ + long getSize(); + + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size (if specified).
+     * 
+ * + * int64 min_successes = 3; + */ + long getMinSuccesses(); + + /** + *
+     * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
+     * job can be marked successful.
+     * 
+ * + * float min_success_ratio = 4; + */ + float getMinSuccessRatio(); + + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob.SuccessCriteriaCase getSuccessCriteriaCase(); + } + /** + *
+   * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+   * will be executed concurrently.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class ArrayJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.ArrayJob) + ArrayJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArrayJob.newBuilder() to construct. + private ArrayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArrayJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArrayJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + parallelism_ = input.readInt64(); + break; + } + case 16: { + + size_ = input.readInt64(); + break; + } + case 24: { + successCriteriaCase_ = 3; + successCriteria_ = input.readInt64(); + break; + } + case 37: { + successCriteriaCase_ = 4; + successCriteria_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + private int successCriteriaCase_ = 0; + private java.lang.Object successCriteria_; + public enum SuccessCriteriaCase + implements com.google.protobuf.Internal.EnumLite { + MIN_SUCCESSES(3), + MIN_SUCCESS_RATIO(4), + SUCCESSCRITERIA_NOT_SET(0); + private final int value; + private SuccessCriteriaCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SuccessCriteriaCase valueOf(int value) { + return forNumber(value); + } + + public static SuccessCriteriaCase forNumber(int value) { + switch (value) { + case 3: return MIN_SUCCESSES; + case 4: return MIN_SUCCESS_RATIO; + case 0: return SUCCESSCRITERIA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SuccessCriteriaCase + getSuccessCriteriaCase() { + return SuccessCriteriaCase.forNumber( + successCriteriaCase_); + } + + public static final int PARALLELISM_FIELD_NUMBER = 1; + private long parallelism_; + /** + *
+     * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private long size_; + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
+     * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size (if specified).
+     * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + if (successCriteriaCase_ == 3) { + return (java.lang.Long) successCriteria_; + } + return 0L; + } + + public static final int MIN_SUCCESS_RATIO_FIELD_NUMBER = 4; + /** + *
+     * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
+     * job can be marked successful.
+     * 
+ * + * float min_success_ratio = 4; + */ + public float getMinSuccessRatio() { + if (successCriteriaCase_ == 4) { + return (java.lang.Float) successCriteria_; + } + return 0F; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parallelism_ != 0L) { + output.writeInt64(1, parallelism_); + } + if (size_ != 0L) { + output.writeInt64(2, size_); + } + if (successCriteriaCase_ == 3) { + output.writeInt64( + 3, (long)((java.lang.Long) successCriteria_)); + } + if (successCriteriaCase_ == 4) { + output.writeFloat( + 4, (float)((java.lang.Float) successCriteria_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parallelism_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, parallelism_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, size_); + } + if (successCriteriaCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 3, (long)((java.lang.Long) successCriteria_)); + } + if (successCriteriaCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 4, (float)((java.lang.Float) successCriteria_)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.ArrayJobOuterClass.ArrayJob)) { + return super.equals(obj); + } + flyteidl.plugins.ArrayJobOuterClass.ArrayJob other = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) obj; + + if (getParallelism() + != other.getParallelism()) return false; + if (getSize() + != other.getSize()) return false; + if (!getSuccessCriteriaCase().equals(other.getSuccessCriteriaCase())) return false; + switch (successCriteriaCase_) { + case 3: + if (getMinSuccesses() + != other.getMinSuccesses()) return false; + break; + case 4: + if (java.lang.Float.floatToIntBits(getMinSuccessRatio()) + != java.lang.Float.floatToIntBits( + other.getMinSuccessRatio())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getParallelism()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + switch (successCriteriaCase_) { + case 3: + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + break; + case 4: + hash = (37 * hash) + MIN_SUCCESS_RATIO_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMinSuccessRatio()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.ArrayJobOuterClass.ArrayJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+     * will be executed concurrently.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ArrayJob) + flyteidl.plugins.ArrayJobOuterClass.ArrayJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + // Construct using flyteidl.plugins.ArrayJobOuterClass.ArrayJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parallelism_ = 0L; + + size_ = 0L; + + successCriteriaCase_ = 0; + successCriteria_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob build() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob buildPartial() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(this); + result.parallelism_ = parallelism_; + result.size_ = size_; + if (successCriteriaCase_ == 3) { + result.successCriteria_ = successCriteria_; + } + if (successCriteriaCase_ == 4) { + result.successCriteria_ = successCriteria_; + } + result.successCriteriaCase_ = successCriteriaCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.ArrayJobOuterClass.ArrayJob) { + return mergeFrom((flyteidl.plugins.ArrayJobOuterClass.ArrayJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.ArrayJobOuterClass.ArrayJob other) { + if (other == flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance()) return this; + if (other.getParallelism() != 0L) { + setParallelism(other.getParallelism()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + switch (other.getSuccessCriteriaCase()) { + case MIN_SUCCESSES: { + setMinSuccesses(other.getMinSuccesses()); + break; + } + case MIN_SUCCESS_RATIO: { + setMinSuccessRatio(other.getMinSuccessRatio()); + break; + } + case SUCCESSCRITERIA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int successCriteriaCase_ = 0; + private java.lang.Object successCriteria_; + public SuccessCriteriaCase + getSuccessCriteriaCase() { + return SuccessCriteriaCase.forNumber( + successCriteriaCase_); + } + + public Builder clearSuccessCriteria() { + successCriteriaCase_ = 0; + successCriteria_ = null; + onChanged(); + return this; + } + + + private long parallelism_ ; + /** + *
+       * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + /** + *
+       * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder setParallelism(long value) { + + parallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder clearParallelism() { + + parallelism_ = 0L; + onChanged(); + return this; + } + + private long size_ ; + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
+       * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
+       * 
+ * + * int64 size = 2; + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
+       * 
+ * + * int64 size = 2; + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size (if specified).
+       * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + if (successCriteriaCase_ == 3) { + return (java.lang.Long) successCriteria_; + } + return 0L; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size (if specified).
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder setMinSuccesses(long value) { + successCriteriaCase_ = 3; + successCriteria_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size (if specified).
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder clearMinSuccesses() { + if (successCriteriaCase_ == 3) { + successCriteriaCase_ = 0; + successCriteria_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
+       * job can be marked successful.
+       * 
+ * + * float min_success_ratio = 4; + */ + public float getMinSuccessRatio() { + if (successCriteriaCase_ == 4) { + return (java.lang.Float) successCriteria_; + } + return 0F; + } + /** + *
+       * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
+       * job can be marked successful.
+       * 
+ * + * float min_success_ratio = 4; + */ + public Builder setMinSuccessRatio(float value) { + successCriteriaCase_ = 4; + successCriteria_ = value; + onChanged(); + return this; + } + /** + *
+       * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
+       * job can be marked successful.
+       * 
+ * + * float min_success_ratio = 4; + */ + public Builder clearMinSuccessRatio() { + if (successCriteriaCase_ == 4) { + successCriteriaCase_ = 0; + successCriteria_ = null; + onChanged(); + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.ArrayJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) + private static final flyteidl.plugins.ArrayJobOuterClass.ArrayJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(); + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrayJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_ArrayJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n flyteidl/plugins/array_job.proto\022\020flyt" + + "eidl.plugins\"w\n\010ArrayJob\022\023\n\013parallelism\030" + + "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\027\n\rmin_successes\030\003 \001" + + "(\003H\000\022\033\n\021min_success_ratio\030\004 \001(\002H\000B\022\n\020suc" + + "cess_criteriaB9Z7github.com/flyteorg/fly" + + "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_ArrayJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_ArrayJob_descriptor, + new java.lang.String[] { "Parallelism", "Size", "MinSuccesses", "MinSuccessRatio", "SuccessCriteria", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Dask.java b/flyteidl/gen/pb-java/flyteidl/plugins/Dask.java new file mode 100644 index 0000000000..0961e20e7d --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Dask.java @@ -0,0 +1,2844 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/dask.proto + +package flyteidl.plugins; + +public final class Dask { + private Dask() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DaskJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DaskJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Spec for the scheduler pod.
+     * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + boolean hasScheduler(); + /** + *
+     * Spec for the scheduler pod.
+     * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + flyteidl.plugins.Dask.DaskScheduler getScheduler(); + /** + *
+     * Spec for the scheduler pod.
+     * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + flyteidl.plugins.Dask.DaskSchedulerOrBuilder getSchedulerOrBuilder(); + + /** + *
+     * Spec of the default worker group.
+     * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + boolean hasWorkers(); + /** + *
+     * Spec of the default worker group.
+     * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + flyteidl.plugins.Dask.DaskWorkerGroup getWorkers(); + /** + *
+     * Spec of the default worker group.
+     * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder getWorkersOrBuilder(); + } + /** + *
+   * Custom Proto for Dask Plugin.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DaskJob} + */ + public static final class DaskJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DaskJob) + DaskJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use DaskJob.newBuilder() to construct. + private DaskJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DaskJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DaskJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.Dask.DaskScheduler.Builder subBuilder = null; + if (scheduler_ != null) { + subBuilder = scheduler_.toBuilder(); + } + scheduler_ = input.readMessage(flyteidl.plugins.Dask.DaskScheduler.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduler_); + scheduler_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.Dask.DaskWorkerGroup.Builder subBuilder = null; + if (workers_ != null) { + subBuilder = workers_.toBuilder(); + } + workers_ = input.readMessage(flyteidl.plugins.Dask.DaskWorkerGroup.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workers_); + workers_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Dask.DaskJob.class, flyteidl.plugins.Dask.DaskJob.Builder.class); + } + + public static final int SCHEDULER_FIELD_NUMBER = 1; + private flyteidl.plugins.Dask.DaskScheduler scheduler_; + /** + *
+     * Spec for the scheduler pod.
+     * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public boolean hasScheduler() { + return scheduler_ != null; + } + /** + *
+     * Spec for the scheduler pod.
+     * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public flyteidl.plugins.Dask.DaskScheduler getScheduler() { + return scheduler_ == null ? flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance() : scheduler_; + } + /** + *
+     * Spec for the scheduler pod.
+     * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public flyteidl.plugins.Dask.DaskSchedulerOrBuilder getSchedulerOrBuilder() { + return getScheduler(); + } + + public static final int WORKERS_FIELD_NUMBER = 2; + private flyteidl.plugins.Dask.DaskWorkerGroup workers_; + /** + *
+     * Spec of the default worker group.
+     * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public boolean hasWorkers() { + return workers_ != null; + } + /** + *
+     * Spec of the default worker group.
+     * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public flyteidl.plugins.Dask.DaskWorkerGroup getWorkers() { + return workers_ == null ? flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance() : workers_; + } + /** + *
+     * Spec of the default worker group.
+     * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder getWorkersOrBuilder() { + return getWorkers(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (scheduler_ != null) { + output.writeMessage(1, getScheduler()); + } + if (workers_ != null) { + output.writeMessage(2, getWorkers()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scheduler_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScheduler()); + } + if (workers_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkers()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Dask.DaskJob)) { + return super.equals(obj); + } + flyteidl.plugins.Dask.DaskJob other = (flyteidl.plugins.Dask.DaskJob) obj; + + if (hasScheduler() != other.hasScheduler()) return false; + if (hasScheduler()) { + if (!getScheduler() + .equals(other.getScheduler())) return false; + } + if (hasWorkers() != other.hasWorkers()) return false; + if (hasWorkers()) { + if (!getWorkers() + .equals(other.getWorkers())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasScheduler()) { + hash = (37 * hash) + SCHEDULER_FIELD_NUMBER; + hash = (53 * hash) + getScheduler().hashCode(); + } + if (hasWorkers()) { + hash = (37 * hash) + WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkers().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Dask.DaskJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Dask.DaskJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Custom Proto for Dask Plugin.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DaskJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DaskJob) + flyteidl.plugins.Dask.DaskJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Dask.DaskJob.class, flyteidl.plugins.Dask.DaskJob.Builder.class); + } + + // Construct using flyteidl.plugins.Dask.DaskJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (schedulerBuilder_ == null) { + scheduler_ = null; + } else { + scheduler_ = null; + schedulerBuilder_ = null; + } + if (workersBuilder_ == null) { + workers_ = null; + } else { + workers_ = null; + workersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskJob getDefaultInstanceForType() { + return flyteidl.plugins.Dask.DaskJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskJob build() { + flyteidl.plugins.Dask.DaskJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskJob buildPartial() { + flyteidl.plugins.Dask.DaskJob result = new flyteidl.plugins.Dask.DaskJob(this); + if (schedulerBuilder_ == null) { + result.scheduler_ = scheduler_; + } else { + result.scheduler_ = schedulerBuilder_.build(); + } + if (workersBuilder_ == null) { + result.workers_ = workers_; + } else { + result.workers_ = workersBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Dask.DaskJob) { + return mergeFrom((flyteidl.plugins.Dask.DaskJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Dask.DaskJob other) { + if (other == flyteidl.plugins.Dask.DaskJob.getDefaultInstance()) return this; + if (other.hasScheduler()) { + mergeScheduler(other.getScheduler()); + } + if (other.hasWorkers()) { + mergeWorkers(other.getWorkers()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Dask.DaskJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Dask.DaskJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.Dask.DaskScheduler scheduler_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Dask.DaskScheduler, flyteidl.plugins.Dask.DaskScheduler.Builder, flyteidl.plugins.Dask.DaskSchedulerOrBuilder> schedulerBuilder_; + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public boolean hasScheduler() { + return schedulerBuilder_ != null || scheduler_ != null; + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public flyteidl.plugins.Dask.DaskScheduler getScheduler() { + if (schedulerBuilder_ == null) { + return scheduler_ == null ? flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance() : scheduler_; + } else { + return schedulerBuilder_.getMessage(); + } + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public Builder setScheduler(flyteidl.plugins.Dask.DaskScheduler value) { + if (schedulerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduler_ = value; + onChanged(); + } else { + schedulerBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public Builder setScheduler( + flyteidl.plugins.Dask.DaskScheduler.Builder builderForValue) { + if (schedulerBuilder_ == null) { + scheduler_ = builderForValue.build(); + onChanged(); + } else { + schedulerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public Builder mergeScheduler(flyteidl.plugins.Dask.DaskScheduler value) { + if (schedulerBuilder_ == null) { + if (scheduler_ != null) { + scheduler_ = + flyteidl.plugins.Dask.DaskScheduler.newBuilder(scheduler_).mergeFrom(value).buildPartial(); + } else { + scheduler_ = value; + } + onChanged(); + } else { + schedulerBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public Builder clearScheduler() { + if (schedulerBuilder_ == null) { + scheduler_ = null; + onChanged(); + } else { + scheduler_ = null; + schedulerBuilder_ = null; + } + + return this; + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public flyteidl.plugins.Dask.DaskScheduler.Builder getSchedulerBuilder() { + + onChanged(); + return getSchedulerFieldBuilder().getBuilder(); + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + public flyteidl.plugins.Dask.DaskSchedulerOrBuilder getSchedulerOrBuilder() { + if (schedulerBuilder_ != null) { + return schedulerBuilder_.getMessageOrBuilder(); + } else { + return scheduler_ == null ? + flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance() : scheduler_; + } + } + /** + *
+       * Spec for the scheduler pod.
+       * 
+ * + * .flyteidl.plugins.DaskScheduler scheduler = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Dask.DaskScheduler, flyteidl.plugins.Dask.DaskScheduler.Builder, flyteidl.plugins.Dask.DaskSchedulerOrBuilder> + getSchedulerFieldBuilder() { + if (schedulerBuilder_ == null) { + schedulerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Dask.DaskScheduler, flyteidl.plugins.Dask.DaskScheduler.Builder, flyteidl.plugins.Dask.DaskSchedulerOrBuilder>( + getScheduler(), + getParentForChildren(), + isClean()); + scheduler_ = null; + } + return schedulerBuilder_; + } + + private flyteidl.plugins.Dask.DaskWorkerGroup workers_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Dask.DaskWorkerGroup, flyteidl.plugins.Dask.DaskWorkerGroup.Builder, flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder> workersBuilder_; + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public boolean hasWorkers() { + return workersBuilder_ != null || workers_ != null; + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public flyteidl.plugins.Dask.DaskWorkerGroup getWorkers() { + if (workersBuilder_ == null) { + return workers_ == null ? flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance() : workers_; + } else { + return workersBuilder_.getMessage(); + } + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public Builder setWorkers(flyteidl.plugins.Dask.DaskWorkerGroup value) { + if (workersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workers_ = value; + onChanged(); + } else { + workersBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public Builder setWorkers( + flyteidl.plugins.Dask.DaskWorkerGroup.Builder builderForValue) { + if (workersBuilder_ == null) { + workers_ = builderForValue.build(); + onChanged(); + } else { + workersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public Builder mergeWorkers(flyteidl.plugins.Dask.DaskWorkerGroup value) { + if (workersBuilder_ == null) { + if (workers_ != null) { + workers_ = + flyteidl.plugins.Dask.DaskWorkerGroup.newBuilder(workers_).mergeFrom(value).buildPartial(); + } else { + workers_ = value; + } + onChanged(); + } else { + workersBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public Builder clearWorkers() { + if (workersBuilder_ == null) { + workers_ = null; + onChanged(); + } else { + workers_ = null; + workersBuilder_ = null; + } + + return this; + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public flyteidl.plugins.Dask.DaskWorkerGroup.Builder getWorkersBuilder() { + + onChanged(); + return getWorkersFieldBuilder().getBuilder(); + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + public flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder getWorkersOrBuilder() { + if (workersBuilder_ != null) { + return workersBuilder_.getMessageOrBuilder(); + } else { + return workers_ == null ? + flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance() : workers_; + } + } + /** + *
+       * Spec of the default worker group.
+       * 
+ * + * .flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Dask.DaskWorkerGroup, flyteidl.plugins.Dask.DaskWorkerGroup.Builder, flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder> + getWorkersFieldBuilder() { + if (workersBuilder_ == null) { + workersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Dask.DaskWorkerGroup, flyteidl.plugins.Dask.DaskWorkerGroup.Builder, flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder>( + getWorkers(), + getParentForChildren(), + isClean()); + workers_ = null; + } + return workersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.DaskJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskJob) + private static final flyteidl.plugins.Dask.DaskJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Dask.DaskJob(); + } + + public static flyteidl.plugins.Dask.DaskJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DaskJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DaskJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DaskSchedulerOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DaskScheduler) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional image to use. If unset, will use the default image.
+     * 
+ * + * string image = 1; + */ + java.lang.String getImage(); + /** + *
+     * Optional image to use. If unset, will use the default image.
+     * 
+ * + * string image = 1; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Resources assigned to the scheduler pod.
+     * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + boolean hasResources(); + /** + *
+     * Resources assigned to the scheduler pod.
+     * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Resources assigned to the scheduler pod.
+     * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + } + /** + *
+   * Specification for the scheduler pod.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DaskScheduler} + */ + public static final class DaskScheduler extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DaskScheduler) + DaskSchedulerOrBuilder { + private static final long serialVersionUID = 0L; + // Use DaskScheduler.newBuilder() to construct. + private DaskScheduler(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DaskScheduler() { + image_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DaskScheduler( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + case 18: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Dask.DaskScheduler.class, flyteidl.plugins.Dask.DaskScheduler.Builder.class); + } + + public static final int IMAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object image_; + /** + *
+     * Optional image to use. If unset, will use the default image.
+     * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } + } + /** + *
+     * Optional image to use. If unset, will use the default image.
+     * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Resources assigned to the scheduler pod.
+     * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Resources assigned to the scheduler pod.
+     * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Resources assigned to the scheduler pod.
+     * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + if (resources_ != null) { + output.writeMessage(2, getResources()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResources()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Dask.DaskScheduler)) { + return super.equals(obj); + } + flyteidl.plugins.Dask.DaskScheduler other = (flyteidl.plugins.Dask.DaskScheduler) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskScheduler parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskScheduler parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskScheduler parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Dask.DaskScheduler prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specification for the scheduler pod.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DaskScheduler} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DaskScheduler) + flyteidl.plugins.Dask.DaskSchedulerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Dask.DaskScheduler.class, flyteidl.plugins.Dask.DaskScheduler.Builder.class); + } + + // Construct using flyteidl.plugins.Dask.DaskScheduler.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + image_ = ""; + + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskScheduler getDefaultInstanceForType() { + return flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskScheduler build() { + flyteidl.plugins.Dask.DaskScheduler result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskScheduler buildPartial() { + flyteidl.plugins.Dask.DaskScheduler result = new flyteidl.plugins.Dask.DaskScheduler(this); + result.image_ = image_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Dask.DaskScheduler) { + return mergeFrom((flyteidl.plugins.Dask.DaskScheduler)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Dask.DaskScheduler other) { + if (other == flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Dask.DaskScheduler parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Dask.DaskScheduler) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object image_ = ""; + /** + *
+       * Optional image to use. If unset, will use the default image.
+       * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional image to use. If unset, will use the default image.
+       * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional image to use. If unset, will use the default image.
+       * 
+ * + * string image = 1; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional image to use. If unset, will use the default image.
+       * 
+ * + * string image = 1; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Optional image to use. If unset, will use the default image.
+       * 
+ * + * string image = 1; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Resources assigned to the scheduler pod.
+       * 
+ * + * .flyteidl.core.Resources resources = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.DaskScheduler) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskScheduler) + private static final flyteidl.plugins.Dask.DaskScheduler DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Dask.DaskScheduler(); + } + + public static flyteidl.plugins.Dask.DaskScheduler getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DaskScheduler parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DaskScheduler(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskScheduler getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DaskWorkerGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DaskWorkerGroup) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of workers in the group.
+     * 
+ * + * uint32 number_of_workers = 1; + */ + int getNumberOfWorkers(); + + /** + *
+     * Optional image to use for the pods of the worker group. If unset, will use the default image.
+     * 
+ * + * string image = 2; + */ + java.lang.String getImage(); + /** + *
+     * Optional image to use for the pods of the worker group. If unset, will use the default image.
+     * 
+ * + * string image = 2; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Resources assigned to the all pods of the worker group.
+     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+     * sure to set requests==limits.
+     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + boolean hasResources(); + /** + *
+     * Resources assigned to the all pods of the worker group.
+     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+     * sure to set requests==limits.
+     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Resources assigned to the all pods of the worker group.
+     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+     * sure to set requests==limits.
+     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.plugins.DaskWorkerGroup} + */ + public static final class DaskWorkerGroup extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DaskWorkerGroup) + DaskWorkerGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use DaskWorkerGroup.newBuilder() to construct. + private DaskWorkerGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DaskWorkerGroup() { + image_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DaskWorkerGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + numberOfWorkers_ = input.readUInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Dask.DaskWorkerGroup.class, flyteidl.plugins.Dask.DaskWorkerGroup.Builder.class); + } + + public static final int NUMBER_OF_WORKERS_FIELD_NUMBER = 1; + private int numberOfWorkers_; + /** + *
+     * Number of workers in the group.
+     * 
+ * + * uint32 number_of_workers = 1; + */ + public int getNumberOfWorkers() { + return numberOfWorkers_; + } + + public static final int IMAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object image_; + /** + *
+     * Optional image to use for the pods of the worker group. If unset, will use the default image.
+     * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } + } + /** + *
+     * Optional image to use for the pods of the worker group. If unset, will use the default image.
+     * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Resources assigned to the all pods of the worker group.
+     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+     * sure to set requests==limits.
+     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Resources assigned to the all pods of the worker group.
+     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+     * sure to set requests==limits.
+     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Resources assigned to the all pods of the worker group.
+     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+     * sure to set requests==limits.
+     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (numberOfWorkers_ != 0) { + output.writeUInt32(1, numberOfWorkers_); + } + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); + } + if (resources_ != null) { + output.writeMessage(3, getResources()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (numberOfWorkers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, numberOfWorkers_); + } + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResources()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Dask.DaskWorkerGroup)) { + return super.equals(obj); + } + flyteidl.plugins.Dask.DaskWorkerGroup other = (flyteidl.plugins.Dask.DaskWorkerGroup) obj; + + if (getNumberOfWorkers() + != other.getNumberOfWorkers()) return false; + if (!getImage() + .equals(other.getImage())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUMBER_OF_WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getNumberOfWorkers(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Dask.DaskWorkerGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.plugins.DaskWorkerGroup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DaskWorkerGroup) + flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Dask.DaskWorkerGroup.class, flyteidl.plugins.Dask.DaskWorkerGroup.Builder.class); + } + + // Construct using flyteidl.plugins.Dask.DaskWorkerGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + numberOfWorkers_ = 0; + + image_ = ""; + + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskWorkerGroup getDefaultInstanceForType() { + return flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskWorkerGroup build() { + flyteidl.plugins.Dask.DaskWorkerGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskWorkerGroup buildPartial() { + flyteidl.plugins.Dask.DaskWorkerGroup result = new flyteidl.plugins.Dask.DaskWorkerGroup(this); + result.numberOfWorkers_ = numberOfWorkers_; + result.image_ = image_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Dask.DaskWorkerGroup) { + return mergeFrom((flyteidl.plugins.Dask.DaskWorkerGroup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Dask.DaskWorkerGroup other) { + if (other == flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance()) return this; + if (other.getNumberOfWorkers() != 0) { + setNumberOfWorkers(other.getNumberOfWorkers()); + } + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Dask.DaskWorkerGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Dask.DaskWorkerGroup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int numberOfWorkers_ ; + /** + *
+       * Number of workers in the group.
+       * 
+ * + * uint32 number_of_workers = 1; + */ + public int getNumberOfWorkers() { + return numberOfWorkers_; + } + /** + *
+       * Number of workers in the group.
+       * 
+ * + * uint32 number_of_workers = 1; + */ + public Builder setNumberOfWorkers(int value) { + + numberOfWorkers_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of workers in the group.
+       * 
+ * + * uint32 number_of_workers = 1; + */ + public Builder clearNumberOfWorkers() { + + numberOfWorkers_ = 0; + onChanged(); + return this; + } + + private java.lang.Object image_ = ""; + /** + *
+       * Optional image to use for the pods of the worker group. If unset, will use the default image.
+       * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional image to use for the pods of the worker group. If unset, will use the default image.
+       * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional image to use for the pods of the worker group. If unset, will use the default image.
+       * 
+ * + * string image = 2; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional image to use for the pods of the worker group. If unset, will use the default image.
+       * 
+ * + * string image = 2; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Optional image to use for the pods of the worker group. If unset, will use the default image.
+       * 
+ * + * string image = 2; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Resources assigned to the all pods of the worker group.
+       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
+       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
+       * sure to set requests==limits.
+       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.DaskWorkerGroup) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskWorkerGroup) + private static final flyteidl.plugins.Dask.DaskWorkerGroup DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Dask.DaskWorkerGroup(); + } + + public static flyteidl.plugins.Dask.DaskWorkerGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DaskWorkerGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DaskWorkerGroup(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Dask.DaskWorkerGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DaskJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DaskScheduler_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033flyteidl/plugins/dask.proto\022\020flyteidl." + + "plugins\032\031flyteidl/core/tasks.proto\"q\n\007Da" + + "skJob\0222\n\tscheduler\030\001 \001(\0132\037.flyteidl.plug" + + "ins.DaskScheduler\0222\n\007workers\030\002 \001(\0132!.fly" + + "teidl.plugins.DaskWorkerGroup\"K\n\rDaskSch" + + "eduler\022\r\n\005image\030\001 \001(\t\022+\n\tresources\030\002 \001(\013" + + "2\030.flyteidl.core.Resources\"h\n\017DaskWorker" + + "Group\022\031\n\021number_of_workers\030\001 \001(\r\022\r\n\005imag" + + "e\030\002 \001(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.co" + + "re.ResourcesB9Z7github.com/flyteorg/flyt" + + "eidl/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_DaskJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DaskJob_descriptor, + new java.lang.String[] { "Scheduler", "Workers", }); + internal_static_flyteidl_plugins_DaskScheduler_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DaskScheduler_descriptor, + new java.lang.String[] { "Image", "Resources", }); + internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor, + new java.lang.String[] { "NumberOfWorkers", "Image", "Resources", }); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Mpi.java b/flyteidl/gen/pb-java/flyteidl/plugins/Mpi.java new file mode 100644 index 0000000000..8adb21af9e --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Mpi.java @@ -0,0 +1,737 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/mpi.proto + +package flyteidl.plugins; + +public final class Mpi { + private Mpi() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedMPITrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedMPITrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * number of worker spawned in the cluster for this job
+     * 
+ * + * int32 num_workers = 1; + */ + int getNumWorkers(); + + /** + *
+     * number of launcher replicas spawned in the cluster for this job
+     * The launcher pod invokes mpirun and communicates with worker pods through MPI.
+     * 
+ * + * int32 num_launcher_replicas = 2; + */ + int getNumLauncherReplicas(); + + /** + *
+     * number of slots per worker used in hostfile.
+     * The available slots (GPUs) in each pod.
+     * 
+ * + * int32 slots = 3; + */ + int getSlots(); + } + /** + *
+   * MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md
+   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedMPITrainingTask} + */ + public static final class DistributedMPITrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedMPITrainingTask) + DistributedMPITrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedMPITrainingTask.newBuilder() to construct. + private DistributedMPITrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedMPITrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedMPITrainingTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + numWorkers_ = input.readInt32(); + break; + } + case 16: { + + numLauncherReplicas_ = input.readInt32(); + break; + } + case 24: { + + slots_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.Mpi.DistributedMPITrainingTask.Builder.class); + } + + public static final int NUM_WORKERS_FIELD_NUMBER = 1; + private int numWorkers_; + /** + *
+     * number of worker spawned in the cluster for this job
+     * 
+ * + * int32 num_workers = 1; + */ + public int getNumWorkers() { + return numWorkers_; + } + + public static final int NUM_LAUNCHER_REPLICAS_FIELD_NUMBER = 2; + private int numLauncherReplicas_; + /** + *
+     * number of launcher replicas spawned in the cluster for this job
+     * The launcher pod invokes mpirun and communicates with worker pods through MPI.
+     * 
+ * + * int32 num_launcher_replicas = 2; + */ + public int getNumLauncherReplicas() { + return numLauncherReplicas_; + } + + public static final int SLOTS_FIELD_NUMBER = 3; + private int slots_; + /** + *
+     * number of slots per worker used in hostfile.
+     * The available slots (GPUs) in each pod.
+     * 
+ * + * int32 slots = 3; + */ + public int getSlots() { + return slots_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (numWorkers_ != 0) { + output.writeInt32(1, numWorkers_); + } + if (numLauncherReplicas_ != 0) { + output.writeInt32(2, numLauncherReplicas_); + } + if (slots_ != 0) { + output.writeInt32(3, slots_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (numWorkers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, numWorkers_); + } + if (numLauncherReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, numLauncherReplicas_); + } + if (slots_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, slots_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Mpi.DistributedMPITrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.Mpi.DistributedMPITrainingTask other = (flyteidl.plugins.Mpi.DistributedMPITrainingTask) obj; + + if (getNumWorkers() + != other.getNumWorkers()) return false; + if (getNumLauncherReplicas() + != other.getNumLauncherReplicas()) return false; + if (getSlots() + != other.getSlots()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUM_WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getNumWorkers(); + hash = (37 * hash) + NUM_LAUNCHER_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getNumLauncherReplicas(); + hash = (37 * hash) + SLOTS_FIELD_NUMBER; + hash = (53 * hash) + getSlots(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Mpi.DistributedMPITrainingTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md
+     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedMPITrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedMPITrainingTask) + flyteidl.plugins.Mpi.DistributedMPITrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.Mpi.DistributedMPITrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.Mpi.DistributedMPITrainingTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + numWorkers_ = 0; + + numLauncherReplicas_ = 0; + + slots_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.Mpi.DistributedMPITrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Mpi.DistributedMPITrainingTask build() { + flyteidl.plugins.Mpi.DistributedMPITrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Mpi.DistributedMPITrainingTask buildPartial() { + flyteidl.plugins.Mpi.DistributedMPITrainingTask result = new flyteidl.plugins.Mpi.DistributedMPITrainingTask(this); + result.numWorkers_ = numWorkers_; + result.numLauncherReplicas_ = numLauncherReplicas_; + result.slots_ = slots_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Mpi.DistributedMPITrainingTask) { + return mergeFrom((flyteidl.plugins.Mpi.DistributedMPITrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Mpi.DistributedMPITrainingTask other) { + if (other == flyteidl.plugins.Mpi.DistributedMPITrainingTask.getDefaultInstance()) return this; + if (other.getNumWorkers() != 0) { + setNumWorkers(other.getNumWorkers()); + } + if (other.getNumLauncherReplicas() != 0) { + setNumLauncherReplicas(other.getNumLauncherReplicas()); + } + if (other.getSlots() != 0) { + setSlots(other.getSlots()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Mpi.DistributedMPITrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Mpi.DistributedMPITrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int numWorkers_ ; + /** + *
+       * number of worker spawned in the cluster for this job
+       * 
+ * + * int32 num_workers = 1; + */ + public int getNumWorkers() { + return numWorkers_; + } + /** + *
+       * number of worker spawned in the cluster for this job
+       * 
+ * + * int32 num_workers = 1; + */ + public Builder setNumWorkers(int value) { + + numWorkers_ = value; + onChanged(); + return this; + } + /** + *
+       * number of worker spawned in the cluster for this job
+       * 
+ * + * int32 num_workers = 1; + */ + public Builder clearNumWorkers() { + + numWorkers_ = 0; + onChanged(); + return this; + } + + private int numLauncherReplicas_ ; + /** + *
+       * number of launcher replicas spawned in the cluster for this job
+       * The launcher pod invokes mpirun and communicates with worker pods through MPI.
+       * 
+ * + * int32 num_launcher_replicas = 2; + */ + public int getNumLauncherReplicas() { + return numLauncherReplicas_; + } + /** + *
+       * number of launcher replicas spawned in the cluster for this job
+       * The launcher pod invokes mpirun and communicates with worker pods through MPI.
+       * 
+ * + * int32 num_launcher_replicas = 2; + */ + public Builder setNumLauncherReplicas(int value) { + + numLauncherReplicas_ = value; + onChanged(); + return this; + } + /** + *
+       * number of launcher replicas spawned in the cluster for this job
+       * The launcher pod invokes mpirun and communicates with worker pods through MPI.
+       * 
+ * + * int32 num_launcher_replicas = 2; + */ + public Builder clearNumLauncherReplicas() { + + numLauncherReplicas_ = 0; + onChanged(); + return this; + } + + private int slots_ ; + /** + *
+       * number of slots per worker used in hostfile.
+       * The available slots (GPUs) in each pod.
+       * 
+ * + * int32 slots = 3; + */ + public int getSlots() { + return slots_; + } + /** + *
+       * number of slots per worker used in hostfile.
+       * The available slots (GPUs) in each pod.
+       * 
+ * + * int32 slots = 3; + */ + public Builder setSlots(int value) { + + slots_ = value; + onChanged(); + return this; + } + /** + *
+       * number of slots per worker used in hostfile.
+       * The available slots (GPUs) in each pod.
+       * 
+ * + * int32 slots = 3; + */ + public Builder clearSlots() { + + slots_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.DistributedMPITrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedMPITrainingTask) + private static final flyteidl.plugins.Mpi.DistributedMPITrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Mpi.DistributedMPITrainingTask(); + } + + public static flyteidl.plugins.Mpi.DistributedMPITrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedMPITrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedMPITrainingTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/plugins/mpi.proto\022\020flyteidl.p" + + "lugins\"_\n\032DistributedMPITrainingTask\022\023\n\013" + + "num_workers\030\001 \001(\005\022\035\n\025num_launcher_replic" + + "as\030\002 \001(\005\022\r\n\005slots\030\003 \001(\005B9Z7github.com/fl" + + "yteorg/flyteidl/gen/pb-go/flyteidl/plugi" + + "nsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor, + new java.lang.String[] { "NumWorkers", "NumLauncherReplicas", "Slots", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Presto.java b/flyteidl/gen/pb-java/flyteidl/plugins/Presto.java new file mode 100644 index 0000000000..063da45d1a --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Presto.java @@ -0,0 +1,1029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/presto.proto + +package flyteidl.plugins; + +public final class Presto { + private Presto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PrestoQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.PrestoQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * string routing_group = 1; + */ + java.lang.String getRoutingGroup(); + /** + * string routing_group = 1; + */ + com.google.protobuf.ByteString + getRoutingGroupBytes(); + + /** + * string catalog = 2; + */ + java.lang.String getCatalog(); + /** + * string catalog = 2; + */ + com.google.protobuf.ByteString + getCatalogBytes(); + + /** + * string schema = 3; + */ + java.lang.String getSchema(); + /** + * string schema = 3; + */ + com.google.protobuf.ByteString + getSchemaBytes(); + + /** + * string statement = 4; + */ + java.lang.String getStatement(); + /** + * string statement = 4; + */ + com.google.protobuf.ByteString + getStatementBytes(); + } + /** + *
+   * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
+   * of a Presto task's TaskTemplate
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.PrestoQuery} + */ + public static final class PrestoQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.PrestoQuery) + PrestoQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrestoQuery.newBuilder() to construct. + private PrestoQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrestoQuery() { + routingGroup_ = ""; + catalog_ = ""; + schema_ = ""; + statement_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrestoQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + routingGroup_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + catalog_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + statement_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); + } + + public static final int ROUTING_GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object routingGroup_; + /** + * string routing_group = 1; + */ + public java.lang.String getRoutingGroup() { + java.lang.Object ref = routingGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routingGroup_ = s; + return s; + } + } + /** + * string routing_group = 1; + */ + public com.google.protobuf.ByteString + getRoutingGroupBytes() { + java.lang.Object ref = routingGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routingGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATALOG_FIELD_NUMBER = 2; + private volatile java.lang.Object catalog_; + /** + * string catalog = 2; + */ + public java.lang.String getCatalog() { + java.lang.Object ref = catalog_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalog_ = s; + return s; + } + } + /** + * string catalog = 2; + */ + public com.google.protobuf.ByteString + getCatalogBytes() { + java.lang.Object ref = catalog_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + private volatile java.lang.Object schema_; + /** + * string schema = 3; + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } + } + /** + * string schema = 3; + */ + public com.google.protobuf.ByteString + getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATEMENT_FIELD_NUMBER = 4; + private volatile java.lang.Object statement_; + /** + * string statement = 4; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statement_ = s; + return s; + } + } + /** + * string statement = 4; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRoutingGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routingGroup_); + } + if (!getCatalogBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, catalog_); + } + if (!getSchemaBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); + } + if (!getStatementBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, statement_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRoutingGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, routingGroup_); + } + if (!getCatalogBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, catalog_); + } + if (!getSchemaBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); + } + if (!getStatementBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, statement_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Presto.PrestoQuery)) { + return super.equals(obj); + } + flyteidl.plugins.Presto.PrestoQuery other = (flyteidl.plugins.Presto.PrestoQuery) obj; + + if (!getRoutingGroup() + .equals(other.getRoutingGroup())) return false; + if (!getCatalog() + .equals(other.getCatalog())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getStatement() + .equals(other.getStatement())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROUTING_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getRoutingGroup().hashCode(); + hash = (37 * hash) + CATALOG_FIELD_NUMBER; + hash = (53 * hash) + getCatalog().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + STATEMENT_FIELD_NUMBER; + hash = (53 * hash) + getStatement().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Presto.PrestoQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Presto.PrestoQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
+     * of a Presto task's TaskTemplate
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.PrestoQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.PrestoQuery) + flyteidl.plugins.Presto.PrestoQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); + } + + // Construct using flyteidl.plugins.Presto.PrestoQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + routingGroup_ = ""; + + catalog_ = ""; + + schema_ = ""; + + statement_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { + return flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery build() { + flyteidl.plugins.Presto.PrestoQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery buildPartial() { + flyteidl.plugins.Presto.PrestoQuery result = new flyteidl.plugins.Presto.PrestoQuery(this); + result.routingGroup_ = routingGroup_; + result.catalog_ = catalog_; + result.schema_ = schema_; + result.statement_ = statement_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Presto.PrestoQuery) { + return mergeFrom((flyteidl.plugins.Presto.PrestoQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Presto.PrestoQuery other) { + if (other == flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance()) return this; + if (!other.getRoutingGroup().isEmpty()) { + routingGroup_ = other.routingGroup_; + onChanged(); + } + if (!other.getCatalog().isEmpty()) { + catalog_ = other.catalog_; + onChanged(); + } + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (!other.getStatement().isEmpty()) { + statement_ = other.statement_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Presto.PrestoQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Presto.PrestoQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object routingGroup_ = ""; + /** + * string routing_group = 1; + */ + public java.lang.String getRoutingGroup() { + java.lang.Object ref = routingGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routingGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string routing_group = 1; + */ + public com.google.protobuf.ByteString + getRoutingGroupBytes() { + java.lang.Object ref = routingGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routingGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string routing_group = 1; + */ + public Builder setRoutingGroup( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + routingGroup_ = value; + onChanged(); + return this; + } + /** + * string routing_group = 1; + */ + public Builder clearRoutingGroup() { + + routingGroup_ = getDefaultInstance().getRoutingGroup(); + onChanged(); + return this; + } + /** + * string routing_group = 1; + */ + public Builder setRoutingGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + routingGroup_ = value; + onChanged(); + return this; + } + + private java.lang.Object catalog_ = ""; + /** + * string catalog = 2; + */ + public java.lang.String getCatalog() { + java.lang.Object ref = catalog_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalog_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog = 2; + */ + public com.google.protobuf.ByteString + getCatalogBytes() { + java.lang.Object ref = catalog_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalog_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog = 2; + */ + public Builder setCatalog( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalog_ = value; + onChanged(); + return this; + } + /** + * string catalog = 2; + */ + public Builder clearCatalog() { + + catalog_ = getDefaultInstance().getCatalog(); + onChanged(); + return this; + } + /** + * string catalog = 2; + */ + public Builder setCatalogBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalog_ = value; + onChanged(); + return this; + } + + private java.lang.Object schema_ = ""; + /** + * string schema = 3; + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema = 3; + */ + public com.google.protobuf.ByteString + getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string schema = 3; + */ + public Builder setSchema( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * string schema = 3; + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * string schema = 3; + */ + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.lang.Object statement_ = ""; + /** + * string statement = 4; + */ + public java.lang.String getStatement() { + java.lang.Object ref = statement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string statement = 4; + */ + public com.google.protobuf.ByteString + getStatementBytes() { + java.lang.Object ref = statement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string statement = 4; + */ + public Builder setStatement( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statement_ = value; + onChanged(); + return this; + } + /** + * string statement = 4; + */ + public Builder clearStatement() { + + statement_ = getDefaultInstance().getStatement(); + onChanged(); + return this; + } + /** + * string statement = 4; + */ + public Builder setStatementBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statement_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.PrestoQuery) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) + private static final flyteidl.plugins.Presto.PrestoQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Presto.PrestoQuery(); + } + + public static flyteidl.plugins.Presto.PrestoQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrestoQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrestoQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_PrestoQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/plugins/presto.proto\022\020flyteid" + + "l.plugins\"X\n\013PrestoQuery\022\025\n\rrouting_grou" + + "p\030\001 \001(\t\022\017\n\007catalog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t" + + "\022\021\n\tstatement\030\004 \001(\tB9Z7github.com/flyteo" + + "rg/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_PrestoQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_PrestoQuery_descriptor, + new java.lang.String[] { "RoutingGroup", "Catalog", "Schema", "Statement", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Pytorch.java b/flyteidl/gen/pb-java/flyteidl/plugins/Pytorch.java new file mode 100644 index 0000000000..1df7f243b5 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Pytorch.java @@ -0,0 +1,1651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/pytorch.proto + +package flyteidl.plugins; + +public final class Pytorch { + private Pytorch() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ElasticConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ElasticConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string rdzv_backend = 1; + */ + java.lang.String getRdzvBackend(); + /** + * string rdzv_backend = 1; + */ + com.google.protobuf.ByteString + getRdzvBackendBytes(); + + /** + * int32 min_replicas = 2; + */ + int getMinReplicas(); + + /** + * int32 max_replicas = 3; + */ + int getMaxReplicas(); + + /** + * int32 nproc_per_node = 4; + */ + int getNprocPerNode(); + + /** + * int32 max_restarts = 5; + */ + int getMaxRestarts(); + } + /** + *
+   * Custom proto for torch elastic config for distributed training using 
+   * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.ElasticConfig} + */ + public static final class ElasticConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.ElasticConfig) + ElasticConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ElasticConfig.newBuilder() to construct. + private ElasticConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ElasticConfig() { + rdzvBackend_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ElasticConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + rdzvBackend_ = s; + break; + } + case 16: { + + minReplicas_ = input.readInt32(); + break; + } + case 24: { + + maxReplicas_ = input.readInt32(); + break; + } + case 32: { + + nprocPerNode_ = input.readInt32(); + break; + } + case 40: { + + maxRestarts_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.ElasticConfig.class, flyteidl.plugins.Pytorch.ElasticConfig.Builder.class); + } + + public static final int RDZV_BACKEND_FIELD_NUMBER = 1; + private volatile java.lang.Object rdzvBackend_; + /** + * string rdzv_backend = 1; + */ + public java.lang.String getRdzvBackend() { + java.lang.Object ref = rdzvBackend_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rdzvBackend_ = s; + return s; + } + } + /** + * string rdzv_backend = 1; + */ + public com.google.protobuf.ByteString + getRdzvBackendBytes() { + java.lang.Object ref = rdzvBackend_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rdzvBackend_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_REPLICAS_FIELD_NUMBER = 2; + private int minReplicas_; + /** + * int32 min_replicas = 2; + */ + public int getMinReplicas() { + return minReplicas_; + } + + public static final int MAX_REPLICAS_FIELD_NUMBER = 3; + private int maxReplicas_; + /** + * int32 max_replicas = 3; + */ + public int getMaxReplicas() { + return maxReplicas_; + } + + public static final int NPROC_PER_NODE_FIELD_NUMBER = 4; + private int nprocPerNode_; + /** + * int32 nproc_per_node = 4; + */ + public int getNprocPerNode() { + return nprocPerNode_; + } + + public static final int MAX_RESTARTS_FIELD_NUMBER = 5; + private int maxRestarts_; + /** + * int32 max_restarts = 5; + */ + public int getMaxRestarts() { + return maxRestarts_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRdzvBackendBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rdzvBackend_); + } + if (minReplicas_ != 0) { + output.writeInt32(2, minReplicas_); + } + if (maxReplicas_ != 0) { + output.writeInt32(3, maxReplicas_); + } + if (nprocPerNode_ != 0) { + output.writeInt32(4, nprocPerNode_); + } + if (maxRestarts_ != 0) { + output.writeInt32(5, maxRestarts_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRdzvBackendBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rdzvBackend_); + } + if (minReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minReplicas_); + } + if (maxReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxReplicas_); + } + if (nprocPerNode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, nprocPerNode_); + } + if (maxRestarts_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxRestarts_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Pytorch.ElasticConfig)) { + return super.equals(obj); + } + flyteidl.plugins.Pytorch.ElasticConfig other = (flyteidl.plugins.Pytorch.ElasticConfig) obj; + + if (!getRdzvBackend() + .equals(other.getRdzvBackend())) return false; + if (getMinReplicas() + != other.getMinReplicas()) return false; + if (getMaxReplicas() + != other.getMaxReplicas()) return false; + if (getNprocPerNode() + != other.getNprocPerNode()) return false; + if (getMaxRestarts() + != other.getMaxRestarts()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RDZV_BACKEND_FIELD_NUMBER; + hash = (53 * hash) + getRdzvBackend().hashCode(); + hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getMinReplicas(); + hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getMaxReplicas(); + hash = (37 * hash) + NPROC_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getNprocPerNode(); + hash = (37 * hash) + MAX_RESTARTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxRestarts(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Pytorch.ElasticConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Custom proto for torch elastic config for distributed training using 
+     * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.ElasticConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ElasticConfig) + flyteidl.plugins.Pytorch.ElasticConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.ElasticConfig.class, flyteidl.plugins.Pytorch.ElasticConfig.Builder.class); + } + + // Construct using flyteidl.plugins.Pytorch.ElasticConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + rdzvBackend_ = ""; + + minReplicas_ = 0; + + maxReplicas_ = 0; + + nprocPerNode_ = 0; + + maxRestarts_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.ElasticConfig getDefaultInstanceForType() { + return flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.ElasticConfig build() { + flyteidl.plugins.Pytorch.ElasticConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.ElasticConfig buildPartial() { + flyteidl.plugins.Pytorch.ElasticConfig result = new flyteidl.plugins.Pytorch.ElasticConfig(this); + result.rdzvBackend_ = rdzvBackend_; + result.minReplicas_ = minReplicas_; + result.maxReplicas_ = maxReplicas_; + result.nprocPerNode_ = nprocPerNode_; + result.maxRestarts_ = maxRestarts_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Pytorch.ElasticConfig) { + return mergeFrom((flyteidl.plugins.Pytorch.ElasticConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Pytorch.ElasticConfig other) { + if (other == flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance()) return this; + if (!other.getRdzvBackend().isEmpty()) { + rdzvBackend_ = other.rdzvBackend_; + onChanged(); + } + if (other.getMinReplicas() != 0) { + setMinReplicas(other.getMinReplicas()); + } + if (other.getMaxReplicas() != 0) { + setMaxReplicas(other.getMaxReplicas()); + } + if (other.getNprocPerNode() != 0) { + setNprocPerNode(other.getNprocPerNode()); + } + if (other.getMaxRestarts() != 0) { + setMaxRestarts(other.getMaxRestarts()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Pytorch.ElasticConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Pytorch.ElasticConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object rdzvBackend_ = ""; + /** + * string rdzv_backend = 1; + */ + public java.lang.String getRdzvBackend() { + java.lang.Object ref = rdzvBackend_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rdzvBackend_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string rdzv_backend = 1; + */ + public com.google.protobuf.ByteString + getRdzvBackendBytes() { + java.lang.Object ref = rdzvBackend_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rdzvBackend_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string rdzv_backend = 1; + */ + public Builder setRdzvBackend( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rdzvBackend_ = value; + onChanged(); + return this; + } + /** + * string rdzv_backend = 1; + */ + public Builder clearRdzvBackend() { + + rdzvBackend_ = getDefaultInstance().getRdzvBackend(); + onChanged(); + return this; + } + /** + * string rdzv_backend = 1; + */ + public Builder setRdzvBackendBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rdzvBackend_ = value; + onChanged(); + return this; + } + + private int minReplicas_ ; + /** + * int32 min_replicas = 2; + */ + public int getMinReplicas() { + return minReplicas_; + } + /** + * int32 min_replicas = 2; + */ + public Builder setMinReplicas(int value) { + + minReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 min_replicas = 2; + */ + public Builder clearMinReplicas() { + + minReplicas_ = 0; + onChanged(); + return this; + } + + private int maxReplicas_ ; + /** + * int32 max_replicas = 3; + */ + public int getMaxReplicas() { + return maxReplicas_; + } + /** + * int32 max_replicas = 3; + */ + public Builder setMaxReplicas(int value) { + + maxReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 max_replicas = 3; + */ + public Builder clearMaxReplicas() { + + maxReplicas_ = 0; + onChanged(); + return this; + } + + private int nprocPerNode_ ; + /** + * int32 nproc_per_node = 4; + */ + public int getNprocPerNode() { + return nprocPerNode_; + } + /** + * int32 nproc_per_node = 4; + */ + public Builder setNprocPerNode(int value) { + + nprocPerNode_ = value; + onChanged(); + return this; + } + /** + * int32 nproc_per_node = 4; + */ + public Builder clearNprocPerNode() { + + nprocPerNode_ = 0; + onChanged(); + return this; + } + + private int maxRestarts_ ; + /** + * int32 max_restarts = 5; + */ + public int getMaxRestarts() { + return maxRestarts_; + } + /** + * int32 max_restarts = 5; + */ + public Builder setMaxRestarts(int value) { + + maxRestarts_ = value; + onChanged(); + return this; + } + /** + * int32 max_restarts = 5; + */ + public Builder clearMaxRestarts() { + + maxRestarts_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.ElasticConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ElasticConfig) + private static final flyteidl.plugins.Pytorch.ElasticConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.ElasticConfig(); + } + + public static flyteidl.plugins.Pytorch.ElasticConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ElasticConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ElasticConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.ElasticConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributedPyTorchTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedPyTorchTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * number of worker replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + int getWorkers(); + + /** + *
+     * config for an elastic pytorch job
+     * 
+     * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + boolean hasElasticConfig(); + /** + *
+     * config for an elastic pytorch job
+     * 
+     * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + flyteidl.plugins.Pytorch.ElasticConfig getElasticConfig(); + /** + *
+     * config for an elastic pytorch job
+     * 
+     * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + flyteidl.plugins.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder(); + } + /** + *
+   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} + */ + public static final class DistributedPyTorchTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) + DistributedPyTorchTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedPyTorchTrainingTask.newBuilder() to construct. + private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedPyTorchTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedPyTorchTrainingTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + workers_ = input.readInt32(); + break; + } + case 18: { + flyteidl.plugins.Pytorch.ElasticConfig.Builder subBuilder = null; + if (elasticConfig_ != null) { + subBuilder = elasticConfig_.toBuilder(); + } + elasticConfig_ = input.readMessage(flyteidl.plugins.Pytorch.ElasticConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(elasticConfig_); + elasticConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + public static final int WORKERS_FIELD_NUMBER = 1; + private int workers_; + /** + *
+     * number of worker replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + + public static final int ELASTIC_CONFIG_FIELD_NUMBER = 2; + private flyteidl.plugins.Pytorch.ElasticConfig elasticConfig_; + /** + *
+     * config for an elastic pytorch job
+     * 
+     * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public boolean hasElasticConfig() { + return elasticConfig_ != null; + } + /** + *
+     * config for an elastic pytorch job
+     * 
+     * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public flyteidl.plugins.Pytorch.ElasticConfig getElasticConfig() { + return elasticConfig_ == null ? flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; + } + /** + *
+     * config for an elastic pytorch job
+     * 
+     * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public flyteidl.plugins.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { + return getElasticConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workers_ != 0) { + output.writeInt32(1, workers_); + } + if (elasticConfig_ != null) { + output.writeMessage(2, getElasticConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, workers_); + } + if (elasticConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getElasticConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) obj; + + if (getWorkers() + != other.getWorkers()) return false; + if (hasElasticConfig() != other.hasElasticConfig()) return false; + if (hasElasticConfig()) { + if (!getElasticConfig() + .equals(other.getElasticConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkers(); + if (hasElasticConfig()) { + hash = (37 * hash) + ELASTIC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getElasticConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + workers_ = 0; + + if (elasticConfigBuilder_ == null) { + elasticConfig_ = null; + } else { + elasticConfig_ = null; + elasticConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask build() { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask buildPartial() { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(this); + result.workers_ = workers_; + if (elasticConfigBuilder_ == null) { + result.elasticConfig_ = elasticConfig_; + } else { + result.elasticConfig_ = elasticConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) { + return mergeFrom((flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other) { + if (other == flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; + if (other.getWorkers() != 0) { + setWorkers(other.getWorkers()); + } + if (other.hasElasticConfig()) { + mergeElasticConfig(other.getElasticConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int workers_ ; + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder setWorkers(int value) { + + workers_ = value; + onChanged(); + return this; + } + /** + *
+       * number of worker replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder clearWorkers() { + + workers_ = 0; + onChanged(); + return this; + } + + private flyteidl.plugins.Pytorch.ElasticConfig elasticConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Pytorch.ElasticConfig, flyteidl.plugins.Pytorch.ElasticConfig.Builder, flyteidl.plugins.Pytorch.ElasticConfigOrBuilder> elasticConfigBuilder_; + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public boolean hasElasticConfig() { + return elasticConfigBuilder_ != null || elasticConfig_ != null; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public flyteidl.plugins.Pytorch.ElasticConfig getElasticConfig() { + if (elasticConfigBuilder_ == null) { + return elasticConfig_ == null ? flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; + } else { + return elasticConfigBuilder_.getMessage(); + } + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public Builder setElasticConfig(flyteidl.plugins.Pytorch.ElasticConfig value) { + if (elasticConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + elasticConfig_ = value; + onChanged(); + } else { + elasticConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public Builder setElasticConfig( + flyteidl.plugins.Pytorch.ElasticConfig.Builder builderForValue) { + if (elasticConfigBuilder_ == null) { + elasticConfig_ = builderForValue.build(); + onChanged(); + } else { + elasticConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public Builder mergeElasticConfig(flyteidl.plugins.Pytorch.ElasticConfig value) { + if (elasticConfigBuilder_ == null) { + if (elasticConfig_ != null) { + elasticConfig_ = + flyteidl.plugins.Pytorch.ElasticConfig.newBuilder(elasticConfig_).mergeFrom(value).buildPartial(); + } else { + elasticConfig_ = value; + } + onChanged(); + } else { + elasticConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public Builder clearElasticConfig() { + if (elasticConfigBuilder_ == null) { + elasticConfig_ = null; + onChanged(); + } else { + elasticConfig_ = null; + elasticConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public flyteidl.plugins.Pytorch.ElasticConfig.Builder getElasticConfigBuilder() { + + onChanged(); + return getElasticConfigFieldBuilder().getBuilder(); + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + public flyteidl.plugins.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { + if (elasticConfigBuilder_ != null) { + return elasticConfigBuilder_.getMessageOrBuilder(); + } else { + return elasticConfig_ == null ? + flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; + } + } + /** + *
+       * config for an elastic pytorch job
+       * 
+       * 
+ * + * .flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Pytorch.ElasticConfig, flyteidl.plugins.Pytorch.ElasticConfig.Builder, flyteidl.plugins.Pytorch.ElasticConfigOrBuilder> + getElasticConfigFieldBuilder() { + if (elasticConfigBuilder_ == null) { + elasticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Pytorch.ElasticConfig, flyteidl.plugins.Pytorch.ElasticConfig.Builder, flyteidl.plugins.Pytorch.ElasticConfigOrBuilder>( + getElasticConfig(), + getParentForChildren(), + isClean()); + elasticConfig_ = null; + } + return elasticConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) + private static final flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(); + } + + public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedPyTorchTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedPyTorchTrainingTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_ElasticConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036flyteidl/plugins/pytorch.proto\022\020flytei" + + "dl.plugins\"\177\n\rElasticConfig\022\024\n\014rdzv_back" + + "end\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014max_r" + + "eplicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001(\005\022\024\n" + + "\014max_restarts\030\005 \001(\005\"j\n\036DistributedPyTorc" + + "hTrainingTask\022\017\n\007workers\030\001 \001(\005\0227\n\016elasti" + + "c_config\030\002 \001(\0132\037.flyteidl.plugins.Elasti" + + "cConfigB9Z7github.com/flyteorg/flyteidl/" + + "gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_ElasticConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_ElasticConfig_descriptor, + new java.lang.String[] { "RdzvBackend", "MinReplicas", "MaxReplicas", "NprocPerNode", "MaxRestarts", }); + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor, + new java.lang.String[] { "Workers", "ElasticConfig", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java b/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java new file mode 100644 index 0000000000..aac6ad2ccb --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java @@ -0,0 +1,2697 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +package flyteidl.plugins; + +public final class Qubole { + private Qubole() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HiveQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * string query = 1; + */ + java.lang.String getQuery(); + /** + * string query = 1; + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * uint32 timeout_sec = 2; + */ + int getTimeoutSec(); + + /** + * uint32 retryCount = 3; + */ + int getRetryCount(); + } + /** + *
+   * Defines a query to execute on a hive cluster.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class HiveQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQuery) + HiveQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQuery.newBuilder() to construct. + private HiveQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQuery() { + query_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 16: { + + timeoutSec_ = input.readUInt32(); + break; + } + case 24: { + + retryCount_ = input.readUInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; + private int timeoutSec_; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + + public static final int RETRYCOUNT_FIELD_NUMBER = 3; + private int retryCount_; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (timeoutSec_ != 0) { + output.writeUInt32(2, timeoutSec_); + } + if (retryCount_ != 0) { + output.writeUInt32(3, retryCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (timeoutSec_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, timeoutSec_); + } + if (retryCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Qubole.HiveQuery)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQuery other = (flyteidl.plugins.Qubole.HiveQuery) obj; + + if (!getQuery() + .equals(other.getQuery())) return false; + if (getTimeoutSec() + != other.getTimeoutSec()) return false; + if (getRetryCount() + != other.getRetryCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSec(); + hash = (37 * hash) + RETRYCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getRetryCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Qubole.HiveQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a query to execute on a hive cluster.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQuery) + flyteidl.plugins.Qubole.HiveQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + query_ = ""; + + timeoutSec_ = 0; + + retryCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery build() { + flyteidl.plugins.Qubole.HiveQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery buildPartial() { + flyteidl.plugins.Qubole.HiveQuery result = new flyteidl.plugins.Qubole.HiveQuery(this); + result.query_ = query_; + result.timeoutSec_ = timeoutSec_; + result.retryCount_ = retryCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Qubole.HiveQuery) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQuery other) { + if (other == flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.getTimeoutSec() != 0) { + setTimeoutSec(other.getTimeoutSec()); + } + if (other.getRetryCount() != 0) { + setRetryCount(other.getRetryCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Qubole.HiveQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object query_ = ""; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string query = 1; + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private int timeoutSec_ ; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder setTimeoutSec(int value) { + + timeoutSec_ = value; + onChanged(); + return this; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder clearTimeoutSec() { + + timeoutSec_ = 0; + onChanged(); + return this; + } + + private int retryCount_ ; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + /** + * uint32 retryCount = 3; + */ + public Builder setRetryCount(int value) { + + retryCount_ = value; + onChanged(); + return this; + } + /** + * uint32 retryCount = 3; + */ + public Builder clearRetryCount() { + + retryCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.HiveQuery) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) + private static final flyteidl.plugins.Qubole.HiveQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQuery(); + } + + public static flyteidl.plugins.Qubole.HiveQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HiveQueryCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQueryCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQuery getQueries(int index); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + int getQueriesCount(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesOrBuilderList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index); + } + /** + *
+   * Defines a collection of hive queries.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class HiveQueryCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQueryCollection) + HiveQueryCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQueryCollection.newBuilder() to construct. + private HiveQueryCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQueryCollection() { + queries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQueryCollection( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + queries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + queries_.add( + input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + public static final int QUERIES_FIELD_NUMBER = 2; + private java.util.List queries_; + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + return queries_.size(); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + return queries_.get(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + return queries_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < queries_.size(); i++) { + output.writeMessage(2, queries_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < queries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, queries_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Qubole.HiveQueryCollection)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQueryCollection other = (flyteidl.plugins.Qubole.HiveQueryCollection) obj; + + if (!getQueriesList() + .equals(other.getQueriesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Qubole.HiveQueryCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Defines a collection of hive queries.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQueryCollection) + flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getQueriesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + queriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection build() { + flyteidl.plugins.Qubole.HiveQueryCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection buildPartial() { + flyteidl.plugins.Qubole.HiveQueryCollection result = new flyteidl.plugins.Qubole.HiveQueryCollection(this); + int from_bitField0_ = bitField0_; + if (queriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.queries_ = queries_; + } else { + result.queries_ = queriesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Qubole.HiveQueryCollection) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQueryCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQueryCollection other) { + if (other == flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance()) return this; + if (queriesBuilder_ == null) { + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + } else { + if (!other.queries_.isEmpty()) { + if (queriesBuilder_.isEmpty()) { + queriesBuilder_.dispose(); + queriesBuilder_ = null; + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + queriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQueriesFieldBuilder() : null; + } else { + queriesBuilder_.addAllMessages(other.queries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Qubole.HiveQueryCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQueryCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List queries_ = + java.util.Collections.emptyList(); + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + queries_ = new java.util.ArrayList(queries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queriesBuilder_; + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + if (queriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queries_); + } else { + return queriesBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + if (queriesBuilder_ == null) { + return queries_.size(); + } else { + return queriesBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + } else { + queriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.set(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries(flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + } else { + queriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(index, value); + onChanged(); + } else { + queriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addAllQueries( + java.lang.Iterable values) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queries_); + onChanged(); + } else { + queriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder clearQueries() { + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + queriesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder removeQueries(int index) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.remove(index); + onChanged(); + } else { + queriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder getQueriesBuilder( + int index) { + return getQueriesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); } else { + return queriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + if (queriesBuilder_ != null) { + return queriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queries_); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder() { + return getQueriesFieldBuilder().addBuilder( + flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder( + int index) { + return getQueriesFieldBuilder().addBuilder( + index, flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesBuilderList() { + return getQueriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> + getQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( + queries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + queries_ = null; + } + return queriesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.HiveQueryCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) + private static final flyteidl.plugins.Qubole.HiveQueryCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQueryCollection(); + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HiveQueryCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQueryCollection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QuboleHiveJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.QuboleHiveJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string cluster_label = 1; + */ + java.lang.String getClusterLabel(); + /** + * string cluster_label = 1; + */ + com.google.protobuf.ByteString + getClusterLabelBytes(); + + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder(); + + /** + * repeated string tags = 3; + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 3; + */ + int getTagsCount(); + /** + * repeated string tags = 3; + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 3; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + boolean hasQuery(); + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + flyteidl.plugins.Qubole.HiveQuery getQuery(); + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder(); + } + /** + *
+   * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+   * of a hive task's TaskTemplate
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class QuboleHiveJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.QuboleHiveJob) + QuboleHiveJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use QuboleHiveJob.newBuilder() to construct. + private QuboleHiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QuboleHiveJob() { + clusterLabel_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QuboleHiveJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterLabel_ = s; + break; + } + case 18: { + flyteidl.plugins.Qubole.HiveQueryCollection.Builder subBuilder = null; + if (queryCollection_ != null) { + subBuilder = queryCollection_.toBuilder(); + } + queryCollection_ = input.readMessage(flyteidl.plugins.Qubole.HiveQueryCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryCollection_); + queryCollection_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tags_.add(s); + break; + } + case 34: { + flyteidl.plugins.Qubole.HiveQuery.Builder subBuilder = null; + if (query_ != null) { + subBuilder = query_.toBuilder(); + } + query_ = input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(query_); + query_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + private int bitField0_; + public static final int CLUSTER_LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object clusterLabel_; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterLabel_ = s; + return s; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_COLLECTION_FIELD_NUMBER = 2; + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasQueryCollection() { + return queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + return getQueryCollection(); + } + + public static final int TAGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int QUERY_FIELD_NUMBER = 4; + private flyteidl.plugins.Qubole.HiveQuery query_; + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public boolean hasQuery() { + return query_ != null; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery getQuery() { + return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { + return getQuery(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getClusterLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterLabel_); + } + if (queryCollection_ != null) { + output.writeMessage(2, getQueryCollection()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); + } + if (query_ != null) { + output.writeMessage(4, getQuery()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClusterLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterLabel_); + } + if (queryCollection_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueryCollection()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (query_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getQuery()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Qubole.QuboleHiveJob)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.QuboleHiveJob other = (flyteidl.plugins.Qubole.QuboleHiveJob) obj; + + if (!getClusterLabel() + .equals(other.getClusterLabel())) return false; + if (hasQueryCollection() != other.hasQueryCollection()) return false; + if (hasQueryCollection()) { + if (!getQueryCollection() + .equals(other.getQueryCollection())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery() + .equals(other.getQuery())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getClusterLabel().hashCode(); + if (hasQueryCollection()) { + hash = (37 * hash) + QUERY_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getQueryCollection().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Qubole.QuboleHiveJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+     * of a hive task's TaskTemplate
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.QuboleHiveJob) + flyteidl.plugins.Qubole.QuboleHiveJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.QuboleHiveJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + clusterLabel_ = ""; + + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (queryBuilder_ == null) { + query_ = null; + } else { + query_ = null; + queryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob build() { + flyteidl.plugins.Qubole.QuboleHiveJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob buildPartial() { + flyteidl.plugins.Qubole.QuboleHiveJob result = new flyteidl.plugins.Qubole.QuboleHiveJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.clusterLabel_ = clusterLabel_; + if (queryCollectionBuilder_ == null) { + result.queryCollection_ = queryCollection_; + } else { + result.queryCollection_ = queryCollectionBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tags_ = tags_; + if (queryBuilder_ == null) { + result.query_ = query_; + } else { + result.query_ = queryBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Qubole.QuboleHiveJob) { + return mergeFrom((flyteidl.plugins.Qubole.QuboleHiveJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.QuboleHiveJob other) { + if (other == flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance()) return this; + if (!other.getClusterLabel().isEmpty()) { + clusterLabel_ = other.clusterLabel_; + onChanged(); + } + if (other.hasQueryCollection()) { + mergeQueryCollection(other.getQueryCollection()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Qubole.QuboleHiveJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.QuboleHiveJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object clusterLabel_ = ""; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterLabel_ = value; + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder clearClusterLabel() { + + clusterLabel_ = getDefaultInstance().getClusterLabel(); + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterLabel_ = value; + onChanged(); + return this; + } + + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> queryCollectionBuilder_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasQueryCollection() { + return queryCollectionBuilder_ != null || queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + if (queryCollectionBuilder_ == null) { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } else { + return queryCollectionBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryCollection_ = value; + onChanged(); + } else { + queryCollectionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setQueryCollection( + flyteidl.plugins.Qubole.HiveQueryCollection.Builder builderForValue) { + if (queryCollectionBuilder_ == null) { + queryCollection_ = builderForValue.build(); + onChanged(); + } else { + queryCollectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (queryCollection_ != null) { + queryCollection_ = + flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder(queryCollection_).mergeFrom(value).buildPartial(); + } else { + queryCollection_ = value; + } + onChanged(); + } else { + queryCollectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearQueryCollection() { + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + onChanged(); + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection.Builder getQueryCollectionBuilder() { + + onChanged(); + return getQueryCollectionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + if (queryCollectionBuilder_ != null) { + return queryCollectionBuilder_.getMessageOrBuilder(); + } else { + return queryCollection_ == null ? + flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> + getQueryCollectionFieldBuilder() { + if (queryCollectionBuilder_ == null) { + queryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder>( + getQueryCollection(), + getParentForChildren(), + isClean()); + queryCollection_ = null; + } + return queryCollectionBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 3; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private flyteidl.plugins.Qubole.HiveQuery query_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queryBuilder_; + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public boolean hasQuery() { + return queryBuilder_ != null || query_ != null; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery getQuery() { + if (queryBuilder_ == null) { + return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } else { + return queryBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder setQuery(flyteidl.plugins.Qubole.HiveQuery value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + onChanged(); + } else { + queryBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder setQuery( + flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + onChanged(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder mergeQuery(flyteidl.plugins.Qubole.HiveQuery value) { + if (queryBuilder_ == null) { + if (query_ != null) { + query_ = + flyteidl.plugins.Qubole.HiveQuery.newBuilder(query_).mergeFrom(value).buildPartial(); + } else { + query_ = value; + } + onChanged(); + } else { + queryBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public Builder clearQuery() { + if (queryBuilder_ == null) { + query_ = null; + onChanged(); + } else { + query_ = null; + queryBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder getQueryBuilder() { + + onChanged(); + return getQueryFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null ? + flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; + } + } + /** + * .flyteidl.plugins.HiveQuery query = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> + getQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( + getQuery(), + getParentForChildren(), + isClean()); + query_ = null; + } + return queryBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.QuboleHiveJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) + private static final flyteidl.plugins.Qubole.QuboleHiveJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.QuboleHiveJob(); + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QuboleHiveJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuboleHiveJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/plugins/qubole.proto\022\020flyteid" + + "l.plugins\"C\n\tHiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n" + + "\013timeout_sec\030\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C" + + "\n\023HiveQueryCollection\022,\n\007queries\030\002 \003(\0132\033" + + ".flyteidl.plugins.HiveQuery\"\245\001\n\rQuboleHi" + + "veJob\022\025\n\rcluster_label\030\001 \001(\t\022C\n\020query_co" + + "llection\030\002 \001(\0132%.flyteidl.plugins.HiveQu" + + "eryCollectionB\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query" + + "\030\004 \001(\0132\033.flyteidl.plugins.HiveQueryB9Z7g" + + "ithub.com/flyteorg/flyteidl/gen/pb-go/fl" + + "yteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_HiveQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQuery_descriptor, + new java.lang.String[] { "Query", "TimeoutSec", "RetryCount", }); + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor, + new java.lang.String[] { "Queries", }); + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor, + new java.lang.String[] { "ClusterLabel", "QueryCollection", "Tags", "Query", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Ray.java b/flyteidl/gen/pb-java/flyteidl/plugins/Ray.java new file mode 100644 index 0000000000..7b9a79a954 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Ray.java @@ -0,0 +1,4180 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/ray.proto + +package flyteidl.plugins; + +public final class Ray { + private Ray() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface RayJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.RayJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * RayClusterSpec is the cluster template to run the job
+     * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + boolean hasRayCluster(); + /** + *
+     * RayClusterSpec is the cluster template to run the job
+     * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + flyteidl.plugins.Ray.RayCluster getRayCluster(); + /** + *
+     * RayClusterSpec is the cluster template to run the job
+     * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + flyteidl.plugins.Ray.RayClusterOrBuilder getRayClusterOrBuilder(); + + /** + *
+     * runtime_env is base64 encoded.
+     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+     * 
+ * + * string runtime_env = 2; + */ + java.lang.String getRuntimeEnv(); + /** + *
+     * runtime_env is base64 encoded.
+     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+     * 
+ * + * string runtime_env = 2; + */ + com.google.protobuf.ByteString + getRuntimeEnvBytes(); + } + /** + *
+   * RayJobSpec defines the desired state of RayJob
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.RayJob} + */ + public static final class RayJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.RayJob) + RayJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayJob.newBuilder() to construct. + private RayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RayJob() { + runtimeEnv_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RayJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.Ray.RayCluster.Builder subBuilder = null; + if (rayCluster_ != null) { + subBuilder = rayCluster_.toBuilder(); + } + rayCluster_ = input.readMessage(flyteidl.plugins.Ray.RayCluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rayCluster_); + rayCluster_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + runtimeEnv_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.RayJob.class, flyteidl.plugins.Ray.RayJob.Builder.class); + } + + public static final int RAY_CLUSTER_FIELD_NUMBER = 1; + private flyteidl.plugins.Ray.RayCluster rayCluster_; + /** + *
+     * RayClusterSpec is the cluster template to run the job
+     * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public boolean hasRayCluster() { + return rayCluster_ != null; + } + /** + *
+     * RayClusterSpec is the cluster template to run the job
+     * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public flyteidl.plugins.Ray.RayCluster getRayCluster() { + return rayCluster_ == null ? flyteidl.plugins.Ray.RayCluster.getDefaultInstance() : rayCluster_; + } + /** + *
+     * RayClusterSpec is the cluster template to run the job
+     * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public flyteidl.plugins.Ray.RayClusterOrBuilder getRayClusterOrBuilder() { + return getRayCluster(); + } + + public static final int RUNTIME_ENV_FIELD_NUMBER = 2; + private volatile java.lang.Object runtimeEnv_; + /** + *
+     * runtime_env is base64 encoded.
+     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+     * 
+ * + * string runtime_env = 2; + */ + public java.lang.String getRuntimeEnv() { + java.lang.Object ref = runtimeEnv_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + runtimeEnv_ = s; + return s; + } + } + /** + *
+     * runtime_env is base64 encoded.
+     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+     * 
+ * + * string runtime_env = 2; + */ + public com.google.protobuf.ByteString + getRuntimeEnvBytes() { + java.lang.Object ref = runtimeEnv_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + runtimeEnv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rayCluster_ != null) { + output.writeMessage(1, getRayCluster()); + } + if (!getRuntimeEnvBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runtimeEnv_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rayCluster_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRayCluster()); + } + if (!getRuntimeEnvBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtimeEnv_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Ray.RayJob)) { + return super.equals(obj); + } + flyteidl.plugins.Ray.RayJob other = (flyteidl.plugins.Ray.RayJob) obj; + + if (hasRayCluster() != other.hasRayCluster()) return false; + if (hasRayCluster()) { + if (!getRayCluster() + .equals(other.getRayCluster())) return false; + } + if (!getRuntimeEnv() + .equals(other.getRuntimeEnv())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRayCluster()) { + hash = (37 * hash) + RAY_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getRayCluster().hashCode(); + } + hash = (37 * hash) + RUNTIME_ENV_FIELD_NUMBER; + hash = (53 * hash) + getRuntimeEnv().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Ray.RayJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.RayJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.RayJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.RayJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.RayJob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.RayJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.RayJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Ray.RayJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * RayJobSpec defines the desired state of RayJob
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.RayJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.RayJob) + flyteidl.plugins.Ray.RayJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.RayJob.class, flyteidl.plugins.Ray.RayJob.Builder.class); + } + + // Construct using flyteidl.plugins.Ray.RayJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (rayClusterBuilder_ == null) { + rayCluster_ = null; + } else { + rayCluster_ = null; + rayClusterBuilder_ = null; + } + runtimeEnv_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayJob getDefaultInstanceForType() { + return flyteidl.plugins.Ray.RayJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayJob build() { + flyteidl.plugins.Ray.RayJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayJob buildPartial() { + flyteidl.plugins.Ray.RayJob result = new flyteidl.plugins.Ray.RayJob(this); + if (rayClusterBuilder_ == null) { + result.rayCluster_ = rayCluster_; + } else { + result.rayCluster_ = rayClusterBuilder_.build(); + } + result.runtimeEnv_ = runtimeEnv_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Ray.RayJob) { + return mergeFrom((flyteidl.plugins.Ray.RayJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Ray.RayJob other) { + if (other == flyteidl.plugins.Ray.RayJob.getDefaultInstance()) return this; + if (other.hasRayCluster()) { + mergeRayCluster(other.getRayCluster()); + } + if (!other.getRuntimeEnv().isEmpty()) { + runtimeEnv_ = other.runtimeEnv_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Ray.RayJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Ray.RayJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.Ray.RayCluster rayCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Ray.RayCluster, flyteidl.plugins.Ray.RayCluster.Builder, flyteidl.plugins.Ray.RayClusterOrBuilder> rayClusterBuilder_; + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public boolean hasRayCluster() { + return rayClusterBuilder_ != null || rayCluster_ != null; + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public flyteidl.plugins.Ray.RayCluster getRayCluster() { + if (rayClusterBuilder_ == null) { + return rayCluster_ == null ? flyteidl.plugins.Ray.RayCluster.getDefaultInstance() : rayCluster_; + } else { + return rayClusterBuilder_.getMessage(); + } + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public Builder setRayCluster(flyteidl.plugins.Ray.RayCluster value) { + if (rayClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rayCluster_ = value; + onChanged(); + } else { + rayClusterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public Builder setRayCluster( + flyteidl.plugins.Ray.RayCluster.Builder builderForValue) { + if (rayClusterBuilder_ == null) { + rayCluster_ = builderForValue.build(); + onChanged(); + } else { + rayClusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public Builder mergeRayCluster(flyteidl.plugins.Ray.RayCluster value) { + if (rayClusterBuilder_ == null) { + if (rayCluster_ != null) { + rayCluster_ = + flyteidl.plugins.Ray.RayCluster.newBuilder(rayCluster_).mergeFrom(value).buildPartial(); + } else { + rayCluster_ = value; + } + onChanged(); + } else { + rayClusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public Builder clearRayCluster() { + if (rayClusterBuilder_ == null) { + rayCluster_ = null; + onChanged(); + } else { + rayCluster_ = null; + rayClusterBuilder_ = null; + } + + return this; + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public flyteidl.plugins.Ray.RayCluster.Builder getRayClusterBuilder() { + + onChanged(); + return getRayClusterFieldBuilder().getBuilder(); + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + public flyteidl.plugins.Ray.RayClusterOrBuilder getRayClusterOrBuilder() { + if (rayClusterBuilder_ != null) { + return rayClusterBuilder_.getMessageOrBuilder(); + } else { + return rayCluster_ == null ? + flyteidl.plugins.Ray.RayCluster.getDefaultInstance() : rayCluster_; + } + } + /** + *
+       * RayClusterSpec is the cluster template to run the job
+       * 
+ * + * .flyteidl.plugins.RayCluster ray_cluster = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Ray.RayCluster, flyteidl.plugins.Ray.RayCluster.Builder, flyteidl.plugins.Ray.RayClusterOrBuilder> + getRayClusterFieldBuilder() { + if (rayClusterBuilder_ == null) { + rayClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Ray.RayCluster, flyteidl.plugins.Ray.RayCluster.Builder, flyteidl.plugins.Ray.RayClusterOrBuilder>( + getRayCluster(), + getParentForChildren(), + isClean()); + rayCluster_ = null; + } + return rayClusterBuilder_; + } + + private java.lang.Object runtimeEnv_ = ""; + /** + *
+       * runtime_env is base64 encoded.
+       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+       * 
+ * + * string runtime_env = 2; + */ + public java.lang.String getRuntimeEnv() { + java.lang.Object ref = runtimeEnv_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + runtimeEnv_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * runtime_env is base64 encoded.
+       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+       * 
+ * + * string runtime_env = 2; + */ + public com.google.protobuf.ByteString + getRuntimeEnvBytes() { + java.lang.Object ref = runtimeEnv_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + runtimeEnv_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * runtime_env is base64 encoded.
+       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+       * 
+ * + * string runtime_env = 2; + */ + public Builder setRuntimeEnv( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + runtimeEnv_ = value; + onChanged(); + return this; + } + /** + *
+       * runtime_env is base64 encoded.
+       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+       * 
+ * + * string runtime_env = 2; + */ + public Builder clearRuntimeEnv() { + + runtimeEnv_ = getDefaultInstance().getRuntimeEnv(); + onChanged(); + return this; + } + /** + *
+       * runtime_env is base64 encoded.
+       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
+       * 
+ * + * string runtime_env = 2; + */ + public Builder setRuntimeEnvBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + runtimeEnv_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.RayJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayJob) + private static final flyteidl.plugins.Ray.RayJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Ray.RayJob(); + } + + public static flyteidl.plugins.Ray.RayJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RayJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RayClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.RayCluster) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * HeadGroupSpecs are the spec for the head pod
+     * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + boolean hasHeadGroupSpec(); + /** + *
+     * HeadGroupSpecs are the spec for the head pod
+     * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + flyteidl.plugins.Ray.HeadGroupSpec getHeadGroupSpec(); + /** + *
+     * HeadGroupSpecs are the spec for the head pod
+     * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + flyteidl.plugins.Ray.HeadGroupSpecOrBuilder getHeadGroupSpecOrBuilder(); + + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + java.util.List + getWorkerGroupSpecList(); + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + flyteidl.plugins.Ray.WorkerGroupSpec getWorkerGroupSpec(int index); + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + int getWorkerGroupSpecCount(); + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + java.util.List + getWorkerGroupSpecOrBuilderList(); + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder getWorkerGroupSpecOrBuilder( + int index); + } + /** + *
+   * Define Ray cluster defines the desired state of RayCluster
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.RayCluster} + */ + public static final class RayCluster extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.RayCluster) + RayClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use RayCluster.newBuilder() to construct. + private RayCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RayCluster() { + workerGroupSpec_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RayCluster( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.Ray.HeadGroupSpec.Builder subBuilder = null; + if (headGroupSpec_ != null) { + subBuilder = headGroupSpec_.toBuilder(); + } + headGroupSpec_ = input.readMessage(flyteidl.plugins.Ray.HeadGroupSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(headGroupSpec_); + headGroupSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + workerGroupSpec_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + workerGroupSpec_.add( + input.readMessage(flyteidl.plugins.Ray.WorkerGroupSpec.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + workerGroupSpec_ = java.util.Collections.unmodifiableList(workerGroupSpec_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.RayCluster.class, flyteidl.plugins.Ray.RayCluster.Builder.class); + } + + private int bitField0_; + public static final int HEAD_GROUP_SPEC_FIELD_NUMBER = 1; + private flyteidl.plugins.Ray.HeadGroupSpec headGroupSpec_; + /** + *
+     * HeadGroupSpecs are the spec for the head pod
+     * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public boolean hasHeadGroupSpec() { + return headGroupSpec_ != null; + } + /** + *
+     * HeadGroupSpecs are the spec for the head pod
+     * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public flyteidl.plugins.Ray.HeadGroupSpec getHeadGroupSpec() { + return headGroupSpec_ == null ? flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance() : headGroupSpec_; + } + /** + *
+     * HeadGroupSpecs are the spec for the head pod
+     * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public flyteidl.plugins.Ray.HeadGroupSpecOrBuilder getHeadGroupSpecOrBuilder() { + return getHeadGroupSpec(); + } + + public static final int WORKER_GROUP_SPEC_FIELD_NUMBER = 2; + private java.util.List workerGroupSpec_; + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public java.util.List getWorkerGroupSpecList() { + return workerGroupSpec_; + } + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public java.util.List + getWorkerGroupSpecOrBuilderList() { + return workerGroupSpec_; + } + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public int getWorkerGroupSpecCount() { + return workerGroupSpec_.size(); + } + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public flyteidl.plugins.Ray.WorkerGroupSpec getWorkerGroupSpec(int index) { + return workerGroupSpec_.get(index); + } + /** + *
+     * WorkerGroupSpecs are the specs for the worker pods
+     * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder getWorkerGroupSpecOrBuilder( + int index) { + return workerGroupSpec_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (headGroupSpec_ != null) { + output.writeMessage(1, getHeadGroupSpec()); + } + for (int i = 0; i < workerGroupSpec_.size(); i++) { + output.writeMessage(2, workerGroupSpec_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (headGroupSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeadGroupSpec()); + } + for (int i = 0; i < workerGroupSpec_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, workerGroupSpec_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Ray.RayCluster)) { + return super.equals(obj); + } + flyteidl.plugins.Ray.RayCluster other = (flyteidl.plugins.Ray.RayCluster) obj; + + if (hasHeadGroupSpec() != other.hasHeadGroupSpec()) return false; + if (hasHeadGroupSpec()) { + if (!getHeadGroupSpec() + .equals(other.getHeadGroupSpec())) return false; + } + if (!getWorkerGroupSpecList() + .equals(other.getWorkerGroupSpecList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHeadGroupSpec()) { + hash = (37 * hash) + HEAD_GROUP_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getHeadGroupSpec().hashCode(); + } + if (getWorkerGroupSpecCount() > 0) { + hash = (37 * hash) + WORKER_GROUP_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getWorkerGroupSpecList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Ray.RayCluster parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.RayCluster parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.RayCluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Ray.RayCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Define Ray cluster defines the desired state of RayCluster
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.RayCluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.RayCluster) + flyteidl.plugins.Ray.RayClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.RayCluster.class, flyteidl.plugins.Ray.RayCluster.Builder.class); + } + + // Construct using flyteidl.plugins.Ray.RayCluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkerGroupSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (headGroupSpecBuilder_ == null) { + headGroupSpec_ = null; + } else { + headGroupSpec_ = null; + headGroupSpecBuilder_ = null; + } + if (workerGroupSpecBuilder_ == null) { + workerGroupSpec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + workerGroupSpecBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayCluster getDefaultInstanceForType() { + return flyteidl.plugins.Ray.RayCluster.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayCluster build() { + flyteidl.plugins.Ray.RayCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayCluster buildPartial() { + flyteidl.plugins.Ray.RayCluster result = new flyteidl.plugins.Ray.RayCluster(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (headGroupSpecBuilder_ == null) { + result.headGroupSpec_ = headGroupSpec_; + } else { + result.headGroupSpec_ = headGroupSpecBuilder_.build(); + } + if (workerGroupSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + workerGroupSpec_ = java.util.Collections.unmodifiableList(workerGroupSpec_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.workerGroupSpec_ = workerGroupSpec_; + } else { + result.workerGroupSpec_ = workerGroupSpecBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Ray.RayCluster) { + return mergeFrom((flyteidl.plugins.Ray.RayCluster)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Ray.RayCluster other) { + if (other == flyteidl.plugins.Ray.RayCluster.getDefaultInstance()) return this; + if (other.hasHeadGroupSpec()) { + mergeHeadGroupSpec(other.getHeadGroupSpec()); + } + if (workerGroupSpecBuilder_ == null) { + if (!other.workerGroupSpec_.isEmpty()) { + if (workerGroupSpec_.isEmpty()) { + workerGroupSpec_ = other.workerGroupSpec_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.addAll(other.workerGroupSpec_); + } + onChanged(); + } + } else { + if (!other.workerGroupSpec_.isEmpty()) { + if (workerGroupSpecBuilder_.isEmpty()) { + workerGroupSpecBuilder_.dispose(); + workerGroupSpecBuilder_ = null; + workerGroupSpec_ = other.workerGroupSpec_; + bitField0_ = (bitField0_ & ~0x00000002); + workerGroupSpecBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkerGroupSpecFieldBuilder() : null; + } else { + workerGroupSpecBuilder_.addAllMessages(other.workerGroupSpec_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Ray.RayCluster parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Ray.RayCluster) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.plugins.Ray.HeadGroupSpec headGroupSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Ray.HeadGroupSpec, flyteidl.plugins.Ray.HeadGroupSpec.Builder, flyteidl.plugins.Ray.HeadGroupSpecOrBuilder> headGroupSpecBuilder_; + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public boolean hasHeadGroupSpec() { + return headGroupSpecBuilder_ != null || headGroupSpec_ != null; + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public flyteidl.plugins.Ray.HeadGroupSpec getHeadGroupSpec() { + if (headGroupSpecBuilder_ == null) { + return headGroupSpec_ == null ? flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance() : headGroupSpec_; + } else { + return headGroupSpecBuilder_.getMessage(); + } + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public Builder setHeadGroupSpec(flyteidl.plugins.Ray.HeadGroupSpec value) { + if (headGroupSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headGroupSpec_ = value; + onChanged(); + } else { + headGroupSpecBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public Builder setHeadGroupSpec( + flyteidl.plugins.Ray.HeadGroupSpec.Builder builderForValue) { + if (headGroupSpecBuilder_ == null) { + headGroupSpec_ = builderForValue.build(); + onChanged(); + } else { + headGroupSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public Builder mergeHeadGroupSpec(flyteidl.plugins.Ray.HeadGroupSpec value) { + if (headGroupSpecBuilder_ == null) { + if (headGroupSpec_ != null) { + headGroupSpec_ = + flyteidl.plugins.Ray.HeadGroupSpec.newBuilder(headGroupSpec_).mergeFrom(value).buildPartial(); + } else { + headGroupSpec_ = value; + } + onChanged(); + } else { + headGroupSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public Builder clearHeadGroupSpec() { + if (headGroupSpecBuilder_ == null) { + headGroupSpec_ = null; + onChanged(); + } else { + headGroupSpec_ = null; + headGroupSpecBuilder_ = null; + } + + return this; + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public flyteidl.plugins.Ray.HeadGroupSpec.Builder getHeadGroupSpecBuilder() { + + onChanged(); + return getHeadGroupSpecFieldBuilder().getBuilder(); + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + public flyteidl.plugins.Ray.HeadGroupSpecOrBuilder getHeadGroupSpecOrBuilder() { + if (headGroupSpecBuilder_ != null) { + return headGroupSpecBuilder_.getMessageOrBuilder(); + } else { + return headGroupSpec_ == null ? + flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance() : headGroupSpec_; + } + } + /** + *
+       * HeadGroupSpecs are the spec for the head pod
+       * 
+ * + * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Ray.HeadGroupSpec, flyteidl.plugins.Ray.HeadGroupSpec.Builder, flyteidl.plugins.Ray.HeadGroupSpecOrBuilder> + getHeadGroupSpecFieldBuilder() { + if (headGroupSpecBuilder_ == null) { + headGroupSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Ray.HeadGroupSpec, flyteidl.plugins.Ray.HeadGroupSpec.Builder, flyteidl.plugins.Ray.HeadGroupSpecOrBuilder>( + getHeadGroupSpec(), + getParentForChildren(), + isClean()); + headGroupSpec_ = null; + } + return headGroupSpecBuilder_; + } + + private java.util.List workerGroupSpec_ = + java.util.Collections.emptyList(); + private void ensureWorkerGroupSpecIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + workerGroupSpec_ = new java.util.ArrayList(workerGroupSpec_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Ray.WorkerGroupSpec, flyteidl.plugins.Ray.WorkerGroupSpec.Builder, flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder> workerGroupSpecBuilder_; + + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public java.util.List getWorkerGroupSpecList() { + if (workerGroupSpecBuilder_ == null) { + return java.util.Collections.unmodifiableList(workerGroupSpec_); + } else { + return workerGroupSpecBuilder_.getMessageList(); + } + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public int getWorkerGroupSpecCount() { + if (workerGroupSpecBuilder_ == null) { + return workerGroupSpec_.size(); + } else { + return workerGroupSpecBuilder_.getCount(); + } + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public flyteidl.plugins.Ray.WorkerGroupSpec getWorkerGroupSpec(int index) { + if (workerGroupSpecBuilder_ == null) { + return workerGroupSpec_.get(index); + } else { + return workerGroupSpecBuilder_.getMessage(index); + } + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder setWorkerGroupSpec( + int index, flyteidl.plugins.Ray.WorkerGroupSpec value) { + if (workerGroupSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.set(index, value); + onChanged(); + } else { + workerGroupSpecBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder setWorkerGroupSpec( + int index, flyteidl.plugins.Ray.WorkerGroupSpec.Builder builderForValue) { + if (workerGroupSpecBuilder_ == null) { + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.set(index, builderForValue.build()); + onChanged(); + } else { + workerGroupSpecBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder addWorkerGroupSpec(flyteidl.plugins.Ray.WorkerGroupSpec value) { + if (workerGroupSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.add(value); + onChanged(); + } else { + workerGroupSpecBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder addWorkerGroupSpec( + int index, flyteidl.plugins.Ray.WorkerGroupSpec value) { + if (workerGroupSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.add(index, value); + onChanged(); + } else { + workerGroupSpecBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder addWorkerGroupSpec( + flyteidl.plugins.Ray.WorkerGroupSpec.Builder builderForValue) { + if (workerGroupSpecBuilder_ == null) { + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.add(builderForValue.build()); + onChanged(); + } else { + workerGroupSpecBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder addWorkerGroupSpec( + int index, flyteidl.plugins.Ray.WorkerGroupSpec.Builder builderForValue) { + if (workerGroupSpecBuilder_ == null) { + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.add(index, builderForValue.build()); + onChanged(); + } else { + workerGroupSpecBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder addAllWorkerGroupSpec( + java.lang.Iterable values) { + if (workerGroupSpecBuilder_ == null) { + ensureWorkerGroupSpecIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workerGroupSpec_); + onChanged(); + } else { + workerGroupSpecBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder clearWorkerGroupSpec() { + if (workerGroupSpecBuilder_ == null) { + workerGroupSpec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + workerGroupSpecBuilder_.clear(); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public Builder removeWorkerGroupSpec(int index) { + if (workerGroupSpecBuilder_ == null) { + ensureWorkerGroupSpecIsMutable(); + workerGroupSpec_.remove(index); + onChanged(); + } else { + workerGroupSpecBuilder_.remove(index); + } + return this; + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public flyteidl.plugins.Ray.WorkerGroupSpec.Builder getWorkerGroupSpecBuilder( + int index) { + return getWorkerGroupSpecFieldBuilder().getBuilder(index); + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder getWorkerGroupSpecOrBuilder( + int index) { + if (workerGroupSpecBuilder_ == null) { + return workerGroupSpec_.get(index); } else { + return workerGroupSpecBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public java.util.List + getWorkerGroupSpecOrBuilderList() { + if (workerGroupSpecBuilder_ != null) { + return workerGroupSpecBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workerGroupSpec_); + } + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public flyteidl.plugins.Ray.WorkerGroupSpec.Builder addWorkerGroupSpecBuilder() { + return getWorkerGroupSpecFieldBuilder().addBuilder( + flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance()); + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public flyteidl.plugins.Ray.WorkerGroupSpec.Builder addWorkerGroupSpecBuilder( + int index) { + return getWorkerGroupSpecFieldBuilder().addBuilder( + index, flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance()); + } + /** + *
+       * WorkerGroupSpecs are the specs for the worker pods
+       * 
+ * + * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + public java.util.List + getWorkerGroupSpecBuilderList() { + return getWorkerGroupSpecFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Ray.WorkerGroupSpec, flyteidl.plugins.Ray.WorkerGroupSpec.Builder, flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder> + getWorkerGroupSpecFieldBuilder() { + if (workerGroupSpecBuilder_ == null) { + workerGroupSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Ray.WorkerGroupSpec, flyteidl.plugins.Ray.WorkerGroupSpec.Builder, flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder>( + workerGroupSpec_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + workerGroupSpec_ = null; + } + return workerGroupSpecBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.RayCluster) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayCluster) + private static final flyteidl.plugins.Ray.RayCluster DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Ray.RayCluster(); + } + + public static flyteidl.plugins.Ray.RayCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RayCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RayCluster(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Ray.RayCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HeadGroupSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HeadGroupSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + int getRayStartParamsCount(); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + boolean containsRayStartParams( + java.lang.String key); + /** + * Use {@link #getRayStartParamsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getRayStartParams(); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + java.util.Map + getRayStartParamsMap(); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + + java.lang.String getRayStartParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + + java.lang.String getRayStartParamsOrThrow( + java.lang.String key); + } + /** + *
+   * HeadGroupSpec are the spec for the head pod
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HeadGroupSpec} + */ + public static final class HeadGroupSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HeadGroupSpec) + HeadGroupSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use HeadGroupSpec.newBuilder() to construct. + private HeadGroupSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HeadGroupSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HeadGroupSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + rayStartParams_ = com.google.protobuf.MapField.newMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + rayStartParams__ = input.readMessage( + RayStartParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + rayStartParams_.getMutableMap().put( + rayStartParams__.getKey(), rayStartParams__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetRayStartParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.HeadGroupSpec.class, flyteidl.plugins.Ray.HeadGroupSpec.Builder.class); + } + + public static final int RAY_START_PARAMS_FIELD_NUMBER = 1; + private static final class RayStartParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> rayStartParams_; + private com.google.protobuf.MapField + internalGetRayStartParams() { + if (rayStartParams_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + } + return rayStartParams_; + } + + public int getRayStartParamsCount() { + return internalGetRayStartParams().getMap().size(); + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public boolean containsRayStartParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRayStartParams().getMap().containsKey(key); + } + /** + * Use {@link #getRayStartParamsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRayStartParams() { + return getRayStartParamsMap(); + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public java.util.Map getRayStartParamsMap() { + return internalGetRayStartParams().getMap(); + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public java.lang.String getRayStartParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public java.lang.String getRayStartParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRayStartParams(), + RayStartParamsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetRayStartParams().getMap().entrySet()) { + com.google.protobuf.MapEntry + rayStartParams__ = RayStartParamsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rayStartParams__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Ray.HeadGroupSpec)) { + return super.equals(obj); + } + flyteidl.plugins.Ray.HeadGroupSpec other = (flyteidl.plugins.Ray.HeadGroupSpec) obj; + + if (!internalGetRayStartParams().equals( + other.internalGetRayStartParams())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetRayStartParams().getMap().isEmpty()) { + hash = (37 * hash) + RAY_START_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRayStartParams().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Ray.HeadGroupSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * HeadGroupSpec are the spec for the head pod
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HeadGroupSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HeadGroupSpec) + flyteidl.plugins.Ray.HeadGroupSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetRayStartParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableRayStartParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.HeadGroupSpec.class, flyteidl.plugins.Ray.HeadGroupSpec.Builder.class); + } + + // Construct using flyteidl.plugins.Ray.HeadGroupSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableRayStartParams().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Ray.HeadGroupSpec getDefaultInstanceForType() { + return flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Ray.HeadGroupSpec build() { + flyteidl.plugins.Ray.HeadGroupSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Ray.HeadGroupSpec buildPartial() { + flyteidl.plugins.Ray.HeadGroupSpec result = new flyteidl.plugins.Ray.HeadGroupSpec(this); + int from_bitField0_ = bitField0_; + result.rayStartParams_ = internalGetRayStartParams(); + result.rayStartParams_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Ray.HeadGroupSpec) { + return mergeFrom((flyteidl.plugins.Ray.HeadGroupSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Ray.HeadGroupSpec other) { + if (other == flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance()) return this; + internalGetMutableRayStartParams().mergeFrom( + other.internalGetRayStartParams()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Ray.HeadGroupSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Ray.HeadGroupSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> rayStartParams_; + private com.google.protobuf.MapField + internalGetRayStartParams() { + if (rayStartParams_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + } + return rayStartParams_; + } + private com.google.protobuf.MapField + internalGetMutableRayStartParams() { + onChanged();; + if (rayStartParams_ == null) { + rayStartParams_ = com.google.protobuf.MapField.newMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + } + if (!rayStartParams_.isMutable()) { + rayStartParams_ = rayStartParams_.copy(); + } + return rayStartParams_; + } + + public int getRayStartParamsCount() { + return internalGetRayStartParams().getMap().size(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public boolean containsRayStartParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRayStartParams().getMap().containsKey(key); + } + /** + * Use {@link #getRayStartParamsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRayStartParams() { + return getRayStartParamsMap(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public java.util.Map getRayStartParamsMap() { + return internalGetRayStartParams().getMap(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public java.lang.String getRayStartParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public java.lang.String getRayStartParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRayStartParams() { + internalGetMutableRayStartParams().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public Builder removeRayStartParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRayStartParams().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableRayStartParams() { + return internalGetMutableRayStartParams().getMutableMap(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 1; + */ + public Builder putRayStartParams( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRayStartParams().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 1; + */ + + public Builder putAllRayStartParams( + java.util.Map values) { + internalGetMutableRayStartParams().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.HeadGroupSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HeadGroupSpec) + private static final flyteidl.plugins.Ray.HeadGroupSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Ray.HeadGroupSpec(); + } + + public static flyteidl.plugins.Ray.HeadGroupSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HeadGroupSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HeadGroupSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Ray.HeadGroupSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkerGroupSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.WorkerGroupSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+     * 
+ * + * string group_name = 1; + */ + java.lang.String getGroupName(); + /** + *
+     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+     * 
+ * + * string group_name = 1; + */ + com.google.protobuf.ByteString + getGroupNameBytes(); + + /** + *
+     * Required. Desired replicas of the worker group. Defaults to 1.
+     * 
+ * + * int32 replicas = 2; + */ + int getReplicas(); + + /** + *
+     * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
+     * 
+ * + * int32 min_replicas = 3; + */ + int getMinReplicas(); + + /** + *
+     * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
+     * 
+ * + * int32 max_replicas = 4; + */ + int getMaxReplicas(); + + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + int getRayStartParamsCount(); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + boolean containsRayStartParams( + java.lang.String key); + /** + * Use {@link #getRayStartParamsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getRayStartParams(); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + java.util.Map + getRayStartParamsMap(); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + + java.lang.String getRayStartParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + + java.lang.String getRayStartParamsOrThrow( + java.lang.String key); + } + /** + *
+   * WorkerGroupSpec are the specs for the worker pods
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.WorkerGroupSpec} + */ + public static final class WorkerGroupSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.WorkerGroupSpec) + WorkerGroupSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkerGroupSpec.newBuilder() to construct. + private WorkerGroupSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkerGroupSpec() { + groupName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkerGroupSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + groupName_ = s; + break; + } + case 16: { + + replicas_ = input.readInt32(); + break; + } + case 24: { + + minReplicas_ = input.readInt32(); + break; + } + case 32: { + + maxReplicas_ = input.readInt32(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + rayStartParams_ = com.google.protobuf.MapField.newMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + rayStartParams__ = input.readMessage( + RayStartParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + rayStartParams_.getMutableMap().put( + rayStartParams__.getKey(), rayStartParams__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetRayStartParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.WorkerGroupSpec.class, flyteidl.plugins.Ray.WorkerGroupSpec.Builder.class); + } + + private int bitField0_; + public static final int GROUP_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object groupName_; + /** + *
+     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+     * 
+ * + * string group_name = 1; + */ + public java.lang.String getGroupName() { + java.lang.Object ref = groupName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupName_ = s; + return s; + } + } + /** + *
+     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+     * 
+ * + * string group_name = 1; + */ + public com.google.protobuf.ByteString + getGroupNameBytes() { + java.lang.Object ref = groupName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLICAS_FIELD_NUMBER = 2; + private int replicas_; + /** + *
+     * Required. Desired replicas of the worker group. Defaults to 1.
+     * 
+ * + * int32 replicas = 2; + */ + public int getReplicas() { + return replicas_; + } + + public static final int MIN_REPLICAS_FIELD_NUMBER = 3; + private int minReplicas_; + /** + *
+     * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
+     * 
+ * + * int32 min_replicas = 3; + */ + public int getMinReplicas() { + return minReplicas_; + } + + public static final int MAX_REPLICAS_FIELD_NUMBER = 4; + private int maxReplicas_; + /** + *
+     * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
+     * 
+ * + * int32 max_replicas = 4; + */ + public int getMaxReplicas() { + return maxReplicas_; + } + + public static final int RAY_START_PARAMS_FIELD_NUMBER = 5; + private static final class RayStartParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> rayStartParams_; + private com.google.protobuf.MapField + internalGetRayStartParams() { + if (rayStartParams_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + } + return rayStartParams_; + } + + public int getRayStartParamsCount() { + return internalGetRayStartParams().getMap().size(); + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public boolean containsRayStartParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRayStartParams().getMap().containsKey(key); + } + /** + * Use {@link #getRayStartParamsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRayStartParams() { + return getRayStartParamsMap(); + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public java.util.Map getRayStartParamsMap() { + return internalGetRayStartParams().getMap(); + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public java.lang.String getRayStartParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+     * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public java.lang.String getRayStartParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getGroupNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupName_); + } + if (replicas_ != 0) { + output.writeInt32(2, replicas_); + } + if (minReplicas_ != 0) { + output.writeInt32(3, minReplicas_); + } + if (maxReplicas_ != 0) { + output.writeInt32(4, maxReplicas_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRayStartParams(), + RayStartParamsDefaultEntryHolder.defaultEntry, + 5); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGroupNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupName_); + } + if (replicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, replicas_); + } + if (minReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, minReplicas_); + } + if (maxReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxReplicas_); + } + for (java.util.Map.Entry entry + : internalGetRayStartParams().getMap().entrySet()) { + com.google.protobuf.MapEntry + rayStartParams__ = RayStartParamsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, rayStartParams__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Ray.WorkerGroupSpec)) { + return super.equals(obj); + } + flyteidl.plugins.Ray.WorkerGroupSpec other = (flyteidl.plugins.Ray.WorkerGroupSpec) obj; + + if (!getGroupName() + .equals(other.getGroupName())) return false; + if (getReplicas() + != other.getReplicas()) return false; + if (getMinReplicas() + != other.getMinReplicas()) return false; + if (getMaxReplicas() + != other.getMaxReplicas()) return false; + if (!internalGetRayStartParams().equals( + other.internalGetRayStartParams())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GROUP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGroupName().hashCode(); + hash = (37 * hash) + REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getReplicas(); + hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getMinReplicas(); + hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getMaxReplicas(); + if (!internalGetRayStartParams().getMap().isEmpty()) { + hash = (37 * hash) + RAY_START_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRayStartParams().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Ray.WorkerGroupSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * WorkerGroupSpec are the specs for the worker pods
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.WorkerGroupSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.WorkerGroupSpec) + flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetRayStartParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableRayStartParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Ray.WorkerGroupSpec.class, flyteidl.plugins.Ray.WorkerGroupSpec.Builder.class); + } + + // Construct using flyteidl.plugins.Ray.WorkerGroupSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + groupName_ = ""; + + replicas_ = 0; + + minReplicas_ = 0; + + maxReplicas_ = 0; + + internalGetMutableRayStartParams().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Ray.WorkerGroupSpec getDefaultInstanceForType() { + return flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Ray.WorkerGroupSpec build() { + flyteidl.plugins.Ray.WorkerGroupSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Ray.WorkerGroupSpec buildPartial() { + flyteidl.plugins.Ray.WorkerGroupSpec result = new flyteidl.plugins.Ray.WorkerGroupSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.groupName_ = groupName_; + result.replicas_ = replicas_; + result.minReplicas_ = minReplicas_; + result.maxReplicas_ = maxReplicas_; + result.rayStartParams_ = internalGetRayStartParams(); + result.rayStartParams_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Ray.WorkerGroupSpec) { + return mergeFrom((flyteidl.plugins.Ray.WorkerGroupSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Ray.WorkerGroupSpec other) { + if (other == flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance()) return this; + if (!other.getGroupName().isEmpty()) { + groupName_ = other.groupName_; + onChanged(); + } + if (other.getReplicas() != 0) { + setReplicas(other.getReplicas()); + } + if (other.getMinReplicas() != 0) { + setMinReplicas(other.getMinReplicas()); + } + if (other.getMaxReplicas() != 0) { + setMaxReplicas(other.getMaxReplicas()); + } + internalGetMutableRayStartParams().mergeFrom( + other.internalGetRayStartParams()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Ray.WorkerGroupSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Ray.WorkerGroupSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object groupName_ = ""; + /** + *
+       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+       * 
+ * + * string group_name = 1; + */ + public java.lang.String getGroupName() { + java.lang.Object ref = groupName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+       * 
+ * + * string group_name = 1; + */ + public com.google.protobuf.ByteString + getGroupNameBytes() { + java.lang.Object ref = groupName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+       * 
+ * + * string group_name = 1; + */ + public Builder setGroupName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + groupName_ = value; + onChanged(); + return this; + } + /** + *
+       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+       * 
+ * + * string group_name = 1; + */ + public Builder clearGroupName() { + + groupName_ = getDefaultInstance().getGroupName(); + onChanged(); + return this; + } + /** + *
+       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
+       * 
+ * + * string group_name = 1; + */ + public Builder setGroupNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + groupName_ = value; + onChanged(); + return this; + } + + private int replicas_ ; + /** + *
+       * Required. Desired replicas of the worker group. Defaults to 1.
+       * 
+ * + * int32 replicas = 2; + */ + public int getReplicas() { + return replicas_; + } + /** + *
+       * Required. Desired replicas of the worker group. Defaults to 1.
+       * 
+ * + * int32 replicas = 2; + */ + public Builder setReplicas(int value) { + + replicas_ = value; + onChanged(); + return this; + } + /** + *
+       * Required. Desired replicas of the worker group. Defaults to 1.
+       * 
+ * + * int32 replicas = 2; + */ + public Builder clearReplicas() { + + replicas_ = 0; + onChanged(); + return this; + } + + private int minReplicas_ ; + /** + *
+       * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
+       * 
+ * + * int32 min_replicas = 3; + */ + public int getMinReplicas() { + return minReplicas_; + } + /** + *
+       * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
+       * 
+ * + * int32 min_replicas = 3; + */ + public Builder setMinReplicas(int value) { + + minReplicas_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
+       * 
+ * + * int32 min_replicas = 3; + */ + public Builder clearMinReplicas() { + + minReplicas_ = 0; + onChanged(); + return this; + } + + private int maxReplicas_ ; + /** + *
+       * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
+       * 
+ * + * int32 max_replicas = 4; + */ + public int getMaxReplicas() { + return maxReplicas_; + } + /** + *
+       * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
+       * 
+ * + * int32 max_replicas = 4; + */ + public Builder setMaxReplicas(int value) { + + maxReplicas_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
+       * 
+ * + * int32 max_replicas = 4; + */ + public Builder clearMaxReplicas() { + + maxReplicas_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> rayStartParams_; + private com.google.protobuf.MapField + internalGetRayStartParams() { + if (rayStartParams_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + } + return rayStartParams_; + } + private com.google.protobuf.MapField + internalGetMutableRayStartParams() { + onChanged();; + if (rayStartParams_ == null) { + rayStartParams_ = com.google.protobuf.MapField.newMapField( + RayStartParamsDefaultEntryHolder.defaultEntry); + } + if (!rayStartParams_.isMutable()) { + rayStartParams_ = rayStartParams_.copy(); + } + return rayStartParams_; + } + + public int getRayStartParamsCount() { + return internalGetRayStartParams().getMap().size(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public boolean containsRayStartParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRayStartParams().getMap().containsKey(key); + } + /** + * Use {@link #getRayStartParamsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRayStartParams() { + return getRayStartParamsMap(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public java.util.Map getRayStartParamsMap() { + return internalGetRayStartParams().getMap(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public java.lang.String getRayStartParamsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public java.lang.String getRayStartParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRayStartParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRayStartParams() { + internalGetMutableRayStartParams().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public Builder removeRayStartParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRayStartParams().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableRayStartParams() { + return internalGetMutableRayStartParams().getMutableMap(); + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 5; + */ + public Builder putRayStartParams( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRayStartParams().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
+       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
+       * 
+ * + * map<string, string> ray_start_params = 5; + */ + + public Builder putAllRayStartParams( + java.util.Map values) { + internalGetMutableRayStartParams().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.WorkerGroupSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.WorkerGroupSpec) + private static final flyteidl.plugins.Ray.WorkerGroupSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Ray.WorkerGroupSpec(); + } + + public static flyteidl.plugins.Ray.WorkerGroupSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkerGroupSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkerGroupSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Ray.WorkerGroupSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_RayJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_RayJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_RayCluster_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/plugins/ray.proto\022\020flyteidl.p" + + "lugins\"P\n\006RayJob\0221\n\013ray_cluster\030\001 \001(\0132\034." + + "flyteidl.plugins.RayCluster\022\023\n\013runtime_e" + + "nv\030\002 \001(\t\"\204\001\n\nRayCluster\0228\n\017head_group_sp" + + "ec\030\001 \001(\0132\037.flyteidl.plugins.HeadGroupSpe" + + "c\022<\n\021worker_group_spec\030\002 \003(\0132!.flyteidl." + + "plugins.WorkerGroupSpec\"\225\001\n\rHeadGroupSpe" + + "c\022M\n\020ray_start_params\030\001 \003(\01323.flyteidl.p" + + "lugins.HeadGroupSpec.RayStartParamsEntry" + + "\0325\n\023RayStartParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\353\001\n\017WorkerGroupSpec\022\022\n\ng" + + "roup_name\030\001 \001(\t\022\020\n\010replicas\030\002 \001(\005\022\024\n\014min" + + "_replicas\030\003 \001(\005\022\024\n\014max_replicas\030\004 \001(\005\022O\n" + + "\020ray_start_params\030\005 \003(\01325.flyteidl.plugi" + + "ns.WorkerGroupSpec.RayStartParamsEntry\0325" + + "\n\023RayStartParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001B9Z7github.com/flyteorg/fly" + + "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_RayJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_RayJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_RayJob_descriptor, + new java.lang.String[] { "RayCluster", "RuntimeEnv", }); + internal_static_flyteidl_plugins_RayCluster_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_RayCluster_descriptor, + new java.lang.String[] { "HeadGroupSpec", "WorkerGroupSpec", }); + internal_static_flyteidl_plugins_HeadGroupSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HeadGroupSpec_descriptor, + new java.lang.String[] { "RayStartParams", }); + internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor = + internal_static_flyteidl_plugins_HeadGroupSpec_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor, + new java.lang.String[] { "GroupName", "Replicas", "MinReplicas", "MaxReplicas", "RayStartParams", }); + internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor = + internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java b/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java new file mode 100644 index 0000000000..57bfefee84 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java @@ -0,0 +1,2818 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +package flyteidl.plugins; + +public final class Spark { + private Spark() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SparkApplicationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkApplication) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.plugins.SparkApplication} + */ + public static final class SparkApplication extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkApplication) + SparkApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkApplication.newBuilder() to construct. + private SparkApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkApplication() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkApplication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.SparkApplication.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PYTHON = 0; + */ + PYTHON(0), + /** + * JAVA = 1; + */ + JAVA(1), + /** + * SCALA = 2; + */ + SCALA(2), + /** + * R = 3; + */ + R(3), + UNRECOGNIZED(-1), + ; + + /** + * PYTHON = 0; + */ + public static final int PYTHON_VALUE = 0; + /** + * JAVA = 1; + */ + public static final int JAVA_VALUE = 1; + /** + * SCALA = 2; + */ + public static final int SCALA_VALUE = 2; + /** + * R = 3; + */ + public static final int R_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return PYTHON; + case 1: return JAVA; + case 2: return SCALA; + case 3: return R; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.Spark.SparkApplication.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.SparkApplication.Type) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Spark.SparkApplication)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkApplication other = (flyteidl.plugins.Spark.SparkApplication) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Spark.SparkApplication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.plugins.SparkApplication} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkApplication) + flyteidl.plugins.Spark.SparkApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkApplication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkApplication.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication build() { + flyteidl.plugins.Spark.SparkApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication buildPartial() { + flyteidl.plugins.Spark.SparkApplication result = new flyteidl.plugins.Spark.SparkApplication(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Spark.SparkApplication) { + return mergeFrom((flyteidl.plugins.Spark.SparkApplication)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkApplication other) { + if (other == flyteidl.plugins.Spark.SparkApplication.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Spark.SparkApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.SparkApplication) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) + private static final flyteidl.plugins.Spark.SparkApplication DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkApplication(); + } + + public static flyteidl.plugins.Spark.SparkApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkApplication(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SparkJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + int getApplicationTypeValue(); + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + flyteidl.plugins.Spark.SparkApplication.Type getApplicationType(); + + /** + * string mainApplicationFile = 2; + */ + java.lang.String getMainApplicationFile(); + /** + * string mainApplicationFile = 2; + */ + com.google.protobuf.ByteString + getMainApplicationFileBytes(); + + /** + * string mainClass = 3; + */ + java.lang.String getMainClass(); + /** + * string mainClass = 3; + */ + com.google.protobuf.ByteString + getMainClassBytes(); + + /** + * map<string, string> sparkConf = 4; + */ + int getSparkConfCount(); + /** + * map<string, string> sparkConf = 4; + */ + boolean containsSparkConf( + java.lang.String key); + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSparkConf(); + /** + * map<string, string> sparkConf = 4; + */ + java.util.Map + getSparkConfMap(); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrThrow( + java.lang.String key); + + /** + * map<string, string> hadoopConf = 5; + */ + int getHadoopConfCount(); + /** + * map<string, string> hadoopConf = 5; + */ + boolean containsHadoopConf( + java.lang.String key); + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getHadoopConf(); + /** + * map<string, string> hadoopConf = 5; + */ + java.util.Map + getHadoopConfMap(); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrThrow( + java.lang.String key); + + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + java.lang.String getExecutorPath(); + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + com.google.protobuf.ByteString + getExecutorPathBytes(); + + /** + *
+     * Databricks job configuration.
+     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+     * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + boolean hasDatabricksConf(); + /** + *
+     * Databricks job configuration.
+     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+     * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + com.google.protobuf.Struct getDatabricksConf(); + /** + *
+     * Databricks job configuration.
+     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+     * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + com.google.protobuf.StructOrBuilder getDatabricksConfOrBuilder(); + + /** + *
+     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+     * This token can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksToken = 8; + */ + java.lang.String getDatabricksToken(); + /** + *
+     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+     * This token can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksToken = 8; + */ + com.google.protobuf.ByteString + getDatabricksTokenBytes(); + + /** + *
+     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+     * This instance name can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksInstance = 9; + */ + java.lang.String getDatabricksInstance(); + /** + *
+     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+     * This instance name can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksInstance = 9; + */ + com.google.protobuf.ByteString + getDatabricksInstanceBytes(); + } + /** + *
+   * Custom Proto for Spark Plugin.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class SparkJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkJob) + SparkJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkJob.newBuilder() to construct. + private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkJob() { + applicationType_ = 0; + mainApplicationFile_ = ""; + mainClass_ = ""; + executorPath_ = ""; + databricksToken_ = ""; + databricksInstance_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + applicationType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mainApplicationFile_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mainClass_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + sparkConf__ = input.readMessage( + SparkConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + sparkConf_.getMutableMap().put( + sparkConf__.getKey(), sparkConf__.getValue()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + hadoopConf__ = input.readMessage( + HadoopConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + hadoopConf_.getMutableMap().put( + hadoopConf__.getKey(), hadoopConf__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + executorPath_ = s; + break; + } + case 58: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (databricksConf_ != null) { + subBuilder = databricksConf_.toBuilder(); + } + databricksConf_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(databricksConf_); + databricksConf_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + databricksToken_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + databricksInstance_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + private int bitField0_; + public static final int APPLICATIONTYPE_FIELD_NUMBER = 1; + private int applicationType_; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + + public static final int MAINAPPLICATIONFILE_FIELD_NUMBER = 2; + private volatile java.lang.Object mainApplicationFile_; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainApplicationFile_ = s; + return s; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINCLASS_FIELD_NUMBER = 3; + private volatile java.lang.Object mainClass_; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainClass_ = s; + return s; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPARKCONF_FIELD_NUMBER = 4; + private static final class SparkConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int HADOOPCONF_FIELD_NUMBER = 5; + private static final class HadoopConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int EXECUTORPATH_FIELD_NUMBER = 6; + private volatile java.lang.Object executorPath_; + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executorPath_ = s; + return s; + } + } + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABRICKSCONF_FIELD_NUMBER = 7; + private com.google.protobuf.Struct databricksConf_; + /** + *
+     * Databricks job configuration.
+     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+     * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public boolean hasDatabricksConf() { + return databricksConf_ != null; + } + /** + *
+     * Databricks job configuration.
+     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+     * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public com.google.protobuf.Struct getDatabricksConf() { + return databricksConf_ == null ? com.google.protobuf.Struct.getDefaultInstance() : databricksConf_; + } + /** + *
+     * Databricks job configuration.
+     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+     * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public com.google.protobuf.StructOrBuilder getDatabricksConfOrBuilder() { + return getDatabricksConf(); + } + + public static final int DATABRICKSTOKEN_FIELD_NUMBER = 8; + private volatile java.lang.Object databricksToken_; + /** + *
+     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+     * This token can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksToken = 8; + */ + public java.lang.String getDatabricksToken() { + java.lang.Object ref = databricksToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databricksToken_ = s; + return s; + } + } + /** + *
+     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+     * This token can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksToken = 8; + */ + public com.google.protobuf.ByteString + getDatabricksTokenBytes() { + java.lang.Object ref = databricksToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + databricksToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABRICKSINSTANCE_FIELD_NUMBER = 9; + private volatile java.lang.Object databricksInstance_; + /** + *
+     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+     * This instance name can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksInstance = 9; + */ + public java.lang.String getDatabricksInstance() { + java.lang.Object ref = databricksInstance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databricksInstance_ = s; + return s; + } + } + /** + *
+     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+     * This instance name can be set in either flytepropeller or flytekit.
+     * 
+ * + * string databricksInstance = 9; + */ + public com.google.protobuf.ByteString + getDatabricksInstanceBytes() { + java.lang.Object ref = databricksInstance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + databricksInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + output.writeEnum(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainClass_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSparkConf(), + SparkConfDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHadoopConf(), + HadoopConfDefaultEntryHolder.defaultEntry, + 5); + if (!getExecutorPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, executorPath_); + } + if (databricksConf_ != null) { + output.writeMessage(7, getDatabricksConf()); + } + if (!getDatabricksTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, databricksToken_); + } + if (!getDatabricksInstanceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, databricksInstance_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainClass_); + } + for (java.util.Map.Entry entry + : internalGetSparkConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + sparkConf__ = SparkConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sparkConf__); + } + for (java.util.Map.Entry entry + : internalGetHadoopConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + hadoopConf__ = HadoopConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, hadoopConf__); + } + if (!getExecutorPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, executorPath_); + } + if (databricksConf_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDatabricksConf()); + } + if (!getDatabricksTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, databricksToken_); + } + if (!getDatabricksInstanceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, databricksInstance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Spark.SparkJob)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkJob other = (flyteidl.plugins.Spark.SparkJob) obj; + + if (applicationType_ != other.applicationType_) return false; + if (!getMainApplicationFile() + .equals(other.getMainApplicationFile())) return false; + if (!getMainClass() + .equals(other.getMainClass())) return false; + if (!internalGetSparkConf().equals( + other.internalGetSparkConf())) return false; + if (!internalGetHadoopConf().equals( + other.internalGetHadoopConf())) return false; + if (!getExecutorPath() + .equals(other.getExecutorPath())) return false; + if (hasDatabricksConf() != other.hasDatabricksConf()) return false; + if (hasDatabricksConf()) { + if (!getDatabricksConf() + .equals(other.getDatabricksConf())) return false; + } + if (!getDatabricksToken() + .equals(other.getDatabricksToken())) return false; + if (!getDatabricksInstance() + .equals(other.getDatabricksInstance())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPLICATIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + applicationType_; + hash = (37 * hash) + MAINAPPLICATIONFILE_FIELD_NUMBER; + hash = (53 * hash) + getMainApplicationFile().hashCode(); + hash = (37 * hash) + MAINCLASS_FIELD_NUMBER; + hash = (53 * hash) + getMainClass().hashCode(); + if (!internalGetSparkConf().getMap().isEmpty()) { + hash = (37 * hash) + SPARKCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetSparkConf().hashCode(); + } + if (!internalGetHadoopConf().getMap().isEmpty()) { + hash = (37 * hash) + HADOOPCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetHadoopConf().hashCode(); + } + hash = (37 * hash) + EXECUTORPATH_FIELD_NUMBER; + hash = (53 * hash) + getExecutorPath().hashCode(); + if (hasDatabricksConf()) { + hash = (37 * hash) + DATABRICKSCONF_FIELD_NUMBER; + hash = (53 * hash) + getDatabricksConf().hashCode(); + } + hash = (37 * hash) + DATABRICKSTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getDatabricksToken().hashCode(); + hash = (37 * hash) + DATABRICKSINSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getDatabricksInstance().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Spark.SparkJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Custom Proto for Spark Plugin.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkJob) + flyteidl.plugins.Spark.SparkJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableSparkConf(); + case 5: + return internalGetMutableHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + applicationType_ = 0; + + mainApplicationFile_ = ""; + + mainClass_ = ""; + + internalGetMutableSparkConf().clear(); + internalGetMutableHadoopConf().clear(); + executorPath_ = ""; + + if (databricksConfBuilder_ == null) { + databricksConf_ = null; + } else { + databricksConf_ = null; + databricksConfBuilder_ = null; + } + databricksToken_ = ""; + + databricksInstance_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob build() { + flyteidl.plugins.Spark.SparkJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob buildPartial() { + flyteidl.plugins.Spark.SparkJob result = new flyteidl.plugins.Spark.SparkJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.applicationType_ = applicationType_; + result.mainApplicationFile_ = mainApplicationFile_; + result.mainClass_ = mainClass_; + result.sparkConf_ = internalGetSparkConf(); + result.sparkConf_.makeImmutable(); + result.hadoopConf_ = internalGetHadoopConf(); + result.hadoopConf_.makeImmutable(); + result.executorPath_ = executorPath_; + if (databricksConfBuilder_ == null) { + result.databricksConf_ = databricksConf_; + } else { + result.databricksConf_ = databricksConfBuilder_.build(); + } + result.databricksToken_ = databricksToken_; + result.databricksInstance_ = databricksInstance_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Spark.SparkJob) { + return mergeFrom((flyteidl.plugins.Spark.SparkJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkJob other) { + if (other == flyteidl.plugins.Spark.SparkJob.getDefaultInstance()) return this; + if (other.applicationType_ != 0) { + setApplicationTypeValue(other.getApplicationTypeValue()); + } + if (!other.getMainApplicationFile().isEmpty()) { + mainApplicationFile_ = other.mainApplicationFile_; + onChanged(); + } + if (!other.getMainClass().isEmpty()) { + mainClass_ = other.mainClass_; + onChanged(); + } + internalGetMutableSparkConf().mergeFrom( + other.internalGetSparkConf()); + internalGetMutableHadoopConf().mergeFrom( + other.internalGetHadoopConf()); + if (!other.getExecutorPath().isEmpty()) { + executorPath_ = other.executorPath_; + onChanged(); + } + if (other.hasDatabricksConf()) { + mergeDatabricksConf(other.getDatabricksConf()); + } + if (!other.getDatabricksToken().isEmpty()) { + databricksToken_ = other.databricksToken_; + onChanged(); + } + if (!other.getDatabricksInstance().isEmpty()) { + databricksInstance_ = other.databricksInstance_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Spark.SparkJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int applicationType_ = 0; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationTypeValue(int value) { + applicationType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationType(flyteidl.plugins.Spark.SparkApplication.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder clearApplicationType() { + + applicationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object mainApplicationFile_ = ""; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainApplicationFile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFile( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainApplicationFile_ = value; + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder clearMainApplicationFile() { + + mainApplicationFile_ = getDefaultInstance().getMainApplicationFile(); + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainApplicationFile_ = value; + onChanged(); + return this; + } + + private java.lang.Object mainClass_ = ""; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainClass = 3; + */ + public Builder setMainClass( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainClass_ = value; + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder clearMainClass() { + + mainClass_ = getDefaultInstance().getMainClass(); + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder setMainClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainClass_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + private com.google.protobuf.MapField + internalGetMutableSparkConf() { + onChanged();; + if (sparkConf_ == null) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + if (!sparkConf_.isMutable()) { + sparkConf_ = sparkConf_.copy(); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSparkConf() { + internalGetMutableSparkConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder removeSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSparkConf() { + return internalGetMutableSparkConf().getMutableMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + public Builder putSparkConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder putAllSparkConf( + java.util.Map values) { + internalGetMutableSparkConf().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + private com.google.protobuf.MapField + internalGetMutableHadoopConf() { + onChanged();; + if (hadoopConf_ == null) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + if (!hadoopConf_.isMutable()) { + hadoopConf_ = hadoopConf_.copy(); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHadoopConf() { + internalGetMutableHadoopConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder removeHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableHadoopConf() { + return internalGetMutableHadoopConf().getMutableMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + public Builder putHadoopConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder putAllHadoopConf( + java.util.Map values) { + internalGetMutableHadoopConf().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object executorPath_ = ""; + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executorPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executorPath_ = value; + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder clearExecutorPath() { + + executorPath_ = getDefaultInstance().getExecutorPath(); + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executorPath_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct databricksConf_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> databricksConfBuilder_; + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public boolean hasDatabricksConf() { + return databricksConfBuilder_ != null || databricksConf_ != null; + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public com.google.protobuf.Struct getDatabricksConf() { + if (databricksConfBuilder_ == null) { + return databricksConf_ == null ? com.google.protobuf.Struct.getDefaultInstance() : databricksConf_; + } else { + return databricksConfBuilder_.getMessage(); + } + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public Builder setDatabricksConf(com.google.protobuf.Struct value) { + if (databricksConfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databricksConf_ = value; + onChanged(); + } else { + databricksConfBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public Builder setDatabricksConf( + com.google.protobuf.Struct.Builder builderForValue) { + if (databricksConfBuilder_ == null) { + databricksConf_ = builderForValue.build(); + onChanged(); + } else { + databricksConfBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public Builder mergeDatabricksConf(com.google.protobuf.Struct value) { + if (databricksConfBuilder_ == null) { + if (databricksConf_ != null) { + databricksConf_ = + com.google.protobuf.Struct.newBuilder(databricksConf_).mergeFrom(value).buildPartial(); + } else { + databricksConf_ = value; + } + onChanged(); + } else { + databricksConfBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public Builder clearDatabricksConf() { + if (databricksConfBuilder_ == null) { + databricksConf_ = null; + onChanged(); + } else { + databricksConf_ = null; + databricksConfBuilder_ = null; + } + + return this; + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public com.google.protobuf.Struct.Builder getDatabricksConfBuilder() { + + onChanged(); + return getDatabricksConfFieldBuilder().getBuilder(); + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + public com.google.protobuf.StructOrBuilder getDatabricksConfOrBuilder() { + if (databricksConfBuilder_ != null) { + return databricksConfBuilder_.getMessageOrBuilder(); + } else { + return databricksConf_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : databricksConf_; + } + } + /** + *
+       * Databricks job configuration.
+       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
+       * 
+ * + * .google.protobuf.Struct databricksConf = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getDatabricksConfFieldBuilder() { + if (databricksConfBuilder_ == null) { + databricksConfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getDatabricksConf(), + getParentForChildren(), + isClean()); + databricksConf_ = null; + } + return databricksConfBuilder_; + } + + private java.lang.Object databricksToken_ = ""; + /** + *
+       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+       * This token can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksToken = 8; + */ + public java.lang.String getDatabricksToken() { + java.lang.Object ref = databricksToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databricksToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+       * This token can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksToken = 8; + */ + public com.google.protobuf.ByteString + getDatabricksTokenBytes() { + java.lang.Object ref = databricksToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + databricksToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+       * This token can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksToken = 8; + */ + public Builder setDatabricksToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + databricksToken_ = value; + onChanged(); + return this; + } + /** + *
+       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+       * This token can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksToken = 8; + */ + public Builder clearDatabricksToken() { + + databricksToken_ = getDefaultInstance().getDatabricksToken(); + onChanged(); + return this; + } + /** + *
+       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
+       * This token can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksToken = 8; + */ + public Builder setDatabricksTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + databricksToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object databricksInstance_ = ""; + /** + *
+       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+       * This instance name can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksInstance = 9; + */ + public java.lang.String getDatabricksInstance() { + java.lang.Object ref = databricksInstance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databricksInstance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+       * This instance name can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksInstance = 9; + */ + public com.google.protobuf.ByteString + getDatabricksInstanceBytes() { + java.lang.Object ref = databricksInstance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + databricksInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+       * This instance name can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksInstance = 9; + */ + public Builder setDatabricksInstance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + databricksInstance_ = value; + onChanged(); + return this; + } + /** + *
+       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+       * This instance name can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksInstance = 9; + */ + public Builder clearDatabricksInstance() { + + databricksInstance_ = getDefaultInstance().getDatabricksInstance(); + onChanged(); + return this; + } + /** + *
+       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
+       * This instance name can be set in either flytepropeller or flytekit.
+       * 
+ * + * string databricksInstance = 9; + */ + public Builder setDatabricksInstanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + databricksInstance_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.SparkJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) + private static final flyteidl.plugins.Spark.SparkJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkJob(); + } + + public static flyteidl.plugins.Spark.SparkJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkApplication_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/plugins/spark.proto\022\020flyteidl" + + ".plugins\032\034google/protobuf/struct.proto\"B" + + "\n\020SparkApplication\".\n\004Type\022\n\n\006PYTHON\020\000\022\010" + + "\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\333\003\n\010SparkJob\022" + + "@\n\017applicationType\030\001 \001(\0162\'.flyteidl.plug" + + "ins.SparkApplication.Type\022\033\n\023mainApplica" + + "tionFile\030\002 \001(\t\022\021\n\tmainClass\030\003 \001(\t\022<\n\tspa" + + "rkConf\030\004 \003(\0132).flyteidl.plugins.SparkJob" + + ".SparkConfEntry\022>\n\nhadoopConf\030\005 \003(\0132*.fl" + + "yteidl.plugins.SparkJob.HadoopConfEntry\022" + + "\024\n\014executorPath\030\006 \001(\t\022/\n\016databricksConf\030" + + "\007 \001(\0132\027.google.protobuf.Struct\022\027\n\017databr" + + "icksToken\030\010 \001(\t\022\032\n\022databricksInstance\030\t " + + "\001(\t\0320\n\016SparkConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\0321\n\017HadoopConfEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B9Z7github.com/f" + + "lyteorg/flyteidl/gen/pb-go/flyteidl/plug" + + "insb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_SparkApplication_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkApplication_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_SparkJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_descriptor, + new java.lang.String[] { "ApplicationType", "MainApplicationFile", "MainClass", "SparkConf", "HadoopConf", "ExecutorPath", "DatabricksConf", "DatabricksToken", "DatabricksInstance", }); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Tensorflow.java b/flyteidl/gen/pb-java/flyteidl/plugins/Tensorflow.java new file mode 100644 index 0000000000..b1a1862ae9 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Tensorflow.java @@ -0,0 +1,705 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/tensorflow.proto + +package flyteidl.plugins; + +public final class Tensorflow { + private Tensorflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedTensorflowTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedTensorflowTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * number of worker, ps, chief replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + int getWorkers(); + + /** + *
+     * PS -> Parameter server
+     * 
+ * + * int32 ps_replicas = 2; + */ + int getPsReplicas(); + + /** + * int32 chief_replicas = 3; + */ + int getChiefReplicas(); + } + /** + *
+   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} + */ + public static final class DistributedTensorflowTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) + DistributedTensorflowTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedTensorflowTrainingTask.newBuilder() to construct. + private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedTensorflowTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedTensorflowTrainingTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + workers_ = input.readInt32(); + break; + } + case 16: { + + psReplicas_ = input.readInt32(); + break; + } + case 24: { + + chiefReplicas_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + public static final int WORKERS_FIELD_NUMBER = 1; + private int workers_; + /** + *
+     * number of worker, ps, chief replicas spawned in the cluster for this job
+     * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + + public static final int PS_REPLICAS_FIELD_NUMBER = 2; + private int psReplicas_; + /** + *
+     * PS -> Parameter server
+     * 
+ * + * int32 ps_replicas = 2; + */ + public int getPsReplicas() { + return psReplicas_; + } + + public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; + private int chiefReplicas_; + /** + * int32 chief_replicas = 3; + */ + public int getChiefReplicas() { + return chiefReplicas_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workers_ != 0) { + output.writeInt32(1, workers_); + } + if (psReplicas_ != 0) { + output.writeInt32(2, psReplicas_); + } + if (chiefReplicas_ != 0) { + output.writeInt32(3, chiefReplicas_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workers_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, workers_); + } + if (psReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, psReplicas_); + } + if (chiefReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, chiefReplicas_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) obj; + + if (getWorkers() + != other.getWorkers()) return false; + if (getPsReplicas() + != other.getPsReplicas()) return false; + if (getChiefReplicas() + != other.getChiefReplicas()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkers(); + hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getPsReplicas(); + hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getChiefReplicas(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + workers_ = 0; + + psReplicas_ = 0; + + chiefReplicas_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask build() { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(this); + result.workers_ = workers_; + result.psReplicas_ = psReplicas_; + result.chiefReplicas_ = chiefReplicas_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) { + return mergeFrom((flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other) { + if (other == flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; + if (other.getWorkers() != 0) { + setWorkers(other.getWorkers()); + } + if (other.getPsReplicas() != 0) { + setPsReplicas(other.getPsReplicas()); + } + if (other.getChiefReplicas() != 0) { + setChiefReplicas(other.getChiefReplicas()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int workers_ ; + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public int getWorkers() { + return workers_; + } + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder setWorkers(int value) { + + workers_ = value; + onChanged(); + return this; + } + /** + *
+       * number of worker, ps, chief replicas spawned in the cluster for this job
+       * 
+ * + * int32 workers = 1; + */ + public Builder clearWorkers() { + + workers_ = 0; + onChanged(); + return this; + } + + private int psReplicas_ ; + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public int getPsReplicas() { + return psReplicas_; + } + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public Builder setPsReplicas(int value) { + + psReplicas_ = value; + onChanged(); + return this; + } + /** + *
+       * PS -> Parameter server
+       * 
+ * + * int32 ps_replicas = 2; + */ + public Builder clearPsReplicas() { + + psReplicas_ = 0; + onChanged(); + return this; + } + + private int chiefReplicas_ ; + /** + * int32 chief_replicas = 3; + */ + public int getChiefReplicas() { + return chiefReplicas_; + } + /** + * int32 chief_replicas = 3; + */ + public Builder setChiefReplicas(int value) { + + chiefReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 chief_replicas = 3; + */ + public Builder clearChiefReplicas() { + + chiefReplicas_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) + private static final flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(); + } + + public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedTensorflowTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedTensorflowTrainingTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!flyteidl/plugins/tensorflow.proto\022\020fly" + + "teidl.plugins\"a\n!DistributedTensorflowTr" + + "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" + + "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005B9Z7gith" + + "ub.com/flyteorg/flyteidl/gen/pb-go/flyte" + + "idl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor, + new java.lang.String[] { "Workers", "PsReplicas", "ChiefReplicas", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java new file mode 100644 index 0000000000..706ee66608 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java @@ -0,0 +1,911 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +package flyteidl.plugins; + +public final class WaitableOuterClass { + private WaitableOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WaitableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.Waitable) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + boolean hasWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + * string workflow_id = 3; + */ + java.lang.String getWorkflowId(); + /** + * string workflow_id = 3; + */ + com.google.protobuf.ByteString + getWorkflowIdBytes(); + } + /** + *
+   * Represents an Execution that was launched and could be waited on.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Waitable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.Waitable) + WaitableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Waitable.newBuilder() to construct. + private Waitable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Waitable() { + phase_ = 0; + workflowId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Waitable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (wfExecId_ != null) { + subBuilder = wfExecId_.toBuilder(); + } + wfExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(wfExecId_); + wfExecId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflowId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + public static final int WF_EXEC_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + return getWfExecId(); + } + + public static final int PHASE_FIELD_NUMBER = 2; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object workflowId_; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflowId_ = s; + return s; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (wfExecId_ != null) { + output.writeMessage(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (wfExecId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.WaitableOuterClass.Waitable)) { + return super.equals(obj); + } + flyteidl.plugins.WaitableOuterClass.Waitable other = (flyteidl.plugins.WaitableOuterClass.Waitable) obj; + + if (hasWfExecId() != other.hasWfExecId()) return false; + if (hasWfExecId()) { + if (!getWfExecId() + .equals(other.getWfExecId())) return false; + } + if (phase_ != other.phase_) return false; + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWfExecId()) { + hash = (37 * hash) + WF_EXEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getWfExecId().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.WaitableOuterClass.Waitable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents an Execution that was launched and could be waited on.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.Waitable) + flyteidl.plugins.WaitableOuterClass.WaitableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + // Construct using flyteidl.plugins.WaitableOuterClass.Waitable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (wfExecIdBuilder_ == null) { + wfExecId_ = null; + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + phase_ = 0; + + workflowId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable build() { + flyteidl.plugins.WaitableOuterClass.Waitable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable buildPartial() { + flyteidl.plugins.WaitableOuterClass.Waitable result = new flyteidl.plugins.WaitableOuterClass.Waitable(this); + if (wfExecIdBuilder_ == null) { + result.wfExecId_ = wfExecId_; + } else { + result.wfExecId_ = wfExecIdBuilder_.build(); + } + result.phase_ = phase_; + result.workflowId_ = workflowId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.WaitableOuterClass.Waitable) { + return mergeFrom((flyteidl.plugins.WaitableOuterClass.Waitable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.WaitableOuterClass.Waitable other) { + if (other == flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance()) return this; + if (other.hasWfExecId()) { + mergeWfExecId(other.getWfExecId()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getWorkflowId().isEmpty()) { + workflowId_ = other.workflowId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.WaitableOuterClass.Waitable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.WaitableOuterClass.Waitable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> wfExecIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecIdBuilder_ != null || wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + if (wfExecIdBuilder_ == null) { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } else { + return wfExecIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wfExecId_ = value; + onChanged(); + } else { + wfExecIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (wfExecIdBuilder_ == null) { + wfExecId_ = builderForValue.build(); + onChanged(); + } else { + wfExecIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder mergeWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (wfExecId_ != null) { + wfExecId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(wfExecId_).mergeFrom(value).buildPartial(); + } else { + wfExecId_ = value; + } + onChanged(); + } else { + wfExecIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder clearWfExecId() { + if (wfExecIdBuilder_ == null) { + wfExecId_ = null; + onChanged(); + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWfExecIdBuilder() { + + onChanged(); + return getWfExecIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + if (wfExecIdBuilder_ != null) { + return wfExecIdBuilder_.getMessageOrBuilder(); + } else { + return wfExecId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWfExecIdFieldBuilder() { + if (wfExecIdBuilder_ == null) { + wfExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWfExecId(), + getParentForChildren(), + isClean()); + wfExecId_ = null; + } + return wfExecIdBuilder_; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + @SuppressWarnings("deprecation") + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workflowId_ = ""; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflowId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflowId_ = value; + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder clearWorkflowId() { + + workflowId_ = getDefaultInstance().getWorkflowId(); + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflowId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.Waitable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) + private static final flyteidl.plugins.WaitableOuterClass.Waitable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.WaitableOuterClass.Waitable(); + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Waitable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Waitable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_Waitable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_Waitable_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037flyteidl/plugins/waitable.proto\022\020flyte" + + "idl.plugins\032\035flyteidl/core/execution.pro" + + "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + + "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + + "ore.WorkflowExecutionIdentifier\0225\n\005phase" + + "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + + ".Phase\022\023\n\013workflow_id\030\003 \001(\tB9Z7github.co" + + "m/flyteorg/flyteidl/gen/pb-go/flyteidl/p" + + "luginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_Waitable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_Waitable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_Waitable_descriptor, + new java.lang.String[] { "WfExecId", "Phase", "WorkflowId", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Common.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Common.java new file mode 100644 index 0000000000..a260c723ac --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Common.java @@ -0,0 +1,1073 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/common.proto + +package flyteidl.plugins.kubeflow; + +public final class Common { + private Common() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code flyteidl.plugins.kubeflow.RestartPolicy} + */ + public enum RestartPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * RESTART_POLICY_NEVER = 0; + */ + RESTART_POLICY_NEVER(0), + /** + * RESTART_POLICY_ON_FAILURE = 1; + */ + RESTART_POLICY_ON_FAILURE(1), + /** + * RESTART_POLICY_ALWAYS = 2; + */ + RESTART_POLICY_ALWAYS(2), + UNRECOGNIZED(-1), + ; + + /** + * RESTART_POLICY_NEVER = 0; + */ + public static final int RESTART_POLICY_NEVER_VALUE = 0; + /** + * RESTART_POLICY_ON_FAILURE = 1; + */ + public static final int RESTART_POLICY_ON_FAILURE_VALUE = 1; + /** + * RESTART_POLICY_ALWAYS = 2; + */ + public static final int RESTART_POLICY_ALWAYS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RestartPolicy valueOf(int value) { + return forNumber(value); + } + + public static RestartPolicy forNumber(int value) { + switch (value) { + case 0: return RESTART_POLICY_NEVER; + case 1: return RESTART_POLICY_ON_FAILURE; + case 2: return RESTART_POLICY_ALWAYS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RestartPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RestartPolicy findValueByNumber(int number) { + return RestartPolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Common.getDescriptor().getEnumTypes().get(0); + } + + private static final RestartPolicy[] VALUES = values(); + + public static RestartPolicy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RestartPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.kubeflow.RestartPolicy) + } + + /** + * Protobuf enum {@code flyteidl.plugins.kubeflow.CleanPodPolicy} + */ + public enum CleanPodPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CLEANPOD_POLICY_NONE = 0; + */ + CLEANPOD_POLICY_NONE(0), + /** + * CLEANPOD_POLICY_RUNNING = 1; + */ + CLEANPOD_POLICY_RUNNING(1), + /** + * CLEANPOD_POLICY_ALL = 2; + */ + CLEANPOD_POLICY_ALL(2), + UNRECOGNIZED(-1), + ; + + /** + * CLEANPOD_POLICY_NONE = 0; + */ + public static final int CLEANPOD_POLICY_NONE_VALUE = 0; + /** + * CLEANPOD_POLICY_RUNNING = 1; + */ + public static final int CLEANPOD_POLICY_RUNNING_VALUE = 1; + /** + * CLEANPOD_POLICY_ALL = 2; + */ + public static final int CLEANPOD_POLICY_ALL_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CleanPodPolicy valueOf(int value) { + return forNumber(value); + } + + public static CleanPodPolicy forNumber(int value) { + switch (value) { + case 0: return CLEANPOD_POLICY_NONE; + case 1: return CLEANPOD_POLICY_RUNNING; + case 2: return CLEANPOD_POLICY_ALL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CleanPodPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CleanPodPolicy findValueByNumber(int number) { + return CleanPodPolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Common.getDescriptor().getEnumTypes().get(1); + } + + private static final CleanPodPolicy[] VALUES = values(); + + public static CleanPodPolicy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CleanPodPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.kubeflow.CleanPodPolicy) + } + + public interface RunPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.RunPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines the policy to kill pods after the job completes. Default to None.
+     * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + int getCleanPodPolicyValue(); + /** + *
+     * Defines the policy to kill pods after the job completes. Default to None.
+     * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + flyteidl.plugins.kubeflow.Common.CleanPodPolicy getCleanPodPolicy(); + + /** + *
+     * TTL to clean up jobs. Default to infinite.
+     * 
+ * + * int32 ttl_seconds_after_finished = 2; + */ + int getTtlSecondsAfterFinished(); + + /** + *
+     * Specifies the duration in seconds relative to the startTime that the job may be active
+     * before the system tries to terminate it; value must be positive integer.
+     * 
+ * + * int32 active_deadline_seconds = 3; + */ + int getActiveDeadlineSeconds(); + + /** + *
+     * Number of retries before marking this job failed.
+     * 
+ * + * int32 backoff_limit = 4; + */ + int getBackoffLimit(); + } + /** + * Protobuf type {@code flyteidl.plugins.kubeflow.RunPolicy} + */ + public static final class RunPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.RunPolicy) + RunPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunPolicy.newBuilder() to construct. + private RunPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RunPolicy() { + cleanPodPolicy_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RunPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + cleanPodPolicy_ = rawValue; + break; + } + case 16: { + + ttlSecondsAfterFinished_ = input.readInt32(); + break; + } + case 24: { + + activeDeadlineSeconds_ = input.readInt32(); + break; + } + case 32: { + + backoffLimit_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Common.RunPolicy.class, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder.class); + } + + public static final int CLEAN_POD_POLICY_FIELD_NUMBER = 1; + private int cleanPodPolicy_; + /** + *
+     * Defines the policy to kill pods after the job completes. Default to None.
+     * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + public int getCleanPodPolicyValue() { + return cleanPodPolicy_; + } + /** + *
+     * Defines the policy to kill pods after the job completes. Default to None.
+     * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + public flyteidl.plugins.kubeflow.Common.CleanPodPolicy getCleanPodPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.CleanPodPolicy result = flyteidl.plugins.kubeflow.Common.CleanPodPolicy.valueOf(cleanPodPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.CleanPodPolicy.UNRECOGNIZED : result; + } + + public static final int TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER = 2; + private int ttlSecondsAfterFinished_; + /** + *
+     * TTL to clean up jobs. Default to infinite.
+     * 
+ * + * int32 ttl_seconds_after_finished = 2; + */ + public int getTtlSecondsAfterFinished() { + return ttlSecondsAfterFinished_; + } + + public static final int ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER = 3; + private int activeDeadlineSeconds_; + /** + *
+     * Specifies the duration in seconds relative to the startTime that the job may be active
+     * before the system tries to terminate it; value must be positive integer.
+     * 
+ * + * int32 active_deadline_seconds = 3; + */ + public int getActiveDeadlineSeconds() { + return activeDeadlineSeconds_; + } + + public static final int BACKOFF_LIMIT_FIELD_NUMBER = 4; + private int backoffLimit_; + /** + *
+     * Number of retries before marking this job failed.
+     * 
+ * + * int32 backoff_limit = 4; + */ + public int getBackoffLimit() { + return backoffLimit_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (cleanPodPolicy_ != flyteidl.plugins.kubeflow.Common.CleanPodPolicy.CLEANPOD_POLICY_NONE.getNumber()) { + output.writeEnum(1, cleanPodPolicy_); + } + if (ttlSecondsAfterFinished_ != 0) { + output.writeInt32(2, ttlSecondsAfterFinished_); + } + if (activeDeadlineSeconds_ != 0) { + output.writeInt32(3, activeDeadlineSeconds_); + } + if (backoffLimit_ != 0) { + output.writeInt32(4, backoffLimit_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cleanPodPolicy_ != flyteidl.plugins.kubeflow.Common.CleanPodPolicy.CLEANPOD_POLICY_NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, cleanPodPolicy_); + } + if (ttlSecondsAfterFinished_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, ttlSecondsAfterFinished_); + } + if (activeDeadlineSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, activeDeadlineSeconds_); + } + if (backoffLimit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, backoffLimit_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Common.RunPolicy)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Common.RunPolicy other = (flyteidl.plugins.kubeflow.Common.RunPolicy) obj; + + if (cleanPodPolicy_ != other.cleanPodPolicy_) return false; + if (getTtlSecondsAfterFinished() + != other.getTtlSecondsAfterFinished()) return false; + if (getActiveDeadlineSeconds() + != other.getActiveDeadlineSeconds()) return false; + if (getBackoffLimit() + != other.getBackoffLimit()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLEAN_POD_POLICY_FIELD_NUMBER; + hash = (53 * hash) + cleanPodPolicy_; + hash = (37 * hash) + TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER; + hash = (53 * hash) + getTtlSecondsAfterFinished(); + hash = (37 * hash) + ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getActiveDeadlineSeconds(); + hash = (37 * hash) + BACKOFF_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getBackoffLimit(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Common.RunPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.plugins.kubeflow.RunPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.RunPolicy) + flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Common.RunPolicy.class, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Common.RunPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + cleanPodPolicy_ = 0; + + ttlSecondsAfterFinished_ = 0; + + activeDeadlineSeconds_ = 0; + + backoffLimit_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Common.RunPolicy getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Common.RunPolicy build() { + flyteidl.plugins.kubeflow.Common.RunPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Common.RunPolicy buildPartial() { + flyteidl.plugins.kubeflow.Common.RunPolicy result = new flyteidl.plugins.kubeflow.Common.RunPolicy(this); + result.cleanPodPolicy_ = cleanPodPolicy_; + result.ttlSecondsAfterFinished_ = ttlSecondsAfterFinished_; + result.activeDeadlineSeconds_ = activeDeadlineSeconds_; + result.backoffLimit_ = backoffLimit_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Common.RunPolicy) { + return mergeFrom((flyteidl.plugins.kubeflow.Common.RunPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Common.RunPolicy other) { + if (other == flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance()) return this; + if (other.cleanPodPolicy_ != 0) { + setCleanPodPolicyValue(other.getCleanPodPolicyValue()); + } + if (other.getTtlSecondsAfterFinished() != 0) { + setTtlSecondsAfterFinished(other.getTtlSecondsAfterFinished()); + } + if (other.getActiveDeadlineSeconds() != 0) { + setActiveDeadlineSeconds(other.getActiveDeadlineSeconds()); + } + if (other.getBackoffLimit() != 0) { + setBackoffLimit(other.getBackoffLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Common.RunPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Common.RunPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int cleanPodPolicy_ = 0; + /** + *
+       * Defines the policy to kill pods after the job completes. Default to None.
+       * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + public int getCleanPodPolicyValue() { + return cleanPodPolicy_; + } + /** + *
+       * Defines the policy to kill pods after the job completes. Default to None.
+       * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + public Builder setCleanPodPolicyValue(int value) { + cleanPodPolicy_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the policy to kill pods after the job completes. Default to None.
+       * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + public flyteidl.plugins.kubeflow.Common.CleanPodPolicy getCleanPodPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.CleanPodPolicy result = flyteidl.plugins.kubeflow.Common.CleanPodPolicy.valueOf(cleanPodPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.CleanPodPolicy.UNRECOGNIZED : result; + } + /** + *
+       * Defines the policy to kill pods after the job completes. Default to None.
+       * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + public Builder setCleanPodPolicy(flyteidl.plugins.kubeflow.Common.CleanPodPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + cleanPodPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Defines the policy to kill pods after the job completes. Default to None.
+       * 
+ * + * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + public Builder clearCleanPodPolicy() { + + cleanPodPolicy_ = 0; + onChanged(); + return this; + } + + private int ttlSecondsAfterFinished_ ; + /** + *
+       * TTL to clean up jobs. Default to infinite.
+       * 
+ * + * int32 ttl_seconds_after_finished = 2; + */ + public int getTtlSecondsAfterFinished() { + return ttlSecondsAfterFinished_; + } + /** + *
+       * TTL to clean up jobs. Default to infinite.
+       * 
+ * + * int32 ttl_seconds_after_finished = 2; + */ + public Builder setTtlSecondsAfterFinished(int value) { + + ttlSecondsAfterFinished_ = value; + onChanged(); + return this; + } + /** + *
+       * TTL to clean up jobs. Default to infinite.
+       * 
+ * + * int32 ttl_seconds_after_finished = 2; + */ + public Builder clearTtlSecondsAfterFinished() { + + ttlSecondsAfterFinished_ = 0; + onChanged(); + return this; + } + + private int activeDeadlineSeconds_ ; + /** + *
+       * Specifies the duration in seconds relative to the startTime that the job may be active
+       * before the system tries to terminate it; value must be positive integer.
+       * 
+ * + * int32 active_deadline_seconds = 3; + */ + public int getActiveDeadlineSeconds() { + return activeDeadlineSeconds_; + } + /** + *
+       * Specifies the duration in seconds relative to the startTime that the job may be active
+       * before the system tries to terminate it; value must be positive integer.
+       * 
+ * + * int32 active_deadline_seconds = 3; + */ + public Builder setActiveDeadlineSeconds(int value) { + + activeDeadlineSeconds_ = value; + onChanged(); + return this; + } + /** + *
+       * Specifies the duration in seconds relative to the startTime that the job may be active
+       * before the system tries to terminate it; value must be positive integer.
+       * 
+ * + * int32 active_deadline_seconds = 3; + */ + public Builder clearActiveDeadlineSeconds() { + + activeDeadlineSeconds_ = 0; + onChanged(); + return this; + } + + private int backoffLimit_ ; + /** + *
+       * Number of retries before marking this job failed.
+       * 
+ * + * int32 backoff_limit = 4; + */ + public int getBackoffLimit() { + return backoffLimit_; + } + /** + *
+       * Number of retries before marking this job failed.
+       * 
+ * + * int32 backoff_limit = 4; + */ + public Builder setBackoffLimit(int value) { + + backoffLimit_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of retries before marking this job failed.
+       * 
+ * + * int32 backoff_limit = 4; + */ + public Builder clearBackoffLimit() { + + backoffLimit_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.RunPolicy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.RunPolicy) + private static final flyteidl.plugins.kubeflow.Common.RunPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Common.RunPolicy(); + } + + public static flyteidl.plugins.kubeflow.Common.RunPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Common.RunPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&flyteidl/plugins/kubeflow/common.proto" + + "\022\031flyteidl.plugins.kubeflow\"\254\001\n\tRunPolic" + + "y\022C\n\020clean_pod_policy\030\001 \001(\0162).flyteidl.p" + + "lugins.kubeflow.CleanPodPolicy\022\"\n\032ttl_se" + + "conds_after_finished\030\002 \001(\005\022\037\n\027active_dea" + + "dline_seconds\030\003 \001(\005\022\025\n\rbackoff_limit\030\004 \001" + + "(\005*c\n\rRestartPolicy\022\030\n\024RESTART_POLICY_NE" + + "VER\020\000\022\035\n\031RESTART_POLICY_ON_FAILURE\020\001\022\031\n\025" + + "RESTART_POLICY_ALWAYS\020\002*`\n\016CleanPodPolic" + + "y\022\030\n\024CLEANPOD_POLICY_NONE\020\000\022\033\n\027CLEANPOD_" + + "POLICY_RUNNING\020\001\022\027\n\023CLEANPOD_POLICY_ALL\020" + + "\002B9Z7github.com/flyteorg/flyteidl/gen/pb" + + "-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor, + new java.lang.String[] { "CleanPodPolicy", "TtlSecondsAfterFinished", "ActiveDeadlineSeconds", "BackoffLimit", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Mpi.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Mpi.java new file mode 100644 index 0000000000..f467a15e08 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Mpi.java @@ -0,0 +1,2700 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/mpi.proto + +package flyteidl.plugins.kubeflow; + +public final class Mpi { + private Mpi() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedMPITrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + boolean hasWorkerReplicas(); + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getWorkerReplicas(); + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder(); + + /** + *
+     * Master replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + boolean hasLauncherReplicas(); + /** + *
+     * Master replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getLauncherReplicas(); + /** + *
+     * Master replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getLauncherReplicasOrBuilder(); + + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + boolean hasRunPolicy(); + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy(); + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder(); + + /** + *
+     * Number of slots per worker
+     * 
+ * + * int32 slots = 4; + */ + int getSlots(); + } + /** + *
+   * Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingTask} + */ + public static final class DistributedMPITrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + DistributedMPITrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedMPITrainingTask.newBuilder() to construct. + private DistributedMPITrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedMPITrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedMPITrainingTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder subBuilder = null; + if (workerReplicas_ != null) { + subBuilder = workerReplicas_.toBuilder(); + } + workerReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workerReplicas_); + workerReplicas_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder subBuilder = null; + if (launcherReplicas_ != null) { + subBuilder = launcherReplicas_.toBuilder(); + } + launcherReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(launcherReplicas_); + launcherReplicas_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.plugins.kubeflow.Common.RunPolicy.Builder subBuilder = null; + if (runPolicy_ != null) { + subBuilder = runPolicy_.toBuilder(); + } + runPolicy_ = input.readMessage(flyteidl.plugins.kubeflow.Common.RunPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runPolicy_); + runPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + slots_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.Builder.class); + } + + public static final int WORKER_REPLICAS_FIELD_NUMBER = 1; + private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec workerReplicas_; + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public boolean hasWorkerReplicas() { + return workerReplicas_ != null; + } + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getWorkerReplicas() { + return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { + return getWorkerReplicas(); + } + + public static final int LAUNCHER_REPLICAS_FIELD_NUMBER = 2; + private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec launcherReplicas_; + /** + *
+     * Master replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public boolean hasLauncherReplicas() { + return launcherReplicas_ != null; + } + /** + *
+     * Master replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getLauncherReplicas() { + return launcherReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : launcherReplicas_; + } + /** + *
+     * Master replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getLauncherReplicasOrBuilder() { + return getLauncherReplicas(); + } + + public static final int RUN_POLICY_FIELD_NUMBER = 3; + private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public boolean hasRunPolicy() { + return runPolicy_ != null; + } + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { + return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { + return getRunPolicy(); + } + + public static final int SLOTS_FIELD_NUMBER = 4; + private int slots_; + /** + *
+     * Number of slots per worker
+     * 
+ * + * int32 slots = 4; + */ + public int getSlots() { + return slots_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workerReplicas_ != null) { + output.writeMessage(1, getWorkerReplicas()); + } + if (launcherReplicas_ != null) { + output.writeMessage(2, getLauncherReplicas()); + } + if (runPolicy_ != null) { + output.writeMessage(3, getRunPolicy()); + } + if (slots_ != 0) { + output.writeInt32(4, slots_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workerReplicas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkerReplicas()); + } + if (launcherReplicas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLauncherReplicas()); + } + if (runPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRunPolicy()); + } + if (slots_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, slots_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask other = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask) obj; + + if (hasWorkerReplicas() != other.hasWorkerReplicas()) return false; + if (hasWorkerReplicas()) { + if (!getWorkerReplicas() + .equals(other.getWorkerReplicas())) return false; + } + if (hasLauncherReplicas() != other.hasLauncherReplicas()) return false; + if (hasLauncherReplicas()) { + if (!getLauncherReplicas() + .equals(other.getLauncherReplicas())) return false; + } + if (hasRunPolicy() != other.hasRunPolicy()) return false; + if (hasRunPolicy()) { + if (!getRunPolicy() + .equals(other.getRunPolicy())) return false; + } + if (getSlots() + != other.getSlots()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkerReplicas()) { + hash = (37 * hash) + WORKER_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getWorkerReplicas().hashCode(); + } + if (hasLauncherReplicas()) { + hash = (37 * hash) + LAUNCHER_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getLauncherReplicas().hashCode(); + } + if (hasRunPolicy()) { + hash = (37 * hash) + RUN_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getRunPolicy().hashCode(); + } + hash = (37 * hash) + SLOTS_FIELD_NUMBER; + hash = (53 * hash) + getSlots(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workerReplicasBuilder_ == null) { + workerReplicas_ = null; + } else { + workerReplicas_ = null; + workerReplicasBuilder_ = null; + } + if (launcherReplicasBuilder_ == null) { + launcherReplicas_ = null; + } else { + launcherReplicas_ = null; + launcherReplicasBuilder_ = null; + } + if (runPolicyBuilder_ == null) { + runPolicy_ = null; + } else { + runPolicy_ = null; + runPolicyBuilder_ = null; + } + slots_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask build() { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask buildPartial() { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask result = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask(this); + if (workerReplicasBuilder_ == null) { + result.workerReplicas_ = workerReplicas_; + } else { + result.workerReplicas_ = workerReplicasBuilder_.build(); + } + if (launcherReplicasBuilder_ == null) { + result.launcherReplicas_ = launcherReplicas_; + } else { + result.launcherReplicas_ = launcherReplicasBuilder_.build(); + } + if (runPolicyBuilder_ == null) { + result.runPolicy_ = runPolicy_; + } else { + result.runPolicy_ = runPolicyBuilder_.build(); + } + result.slots_ = slots_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask) { + return mergeFrom((flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask other) { + if (other == flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.getDefaultInstance()) return this; + if (other.hasWorkerReplicas()) { + mergeWorkerReplicas(other.getWorkerReplicas()); + } + if (other.hasLauncherReplicas()) { + mergeLauncherReplicas(other.getLauncherReplicas()); + } + if (other.hasRunPolicy()) { + mergeRunPolicy(other.getRunPolicy()); + } + if (other.getSlots() != 0) { + setSlots(other.getSlots()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec workerReplicas_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> workerReplicasBuilder_; + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public boolean hasWorkerReplicas() { + return workerReplicasBuilder_ != null || workerReplicas_ != null; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getWorkerReplicas() { + if (workerReplicasBuilder_ == null) { + return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } else { + return workerReplicasBuilder_.getMessage(); + } + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public Builder setWorkerReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { + if (workerReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workerReplicas_ = value; + onChanged(); + } else { + workerReplicasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public Builder setWorkerReplicas( + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder builderForValue) { + if (workerReplicasBuilder_ == null) { + workerReplicas_ = builderForValue.build(); + onChanged(); + } else { + workerReplicasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public Builder mergeWorkerReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { + if (workerReplicasBuilder_ == null) { + if (workerReplicas_ != null) { + workerReplicas_ = + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.newBuilder(workerReplicas_).mergeFrom(value).buildPartial(); + } else { + workerReplicas_ = value; + } + onChanged(); + } else { + workerReplicasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public Builder clearWorkerReplicas() { + if (workerReplicasBuilder_ == null) { + workerReplicas_ = null; + onChanged(); + } else { + workerReplicas_ = null; + workerReplicasBuilder_ = null; + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder getWorkerReplicasBuilder() { + + onChanged(); + return getWorkerReplicasFieldBuilder().getBuilder(); + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { + if (workerReplicasBuilder_ != null) { + return workerReplicasBuilder_.getMessageOrBuilder(); + } else { + return workerReplicas_ == null ? + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> + getWorkerReplicasFieldBuilder() { + if (workerReplicasBuilder_ == null) { + workerReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder>( + getWorkerReplicas(), + getParentForChildren(), + isClean()); + workerReplicas_ = null; + } + return workerReplicasBuilder_; + } + + private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec launcherReplicas_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> launcherReplicasBuilder_; + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public boolean hasLauncherReplicas() { + return launcherReplicasBuilder_ != null || launcherReplicas_ != null; + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getLauncherReplicas() { + if (launcherReplicasBuilder_ == null) { + return launcherReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : launcherReplicas_; + } else { + return launcherReplicasBuilder_.getMessage(); + } + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public Builder setLauncherReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { + if (launcherReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + launcherReplicas_ = value; + onChanged(); + } else { + launcherReplicasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public Builder setLauncherReplicas( + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder builderForValue) { + if (launcherReplicasBuilder_ == null) { + launcherReplicas_ = builderForValue.build(); + onChanged(); + } else { + launcherReplicasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public Builder mergeLauncherReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { + if (launcherReplicasBuilder_ == null) { + if (launcherReplicas_ != null) { + launcherReplicas_ = + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.newBuilder(launcherReplicas_).mergeFrom(value).buildPartial(); + } else { + launcherReplicas_ = value; + } + onChanged(); + } else { + launcherReplicasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public Builder clearLauncherReplicas() { + if (launcherReplicasBuilder_ == null) { + launcherReplicas_ = null; + onChanged(); + } else { + launcherReplicas_ = null; + launcherReplicasBuilder_ = null; + } + + return this; + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder getLauncherReplicasBuilder() { + + onChanged(); + return getLauncherReplicasFieldBuilder().getBuilder(); + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getLauncherReplicasOrBuilder() { + if (launcherReplicasBuilder_ != null) { + return launcherReplicasBuilder_.getMessageOrBuilder(); + } else { + return launcherReplicas_ == null ? + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : launcherReplicas_; + } + } + /** + *
+       * Master replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> + getLauncherReplicasFieldBuilder() { + if (launcherReplicasBuilder_ == null) { + launcherReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder>( + getLauncherReplicas(), + getParentForChildren(), + isClean()); + launcherReplicas_ = null; + } + return launcherReplicasBuilder_; + } + + private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> runPolicyBuilder_; + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public boolean hasRunPolicy() { + return runPolicyBuilder_ != null || runPolicy_ != null; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { + if (runPolicyBuilder_ == null) { + return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } else { + return runPolicyBuilder_.getMessage(); + } + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder setRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { + if (runPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runPolicy_ = value; + onChanged(); + } else { + runPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder setRunPolicy( + flyteidl.plugins.kubeflow.Common.RunPolicy.Builder builderForValue) { + if (runPolicyBuilder_ == null) { + runPolicy_ = builderForValue.build(); + onChanged(); + } else { + runPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder mergeRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { + if (runPolicyBuilder_ == null) { + if (runPolicy_ != null) { + runPolicy_ = + flyteidl.plugins.kubeflow.Common.RunPolicy.newBuilder(runPolicy_).mergeFrom(value).buildPartial(); + } else { + runPolicy_ = value; + } + onChanged(); + } else { + runPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder clearRunPolicy() { + if (runPolicyBuilder_ == null) { + runPolicy_ = null; + onChanged(); + } else { + runPolicy_ = null; + runPolicyBuilder_ = null; + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy.Builder getRunPolicyBuilder() { + + onChanged(); + return getRunPolicyFieldBuilder().getBuilder(); + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { + if (runPolicyBuilder_ != null) { + return runPolicyBuilder_.getMessageOrBuilder(); + } else { + return runPolicy_ == null ? + flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> + getRunPolicyFieldBuilder() { + if (runPolicyBuilder_ == null) { + runPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder>( + getRunPolicy(), + getParentForChildren(), + isClean()); + runPolicy_ = null; + } + return runPolicyBuilder_; + } + + private int slots_ ; + /** + *
+       * Number of slots per worker
+       * 
+ * + * int32 slots = 4; + */ + public int getSlots() { + return slots_; + } + /** + *
+       * Number of slots per worker
+       * 
+ * + * int32 slots = 4; + */ + public Builder setSlots(int value) { + + slots_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of slots per worker
+       * 
+ * + * int32 slots = 4; + */ + public Builder clearSlots() { + + slots_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) + private static final flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask(); + } + + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedMPITrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedMPITrainingTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributedMPITrainingReplicaSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of replicas
+     * 
+ * + * int32 replicas = 1; + */ + int getReplicas(); + + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + java.lang.String getImage(); + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + boolean hasResources(); + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + + /** + *
+     * Restart policy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + int getRestartPolicyValue(); + /** + *
+     * Restart policy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy(); + + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + java.util.List + getCommandList(); + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + int getCommandCount(); + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + java.lang.String getCommand(int index); + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + com.google.protobuf.ByteString + getCommandBytes(int index); + } + /** + *
+   * Replica specification for distributed MPI training
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec} + */ + public static final class DistributedMPITrainingReplicaSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + DistributedMPITrainingReplicaSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedMPITrainingReplicaSpec.newBuilder() to construct. + private DistributedMPITrainingReplicaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedMPITrainingReplicaSpec() { + image_ = ""; + restartPolicy_ = 0; + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedMPITrainingReplicaSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + replicas_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + restartPolicy_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + command_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) != 0)) { + command_ = command_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder.class); + } + + private int bitField0_; + public static final int REPLICAS_FIELD_NUMBER = 1; + private int replicas_; + /** + *
+     * Number of replicas
+     * 
+ * + * int32 replicas = 1; + */ + public int getReplicas() { + return replicas_; + } + + public static final int IMAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object image_; + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } + } + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + public static final int RESTART_POLICY_FIELD_NUMBER = 4; + private int restartPolicy_; + /** + *
+     * Restart policy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public int getRestartPolicyValue() { + return restartPolicy_; + } + /** + *
+     * Restart policy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; + } + + public static final int COMMAND_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList command_; + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_; + } + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+     * MPI sometimes requires different command set for different replica groups
+     * 
+ * + * repeated string command = 5; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (replicas_ != 0) { + output.writeInt32(1, replicas_); + } + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); + } + if (resources_ != null) { + output.writeMessage(3, getResources()); + } + if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { + output.writeEnum(4, restartPolicy_); + } + for (int i = 0; i < command_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, command_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (replicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, replicas_); + } + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResources()); + } + if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, restartPolicy_); + } + { + int dataSize = 0; + for (int i = 0; i < command_.size(); i++) { + dataSize += computeStringSizeNoTag(command_.getRaw(i)); + } + size += dataSize; + size += 1 * getCommandList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec other = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec) obj; + + if (getReplicas() + != other.getReplicas()) return false; + if (!getImage() + .equals(other.getImage())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (restartPolicy_ != other.restartPolicy_) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getReplicas(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER; + hash = (53 * hash) + restartPolicy_; + if (getCommandCount() > 0) { + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommandList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Replica specification for distributed MPI training
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + replicas_ = 0; + + image_ = ""; + + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + restartPolicy_ = 0; + + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec build() { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec buildPartial() { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec result = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.replicas_ = replicas_; + result.image_ = image_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + result.restartPolicy_ = restartPolicy_; + if (((bitField0_ & 0x00000010) != 0)) { + command_ = command_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.command_ = command_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec) { + return mergeFrom((flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec other) { + if (other == flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance()) return this; + if (other.getReplicas() != 0) { + setReplicas(other.getReplicas()); + } + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + if (other.restartPolicy_ != 0) { + setRestartPolicyValue(other.getRestartPolicyValue()); + } + if (!other.command_.isEmpty()) { + if (command_.isEmpty()) { + command_ = other.command_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureCommandIsMutable(); + command_.addAll(other.command_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int replicas_ ; + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public int getReplicas() { + return replicas_; + } + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public Builder setReplicas(int value) { + + replicas_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public Builder clearReplicas() { + + replicas_ = 0; + onChanged(); + return this; + } + + private java.lang.Object image_ = ""; + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private int restartPolicy_ = 0; + /** + *
+       * Restart policy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public int getRestartPolicyValue() { + return restartPolicy_; + } + /** + *
+       * Restart policy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder setRestartPolicyValue(int value) { + restartPolicy_ = value; + onChanged(); + return this; + } + /** + *
+       * Restart policy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; + } + /** + *
+       * Restart policy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder setRestartPolicy(flyteidl.plugins.kubeflow.Common.RestartPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + restartPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Restart policy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder clearRestartPolicy() { + + restartPolicy_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(command_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_.getUnmodifiableView(); + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public Builder addCommand( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public Builder addAllCommand( + java.lang.Iterable values) { + ensureCommandIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); + onChanged(); + return this; + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public Builder clearCommand() { + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * MPI sometimes requires different command set for different replica groups
+       * 
+ * + * repeated string command = 5; + */ + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) + private static final flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec(); + } + + public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedMPITrainingReplicaSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedMPITrainingReplicaSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n#flyteidl/plugins/kubeflow/mpi.proto\022\031f" + + "lyteidl.plugins.kubeflow\032\031flyteidl/core/" + + "tasks.proto\032&flyteidl/plugins/kubeflow/c" + + "ommon.proto\"\225\002\n\032DistributedMPITrainingTa" + + "sk\022U\n\017worker_replicas\030\001 \001(\0132<.flyteidl.p" + + "lugins.kubeflow.DistributedMPITrainingRe" + + "plicaSpec\022W\n\021launcher_replicas\030\002 \001(\0132<.f" + + "lyteidl.plugins.kubeflow.DistributedMPIT" + + "rainingReplicaSpec\0228\n\nrun_policy\030\003 \001(\0132$" + + ".flyteidl.plugins.kubeflow.RunPolicy\022\r\n\005" + + "slots\030\004 \001(\005\"\304\001\n!DistributedMPITrainingRe" + + "plicaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001" + + "(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Re" + + "sources\022@\n\016restart_policy\030\004 \001(\0162(.flytei" + + "dl.plugins.kubeflow.RestartPolicy\022\017\n\007com" + + "mand\030\005 \003(\tB9Z7github.com/flyteorg/flytei" + + "dl/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + flyteidl.plugins.kubeflow.Common.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor, + new java.lang.String[] { "WorkerReplicas", "LauncherReplicas", "RunPolicy", "Slots", }); + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor, + new java.lang.String[] { "Replicas", "Image", "Resources", "RestartPolicy", "Command", }); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.plugins.kubeflow.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Pytorch.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Pytorch.java new file mode 100644 index 0000000000..fa8d3d113b --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Pytorch.java @@ -0,0 +1,3425 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/pytorch.proto + +package flyteidl.plugins.kubeflow; + +public final class Pytorch { + private Pytorch() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ElasticConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.ElasticConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * string rdzv_backend = 1; + */ + java.lang.String getRdzvBackend(); + /** + * string rdzv_backend = 1; + */ + com.google.protobuf.ByteString + getRdzvBackendBytes(); + + /** + * int32 min_replicas = 2; + */ + int getMinReplicas(); + + /** + * int32 max_replicas = 3; + */ + int getMaxReplicas(); + + /** + * int32 nproc_per_node = 4; + */ + int getNprocPerNode(); + + /** + * int32 max_restarts = 5; + */ + int getMaxRestarts(); + } + /** + *
+   * Custom proto for torch elastic config for distributed training using 
+   * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.ElasticConfig} + */ + public static final class ElasticConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.ElasticConfig) + ElasticConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ElasticConfig.newBuilder() to construct. + private ElasticConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ElasticConfig() { + rdzvBackend_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ElasticConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + rdzvBackend_ = s; + break; + } + case 16: { + + minReplicas_ = input.readInt32(); + break; + } + case 24: { + + maxReplicas_ = input.readInt32(); + break; + } + case 32: { + + nprocPerNode_ = input.readInt32(); + break; + } + case 40: { + + maxRestarts_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.class, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder.class); + } + + public static final int RDZV_BACKEND_FIELD_NUMBER = 1; + private volatile java.lang.Object rdzvBackend_; + /** + * string rdzv_backend = 1; + */ + public java.lang.String getRdzvBackend() { + java.lang.Object ref = rdzvBackend_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rdzvBackend_ = s; + return s; + } + } + /** + * string rdzv_backend = 1; + */ + public com.google.protobuf.ByteString + getRdzvBackendBytes() { + java.lang.Object ref = rdzvBackend_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rdzvBackend_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_REPLICAS_FIELD_NUMBER = 2; + private int minReplicas_; + /** + * int32 min_replicas = 2; + */ + public int getMinReplicas() { + return minReplicas_; + } + + public static final int MAX_REPLICAS_FIELD_NUMBER = 3; + private int maxReplicas_; + /** + * int32 max_replicas = 3; + */ + public int getMaxReplicas() { + return maxReplicas_; + } + + public static final int NPROC_PER_NODE_FIELD_NUMBER = 4; + private int nprocPerNode_; + /** + * int32 nproc_per_node = 4; + */ + public int getNprocPerNode() { + return nprocPerNode_; + } + + public static final int MAX_RESTARTS_FIELD_NUMBER = 5; + private int maxRestarts_; + /** + * int32 max_restarts = 5; + */ + public int getMaxRestarts() { + return maxRestarts_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRdzvBackendBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rdzvBackend_); + } + if (minReplicas_ != 0) { + output.writeInt32(2, minReplicas_); + } + if (maxReplicas_ != 0) { + output.writeInt32(3, maxReplicas_); + } + if (nprocPerNode_ != 0) { + output.writeInt32(4, nprocPerNode_); + } + if (maxRestarts_ != 0) { + output.writeInt32(5, maxRestarts_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRdzvBackendBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rdzvBackend_); + } + if (minReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minReplicas_); + } + if (maxReplicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxReplicas_); + } + if (nprocPerNode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, nprocPerNode_); + } + if (maxRestarts_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxRestarts_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Pytorch.ElasticConfig)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig other = (flyteidl.plugins.kubeflow.Pytorch.ElasticConfig) obj; + + if (!getRdzvBackend() + .equals(other.getRdzvBackend())) return false; + if (getMinReplicas() + != other.getMinReplicas()) return false; + if (getMaxReplicas() + != other.getMaxReplicas()) return false; + if (getNprocPerNode() + != other.getNprocPerNode()) return false; + if (getMaxRestarts() + != other.getMaxRestarts()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RDZV_BACKEND_FIELD_NUMBER; + hash = (53 * hash) + getRdzvBackend().hashCode(); + hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getMinReplicas(); + hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getMaxReplicas(); + hash = (37 * hash) + NPROC_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getNprocPerNode(); + hash = (37 * hash) + MAX_RESTARTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxRestarts(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Custom proto for torch elastic config for distributed training using 
+     * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.ElasticConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.ElasticConfig) + flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.class, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + rdzvBackend_ = ""; + + minReplicas_ = 0; + + maxReplicas_ = 0; + + nprocPerNode_ = 0; + + maxRestarts_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig build() { + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig buildPartial() { + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig result = new flyteidl.plugins.kubeflow.Pytorch.ElasticConfig(this); + result.rdzvBackend_ = rdzvBackend_; + result.minReplicas_ = minReplicas_; + result.maxReplicas_ = maxReplicas_; + result.nprocPerNode_ = nprocPerNode_; + result.maxRestarts_ = maxRestarts_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Pytorch.ElasticConfig) { + return mergeFrom((flyteidl.plugins.kubeflow.Pytorch.ElasticConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig other) { + if (other == flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance()) return this; + if (!other.getRdzvBackend().isEmpty()) { + rdzvBackend_ = other.rdzvBackend_; + onChanged(); + } + if (other.getMinReplicas() != 0) { + setMinReplicas(other.getMinReplicas()); + } + if (other.getMaxReplicas() != 0) { + setMaxReplicas(other.getMaxReplicas()); + } + if (other.getNprocPerNode() != 0) { + setNprocPerNode(other.getNprocPerNode()); + } + if (other.getMaxRestarts() != 0) { + setMaxRestarts(other.getMaxRestarts()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Pytorch.ElasticConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object rdzvBackend_ = ""; + /** + * string rdzv_backend = 1; + */ + public java.lang.String getRdzvBackend() { + java.lang.Object ref = rdzvBackend_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rdzvBackend_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string rdzv_backend = 1; + */ + public com.google.protobuf.ByteString + getRdzvBackendBytes() { + java.lang.Object ref = rdzvBackend_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + rdzvBackend_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string rdzv_backend = 1; + */ + public Builder setRdzvBackend( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rdzvBackend_ = value; + onChanged(); + return this; + } + /** + * string rdzv_backend = 1; + */ + public Builder clearRdzvBackend() { + + rdzvBackend_ = getDefaultInstance().getRdzvBackend(); + onChanged(); + return this; + } + /** + * string rdzv_backend = 1; + */ + public Builder setRdzvBackendBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rdzvBackend_ = value; + onChanged(); + return this; + } + + private int minReplicas_ ; + /** + * int32 min_replicas = 2; + */ + public int getMinReplicas() { + return minReplicas_; + } + /** + * int32 min_replicas = 2; + */ + public Builder setMinReplicas(int value) { + + minReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 min_replicas = 2; + */ + public Builder clearMinReplicas() { + + minReplicas_ = 0; + onChanged(); + return this; + } + + private int maxReplicas_ ; + /** + * int32 max_replicas = 3; + */ + public int getMaxReplicas() { + return maxReplicas_; + } + /** + * int32 max_replicas = 3; + */ + public Builder setMaxReplicas(int value) { + + maxReplicas_ = value; + onChanged(); + return this; + } + /** + * int32 max_replicas = 3; + */ + public Builder clearMaxReplicas() { + + maxReplicas_ = 0; + onChanged(); + return this; + } + + private int nprocPerNode_ ; + /** + * int32 nproc_per_node = 4; + */ + public int getNprocPerNode() { + return nprocPerNode_; + } + /** + * int32 nproc_per_node = 4; + */ + public Builder setNprocPerNode(int value) { + + nprocPerNode_ = value; + onChanged(); + return this; + } + /** + * int32 nproc_per_node = 4; + */ + public Builder clearNprocPerNode() { + + nprocPerNode_ = 0; + onChanged(); + return this; + } + + private int maxRestarts_ ; + /** + * int32 max_restarts = 5; + */ + public int getMaxRestarts() { + return maxRestarts_; + } + /** + * int32 max_restarts = 5; + */ + public Builder setMaxRestarts(int value) { + + maxRestarts_ = value; + onChanged(); + return this; + } + /** + * int32 max_restarts = 5; + */ + public Builder clearMaxRestarts() { + + maxRestarts_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.ElasticConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.ElasticConfig) + private static final flyteidl.plugins.kubeflow.Pytorch.ElasticConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Pytorch.ElasticConfig(); + } + + public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ElasticConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ElasticConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributedPyTorchTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + boolean hasWorkerReplicas(); + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getWorkerReplicas(); + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder(); + + /** + *
+     * Master replicas spec, master replicas can only have 1 replica
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + boolean hasMasterReplicas(); + /** + *
+     * Master replicas spec, master replicas can only have 1 replica
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getMasterReplicas(); + /** + *
+     * Master replicas spec, master replicas can only have 1 replica
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getMasterReplicasOrBuilder(); + + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + boolean hasRunPolicy(); + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy(); + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder(); + + /** + *
+     * config for an elastic pytorch job
+     * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + boolean hasElasticConfig(); + /** + *
+     * config for an elastic pytorch job
+     * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getElasticConfig(); + /** + *
+     * config for an elastic pytorch job
+     * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder(); + } + /** + *
+   * Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask} + */ + public static final class DistributedPyTorchTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + DistributedPyTorchTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedPyTorchTrainingTask.newBuilder() to construct. + private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedPyTorchTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedPyTorchTrainingTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder subBuilder = null; + if (workerReplicas_ != null) { + subBuilder = workerReplicas_.toBuilder(); + } + workerReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workerReplicas_); + workerReplicas_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder subBuilder = null; + if (masterReplicas_ != null) { + subBuilder = masterReplicas_.toBuilder(); + } + masterReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(masterReplicas_); + masterReplicas_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.plugins.kubeflow.Common.RunPolicy.Builder subBuilder = null; + if (runPolicy_ != null) { + subBuilder = runPolicy_.toBuilder(); + } + runPolicy_ = input.readMessage(flyteidl.plugins.kubeflow.Common.RunPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runPolicy_); + runPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder subBuilder = null; + if (elasticConfig_ != null) { + subBuilder = elasticConfig_.toBuilder(); + } + elasticConfig_ = input.readMessage(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(elasticConfig_); + elasticConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + public static final int WORKER_REPLICAS_FIELD_NUMBER = 1; + private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec workerReplicas_; + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public boolean hasWorkerReplicas() { + return workerReplicas_ != null; + } + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getWorkerReplicas() { + return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { + return getWorkerReplicas(); + } + + public static final int MASTER_REPLICAS_FIELD_NUMBER = 2; + private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec masterReplicas_; + /** + *
+     * Master replicas spec, master replicas can only have 1 replica
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public boolean hasMasterReplicas() { + return masterReplicas_ != null; + } + /** + *
+     * Master replicas spec, master replicas can only have 1 replica
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getMasterReplicas() { + return masterReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : masterReplicas_; + } + /** + *
+     * Master replicas spec, master replicas can only have 1 replica
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getMasterReplicasOrBuilder() { + return getMasterReplicas(); + } + + public static final int RUN_POLICY_FIELD_NUMBER = 3; + private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public boolean hasRunPolicy() { + return runPolicy_ != null; + } + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { + return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { + return getRunPolicy(); + } + + public static final int ELASTIC_CONFIG_FIELD_NUMBER = 4; + private flyteidl.plugins.kubeflow.Pytorch.ElasticConfig elasticConfig_; + /** + *
+     * config for an elastic pytorch job
+     * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public boolean hasElasticConfig() { + return elasticConfig_ != null; + } + /** + *
+     * config for an elastic pytorch job
+     * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getElasticConfig() { + return elasticConfig_ == null ? flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; + } + /** + *
+     * config for an elastic pytorch job
+     * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { + return getElasticConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workerReplicas_ != null) { + output.writeMessage(1, getWorkerReplicas()); + } + if (masterReplicas_ != null) { + output.writeMessage(2, getMasterReplicas()); + } + if (runPolicy_ != null) { + output.writeMessage(3, getRunPolicy()); + } + if (elasticConfig_ != null) { + output.writeMessage(4, getElasticConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workerReplicas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkerReplicas()); + } + if (masterReplicas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMasterReplicas()); + } + if (runPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRunPolicy()); + } + if (elasticConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getElasticConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask) obj; + + if (hasWorkerReplicas() != other.hasWorkerReplicas()) return false; + if (hasWorkerReplicas()) { + if (!getWorkerReplicas() + .equals(other.getWorkerReplicas())) return false; + } + if (hasMasterReplicas() != other.hasMasterReplicas()) return false; + if (hasMasterReplicas()) { + if (!getMasterReplicas() + .equals(other.getMasterReplicas())) return false; + } + if (hasRunPolicy() != other.hasRunPolicy()) return false; + if (hasRunPolicy()) { + if (!getRunPolicy() + .equals(other.getRunPolicy())) return false; + } + if (hasElasticConfig() != other.hasElasticConfig()) return false; + if (hasElasticConfig()) { + if (!getElasticConfig() + .equals(other.getElasticConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkerReplicas()) { + hash = (37 * hash) + WORKER_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getWorkerReplicas().hashCode(); + } + if (hasMasterReplicas()) { + hash = (37 * hash) + MASTER_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getMasterReplicas().hashCode(); + } + if (hasRunPolicy()) { + hash = (37 * hash) + RUN_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getRunPolicy().hashCode(); + } + if (hasElasticConfig()) { + hash = (37 * hash) + ELASTIC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getElasticConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workerReplicasBuilder_ == null) { + workerReplicas_ = null; + } else { + workerReplicas_ = null; + workerReplicasBuilder_ = null; + } + if (masterReplicasBuilder_ == null) { + masterReplicas_ = null; + } else { + masterReplicas_ = null; + masterReplicasBuilder_ = null; + } + if (runPolicyBuilder_ == null) { + runPolicy_ = null; + } else { + runPolicy_ = null; + runPolicyBuilder_ = null; + } + if (elasticConfigBuilder_ == null) { + elasticConfig_ = null; + } else { + elasticConfig_ = null; + elasticConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask build() { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask buildPartial() { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask(this); + if (workerReplicasBuilder_ == null) { + result.workerReplicas_ = workerReplicas_; + } else { + result.workerReplicas_ = workerReplicasBuilder_.build(); + } + if (masterReplicasBuilder_ == null) { + result.masterReplicas_ = masterReplicas_; + } else { + result.masterReplicas_ = masterReplicasBuilder_.build(); + } + if (runPolicyBuilder_ == null) { + result.runPolicy_ = runPolicy_; + } else { + result.runPolicy_ = runPolicyBuilder_.build(); + } + if (elasticConfigBuilder_ == null) { + result.elasticConfig_ = elasticConfig_; + } else { + result.elasticConfig_ = elasticConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask) { + return mergeFrom((flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask other) { + if (other == flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; + if (other.hasWorkerReplicas()) { + mergeWorkerReplicas(other.getWorkerReplicas()); + } + if (other.hasMasterReplicas()) { + mergeMasterReplicas(other.getMasterReplicas()); + } + if (other.hasRunPolicy()) { + mergeRunPolicy(other.getRunPolicy()); + } + if (other.hasElasticConfig()) { + mergeElasticConfig(other.getElasticConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec workerReplicas_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> workerReplicasBuilder_; + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public boolean hasWorkerReplicas() { + return workerReplicasBuilder_ != null || workerReplicas_ != null; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getWorkerReplicas() { + if (workerReplicasBuilder_ == null) { + return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } else { + return workerReplicasBuilder_.getMessage(); + } + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public Builder setWorkerReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { + if (workerReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workerReplicas_ = value; + onChanged(); + } else { + workerReplicasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public Builder setWorkerReplicas( + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder builderForValue) { + if (workerReplicasBuilder_ == null) { + workerReplicas_ = builderForValue.build(); + onChanged(); + } else { + workerReplicasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public Builder mergeWorkerReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { + if (workerReplicasBuilder_ == null) { + if (workerReplicas_ != null) { + workerReplicas_ = + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.newBuilder(workerReplicas_).mergeFrom(value).buildPartial(); + } else { + workerReplicas_ = value; + } + onChanged(); + } else { + workerReplicasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public Builder clearWorkerReplicas() { + if (workerReplicasBuilder_ == null) { + workerReplicas_ = null; + onChanged(); + } else { + workerReplicas_ = null; + workerReplicasBuilder_ = null; + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder getWorkerReplicasBuilder() { + + onChanged(); + return getWorkerReplicasFieldBuilder().getBuilder(); + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { + if (workerReplicasBuilder_ != null) { + return workerReplicasBuilder_.getMessageOrBuilder(); + } else { + return workerReplicas_ == null ? + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> + getWorkerReplicasFieldBuilder() { + if (workerReplicasBuilder_ == null) { + workerReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder>( + getWorkerReplicas(), + getParentForChildren(), + isClean()); + workerReplicas_ = null; + } + return workerReplicasBuilder_; + } + + private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec masterReplicas_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> masterReplicasBuilder_; + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public boolean hasMasterReplicas() { + return masterReplicasBuilder_ != null || masterReplicas_ != null; + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getMasterReplicas() { + if (masterReplicasBuilder_ == null) { + return masterReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : masterReplicas_; + } else { + return masterReplicasBuilder_.getMessage(); + } + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public Builder setMasterReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { + if (masterReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterReplicas_ = value; + onChanged(); + } else { + masterReplicasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public Builder setMasterReplicas( + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder builderForValue) { + if (masterReplicasBuilder_ == null) { + masterReplicas_ = builderForValue.build(); + onChanged(); + } else { + masterReplicasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public Builder mergeMasterReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { + if (masterReplicasBuilder_ == null) { + if (masterReplicas_ != null) { + masterReplicas_ = + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.newBuilder(masterReplicas_).mergeFrom(value).buildPartial(); + } else { + masterReplicas_ = value; + } + onChanged(); + } else { + masterReplicasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public Builder clearMasterReplicas() { + if (masterReplicasBuilder_ == null) { + masterReplicas_ = null; + onChanged(); + } else { + masterReplicas_ = null; + masterReplicasBuilder_ = null; + } + + return this; + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder getMasterReplicasBuilder() { + + onChanged(); + return getMasterReplicasFieldBuilder().getBuilder(); + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getMasterReplicasOrBuilder() { + if (masterReplicasBuilder_ != null) { + return masterReplicasBuilder_.getMessageOrBuilder(); + } else { + return masterReplicas_ == null ? + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : masterReplicas_; + } + } + /** + *
+       * Master replicas spec, master replicas can only have 1 replica
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> + getMasterReplicasFieldBuilder() { + if (masterReplicasBuilder_ == null) { + masterReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder>( + getMasterReplicas(), + getParentForChildren(), + isClean()); + masterReplicas_ = null; + } + return masterReplicasBuilder_; + } + + private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> runPolicyBuilder_; + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public boolean hasRunPolicy() { + return runPolicyBuilder_ != null || runPolicy_ != null; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { + if (runPolicyBuilder_ == null) { + return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } else { + return runPolicyBuilder_.getMessage(); + } + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder setRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { + if (runPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runPolicy_ = value; + onChanged(); + } else { + runPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder setRunPolicy( + flyteidl.plugins.kubeflow.Common.RunPolicy.Builder builderForValue) { + if (runPolicyBuilder_ == null) { + runPolicy_ = builderForValue.build(); + onChanged(); + } else { + runPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder mergeRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { + if (runPolicyBuilder_ == null) { + if (runPolicy_ != null) { + runPolicy_ = + flyteidl.plugins.kubeflow.Common.RunPolicy.newBuilder(runPolicy_).mergeFrom(value).buildPartial(); + } else { + runPolicy_ = value; + } + onChanged(); + } else { + runPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public Builder clearRunPolicy() { + if (runPolicyBuilder_ == null) { + runPolicy_ = null; + onChanged(); + } else { + runPolicy_ = null; + runPolicyBuilder_ = null; + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy.Builder getRunPolicyBuilder() { + + onChanged(); + return getRunPolicyFieldBuilder().getBuilder(); + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { + if (runPolicyBuilder_ != null) { + return runPolicyBuilder_.getMessageOrBuilder(); + } else { + return runPolicy_ == null ? + flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> + getRunPolicyFieldBuilder() { + if (runPolicyBuilder_ == null) { + runPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder>( + getRunPolicy(), + getParentForChildren(), + isClean()); + runPolicy_ = null; + } + return runPolicyBuilder_; + } + + private flyteidl.plugins.kubeflow.Pytorch.ElasticConfig elasticConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder, flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder> elasticConfigBuilder_; + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public boolean hasElasticConfig() { + return elasticConfigBuilder_ != null || elasticConfig_ != null; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getElasticConfig() { + if (elasticConfigBuilder_ == null) { + return elasticConfig_ == null ? flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; + } else { + return elasticConfigBuilder_.getMessage(); + } + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public Builder setElasticConfig(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig value) { + if (elasticConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + elasticConfig_ = value; + onChanged(); + } else { + elasticConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public Builder setElasticConfig( + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder builderForValue) { + if (elasticConfigBuilder_ == null) { + elasticConfig_ = builderForValue.build(); + onChanged(); + } else { + elasticConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public Builder mergeElasticConfig(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig value) { + if (elasticConfigBuilder_ == null) { + if (elasticConfig_ != null) { + elasticConfig_ = + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.newBuilder(elasticConfig_).mergeFrom(value).buildPartial(); + } else { + elasticConfig_ = value; + } + onChanged(); + } else { + elasticConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public Builder clearElasticConfig() { + if (elasticConfigBuilder_ == null) { + elasticConfig_ = null; + onChanged(); + } else { + elasticConfig_ = null; + elasticConfigBuilder_ = null; + } + + return this; + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder getElasticConfigBuilder() { + + onChanged(); + return getElasticConfigFieldBuilder().getBuilder(); + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + public flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { + if (elasticConfigBuilder_ != null) { + return elasticConfigBuilder_.getMessageOrBuilder(); + } else { + return elasticConfig_ == null ? + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; + } + } + /** + *
+       * config for an elastic pytorch job
+       * 
+ * + * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder, flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder> + getElasticConfigFieldBuilder() { + if (elasticConfigBuilder_ == null) { + elasticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Pytorch.ElasticConfig, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder, flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder>( + getElasticConfig(), + getParentForChildren(), + isClean()); + elasticConfig_ = null; + } + return elasticConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) + private static final flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask(); + } + + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedPyTorchTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedPyTorchTrainingTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributedPyTorchTrainingReplicaSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of replicas
+     * 
+ * + * int32 replicas = 1; + */ + int getReplicas(); + + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + java.lang.String getImage(); + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + boolean hasResources(); + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + + /** + *
+     * RestartPolicy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + int getRestartPolicyValue(); + /** + *
+     * RestartPolicy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy(); + } + /** + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec} + */ + public static final class DistributedPyTorchTrainingReplicaSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + DistributedPyTorchTrainingReplicaSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedPyTorchTrainingReplicaSpec.newBuilder() to construct. + private DistributedPyTorchTrainingReplicaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedPyTorchTrainingReplicaSpec() { + image_ = ""; + restartPolicy_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedPyTorchTrainingReplicaSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + replicas_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + restartPolicy_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder.class); + } + + public static final int REPLICAS_FIELD_NUMBER = 1; + private int replicas_; + /** + *
+     * Number of replicas
+     * 
+ * + * int32 replicas = 1; + */ + public int getReplicas() { + return replicas_; + } + + public static final int IMAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object image_; + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } + } + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + public static final int RESTART_POLICY_FIELD_NUMBER = 4; + private int restartPolicy_; + /** + *
+     * RestartPolicy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public int getRestartPolicyValue() { + return restartPolicy_; + } + /** + *
+     * RestartPolicy determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (replicas_ != 0) { + output.writeInt32(1, replicas_); + } + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); + } + if (resources_ != null) { + output.writeMessage(3, getResources()); + } + if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { + output.writeEnum(4, restartPolicy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (replicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, replicas_); + } + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResources()); + } + if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, restartPolicy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec other = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec) obj; + + if (getReplicas() + != other.getReplicas()) return false; + if (!getImage() + .equals(other.getImage())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (restartPolicy_ != other.restartPolicy_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getReplicas(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER; + hash = (53 * hash) + restartPolicy_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + replicas_ = 0; + + image_ = ""; + + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + restartPolicy_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec build() { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec buildPartial() { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec result = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec(this); + result.replicas_ = replicas_; + result.image_ = image_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + result.restartPolicy_ = restartPolicy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec) { + return mergeFrom((flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec other) { + if (other == flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance()) return this; + if (other.getReplicas() != 0) { + setReplicas(other.getReplicas()); + } + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + if (other.restartPolicy_ != 0) { + setRestartPolicyValue(other.getRestartPolicyValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int replicas_ ; + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public int getReplicas() { + return replicas_; + } + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public Builder setReplicas(int value) { + + replicas_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public Builder clearReplicas() { + + replicas_ = 0; + onChanged(); + return this; + } + + private java.lang.Object image_ = ""; + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private int restartPolicy_ = 0; + /** + *
+       * RestartPolicy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public int getRestartPolicyValue() { + return restartPolicy_; + } + /** + *
+       * RestartPolicy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder setRestartPolicyValue(int value) { + restartPolicy_ = value; + onChanged(); + return this; + } + /** + *
+       * RestartPolicy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; + } + /** + *
+       * RestartPolicy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder setRestartPolicy(flyteidl.plugins.kubeflow.Common.RestartPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + restartPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * RestartPolicy determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder clearRestartPolicy() { + + restartPolicy_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) + private static final flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec(); + } + + public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedPyTorchTrainingReplicaSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedPyTorchTrainingReplicaSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'flyteidl/plugins/kubeflow/pytorch.prot" + + "o\022\031flyteidl.plugins.kubeflow\032\031flyteidl/c" + + "ore/tasks.proto\032&flyteidl/plugins/kubefl" + + "ow/common.proto\"\177\n\rElasticConfig\022\024\n\014rdzv" + + "_backend\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014" + + "max_replicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001" + + "(\005\022\024\n\014max_restarts\030\005 \001(\005\"\322\002\n\036Distributed" + + "PyTorchTrainingTask\022Y\n\017worker_replicas\030\001" + + " \001(\0132@.flyteidl.plugins.kubeflow.Distrib" + + "utedPyTorchTrainingReplicaSpec\022Y\n\017master" + + "_replicas\030\002 \001(\0132@.flyteidl.plugins.kubef" + + "low.DistributedPyTorchTrainingReplicaSpe" + + "c\0228\n\nrun_policy\030\003 \001(\0132$.flyteidl.plugins" + + ".kubeflow.RunPolicy\022@\n\016elastic_config\030\004 " + + "\001(\0132(.flyteidl.plugins.kubeflow.ElasticC" + + "onfig\"\267\001\n%DistributedPyTorchTrainingRepl" + + "icaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001(\t" + + "\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Reso" + + "urces\022@\n\016restart_policy\030\004 \001(\0162(.flyteidl" + + ".plugins.kubeflow.RestartPolicyB9Z7githu" + + "b.com/flyteorg/flyteidl/gen/pb-go/flytei" + + "dl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + flyteidl.plugins.kubeflow.Common.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor, + new java.lang.String[] { "RdzvBackend", "MinReplicas", "MaxReplicas", "NprocPerNode", "MaxRestarts", }); + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor, + new java.lang.String[] { "WorkerReplicas", "MasterReplicas", "RunPolicy", "ElasticConfig", }); + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor, + new java.lang.String[] { "Replicas", "Image", "Resources", "RestartPolicy", }); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.plugins.kubeflow.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Tensorflow.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Tensorflow.java new file mode 100644 index 0000000000..3e9c0a5cfc --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Tensorflow.java @@ -0,0 +1,2605 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/kubeflow/tensorflow.proto + +package flyteidl.plugins.kubeflow; + +public final class Tensorflow { + private Tensorflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DistributedTensorflowTrainingTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + boolean hasWorkerReplicas(); + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getWorkerReplicas(); + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder(); + + /** + *
+     * Parameter server replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + boolean hasPsReplicas(); + /** + *
+     * Parameter server replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getPsReplicas(); + /** + *
+     * Parameter server replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getPsReplicasOrBuilder(); + + /** + *
+     * Chief replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + boolean hasChiefReplicas(); + /** + *
+     * Chief replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getChiefReplicas(); + /** + *
+     * Chief replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getChiefReplicasOrBuilder(); + + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + boolean hasRunPolicy(); + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy(); + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder(); + } + /** + *
+   * Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask} + */ + public static final class DistributedTensorflowTrainingTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + DistributedTensorflowTrainingTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedTensorflowTrainingTask.newBuilder() to construct. + private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedTensorflowTrainingTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedTensorflowTrainingTask( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder subBuilder = null; + if (workerReplicas_ != null) { + subBuilder = workerReplicas_.toBuilder(); + } + workerReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workerReplicas_); + workerReplicas_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder subBuilder = null; + if (psReplicas_ != null) { + subBuilder = psReplicas_.toBuilder(); + } + psReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(psReplicas_); + psReplicas_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder subBuilder = null; + if (chiefReplicas_ != null) { + subBuilder = chiefReplicas_.toBuilder(); + } + chiefReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(chiefReplicas_); + chiefReplicas_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.plugins.kubeflow.Common.RunPolicy.Builder subBuilder = null; + if (runPolicy_ != null) { + subBuilder = runPolicy_.toBuilder(); + } + runPolicy_ = input.readMessage(flyteidl.plugins.kubeflow.Common.RunPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runPolicy_); + runPolicy_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + public static final int WORKER_REPLICAS_FIELD_NUMBER = 1; + private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec workerReplicas_; + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public boolean hasWorkerReplicas() { + return workerReplicas_ != null; + } + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getWorkerReplicas() { + return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } + /** + *
+     * Worker replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { + return getWorkerReplicas(); + } + + public static final int PS_REPLICAS_FIELD_NUMBER = 2; + private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec psReplicas_; + /** + *
+     * Parameter server replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public boolean hasPsReplicas() { + return psReplicas_ != null; + } + /** + *
+     * Parameter server replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getPsReplicas() { + return psReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : psReplicas_; + } + /** + *
+     * Parameter server replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getPsReplicasOrBuilder() { + return getPsReplicas(); + } + + public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; + private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec chiefReplicas_; + /** + *
+     * Chief replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public boolean hasChiefReplicas() { + return chiefReplicas_ != null; + } + /** + *
+     * Chief replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getChiefReplicas() { + return chiefReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : chiefReplicas_; + } + /** + *
+     * Chief replicas spec
+     * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getChiefReplicasOrBuilder() { + return getChiefReplicas(); + } + + public static final int RUN_POLICY_FIELD_NUMBER = 4; + private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public boolean hasRunPolicy() { + return runPolicy_ != null; + } + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { + return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } + /** + *
+     * RunPolicy encapsulates various runtime policies of the distributed training
+     * job, for example how to clean up resources and how long the job can stay
+     * active.
+     * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { + return getRunPolicy(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workerReplicas_ != null) { + output.writeMessage(1, getWorkerReplicas()); + } + if (psReplicas_ != null) { + output.writeMessage(2, getPsReplicas()); + } + if (chiefReplicas_ != null) { + output.writeMessage(3, getChiefReplicas()); + } + if (runPolicy_ != null) { + output.writeMessage(4, getRunPolicy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workerReplicas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkerReplicas()); + } + if (psReplicas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPsReplicas()); + } + if (chiefReplicas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getChiefReplicas()); + } + if (runPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRunPolicy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask) obj; + + if (hasWorkerReplicas() != other.hasWorkerReplicas()) return false; + if (hasWorkerReplicas()) { + if (!getWorkerReplicas() + .equals(other.getWorkerReplicas())) return false; + } + if (hasPsReplicas() != other.hasPsReplicas()) return false; + if (hasPsReplicas()) { + if (!getPsReplicas() + .equals(other.getPsReplicas())) return false; + } + if (hasChiefReplicas() != other.hasChiefReplicas()) return false; + if (hasChiefReplicas()) { + if (!getChiefReplicas() + .equals(other.getChiefReplicas())) return false; + } + if (hasRunPolicy() != other.hasRunPolicy()) return false; + if (hasRunPolicy()) { + if (!getRunPolicy() + .equals(other.getRunPolicy())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkerReplicas()) { + hash = (37 * hash) + WORKER_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getWorkerReplicas().hashCode(); + } + if (hasPsReplicas()) { + hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getPsReplicas().hashCode(); + } + if (hasChiefReplicas()) { + hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getChiefReplicas().hashCode(); + } + if (hasRunPolicy()) { + hash = (37 * hash) + RUN_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getRunPolicy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (workerReplicasBuilder_ == null) { + workerReplicas_ = null; + } else { + workerReplicas_ = null; + workerReplicasBuilder_ = null; + } + if (psReplicasBuilder_ == null) { + psReplicas_ = null; + } else { + psReplicas_ = null; + psReplicasBuilder_ = null; + } + if (chiefReplicasBuilder_ == null) { + chiefReplicas_ = null; + } else { + chiefReplicas_ = null; + chiefReplicasBuilder_ = null; + } + if (runPolicyBuilder_ == null) { + runPolicy_ = null; + } else { + runPolicy_ = null; + runPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask build() { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask(this); + if (workerReplicasBuilder_ == null) { + result.workerReplicas_ = workerReplicas_; + } else { + result.workerReplicas_ = workerReplicasBuilder_.build(); + } + if (psReplicasBuilder_ == null) { + result.psReplicas_ = psReplicas_; + } else { + result.psReplicas_ = psReplicasBuilder_.build(); + } + if (chiefReplicasBuilder_ == null) { + result.chiefReplicas_ = chiefReplicas_; + } else { + result.chiefReplicas_ = chiefReplicasBuilder_.build(); + } + if (runPolicyBuilder_ == null) { + result.runPolicy_ = runPolicy_; + } else { + result.runPolicy_ = runPolicyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask) { + return mergeFrom((flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask other) { + if (other == flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; + if (other.hasWorkerReplicas()) { + mergeWorkerReplicas(other.getWorkerReplicas()); + } + if (other.hasPsReplicas()) { + mergePsReplicas(other.getPsReplicas()); + } + if (other.hasChiefReplicas()) { + mergeChiefReplicas(other.getChiefReplicas()); + } + if (other.hasRunPolicy()) { + mergeRunPolicy(other.getRunPolicy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec workerReplicas_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> workerReplicasBuilder_; + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public boolean hasWorkerReplicas() { + return workerReplicasBuilder_ != null || workerReplicas_ != null; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getWorkerReplicas() { + if (workerReplicasBuilder_ == null) { + return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } else { + return workerReplicasBuilder_.getMessage(); + } + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public Builder setWorkerReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { + if (workerReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workerReplicas_ = value; + onChanged(); + } else { + workerReplicasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public Builder setWorkerReplicas( + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder builderForValue) { + if (workerReplicasBuilder_ == null) { + workerReplicas_ = builderForValue.build(); + onChanged(); + } else { + workerReplicasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public Builder mergeWorkerReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { + if (workerReplicasBuilder_ == null) { + if (workerReplicas_ != null) { + workerReplicas_ = + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder(workerReplicas_).mergeFrom(value).buildPartial(); + } else { + workerReplicas_ = value; + } + onChanged(); + } else { + workerReplicasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public Builder clearWorkerReplicas() { + if (workerReplicasBuilder_ == null) { + workerReplicas_ = null; + onChanged(); + } else { + workerReplicas_ = null; + workerReplicasBuilder_ = null; + } + + return this; + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder getWorkerReplicasBuilder() { + + onChanged(); + return getWorkerReplicasFieldBuilder().getBuilder(); + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { + if (workerReplicasBuilder_ != null) { + return workerReplicasBuilder_.getMessageOrBuilder(); + } else { + return workerReplicas_ == null ? + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; + } + } + /** + *
+       * Worker replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> + getWorkerReplicasFieldBuilder() { + if (workerReplicasBuilder_ == null) { + workerReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder>( + getWorkerReplicas(), + getParentForChildren(), + isClean()); + workerReplicas_ = null; + } + return workerReplicasBuilder_; + } + + private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec psReplicas_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> psReplicasBuilder_; + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public boolean hasPsReplicas() { + return psReplicasBuilder_ != null || psReplicas_ != null; + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getPsReplicas() { + if (psReplicasBuilder_ == null) { + return psReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : psReplicas_; + } else { + return psReplicasBuilder_.getMessage(); + } + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public Builder setPsReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { + if (psReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + psReplicas_ = value; + onChanged(); + } else { + psReplicasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public Builder setPsReplicas( + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder builderForValue) { + if (psReplicasBuilder_ == null) { + psReplicas_ = builderForValue.build(); + onChanged(); + } else { + psReplicasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public Builder mergePsReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { + if (psReplicasBuilder_ == null) { + if (psReplicas_ != null) { + psReplicas_ = + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder(psReplicas_).mergeFrom(value).buildPartial(); + } else { + psReplicas_ = value; + } + onChanged(); + } else { + psReplicasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public Builder clearPsReplicas() { + if (psReplicasBuilder_ == null) { + psReplicas_ = null; + onChanged(); + } else { + psReplicas_ = null; + psReplicasBuilder_ = null; + } + + return this; + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder getPsReplicasBuilder() { + + onChanged(); + return getPsReplicasFieldBuilder().getBuilder(); + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getPsReplicasOrBuilder() { + if (psReplicasBuilder_ != null) { + return psReplicasBuilder_.getMessageOrBuilder(); + } else { + return psReplicas_ == null ? + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : psReplicas_; + } + } + /** + *
+       * Parameter server replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> + getPsReplicasFieldBuilder() { + if (psReplicasBuilder_ == null) { + psReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder>( + getPsReplicas(), + getParentForChildren(), + isClean()); + psReplicas_ = null; + } + return psReplicasBuilder_; + } + + private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec chiefReplicas_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> chiefReplicasBuilder_; + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public boolean hasChiefReplicas() { + return chiefReplicasBuilder_ != null || chiefReplicas_ != null; + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getChiefReplicas() { + if (chiefReplicasBuilder_ == null) { + return chiefReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : chiefReplicas_; + } else { + return chiefReplicasBuilder_.getMessage(); + } + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public Builder setChiefReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { + if (chiefReplicasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chiefReplicas_ = value; + onChanged(); + } else { + chiefReplicasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public Builder setChiefReplicas( + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder builderForValue) { + if (chiefReplicasBuilder_ == null) { + chiefReplicas_ = builderForValue.build(); + onChanged(); + } else { + chiefReplicasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public Builder mergeChiefReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { + if (chiefReplicasBuilder_ == null) { + if (chiefReplicas_ != null) { + chiefReplicas_ = + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder(chiefReplicas_).mergeFrom(value).buildPartial(); + } else { + chiefReplicas_ = value; + } + onChanged(); + } else { + chiefReplicasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public Builder clearChiefReplicas() { + if (chiefReplicasBuilder_ == null) { + chiefReplicas_ = null; + onChanged(); + } else { + chiefReplicas_ = null; + chiefReplicasBuilder_ = null; + } + + return this; + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder getChiefReplicasBuilder() { + + onChanged(); + return getChiefReplicasFieldBuilder().getBuilder(); + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getChiefReplicasOrBuilder() { + if (chiefReplicasBuilder_ != null) { + return chiefReplicasBuilder_.getMessageOrBuilder(); + } else { + return chiefReplicas_ == null ? + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : chiefReplicas_; + } + } + /** + *
+       * Chief replicas spec
+       * 
+ * + * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> + getChiefReplicasFieldBuilder() { + if (chiefReplicasBuilder_ == null) { + chiefReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder>( + getChiefReplicas(), + getParentForChildren(), + isClean()); + chiefReplicas_ = null; + } + return chiefReplicasBuilder_; + } + + private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> runPolicyBuilder_; + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public boolean hasRunPolicy() { + return runPolicyBuilder_ != null || runPolicy_ != null; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { + if (runPolicyBuilder_ == null) { + return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } else { + return runPolicyBuilder_.getMessage(); + } + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public Builder setRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { + if (runPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runPolicy_ = value; + onChanged(); + } else { + runPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public Builder setRunPolicy( + flyteidl.plugins.kubeflow.Common.RunPolicy.Builder builderForValue) { + if (runPolicyBuilder_ == null) { + runPolicy_ = builderForValue.build(); + onChanged(); + } else { + runPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public Builder mergeRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { + if (runPolicyBuilder_ == null) { + if (runPolicy_ != null) { + runPolicy_ = + flyteidl.plugins.kubeflow.Common.RunPolicy.newBuilder(runPolicy_).mergeFrom(value).buildPartial(); + } else { + runPolicy_ = value; + } + onChanged(); + } else { + runPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public Builder clearRunPolicy() { + if (runPolicyBuilder_ == null) { + runPolicy_ = null; + onChanged(); + } else { + runPolicy_ = null; + runPolicyBuilder_ = null; + } + + return this; + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicy.Builder getRunPolicyBuilder() { + + onChanged(); + return getRunPolicyFieldBuilder().getBuilder(); + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { + if (runPolicyBuilder_ != null) { + return runPolicyBuilder_.getMessageOrBuilder(); + } else { + return runPolicy_ == null ? + flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; + } + } + /** + *
+       * RunPolicy encapsulates various runtime policies of the distributed training
+       * job, for example how to clean up resources and how long the job can stay
+       * active.
+       * 
+ * + * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> + getRunPolicyFieldBuilder() { + if (runPolicyBuilder_ == null) { + runPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder>( + getRunPolicy(), + getParentForChildren(), + isClean()); + runPolicy_ = null; + } + return runPolicyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) + private static final flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask(); + } + + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedTensorflowTrainingTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedTensorflowTrainingTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributedTensorflowTrainingReplicaSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of replicas
+     * 
+ * + * int32 replicas = 1; + */ + int getReplicas(); + + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + java.lang.String getImage(); + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + boolean hasResources(); + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + + /** + *
+     * RestartPolicy Determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + int getRestartPolicyValue(); + /** + *
+     * RestartPolicy Determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy(); + } + /** + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec} + */ + public static final class DistributedTensorflowTrainingReplicaSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + DistributedTensorflowTrainingReplicaSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedTensorflowTrainingReplicaSpec.newBuilder() to construct. + private DistributedTensorflowTrainingReplicaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedTensorflowTrainingReplicaSpec() { + image_ = ""; + restartPolicy_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedTensorflowTrainingReplicaSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + replicas_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + restartPolicy_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder.class); + } + + public static final int REPLICAS_FIELD_NUMBER = 1; + private int replicas_; + /** + *
+     * Number of replicas
+     * 
+ * + * int32 replicas = 1; + */ + public int getReplicas() { + return replicas_; + } + + public static final int IMAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object image_; + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } + } + /** + *
+     * Image used for the replica group
+     * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Resources required for the replica group
+     * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + public static final int RESTART_POLICY_FIELD_NUMBER = 4; + private int restartPolicy_; + /** + *
+     * RestartPolicy Determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public int getRestartPolicyValue() { + return restartPolicy_; + } + /** + *
+     * RestartPolicy Determines whether pods will be restarted when they exit
+     * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (replicas_ != 0) { + output.writeInt32(1, replicas_); + } + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); + } + if (resources_ != null) { + output.writeMessage(3, getResources()); + } + if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { + output.writeEnum(4, restartPolicy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (replicas_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, replicas_); + } + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResources()); + } + if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, restartPolicy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec)) { + return super.equals(obj); + } + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec other = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec) obj; + + if (getReplicas() + != other.getReplicas()) return false; + if (!getImage() + .equals(other.getImage())) return false; + if (hasResources() != other.hasResources()) return false; + if (hasResources()) { + if (!getResources() + .equals(other.getResources())) return false; + } + if (restartPolicy_ != other.restartPolicy_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPLICAS_FIELD_NUMBER; + hash = (53 * hash) + getReplicas(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER; + hash = (53 * hash) + restartPolicy_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder.class); + } + + // Construct using flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + replicas_ = 0; + + image_ = ""; + + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + restartPolicy_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getDefaultInstanceForType() { + return flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec build() { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec buildPartial() { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec result = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec(this); + result.replicas_ = replicas_; + result.image_ = image_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + result.restartPolicy_ = restartPolicy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec) { + return mergeFrom((flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec other) { + if (other == flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance()) return this; + if (other.getReplicas() != 0) { + setReplicas(other.getReplicas()); + } + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + if (other.restartPolicy_ != 0) { + setRestartPolicyValue(other.getRestartPolicyValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int replicas_ ; + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public int getReplicas() { + return replicas_; + } + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public Builder setReplicas(int value) { + + replicas_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of replicas
+       * 
+ * + * int32 replicas = 1; + */ + public Builder clearReplicas() { + + replicas_ = 0; + onChanged(); + return this; + } + + private java.lang.Object image_ = ""; + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Image used for the replica group
+       * 
+ * + * string image = 2; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Resources required for the replica group
+       * 
+ * + * .flyteidl.core.Resources resources = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private int restartPolicy_ = 0; + /** + *
+       * RestartPolicy Determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public int getRestartPolicyValue() { + return restartPolicy_; + } + /** + *
+       * RestartPolicy Determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder setRestartPolicyValue(int value) { + restartPolicy_ = value; + onChanged(); + return this; + } + /** + *
+       * RestartPolicy Determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); + return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; + } + /** + *
+       * RestartPolicy Determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder setRestartPolicy(flyteidl.plugins.kubeflow.Common.RestartPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + + restartPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * RestartPolicy Determines whether pods will be restarted when they exit
+       * 
+ * + * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + public Builder clearRestartPolicy() { + + restartPolicy_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) + private static final flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec(); + } + + public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedTensorflowTrainingReplicaSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedTensorflowTrainingReplicaSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*flyteidl/plugins/kubeflow/tensorflow.p" + + "roto\022\031flyteidl.plugins.kubeflow\032\031flyteid" + + "l/core/tasks.proto\032&flyteidl/plugins/kub" + + "eflow/common.proto\"\362\002\n!DistributedTensor" + + "flowTrainingTask\022\\\n\017worker_replicas\030\001 \001(" + + "\0132C.flyteidl.plugins.kubeflow.Distribute" + + "dTensorflowTrainingReplicaSpec\022X\n\013ps_rep" + + "licas\030\002 \001(\0132C.flyteidl.plugins.kubeflow." + + "DistributedTensorflowTrainingReplicaSpec" + + "\022[\n\016chief_replicas\030\003 \001(\0132C.flyteidl.plug" + + "ins.kubeflow.DistributedTensorflowTraini" + + "ngReplicaSpec\0228\n\nrun_policy\030\004 \001(\0132$.flyt" + + "eidl.plugins.kubeflow.RunPolicy\"\272\001\n(Dist" + + "ributedTensorflowTrainingReplicaSpec\022\020\n\010" + + "replicas\030\001 \001(\005\022\r\n\005image\030\002 \001(\t\022+\n\tresourc" + + "es\030\003 \001(\0132\030.flyteidl.core.Resources\022@\n\016re" + + "start_policy\030\004 \001(\0162(.flyteidl.plugins.ku" + + "beflow.RestartPolicyB9Z7github.com/flyte" + + "org/flyteidl/gen/pb-go/flyteidl/pluginsb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + flyteidl.plugins.kubeflow.Common.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor, + new java.lang.String[] { "WorkerReplicas", "PsReplicas", "ChiefReplicas", "RunPolicy", }); + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor, + new java.lang.String[] { "Replicas", "Image", "Resources", "RestartPolicy", }); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.plugins.kubeflow.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java new file mode 100644 index 0000000000..4c30a86145 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/HyperparameterTuningJobOuterClass.java @@ -0,0 +1,4496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto + +package flyteidl.plugins.sagemaker; + +public final class HyperparameterTuningJobOuterClass { + private HyperparameterTuningJobOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HyperparameterTuningJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + boolean hasTrainingJob(); + /** + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob(); + /** + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder(); + + /** + *
+     * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+     * 
+ * + * int64 max_number_of_training_jobs = 2; + */ + long getMaxNumberOfTrainingJobs(); + + /** + *
+     * The maximum number of concurrent training job that an hpo job can launch
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+     * 
+ * + * int64 max_parallel_training_jobs = 3; + */ + long getMaxParallelTrainingJobs(); + } + /** + *
+   * A pass-through for SageMaker's hyperparameter tuning job
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJob} + */ + public static final class HyperparameterTuningJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + HyperparameterTuningJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningJob.newBuilder() to construct. + private HyperparameterTuningJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder subBuilder = null; + if (trainingJob_ != null) { + subBuilder = trainingJob_.toBuilder(); + } + trainingJob_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJob_); + trainingJob_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + maxNumberOfTrainingJobs_ = input.readInt64(); + break; + } + case 24: { + + maxParallelTrainingJobs_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.Builder.class); + } + + public static final int TRAINING_JOB_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + /** + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public boolean hasTrainingJob() { + return trainingJob_ != null; + } + /** + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } + /** + *
+     * The underlying training job that the hyperparameter tuning job will launch during the process
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + return getTrainingJob(); + } + + public static final int MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER = 2; + private long maxNumberOfTrainingJobs_; + /** + *
+     * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+     * 
+ * + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + + public static final int MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER = 3; + private long maxParallelTrainingJobs_; + /** + *
+     * The maximum number of concurrent training job that an hpo job can launch
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+     * 
+ * + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (trainingJob_ != null) { + output.writeMessage(1, getTrainingJob()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + output.writeInt64(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + output.writeInt64(3, maxParallelTrainingJobs_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trainingJob_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTrainingJob()); + } + if (maxNumberOfTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxNumberOfTrainingJobs_); + } + if (maxParallelTrainingJobs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxParallelTrainingJobs_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob) obj; + + if (hasTrainingJob() != other.hasTrainingJob()) return false; + if (hasTrainingJob()) { + if (!getTrainingJob() + .equals(other.getTrainingJob())) return false; + } + if (getMaxNumberOfTrainingJobs() + != other.getMaxNumberOfTrainingJobs()) return false; + if (getMaxParallelTrainingJobs() + != other.getMaxParallelTrainingJobs()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrainingJob()) { + hash = (37 * hash) + TRAINING_JOB_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJob().hashCode(); + } + hash = (37 * hash) + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxNumberOfTrainingJobs()); + hash = (37 * hash) + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxParallelTrainingJobs()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A pass-through for SageMaker's hyperparameter tuning job
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + maxNumberOfTrainingJobs_ = 0L; + + maxParallelTrainingJobs_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob(this); + if (trainingJobBuilder_ == null) { + result.trainingJob_ = trainingJob_; + } else { + result.trainingJob_ = trainingJobBuilder_.build(); + } + result.maxNumberOfTrainingJobs_ = maxNumberOfTrainingJobs_; + result.maxParallelTrainingJobs_ = maxParallelTrainingJobs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob.getDefaultInstance()) return this; + if (other.hasTrainingJob()) { + mergeTrainingJob(other.getTrainingJob()); + } + if (other.getMaxNumberOfTrainingJobs() != 0L) { + setMaxNumberOfTrainingJobs(other.getMaxNumberOfTrainingJobs()); + } + if (other.getMaxParallelTrainingJobs() != 0L) { + setMaxParallelTrainingJobs(other.getMaxParallelTrainingJobs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob trainingJob_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> trainingJobBuilder_; + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public boolean hasTrainingJob() { + return trainingJobBuilder_ != null || trainingJob_ != null; + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getTrainingJob() { + if (trainingJobBuilder_ == null) { + return trainingJob_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } else { + return trainingJobBuilder_.getMessage(); + } + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder setTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJob_ = value; + onChanged(); + } else { + trainingJobBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder setTrainingJob( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder builderForValue) { + if (trainingJobBuilder_ == null) { + trainingJob_ = builderForValue.build(); + onChanged(); + } else { + trainingJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder mergeTrainingJob(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob value) { + if (trainingJobBuilder_ == null) { + if (trainingJob_ != null) { + trainingJob_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder(trainingJob_).mergeFrom(value).buildPartial(); + } else { + trainingJob_ = value; + } + onChanged(); + } else { + trainingJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public Builder clearTrainingJob() { + if (trainingJobBuilder_ == null) { + trainingJob_ = null; + onChanged(); + } else { + trainingJob_ = null; + trainingJobBuilder_ = null; + } + + return this; + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder getTrainingJobBuilder() { + + onChanged(); + return getTrainingJobFieldBuilder().getBuilder(); + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder getTrainingJobOrBuilder() { + if (trainingJobBuilder_ != null) { + return trainingJobBuilder_.getMessageOrBuilder(); + } else { + return trainingJob_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance() : trainingJob_; + } + } + /** + *
+       * The underlying training job that the hyperparameter tuning job will launch during the process
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJob training_job = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder> + getTrainingJobFieldBuilder() { + if (trainingJobBuilder_ == null) { + trainingJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder>( + getTrainingJob(), + getParentForChildren(), + isClean()); + trainingJob_ = null; + } + return trainingJobBuilder_; + } + + private long maxNumberOfTrainingJobs_ ; + /** + *
+       * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+       * 
+ * + * int64 max_number_of_training_jobs = 2; + */ + public long getMaxNumberOfTrainingJobs() { + return maxNumberOfTrainingJobs_; + } + /** + *
+       * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+       * 
+ * + * int64 max_number_of_training_jobs = 2; + */ + public Builder setMaxNumberOfTrainingJobs(long value) { + + maxNumberOfTrainingJobs_ = value; + onChanged(); + return this; + } + /** + *
+       * The maximum number of training jobs that an hpo job can launch. For resource limit purpose.
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+       * 
+ * + * int64 max_number_of_training_jobs = 2; + */ + public Builder clearMaxNumberOfTrainingJobs() { + + maxNumberOfTrainingJobs_ = 0L; + onChanged(); + return this; + } + + private long maxParallelTrainingJobs_ ; + /** + *
+       * The maximum number of concurrent training job that an hpo job can launch
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+       * 
+ * + * int64 max_parallel_training_jobs = 3; + */ + public long getMaxParallelTrainingJobs() { + return maxParallelTrainingJobs_; + } + /** + *
+       * The maximum number of concurrent training job that an hpo job can launch
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+       * 
+ * + * int64 max_parallel_training_jobs = 3; + */ + public Builder setMaxParallelTrainingJobs(long value) { + + maxParallelTrainingJobs_ = value; + onChanged(); + return this; + } + /** + *
+       * The maximum number of concurrent training job that an hpo job can launch
+       * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html
+       * 
+ * + * int64 max_parallel_training_jobs = 3; + */ + public Builder clearMaxParallelTrainingJobs() { + + maxParallelTrainingJobs_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJob) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HyperparameterTuningObjectiveTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+   * with respect to the specified metric.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType} + */ + public static final class HyperparameterTuningObjectiveType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + HyperparameterTuningObjectiveTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningObjectiveType.newBuilder() to construct. + private HyperparameterTuningObjectiveType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningObjectiveType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningObjectiveType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINIMIZE = 0; + */ + MINIMIZE(0), + /** + * MAXIMIZE = 1; + */ + MAXIMIZE(1), + UNRECOGNIZED(-1), + ; + + /** + * MINIMIZE = 0; + */ + public static final int MINIMIZE_VALUE = 0; + /** + * MAXIMIZE = 1; + */ + public static final int MAXIMIZE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return MINIMIZE; + case 1: return MAXIMIZE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningObjectiveType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningObjectiveType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HyperparameterTuningObjectiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + int getObjectiveTypeValue(); + /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType(); + + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + java.lang.String getMetricName(); + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + com.google.protobuf.ByteString + getMetricNameBytes(); + } + /** + *
+   * The target metric and the objective of the hyperparameter tuning.
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class HyperparameterTuningObjective extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + HyperparameterTuningObjectiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningObjective.newBuilder() to construct. + private HyperparameterTuningObjective(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningObjective() { + objectiveType_ = 0; + metricName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningObjective( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + objectiveType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + metricName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class); + } + + public static final int OBJECTIVE_TYPE_FIELD_NUMBER = 1; + private int objectiveType_; + /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + *
+     * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+     * with respect to the specified metric.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.UNRECOGNIZED : result; + } + + public static final int METRIC_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object metricName_; + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } + } + /** + *
+     * The target metric name, which is the user-defined name of the metric specified in the
+     * training job's algorithm specification
+     * 
+ * + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.MINIMIZE.getNumber()) { + output.writeEnum(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (objectiveType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.MINIMIZE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, objectiveType_); + } + if (!getMetricNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) obj; + + if (objectiveType_ != other.objectiveType_) return false; + if (!getMetricName() + .equals(other.getMetricName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OBJECTIVE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + objectiveType_; + hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningObjective} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + objectiveType_ = 0; + + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective(this); + result.objectiveType_ = objectiveType_; + result.metricName_ = metricName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance()) return this; + if (other.objectiveType_ != 0) { + setObjectiveTypeValue(other.getObjectiveTypeValue()); + } + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int objectiveType_ = 0; + /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public int getObjectiveTypeValue() { + return objectiveType_; + } + /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public Builder setObjectiveTypeValue(int value) { + objectiveType_ = value; + onChanged(); + return this; + } + /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value getObjectiveType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.valueOf(objectiveType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value.UNRECOGNIZED : result; + } + /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public Builder setObjectiveType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveType.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + objectiveType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job
+       * with respect to the specified metric.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.Value objective_type = 1; + */ + public Builder clearObjectiveType() { + + objectiveType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object metricName_ = ""; + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public com.google.protobuf.ByteString + getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public Builder setMetricName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + *
+       * The target metric name, which is the user-defined name of the metric specified in the
+       * training job's algorithm specification
+       * 
+ * + * string metric_name = 2; + */ + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningObjective) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningObjective parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningObjective(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HyperparameterTuningStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Setting the strategy used when searching in the hyperparameter space
+   * Refer this doc for more details:
+   * https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningStrategy} + */ + public static final class HyperparameterTuningStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + HyperparameterTuningStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningStrategy.newBuilder() to construct. + private HyperparameterTuningStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningStrategy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningStrategy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * BAYESIAN = 0; + */ + BAYESIAN(0), + /** + * RANDOM = 1; + */ + RANDOM(1), + UNRECOGNIZED(-1), + ; + + /** + * BAYESIAN = 0; + */ + public static final int BAYESIAN_VALUE = 0; + /** + * RANDOM = 1; + */ + public static final int RANDOM_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return BAYESIAN; + case 1: return RANDOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * Refer this doc for more details:
+     * https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningStrategy) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningStrategy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobEarlyStoppingTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+   * a hyperparameter tuning job can be stopping early.
+   * Note that there's only a subset of built-in algorithms that supports early stopping.
+   * see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType} + */ + public static final class TrainingJobEarlyStoppingType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + TrainingJobEarlyStoppingTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJobEarlyStoppingType.newBuilder() to construct. + private TrainingJobEarlyStoppingType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJobEarlyStoppingType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJobEarlyStoppingType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OFF = 0; + */ + OFF(0), + /** + * AUTO = 1; + */ + AUTO(1), + UNRECOGNIZED(-1), + ; + + /** + * OFF = 0; + */ + public static final int OFF_VALUE = 0; + /** + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return OFF; + case 1: return AUTO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * Note that there's only a subset of built-in algorithms that supports early stopping.
+     * see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJobEarlyStoppingType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJobEarlyStoppingType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HyperparameterTuningJobConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + boolean hasHyperparameterRanges(); + /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges(); + /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder(); + + /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + int getTuningStrategyValue(); + /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy(); + + /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + boolean hasTuningObjective(); + /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective(); + /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder(); + + /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + int getTrainingJobEarlyStoppingTypeValue(); + /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType(); + } + /** + *
+   * The specification of the hyperparameter tuning process
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig} + */ + public static final class HyperparameterTuningJobConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + HyperparameterTuningJobConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterTuningJobConfig.newBuilder() to construct. + private HyperparameterTuningJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterTuningJobConfig() { + tuningStrategy_ = 0; + trainingJobEarlyStoppingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterTuningJobConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder subBuilder = null; + if (hyperparameterRanges_ != null) { + subBuilder = hyperparameterRanges_.toBuilder(); + } + hyperparameterRanges_ = input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hyperparameterRanges_); + hyperparameterRanges_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + tuningStrategy_ = rawValue; + break; + } + case 26: { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder subBuilder = null; + if (tuningObjective_ != null) { + subBuilder = tuningObjective_.toBuilder(); + } + tuningObjective_ = input.readMessage(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tuningObjective_); + tuningObjective_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + trainingJobEarlyStoppingType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.Builder.class); + } + + public static final int HYPERPARAMETER_RANGES_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRanges_ != null; + } + /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + return getHyperparameterRanges(); + } + + public static final int TUNING_STRATEGY_FIELD_NUMBER = 2; + private int tuningStrategy_; + /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + *
+     * Setting the strategy used when searching in the hyperparameter space
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.UNRECOGNIZED : result; + } + + public static final int TUNING_OBJECTIVE_FIELD_NUMBER = 3; + private flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective tuningObjective_; + /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjective_ != null; + } + /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective() { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + /** + *
+     * The target metric and the objective of the hyperparameter tuning.
+     * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + return getTuningObjective(); + } + + public static final int TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER = 4; + private int trainingJobEarlyStoppingType_; + /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + *
+     * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+     * a hyperparameter tuning job can be stopping early.
+     * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hyperparameterRanges_ != null) { + output.writeMessage(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.BAYESIAN.getNumber()) { + output.writeEnum(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + output.writeMessage(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.OFF.getNumber()) { + output.writeEnum(4, trainingJobEarlyStoppingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hyperparameterRanges_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHyperparameterRanges()); + } + if (tuningStrategy_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.BAYESIAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, tuningStrategy_); + } + if (tuningObjective_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTuningObjective()); + } + if (trainingJobEarlyStoppingType_ != flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.OFF.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, trainingJobEarlyStoppingType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig other = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig) obj; + + if (hasHyperparameterRanges() != other.hasHyperparameterRanges()) return false; + if (hasHyperparameterRanges()) { + if (!getHyperparameterRanges() + .equals(other.getHyperparameterRanges())) return false; + } + if (tuningStrategy_ != other.tuningStrategy_) return false; + if (hasTuningObjective() != other.hasTuningObjective()) return false; + if (hasTuningObjective()) { + if (!getTuningObjective() + .equals(other.getTuningObjective())) return false; + } + if (trainingJobEarlyStoppingType_ != other.trainingJobEarlyStoppingType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHyperparameterRanges()) { + hash = (37 * hash) + HYPERPARAMETER_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getHyperparameterRanges().hashCode(); + } + hash = (37 * hash) + TUNING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + tuningStrategy_; + if (hasTuningObjective()) { + hash = (37 * hash) + TUNING_OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getTuningObjective().hashCode(); + } + hash = (37 * hash) + TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + trainingJobEarlyStoppingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The specification of the hyperparameter tuning process
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.class, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + tuningStrategy_ = 0; + + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + trainingJobEarlyStoppingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig build() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig buildPartial() { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig result = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig(this); + if (hyperparameterRangesBuilder_ == null) { + result.hyperparameterRanges_ = hyperparameterRanges_; + } else { + result.hyperparameterRanges_ = hyperparameterRangesBuilder_.build(); + } + result.tuningStrategy_ = tuningStrategy_; + if (tuningObjectiveBuilder_ == null) { + result.tuningObjective_ = tuningObjective_; + } else { + result.tuningObjective_ = tuningObjectiveBuilder_.build(); + } + result.trainingJobEarlyStoppingType_ = trainingJobEarlyStoppingType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig other) { + if (other == flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig.getDefaultInstance()) return this; + if (other.hasHyperparameterRanges()) { + mergeHyperparameterRanges(other.getHyperparameterRanges()); + } + if (other.tuningStrategy_ != 0) { + setTuningStrategyValue(other.getTuningStrategyValue()); + } + if (other.hasTuningObjective()) { + mergeTuningObjective(other.getTuningObjective()); + } + if (other.trainingJobEarlyStoppingType_ != 0) { + setTrainingJobEarlyStoppingTypeValue(other.getTrainingJobEarlyStoppingTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges hyperparameterRanges_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> hyperparameterRangesBuilder_; + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public boolean hasHyperparameterRanges() { + return hyperparameterRangesBuilder_ != null || hyperparameterRanges_ != null; + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + return hyperparameterRanges_ == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } else { + return hyperparameterRangesBuilder_.getMessage(); + } + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hyperparameterRanges_ = value; + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder setHyperparameterRanges( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder builderForValue) { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = builderForValue.build(); + onChanged(); + } else { + hyperparameterRangesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder mergeHyperparameterRanges(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges value) { + if (hyperparameterRangesBuilder_ == null) { + if (hyperparameterRanges_ != null) { + hyperparameterRanges_ = + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder(hyperparameterRanges_).mergeFrom(value).buildPartial(); + } else { + hyperparameterRanges_ = value; + } + onChanged(); + } else { + hyperparameterRangesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public Builder clearHyperparameterRanges() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRanges_ = null; + onChanged(); + } else { + hyperparameterRanges_ = null; + hyperparameterRangesBuilder_ = null; + } + + return this; + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder getHyperparameterRangesBuilder() { + + onChanged(); + return getHyperparameterRangesFieldBuilder().getBuilder(); + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder getHyperparameterRangesOrBuilder() { + if (hyperparameterRangesBuilder_ != null) { + return hyperparameterRangesBuilder_.getMessageOrBuilder(); + } else { + return hyperparameterRanges_ == null ? + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance() : hyperparameterRanges_; + } + } + /** + *
+       * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+       * 
+ * + * .flyteidl.plugins.sagemaker.ParameterRanges hyperparameter_ranges = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder> + getHyperparameterRangesFieldBuilder() { + if (hyperparameterRangesBuilder_ == null) { + hyperparameterRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder>( + getHyperparameterRanges(), + getParentForChildren(), + isClean()); + hyperparameterRanges_ = null; + } + return hyperparameterRangesBuilder_; + } + + private int tuningStrategy_ = 0; + /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + public int getTuningStrategyValue() { + return tuningStrategy_; + } + /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + public Builder setTuningStrategyValue(int value) { + tuningStrategy_ = value; + onChanged(); + return this; + } + /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value getTuningStrategy() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.valueOf(tuningStrategy_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value.UNRECOGNIZED : result; + } + /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + public Builder setTuningStrategy(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningStrategy.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + tuningStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Setting the strategy used when searching in the hyperparameter space
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.Value tuning_strategy = 2; + */ + public Builder clearTuningStrategy() { + + tuningStrategy_ = 0; + onChanged(); + return this; + } + + private flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective tuningObjective_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder> tuningObjectiveBuilder_; + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public boolean hasTuningObjective() { + return tuningObjectiveBuilder_ != null || tuningObjective_ != null; + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective getTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + return tuningObjective_ == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } else { + return tuningObjectiveBuilder_.getMessage(); + } + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningObjective_ = value; + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder setTuningObjective( + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder builderForValue) { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = builderForValue.build(); + onChanged(); + } else { + tuningObjectiveBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder mergeTuningObjective(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective value) { + if (tuningObjectiveBuilder_ == null) { + if (tuningObjective_ != null) { + tuningObjective_ = + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.newBuilder(tuningObjective_).mergeFrom(value).buildPartial(); + } else { + tuningObjective_ = value; + } + onChanged(); + } else { + tuningObjectiveBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public Builder clearTuningObjective() { + if (tuningObjectiveBuilder_ == null) { + tuningObjective_ = null; + onChanged(); + } else { + tuningObjective_ = null; + tuningObjectiveBuilder_ = null; + } + + return this; + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder getTuningObjectiveBuilder() { + + onChanged(); + return getTuningObjectiveFieldBuilder().getBuilder(); + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder getTuningObjectiveOrBuilder() { + if (tuningObjectiveBuilder_ != null) { + return tuningObjectiveBuilder_.getMessageOrBuilder(); + } else { + return tuningObjective_ == null ? + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.getDefaultInstance() : tuningObjective_; + } + } + /** + *
+       * The target metric and the objective of the hyperparameter tuning.
+       * 
+ * + * .flyteidl.plugins.sagemaker.HyperparameterTuningObjective tuning_objective = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder> + getTuningObjectiveFieldBuilder() { + if (tuningObjectiveBuilder_ == null) { + tuningObjectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjective.Builder, flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningObjectiveOrBuilder>( + getTuningObjective(), + getParentForChildren(), + isClean()); + tuningObjective_ = null; + } + return tuningObjectiveBuilder_; + } + + private int trainingJobEarlyStoppingType_ = 0; + /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + public int getTrainingJobEarlyStoppingTypeValue() { + return trainingJobEarlyStoppingType_; + } + /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingTypeValue(int value) { + trainingJobEarlyStoppingType_ = value; + onChanged(); + return this; + } + /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value getTrainingJobEarlyStoppingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value result = flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.valueOf(trainingJobEarlyStoppingType_); + return result == null ? flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value.UNRECOGNIZED : result; + } + /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + public Builder setTrainingJobEarlyStoppingType(flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.TrainingJobEarlyStoppingType.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + trainingJobEarlyStoppingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * When the training jobs launched by the hyperparameter tuning job are not improving significantly,
+       * a hyperparameter tuning job can be stopping early.
+       * 
+ * + * .flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; + */ + public Builder clearTrainingJobEarlyStoppingType() { + + trainingJobEarlyStoppingType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterTuningJobConfig) + private static final flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig(); + } + + public static flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterTuningJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterTuningJobConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.HyperparameterTuningJobOuterClass.HyperparameterTuningJobConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:flyteidl/plugins/sagemaker/hyperparame" + + "ter_tuning_job.proto\022\032flyteidl.plugins.s" + + "agemaker\0321flyteidl/plugins/sagemaker/par" + + "ameter_ranges.proto\032-flyteidl/plugins/sa" + + "gemaker/training_job.proto\"\241\001\n\027Hyperpara" + + "meterTuningJob\022=\n\014training_job\030\001 \001(\0132\'.f" + + "lyteidl.plugins.sagemaker.TrainingJob\022#\n" + + "\033max_number_of_training_jobs\030\002 \001(\003\022\"\n\032ma" + + "x_parallel_training_jobs\030\003 \001(\003\"H\n!Hyperp" + + "arameterTuningObjectiveType\"#\n\005Value\022\014\n\010" + + "MINIMIZE\020\000\022\014\n\010MAXIMIZE\020\001\"\221\001\n\035Hyperparame" + + "terTuningObjective\022[\n\016objective_type\030\001 \001" + + "(\0162C.flyteidl.plugins.sagemaker.Hyperpar" + + "ameterTuningObjectiveType.Value\022\023\n\013metri" + + "c_name\030\002 \001(\t\"A\n\034HyperparameterTuningStra" + + "tegy\"!\n\005Value\022\014\n\010BAYESIAN\020\000\022\n\n\006RANDOM\020\001\"" + + ":\n\034TrainingJobEarlyStoppingType\"\032\n\005Value" + + "\022\007\n\003OFF\020\000\022\010\n\004AUTO\020\001\"\203\003\n\035HyperparameterTu" + + "ningJobConfig\022J\n\025hyperparameter_ranges\030\001" + + " \001(\0132+.flyteidl.plugins.sagemaker.Parame" + + "terRanges\022W\n\017tuning_strategy\030\002 \001(\0162>.fly" + + "teidl.plugins.sagemaker.HyperparameterTu" + + "ningStrategy.Value\022S\n\020tuning_objective\030\003" + + " \001(\01329.flyteidl.plugins.sagemaker.Hyperp" + + "arameterTuningObjective\022h\n training_job_" + + "early_stopping_type\030\004 \001(\0162>.flyteidl.plu" + + "gins.sagemaker.TrainingJobEarlyStoppingT" + + "ype.ValueB9Z7github.com/flyteorg/flyteid" + + "l/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(), + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJob_descriptor, + new java.lang.String[] { "TrainingJob", "MaxNumberOfTrainingJobs", "MaxParallelTrainingJobs", }); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjectiveType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningObjective_descriptor, + new java.lang.String[] { "ObjectiveType", "MetricName", }); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningStrategy_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJobEarlyStoppingType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterTuningJobConfig_descriptor, + new java.lang.String[] { "HyperparameterRanges", "TuningStrategy", "TuningObjective", "TrainingJobEarlyStoppingType", }); + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.getDescriptor(); + flyteidl.plugins.sagemaker.TrainingJobOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java new file mode 100644 index 0000000000..5f3d8c59ff --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/ParameterRangesOuterClass.java @@ -0,0 +1,4468 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/parameter_ranges.proto + +package flyteidl.plugins.sagemaker; + +public final class ParameterRangesOuterClass { + private ParameterRangesOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HyperparameterScalingTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.HyperparameterScalingType) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
+   * For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} + */ + public static final class HyperparameterScalingType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.HyperparameterScalingType) + HyperparameterScalingTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use HyperparameterScalingType.newBuilder() to construct. + private HyperparameterScalingType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HyperparameterScalingType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HyperparameterScalingType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.HyperparameterScalingType.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * AUTO = 0; + */ + AUTO(0), + /** + * LINEAR = 1; + */ + LINEAR(1), + /** + * LOGARITHMIC = 2; + */ + LOGARITHMIC(2), + /** + * REVERSELOGARITHMIC = 3; + */ + REVERSELOGARITHMIC(3), + UNRECOGNIZED(-1), + ; + + /** + * AUTO = 0; + */ + public static final int AUTO_VALUE = 0; + /** + * LINEAR = 1; + */ + public static final int LINEAR_VALUE = 1; + /** + * LOGARITHMIC = 2; + */ + public static final int LOGARITHMIC_VALUE = 2; + /** + * REVERSELOGARITHMIC = 3; + */ + public static final int REVERSELOGARITHMIC_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return AUTO; + case 1: return LINEAR; + case 2: return LOGARITHMIC; + case 3: return REVERSELOGARITHMIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter
+     * For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.HyperparameterScalingType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.HyperparameterScalingType) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.HyperparameterScalingType) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HyperparameterScalingType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HyperparameterScalingType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContinuousParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ContinuousParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * double max_value = 1; + */ + double getMaxValue(); + + /** + * double min_value = 2; + */ + double getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType(); + } + /** + *
+   * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+   * users to specify the search space of a floating-point hyperparameter
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class ContinuousParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + ContinuousParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContinuousParameterRange.newBuilder() to construct. + private ContinuousParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContinuousParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContinuousParameterRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + + maxValue_ = input.readDouble(); + break; + } + case 17: { + + minValue_ = input.readDouble(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private double maxValue_; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private double minValue_; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (maxValue_ != 0D) { + output.writeDouble(1, maxValue_); + } + if (minValue_ != 0D) { + output.writeDouble(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, maxValue_); + } + if (minValue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) obj; + + if (java.lang.Double.doubleToLongBits(getMaxValue()) + != java.lang.Double.doubleToLongBits( + other.getMaxValue())) return false; + if (java.lang.Double.doubleToLongBits(getMinValue()) + != java.lang.Double.doubleToLongBits( + other.getMinValue())) return false; + if (scalingType_ != other.scalingType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxValue())); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinValue())); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+     * users to specify the search space of a floating-point hyperparameter
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.ContinuousParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ContinuousParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + maxValue_ = 0D; + + minValue_ = 0D; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0D) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0D) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double maxValue_ ; + /** + * double max_value = 1; + */ + public double getMaxValue() { + return maxValue_; + } + /** + * double max_value = 1; + */ + public Builder setMaxValue(double value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * double max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0D; + onChanged(); + return this; + } + + private double minValue_ ; + /** + * double min_value = 2; + */ + public double getMinValue() { + return minValue_; + } + /** + * double min_value = 2; + */ + public Builder setMinValue(double value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * double min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0D; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ContinuousParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousParameterRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntegerParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.IntegerParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 max_value = 1; + */ + long getMaxValue(); + + /** + * int64 min_value = 2; + */ + long getMinValue(); + + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + int getScalingTypeValue(); + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType(); + } + /** + *
+   * IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
+   * users to specify the search space of an integer hyperparameter
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class IntegerParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + IntegerParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use IntegerParameterRange.newBuilder() to construct. + private IntegerParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntegerParameterRange() { + scalingType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IntegerParameterRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + maxValue_ = input.readInt64(); + break; + } + case 16: { + + minValue_ = input.readInt64(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + scalingType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); + } + + public static final int MAX_VALUE_FIELD_NUMBER = 1; + private long maxValue_; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + + public static final int MIN_VALUE_FIELD_NUMBER = 2; + private long minValue_; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + + public static final int SCALING_TYPE_FIELD_NUMBER = 3; + private int scalingType_; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (maxValue_ != 0L) { + output.writeInt64(1, maxValue_); + } + if (minValue_ != 0L) { + output.writeInt64(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { + output.writeEnum(3, scalingType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxValue_); + } + if (minValue_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minValue_); + } + if (scalingType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.AUTO.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, scalingType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) obj; + + if (getMaxValue() + != other.getMaxValue()) return false; + if (getMinValue() + != other.getMinValue()) return false; + if (scalingType_ != other.scalingType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxValue()); + hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinValue()); + hash = (37 * hash) + SCALING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scalingType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * IntegerParameterRange refers to a discrete range of hyperparameter values, allowing
+     * users to specify the search space of an integer hyperparameter
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.IntegerParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.IntegerParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + maxValue_ = 0L; + + minValue_ = 0L; + + scalingType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(this); + result.maxValue_ = maxValue_; + result.minValue_ = minValue_; + result.scalingType_ = scalingType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) return this; + if (other.getMaxValue() != 0L) { + setMaxValue(other.getMaxValue()); + } + if (other.getMinValue() != 0L) { + setMinValue(other.getMinValue()); + } + if (other.scalingType_ != 0) { + setScalingTypeValue(other.getScalingTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxValue_ ; + /** + * int64 max_value = 1; + */ + public long getMaxValue() { + return maxValue_; + } + /** + * int64 max_value = 1; + */ + public Builder setMaxValue(long value) { + + maxValue_ = value; + onChanged(); + return this; + } + /** + * int64 max_value = 1; + */ + public Builder clearMaxValue() { + + maxValue_ = 0L; + onChanged(); + return this; + } + + private long minValue_ ; + /** + * int64 min_value = 2; + */ + public long getMinValue() { + return minValue_; + } + /** + * int64 min_value = 2; + */ + public Builder setMinValue(long value) { + + minValue_ = value; + onChanged(); + return this; + } + /** + * int64 min_value = 2; + */ + public Builder clearMinValue() { + + minValue_ = 0L; + onChanged(); + return this; + } + + private int scalingType_ = 0; + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public int getScalingTypeValue() { + return scalingType_; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public Builder setScalingTypeValue(int value) { + scalingType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value getScalingType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value result = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.valueOf(scalingType_); + return result == null ? flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public Builder setScalingType(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.HyperparameterScalingType.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + scalingType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.sagemaker.HyperparameterScalingType.Value scaling_type = 3; + */ + public Builder clearScalingType() { + + scalingType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.IntegerParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IntegerParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntegerParameterRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoricalParameterRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.CategoricalParameterRange) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated string values = 1; + */ + int getValuesCount(); + /** + * repeated string values = 1; + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + */ + com.google.protobuf.ByteString + getValuesBytes(int index); + } + /** + *
+   * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+   * users to specify the search space of a floating-point hyperparameter
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class CategoricalParameterRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + CategoricalParameterRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CategoricalParameterRange.newBuilder() to construct. + private CategoricalParameterRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CategoricalParameterRange() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CategoricalParameterRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) obj; + + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing
+     * users to specify the search space of a floating-point hyperparameter
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.CategoricalParameterRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.CategoricalParameterRange) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string values = 1; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + */ + public Builder setValues( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValues( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string values = 1; + */ + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.CategoricalParameterRange) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoricalParameterRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoricalParameterRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangeOneOfOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + boolean hasContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange(); + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + boolean hasIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange(); + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + boolean hasCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange(); + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder(); + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.ParameterRangeTypeCase getParameterRangeTypeCase(); + } + /** + *
+   * ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of
+   * the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange.
+   * This one-of structure in Flyte enables specifying a Parameter in a type-safe manner
+   * See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class ParameterRangeOneOf extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + ParameterRangeOneOfOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRangeOneOf.newBuilder() to construct. + private ParameterRangeOneOf(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRangeOneOf() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRangeOneOf( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 1) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 1; + break; + } + case 18: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 2) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 2; + break; + } + case 26: { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder subBuilder = null; + if (parameterRangeTypeCase_ == 3) { + subBuilder = ((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_).toBuilder(); + } + parameterRangeType_ = + input.readMessage(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + parameterRangeType_ = subBuilder.buildPartial(); + } + parameterRangeTypeCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); + } + + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public enum ParameterRangeTypeCase + implements com.google.protobuf.Internal.EnumLite { + CONTINUOUS_PARAMETER_RANGE(1), + INTEGER_PARAMETER_RANGE(2), + CATEGORICAL_PARAMETER_RANGE(3), + PARAMETERRANGETYPE_NOT_SET(0); + private final int value; + private ParameterRangeTypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParameterRangeTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ParameterRangeTypeCase forNumber(int value) { + switch (value) { + case 1: return CONTINUOUS_PARAMETER_RANGE; + case 2: return INTEGER_PARAMETER_RANGE; + case 3: return CATEGORICAL_PARAMETER_RANGE; + case 0: return PARAMETERRANGETYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public static final int CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER = 1; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + + public static final int INTEGER_PARAMETER_RANGE_FIELD_NUMBER = 2; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + + public static final int CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER = 3; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parameterRangeTypeCase_ == 1) { + output.writeMessage(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + output.writeMessage(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + output.writeMessage(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parameterRangeTypeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_); + } + if (parameterRangeTypeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) obj; + + if (!getParameterRangeTypeCase().equals(other.getParameterRangeTypeCase())) return false; + switch (parameterRangeTypeCase_) { + case 1: + if (!getContinuousParameterRange() + .equals(other.getContinuousParameterRange())) return false; + break; + case 2: + if (!getIntegerParameterRange() + .equals(other.getIntegerParameterRange())) return false; + break; + case 3: + if (!getCategoricalParameterRange() + .equals(other.getCategoricalParameterRange())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parameterRangeTypeCase_) { + case 1: + hash = (37 * hash) + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getContinuousParameterRange().hashCode(); + break; + case 2: + hash = (37 * hash) + INTEGER_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIntegerParameterRange().hashCode(); + break; + case 3: + hash = (37 * hash) + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getCategoricalParameterRange().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of
+     * the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange.
+     * This one-of structure in Flyte enables specifying a Parameter in a type-safe manner
+     * See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRangeOneOf} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOfOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(this); + if (parameterRangeTypeCase_ == 1) { + if (continuousParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = continuousParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 2) { + if (integerParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = integerParameterRangeBuilder_.build(); + } + } + if (parameterRangeTypeCase_ == 3) { + if (categoricalParameterRangeBuilder_ == null) { + result.parameterRangeType_ = parameterRangeType_; + } else { + result.parameterRangeType_ = categoricalParameterRangeBuilder_.build(); + } + } + result.parameterRangeTypeCase_ = parameterRangeTypeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()) return this; + switch (other.getParameterRangeTypeCase()) { + case CONTINUOUS_PARAMETER_RANGE: { + mergeContinuousParameterRange(other.getContinuousParameterRange()); + break; + } + case INTEGER_PARAMETER_RANGE: { + mergeIntegerParameterRange(other.getIntegerParameterRange()); + break; + } + case CATEGORICAL_PARAMETER_RANGE: { + mergeCategoricalParameterRange(other.getCategoricalParameterRange()); + break; + } + case PARAMETERRANGETYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int parameterRangeTypeCase_ = 0; + private java.lang.Object parameterRangeType_; + public ParameterRangeTypeCase + getParameterRangeTypeCase() { + return ParameterRangeTypeCase.forNumber( + parameterRangeTypeCase_); + } + + public Builder clearParameterRangeType() { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> continuousParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public boolean hasContinuousParameterRange() { + return parameterRangeTypeCase_ == 1; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange getContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 1) { + return continuousParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder setContinuousParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder builderForValue) { + if (continuousParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + continuousParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder mergeContinuousParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange value) { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 1) { + continuousParameterRangeBuilder_.mergeFrom(value); + } + continuousParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 1; + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public Builder clearContinuousParameterRange() { + if (continuousParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 1) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + continuousParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder getContinuousParameterRangeBuilder() { + return getContinuousParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder getContinuousParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 1) && (continuousParameterRangeBuilder_ != null)) { + return continuousParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 1) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.ContinuousParameterRange continuous_parameter_range = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder> + getContinuousParameterRangeFieldBuilder() { + if (continuousParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 1)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.getDefaultInstance(); + } + continuousParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ContinuousParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 1; + onChanged();; + return continuousParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> integerParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public boolean hasIntegerParameterRange() { + return parameterRangeTypeCase_ == 2; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange getIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 2) { + return integerParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder setIntegerParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder builderForValue) { + if (integerParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + integerParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder mergeIntegerParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange value) { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 2) { + integerParameterRangeBuilder_.mergeFrom(value); + } + integerParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 2; + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public Builder clearIntegerParameterRange() { + if (integerParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 2) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + integerParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder getIntegerParameterRangeBuilder() { + return getIntegerParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder getIntegerParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 2) && (integerParameterRangeBuilder_ != null)) { + return integerParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 2) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.IntegerParameterRange integer_parameter_range = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder> + getIntegerParameterRangeFieldBuilder() { + if (integerParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 2)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.getDefaultInstance(); + } + integerParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.IntegerParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 2; + onChanged();; + return integerParameterRangeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> categoricalParameterRangeBuilder_; + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public boolean hasCategoricalParameterRange() { + return parameterRangeTypeCase_ == 3; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange getCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } else { + if (parameterRangeTypeCase_ == 3) { + return categoricalParameterRangeBuilder_.getMessage(); + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterRangeType_ = value; + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder setCategoricalParameterRange( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder builderForValue) { + if (categoricalParameterRangeBuilder_ == null) { + parameterRangeType_ = builderForValue.build(); + onChanged(); + } else { + categoricalParameterRangeBuilder_.setMessage(builderForValue.build()); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder mergeCategoricalParameterRange(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange value) { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3 && + parameterRangeType_ != flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance()) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.newBuilder((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_) + .mergeFrom(value).buildPartial(); + } else { + parameterRangeType_ = value; + } + onChanged(); + } else { + if (parameterRangeTypeCase_ == 3) { + categoricalParameterRangeBuilder_.mergeFrom(value); + } + categoricalParameterRangeBuilder_.setMessage(value); + } + parameterRangeTypeCase_ = 3; + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public Builder clearCategoricalParameterRange() { + if (categoricalParameterRangeBuilder_ == null) { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + onChanged(); + } + } else { + if (parameterRangeTypeCase_ == 3) { + parameterRangeTypeCase_ = 0; + parameterRangeType_ = null; + } + categoricalParameterRangeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder getCategoricalParameterRangeBuilder() { + return getCategoricalParameterRangeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder getCategoricalParameterRangeOrBuilder() { + if ((parameterRangeTypeCase_ == 3) && (categoricalParameterRangeBuilder_ != null)) { + return categoricalParameterRangeBuilder_.getMessageOrBuilder(); + } else { + if (parameterRangeTypeCase_ == 3) { + return (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_; + } + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + } + /** + * .flyteidl.plugins.sagemaker.CategoricalParameterRange categorical_parameter_range = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder> + getCategoricalParameterRangeFieldBuilder() { + if (categoricalParameterRangeBuilder_ == null) { + if (!(parameterRangeTypeCase_ == 3)) { + parameterRangeType_ = flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.getDefaultInstance(); + } + categoricalParameterRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange.Builder, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRangeOrBuilder>( + (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.CategoricalParameterRange) parameterRangeType_, + getParentForChildren(), + isClean()); + parameterRangeType_ = null; + } + parameterRangeTypeCase_ = 3; + onChanged();; + return categoricalParameterRangeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRangeOneOf) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRangeOneOf parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRangeOneOf(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterRangesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.ParameterRanges) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + int getParameterRangeMapCount(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + boolean containsParameterRangeMap( + java.lang.String key); + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameterRangeMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + java.util.Map + getParameterRangeMapMap(); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue); + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key); + } + /** + *
+   * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class ParameterRanges extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.ParameterRanges) + ParameterRangesOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterRanges.newBuilder() to construct. + private ParameterRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterRanges() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterRanges( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameterRangeMap__ = input.readMessage( + ParameterRangeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameterRangeMap_.getMutableMap().put( + parameterRangeMap__.getKey(), parameterRangeMap__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); + } + + public static final int PARAMETER_RANGE_MAP_FIELD_NUMBER = 1; + private static final class ParameterRangeMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameterRangeMap(), + ParameterRangeMapDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameterRangeMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameterRangeMap__ = ParameterRangeMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameterRangeMap__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) obj; + + if (!internalGetParameterRangeMap().equals( + other.internalGetParameterRangeMap())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetParameterRangeMap().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETER_RANGE_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameterRangeMap().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.ParameterRanges} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.ParameterRanges) + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameterRangeMap(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.class, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableParameterRangeMap().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges build() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges buildPartial() { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges result = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(this); + int from_bitField0_ = bitField0_; + result.parameterRangeMap_ = internalGetParameterRangeMap(); + result.parameterRangeMap_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) { + return mergeFrom((flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges other) { + if (other == flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges.getDefaultInstance()) return this; + internalGetMutableParameterRangeMap().mergeFrom( + other.internalGetParameterRangeMap()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf> parameterRangeMap_; + private com.google.protobuf.MapField + internalGetParameterRangeMap() { + if (parameterRangeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + return parameterRangeMap_; + } + private com.google.protobuf.MapField + internalGetMutableParameterRangeMap() { + onChanged();; + if (parameterRangeMap_ == null) { + parameterRangeMap_ = com.google.protobuf.MapField.newMapField( + ParameterRangeMapDefaultEntryHolder.defaultEntry); + } + if (!parameterRangeMap_.isMutable()) { + parameterRangeMap_ = parameterRangeMap_.copy(); + } + return parameterRangeMap_; + } + + public int getParameterRangeMapCount() { + return internalGetParameterRangeMap().getMap().size(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public boolean containsParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameterRangeMap().getMap().containsKey(key); + } + /** + * Use {@link #getParameterRangeMapMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameterRangeMap() { + return getParameterRangeMapMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public java.util.Map getParameterRangeMapMap() { + return internalGetParameterRangeMap().getMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrDefault( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf getParameterRangeMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameterRangeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameterRangeMap() { + internalGetMutableParameterRangeMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder removeParameterRangeMap( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameterRangeMap() { + return internalGetMutableParameterRangeMap().getMutableMap(); + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + public Builder putParameterRangeMap( + java.lang.String key, + flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRangeOneOf value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameterRangeMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.plugins.sagemaker.ParameterRangeOneOf> parameter_range_map = 1; + */ + + public Builder putAllParameterRangeMap( + java.util.Map values) { + internalGetMutableParameterRangeMap().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.ParameterRanges) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.ParameterRanges) + private static final flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges(); + } + + public static flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterRanges parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterRanges(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.ParameterRangesOuterClass.ParameterRanges getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1flyteidl/plugins/sagemaker/parameter_r" + + "anges.proto\022\032flyteidl.plugins.sagemaker\"" + + "c\n\031HyperparameterScalingType\"F\n\005Value\022\010\n" + + "\004AUTO\020\000\022\n\n\006LINEAR\020\001\022\017\n\013LOGARITHMIC\020\002\022\026\n\022" + + "REVERSELOGARITHMIC\020\003\"\223\001\n\030ContinuousParam" + + "eterRange\022\021\n\tmax_value\030\001 \001(\001\022\021\n\tmin_valu" + + "e\030\002 \001(\001\022Q\n\014scaling_type\030\003 \001(\0162;.flyteidl" + + ".plugins.sagemaker.HyperparameterScaling" + + "Type.Value\"\220\001\n\025IntegerParameterRange\022\021\n\t" + + "max_value\030\001 \001(\003\022\021\n\tmin_value\030\002 \001(\003\022Q\n\014sc" + + "aling_type\030\003 \001(\0162;.flyteidl.plugins.sage" + + "maker.HyperparameterScalingType.Value\"+\n" + + "\031CategoricalParameterRange\022\016\n\006values\030\001 \003" + + "(\t\"\275\002\n\023ParameterRangeOneOf\022Z\n\032continuous" + + "_parameter_range\030\001 \001(\01324.flyteidl.plugin" + + "s.sagemaker.ContinuousParameterRangeH\000\022T" + + "\n\027integer_parameter_range\030\002 \001(\01321.flytei" + + "dl.plugins.sagemaker.IntegerParameterRan" + + "geH\000\022\\\n\033categorical_parameter_range\030\003 \001(" + + "\01325.flyteidl.plugins.sagemaker.Categoric" + + "alParameterRangeH\000B\026\n\024parameter_range_ty" + + "pe\"\335\001\n\017ParameterRanges\022_\n\023parameter_rang" + + "e_map\030\001 \003(\0132B.flyteidl.plugins.sagemaker" + + ".ParameterRanges.ParameterRangeMapEntry\032" + + "i\n\026ParameterRangeMapEntry\022\013\n\003key\030\001 \001(\t\022>" + + "\n\005value\030\002 \001(\0132/.flyteidl.plugins.sagemak" + + "er.ParameterRangeOneOf:\0028\001B9Z7github.com" + + "/flyteorg/flyteidl/gen/pb-go/flyteidl/pl" + + "uginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_HyperparameterScalingType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ContinuousParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_IntegerParameterRange_descriptor, + new java.lang.String[] { "MaxValue", "MinValue", "ScalingType", }); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_CategoricalParameterRange_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRangeOneOf_descriptor, + new java.lang.String[] { "ContinuousParameterRange", "IntegerParameterRange", "CategoricalParameterRange", "ParameterRangeType", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor, + new java.lang.String[] { "ParameterRangeMap", }); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor = + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_ParameterRanges_ParameterRangeMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java new file mode 100644 index 0000000000..8c335d5ca0 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/sagemaker/TrainingJobOuterClass.java @@ -0,0 +1,6321 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sagemaker/training_job.proto + +package flyteidl.plugins.sagemaker; + +public final class TrainingJobOuterClass { + private TrainingJobOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface InputModeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.InputMode) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * The input mode that the algorithm supports. When using the File input mode, SageMaker downloads
+   * the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker
+   * volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly
+   * from S3 to the container.
+   * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+   * For the input modes that different SageMaker algorithms support, see:
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.InputMode} + */ + public static final class InputMode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.InputMode) + InputModeOrBuilder { + private static final long serialVersionUID = 0L; + // Use InputMode.newBuilder() to construct. + private InputMode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InputMode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InputMode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.InputMode.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FILE = 0; + */ + FILE(0), + /** + * PIPE = 1; + */ + PIPE(1), + UNRECOGNIZED(-1), + ; + + /** + * FILE = 0; + */ + public static final int FILE_VALUE = 0; + /** + * PIPE = 1; + */ + public static final int PIPE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return FILE; + case 1: return PIPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputMode.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The input mode that the algorithm supports. When using the File input mode, SageMaker downloads
+     * the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker
+     * volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly
+     * from S3 to the container.
+     * See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * For the input modes that different SageMaker algorithms support, see:
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.InputMode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.InputMode) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputModeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.InputMode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputMode) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputMode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputMode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlgorithmNameOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmName) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * The algorithm name is used for deciding which pre-built image to point to.
+   * This is only required for use cases where SageMaker's built-in algorithm mode is used.
+   * While we currently only support a subset of the algorithms, more will be added to the list.
+   * See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public static final class AlgorithmName extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmName) + AlgorithmNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmName.newBuilder() to construct. + private AlgorithmName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmName() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.AlgorithmName.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CUSTOM = 0; + */ + CUSTOM(0), + /** + * XGBOOST = 1; + */ + XGBOOST(1), + UNRECOGNIZED(-1), + ; + + /** + * CUSTOM = 0; + */ + public static final int CUSTOM_VALUE = 0; + /** + * XGBOOST = 1; + */ + public static final int XGBOOST_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return CUSTOM; + case 1: return XGBOOST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.AlgorithmName.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The algorithm name is used for deciding which pre-built image to point to.
+     * This is only required for use cases where SageMaker's built-in algorithm mode is used.
+     * While we currently only support a subset of the algorithms, more will be added to the list.
+     * See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmName} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmName) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.AlgorithmName) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmName) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmName(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InputContentTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.InputContentType) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data
+   * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+   * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.InputContentType} + */ + public static final class InputContentType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.InputContentType) + InputContentTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use InputContentType.newBuilder() to construct. + private InputContentType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InputContentType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InputContentType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.InputContentType.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TEXT_CSV = 0; + */ + TEXT_CSV(0), + UNRECOGNIZED(-1), + ; + + /** + * TEXT_CSV = 0; + */ + public static final int TEXT_CSV_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return TEXT_CSV; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.InputContentType.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.InputContentType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.InputContentType) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.InputContentType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.InputContentType) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputContentType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputContentType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MetricDefinitionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.MetricDefinition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * User-defined name of the metric
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * User-defined name of the metric
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+     * 
+ * + * string regex = 2; + */ + java.lang.String getRegex(); + /** + *
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+     * 
+ * + * string regex = 2; + */ + com.google.protobuf.ByteString + getRegexBytes(); + } + /** + *
+   * Specifies a metric that the training algorithm writes to stderr or stdout.
+   * This object is a pass-through.
+   * See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.MetricDefinition} + */ + public static final class MetricDefinition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.MetricDefinition) + MetricDefinitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricDefinition.newBuilder() to construct. + private MetricDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetricDefinition() { + name_ = ""; + regex_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MetricDefinition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + regex_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * User-defined name of the metric
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * User-defined name of the metric
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGEX_FIELD_NUMBER = 2; + private volatile java.lang.Object regex_; + /** + *
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+     * 
+ * + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } + } + /** + *
+     * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+     * 
+ * + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getRegexBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regex_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getRegexBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, regex_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRegex() + .equals(other.getRegex())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies a metric that the training algorithm writes to stderr or stdout.
+     * This object is a pass-through.
+     * See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.MetricDefinition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.MetricDefinition) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + regex_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition(this); + result.name_ = name_; + result.regex_ = regex_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRegex().isEmpty()) { + regex_ = other.regex_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User-defined name of the metric
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object regex_ = ""; + /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; + */ + public java.lang.String getRegex() { + java.lang.Object ref = regex_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regex_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; + */ + public com.google.protobuf.ByteString + getRegexBytes() { + java.lang.Object ref = regex_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + regex_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; + */ + public Builder setRegex( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + regex_ = value; + onChanged(); + return this; + } + /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; + */ + public Builder clearRegex() { + + regex_ = getDefaultInstance().getRegex(); + onChanged(); + return this; + } + /** + *
+       * SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics
+       * 
+ * + * string regex = 2; + */ + public Builder setRegexBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + regex_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.MetricDefinition) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.MetricDefinition) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricDefinition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlgorithmSpecificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.AlgorithmSpecification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + int getInputModeValue(); + /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode(); + + /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + int getAlgorithmNameValue(); + /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName(); + + /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * string algorithm_version = 3; + */ + java.lang.String getAlgorithmVersion(); + /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * string algorithm_version = 3; + */ + com.google.protobuf.ByteString + getAlgorithmVersionBytes(); + + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsList(); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getMetricDefinitions(int index); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + int getMetricDefinitionsCount(); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + java.util.List + getMetricDefinitionsOrBuilderList(); + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index); + + /** + *
+     * The content type of the input
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + int getInputContentTypeValue(); + /** + *
+     * The content type of the input
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value getInputContentType(); + } + /** + *
+   * Specifies the training algorithm to be used in the training job
+   * This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
+   * TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
+   * name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to
+   * CUSTOM. In this case, the value of the algorithm_version field has no effect
+   * For pass-through use cases: refer to this AWS official document for more details
+   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class AlgorithmSpecification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + AlgorithmSpecificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlgorithmSpecification.newBuilder() to construct. + private AlgorithmSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AlgorithmSpecification() { + inputMode_ = 0; + algorithmName_ = 0; + algorithmVersion_ = ""; + metricDefinitions_ = java.util.Collections.emptyList(); + inputContentType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AlgorithmSpecification( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + inputMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + algorithmName_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + algorithmVersion_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + metricDefinitions_.add( + input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.parser(), extensionRegistry)); + break; + } + case 40: { + int rawValue = input.readEnum(); + + inputContentType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); + } + + private int bitField0_; + public static final int INPUT_MODE_FIELD_NUMBER = 1; + private int inputMode_; + /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + *
+     * The input mode can be either PIPE or FILE
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_NAME_FIELD_NUMBER = 2; + private int algorithmName_; + /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + *
+     * The algorithm name is used for deciding which pre-built image to point to
+     * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.UNRECOGNIZED : result; + } + + public static final int ALGORITHM_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object algorithmVersion_; + /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithmVersion_ = s; + return s; + } + } + /** + *
+     * The algorithm version field is used for deciding which pre-built image to point to
+     * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+     * 
+ * + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_DEFINITIONS_FIELD_NUMBER = 4; + private java.util.List metricDefinitions_; + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + return metricDefinitions_; + } + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + return metricDefinitions_; + } + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + return metricDefinitions_.size(); + } + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getMetricDefinitions(int index) { + return metricDefinitions_.get(index); + } + /** + *
+     * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+     * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+     * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + return metricDefinitions_.get(index); + } + + public static final int INPUT_CONTENT_TYPE_FIELD_NUMBER = 5; + private int inputContentType_; + /** + *
+     * The content type of the input
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + public int getInputContentTypeValue() { + return inputContentType_; + } + /** + *
+     * The content type of the input
+     * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+     * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+     * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value getInputContentType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.valueOf(inputContentType_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.FILE.getNumber()) { + output.writeEnum(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.CUSTOM.getNumber()) { + output.writeEnum(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + output.writeMessage(4, metricDefinitions_.get(i)); + } + if (inputContentType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.TEXT_CSV.getNumber()) { + output.writeEnum(5, inputContentType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputMode_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.FILE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, inputMode_); + } + if (algorithmName_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.CUSTOM.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, algorithmName_); + } + if (!getAlgorithmVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, algorithmVersion_); + } + for (int i = 0; i < metricDefinitions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metricDefinitions_.get(i)); + } + if (inputContentType_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.TEXT_CSV.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, inputContentType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) obj; + + if (inputMode_ != other.inputMode_) return false; + if (algorithmName_ != other.algorithmName_) return false; + if (!getAlgorithmVersion() + .equals(other.getAlgorithmVersion())) return false; + if (!getMetricDefinitionsList() + .equals(other.getMetricDefinitionsList())) return false; + if (inputContentType_ != other.inputContentType_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_MODE_FIELD_NUMBER; + hash = (53 * hash) + inputMode_; + hash = (37 * hash) + ALGORITHM_NAME_FIELD_NUMBER; + hash = (53 * hash) + algorithmName_; + hash = (37 * hash) + ALGORITHM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmVersion().hashCode(); + if (getMetricDefinitionsCount() > 0) { + hash = (37 * hash) + METRIC_DEFINITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMetricDefinitionsList().hashCode(); + } + hash = (37 * hash) + INPUT_CONTENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + inputContentType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies the training algorithm to be used in the training job
+     * This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify
+     * TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm
+     * name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to
+     * CUSTOM. In this case, the value of the algorithm_version field has no effect
+     * For pass-through use cases: refer to this AWS official document for more details
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.AlgorithmSpecification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.AlgorithmSpecification) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetricDefinitionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + inputMode_ = 0; + + algorithmName_ = 0; + + algorithmVersion_ = ""; + + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + metricDefinitionsBuilder_.clear(); + } + inputContentType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.inputMode_ = inputMode_; + result.algorithmName_ = algorithmName_; + result.algorithmVersion_ = algorithmVersion_; + if (metricDefinitionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = java.util.Collections.unmodifiableList(metricDefinitions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricDefinitions_ = metricDefinitions_; + } else { + result.metricDefinitions_ = metricDefinitionsBuilder_.build(); + } + result.inputContentType_ = inputContentType_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance()) return this; + if (other.inputMode_ != 0) { + setInputModeValue(other.getInputModeValue()); + } + if (other.algorithmName_ != 0) { + setAlgorithmNameValue(other.getAlgorithmNameValue()); + } + if (!other.getAlgorithmVersion().isEmpty()) { + algorithmVersion_ = other.algorithmVersion_; + onChanged(); + } + if (metricDefinitionsBuilder_ == null) { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitions_.isEmpty()) { + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.addAll(other.metricDefinitions_); + } + onChanged(); + } + } else { + if (!other.metricDefinitions_.isEmpty()) { + if (metricDefinitionsBuilder_.isEmpty()) { + metricDefinitionsBuilder_.dispose(); + metricDefinitionsBuilder_ = null; + metricDefinitions_ = other.metricDefinitions_; + bitField0_ = (bitField0_ & ~0x00000008); + metricDefinitionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricDefinitionsFieldBuilder() : null; + } else { + metricDefinitionsBuilder_.addAllMessages(other.metricDefinitions_); + } + } + } + if (other.inputContentType_ != 0) { + setInputContentTypeValue(other.getInputContentTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int inputMode_ = 0; + /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + public int getInputModeValue() { + return inputMode_; + } + /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + public Builder setInputModeValue(int value) { + inputMode_ = value; + onChanged(); + return this; + } + /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value getInputMode() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.valueOf(inputMode_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value.UNRECOGNIZED : result; + } + /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + public Builder setInputMode(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputMode.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + inputMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The input mode can be either PIPE or FILE
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputMode.Value input_mode = 1; + */ + public Builder clearInputMode() { + + inputMode_ = 0; + onChanged(); + return this; + } + + private int algorithmName_ = 0; + /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + public int getAlgorithmNameValue() { + return algorithmName_; + } + /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + public Builder setAlgorithmNameValue(int value) { + algorithmName_ = value; + onChanged(); + return this; + } + /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value getAlgorithmName() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.valueOf(algorithmName_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value.UNRECOGNIZED : result; + } + /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + public Builder setAlgorithmName(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmName.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmName_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The algorithm name is used for deciding which pre-built image to point to
+       * 
+ * + * .flyteidl.plugins.sagemaker.AlgorithmName.Value algorithm_name = 2; + */ + public Builder clearAlgorithmName() { + + algorithmName_ = 0; + onChanged(); + return this; + } + + private java.lang.Object algorithmVersion_ = ""; + /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * + * string algorithm_version = 3; + */ + public java.lang.String getAlgorithmVersion() { + java.lang.Object ref = algorithmVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithmVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * + * string algorithm_version = 3; + */ + public com.google.protobuf.ByteString + getAlgorithmVersionBytes() { + java.lang.Object ref = algorithmVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithmVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + algorithmVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * + * string algorithm_version = 3; + */ + public Builder clearAlgorithmVersion() { + + algorithmVersion_ = getDefaultInstance().getAlgorithmVersion(); + onChanged(); + return this; + } + /** + *
+       * The algorithm version field is used for deciding which pre-built image to point to
+       * This is only needed for use cases where SageMaker's built-in algorithm mode is chosen
+       * 
+ * + * string algorithm_version = 3; + */ + public Builder setAlgorithmVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + algorithmVersion_ = value; + onChanged(); + return this; + } + + private java.util.List metricDefinitions_ = + java.util.Collections.emptyList(); + private void ensureMetricDefinitionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricDefinitions_ = new java.util.ArrayList(metricDefinitions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder> metricDefinitionsBuilder_; + + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public java.util.List getMetricDefinitionsList() { + if (metricDefinitionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } else { + return metricDefinitionsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public int getMetricDefinitionsCount() { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.size(); + } else { + return metricDefinitionsBuilder_.getCount(); + } + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition getMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); + } else { + return metricDefinitionsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder setMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.set(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions(flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition value) { + if (metricDefinitionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, value); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder addMetricDefinitions( + int index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder builderForValue) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.add(index, builderForValue.build()); + onChanged(); + } else { + metricDefinitionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder addAllMetricDefinitions( + java.lang.Iterable values) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metricDefinitions_); + onChanged(); + } else { + metricDefinitionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder clearMetricDefinitions() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricDefinitionsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public Builder removeMetricDefinitions(int index) { + if (metricDefinitionsBuilder_ == null) { + ensureMetricDefinitionsIsMutable(); + metricDefinitions_.remove(index); + onChanged(); + } else { + metricDefinitionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder getMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder getMetricDefinitionsOrBuilder( + int index) { + if (metricDefinitionsBuilder_ == null) { + return metricDefinitions_.get(index); } else { + return metricDefinitionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsOrBuilderList() { + if (metricDefinitionsBuilder_ != null) { + return metricDefinitionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricDefinitions_); + } + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder addMetricDefinitionsBuilder() { + return getMetricDefinitionsFieldBuilder().addBuilder( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance()); + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder addMetricDefinitionsBuilder( + int index) { + return getMetricDefinitionsFieldBuilder().addBuilder( + index, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.getDefaultInstance()); + } + /** + *
+       * A list of metric definitions for SageMaker to evaluate/track on the progress of the training job
+       * See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html
+       * and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
+       * 
+ * + * repeated .flyteidl.plugins.sagemaker.MetricDefinition metric_definitions = 4; + */ + public java.util.List + getMetricDefinitionsBuilderList() { + return getMetricDefinitionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder> + getMetricDefinitionsFieldBuilder() { + if (metricDefinitionsBuilder_ == null) { + metricDefinitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinition.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.MetricDefinitionOrBuilder>( + metricDefinitions_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricDefinitions_ = null; + } + return metricDefinitionsBuilder_; + } + + private int inputContentType_ = 0; + /** + *
+       * The content type of the input
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + public int getInputContentTypeValue() { + return inputContentType_; + } + /** + *
+       * The content type of the input
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + public Builder setInputContentTypeValue(int value) { + inputContentType_ = value; + onChanged(); + return this; + } + /** + *
+       * The content type of the input
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value getInputContentType() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.valueOf(inputContentType_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value.UNRECOGNIZED : result; + } + /** + *
+       * The content type of the input
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + public Builder setInputContentType(flyteidl.plugins.sagemaker.TrainingJobOuterClass.InputContentType.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + inputContentType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The content type of the input
+       * See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html
+       * https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html
+       * 
+ * + * .flyteidl.plugins.sagemaker.InputContentType.Value input_content_type = 5; + */ + public Builder clearInputContentType() { + + inputContentType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.AlgorithmSpecification) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlgorithmSpecification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AlgorithmSpecification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DistributedProtocolOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.DistributedProtocol) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * When enabling distributed training on a training job, the user should use this message to tell Flyte and SageMaker
+   * what kind of distributed protocol he/she wants to use to distribute the work.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.DistributedProtocol} + */ + public static final class DistributedProtocol extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.DistributedProtocol) + DistributedProtocolOrBuilder { + private static final long serialVersionUID = 0L; + // Use DistributedProtocol.newBuilder() to construct. + private DistributedProtocol(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DistributedProtocol() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DistributedProtocol( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.sagemaker.DistributedProtocol.Value} + */ + public enum Value + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Use this value if the user wishes to use framework-native distributed training interfaces.
+       * If this value is used, Flyte won't configure SageMaker to initialize unnecessary components such as
+       * OpenMPI or Parameter Server.
+       * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+       * Use this value if the user wishes to use MPI as the underlying protocol for her distributed training job
+       * MPI is a framework-agnostic distributed protocol. It has multiple implementations. Currently, we have only
+       * tested the OpenMPI implementation, which is the recommended implementation for Horovod.
+       * 
+ * + * MPI = 1; + */ + MPI(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Use this value if the user wishes to use framework-native distributed training interfaces.
+       * If this value is used, Flyte won't configure SageMaker to initialize unnecessary components such as
+       * OpenMPI or Parameter Server.
+       * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+       * Use this value if the user wishes to use MPI as the underlying protocol for her distributed training job
+       * MPI is a framework-agnostic distributed protocol. It has multiple implementations. Currently, we have only
+       * tested the OpenMPI implementation, which is the recommended implementation for Horovod.
+       * 
+ * + * MPI = 1; + */ + public static final int MPI_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Value valueOf(int value) { + return forNumber(value); + } + + public static Value forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return MPI; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Value> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Value findValueByNumber(int number) { + return Value.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.getDescriptor().getEnumTypes().get(0); + } + + private static final Value[] VALUES = values(); + + public static Value valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Value(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.sagemaker.DistributedProtocol.Value) + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * When enabling distributed training on a training job, the user should use this message to tell Flyte and SageMaker
+     * what kind of distributed protocol he/she wants to use to distribute the work.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.DistributedProtocol} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.DistributedProtocol) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.DistributedProtocol) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.DistributedProtocol) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributedProtocol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DistributedProtocol(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobResourceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+     * 
+ * + * int64 instance_count = 1; + */ + long getInstanceCount(); + + /** + *
+     * The ML compute instance type
+     * 
+ * + * string instance_type = 2; + */ + java.lang.String getInstanceType(); + /** + *
+     * The ML compute instance type
+     * 
+ * + * string instance_type = 2; + */ + com.google.protobuf.ByteString + getInstanceTypeBytes(); + + /** + *
+     * The size of the ML storage volume that you want to provision.
+     * 
+ * + * int64 volume_size_in_gb = 3; + */ + long getVolumeSizeInGb(); + + /** + *
+     * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+     * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+     * field should be set to the corresponding enum value
+     * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + int getDistributedProtocolValue(); + /** + *
+     * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+     * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+     * field should be set to the corresponding enum value
+     * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value getDistributedProtocol(); + } + /** + *
+   * TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
+   * number of instances to launch, and the size of the ML storage volume the user wants to provision
+   * Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobResourceConfig} + */ + public static final class TrainingJobResourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + TrainingJobResourceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJobResourceConfig.newBuilder() to construct. + private TrainingJobResourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJobResourceConfig() { + instanceType_ = ""; + distributedProtocol_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJobResourceConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + instanceCount_ = input.readInt64(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + instanceType_ = s; + break; + } + case 24: { + + volumeSizeInGb_ = input.readInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + distributedProtocol_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder.class); + } + + public static final int INSTANCE_COUNT_FIELD_NUMBER = 1; + private long instanceCount_; + /** + *
+     * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+     * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + + public static final int INSTANCE_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object instanceType_; + /** + *
+     * The ML compute instance type
+     * 
+ * + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } + } + /** + *
+     * The ML compute instance type
+     * 
+ * + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_SIZE_IN_GB_FIELD_NUMBER = 3; + private long volumeSizeInGb_; + /** + *
+     * The size of the ML storage volume that you want to provision.
+     * 
+ * + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + + public static final int DISTRIBUTED_PROTOCOL_FIELD_NUMBER = 4; + private int distributedProtocol_; + /** + *
+     * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+     * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+     * field should be set to the corresponding enum value
+     * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + public int getDistributedProtocolValue() { + return distributedProtocol_; + } + /** + *
+     * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+     * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+     * field should be set to the corresponding enum value
+     * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value getDistributedProtocol() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value.valueOf(distributedProtocol_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (instanceCount_ != 0L) { + output.writeInt64(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + output.writeInt64(3, volumeSizeInGb_); + } + if (distributedProtocol_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value.UNSPECIFIED.getNumber()) { + output.writeEnum(4, distributedProtocol_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (instanceCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, instanceCount_); + } + if (!getInstanceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceType_); + } + if (volumeSizeInGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, volumeSizeInGb_); + } + if (distributedProtocol_ != flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, distributedProtocol_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig) obj; + + if (getInstanceCount() + != other.getInstanceCount()) return false; + if (!getInstanceType() + .equals(other.getInstanceType())) return false; + if (getVolumeSizeInGb() + != other.getVolumeSizeInGb()) return false; + if (distributedProtocol_ != other.distributedProtocol_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInstanceCount()); + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getInstanceType().hashCode(); + hash = (37 * hash) + VOLUME_SIZE_IN_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVolumeSizeInGb()); + hash = (37 * hash) + DISTRIBUTED_PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + distributedProtocol_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the
+     * number of instances to launch, and the size of the ML storage volume the user wants to provision
+     * Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJobResourceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + instanceCount_ = 0L; + + instanceType_ = ""; + + volumeSizeInGb_ = 0L; + + distributedProtocol_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig(this); + result.instanceCount_ = instanceCount_; + result.instanceType_ = instanceType_; + result.volumeSizeInGb_ = volumeSizeInGb_; + result.distributedProtocol_ = distributedProtocol_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance()) return this; + if (other.getInstanceCount() != 0L) { + setInstanceCount(other.getInstanceCount()); + } + if (!other.getInstanceType().isEmpty()) { + instanceType_ = other.instanceType_; + onChanged(); + } + if (other.getVolumeSizeInGb() != 0L) { + setVolumeSizeInGb(other.getVolumeSizeInGb()); + } + if (other.distributedProtocol_ != 0) { + setDistributedProtocolValue(other.getDistributedProtocolValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long instanceCount_ ; + /** + *
+       * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+       * 
+ * + * int64 instance_count = 1; + */ + public long getInstanceCount() { + return instanceCount_; + } + /** + *
+       * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder setInstanceCount(long value) { + + instanceCount_ = value; + onChanged(); + return this; + } + /** + *
+       * The number of ML compute instances to use. For distributed training, provide a value greater than 1.
+       * 
+ * + * int64 instance_count = 1; + */ + public Builder clearInstanceCount() { + + instanceCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object instanceType_ = ""; + /** + *
+       * The ML compute instance type
+       * 
+ * + * string instance_type = 2; + */ + public java.lang.String getInstanceType() { + java.lang.Object ref = instanceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The ML compute instance type
+       * 
+ * + * string instance_type = 2; + */ + public com.google.protobuf.ByteString + getInstanceTypeBytes() { + java.lang.Object ref = instanceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instanceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The ML compute instance type
+       * 
+ * + * string instance_type = 2; + */ + public Builder setInstanceType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + instanceType_ = value; + onChanged(); + return this; + } + /** + *
+       * The ML compute instance type
+       * 
+ * + * string instance_type = 2; + */ + public Builder clearInstanceType() { + + instanceType_ = getDefaultInstance().getInstanceType(); + onChanged(); + return this; + } + /** + *
+       * The ML compute instance type
+       * 
+ * + * string instance_type = 2; + */ + public Builder setInstanceTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + instanceType_ = value; + onChanged(); + return this; + } + + private long volumeSizeInGb_ ; + /** + *
+       * The size of the ML storage volume that you want to provision.
+       * 
+ * + * int64 volume_size_in_gb = 3; + */ + public long getVolumeSizeInGb() { + return volumeSizeInGb_; + } + /** + *
+       * The size of the ML storage volume that you want to provision.
+       * 
+ * + * int64 volume_size_in_gb = 3; + */ + public Builder setVolumeSizeInGb(long value) { + + volumeSizeInGb_ = value; + onChanged(); + return this; + } + /** + *
+       * The size of the ML storage volume that you want to provision.
+       * 
+ * + * int64 volume_size_in_gb = 3; + */ + public Builder clearVolumeSizeInGb() { + + volumeSizeInGb_ = 0L; + onChanged(); + return this; + } + + private int distributedProtocol_ = 0; + /** + *
+       * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+       * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+       * field should be set to the corresponding enum value
+       * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + public int getDistributedProtocolValue() { + return distributedProtocol_; + } + /** + *
+       * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+       * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+       * field should be set to the corresponding enum value
+       * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + public Builder setDistributedProtocolValue(int value) { + distributedProtocol_ = value; + onChanged(); + return this; + } + /** + *
+       * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+       * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+       * field should be set to the corresponding enum value
+       * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value getDistributedProtocol() { + @SuppressWarnings("deprecation") + flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value result = flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value.valueOf(distributedProtocol_); + return result == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value.UNRECOGNIZED : result; + } + /** + *
+       * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+       * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+       * field should be set to the corresponding enum value
+       * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + public Builder setDistributedProtocol(flyteidl.plugins.sagemaker.TrainingJobOuterClass.DistributedProtocol.Value value) { + if (value == null) { + throw new NullPointerException(); + } + + distributedProtocol_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training.
+       * If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this
+       * field should be set to the corresponding enum value
+       * 
+ * + * .flyteidl.plugins.sagemaker.DistributedProtocol.Value distributed_protocol = 4; + */ + public Builder clearDistributedProtocol() { + + distributedProtocol_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJobResourceConfig) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJobResourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJobResourceConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrainingJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.sagemaker.TrainingJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + boolean hasAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification(); + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder(); + + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + boolean hasTrainingJobResourceConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobResourceConfig(); + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobResourceConfigOrBuilder(); + } + /** + *
+   * The spec of a training job. This is mostly a pass-through object
+   * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class TrainingJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.sagemaker.TrainingJob) + TrainingJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainingJob.newBuilder() to construct. + private TrainingJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrainingJob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrainingJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder subBuilder = null; + if (algorithmSpecification_ != null) { + subBuilder = algorithmSpecification_.toBuilder(); + } + algorithmSpecification_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(algorithmSpecification_); + algorithmSpecification_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder subBuilder = null; + if (trainingJobResourceConfig_ != null) { + subBuilder = trainingJobResourceConfig_.toBuilder(); + } + trainingJobResourceConfig_ = input.readMessage(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trainingJobResourceConfig_); + trainingJobResourceConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); + } + + public static final int ALGORITHM_SPECIFICATION_FIELD_NUMBER = 1; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + return getAlgorithmSpecification(); + } + + public static final int TRAINING_JOB_RESOURCE_CONFIG_FIELD_NUMBER = 2; + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobResourceConfig_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public boolean hasTrainingJobResourceConfig() { + return trainingJobResourceConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobResourceConfig() { + return trainingJobResourceConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobResourceConfig_; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobResourceConfigOrBuilder() { + return getTrainingJobResourceConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (algorithmSpecification_ != null) { + output.writeMessage(1, getAlgorithmSpecification()); + } + if (trainingJobResourceConfig_ != null) { + output.writeMessage(2, getTrainingJobResourceConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (algorithmSpecification_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAlgorithmSpecification()); + } + if (trainingJobResourceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTrainingJobResourceConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)) { + return super.equals(obj); + } + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) obj; + + if (hasAlgorithmSpecification() != other.hasAlgorithmSpecification()) return false; + if (hasAlgorithmSpecification()) { + if (!getAlgorithmSpecification() + .equals(other.getAlgorithmSpecification())) return false; + } + if (hasTrainingJobResourceConfig() != other.hasTrainingJobResourceConfig()) return false; + if (hasTrainingJobResourceConfig()) { + if (!getTrainingJobResourceConfig() + .equals(other.getTrainingJobResourceConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAlgorithmSpecification()) { + hash = (37 * hash) + ALGORITHM_SPECIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithmSpecification().hashCode(); + } + if (hasTrainingJobResourceConfig()) { + hash = (37 * hash) + TRAINING_JOB_RESOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrainingJobResourceConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The spec of a training job. This is mostly a pass-through object
+     * https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.sagemaker.TrainingJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.sagemaker.TrainingJob) + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.class, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.Builder.class); + } + + // Construct using flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + if (trainingJobResourceConfigBuilder_ == null) { + trainingJobResourceConfig_ = null; + } else { + trainingJobResourceConfig_ = null; + trainingJobResourceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { + return flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob build() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob buildPartial() { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob result = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(this); + if (algorithmSpecificationBuilder_ == null) { + result.algorithmSpecification_ = algorithmSpecification_; + } else { + result.algorithmSpecification_ = algorithmSpecificationBuilder_.build(); + } + if (trainingJobResourceConfigBuilder_ == null) { + result.trainingJobResourceConfig_ = trainingJobResourceConfig_; + } else { + result.trainingJobResourceConfig_ = trainingJobResourceConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) { + return mergeFrom((flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob other) { + if (other == flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob.getDefaultInstance()) return this; + if (other.hasAlgorithmSpecification()) { + mergeAlgorithmSpecification(other.getAlgorithmSpecification()); + } + if (other.hasTrainingJobResourceConfig()) { + mergeTrainingJobResourceConfig(other.getTrainingJobResourceConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification algorithmSpecification_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> algorithmSpecificationBuilder_; + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public boolean hasAlgorithmSpecification() { + return algorithmSpecificationBuilder_ != null || algorithmSpecification_ != null; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification getAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + return algorithmSpecification_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } else { + return algorithmSpecificationBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + algorithmSpecification_ = value; + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder setAlgorithmSpecification( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder builderForValue) { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = builderForValue.build(); + onChanged(); + } else { + algorithmSpecificationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder mergeAlgorithmSpecification(flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification value) { + if (algorithmSpecificationBuilder_ == null) { + if (algorithmSpecification_ != null) { + algorithmSpecification_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.newBuilder(algorithmSpecification_).mergeFrom(value).buildPartial(); + } else { + algorithmSpecification_ = value; + } + onChanged(); + } else { + algorithmSpecificationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public Builder clearAlgorithmSpecification() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecification_ = null; + onChanged(); + } else { + algorithmSpecification_ = null; + algorithmSpecificationBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder getAlgorithmSpecificationBuilder() { + + onChanged(); + return getAlgorithmSpecificationFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder getAlgorithmSpecificationOrBuilder() { + if (algorithmSpecificationBuilder_ != null) { + return algorithmSpecificationBuilder_.getMessageOrBuilder(); + } else { + return algorithmSpecification_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.getDefaultInstance() : algorithmSpecification_; + } + } + /** + * .flyteidl.plugins.sagemaker.AlgorithmSpecification algorithm_specification = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder> + getAlgorithmSpecificationFieldBuilder() { + if (algorithmSpecificationBuilder_ == null) { + algorithmSpecificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecification.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.AlgorithmSpecificationOrBuilder>( + getAlgorithmSpecification(), + getParentForChildren(), + isClean()); + algorithmSpecification_ = null; + } + return algorithmSpecificationBuilder_; + } + + private flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig trainingJobResourceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder> trainingJobResourceConfigBuilder_; + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public boolean hasTrainingJobResourceConfig() { + return trainingJobResourceConfigBuilder_ != null || trainingJobResourceConfig_ != null; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig getTrainingJobResourceConfig() { + if (trainingJobResourceConfigBuilder_ == null) { + return trainingJobResourceConfig_ == null ? flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobResourceConfig_; + } else { + return trainingJobResourceConfigBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public Builder setTrainingJobResourceConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) { + if (trainingJobResourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingJobResourceConfig_ = value; + onChanged(); + } else { + trainingJobResourceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public Builder setTrainingJobResourceConfig( + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder builderForValue) { + if (trainingJobResourceConfigBuilder_ == null) { + trainingJobResourceConfig_ = builderForValue.build(); + onChanged(); + } else { + trainingJobResourceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public Builder mergeTrainingJobResourceConfig(flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig value) { + if (trainingJobResourceConfigBuilder_ == null) { + if (trainingJobResourceConfig_ != null) { + trainingJobResourceConfig_ = + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.newBuilder(trainingJobResourceConfig_).mergeFrom(value).buildPartial(); + } else { + trainingJobResourceConfig_ = value; + } + onChanged(); + } else { + trainingJobResourceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public Builder clearTrainingJobResourceConfig() { + if (trainingJobResourceConfigBuilder_ == null) { + trainingJobResourceConfig_ = null; + onChanged(); + } else { + trainingJobResourceConfig_ = null; + trainingJobResourceConfigBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder getTrainingJobResourceConfigBuilder() { + + onChanged(); + return getTrainingJobResourceConfigFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder getTrainingJobResourceConfigOrBuilder() { + if (trainingJobResourceConfigBuilder_ != null) { + return trainingJobResourceConfigBuilder_.getMessageOrBuilder(); + } else { + return trainingJobResourceConfig_ == null ? + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.getDefaultInstance() : trainingJobResourceConfig_; + } + } + /** + * .flyteidl.plugins.sagemaker.TrainingJobResourceConfig training_job_resource_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder> + getTrainingJobResourceConfigFieldBuilder() { + if (trainingJobResourceConfigBuilder_ == null) { + trainingJobResourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfig.Builder, flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJobResourceConfigOrBuilder>( + getTrainingJobResourceConfig(), + getParentForChildren(), + isClean()); + trainingJobResourceConfig_ = null; + } + return trainingJobResourceConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.sagemaker.TrainingJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.sagemaker.TrainingJob) + private static final flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob(); + } + + public static flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainingJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrainingJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.plugins.sagemaker.TrainingJobOuterClass.TrainingJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-flyteidl/plugins/sagemaker/training_jo" + + "b.proto\022\032flyteidl.plugins.sagemaker\032\036goo" + + "gle/protobuf/duration.proto\"(\n\tInputMode" + + "\"\033\n\005Value\022\010\n\004FILE\020\000\022\010\n\004PIPE\020\001\"1\n\rAlgorit" + + "hmName\" \n\005Value\022\n\n\006CUSTOM\020\000\022\013\n\007XGBOOST\020\001" + + "\")\n\020InputContentType\"\025\n\005Value\022\014\n\010TEXT_CS" + + "V\020\000\"/\n\020MetricDefinition\022\014\n\004name\030\001 \001(\t\022\r\n" + + "\005regex\030\002 \001(\t\"\327\002\n\026AlgorithmSpecification\022" + + "?\n\ninput_mode\030\001 \001(\0162+.flyteidl.plugins.s" + + "agemaker.InputMode.Value\022G\n\016algorithm_na" + + "me\030\002 \001(\0162/.flyteidl.plugins.sagemaker.Al" + + "gorithmName.Value\022\031\n\021algorithm_version\030\003" + + " \001(\t\022H\n\022metric_definitions\030\004 \003(\0132,.flyte" + + "idl.plugins.sagemaker.MetricDefinition\022N" + + "\n\022input_content_type\030\005 \001(\01622.flyteidl.pl" + + "ugins.sagemaker.InputContentType.Value\"8" + + "\n\023DistributedProtocol\"!\n\005Value\022\017\n\013UNSPEC" + + "IFIED\020\000\022\007\n\003MPI\020\001\"\272\001\n\031TrainingJobResource" + + "Config\022\026\n\016instance_count\030\001 \001(\003\022\025\n\rinstan" + + "ce_type\030\002 \001(\t\022\031\n\021volume_size_in_gb\030\003 \001(\003" + + "\022S\n\024distributed_protocol\030\004 \001(\01625.flyteid" + + "l.plugins.sagemaker.DistributedProtocol." + + "Value\"\277\001\n\013TrainingJob\022S\n\027algorithm_speci" + + "fication\030\001 \001(\01322.flyteidl.plugins.sagema" + + "ker.AlgorithmSpecification\022[\n\034training_j" + + "ob_resource_config\030\002 \001(\01325.flyteidl.plug" + + "ins.sagemaker.TrainingJobResourceConfigB" + + "9Z7github.com/flyteorg/flyteidl/gen/pb-g" + + "o/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_sagemaker_InputMode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_InputMode_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmName_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_sagemaker_InputContentType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_InputContentType_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_MetricDefinition_descriptor, + new java.lang.String[] { "Name", "Regex", }); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_AlgorithmSpecification_descriptor, + new java.lang.String[] { "InputMode", "AlgorithmName", "AlgorithmVersion", "MetricDefinitions", "InputContentType", }); + internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_DistributedProtocol_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJobResourceConfig_descriptor, + new java.lang.String[] { "InstanceCount", "InstanceType", "VolumeSizeInGb", "DistributedProtocol", }); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_plugins_sagemaker_TrainingJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_sagemaker_TrainingJob_descriptor, + new java.lang.String[] { "AlgorithmSpecification", "TrainingJobResourceConfig", }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Admin.java b/flyteidl/gen/pb-java/flyteidl/service/Admin.java new file mode 100644 index 0000000000..193fc74e20 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Admin.java @@ -0,0 +1,346 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +package flyteidl.service; + +public final class Admin { + private Admin() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/service/admin.proto\022\020flyteidl" + + ".service\032\034google/api/annotations.proto\032\034" + + "flyteidl/admin/project.proto\032.flyteidl/a" + + "dmin/project_domain_attributes.proto\032\'fl" + + "yteidl/admin/project_attributes.proto\032\031f" + + "lyteidl/admin/task.proto\032\035flyteidl/admin" + + "/workflow.proto\032(flyteidl/admin/workflow" + + "_attributes.proto\032 flyteidl/admin/launch" + + "_plan.proto\032\032flyteidl/admin/event.proto\032" + + "\036flyteidl/admin/execution.proto\032\'flyteid" + + "l/admin/matchable_resource.proto\032#flytei" + + "dl/admin/node_execution.proto\032#flyteidl/" + + "admin/task_execution.proto\032\034flyteidl/adm" + + "in/version.proto\032\033flyteidl/admin/common." + + "proto\032\'flyteidl/admin/description_entity" + + ".proto2\204N\n\014AdminService\022m\n\nCreateTask\022!." + + "flyteidl.admin.TaskCreateRequest\032\".flyte" + + "idl.admin.TaskCreateResponse\"\030\202\323\344\223\002\022\"\r/a" + + "pi/v1/tasks:\001*\022\210\001\n\007GetTask\022 .flyteidl.ad" + + "min.ObjectGetRequest\032\024.flyteidl.admin.Ta" + + "sk\"E\202\323\344\223\002?\022=/api/v1/tasks/{id.project}/{" + + "id.domain}/{id.name}/{id.version}\022\227\001\n\013Li" + + "stTaskIds\0220.flyteidl.admin.NamedEntityId" + + "entifierListRequest\032).flyteidl.admin.Nam" + + "edEntityIdentifierList\"+\202\323\344\223\002%\022#/api/v1/" + + "task_ids/{project}/{domain}\022\256\001\n\tListTask" + + "s\022#.flyteidl.admin.ResourceListRequest\032\030" + + ".flyteidl.admin.TaskList\"b\202\323\344\223\002\\\0220/api/v" + + "1/tasks/{id.project}/{id.domain}/{id.nam" + + "e}Z(\022&/api/v1/tasks/{id.project}/{id.dom" + + "ain}\022}\n\016CreateWorkflow\022%.flyteidl.admin." + + "WorkflowCreateRequest\032&.flyteidl.admin.W" + + "orkflowCreateResponse\"\034\202\323\344\223\002\026\"\021/api/v1/w" + + "orkflows:\001*\022\224\001\n\013GetWorkflow\022 .flyteidl.a" + + "dmin.ObjectGetRequest\032\030.flyteidl.admin.W" + + "orkflow\"I\202\323\344\223\002C\022A/api/v1/workflows/{id.p" + + "roject}/{id.domain}/{id.name}/{id.versio" + + "n}\022\237\001\n\017ListWorkflowIds\0220.flyteidl.admin." + + "NamedEntityIdentifierListRequest\032).flyte" + + "idl.admin.NamedEntityIdentifierList\"/\202\323\344" + + "\223\002)\022\'/api/v1/workflow_ids/{project}/{dom" + + "ain}\022\276\001\n\rListWorkflows\022#.flyteidl.admin." + + "ResourceListRequest\032\034.flyteidl.admin.Wor" + + "kflowList\"j\202\323\344\223\002d\0224/api/v1/workflows/{id" + + ".project}/{id.domain}/{id.name}Z,\022*/api/" + + "v1/workflows/{id.project}/{id.domain}\022\206\001" + + "\n\020CreateLaunchPlan\022\'.flyteidl.admin.Laun" + + "chPlanCreateRequest\032(.flyteidl.admin.Lau" + + "nchPlanCreateResponse\"\037\202\323\344\223\002\031\"\024/api/v1/l" + + "aunch_plans:\001*\022\233\001\n\rGetLaunchPlan\022 .flyte" + + "idl.admin.ObjectGetRequest\032\032.flyteidl.ad" + + "min.LaunchPlan\"L\202\323\344\223\002F\022D/api/v1/launch_p" + + "lans/{id.project}/{id.domain}/{id.name}/" + + "{id.version}\022\242\001\n\023GetActiveLaunchPlan\022\'.f" + + "lyteidl.admin.ActiveLaunchPlanRequest\032\032." + + "flyteidl.admin.LaunchPlan\"F\202\323\344\223\002@\022>/api/" + + "v1/active_launch_plans/{id.project}/{id." + + "domain}/{id.name}\022\234\001\n\025ListActiveLaunchPl" + + "ans\022+.flyteidl.admin.ActiveLaunchPlanLis" + + "tRequest\032\036.flyteidl.admin.LaunchPlanList" + + "\"6\202\323\344\223\0020\022./api/v1/active_launch_plans/{p" + + "roject}/{domain}\022\244\001\n\021ListLaunchPlanIds\0220" + + ".flyteidl.admin.NamedEntityIdentifierLis" + + "tRequest\032).flyteidl.admin.NamedEntityIde" + + "ntifierList\"2\202\323\344\223\002,\022*/api/v1/launch_plan" + + "_ids/{project}/{domain}\022\310\001\n\017ListLaunchPl" + + "ans\022#.flyteidl.admin.ResourceListRequest" + + "\032\036.flyteidl.admin.LaunchPlanList\"p\202\323\344\223\002j" + + "\0227/api/v1/launch_plans/{id.project}/{id." + + "domain}/{id.name}Z/\022-/api/v1/launch_plan" + + "s/{id.project}/{id.domain}\022\266\001\n\020UpdateLau" + + "nchPlan\022\'.flyteidl.admin.LaunchPlanUpdat" + + "eRequest\032(.flyteidl.admin.LaunchPlanUpda" + + "teResponse\"O\202\323\344\223\002I\032D/api/v1/launch_plans" + + "/{id.project}/{id.domain}/{id.name}/{id." + + "version}:\001*\022\201\001\n\017CreateExecution\022&.flytei" + + "dl.admin.ExecutionCreateRequest\032\'.flytei" + + "dl.admin.ExecutionCreateResponse\"\035\202\323\344\223\002\027" + + "\"\022/api/v1/executions:\001*\022\216\001\n\021RelaunchExec" + + "ution\022(.flyteidl.admin.ExecutionRelaunch" + + "Request\032\'.flyteidl.admin.ExecutionCreate" + + "Response\"&\202\323\344\223\002 \"\033/api/v1/executions/rel" + + "aunch:\001*\022\213\001\n\020RecoverExecution\022\'.flyteidl" + + ".admin.ExecutionRecoverRequest\032\'.flyteid" + + "l.admin.ExecutionCreateResponse\"%\202\323\344\223\002\037\"" + + "\032/api/v1/executions/recover:\001*\022\225\001\n\014GetEx" + + "ecution\022+.flyteidl.admin.WorkflowExecuti" + + "onGetRequest\032\031.flyteidl.admin.Execution\"" + + "=\202\323\344\223\0027\0225/api/v1/executions/{id.project}" + + "/{id.domain}/{id.name}\022\244\001\n\017UpdateExecuti" + + "on\022&.flyteidl.admin.ExecutionUpdateReque" + + "st\032\'.flyteidl.admin.ExecutionUpdateRespo" + + "nse\"@\202\323\344\223\002:\0325/api/v1/executions/{id.proj" + + "ect}/{id.domain}/{id.name}:\001*\022\271\001\n\020GetExe" + + "cutionData\022/.flyteidl.admin.WorkflowExec" + + "utionGetDataRequest\0320.flyteidl.admin.Wor" + + "kflowExecutionGetDataResponse\"B\202\323\344\223\002<\022:/" + + "api/v1/data/executions/{id.project}/{id." + + "domain}/{id.name}\022\211\001\n\016ListExecutions\022#.f" + + "lyteidl.admin.ResourceListRequest\032\035.flyt" + + "eidl.admin.ExecutionList\"3\202\323\344\223\002-\022+/api/v" + + "1/executions/{id.project}/{id.domain}\022\255\001" + + "\n\022TerminateExecution\022).flyteidl.admin.Ex" + + "ecutionTerminateRequest\032*.flyteidl.admin" + + ".ExecutionTerminateResponse\"@\202\323\344\223\002:*5/ap" + + "i/v1/executions/{id.project}/{id.domain}" + + "/{id.name}:\001*\022\322\001\n\020GetNodeExecution\022\'.fly" + + "teidl.admin.NodeExecutionGetRequest\032\035.fl" + + "yteidl.admin.NodeExecution\"v\202\323\344\223\002p\022n/api" + + "/v1/node_executions/{id.execution_id.pro" + + "ject}/{id.execution_id.domain}/{id.execu" + + "tion_id.name}/{id.node_id}\022\336\001\n\022ListNodeE" + + "xecutions\022(.flyteidl.admin.NodeExecution" + + "ListRequest\032!.flyteidl.admin.NodeExecuti" + + "onList\"{\202\323\344\223\002u\022s/api/v1/node_executions/" + + "{workflow_execution_id.project}/{workflo" + + "w_execution_id.domain}/{workflow_executi" + + "on_id.name}\022\245\004\n\031ListNodeExecutionsForTas" + + "k\022/.flyteidl.admin.NodeExecutionForTaskL" + + "istRequest\032!.flyteidl.admin.NodeExecutio" + + "nList\"\263\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_" + + "executions/{task_execution_id.node_execu" + + "tion_id.execution_id.project}/{task_exec" + + "ution_id.node_execution_id.execution_id." + + "domain}/{task_execution_id.node_executio" + + "n_id.execution_id.name}/{task_execution_" + + "id.node_execution_id.node_id}/{task_exec" + + "ution_id.task_id.project}/{task_executio" + + "n_id.task_id.domain}/{task_execution_id." + + "task_id.name}/{task_execution_id.task_id" + + ".version}/{task_execution_id.retry_attem" + + "pt}\022\356\001\n\024GetNodeExecutionData\022+.flyteidl." + + "admin.NodeExecutionGetDataRequest\032,.flyt" + + "eidl.admin.NodeExecutionGetDataResponse\"" + + "{\202\323\344\223\002u\022s/api/v1/data/node_executions/{i" + + "d.execution_id.project}/{id.execution_id" + + ".domain}/{id.execution_id.name}/{id.node" + + "_id}\022\177\n\017RegisterProject\022&.flyteidl.admin" + + ".ProjectRegisterRequest\032\'.flyteidl.admin" + + ".ProjectRegisterResponse\"\033\202\323\344\223\002\025\"\020/api/v" + + "1/projects:\001*\022q\n\rUpdateProject\022\027.flyteid" + + "l.admin.Project\032%.flyteidl.admin.Project" + + "UpdateResponse\" \202\323\344\223\002\032\032\025/api/v1/projects" + + "/{id}:\001*\022f\n\014ListProjects\022\".flyteidl.admi" + + "n.ProjectListRequest\032\030.flyteidl.admin.Pr" + + "ojects\"\030\202\323\344\223\002\022\022\020/api/v1/projects\022\231\001\n\023Cre" + + "ateWorkflowEvent\022-.flyteidl.admin.Workfl" + + "owExecutionEventRequest\032..flyteidl.admin" + + ".WorkflowExecutionEventResponse\"#\202\323\344\223\002\035\"" + + "\030/api/v1/events/workflows:\001*\022\211\001\n\017CreateN" + + "odeEvent\022).flyteidl.admin.NodeExecutionE" + + "ventRequest\032*.flyteidl.admin.NodeExecuti" + + "onEventResponse\"\037\202\323\344\223\002\031\"\024/api/v1/events/" + + "nodes:\001*\022\211\001\n\017CreateTaskEvent\022).flyteidl." + + "admin.TaskExecutionEventRequest\032*.flytei" + + "dl.admin.TaskExecutionEventResponse\"\037\202\323\344" + + "\223\002\031\"\024/api/v1/events/tasks:\001*\022\200\003\n\020GetTask" + + "Execution\022\'.flyteidl.admin.TaskExecution" + + "GetRequest\032\035.flyteidl.admin.TaskExecutio" + + "n\"\243\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{i" + + "d.node_execution_id.execution_id.project" + + "}/{id.node_execution_id.execution_id.dom" + + "ain}/{id.node_execution_id.execution_id." + + "name}/{id.node_execution_id.node_id}/{id" + + ".task_id.project}/{id.task_id.domain}/{i" + + "d.task_id.name}/{id.task_id.version}/{id" + + ".retry_attempt}\022\230\002\n\022ListTaskExecutions\022(" + + ".flyteidl.admin.TaskExecutionListRequest" + + "\032!.flyteidl.admin.TaskExecutionList\"\264\001\202\323" + + "\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_ex" + + "ecution_id.execution_id.project}/{node_e" + + "xecution_id.execution_id.domain}/{node_e" + + "xecution_id.execution_id.name}/{node_exe" + + "cution_id.node_id}\022\234\003\n\024GetTaskExecutionD" + + "ata\022+.flyteidl.admin.TaskExecutionGetDat" + + "aRequest\032,.flyteidl.admin.TaskExecutionG" + + "etDataResponse\"\250\002\202\323\344\223\002\241\002\022\236\002/api/v1/data/" + + "task_executions/{id.node_execution_id.ex" + + "ecution_id.project}/{id.node_execution_i" + + "d.execution_id.domain}/{id.node_executio" + + "n_id.execution_id.name}/{id.node_executi" + + "on_id.node_id}/{id.task_id.project}/{id." + + "task_id.domain}/{id.task_id.name}/{id.ta" + + "sk_id.version}/{id.retry_attempt}\022\343\001\n\035Up" + + "dateProjectDomainAttributes\0224.flyteidl.a" + + "dmin.ProjectDomainAttributesUpdateReques" + + "t\0325.flyteidl.admin.ProjectDomainAttribut" + + "esUpdateResponse\"U\202\323\344\223\002O\032J/api/v1/projec" + + "t_domain_attributes/{attributes.project}" + + "/{attributes.domain}:\001*\022\301\001\n\032GetProjectDo" + + "mainAttributes\0221.flyteidl.admin.ProjectD" + + "omainAttributesGetRequest\0322.flyteidl.adm" + + "in.ProjectDomainAttributesGetResponse\"<\202" + + "\323\344\223\0026\0224/api/v1/project_domain_attributes" + + "/{project}/{domain}\022\315\001\n\035DeleteProjectDom" + + "ainAttributes\0224.flyteidl.admin.ProjectDo" + + "mainAttributesDeleteRequest\0325.flyteidl.a" + + "dmin.ProjectDomainAttributesDeleteRespon" + + "se\"?\202\323\344\223\0029*4/api/v1/project_domain_attri" + + "butes/{project}/{domain}:\001*\022\266\001\n\027UpdatePr" + + "ojectAttributes\022..flyteidl.admin.Project" + + "AttributesUpdateRequest\032/.flyteidl.admin" + + ".ProjectAttributesUpdateResponse\":\202\323\344\223\0024" + + "\032//api/v1/project_attributes/{attributes" + + ".project}:\001*\022\237\001\n\024GetProjectAttributes\022+." + + "flyteidl.admin.ProjectAttributesGetReque" + + "st\032,.flyteidl.admin.ProjectAttributesGet" + + "Response\",\202\323\344\223\002&\022$/api/v1/project_attrib" + + "utes/{project}\022\253\001\n\027DeleteProjectAttribut" + + "es\022..flyteidl.admin.ProjectAttributesDel" + + "eteRequest\032/.flyteidl.admin.ProjectAttri" + + "butesDeleteResponse\"/\202\323\344\223\002)*$/api/v1/pro" + + "ject_attributes/{project}:\001*\022\344\001\n\030UpdateW" + + "orkflowAttributes\022/.flyteidl.admin.Workf" + + "lowAttributesUpdateRequest\0320.flyteidl.ad" + + "min.WorkflowAttributesUpdateResponse\"e\202\323" + + "\344\223\002_\032Z/api/v1/workflow_attributes/{attri" + + "butes.project}/{attributes.domain}/{attr" + + "ibutes.workflow}:\001*\022\267\001\n\025GetWorkflowAttri" + + "butes\022,.flyteidl.admin.WorkflowAttribute" + + "sGetRequest\032-.flyteidl.admin.WorkflowAtt" + + "ributesGetResponse\"A\202\323\344\223\002;\0229/api/v1/work" + + "flow_attributes/{project}/{domain}/{work" + + "flow}\022\303\001\n\030DeleteWorkflowAttributes\022/.fly" + + "teidl.admin.WorkflowAttributesDeleteRequ" + + "est\0320.flyteidl.admin.WorkflowAttributesD" + + "eleteResponse\"D\202\323\344\223\002>*9/api/v1/workflow_" + + "attributes/{project}/{domain}/{workflow}" + + ":\001*\022\240\001\n\027ListMatchableAttributes\022..flytei" + + "dl.admin.ListMatchableAttributesRequest\032" + + "/.flyteidl.admin.ListMatchableAttributes" + + "Response\"$\202\323\344\223\002\036\022\034/api/v1/matchable_attr" + + "ibutes\022\237\001\n\021ListNamedEntities\022&.flyteidl." + + "admin.NamedEntityListRequest\032\037.flyteidl." + + "admin.NamedEntityList\"A\202\323\344\223\002;\0229/api/v1/n" + + "amed_entities/{resource_type}/{project}/" + + "{domain}\022\247\001\n\016GetNamedEntity\022%.flyteidl.a" + + "dmin.NamedEntityGetRequest\032\033.flyteidl.ad" + + "min.NamedEntity\"Q\202\323\344\223\002K\022I/api/v1/named_e" + + "ntities/{resource_type}/{id.project}/{id" + + ".domain}/{id.name}\022\276\001\n\021UpdateNamedEntity" + + "\022(.flyteidl.admin.NamedEntityUpdateReque" + + "st\032).flyteidl.admin.NamedEntityUpdateRes" + + "ponse\"T\202\323\344\223\002N\032I/api/v1/named_entities/{r" + + "esource_type}/{id.project}/{id.domain}/{" + + "id.name}:\001*\022l\n\nGetVersion\022!.flyteidl.adm" + + "in.GetVersionRequest\032\".flyteidl.admin.Ge" + + "tVersionResponse\"\027\202\323\344\223\002\021\022\017/api/v1/versio" + + "n\022\304\001\n\024GetDescriptionEntity\022 .flyteidl.ad" + + "min.ObjectGetRequest\032!.flyteidl.admin.De" + + "scriptionEntity\"g\202\323\344\223\002a\022_/api/v1/descrip" + + "tion_entities/{id.resource_type}/{id.pro" + + "ject}/{id.domain}/{id.name}/{id.version}" + + "\022\222\002\n\027ListDescriptionEntities\022,.flyteidl." + + "admin.DescriptionEntityListRequest\032%.fly" + + "teidl.admin.DescriptionEntityList\"\241\001\202\323\344\223" + + "\002\232\001\022O/api/v1/description_entities/{resou" + + "rce_type}/{id.project}/{id.domain}/{id.n" + + "ame}ZG\022E/api/v1/description_entities/{re" + + "source_type}/{id.project}/{id.domain}\022\305\001" + + "\n\023GetExecutionMetrics\0222.flyteidl.admin.W" + + "orkflowExecutionGetMetricsRequest\0323.flyt" + + "eidl.admin.WorkflowExecutionGetMetricsRe" + + "sponse\"E\202\323\344\223\002?\022=/api/v1/metrics/executio" + + "ns/{id.project}/{id.domain}/{id.name}B9Z" + + "7github.com/flyteorg/flyteidl/gen/pb-go/" + + "flyteidl/serviceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + flyteidl.admin.ProjectOuterClass.getDescriptor(), + flyteidl.admin.ProjectDomainAttributesOuterClass.getDescriptor(), + flyteidl.admin.ProjectAttributesOuterClass.getDescriptor(), + flyteidl.admin.TaskOuterClass.getDescriptor(), + flyteidl.admin.WorkflowOuterClass.getDescriptor(), + flyteidl.admin.WorkflowAttributesOuterClass.getDescriptor(), + flyteidl.admin.LaunchPlanOuterClass.getDescriptor(), + flyteidl.admin.Event.getDescriptor(), + flyteidl.admin.ExecutionOuterClass.getDescriptor(), + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), + flyteidl.admin.NodeExecutionOuterClass.getDescriptor(), + flyteidl.admin.TaskExecutionOuterClass.getDescriptor(), + flyteidl.admin.VersionOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(), + }, assigner); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + flyteidl.admin.ProjectOuterClass.getDescriptor(); + flyteidl.admin.ProjectDomainAttributesOuterClass.getDescriptor(); + flyteidl.admin.ProjectAttributesOuterClass.getDescriptor(); + flyteidl.admin.TaskOuterClass.getDescriptor(); + flyteidl.admin.WorkflowOuterClass.getDescriptor(); + flyteidl.admin.WorkflowAttributesOuterClass.getDescriptor(); + flyteidl.admin.LaunchPlanOuterClass.getDescriptor(); + flyteidl.admin.Event.getDescriptor(); + flyteidl.admin.ExecutionOuterClass.getDescriptor(); + flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); + flyteidl.admin.NodeExecutionOuterClass.getDescriptor(); + flyteidl.admin.TaskExecutionOuterClass.getDescriptor(); + flyteidl.admin.VersionOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Agent.java b/flyteidl/gen/pb-java/flyteidl/service/Agent.java new file mode 100644 index 0000000000..592b30c653 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Agent.java @@ -0,0 +1,55 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/agent.proto + +package flyteidl.service; + +public final class Agent { + private Agent() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/service/agent.proto\022\020flyteidl" + + ".service\032\032flyteidl/admin/agent.proto2\217\002\n" + + "\021AsyncAgentService\022U\n\nCreateTask\022!.flyte" + + "idl.admin.CreateTaskRequest\032\".flyteidl.a" + + "dmin.CreateTaskResponse\"\000\022L\n\007GetTask\022\036.f" + + "lyteidl.admin.GetTaskRequest\032\037.flyteidl." + + "admin.GetTaskResponse\"\000\022U\n\nDeleteTask\022!." + + "flyteidl.admin.DeleteTaskRequest\032\".flyte" + + "idl.admin.DeleteTaskResponse\"\000B9Z7github" + + ".com/flyteorg/flyteidl/gen/pb-go/flyteid" + + "l/serviceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Agent.getDescriptor(), + }, assigner); + flyteidl.admin.Agent.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Auth.java b/flyteidl/gen/pb-java/flyteidl/service/Auth.java new file mode 100644 index 0000000000..c56a695e7b --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Auth.java @@ -0,0 +1,5137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/auth.proto + +package flyteidl.service; + +public final class Auth { + private Auth() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface OAuth2MetadataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.OAuth2MetadataRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.service.OAuth2MetadataRequest} + */ + public static final class OAuth2MetadataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.OAuth2MetadataRequest) + OAuth2MetadataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use OAuth2MetadataRequest.newBuilder() to construct. + private OAuth2MetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OAuth2MetadataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OAuth2MetadataRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.OAuth2MetadataRequest.class, flyteidl.service.Auth.OAuth2MetadataRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Auth.OAuth2MetadataRequest)) { + return super.equals(obj); + } + flyteidl.service.Auth.OAuth2MetadataRequest other = (flyteidl.service.Auth.OAuth2MetadataRequest) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Auth.OAuth2MetadataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.service.OAuth2MetadataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.OAuth2MetadataRequest) + flyteidl.service.Auth.OAuth2MetadataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.OAuth2MetadataRequest.class, flyteidl.service.Auth.OAuth2MetadataRequest.Builder.class); + } + + // Construct using flyteidl.service.Auth.OAuth2MetadataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataRequest getDefaultInstanceForType() { + return flyteidl.service.Auth.OAuth2MetadataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataRequest build() { + flyteidl.service.Auth.OAuth2MetadataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataRequest buildPartial() { + flyteidl.service.Auth.OAuth2MetadataRequest result = new flyteidl.service.Auth.OAuth2MetadataRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Auth.OAuth2MetadataRequest) { + return mergeFrom((flyteidl.service.Auth.OAuth2MetadataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Auth.OAuth2MetadataRequest other) { + if (other == flyteidl.service.Auth.OAuth2MetadataRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Auth.OAuth2MetadataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Auth.OAuth2MetadataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.OAuth2MetadataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataRequest) + private static final flyteidl.service.Auth.OAuth2MetadataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Auth.OAuth2MetadataRequest(); + } + + public static flyteidl.service.Auth.OAuth2MetadataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuth2MetadataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OAuth2MetadataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OAuth2MetadataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.OAuth2MetadataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+     * issuer.
+     * 
+ * + * string issuer = 1; + */ + java.lang.String getIssuer(); + /** + *
+     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+     * issuer.
+     * 
+ * + * string issuer = 1; + */ + com.google.protobuf.ByteString + getIssuerBytes(); + + /** + *
+     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+     * supported that use the authorization endpoint.
+     * 
+ * + * string authorization_endpoint = 2; + */ + java.lang.String getAuthorizationEndpoint(); + /** + *
+     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+     * supported that use the authorization endpoint.
+     * 
+ * + * string authorization_endpoint = 2; + */ + com.google.protobuf.ByteString + getAuthorizationEndpointBytes(); + + /** + *
+     * URL of the authorization server's token endpoint [RFC6749].
+     * 
+ * + * string token_endpoint = 3; + */ + java.lang.String getTokenEndpoint(); + /** + *
+     * URL of the authorization server's token endpoint [RFC6749].
+     * 
+ * + * string token_endpoint = 3; + */ + com.google.protobuf.ByteString + getTokenEndpointBytes(); + + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + java.util.List + getResponseTypesSupportedList(); + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + int getResponseTypesSupportedCount(); + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + java.lang.String getResponseTypesSupported(int index); + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + com.google.protobuf.ByteString + getResponseTypesSupportedBytes(int index); + + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + java.util.List + getScopesSupportedList(); + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + int getScopesSupportedCount(); + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + java.lang.String getScopesSupported(int index); + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + com.google.protobuf.ByteString + getScopesSupportedBytes(int index); + + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + java.util.List + getTokenEndpointAuthMethodsSupportedList(); + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + int getTokenEndpointAuthMethodsSupportedCount(); + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + java.lang.String getTokenEndpointAuthMethodsSupported(int index); + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + com.google.protobuf.ByteString + getTokenEndpointAuthMethodsSupportedBytes(int index); + + /** + *
+     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+     * client uses to validate signatures from the authorization server.
+     * 
+ * + * string jwks_uri = 7; + */ + java.lang.String getJwksUri(); + /** + *
+     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+     * client uses to validate signatures from the authorization server.
+     * 
+ * + * string jwks_uri = 7; + */ + com.google.protobuf.ByteString + getJwksUriBytes(); + + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + java.util.List + getCodeChallengeMethodsSupportedList(); + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + int getCodeChallengeMethodsSupportedCount(); + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + java.lang.String getCodeChallengeMethodsSupported(int index); + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + com.google.protobuf.ByteString + getCodeChallengeMethodsSupportedBytes(int index); + + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + java.util.List + getGrantTypesSupportedList(); + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + int getGrantTypesSupportedCount(); + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + java.lang.String getGrantTypesSupported(int index); + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + com.google.protobuf.ByteString + getGrantTypesSupportedBytes(int index); + + /** + *
+     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+     * 
+ * + * string device_authorization_endpoint = 10; + */ + java.lang.String getDeviceAuthorizationEndpoint(); + /** + *
+     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+     * 
+ * + * string device_authorization_endpoint = 10; + */ + com.google.protobuf.ByteString + getDeviceAuthorizationEndpointBytes(); + } + /** + *
+   * OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata
+   * as defined in https://tools.ietf.org/html/rfc8414
+   * 
+ * + * Protobuf type {@code flyteidl.service.OAuth2MetadataResponse} + */ + public static final class OAuth2MetadataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.OAuth2MetadataResponse) + OAuth2MetadataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use OAuth2MetadataResponse.newBuilder() to construct. + private OAuth2MetadataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OAuth2MetadataResponse() { + issuer_ = ""; + authorizationEndpoint_ = ""; + tokenEndpoint_ = ""; + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + jwksUri_ = ""; + codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + deviceAuthorizationEndpoint_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OAuth2MetadataResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + issuer_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + authorizationEndpoint_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + tokenEndpoint_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + responseTypesSupported_.add(s); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + scopesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + scopesSupported_.add(s); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + tokenEndpointAuthMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + tokenEndpointAuthMethodsSupported_.add(s); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + jwksUri_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000080) != 0)) { + codeChallengeMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000080; + } + codeChallengeMethodsSupported_.add(s); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000100) != 0)) { + grantTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000100; + } + grantTypesSupported_.add(s); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + deviceAuthorizationEndpoint_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + scopesSupported_ = scopesSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + tokenEndpointAuthMethodsSupported_ = tokenEndpointAuthMethodsSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) != 0)) { + codeChallengeMethodsSupported_ = codeChallengeMethodsSupported_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000100) != 0)) { + grantTypesSupported_ = grantTypesSupported_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.OAuth2MetadataResponse.class, flyteidl.service.Auth.OAuth2MetadataResponse.Builder.class); + } + + private int bitField0_; + public static final int ISSUER_FIELD_NUMBER = 1; + private volatile java.lang.Object issuer_; + /** + *
+     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+     * issuer.
+     * 
+ * + * string issuer = 1; + */ + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } + } + /** + *
+     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+     * issuer.
+     * 
+ * + * string issuer = 1; + */ + public com.google.protobuf.ByteString + getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHORIZATION_ENDPOINT_FIELD_NUMBER = 2; + private volatile java.lang.Object authorizationEndpoint_; + /** + *
+     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+     * supported that use the authorization endpoint.
+     * 
+ * + * string authorization_endpoint = 2; + */ + public java.lang.String getAuthorizationEndpoint() { + java.lang.Object ref = authorizationEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationEndpoint_ = s; + return s; + } + } + /** + *
+     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+     * supported that use the authorization endpoint.
+     * 
+ * + * string authorization_endpoint = 2; + */ + public com.google.protobuf.ByteString + getAuthorizationEndpointBytes() { + java.lang.Object ref = authorizationEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizationEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 3; + private volatile java.lang.Object tokenEndpoint_; + /** + *
+     * URL of the authorization server's token endpoint [RFC6749].
+     * 
+ * + * string token_endpoint = 3; + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } + } + /** + *
+     * URL of the authorization server's token endpoint [RFC6749].
+     * 
+ * + * string token_endpoint = 3; + */ + public com.google.protobuf.ByteString + getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList responseTypesSupported_; + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + public com.google.protobuf.ProtocolStringList + getResponseTypesSupportedList() { + return responseTypesSupported_; + } + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + *
+     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+     * 
+ * + * repeated string response_types_supported = 4; + */ + public com.google.protobuf.ByteString + getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + + public static final int SCOPES_SUPPORTED_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList scopesSupported_; + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + public com.google.protobuf.ProtocolStringList + getScopesSupportedList() { + return scopesSupported_; + } + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + public int getScopesSupportedCount() { + return scopesSupported_.size(); + } + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + public java.lang.String getScopesSupported(int index) { + return scopesSupported_.get(index); + } + /** + *
+     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+     * 
+ * + * repeated string scopes_supported = 5; + */ + public com.google.protobuf.ByteString + getScopesSupportedBytes(int index) { + return scopesSupported_.getByteString(index); + } + + public static final int TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList tokenEndpointAuthMethodsSupported_; + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public com.google.protobuf.ProtocolStringList + getTokenEndpointAuthMethodsSupportedList() { + return tokenEndpointAuthMethodsSupported_; + } + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public int getTokenEndpointAuthMethodsSupportedCount() { + return tokenEndpointAuthMethodsSupported_.size(); + } + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public java.lang.String getTokenEndpointAuthMethodsSupported(int index) { + return tokenEndpointAuthMethodsSupported_.get(index); + } + /** + *
+     * JSON array containing a list of client authentication methods supported by this token endpoint.
+     * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public com.google.protobuf.ByteString + getTokenEndpointAuthMethodsSupportedBytes(int index) { + return tokenEndpointAuthMethodsSupported_.getByteString(index); + } + + public static final int JWKS_URI_FIELD_NUMBER = 7; + private volatile java.lang.Object jwksUri_; + /** + *
+     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+     * client uses to validate signatures from the authorization server.
+     * 
+ * + * string jwks_uri = 7; + */ + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } + } + /** + *
+     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+     * client uses to validate signatures from the authorization server.
+     * 
+ * + * string jwks_uri = 7; + */ + public com.google.protobuf.ByteString + getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList codeChallengeMethodsSupported_; + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public com.google.protobuf.ProtocolStringList + getCodeChallengeMethodsSupportedList() { + return codeChallengeMethodsSupported_; + } + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public int getCodeChallengeMethodsSupportedCount() { + return codeChallengeMethodsSupported_.size(); + } + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public java.lang.String getCodeChallengeMethodsSupported(int index) { + return codeChallengeMethodsSupported_.get(index); + } + /** + *
+     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+     * this authorization server.
+     * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public com.google.protobuf.ByteString + getCodeChallengeMethodsSupportedBytes(int index) { + return codeChallengeMethodsSupported_.getByteString(index); + } + + public static final int GRANT_TYPES_SUPPORTED_FIELD_NUMBER = 9; + private com.google.protobuf.LazyStringList grantTypesSupported_; + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + public com.google.protobuf.ProtocolStringList + getGrantTypesSupportedList() { + return grantTypesSupported_; + } + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + public int getGrantTypesSupportedCount() { + return grantTypesSupported_.size(); + } + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + public java.lang.String getGrantTypesSupported(int index) { + return grantTypesSupported_.get(index); + } + /** + *
+     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+     * 
+ * + * repeated string grant_types_supported = 9; + */ + public com.google.protobuf.ByteString + getGrantTypesSupportedBytes(int index) { + return grantTypesSupported_.getByteString(index); + } + + public static final int DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER = 10; + private volatile java.lang.Object deviceAuthorizationEndpoint_; + /** + *
+     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+     * 
+ * + * string device_authorization_endpoint = 10; + */ + public java.lang.String getDeviceAuthorizationEndpoint() { + java.lang.Object ref = deviceAuthorizationEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceAuthorizationEndpoint_ = s; + return s; + } + } + /** + *
+     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+     * 
+ * + * string device_authorization_endpoint = 10; + */ + public com.google.protobuf.ByteString + getDeviceAuthorizationEndpointBytes() { + java.lang.Object ref = deviceAuthorizationEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceAuthorizationEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIssuerBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); + } + if (!getAuthorizationEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authorizationEndpoint_); + } + if (!getTokenEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tokenEndpoint_); + } + for (int i = 0; i < responseTypesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseTypesSupported_.getRaw(i)); + } + for (int i = 0; i < scopesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, scopesSupported_.getRaw(i)); + } + for (int i = 0; i < tokenEndpointAuthMethodsSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tokenEndpointAuthMethodsSupported_.getRaw(i)); + } + if (!getJwksUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, jwksUri_); + } + for (int i = 0; i < codeChallengeMethodsSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codeChallengeMethodsSupported_.getRaw(i)); + } + for (int i = 0; i < grantTypesSupported_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, grantTypesSupported_.getRaw(i)); + } + if (!getDeviceAuthorizationEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, deviceAuthorizationEndpoint_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIssuerBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); + } + if (!getAuthorizationEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authorizationEndpoint_); + } + if (!getTokenEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tokenEndpoint_); + } + { + int dataSize = 0; + for (int i = 0; i < responseTypesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(responseTypesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getResponseTypesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < scopesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(scopesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < tokenEndpointAuthMethodsSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(tokenEndpointAuthMethodsSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getTokenEndpointAuthMethodsSupportedList().size(); + } + if (!getJwksUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, jwksUri_); + } + { + int dataSize = 0; + for (int i = 0; i < codeChallengeMethodsSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(codeChallengeMethodsSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getCodeChallengeMethodsSupportedList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < grantTypesSupported_.size(); i++) { + dataSize += computeStringSizeNoTag(grantTypesSupported_.getRaw(i)); + } + size += dataSize; + size += 1 * getGrantTypesSupportedList().size(); + } + if (!getDeviceAuthorizationEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, deviceAuthorizationEndpoint_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Auth.OAuth2MetadataResponse)) { + return super.equals(obj); + } + flyteidl.service.Auth.OAuth2MetadataResponse other = (flyteidl.service.Auth.OAuth2MetadataResponse) obj; + + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getAuthorizationEndpoint() + .equals(other.getAuthorizationEndpoint())) return false; + if (!getTokenEndpoint() + .equals(other.getTokenEndpoint())) return false; + if (!getResponseTypesSupportedList() + .equals(other.getResponseTypesSupportedList())) return false; + if (!getScopesSupportedList() + .equals(other.getScopesSupportedList())) return false; + if (!getTokenEndpointAuthMethodsSupportedList() + .equals(other.getTokenEndpointAuthMethodsSupportedList())) return false; + if (!getJwksUri() + .equals(other.getJwksUri())) return false; + if (!getCodeChallengeMethodsSupportedList() + .equals(other.getCodeChallengeMethodsSupportedList())) return false; + if (!getGrantTypesSupportedList() + .equals(other.getGrantTypesSupportedList())) return false; + if (!getDeviceAuthorizationEndpoint() + .equals(other.getDeviceAuthorizationEndpoint())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ISSUER_FIELD_NUMBER; + hash = (53 * hash) + getIssuer().hashCode(); + hash = (37 * hash) + AUTHORIZATION_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationEndpoint().hashCode(); + hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndpoint().hashCode(); + if (getResponseTypesSupportedCount() > 0) { + hash = (37 * hash) + RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getResponseTypesSupportedList().hashCode(); + } + if (getScopesSupportedCount() > 0) { + hash = (37 * hash) + SCOPES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getScopesSupportedList().hashCode(); + } + if (getTokenEndpointAuthMethodsSupportedCount() > 0) { + hash = (37 * hash) + TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndpointAuthMethodsSupportedList().hashCode(); + } + hash = (37 * hash) + JWKS_URI_FIELD_NUMBER; + hash = (53 * hash) + getJwksUri().hashCode(); + if (getCodeChallengeMethodsSupportedCount() > 0) { + hash = (37 * hash) + CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getCodeChallengeMethodsSupportedList().hashCode(); + } + if (getGrantTypesSupportedCount() > 0) { + hash = (37 * hash) + GRANT_TYPES_SUPPORTED_FIELD_NUMBER; + hash = (53 * hash) + getGrantTypesSupportedList().hashCode(); + } + hash = (37 * hash) + DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getDeviceAuthorizationEndpoint().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Auth.OAuth2MetadataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata
+     * as defined in https://tools.ietf.org/html/rfc8414
+     * 
+ * + * Protobuf type {@code flyteidl.service.OAuth2MetadataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.OAuth2MetadataResponse) + flyteidl.service.Auth.OAuth2MetadataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.OAuth2MetadataResponse.class, flyteidl.service.Auth.OAuth2MetadataResponse.Builder.class); + } + + // Construct using flyteidl.service.Auth.OAuth2MetadataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + issuer_ = ""; + + authorizationEndpoint_ = ""; + + tokenEndpoint_ = ""; + + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + jwksUri_ = ""; + + codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + deviceAuthorizationEndpoint_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataResponse getDefaultInstanceForType() { + return flyteidl.service.Auth.OAuth2MetadataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataResponse build() { + flyteidl.service.Auth.OAuth2MetadataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataResponse buildPartial() { + flyteidl.service.Auth.OAuth2MetadataResponse result = new flyteidl.service.Auth.OAuth2MetadataResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.issuer_ = issuer_; + result.authorizationEndpoint_ = authorizationEndpoint_; + result.tokenEndpoint_ = tokenEndpoint_; + if (((bitField0_ & 0x00000008) != 0)) { + responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.responseTypesSupported_ = responseTypesSupported_; + if (((bitField0_ & 0x00000010) != 0)) { + scopesSupported_ = scopesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.scopesSupported_ = scopesSupported_; + if (((bitField0_ & 0x00000020) != 0)) { + tokenEndpointAuthMethodsSupported_ = tokenEndpointAuthMethodsSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tokenEndpointAuthMethodsSupported_ = tokenEndpointAuthMethodsSupported_; + result.jwksUri_ = jwksUri_; + if (((bitField0_ & 0x00000080) != 0)) { + codeChallengeMethodsSupported_ = codeChallengeMethodsSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.codeChallengeMethodsSupported_ = codeChallengeMethodsSupported_; + if (((bitField0_ & 0x00000100) != 0)) { + grantTypesSupported_ = grantTypesSupported_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.grantTypesSupported_ = grantTypesSupported_; + result.deviceAuthorizationEndpoint_ = deviceAuthorizationEndpoint_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Auth.OAuth2MetadataResponse) { + return mergeFrom((flyteidl.service.Auth.OAuth2MetadataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Auth.OAuth2MetadataResponse other) { + if (other == flyteidl.service.Auth.OAuth2MetadataResponse.getDefaultInstance()) return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + onChanged(); + } + if (!other.getAuthorizationEndpoint().isEmpty()) { + authorizationEndpoint_ = other.authorizationEndpoint_; + onChanged(); + } + if (!other.getTokenEndpoint().isEmpty()) { + tokenEndpoint_ = other.tokenEndpoint_; + onChanged(); + } + if (!other.responseTypesSupported_.isEmpty()) { + if (responseTypesSupported_.isEmpty()) { + responseTypesSupported_ = other.responseTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.addAll(other.responseTypesSupported_); + } + onChanged(); + } + if (!other.scopesSupported_.isEmpty()) { + if (scopesSupported_.isEmpty()) { + scopesSupported_ = other.scopesSupported_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureScopesSupportedIsMutable(); + scopesSupported_.addAll(other.scopesSupported_); + } + onChanged(); + } + if (!other.tokenEndpointAuthMethodsSupported_.isEmpty()) { + if (tokenEndpointAuthMethodsSupported_.isEmpty()) { + tokenEndpointAuthMethodsSupported_ = other.tokenEndpointAuthMethodsSupported_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTokenEndpointAuthMethodsSupportedIsMutable(); + tokenEndpointAuthMethodsSupported_.addAll(other.tokenEndpointAuthMethodsSupported_); + } + onChanged(); + } + if (!other.getJwksUri().isEmpty()) { + jwksUri_ = other.jwksUri_; + onChanged(); + } + if (!other.codeChallengeMethodsSupported_.isEmpty()) { + if (codeChallengeMethodsSupported_.isEmpty()) { + codeChallengeMethodsSupported_ = other.codeChallengeMethodsSupported_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureCodeChallengeMethodsSupportedIsMutable(); + codeChallengeMethodsSupported_.addAll(other.codeChallengeMethodsSupported_); + } + onChanged(); + } + if (!other.grantTypesSupported_.isEmpty()) { + if (grantTypesSupported_.isEmpty()) { + grantTypesSupported_ = other.grantTypesSupported_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureGrantTypesSupportedIsMutable(); + grantTypesSupported_.addAll(other.grantTypesSupported_); + } + onChanged(); + } + if (!other.getDeviceAuthorizationEndpoint().isEmpty()) { + deviceAuthorizationEndpoint_ = other.deviceAuthorizationEndpoint_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Auth.OAuth2MetadataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Auth.OAuth2MetadataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object issuer_ = ""; + /** + *
+       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+       * issuer.
+       * 
+ * + * string issuer = 1; + */ + public java.lang.String getIssuer() { + java.lang.Object ref = issuer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+       * issuer.
+       * 
+ * + * string issuer = 1; + */ + public com.google.protobuf.ByteString + getIssuerBytes() { + java.lang.Object ref = issuer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + issuer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+       * issuer.
+       * 
+ * + * string issuer = 1; + */ + public Builder setIssuer( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + issuer_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+       * issuer.
+       * 
+ * + * string issuer = 1; + */ + public Builder clearIssuer() { + + issuer_ = getDefaultInstance().getIssuer(); + onChanged(); + return this; + } + /** + *
+       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
+       * issuer.
+       * 
+ * + * string issuer = 1; + */ + public Builder setIssuerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuer_ = value; + onChanged(); + return this; + } + + private java.lang.Object authorizationEndpoint_ = ""; + /** + *
+       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+       * supported that use the authorization endpoint.
+       * 
+ * + * string authorization_endpoint = 2; + */ + public java.lang.String getAuthorizationEndpoint() { + java.lang.Object ref = authorizationEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+       * supported that use the authorization endpoint.
+       * 
+ * + * string authorization_endpoint = 2; + */ + public com.google.protobuf.ByteString + getAuthorizationEndpointBytes() { + java.lang.Object ref = authorizationEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizationEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+       * supported that use the authorization endpoint.
+       * 
+ * + * string authorization_endpoint = 2; + */ + public Builder setAuthorizationEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authorizationEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+       * supported that use the authorization endpoint.
+       * 
+ * + * string authorization_endpoint = 2; + */ + public Builder clearAuthorizationEndpoint() { + + authorizationEndpoint_ = getDefaultInstance().getAuthorizationEndpoint(); + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
+       * supported that use the authorization endpoint.
+       * 
+ * + * string authorization_endpoint = 2; + */ + public Builder setAuthorizationEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authorizationEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object tokenEndpoint_ = ""; + /** + *
+       * URL of the authorization server's token endpoint [RFC6749].
+       * 
+ * + * string token_endpoint = 3; + */ + public java.lang.String getTokenEndpoint() { + java.lang.Object ref = tokenEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL of the authorization server's token endpoint [RFC6749].
+       * 
+ * + * string token_endpoint = 3; + */ + public com.google.protobuf.ByteString + getTokenEndpointBytes() { + java.lang.Object ref = tokenEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tokenEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL of the authorization server's token endpoint [RFC6749].
+       * 
+ * + * string token_endpoint = 3; + */ + public Builder setTokenEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tokenEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's token endpoint [RFC6749].
+       * 
+ * + * string token_endpoint = 3; + */ + public Builder clearTokenEndpoint() { + + tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's token endpoint [RFC6749].
+       * 
+ * + * string token_endpoint = 3; + */ + public Builder setTokenEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tokenEndpoint_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResponseTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public com.google.protobuf.ProtocolStringList + getResponseTypesSupportedList() { + return responseTypesSupported_.getUnmodifiableView(); + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public int getResponseTypesSupportedCount() { + return responseTypesSupported_.size(); + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public java.lang.String getResponseTypesSupported(int index) { + return responseTypesSupported_.get(index); + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public com.google.protobuf.ByteString + getResponseTypesSupportedBytes(int index) { + return responseTypesSupported_.getByteString(index); + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public Builder setResponseTypesSupported( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public Builder addResponseTypesSupported( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public Builder addAllResponseTypesSupported( + java.lang.Iterable values) { + ensureResponseTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responseTypesSupported_); + onChanged(); + return this; + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public Builder clearResponseTypesSupported() { + responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
+       * 
+ * + * repeated string response_types_supported = 4; + */ + public Builder addResponseTypesSupportedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureScopesSupportedIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + scopesSupported_ = new com.google.protobuf.LazyStringArrayList(scopesSupported_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public com.google.protobuf.ProtocolStringList + getScopesSupportedList() { + return scopesSupported_.getUnmodifiableView(); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public int getScopesSupportedCount() { + return scopesSupported_.size(); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public java.lang.String getScopesSupported(int index) { + return scopesSupported_.get(index); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public com.google.protobuf.ByteString + getScopesSupportedBytes(int index) { + return scopesSupported_.getByteString(index); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public Builder setScopesSupported( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesSupportedIsMutable(); + scopesSupported_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public Builder addScopesSupported( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesSupportedIsMutable(); + scopesSupported_.add(value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public Builder addAllScopesSupported( + java.lang.Iterable values) { + ensureScopesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopesSupported_); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public Builder clearScopesSupported() { + scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
+       * 
+ * + * repeated string scopes_supported = 5; + */ + public Builder addScopesSupportedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesSupportedIsMutable(); + scopesSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTokenEndpointAuthMethodsSupportedIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tokenEndpointAuthMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(tokenEndpointAuthMethodsSupported_); + bitField0_ |= 0x00000020; + } + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public com.google.protobuf.ProtocolStringList + getTokenEndpointAuthMethodsSupportedList() { + return tokenEndpointAuthMethodsSupported_.getUnmodifiableView(); + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public int getTokenEndpointAuthMethodsSupportedCount() { + return tokenEndpointAuthMethodsSupported_.size(); + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public java.lang.String getTokenEndpointAuthMethodsSupported(int index) { + return tokenEndpointAuthMethodsSupported_.get(index); + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public com.google.protobuf.ByteString + getTokenEndpointAuthMethodsSupportedBytes(int index) { + return tokenEndpointAuthMethodsSupported_.getByteString(index); + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public Builder setTokenEndpointAuthMethodsSupported( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenEndpointAuthMethodsSupportedIsMutable(); + tokenEndpointAuthMethodsSupported_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public Builder addTokenEndpointAuthMethodsSupported( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTokenEndpointAuthMethodsSupportedIsMutable(); + tokenEndpointAuthMethodsSupported_.add(value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public Builder addAllTokenEndpointAuthMethodsSupported( + java.lang.Iterable values) { + ensureTokenEndpointAuthMethodsSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokenEndpointAuthMethodsSupported_); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public Builder clearTokenEndpointAuthMethodsSupported() { + tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of client authentication methods supported by this token endpoint.
+       * 
+ * + * repeated string token_endpoint_auth_methods_supported = 6; + */ + public Builder addTokenEndpointAuthMethodsSupportedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTokenEndpointAuthMethodsSupportedIsMutable(); + tokenEndpointAuthMethodsSupported_.add(value); + onChanged(); + return this; + } + + private java.lang.Object jwksUri_ = ""; + /** + *
+       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+       * client uses to validate signatures from the authorization server.
+       * 
+ * + * string jwks_uri = 7; + */ + public java.lang.String getJwksUri() { + java.lang.Object ref = jwksUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jwksUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+       * client uses to validate signatures from the authorization server.
+       * 
+ * + * string jwks_uri = 7; + */ + public com.google.protobuf.ByteString + getJwksUriBytes() { + java.lang.Object ref = jwksUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jwksUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+       * client uses to validate signatures from the authorization server.
+       * 
+ * + * string jwks_uri = 7; + */ + public Builder setJwksUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jwksUri_ = value; + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+       * client uses to validate signatures from the authorization server.
+       * 
+ * + * string jwks_uri = 7; + */ + public Builder clearJwksUri() { + + jwksUri_ = getDefaultInstance().getJwksUri(); + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
+       * client uses to validate signatures from the authorization server.
+       * 
+ * + * string jwks_uri = 7; + */ + public Builder setJwksUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jwksUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCodeChallengeMethodsSupportedIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + codeChallengeMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(codeChallengeMethodsSupported_); + bitField0_ |= 0x00000080; + } + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public com.google.protobuf.ProtocolStringList + getCodeChallengeMethodsSupportedList() { + return codeChallengeMethodsSupported_.getUnmodifiableView(); + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public int getCodeChallengeMethodsSupportedCount() { + return codeChallengeMethodsSupported_.size(); + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public java.lang.String getCodeChallengeMethodsSupported(int index) { + return codeChallengeMethodsSupported_.get(index); + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public com.google.protobuf.ByteString + getCodeChallengeMethodsSupportedBytes(int index) { + return codeChallengeMethodsSupported_.getByteString(index); + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public Builder setCodeChallengeMethodsSupported( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCodeChallengeMethodsSupportedIsMutable(); + codeChallengeMethodsSupported_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public Builder addCodeChallengeMethodsSupported( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCodeChallengeMethodsSupportedIsMutable(); + codeChallengeMethodsSupported_.add(value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public Builder addAllCodeChallengeMethodsSupported( + java.lang.Iterable values) { + ensureCodeChallengeMethodsSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, codeChallengeMethodsSupported_); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public Builder clearCodeChallengeMethodsSupported() { + codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
+       * this authorization server.
+       * 
+ * + * repeated string code_challenge_methods_supported = 8; + */ + public Builder addCodeChallengeMethodsSupportedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCodeChallengeMethodsSupportedIsMutable(); + codeChallengeMethodsSupported_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureGrantTypesSupportedIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + grantTypesSupported_ = new com.google.protobuf.LazyStringArrayList(grantTypesSupported_); + bitField0_ |= 0x00000100; + } + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public com.google.protobuf.ProtocolStringList + getGrantTypesSupportedList() { + return grantTypesSupported_.getUnmodifiableView(); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public int getGrantTypesSupportedCount() { + return grantTypesSupported_.size(); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public java.lang.String getGrantTypesSupported(int index) { + return grantTypesSupported_.get(index); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public com.google.protobuf.ByteString + getGrantTypesSupportedBytes(int index) { + return grantTypesSupported_.getByteString(index); + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public Builder setGrantTypesSupported( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesSupportedIsMutable(); + grantTypesSupported_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public Builder addGrantTypesSupported( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGrantTypesSupportedIsMutable(); + grantTypesSupported_.add(value); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public Builder addAllGrantTypesSupported( + java.lang.Iterable values) { + ensureGrantTypesSupportedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, grantTypesSupported_); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public Builder clearGrantTypesSupported() { + grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
+       * 
+ * + * repeated string grant_types_supported = 9; + */ + public Builder addGrantTypesSupportedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGrantTypesSupportedIsMutable(); + grantTypesSupported_.add(value); + onChanged(); + return this; + } + + private java.lang.Object deviceAuthorizationEndpoint_ = ""; + /** + *
+       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+       * 
+ * + * string device_authorization_endpoint = 10; + */ + public java.lang.String getDeviceAuthorizationEndpoint() { + java.lang.Object ref = deviceAuthorizationEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceAuthorizationEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+       * 
+ * + * string device_authorization_endpoint = 10; + */ + public com.google.protobuf.ByteString + getDeviceAuthorizationEndpointBytes() { + java.lang.Object ref = deviceAuthorizationEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceAuthorizationEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+       * 
+ * + * string device_authorization_endpoint = 10; + */ + public Builder setDeviceAuthorizationEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceAuthorizationEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+       * 
+ * + * string device_authorization_endpoint = 10; + */ + public Builder clearDeviceAuthorizationEndpoint() { + + deviceAuthorizationEndpoint_ = getDefaultInstance().getDeviceAuthorizationEndpoint(); + onChanged(); + return this; + } + /** + *
+       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
+       * 
+ * + * string device_authorization_endpoint = 10; + */ + public Builder setDeviceAuthorizationEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceAuthorizationEndpoint_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.OAuth2MetadataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataResponse) + private static final flyteidl.service.Auth.OAuth2MetadataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Auth.OAuth2MetadataResponse(); + } + + public static flyteidl.service.Auth.OAuth2MetadataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OAuth2MetadataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OAuth2MetadataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Auth.OAuth2MetadataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PublicClientAuthConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.PublicClientAuthConfigRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.service.PublicClientAuthConfigRequest} + */ + public static final class PublicClientAuthConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.PublicClientAuthConfigRequest) + PublicClientAuthConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicClientAuthConfigRequest.newBuilder() to construct. + private PublicClientAuthConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PublicClientAuthConfigRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublicClientAuthConfigRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.PublicClientAuthConfigRequest.class, flyteidl.service.Auth.PublicClientAuthConfigRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Auth.PublicClientAuthConfigRequest)) { + return super.equals(obj); + } + flyteidl.service.Auth.PublicClientAuthConfigRequest other = (flyteidl.service.Auth.PublicClientAuthConfigRequest) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Auth.PublicClientAuthConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.service.PublicClientAuthConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.PublicClientAuthConfigRequest) + flyteidl.service.Auth.PublicClientAuthConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.PublicClientAuthConfigRequest.class, flyteidl.service.Auth.PublicClientAuthConfigRequest.Builder.class); + } + + // Construct using flyteidl.service.Auth.PublicClientAuthConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigRequest getDefaultInstanceForType() { + return flyteidl.service.Auth.PublicClientAuthConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigRequest build() { + flyteidl.service.Auth.PublicClientAuthConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigRequest buildPartial() { + flyteidl.service.Auth.PublicClientAuthConfigRequest result = new flyteidl.service.Auth.PublicClientAuthConfigRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Auth.PublicClientAuthConfigRequest) { + return mergeFrom((flyteidl.service.Auth.PublicClientAuthConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Auth.PublicClientAuthConfigRequest other) { + if (other == flyteidl.service.Auth.PublicClientAuthConfigRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Auth.PublicClientAuthConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Auth.PublicClientAuthConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.PublicClientAuthConfigRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigRequest) + private static final flyteidl.service.Auth.PublicClientAuthConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Auth.PublicClientAuthConfigRequest(); + } + + public static flyteidl.service.Auth.PublicClientAuthConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicClientAuthConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicClientAuthConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PublicClientAuthConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.PublicClientAuthConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * client_id to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string client_id = 1; + */ + java.lang.String getClientId(); + /** + *
+     * client_id to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string client_id = 1; + */ + com.google.protobuf.ByteString + getClientIdBytes(); + + /** + *
+     * redirect uri to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string redirect_uri = 2; + */ + java.lang.String getRedirectUri(); + /** + *
+     * redirect uri to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string redirect_uri = 2; + */ + com.google.protobuf.ByteString + getRedirectUriBytes(); + + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + java.util.List + getScopesList(); + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + int getScopesCount(); + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + java.lang.String getScopes(int index); + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + com.google.protobuf.ByteString + getScopesBytes(int index); + + /** + *
+     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+     * default http `Authorization` header.
+     * 
+ * + * string authorization_metadata_key = 4; + */ + java.lang.String getAuthorizationMetadataKey(); + /** + *
+     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+     * default http `Authorization` header.
+     * 
+ * + * string authorization_metadata_key = 4; + */ + com.google.protobuf.ByteString + getAuthorizationMetadataKeyBytes(); + + /** + *
+     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+     * SSL or no SSL connections.
+     * 
+ * + * string service_http_endpoint = 5; + */ + java.lang.String getServiceHttpEndpoint(); + /** + *
+     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+     * SSL or no SSL connections.
+     * 
+ * + * string service_http_endpoint = 5; + */ + com.google.protobuf.ByteString + getServiceHttpEndpointBytes(); + + /** + *
+     * audience to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string audience = 6; + */ + java.lang.String getAudience(); + /** + *
+     * audience to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string audience = 6; + */ + com.google.protobuf.ByteString + getAudienceBytes(); + } + /** + *
+   * FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users.
+   * 
+ * + * Protobuf type {@code flyteidl.service.PublicClientAuthConfigResponse} + */ + public static final class PublicClientAuthConfigResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.PublicClientAuthConfigResponse) + PublicClientAuthConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublicClientAuthConfigResponse.newBuilder() to construct. + private PublicClientAuthConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PublicClientAuthConfigResponse() { + clientId_ = ""; + redirectUri_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + authorizationMetadataKey_ = ""; + serviceHttpEndpoint_ = ""; + audience_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublicClientAuthConfigResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + clientId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + redirectUri_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + scopes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + scopes_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + authorizationMetadataKey_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceHttpEndpoint_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + audience_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + scopes_ = scopes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.PublicClientAuthConfigResponse.class, flyteidl.service.Auth.PublicClientAuthConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int CLIENT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object clientId_; + /** + *
+     * client_id to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string client_id = 1; + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + *
+     * client_id to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string client_id = 1; + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIRECT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object redirectUri_; + /** + *
+     * redirect uri to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string redirect_uri = 2; + */ + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUri_ = s; + return s; + } + } + /** + *
+     * redirect uri to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string redirect_uri = 2; + */ + public com.google.protobuf.ByteString + getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList scopes_; + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+     * scopes to request when initiating OAuth2 authorization requests.
+     * 
+ * + * repeated string scopes = 3; + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int AUTHORIZATION_METADATA_KEY_FIELD_NUMBER = 4; + private volatile java.lang.Object authorizationMetadataKey_; + /** + *
+     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+     * default http `Authorization` header.
+     * 
+ * + * string authorization_metadata_key = 4; + */ + public java.lang.String getAuthorizationMetadataKey() { + java.lang.Object ref = authorizationMetadataKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationMetadataKey_ = s; + return s; + } + } + /** + *
+     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+     * default http `Authorization` header.
+     * 
+ * + * string authorization_metadata_key = 4; + */ + public com.google.protobuf.ByteString + getAuthorizationMetadataKeyBytes() { + java.lang.Object ref = authorizationMetadataKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizationMetadataKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_HTTP_ENDPOINT_FIELD_NUMBER = 5; + private volatile java.lang.Object serviceHttpEndpoint_; + /** + *
+     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+     * SSL or no SSL connections.
+     * 
+ * + * string service_http_endpoint = 5; + */ + public java.lang.String getServiceHttpEndpoint() { + java.lang.Object ref = serviceHttpEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceHttpEndpoint_ = s; + return s; + } + } + /** + *
+     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+     * SSL or no SSL connections.
+     * 
+ * + * string service_http_endpoint = 5; + */ + public com.google.protobuf.ByteString + getServiceHttpEndpointBytes() { + java.lang.Object ref = serviceHttpEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceHttpEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIENCE_FIELD_NUMBER = 6; + private volatile java.lang.Object audience_; + /** + *
+     * audience to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string audience = 6; + */ + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } + } + /** + *
+     * audience to use when initiating OAuth2 authorization requests.
+     * 
+ * + * string audience = 6; + */ + public com.google.protobuf.ByteString + getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); + } + if (!getRedirectUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scopes_.getRaw(i)); + } + if (!getAuthorizationMetadataKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorizationMetadataKey_); + } + if (!getServiceHttpEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceHttpEndpoint_); + } + if (!getAudienceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, audience_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); + } + if (!getRedirectUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!getAuthorizationMetadataKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorizationMetadataKey_); + } + if (!getServiceHttpEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceHttpEndpoint_); + } + if (!getAudienceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, audience_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Auth.PublicClientAuthConfigResponse)) { + return super.equals(obj); + } + flyteidl.service.Auth.PublicClientAuthConfigResponse other = (flyteidl.service.Auth.PublicClientAuthConfigResponse) obj; + + if (!getClientId() + .equals(other.getClientId())) return false; + if (!getRedirectUri() + .equals(other.getRedirectUri())) return false; + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (!getAuthorizationMetadataKey() + .equals(other.getAuthorizationMetadataKey())) return false; + if (!getServiceHttpEndpoint() + .equals(other.getServiceHttpEndpoint())) return false; + if (!getAudience() + .equals(other.getAudience())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUri().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + AUTHORIZATION_METADATA_KEY_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationMetadataKey().hashCode(); + hash = (37 * hash) + SERVICE_HTTP_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getServiceHttpEndpoint().hashCode(); + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Auth.PublicClientAuthConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users.
+     * 
+ * + * Protobuf type {@code flyteidl.service.PublicClientAuthConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.PublicClientAuthConfigResponse) + flyteidl.service.Auth.PublicClientAuthConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Auth.PublicClientAuthConfigResponse.class, flyteidl.service.Auth.PublicClientAuthConfigResponse.Builder.class); + } + + // Construct using flyteidl.service.Auth.PublicClientAuthConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + clientId_ = ""; + + redirectUri_ = ""; + + scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + authorizationMetadataKey_ = ""; + + serviceHttpEndpoint_ = ""; + + audience_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigResponse getDefaultInstanceForType() { + return flyteidl.service.Auth.PublicClientAuthConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigResponse build() { + flyteidl.service.Auth.PublicClientAuthConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigResponse buildPartial() { + flyteidl.service.Auth.PublicClientAuthConfigResponse result = new flyteidl.service.Auth.PublicClientAuthConfigResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.clientId_ = clientId_; + result.redirectUri_ = redirectUri_; + if (((bitField0_ & 0x00000004) != 0)) { + scopes_ = scopes_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.scopes_ = scopes_; + result.authorizationMetadataKey_ = authorizationMetadataKey_; + result.serviceHttpEndpoint_ = serviceHttpEndpoint_; + result.audience_ = audience_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Auth.PublicClientAuthConfigResponse) { + return mergeFrom((flyteidl.service.Auth.PublicClientAuthConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Auth.PublicClientAuthConfigResponse other) { + if (other == flyteidl.service.Auth.PublicClientAuthConfigResponse.getDefaultInstance()) return this; + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + onChanged(); + } + if (!other.getRedirectUri().isEmpty()) { + redirectUri_ = other.redirectUri_; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getAuthorizationMetadataKey().isEmpty()) { + authorizationMetadataKey_ = other.authorizationMetadataKey_; + onChanged(); + } + if (!other.getServiceHttpEndpoint().isEmpty()) { + serviceHttpEndpoint_ = other.serviceHttpEndpoint_; + onChanged(); + } + if (!other.getAudience().isEmpty()) { + audience_ = other.audience_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Auth.PublicClientAuthConfigResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Auth.PublicClientAuthConfigResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object clientId_ = ""; + /** + *
+       * client_id to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string client_id = 1; + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * client_id to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string client_id = 1; + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * client_id to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string client_id = 1; + */ + public Builder setClientId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientId_ = value; + onChanged(); + return this; + } + /** + *
+       * client_id to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string client_id = 1; + */ + public Builder clearClientId() { + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + /** + *
+       * client_id to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string client_id = 1; + */ + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientId_ = value; + onChanged(); + return this; + } + + private java.lang.Object redirectUri_ = ""; + /** + *
+       * redirect uri to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string redirect_uri = 2; + */ + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * redirect uri to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string redirect_uri = 2; + */ + public com.google.protobuf.ByteString + getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * redirect uri to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string redirect_uri = 2; + */ + public Builder setRedirectUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + redirectUri_ = value; + onChanged(); + return this; + } + /** + *
+       * redirect uri to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string redirect_uri = 2; + */ + public Builder clearRedirectUri() { + + redirectUri_ = getDefaultInstance().getRedirectUri(); + onChanged(); + return this; + } + /** + *
+       * redirect uri to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string redirect_uri = 2; + */ + public Builder setRedirectUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + redirectUri_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureScopesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_.getUnmodifiableView(); + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public com.google.protobuf.ByteString + getScopesBytes(int index) { + return scopes_.getByteString(index); + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public Builder setScopes( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public Builder addScopes( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + onChanged(); + return this; + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public Builder addAllScopes( + java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scopes_); + onChanged(); + return this; + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * scopes to request when initiating OAuth2 authorization requests.
+       * 
+ * + * repeated string scopes = 3; + */ + public Builder addScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + onChanged(); + return this; + } + + private java.lang.Object authorizationMetadataKey_ = ""; + /** + *
+       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+       * default http `Authorization` header.
+       * 
+ * + * string authorization_metadata_key = 4; + */ + public java.lang.String getAuthorizationMetadataKey() { + java.lang.Object ref = authorizationMetadataKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationMetadataKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+       * default http `Authorization` header.
+       * 
+ * + * string authorization_metadata_key = 4; + */ + public com.google.protobuf.ByteString + getAuthorizationMetadataKeyBytes() { + java.lang.Object ref = authorizationMetadataKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authorizationMetadataKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+       * default http `Authorization` header.
+       * 
+ * + * string authorization_metadata_key = 4; + */ + public Builder setAuthorizationMetadataKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authorizationMetadataKey_ = value; + onChanged(); + return this; + } + /** + *
+       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+       * default http `Authorization` header.
+       * 
+ * + * string authorization_metadata_key = 4; + */ + public Builder clearAuthorizationMetadataKey() { + + authorizationMetadataKey_ = getDefaultInstance().getAuthorizationMetadataKey(); + onChanged(); + return this; + } + /** + *
+       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
+       * default http `Authorization` header.
+       * 
+ * + * string authorization_metadata_key = 4; + */ + public Builder setAuthorizationMetadataKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authorizationMetadataKey_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceHttpEndpoint_ = ""; + /** + *
+       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+       * SSL or no SSL connections.
+       * 
+ * + * string service_http_endpoint = 5; + */ + public java.lang.String getServiceHttpEndpoint() { + java.lang.Object ref = serviceHttpEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceHttpEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+       * SSL or no SSL connections.
+       * 
+ * + * string service_http_endpoint = 5; + */ + public com.google.protobuf.ByteString + getServiceHttpEndpointBytes() { + java.lang.Object ref = serviceHttpEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceHttpEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+       * SSL or no SSL connections.
+       * 
+ * + * string service_http_endpoint = 5; + */ + public Builder setServiceHttpEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceHttpEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+       * SSL or no SSL connections.
+       * 
+ * + * string service_http_endpoint = 5; + */ + public Builder clearServiceHttpEndpoint() { + + serviceHttpEndpoint_ = getDefaultInstance().getServiceHttpEndpoint(); + onChanged(); + return this; + } + /** + *
+       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
+       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
+       * SSL or no SSL connections.
+       * 
+ * + * string service_http_endpoint = 5; + */ + public Builder setServiceHttpEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceHttpEndpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object audience_ = ""; + /** + *
+       * audience to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string audience = 6; + */ + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * audience to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string audience = 6; + */ + public com.google.protobuf.ByteString + getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * audience to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string audience = 6; + */ + public Builder setAudience( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + audience_ = value; + onChanged(); + return this; + } + /** + *
+       * audience to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string audience = 6; + */ + public Builder clearAudience() { + + audience_ = getDefaultInstance().getAudience(); + onChanged(); + return this; + } + /** + *
+       * audience to use when initiating OAuth2 authorization requests.
+       * 
+ * + * string audience = 6; + */ + public Builder setAudienceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + audience_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.PublicClientAuthConfigResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigResponse) + private static final flyteidl.service.Auth.PublicClientAuthConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Auth.PublicClientAuthConfigResponse(); + } + + public static flyteidl.service.Auth.PublicClientAuthConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicClientAuthConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublicClientAuthConfigResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Auth.PublicClientAuthConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033flyteidl/service/auth.proto\022\020flyteidl." + + "service\032\034google/api/annotations.proto\"\027\n" + + "\025OAuth2MetadataRequest\"\315\002\n\026OAuth2Metadat" + + "aResponse\022\016\n\006issuer\030\001 \001(\t\022\036\n\026authorizati" + + "on_endpoint\030\002 \001(\t\022\026\n\016token_endpoint\030\003 \001(" + + "\t\022 \n\030response_types_supported\030\004 \003(\t\022\030\n\020s" + + "copes_supported\030\005 \003(\t\022-\n%token_endpoint_" + + "auth_methods_supported\030\006 \003(\t\022\020\n\010jwks_uri" + + "\030\007 \001(\t\022(\n code_challenge_methods_support" + + "ed\030\010 \003(\t\022\035\n\025grant_types_supported\030\t \003(\t\022" + + "%\n\035device_authorization_endpoint\030\n \001(\t\"\037" + + "\n\035PublicClientAuthConfigRequest\"\256\001\n\036Publ" + + "icClientAuthConfigResponse\022\021\n\tclient_id\030" + + "\001 \001(\t\022\024\n\014redirect_uri\030\002 \001(\t\022\016\n\006scopes\030\003 " + + "\003(\t\022\"\n\032authorization_metadata_key\030\004 \001(\t\022" + + "\035\n\025service_http_endpoint\030\005 \001(\t\022\020\n\010audien" + + "ce\030\006 \001(\t2\315\002\n\023AuthMetadataService\022\227\001\n\021Get" + + "OAuth2Metadata\022\'.flyteidl.service.OAuth2" + + "MetadataRequest\032(.flyteidl.service.OAuth" + + "2MetadataResponse\"/\202\323\344\223\002)\022\'/.well-known/" + + "oauth-authorization-server\022\233\001\n\025GetPublic" + + "ClientConfig\022/.flyteidl.service.PublicCl" + + "ientAuthConfigRequest\0320.flyteidl.service" + + ".PublicClientAuthConfigResponse\"\037\202\323\344\223\002\031\022" + + "\027/config/v1/flyte_clientB9Z7github.com/f" + + "lyteorg/flyteidl/gen/pb-go/flyteidl/serv" + + "iceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor, + new java.lang.String[] { "Issuer", "AuthorizationEndpoint", "TokenEndpoint", "ResponseTypesSupported", "ScopesSupported", "TokenEndpointAuthMethodsSupported", "JwksUri", "CodeChallengeMethodsSupported", "GrantTypesSupported", "DeviceAuthorizationEndpoint", }); + internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor, + new java.lang.String[] { "ClientId", "RedirectUri", "Scopes", "AuthorizationMetadataKey", "ServiceHttpEndpoint", "Audience", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Dataproxy.java b/flyteidl/gen/pb-java/flyteidl/service/Dataproxy.java new file mode 100644 index 0000000000..431c1d3808 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Dataproxy.java @@ -0,0 +1,9887 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/dataproxy.proto + +package flyteidl.service; + +public final class Dataproxy { + private Dataproxy() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * ArtifactType
+   * 
+ * + * Protobuf enum {@code flyteidl.service.ArtifactType} + */ + public enum ArtifactType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.
+     * 
+ * + * ARTIFACT_TYPE_UNDEFINED = 0; + */ + ARTIFACT_TYPE_UNDEFINED(0), + /** + *
+     * ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan
+     * finishes executing.
+     * 
+ * + * ARTIFACT_TYPE_DECK = 1; + */ + ARTIFACT_TYPE_DECK(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.
+     * 
+ * + * ARTIFACT_TYPE_UNDEFINED = 0; + */ + public static final int ARTIFACT_TYPE_UNDEFINED_VALUE = 0; + /** + *
+     * ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan
+     * finishes executing.
+     * 
+ * + * ARTIFACT_TYPE_DECK = 1; + */ + public static final int ARTIFACT_TYPE_DECK_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ArtifactType valueOf(int value) { + return forNumber(value); + } + + public static ArtifactType forNumber(int value) { + switch (value) { + case 0: return ARTIFACT_TYPE_UNDEFINED; + case 1: return ARTIFACT_TYPE_DECK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ArtifactType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ArtifactType findValueByNumber(int number) { + return ArtifactType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.service.Dataproxy.getDescriptor().getEnumTypes().get(0); + } + + private static final ArtifactType[] VALUES = values(); + + public static ArtifactType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ArtifactType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.service.ArtifactType) + } + + public interface CreateUploadLocationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateUploadLocationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + java.lang.String getSignedUrl(); + /** + *
+     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + com.google.protobuf.ByteString + getSignedUrlBytes(); + + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 2; + */ + java.lang.String getNativeUrl(); + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 2; + */ + com.google.protobuf.ByteString + getNativeUrlBytes(); + + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + boolean hasExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + com.google.protobuf.Timestamp getExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.service.CreateUploadLocationResponse} + */ + public static final class CreateUploadLocationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.CreateUploadLocationResponse) + CreateUploadLocationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateUploadLocationResponse.newBuilder() to construct. + private CreateUploadLocationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateUploadLocationResponse() { + signedUrl_ = ""; + nativeUrl_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateUploadLocationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + signedUrl_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nativeUrl_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiresAt_ != null) { + subBuilder = expiresAt_.toBuilder(); + } + expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresAt_); + expiresAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateUploadLocationResponse.class, flyteidl.service.Dataproxy.CreateUploadLocationResponse.Builder.class); + } + + public static final int SIGNED_URL_FIELD_NUMBER = 1; + private volatile java.lang.Object signedUrl_; + /** + *
+     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + public java.lang.String getSignedUrl() { + java.lang.Object ref = signedUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signedUrl_ = s; + return s; + } + } + /** + *
+     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + public com.google.protobuf.ByteString + getSignedUrlBytes() { + java.lang.Object ref = signedUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signedUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NATIVE_URL_FIELD_NUMBER = 2; + private volatile java.lang.Object nativeUrl_; + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 2; + */ + public java.lang.String getNativeUrl() { + java.lang.Object ref = nativeUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nativeUrl_ = s; + return s; + } + } + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 2; + */ + public com.google.protobuf.ByteString + getNativeUrlBytes() { + java.lang.Object ref = nativeUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nativeUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRES_AT_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp expiresAt_; + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public boolean hasExpiresAt() { + return expiresAt_ != null; + } + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + return getExpiresAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSignedUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_); + } + if (!getNativeUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nativeUrl_); + } + if (expiresAt_ != null) { + output.writeMessage(3, getExpiresAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSignedUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signedUrl_); + } + if (!getNativeUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nativeUrl_); + } + if (expiresAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpiresAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.CreateUploadLocationResponse)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.CreateUploadLocationResponse other = (flyteidl.service.Dataproxy.CreateUploadLocationResponse) obj; + + if (!getSignedUrl() + .equals(other.getSignedUrl())) return false; + if (!getNativeUrl() + .equals(other.getNativeUrl())) return false; + if (hasExpiresAt() != other.hasExpiresAt()) return false; + if (hasExpiresAt()) { + if (!getExpiresAt() + .equals(other.getExpiresAt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; + hash = (53 * hash) + getSignedUrl().hashCode(); + hash = (37 * hash) + NATIVE_URL_FIELD_NUMBER; + hash = (53 * hash) + getNativeUrl().hashCode(); + if (hasExpiresAt()) { + hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; + hash = (53 * hash) + getExpiresAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.CreateUploadLocationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.service.CreateUploadLocationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateUploadLocationResponse) + flyteidl.service.Dataproxy.CreateUploadLocationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateUploadLocationResponse.class, flyteidl.service.Dataproxy.CreateUploadLocationResponse.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.CreateUploadLocationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signedUrl_ = ""; + + nativeUrl_ = ""; + + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationResponse getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.CreateUploadLocationResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationResponse build() { + flyteidl.service.Dataproxy.CreateUploadLocationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationResponse buildPartial() { + flyteidl.service.Dataproxy.CreateUploadLocationResponse result = new flyteidl.service.Dataproxy.CreateUploadLocationResponse(this); + result.signedUrl_ = signedUrl_; + result.nativeUrl_ = nativeUrl_; + if (expiresAtBuilder_ == null) { + result.expiresAt_ = expiresAt_; + } else { + result.expiresAt_ = expiresAtBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.CreateUploadLocationResponse) { + return mergeFrom((flyteidl.service.Dataproxy.CreateUploadLocationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.CreateUploadLocationResponse other) { + if (other == flyteidl.service.Dataproxy.CreateUploadLocationResponse.getDefaultInstance()) return this; + if (!other.getSignedUrl().isEmpty()) { + signedUrl_ = other.signedUrl_; + onChanged(); + } + if (!other.getNativeUrl().isEmpty()) { + nativeUrl_ = other.nativeUrl_; + onChanged(); + } + if (other.hasExpiresAt()) { + mergeExpiresAt(other.getExpiresAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.CreateUploadLocationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.CreateUploadLocationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object signedUrl_ = ""; + /** + *
+       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public java.lang.String getSignedUrl() { + java.lang.Object ref = signedUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signedUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public com.google.protobuf.ByteString + getSignedUrlBytes() { + java.lang.Object ref = signedUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signedUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public Builder setSignedUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + signedUrl_ = value; + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public Builder clearSignedUrl() { + + signedUrl_ = getDefaultInstance().getSignedUrl(); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public Builder setSignedUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + signedUrl_ = value; + onChanged(); + return this; + } + + private java.lang.Object nativeUrl_ = ""; + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 2; + */ + public java.lang.String getNativeUrl() { + java.lang.Object ref = nativeUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nativeUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 2; + */ + public com.google.protobuf.ByteString + getNativeUrlBytes() { + java.lang.Object ref = nativeUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nativeUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 2; + */ + public Builder setNativeUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nativeUrl_ = value; + onChanged(); + return this; + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 2; + */ + public Builder clearNativeUrl() { + + nativeUrl_ = getDefaultInstance().getNativeUrl(); + onChanged(); + return this; + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 2; + */ + public Builder setNativeUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nativeUrl_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expiresAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public boolean hasExpiresAt() { + return expiresAtBuilder_ != null || expiresAt_ != null; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + if (expiresAtBuilder_ == null) { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } else { + return expiresAtBuilder_.getMessage(); + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public Builder setExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresAt_ = value; + onChanged(); + } else { + expiresAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public Builder setExpiresAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expiresAtBuilder_ == null) { + expiresAt_ = builderForValue.build(); + onChanged(); + } else { + expiresAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (expiresAt_ != null) { + expiresAt_ = + com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); + } else { + expiresAt_ = value; + } + onChanged(); + } else { + expiresAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public Builder clearExpiresAt() { + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + onChanged(); + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { + + onChanged(); + return getExpiresAtFieldBuilder().getBuilder(); + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + if (expiresAtBuilder_ != null) { + return expiresAtBuilder_.getMessageOrBuilder(); + } else { + return expiresAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpiresAtFieldBuilder() { + if (expiresAtBuilder_ == null) { + expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiresAt(), + getParentForChildren(), + isClean()); + expiresAt_ = null; + } + return expiresAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.CreateUploadLocationResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationResponse) + private static final flyteidl.service.Dataproxy.CreateUploadLocationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateUploadLocationResponse(); + } + + public static flyteidl.service.Dataproxy.CreateUploadLocationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUploadLocationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateUploadLocationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateUploadLocationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateUploadLocationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Project to create the upload location for
+     * +required
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Project to create the upload location for
+     * +required
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Domain to create the upload location for.
+     * +required
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Domain to create the upload location for.
+     * +required
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+     * +optional. By default, the service will generate a consistent name based on the provided parameters.
+     * 
+ * + * string filename = 3; + */ + java.lang.String getFilename(); + /** + *
+     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+     * +optional. By default, the service will generate a consistent name based on the provided parameters.
+     * 
+ * + * string filename = 3; + */ + com.google.protobuf.ByteString + getFilenameBytes(); + + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + boolean hasExpiresIn(); + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + com.google.protobuf.Duration getExpiresIn(); + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder(); + + /** + *
+     * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
+     * generated path.
+     * +required
+     * 
+ * + * bytes content_md5 = 5; + */ + com.google.protobuf.ByteString getContentMd5(); + + /** + *
+     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+     * in data proxy config. This option is useful when uploading multiple files.
+     * +optional
+     * 
+ * + * string filename_root = 6; + */ + java.lang.String getFilenameRoot(); + /** + *
+     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+     * in data proxy config. This option is useful when uploading multiple files.
+     * +optional
+     * 
+ * + * string filename_root = 6; + */ + com.google.protobuf.ByteString + getFilenameRootBytes(); + } + /** + *
+   * CreateUploadLocationRequest specified request for the CreateUploadLocation API.
+   * The implementation in data proxy service will create the s3 location with some server side configured prefixes,
+   * and then:
+   *   - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR
+   *   - project/domain/filename_root (if present)/filename (if present).
+   * 
+ * + * Protobuf type {@code flyteidl.service.CreateUploadLocationRequest} + */ + public static final class CreateUploadLocationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.CreateUploadLocationRequest) + CreateUploadLocationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateUploadLocationRequest.newBuilder() to construct. + private CreateUploadLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateUploadLocationRequest() { + project_ = ""; + domain_ = ""; + filename_ = ""; + contentMd5_ = com.google.protobuf.ByteString.EMPTY; + filenameRoot_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateUploadLocationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + filename_ = s; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (expiresIn_ != null) { + subBuilder = expiresIn_.toBuilder(); + } + expiresIn_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresIn_); + expiresIn_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + + contentMd5_ = input.readBytes(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + filenameRoot_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateUploadLocationRequest.class, flyteidl.service.Dataproxy.CreateUploadLocationRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Project to create the upload location for
+     * +required
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+     * Project to create the upload location for
+     * +required
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Domain to create the upload location for.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + /** + *
+     * Domain to create the upload location for.
+     * +required
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILENAME_FIELD_NUMBER = 3; + private volatile java.lang.Object filename_; + /** + *
+     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+     * +optional. By default, the service will generate a consistent name based on the provided parameters.
+     * 
+ * + * string filename = 3; + */ + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filename_ = s; + return s; + } + } + /** + *
+     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+     * +optional. By default, the service will generate a consistent name based on the provided parameters.
+     * 
+ * + * string filename = 3; + */ + public com.google.protobuf.ByteString + getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRES_IN_FIELD_NUMBER = 4; + private com.google.protobuf.Duration expiresIn_; + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public boolean hasExpiresIn() { + return expiresIn_ != null; + } + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public com.google.protobuf.Duration getExpiresIn() { + return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { + return getExpiresIn(); + } + + public static final int CONTENT_MD5_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString contentMd5_; + /** + *
+     * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
+     * generated path.
+     * +required
+     * 
+ * + * bytes content_md5 = 5; + */ + public com.google.protobuf.ByteString getContentMd5() { + return contentMd5_; + } + + public static final int FILENAME_ROOT_FIELD_NUMBER = 6; + private volatile java.lang.Object filenameRoot_; + /** + *
+     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+     * in data proxy config. This option is useful when uploading multiple files.
+     * +optional
+     * 
+ * + * string filename_root = 6; + */ + public java.lang.String getFilenameRoot() { + java.lang.Object ref = filenameRoot_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameRoot_ = s; + return s; + } + } + /** + *
+     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+     * in data proxy config. This option is useful when uploading multiple files.
+     * +optional
+     * 
+ * + * string filename_root = 6; + */ + public com.google.protobuf.ByteString + getFilenameRootBytes() { + java.lang.Object ref = filenameRoot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filenameRoot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getFilenameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filename_); + } + if (expiresIn_ != null) { + output.writeMessage(4, getExpiresIn()); + } + if (!contentMd5_.isEmpty()) { + output.writeBytes(5, contentMd5_); + } + if (!getFilenameRootBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filenameRoot_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getFilenameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filename_); + } + if (expiresIn_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpiresIn()); + } + if (!contentMd5_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, contentMd5_); + } + if (!getFilenameRootBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filenameRoot_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.CreateUploadLocationRequest)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.CreateUploadLocationRequest other = (flyteidl.service.Dataproxy.CreateUploadLocationRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; + if (!getFilename() + .equals(other.getFilename())) return false; + if (hasExpiresIn() != other.hasExpiresIn()) return false; + if (hasExpiresIn()) { + if (!getExpiresIn() + .equals(other.getExpiresIn())) return false; + } + if (!getContentMd5() + .equals(other.getContentMd5())) return false; + if (!getFilenameRoot() + .equals(other.getFilenameRoot())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFilename().hashCode(); + if (hasExpiresIn()) { + hash = (37 * hash) + EXPIRES_IN_FIELD_NUMBER; + hash = (53 * hash) + getExpiresIn().hashCode(); + } + hash = (37 * hash) + CONTENT_MD5_FIELD_NUMBER; + hash = (53 * hash) + getContentMd5().hashCode(); + hash = (37 * hash) + FILENAME_ROOT_FIELD_NUMBER; + hash = (53 * hash) + getFilenameRoot().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.CreateUploadLocationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CreateUploadLocationRequest specified request for the CreateUploadLocation API.
+     * The implementation in data proxy service will create the s3 location with some server side configured prefixes,
+     * and then:
+     *   - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR
+     *   - project/domain/filename_root (if present)/filename (if present).
+     * 
+ * + * Protobuf type {@code flyteidl.service.CreateUploadLocationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateUploadLocationRequest) + flyteidl.service.Dataproxy.CreateUploadLocationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateUploadLocationRequest.class, flyteidl.service.Dataproxy.CreateUploadLocationRequest.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.CreateUploadLocationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + filename_ = ""; + + if (expiresInBuilder_ == null) { + expiresIn_ = null; + } else { + expiresIn_ = null; + expiresInBuilder_ = null; + } + contentMd5_ = com.google.protobuf.ByteString.EMPTY; + + filenameRoot_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationRequest getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.CreateUploadLocationRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationRequest build() { + flyteidl.service.Dataproxy.CreateUploadLocationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationRequest buildPartial() { + flyteidl.service.Dataproxy.CreateUploadLocationRequest result = new flyteidl.service.Dataproxy.CreateUploadLocationRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.filename_ = filename_; + if (expiresInBuilder_ == null) { + result.expiresIn_ = expiresIn_; + } else { + result.expiresIn_ = expiresInBuilder_.build(); + } + result.contentMd5_ = contentMd5_; + result.filenameRoot_ = filenameRoot_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.CreateUploadLocationRequest) { + return mergeFrom((flyteidl.service.Dataproxy.CreateUploadLocationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.CreateUploadLocationRequest other) { + if (other == flyteidl.service.Dataproxy.CreateUploadLocationRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getFilename().isEmpty()) { + filename_ = other.filename_; + onChanged(); + } + if (other.hasExpiresIn()) { + mergeExpiresIn(other.getExpiresIn()); + } + if (other.getContentMd5() != com.google.protobuf.ByteString.EMPTY) { + setContentMd5(other.getContentMd5()); + } + if (!other.getFilenameRoot().isEmpty()) { + filenameRoot_ = other.filenameRoot_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.CreateUploadLocationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.CreateUploadLocationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Project to create the upload location for
+       * +required
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Project to create the upload location for
+       * +required
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Project to create the upload location for
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Project to create the upload location for
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Project to create the upload location for
+       * +required
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Domain to create the upload location for.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Domain to create the upload location for.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Domain to create the upload location for.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Domain to create the upload location for.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Domain to create the upload location for.
+       * +required
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object filename_ = ""; + /** + *
+       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+       * +optional. By default, the service will generate a consistent name based on the provided parameters.
+       * 
+ * + * string filename = 3; + */ + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+       * +optional. By default, the service will generate a consistent name based on the provided parameters.
+       * 
+ * + * string filename = 3; + */ + public com.google.protobuf.ByteString + getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+       * +optional. By default, the service will generate a consistent name based on the provided parameters.
+       * 
+ * + * string filename = 3; + */ + public Builder setFilename( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filename_ = value; + onChanged(); + return this; + } + /** + *
+       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+       * +optional. By default, the service will generate a consistent name based on the provided parameters.
+       * 
+ * + * string filename = 3; + */ + public Builder clearFilename() { + + filename_ = getDefaultInstance().getFilename(); + onChanged(); + return this; + } + /** + *
+       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
+       * +optional. By default, the service will generate a consistent name based on the provided parameters.
+       * 
+ * + * string filename = 3; + */ + public Builder setFilenameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filename_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration expiresIn_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expiresInBuilder_; + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public boolean hasExpiresIn() { + return expiresInBuilder_ != null || expiresIn_ != null; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public com.google.protobuf.Duration getExpiresIn() { + if (expiresInBuilder_ == null) { + return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } else { + return expiresInBuilder_.getMessage(); + } + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public Builder setExpiresIn(com.google.protobuf.Duration value) { + if (expiresInBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresIn_ = value; + onChanged(); + } else { + expiresInBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public Builder setExpiresIn( + com.google.protobuf.Duration.Builder builderForValue) { + if (expiresInBuilder_ == null) { + expiresIn_ = builderForValue.build(); + onChanged(); + } else { + expiresInBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public Builder mergeExpiresIn(com.google.protobuf.Duration value) { + if (expiresInBuilder_ == null) { + if (expiresIn_ != null) { + expiresIn_ = + com.google.protobuf.Duration.newBuilder(expiresIn_).mergeFrom(value).buildPartial(); + } else { + expiresIn_ = value; + } + onChanged(); + } else { + expiresInBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public Builder clearExpiresIn() { + if (expiresInBuilder_ == null) { + expiresIn_ = null; + onChanged(); + } else { + expiresIn_ = null; + expiresInBuilder_ = null; + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public com.google.protobuf.Duration.Builder getExpiresInBuilder() { + + onChanged(); + return getExpiresInFieldBuilder().getBuilder(); + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { + if (expiresInBuilder_ != null) { + return expiresInBuilder_.getMessageOrBuilder(); + } else { + return expiresIn_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getExpiresInFieldBuilder() { + if (expiresInBuilder_ == null) { + expiresInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getExpiresIn(), + getParentForChildren(), + isClean()); + expiresIn_ = null; + } + return expiresInBuilder_; + } + + private com.google.protobuf.ByteString contentMd5_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
+       * generated path.
+       * +required
+       * 
+ * + * bytes content_md5 = 5; + */ + public com.google.protobuf.ByteString getContentMd5() { + return contentMd5_; + } + /** + *
+       * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
+       * generated path.
+       * +required
+       * 
+ * + * bytes content_md5 = 5; + */ + public Builder setContentMd5(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + contentMd5_ = value; + onChanged(); + return this; + } + /** + *
+       * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
+       * generated path.
+       * +required
+       * 
+ * + * bytes content_md5 = 5; + */ + public Builder clearContentMd5() { + + contentMd5_ = getDefaultInstance().getContentMd5(); + onChanged(); + return this; + } + + private java.lang.Object filenameRoot_ = ""; + /** + *
+       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+       * in data proxy config. This option is useful when uploading multiple files.
+       * +optional
+       * 
+ * + * string filename_root = 6; + */ + public java.lang.String getFilenameRoot() { + java.lang.Object ref = filenameRoot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameRoot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+       * in data proxy config. This option is useful when uploading multiple files.
+       * +optional
+       * 
+ * + * string filename_root = 6; + */ + public com.google.protobuf.ByteString + getFilenameRootBytes() { + java.lang.Object ref = filenameRoot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filenameRoot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+       * in data proxy config. This option is useful when uploading multiple files.
+       * +optional
+       * 
+ * + * string filename_root = 6; + */ + public Builder setFilenameRoot( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filenameRoot_ = value; + onChanged(); + return this; + } + /** + *
+       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+       * in data proxy config. This option is useful when uploading multiple files.
+       * +optional
+       * 
+ * + * string filename_root = 6; + */ + public Builder clearFilenameRoot() { + + filenameRoot_ = getDefaultInstance().getFilenameRoot(); + onChanged(); + return this; + } + /** + *
+       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
+       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
+       * in data proxy config. This option is useful when uploading multiple files.
+       * +optional
+       * 
+ * + * string filename_root = 6; + */ + public Builder setFilenameRootBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filenameRoot_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.CreateUploadLocationRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationRequest) + private static final flyteidl.service.Dataproxy.CreateUploadLocationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateUploadLocationRequest(); + } + + public static flyteidl.service.Dataproxy.CreateUploadLocationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUploadLocationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateUploadLocationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateUploadLocationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface CreateDownloadLocationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLocationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 1; + */ + java.lang.String getNativeUrl(); + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 1; + */ + com.google.protobuf.ByteString + getNativeUrlBytes(); + + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + boolean hasExpiresIn(); + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + com.google.protobuf.Duration getExpiresIn(); + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder(); + } + /** + *
+   * CreateDownloadLocationRequest specified request for the CreateDownloadLocation API.
+   * 
+ * + * Protobuf type {@code flyteidl.service.CreateDownloadLocationRequest} + */ + @java.lang.Deprecated public static final class CreateDownloadLocationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLocationRequest) + CreateDownloadLocationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDownloadLocationRequest.newBuilder() to construct. + private CreateDownloadLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDownloadLocationRequest() { + nativeUrl_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDownloadLocationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + nativeUrl_ = s; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (expiresIn_ != null) { + subBuilder = expiresIn_.toBuilder(); + } + expiresIn_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresIn_); + expiresIn_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLocationRequest.class, flyteidl.service.Dataproxy.CreateDownloadLocationRequest.Builder.class); + } + + public static final int NATIVE_URL_FIELD_NUMBER = 1; + private volatile java.lang.Object nativeUrl_; + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 1; + */ + public java.lang.String getNativeUrl() { + java.lang.Object ref = nativeUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nativeUrl_ = s; + return s; + } + } + /** + *
+     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+     * 
+ * + * string native_url = 1; + */ + public com.google.protobuf.ByteString + getNativeUrlBytes() { + java.lang.Object ref = nativeUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nativeUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRES_IN_FIELD_NUMBER = 2; + private com.google.protobuf.Duration expiresIn_; + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public boolean hasExpiresIn() { + return expiresIn_ != null; + } + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.Duration getExpiresIn() { + return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { + return getExpiresIn(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNativeUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nativeUrl_); + } + if (expiresIn_ != null) { + output.writeMessage(2, getExpiresIn()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNativeUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nativeUrl_); + } + if (expiresIn_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpiresIn()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.CreateDownloadLocationRequest)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.CreateDownloadLocationRequest other = (flyteidl.service.Dataproxy.CreateDownloadLocationRequest) obj; + + if (!getNativeUrl() + .equals(other.getNativeUrl())) return false; + if (hasExpiresIn() != other.hasExpiresIn()) return false; + if (hasExpiresIn()) { + if (!getExpiresIn() + .equals(other.getExpiresIn())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NATIVE_URL_FIELD_NUMBER; + hash = (53 * hash) + getNativeUrl().hashCode(); + if (hasExpiresIn()) { + hash = (37 * hash) + EXPIRES_IN_FIELD_NUMBER; + hash = (53 * hash) + getExpiresIn().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.CreateDownloadLocationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CreateDownloadLocationRequest specified request for the CreateDownloadLocation API.
+     * 
+ * + * Protobuf type {@code flyteidl.service.CreateDownloadLocationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLocationRequest) + flyteidl.service.Dataproxy.CreateDownloadLocationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLocationRequest.class, flyteidl.service.Dataproxy.CreateDownloadLocationRequest.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.CreateDownloadLocationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nativeUrl_ = ""; + + if (expiresInBuilder_ == null) { + expiresIn_ = null; + } else { + expiresIn_ = null; + expiresInBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationRequest getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.CreateDownloadLocationRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationRequest build() { + flyteidl.service.Dataproxy.CreateDownloadLocationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationRequest buildPartial() { + flyteidl.service.Dataproxy.CreateDownloadLocationRequest result = new flyteidl.service.Dataproxy.CreateDownloadLocationRequest(this); + result.nativeUrl_ = nativeUrl_; + if (expiresInBuilder_ == null) { + result.expiresIn_ = expiresIn_; + } else { + result.expiresIn_ = expiresInBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.CreateDownloadLocationRequest) { + return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLocationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLocationRequest other) { + if (other == flyteidl.service.Dataproxy.CreateDownloadLocationRequest.getDefaultInstance()) return this; + if (!other.getNativeUrl().isEmpty()) { + nativeUrl_ = other.nativeUrl_; + onChanged(); + } + if (other.hasExpiresIn()) { + mergeExpiresIn(other.getExpiresIn()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.CreateDownloadLocationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLocationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nativeUrl_ = ""; + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 1; + */ + public java.lang.String getNativeUrl() { + java.lang.Object ref = nativeUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nativeUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 1; + */ + public com.google.protobuf.ByteString + getNativeUrlBytes() { + java.lang.Object ref = nativeUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nativeUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 1; + */ + public Builder setNativeUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nativeUrl_ = value; + onChanged(); + return this; + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 1; + */ + public Builder clearNativeUrl() { + + nativeUrl_ = getDefaultInstance().getNativeUrl(); + onChanged(); + return this; + } + /** + *
+       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
+       * 
+ * + * string native_url = 1; + */ + public Builder setNativeUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nativeUrl_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration expiresIn_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expiresInBuilder_; + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public boolean hasExpiresIn() { + return expiresInBuilder_ != null || expiresIn_ != null; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.Duration getExpiresIn() { + if (expiresInBuilder_ == null) { + return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } else { + return expiresInBuilder_.getMessage(); + } + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder setExpiresIn(com.google.protobuf.Duration value) { + if (expiresInBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresIn_ = value; + onChanged(); + } else { + expiresInBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder setExpiresIn( + com.google.protobuf.Duration.Builder builderForValue) { + if (expiresInBuilder_ == null) { + expiresIn_ = builderForValue.build(); + onChanged(); + } else { + expiresInBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder mergeExpiresIn(com.google.protobuf.Duration value) { + if (expiresInBuilder_ == null) { + if (expiresIn_ != null) { + expiresIn_ = + com.google.protobuf.Duration.newBuilder(expiresIn_).mergeFrom(value).buildPartial(); + } else { + expiresIn_ = value; + } + onChanged(); + } else { + expiresInBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder clearExpiresIn() { + if (expiresInBuilder_ == null) { + expiresIn_ = null; + onChanged(); + } else { + expiresIn_ = null; + expiresInBuilder_ = null; + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.Duration.Builder getExpiresInBuilder() { + + onChanged(); + return getExpiresInFieldBuilder().getBuilder(); + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { + if (expiresInBuilder_ != null) { + return expiresInBuilder_.getMessageOrBuilder(); + } else { + return expiresIn_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getExpiresInFieldBuilder() { + if (expiresInBuilder_ == null) { + expiresInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getExpiresIn(), + getParentForChildren(), + isClean()); + expiresIn_ = null; + } + return expiresInBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.CreateDownloadLocationRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationRequest) + private static final flyteidl.service.Dataproxy.CreateDownloadLocationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLocationRequest(); + } + + public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDownloadLocationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDownloadLocationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface CreateDownloadLocationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLocationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + java.lang.String getSignedUrl(); + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + com.google.protobuf.ByteString + getSignedUrlBytes(); + + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + boolean hasExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + com.google.protobuf.Timestamp getExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.service.CreateDownloadLocationResponse} + */ + @java.lang.Deprecated public static final class CreateDownloadLocationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLocationResponse) + CreateDownloadLocationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDownloadLocationResponse.newBuilder() to construct. + private CreateDownloadLocationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDownloadLocationResponse() { + signedUrl_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDownloadLocationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + signedUrl_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiresAt_ != null) { + subBuilder = expiresAt_.toBuilder(); + } + expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresAt_); + expiresAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLocationResponse.class, flyteidl.service.Dataproxy.CreateDownloadLocationResponse.Builder.class); + } + + public static final int SIGNED_URL_FIELD_NUMBER = 1; + private volatile java.lang.Object signedUrl_; + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + public java.lang.String getSignedUrl() { + java.lang.Object ref = signedUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signedUrl_ = s; + return s; + } + } + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * string signed_url = 1; + */ + public com.google.protobuf.ByteString + getSignedUrlBytes() { + java.lang.Object ref = signedUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signedUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRES_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp expiresAt_; + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public boolean hasExpiresAt() { + return expiresAt_ != null; + } + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + /** + *
+     * ExpiresAt defines when will the signed URL expires.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + return getExpiresAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSignedUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_); + } + if (expiresAt_ != null) { + output.writeMessage(2, getExpiresAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSignedUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signedUrl_); + } + if (expiresAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpiresAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.CreateDownloadLocationResponse)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.CreateDownloadLocationResponse other = (flyteidl.service.Dataproxy.CreateDownloadLocationResponse) obj; + + if (!getSignedUrl() + .equals(other.getSignedUrl())) return false; + if (hasExpiresAt() != other.hasExpiresAt()) return false; + if (hasExpiresAt()) { + if (!getExpiresAt() + .equals(other.getExpiresAt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; + hash = (53 * hash) + getSignedUrl().hashCode(); + if (hasExpiresAt()) { + hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; + hash = (53 * hash) + getExpiresAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.CreateDownloadLocationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.service.CreateDownloadLocationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLocationResponse) + flyteidl.service.Dataproxy.CreateDownloadLocationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLocationResponse.class, flyteidl.service.Dataproxy.CreateDownloadLocationResponse.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.CreateDownloadLocationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signedUrl_ = ""; + + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationResponse getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.CreateDownloadLocationResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationResponse build() { + flyteidl.service.Dataproxy.CreateDownloadLocationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationResponse buildPartial() { + flyteidl.service.Dataproxy.CreateDownloadLocationResponse result = new flyteidl.service.Dataproxy.CreateDownloadLocationResponse(this); + result.signedUrl_ = signedUrl_; + if (expiresAtBuilder_ == null) { + result.expiresAt_ = expiresAt_; + } else { + result.expiresAt_ = expiresAtBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.CreateDownloadLocationResponse) { + return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLocationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLocationResponse other) { + if (other == flyteidl.service.Dataproxy.CreateDownloadLocationResponse.getDefaultInstance()) return this; + if (!other.getSignedUrl().isEmpty()) { + signedUrl_ = other.signedUrl_; + onChanged(); + } + if (other.hasExpiresAt()) { + mergeExpiresAt(other.getExpiresAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.CreateDownloadLocationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLocationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object signedUrl_ = ""; + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public java.lang.String getSignedUrl() { + java.lang.Object ref = signedUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + signedUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public com.google.protobuf.ByteString + getSignedUrlBytes() { + java.lang.Object ref = signedUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signedUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public Builder setSignedUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + signedUrl_ = value; + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public Builder clearSignedUrl() { + + signedUrl_ = getDefaultInstance().getSignedUrl(); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * string signed_url = 1; + */ + public Builder setSignedUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + signedUrl_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expiresAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public boolean hasExpiresAt() { + return expiresAtBuilder_ != null || expiresAt_ != null; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + if (expiresAtBuilder_ == null) { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } else { + return expiresAtBuilder_.getMessage(); + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder setExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresAt_ = value; + onChanged(); + } else { + expiresAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder setExpiresAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expiresAtBuilder_ == null) { + expiresAt_ = builderForValue.build(); + onChanged(); + } else { + expiresAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (expiresAt_ != null) { + expiresAt_ = + com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); + } else { + expiresAt_ = value; + } + onChanged(); + } else { + expiresAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder clearExpiresAt() { + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + onChanged(); + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { + + onChanged(); + return getExpiresAtFieldBuilder().getBuilder(); + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + if (expiresAtBuilder_ != null) { + return expiresAtBuilder_.getMessageOrBuilder(); + } else { + return expiresAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expires.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpiresAtFieldBuilder() { + if (expiresAtBuilder_ == null) { + expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiresAt(), + getParentForChildren(), + isClean()); + expiresAt_ = null; + } + return expiresAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.CreateDownloadLocationResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationResponse) + private static final flyteidl.service.Dataproxy.CreateDownloadLocationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLocationResponse(); + } + + public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDownloadLocationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDownloadLocationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLocationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateDownloadLinkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ArtifactType of the artifact requested.
+     * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + int getArtifactTypeValue(); + /** + *
+     * ArtifactType of the artifact requested.
+     * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + flyteidl.service.Dataproxy.ArtifactType getArtifactType(); + + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + boolean hasExpiresIn(); + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + com.google.protobuf.Duration getExpiresIn(); + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder(); + + /** + *
+     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+     * most recent attempt of the task.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + boolean hasNodeExecutionId(); + /** + *
+     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+     * most recent attempt of the task.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + *
+     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+     * most recent attempt of the task.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + public flyteidl.service.Dataproxy.CreateDownloadLinkRequest.SourceCase getSourceCase(); + } + /** + *
+   * CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)
+   * 
+ * + * Protobuf type {@code flyteidl.service.CreateDownloadLinkRequest} + */ + public static final class CreateDownloadLinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLinkRequest) + CreateDownloadLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDownloadLinkRequest.newBuilder() to construct. + private CreateDownloadLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDownloadLinkRequest() { + artifactType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDownloadLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + artifactType_ = rawValue; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (expiresIn_ != null) { + subBuilder = expiresIn_.toBuilder(); + } + expiresIn_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresIn_); + expiresIn_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (sourceCase_ == 3) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_).toBuilder(); + } + source_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLinkRequest.class, flyteidl.service.Dataproxy.CreateDownloadLinkRequest.Builder.class); + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite { + NODE_EXECUTION_ID(3), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 3: return NODE_EXECUTION_ID; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int ARTIFACT_TYPE_FIELD_NUMBER = 1; + private int artifactType_; + /** + *
+     * ArtifactType of the artifact requested.
+     * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + public int getArtifactTypeValue() { + return artifactType_; + } + /** + *
+     * ArtifactType of the artifact requested.
+     * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + public flyteidl.service.Dataproxy.ArtifactType getArtifactType() { + @SuppressWarnings("deprecation") + flyteidl.service.Dataproxy.ArtifactType result = flyteidl.service.Dataproxy.ArtifactType.valueOf(artifactType_); + return result == null ? flyteidl.service.Dataproxy.ArtifactType.UNRECOGNIZED : result; + } + + public static final int EXPIRES_IN_FIELD_NUMBER = 2; + private com.google.protobuf.Duration expiresIn_; + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public boolean hasExpiresIn() { + return expiresIn_ != null; + } + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.Duration getExpiresIn() { + return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } + /** + *
+     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+     * exceeds the platform allowed max.
+     * +optional. The default value comes from a global config.
+     * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { + return getExpiresIn(); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 3; + /** + *
+     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+     * most recent attempt of the task.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public boolean hasNodeExecutionId() { + return sourceCase_ == 3; + } + /** + *
+     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+     * most recent attempt of the task.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (sourceCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + /** + *
+     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+     * most recent attempt of the task.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (sourceCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (artifactType_ != flyteidl.service.Dataproxy.ArtifactType.ARTIFACT_TYPE_UNDEFINED.getNumber()) { + output.writeEnum(1, artifactType_); + } + if (expiresIn_ != null) { + output.writeMessage(2, getExpiresIn()); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (artifactType_ != flyteidl.service.Dataproxy.ArtifactType.ARTIFACT_TYPE_UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, artifactType_); + } + if (expiresIn_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpiresIn()); + } + if (sourceCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.CreateDownloadLinkRequest)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.CreateDownloadLinkRequest other = (flyteidl.service.Dataproxy.CreateDownloadLinkRequest) obj; + + if (artifactType_ != other.artifactType_) return false; + if (hasExpiresIn() != other.hasExpiresIn()) return false; + if (hasExpiresIn()) { + if (!getExpiresIn() + .equals(other.getExpiresIn())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 3: + if (!getNodeExecutionId() + .equals(other.getNodeExecutionId())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ARTIFACT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + artifactType_; + if (hasExpiresIn()) { + hash = (37 * hash) + EXPIRES_IN_FIELD_NUMBER; + hash = (53 * hash) + getExpiresIn().hashCode(); + } + switch (sourceCase_) { + case 3: + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.CreateDownloadLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)
+     * 
+ * + * Protobuf type {@code flyteidl.service.CreateDownloadLinkRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLinkRequest) + flyteidl.service.Dataproxy.CreateDownloadLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLinkRequest.class, flyteidl.service.Dataproxy.CreateDownloadLinkRequest.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.CreateDownloadLinkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + artifactType_ = 0; + + if (expiresInBuilder_ == null) { + expiresIn_ = null; + } else { + expiresIn_ = null; + expiresInBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkRequest getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.CreateDownloadLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkRequest build() { + flyteidl.service.Dataproxy.CreateDownloadLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkRequest buildPartial() { + flyteidl.service.Dataproxy.CreateDownloadLinkRequest result = new flyteidl.service.Dataproxy.CreateDownloadLinkRequest(this); + result.artifactType_ = artifactType_; + if (expiresInBuilder_ == null) { + result.expiresIn_ = expiresIn_; + } else { + result.expiresIn_ = expiresInBuilder_.build(); + } + if (sourceCase_ == 3) { + if (nodeExecutionIdBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = nodeExecutionIdBuilder_.build(); + } + } + result.sourceCase_ = sourceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.CreateDownloadLinkRequest) { + return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLinkRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLinkRequest other) { + if (other == flyteidl.service.Dataproxy.CreateDownloadLinkRequest.getDefaultInstance()) return this; + if (other.artifactType_ != 0) { + setArtifactTypeValue(other.getArtifactTypeValue()); + } + if (other.hasExpiresIn()) { + mergeExpiresIn(other.getExpiresIn()); + } + switch (other.getSourceCase()) { + case NODE_EXECUTION_ID: { + mergeNodeExecutionId(other.getNodeExecutionId()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.CreateDownloadLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + + private int artifactType_ = 0; + /** + *
+       * ArtifactType of the artifact requested.
+       * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + public int getArtifactTypeValue() { + return artifactType_; + } + /** + *
+       * ArtifactType of the artifact requested.
+       * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + public Builder setArtifactTypeValue(int value) { + artifactType_ = value; + onChanged(); + return this; + } + /** + *
+       * ArtifactType of the artifact requested.
+       * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + public flyteidl.service.Dataproxy.ArtifactType getArtifactType() { + @SuppressWarnings("deprecation") + flyteidl.service.Dataproxy.ArtifactType result = flyteidl.service.Dataproxy.ArtifactType.valueOf(artifactType_); + return result == null ? flyteidl.service.Dataproxy.ArtifactType.UNRECOGNIZED : result; + } + /** + *
+       * ArtifactType of the artifact requested.
+       * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + public Builder setArtifactType(flyteidl.service.Dataproxy.ArtifactType value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * ArtifactType of the artifact requested.
+       * 
+ * + * .flyteidl.service.ArtifactType artifact_type = 1; + */ + public Builder clearArtifactType() { + + artifactType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration expiresIn_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expiresInBuilder_; + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public boolean hasExpiresIn() { + return expiresInBuilder_ != null || expiresIn_ != null; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.Duration getExpiresIn() { + if (expiresInBuilder_ == null) { + return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } else { + return expiresInBuilder_.getMessage(); + } + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder setExpiresIn(com.google.protobuf.Duration value) { + if (expiresInBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresIn_ = value; + onChanged(); + } else { + expiresInBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder setExpiresIn( + com.google.protobuf.Duration.Builder builderForValue) { + if (expiresInBuilder_ == null) { + expiresIn_ = builderForValue.build(); + onChanged(); + } else { + expiresInBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder mergeExpiresIn(com.google.protobuf.Duration value) { + if (expiresInBuilder_ == null) { + if (expiresIn_ != null) { + expiresIn_ = + com.google.protobuf.Duration.newBuilder(expiresIn_).mergeFrom(value).buildPartial(); + } else { + expiresIn_ = value; + } + onChanged(); + } else { + expiresInBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public Builder clearExpiresIn() { + if (expiresInBuilder_ == null) { + expiresIn_ = null; + onChanged(); + } else { + expiresIn_ = null; + expiresInBuilder_ = null; + } + + return this; + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.Duration.Builder getExpiresInBuilder() { + + onChanged(); + return getExpiresInFieldBuilder().getBuilder(); + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { + if (expiresInBuilder_ != null) { + return expiresInBuilder_.getMessageOrBuilder(); + } else { + return expiresIn_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; + } + } + /** + *
+       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
+       * exceeds the platform allowed max.
+       * +optional. The default value comes from a global config.
+       * 
+ * + * .google.protobuf.Duration expires_in = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getExpiresInFieldBuilder() { + if (expiresInBuilder_ == null) { + expiresInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getExpiresIn(), + getParentForChildren(), + isClean()); + expiresIn_ = null; + } + return expiresInBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public boolean hasNodeExecutionId() { + return sourceCase_ == 3; + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + if (sourceCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return nodeExecutionIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (sourceCase_ == 3 && + source_ != flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) { + source_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + nodeExecutionIdBuilder_.mergeFrom(value); + } + nodeExecutionIdBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + nodeExecutionIdBuilder_.clear(); + } + return this; + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if ((sourceCase_ == 3) && (nodeExecutionIdBuilder_ != null)) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; + } + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + } + /** + *
+       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
+       * most recent attempt of the task.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged();; + return nodeExecutionIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.CreateDownloadLinkRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkRequest) + private static final flyteidl.service.Dataproxy.CreateDownloadLinkRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLinkRequest(); + } + + public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDownloadLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDownloadLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateDownloadLinkResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLinkResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getSignedUrlList(); + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated int getSignedUrlCount(); + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getSignedUrl(int index); + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getSignedUrlBytes(int index); + + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated boolean hasExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.Timestamp getExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); + + /** + *
+     * New wrapper object containing the signed urls and expiration time
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + boolean hasPreSignedUrls(); + /** + *
+     * New wrapper object containing the signed urls and expiration time
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls(); + /** + *
+     * New wrapper object containing the signed urls and expiration time
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder(); + } + /** + *
+   * CreateDownloadLinkResponse defines the response for the generated links
+   * 
+ * + * Protobuf type {@code flyteidl.service.CreateDownloadLinkResponse} + */ + public static final class CreateDownloadLinkResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLinkResponse) + CreateDownloadLinkResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDownloadLinkResponse.newBuilder() to construct. + private CreateDownloadLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDownloadLinkResponse() { + signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateDownloadLinkResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + signedUrl_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + signedUrl_.add(s); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiresAt_ != null) { + subBuilder = expiresAt_.toBuilder(); + } + expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresAt_); + expiresAt_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.service.Dataproxy.PreSignedURLs.Builder subBuilder = null; + if (preSignedUrls_ != null) { + subBuilder = preSignedUrls_.toBuilder(); + } + preSignedUrls_ = input.readMessage(flyteidl.service.Dataproxy.PreSignedURLs.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(preSignedUrls_); + preSignedUrls_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + signedUrl_ = signedUrl_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLinkResponse.class, flyteidl.service.Dataproxy.CreateDownloadLinkResponse.Builder.class); + } + + private int bitField0_; + public static final int SIGNED_URL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList signedUrl_; + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getSignedUrlList() { + return signedUrl_; + } + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public int getSignedUrlCount() { + return signedUrl_.size(); + } + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getSignedUrl(int index) { + return signedUrl_.get(index); + } + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getSignedUrlBytes(int index) { + return signedUrl_.getByteString(index); + } + + public static final int EXPIRES_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp expiresAt_; + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasExpiresAt() { + return expiresAt_ != null; + } + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.Timestamp getExpiresAt() { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + return getExpiresAt(); + } + + public static final int PRE_SIGNED_URLS_FIELD_NUMBER = 3; + private flyteidl.service.Dataproxy.PreSignedURLs preSignedUrls_; + /** + *
+     * New wrapper object containing the signed urls and expiration time
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public boolean hasPreSignedUrls() { + return preSignedUrls_ != null; + } + /** + *
+     * New wrapper object containing the signed urls and expiration time
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { + return preSignedUrls_ == null ? flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance() : preSignedUrls_; + } + /** + *
+     * New wrapper object containing the signed urls and expiration time
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { + return getPreSignedUrls(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < signedUrl_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_.getRaw(i)); + } + if (expiresAt_ != null) { + output.writeMessage(2, getExpiresAt()); + } + if (preSignedUrls_ != null) { + output.writeMessage(3, getPreSignedUrls()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < signedUrl_.size(); i++) { + dataSize += computeStringSizeNoTag(signedUrl_.getRaw(i)); + } + size += dataSize; + size += 1 * getSignedUrlList().size(); + } + if (expiresAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpiresAt()); + } + if (preSignedUrls_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPreSignedUrls()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.CreateDownloadLinkResponse)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.CreateDownloadLinkResponse other = (flyteidl.service.Dataproxy.CreateDownloadLinkResponse) obj; + + if (!getSignedUrlList() + .equals(other.getSignedUrlList())) return false; + if (hasExpiresAt() != other.hasExpiresAt()) return false; + if (hasExpiresAt()) { + if (!getExpiresAt() + .equals(other.getExpiresAt())) return false; + } + if (hasPreSignedUrls() != other.hasPreSignedUrls()) return false; + if (hasPreSignedUrls()) { + if (!getPreSignedUrls() + .equals(other.getPreSignedUrls())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSignedUrlCount() > 0) { + hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; + hash = (53 * hash) + getSignedUrlList().hashCode(); + } + if (hasExpiresAt()) { + hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; + hash = (53 * hash) + getExpiresAt().hashCode(); + } + if (hasPreSignedUrls()) { + hash = (37 * hash) + PRE_SIGNED_URLS_FIELD_NUMBER; + hash = (53 * hash) + getPreSignedUrls().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.CreateDownloadLinkResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CreateDownloadLinkResponse defines the response for the generated links
+     * 
+ * + * Protobuf type {@code flyteidl.service.CreateDownloadLinkResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLinkResponse) + flyteidl.service.Dataproxy.CreateDownloadLinkResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.CreateDownloadLinkResponse.class, flyteidl.service.Dataproxy.CreateDownloadLinkResponse.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.CreateDownloadLinkResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + if (preSignedUrlsBuilder_ == null) { + preSignedUrls_ = null; + } else { + preSignedUrls_ = null; + preSignedUrlsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkResponse getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.CreateDownloadLinkResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkResponse build() { + flyteidl.service.Dataproxy.CreateDownloadLinkResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkResponse buildPartial() { + flyteidl.service.Dataproxy.CreateDownloadLinkResponse result = new flyteidl.service.Dataproxy.CreateDownloadLinkResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + signedUrl_ = signedUrl_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.signedUrl_ = signedUrl_; + if (expiresAtBuilder_ == null) { + result.expiresAt_ = expiresAt_; + } else { + result.expiresAt_ = expiresAtBuilder_.build(); + } + if (preSignedUrlsBuilder_ == null) { + result.preSignedUrls_ = preSignedUrls_; + } else { + result.preSignedUrls_ = preSignedUrlsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.CreateDownloadLinkResponse) { + return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLinkResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLinkResponse other) { + if (other == flyteidl.service.Dataproxy.CreateDownloadLinkResponse.getDefaultInstance()) return this; + if (!other.signedUrl_.isEmpty()) { + if (signedUrl_.isEmpty()) { + signedUrl_ = other.signedUrl_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSignedUrlIsMutable(); + signedUrl_.addAll(other.signedUrl_); + } + onChanged(); + } + if (other.hasExpiresAt()) { + mergeExpiresAt(other.getExpiresAt()); + } + if (other.hasPreSignedUrls()) { + mergePreSignedUrls(other.getPreSignedUrls()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.CreateDownloadLinkResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLinkResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSignedUrlIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + signedUrl_ = new com.google.protobuf.LazyStringArrayList(signedUrl_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getSignedUrlList() { + return signedUrl_.getUnmodifiableView(); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public int getSignedUrlCount() { + return signedUrl_.size(); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getSignedUrl(int index) { + return signedUrl_.get(index); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getSignedUrlBytes(int index) { + return signedUrl_.getByteString(index); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setSignedUrl( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedUrlIsMutable(); + signedUrl_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addSignedUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedUrlIsMutable(); + signedUrl_.add(value); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addAllSignedUrl( + java.lang.Iterable values) { + ensureSignedUrlIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, signedUrl_); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearSignedUrl() { + signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addSignedUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSignedUrlIsMutable(); + signedUrl_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expiresAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public boolean hasExpiresAt() { + return expiresAtBuilder_ != null || expiresAt_ != null; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.Timestamp getExpiresAt() { + if (expiresAtBuilder_ == null) { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } else { + return expiresAtBuilder_.getMessage(); + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresAt_ = value; + onChanged(); + } else { + expiresAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setExpiresAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expiresAtBuilder_ == null) { + expiresAt_ = builderForValue.build(); + onChanged(); + } else { + expiresAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (expiresAt_ != null) { + expiresAt_ = + com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); + } else { + expiresAt_ = value; + } + onChanged(); + } else { + expiresAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearExpiresAt() { + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + onChanged(); + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { + + onChanged(); + return getExpiresAtFieldBuilder().getBuilder(); + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + if (expiresAtBuilder_ != null) { + return expiresAtBuilder_.getMessageOrBuilder(); + } else { + return expiresAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpiresAtFieldBuilder() { + if (expiresAtBuilder_ == null) { + expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiresAt(), + getParentForChildren(), + isClean()); + expiresAt_ = null; + } + return expiresAtBuilder_; + } + + private flyteidl.service.Dataproxy.PreSignedURLs preSignedUrls_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> preSignedUrlsBuilder_; + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public boolean hasPreSignedUrls() { + return preSignedUrlsBuilder_ != null || preSignedUrls_ != null; + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { + if (preSignedUrlsBuilder_ == null) { + return preSignedUrls_ == null ? flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance() : preSignedUrls_; + } else { + return preSignedUrlsBuilder_.getMessage(); + } + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public Builder setPreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { + if (preSignedUrlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + preSignedUrls_ = value; + onChanged(); + } else { + preSignedUrlsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public Builder setPreSignedUrls( + flyteidl.service.Dataproxy.PreSignedURLs.Builder builderForValue) { + if (preSignedUrlsBuilder_ == null) { + preSignedUrls_ = builderForValue.build(); + onChanged(); + } else { + preSignedUrlsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public Builder mergePreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { + if (preSignedUrlsBuilder_ == null) { + if (preSignedUrls_ != null) { + preSignedUrls_ = + flyteidl.service.Dataproxy.PreSignedURLs.newBuilder(preSignedUrls_).mergeFrom(value).buildPartial(); + } else { + preSignedUrls_ = value; + } + onChanged(); + } else { + preSignedUrlsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public Builder clearPreSignedUrls() { + if (preSignedUrlsBuilder_ == null) { + preSignedUrls_ = null; + onChanged(); + } else { + preSignedUrls_ = null; + preSignedUrlsBuilder_ = null; + } + + return this; + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public flyteidl.service.Dataproxy.PreSignedURLs.Builder getPreSignedUrlsBuilder() { + + onChanged(); + return getPreSignedUrlsFieldBuilder().getBuilder(); + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { + if (preSignedUrlsBuilder_ != null) { + return preSignedUrlsBuilder_.getMessageOrBuilder(); + } else { + return preSignedUrls_ == null ? + flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance() : preSignedUrls_; + } + } + /** + *
+       * New wrapper object containing the signed urls and expiration time
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> + getPreSignedUrlsFieldBuilder() { + if (preSignedUrlsBuilder_ == null) { + preSignedUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder>( + getPreSignedUrls(), + getParentForChildren(), + isClean()); + preSignedUrls_ = null; + } + return preSignedUrlsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.CreateDownloadLinkResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkResponse) + private static final flyteidl.service.Dataproxy.CreateDownloadLinkResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLinkResponse(); + } + + public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDownloadLinkResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDownloadLinkResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.CreateDownloadLinkResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PreSignedURLsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.PreSignedURLs) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + java.util.List + getSignedUrlList(); + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + int getSignedUrlCount(); + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + java.lang.String getSignedUrl(int index); + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + com.google.protobuf.ByteString + getSignedUrlBytes(int index); + + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + boolean hasExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + com.google.protobuf.Timestamp getExpiresAt(); + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); + } + /** + *
+   * Wrapper object since the message is shared across this and the GetDataResponse
+   * 
+ * + * Protobuf type {@code flyteidl.service.PreSignedURLs} + */ + public static final class PreSignedURLs extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.PreSignedURLs) + PreSignedURLsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PreSignedURLs.newBuilder() to construct. + private PreSignedURLs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PreSignedURLs() { + signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PreSignedURLs( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + signedUrl_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + signedUrl_.add(s); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiresAt_ != null) { + subBuilder = expiresAt_.toBuilder(); + } + expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresAt_); + expiresAt_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + signedUrl_ = signedUrl_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.PreSignedURLs.class, flyteidl.service.Dataproxy.PreSignedURLs.Builder.class); + } + + private int bitField0_; + public static final int SIGNED_URL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList signedUrl_; + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + public com.google.protobuf.ProtocolStringList + getSignedUrlList() { + return signedUrl_; + } + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + public int getSignedUrlCount() { + return signedUrl_.size(); + } + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + public java.lang.String getSignedUrl(int index) { + return signedUrl_.get(index); + } + /** + *
+     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+     * 
+ * + * repeated string signed_url = 1; + */ + public com.google.protobuf.ByteString + getSignedUrlBytes(int index) { + return signedUrl_.getByteString(index); + } + + public static final int EXPIRES_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp expiresAt_; + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public boolean hasExpiresAt() { + return expiresAt_ != null; + } + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + /** + *
+     * ExpiresAt defines when will the signed URL expire.
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + return getExpiresAt(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < signedUrl_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_.getRaw(i)); + } + if (expiresAt_ != null) { + output.writeMessage(2, getExpiresAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < signedUrl_.size(); i++) { + dataSize += computeStringSizeNoTag(signedUrl_.getRaw(i)); + } + size += dataSize; + size += 1 * getSignedUrlList().size(); + } + if (expiresAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpiresAt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.PreSignedURLs)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.PreSignedURLs other = (flyteidl.service.Dataproxy.PreSignedURLs) obj; + + if (!getSignedUrlList() + .equals(other.getSignedUrlList())) return false; + if (hasExpiresAt() != other.hasExpiresAt()) return false; + if (hasExpiresAt()) { + if (!getExpiresAt() + .equals(other.getExpiresAt())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSignedUrlCount() > 0) { + hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; + hash = (53 * hash) + getSignedUrlList().hashCode(); + } + if (hasExpiresAt()) { + hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; + hash = (53 * hash) + getExpiresAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.PreSignedURLs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Wrapper object since the message is shared across this and the GetDataResponse
+     * 
+ * + * Protobuf type {@code flyteidl.service.PreSignedURLs} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.PreSignedURLs) + flyteidl.service.Dataproxy.PreSignedURLsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.PreSignedURLs.class, flyteidl.service.Dataproxy.PreSignedURLs.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.PreSignedURLs.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.PreSignedURLs getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.PreSignedURLs build() { + flyteidl.service.Dataproxy.PreSignedURLs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.PreSignedURLs buildPartial() { + flyteidl.service.Dataproxy.PreSignedURLs result = new flyteidl.service.Dataproxy.PreSignedURLs(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) != 0)) { + signedUrl_ = signedUrl_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.signedUrl_ = signedUrl_; + if (expiresAtBuilder_ == null) { + result.expiresAt_ = expiresAt_; + } else { + result.expiresAt_ = expiresAtBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.PreSignedURLs) { + return mergeFrom((flyteidl.service.Dataproxy.PreSignedURLs)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.PreSignedURLs other) { + if (other == flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance()) return this; + if (!other.signedUrl_.isEmpty()) { + if (signedUrl_.isEmpty()) { + signedUrl_ = other.signedUrl_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSignedUrlIsMutable(); + signedUrl_.addAll(other.signedUrl_); + } + onChanged(); + } + if (other.hasExpiresAt()) { + mergeExpiresAt(other.getExpiresAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.PreSignedURLs parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.PreSignedURLs) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSignedUrlIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + signedUrl_ = new com.google.protobuf.LazyStringArrayList(signedUrl_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public com.google.protobuf.ProtocolStringList + getSignedUrlList() { + return signedUrl_.getUnmodifiableView(); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public int getSignedUrlCount() { + return signedUrl_.size(); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public java.lang.String getSignedUrl(int index) { + return signedUrl_.get(index); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public com.google.protobuf.ByteString + getSignedUrlBytes(int index) { + return signedUrl_.getByteString(index); + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public Builder setSignedUrl( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedUrlIsMutable(); + signedUrl_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public Builder addSignedUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSignedUrlIsMutable(); + signedUrl_.add(value); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public Builder addAllSignedUrl( + java.lang.Iterable values) { + ensureSignedUrlIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, signedUrl_); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public Builder clearSignedUrl() { + signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
+       * 
+ * + * repeated string signed_url = 1; + */ + public Builder addSignedUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSignedUrlIsMutable(); + signedUrl_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expiresAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public boolean hasExpiresAt() { + return expiresAtBuilder_ != null || expiresAt_ != null; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + if (expiresAtBuilder_ == null) { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } else { + return expiresAtBuilder_.getMessage(); + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder setExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiresAt_ = value; + onChanged(); + } else { + expiresAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder setExpiresAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expiresAtBuilder_ == null) { + expiresAt_ = builderForValue.build(); + onChanged(); + } else { + expiresAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (expiresAt_ != null) { + expiresAt_ = + com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); + } else { + expiresAt_ = value; + } + onChanged(); + } else { + expiresAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public Builder clearExpiresAt() { + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + onChanged(); + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + + return this; + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { + + onChanged(); + return getExpiresAtFieldBuilder().getBuilder(); + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + if (expiresAtBuilder_ != null) { + return expiresAtBuilder_.getMessageOrBuilder(); + } else { + return expiresAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + } + /** + *
+       * ExpiresAt defines when will the signed URL expire.
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpiresAtFieldBuilder() { + if (expiresAtBuilder_ == null) { + expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiresAt(), + getParentForChildren(), + isClean()); + expiresAt_ = null; + } + return expiresAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.PreSignedURLs) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.PreSignedURLs) + private static final flyteidl.service.Dataproxy.PreSignedURLs DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.PreSignedURLs(); + } + + public static flyteidl.service.Dataproxy.PreSignedURLs getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreSignedURLs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreSignedURLs(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.PreSignedURLs getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.GetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+     * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+     * 
+ * + * string flyte_url = 1; + */ + java.lang.String getFlyteUrl(); + /** + *
+     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+     * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+     * 
+ * + * string flyte_url = 1; + */ + com.google.protobuf.ByteString + getFlyteUrlBytes(); + } + /** + *
+   * General request artifact to retrieve data from a Flyte artifact url.
+   * 
+ * + * Protobuf type {@code flyteidl.service.GetDataRequest} + */ + public static final class GetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.GetDataRequest) + GetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataRequest.newBuilder() to construct. + private GetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDataRequest() { + flyteUrl_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetDataRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + flyteUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.GetDataRequest.class, flyteidl.service.Dataproxy.GetDataRequest.Builder.class); + } + + public static final int FLYTE_URL_FIELD_NUMBER = 1; + private volatile java.lang.Object flyteUrl_; + /** + *
+     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+     * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+     * 
+ * + * string flyte_url = 1; + */ + public java.lang.String getFlyteUrl() { + java.lang.Object ref = flyteUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flyteUrl_ = s; + return s; + } + } + /** + *
+     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+     * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+     * 
+ * + * string flyte_url = 1; + */ + public com.google.protobuf.ByteString + getFlyteUrlBytes() { + java.lang.Object ref = flyteUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flyteUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFlyteUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, flyteUrl_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFlyteUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, flyteUrl_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.GetDataRequest)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.GetDataRequest other = (flyteidl.service.Dataproxy.GetDataRequest) obj; + + if (!getFlyteUrl() + .equals(other.getFlyteUrl())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FLYTE_URL_FIELD_NUMBER; + hash = (53 * hash) + getFlyteUrl().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.GetDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * General request artifact to retrieve data from a Flyte artifact url.
+     * 
+ * + * Protobuf type {@code flyteidl.service.GetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.GetDataRequest) + flyteidl.service.Dataproxy.GetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.GetDataRequest.class, flyteidl.service.Dataproxy.GetDataRequest.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.GetDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + flyteUrl_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataRequest getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.GetDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataRequest build() { + flyteidl.service.Dataproxy.GetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataRequest buildPartial() { + flyteidl.service.Dataproxy.GetDataRequest result = new flyteidl.service.Dataproxy.GetDataRequest(this); + result.flyteUrl_ = flyteUrl_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.GetDataRequest) { + return mergeFrom((flyteidl.service.Dataproxy.GetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.GetDataRequest other) { + if (other == flyteidl.service.Dataproxy.GetDataRequest.getDefaultInstance()) return this; + if (!other.getFlyteUrl().isEmpty()) { + flyteUrl_ = other.flyteUrl_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.GetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.GetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object flyteUrl_ = ""; + /** + *
+       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+       * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+       * 
+ * + * string flyte_url = 1; + */ + public java.lang.String getFlyteUrl() { + java.lang.Object ref = flyteUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flyteUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+       * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+       * 
+ * + * string flyte_url = 1; + */ + public com.google.protobuf.ByteString + getFlyteUrlBytes() { + java.lang.Object ref = flyteUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flyteUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+       * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+       * 
+ * + * string flyte_url = 1; + */ + public Builder setFlyteUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flyteUrl_ = value; + onChanged(); + return this; + } + /** + *
+       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+       * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+       * 
+ * + * string flyte_url = 1; + */ + public Builder clearFlyteUrl() { + + flyteUrl_ = getDefaultInstance().getFlyteUrl(); + onChanged(); + return this; + } + /** + *
+       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
+       * backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.).
+       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
+       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
+       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
+       * 
+ * + * string flyte_url = 1; + */ + public Builder setFlyteUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flyteUrl_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.GetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataRequest) + private static final flyteidl.service.Dataproxy.GetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.GetDataRequest(); + } + + public static flyteidl.service.Dataproxy.GetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.GetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * literal map data will be returned
+     * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + boolean hasLiteralMap(); + /** + *
+     * literal map data will be returned
+     * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + flyteidl.core.Literals.LiteralMap getLiteralMap(); + /** + *
+     * literal map data will be returned
+     * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getLiteralMapOrBuilder(); + + /** + *
+     * Flyte deck html will be returned as a signed url users can download
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + boolean hasPreSignedUrls(); + /** + *
+     * Flyte deck html will be returned as a signed url users can download
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls(); + /** + *
+     * Flyte deck html will be returned as a signed url users can download
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder(); + + /** + *
+     * Single literal will be returned. This is returned when the user/url requests a specific output or input
+     * by name. See the o3 example above.
+     * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + boolean hasLiteral(); + /** + *
+     * Single literal will be returned. This is returned when the user/url requests a specific output or input
+     * by name. See the o3 example above.
+     * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + flyteidl.core.Literals.Literal getLiteral(); + /** + *
+     * Single literal will be returned. This is returned when the user/url requests a specific output or input
+     * by name. See the o3 example above.
+     * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + flyteidl.core.Literals.LiteralOrBuilder getLiteralOrBuilder(); + + public flyteidl.service.Dataproxy.GetDataResponse.DataCase getDataCase(); + } + /** + * Protobuf type {@code flyteidl.service.GetDataResponse} + */ + public static final class GetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.GetDataResponse) + GetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataResponse.newBuilder() to construct. + private GetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetDataResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (dataCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); + } + data_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 1; + break; + } + case 18: { + flyteidl.service.Dataproxy.PreSignedURLs.Builder subBuilder = null; + if (dataCase_ == 2) { + subBuilder = ((flyteidl.service.Dataproxy.PreSignedURLs) data_).toBuilder(); + } + data_ = + input.readMessage(flyteidl.service.Dataproxy.PreSignedURLs.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.service.Dataproxy.PreSignedURLs) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (dataCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.Literal) data_).toBuilder(); + } + data_ = + input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Literal) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.GetDataResponse.class, flyteidl.service.Dataproxy.GetDataResponse.Builder.class); + } + + private int dataCase_ = 0; + private java.lang.Object data_; + public enum DataCase + implements com.google.protobuf.Internal.EnumLite { + LITERAL_MAP(1), + PRE_SIGNED_URLS(2), + LITERAL(3), + DATA_NOT_SET(0); + private final int value; + private DataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: return LITERAL_MAP; + case 2: return PRE_SIGNED_URLS; + case 3: return LITERAL; + case 0: return DATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public static final int LITERAL_MAP_FIELD_NUMBER = 1; + /** + *
+     * literal map data will be returned
+     * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public boolean hasLiteralMap() { + return dataCase_ == 1; + } + /** + *
+     * literal map data will be returned
+     * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public flyteidl.core.Literals.LiteralMap getLiteralMap() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * literal map data will be returned
+     * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getLiteralMapOrBuilder() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int PRE_SIGNED_URLS_FIELD_NUMBER = 2; + /** + *
+     * Flyte deck html will be returned as a signed url users can download
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public boolean hasPreSignedUrls() { + return dataCase_ == 2; + } + /** + *
+     * Flyte deck html will be returned as a signed url users can download
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { + if (dataCase_ == 2) { + return (flyteidl.service.Dataproxy.PreSignedURLs) data_; + } + return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); + } + /** + *
+     * Flyte deck html will be returned as a signed url users can download
+     * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { + if (dataCase_ == 2) { + return (flyteidl.service.Dataproxy.PreSignedURLs) data_; + } + return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); + } + + public static final int LITERAL_FIELD_NUMBER = 3; + /** + *
+     * Single literal will be returned. This is returned when the user/url requests a specific output or input
+     * by name. See the o3 example above.
+     * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public boolean hasLiteral() { + return dataCase_ == 3; + } + /** + *
+     * Single literal will be returned. This is returned when the user/url requests a specific output or input
+     * by name. See the o3 example above.
+     * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public flyteidl.core.Literals.Literal getLiteral() { + if (dataCase_ == 3) { + return (flyteidl.core.Literals.Literal) data_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + /** + *
+     * Single literal will be returned. This is returned when the user/url requests a specific output or input
+     * by name. See the o3 example above.
+     * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralOrBuilder() { + if (dataCase_ == 3) { + return (flyteidl.core.Literals.Literal) data_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + output.writeMessage(2, (flyteidl.service.Dataproxy.PreSignedURLs) data_); + } + if (dataCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.Literal) data_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.service.Dataproxy.PreSignedURLs) data_); + } + if (dataCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.Literal) data_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Dataproxy.GetDataResponse)) { + return super.equals(obj); + } + flyteidl.service.Dataproxy.GetDataResponse other = (flyteidl.service.Dataproxy.GetDataResponse) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getLiteralMap() + .equals(other.getLiteralMap())) return false; + break; + case 2: + if (!getPreSignedUrls() + .equals(other.getPreSignedUrls())) return false; + break; + case 3: + if (!getLiteral() + .equals(other.getLiteral())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + LITERAL_MAP_FIELD_NUMBER; + hash = (53 * hash) + getLiteralMap().hashCode(); + break; + case 2: + hash = (37 * hash) + PRE_SIGNED_URLS_FIELD_NUMBER; + hash = (53 * hash) + getPreSignedUrls().hashCode(); + break; + case 3: + hash = (37 * hash) + LITERAL_FIELD_NUMBER; + hash = (53 * hash) + getLiteral().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Dataproxy.GetDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.service.GetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.GetDataResponse) + flyteidl.service.Dataproxy.GetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Dataproxy.GetDataResponse.class, flyteidl.service.Dataproxy.GetDataResponse.Builder.class); + } + + // Construct using flyteidl.service.Dataproxy.GetDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataResponse getDefaultInstanceForType() { + return flyteidl.service.Dataproxy.GetDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataResponse build() { + flyteidl.service.Dataproxy.GetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataResponse buildPartial() { + flyteidl.service.Dataproxy.GetDataResponse result = new flyteidl.service.Dataproxy.GetDataResponse(this); + if (dataCase_ == 1) { + if (literalMapBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = literalMapBuilder_.build(); + } + } + if (dataCase_ == 2) { + if (preSignedUrlsBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = preSignedUrlsBuilder_.build(); + } + } + if (dataCase_ == 3) { + if (literalBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = literalBuilder_.build(); + } + } + result.dataCase_ = dataCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Dataproxy.GetDataResponse) { + return mergeFrom((flyteidl.service.Dataproxy.GetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Dataproxy.GetDataResponse other) { + if (other == flyteidl.service.Dataproxy.GetDataResponse.getDefaultInstance()) return this; + switch (other.getDataCase()) { + case LITERAL_MAP: { + mergeLiteralMap(other.getLiteralMap()); + break; + } + case PRE_SIGNED_URLS: { + mergePreSignedUrls(other.getPreSignedUrls()); + break; + } + case LITERAL: { + mergeLiteral(other.getLiteral()); + break; + } + case DATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Dataproxy.GetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Dataproxy.GetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataCase_ = 0; + private java.lang.Object data_; + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> literalMapBuilder_; + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public boolean hasLiteralMap() { + return dataCase_ == 1; + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public flyteidl.core.Literals.LiteralMap getLiteralMap() { + if (literalMapBuilder_ == null) { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (dataCase_ == 1) { + return literalMapBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public Builder setLiteralMap(flyteidl.core.Literals.LiteralMap value) { + if (literalMapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + literalMapBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public Builder setLiteralMap( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (literalMapBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + literalMapBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 1; + return this; + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public Builder mergeLiteralMap(flyteidl.core.Literals.LiteralMap value) { + if (literalMapBuilder_ == null) { + if (dataCase_ == 1 && + data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 1) { + literalMapBuilder_.mergeFrom(value); + } + literalMapBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public Builder clearLiteralMap() { + if (literalMapBuilder_ == null) { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + } + literalMapBuilder_.clear(); + } + return this; + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public flyteidl.core.Literals.LiteralMap.Builder getLiteralMapBuilder() { + return getLiteralMapFieldBuilder().getBuilder(); + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getLiteralMapOrBuilder() { + if ((dataCase_ == 1) && (literalMapBuilder_ != null)) { + return literalMapBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * literal map data will be returned
+       * 
+ * + * .flyteidl.core.LiteralMap literal_map = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getLiteralMapFieldBuilder() { + if (literalMapBuilder_ == null) { + if (!(dataCase_ == 1)) { + data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + literalMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 1; + onChanged();; + return literalMapBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> preSignedUrlsBuilder_; + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public boolean hasPreSignedUrls() { + return dataCase_ == 2; + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { + if (preSignedUrlsBuilder_ == null) { + if (dataCase_ == 2) { + return (flyteidl.service.Dataproxy.PreSignedURLs) data_; + } + return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); + } else { + if (dataCase_ == 2) { + return preSignedUrlsBuilder_.getMessage(); + } + return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); + } + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public Builder setPreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { + if (preSignedUrlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + preSignedUrlsBuilder_.setMessage(value); + } + dataCase_ = 2; + return this; + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public Builder setPreSignedUrls( + flyteidl.service.Dataproxy.PreSignedURLs.Builder builderForValue) { + if (preSignedUrlsBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + preSignedUrlsBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 2; + return this; + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public Builder mergePreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { + if (preSignedUrlsBuilder_ == null) { + if (dataCase_ == 2 && + data_ != flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance()) { + data_ = flyteidl.service.Dataproxy.PreSignedURLs.newBuilder((flyteidl.service.Dataproxy.PreSignedURLs) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 2) { + preSignedUrlsBuilder_.mergeFrom(value); + } + preSignedUrlsBuilder_.setMessage(value); + } + dataCase_ = 2; + return this; + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public Builder clearPreSignedUrls() { + if (preSignedUrlsBuilder_ == null) { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + } + preSignedUrlsBuilder_.clear(); + } + return this; + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public flyteidl.service.Dataproxy.PreSignedURLs.Builder getPreSignedUrlsBuilder() { + return getPreSignedUrlsFieldBuilder().getBuilder(); + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { + if ((dataCase_ == 2) && (preSignedUrlsBuilder_ != null)) { + return preSignedUrlsBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 2) { + return (flyteidl.service.Dataproxy.PreSignedURLs) data_; + } + return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); + } + } + /** + *
+       * Flyte deck html will be returned as a signed url users can download
+       * 
+ * + * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> + getPreSignedUrlsFieldBuilder() { + if (preSignedUrlsBuilder_ == null) { + if (!(dataCase_ == 2)) { + data_ = flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); + } + preSignedUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder>( + (flyteidl.service.Dataproxy.PreSignedURLs) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 2; + onChanged();; + return preSignedUrlsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalBuilder_; + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public boolean hasLiteral() { + return dataCase_ == 3; + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public flyteidl.core.Literals.Literal getLiteral() { + if (literalBuilder_ == null) { + if (dataCase_ == 3) { + return (flyteidl.core.Literals.Literal) data_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } else { + if (dataCase_ == 3) { + return literalBuilder_.getMessage(); + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public Builder setLiteral(flyteidl.core.Literals.Literal value) { + if (literalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + literalBuilder_.setMessage(value); + } + dataCase_ = 3; + return this; + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public Builder setLiteral( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + literalBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 3; + return this; + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public Builder mergeLiteral(flyteidl.core.Literals.Literal value) { + if (literalBuilder_ == null) { + if (dataCase_ == 3 && + data_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { + data_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 3) { + literalBuilder_.mergeFrom(value); + } + literalBuilder_.setMessage(value); + } + dataCase_ = 3; + return this; + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public Builder clearLiteral() { + if (literalBuilder_ == null) { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + } + literalBuilder_.clear(); + } + return this; + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public flyteidl.core.Literals.Literal.Builder getLiteralBuilder() { + return getLiteralFieldBuilder().getBuilder(); + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralOrBuilder() { + if ((dataCase_ == 3) && (literalBuilder_ != null)) { + return literalBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 3) { + return (flyteidl.core.Literals.Literal) data_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Single literal will be returned. This is returned when the user/url requests a specific output or input
+       * by name. See the o3 example above.
+       * 
+ * + * .flyteidl.core.Literal literal = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getLiteralFieldBuilder() { + if (literalBuilder_ == null) { + if (!(dataCase_ == 3)) { + data_ = flyteidl.core.Literals.Literal.getDefaultInstance(); + } + literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + (flyteidl.core.Literals.Literal) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 3; + onChanged();; + return literalBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.GetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataResponse) + private static final flyteidl.service.Dataproxy.GetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.GetDataResponse(); + } + + public static flyteidl.service.Dataproxy.GetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Dataproxy.GetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_PreSignedURLs_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_GetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_GetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n flyteidl/service/dataproxy.proto\022\020flyt" + + "eidl.service\032\034google/api/annotations.pro" + + "to\032\036google/protobuf/duration.proto\032\037goog" + + "le/protobuf/timestamp.proto\032\036flyteidl/co" + + "re/identifier.proto\032\034flyteidl/core/liter" + + "als.proto\"v\n\034CreateUploadLocationRespons" + + "e\022\022\n\nsigned_url\030\001 \001(\t\022\022\n\nnative_url\030\002 \001(" + + "\t\022.\n\nexpires_at\030\003 \001(\0132\032.google.protobuf." + + "Timestamp\"\253\001\n\033CreateUploadLocationReques" + + "t\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010fi" + + "lename\030\003 \001(\t\022-\n\nexpires_in\030\004 \001(\0132\031.googl" + + "e.protobuf.Duration\022\023\n\013content_md5\030\005 \001(\014" + + "\022\025\n\rfilename_root\030\006 \001(\t\"f\n\035CreateDownloa" + + "dLocationRequest\022\022\n\nnative_url\030\001 \001(\t\022-\n\n" + + "expires_in\030\002 \001(\0132\031.google.protobuf.Durat" + + "ion:\002\030\001\"h\n\036CreateDownloadLocationRespons" + + "e\022\022\n\nsigned_url\030\001 \001(\t\022.\n\nexpires_at\030\002 \001(" + + "\0132\032.google.protobuf.Timestamp:\002\030\001\"\320\001\n\031Cr" + + "eateDownloadLinkRequest\0225\n\rartifact_type" + + "\030\001 \001(\0162\036.flyteidl.service.ArtifactType\022-" + + "\n\nexpires_in\030\002 \001(\0132\031.google.protobuf.Dur" + + "ation\022C\n\021node_execution_id\030\003 \001(\0132&.flyte" + + "idl.core.NodeExecutionIdentifierH\000B\010\n\006so" + + "urce\"\242\001\n\032CreateDownloadLinkResponse\022\026\n\ns" + + "igned_url\030\001 \003(\tB\002\030\001\0222\n\nexpires_at\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\002\030\001\0228\n\017pre_s" + + "igned_urls\030\003 \001(\0132\037.flyteidl.service.PreS" + + "ignedURLs\"S\n\rPreSignedURLs\022\022\n\nsigned_url" + + "\030\001 \003(\t\022.\n\nexpires_at\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\"#\n\016GetDataRequest\022\021\n\tflyt" + + "e_url\030\001 \001(\t\"\262\001\n\017GetDataResponse\0220\n\013liter" + + "al_map\030\001 \001(\0132\031.flyteidl.core.LiteralMapH" + + "\000\022:\n\017pre_signed_urls\030\002 \001(\0132\037.flyteidl.se" + + "rvice.PreSignedURLsH\000\022)\n\007literal\030\003 \001(\0132\026" + + ".flyteidl.core.LiteralH\000B\006\n\004data*C\n\014Arti" + + "factType\022\033\n\027ARTIFACT_TYPE_UNDEFINED\020\000\022\026\n" + + "\022ARTIFACT_TYPE_DECK\020\0012\342\004\n\020DataProxyServi" + + "ce\022\240\001\n\024CreateUploadLocation\022-.flyteidl.s" + + "ervice.CreateUploadLocationRequest\032..fly" + + "teidl.service.CreateUploadLocationRespon" + + "se\")\202\323\344\223\002#\"\036/api/v1/dataproxy/artifact_u" + + "rn:\001*\022\246\001\n\026CreateDownloadLocation\022/.flyte" + + "idl.service.CreateDownloadLocationReques" + + "t\0320.flyteidl.service.CreateDownloadLocat" + + "ionResponse\")\210\002\001\202\323\344\223\002 \022\036/api/v1/dataprox" + + "y/artifact_urn\022\233\001\n\022CreateDownloadLink\022+." + + "flyteidl.service.CreateDownloadLinkReque" + + "st\032,.flyteidl.service.CreateDownloadLink" + + "Response\"*\202\323\344\223\002$\"\037/api/v1/dataproxy/arti" + + "fact_link:\001*\022d\n\007GetData\022 .flyteidl.servi" + + "ce.GetDataRequest\032!.flyteidl.service.Get" + + "DataResponse\"\024\202\323\344\223\002\016\022\014/api/v1/dataB9Z7gi" + + "thub.com/flyteorg/flyteidl/gen/pb-go/fly" + + "teidl/serviceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor, + new java.lang.String[] { "SignedUrl", "NativeUrl", "ExpiresAt", }); + internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Filename", "ExpiresIn", "ContentMd5", "FilenameRoot", }); + internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor, + new java.lang.String[] { "NativeUrl", "ExpiresIn", }); + internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor, + new java.lang.String[] { "SignedUrl", "ExpiresAt", }); + internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor, + new java.lang.String[] { "ArtifactType", "ExpiresIn", "NodeExecutionId", "Source", }); + internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor, + new java.lang.String[] { "SignedUrl", "ExpiresAt", "PreSignedUrls", }); + internal_static_flyteidl_service_PreSignedURLs_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_PreSignedURLs_descriptor, + new java.lang.String[] { "SignedUrl", "ExpiresAt", }); + internal_static_flyteidl_service_GetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_GetDataRequest_descriptor, + new java.lang.String[] { "FlyteUrl", }); + internal_static_flyteidl_service_GetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_GetDataResponse_descriptor, + new java.lang.String[] { "LiteralMap", "PreSignedUrls", "Literal", "Data", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java b/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java new file mode 100644 index 0000000000..0ab9800584 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java @@ -0,0 +1,4743 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/external_plugin_service.proto + +package flyteidl.service; + +public final class ExternalPluginServiceOuterClass { + private ExternalPluginServiceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * The state of the execution is used to control its visibility in the UI/CLI.
+   * 
+ * + * Protobuf enum {@code flyteidl.service.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * RETRYABLE_FAILURE = 0; + */ + RETRYABLE_FAILURE(0), + /** + * PERMANENT_FAILURE = 1; + */ + PERMANENT_FAILURE(1), + /** + * PENDING = 2; + */ + PENDING(2), + /** + * RUNNING = 3; + */ + RUNNING(3), + /** + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + UNRECOGNIZED(-1), + ; + + /** + * RETRYABLE_FAILURE = 0; + */ + public static final int RETRYABLE_FAILURE_VALUE = 0; + /** + * PERMANENT_FAILURE = 1; + */ + public static final int PERMANENT_FAILURE_VALUE = 1; + /** + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + /** + * RUNNING = 3; + */ + public static final int RUNNING_VALUE = 3; + /** + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + public static State forNumber(int value) { + switch (value) { + case 0: return RETRYABLE_FAILURE; + case 1: return PERMANENT_FAILURE; + case 2: return PENDING; + case 3: return RUNNING; + case 4: return SUCCEEDED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.service.State) + } + + @java.lang.Deprecated public interface TaskCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + java.lang.String getOutputPrefix(); + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + com.google.protobuf.ByteString + getOutputPrefixBytes(); + } + /** + *
+   * Represents a request structure to create task.
+   * 
+ * + * Protobuf type {@code flyteidl.service.TaskCreateRequest} + */ + @java.lang.Deprecated public static final class TaskCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.TaskCreateRequest) + TaskCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateRequest.newBuilder() to construct. + private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateRequest() { + outputPrefix_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputPrefix_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * The inputs required to start the execution. All required inputs must be
+     * included in this map. If not required and not provided, defaults apply.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int TEMPLATE_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int OUTPUT_PREFIX_FIELD_NUMBER = 3; + private volatile java.lang.Object outputPrefix_; + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + public java.lang.String getOutputPrefix() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPrefix_ = s; + return s; + } + } + /** + *
+     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+     * 
+ * + * string output_prefix = 3; + */ + public com.google.protobuf.ByteString + getOutputPrefixBytes() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (template_ != null) { + output.writeMessage(2, getTemplate()); + } + if (!getOutputPrefixBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPrefix_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTemplate()); + } + if (!getOutputPrefixBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPrefix_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest)) { + return super.equals(obj); + } + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) obj; + + if (hasInputs() != other.hasInputs()) return false; + if (hasInputs()) { + if (!getInputs() + .equals(other.getInputs())) return false; + } + if (hasTemplate() != other.hasTemplate()) return false; + if (hasTemplate()) { + if (!getTemplate() + .equals(other.getTemplate())) return false; + } + if (!getOutputPrefix() + .equals(other.getOutputPrefix())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (37 * hash) + OUTPUT_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getOutputPrefix().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a request structure to create task.
+     * 
+ * + * Protobuf type {@code flyteidl.service.TaskCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskCreateRequest) + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); + } + + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + outputPrefix_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + result.outputPrefix_ = outputPrefix_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (!other.getOutputPrefix().isEmpty()) { + outputPrefix_ = other.outputPrefix_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.LiteralMap inputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * The inputs required to start the execution. All required inputs must be
+       * included in this map. If not required and not provided, defaults apply.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Tasks.TaskTemplate template_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private java.lang.Object outputPrefix_ = ""; + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public java.lang.String getOutputPrefix() { + java.lang.Object ref = outputPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public com.google.protobuf.ByteString + getOutputPrefixBytes() { + java.lang.Object ref = outputPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + outputPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder setOutputPrefix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputPrefix_ = value; + onChanged(); + return this; + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder clearOutputPrefix() { + + outputPrefix_ = getDefaultInstance().getOutputPrefix(); + onChanged(); + return this; + } + /** + *
+       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
+       * 
+ * + * string output_prefix = 3; + */ + public Builder setOutputPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputPrefix_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.TaskCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateRequest) + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(); + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface TaskCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskCreateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string job_id = 1; + */ + java.lang.String getJobId(); + /** + * string job_id = 1; + */ + com.google.protobuf.ByteString + getJobIdBytes(); + } + /** + *
+   * Represents a create response structure.
+   * 
+ * + * Protobuf type {@code flyteidl.service.TaskCreateResponse} + */ + @java.lang.Deprecated public static final class TaskCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.TaskCreateResponse) + TaskCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateResponse.newBuilder() to construct. + private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateResponse() { + jobId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + jobId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); + } + + public static final int JOB_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object jobId_; + /** + * string job_id = 1; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } + } + /** + * string job_id = 1; + */ + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getJobIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getJobIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse)) { + return super.equals(obj); + } + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) obj; + + if (!getJobId() + .equals(other.getJobId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Represents a create response structure.
+     * 
+ * + * Protobuf type {@code flyteidl.service.TaskCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskCreateResponse) + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); + } + + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + jobId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(this); + result.jobId_ = jobId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance()) return this; + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object jobId_ = ""; + /** + * string job_id = 1; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string job_id = 1; + */ + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string job_id = 1; + */ + public Builder setJobId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + * string job_id = 1; + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + * string job_id = 1; + */ + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.TaskCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateResponse) + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(); + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface TaskGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + java.lang.String getJobId(); + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + com.google.protobuf.ByteString + getJobIdBytes(); + } + /** + *
+   * A message used to fetch a job state from backend plugin server.
+   * 
+ * + * Protobuf type {@code flyteidl.service.TaskGetRequest} + */ + @java.lang.Deprecated public static final class TaskGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.TaskGetRequest) + TaskGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskGetRequest.newBuilder() to construct. + private TaskGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskGetRequest() { + taskType_ = ""; + jobId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskGetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + jobId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); + } + + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object jobId_; + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } + } + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!getJobIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!getJobIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest)) { + return super.equals(obj); + } + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getJobId() + .equals(other.getJobId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to fetch a job state from backend plugin server.
+     * 
+ * + * Protobuf type {@code flyteidl.service.TaskGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskGetRequest) + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); + } + + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + jobId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(this); + result.taskType_ = taskType_; + result.jobId_ = jobId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobId_ = ""; + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public Builder setJobId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.TaskGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetRequest) + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(); + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface TaskGetResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskGetResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.service.State state = 1; + */ + int getStateValue(); + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.service.State state = 1; + */ + flyteidl.service.ExternalPluginServiceOuterClass.State getState(); + + /** + *
+     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + flyteidl.core.Literals.LiteralMap getOutputs(); + /** + *
+     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response to get an individual task state.
+   * 
+ * + * Protobuf type {@code flyteidl.service.TaskGetResponse} + */ + @java.lang.Deprecated public static final class TaskGetResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.TaskGetResponse) + TaskGetResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskGetResponse.newBuilder() to construct. + private TaskGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskGetResponse() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskGetResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.service.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * The state of the execution is used to control its visibility in the UI/CLI.
+     * 
+ * + * .flyteidl.service.State state = 1; + */ + public flyteidl.service.ExternalPluginServiceOuterClass.State getState() { + @SuppressWarnings("deprecation") + flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); + return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Literals.LiteralMap outputs_; + /** + *
+     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getOutputs() { + return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } + /** + *
+     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+     * Structured dataset pointing to the query result table.
+     * +optional
+     * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != flyteidl.service.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { + output.writeEnum(1, state_); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.service.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse)) { + return super.equals(obj); + } + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) obj; + + if (state_ != other.state_) return false; + if (hasOutputs() != other.hasOutputs()) return false; + if (hasOutputs()) { + if (!getOutputs() + .equals(other.getOutputs())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to get an individual task state.
+     * 
+ * + * Protobuf type {@code flyteidl.service.TaskGetResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskGetResponse) + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); + } + + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(this); + result.state_ = state_; + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.service.State state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.service.State state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.service.State state = 1; + */ + public flyteidl.service.ExternalPluginServiceOuterClass.State getState() { + @SuppressWarnings("deprecation") + flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); + return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.service.State state = 1; + */ + public Builder setState(flyteidl.service.ExternalPluginServiceOuterClass.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The state of the execution is used to control its visibility in the UI/CLI.
+       * 
+ * + * .flyteidl.service.State state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Literals.LiteralMap outputs_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputsBuilder_; + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder setOutputs(flyteidl.core.Literals.LiteralMap value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder setOutputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder mergeOutputs(flyteidl.core.Literals.LiteralMap value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMap.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; + } + } + /** + *
+       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
+       * Structured dataset pointing to the query result table.
+       * +optional
+       * 
+ * + * .flyteidl.core.LiteralMap outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.TaskGetResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetResponse) + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(); + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskGetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskGetResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface TaskDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskDeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + java.lang.String getTaskType(); + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + com.google.protobuf.ByteString + getTaskTypeBytes(); + + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + java.lang.String getJobId(); + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + com.google.protobuf.ByteString + getJobIdBytes(); + } + /** + *
+   * A message used to delete a task.
+   * 
+ * + * Protobuf type {@code flyteidl.service.TaskDeleteRequest} + */ + @java.lang.Deprecated public static final class TaskDeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.TaskDeleteRequest) + TaskDeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskDeleteRequest.newBuilder() to construct. + private TaskDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskDeleteRequest() { + taskType_ = ""; + jobId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskDeleteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + taskType_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + jobId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); + } + + public static final int TASK_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object taskType_; + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier.
+     * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOB_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object jobId_; + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } + } + /** + *
+     * The unique id identifying the job.
+     * 
+ * + * string job_id = 2; + */ + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTaskTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); + } + if (!getJobIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTaskTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); + } + if (!getJobIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest)) { + return super.equals(obj); + } + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) obj; + + if (!getTaskType() + .equals(other.getTaskType())) return false; + if (!getJobId() + .equals(other.getJobId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTaskType().hashCode(); + hash = (37 * hash) + JOB_ID_FIELD_NUMBER; + hash = (53 * hash) + getJobId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A message used to delete a task.
+     * 
+ * + * Protobuf type {@code flyteidl.service.TaskDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskDeleteRequest) + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); + } + + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + taskType_ = ""; + + jobId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(this); + result.taskType_ = taskType_; + result.jobId_ = jobId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance()) return this; + if (!other.getTaskType().isEmpty()) { + taskType_ = other.taskType_; + onChanged(); + } + if (!other.getJobId().isEmpty()) { + jobId_ = other.jobId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object taskType_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public java.lang.String getTaskType() { + java.lang.Object ref = taskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public com.google.protobuf.ByteString + getTaskTypeBytes() { + java.lang.Object ref = taskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + taskType_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder clearTaskType() { + + taskType_ = getDefaultInstance().getTaskType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier.
+       * 
+ * + * string task_type = 1; + */ + public Builder setTaskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + taskType_ = value; + onChanged(); + return this; + } + + private java.lang.Object jobId_ = ""; + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public java.lang.String getJobId() { + java.lang.Object ref = jobId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jobId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public com.google.protobuf.ByteString + getJobIdBytes() { + java.lang.Object ref = jobId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + jobId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public Builder setJobId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + jobId_ = value; + onChanged(); + return this; + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public Builder clearJobId() { + + jobId_ = getDefaultInstance().getJobId(); + onChanged(); + return this; + } + /** + *
+       * The unique id identifying the job.
+       * 
+ * + * string job_id = 2; + */ + public Builder setJobIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + jobId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.TaskDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteRequest) + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(); + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskDeleteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskDeleteRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + @java.lang.Deprecated public interface TaskDeleteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskDeleteResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Response to delete a task.
+   * 
+ * + * Protobuf type {@code flyteidl.service.TaskDeleteResponse} + */ + @java.lang.Deprecated public static final class TaskDeleteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.TaskDeleteResponse) + TaskDeleteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskDeleteResponse.newBuilder() to construct. + private TaskDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskDeleteResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskDeleteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse)) { + return super.equals(obj); + } + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Response to delete a task.
+     * 
+ * + * Protobuf type {@code flyteidl.service.TaskDeleteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskDeleteResponse) + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); + } + + // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { + return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse build() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse buildPartial() { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) { + return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other) { + if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.TaskDeleteResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteResponse) + private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(); + } + + public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskDeleteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskDeleteResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_TaskCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_TaskCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_TaskGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_TaskGetResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_TaskDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_TaskDeleteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.flyteidl/service/external_plugin_servi" + + "ce.proto\022\020flyteidl.service\032\034flyteidl/cor" + + "e/literals.proto\032\031flyteidl/core/tasks.pr" + + "oto\032\035flyteidl/core/interface.proto\"\210\001\n\021T" + + "askCreateRequest\022)\n\006inputs\030\001 \001(\0132\031.flyte" + + "idl.core.LiteralMap\022-\n\010template\030\002 \001(\0132\033." + + "flyteidl.core.TaskTemplate\022\025\n\routput_pre" + + "fix\030\003 \001(\t:\002\030\001\"(\n\022TaskCreateResponse\022\016\n\006j" + + "ob_id\030\001 \001(\t:\002\030\001\"7\n\016TaskGetRequest\022\021\n\ttas" + + "k_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"i\n\017Task" + + "GetResponse\022&\n\005state\030\001 \001(\0162\027.flyteidl.se" + + "rvice.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl." + + "core.LiteralMap:\002\030\001\":\n\021TaskDeleteRequest" + + "\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"" + + "\030\n\022TaskDeleteResponse:\002\030\001*b\n\005State\022\025\n\021RE" + + "TRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001" + + "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + + "\004\032\002\030\0012\250\002\n\025ExternalPluginService\022\\\n\nCreat" + + "eTask\022#.flyteidl.service.TaskCreateReque" + + "st\032$.flyteidl.service.TaskCreateResponse" + + "\"\003\210\002\001\022S\n\007GetTask\022 .flyteidl.service.Task" + + "GetRequest\032!.flyteidl.service.TaskGetRes" + + "ponse\"\003\210\002\001\022\\\n\nDeleteTask\022#.flyteidl.serv" + + "ice.TaskDeleteRequest\032$.flyteidl.service" + + ".TaskDeleteResponse\"\003\210\002\001B9Z7github.com/f" + + "lyteorg/flyteidl/gen/pb-go/flyteidl/serv" + + "iceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + }, assigner); + internal_static_flyteidl_service_TaskCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_TaskCreateRequest_descriptor, + new java.lang.String[] { "Inputs", "Template", "OutputPrefix", }); + internal_static_flyteidl_service_TaskCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_TaskCreateResponse_descriptor, + new java.lang.String[] { "JobId", }); + internal_static_flyteidl_service_TaskGetRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_TaskGetRequest_descriptor, + new java.lang.String[] { "TaskType", "JobId", }); + internal_static_flyteidl_service_TaskGetResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_TaskGetResponse_descriptor, + new java.lang.String[] { "State", "Outputs", }); + internal_static_flyteidl_service_TaskDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_TaskDeleteRequest_descriptor, + new java.lang.String[] { "TaskType", "JobId", }); + internal_static_flyteidl_service_TaskDeleteResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_TaskDeleteResponse_descriptor, + new java.lang.String[] { }); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Identity.java b/flyteidl/gen/pb-java/flyteidl/service/Identity.java new file mode 100644 index 0000000000..9a56444a52 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Identity.java @@ -0,0 +1,2391 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/identity.proto + +package flyteidl.service; + +public final class Identity { + private Identity() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface UserInfoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.UserInfoRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.service.UserInfoRequest} + */ + public static final class UserInfoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.UserInfoRequest) + UserInfoRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserInfoRequest.newBuilder() to construct. + private UserInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserInfoRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserInfoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Identity.UserInfoRequest.class, flyteidl.service.Identity.UserInfoRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Identity.UserInfoRequest)) { + return super.equals(obj); + } + flyteidl.service.Identity.UserInfoRequest other = (flyteidl.service.Identity.UserInfoRequest) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Identity.UserInfoRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Identity.UserInfoRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Identity.UserInfoRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code flyteidl.service.UserInfoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.UserInfoRequest) + flyteidl.service.Identity.UserInfoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Identity.UserInfoRequest.class, flyteidl.service.Identity.UserInfoRequest.Builder.class); + } + + // Construct using flyteidl.service.Identity.UserInfoRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_descriptor; + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoRequest getDefaultInstanceForType() { + return flyteidl.service.Identity.UserInfoRequest.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoRequest build() { + flyteidl.service.Identity.UserInfoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoRequest buildPartial() { + flyteidl.service.Identity.UserInfoRequest result = new flyteidl.service.Identity.UserInfoRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Identity.UserInfoRequest) { + return mergeFrom((flyteidl.service.Identity.UserInfoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Identity.UserInfoRequest other) { + if (other == flyteidl.service.Identity.UserInfoRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Identity.UserInfoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Identity.UserInfoRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.UserInfoRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoRequest) + private static final flyteidl.service.Identity.UserInfoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Identity.UserInfoRequest(); + } + + public static flyteidl.service.Identity.UserInfoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserInfoRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserInfoResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.service.UserInfoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+     * by the Client.
+     * 
+ * + * string subject = 1; + */ + java.lang.String getSubject(); + /** + *
+     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+     * by the Client.
+     * 
+ * + * string subject = 1; + */ + com.google.protobuf.ByteString + getSubjectBytes(); + + /** + *
+     * Full name
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Full name
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Shorthand name by which the End-User wishes to be referred to
+     * 
+ * + * string preferred_username = 3; + */ + java.lang.String getPreferredUsername(); + /** + *
+     * Shorthand name by which the End-User wishes to be referred to
+     * 
+ * + * string preferred_username = 3; + */ + com.google.protobuf.ByteString + getPreferredUsernameBytes(); + + /** + *
+     * Given name(s) or first name(s)
+     * 
+ * + * string given_name = 4; + */ + java.lang.String getGivenName(); + /** + *
+     * Given name(s) or first name(s)
+     * 
+ * + * string given_name = 4; + */ + com.google.protobuf.ByteString + getGivenNameBytes(); + + /** + *
+     * Surname(s) or last name(s)
+     * 
+ * + * string family_name = 5; + */ + java.lang.String getFamilyName(); + /** + *
+     * Surname(s) or last name(s)
+     * 
+ * + * string family_name = 5; + */ + com.google.protobuf.ByteString + getFamilyNameBytes(); + + /** + *
+     * Preferred e-mail address
+     * 
+ * + * string email = 6; + */ + java.lang.String getEmail(); + /** + *
+     * Preferred e-mail address
+     * 
+ * + * string email = 6; + */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + *
+     * Profile picture URL
+     * 
+ * + * string picture = 7; + */ + java.lang.String getPicture(); + /** + *
+     * Profile picture URL
+     * 
+ * + * string picture = 7; + */ + com.google.protobuf.ByteString + getPictureBytes(); + + /** + *
+     * Additional claims
+     * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + boolean hasAdditionalClaims(); + /** + *
+     * Additional claims
+     * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + com.google.protobuf.Struct getAdditionalClaims(); + /** + *
+     * Additional claims
+     * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + com.google.protobuf.StructOrBuilder getAdditionalClaimsOrBuilder(); + } + /** + *
+   * See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information.
+   * 
+ * + * Protobuf type {@code flyteidl.service.UserInfoResponse} + */ + public static final class UserInfoResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.service.UserInfoResponse) + UserInfoResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserInfoResponse.newBuilder() to construct. + private UserInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserInfoResponse() { + subject_ = ""; + name_ = ""; + preferredUsername_ = ""; + givenName_ = ""; + familyName_ = ""; + email_ = ""; + picture_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserInfoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subject_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + preferredUsername_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + givenName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + familyName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + picture_ = s; + break; + } + case 66: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (additionalClaims_ != null) { + subBuilder = additionalClaims_.toBuilder(); + } + additionalClaims_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(additionalClaims_); + additionalClaims_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Identity.UserInfoResponse.class, flyteidl.service.Identity.UserInfoResponse.Builder.class); + } + + public static final int SUBJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object subject_; + /** + *
+     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+     * by the Client.
+     * 
+ * + * string subject = 1; + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } + } + /** + *
+     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+     * by the Client.
+     * 
+ * + * string subject = 1; + */ + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Full name
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+     * Full name
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREFERRED_USERNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object preferredUsername_; + /** + *
+     * Shorthand name by which the End-User wishes to be referred to
+     * 
+ * + * string preferred_username = 3; + */ + public java.lang.String getPreferredUsername() { + java.lang.Object ref = preferredUsername_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredUsername_ = s; + return s; + } + } + /** + *
+     * Shorthand name by which the End-User wishes to be referred to
+     * 
+ * + * string preferred_username = 3; + */ + public com.google.protobuf.ByteString + getPreferredUsernameBytes() { + java.lang.Object ref = preferredUsername_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + preferredUsername_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GIVEN_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object givenName_; + /** + *
+     * Given name(s) or first name(s)
+     * 
+ * + * string given_name = 4; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } + } + /** + *
+     * Given name(s) or first name(s)
+     * 
+ * + * string given_name = 4; + */ + public com.google.protobuf.ByteString + getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object familyName_; + /** + *
+     * Surname(s) or last name(s)
+     * 
+ * + * string family_name = 5; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } + } + /** + *
+     * Surname(s) or last name(s)
+     * 
+ * + * string family_name = 5; + */ + public com.google.protobuf.ByteString + getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 6; + private volatile java.lang.Object email_; + /** + *
+     * Preferred e-mail address
+     * 
+ * + * string email = 6; + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + /** + *
+     * Preferred e-mail address
+     * 
+ * + * string email = 6; + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PICTURE_FIELD_NUMBER = 7; + private volatile java.lang.Object picture_; + /** + *
+     * Profile picture URL
+     * 
+ * + * string picture = 7; + */ + public java.lang.String getPicture() { + java.lang.Object ref = picture_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + picture_ = s; + return s; + } + } + /** + *
+     * Profile picture URL
+     * 
+ * + * string picture = 7; + */ + public com.google.protobuf.ByteString + getPictureBytes() { + java.lang.Object ref = picture_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + picture_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDITIONAL_CLAIMS_FIELD_NUMBER = 8; + private com.google.protobuf.Struct additionalClaims_; + /** + *
+     * Additional claims
+     * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public boolean hasAdditionalClaims() { + return additionalClaims_ != null; + } + /** + *
+     * Additional claims
+     * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public com.google.protobuf.Struct getAdditionalClaims() { + return additionalClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalClaims_; + } + /** + *
+     * Additional claims
+     * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public com.google.protobuf.StructOrBuilder getAdditionalClaimsOrBuilder() { + return getAdditionalClaims(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!getPreferredUsernameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, preferredUsername_); + } + if (!getGivenNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, givenName_); + } + if (!getFamilyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, familyName_); + } + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, email_); + } + if (!getPictureBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, picture_); + } + if (additionalClaims_ != null) { + output.writeMessage(8, getAdditionalClaims()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!getPreferredUsernameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, preferredUsername_); + } + if (!getGivenNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, givenName_); + } + if (!getFamilyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, familyName_); + } + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, email_); + } + if (!getPictureBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, picture_); + } + if (additionalClaims_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAdditionalClaims()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.service.Identity.UserInfoResponse)) { + return super.equals(obj); + } + flyteidl.service.Identity.UserInfoResponse other = (flyteidl.service.Identity.UserInfoResponse) obj; + + if (!getSubject() + .equals(other.getSubject())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPreferredUsername() + .equals(other.getPreferredUsername())) return false; + if (!getGivenName() + .equals(other.getGivenName())) return false; + if (!getFamilyName() + .equals(other.getFamilyName())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getPicture() + .equals(other.getPicture())) return false; + if (hasAdditionalClaims() != other.hasAdditionalClaims()) return false; + if (hasAdditionalClaims()) { + if (!getAdditionalClaims() + .equals(other.getAdditionalClaims())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PREFERRED_USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getPreferredUsername().hashCode(); + hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGivenName().hashCode(); + hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFamilyName().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + PICTURE_FIELD_NUMBER; + hash = (53 * hash) + getPicture().hashCode(); + if (hasAdditionalClaims()) { + hash = (37 * hash) + ADDITIONAL_CLAIMS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalClaims().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.service.Identity.UserInfoResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.service.Identity.UserInfoResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.service.Identity.UserInfoResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information.
+     * 
+ * + * Protobuf type {@code flyteidl.service.UserInfoResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.service.UserInfoResponse) + flyteidl.service.Identity.UserInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.service.Identity.UserInfoResponse.class, flyteidl.service.Identity.UserInfoResponse.Builder.class); + } + + // Construct using flyteidl.service.Identity.UserInfoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + subject_ = ""; + + name_ = ""; + + preferredUsername_ = ""; + + givenName_ = ""; + + familyName_ = ""; + + email_ = ""; + + picture_ = ""; + + if (additionalClaimsBuilder_ == null) { + additionalClaims_ = null; + } else { + additionalClaims_ = null; + additionalClaimsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_descriptor; + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoResponse getDefaultInstanceForType() { + return flyteidl.service.Identity.UserInfoResponse.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoResponse build() { + flyteidl.service.Identity.UserInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoResponse buildPartial() { + flyteidl.service.Identity.UserInfoResponse result = new flyteidl.service.Identity.UserInfoResponse(this); + result.subject_ = subject_; + result.name_ = name_; + result.preferredUsername_ = preferredUsername_; + result.givenName_ = givenName_; + result.familyName_ = familyName_; + result.email_ = email_; + result.picture_ = picture_; + if (additionalClaimsBuilder_ == null) { + result.additionalClaims_ = additionalClaims_; + } else { + result.additionalClaims_ = additionalClaimsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.service.Identity.UserInfoResponse) { + return mergeFrom((flyteidl.service.Identity.UserInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.service.Identity.UserInfoResponse other) { + if (other == flyteidl.service.Identity.UserInfoResponse.getDefaultInstance()) return this; + if (!other.getSubject().isEmpty()) { + subject_ = other.subject_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPreferredUsername().isEmpty()) { + preferredUsername_ = other.preferredUsername_; + onChanged(); + } + if (!other.getGivenName().isEmpty()) { + givenName_ = other.givenName_; + onChanged(); + } + if (!other.getFamilyName().isEmpty()) { + familyName_ = other.familyName_; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + if (!other.getPicture().isEmpty()) { + picture_ = other.picture_; + onChanged(); + } + if (other.hasAdditionalClaims()) { + mergeAdditionalClaims(other.getAdditionalClaims()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.service.Identity.UserInfoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.service.Identity.UserInfoResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object subject_ = ""; + /** + *
+       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+       * by the Client.
+       * 
+ * + * string subject = 1; + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+       * by the Client.
+       * 
+ * + * string subject = 1; + */ + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+       * by the Client.
+       * 
+ * + * string subject = 1; + */ + public Builder setSubject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subject_ = value; + onChanged(); + return this; + } + /** + *
+       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+       * by the Client.
+       * 
+ * + * string subject = 1; + */ + public Builder clearSubject() { + + subject_ = getDefaultInstance().getSubject(); + onChanged(); + return this; + } + /** + *
+       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
+       * by the Client.
+       * 
+ * + * string subject = 1; + */ + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subject_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Full name
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Full name
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Full name
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Full name
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Full name
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object preferredUsername_ = ""; + /** + *
+       * Shorthand name by which the End-User wishes to be referred to
+       * 
+ * + * string preferred_username = 3; + */ + public java.lang.String getPreferredUsername() { + java.lang.Object ref = preferredUsername_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredUsername_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Shorthand name by which the End-User wishes to be referred to
+       * 
+ * + * string preferred_username = 3; + */ + public com.google.protobuf.ByteString + getPreferredUsernameBytes() { + java.lang.Object ref = preferredUsername_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + preferredUsername_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Shorthand name by which the End-User wishes to be referred to
+       * 
+ * + * string preferred_username = 3; + */ + public Builder setPreferredUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + preferredUsername_ = value; + onChanged(); + return this; + } + /** + *
+       * Shorthand name by which the End-User wishes to be referred to
+       * 
+ * + * string preferred_username = 3; + */ + public Builder clearPreferredUsername() { + + preferredUsername_ = getDefaultInstance().getPreferredUsername(); + onChanged(); + return this; + } + /** + *
+       * Shorthand name by which the End-User wishes to be referred to
+       * 
+ * + * string preferred_username = 3; + */ + public Builder setPreferredUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + preferredUsername_ = value; + onChanged(); + return this; + } + + private java.lang.Object givenName_ = ""; + /** + *
+       * Given name(s) or first name(s)
+       * 
+ * + * string given_name = 4; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Given name(s) or first name(s)
+       * 
+ * + * string given_name = 4; + */ + public com.google.protobuf.ByteString + getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Given name(s) or first name(s)
+       * 
+ * + * string given_name = 4; + */ + public Builder setGivenName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + givenName_ = value; + onChanged(); + return this; + } + /** + *
+       * Given name(s) or first name(s)
+       * 
+ * + * string given_name = 4; + */ + public Builder clearGivenName() { + + givenName_ = getDefaultInstance().getGivenName(); + onChanged(); + return this; + } + /** + *
+       * Given name(s) or first name(s)
+       * 
+ * + * string given_name = 4; + */ + public Builder setGivenNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + givenName_ = value; + onChanged(); + return this; + } + + private java.lang.Object familyName_ = ""; + /** + *
+       * Surname(s) or last name(s)
+       * 
+ * + * string family_name = 5; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Surname(s) or last name(s)
+       * 
+ * + * string family_name = 5; + */ + public com.google.protobuf.ByteString + getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Surname(s) or last name(s)
+       * 
+ * + * string family_name = 5; + */ + public Builder setFamilyName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + familyName_ = value; + onChanged(); + return this; + } + /** + *
+       * Surname(s) or last name(s)
+       * 
+ * + * string family_name = 5; + */ + public Builder clearFamilyName() { + + familyName_ = getDefaultInstance().getFamilyName(); + onChanged(); + return this; + } + /** + *
+       * Surname(s) or last name(s)
+       * 
+ * + * string family_name = 5; + */ + public Builder setFamilyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + familyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + *
+       * Preferred e-mail address
+       * 
+ * + * string email = 6; + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Preferred e-mail address
+       * 
+ * + * string email = 6; + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Preferred e-mail address
+       * 
+ * + * string email = 6; + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); + return this; + } + /** + *
+       * Preferred e-mail address
+       * 
+ * + * string email = 6; + */ + public Builder clearEmail() { + + email_ = getDefaultInstance().getEmail(); + onChanged(); + return this; + } + /** + *
+       * Preferred e-mail address
+       * 
+ * + * string email = 6; + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); + return this; + } + + private java.lang.Object picture_ = ""; + /** + *
+       * Profile picture URL
+       * 
+ * + * string picture = 7; + */ + public java.lang.String getPicture() { + java.lang.Object ref = picture_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + picture_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Profile picture URL
+       * 
+ * + * string picture = 7; + */ + public com.google.protobuf.ByteString + getPictureBytes() { + java.lang.Object ref = picture_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + picture_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Profile picture URL
+       * 
+ * + * string picture = 7; + */ + public Builder setPicture( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + picture_ = value; + onChanged(); + return this; + } + /** + *
+       * Profile picture URL
+       * 
+ * + * string picture = 7; + */ + public Builder clearPicture() { + + picture_ = getDefaultInstance().getPicture(); + onChanged(); + return this; + } + /** + *
+       * Profile picture URL
+       * 
+ * + * string picture = 7; + */ + public Builder setPictureBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + picture_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct additionalClaims_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> additionalClaimsBuilder_; + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public boolean hasAdditionalClaims() { + return additionalClaimsBuilder_ != null || additionalClaims_ != null; + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public com.google.protobuf.Struct getAdditionalClaims() { + if (additionalClaimsBuilder_ == null) { + return additionalClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalClaims_; + } else { + return additionalClaimsBuilder_.getMessage(); + } + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public Builder setAdditionalClaims(com.google.protobuf.Struct value) { + if (additionalClaimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalClaims_ = value; + onChanged(); + } else { + additionalClaimsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public Builder setAdditionalClaims( + com.google.protobuf.Struct.Builder builderForValue) { + if (additionalClaimsBuilder_ == null) { + additionalClaims_ = builderForValue.build(); + onChanged(); + } else { + additionalClaimsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public Builder mergeAdditionalClaims(com.google.protobuf.Struct value) { + if (additionalClaimsBuilder_ == null) { + if (additionalClaims_ != null) { + additionalClaims_ = + com.google.protobuf.Struct.newBuilder(additionalClaims_).mergeFrom(value).buildPartial(); + } else { + additionalClaims_ = value; + } + onChanged(); + } else { + additionalClaimsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public Builder clearAdditionalClaims() { + if (additionalClaimsBuilder_ == null) { + additionalClaims_ = null; + onChanged(); + } else { + additionalClaims_ = null; + additionalClaimsBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public com.google.protobuf.Struct.Builder getAdditionalClaimsBuilder() { + + onChanged(); + return getAdditionalClaimsFieldBuilder().getBuilder(); + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + public com.google.protobuf.StructOrBuilder getAdditionalClaimsOrBuilder() { + if (additionalClaimsBuilder_ != null) { + return additionalClaimsBuilder_.getMessageOrBuilder(); + } else { + return additionalClaims_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : additionalClaims_; + } + } + /** + *
+       * Additional claims
+       * 
+ * + * .google.protobuf.Struct additional_claims = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getAdditionalClaimsFieldBuilder() { + if (additionalClaimsBuilder_ == null) { + additionalClaimsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getAdditionalClaims(), + getParentForChildren(), + isClean()); + additionalClaims_ = null; + } + return additionalClaimsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.service.UserInfoResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoResponse) + private static final flyteidl.service.Identity.UserInfoResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.service.Identity.UserInfoResponse(); + } + + public static flyteidl.service.Identity.UserInfoResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserInfoResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.service.Identity.UserInfoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_UserInfoRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_service_UserInfoResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037flyteidl/service/identity.proto\022\020flyte" + + "idl.service\032\034google/api/annotations.prot" + + "o\032\034google/protobuf/struct.proto\"\021\n\017UserI" + + "nfoRequest\"\312\001\n\020UserInfoResponse\022\017\n\007subje" + + "ct\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\032\n\022preferred_user" + + "name\030\003 \001(\t\022\022\n\ngiven_name\030\004 \001(\t\022\023\n\013family" + + "_name\030\005 \001(\t\022\r\n\005email\030\006 \001(\t\022\017\n\007picture\030\007 " + + "\001(\t\0222\n\021additional_claims\030\010 \001(\0132\027.google." + + "protobuf.Struct2q\n\017IdentityService\022^\n\010Us" + + "erInfo\022!.flyteidl.service.UserInfoReques" + + "t\032\".flyteidl.service.UserInfoResponse\"\013\202" + + "\323\344\223\002\005\022\003/meB9Z7github.com/flyteorg/flytei" + + "dl/gen/pb-go/flyteidl/serviceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_service_UserInfoRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_UserInfoRequest_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_service_UserInfoResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_service_UserInfoResponse_descriptor, + new java.lang.String[] { "Subject", "Name", "PreferredUsername", "GivenName", "FamilyName", "Email", "Picture", "AdditionalClaims", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Signal.java b/flyteidl/gen/pb-java/flyteidl/service/Signal.java new file mode 100644 index 0000000000..a62684466e --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Signal.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/signal.proto + +package flyteidl.service; + +public final class Signal { + private Signal() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/service/signal.proto\022\020flyteid" + + "l.service\032\034google/api/annotations.proto\032" + + "\033flyteidl/admin/signal.proto2\232\003\n\rSignalS" + + "ervice\022W\n\021GetOrCreateSignal\022(.flyteidl.a" + + "dmin.SignalGetOrCreateRequest\032\026.flyteidl" + + ".admin.Signal\"\000\022\301\001\n\013ListSignals\022!.flytei" + + "dl.admin.SignalListRequest\032\032.flyteidl.ad" + + "min.SignalList\"s\202\323\344\223\002m\022k/api/v1/signals/" + + "{workflow_execution_id.project}/{workflo" + + "w_execution_id.domain}/{workflow_executi" + + "on_id.name}\022l\n\tSetSignal\022 .flyteidl.admi" + + "n.SignalSetRequest\032!.flyteidl.admin.Sign" + + "alSetResponse\"\032\202\323\344\223\002\024\"\017/api/v1/signals:\001" + + "*B9Z7github.com/flyteorg/flyteidl/gen/pb" + + "-go/flyteidl/serviceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + flyteidl.admin.SignalOuterClass.getDescriptor(), + }, assigner); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + flyteidl.admin.SignalOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts new file mode 100644 index 0000000000..7744acd5df --- /dev/null +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -0,0 +1,24068 @@ +import * as $protobuf from "protobufjs"; +/** Namespace flyteidl. */ +export namespace flyteidl { + + /** Namespace core. */ + namespace core { + + /** CatalogCacheStatus enum. */ + enum CatalogCacheStatus { + CACHE_DISABLED = 0, + CACHE_MISS = 1, + CACHE_HIT = 2, + CACHE_POPULATED = 3, + CACHE_LOOKUP_FAILURE = 4, + CACHE_PUT_FAILURE = 5, + CACHE_SKIPPED = 6 + } + + /** Properties of a CatalogArtifactTag. */ + interface ICatalogArtifactTag { + + /** CatalogArtifactTag artifactId */ + artifactId?: (string|null); + + /** CatalogArtifactTag name */ + name?: (string|null); + } + + /** Represents a CatalogArtifactTag. */ + class CatalogArtifactTag implements ICatalogArtifactTag { + + /** + * Constructs a new CatalogArtifactTag. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICatalogArtifactTag); + + /** CatalogArtifactTag artifactId. */ + public artifactId: string; + + /** CatalogArtifactTag name. */ + public name: string; + + /** + * Creates a new CatalogArtifactTag instance using the specified properties. + * @param [properties] Properties to set + * @returns CatalogArtifactTag instance + */ + public static create(properties?: flyteidl.core.ICatalogArtifactTag): flyteidl.core.CatalogArtifactTag; + + /** + * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. + * @param message CatalogArtifactTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICatalogArtifactTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CatalogArtifactTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CatalogArtifactTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogArtifactTag; + + /** + * Verifies a CatalogArtifactTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CatalogMetadata. */ + interface ICatalogMetadata { + + /** CatalogMetadata datasetId */ + datasetId?: (flyteidl.core.IIdentifier|null); + + /** CatalogMetadata artifactTag */ + artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); + + /** CatalogMetadata sourceTaskExecution */ + sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a CatalogMetadata. */ + class CatalogMetadata implements ICatalogMetadata { + + /** + * Constructs a new CatalogMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICatalogMetadata); + + /** CatalogMetadata datasetId. */ + public datasetId?: (flyteidl.core.IIdentifier|null); + + /** CatalogMetadata artifactTag. */ + public artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); + + /** CatalogMetadata sourceTaskExecution. */ + public sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** CatalogMetadata sourceExecution. */ + public sourceExecution?: "sourceTaskExecution"; + + /** + * Creates a new CatalogMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CatalogMetadata instance + */ + public static create(properties?: flyteidl.core.ICatalogMetadata): flyteidl.core.CatalogMetadata; + + /** + * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. + * @param message CatalogMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICatalogMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CatalogMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CatalogMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogMetadata; + + /** + * Verifies a CatalogMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CatalogReservation. */ + interface ICatalogReservation { + } + + /** Represents a CatalogReservation. */ + class CatalogReservation implements ICatalogReservation { + + /** + * Constructs a new CatalogReservation. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICatalogReservation); + + /** + * Creates a new CatalogReservation instance using the specified properties. + * @param [properties] Properties to set + * @returns CatalogReservation instance + */ + public static create(properties?: flyteidl.core.ICatalogReservation): flyteidl.core.CatalogReservation; + + /** + * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. + * @param message CatalogReservation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICatalogReservation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CatalogReservation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CatalogReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogReservation; + + /** + * Verifies a CatalogReservation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace CatalogReservation { + + /** Status enum. */ + enum Status { + RESERVATION_DISABLED = 0, + RESERVATION_ACQUIRED = 1, + RESERVATION_EXISTS = 2, + RESERVATION_RELEASED = 3, + RESERVATION_FAILURE = 4 + } + } + + /** ResourceType enum. */ + enum ResourceType { + UNSPECIFIED = 0, + TASK = 1, + WORKFLOW = 2, + LAUNCH_PLAN = 3, + DATASET = 4 + } + + /** Properties of an Identifier. */ + interface IIdentifier { + + /** Identifier resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** Identifier project */ + project?: (string|null); + + /** Identifier domain */ + domain?: (string|null); + + /** Identifier name */ + name?: (string|null); + + /** Identifier version */ + version?: (string|null); + } + + /** Represents an Identifier. */ + class Identifier implements IIdentifier { + + /** + * Constructs a new Identifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIdentifier); + + /** Identifier resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** Identifier project. */ + public project: string; + + /** Identifier domain. */ + public domain: string; + + /** Identifier name. */ + public name: string; + + /** Identifier version. */ + public version: string; + + /** + * Creates a new Identifier instance using the specified properties. + * @param [properties] Properties to set + * @returns Identifier instance + */ + public static create(properties?: flyteidl.core.IIdentifier): flyteidl.core.Identifier; + + /** + * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. + * @param message Identifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Identifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Identifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Identifier; + + /** + * Verifies an Identifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionIdentifier. */ + interface IWorkflowExecutionIdentifier { + + /** WorkflowExecutionIdentifier project */ + project?: (string|null); + + /** WorkflowExecutionIdentifier domain */ + domain?: (string|null); + + /** WorkflowExecutionIdentifier name */ + name?: (string|null); + } + + /** Represents a WorkflowExecutionIdentifier. */ + class WorkflowExecutionIdentifier implements IWorkflowExecutionIdentifier { + + /** + * Constructs a new WorkflowExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowExecutionIdentifier); + + /** WorkflowExecutionIdentifier project. */ + public project: string; + + /** WorkflowExecutionIdentifier domain. */ + public domain: string; + + /** WorkflowExecutionIdentifier name. */ + public name: string; + + /** + * Creates a new WorkflowExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.IWorkflowExecutionIdentifier): flyteidl.core.WorkflowExecutionIdentifier; + + /** + * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. + * @param message WorkflowExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecutionIdentifier; + + /** + * Verifies a WorkflowExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionIdentifier. */ + interface INodeExecutionIdentifier { + + /** NodeExecutionIdentifier nodeId */ + nodeId?: (string|null); + + /** NodeExecutionIdentifier executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a NodeExecutionIdentifier. */ + class NodeExecutionIdentifier implements INodeExecutionIdentifier { + + /** + * Constructs a new NodeExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeExecutionIdentifier); + + /** NodeExecutionIdentifier nodeId. */ + public nodeId: string; + + /** NodeExecutionIdentifier executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.INodeExecutionIdentifier): flyteidl.core.NodeExecutionIdentifier; + + /** + * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. + * @param message NodeExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecutionIdentifier; + + /** + * Verifies a NodeExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionIdentifier. */ + interface ITaskExecutionIdentifier { + + /** TaskExecutionIdentifier taskId */ + taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionIdentifier nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionIdentifier retryAttempt */ + retryAttempt?: (number|null); + } + + /** Represents a TaskExecutionIdentifier. */ + class TaskExecutionIdentifier implements ITaskExecutionIdentifier { + + /** + * Constructs a new TaskExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskExecutionIdentifier); + + /** TaskExecutionIdentifier taskId. */ + public taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionIdentifier nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionIdentifier retryAttempt. */ + public retryAttempt: number; + + /** + * Creates a new TaskExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.ITaskExecutionIdentifier): flyteidl.core.TaskExecutionIdentifier; + + /** + * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. + * @param message TaskExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecutionIdentifier; + + /** + * Verifies a TaskExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalIdentifier. */ + interface ISignalIdentifier { + + /** SignalIdentifier signalId */ + signalId?: (string|null); + + /** SignalIdentifier executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a SignalIdentifier. */ + class SignalIdentifier implements ISignalIdentifier { + + /** + * Constructs a new SignalIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISignalIdentifier); + + /** SignalIdentifier signalId. */ + public signalId: string; + + /** SignalIdentifier executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new SignalIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalIdentifier instance + */ + public static create(properties?: flyteidl.core.ISignalIdentifier): flyteidl.core.SignalIdentifier; + + /** + * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. + * @param message SignalIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISignalIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalIdentifier; + + /** + * Verifies a SignalIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ConnectionSet. */ + interface IConnectionSet { + + /** ConnectionSet downstream */ + downstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); + + /** ConnectionSet upstream */ + upstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); + } + + /** Represents a ConnectionSet. */ + class ConnectionSet implements IConnectionSet { + + /** + * Constructs a new ConnectionSet. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IConnectionSet); + + /** ConnectionSet downstream. */ + public downstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; + + /** ConnectionSet upstream. */ + public upstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; + + /** + * Creates a new ConnectionSet instance using the specified properties. + * @param [properties] Properties to set + * @returns ConnectionSet instance + */ + public static create(properties?: flyteidl.core.IConnectionSet): flyteidl.core.ConnectionSet; + + /** + * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. + * @param message ConnectionSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IConnectionSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConnectionSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConnectionSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet; + + /** + * Verifies a ConnectionSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ConnectionSet { + + /** Properties of an IdList. */ + interface IIdList { + + /** IdList ids */ + ids?: (string[]|null); + } + + /** Represents an IdList. */ + class IdList implements IIdList { + + /** + * Constructs a new IdList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ConnectionSet.IIdList); + + /** IdList ids. */ + public ids: string[]; + + /** + * Creates a new IdList instance using the specified properties. + * @param [properties] Properties to set + * @returns IdList instance + */ + public static create(properties?: flyteidl.core.ConnectionSet.IIdList): flyteidl.core.ConnectionSet.IdList; + + /** + * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. + * @param message IdList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ConnectionSet.IIdList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IdList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IdList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet.IdList; + + /** + * Verifies an IdList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a CompiledWorkflow. */ + interface ICompiledWorkflow { + + /** CompiledWorkflow template */ + template?: (flyteidl.core.IWorkflowTemplate|null); + + /** CompiledWorkflow connections */ + connections?: (flyteidl.core.IConnectionSet|null); + } + + /** Represents a CompiledWorkflow. */ + class CompiledWorkflow implements ICompiledWorkflow { + + /** + * Constructs a new CompiledWorkflow. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledWorkflow); + + /** CompiledWorkflow template. */ + public template?: (flyteidl.core.IWorkflowTemplate|null); + + /** CompiledWorkflow connections. */ + public connections?: (flyteidl.core.IConnectionSet|null); + + /** + * Creates a new CompiledWorkflow instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledWorkflow instance + */ + public static create(properties?: flyteidl.core.ICompiledWorkflow): flyteidl.core.CompiledWorkflow; + + /** + * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. + * @param message CompiledWorkflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledWorkflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledWorkflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflow; + + /** + * Verifies a CompiledWorkflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CompiledTask. */ + interface ICompiledTask { + + /** CompiledTask template */ + template?: (flyteidl.core.ITaskTemplate|null); + } + + /** Represents a CompiledTask. */ + class CompiledTask implements ICompiledTask { + + /** + * Constructs a new CompiledTask. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledTask); + + /** CompiledTask template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** + * Creates a new CompiledTask instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledTask instance + */ + public static create(properties?: flyteidl.core.ICompiledTask): flyteidl.core.CompiledTask; + + /** + * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. + * @param message CompiledTask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledTask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledTask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledTask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledTask; + + /** + * Verifies a CompiledTask message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CompiledWorkflowClosure. */ + interface ICompiledWorkflowClosure { + + /** CompiledWorkflowClosure primary */ + primary?: (flyteidl.core.ICompiledWorkflow|null); + + /** CompiledWorkflowClosure subWorkflows */ + subWorkflows?: (flyteidl.core.ICompiledWorkflow[]|null); + + /** CompiledWorkflowClosure tasks */ + tasks?: (flyteidl.core.ICompiledTask[]|null); + } + + /** Represents a CompiledWorkflowClosure. */ + class CompiledWorkflowClosure implements ICompiledWorkflowClosure { + + /** + * Constructs a new CompiledWorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledWorkflowClosure); + + /** CompiledWorkflowClosure primary. */ + public primary?: (flyteidl.core.ICompiledWorkflow|null); + + /** CompiledWorkflowClosure subWorkflows. */ + public subWorkflows: flyteidl.core.ICompiledWorkflow[]; + + /** CompiledWorkflowClosure tasks. */ + public tasks: flyteidl.core.ICompiledTask[]; + + /** + * Creates a new CompiledWorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledWorkflowClosure instance + */ + public static create(properties?: flyteidl.core.ICompiledWorkflowClosure): flyteidl.core.CompiledWorkflowClosure; + + /** + * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. + * @param message CompiledWorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledWorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflowClosure; + + /** + * Verifies a CompiledWorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an IfBlock. */ + interface IIfBlock { + + /** IfBlock condition */ + condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode */ + thenNode?: (flyteidl.core.INode|null); + } + + /** Represents an IfBlock. */ + class IfBlock implements IIfBlock { + + /** + * Constructs a new IfBlock. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIfBlock); + + /** IfBlock condition. */ + public condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode. */ + public thenNode?: (flyteidl.core.INode|null); + + /** + * Creates a new IfBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns IfBlock instance + */ + public static create(properties?: flyteidl.core.IIfBlock): flyteidl.core.IfBlock; + + /** + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * @param message IfBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIfBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IfBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IfBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfBlock; + + /** + * Verifies an IfBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an IfElseBlock. */ + interface IIfElseBlock { + + /** IfElseBlock case */ + "case"?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other */ + other?: (flyteidl.core.IIfBlock[]|null); + + /** IfElseBlock elseNode */ + elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error */ + error?: (flyteidl.core.IError|null); + } + + /** Represents an IfElseBlock. */ + class IfElseBlock implements IIfElseBlock { + + /** + * Constructs a new IfElseBlock. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIfElseBlock); + + /** IfElseBlock case. */ + public case?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other. */ + public other: flyteidl.core.IIfBlock[]; + + /** IfElseBlock elseNode. */ + public elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error. */ + public error?: (flyteidl.core.IError|null); + + /** IfElseBlock default. */ + public default_?: ("elseNode"|"error"); + + /** + * Creates a new IfElseBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns IfElseBlock instance + */ + public static create(properties?: flyteidl.core.IIfElseBlock): flyteidl.core.IfElseBlock; + + /** + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * @param message IfElseBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIfElseBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IfElseBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IfElseBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfElseBlock; + + /** + * Verifies an IfElseBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BranchNode. */ + interface IBranchNode { + + /** BranchNode ifElse */ + ifElse?: (flyteidl.core.IIfElseBlock|null); + } + + /** Represents a BranchNode. */ + class BranchNode implements IBranchNode { + + /** + * Constructs a new BranchNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBranchNode); + + /** BranchNode ifElse. */ + public ifElse?: (flyteidl.core.IIfElseBlock|null); + + /** + * Creates a new BranchNode instance using the specified properties. + * @param [properties] Properties to set + * @returns BranchNode instance + */ + public static create(properties?: flyteidl.core.IBranchNode): flyteidl.core.BranchNode; + + /** + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @param message BranchNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBranchNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BranchNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BranchNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BranchNode; + + /** + * Verifies a BranchNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNode. */ + interface ITaskNode { + + /** TaskNode referenceId */ + referenceId?: (flyteidl.core.IIdentifier|null); + + /** TaskNode overrides */ + overrides?: (flyteidl.core.ITaskNodeOverrides|null); + } + + /** Represents a TaskNode. */ + class TaskNode implements ITaskNode { + + /** + * Constructs a new TaskNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskNode); + + /** TaskNode referenceId. */ + public referenceId?: (flyteidl.core.IIdentifier|null); + + /** TaskNode overrides. */ + public overrides?: (flyteidl.core.ITaskNodeOverrides|null); + + /** TaskNode reference. */ + public reference?: "referenceId"; + + /** + * Creates a new TaskNode instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNode instance + */ + public static create(properties?: flyteidl.core.ITaskNode): flyteidl.core.TaskNode; + + /** + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * @param message TaskNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNode; + + /** + * Verifies a TaskNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNode. */ + interface IWorkflowNode { + + /** WorkflowNode launchplanRef */ + launchplanRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode subWorkflowRef */ + subWorkflowRef?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowNode. */ + class WorkflowNode implements IWorkflowNode { + + /** + * Constructs a new WorkflowNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowNode); + + /** WorkflowNode launchplanRef. */ + public launchplanRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode subWorkflowRef. */ + public subWorkflowRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode reference. */ + public reference?: ("launchplanRef"|"subWorkflowRef"); + + /** + * Creates a new WorkflowNode instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNode instance + */ + public static create(properties?: flyteidl.core.IWorkflowNode): flyteidl.core.WorkflowNode; + + /** + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * @param message WorkflowNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowNode; + + /** + * Verifies a WorkflowNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ApproveCondition. */ + interface IApproveCondition { + + /** ApproveCondition signalId */ + signalId?: (string|null); + } + + /** Represents an ApproveCondition. */ + class ApproveCondition implements IApproveCondition { + + /** + * Constructs a new ApproveCondition. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IApproveCondition); + + /** ApproveCondition signalId. */ + public signalId: string; + + /** + * Creates a new ApproveCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns ApproveCondition instance + */ + public static create(properties?: flyteidl.core.IApproveCondition): flyteidl.core.ApproveCondition; + + /** + * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. + * @param message ApproveCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IApproveCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApproveCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApproveCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ApproveCondition; + + /** + * Verifies an ApproveCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalCondition. */ + interface ISignalCondition { + + /** SignalCondition signalId */ + signalId?: (string|null); + + /** SignalCondition type */ + type?: (flyteidl.core.ILiteralType|null); + + /** SignalCondition outputVariableName */ + outputVariableName?: (string|null); + } + + /** Represents a SignalCondition. */ + class SignalCondition implements ISignalCondition { + + /** + * Constructs a new SignalCondition. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISignalCondition); + + /** SignalCondition signalId. */ + public signalId: string; + + /** SignalCondition type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** SignalCondition outputVariableName. */ + public outputVariableName: string; + + /** + * Creates a new SignalCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalCondition instance + */ + public static create(properties?: flyteidl.core.ISignalCondition): flyteidl.core.SignalCondition; + + /** + * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. + * @param message SignalCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISignalCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalCondition; + + /** + * Verifies a SignalCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SleepCondition. */ + interface ISleepCondition { + + /** SleepCondition duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a SleepCondition. */ + class SleepCondition implements ISleepCondition { + + /** + * Constructs a new SleepCondition. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISleepCondition); + + /** SleepCondition duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** + * Creates a new SleepCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns SleepCondition instance + */ + public static create(properties?: flyteidl.core.ISleepCondition): flyteidl.core.SleepCondition; + + /** + * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. + * @param message SleepCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISleepCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SleepCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SleepCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SleepCondition; + + /** + * Verifies a SleepCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GateNode. */ + interface IGateNode { + + /** GateNode approve */ + approve?: (flyteidl.core.IApproveCondition|null); + + /** GateNode signal */ + signal?: (flyteidl.core.ISignalCondition|null); + + /** GateNode sleep */ + sleep?: (flyteidl.core.ISleepCondition|null); + } + + /** Represents a GateNode. */ + class GateNode implements IGateNode { + + /** + * Constructs a new GateNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IGateNode); + + /** GateNode approve. */ + public approve?: (flyteidl.core.IApproveCondition|null); + + /** GateNode signal. */ + public signal?: (flyteidl.core.ISignalCondition|null); + + /** GateNode sleep. */ + public sleep?: (flyteidl.core.ISleepCondition|null); + + /** GateNode condition. */ + public condition?: ("approve"|"signal"|"sleep"); + + /** + * Creates a new GateNode instance using the specified properties. + * @param [properties] Properties to set + * @returns GateNode instance + */ + public static create(properties?: flyteidl.core.IGateNode): flyteidl.core.GateNode; + + /** + * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. + * @param message GateNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IGateNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GateNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GateNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GateNode; + + /** + * Verifies a GateNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ArrayNode. */ + interface IArrayNode { + + /** ArrayNode node */ + node?: (flyteidl.core.INode|null); + + /** ArrayNode parallelism */ + parallelism?: (number|null); + + /** ArrayNode minSuccesses */ + minSuccesses?: (number|null); + + /** ArrayNode minSuccessRatio */ + minSuccessRatio?: (number|null); + } + + /** Represents an ArrayNode. */ + class ArrayNode implements IArrayNode { + + /** + * Constructs a new ArrayNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IArrayNode); + + /** ArrayNode node. */ + public node?: (flyteidl.core.INode|null); + + /** ArrayNode parallelism. */ + public parallelism: number; + + /** ArrayNode minSuccesses. */ + public minSuccesses: number; + + /** ArrayNode minSuccessRatio. */ + public minSuccessRatio: number; + + /** ArrayNode successCriteria. */ + public successCriteria?: ("minSuccesses"|"minSuccessRatio"); + + /** + * Creates a new ArrayNode instance using the specified properties. + * @param [properties] Properties to set + * @returns ArrayNode instance + */ + public static create(properties?: flyteidl.core.IArrayNode): flyteidl.core.ArrayNode; + + /** + * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. + * @param message ArrayNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IArrayNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArrayNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArrayNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArrayNode; + + /** + * Verifies an ArrayNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeMetadata. */ + interface INodeMetadata { + + /** NodeMetadata name */ + name?: (string|null); + + /** NodeMetadata timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries */ + retries?: (flyteidl.core.IRetryStrategy|null); + + /** NodeMetadata interruptible */ + interruptible?: (boolean|null); + } + + /** Represents a NodeMetadata. */ + class NodeMetadata implements INodeMetadata { + + /** + * Constructs a new NodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeMetadata); + + /** NodeMetadata name. */ + public name: string; + + /** NodeMetadata timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries. */ + public retries?: (flyteidl.core.IRetryStrategy|null); + + /** NodeMetadata interruptible. */ + public interruptible: boolean; + + /** NodeMetadata interruptibleValue. */ + public interruptibleValue?: "interruptible"; + + /** + * Creates a new NodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeMetadata instance + */ + public static create(properties?: flyteidl.core.INodeMetadata): flyteidl.core.NodeMetadata; + + /** + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * @param message NodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeMetadata; + + /** + * Verifies a NodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Alias. */ + interface IAlias { + + /** Alias var */ + "var"?: (string|null); + + /** Alias alias */ + alias?: (string|null); + } + + /** Represents an Alias. */ + class Alias implements IAlias { + + /** + * Constructs a new Alias. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IAlias); + + /** Alias var. */ + public var: string; + + /** Alias alias. */ + public alias: string; + + /** + * Creates a new Alias instance using the specified properties. + * @param [properties] Properties to set + * @returns Alias instance + */ + public static create(properties?: flyteidl.core.IAlias): flyteidl.core.Alias; + + /** + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * @param message Alias message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IAlias, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Alias message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Alias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Alias; + + /** + * Verifies an Alias message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Node. */ + interface INode { + + /** Node id */ + id?: (string|null); + + /** Node metadata */ + metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs */ + inputs?: (flyteidl.core.IBinding[]|null); + + /** Node upstreamNodeIds */ + upstreamNodeIds?: (string[]|null); + + /** Node outputAliases */ + outputAliases?: (flyteidl.core.IAlias[]|null); + + /** Node taskNode */ + taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode */ + workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode */ + branchNode?: (flyteidl.core.IBranchNode|null); + + /** Node gateNode */ + gateNode?: (flyteidl.core.IGateNode|null); + + /** Node arrayNode */ + arrayNode?: (flyteidl.core.IArrayNode|null); + } + + /** Represents a Node. */ + class Node implements INode { + + /** + * Constructs a new Node. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INode); + + /** Node id. */ + public id: string; + + /** Node metadata. */ + public metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs. */ + public inputs: flyteidl.core.IBinding[]; + + /** Node upstreamNodeIds. */ + public upstreamNodeIds: string[]; + + /** Node outputAliases. */ + public outputAliases: flyteidl.core.IAlias[]; + + /** Node taskNode. */ + public taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode. */ + public workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode. */ + public branchNode?: (flyteidl.core.IBranchNode|null); + + /** Node gateNode. */ + public gateNode?: (flyteidl.core.IGateNode|null); + + /** Node arrayNode. */ + public arrayNode?: (flyteidl.core.IArrayNode|null); + + /** Node target. */ + public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"); + + /** + * Creates a new Node instance using the specified properties. + * @param [properties] Properties to set + * @returns Node instance + */ + public static create(properties?: flyteidl.core.INode): flyteidl.core.Node; + + /** + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Node message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Node; + + /** + * Verifies a Node message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowMetadata. */ + interface IWorkflowMetadata { + + /** WorkflowMetadata qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** WorkflowMetadata onFailure */ + onFailure?: (flyteidl.core.WorkflowMetadata.OnFailurePolicy|null); + + /** WorkflowMetadata tags */ + tags?: ({ [k: string]: string }|null); + } + + /** Represents a WorkflowMetadata. */ + class WorkflowMetadata implements IWorkflowMetadata { + + /** + * Constructs a new WorkflowMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowMetadata); + + /** WorkflowMetadata qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** WorkflowMetadata onFailure. */ + public onFailure: flyteidl.core.WorkflowMetadata.OnFailurePolicy; + + /** WorkflowMetadata tags. */ + public tags: { [k: string]: string }; + + /** + * Creates a new WorkflowMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMetadata instance + */ + public static create(properties?: flyteidl.core.IWorkflowMetadata): flyteidl.core.WorkflowMetadata; + + /** + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @param message WorkflowMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadata; + + /** + * Verifies a WorkflowMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace WorkflowMetadata { + + /** OnFailurePolicy enum. */ + enum OnFailurePolicy { + FAIL_IMMEDIATELY = 0, + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1 + } + } + + /** Properties of a WorkflowMetadataDefaults. */ + interface IWorkflowMetadataDefaults { + + /** WorkflowMetadataDefaults interruptible */ + interruptible?: (boolean|null); + } + + /** Represents a WorkflowMetadataDefaults. */ + class WorkflowMetadataDefaults implements IWorkflowMetadataDefaults { + + /** + * Constructs a new WorkflowMetadataDefaults. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowMetadataDefaults); + + /** WorkflowMetadataDefaults interruptible. */ + public interruptible: boolean; + + /** + * Creates a new WorkflowMetadataDefaults instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMetadataDefaults instance + */ + public static create(properties?: flyteidl.core.IWorkflowMetadataDefaults): flyteidl.core.WorkflowMetadataDefaults; + + /** + * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. + * @param message WorkflowMetadataDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowMetadataDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMetadataDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadataDefaults; + + /** + * Verifies a WorkflowMetadataDefaults message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowTemplate. */ + interface IWorkflowTemplate { + + /** WorkflowTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowTemplate metadata */ + metadata?: (flyteidl.core.IWorkflowMetadata|null); + + /** WorkflowTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes */ + nodes?: (flyteidl.core.INode[]|null); + + /** WorkflowTemplate outputs */ + outputs?: (flyteidl.core.IBinding[]|null); + + /** WorkflowTemplate failureNode */ + failureNode?: (flyteidl.core.INode|null); + + /** WorkflowTemplate metadataDefaults */ + metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); + } + + /** Represents a WorkflowTemplate. */ + class WorkflowTemplate implements IWorkflowTemplate { + + /** + * Constructs a new WorkflowTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowTemplate); + + /** WorkflowTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowTemplate metadata. */ + public metadata?: (flyteidl.core.IWorkflowMetadata|null); + + /** WorkflowTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes. */ + public nodes: flyteidl.core.INode[]; + + /** WorkflowTemplate outputs. */ + public outputs: flyteidl.core.IBinding[]; + + /** WorkflowTemplate failureNode. */ + public failureNode?: (flyteidl.core.INode|null); + + /** WorkflowTemplate metadataDefaults. */ + public metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); + + /** + * Creates a new WorkflowTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowTemplate instance + */ + public static create(properties?: flyteidl.core.IWorkflowTemplate): flyteidl.core.WorkflowTemplate; + + /** + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * @param message WorkflowTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowTemplate; + + /** + * Verifies a WorkflowTemplate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNodeOverrides. */ + interface ITaskNodeOverrides { + + /** TaskNodeOverrides resources */ + resources?: (flyteidl.core.IResources|null); + } + + /** Represents a TaskNodeOverrides. */ + class TaskNodeOverrides implements ITaskNodeOverrides { + + /** + * Constructs a new TaskNodeOverrides. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskNodeOverrides); + + /** TaskNodeOverrides resources. */ + public resources?: (flyteidl.core.IResources|null); + + /** + * Creates a new TaskNodeOverrides instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNodeOverrides instance + */ + public static create(properties?: flyteidl.core.ITaskNodeOverrides): flyteidl.core.TaskNodeOverrides; + + /** + * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. + * @param message TaskNodeOverrides message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskNodeOverrides, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNodeOverrides message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNodeOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNodeOverrides; + + /** + * Verifies a TaskNodeOverrides message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ComparisonExpression. */ + interface IComparisonExpression { + + /** ComparisonExpression operator */ + operator?: (flyteidl.core.ComparisonExpression.Operator|null); + + /** ComparisonExpression leftValue */ + leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue */ + rightValue?: (flyteidl.core.IOperand|null); + } + + /** Represents a ComparisonExpression. */ + class ComparisonExpression implements IComparisonExpression { + + /** + * Constructs a new ComparisonExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IComparisonExpression); + + /** ComparisonExpression operator. */ + public operator: flyteidl.core.ComparisonExpression.Operator; + + /** ComparisonExpression leftValue. */ + public leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue. */ + public rightValue?: (flyteidl.core.IOperand|null); + + /** + * Creates a new ComparisonExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns ComparisonExpression instance + */ + public static create(properties?: flyteidl.core.IComparisonExpression): flyteidl.core.ComparisonExpression; + + /** + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * @param message ComparisonExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IComparisonExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComparisonExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComparisonExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ComparisonExpression; + + /** + * Verifies a ComparisonExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ComparisonExpression { + + /** Operator enum. */ + enum Operator { + EQ = 0, + NEQ = 1, + GT = 2, + GTE = 3, + LT = 4, + LTE = 5 + } + } + + /** Properties of an Operand. */ + interface IOperand { + + /** Operand primitive */ + primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var */ + "var"?: (string|null); + + /** Operand scalar */ + scalar?: (flyteidl.core.IScalar|null); + } + + /** Represents an Operand. */ + class Operand implements IOperand { + + /** + * Constructs a new Operand. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOperand); + + /** Operand primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var. */ + public var: string; + + /** Operand scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** Operand val. */ + public val?: ("primitive"|"var"|"scalar"); + + /** + * Creates a new Operand instance using the specified properties. + * @param [properties] Properties to set + * @returns Operand instance + */ + public static create(properties?: flyteidl.core.IOperand): flyteidl.core.Operand; + + /** + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * @param message Operand message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOperand, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operand message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operand + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Operand; + + /** + * Verifies an Operand message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BooleanExpression. */ + interface IBooleanExpression { + + /** BooleanExpression conjunction */ + conjunction?: (flyteidl.core.IConjunctionExpression|null); + + /** BooleanExpression comparison */ + comparison?: (flyteidl.core.IComparisonExpression|null); + } + + /** Represents a BooleanExpression. */ + class BooleanExpression implements IBooleanExpression { + + /** + * Constructs a new BooleanExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBooleanExpression); + + /** BooleanExpression conjunction. */ + public conjunction?: (flyteidl.core.IConjunctionExpression|null); + + /** BooleanExpression comparison. */ + public comparison?: (flyteidl.core.IComparisonExpression|null); + + /** BooleanExpression expr. */ + public expr?: ("conjunction"|"comparison"); + + /** + * Creates a new BooleanExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns BooleanExpression instance + */ + public static create(properties?: flyteidl.core.IBooleanExpression): flyteidl.core.BooleanExpression; + + /** + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * @param message BooleanExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBooleanExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BooleanExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BooleanExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BooleanExpression; + + /** + * Verifies a BooleanExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ConjunctionExpression. */ + interface IConjunctionExpression { + + /** ConjunctionExpression operator */ + operator?: (flyteidl.core.ConjunctionExpression.LogicalOperator|null); + + /** ConjunctionExpression leftExpression */ + leftExpression?: (flyteidl.core.IBooleanExpression|null); + + /** ConjunctionExpression rightExpression */ + rightExpression?: (flyteidl.core.IBooleanExpression|null); + } + + /** Represents a ConjunctionExpression. */ + class ConjunctionExpression implements IConjunctionExpression { + + /** + * Constructs a new ConjunctionExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IConjunctionExpression); + + /** ConjunctionExpression operator. */ + public operator: flyteidl.core.ConjunctionExpression.LogicalOperator; + + /** ConjunctionExpression leftExpression. */ + public leftExpression?: (flyteidl.core.IBooleanExpression|null); + + /** ConjunctionExpression rightExpression. */ + public rightExpression?: (flyteidl.core.IBooleanExpression|null); + + /** + * Creates a new ConjunctionExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns ConjunctionExpression instance + */ + public static create(properties?: flyteidl.core.IConjunctionExpression): flyteidl.core.ConjunctionExpression; + + /** + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * @param message ConjunctionExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IConjunctionExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConjunctionExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConjunctionExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConjunctionExpression; + + /** + * Verifies a ConjunctionExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ConjunctionExpression { + + /** LogicalOperator enum. */ + enum LogicalOperator { + AND = 0, + OR = 1 + } + } + + /** Properties of a Primitive. */ + interface IPrimitive { + + /** Primitive integer */ + integer?: (Long|null); + + /** Primitive floatValue */ + floatValue?: (number|null); + + /** Primitive stringValue */ + stringValue?: (string|null); + + /** Primitive boolean */ + boolean?: (boolean|null); + + /** Primitive datetime */ + datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a Primitive. */ + class Primitive implements IPrimitive { + + /** + * Constructs a new Primitive. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IPrimitive); + + /** Primitive integer. */ + public integer: Long; + + /** Primitive floatValue. */ + public floatValue: number; + + /** Primitive stringValue. */ + public stringValue: string; + + /** Primitive boolean. */ + public boolean: boolean; + + /** Primitive datetime. */ + public datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** Primitive value. */ + public value?: ("integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"); + + /** + * Creates a new Primitive instance using the specified properties. + * @param [properties] Properties to set + * @returns Primitive instance + */ + public static create(properties?: flyteidl.core.IPrimitive): flyteidl.core.Primitive; + + /** + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * @param message Primitive message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IPrimitive, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Primitive message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Primitive + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Primitive; + + /** + * Verifies a Primitive message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Void. */ + interface IVoid { + } + + /** Represents a Void. */ + class Void implements IVoid { + + /** + * Constructs a new Void. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVoid); + + /** + * Creates a new Void instance using the specified properties. + * @param [properties] Properties to set + * @returns Void instance + */ + public static create(properties?: flyteidl.core.IVoid): flyteidl.core.Void; + + /** + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * @param message Void message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVoid, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Void message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Void + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Void; + + /** + * Verifies a Void message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Blob. */ + interface IBlob { + + /** Blob metadata */ + metadata?: (flyteidl.core.IBlobMetadata|null); + + /** Blob uri */ + uri?: (string|null); + } + + /** Represents a Blob. */ + class Blob implements IBlob { + + /** + * Constructs a new Blob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlob); + + /** Blob metadata. */ + public metadata?: (flyteidl.core.IBlobMetadata|null); + + /** Blob uri. */ + public uri: string; + + /** + * Creates a new Blob instance using the specified properties. + * @param [properties] Properties to set + * @returns Blob instance + */ + public static create(properties?: flyteidl.core.IBlob): flyteidl.core.Blob; + + /** + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * @param message Blob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Blob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Blob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Blob; + + /** + * Verifies a Blob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BlobMetadata. */ + interface IBlobMetadata { + + /** BlobMetadata type */ + type?: (flyteidl.core.IBlobType|null); + } + + /** Represents a BlobMetadata. */ + class BlobMetadata implements IBlobMetadata { + + /** + * Constructs a new BlobMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlobMetadata); + + /** BlobMetadata type. */ + public type?: (flyteidl.core.IBlobType|null); + + /** + * Creates a new BlobMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns BlobMetadata instance + */ + public static create(properties?: flyteidl.core.IBlobMetadata): flyteidl.core.BlobMetadata; + + /** + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * @param message BlobMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlobMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlobMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlobMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobMetadata; + + /** + * Verifies a BlobMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Binary. */ + interface IBinary { + + /** Binary value */ + value?: (Uint8Array|null); + + /** Binary tag */ + tag?: (string|null); + } + + /** Represents a Binary. */ + class Binary implements IBinary { + + /** + * Constructs a new Binary. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBinary); + + /** Binary value. */ + public value: Uint8Array; + + /** Binary tag. */ + public tag: string; + + /** + * Creates a new Binary instance using the specified properties. + * @param [properties] Properties to set + * @returns Binary instance + */ + public static create(properties?: flyteidl.core.IBinary): flyteidl.core.Binary; + + /** + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * @param message Binary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBinary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binary; + + /** + * Verifies a Binary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Schema. */ + interface ISchema { + + /** Schema uri */ + uri?: (string|null); + + /** Schema type */ + type?: (flyteidl.core.ISchemaType|null); + } + + /** Represents a Schema. */ + class Schema implements ISchema { + + /** + * Constructs a new Schema. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISchema); + + /** Schema uri. */ + public uri: string; + + /** Schema type. */ + public type?: (flyteidl.core.ISchemaType|null); + + /** + * Creates a new Schema instance using the specified properties. + * @param [properties] Properties to set + * @returns Schema instance + */ + public static create(properties?: flyteidl.core.ISchema): flyteidl.core.Schema; + + /** + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * @param message Schema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Schema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Schema; + + /** + * Verifies a Schema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Union. */ + interface IUnion { + + /** Union value */ + value?: (flyteidl.core.ILiteral|null); + + /** Union type */ + type?: (flyteidl.core.ILiteralType|null); + } + + /** Represents an Union. */ + class Union implements IUnion { + + /** + * Constructs a new Union. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IUnion); + + /** Union value. */ + public value?: (flyteidl.core.ILiteral|null); + + /** Union type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new Union instance using the specified properties. + * @param [properties] Properties to set + * @returns Union instance + */ + public static create(properties?: flyteidl.core.IUnion): flyteidl.core.Union; + + /** + * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. + * @param message Union message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Union message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Union; + + /** + * Verifies an Union message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a StructuredDatasetMetadata. */ + interface IStructuredDatasetMetadata { + + /** StructuredDatasetMetadata structuredDatasetType */ + structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + } + + /** Represents a StructuredDatasetMetadata. */ + class StructuredDatasetMetadata implements IStructuredDatasetMetadata { + + /** + * Constructs a new StructuredDatasetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IStructuredDatasetMetadata); + + /** StructuredDatasetMetadata structuredDatasetType. */ + public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + + /** + * Creates a new StructuredDatasetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns StructuredDatasetMetadata instance + */ + public static create(properties?: flyteidl.core.IStructuredDatasetMetadata): flyteidl.core.StructuredDatasetMetadata; + + /** + * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. + * @param message StructuredDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IStructuredDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StructuredDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetMetadata; + + /** + * Verifies a StructuredDatasetMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a StructuredDataset. */ + interface IStructuredDataset { + + /** StructuredDataset uri */ + uri?: (string|null); + + /** StructuredDataset metadata */ + metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); + } + + /** Represents a StructuredDataset. */ + class StructuredDataset implements IStructuredDataset { + + /** + * Constructs a new StructuredDataset. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IStructuredDataset); + + /** StructuredDataset uri. */ + public uri: string; + + /** StructuredDataset metadata. */ + public metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); + + /** + * Creates a new StructuredDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns StructuredDataset instance + */ + public static create(properties?: flyteidl.core.IStructuredDataset): flyteidl.core.StructuredDataset; + + /** + * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. + * @param message StructuredDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IStructuredDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StructuredDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StructuredDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDataset; + + /** + * Verifies a StructuredDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Scalar. */ + interface IScalar { + + /** Scalar primitive */ + primitive?: (flyteidl.core.IPrimitive|null); + + /** Scalar blob */ + blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary */ + binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema */ + schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType */ + noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error */ + error?: (flyteidl.core.IError|null); + + /** Scalar generic */ + generic?: (google.protobuf.IStruct|null); + + /** Scalar structuredDataset */ + structuredDataset?: (flyteidl.core.IStructuredDataset|null); + + /** Scalar union */ + union?: (flyteidl.core.IUnion|null); + } + + /** Represents a Scalar. */ + class Scalar implements IScalar { + + /** + * Constructs a new Scalar. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IScalar); + + /** Scalar primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); + + /** Scalar blob. */ + public blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary. */ + public binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema. */ + public schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType. */ + public noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error. */ + public error?: (flyteidl.core.IError|null); + + /** Scalar generic. */ + public generic?: (google.protobuf.IStruct|null); + + /** Scalar structuredDataset. */ + public structuredDataset?: (flyteidl.core.IStructuredDataset|null); + + /** Scalar union. */ + public union?: (flyteidl.core.IUnion|null); + + /** Scalar value. */ + public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"); + + /** + * Creates a new Scalar instance using the specified properties. + * @param [properties] Properties to set + * @returns Scalar instance + */ + public static create(properties?: flyteidl.core.IScalar): flyteidl.core.Scalar; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scalar + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Scalar; + + /** + * Verifies a Scalar message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Literal. */ + interface ILiteral { + + /** Literal scalar */ + scalar?: (flyteidl.core.IScalar|null); + + /** Literal collection */ + collection?: (flyteidl.core.ILiteralCollection|null); + + /** Literal map */ + map?: (flyteidl.core.ILiteralMap|null); + + /** Literal hash */ + hash?: (string|null); + } + + /** Represents a Literal. */ + class Literal implements ILiteral { + + /** + * Constructs a new Literal. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteral); + + /** Literal scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** Literal collection. */ + public collection?: (flyteidl.core.ILiteralCollection|null); + + /** Literal map. */ + public map?: (flyteidl.core.ILiteralMap|null); + + /** Literal hash. */ + public hash: string; + + /** Literal value. */ + public value?: ("scalar"|"collection"|"map"); + + /** + * Creates a new Literal instance using the specified properties. + * @param [properties] Properties to set + * @returns Literal instance + */ + public static create(properties?: flyteidl.core.ILiteral): flyteidl.core.Literal; + + /** + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * @param message Literal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteral, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Literal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Literal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Literal; + + /** + * Verifies a Literal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralCollection. */ + interface ILiteralCollection { + + /** LiteralCollection literals */ + literals?: (flyteidl.core.ILiteral[]|null); + } + + /** Represents a LiteralCollection. */ + class LiteralCollection implements ILiteralCollection { + + /** + * Constructs a new LiteralCollection. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralCollection); + + /** LiteralCollection literals. */ + public literals: flyteidl.core.ILiteral[]; + + /** + * Creates a new LiteralCollection instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralCollection instance + */ + public static create(properties?: flyteidl.core.ILiteralCollection): flyteidl.core.LiteralCollection; + + /** + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. + * @param message LiteralCollection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralCollection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralCollection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralCollection; + + /** + * Verifies a LiteralCollection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralMap. */ + interface ILiteralMap { + + /** LiteralMap literals */ + literals?: ({ [k: string]: flyteidl.core.ILiteral }|null); + } + + /** Represents a LiteralMap. */ + class LiteralMap implements ILiteralMap { + + /** + * Constructs a new LiteralMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralMap); + + /** LiteralMap literals. */ + public literals: { [k: string]: flyteidl.core.ILiteral }; + + /** + * Creates a new LiteralMap instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralMap instance + */ + public static create(properties?: flyteidl.core.ILiteralMap): flyteidl.core.LiteralMap; + + /** + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * @param message LiteralMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralMap; + + /** + * Verifies a LiteralMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingDataCollection. */ + interface IBindingDataCollection { + + /** BindingDataCollection bindings */ + bindings?: (flyteidl.core.IBindingData[]|null); + } + + /** Represents a BindingDataCollection. */ + class BindingDataCollection implements IBindingDataCollection { + + /** + * Constructs a new BindingDataCollection. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingDataCollection); + + /** BindingDataCollection bindings. */ + public bindings: flyteidl.core.IBindingData[]; + + /** + * Creates a new BindingDataCollection instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDataCollection instance + */ + public static create(properties?: flyteidl.core.IBindingDataCollection): flyteidl.core.BindingDataCollection; + + /** + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * @param message BindingDataCollection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingDataCollection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingDataCollection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDataCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataCollection; + + /** + * Verifies a BindingDataCollection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingDataMap. */ + interface IBindingDataMap { + + /** BindingDataMap bindings */ + bindings?: ({ [k: string]: flyteidl.core.IBindingData }|null); + } + + /** Represents a BindingDataMap. */ + class BindingDataMap implements IBindingDataMap { + + /** + * Constructs a new BindingDataMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingDataMap); + + /** BindingDataMap bindings. */ + public bindings: { [k: string]: flyteidl.core.IBindingData }; + + /** + * Creates a new BindingDataMap instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDataMap instance + */ + public static create(properties?: flyteidl.core.IBindingDataMap): flyteidl.core.BindingDataMap; + + /** + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * @param message BindingDataMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingDataMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingDataMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDataMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataMap; + + /** + * Verifies a BindingDataMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UnionInfo. */ + interface IUnionInfo { + + /** UnionInfo targetType */ + targetType?: (flyteidl.core.ILiteralType|null); + } + + /** Represents an UnionInfo. */ + class UnionInfo implements IUnionInfo { + + /** + * Constructs a new UnionInfo. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IUnionInfo); + + /** UnionInfo targetType. */ + public targetType?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new UnionInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns UnionInfo instance + */ + public static create(properties?: flyteidl.core.IUnionInfo): flyteidl.core.UnionInfo; + + /** + * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. + * @param message UnionInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IUnionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnionInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionInfo; + + /** + * Verifies an UnionInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingData. */ + interface IBindingData { + + /** BindingData scalar */ + scalar?: (flyteidl.core.IScalar|null); + + /** BindingData collection */ + collection?: (flyteidl.core.IBindingDataCollection|null); + + /** BindingData promise */ + promise?: (flyteidl.core.IOutputReference|null); + + /** BindingData map */ + map?: (flyteidl.core.IBindingDataMap|null); + + /** BindingData union */ + union?: (flyteidl.core.IUnionInfo|null); + } + + /** Represents a BindingData. */ + class BindingData implements IBindingData { + + /** + * Constructs a new BindingData. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingData); + + /** BindingData scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** BindingData collection. */ + public collection?: (flyteidl.core.IBindingDataCollection|null); + + /** BindingData promise. */ + public promise?: (flyteidl.core.IOutputReference|null); + + /** BindingData map. */ + public map?: (flyteidl.core.IBindingDataMap|null); + + /** BindingData union. */ + public union?: (flyteidl.core.IUnionInfo|null); + + /** BindingData value. */ + public value?: ("scalar"|"collection"|"promise"|"map"); + + /** + * Creates a new BindingData instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingData instance + */ + public static create(properties?: flyteidl.core.IBindingData): flyteidl.core.BindingData; + + /** + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * @param message BindingData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingData; + + /** + * Verifies a BindingData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Binding. */ + interface IBinding { + + /** Binding var */ + "var"?: (string|null); + + /** Binding binding */ + binding?: (flyteidl.core.IBindingData|null); + } + + /** Represents a Binding. */ + class Binding implements IBinding { + + /** + * Constructs a new Binding. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBinding); + + /** Binding var. */ + public var: string; + + /** Binding binding. */ + public binding?: (flyteidl.core.IBindingData|null); + + /** + * Creates a new Binding instance using the specified properties. + * @param [properties] Properties to set + * @returns Binding instance + */ + public static create(properties?: flyteidl.core.IBinding): flyteidl.core.Binding; + + /** + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binding; + + /** + * Verifies a Binding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a KeyValuePair. */ + interface IKeyValuePair { + + /** KeyValuePair key */ + key?: (string|null); + + /** KeyValuePair value */ + value?: (string|null); + } + + /** Represents a KeyValuePair. */ + class KeyValuePair implements IKeyValuePair { + + /** + * Constructs a new KeyValuePair. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IKeyValuePair); + + /** KeyValuePair key. */ + public key: string; + + /** KeyValuePair value. */ + public value: string; + + /** + * Creates a new KeyValuePair instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyValuePair instance + */ + public static create(properties?: flyteidl.core.IKeyValuePair): flyteidl.core.KeyValuePair; + + /** + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * @param message KeyValuePair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IKeyValuePair, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyValuePair message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.KeyValuePair; + + /** + * Verifies a KeyValuePair message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a RetryStrategy. */ + interface IRetryStrategy { + + /** RetryStrategy retries */ + retries?: (number|null); + } + + /** Represents a RetryStrategy. */ + class RetryStrategy implements IRetryStrategy { + + /** + * Constructs a new RetryStrategy. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IRetryStrategy); + + /** RetryStrategy retries. */ + public retries: number; + + /** + * Creates a new RetryStrategy instance using the specified properties. + * @param [properties] Properties to set + * @returns RetryStrategy instance + */ + public static create(properties?: flyteidl.core.IRetryStrategy): flyteidl.core.RetryStrategy; + + /** + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * @param message RetryStrategy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetryStrategy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetryStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RetryStrategy; + + /** + * Verifies a RetryStrategy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** SimpleType enum. */ + enum SimpleType { + NONE = 0, + INTEGER = 1, + FLOAT = 2, + STRING = 3, + BOOLEAN = 4, + DATETIME = 5, + DURATION = 6, + BINARY = 7, + ERROR = 8, + STRUCT = 9 + } + + /** Properties of a SchemaType. */ + interface ISchemaType { + + /** SchemaType columns */ + columns?: (flyteidl.core.SchemaType.ISchemaColumn[]|null); + } + + /** Represents a SchemaType. */ + class SchemaType implements ISchemaType { + + /** + * Constructs a new SchemaType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISchemaType); + + /** SchemaType columns. */ + public columns: flyteidl.core.SchemaType.ISchemaColumn[]; + + /** + * Creates a new SchemaType instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaType instance + */ + public static create(properties?: flyteidl.core.ISchemaType): flyteidl.core.SchemaType; + + /** + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * @param message SchemaType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISchemaType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType; + + /** + * Verifies a SchemaType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SchemaType { + + /** Properties of a SchemaColumn. */ + interface ISchemaColumn { + + /** SchemaColumn name */ + name?: (string|null); + + /** SchemaColumn type */ + type?: (flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null); + } + + /** Represents a SchemaColumn. */ + class SchemaColumn implements ISchemaColumn { + + /** + * Constructs a new SchemaColumn. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.SchemaType.ISchemaColumn); + + /** SchemaColumn name. */ + public name: string; + + /** SchemaColumn type. */ + public type: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType; + + /** + * Creates a new SchemaColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaColumn instance + */ + public static create(properties?: flyteidl.core.SchemaType.ISchemaColumn): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @param message SchemaColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.SchemaType.ISchemaColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Verifies a SchemaColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SchemaColumn { + + /** SchemaColumnType enum. */ + enum SchemaColumnType { + INTEGER = 0, + FLOAT = 1, + STRING = 2, + BOOLEAN = 3, + DATETIME = 4, + DURATION = 5 + } + } + } + + /** Properties of a StructuredDatasetType. */ + interface IStructuredDatasetType { + + /** StructuredDatasetType columns */ + columns?: (flyteidl.core.StructuredDatasetType.IDatasetColumn[]|null); + + /** StructuredDatasetType format */ + format?: (string|null); + + /** StructuredDatasetType externalSchemaType */ + externalSchemaType?: (string|null); + + /** StructuredDatasetType externalSchemaBytes */ + externalSchemaBytes?: (Uint8Array|null); + } + + /** Represents a StructuredDatasetType. */ + class StructuredDatasetType implements IStructuredDatasetType { + + /** + * Constructs a new StructuredDatasetType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IStructuredDatasetType); + + /** StructuredDatasetType columns. */ + public columns: flyteidl.core.StructuredDatasetType.IDatasetColumn[]; + + /** StructuredDatasetType format. */ + public format: string; + + /** StructuredDatasetType externalSchemaType. */ + public externalSchemaType: string; + + /** StructuredDatasetType externalSchemaBytes. */ + public externalSchemaBytes: Uint8Array; + + /** + * Creates a new StructuredDatasetType instance using the specified properties. + * @param [properties] Properties to set + * @returns StructuredDatasetType instance + */ + public static create(properties?: flyteidl.core.IStructuredDatasetType): flyteidl.core.StructuredDatasetType; + + /** + * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. + * @param message StructuredDatasetType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IStructuredDatasetType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StructuredDatasetType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StructuredDatasetType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType; + + /** + * Verifies a StructuredDatasetType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace StructuredDatasetType { + + /** Properties of a DatasetColumn. */ + interface IDatasetColumn { + + /** DatasetColumn name */ + name?: (string|null); + + /** DatasetColumn literalType */ + literalType?: (flyteidl.core.ILiteralType|null); + } + + /** Represents a DatasetColumn. */ + class DatasetColumn implements IDatasetColumn { + + /** + * Constructs a new DatasetColumn. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn); + + /** DatasetColumn name. */ + public name: string; + + /** DatasetColumn literalType. */ + public literalType?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new DatasetColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns DatasetColumn instance + */ + public static create(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn): flyteidl.core.StructuredDatasetType.DatasetColumn; + + /** + * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. + * @param message DatasetColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.StructuredDatasetType.IDatasetColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DatasetColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DatasetColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType.DatasetColumn; + + /** + * Verifies a DatasetColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a BlobType. */ + interface IBlobType { + + /** BlobType format */ + format?: (string|null); + + /** BlobType dimensionality */ + dimensionality?: (flyteidl.core.BlobType.BlobDimensionality|null); + } + + /** Represents a BlobType. */ + class BlobType implements IBlobType { + + /** + * Constructs a new BlobType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlobType); + + /** BlobType format. */ + public format: string; + + /** BlobType dimensionality. */ + public dimensionality: flyteidl.core.BlobType.BlobDimensionality; + + /** + * Creates a new BlobType instance using the specified properties. + * @param [properties] Properties to set + * @returns BlobType instance + */ + public static create(properties?: flyteidl.core.IBlobType): flyteidl.core.BlobType; + + /** + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * @param message BlobType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlobType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlobType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlobType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobType; + + /** + * Verifies a BlobType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace BlobType { + + /** BlobDimensionality enum. */ + enum BlobDimensionality { + SINGLE = 0, + MULTIPART = 1 + } + } + + /** Properties of an EnumType. */ + interface IEnumType { + + /** EnumType values */ + values?: (string[]|null); + } + + /** Represents an EnumType. */ + class EnumType implements IEnumType { + + /** + * Constructs a new EnumType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IEnumType); + + /** EnumType values. */ + public values: string[]; + + /** + * Creates a new EnumType instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumType instance + */ + public static create(properties?: flyteidl.core.IEnumType): flyteidl.core.EnumType; + + /** + * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. + * @param message EnumType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IEnumType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.EnumType; + + /** + * Verifies an EnumType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UnionType. */ + interface IUnionType { + + /** UnionType variants */ + variants?: (flyteidl.core.ILiteralType[]|null); + } + + /** Represents an UnionType. */ + class UnionType implements IUnionType { + + /** + * Constructs a new UnionType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IUnionType); + + /** UnionType variants. */ + public variants: flyteidl.core.ILiteralType[]; + + /** + * Creates a new UnionType instance using the specified properties. + * @param [properties] Properties to set + * @returns UnionType instance + */ + public static create(properties?: flyteidl.core.IUnionType): flyteidl.core.UnionType; + + /** + * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. + * @param message UnionType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IUnionType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnionType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnionType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionType; + + /** + * Verifies an UnionType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TypeStructure. */ + interface ITypeStructure { + + /** TypeStructure tag */ + tag?: (string|null); + } + + /** Represents a TypeStructure. */ + class TypeStructure implements ITypeStructure { + + /** + * Constructs a new TypeStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITypeStructure); + + /** TypeStructure tag. */ + public tag: string; + + /** + * Creates a new TypeStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns TypeStructure instance + */ + public static create(properties?: flyteidl.core.ITypeStructure): flyteidl.core.TypeStructure; + + /** + * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. + * @param message TypeStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITypeStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TypeStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TypeStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeStructure; + + /** + * Verifies a TypeStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TypeAnnotation. */ + interface ITypeAnnotation { + + /** TypeAnnotation annotations */ + annotations?: (google.protobuf.IStruct|null); + } + + /** Represents a TypeAnnotation. */ + class TypeAnnotation implements ITypeAnnotation { + + /** + * Constructs a new TypeAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITypeAnnotation); + + /** TypeAnnotation annotations. */ + public annotations?: (google.protobuf.IStruct|null); + + /** + * Creates a new TypeAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns TypeAnnotation instance + */ + public static create(properties?: flyteidl.core.ITypeAnnotation): flyteidl.core.TypeAnnotation; + + /** + * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. + * @param message TypeAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITypeAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TypeAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TypeAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeAnnotation; + + /** + * Verifies a TypeAnnotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralType. */ + interface ILiteralType { + + /** LiteralType simple */ + simple?: (flyteidl.core.SimpleType|null); + + /** LiteralType schema */ + schema?: (flyteidl.core.ISchemaType|null); + + /** LiteralType collectionType */ + collectionType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType mapValueType */ + mapValueType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType blob */ + blob?: (flyteidl.core.IBlobType|null); + + /** LiteralType enumType */ + enumType?: (flyteidl.core.IEnumType|null); + + /** LiteralType structuredDatasetType */ + structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + + /** LiteralType unionType */ + unionType?: (flyteidl.core.IUnionType|null); + + /** LiteralType metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** LiteralType annotation */ + annotation?: (flyteidl.core.ITypeAnnotation|null); + + /** LiteralType structure */ + structure?: (flyteidl.core.ITypeStructure|null); + } + + /** Represents a LiteralType. */ + class LiteralType implements ILiteralType { + + /** + * Constructs a new LiteralType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralType); + + /** LiteralType simple. */ + public simple: flyteidl.core.SimpleType; + + /** LiteralType schema. */ + public schema?: (flyteidl.core.ISchemaType|null); + + /** LiteralType collectionType. */ + public collectionType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType mapValueType. */ + public mapValueType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType blob. */ + public blob?: (flyteidl.core.IBlobType|null); + + /** LiteralType enumType. */ + public enumType?: (flyteidl.core.IEnumType|null); + + /** LiteralType structuredDatasetType. */ + public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + + /** LiteralType unionType. */ + public unionType?: (flyteidl.core.IUnionType|null); + + /** LiteralType metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** LiteralType annotation. */ + public annotation?: (flyteidl.core.ITypeAnnotation|null); + + /** LiteralType structure. */ + public structure?: (flyteidl.core.ITypeStructure|null); + + /** LiteralType type. */ + public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"); + + /** + * Creates a new LiteralType instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralType instance + */ + public static create(properties?: flyteidl.core.ILiteralType): flyteidl.core.LiteralType; + + /** + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @param message LiteralType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralType; + + /** + * Verifies a LiteralType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an OutputReference. */ + interface IOutputReference { + + /** OutputReference nodeId */ + nodeId?: (string|null); + + /** OutputReference var */ + "var"?: (string|null); + } + + /** Represents an OutputReference. */ + class OutputReference implements IOutputReference { + + /** + * Constructs a new OutputReference. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOutputReference); + + /** OutputReference nodeId. */ + public nodeId: string; + + /** OutputReference var. */ + public var: string; + + /** + * Creates a new OutputReference instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputReference instance + */ + public static create(properties?: flyteidl.core.IOutputReference): flyteidl.core.OutputReference; + + /** + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * @param message OutputReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOutputReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OutputReference; + + /** + * Verifies an OutputReference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Error. */ + interface IError { + + /** Error failedNodeId */ + failedNodeId?: (string|null); + + /** Error message */ + message?: (string|null); + } + + /** Represents an Error. */ + class Error implements IError { + + /** + * Constructs a new Error. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IError); + + /** Error failedNodeId. */ + public failedNodeId: string; + + /** Error message. */ + public message: string; + + /** + * Creates a new Error instance using the specified properties. + * @param [properties] Properties to set + * @returns Error instance + */ + public static create(properties?: flyteidl.core.IError): flyteidl.core.Error; + + /** + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * @param message Error message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Error message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Error + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Error; + + /** + * Verifies an Error message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecution. */ + interface IWorkflowExecution { + } + + /** Represents a WorkflowExecution. */ + class WorkflowExecution implements IWorkflowExecution { + + /** + * Constructs a new WorkflowExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowExecution); + + /** + * Creates a new WorkflowExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecution instance + */ + public static create(properties?: flyteidl.core.IWorkflowExecution): flyteidl.core.WorkflowExecution; + + /** + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * @param message WorkflowExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecution; + + /** + * Verifies a WorkflowExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace WorkflowExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDING = 3, + SUCCEEDED = 4, + FAILING = 5, + FAILED = 6, + ABORTED = 7, + TIMED_OUT = 8, + ABORTING = 9 + } + } + + /** Properties of a NodeExecution. */ + interface INodeExecution { + } + + /** Represents a NodeExecution. */ + class NodeExecution implements INodeExecution { + + /** + * Constructs a new NodeExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeExecution); + + /** + * Creates a new NodeExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecution instance + */ + public static create(properties?: flyteidl.core.INodeExecution): flyteidl.core.NodeExecution; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * @param message NodeExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecution; + + /** + * Verifies a NodeExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace NodeExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + FAILING = 4, + FAILED = 5, + ABORTED = 6, + SKIPPED = 7, + TIMED_OUT = 8, + DYNAMIC_RUNNING = 9, + RECOVERED = 10 + } + } + + /** Properties of a TaskExecution. */ + interface ITaskExecution { + } + + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { + + /** + * Constructs a new TaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskExecution); + + /** + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance + */ + public static create(properties?: flyteidl.core.ITaskExecution): flyteidl.core.TaskExecution; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecution; + + /** + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + ABORTED = 4, + FAILED = 5, + INITIALIZING = 6, + WAITING_FOR_RESOURCES = 7 + } + } + + /** Properties of an ExecutionError. */ + interface IExecutionError { + + /** ExecutionError code */ + code?: (string|null); + + /** ExecutionError message */ + message?: (string|null); + + /** ExecutionError errorUri */ + errorUri?: (string|null); + + /** ExecutionError kind */ + kind?: (flyteidl.core.ExecutionError.ErrorKind|null); + } + + /** Represents an ExecutionError. */ + class ExecutionError implements IExecutionError { + + /** + * Constructs a new ExecutionError. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IExecutionError); + + /** ExecutionError code. */ + public code: string; + + /** ExecutionError message. */ + public message: string; + + /** ExecutionError errorUri. */ + public errorUri: string; + + /** ExecutionError kind. */ + public kind: flyteidl.core.ExecutionError.ErrorKind; + + /** + * Creates a new ExecutionError instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionError instance + */ + public static create(properties?: flyteidl.core.IExecutionError): flyteidl.core.ExecutionError; + + /** + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * @param message ExecutionError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IExecutionError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionError; + + /** + * Verifies an ExecutionError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ExecutionError { + + /** ErrorKind enum. */ + enum ErrorKind { + UNKNOWN = 0, + USER = 1, + SYSTEM = 2 + } + } + + /** Properties of a TaskLog. */ + interface ITaskLog { + + /** TaskLog uri */ + uri?: (string|null); + + /** TaskLog name */ + name?: (string|null); + + /** TaskLog messageFormat */ + messageFormat?: (flyteidl.core.TaskLog.MessageFormat|null); + + /** TaskLog ttl */ + ttl?: (google.protobuf.IDuration|null); + } + + /** Represents a TaskLog. */ + class TaskLog implements ITaskLog { + + /** + * Constructs a new TaskLog. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskLog); + + /** TaskLog uri. */ + public uri: string; + + /** TaskLog name. */ + public name: string; + + /** TaskLog messageFormat. */ + public messageFormat: flyteidl.core.TaskLog.MessageFormat; + + /** TaskLog ttl. */ + public ttl?: (google.protobuf.IDuration|null); + + /** + * Creates a new TaskLog instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskLog instance + */ + public static create(properties?: flyteidl.core.ITaskLog): flyteidl.core.TaskLog; + + /** + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * @param message TaskLog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskLog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskLog message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskLog; + + /** + * Verifies a TaskLog message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskLog { + + /** MessageFormat enum. */ + enum MessageFormat { + UNKNOWN = 0, + CSV = 1, + JSON = 2 + } + } + + /** Properties of a QualityOfServiceSpec. */ + interface IQualityOfServiceSpec { + + /** QualityOfServiceSpec queueingBudget */ + queueingBudget?: (google.protobuf.IDuration|null); + } + + /** Represents a QualityOfServiceSpec. */ + class QualityOfServiceSpec implements IQualityOfServiceSpec { + + /** + * Constructs a new QualityOfServiceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IQualityOfServiceSpec); + + /** QualityOfServiceSpec queueingBudget. */ + public queueingBudget?: (google.protobuf.IDuration|null); + + /** + * Creates a new QualityOfServiceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns QualityOfServiceSpec instance + */ + public static create(properties?: flyteidl.core.IQualityOfServiceSpec): flyteidl.core.QualityOfServiceSpec; + + /** + * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. + * @param message QualityOfServiceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IQualityOfServiceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QualityOfServiceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QualityOfServiceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfServiceSpec; + + /** + * Verifies a QualityOfServiceSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a QualityOfService. */ + interface IQualityOfService { + + /** QualityOfService tier */ + tier?: (flyteidl.core.QualityOfService.Tier|null); + + /** QualityOfService spec */ + spec?: (flyteidl.core.IQualityOfServiceSpec|null); + } + + /** Represents a QualityOfService. */ + class QualityOfService implements IQualityOfService { + + /** + * Constructs a new QualityOfService. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IQualityOfService); + + /** QualityOfService tier. */ + public tier: flyteidl.core.QualityOfService.Tier; + + /** QualityOfService spec. */ + public spec?: (flyteidl.core.IQualityOfServiceSpec|null); + + /** QualityOfService designation. */ + public designation?: ("tier"|"spec"); + + /** + * Creates a new QualityOfService instance using the specified properties. + * @param [properties] Properties to set + * @returns QualityOfService instance + */ + public static create(properties?: flyteidl.core.IQualityOfService): flyteidl.core.QualityOfService; + + /** + * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. + * @param message QualityOfService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IQualityOfService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QualityOfService message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QualityOfService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfService; + + /** + * Verifies a QualityOfService message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace QualityOfService { + + /** Tier enum. */ + enum Tier { + UNDEFINED = 0, + HIGH = 1, + MEDIUM = 2, + LOW = 3 + } + } + + /** Properties of a Variable. */ + interface IVariable { + + /** Variable type */ + type?: (flyteidl.core.ILiteralType|null); + + /** Variable description */ + description?: (string|null); + } + + /** Represents a Variable. */ + class Variable implements IVariable { + + /** + * Constructs a new Variable. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVariable); + + /** Variable type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** Variable description. */ + public description: string; + + /** + * Creates a new Variable instance using the specified properties. + * @param [properties] Properties to set + * @returns Variable instance + */ + public static create(properties?: flyteidl.core.IVariable): flyteidl.core.Variable; + + /** + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * @param message Variable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVariable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Variable; + + /** + * Verifies a Variable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a VariableMap. */ + interface IVariableMap { + + /** VariableMap variables */ + variables?: ({ [k: string]: flyteidl.core.IVariable }|null); + } + + /** Represents a VariableMap. */ + class VariableMap implements IVariableMap { + + /** + * Constructs a new VariableMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVariableMap); + + /** VariableMap variables. */ + public variables: { [k: string]: flyteidl.core.IVariable }; + + /** + * Creates a new VariableMap instance using the specified properties. + * @param [properties] Properties to set + * @returns VariableMap instance + */ + public static create(properties?: flyteidl.core.IVariableMap): flyteidl.core.VariableMap; + + /** + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * @param message VariableMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVariableMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VariableMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VariableMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.VariableMap; + + /** + * Verifies a VariableMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TypedInterface. */ + interface ITypedInterface { + + /** TypedInterface inputs */ + inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs */ + outputs?: (flyteidl.core.IVariableMap|null); + } + + /** Represents a TypedInterface. */ + class TypedInterface implements ITypedInterface { + + /** + * Constructs a new TypedInterface. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITypedInterface); + + /** TypedInterface inputs. */ + public inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs. */ + public outputs?: (flyteidl.core.IVariableMap|null); + + /** + * Creates a new TypedInterface instance using the specified properties. + * @param [properties] Properties to set + * @returns TypedInterface instance + */ + public static create(properties?: flyteidl.core.ITypedInterface): flyteidl.core.TypedInterface; + + /** + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * @param message TypedInterface message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITypedInterface, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TypedInterface message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TypedInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypedInterface; + + /** + * Verifies a TypedInterface message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter var */ + "var"?: (flyteidl.core.IVariable|null); + + /** Parameter default */ + "default"?: (flyteidl.core.ILiteral|null); + + /** Parameter required */ + required?: (boolean|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IParameter); + + /** Parameter var. */ + public var?: (flyteidl.core.IVariable|null); + + /** Parameter default. */ + public default?: (flyteidl.core.ILiteral|null); + + /** Parameter required. */ + public required: boolean; + + /** Parameter behavior. */ + public behavior?: ("default"|"required"); + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: flyteidl.core.IParameter): flyteidl.core.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParameterMap. */ + interface IParameterMap { + + /** ParameterMap parameters */ + parameters?: ({ [k: string]: flyteidl.core.IParameter }|null); + } + + /** Represents a ParameterMap. */ + class ParameterMap implements IParameterMap { + + /** + * Constructs a new ParameterMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IParameterMap); + + /** ParameterMap parameters. */ + public parameters: { [k: string]: flyteidl.core.IParameter }; + + /** + * Creates a new ParameterMap instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterMap instance + */ + public static create(properties?: flyteidl.core.IParameterMap): flyteidl.core.ParameterMap; + + /** + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * @param message ParameterMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IParameterMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParameterMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ParameterMap; + + /** + * Verifies a ParameterMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Resources. */ + interface IResources { + + /** Resources requests */ + requests?: (flyteidl.core.Resources.IResourceEntry[]|null); + + /** Resources limits */ + limits?: (flyteidl.core.Resources.IResourceEntry[]|null); + } + + /** Represents a Resources. */ + class Resources implements IResources { + + /** + * Constructs a new Resources. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IResources); + + /** Resources requests. */ + public requests: flyteidl.core.Resources.IResourceEntry[]; + + /** Resources limits. */ + public limits: flyteidl.core.Resources.IResourceEntry[]; + + /** + * Creates a new Resources instance using the specified properties. + * @param [properties] Properties to set + * @returns Resources instance + */ + public static create(properties?: flyteidl.core.IResources): flyteidl.core.Resources; + + /** + * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. + * @param message Resources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IResources, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Resources message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Resources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources; + + /** + * Verifies a Resources message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Resources { + + /** ResourceName enum. */ + enum ResourceName { + UNKNOWN = 0, + CPU = 1, + GPU = 2, + MEMORY = 3, + STORAGE = 4, + EPHEMERAL_STORAGE = 5 + } + + /** Properties of a ResourceEntry. */ + interface IResourceEntry { + + /** ResourceEntry name */ + name?: (flyteidl.core.Resources.ResourceName|null); + + /** ResourceEntry value */ + value?: (string|null); + } + + /** Represents a ResourceEntry. */ + class ResourceEntry implements IResourceEntry { + + /** + * Constructs a new ResourceEntry. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.Resources.IResourceEntry); + + /** ResourceEntry name. */ + public name: flyteidl.core.Resources.ResourceName; + + /** ResourceEntry value. */ + public value: string; + + /** + * Creates a new ResourceEntry instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceEntry instance + */ + public static create(properties?: flyteidl.core.Resources.IResourceEntry): flyteidl.core.Resources.ResourceEntry; + + /** + * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. + * @param message ResourceEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.Resources.IResourceEntry, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources.ResourceEntry; + + /** + * Verifies a ResourceEntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a RuntimeMetadata. */ + interface IRuntimeMetadata { + + /** RuntimeMetadata type */ + type?: (flyteidl.core.RuntimeMetadata.RuntimeType|null); + + /** RuntimeMetadata version */ + version?: (string|null); + + /** RuntimeMetadata flavor */ + flavor?: (string|null); + } + + /** Represents a RuntimeMetadata. */ + class RuntimeMetadata implements IRuntimeMetadata { + + /** + * Constructs a new RuntimeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IRuntimeMetadata); + + /** RuntimeMetadata type. */ + public type: flyteidl.core.RuntimeMetadata.RuntimeType; + + /** RuntimeMetadata version. */ + public version: string; + + /** RuntimeMetadata flavor. */ + public flavor: string; + + /** + * Creates a new RuntimeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeMetadata instance + */ + public static create(properties?: flyteidl.core.IRuntimeMetadata): flyteidl.core.RuntimeMetadata; + + /** + * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. + * @param message RuntimeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IRuntimeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RuntimeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RuntimeMetadata; + + /** + * Verifies a RuntimeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace RuntimeMetadata { + + /** RuntimeType enum. */ + enum RuntimeType { + OTHER = 0, + FLYTE_SDK = 1 + } + } + + /** Properties of a TaskMetadata. */ + interface ITaskMetadata { + + /** TaskMetadata discoverable */ + discoverable?: (boolean|null); + + /** TaskMetadata runtime */ + runtime?: (flyteidl.core.IRuntimeMetadata|null); + + /** TaskMetadata timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** TaskMetadata retries */ + retries?: (flyteidl.core.IRetryStrategy|null); + + /** TaskMetadata discoveryVersion */ + discoveryVersion?: (string|null); + + /** TaskMetadata deprecatedErrorMessage */ + deprecatedErrorMessage?: (string|null); + + /** TaskMetadata interruptible */ + interruptible?: (boolean|null); + + /** TaskMetadata cacheSerializable */ + cacheSerializable?: (boolean|null); + + /** TaskMetadata generatesDeck */ + generatesDeck?: (boolean|null); + + /** TaskMetadata tags */ + tags?: ({ [k: string]: string }|null); + + /** TaskMetadata podTemplateName */ + podTemplateName?: (string|null); + } + + /** Represents a TaskMetadata. */ + class TaskMetadata implements ITaskMetadata { + + /** + * Constructs a new TaskMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskMetadata); + + /** TaskMetadata discoverable. */ + public discoverable: boolean; + + /** TaskMetadata runtime. */ + public runtime?: (flyteidl.core.IRuntimeMetadata|null); + + /** TaskMetadata timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** TaskMetadata retries. */ + public retries?: (flyteidl.core.IRetryStrategy|null); + + /** TaskMetadata discoveryVersion. */ + public discoveryVersion: string; + + /** TaskMetadata deprecatedErrorMessage. */ + public deprecatedErrorMessage: string; + + /** TaskMetadata interruptible. */ + public interruptible: boolean; + + /** TaskMetadata cacheSerializable. */ + public cacheSerializable: boolean; + + /** TaskMetadata generatesDeck. */ + public generatesDeck: boolean; + + /** TaskMetadata tags. */ + public tags: { [k: string]: string }; + + /** TaskMetadata podTemplateName. */ + public podTemplateName: string; + + /** TaskMetadata interruptibleValue. */ + public interruptibleValue?: "interruptible"; + + /** + * Creates a new TaskMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskMetadata instance + */ + public static create(properties?: flyteidl.core.ITaskMetadata): flyteidl.core.TaskMetadata; + + /** + * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. + * @param message TaskMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskMetadata; + + /** + * Verifies a TaskMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskTemplate. */ + interface ITaskTemplate { + + /** TaskTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** TaskTemplate type */ + type?: (string|null); + + /** TaskTemplate metadata */ + metadata?: (flyteidl.core.ITaskMetadata|null); + + /** TaskTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** TaskTemplate custom */ + custom?: (google.protobuf.IStruct|null); + + /** TaskTemplate container */ + container?: (flyteidl.core.IContainer|null); + + /** TaskTemplate k8sPod */ + k8sPod?: (flyteidl.core.IK8sPod|null); + + /** TaskTemplate sql */ + sql?: (flyteidl.core.ISql|null); + + /** TaskTemplate taskTypeVersion */ + taskTypeVersion?: (number|null); + + /** TaskTemplate securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** TaskTemplate config */ + config?: ({ [k: string]: string }|null); + } + + /** Represents a TaskTemplate. */ + class TaskTemplate implements ITaskTemplate { + + /** + * Constructs a new TaskTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskTemplate); + + /** TaskTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** TaskTemplate type. */ + public type: string; + + /** TaskTemplate metadata. */ + public metadata?: (flyteidl.core.ITaskMetadata|null); + + /** TaskTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** TaskTemplate custom. */ + public custom?: (google.protobuf.IStruct|null); + + /** TaskTemplate container. */ + public container?: (flyteidl.core.IContainer|null); + + /** TaskTemplate k8sPod. */ + public k8sPod?: (flyteidl.core.IK8sPod|null); + + /** TaskTemplate sql. */ + public sql?: (flyteidl.core.ISql|null); + + /** TaskTemplate taskTypeVersion. */ + public taskTypeVersion: number; + + /** TaskTemplate securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** TaskTemplate config. */ + public config: { [k: string]: string }; + + /** TaskTemplate target. */ + public target?: ("container"|"k8sPod"|"sql"); + + /** + * Creates a new TaskTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskTemplate instance + */ + public static create(properties?: flyteidl.core.ITaskTemplate): flyteidl.core.TaskTemplate; + + /** + * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. + * @param message TaskTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskTemplate; + + /** + * Verifies a TaskTemplate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ContainerPort. */ + interface IContainerPort { + + /** ContainerPort containerPort */ + containerPort?: (number|null); + } + + /** Represents a ContainerPort. */ + class ContainerPort implements IContainerPort { + + /** + * Constructs a new ContainerPort. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainerPort); + + /** ContainerPort containerPort. */ + public containerPort: number; + + /** + * Creates a new ContainerPort instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerPort instance + */ + public static create(properties?: flyteidl.core.IContainerPort): flyteidl.core.ContainerPort; + + /** + * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. + * @param message ContainerPort message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainerPort, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainerPort message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerPort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerPort; + + /** + * Verifies a ContainerPort message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Container. */ + interface IContainer { + + /** Container image */ + image?: (string|null); + + /** Container command */ + command?: (string[]|null); + + /** Container args */ + args?: (string[]|null); + + /** Container resources */ + resources?: (flyteidl.core.IResources|null); + + /** Container env */ + env?: (flyteidl.core.IKeyValuePair[]|null); + + /** Container config */ + config?: (flyteidl.core.IKeyValuePair[]|null); + + /** Container ports */ + ports?: (flyteidl.core.IContainerPort[]|null); + + /** Container dataConfig */ + dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + + /** Container architecture */ + architecture?: (flyteidl.core.Container.Architecture|null); + } + + /** Represents a Container. */ + class Container implements IContainer { + + /** + * Constructs a new Container. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainer); + + /** Container image. */ + public image: string; + + /** Container command. */ + public command: string[]; + + /** Container args. */ + public args: string[]; + + /** Container resources. */ + public resources?: (flyteidl.core.IResources|null); + + /** Container env. */ + public env: flyteidl.core.IKeyValuePair[]; + + /** Container config. */ + public config: flyteidl.core.IKeyValuePair[]; + + /** Container ports. */ + public ports: flyteidl.core.IContainerPort[]; + + /** Container dataConfig. */ + public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + + /** Container architecture. */ + public architecture: flyteidl.core.Container.Architecture; + + /** + * Creates a new Container instance using the specified properties. + * @param [properties] Properties to set + * @returns Container instance + */ + public static create(properties?: flyteidl.core.IContainer): flyteidl.core.Container; + + /** + * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. + * @param message Container message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Container message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Container; + + /** + * Verifies a Container message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Container { + + /** Architecture enum. */ + enum Architecture { + UNKNOWN = 0, + AMD64 = 1, + ARM64 = 2, + ARM_V6 = 3, + ARM_V7 = 4 + } + } + + /** Properties of a IOStrategy. */ + interface IIOStrategy { + + /** IOStrategy downloadMode */ + downloadMode?: (flyteidl.core.IOStrategy.DownloadMode|null); + + /** IOStrategy uploadMode */ + uploadMode?: (flyteidl.core.IOStrategy.UploadMode|null); + } + + /** Represents a IOStrategy. */ + class IOStrategy implements IIOStrategy { + + /** + * Constructs a new IOStrategy. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIOStrategy); + + /** IOStrategy downloadMode. */ + public downloadMode: flyteidl.core.IOStrategy.DownloadMode; + + /** IOStrategy uploadMode. */ + public uploadMode: flyteidl.core.IOStrategy.UploadMode; + + /** + * Creates a new IOStrategy instance using the specified properties. + * @param [properties] Properties to set + * @returns IOStrategy instance + */ + public static create(properties?: flyteidl.core.IIOStrategy): flyteidl.core.IOStrategy; + + /** + * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. + * @param message IOStrategy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIOStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a IOStrategy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IOStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IOStrategy; + + /** + * Verifies a IOStrategy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace IOStrategy { + + /** DownloadMode enum. */ + enum DownloadMode { + DOWNLOAD_EAGER = 0, + DOWNLOAD_STREAM = 1, + DO_NOT_DOWNLOAD = 2 + } + + /** UploadMode enum. */ + enum UploadMode { + UPLOAD_ON_EXIT = 0, + UPLOAD_EAGER = 1, + DO_NOT_UPLOAD = 2 + } + } + + /** Properties of a DataLoadingConfig. */ + interface IDataLoadingConfig { + + /** DataLoadingConfig enabled */ + enabled?: (boolean|null); + + /** DataLoadingConfig inputPath */ + inputPath?: (string|null); + + /** DataLoadingConfig outputPath */ + outputPath?: (string|null); + + /** DataLoadingConfig format */ + format?: (flyteidl.core.DataLoadingConfig.LiteralMapFormat|null); + + /** DataLoadingConfig ioStrategy */ + ioStrategy?: (flyteidl.core.IIOStrategy|null); + } + + /** Represents a DataLoadingConfig. */ + class DataLoadingConfig implements IDataLoadingConfig { + + /** + * Constructs a new DataLoadingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IDataLoadingConfig); + + /** DataLoadingConfig enabled. */ + public enabled: boolean; + + /** DataLoadingConfig inputPath. */ + public inputPath: string; + + /** DataLoadingConfig outputPath. */ + public outputPath: string; + + /** DataLoadingConfig format. */ + public format: flyteidl.core.DataLoadingConfig.LiteralMapFormat; + + /** DataLoadingConfig ioStrategy. */ + public ioStrategy?: (flyteidl.core.IIOStrategy|null); + + /** + * Creates a new DataLoadingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLoadingConfig instance + */ + public static create(properties?: flyteidl.core.IDataLoadingConfig): flyteidl.core.DataLoadingConfig; + + /** + * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. + * @param message DataLoadingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IDataLoadingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLoadingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLoadingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.DataLoadingConfig; + + /** + * Verifies a DataLoadingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace DataLoadingConfig { + + /** LiteralMapFormat enum. */ + enum LiteralMapFormat { + JSON = 0, + YAML = 1, + PROTO = 2 + } + } + + /** Properties of a K8sPod. */ + interface IK8sPod { + + /** K8sPod metadata */ + metadata?: (flyteidl.core.IK8sObjectMetadata|null); + + /** K8sPod podSpec */ + podSpec?: (google.protobuf.IStruct|null); + + /** K8sPod dataConfig */ + dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + } + + /** Represents a K8sPod. */ + class K8sPod implements IK8sPod { + + /** + * Constructs a new K8sPod. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IK8sPod); + + /** K8sPod metadata. */ + public metadata?: (flyteidl.core.IK8sObjectMetadata|null); + + /** K8sPod podSpec. */ + public podSpec?: (google.protobuf.IStruct|null); + + /** K8sPod dataConfig. */ + public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + + /** + * Creates a new K8sPod instance using the specified properties. + * @param [properties] Properties to set + * @returns K8sPod instance + */ + public static create(properties?: flyteidl.core.IK8sPod): flyteidl.core.K8sPod; + + /** + * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. + * @param message K8sPod message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IK8sPod, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a K8sPod message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns K8sPod + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.K8sPod; + + /** + * Verifies a K8sPod message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a K8sObjectMetadata. */ + interface IK8sObjectMetadata { + + /** K8sObjectMetadata labels */ + labels?: ({ [k: string]: string }|null); + + /** K8sObjectMetadata annotations */ + annotations?: ({ [k: string]: string }|null); + } + + /** Represents a K8sObjectMetadata. */ + class K8sObjectMetadata implements IK8sObjectMetadata { + + /** + * Constructs a new K8sObjectMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IK8sObjectMetadata); + + /** K8sObjectMetadata labels. */ + public labels: { [k: string]: string }; + + /** K8sObjectMetadata annotations. */ + public annotations: { [k: string]: string }; + + /** + * Creates a new K8sObjectMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns K8sObjectMetadata instance + */ + public static create(properties?: flyteidl.core.IK8sObjectMetadata): flyteidl.core.K8sObjectMetadata; + + /** + * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. + * @param message K8sObjectMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IK8sObjectMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a K8sObjectMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns K8sObjectMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.K8sObjectMetadata; + + /** + * Verifies a K8sObjectMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Sql. */ + interface ISql { + + /** Sql statement */ + statement?: (string|null); + + /** Sql dialect */ + dialect?: (flyteidl.core.Sql.Dialect|null); + } + + /** Represents a Sql. */ + class Sql implements ISql { + + /** + * Constructs a new Sql. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISql); + + /** Sql statement. */ + public statement: string; + + /** Sql dialect. */ + public dialect: flyteidl.core.Sql.Dialect; + + /** + * Creates a new Sql instance using the specified properties. + * @param [properties] Properties to set + * @returns Sql instance + */ + public static create(properties?: flyteidl.core.ISql): flyteidl.core.Sql; + + /** + * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. + * @param message Sql message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISql, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Sql message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Sql + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Sql; + + /** + * Verifies a Sql message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Sql { + + /** Dialect enum. */ + enum Dialect { + UNDEFINED = 0, + ANSI = 1, + HIVE = 2, + OTHER = 3 + } + } + + /** Properties of a Secret. */ + interface ISecret { + + /** Secret group */ + group?: (string|null); + + /** Secret groupVersion */ + groupVersion?: (string|null); + + /** Secret key */ + key?: (string|null); + + /** Secret mountRequirement */ + mountRequirement?: (flyteidl.core.Secret.MountType|null); + } + + /** Represents a Secret. */ + class Secret implements ISecret { + + /** + * Constructs a new Secret. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISecret); + + /** Secret group. */ + public group: string; + + /** Secret groupVersion. */ + public groupVersion: string; + + /** Secret key. */ + public key: string; + + /** Secret mountRequirement. */ + public mountRequirement: flyteidl.core.Secret.MountType; + + /** + * Creates a new Secret instance using the specified properties. + * @param [properties] Properties to set + * @returns Secret instance + */ + public static create(properties?: flyteidl.core.ISecret): flyteidl.core.Secret; + + /** + * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. + * @param message Secret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Secret message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Secret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Secret; + + /** + * Verifies a Secret message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Secret { + + /** MountType enum. */ + enum MountType { + ANY = 0, + ENV_VAR = 1, + FILE = 2 + } + } + + /** Properties of a OAuth2Client. */ + interface IOAuth2Client { + + /** OAuth2Client clientId */ + clientId?: (string|null); + + /** OAuth2Client clientSecret */ + clientSecret?: (flyteidl.core.ISecret|null); + } + + /** Represents a OAuth2Client. */ + class OAuth2Client implements IOAuth2Client { + + /** + * Constructs a new OAuth2Client. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOAuth2Client); + + /** OAuth2Client clientId. */ + public clientId: string; + + /** OAuth2Client clientSecret. */ + public clientSecret?: (flyteidl.core.ISecret|null); + + /** + * Creates a new OAuth2Client instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2Client instance + */ + public static create(properties?: flyteidl.core.IOAuth2Client): flyteidl.core.OAuth2Client; + + /** + * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. + * @param message OAuth2Client message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOAuth2Client, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2Client message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2Client + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OAuth2Client; + + /** + * Verifies a OAuth2Client message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Identity. */ + interface IIdentity { + + /** Identity iamRole */ + iamRole?: (string|null); + + /** Identity k8sServiceAccount */ + k8sServiceAccount?: (string|null); + + /** Identity oauth2Client */ + oauth2Client?: (flyteidl.core.IOAuth2Client|null); + + /** Identity executionIdentity */ + executionIdentity?: (string|null); + } + + /** Represents an Identity. */ + class Identity implements IIdentity { + + /** + * Constructs a new Identity. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIdentity); + + /** Identity iamRole. */ + public iamRole: string; + + /** Identity k8sServiceAccount. */ + public k8sServiceAccount: string; + + /** Identity oauth2Client. */ + public oauth2Client?: (flyteidl.core.IOAuth2Client|null); + + /** Identity executionIdentity. */ + public executionIdentity: string; + + /** + * Creates a new Identity instance using the specified properties. + * @param [properties] Properties to set + * @returns Identity instance + */ + public static create(properties?: flyteidl.core.IIdentity): flyteidl.core.Identity; + + /** + * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. + * @param message Identity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIdentity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Identity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Identity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Identity; + + /** + * Verifies an Identity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a OAuth2TokenRequest. */ + interface IOAuth2TokenRequest { + + /** OAuth2TokenRequest name */ + name?: (string|null); + + /** OAuth2TokenRequest type */ + type?: (flyteidl.core.OAuth2TokenRequest.Type|null); + + /** OAuth2TokenRequest client */ + client?: (flyteidl.core.IOAuth2Client|null); + + /** OAuth2TokenRequest idpDiscoveryEndpoint */ + idpDiscoveryEndpoint?: (string|null); + + /** OAuth2TokenRequest tokenEndpoint */ + tokenEndpoint?: (string|null); + } + + /** Represents a OAuth2TokenRequest. */ + class OAuth2TokenRequest implements IOAuth2TokenRequest { + + /** + * Constructs a new OAuth2TokenRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOAuth2TokenRequest); + + /** OAuth2TokenRequest name. */ + public name: string; + + /** OAuth2TokenRequest type. */ + public type: flyteidl.core.OAuth2TokenRequest.Type; + + /** OAuth2TokenRequest client. */ + public client?: (flyteidl.core.IOAuth2Client|null); + + /** OAuth2TokenRequest idpDiscoveryEndpoint. */ + public idpDiscoveryEndpoint: string; + + /** OAuth2TokenRequest tokenEndpoint. */ + public tokenEndpoint: string; + + /** + * Creates a new OAuth2TokenRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2TokenRequest instance + */ + public static create(properties?: flyteidl.core.IOAuth2TokenRequest): flyteidl.core.OAuth2TokenRequest; + + /** + * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. + * @param message OAuth2TokenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOAuth2TokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2TokenRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2TokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OAuth2TokenRequest; + + /** + * Verifies a OAuth2TokenRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace OAuth2TokenRequest { + + /** Type enum. */ + enum Type { + CLIENT_CREDENTIALS = 0 + } + } + + /** Properties of a SecurityContext. */ + interface ISecurityContext { + + /** SecurityContext runAs */ + runAs?: (flyteidl.core.IIdentity|null); + + /** SecurityContext secrets */ + secrets?: (flyteidl.core.ISecret[]|null); + + /** SecurityContext tokens */ + tokens?: (flyteidl.core.IOAuth2TokenRequest[]|null); + } + + /** Represents a SecurityContext. */ + class SecurityContext implements ISecurityContext { + + /** + * Constructs a new SecurityContext. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISecurityContext); + + /** SecurityContext runAs. */ + public runAs?: (flyteidl.core.IIdentity|null); + + /** SecurityContext secrets. */ + public secrets: flyteidl.core.ISecret[]; + + /** SecurityContext tokens. */ + public tokens: flyteidl.core.IOAuth2TokenRequest[]; + + /** + * Creates a new SecurityContext instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityContext instance + */ + public static create(properties?: flyteidl.core.ISecurityContext): flyteidl.core.SecurityContext; + + /** + * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. + * @param message SecurityContext message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISecurityContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityContext message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SecurityContext; + + /** + * Verifies a SecurityContext message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicJobSpec. */ + interface IDynamicJobSpec { + + /** DynamicJobSpec nodes */ + nodes?: (flyteidl.core.INode[]|null); + + /** DynamicJobSpec minSuccesses */ + minSuccesses?: (Long|null); + + /** DynamicJobSpec outputs */ + outputs?: (flyteidl.core.IBinding[]|null); + + /** DynamicJobSpec tasks */ + tasks?: (flyteidl.core.ITaskTemplate[]|null); + + /** DynamicJobSpec subworkflows */ + subworkflows?: (flyteidl.core.IWorkflowTemplate[]|null); + } + + /** Represents a DynamicJobSpec. */ + class DynamicJobSpec implements IDynamicJobSpec { + + /** + * Constructs a new DynamicJobSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IDynamicJobSpec); + + /** DynamicJobSpec nodes. */ + public nodes: flyteidl.core.INode[]; + + /** DynamicJobSpec minSuccesses. */ + public minSuccesses: Long; + + /** DynamicJobSpec outputs. */ + public outputs: flyteidl.core.IBinding[]; + + /** DynamicJobSpec tasks. */ + public tasks: flyteidl.core.ITaskTemplate[]; + + /** DynamicJobSpec subworkflows. */ + public subworkflows: flyteidl.core.IWorkflowTemplate[]; + + /** + * Creates a new DynamicJobSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicJobSpec instance + */ + public static create(properties?: flyteidl.core.IDynamicJobSpec): flyteidl.core.DynamicJobSpec; + + /** + * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. + * @param message DynamicJobSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IDynamicJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicJobSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.DynamicJobSpec; + + /** + * Verifies a DynamicJobSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ContainerError. */ + interface IContainerError { + + /** ContainerError code */ + code?: (string|null); + + /** ContainerError message */ + message?: (string|null); + + /** ContainerError kind */ + kind?: (flyteidl.core.ContainerError.Kind|null); + + /** ContainerError origin */ + origin?: (flyteidl.core.ExecutionError.ErrorKind|null); + } + + /** Represents a ContainerError. */ + class ContainerError implements IContainerError { + + /** + * Constructs a new ContainerError. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainerError); + + /** ContainerError code. */ + public code: string; + + /** ContainerError message. */ + public message: string; + + /** ContainerError kind. */ + public kind: flyteidl.core.ContainerError.Kind; + + /** ContainerError origin. */ + public origin: flyteidl.core.ExecutionError.ErrorKind; + + /** + * Creates a new ContainerError instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerError instance + */ + public static create(properties?: flyteidl.core.IContainerError): flyteidl.core.ContainerError; + + /** + * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. + * @param message ContainerError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainerError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainerError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerError; + + /** + * Verifies a ContainerError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ContainerError { + + /** Kind enum. */ + enum Kind { + NON_RECOVERABLE = 0, + RECOVERABLE = 1 + } + } + + /** Properties of an ErrorDocument. */ + interface IErrorDocument { + + /** ErrorDocument error */ + error?: (flyteidl.core.IContainerError|null); + } + + /** Represents an ErrorDocument. */ + class ErrorDocument implements IErrorDocument { + + /** + * Constructs a new ErrorDocument. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IErrorDocument); + + /** ErrorDocument error. */ + public error?: (flyteidl.core.IContainerError|null); + + /** + * Creates a new ErrorDocument instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorDocument instance + */ + public static create(properties?: flyteidl.core.IErrorDocument): flyteidl.core.ErrorDocument; + + /** + * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. + * @param message ErrorDocument message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IErrorDocument, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorDocument message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorDocument + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ErrorDocument; + + /** + * Verifies an ErrorDocument message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Span. */ + interface ISpan { + + /** Span startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Span endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Span workflowId */ + workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Span nodeId */ + nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** Span taskId */ + taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** Span operationId */ + operationId?: (string|null); + + /** Span spans */ + spans?: (flyteidl.core.ISpan[]|null); + } + + /** Represents a Span. */ + class Span implements ISpan { + + /** + * Constructs a new Span. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISpan); + + /** Span startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Span endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Span workflowId. */ + public workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Span nodeId. */ + public nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** Span taskId. */ + public taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** Span operationId. */ + public operationId: string; + + /** Span spans. */ + public spans: flyteidl.core.ISpan[]; + + /** Span id. */ + public id?: ("workflowId"|"nodeId"|"taskId"|"operationId"); + + /** + * Creates a new Span instance using the specified properties. + * @param [properties] Properties to set + * @returns Span instance + */ + public static create(properties?: flyteidl.core.ISpan): flyteidl.core.Span; + + /** + * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. + * @param message Span message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISpan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Span message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Span + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Span; + + /** + * Verifies a Span message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowClosure. */ + interface IWorkflowClosure { + + /** WorkflowClosure workflow */ + workflow?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowClosure tasks */ + tasks?: (flyteidl.core.ITaskTemplate[]|null); + } + + /** Represents a WorkflowClosure. */ + class WorkflowClosure implements IWorkflowClosure { + + /** + * Constructs a new WorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowClosure); + + /** WorkflowClosure workflow. */ + public workflow?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowClosure tasks. */ + public tasks: flyteidl.core.ITaskTemplate[]; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowClosure instance + */ + public static create(properties?: flyteidl.core.IWorkflowClosure): flyteidl.core.WorkflowClosure; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. + * @param message WorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowClosure; + + /** + * Verifies a WorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Namespace event. */ + namespace event { + + /** Properties of a WorkflowExecutionEvent. */ + interface IWorkflowExecutionEvent { + + /** WorkflowExecutionEvent executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionEvent producerId */ + producerId?: (string|null); + + /** WorkflowExecutionEvent phase */ + phase?: (flyteidl.core.WorkflowExecution.Phase|null); + + /** WorkflowExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** WorkflowExecutionEvent outputUri */ + outputUri?: (string|null); + + /** WorkflowExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** WorkflowExecutionEvent outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a WorkflowExecutionEvent. */ + class WorkflowExecutionEvent implements IWorkflowExecutionEvent { + + /** + * Constructs a new WorkflowExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IWorkflowExecutionEvent); + + /** WorkflowExecutionEvent executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionEvent producerId. */ + public producerId: string; + + /** WorkflowExecutionEvent phase. */ + public phase: flyteidl.core.WorkflowExecution.Phase; + + /** WorkflowExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** WorkflowExecutionEvent outputUri. */ + public outputUri: string; + + /** WorkflowExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** WorkflowExecutionEvent outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** WorkflowExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** + * Creates a new WorkflowExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEvent instance + */ + public static create(properties?: flyteidl.event.IWorkflowExecutionEvent): flyteidl.event.WorkflowExecutionEvent; + + /** + * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. + * @param message WorkflowExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IWorkflowExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowExecutionEvent; + + /** + * Verifies a WorkflowExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEvent. */ + interface INodeExecutionEvent { + + /** NodeExecutionEvent id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecutionEvent producerId */ + producerId?: (string|null); + + /** NodeExecutionEvent phase */ + phase?: (flyteidl.core.NodeExecution.Phase|null); + + /** NodeExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent inputUri */ + inputUri?: (string|null); + + /** NodeExecutionEvent inputData */ + inputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent outputUri */ + outputUri?: (string|null); + + /** NodeExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionEvent outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent workflowNodeMetadata */ + workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); + + /** NodeExecutionEvent taskNodeMetadata */ + taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); + + /** NodeExecutionEvent parentTaskMetadata */ + parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); + + /** NodeExecutionEvent parentNodeMetadata */ + parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); + + /** NodeExecutionEvent retryGroup */ + retryGroup?: (string|null); + + /** NodeExecutionEvent specNodeId */ + specNodeId?: (string|null); + + /** NodeExecutionEvent nodeName */ + nodeName?: (string|null); + + /** NodeExecutionEvent eventVersion */ + eventVersion?: (number|null); + + /** NodeExecutionEvent isParent */ + isParent?: (boolean|null); + + /** NodeExecutionEvent isDynamic */ + isDynamic?: (boolean|null); + + /** NodeExecutionEvent deckUri */ + deckUri?: (string|null); + + /** NodeExecutionEvent reportedAt */ + reportedAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a NodeExecutionEvent. */ + class NodeExecutionEvent implements INodeExecutionEvent { + + /** + * Constructs a new NodeExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.INodeExecutionEvent); + + /** NodeExecutionEvent id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecutionEvent producerId. */ + public producerId: string; + + /** NodeExecutionEvent phase. */ + public phase: flyteidl.core.NodeExecution.Phase; + + /** NodeExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent inputUri. */ + public inputUri: string; + + /** NodeExecutionEvent inputData. */ + public inputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent outputUri. */ + public outputUri: string; + + /** NodeExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionEvent outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent workflowNodeMetadata. */ + public workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); + + /** NodeExecutionEvent taskNodeMetadata. */ + public taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); + + /** NodeExecutionEvent parentTaskMetadata. */ + public parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); + + /** NodeExecutionEvent parentNodeMetadata. */ + public parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); + + /** NodeExecutionEvent retryGroup. */ + public retryGroup: string; + + /** NodeExecutionEvent specNodeId. */ + public specNodeId: string; + + /** NodeExecutionEvent nodeName. */ + public nodeName: string; + + /** NodeExecutionEvent eventVersion. */ + public eventVersion: number; + + /** NodeExecutionEvent isParent. */ + public isParent: boolean; + + /** NodeExecutionEvent isDynamic. */ + public isDynamic: boolean; + + /** NodeExecutionEvent deckUri. */ + public deckUri: string; + + /** NodeExecutionEvent reportedAt. */ + public reportedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent inputValue. */ + public inputValue?: ("inputUri"|"inputData"); + + /** NodeExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** NodeExecutionEvent targetMetadata. */ + public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); + + /** + * Creates a new NodeExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEvent instance + */ + public static create(properties?: flyteidl.event.INodeExecutionEvent): flyteidl.event.NodeExecutionEvent; + + /** + * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. + * @param message NodeExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.INodeExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.NodeExecutionEvent; + + /** + * Verifies a NodeExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNodeMetadata. */ + interface IWorkflowNodeMetadata { + + /** WorkflowNodeMetadata executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowNodeMetadata. */ + class WorkflowNodeMetadata implements IWorkflowNodeMetadata { + + /** + * Constructs a new WorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IWorkflowNodeMetadata); + + /** WorkflowNodeMetadata executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.event.IWorkflowNodeMetadata): flyteidl.event.WorkflowNodeMetadata; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. + * @param message WorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowNodeMetadata; + + /** + * Verifies a WorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNodeMetadata. */ + interface ITaskNodeMetadata { + + /** TaskNodeMetadata cacheStatus */ + cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); + + /** TaskNodeMetadata catalogKey */ + catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata reservationStatus */ + reservationStatus?: (flyteidl.core.CatalogReservation.Status|null); + + /** TaskNodeMetadata checkpointUri */ + checkpointUri?: (string|null); + + /** TaskNodeMetadata dynamicWorkflow */ + dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); + } + + /** Represents a TaskNodeMetadata. */ + class TaskNodeMetadata implements ITaskNodeMetadata { + + /** + * Constructs a new TaskNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ITaskNodeMetadata); + + /** TaskNodeMetadata cacheStatus. */ + public cacheStatus: flyteidl.core.CatalogCacheStatus; + + /** TaskNodeMetadata catalogKey. */ + public catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata reservationStatus. */ + public reservationStatus: flyteidl.core.CatalogReservation.Status; + + /** TaskNodeMetadata checkpointUri. */ + public checkpointUri: string; + + /** TaskNodeMetadata dynamicWorkflow. */ + public dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNodeMetadata instance + */ + public static create(properties?: flyteidl.event.ITaskNodeMetadata): flyteidl.event.TaskNodeMetadata; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. + * @param message TaskNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskNodeMetadata; + + /** + * Verifies a TaskNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicWorkflowNodeMetadata. */ + interface IDynamicWorkflowNodeMetadata { + + /** DynamicWorkflowNodeMetadata id */ + id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ + dynamicJobSpecUri?: (string|null); + } + + /** Represents a DynamicWorkflowNodeMetadata. */ + class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata); + + /** DynamicWorkflowNodeMetadata id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ + public dynamicJobSpecUri: string; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicWorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata): flyteidl.event.DynamicWorkflowNodeMetadata; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @param message DynamicWorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.DynamicWorkflowNodeMetadata; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParentTaskExecutionMetadata. */ + interface IParentTaskExecutionMetadata { + + /** ParentTaskExecutionMetadata id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a ParentTaskExecutionMetadata. */ + class ParentTaskExecutionMetadata implements IParentTaskExecutionMetadata { + + /** + * Constructs a new ParentTaskExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IParentTaskExecutionMetadata); + + /** ParentTaskExecutionMetadata id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new ParentTaskExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ParentTaskExecutionMetadata instance + */ + public static create(properties?: flyteidl.event.IParentTaskExecutionMetadata): flyteidl.event.ParentTaskExecutionMetadata; + + /** + * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. + * @param message ParentTaskExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IParentTaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParentTaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ParentTaskExecutionMetadata; + + /** + * Verifies a ParentTaskExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParentNodeExecutionMetadata. */ + interface IParentNodeExecutionMetadata { + + /** ParentNodeExecutionMetadata nodeId */ + nodeId?: (string|null); + } + + /** Represents a ParentNodeExecutionMetadata. */ + class ParentNodeExecutionMetadata implements IParentNodeExecutionMetadata { + + /** + * Constructs a new ParentNodeExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IParentNodeExecutionMetadata); + + /** ParentNodeExecutionMetadata nodeId. */ + public nodeId: string; + + /** + * Creates a new ParentNodeExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ParentNodeExecutionMetadata instance + */ + public static create(properties?: flyteidl.event.IParentNodeExecutionMetadata): flyteidl.event.ParentNodeExecutionMetadata; + + /** + * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. + * @param message ParentNodeExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IParentNodeExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParentNodeExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ParentNodeExecutionMetadata; + + /** + * Verifies a ParentNodeExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEvent. */ + interface ITaskExecutionEvent { + + /** TaskExecutionEvent taskId */ + taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionEvent parentNodeExecutionId */ + parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionEvent retryAttempt */ + retryAttempt?: (number|null); + + /** TaskExecutionEvent phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** TaskExecutionEvent producerId */ + producerId?: (string|null); + + /** TaskExecutionEvent logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + + /** TaskExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputUri */ + inputUri?: (string|null); + + /** TaskExecutionEvent inputData */ + inputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent outputUri */ + outputUri?: (string|null); + + /** TaskExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionEvent outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent customInfo */ + customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionEvent phaseVersion */ + phaseVersion?: (number|null); + + /** TaskExecutionEvent reason */ + reason?: (string|null); + + /** TaskExecutionEvent taskType */ + taskType?: (string|null); + + /** TaskExecutionEvent metadata */ + metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionEvent eventVersion */ + eventVersion?: (number|null); + + /** TaskExecutionEvent reportedAt */ + reportedAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a TaskExecutionEvent. */ + class TaskExecutionEvent implements ITaskExecutionEvent { + + /** + * Constructs a new TaskExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ITaskExecutionEvent); + + /** TaskExecutionEvent taskId. */ + public taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionEvent parentNodeExecutionId. */ + public parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionEvent retryAttempt. */ + public retryAttempt: number; + + /** TaskExecutionEvent phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** TaskExecutionEvent producerId. */ + public producerId: string; + + /** TaskExecutionEvent logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** TaskExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputUri. */ + public inputUri: string; + + /** TaskExecutionEvent inputData. */ + public inputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent outputUri. */ + public outputUri: string; + + /** TaskExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionEvent outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent customInfo. */ + public customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionEvent phaseVersion. */ + public phaseVersion: number; + + /** TaskExecutionEvent reason. */ + public reason: string; + + /** TaskExecutionEvent taskType. */ + public taskType: string; + + /** TaskExecutionEvent metadata. */ + public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionEvent eventVersion. */ + public eventVersion: number; + + /** TaskExecutionEvent reportedAt. */ + public reportedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputValue. */ + public inputValue?: ("inputUri"|"inputData"); + + /** TaskExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** + * Creates a new TaskExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEvent instance + */ + public static create(properties?: flyteidl.event.ITaskExecutionEvent): flyteidl.event.TaskExecutionEvent; + + /** + * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. + * @param message TaskExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ITaskExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskExecutionEvent; + + /** + * Verifies a TaskExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExternalResourceInfo. */ + interface IExternalResourceInfo { + + /** ExternalResourceInfo externalId */ + externalId?: (string|null); + + /** ExternalResourceInfo index */ + index?: (number|null); + + /** ExternalResourceInfo retryAttempt */ + retryAttempt?: (number|null); + + /** ExternalResourceInfo phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** ExternalResourceInfo cacheStatus */ + cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); + + /** ExternalResourceInfo logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + } + + /** Represents an ExternalResourceInfo. */ + class ExternalResourceInfo implements IExternalResourceInfo { + + /** + * Constructs a new ExternalResourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IExternalResourceInfo); + + /** ExternalResourceInfo externalId. */ + public externalId: string; + + /** ExternalResourceInfo index. */ + public index: number; + + /** ExternalResourceInfo retryAttempt. */ + public retryAttempt: number; + + /** ExternalResourceInfo phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** ExternalResourceInfo cacheStatus. */ + public cacheStatus: flyteidl.core.CatalogCacheStatus; + + /** ExternalResourceInfo logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** + * Creates a new ExternalResourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ExternalResourceInfo instance + */ + public static create(properties?: flyteidl.event.IExternalResourceInfo): flyteidl.event.ExternalResourceInfo; + + /** + * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. + * @param message ExternalResourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IExternalResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExternalResourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExternalResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ExternalResourceInfo; + + /** + * Verifies an ExternalResourceInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ResourcePoolInfo. */ + interface IResourcePoolInfo { + + /** ResourcePoolInfo allocationToken */ + allocationToken?: (string|null); + + /** ResourcePoolInfo namespace */ + namespace?: (string|null); + } + + /** Represents a ResourcePoolInfo. */ + class ResourcePoolInfo implements IResourcePoolInfo { + + /** + * Constructs a new ResourcePoolInfo. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IResourcePoolInfo); + + /** ResourcePoolInfo allocationToken. */ + public allocationToken: string; + + /** ResourcePoolInfo namespace. */ + public namespace: string; + + /** + * Creates a new ResourcePoolInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourcePoolInfo instance + */ + public static create(properties?: flyteidl.event.IResourcePoolInfo): flyteidl.event.ResourcePoolInfo; + + /** + * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. + * @param message ResourcePoolInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IResourcePoolInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourcePoolInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourcePoolInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ResourcePoolInfo; + + /** + * Verifies a ResourcePoolInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionMetadata. */ + interface ITaskExecutionMetadata { + + /** TaskExecutionMetadata generatedName */ + generatedName?: (string|null); + + /** TaskExecutionMetadata externalResources */ + externalResources?: (flyteidl.event.IExternalResourceInfo[]|null); + + /** TaskExecutionMetadata resourcePoolInfo */ + resourcePoolInfo?: (flyteidl.event.IResourcePoolInfo[]|null); + + /** TaskExecutionMetadata pluginIdentifier */ + pluginIdentifier?: (string|null); + + /** TaskExecutionMetadata instanceClass */ + instanceClass?: (flyteidl.event.TaskExecutionMetadata.InstanceClass|null); + } + + /** Represents a TaskExecutionMetadata. */ + class TaskExecutionMetadata implements ITaskExecutionMetadata { + + /** + * Constructs a new TaskExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ITaskExecutionMetadata); + + /** TaskExecutionMetadata generatedName. */ + public generatedName: string; + + /** TaskExecutionMetadata externalResources. */ + public externalResources: flyteidl.event.IExternalResourceInfo[]; + + /** TaskExecutionMetadata resourcePoolInfo. */ + public resourcePoolInfo: flyteidl.event.IResourcePoolInfo[]; + + /** TaskExecutionMetadata pluginIdentifier. */ + public pluginIdentifier: string; + + /** TaskExecutionMetadata instanceClass. */ + public instanceClass: flyteidl.event.TaskExecutionMetadata.InstanceClass; + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionMetadata instance + */ + public static create(properties?: flyteidl.event.ITaskExecutionMetadata): flyteidl.event.TaskExecutionMetadata; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. + * @param message TaskExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskExecutionMetadata; + + /** + * Verifies a TaskExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskExecutionMetadata { + + /** InstanceClass enum. */ + enum InstanceClass { + DEFAULT = 0, + INTERRUPTIBLE = 1 + } + } + } + + /** Namespace admin. */ + namespace admin { + + /** State enum. */ + enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4 + } + + /** Properties of a TaskExecutionMetadata. */ + interface ITaskExecutionMetadata { + + /** TaskExecutionMetadata taskExecutionId */ + taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecutionMetadata namespace */ + namespace?: (string|null); + + /** TaskExecutionMetadata labels */ + labels?: ({ [k: string]: string }|null); + + /** TaskExecutionMetadata annotations */ + annotations?: ({ [k: string]: string }|null); + + /** TaskExecutionMetadata k8sServiceAccount */ + k8sServiceAccount?: (string|null); + + /** TaskExecutionMetadata environmentVariables */ + environmentVariables?: ({ [k: string]: string }|null); + } + + /** Represents a TaskExecutionMetadata. */ + class TaskExecutionMetadata implements ITaskExecutionMetadata { + + /** + * Constructs a new TaskExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionMetadata); + + /** TaskExecutionMetadata taskExecutionId. */ + public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecutionMetadata namespace. */ + public namespace: string; + + /** TaskExecutionMetadata labels. */ + public labels: { [k: string]: string }; + + /** TaskExecutionMetadata annotations. */ + public annotations: { [k: string]: string }; + + /** TaskExecutionMetadata k8sServiceAccount. */ + public k8sServiceAccount: string; + + /** TaskExecutionMetadata environmentVariables. */ + public environmentVariables: { [k: string]: string }; + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionMetadata instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionMetadata): flyteidl.admin.TaskExecutionMetadata; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. + * @param message TaskExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionMetadata; + + /** + * Verifies a TaskExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateTaskRequest. */ + interface ICreateTaskRequest { + + /** CreateTaskRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** CreateTaskRequest template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateTaskRequest outputPrefix */ + outputPrefix?: (string|null); + + /** CreateTaskRequest taskExecutionMetadata */ + taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + } + + /** Represents a CreateTaskRequest. */ + class CreateTaskRequest implements ICreateTaskRequest { + + /** + * Constructs a new CreateTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateTaskRequest); + + /** CreateTaskRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** CreateTaskRequest template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateTaskRequest outputPrefix. */ + public outputPrefix: string; + + /** CreateTaskRequest taskExecutionMetadata. */ + public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + + /** + * Creates a new CreateTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTaskRequest instance + */ + public static create(properties?: flyteidl.admin.ICreateTaskRequest): flyteidl.admin.CreateTaskRequest; + + /** + * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. + * @param message CreateTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateTaskRequest; + + /** + * Verifies a CreateTaskRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateTaskResponse. */ + interface ICreateTaskResponse { + + /** CreateTaskResponse resourceMeta */ + resourceMeta?: (Uint8Array|null); + } + + /** Represents a CreateTaskResponse. */ + class CreateTaskResponse implements ICreateTaskResponse { + + /** + * Constructs a new CreateTaskResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateTaskResponse); + + /** CreateTaskResponse resourceMeta. */ + public resourceMeta: Uint8Array; + + /** + * Creates a new CreateTaskResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTaskResponse instance + */ + public static create(properties?: flyteidl.admin.ICreateTaskResponse): flyteidl.admin.CreateTaskResponse; + + /** + * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. + * @param message CreateTaskResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTaskResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateTaskResponse; + + /** + * Verifies a CreateTaskResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskRequest. */ + interface IGetTaskRequest { + + /** GetTaskRequest taskType */ + taskType?: (string|null); + + /** GetTaskRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + } + + /** Represents a GetTaskRequest. */ + class GetTaskRequest implements IGetTaskRequest { + + /** + * Constructs a new GetTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskRequest); + + /** GetTaskRequest taskType. */ + public taskType: string; + + /** GetTaskRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskRequest instance + */ + public static create(properties?: flyteidl.admin.IGetTaskRequest): flyteidl.admin.GetTaskRequest; + + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. + * @param message GetTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskRequest; + + /** + * Verifies a GetTaskRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskResponse. */ + interface IGetTaskResponse { + + /** GetTaskResponse resource */ + resource?: (flyteidl.admin.IResource|null); + } + + /** Represents a GetTaskResponse. */ + class GetTaskResponse implements IGetTaskResponse { + + /** + * Constructs a new GetTaskResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskResponse); + + /** GetTaskResponse resource. */ + public resource?: (flyteidl.admin.IResource|null); + + /** + * Creates a new GetTaskResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskResponse instance + */ + public static create(properties?: flyteidl.admin.IGetTaskResponse): flyteidl.admin.GetTaskResponse; + + /** + * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. + * @param message GetTaskResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskResponse; + + /** + * Verifies a GetTaskResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Resource. */ + interface IResource { + + /** Resource state */ + state?: (flyteidl.admin.State|null); + + /** Resource outputs */ + outputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a Resource. */ + class Resource implements IResource { + + /** + * Constructs a new Resource. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IResource); + + /** Resource state. */ + public state: flyteidl.admin.State; + + /** Resource outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); + + /** + * Creates a new Resource instance using the specified properties. + * @param [properties] Properties to set + * @returns Resource instance + */ + public static create(properties?: flyteidl.admin.IResource): flyteidl.admin.Resource; + + /** + * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. + * @param message Resource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Resource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Resource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Resource; + + /** + * Verifies a Resource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DeleteTaskRequest. */ + interface IDeleteTaskRequest { + + /** DeleteTaskRequest taskType */ + taskType?: (string|null); + + /** DeleteTaskRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + } + + /** Represents a DeleteTaskRequest. */ + class DeleteTaskRequest implements IDeleteTaskRequest { + + /** + * Constructs a new DeleteTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDeleteTaskRequest); + + /** DeleteTaskRequest taskType. */ + public taskType: string; + + /** DeleteTaskRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** + * Creates a new DeleteTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTaskRequest instance + */ + public static create(properties?: flyteidl.admin.IDeleteTaskRequest): flyteidl.admin.DeleteTaskRequest; + + /** + * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. + * @param message DeleteTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDeleteTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DeleteTaskRequest; + + /** + * Verifies a DeleteTaskRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DeleteTaskResponse. */ + interface IDeleteTaskResponse { + } + + /** Represents a DeleteTaskResponse. */ + class DeleteTaskResponse implements IDeleteTaskResponse { + + /** + * Constructs a new DeleteTaskResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDeleteTaskResponse); + + /** + * Creates a new DeleteTaskResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTaskResponse instance + */ + public static create(properties?: flyteidl.admin.IDeleteTaskResponse): flyteidl.admin.DeleteTaskResponse; + + /** + * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. + * @param message DeleteTaskResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDeleteTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTaskResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DeleteTaskResponse; + + /** + * Verifies a DeleteTaskResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ClusterAssignment. */ + interface IClusterAssignment { + + /** ClusterAssignment clusterPoolName */ + clusterPoolName?: (string|null); + } + + /** Represents a ClusterAssignment. */ + class ClusterAssignment implements IClusterAssignment { + + /** + * Constructs a new ClusterAssignment. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IClusterAssignment); + + /** ClusterAssignment clusterPoolName. */ + public clusterPoolName: string; + + /** + * Creates a new ClusterAssignment instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterAssignment instance + */ + public static create(properties?: flyteidl.admin.IClusterAssignment): flyteidl.admin.ClusterAssignment; + + /** + * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. + * @param message ClusterAssignment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IClusterAssignment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClusterAssignment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterAssignment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ClusterAssignment; + + /** + * Verifies a ClusterAssignment message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityIdentifier. */ + interface INamedEntityIdentifier { + + /** NamedEntityIdentifier project */ + project?: (string|null); + + /** NamedEntityIdentifier domain */ + domain?: (string|null); + + /** NamedEntityIdentifier name */ + name?: (string|null); + } + + /** Represents a NamedEntityIdentifier. */ + class NamedEntityIdentifier implements INamedEntityIdentifier { + + /** + * Constructs a new NamedEntityIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifier); + + /** NamedEntityIdentifier project. */ + public project: string; + + /** NamedEntityIdentifier domain. */ + public domain: string; + + /** NamedEntityIdentifier name. */ + public name: string; + + /** + * Creates a new NamedEntityIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifier instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifier): flyteidl.admin.NamedEntityIdentifier; + + /** + * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. + * @param message NamedEntityIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifier; + + /** + * Verifies a NamedEntityIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** NamedEntityState enum. */ + enum NamedEntityState { + NAMED_ENTITY_ACTIVE = 0, + NAMED_ENTITY_ARCHIVED = 1, + SYSTEM_GENERATED = 2 + } + + /** Properties of a NamedEntityMetadata. */ + interface INamedEntityMetadata { + + /** NamedEntityMetadata description */ + description?: (string|null); + + /** NamedEntityMetadata state */ + state?: (flyteidl.admin.NamedEntityState|null); + } + + /** Represents a NamedEntityMetadata. */ + class NamedEntityMetadata implements INamedEntityMetadata { + + /** + * Constructs a new NamedEntityMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityMetadata); + + /** NamedEntityMetadata description. */ + public description: string; + + /** NamedEntityMetadata state. */ + public state: flyteidl.admin.NamedEntityState; + + /** + * Creates a new NamedEntityMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityMetadata instance + */ + public static create(properties?: flyteidl.admin.INamedEntityMetadata): flyteidl.admin.NamedEntityMetadata; + + /** + * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. + * @param message NamedEntityMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityMetadata; + + /** + * Verifies a NamedEntityMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntity. */ + interface INamedEntity { + + /** NamedEntity resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntity id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntity metadata */ + metadata?: (flyteidl.admin.INamedEntityMetadata|null); + } + + /** Represents a NamedEntity. */ + class NamedEntity implements INamedEntity { + + /** + * Constructs a new NamedEntity. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntity); + + /** NamedEntity resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntity id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntity metadata. */ + public metadata?: (flyteidl.admin.INamedEntityMetadata|null); + + /** + * Creates a new NamedEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntity instance + */ + public static create(properties?: flyteidl.admin.INamedEntity): flyteidl.admin.NamedEntity; + + /** + * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. + * @param message NamedEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntity; + + /** + * Verifies a NamedEntity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Sort. */ + interface ISort { + + /** Sort key */ + key?: (string|null); + + /** Sort direction */ + direction?: (flyteidl.admin.Sort.Direction|null); + } + + /** Represents a Sort. */ + class Sort implements ISort { + + /** + * Constructs a new Sort. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISort); + + /** Sort key. */ + public key: string; + + /** Sort direction. */ + public direction: flyteidl.admin.Sort.Direction; + + /** + * Creates a new Sort instance using the specified properties. + * @param [properties] Properties to set + * @returns Sort instance + */ + public static create(properties?: flyteidl.admin.ISort): flyteidl.admin.Sort; + + /** + * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. + * @param message Sort message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISort, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Sort message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Sort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Sort; + + /** + * Verifies a Sort message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Sort { + + /** Direction enum. */ + enum Direction { + DESCENDING = 0, + ASCENDING = 1 + } + } + + /** Properties of a NamedEntityIdentifierListRequest. */ + interface INamedEntityIdentifierListRequest { + + /** NamedEntityIdentifierListRequest project */ + project?: (string|null); + + /** NamedEntityIdentifierListRequest domain */ + domain?: (string|null); + + /** NamedEntityIdentifierListRequest limit */ + limit?: (number|null); + + /** NamedEntityIdentifierListRequest token */ + token?: (string|null); + + /** NamedEntityIdentifierListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityIdentifierListRequest filters */ + filters?: (string|null); + } + + /** Represents a NamedEntityIdentifierListRequest. */ + class NamedEntityIdentifierListRequest implements INamedEntityIdentifierListRequest { + + /** + * Constructs a new NamedEntityIdentifierListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifierListRequest); + + /** NamedEntityIdentifierListRequest project. */ + public project: string; + + /** NamedEntityIdentifierListRequest domain. */ + public domain: string; + + /** NamedEntityIdentifierListRequest limit. */ + public limit: number; + + /** NamedEntityIdentifierListRequest token. */ + public token: string; + + /** NamedEntityIdentifierListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityIdentifierListRequest filters. */ + public filters: string; + + /** + * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifierListRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifierListRequest): flyteidl.admin.NamedEntityIdentifierListRequest; + + /** + * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. + * @param message NamedEntityIdentifierListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifierListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifierListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierListRequest; + + /** + * Verifies a NamedEntityIdentifierListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityListRequest. */ + interface INamedEntityListRequest { + + /** NamedEntityListRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntityListRequest project */ + project?: (string|null); + + /** NamedEntityListRequest domain */ + domain?: (string|null); + + /** NamedEntityListRequest limit */ + limit?: (number|null); + + /** NamedEntityListRequest token */ + token?: (string|null); + + /** NamedEntityListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityListRequest filters */ + filters?: (string|null); + } + + /** Represents a NamedEntityListRequest. */ + class NamedEntityListRequest implements INamedEntityListRequest { + + /** + * Constructs a new NamedEntityListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityListRequest); + + /** NamedEntityListRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntityListRequest project. */ + public project: string; + + /** NamedEntityListRequest domain. */ + public domain: string; + + /** NamedEntityListRequest limit. */ + public limit: number; + + /** NamedEntityListRequest token. */ + public token: string; + + /** NamedEntityListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityListRequest filters. */ + public filters: string; + + /** + * Creates a new NamedEntityListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityListRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityListRequest): flyteidl.admin.NamedEntityListRequest; + + /** + * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. + * @param message NamedEntityListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityListRequest; + + /** + * Verifies a NamedEntityListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityIdentifierList. */ + interface INamedEntityIdentifierList { + + /** NamedEntityIdentifierList entities */ + entities?: (flyteidl.admin.INamedEntityIdentifier[]|null); + + /** NamedEntityIdentifierList token */ + token?: (string|null); + } + + /** Represents a NamedEntityIdentifierList. */ + class NamedEntityIdentifierList implements INamedEntityIdentifierList { + + /** + * Constructs a new NamedEntityIdentifierList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifierList); + + /** NamedEntityIdentifierList entities. */ + public entities: flyteidl.admin.INamedEntityIdentifier[]; + + /** NamedEntityIdentifierList token. */ + public token: string; + + /** + * Creates a new NamedEntityIdentifierList instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifierList instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifierList): flyteidl.admin.NamedEntityIdentifierList; + + /** + * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. + * @param message NamedEntityIdentifierList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifierList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifierList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierList; + + /** + * Verifies a NamedEntityIdentifierList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityList. */ + interface INamedEntityList { + + /** NamedEntityList entities */ + entities?: (flyteidl.admin.INamedEntity[]|null); + + /** NamedEntityList token */ + token?: (string|null); + } + + /** Represents a NamedEntityList. */ + class NamedEntityList implements INamedEntityList { + + /** + * Constructs a new NamedEntityList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityList); + + /** NamedEntityList entities. */ + public entities: flyteidl.admin.INamedEntity[]; + + /** NamedEntityList token. */ + public token: string; + + /** + * Creates a new NamedEntityList instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityList instance + */ + public static create(properties?: flyteidl.admin.INamedEntityList): flyteidl.admin.NamedEntityList; + + /** + * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. + * @param message NamedEntityList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityList; + + /** + * Verifies a NamedEntityList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityGetRequest. */ + interface INamedEntityGetRequest { + + /** NamedEntityGetRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntityGetRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + } + + /** Represents a NamedEntityGetRequest. */ + class NamedEntityGetRequest implements INamedEntityGetRequest { + + /** + * Constructs a new NamedEntityGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityGetRequest); + + /** NamedEntityGetRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntityGetRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** + * Creates a new NamedEntityGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityGetRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityGetRequest): flyteidl.admin.NamedEntityGetRequest; + + /** + * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. + * @param message NamedEntityGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityGetRequest; + + /** + * Verifies a NamedEntityGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityUpdateRequest. */ + interface INamedEntityUpdateRequest { + + /** NamedEntityUpdateRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntityUpdateRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntityUpdateRequest metadata */ + metadata?: (flyteidl.admin.INamedEntityMetadata|null); + } + + /** Represents a NamedEntityUpdateRequest. */ + class NamedEntityUpdateRequest implements INamedEntityUpdateRequest { + + /** + * Constructs a new NamedEntityUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityUpdateRequest); + + /** NamedEntityUpdateRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntityUpdateRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntityUpdateRequest metadata. */ + public metadata?: (flyteidl.admin.INamedEntityMetadata|null); + + /** + * Creates a new NamedEntityUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityUpdateRequest): flyteidl.admin.NamedEntityUpdateRequest; + + /** + * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. + * @param message NamedEntityUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityUpdateRequest; + + /** + * Verifies a NamedEntityUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityUpdateResponse. */ + interface INamedEntityUpdateResponse { + } + + /** Represents a NamedEntityUpdateResponse. */ + class NamedEntityUpdateResponse implements INamedEntityUpdateResponse { + + /** + * Constructs a new NamedEntityUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityUpdateResponse); + + /** + * Creates a new NamedEntityUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.INamedEntityUpdateResponse): flyteidl.admin.NamedEntityUpdateResponse; + + /** + * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. + * @param message NamedEntityUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityUpdateResponse; + + /** + * Verifies a NamedEntityUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ObjectGetRequest. */ + interface IObjectGetRequest { + + /** ObjectGetRequest id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents an ObjectGetRequest. */ + class ObjectGetRequest implements IObjectGetRequest { + + /** + * Constructs a new ObjectGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IObjectGetRequest); + + /** ObjectGetRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new ObjectGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ObjectGetRequest instance + */ + public static create(properties?: flyteidl.admin.IObjectGetRequest): flyteidl.admin.ObjectGetRequest; + + /** + * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. + * @param message ObjectGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IObjectGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ObjectGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ObjectGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ObjectGetRequest; + + /** + * Verifies an ObjectGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ResourceListRequest. */ + interface IResourceListRequest { + + /** ResourceListRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** ResourceListRequest limit */ + limit?: (number|null); + + /** ResourceListRequest token */ + token?: (string|null); + + /** ResourceListRequest filters */ + filters?: (string|null); + + /** ResourceListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a ResourceListRequest. */ + class ResourceListRequest implements IResourceListRequest { + + /** + * Constructs a new ResourceListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IResourceListRequest); + + /** ResourceListRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** ResourceListRequest limit. */ + public limit: number; + + /** ResourceListRequest token. */ + public token: string; + + /** ResourceListRequest filters. */ + public filters: string; + + /** ResourceListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new ResourceListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceListRequest instance + */ + public static create(properties?: flyteidl.admin.IResourceListRequest): flyteidl.admin.ResourceListRequest; + + /** + * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. + * @param message ResourceListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IResourceListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ResourceListRequest; + + /** + * Verifies a ResourceListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EmailNotification. */ + interface IEmailNotification { + + /** EmailNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents an EmailNotification. */ + class EmailNotification implements IEmailNotification { + + /** + * Constructs a new EmailNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEmailNotification); + + /** EmailNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new EmailNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailNotification instance + */ + public static create(properties?: flyteidl.admin.IEmailNotification): flyteidl.admin.EmailNotification; + + /** + * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. + * @param message EmailNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEmailNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailNotification; + + /** + * Verifies an EmailNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PagerDutyNotification. */ + interface IPagerDutyNotification { + + /** PagerDutyNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents a PagerDutyNotification. */ + class PagerDutyNotification implements IPagerDutyNotification { + + /** + * Constructs a new PagerDutyNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IPagerDutyNotification); + + /** PagerDutyNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new PagerDutyNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns PagerDutyNotification instance + */ + public static create(properties?: flyteidl.admin.IPagerDutyNotification): flyteidl.admin.PagerDutyNotification; + + /** + * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. + * @param message PagerDutyNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IPagerDutyNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PagerDutyNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PagerDutyNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PagerDutyNotification; + + /** + * Verifies a PagerDutyNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SlackNotification. */ + interface ISlackNotification { + + /** SlackNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents a SlackNotification. */ + class SlackNotification implements ISlackNotification { + + /** + * Constructs a new SlackNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISlackNotification); + + /** SlackNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new SlackNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns SlackNotification instance + */ + public static create(properties?: flyteidl.admin.ISlackNotification): flyteidl.admin.SlackNotification; + + /** + * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. + * @param message SlackNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISlackNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SlackNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SlackNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SlackNotification; + + /** + * Verifies a SlackNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Notification. */ + interface INotification { + + /** Notification phases */ + phases?: (flyteidl.core.WorkflowExecution.Phase[]|null); + + /** Notification email */ + email?: (flyteidl.admin.IEmailNotification|null); + + /** Notification pagerDuty */ + pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); + + /** Notification slack */ + slack?: (flyteidl.admin.ISlackNotification|null); + } + + /** Represents a Notification. */ + class Notification implements INotification { + + /** + * Constructs a new Notification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INotification); + + /** Notification phases. */ + public phases: flyteidl.core.WorkflowExecution.Phase[]; + + /** Notification email. */ + public email?: (flyteidl.admin.IEmailNotification|null); + + /** Notification pagerDuty. */ + public pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); + + /** Notification slack. */ + public slack?: (flyteidl.admin.ISlackNotification|null); + + /** Notification type. */ + public type?: ("email"|"pagerDuty"|"slack"); + + /** + * Creates a new Notification instance using the specified properties. + * @param [properties] Properties to set + * @returns Notification instance + */ + public static create(properties?: flyteidl.admin.INotification): flyteidl.admin.Notification; + + /** + * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. + * @param message Notification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Notification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Notification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Notification; + + /** + * Verifies a Notification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UrlBlob. */ + interface IUrlBlob { + + /** UrlBlob url */ + url?: (string|null); + + /** UrlBlob bytes */ + bytes?: (Long|null); + } + + /** Represents an UrlBlob. */ + class UrlBlob implements IUrlBlob { + + /** + * Constructs a new UrlBlob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IUrlBlob); + + /** UrlBlob url. */ + public url: string; + + /** UrlBlob bytes. */ + public bytes: Long; + + /** + * Creates a new UrlBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns UrlBlob instance + */ + public static create(properties?: flyteidl.admin.IUrlBlob): flyteidl.admin.UrlBlob; + + /** + * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. + * @param message UrlBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IUrlBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UrlBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UrlBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.UrlBlob; + + /** + * Verifies an UrlBlob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Labels. */ + interface ILabels { + + /** Labels values */ + values?: ({ [k: string]: string }|null); + } + + /** Represents a Labels. */ + class Labels implements ILabels { + + /** + * Constructs a new Labels. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILabels); + + /** Labels values. */ + public values: { [k: string]: string }; + + /** + * Creates a new Labels instance using the specified properties. + * @param [properties] Properties to set + * @returns Labels instance + */ + public static create(properties?: flyteidl.admin.ILabels): flyteidl.admin.Labels; + + /** + * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. + * @param message Labels message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILabels, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Labels message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Labels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Labels; + + /** + * Verifies a Labels message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Annotations. */ + interface IAnnotations { + + /** Annotations values */ + values?: ({ [k: string]: string }|null); + } + + /** Represents an Annotations. */ + class Annotations implements IAnnotations { + + /** + * Constructs a new Annotations. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAnnotations); + + /** Annotations values. */ + public values: { [k: string]: string }; + + /** + * Creates a new Annotations instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotations instance + */ + public static create(properties?: flyteidl.admin.IAnnotations): flyteidl.admin.Annotations; + + /** + * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. + * @param message Annotations message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAnnotations, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotations message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Annotations; + + /** + * Verifies an Annotations message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Envs. */ + interface IEnvs { + + /** Envs values */ + values?: (flyteidl.core.IKeyValuePair[]|null); + } + + /** Represents an Envs. */ + class Envs implements IEnvs { + + /** + * Constructs a new Envs. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEnvs); + + /** Envs values. */ + public values: flyteidl.core.IKeyValuePair[]; + + /** + * Creates a new Envs instance using the specified properties. + * @param [properties] Properties to set + * @returns Envs instance + */ + public static create(properties?: flyteidl.admin.IEnvs): flyteidl.admin.Envs; + + /** + * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. + * @param message Envs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEnvs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Envs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Envs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Envs; + + /** + * Verifies an Envs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an AuthRole. */ + interface IAuthRole { + + /** AuthRole assumableIamRole */ + assumableIamRole?: (string|null); + + /** AuthRole kubernetesServiceAccount */ + kubernetesServiceAccount?: (string|null); + } + + /** Represents an AuthRole. */ + class AuthRole implements IAuthRole { + + /** + * Constructs a new AuthRole. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAuthRole); + + /** AuthRole assumableIamRole. */ + public assumableIamRole: string; + + /** AuthRole kubernetesServiceAccount. */ + public kubernetesServiceAccount: string; + + /** + * Creates a new AuthRole instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthRole instance + */ + public static create(properties?: flyteidl.admin.IAuthRole): flyteidl.admin.AuthRole; + + /** + * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. + * @param message AuthRole message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAuthRole, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuthRole message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuthRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.AuthRole; + + /** + * Verifies an AuthRole message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a RawOutputDataConfig. */ + interface IRawOutputDataConfig { + + /** RawOutputDataConfig outputLocationPrefix */ + outputLocationPrefix?: (string|null); + } + + /** Represents a RawOutputDataConfig. */ + class RawOutputDataConfig implements IRawOutputDataConfig { + + /** + * Constructs a new RawOutputDataConfig. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IRawOutputDataConfig); + + /** RawOutputDataConfig outputLocationPrefix. */ + public outputLocationPrefix: string; + + /** + * Creates a new RawOutputDataConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RawOutputDataConfig instance + */ + public static create(properties?: flyteidl.admin.IRawOutputDataConfig): flyteidl.admin.RawOutputDataConfig; + + /** + * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. + * @param message RawOutputDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IRawOutputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RawOutputDataConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RawOutputDataConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.RawOutputDataConfig; + + /** + * Verifies a RawOutputDataConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FlyteURLs. */ + interface IFlyteURLs { + + /** FlyteURLs inputs */ + inputs?: (string|null); + + /** FlyteURLs outputs */ + outputs?: (string|null); + + /** FlyteURLs deck */ + deck?: (string|null); + } + + /** Represents a FlyteURLs. */ + class FlyteURLs implements IFlyteURLs { + + /** + * Constructs a new FlyteURLs. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IFlyteURLs); + + /** FlyteURLs inputs. */ + public inputs: string; + + /** FlyteURLs outputs. */ + public outputs: string; + + /** FlyteURLs deck. */ + public deck: string; + + /** + * Creates a new FlyteURLs instance using the specified properties. + * @param [properties] Properties to set + * @returns FlyteURLs instance + */ + public static create(properties?: flyteidl.admin.IFlyteURLs): flyteidl.admin.FlyteURLs; + + /** + * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. + * @param message FlyteURLs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IFlyteURLs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FlyteURLs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FlyteURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.FlyteURLs; + + /** + * Verifies a FlyteURLs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptionEntity. */ + interface IDescriptionEntity { + + /** DescriptionEntity id */ + id?: (flyteidl.core.IIdentifier|null); + + /** DescriptionEntity shortDescription */ + shortDescription?: (string|null); + + /** DescriptionEntity longDescription */ + longDescription?: (flyteidl.admin.IDescription|null); + + /** DescriptionEntity sourceCode */ + sourceCode?: (flyteidl.admin.ISourceCode|null); + + /** DescriptionEntity tags */ + tags?: (string[]|null); + } + + /** Represents a DescriptionEntity. */ + class DescriptionEntity implements IDescriptionEntity { + + /** + * Constructs a new DescriptionEntity. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescriptionEntity); + + /** DescriptionEntity id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** DescriptionEntity shortDescription. */ + public shortDescription: string; + + /** DescriptionEntity longDescription. */ + public longDescription?: (flyteidl.admin.IDescription|null); + + /** DescriptionEntity sourceCode. */ + public sourceCode?: (flyteidl.admin.ISourceCode|null); + + /** DescriptionEntity tags. */ + public tags: string[]; + + /** + * Creates a new DescriptionEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptionEntity instance + */ + public static create(properties?: flyteidl.admin.IDescriptionEntity): flyteidl.admin.DescriptionEntity; + + /** + * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. + * @param message DescriptionEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescriptionEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptionEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptionEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntity; + + /** + * Verifies a DescriptionEntity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** DescriptionFormat enum. */ + enum DescriptionFormat { + DESCRIPTION_FORMAT_UNKNOWN = 0, + DESCRIPTION_FORMAT_MARKDOWN = 1, + DESCRIPTION_FORMAT_HTML = 2, + DESCRIPTION_FORMAT_RST = 3 + } + + /** Properties of a Description. */ + interface IDescription { + + /** Description value */ + value?: (string|null); + + /** Description uri */ + uri?: (string|null); + + /** Description format */ + format?: (flyteidl.admin.DescriptionFormat|null); + + /** Description iconLink */ + iconLink?: (string|null); + } + + /** Represents a Description. */ + class Description implements IDescription { + + /** + * Constructs a new Description. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescription); + + /** Description value. */ + public value: string; + + /** Description uri. */ + public uri: string; + + /** Description format. */ + public format: flyteidl.admin.DescriptionFormat; + + /** Description iconLink. */ + public iconLink: string; + + /** Description content. */ + public content?: ("value"|"uri"); + + /** + * Creates a new Description instance using the specified properties. + * @param [properties] Properties to set + * @returns Description instance + */ + public static create(properties?: flyteidl.admin.IDescription): flyteidl.admin.Description; + + /** + * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. + * @param message Description message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescription, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Description message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Description + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Description; + + /** + * Verifies a Description message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SourceCode. */ + interface ISourceCode { + + /** SourceCode link */ + link?: (string|null); + } + + /** Represents a SourceCode. */ + class SourceCode implements ISourceCode { + + /** + * Constructs a new SourceCode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISourceCode); + + /** SourceCode link. */ + public link: string; + + /** + * Creates a new SourceCode instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCode instance + */ + public static create(properties?: flyteidl.admin.ISourceCode): flyteidl.admin.SourceCode; + + /** + * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. + * @param message SourceCode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISourceCode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SourceCode; + + /** + * Verifies a SourceCode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptionEntityList. */ + interface IDescriptionEntityList { + + /** DescriptionEntityList descriptionEntities */ + descriptionEntities?: (flyteidl.admin.IDescriptionEntity[]|null); + + /** DescriptionEntityList token */ + token?: (string|null); + } + + /** Represents a DescriptionEntityList. */ + class DescriptionEntityList implements IDescriptionEntityList { + + /** + * Constructs a new DescriptionEntityList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescriptionEntityList); + + /** DescriptionEntityList descriptionEntities. */ + public descriptionEntities: flyteidl.admin.IDescriptionEntity[]; + + /** DescriptionEntityList token. */ + public token: string; + + /** + * Creates a new DescriptionEntityList instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptionEntityList instance + */ + public static create(properties?: flyteidl.admin.IDescriptionEntityList): flyteidl.admin.DescriptionEntityList; + + /** + * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. + * @param message DescriptionEntityList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescriptionEntityList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptionEntityList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptionEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntityList; + + /** + * Verifies a DescriptionEntityList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptionEntityListRequest. */ + interface IDescriptionEntityListRequest { + + /** DescriptionEntityListRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** DescriptionEntityListRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** DescriptionEntityListRequest limit */ + limit?: (number|null); + + /** DescriptionEntityListRequest token */ + token?: (string|null); + + /** DescriptionEntityListRequest filters */ + filters?: (string|null); + + /** DescriptionEntityListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a DescriptionEntityListRequest. */ + class DescriptionEntityListRequest implements IDescriptionEntityListRequest { + + /** + * Constructs a new DescriptionEntityListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescriptionEntityListRequest); + + /** DescriptionEntityListRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** DescriptionEntityListRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** DescriptionEntityListRequest limit. */ + public limit: number; + + /** DescriptionEntityListRequest token. */ + public token: string; + + /** DescriptionEntityListRequest filters. */ + public filters: string; + + /** DescriptionEntityListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new DescriptionEntityListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptionEntityListRequest instance + */ + public static create(properties?: flyteidl.admin.IDescriptionEntityListRequest): flyteidl.admin.DescriptionEntityListRequest; + + /** + * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. + * @param message DescriptionEntityListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescriptionEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptionEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntityListRequest; + + /** + * Verifies a DescriptionEntityListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventErrorAlreadyInTerminalState. */ + interface IEventErrorAlreadyInTerminalState { + + /** EventErrorAlreadyInTerminalState currentPhase */ + currentPhase?: (string|null); + } + + /** Represents an EventErrorAlreadyInTerminalState. */ + class EventErrorAlreadyInTerminalState implements IEventErrorAlreadyInTerminalState { + + /** + * Constructs a new EventErrorAlreadyInTerminalState. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState); + + /** EventErrorAlreadyInTerminalState currentPhase. */ + public currentPhase: string; + + /** + * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. + * @param [properties] Properties to set + * @returns EventErrorAlreadyInTerminalState instance + */ + public static create(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState): flyteidl.admin.EventErrorAlreadyInTerminalState; + + /** + * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. + * @param message EventErrorAlreadyInTerminalState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventErrorAlreadyInTerminalState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventErrorAlreadyInTerminalState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorAlreadyInTerminalState; + + /** + * Verifies an EventErrorAlreadyInTerminalState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventErrorIncompatibleCluster. */ + interface IEventErrorIncompatibleCluster { + + /** EventErrorIncompatibleCluster cluster */ + cluster?: (string|null); + } + + /** Represents an EventErrorIncompatibleCluster. */ + class EventErrorIncompatibleCluster implements IEventErrorIncompatibleCluster { + + /** + * Constructs a new EventErrorIncompatibleCluster. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventErrorIncompatibleCluster); + + /** EventErrorIncompatibleCluster cluster. */ + public cluster: string; + + /** + * Creates a new EventErrorIncompatibleCluster instance using the specified properties. + * @param [properties] Properties to set + * @returns EventErrorIncompatibleCluster instance + */ + public static create(properties?: flyteidl.admin.IEventErrorIncompatibleCluster): flyteidl.admin.EventErrorIncompatibleCluster; + + /** + * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. + * @param message EventErrorIncompatibleCluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventErrorIncompatibleCluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventErrorIncompatibleCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorIncompatibleCluster; + + /** + * Verifies an EventErrorIncompatibleCluster message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventFailureReason. */ + interface IEventFailureReason { + + /** EventFailureReason alreadyInTerminalState */ + alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); + + /** EventFailureReason incompatibleCluster */ + incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); + } + + /** Represents an EventFailureReason. */ + class EventFailureReason implements IEventFailureReason { + + /** + * Constructs a new EventFailureReason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventFailureReason); + + /** EventFailureReason alreadyInTerminalState. */ + public alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); + + /** EventFailureReason incompatibleCluster. */ + public incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); + + /** EventFailureReason reason. */ + public reason?: ("alreadyInTerminalState"|"incompatibleCluster"); + + /** + * Creates a new EventFailureReason instance using the specified properties. + * @param [properties] Properties to set + * @returns EventFailureReason instance + */ + public static create(properties?: flyteidl.admin.IEventFailureReason): flyteidl.admin.EventFailureReason; + + /** + * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. + * @param message EventFailureReason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventFailureReason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventFailureReason; + + /** + * Verifies an EventFailureReason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionEventRequest. */ + interface IWorkflowExecutionEventRequest { + + /** WorkflowExecutionEventRequest requestId */ + requestId?: (string|null); + + /** WorkflowExecutionEventRequest event */ + event?: (flyteidl.event.IWorkflowExecutionEvent|null); + } + + /** Represents a WorkflowExecutionEventRequest. */ + class WorkflowExecutionEventRequest implements IWorkflowExecutionEventRequest { + + /** + * Constructs a new WorkflowExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionEventRequest); + + /** WorkflowExecutionEventRequest requestId. */ + public requestId: string; + + /** WorkflowExecutionEventRequest event. */ + public event?: (flyteidl.event.IWorkflowExecutionEvent|null); + + /** + * Creates a new WorkflowExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionEventRequest): flyteidl.admin.WorkflowExecutionEventRequest; + + /** + * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. + * @param message WorkflowExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventRequest; + + /** + * Verifies a WorkflowExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionEventResponse. */ + interface IWorkflowExecutionEventResponse { + } + + /** Represents a WorkflowExecutionEventResponse. */ + class WorkflowExecutionEventResponse implements IWorkflowExecutionEventResponse { + + /** + * Constructs a new WorkflowExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionEventResponse); + + /** + * Creates a new WorkflowExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionEventResponse): flyteidl.admin.WorkflowExecutionEventResponse; + + /** + * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. + * @param message WorkflowExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventResponse; + + /** + * Verifies a WorkflowExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEventRequest. */ + interface INodeExecutionEventRequest { + + /** NodeExecutionEventRequest requestId */ + requestId?: (string|null); + + /** NodeExecutionEventRequest event */ + event?: (flyteidl.event.INodeExecutionEvent|null); + } + + /** Represents a NodeExecutionEventRequest. */ + class NodeExecutionEventRequest implements INodeExecutionEventRequest { + + /** + * Constructs a new NodeExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionEventRequest); + + /** NodeExecutionEventRequest requestId. */ + public requestId: string; + + /** NodeExecutionEventRequest event. */ + public event?: (flyteidl.event.INodeExecutionEvent|null); + + /** + * Creates a new NodeExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionEventRequest): flyteidl.admin.NodeExecutionEventRequest; + + /** + * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. + * @param message NodeExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventRequest; + + /** + * Verifies a NodeExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEventResponse. */ + interface INodeExecutionEventResponse { + } + + /** Represents a NodeExecutionEventResponse. */ + class NodeExecutionEventResponse implements INodeExecutionEventResponse { + + /** + * Constructs a new NodeExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionEventResponse); + + /** + * Creates a new NodeExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionEventResponse): flyteidl.admin.NodeExecutionEventResponse; + + /** + * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. + * @param message NodeExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventResponse; + + /** + * Verifies a NodeExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEventRequest. */ + interface ITaskExecutionEventRequest { + + /** TaskExecutionEventRequest requestId */ + requestId?: (string|null); + + /** TaskExecutionEventRequest event */ + event?: (flyteidl.event.ITaskExecutionEvent|null); + } + + /** Represents a TaskExecutionEventRequest. */ + class TaskExecutionEventRequest implements ITaskExecutionEventRequest { + + /** + * Constructs a new TaskExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionEventRequest); + + /** TaskExecutionEventRequest requestId. */ + public requestId: string; + + /** TaskExecutionEventRequest event. */ + public event?: (flyteidl.event.ITaskExecutionEvent|null); + + /** + * Creates a new TaskExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionEventRequest): flyteidl.admin.TaskExecutionEventRequest; + + /** + * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. + * @param message TaskExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventRequest; + + /** + * Verifies a TaskExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEventResponse. */ + interface ITaskExecutionEventResponse { + } + + /** Represents a TaskExecutionEventResponse. */ + class TaskExecutionEventResponse implements ITaskExecutionEventResponse { + + /** + * Constructs a new TaskExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionEventResponse); + + /** + * Creates a new TaskExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionEventResponse): flyteidl.admin.TaskExecutionEventResponse; + + /** + * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. + * @param message TaskExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventResponse; + + /** + * Verifies a TaskExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionCreateRequest. */ + interface IExecutionCreateRequest { + + /** ExecutionCreateRequest project */ + project?: (string|null); + + /** ExecutionCreateRequest domain */ + domain?: (string|null); + + /** ExecutionCreateRequest name */ + name?: (string|null); + + /** ExecutionCreateRequest spec */ + spec?: (flyteidl.admin.IExecutionSpec|null); + + /** ExecutionCreateRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents an ExecutionCreateRequest. */ + class ExecutionCreateRequest implements IExecutionCreateRequest { + + /** + * Constructs a new ExecutionCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionCreateRequest); + + /** ExecutionCreateRequest project. */ + public project: string; + + /** ExecutionCreateRequest domain. */ + public domain: string; + + /** ExecutionCreateRequest name. */ + public name: string; + + /** ExecutionCreateRequest spec. */ + public spec?: (flyteidl.admin.IExecutionSpec|null); + + /** ExecutionCreateRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** + * Creates a new ExecutionCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionCreateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionCreateRequest): flyteidl.admin.ExecutionCreateRequest; + + /** + * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. + * @param message ExecutionCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateRequest; + + /** + * Verifies an ExecutionCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionRelaunchRequest. */ + interface IExecutionRelaunchRequest { + + /** ExecutionRelaunchRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRelaunchRequest name */ + name?: (string|null); + + /** ExecutionRelaunchRequest overwriteCache */ + overwriteCache?: (boolean|null); + } + + /** Represents an ExecutionRelaunchRequest. */ + class ExecutionRelaunchRequest implements IExecutionRelaunchRequest { + + /** + * Constructs a new ExecutionRelaunchRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionRelaunchRequest); + + /** ExecutionRelaunchRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRelaunchRequest name. */ + public name: string; + + /** ExecutionRelaunchRequest overwriteCache. */ + public overwriteCache: boolean; + + /** + * Creates a new ExecutionRelaunchRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionRelaunchRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionRelaunchRequest): flyteidl.admin.ExecutionRelaunchRequest; + + /** + * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. + * @param message ExecutionRelaunchRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionRelaunchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionRelaunchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionRelaunchRequest; + + /** + * Verifies an ExecutionRelaunchRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionRecoverRequest. */ + interface IExecutionRecoverRequest { + + /** ExecutionRecoverRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRecoverRequest name */ + name?: (string|null); + + /** ExecutionRecoverRequest metadata */ + metadata?: (flyteidl.admin.IExecutionMetadata|null); + } + + /** Represents an ExecutionRecoverRequest. */ + class ExecutionRecoverRequest implements IExecutionRecoverRequest { + + /** + * Constructs a new ExecutionRecoverRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionRecoverRequest); + + /** ExecutionRecoverRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRecoverRequest name. */ + public name: string; + + /** ExecutionRecoverRequest metadata. */ + public metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** + * Creates a new ExecutionRecoverRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionRecoverRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionRecoverRequest): flyteidl.admin.ExecutionRecoverRequest; + + /** + * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. + * @param message ExecutionRecoverRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionRecoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionRecoverRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionRecoverRequest; + + /** + * Verifies an ExecutionRecoverRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionCreateResponse. */ + interface IExecutionCreateResponse { + + /** ExecutionCreateResponse id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents an ExecutionCreateResponse. */ + class ExecutionCreateResponse implements IExecutionCreateResponse { + + /** + * Constructs a new ExecutionCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionCreateResponse); + + /** ExecutionCreateResponse id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new ExecutionCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionCreateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionCreateResponse): flyteidl.admin.ExecutionCreateResponse; + + /** + * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. + * @param message ExecutionCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateResponse; + + /** + * Verifies an ExecutionCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetRequest. */ + interface IWorkflowExecutionGetRequest { + + /** WorkflowExecutionGetRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowExecutionGetRequest. */ + class WorkflowExecutionGetRequest implements IWorkflowExecutionGetRequest { + + /** + * Constructs a new WorkflowExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetRequest); + + /** WorkflowExecutionGetRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetRequest): flyteidl.admin.WorkflowExecutionGetRequest; + + /** + * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. + * @param message WorkflowExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetRequest; + + /** + * Verifies a WorkflowExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Execution. */ + interface IExecution { + + /** Execution id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Execution spec */ + spec?: (flyteidl.admin.IExecutionSpec|null); + + /** Execution closure */ + closure?: (flyteidl.admin.IExecutionClosure|null); + } + + /** Represents an Execution. */ + class Execution implements IExecution { + + /** + * Constructs a new Execution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecution); + + /** Execution id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Execution spec. */ + public spec?: (flyteidl.admin.IExecutionSpec|null); + + /** Execution closure. */ + public closure?: (flyteidl.admin.IExecutionClosure|null); + + /** + * Creates a new Execution instance using the specified properties. + * @param [properties] Properties to set + * @returns Execution instance + */ + public static create(properties?: flyteidl.admin.IExecution): flyteidl.admin.Execution; + + /** + * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Execution; + + /** + * Verifies an Execution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionList. */ + interface IExecutionList { + + /** ExecutionList executions */ + executions?: (flyteidl.admin.IExecution[]|null); + + /** ExecutionList token */ + token?: (string|null); + } + + /** Represents an ExecutionList. */ + class ExecutionList implements IExecutionList { + + /** + * Constructs a new ExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionList); + + /** ExecutionList executions. */ + public executions: flyteidl.admin.IExecution[]; + + /** ExecutionList token. */ + public token: string; + + /** + * Creates a new ExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionList instance + */ + public static create(properties?: flyteidl.admin.IExecutionList): flyteidl.admin.ExecutionList; + + /** + * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. + * @param message ExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionList; + + /** + * Verifies an ExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralMapBlob. */ + interface ILiteralMapBlob { + + /** LiteralMapBlob values */ + values?: (flyteidl.core.ILiteralMap|null); + + /** LiteralMapBlob uri */ + uri?: (string|null); + } + + /** Represents a LiteralMapBlob. */ + class LiteralMapBlob implements ILiteralMapBlob { + + /** + * Constructs a new LiteralMapBlob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILiteralMapBlob); + + /** LiteralMapBlob values. */ + public values?: (flyteidl.core.ILiteralMap|null); + + /** LiteralMapBlob uri. */ + public uri: string; + + /** LiteralMapBlob data. */ + public data?: ("values"|"uri"); + + /** + * Creates a new LiteralMapBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralMapBlob instance + */ + public static create(properties?: flyteidl.admin.ILiteralMapBlob): flyteidl.admin.LiteralMapBlob; + + /** + * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. + * @param message LiteralMapBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILiteralMapBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralMapBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralMapBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LiteralMapBlob; + + /** + * Verifies a LiteralMapBlob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an AbortMetadata. */ + interface IAbortMetadata { + + /** AbortMetadata cause */ + cause?: (string|null); + + /** AbortMetadata principal */ + principal?: (string|null); + } + + /** Represents an AbortMetadata. */ + class AbortMetadata implements IAbortMetadata { + + /** + * Constructs a new AbortMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAbortMetadata); + + /** AbortMetadata cause. */ + public cause: string; + + /** AbortMetadata principal. */ + public principal: string; + + /** + * Creates a new AbortMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AbortMetadata instance + */ + public static create(properties?: flyteidl.admin.IAbortMetadata): flyteidl.admin.AbortMetadata; + + /** + * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. + * @param message AbortMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAbortMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AbortMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AbortMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.AbortMetadata; + + /** + * Verifies an AbortMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionClosure. */ + interface IExecutionClosure { + + /** ExecutionClosure outputs */ + outputs?: (flyteidl.admin.ILiteralMapBlob|null); + + /** ExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** ExecutionClosure abortCause */ + abortCause?: (string|null); + + /** ExecutionClosure abortMetadata */ + abortMetadata?: (flyteidl.admin.IAbortMetadata|null); + + /** ExecutionClosure outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure computedInputs */ + computedInputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure phase */ + phase?: (flyteidl.core.WorkflowExecution.Phase|null); + + /** ExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** ExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + + /** ExecutionClosure workflowId */ + workflowId?: (flyteidl.core.IIdentifier|null); + + /** ExecutionClosure stateChangeDetails */ + stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); + } + + /** Represents an ExecutionClosure. */ + class ExecutionClosure implements IExecutionClosure { + + /** + * Constructs a new ExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionClosure); + + /** ExecutionClosure outputs. */ + public outputs?: (flyteidl.admin.ILiteralMapBlob|null); + + /** ExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** ExecutionClosure abortCause. */ + public abortCause: string; + + /** ExecutionClosure abortMetadata. */ + public abortMetadata?: (flyteidl.admin.IAbortMetadata|null); + + /** ExecutionClosure outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure computedInputs. */ + public computedInputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure phase. */ + public phase: flyteidl.core.WorkflowExecution.Phase; + + /** ExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** ExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** ExecutionClosure workflowId. */ + public workflowId?: (flyteidl.core.IIdentifier|null); + + /** ExecutionClosure stateChangeDetails. */ + public stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); + + /** ExecutionClosure outputResult. */ + public outputResult?: ("outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"); + + /** + * Creates a new ExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.IExecutionClosure): flyteidl.admin.ExecutionClosure; + + /** + * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. + * @param message ExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionClosure; + + /** + * Verifies an ExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SystemMetadata. */ + interface ISystemMetadata { + + /** SystemMetadata executionCluster */ + executionCluster?: (string|null); + + /** SystemMetadata namespace */ + namespace?: (string|null); + } + + /** Represents a SystemMetadata. */ + class SystemMetadata implements ISystemMetadata { + + /** + * Constructs a new SystemMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISystemMetadata); + + /** SystemMetadata executionCluster. */ + public executionCluster: string; + + /** SystemMetadata namespace. */ + public namespace: string; + + /** + * Creates a new SystemMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns SystemMetadata instance + */ + public static create(properties?: flyteidl.admin.ISystemMetadata): flyteidl.admin.SystemMetadata; + + /** + * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. + * @param message SystemMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISystemMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SystemMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SystemMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SystemMetadata; + + /** + * Verifies a SystemMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionMetadata. */ + interface IExecutionMetadata { + + /** ExecutionMetadata mode */ + mode?: (flyteidl.admin.ExecutionMetadata.ExecutionMode|null); + + /** ExecutionMetadata principal */ + principal?: (string|null); + + /** ExecutionMetadata nesting */ + nesting?: (number|null); + + /** ExecutionMetadata scheduledAt */ + scheduledAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionMetadata parentNodeExecution */ + parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** ExecutionMetadata referenceExecution */ + referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionMetadata systemMetadata */ + systemMetadata?: (flyteidl.admin.ISystemMetadata|null); + } + + /** Represents an ExecutionMetadata. */ + class ExecutionMetadata implements IExecutionMetadata { + + /** + * Constructs a new ExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionMetadata); + + /** ExecutionMetadata mode. */ + public mode: flyteidl.admin.ExecutionMetadata.ExecutionMode; + + /** ExecutionMetadata principal. */ + public principal: string; + + /** ExecutionMetadata nesting. */ + public nesting: number; + + /** ExecutionMetadata scheduledAt. */ + public scheduledAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionMetadata parentNodeExecution. */ + public parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** ExecutionMetadata referenceExecution. */ + public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionMetadata systemMetadata. */ + public systemMetadata?: (flyteidl.admin.ISystemMetadata|null); + + /** + * Creates a new ExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionMetadata instance + */ + public static create(properties?: flyteidl.admin.IExecutionMetadata): flyteidl.admin.ExecutionMetadata; + + /** + * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. + * @param message ExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionMetadata; + + /** + * Verifies an ExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ExecutionMetadata { + + /** ExecutionMode enum. */ + enum ExecutionMode { + MANUAL = 0, + SCHEDULED = 1, + SYSTEM = 2, + RELAUNCH = 3, + CHILD_WORKFLOW = 4, + RECOVERED = 5 + } + } + + /** Properties of a NotificationList. */ + interface INotificationList { + + /** NotificationList notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + } + + /** Represents a NotificationList. */ + class NotificationList implements INotificationList { + + /** + * Constructs a new NotificationList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INotificationList); + + /** NotificationList notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** + * Creates a new NotificationList instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationList instance + */ + public static create(properties?: flyteidl.admin.INotificationList): flyteidl.admin.NotificationList; + + /** + * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. + * @param message NotificationList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INotificationList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NotificationList; + + /** + * Verifies a NotificationList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionSpec. */ + interface IExecutionSpec { + + /** ExecutionSpec launchPlan */ + launchPlan?: (flyteidl.core.IIdentifier|null); + + /** ExecutionSpec inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionSpec metadata */ + metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** ExecutionSpec notifications */ + notifications?: (flyteidl.admin.INotificationList|null); + + /** ExecutionSpec disableAll */ + disableAll?: (boolean|null); + + /** ExecutionSpec labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** ExecutionSpec annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + + /** ExecutionSpec securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** ExecutionSpec authRole */ + authRole?: (flyteidl.admin.IAuthRole|null); + + /** ExecutionSpec qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** ExecutionSpec maxParallelism */ + maxParallelism?: (number|null); + + /** ExecutionSpec rawOutputDataConfig */ + rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** ExecutionSpec clusterAssignment */ + clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + + /** ExecutionSpec interruptible */ + interruptible?: (google.protobuf.IBoolValue|null); + + /** ExecutionSpec overwriteCache */ + overwriteCache?: (boolean|null); + + /** ExecutionSpec envs */ + envs?: (flyteidl.admin.IEnvs|null); + + /** ExecutionSpec tags */ + tags?: (string[]|null); + } + + /** Represents an ExecutionSpec. */ + class ExecutionSpec implements IExecutionSpec { + + /** + * Constructs a new ExecutionSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionSpec); + + /** ExecutionSpec launchPlan. */ + public launchPlan?: (flyteidl.core.IIdentifier|null); + + /** ExecutionSpec inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionSpec metadata. */ + public metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** ExecutionSpec notifications. */ + public notifications?: (flyteidl.admin.INotificationList|null); + + /** ExecutionSpec disableAll. */ + public disableAll: boolean; + + /** ExecutionSpec labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** ExecutionSpec annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** ExecutionSpec securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** ExecutionSpec authRole. */ + public authRole?: (flyteidl.admin.IAuthRole|null); + + /** ExecutionSpec qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** ExecutionSpec maxParallelism. */ + public maxParallelism: number; + + /** ExecutionSpec rawOutputDataConfig. */ + public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** ExecutionSpec clusterAssignment. */ + public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + + /** ExecutionSpec interruptible. */ + public interruptible?: (google.protobuf.IBoolValue|null); + + /** ExecutionSpec overwriteCache. */ + public overwriteCache: boolean; + + /** ExecutionSpec envs. */ + public envs?: (flyteidl.admin.IEnvs|null); + + /** ExecutionSpec tags. */ + public tags: string[]; + + /** ExecutionSpec notificationOverrides. */ + public notificationOverrides?: ("notifications"|"disableAll"); + + /** + * Creates a new ExecutionSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionSpec instance + */ + public static create(properties?: flyteidl.admin.IExecutionSpec): flyteidl.admin.ExecutionSpec; + + /** + * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. + * @param message ExecutionSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionSpec; + + /** + * Verifies an ExecutionSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionTerminateRequest. */ + interface IExecutionTerminateRequest { + + /** ExecutionTerminateRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionTerminateRequest cause */ + cause?: (string|null); + } + + /** Represents an ExecutionTerminateRequest. */ + class ExecutionTerminateRequest implements IExecutionTerminateRequest { + + /** + * Constructs a new ExecutionTerminateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionTerminateRequest); + + /** ExecutionTerminateRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionTerminateRequest cause. */ + public cause: string; + + /** + * Creates a new ExecutionTerminateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionTerminateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionTerminateRequest): flyteidl.admin.ExecutionTerminateRequest; + + /** + * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. + * @param message ExecutionTerminateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionTerminateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionTerminateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateRequest; + + /** + * Verifies an ExecutionTerminateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionTerminateResponse. */ + interface IExecutionTerminateResponse { + } + + /** Represents an ExecutionTerminateResponse. */ + class ExecutionTerminateResponse implements IExecutionTerminateResponse { + + /** + * Constructs a new ExecutionTerminateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionTerminateResponse); + + /** + * Creates a new ExecutionTerminateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionTerminateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionTerminateResponse): flyteidl.admin.ExecutionTerminateResponse; + + /** + * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. + * @param message ExecutionTerminateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionTerminateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionTerminateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateResponse; + + /** + * Verifies an ExecutionTerminateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetDataRequest. */ + interface IWorkflowExecutionGetDataRequest { + + /** WorkflowExecutionGetDataRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowExecutionGetDataRequest. */ + class WorkflowExecutionGetDataRequest implements IWorkflowExecutionGetDataRequest { + + /** + * Constructs a new WorkflowExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest); + + /** WorkflowExecutionGetDataRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest): flyteidl.admin.WorkflowExecutionGetDataRequest; + + /** + * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. + * @param message WorkflowExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataRequest; + + /** + * Verifies a WorkflowExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetDataResponse. */ + interface IWorkflowExecutionGetDataResponse { + + /** WorkflowExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse fullInputs */ + fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** WorkflowExecutionGetDataResponse fullOutputs */ + fullOutputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a WorkflowExecutionGetDataResponse. */ + class WorkflowExecutionGetDataResponse implements IWorkflowExecutionGetDataResponse { + + /** + * Constructs a new WorkflowExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse); + + /** WorkflowExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse fullInputs. */ + public fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** WorkflowExecutionGetDataResponse fullOutputs. */ + public fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** + * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse): flyteidl.admin.WorkflowExecutionGetDataResponse; + + /** + * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. + * @param message WorkflowExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataResponse; + + /** + * Verifies a WorkflowExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** ExecutionState enum. */ + enum ExecutionState { + EXECUTION_ACTIVE = 0, + EXECUTION_ARCHIVED = 1 + } + + /** Properties of an ExecutionUpdateRequest. */ + interface IExecutionUpdateRequest { + + /** ExecutionUpdateRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionUpdateRequest state */ + state?: (flyteidl.admin.ExecutionState|null); + } + + /** Represents an ExecutionUpdateRequest. */ + class ExecutionUpdateRequest implements IExecutionUpdateRequest { + + /** + * Constructs a new ExecutionUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionUpdateRequest); + + /** ExecutionUpdateRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionUpdateRequest state. */ + public state: flyteidl.admin.ExecutionState; + + /** + * Creates a new ExecutionUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionUpdateRequest): flyteidl.admin.ExecutionUpdateRequest; + + /** + * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. + * @param message ExecutionUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateRequest; + + /** + * Verifies an ExecutionUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionStateChangeDetails. */ + interface IExecutionStateChangeDetails { + + /** ExecutionStateChangeDetails state */ + state?: (flyteidl.admin.ExecutionState|null); + + /** ExecutionStateChangeDetails occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionStateChangeDetails principal */ + principal?: (string|null); + } + + /** Represents an ExecutionStateChangeDetails. */ + class ExecutionStateChangeDetails implements IExecutionStateChangeDetails { + + /** + * Constructs a new ExecutionStateChangeDetails. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionStateChangeDetails); + + /** ExecutionStateChangeDetails state. */ + public state: flyteidl.admin.ExecutionState; + + /** ExecutionStateChangeDetails occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionStateChangeDetails principal. */ + public principal: string; + + /** + * Creates a new ExecutionStateChangeDetails instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionStateChangeDetails instance + */ + public static create(properties?: flyteidl.admin.IExecutionStateChangeDetails): flyteidl.admin.ExecutionStateChangeDetails; + + /** + * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. + * @param message ExecutionStateChangeDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionStateChangeDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionStateChangeDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionStateChangeDetails; + + /** + * Verifies an ExecutionStateChangeDetails message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionUpdateResponse. */ + interface IExecutionUpdateResponse { + } + + /** Represents an ExecutionUpdateResponse. */ + class ExecutionUpdateResponse implements IExecutionUpdateResponse { + + /** + * Constructs a new ExecutionUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionUpdateResponse); + + /** + * Creates a new ExecutionUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionUpdateResponse): flyteidl.admin.ExecutionUpdateResponse; + + /** + * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. + * @param message ExecutionUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateResponse; + + /** + * Verifies an ExecutionUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetMetricsRequest. */ + interface IWorkflowExecutionGetMetricsRequest { + + /** WorkflowExecutionGetMetricsRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionGetMetricsRequest depth */ + depth?: (number|null); + } + + /** Represents a WorkflowExecutionGetMetricsRequest. */ + class WorkflowExecutionGetMetricsRequest implements IWorkflowExecutionGetMetricsRequest { + + /** + * Constructs a new WorkflowExecutionGetMetricsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest); + + /** WorkflowExecutionGetMetricsRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionGetMetricsRequest depth. */ + public depth: number; + + /** + * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetMetricsRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): flyteidl.admin.WorkflowExecutionGetMetricsRequest; + + /** + * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. + * @param message WorkflowExecutionGetMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetMetricsRequest; + + /** + * Verifies a WorkflowExecutionGetMetricsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetMetricsResponse. */ + interface IWorkflowExecutionGetMetricsResponse { + + /** WorkflowExecutionGetMetricsResponse span */ + span?: (flyteidl.core.ISpan|null); + } + + /** Represents a WorkflowExecutionGetMetricsResponse. */ + class WorkflowExecutionGetMetricsResponse implements IWorkflowExecutionGetMetricsResponse { + + /** + * Constructs a new WorkflowExecutionGetMetricsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse); + + /** WorkflowExecutionGetMetricsResponse span. */ + public span?: (flyteidl.core.ISpan|null); + + /** + * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetMetricsResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse): flyteidl.admin.WorkflowExecutionGetMetricsResponse; + + /** + * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. + * @param message WorkflowExecutionGetMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetMetricsResponse; + + /** + * Verifies a WorkflowExecutionGetMetricsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanCreateRequest. */ + interface ILaunchPlanCreateRequest { + + /** LaunchPlanCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanCreateRequest spec */ + spec?: (flyteidl.admin.ILaunchPlanSpec|null); + } + + /** Represents a LaunchPlanCreateRequest. */ + class LaunchPlanCreateRequest implements ILaunchPlanCreateRequest { + + /** + * Constructs a new LaunchPlanCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanCreateRequest); + + /** LaunchPlanCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanCreateRequest spec. */ + public spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** + * Creates a new LaunchPlanCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanCreateRequest): flyteidl.admin.LaunchPlanCreateRequest; + + /** + * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. + * @param message LaunchPlanCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateRequest; + + /** + * Verifies a LaunchPlanCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanCreateResponse. */ + interface ILaunchPlanCreateResponse { + } + + /** Represents a LaunchPlanCreateResponse. */ + class LaunchPlanCreateResponse implements ILaunchPlanCreateResponse { + + /** + * Constructs a new LaunchPlanCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanCreateResponse); + + /** + * Creates a new LaunchPlanCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanCreateResponse instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanCreateResponse): flyteidl.admin.LaunchPlanCreateResponse; + + /** + * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. + * @param message LaunchPlanCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateResponse; + + /** + * Verifies a LaunchPlanCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** LaunchPlanState enum. */ + enum LaunchPlanState { + INACTIVE = 0, + ACTIVE = 1 + } + + /** Properties of a LaunchPlan. */ + interface ILaunchPlan { + + /** LaunchPlan id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlan spec */ + spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** LaunchPlan closure */ + closure?: (flyteidl.admin.ILaunchPlanClosure|null); + } + + /** Represents a LaunchPlan. */ + class LaunchPlan implements ILaunchPlan { + + /** + * Constructs a new LaunchPlan. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlan); + + /** LaunchPlan id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlan spec. */ + public spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** LaunchPlan closure. */ + public closure?: (flyteidl.admin.ILaunchPlanClosure|null); + + /** + * Creates a new LaunchPlan instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlan instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlan): flyteidl.admin.LaunchPlan; + + /** + * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. + * @param message LaunchPlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlan; + + /** + * Verifies a LaunchPlan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanList. */ + interface ILaunchPlanList { + + /** LaunchPlanList launchPlans */ + launchPlans?: (flyteidl.admin.ILaunchPlan[]|null); + + /** LaunchPlanList token */ + token?: (string|null); + } + + /** Represents a LaunchPlanList. */ + class LaunchPlanList implements ILaunchPlanList { + + /** + * Constructs a new LaunchPlanList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanList); + + /** LaunchPlanList launchPlans. */ + public launchPlans: flyteidl.admin.ILaunchPlan[]; + + /** LaunchPlanList token. */ + public token: string; + + /** + * Creates a new LaunchPlanList instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanList instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanList): flyteidl.admin.LaunchPlanList; + + /** + * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. + * @param message LaunchPlanList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanList; + + /** + * Verifies a LaunchPlanList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Auth. */ + interface IAuth { + + /** Auth assumableIamRole */ + assumableIamRole?: (string|null); + + /** Auth kubernetesServiceAccount */ + kubernetesServiceAccount?: (string|null); + } + + /** Represents an Auth. */ + class Auth implements IAuth { + + /** + * Constructs a new Auth. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAuth); + + /** Auth assumableIamRole. */ + public assumableIamRole: string; + + /** Auth kubernetesServiceAccount. */ + public kubernetesServiceAccount: string; + + /** + * Creates a new Auth instance using the specified properties. + * @param [properties] Properties to set + * @returns Auth instance + */ + public static create(properties?: flyteidl.admin.IAuth): flyteidl.admin.Auth; + + /** + * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. + * @param message Auth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Auth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Auth; + + /** + * Verifies an Auth message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanSpec. */ + interface ILaunchPlanSpec { + + /** LaunchPlanSpec workflowId */ + workflowId?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanSpec entityMetadata */ + entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); + + /** LaunchPlanSpec defaultInputs */ + defaultInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanSpec fixedInputs */ + fixedInputs?: (flyteidl.core.ILiteralMap|null); + + /** LaunchPlanSpec role */ + role?: (string|null); + + /** LaunchPlanSpec labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** LaunchPlanSpec annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + + /** LaunchPlanSpec auth */ + auth?: (flyteidl.admin.IAuth|null); + + /** LaunchPlanSpec authRole */ + authRole?: (flyteidl.admin.IAuthRole|null); + + /** LaunchPlanSpec securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** LaunchPlanSpec qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** LaunchPlanSpec rawOutputDataConfig */ + rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** LaunchPlanSpec maxParallelism */ + maxParallelism?: (number|null); + + /** LaunchPlanSpec interruptible */ + interruptible?: (google.protobuf.IBoolValue|null); + + /** LaunchPlanSpec overwriteCache */ + overwriteCache?: (boolean|null); + + /** LaunchPlanSpec envs */ + envs?: (flyteidl.admin.IEnvs|null); + } + + /** Represents a LaunchPlanSpec. */ + class LaunchPlanSpec implements ILaunchPlanSpec { + + /** + * Constructs a new LaunchPlanSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanSpec); + + /** LaunchPlanSpec workflowId. */ + public workflowId?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanSpec entityMetadata. */ + public entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); + + /** LaunchPlanSpec defaultInputs. */ + public defaultInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanSpec fixedInputs. */ + public fixedInputs?: (flyteidl.core.ILiteralMap|null); + + /** LaunchPlanSpec role. */ + public role: string; + + /** LaunchPlanSpec labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** LaunchPlanSpec annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** LaunchPlanSpec auth. */ + public auth?: (flyteidl.admin.IAuth|null); + + /** LaunchPlanSpec authRole. */ + public authRole?: (flyteidl.admin.IAuthRole|null); + + /** LaunchPlanSpec securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** LaunchPlanSpec qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** LaunchPlanSpec rawOutputDataConfig. */ + public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** LaunchPlanSpec maxParallelism. */ + public maxParallelism: number; + + /** LaunchPlanSpec interruptible. */ + public interruptible?: (google.protobuf.IBoolValue|null); + + /** LaunchPlanSpec overwriteCache. */ + public overwriteCache: boolean; + + /** LaunchPlanSpec envs. */ + public envs?: (flyteidl.admin.IEnvs|null); + + /** + * Creates a new LaunchPlanSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanSpec instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanSpec): flyteidl.admin.LaunchPlanSpec; + + /** + * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. + * @param message LaunchPlanSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanSpec; + + /** + * Verifies a LaunchPlanSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanClosure. */ + interface ILaunchPlanClosure { + + /** LaunchPlanClosure state */ + state?: (flyteidl.admin.LaunchPlanState|null); + + /** LaunchPlanClosure expectedInputs */ + expectedInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanClosure expectedOutputs */ + expectedOutputs?: (flyteidl.core.IVariableMap|null); + + /** LaunchPlanClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** LaunchPlanClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a LaunchPlanClosure. */ + class LaunchPlanClosure implements ILaunchPlanClosure { + + /** + * Constructs a new LaunchPlanClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanClosure); + + /** LaunchPlanClosure state. */ + public state: flyteidl.admin.LaunchPlanState; + + /** LaunchPlanClosure expectedInputs. */ + public expectedInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanClosure expectedOutputs. */ + public expectedOutputs?: (flyteidl.core.IVariableMap|null); + + /** LaunchPlanClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** LaunchPlanClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new LaunchPlanClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanClosure instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanClosure): flyteidl.admin.LaunchPlanClosure; + + /** + * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. + * @param message LaunchPlanClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanClosure; + + /** + * Verifies a LaunchPlanClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanMetadata. */ + interface ILaunchPlanMetadata { + + /** LaunchPlanMetadata schedule */ + schedule?: (flyteidl.admin.ISchedule|null); + + /** LaunchPlanMetadata notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + } + + /** Represents a LaunchPlanMetadata. */ + class LaunchPlanMetadata implements ILaunchPlanMetadata { + + /** + * Constructs a new LaunchPlanMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanMetadata); + + /** LaunchPlanMetadata schedule. */ + public schedule?: (flyteidl.admin.ISchedule|null); + + /** LaunchPlanMetadata notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** + * Creates a new LaunchPlanMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanMetadata instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanMetadata): flyteidl.admin.LaunchPlanMetadata; + + /** + * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. + * @param message LaunchPlanMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanMetadata; + + /** + * Verifies a LaunchPlanMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanUpdateRequest. */ + interface ILaunchPlanUpdateRequest { + + /** LaunchPlanUpdateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanUpdateRequest state */ + state?: (flyteidl.admin.LaunchPlanState|null); + } + + /** Represents a LaunchPlanUpdateRequest. */ + class LaunchPlanUpdateRequest implements ILaunchPlanUpdateRequest { + + /** + * Constructs a new LaunchPlanUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanUpdateRequest); + + /** LaunchPlanUpdateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanUpdateRequest state. */ + public state: flyteidl.admin.LaunchPlanState; + + /** + * Creates a new LaunchPlanUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanUpdateRequest): flyteidl.admin.LaunchPlanUpdateRequest; + + /** + * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. + * @param message LaunchPlanUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateRequest; + + /** + * Verifies a LaunchPlanUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanUpdateResponse. */ + interface ILaunchPlanUpdateResponse { + } + + /** Represents a LaunchPlanUpdateResponse. */ + class LaunchPlanUpdateResponse implements ILaunchPlanUpdateResponse { + + /** + * Constructs a new LaunchPlanUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanUpdateResponse); + + /** + * Creates a new LaunchPlanUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanUpdateResponse): flyteidl.admin.LaunchPlanUpdateResponse; + + /** + * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. + * @param message LaunchPlanUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateResponse; + + /** + * Verifies a LaunchPlanUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ActiveLaunchPlanRequest. */ + interface IActiveLaunchPlanRequest { + + /** ActiveLaunchPlanRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + } + + /** Represents an ActiveLaunchPlanRequest. */ + class ActiveLaunchPlanRequest implements IActiveLaunchPlanRequest { + + /** + * Constructs a new ActiveLaunchPlanRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IActiveLaunchPlanRequest); + + /** ActiveLaunchPlanRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** + * Creates a new ActiveLaunchPlanRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ActiveLaunchPlanRequest instance + */ + public static create(properties?: flyteidl.admin.IActiveLaunchPlanRequest): flyteidl.admin.ActiveLaunchPlanRequest; + + /** + * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. + * @param message ActiveLaunchPlanRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IActiveLaunchPlanRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActiveLaunchPlanRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ActiveLaunchPlanRequest; + + /** + * Verifies an ActiveLaunchPlanRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ActiveLaunchPlanListRequest. */ + interface IActiveLaunchPlanListRequest { + + /** ActiveLaunchPlanListRequest project */ + project?: (string|null); + + /** ActiveLaunchPlanListRequest domain */ + domain?: (string|null); + + /** ActiveLaunchPlanListRequest limit */ + limit?: (number|null); + + /** ActiveLaunchPlanListRequest token */ + token?: (string|null); + + /** ActiveLaunchPlanListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents an ActiveLaunchPlanListRequest. */ + class ActiveLaunchPlanListRequest implements IActiveLaunchPlanListRequest { + + /** + * Constructs a new ActiveLaunchPlanListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IActiveLaunchPlanListRequest); + + /** ActiveLaunchPlanListRequest project. */ + public project: string; + + /** ActiveLaunchPlanListRequest domain. */ + public domain: string; + + /** ActiveLaunchPlanListRequest limit. */ + public limit: number; + + /** ActiveLaunchPlanListRequest token. */ + public token: string; + + /** ActiveLaunchPlanListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ActiveLaunchPlanListRequest instance + */ + public static create(properties?: flyteidl.admin.IActiveLaunchPlanListRequest): flyteidl.admin.ActiveLaunchPlanListRequest; + + /** + * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. + * @param message ActiveLaunchPlanListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IActiveLaunchPlanListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActiveLaunchPlanListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ActiveLaunchPlanListRequest; + + /** + * Verifies an ActiveLaunchPlanListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** FixedRateUnit enum. */ + enum FixedRateUnit { + MINUTE = 0, + HOUR = 1, + DAY = 2 + } + + /** Properties of a FixedRate. */ + interface IFixedRate { + + /** FixedRate value */ + value?: (number|null); + + /** FixedRate unit */ + unit?: (flyteidl.admin.FixedRateUnit|null); + } + + /** Represents a FixedRate. */ + class FixedRate implements IFixedRate { + + /** + * Constructs a new FixedRate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IFixedRate); + + /** FixedRate value. */ + public value: number; + + /** FixedRate unit. */ + public unit: flyteidl.admin.FixedRateUnit; + + /** + * Creates a new FixedRate instance using the specified properties. + * @param [properties] Properties to set + * @returns FixedRate instance + */ + public static create(properties?: flyteidl.admin.IFixedRate): flyteidl.admin.FixedRate; + + /** + * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. + * @param message FixedRate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IFixedRate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FixedRate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FixedRate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.FixedRate; + + /** + * Verifies a FixedRate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CronSchedule. */ + interface ICronSchedule { + + /** CronSchedule schedule */ + schedule?: (string|null); + + /** CronSchedule offset */ + offset?: (string|null); + } + + /** Represents a CronSchedule. */ + class CronSchedule implements ICronSchedule { + + /** + * Constructs a new CronSchedule. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICronSchedule); + + /** CronSchedule schedule. */ + public schedule: string; + + /** CronSchedule offset. */ + public offset: string; + + /** + * Creates a new CronSchedule instance using the specified properties. + * @param [properties] Properties to set + * @returns CronSchedule instance + */ + public static create(properties?: flyteidl.admin.ICronSchedule): flyteidl.admin.CronSchedule; + + /** + * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. + * @param message CronSchedule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICronSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CronSchedule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CronSchedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CronSchedule; + + /** + * Verifies a CronSchedule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Schedule. */ + interface ISchedule { + + /** Schedule cronExpression */ + cronExpression?: (string|null); + + /** Schedule rate */ + rate?: (flyteidl.admin.IFixedRate|null); + + /** Schedule cronSchedule */ + cronSchedule?: (flyteidl.admin.ICronSchedule|null); + + /** Schedule kickoffTimeInputArg */ + kickoffTimeInputArg?: (string|null); + } + + /** Represents a Schedule. */ + class Schedule implements ISchedule { + + /** + * Constructs a new Schedule. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISchedule); + + /** Schedule cronExpression. */ + public cronExpression: string; + + /** Schedule rate. */ + public rate?: (flyteidl.admin.IFixedRate|null); + + /** Schedule cronSchedule. */ + public cronSchedule?: (flyteidl.admin.ICronSchedule|null); + + /** Schedule kickoffTimeInputArg. */ + public kickoffTimeInputArg: string; + + /** Schedule ScheduleExpression. */ + public ScheduleExpression?: ("cronExpression"|"rate"|"cronSchedule"); + + /** + * Creates a new Schedule instance using the specified properties. + * @param [properties] Properties to set + * @returns Schedule instance + */ + public static create(properties?: flyteidl.admin.ISchedule): flyteidl.admin.Schedule; + + /** + * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. + * @param message Schedule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Schedule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Schedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Schedule; + + /** + * Verifies a Schedule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** MatchableResource enum. */ + enum MatchableResource { + TASK_RESOURCE = 0, + CLUSTER_RESOURCE = 1, + EXECUTION_QUEUE = 2, + EXECUTION_CLUSTER_LABEL = 3, + QUALITY_OF_SERVICE_SPECIFICATION = 4, + PLUGIN_OVERRIDE = 5, + WORKFLOW_EXECUTION_CONFIG = 6, + CLUSTER_ASSIGNMENT = 7 + } + + /** Properties of a TaskResourceSpec. */ + interface ITaskResourceSpec { + + /** TaskResourceSpec cpu */ + cpu?: (string|null); + + /** TaskResourceSpec gpu */ + gpu?: (string|null); + + /** TaskResourceSpec memory */ + memory?: (string|null); + + /** TaskResourceSpec storage */ + storage?: (string|null); + + /** TaskResourceSpec ephemeralStorage */ + ephemeralStorage?: (string|null); + } + + /** Represents a TaskResourceSpec. */ + class TaskResourceSpec implements ITaskResourceSpec { + + /** + * Constructs a new TaskResourceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskResourceSpec); + + /** TaskResourceSpec cpu. */ + public cpu: string; + + /** TaskResourceSpec gpu. */ + public gpu: string; + + /** TaskResourceSpec memory. */ + public memory: string; + + /** TaskResourceSpec storage. */ + public storage: string; + + /** TaskResourceSpec ephemeralStorage. */ + public ephemeralStorage: string; + + /** + * Creates a new TaskResourceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskResourceSpec instance + */ + public static create(properties?: flyteidl.admin.ITaskResourceSpec): flyteidl.admin.TaskResourceSpec; + + /** + * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. + * @param message TaskResourceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskResourceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskResourceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskResourceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskResourceSpec; + + /** + * Verifies a TaskResourceSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskResourceAttributes. */ + interface ITaskResourceAttributes { + + /** TaskResourceAttributes defaults */ + defaults?: (flyteidl.admin.ITaskResourceSpec|null); + + /** TaskResourceAttributes limits */ + limits?: (flyteidl.admin.ITaskResourceSpec|null); + } + + /** Represents a TaskResourceAttributes. */ + class TaskResourceAttributes implements ITaskResourceAttributes { + + /** + * Constructs a new TaskResourceAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskResourceAttributes); + + /** TaskResourceAttributes defaults. */ + public defaults?: (flyteidl.admin.ITaskResourceSpec|null); + + /** TaskResourceAttributes limits. */ + public limits?: (flyteidl.admin.ITaskResourceSpec|null); + + /** + * Creates a new TaskResourceAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskResourceAttributes instance + */ + public static create(properties?: flyteidl.admin.ITaskResourceAttributes): flyteidl.admin.TaskResourceAttributes; + + /** + * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. + * @param message TaskResourceAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskResourceAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskResourceAttributes; + + /** + * Verifies a TaskResourceAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ClusterResourceAttributes. */ + interface IClusterResourceAttributes { + + /** ClusterResourceAttributes attributes */ + attributes?: ({ [k: string]: string }|null); + } + + /** Represents a ClusterResourceAttributes. */ + class ClusterResourceAttributes implements IClusterResourceAttributes { + + /** + * Constructs a new ClusterResourceAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IClusterResourceAttributes); + + /** ClusterResourceAttributes attributes. */ + public attributes: { [k: string]: string }; + + /** + * Creates a new ClusterResourceAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterResourceAttributes instance + */ + public static create(properties?: flyteidl.admin.IClusterResourceAttributes): flyteidl.admin.ClusterResourceAttributes; + + /** + * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. + * @param message ClusterResourceAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IClusterResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClusterResourceAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ClusterResourceAttributes; + + /** + * Verifies a ClusterResourceAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionQueueAttributes. */ + interface IExecutionQueueAttributes { + + /** ExecutionQueueAttributes tags */ + tags?: (string[]|null); + } + + /** Represents an ExecutionQueueAttributes. */ + class ExecutionQueueAttributes implements IExecutionQueueAttributes { + + /** + * Constructs a new ExecutionQueueAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionQueueAttributes); + + /** ExecutionQueueAttributes tags. */ + public tags: string[]; + + /** + * Creates a new ExecutionQueueAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionQueueAttributes instance + */ + public static create(properties?: flyteidl.admin.IExecutionQueueAttributes): flyteidl.admin.ExecutionQueueAttributes; + + /** + * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. + * @param message ExecutionQueueAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionQueueAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionQueueAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionQueueAttributes; + + /** + * Verifies an ExecutionQueueAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionClusterLabel. */ + interface IExecutionClusterLabel { + + /** ExecutionClusterLabel value */ + value?: (string|null); + } + + /** Represents an ExecutionClusterLabel. */ + class ExecutionClusterLabel implements IExecutionClusterLabel { + + /** + * Constructs a new ExecutionClusterLabel. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionClusterLabel); + + /** ExecutionClusterLabel value. */ + public value: string; + + /** + * Creates a new ExecutionClusterLabel instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionClusterLabel instance + */ + public static create(properties?: flyteidl.admin.IExecutionClusterLabel): flyteidl.admin.ExecutionClusterLabel; + + /** + * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. + * @param message ExecutionClusterLabel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionClusterLabel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionClusterLabel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionClusterLabel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionClusterLabel; + + /** + * Verifies an ExecutionClusterLabel message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PluginOverride. */ + interface IPluginOverride { + + /** PluginOverride taskType */ + taskType?: (string|null); + + /** PluginOverride pluginId */ + pluginId?: (string[]|null); + + /** PluginOverride missingPluginBehavior */ + missingPluginBehavior?: (flyteidl.admin.PluginOverride.MissingPluginBehavior|null); + } + + /** Represents a PluginOverride. */ + class PluginOverride implements IPluginOverride { + + /** + * Constructs a new PluginOverride. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IPluginOverride); + + /** PluginOverride taskType. */ + public taskType: string; + + /** PluginOverride pluginId. */ + public pluginId: string[]; + + /** PluginOverride missingPluginBehavior. */ + public missingPluginBehavior: flyteidl.admin.PluginOverride.MissingPluginBehavior; + + /** + * Creates a new PluginOverride instance using the specified properties. + * @param [properties] Properties to set + * @returns PluginOverride instance + */ + public static create(properties?: flyteidl.admin.IPluginOverride): flyteidl.admin.PluginOverride; + + /** + * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. + * @param message PluginOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IPluginOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PluginOverride message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PluginOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PluginOverride; + + /** + * Verifies a PluginOverride message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace PluginOverride { + + /** MissingPluginBehavior enum. */ + enum MissingPluginBehavior { + FAIL = 0, + USE_DEFAULT = 1 + } + } + + /** Properties of a PluginOverrides. */ + interface IPluginOverrides { + + /** PluginOverrides overrides */ + overrides?: (flyteidl.admin.IPluginOverride[]|null); + } + + /** Represents a PluginOverrides. */ + class PluginOverrides implements IPluginOverrides { + + /** + * Constructs a new PluginOverrides. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IPluginOverrides); + + /** PluginOverrides overrides. */ + public overrides: flyteidl.admin.IPluginOverride[]; + + /** + * Creates a new PluginOverrides instance using the specified properties. + * @param [properties] Properties to set + * @returns PluginOverrides instance + */ + public static create(properties?: flyteidl.admin.IPluginOverrides): flyteidl.admin.PluginOverrides; + + /** + * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. + * @param message PluginOverrides message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IPluginOverrides, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PluginOverrides message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PluginOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PluginOverrides; + + /** + * Verifies a PluginOverrides message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionConfig. */ + interface IWorkflowExecutionConfig { + + /** WorkflowExecutionConfig maxParallelism */ + maxParallelism?: (number|null); + + /** WorkflowExecutionConfig securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** WorkflowExecutionConfig rawOutputDataConfig */ + rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** WorkflowExecutionConfig labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** WorkflowExecutionConfig annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + + /** WorkflowExecutionConfig interruptible */ + interruptible?: (google.protobuf.IBoolValue|null); + + /** WorkflowExecutionConfig overwriteCache */ + overwriteCache?: (boolean|null); + + /** WorkflowExecutionConfig envs */ + envs?: (flyteidl.admin.IEnvs|null); + } + + /** Represents a WorkflowExecutionConfig. */ + class WorkflowExecutionConfig implements IWorkflowExecutionConfig { + + /** + * Constructs a new WorkflowExecutionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionConfig); + + /** WorkflowExecutionConfig maxParallelism. */ + public maxParallelism: number; + + /** WorkflowExecutionConfig securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** WorkflowExecutionConfig rawOutputDataConfig. */ + public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** WorkflowExecutionConfig labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** WorkflowExecutionConfig annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** WorkflowExecutionConfig interruptible. */ + public interruptible?: (google.protobuf.IBoolValue|null); + + /** WorkflowExecutionConfig overwriteCache. */ + public overwriteCache: boolean; + + /** WorkflowExecutionConfig envs. */ + public envs?: (flyteidl.admin.IEnvs|null); + + /** + * Creates a new WorkflowExecutionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionConfig instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionConfig): flyteidl.admin.WorkflowExecutionConfig; + + /** + * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. + * @param message WorkflowExecutionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionConfig; + + /** + * Verifies a WorkflowExecutionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MatchingAttributes. */ + interface IMatchingAttributes { + + /** MatchingAttributes taskResourceAttributes */ + taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); + + /** MatchingAttributes clusterResourceAttributes */ + clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); + + /** MatchingAttributes executionQueueAttributes */ + executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); + + /** MatchingAttributes executionClusterLabel */ + executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); + + /** MatchingAttributes qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** MatchingAttributes pluginOverrides */ + pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); + + /** MatchingAttributes workflowExecutionConfig */ + workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); + + /** MatchingAttributes clusterAssignment */ + clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + } + + /** Represents a MatchingAttributes. */ + class MatchingAttributes implements IMatchingAttributes { + + /** + * Constructs a new MatchingAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IMatchingAttributes); + + /** MatchingAttributes taskResourceAttributes. */ + public taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); + + /** MatchingAttributes clusterResourceAttributes. */ + public clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); + + /** MatchingAttributes executionQueueAttributes. */ + public executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); + + /** MatchingAttributes executionClusterLabel. */ + public executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); + + /** MatchingAttributes qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** MatchingAttributes pluginOverrides. */ + public pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); + + /** MatchingAttributes workflowExecutionConfig. */ + public workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); + + /** MatchingAttributes clusterAssignment. */ + public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + + /** MatchingAttributes target. */ + public target?: ("taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"); + + /** + * Creates a new MatchingAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns MatchingAttributes instance + */ + public static create(properties?: flyteidl.admin.IMatchingAttributes): flyteidl.admin.MatchingAttributes; + + /** + * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. + * @param message MatchingAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IMatchingAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MatchingAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MatchingAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.MatchingAttributes; + + /** + * Verifies a MatchingAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MatchableAttributesConfiguration. */ + interface IMatchableAttributesConfiguration { + + /** MatchableAttributesConfiguration attributes */ + attributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** MatchableAttributesConfiguration domain */ + domain?: (string|null); + + /** MatchableAttributesConfiguration project */ + project?: (string|null); + + /** MatchableAttributesConfiguration workflow */ + workflow?: (string|null); + + /** MatchableAttributesConfiguration launchPlan */ + launchPlan?: (string|null); + } + + /** Represents a MatchableAttributesConfiguration. */ + class MatchableAttributesConfiguration implements IMatchableAttributesConfiguration { + + /** + * Constructs a new MatchableAttributesConfiguration. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IMatchableAttributesConfiguration); + + /** MatchableAttributesConfiguration attributes. */ + public attributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** MatchableAttributesConfiguration domain. */ + public domain: string; + + /** MatchableAttributesConfiguration project. */ + public project: string; + + /** MatchableAttributesConfiguration workflow. */ + public workflow: string; + + /** MatchableAttributesConfiguration launchPlan. */ + public launchPlan: string; + + /** + * Creates a new MatchableAttributesConfiguration instance using the specified properties. + * @param [properties] Properties to set + * @returns MatchableAttributesConfiguration instance + */ + public static create(properties?: flyteidl.admin.IMatchableAttributesConfiguration): flyteidl.admin.MatchableAttributesConfiguration; + + /** + * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. + * @param message MatchableAttributesConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IMatchableAttributesConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MatchableAttributesConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.MatchableAttributesConfiguration; + + /** + * Verifies a MatchableAttributesConfiguration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ListMatchableAttributesRequest. */ + interface IListMatchableAttributesRequest { + + /** ListMatchableAttributesRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + } + + /** Represents a ListMatchableAttributesRequest. */ + class ListMatchableAttributesRequest implements IListMatchableAttributesRequest { + + /** + * Constructs a new ListMatchableAttributesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IListMatchableAttributesRequest); + + /** ListMatchableAttributesRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** + * Creates a new ListMatchableAttributesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMatchableAttributesRequest instance + */ + public static create(properties?: flyteidl.admin.IListMatchableAttributesRequest): flyteidl.admin.ListMatchableAttributesRequest; + + /** + * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. + * @param message ListMatchableAttributesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IListMatchableAttributesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMatchableAttributesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListMatchableAttributesRequest; + + /** + * Verifies a ListMatchableAttributesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ListMatchableAttributesResponse. */ + interface IListMatchableAttributesResponse { + + /** ListMatchableAttributesResponse configurations */ + configurations?: (flyteidl.admin.IMatchableAttributesConfiguration[]|null); + } + + /** Represents a ListMatchableAttributesResponse. */ + class ListMatchableAttributesResponse implements IListMatchableAttributesResponse { + + /** + * Constructs a new ListMatchableAttributesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IListMatchableAttributesResponse); + + /** ListMatchableAttributesResponse configurations. */ + public configurations: flyteidl.admin.IMatchableAttributesConfiguration[]; + + /** + * Creates a new ListMatchableAttributesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMatchableAttributesResponse instance + */ + public static create(properties?: flyteidl.admin.IListMatchableAttributesResponse): flyteidl.admin.ListMatchableAttributesResponse; + + /** + * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. + * @param message ListMatchableAttributesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IListMatchableAttributesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMatchableAttributesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListMatchableAttributesResponse; + + /** + * Verifies a ListMatchableAttributesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetRequest. */ + interface INodeExecutionGetRequest { + + /** NodeExecutionGetRequest id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a NodeExecutionGetRequest. */ + class NodeExecutionGetRequest implements INodeExecutionGetRequest { + + /** + * Constructs a new NodeExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetRequest); + + /** NodeExecutionGetRequest id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetRequest): flyteidl.admin.NodeExecutionGetRequest; + + /** + * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. + * @param message NodeExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetRequest; + + /** + * Verifies a NodeExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionListRequest. */ + interface INodeExecutionListRequest { + + /** NodeExecutionListRequest workflowExecutionId */ + workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** NodeExecutionListRequest limit */ + limit?: (number|null); + + /** NodeExecutionListRequest token */ + token?: (string|null); + + /** NodeExecutionListRequest filters */ + filters?: (string|null); + + /** NodeExecutionListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** NodeExecutionListRequest uniqueParentId */ + uniqueParentId?: (string|null); + } + + /** Represents a NodeExecutionListRequest. */ + class NodeExecutionListRequest implements INodeExecutionListRequest { + + /** + * Constructs a new NodeExecutionListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionListRequest); + + /** NodeExecutionListRequest workflowExecutionId. */ + public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** NodeExecutionListRequest limit. */ + public limit: number; + + /** NodeExecutionListRequest token. */ + public token: string; + + /** NodeExecutionListRequest filters. */ + public filters: string; + + /** NodeExecutionListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** NodeExecutionListRequest uniqueParentId. */ + public uniqueParentId: string; + + /** + * Creates a new NodeExecutionListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionListRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionListRequest): flyteidl.admin.NodeExecutionListRequest; + + /** + * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. + * @param message NodeExecutionListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionListRequest; + + /** + * Verifies a NodeExecutionListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionForTaskListRequest. */ + interface INodeExecutionForTaskListRequest { + + /** NodeExecutionForTaskListRequest taskExecutionId */ + taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** NodeExecutionForTaskListRequest limit */ + limit?: (number|null); + + /** NodeExecutionForTaskListRequest token */ + token?: (string|null); + + /** NodeExecutionForTaskListRequest filters */ + filters?: (string|null); + + /** NodeExecutionForTaskListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a NodeExecutionForTaskListRequest. */ + class NodeExecutionForTaskListRequest implements INodeExecutionForTaskListRequest { + + /** + * Constructs a new NodeExecutionForTaskListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionForTaskListRequest); + + /** NodeExecutionForTaskListRequest taskExecutionId. */ + public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** NodeExecutionForTaskListRequest limit. */ + public limit: number; + + /** NodeExecutionForTaskListRequest token. */ + public token: string; + + /** NodeExecutionForTaskListRequest filters. */ + public filters: string; + + /** NodeExecutionForTaskListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionForTaskListRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionForTaskListRequest): flyteidl.admin.NodeExecutionForTaskListRequest; + + /** + * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. + * @param message NodeExecutionForTaskListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionForTaskListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionForTaskListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionForTaskListRequest; + + /** + * Verifies a NodeExecutionForTaskListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecution. */ + interface INodeExecution { + + /** NodeExecution id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecution inputUri */ + inputUri?: (string|null); + + /** NodeExecution closure */ + closure?: (flyteidl.admin.INodeExecutionClosure|null); + + /** NodeExecution metadata */ + metadata?: (flyteidl.admin.INodeExecutionMetaData|null); + } + + /** Represents a NodeExecution. */ + class NodeExecution implements INodeExecution { + + /** + * Constructs a new NodeExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecution); + + /** NodeExecution id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecution inputUri. */ + public inputUri: string; + + /** NodeExecution closure. */ + public closure?: (flyteidl.admin.INodeExecutionClosure|null); + + /** NodeExecution metadata. */ + public metadata?: (flyteidl.admin.INodeExecutionMetaData|null); + + /** + * Creates a new NodeExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecution instance + */ + public static create(properties?: flyteidl.admin.INodeExecution): flyteidl.admin.NodeExecution; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. + * @param message NodeExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecution; + + /** + * Verifies a NodeExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionMetaData. */ + interface INodeExecutionMetaData { + + /** NodeExecutionMetaData retryGroup */ + retryGroup?: (string|null); + + /** NodeExecutionMetaData isParentNode */ + isParentNode?: (boolean|null); + + /** NodeExecutionMetaData specNodeId */ + specNodeId?: (string|null); + + /** NodeExecutionMetaData isDynamic */ + isDynamic?: (boolean|null); + } + + /** Represents a NodeExecutionMetaData. */ + class NodeExecutionMetaData implements INodeExecutionMetaData { + + /** + * Constructs a new NodeExecutionMetaData. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionMetaData); + + /** NodeExecutionMetaData retryGroup. */ + public retryGroup: string; + + /** NodeExecutionMetaData isParentNode. */ + public isParentNode: boolean; + + /** NodeExecutionMetaData specNodeId. */ + public specNodeId: string; + + /** NodeExecutionMetaData isDynamic. */ + public isDynamic: boolean; + + /** + * Creates a new NodeExecutionMetaData instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionMetaData instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionMetaData): flyteidl.admin.NodeExecutionMetaData; + + /** + * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. + * @param message NodeExecutionMetaData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionMetaData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionMetaData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionMetaData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionMetaData; + + /** + * Verifies a NodeExecutionMetaData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionList. */ + interface INodeExecutionList { + + /** NodeExecutionList nodeExecutions */ + nodeExecutions?: (flyteidl.admin.INodeExecution[]|null); + + /** NodeExecutionList token */ + token?: (string|null); + } + + /** Represents a NodeExecutionList. */ + class NodeExecutionList implements INodeExecutionList { + + /** + * Constructs a new NodeExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionList); + + /** NodeExecutionList nodeExecutions. */ + public nodeExecutions: flyteidl.admin.INodeExecution[]; + + /** NodeExecutionList token. */ + public token: string; + + /** + * Creates a new NodeExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionList instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionList): flyteidl.admin.NodeExecutionList; + + /** + * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. + * @param message NodeExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionList; + + /** + * Verifies a NodeExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionClosure. */ + interface INodeExecutionClosure { + + /** NodeExecutionClosure outputUri */ + outputUri?: (string|null); + + /** NodeExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionClosure outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionClosure phase */ + phase?: (flyteidl.core.NodeExecution.Phase|null); + + /** NodeExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** NodeExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure workflowNodeMetadata */ + workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); + + /** NodeExecutionClosure taskNodeMetadata */ + taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); + + /** NodeExecutionClosure deckUri */ + deckUri?: (string|null); + + /** NodeExecutionClosure dynamicJobSpecUri */ + dynamicJobSpecUri?: (string|null); + } + + /** Represents a NodeExecutionClosure. */ + class NodeExecutionClosure implements INodeExecutionClosure { + + /** + * Constructs a new NodeExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionClosure); + + /** NodeExecutionClosure outputUri. */ + public outputUri: string; + + /** NodeExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionClosure outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionClosure phase. */ + public phase: flyteidl.core.NodeExecution.Phase; + + /** NodeExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** NodeExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure workflowNodeMetadata. */ + public workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); + + /** NodeExecutionClosure taskNodeMetadata. */ + public taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); + + /** NodeExecutionClosure deckUri. */ + public deckUri: string; + + /** NodeExecutionClosure dynamicJobSpecUri. */ + public dynamicJobSpecUri: string; + + /** NodeExecutionClosure outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** NodeExecutionClosure targetMetadata. */ + public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); + + /** + * Creates a new NodeExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionClosure): flyteidl.admin.NodeExecutionClosure; + + /** + * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. + * @param message NodeExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionClosure; + + /** + * Verifies a NodeExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNodeMetadata. */ + interface IWorkflowNodeMetadata { + + /** WorkflowNodeMetadata executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowNodeMetadata. */ + class WorkflowNodeMetadata implements IWorkflowNodeMetadata { + + /** + * Constructs a new WorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowNodeMetadata); + + /** WorkflowNodeMetadata executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.admin.IWorkflowNodeMetadata): flyteidl.admin.WorkflowNodeMetadata; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. + * @param message WorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowNodeMetadata; + + /** + * Verifies a WorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNodeMetadata. */ + interface ITaskNodeMetadata { + + /** TaskNodeMetadata cacheStatus */ + cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); + + /** TaskNodeMetadata catalogKey */ + catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata checkpointUri */ + checkpointUri?: (string|null); + } + + /** Represents a TaskNodeMetadata. */ + class TaskNodeMetadata implements ITaskNodeMetadata { + + /** + * Constructs a new TaskNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskNodeMetadata); + + /** TaskNodeMetadata cacheStatus. */ + public cacheStatus: flyteidl.core.CatalogCacheStatus; + + /** TaskNodeMetadata catalogKey. */ + public catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata checkpointUri. */ + public checkpointUri: string; + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNodeMetadata instance + */ + public static create(properties?: flyteidl.admin.ITaskNodeMetadata): flyteidl.admin.TaskNodeMetadata; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. + * @param message TaskNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskNodeMetadata; + + /** + * Verifies a TaskNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicWorkflowNodeMetadata. */ + interface IDynamicWorkflowNodeMetadata { + + /** DynamicWorkflowNodeMetadata id */ + id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ + dynamicJobSpecUri?: (string|null); + } + + /** Represents a DynamicWorkflowNodeMetadata. */ + class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata); + + /** DynamicWorkflowNodeMetadata id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ + public dynamicJobSpecUri: string; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicWorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata): flyteidl.admin.DynamicWorkflowNodeMetadata; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @param message DynamicWorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DynamicWorkflowNodeMetadata; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetDataRequest. */ + interface INodeExecutionGetDataRequest { + + /** NodeExecutionGetDataRequest id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a NodeExecutionGetDataRequest. */ + class NodeExecutionGetDataRequest implements INodeExecutionGetDataRequest { + + /** + * Constructs a new NodeExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetDataRequest); + + /** NodeExecutionGetDataRequest id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetDataRequest): flyteidl.admin.NodeExecutionGetDataRequest; + + /** + * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. + * @param message NodeExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataRequest; + + /** + * Verifies a NodeExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetDataResponse. */ + interface INodeExecutionGetDataResponse { + + /** NodeExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse fullInputs */ + fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse fullOutputs */ + fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse dynamicWorkflow */ + dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); + + /** NodeExecutionGetDataResponse flyteUrls */ + flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + } + + /** Represents a NodeExecutionGetDataResponse. */ + class NodeExecutionGetDataResponse implements INodeExecutionGetDataResponse { + + /** + * Constructs a new NodeExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetDataResponse); + + /** NodeExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse fullInputs. */ + public fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse fullOutputs. */ + public fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse dynamicWorkflow. */ + public dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); + + /** NodeExecutionGetDataResponse flyteUrls. */ + public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + + /** + * Creates a new NodeExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetDataResponse): flyteidl.admin.NodeExecutionGetDataResponse; + + /** + * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. + * @param message NodeExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataResponse; + + /** + * Verifies a NodeExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EmailMessage. */ + interface IEmailMessage { + + /** EmailMessage recipientsEmail */ + recipientsEmail?: (string[]|null); + + /** EmailMessage senderEmail */ + senderEmail?: (string|null); + + /** EmailMessage subjectLine */ + subjectLine?: (string|null); + + /** EmailMessage body */ + body?: (string|null); + } + + /** Represents an EmailMessage. */ + class EmailMessage implements IEmailMessage { + + /** + * Constructs a new EmailMessage. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEmailMessage); + + /** EmailMessage recipientsEmail. */ + public recipientsEmail: string[]; + + /** EmailMessage senderEmail. */ + public senderEmail: string; + + /** EmailMessage subjectLine. */ + public subjectLine: string; + + /** EmailMessage body. */ + public body: string; + + /** + * Creates a new EmailMessage instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailMessage instance + */ + public static create(properties?: flyteidl.admin.IEmailMessage): flyteidl.admin.EmailMessage; + + /** + * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. + * @param message EmailMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEmailMessage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailMessage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailMessage; + + /** + * Verifies an EmailMessage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Domain. */ + interface IDomain { + + /** Domain id */ + id?: (string|null); + + /** Domain name */ + name?: (string|null); + } + + /** Represents a Domain. */ + class Domain implements IDomain { + + /** + * Constructs a new Domain. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDomain); + + /** Domain id. */ + public id: string; + + /** Domain name. */ + public name: string; + + /** + * Creates a new Domain instance using the specified properties. + * @param [properties] Properties to set + * @returns Domain instance + */ + public static create(properties?: flyteidl.admin.IDomain): flyteidl.admin.Domain; + + /** + * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. + * @param message Domain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDomain, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Domain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Domain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Domain; + + /** + * Verifies a Domain message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Project. */ + interface IProject { + + /** Project id */ + id?: (string|null); + + /** Project name */ + name?: (string|null); + + /** Project domains */ + domains?: (flyteidl.admin.IDomain[]|null); + + /** Project description */ + description?: (string|null); + + /** Project labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** Project state */ + state?: (flyteidl.admin.Project.ProjectState|null); + } + + /** Represents a Project. */ + class Project implements IProject { + + /** + * Constructs a new Project. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProject); + + /** Project id. */ + public id: string; + + /** Project name. */ + public name: string; + + /** Project domains. */ + public domains: flyteidl.admin.IDomain[]; + + /** Project description. */ + public description: string; + + /** Project labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** Project state. */ + public state: flyteidl.admin.Project.ProjectState; + + /** + * Creates a new Project instance using the specified properties. + * @param [properties] Properties to set + * @returns Project instance + */ + public static create(properties?: flyteidl.admin.IProject): flyteidl.admin.Project; + + /** + * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. + * @param message Project message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProject, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Project message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Project + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Project; + + /** + * Verifies a Project message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Project { + + /** ProjectState enum. */ + enum ProjectState { + ACTIVE = 0, + ARCHIVED = 1, + SYSTEM_GENERATED = 2 + } + } + + /** Properties of a Projects. */ + interface IProjects { + + /** Projects projects */ + projects?: (flyteidl.admin.IProject[]|null); + + /** Projects token */ + token?: (string|null); + } + + /** Represents a Projects. */ + class Projects implements IProjects { + + /** + * Constructs a new Projects. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjects); + + /** Projects projects. */ + public projects: flyteidl.admin.IProject[]; + + /** Projects token. */ + public token: string; + + /** + * Creates a new Projects instance using the specified properties. + * @param [properties] Properties to set + * @returns Projects instance + */ + public static create(properties?: flyteidl.admin.IProjects): flyteidl.admin.Projects; + + /** + * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. + * @param message Projects message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjects, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Projects message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Projects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Projects; + + /** + * Verifies a Projects message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectListRequest. */ + interface IProjectListRequest { + + /** ProjectListRequest limit */ + limit?: (number|null); + + /** ProjectListRequest token */ + token?: (string|null); + + /** ProjectListRequest filters */ + filters?: (string|null); + + /** ProjectListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a ProjectListRequest. */ + class ProjectListRequest implements IProjectListRequest { + + /** + * Constructs a new ProjectListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectListRequest); + + /** ProjectListRequest limit. */ + public limit: number; + + /** ProjectListRequest token. */ + public token: string; + + /** ProjectListRequest filters. */ + public filters: string; + + /** ProjectListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new ProjectListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectListRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectListRequest): flyteidl.admin.ProjectListRequest; + + /** + * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. + * @param message ProjectListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectListRequest; + + /** + * Verifies a ProjectListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectRegisterRequest. */ + interface IProjectRegisterRequest { + + /** ProjectRegisterRequest project */ + project?: (flyteidl.admin.IProject|null); + } + + /** Represents a ProjectRegisterRequest. */ + class ProjectRegisterRequest implements IProjectRegisterRequest { + + /** + * Constructs a new ProjectRegisterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectRegisterRequest); + + /** ProjectRegisterRequest project. */ + public project?: (flyteidl.admin.IProject|null); + + /** + * Creates a new ProjectRegisterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectRegisterRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectRegisterRequest): flyteidl.admin.ProjectRegisterRequest; + + /** + * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. + * @param message ProjectRegisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectRegisterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterRequest; + + /** + * Verifies a ProjectRegisterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectRegisterResponse. */ + interface IProjectRegisterResponse { + } + + /** Represents a ProjectRegisterResponse. */ + class ProjectRegisterResponse implements IProjectRegisterResponse { + + /** + * Constructs a new ProjectRegisterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectRegisterResponse); + + /** + * Creates a new ProjectRegisterResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectRegisterResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectRegisterResponse): flyteidl.admin.ProjectRegisterResponse; + + /** + * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. + * @param message ProjectRegisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectRegisterResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterResponse; + + /** + * Verifies a ProjectRegisterResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectUpdateResponse. */ + interface IProjectUpdateResponse { + } + + /** Represents a ProjectUpdateResponse. */ + class ProjectUpdateResponse implements IProjectUpdateResponse { + + /** + * Constructs a new ProjectUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectUpdateResponse); + + /** + * Creates a new ProjectUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectUpdateResponse): flyteidl.admin.ProjectUpdateResponse; + + /** + * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. + * @param message ProjectUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectUpdateResponse; + + /** + * Verifies a ProjectUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributes. */ + interface IProjectAttributes { + + /** ProjectAttributes project */ + project?: (string|null); + + /** ProjectAttributes matchingAttributes */ + matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + } + + /** Represents a ProjectAttributes. */ + class ProjectAttributes implements IProjectAttributes { + + /** + * Constructs a new ProjectAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributes); + + /** ProjectAttributes project. */ + public project: string; + + /** ProjectAttributes matchingAttributes. */ + public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** + * Creates a new ProjectAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributes instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributes): flyteidl.admin.ProjectAttributes; + + /** + * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. + * @param message ProjectAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributes; + + /** + * Verifies a ProjectAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesUpdateRequest. */ + interface IProjectAttributesUpdateRequest { + + /** ProjectAttributesUpdateRequest attributes */ + attributes?: (flyteidl.admin.IProjectAttributes|null); + } + + /** Represents a ProjectAttributesUpdateRequest. */ + class ProjectAttributesUpdateRequest implements IProjectAttributesUpdateRequest { + + /** + * Constructs a new ProjectAttributesUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesUpdateRequest); + + /** ProjectAttributesUpdateRequest attributes. */ + public attributes?: (flyteidl.admin.IProjectAttributes|null); + + /** + * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesUpdateRequest): flyteidl.admin.ProjectAttributesUpdateRequest; + + /** + * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. + * @param message ProjectAttributesUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesUpdateRequest; + + /** + * Verifies a ProjectAttributesUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesUpdateResponse. */ + interface IProjectAttributesUpdateResponse { + } + + /** Represents a ProjectAttributesUpdateResponse. */ + class ProjectAttributesUpdateResponse implements IProjectAttributesUpdateResponse { + + /** + * Constructs a new ProjectAttributesUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesUpdateResponse); + + /** + * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesUpdateResponse): flyteidl.admin.ProjectAttributesUpdateResponse; + + /** + * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. + * @param message ProjectAttributesUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesUpdateResponse; + + /** + * Verifies a ProjectAttributesUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesGetRequest. */ + interface IProjectAttributesGetRequest { + + /** ProjectAttributesGetRequest project */ + project?: (string|null); + + /** ProjectAttributesGetRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + } + + /** Represents a ProjectAttributesGetRequest. */ + class ProjectAttributesGetRequest implements IProjectAttributesGetRequest { + + /** + * Constructs a new ProjectAttributesGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesGetRequest); + + /** ProjectAttributesGetRequest project. */ + public project: string; + + /** ProjectAttributesGetRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** + * Creates a new ProjectAttributesGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesGetRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesGetRequest): flyteidl.admin.ProjectAttributesGetRequest; + + /** + * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. + * @param message ProjectAttributesGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesGetRequest; + + /** + * Verifies a ProjectAttributesGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesGetResponse. */ + interface IProjectAttributesGetResponse { + + /** ProjectAttributesGetResponse attributes */ + attributes?: (flyteidl.admin.IProjectAttributes|null); + } + + /** Represents a ProjectAttributesGetResponse. */ + class ProjectAttributesGetResponse implements IProjectAttributesGetResponse { + + /** + * Constructs a new ProjectAttributesGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesGetResponse); + + /** ProjectAttributesGetResponse attributes. */ + public attributes?: (flyteidl.admin.IProjectAttributes|null); + + /** + * Creates a new ProjectAttributesGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesGetResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesGetResponse): flyteidl.admin.ProjectAttributesGetResponse; + + /** + * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. + * @param message ProjectAttributesGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesGetResponse; + + /** + * Verifies a ProjectAttributesGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesDeleteRequest. */ + interface IProjectAttributesDeleteRequest { + + /** ProjectAttributesDeleteRequest project */ + project?: (string|null); + + /** ProjectAttributesDeleteRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + } + + /** Represents a ProjectAttributesDeleteRequest. */ + class ProjectAttributesDeleteRequest implements IProjectAttributesDeleteRequest { + + /** + * Constructs a new ProjectAttributesDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesDeleteRequest); + + /** ProjectAttributesDeleteRequest project. */ + public project: string; + + /** ProjectAttributesDeleteRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** + * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesDeleteRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesDeleteRequest): flyteidl.admin.ProjectAttributesDeleteRequest; + + /** + * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. + * @param message ProjectAttributesDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesDeleteRequest; + + /** + * Verifies a ProjectAttributesDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesDeleteResponse. */ + interface IProjectAttributesDeleteResponse { + } + + /** Represents a ProjectAttributesDeleteResponse. */ + class ProjectAttributesDeleteResponse implements IProjectAttributesDeleteResponse { + + /** + * Constructs a new ProjectAttributesDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesDeleteResponse); + + /** + * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesDeleteResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesDeleteResponse): flyteidl.admin.ProjectAttributesDeleteResponse; + + /** + * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. + * @param message ProjectAttributesDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesDeleteResponse; + + /** + * Verifies a ProjectAttributesDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributes. */ + interface IProjectDomainAttributes { + + /** ProjectDomainAttributes project */ + project?: (string|null); + + /** ProjectDomainAttributes domain */ + domain?: (string|null); + + /** ProjectDomainAttributes matchingAttributes */ + matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + } + + /** Represents a ProjectDomainAttributes. */ + class ProjectDomainAttributes implements IProjectDomainAttributes { + + /** + * Constructs a new ProjectDomainAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributes); + + /** ProjectDomainAttributes project. */ + public project: string; + + /** ProjectDomainAttributes domain. */ + public domain: string; + + /** ProjectDomainAttributes matchingAttributes. */ + public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** + * Creates a new ProjectDomainAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributes instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributes): flyteidl.admin.ProjectDomainAttributes; + + /** + * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. + * @param message ProjectDomainAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributes; + + /** + * Verifies a ProjectDomainAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesUpdateRequest. */ + interface IProjectDomainAttributesUpdateRequest { + + /** ProjectDomainAttributesUpdateRequest attributes */ + attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + } + + /** Represents a ProjectDomainAttributesUpdateRequest. */ + class ProjectDomainAttributesUpdateRequest implements IProjectDomainAttributesUpdateRequest { + + /** + * Constructs a new ProjectDomainAttributesUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest); + + /** ProjectDomainAttributesUpdateRequest attributes. */ + public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + + /** + * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest): flyteidl.admin.ProjectDomainAttributesUpdateRequest; + + /** + * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. + * @param message ProjectDomainAttributesUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesUpdateRequest; + + /** + * Verifies a ProjectDomainAttributesUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesUpdateResponse. */ + interface IProjectDomainAttributesUpdateResponse { + } + + /** Represents a ProjectDomainAttributesUpdateResponse. */ + class ProjectDomainAttributesUpdateResponse implements IProjectDomainAttributesUpdateResponse { + + /** + * Constructs a new ProjectDomainAttributesUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse); + + /** + * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse): flyteidl.admin.ProjectDomainAttributesUpdateResponse; + + /** + * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. + * @param message ProjectDomainAttributesUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesUpdateResponse; + + /** + * Verifies a ProjectDomainAttributesUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesGetRequest. */ + interface IProjectDomainAttributesGetRequest { + + /** ProjectDomainAttributesGetRequest project */ + project?: (string|null); + + /** ProjectDomainAttributesGetRequest domain */ + domain?: (string|null); + + /** ProjectDomainAttributesGetRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + } + + /** Represents a ProjectDomainAttributesGetRequest. */ + class ProjectDomainAttributesGetRequest implements IProjectDomainAttributesGetRequest { + + /** + * Constructs a new ProjectDomainAttributesGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest); + + /** ProjectDomainAttributesGetRequest project. */ + public project: string; + + /** ProjectDomainAttributesGetRequest domain. */ + public domain: string; + + /** ProjectDomainAttributesGetRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** + * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesGetRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest): flyteidl.admin.ProjectDomainAttributesGetRequest; + + /** + * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. + * @param message ProjectDomainAttributesGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesGetRequest; + + /** + * Verifies a ProjectDomainAttributesGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesGetResponse. */ + interface IProjectDomainAttributesGetResponse { + + /** ProjectDomainAttributesGetResponse attributes */ + attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + } + + /** Represents a ProjectDomainAttributesGetResponse. */ + class ProjectDomainAttributesGetResponse implements IProjectDomainAttributesGetResponse { + + /** + * Constructs a new ProjectDomainAttributesGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse); + + /** ProjectDomainAttributesGetResponse attributes. */ + public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + + /** + * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesGetResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse): flyteidl.admin.ProjectDomainAttributesGetResponse; + + /** + * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. + * @param message ProjectDomainAttributesGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesGetResponse; + + /** + * Verifies a ProjectDomainAttributesGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesDeleteRequest. */ + interface IProjectDomainAttributesDeleteRequest { + + /** ProjectDomainAttributesDeleteRequest project */ + project?: (string|null); + + /** ProjectDomainAttributesDeleteRequest domain */ + domain?: (string|null); + + /** ProjectDomainAttributesDeleteRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + } + + /** Represents a ProjectDomainAttributesDeleteRequest. */ + class ProjectDomainAttributesDeleteRequest implements IProjectDomainAttributesDeleteRequest { + + /** + * Constructs a new ProjectDomainAttributesDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest); + + /** ProjectDomainAttributesDeleteRequest project. */ + public project: string; + + /** ProjectDomainAttributesDeleteRequest domain. */ + public domain: string; + + /** ProjectDomainAttributesDeleteRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** + * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesDeleteRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest): flyteidl.admin.ProjectDomainAttributesDeleteRequest; + + /** + * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. + * @param message ProjectDomainAttributesDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesDeleteRequest; + + /** + * Verifies a ProjectDomainAttributesDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesDeleteResponse. */ + interface IProjectDomainAttributesDeleteResponse { + } + + /** Represents a ProjectDomainAttributesDeleteResponse. */ + class ProjectDomainAttributesDeleteResponse implements IProjectDomainAttributesDeleteResponse { + + /** + * Constructs a new ProjectDomainAttributesDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse); + + /** + * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesDeleteResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse): flyteidl.admin.ProjectDomainAttributesDeleteResponse; + + /** + * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. + * @param message ProjectDomainAttributesDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesDeleteResponse; + + /** + * Verifies a ProjectDomainAttributesDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalGetOrCreateRequest. */ + interface ISignalGetOrCreateRequest { + + /** SignalGetOrCreateRequest id */ + id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalGetOrCreateRequest type */ + type?: (flyteidl.core.ILiteralType|null); + } + + /** Represents a SignalGetOrCreateRequest. */ + class SignalGetOrCreateRequest implements ISignalGetOrCreateRequest { + + /** + * Constructs a new SignalGetOrCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalGetOrCreateRequest); + + /** SignalGetOrCreateRequest id. */ + public id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalGetOrCreateRequest type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new SignalGetOrCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalGetOrCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ISignalGetOrCreateRequest): flyteidl.admin.SignalGetOrCreateRequest; + + /** + * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. + * @param message SignalGetOrCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalGetOrCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalGetOrCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalGetOrCreateRequest; + + /** + * Verifies a SignalGetOrCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalListRequest. */ + interface ISignalListRequest { + + /** SignalListRequest workflowExecutionId */ + workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** SignalListRequest limit */ + limit?: (number|null); + + /** SignalListRequest token */ + token?: (string|null); + + /** SignalListRequest filters */ + filters?: (string|null); + + /** SignalListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a SignalListRequest. */ + class SignalListRequest implements ISignalListRequest { + + /** + * Constructs a new SignalListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalListRequest); + + /** SignalListRequest workflowExecutionId. */ + public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** SignalListRequest limit. */ + public limit: number; + + /** SignalListRequest token. */ + public token: string; + + /** SignalListRequest filters. */ + public filters: string; + + /** SignalListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new SignalListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalListRequest instance + */ + public static create(properties?: flyteidl.admin.ISignalListRequest): flyteidl.admin.SignalListRequest; + + /** + * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. + * @param message SignalListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalListRequest; + + /** + * Verifies a SignalListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalList. */ + interface ISignalList { + + /** SignalList signals */ + signals?: (flyteidl.admin.ISignal[]|null); + + /** SignalList token */ + token?: (string|null); + } + + /** Represents a SignalList. */ + class SignalList implements ISignalList { + + /** + * Constructs a new SignalList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalList); + + /** SignalList signals. */ + public signals: flyteidl.admin.ISignal[]; + + /** SignalList token. */ + public token: string; + + /** + * Creates a new SignalList instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalList instance + */ + public static create(properties?: flyteidl.admin.ISignalList): flyteidl.admin.SignalList; + + /** + * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. + * @param message SignalList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalList; + + /** + * Verifies a SignalList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalSetRequest. */ + interface ISignalSetRequest { + + /** SignalSetRequest id */ + id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalSetRequest value */ + value?: (flyteidl.core.ILiteral|null); + } + + /** Represents a SignalSetRequest. */ + class SignalSetRequest implements ISignalSetRequest { + + /** + * Constructs a new SignalSetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalSetRequest); + + /** SignalSetRequest id. */ + public id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalSetRequest value. */ + public value?: (flyteidl.core.ILiteral|null); + + /** + * Creates a new SignalSetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalSetRequest instance + */ + public static create(properties?: flyteidl.admin.ISignalSetRequest): flyteidl.admin.SignalSetRequest; + + /** + * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. + * @param message SignalSetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalSetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalSetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalSetRequest; + + /** + * Verifies a SignalSetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalSetResponse. */ + interface ISignalSetResponse { + } + + /** Represents a SignalSetResponse. */ + class SignalSetResponse implements ISignalSetResponse { + + /** + * Constructs a new SignalSetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalSetResponse); + + /** + * Creates a new SignalSetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalSetResponse instance + */ + public static create(properties?: flyteidl.admin.ISignalSetResponse): flyteidl.admin.SignalSetResponse; + + /** + * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. + * @param message SignalSetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalSetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalSetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalSetResponse; + + /** + * Verifies a SignalSetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Signal. */ + interface ISignal { + + /** Signal id */ + id?: (flyteidl.core.ISignalIdentifier|null); + + /** Signal type */ + type?: (flyteidl.core.ILiteralType|null); + + /** Signal value */ + value?: (flyteidl.core.ILiteral|null); + } + + /** Represents a Signal. */ + class Signal implements ISignal { + + /** + * Constructs a new Signal. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignal); + + /** Signal id. */ + public id?: (flyteidl.core.ISignalIdentifier|null); + + /** Signal type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** Signal value. */ + public value?: (flyteidl.core.ILiteral|null); + + /** + * Creates a new Signal instance using the specified properties. + * @param [properties] Properties to set + * @returns Signal instance + */ + public static create(properties?: flyteidl.admin.ISignal): flyteidl.admin.Signal; + + /** + * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. + * @param message Signal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignal, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Signal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Signal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Signal; + + /** + * Verifies a Signal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateRequest. */ + interface ITaskCreateRequest { + + /** TaskCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** TaskCreateRequest spec */ + spec?: (flyteidl.admin.ITaskSpec|null); + } + + /** Represents a TaskCreateRequest. */ + class TaskCreateRequest implements ITaskCreateRequest { + + /** + * Constructs a new TaskCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskCreateRequest); + + /** TaskCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** TaskCreateRequest spec. */ + public spec?: (flyteidl.admin.ITaskSpec|null); + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskCreateRequest): flyteidl.admin.TaskCreateRequest; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. + * @param message TaskCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateRequest; + + /** + * Verifies a TaskCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateResponse. */ + interface ITaskCreateResponse { + } + + /** Represents a TaskCreateResponse. */ + class TaskCreateResponse implements ITaskCreateResponse { + + /** + * Constructs a new TaskCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskCreateResponse); + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskCreateResponse): flyteidl.admin.TaskCreateResponse; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. + * @param message TaskCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateResponse; + + /** + * Verifies a TaskCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Task. */ + interface ITask { + + /** Task id */ + id?: (flyteidl.core.IIdentifier|null); + + /** Task closure */ + closure?: (flyteidl.admin.ITaskClosure|null); + + /** Task shortDescription */ + shortDescription?: (string|null); + } + + /** Represents a Task. */ + class Task implements ITask { + + /** + * Constructs a new Task. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITask); + + /** Task id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** Task closure. */ + public closure?: (flyteidl.admin.ITaskClosure|null); + + /** Task shortDescription. */ + public shortDescription: string; + + /** + * Creates a new Task instance using the specified properties. + * @param [properties] Properties to set + * @returns Task instance + */ + public static create(properties?: flyteidl.admin.ITask): flyteidl.admin.Task; + + /** + * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. + * @param message Task message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Task message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Task + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Task; + + /** + * Verifies a Task message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskList. */ + interface ITaskList { + + /** TaskList tasks */ + tasks?: (flyteidl.admin.ITask[]|null); + + /** TaskList token */ + token?: (string|null); + } + + /** Represents a TaskList. */ + class TaskList implements ITaskList { + + /** + * Constructs a new TaskList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskList); + + /** TaskList tasks. */ + public tasks: flyteidl.admin.ITask[]; + + /** TaskList token. */ + public token: string; + + /** + * Creates a new TaskList instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskList instance + */ + public static create(properties?: flyteidl.admin.ITaskList): flyteidl.admin.TaskList; + + /** + * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. + * @param message TaskList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskList; + + /** + * Verifies a TaskList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskSpec. */ + interface ITaskSpec { + + /** TaskSpec template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskSpec description */ + description?: (flyteidl.admin.IDescriptionEntity|null); + } + + /** Represents a TaskSpec. */ + class TaskSpec implements ITaskSpec { + + /** + * Constructs a new TaskSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskSpec); + + /** TaskSpec template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskSpec description. */ + public description?: (flyteidl.admin.IDescriptionEntity|null); + + /** + * Creates a new TaskSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskSpec instance + */ + public static create(properties?: flyteidl.admin.ITaskSpec): flyteidl.admin.TaskSpec; + + /** + * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. + * @param message TaskSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskSpec; + + /** + * Verifies a TaskSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskClosure. */ + interface ITaskClosure { + + /** TaskClosure compiledTask */ + compiledTask?: (flyteidl.core.ICompiledTask|null); + + /** TaskClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a TaskClosure. */ + class TaskClosure implements ITaskClosure { + + /** + * Constructs a new TaskClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskClosure); + + /** TaskClosure compiledTask. */ + public compiledTask?: (flyteidl.core.ICompiledTask|null); + + /** TaskClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new TaskClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskClosure instance + */ + public static create(properties?: flyteidl.admin.ITaskClosure): flyteidl.admin.TaskClosure; + + /** + * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. + * @param message TaskClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskClosure; + + /** + * Verifies a TaskClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetRequest. */ + interface ITaskExecutionGetRequest { + + /** TaskExecutionGetRequest id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a TaskExecutionGetRequest. */ + class TaskExecutionGetRequest implements ITaskExecutionGetRequest { + + /** + * Constructs a new TaskExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetRequest); + + /** TaskExecutionGetRequest id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new TaskExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetRequest): flyteidl.admin.TaskExecutionGetRequest; + + /** + * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. + * @param message TaskExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetRequest; + + /** + * Verifies a TaskExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionListRequest. */ + interface ITaskExecutionListRequest { + + /** TaskExecutionListRequest nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionListRequest limit */ + limit?: (number|null); + + /** TaskExecutionListRequest token */ + token?: (string|null); + + /** TaskExecutionListRequest filters */ + filters?: (string|null); + + /** TaskExecutionListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a TaskExecutionListRequest. */ + class TaskExecutionListRequest implements ITaskExecutionListRequest { + + /** + * Constructs a new TaskExecutionListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionListRequest); + + /** TaskExecutionListRequest nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionListRequest limit. */ + public limit: number; + + /** TaskExecutionListRequest token. */ + public token: string; + + /** TaskExecutionListRequest filters. */ + public filters: string; + + /** TaskExecutionListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new TaskExecutionListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionListRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionListRequest): flyteidl.admin.TaskExecutionListRequest; + + /** + * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. + * @param message TaskExecutionListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionListRequest; + + /** + * Verifies a TaskExecutionListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecution. */ + interface ITaskExecution { + + /** TaskExecution id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecution inputUri */ + inputUri?: (string|null); + + /** TaskExecution closure */ + closure?: (flyteidl.admin.ITaskExecutionClosure|null); + + /** TaskExecution isParent */ + isParent?: (boolean|null); + } + + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { + + /** + * Constructs a new TaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecution); + + /** TaskExecution id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecution inputUri. */ + public inputUri: string; + + /** TaskExecution closure. */ + public closure?: (flyteidl.admin.ITaskExecutionClosure|null); + + /** TaskExecution isParent. */ + public isParent: boolean; + + /** + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance + */ + public static create(properties?: flyteidl.admin.ITaskExecution): flyteidl.admin.TaskExecution; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecution; + + /** + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionList. */ + interface ITaskExecutionList { + + /** TaskExecutionList taskExecutions */ + taskExecutions?: (flyteidl.admin.ITaskExecution[]|null); + + /** TaskExecutionList token */ + token?: (string|null); + } + + /** Represents a TaskExecutionList. */ + class TaskExecutionList implements ITaskExecutionList { + + /** + * Constructs a new TaskExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionList); + + /** TaskExecutionList taskExecutions. */ + public taskExecutions: flyteidl.admin.ITaskExecution[]; + + /** TaskExecutionList token. */ + public token: string; + + /** + * Creates a new TaskExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionList instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionList): flyteidl.admin.TaskExecutionList; + + /** + * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. + * @param message TaskExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionList; + + /** + * Verifies a TaskExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionClosure. */ + interface ITaskExecutionClosure { + + /** TaskExecutionClosure outputUri */ + outputUri?: (string|null); + + /** TaskExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionClosure outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionClosure phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** TaskExecutionClosure logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + + /** TaskExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** TaskExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure customInfo */ + customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionClosure reason */ + reason?: (string|null); + + /** TaskExecutionClosure taskType */ + taskType?: (string|null); + + /** TaskExecutionClosure metadata */ + metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionClosure eventVersion */ + eventVersion?: (number|null); + + /** TaskExecutionClosure reasons */ + reasons?: (flyteidl.admin.IReason[]|null); + } + + /** Represents a TaskExecutionClosure. */ + class TaskExecutionClosure implements ITaskExecutionClosure { + + /** + * Constructs a new TaskExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionClosure); + + /** TaskExecutionClosure outputUri. */ + public outputUri: string; + + /** TaskExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionClosure outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionClosure phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** TaskExecutionClosure logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** TaskExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** TaskExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure customInfo. */ + public customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionClosure reason. */ + public reason: string; + + /** TaskExecutionClosure taskType. */ + public taskType: string; + + /** TaskExecutionClosure metadata. */ + public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionClosure eventVersion. */ + public eventVersion: number; + + /** TaskExecutionClosure reasons. */ + public reasons: flyteidl.admin.IReason[]; + + /** TaskExecutionClosure outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** + * Creates a new TaskExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionClosure): flyteidl.admin.TaskExecutionClosure; + + /** + * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. + * @param message TaskExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionClosure; + + /** + * Verifies a TaskExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Reason. */ + interface IReason { + + /** Reason occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** Reason message */ + message?: (string|null); + } + + /** Represents a Reason. */ + class Reason implements IReason { + + /** + * Constructs a new Reason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IReason); + + /** Reason occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** Reason message. */ + public message: string; + + /** + * Creates a new Reason instance using the specified properties. + * @param [properties] Properties to set + * @returns Reason instance + */ + public static create(properties?: flyteidl.admin.IReason): flyteidl.admin.Reason; + + /** + * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. + * @param message Reason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Reason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Reason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Reason; + + /** + * Verifies a Reason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetDataRequest. */ + interface ITaskExecutionGetDataRequest { + + /** TaskExecutionGetDataRequest id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a TaskExecutionGetDataRequest. */ + class TaskExecutionGetDataRequest implements ITaskExecutionGetDataRequest { + + /** + * Constructs a new TaskExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetDataRequest); + + /** TaskExecutionGetDataRequest id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new TaskExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetDataRequest): flyteidl.admin.TaskExecutionGetDataRequest; + + /** + * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. + * @param message TaskExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataRequest; + + /** + * Verifies a TaskExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetDataResponse. */ + interface ITaskExecutionGetDataResponse { + + /** TaskExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse fullInputs */ + fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse fullOutputs */ + fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse flyteUrls */ + flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + } + + /** Represents a TaskExecutionGetDataResponse. */ + class TaskExecutionGetDataResponse implements ITaskExecutionGetDataResponse { + + /** + * Constructs a new TaskExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetDataResponse); + + /** TaskExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse fullInputs. */ + public fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse fullOutputs. */ + public fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse flyteUrls. */ + public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + + /** + * Creates a new TaskExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetDataResponse): flyteidl.admin.TaskExecutionGetDataResponse; + + /** + * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. + * @param message TaskExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataResponse; + + /** + * Verifies a TaskExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetVersionResponse. */ + interface IGetVersionResponse { + + /** GetVersionResponse controlPlaneVersion */ + controlPlaneVersion?: (flyteidl.admin.IVersion|null); + } + + /** Represents a GetVersionResponse. */ + class GetVersionResponse implements IGetVersionResponse { + + /** + * Constructs a new GetVersionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetVersionResponse); + + /** GetVersionResponse controlPlaneVersion. */ + public controlPlaneVersion?: (flyteidl.admin.IVersion|null); + + /** + * Creates a new GetVersionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionResponse instance + */ + public static create(properties?: flyteidl.admin.IGetVersionResponse): flyteidl.admin.GetVersionResponse; + + /** + * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. + * @param message GetVersionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetVersionResponse; + + /** + * Verifies a GetVersionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Version. */ + interface IVersion { + + /** Version Build */ + Build?: (string|null); + + /** Version Version */ + Version?: (string|null); + + /** Version BuildTime */ + BuildTime?: (string|null); + } + + /** Represents a Version. */ + class Version implements IVersion { + + /** + * Constructs a new Version. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IVersion); + + /** Version Build. */ + public Build: string; + + /** Version Version. */ + public Version: string; + + /** Version BuildTime. */ + public BuildTime: string; + + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: flyteidl.admin.IVersion): flyteidl.admin.Version; + + /** + * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Version message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Version; + + /** + * Verifies a Version message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { + } + + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { + + /** + * Constructs a new GetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetVersionRequest); + + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionRequest instance + */ + public static create(properties?: flyteidl.admin.IGetVersionRequest): flyteidl.admin.GetVersionRequest; + + /** + * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetVersionRequest; + + /** + * Verifies a GetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowCreateRequest. */ + interface IWorkflowCreateRequest { + + /** WorkflowCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowCreateRequest spec */ + spec?: (flyteidl.admin.IWorkflowSpec|null); + } + + /** Represents a WorkflowCreateRequest. */ + class WorkflowCreateRequest implements IWorkflowCreateRequest { + + /** + * Constructs a new WorkflowCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowCreateRequest); + + /** WorkflowCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowCreateRequest spec. */ + public spec?: (flyteidl.admin.IWorkflowSpec|null); + + /** + * Creates a new WorkflowCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowCreateRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowCreateRequest): flyteidl.admin.WorkflowCreateRequest; + + /** + * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. + * @param message WorkflowCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateRequest; + + /** + * Verifies a WorkflowCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowCreateResponse. */ + interface IWorkflowCreateResponse { + } + + /** Represents a WorkflowCreateResponse. */ + class WorkflowCreateResponse implements IWorkflowCreateResponse { + + /** + * Constructs a new WorkflowCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowCreateResponse); + + /** + * Creates a new WorkflowCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowCreateResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowCreateResponse): flyteidl.admin.WorkflowCreateResponse; + + /** + * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. + * @param message WorkflowCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateResponse; + + /** + * Verifies a WorkflowCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Workflow. */ + interface IWorkflow { + + /** Workflow id */ + id?: (flyteidl.core.IIdentifier|null); + + /** Workflow closure */ + closure?: (flyteidl.admin.IWorkflowClosure|null); + + /** Workflow shortDescription */ + shortDescription?: (string|null); + } + + /** Represents a Workflow. */ + class Workflow implements IWorkflow { + + /** + * Constructs a new Workflow. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflow); + + /** Workflow id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** Workflow closure. */ + public closure?: (flyteidl.admin.IWorkflowClosure|null); + + /** Workflow shortDescription. */ + public shortDescription: string; + + /** + * Creates a new Workflow instance using the specified properties. + * @param [properties] Properties to set + * @returns Workflow instance + */ + public static create(properties?: flyteidl.admin.IWorkflow): flyteidl.admin.Workflow; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Workflow; + + /** + * Verifies a Workflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowList. */ + interface IWorkflowList { + + /** WorkflowList workflows */ + workflows?: (flyteidl.admin.IWorkflow[]|null); + + /** WorkflowList token */ + token?: (string|null); + } + + /** Represents a WorkflowList. */ + class WorkflowList implements IWorkflowList { + + /** + * Constructs a new WorkflowList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowList); + + /** WorkflowList workflows. */ + public workflows: flyteidl.admin.IWorkflow[]; + + /** WorkflowList token. */ + public token: string; + + /** + * Creates a new WorkflowList instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowList instance + */ + public static create(properties?: flyteidl.admin.IWorkflowList): flyteidl.admin.WorkflowList; + + /** + * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. + * @param message WorkflowList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowList; + + /** + * Verifies a WorkflowList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowSpec. */ + interface IWorkflowSpec { + + /** WorkflowSpec template */ + template?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowSpec subWorkflows */ + subWorkflows?: (flyteidl.core.IWorkflowTemplate[]|null); + + /** WorkflowSpec description */ + description?: (flyteidl.admin.IDescriptionEntity|null); + } + + /** Represents a WorkflowSpec. */ + class WorkflowSpec implements IWorkflowSpec { + + /** + * Constructs a new WorkflowSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowSpec); + + /** WorkflowSpec template. */ + public template?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowSpec subWorkflows. */ + public subWorkflows: flyteidl.core.IWorkflowTemplate[]; + + /** WorkflowSpec description. */ + public description?: (flyteidl.admin.IDescriptionEntity|null); + + /** + * Creates a new WorkflowSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowSpec instance + */ + public static create(properties?: flyteidl.admin.IWorkflowSpec): flyteidl.admin.WorkflowSpec; + + /** + * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. + * @param message WorkflowSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowSpec; + + /** + * Verifies a WorkflowSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowClosure. */ + interface IWorkflowClosure { + + /** WorkflowClosure compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** WorkflowClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a WorkflowClosure. */ + class WorkflowClosure implements IWorkflowClosure { + + /** + * Constructs a new WorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowClosure); + + /** WorkflowClosure compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** WorkflowClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowClosure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowClosure): flyteidl.admin.WorkflowClosure; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. + * @param message WorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowClosure; + + /** + * Verifies a WorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowErrorExistsDifferentStructure. */ + interface IWorkflowErrorExistsDifferentStructure { + + /** WorkflowErrorExistsDifferentStructure id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowErrorExistsDifferentStructure. */ + class WorkflowErrorExistsDifferentStructure implements IWorkflowErrorExistsDifferentStructure { + + /** + * Constructs a new WorkflowErrorExistsDifferentStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure); + + /** WorkflowErrorExistsDifferentStructure id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowErrorExistsDifferentStructure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure): flyteidl.admin.WorkflowErrorExistsDifferentStructure; + + /** + * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. + * @param message WorkflowErrorExistsDifferentStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowErrorExistsDifferentStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowErrorExistsDifferentStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsDifferentStructure; + + /** + * Verifies a WorkflowErrorExistsDifferentStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowErrorExistsIdenticalStructure. */ + interface IWorkflowErrorExistsIdenticalStructure { + + /** WorkflowErrorExistsIdenticalStructure id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowErrorExistsIdenticalStructure. */ + class WorkflowErrorExistsIdenticalStructure implements IWorkflowErrorExistsIdenticalStructure { + + /** + * Constructs a new WorkflowErrorExistsIdenticalStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure); + + /** WorkflowErrorExistsIdenticalStructure id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowErrorExistsIdenticalStructure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; + + /** + * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. + * @param message WorkflowErrorExistsIdenticalStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowErrorExistsIdenticalStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; + + /** + * Verifies a WorkflowErrorExistsIdenticalStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateWorkflowFailureReason. */ + interface ICreateWorkflowFailureReason { + + /** CreateWorkflowFailureReason existsDifferentStructure */ + existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); + + /** CreateWorkflowFailureReason existsIdenticalStructure */ + existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); + } + + /** Represents a CreateWorkflowFailureReason. */ + class CreateWorkflowFailureReason implements ICreateWorkflowFailureReason { + + /** + * Constructs a new CreateWorkflowFailureReason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateWorkflowFailureReason); + + /** CreateWorkflowFailureReason existsDifferentStructure. */ + public existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); + + /** CreateWorkflowFailureReason existsIdenticalStructure. */ + public existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); + + /** CreateWorkflowFailureReason reason. */ + public reason?: ("existsDifferentStructure"|"existsIdenticalStructure"); + + /** + * Creates a new CreateWorkflowFailureReason instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateWorkflowFailureReason instance + */ + public static create(properties?: flyteidl.admin.ICreateWorkflowFailureReason): flyteidl.admin.CreateWorkflowFailureReason; + + /** + * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. + * @param message CreateWorkflowFailureReason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateWorkflowFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateWorkflowFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateWorkflowFailureReason; + + /** + * Verifies a CreateWorkflowFailureReason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributes. */ + interface IWorkflowAttributes { + + /** WorkflowAttributes project */ + project?: (string|null); + + /** WorkflowAttributes domain */ + domain?: (string|null); + + /** WorkflowAttributes workflow */ + workflow?: (string|null); + + /** WorkflowAttributes matchingAttributes */ + matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + } + + /** Represents a WorkflowAttributes. */ + class WorkflowAttributes implements IWorkflowAttributes { + + /** + * Constructs a new WorkflowAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributes); + + /** WorkflowAttributes project. */ + public project: string; + + /** WorkflowAttributes domain. */ + public domain: string; + + /** WorkflowAttributes workflow. */ + public workflow: string; + + /** WorkflowAttributes matchingAttributes. */ + public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** + * Creates a new WorkflowAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributes instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributes): flyteidl.admin.WorkflowAttributes; + + /** + * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. + * @param message WorkflowAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributes; + + /** + * Verifies a WorkflowAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesUpdateRequest. */ + interface IWorkflowAttributesUpdateRequest { + + /** WorkflowAttributesUpdateRequest attributes */ + attributes?: (flyteidl.admin.IWorkflowAttributes|null); + } + + /** Represents a WorkflowAttributesUpdateRequest. */ + class WorkflowAttributesUpdateRequest implements IWorkflowAttributesUpdateRequest { + + /** + * Constructs a new WorkflowAttributesUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest); + + /** WorkflowAttributesUpdateRequest attributes. */ + public attributes?: (flyteidl.admin.IWorkflowAttributes|null); + + /** + * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest): flyteidl.admin.WorkflowAttributesUpdateRequest; + + /** + * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. + * @param message WorkflowAttributesUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesUpdateRequest; + + /** + * Verifies a WorkflowAttributesUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesUpdateResponse. */ + interface IWorkflowAttributesUpdateResponse { + } + + /** Represents a WorkflowAttributesUpdateResponse. */ + class WorkflowAttributesUpdateResponse implements IWorkflowAttributesUpdateResponse { + + /** + * Constructs a new WorkflowAttributesUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse); + + /** + * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse): flyteidl.admin.WorkflowAttributesUpdateResponse; + + /** + * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. + * @param message WorkflowAttributesUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesUpdateResponse; + + /** + * Verifies a WorkflowAttributesUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesGetRequest. */ + interface IWorkflowAttributesGetRequest { + + /** WorkflowAttributesGetRequest project */ + project?: (string|null); + + /** WorkflowAttributesGetRequest domain */ + domain?: (string|null); + + /** WorkflowAttributesGetRequest workflow */ + workflow?: (string|null); + + /** WorkflowAttributesGetRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + } + + /** Represents a WorkflowAttributesGetRequest. */ + class WorkflowAttributesGetRequest implements IWorkflowAttributesGetRequest { + + /** + * Constructs a new WorkflowAttributesGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesGetRequest); + + /** WorkflowAttributesGetRequest project. */ + public project: string; + + /** WorkflowAttributesGetRequest domain. */ + public domain: string; + + /** WorkflowAttributesGetRequest workflow. */ + public workflow: string; + + /** WorkflowAttributesGetRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** + * Creates a new WorkflowAttributesGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesGetRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesGetRequest): flyteidl.admin.WorkflowAttributesGetRequest; + + /** + * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. + * @param message WorkflowAttributesGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesGetRequest; + + /** + * Verifies a WorkflowAttributesGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesGetResponse. */ + interface IWorkflowAttributesGetResponse { + + /** WorkflowAttributesGetResponse attributes */ + attributes?: (flyteidl.admin.IWorkflowAttributes|null); + } + + /** Represents a WorkflowAttributesGetResponse. */ + class WorkflowAttributesGetResponse implements IWorkflowAttributesGetResponse { + + /** + * Constructs a new WorkflowAttributesGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesGetResponse); + + /** WorkflowAttributesGetResponse attributes. */ + public attributes?: (flyteidl.admin.IWorkflowAttributes|null); + + /** + * Creates a new WorkflowAttributesGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesGetResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesGetResponse): flyteidl.admin.WorkflowAttributesGetResponse; + + /** + * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. + * @param message WorkflowAttributesGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesGetResponse; + + /** + * Verifies a WorkflowAttributesGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesDeleteRequest. */ + interface IWorkflowAttributesDeleteRequest { + + /** WorkflowAttributesDeleteRequest project */ + project?: (string|null); + + /** WorkflowAttributesDeleteRequest domain */ + domain?: (string|null); + + /** WorkflowAttributesDeleteRequest workflow */ + workflow?: (string|null); + + /** WorkflowAttributesDeleteRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + } + + /** Represents a WorkflowAttributesDeleteRequest. */ + class WorkflowAttributesDeleteRequest implements IWorkflowAttributesDeleteRequest { + + /** + * Constructs a new WorkflowAttributesDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest); + + /** WorkflowAttributesDeleteRequest project. */ + public project: string; + + /** WorkflowAttributesDeleteRequest domain. */ + public domain: string; + + /** WorkflowAttributesDeleteRequest workflow. */ + public workflow: string; + + /** WorkflowAttributesDeleteRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** + * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesDeleteRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest): flyteidl.admin.WorkflowAttributesDeleteRequest; + + /** + * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. + * @param message WorkflowAttributesDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesDeleteRequest; + + /** + * Verifies a WorkflowAttributesDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesDeleteResponse. */ + interface IWorkflowAttributesDeleteResponse { + } + + /** Represents a WorkflowAttributesDeleteResponse. */ + class WorkflowAttributesDeleteResponse implements IWorkflowAttributesDeleteResponse { + + /** + * Constructs a new WorkflowAttributesDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse); + + /** + * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesDeleteResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse): flyteidl.admin.WorkflowAttributesDeleteResponse; + + /** + * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. + * @param message WorkflowAttributesDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesDeleteResponse; + + /** + * Verifies a WorkflowAttributesDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Namespace service. */ + namespace service { + + /** Represents an AdminService */ + class AdminService extends $protobuf.rpc.Service { + + /** + * Constructs a new AdminService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AdminService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AdminService; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskCreateResponse + */ + public createTask(request: flyteidl.admin.ITaskCreateRequest, callback: flyteidl.service.AdminService.CreateTaskCallback): void; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @returns Promise + */ + public createTask(request: flyteidl.admin.ITaskCreateRequest): Promise; + + /** + * Calls GetTask. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Task + */ + public getTask(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetTaskCallback): void; + + /** + * Calls GetTask. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getTask(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListTaskIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListTaskIdsCallback): void; + + /** + * Calls ListTaskIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListTasks. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskList + */ + public listTasks(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListTasksCallback): void; + + /** + * Calls ListTasks. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listTasks(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls CreateWorkflow. + * @param request WorkflowCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowCreateResponse + */ + public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest, callback: flyteidl.service.AdminService.CreateWorkflowCallback): void; + + /** + * Calls CreateWorkflow. + * @param request WorkflowCreateRequest message or plain object + * @returns Promise + */ + public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest): Promise; + + /** + * Calls GetWorkflow. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Workflow + */ + public getWorkflow(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetWorkflowCallback): void; + + /** + * Calls GetWorkflow. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getWorkflow(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListWorkflowIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListWorkflowIdsCallback): void; + + /** + * Calls ListWorkflowIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListWorkflows. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowList + */ + public listWorkflows(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListWorkflowsCallback): void; + + /** + * Calls ListWorkflows. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listWorkflows(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls CreateLaunchPlan. + * @param request LaunchPlanCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse + */ + public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest, callback: flyteidl.service.AdminService.CreateLaunchPlanCallback): void; + + /** + * Calls CreateLaunchPlan. + * @param request LaunchPlanCreateRequest message or plain object + * @returns Promise + */ + public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest): Promise; + + /** + * Calls GetLaunchPlan. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlan + */ + public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetLaunchPlanCallback): void; + + /** + * Calls GetLaunchPlan. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls GetActiveLaunchPlan. + * @param request ActiveLaunchPlanRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlan + */ + public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest, callback: flyteidl.service.AdminService.GetActiveLaunchPlanCallback): void; + + /** + * Calls GetActiveLaunchPlan. + * @param request ActiveLaunchPlanRequest message or plain object + * @returns Promise + */ + public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest): Promise; + + /** + * Calls ListActiveLaunchPlans. + * @param request ActiveLaunchPlanListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanList + */ + public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest, callback: flyteidl.service.AdminService.ListActiveLaunchPlansCallback): void; + + /** + * Calls ListActiveLaunchPlans. + * @param request ActiveLaunchPlanListRequest message or plain object + * @returns Promise + */ + public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest): Promise; + + /** + * Calls ListLaunchPlanIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListLaunchPlanIdsCallback): void; + + /** + * Calls ListLaunchPlanIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListLaunchPlans. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanList + */ + public listLaunchPlans(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListLaunchPlansCallback): void; + + /** + * Calls ListLaunchPlans. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listLaunchPlans(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls UpdateLaunchPlan. + * @param request LaunchPlanUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse + */ + public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest, callback: flyteidl.service.AdminService.UpdateLaunchPlanCallback): void; + + /** + * Calls UpdateLaunchPlan. + * @param request LaunchPlanUpdateRequest message or plain object + * @returns Promise + */ + public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest): Promise; + + /** + * Calls CreateExecution. + * @param request ExecutionCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public createExecution(request: flyteidl.admin.IExecutionCreateRequest, callback: flyteidl.service.AdminService.CreateExecutionCallback): void; + + /** + * Calls CreateExecution. + * @param request ExecutionCreateRequest message or plain object + * @returns Promise + */ + public createExecution(request: flyteidl.admin.IExecutionCreateRequest): Promise; + + /** + * Calls RelaunchExecution. + * @param request ExecutionRelaunchRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest, callback: flyteidl.service.AdminService.RelaunchExecutionCallback): void; + + /** + * Calls RelaunchExecution. + * @param request ExecutionRelaunchRequest message or plain object + * @returns Promise + */ + public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest): Promise; + + /** + * Calls RecoverExecution. + * @param request ExecutionRecoverRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest, callback: flyteidl.service.AdminService.RecoverExecutionCallback): void; + + /** + * Calls RecoverExecution. + * @param request ExecutionRecoverRequest message or plain object + * @returns Promise + */ + public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest): Promise; + + /** + * Calls GetExecution. + * @param request WorkflowExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution + */ + public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest, callback: flyteidl.service.AdminService.GetExecutionCallback): void; + + /** + * Calls GetExecution. + * @param request WorkflowExecutionGetRequest message or plain object + * @returns Promise + */ + public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest): Promise; + + /** + * Calls UpdateExecution. + * @param request ExecutionUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionUpdateResponse + */ + public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest, callback: flyteidl.service.AdminService.UpdateExecutionCallback): void; + + /** + * Calls UpdateExecution. + * @param request ExecutionUpdateRequest message or plain object + * @returns Promise + */ + public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest): Promise; + + /** + * Calls GetExecutionData. + * @param request WorkflowExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse + */ + public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetExecutionDataCallback): void; + + /** + * Calls GetExecutionData. + * @param request WorkflowExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest): Promise; + + /** + * Calls ListExecutions. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionList + */ + public listExecutions(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListExecutionsCallback): void; + + /** + * Calls ListExecutions. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listExecutions(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls TerminateExecution. + * @param request ExecutionTerminateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionTerminateResponse + */ + public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest, callback: flyteidl.service.AdminService.TerminateExecutionCallback): void; + + /** + * Calls TerminateExecution. + * @param request ExecutionTerminateRequest message or plain object + * @returns Promise + */ + public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest): Promise; + + /** + * Calls GetNodeExecution. + * @param request NodeExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecution + */ + public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest, callback: flyteidl.service.AdminService.GetNodeExecutionCallback): void; + + /** + * Calls GetNodeExecution. + * @param request NodeExecutionGetRequest message or plain object + * @returns Promise + */ + public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest): Promise; + + /** + * Calls ListNodeExecutions. + * @param request NodeExecutionListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionList + */ + public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsCallback): void; + + /** + * Calls ListNodeExecutions. + * @param request NodeExecutionListRequest message or plain object + * @returns Promise + */ + public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest): Promise; + + /** + * Calls ListNodeExecutionsForTask. + * @param request NodeExecutionForTaskListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionList + */ + public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback): void; + + /** + * Calls ListNodeExecutionsForTask. + * @param request NodeExecutionForTaskListRequest message or plain object + * @returns Promise + */ + public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest): Promise; + + /** + * Calls GetNodeExecutionData. + * @param request NodeExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse + */ + public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetNodeExecutionDataCallback): void; + + /** + * Calls GetNodeExecutionData. + * @param request NodeExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest): Promise; + + /** + * Calls RegisterProject. + * @param request ProjectRegisterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectRegisterResponse + */ + public registerProject(request: flyteidl.admin.IProjectRegisterRequest, callback: flyteidl.service.AdminService.RegisterProjectCallback): void; + + /** + * Calls RegisterProject. + * @param request ProjectRegisterRequest message or plain object + * @returns Promise + */ + public registerProject(request: flyteidl.admin.IProjectRegisterRequest): Promise; + + /** + * Calls UpdateProject. + * @param request Project message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectUpdateResponse + */ + public updateProject(request: flyteidl.admin.IProject, callback: flyteidl.service.AdminService.UpdateProjectCallback): void; + + /** + * Calls UpdateProject. + * @param request Project message or plain object + * @returns Promise + */ + public updateProject(request: flyteidl.admin.IProject): Promise; + + /** + * Calls ListProjects. + * @param request ProjectListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Projects + */ + public listProjects(request: flyteidl.admin.IProjectListRequest, callback: flyteidl.service.AdminService.ListProjectsCallback): void; + + /** + * Calls ListProjects. + * @param request ProjectListRequest message or plain object + * @returns Promise + */ + public listProjects(request: flyteidl.admin.IProjectListRequest): Promise; + + /** + * Calls CreateWorkflowEvent. + * @param request WorkflowExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse + */ + public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest, callback: flyteidl.service.AdminService.CreateWorkflowEventCallback): void; + + /** + * Calls CreateWorkflowEvent. + * @param request WorkflowExecutionEventRequest message or plain object + * @returns Promise + */ + public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest): Promise; + + /** + * Calls CreateNodeEvent. + * @param request NodeExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionEventResponse + */ + public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest, callback: flyteidl.service.AdminService.CreateNodeEventCallback): void; + + /** + * Calls CreateNodeEvent. + * @param request NodeExecutionEventRequest message or plain object + * @returns Promise + */ + public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest): Promise; + + /** + * Calls CreateTaskEvent. + * @param request TaskExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionEventResponse + */ + public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest, callback: flyteidl.service.AdminService.CreateTaskEventCallback): void; + + /** + * Calls CreateTaskEvent. + * @param request TaskExecutionEventRequest message or plain object + * @returns Promise + */ + public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest): Promise; + + /** + * Calls GetTaskExecution. + * @param request TaskExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecution + */ + public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest, callback: flyteidl.service.AdminService.GetTaskExecutionCallback): void; + + /** + * Calls GetTaskExecution. + * @param request TaskExecutionGetRequest message or plain object + * @returns Promise + */ + public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest): Promise; + + /** + * Calls ListTaskExecutions. + * @param request TaskExecutionListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionList + */ + public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest, callback: flyteidl.service.AdminService.ListTaskExecutionsCallback): void; + + /** + * Calls ListTaskExecutions. + * @param request TaskExecutionListRequest message or plain object + * @returns Promise + */ + public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest): Promise; + + /** + * Calls GetTaskExecutionData. + * @param request TaskExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse + */ + public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetTaskExecutionDataCallback): void; + + /** + * Calls GetTaskExecutionData. + * @param request TaskExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest): Promise; + + /** + * Calls UpdateProjectDomainAttributes. + * @param request ProjectDomainAttributesUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse + */ + public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback): void; + + /** + * Calls UpdateProjectDomainAttributes. + * @param request ProjectDomainAttributesUpdateRequest message or plain object + * @returns Promise + */ + public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest): Promise; + + /** + * Calls GetProjectDomainAttributes. + * @param request ProjectDomainAttributesGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse + */ + public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectDomainAttributesCallback): void; + + /** + * Calls GetProjectDomainAttributes. + * @param request ProjectDomainAttributesGetRequest message or plain object + * @returns Promise + */ + public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest): Promise; + + /** + * Calls DeleteProjectDomainAttributes. + * @param request ProjectDomainAttributesDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse + */ + public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback): void; + + /** + * Calls DeleteProjectDomainAttributes. + * @param request ProjectDomainAttributesDeleteRequest message or plain object + * @returns Promise + */ + public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest): Promise; + + /** + * Calls UpdateProjectAttributes. + * @param request ProjectAttributesUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse + */ + public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectAttributesCallback): void; + + /** + * Calls UpdateProjectAttributes. + * @param request ProjectAttributesUpdateRequest message or plain object + * @returns Promise + */ + public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest): Promise; + + /** + * Calls GetProjectAttributes. + * @param request ProjectAttributesGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse + */ + public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectAttributesCallback): void; + + /** + * Calls GetProjectAttributes. + * @param request ProjectAttributesGetRequest message or plain object + * @returns Promise + */ + public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest): Promise; + + /** + * Calls DeleteProjectAttributes. + * @param request ProjectAttributesDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse + */ + public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectAttributesCallback): void; + + /** + * Calls DeleteProjectAttributes. + * @param request ProjectAttributesDeleteRequest message or plain object + * @returns Promise + */ + public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest): Promise; + + /** + * Calls UpdateWorkflowAttributes. + * @param request WorkflowAttributesUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse + */ + public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateWorkflowAttributesCallback): void; + + /** + * Calls UpdateWorkflowAttributes. + * @param request WorkflowAttributesUpdateRequest message or plain object + * @returns Promise + */ + public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest): Promise; + + /** + * Calls GetWorkflowAttributes. + * @param request WorkflowAttributesGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse + */ + public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest, callback: flyteidl.service.AdminService.GetWorkflowAttributesCallback): void; + + /** + * Calls GetWorkflowAttributes. + * @param request WorkflowAttributesGetRequest message or plain object + * @returns Promise + */ + public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest): Promise; + + /** + * Calls DeleteWorkflowAttributes. + * @param request WorkflowAttributesDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse + */ + public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteWorkflowAttributesCallback): void; + + /** + * Calls DeleteWorkflowAttributes. + * @param request WorkflowAttributesDeleteRequest message or plain object + * @returns Promise + */ + public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest): Promise; + + /** + * Calls ListMatchableAttributes. + * @param request ListMatchableAttributesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse + */ + public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest, callback: flyteidl.service.AdminService.ListMatchableAttributesCallback): void; + + /** + * Calls ListMatchableAttributes. + * @param request ListMatchableAttributesRequest message or plain object + * @returns Promise + */ + public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest): Promise; + + /** + * Calls ListNamedEntities. + * @param request NamedEntityListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityList + */ + public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest, callback: flyteidl.service.AdminService.ListNamedEntitiesCallback): void; + + /** + * Calls ListNamedEntities. + * @param request NamedEntityListRequest message or plain object + * @returns Promise + */ + public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest): Promise; + + /** + * Calls GetNamedEntity. + * @param request NamedEntityGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntity + */ + public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest, callback: flyteidl.service.AdminService.GetNamedEntityCallback): void; + + /** + * Calls GetNamedEntity. + * @param request NamedEntityGetRequest message or plain object + * @returns Promise + */ + public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest): Promise; + + /** + * Calls UpdateNamedEntity. + * @param request NamedEntityUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse + */ + public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest, callback: flyteidl.service.AdminService.UpdateNamedEntityCallback): void; + + /** + * Calls UpdateNamedEntity. + * @param request NamedEntityUpdateRequest message or plain object + * @returns Promise + */ + public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest): Promise; + + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetVersionResponse + */ + public getVersion(request: flyteidl.admin.IGetVersionRequest, callback: flyteidl.service.AdminService.GetVersionCallback): void; + + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise + */ + public getVersion(request: flyteidl.admin.IGetVersionRequest): Promise; + + /** + * Calls GetDescriptionEntity. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DescriptionEntity + */ + public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetDescriptionEntityCallback): void; + + /** + * Calls GetDescriptionEntity. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListDescriptionEntities. + * @param request DescriptionEntityListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DescriptionEntityList + */ + public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest, callback: flyteidl.service.AdminService.ListDescriptionEntitiesCallback): void; + + /** + * Calls ListDescriptionEntities. + * @param request DescriptionEntityListRequest message or plain object + * @returns Promise + */ + public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest): Promise; + + /** + * Calls GetExecutionMetrics. + * @param request WorkflowExecutionGetMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse + */ + public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, callback: flyteidl.service.AdminService.GetExecutionMetricsCallback): void; + + /** + * Calls GetExecutionMetrics. + * @param request WorkflowExecutionGetMetricsRequest message or plain object + * @returns Promise + */ + public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): Promise; + } + + namespace AdminService { + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTask}. + * @param error Error, if any + * @param [response] TaskCreateResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.TaskCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTask}. + * @param error Error, if any + * @param [response] Task + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.Task) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListTaskIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTasks}. + * @param error Error, if any + * @param [response] TaskList + */ + type ListTasksCallback = (error: (Error|null), response?: flyteidl.admin.TaskList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. + * @param error Error, if any + * @param [response] WorkflowCreateResponse + */ + type CreateWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. + * @param error Error, if any + * @param [response] Workflow + */ + type GetWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.Workflow) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListWorkflowIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. + * @param error Error, if any + * @param [response] WorkflowList + */ + type ListWorkflowsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlanCreateResponse + */ + type CreateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlan + */ + type GetLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlan + */ + type GetActiveLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. + * @param error Error, if any + * @param [response] LaunchPlanList + */ + type ListActiveLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListLaunchPlanIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. + * @param error Error, if any + * @param [response] LaunchPlanList + */ + type ListLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlanUpdateResponse + */ + type UpdateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type CreateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type RelaunchExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type RecoverExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecution}. + * @param error Error, if any + * @param [response] Execution + */ + type GetExecutionCallback = (error: (Error|null), response?: flyteidl.admin.Execution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. + * @param error Error, if any + * @param [response] ExecutionUpdateResponse + */ + type UpdateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. + * @param error Error, if any + * @param [response] WorkflowExecutionGetDataResponse + */ + type GetExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. + * @param error Error, if any + * @param [response] ExecutionList + */ + type ListExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. + * @param error Error, if any + * @param [response] ExecutionTerminateResponse + */ + type TerminateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionTerminateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. + * @param error Error, if any + * @param [response] NodeExecution + */ + type GetNodeExecutionCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. + * @param error Error, if any + * @param [response] NodeExecutionList + */ + type ListNodeExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. + * @param error Error, if any + * @param [response] NodeExecutionList + */ + type ListNodeExecutionsForTaskCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. + * @param error Error, if any + * @param [response] NodeExecutionGetDataResponse + */ + type GetNodeExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#registerProject}. + * @param error Error, if any + * @param [response] ProjectRegisterResponse + */ + type RegisterProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectRegisterResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProject}. + * @param error Error, if any + * @param [response] ProjectUpdateResponse + */ + type UpdateProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listProjects}. + * @param error Error, if any + * @param [response] Projects + */ + type ListProjectsCallback = (error: (Error|null), response?: flyteidl.admin.Projects) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. + * @param error Error, if any + * @param [response] WorkflowExecutionEventResponse + */ + type CreateWorkflowEventCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. + * @param error Error, if any + * @param [response] NodeExecutionEventResponse + */ + type CreateNodeEventCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. + * @param error Error, if any + * @param [response] TaskExecutionEventResponse + */ + type CreateTaskEventCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. + * @param error Error, if any + * @param [response] TaskExecution + */ + type GetTaskExecutionCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. + * @param error Error, if any + * @param [response] TaskExecutionList + */ + type ListTaskExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. + * @param error Error, if any + * @param [response] TaskExecutionGetDataResponse + */ + type GetTaskExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. + * @param error Error, if any + * @param [response] ProjectDomainAttributesUpdateResponse + */ + type UpdateProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. + * @param error Error, if any + * @param [response] ProjectDomainAttributesGetResponse + */ + type GetProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. + * @param error Error, if any + * @param [response] ProjectDomainAttributesDeleteResponse + */ + type DeleteProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesDeleteResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. + * @param error Error, if any + * @param [response] ProjectAttributesUpdateResponse + */ + type UpdateProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. + * @param error Error, if any + * @param [response] ProjectAttributesGetResponse + */ + type GetProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. + * @param error Error, if any + * @param [response] ProjectAttributesDeleteResponse + */ + type DeleteProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesDeleteResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. + * @param error Error, if any + * @param [response] WorkflowAttributesUpdateResponse + */ + type UpdateWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. + * @param error Error, if any + * @param [response] WorkflowAttributesGetResponse + */ + type GetWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. + * @param error Error, if any + * @param [response] WorkflowAttributesDeleteResponse + */ + type DeleteWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesDeleteResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. + * @param error Error, if any + * @param [response] ListMatchableAttributesResponse + */ + type ListMatchableAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ListMatchableAttributesResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. + * @param error Error, if any + * @param [response] NamedEntityList + */ + type ListNamedEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. + * @param error Error, if any + * @param [response] NamedEntity + */ + type GetNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntity) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. + * @param error Error, if any + * @param [response] NamedEntityUpdateResponse + */ + type UpdateNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getVersion}. + * @param error Error, if any + * @param [response] GetVersionResponse + */ + type GetVersionCallback = (error: (Error|null), response?: flyteidl.admin.GetVersionResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. + * @param error Error, if any + * @param [response] DescriptionEntity + */ + type GetDescriptionEntityCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntity) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. + * @param error Error, if any + * @param [response] DescriptionEntityList + */ + type ListDescriptionEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntityList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. + * @param error Error, if any + * @param [response] WorkflowExecutionGetMetricsResponse + */ + type GetExecutionMetricsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetMetricsResponse) => void; + } + + /** Represents an AsyncAgentService */ + class AsyncAgentService extends $protobuf.rpc.Service { + + /** + * Constructs a new AsyncAgentService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AsyncAgentService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; + + /** + * Calls CreateTask. + * @param request CreateTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateTaskResponse + */ + public createTask(request: flyteidl.admin.ICreateTaskRequest, callback: flyteidl.service.AsyncAgentService.CreateTaskCallback): void; + + /** + * Calls CreateTask. + * @param request CreateTaskRequest message or plain object + * @returns Promise + */ + public createTask(request: flyteidl.admin.ICreateTaskRequest): Promise; + + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetTaskResponse + */ + public getTask(request: flyteidl.admin.IGetTaskRequest, callback: flyteidl.service.AsyncAgentService.GetTaskCallback): void; + + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @returns Promise + */ + public getTask(request: flyteidl.admin.IGetTaskRequest): Promise; + + /** + * Calls DeleteTask. + * @param request DeleteTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DeleteTaskResponse + */ + public deleteTask(request: flyteidl.admin.IDeleteTaskRequest, callback: flyteidl.service.AsyncAgentService.DeleteTaskCallback): void; + + /** + * Calls DeleteTask. + * @param request DeleteTaskRequest message or plain object + * @returns Promise + */ + public deleteTask(request: flyteidl.admin.IDeleteTaskRequest): Promise; + } + + namespace AsyncAgentService { + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. + * @param error Error, if any + * @param [response] CreateTaskResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.CreateTaskResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. + * @param error Error, if any + * @param [response] GetTaskResponse + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. + * @param error Error, if any + * @param [response] DeleteTaskResponse + */ + type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.admin.DeleteTaskResponse) => void; + } + + /** Properties of a OAuth2MetadataRequest. */ + interface IOAuth2MetadataRequest { + } + + /** Represents a OAuth2MetadataRequest. */ + class OAuth2MetadataRequest implements IOAuth2MetadataRequest { + + /** + * Constructs a new OAuth2MetadataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IOAuth2MetadataRequest); + + /** + * Creates a new OAuth2MetadataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2MetadataRequest instance + */ + public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; + + /** + * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. + * @param message OAuth2MetadataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2MetadataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataRequest; + + /** + * Verifies a OAuth2MetadataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a OAuth2MetadataResponse. */ + interface IOAuth2MetadataResponse { + + /** OAuth2MetadataResponse issuer */ + issuer?: (string|null); + + /** OAuth2MetadataResponse authorizationEndpoint */ + authorizationEndpoint?: (string|null); + + /** OAuth2MetadataResponse tokenEndpoint */ + tokenEndpoint?: (string|null); + + /** OAuth2MetadataResponse responseTypesSupported */ + responseTypesSupported?: (string[]|null); + + /** OAuth2MetadataResponse scopesSupported */ + scopesSupported?: (string[]|null); + + /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ + tokenEndpointAuthMethodsSupported?: (string[]|null); + + /** OAuth2MetadataResponse jwksUri */ + jwksUri?: (string|null); + + /** OAuth2MetadataResponse codeChallengeMethodsSupported */ + codeChallengeMethodsSupported?: (string[]|null); + + /** OAuth2MetadataResponse grantTypesSupported */ + grantTypesSupported?: (string[]|null); + + /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ + deviceAuthorizationEndpoint?: (string|null); + } + + /** Represents a OAuth2MetadataResponse. */ + class OAuth2MetadataResponse implements IOAuth2MetadataResponse { + + /** + * Constructs a new OAuth2MetadataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); + + /** OAuth2MetadataResponse issuer. */ + public issuer: string; + + /** OAuth2MetadataResponse authorizationEndpoint. */ + public authorizationEndpoint: string; + + /** OAuth2MetadataResponse tokenEndpoint. */ + public tokenEndpoint: string; + + /** OAuth2MetadataResponse responseTypesSupported. */ + public responseTypesSupported: string[]; + + /** OAuth2MetadataResponse scopesSupported. */ + public scopesSupported: string[]; + + /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. */ + public tokenEndpointAuthMethodsSupported: string[]; + + /** OAuth2MetadataResponse jwksUri. */ + public jwksUri: string; + + /** OAuth2MetadataResponse codeChallengeMethodsSupported. */ + public codeChallengeMethodsSupported: string[]; + + /** OAuth2MetadataResponse grantTypesSupported. */ + public grantTypesSupported: string[]; + + /** OAuth2MetadataResponse deviceAuthorizationEndpoint. */ + public deviceAuthorizationEndpoint: string; + + /** + * Creates a new OAuth2MetadataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2MetadataResponse instance + */ + public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; + + /** + * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. + * @param message OAuth2MetadataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2MetadataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataResponse; + + /** + * Verifies a OAuth2MetadataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PublicClientAuthConfigRequest. */ + interface IPublicClientAuthConfigRequest { + } + + /** Represents a PublicClientAuthConfigRequest. */ + class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { + + /** + * Constructs a new PublicClientAuthConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); + + /** + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PublicClientAuthConfigRequest instance + */ + public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; + + /** + * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. + * @param message PublicClientAuthConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PublicClientAuthConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigRequest; + + /** + * Verifies a PublicClientAuthConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PublicClientAuthConfigResponse. */ + interface IPublicClientAuthConfigResponse { + + /** PublicClientAuthConfigResponse clientId */ + clientId?: (string|null); + + /** PublicClientAuthConfigResponse redirectUri */ + redirectUri?: (string|null); + + /** PublicClientAuthConfigResponse scopes */ + scopes?: (string[]|null); + + /** PublicClientAuthConfigResponse authorizationMetadataKey */ + authorizationMetadataKey?: (string|null); + + /** PublicClientAuthConfigResponse serviceHttpEndpoint */ + serviceHttpEndpoint?: (string|null); + + /** PublicClientAuthConfigResponse audience */ + audience?: (string|null); + } + + /** Represents a PublicClientAuthConfigResponse. */ + class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { + + /** + * Constructs a new PublicClientAuthConfigResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IPublicClientAuthConfigResponse); + + /** PublicClientAuthConfigResponse clientId. */ + public clientId: string; + + /** PublicClientAuthConfigResponse redirectUri. */ + public redirectUri: string; + + /** PublicClientAuthConfigResponse scopes. */ + public scopes: string[]; + + /** PublicClientAuthConfigResponse authorizationMetadataKey. */ + public authorizationMetadataKey: string; + + /** PublicClientAuthConfigResponse serviceHttpEndpoint. */ + public serviceHttpEndpoint: string; + + /** PublicClientAuthConfigResponse audience. */ + public audience: string; + + /** + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PublicClientAuthConfigResponse instance + */ + public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; + + /** + * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. + * @param message PublicClientAuthConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PublicClientAuthConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigResponse; + + /** + * Verifies a PublicClientAuthConfigResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Represents an AuthMetadataService */ + class AuthMetadataService extends $protobuf.rpc.Service { + + /** + * Constructs a new AuthMetadataService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AuthMetadataService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AuthMetadataService; + + /** + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and OAuth2MetadataResponse + */ + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest, callback: flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback): void; + + /** + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @returns Promise + */ + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; + + /** + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse + */ + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; + + /** + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @returns Promise + */ + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; + } + + namespace AuthMetadataService { + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. + * @param error Error, if any + * @param [response] OAuth2MetadataResponse + */ + type GetOAuth2MetadataCallback = (error: (Error|null), response?: flyteidl.service.OAuth2MetadataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. + * @param error Error, if any + * @param [response] PublicClientAuthConfigResponse + */ + type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void; + } + + /** Properties of a CreateUploadLocationResponse. */ + interface ICreateUploadLocationResponse { + + /** CreateUploadLocationResponse signedUrl */ + signedUrl?: (string|null); + + /** CreateUploadLocationResponse nativeUrl */ + nativeUrl?: (string|null); + + /** CreateUploadLocationResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a CreateUploadLocationResponse. */ + class CreateUploadLocationResponse implements ICreateUploadLocationResponse { + + /** + * Constructs a new CreateUploadLocationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateUploadLocationResponse); + + /** CreateUploadLocationResponse signedUrl. */ + public signedUrl: string; + + /** CreateUploadLocationResponse nativeUrl. */ + public nativeUrl: string; + + /** CreateUploadLocationResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new CreateUploadLocationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateUploadLocationResponse instance + */ + public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; + + /** + * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. + * @param message CreateUploadLocationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateUploadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse; + + /** + * Verifies a CreateUploadLocationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateUploadLocationRequest. */ + interface ICreateUploadLocationRequest { + + /** CreateUploadLocationRequest project */ + project?: (string|null); + + /** CreateUploadLocationRequest domain */ + domain?: (string|null); + + /** CreateUploadLocationRequest filename */ + filename?: (string|null); + + /** CreateUploadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + + /** CreateUploadLocationRequest contentMd5 */ + contentMd5?: (Uint8Array|null); + + /** CreateUploadLocationRequest filenameRoot */ + filenameRoot?: (string|null); + } + + /** Represents a CreateUploadLocationRequest. */ + class CreateUploadLocationRequest implements ICreateUploadLocationRequest { + + /** + * Constructs a new CreateUploadLocationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateUploadLocationRequest); + + /** CreateUploadLocationRequest project. */ + public project: string; + + /** CreateUploadLocationRequest domain. */ + public domain: string; + + /** CreateUploadLocationRequest filename. */ + public filename: string; + + /** CreateUploadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); + + /** CreateUploadLocationRequest contentMd5. */ + public contentMd5: Uint8Array; + + /** CreateUploadLocationRequest filenameRoot. */ + public filenameRoot: string; + + /** + * Creates a new CreateUploadLocationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateUploadLocationRequest instance + */ + public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; + + /** + * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. + * @param message CreateUploadLocationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateUploadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest; + + /** + * Verifies a CreateUploadLocationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateDownloadLocationRequest. */ + interface ICreateDownloadLocationRequest { + + /** CreateDownloadLocationRequest nativeUrl */ + nativeUrl?: (string|null); + + /** CreateDownloadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + } + + /** Represents a CreateDownloadLocationRequest. */ + class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { + + /** + * Constructs a new CreateDownloadLocationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLocationRequest); + + /** CreateDownloadLocationRequest nativeUrl. */ + public nativeUrl: string; + + /** CreateDownloadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); + + /** + * Creates a new CreateDownloadLocationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLocationRequest instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; + + /** + * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. + * @param message CreateDownloadLocationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationRequest; + + /** + * Verifies a CreateDownloadLocationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateDownloadLocationResponse. */ + interface ICreateDownloadLocationResponse { + + /** CreateDownloadLocationResponse signedUrl */ + signedUrl?: (string|null); + + /** CreateDownloadLocationResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a CreateDownloadLocationResponse. */ + class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { + + /** + * Constructs a new CreateDownloadLocationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); + + /** CreateDownloadLocationResponse signedUrl. */ + public signedUrl: string; + + /** CreateDownloadLocationResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new CreateDownloadLocationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLocationResponse instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; + + /** + * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. + * @param message CreateDownloadLocationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationResponse; + + /** + * Verifies a CreateDownloadLocationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** ArtifactType enum. */ + enum ArtifactType { + ARTIFACT_TYPE_UNDEFINED = 0, + ARTIFACT_TYPE_DECK = 1 + } + + /** Properties of a CreateDownloadLinkRequest. */ + interface ICreateDownloadLinkRequest { + + /** CreateDownloadLinkRequest artifactType */ + artifactType?: (flyteidl.service.ArtifactType|null); + + /** CreateDownloadLinkRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + + /** CreateDownloadLinkRequest nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a CreateDownloadLinkRequest. */ + class CreateDownloadLinkRequest implements ICreateDownloadLinkRequest { + + /** + * Constructs a new CreateDownloadLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLinkRequest); + + /** CreateDownloadLinkRequest artifactType. */ + public artifactType: flyteidl.service.ArtifactType; + + /** CreateDownloadLinkRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); + + /** CreateDownloadLinkRequest nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** CreateDownloadLinkRequest source. */ + public source?: "nodeExecutionId"; + + /** + * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLinkRequest instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; + + /** + * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. + * @param message CreateDownloadLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkRequest; + + /** + * Verifies a CreateDownloadLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateDownloadLinkResponse. */ + interface ICreateDownloadLinkResponse { + + /** CreateDownloadLinkResponse signedUrl */ + signedUrl?: (string[]|null); + + /** CreateDownloadLinkResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + + /** CreateDownloadLinkResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + } + + /** Represents a CreateDownloadLinkResponse. */ + class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { + + /** + * Constructs a new CreateDownloadLinkResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLinkResponse); + + /** CreateDownloadLinkResponse signedUrl. */ + public signedUrl: string[]; + + /** CreateDownloadLinkResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** CreateDownloadLinkResponse preSignedUrls. */ + public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** + * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLinkResponse instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; + + /** + * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. + * @param message CreateDownloadLinkResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLinkResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkResponse; + + /** + * Verifies a CreateDownloadLinkResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PreSignedURLs. */ + interface IPreSignedURLs { + + /** PreSignedURLs signedUrl */ + signedUrl?: (string[]|null); + + /** PreSignedURLs expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a PreSignedURLs. */ + class PreSignedURLs implements IPreSignedURLs { + + /** + * Constructs a new PreSignedURLs. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IPreSignedURLs); + + /** PreSignedURLs signedUrl. */ + public signedUrl: string[]; + + /** PreSignedURLs expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new PreSignedURLs instance using the specified properties. + * @param [properties] Properties to set + * @returns PreSignedURLs instance + */ + public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; + + /** + * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. + * @param message PreSignedURLs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PreSignedURLs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PreSignedURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PreSignedURLs; + + /** + * Verifies a PreSignedURLs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetDataRequest. */ + interface IGetDataRequest { + + /** GetDataRequest flyteUrl */ + flyteUrl?: (string|null); + } + + /** Represents a GetDataRequest. */ + class GetDataRequest implements IGetDataRequest { + + /** + * Constructs a new GetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IGetDataRequest); + + /** GetDataRequest flyteUrl. */ + public flyteUrl: string; + + /** + * Creates a new GetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataRequest instance + */ + public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; + + /** + * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. + * @param message GetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataRequest; + + /** + * Verifies a GetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetDataResponse. */ + interface IGetDataResponse { + + /** GetDataResponse literalMap */ + literalMap?: (flyteidl.core.ILiteralMap|null); + + /** GetDataResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** GetDataResponse literal */ + literal?: (flyteidl.core.ILiteral|null); + } + + /** Represents a GetDataResponse. */ + class GetDataResponse implements IGetDataResponse { + + /** + * Constructs a new GetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IGetDataResponse); + + /** GetDataResponse literalMap. */ + public literalMap?: (flyteidl.core.ILiteralMap|null); + + /** GetDataResponse preSignedUrls. */ + public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** GetDataResponse literal. */ + public literal?: (flyteidl.core.ILiteral|null); + + /** GetDataResponse data. */ + public data?: ("literalMap"|"preSignedUrls"|"literal"); + + /** + * Creates a new GetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataResponse instance + */ + public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; + + /** + * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. + * @param message GetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataResponse; + + /** + * Verifies a GetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Represents a DataProxyService */ + class DataProxyService extends $protobuf.rpc.Service { + + /** + * Constructs a new DataProxyService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new DataProxyService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataProxyService; + + /** + * Calls CreateUploadLocation. + * @param request CreateUploadLocationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateUploadLocationResponse + */ + public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest, callback: flyteidl.service.DataProxyService.CreateUploadLocationCallback): void; + + /** + * Calls CreateUploadLocation. + * @param request CreateUploadLocationRequest message or plain object + * @returns Promise + */ + public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise; + + /** + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse + */ + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLocationCallback): void; + + /** + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @returns Promise + */ + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; + + /** + * Calls CreateDownloadLink. + * @param request CreateDownloadLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse + */ + public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; + + /** + * Calls CreateDownloadLink. + * @param request CreateDownloadLinkRequest message or plain object + * @returns Promise + */ + public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest): Promise; + + /** + * Calls GetData. + * @param request GetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetDataResponse + */ + public getData(request: flyteidl.service.IGetDataRequest, callback: flyteidl.service.DataProxyService.GetDataCallback): void; + + /** + * Calls GetData. + * @param request GetDataRequest message or plain object + * @returns Promise + */ + public getData(request: flyteidl.service.IGetDataRequest): Promise; + } + + namespace DataProxyService { + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. + * @param error Error, if any + * @param [response] CreateUploadLocationResponse + */ + type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. + * @param error Error, if any + * @param [response] CreateDownloadLocationResponse + */ + type CreateDownloadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLocationResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. + * @param error Error, if any + * @param [response] CreateDownloadLinkResponse + */ + type CreateDownloadLinkCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLinkResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#getData}. + * @param error Error, if any + * @param [response] GetDataResponse + */ + type GetDataCallback = (error: (Error|null), response?: flyteidl.service.GetDataResponse) => void; + } + + /** Represents an ExternalPluginService */ + class ExternalPluginService extends $protobuf.rpc.Service { + + /** + * Constructs a new ExternalPluginService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ExternalPluginService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ExternalPluginService; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskCreateResponse + */ + public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.ExternalPluginService.CreateTaskCallback): void; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @returns Promise + */ + public createTask(request: flyteidl.service.ITaskCreateRequest): Promise; + + /** + * Calls GetTask. + * @param request TaskGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskGetResponse + */ + public getTask(request: flyteidl.service.ITaskGetRequest, callback: flyteidl.service.ExternalPluginService.GetTaskCallback): void; + + /** + * Calls GetTask. + * @param request TaskGetRequest message or plain object + * @returns Promise + */ + public getTask(request: flyteidl.service.ITaskGetRequest): Promise; + + /** + * Calls DeleteTask. + * @param request TaskDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskDeleteResponse + */ + public deleteTask(request: flyteidl.service.ITaskDeleteRequest, callback: flyteidl.service.ExternalPluginService.DeleteTaskCallback): void; + + /** + * Calls DeleteTask. + * @param request TaskDeleteRequest message or plain object + * @returns Promise + */ + public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise; + } + + namespace ExternalPluginService { + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. + * @param error Error, if any + * @param [response] TaskCreateResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. + * @param error Error, if any + * @param [response] TaskGetResponse + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. + * @param error Error, if any + * @param [response] TaskDeleteResponse + */ + type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskDeleteResponse) => void; + } + + /** State enum. */ + enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4 + } + + /** Properties of a TaskCreateRequest. */ + interface ITaskCreateRequest { + + /** TaskCreateRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskCreateRequest template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskCreateRequest outputPrefix */ + outputPrefix?: (string|null); + } + + /** Represents a TaskCreateRequest. */ + class TaskCreateRequest implements ITaskCreateRequest { + + /** + * Constructs a new TaskCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskCreateRequest); + + /** TaskCreateRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskCreateRequest template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskCreateRequest outputPrefix. */ + public outputPrefix: string; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateRequest instance + */ + public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. + * @param message TaskCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateRequest; + + /** + * Verifies a TaskCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateResponse. */ + interface ITaskCreateResponse { + + /** TaskCreateResponse jobId */ + jobId?: (string|null); + } + + /** Represents a TaskCreateResponse. */ + class TaskCreateResponse implements ITaskCreateResponse { + + /** + * Constructs a new TaskCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskCreateResponse); + + /** TaskCreateResponse jobId. */ + public jobId: string; + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateResponse instance + */ + public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. + * @param message TaskCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateResponse; + + /** + * Verifies a TaskCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskGetRequest. */ + interface ITaskGetRequest { + + /** TaskGetRequest taskType */ + taskType?: (string|null); + + /** TaskGetRequest jobId */ + jobId?: (string|null); + } + + /** Represents a TaskGetRequest. */ + class TaskGetRequest implements ITaskGetRequest { + + /** + * Constructs a new TaskGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskGetRequest); + + /** TaskGetRequest taskType. */ + public taskType: string; + + /** TaskGetRequest jobId. */ + public jobId: string; + + /** + * Creates a new TaskGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGetRequest instance + */ + public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; + + /** + * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. + * @param message TaskGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetRequest; + + /** + * Verifies a TaskGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskGetResponse. */ + interface ITaskGetResponse { + + /** TaskGetResponse state */ + state?: (flyteidl.service.State|null); + + /** TaskGetResponse outputs */ + outputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a TaskGetResponse. */ + class TaskGetResponse implements ITaskGetResponse { + + /** + * Constructs a new TaskGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskGetResponse); + + /** TaskGetResponse state. */ + public state: flyteidl.service.State; + + /** TaskGetResponse outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); + + /** + * Creates a new TaskGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGetResponse instance + */ + public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; + + /** + * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. + * @param message TaskGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetResponse; + + /** + * Verifies a TaskGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskDeleteRequest. */ + interface ITaskDeleteRequest { + + /** TaskDeleteRequest taskType */ + taskType?: (string|null); + + /** TaskDeleteRequest jobId */ + jobId?: (string|null); + } + + /** Represents a TaskDeleteRequest. */ + class TaskDeleteRequest implements ITaskDeleteRequest { + + /** + * Constructs a new TaskDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskDeleteRequest); + + /** TaskDeleteRequest taskType. */ + public taskType: string; + + /** TaskDeleteRequest jobId. */ + public jobId: string; + + /** + * Creates a new TaskDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskDeleteRequest instance + */ + public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; + + /** + * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. + * @param message TaskDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteRequest; + + /** + * Verifies a TaskDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskDeleteResponse. */ + interface ITaskDeleteResponse { + } + + /** Represents a TaskDeleteResponse. */ + class TaskDeleteResponse implements ITaskDeleteResponse { + + /** + * Constructs a new TaskDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskDeleteResponse); + + /** + * Creates a new TaskDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskDeleteResponse instance + */ + public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; + + /** + * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * @param message TaskDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteResponse; + + /** + * Verifies a TaskDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UserInfoRequest. */ + interface IUserInfoRequest { + } + + /** Represents a UserInfoRequest. */ + class UserInfoRequest implements IUserInfoRequest { + + /** + * Constructs a new UserInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IUserInfoRequest); + + /** + * Creates a new UserInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UserInfoRequest instance + */ + public static create(properties?: flyteidl.service.IUserInfoRequest): flyteidl.service.UserInfoRequest; + + /** + * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. + * @param message UserInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IUserInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.UserInfoRequest; + + /** + * Verifies a UserInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UserInfoResponse. */ + interface IUserInfoResponse { + + /** UserInfoResponse subject */ + subject?: (string|null); + + /** UserInfoResponse name */ + name?: (string|null); + + /** UserInfoResponse preferredUsername */ + preferredUsername?: (string|null); + + /** UserInfoResponse givenName */ + givenName?: (string|null); + + /** UserInfoResponse familyName */ + familyName?: (string|null); + + /** UserInfoResponse email */ + email?: (string|null); + + /** UserInfoResponse picture */ + picture?: (string|null); + + /** UserInfoResponse additionalClaims */ + additionalClaims?: (google.protobuf.IStruct|null); + } + + /** Represents a UserInfoResponse. */ + class UserInfoResponse implements IUserInfoResponse { + + /** + * Constructs a new UserInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IUserInfoResponse); + + /** UserInfoResponse subject. */ + public subject: string; + + /** UserInfoResponse name. */ + public name: string; + + /** UserInfoResponse preferredUsername. */ + public preferredUsername: string; + + /** UserInfoResponse givenName. */ + public givenName: string; + + /** UserInfoResponse familyName. */ + public familyName: string; + + /** UserInfoResponse email. */ + public email: string; + + /** UserInfoResponse picture. */ + public picture: string; + + /** UserInfoResponse additionalClaims. */ + public additionalClaims?: (google.protobuf.IStruct|null); + + /** + * Creates a new UserInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UserInfoResponse instance + */ + public static create(properties?: flyteidl.service.IUserInfoResponse): flyteidl.service.UserInfoResponse; + + /** + * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. + * @param message UserInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IUserInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.UserInfoResponse; + + /** + * Verifies a UserInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Represents an IdentityService */ + class IdentityService extends $protobuf.rpc.Service { + + /** + * Constructs a new IdentityService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new IdentityService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IdentityService; + + /** + * Calls UserInfo. + * @param request UserInfoRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserInfoResponse + */ + public userInfo(request: flyteidl.service.IUserInfoRequest, callback: flyteidl.service.IdentityService.UserInfoCallback): void; + + /** + * Calls UserInfo. + * @param request UserInfoRequest message or plain object + * @returns Promise + */ + public userInfo(request: flyteidl.service.IUserInfoRequest): Promise; + } + + namespace IdentityService { + + /** + * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. + * @param error Error, if any + * @param [response] UserInfoResponse + */ + type UserInfoCallback = (error: (Error|null), response?: flyteidl.service.UserInfoResponse) => void; + } + + /** Represents a SignalService */ + class SignalService extends $protobuf.rpc.Service { + + /** + * Constructs a new SignalService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SignalService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SignalService; + + /** + * Calls GetOrCreateSignal. + * @param request SignalGetOrCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Signal + */ + public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest, callback: flyteidl.service.SignalService.GetOrCreateSignalCallback): void; + + /** + * Calls GetOrCreateSignal. + * @param request SignalGetOrCreateRequest message or plain object + * @returns Promise + */ + public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest): Promise; + + /** + * Calls ListSignals. + * @param request SignalListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SignalList + */ + public listSignals(request: flyteidl.admin.ISignalListRequest, callback: flyteidl.service.SignalService.ListSignalsCallback): void; + + /** + * Calls ListSignals. + * @param request SignalListRequest message or plain object + * @returns Promise + */ + public listSignals(request: flyteidl.admin.ISignalListRequest): Promise; + + /** + * Calls SetSignal. + * @param request SignalSetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SignalSetResponse + */ + public setSignal(request: flyteidl.admin.ISignalSetRequest, callback: flyteidl.service.SignalService.SetSignalCallback): void; + + /** + * Calls SetSignal. + * @param request SignalSetRequest message or plain object + * @returns Promise + */ + public setSignal(request: flyteidl.admin.ISignalSetRequest): Promise; + } + + namespace SignalService { + + /** + * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. + * @param error Error, if any + * @param [response] Signal + */ + type GetOrCreateSignalCallback = (error: (Error|null), response?: flyteidl.admin.Signal) => void; + + /** + * Callback as used by {@link flyteidl.service.SignalService#listSignals}. + * @param error Error, if any + * @param [response] SignalList + */ + type ListSignalsCallback = (error: (Error|null), response?: flyteidl.admin.SignalList) => void; + + /** + * Callback as used by {@link flyteidl.service.SignalService#setSignal}. + * @param error Error, if any + * @param [response] SignalSetResponse + */ + type SetSignalCallback = (error: (Error|null), response?: flyteidl.admin.SignalSetResponse) => void; + } + } +} + +/** Namespace google. */ +export namespace google { + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (Long|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; + + /** + * Verifies a Timestamp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (Long|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Struct. */ + interface IStruct { + + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a Struct. */ + class Struct implements IStruct { + + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStruct); + + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; + + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct; + + /** + * Verifies a Struct message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Value. */ + interface IValue { + + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|null); + + /** Value numberValue */ + numberValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value boolValue */ + boolValue?: (boolean|null); + + /** Value structValue */ + structValue?: (google.protobuf.IStruct|null); + + /** Value listValue */ + listValue?: (google.protobuf.IListValue|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IValue); + + /** Value nullValue. */ + public nullValue: google.protobuf.NullValue; + + /** Value numberValue. */ + public numberValue: number; + + /** Value stringValue. */ + public stringValue: string; + + /** Value boolValue. */ + public boolValue: boolean; + + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); + + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); + + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value; + + /** + * Verifies a Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } + + /** Properties of a ListValue. */ + interface IListValue { + + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); + } + + /** Represents a ListValue. */ + class ListValue implements IListValue { + + /** + * Constructs a new ListValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IListValue); + + /** ListValue values. */ + public values: google.protobuf.IValue[]; + + /** + * Creates a new ListValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ListValue instance + */ + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue; + + /** + * Verifies a ListValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DoubleValue. */ + interface IDoubleValue { + + /** DoubleValue value */ + value?: (number|null); + } + + /** Represents a DoubleValue. */ + class DoubleValue implements IDoubleValue { + + /** + * Constructs a new DoubleValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDoubleValue); + + /** DoubleValue value. */ + public value: number; + + /** + * Creates a new DoubleValue instance using the specified properties. + * @param [properties] Properties to set + * @returns DoubleValue instance + */ + public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue; + + /** + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DoubleValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue; + + /** + * Verifies a DoubleValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FloatValue. */ + interface IFloatValue { + + /** FloatValue value */ + value?: (number|null); + } + + /** Represents a FloatValue. */ + class FloatValue implements IFloatValue { + + /** + * Constructs a new FloatValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFloatValue); + + /** FloatValue value. */ + public value: number; + + /** + * Creates a new FloatValue instance using the specified properties. + * @param [properties] Properties to set + * @returns FloatValue instance + */ + public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue; + + /** + * Verifies a FloatValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Int64Value. */ + interface IInt64Value { + + /** Int64Value value */ + value?: (Long|null); + } + + /** Represents an Int64Value. */ + class Int64Value implements IInt64Value { + + /** + * Constructs a new Int64Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IInt64Value); + + /** Int64Value value. */ + public value: Long; + + /** + * Creates a new Int64Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Int64Value instance + */ + public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value; + + /** + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Int64Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value; + + /** + * Verifies an Int64Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UInt64Value. */ + interface IUInt64Value { + + /** UInt64Value value */ + value?: (Long|null); + } + + /** Represents a UInt64Value. */ + class UInt64Value implements IUInt64Value { + + /** + * Constructs a new UInt64Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt64Value); + + /** UInt64Value value. */ + public value: Long; + + /** + * Creates a new UInt64Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt64Value instance + */ + public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value; + + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value; + + /** + * Verifies a UInt64Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Int32Value. */ + interface IInt32Value { + + /** Int32Value value */ + value?: (number|null); + } + + /** Represents an Int32Value. */ + class Int32Value implements IInt32Value { + + /** + * Constructs a new Int32Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IInt32Value); + + /** Int32Value value. */ + public value: number; + + /** + * Creates a new Int32Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Int32Value instance + */ + public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value; + + /** + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value; + + /** + * Verifies an Int32Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UInt32Value. */ + interface IUInt32Value { + + /** UInt32Value value */ + value?: (number|null); + } + + /** Represents a UInt32Value. */ + class UInt32Value implements IUInt32Value { + + /** + * Constructs a new UInt32Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt32Value); + + /** UInt32Value value. */ + public value: number; + + /** + * Creates a new UInt32Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt32Value instance + */ + public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value; + + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value; + + /** + * Verifies a UInt32Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BoolValue. */ + interface IBoolValue { + + /** BoolValue value */ + value?: (boolean|null); + } + + /** Represents a BoolValue. */ + class BoolValue implements IBoolValue { + + /** + * Constructs a new BoolValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBoolValue); + + /** BoolValue value. */ + public value: boolean; + + /** + * Creates a new BoolValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BoolValue instance + */ + public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue; + + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue; + + /** + * Verifies a BoolValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a StringValue. */ + interface IStringValue { + + /** StringValue value */ + value?: (string|null); + } + + /** Represents a StringValue. */ + class StringValue implements IStringValue { + + /** + * Constructs a new StringValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStringValue); + + /** StringValue value. */ + public value: string; + + /** + * Creates a new StringValue instance using the specified properties. + * @param [properties] Properties to set + * @returns StringValue instance + */ + public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue; + + /** + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue; + + /** + * Verifies a StringValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BytesValue. */ + interface IBytesValue { + + /** BytesValue value */ + value?: (Uint8Array|null); + } + + /** Represents a BytesValue. */ + class BytesValue implements IBytesValue { + + /** + * Constructs a new BytesValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBytesValue); + + /** BytesValue value. */ + public value: Uint8Array; + + /** + * Creates a new BytesValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BytesValue instance + */ + public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue; + + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue; + + /** + * Verifies a BytesValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: Long; + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: Long; + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule body. */ + public body: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } +} diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js new file mode 100644 index 0000000000..6a2ae8c72a --- /dev/null +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -0,0 +1,56226 @@ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ + + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); + + /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) + module.exports = factory(require("protobufjs/minimal")); + +})(this, function($protobuf) { + "use strict"; + + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots.flyteidl || ($protobuf.roots.flyteidl = {}); + + $root.flyteidl = (function() { + + /** + * Namespace flyteidl. + * @exports flyteidl + * @namespace + */ + var flyteidl = {}; + + flyteidl.core = (function() { + + /** + * Namespace core. + * @memberof flyteidl + * @namespace + */ + var core = {}; + + /** + * CatalogCacheStatus enum. + * @name flyteidl.core.CatalogCacheStatus + * @enum {string} + * @property {number} CACHE_DISABLED=0 CACHE_DISABLED value + * @property {number} CACHE_MISS=1 CACHE_MISS value + * @property {number} CACHE_HIT=2 CACHE_HIT value + * @property {number} CACHE_POPULATED=3 CACHE_POPULATED value + * @property {number} CACHE_LOOKUP_FAILURE=4 CACHE_LOOKUP_FAILURE value + * @property {number} CACHE_PUT_FAILURE=5 CACHE_PUT_FAILURE value + * @property {number} CACHE_SKIPPED=6 CACHE_SKIPPED value + */ + core.CatalogCacheStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CACHE_DISABLED"] = 0; + values[valuesById[1] = "CACHE_MISS"] = 1; + values[valuesById[2] = "CACHE_HIT"] = 2; + values[valuesById[3] = "CACHE_POPULATED"] = 3; + values[valuesById[4] = "CACHE_LOOKUP_FAILURE"] = 4; + values[valuesById[5] = "CACHE_PUT_FAILURE"] = 5; + values[valuesById[6] = "CACHE_SKIPPED"] = 6; + return values; + })(); + + core.CatalogArtifactTag = (function() { + + /** + * Properties of a CatalogArtifactTag. + * @memberof flyteidl.core + * @interface ICatalogArtifactTag + * @property {string|null} [artifactId] CatalogArtifactTag artifactId + * @property {string|null} [name] CatalogArtifactTag name + */ + + /** + * Constructs a new CatalogArtifactTag. + * @memberof flyteidl.core + * @classdesc Represents a CatalogArtifactTag. + * @implements ICatalogArtifactTag + * @constructor + * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set + */ + function CatalogArtifactTag(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CatalogArtifactTag artifactId. + * @member {string} artifactId + * @memberof flyteidl.core.CatalogArtifactTag + * @instance + */ + CatalogArtifactTag.prototype.artifactId = ""; + + /** + * CatalogArtifactTag name. + * @member {string} name + * @memberof flyteidl.core.CatalogArtifactTag + * @instance + */ + CatalogArtifactTag.prototype.name = ""; + + /** + * Creates a new CatalogArtifactTag instance using the specified properties. + * @function create + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set + * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag instance + */ + CatalogArtifactTag.create = function create(properties) { + return new CatalogArtifactTag(properties); + }; + + /** + * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {flyteidl.core.ICatalogArtifactTag} message CatalogArtifactTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CatalogArtifactTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + return writer; + }; + + /** + * Decodes a CatalogArtifactTag message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CatalogArtifactTag.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogArtifactTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifactId = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CatalogArtifactTag message. + * @function verify + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CatalogArtifactTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return CatalogArtifactTag; + })(); + + core.CatalogMetadata = (function() { + + /** + * Properties of a CatalogMetadata. + * @memberof flyteidl.core + * @interface ICatalogMetadata + * @property {flyteidl.core.IIdentifier|null} [datasetId] CatalogMetadata datasetId + * @property {flyteidl.core.ICatalogArtifactTag|null} [artifactTag] CatalogMetadata artifactTag + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [sourceTaskExecution] CatalogMetadata sourceTaskExecution + */ + + /** + * Constructs a new CatalogMetadata. + * @memberof flyteidl.core + * @classdesc Represents a CatalogMetadata. + * @implements ICatalogMetadata + * @constructor + * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set + */ + function CatalogMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CatalogMetadata datasetId. + * @member {flyteidl.core.IIdentifier|null|undefined} datasetId + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + CatalogMetadata.prototype.datasetId = null; + + /** + * CatalogMetadata artifactTag. + * @member {flyteidl.core.ICatalogArtifactTag|null|undefined} artifactTag + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + CatalogMetadata.prototype.artifactTag = null; + + /** + * CatalogMetadata sourceTaskExecution. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} sourceTaskExecution + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + CatalogMetadata.prototype.sourceTaskExecution = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CatalogMetadata sourceExecution. + * @member {"sourceTaskExecution"|undefined} sourceExecution + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + Object.defineProperty(CatalogMetadata.prototype, "sourceExecution", { + get: $util.oneOfGetter($oneOfFields = ["sourceTaskExecution"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CatalogMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set + * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata instance + */ + CatalogMetadata.create = function create(properties) { + return new CatalogMetadata(properties); + }; + + /** + * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {flyteidl.core.ICatalogMetadata} message CatalogMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CatalogMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + $root.flyteidl.core.Identifier.encode(message.datasetId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) + $root.flyteidl.core.CatalogArtifactTag.encode(message.artifactTag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.sourceTaskExecution, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CatalogMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CatalogMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.datasetId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.artifactTag = $root.flyteidl.core.CatalogArtifactTag.decode(reader, reader.uint32()); + break; + case 3: + message.sourceTaskExecution = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CatalogMetadata message. + * @function verify + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CatalogMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) { + var error = $root.flyteidl.core.Identifier.verify(message.datasetId); + if (error) + return "datasetId." + error; + } + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { + var error = $root.flyteidl.core.CatalogArtifactTag.verify(message.artifactTag); + if (error) + return "artifactTag." + error; + } + if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) { + properties.sourceExecution = 1; + { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.sourceTaskExecution); + if (error) + return "sourceTaskExecution." + error; + } + } + return null; + }; + + return CatalogMetadata; + })(); + + core.CatalogReservation = (function() { + + /** + * Properties of a CatalogReservation. + * @memberof flyteidl.core + * @interface ICatalogReservation + */ + + /** + * Constructs a new CatalogReservation. + * @memberof flyteidl.core + * @classdesc Represents a CatalogReservation. + * @implements ICatalogReservation + * @constructor + * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set + */ + function CatalogReservation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new CatalogReservation instance using the specified properties. + * @function create + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set + * @returns {flyteidl.core.CatalogReservation} CatalogReservation instance + */ + CatalogReservation.create = function create(properties) { + return new CatalogReservation(properties); + }; + + /** + * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {flyteidl.core.ICatalogReservation} message CatalogReservation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CatalogReservation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a CatalogReservation message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CatalogReservation} CatalogReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CatalogReservation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogReservation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CatalogReservation message. + * @function verify + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CatalogReservation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Status enum. + * @name flyteidl.core.CatalogReservation.Status + * @enum {string} + * @property {number} RESERVATION_DISABLED=0 RESERVATION_DISABLED value + * @property {number} RESERVATION_ACQUIRED=1 RESERVATION_ACQUIRED value + * @property {number} RESERVATION_EXISTS=2 RESERVATION_EXISTS value + * @property {number} RESERVATION_RELEASED=3 RESERVATION_RELEASED value + * @property {number} RESERVATION_FAILURE=4 RESERVATION_FAILURE value + */ + CatalogReservation.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESERVATION_DISABLED"] = 0; + values[valuesById[1] = "RESERVATION_ACQUIRED"] = 1; + values[valuesById[2] = "RESERVATION_EXISTS"] = 2; + values[valuesById[3] = "RESERVATION_RELEASED"] = 3; + values[valuesById[4] = "RESERVATION_FAILURE"] = 4; + return values; + })(); + + return CatalogReservation; + })(); + + /** + * ResourceType enum. + * @name flyteidl.core.ResourceType + * @enum {string} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} TASK=1 TASK value + * @property {number} WORKFLOW=2 WORKFLOW value + * @property {number} LAUNCH_PLAN=3 LAUNCH_PLAN value + * @property {number} DATASET=4 DATASET value + */ + core.ResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "TASK"] = 1; + values[valuesById[2] = "WORKFLOW"] = 2; + values[valuesById[3] = "LAUNCH_PLAN"] = 3; + values[valuesById[4] = "DATASET"] = 4; + return values; + })(); + + core.Identifier = (function() { + + /** + * Properties of an Identifier. + * @memberof flyteidl.core + * @interface IIdentifier + * @property {flyteidl.core.ResourceType|null} [resourceType] Identifier resourceType + * @property {string|null} [project] Identifier project + * @property {string|null} [domain] Identifier domain + * @property {string|null} [name] Identifier name + * @property {string|null} [version] Identifier version + */ + + /** + * Constructs a new Identifier. + * @memberof flyteidl.core + * @classdesc Represents an Identifier. + * @implements IIdentifier + * @constructor + * @param {flyteidl.core.IIdentifier=} [properties] Properties to set + */ + function Identifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Identifier resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.resourceType = 0; + + /** + * Identifier project. + * @member {string} project + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.project = ""; + + /** + * Identifier domain. + * @member {string} domain + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.domain = ""; + + /** + * Identifier name. + * @member {string} name + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.name = ""; + + /** + * Identifier version. + * @member {string} version + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.version = ""; + + /** + * Creates a new Identifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.Identifier + * @static + * @param {flyteidl.core.IIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.Identifier} Identifier instance + */ + Identifier.create = function create(properties) { + return new Identifier(properties); + }; + + /** + * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Identifier + * @static + * @param {flyteidl.core.IIdentifier} message Identifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Identifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); + return writer; + }; + + /** + * Decodes an Identifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Identifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Identifier} Identifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Identifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.domain = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + case 5: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Identifier message. + * @function verify + * @memberof flyteidl.core.Identifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Identifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + return Identifier; + })(); + + core.WorkflowExecutionIdentifier = (function() { + + /** + * Properties of a WorkflowExecutionIdentifier. + * @memberof flyteidl.core + * @interface IWorkflowExecutionIdentifier + * @property {string|null} [project] WorkflowExecutionIdentifier project + * @property {string|null} [domain] WorkflowExecutionIdentifier domain + * @property {string|null} [name] WorkflowExecutionIdentifier name + */ + + /** + * Constructs a new WorkflowExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowExecutionIdentifier. + * @implements IWorkflowExecutionIdentifier + * @constructor + * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set + */ + function WorkflowExecutionIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionIdentifier project. + * @member {string} project + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.project = ""; + + /** + * WorkflowExecutionIdentifier domain. + * @member {string} domain + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.domain = ""; + + /** + * WorkflowExecutionIdentifier name. + * @member {string} name + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.name = ""; + + /** + * Creates a new WorkflowExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier instance + */ + WorkflowExecutionIdentifier.create = function create(properties) { + return new WorkflowExecutionIdentifier(properties); + }; + + /** + * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {flyteidl.core.IWorkflowExecutionIdentifier} message WorkflowExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + return writer; + }; + + /** + * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecutionIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return WorkflowExecutionIdentifier; + })(); + + core.NodeExecutionIdentifier = (function() { + + /** + * Properties of a NodeExecutionIdentifier. + * @memberof flyteidl.core + * @interface INodeExecutionIdentifier + * @property {string|null} [nodeId] NodeExecutionIdentifier nodeId + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] NodeExecutionIdentifier executionId + */ + + /** + * Constructs a new NodeExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a NodeExecutionIdentifier. + * @implements INodeExecutionIdentifier + * @constructor + * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set + */ + function NodeExecutionIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionIdentifier nodeId. + * @member {string} nodeId + * @memberof flyteidl.core.NodeExecutionIdentifier + * @instance + */ + NodeExecutionIdentifier.prototype.nodeId = ""; + + /** + * NodeExecutionIdentifier executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.core.NodeExecutionIdentifier + * @instance + */ + NodeExecutionIdentifier.prototype.executionId = null; + + /** + * Creates a new NodeExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier instance + */ + NodeExecutionIdentifier.create = function create(properties) { + return new NodeExecutionIdentifier(properties); + }; + + /** + * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {flyteidl.core.INodeExecutionIdentifier} message NodeExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecutionIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + case 2: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return NodeExecutionIdentifier; + })(); + + core.TaskExecutionIdentifier = (function() { + + /** + * Properties of a TaskExecutionIdentifier. + * @memberof flyteidl.core + * @interface ITaskExecutionIdentifier + * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionIdentifier taskId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionIdentifier nodeExecutionId + * @property {number|null} [retryAttempt] TaskExecutionIdentifier retryAttempt + */ + + /** + * Constructs a new TaskExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a TaskExecutionIdentifier. + * @implements ITaskExecutionIdentifier + * @constructor + * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set + */ + function TaskExecutionIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionIdentifier taskId. + * @member {flyteidl.core.IIdentifier|null|undefined} taskId + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.taskId = null; + + /** + * TaskExecutionIdentifier nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.nodeExecutionId = null; + + /** + * TaskExecutionIdentifier retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.retryAttempt = 0; + + /** + * Creates a new TaskExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier instance + */ + TaskExecutionIdentifier.create = function create(properties) { + return new TaskExecutionIdentifier(properties); + }; + + /** + * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {flyteidl.core.ITaskExecutionIdentifier} message TaskExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + return writer; + }; + + /** + * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecutionIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskId != null && message.hasOwnProperty("taskId")) { + var error = $root.flyteidl.core.Identifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + return null; + }; + + return TaskExecutionIdentifier; + })(); + + core.SignalIdentifier = (function() { + + /** + * Properties of a SignalIdentifier. + * @memberof flyteidl.core + * @interface ISignalIdentifier + * @property {string|null} [signalId] SignalIdentifier signalId + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] SignalIdentifier executionId + */ + + /** + * Constructs a new SignalIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a SignalIdentifier. + * @implements ISignalIdentifier + * @constructor + * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set + */ + function SignalIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalIdentifier signalId. + * @member {string} signalId + * @memberof flyteidl.core.SignalIdentifier + * @instance + */ + SignalIdentifier.prototype.signalId = ""; + + /** + * SignalIdentifier executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.core.SignalIdentifier + * @instance + */ + SignalIdentifier.prototype.executionId = null; + + /** + * Creates a new SignalIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier instance + */ + SignalIdentifier.create = function create(properties) { + return new SignalIdentifier(properties); + }; + + /** + * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {flyteidl.core.ISignalIdentifier} message SignalIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signalId = reader.string(); + break; + case 2: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalIdentifier message. + * @function verify + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return SignalIdentifier; + })(); + + core.ConnectionSet = (function() { + + /** + * Properties of a ConnectionSet. + * @memberof flyteidl.core + * @interface IConnectionSet + * @property {Object.|null} [downstream] ConnectionSet downstream + * @property {Object.|null} [upstream] ConnectionSet upstream + */ + + /** + * Constructs a new ConnectionSet. + * @memberof flyteidl.core + * @classdesc Represents a ConnectionSet. + * @implements IConnectionSet + * @constructor + * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set + */ + function ConnectionSet(properties) { + this.downstream = {}; + this.upstream = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConnectionSet downstream. + * @member {Object.} downstream + * @memberof flyteidl.core.ConnectionSet + * @instance + */ + ConnectionSet.prototype.downstream = $util.emptyObject; + + /** + * ConnectionSet upstream. + * @member {Object.} upstream + * @memberof flyteidl.core.ConnectionSet + * @instance + */ + ConnectionSet.prototype.upstream = $util.emptyObject; + + /** + * Creates a new ConnectionSet instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set + * @returns {flyteidl.core.ConnectionSet} ConnectionSet instance + */ + ConnectionSet.create = function create(properties) { + return new ConnectionSet(properties); + }; + + /** + * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {flyteidl.core.IConnectionSet} message ConnectionSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConnectionSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.downstream != null && message.hasOwnProperty("downstream")) + for (var keys = Object.keys(message.downstream), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.ConnectionSet.IdList.encode(message.downstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.upstream != null && message.hasOwnProperty("upstream")) + for (var keys = Object.keys(message.upstream), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.ConnectionSet.IdList.encode(message.upstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a ConnectionSet message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConnectionSet} ConnectionSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConnectionSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 7: + reader.skip().pos++; + if (message.downstream === $util.emptyObject) + message.downstream = {}; + key = reader.string(); + reader.pos++; + message.downstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); + break; + case 8: + reader.skip().pos++; + if (message.upstream === $util.emptyObject) + message.upstream = {}; + key = reader.string(); + reader.pos++; + message.upstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ConnectionSet message. + * @function verify + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConnectionSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.downstream != null && message.hasOwnProperty("downstream")) { + if (!$util.isObject(message.downstream)) + return "downstream: object expected"; + var key = Object.keys(message.downstream); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.downstream[key[i]]); + if (error) + return "downstream." + error; + } + } + if (message.upstream != null && message.hasOwnProperty("upstream")) { + if (!$util.isObject(message.upstream)) + return "upstream: object expected"; + var key = Object.keys(message.upstream); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.upstream[key[i]]); + if (error) + return "upstream." + error; + } + } + return null; + }; + + ConnectionSet.IdList = (function() { + + /** + * Properties of an IdList. + * @memberof flyteidl.core.ConnectionSet + * @interface IIdList + * @property {Array.|null} [ids] IdList ids + */ + + /** + * Constructs a new IdList. + * @memberof flyteidl.core.ConnectionSet + * @classdesc Represents an IdList. + * @implements IIdList + * @constructor + * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set + */ + function IdList(properties) { + this.ids = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IdList ids. + * @member {Array.} ids + * @memberof flyteidl.core.ConnectionSet.IdList + * @instance + */ + IdList.prototype.ids = $util.emptyArray; + + /** + * Creates a new IdList instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set + * @returns {flyteidl.core.ConnectionSet.IdList} IdList instance + */ + IdList.create = function create(properties) { + return new IdList(properties); + }; + + /** + * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {flyteidl.core.ConnectionSet.IIdList} message IdList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IdList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) + for (var i = 0; i < message.ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); + return writer; + }; + + /** + * Decodes an IdList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConnectionSet.IdList} IdList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IdList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet.IdList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IdList message. + * @function verify + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IdList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isString(message.ids[i])) + return "ids: string[] expected"; + } + return null; + }; + + return IdList; + })(); + + return ConnectionSet; + })(); + + core.CompiledWorkflow = (function() { + + /** + * Properties of a CompiledWorkflow. + * @memberof flyteidl.core + * @interface ICompiledWorkflow + * @property {flyteidl.core.IWorkflowTemplate|null} [template] CompiledWorkflow template + * @property {flyteidl.core.IConnectionSet|null} [connections] CompiledWorkflow connections + */ + + /** + * Constructs a new CompiledWorkflow. + * @memberof flyteidl.core + * @classdesc Represents a CompiledWorkflow. + * @implements ICompiledWorkflow + * @constructor + * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set + */ + function CompiledWorkflow(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledWorkflow template. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledWorkflow + * @instance + */ + CompiledWorkflow.prototype.template = null; + + /** + * CompiledWorkflow connections. + * @member {flyteidl.core.IConnectionSet|null|undefined} connections + * @memberof flyteidl.core.CompiledWorkflow + * @instance + */ + CompiledWorkflow.prototype.connections = null; + + /** + * Creates a new CompiledWorkflow instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set + * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow instance + */ + CompiledWorkflow.create = function create(properties) { + return new CompiledWorkflow(properties); + }; + + /** + * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {flyteidl.core.ICompiledWorkflow} message CompiledWorkflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledWorkflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.connections != null && message.hasOwnProperty("connections")) + $root.flyteidl.core.ConnectionSet.encode(message.connections, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledWorkflow message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledWorkflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflow(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + message.connections = $root.flyteidl.core.ConnectionSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledWorkflow message. + * @function verify + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledWorkflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.connections != null && message.hasOwnProperty("connections")) { + var error = $root.flyteidl.core.ConnectionSet.verify(message.connections); + if (error) + return "connections." + error; + } + return null; + }; + + return CompiledWorkflow; + })(); + + core.CompiledTask = (function() { + + /** + * Properties of a CompiledTask. + * @memberof flyteidl.core + * @interface ICompiledTask + * @property {flyteidl.core.ITaskTemplate|null} [template] CompiledTask template + */ + + /** + * Constructs a new CompiledTask. + * @memberof flyteidl.core + * @classdesc Represents a CompiledTask. + * @implements ICompiledTask + * @constructor + * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set + */ + function CompiledTask(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledTask template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledTask + * @instance + */ + CompiledTask.prototype.template = null; + + /** + * Creates a new CompiledTask instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledTask + * @static + * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set + * @returns {flyteidl.core.CompiledTask} CompiledTask instance + */ + CompiledTask.create = function create(properties) { + return new CompiledTask(properties); + }; + + /** + * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledTask + * @static + * @param {flyteidl.core.ICompiledTask} message CompiledTask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledTask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledTask message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledTask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledTask} CompiledTask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledTask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledTask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledTask message. + * @function verify + * @memberof flyteidl.core.CompiledTask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledTask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + return null; + }; + + return CompiledTask; + })(); + + core.CompiledWorkflowClosure = (function() { + + /** + * Properties of a CompiledWorkflowClosure. + * @memberof flyteidl.core + * @interface ICompiledWorkflowClosure + * @property {flyteidl.core.ICompiledWorkflow|null} [primary] CompiledWorkflowClosure primary + * @property {Array.|null} [subWorkflows] CompiledWorkflowClosure subWorkflows + * @property {Array.|null} [tasks] CompiledWorkflowClosure tasks + */ + + /** + * Constructs a new CompiledWorkflowClosure. + * @memberof flyteidl.core + * @classdesc Represents a CompiledWorkflowClosure. + * @implements ICompiledWorkflowClosure + * @constructor + * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set + */ + function CompiledWorkflowClosure(properties) { + this.subWorkflows = []; + this.tasks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledWorkflowClosure primary. + * @member {flyteidl.core.ICompiledWorkflow|null|undefined} primary + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.primary = null; + + /** + * CompiledWorkflowClosure subWorkflows. + * @member {Array.} subWorkflows + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.subWorkflows = $util.emptyArray; + + /** + * CompiledWorkflowClosure tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.tasks = $util.emptyArray; + + /** + * Creates a new CompiledWorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure instance + */ + CompiledWorkflowClosure.create = function create(properties) { + return new CompiledWorkflowClosure(properties); + }; + + /** + * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {flyteidl.core.ICompiledWorkflowClosure} message CompiledWorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledWorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primary != null && message.hasOwnProperty("primary")) + $root.flyteidl.core.CompiledWorkflow.encode(message.primary, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflows != null && message.subWorkflows.length) + for (var i = 0; i < message.subWorkflows.length; ++i) + $root.flyteidl.core.CompiledWorkflow.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.CompiledTask.encode(message.tasks[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledWorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflowClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primary = $root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.subWorkflows && message.subWorkflows.length)) + message.subWorkflows = []; + message.subWorkflows.push($root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.CompiledTask.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledWorkflowClosure message. + * @function verify + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledWorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.primary != null && message.hasOwnProperty("primary")) { + var error = $root.flyteidl.core.CompiledWorkflow.verify(message.primary); + if (error) + return "primary." + error; + } + if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { + if (!Array.isArray(message.subWorkflows)) + return "subWorkflows: array expected"; + for (var i = 0; i < message.subWorkflows.length; ++i) { + var error = $root.flyteidl.core.CompiledWorkflow.verify(message.subWorkflows[i]); + if (error) + return "subWorkflows." + error; + } + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.core.CompiledTask.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + return null; + }; + + return CompiledWorkflowClosure; + })(); + + core.IfBlock = (function() { + + /** + * Properties of an IfBlock. + * @memberof flyteidl.core + * @interface IIfBlock + * @property {flyteidl.core.IBooleanExpression|null} [condition] IfBlock condition + * @property {flyteidl.core.INode|null} [thenNode] IfBlock thenNode + */ + + /** + * Constructs a new IfBlock. + * @memberof flyteidl.core + * @classdesc Represents an IfBlock. + * @implements IIfBlock + * @constructor + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + */ + function IfBlock(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IfBlock condition. + * @member {flyteidl.core.IBooleanExpression|null|undefined} condition + * @memberof flyteidl.core.IfBlock + * @instance + */ + IfBlock.prototype.condition = null; + + /** + * IfBlock thenNode. + * @member {flyteidl.core.INode|null|undefined} thenNode + * @memberof flyteidl.core.IfBlock + * @instance + */ + IfBlock.prototype.thenNode = null; + + /** + * Creates a new IfBlock instance using the specified properties. + * @function create + * @memberof flyteidl.core.IfBlock + * @static + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfBlock} IfBlock instance + */ + IfBlock.create = function create(properties) { + return new IfBlock(properties); + }; + + /** + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IfBlock + * @static + * @param {flyteidl.core.IIfBlock} message IfBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IfBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.condition != null && message.hasOwnProperty("condition")) + $root.flyteidl.core.BooleanExpression.encode(message.condition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.thenNode != null && message.hasOwnProperty("thenNode")) + $root.flyteidl.core.Node.encode(message.thenNode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an IfBlock message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IfBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IfBlock} IfBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IfBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + case 2: + message.thenNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IfBlock message. + * @function verify + * @memberof flyteidl.core.IfBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IfBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.condition != null && message.hasOwnProperty("condition")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.condition); + if (error) + return "condition." + error; + } + if (message.thenNode != null && message.hasOwnProperty("thenNode")) { + var error = $root.flyteidl.core.Node.verify(message.thenNode); + if (error) + return "thenNode." + error; + } + return null; + }; + + return IfBlock; + })(); + + core.IfElseBlock = (function() { + + /** + * Properties of an IfElseBlock. + * @memberof flyteidl.core + * @interface IIfElseBlock + * @property {flyteidl.core.IIfBlock|null} ["case"] IfElseBlock case + * @property {Array.|null} [other] IfElseBlock other + * @property {flyteidl.core.INode|null} [elseNode] IfElseBlock elseNode + * @property {flyteidl.core.IError|null} [error] IfElseBlock error + */ + + /** + * Constructs a new IfElseBlock. + * @memberof flyteidl.core + * @classdesc Represents an IfElseBlock. + * @implements IIfElseBlock + * @constructor + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + */ + function IfElseBlock(properties) { + this.other = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IfElseBlock case. + * @member {flyteidl.core.IIfBlock|null|undefined} case + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype["case"] = null; + + /** + * IfElseBlock other. + * @member {Array.} other + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.other = $util.emptyArray; + + /** + * IfElseBlock elseNode. + * @member {flyteidl.core.INode|null|undefined} elseNode + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.elseNode = null; + + /** + * IfElseBlock error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * IfElseBlock default. + * @member {"elseNode"|"error"|undefined} default_ + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + Object.defineProperty(IfElseBlock.prototype, "default", { + get: $util.oneOfGetter($oneOfFields = ["elseNode", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new IfElseBlock instance using the specified properties. + * @function create + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfElseBlock} IfElseBlock instance + */ + IfElseBlock.create = function create(properties) { + return new IfElseBlock(properties); + }; + + /** + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {flyteidl.core.IIfElseBlock} message IfElseBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IfElseBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["case"] != null && message.hasOwnProperty("case")) + $root.flyteidl.core.IfBlock.encode(message["case"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.other != null && message.other.length) + for (var i = 0; i < message.other.length; ++i) + $root.flyteidl.core.IfBlock.encode(message.other[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.elseNode != null && message.hasOwnProperty("elseNode")) + $root.flyteidl.core.Node.encode(message.elseNode, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an IfElseBlock message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IfElseBlock} IfElseBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IfElseBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfElseBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["case"] = $root.flyteidl.core.IfBlock.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.other && message.other.length)) + message.other = []; + message.other.push($root.flyteidl.core.IfBlock.decode(reader, reader.uint32())); + break; + case 3: + message.elseNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 4: + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IfElseBlock message. + * @function verify + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IfElseBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message["case"] != null && message.hasOwnProperty("case")) { + var error = $root.flyteidl.core.IfBlock.verify(message["case"]); + if (error) + return "case." + error; + } + if (message.other != null && message.hasOwnProperty("other")) { + if (!Array.isArray(message.other)) + return "other: array expected"; + for (var i = 0; i < message.other.length; ++i) { + var error = $root.flyteidl.core.IfBlock.verify(message.other[i]); + if (error) + return "other." + error; + } + } + if (message.elseNode != null && message.hasOwnProperty("elseNode")) { + properties["default"] = 1; + { + var error = $root.flyteidl.core.Node.verify(message.elseNode); + if (error) + return "elseNode." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties["default"] === 1) + return "default: multiple values"; + properties["default"] = 1; + { + var error = $root.flyteidl.core.Error.verify(message.error); + if (error) + return "error." + error; + } + } + return null; + }; + + return IfElseBlock; + })(); + + core.BranchNode = (function() { + + /** + * Properties of a BranchNode. + * @memberof flyteidl.core + * @interface IBranchNode + * @property {flyteidl.core.IIfElseBlock|null} [ifElse] BranchNode ifElse + */ + + /** + * Constructs a new BranchNode. + * @memberof flyteidl.core + * @classdesc Represents a BranchNode. + * @implements IBranchNode + * @constructor + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + */ + function BranchNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BranchNode ifElse. + * @member {flyteidl.core.IIfElseBlock|null|undefined} ifElse + * @memberof flyteidl.core.BranchNode + * @instance + */ + BranchNode.prototype.ifElse = null; + + /** + * Creates a new BranchNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + * @returns {flyteidl.core.BranchNode} BranchNode instance + */ + BranchNode.create = function create(properties) { + return new BranchNode(properties); + }; + + /** + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode} message BranchNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BranchNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ifElse != null && message.hasOwnProperty("ifElse")) + $root.flyteidl.core.IfElseBlock.encode(message.ifElse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BranchNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BranchNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BranchNode} BranchNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BranchNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BranchNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ifElse = $root.flyteidl.core.IfElseBlock.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BranchNode message. + * @function verify + * @memberof flyteidl.core.BranchNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BranchNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ifElse != null && message.hasOwnProperty("ifElse")) { + var error = $root.flyteidl.core.IfElseBlock.verify(message.ifElse); + if (error) + return "ifElse." + error; + } + return null; + }; + + return BranchNode; + })(); + + core.TaskNode = (function() { + + /** + * Properties of a TaskNode. + * @memberof flyteidl.core + * @interface ITaskNode + * @property {flyteidl.core.IIdentifier|null} [referenceId] TaskNode referenceId + * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskNode overrides + */ + + /** + * Constructs a new TaskNode. + * @memberof flyteidl.core + * @classdesc Represents a TaskNode. + * @implements ITaskNode + * @constructor + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + */ + function TaskNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNode referenceId. + * @member {flyteidl.core.IIdentifier|null|undefined} referenceId + * @memberof flyteidl.core.TaskNode + * @instance + */ + TaskNode.prototype.referenceId = null; + + /** + * TaskNode overrides. + * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides + * @memberof flyteidl.core.TaskNode + * @instance + */ + TaskNode.prototype.overrides = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskNode reference. + * @member {"referenceId"|undefined} reference + * @memberof flyteidl.core.TaskNode + * @instance + */ + Object.defineProperty(TaskNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["referenceId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskNode + * @static + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + * @returns {flyteidl.core.TaskNode} TaskNode instance + */ + TaskNode.create = function create(properties) { + return new TaskNode(properties); + }; + + /** + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskNode + * @static + * @param {flyteidl.core.ITaskNode} message TaskNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.referenceId != null && message.hasOwnProperty("referenceId")) + $root.flyteidl.core.Identifier.encode(message.referenceId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.overrides != null && message.hasOwnProperty("overrides")) + $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskNode} TaskNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNode message. + * @function verify + * @memberof flyteidl.core.TaskNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.referenceId != null && message.hasOwnProperty("referenceId")) { + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.referenceId); + if (error) + return "referenceId." + error; + } + } + if (message.overrides != null && message.hasOwnProperty("overrides")) { + var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); + if (error) + return "overrides." + error; + } + return null; + }; + + return TaskNode; + })(); + + core.WorkflowNode = (function() { + + /** + * Properties of a WorkflowNode. + * @memberof flyteidl.core + * @interface IWorkflowNode + * @property {flyteidl.core.IIdentifier|null} [launchplanRef] WorkflowNode launchplanRef + * @property {flyteidl.core.IIdentifier|null} [subWorkflowRef] WorkflowNode subWorkflowRef + */ + + /** + * Constructs a new WorkflowNode. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowNode. + * @implements IWorkflowNode + * @constructor + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + */ + function WorkflowNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNode launchplanRef. + * @member {flyteidl.core.IIdentifier|null|undefined} launchplanRef + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + WorkflowNode.prototype.launchplanRef = null; + + /** + * WorkflowNode subWorkflowRef. + * @member {flyteidl.core.IIdentifier|null|undefined} subWorkflowRef + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + WorkflowNode.prototype.subWorkflowRef = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WorkflowNode reference. + * @member {"launchplanRef"|"subWorkflowRef"|undefined} reference + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + Object.defineProperty(WorkflowNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["launchplanRef", "subWorkflowRef"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkflowNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowNode} WorkflowNode instance + */ + WorkflowNode.create = function create(properties) { + return new WorkflowNode(properties); + }; + + /** + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {flyteidl.core.IWorkflowNode} message WorkflowNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) + $root.flyteidl.core.Identifier.encode(message.launchplanRef, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) + $root.flyteidl.core.Identifier.encode(message.subWorkflowRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowNode} WorkflowNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.launchplanRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.subWorkflowRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNode message. + * @function verify + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) { + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.launchplanRef); + if (error) + return "launchplanRef." + error; + } + } + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.subWorkflowRef); + if (error) + return "subWorkflowRef." + error; + } + } + return null; + }; + + return WorkflowNode; + })(); + + core.ApproveCondition = (function() { + + /** + * Properties of an ApproveCondition. + * @memberof flyteidl.core + * @interface IApproveCondition + * @property {string|null} [signalId] ApproveCondition signalId + */ + + /** + * Constructs a new ApproveCondition. + * @memberof flyteidl.core + * @classdesc Represents an ApproveCondition. + * @implements IApproveCondition + * @constructor + * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set + */ + function ApproveCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApproveCondition signalId. + * @member {string} signalId + * @memberof flyteidl.core.ApproveCondition + * @instance + */ + ApproveCondition.prototype.signalId = ""; + + /** + * Creates a new ApproveCondition instance using the specified properties. + * @function create + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set + * @returns {flyteidl.core.ApproveCondition} ApproveCondition instance + */ + ApproveCondition.create = function create(properties) { + return new ApproveCondition(properties); + }; + + /** + * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {flyteidl.core.IApproveCondition} message ApproveCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApproveCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + return writer; + }; + + /** + * Decodes an ApproveCondition message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ApproveCondition} ApproveCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApproveCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ApproveCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signalId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ApproveCondition message. + * @function verify + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ApproveCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; + return null; + }; + + return ApproveCondition; + })(); + + core.SignalCondition = (function() { + + /** + * Properties of a SignalCondition. + * @memberof flyteidl.core + * @interface ISignalCondition + * @property {string|null} [signalId] SignalCondition signalId + * @property {flyteidl.core.ILiteralType|null} [type] SignalCondition type + * @property {string|null} [outputVariableName] SignalCondition outputVariableName + */ + + /** + * Constructs a new SignalCondition. + * @memberof flyteidl.core + * @classdesc Represents a SignalCondition. + * @implements ISignalCondition + * @constructor + * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set + */ + function SignalCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalCondition signalId. + * @member {string} signalId + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.signalId = ""; + + /** + * SignalCondition type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.type = null; + + /** + * SignalCondition outputVariableName. + * @member {string} outputVariableName + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.outputVariableName = ""; + + /** + * Creates a new SignalCondition instance using the specified properties. + * @function create + * @memberof flyteidl.core.SignalCondition + * @static + * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set + * @returns {flyteidl.core.SignalCondition} SignalCondition instance + */ + SignalCondition.create = function create(properties) { + return new SignalCondition(properties); + }; + + /** + * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SignalCondition + * @static + * @param {flyteidl.core.ISignalCondition} message SignalCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputVariableName); + return writer; + }; + + /** + * Decodes a SignalCondition message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SignalCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SignalCondition} SignalCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signalId = reader.string(); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 3: + message.outputVariableName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalCondition message. + * @function verify + * @memberof flyteidl.core.SignalCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) + if (!$util.isString(message.outputVariableName)) + return "outputVariableName: string expected"; + return null; + }; + + return SignalCondition; + })(); + + core.SleepCondition = (function() { + + /** + * Properties of a SleepCondition. + * @memberof flyteidl.core + * @interface ISleepCondition + * @property {google.protobuf.IDuration|null} [duration] SleepCondition duration + */ + + /** + * Constructs a new SleepCondition. + * @memberof flyteidl.core + * @classdesc Represents a SleepCondition. + * @implements ISleepCondition + * @constructor + * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set + */ + function SleepCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SleepCondition duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.core.SleepCondition + * @instance + */ + SleepCondition.prototype.duration = null; + + /** + * Creates a new SleepCondition instance using the specified properties. + * @function create + * @memberof flyteidl.core.SleepCondition + * @static + * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set + * @returns {flyteidl.core.SleepCondition} SleepCondition instance + */ + SleepCondition.create = function create(properties) { + return new SleepCondition(properties); + }; + + /** + * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SleepCondition + * @static + * @param {flyteidl.core.ISleepCondition} message SleepCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SleepCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SleepCondition message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SleepCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SleepCondition} SleepCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SleepCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SleepCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SleepCondition message. + * @function verify + * @memberof flyteidl.core.SleepCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SleepCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + return null; + }; + + return SleepCondition; + })(); + + core.GateNode = (function() { + + /** + * Properties of a GateNode. + * @memberof flyteidl.core + * @interface IGateNode + * @property {flyteidl.core.IApproveCondition|null} [approve] GateNode approve + * @property {flyteidl.core.ISignalCondition|null} [signal] GateNode signal + * @property {flyteidl.core.ISleepCondition|null} [sleep] GateNode sleep + */ + + /** + * Constructs a new GateNode. + * @memberof flyteidl.core + * @classdesc Represents a GateNode. + * @implements IGateNode + * @constructor + * @param {flyteidl.core.IGateNode=} [properties] Properties to set + */ + function GateNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GateNode approve. + * @member {flyteidl.core.IApproveCondition|null|undefined} approve + * @memberof flyteidl.core.GateNode + * @instance + */ + GateNode.prototype.approve = null; + + /** + * GateNode signal. + * @member {flyteidl.core.ISignalCondition|null|undefined} signal + * @memberof flyteidl.core.GateNode + * @instance + */ + GateNode.prototype.signal = null; + + /** + * GateNode sleep. + * @member {flyteidl.core.ISleepCondition|null|undefined} sleep + * @memberof flyteidl.core.GateNode + * @instance + */ + GateNode.prototype.sleep = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GateNode condition. + * @member {"approve"|"signal"|"sleep"|undefined} condition + * @memberof flyteidl.core.GateNode + * @instance + */ + Object.defineProperty(GateNode.prototype, "condition", { + get: $util.oneOfGetter($oneOfFields = ["approve", "signal", "sleep"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GateNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.GateNode + * @static + * @param {flyteidl.core.IGateNode=} [properties] Properties to set + * @returns {flyteidl.core.GateNode} GateNode instance + */ + GateNode.create = function create(properties) { + return new GateNode(properties); + }; + + /** + * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.GateNode + * @static + * @param {flyteidl.core.IGateNode} message GateNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GateNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.approve != null && message.hasOwnProperty("approve")) + $root.flyteidl.core.ApproveCondition.encode(message.approve, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.signal != null && message.hasOwnProperty("signal")) + $root.flyteidl.core.SignalCondition.encode(message.signal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sleep != null && message.hasOwnProperty("sleep")) + $root.flyteidl.core.SleepCondition.encode(message.sleep, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GateNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.GateNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.GateNode} GateNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GateNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GateNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.approve = $root.flyteidl.core.ApproveCondition.decode(reader, reader.uint32()); + break; + case 2: + message.signal = $root.flyteidl.core.SignalCondition.decode(reader, reader.uint32()); + break; + case 3: + message.sleep = $root.flyteidl.core.SleepCondition.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GateNode message. + * @function verify + * @memberof flyteidl.core.GateNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GateNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.approve != null && message.hasOwnProperty("approve")) { + properties.condition = 1; + { + var error = $root.flyteidl.core.ApproveCondition.verify(message.approve); + if (error) + return "approve." + error; + } + } + if (message.signal != null && message.hasOwnProperty("signal")) { + if (properties.condition === 1) + return "condition: multiple values"; + properties.condition = 1; + { + var error = $root.flyteidl.core.SignalCondition.verify(message.signal); + if (error) + return "signal." + error; + } + } + if (message.sleep != null && message.hasOwnProperty("sleep")) { + if (properties.condition === 1) + return "condition: multiple values"; + properties.condition = 1; + { + var error = $root.flyteidl.core.SleepCondition.verify(message.sleep); + if (error) + return "sleep." + error; + } + } + return null; + }; + + return GateNode; + })(); + + core.ArrayNode = (function() { + + /** + * Properties of an ArrayNode. + * @memberof flyteidl.core + * @interface IArrayNode + * @property {flyteidl.core.INode|null} [node] ArrayNode node + * @property {number|null} [parallelism] ArrayNode parallelism + * @property {number|null} [minSuccesses] ArrayNode minSuccesses + * @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio + */ + + /** + * Constructs a new ArrayNode. + * @memberof flyteidl.core + * @classdesc Represents an ArrayNode. + * @implements IArrayNode + * @constructor + * @param {flyteidl.core.IArrayNode=} [properties] Properties to set + */ + function ArrayNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArrayNode node. + * @member {flyteidl.core.INode|null|undefined} node + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.node = null; + + /** + * ArrayNode parallelism. + * @member {number} parallelism + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.parallelism = 0; + + /** + * ArrayNode minSuccesses. + * @member {number} minSuccesses + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.minSuccesses = 0; + + /** + * ArrayNode minSuccessRatio. + * @member {number} minSuccessRatio + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.minSuccessRatio = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ArrayNode successCriteria. + * @member {"minSuccesses"|"minSuccessRatio"|undefined} successCriteria + * @memberof flyteidl.core.ArrayNode + * @instance + */ + Object.defineProperty(ArrayNode.prototype, "successCriteria", { + get: $util.oneOfGetter($oneOfFields = ["minSuccesses", "minSuccessRatio"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ArrayNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.ArrayNode + * @static + * @param {flyteidl.core.IArrayNode=} [properties] Properties to set + * @returns {flyteidl.core.ArrayNode} ArrayNode instance + */ + ArrayNode.create = function create(properties) { + return new ArrayNode(properties); + }; + + /** + * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ArrayNode + * @static + * @param {flyteidl.core.IArrayNode} message ArrayNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArrayNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.node != null && message.hasOwnProperty("node")) + $root.flyteidl.core.Node.encode(message.node, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.parallelism); + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minSuccesses); + if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio); + return writer; + }; + + /** + * Decodes an ArrayNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ArrayNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ArrayNode} ArrayNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArrayNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArrayNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.node = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 2: + message.parallelism = reader.uint32(); + break; + case 3: + message.minSuccesses = reader.uint32(); + break; + case 4: + message.minSuccessRatio = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ArrayNode message. + * @function verify + * @memberof flyteidl.core.ArrayNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArrayNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.node != null && message.hasOwnProperty("node")) { + var error = $root.flyteidl.core.Node.verify(message.node); + if (error) + return "node." + error; + } + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + if (!$util.isInteger(message.parallelism)) + return "parallelism: integer expected"; + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) { + properties.successCriteria = 1; + if (!$util.isInteger(message.minSuccesses)) + return "minSuccesses: integer expected"; + } + if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) { + if (properties.successCriteria === 1) + return "successCriteria: multiple values"; + properties.successCriteria = 1; + if (typeof message.minSuccessRatio !== "number") + return "minSuccessRatio: number expected"; + } + return null; + }; + + return ArrayNode; + })(); + + core.NodeMetadata = (function() { + + /** + * Properties of a NodeMetadata. + * @memberof flyteidl.core + * @interface INodeMetadata + * @property {string|null} [name] NodeMetadata name + * @property {google.protobuf.IDuration|null} [timeout] NodeMetadata timeout + * @property {flyteidl.core.IRetryStrategy|null} [retries] NodeMetadata retries + * @property {boolean|null} [interruptible] NodeMetadata interruptible + */ + + /** + * Constructs a new NodeMetadata. + * @memberof flyteidl.core + * @classdesc Represents a NodeMetadata. + * @implements INodeMetadata + * @constructor + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + */ + function NodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeMetadata name. + * @member {string} name + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.name = ""; + + /** + * NodeMetadata timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.timeout = null; + + /** + * NodeMetadata retries. + * @member {flyteidl.core.IRetryStrategy|null|undefined} retries + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.retries = null; + + /** + * NodeMetadata interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.interruptible = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NodeMetadata interruptibleValue. + * @member {"interruptible"|undefined} interruptibleValue + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + Object.defineProperty(NodeMetadata.prototype, "interruptibleValue", { + get: $util.oneOfGetter($oneOfFields = ["interruptible"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + * @returns {flyteidl.core.NodeMetadata} NodeMetadata instance + */ + NodeMetadata.create = function create(properties) { + return new NodeMetadata(properties); + }; + + /** + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {flyteidl.core.INodeMetadata} message NodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.timeout != null && message.hasOwnProperty("timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retries != null && message.hasOwnProperty("retries")) + $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.interruptible); + return writer; + }; + + /** + * Decodes a NodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeMetadata} NodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 4: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + break; + case 6: + message.interruptible = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeMetadata message. + * @function verify + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.retries != null && message.hasOwnProperty("retries")) { + var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); + if (error) + return "retries." + error; + } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + properties.interruptibleValue = 1; + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + } + return null; + }; + + return NodeMetadata; + })(); + + core.Alias = (function() { + + /** + * Properties of an Alias. + * @memberof flyteidl.core + * @interface IAlias + * @property {string|null} ["var"] Alias var + * @property {string|null} [alias] Alias alias + */ + + /** + * Constructs a new Alias. + * @memberof flyteidl.core + * @classdesc Represents an Alias. + * @implements IAlias + * @constructor + * @param {flyteidl.core.IAlias=} [properties] Properties to set + */ + function Alias(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Alias var. + * @member {string} var + * @memberof flyteidl.core.Alias + * @instance + */ + Alias.prototype["var"] = ""; + + /** + * Alias alias. + * @member {string} alias + * @memberof flyteidl.core.Alias + * @instance + */ + Alias.prototype.alias = ""; + + /** + * Creates a new Alias instance using the specified properties. + * @function create + * @memberof flyteidl.core.Alias + * @static + * @param {flyteidl.core.IAlias=} [properties] Properties to set + * @returns {flyteidl.core.Alias} Alias instance + */ + Alias.create = function create(properties) { + return new Alias(properties); + }; + + /** + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Alias + * @static + * @param {flyteidl.core.IAlias} message Alias message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Alias.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.alias != null && message.hasOwnProperty("alias")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); + return writer; + }; + + /** + * Decodes an Alias message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Alias + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Alias} Alias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Alias.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Alias(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = reader.string(); + break; + case 2: + message.alias = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Alias message. + * @function verify + * @memberof flyteidl.core.Alias + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Alias.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.alias != null && message.hasOwnProperty("alias")) + if (!$util.isString(message.alias)) + return "alias: string expected"; + return null; + }; + + return Alias; + })(); + + core.Node = (function() { + + /** + * Properties of a Node. + * @memberof flyteidl.core + * @interface INode + * @property {string|null} [id] Node id + * @property {flyteidl.core.INodeMetadata|null} [metadata] Node metadata + * @property {Array.|null} [inputs] Node inputs + * @property {Array.|null} [upstreamNodeIds] Node upstreamNodeIds + * @property {Array.|null} [outputAliases] Node outputAliases + * @property {flyteidl.core.ITaskNode|null} [taskNode] Node taskNode + * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode + * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode + * @property {flyteidl.core.IGateNode|null} [gateNode] Node gateNode + * @property {flyteidl.core.IArrayNode|null} [arrayNode] Node arrayNode + */ + + /** + * Constructs a new Node. + * @memberof flyteidl.core + * @classdesc Represents a Node. + * @implements INode + * @constructor + * @param {flyteidl.core.INode=} [properties] Properties to set + */ + function Node(properties) { + this.inputs = []; + this.upstreamNodeIds = []; + this.outputAliases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Node id. + * @member {string} id + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.id = ""; + + /** + * Node metadata. + * @member {flyteidl.core.INodeMetadata|null|undefined} metadata + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.metadata = null; + + /** + * Node inputs. + * @member {Array.} inputs + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.inputs = $util.emptyArray; + + /** + * Node upstreamNodeIds. + * @member {Array.} upstreamNodeIds + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.upstreamNodeIds = $util.emptyArray; + + /** + * Node outputAliases. + * @member {Array.} outputAliases + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.outputAliases = $util.emptyArray; + + /** + * Node taskNode. + * @member {flyteidl.core.ITaskNode|null|undefined} taskNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.taskNode = null; + + /** + * Node workflowNode. + * @member {flyteidl.core.IWorkflowNode|null|undefined} workflowNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.workflowNode = null; + + /** + * Node branchNode. + * @member {flyteidl.core.IBranchNode|null|undefined} branchNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.branchNode = null; + + /** + * Node gateNode. + * @member {flyteidl.core.IGateNode|null|undefined} gateNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.gateNode = null; + + /** + * Node arrayNode. + * @member {flyteidl.core.IArrayNode|null|undefined} arrayNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.arrayNode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Node target. + * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"|undefined} target + * @memberof flyteidl.core.Node + * @instance + */ + Object.defineProperty(Node.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode", "arrayNode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Node instance using the specified properties. + * @function create + * @memberof flyteidl.core.Node + * @static + * @param {flyteidl.core.INode=} [properties] Properties to set + * @returns {flyteidl.core.Node} Node instance + */ + Node.create = function create(properties) { + return new Node(properties); + }; + + /** + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Node + * @static + * @param {flyteidl.core.INode} message Node message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Node.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.NodeMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inputs != null && message.inputs.length) + for (var i = 0; i < message.inputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.inputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upstreamNodeIds != null && message.upstreamNodeIds.length) + for (var i = 0; i < message.upstreamNodeIds.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.upstreamNodeIds[i]); + if (message.outputAliases != null && message.outputAliases.length) + for (var i = 0; i < message.outputAliases.length; ++i) + $root.flyteidl.core.Alias.encode(message.outputAliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.taskNode != null && message.hasOwnProperty("taskNode")) + $root.flyteidl.core.TaskNode.encode(message.taskNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) + $root.flyteidl.core.WorkflowNode.encode(message.workflowNode, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.branchNode != null && message.hasOwnProperty("branchNode")) + $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.gateNode != null && message.hasOwnProperty("gateNode")) + $root.flyteidl.core.GateNode.encode(message.gateNode, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) + $root.flyteidl.core.ArrayNode.encode(message.arrayNode, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Node message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Node + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Node} Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Node.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Node(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.metadata = $root.flyteidl.core.NodeMetadata.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.upstreamNodeIds && message.upstreamNodeIds.length)) + message.upstreamNodeIds = []; + message.upstreamNodeIds.push(reader.string()); + break; + case 5: + if (!(message.outputAliases && message.outputAliases.length)) + message.outputAliases = []; + message.outputAliases.push($root.flyteidl.core.Alias.decode(reader, reader.uint32())); + break; + case 6: + message.taskNode = $root.flyteidl.core.TaskNode.decode(reader, reader.uint32()); + break; + case 7: + message.workflowNode = $root.flyteidl.core.WorkflowNode.decode(reader, reader.uint32()); + break; + case 8: + message.branchNode = $root.flyteidl.core.BranchNode.decode(reader, reader.uint32()); + break; + case 9: + message.gateNode = $root.flyteidl.core.GateNode.decode(reader, reader.uint32()); + break; + case 10: + message.arrayNode = $root.flyteidl.core.ArrayNode.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Node message. + * @function verify + * @memberof flyteidl.core.Node + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Node.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.NodeMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (var i = 0; i < message.inputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.inputs[i]); + if (error) + return "inputs." + error; + } + } + if (message.upstreamNodeIds != null && message.hasOwnProperty("upstreamNodeIds")) { + if (!Array.isArray(message.upstreamNodeIds)) + return "upstreamNodeIds: array expected"; + for (var i = 0; i < message.upstreamNodeIds.length; ++i) + if (!$util.isString(message.upstreamNodeIds[i])) + return "upstreamNodeIds: string[] expected"; + } + if (message.outputAliases != null && message.hasOwnProperty("outputAliases")) { + if (!Array.isArray(message.outputAliases)) + return "outputAliases: array expected"; + for (var i = 0; i < message.outputAliases.length; ++i) { + var error = $root.flyteidl.core.Alias.verify(message.outputAliases[i]); + if (error) + return "outputAliases." + error; + } + } + if (message.taskNode != null && message.hasOwnProperty("taskNode")) { + properties.target = 1; + { + var error = $root.flyteidl.core.TaskNode.verify(message.taskNode); + if (error) + return "taskNode." + error; + } + } + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.WorkflowNode.verify(message.workflowNode); + if (error) + return "workflowNode." + error; + } + } + if (message.branchNode != null && message.hasOwnProperty("branchNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.BranchNode.verify(message.branchNode); + if (error) + return "branchNode." + error; + } + } + if (message.gateNode != null && message.hasOwnProperty("gateNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.GateNode.verify(message.gateNode); + if (error) + return "gateNode." + error; + } + } + if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.ArrayNode.verify(message.arrayNode); + if (error) + return "arrayNode." + error; + } + } + return null; + }; + + return Node; + })(); + + core.WorkflowMetadata = (function() { + + /** + * Properties of a WorkflowMetadata. + * @memberof flyteidl.core + * @interface IWorkflowMetadata + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] WorkflowMetadata qualityOfService + * @property {flyteidl.core.WorkflowMetadata.OnFailurePolicy|null} [onFailure] WorkflowMetadata onFailure + * @property {Object.|null} [tags] WorkflowMetadata tags + */ + + /** + * Constructs a new WorkflowMetadata. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowMetadata. + * @implements IWorkflowMetadata + * @constructor + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + */ + function WorkflowMetadata(properties) { + this.tags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowMetadata qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.qualityOfService = null; + + /** + * WorkflowMetadata onFailure. + * @member {flyteidl.core.WorkflowMetadata.OnFailurePolicy} onFailure + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.onFailure = 0; + + /** + * WorkflowMetadata tags. + * @member {Object.} tags + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.tags = $util.emptyObject; + + /** + * Creates a new WorkflowMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata instance + */ + WorkflowMetadata.create = function create(properties) { + return new WorkflowMetadata(properties); + }; + + /** + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata} message WorkflowMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.onFailure != null && message.hasOwnProperty("onFailure")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.onFailure); + if (message.tags != null && message.hasOwnProperty("tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 2: + message.onFailure = reader.int32(); + break; + case 3: + reader.skip().pos++; + if (message.tags === $util.emptyObject) + message.tags = {}; + key = reader.string(); + reader.pos++; + message.tags[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowMetadata message. + * @function verify + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + if (message.onFailure != null && message.hasOwnProperty("onFailure")) + switch (message.onFailure) { + default: + return "onFailure: enum value expected"; + case 0: + case 1: + break; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + return null; + }; + + /** + * OnFailurePolicy enum. + * @name flyteidl.core.WorkflowMetadata.OnFailurePolicy + * @enum {string} + * @property {number} FAIL_IMMEDIATELY=0 FAIL_IMMEDIATELY value + * @property {number} FAIL_AFTER_EXECUTABLE_NODES_COMPLETE=1 FAIL_AFTER_EXECUTABLE_NODES_COMPLETE value + */ + WorkflowMetadata.OnFailurePolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FAIL_IMMEDIATELY"] = 0; + values[valuesById[1] = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE"] = 1; + return values; + })(); + + return WorkflowMetadata; + })(); + + core.WorkflowMetadataDefaults = (function() { + + /** + * Properties of a WorkflowMetadataDefaults. + * @memberof flyteidl.core + * @interface IWorkflowMetadataDefaults + * @property {boolean|null} [interruptible] WorkflowMetadataDefaults interruptible + */ + + /** + * Constructs a new WorkflowMetadataDefaults. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowMetadataDefaults. + * @implements IWorkflowMetadataDefaults + * @constructor + * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set + */ + function WorkflowMetadataDefaults(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowMetadataDefaults interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @instance + */ + WorkflowMetadataDefaults.prototype.interruptible = false; + + /** + * Creates a new WorkflowMetadataDefaults instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults instance + */ + WorkflowMetadataDefaults.create = function create(properties) { + return new WorkflowMetadataDefaults(properties); + }; + + /** + * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {flyteidl.core.IWorkflowMetadataDefaults} message WorkflowMetadataDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowMetadataDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.interruptible); + return writer; + }; + + /** + * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowMetadataDefaults.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadataDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interruptible = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowMetadataDefaults message. + * @function verify + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowMetadataDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + return null; + }; + + return WorkflowMetadataDefaults; + })(); + + core.WorkflowTemplate = (function() { + + /** + * Properties of a WorkflowTemplate. + * @memberof flyteidl.core + * @interface IWorkflowTemplate + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowTemplate id + * @property {flyteidl.core.IWorkflowMetadata|null} [metadata] WorkflowTemplate metadata + * @property {flyteidl.core.ITypedInterface|null} ["interface"] WorkflowTemplate interface + * @property {Array.|null} [nodes] WorkflowTemplate nodes + * @property {Array.|null} [outputs] WorkflowTemplate outputs + * @property {flyteidl.core.INode|null} [failureNode] WorkflowTemplate failureNode + * @property {flyteidl.core.IWorkflowMetadataDefaults|null} [metadataDefaults] WorkflowTemplate metadataDefaults + */ + + /** + * Constructs a new WorkflowTemplate. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowTemplate. + * @implements IWorkflowTemplate + * @constructor + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + */ + function WorkflowTemplate(properties) { + this.nodes = []; + this.outputs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.id = null; + + /** + * WorkflowTemplate metadata. + * @member {flyteidl.core.IWorkflowMetadata|null|undefined} metadata + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.metadata = null; + + /** + * WorkflowTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype["interface"] = null; + + /** + * WorkflowTemplate nodes. + * @member {Array.} nodes + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.nodes = $util.emptyArray; + + /** + * WorkflowTemplate outputs. + * @member {Array.} outputs + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.outputs = $util.emptyArray; + + /** + * WorkflowTemplate failureNode. + * @member {flyteidl.core.INode|null|undefined} failureNode + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.failureNode = null; + + /** + * WorkflowTemplate metadataDefaults. + * @member {flyteidl.core.IWorkflowMetadataDefaults|null|undefined} metadataDefaults + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.metadataDefaults = null; + + /** + * Creates a new WorkflowTemplate instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate instance + */ + WorkflowTemplate.create = function create(properties) { + return new WorkflowTemplate(properties); + }; + + /** + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {flyteidl.core.IWorkflowTemplate} message WorkflowTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.WorkflowMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.nodes != null && message.nodes.length) + for (var i = 0; i < message.nodes.length; ++i) + $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.failureNode != null && message.hasOwnProperty("failureNode")) + $root.flyteidl.core.Node.encode(message.failureNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) + $root.flyteidl.core.WorkflowMetadataDefaults.encode(message.metadataDefaults, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowTemplate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowTemplate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.flyteidl.core.WorkflowMetadata.decode(reader, reader.uint32()); + break; + case 3: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 6: + message.failureNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 7: + message.metadataDefaults = $root.flyteidl.core.WorkflowMetadataDefaults.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowTemplate message. + * @function verify + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.WorkflowMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (var i = 0; i < message.nodes.length; ++i) { + var error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.failureNode != null && message.hasOwnProperty("failureNode")) { + var error = $root.flyteidl.core.Node.verify(message.failureNode); + if (error) + return "failureNode." + error; + } + if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) { + var error = $root.flyteidl.core.WorkflowMetadataDefaults.verify(message.metadataDefaults); + if (error) + return "metadataDefaults." + error; + } + return null; + }; + + return WorkflowTemplate; + })(); + + core.TaskNodeOverrides = (function() { + + /** + * Properties of a TaskNodeOverrides. + * @memberof flyteidl.core + * @interface ITaskNodeOverrides + * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources + */ + + /** + * Constructs a new TaskNodeOverrides. + * @memberof flyteidl.core + * @classdesc Represents a TaskNodeOverrides. + * @implements ITaskNodeOverrides + * @constructor + * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set + */ + function TaskNodeOverrides(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNodeOverrides resources. + * @member {flyteidl.core.IResources|null|undefined} resources + * @memberof flyteidl.core.TaskNodeOverrides + * @instance + */ + TaskNodeOverrides.prototype.resources = null; + + /** + * Creates a new TaskNodeOverrides instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set + * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides instance + */ + TaskNodeOverrides.create = function create(properties) { + return new TaskNodeOverrides(properties); + }; + + /** + * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {flyteidl.core.ITaskNodeOverrides} message TaskNodeOverrides message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNodeOverrides.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resources != null && message.hasOwnProperty("resources")) + $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskNodeOverrides message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNodeOverrides.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNodeOverrides(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNodeOverrides message. + * @function verify + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNodeOverrides.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resources != null && message.hasOwnProperty("resources")) { + var error = $root.flyteidl.core.Resources.verify(message.resources); + if (error) + return "resources." + error; + } + return null; + }; + + return TaskNodeOverrides; + })(); + + core.ComparisonExpression = (function() { + + /** + * Properties of a ComparisonExpression. + * @memberof flyteidl.core + * @interface IComparisonExpression + * @property {flyteidl.core.ComparisonExpression.Operator|null} [operator] ComparisonExpression operator + * @property {flyteidl.core.IOperand|null} [leftValue] ComparisonExpression leftValue + * @property {flyteidl.core.IOperand|null} [rightValue] ComparisonExpression rightValue + */ + + /** + * Constructs a new ComparisonExpression. + * @memberof flyteidl.core + * @classdesc Represents a ComparisonExpression. + * @implements IComparisonExpression + * @constructor + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + */ + function ComparisonExpression(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ComparisonExpression operator. + * @member {flyteidl.core.ComparisonExpression.Operator} operator + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.operator = 0; + + /** + * ComparisonExpression leftValue. + * @member {flyteidl.core.IOperand|null|undefined} leftValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.leftValue = null; + + /** + * ComparisonExpression rightValue. + * @member {flyteidl.core.IOperand|null|undefined} rightValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.rightValue = null; + + /** + * Creates a new ComparisonExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression instance + */ + ComparisonExpression.create = function create(properties) { + return new ComparisonExpression(properties); + }; + + /** + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {flyteidl.core.IComparisonExpression} message ComparisonExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComparisonExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftValue != null && message.hasOwnProperty("leftValue")) + $root.flyteidl.core.Operand.encode(message.leftValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightValue != null && message.hasOwnProperty("rightValue")) + $root.flyteidl.core.Operand.encode(message.rightValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ComparisonExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComparisonExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ComparisonExpression(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operator = reader.int32(); + break; + case 2: + message.leftValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; + case 3: + message.rightValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ComparisonExpression message. + * @function verify + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComparisonExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { + default: + return "operator: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.leftValue != null && message.hasOwnProperty("leftValue")) { + var error = $root.flyteidl.core.Operand.verify(message.leftValue); + if (error) + return "leftValue." + error; + } + if (message.rightValue != null && message.hasOwnProperty("rightValue")) { + var error = $root.flyteidl.core.Operand.verify(message.rightValue); + if (error) + return "rightValue." + error; + } + return null; + }; + + /** + * Operator enum. + * @name flyteidl.core.ComparisonExpression.Operator + * @enum {string} + * @property {number} EQ=0 EQ value + * @property {number} NEQ=1 NEQ value + * @property {number} GT=2 GT value + * @property {number} GTE=3 GTE value + * @property {number} LT=4 LT value + * @property {number} LTE=5 LTE value + */ + ComparisonExpression.Operator = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EQ"] = 0; + values[valuesById[1] = "NEQ"] = 1; + values[valuesById[2] = "GT"] = 2; + values[valuesById[3] = "GTE"] = 3; + values[valuesById[4] = "LT"] = 4; + values[valuesById[5] = "LTE"] = 5; + return values; + })(); + + return ComparisonExpression; + })(); + + core.Operand = (function() { + + /** + * Properties of an Operand. + * @memberof flyteidl.core + * @interface IOperand + * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive + * @property {string|null} ["var"] Operand var + * @property {flyteidl.core.IScalar|null} [scalar] Operand scalar + */ + + /** + * Constructs a new Operand. + * @memberof flyteidl.core + * @classdesc Represents an Operand. + * @implements IOperand + * @constructor + * @param {flyteidl.core.IOperand=} [properties] Properties to set + */ + function Operand(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Operand primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype.primitive = null; + + /** + * Operand var. + * @member {string} var + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype["var"] = ""; + + /** + * Operand scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype.scalar = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Operand val. + * @member {"primitive"|"var"|"scalar"|undefined} val + * @memberof flyteidl.core.Operand + * @instance + */ + Object.defineProperty(Operand.prototype, "val", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "var", "scalar"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operand instance using the specified properties. + * @function create + * @memberof flyteidl.core.Operand + * @static + * @param {flyteidl.core.IOperand=} [properties] Properties to set + * @returns {flyteidl.core.Operand} Operand instance + */ + Operand.create = function create(properties) { + return new Operand(properties); + }; + + /** + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Operand + * @static + * @param {flyteidl.core.IOperand} message Operand message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operand.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Operand message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Operand + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Operand} Operand + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operand.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Operand(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message["var"] = reader.string(); + break; + case 3: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Operand message. + * @function verify + * @memberof flyteidl.core.Operand + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operand.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.val = 1; + { + var error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message["var"] != null && message.hasOwnProperty("var")) { + if (properties.val === 1) + return "val: multiple values"; + properties.val = 1; + if (!$util.isString(message["var"])) + return "var: string expected"; + } + if (message.scalar != null && message.hasOwnProperty("scalar")) { + if (properties.val === 1) + return "val: multiple values"; + properties.val = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + return null; + }; + + return Operand; + })(); + + core.BooleanExpression = (function() { + + /** + * Properties of a BooleanExpression. + * @memberof flyteidl.core + * @interface IBooleanExpression + * @property {flyteidl.core.IConjunctionExpression|null} [conjunction] BooleanExpression conjunction + * @property {flyteidl.core.IComparisonExpression|null} [comparison] BooleanExpression comparison + */ + + /** + * Constructs a new BooleanExpression. + * @memberof flyteidl.core + * @classdesc Represents a BooleanExpression. + * @implements IBooleanExpression + * @constructor + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + */ + function BooleanExpression(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BooleanExpression conjunction. + * @member {flyteidl.core.IConjunctionExpression|null|undefined} conjunction + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + BooleanExpression.prototype.conjunction = null; + + /** + * BooleanExpression comparison. + * @member {flyteidl.core.IComparisonExpression|null|undefined} comparison + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + BooleanExpression.prototype.comparison = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BooleanExpression expr. + * @member {"conjunction"|"comparison"|undefined} expr + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + Object.defineProperty(BooleanExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["conjunction", "comparison"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BooleanExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + * @returns {flyteidl.core.BooleanExpression} BooleanExpression instance + */ + BooleanExpression.create = function create(properties) { + return new BooleanExpression(properties); + }; + + /** + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {flyteidl.core.IBooleanExpression} message BooleanExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BooleanExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.conjunction != null && message.hasOwnProperty("conjunction")) + $root.flyteidl.core.ConjunctionExpression.encode(message.conjunction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.comparison != null && message.hasOwnProperty("comparison")) + $root.flyteidl.core.ComparisonExpression.encode(message.comparison, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BooleanExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BooleanExpression} BooleanExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BooleanExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BooleanExpression(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.conjunction = $root.flyteidl.core.ConjunctionExpression.decode(reader, reader.uint32()); + break; + case 2: + message.comparison = $root.flyteidl.core.ComparisonExpression.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BooleanExpression message. + * @function verify + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BooleanExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.conjunction != null && message.hasOwnProperty("conjunction")) { + properties.expr = 1; + { + var error = $root.flyteidl.core.ConjunctionExpression.verify(message.conjunction); + if (error) + return "conjunction." + error; + } + } + if (message.comparison != null && message.hasOwnProperty("comparison")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.flyteidl.core.ComparisonExpression.verify(message.comparison); + if (error) + return "comparison." + error; + } + } + return null; + }; + + return BooleanExpression; + })(); + + core.ConjunctionExpression = (function() { + + /** + * Properties of a ConjunctionExpression. + * @memberof flyteidl.core + * @interface IConjunctionExpression + * @property {flyteidl.core.ConjunctionExpression.LogicalOperator|null} [operator] ConjunctionExpression operator + * @property {flyteidl.core.IBooleanExpression|null} [leftExpression] ConjunctionExpression leftExpression + * @property {flyteidl.core.IBooleanExpression|null} [rightExpression] ConjunctionExpression rightExpression + */ + + /** + * Constructs a new ConjunctionExpression. + * @memberof flyteidl.core + * @classdesc Represents a ConjunctionExpression. + * @implements IConjunctionExpression + * @constructor + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + */ + function ConjunctionExpression(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConjunctionExpression operator. + * @member {flyteidl.core.ConjunctionExpression.LogicalOperator} operator + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.operator = 0; + + /** + * ConjunctionExpression leftExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} leftExpression + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.leftExpression = null; + + /** + * ConjunctionExpression rightExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} rightExpression + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.rightExpression = null; + + /** + * Creates a new ConjunctionExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression instance + */ + ConjunctionExpression.create = function create(properties) { + return new ConjunctionExpression(properties); + }; + + /** + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {flyteidl.core.IConjunctionExpression} message ConjunctionExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConjunctionExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.leftExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.rightExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ConjunctionExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConjunctionExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConjunctionExpression(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operator = reader.int32(); + break; + case 2: + message.leftExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + case 3: + message.rightExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ConjunctionExpression message. + * @function verify + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConjunctionExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { + default: + return "operator: enum value expected"; + case 0: + case 1: + break; + } + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.leftExpression); + if (error) + return "leftExpression." + error; + } + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.rightExpression); + if (error) + return "rightExpression." + error; + } + return null; + }; + + /** + * LogicalOperator enum. + * @name flyteidl.core.ConjunctionExpression.LogicalOperator + * @enum {string} + * @property {number} AND=0 AND value + * @property {number} OR=1 OR value + */ + ConjunctionExpression.LogicalOperator = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AND"] = 0; + values[valuesById[1] = "OR"] = 1; + return values; + })(); + + return ConjunctionExpression; + })(); + + core.Primitive = (function() { + + /** + * Properties of a Primitive. + * @memberof flyteidl.core + * @interface IPrimitive + * @property {Long|null} [integer] Primitive integer + * @property {number|null} [floatValue] Primitive floatValue + * @property {string|null} [stringValue] Primitive stringValue + * @property {boolean|null} [boolean] Primitive boolean + * @property {google.protobuf.ITimestamp|null} [datetime] Primitive datetime + * @property {google.protobuf.IDuration|null} [duration] Primitive duration + */ + + /** + * Constructs a new Primitive. + * @memberof flyteidl.core + * @classdesc Represents a Primitive. + * @implements IPrimitive + * @constructor + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + */ + function Primitive(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Primitive integer. + * @member {Long} integer + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.integer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Primitive floatValue. + * @member {number} floatValue + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.floatValue = 0; + + /** + * Primitive stringValue. + * @member {string} stringValue + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.stringValue = ""; + + /** + * Primitive boolean. + * @member {boolean} boolean + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.boolean = false; + + /** + * Primitive datetime. + * @member {google.protobuf.ITimestamp|null|undefined} datetime + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.datetime = null; + + /** + * Primitive duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.duration = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Primitive value. + * @member {"integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"|undefined} value + * @memberof flyteidl.core.Primitive + * @instance + */ + Object.defineProperty(Primitive.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["integer", "floatValue", "stringValue", "boolean", "datetime", "duration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Primitive instance using the specified properties. + * @function create + * @memberof flyteidl.core.Primitive + * @static + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + * @returns {flyteidl.core.Primitive} Primitive instance + */ + Primitive.create = function create(properties) { + return new Primitive(properties); + }; + + /** + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Primitive + * @static + * @param {flyteidl.core.IPrimitive} message Primitive message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Primitive.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.integer != null && message.hasOwnProperty("integer")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.integer); + if (message.floatValue != null && message.hasOwnProperty("floatValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.floatValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolean != null && message.hasOwnProperty("boolean")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolean); + if (message.datetime != null && message.hasOwnProperty("datetime")) + $root.google.protobuf.Timestamp.encode(message.datetime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Primitive message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Primitive + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Primitive} Primitive + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Primitive.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Primitive(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.integer = reader.int64(); + break; + case 2: + message.floatValue = reader.double(); + break; + case 3: + message.stringValue = reader.string(); + break; + case 4: + message.boolean = reader.bool(); + break; + case 5: + message.datetime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Primitive message. + * @function verify + * @memberof flyteidl.core.Primitive + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Primitive.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.integer != null && message.hasOwnProperty("integer")) { + properties.value = 1; + if (!$util.isInteger(message.integer) && !(message.integer && $util.isInteger(message.integer.low) && $util.isInteger(message.integer.high))) + return "integer: integer|Long expected"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolean != null && message.hasOwnProperty("boolean")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.boolean !== "boolean") + return "boolean: boolean expected"; + } + if (message.datetime != null && message.hasOwnProperty("datetime")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.datetime); + if (error) + return "datetime." + error; + } + } + if (message.duration != null && message.hasOwnProperty("duration")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + } + return null; + }; + + return Primitive; + })(); + + core.Void = (function() { + + /** + * Properties of a Void. + * @memberof flyteidl.core + * @interface IVoid + */ + + /** + * Constructs a new Void. + * @memberof flyteidl.core + * @classdesc Represents a Void. + * @implements IVoid + * @constructor + * @param {flyteidl.core.IVoid=} [properties] Properties to set + */ + function Void(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new Void instance using the specified properties. + * @function create + * @memberof flyteidl.core.Void + * @static + * @param {flyteidl.core.IVoid=} [properties] Properties to set + * @returns {flyteidl.core.Void} Void instance + */ + Void.create = function create(properties) { + return new Void(properties); + }; + + /** + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Void + * @static + * @param {flyteidl.core.IVoid} message Void message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Void.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a Void message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Void + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Void} Void + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Void.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Void(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Void message. + * @function verify + * @memberof flyteidl.core.Void + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Void.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return Void; + })(); + + core.Blob = (function() { + + /** + * Properties of a Blob. + * @memberof flyteidl.core + * @interface IBlob + * @property {flyteidl.core.IBlobMetadata|null} [metadata] Blob metadata + * @property {string|null} [uri] Blob uri + */ + + /** + * Constructs a new Blob. + * @memberof flyteidl.core + * @classdesc Represents a Blob. + * @implements IBlob + * @constructor + * @param {flyteidl.core.IBlob=} [properties] Properties to set + */ + function Blob(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Blob metadata. + * @member {flyteidl.core.IBlobMetadata|null|undefined} metadata + * @memberof flyteidl.core.Blob + * @instance + */ + Blob.prototype.metadata = null; + + /** + * Blob uri. + * @member {string} uri + * @memberof flyteidl.core.Blob + * @instance + */ + Blob.prototype.uri = ""; + + /** + * Creates a new Blob instance using the specified properties. + * @function create + * @memberof flyteidl.core.Blob + * @static + * @param {flyteidl.core.IBlob=} [properties] Properties to set + * @returns {flyteidl.core.Blob} Blob instance + */ + Blob.create = function create(properties) { + return new Blob(properties); + }; + + /** + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Blob + * @static + * @param {flyteidl.core.IBlob} message Blob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Blob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.BlobMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); + return writer; + }; + + /** + * Decodes a Blob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Blob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Blob} Blob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Blob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Blob(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = $root.flyteidl.core.BlobMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Blob message. + * @function verify + * @memberof flyteidl.core.Blob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Blob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.BlobMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + return null; + }; + + return Blob; + })(); + + core.BlobMetadata = (function() { + + /** + * Properties of a BlobMetadata. + * @memberof flyteidl.core + * @interface IBlobMetadata + * @property {flyteidl.core.IBlobType|null} [type] BlobMetadata type + */ + + /** + * Constructs a new BlobMetadata. + * @memberof flyteidl.core + * @classdesc Represents a BlobMetadata. + * @implements IBlobMetadata + * @constructor + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + */ + function BlobMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BlobMetadata type. + * @member {flyteidl.core.IBlobType|null|undefined} type + * @memberof flyteidl.core.BlobMetadata + * @instance + */ + BlobMetadata.prototype.type = null; + + /** + * Creates a new BlobMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + * @returns {flyteidl.core.BlobMetadata} BlobMetadata instance + */ + BlobMetadata.create = function create(properties) { + return new BlobMetadata(properties); + }; + + /** + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {flyteidl.core.IBlobMetadata} message BlobMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlobMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.BlobType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BlobMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BlobMetadata} BlobMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlobMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BlobMetadata message. + * @function verify + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlobMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.BlobType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return BlobMetadata; + })(); + + core.Binary = (function() { + + /** + * Properties of a Binary. + * @memberof flyteidl.core + * @interface IBinary + * @property {Uint8Array|null} [value] Binary value + * @property {string|null} [tag] Binary tag + */ + + /** + * Constructs a new Binary. + * @memberof flyteidl.core + * @classdesc Represents a Binary. + * @implements IBinary + * @constructor + * @param {flyteidl.core.IBinary=} [properties] Properties to set + */ + function Binary(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Binary value. + * @member {Uint8Array} value + * @memberof flyteidl.core.Binary + * @instance + */ + Binary.prototype.value = $util.newBuffer([]); + + /** + * Binary tag. + * @member {string} tag + * @memberof flyteidl.core.Binary + * @instance + */ + Binary.prototype.tag = ""; + + /** + * Creates a new Binary instance using the specified properties. + * @function create + * @memberof flyteidl.core.Binary + * @static + * @param {flyteidl.core.IBinary=} [properties] Properties to set + * @returns {flyteidl.core.Binary} Binary instance + */ + Binary.create = function create(properties) { + return new Binary(properties); + }; + + /** + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Binary + * @static + * @param {flyteidl.core.IBinary} message Binary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + if (message.tag != null && message.hasOwnProperty("tag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); + return writer; + }; + + /** + * Decodes a Binary message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Binary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Binary} Binary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binary.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bytes(); + break; + case 2: + message.tag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Binary message. + * @function verify + * @memberof flyteidl.core.Binary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Binary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + return null; + }; + + return Binary; + })(); + + core.Schema = (function() { + + /** + * Properties of a Schema. + * @memberof flyteidl.core + * @interface ISchema + * @property {string|null} [uri] Schema uri + * @property {flyteidl.core.ISchemaType|null} [type] Schema type + */ + + /** + * Constructs a new Schema. + * @memberof flyteidl.core + * @classdesc Represents a Schema. + * @implements ISchema + * @constructor + * @param {flyteidl.core.ISchema=} [properties] Properties to set + */ + function Schema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Schema uri. + * @member {string} uri + * @memberof flyteidl.core.Schema + * @instance + */ + Schema.prototype.uri = ""; + + /** + * Schema type. + * @member {flyteidl.core.ISchemaType|null|undefined} type + * @memberof flyteidl.core.Schema + * @instance + */ + Schema.prototype.type = null; + + /** + * Creates a new Schema instance using the specified properties. + * @function create + * @memberof flyteidl.core.Schema + * @static + * @param {flyteidl.core.ISchema=} [properties] Properties to set + * @returns {flyteidl.core.Schema} Schema instance + */ + Schema.create = function create(properties) { + return new Schema(properties); + }; + + /** + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Schema + * @static + * @param {flyteidl.core.ISchema} message Schema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.SchemaType.encode(message.type, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Schema message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Schema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Schema} Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Schema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 3: + message.type = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Schema message. + * @function verify + * @memberof flyteidl.core.Schema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Schema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.SchemaType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return Schema; + })(); + + core.Union = (function() { + + /** + * Properties of an Union. + * @memberof flyteidl.core + * @interface IUnion + * @property {flyteidl.core.ILiteral|null} [value] Union value + * @property {flyteidl.core.ILiteralType|null} [type] Union type + */ + + /** + * Constructs a new Union. + * @memberof flyteidl.core + * @classdesc Represents an Union. + * @implements IUnion + * @constructor + * @param {flyteidl.core.IUnion=} [properties] Properties to set + */ + function Union(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Union value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.core.Union + * @instance + */ + Union.prototype.value = null; + + /** + * Union type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.Union + * @instance + */ + Union.prototype.type = null; + + /** + * Creates a new Union instance using the specified properties. + * @function create + * @memberof flyteidl.core.Union + * @static + * @param {flyteidl.core.IUnion=} [properties] Properties to set + * @returns {flyteidl.core.Union} Union instance + */ + Union.create = function create(properties) { + return new Union(properties); + }; + + /** + * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Union + * @static + * @param {flyteidl.core.IUnion} message Union message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Union.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Union message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Union + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Union} Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Union.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Union(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Union message. + * @function verify + * @memberof flyteidl.core.Union + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Union.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); + if (error) + return "value." + error; + } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return Union; + })(); + + core.StructuredDatasetMetadata = (function() { + + /** + * Properties of a StructuredDatasetMetadata. + * @memberof flyteidl.core + * @interface IStructuredDatasetMetadata + * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] StructuredDatasetMetadata structuredDatasetType + */ + + /** + * Constructs a new StructuredDatasetMetadata. + * @memberof flyteidl.core + * @classdesc Represents a StructuredDatasetMetadata. + * @implements IStructuredDatasetMetadata + * @constructor + * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set + */ + function StructuredDatasetMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredDatasetMetadata structuredDatasetType. + * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType + * @memberof flyteidl.core.StructuredDatasetMetadata + * @instance + */ + StructuredDatasetMetadata.prototype.structuredDatasetType = null; + + /** + * Creates a new StructuredDatasetMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata instance + */ + StructuredDatasetMetadata.create = function create(properties) { + return new StructuredDatasetMetadata(properties); + }; + + /** + * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {flyteidl.core.IStructuredDatasetMetadata} message StructuredDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredDatasetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) + $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredDatasetMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StructuredDatasetMetadata message. + * @function verify + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StructuredDatasetMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { + var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); + if (error) + return "structuredDatasetType." + error; + } + return null; + }; + + return StructuredDatasetMetadata; + })(); + + core.StructuredDataset = (function() { + + /** + * Properties of a StructuredDataset. + * @memberof flyteidl.core + * @interface IStructuredDataset + * @property {string|null} [uri] StructuredDataset uri + * @property {flyteidl.core.IStructuredDatasetMetadata|null} [metadata] StructuredDataset metadata + */ + + /** + * Constructs a new StructuredDataset. + * @memberof flyteidl.core + * @classdesc Represents a StructuredDataset. + * @implements IStructuredDataset + * @constructor + * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set + */ + function StructuredDataset(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredDataset uri. + * @member {string} uri + * @memberof flyteidl.core.StructuredDataset + * @instance + */ + StructuredDataset.prototype.uri = ""; + + /** + * StructuredDataset metadata. + * @member {flyteidl.core.IStructuredDatasetMetadata|null|undefined} metadata + * @memberof flyteidl.core.StructuredDataset + * @instance + */ + StructuredDataset.prototype.metadata = null; + + /** + * Creates a new StructuredDataset instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDataset} StructuredDataset instance + */ + StructuredDataset.create = function create(properties) { + return new StructuredDataset(properties); + }; + + /** + * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {flyteidl.core.IStructuredDataset} message StructuredDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.StructuredDatasetMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a StructuredDataset message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDataset} StructuredDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 2: + message.metadata = $root.flyteidl.core.StructuredDatasetMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StructuredDataset message. + * @function verify + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StructuredDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.StructuredDatasetMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return StructuredDataset; + })(); + + core.Scalar = (function() { + + /** + * Properties of a Scalar. + * @memberof flyteidl.core + * @interface IScalar + * @property {flyteidl.core.IPrimitive|null} [primitive] Scalar primitive + * @property {flyteidl.core.IBlob|null} [blob] Scalar blob + * @property {flyteidl.core.IBinary|null} [binary] Scalar binary + * @property {flyteidl.core.ISchema|null} [schema] Scalar schema + * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType + * @property {flyteidl.core.IError|null} [error] Scalar error + * @property {google.protobuf.IStruct|null} [generic] Scalar generic + * @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset + * @property {flyteidl.core.IUnion|null} [union] Scalar union + */ + + /** + * Constructs a new Scalar. + * @memberof flyteidl.core + * @classdesc Represents a Scalar. + * @implements IScalar + * @constructor + * @param {flyteidl.core.IScalar=} [properties] Properties to set + */ + function Scalar(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Scalar primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.primitive = null; + + /** + * Scalar blob. + * @member {flyteidl.core.IBlob|null|undefined} blob + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.blob = null; + + /** + * Scalar binary. + * @member {flyteidl.core.IBinary|null|undefined} binary + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.binary = null; + + /** + * Scalar schema. + * @member {flyteidl.core.ISchema|null|undefined} schema + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.schema = null; + + /** + * Scalar noneType. + * @member {flyteidl.core.IVoid|null|undefined} noneType + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.noneType = null; + + /** + * Scalar error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.error = null; + + /** + * Scalar generic. + * @member {google.protobuf.IStruct|null|undefined} generic + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.generic = null; + + /** + * Scalar structuredDataset. + * @member {flyteidl.core.IStructuredDataset|null|undefined} structuredDataset + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.structuredDataset = null; + + /** + * Scalar union. + * @member {flyteidl.core.IUnion|null|undefined} union + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.union = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Scalar value. + * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"|undefined} value + * @memberof flyteidl.core.Scalar + * @instance + */ + Object.defineProperty(Scalar.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset", "union"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Scalar instance using the specified properties. + * @function create + * @memberof flyteidl.core.Scalar + * @static + * @param {flyteidl.core.IScalar=} [properties] Properties to set + * @returns {flyteidl.core.Scalar} Scalar instance + */ + Scalar.create = function create(properties) { + return new Scalar(properties); + }; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Scalar + * @static + * @param {flyteidl.core.IScalar} message Scalar message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Scalar.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.Blob.encode(message.blob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.binary != null && message.hasOwnProperty("binary")) + $root.flyteidl.core.Binary.encode(message.binary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.Schema.encode(message.schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.noneType != null && message.hasOwnProperty("noneType")) + $root.flyteidl.core.Void.encode(message.noneType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.generic != null && message.hasOwnProperty("generic")) + $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) + $root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.union != null && message.hasOwnProperty("union")) + $root.flyteidl.core.Union.encode(message.union, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Scalar + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Scalar} Scalar + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Scalar.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Scalar(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message.blob = $root.flyteidl.core.Blob.decode(reader, reader.uint32()); + break; + case 3: + message.binary = $root.flyteidl.core.Binary.decode(reader, reader.uint32()); + break; + case 4: + message.schema = $root.flyteidl.core.Schema.decode(reader, reader.uint32()); + break; + case 5: + message.noneType = $root.flyteidl.core.Void.decode(reader, reader.uint32()); + break; + case 6: + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + break; + case 7: + message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 8: + message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32()); + break; + case 9: + message.union = $root.flyteidl.core.Union.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Scalar message. + * @function verify + * @memberof flyteidl.core.Scalar + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Scalar.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Blob.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.binary != null && message.hasOwnProperty("binary")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Binary.verify(message.binary); + if (error) + return "binary." + error; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Schema.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.noneType != null && message.hasOwnProperty("noneType")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Void.verify(message.noneType); + if (error) + return "noneType." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.generic != null && message.hasOwnProperty("generic")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Struct.verify(message.generic); + if (error) + return "generic." + error; + } + } + if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.StructuredDataset.verify(message.structuredDataset); + if (error) + return "structuredDataset." + error; + } + } + if (message.union != null && message.hasOwnProperty("union")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Union.verify(message.union); + if (error) + return "union." + error; + } + } + return null; + }; + + return Scalar; + })(); + + core.Literal = (function() { + + /** + * Properties of a Literal. + * @memberof flyteidl.core + * @interface ILiteral + * @property {flyteidl.core.IScalar|null} [scalar] Literal scalar + * @property {flyteidl.core.ILiteralCollection|null} [collection] Literal collection + * @property {flyteidl.core.ILiteralMap|null} [map] Literal map + * @property {string|null} [hash] Literal hash + */ + + /** + * Constructs a new Literal. + * @memberof flyteidl.core + * @classdesc Represents a Literal. + * @implements ILiteral + * @constructor + * @param {flyteidl.core.ILiteral=} [properties] Properties to set + */ + function Literal(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Literal scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.scalar = null; + + /** + * Literal collection. + * @member {flyteidl.core.ILiteralCollection|null|undefined} collection + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.collection = null; + + /** + * Literal map. + * @member {flyteidl.core.ILiteralMap|null|undefined} map + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.map = null; + + /** + * Literal hash. + * @member {string} hash + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.hash = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Literal value. + * @member {"scalar"|"collection"|"map"|undefined} value + * @memberof flyteidl.core.Literal + * @instance + */ + Object.defineProperty(Literal.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "map"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Literal instance using the specified properties. + * @function create + * @memberof flyteidl.core.Literal + * @static + * @param {flyteidl.core.ILiteral=} [properties] Properties to set + * @returns {flyteidl.core.Literal} Literal instance + */ + Literal.create = function create(properties) { + return new Literal(properties); + }; + + /** + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Literal + * @static + * @param {flyteidl.core.ILiteral} message Literal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Literal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.collection != null && message.hasOwnProperty("collection")) + $root.flyteidl.core.LiteralCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.map != null && message.hasOwnProperty("map")) + $root.flyteidl.core.LiteralMap.encode(message.map, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.hash != null && message.hasOwnProperty("hash")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.hash); + return writer; + }; + + /** + * Decodes a Literal message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Literal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Literal} Literal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Literal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Literal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + case 2: + message.collection = $root.flyteidl.core.LiteralCollection.decode(reader, reader.uint32()); + break; + case 3: + message.map = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.hash = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Literal message. + * @function verify + * @memberof flyteidl.core.Literal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Literal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.scalar != null && message.hasOwnProperty("scalar")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + if (message.collection != null && message.hasOwnProperty("collection")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.LiteralCollection.verify(message.collection); + if (error) + return "collection." + error; + } + } + if (message.map != null && message.hasOwnProperty("map")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.map); + if (error) + return "map." + error; + } + } + if (message.hash != null && message.hasOwnProperty("hash")) + if (!$util.isString(message.hash)) + return "hash: string expected"; + return null; + }; + + return Literal; + })(); + + core.LiteralCollection = (function() { + + /** + * Properties of a LiteralCollection. + * @memberof flyteidl.core + * @interface ILiteralCollection + * @property {Array.|null} [literals] LiteralCollection literals + */ + + /** + * Constructs a new LiteralCollection. + * @memberof flyteidl.core + * @classdesc Represents a LiteralCollection. + * @implements ILiteralCollection + * @constructor + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + */ + function LiteralCollection(properties) { + this.literals = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralCollection literals. + * @member {Array.} literals + * @memberof flyteidl.core.LiteralCollection + * @instance + */ + LiteralCollection.prototype.literals = $util.emptyArray; + + /** + * Creates a new LiteralCollection instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + * @returns {flyteidl.core.LiteralCollection} LiteralCollection instance + */ + LiteralCollection.create = function create(properties) { + return new LiteralCollection(properties); + }; + + /** + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {flyteidl.core.ILiteralCollection} message LiteralCollection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralCollection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literals != null && message.literals.length) + for (var i = 0; i < message.literals.length; ++i) + $root.flyteidl.core.Literal.encode(message.literals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LiteralCollection message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralCollection} LiteralCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralCollection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralCollection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.literals && message.literals.length)) + message.literals = []; + message.literals.push($root.flyteidl.core.Literal.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralCollection message. + * @function verify + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralCollection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!Array.isArray(message.literals)) + return "literals: array expected"; + for (var i = 0; i < message.literals.length; ++i) { + var error = $root.flyteidl.core.Literal.verify(message.literals[i]); + if (error) + return "literals." + error; + } + } + return null; + }; + + return LiteralCollection; + })(); + + core.LiteralMap = (function() { + + /** + * Properties of a LiteralMap. + * @memberof flyteidl.core + * @interface ILiteralMap + * @property {Object.|null} [literals] LiteralMap literals + */ + + /** + * Constructs a new LiteralMap. + * @memberof flyteidl.core + * @classdesc Represents a LiteralMap. + * @implements ILiteralMap + * @constructor + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set + */ + function LiteralMap(properties) { + this.literals = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralMap literals. + * @member {Object.} literals + * @memberof flyteidl.core.LiteralMap + * @instance + */ + LiteralMap.prototype.literals = $util.emptyObject; + + /** + * Creates a new LiteralMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralMap + * @static + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set + * @returns {flyteidl.core.LiteralMap} LiteralMap instance + */ + LiteralMap.create = function create(properties) { + return new LiteralMap(properties); + }; + + /** + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralMap + * @static + * @param {flyteidl.core.ILiteralMap} message LiteralMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literals != null && message.hasOwnProperty("literals")) + for (var keys = Object.keys(message.literals), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Literal.encode(message.literals[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a LiteralMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralMap} LiteralMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.literals === $util.emptyObject) + message.literals = {}; + key = reader.string(); + reader.pos++; + message.literals[key] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralMap message. + * @function verify + * @memberof flyteidl.core.LiteralMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!$util.isObject(message.literals)) + return "literals: object expected"; + var key = Object.keys(message.literals); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Literal.verify(message.literals[key[i]]); + if (error) + return "literals." + error; + } + } + return null; + }; + + return LiteralMap; + })(); + + core.BindingDataCollection = (function() { + + /** + * Properties of a BindingDataCollection. + * @memberof flyteidl.core + * @interface IBindingDataCollection + * @property {Array.|null} [bindings] BindingDataCollection bindings + */ + + /** + * Constructs a new BindingDataCollection. + * @memberof flyteidl.core + * @classdesc Represents a BindingDataCollection. + * @implements IBindingDataCollection + * @constructor + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + */ + function BindingDataCollection(properties) { + this.bindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingDataCollection bindings. + * @member {Array.} bindings + * @memberof flyteidl.core.BindingDataCollection + * @instance + */ + BindingDataCollection.prototype.bindings = $util.emptyArray; + + /** + * Creates a new BindingDataCollection instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection instance + */ + BindingDataCollection.create = function create(properties) { + return new BindingDataCollection(properties); + }; + + /** + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {flyteidl.core.IBindingDataCollection} message BindingDataCollection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingDataCollection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bindings != null && message.bindings.length) + for (var i = 0; i < message.bindings.length; ++i) + $root.flyteidl.core.BindingData.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BindingDataCollection message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingDataCollection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataCollection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.bindings && message.bindings.length)) + message.bindings = []; + message.bindings.push($root.flyteidl.core.BindingData.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingDataCollection message. + * @function verify + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingDataCollection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!Array.isArray(message.bindings)) + return "bindings: array expected"; + for (var i = 0; i < message.bindings.length; ++i) { + var error = $root.flyteidl.core.BindingData.verify(message.bindings[i]); + if (error) + return "bindings." + error; + } + } + return null; + }; + + return BindingDataCollection; + })(); + + core.BindingDataMap = (function() { + + /** + * Properties of a BindingDataMap. + * @memberof flyteidl.core + * @interface IBindingDataMap + * @property {Object.|null} [bindings] BindingDataMap bindings + */ + + /** + * Constructs a new BindingDataMap. + * @memberof flyteidl.core + * @classdesc Represents a BindingDataMap. + * @implements IBindingDataMap + * @constructor + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + */ + function BindingDataMap(properties) { + this.bindings = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingDataMap bindings. + * @member {Object.} bindings + * @memberof flyteidl.core.BindingDataMap + * @instance + */ + BindingDataMap.prototype.bindings = $util.emptyObject; + + /** + * Creates a new BindingDataMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataMap} BindingDataMap instance + */ + BindingDataMap.create = function create(properties) { + return new BindingDataMap(properties); + }; + + /** + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {flyteidl.core.IBindingDataMap} message BindingDataMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingDataMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bindings != null && message.hasOwnProperty("bindings")) + for (var keys = Object.keys(message.bindings), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.BindingData.encode(message.bindings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a BindingDataMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingDataMap} BindingDataMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingDataMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.bindings === $util.emptyObject) + message.bindings = {}; + key = reader.string(); + reader.pos++; + message.bindings[key] = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingDataMap message. + * @function verify + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingDataMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!$util.isObject(message.bindings)) + return "bindings: object expected"; + var key = Object.keys(message.bindings); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.BindingData.verify(message.bindings[key[i]]); + if (error) + return "bindings." + error; + } + } + return null; + }; + + return BindingDataMap; + })(); + + core.UnionInfo = (function() { + + /** + * Properties of an UnionInfo. + * @memberof flyteidl.core + * @interface IUnionInfo + * @property {flyteidl.core.ILiteralType|null} [targetType] UnionInfo targetType + */ + + /** + * Constructs a new UnionInfo. + * @memberof flyteidl.core + * @classdesc Represents an UnionInfo. + * @implements IUnionInfo + * @constructor + * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set + */ + function UnionInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UnionInfo targetType. + * @member {flyteidl.core.ILiteralType|null|undefined} targetType + * @memberof flyteidl.core.UnionInfo + * @instance + */ + UnionInfo.prototype.targetType = null; + + /** + * Creates a new UnionInfo instance using the specified properties. + * @function create + * @memberof flyteidl.core.UnionInfo + * @static + * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set + * @returns {flyteidl.core.UnionInfo} UnionInfo instance + */ + UnionInfo.create = function create(properties) { + return new UnionInfo(properties); + }; + + /** + * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.UnionInfo + * @static + * @param {flyteidl.core.IUnionInfo} message UnionInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnionInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.targetType != null && message.hasOwnProperty("targetType")) + $root.flyteidl.core.LiteralType.encode(message.targetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an UnionInfo message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.UnionInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.UnionInfo} UnionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnionInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.targetType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UnionInfo message. + * @function verify + * @memberof flyteidl.core.UnionInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UnionInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.targetType != null && message.hasOwnProperty("targetType")) { + var error = $root.flyteidl.core.LiteralType.verify(message.targetType); + if (error) + return "targetType." + error; + } + return null; + }; + + return UnionInfo; + })(); + + core.BindingData = (function() { + + /** + * Properties of a BindingData. + * @memberof flyteidl.core + * @interface IBindingData + * @property {flyteidl.core.IScalar|null} [scalar] BindingData scalar + * @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection + * @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise + * @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map + * @property {flyteidl.core.IUnionInfo|null} [union] BindingData union + */ + + /** + * Constructs a new BindingData. + * @memberof flyteidl.core + * @classdesc Represents a BindingData. + * @implements IBindingData + * @constructor + * @param {flyteidl.core.IBindingData=} [properties] Properties to set + */ + function BindingData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingData scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.scalar = null; + + /** + * BindingData collection. + * @member {flyteidl.core.IBindingDataCollection|null|undefined} collection + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.collection = null; + + /** + * BindingData promise. + * @member {flyteidl.core.IOutputReference|null|undefined} promise + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.promise = null; + + /** + * BindingData map. + * @member {flyteidl.core.IBindingDataMap|null|undefined} map + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.map = null; + + /** + * BindingData union. + * @member {flyteidl.core.IUnionInfo|null|undefined} union + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.union = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BindingData value. + * @member {"scalar"|"collection"|"promise"|"map"|undefined} value + * @memberof flyteidl.core.BindingData + * @instance + */ + Object.defineProperty(BindingData.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "promise", "map"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BindingData instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingData + * @static + * @param {flyteidl.core.IBindingData=} [properties] Properties to set + * @returns {flyteidl.core.BindingData} BindingData instance + */ + BindingData.create = function create(properties) { + return new BindingData(properties); + }; + + /** + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingData + * @static + * @param {flyteidl.core.IBindingData} message BindingData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.collection != null && message.hasOwnProperty("collection")) + $root.flyteidl.core.BindingDataCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.promise != null && message.hasOwnProperty("promise")) + $root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.map != null && message.hasOwnProperty("map")) + $root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.union != null && message.hasOwnProperty("union")) + $root.flyteidl.core.UnionInfo.encode(message.union, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BindingData message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingData} BindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + case 2: + message.collection = $root.flyteidl.core.BindingDataCollection.decode(reader, reader.uint32()); + break; + case 3: + message.promise = $root.flyteidl.core.OutputReference.decode(reader, reader.uint32()); + break; + case 4: + message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32()); + break; + case 5: + message.union = $root.flyteidl.core.UnionInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingData message. + * @function verify + * @memberof flyteidl.core.BindingData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.scalar != null && message.hasOwnProperty("scalar")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + if (message.collection != null && message.hasOwnProperty("collection")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.BindingDataCollection.verify(message.collection); + if (error) + return "collection." + error; + } + } + if (message.promise != null && message.hasOwnProperty("promise")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.OutputReference.verify(message.promise); + if (error) + return "promise." + error; + } + } + if (message.map != null && message.hasOwnProperty("map")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.BindingDataMap.verify(message.map); + if (error) + return "map." + error; + } + } + if (message.union != null && message.hasOwnProperty("union")) { + var error = $root.flyteidl.core.UnionInfo.verify(message.union); + if (error) + return "union." + error; + } + return null; + }; + + return BindingData; + })(); + + core.Binding = (function() { + + /** + * Properties of a Binding. + * @memberof flyteidl.core + * @interface IBinding + * @property {string|null} ["var"] Binding var + * @property {flyteidl.core.IBindingData|null} [binding] Binding binding + */ + + /** + * Constructs a new Binding. + * @memberof flyteidl.core + * @classdesc Represents a Binding. + * @implements IBinding + * @constructor + * @param {flyteidl.core.IBinding=} [properties] Properties to set + */ + function Binding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Binding var. + * @member {string} var + * @memberof flyteidl.core.Binding + * @instance + */ + Binding.prototype["var"] = ""; + + /** + * Binding binding. + * @member {flyteidl.core.IBindingData|null|undefined} binding + * @memberof flyteidl.core.Binding + * @instance + */ + Binding.prototype.binding = null; + + /** + * Creates a new Binding instance using the specified properties. + * @function create + * @memberof flyteidl.core.Binding + * @static + * @param {flyteidl.core.IBinding=} [properties] Properties to set + * @returns {flyteidl.core.Binding} Binding instance + */ + Binding.create = function create(properties) { + return new Binding(properties); + }; + + /** + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Binding + * @static + * @param {flyteidl.core.IBinding} message Binding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.binding != null && message.hasOwnProperty("binding")) + $root.flyteidl.core.BindingData.encode(message.binding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Binding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Binding} Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binding.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binding(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = reader.string(); + break; + case 2: + message.binding = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Binding message. + * @function verify + * @memberof flyteidl.core.Binding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Binding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.binding != null && message.hasOwnProperty("binding")) { + var error = $root.flyteidl.core.BindingData.verify(message.binding); + if (error) + return "binding." + error; + } + return null; + }; + + return Binding; + })(); + + core.KeyValuePair = (function() { + + /** + * Properties of a KeyValuePair. + * @memberof flyteidl.core + * @interface IKeyValuePair + * @property {string|null} [key] KeyValuePair key + * @property {string|null} [value] KeyValuePair value + */ + + /** + * Constructs a new KeyValuePair. + * @memberof flyteidl.core + * @classdesc Represents a KeyValuePair. + * @implements IKeyValuePair + * @constructor + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + */ + function KeyValuePair(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * KeyValuePair key. + * @member {string} key + * @memberof flyteidl.core.KeyValuePair + * @instance + */ + KeyValuePair.prototype.key = ""; + + /** + * KeyValuePair value. + * @member {string} value + * @memberof flyteidl.core.KeyValuePair + * @instance + */ + KeyValuePair.prototype.value = ""; + + /** + * Creates a new KeyValuePair instance using the specified properties. + * @function create + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + * @returns {flyteidl.core.KeyValuePair} KeyValuePair instance + */ + KeyValuePair.create = function create(properties) { + return new KeyValuePair(properties); + }; + + /** + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {flyteidl.core.IKeyValuePair} message KeyValuePair message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KeyValuePair.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; + + /** + * Decodes a KeyValuePair message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.KeyValuePair} KeyValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KeyValuePair.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.KeyValuePair(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a KeyValuePair message. + * @function verify + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KeyValuePair.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return KeyValuePair; + })(); + + core.RetryStrategy = (function() { + + /** + * Properties of a RetryStrategy. + * @memberof flyteidl.core + * @interface IRetryStrategy + * @property {number|null} [retries] RetryStrategy retries + */ + + /** + * Constructs a new RetryStrategy. + * @memberof flyteidl.core + * @classdesc Represents a RetryStrategy. + * @implements IRetryStrategy + * @constructor + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + */ + function RetryStrategy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RetryStrategy retries. + * @member {number} retries + * @memberof flyteidl.core.RetryStrategy + * @instance + */ + RetryStrategy.prototype.retries = 0; + + /** + * Creates a new RetryStrategy instance using the specified properties. + * @function create + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + * @returns {flyteidl.core.RetryStrategy} RetryStrategy instance + */ + RetryStrategy.create = function create(properties) { + return new RetryStrategy(properties); + }; + + /** + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {flyteidl.core.IRetryStrategy} message RetryStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RetryStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.retries != null && message.hasOwnProperty("retries")) + writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.retries); + return writer; + }; + + /** + * Decodes a RetryStrategy message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.RetryStrategy} RetryStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RetryStrategy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RetryStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.retries = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RetryStrategy message. + * @function verify + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RetryStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.retries != null && message.hasOwnProperty("retries")) + if (!$util.isInteger(message.retries)) + return "retries: integer expected"; + return null; + }; + + return RetryStrategy; + })(); + + /** + * SimpleType enum. + * @name flyteidl.core.SimpleType + * @enum {string} + * @property {number} NONE=0 NONE value + * @property {number} INTEGER=1 INTEGER value + * @property {number} FLOAT=2 FLOAT value + * @property {number} STRING=3 STRING value + * @property {number} BOOLEAN=4 BOOLEAN value + * @property {number} DATETIME=5 DATETIME value + * @property {number} DURATION=6 DURATION value + * @property {number} BINARY=7 BINARY value + * @property {number} ERROR=8 ERROR value + * @property {number} STRUCT=9 STRUCT value + */ + core.SimpleType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "INTEGER"] = 1; + values[valuesById[2] = "FLOAT"] = 2; + values[valuesById[3] = "STRING"] = 3; + values[valuesById[4] = "BOOLEAN"] = 4; + values[valuesById[5] = "DATETIME"] = 5; + values[valuesById[6] = "DURATION"] = 6; + values[valuesById[7] = "BINARY"] = 7; + values[valuesById[8] = "ERROR"] = 8; + values[valuesById[9] = "STRUCT"] = 9; + return values; + })(); + + core.SchemaType = (function() { + + /** + * Properties of a SchemaType. + * @memberof flyteidl.core + * @interface ISchemaType + * @property {Array.|null} [columns] SchemaType columns + */ + + /** + * Constructs a new SchemaType. + * @memberof flyteidl.core + * @classdesc Represents a SchemaType. + * @implements ISchemaType + * @constructor + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + */ + function SchemaType(properties) { + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchemaType columns. + * @member {Array.} columns + * @memberof flyteidl.core.SchemaType + * @instance + */ + SchemaType.prototype.columns = $util.emptyArray; + + /** + * Creates a new SchemaType instance using the specified properties. + * @function create + * @memberof flyteidl.core.SchemaType + * @static + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType} SchemaType instance + */ + SchemaType.create = function create(properties) { + return new SchemaType(properties); + }; + + /** + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SchemaType + * @static + * @param {flyteidl.core.ISchemaType} message SchemaType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.flyteidl.core.SchemaType.SchemaColumn.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SchemaType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SchemaType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SchemaType} SchemaType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.flyteidl.core.SchemaType.SchemaColumn.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SchemaType message. + * @function verify + * @memberof flyteidl.core.SchemaType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.flyteidl.core.SchemaType.SchemaColumn.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + return null; + }; + + SchemaType.SchemaColumn = (function() { + + /** + * Properties of a SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @interface ISchemaColumn + * @property {string|null} [name] SchemaColumn name + * @property {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null} [type] SchemaColumn type + */ + + /** + * Constructs a new SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @classdesc Represents a SchemaColumn. + * @implements ISchemaColumn + * @constructor + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + */ + function SchemaColumn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchemaColumn name. + * @member {string} name + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.name = ""; + + /** + * SchemaColumn type. + * @member {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} type + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.type = 0; + + /** + * Creates a new SchemaColumn instance using the specified properties. + * @function create + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn instance + */ + SchemaColumn.create = function create(properties) { + return new SchemaColumn(properties); + }; + + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn} message SchemaColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + return writer; + }; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaColumn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType.SchemaColumn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SchemaColumn message. + * @function verify + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaColumn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * SchemaColumnType enum. + * @name flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType + * @enum {string} + * @property {number} INTEGER=0 INTEGER value + * @property {number} FLOAT=1 FLOAT value + * @property {number} STRING=2 STRING value + * @property {number} BOOLEAN=3 BOOLEAN value + * @property {number} DATETIME=4 DATETIME value + * @property {number} DURATION=5 DURATION value + */ + SchemaColumn.SchemaColumnType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTEGER"] = 0; + values[valuesById[1] = "FLOAT"] = 1; + values[valuesById[2] = "STRING"] = 2; + values[valuesById[3] = "BOOLEAN"] = 3; + values[valuesById[4] = "DATETIME"] = 4; + values[valuesById[5] = "DURATION"] = 5; + return values; + })(); + + return SchemaColumn; + })(); + + return SchemaType; + })(); + + core.StructuredDatasetType = (function() { + + /** + * Properties of a StructuredDatasetType. + * @memberof flyteidl.core + * @interface IStructuredDatasetType + * @property {Array.|null} [columns] StructuredDatasetType columns + * @property {string|null} [format] StructuredDatasetType format + * @property {string|null} [externalSchemaType] StructuredDatasetType externalSchemaType + * @property {Uint8Array|null} [externalSchemaBytes] StructuredDatasetType externalSchemaBytes + */ + + /** + * Constructs a new StructuredDatasetType. + * @memberof flyteidl.core + * @classdesc Represents a StructuredDatasetType. + * @implements IStructuredDatasetType + * @constructor + * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set + */ + function StructuredDatasetType(properties) { + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredDatasetType columns. + * @member {Array.} columns + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.columns = $util.emptyArray; + + /** + * StructuredDatasetType format. + * @member {string} format + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.format = ""; + + /** + * StructuredDatasetType externalSchemaType. + * @member {string} externalSchemaType + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.externalSchemaType = ""; + + /** + * StructuredDatasetType externalSchemaBytes. + * @member {Uint8Array} externalSchemaBytes + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.externalSchemaBytes = $util.newBuffer([]); + + /** + * Creates a new StructuredDatasetType instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType instance + */ + StructuredDatasetType.create = function create(properties) { + return new StructuredDatasetType(properties); + }; + + /** + * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {flyteidl.core.IStructuredDatasetType} message StructuredDatasetType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredDatasetType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.flyteidl.core.StructuredDatasetType.DatasetColumn.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.format); + if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalSchemaType); + if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.externalSchemaBytes); + return writer; + }; + + /** + * Decodes a StructuredDatasetType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredDatasetType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.flyteidl.core.StructuredDatasetType.DatasetColumn.decode(reader, reader.uint32())); + break; + case 2: + message.format = reader.string(); + break; + case 3: + message.externalSchemaType = reader.string(); + break; + case 4: + message.externalSchemaBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StructuredDatasetType message. + * @function verify + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StructuredDatasetType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.flyteidl.core.StructuredDatasetType.DatasetColumn.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) + if (!$util.isString(message.externalSchemaType)) + return "externalSchemaType: string expected"; + if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) + if (!(message.externalSchemaBytes && typeof message.externalSchemaBytes.length === "number" || $util.isString(message.externalSchemaBytes))) + return "externalSchemaBytes: buffer expected"; + return null; + }; + + StructuredDatasetType.DatasetColumn = (function() { + + /** + * Properties of a DatasetColumn. + * @memberof flyteidl.core.StructuredDatasetType + * @interface IDatasetColumn + * @property {string|null} [name] DatasetColumn name + * @property {flyteidl.core.ILiteralType|null} [literalType] DatasetColumn literalType + */ + + /** + * Constructs a new DatasetColumn. + * @memberof flyteidl.core.StructuredDatasetType + * @classdesc Represents a DatasetColumn. + * @implements IDatasetColumn + * @constructor + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set + */ + function DatasetColumn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DatasetColumn name. + * @member {string} name + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @instance + */ + DatasetColumn.prototype.name = ""; + + /** + * DatasetColumn literalType. + * @member {flyteidl.core.ILiteralType|null|undefined} literalType + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @instance + */ + DatasetColumn.prototype.literalType = null; + + /** + * Creates a new DatasetColumn instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn instance + */ + DatasetColumn.create = function create(properties) { + return new DatasetColumn(properties); + }; + + /** + * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn} message DatasetColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DatasetColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.literalType != null && message.hasOwnProperty("literalType")) + $root.flyteidl.core.LiteralType.encode(message.literalType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DatasetColumn message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DatasetColumn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType.DatasetColumn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.literalType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DatasetColumn message. + * @function verify + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DatasetColumn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.literalType != null && message.hasOwnProperty("literalType")) { + var error = $root.flyteidl.core.LiteralType.verify(message.literalType); + if (error) + return "literalType." + error; + } + return null; + }; + + return DatasetColumn; + })(); + + return StructuredDatasetType; + })(); + + core.BlobType = (function() { + + /** + * Properties of a BlobType. + * @memberof flyteidl.core + * @interface IBlobType + * @property {string|null} [format] BlobType format + * @property {flyteidl.core.BlobType.BlobDimensionality|null} [dimensionality] BlobType dimensionality + */ + + /** + * Constructs a new BlobType. + * @memberof flyteidl.core + * @classdesc Represents a BlobType. + * @implements IBlobType + * @constructor + * @param {flyteidl.core.IBlobType=} [properties] Properties to set + */ + function BlobType(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BlobType format. + * @member {string} format + * @memberof flyteidl.core.BlobType + * @instance + */ + BlobType.prototype.format = ""; + + /** + * BlobType dimensionality. + * @member {flyteidl.core.BlobType.BlobDimensionality} dimensionality + * @memberof flyteidl.core.BlobType + * @instance + */ + BlobType.prototype.dimensionality = 0; + + /** + * Creates a new BlobType instance using the specified properties. + * @function create + * @memberof flyteidl.core.BlobType + * @static + * @param {flyteidl.core.IBlobType=} [properties] Properties to set + * @returns {flyteidl.core.BlobType} BlobType instance + */ + BlobType.create = function create(properties) { + return new BlobType(properties); + }; + + /** + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BlobType + * @static + * @param {flyteidl.core.IBlobType} message BlobType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlobType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dimensionality); + return writer; + }; + + /** + * Decodes a BlobType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BlobType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BlobType} BlobType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlobType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.format = reader.string(); + break; + case 2: + message.dimensionality = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BlobType message. + * @function verify + * @memberof flyteidl.core.BlobType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlobType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + switch (message.dimensionality) { + default: + return "dimensionality: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * BlobDimensionality enum. + * @name flyteidl.core.BlobType.BlobDimensionality + * @enum {string} + * @property {number} SINGLE=0 SINGLE value + * @property {number} MULTIPART=1 MULTIPART value + */ + BlobType.BlobDimensionality = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SINGLE"] = 0; + values[valuesById[1] = "MULTIPART"] = 1; + return values; + })(); + + return BlobType; + })(); + + core.EnumType = (function() { + + /** + * Properties of an EnumType. + * @memberof flyteidl.core + * @interface IEnumType + * @property {Array.|null} [values] EnumType values + */ + + /** + * Constructs a new EnumType. + * @memberof flyteidl.core + * @classdesc Represents an EnumType. + * @implements IEnumType + * @constructor + * @param {flyteidl.core.IEnumType=} [properties] Properties to set + */ + function EnumType(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumType values. + * @member {Array.} values + * @memberof flyteidl.core.EnumType + * @instance + */ + EnumType.prototype.values = $util.emptyArray; + + /** + * Creates a new EnumType instance using the specified properties. + * @function create + * @memberof flyteidl.core.EnumType + * @static + * @param {flyteidl.core.IEnumType=} [properties] Properties to set + * @returns {flyteidl.core.EnumType} EnumType instance + */ + EnumType.create = function create(properties) { + return new EnumType(properties); + }; + + /** + * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.EnumType + * @static + * @param {flyteidl.core.IEnumType} message EnumType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + return writer; + }; + + /** + * Decodes an EnumType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.EnumType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.EnumType} EnumType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.EnumType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumType message. + * @function verify + * @memberof flyteidl.core.EnumType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; + + return EnumType; + })(); + + core.UnionType = (function() { + + /** + * Properties of an UnionType. + * @memberof flyteidl.core + * @interface IUnionType + * @property {Array.|null} [variants] UnionType variants + */ + + /** + * Constructs a new UnionType. + * @memberof flyteidl.core + * @classdesc Represents an UnionType. + * @implements IUnionType + * @constructor + * @param {flyteidl.core.IUnionType=} [properties] Properties to set + */ + function UnionType(properties) { + this.variants = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UnionType variants. + * @member {Array.} variants + * @memberof flyteidl.core.UnionType + * @instance + */ + UnionType.prototype.variants = $util.emptyArray; + + /** + * Creates a new UnionType instance using the specified properties. + * @function create + * @memberof flyteidl.core.UnionType + * @static + * @param {flyteidl.core.IUnionType=} [properties] Properties to set + * @returns {flyteidl.core.UnionType} UnionType instance + */ + UnionType.create = function create(properties) { + return new UnionType(properties); + }; + + /** + * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.UnionType + * @static + * @param {flyteidl.core.IUnionType} message UnionType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnionType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variants != null && message.variants.length) + for (var i = 0; i < message.variants.length; ++i) + $root.flyteidl.core.LiteralType.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an UnionType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.UnionType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.UnionType} UnionType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnionType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.flyteidl.core.LiteralType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UnionType message. + * @function verify + * @memberof flyteidl.core.UnionType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UnionType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.flyteidl.core.LiteralType.verify(message.variants[i]); + if (error) + return "variants." + error; + } + } + return null; + }; + + return UnionType; + })(); + + core.TypeStructure = (function() { + + /** + * Properties of a TypeStructure. + * @memberof flyteidl.core + * @interface ITypeStructure + * @property {string|null} [tag] TypeStructure tag + */ + + /** + * Constructs a new TypeStructure. + * @memberof flyteidl.core + * @classdesc Represents a TypeStructure. + * @implements ITypeStructure + * @constructor + * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set + */ + function TypeStructure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TypeStructure tag. + * @member {string} tag + * @memberof flyteidl.core.TypeStructure + * @instance + */ + TypeStructure.prototype.tag = ""; + + /** + * Creates a new TypeStructure instance using the specified properties. + * @function create + * @memberof flyteidl.core.TypeStructure + * @static + * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set + * @returns {flyteidl.core.TypeStructure} TypeStructure instance + */ + TypeStructure.create = function create(properties) { + return new TypeStructure(properties); + }; + + /** + * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TypeStructure + * @static + * @param {flyteidl.core.ITypeStructure} message TypeStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TypeStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tag != null && message.hasOwnProperty("tag")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); + return writer; + }; + + /** + * Decodes a TypeStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TypeStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TypeStructure} TypeStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TypeStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeStructure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TypeStructure message. + * @function verify + * @memberof flyteidl.core.TypeStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TypeStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + return null; + }; + + return TypeStructure; + })(); + + core.TypeAnnotation = (function() { + + /** + * Properties of a TypeAnnotation. + * @memberof flyteidl.core + * @interface ITypeAnnotation + * @property {google.protobuf.IStruct|null} [annotations] TypeAnnotation annotations + */ + + /** + * Constructs a new TypeAnnotation. + * @memberof flyteidl.core + * @classdesc Represents a TypeAnnotation. + * @implements ITypeAnnotation + * @constructor + * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set + */ + function TypeAnnotation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TypeAnnotation annotations. + * @member {google.protobuf.IStruct|null|undefined} annotations + * @memberof flyteidl.core.TypeAnnotation + * @instance + */ + TypeAnnotation.prototype.annotations = null; + + /** + * Creates a new TypeAnnotation instance using the specified properties. + * @function create + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set + * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation instance + */ + TypeAnnotation.create = function create(properties) { + return new TypeAnnotation(properties); + }; + + /** + * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {flyteidl.core.ITypeAnnotation} message TypeAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TypeAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.google.protobuf.Struct.encode(message.annotations, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TypeAnnotation message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TypeAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotations = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TypeAnnotation message. + * @function verify + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TypeAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.google.protobuf.Struct.verify(message.annotations); + if (error) + return "annotations." + error; + } + return null; + }; + + return TypeAnnotation; + })(); + + core.LiteralType = (function() { + + /** + * Properties of a LiteralType. + * @memberof flyteidl.core + * @interface ILiteralType + * @property {flyteidl.core.SimpleType|null} [simple] LiteralType simple + * @property {flyteidl.core.ISchemaType|null} [schema] LiteralType schema + * @property {flyteidl.core.ILiteralType|null} [collectionType] LiteralType collectionType + * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType + * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob + * @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType + * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType + * @property {flyteidl.core.IUnionType|null} [unionType] LiteralType unionType + * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata + * @property {flyteidl.core.ITypeAnnotation|null} [annotation] LiteralType annotation + * @property {flyteidl.core.ITypeStructure|null} [structure] LiteralType structure + */ + + /** + * Constructs a new LiteralType. + * @memberof flyteidl.core + * @classdesc Represents a LiteralType. + * @implements ILiteralType + * @constructor + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + */ + function LiteralType(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralType simple. + * @member {flyteidl.core.SimpleType} simple + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.simple = 0; + + /** + * LiteralType schema. + * @member {flyteidl.core.ISchemaType|null|undefined} schema + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.schema = null; + + /** + * LiteralType collectionType. + * @member {flyteidl.core.ILiteralType|null|undefined} collectionType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.collectionType = null; + + /** + * LiteralType mapValueType. + * @member {flyteidl.core.ILiteralType|null|undefined} mapValueType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.mapValueType = null; + + /** + * LiteralType blob. + * @member {flyteidl.core.IBlobType|null|undefined} blob + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.blob = null; + + /** + * LiteralType enumType. + * @member {flyteidl.core.IEnumType|null|undefined} enumType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.enumType = null; + + /** + * LiteralType structuredDatasetType. + * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.structuredDatasetType = null; + + /** + * LiteralType unionType. + * @member {flyteidl.core.IUnionType|null|undefined} unionType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.unionType = null; + + /** + * LiteralType metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.metadata = null; + + /** + * LiteralType annotation. + * @member {flyteidl.core.ITypeAnnotation|null|undefined} annotation + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.annotation = null; + + /** + * LiteralType structure. + * @member {flyteidl.core.ITypeStructure|null|undefined} structure + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.structure = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LiteralType type. + * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"|undefined} type + * @memberof flyteidl.core.LiteralType + * @instance + */ + Object.defineProperty(LiteralType.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType", "unionType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LiteralType instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + * @returns {flyteidl.core.LiteralType} LiteralType instance + */ + LiteralType.create = function create(properties) { + return new LiteralType(properties); + }; + + /** + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType} message LiteralType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.simple != null && message.hasOwnProperty("simple")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.simple); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.SchemaType.encode(message.schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.collectionType != null && message.hasOwnProperty("collectionType")) + $root.flyteidl.core.LiteralType.encode(message.collectionType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) + $root.flyteidl.core.LiteralType.encode(message.mapValueType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.BlobType.encode(message.blob, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.enumType != null && message.hasOwnProperty("enumType")) + $root.flyteidl.core.EnumType.encode(message.enumType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) + $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.annotation != null && message.hasOwnProperty("annotation")) + $root.flyteidl.core.TypeAnnotation.encode(message.annotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.unionType != null && message.hasOwnProperty("unionType")) + $root.flyteidl.core.UnionType.encode(message.unionType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.structure != null && message.hasOwnProperty("structure")) + $root.flyteidl.core.TypeStructure.encode(message.structure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LiteralType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralType} LiteralType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.simple = reader.int32(); + break; + case 2: + message.schema = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + break; + case 3: + message.collectionType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 4: + message.mapValueType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 5: + message.blob = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + break; + case 7: + message.enumType = $root.flyteidl.core.EnumType.decode(reader, reader.uint32()); + break; + case 8: + message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); + break; + case 10: + message.unionType = $root.flyteidl.core.UnionType.decode(reader, reader.uint32()); + break; + case 6: + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 9: + message.annotation = $root.flyteidl.core.TypeAnnotation.decode(reader, reader.uint32()); + break; + case 11: + message.structure = $root.flyteidl.core.TypeStructure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralType message. + * @function verify + * @memberof flyteidl.core.LiteralType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.simple != null && message.hasOwnProperty("simple")) { + properties.type = 1; + switch (message.simple) { + default: + return "simple: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.SchemaType.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.collectionType != null && message.hasOwnProperty("collectionType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.LiteralType.verify(message.collectionType); + if (error) + return "collectionType." + error; + } + } + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.LiteralType.verify(message.mapValueType); + if (error) + return "mapValueType." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.BlobType.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.EnumType.verify(message.enumType); + if (error) + return "enumType." + error; + } + } + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); + if (error) + return "structuredDatasetType." + error; + } + } + if (message.unionType != null && message.hasOwnProperty("unionType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.UnionType.verify(message.unionType); + if (error) + return "unionType." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.annotation != null && message.hasOwnProperty("annotation")) { + var error = $root.flyteidl.core.TypeAnnotation.verify(message.annotation); + if (error) + return "annotation." + error; + } + if (message.structure != null && message.hasOwnProperty("structure")) { + var error = $root.flyteidl.core.TypeStructure.verify(message.structure); + if (error) + return "structure." + error; + } + return null; + }; + + return LiteralType; + })(); + + core.OutputReference = (function() { + + /** + * Properties of an OutputReference. + * @memberof flyteidl.core + * @interface IOutputReference + * @property {string|null} [nodeId] OutputReference nodeId + * @property {string|null} ["var"] OutputReference var + */ + + /** + * Constructs a new OutputReference. + * @memberof flyteidl.core + * @classdesc Represents an OutputReference. + * @implements IOutputReference + * @constructor + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + */ + function OutputReference(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OutputReference nodeId. + * @member {string} nodeId + * @memberof flyteidl.core.OutputReference + * @instance + */ + OutputReference.prototype.nodeId = ""; + + /** + * OutputReference var. + * @member {string} var + * @memberof flyteidl.core.OutputReference + * @instance + */ + OutputReference.prototype["var"] = ""; + + /** + * Creates a new OutputReference instance using the specified properties. + * @function create + * @memberof flyteidl.core.OutputReference + * @static + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + * @returns {flyteidl.core.OutputReference} OutputReference instance + */ + OutputReference.create = function create(properties) { + return new OutputReference(properties); + }; + + /** + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.OutputReference + * @static + * @param {flyteidl.core.IOutputReference} message OutputReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + return writer; + }; + + /** + * Decodes an OutputReference message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.OutputReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.OutputReference} OutputReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OutputReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + case 2: + message["var"] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OutputReference message. + * @function verify + * @memberof flyteidl.core.OutputReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + return null; + }; + + return OutputReference; + })(); + + core.Error = (function() { + + /** + * Properties of an Error. + * @memberof flyteidl.core + * @interface IError + * @property {string|null} [failedNodeId] Error failedNodeId + * @property {string|null} [message] Error message + */ + + /** + * Constructs a new Error. + * @memberof flyteidl.core + * @classdesc Represents an Error. + * @implements IError + * @constructor + * @param {flyteidl.core.IError=} [properties] Properties to set + */ + function Error(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Error failedNodeId. + * @member {string} failedNodeId + * @memberof flyteidl.core.Error + * @instance + */ + Error.prototype.failedNodeId = ""; + + /** + * Error message. + * @member {string} message + * @memberof flyteidl.core.Error + * @instance + */ + Error.prototype.message = ""; + + /** + * Creates a new Error instance using the specified properties. + * @function create + * @memberof flyteidl.core.Error + * @static + * @param {flyteidl.core.IError=} [properties] Properties to set + * @returns {flyteidl.core.Error} Error instance + */ + Error.create = function create(properties) { + return new Error(properties); + }; + + /** + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Error + * @static + * @param {flyteidl.core.IError} message Error message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Error.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.failedNodeId); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + return writer; + }; + + /** + * Decodes an Error message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Error + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Error} Error + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Error.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Error(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.failedNodeId = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Error message. + * @function verify + * @memberof flyteidl.core.Error + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Error.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + if (!$util.isString(message.failedNodeId)) + return "failedNodeId: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + return null; + }; + + return Error; + })(); + + core.WorkflowExecution = (function() { + + /** + * Properties of a WorkflowExecution. + * @memberof flyteidl.core + * @interface IWorkflowExecution + */ + + /** + * Constructs a new WorkflowExecution. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowExecution. + * @implements IWorkflowExecution + * @constructor + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + */ + function WorkflowExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution instance + */ + WorkflowExecution.create = function create(properties) { + return new WorkflowExecution(properties); + }; + + /** + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {flyteidl.core.IWorkflowExecution} message WorkflowExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecution message. + * @function verify + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.WorkflowExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDING=3 SUCCEEDING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} FAILING=5 FAILING value + * @property {number} FAILED=6 FAILED value + * @property {number} ABORTED=7 ABORTED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + * @property {number} ABORTING=9 ABORTING value + */ + WorkflowExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "FAILING"] = 5; + values[valuesById[6] = "FAILED"] = 6; + values[valuesById[7] = "ABORTED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + values[valuesById[9] = "ABORTING"] = 9; + return values; + })(); + + return WorkflowExecution; + })(); + + core.NodeExecution = (function() { + + /** + * Properties of a NodeExecution. + * @memberof flyteidl.core + * @interface INodeExecution + */ + + /** + * Constructs a new NodeExecution. + * @memberof flyteidl.core + * @classdesc Represents a NodeExecution. + * @implements INodeExecution + * @constructor + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + */ + function NodeExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NodeExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeExecution + * @static + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.core.NodeExecution} NodeExecution instance + */ + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); + }; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeExecution + * @static + * @param {flyteidl.core.INodeExecution} message NodeExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeExecution} NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecution message. + * @function verify + * @memberof flyteidl.core.NodeExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.NodeExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} FAILING=4 FAILING value + * @property {number} FAILED=5 FAILED value + * @property {number} ABORTED=6 ABORTED value + * @property {number} SKIPPED=7 SKIPPED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + * @property {number} DYNAMIC_RUNNING=9 DYNAMIC_RUNNING value + * @property {number} RECOVERED=10 RECOVERED value + */ + NodeExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "FAILING"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "ABORTED"] = 6; + values[valuesById[7] = "SKIPPED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + values[valuesById[9] = "DYNAMIC_RUNNING"] = 9; + values[valuesById[10] = "RECOVERED"] = 10; + return values; + })(); + + return NodeExecution; + })(); + + core.TaskExecution = (function() { + + /** + * Properties of a TaskExecution. + * @memberof flyteidl.core + * @interface ITaskExecution + */ + + /** + * Constructs a new TaskExecution. + * @memberof flyteidl.core + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution + * @constructor + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + */ + function TaskExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskExecution + * @static + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.core.TaskExecution} TaskExecution instance + */ + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); + }; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskExecution + * @static + * @param {flyteidl.core.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecution message. + * @function verify + * @memberof flyteidl.core.TaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.TaskExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} ABORTED=4 ABORTED value + * @property {number} FAILED=5 FAILED value + * @property {number} INITIALIZING=6 INITIALIZING value + * @property {number} WAITING_FOR_RESOURCES=7 WAITING_FOR_RESOURCES value + */ + TaskExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "ABORTED"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "INITIALIZING"] = 6; + values[valuesById[7] = "WAITING_FOR_RESOURCES"] = 7; + return values; + })(); + + return TaskExecution; + })(); + + core.ExecutionError = (function() { + + /** + * Properties of an ExecutionError. + * @memberof flyteidl.core + * @interface IExecutionError + * @property {string|null} [code] ExecutionError code + * @property {string|null} [message] ExecutionError message + * @property {string|null} [errorUri] ExecutionError errorUri + * @property {flyteidl.core.ExecutionError.ErrorKind|null} [kind] ExecutionError kind + */ + + /** + * Constructs a new ExecutionError. + * @memberof flyteidl.core + * @classdesc Represents an ExecutionError. + * @implements IExecutionError + * @constructor + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + */ + function ExecutionError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionError code. + * @member {string} code + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.code = ""; + + /** + * ExecutionError message. + * @member {string} message + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.message = ""; + + /** + * ExecutionError errorUri. + * @member {string} errorUri + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.errorUri = ""; + + /** + * ExecutionError kind. + * @member {flyteidl.core.ExecutionError.ErrorKind} kind + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.kind = 0; + + /** + * Creates a new ExecutionError instance using the specified properties. + * @function create + * @memberof flyteidl.core.ExecutionError + * @static + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + * @returns {flyteidl.core.ExecutionError} ExecutionError instance + */ + ExecutionError.create = function create(properties) { + return new ExecutionError(properties); + }; + + /** + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ExecutionError + * @static + * @param {flyteidl.core.IExecutionError} message ExecutionError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorUri); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.kind); + return writer; + }; + + /** + * Decodes an ExecutionError message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ExecutionError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ExecutionError} ExecutionError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.errorUri = reader.string(); + break; + case 4: + message.kind = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionError message. + * @function verify + * @memberof flyteidl.core.ExecutionError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isString(message.code)) + return "code: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + if (!$util.isString(message.errorUri)) + return "errorUri: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * ErrorKind enum. + * @name flyteidl.core.ExecutionError.ErrorKind + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + */ + ExecutionError.ErrorKind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + return values; + })(); + + return ExecutionError; + })(); + + core.TaskLog = (function() { + + /** + * Properties of a TaskLog. + * @memberof flyteidl.core + * @interface ITaskLog + * @property {string|null} [uri] TaskLog uri + * @property {string|null} [name] TaskLog name + * @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat + * @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl + */ + + /** + * Constructs a new TaskLog. + * @memberof flyteidl.core + * @classdesc Represents a TaskLog. + * @implements ITaskLog + * @constructor + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + */ + function TaskLog(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskLog uri. + * @member {string} uri + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.uri = ""; + + /** + * TaskLog name. + * @member {string} name + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.name = ""; + + /** + * TaskLog messageFormat. + * @member {flyteidl.core.TaskLog.MessageFormat} messageFormat + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.messageFormat = 0; + + /** + * TaskLog ttl. + * @member {google.protobuf.IDuration|null|undefined} ttl + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.ttl = null; + + /** + * Creates a new TaskLog instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskLog + * @static + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + * @returns {flyteidl.core.TaskLog} TaskLog instance + */ + TaskLog.create = function create(properties) { + return new TaskLog(properties); + }; + + /** + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskLog + * @static + * @param {flyteidl.core.ITaskLog} message TaskLog message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskLog.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat); + if (message.ttl != null && message.hasOwnProperty("ttl")) + $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskLog message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskLog + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskLog} TaskLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskLog.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskLog(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.messageFormat = reader.int32(); + break; + case 4: + message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskLog message. + * @function verify + * @memberof flyteidl.core.TaskLog + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskLog.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + switch (message.messageFormat) { + default: + return "messageFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ttl != null && message.hasOwnProperty("ttl")) { + var error = $root.google.protobuf.Duration.verify(message.ttl); + if (error) + return "ttl." + error; + } + return null; + }; + + /** + * MessageFormat enum. + * @name flyteidl.core.TaskLog.MessageFormat + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} CSV=1 CSV value + * @property {number} JSON=2 JSON value + */ + TaskLog.MessageFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CSV"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return TaskLog; + })(); + + core.QualityOfServiceSpec = (function() { + + /** + * Properties of a QualityOfServiceSpec. + * @memberof flyteidl.core + * @interface IQualityOfServiceSpec + * @property {google.protobuf.IDuration|null} [queueingBudget] QualityOfServiceSpec queueingBudget + */ + + /** + * Constructs a new QualityOfServiceSpec. + * @memberof flyteidl.core + * @classdesc Represents a QualityOfServiceSpec. + * @implements IQualityOfServiceSpec + * @constructor + * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set + */ + function QualityOfServiceSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QualityOfServiceSpec queueingBudget. + * @member {google.protobuf.IDuration|null|undefined} queueingBudget + * @memberof flyteidl.core.QualityOfServiceSpec + * @instance + */ + QualityOfServiceSpec.prototype.queueingBudget = null; + + /** + * Creates a new QualityOfServiceSpec instance using the specified properties. + * @function create + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set + * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec instance + */ + QualityOfServiceSpec.create = function create(properties) { + return new QualityOfServiceSpec(properties); + }; + + /** + * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {flyteidl.core.IQualityOfServiceSpec} message QualityOfServiceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QualityOfServiceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) + $root.google.protobuf.Duration.encode(message.queueingBudget, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a QualityOfServiceSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QualityOfServiceSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfServiceSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queueingBudget = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a QualityOfServiceSpec message. + * @function verify + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QualityOfServiceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) { + var error = $root.google.protobuf.Duration.verify(message.queueingBudget); + if (error) + return "queueingBudget." + error; + } + return null; + }; + + return QualityOfServiceSpec; + })(); + + core.QualityOfService = (function() { + + /** + * Properties of a QualityOfService. + * @memberof flyteidl.core + * @interface IQualityOfService + * @property {flyteidl.core.QualityOfService.Tier|null} [tier] QualityOfService tier + * @property {flyteidl.core.IQualityOfServiceSpec|null} [spec] QualityOfService spec + */ + + /** + * Constructs a new QualityOfService. + * @memberof flyteidl.core + * @classdesc Represents a QualityOfService. + * @implements IQualityOfService + * @constructor + * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set + */ + function QualityOfService(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QualityOfService tier. + * @member {flyteidl.core.QualityOfService.Tier} tier + * @memberof flyteidl.core.QualityOfService + * @instance + */ + QualityOfService.prototype.tier = 0; + + /** + * QualityOfService spec. + * @member {flyteidl.core.IQualityOfServiceSpec|null|undefined} spec + * @memberof flyteidl.core.QualityOfService + * @instance + */ + QualityOfService.prototype.spec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QualityOfService designation. + * @member {"tier"|"spec"|undefined} designation + * @memberof flyteidl.core.QualityOfService + * @instance + */ + Object.defineProperty(QualityOfService.prototype, "designation", { + get: $util.oneOfGetter($oneOfFields = ["tier", "spec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QualityOfService instance using the specified properties. + * @function create + * @memberof flyteidl.core.QualityOfService + * @static + * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set + * @returns {flyteidl.core.QualityOfService} QualityOfService instance + */ + QualityOfService.create = function create(properties) { + return new QualityOfService(properties); + }; + + /** + * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.QualityOfService + * @static + * @param {flyteidl.core.IQualityOfService} message QualityOfService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QualityOfService.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tier != null && message.hasOwnProperty("tier")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tier); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.core.QualityOfServiceSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a QualityOfService message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.QualityOfService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.QualityOfService} QualityOfService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QualityOfService.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfService(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tier = reader.int32(); + break; + case 2: + message.spec = $root.flyteidl.core.QualityOfServiceSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a QualityOfService message. + * @function verify + * @memberof flyteidl.core.QualityOfService + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QualityOfService.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.tier != null && message.hasOwnProperty("tier")) { + properties.designation = 1; + switch (message.tier) { + default: + return "tier: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.spec != null && message.hasOwnProperty("spec")) { + if (properties.designation === 1) + return "designation: multiple values"; + properties.designation = 1; + { + var error = $root.flyteidl.core.QualityOfServiceSpec.verify(message.spec); + if (error) + return "spec." + error; + } + } + return null; + }; + + /** + * Tier enum. + * @name flyteidl.core.QualityOfService.Tier + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} HIGH=1 HIGH value + * @property {number} MEDIUM=2 MEDIUM value + * @property {number} LOW=3 LOW value + */ + QualityOfService.Tier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "HIGH"] = 1; + values[valuesById[2] = "MEDIUM"] = 2; + values[valuesById[3] = "LOW"] = 3; + return values; + })(); + + return QualityOfService; + })(); + + core.Variable = (function() { + + /** + * Properties of a Variable. + * @memberof flyteidl.core + * @interface IVariable + * @property {flyteidl.core.ILiteralType|null} [type] Variable type + * @property {string|null} [description] Variable description + */ + + /** + * Constructs a new Variable. + * @memberof flyteidl.core + * @classdesc Represents a Variable. + * @implements IVariable + * @constructor + * @param {flyteidl.core.IVariable=} [properties] Properties to set + */ + function Variable(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Variable type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.type = null; + + /** + * Variable description. + * @member {string} description + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.description = ""; + + /** + * Creates a new Variable instance using the specified properties. + * @function create + * @memberof flyteidl.core.Variable + * @static + * @param {flyteidl.core.IVariable=} [properties] Properties to set + * @returns {flyteidl.core.Variable} Variable instance + */ + Variable.create = function create(properties) { + return new Variable(properties); + }; + + /** + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Variable + * @static + * @param {flyteidl.core.IVariable} message Variable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; + + /** + * Decodes a Variable message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Variable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Variable} Variable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Variable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Variable message. + * @function verify + * @memberof flyteidl.core.Variable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Variable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + return Variable; + })(); + + core.VariableMap = (function() { + + /** + * Properties of a VariableMap. + * @memberof flyteidl.core + * @interface IVariableMap + * @property {Object.|null} [variables] VariableMap variables + */ + + /** + * Constructs a new VariableMap. + * @memberof flyteidl.core + * @classdesc Represents a VariableMap. + * @implements IVariableMap + * @constructor + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + */ + function VariableMap(properties) { + this.variables = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VariableMap variables. + * @member {Object.} variables + * @memberof flyteidl.core.VariableMap + * @instance + */ + VariableMap.prototype.variables = $util.emptyObject; + + /** + * Creates a new VariableMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.VariableMap + * @static + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + * @returns {flyteidl.core.VariableMap} VariableMap instance + */ + VariableMap.create = function create(properties) { + return new VariableMap(properties); + }; + + /** + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.VariableMap + * @static + * @param {flyteidl.core.IVariableMap} message VariableMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VariableMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variables != null && message.hasOwnProperty("variables")) + for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Variable.encode(message.variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a VariableMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.VariableMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.VariableMap} VariableMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VariableMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.VariableMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.variables === $util.emptyObject) + message.variables = {}; + key = reader.string(); + reader.pos++; + message.variables[key] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a VariableMap message. + * @function verify + * @memberof flyteidl.core.VariableMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VariableMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variables != null && message.hasOwnProperty("variables")) { + if (!$util.isObject(message.variables)) + return "variables: object expected"; + var key = Object.keys(message.variables); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Variable.verify(message.variables[key[i]]); + if (error) + return "variables." + error; + } + } + return null; + }; + + return VariableMap; + })(); + + core.TypedInterface = (function() { + + /** + * Properties of a TypedInterface. + * @memberof flyteidl.core + * @interface ITypedInterface + * @property {flyteidl.core.IVariableMap|null} [inputs] TypedInterface inputs + * @property {flyteidl.core.IVariableMap|null} [outputs] TypedInterface outputs + */ + + /** + * Constructs a new TypedInterface. + * @memberof flyteidl.core + * @classdesc Represents a TypedInterface. + * @implements ITypedInterface + * @constructor + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + */ + function TypedInterface(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TypedInterface inputs. + * @member {flyteidl.core.IVariableMap|null|undefined} inputs + * @memberof flyteidl.core.TypedInterface + * @instance + */ + TypedInterface.prototype.inputs = null; + + /** + * TypedInterface outputs. + * @member {flyteidl.core.IVariableMap|null|undefined} outputs + * @memberof flyteidl.core.TypedInterface + * @instance + */ + TypedInterface.prototype.outputs = null; + + /** + * Creates a new TypedInterface instance using the specified properties. + * @function create + * @memberof flyteidl.core.TypedInterface + * @static + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + * @returns {flyteidl.core.TypedInterface} TypedInterface instance + */ + TypedInterface.create = function create(properties) { + return new TypedInterface(properties); + }; + + /** + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TypedInterface + * @static + * @param {flyteidl.core.ITypedInterface} message TypedInterface message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TypedInterface.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.VariableMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.VariableMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TypedInterface message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TypedInterface + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TypedInterface} TypedInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TypedInterface.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypedInterface(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TypedInterface message. + * @function verify + * @memberof flyteidl.core.TypedInterface + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TypedInterface.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return TypedInterface; + })(); + + core.Parameter = (function() { + + /** + * Properties of a Parameter. + * @memberof flyteidl.core + * @interface IParameter + * @property {flyteidl.core.IVariable|null} ["var"] Parameter var + * @property {flyteidl.core.ILiteral|null} ["default"] Parameter default + * @property {boolean|null} [required] Parameter required + */ + + /** + * Constructs a new Parameter. + * @memberof flyteidl.core + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {flyteidl.core.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Parameter var. + * @member {flyteidl.core.IVariable|null|undefined} var + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype["var"] = null; + + /** + * Parameter default. + * @member {flyteidl.core.ILiteral|null|undefined} default + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype["default"] = null; + + /** + * Parameter required. + * @member {boolean} required + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.required = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Parameter behavior. + * @member {"default"|"required"|undefined} behavior + * @memberof flyteidl.core.Parameter + * @instance + */ + Object.defineProperty(Parameter.prototype, "behavior", { + get: $util.oneOfGetter($oneOfFields = ["default", "required"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof flyteidl.core.Parameter + * @static + * @param {flyteidl.core.IParameter=} [properties] Properties to set + * @returns {flyteidl.core.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Parameter + * @static + * @param {flyteidl.core.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + $root.flyteidl.core.Variable.encode(message["var"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["default"] != null && message.hasOwnProperty("default")) + $root.flyteidl.core.Literal.encode(message["default"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.required != null && message.hasOwnProperty("required")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required); + return writer; + }; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); + break; + case 2: + message["default"] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + case 3: + message.required = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Parameter message. + * @function verify + * @memberof flyteidl.core.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message["var"] != null && message.hasOwnProperty("var")) { + var error = $root.flyteidl.core.Variable.verify(message["var"]); + if (error) + return "var." + error; + } + if (message["default"] != null && message.hasOwnProperty("default")) { + properties.behavior = 1; + { + var error = $root.flyteidl.core.Literal.verify(message["default"]); + if (error) + return "default." + error; + } + } + if (message.required != null && message.hasOwnProperty("required")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + if (typeof message.required !== "boolean") + return "required: boolean expected"; + } + return null; + }; + + return Parameter; + })(); + + core.ParameterMap = (function() { + + /** + * Properties of a ParameterMap. + * @memberof flyteidl.core + * @interface IParameterMap + * @property {Object.|null} [parameters] ParameterMap parameters + */ + + /** + * Constructs a new ParameterMap. + * @memberof flyteidl.core + * @classdesc Represents a ParameterMap. + * @implements IParameterMap + * @constructor + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + */ + function ParameterMap(properties) { + this.parameters = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParameterMap parameters. + * @member {Object.} parameters + * @memberof flyteidl.core.ParameterMap + * @instance + */ + ParameterMap.prototype.parameters = $util.emptyObject; + + /** + * Creates a new ParameterMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.ParameterMap + * @static + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + * @returns {flyteidl.core.ParameterMap} ParameterMap instance + */ + ParameterMap.create = function create(properties) { + return new ParameterMap(properties); + }; + + /** + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ParameterMap + * @static + * @param {flyteidl.core.IParameterMap} message ParameterMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && message.hasOwnProperty("parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Parameter.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a ParameterMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ParameterMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ParameterMap} ParameterMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ParameterMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.parameters === $util.emptyObject) + message.parameters = {}; + key = reader.string(); + reader.pos++; + message.parameters[key] = $root.flyteidl.core.Parameter.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParameterMap message. + * @function verify + * @memberof flyteidl.core.ParameterMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParameterMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Parameter.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + return null; + }; + + return ParameterMap; + })(); + + core.Resources = (function() { + + /** + * Properties of a Resources. + * @memberof flyteidl.core + * @interface IResources + * @property {Array.|null} [requests] Resources requests + * @property {Array.|null} [limits] Resources limits + */ + + /** + * Constructs a new Resources. + * @memberof flyteidl.core + * @classdesc Represents a Resources. + * @implements IResources + * @constructor + * @param {flyteidl.core.IResources=} [properties] Properties to set + */ + function Resources(properties) { + this.requests = []; + this.limits = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Resources requests. + * @member {Array.} requests + * @memberof flyteidl.core.Resources + * @instance + */ + Resources.prototype.requests = $util.emptyArray; + + /** + * Resources limits. + * @member {Array.} limits + * @memberof flyteidl.core.Resources + * @instance + */ + Resources.prototype.limits = $util.emptyArray; + + /** + * Creates a new Resources instance using the specified properties. + * @function create + * @memberof flyteidl.core.Resources + * @static + * @param {flyteidl.core.IResources=} [properties] Properties to set + * @returns {flyteidl.core.Resources} Resources instance + */ + Resources.create = function create(properties) { + return new Resources(properties); + }; + + /** + * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Resources + * @static + * @param {flyteidl.core.IResources} message Resources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Resources.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.flyteidl.core.Resources.ResourceEntry.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limits != null && message.limits.length) + for (var i = 0; i < message.limits.length; ++i) + $root.flyteidl.core.Resources.ResourceEntry.encode(message.limits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Resources message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Resources + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Resources} Resources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Resources.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.limits && message.limits.length)) + message.limits = []; + message.limits.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Resources message. + * @function verify + * @memberof flyteidl.core.Resources + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Resources.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } + if (message.limits != null && message.hasOwnProperty("limits")) { + if (!Array.isArray(message.limits)) + return "limits: array expected"; + for (var i = 0; i < message.limits.length; ++i) { + var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.limits[i]); + if (error) + return "limits." + error; + } + } + return null; + }; + + /** + * ResourceName enum. + * @name flyteidl.core.Resources.ResourceName + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} CPU=1 CPU value + * @property {number} GPU=2 GPU value + * @property {number} MEMORY=3 MEMORY value + * @property {number} STORAGE=4 STORAGE value + * @property {number} EPHEMERAL_STORAGE=5 EPHEMERAL_STORAGE value + */ + Resources.ResourceName = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CPU"] = 1; + values[valuesById[2] = "GPU"] = 2; + values[valuesById[3] = "MEMORY"] = 3; + values[valuesById[4] = "STORAGE"] = 4; + values[valuesById[5] = "EPHEMERAL_STORAGE"] = 5; + return values; + })(); + + Resources.ResourceEntry = (function() { + + /** + * Properties of a ResourceEntry. + * @memberof flyteidl.core.Resources + * @interface IResourceEntry + * @property {flyteidl.core.Resources.ResourceName|null} [name] ResourceEntry name + * @property {string|null} [value] ResourceEntry value + */ + + /** + * Constructs a new ResourceEntry. + * @memberof flyteidl.core.Resources + * @classdesc Represents a ResourceEntry. + * @implements IResourceEntry + * @constructor + * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set + */ + function ResourceEntry(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceEntry name. + * @member {flyteidl.core.Resources.ResourceName} name + * @memberof flyteidl.core.Resources.ResourceEntry + * @instance + */ + ResourceEntry.prototype.name = 0; + + /** + * ResourceEntry value. + * @member {string} value + * @memberof flyteidl.core.Resources.ResourceEntry + * @instance + */ + ResourceEntry.prototype.value = ""; + + /** + * Creates a new ResourceEntry instance using the specified properties. + * @function create + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set + * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry instance + */ + ResourceEntry.create = function create(properties) { + return new ResourceEntry(properties); + }; + + /** + * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {flyteidl.core.Resources.IResourceEntry} message ResourceEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceEntry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; + + /** + * Decodes a ResourceEntry message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceEntry.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources.ResourceEntry(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.int32(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourceEntry message. + * @function verify + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceEntry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + switch (message.name) { + default: + return "name: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return ResourceEntry; + })(); + + return Resources; + })(); + + core.RuntimeMetadata = (function() { + + /** + * Properties of a RuntimeMetadata. + * @memberof flyteidl.core + * @interface IRuntimeMetadata + * @property {flyteidl.core.RuntimeMetadata.RuntimeType|null} [type] RuntimeMetadata type + * @property {string|null} [version] RuntimeMetadata version + * @property {string|null} [flavor] RuntimeMetadata flavor + */ + + /** + * Constructs a new RuntimeMetadata. + * @memberof flyteidl.core + * @classdesc Represents a RuntimeMetadata. + * @implements IRuntimeMetadata + * @constructor + * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set + */ + function RuntimeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RuntimeMetadata type. + * @member {flyteidl.core.RuntimeMetadata.RuntimeType} type + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.type = 0; + + /** + * RuntimeMetadata version. + * @member {string} version + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.version = ""; + + /** + * RuntimeMetadata flavor. + * @member {string} flavor + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.flavor = ""; + + /** + * Creates a new RuntimeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set + * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata instance + */ + RuntimeMetadata.create = function create(properties) { + return new RuntimeMetadata(properties); + }; + + /** + * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {flyteidl.core.IRuntimeMetadata} message RuntimeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.flavor != null && message.hasOwnProperty("flavor")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.flavor); + return writer; + }; + + /** + * Decodes a RuntimeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RuntimeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.flavor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RuntimeMetadata message. + * @function verify + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.flavor != null && message.hasOwnProperty("flavor")) + if (!$util.isString(message.flavor)) + return "flavor: string expected"; + return null; + }; + + /** + * RuntimeType enum. + * @name flyteidl.core.RuntimeMetadata.RuntimeType + * @enum {string} + * @property {number} OTHER=0 OTHER value + * @property {number} FLYTE_SDK=1 FLYTE_SDK value + */ + RuntimeMetadata.RuntimeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OTHER"] = 0; + values[valuesById[1] = "FLYTE_SDK"] = 1; + return values; + })(); + + return RuntimeMetadata; + })(); + + core.TaskMetadata = (function() { + + /** + * Properties of a TaskMetadata. + * @memberof flyteidl.core + * @interface ITaskMetadata + * @property {boolean|null} [discoverable] TaskMetadata discoverable + * @property {flyteidl.core.IRuntimeMetadata|null} [runtime] TaskMetadata runtime + * @property {google.protobuf.IDuration|null} [timeout] TaskMetadata timeout + * @property {flyteidl.core.IRetryStrategy|null} [retries] TaskMetadata retries + * @property {string|null} [discoveryVersion] TaskMetadata discoveryVersion + * @property {string|null} [deprecatedErrorMessage] TaskMetadata deprecatedErrorMessage + * @property {boolean|null} [interruptible] TaskMetadata interruptible + * @property {boolean|null} [cacheSerializable] TaskMetadata cacheSerializable + * @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck + * @property {Object.|null} [tags] TaskMetadata tags + * @property {string|null} [podTemplateName] TaskMetadata podTemplateName + */ + + /** + * Constructs a new TaskMetadata. + * @memberof flyteidl.core + * @classdesc Represents a TaskMetadata. + * @implements ITaskMetadata + * @constructor + * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set + */ + function TaskMetadata(properties) { + this.tags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskMetadata discoverable. + * @member {boolean} discoverable + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.discoverable = false; + + /** + * TaskMetadata runtime. + * @member {flyteidl.core.IRuntimeMetadata|null|undefined} runtime + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.runtime = null; + + /** + * TaskMetadata timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.timeout = null; + + /** + * TaskMetadata retries. + * @member {flyteidl.core.IRetryStrategy|null|undefined} retries + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.retries = null; + + /** + * TaskMetadata discoveryVersion. + * @member {string} discoveryVersion + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.discoveryVersion = ""; + + /** + * TaskMetadata deprecatedErrorMessage. + * @member {string} deprecatedErrorMessage + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.deprecatedErrorMessage = ""; + + /** + * TaskMetadata interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.interruptible = false; + + /** + * TaskMetadata cacheSerializable. + * @member {boolean} cacheSerializable + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.cacheSerializable = false; + + /** + * TaskMetadata generatesDeck. + * @member {boolean} generatesDeck + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.generatesDeck = false; + + /** + * TaskMetadata tags. + * @member {Object.} tags + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.tags = $util.emptyObject; + + /** + * TaskMetadata podTemplateName. + * @member {string} podTemplateName + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.podTemplateName = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskMetadata interruptibleValue. + * @member {"interruptible"|undefined} interruptibleValue + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + Object.defineProperty(TaskMetadata.prototype, "interruptibleValue", { + get: $util.oneOfGetter($oneOfFields = ["interruptible"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set + * @returns {flyteidl.core.TaskMetadata} TaskMetadata instance + */ + TaskMetadata.create = function create(properties) { + return new TaskMetadata(properties); + }; + + /** + * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {flyteidl.core.ITaskMetadata} message TaskMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.discoverable != null && message.hasOwnProperty("discoverable")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.discoverable); + if (message.runtime != null && message.hasOwnProperty("runtime")) + $root.flyteidl.core.RuntimeMetadata.encode(message.runtime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timeout != null && message.hasOwnProperty("timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retries != null && message.hasOwnProperty("retries")) + $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.discoveryVersion); + if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.deprecatedErrorMessage); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible); + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable); + if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.generatesDeck); + if (message.tags != null && message.hasOwnProperty("tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.podTemplateName); + return writer; + }; + + /** + * Decodes a TaskMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskMetadata} TaskMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.discoverable = reader.bool(); + break; + case 2: + message.runtime = $root.flyteidl.core.RuntimeMetadata.decode(reader, reader.uint32()); + break; + case 4: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + break; + case 6: + message.discoveryVersion = reader.string(); + break; + case 7: + message.deprecatedErrorMessage = reader.string(); + break; + case 8: + message.interruptible = reader.bool(); + break; + case 9: + message.cacheSerializable = reader.bool(); + break; + case 10: + message.generatesDeck = reader.bool(); + break; + case 11: + reader.skip().pos++; + if (message.tags === $util.emptyObject) + message.tags = {}; + key = reader.string(); + reader.pos++; + message.tags[key] = reader.string(); + break; + case 12: + message.podTemplateName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskMetadata message. + * @function verify + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.discoverable != null && message.hasOwnProperty("discoverable")) + if (typeof message.discoverable !== "boolean") + return "discoverable: boolean expected"; + if (message.runtime != null && message.hasOwnProperty("runtime")) { + var error = $root.flyteidl.core.RuntimeMetadata.verify(message.runtime); + if (error) + return "runtime." + error; + } + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.retries != null && message.hasOwnProperty("retries")) { + var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); + if (error) + return "retries." + error; + } + if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) + if (!$util.isString(message.discoveryVersion)) + return "discoveryVersion: string expected"; + if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) + if (!$util.isString(message.deprecatedErrorMessage)) + return "deprecatedErrorMessage: string expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + properties.interruptibleValue = 1; + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + } + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) + if (typeof message.cacheSerializable !== "boolean") + return "cacheSerializable: boolean expected"; + if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) + if (typeof message.generatesDeck !== "boolean") + return "generatesDeck: boolean expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) + if (!$util.isString(message.podTemplateName)) + return "podTemplateName: string expected"; + return null; + }; + + return TaskMetadata; + })(); + + core.TaskTemplate = (function() { + + /** + * Properties of a TaskTemplate. + * @memberof flyteidl.core + * @interface ITaskTemplate + * @property {flyteidl.core.IIdentifier|null} [id] TaskTemplate id + * @property {string|null} [type] TaskTemplate type + * @property {flyteidl.core.ITaskMetadata|null} [metadata] TaskTemplate metadata + * @property {flyteidl.core.ITypedInterface|null} ["interface"] TaskTemplate interface + * @property {google.protobuf.IStruct|null} [custom] TaskTemplate custom + * @property {flyteidl.core.IContainer|null} [container] TaskTemplate container + * @property {flyteidl.core.IK8sPod|null} [k8sPod] TaskTemplate k8sPod + * @property {flyteidl.core.ISql|null} [sql] TaskTemplate sql + * @property {number|null} [taskTypeVersion] TaskTemplate taskTypeVersion + * @property {flyteidl.core.ISecurityContext|null} [securityContext] TaskTemplate securityContext + * @property {Object.|null} [config] TaskTemplate config + */ + + /** + * Constructs a new TaskTemplate. + * @memberof flyteidl.core + * @classdesc Represents a TaskTemplate. + * @implements ITaskTemplate + * @constructor + * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set + */ + function TaskTemplate(properties) { + this.config = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.id = null; + + /** + * TaskTemplate type. + * @member {string} type + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.type = ""; + + /** + * TaskTemplate metadata. + * @member {flyteidl.core.ITaskMetadata|null|undefined} metadata + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.metadata = null; + + /** + * TaskTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype["interface"] = null; + + /** + * TaskTemplate custom. + * @member {google.protobuf.IStruct|null|undefined} custom + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.custom = null; + + /** + * TaskTemplate container. + * @member {flyteidl.core.IContainer|null|undefined} container + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.container = null; + + /** + * TaskTemplate k8sPod. + * @member {flyteidl.core.IK8sPod|null|undefined} k8sPod + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.k8sPod = null; + + /** + * TaskTemplate sql. + * @member {flyteidl.core.ISql|null|undefined} sql + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.sql = null; + + /** + * TaskTemplate taskTypeVersion. + * @member {number} taskTypeVersion + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.taskTypeVersion = 0; + + /** + * TaskTemplate securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.securityContext = null; + + /** + * TaskTemplate config. + * @member {Object.} config + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.config = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskTemplate target. + * @member {"container"|"k8sPod"|"sql"|undefined} target + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + Object.defineProperty(TaskTemplate.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["container", "k8sPod", "sql"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskTemplate instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set + * @returns {flyteidl.core.TaskTemplate} TaskTemplate instance + */ + TaskTemplate.create = function create(properties) { + return new TaskTemplate(properties); + }; + + /** + * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {flyteidl.core.ITaskTemplate} message TaskTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.type); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.TaskMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.custom != null && message.hasOwnProperty("custom")) + $root.google.protobuf.Struct.encode(message.custom, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.container != null && message.hasOwnProperty("container")) + $root.flyteidl.core.Container.encode(message.container, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.taskTypeVersion); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.config != null && message.hasOwnProperty("config")) + for (var keys = Object.keys(message.config), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config[keys[i]]).ldelim(); + if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) + $root.flyteidl.core.K8sPod.encode(message.k8sPod, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.sql != null && message.hasOwnProperty("sql")) + $root.flyteidl.core.Sql.encode(message.sql, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskTemplate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskTemplate} TaskTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskTemplate(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.type = reader.string(); + break; + case 3: + message.metadata = $root.flyteidl.core.TaskMetadata.decode(reader, reader.uint32()); + break; + case 4: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 5: + message.custom = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.container = $root.flyteidl.core.Container.decode(reader, reader.uint32()); + break; + case 17: + message.k8sPod = $root.flyteidl.core.K8sPod.decode(reader, reader.uint32()); + break; + case 18: + message.sql = $root.flyteidl.core.Sql.decode(reader, reader.uint32()); + break; + case 7: + message.taskTypeVersion = reader.int32(); + break; + case 8: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 16: + reader.skip().pos++; + if (message.config === $util.emptyObject) + message.config = {}; + key = reader.string(); + reader.pos++; + message.config[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskTemplate message. + * @function verify + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.TaskMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + var error = $root.google.protobuf.Struct.verify(message.custom); + if (error) + return "custom." + error; + } + if (message.container != null && message.hasOwnProperty("container")) { + properties.target = 1; + { + var error = $root.flyteidl.core.Container.verify(message.container); + if (error) + return "container." + error; + } + } + if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.K8sPod.verify(message.k8sPod); + if (error) + return "k8sPod." + error; + } + } + if (message.sql != null && message.hasOwnProperty("sql")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.Sql.verify(message.sql); + if (error) + return "sql." + error; + } + } + if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) + if (!$util.isInteger(message.taskTypeVersion)) + return "taskTypeVersion: integer expected"; + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.config != null && message.hasOwnProperty("config")) { + if (!$util.isObject(message.config)) + return "config: object expected"; + var key = Object.keys(message.config); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.config[key[i]])) + return "config: string{k:string} expected"; + } + return null; + }; + + return TaskTemplate; + })(); + + core.ContainerPort = (function() { + + /** + * Properties of a ContainerPort. + * @memberof flyteidl.core + * @interface IContainerPort + * @property {number|null} [containerPort] ContainerPort containerPort + */ + + /** + * Constructs a new ContainerPort. + * @memberof flyteidl.core + * @classdesc Represents a ContainerPort. + * @implements IContainerPort + * @constructor + * @param {flyteidl.core.IContainerPort=} [properties] Properties to set + */ + function ContainerPort(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainerPort containerPort. + * @member {number} containerPort + * @memberof flyteidl.core.ContainerPort + * @instance + */ + ContainerPort.prototype.containerPort = 0; + + /** + * Creates a new ContainerPort instance using the specified properties. + * @function create + * @memberof flyteidl.core.ContainerPort + * @static + * @param {flyteidl.core.IContainerPort=} [properties] Properties to set + * @returns {flyteidl.core.ContainerPort} ContainerPort instance + */ + ContainerPort.create = function create(properties) { + return new ContainerPort(properties); + }; + + /** + * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ContainerPort + * @static + * @param {flyteidl.core.IContainerPort} message ContainerPort message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerPort.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.containerPort); + return writer; + }; + + /** + * Decodes a ContainerPort message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ContainerPort + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ContainerPort} ContainerPort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerPort.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerPort(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.containerPort = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ContainerPort message. + * @function verify + * @memberof flyteidl.core.ContainerPort + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerPort.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + if (!$util.isInteger(message.containerPort)) + return "containerPort: integer expected"; + return null; + }; + + return ContainerPort; + })(); + + core.Container = (function() { + + /** + * Properties of a Container. + * @memberof flyteidl.core + * @interface IContainer + * @property {string|null} [image] Container image + * @property {Array.|null} [command] Container command + * @property {Array.|null} [args] Container args + * @property {flyteidl.core.IResources|null} [resources] Container resources + * @property {Array.|null} [env] Container env + * @property {Array.|null} [config] Container config + * @property {Array.|null} [ports] Container ports + * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] Container dataConfig + * @property {flyteidl.core.Container.Architecture|null} [architecture] Container architecture + */ + + /** + * Constructs a new Container. + * @memberof flyteidl.core + * @classdesc Represents a Container. + * @implements IContainer + * @constructor + * @param {flyteidl.core.IContainer=} [properties] Properties to set + */ + function Container(properties) { + this.command = []; + this.args = []; + this.env = []; + this.config = []; + this.ports = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Container image. + * @member {string} image + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.image = ""; + + /** + * Container command. + * @member {Array.} command + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.command = $util.emptyArray; + + /** + * Container args. + * @member {Array.} args + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.args = $util.emptyArray; + + /** + * Container resources. + * @member {flyteidl.core.IResources|null|undefined} resources + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.resources = null; + + /** + * Container env. + * @member {Array.} env + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.env = $util.emptyArray; + + /** + * Container config. + * @member {Array.} config + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.config = $util.emptyArray; + + /** + * Container ports. + * @member {Array.} ports + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.ports = $util.emptyArray; + + /** + * Container dataConfig. + * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.dataConfig = null; + + /** + * Container architecture. + * @member {flyteidl.core.Container.Architecture} architecture + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.architecture = 0; + + /** + * Creates a new Container instance using the specified properties. + * @function create + * @memberof flyteidl.core.Container + * @static + * @param {flyteidl.core.IContainer=} [properties] Properties to set + * @returns {flyteidl.core.Container} Container instance + */ + Container.create = function create(properties) { + return new Container(properties); + }; + + /** + * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Container + * @static + * @param {flyteidl.core.IContainer} message Container message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Container.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.image != null && message.hasOwnProperty("image")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.image); + if (message.command != null && message.command.length) + for (var i = 0; i < message.command.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); + if (message.resources != null && message.hasOwnProperty("resources")) + $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.env != null && message.env.length) + for (var i = 0; i < message.env.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.env[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.config != null && message.config.length) + for (var i = 0; i < message.config.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.config[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.ports != null && message.ports.length) + for (var i = 0; i < message.ports.length; ++i) + $root.flyteidl.core.ContainerPort.encode(message.ports[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) + $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.architecture != null && message.hasOwnProperty("architecture")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.architecture); + return writer; + }; + + /** + * Decodes a Container message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Container + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Container} Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Container.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Container(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.image = reader.string(); + break; + case 2: + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); + break; + case 3: + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + case 4: + message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.env && message.env.length)) + message.env = []; + message.env.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.config && message.config.length)) + message.config = []; + message.config.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.ports && message.ports.length)) + message.ports = []; + message.ports.push($root.flyteidl.core.ContainerPort.decode(reader, reader.uint32())); + break; + case 9: + message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); + break; + case 10: + message.architecture = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Container message. + * @function verify + * @memberof flyteidl.core.Container + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Container.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.image != null && message.hasOwnProperty("image")) + if (!$util.isString(message.image)) + return "image: string expected"; + if (message.command != null && message.hasOwnProperty("command")) { + if (!Array.isArray(message.command)) + return "command: array expected"; + for (var i = 0; i < message.command.length; ++i) + if (!$util.isString(message.command[i])) + return "command: string[] expected"; + } + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.resources != null && message.hasOwnProperty("resources")) { + var error = $root.flyteidl.core.Resources.verify(message.resources); + if (error) + return "resources." + error; + } + if (message.env != null && message.hasOwnProperty("env")) { + if (!Array.isArray(message.env)) + return "env: array expected"; + for (var i = 0; i < message.env.length; ++i) { + var error = $root.flyteidl.core.KeyValuePair.verify(message.env[i]); + if (error) + return "env." + error; + } + } + if (message.config != null && message.hasOwnProperty("config")) { + if (!Array.isArray(message.config)) + return "config: array expected"; + for (var i = 0; i < message.config.length; ++i) { + var error = $root.flyteidl.core.KeyValuePair.verify(message.config[i]); + if (error) + return "config." + error; + } + } + if (message.ports != null && message.hasOwnProperty("ports")) { + if (!Array.isArray(message.ports)) + return "ports: array expected"; + for (var i = 0; i < message.ports.length; ++i) { + var error = $root.flyteidl.core.ContainerPort.verify(message.ports[i]); + if (error) + return "ports." + error; + } + } + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { + var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); + if (error) + return "dataConfig." + error; + } + if (message.architecture != null && message.hasOwnProperty("architecture")) + switch (message.architecture) { + default: + return "architecture: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Architecture enum. + * @name flyteidl.core.Container.Architecture + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} AMD64=1 AMD64 value + * @property {number} ARM64=2 ARM64 value + * @property {number} ARM_V6=3 ARM_V6 value + * @property {number} ARM_V7=4 ARM_V7 value + */ + Container.Architecture = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "AMD64"] = 1; + values[valuesById[2] = "ARM64"] = 2; + values[valuesById[3] = "ARM_V6"] = 3; + values[valuesById[4] = "ARM_V7"] = 4; + return values; + })(); + + return Container; + })(); + + core.IOStrategy = (function() { + + /** + * Properties of a IOStrategy. + * @memberof flyteidl.core + * @interface IIOStrategy + * @property {flyteidl.core.IOStrategy.DownloadMode|null} [downloadMode] IOStrategy downloadMode + * @property {flyteidl.core.IOStrategy.UploadMode|null} [uploadMode] IOStrategy uploadMode + */ + + /** + * Constructs a new IOStrategy. + * @memberof flyteidl.core + * @classdesc Represents a IOStrategy. + * @implements IIOStrategy + * @constructor + * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set + */ + function IOStrategy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IOStrategy downloadMode. + * @member {flyteidl.core.IOStrategy.DownloadMode} downloadMode + * @memberof flyteidl.core.IOStrategy + * @instance + */ + IOStrategy.prototype.downloadMode = 0; + + /** + * IOStrategy uploadMode. + * @member {flyteidl.core.IOStrategy.UploadMode} uploadMode + * @memberof flyteidl.core.IOStrategy + * @instance + */ + IOStrategy.prototype.uploadMode = 0; + + /** + * Creates a new IOStrategy instance using the specified properties. + * @function create + * @memberof flyteidl.core.IOStrategy + * @static + * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set + * @returns {flyteidl.core.IOStrategy} IOStrategy instance + */ + IOStrategy.create = function create(properties) { + return new IOStrategy(properties); + }; + + /** + * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IOStrategy + * @static + * @param {flyteidl.core.IIOStrategy} message IOStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IOStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.downloadMode); + if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.uploadMode); + return writer; + }; + + /** + * Decodes a IOStrategy message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IOStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IOStrategy} IOStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IOStrategy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IOStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.downloadMode = reader.int32(); + break; + case 2: + message.uploadMode = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a IOStrategy message. + * @function verify + * @memberof flyteidl.core.IOStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IOStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) + switch (message.downloadMode) { + default: + return "downloadMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) + switch (message.uploadMode) { + default: + return "uploadMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * DownloadMode enum. + * @name flyteidl.core.IOStrategy.DownloadMode + * @enum {string} + * @property {number} DOWNLOAD_EAGER=0 DOWNLOAD_EAGER value + * @property {number} DOWNLOAD_STREAM=1 DOWNLOAD_STREAM value + * @property {number} DO_NOT_DOWNLOAD=2 DO_NOT_DOWNLOAD value + */ + IOStrategy.DownloadMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DOWNLOAD_EAGER"] = 0; + values[valuesById[1] = "DOWNLOAD_STREAM"] = 1; + values[valuesById[2] = "DO_NOT_DOWNLOAD"] = 2; + return values; + })(); + + /** + * UploadMode enum. + * @name flyteidl.core.IOStrategy.UploadMode + * @enum {string} + * @property {number} UPLOAD_ON_EXIT=0 UPLOAD_ON_EXIT value + * @property {number} UPLOAD_EAGER=1 UPLOAD_EAGER value + * @property {number} DO_NOT_UPLOAD=2 DO_NOT_UPLOAD value + */ + IOStrategy.UploadMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UPLOAD_ON_EXIT"] = 0; + values[valuesById[1] = "UPLOAD_EAGER"] = 1; + values[valuesById[2] = "DO_NOT_UPLOAD"] = 2; + return values; + })(); + + return IOStrategy; + })(); + + core.DataLoadingConfig = (function() { + + /** + * Properties of a DataLoadingConfig. + * @memberof flyteidl.core + * @interface IDataLoadingConfig + * @property {boolean|null} [enabled] DataLoadingConfig enabled + * @property {string|null} [inputPath] DataLoadingConfig inputPath + * @property {string|null} [outputPath] DataLoadingConfig outputPath + * @property {flyteidl.core.DataLoadingConfig.LiteralMapFormat|null} [format] DataLoadingConfig format + * @property {flyteidl.core.IIOStrategy|null} [ioStrategy] DataLoadingConfig ioStrategy + */ + + /** + * Constructs a new DataLoadingConfig. + * @memberof flyteidl.core + * @classdesc Represents a DataLoadingConfig. + * @implements IDataLoadingConfig + * @constructor + * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set + */ + function DataLoadingConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataLoadingConfig enabled. + * @member {boolean} enabled + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.enabled = false; + + /** + * DataLoadingConfig inputPath. + * @member {string} inputPath + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.inputPath = ""; + + /** + * DataLoadingConfig outputPath. + * @member {string} outputPath + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.outputPath = ""; + + /** + * DataLoadingConfig format. + * @member {flyteidl.core.DataLoadingConfig.LiteralMapFormat} format + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.format = 0; + + /** + * DataLoadingConfig ioStrategy. + * @member {flyteidl.core.IIOStrategy|null|undefined} ioStrategy + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.ioStrategy = null; + + /** + * Creates a new DataLoadingConfig instance using the specified properties. + * @function create + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set + * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig instance + */ + DataLoadingConfig.create = function create(properties) { + return new DataLoadingConfig(properties); + }; + + /** + * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {flyteidl.core.IDataLoadingConfig} message DataLoadingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLoadingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.inputPath != null && message.hasOwnProperty("inputPath")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputPath); + if (message.outputPath != null && message.hasOwnProperty("outputPath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPath); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.format); + if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) + $root.flyteidl.core.IOStrategy.encode(message.ioStrategy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DataLoadingConfig message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLoadingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DataLoadingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + case 2: + message.inputPath = reader.string(); + break; + case 3: + message.outputPath = reader.string(); + break; + case 4: + message.format = reader.int32(); + break; + case 5: + message.ioStrategy = $root.flyteidl.core.IOStrategy.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DataLoadingConfig message. + * @function verify + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataLoadingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.inputPath != null && message.hasOwnProperty("inputPath")) + if (!$util.isString(message.inputPath)) + return "inputPath: string expected"; + if (message.outputPath != null && message.hasOwnProperty("outputPath")) + if (!$util.isString(message.outputPath)) + return "outputPath: string expected"; + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) { + var error = $root.flyteidl.core.IOStrategy.verify(message.ioStrategy); + if (error) + return "ioStrategy." + error; + } + return null; + }; + + /** + * LiteralMapFormat enum. + * @name flyteidl.core.DataLoadingConfig.LiteralMapFormat + * @enum {string} + * @property {number} JSON=0 JSON value + * @property {number} YAML=1 YAML value + * @property {number} PROTO=2 PROTO value + */ + DataLoadingConfig.LiteralMapFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JSON"] = 0; + values[valuesById[1] = "YAML"] = 1; + values[valuesById[2] = "PROTO"] = 2; + return values; + })(); + + return DataLoadingConfig; + })(); + + core.K8sPod = (function() { + + /** + * Properties of a K8sPod. + * @memberof flyteidl.core + * @interface IK8sPod + * @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata + * @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec + * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig + */ + + /** + * Constructs a new K8sPod. + * @memberof flyteidl.core + * @classdesc Represents a K8sPod. + * @implements IK8sPod + * @constructor + * @param {flyteidl.core.IK8sPod=} [properties] Properties to set + */ + function K8sPod(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * K8sPod metadata. + * @member {flyteidl.core.IK8sObjectMetadata|null|undefined} metadata + * @memberof flyteidl.core.K8sPod + * @instance + */ + K8sPod.prototype.metadata = null; + + /** + * K8sPod podSpec. + * @member {google.protobuf.IStruct|null|undefined} podSpec + * @memberof flyteidl.core.K8sPod + * @instance + */ + K8sPod.prototype.podSpec = null; + + /** + * K8sPod dataConfig. + * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig + * @memberof flyteidl.core.K8sPod + * @instance + */ + K8sPod.prototype.dataConfig = null; + + /** + * Creates a new K8sPod instance using the specified properties. + * @function create + * @memberof flyteidl.core.K8sPod + * @static + * @param {flyteidl.core.IK8sPod=} [properties] Properties to set + * @returns {flyteidl.core.K8sPod} K8sPod instance + */ + K8sPod.create = function create(properties) { + return new K8sPod(properties); + }; + + /** + * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.K8sPod + * @static + * @param {flyteidl.core.IK8sPod} message K8sPod message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + K8sPod.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.K8sObjectMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.podSpec != null && message.hasOwnProperty("podSpec")) + $root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) + $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a K8sPod message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.K8sPod + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.K8sPod} K8sPod + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + K8sPod.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sPod(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = $root.flyteidl.core.K8sObjectMetadata.decode(reader, reader.uint32()); + break; + case 2: + message.podSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a K8sPod message. + * @function verify + * @memberof flyteidl.core.K8sPod + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + K8sPod.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.K8sObjectMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.podSpec != null && message.hasOwnProperty("podSpec")) { + var error = $root.google.protobuf.Struct.verify(message.podSpec); + if (error) + return "podSpec." + error; + } + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { + var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); + if (error) + return "dataConfig." + error; + } + return null; + }; + + return K8sPod; + })(); + + core.K8sObjectMetadata = (function() { + + /** + * Properties of a K8sObjectMetadata. + * @memberof flyteidl.core + * @interface IK8sObjectMetadata + * @property {Object.|null} [labels] K8sObjectMetadata labels + * @property {Object.|null} [annotations] K8sObjectMetadata annotations + */ + + /** + * Constructs a new K8sObjectMetadata. + * @memberof flyteidl.core + * @classdesc Represents a K8sObjectMetadata. + * @implements IK8sObjectMetadata + * @constructor + * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set + */ + function K8sObjectMetadata(properties) { + this.labels = {}; + this.annotations = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * K8sObjectMetadata labels. + * @member {Object.} labels + * @memberof flyteidl.core.K8sObjectMetadata + * @instance + */ + K8sObjectMetadata.prototype.labels = $util.emptyObject; + + /** + * K8sObjectMetadata annotations. + * @member {Object.} annotations + * @memberof flyteidl.core.K8sObjectMetadata + * @instance + */ + K8sObjectMetadata.prototype.annotations = $util.emptyObject; + + /** + * Creates a new K8sObjectMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set + * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata instance + */ + K8sObjectMetadata.create = function create(properties) { + return new K8sObjectMetadata(properties); + }; + + /** + * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {flyteidl.core.IK8sObjectMetadata} message K8sObjectMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + K8sObjectMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.labels != null && message.hasOwnProperty("labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a K8sObjectMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + K8sObjectMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sObjectMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.labels === $util.emptyObject) + message.labels = {}; + key = reader.string(); + reader.pos++; + message.labels[key] = reader.string(); + break; + case 2: + reader.skip().pos++; + if (message.annotations === $util.emptyObject) + message.annotations = {}; + key = reader.string(); + reader.pos++; + message.annotations[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a K8sObjectMetadata message. + * @function verify + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + K8sObjectMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; + } + return null; + }; + + return K8sObjectMetadata; + })(); + + core.Sql = (function() { + + /** + * Properties of a Sql. + * @memberof flyteidl.core + * @interface ISql + * @property {string|null} [statement] Sql statement + * @property {flyteidl.core.Sql.Dialect|null} [dialect] Sql dialect + */ + + /** + * Constructs a new Sql. + * @memberof flyteidl.core + * @classdesc Represents a Sql. + * @implements ISql + * @constructor + * @param {flyteidl.core.ISql=} [properties] Properties to set + */ + function Sql(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Sql statement. + * @member {string} statement + * @memberof flyteidl.core.Sql + * @instance + */ + Sql.prototype.statement = ""; + + /** + * Sql dialect. + * @member {flyteidl.core.Sql.Dialect} dialect + * @memberof flyteidl.core.Sql + * @instance + */ + Sql.prototype.dialect = 0; + + /** + * Creates a new Sql instance using the specified properties. + * @function create + * @memberof flyteidl.core.Sql + * @static + * @param {flyteidl.core.ISql=} [properties] Properties to set + * @returns {flyteidl.core.Sql} Sql instance + */ + Sql.create = function create(properties) { + return new Sql(properties); + }; + + /** + * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Sql + * @static + * @param {flyteidl.core.ISql} message Sql message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Sql.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.statement != null && message.hasOwnProperty("statement")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.statement); + if (message.dialect != null && message.hasOwnProperty("dialect")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dialect); + return writer; + }; + + /** + * Decodes a Sql message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Sql + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Sql} Sql + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Sql.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Sql(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.statement = reader.string(); + break; + case 2: + message.dialect = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Sql message. + * @function verify + * @memberof flyteidl.core.Sql + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Sql.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.statement != null && message.hasOwnProperty("statement")) + if (!$util.isString(message.statement)) + return "statement: string expected"; + if (message.dialect != null && message.hasOwnProperty("dialect")) + switch (message.dialect) { + default: + return "dialect: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Dialect enum. + * @name flyteidl.core.Sql.Dialect + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} ANSI=1 ANSI value + * @property {number} HIVE=2 HIVE value + * @property {number} OTHER=3 OTHER value + */ + Sql.Dialect = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "ANSI"] = 1; + values[valuesById[2] = "HIVE"] = 2; + values[valuesById[3] = "OTHER"] = 3; + return values; + })(); + + return Sql; + })(); + + core.Secret = (function() { + + /** + * Properties of a Secret. + * @memberof flyteidl.core + * @interface ISecret + * @property {string|null} [group] Secret group + * @property {string|null} [groupVersion] Secret groupVersion + * @property {string|null} [key] Secret key + * @property {flyteidl.core.Secret.MountType|null} [mountRequirement] Secret mountRequirement + */ + + /** + * Constructs a new Secret. + * @memberof flyteidl.core + * @classdesc Represents a Secret. + * @implements ISecret + * @constructor + * @param {flyteidl.core.ISecret=} [properties] Properties to set + */ + function Secret(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Secret group. + * @member {string} group + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.group = ""; + + /** + * Secret groupVersion. + * @member {string} groupVersion + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.groupVersion = ""; + + /** + * Secret key. + * @member {string} key + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.key = ""; + + /** + * Secret mountRequirement. + * @member {flyteidl.core.Secret.MountType} mountRequirement + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.mountRequirement = 0; + + /** + * Creates a new Secret instance using the specified properties. + * @function create + * @memberof flyteidl.core.Secret + * @static + * @param {flyteidl.core.ISecret=} [properties] Properties to set + * @returns {flyteidl.core.Secret} Secret instance + */ + Secret.create = function create(properties) { + return new Secret(properties); + }; + + /** + * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Secret + * @static + * @param {flyteidl.core.ISecret} message Secret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Secret.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.group != null && message.hasOwnProperty("group")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.group); + if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupVersion); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); + if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.mountRequirement); + return writer; + }; + + /** + * Decodes a Secret message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Secret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Secret} Secret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Secret.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Secret(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.group = reader.string(); + break; + case 2: + message.groupVersion = reader.string(); + break; + case 3: + message.key = reader.string(); + break; + case 4: + message.mountRequirement = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Secret message. + * @function verify + * @memberof flyteidl.core.Secret + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Secret.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.group != null && message.hasOwnProperty("group")) + if (!$util.isString(message.group)) + return "group: string expected"; + if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) + if (!$util.isString(message.groupVersion)) + return "groupVersion: string expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) + switch (message.mountRequirement) { + default: + return "mountRequirement: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * MountType enum. + * @name flyteidl.core.Secret.MountType + * @enum {string} + * @property {number} ANY=0 ANY value + * @property {number} ENV_VAR=1 ENV_VAR value + * @property {number} FILE=2 FILE value + */ + Secret.MountType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ANY"] = 0; + values[valuesById[1] = "ENV_VAR"] = 1; + values[valuesById[2] = "FILE"] = 2; + return values; + })(); + + return Secret; + })(); + + core.OAuth2Client = (function() { + + /** + * Properties of a OAuth2Client. + * @memberof flyteidl.core + * @interface IOAuth2Client + * @property {string|null} [clientId] OAuth2Client clientId + * @property {flyteidl.core.ISecret|null} [clientSecret] OAuth2Client clientSecret + */ + + /** + * Constructs a new OAuth2Client. + * @memberof flyteidl.core + * @classdesc Represents a OAuth2Client. + * @implements IOAuth2Client + * @constructor + * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set + */ + function OAuth2Client(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OAuth2Client clientId. + * @member {string} clientId + * @memberof flyteidl.core.OAuth2Client + * @instance + */ + OAuth2Client.prototype.clientId = ""; + + /** + * OAuth2Client clientSecret. + * @member {flyteidl.core.ISecret|null|undefined} clientSecret + * @memberof flyteidl.core.OAuth2Client + * @instance + */ + OAuth2Client.prototype.clientSecret = null; + + /** + * Creates a new OAuth2Client instance using the specified properties. + * @function create + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set + * @returns {flyteidl.core.OAuth2Client} OAuth2Client instance + */ + OAuth2Client.create = function create(properties) { + return new OAuth2Client(properties); + }; + + /** + * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {flyteidl.core.IOAuth2Client} message OAuth2Client message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2Client.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clientId != null && message.hasOwnProperty("clientId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) + $root.flyteidl.core.Secret.encode(message.clientSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a OAuth2Client message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.OAuth2Client} OAuth2Client + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2Client.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2Client(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientSecret = $root.flyteidl.core.Secret.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2Client message. + * @function verify + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2Client.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) { + var error = $root.flyteidl.core.Secret.verify(message.clientSecret); + if (error) + return "clientSecret." + error; + } + return null; + }; + + return OAuth2Client; + })(); + + core.Identity = (function() { + + /** + * Properties of an Identity. + * @memberof flyteidl.core + * @interface IIdentity + * @property {string|null} [iamRole] Identity iamRole + * @property {string|null} [k8sServiceAccount] Identity k8sServiceAccount + * @property {flyteidl.core.IOAuth2Client|null} [oauth2Client] Identity oauth2Client + * @property {string|null} [executionIdentity] Identity executionIdentity + */ + + /** + * Constructs a new Identity. + * @memberof flyteidl.core + * @classdesc Represents an Identity. + * @implements IIdentity + * @constructor + * @param {flyteidl.core.IIdentity=} [properties] Properties to set + */ + function Identity(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Identity iamRole. + * @member {string} iamRole + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.iamRole = ""; + + /** + * Identity k8sServiceAccount. + * @member {string} k8sServiceAccount + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.k8sServiceAccount = ""; + + /** + * Identity oauth2Client. + * @member {flyteidl.core.IOAuth2Client|null|undefined} oauth2Client + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.oauth2Client = null; + + /** + * Identity executionIdentity. + * @member {string} executionIdentity + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.executionIdentity = ""; + + /** + * Creates a new Identity instance using the specified properties. + * @function create + * @memberof flyteidl.core.Identity + * @static + * @param {flyteidl.core.IIdentity=} [properties] Properties to set + * @returns {flyteidl.core.Identity} Identity instance + */ + Identity.create = function create(properties) { + return new Identity(properties); + }; + + /** + * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Identity + * @static + * @param {flyteidl.core.IIdentity} message Identity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Identity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.iamRole != null && message.hasOwnProperty("iamRole")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.iamRole); + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.k8sServiceAccount); + if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) + $root.flyteidl.core.OAuth2Client.encode(message.oauth2Client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.executionIdentity); + return writer; + }; + + /** + * Decodes an Identity message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Identity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Identity} Identity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Identity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iamRole = reader.string(); + break; + case 2: + message.k8sServiceAccount = reader.string(); + break; + case 3: + message.oauth2Client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); + break; + case 4: + message.executionIdentity = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Identity message. + * @function verify + * @memberof flyteidl.core.Identity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Identity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.iamRole != null && message.hasOwnProperty("iamRole")) + if (!$util.isString(message.iamRole)) + return "iamRole: string expected"; + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + if (!$util.isString(message.k8sServiceAccount)) + return "k8sServiceAccount: string expected"; + if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) { + var error = $root.flyteidl.core.OAuth2Client.verify(message.oauth2Client); + if (error) + return "oauth2Client." + error; + } + if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) + if (!$util.isString(message.executionIdentity)) + return "executionIdentity: string expected"; + return null; + }; + + return Identity; + })(); + + core.OAuth2TokenRequest = (function() { + + /** + * Properties of a OAuth2TokenRequest. + * @memberof flyteidl.core + * @interface IOAuth2TokenRequest + * @property {string|null} [name] OAuth2TokenRequest name + * @property {flyteidl.core.OAuth2TokenRequest.Type|null} [type] OAuth2TokenRequest type + * @property {flyteidl.core.IOAuth2Client|null} [client] OAuth2TokenRequest client + * @property {string|null} [idpDiscoveryEndpoint] OAuth2TokenRequest idpDiscoveryEndpoint + * @property {string|null} [tokenEndpoint] OAuth2TokenRequest tokenEndpoint + */ + + /** + * Constructs a new OAuth2TokenRequest. + * @memberof flyteidl.core + * @classdesc Represents a OAuth2TokenRequest. + * @implements IOAuth2TokenRequest + * @constructor + * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set + */ + function OAuth2TokenRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OAuth2TokenRequest name. + * @member {string} name + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.name = ""; + + /** + * OAuth2TokenRequest type. + * @member {flyteidl.core.OAuth2TokenRequest.Type} type + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.type = 0; + + /** + * OAuth2TokenRequest client. + * @member {flyteidl.core.IOAuth2Client|null|undefined} client + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.client = null; + + /** + * OAuth2TokenRequest idpDiscoveryEndpoint. + * @member {string} idpDiscoveryEndpoint + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.idpDiscoveryEndpoint = ""; + + /** + * OAuth2TokenRequest tokenEndpoint. + * @member {string} tokenEndpoint + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.tokenEndpoint = ""; + + /** + * Creates a new OAuth2TokenRequest instance using the specified properties. + * @function create + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set + * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest instance + */ + OAuth2TokenRequest.create = function create(properties) { + return new OAuth2TokenRequest(properties); + }; + + /** + * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {flyteidl.core.IOAuth2TokenRequest} message OAuth2TokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2TokenRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.client != null && message.hasOwnProperty("client")) + $root.flyteidl.core.OAuth2Client.encode(message.client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.idpDiscoveryEndpoint); + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tokenEndpoint); + return writer; + }; + + /** + * Decodes a OAuth2TokenRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2TokenRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2TokenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + case 3: + message.client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); + break; + case 4: + message.idpDiscoveryEndpoint = reader.string(); + break; + case 5: + message.tokenEndpoint = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2TokenRequest message. + * @function verify + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2TokenRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + break; + } + if (message.client != null && message.hasOwnProperty("client")) { + var error = $root.flyteidl.core.OAuth2Client.verify(message.client); + if (error) + return "client." + error; + } + if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) + if (!$util.isString(message.idpDiscoveryEndpoint)) + return "idpDiscoveryEndpoint: string expected"; + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + if (!$util.isString(message.tokenEndpoint)) + return "tokenEndpoint: string expected"; + return null; + }; + + /** + * Type enum. + * @name flyteidl.core.OAuth2TokenRequest.Type + * @enum {string} + * @property {number} CLIENT_CREDENTIALS=0 CLIENT_CREDENTIALS value + */ + OAuth2TokenRequest.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_CREDENTIALS"] = 0; + return values; + })(); + + return OAuth2TokenRequest; + })(); + + core.SecurityContext = (function() { + + /** + * Properties of a SecurityContext. + * @memberof flyteidl.core + * @interface ISecurityContext + * @property {flyteidl.core.IIdentity|null} [runAs] SecurityContext runAs + * @property {Array.|null} [secrets] SecurityContext secrets + * @property {Array.|null} [tokens] SecurityContext tokens + */ + + /** + * Constructs a new SecurityContext. + * @memberof flyteidl.core + * @classdesc Represents a SecurityContext. + * @implements ISecurityContext + * @constructor + * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set + */ + function SecurityContext(properties) { + this.secrets = []; + this.tokens = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityContext runAs. + * @member {flyteidl.core.IIdentity|null|undefined} runAs + * @memberof flyteidl.core.SecurityContext + * @instance + */ + SecurityContext.prototype.runAs = null; + + /** + * SecurityContext secrets. + * @member {Array.} secrets + * @memberof flyteidl.core.SecurityContext + * @instance + */ + SecurityContext.prototype.secrets = $util.emptyArray; + + /** + * SecurityContext tokens. + * @member {Array.} tokens + * @memberof flyteidl.core.SecurityContext + * @instance + */ + SecurityContext.prototype.tokens = $util.emptyArray; + + /** + * Creates a new SecurityContext instance using the specified properties. + * @function create + * @memberof flyteidl.core.SecurityContext + * @static + * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set + * @returns {flyteidl.core.SecurityContext} SecurityContext instance + */ + SecurityContext.create = function create(properties) { + return new SecurityContext(properties); + }; + + /** + * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SecurityContext + * @static + * @param {flyteidl.core.ISecurityContext} message SecurityContext message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityContext.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runAs != null && message.hasOwnProperty("runAs")) + $root.flyteidl.core.Identity.encode(message.runAs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.secrets != null && message.secrets.length) + for (var i = 0; i < message.secrets.length; ++i) + $root.flyteidl.core.Secret.encode(message.secrets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tokens != null && message.tokens.length) + for (var i = 0; i < message.tokens.length; ++i) + $root.flyteidl.core.OAuth2TokenRequest.encode(message.tokens[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SecurityContext message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SecurityContext + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SecurityContext} SecurityContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityContext.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SecurityContext(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.runAs = $root.flyteidl.core.Identity.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.secrets && message.secrets.length)) + message.secrets = []; + message.secrets.push($root.flyteidl.core.Secret.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.tokens && message.tokens.length)) + message.tokens = []; + message.tokens.push($root.flyteidl.core.OAuth2TokenRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SecurityContext message. + * @function verify + * @memberof flyteidl.core.SecurityContext + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityContext.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runAs != null && message.hasOwnProperty("runAs")) { + var error = $root.flyteidl.core.Identity.verify(message.runAs); + if (error) + return "runAs." + error; + } + if (message.secrets != null && message.hasOwnProperty("secrets")) { + if (!Array.isArray(message.secrets)) + return "secrets: array expected"; + for (var i = 0; i < message.secrets.length; ++i) { + var error = $root.flyteidl.core.Secret.verify(message.secrets[i]); + if (error) + return "secrets." + error; + } + } + if (message.tokens != null && message.hasOwnProperty("tokens")) { + if (!Array.isArray(message.tokens)) + return "tokens: array expected"; + for (var i = 0; i < message.tokens.length; ++i) { + var error = $root.flyteidl.core.OAuth2TokenRequest.verify(message.tokens[i]); + if (error) + return "tokens." + error; + } + } + return null; + }; + + return SecurityContext; + })(); + + core.DynamicJobSpec = (function() { + + /** + * Properties of a DynamicJobSpec. + * @memberof flyteidl.core + * @interface IDynamicJobSpec + * @property {Array.|null} [nodes] DynamicJobSpec nodes + * @property {Long|null} [minSuccesses] DynamicJobSpec minSuccesses + * @property {Array.|null} [outputs] DynamicJobSpec outputs + * @property {Array.|null} [tasks] DynamicJobSpec tasks + * @property {Array.|null} [subworkflows] DynamicJobSpec subworkflows + */ + + /** + * Constructs a new DynamicJobSpec. + * @memberof flyteidl.core + * @classdesc Represents a DynamicJobSpec. + * @implements IDynamicJobSpec + * @constructor + * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set + */ + function DynamicJobSpec(properties) { + this.nodes = []; + this.outputs = []; + this.tasks = []; + this.subworkflows = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicJobSpec nodes. + * @member {Array.} nodes + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.nodes = $util.emptyArray; + + /** + * DynamicJobSpec minSuccesses. + * @member {Long} minSuccesses + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.minSuccesses = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * DynamicJobSpec outputs. + * @member {Array.} outputs + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.outputs = $util.emptyArray; + + /** + * DynamicJobSpec tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.tasks = $util.emptyArray; + + /** + * DynamicJobSpec subworkflows. + * @member {Array.} subworkflows + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.subworkflows = $util.emptyArray; + + /** + * Creates a new DynamicJobSpec instance using the specified properties. + * @function create + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set + * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec instance + */ + DynamicJobSpec.create = function create(properties) { + return new DynamicJobSpec(properties); + }; + + /** + * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {flyteidl.core.IDynamicJobSpec} message DynamicJobSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicJobSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodes != null && message.nodes.length) + for (var i = 0; i < message.nodes.length; ++i) + $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minSuccesses); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.subworkflows != null && message.subworkflows.length) + for (var i = 0; i < message.subworkflows.length; ++i) + $root.flyteidl.core.WorkflowTemplate.encode(message.subworkflows[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DynamicJobSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicJobSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DynamicJobSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + break; + case 2: + message.minSuccesses = reader.int64(); + break; + case 3: + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.subworkflows && message.subworkflows.length)) + message.subworkflows = []; + message.subworkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicJobSpec message. + * @function verify + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicJobSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (var i = 0; i < message.nodes.length; ++i) { + var error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } + } + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + if (!$util.isInteger(message.minSuccesses) && !(message.minSuccesses && $util.isInteger(message.minSuccesses.low) && $util.isInteger(message.minSuccesses.high))) + return "minSuccesses: integer|Long expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + if (message.subworkflows != null && message.hasOwnProperty("subworkflows")) { + if (!Array.isArray(message.subworkflows)) + return "subworkflows: array expected"; + for (var i = 0; i < message.subworkflows.length; ++i) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subworkflows[i]); + if (error) + return "subworkflows." + error; + } + } + return null; + }; + + return DynamicJobSpec; + })(); + + core.ContainerError = (function() { + + /** + * Properties of a ContainerError. + * @memberof flyteidl.core + * @interface IContainerError + * @property {string|null} [code] ContainerError code + * @property {string|null} [message] ContainerError message + * @property {flyteidl.core.ContainerError.Kind|null} [kind] ContainerError kind + * @property {flyteidl.core.ExecutionError.ErrorKind|null} [origin] ContainerError origin + */ + + /** + * Constructs a new ContainerError. + * @memberof flyteidl.core + * @classdesc Represents a ContainerError. + * @implements IContainerError + * @constructor + * @param {flyteidl.core.IContainerError=} [properties] Properties to set + */ + function ContainerError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainerError code. + * @member {string} code + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.code = ""; + + /** + * ContainerError message. + * @member {string} message + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.message = ""; + + /** + * ContainerError kind. + * @member {flyteidl.core.ContainerError.Kind} kind + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.kind = 0; + + /** + * ContainerError origin. + * @member {flyteidl.core.ExecutionError.ErrorKind} origin + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.origin = 0; + + /** + * Creates a new ContainerError instance using the specified properties. + * @function create + * @memberof flyteidl.core.ContainerError + * @static + * @param {flyteidl.core.IContainerError=} [properties] Properties to set + * @returns {flyteidl.core.ContainerError} ContainerError instance + */ + ContainerError.create = function create(properties) { + return new ContainerError(properties); + }; + + /** + * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ContainerError + * @static + * @param {flyteidl.core.IContainerError} message ContainerError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); + if (message.origin != null && message.hasOwnProperty("origin")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.origin); + return writer; + }; + + /** + * Decodes a ContainerError message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ContainerError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ContainerError} ContainerError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.kind = reader.int32(); + break; + case 4: + message.origin = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ContainerError message. + * @function verify + * @memberof flyteidl.core.ContainerError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isString(message.code)) + return "code: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + break; + } + if (message.origin != null && message.hasOwnProperty("origin")) + switch (message.origin) { + default: + return "origin: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Kind enum. + * @name flyteidl.core.ContainerError.Kind + * @enum {string} + * @property {number} NON_RECOVERABLE=0 NON_RECOVERABLE value + * @property {number} RECOVERABLE=1 RECOVERABLE value + */ + ContainerError.Kind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NON_RECOVERABLE"] = 0; + values[valuesById[1] = "RECOVERABLE"] = 1; + return values; + })(); + + return ContainerError; + })(); + + core.ErrorDocument = (function() { + + /** + * Properties of an ErrorDocument. + * @memberof flyteidl.core + * @interface IErrorDocument + * @property {flyteidl.core.IContainerError|null} [error] ErrorDocument error + */ + + /** + * Constructs a new ErrorDocument. + * @memberof flyteidl.core + * @classdesc Represents an ErrorDocument. + * @implements IErrorDocument + * @constructor + * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set + */ + function ErrorDocument(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ErrorDocument error. + * @member {flyteidl.core.IContainerError|null|undefined} error + * @memberof flyteidl.core.ErrorDocument + * @instance + */ + ErrorDocument.prototype.error = null; + + /** + * Creates a new ErrorDocument instance using the specified properties. + * @function create + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set + * @returns {flyteidl.core.ErrorDocument} ErrorDocument instance + */ + ErrorDocument.create = function create(properties) { + return new ErrorDocument(properties); + }; + + /** + * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {flyteidl.core.IErrorDocument} message ErrorDocument message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorDocument.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ContainerError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ErrorDocument message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ErrorDocument} ErrorDocument + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorDocument.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ErrorDocument(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.error = $root.flyteidl.core.ContainerError.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ErrorDocument message. + * @function verify + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ErrorDocument.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.flyteidl.core.ContainerError.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + return ErrorDocument; + })(); + + core.Span = (function() { + + /** + * Properties of a Span. + * @memberof flyteidl.core + * @interface ISpan + * @property {google.protobuf.ITimestamp|null} [startTime] Span startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Span endTime + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowId] Span workflowId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeId] Span nodeId + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskId] Span taskId + * @property {string|null} [operationId] Span operationId + * @property {Array.|null} [spans] Span spans + */ + + /** + * Constructs a new Span. + * @memberof flyteidl.core + * @classdesc Represents a Span. + * @implements ISpan + * @constructor + * @param {flyteidl.core.ISpan=} [properties] Properties to set + */ + function Span(properties) { + this.spans = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Span startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.startTime = null; + + /** + * Span endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.endTime = null; + + /** + * Span workflowId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.workflowId = null; + + /** + * Span nodeId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.nodeId = null; + + /** + * Span taskId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.taskId = null; + + /** + * Span operationId. + * @member {string} operationId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.operationId = ""; + + /** + * Span spans. + * @member {Array.} spans + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.spans = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Span id. + * @member {"workflowId"|"nodeId"|"taskId"|"operationId"|undefined} id + * @memberof flyteidl.core.Span + * @instance + */ + Object.defineProperty(Span.prototype, "id", { + get: $util.oneOfGetter($oneOfFields = ["workflowId", "nodeId", "taskId", "operationId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Span instance using the specified properties. + * @function create + * @memberof flyteidl.core.Span + * @static + * @param {flyteidl.core.ISpan=} [properties] Properties to set + * @returns {flyteidl.core.Span} Span instance + */ + Span.create = function create(properties) { + return new Span(properties); + }; + + /** + * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Span + * @static + * @param {flyteidl.core.ISpan} message Span message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Span.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startTime != null && message.hasOwnProperty("startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && message.hasOwnProperty("endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeId, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.operationId != null && message.hasOwnProperty("operationId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.operationId); + if (message.spans != null && message.spans.length) + for (var i = 0; i < message.spans.length; ++i) + $root.flyteidl.core.Span.encode(message.spans[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Span message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Span + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Span} Span + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Span.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Span(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.workflowId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 4: + message.nodeId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 5: + message.taskId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 6: + message.operationId = reader.string(); + break; + case 7: + if (!(message.spans && message.spans.length)) + message.spans = []; + message.spans.push($root.flyteidl.core.Span.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Span message. + * @function verify + * @memberof flyteidl.core.Span + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Span.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + properties.id = 1; + { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + } + if (message.nodeId != null && message.hasOwnProperty("nodeId")) { + if (properties.id === 1) + return "id: multiple values"; + properties.id = 1; + { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeId); + if (error) + return "nodeId." + error; + } + } + if (message.taskId != null && message.hasOwnProperty("taskId")) { + if (properties.id === 1) + return "id: multiple values"; + properties.id = 1; + { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + } + if (message.operationId != null && message.hasOwnProperty("operationId")) { + if (properties.id === 1) + return "id: multiple values"; + properties.id = 1; + if (!$util.isString(message.operationId)) + return "operationId: string expected"; + } + if (message.spans != null && message.hasOwnProperty("spans")) { + if (!Array.isArray(message.spans)) + return "spans: array expected"; + for (var i = 0; i < message.spans.length; ++i) { + var error = $root.flyteidl.core.Span.verify(message.spans[i]); + if (error) + return "spans." + error; + } + } + return null; + }; + + return Span; + })(); + + core.WorkflowClosure = (function() { + + /** + * Properties of a WorkflowClosure. + * @memberof flyteidl.core + * @interface IWorkflowClosure + * @property {flyteidl.core.IWorkflowTemplate|null} [workflow] WorkflowClosure workflow + * @property {Array.|null} [tasks] WorkflowClosure tasks + */ + + /** + * Constructs a new WorkflowClosure. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowClosure. + * @implements IWorkflowClosure + * @constructor + * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set + */ + function WorkflowClosure(properties) { + this.tasks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowClosure workflow. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} workflow + * @memberof flyteidl.core.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.workflow = null; + + /** + * WorkflowClosure tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.tasks = $util.emptyArray; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure instance + */ + WorkflowClosure.create = function create(properties) { + return new WorkflowClosure(properties); + }; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {flyteidl.core.IWorkflowClosure} message WorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflow != null && message.hasOwnProperty("workflow")) + $root.flyteidl.core.WorkflowTemplate.encode(message.workflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflow = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowClosure message. + * @function verify + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.workflow); + if (error) + return "workflow." + error; + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + return null; + }; + + return WorkflowClosure; + })(); + + return core; + })(); + + flyteidl.event = (function() { + + /** + * Namespace event. + * @memberof flyteidl + * @namespace + */ + var event = {}; + + event.WorkflowExecutionEvent = (function() { + + /** + * Properties of a WorkflowExecutionEvent. + * @memberof flyteidl.event + * @interface IWorkflowExecutionEvent + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowExecutionEvent executionId + * @property {string|null} [producerId] WorkflowExecutionEvent producerId + * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] WorkflowExecutionEvent phase + * @property {google.protobuf.ITimestamp|null} [occurredAt] WorkflowExecutionEvent occurredAt + * @property {string|null} [outputUri] WorkflowExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] WorkflowExecutionEvent error + * @property {flyteidl.core.ILiteralMap|null} [outputData] WorkflowExecutionEvent outputData + */ + + /** + * Constructs a new WorkflowExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a WorkflowExecutionEvent. + * @implements IWorkflowExecutionEvent + * @constructor + * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set + */ + function WorkflowExecutionEvent(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionEvent executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.executionId = null; + + /** + * WorkflowExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.producerId = ""; + + /** + * WorkflowExecutionEvent phase. + * @member {flyteidl.core.WorkflowExecution.Phase} phase + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.phase = 0; + + /** + * WorkflowExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.occurredAt = null; + + /** + * WorkflowExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.outputUri = ""; + + /** + * WorkflowExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.error = null; + + /** + * WorkflowExecutionEvent outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.outputData = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WorkflowExecutionEvent outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + Object.defineProperty(WorkflowExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkflowExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent instance + */ + WorkflowExecutionEvent.create = function create(properties) { + return new WorkflowExecutionEvent(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {flyteidl.event.IWorkflowExecutionEvent} message WorkflowExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowExecutionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.producerId = reader.string(); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.outputUri = reader.string(); + break; + case 6: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 7: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEvent message. + * @function verify + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + return null; + }; + + return WorkflowExecutionEvent; + })(); + + event.NodeExecutionEvent = (function() { + + /** + * Properties of a NodeExecutionEvent. + * @memberof flyteidl.event + * @interface INodeExecutionEvent + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionEvent id + * @property {string|null} [producerId] NodeExecutionEvent producerId + * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionEvent phase + * @property {google.protobuf.ITimestamp|null} [occurredAt] NodeExecutionEvent occurredAt + * @property {string|null} [inputUri] NodeExecutionEvent inputUri + * @property {flyteidl.core.ILiteralMap|null} [inputData] NodeExecutionEvent inputData + * @property {string|null} [outputUri] NodeExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionEvent error + * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionEvent outputData + * @property {flyteidl.event.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionEvent workflowNodeMetadata + * @property {flyteidl.event.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionEvent taskNodeMetadata + * @property {flyteidl.event.IParentTaskExecutionMetadata|null} [parentTaskMetadata] NodeExecutionEvent parentTaskMetadata + * @property {flyteidl.event.IParentNodeExecutionMetadata|null} [parentNodeMetadata] NodeExecutionEvent parentNodeMetadata + * @property {string|null} [retryGroup] NodeExecutionEvent retryGroup + * @property {string|null} [specNodeId] NodeExecutionEvent specNodeId + * @property {string|null} [nodeName] NodeExecutionEvent nodeName + * @property {number|null} [eventVersion] NodeExecutionEvent eventVersion + * @property {boolean|null} [isParent] NodeExecutionEvent isParent + * @property {boolean|null} [isDynamic] NodeExecutionEvent isDynamic + * @property {string|null} [deckUri] NodeExecutionEvent deckUri + * @property {google.protobuf.ITimestamp|null} [reportedAt] NodeExecutionEvent reportedAt + */ + + /** + * Constructs a new NodeExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a NodeExecutionEvent. + * @implements INodeExecutionEvent + * @constructor + * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set + */ + function NodeExecutionEvent(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionEvent id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.id = null; + + /** + * NodeExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.producerId = ""; + + /** + * NodeExecutionEvent phase. + * @member {flyteidl.core.NodeExecution.Phase} phase + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.phase = 0; + + /** + * NodeExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.occurredAt = null; + + /** + * NodeExecutionEvent inputUri. + * @member {string} inputUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.inputUri = ""; + + /** + * NodeExecutionEvent inputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputData + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.inputData = null; + + /** + * NodeExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.outputUri = ""; + + /** + * NodeExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.error = null; + + /** + * NodeExecutionEvent outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.outputData = null; + + /** + * NodeExecutionEvent workflowNodeMetadata. + * @member {flyteidl.event.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.workflowNodeMetadata = null; + + /** + * NodeExecutionEvent taskNodeMetadata. + * @member {flyteidl.event.ITaskNodeMetadata|null|undefined} taskNodeMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.taskNodeMetadata = null; + + /** + * NodeExecutionEvent parentTaskMetadata. + * @member {flyteidl.event.IParentTaskExecutionMetadata|null|undefined} parentTaskMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.parentTaskMetadata = null; + + /** + * NodeExecutionEvent parentNodeMetadata. + * @member {flyteidl.event.IParentNodeExecutionMetadata|null|undefined} parentNodeMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.parentNodeMetadata = null; + + /** + * NodeExecutionEvent retryGroup. + * @member {string} retryGroup + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.retryGroup = ""; + + /** + * NodeExecutionEvent specNodeId. + * @member {string} specNodeId + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.specNodeId = ""; + + /** + * NodeExecutionEvent nodeName. + * @member {string} nodeName + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.nodeName = ""; + + /** + * NodeExecutionEvent eventVersion. + * @member {number} eventVersion + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.eventVersion = 0; + + /** + * NodeExecutionEvent isParent. + * @member {boolean} isParent + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.isParent = false; + + /** + * NodeExecutionEvent isDynamic. + * @member {boolean} isDynamic + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.isDynamic = false; + + /** + * NodeExecutionEvent deckUri. + * @member {string} deckUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.deckUri = ""; + + /** + * NodeExecutionEvent reportedAt. + * @member {google.protobuf.ITimestamp|null|undefined} reportedAt + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.reportedAt = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NodeExecutionEvent inputValue. + * @member {"inputUri"|"inputData"|undefined} inputValue + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "inputValue", { + get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionEvent outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionEvent targetMetadata. + * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "targetMetadata", { + get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent instance + */ + NodeExecutionEvent.create = function create(properties) { + return new NodeExecutionEvent(properties); + }; + + /** + * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {flyteidl.event.INodeExecutionEvent} message NodeExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.inputUri); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) + $root.flyteidl.event.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) + $root.flyteidl.event.ParentTaskExecutionMetadata.encode(message.parentTaskMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) + $root.flyteidl.event.ParentNodeExecutionMetadata.encode(message.parentNodeMetadata, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.retryGroup); + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.specNodeId); + if (message.nodeName != null && message.hasOwnProperty("nodeName")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.nodeName); + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) + $root.flyteidl.event.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.eventVersion); + if (message.isParent != null && message.hasOwnProperty("isParent")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.isParent); + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDynamic); + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.deckUri); + if (message.inputData != null && message.hasOwnProperty("inputData")) + $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) + $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.NodeExecutionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.producerId = reader.string(); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.inputUri = reader.string(); + break; + case 20: + message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 6: + message.outputUri = reader.string(); + break; + case 7: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 15: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 8: + message.workflowNodeMetadata = $root.flyteidl.event.WorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + case 14: + message.taskNodeMetadata = $root.flyteidl.event.TaskNodeMetadata.decode(reader, reader.uint32()); + break; + case 9: + message.parentTaskMetadata = $root.flyteidl.event.ParentTaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 10: + message.parentNodeMetadata = $root.flyteidl.event.ParentNodeExecutionMetadata.decode(reader, reader.uint32()); + break; + case 11: + message.retryGroup = reader.string(); + break; + case 12: + message.specNodeId = reader.string(); + break; + case 13: + message.nodeName = reader.string(); + break; + case 16: + message.eventVersion = reader.int32(); + break; + case 17: + message.isParent = reader.bool(); + break; + case 18: + message.isDynamic = reader.bool(); + break; + case 19: + message.deckUri = reader.string(); + break; + case 21: + message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEvent message. + * @function verify + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) { + properties.inputValue = 1; + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + } + if (message.inputData != null && message.hasOwnProperty("inputData")) { + if (properties.inputValue === 1) + return "inputValue: multiple values"; + properties.inputValue = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); + if (error) + return "inputData." + error; + } + } + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { + properties.targetMetadata = 1; + { + var error = $root.flyteidl.event.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); + if (error) + return "workflowNodeMetadata." + error; + } + } + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { + if (properties.targetMetadata === 1) + return "targetMetadata: multiple values"; + properties.targetMetadata = 1; + { + var error = $root.flyteidl.event.TaskNodeMetadata.verify(message.taskNodeMetadata); + if (error) + return "taskNodeMetadata." + error; + } + } + if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) { + var error = $root.flyteidl.event.ParentTaskExecutionMetadata.verify(message.parentTaskMetadata); + if (error) + return "parentTaskMetadata." + error; + } + if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) { + var error = $root.flyteidl.event.ParentNodeExecutionMetadata.verify(message.parentNodeMetadata); + if (error) + return "parentNodeMetadata." + error; + } + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + if (!$util.isString(message.retryGroup)) + return "retryGroup: string expected"; + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + if (!$util.isString(message.specNodeId)) + return "specNodeId: string expected"; + if (message.nodeName != null && message.hasOwnProperty("nodeName")) + if (!$util.isString(message.nodeName)) + return "nodeName: string expected"; + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + if (!$util.isInteger(message.eventVersion)) + return "eventVersion: integer expected"; + if (message.isParent != null && message.hasOwnProperty("isParent")) + if (typeof message.isParent !== "boolean") + return "isParent: boolean expected"; + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + if (typeof message.isDynamic !== "boolean") + return "isDynamic: boolean expected"; + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + if (!$util.isString(message.deckUri)) + return "deckUri: string expected"; + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); + if (error) + return "reportedAt." + error; + } + return null; + }; + + return NodeExecutionEvent; + })(); + + event.WorkflowNodeMetadata = (function() { + + /** + * Properties of a WorkflowNodeMetadata. + * @memberof flyteidl.event + * @interface IWorkflowNodeMetadata + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId + */ + + /** + * Constructs a new WorkflowNodeMetadata. + * @memberof flyteidl.event + * @classdesc Represents a WorkflowNodeMetadata. + * @implements IWorkflowNodeMetadata + * @constructor + * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set + */ + function WorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNodeMetadata executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.event.WorkflowNodeMetadata + * @instance + */ + WorkflowNodeMetadata.prototype.executionId = null; + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata instance + */ + WorkflowNodeMetadata.create = function create(properties) { + return new WorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {flyteidl.event.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return WorkflowNodeMetadata; + })(); + + event.TaskNodeMetadata = (function() { + + /** + * Properties of a TaskNodeMetadata. + * @memberof flyteidl.event + * @interface ITaskNodeMetadata + * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus + * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey + * @property {flyteidl.core.CatalogReservation.Status|null} [reservationStatus] TaskNodeMetadata reservationStatus + * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri + * @property {flyteidl.event.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] TaskNodeMetadata dynamicWorkflow + */ + + /** + * Constructs a new TaskNodeMetadata. + * @memberof flyteidl.event + * @classdesc Represents a TaskNodeMetadata. + * @implements ITaskNodeMetadata + * @constructor + * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set + */ + function TaskNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNodeMetadata cacheStatus. + * @member {flyteidl.core.CatalogCacheStatus} cacheStatus + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.cacheStatus = 0; + + /** + * TaskNodeMetadata catalogKey. + * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.catalogKey = null; + + /** + * TaskNodeMetadata reservationStatus. + * @member {flyteidl.core.CatalogReservation.Status} reservationStatus + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.reservationStatus = 0; + + /** + * TaskNodeMetadata checkpointUri. + * @member {string} checkpointUri + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.checkpointUri = ""; + + /** + * TaskNodeMetadata dynamicWorkflow. + * @member {flyteidl.event.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.dynamicWorkflow = null; + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata instance + */ + TaskNodeMetadata.create = function create(properties) { + return new TaskNodeMetadata(properties); + }; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {flyteidl.event.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) + $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.reservationStatus); + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) + $root.flyteidl.event.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cacheStatus = reader.int32(); + break; + case 2: + message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.reservationStatus = reader.int32(); + break; + case 4: + message.checkpointUri = reader.string(); + break; + case 16: + message.dynamicWorkflow = $root.flyteidl.event.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNodeMetadata message. + * @function verify + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + switch (message.cacheStatus) { + default: + return "cacheStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { + var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); + if (error) + return "catalogKey." + error; + } + if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) + switch (message.reservationStatus) { + default: + return "reservationStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + if (!$util.isString(message.checkpointUri)) + return "checkpointUri: string expected"; + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { + var error = $root.flyteidl.event.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); + if (error) + return "dynamicWorkflow." + error; + } + return null; + }; + + return TaskNodeMetadata; + })(); + + event.DynamicWorkflowNodeMetadata = (function() { + + /** + * Properties of a DynamicWorkflowNodeMetadata. + * @memberof flyteidl.event + * @interface IDynamicWorkflowNodeMetadata + * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow + * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri + */ + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @memberof flyteidl.event + * @classdesc Represents a DynamicWorkflowNodeMetadata. + * @implements IDynamicWorkflowNodeMetadata + * @constructor + * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + */ + function DynamicWorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicWorkflowNodeMetadata id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.id = null; + + /** + * DynamicWorkflowNodeMetadata compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; + + /** + * DynamicWorkflowNodeMetadata dynamicJobSpecUri. + * @member {string} dynamicJobSpecUri + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance + */ + DynamicWorkflowNodeMetadata.create = function create(properties) { + return new DynamicWorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.event.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicWorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); + return writer; + }; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.DynamicWorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + case 3: + message.dynamicJobSpecUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicWorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + if (!$util.isString(message.dynamicJobSpecUri)) + return "dynamicJobSpecUri: string expected"; + return null; + }; + + return DynamicWorkflowNodeMetadata; + })(); + + event.ParentTaskExecutionMetadata = (function() { + + /** + * Properties of a ParentTaskExecutionMetadata. + * @memberof flyteidl.event + * @interface IParentTaskExecutionMetadata + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] ParentTaskExecutionMetadata id + */ + + /** + * Constructs a new ParentTaskExecutionMetadata. + * @memberof flyteidl.event + * @classdesc Represents a ParentTaskExecutionMetadata. + * @implements IParentTaskExecutionMetadata + * @constructor + * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set + */ + function ParentTaskExecutionMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParentTaskExecutionMetadata id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @instance + */ + ParentTaskExecutionMetadata.prototype.id = null; + + /** + * Creates a new ParentTaskExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata instance + */ + ParentTaskExecutionMetadata.create = function create(properties) { + return new ParentTaskExecutionMetadata(properties); + }; + + /** + * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {flyteidl.event.IParentTaskExecutionMetadata} message ParentTaskExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParentTaskExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParentTaskExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentTaskExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParentTaskExecutionMetadata message. + * @function verify + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParentTaskExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ParentTaskExecutionMetadata; + })(); + + event.ParentNodeExecutionMetadata = (function() { + + /** + * Properties of a ParentNodeExecutionMetadata. + * @memberof flyteidl.event + * @interface IParentNodeExecutionMetadata + * @property {string|null} [nodeId] ParentNodeExecutionMetadata nodeId + */ + + /** + * Constructs a new ParentNodeExecutionMetadata. + * @memberof flyteidl.event + * @classdesc Represents a ParentNodeExecutionMetadata. + * @implements IParentNodeExecutionMetadata + * @constructor + * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set + */ + function ParentNodeExecutionMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParentNodeExecutionMetadata nodeId. + * @member {string} nodeId + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @instance + */ + ParentNodeExecutionMetadata.prototype.nodeId = ""; + + /** + * Creates a new ParentNodeExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata instance + */ + ParentNodeExecutionMetadata.create = function create(properties) { + return new ParentNodeExecutionMetadata(properties); + }; + + /** + * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {flyteidl.event.IParentNodeExecutionMetadata} message ParentNodeExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParentNodeExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + return writer; + }; + + /** + * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParentNodeExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentNodeExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParentNodeExecutionMetadata message. + * @function verify + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParentNodeExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + return null; + }; + + return ParentNodeExecutionMetadata; + })(); + + event.TaskExecutionEvent = (function() { + + /** + * Properties of a TaskExecutionEvent. + * @memberof flyteidl.event + * @interface ITaskExecutionEvent + * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionEvent taskId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecutionId] TaskExecutionEvent parentNodeExecutionId + * @property {number|null} [retryAttempt] TaskExecutionEvent retryAttempt + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionEvent phase + * @property {string|null} [producerId] TaskExecutionEvent producerId + * @property {Array.|null} [logs] TaskExecutionEvent logs + * @property {google.protobuf.ITimestamp|null} [occurredAt] TaskExecutionEvent occurredAt + * @property {string|null} [inputUri] TaskExecutionEvent inputUri + * @property {flyteidl.core.ILiteralMap|null} [inputData] TaskExecutionEvent inputData + * @property {string|null} [outputUri] TaskExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionEvent error + * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionEvent outputData + * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionEvent customInfo + * @property {number|null} [phaseVersion] TaskExecutionEvent phaseVersion + * @property {string|null} [reason] TaskExecutionEvent reason + * @property {string|null} [taskType] TaskExecutionEvent taskType + * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionEvent metadata + * @property {number|null} [eventVersion] TaskExecutionEvent eventVersion + * @property {google.protobuf.ITimestamp|null} [reportedAt] TaskExecutionEvent reportedAt + */ + + /** + * Constructs a new TaskExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a TaskExecutionEvent. + * @implements ITaskExecutionEvent + * @constructor + * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set + */ + function TaskExecutionEvent(properties) { + this.logs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionEvent taskId. + * @member {flyteidl.core.IIdentifier|null|undefined} taskId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.taskId = null; + + /** + * TaskExecutionEvent parentNodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecutionId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.parentNodeExecutionId = null; + + /** + * TaskExecutionEvent retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.retryAttempt = 0; + + /** + * TaskExecutionEvent phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.phase = 0; + + /** + * TaskExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.producerId = ""; + + /** + * TaskExecutionEvent logs. + * @member {Array.} logs + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.logs = $util.emptyArray; + + /** + * TaskExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.occurredAt = null; + + /** + * TaskExecutionEvent inputUri. + * @member {string} inputUri + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.inputUri = ""; + + /** + * TaskExecutionEvent inputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputData + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.inputData = null; + + /** + * TaskExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.outputUri = ""; + + /** + * TaskExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.error = null; + + /** + * TaskExecutionEvent outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.outputData = null; + + /** + * TaskExecutionEvent customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.customInfo = null; + + /** + * TaskExecutionEvent phaseVersion. + * @member {number} phaseVersion + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.phaseVersion = 0; + + /** + * TaskExecutionEvent reason. + * @member {string} reason + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.reason = ""; + + /** + * TaskExecutionEvent taskType. + * @member {string} taskType + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.taskType = ""; + + /** + * TaskExecutionEvent metadata. + * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.metadata = null; + + /** + * TaskExecutionEvent eventVersion. + * @member {number} eventVersion + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.eventVersion = 0; + + /** + * TaskExecutionEvent reportedAt. + * @member {google.protobuf.ITimestamp|null|undefined} reportedAt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.reportedAt = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskExecutionEvent inputValue. + * @member {"inputUri"|"inputData"|undefined} inputValue + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + Object.defineProperty(TaskExecutionEvent.prototype, "inputValue", { + get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * TaskExecutionEvent outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + Object.defineProperty(TaskExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent instance + */ + TaskExecutionEvent.create = function create(properties) { + return new TaskExecutionEvent(properties); + }; + + /** + * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {flyteidl.event.ITaskExecutionEvent} message TaskExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.producerId); + if (message.logs != null && message.logs.length) + for (var i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.inputUri); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.customInfo != null && message.hasOwnProperty("customInfo")) + $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) + writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.phaseVersion); + if (message.reason != null && message.hasOwnProperty("reason")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.reason); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.taskType); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + writer.uint32(/* id 18, wireType 0 =*/144).int32(message.eventVersion); + if (message.inputData != null && message.hasOwnProperty("inputData")) + $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) + $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.parentNodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.producerId = reader.string(); + break; + case 6: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + case 7: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.inputUri = reader.string(); + break; + case 19: + message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 9: + message.outputUri = reader.string(); + break; + case 10: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 17: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 11: + message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 12: + message.phaseVersion = reader.uint32(); + break; + case 13: + message.reason = reader.string(); + break; + case 14: + message.taskType = reader.string(); + break; + case 16: + message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 18: + message.eventVersion = reader.int32(); + break; + case 20: + message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEvent message. + * @function verify + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.taskId != null && message.hasOwnProperty("taskId")) { + var error = $root.flyteidl.core.Identifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecutionId); + if (error) + return "parentNodeExecutionId." + error; + } + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (var i = 0; i < message.logs.length; ++i) { + var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) { + properties.inputValue = 1; + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + } + if (message.inputData != null && message.hasOwnProperty("inputData")) { + if (properties.inputValue === 1) + return "inputValue: multiple values"; + properties.inputValue = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); + if (error) + return "inputData." + error; + } + } + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.customInfo != null && message.hasOwnProperty("customInfo")) { + var error = $root.google.protobuf.Struct.verify(message.customInfo); + if (error) + return "customInfo." + error; + } + if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) + if (!$util.isInteger(message.phaseVersion)) + return "phaseVersion: integer expected"; + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + if (!$util.isInteger(message.eventVersion)) + return "eventVersion: integer expected"; + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); + if (error) + return "reportedAt." + error; + } + return null; + }; + + return TaskExecutionEvent; + })(); + + event.ExternalResourceInfo = (function() { + + /** + * Properties of an ExternalResourceInfo. + * @memberof flyteidl.event + * @interface IExternalResourceInfo + * @property {string|null} [externalId] ExternalResourceInfo externalId + * @property {number|null} [index] ExternalResourceInfo index + * @property {number|null} [retryAttempt] ExternalResourceInfo retryAttempt + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] ExternalResourceInfo phase + * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] ExternalResourceInfo cacheStatus + * @property {Array.|null} [logs] ExternalResourceInfo logs + */ + + /** + * Constructs a new ExternalResourceInfo. + * @memberof flyteidl.event + * @classdesc Represents an ExternalResourceInfo. + * @implements IExternalResourceInfo + * @constructor + * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set + */ + function ExternalResourceInfo(properties) { + this.logs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExternalResourceInfo externalId. + * @member {string} externalId + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.externalId = ""; + + /** + * ExternalResourceInfo index. + * @member {number} index + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.index = 0; + + /** + * ExternalResourceInfo retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.retryAttempt = 0; + + /** + * ExternalResourceInfo phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.phase = 0; + + /** + * ExternalResourceInfo cacheStatus. + * @member {flyteidl.core.CatalogCacheStatus} cacheStatus + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.cacheStatus = 0; + + /** + * ExternalResourceInfo logs. + * @member {Array.} logs + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.logs = $util.emptyArray; + + /** + * Creates a new ExternalResourceInfo instance using the specified properties. + * @function create + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set + * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo instance + */ + ExternalResourceInfo.create = function create(properties) { + return new ExternalResourceInfo(properties); + }; + + /** + * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {flyteidl.event.IExternalResourceInfo} message ExternalResourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalResourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.externalId != null && message.hasOwnProperty("externalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.externalId); + if (message.index != null && message.hasOwnProperty("index")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.index); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.cacheStatus); + if (message.logs != null && message.logs.length) + for (var i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExternalResourceInfo message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalResourceInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ExternalResourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.externalId = reader.string(); + break; + case 2: + message.index = reader.uint32(); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.cacheStatus = reader.int32(); + break; + case 6: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExternalResourceInfo message. + * @function verify + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExternalResourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.externalId != null && message.hasOwnProperty("externalId")) + if (!$util.isString(message.externalId)) + return "externalId: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + switch (message.cacheStatus) { + default: + return "cacheStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (var i = 0; i < message.logs.length; ++i) { + var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + return null; + }; + + return ExternalResourceInfo; + })(); + + event.ResourcePoolInfo = (function() { + + /** + * Properties of a ResourcePoolInfo. + * @memberof flyteidl.event + * @interface IResourcePoolInfo + * @property {string|null} [allocationToken] ResourcePoolInfo allocationToken + * @property {string|null} [namespace] ResourcePoolInfo namespace + */ + + /** + * Constructs a new ResourcePoolInfo. + * @memberof flyteidl.event + * @classdesc Represents a ResourcePoolInfo. + * @implements IResourcePoolInfo + * @constructor + * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set + */ + function ResourcePoolInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourcePoolInfo allocationToken. + * @member {string} allocationToken + * @memberof flyteidl.event.ResourcePoolInfo + * @instance + */ + ResourcePoolInfo.prototype.allocationToken = ""; + + /** + * ResourcePoolInfo namespace. + * @member {string} namespace + * @memberof flyteidl.event.ResourcePoolInfo + * @instance + */ + ResourcePoolInfo.prototype.namespace = ""; + + /** + * Creates a new ResourcePoolInfo instance using the specified properties. + * @function create + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set + * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo instance + */ + ResourcePoolInfo.create = function create(properties) { + return new ResourcePoolInfo(properties); + }; + + /** + * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {flyteidl.event.IResourcePoolInfo} message ResourcePoolInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourcePoolInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allocationToken); + if (message.namespace != null && message.hasOwnProperty("namespace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); + return writer; + }; + + /** + * Decodes a ResourcePoolInfo message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourcePoolInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ResourcePoolInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allocationToken = reader.string(); + break; + case 2: + message.namespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourcePoolInfo message. + * @function verify + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourcePoolInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) + if (!$util.isString(message.allocationToken)) + return "allocationToken: string expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + return null; + }; + + return ResourcePoolInfo; + })(); + + event.TaskExecutionMetadata = (function() { + + /** + * Properties of a TaskExecutionMetadata. + * @memberof flyteidl.event + * @interface ITaskExecutionMetadata + * @property {string|null} [generatedName] TaskExecutionMetadata generatedName + * @property {Array.|null} [externalResources] TaskExecutionMetadata externalResources + * @property {Array.|null} [resourcePoolInfo] TaskExecutionMetadata resourcePoolInfo + * @property {string|null} [pluginIdentifier] TaskExecutionMetadata pluginIdentifier + * @property {flyteidl.event.TaskExecutionMetadata.InstanceClass|null} [instanceClass] TaskExecutionMetadata instanceClass + */ + + /** + * Constructs a new TaskExecutionMetadata. + * @memberof flyteidl.event + * @classdesc Represents a TaskExecutionMetadata. + * @implements ITaskExecutionMetadata + * @constructor + * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set + */ + function TaskExecutionMetadata(properties) { + this.externalResources = []; + this.resourcePoolInfo = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionMetadata generatedName. + * @member {string} generatedName + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.generatedName = ""; + + /** + * TaskExecutionMetadata externalResources. + * @member {Array.} externalResources + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.externalResources = $util.emptyArray; + + /** + * TaskExecutionMetadata resourcePoolInfo. + * @member {Array.} resourcePoolInfo + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.resourcePoolInfo = $util.emptyArray; + + /** + * TaskExecutionMetadata pluginIdentifier. + * @member {string} pluginIdentifier + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.pluginIdentifier = ""; + + /** + * TaskExecutionMetadata instanceClass. + * @member {flyteidl.event.TaskExecutionMetadata.InstanceClass} instanceClass + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.instanceClass = 0; + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata instance + */ + TaskExecutionMetadata.create = function create(properties) { + return new TaskExecutionMetadata(properties); + }; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {flyteidl.event.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.generatedName != null && message.hasOwnProperty("generatedName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.generatedName); + if (message.externalResources != null && message.externalResources.length) + for (var i = 0; i < message.externalResources.length; ++i) + $root.flyteidl.event.ExternalResourceInfo.encode(message.externalResources[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resourcePoolInfo != null && message.resourcePoolInfo.length) + for (var i = 0; i < message.resourcePoolInfo.length; ++i) + $root.flyteidl.event.ResourcePoolInfo.encode(message.resourcePoolInfo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pluginIdentifier); + if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.instanceClass); + return writer; + }; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.generatedName = reader.string(); + break; + case 2: + if (!(message.externalResources && message.externalResources.length)) + message.externalResources = []; + message.externalResources.push($root.flyteidl.event.ExternalResourceInfo.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.resourcePoolInfo && message.resourcePoolInfo.length)) + message.resourcePoolInfo = []; + message.resourcePoolInfo.push($root.flyteidl.event.ResourcePoolInfo.decode(reader, reader.uint32())); + break; + case 4: + message.pluginIdentifier = reader.string(); + break; + case 16: + message.instanceClass = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionMetadata message. + * @function verify + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.generatedName != null && message.hasOwnProperty("generatedName")) + if (!$util.isString(message.generatedName)) + return "generatedName: string expected"; + if (message.externalResources != null && message.hasOwnProperty("externalResources")) { + if (!Array.isArray(message.externalResources)) + return "externalResources: array expected"; + for (var i = 0; i < message.externalResources.length; ++i) { + var error = $root.flyteidl.event.ExternalResourceInfo.verify(message.externalResources[i]); + if (error) + return "externalResources." + error; + } + } + if (message.resourcePoolInfo != null && message.hasOwnProperty("resourcePoolInfo")) { + if (!Array.isArray(message.resourcePoolInfo)) + return "resourcePoolInfo: array expected"; + for (var i = 0; i < message.resourcePoolInfo.length; ++i) { + var error = $root.flyteidl.event.ResourcePoolInfo.verify(message.resourcePoolInfo[i]); + if (error) + return "resourcePoolInfo." + error; + } + } + if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) + if (!$util.isString(message.pluginIdentifier)) + return "pluginIdentifier: string expected"; + if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) + switch (message.instanceClass) { + default: + return "instanceClass: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * InstanceClass enum. + * @name flyteidl.event.TaskExecutionMetadata.InstanceClass + * @enum {string} + * @property {number} DEFAULT=0 DEFAULT value + * @property {number} INTERRUPTIBLE=1 INTERRUPTIBLE value + */ + TaskExecutionMetadata.InstanceClass = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT"] = 0; + values[valuesById[1] = "INTERRUPTIBLE"] = 1; + return values; + })(); + + return TaskExecutionMetadata; + })(); + + return event; + })(); + + flyteidl.admin = (function() { + + /** + * Namespace admin. + * @memberof flyteidl + * @namespace + */ + var admin = {}; + + /** + * State enum. + * @name flyteidl.admin.State + * @enum {string} + * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value + * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value + * @property {number} PENDING=2 PENDING value + * @property {number} RUNNING=3 RUNNING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + */ + admin.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; + values[valuesById[1] = "PERMANENT_FAILURE"] = 1; + values[valuesById[2] = "PENDING"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + return values; + })(); + + admin.TaskExecutionMetadata = (function() { + + /** + * Properties of a TaskExecutionMetadata. + * @memberof flyteidl.admin + * @interface ITaskExecutionMetadata + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] TaskExecutionMetadata taskExecutionId + * @property {string|null} [namespace] TaskExecutionMetadata namespace + * @property {Object.|null} [labels] TaskExecutionMetadata labels + * @property {Object.|null} [annotations] TaskExecutionMetadata annotations + * @property {string|null} [k8sServiceAccount] TaskExecutionMetadata k8sServiceAccount + * @property {Object.|null} [environmentVariables] TaskExecutionMetadata environmentVariables + */ + + /** + * Constructs a new TaskExecutionMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionMetadata. + * @implements ITaskExecutionMetadata + * @constructor + * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set + */ + function TaskExecutionMetadata(properties) { + this.labels = {}; + this.annotations = {}; + this.environmentVariables = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionMetadata taskExecutionId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.taskExecutionId = null; + + /** + * TaskExecutionMetadata namespace. + * @member {string} namespace + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.namespace = ""; + + /** + * TaskExecutionMetadata labels. + * @member {Object.} labels + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.labels = $util.emptyObject; + + /** + * TaskExecutionMetadata annotations. + * @member {Object.} annotations + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.annotations = $util.emptyObject; + + /** + * TaskExecutionMetadata k8sServiceAccount. + * @member {string} k8sServiceAccount + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.k8sServiceAccount = ""; + + /** + * TaskExecutionMetadata environmentVariables. + * @member {Object.} environmentVariables + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.environmentVariables = $util.emptyObject; + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata instance + */ + TaskExecutionMetadata.create = function create(properties) { + return new TaskExecutionMetadata(properties); + }; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {flyteidl.admin.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.namespace != null && message.hasOwnProperty("namespace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); + if (message.labels != null && message.hasOwnProperty("labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.k8sServiceAccount); + if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) + for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.namespace = reader.string(); + break; + case 3: + reader.skip().pos++; + if (message.labels === $util.emptyObject) + message.labels = {}; + key = reader.string(); + reader.pos++; + message.labels[key] = reader.string(); + break; + case 4: + reader.skip().pos++; + if (message.annotations === $util.emptyObject) + message.annotations = {}; + key = reader.string(); + reader.pos++; + message.annotations[key] = reader.string(); + break; + case 5: + message.k8sServiceAccount = reader.string(); + break; + case 6: + reader.skip().pos++; + if (message.environmentVariables === $util.emptyObject) + message.environmentVariables = {}; + key = reader.string(); + reader.pos++; + message.environmentVariables[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionMetadata message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); + if (error) + return "taskExecutionId." + error; + } + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; + } + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + if (!$util.isString(message.k8sServiceAccount)) + return "k8sServiceAccount: string expected"; + if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) { + if (!$util.isObject(message.environmentVariables)) + return "environmentVariables: object expected"; + var key = Object.keys(message.environmentVariables); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.environmentVariables[key[i]])) + return "environmentVariables: string{k:string} expected"; + } + return null; + }; + + return TaskExecutionMetadata; + })(); + + admin.CreateTaskRequest = (function() { + + /** + * Properties of a CreateTaskRequest. + * @memberof flyteidl.admin + * @interface ICreateTaskRequest + * @property {flyteidl.core.ILiteralMap|null} [inputs] CreateTaskRequest inputs + * @property {flyteidl.core.ITaskTemplate|null} [template] CreateTaskRequest template + * @property {string|null} [outputPrefix] CreateTaskRequest outputPrefix + * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateTaskRequest taskExecutionMetadata + */ + + /** + * Constructs a new CreateTaskRequest. + * @memberof flyteidl.admin + * @classdesc Represents a CreateTaskRequest. + * @implements ICreateTaskRequest + * @constructor + * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set + */ + function CreateTaskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateTaskRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.inputs = null; + + /** + * CreateTaskRequest template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.template = null; + + /** + * CreateTaskRequest outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.outputPrefix = ""; + + /** + * CreateTaskRequest taskExecutionMetadata. + * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.taskExecutionMetadata = null; + + /** + * Creates a new CreateTaskRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest instance + */ + CreateTaskRequest.create = function create(properties) { + return new CreateTaskRequest(properties); + }; + + /** + * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {flyteidl.admin.ICreateTaskRequest} message CreateTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) + $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 3: + message.outputPrefix = reader.string(); + break; + case 4: + message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateTaskRequest message. + * @function verify + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { + var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); + if (error) + return "taskExecutionMetadata." + error; + } + return null; + }; + + return CreateTaskRequest; + })(); + + admin.CreateTaskResponse = (function() { + + /** + * Properties of a CreateTaskResponse. + * @memberof flyteidl.admin + * @interface ICreateTaskResponse + * @property {Uint8Array|null} [resourceMeta] CreateTaskResponse resourceMeta + */ + + /** + * Constructs a new CreateTaskResponse. + * @memberof flyteidl.admin + * @classdesc Represents a CreateTaskResponse. + * @implements ICreateTaskResponse + * @constructor + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + */ + function CreateTaskResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateTaskResponse resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.CreateTaskResponse + * @instance + */ + CreateTaskResponse.prototype.resourceMeta = $util.newBuffer([]); + + /** + * Creates a new CreateTaskResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse instance + */ + CreateTaskResponse.create = function create(properties) { + return new CreateTaskResponse(properties); + }; + + /** + * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {flyteidl.admin.ICreateTaskResponse} message CreateTaskResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTaskResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceMeta); + return writer; + }; + + /** + * Decodes a CreateTaskResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTaskResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceMeta = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateTaskResponse message. + * @function verify + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTaskResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + return null; + }; + + return CreateTaskResponse; + })(); + + admin.GetTaskRequest = (function() { + + /** + * Properties of a GetTaskRequest. + * @memberof flyteidl.admin + * @interface IGetTaskRequest + * @property {string|null} [taskType] GetTaskRequest taskType + * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta + */ + + /** + * Constructs a new GetTaskRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskRequest. + * @implements IGetTaskRequest + * @constructor + * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set + */ + function GetTaskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskRequest taskType. + * @member {string} taskType + * @memberof flyteidl.admin.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.taskType = ""; + + /** + * GetTaskRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest instance + */ + GetTaskRequest.create = function create(properties) { + return new GetTaskRequest(properties); + }; + + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {flyteidl.admin.IGetTaskRequest} message GetTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + return writer; + }; + + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskRequest message. + * @function verify + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + return null; + }; + + return GetTaskRequest; + })(); + + admin.GetTaskResponse = (function() { + + /** + * Properties of a GetTaskResponse. + * @memberof flyteidl.admin + * @interface IGetTaskResponse + * @property {flyteidl.admin.IResource|null} [resource] GetTaskResponse resource + */ + + /** + * Constructs a new GetTaskResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskResponse. + * @implements IGetTaskResponse + * @constructor + * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set + */ + function GetTaskResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskResponse resource. + * @member {flyteidl.admin.IResource|null|undefined} resource + * @memberof flyteidl.admin.GetTaskResponse + * @instance + */ + GetTaskResponse.prototype.resource = null; + + /** + * Creates a new GetTaskResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse instance + */ + GetTaskResponse.create = function create(properties) { + return new GetTaskResponse(properties); + }; + + /** + * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {flyteidl.admin.IGetTaskResponse} message GetTaskResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && message.hasOwnProperty("resource")) + $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskResponse message. + * @function verify + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resource != null && message.hasOwnProperty("resource")) { + var error = $root.flyteidl.admin.Resource.verify(message.resource); + if (error) + return "resource." + error; + } + return null; + }; + + return GetTaskResponse; + })(); + + admin.Resource = (function() { + + /** + * Properties of a Resource. + * @memberof flyteidl.admin + * @interface IResource + * @property {flyteidl.admin.State|null} [state] Resource state + * @property {flyteidl.core.ILiteralMap|null} [outputs] Resource outputs + */ + + /** + * Constructs a new Resource. + * @memberof flyteidl.admin + * @classdesc Represents a Resource. + * @implements IResource + * @constructor + * @param {flyteidl.admin.IResource=} [properties] Properties to set + */ + function Resource(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Resource state. + * @member {flyteidl.admin.State} state + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.state = 0; + + /** + * Resource outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.outputs = null; + + /** + * Creates a new Resource instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Resource + * @static + * @param {flyteidl.admin.IResource=} [properties] Properties to set + * @returns {flyteidl.admin.Resource} Resource instance + */ + Resource.create = function create(properties) { + return new Resource(properties); + }; + + /** + * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Resource + * @static + * @param {flyteidl.admin.IResource} message Resource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Resource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Resource message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Resource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Resource} Resource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Resource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Resource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Resource message. + * @function verify + * @memberof flyteidl.admin.Resource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Resource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return Resource; + })(); + + admin.DeleteTaskRequest = (function() { + + /** + * Properties of a DeleteTaskRequest. + * @memberof flyteidl.admin + * @interface IDeleteTaskRequest + * @property {string|null} [taskType] DeleteTaskRequest taskType + * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta + */ + + /** + * Constructs a new DeleteTaskRequest. + * @memberof flyteidl.admin + * @classdesc Represents a DeleteTaskRequest. + * @implements IDeleteTaskRequest + * @constructor + * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set + */ + function DeleteTaskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteTaskRequest taskType. + * @member {string} taskType + * @memberof flyteidl.admin.DeleteTaskRequest + * @instance + */ + DeleteTaskRequest.prototype.taskType = ""; + + /** + * DeleteTaskRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.DeleteTaskRequest + * @instance + */ + DeleteTaskRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * Creates a new DeleteTaskRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest instance + */ + DeleteTaskRequest.create = function create(properties) { + return new DeleteTaskRequest(properties); + }; + + /** + * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {flyteidl.admin.IDeleteTaskRequest} message DeleteTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + return writer; + }; + + /** + * Decodes a DeleteTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DeleteTaskRequest message. + * @function verify + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + return null; + }; + + return DeleteTaskRequest; + })(); + + admin.DeleteTaskResponse = (function() { + + /** + * Properties of a DeleteTaskResponse. + * @memberof flyteidl.admin + * @interface IDeleteTaskResponse + */ + + /** + * Constructs a new DeleteTaskResponse. + * @memberof flyteidl.admin + * @classdesc Represents a DeleteTaskResponse. + * @implements IDeleteTaskResponse + * @constructor + * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set + */ + function DeleteTaskResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new DeleteTaskResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse instance + */ + DeleteTaskResponse.create = function create(properties) { + return new DeleteTaskResponse(properties); + }; + + /** + * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {flyteidl.admin.IDeleteTaskResponse} message DeleteTaskResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTaskResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a DeleteTaskResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteTaskResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DeleteTaskResponse message. + * @function verify + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteTaskResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return DeleteTaskResponse; + })(); + + admin.ClusterAssignment = (function() { + + /** + * Properties of a ClusterAssignment. + * @memberof flyteidl.admin + * @interface IClusterAssignment + * @property {string|null} [clusterPoolName] ClusterAssignment clusterPoolName + */ + + /** + * Constructs a new ClusterAssignment. + * @memberof flyteidl.admin + * @classdesc Represents a ClusterAssignment. + * @implements IClusterAssignment + * @constructor + * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set + */ + function ClusterAssignment(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ClusterAssignment clusterPoolName. + * @member {string} clusterPoolName + * @memberof flyteidl.admin.ClusterAssignment + * @instance + */ + ClusterAssignment.prototype.clusterPoolName = ""; + + /** + * Creates a new ClusterAssignment instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set + * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment instance + */ + ClusterAssignment.create = function create(properties) { + return new ClusterAssignment(properties); + }; + + /** + * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {flyteidl.admin.IClusterAssignment} message ClusterAssignment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClusterAssignment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterPoolName); + return writer; + }; + + /** + * Decodes a ClusterAssignment message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClusterAssignment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterAssignment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: + message.clusterPoolName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ClusterAssignment message. + * @function verify + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClusterAssignment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) + if (!$util.isString(message.clusterPoolName)) + return "clusterPoolName: string expected"; + return null; + }; + + return ClusterAssignment; + })(); + + admin.NamedEntityIdentifier = (function() { + + /** + * Properties of a NamedEntityIdentifier. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifier + * @property {string|null} [project] NamedEntityIdentifier project + * @property {string|null} [domain] NamedEntityIdentifier domain + * @property {string|null} [name] NamedEntityIdentifier name + */ + + /** + * Constructs a new NamedEntityIdentifier. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifier. + * @implements INamedEntityIdentifier + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + */ + function NamedEntityIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifier project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.project = ""; + + /** + * NamedEntityIdentifier domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.domain = ""; + + /** + * NamedEntityIdentifier name. + * @member {string} name + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.name = ""; + + /** + * Creates a new NamedEntityIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier instance + */ + NamedEntityIdentifier.create = function create(properties) { + return new NamedEntityIdentifier(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {flyteidl.admin.INamedEntityIdentifier} message NamedEntityIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifier message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return NamedEntityIdentifier; + })(); + + /** + * NamedEntityState enum. + * @name flyteidl.admin.NamedEntityState + * @enum {string} + * @property {number} NAMED_ENTITY_ACTIVE=0 NAMED_ENTITY_ACTIVE value + * @property {number} NAMED_ENTITY_ARCHIVED=1 NAMED_ENTITY_ARCHIVED value + * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value + */ + admin.NamedEntityState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NAMED_ENTITY_ACTIVE"] = 0; + values[valuesById[1] = "NAMED_ENTITY_ARCHIVED"] = 1; + values[valuesById[2] = "SYSTEM_GENERATED"] = 2; + return values; + })(); + + admin.NamedEntityMetadata = (function() { + + /** + * Properties of a NamedEntityMetadata. + * @memberof flyteidl.admin + * @interface INamedEntityMetadata + * @property {string|null} [description] NamedEntityMetadata description + * @property {flyteidl.admin.NamedEntityState|null} [state] NamedEntityMetadata state + */ + + /** + * Constructs a new NamedEntityMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityMetadata. + * @implements INamedEntityMetadata + * @constructor + * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set + */ + function NamedEntityMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityMetadata description. + * @member {string} description + * @memberof flyteidl.admin.NamedEntityMetadata + * @instance + */ + NamedEntityMetadata.prototype.description = ""; + + /** + * NamedEntityMetadata state. + * @member {flyteidl.admin.NamedEntityState} state + * @memberof flyteidl.admin.NamedEntityMetadata + * @instance + */ + NamedEntityMetadata.prototype.state = 0; + + /** + * Creates a new NamedEntityMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata instance + */ + NamedEntityMetadata.create = function create(properties) { + return new NamedEntityMetadata(properties); + }; + + /** + * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {flyteidl.admin.INamedEntityMetadata} message NamedEntityMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Decodes a NamedEntityMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = reader.string(); + break; + case 2: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityMetadata message. + * @function verify + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + return NamedEntityMetadata; + })(); + + admin.NamedEntity = (function() { + + /** + * Properties of a NamedEntity. + * @memberof flyteidl.admin + * @interface INamedEntity + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntity resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntity id + * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntity metadata + */ + + /** + * Constructs a new NamedEntity. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntity. + * @implements INamedEntity + * @constructor + * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set + */ + function NamedEntity(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntity resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntity + * @instance + */ + NamedEntity.prototype.resourceType = 0; + + /** + * NamedEntity id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.NamedEntity + * @instance + */ + NamedEntity.prototype.id = null; + + /** + * NamedEntity metadata. + * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata + * @memberof flyteidl.admin.NamedEntity + * @instance + */ + NamedEntity.prototype.metadata = null; + + /** + * Creates a new NamedEntity instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntity} NamedEntity instance + */ + NamedEntity.create = function create(properties) { + return new NamedEntity(properties); + }; + + /** + * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {flyteidl.admin.INamedEntity} message NamedEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NamedEntity message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntity} NamedEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntity message. + * @function verify + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return NamedEntity; + })(); + + admin.Sort = (function() { + + /** + * Properties of a Sort. + * @memberof flyteidl.admin + * @interface ISort + * @property {string|null} [key] Sort key + * @property {flyteidl.admin.Sort.Direction|null} [direction] Sort direction + */ + + /** + * Constructs a new Sort. + * @memberof flyteidl.admin + * @classdesc Represents a Sort. + * @implements ISort + * @constructor + * @param {flyteidl.admin.ISort=} [properties] Properties to set + */ + function Sort(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Sort key. + * @member {string} key + * @memberof flyteidl.admin.Sort + * @instance + */ + Sort.prototype.key = ""; + + /** + * Sort direction. + * @member {flyteidl.admin.Sort.Direction} direction + * @memberof flyteidl.admin.Sort + * @instance + */ + Sort.prototype.direction = 0; + + /** + * Creates a new Sort instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Sort + * @static + * @param {flyteidl.admin.ISort=} [properties] Properties to set + * @returns {flyteidl.admin.Sort} Sort instance + */ + Sort.create = function create(properties) { + return new Sort(properties); + }; + + /** + * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Sort + * @static + * @param {flyteidl.admin.ISort} message Sort message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Sort.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.direction != null && message.hasOwnProperty("direction")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.direction); + return writer; + }; + + /** + * Decodes a Sort message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Sort + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Sort} Sort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Sort.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Sort(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.direction = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Sort message. + * @function verify + * @memberof flyteidl.admin.Sort + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Sort.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.direction != null && message.hasOwnProperty("direction")) + switch (message.direction) { + default: + return "direction: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * Direction enum. + * @name flyteidl.admin.Sort.Direction + * @enum {string} + * @property {number} DESCENDING=0 DESCENDING value + * @property {number} ASCENDING=1 ASCENDING value + */ + Sort.Direction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DESCENDING"] = 0; + values[valuesById[1] = "ASCENDING"] = 1; + return values; + })(); + + return Sort; + })(); + + admin.NamedEntityIdentifierListRequest = (function() { + + /** + * Properties of a NamedEntityIdentifierListRequest. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifierListRequest + * @property {string|null} [project] NamedEntityIdentifierListRequest project + * @property {string|null} [domain] NamedEntityIdentifierListRequest domain + * @property {number|null} [limit] NamedEntityIdentifierListRequest limit + * @property {string|null} [token] NamedEntityIdentifierListRequest token + * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityIdentifierListRequest sortBy + * @property {string|null} [filters] NamedEntityIdentifierListRequest filters + */ + + /** + * Constructs a new NamedEntityIdentifierListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifierListRequest. + * @implements INamedEntityIdentifierListRequest + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set + */ + function NamedEntityIdentifierListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifierListRequest project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.project = ""; + + /** + * NamedEntityIdentifierListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.domain = ""; + + /** + * NamedEntityIdentifierListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.limit = 0; + + /** + * NamedEntityIdentifierListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.token = ""; + + /** + * NamedEntityIdentifierListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.sortBy = null; + + /** + * NamedEntityIdentifierListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.filters = ""; + + /** + * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest instance + */ + NamedEntityIdentifierListRequest.create = function create(properties) { + return new NamedEntityIdentifierListRequest(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} message NamedEntityIdentifierListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifierListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.filters); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifierListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.limit = reader.uint32(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 6: + message.filters = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifierListRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifierListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + return null; + }; + + return NamedEntityIdentifierListRequest; + })(); + + admin.NamedEntityListRequest = (function() { + + /** + * Properties of a NamedEntityListRequest. + * @memberof flyteidl.admin + * @interface INamedEntityListRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityListRequest resourceType + * @property {string|null} [project] NamedEntityListRequest project + * @property {string|null} [domain] NamedEntityListRequest domain + * @property {number|null} [limit] NamedEntityListRequest limit + * @property {string|null} [token] NamedEntityListRequest token + * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityListRequest sortBy + * @property {string|null} [filters] NamedEntityListRequest filters + */ + + /** + * Constructs a new NamedEntityListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityListRequest. + * @implements INamedEntityListRequest + * @constructor + * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set + */ + function NamedEntityListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityListRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.resourceType = 0; + + /** + * NamedEntityListRequest project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.project = ""; + + /** + * NamedEntityListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.domain = ""; + + /** + * NamedEntityListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.limit = 0; + + /** + * NamedEntityListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.token = ""; + + /** + * NamedEntityListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.sortBy = null; + + /** + * NamedEntityListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.filters = ""; + + /** + * Creates a new NamedEntityListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest instance + */ + NamedEntityListRequest.create = function create(properties) { + return new NamedEntityListRequest(properties); + }; + + /** + * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {flyteidl.admin.INamedEntityListRequest} message NamedEntityListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.token); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.filters); + return writer; + }; + + /** + * Decodes a NamedEntityListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.domain = reader.string(); + break; + case 4: + message.limit = reader.uint32(); + break; + case 5: + message.token = reader.string(); + break; + case 6: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 7: + message.filters = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityListRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + return null; + }; + + return NamedEntityListRequest; + })(); + + admin.NamedEntityIdentifierList = (function() { + + /** + * Properties of a NamedEntityIdentifierList. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifierList + * @property {Array.|null} [entities] NamedEntityIdentifierList entities + * @property {string|null} [token] NamedEntityIdentifierList token + */ + + /** + * Constructs a new NamedEntityIdentifierList. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifierList. + * @implements INamedEntityIdentifierList + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + */ + function NamedEntityIdentifierList(properties) { + this.entities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifierList entities. + * @member {Array.} entities + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @instance + */ + NamedEntityIdentifierList.prototype.entities = $util.emptyArray; + + /** + * NamedEntityIdentifierList token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @instance + */ + NamedEntityIdentifierList.prototype.token = ""; + + /** + * Creates a new NamedEntityIdentifierList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList instance + */ + NamedEntityIdentifierList.create = function create(properties) { + return new NamedEntityIdentifierList(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {flyteidl.admin.INamedEntityIdentifierList} message NamedEntityIdentifierList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifierList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifierList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifierList message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifierList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NamedEntityIdentifierList; + })(); + + admin.NamedEntityList = (function() { + + /** + * Properties of a NamedEntityList. + * @memberof flyteidl.admin + * @interface INamedEntityList + * @property {Array.|null} [entities] NamedEntityList entities + * @property {string|null} [token] NamedEntityList token + */ + + /** + * Constructs a new NamedEntityList. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityList. + * @implements INamedEntityList + * @constructor + * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set + */ + function NamedEntityList(properties) { + this.entities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityList entities. + * @member {Array.} entities + * @memberof flyteidl.admin.NamedEntityList + * @instance + */ + NamedEntityList.prototype.entities = $util.emptyArray; + + /** + * NamedEntityList token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityList + * @instance + */ + NamedEntityList.prototype.token = ""; + + /** + * Creates a new NamedEntityList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityList} NamedEntityList instance + */ + NamedEntityList.create = function create(properties) { + return new NamedEntityList(properties); + }; + + /** + * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {flyteidl.admin.INamedEntityList} message NamedEntityList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.flyteidl.admin.NamedEntity.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NamedEntityList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityList} NamedEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.flyteidl.admin.NamedEntity.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityList message. + * @function verify + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.flyteidl.admin.NamedEntity.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NamedEntityList; + })(); + + admin.NamedEntityGetRequest = (function() { + + /** + * Properties of a NamedEntityGetRequest. + * @memberof flyteidl.admin + * @interface INamedEntityGetRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityGetRequest resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityGetRequest id + */ + + /** + * Constructs a new NamedEntityGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityGetRequest. + * @implements INamedEntityGetRequest + * @constructor + * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set + */ + function NamedEntityGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityGetRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityGetRequest + * @instance + */ + NamedEntityGetRequest.prototype.resourceType = 0; + + /** + * NamedEntityGetRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.NamedEntityGetRequest + * @instance + */ + NamedEntityGetRequest.prototype.id = null; + + /** + * Creates a new NamedEntityGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest instance + */ + NamedEntityGetRequest.create = function create(properties) { + return new NamedEntityGetRequest(properties); + }; + + /** + * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {flyteidl.admin.INamedEntityGetRequest} message NamedEntityGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NamedEntityGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityGetRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NamedEntityGetRequest; + })(); + + admin.NamedEntityUpdateRequest = (function() { + + /** + * Properties of a NamedEntityUpdateRequest. + * @memberof flyteidl.admin + * @interface INamedEntityUpdateRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityUpdateRequest resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityUpdateRequest id + * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntityUpdateRequest metadata + */ + + /** + * Constructs a new NamedEntityUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityUpdateRequest. + * @implements INamedEntityUpdateRequest + * @constructor + * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set + */ + function NamedEntityUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityUpdateRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @instance + */ + NamedEntityUpdateRequest.prototype.resourceType = 0; + + /** + * NamedEntityUpdateRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @instance + */ + NamedEntityUpdateRequest.prototype.id = null; + + /** + * NamedEntityUpdateRequest metadata. + * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @instance + */ + NamedEntityUpdateRequest.prototype.metadata = null; + + /** + * Creates a new NamedEntityUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest instance + */ + NamedEntityUpdateRequest.create = function create(properties) { + return new NamedEntityUpdateRequest(properties); + }; + + /** + * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {flyteidl.admin.INamedEntityUpdateRequest} message NamedEntityUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return NamedEntityUpdateRequest; + })(); + + admin.NamedEntityUpdateResponse = (function() { + + /** + * Properties of a NamedEntityUpdateResponse. + * @memberof flyteidl.admin + * @interface INamedEntityUpdateResponse + */ + + /** + * Constructs a new NamedEntityUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityUpdateResponse. + * @implements INamedEntityUpdateResponse + * @constructor + * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set + */ + function NamedEntityUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NamedEntityUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse instance + */ + NamedEntityUpdateResponse.create = function create(properties) { + return new NamedEntityUpdateResponse(properties); + }; + + /** + * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {flyteidl.admin.INamedEntityUpdateResponse} message NamedEntityUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return NamedEntityUpdateResponse; + })(); + + admin.ObjectGetRequest = (function() { + + /** + * Properties of an ObjectGetRequest. + * @memberof flyteidl.admin + * @interface IObjectGetRequest + * @property {flyteidl.core.IIdentifier|null} [id] ObjectGetRequest id + */ + + /** + * Constructs a new ObjectGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ObjectGetRequest. + * @implements IObjectGetRequest + * @constructor + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + */ + function ObjectGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ObjectGetRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.ObjectGetRequest + * @instance + */ + ObjectGetRequest.prototype.id = null; + + /** + * Creates a new ObjectGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest instance + */ + ObjectGetRequest.create = function create(properties) { + return new ObjectGetRequest(properties); + }; + + /** + * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {flyteidl.admin.IObjectGetRequest} message ObjectGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ObjectGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ObjectGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ObjectGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ObjectGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ObjectGetRequest message. + * @function verify + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ObjectGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ObjectGetRequest; + })(); + + admin.ResourceListRequest = (function() { + + /** + * Properties of a ResourceListRequest. + * @memberof flyteidl.admin + * @interface IResourceListRequest + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ResourceListRequest id + * @property {number|null} [limit] ResourceListRequest limit + * @property {string|null} [token] ResourceListRequest token + * @property {string|null} [filters] ResourceListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] ResourceListRequest sortBy + */ + + /** + * Constructs a new ResourceListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ResourceListRequest. + * @implements IResourceListRequest + * @constructor + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + */ + function ResourceListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceListRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.id = null; + + /** + * ResourceListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.limit = 0; + + /** + * ResourceListRequest token. + * @member {string} token + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.token = ""; + + /** + * ResourceListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.filters = ""; + + /** + * ResourceListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.sortBy = null; + + /** + * Creates a new ResourceListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest instance + */ + ResourceListRequest.create = function create(properties) { + return new ResourceListRequest(properties); + }; + + /** + * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {flyteidl.admin.IResourceListRequest} message ResourceListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ResourceListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ResourceListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourceListRequest message. + * @function verify + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return ResourceListRequest; + })(); + + admin.EmailNotification = (function() { + + /** + * Properties of an EmailNotification. + * @memberof flyteidl.admin + * @interface IEmailNotification + * @property {Array.|null} [recipientsEmail] EmailNotification recipientsEmail + */ + + /** + * Constructs a new EmailNotification. + * @memberof flyteidl.admin + * @classdesc Represents an EmailNotification. + * @implements IEmailNotification + * @constructor + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + */ + function EmailNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EmailNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.EmailNotification + * @instance + */ + EmailNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new EmailNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + * @returns {flyteidl.admin.EmailNotification} EmailNotification instance + */ + EmailNotification.create = function create(properties) { + return new EmailNotification(properties); + }; + + /** + * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {flyteidl.admin.IEmailNotification} message EmailNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes an EmailNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EmailNotification} EmailNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EmailNotification message. + * @function verify + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return EmailNotification; + })(); + + admin.PagerDutyNotification = (function() { + + /** + * Properties of a PagerDutyNotification. + * @memberof flyteidl.admin + * @interface IPagerDutyNotification + * @property {Array.|null} [recipientsEmail] PagerDutyNotification recipientsEmail + */ + + /** + * Constructs a new PagerDutyNotification. + * @memberof flyteidl.admin + * @classdesc Represents a PagerDutyNotification. + * @implements IPagerDutyNotification + * @constructor + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + */ + function PagerDutyNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PagerDutyNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.PagerDutyNotification + * @instance + */ + PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new PagerDutyNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification instance + */ + PagerDutyNotification.create = function create(properties) { + return new PagerDutyNotification(properties); + }; + + /** + * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {flyteidl.admin.IPagerDutyNotification} message PagerDutyNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PagerDutyNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes a PagerDutyNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PagerDutyNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PagerDutyNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PagerDutyNotification message. + * @function verify + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PagerDutyNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return PagerDutyNotification; + })(); + + admin.SlackNotification = (function() { + + /** + * Properties of a SlackNotification. + * @memberof flyteidl.admin + * @interface ISlackNotification + * @property {Array.|null} [recipientsEmail] SlackNotification recipientsEmail + */ + + /** + * Constructs a new SlackNotification. + * @memberof flyteidl.admin + * @classdesc Represents a SlackNotification. + * @implements ISlackNotification + * @constructor + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + */ + function SlackNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SlackNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.SlackNotification + * @instance + */ + SlackNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new SlackNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + * @returns {flyteidl.admin.SlackNotification} SlackNotification instance + */ + SlackNotification.create = function create(properties) { + return new SlackNotification(properties); + }; + + /** + * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {flyteidl.admin.ISlackNotification} message SlackNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SlackNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes a SlackNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SlackNotification} SlackNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SlackNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SlackNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SlackNotification message. + * @function verify + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SlackNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return SlackNotification; + })(); + + admin.Notification = (function() { + + /** + * Properties of a Notification. + * @memberof flyteidl.admin + * @interface INotification + * @property {Array.|null} [phases] Notification phases + * @property {flyteidl.admin.IEmailNotification|null} [email] Notification email + * @property {flyteidl.admin.IPagerDutyNotification|null} [pagerDuty] Notification pagerDuty + * @property {flyteidl.admin.ISlackNotification|null} [slack] Notification slack + */ + + /** + * Constructs a new Notification. + * @memberof flyteidl.admin + * @classdesc Represents a Notification. + * @implements INotification + * @constructor + * @param {flyteidl.admin.INotification=} [properties] Properties to set + */ + function Notification(properties) { + this.phases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Notification phases. + * @member {Array.} phases + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.phases = $util.emptyArray; + + /** + * Notification email. + * @member {flyteidl.admin.IEmailNotification|null|undefined} email + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.email = null; + + /** + * Notification pagerDuty. + * @member {flyteidl.admin.IPagerDutyNotification|null|undefined} pagerDuty + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.pagerDuty = null; + + /** + * Notification slack. + * @member {flyteidl.admin.ISlackNotification|null|undefined} slack + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.slack = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Notification type. + * @member {"email"|"pagerDuty"|"slack"|undefined} type + * @memberof flyteidl.admin.Notification + * @instance + */ + Object.defineProperty(Notification.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["email", "pagerDuty", "slack"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Notification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Notification + * @static + * @param {flyteidl.admin.INotification=} [properties] Properties to set + * @returns {flyteidl.admin.Notification} Notification instance + */ + Notification.create = function create(properties) { + return new Notification(properties); + }; + + /** + * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Notification + * @static + * @param {flyteidl.admin.INotification} message Notification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Notification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.phases != null && message.phases.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.phases.length; ++i) + writer.int32(message.phases[i]); + writer.ldelim(); + } + if (message.email != null && message.hasOwnProperty("email")) + $root.flyteidl.admin.EmailNotification.encode(message.email, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) + $root.flyteidl.admin.PagerDutyNotification.encode(message.pagerDuty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.slack != null && message.hasOwnProperty("slack")) + $root.flyteidl.admin.SlackNotification.encode(message.slack, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Notification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Notification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Notification} Notification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Notification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Notification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.phases && message.phases.length)) + message.phases = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.phases.push(reader.int32()); + } else + message.phases.push(reader.int32()); + break; + case 2: + message.email = $root.flyteidl.admin.EmailNotification.decode(reader, reader.uint32()); + break; + case 3: + message.pagerDuty = $root.flyteidl.admin.PagerDutyNotification.decode(reader, reader.uint32()); + break; + case 4: + message.slack = $root.flyteidl.admin.SlackNotification.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Notification message. + * @function verify + * @memberof flyteidl.admin.Notification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Notification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.phases != null && message.hasOwnProperty("phases")) { + if (!Array.isArray(message.phases)) + return "phases: array expected"; + for (var i = 0; i < message.phases.length; ++i) + switch (message.phases[i]) { + default: + return "phases: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.email != null && message.hasOwnProperty("email")) { + properties.type = 1; + { + var error = $root.flyteidl.admin.EmailNotification.verify(message.email); + if (error) + return "email." + error; + } + } + if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.admin.PagerDutyNotification.verify(message.pagerDuty); + if (error) + return "pagerDuty." + error; + } + } + if (message.slack != null && message.hasOwnProperty("slack")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.admin.SlackNotification.verify(message.slack); + if (error) + return "slack." + error; + } + } + return null; + }; + + return Notification; + })(); + + admin.UrlBlob = (function() { + + /** + * Properties of an UrlBlob. + * @memberof flyteidl.admin + * @interface IUrlBlob + * @property {string|null} [url] UrlBlob url + * @property {Long|null} [bytes] UrlBlob bytes + */ + + /** + * Constructs a new UrlBlob. + * @memberof flyteidl.admin + * @classdesc Represents an UrlBlob. + * @implements IUrlBlob + * @constructor + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + */ + function UrlBlob(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UrlBlob url. + * @member {string} url + * @memberof flyteidl.admin.UrlBlob + * @instance + */ + UrlBlob.prototype.url = ""; + + /** + * UrlBlob bytes. + * @member {Long} bytes + * @memberof flyteidl.admin.UrlBlob + * @instance + */ + UrlBlob.prototype.bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new UrlBlob instance using the specified properties. + * @function create + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + * @returns {flyteidl.admin.UrlBlob} UrlBlob instance + */ + UrlBlob.create = function create(properties) { + return new UrlBlob(properties); + }; + + /** + * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {flyteidl.admin.IUrlBlob} message UrlBlob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlBlob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.url != null && message.hasOwnProperty("url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); + if (message.bytes != null && message.hasOwnProperty("bytes")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.bytes); + return writer; + }; + + /** + * Decodes an UrlBlob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.UrlBlob} UrlBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlBlob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.UrlBlob(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.url = reader.string(); + break; + case 2: + message.bytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UrlBlob message. + * @function verify + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UrlBlob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.url != null && message.hasOwnProperty("url")) + if (!$util.isString(message.url)) + return "url: string expected"; + if (message.bytes != null && message.hasOwnProperty("bytes")) + if (!$util.isInteger(message.bytes) && !(message.bytes && $util.isInteger(message.bytes.low) && $util.isInteger(message.bytes.high))) + return "bytes: integer|Long expected"; + return null; + }; + + return UrlBlob; + })(); + + admin.Labels = (function() { + + /** + * Properties of a Labels. + * @memberof flyteidl.admin + * @interface ILabels + * @property {Object.|null} [values] Labels values + */ + + /** + * Constructs a new Labels. + * @memberof flyteidl.admin + * @classdesc Represents a Labels. + * @implements ILabels + * @constructor + * @param {flyteidl.admin.ILabels=} [properties] Properties to set + */ + function Labels(properties) { + this.values = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Labels values. + * @member {Object.} values + * @memberof flyteidl.admin.Labels + * @instance + */ + Labels.prototype.values = $util.emptyObject; + + /** + * Creates a new Labels instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Labels + * @static + * @param {flyteidl.admin.ILabels=} [properties] Properties to set + * @returns {flyteidl.admin.Labels} Labels instance + */ + Labels.create = function create(properties) { + return new Labels(properties); + }; + + /** + * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Labels + * @static + * @param {flyteidl.admin.ILabels} message Labels message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Labels.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a Labels message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Labels + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Labels} Labels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Labels.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Labels(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.values === $util.emptyObject) + message.values = {}; + key = reader.string(); + reader.pos++; + message.values[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Labels message. + * @function verify + * @memberof flyteidl.admin.Labels + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Labels.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!$util.isObject(message.values)) + return "values: object expected"; + var key = Object.keys(message.values); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.values[key[i]])) + return "values: string{k:string} expected"; + } + return null; + }; + + return Labels; + })(); + + admin.Annotations = (function() { + + /** + * Properties of an Annotations. + * @memberof flyteidl.admin + * @interface IAnnotations + * @property {Object.|null} [values] Annotations values + */ + + /** + * Constructs a new Annotations. + * @memberof flyteidl.admin + * @classdesc Represents an Annotations. + * @implements IAnnotations + * @constructor + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + */ + function Annotations(properties) { + this.values = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotations values. + * @member {Object.} values + * @memberof flyteidl.admin.Annotations + * @instance + */ + Annotations.prototype.values = $util.emptyObject; + + /** + * Creates a new Annotations instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Annotations + * @static + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + * @returns {flyteidl.admin.Annotations} Annotations instance + */ + Annotations.create = function create(properties) { + return new Annotations(properties); + }; + + /** + * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Annotations + * @static + * @param {flyteidl.admin.IAnnotations} message Annotations message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotations.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes an Annotations message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Annotations + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Annotations} Annotations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotations.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Annotations(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.values === $util.emptyObject) + message.values = {}; + key = reader.string(); + reader.pos++; + message.values[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Annotations message. + * @function verify + * @memberof flyteidl.admin.Annotations + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotations.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!$util.isObject(message.values)) + return "values: object expected"; + var key = Object.keys(message.values); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.values[key[i]])) + return "values: string{k:string} expected"; + } + return null; + }; + + return Annotations; + })(); + + admin.Envs = (function() { + + /** + * Properties of an Envs. + * @memberof flyteidl.admin + * @interface IEnvs + * @property {Array.|null} [values] Envs values + */ + + /** + * Constructs a new Envs. + * @memberof flyteidl.admin + * @classdesc Represents an Envs. + * @implements IEnvs + * @constructor + * @param {flyteidl.admin.IEnvs=} [properties] Properties to set + */ + function Envs(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Envs values. + * @member {Array.} values + * @memberof flyteidl.admin.Envs + * @instance + */ + Envs.prototype.values = $util.emptyArray; + + /** + * Creates a new Envs instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Envs + * @static + * @param {flyteidl.admin.IEnvs=} [properties] Properties to set + * @returns {flyteidl.admin.Envs} Envs instance + */ + Envs.create = function create(properties) { + return new Envs(properties); + }; + + /** + * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Envs + * @static + * @param {flyteidl.admin.IEnvs} message Envs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Envs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Envs message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Envs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Envs} Envs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Envs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Envs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Envs message. + * @function verify + * @memberof flyteidl.admin.Envs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Envs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.flyteidl.core.KeyValuePair.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + return Envs; + })(); + + admin.AuthRole = (function() { + + /** + * Properties of an AuthRole. + * @memberof flyteidl.admin + * @interface IAuthRole + * @property {string|null} [assumableIamRole] AuthRole assumableIamRole + * @property {string|null} [kubernetesServiceAccount] AuthRole kubernetesServiceAccount + */ + + /** + * Constructs a new AuthRole. + * @memberof flyteidl.admin + * @classdesc Represents an AuthRole. + * @implements IAuthRole + * @constructor + * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set + */ + function AuthRole(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuthRole assumableIamRole. + * @member {string} assumableIamRole + * @memberof flyteidl.admin.AuthRole + * @instance + */ + AuthRole.prototype.assumableIamRole = ""; + + /** + * AuthRole kubernetesServiceAccount. + * @member {string} kubernetesServiceAccount + * @memberof flyteidl.admin.AuthRole + * @instance + */ + AuthRole.prototype.kubernetesServiceAccount = ""; + + /** + * Creates a new AuthRole instance using the specified properties. + * @function create + * @memberof flyteidl.admin.AuthRole + * @static + * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set + * @returns {flyteidl.admin.AuthRole} AuthRole instance + */ + AuthRole.create = function create(properties) { + return new AuthRole(properties); + }; + + /** + * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.AuthRole + * @static + * @param {flyteidl.admin.IAuthRole} message AuthRole message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuthRole.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); + return writer; + }; + + /** + * Decodes an AuthRole message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.AuthRole + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.AuthRole} AuthRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuthRole.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AuthRole(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.assumableIamRole = reader.string(); + break; + case 2: + message.kubernetesServiceAccount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an AuthRole message. + * @function verify + * @memberof flyteidl.admin.AuthRole + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuthRole.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + if (!$util.isString(message.assumableIamRole)) + return "assumableIamRole: string expected"; + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + if (!$util.isString(message.kubernetesServiceAccount)) + return "kubernetesServiceAccount: string expected"; + return null; + }; + + return AuthRole; + })(); + + admin.RawOutputDataConfig = (function() { + + /** + * Properties of a RawOutputDataConfig. + * @memberof flyteidl.admin + * @interface IRawOutputDataConfig + * @property {string|null} [outputLocationPrefix] RawOutputDataConfig outputLocationPrefix + */ + + /** + * Constructs a new RawOutputDataConfig. + * @memberof flyteidl.admin + * @classdesc Represents a RawOutputDataConfig. + * @implements IRawOutputDataConfig + * @constructor + * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set + */ + function RawOutputDataConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RawOutputDataConfig outputLocationPrefix. + * @member {string} outputLocationPrefix + * @memberof flyteidl.admin.RawOutputDataConfig + * @instance + */ + RawOutputDataConfig.prototype.outputLocationPrefix = ""; + + /** + * Creates a new RawOutputDataConfig instance using the specified properties. + * @function create + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set + * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig instance + */ + RawOutputDataConfig.create = function create(properties) { + return new RawOutputDataConfig(properties); + }; + + /** + * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {flyteidl.admin.IRawOutputDataConfig} message RawOutputDataConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RawOutputDataConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputLocationPrefix); + return writer; + }; + + /** + * Decodes a RawOutputDataConfig message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RawOutputDataConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.RawOutputDataConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputLocationPrefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RawOutputDataConfig message. + * @function verify + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RawOutputDataConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) + if (!$util.isString(message.outputLocationPrefix)) + return "outputLocationPrefix: string expected"; + return null; + }; + + return RawOutputDataConfig; + })(); + + admin.FlyteURLs = (function() { + + /** + * Properties of a FlyteURLs. + * @memberof flyteidl.admin + * @interface IFlyteURLs + * @property {string|null} [inputs] FlyteURLs inputs + * @property {string|null} [outputs] FlyteURLs outputs + * @property {string|null} [deck] FlyteURLs deck + */ + + /** + * Constructs a new FlyteURLs. + * @memberof flyteidl.admin + * @classdesc Represents a FlyteURLs. + * @implements IFlyteURLs + * @constructor + * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set + */ + function FlyteURLs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FlyteURLs inputs. + * @member {string} inputs + * @memberof flyteidl.admin.FlyteURLs + * @instance + */ + FlyteURLs.prototype.inputs = ""; + + /** + * FlyteURLs outputs. + * @member {string} outputs + * @memberof flyteidl.admin.FlyteURLs + * @instance + */ + FlyteURLs.prototype.outputs = ""; + + /** + * FlyteURLs deck. + * @member {string} deck + * @memberof flyteidl.admin.FlyteURLs + * @instance + */ + FlyteURLs.prototype.deck = ""; + + /** + * Creates a new FlyteURLs instance using the specified properties. + * @function create + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set + * @returns {flyteidl.admin.FlyteURLs} FlyteURLs instance + */ + FlyteURLs.create = function create(properties) { + return new FlyteURLs(properties); + }; + + /** + * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {flyteidl.admin.IFlyteURLs} message FlyteURLs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FlyteURLs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputs); + if (message.outputs != null && message.hasOwnProperty("outputs")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.outputs); + if (message.deck != null && message.hasOwnProperty("deck")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deck); + return writer; + }; + + /** + * Decodes a FlyteURLs message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.FlyteURLs} FlyteURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FlyteURLs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FlyteURLs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = reader.string(); + break; + case 2: + message.outputs = reader.string(); + break; + case 3: + message.deck = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FlyteURLs message. + * @function verify + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FlyteURLs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) + if (!$util.isString(message.inputs)) + return "inputs: string expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) + if (!$util.isString(message.outputs)) + return "outputs: string expected"; + if (message.deck != null && message.hasOwnProperty("deck")) + if (!$util.isString(message.deck)) + return "deck: string expected"; + return null; + }; + + return FlyteURLs; + })(); + + admin.DescriptionEntity = (function() { + + /** + * Properties of a DescriptionEntity. + * @memberof flyteidl.admin + * @interface IDescriptionEntity + * @property {flyteidl.core.IIdentifier|null} [id] DescriptionEntity id + * @property {string|null} [shortDescription] DescriptionEntity shortDescription + * @property {flyteidl.admin.IDescription|null} [longDescription] DescriptionEntity longDescription + * @property {flyteidl.admin.ISourceCode|null} [sourceCode] DescriptionEntity sourceCode + * @property {Array.|null} [tags] DescriptionEntity tags + */ + + /** + * Constructs a new DescriptionEntity. + * @memberof flyteidl.admin + * @classdesc Represents a DescriptionEntity. + * @implements IDescriptionEntity + * @constructor + * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set + */ + function DescriptionEntity(properties) { + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptionEntity id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.id = null; + + /** + * DescriptionEntity shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.shortDescription = ""; + + /** + * DescriptionEntity longDescription. + * @member {flyteidl.admin.IDescription|null|undefined} longDescription + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.longDescription = null; + + /** + * DescriptionEntity sourceCode. + * @member {flyteidl.admin.ISourceCode|null|undefined} sourceCode + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.sourceCode = null; + + /** + * DescriptionEntity tags. + * @member {Array.} tags + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.tags = $util.emptyArray; + + /** + * Creates a new DescriptionEntity instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity instance + */ + DescriptionEntity.create = function create(properties) { + return new DescriptionEntity(properties); + }; + + /** + * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {flyteidl.admin.IDescriptionEntity} message DescriptionEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptionEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shortDescription); + if (message.longDescription != null && message.hasOwnProperty("longDescription")) + $root.flyteidl.admin.Description.encode(message.longDescription, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) + $root.flyteidl.admin.SourceCode.encode(message.sourceCode, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tags[i]); + return writer; + }; + + /** + * Decodes a DescriptionEntity message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptionEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.shortDescription = reader.string(); + break; + case 3: + message.longDescription = $root.flyteidl.admin.Description.decode(reader, reader.uint32()); + break; + case 4: + message.sourceCode = $root.flyteidl.admin.SourceCode.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptionEntity message. + * @function verify + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptionEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + if (!$util.isString(message.shortDescription)) + return "shortDescription: string expected"; + if (message.longDescription != null && message.hasOwnProperty("longDescription")) { + var error = $root.flyteidl.admin.Description.verify(message.longDescription); + if (error) + return "longDescription." + error; + } + if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) { + var error = $root.flyteidl.admin.SourceCode.verify(message.sourceCode); + if (error) + return "sourceCode." + error; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + return DescriptionEntity; + })(); + + /** + * DescriptionFormat enum. + * @name flyteidl.admin.DescriptionFormat + * @enum {string} + * @property {number} DESCRIPTION_FORMAT_UNKNOWN=0 DESCRIPTION_FORMAT_UNKNOWN value + * @property {number} DESCRIPTION_FORMAT_MARKDOWN=1 DESCRIPTION_FORMAT_MARKDOWN value + * @property {number} DESCRIPTION_FORMAT_HTML=2 DESCRIPTION_FORMAT_HTML value + * @property {number} DESCRIPTION_FORMAT_RST=3 DESCRIPTION_FORMAT_RST value + */ + admin.DescriptionFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DESCRIPTION_FORMAT_UNKNOWN"] = 0; + values[valuesById[1] = "DESCRIPTION_FORMAT_MARKDOWN"] = 1; + values[valuesById[2] = "DESCRIPTION_FORMAT_HTML"] = 2; + values[valuesById[3] = "DESCRIPTION_FORMAT_RST"] = 3; + return values; + })(); + + admin.Description = (function() { + + /** + * Properties of a Description. + * @memberof flyteidl.admin + * @interface IDescription + * @property {string|null} [value] Description value + * @property {string|null} [uri] Description uri + * @property {flyteidl.admin.DescriptionFormat|null} [format] Description format + * @property {string|null} [iconLink] Description iconLink + */ + + /** + * Constructs a new Description. + * @memberof flyteidl.admin + * @classdesc Represents a Description. + * @implements IDescription + * @constructor + * @param {flyteidl.admin.IDescription=} [properties] Properties to set + */ + function Description(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Description value. + * @member {string} value + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.value = ""; + + /** + * Description uri. + * @member {string} uri + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.uri = ""; + + /** + * Description format. + * @member {flyteidl.admin.DescriptionFormat} format + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.format = 0; + + /** + * Description iconLink. + * @member {string} iconLink + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.iconLink = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Description content. + * @member {"value"|"uri"|undefined} content + * @memberof flyteidl.admin.Description + * @instance + */ + Object.defineProperty(Description.prototype, "content", { + get: $util.oneOfGetter($oneOfFields = ["value", "uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Description instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Description + * @static + * @param {flyteidl.admin.IDescription=} [properties] Properties to set + * @returns {flyteidl.admin.Description} Description instance + */ + Description.create = function create(properties) { + return new Description(properties); + }; + + /** + * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Description + * @static + * @param {flyteidl.admin.IDescription} message Description message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Description.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.format); + if (message.iconLink != null && message.hasOwnProperty("iconLink")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.iconLink); + return writer; + }; + + /** + * Decodes a Description message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Description + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Description} Description + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Description.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Description(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + case 2: + message.uri = reader.string(); + break; + case 3: + message.format = reader.int32(); + break; + case 4: + message.iconLink = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Description message. + * @function verify + * @memberof flyteidl.admin.Description + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Description.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.content = 1; + if (!$util.isString(message.value)) + return "value: string expected"; + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.content === 1) + return "content: multiple values"; + properties.content = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.iconLink != null && message.hasOwnProperty("iconLink")) + if (!$util.isString(message.iconLink)) + return "iconLink: string expected"; + return null; + }; + + return Description; + })(); + + admin.SourceCode = (function() { + + /** + * Properties of a SourceCode. + * @memberof flyteidl.admin + * @interface ISourceCode + * @property {string|null} [link] SourceCode link + */ + + /** + * Constructs a new SourceCode. + * @memberof flyteidl.admin + * @classdesc Represents a SourceCode. + * @implements ISourceCode + * @constructor + * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set + */ + function SourceCode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceCode link. + * @member {string} link + * @memberof flyteidl.admin.SourceCode + * @instance + */ + SourceCode.prototype.link = ""; + + /** + * Creates a new SourceCode instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SourceCode + * @static + * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set + * @returns {flyteidl.admin.SourceCode} SourceCode instance + */ + SourceCode.create = function create(properties) { + return new SourceCode(properties); + }; + + /** + * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SourceCode + * @static + * @param {flyteidl.admin.ISourceCode} message SourceCode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.link != null && message.hasOwnProperty("link")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); + return writer; + }; + + /** + * Decodes a SourceCode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SourceCode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SourceCode} SourceCode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SourceCode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.link = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SourceCode message. + * @function verify + * @memberof flyteidl.admin.SourceCode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.link != null && message.hasOwnProperty("link")) + if (!$util.isString(message.link)) + return "link: string expected"; + return null; + }; + + return SourceCode; + })(); + + admin.DescriptionEntityList = (function() { + + /** + * Properties of a DescriptionEntityList. + * @memberof flyteidl.admin + * @interface IDescriptionEntityList + * @property {Array.|null} [descriptionEntities] DescriptionEntityList descriptionEntities + * @property {string|null} [token] DescriptionEntityList token + */ + + /** + * Constructs a new DescriptionEntityList. + * @memberof flyteidl.admin + * @classdesc Represents a DescriptionEntityList. + * @implements IDescriptionEntityList + * @constructor + * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set + */ + function DescriptionEntityList(properties) { + this.descriptionEntities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptionEntityList descriptionEntities. + * @member {Array.} descriptionEntities + * @memberof flyteidl.admin.DescriptionEntityList + * @instance + */ + DescriptionEntityList.prototype.descriptionEntities = $util.emptyArray; + + /** + * DescriptionEntityList token. + * @member {string} token + * @memberof flyteidl.admin.DescriptionEntityList + * @instance + */ + DescriptionEntityList.prototype.token = ""; + + /** + * Creates a new DescriptionEntityList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList instance + */ + DescriptionEntityList.create = function create(properties) { + return new DescriptionEntityList(properties); + }; + + /** + * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {flyteidl.admin.IDescriptionEntityList} message DescriptionEntityList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptionEntityList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.descriptionEntities != null && message.descriptionEntities.length) + for (var i = 0; i < message.descriptionEntities.length; ++i) + $root.flyteidl.admin.DescriptionEntity.encode(message.descriptionEntities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a DescriptionEntityList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptionEntityList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.descriptionEntities && message.descriptionEntities.length)) + message.descriptionEntities = []; + message.descriptionEntities.push($root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptionEntityList message. + * @function verify + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptionEntityList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.descriptionEntities != null && message.hasOwnProperty("descriptionEntities")) { + if (!Array.isArray(message.descriptionEntities)) + return "descriptionEntities: array expected"; + for (var i = 0; i < message.descriptionEntities.length; ++i) { + var error = $root.flyteidl.admin.DescriptionEntity.verify(message.descriptionEntities[i]); + if (error) + return "descriptionEntities." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return DescriptionEntityList; + })(); + + admin.DescriptionEntityListRequest = (function() { + + /** + * Properties of a DescriptionEntityListRequest. + * @memberof flyteidl.admin + * @interface IDescriptionEntityListRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] DescriptionEntityListRequest resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] DescriptionEntityListRequest id + * @property {number|null} [limit] DescriptionEntityListRequest limit + * @property {string|null} [token] DescriptionEntityListRequest token + * @property {string|null} [filters] DescriptionEntityListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] DescriptionEntityListRequest sortBy + */ + + /** + * Constructs a new DescriptionEntityListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a DescriptionEntityListRequest. + * @implements IDescriptionEntityListRequest + * @constructor + * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set + */ + function DescriptionEntityListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptionEntityListRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.resourceType = 0; + + /** + * DescriptionEntityListRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.id = null; + + /** + * DescriptionEntityListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.limit = 0; + + /** + * DescriptionEntityListRequest token. + * @member {string} token + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.token = ""; + + /** + * DescriptionEntityListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.filters = ""; + + /** + * DescriptionEntityListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.sortBy = null; + + /** + * Creates a new DescriptionEntityListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest instance + */ + DescriptionEntityListRequest.create = function create(properties) { + return new DescriptionEntityListRequest(properties); + }; + + /** + * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {flyteidl.admin.IDescriptionEntityListRequest} message DescriptionEntityListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptionEntityListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptionEntityListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.limit = reader.uint32(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.filters = reader.string(); + break; + case 6: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptionEntityListRequest message. + * @function verify + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptionEntityListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return DescriptionEntityListRequest; + })(); + + admin.EventErrorAlreadyInTerminalState = (function() { + + /** + * Properties of an EventErrorAlreadyInTerminalState. + * @memberof flyteidl.admin + * @interface IEventErrorAlreadyInTerminalState + * @property {string|null} [currentPhase] EventErrorAlreadyInTerminalState currentPhase + */ + + /** + * Constructs a new EventErrorAlreadyInTerminalState. + * @memberof flyteidl.admin + * @classdesc Represents an EventErrorAlreadyInTerminalState. + * @implements IEventErrorAlreadyInTerminalState + * @constructor + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + */ + function EventErrorAlreadyInTerminalState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventErrorAlreadyInTerminalState currentPhase. + * @member {string} currentPhase + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @instance + */ + EventErrorAlreadyInTerminalState.prototype.currentPhase = ""; + + /** + * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState instance + */ + EventErrorAlreadyInTerminalState.create = function create(properties) { + return new EventErrorAlreadyInTerminalState(properties); + }; + + /** + * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState} message EventErrorAlreadyInTerminalState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventErrorAlreadyInTerminalState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPhase); + return writer; + }; + + /** + * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventErrorAlreadyInTerminalState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorAlreadyInTerminalState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.currentPhase = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventErrorAlreadyInTerminalState message. + * @function verify + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventErrorAlreadyInTerminalState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + if (!$util.isString(message.currentPhase)) + return "currentPhase: string expected"; + return null; + }; + + return EventErrorAlreadyInTerminalState; + })(); + + admin.EventErrorIncompatibleCluster = (function() { + + /** + * Properties of an EventErrorIncompatibleCluster. + * @memberof flyteidl.admin + * @interface IEventErrorIncompatibleCluster + * @property {string|null} [cluster] EventErrorIncompatibleCluster cluster + */ + + /** + * Constructs a new EventErrorIncompatibleCluster. + * @memberof flyteidl.admin + * @classdesc Represents an EventErrorIncompatibleCluster. + * @implements IEventErrorIncompatibleCluster + * @constructor + * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set + */ + function EventErrorIncompatibleCluster(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventErrorIncompatibleCluster cluster. + * @member {string} cluster + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @instance + */ + EventErrorIncompatibleCluster.prototype.cluster = ""; + + /** + * Creates a new EventErrorIncompatibleCluster instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set + * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster instance + */ + EventErrorIncompatibleCluster.create = function create(properties) { + return new EventErrorIncompatibleCluster(properties); + }; + + /** + * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {flyteidl.admin.IEventErrorIncompatibleCluster} message EventErrorIncompatibleCluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventErrorIncompatibleCluster.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cluster != null && message.hasOwnProperty("cluster")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster); + return writer; + }; + + /** + * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventErrorIncompatibleCluster.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorIncompatibleCluster(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventErrorIncompatibleCluster message. + * @function verify + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventErrorIncompatibleCluster.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) + if (!$util.isString(message.cluster)) + return "cluster: string expected"; + return null; + }; + + return EventErrorIncompatibleCluster; + })(); + + admin.EventFailureReason = (function() { + + /** + * Properties of an EventFailureReason. + * @memberof flyteidl.admin + * @interface IEventFailureReason + * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState + * @property {flyteidl.admin.IEventErrorIncompatibleCluster|null} [incompatibleCluster] EventFailureReason incompatibleCluster + */ + + /** + * Constructs a new EventFailureReason. + * @memberof flyteidl.admin + * @classdesc Represents an EventFailureReason. + * @implements IEventFailureReason + * @constructor + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + */ + function EventFailureReason(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventFailureReason alreadyInTerminalState. + * @member {flyteidl.admin.IEventErrorAlreadyInTerminalState|null|undefined} alreadyInTerminalState + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + EventFailureReason.prototype.alreadyInTerminalState = null; + + /** + * EventFailureReason incompatibleCluster. + * @member {flyteidl.admin.IEventErrorIncompatibleCluster|null|undefined} incompatibleCluster + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + EventFailureReason.prototype.incompatibleCluster = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EventFailureReason reason. + * @member {"alreadyInTerminalState"|"incompatibleCluster"|undefined} reason + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + Object.defineProperty(EventFailureReason.prototype, "reason", { + get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState", "incompatibleCluster"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EventFailureReason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + * @returns {flyteidl.admin.EventFailureReason} EventFailureReason instance + */ + EventFailureReason.create = function create(properties) { + return new EventFailureReason(properties); + }; + + /** + * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {flyteidl.admin.IEventFailureReason} message EventFailureReason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventFailureReason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) + $root.flyteidl.admin.EventErrorAlreadyInTerminalState.encode(message.alreadyInTerminalState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) + $root.flyteidl.admin.EventErrorIncompatibleCluster.encode(message.incompatibleCluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EventFailureReason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventFailureReason} EventFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventFailureReason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventFailureReason(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32()); + break; + case 2: + message.incompatibleCluster = $root.flyteidl.admin.EventErrorIncompatibleCluster.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventFailureReason message. + * @function verify + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventFailureReason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) { + properties.reason = 1; + { + var error = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.verify(message.alreadyInTerminalState); + if (error) + return "alreadyInTerminalState." + error; + } + } + if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) { + if (properties.reason === 1) + return "reason: multiple values"; + properties.reason = 1; + { + var error = $root.flyteidl.admin.EventErrorIncompatibleCluster.verify(message.incompatibleCluster); + if (error) + return "incompatibleCluster." + error; + } + } + return null; + }; + + return EventFailureReason; + })(); + + admin.WorkflowExecutionEventRequest = (function() { + + /** + * Properties of a WorkflowExecutionEventRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionEventRequest + * @property {string|null} [requestId] WorkflowExecutionEventRequest requestId + * @property {flyteidl.event.IWorkflowExecutionEvent|null} [event] WorkflowExecutionEventRequest event + */ + + /** + * Constructs a new WorkflowExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionEventRequest. + * @implements IWorkflowExecutionEventRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + */ + function WorkflowExecutionEventRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @instance + */ + WorkflowExecutionEventRequest.prototype.requestId = ""; + + /** + * WorkflowExecutionEventRequest event. + * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @instance + */ + WorkflowExecutionEventRequest.prototype.event = null; + + /** + * Creates a new WorkflowExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest instance + */ + WorkflowExecutionEventRequest.create = function create(properties) { + return new WorkflowExecutionEventRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} message WorkflowExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.WorkflowExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return WorkflowExecutionEventRequest; + })(); + + admin.WorkflowExecutionEventResponse = (function() { + + /** + * Properties of a WorkflowExecutionEventResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionEventResponse + */ + + /** + * Constructs a new WorkflowExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionEventResponse. + * @implements IWorkflowExecutionEventResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + */ + function WorkflowExecutionEventResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse instance + */ + WorkflowExecutionEventResponse.create = function create(properties) { + return new WorkflowExecutionEventResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventResponse} message WorkflowExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowExecutionEventResponse; + })(); + + admin.NodeExecutionEventRequest = (function() { + + /** + * Properties of a NodeExecutionEventRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionEventRequest + * @property {string|null} [requestId] NodeExecutionEventRequest requestId + * @property {flyteidl.event.INodeExecutionEvent|null} [event] NodeExecutionEventRequest event + */ + + /** + * Constructs a new NodeExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionEventRequest. + * @implements INodeExecutionEventRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + */ + function NodeExecutionEventRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @instance + */ + NodeExecutionEventRequest.prototype.requestId = ""; + + /** + * NodeExecutionEventRequest event. + * @member {flyteidl.event.INodeExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @instance + */ + NodeExecutionEventRequest.prototype.event = null; + + /** + * Creates a new NodeExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest instance + */ + NodeExecutionEventRequest.create = function create(properties) { + return new NodeExecutionEventRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {flyteidl.admin.INodeExecutionEventRequest} message NodeExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.NodeExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.flyteidl.event.NodeExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return NodeExecutionEventRequest; + })(); + + admin.NodeExecutionEventResponse = (function() { + + /** + * Properties of a NodeExecutionEventResponse. + * @memberof flyteidl.admin + * @interface INodeExecutionEventResponse + */ + + /** + * Constructs a new NodeExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionEventResponse. + * @implements INodeExecutionEventResponse + * @constructor + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + */ + function NodeExecutionEventResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NodeExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse instance + */ + NodeExecutionEventResponse.create = function create(properties) { + return new NodeExecutionEventResponse(properties); + }; + + /** + * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {flyteidl.admin.INodeExecutionEventResponse} message NodeExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return NodeExecutionEventResponse; + })(); + + admin.TaskExecutionEventRequest = (function() { + + /** + * Properties of a TaskExecutionEventRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionEventRequest + * @property {string|null} [requestId] TaskExecutionEventRequest requestId + * @property {flyteidl.event.ITaskExecutionEvent|null} [event] TaskExecutionEventRequest event + */ + + /** + * Constructs a new TaskExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionEventRequest. + * @implements ITaskExecutionEventRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + */ + function TaskExecutionEventRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @instance + */ + TaskExecutionEventRequest.prototype.requestId = ""; + + /** + * TaskExecutionEventRequest event. + * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @instance + */ + TaskExecutionEventRequest.prototype.event = null; + + /** + * Creates a new TaskExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest instance + */ + TaskExecutionEventRequest.create = function create(properties) { + return new TaskExecutionEventRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {flyteidl.admin.ITaskExecutionEventRequest} message TaskExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.TaskExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.flyteidl.event.TaskExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return TaskExecutionEventRequest; + })(); + + admin.TaskExecutionEventResponse = (function() { + + /** + * Properties of a TaskExecutionEventResponse. + * @memberof flyteidl.admin + * @interface ITaskExecutionEventResponse + */ + + /** + * Constructs a new TaskExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionEventResponse. + * @implements ITaskExecutionEventResponse + * @constructor + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + */ + function TaskExecutionEventResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse instance + */ + TaskExecutionEventResponse.create = function create(properties) { + return new TaskExecutionEventResponse(properties); + }; + + /** + * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {flyteidl.admin.ITaskExecutionEventResponse} message TaskExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskExecutionEventResponse; + })(); + + admin.ExecutionCreateRequest = (function() { + + /** + * Properties of an ExecutionCreateRequest. + * @memberof flyteidl.admin + * @interface IExecutionCreateRequest + * @property {string|null} [project] ExecutionCreateRequest project + * @property {string|null} [domain] ExecutionCreateRequest domain + * @property {string|null} [name] ExecutionCreateRequest name + * @property {flyteidl.admin.IExecutionSpec|null} [spec] ExecutionCreateRequest spec + * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionCreateRequest inputs + */ + + /** + * Constructs a new ExecutionCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionCreateRequest. + * @implements IExecutionCreateRequest + * @constructor + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + */ + function ExecutionCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionCreateRequest project. + * @member {string} project + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.project = ""; + + /** + * ExecutionCreateRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.domain = ""; + + /** + * ExecutionCreateRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.name = ""; + + /** + * ExecutionCreateRequest spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.spec = null; + + /** + * ExecutionCreateRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.inputs = null; + + /** + * Creates a new ExecutionCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest instance + */ + ExecutionCreateRequest.create = function create(properties) { + return new ExecutionCreateRequest(properties); + }; + + /** + * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {flyteidl.admin.IExecutionCreateRequest} message ExecutionCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); + break; + case 5: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionCreateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + return null; + }; + + return ExecutionCreateRequest; + })(); + + admin.ExecutionRelaunchRequest = (function() { + + /** + * Properties of an ExecutionRelaunchRequest. + * @memberof flyteidl.admin + * @interface IExecutionRelaunchRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRelaunchRequest id + * @property {string|null} [name] ExecutionRelaunchRequest name + * @property {boolean|null} [overwriteCache] ExecutionRelaunchRequest overwriteCache + */ + + /** + * Constructs a new ExecutionRelaunchRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionRelaunchRequest. + * @implements IExecutionRelaunchRequest + * @constructor + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + */ + function ExecutionRelaunchRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionRelaunchRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.id = null; + + /** + * ExecutionRelaunchRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.name = ""; + + /** + * ExecutionRelaunchRequest overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.overwriteCache = false; + + /** + * Creates a new ExecutionRelaunchRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest instance + */ + ExecutionRelaunchRequest.create = function create(properties) { + return new ExecutionRelaunchRequest(properties); + }; + + /** + * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {flyteidl.admin.IExecutionRelaunchRequest} message ExecutionRelaunchRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionRelaunchRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.overwriteCache); + return writer; + }; + + /** + * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionRelaunchRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRelaunchRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.overwriteCache = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionRelaunchRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionRelaunchRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + return null; + }; + + return ExecutionRelaunchRequest; + })(); + + admin.ExecutionRecoverRequest = (function() { + + /** + * Properties of an ExecutionRecoverRequest. + * @memberof flyteidl.admin + * @interface IExecutionRecoverRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRecoverRequest id + * @property {string|null} [name] ExecutionRecoverRequest name + * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionRecoverRequest metadata + */ + + /** + * Constructs a new ExecutionRecoverRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionRecoverRequest. + * @implements IExecutionRecoverRequest + * @constructor + * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set + */ + function ExecutionRecoverRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionRecoverRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @instance + */ + ExecutionRecoverRequest.prototype.id = null; + + /** + * ExecutionRecoverRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @instance + */ + ExecutionRecoverRequest.prototype.name = ""; + + /** + * ExecutionRecoverRequest metadata. + * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @instance + */ + ExecutionRecoverRequest.prototype.metadata = null; + + /** + * Creates a new ExecutionRecoverRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest instance + */ + ExecutionRecoverRequest.create = function create(properties) { + return new ExecutionRecoverRequest(properties); + }; + + /** + * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {flyteidl.admin.IExecutionRecoverRequest} message ExecutionRecoverRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionRecoverRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionRecoverRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRecoverRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionRecoverRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionRecoverRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return ExecutionRecoverRequest; + })(); + + admin.ExecutionCreateResponse = (function() { + + /** + * Properties of an ExecutionCreateResponse. + * @memberof flyteidl.admin + * @interface IExecutionCreateResponse + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionCreateResponse id + */ + + /** + * Constructs a new ExecutionCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionCreateResponse. + * @implements IExecutionCreateResponse + * @constructor + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + */ + function ExecutionCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionCreateResponse id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionCreateResponse + * @instance + */ + ExecutionCreateResponse.prototype.id = null; + + /** + * Creates a new ExecutionCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse instance + */ + ExecutionCreateResponse.create = function create(properties) { + return new ExecutionCreateResponse(properties); + }; + + /** + * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {flyteidl.admin.IExecutionCreateResponse} message ExecutionCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionCreateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ExecutionCreateResponse; + })(); + + admin.WorkflowExecutionGetRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetRequest id + */ + + /** + * Constructs a new WorkflowExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetRequest. + * @implements IWorkflowExecutionGetRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @instance + */ + WorkflowExecutionGetRequest.prototype.id = null; + + /** + * Creates a new WorkflowExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest instance + */ + WorkflowExecutionGetRequest.create = function create(properties) { + return new WorkflowExecutionGetRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} message WorkflowExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowExecutionGetRequest; + })(); + + admin.Execution = (function() { + + /** + * Properties of an Execution. + * @memberof flyteidl.admin + * @interface IExecution + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] Execution id + * @property {flyteidl.admin.IExecutionSpec|null} [spec] Execution spec + * @property {flyteidl.admin.IExecutionClosure|null} [closure] Execution closure + */ + + /** + * Constructs a new Execution. + * @memberof flyteidl.admin + * @classdesc Represents an Execution. + * @implements IExecution + * @constructor + * @param {flyteidl.admin.IExecution=} [properties] Properties to set + */ + function Execution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Execution id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.id = null; + + /** + * Execution spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.spec = null; + + /** + * Execution closure. + * @member {flyteidl.admin.IExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.closure = null; + + /** + * Creates a new Execution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Execution + * @static + * @param {flyteidl.admin.IExecution=} [properties] Properties to set + * @returns {flyteidl.admin.Execution} Execution instance + */ + Execution.create = function create(properties) { + return new Execution(properties); + }; + + /** + * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Execution + * @static + * @param {flyteidl.admin.IExecution} message Execution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Execution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.ExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Execution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Execution} Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Execution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Execution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); + break; + case 3: + message.closure = $root.flyteidl.admin.ExecutionClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Execution message. + * @function verify + * @memberof flyteidl.admin.Execution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Execution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.ExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return Execution; + })(); + + admin.ExecutionList = (function() { + + /** + * Properties of an ExecutionList. + * @memberof flyteidl.admin + * @interface IExecutionList + * @property {Array.|null} [executions] ExecutionList executions + * @property {string|null} [token] ExecutionList token + */ + + /** + * Constructs a new ExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionList. + * @implements IExecutionList + * @constructor + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + */ + function ExecutionList(properties) { + this.executions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionList executions. + * @member {Array.} executions + * @memberof flyteidl.admin.ExecutionList + * @instance + */ + ExecutionList.prototype.executions = $util.emptyArray; + + /** + * ExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.ExecutionList + * @instance + */ + ExecutionList.prototype.token = ""; + + /** + * Creates a new ExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionList} ExecutionList instance + */ + ExecutionList.create = function create(properties) { + return new ExecutionList(properties); + }; + + /** + * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {flyteidl.admin.IExecutionList} message ExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.flyteidl.admin.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes an ExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionList} ExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.flyteidl.admin.Execution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionList message. + * @function verify + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.flyteidl.admin.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return ExecutionList; + })(); + + admin.LiteralMapBlob = (function() { + + /** + * Properties of a LiteralMapBlob. + * @memberof flyteidl.admin + * @interface ILiteralMapBlob + * @property {flyteidl.core.ILiteralMap|null} [values] LiteralMapBlob values + * @property {string|null} [uri] LiteralMapBlob uri + */ + + /** + * Constructs a new LiteralMapBlob. + * @memberof flyteidl.admin + * @classdesc Represents a LiteralMapBlob. + * @implements ILiteralMapBlob + * @constructor + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + */ + function LiteralMapBlob(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralMapBlob values. + * @member {flyteidl.core.ILiteralMap|null|undefined} values + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + LiteralMapBlob.prototype.values = null; + + /** + * LiteralMapBlob uri. + * @member {string} uri + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + LiteralMapBlob.prototype.uri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LiteralMapBlob data. + * @member {"values"|"uri"|undefined} data + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + Object.defineProperty(LiteralMapBlob.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["values", "uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LiteralMapBlob instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob instance + */ + LiteralMapBlob.create = function create(properties) { + return new LiteralMapBlob(properties); + }; + + /** + * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {flyteidl.admin.ILiteralMapBlob} message LiteralMapBlob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralMapBlob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + $root.flyteidl.core.LiteralMap.encode(message.values, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + return writer; + }; + + /** + * Decodes a LiteralMapBlob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralMapBlob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LiteralMapBlob(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.values = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralMapBlob message. + * @function verify + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralMapBlob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.values != null && message.hasOwnProperty("values")) { + properties.data = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.values); + if (error) + return "values." + error; + } + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + return null; + }; + + return LiteralMapBlob; + })(); + + admin.AbortMetadata = (function() { + + /** + * Properties of an AbortMetadata. + * @memberof flyteidl.admin + * @interface IAbortMetadata + * @property {string|null} [cause] AbortMetadata cause + * @property {string|null} [principal] AbortMetadata principal + */ + + /** + * Constructs a new AbortMetadata. + * @memberof flyteidl.admin + * @classdesc Represents an AbortMetadata. + * @implements IAbortMetadata + * @constructor + * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set + */ + function AbortMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AbortMetadata cause. + * @member {string} cause + * @memberof flyteidl.admin.AbortMetadata + * @instance + */ + AbortMetadata.prototype.cause = ""; + + /** + * AbortMetadata principal. + * @member {string} principal + * @memberof flyteidl.admin.AbortMetadata + * @instance + */ + AbortMetadata.prototype.principal = ""; + + /** + * Creates a new AbortMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.AbortMetadata} AbortMetadata instance + */ + AbortMetadata.create = function create(properties) { + return new AbortMetadata(properties); + }; + + /** + * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {flyteidl.admin.IAbortMetadata} message AbortMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AbortMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cause != null && message.hasOwnProperty("cause")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cause); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); + return writer; + }; + + /** + * Decodes an AbortMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.AbortMetadata} AbortMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AbortMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AbortMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cause = reader.string(); + break; + case 2: + message.principal = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an AbortMetadata message. + * @function verify + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AbortMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cause != null && message.hasOwnProperty("cause")) + if (!$util.isString(message.cause)) + return "cause: string expected"; + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + return null; + }; + + return AbortMetadata; + })(); + + admin.ExecutionClosure = (function() { + + /** + * Properties of an ExecutionClosure. + * @memberof flyteidl.admin + * @interface IExecutionClosure + * @property {flyteidl.admin.ILiteralMapBlob|null} [outputs] ExecutionClosure outputs + * @property {flyteidl.core.IExecutionError|null} [error] ExecutionClosure error + * @property {string|null} [abortCause] ExecutionClosure abortCause + * @property {flyteidl.admin.IAbortMetadata|null} [abortMetadata] ExecutionClosure abortMetadata + * @property {flyteidl.core.ILiteralMap|null} [outputData] ExecutionClosure outputData + * @property {flyteidl.core.ILiteralMap|null} [computedInputs] ExecutionClosure computedInputs + * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] ExecutionClosure phase + * @property {google.protobuf.ITimestamp|null} [startedAt] ExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] ExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] ExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] ExecutionClosure updatedAt + * @property {Array.|null} [notifications] ExecutionClosure notifications + * @property {flyteidl.core.IIdentifier|null} [workflowId] ExecutionClosure workflowId + * @property {flyteidl.admin.IExecutionStateChangeDetails|null} [stateChangeDetails] ExecutionClosure stateChangeDetails + */ + + /** + * Constructs a new ExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionClosure. + * @implements IExecutionClosure + * @constructor + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + */ + function ExecutionClosure(properties) { + this.notifications = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionClosure outputs. + * @member {flyteidl.admin.ILiteralMapBlob|null|undefined} outputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.outputs = null; + + /** + * ExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.error = null; + + /** + * ExecutionClosure abortCause. + * @member {string} abortCause + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.abortCause = ""; + + /** + * ExecutionClosure abortMetadata. + * @member {flyteidl.admin.IAbortMetadata|null|undefined} abortMetadata + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.abortMetadata = null; + + /** + * ExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.outputData = null; + + /** + * ExecutionClosure computedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} computedInputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.computedInputs = null; + + /** + * ExecutionClosure phase. + * @member {flyteidl.core.WorkflowExecution.Phase} phase + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.phase = 0; + + /** + * ExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.startedAt = null; + + /** + * ExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.duration = null; + + /** + * ExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.createdAt = null; + + /** + * ExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.updatedAt = null; + + /** + * ExecutionClosure notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.notifications = $util.emptyArray; + + /** + * ExecutionClosure workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.workflowId = null; + + /** + * ExecutionClosure stateChangeDetails. + * @member {flyteidl.admin.IExecutionStateChangeDetails|null|undefined} stateChangeDetails + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.stateChangeDetails = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecutionClosure outputResult. + * @member {"outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"|undefined} outputResult + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + Object.defineProperty(ExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputs", "error", "abortCause", "abortMetadata", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure instance + */ + ExecutionClosure.create = function create(properties) { + return new ExecutionClosure(properties); + }; + + /** + * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {flyteidl.admin.IExecutionClosure} message ExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.LiteralMapBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) + $root.flyteidl.core.LiteralMap.encode(message.computedInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.abortCause != null && message.hasOwnProperty("abortCause")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.abortCause); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) + $root.flyteidl.admin.AbortMetadata.encode(message.abortMetadata, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) + $root.flyteidl.admin.ExecutionStateChangeDetails.encode(message.stateChangeDetails, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputs = $root.flyteidl.admin.LiteralMapBlob.decode(reader, reader.uint32()); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 10: + message.abortCause = reader.string(); + break; + case 12: + message.abortMetadata = $root.flyteidl.admin.AbortMetadata.decode(reader, reader.uint32()); + break; + case 13: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.computedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 7: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + case 11: + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 14: + message.stateChangeDetails = $root.flyteidl.admin.ExecutionStateChangeDetails.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + properties.outputResult = 1; + { + var error = $root.flyteidl.admin.LiteralMapBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.abortCause != null && message.hasOwnProperty("abortCause")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + if (!$util.isString(message.abortCause)) + return "abortCause: string expected"; + } + if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.admin.AbortMetadata.verify(message.abortMetadata); + if (error) + return "abortMetadata." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.computedInputs); + if (error) + return "computedInputs." + error; + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + var error = $root.flyteidl.core.Identifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) { + var error = $root.flyteidl.admin.ExecutionStateChangeDetails.verify(message.stateChangeDetails); + if (error) + return "stateChangeDetails." + error; + } + return null; + }; + + return ExecutionClosure; + })(); + + admin.SystemMetadata = (function() { + + /** + * Properties of a SystemMetadata. + * @memberof flyteidl.admin + * @interface ISystemMetadata + * @property {string|null} [executionCluster] SystemMetadata executionCluster + * @property {string|null} [namespace] SystemMetadata namespace + */ + + /** + * Constructs a new SystemMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a SystemMetadata. + * @implements ISystemMetadata + * @constructor + * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set + */ + function SystemMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SystemMetadata executionCluster. + * @member {string} executionCluster + * @memberof flyteidl.admin.SystemMetadata + * @instance + */ + SystemMetadata.prototype.executionCluster = ""; + + /** + * SystemMetadata namespace. + * @member {string} namespace + * @memberof flyteidl.admin.SystemMetadata + * @instance + */ + SystemMetadata.prototype.namespace = ""; + + /** + * Creates a new SystemMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.SystemMetadata} SystemMetadata instance + */ + SystemMetadata.create = function create(properties) { + return new SystemMetadata(properties); + }; + + /** + * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {flyteidl.admin.ISystemMetadata} message SystemMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SystemMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.executionCluster); + if (message.namespace != null && message.hasOwnProperty("namespace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); + return writer; + }; + + /** + * Decodes a SystemMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SystemMetadata} SystemMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SystemMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SystemMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionCluster = reader.string(); + break; + case 2: + message.namespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SystemMetadata message. + * @function verify + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SystemMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) + if (!$util.isString(message.executionCluster)) + return "executionCluster: string expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + return null; + }; + + return SystemMetadata; + })(); + + admin.ExecutionMetadata = (function() { + + /** + * Properties of an ExecutionMetadata. + * @memberof flyteidl.admin + * @interface IExecutionMetadata + * @property {flyteidl.admin.ExecutionMetadata.ExecutionMode|null} [mode] ExecutionMetadata mode + * @property {string|null} [principal] ExecutionMetadata principal + * @property {number|null} [nesting] ExecutionMetadata nesting + * @property {google.protobuf.ITimestamp|null} [scheduledAt] ExecutionMetadata scheduledAt + * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecution] ExecutionMetadata parentNodeExecution + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] ExecutionMetadata referenceExecution + * @property {flyteidl.admin.ISystemMetadata|null} [systemMetadata] ExecutionMetadata systemMetadata + */ + + /** + * Constructs a new ExecutionMetadata. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionMetadata. + * @implements IExecutionMetadata + * @constructor + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + */ + function ExecutionMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionMetadata mode. + * @member {flyteidl.admin.ExecutionMetadata.ExecutionMode} mode + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.mode = 0; + + /** + * ExecutionMetadata principal. + * @member {string} principal + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.principal = ""; + + /** + * ExecutionMetadata nesting. + * @member {number} nesting + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.nesting = 0; + + /** + * ExecutionMetadata scheduledAt. + * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.scheduledAt = null; + + /** + * ExecutionMetadata parentNodeExecution. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecution + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.parentNodeExecution = null; + + /** + * ExecutionMetadata referenceExecution. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.referenceExecution = null; + + /** + * ExecutionMetadata systemMetadata. + * @member {flyteidl.admin.ISystemMetadata|null|undefined} systemMetadata + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.systemMetadata = null; + + /** + * Creates a new ExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata instance + */ + ExecutionMetadata.create = function create(properties) { + return new ExecutionMetadata(properties); + }; + + /** + * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {flyteidl.admin.IExecutionMetadata} message ExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mode != null && message.hasOwnProperty("mode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); + if (message.nesting != null && message.hasOwnProperty("nesting")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.nesting); + if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) + $root.google.protobuf.Timestamp.encode(message.scheduledAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecution, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) + $root.flyteidl.admin.SystemMetadata.encode(message.systemMetadata, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = reader.int32(); + break; + case 2: + message.principal = reader.string(); + break; + case 3: + message.nesting = reader.uint32(); + break; + case 4: + message.scheduledAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.parentNodeExecution = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 16: + message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 17: + message.systemMetadata = $root.flyteidl.admin.SystemMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionMetadata message. + * @function verify + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mode != null && message.hasOwnProperty("mode")) + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.nesting != null && message.hasOwnProperty("nesting")) + if (!$util.isInteger(message.nesting)) + return "nesting: integer expected"; + if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.scheduledAt); + if (error) + return "scheduledAt." + error; + } + if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecution); + if (error) + return "parentNodeExecution." + error; + } + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); + if (error) + return "referenceExecution." + error; + } + if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) { + var error = $root.flyteidl.admin.SystemMetadata.verify(message.systemMetadata); + if (error) + return "systemMetadata." + error; + } + return null; + }; + + /** + * ExecutionMode enum. + * @name flyteidl.admin.ExecutionMetadata.ExecutionMode + * @enum {string} + * @property {number} MANUAL=0 MANUAL value + * @property {number} SCHEDULED=1 SCHEDULED value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} RELAUNCH=3 RELAUNCH value + * @property {number} CHILD_WORKFLOW=4 CHILD_WORKFLOW value + * @property {number} RECOVERED=5 RECOVERED value + */ + ExecutionMetadata.ExecutionMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MANUAL"] = 0; + values[valuesById[1] = "SCHEDULED"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "RELAUNCH"] = 3; + values[valuesById[4] = "CHILD_WORKFLOW"] = 4; + values[valuesById[5] = "RECOVERED"] = 5; + return values; + })(); + + return ExecutionMetadata; + })(); + + admin.NotificationList = (function() { + + /** + * Properties of a NotificationList. + * @memberof flyteidl.admin + * @interface INotificationList + * @property {Array.|null} [notifications] NotificationList notifications + */ + + /** + * Constructs a new NotificationList. + * @memberof flyteidl.admin + * @classdesc Represents a NotificationList. + * @implements INotificationList + * @constructor + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + */ + function NotificationList(properties) { + this.notifications = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationList notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.NotificationList + * @instance + */ + NotificationList.prototype.notifications = $util.emptyArray; + + /** + * Creates a new NotificationList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NotificationList + * @static + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + * @returns {flyteidl.admin.NotificationList} NotificationList instance + */ + NotificationList.create = function create(properties) { + return new NotificationList(properties); + }; + + /** + * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NotificationList + * @static + * @param {flyteidl.admin.INotificationList} message NotificationList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NotificationList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NotificationList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NotificationList} NotificationList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NotificationList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NotificationList message. + * @function verify + * @memberof flyteidl.admin.NotificationList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + return null; + }; + + return NotificationList; + })(); + + admin.ExecutionSpec = (function() { + + /** + * Properties of an ExecutionSpec. + * @memberof flyteidl.admin + * @interface IExecutionSpec + * @property {flyteidl.core.IIdentifier|null} [launchPlan] ExecutionSpec launchPlan + * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionSpec inputs + * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionSpec metadata + * @property {flyteidl.admin.INotificationList|null} [notifications] ExecutionSpec notifications + * @property {boolean|null} [disableAll] ExecutionSpec disableAll + * @property {flyteidl.admin.ILabels|null} [labels] ExecutionSpec labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] ExecutionSpec annotations + * @property {flyteidl.core.ISecurityContext|null} [securityContext] ExecutionSpec securityContext + * @property {flyteidl.admin.IAuthRole|null} [authRole] ExecutionSpec authRole + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] ExecutionSpec qualityOfService + * @property {number|null} [maxParallelism] ExecutionSpec maxParallelism + * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] ExecutionSpec rawOutputDataConfig + * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] ExecutionSpec clusterAssignment + * @property {google.protobuf.IBoolValue|null} [interruptible] ExecutionSpec interruptible + * @property {boolean|null} [overwriteCache] ExecutionSpec overwriteCache + * @property {flyteidl.admin.IEnvs|null} [envs] ExecutionSpec envs + * @property {Array.|null} [tags] ExecutionSpec tags + */ + + /** + * Constructs a new ExecutionSpec. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionSpec. + * @implements IExecutionSpec + * @constructor + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + */ + function ExecutionSpec(properties) { + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionSpec launchPlan. + * @member {flyteidl.core.IIdentifier|null|undefined} launchPlan + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.launchPlan = null; + + /** + * ExecutionSpec inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.inputs = null; + + /** + * ExecutionSpec metadata. + * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.metadata = null; + + /** + * ExecutionSpec notifications. + * @member {flyteidl.admin.INotificationList|null|undefined} notifications + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.notifications = null; + + /** + * ExecutionSpec disableAll. + * @member {boolean} disableAll + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.disableAll = false; + + /** + * ExecutionSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.labels = null; + + /** + * ExecutionSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.annotations = null; + + /** + * ExecutionSpec securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.securityContext = null; + + /** + * ExecutionSpec authRole. + * @member {flyteidl.admin.IAuthRole|null|undefined} authRole + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.authRole = null; + + /** + * ExecutionSpec qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.qualityOfService = null; + + /** + * ExecutionSpec maxParallelism. + * @member {number} maxParallelism + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.maxParallelism = 0; + + /** + * ExecutionSpec rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.rawOutputDataConfig = null; + + /** + * ExecutionSpec clusterAssignment. + * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.clusterAssignment = null; + + /** + * ExecutionSpec interruptible. + * @member {google.protobuf.IBoolValue|null|undefined} interruptible + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.interruptible = null; + + /** + * ExecutionSpec overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.overwriteCache = false; + + /** + * ExecutionSpec envs. + * @member {flyteidl.admin.IEnvs|null|undefined} envs + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.envs = null; + + /** + * ExecutionSpec tags. + * @member {Array.} tags + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.tags = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecutionSpec notificationOverrides. + * @member {"notifications"|"disableAll"|undefined} notificationOverrides + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + Object.defineProperty(ExecutionSpec.prototype, "notificationOverrides", { + get: $util.oneOfGetter($oneOfFields = ["notifications", "disableAll"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecutionSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec instance + */ + ExecutionSpec.create = function create(properties) { + return new ExecutionSpec(properties); + }; + + /** + * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {flyteidl.admin.IExecutionSpec} message ExecutionSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) + $root.flyteidl.core.Identifier.encode(message.launchPlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.notifications != null && message.hasOwnProperty("notifications")) + $root.flyteidl.admin.NotificationList.encode(message.notifications, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.disableAll != null && message.hasOwnProperty("disableAll")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disableAll); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.authRole != null && message.hasOwnProperty("authRole")) + $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) + $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) + $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.overwriteCache); + if (message.envs != null && message.hasOwnProperty("envs")) + $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 24, wireType 2 =*/194).string(message.tags[i]); + return writer; + }; + + /** + * Decodes an ExecutionSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.launchPlan = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); + break; + case 5: + message.notifications = $root.flyteidl.admin.NotificationList.decode(reader, reader.uint32()); + break; + case 6: + message.disableAll = reader.bool(); + break; + case 7: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 8: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + case 10: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 16: + message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); + break; + case 17: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 18: + message.maxParallelism = reader.int32(); + break; + case 19: + message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); + break; + case 20: + message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); + break; + case 21: + message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 22: + message.overwriteCache = reader.bool(); + break; + case 23: + message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); + break; + case 24: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionSpec message. + * @function verify + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) { + var error = $root.flyteidl.core.Identifier.verify(message.launchPlan); + if (error) + return "launchPlan." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + properties.notificationOverrides = 1; + { + var error = $root.flyteidl.admin.NotificationList.verify(message.notifications); + if (error) + return "notifications." + error; + } + } + if (message.disableAll != null && message.hasOwnProperty("disableAll")) { + if (properties.notificationOverrides === 1) + return "notificationOverrides: multiple values"; + properties.notificationOverrides = 1; + if (typeof message.disableAll !== "boolean") + return "disableAll: boolean expected"; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.authRole != null && message.hasOwnProperty("authRole")) { + var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); + if (error) + return "authRole." + error; + } + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + if (!$util.isInteger(message.maxParallelism)) + return "maxParallelism: integer expected"; + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { + var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); + if (error) + return "rawOutputDataConfig." + error; + } + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { + var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); + if (error) + return "clusterAssignment." + error; + } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + var error = $root.google.protobuf.BoolValue.verify(message.interruptible); + if (error) + return "interruptible." + error; + } + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + if (message.envs != null && message.hasOwnProperty("envs")) { + var error = $root.flyteidl.admin.Envs.verify(message.envs); + if (error) + return "envs." + error; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + return ExecutionSpec; + })(); + + admin.ExecutionTerminateRequest = (function() { + + /** + * Properties of an ExecutionTerminateRequest. + * @memberof flyteidl.admin + * @interface IExecutionTerminateRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionTerminateRequest id + * @property {string|null} [cause] ExecutionTerminateRequest cause + */ + + /** + * Constructs a new ExecutionTerminateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionTerminateRequest. + * @implements IExecutionTerminateRequest + * @constructor + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + */ + function ExecutionTerminateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionTerminateRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @instance + */ + ExecutionTerminateRequest.prototype.id = null; + + /** + * ExecutionTerminateRequest cause. + * @member {string} cause + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @instance + */ + ExecutionTerminateRequest.prototype.cause = ""; + + /** + * Creates a new ExecutionTerminateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest instance + */ + ExecutionTerminateRequest.create = function create(properties) { + return new ExecutionTerminateRequest(properties); + }; + + /** + * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {flyteidl.admin.IExecutionTerminateRequest} message ExecutionTerminateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionTerminateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cause != null && message.hasOwnProperty("cause")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cause); + return writer; + }; + + /** + * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionTerminateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.cause = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionTerminateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionTerminateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.cause != null && message.hasOwnProperty("cause")) + if (!$util.isString(message.cause)) + return "cause: string expected"; + return null; + }; + + return ExecutionTerminateRequest; + })(); + + admin.ExecutionTerminateResponse = (function() { + + /** + * Properties of an ExecutionTerminateResponse. + * @memberof flyteidl.admin + * @interface IExecutionTerminateResponse + */ + + /** + * Constructs a new ExecutionTerminateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionTerminateResponse. + * @implements IExecutionTerminateResponse + * @constructor + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + */ + function ExecutionTerminateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ExecutionTerminateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse instance + */ + ExecutionTerminateResponse.create = function create(properties) { + return new ExecutionTerminateResponse(properties); + }; + + /** + * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {flyteidl.admin.IExecutionTerminateResponse} message ExecutionTerminateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionTerminateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionTerminateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionTerminateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionTerminateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ExecutionTerminateResponse; + })(); + + admin.WorkflowExecutionGetDataRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetDataRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetDataRequest id + */ + + /** + * Constructs a new WorkflowExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetDataRequest. + * @implements IWorkflowExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetDataRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @instance + */ + WorkflowExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest instance + */ + WorkflowExecutionGetDataRequest.create = function create(properties) { + return new WorkflowExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} message WorkflowExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowExecutionGetDataRequest; + })(); + + admin.WorkflowExecutionGetDataResponse = (function() { + + /** + * Properties of a WorkflowExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [outputs] WorkflowExecutionGetDataResponse outputs + * @property {flyteidl.admin.IUrlBlob|null} [inputs] WorkflowExecutionGetDataResponse inputs + * @property {flyteidl.core.ILiteralMap|null} [fullInputs] WorkflowExecutionGetDataResponse fullInputs + * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] WorkflowExecutionGetDataResponse fullOutputs + */ + + /** + * Constructs a new WorkflowExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetDataResponse. + * @implements IWorkflowExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + */ + function WorkflowExecutionGetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.outputs = null; + + /** + * WorkflowExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.inputs = null; + + /** + * WorkflowExecutionGetDataResponse fullInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.fullInputs = null; + + /** + * WorkflowExecutionGetDataResponse fullOutputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.fullOutputs = null; + + /** + * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse instance + */ + WorkflowExecutionGetDataResponse.create = function create(properties) { + return new WorkflowExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse} message WorkflowExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 3: + message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); + if (error) + return "fullInputs." + error; + } + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); + if (error) + return "fullOutputs." + error; + } + return null; + }; + + return WorkflowExecutionGetDataResponse; + })(); + + /** + * ExecutionState enum. + * @name flyteidl.admin.ExecutionState + * @enum {string} + * @property {number} EXECUTION_ACTIVE=0 EXECUTION_ACTIVE value + * @property {number} EXECUTION_ARCHIVED=1 EXECUTION_ARCHIVED value + */ + admin.ExecutionState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EXECUTION_ACTIVE"] = 0; + values[valuesById[1] = "EXECUTION_ARCHIVED"] = 1; + return values; + })(); + + admin.ExecutionUpdateRequest = (function() { + + /** + * Properties of an ExecutionUpdateRequest. + * @memberof flyteidl.admin + * @interface IExecutionUpdateRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionUpdateRequest id + * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionUpdateRequest state + */ + + /** + * Constructs a new ExecutionUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionUpdateRequest. + * @implements IExecutionUpdateRequest + * @constructor + * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set + */ + function ExecutionUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionUpdateRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @instance + */ + ExecutionUpdateRequest.prototype.id = null; + + /** + * ExecutionUpdateRequest state. + * @member {flyteidl.admin.ExecutionState} state + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @instance + */ + ExecutionUpdateRequest.prototype.state = 0; + + /** + * Creates a new ExecutionUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest instance + */ + ExecutionUpdateRequest.create = function create(properties) { + return new ExecutionUpdateRequest(properties); + }; + + /** + * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {flyteidl.admin.IExecutionUpdateRequest} message ExecutionUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + return ExecutionUpdateRequest; + })(); + + admin.ExecutionStateChangeDetails = (function() { + + /** + * Properties of an ExecutionStateChangeDetails. + * @memberof flyteidl.admin + * @interface IExecutionStateChangeDetails + * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionStateChangeDetails state + * @property {google.protobuf.ITimestamp|null} [occurredAt] ExecutionStateChangeDetails occurredAt + * @property {string|null} [principal] ExecutionStateChangeDetails principal + */ + + /** + * Constructs a new ExecutionStateChangeDetails. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionStateChangeDetails. + * @implements IExecutionStateChangeDetails + * @constructor + * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set + */ + function ExecutionStateChangeDetails(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionStateChangeDetails state. + * @member {flyteidl.admin.ExecutionState} state + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @instance + */ + ExecutionStateChangeDetails.prototype.state = 0; + + /** + * ExecutionStateChangeDetails occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @instance + */ + ExecutionStateChangeDetails.prototype.occurredAt = null; + + /** + * ExecutionStateChangeDetails principal. + * @member {string} principal + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @instance + */ + ExecutionStateChangeDetails.prototype.principal = ""; + + /** + * Creates a new ExecutionStateChangeDetails instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails instance + */ + ExecutionStateChangeDetails.create = function create(properties) { + return new ExecutionStateChangeDetails(properties); + }; + + /** + * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {flyteidl.admin.IExecutionStateChangeDetails} message ExecutionStateChangeDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionStateChangeDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.principal); + return writer; + }; + + /** + * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionStateChangeDetails.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionStateChangeDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.principal = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionStateChangeDetails message. + * @function verify + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionStateChangeDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + return null; + }; + + return ExecutionStateChangeDetails; + })(); + + admin.ExecutionUpdateResponse = (function() { + + /** + * Properties of an ExecutionUpdateResponse. + * @memberof flyteidl.admin + * @interface IExecutionUpdateResponse + */ + + /** + * Constructs a new ExecutionUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionUpdateResponse. + * @implements IExecutionUpdateResponse + * @constructor + * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set + */ + function ExecutionUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ExecutionUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse instance + */ + ExecutionUpdateResponse.create = function create(properties) { + return new ExecutionUpdateResponse(properties); + }; + + /** + * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {flyteidl.admin.IExecutionUpdateResponse} message ExecutionUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ExecutionUpdateResponse; + })(); + + admin.WorkflowExecutionGetMetricsRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetMetricsRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetMetricsRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetMetricsRequest id + * @property {number|null} [depth] WorkflowExecutionGetMetricsRequest depth + */ + + /** + * Constructs a new WorkflowExecutionGetMetricsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetMetricsRequest. + * @implements IWorkflowExecutionGetMetricsRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetMetricsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetMetricsRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @instance + */ + WorkflowExecutionGetMetricsRequest.prototype.id = null; + + /** + * WorkflowExecutionGetMetricsRequest depth. + * @member {number} depth + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @instance + */ + WorkflowExecutionGetMetricsRequest.prototype.depth = 0; + + /** + * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest instance + */ + WorkflowExecutionGetMetricsRequest.create = function create(properties) { + return new WorkflowExecutionGetMetricsRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} message WorkflowExecutionGetMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetMetricsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.depth != null && message.hasOwnProperty("depth")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.depth); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetMetricsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.depth = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetMetricsRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetMetricsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.depth != null && message.hasOwnProperty("depth")) + if (!$util.isInteger(message.depth)) + return "depth: integer expected"; + return null; + }; + + return WorkflowExecutionGetMetricsRequest; + })(); + + admin.WorkflowExecutionGetMetricsResponse = (function() { + + /** + * Properties of a WorkflowExecutionGetMetricsResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetMetricsResponse + * @property {flyteidl.core.ISpan|null} [span] WorkflowExecutionGetMetricsResponse span + */ + + /** + * Constructs a new WorkflowExecutionGetMetricsResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetMetricsResponse. + * @implements IWorkflowExecutionGetMetricsResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set + */ + function WorkflowExecutionGetMetricsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetMetricsResponse span. + * @member {flyteidl.core.ISpan|null|undefined} span + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @instance + */ + WorkflowExecutionGetMetricsResponse.prototype.span = null; + + /** + * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse instance + */ + WorkflowExecutionGetMetricsResponse.create = function create(properties) { + return new WorkflowExecutionGetMetricsResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse} message WorkflowExecutionGetMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetMetricsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.span != null && message.hasOwnProperty("span")) + $root.flyteidl.core.Span.encode(message.span, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetMetricsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.span = $root.flyteidl.core.Span.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetMetricsResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetMetricsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.span != null && message.hasOwnProperty("span")) { + var error = $root.flyteidl.core.Span.verify(message.span); + if (error) + return "span." + error; + } + return null; + }; + + return WorkflowExecutionGetMetricsResponse; + })(); + + admin.LaunchPlanCreateRequest = (function() { + + /** + * Properties of a LaunchPlanCreateRequest. + * @memberof flyteidl.admin + * @interface ILaunchPlanCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanCreateRequest id + * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlanCreateRequest spec + */ + + /** + * Constructs a new LaunchPlanCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanCreateRequest. + * @implements ILaunchPlanCreateRequest + * @constructor + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + */ + function LaunchPlanCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @instance + */ + LaunchPlanCreateRequest.prototype.id = null; + + /** + * LaunchPlanCreateRequest spec. + * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @instance + */ + LaunchPlanCreateRequest.prototype.spec = null; + + /** + * Creates a new LaunchPlanCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest instance + */ + LaunchPlanCreateRequest.create = function create(properties) { + return new LaunchPlanCreateRequest(properties); + }; + + /** + * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanCreateRequest} message LaunchPlanCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanCreateRequest message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return LaunchPlanCreateRequest; + })(); + + admin.LaunchPlanCreateResponse = (function() { + + /** + * Properties of a LaunchPlanCreateResponse. + * @memberof flyteidl.admin + * @interface ILaunchPlanCreateResponse + */ + + /** + * Constructs a new LaunchPlanCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanCreateResponse. + * @implements ILaunchPlanCreateResponse + * @constructor + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + */ + function LaunchPlanCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new LaunchPlanCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse instance + */ + LaunchPlanCreateResponse.create = function create(properties) { + return new LaunchPlanCreateResponse(properties); + }; + + /** + * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanCreateResponse} message LaunchPlanCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanCreateResponse message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return LaunchPlanCreateResponse; + })(); + + /** + * LaunchPlanState enum. + * @name flyteidl.admin.LaunchPlanState + * @enum {string} + * @property {number} INACTIVE=0 INACTIVE value + * @property {number} ACTIVE=1 ACTIVE value + */ + admin.LaunchPlanState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INACTIVE"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + return values; + })(); + + admin.LaunchPlan = (function() { + + /** + * Properties of a LaunchPlan. + * @memberof flyteidl.admin + * @interface ILaunchPlan + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlan id + * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlan spec + * @property {flyteidl.admin.ILaunchPlanClosure|null} [closure] LaunchPlan closure + */ + + /** + * Constructs a new LaunchPlan. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlan. + * @implements ILaunchPlan + * @constructor + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + */ + function LaunchPlan(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlan id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.id = null; + + /** + * LaunchPlan spec. + * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.spec = null; + + /** + * LaunchPlan closure. + * @member {flyteidl.admin.ILaunchPlanClosure|null|undefined} closure + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.closure = null; + + /** + * Creates a new LaunchPlan instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlan} LaunchPlan instance + */ + LaunchPlan.create = function create(properties) { + return new LaunchPlan(properties); + }; + + /** + * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {flyteidl.admin.ILaunchPlan} message LaunchPlan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.LaunchPlanClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlan message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlan} LaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlan(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); + break; + case 3: + message.closure = $root.flyteidl.admin.LaunchPlanClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlan message. + * @function verify + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.LaunchPlanClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return LaunchPlan; + })(); + + admin.LaunchPlanList = (function() { + + /** + * Properties of a LaunchPlanList. + * @memberof flyteidl.admin + * @interface ILaunchPlanList + * @property {Array.|null} [launchPlans] LaunchPlanList launchPlans + * @property {string|null} [token] LaunchPlanList token + */ + + /** + * Constructs a new LaunchPlanList. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanList. + * @implements ILaunchPlanList + * @constructor + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + */ + function LaunchPlanList(properties) { + this.launchPlans = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanList launchPlans. + * @member {Array.} launchPlans + * @memberof flyteidl.admin.LaunchPlanList + * @instance + */ + LaunchPlanList.prototype.launchPlans = $util.emptyArray; + + /** + * LaunchPlanList token. + * @member {string} token + * @memberof flyteidl.admin.LaunchPlanList + * @instance + */ + LaunchPlanList.prototype.token = ""; + + /** + * Creates a new LaunchPlanList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList instance + */ + LaunchPlanList.create = function create(properties) { + return new LaunchPlanList(properties); + }; + + /** + * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {flyteidl.admin.ILaunchPlanList} message LaunchPlanList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchPlans != null && message.launchPlans.length) + for (var i = 0; i < message.launchPlans.length; ++i) + $root.flyteidl.admin.LaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a LaunchPlanList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.launchPlans && message.launchPlans.length)) + message.launchPlans = []; + message.launchPlans.push($root.flyteidl.admin.LaunchPlan.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanList message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { + if (!Array.isArray(message.launchPlans)) + return "launchPlans: array expected"; + for (var i = 0; i < message.launchPlans.length; ++i) { + var error = $root.flyteidl.admin.LaunchPlan.verify(message.launchPlans[i]); + if (error) + return "launchPlans." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return LaunchPlanList; + })(); + + admin.Auth = (function() { + + /** + * Properties of an Auth. + * @memberof flyteidl.admin + * @interface IAuth + * @property {string|null} [assumableIamRole] Auth assumableIamRole + * @property {string|null} [kubernetesServiceAccount] Auth kubernetesServiceAccount + */ + + /** + * Constructs a new Auth. + * @memberof flyteidl.admin + * @classdesc Represents an Auth. + * @implements IAuth + * @constructor + * @param {flyteidl.admin.IAuth=} [properties] Properties to set + */ + function Auth(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Auth assumableIamRole. + * @member {string} assumableIamRole + * @memberof flyteidl.admin.Auth + * @instance + */ + Auth.prototype.assumableIamRole = ""; + + /** + * Auth kubernetesServiceAccount. + * @member {string} kubernetesServiceAccount + * @memberof flyteidl.admin.Auth + * @instance + */ + Auth.prototype.kubernetesServiceAccount = ""; + + /** + * Creates a new Auth instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Auth + * @static + * @param {flyteidl.admin.IAuth=} [properties] Properties to set + * @returns {flyteidl.admin.Auth} Auth instance + */ + Auth.create = function create(properties) { + return new Auth(properties); + }; + + /** + * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Auth + * @static + * @param {flyteidl.admin.IAuth} message Auth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Auth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); + return writer; + }; + + /** + * Decodes an Auth message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Auth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Auth} Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Auth.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Auth(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.assumableIamRole = reader.string(); + break; + case 2: + message.kubernetesServiceAccount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Auth message. + * @function verify + * @memberof flyteidl.admin.Auth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Auth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + if (!$util.isString(message.assumableIamRole)) + return "assumableIamRole: string expected"; + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + if (!$util.isString(message.kubernetesServiceAccount)) + return "kubernetesServiceAccount: string expected"; + return null; + }; + + return Auth; + })(); + + admin.LaunchPlanSpec = (function() { + + /** + * Properties of a LaunchPlanSpec. + * @memberof flyteidl.admin + * @interface ILaunchPlanSpec + * @property {flyteidl.core.IIdentifier|null} [workflowId] LaunchPlanSpec workflowId + * @property {flyteidl.admin.ILaunchPlanMetadata|null} [entityMetadata] LaunchPlanSpec entityMetadata + * @property {flyteidl.core.IParameterMap|null} [defaultInputs] LaunchPlanSpec defaultInputs + * @property {flyteidl.core.ILiteralMap|null} [fixedInputs] LaunchPlanSpec fixedInputs + * @property {string|null} [role] LaunchPlanSpec role + * @property {flyteidl.admin.ILabels|null} [labels] LaunchPlanSpec labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] LaunchPlanSpec annotations + * @property {flyteidl.admin.IAuth|null} [auth] LaunchPlanSpec auth + * @property {flyteidl.admin.IAuthRole|null} [authRole] LaunchPlanSpec authRole + * @property {flyteidl.core.ISecurityContext|null} [securityContext] LaunchPlanSpec securityContext + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] LaunchPlanSpec qualityOfService + * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] LaunchPlanSpec rawOutputDataConfig + * @property {number|null} [maxParallelism] LaunchPlanSpec maxParallelism + * @property {google.protobuf.IBoolValue|null} [interruptible] LaunchPlanSpec interruptible + * @property {boolean|null} [overwriteCache] LaunchPlanSpec overwriteCache + * @property {flyteidl.admin.IEnvs|null} [envs] LaunchPlanSpec envs + */ + + /** + * Constructs a new LaunchPlanSpec. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanSpec. + * @implements ILaunchPlanSpec + * @constructor + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + */ + function LaunchPlanSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanSpec workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.workflowId = null; + + /** + * LaunchPlanSpec entityMetadata. + * @member {flyteidl.admin.ILaunchPlanMetadata|null|undefined} entityMetadata + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.entityMetadata = null; + + /** + * LaunchPlanSpec defaultInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} defaultInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.defaultInputs = null; + + /** + * LaunchPlanSpec fixedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.fixedInputs = null; + + /** + * LaunchPlanSpec role. + * @member {string} role + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.role = ""; + + /** + * LaunchPlanSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.labels = null; + + /** + * LaunchPlanSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.annotations = null; + + /** + * LaunchPlanSpec auth. + * @member {flyteidl.admin.IAuth|null|undefined} auth + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.auth = null; + + /** + * LaunchPlanSpec authRole. + * @member {flyteidl.admin.IAuthRole|null|undefined} authRole + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.authRole = null; + + /** + * LaunchPlanSpec securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.securityContext = null; + + /** + * LaunchPlanSpec qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.qualityOfService = null; + + /** + * LaunchPlanSpec rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.rawOutputDataConfig = null; + + /** + * LaunchPlanSpec maxParallelism. + * @member {number} maxParallelism + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.maxParallelism = 0; + + /** + * LaunchPlanSpec interruptible. + * @member {google.protobuf.IBoolValue|null|undefined} interruptible + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.interruptible = null; + + /** + * LaunchPlanSpec overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.overwriteCache = false; + + /** + * LaunchPlanSpec envs. + * @member {flyteidl.admin.IEnvs|null|undefined} envs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.envs = null; + + /** + * Creates a new LaunchPlanSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec instance + */ + LaunchPlanSpec.create = function create(properties) { + return new LaunchPlanSpec(properties); + }; + + /** + * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {flyteidl.admin.ILaunchPlanSpec} message LaunchPlanSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) + $root.flyteidl.admin.LaunchPlanMetadata.encode(message.entityMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) + $root.flyteidl.core.ParameterMap.encode(message.defaultInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fixedInputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.role != null && message.hasOwnProperty("role")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.role); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.auth != null && message.hasOwnProperty("auth")) + $root.flyteidl.admin.Auth.encode(message.auth, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.authRole != null && message.hasOwnProperty("authRole")) + $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) + $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.overwriteCache); + if (message.envs != null && message.hasOwnProperty("envs")) + $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.entityMetadata = $root.flyteidl.admin.LaunchPlanMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.defaultInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); + break; + case 4: + message.fixedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 5: + message.role = reader.string(); + break; + case 6: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 7: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + case 8: + message.auth = $root.flyteidl.admin.Auth.decode(reader, reader.uint32()); + break; + case 9: + message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); + break; + case 10: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 16: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 17: + message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); + break; + case 18: + message.maxParallelism = reader.int32(); + break; + case 19: + message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 20: + message.overwriteCache = reader.bool(); + break; + case 21: + message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanSpec message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + var error = $root.flyteidl.core.Identifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) { + var error = $root.flyteidl.admin.LaunchPlanMetadata.verify(message.entityMetadata); + if (error) + return "entityMetadata." + error; + } + if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) { + var error = $root.flyteidl.core.ParameterMap.verify(message.defaultInputs); + if (error) + return "defaultInputs." + error; + } + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fixedInputs); + if (error) + return "fixedInputs." + error; + } + if (message.role != null && message.hasOwnProperty("role")) + if (!$util.isString(message.role)) + return "role: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + if (message.auth != null && message.hasOwnProperty("auth")) { + var error = $root.flyteidl.admin.Auth.verify(message.auth); + if (error) + return "auth." + error; + } + if (message.authRole != null && message.hasOwnProperty("authRole")) { + var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); + if (error) + return "authRole." + error; + } + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { + var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); + if (error) + return "rawOutputDataConfig." + error; + } + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + if (!$util.isInteger(message.maxParallelism)) + return "maxParallelism: integer expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + var error = $root.google.protobuf.BoolValue.verify(message.interruptible); + if (error) + return "interruptible." + error; + } + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + if (message.envs != null && message.hasOwnProperty("envs")) { + var error = $root.flyteidl.admin.Envs.verify(message.envs); + if (error) + return "envs." + error; + } + return null; + }; + + return LaunchPlanSpec; + })(); + + admin.LaunchPlanClosure = (function() { + + /** + * Properties of a LaunchPlanClosure. + * @memberof flyteidl.admin + * @interface ILaunchPlanClosure + * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanClosure state + * @property {flyteidl.core.IParameterMap|null} [expectedInputs] LaunchPlanClosure expectedInputs + * @property {flyteidl.core.IVariableMap|null} [expectedOutputs] LaunchPlanClosure expectedOutputs + * @property {google.protobuf.ITimestamp|null} [createdAt] LaunchPlanClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] LaunchPlanClosure updatedAt + */ + + /** + * Constructs a new LaunchPlanClosure. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanClosure. + * @implements ILaunchPlanClosure + * @constructor + * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + */ + function LaunchPlanClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanClosure state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.state = 0; + + /** + * LaunchPlanClosure expectedInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} expectedInputs + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.expectedInputs = null; + + /** + * LaunchPlanClosure expectedOutputs. + * @member {flyteidl.core.IVariableMap|null|undefined} expectedOutputs + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.expectedOutputs = null; + + /** + * LaunchPlanClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.createdAt = null; + + /** + * LaunchPlanClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.updatedAt = null; + + /** + * Creates a new LaunchPlanClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure instance + */ + LaunchPlanClosure.create = function create(properties) { + return new LaunchPlanClosure(properties); + }; + + /** + * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {flyteidl.admin.ILaunchPlanClosure} message LaunchPlanClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) + $root.flyteidl.core.ParameterMap.encode(message.expectedInputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) + $root.flyteidl.core.VariableMap.encode(message.expectedOutputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.expectedInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); + break; + case 3: + message.expectedOutputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + case 4: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanClosure message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) { + var error = $root.flyteidl.core.ParameterMap.verify(message.expectedInputs); + if (error) + return "expectedInputs." + error; + } + if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.expectedOutputs); + if (error) + return "expectedOutputs." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + return null; + }; + + return LaunchPlanClosure; + })(); + + admin.LaunchPlanMetadata = (function() { + + /** + * Properties of a LaunchPlanMetadata. + * @memberof flyteidl.admin + * @interface ILaunchPlanMetadata + * @property {flyteidl.admin.ISchedule|null} [schedule] LaunchPlanMetadata schedule + * @property {Array.|null} [notifications] LaunchPlanMetadata notifications + */ + + /** + * Constructs a new LaunchPlanMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanMetadata. + * @implements ILaunchPlanMetadata + * @constructor + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + */ + function LaunchPlanMetadata(properties) { + this.notifications = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanMetadata schedule. + * @member {flyteidl.admin.ISchedule|null|undefined} schedule + * @memberof flyteidl.admin.LaunchPlanMetadata + * @instance + */ + LaunchPlanMetadata.prototype.schedule = null; + + /** + * LaunchPlanMetadata notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.LaunchPlanMetadata + * @instance + */ + LaunchPlanMetadata.prototype.notifications = $util.emptyArray; + + /** + * Creates a new LaunchPlanMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata instance + */ + LaunchPlanMetadata.create = function create(properties) { + return new LaunchPlanMetadata(properties); + }; + + /** + * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {flyteidl.admin.ILaunchPlanMetadata} message LaunchPlanMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schedule != null && message.hasOwnProperty("schedule")) + $root.flyteidl.admin.Schedule.encode(message.schedule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.schedule = $root.flyteidl.admin.Schedule.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanMetadata message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schedule != null && message.hasOwnProperty("schedule")) { + var error = $root.flyteidl.admin.Schedule.verify(message.schedule); + if (error) + return "schedule." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + return null; + }; + + return LaunchPlanMetadata; + })(); + + admin.LaunchPlanUpdateRequest = (function() { + + /** + * Properties of a LaunchPlanUpdateRequest. + * @memberof flyteidl.admin + * @interface ILaunchPlanUpdateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanUpdateRequest id + * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanUpdateRequest state + */ + + /** + * Constructs a new LaunchPlanUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanUpdateRequest. + * @implements ILaunchPlanUpdateRequest + * @constructor + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + */ + function LaunchPlanUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanUpdateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @instance + */ + LaunchPlanUpdateRequest.prototype.id = null; + + /** + * LaunchPlanUpdateRequest state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @instance + */ + LaunchPlanUpdateRequest.prototype.state = 0; + + /** + * Creates a new LaunchPlanUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest instance + */ + LaunchPlanUpdateRequest.create = function create(properties) { + return new LaunchPlanUpdateRequest(properties); + }; + + /** + * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} message LaunchPlanUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + return LaunchPlanUpdateRequest; + })(); + + admin.LaunchPlanUpdateResponse = (function() { + + /** + * Properties of a LaunchPlanUpdateResponse. + * @memberof flyteidl.admin + * @interface ILaunchPlanUpdateResponse + */ + + /** + * Constructs a new LaunchPlanUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanUpdateResponse. + * @implements ILaunchPlanUpdateResponse + * @constructor + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + */ + function LaunchPlanUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new LaunchPlanUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse instance + */ + LaunchPlanUpdateResponse.create = function create(properties) { + return new LaunchPlanUpdateResponse(properties); + }; + + /** + * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateResponse} message LaunchPlanUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return LaunchPlanUpdateResponse; + })(); + + admin.ActiveLaunchPlanRequest = (function() { + + /** + * Properties of an ActiveLaunchPlanRequest. + * @memberof flyteidl.admin + * @interface IActiveLaunchPlanRequest + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ActiveLaunchPlanRequest id + */ + + /** + * Constructs a new ActiveLaunchPlanRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ActiveLaunchPlanRequest. + * @implements IActiveLaunchPlanRequest + * @constructor + * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set + */ + function ActiveLaunchPlanRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ActiveLaunchPlanRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @instance + */ + ActiveLaunchPlanRequest.prototype.id = null; + + /** + * Creates a new ActiveLaunchPlanRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest instance + */ + ActiveLaunchPlanRequest.create = function create(properties) { + return new ActiveLaunchPlanRequest(properties); + }; + + /** + * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanRequest} message ActiveLaunchPlanRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveLaunchPlanRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveLaunchPlanRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ActiveLaunchPlanRequest message. + * @function verify + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveLaunchPlanRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ActiveLaunchPlanRequest; + })(); + + admin.ActiveLaunchPlanListRequest = (function() { + + /** + * Properties of an ActiveLaunchPlanListRequest. + * @memberof flyteidl.admin + * @interface IActiveLaunchPlanListRequest + * @property {string|null} [project] ActiveLaunchPlanListRequest project + * @property {string|null} [domain] ActiveLaunchPlanListRequest domain + * @property {number|null} [limit] ActiveLaunchPlanListRequest limit + * @property {string|null} [token] ActiveLaunchPlanListRequest token + * @property {flyteidl.admin.ISort|null} [sortBy] ActiveLaunchPlanListRequest sortBy + */ + + /** + * Constructs a new ActiveLaunchPlanListRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ActiveLaunchPlanListRequest. + * @implements IActiveLaunchPlanListRequest + * @constructor + * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set + */ + function ActiveLaunchPlanListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ActiveLaunchPlanListRequest project. + * @member {string} project + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.project = ""; + + /** + * ActiveLaunchPlanListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.domain = ""; + + /** + * ActiveLaunchPlanListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.limit = 0; + + /** + * ActiveLaunchPlanListRequest token. + * @member {string} token + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.token = ""; + + /** + * ActiveLaunchPlanListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.sortBy = null; + + /** + * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest instance + */ + ActiveLaunchPlanListRequest.create = function create(properties) { + return new ActiveLaunchPlanListRequest(properties); + }; + + /** + * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} message ActiveLaunchPlanListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveLaunchPlanListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveLaunchPlanListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.limit = reader.uint32(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ActiveLaunchPlanListRequest message. + * @function verify + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveLaunchPlanListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return ActiveLaunchPlanListRequest; + })(); + + /** + * FixedRateUnit enum. + * @name flyteidl.admin.FixedRateUnit + * @enum {string} + * @property {number} MINUTE=0 MINUTE value + * @property {number} HOUR=1 HOUR value + * @property {number} DAY=2 DAY value + */ + admin.FixedRateUnit = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MINUTE"] = 0; + values[valuesById[1] = "HOUR"] = 1; + values[valuesById[2] = "DAY"] = 2; + return values; + })(); + + admin.FixedRate = (function() { + + /** + * Properties of a FixedRate. + * @memberof flyteidl.admin + * @interface IFixedRate + * @property {number|null} [value] FixedRate value + * @property {flyteidl.admin.FixedRateUnit|null} [unit] FixedRate unit + */ + + /** + * Constructs a new FixedRate. + * @memberof flyteidl.admin + * @classdesc Represents a FixedRate. + * @implements IFixedRate + * @constructor + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + */ + function FixedRate(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FixedRate value. + * @member {number} value + * @memberof flyteidl.admin.FixedRate + * @instance + */ + FixedRate.prototype.value = 0; + + /** + * FixedRate unit. + * @member {flyteidl.admin.FixedRateUnit} unit + * @memberof flyteidl.admin.FixedRate + * @instance + */ + FixedRate.prototype.unit = 0; + + /** + * Creates a new FixedRate instance using the specified properties. + * @function create + * @memberof flyteidl.admin.FixedRate + * @static + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + * @returns {flyteidl.admin.FixedRate} FixedRate instance + */ + FixedRate.create = function create(properties) { + return new FixedRate(properties); + }; + + /** + * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.FixedRate + * @static + * @param {flyteidl.admin.IFixedRate} message FixedRate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FixedRate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); + if (message.unit != null && message.hasOwnProperty("unit")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unit); + return writer; + }; + + /** + * Decodes a FixedRate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.FixedRate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.FixedRate} FixedRate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FixedRate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FixedRate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint32(); + break; + case 2: + message.unit = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FixedRate message. + * @function verify + * @memberof flyteidl.admin.FixedRate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FixedRate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + if (message.unit != null && message.hasOwnProperty("unit")) + switch (message.unit) { + default: + return "unit: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + return FixedRate; + })(); + + admin.CronSchedule = (function() { + + /** + * Properties of a CronSchedule. + * @memberof flyteidl.admin + * @interface ICronSchedule + * @property {string|null} [schedule] CronSchedule schedule + * @property {string|null} [offset] CronSchedule offset + */ + + /** + * Constructs a new CronSchedule. + * @memberof flyteidl.admin + * @classdesc Represents a CronSchedule. + * @implements ICronSchedule + * @constructor + * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set + */ + function CronSchedule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CronSchedule schedule. + * @member {string} schedule + * @memberof flyteidl.admin.CronSchedule + * @instance + */ + CronSchedule.prototype.schedule = ""; + + /** + * CronSchedule offset. + * @member {string} offset + * @memberof flyteidl.admin.CronSchedule + * @instance + */ + CronSchedule.prototype.offset = ""; + + /** + * Creates a new CronSchedule instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set + * @returns {flyteidl.admin.CronSchedule} CronSchedule instance + */ + CronSchedule.create = function create(properties) { + return new CronSchedule(properties); + }; + + /** + * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {flyteidl.admin.ICronSchedule} message CronSchedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CronSchedule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schedule != null && message.hasOwnProperty("schedule")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); + if (message.offset != null && message.hasOwnProperty("offset")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.offset); + return writer; + }; + + /** + * Decodes a CronSchedule message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CronSchedule} CronSchedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CronSchedule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CronSchedule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.schedule = reader.string(); + break; + case 2: + message.offset = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CronSchedule message. + * @function verify + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CronSchedule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schedule != null && message.hasOwnProperty("schedule")) + if (!$util.isString(message.schedule)) + return "schedule: string expected"; + if (message.offset != null && message.hasOwnProperty("offset")) + if (!$util.isString(message.offset)) + return "offset: string expected"; + return null; + }; + + return CronSchedule; + })(); + + admin.Schedule = (function() { + + /** + * Properties of a Schedule. + * @memberof flyteidl.admin + * @interface ISchedule + * @property {string|null} [cronExpression] Schedule cronExpression + * @property {flyteidl.admin.IFixedRate|null} [rate] Schedule rate + * @property {flyteidl.admin.ICronSchedule|null} [cronSchedule] Schedule cronSchedule + * @property {string|null} [kickoffTimeInputArg] Schedule kickoffTimeInputArg + */ + + /** + * Constructs a new Schedule. + * @memberof flyteidl.admin + * @classdesc Represents a Schedule. + * @implements ISchedule + * @constructor + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set + */ + function Schedule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Schedule cronExpression. + * @member {string} cronExpression + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.cronExpression = ""; + + /** + * Schedule rate. + * @member {flyteidl.admin.IFixedRate|null|undefined} rate + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.rate = null; + + /** + * Schedule cronSchedule. + * @member {flyteidl.admin.ICronSchedule|null|undefined} cronSchedule + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.cronSchedule = null; + + /** + * Schedule kickoffTimeInputArg. + * @member {string} kickoffTimeInputArg + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.kickoffTimeInputArg = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Schedule ScheduleExpression. + * @member {"cronExpression"|"rate"|"cronSchedule"|undefined} ScheduleExpression + * @memberof flyteidl.admin.Schedule + * @instance + */ + Object.defineProperty(Schedule.prototype, "ScheduleExpression", { + get: $util.oneOfGetter($oneOfFields = ["cronExpression", "rate", "cronSchedule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Schedule instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Schedule + * @static + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set + * @returns {flyteidl.admin.Schedule} Schedule instance + */ + Schedule.create = function create(properties) { + return new Schedule(properties); + }; + + /** + * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Schedule + * @static + * @param {flyteidl.admin.ISchedule} message Schedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schedule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cronExpression); + if (message.rate != null && message.hasOwnProperty("rate")) + $root.flyteidl.admin.FixedRate.encode(message.rate, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.kickoffTimeInputArg); + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) + $root.flyteidl.admin.CronSchedule.encode(message.cronSchedule, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Schedule message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Schedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Schedule} Schedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schedule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Schedule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cronExpression = reader.string(); + break; + case 2: + message.rate = $root.flyteidl.admin.FixedRate.decode(reader, reader.uint32()); + break; + case 4: + message.cronSchedule = $root.flyteidl.admin.CronSchedule.decode(reader, reader.uint32()); + break; + case 3: + message.kickoffTimeInputArg = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Schedule message. + * @function verify + * @memberof flyteidl.admin.Schedule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Schedule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) { + properties.ScheduleExpression = 1; + if (!$util.isString(message.cronExpression)) + return "cronExpression: string expected"; + } + if (message.rate != null && message.hasOwnProperty("rate")) { + if (properties.ScheduleExpression === 1) + return "ScheduleExpression: multiple values"; + properties.ScheduleExpression = 1; + { + var error = $root.flyteidl.admin.FixedRate.verify(message.rate); + if (error) + return "rate." + error; + } + } + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) { + if (properties.ScheduleExpression === 1) + return "ScheduleExpression: multiple values"; + properties.ScheduleExpression = 1; + { + var error = $root.flyteidl.admin.CronSchedule.verify(message.cronSchedule); + if (error) + return "cronSchedule." + error; + } + } + if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) + if (!$util.isString(message.kickoffTimeInputArg)) + return "kickoffTimeInputArg: string expected"; + return null; + }; + + return Schedule; + })(); + + /** + * MatchableResource enum. + * @name flyteidl.admin.MatchableResource + * @enum {string} + * @property {number} TASK_RESOURCE=0 TASK_RESOURCE value + * @property {number} CLUSTER_RESOURCE=1 CLUSTER_RESOURCE value + * @property {number} EXECUTION_QUEUE=2 EXECUTION_QUEUE value + * @property {number} EXECUTION_CLUSTER_LABEL=3 EXECUTION_CLUSTER_LABEL value + * @property {number} QUALITY_OF_SERVICE_SPECIFICATION=4 QUALITY_OF_SERVICE_SPECIFICATION value + * @property {number} PLUGIN_OVERRIDE=5 PLUGIN_OVERRIDE value + * @property {number} WORKFLOW_EXECUTION_CONFIG=6 WORKFLOW_EXECUTION_CONFIG value + * @property {number} CLUSTER_ASSIGNMENT=7 CLUSTER_ASSIGNMENT value + */ + admin.MatchableResource = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TASK_RESOURCE"] = 0; + values[valuesById[1] = "CLUSTER_RESOURCE"] = 1; + values[valuesById[2] = "EXECUTION_QUEUE"] = 2; + values[valuesById[3] = "EXECUTION_CLUSTER_LABEL"] = 3; + values[valuesById[4] = "QUALITY_OF_SERVICE_SPECIFICATION"] = 4; + values[valuesById[5] = "PLUGIN_OVERRIDE"] = 5; + values[valuesById[6] = "WORKFLOW_EXECUTION_CONFIG"] = 6; + values[valuesById[7] = "CLUSTER_ASSIGNMENT"] = 7; + return values; + })(); + + admin.TaskResourceSpec = (function() { + + /** + * Properties of a TaskResourceSpec. + * @memberof flyteidl.admin + * @interface ITaskResourceSpec + * @property {string|null} [cpu] TaskResourceSpec cpu + * @property {string|null} [gpu] TaskResourceSpec gpu + * @property {string|null} [memory] TaskResourceSpec memory + * @property {string|null} [storage] TaskResourceSpec storage + * @property {string|null} [ephemeralStorage] TaskResourceSpec ephemeralStorage + */ + + /** + * Constructs a new TaskResourceSpec. + * @memberof flyteidl.admin + * @classdesc Represents a TaskResourceSpec. + * @implements ITaskResourceSpec + * @constructor + * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set + */ + function TaskResourceSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskResourceSpec cpu. + * @member {string} cpu + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.cpu = ""; + + /** + * TaskResourceSpec gpu. + * @member {string} gpu + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.gpu = ""; + + /** + * TaskResourceSpec memory. + * @member {string} memory + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.memory = ""; + + /** + * TaskResourceSpec storage. + * @member {string} storage + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.storage = ""; + + /** + * TaskResourceSpec ephemeralStorage. + * @member {string} ephemeralStorage + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.ephemeralStorage = ""; + + /** + * Creates a new TaskResourceSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set + * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec instance + */ + TaskResourceSpec.create = function create(properties) { + return new TaskResourceSpec(properties); + }; + + /** + * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {flyteidl.admin.ITaskResourceSpec} message TaskResourceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskResourceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && message.hasOwnProperty("cpu")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cpu); + if (message.gpu != null && message.hasOwnProperty("gpu")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gpu); + if (message.memory != null && message.hasOwnProperty("memory")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.memory); + if (message.storage != null && message.hasOwnProperty("storage")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.storage); + if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.ephemeralStorage); + return writer; + }; + + /** + * Decodes a TaskResourceSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskResourceSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cpu = reader.string(); + break; + case 2: + message.gpu = reader.string(); + break; + case 3: + message.memory = reader.string(); + break; + case 4: + message.storage = reader.string(); + break; + case 5: + message.ephemeralStorage = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskResourceSpec message. + * @function verify + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskResourceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (!$util.isString(message.cpu)) + return "cpu: string expected"; + if (message.gpu != null && message.hasOwnProperty("gpu")) + if (!$util.isString(message.gpu)) + return "gpu: string expected"; + if (message.memory != null && message.hasOwnProperty("memory")) + if (!$util.isString(message.memory)) + return "memory: string expected"; + if (message.storage != null && message.hasOwnProperty("storage")) + if (!$util.isString(message.storage)) + return "storage: string expected"; + if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) + if (!$util.isString(message.ephemeralStorage)) + return "ephemeralStorage: string expected"; + return null; + }; + + return TaskResourceSpec; + })(); + + admin.TaskResourceAttributes = (function() { + + /** + * Properties of a TaskResourceAttributes. + * @memberof flyteidl.admin + * @interface ITaskResourceAttributes + * @property {flyteidl.admin.ITaskResourceSpec|null} [defaults] TaskResourceAttributes defaults + * @property {flyteidl.admin.ITaskResourceSpec|null} [limits] TaskResourceAttributes limits + */ + + /** + * Constructs a new TaskResourceAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a TaskResourceAttributes. + * @implements ITaskResourceAttributes + * @constructor + * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set + */ + function TaskResourceAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskResourceAttributes defaults. + * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} defaults + * @memberof flyteidl.admin.TaskResourceAttributes + * @instance + */ + TaskResourceAttributes.prototype.defaults = null; + + /** + * TaskResourceAttributes limits. + * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} limits + * @memberof flyteidl.admin.TaskResourceAttributes + * @instance + */ + TaskResourceAttributes.prototype.limits = null; + + /** + * Creates a new TaskResourceAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes instance + */ + TaskResourceAttributes.create = function create(properties) { + return new TaskResourceAttributes(properties); + }; + + /** + * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {flyteidl.admin.ITaskResourceAttributes} message TaskResourceAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskResourceAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaults != null && message.hasOwnProperty("defaults")) + $root.flyteidl.admin.TaskResourceSpec.encode(message.defaults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limits != null && message.hasOwnProperty("limits")) + $root.flyteidl.admin.TaskResourceSpec.encode(message.limits, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskResourceAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskResourceAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.defaults = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); + break; + case 2: + message.limits = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskResourceAttributes message. + * @function verify + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskResourceAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaults != null && message.hasOwnProperty("defaults")) { + var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.defaults); + if (error) + return "defaults." + error; + } + if (message.limits != null && message.hasOwnProperty("limits")) { + var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.limits); + if (error) + return "limits." + error; + } + return null; + }; + + return TaskResourceAttributes; + })(); + + admin.ClusterResourceAttributes = (function() { + + /** + * Properties of a ClusterResourceAttributes. + * @memberof flyteidl.admin + * @interface IClusterResourceAttributes + * @property {Object.|null} [attributes] ClusterResourceAttributes attributes + */ + + /** + * Constructs a new ClusterResourceAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a ClusterResourceAttributes. + * @implements IClusterResourceAttributes + * @constructor + * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set + */ + function ClusterResourceAttributes(properties) { + this.attributes = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ClusterResourceAttributes attributes. + * @member {Object.} attributes + * @memberof flyteidl.admin.ClusterResourceAttributes + * @instance + */ + ClusterResourceAttributes.prototype.attributes = $util.emptyObject; + + /** + * Creates a new ClusterResourceAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes instance + */ + ClusterResourceAttributes.create = function create(properties) { + return new ClusterResourceAttributes(properties); + }; + + /** + * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {flyteidl.admin.IClusterResourceAttributes} message ClusterResourceAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClusterResourceAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attributes[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a ClusterResourceAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClusterResourceAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterResourceAttributes(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.attributes === $util.emptyObject) + message.attributes = {}; + key = reader.string(); + reader.pos++; + message.attributes[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ClusterResourceAttributes message. + * @function verify + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClusterResourceAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + if (!$util.isObject(message.attributes)) + return "attributes: object expected"; + var key = Object.keys(message.attributes); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.attributes[key[i]])) + return "attributes: string{k:string} expected"; + } + return null; + }; + + return ClusterResourceAttributes; + })(); + + admin.ExecutionQueueAttributes = (function() { + + /** + * Properties of an ExecutionQueueAttributes. + * @memberof flyteidl.admin + * @interface IExecutionQueueAttributes + * @property {Array.|null} [tags] ExecutionQueueAttributes tags + */ + + /** + * Constructs a new ExecutionQueueAttributes. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionQueueAttributes. + * @implements IExecutionQueueAttributes + * @constructor + * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set + */ + function ExecutionQueueAttributes(properties) { + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionQueueAttributes tags. + * @member {Array.} tags + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @instance + */ + ExecutionQueueAttributes.prototype.tags = $util.emptyArray; + + /** + * Creates a new ExecutionQueueAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes instance + */ + ExecutionQueueAttributes.create = function create(properties) { + return new ExecutionQueueAttributes(properties); + }; + + /** + * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {flyteidl.admin.IExecutionQueueAttributes} message ExecutionQueueAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionQueueAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tags[i]); + return writer; + }; + + /** + * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionQueueAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionQueueAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionQueueAttributes message. + * @function verify + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionQueueAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + return ExecutionQueueAttributes; + })(); + + admin.ExecutionClusterLabel = (function() { + + /** + * Properties of an ExecutionClusterLabel. + * @memberof flyteidl.admin + * @interface IExecutionClusterLabel + * @property {string|null} [value] ExecutionClusterLabel value + */ + + /** + * Constructs a new ExecutionClusterLabel. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionClusterLabel. + * @implements IExecutionClusterLabel + * @constructor + * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set + */ + function ExecutionClusterLabel(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionClusterLabel value. + * @member {string} value + * @memberof flyteidl.admin.ExecutionClusterLabel + * @instance + */ + ExecutionClusterLabel.prototype.value = ""; + + /** + * Creates a new ExecutionClusterLabel instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel instance + */ + ExecutionClusterLabel.create = function create(properties) { + return new ExecutionClusterLabel(properties); + }; + + /** + * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {flyteidl.admin.IExecutionClusterLabel} message ExecutionClusterLabel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionClusterLabel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Decodes an ExecutionClusterLabel message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionClusterLabel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClusterLabel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionClusterLabel message. + * @function verify + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionClusterLabel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return ExecutionClusterLabel; + })(); + + admin.PluginOverride = (function() { + + /** + * Properties of a PluginOverride. + * @memberof flyteidl.admin + * @interface IPluginOverride + * @property {string|null} [taskType] PluginOverride taskType + * @property {Array.|null} [pluginId] PluginOverride pluginId + * @property {flyteidl.admin.PluginOverride.MissingPluginBehavior|null} [missingPluginBehavior] PluginOverride missingPluginBehavior + */ + + /** + * Constructs a new PluginOverride. + * @memberof flyteidl.admin + * @classdesc Represents a PluginOverride. + * @implements IPluginOverride + * @constructor + * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set + */ + function PluginOverride(properties) { + this.pluginId = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PluginOverride taskType. + * @member {string} taskType + * @memberof flyteidl.admin.PluginOverride + * @instance + */ + PluginOverride.prototype.taskType = ""; + + /** + * PluginOverride pluginId. + * @member {Array.} pluginId + * @memberof flyteidl.admin.PluginOverride + * @instance + */ + PluginOverride.prototype.pluginId = $util.emptyArray; + + /** + * PluginOverride missingPluginBehavior. + * @member {flyteidl.admin.PluginOverride.MissingPluginBehavior} missingPluginBehavior + * @memberof flyteidl.admin.PluginOverride + * @instance + */ + PluginOverride.prototype.missingPluginBehavior = 0; + + /** + * Creates a new PluginOverride instance using the specified properties. + * @function create + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set + * @returns {flyteidl.admin.PluginOverride} PluginOverride instance + */ + PluginOverride.create = function create(properties) { + return new PluginOverride(properties); + }; + + /** + * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {flyteidl.admin.IPluginOverride} message PluginOverride message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PluginOverride.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.pluginId != null && message.pluginId.length) + for (var i = 0; i < message.pluginId.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pluginId[i]); + if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.missingPluginBehavior); + return writer; + }; + + /** + * Decodes a PluginOverride message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.PluginOverride} PluginOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PluginOverride.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverride(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + if (!(message.pluginId && message.pluginId.length)) + message.pluginId = []; + message.pluginId.push(reader.string()); + break; + case 4: + message.missingPluginBehavior = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PluginOverride message. + * @function verify + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PluginOverride.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.pluginId != null && message.hasOwnProperty("pluginId")) { + if (!Array.isArray(message.pluginId)) + return "pluginId: array expected"; + for (var i = 0; i < message.pluginId.length; ++i) + if (!$util.isString(message.pluginId[i])) + return "pluginId: string[] expected"; + } + if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) + switch (message.missingPluginBehavior) { + default: + return "missingPluginBehavior: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * MissingPluginBehavior enum. + * @name flyteidl.admin.PluginOverride.MissingPluginBehavior + * @enum {string} + * @property {number} FAIL=0 FAIL value + * @property {number} USE_DEFAULT=1 USE_DEFAULT value + */ + PluginOverride.MissingPluginBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FAIL"] = 0; + values[valuesById[1] = "USE_DEFAULT"] = 1; + return values; + })(); + + return PluginOverride; + })(); + + admin.PluginOverrides = (function() { + + /** + * Properties of a PluginOverrides. + * @memberof flyteidl.admin + * @interface IPluginOverrides + * @property {Array.|null} [overrides] PluginOverrides overrides + */ + + /** + * Constructs a new PluginOverrides. + * @memberof flyteidl.admin + * @classdesc Represents a PluginOverrides. + * @implements IPluginOverrides + * @constructor + * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set + */ + function PluginOverrides(properties) { + this.overrides = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PluginOverrides overrides. + * @member {Array.} overrides + * @memberof flyteidl.admin.PluginOverrides + * @instance + */ + PluginOverrides.prototype.overrides = $util.emptyArray; + + /** + * Creates a new PluginOverrides instance using the specified properties. + * @function create + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set + * @returns {flyteidl.admin.PluginOverrides} PluginOverrides instance + */ + PluginOverrides.create = function create(properties) { + return new PluginOverrides(properties); + }; + + /** + * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {flyteidl.admin.IPluginOverrides} message PluginOverrides message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PluginOverrides.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.overrides != null && message.overrides.length) + for (var i = 0; i < message.overrides.length; ++i) + $root.flyteidl.admin.PluginOverride.encode(message.overrides[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a PluginOverrides message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.PluginOverrides} PluginOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PluginOverrides.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverrides(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.overrides && message.overrides.length)) + message.overrides = []; + message.overrides.push($root.flyteidl.admin.PluginOverride.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PluginOverrides message. + * @function verify + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PluginOverrides.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.overrides != null && message.hasOwnProperty("overrides")) { + if (!Array.isArray(message.overrides)) + return "overrides: array expected"; + for (var i = 0; i < message.overrides.length; ++i) { + var error = $root.flyteidl.admin.PluginOverride.verify(message.overrides[i]); + if (error) + return "overrides." + error; + } + } + return null; + }; + + return PluginOverrides; + })(); + + admin.WorkflowExecutionConfig = (function() { + + /** + * Properties of a WorkflowExecutionConfig. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionConfig + * @property {number|null} [maxParallelism] WorkflowExecutionConfig maxParallelism + * @property {flyteidl.core.ISecurityContext|null} [securityContext] WorkflowExecutionConfig securityContext + * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] WorkflowExecutionConfig rawOutputDataConfig + * @property {flyteidl.admin.ILabels|null} [labels] WorkflowExecutionConfig labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] WorkflowExecutionConfig annotations + * @property {google.protobuf.IBoolValue|null} [interruptible] WorkflowExecutionConfig interruptible + * @property {boolean|null} [overwriteCache] WorkflowExecutionConfig overwriteCache + * @property {flyteidl.admin.IEnvs|null} [envs] WorkflowExecutionConfig envs + */ + + /** + * Constructs a new WorkflowExecutionConfig. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionConfig. + * @implements IWorkflowExecutionConfig + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set + */ + function WorkflowExecutionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionConfig maxParallelism. + * @member {number} maxParallelism + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.maxParallelism = 0; + + /** + * WorkflowExecutionConfig securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.securityContext = null; + + /** + * WorkflowExecutionConfig rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.rawOutputDataConfig = null; + + /** + * WorkflowExecutionConfig labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.labels = null; + + /** + * WorkflowExecutionConfig annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.annotations = null; + + /** + * WorkflowExecutionConfig interruptible. + * @member {google.protobuf.IBoolValue|null|undefined} interruptible + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.interruptible = null; + + /** + * WorkflowExecutionConfig overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.overwriteCache = false; + + /** + * WorkflowExecutionConfig envs. + * @member {flyteidl.admin.IEnvs|null|undefined} envs + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.envs = null; + + /** + * Creates a new WorkflowExecutionConfig instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig instance + */ + WorkflowExecutionConfig.create = function create(properties) { + return new WorkflowExecutionConfig(properties); + }; + + /** + * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {flyteidl.admin.IWorkflowExecutionConfig} message WorkflowExecutionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxParallelism); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) + $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.overwriteCache); + if (message.envs != null && message.hasOwnProperty("envs")) + $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxParallelism = reader.int32(); + break; + case 2: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 3: + message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); + break; + case 4: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 5: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + case 6: + message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 7: + message.overwriteCache = reader.bool(); + break; + case 8: + message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionConfig message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + if (!$util.isInteger(message.maxParallelism)) + return "maxParallelism: integer expected"; + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { + var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); + if (error) + return "rawOutputDataConfig." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + var error = $root.google.protobuf.BoolValue.verify(message.interruptible); + if (error) + return "interruptible." + error; + } + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + if (message.envs != null && message.hasOwnProperty("envs")) { + var error = $root.flyteidl.admin.Envs.verify(message.envs); + if (error) + return "envs." + error; + } + return null; + }; + + return WorkflowExecutionConfig; + })(); + + admin.MatchingAttributes = (function() { + + /** + * Properties of a MatchingAttributes. + * @memberof flyteidl.admin + * @interface IMatchingAttributes + * @property {flyteidl.admin.ITaskResourceAttributes|null} [taskResourceAttributes] MatchingAttributes taskResourceAttributes + * @property {flyteidl.admin.IClusterResourceAttributes|null} [clusterResourceAttributes] MatchingAttributes clusterResourceAttributes + * @property {flyteidl.admin.IExecutionQueueAttributes|null} [executionQueueAttributes] MatchingAttributes executionQueueAttributes + * @property {flyteidl.admin.IExecutionClusterLabel|null} [executionClusterLabel] MatchingAttributes executionClusterLabel + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] MatchingAttributes qualityOfService + * @property {flyteidl.admin.IPluginOverrides|null} [pluginOverrides] MatchingAttributes pluginOverrides + * @property {flyteidl.admin.IWorkflowExecutionConfig|null} [workflowExecutionConfig] MatchingAttributes workflowExecutionConfig + * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] MatchingAttributes clusterAssignment + */ + + /** + * Constructs a new MatchingAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a MatchingAttributes. + * @implements IMatchingAttributes + * @constructor + * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set + */ + function MatchingAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MatchingAttributes taskResourceAttributes. + * @member {flyteidl.admin.ITaskResourceAttributes|null|undefined} taskResourceAttributes + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.taskResourceAttributes = null; + + /** + * MatchingAttributes clusterResourceAttributes. + * @member {flyteidl.admin.IClusterResourceAttributes|null|undefined} clusterResourceAttributes + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.clusterResourceAttributes = null; + + /** + * MatchingAttributes executionQueueAttributes. + * @member {flyteidl.admin.IExecutionQueueAttributes|null|undefined} executionQueueAttributes + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.executionQueueAttributes = null; + + /** + * MatchingAttributes executionClusterLabel. + * @member {flyteidl.admin.IExecutionClusterLabel|null|undefined} executionClusterLabel + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.executionClusterLabel = null; + + /** + * MatchingAttributes qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.qualityOfService = null; + + /** + * MatchingAttributes pluginOverrides. + * @member {flyteidl.admin.IPluginOverrides|null|undefined} pluginOverrides + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.pluginOverrides = null; + + /** + * MatchingAttributes workflowExecutionConfig. + * @member {flyteidl.admin.IWorkflowExecutionConfig|null|undefined} workflowExecutionConfig + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.workflowExecutionConfig = null; + + /** + * MatchingAttributes clusterAssignment. + * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.clusterAssignment = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MatchingAttributes target. + * @member {"taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"|undefined} target + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + Object.defineProperty(MatchingAttributes.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["taskResourceAttributes", "clusterResourceAttributes", "executionQueueAttributes", "executionClusterLabel", "qualityOfService", "pluginOverrides", "workflowExecutionConfig", "clusterAssignment"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MatchingAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes instance + */ + MatchingAttributes.create = function create(properties) { + return new MatchingAttributes(properties); + }; + + /** + * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {flyteidl.admin.IMatchingAttributes} message MatchingAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MatchingAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) + $root.flyteidl.admin.TaskResourceAttributes.encode(message.taskResourceAttributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) + $root.flyteidl.admin.ClusterResourceAttributes.encode(message.clusterResourceAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) + $root.flyteidl.admin.ExecutionQueueAttributes.encode(message.executionQueueAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) + $root.flyteidl.admin.ExecutionClusterLabel.encode(message.executionClusterLabel, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) + $root.flyteidl.admin.PluginOverrides.encode(message.pluginOverrides, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) + $root.flyteidl.admin.WorkflowExecutionConfig.encode(message.workflowExecutionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) + $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MatchingAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MatchingAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchingAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskResourceAttributes = $root.flyteidl.admin.TaskResourceAttributes.decode(reader, reader.uint32()); + break; + case 2: + message.clusterResourceAttributes = $root.flyteidl.admin.ClusterResourceAttributes.decode(reader, reader.uint32()); + break; + case 3: + message.executionQueueAttributes = $root.flyteidl.admin.ExecutionQueueAttributes.decode(reader, reader.uint32()); + break; + case 4: + message.executionClusterLabel = $root.flyteidl.admin.ExecutionClusterLabel.decode(reader, reader.uint32()); + break; + case 5: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 6: + message.pluginOverrides = $root.flyteidl.admin.PluginOverrides.decode(reader, reader.uint32()); + break; + case 7: + message.workflowExecutionConfig = $root.flyteidl.admin.WorkflowExecutionConfig.decode(reader, reader.uint32()); + break; + case 8: + message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MatchingAttributes message. + * @function verify + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MatchingAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) { + properties.target = 1; + { + var error = $root.flyteidl.admin.TaskResourceAttributes.verify(message.taskResourceAttributes); + if (error) + return "taskResourceAttributes." + error; + } + } + if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ClusterResourceAttributes.verify(message.clusterResourceAttributes); + if (error) + return "clusterResourceAttributes." + error; + } + } + if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ExecutionQueueAttributes.verify(message.executionQueueAttributes); + if (error) + return "executionQueueAttributes." + error; + } + } + if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ExecutionClusterLabel.verify(message.executionClusterLabel); + if (error) + return "executionClusterLabel." + error; + } + } + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + } + if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.PluginOverrides.verify(message.pluginOverrides); + if (error) + return "pluginOverrides." + error; + } + } + if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.WorkflowExecutionConfig.verify(message.workflowExecutionConfig); + if (error) + return "workflowExecutionConfig." + error; + } + } + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); + if (error) + return "clusterAssignment." + error; + } + } + return null; + }; + + return MatchingAttributes; + })(); + + admin.MatchableAttributesConfiguration = (function() { + + /** + * Properties of a MatchableAttributesConfiguration. + * @memberof flyteidl.admin + * @interface IMatchableAttributesConfiguration + * @property {flyteidl.admin.IMatchingAttributes|null} [attributes] MatchableAttributesConfiguration attributes + * @property {string|null} [domain] MatchableAttributesConfiguration domain + * @property {string|null} [project] MatchableAttributesConfiguration project + * @property {string|null} [workflow] MatchableAttributesConfiguration workflow + * @property {string|null} [launchPlan] MatchableAttributesConfiguration launchPlan + */ + + /** + * Constructs a new MatchableAttributesConfiguration. + * @memberof flyteidl.admin + * @classdesc Represents a MatchableAttributesConfiguration. + * @implements IMatchableAttributesConfiguration + * @constructor + * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set + */ + function MatchableAttributesConfiguration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MatchableAttributesConfiguration attributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} attributes + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.attributes = null; + + /** + * MatchableAttributesConfiguration domain. + * @member {string} domain + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.domain = ""; + + /** + * MatchableAttributesConfiguration project. + * @member {string} project + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.project = ""; + + /** + * MatchableAttributesConfiguration workflow. + * @member {string} workflow + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.workflow = ""; + + /** + * MatchableAttributesConfiguration launchPlan. + * @member {string} launchPlan + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.launchPlan = ""; + + /** + * Creates a new MatchableAttributesConfiguration instance using the specified properties. + * @function create + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set + * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration instance + */ + MatchableAttributesConfiguration.create = function create(properties) { + return new MatchableAttributesConfiguration(properties); + }; + + /** + * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {flyteidl.admin.IMatchableAttributesConfiguration} message MatchableAttributesConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MatchableAttributesConfiguration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.project); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow); + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.launchPlan); + return writer; + }; + + /** + * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MatchableAttributesConfiguration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchableAttributesConfiguration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.project = reader.string(); + break; + case 4: + message.workflow = reader.string(); + break; + case 5: + message.launchPlan = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MatchableAttributesConfiguration message. + * @function verify + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MatchableAttributesConfiguration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) + if (!$util.isString(message.launchPlan)) + return "launchPlan: string expected"; + return null; + }; + + return MatchableAttributesConfiguration; + })(); + + admin.ListMatchableAttributesRequest = (function() { + + /** + * Properties of a ListMatchableAttributesRequest. + * @memberof flyteidl.admin + * @interface IListMatchableAttributesRequest + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ListMatchableAttributesRequest resourceType + */ + + /** + * Constructs a new ListMatchableAttributesRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ListMatchableAttributesRequest. + * @implements IListMatchableAttributesRequest + * @constructor + * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set + */ + function ListMatchableAttributesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListMatchableAttributesRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @instance + */ + ListMatchableAttributesRequest.prototype.resourceType = 0; + + /** + * Creates a new ListMatchableAttributesRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest instance + */ + ListMatchableAttributesRequest.create = function create(properties) { + return new ListMatchableAttributesRequest(properties); + }; + + /** + * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {flyteidl.admin.IListMatchableAttributesRequest} message ListMatchableAttributesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMatchableAttributesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + return writer; + }; + + /** + * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMatchableAttributesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListMatchableAttributesRequest message. + * @function verify + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListMatchableAttributesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + return ListMatchableAttributesRequest; + })(); + + admin.ListMatchableAttributesResponse = (function() { + + /** + * Properties of a ListMatchableAttributesResponse. + * @memberof flyteidl.admin + * @interface IListMatchableAttributesResponse + * @property {Array.|null} [configurations] ListMatchableAttributesResponse configurations + */ + + /** + * Constructs a new ListMatchableAttributesResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ListMatchableAttributesResponse. + * @implements IListMatchableAttributesResponse + * @constructor + * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set + */ + function ListMatchableAttributesResponse(properties) { + this.configurations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListMatchableAttributesResponse configurations. + * @member {Array.} configurations + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @instance + */ + ListMatchableAttributesResponse.prototype.configurations = $util.emptyArray; + + /** + * Creates a new ListMatchableAttributesResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse instance + */ + ListMatchableAttributesResponse.create = function create(properties) { + return new ListMatchableAttributesResponse(properties); + }; + + /** + * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {flyteidl.admin.IListMatchableAttributesResponse} message ListMatchableAttributesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMatchableAttributesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.configurations != null && message.configurations.length) + for (var i = 0; i < message.configurations.length; ++i) + $root.flyteidl.admin.MatchableAttributesConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMatchableAttributesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.configurations && message.configurations.length)) + message.configurations = []; + message.configurations.push($root.flyteidl.admin.MatchableAttributesConfiguration.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListMatchableAttributesResponse message. + * @function verify + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListMatchableAttributesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.configurations != null && message.hasOwnProperty("configurations")) { + if (!Array.isArray(message.configurations)) + return "configurations: array expected"; + for (var i = 0; i < message.configurations.length; ++i) { + var error = $root.flyteidl.admin.MatchableAttributesConfiguration.verify(message.configurations[i]); + if (error) + return "configurations." + error; + } + } + return null; + }; + + return ListMatchableAttributesResponse; + })(); + + admin.NodeExecutionGetRequest = (function() { + + /** + * Properties of a NodeExecutionGetRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionGetRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetRequest id + */ + + /** + * Constructs a new NodeExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetRequest. + * @implements INodeExecutionGetRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + */ + function NodeExecutionGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @instance + */ + NodeExecutionGetRequest.prototype.id = null; + + /** + * Creates a new NodeExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest instance + */ + NodeExecutionGetRequest.create = function create(properties) { + return new NodeExecutionGetRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetRequest} message NodeExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NodeExecutionGetRequest; + })(); + + admin.NodeExecutionListRequest = (function() { + + /** + * Properties of a NodeExecutionListRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionListRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] NodeExecutionListRequest workflowExecutionId + * @property {number|null} [limit] NodeExecutionListRequest limit + * @property {string|null} [token] NodeExecutionListRequest token + * @property {string|null} [filters] NodeExecutionListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionListRequest sortBy + * @property {string|null} [uniqueParentId] NodeExecutionListRequest uniqueParentId + */ + + /** + * Constructs a new NodeExecutionListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionListRequest. + * @implements INodeExecutionListRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set + */ + function NodeExecutionListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionListRequest workflowExecutionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.workflowExecutionId = null; + + /** + * NodeExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.limit = 0; + + /** + * NodeExecutionListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.token = ""; + + /** + * NodeExecutionListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.filters = ""; + + /** + * NodeExecutionListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.sortBy = null; + + /** + * NodeExecutionListRequest uniqueParentId. + * @member {string} uniqueParentId + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.uniqueParentId = ""; + + /** + * Creates a new NodeExecutionListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest instance + */ + NodeExecutionListRequest.create = function create(properties) { + return new NodeExecutionListRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {flyteidl.admin.INodeExecutionListRequest} message NodeExecutionListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.uniqueParentId); + return writer; + }; + + /** + * Decodes a NodeExecutionListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 6: + message.uniqueParentId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionListRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); + if (error) + return "workflowExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) + if (!$util.isString(message.uniqueParentId)) + return "uniqueParentId: string expected"; + return null; + }; + + return NodeExecutionListRequest; + })(); + + admin.NodeExecutionForTaskListRequest = (function() { + + /** + * Properties of a NodeExecutionForTaskListRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionForTaskListRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] NodeExecutionForTaskListRequest taskExecutionId + * @property {number|null} [limit] NodeExecutionForTaskListRequest limit + * @property {string|null} [token] NodeExecutionForTaskListRequest token + * @property {string|null} [filters] NodeExecutionForTaskListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionForTaskListRequest sortBy + */ + + /** + * Constructs a new NodeExecutionForTaskListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionForTaskListRequest. + * @implements INodeExecutionForTaskListRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + */ + function NodeExecutionForTaskListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionForTaskListRequest taskExecutionId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.taskExecutionId = null; + + /** + * NodeExecutionForTaskListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.limit = 0; + + /** + * NodeExecutionForTaskListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.token = ""; + + /** + * NodeExecutionForTaskListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.filters = ""; + + /** + * NodeExecutionForTaskListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.sortBy = null; + + /** + * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest instance + */ + NodeExecutionForTaskListRequest.create = function create(properties) { + return new NodeExecutionForTaskListRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} message NodeExecutionForTaskListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionForTaskListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionForTaskListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionForTaskListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionForTaskListRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionForTaskListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); + if (error) + return "taskExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return NodeExecutionForTaskListRequest; + })(); + + admin.NodeExecution = (function() { + + /** + * Properties of a NodeExecution. + * @memberof flyteidl.admin + * @interface INodeExecution + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecution id + * @property {string|null} [inputUri] NodeExecution inputUri + * @property {flyteidl.admin.INodeExecutionClosure|null} [closure] NodeExecution closure + * @property {flyteidl.admin.INodeExecutionMetaData|null} [metadata] NodeExecution metadata + */ + + /** + * Constructs a new NodeExecution. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecution. + * @implements INodeExecution + * @constructor + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + */ + function NodeExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecution id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.id = null; + + /** + * NodeExecution inputUri. + * @member {string} inputUri + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.inputUri = ""; + + /** + * NodeExecution closure. + * @member {flyteidl.admin.INodeExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.closure = null; + + /** + * NodeExecution metadata. + * @member {flyteidl.admin.INodeExecutionMetaData|null|undefined} metadata + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.metadata = null; + + /** + * Creates a new NodeExecution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecution} NodeExecution instance + */ + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); + }; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {flyteidl.admin.INodeExecution} message NodeExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.NodeExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.NodeExecutionMetaData.encode(message.metadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecution} NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputUri = reader.string(); + break; + case 3: + message.closure = $root.flyteidl.admin.NodeExecutionClosure.decode(reader, reader.uint32()); + break; + case 4: + message.metadata = $root.flyteidl.admin.NodeExecutionMetaData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecution message. + * @function verify + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.NodeExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.NodeExecutionMetaData.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return NodeExecution; + })(); + + admin.NodeExecutionMetaData = (function() { + + /** + * Properties of a NodeExecutionMetaData. + * @memberof flyteidl.admin + * @interface INodeExecutionMetaData + * @property {string|null} [retryGroup] NodeExecutionMetaData retryGroup + * @property {boolean|null} [isParentNode] NodeExecutionMetaData isParentNode + * @property {string|null} [specNodeId] NodeExecutionMetaData specNodeId + * @property {boolean|null} [isDynamic] NodeExecutionMetaData isDynamic + */ + + /** + * Constructs a new NodeExecutionMetaData. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionMetaData. + * @implements INodeExecutionMetaData + * @constructor + * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set + */ + function NodeExecutionMetaData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionMetaData retryGroup. + * @member {string} retryGroup + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.retryGroup = ""; + + /** + * NodeExecutionMetaData isParentNode. + * @member {boolean} isParentNode + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.isParentNode = false; + + /** + * NodeExecutionMetaData specNodeId. + * @member {string} specNodeId + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.specNodeId = ""; + + /** + * NodeExecutionMetaData isDynamic. + * @member {boolean} isDynamic + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.isDynamic = false; + + /** + * Creates a new NodeExecutionMetaData instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData instance + */ + NodeExecutionMetaData.create = function create(properties) { + return new NodeExecutionMetaData(properties); + }; + + /** + * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {flyteidl.admin.INodeExecutionMetaData} message NodeExecutionMetaData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionMetaData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.retryGroup); + if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isParentNode); + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.specNodeId); + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isDynamic); + return writer; + }; + + /** + * Decodes a NodeExecutionMetaData message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionMetaData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionMetaData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.retryGroup = reader.string(); + break; + case 2: + message.isParentNode = reader.bool(); + break; + case 3: + message.specNodeId = reader.string(); + break; + case 4: + message.isDynamic = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionMetaData message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionMetaData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + if (!$util.isString(message.retryGroup)) + return "retryGroup: string expected"; + if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) + if (typeof message.isParentNode !== "boolean") + return "isParentNode: boolean expected"; + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + if (!$util.isString(message.specNodeId)) + return "specNodeId: string expected"; + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + if (typeof message.isDynamic !== "boolean") + return "isDynamic: boolean expected"; + return null; + }; + + return NodeExecutionMetaData; + })(); + + admin.NodeExecutionList = (function() { + + /** + * Properties of a NodeExecutionList. + * @memberof flyteidl.admin + * @interface INodeExecutionList + * @property {Array.|null} [nodeExecutions] NodeExecutionList nodeExecutions + * @property {string|null} [token] NodeExecutionList token + */ + + /** + * Constructs a new NodeExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionList. + * @implements INodeExecutionList + * @constructor + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set + */ + function NodeExecutionList(properties) { + this.nodeExecutions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionList nodeExecutions. + * @member {Array.} nodeExecutions + * @memberof flyteidl.admin.NodeExecutionList + * @instance + */ + NodeExecutionList.prototype.nodeExecutions = $util.emptyArray; + + /** + * NodeExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionList + * @instance + */ + NodeExecutionList.prototype.token = ""; + + /** + * Creates a new NodeExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList instance + */ + NodeExecutionList.create = function create(properties) { + return new NodeExecutionList(properties); + }; + + /** + * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {flyteidl.admin.INodeExecutionList} message NodeExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeExecutions != null && message.nodeExecutions.length) + for (var i = 0; i < message.nodeExecutions.length; ++i) + $root.flyteidl.admin.NodeExecution.encode(message.nodeExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NodeExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.nodeExecutions && message.nodeExecutions.length)) + message.nodeExecutions = []; + message.nodeExecutions.push($root.flyteidl.admin.NodeExecution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionList message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeExecutions != null && message.hasOwnProperty("nodeExecutions")) { + if (!Array.isArray(message.nodeExecutions)) + return "nodeExecutions: array expected"; + for (var i = 0; i < message.nodeExecutions.length; ++i) { + var error = $root.flyteidl.admin.NodeExecution.verify(message.nodeExecutions[i]); + if (error) + return "nodeExecutions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NodeExecutionList; + })(); + + admin.NodeExecutionClosure = (function() { + + /** + * Properties of a NodeExecutionClosure. + * @memberof flyteidl.admin + * @interface INodeExecutionClosure + * @property {string|null} [outputUri] NodeExecutionClosure outputUri + * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionClosure error + * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionClosure outputData + * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionClosure phase + * @property {google.protobuf.ITimestamp|null} [startedAt] NodeExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] NodeExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] NodeExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] NodeExecutionClosure updatedAt + * @property {flyteidl.admin.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionClosure workflowNodeMetadata + * @property {flyteidl.admin.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionClosure taskNodeMetadata + * @property {string|null} [deckUri] NodeExecutionClosure deckUri + * @property {string|null} [dynamicJobSpecUri] NodeExecutionClosure dynamicJobSpecUri + */ + + /** + * Constructs a new NodeExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionClosure. + * @implements INodeExecutionClosure + * @constructor + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set + */ + function NodeExecutionClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.outputUri = ""; + + /** + * NodeExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.error = null; + + /** + * NodeExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.outputData = null; + + /** + * NodeExecutionClosure phase. + * @member {flyteidl.core.NodeExecution.Phase} phase + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.phase = 0; + + /** + * NodeExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.startedAt = null; + + /** + * NodeExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.duration = null; + + /** + * NodeExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.createdAt = null; + + /** + * NodeExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.updatedAt = null; + + /** + * NodeExecutionClosure workflowNodeMetadata. + * @member {flyteidl.admin.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.workflowNodeMetadata = null; + + /** + * NodeExecutionClosure taskNodeMetadata. + * @member {flyteidl.admin.ITaskNodeMetadata|null|undefined} taskNodeMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.taskNodeMetadata = null; + + /** + * NodeExecutionClosure deckUri. + * @member {string} deckUri + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.deckUri = ""; + + /** + * NodeExecutionClosure dynamicJobSpecUri. + * @member {string} dynamicJobSpecUri + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.dynamicJobSpecUri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NodeExecutionClosure outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + Object.defineProperty(NodeExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionClosure targetMetadata. + * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + Object.defineProperty(NodeExecutionClosure.prototype, "targetMetadata", { + get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure instance + */ + NodeExecutionClosure.create = function create(properties) { + return new NodeExecutionClosure(properties); + }; + + /** + * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {flyteidl.admin.INodeExecutionClosure} message NodeExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) + $root.flyteidl.admin.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) + $root.flyteidl.admin.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.deckUri); + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.dynamicJobSpecUri); + return writer; + }; + + /** + * Decodes a NodeExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputUri = reader.string(); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 10: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.workflowNodeMetadata = $root.flyteidl.admin.WorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + case 9: + message.taskNodeMetadata = $root.flyteidl.admin.TaskNodeMetadata.decode(reader, reader.uint32()); + break; + case 11: + message.deckUri = reader.string(); + break; + case 12: + message.dynamicJobSpecUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { + properties.targetMetadata = 1; + { + var error = $root.flyteidl.admin.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); + if (error) + return "workflowNodeMetadata." + error; + } + } + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { + if (properties.targetMetadata === 1) + return "targetMetadata: multiple values"; + properties.targetMetadata = 1; + { + var error = $root.flyteidl.admin.TaskNodeMetadata.verify(message.taskNodeMetadata); + if (error) + return "taskNodeMetadata." + error; + } + } + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + if (!$util.isString(message.deckUri)) + return "deckUri: string expected"; + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + if (!$util.isString(message.dynamicJobSpecUri)) + return "dynamicJobSpecUri: string expected"; + return null; + }; + + return NodeExecutionClosure; + })(); + + admin.WorkflowNodeMetadata = (function() { + + /** + * Properties of a WorkflowNodeMetadata. + * @memberof flyteidl.admin + * @interface IWorkflowNodeMetadata + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId + */ + + /** + * Constructs a new WorkflowNodeMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowNodeMetadata. + * @implements IWorkflowNodeMetadata + * @constructor + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + */ + function WorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNodeMetadata executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @instance + */ + WorkflowNodeMetadata.prototype.executionId = null; + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata instance + */ + WorkflowNodeMetadata.create = function create(properties) { + return new WorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return WorkflowNodeMetadata; + })(); + + admin.TaskNodeMetadata = (function() { + + /** + * Properties of a TaskNodeMetadata. + * @memberof flyteidl.admin + * @interface ITaskNodeMetadata + * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus + * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey + * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri + */ + + /** + * Constructs a new TaskNodeMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a TaskNodeMetadata. + * @implements ITaskNodeMetadata + * @constructor + * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set + */ + function TaskNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNodeMetadata cacheStatus. + * @member {flyteidl.core.CatalogCacheStatus} cacheStatus + * @memberof flyteidl.admin.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.cacheStatus = 0; + + /** + * TaskNodeMetadata catalogKey. + * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey + * @memberof flyteidl.admin.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.catalogKey = null; + + /** + * TaskNodeMetadata checkpointUri. + * @member {string} checkpointUri + * @memberof flyteidl.admin.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.checkpointUri = ""; + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata instance + */ + TaskNodeMetadata.create = function create(properties) { + return new TaskNodeMetadata(properties); + }; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {flyteidl.admin.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) + $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); + return writer; + }; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cacheStatus = reader.int32(); + break; + case 2: + message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); + break; + case 4: + message.checkpointUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNodeMetadata message. + * @function verify + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + switch (message.cacheStatus) { + default: + return "cacheStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { + var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); + if (error) + return "catalogKey." + error; + } + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + if (!$util.isString(message.checkpointUri)) + return "checkpointUri: string expected"; + return null; + }; + + return TaskNodeMetadata; + })(); + + admin.DynamicWorkflowNodeMetadata = (function() { + + /** + * Properties of a DynamicWorkflowNodeMetadata. + * @memberof flyteidl.admin + * @interface IDynamicWorkflowNodeMetadata + * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow + * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri + */ + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a DynamicWorkflowNodeMetadata. + * @implements IDynamicWorkflowNodeMetadata + * @constructor + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + */ + function DynamicWorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicWorkflowNodeMetadata id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.id = null; + + /** + * DynamicWorkflowNodeMetadata compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; + + /** + * DynamicWorkflowNodeMetadata dynamicJobSpecUri. + * @member {string} dynamicJobSpecUri + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance + */ + DynamicWorkflowNodeMetadata.create = function create(properties) { + return new DynamicWorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicWorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); + return writer; + }; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DynamicWorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + case 3: + message.dynamicJobSpecUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicWorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + if (!$util.isString(message.dynamicJobSpecUri)) + return "dynamicJobSpecUri: string expected"; + return null; + }; + + return DynamicWorkflowNodeMetadata; + })(); + + admin.NodeExecutionGetDataRequest = (function() { + + /** + * Properties of a NodeExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionGetDataRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetDataRequest id + */ + + /** + * Constructs a new NodeExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetDataRequest. + * @implements INodeExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + */ + function NodeExecutionGetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetDataRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @instance + */ + NodeExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new NodeExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest instance + */ + NodeExecutionGetDataRequest.create = function create(properties) { + return new NodeExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetDataRequest} message NodeExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NodeExecutionGetDataRequest; + })(); + + admin.NodeExecutionGetDataResponse = (function() { + + /** + * Properties of a NodeExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface INodeExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [inputs] NodeExecutionGetDataResponse inputs + * @property {flyteidl.admin.IUrlBlob|null} [outputs] NodeExecutionGetDataResponse outputs + * @property {flyteidl.core.ILiteralMap|null} [fullInputs] NodeExecutionGetDataResponse fullInputs + * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] NodeExecutionGetDataResponse fullOutputs + * @property {flyteidl.admin.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] NodeExecutionGetDataResponse dynamicWorkflow + * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] NodeExecutionGetDataResponse flyteUrls + */ + + /** + * Constructs a new NodeExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetDataResponse. + * @implements INodeExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + */ + function NodeExecutionGetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.inputs = null; + + /** + * NodeExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.outputs = null; + + /** + * NodeExecutionGetDataResponse fullInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.fullInputs = null; + + /** + * NodeExecutionGetDataResponse fullOutputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.fullOutputs = null; + + /** + * NodeExecutionGetDataResponse dynamicWorkflow. + * @member {flyteidl.admin.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.dynamicWorkflow = null; + + /** + * NodeExecutionGetDataResponse flyteUrls. + * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.flyteUrls = null; + + /** + * Creates a new NodeExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse instance + */ + NodeExecutionGetDataResponse.create = function create(properties) { + return new NodeExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {flyteidl.admin.INodeExecutionGetDataResponse} message NodeExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) + $root.flyteidl.admin.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) + $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 3: + message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 16: + message.dynamicWorkflow = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + case 17: + message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); + if (error) + return "fullInputs." + error; + } + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); + if (error) + return "fullOutputs." + error; + } + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { + var error = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); + if (error) + return "dynamicWorkflow." + error; + } + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { + var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); + if (error) + return "flyteUrls." + error; + } + return null; + }; + + return NodeExecutionGetDataResponse; + })(); + + admin.EmailMessage = (function() { + + /** + * Properties of an EmailMessage. + * @memberof flyteidl.admin + * @interface IEmailMessage + * @property {Array.|null} [recipientsEmail] EmailMessage recipientsEmail + * @property {string|null} [senderEmail] EmailMessage senderEmail + * @property {string|null} [subjectLine] EmailMessage subjectLine + * @property {string|null} [body] EmailMessage body + */ + + /** + * Constructs a new EmailMessage. + * @memberof flyteidl.admin + * @classdesc Represents an EmailMessage. + * @implements IEmailMessage + * @constructor + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + */ + function EmailMessage(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EmailMessage recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.recipientsEmail = $util.emptyArray; + + /** + * EmailMessage senderEmail. + * @member {string} senderEmail + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.senderEmail = ""; + + /** + * EmailMessage subjectLine. + * @member {string} subjectLine + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.subjectLine = ""; + + /** + * EmailMessage body. + * @member {string} body + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.body = ""; + + /** + * Creates a new EmailMessage instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + * @returns {flyteidl.admin.EmailMessage} EmailMessage instance + */ + EmailMessage.create = function create(properties) { + return new EmailMessage(properties); + }; + + /** + * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {flyteidl.admin.IEmailMessage} message EmailMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailMessage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.senderEmail); + if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subjectLine); + if (message.body != null && message.hasOwnProperty("body")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.body); + return writer; + }; + + /** + * Decodes an EmailMessage message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EmailMessage} EmailMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailMessage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailMessage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + case 2: + message.senderEmail = reader.string(); + break; + case 3: + message.subjectLine = reader.string(); + break; + case 4: + message.body = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EmailMessage message. + * @function verify + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) + if (!$util.isString(message.senderEmail)) + return "senderEmail: string expected"; + if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) + if (!$util.isString(message.subjectLine)) + return "subjectLine: string expected"; + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + return null; + }; + + return EmailMessage; + })(); + + admin.Domain = (function() { + + /** + * Properties of a Domain. + * @memberof flyteidl.admin + * @interface IDomain + * @property {string|null} [id] Domain id + * @property {string|null} [name] Domain name + */ + + /** + * Constructs a new Domain. + * @memberof flyteidl.admin + * @classdesc Represents a Domain. + * @implements IDomain + * @constructor + * @param {flyteidl.admin.IDomain=} [properties] Properties to set + */ + function Domain(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Domain id. + * @member {string} id + * @memberof flyteidl.admin.Domain + * @instance + */ + Domain.prototype.id = ""; + + /** + * Domain name. + * @member {string} name + * @memberof flyteidl.admin.Domain + * @instance + */ + Domain.prototype.name = ""; + + /** + * Creates a new Domain instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Domain + * @static + * @param {flyteidl.admin.IDomain=} [properties] Properties to set + * @returns {flyteidl.admin.Domain} Domain instance + */ + Domain.create = function create(properties) { + return new Domain(properties); + }; + + /** + * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Domain + * @static + * @param {flyteidl.admin.IDomain} message Domain message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Domain.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + return writer; + }; + + /** + * Decodes a Domain message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Domain + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Domain} Domain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Domain.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Domain(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Domain message. + * @function verify + * @memberof flyteidl.admin.Domain + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Domain.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return Domain; + })(); + + admin.Project = (function() { + + /** + * Properties of a Project. + * @memberof flyteidl.admin + * @interface IProject + * @property {string|null} [id] Project id + * @property {string|null} [name] Project name + * @property {Array.|null} [domains] Project domains + * @property {string|null} [description] Project description + * @property {flyteidl.admin.ILabels|null} [labels] Project labels + * @property {flyteidl.admin.Project.ProjectState|null} [state] Project state + */ + + /** + * Constructs a new Project. + * @memberof flyteidl.admin + * @classdesc Represents a Project. + * @implements IProject + * @constructor + * @param {flyteidl.admin.IProject=} [properties] Properties to set + */ + function Project(properties) { + this.domains = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Project id. + * @member {string} id + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.id = ""; + + /** + * Project name. + * @member {string} name + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.name = ""; + + /** + * Project domains. + * @member {Array.} domains + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.domains = $util.emptyArray; + + /** + * Project description. + * @member {string} description + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.description = ""; + + /** + * Project labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.labels = null; + + /** + * Project state. + * @member {flyteidl.admin.Project.ProjectState} state + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.state = 0; + + /** + * Creates a new Project instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Project + * @static + * @param {flyteidl.admin.IProject=} [properties] Properties to set + * @returns {flyteidl.admin.Project} Project instance + */ + Project.create = function create(properties) { + return new Project(properties); + }; + + /** + * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Project + * @static + * @param {flyteidl.admin.IProject} message Project message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Project.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.domains != null && message.domains.length) + for (var i = 0; i < message.domains.length; ++i) + $root.flyteidl.admin.Domain.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + return writer; + }; + + /** + * Decodes a Project message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Project + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Project} Project + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Project.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Project(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + if (!(message.domains && message.domains.length)) + message.domains = []; + message.domains.push($root.flyteidl.admin.Domain.decode(reader, reader.uint32())); + break; + case 4: + message.description = reader.string(); + break; + case 5: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 6: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Project message. + * @function verify + * @memberof flyteidl.admin.Project + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Project.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.domains != null && message.hasOwnProperty("domains")) { + if (!Array.isArray(message.domains)) + return "domains: array expected"; + for (var i = 0; i < message.domains.length; ++i) { + var error = $root.flyteidl.admin.Domain.verify(message.domains[i]); + if (error) + return "domains." + error; + } + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * ProjectState enum. + * @name flyteidl.admin.Project.ProjectState + * @enum {string} + * @property {number} ACTIVE=0 ACTIVE value + * @property {number} ARCHIVED=1 ARCHIVED value + * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value + */ + Project.ProjectState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTIVE"] = 0; + values[valuesById[1] = "ARCHIVED"] = 1; + values[valuesById[2] = "SYSTEM_GENERATED"] = 2; + return values; + })(); + + return Project; + })(); + + admin.Projects = (function() { + + /** + * Properties of a Projects. + * @memberof flyteidl.admin + * @interface IProjects + * @property {Array.|null} [projects] Projects projects + * @property {string|null} [token] Projects token + */ + + /** + * Constructs a new Projects. + * @memberof flyteidl.admin + * @classdesc Represents a Projects. + * @implements IProjects + * @constructor + * @param {flyteidl.admin.IProjects=} [properties] Properties to set + */ + function Projects(properties) { + this.projects = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Projects projects. + * @member {Array.} projects + * @memberof flyteidl.admin.Projects + * @instance + */ + Projects.prototype.projects = $util.emptyArray; + + /** + * Projects token. + * @member {string} token + * @memberof flyteidl.admin.Projects + * @instance + */ + Projects.prototype.token = ""; + + /** + * Creates a new Projects instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Projects + * @static + * @param {flyteidl.admin.IProjects=} [properties] Properties to set + * @returns {flyteidl.admin.Projects} Projects instance + */ + Projects.create = function create(properties) { + return new Projects(properties); + }; + + /** + * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Projects + * @static + * @param {flyteidl.admin.IProjects} message Projects message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Projects.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projects != null && message.projects.length) + for (var i = 0; i < message.projects.length; ++i) + $root.flyteidl.admin.Project.encode(message.projects[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a Projects message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Projects + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Projects} Projects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Projects.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Projects(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.projects && message.projects.length)) + message.projects = []; + message.projects.push($root.flyteidl.admin.Project.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Projects message. + * @function verify + * @memberof flyteidl.admin.Projects + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Projects.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projects != null && message.hasOwnProperty("projects")) { + if (!Array.isArray(message.projects)) + return "projects: array expected"; + for (var i = 0; i < message.projects.length; ++i) { + var error = $root.flyteidl.admin.Project.verify(message.projects[i]); + if (error) + return "projects." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return Projects; + })(); + + admin.ProjectListRequest = (function() { + + /** + * Properties of a ProjectListRequest. + * @memberof flyteidl.admin + * @interface IProjectListRequest + * @property {number|null} [limit] ProjectListRequest limit + * @property {string|null} [token] ProjectListRequest token + * @property {string|null} [filters] ProjectListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] ProjectListRequest sortBy + */ + + /** + * Constructs a new ProjectListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectListRequest. + * @implements IProjectListRequest + * @constructor + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + */ + function ProjectListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.limit = 0; + + /** + * ProjectListRequest token. + * @member {string} token + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.token = ""; + + /** + * ProjectListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.filters = ""; + + /** + * ProjectListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.sortBy = null; + + /** + * Creates a new ProjectListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest instance + */ + ProjectListRequest.create = function create(properties) { + return new ProjectListRequest(properties); + }; + + /** + * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {flyteidl.admin.IProjectListRequest} message ProjectListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.limit = reader.uint32(); + break; + case 2: + message.token = reader.string(); + break; + case 3: + message.filters = reader.string(); + break; + case 4: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectListRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return ProjectListRequest; + })(); + + admin.ProjectRegisterRequest = (function() { + + /** + * Properties of a ProjectRegisterRequest. + * @memberof flyteidl.admin + * @interface IProjectRegisterRequest + * @property {flyteidl.admin.IProject|null} [project] ProjectRegisterRequest project + */ + + /** + * Constructs a new ProjectRegisterRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectRegisterRequest. + * @implements IProjectRegisterRequest + * @constructor + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + */ + function ProjectRegisterRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectRegisterRequest project. + * @member {flyteidl.admin.IProject|null|undefined} project + * @memberof flyteidl.admin.ProjectRegisterRequest + * @instance + */ + ProjectRegisterRequest.prototype.project = null; + + /** + * Creates a new ProjectRegisterRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest instance + */ + ProjectRegisterRequest.create = function create(properties) { + return new ProjectRegisterRequest(properties); + }; + + /** + * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {flyteidl.admin.IProjectRegisterRequest} message ProjectRegisterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectRegisterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + $root.flyteidl.admin.Project.encode(message.project, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectRegisterRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectRegisterRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = $root.flyteidl.admin.Project.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectRegisterRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectRegisterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) { + var error = $root.flyteidl.admin.Project.verify(message.project); + if (error) + return "project." + error; + } + return null; + }; + + return ProjectRegisterRequest; + })(); + + admin.ProjectRegisterResponse = (function() { + + /** + * Properties of a ProjectRegisterResponse. + * @memberof flyteidl.admin + * @interface IProjectRegisterResponse + */ + + /** + * Constructs a new ProjectRegisterResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectRegisterResponse. + * @implements IProjectRegisterResponse + * @constructor + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + */ + function ProjectRegisterResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectRegisterResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse instance + */ + ProjectRegisterResponse.create = function create(properties) { + return new ProjectRegisterResponse(properties); + }; + + /** + * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {flyteidl.admin.IProjectRegisterResponse} message ProjectRegisterResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectRegisterResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectRegisterResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectRegisterResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectRegisterResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectRegisterResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectRegisterResponse; + })(); + + admin.ProjectUpdateResponse = (function() { + + /** + * Properties of a ProjectUpdateResponse. + * @memberof flyteidl.admin + * @interface IProjectUpdateResponse + */ + + /** + * Constructs a new ProjectUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectUpdateResponse. + * @implements IProjectUpdateResponse + * @constructor + * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set + */ + function ProjectUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse instance + */ + ProjectUpdateResponse.create = function create(properties) { + return new ProjectUpdateResponse(properties); + }; + + /** + * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {flyteidl.admin.IProjectUpdateResponse} message ProjectUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectUpdateResponse; + })(); + + admin.ProjectAttributes = (function() { + + /** + * Properties of a ProjectAttributes. + * @memberof flyteidl.admin + * @interface IProjectAttributes + * @property {string|null} [project] ProjectAttributes project + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectAttributes matchingAttributes + */ + + /** + * Constructs a new ProjectAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributes. + * @implements IProjectAttributes + * @constructor + * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set + */ + function ProjectAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributes project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributes + * @instance + */ + ProjectAttributes.prototype.project = ""; + + /** + * ProjectAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.ProjectAttributes + * @instance + */ + ProjectAttributes.prototype.matchingAttributes = null; + + /** + * Creates a new ProjectAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes instance + */ + ProjectAttributes.create = function create(properties) { + return new ProjectAttributes(properties); + }; + + /** + * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {flyteidl.admin.IProjectAttributes} message ProjectAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributes message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); + if (error) + return "matchingAttributes." + error; + } + return null; + }; + + return ProjectAttributes; + })(); + + admin.ProjectAttributesUpdateRequest = (function() { + + /** + * Properties of a ProjectAttributesUpdateRequest. + * @memberof flyteidl.admin + * @interface IProjectAttributesUpdateRequest + * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesUpdateRequest attributes + */ + + /** + * Constructs a new ProjectAttributesUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesUpdateRequest. + * @implements IProjectAttributesUpdateRequest + * @constructor + * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set + */ + function ProjectAttributesUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesUpdateRequest attributes. + * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @instance + */ + ProjectAttributesUpdateRequest.prototype.attributes = null; + + /** + * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest instance + */ + ProjectAttributesUpdateRequest.create = function create(properties) { + return new ProjectAttributesUpdateRequest(properties); + }; + + /** + * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} message ProjectAttributesUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectAttributesUpdateRequest; + })(); + + admin.ProjectAttributesUpdateResponse = (function() { + + /** + * Properties of a ProjectAttributesUpdateResponse. + * @memberof flyteidl.admin + * @interface IProjectAttributesUpdateResponse + */ + + /** + * Constructs a new ProjectAttributesUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesUpdateResponse. + * @implements IProjectAttributesUpdateResponse + * @constructor + * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set + */ + function ProjectAttributesUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse instance + */ + ProjectAttributesUpdateResponse.create = function create(properties) { + return new ProjectAttributesUpdateResponse(properties); + }; + + /** + * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateResponse} message ProjectAttributesUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectAttributesUpdateResponse; + })(); + + admin.ProjectAttributesGetRequest = (function() { + + /** + * Properties of a ProjectAttributesGetRequest. + * @memberof flyteidl.admin + * @interface IProjectAttributesGetRequest + * @property {string|null} [project] ProjectAttributesGetRequest project + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesGetRequest resourceType + */ + + /** + * Constructs a new ProjectAttributesGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesGetRequest. + * @implements IProjectAttributesGetRequest + * @constructor + * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set + */ + function ProjectAttributesGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @instance + */ + ProjectAttributesGetRequest.prototype.project = ""; + + /** + * ProjectAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @instance + */ + ProjectAttributesGetRequest.prototype.resourceType = 0; + + /** + * Creates a new ProjectAttributesGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest instance + */ + ProjectAttributesGetRequest.create = function create(properties) { + return new ProjectAttributesGetRequest(properties); + }; + + /** + * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectAttributesGetRequest} message ProjectAttributesGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); + return writer; + }; + + /** + * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.resourceType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesGetRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + return ProjectAttributesGetRequest; + })(); + + admin.ProjectAttributesGetResponse = (function() { + + /** + * Properties of a ProjectAttributesGetResponse. + * @memberof flyteidl.admin + * @interface IProjectAttributesGetResponse + * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesGetResponse attributes + */ + + /** + * Constructs a new ProjectAttributesGetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesGetResponse. + * @implements IProjectAttributesGetResponse + * @constructor + * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set + */ + function ProjectAttributesGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesGetResponse attributes. + * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @instance + */ + ProjectAttributesGetResponse.prototype.attributes = null; + + /** + * Creates a new ProjectAttributesGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse instance + */ + ProjectAttributesGetResponse.create = function create(properties) { + return new ProjectAttributesGetResponse(properties); + }; + + /** + * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectAttributesGetResponse} message ProjectAttributesGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesGetResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectAttributesGetResponse; + })(); + + admin.ProjectAttributesDeleteRequest = (function() { + + /** + * Properties of a ProjectAttributesDeleteRequest. + * @memberof flyteidl.admin + * @interface IProjectAttributesDeleteRequest + * @property {string|null} [project] ProjectAttributesDeleteRequest project + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesDeleteRequest resourceType + */ + + /** + * Constructs a new ProjectAttributesDeleteRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesDeleteRequest. + * @implements IProjectAttributesDeleteRequest + * @constructor + * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set + */ + function ProjectAttributesDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @instance + */ + ProjectAttributesDeleteRequest.prototype.project = ""; + + /** + * ProjectAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @instance + */ + ProjectAttributesDeleteRequest.prototype.resourceType = 0; + + /** + * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest instance + */ + ProjectAttributesDeleteRequest.create = function create(properties) { + return new ProjectAttributesDeleteRequest(properties); + }; + + /** + * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} message ProjectAttributesDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); + return writer; + }; + + /** + * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.resourceType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesDeleteRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + return ProjectAttributesDeleteRequest; + })(); + + admin.ProjectAttributesDeleteResponse = (function() { + + /** + * Properties of a ProjectAttributesDeleteResponse. + * @memberof flyteidl.admin + * @interface IProjectAttributesDeleteResponse + */ + + /** + * Constructs a new ProjectAttributesDeleteResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesDeleteResponse. + * @implements IProjectAttributesDeleteResponse + * @constructor + * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set + */ + function ProjectAttributesDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse instance + */ + ProjectAttributesDeleteResponse.create = function create(properties) { + return new ProjectAttributesDeleteResponse(properties); + }; + + /** + * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteResponse} message ProjectAttributesDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesDeleteResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectAttributesDeleteResponse; + })(); + + admin.ProjectDomainAttributes = (function() { + + /** + * Properties of a ProjectDomainAttributes. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributes + * @property {string|null} [project] ProjectDomainAttributes project + * @property {string|null} [domain] ProjectDomainAttributes domain + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectDomainAttributes matchingAttributes + */ + + /** + * Constructs a new ProjectDomainAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributes. + * @implements IProjectDomainAttributes + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set + */ + function ProjectDomainAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributes project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.project = ""; + + /** + * ProjectDomainAttributes domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.domain = ""; + + /** + * ProjectDomainAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.matchingAttributes = null; + + /** + * Creates a new ProjectDomainAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes instance + */ + ProjectDomainAttributes.create = function create(properties) { + return new ProjectDomainAttributes(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {flyteidl.admin.IProjectDomainAttributes} message ProjectDomainAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributes message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); + if (error) + return "matchingAttributes." + error; + } + return null; + }; + + return ProjectDomainAttributes; + })(); + + admin.ProjectDomainAttributesUpdateRequest = (function() { + + /** + * Properties of a ProjectDomainAttributesUpdateRequest. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesUpdateRequest + * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesUpdateRequest attributes + */ + + /** + * Constructs a new ProjectDomainAttributesUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesUpdateRequest. + * @implements IProjectDomainAttributesUpdateRequest + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set + */ + function ProjectDomainAttributesUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesUpdateRequest attributes. + * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @instance + */ + ProjectDomainAttributesUpdateRequest.prototype.attributes = null; + + /** + * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest instance + */ + ProjectDomainAttributesUpdateRequest.create = function create(properties) { + return new ProjectDomainAttributesUpdateRequest(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} message ProjectDomainAttributesUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectDomainAttributesUpdateRequest; + })(); + + admin.ProjectDomainAttributesUpdateResponse = (function() { + + /** + * Properties of a ProjectDomainAttributesUpdateResponse. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesUpdateResponse + */ + + /** + * Constructs a new ProjectDomainAttributesUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesUpdateResponse. + * @implements IProjectDomainAttributesUpdateResponse + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set + */ + function ProjectDomainAttributesUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse instance + */ + ProjectDomainAttributesUpdateResponse.create = function create(properties) { + return new ProjectDomainAttributesUpdateResponse(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse} message ProjectDomainAttributesUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectDomainAttributesUpdateResponse; + })(); + + admin.ProjectDomainAttributesGetRequest = (function() { + + /** + * Properties of a ProjectDomainAttributesGetRequest. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesGetRequest + * @property {string|null} [project] ProjectDomainAttributesGetRequest project + * @property {string|null} [domain] ProjectDomainAttributesGetRequest domain + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesGetRequest resourceType + */ + + /** + * Constructs a new ProjectDomainAttributesGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesGetRequest. + * @implements IProjectDomainAttributesGetRequest + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set + */ + function ProjectDomainAttributesGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.project = ""; + + /** + * ProjectDomainAttributesGetRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.domain = ""; + + /** + * ProjectDomainAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.resourceType = 0; + + /** + * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest instance + */ + ProjectDomainAttributesGetRequest.create = function create(properties) { + return new ProjectDomainAttributesGetRequest(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} message ProjectDomainAttributesGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.resourceType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesGetRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + return ProjectDomainAttributesGetRequest; + })(); + + admin.ProjectDomainAttributesGetResponse = (function() { + + /** + * Properties of a ProjectDomainAttributesGetResponse. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesGetResponse + * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesGetResponse attributes + */ + + /** + * Constructs a new ProjectDomainAttributesGetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesGetResponse. + * @implements IProjectDomainAttributesGetResponse + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set + */ + function ProjectDomainAttributesGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesGetResponse attributes. + * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @instance + */ + ProjectDomainAttributesGetResponse.prototype.attributes = null; + + /** + * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse instance + */ + ProjectDomainAttributesGetResponse.create = function create(properties) { + return new ProjectDomainAttributesGetResponse(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse} message ProjectDomainAttributesGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesGetResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectDomainAttributesGetResponse; + })(); + + admin.ProjectDomainAttributesDeleteRequest = (function() { + + /** + * Properties of a ProjectDomainAttributesDeleteRequest. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesDeleteRequest + * @property {string|null} [project] ProjectDomainAttributesDeleteRequest project + * @property {string|null} [domain] ProjectDomainAttributesDeleteRequest domain + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesDeleteRequest resourceType + */ + + /** + * Constructs a new ProjectDomainAttributesDeleteRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesDeleteRequest. + * @implements IProjectDomainAttributesDeleteRequest + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set + */ + function ProjectDomainAttributesDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @instance + */ + ProjectDomainAttributesDeleteRequest.prototype.project = ""; + + /** + * ProjectDomainAttributesDeleteRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @instance + */ + ProjectDomainAttributesDeleteRequest.prototype.domain = ""; + + /** + * ProjectDomainAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @instance + */ + ProjectDomainAttributesDeleteRequest.prototype.resourceType = 0; + + /** + * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest instance + */ + ProjectDomainAttributesDeleteRequest.create = function create(properties) { + return new ProjectDomainAttributesDeleteRequest(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} message ProjectDomainAttributesDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.resourceType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesDeleteRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + return ProjectDomainAttributesDeleteRequest; + })(); + + admin.ProjectDomainAttributesDeleteResponse = (function() { + + /** + * Properties of a ProjectDomainAttributesDeleteResponse. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesDeleteResponse + */ + + /** + * Constructs a new ProjectDomainAttributesDeleteResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesDeleteResponse. + * @implements IProjectDomainAttributesDeleteResponse + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set + */ + function ProjectDomainAttributesDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse instance + */ + ProjectDomainAttributesDeleteResponse.create = function create(properties) { + return new ProjectDomainAttributesDeleteResponse(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse} message ProjectDomainAttributesDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesDeleteResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectDomainAttributesDeleteResponse; + })(); + + admin.SignalGetOrCreateRequest = (function() { + + /** + * Properties of a SignalGetOrCreateRequest. + * @memberof flyteidl.admin + * @interface ISignalGetOrCreateRequest + * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalGetOrCreateRequest id + * @property {flyteidl.core.ILiteralType|null} [type] SignalGetOrCreateRequest type + */ + + /** + * Constructs a new SignalGetOrCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a SignalGetOrCreateRequest. + * @implements ISignalGetOrCreateRequest + * @constructor + * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set + */ + function SignalGetOrCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalGetOrCreateRequest id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @instance + */ + SignalGetOrCreateRequest.prototype.id = null; + + /** + * SignalGetOrCreateRequest type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @instance + */ + SignalGetOrCreateRequest.prototype.type = null; + + /** + * Creates a new SignalGetOrCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest instance + */ + SignalGetOrCreateRequest.create = function create(properties) { + return new SignalGetOrCreateRequest(properties); + }; + + /** + * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {flyteidl.admin.ISignalGetOrCreateRequest} message SignalGetOrCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalGetOrCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalGetOrCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalGetOrCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalGetOrCreateRequest message. + * @function verify + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalGetOrCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return SignalGetOrCreateRequest; + })(); + + admin.SignalListRequest = (function() { + + /** + * Properties of a SignalListRequest. + * @memberof flyteidl.admin + * @interface ISignalListRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] SignalListRequest workflowExecutionId + * @property {number|null} [limit] SignalListRequest limit + * @property {string|null} [token] SignalListRequest token + * @property {string|null} [filters] SignalListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] SignalListRequest sortBy + */ + + /** + * Constructs a new SignalListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a SignalListRequest. + * @implements ISignalListRequest + * @constructor + * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set + */ + function SignalListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalListRequest workflowExecutionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.workflowExecutionId = null; + + /** + * SignalListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.limit = 0; + + /** + * SignalListRequest token. + * @member {string} token + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.token = ""; + + /** + * SignalListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.filters = ""; + + /** + * SignalListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.sortBy = null; + + /** + * Creates a new SignalListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalListRequest} SignalListRequest instance + */ + SignalListRequest.create = function create(properties) { + return new SignalListRequest(properties); + }; + + /** + * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {flyteidl.admin.ISignalListRequest} message SignalListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalListRequest} SignalListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalListRequest message. + * @function verify + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); + if (error) + return "workflowExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return SignalListRequest; + })(); + + admin.SignalList = (function() { + + /** + * Properties of a SignalList. + * @memberof flyteidl.admin + * @interface ISignalList + * @property {Array.|null} [signals] SignalList signals + * @property {string|null} [token] SignalList token + */ + + /** + * Constructs a new SignalList. + * @memberof flyteidl.admin + * @classdesc Represents a SignalList. + * @implements ISignalList + * @constructor + * @param {flyteidl.admin.ISignalList=} [properties] Properties to set + */ + function SignalList(properties) { + this.signals = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalList signals. + * @member {Array.} signals + * @memberof flyteidl.admin.SignalList + * @instance + */ + SignalList.prototype.signals = $util.emptyArray; + + /** + * SignalList token. + * @member {string} token + * @memberof flyteidl.admin.SignalList + * @instance + */ + SignalList.prototype.token = ""; + + /** + * Creates a new SignalList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalList + * @static + * @param {flyteidl.admin.ISignalList=} [properties] Properties to set + * @returns {flyteidl.admin.SignalList} SignalList instance + */ + SignalList.create = function create(properties) { + return new SignalList(properties); + }; + + /** + * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalList + * @static + * @param {flyteidl.admin.ISignalList} message SignalList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signals != null && message.signals.length) + for (var i = 0; i < message.signals.length; ++i) + $root.flyteidl.admin.Signal.encode(message.signals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a SignalList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalList} SignalList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.signals && message.signals.length)) + message.signals = []; + message.signals.push($root.flyteidl.admin.Signal.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalList message. + * @function verify + * @memberof flyteidl.admin.SignalList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signals != null && message.hasOwnProperty("signals")) { + if (!Array.isArray(message.signals)) + return "signals: array expected"; + for (var i = 0; i < message.signals.length; ++i) { + var error = $root.flyteidl.admin.Signal.verify(message.signals[i]); + if (error) + return "signals." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return SignalList; + })(); + + admin.SignalSetRequest = (function() { + + /** + * Properties of a SignalSetRequest. + * @memberof flyteidl.admin + * @interface ISignalSetRequest + * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalSetRequest id + * @property {flyteidl.core.ILiteral|null} [value] SignalSetRequest value + */ + + /** + * Constructs a new SignalSetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a SignalSetRequest. + * @implements ISignalSetRequest + * @constructor + * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set + */ + function SignalSetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalSetRequest id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.SignalSetRequest + * @instance + */ + SignalSetRequest.prototype.id = null; + + /** + * SignalSetRequest value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.admin.SignalSetRequest + * @instance + */ + SignalSetRequest.prototype.value = null; + + /** + * Creates a new SignalSetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest instance + */ + SignalSetRequest.create = function create(properties) { + return new SignalSetRequest(properties); + }; + + /** + * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {flyteidl.admin.ISignalSetRequest} message SignalSetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalSetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalSetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalSetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalSetRequest message. + * @function verify + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalSetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + return SignalSetRequest; + })(); + + admin.SignalSetResponse = (function() { + + /** + * Properties of a SignalSetResponse. + * @memberof flyteidl.admin + * @interface ISignalSetResponse + */ + + /** + * Constructs a new SignalSetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a SignalSetResponse. + * @implements ISignalSetResponse + * @constructor + * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set + */ + function SignalSetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SignalSetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse instance + */ + SignalSetResponse.create = function create(properties) { + return new SignalSetResponse(properties); + }; + + /** + * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {flyteidl.admin.ISignalSetResponse} message SignalSetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalSetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a SignalSetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalSetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalSetResponse message. + * @function verify + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalSetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return SignalSetResponse; + })(); + + admin.Signal = (function() { + + /** + * Properties of a Signal. + * @memberof flyteidl.admin + * @interface ISignal + * @property {flyteidl.core.ISignalIdentifier|null} [id] Signal id + * @property {flyteidl.core.ILiteralType|null} [type] Signal type + * @property {flyteidl.core.ILiteral|null} [value] Signal value + */ + + /** + * Constructs a new Signal. + * @memberof flyteidl.admin + * @classdesc Represents a Signal. + * @implements ISignal + * @constructor + * @param {flyteidl.admin.ISignal=} [properties] Properties to set + */ + function Signal(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Signal id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.Signal + * @instance + */ + Signal.prototype.id = null; + + /** + * Signal type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.admin.Signal + * @instance + */ + Signal.prototype.type = null; + + /** + * Signal value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.admin.Signal + * @instance + */ + Signal.prototype.value = null; + + /** + * Creates a new Signal instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Signal + * @static + * @param {flyteidl.admin.ISignal=} [properties] Properties to set + * @returns {flyteidl.admin.Signal} Signal instance + */ + Signal.create = function create(properties) { + return new Signal(properties); + }; + + /** + * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Signal + * @static + * @param {flyteidl.admin.ISignal} message Signal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Signal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Signal message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Signal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Signal} Signal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Signal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Signal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 3: + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Signal message. + * @function verify + * @memberof flyteidl.admin.Signal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Signal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + return Signal; + })(); + + admin.TaskCreateRequest = (function() { + + /** + * Properties of a TaskCreateRequest. + * @memberof flyteidl.admin + * @interface ITaskCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] TaskCreateRequest id + * @property {flyteidl.admin.ITaskSpec|null} [spec] TaskCreateRequest spec + */ + + /** + * Constructs a new TaskCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest + * @constructor + * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set + */ + function TaskCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.id = null; + + /** + * TaskCreateRequest spec. + * @member {flyteidl.admin.ITaskSpec|null|undefined} spec + * @memberof flyteidl.admin.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.spec = null; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest instance + */ + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); + }; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {flyteidl.admin.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.TaskSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.TaskSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateRequest message. + * @function verify + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.TaskSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return TaskCreateRequest; + })(); + + admin.TaskCreateResponse = (function() { + + /** + * Properties of a TaskCreateResponse. + * @memberof flyteidl.admin + * @interface ITaskCreateResponse + */ + + /** + * Constructs a new TaskCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse + * @constructor + * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set + */ + function TaskCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse instance + */ + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); + }; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {flyteidl.admin.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateResponse message. + * @function verify + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskCreateResponse; + })(); + + admin.Task = (function() { + + /** + * Properties of a Task. + * @memberof flyteidl.admin + * @interface ITask + * @property {flyteidl.core.IIdentifier|null} [id] Task id + * @property {flyteidl.admin.ITaskClosure|null} [closure] Task closure + * @property {string|null} [shortDescription] Task shortDescription + */ + + /** + * Constructs a new Task. + * @memberof flyteidl.admin + * @classdesc Represents a Task. + * @implements ITask + * @constructor + * @param {flyteidl.admin.ITask=} [properties] Properties to set + */ + function Task(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Task id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.id = null; + + /** + * Task closure. + * @member {flyteidl.admin.ITaskClosure|null|undefined} closure + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.closure = null; + + /** + * Task shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.shortDescription = ""; + + /** + * Creates a new Task instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Task + * @static + * @param {flyteidl.admin.ITask=} [properties] Properties to set + * @returns {flyteidl.admin.Task} Task instance + */ + Task.create = function create(properties) { + return new Task(properties); + }; + + /** + * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Task + * @static + * @param {flyteidl.admin.ITask} message Task message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Task.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.TaskClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); + return writer; + }; + + /** + * Decodes a Task message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Task + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Task} Task + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Task.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Task(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.closure = $root.flyteidl.admin.TaskClosure.decode(reader, reader.uint32()); + break; + case 3: + message.shortDescription = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Task message. + * @function verify + * @memberof flyteidl.admin.Task + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Task.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.TaskClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + if (!$util.isString(message.shortDescription)) + return "shortDescription: string expected"; + return null; + }; + + return Task; + })(); + + admin.TaskList = (function() { + + /** + * Properties of a TaskList. + * @memberof flyteidl.admin + * @interface ITaskList + * @property {Array.|null} [tasks] TaskList tasks + * @property {string|null} [token] TaskList token + */ + + /** + * Constructs a new TaskList. + * @memberof flyteidl.admin + * @classdesc Represents a TaskList. + * @implements ITaskList + * @constructor + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + */ + function TaskList(properties) { + this.tasks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskList tasks. + * @member {Array.} tasks + * @memberof flyteidl.admin.TaskList + * @instance + */ + TaskList.prototype.tasks = $util.emptyArray; + + /** + * TaskList token. + * @member {string} token + * @memberof flyteidl.admin.TaskList + * @instance + */ + TaskList.prototype.token = ""; + + /** + * Creates a new TaskList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskList + * @static + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskList} TaskList instance + */ + TaskList.create = function create(properties) { + return new TaskList(properties); + }; + + /** + * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskList + * @static + * @param {flyteidl.admin.ITaskList} message TaskList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.admin.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a TaskList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskList} TaskList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.admin.Task.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskList message. + * @function verify + * @memberof flyteidl.admin.TaskList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.admin.Task.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return TaskList; + })(); + + admin.TaskSpec = (function() { + + /** + * Properties of a TaskSpec. + * @memberof flyteidl.admin + * @interface ITaskSpec + * @property {flyteidl.core.ITaskTemplate|null} [template] TaskSpec template + * @property {flyteidl.admin.IDescriptionEntity|null} [description] TaskSpec description + */ + + /** + * Constructs a new TaskSpec. + * @memberof flyteidl.admin + * @classdesc Represents a TaskSpec. + * @implements ITaskSpec + * @constructor + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + */ + function TaskSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskSpec template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.TaskSpec + * @instance + */ + TaskSpec.prototype.template = null; + + /** + * TaskSpec description. + * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description + * @memberof flyteidl.admin.TaskSpec + * @instance + */ + TaskSpec.prototype.description = null; + + /** + * Creates a new TaskSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + * @returns {flyteidl.admin.TaskSpec} TaskSpec instance + */ + TaskSpec.create = function create(properties) { + return new TaskSpec(properties); + }; + + /** + * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {flyteidl.admin.ITaskSpec} message TaskSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskSpec} TaskSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 2: + message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskSpec message. + * @function verify + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.description != null && message.hasOwnProperty("description")) { + var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); + if (error) + return "description." + error; + } + return null; + }; + + return TaskSpec; + })(); + + admin.TaskClosure = (function() { + + /** + * Properties of a TaskClosure. + * @memberof flyteidl.admin + * @interface ITaskClosure + * @property {flyteidl.core.ICompiledTask|null} [compiledTask] TaskClosure compiledTask + * @property {google.protobuf.ITimestamp|null} [createdAt] TaskClosure createdAt + */ + + /** + * Constructs a new TaskClosure. + * @memberof flyteidl.admin + * @classdesc Represents a TaskClosure. + * @implements ITaskClosure + * @constructor + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + */ + function TaskClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskClosure compiledTask. + * @member {flyteidl.core.ICompiledTask|null|undefined} compiledTask + * @memberof flyteidl.admin.TaskClosure + * @instance + */ + TaskClosure.prototype.compiledTask = null; + + /** + * TaskClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskClosure + * @instance + */ + TaskClosure.prototype.createdAt = null; + + /** + * Creates a new TaskClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskClosure} TaskClosure instance + */ + TaskClosure.create = function create(properties) { + return new TaskClosure(properties); + }; + + /** + * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {flyteidl.admin.ITaskClosure} message TaskClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) + $root.flyteidl.core.CompiledTask.encode(message.compiledTask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskClosure} TaskClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.compiledTask = $root.flyteidl.core.CompiledTask.decode(reader, reader.uint32()); + break; + case 2: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskClosure message. + * @function verify + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) { + var error = $root.flyteidl.core.CompiledTask.verify(message.compiledTask); + if (error) + return "compiledTask." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + return null; + }; + + return TaskClosure; + })(); + + admin.TaskExecutionGetRequest = (function() { + + /** + * Properties of a TaskExecutionGetRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetRequest id + */ + + /** + * Constructs a new TaskExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetRequest. + * @implements ITaskExecutionGetRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + */ + function TaskExecutionGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @instance + */ + TaskExecutionGetRequest.prototype.id = null; + + /** + * Creates a new TaskExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest instance + */ + TaskExecutionGetRequest.create = function create(properties) { + return new TaskExecutionGetRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetRequest} message TaskExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return TaskExecutionGetRequest; + })(); + + admin.TaskExecutionListRequest = (function() { + + /** + * Properties of a TaskExecutionListRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionListRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionListRequest nodeExecutionId + * @property {number|null} [limit] TaskExecutionListRequest limit + * @property {string|null} [token] TaskExecutionListRequest token + * @property {string|null} [filters] TaskExecutionListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] TaskExecutionListRequest sortBy + */ + + /** + * Constructs a new TaskExecutionListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionListRequest. + * @implements ITaskExecutionListRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + */ + function TaskExecutionListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionListRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.nodeExecutionId = null; + + /** + * TaskExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.limit = 0; + + /** + * TaskExecutionListRequest token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.token = ""; + + /** + * TaskExecutionListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.filters = ""; + + /** + * TaskExecutionListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.sortBy = null; + + /** + * Creates a new TaskExecutionListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest instance + */ + TaskExecutionListRequest.create = function create(properties) { + return new TaskExecutionListRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {flyteidl.admin.ITaskExecutionListRequest} message TaskExecutionListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionListRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return TaskExecutionListRequest; + })(); + + admin.TaskExecution = (function() { + + /** + * Properties of a TaskExecution. + * @memberof flyteidl.admin + * @interface ITaskExecution + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecution id + * @property {string|null} [inputUri] TaskExecution inputUri + * @property {flyteidl.admin.ITaskExecutionClosure|null} [closure] TaskExecution closure + * @property {boolean|null} [isParent] TaskExecution isParent + */ + + /** + * Constructs a new TaskExecution. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution + * @constructor + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + */ + function TaskExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecution id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.id = null; + + /** + * TaskExecution inputUri. + * @member {string} inputUri + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.inputUri = ""; + + /** + * TaskExecution closure. + * @member {flyteidl.admin.ITaskExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.closure = null; + + /** + * TaskExecution isParent. + * @member {boolean} isParent + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.isParent = false; + + /** + * Creates a new TaskExecution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecution} TaskExecution instance + */ + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); + }; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {flyteidl.admin.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.TaskExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.isParent != null && message.hasOwnProperty("isParent")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isParent); + return writer; + }; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputUri = reader.string(); + break; + case 3: + message.closure = $root.flyteidl.admin.TaskExecutionClosure.decode(reader, reader.uint32()); + break; + case 4: + message.isParent = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecution message. + * @function verify + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.TaskExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.isParent != null && message.hasOwnProperty("isParent")) + if (typeof message.isParent !== "boolean") + return "isParent: boolean expected"; + return null; + }; + + return TaskExecution; + })(); + + admin.TaskExecutionList = (function() { + + /** + * Properties of a TaskExecutionList. + * @memberof flyteidl.admin + * @interface ITaskExecutionList + * @property {Array.|null} [taskExecutions] TaskExecutionList taskExecutions + * @property {string|null} [token] TaskExecutionList token + */ + + /** + * Constructs a new TaskExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionList. + * @implements ITaskExecutionList + * @constructor + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + */ + function TaskExecutionList(properties) { + this.taskExecutions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionList taskExecutions. + * @member {Array.} taskExecutions + * @memberof flyteidl.admin.TaskExecutionList + * @instance + */ + TaskExecutionList.prototype.taskExecutions = $util.emptyArray; + + /** + * TaskExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionList + * @instance + */ + TaskExecutionList.prototype.token = ""; + + /** + * Creates a new TaskExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList instance + */ + TaskExecutionList.create = function create(properties) { + return new TaskExecutionList(properties); + }; + + /** + * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {flyteidl.admin.ITaskExecutionList} message TaskExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutions != null && message.taskExecutions.length) + for (var i = 0; i < message.taskExecutions.length; ++i) + $root.flyteidl.admin.TaskExecution.encode(message.taskExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a TaskExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.taskExecutions && message.taskExecutions.length)) + message.taskExecutions = []; + message.taskExecutions.push($root.flyteidl.admin.TaskExecution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionList message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutions != null && message.hasOwnProperty("taskExecutions")) { + if (!Array.isArray(message.taskExecutions)) + return "taskExecutions: array expected"; + for (var i = 0; i < message.taskExecutions.length; ++i) { + var error = $root.flyteidl.admin.TaskExecution.verify(message.taskExecutions[i]); + if (error) + return "taskExecutions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return TaskExecutionList; + })(); + + admin.TaskExecutionClosure = (function() { + + /** + * Properties of a TaskExecutionClosure. + * @memberof flyteidl.admin + * @interface ITaskExecutionClosure + * @property {string|null} [outputUri] TaskExecutionClosure outputUri + * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionClosure error + * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionClosure outputData + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionClosure phase + * @property {Array.|null} [logs] TaskExecutionClosure logs + * @property {google.protobuf.ITimestamp|null} [startedAt] TaskExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] TaskExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] TaskExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] TaskExecutionClosure updatedAt + * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionClosure customInfo + * @property {string|null} [reason] TaskExecutionClosure reason + * @property {string|null} [taskType] TaskExecutionClosure taskType + * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionClosure metadata + * @property {number|null} [eventVersion] TaskExecutionClosure eventVersion + * @property {Array.|null} [reasons] TaskExecutionClosure reasons + */ + + /** + * Constructs a new TaskExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionClosure. + * @implements ITaskExecutionClosure + * @constructor + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + */ + function TaskExecutionClosure(properties) { + this.logs = []; + this.reasons = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.outputUri = ""; + + /** + * TaskExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.error = null; + + /** + * TaskExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.outputData = null; + + /** + * TaskExecutionClosure phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.phase = 0; + + /** + * TaskExecutionClosure logs. + * @member {Array.} logs + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.logs = $util.emptyArray; + + /** + * TaskExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.startedAt = null; + + /** + * TaskExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.duration = null; + + /** + * TaskExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.createdAt = null; + + /** + * TaskExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.updatedAt = null; + + /** + * TaskExecutionClosure customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.customInfo = null; + + /** + * TaskExecutionClosure reason. + * @member {string} reason + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.reason = ""; + + /** + * TaskExecutionClosure taskType. + * @member {string} taskType + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.taskType = ""; + + /** + * TaskExecutionClosure metadata. + * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.metadata = null; + + /** + * TaskExecutionClosure eventVersion. + * @member {number} eventVersion + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.eventVersion = 0; + + /** + * TaskExecutionClosure reasons. + * @member {Array.} reasons + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.reasons = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskExecutionClosure outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + Object.defineProperty(TaskExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure instance + */ + TaskExecutionClosure.create = function create(properties) { + return new TaskExecutionClosure(properties); + }; + + /** + * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {flyteidl.admin.ITaskExecutionClosure} message TaskExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.logs != null && message.logs.length) + for (var i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.customInfo != null && message.hasOwnProperty("customInfo")) + $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reason != null && message.hasOwnProperty("reason")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reason); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.taskType); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.eventVersion); + if (message.reasons != null && message.reasons.length) + for (var i = 0; i < message.reasons.length; ++i) + $root.flyteidl.admin.Reason.encode(message.reasons[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputUri = reader.string(); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 12: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + case 5: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 7: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 10: + message.reason = reader.string(); + break; + case 11: + message.taskType = reader.string(); + break; + case 16: + message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 17: + message.eventVersion = reader.int32(); + break; + case 18: + if (!(message.reasons && message.reasons.length)) + message.reasons = []; + message.reasons.push($root.flyteidl.admin.Reason.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (var i = 0; i < message.logs.length; ++i) { + var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.customInfo != null && message.hasOwnProperty("customInfo")) { + var error = $root.google.protobuf.Struct.verify(message.customInfo); + if (error) + return "customInfo." + error; + } + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + if (!$util.isInteger(message.eventVersion)) + return "eventVersion: integer expected"; + if (message.reasons != null && message.hasOwnProperty("reasons")) { + if (!Array.isArray(message.reasons)) + return "reasons: array expected"; + for (var i = 0; i < message.reasons.length; ++i) { + var error = $root.flyteidl.admin.Reason.verify(message.reasons[i]); + if (error) + return "reasons." + error; + } + } + return null; + }; + + return TaskExecutionClosure; + })(); + + admin.Reason = (function() { + + /** + * Properties of a Reason. + * @memberof flyteidl.admin + * @interface IReason + * @property {google.protobuf.ITimestamp|null} [occurredAt] Reason occurredAt + * @property {string|null} [message] Reason message + */ + + /** + * Constructs a new Reason. + * @memberof flyteidl.admin + * @classdesc Represents a Reason. + * @implements IReason + * @constructor + * @param {flyteidl.admin.IReason=} [properties] Properties to set + */ + function Reason(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Reason occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.admin.Reason + * @instance + */ + Reason.prototype.occurredAt = null; + + /** + * Reason message. + * @member {string} message + * @memberof flyteidl.admin.Reason + * @instance + */ + Reason.prototype.message = ""; + + /** + * Creates a new Reason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Reason + * @static + * @param {flyteidl.admin.IReason=} [properties] Properties to set + * @returns {flyteidl.admin.Reason} Reason instance + */ + Reason.create = function create(properties) { + return new Reason(properties); + }; + + /** + * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Reason + * @static + * @param {flyteidl.admin.IReason} message Reason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Reason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + return writer; + }; + + /** + * Decodes a Reason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Reason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Reason} Reason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Reason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Reason(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Reason message. + * @function verify + * @memberof flyteidl.admin.Reason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Reason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + return null; + }; + + return Reason; + })(); + + admin.TaskExecutionGetDataRequest = (function() { + + /** + * Properties of a TaskExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetDataRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetDataRequest id + */ + + /** + * Constructs a new TaskExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetDataRequest. + * @implements ITaskExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + */ + function TaskExecutionGetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetDataRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @instance + */ + TaskExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new TaskExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest instance + */ + TaskExecutionGetDataRequest.create = function create(properties) { + return new TaskExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} message TaskExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return TaskExecutionGetDataRequest; + })(); + + admin.TaskExecutionGetDataResponse = (function() { + + /** + * Properties of a TaskExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [inputs] TaskExecutionGetDataResponse inputs + * @property {flyteidl.admin.IUrlBlob|null} [outputs] TaskExecutionGetDataResponse outputs + * @property {flyteidl.core.ILiteralMap|null} [fullInputs] TaskExecutionGetDataResponse fullInputs + * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] TaskExecutionGetDataResponse fullOutputs + * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] TaskExecutionGetDataResponse flyteUrls + */ + + /** + * Constructs a new TaskExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetDataResponse. + * @implements ITaskExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + */ + function TaskExecutionGetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.inputs = null; + + /** + * TaskExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.outputs = null; + + /** + * TaskExecutionGetDataResponse fullInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.fullInputs = null; + + /** + * TaskExecutionGetDataResponse fullOutputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.fullOutputs = null; + + /** + * TaskExecutionGetDataResponse flyteUrls. + * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.flyteUrls = null; + + /** + * Creates a new TaskExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse instance + */ + TaskExecutionGetDataResponse.create = function create(properties) { + return new TaskExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataResponse} message TaskExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) + $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 3: + message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 5: + message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); + if (error) + return "fullInputs." + error; + } + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); + if (error) + return "fullOutputs." + error; + } + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { + var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); + if (error) + return "flyteUrls." + error; + } + return null; + }; + + return TaskExecutionGetDataResponse; + })(); + + admin.GetVersionResponse = (function() { + + /** + * Properties of a GetVersionResponse. + * @memberof flyteidl.admin + * @interface IGetVersionResponse + * @property {flyteidl.admin.IVersion|null} [controlPlaneVersion] GetVersionResponse controlPlaneVersion + */ + + /** + * Constructs a new GetVersionResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetVersionResponse. + * @implements IGetVersionResponse + * @constructor + * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set + */ + function GetVersionResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionResponse controlPlaneVersion. + * @member {flyteidl.admin.IVersion|null|undefined} controlPlaneVersion + * @memberof flyteidl.admin.GetVersionResponse + * @instance + */ + GetVersionResponse.prototype.controlPlaneVersion = null; + + /** + * Creates a new GetVersionResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse instance + */ + GetVersionResponse.create = function create(properties) { + return new GetVersionResponse(properties); + }; + + /** + * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {flyteidl.admin.IGetVersionResponse} message GetVersionResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) + $root.flyteidl.admin.Version.encode(message.controlPlaneVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.controlPlaneVersion = $root.flyteidl.admin.Version.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetVersionResponse message. + * @function verify + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) { + var error = $root.flyteidl.admin.Version.verify(message.controlPlaneVersion); + if (error) + return "controlPlaneVersion." + error; + } + return null; + }; + + return GetVersionResponse; + })(); + + admin.Version = (function() { + + /** + * Properties of a Version. + * @memberof flyteidl.admin + * @interface IVersion + * @property {string|null} [Build] Version Build + * @property {string|null} [Version] Version Version + * @property {string|null} [BuildTime] Version BuildTime + */ + + /** + * Constructs a new Version. + * @memberof flyteidl.admin + * @classdesc Represents a Version. + * @implements IVersion + * @constructor + * @param {flyteidl.admin.IVersion=} [properties] Properties to set + */ + function Version(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Version Build. + * @member {string} Build + * @memberof flyteidl.admin.Version + * @instance + */ + Version.prototype.Build = ""; + + /** + * Version Version. + * @member {string} Version + * @memberof flyteidl.admin.Version + * @instance + */ + Version.prototype.Version = ""; + + /** + * Version BuildTime. + * @member {string} BuildTime + * @memberof flyteidl.admin.Version + * @instance + */ + Version.prototype.BuildTime = ""; + + /** + * Creates a new Version instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Version + * @static + * @param {flyteidl.admin.IVersion=} [properties] Properties to set + * @returns {flyteidl.admin.Version} Version instance + */ + Version.create = function create(properties) { + return new Version(properties); + }; + + /** + * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Version + * @static + * @param {flyteidl.admin.IVersion} message Version message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Version.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.Build != null && message.hasOwnProperty("Build")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.Build); + if (message.Version != null && message.hasOwnProperty("Version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.Version); + if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.BuildTime); + return writer; + }; + + /** + * Decodes a Version message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Version + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Version} Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Version.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Version(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.Build = reader.string(); + break; + case 2: + message.Version = reader.string(); + break; + case 3: + message.BuildTime = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Version message. + * @function verify + * @memberof flyteidl.admin.Version + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Version.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.Build != null && message.hasOwnProperty("Build")) + if (!$util.isString(message.Build)) + return "Build: string expected"; + if (message.Version != null && message.hasOwnProperty("Version")) + if (!$util.isString(message.Version)) + return "Version: string expected"; + if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) + if (!$util.isString(message.BuildTime)) + return "BuildTime: string expected"; + return null; + }; + + return Version; + })(); + + admin.GetVersionRequest = (function() { + + /** + * Properties of a GetVersionRequest. + * @memberof flyteidl.admin + * @interface IGetVersionRequest + */ + + /** + * Constructs a new GetVersionRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest + * @constructor + * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set + */ + function GetVersionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest instance + */ + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); + }; + + /** + * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {flyteidl.admin.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetVersionRequest message. + * @function verify + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return GetVersionRequest; + })(); + + admin.WorkflowCreateRequest = (function() { + + /** + * Properties of a WorkflowCreateRequest. + * @memberof flyteidl.admin + * @interface IWorkflowCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowCreateRequest id + * @property {flyteidl.admin.IWorkflowSpec|null} [spec] WorkflowCreateRequest spec + */ + + /** + * Constructs a new WorkflowCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowCreateRequest. + * @implements IWorkflowCreateRequest + * @constructor + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + */ + function WorkflowCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowCreateRequest + * @instance + */ + WorkflowCreateRequest.prototype.id = null; + + /** + * WorkflowCreateRequest spec. + * @member {flyteidl.admin.IWorkflowSpec|null|undefined} spec + * @memberof flyteidl.admin.WorkflowCreateRequest + * @instance + */ + WorkflowCreateRequest.prototype.spec = null; + + /** + * Creates a new WorkflowCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest instance + */ + WorkflowCreateRequest.create = function create(properties) { + return new WorkflowCreateRequest(properties); + }; + + /** + * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {flyteidl.admin.IWorkflowCreateRequest} message WorkflowCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.WorkflowSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.WorkflowSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowCreateRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.WorkflowSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return WorkflowCreateRequest; + })(); + + admin.WorkflowCreateResponse = (function() { + + /** + * Properties of a WorkflowCreateResponse. + * @memberof flyteidl.admin + * @interface IWorkflowCreateResponse + */ + + /** + * Constructs a new WorkflowCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowCreateResponse. + * @implements IWorkflowCreateResponse + * @constructor + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + */ + function WorkflowCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse instance + */ + WorkflowCreateResponse.create = function create(properties) { + return new WorkflowCreateResponse(properties); + }; + + /** + * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {flyteidl.admin.IWorkflowCreateResponse} message WorkflowCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowCreateResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowCreateResponse; + })(); + + admin.Workflow = (function() { + + /** + * Properties of a Workflow. + * @memberof flyteidl.admin + * @interface IWorkflow + * @property {flyteidl.core.IIdentifier|null} [id] Workflow id + * @property {flyteidl.admin.IWorkflowClosure|null} [closure] Workflow closure + * @property {string|null} [shortDescription] Workflow shortDescription + */ + + /** + * Constructs a new Workflow. + * @memberof flyteidl.admin + * @classdesc Represents a Workflow. + * @implements IWorkflow + * @constructor + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + */ + function Workflow(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Workflow id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.id = null; + + /** + * Workflow closure. + * @member {flyteidl.admin.IWorkflowClosure|null|undefined} closure + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.closure = null; + + /** + * Workflow shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.shortDescription = ""; + + /** + * Creates a new Workflow instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Workflow + * @static + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + * @returns {flyteidl.admin.Workflow} Workflow instance + */ + Workflow.create = function create(properties) { + return new Workflow(properties); + }; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Workflow + * @static + * @param {flyteidl.admin.IWorkflow} message Workflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Workflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.WorkflowClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); + return writer; + }; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Workflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Workflow} Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Workflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Workflow(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.closure = $root.flyteidl.admin.WorkflowClosure.decode(reader, reader.uint32()); + break; + case 3: + message.shortDescription = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Workflow message. + * @function verify + * @memberof flyteidl.admin.Workflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Workflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.WorkflowClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + if (!$util.isString(message.shortDescription)) + return "shortDescription: string expected"; + return null; + }; + + return Workflow; + })(); + + admin.WorkflowList = (function() { + + /** + * Properties of a WorkflowList. + * @memberof flyteidl.admin + * @interface IWorkflowList + * @property {Array.|null} [workflows] WorkflowList workflows + * @property {string|null} [token] WorkflowList token + */ + + /** + * Constructs a new WorkflowList. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowList. + * @implements IWorkflowList + * @constructor + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + */ + function WorkflowList(properties) { + this.workflows = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowList workflows. + * @member {Array.} workflows + * @memberof flyteidl.admin.WorkflowList + * @instance + */ + WorkflowList.prototype.workflows = $util.emptyArray; + + /** + * WorkflowList token. + * @member {string} token + * @memberof flyteidl.admin.WorkflowList + * @instance + */ + WorkflowList.prototype.token = ""; + + /** + * Creates a new WorkflowList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowList} WorkflowList instance + */ + WorkflowList.create = function create(properties) { + return new WorkflowList(properties); + }; + + /** + * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {flyteidl.admin.IWorkflowList} message WorkflowList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflows != null && message.workflows.length) + for (var i = 0; i < message.workflows.length; ++i) + $root.flyteidl.admin.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a WorkflowList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowList} WorkflowList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.flyteidl.admin.Workflow.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowList message. + * @function verify + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (var i = 0; i < message.workflows.length; ++i) { + var error = $root.flyteidl.admin.Workflow.verify(message.workflows[i]); + if (error) + return "workflows." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return WorkflowList; + })(); + + admin.WorkflowSpec = (function() { + + /** + * Properties of a WorkflowSpec. + * @memberof flyteidl.admin + * @interface IWorkflowSpec + * @property {flyteidl.core.IWorkflowTemplate|null} [template] WorkflowSpec template + * @property {Array.|null} [subWorkflows] WorkflowSpec subWorkflows + * @property {flyteidl.admin.IDescriptionEntity|null} [description] WorkflowSpec description + */ + + /** + * Constructs a new WorkflowSpec. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowSpec. + * @implements IWorkflowSpec + * @constructor + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + */ + function WorkflowSpec(properties) { + this.subWorkflows = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowSpec template. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template + * @memberof flyteidl.admin.WorkflowSpec + * @instance + */ + WorkflowSpec.prototype.template = null; + + /** + * WorkflowSpec subWorkflows. + * @member {Array.} subWorkflows + * @memberof flyteidl.admin.WorkflowSpec + * @instance + */ + WorkflowSpec.prototype.subWorkflows = $util.emptyArray; + + /** + * WorkflowSpec description. + * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description + * @memberof flyteidl.admin.WorkflowSpec + * @instance + */ + WorkflowSpec.prototype.description = null; + + /** + * Creates a new WorkflowSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec instance + */ + WorkflowSpec.create = function create(properties) { + return new WorkflowSpec(properties); + }; + + /** + * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {flyteidl.admin.IWorkflowSpec} message WorkflowSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflows != null && message.subWorkflows.length) + for (var i = 0; i < message.subWorkflows.length; ++i) + $root.flyteidl.core.WorkflowTemplate.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.subWorkflows && message.subWorkflows.length)) + message.subWorkflows = []; + message.subWorkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); + break; + case 3: + message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowSpec message. + * @function verify + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { + if (!Array.isArray(message.subWorkflows)) + return "subWorkflows: array expected"; + for (var i = 0; i < message.subWorkflows.length; ++i) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subWorkflows[i]); + if (error) + return "subWorkflows." + error; + } + } + if (message.description != null && message.hasOwnProperty("description")) { + var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); + if (error) + return "description." + error; + } + return null; + }; + + return WorkflowSpec; + })(); + + admin.WorkflowClosure = (function() { + + /** + * Properties of a WorkflowClosure. + * @memberof flyteidl.admin + * @interface IWorkflowClosure + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] WorkflowClosure compiledWorkflow + * @property {google.protobuf.ITimestamp|null} [createdAt] WorkflowClosure createdAt + */ + + /** + * Constructs a new WorkflowClosure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowClosure. + * @implements IWorkflowClosure + * @constructor + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + */ + function WorkflowClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowClosure compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.admin.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.compiledWorkflow = null; + + /** + * WorkflowClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.createdAt = null; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure instance + */ + WorkflowClosure.create = function create(properties) { + return new WorkflowClosure(properties); + }; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {flyteidl.admin.IWorkflowClosure} message WorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + case 2: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowClosure message. + * @function verify + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + return null; + }; + + return WorkflowClosure; + })(); + + admin.WorkflowErrorExistsDifferentStructure = (function() { + + /** + * Properties of a WorkflowErrorExistsDifferentStructure. + * @memberof flyteidl.admin + * @interface IWorkflowErrorExistsDifferentStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsDifferentStructure id + */ + + /** + * Constructs a new WorkflowErrorExistsDifferentStructure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowErrorExistsDifferentStructure. + * @implements IWorkflowErrorExistsDifferentStructure + * @constructor + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + */ + function WorkflowErrorExistsDifferentStructure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowErrorExistsDifferentStructure id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @instance + */ + WorkflowErrorExistsDifferentStructure.prototype.id = null; + + /** + * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure instance + */ + WorkflowErrorExistsDifferentStructure.create = function create(properties) { + return new WorkflowErrorExistsDifferentStructure(properties); + }; + + /** + * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure} message WorkflowErrorExistsDifferentStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowErrorExistsDifferentStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowErrorExistsDifferentStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowErrorExistsDifferentStructure message. + * @function verify + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowErrorExistsDifferentStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowErrorExistsDifferentStructure; + })(); + + admin.WorkflowErrorExistsIdenticalStructure = (function() { + + /** + * Properties of a WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @interface IWorkflowErrorExistsIdenticalStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsIdenticalStructure id + */ + + /** + * Constructs a new WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowErrorExistsIdenticalStructure. + * @implements IWorkflowErrorExistsIdenticalStructure + * @constructor + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + */ + function WorkflowErrorExistsIdenticalStructure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowErrorExistsIdenticalStructure id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @instance + */ + WorkflowErrorExistsIdenticalStructure.prototype.id = null; + + /** + * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure instance + */ + WorkflowErrorExistsIdenticalStructure.create = function create(properties) { + return new WorkflowErrorExistsIdenticalStructure(properties); + }; + + /** + * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure} message WorkflowErrorExistsIdenticalStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowErrorExistsIdenticalStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowErrorExistsIdenticalStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowErrorExistsIdenticalStructure message. + * @function verify + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowErrorExistsIdenticalStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowErrorExistsIdenticalStructure; + })(); + + admin.CreateWorkflowFailureReason = (function() { + + /** + * Properties of a CreateWorkflowFailureReason. + * @memberof flyteidl.admin + * @interface ICreateWorkflowFailureReason + * @property {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null} [existsDifferentStructure] CreateWorkflowFailureReason existsDifferentStructure + * @property {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null} [existsIdenticalStructure] CreateWorkflowFailureReason existsIdenticalStructure + */ + + /** + * Constructs a new CreateWorkflowFailureReason. + * @memberof flyteidl.admin + * @classdesc Represents a CreateWorkflowFailureReason. + * @implements ICreateWorkflowFailureReason + * @constructor + * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set + */ + function CreateWorkflowFailureReason(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateWorkflowFailureReason existsDifferentStructure. + * @member {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null|undefined} existsDifferentStructure + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + CreateWorkflowFailureReason.prototype.existsDifferentStructure = null; + + /** + * CreateWorkflowFailureReason existsIdenticalStructure. + * @member {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null|undefined} existsIdenticalStructure + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + CreateWorkflowFailureReason.prototype.existsIdenticalStructure = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CreateWorkflowFailureReason reason. + * @member {"existsDifferentStructure"|"existsIdenticalStructure"|undefined} reason + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + Object.defineProperty(CreateWorkflowFailureReason.prototype, "reason", { + get: $util.oneOfGetter($oneOfFields = ["existsDifferentStructure", "existsIdenticalStructure"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CreateWorkflowFailureReason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set + * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason instance + */ + CreateWorkflowFailureReason.create = function create(properties) { + return new CreateWorkflowFailureReason(properties); + }; + + /** + * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {flyteidl.admin.ICreateWorkflowFailureReason} message CreateWorkflowFailureReason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateWorkflowFailureReason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) + $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.encode(message.existsDifferentStructure, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) + $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.encode(message.existsIdenticalStructure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateWorkflowFailureReason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateWorkflowFailureReason(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.existsDifferentStructure = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.decode(reader, reader.uint32()); + break; + case 2: + message.existsIdenticalStructure = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateWorkflowFailureReason message. + * @function verify + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateWorkflowFailureReason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) { + properties.reason = 1; + { + var error = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify(message.existsDifferentStructure); + if (error) + return "existsDifferentStructure." + error; + } + } + if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) { + if (properties.reason === 1) + return "reason: multiple values"; + properties.reason = 1; + { + var error = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify(message.existsIdenticalStructure); + if (error) + return "existsIdenticalStructure." + error; + } + } + return null; + }; + + return CreateWorkflowFailureReason; + })(); + + admin.WorkflowAttributes = (function() { + + /** + * Properties of a WorkflowAttributes. + * @memberof flyteidl.admin + * @interface IWorkflowAttributes + * @property {string|null} [project] WorkflowAttributes project + * @property {string|null} [domain] WorkflowAttributes domain + * @property {string|null} [workflow] WorkflowAttributes workflow + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] WorkflowAttributes matchingAttributes + */ + + /** + * Constructs a new WorkflowAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributes. + * @implements IWorkflowAttributes + * @constructor + * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set + */ + function WorkflowAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributes project. + * @member {string} project + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.project = ""; + + /** + * WorkflowAttributes domain. + * @member {string} domain + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.domain = ""; + + /** + * WorkflowAttributes workflow. + * @member {string} workflow + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.workflow = ""; + + /** + * WorkflowAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.matchingAttributes = null; + + /** + * Creates a new WorkflowAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes instance + */ + WorkflowAttributes.create = function create(properties) { + return new WorkflowAttributes(properties); + }; + + /** + * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {flyteidl.admin.IWorkflowAttributes} message WorkflowAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.workflow = reader.string(); + break; + case 4: + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributes message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); + if (error) + return "matchingAttributes." + error; + } + return null; + }; + + return WorkflowAttributes; + })(); + + admin.WorkflowAttributesUpdateRequest = (function() { + + /** + * Properties of a WorkflowAttributesUpdateRequest. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesUpdateRequest + * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesUpdateRequest attributes + */ + + /** + * Constructs a new WorkflowAttributesUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesUpdateRequest. + * @implements IWorkflowAttributesUpdateRequest + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set + */ + function WorkflowAttributesUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesUpdateRequest attributes. + * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @instance + */ + WorkflowAttributesUpdateRequest.prototype.attributes = null; + + /** + * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest instance + */ + WorkflowAttributesUpdateRequest.create = function create(properties) { + return new WorkflowAttributesUpdateRequest(properties); + }; + + /** + * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} message WorkflowAttributesUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return WorkflowAttributesUpdateRequest; + })(); + + admin.WorkflowAttributesUpdateResponse = (function() { + + /** + * Properties of a WorkflowAttributesUpdateResponse. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesUpdateResponse + */ + + /** + * Constructs a new WorkflowAttributesUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesUpdateResponse. + * @implements IWorkflowAttributesUpdateResponse + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set + */ + function WorkflowAttributesUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse instance + */ + WorkflowAttributesUpdateResponse.create = function create(properties) { + return new WorkflowAttributesUpdateResponse(properties); + }; + + /** + * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse} message WorkflowAttributesUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowAttributesUpdateResponse; + })(); + + admin.WorkflowAttributesGetRequest = (function() { + + /** + * Properties of a WorkflowAttributesGetRequest. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesGetRequest + * @property {string|null} [project] WorkflowAttributesGetRequest project + * @property {string|null} [domain] WorkflowAttributesGetRequest domain + * @property {string|null} [workflow] WorkflowAttributesGetRequest workflow + * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesGetRequest resourceType + */ + + /** + * Constructs a new WorkflowAttributesGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesGetRequest. + * @implements IWorkflowAttributesGetRequest + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set + */ + function WorkflowAttributesGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.project = ""; + + /** + * WorkflowAttributesGetRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.domain = ""; + + /** + * WorkflowAttributesGetRequest workflow. + * @member {string} workflow + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.workflow = ""; + + /** + * WorkflowAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.resourceType = 0; + + /** + * Creates a new WorkflowAttributesGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest instance + */ + WorkflowAttributesGetRequest.create = function create(properties) { + return new WorkflowAttributesGetRequest(properties); + }; + + /** + * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetRequest} message WorkflowAttributesGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); + return writer; + }; + + /** + * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.workflow = reader.string(); + break; + case 4: + message.resourceType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesGetRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + return WorkflowAttributesGetRequest; + })(); + + admin.WorkflowAttributesGetResponse = (function() { + + /** + * Properties of a WorkflowAttributesGetResponse. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesGetResponse + * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesGetResponse attributes + */ + + /** + * Constructs a new WorkflowAttributesGetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesGetResponse. + * @implements IWorkflowAttributesGetResponse + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set + */ + function WorkflowAttributesGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesGetResponse attributes. + * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @instance + */ + WorkflowAttributesGetResponse.prototype.attributes = null; + + /** + * Creates a new WorkflowAttributesGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse instance + */ + WorkflowAttributesGetResponse.create = function create(properties) { + return new WorkflowAttributesGetResponse(properties); + }; + + /** + * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetResponse} message WorkflowAttributesGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesGetResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return WorkflowAttributesGetResponse; + })(); + + admin.WorkflowAttributesDeleteRequest = (function() { + + /** + * Properties of a WorkflowAttributesDeleteRequest. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesDeleteRequest + * @property {string|null} [project] WorkflowAttributesDeleteRequest project + * @property {string|null} [domain] WorkflowAttributesDeleteRequest domain + * @property {string|null} [workflow] WorkflowAttributesDeleteRequest workflow + * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesDeleteRequest resourceType + */ + + /** + * Constructs a new WorkflowAttributesDeleteRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesDeleteRequest. + * @implements IWorkflowAttributesDeleteRequest + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set + */ + function WorkflowAttributesDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.project = ""; + + /** + * WorkflowAttributesDeleteRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.domain = ""; + + /** + * WorkflowAttributesDeleteRequest workflow. + * @member {string} workflow + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.workflow = ""; + + /** + * WorkflowAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.resourceType = 0; + + /** + * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest instance + */ + WorkflowAttributesDeleteRequest.create = function create(properties) { + return new WorkflowAttributesDeleteRequest(properties); + }; + + /** + * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} message WorkflowAttributesDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); + return writer; + }; + + /** + * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.workflow = reader.string(); + break; + case 4: + message.resourceType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesDeleteRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + return null; + }; + + return WorkflowAttributesDeleteRequest; + })(); + + admin.WorkflowAttributesDeleteResponse = (function() { + + /** + * Properties of a WorkflowAttributesDeleteResponse. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesDeleteResponse + */ + + /** + * Constructs a new WorkflowAttributesDeleteResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesDeleteResponse. + * @implements IWorkflowAttributesDeleteResponse + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set + */ + function WorkflowAttributesDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse instance + */ + WorkflowAttributesDeleteResponse.create = function create(properties) { + return new WorkflowAttributesDeleteResponse(properties); + }; + + /** + * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse} message WorkflowAttributesDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesDeleteResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowAttributesDeleteResponse; + })(); + + return admin; + })(); + + flyteidl.service = (function() { + + /** + * Namespace service. + * @memberof flyteidl + * @namespace + */ + var service = {}; + + service.AdminService = (function() { + + /** + * Constructs a new AdminService service. + * @memberof flyteidl.service + * @classdesc Represents an AdminService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AdminService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AdminService; + + /** + * Creates new AdminService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AdminService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AdminService} RPC service. Useful where requests and/or responses are streamed. + */ + AdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTask}. + * @memberof flyteidl.service.AdminService + * @typedef CreateTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskCreateResponse} [response] TaskCreateResponse + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createTask = function createTask(request, callback) { + return this.rpcCall(createTask, $root.flyteidl.admin.TaskCreateRequest, $root.flyteidl.admin.TaskCreateResponse, request, callback); + }, "name", { value: "CreateTask" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTask}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Task} [response] Task + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Task, request, callback); + }, "name", { value: "GetTask" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListTaskIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListTaskIds. + * @function listTaskIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTaskIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTaskIds = function listTaskIds(request, callback) { + return this.rpcCall(listTaskIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListTaskIds" }); + + /** + * Calls ListTaskIds. + * @function listTaskIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTasks}. + * @memberof flyteidl.service.AdminService + * @typedef ListTasksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskList} [response] TaskList + */ + + /** + * Calls ListTasks. + * @function listTasks + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTasksCallback} callback Node-style callback called with the error, if any, and TaskList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTasks = function listTasks(request, callback) { + return this.rpcCall(listTasks, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.TaskList, request, callback); + }, "name", { value: "ListTasks" }); + + /** + * Calls ListTasks. + * @function listTasks + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. + * @memberof flyteidl.service.AdminService + * @typedef CreateWorkflowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowCreateResponse} [response] WorkflowCreateResponse + */ + + /** + * Calls CreateWorkflow. + * @function createWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateWorkflowCallback} callback Node-style callback called with the error, if any, and WorkflowCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createWorkflow = function createWorkflow(request, callback) { + return this.rpcCall(createWorkflow, $root.flyteidl.admin.WorkflowCreateRequest, $root.flyteidl.admin.WorkflowCreateResponse, request, callback); + }, "name", { value: "CreateWorkflow" }); + + /** + * Calls CreateWorkflow. + * @function createWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. + * @memberof flyteidl.service.AdminService + * @typedef GetWorkflowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Workflow} [response] Workflow + */ + + /** + * Calls GetWorkflow. + * @function getWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetWorkflowCallback} callback Node-style callback called with the error, if any, and Workflow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getWorkflow = function getWorkflow(request, callback) { + return this.rpcCall(getWorkflow, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Workflow, request, callback); + }, "name", { value: "GetWorkflow" }); + + /** + * Calls GetWorkflow. + * @function getWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListWorkflowIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListWorkflowIds. + * @function listWorkflowIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListWorkflowIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listWorkflowIds = function listWorkflowIds(request, callback) { + return this.rpcCall(listWorkflowIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListWorkflowIds" }); + + /** + * Calls ListWorkflowIds. + * @function listWorkflowIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. + * @memberof flyteidl.service.AdminService + * @typedef ListWorkflowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowList} [response] WorkflowList + */ + + /** + * Calls ListWorkflows. + * @function listWorkflows + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListWorkflowsCallback} callback Node-style callback called with the error, if any, and WorkflowList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listWorkflows = function listWorkflows(request, callback) { + return this.rpcCall(listWorkflows, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.WorkflowList, request, callback); + }, "name", { value: "ListWorkflows" }); + + /** + * Calls ListWorkflows. + * @function listWorkflows + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef CreateLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanCreateResponse} [response] LaunchPlanCreateResponse + */ + + /** + * Calls CreateLaunchPlan. + * @function createLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createLaunchPlan = function createLaunchPlan(request, callback) { + return this.rpcCall(createLaunchPlan, $root.flyteidl.admin.LaunchPlanCreateRequest, $root.flyteidl.admin.LaunchPlanCreateResponse, request, callback); + }, "name", { value: "CreateLaunchPlan" }); + + /** + * Calls CreateLaunchPlan. + * @function createLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef GetLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan + */ + + /** + * Calls GetLaunchPlan. + * @function getLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getLaunchPlan = function getLaunchPlan(request, callback) { + return this.rpcCall(getLaunchPlan, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.LaunchPlan, request, callback); + }, "name", { value: "GetLaunchPlan" }); + + /** + * Calls GetLaunchPlan. + * @function getLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef GetActiveLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan + */ + + /** + * Calls GetActiveLaunchPlan. + * @function getActiveLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object + * @param {flyteidl.service.AdminService.GetActiveLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getActiveLaunchPlan = function getActiveLaunchPlan(request, callback) { + return this.rpcCall(getActiveLaunchPlan, $root.flyteidl.admin.ActiveLaunchPlanRequest, $root.flyteidl.admin.LaunchPlan, request, callback); + }, "name", { value: "GetActiveLaunchPlan" }); + + /** + * Calls GetActiveLaunchPlan. + * @function getActiveLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. + * @memberof flyteidl.service.AdminService + * @typedef ListActiveLaunchPlansCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList + */ + + /** + * Calls ListActiveLaunchPlans. + * @function listActiveLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object + * @param {flyteidl.service.AdminService.ListActiveLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listActiveLaunchPlans = function listActiveLaunchPlans(request, callback) { + return this.rpcCall(listActiveLaunchPlans, $root.flyteidl.admin.ActiveLaunchPlanListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); + }, "name", { value: "ListActiveLaunchPlans" }); + + /** + * Calls ListActiveLaunchPlans. + * @function listActiveLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListLaunchPlanIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListLaunchPlanIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listLaunchPlanIds = function listLaunchPlanIds(request, callback) { + return this.rpcCall(listLaunchPlanIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListLaunchPlanIds" }); + + /** + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. + * @memberof flyteidl.service.AdminService + * @typedef ListLaunchPlansCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList + */ + + /** + * Calls ListLaunchPlans. + * @function listLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listLaunchPlans = function listLaunchPlans(request, callback) { + return this.rpcCall(listLaunchPlans, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); + }, "name", { value: "ListLaunchPlans" }); + + /** + * Calls ListLaunchPlans. + * @function listLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanUpdateResponse} [response] LaunchPlanUpdateResponse + */ + + /** + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateLaunchPlan = function updateLaunchPlan(request, callback) { + return this.rpcCall(updateLaunchPlan, $root.flyteidl.admin.LaunchPlanUpdateRequest, $root.flyteidl.admin.LaunchPlanUpdateResponse, request, callback); + }, "name", { value: "UpdateLaunchPlan" }); + + /** + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createExecution}. + * @memberof flyteidl.service.AdminService + * @typedef CreateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls CreateExecution. + * @function createExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createExecution = function createExecution(request, callback) { + return this.rpcCall(createExecution, $root.flyteidl.admin.ExecutionCreateRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "CreateExecution" }); + + /** + * Calls CreateExecution. + * @function createExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. + * @memberof flyteidl.service.AdminService + * @typedef RelaunchExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls RelaunchExecution. + * @function relaunchExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object + * @param {flyteidl.service.AdminService.RelaunchExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.relaunchExecution = function relaunchExecution(request, callback) { + return this.rpcCall(relaunchExecution, $root.flyteidl.admin.ExecutionRelaunchRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "RelaunchExecution" }); + + /** + * Calls RelaunchExecution. + * @function relaunchExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. + * @memberof flyteidl.service.AdminService + * @typedef RecoverExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls RecoverExecution. + * @function recoverExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object + * @param {flyteidl.service.AdminService.RecoverExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.recoverExecution = function recoverExecution(request, callback) { + return this.rpcCall(recoverExecution, $root.flyteidl.admin.ExecutionRecoverRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "RecoverExecution" }); + + /** + * Calls RecoverExecution. + * @function recoverExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Execution} [response] Execution + */ + + /** + * Calls GetExecution. + * @function getExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecution = function getExecution(request, callback) { + return this.rpcCall(getExecution, $root.flyteidl.admin.WorkflowExecutionGetRequest, $root.flyteidl.admin.Execution, request, callback); + }, "name", { value: "GetExecution" }); + + /** + * Calls GetExecution. + * @function getExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionUpdateResponse} [response] ExecutionUpdateResponse + */ + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateExecution = function updateExecution(request, callback) { + return this.rpcCall(updateExecution, $root.flyteidl.admin.ExecutionUpdateRequest, $root.flyteidl.admin.ExecutionUpdateResponse, request, callback); + }, "name", { value: "UpdateExecution" }); + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionGetDataResponse} [response] WorkflowExecutionGetDataResponse + */ + + /** + * Calls GetExecutionData. + * @function getExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionDataCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecutionData = function getExecutionData(request, callback) { + return this.rpcCall(getExecutionData, $root.flyteidl.admin.WorkflowExecutionGetDataRequest, $root.flyteidl.admin.WorkflowExecutionGetDataResponse, request, callback); + }, "name", { value: "GetExecutionData" }); + + /** + * Calls GetExecutionData. + * @function getExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionList} [response] ExecutionList + */ + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listExecutions = function listExecutions(request, callback) { + return this.rpcCall(listExecutions, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.ExecutionList, request, callback); + }, "name", { value: "ListExecutions" }); + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. + * @memberof flyteidl.service.AdminService + * @typedef TerminateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionTerminateResponse} [response] ExecutionTerminateResponse + */ + + /** + * Calls TerminateExecution. + * @function terminateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object + * @param {flyteidl.service.AdminService.TerminateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionTerminateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.terminateExecution = function terminateExecution(request, callback) { + return this.rpcCall(terminateExecution, $root.flyteidl.admin.ExecutionTerminateRequest, $root.flyteidl.admin.ExecutionTerminateResponse, request, callback); + }, "name", { value: "TerminateExecution" }); + + /** + * Calls TerminateExecution. + * @function terminateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetNodeExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecution} [response] NodeExecution + */ + + /** + * Calls GetNodeExecution. + * @function getNodeExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetNodeExecutionCallback} callback Node-style callback called with the error, if any, and NodeExecution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNodeExecution = function getNodeExecution(request, callback) { + return this.rpcCall(getNodeExecution, $root.flyteidl.admin.NodeExecutionGetRequest, $root.flyteidl.admin.NodeExecution, request, callback); + }, "name", { value: "GetNodeExecution" }); + + /** + * Calls GetNodeExecution. + * @function getNodeExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListNodeExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + */ + + /** + * Calls ListNodeExecutions. + * @function listNodeExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNodeExecutionsCallback} callback Node-style callback called with the error, if any, and NodeExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNodeExecutions = function listNodeExecutions(request, callback) { + return this.rpcCall(listNodeExecutions, $root.flyteidl.admin.NodeExecutionListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); + }, "name", { value: "ListNodeExecutions" }); + + /** + * Calls ListNodeExecutions. + * @function listNodeExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. + * @memberof flyteidl.service.AdminService + * @typedef ListNodeExecutionsForTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + */ + + /** + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback} callback Node-style callback called with the error, if any, and NodeExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNodeExecutionsForTask = function listNodeExecutionsForTask(request, callback) { + return this.rpcCall(listNodeExecutionsForTask, $root.flyteidl.admin.NodeExecutionForTaskListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); + }, "name", { value: "ListNodeExecutionsForTask" }); + + /** + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetNodeExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionGetDataResponse} [response] NodeExecutionGetDataResponse + */ + + /** + * Calls GetNodeExecutionData. + * @function getNodeExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetNodeExecutionDataCallback} callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNodeExecutionData = function getNodeExecutionData(request, callback) { + return this.rpcCall(getNodeExecutionData, $root.flyteidl.admin.NodeExecutionGetDataRequest, $root.flyteidl.admin.NodeExecutionGetDataResponse, request, callback); + }, "name", { value: "GetNodeExecutionData" }); + + /** + * Calls GetNodeExecutionData. + * @function getNodeExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#registerProject}. + * @memberof flyteidl.service.AdminService + * @typedef RegisterProjectCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectRegisterResponse} [response] ProjectRegisterResponse + */ + + /** + * Calls RegisterProject. + * @function registerProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object + * @param {flyteidl.service.AdminService.RegisterProjectCallback} callback Node-style callback called with the error, if any, and ProjectRegisterResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.registerProject = function registerProject(request, callback) { + return this.rpcCall(registerProject, $root.flyteidl.admin.ProjectRegisterRequest, $root.flyteidl.admin.ProjectRegisterResponse, request, callback); + }, "name", { value: "RegisterProject" }); + + /** + * Calls RegisterProject. + * @function registerProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProject}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateProjectCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectUpdateResponse} [response] ProjectUpdateResponse + */ + + /** + * Calls UpdateProject. + * @function updateProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProject} request Project message or plain object + * @param {flyteidl.service.AdminService.UpdateProjectCallback} callback Node-style callback called with the error, if any, and ProjectUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateProject = function updateProject(request, callback) { + return this.rpcCall(updateProject, $root.flyteidl.admin.Project, $root.flyteidl.admin.ProjectUpdateResponse, request, callback); + }, "name", { value: "UpdateProject" }); + + /** + * Calls UpdateProject. + * @function updateProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProject} request Project message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listProjects}. + * @memberof flyteidl.service.AdminService + * @typedef ListProjectsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Projects} [response] Projects + */ + + /** + * Calls ListProjects. + * @function listProjects + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object + * @param {flyteidl.service.AdminService.ListProjectsCallback} callback Node-style callback called with the error, if any, and Projects + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listProjects = function listProjects(request, callback) { + return this.rpcCall(listProjects, $root.flyteidl.admin.ProjectListRequest, $root.flyteidl.admin.Projects, request, callback); + }, "name", { value: "ListProjects" }); + + /** + * Calls ListProjects. + * @function listProjects + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateWorkflowEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionEventResponse} [response] WorkflowExecutionEventResponse + */ + + /** + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateWorkflowEventCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createWorkflowEvent = function createWorkflowEvent(request, callback) { + return this.rpcCall(createWorkflowEvent, $root.flyteidl.admin.WorkflowExecutionEventRequest, $root.flyteidl.admin.WorkflowExecutionEventResponse, request, callback); + }, "name", { value: "CreateWorkflowEvent" }); + + /** + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateNodeEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionEventResponse} [response] NodeExecutionEventResponse + */ + + /** + * Calls CreateNodeEvent. + * @function createNodeEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateNodeEventCallback} callback Node-style callback called with the error, if any, and NodeExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createNodeEvent = function createNodeEvent(request, callback) { + return this.rpcCall(createNodeEvent, $root.flyteidl.admin.NodeExecutionEventRequest, $root.flyteidl.admin.NodeExecutionEventResponse, request, callback); + }, "name", { value: "CreateNodeEvent" }); + + /** + * Calls CreateNodeEvent. + * @function createNodeEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateTaskEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionEventResponse} [response] TaskExecutionEventResponse + */ + + /** + * Calls CreateTaskEvent. + * @function createTaskEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateTaskEventCallback} callback Node-style callback called with the error, if any, and TaskExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createTaskEvent = function createTaskEvent(request, callback) { + return this.rpcCall(createTaskEvent, $root.flyteidl.admin.TaskExecutionEventRequest, $root.flyteidl.admin.TaskExecutionEventResponse, request, callback); + }, "name", { value: "CreateTaskEvent" }); + + /** + * Calls CreateTaskEvent. + * @function createTaskEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecution} [response] TaskExecution + */ + + /** + * Calls GetTaskExecution. + * @function getTaskExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskExecutionCallback} callback Node-style callback called with the error, if any, and TaskExecution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTaskExecution = function getTaskExecution(request, callback) { + return this.rpcCall(getTaskExecution, $root.flyteidl.admin.TaskExecutionGetRequest, $root.flyteidl.admin.TaskExecution, request, callback); + }, "name", { value: "GetTaskExecution" }); + + /** + * Calls GetTaskExecution. + * @function getTaskExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListTaskExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionList} [response] TaskExecutionList + */ + + /** + * Calls ListTaskExecutions. + * @function listTaskExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTaskExecutionsCallback} callback Node-style callback called with the error, if any, and TaskExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTaskExecutions = function listTaskExecutions(request, callback) { + return this.rpcCall(listTaskExecutions, $root.flyteidl.admin.TaskExecutionListRequest, $root.flyteidl.admin.TaskExecutionList, request, callback); + }, "name", { value: "ListTaskExecutions" }); + + /** + * Calls ListTaskExecutions. + * @function listTaskExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionGetDataResponse} [response] TaskExecutionGetDataResponse + */ + + /** + * Calls GetTaskExecutionData. + * @function getTaskExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskExecutionDataCallback} callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTaskExecutionData = function getTaskExecutionData(request, callback) { + return this.rpcCall(getTaskExecutionData, $root.flyteidl.admin.TaskExecutionGetDataRequest, $root.flyteidl.admin.TaskExecutionGetDataResponse, request, callback); + }, "name", { value: "GetTaskExecutionData" }); + + /** + * Calls GetTaskExecutionData. + * @function getTaskExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateProjectDomainAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectDomainAttributesUpdateResponse} [response] ProjectDomainAttributesUpdateResponse + */ + + /** + * Calls UpdateProjectDomainAttributes. + * @function updateProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateProjectDomainAttributes = function updateProjectDomainAttributes(request, callback) { + return this.rpcCall(updateProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest, $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse, request, callback); + }, "name", { value: "UpdateProjectDomainAttributes" }); + + /** + * Calls UpdateProjectDomainAttributes. + * @function updateProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef GetProjectDomainAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectDomainAttributesGetResponse} [response] ProjectDomainAttributesGetResponse + */ + + /** + * Calls GetProjectDomainAttributes. + * @function getProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getProjectDomainAttributes = function getProjectDomainAttributes(request, callback) { + return this.rpcCall(getProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesGetRequest, $root.flyteidl.admin.ProjectDomainAttributesGetResponse, request, callback); + }, "name", { value: "GetProjectDomainAttributes" }); + + /** + * Calls GetProjectDomainAttributes. + * @function getProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef DeleteProjectDomainAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectDomainAttributesDeleteResponse} [response] ProjectDomainAttributesDeleteResponse + */ + + /** + * Calls DeleteProjectDomainAttributes. + * @function deleteProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object + * @param {flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.deleteProjectDomainAttributes = function deleteProjectDomainAttributes(request, callback) { + return this.rpcCall(deleteProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest, $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse, request, callback); + }, "name", { value: "DeleteProjectDomainAttributes" }); + + /** + * Calls DeleteProjectDomainAttributes. + * @function deleteProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateProjectAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectAttributesUpdateResponse} [response] ProjectAttributesUpdateResponse + */ + + /** + * Calls UpdateProjectAttributes. + * @function updateProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateProjectAttributes = function updateProjectAttributes(request, callback) { + return this.rpcCall(updateProjectAttributes, $root.flyteidl.admin.ProjectAttributesUpdateRequest, $root.flyteidl.admin.ProjectAttributesUpdateResponse, request, callback); + }, "name", { value: "UpdateProjectAttributes" }); + + /** + * Calls UpdateProjectAttributes. + * @function updateProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef GetProjectAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectAttributesGetResponse} [response] ProjectAttributesGetResponse + */ + + /** + * Calls GetProjectAttributes. + * @function getProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getProjectAttributes = function getProjectAttributes(request, callback) { + return this.rpcCall(getProjectAttributes, $root.flyteidl.admin.ProjectAttributesGetRequest, $root.flyteidl.admin.ProjectAttributesGetResponse, request, callback); + }, "name", { value: "GetProjectAttributes" }); + + /** + * Calls GetProjectAttributes. + * @function getProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef DeleteProjectAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectAttributesDeleteResponse} [response] ProjectAttributesDeleteResponse + */ + + /** + * Calls DeleteProjectAttributes. + * @function deleteProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object + * @param {flyteidl.service.AdminService.DeleteProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.deleteProjectAttributes = function deleteProjectAttributes(request, callback) { + return this.rpcCall(deleteProjectAttributes, $root.flyteidl.admin.ProjectAttributesDeleteRequest, $root.flyteidl.admin.ProjectAttributesDeleteResponse, request, callback); + }, "name", { value: "DeleteProjectAttributes" }); + + /** + * Calls DeleteProjectAttributes. + * @function deleteProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateWorkflowAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowAttributesUpdateResponse} [response] WorkflowAttributesUpdateResponse + */ + + /** + * Calls UpdateWorkflowAttributes. + * @function updateWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateWorkflowAttributes = function updateWorkflowAttributes(request, callback) { + return this.rpcCall(updateWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesUpdateRequest, $root.flyteidl.admin.WorkflowAttributesUpdateResponse, request, callback); + }, "name", { value: "UpdateWorkflowAttributes" }); + + /** + * Calls UpdateWorkflowAttributes. + * @function updateWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef GetWorkflowAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowAttributesGetResponse} [response] WorkflowAttributesGetResponse + */ + + /** + * Calls GetWorkflowAttributes. + * @function getWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getWorkflowAttributes = function getWorkflowAttributes(request, callback) { + return this.rpcCall(getWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesGetRequest, $root.flyteidl.admin.WorkflowAttributesGetResponse, request, callback); + }, "name", { value: "GetWorkflowAttributes" }); + + /** + * Calls GetWorkflowAttributes. + * @function getWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef DeleteWorkflowAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowAttributesDeleteResponse} [response] WorkflowAttributesDeleteResponse + */ + + /** + * Calls DeleteWorkflowAttributes. + * @function deleteWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object + * @param {flyteidl.service.AdminService.DeleteWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.deleteWorkflowAttributes = function deleteWorkflowAttributes(request, callback) { + return this.rpcCall(deleteWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesDeleteRequest, $root.flyteidl.admin.WorkflowAttributesDeleteResponse, request, callback); + }, "name", { value: "DeleteWorkflowAttributes" }); + + /** + * Calls DeleteWorkflowAttributes. + * @function deleteWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef ListMatchableAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ListMatchableAttributesResponse} [response] ListMatchableAttributesResponse + */ + + /** + * Calls ListMatchableAttributes. + * @function listMatchableAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object + * @param {flyteidl.service.AdminService.ListMatchableAttributesCallback} callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listMatchableAttributes = function listMatchableAttributes(request, callback) { + return this.rpcCall(listMatchableAttributes, $root.flyteidl.admin.ListMatchableAttributesRequest, $root.flyteidl.admin.ListMatchableAttributesResponse, request, callback); + }, "name", { value: "ListMatchableAttributes" }); + + /** + * Calls ListMatchableAttributes. + * @function listMatchableAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. + * @memberof flyteidl.service.AdminService + * @typedef ListNamedEntitiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityList} [response] NamedEntityList + */ + + /** + * Calls ListNamedEntities. + * @function listNamedEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNamedEntitiesCallback} callback Node-style callback called with the error, if any, and NamedEntityList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNamedEntities = function listNamedEntities(request, callback) { + return this.rpcCall(listNamedEntities, $root.flyteidl.admin.NamedEntityListRequest, $root.flyteidl.admin.NamedEntityList, request, callback); + }, "name", { value: "ListNamedEntities" }); + + /** + * Calls ListNamedEntities. + * @function listNamedEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. + * @memberof flyteidl.service.AdminService + * @typedef GetNamedEntityCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntity} [response] NamedEntity + */ + + /** + * Calls GetNamedEntity. + * @function getNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntity + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNamedEntity = function getNamedEntity(request, callback) { + return this.rpcCall(getNamedEntity, $root.flyteidl.admin.NamedEntityGetRequest, $root.flyteidl.admin.NamedEntity, request, callback); + }, "name", { value: "GetNamedEntity" }); + + /** + * Calls GetNamedEntity. + * @function getNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateNamedEntityCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityUpdateResponse} [response] NamedEntityUpdateResponse + */ + + /** + * Calls UpdateNamedEntity. + * @function updateNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateNamedEntity = function updateNamedEntity(request, callback) { + return this.rpcCall(updateNamedEntity, $root.flyteidl.admin.NamedEntityUpdateRequest, $root.flyteidl.admin.NamedEntityUpdateResponse, request, callback); + }, "name", { value: "UpdateNamedEntity" }); + + /** + * Calls UpdateNamedEntity. + * @function updateNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getVersion}. + * @memberof flyteidl.service.AdminService + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetVersionResponse} [response] GetVersionResponse + */ + + /** + * Calls GetVersion. + * @function getVersion + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object + * @param {flyteidl.service.AdminService.GetVersionCallback} callback Node-style callback called with the error, if any, and GetVersionResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.flyteidl.admin.GetVersionRequest, $root.flyteidl.admin.GetVersionResponse, request, callback); + }, "name", { value: "GetVersion" }); + + /** + * Calls GetVersion. + * @function getVersion + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. + * @memberof flyteidl.service.AdminService + * @typedef GetDescriptionEntityCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.DescriptionEntity} [response] DescriptionEntity + */ + + /** + * Calls GetDescriptionEntity. + * @function getDescriptionEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetDescriptionEntityCallback} callback Node-style callback called with the error, if any, and DescriptionEntity + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getDescriptionEntity = function getDescriptionEntity(request, callback) { + return this.rpcCall(getDescriptionEntity, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.DescriptionEntity, request, callback); + }, "name", { value: "GetDescriptionEntity" }); + + /** + * Calls GetDescriptionEntity. + * @function getDescriptionEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. + * @memberof flyteidl.service.AdminService + * @typedef ListDescriptionEntitiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.DescriptionEntityList} [response] DescriptionEntityList + */ + + /** + * Calls ListDescriptionEntities. + * @function listDescriptionEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object + * @param {flyteidl.service.AdminService.ListDescriptionEntitiesCallback} callback Node-style callback called with the error, if any, and DescriptionEntityList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listDescriptionEntities = function listDescriptionEntities(request, callback) { + return this.rpcCall(listDescriptionEntities, $root.flyteidl.admin.DescriptionEntityListRequest, $root.flyteidl.admin.DescriptionEntityList, request, callback); + }, "name", { value: "ListDescriptionEntities" }); + + /** + * Calls ListDescriptionEntities. + * @function listDescriptionEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionGetMetricsResponse} [response] WorkflowExecutionGetMetricsResponse + */ + + /** + * Calls GetExecutionMetrics. + * @function getExecutionMetrics + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionMetricsCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecutionMetrics = function getExecutionMetrics(request, callback) { + return this.rpcCall(getExecutionMetrics, $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest, $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse, request, callback); + }, "name", { value: "GetExecutionMetrics" }); + + /** + * Calls GetExecutionMetrics. + * @function getExecutionMetrics + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AdminService; + })(); + + service.AsyncAgentService = (function() { + + /** + * Constructs a new AsyncAgentService service. + * @memberof flyteidl.service + * @classdesc Represents an AsyncAgentService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AsyncAgentService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AsyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AsyncAgentService; + + /** + * Creates new AsyncAgentService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AsyncAgentService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AsyncAgentService} RPC service. Useful where requests and/or responses are streamed. + */ + AsyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef CreateTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.CreateTaskResponse} [response] CreateTaskResponse + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.CreateTaskCallback} callback Node-style callback called with the error, if any, and CreateTaskResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.createTask = function createTask(request, callback) { + return this.rpcCall(createTask, $root.flyteidl.admin.CreateTaskRequest, $root.flyteidl.admin.CreateTaskResponse, request, callback); + }, "name", { value: "CreateTask" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetTaskResponse} [response] GetTaskResponse + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.GetTaskCallback} callback Node-style callback called with the error, if any, and GetTaskResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.flyteidl.admin.GetTaskRequest, $root.flyteidl.admin.GetTaskResponse, request, callback); + }, "name", { value: "GetTask" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef DeleteTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.DeleteTaskResponse} [response] DeleteTaskResponse + */ + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and DeleteTaskResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.deleteTask = function deleteTask(request, callback) { + return this.rpcCall(deleteTask, $root.flyteidl.admin.DeleteTaskRequest, $root.flyteidl.admin.DeleteTaskResponse, request, callback); + }, "name", { value: "DeleteTask" }); + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AsyncAgentService; + })(); + + service.OAuth2MetadataRequest = (function() { + + /** + * Properties of a OAuth2MetadataRequest. + * @memberof flyteidl.service + * @interface IOAuth2MetadataRequest + */ + + /** + * Constructs a new OAuth2MetadataRequest. + * @memberof flyteidl.service + * @classdesc Represents a OAuth2MetadataRequest. + * @implements IOAuth2MetadataRequest + * @constructor + * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set + */ + function OAuth2MetadataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new OAuth2MetadataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set + * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest instance + */ + OAuth2MetadataRequest.create = function create(properties) { + return new OAuth2MetadataRequest(properties); + }; + + /** + * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {flyteidl.service.IOAuth2MetadataRequest} message OAuth2MetadataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2MetadataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2MetadataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2MetadataRequest message. + * @function verify + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2MetadataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return OAuth2MetadataRequest; + })(); + + service.OAuth2MetadataResponse = (function() { + + /** + * Properties of a OAuth2MetadataResponse. + * @memberof flyteidl.service + * @interface IOAuth2MetadataResponse + * @property {string|null} [issuer] OAuth2MetadataResponse issuer + * @property {string|null} [authorizationEndpoint] OAuth2MetadataResponse authorizationEndpoint + * @property {string|null} [tokenEndpoint] OAuth2MetadataResponse tokenEndpoint + * @property {Array.|null} [responseTypesSupported] OAuth2MetadataResponse responseTypesSupported + * @property {Array.|null} [scopesSupported] OAuth2MetadataResponse scopesSupported + * @property {Array.|null} [tokenEndpointAuthMethodsSupported] OAuth2MetadataResponse tokenEndpointAuthMethodsSupported + * @property {string|null} [jwksUri] OAuth2MetadataResponse jwksUri + * @property {Array.|null} [codeChallengeMethodsSupported] OAuth2MetadataResponse codeChallengeMethodsSupported + * @property {Array.|null} [grantTypesSupported] OAuth2MetadataResponse grantTypesSupported + * @property {string|null} [deviceAuthorizationEndpoint] OAuth2MetadataResponse deviceAuthorizationEndpoint + */ + + /** + * Constructs a new OAuth2MetadataResponse. + * @memberof flyteidl.service + * @classdesc Represents a OAuth2MetadataResponse. + * @implements IOAuth2MetadataResponse + * @constructor + * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set + */ + function OAuth2MetadataResponse(properties) { + this.responseTypesSupported = []; + this.scopesSupported = []; + this.tokenEndpointAuthMethodsSupported = []; + this.codeChallengeMethodsSupported = []; + this.grantTypesSupported = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OAuth2MetadataResponse issuer. + * @member {string} issuer + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.issuer = ""; + + /** + * OAuth2MetadataResponse authorizationEndpoint. + * @member {string} authorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.authorizationEndpoint = ""; + + /** + * OAuth2MetadataResponse tokenEndpoint. + * @member {string} tokenEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.tokenEndpoint = ""; + + /** + * OAuth2MetadataResponse responseTypesSupported. + * @member {Array.} responseTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.responseTypesSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse scopesSupported. + * @member {Array.} scopesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.scopesSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. + * @member {Array.} tokenEndpointAuthMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse jwksUri. + * @member {string} jwksUri + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.jwksUri = ""; + + /** + * OAuth2MetadataResponse codeChallengeMethodsSupported. + * @member {Array.} codeChallengeMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse grantTypesSupported. + * @member {Array.} grantTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse deviceAuthorizationEndpoint. + * @member {string} deviceAuthorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; + + /** + * Creates a new OAuth2MetadataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set + * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse instance + */ + OAuth2MetadataResponse.create = function create(properties) { + return new OAuth2MetadataResponse(properties); + }; + + /** + * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {flyteidl.service.IOAuth2MetadataResponse} message OAuth2MetadataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2MetadataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.issuer != null && message.hasOwnProperty("issuer")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); + if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.authorizationEndpoint); + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tokenEndpoint); + if (message.responseTypesSupported != null && message.responseTypesSupported.length) + for (var i = 0; i < message.responseTypesSupported.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.responseTypesSupported[i]); + if (message.scopesSupported != null && message.scopesSupported.length) + for (var i = 0; i < message.scopesSupported.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.scopesSupported[i]); + if (message.tokenEndpointAuthMethodsSupported != null && message.tokenEndpointAuthMethodsSupported.length) + for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.tokenEndpointAuthMethodsSupported[i]); + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.jwksUri); + if (message.codeChallengeMethodsSupported != null && message.codeChallengeMethodsSupported.length) + for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.codeChallengeMethodsSupported[i]); + if (message.grantTypesSupported != null && message.grantTypesSupported.length) + for (var i = 0; i < message.grantTypesSupported.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.grantTypesSupported[i]); + if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.deviceAuthorizationEndpoint); + return writer; + }; + + /** + * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2MetadataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.authorizationEndpoint = reader.string(); + break; + case 3: + message.tokenEndpoint = reader.string(); + break; + case 4: + if (!(message.responseTypesSupported && message.responseTypesSupported.length)) + message.responseTypesSupported = []; + message.responseTypesSupported.push(reader.string()); + break; + case 5: + if (!(message.scopesSupported && message.scopesSupported.length)) + message.scopesSupported = []; + message.scopesSupported.push(reader.string()); + break; + case 6: + if (!(message.tokenEndpointAuthMethodsSupported && message.tokenEndpointAuthMethodsSupported.length)) + message.tokenEndpointAuthMethodsSupported = []; + message.tokenEndpointAuthMethodsSupported.push(reader.string()); + break; + case 7: + message.jwksUri = reader.string(); + break; + case 8: + if (!(message.codeChallengeMethodsSupported && message.codeChallengeMethodsSupported.length)) + message.codeChallengeMethodsSupported = []; + message.codeChallengeMethodsSupported.push(reader.string()); + break; + case 9: + if (!(message.grantTypesSupported && message.grantTypesSupported.length)) + message.grantTypesSupported = []; + message.grantTypesSupported.push(reader.string()); + break; + case 10: + message.deviceAuthorizationEndpoint = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2MetadataResponse message. + * @function verify + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2MetadataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.issuer != null && message.hasOwnProperty("issuer")) + if (!$util.isString(message.issuer)) + return "issuer: string expected"; + if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) + if (!$util.isString(message.authorizationEndpoint)) + return "authorizationEndpoint: string expected"; + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + if (!$util.isString(message.tokenEndpoint)) + return "tokenEndpoint: string expected"; + if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { + if (!Array.isArray(message.responseTypesSupported)) + return "responseTypesSupported: array expected"; + for (var i = 0; i < message.responseTypesSupported.length; ++i) + if (!$util.isString(message.responseTypesSupported[i])) + return "responseTypesSupported: string[] expected"; + } + if (message.scopesSupported != null && message.hasOwnProperty("scopesSupported")) { + if (!Array.isArray(message.scopesSupported)) + return "scopesSupported: array expected"; + for (var i = 0; i < message.scopesSupported.length; ++i) + if (!$util.isString(message.scopesSupported[i])) + return "scopesSupported: string[] expected"; + } + if (message.tokenEndpointAuthMethodsSupported != null && message.hasOwnProperty("tokenEndpointAuthMethodsSupported")) { + if (!Array.isArray(message.tokenEndpointAuthMethodsSupported)) + return "tokenEndpointAuthMethodsSupported: array expected"; + for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) + if (!$util.isString(message.tokenEndpointAuthMethodsSupported[i])) + return "tokenEndpointAuthMethodsSupported: string[] expected"; + } + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + if (!$util.isString(message.jwksUri)) + return "jwksUri: string expected"; + if (message.codeChallengeMethodsSupported != null && message.hasOwnProperty("codeChallengeMethodsSupported")) { + if (!Array.isArray(message.codeChallengeMethodsSupported)) + return "codeChallengeMethodsSupported: array expected"; + for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) + if (!$util.isString(message.codeChallengeMethodsSupported[i])) + return "codeChallengeMethodsSupported: string[] expected"; + } + if (message.grantTypesSupported != null && message.hasOwnProperty("grantTypesSupported")) { + if (!Array.isArray(message.grantTypesSupported)) + return "grantTypesSupported: array expected"; + for (var i = 0; i < message.grantTypesSupported.length; ++i) + if (!$util.isString(message.grantTypesSupported[i])) + return "grantTypesSupported: string[] expected"; + } + if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) + if (!$util.isString(message.deviceAuthorizationEndpoint)) + return "deviceAuthorizationEndpoint: string expected"; + return null; + }; + + return OAuth2MetadataResponse; + })(); + + service.PublicClientAuthConfigRequest = (function() { + + /** + * Properties of a PublicClientAuthConfigRequest. + * @memberof flyteidl.service + * @interface IPublicClientAuthConfigRequest + */ + + /** + * Constructs a new PublicClientAuthConfigRequest. + * @memberof flyteidl.service + * @classdesc Represents a PublicClientAuthConfigRequest. + * @implements IPublicClientAuthConfigRequest + * @constructor + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + */ + function PublicClientAuthConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance + */ + PublicClientAuthConfigRequest.create = function create(properties) { + return new PublicClientAuthConfigRequest(properties); + }; + + /** + * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {flyteidl.service.IPublicClientAuthConfigRequest} message PublicClientAuthConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublicClientAuthConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublicClientAuthConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PublicClientAuthConfigRequest message. + * @function verify + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PublicClientAuthConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return PublicClientAuthConfigRequest; + })(); + + service.PublicClientAuthConfigResponse = (function() { + + /** + * Properties of a PublicClientAuthConfigResponse. + * @memberof flyteidl.service + * @interface IPublicClientAuthConfigResponse + * @property {string|null} [clientId] PublicClientAuthConfigResponse clientId + * @property {string|null} [redirectUri] PublicClientAuthConfigResponse redirectUri + * @property {Array.|null} [scopes] PublicClientAuthConfigResponse scopes + * @property {string|null} [authorizationMetadataKey] PublicClientAuthConfigResponse authorizationMetadataKey + * @property {string|null} [serviceHttpEndpoint] PublicClientAuthConfigResponse serviceHttpEndpoint + * @property {string|null} [audience] PublicClientAuthConfigResponse audience + */ + + /** + * Constructs a new PublicClientAuthConfigResponse. + * @memberof flyteidl.service + * @classdesc Represents a PublicClientAuthConfigResponse. + * @implements IPublicClientAuthConfigResponse + * @constructor + * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + */ + function PublicClientAuthConfigResponse(properties) { + this.scopes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PublicClientAuthConfigResponse clientId. + * @member {string} clientId + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.clientId = ""; + + /** + * PublicClientAuthConfigResponse redirectUri. + * @member {string} redirectUri + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.redirectUri = ""; + + /** + * PublicClientAuthConfigResponse scopes. + * @member {Array.} scopes + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.scopes = $util.emptyArray; + + /** + * PublicClientAuthConfigResponse authorizationMetadataKey. + * @member {string} authorizationMetadataKey + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.authorizationMetadataKey = ""; + + /** + * PublicClientAuthConfigResponse serviceHttpEndpoint. + * @member {string} serviceHttpEndpoint + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; + + /** + * PublicClientAuthConfigResponse audience. + * @member {string} audience + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.audience = ""; + + /** + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance + */ + PublicClientAuthConfigResponse.create = function create(properties) { + return new PublicClientAuthConfigResponse(properties); + }; + + /** + * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {flyteidl.service.IPublicClientAuthConfigResponse} message PublicClientAuthConfigResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublicClientAuthConfigResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clientId != null && message.hasOwnProperty("clientId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); + if (message.scopes != null && message.scopes.length) + for (var i = 0; i < message.scopes.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.scopes[i]); + if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.authorizationMetadataKey); + if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceHttpEndpoint); + if (message.audience != null && message.hasOwnProperty("audience")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.audience); + return writer; + }; + + /** + * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublicClientAuthConfigResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.redirectUri = reader.string(); + break; + case 3: + if (!(message.scopes && message.scopes.length)) + message.scopes = []; + message.scopes.push(reader.string()); + break; + case 4: + message.authorizationMetadataKey = reader.string(); + break; + case 5: + message.serviceHttpEndpoint = reader.string(); + break; + case 6: + message.audience = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PublicClientAuthConfigResponse message. + * @function verify + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PublicClientAuthConfigResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + if (!$util.isString(message.redirectUri)) + return "redirectUri: string expected"; + if (message.scopes != null && message.hasOwnProperty("scopes")) { + if (!Array.isArray(message.scopes)) + return "scopes: array expected"; + for (var i = 0; i < message.scopes.length; ++i) + if (!$util.isString(message.scopes[i])) + return "scopes: string[] expected"; + } + if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) + if (!$util.isString(message.authorizationMetadataKey)) + return "authorizationMetadataKey: string expected"; + if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) + if (!$util.isString(message.serviceHttpEndpoint)) + return "serviceHttpEndpoint: string expected"; + if (message.audience != null && message.hasOwnProperty("audience")) + if (!$util.isString(message.audience)) + return "audience: string expected"; + return null; + }; + + return PublicClientAuthConfigResponse; + })(); + + service.AuthMetadataService = (function() { + + /** + * Constructs a new AuthMetadataService service. + * @memberof flyteidl.service + * @classdesc Represents an AuthMetadataService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AuthMetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AuthMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AuthMetadataService; + + /** + * Creates new AuthMetadataService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AuthMetadataService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AuthMetadataService} RPC service. Useful where requests and/or responses are streamed. + */ + AuthMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. + * @memberof flyteidl.service.AuthMetadataService + * @typedef GetOAuth2MetadataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.OAuth2MetadataResponse} [response] OAuth2MetadataResponse + */ + + /** + * Calls GetOAuth2Metadata. + * @function getOAuth2Metadata + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object + * @param {flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback} callback Node-style callback called with the error, if any, and OAuth2MetadataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AuthMetadataService.prototype.getOAuth2Metadata = function getOAuth2Metadata(request, callback) { + return this.rpcCall(getOAuth2Metadata, $root.flyteidl.service.OAuth2MetadataRequest, $root.flyteidl.service.OAuth2MetadataResponse, request, callback); + }, "name", { value: "GetOAuth2Metadata" }); + + /** + * Calls GetOAuth2Metadata. + * @function getOAuth2Metadata + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. + * @memberof flyteidl.service.AuthMetadataService + * @typedef GetPublicClientConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.PublicClientAuthConfigResponse} [response] PublicClientAuthConfigResponse + */ + + /** + * Calls GetPublicClientConfig. + * @function getPublicClientConfig + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object + * @param {flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback} callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AuthMetadataService.prototype.getPublicClientConfig = function getPublicClientConfig(request, callback) { + return this.rpcCall(getPublicClientConfig, $root.flyteidl.service.PublicClientAuthConfigRequest, $root.flyteidl.service.PublicClientAuthConfigResponse, request, callback); + }, "name", { value: "GetPublicClientConfig" }); + + /** + * Calls GetPublicClientConfig. + * @function getPublicClientConfig + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AuthMetadataService; + })(); + + service.CreateUploadLocationResponse = (function() { + + /** + * Properties of a CreateUploadLocationResponse. + * @memberof flyteidl.service + * @interface ICreateUploadLocationResponse + * @property {string|null} [signedUrl] CreateUploadLocationResponse signedUrl + * @property {string|null} [nativeUrl] CreateUploadLocationResponse nativeUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateUploadLocationResponse expiresAt + */ + + /** + * Constructs a new CreateUploadLocationResponse. + * @memberof flyteidl.service + * @classdesc Represents a CreateUploadLocationResponse. + * @implements ICreateUploadLocationResponse + * @constructor + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + */ + function CreateUploadLocationResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateUploadLocationResponse signedUrl. + * @member {string} signedUrl + * @memberof flyteidl.service.CreateUploadLocationResponse + * @instance + */ + CreateUploadLocationResponse.prototype.signedUrl = ""; + + /** + * CreateUploadLocationResponse nativeUrl. + * @member {string} nativeUrl + * @memberof flyteidl.service.CreateUploadLocationResponse + * @instance + */ + CreateUploadLocationResponse.prototype.nativeUrl = ""; + + /** + * CreateUploadLocationResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateUploadLocationResponse + * @instance + */ + CreateUploadLocationResponse.prototype.expiresAt = null; + + /** + * Creates a new CreateUploadLocationResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance + */ + CreateUploadLocationResponse.create = function create(properties) { + return new CreateUploadLocationResponse(properties); + }; + + /** + * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateUploadLocationResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nativeUrl); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateUploadLocationResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signedUrl = reader.string(); + break; + case 2: + message.nativeUrl = reader.string(); + break; + case 3: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateUploadLocationResponse message. + * @function verify + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateUploadLocationResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + if (!$util.isString(message.signedUrl)) + return "signedUrl: string expected"; + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + if (!$util.isString(message.nativeUrl)) + return "nativeUrl: string expected"; + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + return null; + }; + + return CreateUploadLocationResponse; + })(); + + service.CreateUploadLocationRequest = (function() { + + /** + * Properties of a CreateUploadLocationRequest. + * @memberof flyteidl.service + * @interface ICreateUploadLocationRequest + * @property {string|null} [project] CreateUploadLocationRequest project + * @property {string|null} [domain] CreateUploadLocationRequest domain + * @property {string|null} [filename] CreateUploadLocationRequest filename + * @property {google.protobuf.IDuration|null} [expiresIn] CreateUploadLocationRequest expiresIn + * @property {Uint8Array|null} [contentMd5] CreateUploadLocationRequest contentMd5 + * @property {string|null} [filenameRoot] CreateUploadLocationRequest filenameRoot + */ + + /** + * Constructs a new CreateUploadLocationRequest. + * @memberof flyteidl.service + * @classdesc Represents a CreateUploadLocationRequest. + * @implements ICreateUploadLocationRequest + * @constructor + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + */ + function CreateUploadLocationRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateUploadLocationRequest project. + * @member {string} project + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.project = ""; + + /** + * CreateUploadLocationRequest domain. + * @member {string} domain + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.domain = ""; + + /** + * CreateUploadLocationRequest filename. + * @member {string} filename + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.filename = ""; + + /** + * CreateUploadLocationRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.expiresIn = null; + + /** + * CreateUploadLocationRequest contentMd5. + * @member {Uint8Array} contentMd5 + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.contentMd5 = $util.newBuffer([]); + + /** + * CreateUploadLocationRequest filenameRoot. + * @member {string} filenameRoot + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.filenameRoot = ""; + + /** + * Creates a new CreateUploadLocationRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance + */ + CreateUploadLocationRequest.create = function create(properties) { + return new CreateUploadLocationRequest(properties); + }; + + /** + * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateUploadLocationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.filename != null && message.hasOwnProperty("filename")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filename); + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) + $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.contentMd5); + if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.filenameRoot); + return writer; + }; + + /** + * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateUploadLocationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.filename = reader.string(); + break; + case 4: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.contentMd5 = reader.bytes(); + break; + case 6: + message.filenameRoot = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateUploadLocationRequest message. + * @function verify + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateUploadLocationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.filename != null && message.hasOwnProperty("filename")) + if (!$util.isString(message.filename)) + return "filename: string expected"; + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { + var error = $root.google.protobuf.Duration.verify(message.expiresIn); + if (error) + return "expiresIn." + error; + } + if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) + if (!(message.contentMd5 && typeof message.contentMd5.length === "number" || $util.isString(message.contentMd5))) + return "contentMd5: buffer expected"; + if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) + if (!$util.isString(message.filenameRoot)) + return "filenameRoot: string expected"; + return null; + }; + + return CreateUploadLocationRequest; + })(); + + service.CreateDownloadLocationRequest = (function() { + + /** + * Properties of a CreateDownloadLocationRequest. + * @memberof flyteidl.service + * @interface ICreateDownloadLocationRequest + * @property {string|null} [nativeUrl] CreateDownloadLocationRequest nativeUrl + * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLocationRequest expiresIn + */ + + /** + * Constructs a new CreateDownloadLocationRequest. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLocationRequest. + * @implements ICreateDownloadLocationRequest + * @constructor + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + */ + function CreateDownloadLocationRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLocationRequest nativeUrl. + * @member {string} nativeUrl + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @instance + */ + CreateDownloadLocationRequest.prototype.nativeUrl = ""; + + /** + * CreateDownloadLocationRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @instance + */ + CreateDownloadLocationRequest.prototype.expiresIn = null; + + /** + * Creates a new CreateDownloadLocationRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest instance + */ + CreateDownloadLocationRequest.create = function create(properties) { + return new CreateDownloadLocationRequest(properties); + }; + + /** + * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {flyteidl.service.ICreateDownloadLocationRequest} message CreateDownloadLocationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLocationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nativeUrl); + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) + $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLocationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nativeUrl = reader.string(); + break; + case 2: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLocationRequest message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLocationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + if (!$util.isString(message.nativeUrl)) + return "nativeUrl: string expected"; + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { + var error = $root.google.protobuf.Duration.verify(message.expiresIn); + if (error) + return "expiresIn." + error; + } + return null; + }; + + return CreateDownloadLocationRequest; + })(); + + service.CreateDownloadLocationResponse = (function() { + + /** + * Properties of a CreateDownloadLocationResponse. + * @memberof flyteidl.service + * @interface ICreateDownloadLocationResponse + * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt + */ + + /** + * Constructs a new CreateDownloadLocationResponse. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLocationResponse. + * @implements ICreateDownloadLocationResponse + * @constructor + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + */ + function CreateDownloadLocationResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLocationResponse signedUrl. + * @member {string} signedUrl + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @instance + */ + CreateDownloadLocationResponse.prototype.signedUrl = ""; + + /** + * CreateDownloadLocationResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @instance + */ + CreateDownloadLocationResponse.prototype.expiresAt = null; + + /** + * Creates a new CreateDownloadLocationResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance + */ + CreateDownloadLocationResponse.create = function create(properties) { + return new CreateDownloadLocationResponse(properties); + }; + + /** + * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {flyteidl.service.ICreateDownloadLocationResponse} message CreateDownloadLocationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLocationResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLocationResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signedUrl = reader.string(); + break; + case 2: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLocationResponse message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLocationResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + if (!$util.isString(message.signedUrl)) + return "signedUrl: string expected"; + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + return null; + }; + + return CreateDownloadLocationResponse; + })(); + + /** + * ArtifactType enum. + * @name flyteidl.service.ArtifactType + * @enum {string} + * @property {number} ARTIFACT_TYPE_UNDEFINED=0 ARTIFACT_TYPE_UNDEFINED value + * @property {number} ARTIFACT_TYPE_DECK=1 ARTIFACT_TYPE_DECK value + */ + service.ArtifactType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ARTIFACT_TYPE_UNDEFINED"] = 0; + values[valuesById[1] = "ARTIFACT_TYPE_DECK"] = 1; + return values; + })(); + + service.CreateDownloadLinkRequest = (function() { + + /** + * Properties of a CreateDownloadLinkRequest. + * @memberof flyteidl.service + * @interface ICreateDownloadLinkRequest + * @property {flyteidl.service.ArtifactType|null} [artifactType] CreateDownloadLinkRequest artifactType + * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLinkRequest expiresIn + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] CreateDownloadLinkRequest nodeExecutionId + */ + + /** + * Constructs a new CreateDownloadLinkRequest. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLinkRequest. + * @implements ICreateDownloadLinkRequest + * @constructor + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set + */ + function CreateDownloadLinkRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLinkRequest artifactType. + * @member {flyteidl.service.ArtifactType} artifactType + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + CreateDownloadLinkRequest.prototype.artifactType = 0; + + /** + * CreateDownloadLinkRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + CreateDownloadLinkRequest.prototype.expiresIn = null; + + /** + * CreateDownloadLinkRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + CreateDownloadLinkRequest.prototype.nodeExecutionId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CreateDownloadLinkRequest source. + * @member {"nodeExecutionId"|undefined} source + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance + */ + CreateDownloadLinkRequest.create = function create(properties) { + return new CreateDownloadLinkRequest(properties); + }; + + /** + * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLinkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactType != null && message.hasOwnProperty("artifactType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.artifactType); + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) + $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLinkRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifactType = reader.int32(); + break; + case 2: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 3: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLinkRequest message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLinkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactType != null && message.hasOwnProperty("artifactType")) + switch (message.artifactType) { + default: + return "artifactType: enum value expected"; + case 0: + case 1: + break; + } + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { + var error = $root.google.protobuf.Duration.verify(message.expiresIn); + if (error) + return "expiresIn." + error; + } + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + properties.source = 1; + { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + } + return null; + }; + + return CreateDownloadLinkRequest; + })(); + + service.CreateDownloadLinkResponse = (function() { + + /** + * Properties of a CreateDownloadLinkResponse. + * @memberof flyteidl.service + * @interface ICreateDownloadLinkResponse + * @property {Array.|null} [signedUrl] CreateDownloadLinkResponse signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLinkResponse expiresAt + * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] CreateDownloadLinkResponse preSignedUrls + */ + + /** + * Constructs a new CreateDownloadLinkResponse. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLinkResponse. + * @implements ICreateDownloadLinkResponse + * @constructor + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + */ + function CreateDownloadLinkResponse(properties) { + this.signedUrl = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLinkResponse signedUrl. + * @member {Array.} signedUrl + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @instance + */ + CreateDownloadLinkResponse.prototype.signedUrl = $util.emptyArray; + + /** + * CreateDownloadLinkResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @instance + */ + CreateDownloadLinkResponse.prototype.expiresAt = null; + + /** + * CreateDownloadLinkResponse preSignedUrls. + * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @instance + */ + CreateDownloadLinkResponse.prototype.preSignedUrls = null; + + /** + * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance + */ + CreateDownloadLinkResponse.create = function create(properties) { + return new CreateDownloadLinkResponse(properties); + }; + + /** + * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {flyteidl.service.ICreateDownloadLinkResponse} message CreateDownloadLinkResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLinkResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.signedUrl.length) + for (var i = 0; i < message.signedUrl.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) + $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLinkResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.signedUrl && message.signedUrl.length)) + message.signedUrl = []; + message.signedUrl.push(reader.string()); + break; + case 2: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLinkResponse message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLinkResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { + if (!Array.isArray(message.signedUrl)) + return "signedUrl: array expected"; + for (var i = 0; i < message.signedUrl.length; ++i) + if (!$util.isString(message.signedUrl[i])) + return "signedUrl: string[] expected"; + } + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { + var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); + if (error) + return "preSignedUrls." + error; + } + return null; + }; + + return CreateDownloadLinkResponse; + })(); + + service.PreSignedURLs = (function() { + + /** + * Properties of a PreSignedURLs. + * @memberof flyteidl.service + * @interface IPreSignedURLs + * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt + */ + + /** + * Constructs a new PreSignedURLs. + * @memberof flyteidl.service + * @classdesc Represents a PreSignedURLs. + * @implements IPreSignedURLs + * @constructor + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + */ + function PreSignedURLs(properties) { + this.signedUrl = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PreSignedURLs signedUrl. + * @member {Array.} signedUrl + * @memberof flyteidl.service.PreSignedURLs + * @instance + */ + PreSignedURLs.prototype.signedUrl = $util.emptyArray; + + /** + * PreSignedURLs expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.PreSignedURLs + * @instance + */ + PreSignedURLs.prototype.expiresAt = null; + + /** + * Creates a new PreSignedURLs instance using the specified properties. + * @function create + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance + */ + PreSignedURLs.create = function create(properties) { + return new PreSignedURLs(properties); + }; + + /** + * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {flyteidl.service.IPreSignedURLs} message PreSignedURLs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PreSignedURLs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.signedUrl.length) + for (var i = 0; i < message.signedUrl.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a PreSignedURLs message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PreSignedURLs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PreSignedURLs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.signedUrl && message.signedUrl.length)) + message.signedUrl = []; + message.signedUrl.push(reader.string()); + break; + case 2: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PreSignedURLs message. + * @function verify + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PreSignedURLs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { + if (!Array.isArray(message.signedUrl)) + return "signedUrl: array expected"; + for (var i = 0; i < message.signedUrl.length; ++i) + if (!$util.isString(message.signedUrl[i])) + return "signedUrl: string[] expected"; + } + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + return null; + }; + + return PreSignedURLs; + })(); + + service.GetDataRequest = (function() { + + /** + * Properties of a GetDataRequest. + * @memberof flyteidl.service + * @interface IGetDataRequest + * @property {string|null} [flyteUrl] GetDataRequest flyteUrl + */ + + /** + * Constructs a new GetDataRequest. + * @memberof flyteidl.service + * @classdesc Represents a GetDataRequest. + * @implements IGetDataRequest + * @constructor + * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set + */ + function GetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetDataRequest flyteUrl. + * @member {string} flyteUrl + * @memberof flyteidl.service.GetDataRequest + * @instance + */ + GetDataRequest.prototype.flyteUrl = ""; + + /** + * Creates a new GetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.service.GetDataRequest} GetDataRequest instance + */ + GetDataRequest.create = function create(properties) { + return new GetDataRequest(properties); + }; + + /** + * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {flyteidl.service.IGetDataRequest} message GetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flyteUrl); + return writer; + }; + + /** + * Decodes a GetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.GetDataRequest} GetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.flyteUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetDataRequest message. + * @function verify + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) + if (!$util.isString(message.flyteUrl)) + return "flyteUrl: string expected"; + return null; + }; + + return GetDataRequest; + })(); + + service.GetDataResponse = (function() { + + /** + * Properties of a GetDataResponse. + * @memberof flyteidl.service + * @interface IGetDataResponse + * @property {flyteidl.core.ILiteralMap|null} [literalMap] GetDataResponse literalMap + * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] GetDataResponse preSignedUrls + * @property {flyteidl.core.ILiteral|null} [literal] GetDataResponse literal + */ + + /** + * Constructs a new GetDataResponse. + * @memberof flyteidl.service + * @classdesc Represents a GetDataResponse. + * @implements IGetDataResponse + * @constructor + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set + */ + function GetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetDataResponse literalMap. + * @member {flyteidl.core.ILiteralMap|null|undefined} literalMap + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.literalMap = null; + + /** + * GetDataResponse preSignedUrls. + * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.preSignedUrls = null; + + /** + * GetDataResponse literal. + * @member {flyteidl.core.ILiteral|null|undefined} literal + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.literal = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetDataResponse data. + * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + Object.defineProperty(GetDataResponse.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance + */ + GetDataResponse.create = function create(properties) { + return new GetDataResponse(properties); + }; + + /** + * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {flyteidl.service.IGetDataResponse} message GetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literalMap != null && message.hasOwnProperty("literalMap")) + $root.flyteidl.core.LiteralMap.encode(message.literalMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) + $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.literal != null && message.hasOwnProperty("literal")) + $root.flyteidl.core.Literal.encode(message.literal, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.GetDataResponse} GetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.literalMap = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); + break; + case 3: + message.literal = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetDataResponse message. + * @function verify + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.literalMap != null && message.hasOwnProperty("literalMap")) { + properties.data = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.literalMap); + if (error) + return "literalMap." + error; + } + } + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); + if (error) + return "preSignedUrls." + error; + } + } + if (message.literal != null && message.hasOwnProperty("literal")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.flyteidl.core.Literal.verify(message.literal); + if (error) + return "literal." + error; + } + } + return null; + }; + + return GetDataResponse; + })(); + + service.DataProxyService = (function() { + + /** + * Constructs a new DataProxyService service. + * @memberof flyteidl.service + * @classdesc Represents a DataProxyService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function DataProxyService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (DataProxyService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataProxyService; + + /** + * Creates new DataProxyService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.DataProxyService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {DataProxyService} RPC service. Useful where requests and/or responses are streamed. + */ + DataProxyService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateUploadLocationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateUploadLocationResponse} [response] CreateUploadLocationResponse + */ + + /** + * Calls CreateUploadLocation. + * @function createUploadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateUploadLocationCallback} callback Node-style callback called with the error, if any, and CreateUploadLocationResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createUploadLocation = function createUploadLocation(request, callback) { + return this.rpcCall(createUploadLocation, $root.flyteidl.service.CreateUploadLocationRequest, $root.flyteidl.service.CreateUploadLocationResponse, request, callback); + }, "name", { value: "CreateUploadLocation" }); + + /** + * Calls CreateUploadLocation. + * @function createUploadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateDownloadLocationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateDownloadLocationResponse} [response] CreateDownloadLocationResponse + */ + + /** + * Calls CreateDownloadLocation. + * @function createDownloadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateDownloadLocationCallback} callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createDownloadLocation = function createDownloadLocation(request, callback) { + return this.rpcCall(createDownloadLocation, $root.flyteidl.service.CreateDownloadLocationRequest, $root.flyteidl.service.CreateDownloadLocationResponse, request, callback); + }, "name", { value: "CreateDownloadLocation" }); + + /** + * Calls CreateDownloadLocation. + * @function createDownloadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateDownloadLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateDownloadLinkResponse} [response] CreateDownloadLinkResponse + */ + + /** + * Calls CreateDownloadLink. + * @function createDownloadLink + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateDownloadLinkCallback} callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createDownloadLink = function createDownloadLink(request, callback) { + return this.rpcCall(createDownloadLink, $root.flyteidl.service.CreateDownloadLinkRequest, $root.flyteidl.service.CreateDownloadLinkResponse, request, callback); + }, "name", { value: "CreateDownloadLink" }); + + /** + * Calls CreateDownloadLink. + * @function createDownloadLink + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#getData}. + * @memberof flyteidl.service.DataProxyService + * @typedef GetDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.GetDataResponse} [response] GetDataResponse + */ + + /** + * Calls GetData. + * @function getData + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object + * @param {flyteidl.service.DataProxyService.GetDataCallback} callback Node-style callback called with the error, if any, and GetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.getData = function getData(request, callback) { + return this.rpcCall(getData, $root.flyteidl.service.GetDataRequest, $root.flyteidl.service.GetDataResponse, request, callback); + }, "name", { value: "GetData" }); + + /** + * Calls GetData. + * @function getData + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return DataProxyService; + })(); + + service.ExternalPluginService = (function() { + + /** + * Constructs a new ExternalPluginService service. + * @memberof flyteidl.service + * @classdesc Represents an ExternalPluginService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function ExternalPluginService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ExternalPluginService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ExternalPluginService; + + /** + * Creates new ExternalPluginService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.ExternalPluginService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ExternalPluginService} RPC service. Useful where requests and/or responses are streamed. + */ + ExternalPluginService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. + * @memberof flyteidl.service.ExternalPluginService + * @typedef CreateTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.TaskCreateResponse} [response] TaskCreateResponse + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @param {flyteidl.service.ExternalPluginService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ExternalPluginService.prototype.createTask = function createTask(request, callback) { + return this.rpcCall(createTask, $root.flyteidl.service.TaskCreateRequest, $root.flyteidl.service.TaskCreateResponse, request, callback); + }, "name", { value: "CreateTask" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. + * @memberof flyteidl.service.ExternalPluginService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.TaskGetResponse} [response] TaskGetResponse + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object + * @param {flyteidl.service.ExternalPluginService.GetTaskCallback} callback Node-style callback called with the error, if any, and TaskGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ExternalPluginService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.flyteidl.service.TaskGetRequest, $root.flyteidl.service.TaskGetResponse, request, callback); + }, "name", { value: "GetTask" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. + * @memberof flyteidl.service.ExternalPluginService + * @typedef DeleteTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.TaskDeleteResponse} [response] TaskDeleteResponse + */ + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object + * @param {flyteidl.service.ExternalPluginService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and TaskDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ExternalPluginService.prototype.deleteTask = function deleteTask(request, callback) { + return this.rpcCall(deleteTask, $root.flyteidl.service.TaskDeleteRequest, $root.flyteidl.service.TaskDeleteResponse, request, callback); + }, "name", { value: "DeleteTask" }); + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ExternalPluginService; + })(); + + /** + * State enum. + * @name flyteidl.service.State + * @enum {string} + * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value + * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value + * @property {number} PENDING=2 PENDING value + * @property {number} RUNNING=3 RUNNING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + */ + service.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; + values[valuesById[1] = "PERMANENT_FAILURE"] = 1; + values[valuesById[2] = "PENDING"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + return values; + })(); + + service.TaskCreateRequest = (function() { + + /** + * Properties of a TaskCreateRequest. + * @memberof flyteidl.service + * @interface ITaskCreateRequest + * @property {flyteidl.core.ILiteralMap|null} [inputs] TaskCreateRequest inputs + * @property {flyteidl.core.ITaskTemplate|null} [template] TaskCreateRequest template + * @property {string|null} [outputPrefix] TaskCreateRequest outputPrefix + */ + + /** + * Constructs a new TaskCreateRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest + * @constructor + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set + */ + function TaskCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskCreateRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.inputs = null; + + /** + * TaskCreateRequest template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.template = null; + + /** + * TaskCreateRequest outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.outputPrefix = ""; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance + */ + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); + }; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {flyteidl.service.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); + return writer; + }; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 3: + message.outputPrefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateRequest message. + * @function verify + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; + return null; + }; + + return TaskCreateRequest; + })(); + + service.TaskCreateResponse = (function() { + + /** + * Properties of a TaskCreateResponse. + * @memberof flyteidl.service + * @interface ITaskCreateResponse + * @property {string|null} [jobId] TaskCreateResponse jobId + */ + + /** + * Constructs a new TaskCreateResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse + * @constructor + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set + */ + function TaskCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskCreateResponse jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskCreateResponse + * @instance + */ + TaskCreateResponse.prototype.jobId = ""; + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance + */ + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); + }; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobId); + return writer; + }; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.jobId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateResponse message. + * @function verify + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + return null; + }; + + return TaskCreateResponse; + })(); + + service.TaskGetRequest = (function() { + + /** + * Properties of a TaskGetRequest. + * @memberof flyteidl.service + * @interface ITaskGetRequest + * @property {string|null} [taskType] TaskGetRequest taskType + * @property {string|null} [jobId] TaskGetRequest jobId + */ + + /** + * Constructs a new TaskGetRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskGetRequest. + * @implements ITaskGetRequest + * @constructor + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + */ + function TaskGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskGetRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskGetRequest + * @instance + */ + TaskGetRequest.prototype.taskType = ""; + + /** + * TaskGetRequest jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskGetRequest + * @instance + */ + TaskGetRequest.prototype.jobId = ""; + + /** + * Creates a new TaskGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest instance + */ + TaskGetRequest.create = function create(properties) { + return new TaskGetRequest(properties); + }; + + /** + * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {flyteidl.service.ITaskGetRequest} message TaskGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); + return writer; + }; + + /** + * Decodes a TaskGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + message.jobId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskGetRequest message. + * @function verify + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + return null; + }; + + return TaskGetRequest; + })(); + + service.TaskGetResponse = (function() { + + /** + * Properties of a TaskGetResponse. + * @memberof flyteidl.service + * @interface ITaskGetResponse + * @property {flyteidl.service.State|null} [state] TaskGetResponse state + * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs + */ + + /** + * Constructs a new TaskGetResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskGetResponse. + * @implements ITaskGetResponse + * @constructor + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + */ + function TaskGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskGetResponse state. + * @member {flyteidl.service.State} state + * @memberof flyteidl.service.TaskGetResponse + * @instance + */ + TaskGetResponse.prototype.state = 0; + + /** + * TaskGetResponse outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.service.TaskGetResponse + * @instance + */ + TaskGetResponse.prototype.outputs = null; + + /** + * Creates a new TaskGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance + */ + TaskGetResponse.create = function create(properties) { + return new TaskGetResponse(properties); + }; + + /** + * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {flyteidl.service.ITaskGetResponse} message TaskGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskGetResponse message. + * @function verify + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return TaskGetResponse; + })(); + + service.TaskDeleteRequest = (function() { + + /** + * Properties of a TaskDeleteRequest. + * @memberof flyteidl.service + * @interface ITaskDeleteRequest + * @property {string|null} [taskType] TaskDeleteRequest taskType + * @property {string|null} [jobId] TaskDeleteRequest jobId + */ + + /** + * Constructs a new TaskDeleteRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskDeleteRequest. + * @implements ITaskDeleteRequest + * @constructor + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + */ + function TaskDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskDeleteRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskDeleteRequest + * @instance + */ + TaskDeleteRequest.prototype.taskType = ""; + + /** + * TaskDeleteRequest jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskDeleteRequest + * @instance + */ + TaskDeleteRequest.prototype.jobId = ""; + + /** + * Creates a new TaskDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance + */ + TaskDeleteRequest.create = function create(properties) { + return new TaskDeleteRequest(properties); + }; + + /** + * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {flyteidl.service.ITaskDeleteRequest} message TaskDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); + return writer; + }; + + /** + * Decodes a TaskDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + message.jobId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskDeleteRequest message. + * @function verify + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + return null; + }; + + return TaskDeleteRequest; + })(); + + service.TaskDeleteResponse = (function() { + + /** + * Properties of a TaskDeleteResponse. + * @memberof flyteidl.service + * @interface ITaskDeleteResponse + */ + + /** + * Constructs a new TaskDeleteResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskDeleteResponse. + * @implements ITaskDeleteResponse + * @constructor + * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + */ + function TaskDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance + */ + TaskDeleteResponse.create = function create(properties) { + return new TaskDeleteResponse(properties); + }; + + /** + * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskDeleteResponse message. + * @function verify + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskDeleteResponse; + })(); + + service.UserInfoRequest = (function() { + + /** + * Properties of a UserInfoRequest. + * @memberof flyteidl.service + * @interface IUserInfoRequest + */ + + /** + * Constructs a new UserInfoRequest. + * @memberof flyteidl.service + * @classdesc Represents a UserInfoRequest. + * @implements IUserInfoRequest + * @constructor + * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set + */ + function UserInfoRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new UserInfoRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set + * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest instance + */ + UserInfoRequest.create = function create(properties) { + return new UserInfoRequest(properties); + }; + + /** + * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {flyteidl.service.IUserInfoRequest} message UserInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInfoRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a UserInfoRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInfoRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UserInfoRequest message. + * @function verify + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserInfoRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return UserInfoRequest; + })(); + + service.UserInfoResponse = (function() { + + /** + * Properties of a UserInfoResponse. + * @memberof flyteidl.service + * @interface IUserInfoResponse + * @property {string|null} [subject] UserInfoResponse subject + * @property {string|null} [name] UserInfoResponse name + * @property {string|null} [preferredUsername] UserInfoResponse preferredUsername + * @property {string|null} [givenName] UserInfoResponse givenName + * @property {string|null} [familyName] UserInfoResponse familyName + * @property {string|null} [email] UserInfoResponse email + * @property {string|null} [picture] UserInfoResponse picture + * @property {google.protobuf.IStruct|null} [additionalClaims] UserInfoResponse additionalClaims + */ + + /** + * Constructs a new UserInfoResponse. + * @memberof flyteidl.service + * @classdesc Represents a UserInfoResponse. + * @implements IUserInfoResponse + * @constructor + * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set + */ + function UserInfoResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UserInfoResponse subject. + * @member {string} subject + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.subject = ""; + + /** + * UserInfoResponse name. + * @member {string} name + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.name = ""; + + /** + * UserInfoResponse preferredUsername. + * @member {string} preferredUsername + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.preferredUsername = ""; + + /** + * UserInfoResponse givenName. + * @member {string} givenName + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.givenName = ""; + + /** + * UserInfoResponse familyName. + * @member {string} familyName + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.familyName = ""; + + /** + * UserInfoResponse email. + * @member {string} email + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.email = ""; + + /** + * UserInfoResponse picture. + * @member {string} picture + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.picture = ""; + + /** + * UserInfoResponse additionalClaims. + * @member {google.protobuf.IStruct|null|undefined} additionalClaims + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.additionalClaims = null; + + /** + * Creates a new UserInfoResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set + * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse instance + */ + UserInfoResponse.create = function create(properties) { + return new UserInfoResponse(properties); + }; + + /** + * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {flyteidl.service.IUserInfoResponse} message UserInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInfoResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.subject != null && message.hasOwnProperty("subject")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.preferredUsername); + if (message.givenName != null && message.hasOwnProperty("givenName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.givenName); + if (message.familyName != null && message.hasOwnProperty("familyName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.familyName); + if (message.email != null && message.hasOwnProperty("email")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.email); + if (message.picture != null && message.hasOwnProperty("picture")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.picture); + if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) + $root.google.protobuf.Struct.encode(message.additionalClaims, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a UserInfoResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInfoResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subject = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.preferredUsername = reader.string(); + break; + case 4: + message.givenName = reader.string(); + break; + case 5: + message.familyName = reader.string(); + break; + case 6: + message.email = reader.string(); + break; + case 7: + message.picture = reader.string(); + break; + case 8: + message.additionalClaims = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UserInfoResponse message. + * @function verify + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserInfoResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.subject != null && message.hasOwnProperty("subject")) + if (!$util.isString(message.subject)) + return "subject: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) + if (!$util.isString(message.preferredUsername)) + return "preferredUsername: string expected"; + if (message.givenName != null && message.hasOwnProperty("givenName")) + if (!$util.isString(message.givenName)) + return "givenName: string expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.email != null && message.hasOwnProperty("email")) + if (!$util.isString(message.email)) + return "email: string expected"; + if (message.picture != null && message.hasOwnProperty("picture")) + if (!$util.isString(message.picture)) + return "picture: string expected"; + if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) { + var error = $root.google.protobuf.Struct.verify(message.additionalClaims); + if (error) + return "additionalClaims." + error; + } + return null; + }; + + return UserInfoResponse; + })(); + + service.IdentityService = (function() { + + /** + * Constructs a new IdentityService service. + * @memberof flyteidl.service + * @classdesc Represents an IdentityService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IdentityService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IdentityService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IdentityService; + + /** + * Creates new IdentityService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.IdentityService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IdentityService} RPC service. Useful where requests and/or responses are streamed. + */ + IdentityService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. + * @memberof flyteidl.service.IdentityService + * @typedef UserInfoCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.UserInfoResponse} [response] UserInfoResponse + */ + + /** + * Calls UserInfo. + * @function userInfo + * @memberof flyteidl.service.IdentityService + * @instance + * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object + * @param {flyteidl.service.IdentityService.UserInfoCallback} callback Node-style callback called with the error, if any, and UserInfoResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IdentityService.prototype.userInfo = function userInfo(request, callback) { + return this.rpcCall(userInfo, $root.flyteidl.service.UserInfoRequest, $root.flyteidl.service.UserInfoResponse, request, callback); + }, "name", { value: "UserInfo" }); + + /** + * Calls UserInfo. + * @function userInfo + * @memberof flyteidl.service.IdentityService + * @instance + * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IdentityService; + })(); + + service.SignalService = (function() { + + /** + * Constructs a new SignalService service. + * @memberof flyteidl.service + * @classdesc Represents a SignalService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SignalService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (SignalService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SignalService; + + /** + * Creates new SignalService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.SignalService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SignalService} RPC service. Useful where requests and/or responses are streamed. + */ + SignalService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. + * @memberof flyteidl.service.SignalService + * @typedef GetOrCreateSignalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Signal} [response] Signal + */ + + /** + * Calls GetOrCreateSignal. + * @function getOrCreateSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object + * @param {flyteidl.service.SignalService.GetOrCreateSignalCallback} callback Node-style callback called with the error, if any, and Signal + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SignalService.prototype.getOrCreateSignal = function getOrCreateSignal(request, callback) { + return this.rpcCall(getOrCreateSignal, $root.flyteidl.admin.SignalGetOrCreateRequest, $root.flyteidl.admin.Signal, request, callback); + }, "name", { value: "GetOrCreateSignal" }); + + /** + * Calls GetOrCreateSignal. + * @function getOrCreateSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.SignalService#listSignals}. + * @memberof flyteidl.service.SignalService + * @typedef ListSignalsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.SignalList} [response] SignalList + */ + + /** + * Calls ListSignals. + * @function listSignals + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object + * @param {flyteidl.service.SignalService.ListSignalsCallback} callback Node-style callback called with the error, if any, and SignalList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SignalService.prototype.listSignals = function listSignals(request, callback) { + return this.rpcCall(listSignals, $root.flyteidl.admin.SignalListRequest, $root.flyteidl.admin.SignalList, request, callback); + }, "name", { value: "ListSignals" }); + + /** + * Calls ListSignals. + * @function listSignals + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.SignalService#setSignal}. + * @memberof flyteidl.service.SignalService + * @typedef SetSignalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.SignalSetResponse} [response] SignalSetResponse + */ + + /** + * Calls SetSignal. + * @function setSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object + * @param {flyteidl.service.SignalService.SetSignalCallback} callback Node-style callback called with the error, if any, and SignalSetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SignalService.prototype.setSignal = function setSignal(request, callback) { + return this.rpcCall(setSignal, $root.flyteidl.admin.SignalSetRequest, $root.flyteidl.admin.SignalSetResponse, request, callback); + }, "name", { value: "SetSignal" }); + + /** + * Calls SetSignal. + * @function setSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SignalService; + })(); + + return service; + })(); + + return flyteidl; + })(); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Timestamp seconds. + * @member {Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + return Timestamp; + })(); + + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Duration seconds. + * @member {Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + return Duration; + })(); + + protobuf.Struct = (function() { + + /** + * Properties of a Struct. + * @memberof google.protobuf + * @interface IStruct + * @property {Object.|null} [fields] Struct fields + */ + + /** + * Constructs a new Struct. + * @memberof google.protobuf + * @classdesc Represents a Struct. + * @implements IStruct + * @constructor + * @param {google.protobuf.IStruct=} [properties] Properties to set + */ + function Struct(properties) { + this.fields = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Struct fields. + * @member {Object.} fields + * @memberof google.protobuf.Struct + * @instance + */ + Struct.prototype.fields = $util.emptyObject; + + /** + * Creates a new Struct instance using the specified properties. + * @function create + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct=} [properties] Properties to set + * @returns {google.protobuf.Struct} Struct instance + */ + Struct.create = function create(properties) { + return new Struct(properties); + }; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fields != null && message.hasOwnProperty("fields")) + for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.fields === $util.emptyObject) + message.fields = {}; + key = reader.string(); + reader.pos++; + message.fields[key] = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Struct message. + * @function verify + * @memberof google.protobuf.Struct + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Struct.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!$util.isObject(message.fields)) + return "fields: object expected"; + var key = Object.keys(message.fields); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); + if (error) + return "fields." + error; + } + } + return null; + }; + + return Struct; + })(); + + protobuf.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.protobuf + * @interface IValue + * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue + * @property {number|null} [numberValue] Value numberValue + * @property {string|null} [stringValue] Value stringValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {google.protobuf.IStruct|null} [structValue] Value structValue + * @property {google.protobuf.IListValue|null} [listValue] Value listValue + */ + + /** + * Constructs a new Value. + * @memberof google.protobuf + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.protobuf.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Value nullValue. + * @member {google.protobuf.NullValue} nullValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.nullValue = 0; + + /** + * Value numberValue. + * @member {number} numberValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.numberValue = 0; + + /** + * Value stringValue. + * @member {string} stringValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.stringValue = ""; + + /** + * Value boolValue. + * @member {boolean} boolValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.boolValue = false; + + /** + * Value structValue. + * @member {google.protobuf.IStruct|null|undefined} structValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.structValue = null; + + /** + * Value listValue. + * @member {google.protobuf.IListValue|null|undefined} listValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.listValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value kind. + * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind + * @memberof google.protobuf.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue=} [properties] Properties to set + * @returns {google.protobuf.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nullValue != null && message.hasOwnProperty("nullValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); + if (message.numberValue != null && message.hasOwnProperty("numberValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolValue != null && message.hasOwnProperty("boolValue")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); + if (message.structValue != null && message.hasOwnProperty("structValue")) + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.listValue != null && message.hasOwnProperty("listValue")) + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nullValue = reader.int32(); + break; + case 2: + message.numberValue = reader.double(); + break; + case 3: + message.stringValue = reader.string(); + break; + case 4: + message.boolValue = reader.bool(); + break; + case 5: + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof google.protobuf.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + properties.kind = 1; + switch (message.nullValue) { + default: + return "nullValue: enum value expected"; + case 0: + break; + } + } + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.numberValue !== "number") + return "numberValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.Struct.verify(message.structValue); + if (error) + return "structValue." + error; + } + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.ListValue.verify(message.listValue); + if (error) + return "listValue." + error; + } + } + return null; + }; + + return Value; + })(); + + /** + * NullValue enum. + * @name google.protobuf.NullValue + * @enum {string} + * @property {number} NULL_VALUE=0 NULL_VALUE value + */ + protobuf.NullValue = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_VALUE"] = 0; + return values; + })(); + + protobuf.ListValue = (function() { + + /** + * Properties of a ListValue. + * @memberof google.protobuf + * @interface IListValue + * @property {Array.|null} [values] ListValue values + */ + + /** + * Constructs a new ListValue. + * @memberof google.protobuf + * @classdesc Represents a ListValue. + * @implements IListValue + * @constructor + * @param {google.protobuf.IListValue=} [properties] Properties to set + */ + function ListValue(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListValue values. + * @member {Array.} values + * @memberof google.protobuf.ListValue + * @instance + */ + ListValue.prototype.values = $util.emptyArray; + + /** + * Creates a new ListValue instance using the specified properties. + * @function create + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue=} [properties] Properties to set + * @returns {google.protobuf.ListValue} ListValue instance + */ + ListValue.create = function create(properties) { + return new ListValue(properties); + }; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ListValue} ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListValue message. + * @function verify + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + return ListValue; + })(); + + protobuf.DoubleValue = (function() { + + /** + * Properties of a DoubleValue. + * @memberof google.protobuf + * @interface IDoubleValue + * @property {number|null} [value] DoubleValue value + */ + + /** + * Constructs a new DoubleValue. + * @memberof google.protobuf + * @classdesc Represents a DoubleValue. + * @implements IDoubleValue + * @constructor + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + */ + function DoubleValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DoubleValue value. + * @member {number} value + * @memberof google.protobuf.DoubleValue + * @instance + */ + DoubleValue.prototype.value = 0; + + /** + * Creates a new DoubleValue instance using the specified properties. + * @function create + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + * @returns {google.protobuf.DoubleValue} DoubleValue instance + */ + DoubleValue.create = function create(properties) { + return new DoubleValue(properties); + }; + + /** + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + return writer; + }; + + /** + * Decodes a DoubleValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DoubleValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DoubleValue} DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DoubleValue message. + * @function verify + * @memberof google.protobuf.DoubleValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DoubleValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + return DoubleValue; + })(); + + protobuf.FloatValue = (function() { + + /** + * Properties of a FloatValue. + * @memberof google.protobuf + * @interface IFloatValue + * @property {number|null} [value] FloatValue value + */ + + /** + * Constructs a new FloatValue. + * @memberof google.protobuf + * @classdesc Represents a FloatValue. + * @implements IFloatValue + * @constructor + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + */ + function FloatValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FloatValue value. + * @member {number} value + * @memberof google.protobuf.FloatValue + * @instance + */ + FloatValue.prototype.value = 0; + + /** + * Creates a new FloatValue instance using the specified properties. + * @function create + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + * @returns {google.protobuf.FloatValue} FloatValue instance + */ + FloatValue.create = function create(properties) { + return new FloatValue(properties); + }; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); + return writer; + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FloatValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FloatValue message. + * @function verify + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FloatValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + return FloatValue; + })(); + + protobuf.Int64Value = (function() { + + /** + * Properties of an Int64Value. + * @memberof google.protobuf + * @interface IInt64Value + * @property {Long|null} [value] Int64Value value + */ + + /** + * Constructs a new Int64Value. + * @memberof google.protobuf + * @classdesc Represents an Int64Value. + * @implements IInt64Value + * @constructor + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + */ + function Int64Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Int64Value value. + * @member {Long} value + * @memberof google.protobuf.Int64Value + * @instance + */ + Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Int64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + * @returns {google.protobuf.Int64Value} Int64Value instance + */ + Int64Value.create = function create(properties) { + return new Int64Value(properties); + }; + + /** + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); + return writer; + }; + + /** + * Decodes an Int64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int64Value} Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Int64Value message. + * @function verify + * @memberof google.protobuf.Int64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + return Int64Value; + })(); + + protobuf.UInt64Value = (function() { + + /** + * Properties of a UInt64Value. + * @memberof google.protobuf + * @interface IUInt64Value + * @property {Long|null} [value] UInt64Value value + */ + + /** + * Constructs a new UInt64Value. + * @memberof google.protobuf + * @classdesc Represents a UInt64Value. + * @implements IUInt64Value + * @constructor + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + */ + function UInt64Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UInt64Value value. + * @member {Long} value + * @memberof google.protobuf.UInt64Value + * @instance + */ + UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new UInt64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + * @returns {google.protobuf.UInt64Value} UInt64Value instance + */ + UInt64Value.create = function create(properties) { + return new UInt64Value(properties); + }; + + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); + return writer; + }; + + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt64Value} UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UInt64Value message. + * @function verify + * @memberof google.protobuf.UInt64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + return UInt64Value; + })(); + + protobuf.Int32Value = (function() { + + /** + * Properties of an Int32Value. + * @memberof google.protobuf + * @interface IInt32Value + * @property {number|null} [value] Int32Value value + */ + + /** + * Constructs a new Int32Value. + * @memberof google.protobuf + * @classdesc Represents an Int32Value. + * @implements IInt32Value + * @constructor + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + */ + function Int32Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Int32Value value. + * @member {number} value + * @memberof google.protobuf.Int32Value + * @instance + */ + Int32Value.prototype.value = 0; + + /** + * Creates a new Int32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + * @returns {google.protobuf.Int32Value} Int32Value instance + */ + Int32Value.create = function create(properties) { + return new Int32Value(properties); + }; + + /** + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); + return writer; + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Int32Value message. + * @function verify + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + return Int32Value; + })(); + + protobuf.UInt32Value = (function() { + + /** + * Properties of a UInt32Value. + * @memberof google.protobuf + * @interface IUInt32Value + * @property {number|null} [value] UInt32Value value + */ + + /** + * Constructs a new UInt32Value. + * @memberof google.protobuf + * @classdesc Represents a UInt32Value. + * @implements IUInt32Value + * @constructor + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + */ + function UInt32Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UInt32Value value. + * @member {number} value + * @memberof google.protobuf.UInt32Value + * @instance + */ + UInt32Value.prototype.value = 0; + + /** + * Creates a new UInt32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + * @returns {google.protobuf.UInt32Value} UInt32Value instance + */ + UInt32Value.create = function create(properties) { + return new UInt32Value(properties); + }; + + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); + return writer; + }; + + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt32Value} UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UInt32Value message. + * @function verify + * @memberof google.protobuf.UInt32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + return UInt32Value; + })(); + + protobuf.BoolValue = (function() { + + /** + * Properties of a BoolValue. + * @memberof google.protobuf + * @interface IBoolValue + * @property {boolean|null} [value] BoolValue value + */ + + /** + * Constructs a new BoolValue. + * @memberof google.protobuf + * @classdesc Represents a BoolValue. + * @implements IBoolValue + * @constructor + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + */ + function BoolValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BoolValue value. + * @member {boolean} value + * @memberof google.protobuf.BoolValue + * @instance + */ + BoolValue.prototype.value = false; + + /** + * Creates a new BoolValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + * @returns {google.protobuf.BoolValue} BoolValue instance + */ + BoolValue.create = function create(properties) { + return new BoolValue(properties); + }; + + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); + return writer; + }; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BoolValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BoolValue message. + * @function verify + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BoolValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "boolean") + return "value: boolean expected"; + return null; + }; + + return BoolValue; + })(); + + protobuf.StringValue = (function() { + + /** + * Properties of a StringValue. + * @memberof google.protobuf + * @interface IStringValue + * @property {string|null} [value] StringValue value + */ + + /** + * Constructs a new StringValue. + * @memberof google.protobuf + * @classdesc Represents a StringValue. + * @implements IStringValue + * @constructor + * @param {google.protobuf.IStringValue=} [properties] Properties to set + */ + function StringValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StringValue value. + * @member {string} value + * @memberof google.protobuf.StringValue + * @instance + */ + StringValue.prototype.value = ""; + + /** + * Creates a new StringValue instance using the specified properties. + * @function create + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue=} [properties] Properties to set + * @returns {google.protobuf.StringValue} StringValue instance + */ + StringValue.create = function create(properties) { + return new StringValue(properties); + }; + + /** + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Decodes a StringValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.StringValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.StringValue} StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StringValue message. + * @function verify + * @memberof google.protobuf.StringValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return StringValue; + })(); + + protobuf.BytesValue = (function() { + + /** + * Properties of a BytesValue. + * @memberof google.protobuf + * @interface IBytesValue + * @property {Uint8Array|null} [value] BytesValue value + */ + + /** + * Constructs a new BytesValue. + * @memberof google.protobuf + * @classdesc Represents a BytesValue. + * @implements IBytesValue + * @constructor + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + */ + function BytesValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BytesValue value. + * @member {Uint8Array} value + * @memberof google.protobuf.BytesValue + * @instance + */ + BytesValue.prototype.value = $util.newBuffer([]); + + /** + * Creates a new BytesValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + * @returns {google.protobuf.BytesValue} BytesValue instance + */ + BytesValue.create = function create(properties) { + return new BytesValue(properties); + }; + + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BytesValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + return writer; + }; + + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BytesValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BytesValue} BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BytesValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BytesValue message. + * @function verify + * @memberof google.protobuf.BytesValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BytesValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + return BytesValue; + })(); + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && message.hasOwnProperty("package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && message.hasOwnProperty("syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + return writer; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message["package"] = reader.string(); + break; + case 3: + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + case 11: + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + case 4: + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && message.hasOwnProperty("extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && message.hasOwnProperty("label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && message.hasOwnProperty("typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + return writer; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {string} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {string} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && message.hasOwnProperty("inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && message.hasOwnProperty("outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = false; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = reader.int32(); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {string} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && message.hasOwnProperty("ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && message.hasOwnProperty("packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && message.hasOwnProperty("lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && message.hasOwnProperty("jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && message.hasOwnProperty("weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {string} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {string} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + return null; + }; + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && message.hasOwnProperty("begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + return protobuf; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [body] HttpRule body + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpRule get. + * @member {string} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = ""; + + /** + * HttpRule put. + * @member {string} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = ""; + + /** + * HttpRule post. + * @member {string} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = ""; + + /** + * HttpRule delete. + * @member {string} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = ""; + + /** + * HttpRule patch. + * @member {string} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = ""; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && message.hasOwnProperty("selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && message.hasOwnProperty("get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && message.hasOwnProperty("put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && message.hasOwnProperty("post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && message.hasOwnProperty("delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && message.hasOwnProperty("patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && message.hasOwnProperty("body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && message.hasOwnProperty("custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 1: + message.selector = reader.string(); + break; + case 7: + message.body = reader.string(); + break; + case 11: + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && message.hasOwnProperty("path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + return CustomHttpPattern; + })(); + + return api; + })(); + + return google; + })(); + + return $root; +}); diff --git a/flyteidl/gen/pb_python/__init__.py b/flyteidl/gen/pb_python/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/__init__.py b/flyteidl/gen/pb_python/flyteidl/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/__init__.py b/flyteidl/gen/pb_python/flyteidl/admin/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py new file mode 100644 index 0000000000..ea0ef0afe1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/agent.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\x98\x05\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"R\n\x0eGetTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"l\n\x08Resource\x12+\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\"U\n\x11\x44\x65leteTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb0\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.agent_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nAgentProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _TASKEXECUTIONMETADATA_LABELSENTRY._options = None + _TASKEXECUTIONMETADATA_LABELSENTRY._serialized_options = b'8\001' + _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._options = None + _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' + _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._options = None + _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' + _globals['_STATE']._serialized_start=1530 + _globals['_STATE']._serialized_end=1624 + _globals['_TASKEXECUTIONMETADATA']._serialized_start=167 + _globals['_TASKEXECUTIONMETADATA']._serialized_end=831 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=637 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=694 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=696 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=758 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=760 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=831 + _globals['_CREATETASKREQUEST']._serialized_start=834 + _globals['_CREATETASKREQUEST']._serialized_end=1093 + _globals['_CREATETASKRESPONSE']._serialized_start=1095 + _globals['_CREATETASKRESPONSE']._serialized_end=1152 + _globals['_GETTASKREQUEST']._serialized_start=1154 + _globals['_GETTASKREQUEST']._serialized_end=1236 + _globals['_GETTASKRESPONSE']._serialized_start=1238 + _globals['_GETTASKRESPONSE']._serialized_end=1309 + _globals['_RESOURCE']._serialized_start=1311 + _globals['_RESOURCE']._serialized_end=1419 + _globals['_DELETETASKREQUEST']._serialized_start=1421 + _globals['_DELETETASKREQUEST']._serialized_end=1506 + _globals['_DELETETASKRESPONSE']._serialized_start=1508 + _globals['_DELETETASKRESPONSE']._serialized_end=1528 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi new file mode 100644 index 0000000000..830158d0b2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -0,0 +1,113 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RETRYABLE_FAILURE: _ClassVar[State] + PERMANENT_FAILURE: _ClassVar[State] + PENDING: _ClassVar[State] + RUNNING: _ClassVar[State] + SUCCEEDED: _ClassVar[State] +RETRYABLE_FAILURE: State +PERMANENT_FAILURE: State +PENDING: State +RUNNING: State +SUCCEEDED: State + +class TaskExecutionMetadata(_message.Message): + __slots__ = ["task_execution_id", "namespace", "labels", "annotations", "k8s_service_account", "environment_variables"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class AnnotationsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class EnvironmentVariablesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + NAMESPACE_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + ENVIRONMENT_VARIABLES_FIELD_NUMBER: _ClassVar[int] + task_execution_id: _identifier_pb2.TaskExecutionIdentifier + namespace: str + labels: _containers.ScalarMap[str, str] + annotations: _containers.ScalarMap[str, str] + k8s_service_account: str + environment_variables: _containers.ScalarMap[str, str] + def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., namespace: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ..., k8s_service_account: _Optional[str] = ..., environment_variables: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class CreateTaskRequest(_message.Message): + __slots__ = ["inputs", "template", "output_prefix", "task_execution_metadata"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] + TASK_EXECUTION_METADATA_FIELD_NUMBER: _ClassVar[int] + inputs: _literals_pb2.LiteralMap + template: _tasks_pb2.TaskTemplate + output_prefix: str + task_execution_metadata: TaskExecutionMetadata + def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ...) -> None: ... + +class CreateTaskResponse(_message.Message): + __slots__ = ["resource_meta"] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + resource_meta: bytes + def __init__(self, resource_meta: _Optional[bytes] = ...) -> None: ... + +class GetTaskRequest(_message.Message): + __slots__ = ["task_type", "resource_meta"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + task_type: str + resource_meta: bytes + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... + +class GetTaskResponse(_message.Message): + __slots__ = ["resource"] + RESOURCE_FIELD_NUMBER: _ClassVar[int] + resource: Resource + def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + +class Resource(_message.Message): + __slots__ = ["state", "outputs"] + STATE_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + state: State + outputs: _literals_pb2.LiteralMap + def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class DeleteTaskRequest(_message.Message): + __slots__ = ["task_type", "resource_meta"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + task_type: str + resource_meta: bytes + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... + +class DeleteTaskResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py new file mode 100644 index 0000000000..ed4ab7bb36 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/cluster_assignment.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/cluster_assignment.proto\x12\x0e\x66lyteidl.admin\"K\n\x11\x43lusterAssignment\x12*\n\x11\x63luster_pool_name\x18\x03 \x01(\tR\x0f\x63lusterPoolNameJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\x42\xbc\x01\n\x12\x63om.flyteidl.adminB\x16\x43lusterAssignmentProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.cluster_assignment_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ClusterAssignmentProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_CLUSTERASSIGNMENT']._serialized_start=59 + _globals['_CLUSTERASSIGNMENT']._serialized_end=134 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi new file mode 100644 index 0000000000..d18fe1bf3d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi @@ -0,0 +1,11 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class ClusterAssignment(_message.Message): + __slots__ = ["cluster_pool_name"] + CLUSTER_POOL_NAME_FIELD_NUMBER: _ClassVar[int] + cluster_pool_name: str + def __init__(self, cluster_pool_name: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py new file mode 100644 index 0000000000..7555b8b095 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/common.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/common.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"]\n\x15NamedEntityIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\"o\n\x13NamedEntityMetadata\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32 .flyteidl.admin.NamedEntityStateR\x05state\"\xc7\x01\n\x0bNamedEntity\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x82\x01\n\x04Sort\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\tdirection\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.Sort.DirectionR\tdirection\"*\n\tDirection\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\xc9\x01\n NamedEntityIdentifierListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x06 \x01(\tR\x07\x66ilters\"\x81\x02\n\x16NamedEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x04 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x07 \x01(\tR\x07\x66ilters\"t\n\x19NamedEntityIdentifierList\x12\x41\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"`\n\x0fNamedEntityList\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1b.flyteidl.admin.NamedEntityR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x90\x01\n\x15NamedEntityGetRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xd4\x01\n\x18NamedEntityUpdateRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x1b\n\x19NamedEntityUpdateResponse\"=\n\x10ObjectGetRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\xc1\x01\n\x13ResourceListRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\">\n\x11\x45mailNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"B\n\x15PagerDutyNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\">\n\x11SlackNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"\x94\x02\n\x0cNotification\x12>\n\x06phases\x18\x01 \x03(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x06phases\x12\x39\n\x05\x65mail\x18\x02 \x01(\x0b\x32!.flyteidl.admin.EmailNotificationH\x00R\x05\x65mail\x12\x46\n\npager_duty\x18\x03 \x01(\x0b\x32%.flyteidl.admin.PagerDutyNotificationH\x00R\tpagerDuty\x12\x39\n\x05slack\x18\x04 \x01(\x0b\x32!.flyteidl.admin.SlackNotificationH\x00R\x05slackB\x06\n\x04type\"5\n\x07UrlBlob\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\x12\x14\n\x05\x62ytes\x18\x02 \x01(\x03R\x05\x62ytes:\x02\x18\x01\"\x7f\n\x06Labels\x12:\n\x06values\x18\x01 \x03(\x0b\x32\".flyteidl.admin.Labels.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x89\x01\n\x0b\x41nnotations\x12?\n\x06values\x18\x01 \x03(\x0b\x32\'.flyteidl.admin.Annotations.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\";\n\x04\x45nvs\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x06values\"z\n\x08\x41uthRole\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"K\n\x13RawOutputDataConfig\x12\x34\n\x16output_location_prefix\x18\x01 \x01(\tR\x14outputLocationPrefix\"Q\n\tFlyteURLs\x12\x16\n\x06inputs\x18\x01 \x01(\tR\x06inputs\x12\x18\n\x07outputs\x18\x02 \x01(\tR\x07outputs\x12\x12\n\x04\x64\x65\x63k\x18\x03 \x01(\tR\x04\x64\x65\x63k*\\\n\x10NamedEntityState\x12\x17\n\x13NAMED_ENTITY_ACTIVE\x10\x00\x12\x19\n\x15NAMED_ENTITY_ARCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\x42\xb1\x01\n\x12\x63om.flyteidl.adminB\x0b\x43ommonProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.common_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013CommonProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _URLBLOB._options = None + _URLBLOB._serialized_options = b'\030\001' + _LABELS_VALUESENTRY._options = None + _LABELS_VALUESENTRY._serialized_options = b'8\001' + _ANNOTATIONS_VALUESENTRY._options = None + _ANNOTATIONS_VALUESENTRY._serialized_options = b'8\001' + _AUTHROLE._options = None + _AUTHROLE._serialized_options = b'\030\001' + _globals['_NAMEDENTITYSTATE']._serialized_start=3190 + _globals['_NAMEDENTITYSTATE']._serialized_end=3282 + _globals['_NAMEDENTITYIDENTIFIER']._serialized_start=173 + _globals['_NAMEDENTITYIDENTIFIER']._serialized_end=266 + _globals['_NAMEDENTITYMETADATA']._serialized_start=268 + _globals['_NAMEDENTITYMETADATA']._serialized_end=379 + _globals['_NAMEDENTITY']._serialized_start=382 + _globals['_NAMEDENTITY']._serialized_end=581 + _globals['_SORT']._serialized_start=584 + _globals['_SORT']._serialized_end=714 + _globals['_SORT_DIRECTION']._serialized_start=672 + _globals['_SORT_DIRECTION']._serialized_end=714 + _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_start=717 + _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_end=918 + _globals['_NAMEDENTITYLISTREQUEST']._serialized_start=921 + _globals['_NAMEDENTITYLISTREQUEST']._serialized_end=1178 + _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_start=1180 + _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_end=1296 + _globals['_NAMEDENTITYLIST']._serialized_start=1298 + _globals['_NAMEDENTITYLIST']._serialized_end=1394 + _globals['_NAMEDENTITYGETREQUEST']._serialized_start=1397 + _globals['_NAMEDENTITYGETREQUEST']._serialized_end=1541 + _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_start=1544 + _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_end=1756 + _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_start=1758 + _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_end=1785 + _globals['_OBJECTGETREQUEST']._serialized_start=1787 + _globals['_OBJECTGETREQUEST']._serialized_end=1848 + _globals['_RESOURCELISTREQUEST']._serialized_start=1851 + _globals['_RESOURCELISTREQUEST']._serialized_end=2044 + _globals['_EMAILNOTIFICATION']._serialized_start=2046 + _globals['_EMAILNOTIFICATION']._serialized_end=2108 + _globals['_PAGERDUTYNOTIFICATION']._serialized_start=2110 + _globals['_PAGERDUTYNOTIFICATION']._serialized_end=2176 + _globals['_SLACKNOTIFICATION']._serialized_start=2178 + _globals['_SLACKNOTIFICATION']._serialized_end=2240 + _globals['_NOTIFICATION']._serialized_start=2243 + _globals['_NOTIFICATION']._serialized_end=2519 + _globals['_URLBLOB']._serialized_start=2521 + _globals['_URLBLOB']._serialized_end=2574 + _globals['_LABELS']._serialized_start=2576 + _globals['_LABELS']._serialized_end=2703 + _globals['_LABELS_VALUESENTRY']._serialized_start=2646 + _globals['_LABELS_VALUESENTRY']._serialized_end=2703 + _globals['_ANNOTATIONS']._serialized_start=2706 + _globals['_ANNOTATIONS']._serialized_end=2843 + _globals['_ANNOTATIONS_VALUESENTRY']._serialized_start=2646 + _globals['_ANNOTATIONS_VALUESENTRY']._serialized_end=2703 + _globals['_ENVS']._serialized_start=2845 + _globals['_ENVS']._serialized_end=2904 + _globals['_AUTHROLE']._serialized_start=2906 + _globals['_AUTHROLE']._serialized_end=3028 + _globals['_RAWOUTPUTDATACONFIG']._serialized_start=3030 + _globals['_RAWOUTPUTDATACONFIG']._serialized_end=3105 + _globals['_FLYTEURLS']._serialized_start=3107 + _globals['_FLYTEURLS']._serialized_end=3188 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi new file mode 100644 index 0000000000..9c81d7cf45 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi @@ -0,0 +1,248 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class NamedEntityState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + NAMED_ENTITY_ACTIVE: _ClassVar[NamedEntityState] + NAMED_ENTITY_ARCHIVED: _ClassVar[NamedEntityState] + SYSTEM_GENERATED: _ClassVar[NamedEntityState] +NAMED_ENTITY_ACTIVE: NamedEntityState +NAMED_ENTITY_ARCHIVED: NamedEntityState +SYSTEM_GENERATED: NamedEntityState + +class NamedEntityIdentifier(_message.Message): + __slots__ = ["project", "domain", "name"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + name: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... + +class NamedEntityMetadata(_message.Message): + __slots__ = ["description", "state"] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + description: str + state: NamedEntityState + def __init__(self, description: _Optional[str] = ..., state: _Optional[_Union[NamedEntityState, str]] = ...) -> None: ... + +class NamedEntity(_message.Message): + __slots__ = ["resource_type", "id", "metadata"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: NamedEntityIdentifier + metadata: NamedEntityMetadata + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... + +class Sort(_message.Message): + __slots__ = ["key", "direction"] + class Direction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DESCENDING: _ClassVar[Sort.Direction] + ASCENDING: _ClassVar[Sort.Direction] + DESCENDING: Sort.Direction + ASCENDING: Sort.Direction + KEY_FIELD_NUMBER: _ClassVar[int] + DIRECTION_FIELD_NUMBER: _ClassVar[int] + key: str + direction: Sort.Direction + def __init__(self, key: _Optional[str] = ..., direction: _Optional[_Union[Sort.Direction, str]] = ...) -> None: ... + +class NamedEntityIdentifierListRequest(_message.Message): + __slots__ = ["project", "domain", "limit", "token", "sort_by", "filters"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + limit: int + token: str + sort_by: Sort + filters: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ...) -> None: ... + +class NamedEntityListRequest(_message.Message): + __slots__ = ["resource_type", "project", "domain", "limit", "token", "sort_by", "filters"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + project: str + domain: str + limit: int + token: str + sort_by: Sort + filters: str + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ...) -> None: ... + +class NamedEntityIdentifierList(_message.Message): + __slots__ = ["entities", "token"] + ENTITIES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + entities: _containers.RepeatedCompositeFieldContainer[NamedEntityIdentifier] + token: str + def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntityIdentifier, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class NamedEntityList(_message.Message): + __slots__ = ["entities", "token"] + ENTITIES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + entities: _containers.RepeatedCompositeFieldContainer[NamedEntity] + token: str + def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class NamedEntityGetRequest(_message.Message): + __slots__ = ["resource_type", "id"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: NamedEntityIdentifier + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ...) -> None: ... + +class NamedEntityUpdateRequest(_message.Message): + __slots__ = ["resource_type", "id", "metadata"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: NamedEntityIdentifier + metadata: NamedEntityMetadata + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... + +class NamedEntityUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ObjectGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class ResourceListRequest(_message.Message): + __slots__ = ["id", "limit", "token", "filters", "sort_by"] + ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + id: NamedEntityIdentifier + limit: int + token: str + filters: str + sort_by: Sort + def __init__(self, id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ...) -> None: ... + +class EmailNotification(_message.Message): + __slots__ = ["recipients_email"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... + +class PagerDutyNotification(_message.Message): + __slots__ = ["recipients_email"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... + +class SlackNotification(_message.Message): + __slots__ = ["recipients_email"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... + +class Notification(_message.Message): + __slots__ = ["phases", "email", "pager_duty", "slack"] + PHASES_FIELD_NUMBER: _ClassVar[int] + EMAIL_FIELD_NUMBER: _ClassVar[int] + PAGER_DUTY_FIELD_NUMBER: _ClassVar[int] + SLACK_FIELD_NUMBER: _ClassVar[int] + phases: _containers.RepeatedScalarFieldContainer[_execution_pb2.WorkflowExecution.Phase] + email: EmailNotification + pager_duty: PagerDutyNotification + slack: SlackNotification + def __init__(self, phases: _Optional[_Iterable[_Union[_execution_pb2.WorkflowExecution.Phase, str]]] = ..., email: _Optional[_Union[EmailNotification, _Mapping]] = ..., pager_duty: _Optional[_Union[PagerDutyNotification, _Mapping]] = ..., slack: _Optional[_Union[SlackNotification, _Mapping]] = ...) -> None: ... + +class UrlBlob(_message.Message): + __slots__ = ["url", "bytes"] + URL_FIELD_NUMBER: _ClassVar[int] + BYTES_FIELD_NUMBER: _ClassVar[int] + url: str + bytes: int + def __init__(self, url: _Optional[str] = ..., bytes: _Optional[int] = ...) -> None: ... + +class Labels(_message.Message): + __slots__ = ["values"] + class ValuesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.ScalarMap[str, str] + def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Annotations(_message.Message): + __slots__ = ["values"] + class ValuesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.ScalarMap[str, str] + def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Envs(_message.Message): + __slots__ = ["values"] + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] + def __init__(self, values: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ...) -> None: ... + +class AuthRole(_message.Message): + __slots__ = ["assumable_iam_role", "kubernetes_service_account"] + ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + assumable_iam_role: str + kubernetes_service_account: str + def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... + +class RawOutputDataConfig(_message.Message): + __slots__ = ["output_location_prefix"] + OUTPUT_LOCATION_PREFIX_FIELD_NUMBER: _ClassVar[int] + output_location_prefix: str + def __init__(self, output_location_prefix: _Optional[str] = ...) -> None: ... + +class FlyteURLs(_message.Message): + __slots__ = ["inputs", "outputs", "deck"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + DECK_FIELD_NUMBER: _ClassVar[int] + inputs: str + outputs: str + deck: str + def __init__(self, inputs: _Optional[str] = ..., outputs: _Optional[str] = ..., deck: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py new file mode 100644 index 0000000000..11ce1f4de3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/description_entity.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/description_entity.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/admin/common.proto\"\x84\x02\n\x11\x44\x65scriptionEntity\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12+\n\x11short_description\x18\x02 \x01(\tR\x10shortDescription\x12\x46\n\x10long_description\x18\x03 \x01(\x0b\x32\x1b.flyteidl.admin.DescriptionR\x0flongDescription\x12;\n\x0bsource_code\x18\x04 \x01(\x0b\x32\x1a.flyteidl.admin.SourceCodeR\nsourceCode\x12\x12\n\x04tags\x18\x05 \x03(\tR\x04tags\"\x9c\x01\n\x0b\x44\x65scription\x12\x16\n\x05value\x18\x01 \x01(\tH\x00R\x05value\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uri\x12\x39\n\x06\x66ormat\x18\x03 \x01(\x0e\x32!.flyteidl.admin.DescriptionFormatR\x06\x66ormat\x12\x1b\n\ticon_link\x18\x04 \x01(\tR\x08iconLinkB\t\n\x07\x63ontent\" \n\nSourceCode\x12\x12\n\x04link\x18\x01 \x01(\tR\x04link\"\x82\x01\n\x15\x44\x65scriptionEntityList\x12S\n\x13\x64\x65scriptionEntities\x18\x01 \x03(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x13\x64\x65scriptionEntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x8c\x02\n\x1c\x44\x65scriptionEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x05 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy*\x8d\x01\n\x11\x44\x65scriptionFormat\x12\x1e\n\x1a\x44\x45SCRIPTION_FORMAT_UNKNOWN\x10\x00\x12\x1f\n\x1b\x44\x45SCRIPTION_FORMAT_MARKDOWN\x10\x01\x12\x1b\n\x17\x44\x45SCRIPTION_FORMAT_HTML\x10\x02\x12\x1a\n\x16\x44\x45SCRIPTION_FORMAT_RST\x10\x03\x42\xbc\x01\n\x12\x63om.flyteidl.adminB\x16\x44\x65scriptionEntityProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.description_entity_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026DescriptionEntityProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_DESCRIPTIONFORMAT']._serialized_start=981 + _globals['_DESCRIPTIONFORMAT']._serialized_end=1122 + _globals['_DESCRIPTIONENTITY']._serialized_start=121 + _globals['_DESCRIPTIONENTITY']._serialized_end=381 + _globals['_DESCRIPTION']._serialized_start=384 + _globals['_DESCRIPTION']._serialized_end=540 + _globals['_SOURCECODE']._serialized_start=542 + _globals['_SOURCECODE']._serialized_end=574 + _globals['_DESCRIPTIONENTITYLIST']._serialized_start=577 + _globals['_DESCRIPTIONENTITYLIST']._serialized_end=707 + _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_start=710 + _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_end=978 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi new file mode 100644 index 0000000000..200778457d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi @@ -0,0 +1,76 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.admin import common_pb2 as _common_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DescriptionFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DESCRIPTION_FORMAT_UNKNOWN: _ClassVar[DescriptionFormat] + DESCRIPTION_FORMAT_MARKDOWN: _ClassVar[DescriptionFormat] + DESCRIPTION_FORMAT_HTML: _ClassVar[DescriptionFormat] + DESCRIPTION_FORMAT_RST: _ClassVar[DescriptionFormat] +DESCRIPTION_FORMAT_UNKNOWN: DescriptionFormat +DESCRIPTION_FORMAT_MARKDOWN: DescriptionFormat +DESCRIPTION_FORMAT_HTML: DescriptionFormat +DESCRIPTION_FORMAT_RST: DescriptionFormat + +class DescriptionEntity(_message.Message): + __slots__ = ["id", "short_description", "long_description", "source_code", "tags"] + ID_FIELD_NUMBER: _ClassVar[int] + SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + LONG_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + SOURCE_CODE_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + short_description: str + long_description: Description + source_code: SourceCode + tags: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., short_description: _Optional[str] = ..., long_description: _Optional[_Union[Description, _Mapping]] = ..., source_code: _Optional[_Union[SourceCode, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... + +class Description(_message.Message): + __slots__ = ["value", "uri", "format", "icon_link"] + VALUE_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + ICON_LINK_FIELD_NUMBER: _ClassVar[int] + value: str + uri: str + format: DescriptionFormat + icon_link: str + def __init__(self, value: _Optional[str] = ..., uri: _Optional[str] = ..., format: _Optional[_Union[DescriptionFormat, str]] = ..., icon_link: _Optional[str] = ...) -> None: ... + +class SourceCode(_message.Message): + __slots__ = ["link"] + LINK_FIELD_NUMBER: _ClassVar[int] + link: str + def __init__(self, link: _Optional[str] = ...) -> None: ... + +class DescriptionEntityList(_message.Message): + __slots__ = ["descriptionEntities", "token"] + DESCRIPTIONENTITIES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + descriptionEntities: _containers.RepeatedCompositeFieldContainer[DescriptionEntity] + token: str + def __init__(self, descriptionEntities: _Optional[_Iterable[_Union[DescriptionEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class DescriptionEntityListRequest(_message.Message): + __slots__ = ["resource_type", "id", "limit", "token", "filters", "sort_by"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: _common_pb2.NamedEntityIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py new file mode 100644 index 0000000000..9324008150 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/event.proto\x12\x0e\x66lyteidl.admin\x1a\x1a\x66lyteidl/event/event.proto\"G\n EventErrorAlreadyInTerminalState\x12#\n\rcurrent_phase\x18\x01 \x01(\tR\x0c\x63urrentPhase\"9\n\x1d\x45ventErrorIncompatibleCluster\x12\x18\n\x07\x63luster\x18\x01 \x01(\tR\x07\x63luster\"\xf1\x01\n\x12\x45ventFailureReason\x12m\n\x19\x61lready_in_terminal_state\x18\x01 \x01(\x0b\x32\x30.flyteidl.admin.EventErrorAlreadyInTerminalStateH\x00R\x16\x61lreadyInTerminalState\x12\x62\n\x14incompatible_cluster\x18\x02 \x01(\x0b\x32-.flyteidl.admin.EventErrorIncompatibleClusterH\x00R\x13incompatibleClusterB\x08\n\x06reason\"|\n\x1dWorkflowExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12<\n\x05\x65vent\x18\x02 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x05\x65vent\" \n\x1eWorkflowExecutionEventResponse\"t\n\x19NodeExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x05\x65vent\"\x1c\n\x1aNodeExecutionEventResponse\"t\n\x19TaskExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x05\x65vent\"\x1c\n\x1aTaskExecutionEventResponseB\xb0\x01\n\x12\x63om.flyteidl.adminB\nEventProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.event_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nEventProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_start=74 + _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_end=145 + _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_start=147 + _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_end=204 + _globals['_EVENTFAILUREREASON']._serialized_start=207 + _globals['_EVENTFAILUREREASON']._serialized_end=448 + _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_start=450 + _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_end=574 + _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_start=576 + _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_end=608 + _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_start=610 + _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_end=726 + _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_start=728 + _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_end=756 + _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_start=758 + _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_end=874 + _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_start=876 + _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_end=904 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi new file mode 100644 index 0000000000..47eac9aa7f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi @@ -0,0 +1,62 @@ +from flyteidl.event import event_pb2 as _event_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class EventErrorAlreadyInTerminalState(_message.Message): + __slots__ = ["current_phase"] + CURRENT_PHASE_FIELD_NUMBER: _ClassVar[int] + current_phase: str + def __init__(self, current_phase: _Optional[str] = ...) -> None: ... + +class EventErrorIncompatibleCluster(_message.Message): + __slots__ = ["cluster"] + CLUSTER_FIELD_NUMBER: _ClassVar[int] + cluster: str + def __init__(self, cluster: _Optional[str] = ...) -> None: ... + +class EventFailureReason(_message.Message): + __slots__ = ["already_in_terminal_state", "incompatible_cluster"] + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER: _ClassVar[int] + INCOMPATIBLE_CLUSTER_FIELD_NUMBER: _ClassVar[int] + already_in_terminal_state: EventErrorAlreadyInTerminalState + incompatible_cluster: EventErrorIncompatibleCluster + def __init__(self, already_in_terminal_state: _Optional[_Union[EventErrorAlreadyInTerminalState, _Mapping]] = ..., incompatible_cluster: _Optional[_Union[EventErrorIncompatibleCluster, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionEventRequest(_message.Message): + __slots__ = ["request_id", "event"] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + EVENT_FIELD_NUMBER: _ClassVar[int] + request_id: str + event: _event_pb2.WorkflowExecutionEvent + def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionEventResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class NodeExecutionEventRequest(_message.Message): + __slots__ = ["request_id", "event"] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + EVENT_FIELD_NUMBER: _ClassVar[int] + request_id: str + event: _event_pb2.NodeExecutionEvent + def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ...) -> None: ... + +class NodeExecutionEventResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class TaskExecutionEventRequest(_message.Message): + __slots__ = ["request_id", "event"] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + EVENT_FIELD_NUMBER: _ClassVar[int] + request_id: str + event: _event_pb2.TaskExecutionEvent + def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ... + +class TaskExecutionEventResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py new file mode 100644 index 0000000000..38643f04a0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/admin/execution.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xc4\x01\n\x16\x45xecutionCreateRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x31\n\x04spec\x18\x04 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12\x31\n\x06inputs\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\"\x99\x01\n\x18\x45xecutionRelaunchRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\'\n\x0foverwrite_cache\x18\x04 \x01(\x08R\x0eoverwriteCacheJ\x04\x08\x02\x10\x03\"\xa8\x01\n\x17\x45xecutionRecoverRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\"U\n\x17\x45xecutionCreateResponse\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"Y\n\x1bWorkflowExecutionGetRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\xb6\x01\n\tExecution\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x31\n\x04spec\x18\x02 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12:\n\x07\x63losure\x18\x03 \x01(\x0b\x32 .flyteidl.admin.ExecutionClosureR\x07\x63losure\"`\n\rExecutionList\x12\x39\n\nexecutions\x18\x01 \x03(\x0b\x32\x19.flyteidl.admin.ExecutionR\nexecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"e\n\x0eLiteralMapBlob\x12\x37\n\x06values\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\x06values\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uriB\x06\n\x04\x64\x61ta\"C\n\rAbortMetadata\x12\x14\n\x05\x63\x61use\x18\x01 \x01(\tR\x05\x63\x61use\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\"\x98\x07\n\x10\x45xecutionClosure\x12>\n\x07outputs\x18\x01 \x01(\x0b\x32\x1e.flyteidl.admin.LiteralMapBlobB\x02\x18\x01H\x00R\x07outputs\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12%\n\x0b\x61\x62ort_cause\x18\n \x01(\tB\x02\x18\x01H\x00R\nabortCause\x12\x46\n\x0e\x61\x62ort_metadata\x18\x0c \x01(\x0b\x32\x1d.flyteidl.admin.AbortMetadataH\x00R\rabortMetadata\x12@\n\x0boutput_data\x18\r \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x46\n\x0f\x63omputed_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x0e\x63omputedInputs\x12<\n\x05phase\x18\x04 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x42\n\rnotifications\x18\t \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\x12:\n\x0bworkflow_id\x18\x0b \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12]\n\x14state_change_details\x18\x0e \x01(\x0b\x32+.flyteidl.admin.ExecutionStateChangeDetailsR\x12stateChangeDetailsB\x0f\n\routput_result\"[\n\x0eSystemMetadata\x12+\n\x11\x65xecution_cluster\x18\x01 \x01(\tR\x10\x65xecutionCluster\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\xba\x04\n\x11\x45xecutionMetadata\x12\x43\n\x04mode\x18\x01 \x01(\x0e\x32/.flyteidl.admin.ExecutionMetadata.ExecutionModeR\x04mode\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\x12\x18\n\x07nesting\x18\x03 \x01(\rR\x07nesting\x12=\n\x0cscheduled_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bscheduledAt\x12Z\n\x15parent_node_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x13parentNodeExecution\x12[\n\x13reference_execution\x18\x10 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12G\n\x0fsystem_metadata\x18\x11 \x01(\x0b\x32\x1e.flyteidl.admin.SystemMetadataR\x0esystemMetadata\"g\n\rExecutionMode\x12\n\n\x06MANUAL\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0c\n\x08RELAUNCH\x10\x03\x12\x12\n\x0e\x43HILD_WORKFLOW\x10\x04\x12\r\n\tRECOVERED\x10\x05\"V\n\x10NotificationList\x12\x42\n\rnotifications\x18\x01 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\"\x90\x08\n\rExecutionSpec\x12:\n\x0blaunch_plan\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nlaunchPlan\x12\x35\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x06inputs\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\x12H\n\rnotifications\x18\x05 \x01(\x0b\x32 .flyteidl.admin.NotificationListH\x00R\rnotifications\x12!\n\x0b\x64isable_all\x18\x06 \x01(\x08H\x00R\ndisableAll\x12.\n\x06labels\x18\x07 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x08 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12\x39\n\tauth_role\x18\x10 \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12M\n\x12quality_of_service\x18\x11 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12X\n\x16raw_output_data_config\x18\x13 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12P\n\x12\x63luster_assignment\x18\x14 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentR\x11\x63lusterAssignment\x12@\n\rinterruptible\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x16 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x17 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\x12\x12\n\x04tags\x18\x18 \x03(\tR\x04tagsB\x18\n\x16notification_overridesJ\x04\x08\x04\x10\x05\"m\n\x19\x45xecutionTerminateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x63\x61use\x18\x02 \x01(\tR\x05\x63\x61use\"\x1c\n\x1a\x45xecutionTerminateResponse\"]\n\x1fWorkflowExecutionGetDataRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\x88\x02\n WorkflowExecutionGetDataResponse\x12\x35\n\x07outputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\"\x8a\x01\n\x16\x45xecutionUpdateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\"\xae\x01\n\x1b\x45xecutionStateChangeDetails\x12\x34\n\x05state\x18\x01 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\"\x19\n\x17\x45xecutionUpdateResponse\"v\n\"WorkflowExecutionGetMetricsRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x05R\x05\x64\x65pth\"N\n#WorkflowExecutionGetMetricsResponse\x12\'\n\x04span\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.SpanR\x04span*>\n\x0e\x45xecutionState\x12\x14\n\x10\x45XECUTION_ACTIVE\x10\x00\x12\x16\n\x12\x45XECUTION_ARCHIVED\x10\x01\x42\xb4\x01\n\x12\x63om.flyteidl.adminB\x0e\x45xecutionProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\016ExecutionProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _LITERALMAPBLOB.fields_by_name['values']._options = None + _LITERALMAPBLOB.fields_by_name['values']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['outputs']._options = None + _EXECUTIONCLOSURE.fields_by_name['outputs']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['abort_cause']._options = None + _EXECUTIONCLOSURE.fields_by_name['abort_cause']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['output_data']._options = None + _EXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._options = None + _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._serialized_options = b'\030\001' + _EXECUTIONSPEC.fields_by_name['inputs']._options = None + _EXECUTIONSPEC.fields_by_name['inputs']._serialized_options = b'\030\001' + _EXECUTIONSPEC.fields_by_name['auth_role']._options = None + _EXECUTIONSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' + _globals['_EXECUTIONSTATE']._serialized_start=5296 + _globals['_EXECUTIONSTATE']._serialized_end=5358 + _globals['_EXECUTIONCREATEREQUEST']._serialized_start=370 + _globals['_EXECUTIONCREATEREQUEST']._serialized_end=566 + _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_start=569 + _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_end=722 + _globals['_EXECUTIONRECOVERREQUEST']._serialized_start=725 + _globals['_EXECUTIONRECOVERREQUEST']._serialized_end=893 + _globals['_EXECUTIONCREATERESPONSE']._serialized_start=895 + _globals['_EXECUTIONCREATERESPONSE']._serialized_end=980 + _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_start=982 + _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_end=1071 + _globals['_EXECUTION']._serialized_start=1074 + _globals['_EXECUTION']._serialized_end=1256 + _globals['_EXECUTIONLIST']._serialized_start=1258 + _globals['_EXECUTIONLIST']._serialized_end=1354 + _globals['_LITERALMAPBLOB']._serialized_start=1356 + _globals['_LITERALMAPBLOB']._serialized_end=1457 + _globals['_ABORTMETADATA']._serialized_start=1459 + _globals['_ABORTMETADATA']._serialized_end=1526 + _globals['_EXECUTIONCLOSURE']._serialized_start=1529 + _globals['_EXECUTIONCLOSURE']._serialized_end=2449 + _globals['_SYSTEMMETADATA']._serialized_start=2451 + _globals['_SYSTEMMETADATA']._serialized_end=2542 + _globals['_EXECUTIONMETADATA']._serialized_start=2545 + _globals['_EXECUTIONMETADATA']._serialized_end=3115 + _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_start=3012 + _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_end=3115 + _globals['_NOTIFICATIONLIST']._serialized_start=3117 + _globals['_NOTIFICATIONLIST']._serialized_end=3203 + _globals['_EXECUTIONSPEC']._serialized_start=3206 + _globals['_EXECUTIONSPEC']._serialized_end=4246 + _globals['_EXECUTIONTERMINATEREQUEST']._serialized_start=4248 + _globals['_EXECUTIONTERMINATEREQUEST']._serialized_end=4357 + _globals['_EXECUTIONTERMINATERESPONSE']._serialized_start=4359 + _globals['_EXECUTIONTERMINATERESPONSE']._serialized_end=4387 + _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_start=4389 + _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_end=4482 + _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_start=4485 + _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_end=4749 + _globals['_EXECUTIONUPDATEREQUEST']._serialized_start=4752 + _globals['_EXECUTIONUPDATEREQUEST']._serialized_end=4890 + _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_start=4893 + _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_end=5067 + _globals['_EXECUTIONUPDATERESPONSE']._serialized_start=5069 + _globals['_EXECUTIONUPDATERESPONSE']._serialized_end=5094 + _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_start=5096 + _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_end=5214 + _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_start=5216 + _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_end=5294 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi new file mode 100644 index 0000000000..f29b3b747e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi @@ -0,0 +1,286 @@ +from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import metrics_pb2 as _metrics_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ExecutionState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + EXECUTION_ACTIVE: _ClassVar[ExecutionState] + EXECUTION_ARCHIVED: _ClassVar[ExecutionState] +EXECUTION_ACTIVE: ExecutionState +EXECUTION_ARCHIVED: ExecutionState + +class ExecutionCreateRequest(_message.Message): + __slots__ = ["project", "domain", "name", "spec", "inputs"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + name: str + spec: ExecutionSpec + inputs: _literals_pb2.LiteralMap + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class ExecutionRelaunchRequest(_message.Message): + __slots__ = ["id", "name", "overwrite_cache"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + name: str + overwrite_cache: bool + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., overwrite_cache: bool = ...) -> None: ... + +class ExecutionRecoverRequest(_message.Message): + __slots__ = ["id", "name", "metadata"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + name: str + metadata: ExecutionMetadata + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ...) -> None: ... + +class ExecutionCreateResponse(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class Execution(_message.Message): + __slots__ = ["id", "spec", "closure"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + spec: ExecutionSpec + closure: ExecutionClosure + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., closure: _Optional[_Union[ExecutionClosure, _Mapping]] = ...) -> None: ... + +class ExecutionList(_message.Message): + __slots__ = ["executions", "token"] + EXECUTIONS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + executions: _containers.RepeatedCompositeFieldContainer[Execution] + token: str + def __init__(self, executions: _Optional[_Iterable[_Union[Execution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class LiteralMapBlob(_message.Message): + __slots__ = ["values", "uri"] + VALUES_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + values: _literals_pb2.LiteralMap + uri: str + def __init__(self, values: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... + +class AbortMetadata(_message.Message): + __slots__ = ["cause", "principal"] + CAUSE_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + cause: str + principal: str + def __init__(self, cause: _Optional[str] = ..., principal: _Optional[str] = ...) -> None: ... + +class ExecutionClosure(_message.Message): + __slots__ = ["outputs", "error", "abort_cause", "abort_metadata", "output_data", "computed_inputs", "phase", "started_at", "duration", "created_at", "updated_at", "notifications", "workflow_id", "state_change_details"] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + ABORT_CAUSE_FIELD_NUMBER: _ClassVar[int] + ABORT_METADATA_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + COMPUTED_INPUTS_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + STARTED_AT_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + STATE_CHANGE_DETAILS_FIELD_NUMBER: _ClassVar[int] + outputs: LiteralMapBlob + error: _execution_pb2.ExecutionError + abort_cause: str + abort_metadata: AbortMetadata + output_data: _literals_pb2.LiteralMap + computed_inputs: _literals_pb2.LiteralMap + phase: _execution_pb2.WorkflowExecution.Phase + started_at: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] + workflow_id: _identifier_pb2.Identifier + state_change_details: ExecutionStateChangeDetails + def __init__(self, outputs: _Optional[_Union[LiteralMapBlob, _Mapping]] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., abort_cause: _Optional[str] = ..., abort_metadata: _Optional[_Union[AbortMetadata, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., computed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state_change_details: _Optional[_Union[ExecutionStateChangeDetails, _Mapping]] = ...) -> None: ... + +class SystemMetadata(_message.Message): + __slots__ = ["execution_cluster", "namespace"] + EXECUTION_CLUSTER_FIELD_NUMBER: _ClassVar[int] + NAMESPACE_FIELD_NUMBER: _ClassVar[int] + execution_cluster: str + namespace: str + def __init__(self, execution_cluster: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... + +class ExecutionMetadata(_message.Message): + __slots__ = ["mode", "principal", "nesting", "scheduled_at", "parent_node_execution", "reference_execution", "system_metadata"] + class ExecutionMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MANUAL: _ClassVar[ExecutionMetadata.ExecutionMode] + SCHEDULED: _ClassVar[ExecutionMetadata.ExecutionMode] + SYSTEM: _ClassVar[ExecutionMetadata.ExecutionMode] + RELAUNCH: _ClassVar[ExecutionMetadata.ExecutionMode] + CHILD_WORKFLOW: _ClassVar[ExecutionMetadata.ExecutionMode] + RECOVERED: _ClassVar[ExecutionMetadata.ExecutionMode] + MANUAL: ExecutionMetadata.ExecutionMode + SCHEDULED: ExecutionMetadata.ExecutionMode + SYSTEM: ExecutionMetadata.ExecutionMode + RELAUNCH: ExecutionMetadata.ExecutionMode + CHILD_WORKFLOW: ExecutionMetadata.ExecutionMode + RECOVERED: ExecutionMetadata.ExecutionMode + MODE_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + NESTING_FIELD_NUMBER: _ClassVar[int] + SCHEDULED_AT_FIELD_NUMBER: _ClassVar[int] + PARENT_NODE_EXECUTION_FIELD_NUMBER: _ClassVar[int] + REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] + SYSTEM_METADATA_FIELD_NUMBER: _ClassVar[int] + mode: ExecutionMetadata.ExecutionMode + principal: str + nesting: int + scheduled_at: _timestamp_pb2.Timestamp + parent_node_execution: _identifier_pb2.NodeExecutionIdentifier + reference_execution: _identifier_pb2.WorkflowExecutionIdentifier + system_metadata: SystemMetadata + def __init__(self, mode: _Optional[_Union[ExecutionMetadata.ExecutionMode, str]] = ..., principal: _Optional[str] = ..., nesting: _Optional[int] = ..., scheduled_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., parent_node_execution: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., system_metadata: _Optional[_Union[SystemMetadata, _Mapping]] = ...) -> None: ... + +class NotificationList(_message.Message): + __slots__ = ["notifications"] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] + def __init__(self, notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ...) -> None: ... + +class ExecutionSpec(_message.Message): + __slots__ = ["launch_plan", "inputs", "metadata", "notifications", "disable_all", "labels", "annotations", "security_context", "auth_role", "quality_of_service", "max_parallelism", "raw_output_data_config", "cluster_assignment", "interruptible", "overwrite_cache", "envs", "tags"] + LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + DISABLE_ALL_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + ENVS_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + launch_plan: _identifier_pb2.Identifier + inputs: _literals_pb2.LiteralMap + metadata: ExecutionMetadata + notifications: NotificationList + disable_all: bool + labels: _common_pb2.Labels + annotations: _common_pb2.Annotations + security_context: _security_pb2.SecurityContext + auth_role: _common_pb2.AuthRole + quality_of_service: _execution_pb2.QualityOfService + max_parallelism: int + raw_output_data_config: _common_pb2.RawOutputDataConfig + cluster_assignment: _cluster_assignment_pb2.ClusterAssignment + interruptible: _wrappers_pb2.BoolValue + overwrite_cache: bool + envs: _common_pb2.Envs + tags: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, launch_plan: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ..., notifications: _Optional[_Union[NotificationList, _Mapping]] = ..., disable_all: bool = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... + +class ExecutionTerminateRequest(_message.Message): + __slots__ = ["id", "cause"] + ID_FIELD_NUMBER: _ClassVar[int] + CAUSE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + cause: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., cause: _Optional[str] = ...) -> None: ... + +class ExecutionTerminateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class WorkflowExecutionGetDataRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionGetDataResponse(_message.Message): + __slots__ = ["outputs", "inputs", "full_inputs", "full_outputs"] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + outputs: _common_pb2.UrlBlob + inputs: _common_pb2.UrlBlob + full_inputs: _literals_pb2.LiteralMap + full_outputs: _literals_pb2.LiteralMap + def __init__(self, outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class ExecutionUpdateRequest(_message.Message): + __slots__ = ["id", "state"] + ID_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + state: ExecutionState + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., state: _Optional[_Union[ExecutionState, str]] = ...) -> None: ... + +class ExecutionStateChangeDetails(_message.Message): + __slots__ = ["state", "occurred_at", "principal"] + STATE_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + state: ExecutionState + occurred_at: _timestamp_pb2.Timestamp + principal: str + def __init__(self, state: _Optional[_Union[ExecutionState, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., principal: _Optional[str] = ...) -> None: ... + +class ExecutionUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class WorkflowExecutionGetMetricsRequest(_message.Message): + __slots__ = ["id", "depth"] + ID_FIELD_NUMBER: _ClassVar[int] + DEPTH_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + depth: int + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., depth: _Optional[int] = ...) -> None: ... + +class WorkflowExecutionGetMetricsResponse(_message.Message): + __slots__ = ["span"] + SPAN_FIELD_NUMBER: _ClassVar[int] + span: _metrics_pb2.Span + def __init__(self, span: _Optional[_Union[_metrics_pb2.Span, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py new file mode 100644 index 0000000000..3bd7b79dc0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/launch_plan.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from flyteidl.admin import schedule_pb2 as flyteidl_dot_admin_dot_schedule__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/admin/launch_plan.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1d\x66lyteidl/admin/schedule.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"x\n\x17LaunchPlanCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\"\x1a\n\x18LaunchPlanCreateResponse\"\xa8\x01\n\nLaunchPlan\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\x12;\n\x07\x63losure\x18\x03 \x01(\x0b\x32!.flyteidl.admin.LaunchPlanClosureR\x07\x63losure\"e\n\x0eLaunchPlanList\x12=\n\x0claunch_plans\x18\x01 \x03(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x0blaunchPlans\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"v\n\x04\x41uth\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"\xbd\x07\n\x0eLaunchPlanSpec\x12:\n\x0bworkflow_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12K\n\x0f\x65ntity_metadata\x18\x02 \x01(\x0b\x32\".flyteidl.admin.LaunchPlanMetadataR\x0e\x65ntityMetadata\x12\x42\n\x0e\x64\x65\x66\x61ult_inputs\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\rdefaultInputs\x12<\n\x0c\x66ixed_inputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ixedInputs\x12\x16\n\x04role\x18\x05 \x01(\tB\x02\x18\x01R\x04role\x12.\n\x06labels\x18\x06 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x07 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12,\n\x04\x61uth\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.AuthB\x02\x18\x01R\x04\x61uth\x12\x39\n\tauth_role\x18\t \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12M\n\x12quality_of_service\x18\x10 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12X\n\x16raw_output_data_config\x18\x11 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12@\n\rinterruptible\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x14 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x15 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\xcd\x02\n\x11LaunchPlanClosure\x12\x35\n\x05state\x18\x01 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\x12\x44\n\x0f\x65xpected_inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x0e\x65xpectedInputs\x12\x45\n\x10\x65xpected_outputs\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x0f\x65xpectedOutputs\x12\x39\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"\x8e\x01\n\x12LaunchPlanMetadata\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ScheduleR\x08schedule\x12\x42\n\rnotifications\x18\x02 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\"{\n\x17LaunchPlanUpdateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x05state\x18\x02 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\"\x1a\n\x18LaunchPlanUpdateResponse\"P\n\x17\x41\x63tiveLaunchPlanRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xaa\x01\n\x1b\x41\x63tiveLaunchPlanListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy*+\n\x0fLaunchPlanState\x12\x0c\n\x08INACTIVE\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x42\xb5\x01\n\x12\x63om.flyteidl.adminB\x0fLaunchPlanProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.launch_plan_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\017LaunchPlanProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _AUTH._options = None + _AUTH._serialized_options = b'\030\001' + _LAUNCHPLANSPEC.fields_by_name['role']._options = None + _LAUNCHPLANSPEC.fields_by_name['role']._serialized_options = b'\030\001' + _LAUNCHPLANSPEC.fields_by_name['auth']._options = None + _LAUNCHPLANSPEC.fields_by_name['auth']._serialized_options = b'\030\001' + _LAUNCHPLANSPEC.fields_by_name['auth_role']._options = None + _LAUNCHPLANSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' + _globals['_LAUNCHPLANSTATE']._serialized_start=2724 + _globals['_LAUNCHPLANSTATE']._serialized_end=2767 + _globals['_LAUNCHPLANCREATEREQUEST']._serialized_start=331 + _globals['_LAUNCHPLANCREATEREQUEST']._serialized_end=451 + _globals['_LAUNCHPLANCREATERESPONSE']._serialized_start=453 + _globals['_LAUNCHPLANCREATERESPONSE']._serialized_end=479 + _globals['_LAUNCHPLAN']._serialized_start=482 + _globals['_LAUNCHPLAN']._serialized_end=650 + _globals['_LAUNCHPLANLIST']._serialized_start=652 + _globals['_LAUNCHPLANLIST']._serialized_end=753 + _globals['_AUTH']._serialized_start=755 + _globals['_AUTH']._serialized_end=873 + _globals['_LAUNCHPLANSPEC']._serialized_start=876 + _globals['_LAUNCHPLANSPEC']._serialized_end=1833 + _globals['_LAUNCHPLANCLOSURE']._serialized_start=1836 + _globals['_LAUNCHPLANCLOSURE']._serialized_end=2169 + _globals['_LAUNCHPLANMETADATA']._serialized_start=2172 + _globals['_LAUNCHPLANMETADATA']._serialized_end=2314 + _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_start=2316 + _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_end=2439 + _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_start=2441 + _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_end=2467 + _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_start=2469 + _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_end=2549 + _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_start=2552 + _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_end=2722 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi new file mode 100644 index 0000000000..7a77f44820 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi @@ -0,0 +1,151 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from flyteidl.admin import schedule_pb2 as _schedule_pb2 +from flyteidl.admin import common_pb2 as _common_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class LaunchPlanState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + INACTIVE: _ClassVar[LaunchPlanState] + ACTIVE: _ClassVar[LaunchPlanState] +INACTIVE: LaunchPlanState +ACTIVE: LaunchPlanState + +class LaunchPlanCreateRequest(_message.Message): + __slots__ = ["id", "spec"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: LaunchPlanSpec + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ...) -> None: ... + +class LaunchPlanCreateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class LaunchPlan(_message.Message): + __slots__ = ["id", "spec", "closure"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: LaunchPlanSpec + closure: LaunchPlanClosure + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ..., closure: _Optional[_Union[LaunchPlanClosure, _Mapping]] = ...) -> None: ... + +class LaunchPlanList(_message.Message): + __slots__ = ["launch_plans", "token"] + LAUNCH_PLANS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + launch_plans: _containers.RepeatedCompositeFieldContainer[LaunchPlan] + token: str + def __init__(self, launch_plans: _Optional[_Iterable[_Union[LaunchPlan, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class Auth(_message.Message): + __slots__ = ["assumable_iam_role", "kubernetes_service_account"] + ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + assumable_iam_role: str + kubernetes_service_account: str + def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... + +class LaunchPlanSpec(_message.Message): + __slots__ = ["workflow_id", "entity_metadata", "default_inputs", "fixed_inputs", "role", "labels", "annotations", "auth", "auth_role", "security_context", "quality_of_service", "raw_output_data_config", "max_parallelism", "interruptible", "overwrite_cache", "envs"] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + ENTITY_METADATA_FIELD_NUMBER: _ClassVar[int] + DEFAULT_INPUTS_FIELD_NUMBER: _ClassVar[int] + FIXED_INPUTS_FIELD_NUMBER: _ClassVar[int] + ROLE_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + AUTH_FIELD_NUMBER: _ClassVar[int] + AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + ENVS_FIELD_NUMBER: _ClassVar[int] + workflow_id: _identifier_pb2.Identifier + entity_metadata: LaunchPlanMetadata + default_inputs: _interface_pb2.ParameterMap + fixed_inputs: _literals_pb2.LiteralMap + role: str + labels: _common_pb2.Labels + annotations: _common_pb2.Annotations + auth: Auth + auth_role: _common_pb2.AuthRole + security_context: _security_pb2.SecurityContext + quality_of_service: _execution_pb2.QualityOfService + raw_output_data_config: _common_pb2.RawOutputDataConfig + max_parallelism: int + interruptible: _wrappers_pb2.BoolValue + overwrite_cache: bool + envs: _common_pb2.Envs + def __init__(self, workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., entity_metadata: _Optional[_Union[LaunchPlanMetadata, _Mapping]] = ..., default_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., fixed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., role: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., auth: _Optional[_Union[Auth, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... + +class LaunchPlanClosure(_message.Message): + __slots__ = ["state", "expected_inputs", "expected_outputs", "created_at", "updated_at"] + STATE_FIELD_NUMBER: _ClassVar[int] + EXPECTED_INPUTS_FIELD_NUMBER: _ClassVar[int] + EXPECTED_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + state: LaunchPlanState + expected_inputs: _interface_pb2.ParameterMap + expected_outputs: _interface_pb2.VariableMap + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + def __init__(self, state: _Optional[_Union[LaunchPlanState, str]] = ..., expected_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., expected_outputs: _Optional[_Union[_interface_pb2.VariableMap, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class LaunchPlanMetadata(_message.Message): + __slots__ = ["schedule", "notifications"] + SCHEDULE_FIELD_NUMBER: _ClassVar[int] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + schedule: _schedule_pb2.Schedule + notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] + def __init__(self, schedule: _Optional[_Union[_schedule_pb2.Schedule, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ...) -> None: ... + +class LaunchPlanUpdateRequest(_message.Message): + __slots__ = ["id", "state"] + ID_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + state: LaunchPlanState + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state: _Optional[_Union[LaunchPlanState, str]] = ...) -> None: ... + +class LaunchPlanUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ActiveLaunchPlanRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _common_pb2.NamedEntityIdentifier + def __init__(self, id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ...) -> None: ... + +class ActiveLaunchPlanListRequest(_message.Message): + __slots__ = ["project", "domain", "limit", "token", "sort_by"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + limit: int + token: str + sort_by: _common_pb2.Sort + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py new file mode 100644 index 0000000000..009314ccd1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/matchable_resource.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/matchable_resource.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x95\x01\n\x10TaskResourceSpec\x12\x10\n\x03\x63pu\x18\x01 \x01(\tR\x03\x63pu\x12\x10\n\x03gpu\x18\x02 \x01(\tR\x03gpu\x12\x16\n\x06memory\x18\x03 \x01(\tR\x06memory\x12\x18\n\x07storage\x18\x04 \x01(\tR\x07storage\x12+\n\x11\x65phemeral_storage\x18\x05 \x01(\tR\x10\x65phemeralStorage\"\x90\x01\n\x16TaskResourceAttributes\x12<\n\x08\x64\x65\x66\x61ults\x18\x01 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x08\x64\x65\x66\x61ults\x12\x38\n\x06limits\x18\x02 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x06limits\"\xb5\x01\n\x19\x43lusterResourceAttributes\x12Y\n\nattributes\x18\x01 \x03(\x0b\x32\x39.flyteidl.admin.ClusterResourceAttributes.AttributesEntryR\nattributes\x1a=\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\".\n\x18\x45xecutionQueueAttributes\x12\x12\n\x04tags\x18\x01 \x03(\tR\x04tags\"-\n\x15\x45xecutionClusterLabel\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"\xec\x01\n\x0ePluginOverride\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x1b\n\tplugin_id\x18\x02 \x03(\tR\x08pluginId\x12l\n\x17missing_plugin_behavior\x18\x04 \x01(\x0e\x32\x34.flyteidl.admin.PluginOverride.MissingPluginBehaviorR\x15missingPluginBehavior\"2\n\x15MissingPluginBehavior\x12\x08\n\x04\x46\x41IL\x10\x00\x12\x0f\n\x0bUSE_DEFAULT\x10\x01\"O\n\x0fPluginOverrides\x12<\n\toverrides\x18\x01 \x03(\x0b\x32\x1e.flyteidl.admin.PluginOverrideR\toverrides\"\xeb\x03\n\x17WorkflowExecutionConfig\x12\'\n\x0fmax_parallelism\x18\x01 \x01(\x05R\x0emaxParallelism\x12I\n\x10security_context\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12X\n\x16raw_output_data_config\x18\x03 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12.\n\x06labels\x18\x04 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x05 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12@\n\rinterruptible\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x07 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\x94\x06\n\x12MatchingAttributes\x12\x62\n\x18task_resource_attributes\x18\x01 \x01(\x0b\x32&.flyteidl.admin.TaskResourceAttributesH\x00R\x16taskResourceAttributes\x12k\n\x1b\x63luster_resource_attributes\x18\x02 \x01(\x0b\x32).flyteidl.admin.ClusterResourceAttributesH\x00R\x19\x63lusterResourceAttributes\x12h\n\x1a\x65xecution_queue_attributes\x18\x03 \x01(\x0b\x32(.flyteidl.admin.ExecutionQueueAttributesH\x00R\x18\x65xecutionQueueAttributes\x12_\n\x17\x65xecution_cluster_label\x18\x04 \x01(\x0b\x32%.flyteidl.admin.ExecutionClusterLabelH\x00R\x15\x65xecutionClusterLabel\x12O\n\x12quality_of_service\x18\x05 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceH\x00R\x10qualityOfService\x12L\n\x10plugin_overrides\x18\x06 \x01(\x0b\x32\x1f.flyteidl.admin.PluginOverridesH\x00R\x0fpluginOverrides\x12\x65\n\x19workflow_execution_config\x18\x07 \x01(\x0b\x32\'.flyteidl.admin.WorkflowExecutionConfigH\x00R\x17workflowExecutionConfig\x12R\n\x12\x63luster_assignment\x18\x08 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentH\x00R\x11\x63lusterAssignmentB\x08\n\x06target\"\xd5\x01\n MatchableAttributesConfiguration\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\nattributes\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x18\n\x07project\x18\x03 \x01(\tR\x07project\x12\x1a\n\x08workflow\x18\x04 \x01(\tR\x08workflow\x12\x1f\n\x0blaunch_plan\x18\x05 \x01(\tR\nlaunchPlan\"h\n\x1eListMatchableAttributesRequest\x12\x46\n\rresource_type\x18\x01 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"{\n\x1fListMatchableAttributesResponse\x12X\n\x0e\x63onfigurations\x18\x01 \x03(\x0b\x32\x30.flyteidl.admin.MatchableAttributesConfigurationR\x0e\x63onfigurations*\xe0\x01\n\x11MatchableResource\x12\x11\n\rTASK_RESOURCE\x10\x00\x12\x14\n\x10\x43LUSTER_RESOURCE\x10\x01\x12\x13\n\x0f\x45XECUTION_QUEUE\x10\x02\x12\x1b\n\x17\x45XECUTION_CLUSTER_LABEL\x10\x03\x12$\n QUALITY_OF_SERVICE_SPECIFICATION\x10\x04\x12\x13\n\x0fPLUGIN_OVERRIDE\x10\x05\x12\x1d\n\x19WORKFLOW_EXECUTION_CONFIG\x10\x06\x12\x16\n\x12\x43LUSTER_ASSIGNMENT\x10\x07\x42\xbc\x01\n\x12\x63om.flyteidl.adminB\x16MatchableResourceProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.matchable_resource_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026MatchableResourceProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._options = None + _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._serialized_options = b'8\001' + _globals['_MATCHABLERESOURCE']._serialized_start=2853 + _globals['_MATCHABLERESOURCE']._serialized_end=3077 + _globals['_TASKRESOURCESPEC']._serialized_start=223 + _globals['_TASKRESOURCESPEC']._serialized_end=372 + _globals['_TASKRESOURCEATTRIBUTES']._serialized_start=375 + _globals['_TASKRESOURCEATTRIBUTES']._serialized_end=519 + _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_start=522 + _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_end=703 + _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_start=642 + _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_end=703 + _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_start=705 + _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_end=751 + _globals['_EXECUTIONCLUSTERLABEL']._serialized_start=753 + _globals['_EXECUTIONCLUSTERLABEL']._serialized_end=798 + _globals['_PLUGINOVERRIDE']._serialized_start=801 + _globals['_PLUGINOVERRIDE']._serialized_end=1037 + _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_start=987 + _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_end=1037 + _globals['_PLUGINOVERRIDES']._serialized_start=1039 + _globals['_PLUGINOVERRIDES']._serialized_end=1118 + _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_start=1121 + _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_end=1612 + _globals['_MATCHINGATTRIBUTES']._serialized_start=1615 + _globals['_MATCHINGATTRIBUTES']._serialized_end=2403 + _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_start=2406 + _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_end=2619 + _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_start=2621 + _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_end=2725 + _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_start=2727 + _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_end=2850 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi new file mode 100644 index 0000000000..56a7b03165 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi @@ -0,0 +1,166 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class MatchableResource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + TASK_RESOURCE: _ClassVar[MatchableResource] + CLUSTER_RESOURCE: _ClassVar[MatchableResource] + EXECUTION_QUEUE: _ClassVar[MatchableResource] + EXECUTION_CLUSTER_LABEL: _ClassVar[MatchableResource] + QUALITY_OF_SERVICE_SPECIFICATION: _ClassVar[MatchableResource] + PLUGIN_OVERRIDE: _ClassVar[MatchableResource] + WORKFLOW_EXECUTION_CONFIG: _ClassVar[MatchableResource] + CLUSTER_ASSIGNMENT: _ClassVar[MatchableResource] +TASK_RESOURCE: MatchableResource +CLUSTER_RESOURCE: MatchableResource +EXECUTION_QUEUE: MatchableResource +EXECUTION_CLUSTER_LABEL: MatchableResource +QUALITY_OF_SERVICE_SPECIFICATION: MatchableResource +PLUGIN_OVERRIDE: MatchableResource +WORKFLOW_EXECUTION_CONFIG: MatchableResource +CLUSTER_ASSIGNMENT: MatchableResource + +class TaskResourceSpec(_message.Message): + __slots__ = ["cpu", "gpu", "memory", "storage", "ephemeral_storage"] + CPU_FIELD_NUMBER: _ClassVar[int] + GPU_FIELD_NUMBER: _ClassVar[int] + MEMORY_FIELD_NUMBER: _ClassVar[int] + STORAGE_FIELD_NUMBER: _ClassVar[int] + EPHEMERAL_STORAGE_FIELD_NUMBER: _ClassVar[int] + cpu: str + gpu: str + memory: str + storage: str + ephemeral_storage: str + def __init__(self, cpu: _Optional[str] = ..., gpu: _Optional[str] = ..., memory: _Optional[str] = ..., storage: _Optional[str] = ..., ephemeral_storage: _Optional[str] = ...) -> None: ... + +class TaskResourceAttributes(_message.Message): + __slots__ = ["defaults", "limits"] + DEFAULTS_FIELD_NUMBER: _ClassVar[int] + LIMITS_FIELD_NUMBER: _ClassVar[int] + defaults: TaskResourceSpec + limits: TaskResourceSpec + def __init__(self, defaults: _Optional[_Union[TaskResourceSpec, _Mapping]] = ..., limits: _Optional[_Union[TaskResourceSpec, _Mapping]] = ...) -> None: ... + +class ClusterResourceAttributes(_message.Message): + __slots__ = ["attributes"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + def __init__(self, attributes: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class ExecutionQueueAttributes(_message.Message): + __slots__ = ["tags"] + TAGS_FIELD_NUMBER: _ClassVar[int] + tags: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, tags: _Optional[_Iterable[str]] = ...) -> None: ... + +class ExecutionClusterLabel(_message.Message): + __slots__ = ["value"] + VALUE_FIELD_NUMBER: _ClassVar[int] + value: str + def __init__(self, value: _Optional[str] = ...) -> None: ... + +class PluginOverride(_message.Message): + __slots__ = ["task_type", "plugin_id", "missing_plugin_behavior"] + class MissingPluginBehavior(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FAIL: _ClassVar[PluginOverride.MissingPluginBehavior] + USE_DEFAULT: _ClassVar[PluginOverride.MissingPluginBehavior] + FAIL: PluginOverride.MissingPluginBehavior + USE_DEFAULT: PluginOverride.MissingPluginBehavior + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + PLUGIN_ID_FIELD_NUMBER: _ClassVar[int] + MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER: _ClassVar[int] + task_type: str + plugin_id: _containers.RepeatedScalarFieldContainer[str] + missing_plugin_behavior: PluginOverride.MissingPluginBehavior + def __init__(self, task_type: _Optional[str] = ..., plugin_id: _Optional[_Iterable[str]] = ..., missing_plugin_behavior: _Optional[_Union[PluginOverride.MissingPluginBehavior, str]] = ...) -> None: ... + +class PluginOverrides(_message.Message): + __slots__ = ["overrides"] + OVERRIDES_FIELD_NUMBER: _ClassVar[int] + overrides: _containers.RepeatedCompositeFieldContainer[PluginOverride] + def __init__(self, overrides: _Optional[_Iterable[_Union[PluginOverride, _Mapping]]] = ...) -> None: ... + +class WorkflowExecutionConfig(_message.Message): + __slots__ = ["max_parallelism", "security_context", "raw_output_data_config", "labels", "annotations", "interruptible", "overwrite_cache", "envs"] + MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + ENVS_FIELD_NUMBER: _ClassVar[int] + max_parallelism: int + security_context: _security_pb2.SecurityContext + raw_output_data_config: _common_pb2.RawOutputDataConfig + labels: _common_pb2.Labels + annotations: _common_pb2.Annotations + interruptible: _wrappers_pb2.BoolValue + overwrite_cache: bool + envs: _common_pb2.Envs + def __init__(self, max_parallelism: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... + +class MatchingAttributes(_message.Message): + __slots__ = ["task_resource_attributes", "cluster_resource_attributes", "execution_queue_attributes", "execution_cluster_label", "quality_of_service", "plugin_overrides", "workflow_execution_config", "cluster_assignment"] + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + PLUGIN_OVERRIDES_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER: _ClassVar[int] + CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] + task_resource_attributes: TaskResourceAttributes + cluster_resource_attributes: ClusterResourceAttributes + execution_queue_attributes: ExecutionQueueAttributes + execution_cluster_label: ExecutionClusterLabel + quality_of_service: _execution_pb2.QualityOfService + plugin_overrides: PluginOverrides + workflow_execution_config: WorkflowExecutionConfig + cluster_assignment: _cluster_assignment_pb2.ClusterAssignment + def __init__(self, task_resource_attributes: _Optional[_Union[TaskResourceAttributes, _Mapping]] = ..., cluster_resource_attributes: _Optional[_Union[ClusterResourceAttributes, _Mapping]] = ..., execution_queue_attributes: _Optional[_Union[ExecutionQueueAttributes, _Mapping]] = ..., execution_cluster_label: _Optional[_Union[ExecutionClusterLabel, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., plugin_overrides: _Optional[_Union[PluginOverrides, _Mapping]] = ..., workflow_execution_config: _Optional[_Union[WorkflowExecutionConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ...) -> None: ... + +class MatchableAttributesConfiguration(_message.Message): + __slots__ = ["attributes", "domain", "project", "workflow", "launch_plan"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + PROJECT_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] + attributes: MatchingAttributes + domain: str + project: str + workflow: str + launch_plan: str + def __init__(self, attributes: _Optional[_Union[MatchingAttributes, _Mapping]] = ..., domain: _Optional[str] = ..., project: _Optional[str] = ..., workflow: _Optional[str] = ..., launch_plan: _Optional[str] = ...) -> None: ... + +class ListMatchableAttributesRequest(_message.Message): + __slots__ = ["resource_type"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + resource_type: MatchableResource + def __init__(self, resource_type: _Optional[_Union[MatchableResource, str]] = ...) -> None: ... + +class ListMatchableAttributesResponse(_message.Message): + __slots__ = ["configurations"] + CONFIGURATIONS_FIELD_NUMBER: _ClassVar[int] + configurations: _containers.RepeatedCompositeFieldContainer[MatchableAttributesConfiguration] + def __init__(self, configurations: _Optional[_Iterable[_Union[MatchableAttributesConfiguration, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py new file mode 100644 index 0000000000..0eb0b0297f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/node_execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/node_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"Q\n\x17NodeExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x99\x02\n\x18NodeExecutionListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12(\n\x10unique_parent_id\x18\x06 \x01(\tR\x0euniqueParentId\"\xea\x01\n\x1fNodeExecutionForTaskListRequest\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xe7\x01\n\rNodeExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.NodeExecutionClosureR\x07\x63losure\x12\x41\n\x08metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.NodeExecutionMetaDataR\x08metadata\"\x9f\x01\n\x15NodeExecutionMetaData\x12\x1f\n\x0bretry_group\x18\x01 \x01(\tR\nretryGroup\x12$\n\x0eis_parent_node\x18\x02 \x01(\x08R\x0cisParentNode\x12 \n\x0cspec_node_id\x18\x03 \x01(\tR\nspecNodeId\x12\x1d\n\nis_dynamic\x18\x04 \x01(\x08R\tisDynamic\"q\n\x11NodeExecutionList\x12\x46\n\x0fnode_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.NodeExecutionR\x0enodeExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xf6\x05\n\x14NodeExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\n \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.admin.WorkflowNodeMetadataH\x01R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\t \x01(\x0b\x32 .flyteidl.admin.TaskNodeMetadataH\x01R\x10taskNodeMetadata\x12\x19\n\x08\x64\x65\x63k_uri\x18\x0b \x01(\tR\x07\x64\x65\x63kUri\x12/\n\x14\x64ynamic_job_spec_uri\x18\x0c \x01(\tR\x11\x64ynamicJobSpecUriB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"d\n\x14WorkflowNodeMetadata\x12L\n\x0b\x65xecutionId\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc0\x01\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bNodeExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x96\x03\n\x1cNodeExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.admin.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\x12\x38\n\nflyte_urls\x18\x11 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrlsB\xb8\x01\n\x12\x63om.flyteidl.adminB\x12NodeExecutionProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.node_execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022NodeExecutionProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None + _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' + _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._options = None + _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' + _globals['_NODEEXECUTIONGETREQUEST']._serialized_start=301 + _globals['_NODEEXECUTIONGETREQUEST']._serialized_end=382 + _globals['_NODEEXECUTIONLISTREQUEST']._serialized_start=385 + _globals['_NODEEXECUTIONLISTREQUEST']._serialized_end=666 + _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_start=669 + _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_end=903 + _globals['_NODEEXECUTION']._serialized_start=906 + _globals['_NODEEXECUTION']._serialized_end=1137 + _globals['_NODEEXECUTIONMETADATA']._serialized_start=1140 + _globals['_NODEEXECUTIONMETADATA']._serialized_end=1299 + _globals['_NODEEXECUTIONLIST']._serialized_start=1301 + _globals['_NODEEXECUTIONLIST']._serialized_end=1414 + _globals['_NODEEXECUTIONCLOSURE']._serialized_start=1417 + _globals['_NODEEXECUTIONCLOSURE']._serialized_end=2175 + _globals['_WORKFLOWNODEMETADATA']._serialized_start=2177 + _globals['_WORKFLOWNODEMETADATA']._serialized_end=2277 + _globals['_TASKNODEMETADATA']._serialized_start=2280 + _globals['_TASKNODEMETADATA']._serialized_end=2472 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2475 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2681 + _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_start=2683 + _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_end=2768 + _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_start=2771 + _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_end=3177 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi new file mode 100644 index 0000000000..6bb94b11d8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi @@ -0,0 +1,158 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import catalog_pb2 as _catalog_pb2 +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class NodeExecutionGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class NodeExecutionListRequest(_message.Message): + __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by", "unique_parent_id"] + WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + UNIQUE_PARENT_ID_FIELD_NUMBER: _ClassVar[int] + workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + unique_parent_id: str + def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., unique_parent_id: _Optional[str] = ...) -> None: ... + +class NodeExecutionForTaskListRequest(_message.Message): + __slots__ = ["task_execution_id", "limit", "token", "filters", "sort_by"] + TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + task_execution_id: _identifier_pb2.TaskExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... + +class NodeExecution(_message.Message): + __slots__ = ["id", "input_uri", "closure", "metadata"] + ID_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + input_uri: str + closure: NodeExecutionClosure + metadata: NodeExecutionMetaData + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[NodeExecutionClosure, _Mapping]] = ..., metadata: _Optional[_Union[NodeExecutionMetaData, _Mapping]] = ...) -> None: ... + +class NodeExecutionMetaData(_message.Message): + __slots__ = ["retry_group", "is_parent_node", "spec_node_id", "is_dynamic"] + RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] + IS_PARENT_NODE_FIELD_NUMBER: _ClassVar[int] + SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] + IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] + retry_group: str + is_parent_node: bool + spec_node_id: str + is_dynamic: bool + def __init__(self, retry_group: _Optional[str] = ..., is_parent_node: bool = ..., spec_node_id: _Optional[str] = ..., is_dynamic: bool = ...) -> None: ... + +class NodeExecutionList(_message.Message): + __slots__ = ["node_executions", "token"] + NODE_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + node_executions: _containers.RepeatedCompositeFieldContainer[NodeExecution] + token: str + def __init__(self, node_executions: _Optional[_Iterable[_Union[NodeExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class NodeExecutionClosure(_message.Message): + __slots__ = ["output_uri", "error", "output_data", "phase", "started_at", "duration", "created_at", "updated_at", "workflow_node_metadata", "task_node_metadata", "deck_uri", "dynamic_job_spec_uri"] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + STARTED_AT_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + DECK_URI_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + phase: _execution_pb2.NodeExecution.Phase + started_at: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + workflow_node_metadata: WorkflowNodeMetadata + task_node_metadata: TaskNodeMetadata + deck_uri: str + dynamic_job_spec_uri: str + def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., deck_uri: _Optional[str] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... + +class WorkflowNodeMetadata(_message.Message): + __slots__ = ["executionId"] + EXECUTIONID_FIELD_NUMBER: _ClassVar[int] + executionId: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, executionId: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskNodeMetadata(_message.Message): + __slots__ = ["cache_status", "catalog_key", "checkpoint_uri"] + CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] + CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] + CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] + cache_status: _catalog_pb2.CatalogCacheStatus + catalog_key: _catalog_pb2.CatalogMetadata + checkpoint_uri: str + def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., checkpoint_uri: _Optional[str] = ...) -> None: ... + +class DynamicWorkflowNodeMetadata(_message.Message): + __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] + ID_FIELD_NUMBER: _ClassVar[int] + COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + compiled_workflow: _compiler_pb2.CompiledWorkflowClosure + dynamic_job_spec_uri: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... + +class NodeExecutionGetDataRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class NodeExecutionGetDataResponse(_message.Message): + __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "dynamic_workflow", "flyte_urls"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] + inputs: _common_pb2.UrlBlob + outputs: _common_pb2.UrlBlob + full_inputs: _literals_pb2.LiteralMap + full_outputs: _literals_pb2.LiteralMap + dynamic_workflow: DynamicWorkflowNodeMetadata + flyte_urls: _common_pb2.FlyteURLs + def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py new file mode 100644 index 0000000000..f6e0882877 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/notification.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/admin/notification.proto\x12\x0e\x66lyteidl.admin\"\x93\x01\n\x0c\x45mailMessage\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\x12!\n\x0csender_email\x18\x02 \x01(\tR\x0bsenderEmail\x12!\n\x0csubject_line\x18\x03 \x01(\tR\x0bsubjectLine\x12\x12\n\x04\x62ody\x18\x04 \x01(\tR\x04\x62odyB\xb7\x01\n\x12\x63om.flyteidl.adminB\x11NotificationProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.notification_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\021NotificationProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_EMAILMESSAGE']._serialized_start=54 + _globals['_EMAILMESSAGE']._serialized_end=201 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi new file mode 100644 index 0000000000..5a06a72f34 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi @@ -0,0 +1,18 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class EmailMessage(_message.Message): + __slots__ = ["recipients_email", "sender_email", "subject_line", "body"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + SENDER_EMAIL_FIELD_NUMBER: _ClassVar[int] + SUBJECT_LINE_FIELD_NUMBER: _ClassVar[int] + BODY_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + sender_email: str + subject_line: str + body: str + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ..., sender_email: _Optional[str] = ..., subject_line: _Optional[str] = ..., body: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py new file mode 100644 index 0000000000..942db24c33 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/project_attributes.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/project_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\x82\x01\n\x11ProjectAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12S\n\x13matching_attributes\x18\x02 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\"c\n\x1eProjectAttributesUpdateRequest\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"!\n\x1fProjectAttributesUpdateResponse\"\x7f\n\x1bProjectAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"a\n\x1cProjectAttributesGetResponse\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"\x82\x01\n\x1eProjectAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"!\n\x1fProjectAttributesDeleteResponseB\xbc\x01\n\x12\x63om.flyteidl.adminB\x16ProjectAttributesProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_attributes_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ProjectAttributesProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_PROJECTATTRIBUTES']._serialized_start=101 + _globals['_PROJECTATTRIBUTES']._serialized_end=231 + _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_start=233 + _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_end=332 + _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_start=334 + _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_end=367 + _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_start=369 + _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_end=496 + _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_start=498 + _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_end=595 + _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_start=598 + _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_end=728 + _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_start=730 + _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_end=763 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi new file mode 100644 index 0000000000..8ad0997ac2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi @@ -0,0 +1,50 @@ +from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ProjectAttributes(_message.Message): + __slots__ = ["project", "matching_attributes"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + project: str + matching_attributes: _matchable_resource_pb2.MatchingAttributes + def __init__(self, project: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ...) -> None: ... + +class ProjectAttributesUpdateRequest(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectAttributes + def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... + +class ProjectAttributesUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ProjectAttributesGetRequest(_message.Message): + __slots__ = ["project", "resource_type"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + project: str + resource_type: _matchable_resource_pb2.MatchableResource + def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... + +class ProjectAttributesGetResponse(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectAttributes + def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... + +class ProjectAttributesDeleteRequest(_message.Message): + __slots__ = ["project", "resource_type"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + project: str + resource_type: _matchable_resource_pb2.MatchableResource + def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... + +class ProjectAttributesDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py new file mode 100644 index 0000000000..bc545863c7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/project_domain_attributes.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/admin/project_domain_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xa0\x01\n\x17ProjectDomainAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12S\n\x13matching_attributes\x18\x03 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\"o\n$ProjectDomainAttributesUpdateRequest\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\'\n%ProjectDomainAttributesUpdateResponse\"\x9d\x01\n!ProjectDomainAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"m\n\"ProjectDomainAttributesGetResponse\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\xa0\x01\n$ProjectDomainAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"\'\n%ProjectDomainAttributesDeleteResponseB\xc2\x01\n\x12\x63om.flyteidl.adminB\x1cProjectDomainAttributesProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_domain_attributes_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\034ProjectDomainAttributesProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_PROJECTDOMAINATTRIBUTES']._serialized_start=108 + _globals['_PROJECTDOMAINATTRIBUTES']._serialized_end=268 + _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_start=270 + _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_end=381 + _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_start=383 + _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_end=422 + _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_start=425 + _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_end=582 + _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_start=584 + _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_end=693 + _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_start=696 + _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_end=856 + _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_start=858 + _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_end=897 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi new file mode 100644 index 0000000000..af8624ca21 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi @@ -0,0 +1,56 @@ +from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ProjectDomainAttributes(_message.Message): + __slots__ = ["project", "domain", "matching_attributes"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + matching_attributes: _matchable_resource_pb2.MatchingAttributes + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ...) -> None: ... + +class ProjectDomainAttributesUpdateRequest(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectDomainAttributes + def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... + +class ProjectDomainAttributesUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ProjectDomainAttributesGetRequest(_message.Message): + __slots__ = ["project", "domain", "resource_type"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + resource_type: _matchable_resource_pb2.MatchableResource + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... + +class ProjectDomainAttributesGetResponse(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectDomainAttributes + def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... + +class ProjectDomainAttributesDeleteRequest(_message.Message): + __slots__ = ["project", "domain", "resource_type"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + resource_type: _matchable_resource_pb2.MatchableResource + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... + +class ProjectDomainAttributesDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py new file mode 100644 index 0000000000..b936372510 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/project.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/project.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\",\n\x06\x44omain\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\xad\x02\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x30\n\x07\x64omains\x18\x03 \x03(\x0b\x32\x16.flyteidl.admin.DomainR\x07\x64omains\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12.\n\x06labels\x18\x05 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12:\n\x05state\x18\x06 \x01(\x0e\x32$.flyteidl.admin.Project.ProjectStateR\x05state\">\n\x0cProjectState\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x41RCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\"U\n\x08Projects\x12\x33\n\x08projects\x18\x01 \x03(\x0b\x32\x17.flyteidl.admin.ProjectR\x08projects\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x89\x01\n\x12ProjectListRequest\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x03 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x04 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"K\n\x16ProjectRegisterRequest\x12\x31\n\x07project\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.ProjectR\x07project\"\x19\n\x17ProjectRegisterResponse\"\x17\n\x15ProjectUpdateResponseB\xb2\x01\n\x12\x63om.flyteidl.adminB\x0cProjectProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014ProjectProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_DOMAIN']._serialized_start=77 + _globals['_DOMAIN']._serialized_end=121 + _globals['_PROJECT']._serialized_start=124 + _globals['_PROJECT']._serialized_end=425 + _globals['_PROJECT_PROJECTSTATE']._serialized_start=363 + _globals['_PROJECT_PROJECTSTATE']._serialized_end=425 + _globals['_PROJECTS']._serialized_start=427 + _globals['_PROJECTS']._serialized_end=512 + _globals['_PROJECTLISTREQUEST']._serialized_start=515 + _globals['_PROJECTLISTREQUEST']._serialized_end=652 + _globals['_PROJECTREGISTERREQUEST']._serialized_start=654 + _globals['_PROJECTREGISTERREQUEST']._serialized_end=729 + _globals['_PROJECTREGISTERRESPONSE']._serialized_start=731 + _globals['_PROJECTREGISTERRESPONSE']._serialized_end=756 + _globals['_PROJECTUPDATERESPONSE']._serialized_start=758 + _globals['_PROJECTUPDATERESPONSE']._serialized_end=781 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi new file mode 100644 index 0000000000..33b5106c81 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi @@ -0,0 +1,74 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Domain(_message.Message): + __slots__ = ["id", "name"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + id: str + name: str + def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... + +class Project(_message.Message): + __slots__ = ["id", "name", "domains", "description", "labels", "state"] + class ProjectState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ACTIVE: _ClassVar[Project.ProjectState] + ARCHIVED: _ClassVar[Project.ProjectState] + SYSTEM_GENERATED: _ClassVar[Project.ProjectState] + ACTIVE: Project.ProjectState + ARCHIVED: Project.ProjectState + SYSTEM_GENERATED: Project.ProjectState + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DOMAINS_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + id: str + name: str + domains: _containers.RepeatedCompositeFieldContainer[Domain] + description: str + labels: _common_pb2.Labels + state: Project.ProjectState + def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., domains: _Optional[_Iterable[_Union[Domain, _Mapping]]] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., state: _Optional[_Union[Project.ProjectState, str]] = ...) -> None: ... + +class Projects(_message.Message): + __slots__ = ["projects", "token"] + PROJECTS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + projects: _containers.RepeatedCompositeFieldContainer[Project] + token: str + def __init__(self, projects: _Optional[_Iterable[_Union[Project, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class ProjectListRequest(_message.Message): + __slots__ = ["limit", "token", "filters", "sort_by"] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... + +class ProjectRegisterRequest(_message.Message): + __slots__ = ["project"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + project: Project + def __init__(self, project: _Optional[_Union[Project, _Mapping]] = ...) -> None: ... + +class ProjectRegisterResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ProjectUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py new file mode 100644 index 0000000000..16d85b7926 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/schedule.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/admin/schedule.proto\x12\x0e\x66lyteidl.admin\"T\n\tFixedRate\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value\x12\x31\n\x04unit\x18\x02 \x01(\x0e\x32\x1d.flyteidl.admin.FixedRateUnitR\x04unit\"B\n\x0c\x43ronSchedule\x12\x1a\n\x08schedule\x18\x01 \x01(\tR\x08schedule\x12\x16\n\x06offset\x18\x02 \x01(\tR\x06offset\"\xfa\x01\n\x08Schedule\x12-\n\x0f\x63ron_expression\x18\x01 \x01(\tB\x02\x18\x01H\x00R\x0e\x63ronExpression\x12/\n\x04rate\x18\x02 \x01(\x0b\x32\x19.flyteidl.admin.FixedRateH\x00R\x04rate\x12\x43\n\rcron_schedule\x18\x04 \x01(\x0b\x32\x1c.flyteidl.admin.CronScheduleH\x00R\x0c\x63ronSchedule\x12\x33\n\x16kickoff_time_input_arg\x18\x03 \x01(\tR\x13kickoffTimeInputArgB\x14\n\x12ScheduleExpression*.\n\rFixedRateUnit\x12\n\n\x06MINUTE\x10\x00\x12\x08\n\x04HOUR\x10\x01\x12\x07\n\x03\x44\x41Y\x10\x02\x42\xb3\x01\n\x12\x63om.flyteidl.adminB\rScheduleProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.schedule_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rScheduleProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _SCHEDULE.fields_by_name['cron_expression']._options = None + _SCHEDULE.fields_by_name['cron_expression']._serialized_options = b'\030\001' + _globals['_FIXEDRATEUNIT']._serialized_start=456 + _globals['_FIXEDRATEUNIT']._serialized_end=502 + _globals['_FIXEDRATE']._serialized_start=49 + _globals['_FIXEDRATE']._serialized_end=133 + _globals['_CRONSCHEDULE']._serialized_start=135 + _globals['_CRONSCHEDULE']._serialized_end=201 + _globals['_SCHEDULE']._serialized_start=204 + _globals['_SCHEDULE']._serialized_end=454 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi new file mode 100644 index 0000000000..a9f1a2d133 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi @@ -0,0 +1,43 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class FixedRateUnit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MINUTE: _ClassVar[FixedRateUnit] + HOUR: _ClassVar[FixedRateUnit] + DAY: _ClassVar[FixedRateUnit] +MINUTE: FixedRateUnit +HOUR: FixedRateUnit +DAY: FixedRateUnit + +class FixedRate(_message.Message): + __slots__ = ["value", "unit"] + VALUE_FIELD_NUMBER: _ClassVar[int] + UNIT_FIELD_NUMBER: _ClassVar[int] + value: int + unit: FixedRateUnit + def __init__(self, value: _Optional[int] = ..., unit: _Optional[_Union[FixedRateUnit, str]] = ...) -> None: ... + +class CronSchedule(_message.Message): + __slots__ = ["schedule", "offset"] + SCHEDULE_FIELD_NUMBER: _ClassVar[int] + OFFSET_FIELD_NUMBER: _ClassVar[int] + schedule: str + offset: str + def __init__(self, schedule: _Optional[str] = ..., offset: _Optional[str] = ...) -> None: ... + +class Schedule(_message.Message): + __slots__ = ["cron_expression", "rate", "cron_schedule", "kickoff_time_input_arg"] + CRON_EXPRESSION_FIELD_NUMBER: _ClassVar[int] + RATE_FIELD_NUMBER: _ClassVar[int] + CRON_SCHEDULE_FIELD_NUMBER: _ClassVar[int] + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER: _ClassVar[int] + cron_expression: str + rate: FixedRate + cron_schedule: CronSchedule + kickoff_time_input_arg: str + def __init__(self, cron_expression: _Optional[str] = ..., rate: _Optional[_Union[FixedRate, _Mapping]] = ..., cron_schedule: _Optional[_Union[CronSchedule, _Mapping]] = ..., kickoff_time_input_arg: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py new file mode 100644 index 0000000000..3d2a2c066d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/signal.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/signal.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\"{\n\x18SignalGetOrCreateRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"\xe8\x01\n\x11SignalListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"T\n\nSignalList\x12\x30\n\x07signals\x18\x01 \x03(\x0b\x32\x16.flyteidl.admin.SignalR\x07signals\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"q\n\x10SignalSetRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"\x13\n\x11SignalSetResponse\"\x97\x01\n\x06Signal\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12,\n\x05value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05valueB\xb1\x01\n\x12\x63om.flyteidl.adminB\x0bSignalProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.signal_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013SignalProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_SIGNALGETORCREATEREQUEST']._serialized_start=165 + _globals['_SIGNALGETORCREATEREQUEST']._serialized_end=288 + _globals['_SIGNALLISTREQUEST']._serialized_start=291 + _globals['_SIGNALLISTREQUEST']._serialized_end=523 + _globals['_SIGNALLIST']._serialized_start=525 + _globals['_SIGNALLIST']._serialized_end=609 + _globals['_SIGNALSETREQUEST']._serialized_start=611 + _globals['_SIGNALSETREQUEST']._serialized_end=724 + _globals['_SIGNALSETRESPONSE']._serialized_start=726 + _globals['_SIGNALSETRESPONSE']._serialized_end=745 + _globals['_SIGNAL']._serialized_start=748 + _globals['_SIGNAL']._serialized_end=899 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi new file mode 100644 index 0000000000..8dfac31435 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi @@ -0,0 +1,62 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import types_pb2 as _types_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class SignalGetOrCreateRequest(_message.Message): + __slots__ = ["id", "type"] + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.SignalIdentifier + type: _types_pb2.LiteralType + def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... + +class SignalListRequest(_message.Message): + __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by"] + WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... + +class SignalList(_message.Message): + __slots__ = ["signals", "token"] + SIGNALS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + signals: _containers.RepeatedCompositeFieldContainer[Signal] + token: str + def __init__(self, signals: _Optional[_Iterable[_Union[Signal, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class SignalSetRequest(_message.Message): + __slots__ = ["id", "value"] + ID_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.SignalIdentifier + value: _literals_pb2.Literal + def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... + +class SignalSetResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Signal(_message.Message): + __slots__ = ["id", "type", "value"] + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.SignalIdentifier + type: _types_pb2.LiteralType + value: _literals_pb2.Literal + def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py new file mode 100644 index 0000000000..17a1fc991a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/task_execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/task_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"Q\n\x17TaskExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xe3\x01\n\x18TaskExecutionListRequest\x12R\n\x11node_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xc1\x01\n\rTaskExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.TaskExecutionClosureR\x07\x63losure\x12\x1b\n\tis_parent\x18\x04 \x01(\x08R\x08isParent\"q\n\x11TaskExecutionList\x12\x46\n\x0ftask_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.TaskExecutionR\x0etaskExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x9c\x06\n\x14TaskExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\x0c \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12*\n\x04logs\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x38\n\x0b\x63ustom_info\x18\t \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12\x16\n\x06reason\x18\n \x01(\tR\x06reason\x12\x1b\n\ttask_type\x18\x0b \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x11 \x01(\x05R\x0c\x65ventVersion\x12\x30\n\x07reasons\x18\x12 \x03(\x0b\x32\x16.flyteidl.admin.ReasonR\x07reasonsB\x0f\n\routput_result\"_\n\x06Reason\x12;\n\x0boccurred_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\"U\n\x1bTaskExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xbe\x02\n\x1cTaskExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12\x38\n\nflyte_urls\x18\x05 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrlsB\xb8\x01\n\x12\x63om.flyteidl.adminB\x12TaskExecutionProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022TaskExecutionProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None + _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' + _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._options = None + _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' + _globals['_TASKEXECUTIONGETREQUEST']._serialized_start=300 + _globals['_TASKEXECUTIONGETREQUEST']._serialized_end=381 + _globals['_TASKEXECUTIONLISTREQUEST']._serialized_start=384 + _globals['_TASKEXECUTIONLISTREQUEST']._serialized_end=611 + _globals['_TASKEXECUTION']._serialized_start=614 + _globals['_TASKEXECUTION']._serialized_end=807 + _globals['_TASKEXECUTIONLIST']._serialized_start=809 + _globals['_TASKEXECUTIONLIST']._serialized_end=922 + _globals['_TASKEXECUTIONCLOSURE']._serialized_start=925 + _globals['_TASKEXECUTIONCLOSURE']._serialized_end=1721 + _globals['_REASON']._serialized_start=1723 + _globals['_REASON']._serialized_end=1818 + _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_start=1820 + _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_end=1905 + _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_start=1908 + _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_end=2226 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi new file mode 100644 index 0000000000..7f675cc7db --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi @@ -0,0 +1,116 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.event import event_pb2 as _event_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class TaskExecutionGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskExecutionListRequest(_message.Message): + __slots__ = ["node_execution_id", "limit", "token", "filters", "sort_by"] + NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + node_execution_id: _identifier_pb2.NodeExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... + +class TaskExecution(_message.Message): + __slots__ = ["id", "input_uri", "closure", "is_parent"] + ID_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + IS_PARENT_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + input_uri: str + closure: TaskExecutionClosure + is_parent: bool + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[TaskExecutionClosure, _Mapping]] = ..., is_parent: bool = ...) -> None: ... + +class TaskExecutionList(_message.Message): + __slots__ = ["task_executions", "token"] + TASK_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + task_executions: _containers.RepeatedCompositeFieldContainer[TaskExecution] + token: str + def __init__(self, task_executions: _Optional[_Iterable[_Union[TaskExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class TaskExecutionClosure(_message.Message): + __slots__ = ["output_uri", "error", "output_data", "phase", "logs", "started_at", "duration", "created_at", "updated_at", "custom_info", "reason", "task_type", "metadata", "event_version", "reasons"] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + LOGS_FIELD_NUMBER: _ClassVar[int] + STARTED_AT_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] + REASON_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] + REASONS_FIELD_NUMBER: _ClassVar[int] + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + phase: _execution_pb2.TaskExecution.Phase + logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] + started_at: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + custom_info: _struct_pb2.Struct + reason: str + task_type: str + metadata: _event_pb2.TaskExecutionMetadata + event_version: int + reasons: _containers.RepeatedCompositeFieldContainer[Reason] + def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., reason: _Optional[str] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[_event_pb2.TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reasons: _Optional[_Iterable[_Union[Reason, _Mapping]]] = ...) -> None: ... + +class Reason(_message.Message): + __slots__ = ["occurred_at", "message"] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + occurred_at: _timestamp_pb2.Timestamp + message: str + def __init__(self, occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ...) -> None: ... + +class TaskExecutionGetDataRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskExecutionGetDataResponse(_message.Message): + __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "flyte_urls"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] + inputs: _common_pb2.UrlBlob + outputs: _common_pb2.UrlBlob + full_inputs: _literals_pb2.LiteralMap + full_outputs: _literals_pb2.LiteralMap + flyte_urls: _common_pb2.FlyteURLs + def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py new file mode 100644 index 0000000000..c30868f000 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/task.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/admin/task.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"l\n\x11TaskCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12,\n\x04spec\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.TaskSpecR\x04spec\"\x14\n\x12TaskCreateResponse\"\x95\x01\n\x04Task\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1b.flyteidl.admin.TaskClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"L\n\x08TaskList\x12*\n\x05tasks\x18\x01 \x03(\x0b\x32\x14.flyteidl.admin.TaskR\x05tasks\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x88\x01\n\x08TaskSpec\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12\x43\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\x8a\x01\n\x0bTaskClosure\x12@\n\rcompiled_task\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x0c\x63ompiledTask\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAtB\xaf\x01\n\x12\x63om.flyteidl.adminB\tTaskProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\tTaskProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_TASKCREATEREQUEST']._serialized_start=208 + _globals['_TASKCREATEREQUEST']._serialized_end=316 + _globals['_TASKCREATERESPONSE']._serialized_start=318 + _globals['_TASKCREATERESPONSE']._serialized_end=338 + _globals['_TASK']._serialized_start=341 + _globals['_TASK']._serialized_end=490 + _globals['_TASKLIST']._serialized_start=492 + _globals['_TASKLIST']._serialized_end=568 + _globals['_TASKSPEC']._serialized_start=571 + _globals['_TASKSPEC']._serialized_end=707 + _globals['_TASKCLOSURE']._serialized_start=710 + _globals['_TASKCLOSURE']._serialized_end=848 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi new file mode 100644 index 0000000000..2e6370fba5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi @@ -0,0 +1,57 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class TaskCreateRequest(_message.Message): + __slots__ = ["id", "spec"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: TaskSpec + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[TaskSpec, _Mapping]] = ...) -> None: ... + +class TaskCreateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Task(_message.Message): + __slots__ = ["id", "closure", "short_description"] + ID_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + closure: TaskClosure + short_description: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[TaskClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... + +class TaskList(_message.Message): + __slots__ = ["tasks", "token"] + TASKS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + tasks: _containers.RepeatedCompositeFieldContainer[Task] + token: str + def __init__(self, tasks: _Optional[_Iterable[_Union[Task, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class TaskSpec(_message.Message): + __slots__ = ["template", "description"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + template: _tasks_pb2.TaskTemplate + description: _description_entity_pb2.DescriptionEntity + def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... + +class TaskClosure(_message.Message): + __slots__ = ["compiled_task", "created_at"] + COMPILED_TASK_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + compiled_task: _compiler_pb2.CompiledTask + created_at: _timestamp_pb2.Timestamp + def __init__(self, compiled_task: _Optional[_Union[_compiler_pb2.CompiledTask, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py new file mode 100644 index 0000000000..e04466e67a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/version.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/version.proto\x12\x0e\x66lyteidl.admin\"a\n\x12GetVersionResponse\x12K\n\x15\x63ontrol_plane_version\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.VersionR\x13\x63ontrolPlaneVersion\"W\n\x07Version\x12\x14\n\x05\x42uild\x18\x01 \x01(\tR\x05\x42uild\x12\x18\n\x07Version\x18\x02 \x01(\tR\x07Version\x12\x1c\n\tBuildTime\x18\x03 \x01(\tR\tBuildTime\"\x13\n\x11GetVersionRequestB\xb2\x01\n\x12\x63om.flyteidl.adminB\x0cVersionProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.version_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014VersionProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_GETVERSIONRESPONSE']._serialized_start=48 + _globals['_GETVERSIONRESPONSE']._serialized_end=145 + _globals['_VERSION']._serialized_start=147 + _globals['_VERSION']._serialized_end=234 + _globals['_GETVERSIONREQUEST']._serialized_start=236 + _globals['_GETVERSIONREQUEST']._serialized_end=255 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi new file mode 100644 index 0000000000..a83d0baa8f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi @@ -0,0 +1,25 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class GetVersionResponse(_message.Message): + __slots__ = ["control_plane_version"] + CONTROL_PLANE_VERSION_FIELD_NUMBER: _ClassVar[int] + control_plane_version: Version + def __init__(self, control_plane_version: _Optional[_Union[Version, _Mapping]] = ...) -> None: ... + +class Version(_message.Message): + __slots__ = ["Build", "Version", "BuildTime"] + BUILD_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + BUILDTIME_FIELD_NUMBER: _ClassVar[int] + Build: str + Version: str + BuildTime: str + def __init__(self, Build: _Optional[str] = ..., Version: _Optional[str] = ..., BuildTime: _Optional[str] = ...) -> None: ... + +class GetVersionRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py new file mode 100644 index 0000000000..caaec98ecf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/workflow_attributes.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(flyteidl/admin/workflow_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xb7\x01\n\x12WorkflowAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12S\n\x13matching_attributes\x18\x04 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\"e\n\x1fWorkflowAttributesUpdateRequest\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\"\n WorkflowAttributesUpdateResponse\"\xb4\x01\n\x1cWorkflowAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"c\n\x1dWorkflowAttributesGetResponse\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\xb7\x01\n\x1fWorkflowAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"\"\n WorkflowAttributesDeleteResponseB\xbd\x01\n\x12\x63om.flyteidl.adminB\x17WorkflowAttributesProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_attributes_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\027WorkflowAttributesProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_WORKFLOWATTRIBUTES']._serialized_start=102 + _globals['_WORKFLOWATTRIBUTES']._serialized_end=285 + _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_start=287 + _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_end=388 + _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_start=390 + _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_end=424 + _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_start=427 + _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_end=607 + _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_start=609 + _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_end=708 + _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_start=711 + _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_end=894 + _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_start=896 + _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_end=930 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi new file mode 100644 index 0000000000..67b040a36d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi @@ -0,0 +1,62 @@ +from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowAttributes(_message.Message): + __slots__ = ["project", "domain", "workflow", "matching_attributes"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + workflow: str + matching_attributes: _matchable_resource_pb2.MatchingAttributes + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ...) -> None: ... + +class WorkflowAttributesUpdateRequest(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: WorkflowAttributes + def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... + +class WorkflowAttributesUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class WorkflowAttributesGetRequest(_message.Message): + __slots__ = ["project", "domain", "workflow", "resource_type"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + workflow: str + resource_type: _matchable_resource_pb2.MatchableResource + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... + +class WorkflowAttributesGetResponse(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: WorkflowAttributes + def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... + +class WorkflowAttributesDeleteRequest(_message.Message): + __slots__ = ["project", "domain", "workflow", "resource_type"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + workflow: str + resource_type: _matchable_resource_pb2.MatchableResource + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... + +class WorkflowAttributesDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py new file mode 100644 index 0000000000..6912efc7b4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/workflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/admin/workflow.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x15WorkflowCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x30\n\x04spec\x18\x02 \x01(\x0b\x32\x1c.flyteidl.admin.WorkflowSpecR\x04spec\"\x18\n\x16WorkflowCreateResponse\"\x9d\x01\n\x08Workflow\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x39\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1f.flyteidl.admin.WorkflowClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"\\\n\x0cWorkflowList\x12\x36\n\tworkflows\x18\x01 \x03(\x0b\x32\x18.flyteidl.admin.WorkflowR\tworkflows\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xd6\x01\n\x0cWorkflowSpec\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubWorkflows\x12\x43\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\xa1\x01\n\x0fWorkflowClosure\x12S\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"R\n%WorkflowErrorExistsDifferentStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"R\n%WorkflowErrorExistsIdenticalStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\x95\x02\n\x1b\x43reateWorkflowFailureReason\x12u\n\x1a\x65xists_different_structure\x18\x01 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsDifferentStructureH\x00R\x18\x65xistsDifferentStructure\x12u\n\x1a\x65xists_identical_structure\x18\x02 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsIdenticalStructureH\x00R\x18\x65xistsIdenticalStructureB\x08\n\x06reasonB\xb3\x01\n\x12\x63om.flyteidl.adminB\rWorkflowProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rWorkflowProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_WORKFLOWCREATEREQUEST']._serialized_start=215 + _globals['_WORKFLOWCREATEREQUEST']._serialized_end=331 + _globals['_WORKFLOWCREATERESPONSE']._serialized_start=333 + _globals['_WORKFLOWCREATERESPONSE']._serialized_end=357 + _globals['_WORKFLOW']._serialized_start=360 + _globals['_WORKFLOW']._serialized_end=517 + _globals['_WORKFLOWLIST']._serialized_start=519 + _globals['_WORKFLOWLIST']._serialized_end=611 + _globals['_WORKFLOWSPEC']._serialized_start=614 + _globals['_WORKFLOWSPEC']._serialized_end=828 + _globals['_WORKFLOWCLOSURE']._serialized_start=831 + _globals['_WORKFLOWCLOSURE']._serialized_end=992 + _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_start=994 + _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_end=1076 + _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_start=1078 + _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_end=1160 + _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_start=1163 + _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_end=1440 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi new file mode 100644 index 0000000000..294d595855 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi @@ -0,0 +1,79 @@ +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowCreateRequest(_message.Message): + __slots__ = ["id", "spec"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: WorkflowSpec + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[WorkflowSpec, _Mapping]] = ...) -> None: ... + +class WorkflowCreateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Workflow(_message.Message): + __slots__ = ["id", "closure", "short_description"] + ID_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + closure: WorkflowClosure + short_description: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[WorkflowClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... + +class WorkflowList(_message.Message): + __slots__ = ["workflows", "token"] + WORKFLOWS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + workflows: _containers.RepeatedCompositeFieldContainer[Workflow] + token: str + def __init__(self, workflows: _Optional[_Iterable[_Union[Workflow, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class WorkflowSpec(_message.Message): + __slots__ = ["template", "sub_workflows", "description"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + template: _workflow_pb2.WorkflowTemplate + sub_workflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] + description: _description_entity_pb2.DescriptionEntity + def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... + +class WorkflowClosure(_message.Message): + __slots__ = ["compiled_workflow", "created_at"] + COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + compiled_workflow: _compiler_pb2.CompiledWorkflowClosure + created_at: _timestamp_pb2.Timestamp + def __init__(self, compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class WorkflowErrorExistsDifferentStructure(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class WorkflowErrorExistsIdenticalStructure(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class CreateWorkflowFailureReason(_message.Message): + __slots__ = ["exists_different_structure", "exists_identical_structure"] + EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER: _ClassVar[int] + EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER: _ClassVar[int] + exists_different_structure: WorkflowErrorExistsDifferentStructure + exists_identical_structure: WorkflowErrorExistsIdenticalStructure + def __init__(self, exists_different_structure: _Optional[_Union[WorkflowErrorExistsDifferentStructure, _Mapping]] = ..., exists_identical_structure: _Optional[_Union[WorkflowErrorExistsIdenticalStructure, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/__init__.py b/flyteidl/gen/pb_python/flyteidl/core/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py new file mode 100644 index 0000000000..ff4431f193 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/catalog.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/catalog.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\"I\n\x12\x43\x61talogArtifactTag\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\x83\x02\n\x0f\x43\x61talogMetadata\x12\x38\n\ndataset_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\tdatasetId\x12\x44\n\x0c\x61rtifact_tag\x18\x02 \x01(\x0b\x32!.flyteidl.core.CatalogArtifactTagR\x0b\x61rtifactTag\x12\\\n\x15source_task_execution\x18\x03 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x13sourceTaskExecutionB\x12\n\x10source_execution\"\x9e\x01\n\x12\x43\x61talogReservation\"\x87\x01\n\x06Status\x12\x18\n\x14RESERVATION_DISABLED\x10\x00\x12\x18\n\x14RESERVATION_ACQUIRED\x10\x01\x12\x16\n\x12RESERVATION_EXISTS\x10\x02\x12\x18\n\x14RESERVATION_RELEASED\x10\x03\x12\x17\n\x13RESERVATION_FAILURE\x10\x04*\xa0\x01\n\x12\x43\x61talogCacheStatus\x12\x12\n\x0e\x43\x41\x43HE_DISABLED\x10\x00\x12\x0e\n\nCACHE_MISS\x10\x01\x12\r\n\tCACHE_HIT\x10\x02\x12\x13\n\x0f\x43\x41\x43HE_POPULATED\x10\x03\x12\x18\n\x14\x43\x41\x43HE_LOOKUP_FAILURE\x10\x04\x12\x15\n\x11\x43\x41\x43HE_PUT_FAILURE\x10\x05\x12\x11\n\rCACHE_SKIPPED\x10\x06\x42\xac\x01\n\x11\x63om.flyteidl.coreB\x0c\x43\x61talogProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.catalog_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014CatalogProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_CATALOGCACHESTATUS']._serialized_start=577 + _globals['_CATALOGCACHESTATUS']._serialized_end=737 + _globals['_CATALOGARTIFACTTAG']._serialized_start=78 + _globals['_CATALOGARTIFACTTAG']._serialized_end=151 + _globals['_CATALOGMETADATA']._serialized_start=154 + _globals['_CATALOGMETADATA']._serialized_end=413 + _globals['_CATALOGRESERVATION']._serialized_start=416 + _globals['_CATALOGRESERVATION']._serialized_end=574 + _globals['_CATALOGRESERVATION_STATUS']._serialized_start=439 + _globals['_CATALOGRESERVATION_STATUS']._serialized_end=574 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi new file mode 100644 index 0000000000..90acf7d24b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi @@ -0,0 +1,58 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class CatalogCacheStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CACHE_DISABLED: _ClassVar[CatalogCacheStatus] + CACHE_MISS: _ClassVar[CatalogCacheStatus] + CACHE_HIT: _ClassVar[CatalogCacheStatus] + CACHE_POPULATED: _ClassVar[CatalogCacheStatus] + CACHE_LOOKUP_FAILURE: _ClassVar[CatalogCacheStatus] + CACHE_PUT_FAILURE: _ClassVar[CatalogCacheStatus] + CACHE_SKIPPED: _ClassVar[CatalogCacheStatus] +CACHE_DISABLED: CatalogCacheStatus +CACHE_MISS: CatalogCacheStatus +CACHE_HIT: CatalogCacheStatus +CACHE_POPULATED: CatalogCacheStatus +CACHE_LOOKUP_FAILURE: CatalogCacheStatus +CACHE_PUT_FAILURE: CatalogCacheStatus +CACHE_SKIPPED: CatalogCacheStatus + +class CatalogArtifactTag(_message.Message): + __slots__ = ["artifact_id", "name"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + artifact_id: str + name: str + def __init__(self, artifact_id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... + +class CatalogMetadata(_message.Message): + __slots__ = ["dataset_id", "artifact_tag", "source_task_execution"] + DATASET_ID_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] + SOURCE_TASK_EXECUTION_FIELD_NUMBER: _ClassVar[int] + dataset_id: _identifier_pb2.Identifier + artifact_tag: CatalogArtifactTag + source_task_execution: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, dataset_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_tag: _Optional[_Union[CatalogArtifactTag, _Mapping]] = ..., source_task_execution: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class CatalogReservation(_message.Message): + __slots__ = [] + class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RESERVATION_DISABLED: _ClassVar[CatalogReservation.Status] + RESERVATION_ACQUIRED: _ClassVar[CatalogReservation.Status] + RESERVATION_EXISTS: _ClassVar[CatalogReservation.Status] + RESERVATION_RELEASED: _ClassVar[CatalogReservation.Status] + RESERVATION_FAILURE: _ClassVar[CatalogReservation.Status] + RESERVATION_DISABLED: CatalogReservation.Status + RESERVATION_ACQUIRED: CatalogReservation.Status + RESERVATION_EXISTS: CatalogReservation.Status + RESERVATION_RELEASED: CatalogReservation.Status + RESERVATION_FAILURE: CatalogReservation.Status + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py new file mode 100644 index 0000000000..726c5d0db6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/compiler.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/compiler.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x87\x03\n\rConnectionSet\x12L\n\ndownstream\x18\x07 \x03(\x0b\x32,.flyteidl.core.ConnectionSet.DownstreamEntryR\ndownstream\x12\x46\n\x08upstream\x18\x08 \x03(\x0b\x32*.flyteidl.core.ConnectionSet.UpstreamEntryR\x08upstream\x1a\x1a\n\x06IdList\x12\x10\n\x03ids\x18\x01 \x03(\tR\x03ids\x1a\x62\n\x0f\x44ownstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\x1a`\n\rUpstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\"\x8f\x01\n\x10\x43ompiledWorkflow\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12>\n\x0b\x63onnections\x18\x02 \x01(\x0b\x32\x1c.flyteidl.core.ConnectionSetR\x0b\x63onnections\"G\n\x0c\x43ompiledTask\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\"\xcd\x01\n\x17\x43ompiledWorkflowClosure\x12\x39\n\x07primary\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x07primary\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x0csubWorkflows\x12\x31\n\x05tasks\x18\x03 \x03(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x05tasksB\xad\x01\n\x11\x63om.flyteidl.coreB\rCompilerProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.compiler_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rCompilerProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _CONNECTIONSET_DOWNSTREAMENTRY._options = None + _CONNECTIONSET_DOWNSTREAMENTRY._serialized_options = b'8\001' + _CONNECTIONSET_UPSTREAMENTRY._options = None + _CONNECTIONSET_UPSTREAMENTRY._serialized_options = b'8\001' + _globals['_CONNECTIONSET']._serialized_start=105 + _globals['_CONNECTIONSET']._serialized_end=496 + _globals['_CONNECTIONSET_IDLIST']._serialized_start=272 + _globals['_CONNECTIONSET_IDLIST']._serialized_end=298 + _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_start=300 + _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_end=398 + _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_start=400 + _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_end=496 + _globals['_COMPILEDWORKFLOW']._serialized_start=499 + _globals['_COMPILEDWORKFLOW']._serialized_end=642 + _globals['_COMPILEDTASK']._serialized_start=644 + _globals['_COMPILEDTASK']._serialized_end=715 + _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_start=718 + _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_end=923 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi new file mode 100644 index 0000000000..509e8f4d58 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi @@ -0,0 +1,59 @@ +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ConnectionSet(_message.Message): + __slots__ = ["downstream", "upstream"] + class IdList(_message.Message): + __slots__ = ["ids"] + IDS_FIELD_NUMBER: _ClassVar[int] + ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ... + class DownstreamEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: ConnectionSet.IdList + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... + class UpstreamEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: ConnectionSet.IdList + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... + DOWNSTREAM_FIELD_NUMBER: _ClassVar[int] + UPSTREAM_FIELD_NUMBER: _ClassVar[int] + downstream: _containers.MessageMap[str, ConnectionSet.IdList] + upstream: _containers.MessageMap[str, ConnectionSet.IdList] + def __init__(self, downstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ..., upstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ...) -> None: ... + +class CompiledWorkflow(_message.Message): + __slots__ = ["template", "connections"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + CONNECTIONS_FIELD_NUMBER: _ClassVar[int] + template: _workflow_pb2.WorkflowTemplate + connections: ConnectionSet + def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., connections: _Optional[_Union[ConnectionSet, _Mapping]] = ...) -> None: ... + +class CompiledTask(_message.Message): + __slots__ = ["template"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + template: _tasks_pb2.TaskTemplate + def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ...) -> None: ... + +class CompiledWorkflowClosure(_message.Message): + __slots__ = ["primary", "sub_workflows", "tasks"] + PRIMARY_FIELD_NUMBER: _ClassVar[int] + SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] + TASKS_FIELD_NUMBER: _ClassVar[int] + primary: CompiledWorkflow + sub_workflows: _containers.RepeatedCompositeFieldContainer[CompiledWorkflow] + tasks: _containers.RepeatedCompositeFieldContainer[CompiledTask] + def __init__(self, primary: _Optional[_Union[CompiledWorkflow, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[CompiledWorkflow, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[CompiledTask, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py new file mode 100644 index 0000000000..71bdaec35d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/condition.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/condition.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/literals.proto\"\x8f\x02\n\x14\x43omparisonExpression\x12H\n\x08operator\x18\x01 \x01(\x0e\x32,.flyteidl.core.ComparisonExpression.OperatorR\x08operator\x12\x35\n\nleft_value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.OperandR\tleftValue\x12\x37\n\x0bright_value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.OperandR\nrightValue\"=\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03NEQ\x10\x01\x12\x06\n\x02GT\x10\x02\x12\x07\n\x03GTE\x10\x03\x12\x06\n\x02LT\x10\x04\x12\x07\n\x03LTE\x10\x05\"\x93\x01\n\x07Operand\x12<\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveB\x02\x18\x01H\x00R\tprimitive\x12\x12\n\x03var\x18\x02 \x01(\tH\x00R\x03var\x12/\n\x06scalar\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalarB\x05\n\x03val\"\xac\x01\n\x11\x42ooleanExpression\x12H\n\x0b\x63onjunction\x18\x01 \x01(\x0b\x32$.flyteidl.core.ConjunctionExpressionH\x00R\x0b\x63onjunction\x12\x45\n\ncomparison\x18\x02 \x01(\x0b\x32#.flyteidl.core.ComparisonExpressionH\x00R\ncomparisonB\x06\n\x04\x65xpr\"\xa5\x02\n\x15\x43onjunctionExpression\x12P\n\x08operator\x18\x01 \x01(\x0e\x32\x34.flyteidl.core.ConjunctionExpression.LogicalOperatorR\x08operator\x12I\n\x0fleft_expression\x18\x02 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0eleftExpression\x12K\n\x10right_expression\x18\x03 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0frightExpression\"\"\n\x0fLogicalOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x42\xae\x01\n\x11\x63om.flyteidl.coreB\x0e\x43onditionProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.condition_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ConditionProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _OPERAND.fields_by_name['primitive']._options = None + _OPERAND.fields_by_name['primitive']._serialized_options = b'\030\001' + _globals['_COMPARISONEXPRESSION']._serialized_start=79 + _globals['_COMPARISONEXPRESSION']._serialized_end=350 + _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_start=289 + _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_end=350 + _globals['_OPERAND']._serialized_start=353 + _globals['_OPERAND']._serialized_end=500 + _globals['_BOOLEANEXPRESSION']._serialized_start=503 + _globals['_BOOLEANEXPRESSION']._serialized_end=675 + _globals['_CONJUNCTIONEXPRESSION']._serialized_start=678 + _globals['_CONJUNCTIONEXPRESSION']._serialized_end=971 + _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_start=937 + _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_end=971 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi new file mode 100644 index 0000000000..4f4de63ad7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi @@ -0,0 +1,65 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ComparisonExpression(_message.Message): + __slots__ = ["operator", "left_value", "right_value"] + class Operator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + EQ: _ClassVar[ComparisonExpression.Operator] + NEQ: _ClassVar[ComparisonExpression.Operator] + GT: _ClassVar[ComparisonExpression.Operator] + GTE: _ClassVar[ComparisonExpression.Operator] + LT: _ClassVar[ComparisonExpression.Operator] + LTE: _ClassVar[ComparisonExpression.Operator] + EQ: ComparisonExpression.Operator + NEQ: ComparisonExpression.Operator + GT: ComparisonExpression.Operator + GTE: ComparisonExpression.Operator + LT: ComparisonExpression.Operator + LTE: ComparisonExpression.Operator + OPERATOR_FIELD_NUMBER: _ClassVar[int] + LEFT_VALUE_FIELD_NUMBER: _ClassVar[int] + RIGHT_VALUE_FIELD_NUMBER: _ClassVar[int] + operator: ComparisonExpression.Operator + left_value: Operand + right_value: Operand + def __init__(self, operator: _Optional[_Union[ComparisonExpression.Operator, str]] = ..., left_value: _Optional[_Union[Operand, _Mapping]] = ..., right_value: _Optional[_Union[Operand, _Mapping]] = ...) -> None: ... + +class Operand(_message.Message): + __slots__ = ["primitive", "var", "scalar"] + PRIMITIVE_FIELD_NUMBER: _ClassVar[int] + VAR_FIELD_NUMBER: _ClassVar[int] + SCALAR_FIELD_NUMBER: _ClassVar[int] + primitive: _literals_pb2.Primitive + var: str + scalar: _literals_pb2.Scalar + def __init__(self, primitive: _Optional[_Union[_literals_pb2.Primitive, _Mapping]] = ..., var: _Optional[str] = ..., scalar: _Optional[_Union[_literals_pb2.Scalar, _Mapping]] = ...) -> None: ... + +class BooleanExpression(_message.Message): + __slots__ = ["conjunction", "comparison"] + CONJUNCTION_FIELD_NUMBER: _ClassVar[int] + COMPARISON_FIELD_NUMBER: _ClassVar[int] + conjunction: ConjunctionExpression + comparison: ComparisonExpression + def __init__(self, conjunction: _Optional[_Union[ConjunctionExpression, _Mapping]] = ..., comparison: _Optional[_Union[ComparisonExpression, _Mapping]] = ...) -> None: ... + +class ConjunctionExpression(_message.Message): + __slots__ = ["operator", "left_expression", "right_expression"] + class LogicalOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + AND: _ClassVar[ConjunctionExpression.LogicalOperator] + OR: _ClassVar[ConjunctionExpression.LogicalOperator] + AND: ConjunctionExpression.LogicalOperator + OR: ConjunctionExpression.LogicalOperator + OPERATOR_FIELD_NUMBER: _ClassVar[int] + LEFT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] + RIGHT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] + operator: ConjunctionExpression.LogicalOperator + left_expression: BooleanExpression + right_expression: BooleanExpression + def __init__(self, operator: _Optional[_Union[ConjunctionExpression.LogicalOperator, str]] = ..., left_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ..., right_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py new file mode 100644 index 0000000000..e8aadc94ac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/dynamic_job.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/core/dynamic_job.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x8a\x02\n\x0e\x44ynamicJobSpec\x12)\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12#\n\rmin_successes\x18\x02 \x01(\x03R\x0cminSuccesses\x12\x30\n\x07outputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x31\n\x05tasks\x18\x04 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasks\x12\x43\n\x0csubworkflows\x18\x05 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubworkflowsB\xaf\x01\n\x11\x63om.flyteidl.coreB\x0f\x44ynamicJobProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.dynamic_job_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017DynamicJobProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_DYNAMICJOBSPEC']._serialized_start=138 + _globals['_DYNAMICJOBSPEC']._serialized_end=404 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi new file mode 100644 index 0000000000..20ca83f300 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi @@ -0,0 +1,23 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DynamicJobSpec(_message.Message): + __slots__ = ["nodes", "min_successes", "outputs", "tasks", "subworkflows"] + NODES_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + TASKS_FIELD_NUMBER: _ClassVar[int] + SUBWORKFLOWS_FIELD_NUMBER: _ClassVar[int] + nodes: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.Node] + min_successes: int + outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] + tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] + subworkflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] + def __init__(self, nodes: _Optional[_Iterable[_Union[_workflow_pb2.Node, _Mapping]]] = ..., min_successes: _Optional[int] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ..., subworkflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py new file mode 100644 index 0000000000..7e1e65a83b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/errors.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/core/errors.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/execution.proto\"\xe5\x01\n\x0e\x43ontainerError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32\".flyteidl.core.ContainerError.KindR\x04kind\x12?\n\x06origin\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x06origin\",\n\x04Kind\x12\x13\n\x0fNON_RECOVERABLE\x10\x00\x12\x0f\n\x0bRECOVERABLE\x10\x01\"D\n\rErrorDocument\x12\x33\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.ContainerErrorR\x05\x65rrorB\xab\x01\n\x11\x63om.flyteidl.coreB\x0b\x45rrorsProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.errors_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\013ErrorsProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_CONTAINERERROR']._serialized_start=77 + _globals['_CONTAINERERROR']._serialized_end=306 + _globals['_CONTAINERERROR_KIND']._serialized_start=262 + _globals['_CONTAINERERROR_KIND']._serialized_end=306 + _globals['_ERRORDOCUMENT']._serialized_start=308 + _globals['_ERRORDOCUMENT']._serialized_end=376 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi new file mode 100644 index 0000000000..b13aa40915 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi @@ -0,0 +1,31 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ContainerError(_message.Message): + __slots__ = ["code", "message", "kind", "origin"] + class Kind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + NON_RECOVERABLE: _ClassVar[ContainerError.Kind] + RECOVERABLE: _ClassVar[ContainerError.Kind] + NON_RECOVERABLE: ContainerError.Kind + RECOVERABLE: ContainerError.Kind + CODE_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + KIND_FIELD_NUMBER: _ClassVar[int] + ORIGIN_FIELD_NUMBER: _ClassVar[int] + code: str + message: str + kind: ContainerError.Kind + origin: _execution_pb2.ExecutionError.ErrorKind + def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., kind: _Optional[_Union[ContainerError.Kind, str]] = ..., origin: _Optional[_Union[_execution_pb2.ExecutionError.ErrorKind, str]] = ...) -> None: ... + +class ErrorDocument(_message.Message): + __slots__ = ["error"] + ERROR_FIELD_NUMBER: _ClassVar[int] + error: ContainerError + def __init__(self, error: _Optional[_Union[ContainerError, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py new file mode 100644 index 0000000000..a38614f114 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/execution.proto\x12\rflyteidl.core\x1a\x1egoogle/protobuf/duration.proto\"\xa7\x01\n\x11WorkflowExecution\"\x91\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nSUCCEEDING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x0b\n\x07\x46\x41ILING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0b\n\x07\x41\x42ORTED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x0c\n\x08\x41\x42ORTING\x10\t\"\xb6\x01\n\rNodeExecution\"\xa4\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x46\x41ILING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06\x12\x0b\n\x07SKIPPED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x13\n\x0f\x44YNAMIC_RUNNING\x10\t\x12\r\n\tRECOVERED\x10\n\"\x96\x01\n\rTaskExecution\"\x84\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x41\x42ORTED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x10\n\x0cINITIALIZING\x10\x06\x12\x19\n\x15WAITING_FOR_RESOURCES\x10\x07\"\xc8\x01\n\x0e\x45xecutionError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1b\n\terror_uri\x18\x03 \x01(\tR\x08\x65rrorUri\x12;\n\x04kind\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x04kind\".\n\tErrorKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\"\xda\x01\n\x07TaskLog\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12K\n\x0emessage_format\x18\x03 \x01(\x0e\x32$.flyteidl.core.TaskLog.MessageFormatR\rmessageFormat\x12+\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x03ttl\"/\n\rMessageFormat\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43SV\x10\x01\x12\x08\n\x04JSON\x10\x02\"Z\n\x14QualityOfServiceSpec\x12\x42\n\x0fqueueing_budget\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0equeueingBudget\"\xce\x01\n\x10QualityOfService\x12:\n\x04tier\x18\x01 \x01(\x0e\x32$.flyteidl.core.QualityOfService.TierH\x00R\x04tier\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32#.flyteidl.core.QualityOfServiceSpecH\x00R\x04spec\"4\n\x04Tier\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x42\r\n\x0b\x64\x65signationB\xae\x01\n\x11\x63om.flyteidl.coreB\x0e\x45xecutionProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ExecutionProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_WORKFLOWEXECUTION']._serialized_start=81 + _globals['_WORKFLOWEXECUTION']._serialized_end=248 + _globals['_WORKFLOWEXECUTION_PHASE']._serialized_start=103 + _globals['_WORKFLOWEXECUTION_PHASE']._serialized_end=248 + _globals['_NODEEXECUTION']._serialized_start=251 + _globals['_NODEEXECUTION']._serialized_end=433 + _globals['_NODEEXECUTION_PHASE']._serialized_start=269 + _globals['_NODEEXECUTION_PHASE']._serialized_end=433 + _globals['_TASKEXECUTION']._serialized_start=436 + _globals['_TASKEXECUTION']._serialized_end=586 + _globals['_TASKEXECUTION_PHASE']._serialized_start=454 + _globals['_TASKEXECUTION_PHASE']._serialized_end=586 + _globals['_EXECUTIONERROR']._serialized_start=589 + _globals['_EXECUTIONERROR']._serialized_end=789 + _globals['_EXECUTIONERROR_ERRORKIND']._serialized_start=743 + _globals['_EXECUTIONERROR_ERRORKIND']._serialized_end=789 + _globals['_TASKLOG']._serialized_start=792 + _globals['_TASKLOG']._serialized_end=1010 + _globals['_TASKLOG_MESSAGEFORMAT']._serialized_start=963 + _globals['_TASKLOG_MESSAGEFORMAT']._serialized_end=1010 + _globals['_QUALITYOFSERVICESPEC']._serialized_start=1012 + _globals['_QUALITYOFSERVICESPEC']._serialized_end=1102 + _globals['_QUALITYOFSERVICE']._serialized_start=1105 + _globals['_QUALITYOFSERVICE']._serialized_end=1311 + _globals['_QUALITYOFSERVICE_TIER']._serialized_start=1244 + _globals['_QUALITYOFSERVICE_TIER']._serialized_end=1296 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi new file mode 100644 index 0000000000..2508c1b4ac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi @@ -0,0 +1,147 @@ +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowExecution(_message.Message): + __slots__ = [] + class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[WorkflowExecution.Phase] + QUEUED: _ClassVar[WorkflowExecution.Phase] + RUNNING: _ClassVar[WorkflowExecution.Phase] + SUCCEEDING: _ClassVar[WorkflowExecution.Phase] + SUCCEEDED: _ClassVar[WorkflowExecution.Phase] + FAILING: _ClassVar[WorkflowExecution.Phase] + FAILED: _ClassVar[WorkflowExecution.Phase] + ABORTED: _ClassVar[WorkflowExecution.Phase] + TIMED_OUT: _ClassVar[WorkflowExecution.Phase] + ABORTING: _ClassVar[WorkflowExecution.Phase] + UNDEFINED: WorkflowExecution.Phase + QUEUED: WorkflowExecution.Phase + RUNNING: WorkflowExecution.Phase + SUCCEEDING: WorkflowExecution.Phase + SUCCEEDED: WorkflowExecution.Phase + FAILING: WorkflowExecution.Phase + FAILED: WorkflowExecution.Phase + ABORTED: WorkflowExecution.Phase + TIMED_OUT: WorkflowExecution.Phase + ABORTING: WorkflowExecution.Phase + def __init__(self) -> None: ... + +class NodeExecution(_message.Message): + __slots__ = [] + class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[NodeExecution.Phase] + QUEUED: _ClassVar[NodeExecution.Phase] + RUNNING: _ClassVar[NodeExecution.Phase] + SUCCEEDED: _ClassVar[NodeExecution.Phase] + FAILING: _ClassVar[NodeExecution.Phase] + FAILED: _ClassVar[NodeExecution.Phase] + ABORTED: _ClassVar[NodeExecution.Phase] + SKIPPED: _ClassVar[NodeExecution.Phase] + TIMED_OUT: _ClassVar[NodeExecution.Phase] + DYNAMIC_RUNNING: _ClassVar[NodeExecution.Phase] + RECOVERED: _ClassVar[NodeExecution.Phase] + UNDEFINED: NodeExecution.Phase + QUEUED: NodeExecution.Phase + RUNNING: NodeExecution.Phase + SUCCEEDED: NodeExecution.Phase + FAILING: NodeExecution.Phase + FAILED: NodeExecution.Phase + ABORTED: NodeExecution.Phase + SKIPPED: NodeExecution.Phase + TIMED_OUT: NodeExecution.Phase + DYNAMIC_RUNNING: NodeExecution.Phase + RECOVERED: NodeExecution.Phase + def __init__(self) -> None: ... + +class TaskExecution(_message.Message): + __slots__ = [] + class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[TaskExecution.Phase] + QUEUED: _ClassVar[TaskExecution.Phase] + RUNNING: _ClassVar[TaskExecution.Phase] + SUCCEEDED: _ClassVar[TaskExecution.Phase] + ABORTED: _ClassVar[TaskExecution.Phase] + FAILED: _ClassVar[TaskExecution.Phase] + INITIALIZING: _ClassVar[TaskExecution.Phase] + WAITING_FOR_RESOURCES: _ClassVar[TaskExecution.Phase] + UNDEFINED: TaskExecution.Phase + QUEUED: TaskExecution.Phase + RUNNING: TaskExecution.Phase + SUCCEEDED: TaskExecution.Phase + ABORTED: TaskExecution.Phase + FAILED: TaskExecution.Phase + INITIALIZING: TaskExecution.Phase + WAITING_FOR_RESOURCES: TaskExecution.Phase + def __init__(self) -> None: ... + +class ExecutionError(_message.Message): + __slots__ = ["code", "message", "error_uri", "kind"] + class ErrorKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[ExecutionError.ErrorKind] + USER: _ClassVar[ExecutionError.ErrorKind] + SYSTEM: _ClassVar[ExecutionError.ErrorKind] + UNKNOWN: ExecutionError.ErrorKind + USER: ExecutionError.ErrorKind + SYSTEM: ExecutionError.ErrorKind + CODE_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + ERROR_URI_FIELD_NUMBER: _ClassVar[int] + KIND_FIELD_NUMBER: _ClassVar[int] + code: str + message: str + error_uri: str + kind: ExecutionError.ErrorKind + def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., error_uri: _Optional[str] = ..., kind: _Optional[_Union[ExecutionError.ErrorKind, str]] = ...) -> None: ... + +class TaskLog(_message.Message): + __slots__ = ["uri", "name", "message_format", "ttl"] + class MessageFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[TaskLog.MessageFormat] + CSV: _ClassVar[TaskLog.MessageFormat] + JSON: _ClassVar[TaskLog.MessageFormat] + UNKNOWN: TaskLog.MessageFormat + CSV: TaskLog.MessageFormat + JSON: TaskLog.MessageFormat + URI_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FORMAT_FIELD_NUMBER: _ClassVar[int] + TTL_FIELD_NUMBER: _ClassVar[int] + uri: str + name: str + message_format: TaskLog.MessageFormat + ttl: _duration_pb2.Duration + def __init__(self, uri: _Optional[str] = ..., name: _Optional[str] = ..., message_format: _Optional[_Union[TaskLog.MessageFormat, str]] = ..., ttl: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class QualityOfServiceSpec(_message.Message): + __slots__ = ["queueing_budget"] + QUEUEING_BUDGET_FIELD_NUMBER: _ClassVar[int] + queueing_budget: _duration_pb2.Duration + def __init__(self, queueing_budget: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class QualityOfService(_message.Message): + __slots__ = ["tier", "spec"] + class Tier(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[QualityOfService.Tier] + HIGH: _ClassVar[QualityOfService.Tier] + MEDIUM: _ClassVar[QualityOfService.Tier] + LOW: _ClassVar[QualityOfService.Tier] + UNDEFINED: QualityOfService.Tier + HIGH: QualityOfService.Tier + MEDIUM: QualityOfService.Tier + LOW: QualityOfService.Tier + TIER_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + tier: QualityOfService.Tier + spec: QualityOfServiceSpec + def __init__(self, tier: _Optional[_Union[QualityOfService.Tier, str]] = ..., spec: _Optional[_Union[QualityOfServiceSpec, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py new file mode 100644 index 0000000000..e593384c93 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/identifier.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/core/identifier.proto\x12\rflyteidl.core\"\xae\x01\n\nIdentifier\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x18\n\x07version\x18\x05 \x01(\tR\x07version\"c\n\x1bWorkflowExecutionIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\"\x81\x01\n\x17NodeExecutionIdentifier\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc6\x01\n\x17TaskExecutionIdentifier\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12R\n\x11node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\"~\n\x10SignalIdentifier\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId*U\n\x0cResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04TASK\x10\x01\x12\x0c\n\x08WORKFLOW\x10\x02\x12\x0f\n\x0bLAUNCH_PLAN\x10\x03\x12\x0b\n\x07\x44\x41TASET\x10\x04\x42\xaf\x01\n\x11\x63om.flyteidl.coreB\x0fIdentifierProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.identifier_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017IdentifierProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_RESOURCETYPE']._serialized_start=788 + _globals['_RESOURCETYPE']._serialized_end=873 + _globals['_IDENTIFIER']._serialized_start=50 + _globals['_IDENTIFIER']._serialized_end=224 + _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_start=226 + _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_end=325 + _globals['_NODEEXECUTIONIDENTIFIER']._serialized_start=328 + _globals['_NODEEXECUTIONIDENTIFIER']._serialized_end=457 + _globals['_TASKEXECUTIONIDENTIFIER']._serialized_start=460 + _globals['_TASKEXECUTIONIDENTIFIER']._serialized_end=658 + _globals['_SIGNALIDENTIFIER']._serialized_start=660 + _globals['_SIGNALIDENTIFIER']._serialized_end=786 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi new file mode 100644 index 0000000000..7adea46343 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi @@ -0,0 +1,69 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ResourceType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNSPECIFIED: _ClassVar[ResourceType] + TASK: _ClassVar[ResourceType] + WORKFLOW: _ClassVar[ResourceType] + LAUNCH_PLAN: _ClassVar[ResourceType] + DATASET: _ClassVar[ResourceType] +UNSPECIFIED: ResourceType +TASK: ResourceType +WORKFLOW: ResourceType +LAUNCH_PLAN: ResourceType +DATASET: ResourceType + +class Identifier(_message.Message): + __slots__ = ["resource_type", "project", "domain", "name", "version"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + resource_type: ResourceType + project: str + domain: str + name: str + version: str + def __init__(self, resource_type: _Optional[_Union[ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., version: _Optional[str] = ...) -> None: ... + +class WorkflowExecutionIdentifier(_message.Message): + __slots__ = ["project", "domain", "name"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + name: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... + +class NodeExecutionIdentifier(_message.Message): + __slots__ = ["node_id", "execution_id"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + node_id: str + execution_id: WorkflowExecutionIdentifier + def __init__(self, node_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskExecutionIdentifier(_message.Message): + __slots__ = ["task_id", "node_execution_id", "retry_attempt"] + TASK_ID_FIELD_NUMBER: _ClassVar[int] + NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] + task_id: Identifier + node_execution_id: NodeExecutionIdentifier + retry_attempt: int + def __init__(self, task_id: _Optional[_Union[Identifier, _Mapping]] = ..., node_execution_id: _Optional[_Union[NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ...) -> None: ... + +class SignalIdentifier(_message.Message): + __slots__ = ["signal_id", "execution_id"] + SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + signal_id: str + execution_id: WorkflowExecutionIdentifier + def __init__(self, signal_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py new file mode 100644 index 0000000000..6fdba85eab --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/interface.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/interface.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\\\n\x08Variable\x12.\n\x04type\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\"\xad\x01\n\x0bVariableMap\x12G\n\tvariables\x18\x01 \x03(\x0b\x32).flyteidl.core.VariableMap.VariablesEntryR\tvariables\x1aU\n\x0eVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x05value:\x02\x38\x01\"z\n\x0eTypedInterface\x12\x32\n\x06inputs\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x06inputs\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\x94\x01\n\tParameter\x12)\n\x03var\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x03var\x12\x32\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07\x64\x65\x66\x61ult\x12\x1c\n\x08required\x18\x03 \x01(\x08H\x00R\x08requiredB\n\n\x08\x62\x65havior\"\xb4\x01\n\x0cParameterMap\x12K\n\nparameters\x18\x01 \x03(\x0b\x32+.flyteidl.core.ParameterMap.ParametersEntryR\nparameters\x1aW\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ParameterR\x05value:\x02\x38\x01\x42\xae\x01\n\x11\x63om.flyteidl.coreB\x0eInterfaceProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.interface_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016InterfaceProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _VARIABLEMAP_VARIABLESENTRY._options = None + _VARIABLEMAP_VARIABLESENTRY._serialized_options = b'8\001' + _PARAMETERMAP_PARAMETERSENTRY._options = None + _PARAMETERMAP_PARAMETERSENTRY._serialized_options = b'8\001' + _globals['_VARIABLE']._serialized_start=105 + _globals['_VARIABLE']._serialized_end=197 + _globals['_VARIABLEMAP']._serialized_start=200 + _globals['_VARIABLEMAP']._serialized_end=373 + _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_start=288 + _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_end=373 + _globals['_TYPEDINTERFACE']._serialized_start=375 + _globals['_TYPEDINTERFACE']._serialized_end=497 + _globals['_PARAMETER']._serialized_start=500 + _globals['_PARAMETER']._serialized_end=648 + _globals['_PARAMETERMAP']._serialized_start=651 + _globals['_PARAMETERMAP']._serialized_end=831 + _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_start=744 + _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_end=831 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi new file mode 100644 index 0000000000..ca7c21bb64 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi @@ -0,0 +1,60 @@ +from flyteidl.core import types_pb2 as _types_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Variable(_message.Message): + __slots__ = ["type", "description"] + TYPE_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + type: _types_pb2.LiteralType + description: str + def __init__(self, type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., description: _Optional[str] = ...) -> None: ... + +class VariableMap(_message.Message): + __slots__ = ["variables"] + class VariablesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: Variable + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Variable, _Mapping]] = ...) -> None: ... + VARIABLES_FIELD_NUMBER: _ClassVar[int] + variables: _containers.MessageMap[str, Variable] + def __init__(self, variables: _Optional[_Mapping[str, Variable]] = ...) -> None: ... + +class TypedInterface(_message.Message): + __slots__ = ["inputs", "outputs"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + inputs: VariableMap + outputs: VariableMap + def __init__(self, inputs: _Optional[_Union[VariableMap, _Mapping]] = ..., outputs: _Optional[_Union[VariableMap, _Mapping]] = ...) -> None: ... + +class Parameter(_message.Message): + __slots__ = ["var", "default", "required"] + VAR_FIELD_NUMBER: _ClassVar[int] + DEFAULT_FIELD_NUMBER: _ClassVar[int] + REQUIRED_FIELD_NUMBER: _ClassVar[int] + var: Variable + default: _literals_pb2.Literal + required: bool + def __init__(self, var: _Optional[_Union[Variable, _Mapping]] = ..., default: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ..., required: bool = ...) -> None: ... + +class ParameterMap(_message.Message): + __slots__ = ["parameters"] + class ParametersEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: Parameter + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Parameter, _Mapping]] = ...) -> None: ... + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + parameters: _containers.MessageMap[str, Parameter] + def __init__(self, parameters: _Optional[_Mapping[str, Parameter]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py new file mode 100644 index 0000000000..f7e431bc81 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/literals.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/literals.proto\x12\rflyteidl.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x19\x66lyteidl/core/types.proto\"\x87\x02\n\tPrimitive\x12\x1a\n\x07integer\x18\x01 \x01(\x03H\x00R\x07integer\x12!\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00R\nfloatValue\x12#\n\x0cstring_value\x18\x03 \x01(\tH\x00R\x0bstringValue\x12\x1a\n\x07\x62oolean\x18\x04 \x01(\x08H\x00R\x07\x62oolean\x12\x38\n\x08\x64\x61tetime\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x08\x64\x61tetime\x12\x37\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00R\x08\x64urationB\x07\n\x05value\"\x06\n\x04Void\"Q\n\x04\x42lob\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.BlobMetadataR\x08metadata\x12\x10\n\x03uri\x18\x03 \x01(\tR\x03uri\";\n\x0c\x42lobMetadata\x12+\n\x04type\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeR\x04type\"0\n\x06\x42inary\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\x12\x10\n\x03tag\x18\x02 \x01(\tR\x03tag\"I\n\x06Schema\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12-\n\x04type\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeR\x04type\"e\n\x05Union\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"y\n\x19StructuredDatasetMetadata\x12\\\n\x17structured_dataset_type\x18\x01 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeR\x15structuredDatasetType\"k\n\x11StructuredDataset\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x44\n\x08metadata\x18\x02 \x01(\x0b\x32(.flyteidl.core.StructuredDatasetMetadataR\x08metadata\"\xf0\x03\n\x06Scalar\x12\x38\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveH\x00R\tprimitive\x12)\n\x04\x62lob\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.BlobH\x00R\x04\x62lob\x12/\n\x06\x62inary\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.BinaryH\x00R\x06\x62inary\x12/\n\x06schema\x18\x04 \x01(\x0b\x32\x15.flyteidl.core.SchemaH\x00R\x06schema\x12\x32\n\tnone_type\x18\x05 \x01(\x0b\x32\x13.flyteidl.core.VoidH\x00R\x08noneType\x12,\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rror\x12\x33\n\x07generic\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x07generic\x12Q\n\x12structured_dataset\x18\x08 \x01(\x0b\x32 .flyteidl.core.StructuredDatasetH\x00R\x11structuredDataset\x12,\n\x05union\x18\t \x01(\x0b\x32\x14.flyteidl.core.UnionH\x00R\x05unionB\x07\n\x05value\"\xca\x01\n\x07Literal\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x42\n\ncollection\x18\x02 \x01(\x0b\x32 .flyteidl.core.LiteralCollectionH\x00R\ncollection\x12-\n\x03map\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x03map\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hashB\x07\n\x05value\"G\n\x11LiteralCollection\x12\x32\n\x08literals\x18\x01 \x03(\x0b\x32\x16.flyteidl.core.LiteralR\x08literals\"\xa6\x01\n\nLiteralMap\x12\x43\n\x08literals\x18\x01 \x03(\x0b\x32\'.flyteidl.core.LiteralMap.LiteralsEntryR\x08literals\x1aS\n\rLiteralsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value:\x02\x38\x01\"O\n\x15\x42indingDataCollection\x12\x36\n\x08\x62indings\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.BindingDataR\x08\x62indings\"\xb2\x01\n\x0e\x42indingDataMap\x12G\n\x08\x62indings\x18\x01 \x03(\x0b\x32+.flyteidl.core.BindingDataMap.BindingsEntryR\x08\x62indings\x1aW\n\rBindingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x05value:\x02\x38\x01\"G\n\tUnionInfo\x12:\n\ntargetType\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\ntargetType\"\xae\x02\n\x0b\x42indingData\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x46\n\ncollection\x18\x02 \x01(\x0b\x32$.flyteidl.core.BindingDataCollectionH\x00R\ncollection\x12:\n\x07promise\x18\x03 \x01(\x0b\x32\x1e.flyteidl.core.OutputReferenceH\x00R\x07promise\x12\x31\n\x03map\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.BindingDataMapH\x00R\x03map\x12.\n\x05union\x18\x05 \x01(\x0b\x32\x18.flyteidl.core.UnionInfoR\x05unionB\x07\n\x05value\"Q\n\x07\x42inding\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x34\n\x07\x62inding\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x07\x62inding\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\")\n\rRetryStrategy\x12\x18\n\x07retries\x18\x05 \x01(\rR\x07retriesB\xad\x01\n\x11\x63om.flyteidl.coreB\rLiteralsProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.literals_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rLiteralsProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _LITERALMAP_LITERALSENTRY._options = None + _LITERALMAP_LITERALSENTRY._serialized_options = b'8\001' + _BINDINGDATAMAP_BINDINGSENTRY._options = None + _BINDINGDATAMAP_BINDINGSENTRY._serialized_options = b'8\001' + _globals['_PRIMITIVE']._serialized_start=170 + _globals['_PRIMITIVE']._serialized_end=433 + _globals['_VOID']._serialized_start=435 + _globals['_VOID']._serialized_end=441 + _globals['_BLOB']._serialized_start=443 + _globals['_BLOB']._serialized_end=524 + _globals['_BLOBMETADATA']._serialized_start=526 + _globals['_BLOBMETADATA']._serialized_end=585 + _globals['_BINARY']._serialized_start=587 + _globals['_BINARY']._serialized_end=635 + _globals['_SCHEMA']._serialized_start=637 + _globals['_SCHEMA']._serialized_end=710 + _globals['_UNION']._serialized_start=712 + _globals['_UNION']._serialized_end=813 + _globals['_STRUCTUREDDATASETMETADATA']._serialized_start=815 + _globals['_STRUCTUREDDATASETMETADATA']._serialized_end=936 + _globals['_STRUCTUREDDATASET']._serialized_start=938 + _globals['_STRUCTUREDDATASET']._serialized_end=1045 + _globals['_SCALAR']._serialized_start=1048 + _globals['_SCALAR']._serialized_end=1544 + _globals['_LITERAL']._serialized_start=1547 + _globals['_LITERAL']._serialized_end=1749 + _globals['_LITERALCOLLECTION']._serialized_start=1751 + _globals['_LITERALCOLLECTION']._serialized_end=1822 + _globals['_LITERALMAP']._serialized_start=1825 + _globals['_LITERALMAP']._serialized_end=1991 + _globals['_LITERALMAP_LITERALSENTRY']._serialized_start=1908 + _globals['_LITERALMAP_LITERALSENTRY']._serialized_end=1991 + _globals['_BINDINGDATACOLLECTION']._serialized_start=1993 + _globals['_BINDINGDATACOLLECTION']._serialized_end=2072 + _globals['_BINDINGDATAMAP']._serialized_start=2075 + _globals['_BINDINGDATAMAP']._serialized_end=2253 + _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_start=2166 + _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_end=2253 + _globals['_UNIONINFO']._serialized_start=2255 + _globals['_UNIONINFO']._serialized_end=2326 + _globals['_BINDINGDATA']._serialized_start=2329 + _globals['_BINDINGDATA']._serialized_end=2631 + _globals['_BINDING']._serialized_start=2633 + _globals['_BINDING']._serialized_end=2714 + _globals['_KEYVALUEPAIR']._serialized_start=2716 + _globals['_KEYVALUEPAIR']._serialized_end=2770 + _globals['_RETRYSTRATEGY']._serialized_start=2772 + _globals['_RETRYSTRATEGY']._serialized_end=2813 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi new file mode 100644 index 0000000000..1df1a0bfb9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi @@ -0,0 +1,196 @@ +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from flyteidl.core import types_pb2 as _types_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Primitive(_message.Message): + __slots__ = ["integer", "float_value", "string_value", "boolean", "datetime", "duration"] + INTEGER_FIELD_NUMBER: _ClassVar[int] + FLOAT_VALUE_FIELD_NUMBER: _ClassVar[int] + STRING_VALUE_FIELD_NUMBER: _ClassVar[int] + BOOLEAN_FIELD_NUMBER: _ClassVar[int] + DATETIME_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + integer: int + float_value: float + string_value: str + boolean: bool + datetime: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + def __init__(self, integer: _Optional[int] = ..., float_value: _Optional[float] = ..., string_value: _Optional[str] = ..., boolean: bool = ..., datetime: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class Void(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Blob(_message.Message): + __slots__ = ["metadata", "uri"] + METADATA_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + metadata: BlobMetadata + uri: str + def __init__(self, metadata: _Optional[_Union[BlobMetadata, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... + +class BlobMetadata(_message.Message): + __slots__ = ["type"] + TYPE_FIELD_NUMBER: _ClassVar[int] + type: _types_pb2.BlobType + def __init__(self, type: _Optional[_Union[_types_pb2.BlobType, _Mapping]] = ...) -> None: ... + +class Binary(_message.Message): + __slots__ = ["value", "tag"] + VALUE_FIELD_NUMBER: _ClassVar[int] + TAG_FIELD_NUMBER: _ClassVar[int] + value: bytes + tag: str + def __init__(self, value: _Optional[bytes] = ..., tag: _Optional[str] = ...) -> None: ... + +class Schema(_message.Message): + __slots__ = ["uri", "type"] + URI_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + uri: str + type: _types_pb2.SchemaType + def __init__(self, uri: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.SchemaType, _Mapping]] = ...) -> None: ... + +class Union(_message.Message): + __slots__ = ["value", "type"] + VALUE_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + value: Literal + type: _types_pb2.LiteralType + def __init__(self, value: _Optional[_Union[Literal, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... + +class StructuredDatasetMetadata(_message.Message): + __slots__ = ["structured_dataset_type"] + STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] + structured_dataset_type: _types_pb2.StructuredDatasetType + def __init__(self, structured_dataset_type: _Optional[_Union[_types_pb2.StructuredDatasetType, _Mapping]] = ...) -> None: ... + +class StructuredDataset(_message.Message): + __slots__ = ["uri", "metadata"] + URI_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + uri: str + metadata: StructuredDatasetMetadata + def __init__(self, uri: _Optional[str] = ..., metadata: _Optional[_Union[StructuredDatasetMetadata, _Mapping]] = ...) -> None: ... + +class Scalar(_message.Message): + __slots__ = ["primitive", "blob", "binary", "schema", "none_type", "error", "generic", "structured_dataset", "union"] + PRIMITIVE_FIELD_NUMBER: _ClassVar[int] + BLOB_FIELD_NUMBER: _ClassVar[int] + BINARY_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + NONE_TYPE_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + GENERIC_FIELD_NUMBER: _ClassVar[int] + STRUCTURED_DATASET_FIELD_NUMBER: _ClassVar[int] + UNION_FIELD_NUMBER: _ClassVar[int] + primitive: Primitive + blob: Blob + binary: Binary + schema: Schema + none_type: Void + error: _types_pb2.Error + generic: _struct_pb2.Struct + structured_dataset: StructuredDataset + union: Union + def __init__(self, primitive: _Optional[_Union[Primitive, _Mapping]] = ..., blob: _Optional[_Union[Blob, _Mapping]] = ..., binary: _Optional[_Union[Binary, _Mapping]] = ..., schema: _Optional[_Union[Schema, _Mapping]] = ..., none_type: _Optional[_Union[Void, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ..., generic: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., structured_dataset: _Optional[_Union[StructuredDataset, _Mapping]] = ..., union: _Optional[_Union[Union, _Mapping]] = ...) -> None: ... + +class Literal(_message.Message): + __slots__ = ["scalar", "collection", "map", "hash"] + SCALAR_FIELD_NUMBER: _ClassVar[int] + COLLECTION_FIELD_NUMBER: _ClassVar[int] + MAP_FIELD_NUMBER: _ClassVar[int] + HASH_FIELD_NUMBER: _ClassVar[int] + scalar: Scalar + collection: LiteralCollection + map: LiteralMap + hash: str + def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[LiteralCollection, _Mapping]] = ..., map: _Optional[_Union[LiteralMap, _Mapping]] = ..., hash: _Optional[str] = ...) -> None: ... + +class LiteralCollection(_message.Message): + __slots__ = ["literals"] + LITERALS_FIELD_NUMBER: _ClassVar[int] + literals: _containers.RepeatedCompositeFieldContainer[Literal] + def __init__(self, literals: _Optional[_Iterable[_Union[Literal, _Mapping]]] = ...) -> None: ... + +class LiteralMap(_message.Message): + __slots__ = ["literals"] + class LiteralsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: Literal + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Literal, _Mapping]] = ...) -> None: ... + LITERALS_FIELD_NUMBER: _ClassVar[int] + literals: _containers.MessageMap[str, Literal] + def __init__(self, literals: _Optional[_Mapping[str, Literal]] = ...) -> None: ... + +class BindingDataCollection(_message.Message): + __slots__ = ["bindings"] + BINDINGS_FIELD_NUMBER: _ClassVar[int] + bindings: _containers.RepeatedCompositeFieldContainer[BindingData] + def __init__(self, bindings: _Optional[_Iterable[_Union[BindingData, _Mapping]]] = ...) -> None: ... + +class BindingDataMap(_message.Message): + __slots__ = ["bindings"] + class BindingsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: BindingData + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... + BINDINGS_FIELD_NUMBER: _ClassVar[int] + bindings: _containers.MessageMap[str, BindingData] + def __init__(self, bindings: _Optional[_Mapping[str, BindingData]] = ...) -> None: ... + +class UnionInfo(_message.Message): + __slots__ = ["targetType"] + TARGETTYPE_FIELD_NUMBER: _ClassVar[int] + targetType: _types_pb2.LiteralType + def __init__(self, targetType: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... + +class BindingData(_message.Message): + __slots__ = ["scalar", "collection", "promise", "map", "union"] + SCALAR_FIELD_NUMBER: _ClassVar[int] + COLLECTION_FIELD_NUMBER: _ClassVar[int] + PROMISE_FIELD_NUMBER: _ClassVar[int] + MAP_FIELD_NUMBER: _ClassVar[int] + UNION_FIELD_NUMBER: _ClassVar[int] + scalar: Scalar + collection: BindingDataCollection + promise: _types_pb2.OutputReference + map: BindingDataMap + union: UnionInfo + def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[BindingDataCollection, _Mapping]] = ..., promise: _Optional[_Union[_types_pb2.OutputReference, _Mapping]] = ..., map: _Optional[_Union[BindingDataMap, _Mapping]] = ..., union: _Optional[_Union[UnionInfo, _Mapping]] = ...) -> None: ... + +class Binding(_message.Message): + __slots__ = ["var", "binding"] + VAR_FIELD_NUMBER: _ClassVar[int] + BINDING_FIELD_NUMBER: _ClassVar[int] + var: str + binding: BindingData + def __init__(self, var: _Optional[str] = ..., binding: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... + +class KeyValuePair(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + +class RetryStrategy(_message.Message): + __slots__ = ["retries"] + RETRIES_FIELD_NUMBER: _ClassVar[int] + retries: int + def __init__(self, retries: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py new file mode 100644 index 0000000000..58fb40b669 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/metrics.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/metrics.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x03\n\x04Span\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12M\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\nworkflowId\x12\x41\n\x07node_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x06nodeId\x12\x41\n\x07task_id\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x06taskId\x12#\n\x0coperation_id\x18\x06 \x01(\tH\x00R\x0boperationId\x12)\n\x05spans\x18\x07 \x03(\x0b\x32\x13.flyteidl.core.SpanR\x05spansB\x04\n\x02idB\xac\x01\n\x11\x63om.flyteidl.coreB\x0cMetricsProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.metrics_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014MetricsProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_SPAN']._serialized_start=112 + _globals['_SPAN']._serialized_end=531 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi new file mode 100644 index 0000000000..d529fd64e5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi @@ -0,0 +1,26 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Span(_message.Message): + __slots__ = ["start_time", "end_time", "workflow_id", "node_id", "task_id", "operation_id", "spans"] + START_TIME_FIELD_NUMBER: _ClassVar[int] + END_TIME_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + TASK_ID_FIELD_NUMBER: _ClassVar[int] + OPERATION_ID_FIELD_NUMBER: _ClassVar[int] + SPANS_FIELD_NUMBER: _ClassVar[int] + start_time: _timestamp_pb2.Timestamp + end_time: _timestamp_pb2.Timestamp + workflow_id: _identifier_pb2.WorkflowExecutionIdentifier + node_id: _identifier_pb2.NodeExecutionIdentifier + task_id: _identifier_pb2.TaskExecutionIdentifier + operation_id: str + spans: _containers.RepeatedCompositeFieldContainer[Span] + def __init__(self, start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., node_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., operation_id: _Optional[str] = ..., spans: _Optional[_Iterable[_Union[Span, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py new file mode 100644 index 0000000000..4b8e59c6e1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/security.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/security.proto\x12\rflyteidl.core\"\xd0\x01\n\x06Secret\x12\x14\n\x05group\x18\x01 \x01(\tR\x05group\x12#\n\rgroup_version\x18\x02 \x01(\tR\x0cgroupVersion\x12\x10\n\x03key\x18\x03 \x01(\tR\x03key\x12L\n\x11mount_requirement\x18\x04 \x01(\x0e\x32\x1f.flyteidl.core.Secret.MountTypeR\x10mountRequirement\"+\n\tMountType\x12\x07\n\x03\x41NY\x10\x00\x12\x0b\n\x07\x45NV_VAR\x10\x01\x12\x08\n\x04\x46ILE\x10\x02\"g\n\x0cOAuth2Client\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12:\n\rclient_secret\x18\x02 \x01(\x0b\x32\x15.flyteidl.core.SecretR\x0c\x63lientSecret\"\xc6\x01\n\x08Identity\x12\x19\n\x08iam_role\x18\x01 \x01(\tR\x07iamRole\x12.\n\x13k8s_service_account\x18\x02 \x01(\tR\x11k8sServiceAccount\x12@\n\roauth2_client\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x0coauth2Client\x12-\n\x12\x65xecution_identity\x18\x04 \x01(\tR\x11\x65xecutionIdentity\"\x96\x02\n\x12OAuth2TokenRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12:\n\x04type\x18\x02 \x01(\x0e\x32&.flyteidl.core.OAuth2TokenRequest.TypeR\x04type\x12\x33\n\x06\x63lient\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x06\x63lient\x12\x34\n\x16idp_discovery_endpoint\x18\x04 \x01(\tR\x14idpDiscoveryEndpoint\x12%\n\x0etoken_endpoint\x18\x05 \x01(\tR\rtokenEndpoint\"\x1e\n\x04Type\x12\x16\n\x12\x43LIENT_CREDENTIALS\x10\x00\"\xad\x01\n\x0fSecurityContext\x12.\n\x06run_as\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.IdentityR\x05runAs\x12/\n\x07secrets\x18\x02 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x07secrets\x12\x39\n\x06tokens\x18\x03 \x03(\x0b\x32!.flyteidl.core.OAuth2TokenRequestR\x06tokensB\xad\x01\n\x11\x63om.flyteidl.coreB\rSecurityProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.security_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rSecurityProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_SECRET']._serialized_start=48 + _globals['_SECRET']._serialized_end=256 + _globals['_SECRET_MOUNTTYPE']._serialized_start=213 + _globals['_SECRET_MOUNTTYPE']._serialized_end=256 + _globals['_OAUTH2CLIENT']._serialized_start=258 + _globals['_OAUTH2CLIENT']._serialized_end=361 + _globals['_IDENTITY']._serialized_start=364 + _globals['_IDENTITY']._serialized_end=562 + _globals['_OAUTH2TOKENREQUEST']._serialized_start=565 + _globals['_OAUTH2TOKENREQUEST']._serialized_end=843 + _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_start=813 + _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_end=843 + _globals['_SECURITYCONTEXT']._serialized_start=846 + _globals['_SECURITYCONTEXT']._serialized_end=1019 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi new file mode 100644 index 0000000000..028f85204a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi @@ -0,0 +1,75 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Secret(_message.Message): + __slots__ = ["group", "group_version", "key", "mount_requirement"] + class MountType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ANY: _ClassVar[Secret.MountType] + ENV_VAR: _ClassVar[Secret.MountType] + FILE: _ClassVar[Secret.MountType] + ANY: Secret.MountType + ENV_VAR: Secret.MountType + FILE: Secret.MountType + GROUP_FIELD_NUMBER: _ClassVar[int] + GROUP_VERSION_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + MOUNT_REQUIREMENT_FIELD_NUMBER: _ClassVar[int] + group: str + group_version: str + key: str + mount_requirement: Secret.MountType + def __init__(self, group: _Optional[str] = ..., group_version: _Optional[str] = ..., key: _Optional[str] = ..., mount_requirement: _Optional[_Union[Secret.MountType, str]] = ...) -> None: ... + +class OAuth2Client(_message.Message): + __slots__ = ["client_id", "client_secret"] + CLIENT_ID_FIELD_NUMBER: _ClassVar[int] + CLIENT_SECRET_FIELD_NUMBER: _ClassVar[int] + client_id: str + client_secret: Secret + def __init__(self, client_id: _Optional[str] = ..., client_secret: _Optional[_Union[Secret, _Mapping]] = ...) -> None: ... + +class Identity(_message.Message): + __slots__ = ["iam_role", "k8s_service_account", "oauth2_client", "execution_identity"] + IAM_ROLE_FIELD_NUMBER: _ClassVar[int] + K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + OAUTH2_CLIENT_FIELD_NUMBER: _ClassVar[int] + EXECUTION_IDENTITY_FIELD_NUMBER: _ClassVar[int] + iam_role: str + k8s_service_account: str + oauth2_client: OAuth2Client + execution_identity: str + def __init__(self, iam_role: _Optional[str] = ..., k8s_service_account: _Optional[str] = ..., oauth2_client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., execution_identity: _Optional[str] = ...) -> None: ... + +class OAuth2TokenRequest(_message.Message): + __slots__ = ["name", "type", "client", "idp_discovery_endpoint", "token_endpoint"] + class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CLIENT_CREDENTIALS: _ClassVar[OAuth2TokenRequest.Type] + CLIENT_CREDENTIALS: OAuth2TokenRequest.Type + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + CLIENT_FIELD_NUMBER: _ClassVar[int] + IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + name: str + type: OAuth2TokenRequest.Type + client: OAuth2Client + idp_discovery_endpoint: str + token_endpoint: str + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[OAuth2TokenRequest.Type, str]] = ..., client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., idp_discovery_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ...) -> None: ... + +class SecurityContext(_message.Message): + __slots__ = ["run_as", "secrets", "tokens"] + RUN_AS_FIELD_NUMBER: _ClassVar[int] + SECRETS_FIELD_NUMBER: _ClassVar[int] + TOKENS_FIELD_NUMBER: _ClassVar[int] + run_as: Identity + secrets: _containers.RepeatedCompositeFieldContainer[Secret] + tokens: _containers.RepeatedCompositeFieldContainer[OAuth2TokenRequest] + def __init__(self, run_as: _Optional[_Union[Identity, _Mapping]] = ..., secrets: _Optional[_Iterable[_Union[Secret, _Mapping]]] = ..., tokens: _Optional[_Iterable[_Union[OAuth2TokenRequest, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py new file mode 100644 index 0000000000..fcafa0a321 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/tasks.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/tasks.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd0\x02\n\tResources\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x08requests\x12>\n\x06limits\x18\x02 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x06limits\x1a`\n\rResourceEntry\x12\x39\n\x04name\x18\x01 \x01(\x0e\x32%.flyteidl.core.Resources.ResourceNameR\x04name\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"]\n\x0cResourceName\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x07\n\x03GPU\x10\x02\x12\n\n\x06MEMORY\x10\x03\x12\x0b\n\x07STORAGE\x10\x04\x12\x15\n\x11\x45PHEMERAL_STORAGE\x10\x05\"\xac\x01\n\x0fRuntimeMetadata\x12>\n\x04type\x18\x01 \x01(\x0e\x32*.flyteidl.core.RuntimeMetadata.RuntimeTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x16\n\x06\x66lavor\x18\x03 \x01(\tR\x06\x66lavor\"\'\n\x0bRuntimeType\x12\t\n\x05OTHER\x10\x00\x12\r\n\tFLYTE_SDK\x10\x01\"\xf5\x04\n\x0cTaskMetadata\x12\"\n\x0c\x64iscoverable\x18\x01 \x01(\x08R\x0c\x64iscoverable\x12\x38\n\x07runtime\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.RuntimeMetadataR\x07runtime\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12+\n\x11\x64iscovery_version\x18\x06 \x01(\tR\x10\x64iscoveryVersion\x12\x38\n\x18\x64\x65precated_error_message\x18\x07 \x01(\tR\x16\x64\x65precatedErrorMessage\x12&\n\rinterruptible\x18\x08 \x01(\x08H\x00R\rinterruptible\x12-\n\x12\x63\x61\x63he_serializable\x18\t \x01(\x08R\x11\x63\x61\x63heSerializable\x12%\n\x0egenerates_deck\x18\n \x01(\x08R\rgeneratesDeck\x12\x39\n\x04tags\x18\x0b \x03(\x0b\x32%.flyteidl.core.TaskMetadata.TagsEntryR\x04tags\x12*\n\x11pod_template_name\x18\x0c \x01(\tR\x0fpodTemplateName\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x15\n\x13interruptible_value\"\x85\x05\n\x0cTaskTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x37\n\x08metadata\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.TaskMetadataR\x08metadata\x12;\n\tinterface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12/\n\x06\x63ustom\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructR\x06\x63ustom\x12\x38\n\tcontainer\x18\x06 \x01(\x0b\x32\x18.flyteidl.core.ContainerH\x00R\tcontainer\x12\x30\n\x07k8s_pod\x18\x11 \x01(\x0b\x32\x15.flyteidl.core.K8sPodH\x00R\x06k8sPod\x12&\n\x03sql\x18\x12 \x01(\x0b\x32\x12.flyteidl.core.SqlH\x00R\x03sql\x12*\n\x11task_type_version\x18\x07 \x01(\x05R\x0ftaskTypeVersion\x12I\n\x10security_context\x18\x08 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12?\n\x06\x63onfig\x18\x10 \x03(\x0b\x32\'.flyteidl.core.TaskTemplate.ConfigEntryR\x06\x63onfig\x1a\x39\n\x0b\x43onfigEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06target\"6\n\rContainerPort\x12%\n\x0e\x63ontainer_port\x18\x01 \x01(\rR\rcontainerPort\"\xfc\x03\n\tContainer\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x18\n\x07\x63ommand\x18\x02 \x03(\tR\x07\x63ommand\x12\x12\n\x04\x61rgs\x18\x03 \x03(\tR\x04\x61rgs\x12\x36\n\tresources\x18\x04 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12-\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x03\x65nv\x12\x37\n\x06\x63onfig\x18\x06 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairB\x02\x18\x01R\x06\x63onfig\x12\x32\n\x05ports\x18\x07 \x03(\x0b\x32\x1c.flyteidl.core.ContainerPortR\x05ports\x12\x41\n\x0b\x64\x61ta_config\x18\t \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\x12I\n\x0c\x61rchitecture\x18\n \x01(\x0e\x32%.flyteidl.core.Container.ArchitectureR\x0c\x61rchitecture\"I\n\x0c\x41rchitecture\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41MD64\x10\x01\x12\t\n\x05\x41RM64\x10\x02\x12\n\n\x06\x41RM_V6\x10\x03\x12\n\n\x06\x41RM_V7\x10\x04\"\xb5\x02\n\nIOStrategy\x12K\n\rdownload_mode\x18\x01 \x01(\x0e\x32&.flyteidl.core.IOStrategy.DownloadModeR\x0c\x64ownloadMode\x12\x45\n\x0bupload_mode\x18\x02 \x01(\x0e\x32$.flyteidl.core.IOStrategy.UploadModeR\nuploadMode\"L\n\x0c\x44ownloadMode\x12\x12\n\x0e\x44OWNLOAD_EAGER\x10\x00\x12\x13\n\x0f\x44OWNLOAD_STREAM\x10\x01\x12\x13\n\x0f\x44O_NOT_DOWNLOAD\x10\x02\"E\n\nUploadMode\x12\x12\n\x0eUPLOAD_ON_EXIT\x10\x00\x12\x10\n\x0cUPLOAD_EAGER\x10\x01\x12\x11\n\rDO_NOT_UPLOAD\x10\x02\"\xa7\x02\n\x11\x44\x61taLoadingConfig\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x1d\n\ninput_path\x18\x02 \x01(\tR\tinputPath\x12\x1f\n\x0boutput_path\x18\x03 \x01(\tR\noutputPath\x12I\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\x31.flyteidl.core.DataLoadingConfig.LiteralMapFormatR\x06\x66ormat\x12:\n\x0bio_strategy\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.IOStrategyR\nioStrategy\"1\n\x10LiteralMapFormat\x12\x08\n\x04JSON\x10\x00\x12\x08\n\x04YAML\x10\x01\x12\t\n\x05PROTO\x10\x02\"\xbd\x01\n\x06K8sPod\x12<\n\x08metadata\x18\x01 \x01(\x0b\x32 .flyteidl.core.K8sObjectMetadataR\x08metadata\x12\x32\n\x08pod_spec\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x07podSpec\x12\x41\n\x0b\x64\x61ta_config\x18\x03 \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\"\xa9\x02\n\x11K8sObjectMetadata\x12\x44\n\x06labels\x18\x01 \x03(\x0b\x32,.flyteidl.core.K8sObjectMetadata.LabelsEntryR\x06labels\x12S\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32\x31.flyteidl.core.K8sObjectMetadata.AnnotationsEntryR\x0b\x61nnotations\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x92\x01\n\x03Sql\x12\x1c\n\tstatement\x18\x01 \x01(\tR\tstatement\x12\x34\n\x07\x64ialect\x18\x02 \x01(\x0e\x32\x1a.flyteidl.core.Sql.DialectR\x07\x64ialect\"7\n\x07\x44ialect\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04\x41NSI\x10\x01\x12\x08\n\x04HIVE\x10\x02\x12\t\n\x05OTHER\x10\x03\x42\xaa\x01\n\x11\x63om.flyteidl.coreB\nTasksProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.tasks_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTasksProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _TASKMETADATA_TAGSENTRY._options = None + _TASKMETADATA_TAGSENTRY._serialized_options = b'8\001' + _TASKTEMPLATE_CONFIGENTRY._options = None + _TASKTEMPLATE_CONFIGENTRY._serialized_options = b'8\001' + _CONTAINER.fields_by_name['config']._options = None + _CONTAINER.fields_by_name['config']._serialized_options = b'\030\001' + _K8SOBJECTMETADATA_LABELSENTRY._options = None + _K8SOBJECTMETADATA_LABELSENTRY._serialized_options = b'8\001' + _K8SOBJECTMETADATA_ANNOTATIONSENTRY._options = None + _K8SOBJECTMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' + _globals['_RESOURCES']._serialized_start=230 + _globals['_RESOURCES']._serialized_end=566 + _globals['_RESOURCES_RESOURCEENTRY']._serialized_start=375 + _globals['_RESOURCES_RESOURCEENTRY']._serialized_end=471 + _globals['_RESOURCES_RESOURCENAME']._serialized_start=473 + _globals['_RESOURCES_RESOURCENAME']._serialized_end=566 + _globals['_RUNTIMEMETADATA']._serialized_start=569 + _globals['_RUNTIMEMETADATA']._serialized_end=741 + _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_start=702 + _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_end=741 + _globals['_TASKMETADATA']._serialized_start=744 + _globals['_TASKMETADATA']._serialized_end=1373 + _globals['_TASKMETADATA_TAGSENTRY']._serialized_start=1295 + _globals['_TASKMETADATA_TAGSENTRY']._serialized_end=1350 + _globals['_TASKTEMPLATE']._serialized_start=1376 + _globals['_TASKTEMPLATE']._serialized_end=2021 + _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_start=1954 + _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_end=2011 + _globals['_CONTAINERPORT']._serialized_start=2023 + _globals['_CONTAINERPORT']._serialized_end=2077 + _globals['_CONTAINER']._serialized_start=2080 + _globals['_CONTAINER']._serialized_end=2588 + _globals['_CONTAINER_ARCHITECTURE']._serialized_start=2515 + _globals['_CONTAINER_ARCHITECTURE']._serialized_end=2588 + _globals['_IOSTRATEGY']._serialized_start=2591 + _globals['_IOSTRATEGY']._serialized_end=2900 + _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_start=2753 + _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_end=2829 + _globals['_IOSTRATEGY_UPLOADMODE']._serialized_start=2831 + _globals['_IOSTRATEGY_UPLOADMODE']._serialized_end=2900 + _globals['_DATALOADINGCONFIG']._serialized_start=2903 + _globals['_DATALOADINGCONFIG']._serialized_end=3198 + _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_start=3149 + _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_end=3198 + _globals['_K8SPOD']._serialized_start=3201 + _globals['_K8SPOD']._serialized_end=3390 + _globals['_K8SOBJECTMETADATA']._serialized_start=3393 + _globals['_K8SOBJECTMETADATA']._serialized_end=3690 + _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_start=3569 + _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_end=3626 + _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_start=3628 + _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_end=3690 + _globals['_SQL']._serialized_start=3693 + _globals['_SQL']._serialized_end=3839 + _globals['_SQL_DIALECT']._serialized_start=3784 + _globals['_SQL_DIALECT']._serialized_end=3839 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi new file mode 100644 index 0000000000..e33453ecde --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi @@ -0,0 +1,260 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Resources(_message.Message): + __slots__ = ["requests", "limits"] + class ResourceName(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[Resources.ResourceName] + CPU: _ClassVar[Resources.ResourceName] + GPU: _ClassVar[Resources.ResourceName] + MEMORY: _ClassVar[Resources.ResourceName] + STORAGE: _ClassVar[Resources.ResourceName] + EPHEMERAL_STORAGE: _ClassVar[Resources.ResourceName] + UNKNOWN: Resources.ResourceName + CPU: Resources.ResourceName + GPU: Resources.ResourceName + MEMORY: Resources.ResourceName + STORAGE: Resources.ResourceName + EPHEMERAL_STORAGE: Resources.ResourceName + class ResourceEntry(_message.Message): + __slots__ = ["name", "value"] + NAME_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + name: Resources.ResourceName + value: str + def __init__(self, name: _Optional[_Union[Resources.ResourceName, str]] = ..., value: _Optional[str] = ...) -> None: ... + REQUESTS_FIELD_NUMBER: _ClassVar[int] + LIMITS_FIELD_NUMBER: _ClassVar[int] + requests: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] + limits: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] + def __init__(self, requests: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ..., limits: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ...) -> None: ... + +class RuntimeMetadata(_message.Message): + __slots__ = ["type", "version", "flavor"] + class RuntimeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + OTHER: _ClassVar[RuntimeMetadata.RuntimeType] + FLYTE_SDK: _ClassVar[RuntimeMetadata.RuntimeType] + OTHER: RuntimeMetadata.RuntimeType + FLYTE_SDK: RuntimeMetadata.RuntimeType + TYPE_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + FLAVOR_FIELD_NUMBER: _ClassVar[int] + type: RuntimeMetadata.RuntimeType + version: str + flavor: str + def __init__(self, type: _Optional[_Union[RuntimeMetadata.RuntimeType, str]] = ..., version: _Optional[str] = ..., flavor: _Optional[str] = ...) -> None: ... + +class TaskMetadata(_message.Message): + __slots__ = ["discoverable", "runtime", "timeout", "retries", "discovery_version", "deprecated_error_message", "interruptible", "cache_serializable", "generates_deck", "tags", "pod_template_name"] + class TagsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + DISCOVERABLE_FIELD_NUMBER: _ClassVar[int] + RUNTIME_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_FIELD_NUMBER: _ClassVar[int] + RETRIES_FIELD_NUMBER: _ClassVar[int] + DISCOVERY_VERSION_FIELD_NUMBER: _ClassVar[int] + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + CACHE_SERIALIZABLE_FIELD_NUMBER: _ClassVar[int] + GENERATES_DECK_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + POD_TEMPLATE_NAME_FIELD_NUMBER: _ClassVar[int] + discoverable: bool + runtime: RuntimeMetadata + timeout: _duration_pb2.Duration + retries: _literals_pb2.RetryStrategy + discovery_version: str + deprecated_error_message: str + interruptible: bool + cache_serializable: bool + generates_deck: bool + tags: _containers.ScalarMap[str, str] + pod_template_name: str + def __init__(self, discoverable: bool = ..., runtime: _Optional[_Union[RuntimeMetadata, _Mapping]] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., discovery_version: _Optional[str] = ..., deprecated_error_message: _Optional[str] = ..., interruptible: bool = ..., cache_serializable: bool = ..., generates_deck: bool = ..., tags: _Optional[_Mapping[str, str]] = ..., pod_template_name: _Optional[str] = ...) -> None: ... + +class TaskTemplate(_message.Message): + __slots__ = ["id", "type", "metadata", "interface", "custom", "container", "k8s_pod", "sql", "task_type_version", "security_context", "config"] + class ConfigEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + INTERFACE_FIELD_NUMBER: _ClassVar[int] + CUSTOM_FIELD_NUMBER: _ClassVar[int] + CONTAINER_FIELD_NUMBER: _ClassVar[int] + K8S_POD_FIELD_NUMBER: _ClassVar[int] + SQL_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_VERSION_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + type: str + metadata: TaskMetadata + interface: _interface_pb2.TypedInterface + custom: _struct_pb2.Struct + container: Container + k8s_pod: K8sPod + sql: Sql + task_type_version: int + security_context: _security_pb2.SecurityContext + config: _containers.ScalarMap[str, str] + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., type: _Optional[str] = ..., metadata: _Optional[_Union[TaskMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., custom: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., container: _Optional[_Union[Container, _Mapping]] = ..., k8s_pod: _Optional[_Union[K8sPod, _Mapping]] = ..., sql: _Optional[_Union[Sql, _Mapping]] = ..., task_type_version: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., config: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class ContainerPort(_message.Message): + __slots__ = ["container_port"] + CONTAINER_PORT_FIELD_NUMBER: _ClassVar[int] + container_port: int + def __init__(self, container_port: _Optional[int] = ...) -> None: ... + +class Container(_message.Message): + __slots__ = ["image", "command", "args", "resources", "env", "config", "ports", "data_config", "architecture"] + class Architecture(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[Container.Architecture] + AMD64: _ClassVar[Container.Architecture] + ARM64: _ClassVar[Container.Architecture] + ARM_V6: _ClassVar[Container.Architecture] + ARM_V7: _ClassVar[Container.Architecture] + UNKNOWN: Container.Architecture + AMD64: Container.Architecture + ARM64: Container.Architecture + ARM_V6: Container.Architecture + ARM_V7: Container.Architecture + IMAGE_FIELD_NUMBER: _ClassVar[int] + COMMAND_FIELD_NUMBER: _ClassVar[int] + ARGS_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + ENV_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + PORTS_FIELD_NUMBER: _ClassVar[int] + DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + ARCHITECTURE_FIELD_NUMBER: _ClassVar[int] + image: str + command: _containers.RepeatedScalarFieldContainer[str] + args: _containers.RepeatedScalarFieldContainer[str] + resources: Resources + env: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] + config: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] + ports: _containers.RepeatedCompositeFieldContainer[ContainerPort] + data_config: DataLoadingConfig + architecture: Container.Architecture + def __init__(self, image: _Optional[str] = ..., command: _Optional[_Iterable[str]] = ..., args: _Optional[_Iterable[str]] = ..., resources: _Optional[_Union[Resources, _Mapping]] = ..., env: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., config: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., ports: _Optional[_Iterable[_Union[ContainerPort, _Mapping]]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ..., architecture: _Optional[_Union[Container.Architecture, str]] = ...) -> None: ... + +class IOStrategy(_message.Message): + __slots__ = ["download_mode", "upload_mode"] + class DownloadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DOWNLOAD_EAGER: _ClassVar[IOStrategy.DownloadMode] + DOWNLOAD_STREAM: _ClassVar[IOStrategy.DownloadMode] + DO_NOT_DOWNLOAD: _ClassVar[IOStrategy.DownloadMode] + DOWNLOAD_EAGER: IOStrategy.DownloadMode + DOWNLOAD_STREAM: IOStrategy.DownloadMode + DO_NOT_DOWNLOAD: IOStrategy.DownloadMode + class UploadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UPLOAD_ON_EXIT: _ClassVar[IOStrategy.UploadMode] + UPLOAD_EAGER: _ClassVar[IOStrategy.UploadMode] + DO_NOT_UPLOAD: _ClassVar[IOStrategy.UploadMode] + UPLOAD_ON_EXIT: IOStrategy.UploadMode + UPLOAD_EAGER: IOStrategy.UploadMode + DO_NOT_UPLOAD: IOStrategy.UploadMode + DOWNLOAD_MODE_FIELD_NUMBER: _ClassVar[int] + UPLOAD_MODE_FIELD_NUMBER: _ClassVar[int] + download_mode: IOStrategy.DownloadMode + upload_mode: IOStrategy.UploadMode + def __init__(self, download_mode: _Optional[_Union[IOStrategy.DownloadMode, str]] = ..., upload_mode: _Optional[_Union[IOStrategy.UploadMode, str]] = ...) -> None: ... + +class DataLoadingConfig(_message.Message): + __slots__ = ["enabled", "input_path", "output_path", "format", "io_strategy"] + class LiteralMapFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + JSON: _ClassVar[DataLoadingConfig.LiteralMapFormat] + YAML: _ClassVar[DataLoadingConfig.LiteralMapFormat] + PROTO: _ClassVar[DataLoadingConfig.LiteralMapFormat] + JSON: DataLoadingConfig.LiteralMapFormat + YAML: DataLoadingConfig.LiteralMapFormat + PROTO: DataLoadingConfig.LiteralMapFormat + ENABLED_FIELD_NUMBER: _ClassVar[int] + INPUT_PATH_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + IO_STRATEGY_FIELD_NUMBER: _ClassVar[int] + enabled: bool + input_path: str + output_path: str + format: DataLoadingConfig.LiteralMapFormat + io_strategy: IOStrategy + def __init__(self, enabled: bool = ..., input_path: _Optional[str] = ..., output_path: _Optional[str] = ..., format: _Optional[_Union[DataLoadingConfig.LiteralMapFormat, str]] = ..., io_strategy: _Optional[_Union[IOStrategy, _Mapping]] = ...) -> None: ... + +class K8sPod(_message.Message): + __slots__ = ["metadata", "pod_spec", "data_config"] + METADATA_FIELD_NUMBER: _ClassVar[int] + POD_SPEC_FIELD_NUMBER: _ClassVar[int] + DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + metadata: K8sObjectMetadata + pod_spec: _struct_pb2.Struct + data_config: DataLoadingConfig + def __init__(self, metadata: _Optional[_Union[K8sObjectMetadata, _Mapping]] = ..., pod_spec: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ...) -> None: ... + +class K8sObjectMetadata(_message.Message): + __slots__ = ["labels", "annotations"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class AnnotationsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + annotations: _containers.ScalarMap[str, str] + def __init__(self, labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Sql(_message.Message): + __slots__ = ["statement", "dialect"] + class Dialect(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[Sql.Dialect] + ANSI: _ClassVar[Sql.Dialect] + HIVE: _ClassVar[Sql.Dialect] + OTHER: _ClassVar[Sql.Dialect] + UNDEFINED: Sql.Dialect + ANSI: Sql.Dialect + HIVE: Sql.Dialect + OTHER: Sql.Dialect + STATEMENT_FIELD_NUMBER: _ClassVar[int] + DIALECT_FIELD_NUMBER: _ClassVar[int] + statement: str + dialect: Sql.Dialect + def __init__(self, statement: _Optional[str] = ..., dialect: _Optional[_Union[Sql.Dialect, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py new file mode 100644 index 0000000000..e357c171df --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/types.proto\x12\rflyteidl.core\x1a\x1cgoogle/protobuf/struct.proto\"\xa1\x02\n\nSchemaType\x12@\n\x07\x63olumns\x18\x03 \x03(\x0b\x32&.flyteidl.core.SchemaType.SchemaColumnR\x07\x63olumns\x1a\xd0\x01\n\x0cSchemaColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12K\n\x04type\x18\x02 \x01(\x0e\x32\x37.flyteidl.core.SchemaType.SchemaColumn.SchemaColumnTypeR\x04type\"_\n\x10SchemaColumnType\x12\x0b\n\x07INTEGER\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x0b\n\x07\x42OOLEAN\x10\x03\x12\x0c\n\x08\x44\x41TETIME\x10\x04\x12\x0c\n\x08\x44URATION\x10\x05\"\xc7\x02\n\x15StructuredDatasetType\x12L\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x32.flyteidl.core.StructuredDatasetType.DatasetColumnR\x07\x63olumns\x12\x16\n\x06\x66ormat\x18\x02 \x01(\tR\x06\x66ormat\x12\x30\n\x14\x65xternal_schema_type\x18\x03 \x01(\tR\x12\x65xternalSchemaType\x12\x32\n\x15\x65xternal_schema_bytes\x18\x04 \x01(\x0cR\x13\x65xternalSchemaBytes\x1a\x62\n\rDatasetColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12=\n\x0cliteral_type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x0bliteralType\"\xa7\x01\n\x08\x42lobType\x12\x16\n\x06\x66ormat\x18\x01 \x01(\tR\x06\x66ormat\x12R\n\x0e\x64imensionality\x18\x02 \x01(\x0e\x32*.flyteidl.core.BlobType.BlobDimensionalityR\x0e\x64imensionality\"/\n\x12\x42lobDimensionality\x12\n\n\x06SINGLE\x10\x00\x12\r\n\tMULTIPART\x10\x01\"\"\n\x08\x45numType\x12\x16\n\x06values\x18\x01 \x03(\tR\x06values\"C\n\tUnionType\x12\x36\n\x08variants\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x08variants\"!\n\rTypeStructure\x12\x10\n\x03tag\x18\x01 \x01(\tR\x03tag\"K\n\x0eTypeAnnotation\x12\x39\n\x0b\x61nnotations\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\x0b\x61nnotations\"\xbc\x05\n\x0bLiteralType\x12\x33\n\x06simple\x18\x01 \x01(\x0e\x32\x19.flyteidl.core.SimpleTypeH\x00R\x06simple\x12\x33\n\x06schema\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeH\x00R\x06schema\x12\x45\n\x0f\x63ollection_type\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0e\x63ollectionType\x12\x42\n\x0emap_value_type\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0cmapValueType\x12-\n\x04\x62lob\x18\x05 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeH\x00R\x04\x62lob\x12\x36\n\tenum_type\x18\x07 \x01(\x0b\x32\x17.flyteidl.core.EnumTypeH\x00R\x08\x65numType\x12^\n\x17structured_dataset_type\x18\x08 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeH\x00R\x15structuredDatasetType\x12\x39\n\nunion_type\x18\n \x01(\x0b\x32\x18.flyteidl.core.UnionTypeH\x00R\tunionType\x12\x33\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructR\x08metadata\x12=\n\nannotation\x18\t \x01(\x0b\x32\x1d.flyteidl.core.TypeAnnotationR\nannotation\x12:\n\tstructure\x18\x0b \x01(\x0b\x32\x1c.flyteidl.core.TypeStructureR\tstructureB\x06\n\x04type\"<\n\x0fOutputReference\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12\x10\n\x03var\x18\x02 \x01(\tR\x03var\"G\n\x05\x45rror\x12$\n\x0e\x66\x61iled_node_id\x18\x01 \x01(\tR\x0c\x66\x61iledNodeId\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message*\x86\x01\n\nSimpleType\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07INTEGER\x10\x01\x12\t\n\x05\x46LOAT\x10\x02\x12\n\n\x06STRING\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\x0c\n\x08\x44\x41TETIME\x10\x05\x12\x0c\n\x08\x44URATION\x10\x06\x12\n\n\x06\x42INARY\x10\x07\x12\t\n\x05\x45RROR\x10\x08\x12\n\n\x06STRUCT\x10\tB\xaa\x01\n\x11\x63om.flyteidl.coreB\nTypesProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.types_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTypesProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_SIMPLETYPE']._serialized_start=1922 + _globals['_SIMPLETYPE']._serialized_end=2056 + _globals['_SCHEMATYPE']._serialized_start=75 + _globals['_SCHEMATYPE']._serialized_end=364 + _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_start=156 + _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_end=364 + _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_start=269 + _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_end=364 + _globals['_STRUCTUREDDATASETTYPE']._serialized_start=367 + _globals['_STRUCTUREDDATASETTYPE']._serialized_end=694 + _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_start=596 + _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_end=694 + _globals['_BLOBTYPE']._serialized_start=697 + _globals['_BLOBTYPE']._serialized_end=864 + _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_start=817 + _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_end=864 + _globals['_ENUMTYPE']._serialized_start=866 + _globals['_ENUMTYPE']._serialized_end=900 + _globals['_UNIONTYPE']._serialized_start=902 + _globals['_UNIONTYPE']._serialized_end=969 + _globals['_TYPESTRUCTURE']._serialized_start=971 + _globals['_TYPESTRUCTURE']._serialized_end=1004 + _globals['_TYPEANNOTATION']._serialized_start=1006 + _globals['_TYPEANNOTATION']._serialized_end=1081 + _globals['_LITERALTYPE']._serialized_start=1084 + _globals['_LITERALTYPE']._serialized_end=1784 + _globals['_OUTPUTREFERENCE']._serialized_start=1786 + _globals['_OUTPUTREFERENCE']._serialized_end=1846 + _globals['_ERROR']._serialized_start=1848 + _globals['_ERROR']._serialized_end=1919 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi new file mode 100644 index 0000000000..c203e29192 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi @@ -0,0 +1,157 @@ +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class SimpleType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + NONE: _ClassVar[SimpleType] + INTEGER: _ClassVar[SimpleType] + FLOAT: _ClassVar[SimpleType] + STRING: _ClassVar[SimpleType] + BOOLEAN: _ClassVar[SimpleType] + DATETIME: _ClassVar[SimpleType] + DURATION: _ClassVar[SimpleType] + BINARY: _ClassVar[SimpleType] + ERROR: _ClassVar[SimpleType] + STRUCT: _ClassVar[SimpleType] +NONE: SimpleType +INTEGER: SimpleType +FLOAT: SimpleType +STRING: SimpleType +BOOLEAN: SimpleType +DATETIME: SimpleType +DURATION: SimpleType +BINARY: SimpleType +ERROR: SimpleType +STRUCT: SimpleType + +class SchemaType(_message.Message): + __slots__ = ["columns"] + class SchemaColumn(_message.Message): + __slots__ = ["name", "type"] + class SchemaColumnType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + INTEGER: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + FLOAT: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + STRING: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + BOOLEAN: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + DATETIME: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + DURATION: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + INTEGER: SchemaType.SchemaColumn.SchemaColumnType + FLOAT: SchemaType.SchemaColumn.SchemaColumnType + STRING: SchemaType.SchemaColumn.SchemaColumnType + BOOLEAN: SchemaType.SchemaColumn.SchemaColumnType + DATETIME: SchemaType.SchemaColumn.SchemaColumnType + DURATION: SchemaType.SchemaColumn.SchemaColumnType + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + name: str + type: SchemaType.SchemaColumn.SchemaColumnType + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[SchemaType.SchemaColumn.SchemaColumnType, str]] = ...) -> None: ... + COLUMNS_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedCompositeFieldContainer[SchemaType.SchemaColumn] + def __init__(self, columns: _Optional[_Iterable[_Union[SchemaType.SchemaColumn, _Mapping]]] = ...) -> None: ... + +class StructuredDatasetType(_message.Message): + __slots__ = ["columns", "format", "external_schema_type", "external_schema_bytes"] + class DatasetColumn(_message.Message): + __slots__ = ["name", "literal_type"] + NAME_FIELD_NUMBER: _ClassVar[int] + LITERAL_TYPE_FIELD_NUMBER: _ClassVar[int] + name: str + literal_type: LiteralType + def __init__(self, name: _Optional[str] = ..., literal_type: _Optional[_Union[LiteralType, _Mapping]] = ...) -> None: ... + COLUMNS_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedCompositeFieldContainer[StructuredDatasetType.DatasetColumn] + format: str + external_schema_type: str + external_schema_bytes: bytes + def __init__(self, columns: _Optional[_Iterable[_Union[StructuredDatasetType.DatasetColumn, _Mapping]]] = ..., format: _Optional[str] = ..., external_schema_type: _Optional[str] = ..., external_schema_bytes: _Optional[bytes] = ...) -> None: ... + +class BlobType(_message.Message): + __slots__ = ["format", "dimensionality"] + class BlobDimensionality(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + SINGLE: _ClassVar[BlobType.BlobDimensionality] + MULTIPART: _ClassVar[BlobType.BlobDimensionality] + SINGLE: BlobType.BlobDimensionality + MULTIPART: BlobType.BlobDimensionality + FORMAT_FIELD_NUMBER: _ClassVar[int] + DIMENSIONALITY_FIELD_NUMBER: _ClassVar[int] + format: str + dimensionality: BlobType.BlobDimensionality + def __init__(self, format: _Optional[str] = ..., dimensionality: _Optional[_Union[BlobType.BlobDimensionality, str]] = ...) -> None: ... + +class EnumType(_message.Message): + __slots__ = ["values"] + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, values: _Optional[_Iterable[str]] = ...) -> None: ... + +class UnionType(_message.Message): + __slots__ = ["variants"] + VARIANTS_FIELD_NUMBER: _ClassVar[int] + variants: _containers.RepeatedCompositeFieldContainer[LiteralType] + def __init__(self, variants: _Optional[_Iterable[_Union[LiteralType, _Mapping]]] = ...) -> None: ... + +class TypeStructure(_message.Message): + __slots__ = ["tag"] + TAG_FIELD_NUMBER: _ClassVar[int] + tag: str + def __init__(self, tag: _Optional[str] = ...) -> None: ... + +class TypeAnnotation(_message.Message): + __slots__ = ["annotations"] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + annotations: _struct_pb2.Struct + def __init__(self, annotations: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... + +class LiteralType(_message.Message): + __slots__ = ["simple", "schema", "collection_type", "map_value_type", "blob", "enum_type", "structured_dataset_type", "union_type", "metadata", "annotation", "structure"] + SIMPLE_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + COLLECTION_TYPE_FIELD_NUMBER: _ClassVar[int] + MAP_VALUE_TYPE_FIELD_NUMBER: _ClassVar[int] + BLOB_FIELD_NUMBER: _ClassVar[int] + ENUM_TYPE_FIELD_NUMBER: _ClassVar[int] + STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] + UNION_TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + ANNOTATION_FIELD_NUMBER: _ClassVar[int] + STRUCTURE_FIELD_NUMBER: _ClassVar[int] + simple: SimpleType + schema: SchemaType + collection_type: LiteralType + map_value_type: LiteralType + blob: BlobType + enum_type: EnumType + structured_dataset_type: StructuredDatasetType + union_type: UnionType + metadata: _struct_pb2.Struct + annotation: TypeAnnotation + structure: TypeStructure + def __init__(self, simple: _Optional[_Union[SimpleType, str]] = ..., schema: _Optional[_Union[SchemaType, _Mapping]] = ..., collection_type: _Optional[_Union[LiteralType, _Mapping]] = ..., map_value_type: _Optional[_Union[LiteralType, _Mapping]] = ..., blob: _Optional[_Union[BlobType, _Mapping]] = ..., enum_type: _Optional[_Union[EnumType, _Mapping]] = ..., structured_dataset_type: _Optional[_Union[StructuredDatasetType, _Mapping]] = ..., union_type: _Optional[_Union[UnionType, _Mapping]] = ..., metadata: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., annotation: _Optional[_Union[TypeAnnotation, _Mapping]] = ..., structure: _Optional[_Union[TypeStructure, _Mapping]] = ...) -> None: ... + +class OutputReference(_message.Message): + __slots__ = ["node_id", "var"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + VAR_FIELD_NUMBER: _ClassVar[int] + node_id: str + var: str + def __init__(self, node_id: _Optional[str] = ..., var: _Optional[str] = ...) -> None: ... + +class Error(_message.Message): + __slots__ = ["failed_node_id", "message"] + FAILED_NODE_ID_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + failed_node_id: str + message: str + def __init__(self, failed_node_id: _Optional[str] = ..., message: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py new file mode 100644 index 0000000000..6b826768c0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/workflow_closure.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$flyteidl/core/workflow_closure.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x81\x01\n\x0fWorkflowClosure\x12;\n\x08workflow\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08workflow\x12\x31\n\x05tasks\x18\x02 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasksB\xb4\x01\n\x11\x63om.flyteidl.coreB\x14WorkflowClosureProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_closure_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\024WorkflowClosureProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_WORKFLOWCLOSURE']._serialized_start=113 + _globals['_WORKFLOWCLOSURE']._serialized_end=242 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi new file mode 100644 index 0000000000..ae93cec11f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi @@ -0,0 +1,16 @@ +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowClosure(_message.Message): + __slots__ = ["workflow", "tasks"] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + TASKS_FIELD_NUMBER: _ClassVar[int] + workflow: _workflow_pb2.WorkflowTemplate + tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] + def __init__(self, workflow: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py new file mode 100644 index 0000000000..5272c8babc --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/workflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import condition_pb2 as flyteidl_dot_core_dot_condition__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/workflow.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/condition.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\"{\n\x07IfBlock\x12>\n\tcondition\x18\x01 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\tcondition\x12\x30\n\tthen_node\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x08thenNode\"\xd4\x01\n\x0bIfElseBlock\x12*\n\x04\x63\x61se\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.IfBlockR\x04\x63\x61se\x12,\n\x05other\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.IfBlockR\x05other\x12\x32\n\telse_node\x18\x03 \x01(\x0b\x32\x13.flyteidl.core.NodeH\x00R\x08\x65lseNode\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rrorB\t\n\x07\x64\x65\x66\x61ult\"A\n\nBranchNode\x12\x33\n\x07if_else\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.IfElseBlockR\x06ifElse\"\x97\x01\n\x08TaskNode\x12>\n\x0creference_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0breferenceId\x12>\n\toverrides\x18\x02 \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverridesB\x0b\n\treference\"\xa6\x01\n\x0cWorkflowNode\x12\x42\n\x0elaunchplan_ref\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\rlaunchplanRef\x12\x45\n\x10sub_workflow_ref\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0esubWorkflowRefB\x0b\n\treference\"/\n\x10\x41pproveCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\"\x90\x01\n\x0fSignalCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12\x30\n\x14output_variable_name\x18\x03 \x01(\tR\x12outputVariableName\"G\n\x0eSleepCondition\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\"\xc5\x01\n\x08GateNode\x12;\n\x07\x61pprove\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.ApproveConditionH\x00R\x07\x61pprove\x12\x38\n\x06signal\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SignalConditionH\x00R\x06signal\x12\x35\n\x05sleep\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.SleepConditionH\x00R\x05sleepB\x0b\n\tcondition\"\xbf\x01\n\tArrayNode\x12\'\n\x04node\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x04node\x12 \n\x0bparallelism\x18\x02 \x01(\rR\x0bparallelism\x12%\n\rmin_successes\x18\x03 \x01(\rH\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteria\"\xce\x01\n\x0cNodeMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12&\n\rinterruptible\x18\x06 \x01(\x08H\x00R\rinterruptibleB\x15\n\x13interruptible_value\"/\n\x05\x41lias\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x14\n\x05\x61lias\x18\x02 \x01(\tR\x05\x61lias\"\x9f\x04\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x37\n\x08metadata\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.NodeMetadataR\x08metadata\x12.\n\x06inputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x06inputs\x12*\n\x11upstream_node_ids\x18\x04 \x03(\tR\x0fupstreamNodeIds\x12;\n\x0eoutput_aliases\x18\x05 \x03(\x0b\x32\x14.flyteidl.core.AliasR\routputAliases\x12\x36\n\ttask_node\x18\x06 \x01(\x0b\x32\x17.flyteidl.core.TaskNodeH\x00R\x08taskNode\x12\x42\n\rworkflow_node\x18\x07 \x01(\x0b\x32\x1b.flyteidl.core.WorkflowNodeH\x00R\x0cworkflowNode\x12<\n\x0b\x62ranch_node\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.BranchNodeH\x00R\nbranchNode\x12\x36\n\tgate_node\x18\t \x01(\x0b\x32\x17.flyteidl.core.GateNodeH\x00R\x08gateNode\x12\x39\n\narray_node\x18\n \x01(\x0b\x32\x18.flyteidl.core.ArrayNodeH\x00R\tarrayNodeB\x08\n\x06target\"\xfc\x02\n\x10WorkflowMetadata\x12M\n\x12quality_of_service\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12N\n\non_failure\x18\x02 \x01(\x0e\x32/.flyteidl.core.WorkflowMetadata.OnFailurePolicyR\tonFailure\x12=\n\x04tags\x18\x03 \x03(\x0b\x32).flyteidl.core.WorkflowMetadata.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"Q\n\x0fOnFailurePolicy\x12\x14\n\x10\x46\x41IL_IMMEDIATELY\x10\x00\x12(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\x10\x01\"@\n\x18WorkflowMetadataDefaults\x12$\n\rinterruptible\x18\x01 \x01(\x08R\rinterruptible\"\xa2\x03\n\x10WorkflowTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowMetadataR\x08metadata\x12;\n\tinterface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12)\n\x05nodes\x18\x04 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12\x30\n\x07outputs\x18\x05 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x36\n\x0c\x66\x61ilure_node\x18\x06 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x0b\x66\x61ilureNode\x12T\n\x11metadata_defaults\x18\x07 \x01(\x0b\x32\'.flyteidl.core.WorkflowMetadataDefaultsR\x10metadataDefaults\"K\n\x11TaskNodeOverrides\x12\x36\n\tresources\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresourcesB\xad\x01\n\x11\x63om.flyteidl.coreB\rWorkflowProtoP\x01Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rWorkflowProtoP\001Z4github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _WORKFLOWMETADATA_TAGSENTRY._options = None + _WORKFLOWMETADATA_TAGSENTRY._serialized_options = b'8\001' + _globals['_IFBLOCK']._serialized_start=318 + _globals['_IFBLOCK']._serialized_end=441 + _globals['_IFELSEBLOCK']._serialized_start=444 + _globals['_IFELSEBLOCK']._serialized_end=656 + _globals['_BRANCHNODE']._serialized_start=658 + _globals['_BRANCHNODE']._serialized_end=723 + _globals['_TASKNODE']._serialized_start=726 + _globals['_TASKNODE']._serialized_end=877 + _globals['_WORKFLOWNODE']._serialized_start=880 + _globals['_WORKFLOWNODE']._serialized_end=1046 + _globals['_APPROVECONDITION']._serialized_start=1048 + _globals['_APPROVECONDITION']._serialized_end=1095 + _globals['_SIGNALCONDITION']._serialized_start=1098 + _globals['_SIGNALCONDITION']._serialized_end=1242 + _globals['_SLEEPCONDITION']._serialized_start=1244 + _globals['_SLEEPCONDITION']._serialized_end=1315 + _globals['_GATENODE']._serialized_start=1318 + _globals['_GATENODE']._serialized_end=1515 + _globals['_ARRAYNODE']._serialized_start=1518 + _globals['_ARRAYNODE']._serialized_end=1709 + _globals['_NODEMETADATA']._serialized_start=1712 + _globals['_NODEMETADATA']._serialized_end=1918 + _globals['_ALIAS']._serialized_start=1920 + _globals['_ALIAS']._serialized_end=1967 + _globals['_NODE']._serialized_start=1970 + _globals['_NODE']._serialized_end=2513 + _globals['_WORKFLOWMETADATA']._serialized_start=2516 + _globals['_WORKFLOWMETADATA']._serialized_end=2896 + _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_start=2758 + _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_end=2813 + _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_start=2815 + _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_end=2896 + _globals['_WORKFLOWMETADATADEFAULTS']._serialized_start=2898 + _globals['_WORKFLOWMETADATADEFAULTS']._serialized_end=2962 + _globals['_WORKFLOWTEMPLATE']._serialized_start=2965 + _globals['_WORKFLOWTEMPLATE']._serialized_end=3383 + _globals['_TASKNODEOVERRIDES']._serialized_start=3385 + _globals['_TASKNODEOVERRIDES']._serialized_end=3460 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi new file mode 100644 index 0000000000..95a108abcd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi @@ -0,0 +1,199 @@ +from flyteidl.core import condition_pb2 as _condition_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import types_pb2 as _types_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class IfBlock(_message.Message): + __slots__ = ["condition", "then_node"] + CONDITION_FIELD_NUMBER: _ClassVar[int] + THEN_NODE_FIELD_NUMBER: _ClassVar[int] + condition: _condition_pb2.BooleanExpression + then_node: Node + def __init__(self, condition: _Optional[_Union[_condition_pb2.BooleanExpression, _Mapping]] = ..., then_node: _Optional[_Union[Node, _Mapping]] = ...) -> None: ... + +class IfElseBlock(_message.Message): + __slots__ = ["case", "other", "else_node", "error"] + CASE_FIELD_NUMBER: _ClassVar[int] + OTHER_FIELD_NUMBER: _ClassVar[int] + ELSE_NODE_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + case: IfBlock + other: _containers.RepeatedCompositeFieldContainer[IfBlock] + else_node: Node + error: _types_pb2.Error + def __init__(self, case: _Optional[_Union[IfBlock, _Mapping]] = ..., other: _Optional[_Iterable[_Union[IfBlock, _Mapping]]] = ..., else_node: _Optional[_Union[Node, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ...) -> None: ... + +class BranchNode(_message.Message): + __slots__ = ["if_else"] + IF_ELSE_FIELD_NUMBER: _ClassVar[int] + if_else: IfElseBlock + def __init__(self, if_else: _Optional[_Union[IfElseBlock, _Mapping]] = ...) -> None: ... + +class TaskNode(_message.Message): + __slots__ = ["reference_id", "overrides"] + REFERENCE_ID_FIELD_NUMBER: _ClassVar[int] + OVERRIDES_FIELD_NUMBER: _ClassVar[int] + reference_id: _identifier_pb2.Identifier + overrides: TaskNodeOverrides + def __init__(self, reference_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., overrides: _Optional[_Union[TaskNodeOverrides, _Mapping]] = ...) -> None: ... + +class WorkflowNode(_message.Message): + __slots__ = ["launchplan_ref", "sub_workflow_ref"] + LAUNCHPLAN_REF_FIELD_NUMBER: _ClassVar[int] + SUB_WORKFLOW_REF_FIELD_NUMBER: _ClassVar[int] + launchplan_ref: _identifier_pb2.Identifier + sub_workflow_ref: _identifier_pb2.Identifier + def __init__(self, launchplan_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., sub_workflow_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class ApproveCondition(_message.Message): + __slots__ = ["signal_id"] + SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] + signal_id: str + def __init__(self, signal_id: _Optional[str] = ...) -> None: ... + +class SignalCondition(_message.Message): + __slots__ = ["signal_id", "type", "output_variable_name"] + SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_VARIABLE_NAME_FIELD_NUMBER: _ClassVar[int] + signal_id: str + type: _types_pb2.LiteralType + output_variable_name: str + def __init__(self, signal_id: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., output_variable_name: _Optional[str] = ...) -> None: ... + +class SleepCondition(_message.Message): + __slots__ = ["duration"] + DURATION_FIELD_NUMBER: _ClassVar[int] + duration: _duration_pb2.Duration + def __init__(self, duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class GateNode(_message.Message): + __slots__ = ["approve", "signal", "sleep"] + APPROVE_FIELD_NUMBER: _ClassVar[int] + SIGNAL_FIELD_NUMBER: _ClassVar[int] + SLEEP_FIELD_NUMBER: _ClassVar[int] + approve: ApproveCondition + signal: SignalCondition + sleep: SleepCondition + def __init__(self, approve: _Optional[_Union[ApproveCondition, _Mapping]] = ..., signal: _Optional[_Union[SignalCondition, _Mapping]] = ..., sleep: _Optional[_Union[SleepCondition, _Mapping]] = ...) -> None: ... + +class ArrayNode(_message.Message): + __slots__ = ["node", "parallelism", "min_successes", "min_success_ratio"] + NODE_FIELD_NUMBER: _ClassVar[int] + PARALLELISM_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] + node: Node + parallelism: int + min_successes: int + min_success_ratio: float + def __init__(self, node: _Optional[_Union[Node, _Mapping]] = ..., parallelism: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... + +class NodeMetadata(_message.Message): + __slots__ = ["name", "timeout", "retries", "interruptible"] + NAME_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_FIELD_NUMBER: _ClassVar[int] + RETRIES_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + name: str + timeout: _duration_pb2.Duration + retries: _literals_pb2.RetryStrategy + interruptible: bool + def __init__(self, name: _Optional[str] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., interruptible: bool = ...) -> None: ... + +class Alias(_message.Message): + __slots__ = ["var", "alias"] + VAR_FIELD_NUMBER: _ClassVar[int] + ALIAS_FIELD_NUMBER: _ClassVar[int] + var: str + alias: str + def __init__(self, var: _Optional[str] = ..., alias: _Optional[str] = ...) -> None: ... + +class Node(_message.Message): + __slots__ = ["id", "metadata", "inputs", "upstream_node_ids", "output_aliases", "task_node", "workflow_node", "branch_node", "gate_node", "array_node"] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + UPSTREAM_NODE_IDS_FIELD_NUMBER: _ClassVar[int] + OUTPUT_ALIASES_FIELD_NUMBER: _ClassVar[int] + TASK_NODE_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_NODE_FIELD_NUMBER: _ClassVar[int] + BRANCH_NODE_FIELD_NUMBER: _ClassVar[int] + GATE_NODE_FIELD_NUMBER: _ClassVar[int] + ARRAY_NODE_FIELD_NUMBER: _ClassVar[int] + id: str + metadata: NodeMetadata + inputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] + upstream_node_ids: _containers.RepeatedScalarFieldContainer[str] + output_aliases: _containers.RepeatedCompositeFieldContainer[Alias] + task_node: TaskNode + workflow_node: WorkflowNode + branch_node: BranchNode + gate_node: GateNode + array_node: ArrayNode + def __init__(self, id: _Optional[str] = ..., metadata: _Optional[_Union[NodeMetadata, _Mapping]] = ..., inputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., upstream_node_ids: _Optional[_Iterable[str]] = ..., output_aliases: _Optional[_Iterable[_Union[Alias, _Mapping]]] = ..., task_node: _Optional[_Union[TaskNode, _Mapping]] = ..., workflow_node: _Optional[_Union[WorkflowNode, _Mapping]] = ..., branch_node: _Optional[_Union[BranchNode, _Mapping]] = ..., gate_node: _Optional[_Union[GateNode, _Mapping]] = ..., array_node: _Optional[_Union[ArrayNode, _Mapping]] = ...) -> None: ... + +class WorkflowMetadata(_message.Message): + __slots__ = ["quality_of_service", "on_failure", "tags"] + class OnFailurePolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FAIL_IMMEDIATELY: _ClassVar[WorkflowMetadata.OnFailurePolicy] + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: _ClassVar[WorkflowMetadata.OnFailurePolicy] + FAIL_IMMEDIATELY: WorkflowMetadata.OnFailurePolicy + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: WorkflowMetadata.OnFailurePolicy + class TagsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + ON_FAILURE_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + quality_of_service: _execution_pb2.QualityOfService + on_failure: WorkflowMetadata.OnFailurePolicy + tags: _containers.ScalarMap[str, str] + def __init__(self, quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., on_failure: _Optional[_Union[WorkflowMetadata.OnFailurePolicy, str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class WorkflowMetadataDefaults(_message.Message): + __slots__ = ["interruptible"] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + interruptible: bool + def __init__(self, interruptible: bool = ...) -> None: ... + +class WorkflowTemplate(_message.Message): + __slots__ = ["id", "metadata", "interface", "nodes", "outputs", "failure_node", "metadata_defaults"] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + INTERFACE_FIELD_NUMBER: _ClassVar[int] + NODES_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FAILURE_NODE_FIELD_NUMBER: _ClassVar[int] + METADATA_DEFAULTS_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + metadata: WorkflowMetadata + interface: _interface_pb2.TypedInterface + nodes: _containers.RepeatedCompositeFieldContainer[Node] + outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] + failure_node: Node + metadata_defaults: WorkflowMetadataDefaults + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., metadata: _Optional[_Union[WorkflowMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., nodes: _Optional[_Iterable[_Union[Node, _Mapping]]] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., failure_node: _Optional[_Union[Node, _Mapping]] = ..., metadata_defaults: _Optional[_Union[WorkflowMetadataDefaults, _Mapping]] = ...) -> None: ... + +class TaskNodeOverrides(_message.Message): + __slots__ = ["resources"] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + resources: _tasks_pb2.Resources + def __init__(self, resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py new file mode 100644 index 0000000000..2bffde9896 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py @@ -0,0 +1,114 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/datacatalog/datacatalog.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"F\n\x14\x43reateDatasetRequest\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x17\n\x15\x43reateDatasetResponse\"E\n\x11GetDatasetRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"D\n\x12GetDatasetResponse\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x96\x01\n\x12GetArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"H\n\x13GetArtifactResponse\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"J\n\x15\x43reateArtifactRequest\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"\x18\n\x16\x43reateArtifactResponse\"3\n\rAddTagRequest\x12\"\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.TagR\x03tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xbf\x01\n\x14ListArtifactsRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12\x35\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"k\n\x15ListArtifactsResponse\x12\x33\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.ArtifactR\tartifacts\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\x8c\x01\n\x13ListDatasetsRequest\x12\x35\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"g\n\x14ListDatasetsResponse\x12\x30\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.DatasetR\x08\x64\x61tasets\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\xc8\x01\n\x15UpdateArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagName\x12-\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61taB\x0e\n\x0cquery_handle\"9\n\x16UpdateArtifactResponse\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\"a\n\rReservationID\x12\x35\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\tdatasetId\x12\x19\n\x08tag_name\x18\x02 \x01(\tR\x07tagName\"\xc7\x01\n\x1dGetOrExtendReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\"\xa3\x02\n\x0bReservation\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\x12\x39\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x31\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\"\\\n\x1eGetOrExtendReservationResponse\x12:\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.ReservationR\x0breservation\"y\n\x19ReleaseReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\"\x1c\n\x1aReleaseReservationResponse\"\x8a\x01\n\x07\x44\x61taset\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x02id\x12\x31\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12$\n\rpartitionKeys\x18\x03 \x03(\tR\rpartitionKeys\"3\n\tPartition\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x7f\n\tDatasetID\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12\x12\n\x04UUID\x18\x05 \x01(\tR\x04UUID\"\xc7\x02\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x30\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12-\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12\x36\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.PartitionR\npartitions\x12$\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.TagR\x04tags\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"P\n\x0c\x41rtifactData\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"l\n\x03Tag\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x0b\x61rtifact_id\x18\x02 \x01(\tR\nartifactId\x12\x30\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"\x81\x01\n\x08Metadata\x12:\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntryR\x06keyMap\x1a\x39\n\x0bKeyMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"O\n\x10\x46ilterExpression\x12;\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilterR\x07\x66ilters\"\xce\x03\n\x14SinglePropertyFilter\x12?\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00R\ttagFilter\x12Q\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00R\x0fpartitionFilter\x12N\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00R\x0e\x61rtifactFilter\x12K\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00R\rdatasetFilter\x12P\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperatorR\x08operator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\"G\n\x16\x41rtifactPropertyFilter\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00R\nartifactIdB\n\n\x08property\"<\n\x11TagPropertyFilter\x12\x1b\n\x08tag_name\x18\x01 \x01(\tH\x00R\x07tagNameB\n\n\x08property\"[\n\x17PartitionPropertyFilter\x12\x34\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00R\x06keyValB\n\n\x08property\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x8b\x01\n\x15\x44\x61tasetPropertyFilter\x12\x1a\n\x07project\x18\x01 \x01(\tH\x00R\x07project\x12\x14\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x12\x18\n\x06\x64omain\x18\x03 \x01(\tH\x00R\x06\x64omain\x12\x1a\n\x07version\x18\x04 \x01(\tH\x00R\x07versionB\n\n\x08property\"\x93\x02\n\x11PaginationOptions\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12@\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKeyR\x07sortKey\x12\x46\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrderR\tsortOrder\"*\n\tSortOrder\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x1c\n\x07SortKey\x12\x11\n\rCREATION_TIME\x10\x00\x32\x86\x07\n\x0b\x44\x61taCatalog\x12V\n\rCreateDataset\x12!.datacatalog.CreateDatasetRequest\x1a\".datacatalog.CreateDatasetResponse\x12M\n\nGetDataset\x12\x1e.datacatalog.GetDatasetRequest\x1a\x1f.datacatalog.GetDatasetResponse\x12Y\n\x0e\x43reateArtifact\x12\".datacatalog.CreateArtifactRequest\x1a#.datacatalog.CreateArtifactResponse\x12P\n\x0bGetArtifact\x12\x1f.datacatalog.GetArtifactRequest\x1a .datacatalog.GetArtifactResponse\x12\x41\n\x06\x41\x64\x64Tag\x12\x1a.datacatalog.AddTagRequest\x1a\x1b.datacatalog.AddTagResponse\x12V\n\rListArtifacts\x12!.datacatalog.ListArtifactsRequest\x1a\".datacatalog.ListArtifactsResponse\x12S\n\x0cListDatasets\x12 .datacatalog.ListDatasetsRequest\x1a!.datacatalog.ListDatasetsResponse\x12Y\n\x0eUpdateArtifact\x12\".datacatalog.UpdateArtifactRequest\x1a#.datacatalog.UpdateArtifactResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseB\xac\x01\n\x0f\x63om.datacatalogB\x10\x44\x61tacatalogProtoP\x01Z;github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog\xa2\x02\x03\x44XX\xaa\x02\x0b\x44\x61tacatalog\xca\x02\x0b\x44\x61tacatalog\xe2\x02\x17\x44\x61tacatalog\\GPBMetadata\xea\x02\x0b\x44\x61tacatalogb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.datacatalog.datacatalog_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\017com.datacatalogB\020DatacatalogProtoP\001Z;github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog\242\002\003DXX\252\002\013Datacatalog\312\002\013Datacatalog\342\002\027Datacatalog\\GPBMetadata\352\002\013Datacatalog' + _METADATA_KEYMAPENTRY._options = None + _METADATA_KEYMAPENTRY._serialized_options = b'8\001' + _globals['_CREATEDATASETREQUEST']._serialized_start=150 + _globals['_CREATEDATASETREQUEST']._serialized_end=220 + _globals['_CREATEDATASETRESPONSE']._serialized_start=222 + _globals['_CREATEDATASETRESPONSE']._serialized_end=245 + _globals['_GETDATASETREQUEST']._serialized_start=247 + _globals['_GETDATASETREQUEST']._serialized_end=316 + _globals['_GETDATASETRESPONSE']._serialized_start=318 + _globals['_GETDATASETRESPONSE']._serialized_end=386 + _globals['_GETARTIFACTREQUEST']._serialized_start=389 + _globals['_GETARTIFACTREQUEST']._serialized_end=539 + _globals['_GETARTIFACTRESPONSE']._serialized_start=541 + _globals['_GETARTIFACTRESPONSE']._serialized_end=613 + _globals['_CREATEARTIFACTREQUEST']._serialized_start=615 + _globals['_CREATEARTIFACTREQUEST']._serialized_end=689 + _globals['_CREATEARTIFACTRESPONSE']._serialized_start=691 + _globals['_CREATEARTIFACTRESPONSE']._serialized_end=715 + _globals['_ADDTAGREQUEST']._serialized_start=717 + _globals['_ADDTAGREQUEST']._serialized_end=768 + _globals['_ADDTAGRESPONSE']._serialized_start=770 + _globals['_ADDTAGRESPONSE']._serialized_end=786 + _globals['_LISTARTIFACTSREQUEST']._serialized_start=789 + _globals['_LISTARTIFACTSREQUEST']._serialized_end=980 + _globals['_LISTARTIFACTSRESPONSE']._serialized_start=982 + _globals['_LISTARTIFACTSRESPONSE']._serialized_end=1089 + _globals['_LISTDATASETSREQUEST']._serialized_start=1092 + _globals['_LISTDATASETSREQUEST']._serialized_end=1232 + _globals['_LISTDATASETSRESPONSE']._serialized_start=1234 + _globals['_LISTDATASETSRESPONSE']._serialized_end=1337 + _globals['_UPDATEARTIFACTREQUEST']._serialized_start=1340 + _globals['_UPDATEARTIFACTREQUEST']._serialized_end=1540 + _globals['_UPDATEARTIFACTRESPONSE']._serialized_start=1542 + _globals['_UPDATEARTIFACTRESPONSE']._serialized_end=1599 + _globals['_RESERVATIONID']._serialized_start=1601 + _globals['_RESERVATIONID']._serialized_end=1698 + _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_start=1701 + _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_end=1900 + _globals['_RESERVATION']._serialized_start=1903 + _globals['_RESERVATION']._serialized_end=2194 + _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_start=2196 + _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_end=2288 + _globals['_RELEASERESERVATIONREQUEST']._serialized_start=2290 + _globals['_RELEASERESERVATIONREQUEST']._serialized_end=2411 + _globals['_RELEASERESERVATIONRESPONSE']._serialized_start=2413 + _globals['_RELEASERESERVATIONRESPONSE']._serialized_end=2441 + _globals['_DATASET']._serialized_start=2444 + _globals['_DATASET']._serialized_end=2582 + _globals['_PARTITION']._serialized_start=2584 + _globals['_PARTITION']._serialized_end=2635 + _globals['_DATASETID']._serialized_start=2637 + _globals['_DATASETID']._serialized_end=2764 + _globals['_ARTIFACT']._serialized_start=2767 + _globals['_ARTIFACT']._serialized_end=3094 + _globals['_ARTIFACTDATA']._serialized_start=3096 + _globals['_ARTIFACTDATA']._serialized_end=3176 + _globals['_TAG']._serialized_start=3178 + _globals['_TAG']._serialized_end=3286 + _globals['_METADATA']._serialized_start=3289 + _globals['_METADATA']._serialized_end=3418 + _globals['_METADATA_KEYMAPENTRY']._serialized_start=3361 + _globals['_METADATA_KEYMAPENTRY']._serialized_end=3418 + _globals['_FILTEREXPRESSION']._serialized_start=3420 + _globals['_FILTEREXPRESSION']._serialized_end=3499 + _globals['_SINGLEPROPERTYFILTER']._serialized_start=3502 + _globals['_SINGLEPROPERTYFILTER']._serialized_end=3964 + _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_start=3913 + _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_end=3945 + _globals['_ARTIFACTPROPERTYFILTER']._serialized_start=3966 + _globals['_ARTIFACTPROPERTYFILTER']._serialized_end=4037 + _globals['_TAGPROPERTYFILTER']._serialized_start=4039 + _globals['_TAGPROPERTYFILTER']._serialized_end=4099 + _globals['_PARTITIONPROPERTYFILTER']._serialized_start=4101 + _globals['_PARTITIONPROPERTYFILTER']._serialized_end=4192 + _globals['_KEYVALUEPAIR']._serialized_start=4194 + _globals['_KEYVALUEPAIR']._serialized_end=4248 + _globals['_DATASETPROPERTYFILTER']._serialized_start=4251 + _globals['_DATASETPROPERTYFILTER']._serialized_end=4390 + _globals['_PAGINATIONOPTIONS']._serialized_start=4393 + _globals['_PAGINATIONOPTIONS']._serialized_end=4668 + _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_start=4596 + _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_end=4638 + _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_start=4640 + _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_end=4668 + _globals['_DATACATALOG']._serialized_start=4671 + _globals['_DATACATALOG']._serialized_end=5573 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi new file mode 100644 index 0000000000..1e98a1489c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi @@ -0,0 +1,335 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class CreateDatasetRequest(_message.Message): + __slots__ = ["dataset"] + DATASET_FIELD_NUMBER: _ClassVar[int] + dataset: Dataset + def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... + +class CreateDatasetResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class GetDatasetRequest(_message.Message): + __slots__ = ["dataset"] + DATASET_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... + +class GetDatasetResponse(_message.Message): + __slots__ = ["dataset"] + DATASET_FIELD_NUMBER: _ClassVar[int] + dataset: Dataset + def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... + +class GetArtifactRequest(_message.Message): + __slots__ = ["dataset", "artifact_id", "tag_name"] + DATASET_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + artifact_id: str + tag_name: str + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ...) -> None: ... + +class GetArtifactResponse(_message.Message): + __slots__ = ["artifact"] + ARTIFACT_FIELD_NUMBER: _ClassVar[int] + artifact: Artifact + def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... + +class CreateArtifactRequest(_message.Message): + __slots__ = ["artifact"] + ARTIFACT_FIELD_NUMBER: _ClassVar[int] + artifact: Artifact + def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... + +class CreateArtifactResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class AddTagRequest(_message.Message): + __slots__ = ["tag"] + TAG_FIELD_NUMBER: _ClassVar[int] + tag: Tag + def __init__(self, tag: _Optional[_Union[Tag, _Mapping]] = ...) -> None: ... + +class AddTagResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ListArtifactsRequest(_message.Message): + __slots__ = ["dataset", "filter", "pagination"] + DATASET_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] + PAGINATION_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + filter: FilterExpression + pagination: PaginationOptions + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... + +class ListArtifactsResponse(_message.Message): + __slots__ = ["artifacts", "next_token"] + ARTIFACTS_FIELD_NUMBER: _ClassVar[int] + NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] + artifacts: _containers.RepeatedCompositeFieldContainer[Artifact] + next_token: str + def __init__(self, artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... + +class ListDatasetsRequest(_message.Message): + __slots__ = ["filter", "pagination"] + FILTER_FIELD_NUMBER: _ClassVar[int] + PAGINATION_FIELD_NUMBER: _ClassVar[int] + filter: FilterExpression + pagination: PaginationOptions + def __init__(self, filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... + +class ListDatasetsResponse(_message.Message): + __slots__ = ["datasets", "next_token"] + DATASETS_FIELD_NUMBER: _ClassVar[int] + NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] + datasets: _containers.RepeatedCompositeFieldContainer[Dataset] + next_token: str + def __init__(self, datasets: _Optional[_Iterable[_Union[Dataset, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... + +class UpdateArtifactRequest(_message.Message): + __slots__ = ["dataset", "artifact_id", "tag_name", "data"] + DATASET_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + artifact_id: str + tag_name: str + data: _containers.RepeatedCompositeFieldContainer[ArtifactData] + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ...) -> None: ... + +class UpdateArtifactResponse(_message.Message): + __slots__ = ["artifact_id"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + artifact_id: str + def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... + +class ReservationID(_message.Message): + __slots__ = ["dataset_id", "tag_name"] + DATASET_ID_FIELD_NUMBER: _ClassVar[int] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + dataset_id: DatasetID + tag_name: str + def __init__(self, dataset_id: _Optional[_Union[DatasetID, _Mapping]] = ..., tag_name: _Optional[str] = ...) -> None: ... + +class GetOrExtendReservationRequest(_message.Message): + __slots__ = ["reservation_id", "owner_id", "heartbeat_interval"] + RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] + reservation_id: ReservationID + owner_id: str + heartbeat_interval: _duration_pb2.Duration + def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class Reservation(_message.Message): + __slots__ = ["reservation_id", "owner_id", "heartbeat_interval", "expires_at", "metadata"] + RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + reservation_id: ReservationID + owner_id: str + heartbeat_interval: _duration_pb2.Duration + expires_at: _timestamp_pb2.Timestamp + metadata: Metadata + def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ...) -> None: ... + +class GetOrExtendReservationResponse(_message.Message): + __slots__ = ["reservation"] + RESERVATION_FIELD_NUMBER: _ClassVar[int] + reservation: Reservation + def __init__(self, reservation: _Optional[_Union[Reservation, _Mapping]] = ...) -> None: ... + +class ReleaseReservationRequest(_message.Message): + __slots__ = ["reservation_id", "owner_id"] + RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + reservation_id: ReservationID + owner_id: str + def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ...) -> None: ... + +class ReleaseReservationResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Dataset(_message.Message): + __slots__ = ["id", "metadata", "partitionKeys"] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + PARTITIONKEYS_FIELD_NUMBER: _ClassVar[int] + id: DatasetID + metadata: Metadata + partitionKeys: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[_Union[DatasetID, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitionKeys: _Optional[_Iterable[str]] = ...) -> None: ... + +class Partition(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + +class DatasetID(_message.Message): + __slots__ = ["project", "name", "domain", "version", "UUID"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + UUID_FIELD_NUMBER: _ClassVar[int] + project: str + name: str + domain: str + version: str + UUID: str + def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ..., UUID: _Optional[str] = ...) -> None: ... + +class Artifact(_message.Message): + __slots__ = ["id", "dataset", "data", "metadata", "partitions", "tags", "created_at"] + ID_FIELD_NUMBER: _ClassVar[int] + DATASET_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + PARTITIONS_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + id: str + dataset: DatasetID + data: _containers.RepeatedCompositeFieldContainer[ArtifactData] + metadata: Metadata + partitions: _containers.RepeatedCompositeFieldContainer[Partition] + tags: _containers.RepeatedCompositeFieldContainer[Tag] + created_at: _timestamp_pb2.Timestamp + def __init__(self, id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitions: _Optional[_Iterable[_Union[Partition, _Mapping]]] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ArtifactData(_message.Message): + __slots__ = ["name", "value"] + NAME_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + name: str + value: _literals_pb2.Literal + def __init__(self, name: _Optional[str] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... + +class Tag(_message.Message): + __slots__ = ["name", "artifact_id", "dataset"] + NAME_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + DATASET_FIELD_NUMBER: _ClassVar[int] + name: str + artifact_id: str + dataset: DatasetID + def __init__(self, name: _Optional[str] = ..., artifact_id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... + +class Metadata(_message.Message): + __slots__ = ["key_map"] + class KeyMapEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + KEY_MAP_FIELD_NUMBER: _ClassVar[int] + key_map: _containers.ScalarMap[str, str] + def __init__(self, key_map: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class FilterExpression(_message.Message): + __slots__ = ["filters"] + FILTERS_FIELD_NUMBER: _ClassVar[int] + filters: _containers.RepeatedCompositeFieldContainer[SinglePropertyFilter] + def __init__(self, filters: _Optional[_Iterable[_Union[SinglePropertyFilter, _Mapping]]] = ...) -> None: ... + +class SinglePropertyFilter(_message.Message): + __slots__ = ["tag_filter", "partition_filter", "artifact_filter", "dataset_filter", "operator"] + class ComparisonOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + EQUALS: _ClassVar[SinglePropertyFilter.ComparisonOperator] + EQUALS: SinglePropertyFilter.ComparisonOperator + TAG_FILTER_FIELD_NUMBER: _ClassVar[int] + PARTITION_FILTER_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_FILTER_FIELD_NUMBER: _ClassVar[int] + DATASET_FILTER_FIELD_NUMBER: _ClassVar[int] + OPERATOR_FIELD_NUMBER: _ClassVar[int] + tag_filter: TagPropertyFilter + partition_filter: PartitionPropertyFilter + artifact_filter: ArtifactPropertyFilter + dataset_filter: DatasetPropertyFilter + operator: SinglePropertyFilter.ComparisonOperator + def __init__(self, tag_filter: _Optional[_Union[TagPropertyFilter, _Mapping]] = ..., partition_filter: _Optional[_Union[PartitionPropertyFilter, _Mapping]] = ..., artifact_filter: _Optional[_Union[ArtifactPropertyFilter, _Mapping]] = ..., dataset_filter: _Optional[_Union[DatasetPropertyFilter, _Mapping]] = ..., operator: _Optional[_Union[SinglePropertyFilter.ComparisonOperator, str]] = ...) -> None: ... + +class ArtifactPropertyFilter(_message.Message): + __slots__ = ["artifact_id"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + artifact_id: str + def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... + +class TagPropertyFilter(_message.Message): + __slots__ = ["tag_name"] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + tag_name: str + def __init__(self, tag_name: _Optional[str] = ...) -> None: ... + +class PartitionPropertyFilter(_message.Message): + __slots__ = ["key_val"] + KEY_VAL_FIELD_NUMBER: _ClassVar[int] + key_val: KeyValuePair + def __init__(self, key_val: _Optional[_Union[KeyValuePair, _Mapping]] = ...) -> None: ... + +class KeyValuePair(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + +class DatasetPropertyFilter(_message.Message): + __slots__ = ["project", "name", "domain", "version"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + project: str + name: str + domain: str + version: str + def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ...) -> None: ... + +class PaginationOptions(_message.Message): + __slots__ = ["limit", "token", "sortKey", "sortOrder"] + class SortOrder(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DESCENDING: _ClassVar[PaginationOptions.SortOrder] + ASCENDING: _ClassVar[PaginationOptions.SortOrder] + DESCENDING: PaginationOptions.SortOrder + ASCENDING: PaginationOptions.SortOrder + class SortKey(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CREATION_TIME: _ClassVar[PaginationOptions.SortKey] + CREATION_TIME: PaginationOptions.SortKey + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORTKEY_FIELD_NUMBER: _ClassVar[int] + SORTORDER_FIELD_NUMBER: _ClassVar[int] + limit: int + token: str + sortKey: PaginationOptions.SortKey + sortOrder: PaginationOptions.SortOrder + def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., sortKey: _Optional[_Union[PaginationOptions.SortKey, str]] = ..., sortOrder: _Optional[_Union[PaginationOptions.SortOrder, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py new file mode 100644 index 0000000000..b78b2fa78b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py @@ -0,0 +1,398 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.datacatalog import datacatalog_pb2 as flyteidl_dot_datacatalog_dot_datacatalog__pb2 + + +class DataCatalogStub(object): + """ + Data Catalog service definition + Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + Artifacts are associated with a Dataset, and can be tagged for retrieval. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateDataset = channel.unary_unary( + '/datacatalog.DataCatalog/CreateDataset', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, + ) + self.GetDataset = channel.unary_unary( + '/datacatalog.DataCatalog/GetDataset', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, + ) + self.CreateArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/CreateArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, + ) + self.GetArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/GetArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, + ) + self.AddTag = channel.unary_unary( + '/datacatalog.DataCatalog/AddTag', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, + ) + self.ListArtifacts = channel.unary_unary( + '/datacatalog.DataCatalog/ListArtifacts', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, + ) + self.ListDatasets = channel.unary_unary( + '/datacatalog.DataCatalog/ListDatasets', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, + ) + self.UpdateArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/UpdateArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, + ) + self.GetOrExtendReservation = channel.unary_unary( + '/datacatalog.DataCatalog/GetOrExtendReservation', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, + ) + self.ReleaseReservation = channel.unary_unary( + '/datacatalog.DataCatalog/ReleaseReservation', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, + ) + + +class DataCatalogServicer(object): + """ + Data Catalog service definition + Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + Artifacts are associated with a Dataset, and can be tagged for retrieval. + """ + + def CreateDataset(self, request, context): + """Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + Each dataset can have one or more artifacts + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDataset(self, request, context): + """Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateArtifact(self, request, context): + """Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + files or data values + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetArtifact(self, request, context): + """Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddTag(self, request, context): + """Associate a tag with an artifact. Tags are unique within a Dataset. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListArtifacts(self, request, context): + """Return a paginated list of artifacts + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListDatasets(self, request, context): + """Return a paginated list of datasets + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateArtifact(self, request, context): + """Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetOrExtendReservation(self, request, context): + """Attempts to get or extend a reservation for the corresponding artifact. If one already exists + (ie. another entity owns the reservation) then that reservation is retrieved. + Once you acquire a reservation, you need to periodically extend the reservation with an + identical call. If the reservation is not extended before the defined expiration, it may be + acquired by another task. + Note: We may have multiple concurrent tasks with the same signature and the same input that + try to populate the same artifact at the same time. Thus with reservation, only one task can + run at a time, until the reservation expires. + Note: If task A does not extend the reservation in time and the reservation expires, another + task B may take over the reservation, resulting in two tasks A and B running in parallel. So + a third task C may get the Artifact from A or B, whichever writes last. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReleaseReservation(self, request, context): + """Release the reservation when the task holding the spot fails so that the other tasks + can grab the spot. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DataCatalogServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateDataset': grpc.unary_unary_rpc_method_handler( + servicer.CreateDataset, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.SerializeToString, + ), + 'GetDataset': grpc.unary_unary_rpc_method_handler( + servicer.GetDataset, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.SerializeToString, + ), + 'CreateArtifact': grpc.unary_unary_rpc_method_handler( + servicer.CreateArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.SerializeToString, + ), + 'GetArtifact': grpc.unary_unary_rpc_method_handler( + servicer.GetArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.SerializeToString, + ), + 'AddTag': grpc.unary_unary_rpc_method_handler( + servicer.AddTag, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.SerializeToString, + ), + 'ListArtifacts': grpc.unary_unary_rpc_method_handler( + servicer.ListArtifacts, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.SerializeToString, + ), + 'ListDatasets': grpc.unary_unary_rpc_method_handler( + servicer.ListDatasets, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.SerializeToString, + ), + 'UpdateArtifact': grpc.unary_unary_rpc_method_handler( + servicer.UpdateArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.SerializeToString, + ), + 'GetOrExtendReservation': grpc.unary_unary_rpc_method_handler( + servicer.GetOrExtendReservation, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.SerializeToString, + ), + 'ReleaseReservation': grpc.unary_unary_rpc_method_handler( + servicer.ReleaseReservation, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'datacatalog.DataCatalog', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DataCatalog(object): + """ + Data Catalog service definition + Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + Artifacts are associated with a Dataset, and can be tagged for retrieval. + """ + + @staticmethod + def CreateDataset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateDataset', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDataset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetDataset', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateArtifact(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateArtifact', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetArtifact(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetArtifact', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AddTag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/AddTag', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListArtifacts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListArtifacts', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListDatasets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListDatasets', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateArtifact(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/UpdateArtifact', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetOrExtendReservation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetOrExtendReservation', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReleaseReservation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ReleaseReservation', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/event/__init__.py b/flyteidl/gen/pb_python/flyteidl/event/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py new file mode 100644 index 0000000000..08b6e5c77d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/event/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/event/event.proto\x12\x0e\x66lyteidl.event\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xaa\x03\n\x16WorkflowExecutionEvent\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12<\n\x05phase\x18\x03 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1f\n\noutput_uri\x18\x05 \x01(\tH\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12<\n\x0boutput_data\x18\x07 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\noutputDataB\x0f\n\routput_result\"\x8f\t\n\x12NodeExecutionEvent\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x05 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x14 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\x06 \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x0f \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.event.WorkflowNodeMetadataH\x02R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\x0e \x01(\x0b\x32 .flyteidl.event.TaskNodeMetadataH\x02R\x10taskNodeMetadata\x12]\n\x14parent_task_metadata\x18\t \x01(\x0b\x32+.flyteidl.event.ParentTaskExecutionMetadataR\x12parentTaskMetadata\x12]\n\x14parent_node_metadata\x18\n \x01(\x0b\x32+.flyteidl.event.ParentNodeExecutionMetadataR\x12parentNodeMetadata\x12\x1f\n\x0bretry_group\x18\x0b \x01(\tR\nretryGroup\x12 \n\x0cspec_node_id\x18\x0c \x01(\tR\nspecNodeId\x12\x1b\n\tnode_name\x18\r \x01(\tR\x08nodeName\x12#\n\revent_version\x18\x10 \x01(\x05R\x0c\x65ventVersion\x12\x1b\n\tis_parent\x18\x11 \x01(\x08R\x08isParent\x12\x1d\n\nis_dynamic\x18\x12 \x01(\x08R\tisDynamic\x12\x19\n\x08\x64\x65\x63k_uri\x18\x13 \x01(\tR\x07\x64\x65\x63kUri\x12;\n\x0breported_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAtB\r\n\x0binput_valueB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"e\n\x14WorkflowNodeMetadata\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xf1\x02\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12W\n\x12reservation_status\x18\x03 \x01(\x0e\x32(.flyteidl.core.CatalogReservation.StatusR\x11reservationStatus\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.event.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bParentTaskExecutionMetadata\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"6\n\x1bParentNodeExecutionMetadata\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\"\xdc\x07\n\x12TaskExecutionEvent\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12_\n\x18parent_node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x15parentNodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x1f\n\x0bproducer_id\x18\x05 \x01(\tR\nproducerId\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12;\n\x0boccurred_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x08 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x13 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\t \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\n \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x11 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\x38\n\x0b\x63ustom_info\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12#\n\rphase_version\x18\x0c \x01(\rR\x0cphaseVersion\x12\x16\n\x06reason\x18\r \x01(\tR\x06reason\x12\x1b\n\ttask_type\x18\x0e \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x12 \x01(\x05R\x0c\x65ventVersion\x12;\n\x0breported_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAtB\r\n\x0binput_valueB\x0f\n\routput_result\"\x9e\x02\n\x14\x45xternalResourceInfo\x12\x1f\n\x0b\x65xternal_id\x18\x01 \x01(\tR\nexternalId\x12\x14\n\x05index\x18\x02 \x01(\rR\x05index\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x44\n\x0c\x63\x61\x63he_status\x18\x05 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\"[\n\x10ResourcePoolInfo\x12)\n\x10\x61llocation_token\x18\x01 \x01(\tR\x0f\x61llocationToken\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\x9d\x03\n\x15TaskExecutionMetadata\x12%\n\x0egenerated_name\x18\x01 \x01(\tR\rgeneratedName\x12S\n\x12\x65xternal_resources\x18\x02 \x03(\x0b\x32$.flyteidl.event.ExternalResourceInfoR\x11\x65xternalResources\x12N\n\x12resource_pool_info\x18\x03 \x03(\x0b\x32 .flyteidl.event.ResourcePoolInfoR\x10resourcePoolInfo\x12+\n\x11plugin_identifier\x18\x04 \x01(\tR\x10pluginIdentifier\x12Z\n\x0einstance_class\x18\x10 \x01(\x0e\x32\x33.flyteidl.event.TaskExecutionMetadata.InstanceClassR\rinstanceClass\"/\n\rInstanceClass\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x11\n\rINTERRUPTIBLE\x10\x01\x42\xb0\x01\n\x12\x63om.flyteidl.eventB\nEventProtoP\x01Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.event.event_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\nEventProtoP\001Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event' + _globals['_WORKFLOWEXECUTIONEVENT']._serialized_start=262 + _globals['_WORKFLOWEXECUTIONEVENT']._serialized_end=688 + _globals['_NODEEXECUTIONEVENT']._serialized_start=691 + _globals['_NODEEXECUTIONEVENT']._serialized_end=1858 + _globals['_WORKFLOWNODEMETADATA']._serialized_start=1860 + _globals['_WORKFLOWNODEMETADATA']._serialized_end=1961 + _globals['_TASKNODEMETADATA']._serialized_start=1964 + _globals['_TASKNODEMETADATA']._serialized_end=2333 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2336 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2542 + _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_start=2544 + _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_end=2629 + _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_start=2631 + _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_end=2685 + _globals['_TASKEXECUTIONEVENT']._serialized_start=2688 + _globals['_TASKEXECUTIONEVENT']._serialized_end=3676 + _globals['_EXTERNALRESOURCEINFO']._serialized_start=3679 + _globals['_EXTERNALRESOURCEINFO']._serialized_end=3965 + _globals['_RESOURCEPOOLINFO']._serialized_start=3967 + _globals['_RESOURCEPOOLINFO']._serialized_end=4058 + _globals['_TASKEXECUTIONMETADATA']._serialized_start=4061 + _globals['_TASKEXECUTIONMETADATA']._serialized_end=4474 + _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_start=4427 + _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_end=4474 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi new file mode 100644 index 0000000000..540d985730 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi @@ -0,0 +1,206 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import catalog_pb2 as _catalog_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowExecutionEvent(_message.Message): + __slots__ = ["execution_id", "producer_id", "phase", "occurred_at", "output_uri", "error", "output_data"] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + execution_id: _identifier_pb2.WorkflowExecutionIdentifier + producer_id: str + phase: _execution_pb2.WorkflowExecution.Phase + occurred_at: _timestamp_pb2.Timestamp + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class NodeExecutionEvent(_message.Message): + __slots__ = ["id", "producer_id", "phase", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "workflow_node_metadata", "task_node_metadata", "parent_task_metadata", "parent_node_metadata", "retry_group", "spec_node_id", "node_name", "event_version", "is_parent", "is_dynamic", "deck_uri", "reported_at"] + ID_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + INPUT_DATA_FIELD_NUMBER: _ClassVar[int] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + PARENT_TASK_METADATA_FIELD_NUMBER: _ClassVar[int] + PARENT_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] + SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] + NODE_NAME_FIELD_NUMBER: _ClassVar[int] + EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] + IS_PARENT_FIELD_NUMBER: _ClassVar[int] + IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] + DECK_URI_FIELD_NUMBER: _ClassVar[int] + REPORTED_AT_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + producer_id: str + phase: _execution_pb2.NodeExecution.Phase + occurred_at: _timestamp_pb2.Timestamp + input_uri: str + input_data: _literals_pb2.LiteralMap + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + workflow_node_metadata: WorkflowNodeMetadata + task_node_metadata: TaskNodeMetadata + parent_task_metadata: ParentTaskExecutionMetadata + parent_node_metadata: ParentNodeExecutionMetadata + retry_group: str + spec_node_id: str + node_name: str + event_version: int + is_parent: bool + is_dynamic: bool + deck_uri: str + reported_at: _timestamp_pb2.Timestamp + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., parent_task_metadata: _Optional[_Union[ParentTaskExecutionMetadata, _Mapping]] = ..., parent_node_metadata: _Optional[_Union[ParentNodeExecutionMetadata, _Mapping]] = ..., retry_group: _Optional[str] = ..., spec_node_id: _Optional[str] = ..., node_name: _Optional[str] = ..., event_version: _Optional[int] = ..., is_parent: bool = ..., is_dynamic: bool = ..., deck_uri: _Optional[str] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class WorkflowNodeMetadata(_message.Message): + __slots__ = ["execution_id"] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + execution_id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskNodeMetadata(_message.Message): + __slots__ = ["cache_status", "catalog_key", "reservation_status", "checkpoint_uri", "dynamic_workflow"] + CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] + CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] + RESERVATION_STATUS_FIELD_NUMBER: _ClassVar[int] + CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + cache_status: _catalog_pb2.CatalogCacheStatus + catalog_key: _catalog_pb2.CatalogMetadata + reservation_status: _catalog_pb2.CatalogReservation.Status + checkpoint_uri: str + dynamic_workflow: DynamicWorkflowNodeMetadata + def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., reservation_status: _Optional[_Union[_catalog_pb2.CatalogReservation.Status, str]] = ..., checkpoint_uri: _Optional[str] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ...) -> None: ... + +class DynamicWorkflowNodeMetadata(_message.Message): + __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] + ID_FIELD_NUMBER: _ClassVar[int] + COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + compiled_workflow: _compiler_pb2.CompiledWorkflowClosure + dynamic_job_spec_uri: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... + +class ParentTaskExecutionMetadata(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class ParentNodeExecutionMetadata(_message.Message): + __slots__ = ["node_id"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + node_id: str + def __init__(self, node_id: _Optional[str] = ...) -> None: ... + +class TaskExecutionEvent(_message.Message): + __slots__ = ["task_id", "parent_node_execution_id", "retry_attempt", "phase", "producer_id", "logs", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "custom_info", "phase_version", "reason", "task_type", "metadata", "event_version", "reported_at"] + TASK_ID_FIELD_NUMBER: _ClassVar[int] + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + LOGS_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + INPUT_DATA_FIELD_NUMBER: _ClassVar[int] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] + PHASE_VERSION_FIELD_NUMBER: _ClassVar[int] + REASON_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] + REPORTED_AT_FIELD_NUMBER: _ClassVar[int] + task_id: _identifier_pb2.Identifier + parent_node_execution_id: _identifier_pb2.NodeExecutionIdentifier + retry_attempt: int + phase: _execution_pb2.TaskExecution.Phase + producer_id: str + logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] + occurred_at: _timestamp_pb2.Timestamp + input_uri: str + input_data: _literals_pb2.LiteralMap + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + custom_info: _struct_pb2.Struct + phase_version: int + reason: str + task_type: str + metadata: TaskExecutionMetadata + event_version: int + reported_at: _timestamp_pb2.Timestamp + def __init__(self, task_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., parent_node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., producer_id: _Optional[str] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., phase_version: _Optional[int] = ..., reason: _Optional[str] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ExternalResourceInfo(_message.Message): + __slots__ = ["external_id", "index", "retry_attempt", "phase", "cache_status", "logs"] + EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int] + INDEX_FIELD_NUMBER: _ClassVar[int] + RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] + LOGS_FIELD_NUMBER: _ClassVar[int] + external_id: str + index: int + retry_attempt: int + phase: _execution_pb2.TaskExecution.Phase + cache_status: _catalog_pb2.CatalogCacheStatus + logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] + def __init__(self, external_id: _Optional[str] = ..., index: _Optional[int] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ...) -> None: ... + +class ResourcePoolInfo(_message.Message): + __slots__ = ["allocation_token", "namespace"] + ALLOCATION_TOKEN_FIELD_NUMBER: _ClassVar[int] + NAMESPACE_FIELD_NUMBER: _ClassVar[int] + allocation_token: str + namespace: str + def __init__(self, allocation_token: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... + +class TaskExecutionMetadata(_message.Message): + __slots__ = ["generated_name", "external_resources", "resource_pool_info", "plugin_identifier", "instance_class"] + class InstanceClass(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DEFAULT: _ClassVar[TaskExecutionMetadata.InstanceClass] + INTERRUPTIBLE: _ClassVar[TaskExecutionMetadata.InstanceClass] + DEFAULT: TaskExecutionMetadata.InstanceClass + INTERRUPTIBLE: TaskExecutionMetadata.InstanceClass + GENERATED_NAME_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESOURCE_POOL_INFO_FIELD_NUMBER: _ClassVar[int] + PLUGIN_IDENTIFIER_FIELD_NUMBER: _ClassVar[int] + INSTANCE_CLASS_FIELD_NUMBER: _ClassVar[int] + generated_name: str + external_resources: _containers.RepeatedCompositeFieldContainer[ExternalResourceInfo] + resource_pool_info: _containers.RepeatedCompositeFieldContainer[ResourcePoolInfo] + plugin_identifier: str + instance_class: TaskExecutionMetadata.InstanceClass + def __init__(self, generated_name: _Optional[str] = ..., external_resources: _Optional[_Iterable[_Union[ExternalResourceInfo, _Mapping]]] = ..., resource_pool_info: _Optional[_Iterable[_Union[ResourcePoolInfo, _Mapping]]] = ..., plugin_identifier: _Optional[str] = ..., instance_class: _Optional[_Union[TaskExecutionMetadata.InstanceClass, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py new file mode 100644 index 0000000000..3ba446caf0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/array_job.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/plugins/array_job.proto\x12\x10\x66lyteidl.plugins\"\xa9\x01\n\x08\x41rrayJob\x12 \n\x0bparallelism\x18\x01 \x01(\x03R\x0bparallelism\x12\x12\n\x04size\x18\x02 \x01(\x03R\x04size\x12%\n\rmin_successes\x18\x03 \x01(\x03H\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteriaB\xbf\x01\n\x14\x63om.flyteidl.pluginsB\rArrayJobProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.array_job_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rArrayJobProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_ARRAYJOB']._serialized_start=55 + _globals['_ARRAYJOB']._serialized_end=224 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi new file mode 100644 index 0000000000..160cb5f007 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi @@ -0,0 +1,17 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class ArrayJob(_message.Message): + __slots__ = ["parallelism", "size", "min_successes", "min_success_ratio"] + PARALLELISM_FIELD_NUMBER: _ClassVar[int] + SIZE_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] + parallelism: int + size: int + min_successes: int + min_success_ratio: float + def __init__(self, parallelism: _Optional[int] = ..., size: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py new file mode 100644 index 0000000000..65c5a8d691 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/dask.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/plugins/dask.proto\x12\x10\x66lyteidl.plugins\x1a\x19\x66lyteidl/core/tasks.proto\"\x85\x01\n\x07\x44\x61skJob\x12=\n\tscheduler\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.DaskSchedulerR\tscheduler\x12;\n\x07workers\x18\x02 \x01(\x0b\x32!.flyteidl.plugins.DaskWorkerGroupR\x07workers\"]\n\rDaskScheduler\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\"\x8b\x01\n\x0f\x44\x61skWorkerGroup\x12*\n\x11number_of_workers\x18\x01 \x01(\rR\x0fnumberOfWorkers\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresourcesB\xbb\x01\n\x14\x63om.flyteidl.pluginsB\tDaskProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.dask_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\tDaskProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_DASKJOB']._serialized_start=77 + _globals['_DASKJOB']._serialized_end=210 + _globals['_DASKSCHEDULER']._serialized_start=212 + _globals['_DASKSCHEDULER']._serialized_end=305 + _globals['_DASKWORKERGROUP']._serialized_start=308 + _globals['_DASKWORKERGROUP']._serialized_end=447 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi new file mode 100644 index 0000000000..df94d33778 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi @@ -0,0 +1,32 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DaskJob(_message.Message): + __slots__ = ["scheduler", "workers"] + SCHEDULER_FIELD_NUMBER: _ClassVar[int] + WORKERS_FIELD_NUMBER: _ClassVar[int] + scheduler: DaskScheduler + workers: DaskWorkerGroup + def __init__(self, scheduler: _Optional[_Union[DaskScheduler, _Mapping]] = ..., workers: _Optional[_Union[DaskWorkerGroup, _Mapping]] = ...) -> None: ... + +class DaskScheduler(_message.Message): + __slots__ = ["image", "resources"] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + image: str + resources: _tasks_pb2.Resources + def __init__(self, image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... + +class DaskWorkerGroup(_message.Message): + __slots__ = ["number_of_workers", "image", "resources"] + NUMBER_OF_WORKERS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + number_of_workers: int + image: str + resources: _tasks_pb2.Resources + def __init__(self, number_of_workers: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py new file mode 100644 index 0000000000..62a159a4eb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/common.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/plugins/kubeflow/common.proto\x12\x19\x66lyteidl.plugins.kubeflow\"\xfa\x01\n\tRunPolicy\x12S\n\x10\x63lean_pod_policy\x18\x01 \x01(\x0e\x32).flyteidl.plugins.kubeflow.CleanPodPolicyR\x0e\x63leanPodPolicy\x12;\n\x1attl_seconds_after_finished\x18\x02 \x01(\x05R\x17ttlSecondsAfterFinished\x12\x36\n\x17\x61\x63tive_deadline_seconds\x18\x03 \x01(\x05R\x15\x61\x63tiveDeadlineSeconds\x12#\n\rbackoff_limit\x18\x04 \x01(\x05R\x0c\x62\x61\x63koffLimit*c\n\rRestartPolicy\x12\x18\n\x14RESTART_POLICY_NEVER\x10\x00\x12\x1d\n\x19RESTART_POLICY_ON_FAILURE\x10\x01\x12\x19\n\x15RESTART_POLICY_ALWAYS\x10\x02*`\n\x0e\x43leanPodPolicy\x12\x18\n\x14\x43LEANPOD_POLICY_NONE\x10\x00\x12\x1b\n\x17\x43LEANPOD_POLICY_RUNNING\x10\x01\x12\x17\n\x13\x43LEANPOD_POLICY_ALL\x10\x02\x42\xeb\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0b\x43ommonProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.common_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\013CommonProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_RESTARTPOLICY']._serialized_start=322 + _globals['_RESTARTPOLICY']._serialized_end=421 + _globals['_CLEANPODPOLICY']._serialized_start=423 + _globals['_CLEANPODPOLICY']._serialized_end=519 + _globals['_RUNPOLICY']._serialized_start=70 + _globals['_RUNPOLICY']._serialized_end=320 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi new file mode 100644 index 0000000000..916c3344b2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi @@ -0,0 +1,36 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class RestartPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RESTART_POLICY_NEVER: _ClassVar[RestartPolicy] + RESTART_POLICY_ON_FAILURE: _ClassVar[RestartPolicy] + RESTART_POLICY_ALWAYS: _ClassVar[RestartPolicy] + +class CleanPodPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CLEANPOD_POLICY_NONE: _ClassVar[CleanPodPolicy] + CLEANPOD_POLICY_RUNNING: _ClassVar[CleanPodPolicy] + CLEANPOD_POLICY_ALL: _ClassVar[CleanPodPolicy] +RESTART_POLICY_NEVER: RestartPolicy +RESTART_POLICY_ON_FAILURE: RestartPolicy +RESTART_POLICY_ALWAYS: RestartPolicy +CLEANPOD_POLICY_NONE: CleanPodPolicy +CLEANPOD_POLICY_RUNNING: CleanPodPolicy +CLEANPOD_POLICY_ALL: CleanPodPolicy + +class RunPolicy(_message.Message): + __slots__ = ["clean_pod_policy", "ttl_seconds_after_finished", "active_deadline_seconds", "backoff_limit"] + CLEAN_POD_POLICY_FIELD_NUMBER: _ClassVar[int] + TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER: _ClassVar[int] + ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER: _ClassVar[int] + BACKOFF_LIMIT_FIELD_NUMBER: _ClassVar[int] + clean_pod_policy: CleanPodPolicy + ttl_seconds_after_finished: int + active_deadline_seconds: int + backoff_limit: int + def __init__(self, clean_pod_policy: _Optional[_Union[CleanPodPolicy, str]] = ..., ttl_seconds_after_finished: _Optional[int] = ..., active_deadline_seconds: _Optional[int] = ..., backoff_limit: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py new file mode 100644 index 0000000000..539fcb59bb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/mpi.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/plugins/kubeflow/mpi.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc9\x02\n\x1a\x44istributedMPITrainingTask\x12\x65\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x11launcher_replicas\x18\x02 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x10launcherReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12\x14\n\x05slots\x18\x04 \x01(\x05R\x05slots\"\xf8\x01\n!DistributedMPITrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicy\x12\x18\n\x07\x63ommand\x18\x05 \x03(\tR\x07\x63ommandB\xe8\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x08MpiProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.mpi_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\010MpiProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=134 + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=463 + _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_start=466 + _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_end=714 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi new file mode 100644 index 0000000000..6258542993 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi @@ -0,0 +1,34 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedMPITrainingTask(_message.Message): + __slots__ = ["worker_replicas", "launcher_replicas", "run_policy", "slots"] + WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RUN_POLICY_FIELD_NUMBER: _ClassVar[int] + SLOTS_FIELD_NUMBER: _ClassVar[int] + worker_replicas: DistributedMPITrainingReplicaSpec + launcher_replicas: DistributedMPITrainingReplicaSpec + run_policy: _common_pb2.RunPolicy + slots: int + def __init__(self, worker_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., launcher_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., slots: _Optional[int] = ...) -> None: ... + +class DistributedMPITrainingReplicaSpec(_message.Message): + __slots__ = ["replicas", "image", "resources", "restart_policy", "command"] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] + COMMAND_FIELD_NUMBER: _ClassVar[int] + replicas: int + image: str + resources: _tasks_pb2.Resources + restart_policy: _common_pb2.RestartPolicy + command: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ..., command: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py new file mode 100644 index 0000000000..7d0d3f4542 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/pytorch.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/plugins/kubeflow/pytorch.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x8c\x03\n\x1e\x44istributedPyTorchTrainingTask\x12i\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x0fmaster_replicas\x18\x02 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0emasterReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12O\n\x0e\x65lastic_config\x18\x04 \x01(\x0b\x32(.flyteidl.plugins.kubeflow.ElasticConfigR\relasticConfig\"\xe2\x01\n%DistributedPyTorchTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xec\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0cPytorchProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.pytorch_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\014PytorchProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_ELASTICCONFIG']._serialized_start=138 + _globals['_ELASTICCONFIG']._serialized_end=331 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=334 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=730 + _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_start=733 + _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_end=959 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi new file mode 100644 index 0000000000..ee6599ad82 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi @@ -0,0 +1,45 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ElasticConfig(_message.Message): + __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] + RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] + MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] + NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] + MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] + rdzv_backend: str + min_replicas: int + max_replicas: int + nproc_per_node: int + max_restarts: int + def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... + +class DistributedPyTorchTrainingTask(_message.Message): + __slots__ = ["worker_replicas", "master_replicas", "run_policy", "elastic_config"] + WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MASTER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RUN_POLICY_FIELD_NUMBER: _ClassVar[int] + ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] + worker_replicas: DistributedPyTorchTrainingReplicaSpec + master_replicas: DistributedPyTorchTrainingReplicaSpec + run_policy: _common_pb2.RunPolicy + elastic_config: ElasticConfig + def __init__(self, worker_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., master_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... + +class DistributedPyTorchTrainingReplicaSpec(_message.Message): + __slots__ = ["replicas", "image", "resources", "restart_policy"] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] + replicas: int + image: str + resources: _tasks_pb2.Resources + restart_policy: _common_pb2.RestartPolicy + def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py new file mode 100644 index 0000000000..f1c9eddb55 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/tensorflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*flyteidl/plugins/kubeflow/tensorflow.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xa8\x03\n!DistributedTensorflowTrainingTask\x12l\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\x0eworkerReplicas\x12\x64\n\x0bps_replicas\x18\x02 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\npsReplicas\x12j\n\x0e\x63hief_replicas\x18\x03 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\rchiefReplicas\x12\x43\n\nrun_policy\x18\x04 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\"\xe5\x01\n(DistributedTensorflowTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xef\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0fTensorflowProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.tensorflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\017TensorflowProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=141 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=565 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_start=568 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_end=797 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi new file mode 100644 index 0000000000..e08a1ff983 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi @@ -0,0 +1,31 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedTensorflowTrainingTask(_message.Message): + __slots__ = ["worker_replicas", "ps_replicas", "chief_replicas", "run_policy"] + WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] + CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RUN_POLICY_FIELD_NUMBER: _ClassVar[int] + worker_replicas: DistributedTensorflowTrainingReplicaSpec + ps_replicas: DistributedTensorflowTrainingReplicaSpec + chief_replicas: DistributedTensorflowTrainingReplicaSpec + run_policy: _common_pb2.RunPolicy + def __init__(self, worker_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., ps_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., chief_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ...) -> None: ... + +class DistributedTensorflowTrainingReplicaSpec(_message.Message): + __slots__ = ["replicas", "image", "resources", "restart_policy"] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] + replicas: int + image: str + resources: _tasks_pb2.Resources + restart_policy: _common_pb2.RestartPolicy + def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py new file mode 100644 index 0000000000..228dd0629f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/mpi.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/mpi.proto\x12\x10\x66lyteidl.plugins\"\x87\x01\n\x1a\x44istributedMPITrainingTask\x12\x1f\n\x0bnum_workers\x18\x01 \x01(\x05R\nnumWorkers\x12\x32\n\x15num_launcher_replicas\x18\x02 \x01(\x05R\x13numLauncherReplicas\x12\x14\n\x05slots\x18\x03 \x01(\x05R\x05slotsB\xba\x01\n\x14\x63om.flyteidl.pluginsB\x08MpiProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.mpi_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010MpiProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=49 + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=184 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi new file mode 100644 index 0000000000..b907bede41 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi @@ -0,0 +1,15 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedMPITrainingTask(_message.Message): + __slots__ = ["num_workers", "num_launcher_replicas", "slots"] + NUM_WORKERS_FIELD_NUMBER: _ClassVar[int] + NUM_LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + SLOTS_FIELD_NUMBER: _ClassVar[int] + num_workers: int + num_launcher_replicas: int + slots: int + def __init__(self, num_workers: _Optional[int] = ..., num_launcher_replicas: _Optional[int] = ..., slots: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py new file mode 100644 index 0000000000..af97a587d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/presto.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/presto.proto\x12\x10\x66lyteidl.plugins\"\x82\x01\n\x0bPrestoQuery\x12#\n\rrouting_group\x18\x01 \x01(\tR\x0croutingGroup\x12\x18\n\x07\x63\x61talog\x18\x02 \x01(\tR\x07\x63\x61talog\x12\x16\n\x06schema\x18\x03 \x01(\tR\x06schema\x12\x1c\n\tstatement\x18\x04 \x01(\tR\tstatementB\xbd\x01\n\x14\x63om.flyteidl.pluginsB\x0bPrestoProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.presto_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013PrestoProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_PRESTOQUERY']._serialized_start=52 + _globals['_PRESTOQUERY']._serialized_end=182 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi new file mode 100644 index 0000000000..6f185403e4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi @@ -0,0 +1,17 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class PrestoQuery(_message.Message): + __slots__ = ["routing_group", "catalog", "schema", "statement"] + ROUTING_GROUP_FIELD_NUMBER: _ClassVar[int] + CATALOG_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + STATEMENT_FIELD_NUMBER: _ClassVar[int] + routing_group: str + catalog: str + schema: str + statement: str + def __init__(self, routing_group: _Optional[str] = ..., catalog: _Optional[str] = ..., schema: _Optional[str] = ..., statement: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py new file mode 100644 index 0000000000..bc3cddc196 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/pytorch.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/plugins/pytorch.proto\x12\x10\x66lyteidl.plugins\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x82\x01\n\x1e\x44istributedPyTorchTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x46\n\x0e\x65lastic_config\x18\x02 \x01(\x0b\x32\x1f.flyteidl.plugins.ElasticConfigR\relasticConfigB\xbe\x01\n\x14\x63om.flyteidl.pluginsB\x0cPytorchProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.pytorch_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\014PytorchProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_ELASTICCONFIG']._serialized_start=53 + _globals['_ELASTICCONFIG']._serialized_end=246 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=249 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=379 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi new file mode 100644 index 0000000000..882c38d2de --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi @@ -0,0 +1,27 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ElasticConfig(_message.Message): + __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] + RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] + MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] + NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] + MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] + rdzv_backend: str + min_replicas: int + max_replicas: int + nproc_per_node: int + max_restarts: int + def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... + +class DistributedPyTorchTrainingTask(_message.Message): + __slots__ = ["workers", "elastic_config"] + WORKERS_FIELD_NUMBER: _ClassVar[int] + ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] + workers: int + elastic_config: ElasticConfig + def __init__(self, workers: _Optional[int] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py new file mode 100644 index 0000000000..0e270bb94f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/qubole.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/qubole.proto\x12\x10\x66lyteidl.plugins\"b\n\tHiveQuery\x12\x14\n\x05query\x18\x01 \x01(\tR\x05query\x12\x1f\n\x0btimeout_sec\x18\x02 \x01(\rR\ntimeoutSec\x12\x1e\n\nretryCount\x18\x03 \x01(\rR\nretryCount\"L\n\x13HiveQueryCollection\x12\x35\n\x07queries\x18\x02 \x03(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x07queries\"\xd1\x01\n\rQuboleHiveJob\x12#\n\rcluster_label\x18\x01 \x01(\tR\x0c\x63lusterLabel\x12T\n\x10query_collection\x18\x02 \x01(\x0b\x32%.flyteidl.plugins.HiveQueryCollectionB\x02\x18\x01R\x0fqueryCollection\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x31\n\x05query\x18\x04 \x01(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x05queryB\xbd\x01\n\x14\x63om.flyteidl.pluginsB\x0bQuboleProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.qubole_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013QuboleProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _QUBOLEHIVEJOB.fields_by_name['query_collection']._options = None + _QUBOLEHIVEJOB.fields_by_name['query_collection']._serialized_options = b'\030\001' + _globals['_HIVEQUERY']._serialized_start=51 + _globals['_HIVEQUERY']._serialized_end=149 + _globals['_HIVEQUERYCOLLECTION']._serialized_start=151 + _globals['_HIVEQUERYCOLLECTION']._serialized_end=227 + _globals['_QUBOLEHIVEJOB']._serialized_start=230 + _globals['_QUBOLEHIVEJOB']._serialized_end=439 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi new file mode 100644 index 0000000000..71e6bd6698 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi @@ -0,0 +1,34 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class HiveQuery(_message.Message): + __slots__ = ["query", "timeout_sec", "retryCount"] + QUERY_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_SEC_FIELD_NUMBER: _ClassVar[int] + RETRYCOUNT_FIELD_NUMBER: _ClassVar[int] + query: str + timeout_sec: int + retryCount: int + def __init__(self, query: _Optional[str] = ..., timeout_sec: _Optional[int] = ..., retryCount: _Optional[int] = ...) -> None: ... + +class HiveQueryCollection(_message.Message): + __slots__ = ["queries"] + QUERIES_FIELD_NUMBER: _ClassVar[int] + queries: _containers.RepeatedCompositeFieldContainer[HiveQuery] + def __init__(self, queries: _Optional[_Iterable[_Union[HiveQuery, _Mapping]]] = ...) -> None: ... + +class QuboleHiveJob(_message.Message): + __slots__ = ["cluster_label", "query_collection", "tags", "query"] + CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] + QUERY_COLLECTION_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + QUERY_FIELD_NUMBER: _ClassVar[int] + cluster_label: str + query_collection: HiveQueryCollection + tags: _containers.RepeatedScalarFieldContainer[str] + query: HiveQuery + def __init__(self, cluster_label: _Optional[str] = ..., query_collection: _Optional[_Union[HiveQueryCollection, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ..., query: _Optional[_Union[HiveQuery, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py new file mode 100644 index 0000000000..65fbc03521 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/ray.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/ray.proto\x12\x10\x66lyteidl.plugins\"h\n\x06RayJob\x12=\n\x0bray_cluster\x18\x01 \x01(\x0b\x32\x1c.flyteidl.plugins.RayClusterR\nrayCluster\x12\x1f\n\x0bruntime_env\x18\x02 \x01(\tR\nruntimeEnv\"\xa4\x01\n\nRayCluster\x12G\n\x0fhead_group_spec\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.HeadGroupSpecR\rheadGroupSpec\x12M\n\x11worker_group_spec\x18\x02 \x03(\x0b\x32!.flyteidl.plugins.WorkerGroupSpecR\x0fworkerGroupSpec\"\xb1\x01\n\rHeadGroupSpec\x12]\n\x10ray_start_params\x18\x01 \x03(\x0b\x32\x33.flyteidl.plugins.HeadGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xb6\x02\n\x0fWorkerGroupSpec\x12\x1d\n\ngroup_name\x18\x01 \x01(\tR\tgroupName\x12\x1a\n\x08replicas\x18\x02 \x01(\x05R\x08replicas\x12!\n\x0cmin_replicas\x18\x03 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x04 \x01(\x05R\x0bmaxReplicas\x12_\n\x10ray_start_params\x18\x05 \x03(\x0b\x32\x35.flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xba\x01\n\x14\x63om.flyteidl.pluginsB\x08RayProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.ray_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010RayProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._options = None + _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' + _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._options = None + _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' + _globals['_RAYJOB']._serialized_start=48 + _globals['_RAYJOB']._serialized_end=152 + _globals['_RAYCLUSTER']._serialized_start=155 + _globals['_RAYCLUSTER']._serialized_end=319 + _globals['_HEADGROUPSPEC']._serialized_start=322 + _globals['_HEADGROUPSPEC']._serialized_end=499 + _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=434 + _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=499 + _globals['_WORKERGROUPSPEC']._serialized_start=502 + _globals['_WORKERGROUPSPEC']._serialized_end=812 + _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=434 + _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=499 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi new file mode 100644 index 0000000000..16b67e478a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi @@ -0,0 +1,56 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class RayJob(_message.Message): + __slots__ = ["ray_cluster", "runtime_env"] + RAY_CLUSTER_FIELD_NUMBER: _ClassVar[int] + RUNTIME_ENV_FIELD_NUMBER: _ClassVar[int] + ray_cluster: RayCluster + runtime_env: str + def __init__(self, ray_cluster: _Optional[_Union[RayCluster, _Mapping]] = ..., runtime_env: _Optional[str] = ...) -> None: ... + +class RayCluster(_message.Message): + __slots__ = ["head_group_spec", "worker_group_spec"] + HEAD_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] + WORKER_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] + head_group_spec: HeadGroupSpec + worker_group_spec: _containers.RepeatedCompositeFieldContainer[WorkerGroupSpec] + def __init__(self, head_group_spec: _Optional[_Union[HeadGroupSpec, _Mapping]] = ..., worker_group_spec: _Optional[_Iterable[_Union[WorkerGroupSpec, _Mapping]]] = ...) -> None: ... + +class HeadGroupSpec(_message.Message): + __slots__ = ["ray_start_params"] + class RayStartParamsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] + ray_start_params: _containers.ScalarMap[str, str] + def __init__(self, ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class WorkerGroupSpec(_message.Message): + __slots__ = ["group_name", "replicas", "min_replicas", "max_replicas", "ray_start_params"] + class RayStartParamsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + GROUP_NAME_FIELD_NUMBER: _ClassVar[int] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] + group_name: str + replicas: int + min_replicas: int + max_replicas: int + ray_start_params: _containers.ScalarMap[str, str] + def __init__(self, group_name: _Optional[str] = ..., replicas: _Optional[int] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py new file mode 100644 index 0000000000..a810df5ccd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.plugins.sagemaker import parameter_ranges_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_parameter__ranges__pb2 +from flyteidl.plugins.sagemaker import training_job_pb2 as flyteidl_dot_plugins_dot_sagemaker_dot_training__job__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x31\x66lyteidl/plugins/sagemaker/parameter_ranges.proto\x1a-flyteidl/plugins/sagemaker/training_job.proto\"\xe0\x01\n\x17HyperparameterTuningJob\x12J\n\x0ctraining_job\x18\x01 \x01(\x0b\x32\'.flyteidl.plugins.sagemaker.TrainingJobR\x0btrainingJob\x12<\n\x1bmax_number_of_training_jobs\x18\x02 \x01(\x03R\x17maxNumberOfTrainingJobs\x12;\n\x1amax_parallel_training_jobs\x18\x03 \x01(\x03R\x17maxParallelTrainingJobs\"H\n!HyperparameterTuningObjectiveType\"#\n\x05Value\x12\x0c\n\x08MINIMIZE\x10\x00\x12\x0c\n\x08MAXIMIZE\x10\x01\"\xac\x01\n\x1dHyperparameterTuningObjective\x12j\n\x0eobjective_type\x18\x01 \x01(\x0e\x32\x43.flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveType.ValueR\robjectiveType\x12\x1f\n\x0bmetric_name\x18\x02 \x01(\tR\nmetricName\"A\n\x1cHyperparameterTuningStrategy\"!\n\x05Value\x12\x0c\n\x08\x42\x41YESIAN\x10\x00\x12\n\n\x06RANDOM\x10\x01\":\n\x1cTrainingJobEarlyStoppingType\"\x1a\n\x05Value\x12\x07\n\x03OFF\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\"\xd9\x03\n\x1dHyperparameterTuningJobConfig\x12`\n\x15hyperparameter_ranges\x18\x01 \x01(\x0b\x32+.flyteidl.plugins.sagemaker.ParameterRangesR\x14hyperparameterRanges\x12g\n\x0ftuning_strategy\x18\x02 \x01(\x0e\x32>.flyteidl.plugins.sagemaker.HyperparameterTuningStrategy.ValueR\x0etuningStrategy\x12\x64\n\x10tuning_objective\x18\x03 \x01(\x0b\x32\x39.flyteidl.plugins.sagemaker.HyperparameterTuningObjectiveR\x0ftuningObjective\x12\x86\x01\n training_job_early_stopping_type\x18\x04 \x01(\x0e\x32>.flyteidl.plugins.sagemaker.TrainingJobEarlyStoppingType.ValueR\x1ctrainingJobEarlyStoppingTypeB\x81\x02\n\x1e\x63om.flyteidl.plugins.sagemakerB\x1cHyperparameterTuningJobProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PS\xaa\x02\x1a\x46lyteidl.Plugins.Sagemaker\xca\x02\x1a\x46lyteidl\\Plugins\\Sagemaker\xe2\x02&Flyteidl\\Plugins\\Sagemaker\\GPBMetadata\xea\x02\x1c\x46lyteidl::Plugins::Sagemakerb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.sagemaker.hyperparameter_tuning_job_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\036com.flyteidl.plugins.sagemakerB\034HyperparameterTuningJobProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPS\252\002\032Flyteidl.Plugins.Sagemaker\312\002\032Flyteidl\\Plugins\\Sagemaker\342\002&Flyteidl\\Plugins\\Sagemaker\\GPBMetadata\352\002\034Flyteidl::Plugins::Sagemaker' + _globals['_HYPERPARAMETERTUNINGJOB']._serialized_start=189 + _globals['_HYPERPARAMETERTUNINGJOB']._serialized_end=413 + _globals['_HYPERPARAMETERTUNINGOBJECTIVETYPE']._serialized_start=415 + _globals['_HYPERPARAMETERTUNINGOBJECTIVETYPE']._serialized_end=487 + _globals['_HYPERPARAMETERTUNINGOBJECTIVETYPE_VALUE']._serialized_start=452 + _globals['_HYPERPARAMETERTUNINGOBJECTIVETYPE_VALUE']._serialized_end=487 + _globals['_HYPERPARAMETERTUNINGOBJECTIVE']._serialized_start=490 + _globals['_HYPERPARAMETERTUNINGOBJECTIVE']._serialized_end=662 + _globals['_HYPERPARAMETERTUNINGSTRATEGY']._serialized_start=664 + _globals['_HYPERPARAMETERTUNINGSTRATEGY']._serialized_end=729 + _globals['_HYPERPARAMETERTUNINGSTRATEGY_VALUE']._serialized_start=696 + _globals['_HYPERPARAMETERTUNINGSTRATEGY_VALUE']._serialized_end=729 + _globals['_TRAININGJOBEARLYSTOPPINGTYPE']._serialized_start=731 + _globals['_TRAININGJOBEARLYSTOPPINGTYPE']._serialized_end=789 + _globals['_TRAININGJOBEARLYSTOPPINGTYPE_VALUE']._serialized_start=763 + _globals['_TRAININGJOBEARLYSTOPPINGTYPE_VALUE']._serialized_end=789 + _globals['_HYPERPARAMETERTUNINGJOBCONFIG']._serialized_start=792 + _globals['_HYPERPARAMETERTUNINGJOBCONFIG']._serialized_end=1265 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.pyi new file mode 100644 index 0000000000..dd17ea4d9c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2.pyi @@ -0,0 +1,68 @@ +from flyteidl.plugins.sagemaker import parameter_ranges_pb2 as _parameter_ranges_pb2 +from flyteidl.plugins.sagemaker import training_job_pb2 as _training_job_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class HyperparameterTuningJob(_message.Message): + __slots__ = ["training_job", "max_number_of_training_jobs", "max_parallel_training_jobs"] + TRAINING_JOB_FIELD_NUMBER: _ClassVar[int] + MAX_NUMBER_OF_TRAINING_JOBS_FIELD_NUMBER: _ClassVar[int] + MAX_PARALLEL_TRAINING_JOBS_FIELD_NUMBER: _ClassVar[int] + training_job: _training_job_pb2.TrainingJob + max_number_of_training_jobs: int + max_parallel_training_jobs: int + def __init__(self, training_job: _Optional[_Union[_training_job_pb2.TrainingJob, _Mapping]] = ..., max_number_of_training_jobs: _Optional[int] = ..., max_parallel_training_jobs: _Optional[int] = ...) -> None: ... + +class HyperparameterTuningObjectiveType(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MINIMIZE: _ClassVar[HyperparameterTuningObjectiveType.Value] + MAXIMIZE: _ClassVar[HyperparameterTuningObjectiveType.Value] + MINIMIZE: HyperparameterTuningObjectiveType.Value + MAXIMIZE: HyperparameterTuningObjectiveType.Value + def __init__(self) -> None: ... + +class HyperparameterTuningObjective(_message.Message): + __slots__ = ["objective_type", "metric_name"] + OBJECTIVE_TYPE_FIELD_NUMBER: _ClassVar[int] + METRIC_NAME_FIELD_NUMBER: _ClassVar[int] + objective_type: HyperparameterTuningObjectiveType.Value + metric_name: str + def __init__(self, objective_type: _Optional[_Union[HyperparameterTuningObjectiveType.Value, str]] = ..., metric_name: _Optional[str] = ...) -> None: ... + +class HyperparameterTuningStrategy(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + BAYESIAN: _ClassVar[HyperparameterTuningStrategy.Value] + RANDOM: _ClassVar[HyperparameterTuningStrategy.Value] + BAYESIAN: HyperparameterTuningStrategy.Value + RANDOM: HyperparameterTuningStrategy.Value + def __init__(self) -> None: ... + +class TrainingJobEarlyStoppingType(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + OFF: _ClassVar[TrainingJobEarlyStoppingType.Value] + AUTO: _ClassVar[TrainingJobEarlyStoppingType.Value] + OFF: TrainingJobEarlyStoppingType.Value + AUTO: TrainingJobEarlyStoppingType.Value + def __init__(self) -> None: ... + +class HyperparameterTuningJobConfig(_message.Message): + __slots__ = ["hyperparameter_ranges", "tuning_strategy", "tuning_objective", "training_job_early_stopping_type"] + HYPERPARAMETER_RANGES_FIELD_NUMBER: _ClassVar[int] + TUNING_STRATEGY_FIELD_NUMBER: _ClassVar[int] + TUNING_OBJECTIVE_FIELD_NUMBER: _ClassVar[int] + TRAINING_JOB_EARLY_STOPPING_TYPE_FIELD_NUMBER: _ClassVar[int] + hyperparameter_ranges: _parameter_ranges_pb2.ParameterRanges + tuning_strategy: HyperparameterTuningStrategy.Value + tuning_objective: HyperparameterTuningObjective + training_job_early_stopping_type: TrainingJobEarlyStoppingType.Value + def __init__(self, hyperparameter_ranges: _Optional[_Union[_parameter_ranges_pb2.ParameterRanges, _Mapping]] = ..., tuning_strategy: _Optional[_Union[HyperparameterTuningStrategy.Value, str]] = ..., tuning_objective: _Optional[_Union[HyperparameterTuningObjective, _Mapping]] = ..., training_job_early_stopping_type: _Optional[_Union[TrainingJobEarlyStoppingType.Value, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/hyperparameter_tuning_job_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py new file mode 100644 index 0000000000..7f19467e8d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/parameter_ranges.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1flyteidl/plugins/sagemaker/parameter_ranges.proto\x12\x1a\x66lyteidl.plugins.sagemaker\"c\n\x19HyperparameterScalingType\"F\n\x05Value\x12\x08\n\x04\x41UTO\x10\x00\x12\n\n\x06LINEAR\x10\x01\x12\x0f\n\x0bLOGARITHMIC\x10\x02\x12\x16\n\x12REVERSELOGARITHMIC\x10\x03\"\xb4\x01\n\x18\x43ontinuousParameterRange\x12\x1b\n\tmax_value\x18\x01 \x01(\x01R\x08maxValue\x12\x1b\n\tmin_value\x18\x02 \x01(\x01R\x08minValue\x12^\n\x0cscaling_type\x18\x03 \x01(\x0e\x32;.flyteidl.plugins.sagemaker.HyperparameterScalingType.ValueR\x0bscalingType\"\xb1\x01\n\x15IntegerParameterRange\x12\x1b\n\tmax_value\x18\x01 \x01(\x03R\x08maxValue\x12\x1b\n\tmin_value\x18\x02 \x01(\x03R\x08minValue\x12^\n\x0cscaling_type\x18\x03 \x01(\x0e\x32;.flyteidl.plugins.sagemaker.HyperparameterScalingType.ValueR\x0bscalingType\"3\n\x19\x43\x61tegoricalParameterRange\x12\x16\n\x06values\x18\x01 \x03(\tR\x06values\"\x89\x03\n\x13ParameterRangeOneOf\x12t\n\x1a\x63ontinuous_parameter_range\x18\x01 \x01(\x0b\x32\x34.flyteidl.plugins.sagemaker.ContinuousParameterRangeH\x00R\x18\x63ontinuousParameterRange\x12k\n\x17integer_parameter_range\x18\x02 \x01(\x0b\x32\x31.flyteidl.plugins.sagemaker.IntegerParameterRangeH\x00R\x15integerParameterRange\x12w\n\x1b\x63\x61tegorical_parameter_range\x18\x03 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.CategoricalParameterRangeH\x00R\x19\x63\x61tegoricalParameterRangeB\x16\n\x14parameter_range_type\"\xfc\x01\n\x0fParameterRanges\x12r\n\x13parameter_range_map\x18\x01 \x03(\x0b\x32\x42.flyteidl.plugins.sagemaker.ParameterRanges.ParameterRangeMapEntryR\x11parameterRangeMap\x1au\n\x16ParameterRangeMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32/.flyteidl.plugins.sagemaker.ParameterRangeOneOfR\x05value:\x02\x38\x01\x42\xf9\x01\n\x1e\x63om.flyteidl.plugins.sagemakerB\x14ParameterRangesProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PS\xaa\x02\x1a\x46lyteidl.Plugins.Sagemaker\xca\x02\x1a\x46lyteidl\\Plugins\\Sagemaker\xe2\x02&Flyteidl\\Plugins\\Sagemaker\\GPBMetadata\xea\x02\x1c\x46lyteidl::Plugins::Sagemakerb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.sagemaker.parameter_ranges_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\036com.flyteidl.plugins.sagemakerB\024ParameterRangesProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPS\252\002\032Flyteidl.Plugins.Sagemaker\312\002\032Flyteidl\\Plugins\\Sagemaker\342\002&Flyteidl\\Plugins\\Sagemaker\\GPBMetadata\352\002\034Flyteidl::Plugins::Sagemaker' + _PARAMETERRANGES_PARAMETERRANGEMAPENTRY._options = None + _PARAMETERRANGES_PARAMETERRANGEMAPENTRY._serialized_options = b'8\001' + _globals['_HYPERPARAMETERSCALINGTYPE']._serialized_start=81 + _globals['_HYPERPARAMETERSCALINGTYPE']._serialized_end=180 + _globals['_HYPERPARAMETERSCALINGTYPE_VALUE']._serialized_start=110 + _globals['_HYPERPARAMETERSCALINGTYPE_VALUE']._serialized_end=180 + _globals['_CONTINUOUSPARAMETERRANGE']._serialized_start=183 + _globals['_CONTINUOUSPARAMETERRANGE']._serialized_end=363 + _globals['_INTEGERPARAMETERRANGE']._serialized_start=366 + _globals['_INTEGERPARAMETERRANGE']._serialized_end=543 + _globals['_CATEGORICALPARAMETERRANGE']._serialized_start=545 + _globals['_CATEGORICALPARAMETERRANGE']._serialized_end=596 + _globals['_PARAMETERRANGEONEOF']._serialized_start=599 + _globals['_PARAMETERRANGEONEOF']._serialized_end=992 + _globals['_PARAMETERRANGES']._serialized_start=995 + _globals['_PARAMETERRANGES']._serialized_end=1247 + _globals['_PARAMETERRANGES_PARAMETERRANGEMAPENTRY']._serialized_start=1130 + _globals['_PARAMETERRANGES_PARAMETERRANGEMAPENTRY']._serialized_end=1247 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.pyi new file mode 100644 index 0000000000..d773c628e6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2.pyi @@ -0,0 +1,70 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class HyperparameterScalingType(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + AUTO: _ClassVar[HyperparameterScalingType.Value] + LINEAR: _ClassVar[HyperparameterScalingType.Value] + LOGARITHMIC: _ClassVar[HyperparameterScalingType.Value] + REVERSELOGARITHMIC: _ClassVar[HyperparameterScalingType.Value] + AUTO: HyperparameterScalingType.Value + LINEAR: HyperparameterScalingType.Value + LOGARITHMIC: HyperparameterScalingType.Value + REVERSELOGARITHMIC: HyperparameterScalingType.Value + def __init__(self) -> None: ... + +class ContinuousParameterRange(_message.Message): + __slots__ = ["max_value", "min_value", "scaling_type"] + MAX_VALUE_FIELD_NUMBER: _ClassVar[int] + MIN_VALUE_FIELD_NUMBER: _ClassVar[int] + SCALING_TYPE_FIELD_NUMBER: _ClassVar[int] + max_value: float + min_value: float + scaling_type: HyperparameterScalingType.Value + def __init__(self, max_value: _Optional[float] = ..., min_value: _Optional[float] = ..., scaling_type: _Optional[_Union[HyperparameterScalingType.Value, str]] = ...) -> None: ... + +class IntegerParameterRange(_message.Message): + __slots__ = ["max_value", "min_value", "scaling_type"] + MAX_VALUE_FIELD_NUMBER: _ClassVar[int] + MIN_VALUE_FIELD_NUMBER: _ClassVar[int] + SCALING_TYPE_FIELD_NUMBER: _ClassVar[int] + max_value: int + min_value: int + scaling_type: HyperparameterScalingType.Value + def __init__(self, max_value: _Optional[int] = ..., min_value: _Optional[int] = ..., scaling_type: _Optional[_Union[HyperparameterScalingType.Value, str]] = ...) -> None: ... + +class CategoricalParameterRange(_message.Message): + __slots__ = ["values"] + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, values: _Optional[_Iterable[str]] = ...) -> None: ... + +class ParameterRangeOneOf(_message.Message): + __slots__ = ["continuous_parameter_range", "integer_parameter_range", "categorical_parameter_range"] + CONTINUOUS_PARAMETER_RANGE_FIELD_NUMBER: _ClassVar[int] + INTEGER_PARAMETER_RANGE_FIELD_NUMBER: _ClassVar[int] + CATEGORICAL_PARAMETER_RANGE_FIELD_NUMBER: _ClassVar[int] + continuous_parameter_range: ContinuousParameterRange + integer_parameter_range: IntegerParameterRange + categorical_parameter_range: CategoricalParameterRange + def __init__(self, continuous_parameter_range: _Optional[_Union[ContinuousParameterRange, _Mapping]] = ..., integer_parameter_range: _Optional[_Union[IntegerParameterRange, _Mapping]] = ..., categorical_parameter_range: _Optional[_Union[CategoricalParameterRange, _Mapping]] = ...) -> None: ... + +class ParameterRanges(_message.Message): + __slots__ = ["parameter_range_map"] + class ParameterRangeMapEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: ParameterRangeOneOf + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ParameterRangeOneOf, _Mapping]] = ...) -> None: ... + PARAMETER_RANGE_MAP_FIELD_NUMBER: _ClassVar[int] + parameter_range_map: _containers.MessageMap[str, ParameterRangeOneOf] + def __init__(self, parameter_range_map: _Optional[_Mapping[str, ParameterRangeOneOf]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/parameter_ranges_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py new file mode 100644 index 0000000000..b44deb43cd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sagemaker/training_job.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-flyteidl/plugins/sagemaker/training_job.proto\x12\x1a\x66lyteidl.plugins.sagemaker\x1a\x1egoogle/protobuf/duration.proto\"(\n\tInputMode\"\x1b\n\x05Value\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04PIPE\x10\x01\"1\n\rAlgorithmName\" \n\x05Value\x12\n\n\x06\x43USTOM\x10\x00\x12\x0b\n\x07XGBOOST\x10\x01\")\n\x10InputContentType\"\x15\n\x05Value\x12\x0c\n\x08TEXT_CSV\x10\x00\"<\n\x10MetricDefinition\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05regex\x18\x02 \x01(\tR\x05regex\"\xa8\x03\n\x16\x41lgorithmSpecification\x12J\n\ninput_mode\x18\x01 \x01(\x0e\x32+.flyteidl.plugins.sagemaker.InputMode.ValueR\tinputMode\x12V\n\x0e\x61lgorithm_name\x18\x02 \x01(\x0e\x32/.flyteidl.plugins.sagemaker.AlgorithmName.ValueR\ralgorithmName\x12+\n\x11\x61lgorithm_version\x18\x03 \x01(\tR\x10\x61lgorithmVersion\x12[\n\x12metric_definitions\x18\x04 \x03(\x0b\x32,.flyteidl.plugins.sagemaker.MetricDefinitionR\x11metricDefinitions\x12`\n\x12input_content_type\x18\x05 \x01(\x0e\x32\x32.flyteidl.plugins.sagemaker.InputContentType.ValueR\x10inputContentType\"8\n\x13\x44istributedProtocol\"!\n\x05Value\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x07\n\x03MPI\x10\x01\"\xfc\x01\n\x19TrainingJobResourceConfig\x12%\n\x0einstance_count\x18\x01 \x01(\x03R\rinstanceCount\x12#\n\rinstance_type\x18\x02 \x01(\tR\x0cinstanceType\x12)\n\x11volume_size_in_gb\x18\x03 \x01(\x03R\x0evolumeSizeInGb\x12h\n\x14\x64istributed_protocol\x18\x04 \x01(\x0e\x32\x35.flyteidl.plugins.sagemaker.DistributedProtocol.ValueR\x13\x64istributedProtocol\"\xf2\x01\n\x0bTrainingJob\x12k\n\x17\x61lgorithm_specification\x18\x01 \x01(\x0b\x32\x32.flyteidl.plugins.sagemaker.AlgorithmSpecificationR\x16\x61lgorithmSpecification\x12v\n\x1ctraining_job_resource_config\x18\x02 \x01(\x0b\x32\x35.flyteidl.plugins.sagemaker.TrainingJobResourceConfigR\x19trainingJobResourceConfigB\xf5\x01\n\x1e\x63om.flyteidl.plugins.sagemakerB\x10TrainingJobProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PS\xaa\x02\x1a\x46lyteidl.Plugins.Sagemaker\xca\x02\x1a\x46lyteidl\\Plugins\\Sagemaker\xe2\x02&Flyteidl\\Plugins\\Sagemaker\\GPBMetadata\xea\x02\x1c\x46lyteidl::Plugins::Sagemakerb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.sagemaker.training_job_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\036com.flyteidl.plugins.sagemakerB\020TrainingJobProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPS\252\002\032Flyteidl.Plugins.Sagemaker\312\002\032Flyteidl\\Plugins\\Sagemaker\342\002&Flyteidl\\Plugins\\Sagemaker\\GPBMetadata\352\002\034Flyteidl::Plugins::Sagemaker' + _globals['_INPUTMODE']._serialized_start=109 + _globals['_INPUTMODE']._serialized_end=149 + _globals['_INPUTMODE_VALUE']._serialized_start=122 + _globals['_INPUTMODE_VALUE']._serialized_end=149 + _globals['_ALGORITHMNAME']._serialized_start=151 + _globals['_ALGORITHMNAME']._serialized_end=200 + _globals['_ALGORITHMNAME_VALUE']._serialized_start=168 + _globals['_ALGORITHMNAME_VALUE']._serialized_end=200 + _globals['_INPUTCONTENTTYPE']._serialized_start=202 + _globals['_INPUTCONTENTTYPE']._serialized_end=243 + _globals['_INPUTCONTENTTYPE_VALUE']._serialized_start=222 + _globals['_INPUTCONTENTTYPE_VALUE']._serialized_end=243 + _globals['_METRICDEFINITION']._serialized_start=245 + _globals['_METRICDEFINITION']._serialized_end=305 + _globals['_ALGORITHMSPECIFICATION']._serialized_start=308 + _globals['_ALGORITHMSPECIFICATION']._serialized_end=732 + _globals['_DISTRIBUTEDPROTOCOL']._serialized_start=734 + _globals['_DISTRIBUTEDPROTOCOL']._serialized_end=790 + _globals['_DISTRIBUTEDPROTOCOL_VALUE']._serialized_start=757 + _globals['_DISTRIBUTEDPROTOCOL_VALUE']._serialized_end=790 + _globals['_TRAININGJOBRESOURCECONFIG']._serialized_start=793 + _globals['_TRAININGJOBRESOURCECONFIG']._serialized_end=1045 + _globals['_TRAININGJOB']._serialized_start=1048 + _globals['_TRAININGJOB']._serialized_end=1290 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.pyi new file mode 100644 index 0000000000..38a4bf3ad5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2.pyi @@ -0,0 +1,88 @@ +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class InputMode(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FILE: _ClassVar[InputMode.Value] + PIPE: _ClassVar[InputMode.Value] + FILE: InputMode.Value + PIPE: InputMode.Value + def __init__(self) -> None: ... + +class AlgorithmName(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CUSTOM: _ClassVar[AlgorithmName.Value] + XGBOOST: _ClassVar[AlgorithmName.Value] + CUSTOM: AlgorithmName.Value + XGBOOST: AlgorithmName.Value + def __init__(self) -> None: ... + +class InputContentType(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + TEXT_CSV: _ClassVar[InputContentType.Value] + TEXT_CSV: InputContentType.Value + def __init__(self) -> None: ... + +class MetricDefinition(_message.Message): + __slots__ = ["name", "regex"] + NAME_FIELD_NUMBER: _ClassVar[int] + REGEX_FIELD_NUMBER: _ClassVar[int] + name: str + regex: str + def __init__(self, name: _Optional[str] = ..., regex: _Optional[str] = ...) -> None: ... + +class AlgorithmSpecification(_message.Message): + __slots__ = ["input_mode", "algorithm_name", "algorithm_version", "metric_definitions", "input_content_type"] + INPUT_MODE_FIELD_NUMBER: _ClassVar[int] + ALGORITHM_NAME_FIELD_NUMBER: _ClassVar[int] + ALGORITHM_VERSION_FIELD_NUMBER: _ClassVar[int] + METRIC_DEFINITIONS_FIELD_NUMBER: _ClassVar[int] + INPUT_CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int] + input_mode: InputMode.Value + algorithm_name: AlgorithmName.Value + algorithm_version: str + metric_definitions: _containers.RepeatedCompositeFieldContainer[MetricDefinition] + input_content_type: InputContentType.Value + def __init__(self, input_mode: _Optional[_Union[InputMode.Value, str]] = ..., algorithm_name: _Optional[_Union[AlgorithmName.Value, str]] = ..., algorithm_version: _Optional[str] = ..., metric_definitions: _Optional[_Iterable[_Union[MetricDefinition, _Mapping]]] = ..., input_content_type: _Optional[_Union[InputContentType.Value, str]] = ...) -> None: ... + +class DistributedProtocol(_message.Message): + __slots__ = [] + class Value(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNSPECIFIED: _ClassVar[DistributedProtocol.Value] + MPI: _ClassVar[DistributedProtocol.Value] + UNSPECIFIED: DistributedProtocol.Value + MPI: DistributedProtocol.Value + def __init__(self) -> None: ... + +class TrainingJobResourceConfig(_message.Message): + __slots__ = ["instance_count", "instance_type", "volume_size_in_gb", "distributed_protocol"] + INSTANCE_COUNT_FIELD_NUMBER: _ClassVar[int] + INSTANCE_TYPE_FIELD_NUMBER: _ClassVar[int] + VOLUME_SIZE_IN_GB_FIELD_NUMBER: _ClassVar[int] + DISTRIBUTED_PROTOCOL_FIELD_NUMBER: _ClassVar[int] + instance_count: int + instance_type: str + volume_size_in_gb: int + distributed_protocol: DistributedProtocol.Value + def __init__(self, instance_count: _Optional[int] = ..., instance_type: _Optional[str] = ..., volume_size_in_gb: _Optional[int] = ..., distributed_protocol: _Optional[_Union[DistributedProtocol.Value, str]] = ...) -> None: ... + +class TrainingJob(_message.Message): + __slots__ = ["algorithm_specification", "training_job_resource_config"] + ALGORITHM_SPECIFICATION_FIELD_NUMBER: _ClassVar[int] + TRAINING_JOB_RESOURCE_CONFIG_FIELD_NUMBER: _ClassVar[int] + algorithm_specification: AlgorithmSpecification + training_job_resource_config: TrainingJobResourceConfig + def __init__(self, algorithm_specification: _Optional[_Union[AlgorithmSpecification, _Mapping]] = ..., training_job_resource_config: _Optional[_Union[TrainingJobResourceConfig, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sagemaker/training_job_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py new file mode 100644 index 0000000000..dc319cf624 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/spark.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/plugins/spark.proto\x12\x10\x66lyteidl.plugins\x1a\x1cgoogle/protobuf/struct.proto\"B\n\x10SparkApplication\".\n\x04Type\x12\n\n\x06PYTHON\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\t\n\x05SCALA\x10\x02\x12\x05\n\x01R\x10\x03\"\xfe\x04\n\x08SparkJob\x12Q\n\x0f\x61pplicationType\x18\x01 \x01(\x0e\x32\'.flyteidl.plugins.SparkApplication.TypeR\x0f\x61pplicationType\x12\x30\n\x13mainApplicationFile\x18\x02 \x01(\tR\x13mainApplicationFile\x12\x1c\n\tmainClass\x18\x03 \x01(\tR\tmainClass\x12G\n\tsparkConf\x18\x04 \x03(\x0b\x32).flyteidl.plugins.SparkJob.SparkConfEntryR\tsparkConf\x12J\n\nhadoopConf\x18\x05 \x03(\x0b\x32*.flyteidl.plugins.SparkJob.HadoopConfEntryR\nhadoopConf\x12\"\n\x0c\x65xecutorPath\x18\x06 \x01(\tR\x0c\x65xecutorPath\x12?\n\x0e\x64\x61tabricksConf\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructR\x0e\x64\x61tabricksConf\x12(\n\x0f\x64\x61tabricksToken\x18\x08 \x01(\tR\x0f\x64\x61tabricksToken\x12.\n\x12\x64\x61tabricksInstance\x18\t \x01(\tR\x12\x64\x61tabricksInstance\x1a<\n\x0eSparkConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a=\n\x0fHadoopConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xbc\x01\n\x14\x63om.flyteidl.pluginsB\nSparkProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.spark_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\nSparkProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _SPARKJOB_SPARKCONFENTRY._options = None + _SPARKJOB_SPARKCONFENTRY._serialized_options = b'8\001' + _SPARKJOB_HADOOPCONFENTRY._options = None + _SPARKJOB_HADOOPCONFENTRY._serialized_options = b'8\001' + _globals['_SPARKAPPLICATION']._serialized_start=80 + _globals['_SPARKAPPLICATION']._serialized_end=146 + _globals['_SPARKAPPLICATION_TYPE']._serialized_start=100 + _globals['_SPARKAPPLICATION_TYPE']._serialized_end=146 + _globals['_SPARKJOB']._serialized_start=149 + _globals['_SPARKJOB']._serialized_end=787 + _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_start=664 + _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_end=724 + _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_start=726 + _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_end=787 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi new file mode 100644 index 0000000000..e6b9e4eb68 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi @@ -0,0 +1,58 @@ +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class SparkApplication(_message.Message): + __slots__ = [] + class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PYTHON: _ClassVar[SparkApplication.Type] + JAVA: _ClassVar[SparkApplication.Type] + SCALA: _ClassVar[SparkApplication.Type] + R: _ClassVar[SparkApplication.Type] + PYTHON: SparkApplication.Type + JAVA: SparkApplication.Type + SCALA: SparkApplication.Type + R: SparkApplication.Type + def __init__(self) -> None: ... + +class SparkJob(_message.Message): + __slots__ = ["applicationType", "mainApplicationFile", "mainClass", "sparkConf", "hadoopConf", "executorPath", "databricksConf", "databricksToken", "databricksInstance"] + class SparkConfEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class HadoopConfEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + APPLICATIONTYPE_FIELD_NUMBER: _ClassVar[int] + MAINAPPLICATIONFILE_FIELD_NUMBER: _ClassVar[int] + MAINCLASS_FIELD_NUMBER: _ClassVar[int] + SPARKCONF_FIELD_NUMBER: _ClassVar[int] + HADOOPCONF_FIELD_NUMBER: _ClassVar[int] + EXECUTORPATH_FIELD_NUMBER: _ClassVar[int] + DATABRICKSCONF_FIELD_NUMBER: _ClassVar[int] + DATABRICKSTOKEN_FIELD_NUMBER: _ClassVar[int] + DATABRICKSINSTANCE_FIELD_NUMBER: _ClassVar[int] + applicationType: SparkApplication.Type + mainApplicationFile: str + mainClass: str + sparkConf: _containers.ScalarMap[str, str] + hadoopConf: _containers.ScalarMap[str, str] + executorPath: str + databricksConf: _struct_pb2.Struct + databricksToken: str + databricksInstance: str + def __init__(self, applicationType: _Optional[_Union[SparkApplication.Type, str]] = ..., mainApplicationFile: _Optional[str] = ..., mainClass: _Optional[str] = ..., sparkConf: _Optional[_Mapping[str, str]] = ..., hadoopConf: _Optional[_Mapping[str, str]] = ..., executorPath: _Optional[str] = ..., databricksConf: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., databricksToken: _Optional[str] = ..., databricksInstance: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py new file mode 100644 index 0000000000..1bf42180c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/tensorflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/plugins/tensorflow.proto\x12\x10\x66lyteidl.plugins\"\x85\x01\n!DistributedTensorflowTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x1f\n\x0bps_replicas\x18\x02 \x01(\x05R\npsReplicas\x12%\n\x0e\x63hief_replicas\x18\x03 \x01(\x05R\rchiefReplicasB\xc1\x01\n\x14\x63om.flyteidl.pluginsB\x0fTensorflowProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.tensorflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\017TensorflowProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=56 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=189 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi new file mode 100644 index 0000000000..d3dc028af3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi @@ -0,0 +1,15 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedTensorflowTrainingTask(_message.Message): + __slots__ = ["workers", "ps_replicas", "chief_replicas"] + WORKERS_FIELD_NUMBER: _ClassVar[int] + PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] + CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] + workers: int + ps_replicas: int + chief_replicas: int + def __init__(self, workers: _Optional[int] = ..., ps_replicas: _Optional[int] = ..., chief_replicas: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py new file mode 100644 index 0000000000..7e0a1b1a88 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/waitable.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/plugins/waitable.proto\x12\x10\x66lyteidl.plugins\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\xb3\x01\n\x08Waitable\x12H\n\nwf_exec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x08wfExecId\x12<\n\x05phase\x18\x02 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x1f\n\x0bworkflow_id\x18\x03 \x01(\tR\nworkflowIdB\xbf\x01\n\x14\x63om.flyteidl.pluginsB\rWaitableProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.waitable_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rWaitableProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_WAITABLE']._serialized_start=117 + _globals['_WAITABLE']._serialized_end=296 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi new file mode 100644 index 0000000000..25db3d143b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi @@ -0,0 +1,17 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Waitable(_message.Message): + __slots__ = ["wf_exec_id", "phase", "workflow_id"] + WF_EXEC_ID_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + wf_exec_id: _identifier_pb2.WorkflowExecutionIdentifier + phase: _execution_pb2.WorkflowExecution.Phase + workflow_id: str + def __init__(self, wf_exec_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., workflow_id: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/service/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py new file mode 100644 index 0000000000..25d26599ac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py @@ -0,0 +1,149 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/admin.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 +from flyteidl.admin import project_domain_attributes_pb2 as flyteidl_dot_admin_dot_project__domain__attributes__pb2 +from flyteidl.admin import project_attributes_pb2 as flyteidl_dot_admin_dot_project__attributes__pb2 +from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 +from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 +from flyteidl.admin import workflow_attributes_pb2 as flyteidl_dot_admin_dot_workflow__attributes__pb2 +from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 +from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 +from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 +from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 +from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 +from flyteidl.admin import version_pb2 as flyteidl_dot_admin_dot_version__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/admin.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1c\x66lyteidl/admin/project.proto\x1a.flyteidl/admin/project_domain_attributes.proto\x1a\'flyteidl/admin/project_attributes.proto\x1a\x19\x66lyteidl/admin/task.proto\x1a\x1d\x66lyteidl/admin/workflow.proto\x1a(flyteidl/admin/workflow_attributes.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1a\x66lyteidl/admin/event.proto\x1a\x1e\x66lyteidl/admin/execution.proto\x1a\'flyteidl/admin/matchable_resource.proto\x1a#flyteidl/admin/node_execution.proto\x1a#flyteidl/admin/task_execution.proto\x1a\x1c\x66lyteidl/admin/version.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/description_entity.proto2\x84N\n\x0c\x41\x64minService\x12m\n\nCreateTask\x12!.flyteidl.admin.TaskCreateRequest\x1a\".flyteidl.admin.TaskCreateResponse\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/v1/tasks\x12\x88\x01\n\x07GetTask\x12 .flyteidl.admin.ObjectGetRequest\x1a\x14.flyteidl.admin.Task\"E\x82\xd3\xe4\x93\x02?\x12=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x97\x01\n\x0bListTaskIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"+\x82\xd3\xe4\x93\x02%\x12#/api/v1/task_ids/{project}/{domain}\x12\xae\x01\n\tListTasks\x12#.flyteidl.admin.ResourceListRequest\x1a\x18.flyteidl.admin.TaskList\"b\x82\xd3\xe4\x93\x02\\Z(\x12&/api/v1/tasks/{id.project}/{id.domain}\x12\x30/api/v1/tasks/{id.project}/{id.domain}/{id.name}\x12}\n\x0e\x43reateWorkflow\x12%.flyteidl.admin.WorkflowCreateRequest\x1a&.flyteidl.admin.WorkflowCreateResponse\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/api/v1/workflows\x12\x94\x01\n\x0bGetWorkflow\x12 .flyteidl.admin.ObjectGetRequest\x1a\x18.flyteidl.admin.Workflow\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x9f\x01\n\x0fListWorkflowIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"/\x82\xd3\xe4\x93\x02)\x12\'/api/v1/workflow_ids/{project}/{domain}\x12\xbe\x01\n\rListWorkflows\x12#.flyteidl.admin.ResourceListRequest\x1a\x1c.flyteidl.admin.WorkflowList\"j\x82\xd3\xe4\x93\x02\x64Z,\x12*/api/v1/workflows/{id.project}/{id.domain}\x12\x34/api/v1/workflows/{id.project}/{id.domain}/{id.name}\x12\x86\x01\n\x10\x43reateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanCreateRequest\x1a(.flyteidl.admin.LaunchPlanCreateResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/launch_plans\x12\x9b\x01\n\rGetLaunchPlan\x12 .flyteidl.admin.ObjectGetRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xa2\x01\n\x13GetActiveLaunchPlan\x12\'.flyteidl.admin.ActiveLaunchPlanRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"F\x82\xd3\xe4\x93\x02@\x12>/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}\x12\x9c\x01\n\x15ListActiveLaunchPlans\x12+.flyteidl.admin.ActiveLaunchPlanListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"6\x82\xd3\xe4\x93\x02\x30\x12./api/v1/active_launch_plans/{project}/{domain}\x12\xa4\x01\n\x11ListLaunchPlanIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"2\x82\xd3\xe4\x93\x02,\x12*/api/v1/launch_plan_ids/{project}/{domain}\x12\xc8\x01\n\x0fListLaunchPlans\x12#.flyteidl.admin.ResourceListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"p\x82\xd3\xe4\x93\x02jZ/\x12-/api/v1/launch_plans/{id.project}/{id.domain}\x12\x37/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}\x12\xb6\x01\n\x10UpdateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanUpdateRequest\x1a(.flyteidl.admin.LaunchPlanUpdateResponse\"O\x82\xd3\xe4\x93\x02I:\x01*\x1a\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x81\x01\n\x0f\x43reateExecution\x12&.flyteidl.admin.ExecutionCreateRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/executions\x12\x8e\x01\n\x11RelaunchExecution\x12(.flyteidl.admin.ExecutionRelaunchRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v1/executions/relaunch\x12\x8b\x01\n\x10RecoverExecution\x12\'.flyteidl.admin.ExecutionRecoverRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v1/executions/recover\x12\x95\x01\n\x0cGetExecution\x12+.flyteidl.admin.WorkflowExecutionGetRequest\x1a\x19.flyteidl.admin.Execution\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xa4\x01\n\x0fUpdateExecution\x12&.flyteidl.admin.ExecutionUpdateRequest\x1a\'.flyteidl.admin.ExecutionUpdateResponse\"@\x82\xd3\xe4\x93\x02::\x01*\x1a\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xb9\x01\n\x10GetExecutionData\x12/.flyteidl.admin.WorkflowExecutionGetDataRequest\x1a\x30.flyteidl.admin.WorkflowExecutionGetDataResponse\"B\x82\xd3\xe4\x93\x02<\x12:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}\x12\x89\x01\n\x0eListExecutions\x12#.flyteidl.admin.ResourceListRequest\x1a\x1d.flyteidl.admin.ExecutionList\"3\x82\xd3\xe4\x93\x02-\x12+/api/v1/executions/{id.project}/{id.domain}\x12\xad\x01\n\x12TerminateExecution\x12).flyteidl.admin.ExecutionTerminateRequest\x1a*.flyteidl.admin.ExecutionTerminateResponse\"@\x82\xd3\xe4\x93\x02::\x01**5/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xd2\x01\n\x10GetNodeExecution\x12\'.flyteidl.admin.NodeExecutionGetRequest\x1a\x1d.flyteidl.admin.NodeExecution\"v\x82\xd3\xe4\x93\x02p\x12n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\xde\x01\n\x12ListNodeExecutions\x12(.flyteidl.admin.NodeExecutionListRequest\x1a!.flyteidl.admin.NodeExecutionList\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xa5\x04\n\x19ListNodeExecutionsForTask\x12/.flyteidl.admin.NodeExecutionForTaskListRequest\x1a!.flyteidl.admin.NodeExecutionList\"\xb3\x03\x82\xd3\xe4\x93\x02\xac\x03\x12\xa9\x03/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}\x12\xee\x01\n\x14GetNodeExecutionData\x12+.flyteidl.admin.NodeExecutionGetDataRequest\x1a,.flyteidl.admin.NodeExecutionGetDataResponse\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\x7f\n\x0fRegisterProject\x12&.flyteidl.admin.ProjectRegisterRequest\x1a\'.flyteidl.admin.ProjectRegisterResponse\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/v1/projects\x12q\n\rUpdateProject\x12\x17.flyteidl.admin.Project\x1a%.flyteidl.admin.ProjectUpdateResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/v1/projects/{id}\x12\x66\n\x0cListProjects\x12\".flyteidl.admin.ProjectListRequest\x1a\x18.flyteidl.admin.Projects\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/projects\x12\x99\x01\n\x13\x43reateWorkflowEvent\x12-.flyteidl.admin.WorkflowExecutionEventRequest\x1a..flyteidl.admin.WorkflowExecutionEventResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/events/workflows\x12\x89\x01\n\x0f\x43reateNodeEvent\x12).flyteidl.admin.NodeExecutionEventRequest\x1a*.flyteidl.admin.NodeExecutionEventResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/nodes\x12\x89\x01\n\x0f\x43reateTaskEvent\x12).flyteidl.admin.TaskExecutionEventRequest\x1a*.flyteidl.admin.TaskExecutionEventResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/tasks\x12\x80\x03\n\x10GetTaskExecution\x12\'.flyteidl.admin.TaskExecutionGetRequest\x1a\x1d.flyteidl.admin.TaskExecution\"\xa3\x02\x82\xd3\xe4\x93\x02\x9c\x02\x12\x99\x02/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\x98\x02\n\x12ListTaskExecutions\x12(.flyteidl.admin.TaskExecutionListRequest\x1a!.flyteidl.admin.TaskExecutionList\"\xb4\x01\x82\xd3\xe4\x93\x02\xad\x01\x12\xaa\x01/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}\x12\x9c\x03\n\x14GetTaskExecutionData\x12+.flyteidl.admin.TaskExecutionGetDataRequest\x1a,.flyteidl.admin.TaskExecutionGetDataResponse\"\xa8\x02\x82\xd3\xe4\x93\x02\xa1\x02\x12\x9e\x02/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\xe3\x01\n\x1dUpdateProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesUpdateRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesUpdateResponse\"U\x82\xd3\xe4\x93\x02O:\x01*\x1aJ/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}\x12\xc1\x01\n\x1aGetProjectDomainAttributes\x12\x31.flyteidl.admin.ProjectDomainAttributesGetRequest\x1a\x32.flyteidl.admin.ProjectDomainAttributesGetResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/api/v1/project_domain_attributes/{project}/{domain}\x12\xcd\x01\n\x1d\x44\x65leteProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesDeleteRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesDeleteResponse\"?\x82\xd3\xe4\x93\x02\x39:\x01**4/api/v1/project_domain_attributes/{project}/{domain}\x12\xb6\x01\n\x17UpdateProjectAttributes\x12..flyteidl.admin.ProjectAttributesUpdateRequest\x1a/.flyteidl.admin.ProjectAttributesUpdateResponse\":\x82\xd3\xe4\x93\x02\x34:\x01*\x1a//api/v1/project_attributes/{attributes.project}\x12\x9f\x01\n\x14GetProjectAttributes\x12+.flyteidl.admin.ProjectAttributesGetRequest\x1a,.flyteidl.admin.ProjectAttributesGetResponse\",\x82\xd3\xe4\x93\x02&\x12$/api/v1/project_attributes/{project}\x12\xab\x01\n\x17\x44\x65leteProjectAttributes\x12..flyteidl.admin.ProjectAttributesDeleteRequest\x1a/.flyteidl.admin.ProjectAttributesDeleteResponse\"/\x82\xd3\xe4\x93\x02):\x01**$/api/v1/project_attributes/{project}\x12\xe4\x01\n\x18UpdateWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesUpdateRequest\x1a\x30.flyteidl.admin.WorkflowAttributesUpdateResponse\"e\x82\xd3\xe4\x93\x02_:\x01*\x1aZ/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}\x12\xb7\x01\n\x15GetWorkflowAttributes\x12,.flyteidl.admin.WorkflowAttributesGetRequest\x1a-.flyteidl.admin.WorkflowAttributesGetResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xc3\x01\n\x18\x44\x65leteWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesDeleteRequest\x1a\x30.flyteidl.admin.WorkflowAttributesDeleteResponse\"D\x82\xd3\xe4\x93\x02>:\x01**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xa0\x01\n\x17ListMatchableAttributes\x12..flyteidl.admin.ListMatchableAttributesRequest\x1a/.flyteidl.admin.ListMatchableAttributesResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/v1/matchable_attributes\x12\x9f\x01\n\x11ListNamedEntities\x12&.flyteidl.admin.NamedEntityListRequest\x1a\x1f.flyteidl.admin.NamedEntityList\"A\x82\xd3\xe4\x93\x02;\x12\x39/api/v1/named_entities/{resource_type}/{project}/{domain}\x12\xa7\x01\n\x0eGetNamedEntity\x12%.flyteidl.admin.NamedEntityGetRequest\x1a\x1b.flyteidl.admin.NamedEntity\"Q\x82\xd3\xe4\x93\x02K\x12I/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}\x12\xbe\x01\n\x11UpdateNamedEntity\x12(.flyteidl.admin.NamedEntityUpdateRequest\x1a).flyteidl.admin.NamedEntityUpdateResponse\"T\x82\xd3\xe4\x93\x02N:\x01*\x1aI/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}\x12l\n\nGetVersion\x12!.flyteidl.admin.GetVersionRequest\x1a\".flyteidl.admin.GetVersionResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/v1/version\x12\xc4\x01\n\x14GetDescriptionEntity\x12 .flyteidl.admin.ObjectGetRequest\x1a!.flyteidl.admin.DescriptionEntity\"g\x82\xd3\xe4\x93\x02\x61\x12_/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x92\x02\n\x17ListDescriptionEntities\x12,.flyteidl.admin.DescriptionEntityListRequest\x1a%.flyteidl.admin.DescriptionEntityList\"\xa1\x01\x82\xd3\xe4\x93\x02\x9a\x01ZG\x12\x45/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}\x12O/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}\x12\xc5\x01\n\x13GetExecutionMetrics\x12\x32.flyteidl.admin.WorkflowExecutionGetMetricsRequest\x1a\x33.flyteidl.admin.WorkflowExecutionGetMetricsResponse\"E\x82\xd3\xe4\x93\x02?\x12=/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}B\xbc\x01\n\x14\x63om.flyteidl.serviceB\nAdminProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.admin_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nAdminProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _ADMINSERVICE.methods_by_name['CreateTask']._options = None + _ADMINSERVICE.methods_by_name['CreateTask']._serialized_options = b'\202\323\344\223\002\022:\001*\"\r/api/v1/tasks' + _ADMINSERVICE.methods_by_name['GetTask']._options = None + _ADMINSERVICE.methods_by_name['GetTask']._serialized_options = b'\202\323\344\223\002?\022=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}' + _ADMINSERVICE.methods_by_name['ListTaskIds']._options = None + _ADMINSERVICE.methods_by_name['ListTaskIds']._serialized_options = b'\202\323\344\223\002%\022#/api/v1/task_ids/{project}/{domain}' + _ADMINSERVICE.methods_by_name['ListTasks']._options = None + _ADMINSERVICE.methods_by_name['ListTasks']._serialized_options = b'\202\323\344\223\002\\Z(\022&/api/v1/tasks/{id.project}/{id.domain}\0220/api/v1/tasks/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['CreateWorkflow']._options = None + _ADMINSERVICE.methods_by_name['CreateWorkflow']._serialized_options = b'\202\323\344\223\002\026:\001*\"\021/api/v1/workflows' + _ADMINSERVICE.methods_by_name['GetWorkflow']._options = None + _ADMINSERVICE.methods_by_name['GetWorkflow']._serialized_options = b'\202\323\344\223\002C\022A/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}' + _ADMINSERVICE.methods_by_name['ListWorkflowIds']._options = None + _ADMINSERVICE.methods_by_name['ListWorkflowIds']._serialized_options = b'\202\323\344\223\002)\022\'/api/v1/workflow_ids/{project}/{domain}' + _ADMINSERVICE.methods_by_name['ListWorkflows']._options = None + _ADMINSERVICE.methods_by_name['ListWorkflows']._serialized_options = b'\202\323\344\223\002dZ,\022*/api/v1/workflows/{id.project}/{id.domain}\0224/api/v1/workflows/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['CreateLaunchPlan']._options = None + _ADMINSERVICE.methods_by_name['CreateLaunchPlan']._serialized_options = b'\202\323\344\223\002\031:\001*\"\024/api/v1/launch_plans' + _ADMINSERVICE.methods_by_name['GetLaunchPlan']._options = None + _ADMINSERVICE.methods_by_name['GetLaunchPlan']._serialized_options = b'\202\323\344\223\002F\022D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}' + _ADMINSERVICE.methods_by_name['GetActiveLaunchPlan']._options = None + _ADMINSERVICE.methods_by_name['GetActiveLaunchPlan']._serialized_options = b'\202\323\344\223\002@\022>/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._options = None + _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._serialized_options = b'\202\323\344\223\0020\022./api/v1/active_launch_plans/{project}/{domain}' + _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._options = None + _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._serialized_options = b'\202\323\344\223\002,\022*/api/v1/launch_plan_ids/{project}/{domain}' + _ADMINSERVICE.methods_by_name['ListLaunchPlans']._options = None + _ADMINSERVICE.methods_by_name['ListLaunchPlans']._serialized_options = b'\202\323\344\223\002jZ/\022-/api/v1/launch_plans/{id.project}/{id.domain}\0227/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._options = None + _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._serialized_options = b'\202\323\344\223\002I:\001*\032D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}' + _ADMINSERVICE.methods_by_name['CreateExecution']._options = None + _ADMINSERVICE.methods_by_name['CreateExecution']._serialized_options = b'\202\323\344\223\002\027:\001*\"\022/api/v1/executions' + _ADMINSERVICE.methods_by_name['RelaunchExecution']._options = None + _ADMINSERVICE.methods_by_name['RelaunchExecution']._serialized_options = b'\202\323\344\223\002 :\001*\"\033/api/v1/executions/relaunch' + _ADMINSERVICE.methods_by_name['RecoverExecution']._options = None + _ADMINSERVICE.methods_by_name['RecoverExecution']._serialized_options = b'\202\323\344\223\002\037:\001*\"\032/api/v1/executions/recover' + _ADMINSERVICE.methods_by_name['GetExecution']._options = None + _ADMINSERVICE.methods_by_name['GetExecution']._serialized_options = b'\202\323\344\223\0027\0225/api/v1/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['UpdateExecution']._options = None + _ADMINSERVICE.methods_by_name['UpdateExecution']._serialized_options = b'\202\323\344\223\002::\001*\0325/api/v1/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['GetExecutionData']._options = None + _ADMINSERVICE.methods_by_name['GetExecutionData']._serialized_options = b'\202\323\344\223\002<\022:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['ListExecutions']._options = None + _ADMINSERVICE.methods_by_name['ListExecutions']._serialized_options = b'\202\323\344\223\002-\022+/api/v1/executions/{id.project}/{id.domain}' + _ADMINSERVICE.methods_by_name['TerminateExecution']._options = None + _ADMINSERVICE.methods_by_name['TerminateExecution']._serialized_options = b'\202\323\344\223\002::\001**5/api/v1/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['GetNodeExecution']._options = None + _ADMINSERVICE.methods_by_name['GetNodeExecution']._serialized_options = b'\202\323\344\223\002p\022n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' + _ADMINSERVICE.methods_by_name['ListNodeExecutions']._options = None + _ADMINSERVICE.methods_by_name['ListNodeExecutions']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' + _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._options = None + _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._serialized_options = b'\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}' + _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._options = None + _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' + _ADMINSERVICE.methods_by_name['RegisterProject']._options = None + _ADMINSERVICE.methods_by_name['RegisterProject']._serialized_options = b'\202\323\344\223\002\025:\001*\"\020/api/v1/projects' + _ADMINSERVICE.methods_by_name['UpdateProject']._options = None + _ADMINSERVICE.methods_by_name['UpdateProject']._serialized_options = b'\202\323\344\223\002\032:\001*\032\025/api/v1/projects/{id}' + _ADMINSERVICE.methods_by_name['ListProjects']._options = None + _ADMINSERVICE.methods_by_name['ListProjects']._serialized_options = b'\202\323\344\223\002\022\022\020/api/v1/projects' + _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._options = None + _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._serialized_options = b'\202\323\344\223\002\035:\001*\"\030/api/v1/events/workflows' + _ADMINSERVICE.methods_by_name['CreateNodeEvent']._options = None + _ADMINSERVICE.methods_by_name['CreateNodeEvent']._serialized_options = b'\202\323\344\223\002\031:\001*\"\024/api/v1/events/nodes' + _ADMINSERVICE.methods_by_name['CreateTaskEvent']._options = None + _ADMINSERVICE.methods_by_name['CreateTaskEvent']._serialized_options = b'\202\323\344\223\002\031:\001*\"\024/api/v1/events/tasks' + _ADMINSERVICE.methods_by_name['GetTaskExecution']._options = None + _ADMINSERVICE.methods_by_name['GetTaskExecution']._serialized_options = b'\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' + _ADMINSERVICE.methods_by_name['ListTaskExecutions']._options = None + _ADMINSERVICE.methods_by_name['ListTaskExecutions']._serialized_options = b'\202\323\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}' + _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._options = None + _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._serialized_options = b'\202\323\344\223\002\241\002\022\236\002/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' + _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._options = None + _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._serialized_options = b'\202\323\344\223\002O:\001*\032J/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}' + _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._options = None + _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._serialized_options = b'\202\323\344\223\0026\0224/api/v1/project_domain_attributes/{project}/{domain}' + _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._options = None + _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._serialized_options = b'\202\323\344\223\0029:\001**4/api/v1/project_domain_attributes/{project}/{domain}' + _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._options = None + _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._serialized_options = b'\202\323\344\223\0024:\001*\032//api/v1/project_attributes/{attributes.project}' + _ADMINSERVICE.methods_by_name['GetProjectAttributes']._options = None + _ADMINSERVICE.methods_by_name['GetProjectAttributes']._serialized_options = b'\202\323\344\223\002&\022$/api/v1/project_attributes/{project}' + _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._options = None + _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._serialized_options = b'\202\323\344\223\002):\001**$/api/v1/project_attributes/{project}' + _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._options = None + _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._serialized_options = b'\202\323\344\223\002_:\001*\032Z/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}' + _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._options = None + _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._serialized_options = b'\202\323\344\223\002;\0229/api/v1/workflow_attributes/{project}/{domain}/{workflow}' + _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._options = None + _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._serialized_options = b'\202\323\344\223\002>:\001**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}' + _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._options = None + _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._serialized_options = b'\202\323\344\223\002\036\022\034/api/v1/matchable_attributes' + _ADMINSERVICE.methods_by_name['ListNamedEntities']._options = None + _ADMINSERVICE.methods_by_name['ListNamedEntities']._serialized_options = b'\202\323\344\223\002;\0229/api/v1/named_entities/{resource_type}/{project}/{domain}' + _ADMINSERVICE.methods_by_name['GetNamedEntity']._options = None + _ADMINSERVICE.methods_by_name['GetNamedEntity']._serialized_options = b'\202\323\344\223\002K\022I/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['UpdateNamedEntity']._options = None + _ADMINSERVICE.methods_by_name['UpdateNamedEntity']._serialized_options = b'\202\323\344\223\002N:\001*\032I/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['GetVersion']._options = None + _ADMINSERVICE.methods_by_name['GetVersion']._serialized_options = b'\202\323\344\223\002\021\022\017/api/v1/version' + _ADMINSERVICE.methods_by_name['GetDescriptionEntity']._options = None + _ADMINSERVICE.methods_by_name['GetDescriptionEntity']._serialized_options = b'\202\323\344\223\002a\022_/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}' + _ADMINSERVICE.methods_by_name['ListDescriptionEntities']._options = None + _ADMINSERVICE.methods_by_name['ListDescriptionEntities']._serialized_options = b'\202\323\344\223\002\232\001ZG\022E/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}\022O/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['GetExecutionMetrics']._options = None + _ADMINSERVICE.methods_by_name['GetExecutionMetrics']._serialized_options = b'\202\323\344\223\002?\022=/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}' + _globals['_ADMINSERVICE']._serialized_start=609 + _globals['_ADMINSERVICE']._serialized_end=10597 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi new file mode 100644 index 0000000000..a9028cea2a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi @@ -0,0 +1,20 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from flyteidl.admin import project_pb2 as _project_pb2 +from flyteidl.admin import project_domain_attributes_pb2 as _project_domain_attributes_pb2 +from flyteidl.admin import project_attributes_pb2 as _project_attributes_pb2 +from flyteidl.admin import task_pb2 as _task_pb2 +from flyteidl.admin import workflow_pb2 as _workflow_pb2 +from flyteidl.admin import workflow_attributes_pb2 as _workflow_attributes_pb2 +from flyteidl.admin import launch_plan_pb2 as _launch_plan_pb2 +from flyteidl.admin import event_pb2 as _event_pb2 +from flyteidl.admin import execution_pb2 as _execution_pb2 +from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 +from flyteidl.admin import node_execution_pb2 as _node_execution_pb2 +from flyteidl.admin import task_execution_pb2 as _task_execution_pb2 +from flyteidl.admin import version_pb2 as _version_pb2 +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py new file mode 100644 index 0000000000..2e7bda23fe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py @@ -0,0 +1,1860 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 +from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 +from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 +from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 +from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 +from flyteidl.admin import project_attributes_pb2 as flyteidl_dot_admin_dot_project__attributes__pb2 +from flyteidl.admin import project_domain_attributes_pb2 as flyteidl_dot_admin_dot_project__domain__attributes__pb2 +from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 +from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 +from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 +from flyteidl.admin import version_pb2 as flyteidl_dot_admin_dot_version__pb2 +from flyteidl.admin import workflow_attributes_pb2 as flyteidl_dot_admin_dot_workflow__attributes__pb2 +from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 + + +class AdminServiceStub(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateTask = channel.unary_unary( + '/flyteidl.service.AdminService/CreateTask', + request_serializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.FromString, + ) + self.GetTask = channel.unary_unary( + '/flyteidl.service.AdminService/GetTask', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__pb2.Task.FromString, + ) + self.ListTaskIds = channel.unary_unary( + '/flyteidl.service.AdminService/ListTaskIds', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + ) + self.ListTasks = channel.unary_unary( + '/flyteidl.service.AdminService/ListTasks', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskList.FromString, + ) + self.CreateWorkflow = channel.unary_unary( + '/flyteidl.service.AdminService/CreateWorkflow', + request_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.FromString, + ) + self.GetWorkflow = channel.unary_unary( + '/flyteidl.service.AdminService/GetWorkflow', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.Workflow.FromString, + ) + self.ListWorkflowIds = channel.unary_unary( + '/flyteidl.service.AdminService/ListWorkflowIds', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + ) + self.ListWorkflows = channel.unary_unary( + '/flyteidl.service.AdminService/ListWorkflows', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.FromString, + ) + self.CreateLaunchPlan = channel.unary_unary( + '/flyteidl.service.AdminService/CreateLaunchPlan', + request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.FromString, + ) + self.GetLaunchPlan = channel.unary_unary( + '/flyteidl.service.AdminService/GetLaunchPlan', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, + ) + self.GetActiveLaunchPlan = channel.unary_unary( + '/flyteidl.service.AdminService/GetActiveLaunchPlan', + request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, + ) + self.ListActiveLaunchPlans = channel.unary_unary( + '/flyteidl.service.AdminService/ListActiveLaunchPlans', + request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, + ) + self.ListLaunchPlanIds = channel.unary_unary( + '/flyteidl.service.AdminService/ListLaunchPlanIds', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + ) + self.ListLaunchPlans = channel.unary_unary( + '/flyteidl.service.AdminService/ListLaunchPlans', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, + ) + self.UpdateLaunchPlan = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateLaunchPlan', + request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.FromString, + ) + self.CreateExecution = channel.unary_unary( + '/flyteidl.service.AdminService/CreateExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + ) + self.RelaunchExecution = channel.unary_unary( + '/flyteidl.service.AdminService/RelaunchExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + ) + self.RecoverExecution = channel.unary_unary( + '/flyteidl.service.AdminService/RecoverExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRecoverRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + ) + self.GetExecution = channel.unary_unary( + '/flyteidl.service.AdminService/GetExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.Execution.FromString, + ) + self.UpdateExecution = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateResponse.FromString, + ) + self.GetExecutionData = channel.unary_unary( + '/flyteidl.service.AdminService/GetExecutionData', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.FromString, + ) + self.ListExecutions = channel.unary_unary( + '/flyteidl.service.AdminService/ListExecutions', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionList.FromString, + ) + self.TerminateExecution = channel.unary_unary( + '/flyteidl.service.AdminService/TerminateExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.FromString, + ) + self.GetNodeExecution = channel.unary_unary( + '/flyteidl.service.AdminService/GetNodeExecution', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.FromString, + ) + self.ListNodeExecutions = channel.unary_unary( + '/flyteidl.service.AdminService/ListNodeExecutions', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, + ) + self.ListNodeExecutionsForTask = channel.unary_unary( + '/flyteidl.service.AdminService/ListNodeExecutionsForTask', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, + ) + self.GetNodeExecutionData = channel.unary_unary( + '/flyteidl.service.AdminService/GetNodeExecutionData', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.FromString, + ) + self.RegisterProject = channel.unary_unary( + '/flyteidl.service.AdminService/RegisterProject', + request_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.FromString, + ) + self.UpdateProject = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateProject', + request_serializer=flyteidl_dot_admin_dot_project__pb2.Project.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectUpdateResponse.FromString, + ) + self.ListProjects = channel.unary_unary( + '/flyteidl.service.AdminService/ListProjects', + request_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__pb2.Projects.FromString, + ) + self.CreateWorkflowEvent = channel.unary_unary( + '/flyteidl.service.AdminService/CreateWorkflowEvent', + request_serializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.FromString, + ) + self.CreateNodeEvent = channel.unary_unary( + '/flyteidl.service.AdminService/CreateNodeEvent', + request_serializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.FromString, + ) + self.CreateTaskEvent = channel.unary_unary( + '/flyteidl.service.AdminService/CreateTaskEvent', + request_serializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.FromString, + ) + self.GetTaskExecution = channel.unary_unary( + '/flyteidl.service.AdminService/GetTaskExecution', + request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.FromString, + ) + self.ListTaskExecutions = channel.unary_unary( + '/flyteidl.service.AdminService/ListTaskExecutions', + request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.FromString, + ) + self.GetTaskExecutionData = channel.unary_unary( + '/flyteidl.service.AdminService/GetTaskExecutionData', + request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.FromString, + ) + self.UpdateProjectDomainAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateProjectDomainAttributes', + request_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateResponse.FromString, + ) + self.GetProjectDomainAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/GetProjectDomainAttributes', + request_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetResponse.FromString, + ) + self.DeleteProjectDomainAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/DeleteProjectDomainAttributes', + request_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteResponse.FromString, + ) + self.UpdateProjectAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateProjectAttributes', + request_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateResponse.FromString, + ) + self.GetProjectAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/GetProjectAttributes', + request_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetResponse.FromString, + ) + self.DeleteProjectAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/DeleteProjectAttributes', + request_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteResponse.FromString, + ) + self.UpdateWorkflowAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateWorkflowAttributes', + request_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateResponse.FromString, + ) + self.GetWorkflowAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/GetWorkflowAttributes', + request_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetResponse.FromString, + ) + self.DeleteWorkflowAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/DeleteWorkflowAttributes', + request_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteResponse.FromString, + ) + self.ListMatchableAttributes = channel.unary_unary( + '/flyteidl.service.AdminService/ListMatchableAttributes', + request_serializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesResponse.FromString, + ) + self.ListNamedEntities = channel.unary_unary( + '/flyteidl.service.AdminService/ListNamedEntities', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityList.FromString, + ) + self.GetNamedEntity = channel.unary_unary( + '/flyteidl.service.AdminService/GetNamedEntity', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntity.FromString, + ) + self.UpdateNamedEntity = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateNamedEntity', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateResponse.FromString, + ) + self.GetVersion = channel.unary_unary( + '/flyteidl.service.AdminService/GetVersion', + request_serializer=flyteidl_dot_admin_dot_version__pb2.GetVersionRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_version__pb2.GetVersionResponse.FromString, + ) + self.GetDescriptionEntity = channel.unary_unary( + '/flyteidl.service.AdminService/GetDescriptionEntity', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntity.FromString, + ) + self.ListDescriptionEntities = channel.unary_unary( + '/flyteidl.service.AdminService/ListDescriptionEntities', + request_serializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityList.FromString, + ) + self.GetExecutionMetrics = channel.unary_unary( + '/flyteidl.service.AdminService/GetExecutionMetrics', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsResponse.FromString, + ) + + +class AdminServiceServicer(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + """ + + def CreateTask(self, request, context): + """Create and upload a :ref:`ref_flyteidl.admin.Task` definition + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTask(self, request, context): + """Fetch a :ref:`ref_flyteidl.admin.Task` definition. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTaskIds(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTasks(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWorkflow(self, request, context): + """Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetWorkflow(self, request, context): + """Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListWorkflowIds(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListWorkflows(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateLaunchPlan(self, request, context): + """Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLaunchPlan(self, request, context): + """Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetActiveLaunchPlan(self, request, context): + """Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListActiveLaunchPlans(self, request, context): + """List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListLaunchPlanIds(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListLaunchPlans(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateLaunchPlan(self, request, context): + """Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateExecution(self, request, context): + """Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RelaunchExecution(self, request, context): + """Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RecoverExecution(self, request, context): + """Recreates a previously-run workflow execution that will only start executing from the last known failure point. + In Recover mode, users cannot change any input parameters or update the version of the execution. + This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExecution(self, request, context): + """Fetches a :ref:`ref_flyteidl.admin.Execution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateExecution(self, request, context): + """Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExecutionData(self, request, context): + """Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListExecutions(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TerminateExecution(self, request, context): + """Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNodeExecution(self, request, context): + """Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListNodeExecutions(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListNodeExecutionsForTask(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNodeExecutionData(self, request, context): + """Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RegisterProject(self, request, context): + """Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateProject(self, request, context): + """Updates an existing :ref:`ref_flyteidl.admin.Project` + flyteidl.admin.Project should be passed but the domains property should be empty; + it will be ignored in the handler as domains cannot be updated via this API. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListProjects(self, request, context): + """Fetches a list of :ref:`ref_flyteidl.admin.Project` + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWorkflowEvent(self, request, context): + """Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateNodeEvent(self, request, context): + """Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateTaskEvent(self, request, context): + """Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTaskExecution(self, request, context): + """Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTaskExecutions(self, request, context): + """Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTaskExecutionData(self, request, context): + """Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateProjectDomainAttributes(self, request, context): + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetProjectDomainAttributes(self, request, context): + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteProjectDomainAttributes(self, request, context): + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateProjectAttributes(self, request, context): + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetProjectAttributes(self, request, context): + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteProjectAttributes(self, request, context): + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateWorkflowAttributes(self, request, context): + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetWorkflowAttributes(self, request, context): + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteWorkflowAttributes(self, request, context): + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListMatchableAttributes(self, request, context): + """Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListNamedEntities(self, request, context): + """Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNamedEntity(self, request, context): + """Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateNamedEntity(self, request, context): + """Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetVersion(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDescriptionEntity(self, request, context): + """Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListDescriptionEntities(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExecutionMetrics(self, request, context): + """Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdminServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateTask': grpc.unary_unary_rpc_method_handler( + servicer.CreateTask, + request_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.SerializeToString, + ), + 'GetTask': grpc.unary_unary_rpc_method_handler( + servicer.GetTask, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__pb2.Task.SerializeToString, + ), + 'ListTaskIds': grpc.unary_unary_rpc_method_handler( + servicer.ListTaskIds, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, + ), + 'ListTasks': grpc.unary_unary_rpc_method_handler( + servicer.ListTasks, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__pb2.TaskList.SerializeToString, + ), + 'CreateWorkflow': grpc.unary_unary_rpc_method_handler( + servicer.CreateWorkflow, + request_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.SerializeToString, + ), + 'GetWorkflow': grpc.unary_unary_rpc_method_handler( + servicer.GetWorkflow, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__pb2.Workflow.SerializeToString, + ), + 'ListWorkflowIds': grpc.unary_unary_rpc_method_handler( + servicer.ListWorkflowIds, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, + ), + 'ListWorkflows': grpc.unary_unary_rpc_method_handler( + servicer.ListWorkflows, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.SerializeToString, + ), + 'CreateLaunchPlan': grpc.unary_unary_rpc_method_handler( + servicer.CreateLaunchPlan, + request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.SerializeToString, + ), + 'GetLaunchPlan': grpc.unary_unary_rpc_method_handler( + servicer.GetLaunchPlan, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.SerializeToString, + ), + 'GetActiveLaunchPlan': grpc.unary_unary_rpc_method_handler( + servicer.GetActiveLaunchPlan, + request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.SerializeToString, + ), + 'ListActiveLaunchPlans': grpc.unary_unary_rpc_method_handler( + servicer.ListActiveLaunchPlans, + request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.SerializeToString, + ), + 'ListLaunchPlanIds': grpc.unary_unary_rpc_method_handler( + servicer.ListLaunchPlanIds, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, + ), + 'ListLaunchPlans': grpc.unary_unary_rpc_method_handler( + servicer.ListLaunchPlans, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.SerializeToString, + ), + 'UpdateLaunchPlan': grpc.unary_unary_rpc_method_handler( + servicer.UpdateLaunchPlan, + request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.SerializeToString, + ), + 'CreateExecution': grpc.unary_unary_rpc_method_handler( + servicer.CreateExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, + ), + 'RelaunchExecution': grpc.unary_unary_rpc_method_handler( + servicer.RelaunchExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, + ), + 'RecoverExecution': grpc.unary_unary_rpc_method_handler( + servicer.RecoverExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRecoverRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, + ), + 'GetExecution': grpc.unary_unary_rpc_method_handler( + servicer.GetExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.Execution.SerializeToString, + ), + 'UpdateExecution': grpc.unary_unary_rpc_method_handler( + servicer.UpdateExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateResponse.SerializeToString, + ), + 'GetExecutionData': grpc.unary_unary_rpc_method_handler( + servicer.GetExecutionData, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.SerializeToString, + ), + 'ListExecutions': grpc.unary_unary_rpc_method_handler( + servicer.ListExecutions, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionList.SerializeToString, + ), + 'TerminateExecution': grpc.unary_unary_rpc_method_handler( + servicer.TerminateExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.SerializeToString, + ), + 'GetNodeExecution': grpc.unary_unary_rpc_method_handler( + servicer.GetNodeExecution, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.SerializeToString, + ), + 'ListNodeExecutions': grpc.unary_unary_rpc_method_handler( + servicer.ListNodeExecutions, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.SerializeToString, + ), + 'ListNodeExecutionsForTask': grpc.unary_unary_rpc_method_handler( + servicer.ListNodeExecutionsForTask, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.SerializeToString, + ), + 'GetNodeExecutionData': grpc.unary_unary_rpc_method_handler( + servicer.GetNodeExecutionData, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.SerializeToString, + ), + 'RegisterProject': grpc.unary_unary_rpc_method_handler( + servicer.RegisterProject, + request_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.SerializeToString, + ), + 'UpdateProject': grpc.unary_unary_rpc_method_handler( + servicer.UpdateProject, + request_deserializer=flyteidl_dot_admin_dot_project__pb2.Project.FromString, + response_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectUpdateResponse.SerializeToString, + ), + 'ListProjects': grpc.unary_unary_rpc_method_handler( + servicer.ListProjects, + request_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__pb2.Projects.SerializeToString, + ), + 'CreateWorkflowEvent': grpc.unary_unary_rpc_method_handler( + servicer.CreateWorkflowEvent, + request_deserializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.SerializeToString, + ), + 'CreateNodeEvent': grpc.unary_unary_rpc_method_handler( + servicer.CreateNodeEvent, + request_deserializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.SerializeToString, + ), + 'CreateTaskEvent': grpc.unary_unary_rpc_method_handler( + servicer.CreateTaskEvent, + request_deserializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.SerializeToString, + ), + 'GetTaskExecution': grpc.unary_unary_rpc_method_handler( + servicer.GetTaskExecution, + request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.SerializeToString, + ), + 'ListTaskExecutions': grpc.unary_unary_rpc_method_handler( + servicer.ListTaskExecutions, + request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.SerializeToString, + ), + 'GetTaskExecutionData': grpc.unary_unary_rpc_method_handler( + servicer.GetTaskExecutionData, + request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.SerializeToString, + ), + 'UpdateProjectDomainAttributes': grpc.unary_unary_rpc_method_handler( + servicer.UpdateProjectDomainAttributes, + request_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateResponse.SerializeToString, + ), + 'GetProjectDomainAttributes': grpc.unary_unary_rpc_method_handler( + servicer.GetProjectDomainAttributes, + request_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetResponse.SerializeToString, + ), + 'DeleteProjectDomainAttributes': grpc.unary_unary_rpc_method_handler( + servicer.DeleteProjectDomainAttributes, + request_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteResponse.SerializeToString, + ), + 'UpdateProjectAttributes': grpc.unary_unary_rpc_method_handler( + servicer.UpdateProjectAttributes, + request_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateResponse.SerializeToString, + ), + 'GetProjectAttributes': grpc.unary_unary_rpc_method_handler( + servicer.GetProjectAttributes, + request_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetResponse.SerializeToString, + ), + 'DeleteProjectAttributes': grpc.unary_unary_rpc_method_handler( + servicer.DeleteProjectAttributes, + request_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteResponse.SerializeToString, + ), + 'UpdateWorkflowAttributes': grpc.unary_unary_rpc_method_handler( + servicer.UpdateWorkflowAttributes, + request_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateResponse.SerializeToString, + ), + 'GetWorkflowAttributes': grpc.unary_unary_rpc_method_handler( + servicer.GetWorkflowAttributes, + request_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetResponse.SerializeToString, + ), + 'DeleteWorkflowAttributes': grpc.unary_unary_rpc_method_handler( + servicer.DeleteWorkflowAttributes, + request_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteResponse.SerializeToString, + ), + 'ListMatchableAttributes': grpc.unary_unary_rpc_method_handler( + servicer.ListMatchableAttributes, + request_deserializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesResponse.SerializeToString, + ), + 'ListNamedEntities': grpc.unary_unary_rpc_method_handler( + servicer.ListNamedEntities, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityList.SerializeToString, + ), + 'GetNamedEntity': grpc.unary_unary_rpc_method_handler( + servicer.GetNamedEntity, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntity.SerializeToString, + ), + 'UpdateNamedEntity': grpc.unary_unary_rpc_method_handler( + servicer.UpdateNamedEntity, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateResponse.SerializeToString, + ), + 'GetVersion': grpc.unary_unary_rpc_method_handler( + servicer.GetVersion, + request_deserializer=flyteidl_dot_admin_dot_version__pb2.GetVersionRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_version__pb2.GetVersionResponse.SerializeToString, + ), + 'GetDescriptionEntity': grpc.unary_unary_rpc_method_handler( + servicer.GetDescriptionEntity, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntity.SerializeToString, + ), + 'ListDescriptionEntities': grpc.unary_unary_rpc_method_handler( + servicer.ListDescriptionEntities, + request_deserializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityList.SerializeToString, + ), + 'GetExecutionMetrics': grpc.unary_unary_rpc_method_handler( + servicer.GetExecutionMetrics, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.AdminService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class AdminService(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + """ + + @staticmethod + def CreateTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateTask', + flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.SerializeToString, + flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetTask', + flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + flyteidl_dot_admin_dot_task__pb2.Task.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListTaskIds(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListTaskIds', + flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListTasks(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListTasks', + flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + flyteidl_dot_admin_dot_task__pb2.TaskList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWorkflow(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateWorkflow', + flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.SerializeToString, + flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetWorkflow(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetWorkflow', + flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + flyteidl_dot_admin_dot_workflow__pb2.Workflow.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListWorkflowIds(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListWorkflowIds', + flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListWorkflows(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListWorkflows', + flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateLaunchPlan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateLaunchPlan', + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.SerializeToString, + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLaunchPlan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetLaunchPlan', + flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetActiveLaunchPlan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetActiveLaunchPlan', + flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanRequest.SerializeToString, + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListActiveLaunchPlans(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListActiveLaunchPlans', + flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanListRequest.SerializeToString, + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListLaunchPlanIds(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListLaunchPlanIds', + flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListLaunchPlans(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListLaunchPlans', + flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateLaunchPlan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateLaunchPlan', + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.SerializeToString, + flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateExecution', + flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RelaunchExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/RelaunchExecution', + flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RecoverExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/RecoverExecution', + flyteidl_dot_admin_dot_execution__pb2.ExecutionRecoverRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetExecution', + flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.Execution.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateExecution', + flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExecutionData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetExecutionData', + flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListExecutions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListExecutions', + flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.ExecutionList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TerminateExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/TerminateExecution', + flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNodeExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetNodeExecution', + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.SerializeToString, + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListNodeExecutions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListNodeExecutions', + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.SerializeToString, + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListNodeExecutionsForTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListNodeExecutionsForTask', + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.SerializeToString, + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNodeExecutionData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetNodeExecutionData', + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.SerializeToString, + flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RegisterProject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/RegisterProject', + flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.SerializeToString, + flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateProject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateProject', + flyteidl_dot_admin_dot_project__pb2.Project.SerializeToString, + flyteidl_dot_admin_dot_project__pb2.ProjectUpdateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListProjects(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListProjects', + flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.SerializeToString, + flyteidl_dot_admin_dot_project__pb2.Projects.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWorkflowEvent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateWorkflowEvent', + flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.SerializeToString, + flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateNodeEvent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateNodeEvent', + flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.SerializeToString, + flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateTaskEvent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateTaskEvent', + flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.SerializeToString, + flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTaskExecution(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetTaskExecution', + flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.SerializeToString, + flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListTaskExecutions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListTaskExecutions', + flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.SerializeToString, + flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTaskExecutionData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetTaskExecutionData', + flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.SerializeToString, + flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateProjectDomainAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateProjectDomainAttributes', + flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateRequest.SerializeToString, + flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetProjectDomainAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetProjectDomainAttributes', + flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetRequest.SerializeToString, + flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteProjectDomainAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/DeleteProjectDomainAttributes', + flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteRequest.SerializeToString, + flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateProjectAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateProjectAttributes', + flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateRequest.SerializeToString, + flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetProjectAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetProjectAttributes', + flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetRequest.SerializeToString, + flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteProjectAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/DeleteProjectAttributes', + flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteRequest.SerializeToString, + flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateWorkflowAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateWorkflowAttributes', + flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateRequest.SerializeToString, + flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetWorkflowAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetWorkflowAttributes', + flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetRequest.SerializeToString, + flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteWorkflowAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/DeleteWorkflowAttributes', + flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteRequest.SerializeToString, + flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListMatchableAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListMatchableAttributes', + flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesRequest.SerializeToString, + flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListNamedEntities(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListNamedEntities', + flyteidl_dot_admin_dot_common__pb2.NamedEntityListRequest.SerializeToString, + flyteidl_dot_admin_dot_common__pb2.NamedEntityList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNamedEntity(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetNamedEntity', + flyteidl_dot_admin_dot_common__pb2.NamedEntityGetRequest.SerializeToString, + flyteidl_dot_admin_dot_common__pb2.NamedEntity.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateNamedEntity(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateNamedEntity', + flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateRequest.SerializeToString, + flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetVersion(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetVersion', + flyteidl_dot_admin_dot_version__pb2.GetVersionRequest.SerializeToString, + flyteidl_dot_admin_dot_version__pb2.GetVersionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDescriptionEntity(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetDescriptionEntity', + flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntity.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListDescriptionEntities(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListDescriptionEntities', + flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityListRequest.SerializeToString, + flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExecutionMetrics(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetExecutionMetrics', + flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsRequest.SerializeToString, + flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py new file mode 100644 index 0000000000..f4510ca2f2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/agent.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1a\x66lyteidl/admin/agent.proto2\x8f\x02\n\x11\x41syncAgentService\x12U\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x00\x12L\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"\x00\x12U\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"\x00\x42\xbc\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.agent_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nAgentProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _globals['_ASYNCAGENTSERVICE']._serialized_start=79 + _globals['_ASYNCAGENTSERVICE']._serialized_end=350 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi new file mode 100644 index 0000000000..8c85e57d2d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi @@ -0,0 +1,5 @@ +from flyteidl.admin import agent_pb2 as _agent_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py new file mode 100644 index 0000000000..3ef2af39c4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 + + +class AsyncAgentServiceStub(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateTask = channel.unary_unary( + '/flyteidl.service.AsyncAgentService/CreateTask', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.FromString, + ) + self.GetTask = channel.unary_unary( + '/flyteidl.service.AsyncAgentService/GetTask', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.FromString, + ) + self.DeleteTask = channel.unary_unary( + '/flyteidl.service.AsyncAgentService/DeleteTask', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.FromString, + ) + + +class AsyncAgentServiceServicer(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server. + """ + + def CreateTask(self, request, context): + """Send a task create request to the agent server. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTask(self, request, context): + """Get job status. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteTask(self, request, context): + """Delete the task resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AsyncAgentServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateTask': grpc.unary_unary_rpc_method_handler( + servicer.CreateTask, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.SerializeToString, + ), + 'GetTask': grpc.unary_unary_rpc_method_handler( + servicer.GetTask, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.SerializeToString, + ), + 'DeleteTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.AsyncAgentService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class AsyncAgentService(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server. + """ + + @staticmethod + def CreateTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/CreateTask', + flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/GetTask', + flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/DeleteTask', + flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py new file mode 100644 index 0000000000..256f34655a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/auth.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/service/auth.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\"\x17\n\x15OAuth2MetadataRequest\"\xa1\x04\n\x16OAuth2MetadataResponse\x12\x16\n\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x35\n\x16\x61uthorization_endpoint\x18\x02 \x01(\tR\x15\x61uthorizationEndpoint\x12%\n\x0etoken_endpoint\x18\x03 \x01(\tR\rtokenEndpoint\x12\x38\n\x18response_types_supported\x18\x04 \x03(\tR\x16responseTypesSupported\x12)\n\x10scopes_supported\x18\x05 \x03(\tR\x0fscopesSupported\x12P\n%token_endpoint_auth_methods_supported\x18\x06 \x03(\tR!tokenEndpointAuthMethodsSupported\x12\x19\n\x08jwks_uri\x18\x07 \x01(\tR\x07jwksUri\x12G\n code_challenge_methods_supported\x18\x08 \x03(\tR\x1d\x63odeChallengeMethodsSupported\x12\x32\n\x15grant_types_supported\x18\t \x03(\tR\x13grantTypesSupported\x12\x42\n\x1d\x64\x65vice_authorization_endpoint\x18\n \x01(\tR\x1b\x64\x65viceAuthorizationEndpoint\"\x1f\n\x1dPublicClientAuthConfigRequest\"\x86\x02\n\x1ePublicClientAuthConfigResponse\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12!\n\x0credirect_uri\x18\x02 \x01(\tR\x0bredirectUri\x12\x16\n\x06scopes\x18\x03 \x03(\tR\x06scopes\x12<\n\x1a\x61uthorization_metadata_key\x18\x04 \x01(\tR\x18\x61uthorizationMetadataKey\x12\x32\n\x15service_http_endpoint\x18\x05 \x01(\tR\x13serviceHttpEndpoint\x12\x1a\n\x08\x61udience\x18\x06 \x01(\tR\x08\x61udience2\xcd\x02\n\x13\x41uthMetadataService\x12\x97\x01\n\x11GetOAuth2Metadata\x12\'.flyteidl.service.OAuth2MetadataRequest\x1a(.flyteidl.service.OAuth2MetadataResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/.well-known/oauth-authorization-server\x12\x9b\x01\n\x15GetPublicClientConfig\x12/.flyteidl.service.PublicClientAuthConfigRequest\x1a\x30.flyteidl.service.PublicClientAuthConfigResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/config/v1/flyte_clientB\xbb\x01\n\x14\x63om.flyteidl.serviceB\tAuthProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.auth_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\tAuthProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _AUTHMETADATASERVICE.methods_by_name['GetOAuth2Metadata']._options = None + _AUTHMETADATASERVICE.methods_by_name['GetOAuth2Metadata']._serialized_options = b'\202\323\344\223\002)\022\'/.well-known/oauth-authorization-server' + _AUTHMETADATASERVICE.methods_by_name['GetPublicClientConfig']._options = None + _AUTHMETADATASERVICE.methods_by_name['GetPublicClientConfig']._serialized_options = b'\202\323\344\223\002\031\022\027/config/v1/flyte_client' + _globals['_OAUTH2METADATAREQUEST']._serialized_start=79 + _globals['_OAUTH2METADATAREQUEST']._serialized_end=102 + _globals['_OAUTH2METADATARESPONSE']._serialized_start=105 + _globals['_OAUTH2METADATARESPONSE']._serialized_end=650 + _globals['_PUBLICCLIENTAUTHCONFIGREQUEST']._serialized_start=652 + _globals['_PUBLICCLIENTAUTHCONFIGREQUEST']._serialized_end=683 + _globals['_PUBLICCLIENTAUTHCONFIGRESPONSE']._serialized_start=686 + _globals['_PUBLICCLIENTAUTHCONFIGRESPONSE']._serialized_end=948 + _globals['_AUTHMETADATASERVICE']._serialized_start=951 + _globals['_AUTHMETADATASERVICE']._serialized_end=1284 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi new file mode 100644 index 0000000000..3d02573b5d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi @@ -0,0 +1,55 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class OAuth2MetadataRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class OAuth2MetadataResponse(_message.Message): + __slots__ = ["issuer", "authorization_endpoint", "token_endpoint", "response_types_supported", "scopes_supported", "token_endpoint_auth_methods_supported", "jwks_uri", "code_challenge_methods_supported", "grant_types_supported", "device_authorization_endpoint"] + ISSUER_FIELD_NUMBER: _ClassVar[int] + AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + SCOPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + JWKS_URI_FIELD_NUMBER: _ClassVar[int] + CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + GRANT_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + issuer: str + authorization_endpoint: str + token_endpoint: str + response_types_supported: _containers.RepeatedScalarFieldContainer[str] + scopes_supported: _containers.RepeatedScalarFieldContainer[str] + token_endpoint_auth_methods_supported: _containers.RepeatedScalarFieldContainer[str] + jwks_uri: str + code_challenge_methods_supported: _containers.RepeatedScalarFieldContainer[str] + grant_types_supported: _containers.RepeatedScalarFieldContainer[str] + device_authorization_endpoint: str + def __init__(self, issuer: _Optional[str] = ..., authorization_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ..., response_types_supported: _Optional[_Iterable[str]] = ..., scopes_supported: _Optional[_Iterable[str]] = ..., token_endpoint_auth_methods_supported: _Optional[_Iterable[str]] = ..., jwks_uri: _Optional[str] = ..., code_challenge_methods_supported: _Optional[_Iterable[str]] = ..., grant_types_supported: _Optional[_Iterable[str]] = ..., device_authorization_endpoint: _Optional[str] = ...) -> None: ... + +class PublicClientAuthConfigRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class PublicClientAuthConfigResponse(_message.Message): + __slots__ = ["client_id", "redirect_uri", "scopes", "authorization_metadata_key", "service_http_endpoint", "audience"] + CLIENT_ID_FIELD_NUMBER: _ClassVar[int] + REDIRECT_URI_FIELD_NUMBER: _ClassVar[int] + SCOPES_FIELD_NUMBER: _ClassVar[int] + AUTHORIZATION_METADATA_KEY_FIELD_NUMBER: _ClassVar[int] + SERVICE_HTTP_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + AUDIENCE_FIELD_NUMBER: _ClassVar[int] + client_id: str + redirect_uri: str + scopes: _containers.RepeatedScalarFieldContainer[str] + authorization_metadata_key: str + service_http_endpoint: str + audience: str + def __init__(self, client_id: _Optional[str] = ..., redirect_uri: _Optional[str] = ..., scopes: _Optional[_Iterable[str]] = ..., authorization_metadata_key: _Optional[str] = ..., service_http_endpoint: _Optional[str] = ..., audience: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py new file mode 100644 index 0000000000..155b8ca575 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py @@ -0,0 +1,111 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import auth_pb2 as flyteidl_dot_service_dot_auth__pb2 + + +class AuthMetadataServiceStub(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + RPCs defined in this service must be anonymously accessible. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetOAuth2Metadata = channel.unary_unary( + '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', + request_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, + ) + self.GetPublicClientConfig = channel.unary_unary( + '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', + request_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, + ) + + +class AuthMetadataServiceServicer(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + RPCs defined in this service must be anonymously accessible. + """ + + def GetOAuth2Metadata(self, request, context): + """Anonymously accessible. Retrieves local or external oauth authorization server metadata. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPublicClientConfig(self, request, context): + """Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + requests. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AuthMetadataServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetOAuth2Metadata': grpc.unary_unary_rpc_method_handler( + servicer.GetOAuth2Metadata, + request_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.FromString, + response_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.SerializeToString, + ), + 'GetPublicClientConfig': grpc.unary_unary_rpc_method_handler( + servicer.GetPublicClientConfig, + request_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.FromString, + response_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.AuthMetadataService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class AuthMetadataService(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + RPCs defined in this service must be anonymously accessible. + """ + + @staticmethod + def GetOAuth2Metadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', + flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, + flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPublicClientConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', + flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, + flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py new file mode 100644 index 0000000000..a8f41072b7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/dataproxy.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/service/dataproxy.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x97\x01\n\x1c\x43reateUploadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x1d\n\nnative_url\x18\x02 \x01(\tR\tnativeUrl\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"\xeb\x01\n\x1b\x43reateUploadLocationRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08\x66ilename\x18\x03 \x01(\tR\x08\x66ilename\x12\x38\n\nexpires_in\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12\x1f\n\x0b\x63ontent_md5\x18\x05 \x01(\x0cR\ncontentMd5\x12#\n\rfilename_root\x18\x06 \x01(\tR\x0c\x66ilenameRoot\"|\n\x1d\x43reateDownloadLocationRequest\x12\x1d\n\nnative_url\x18\x01 \x01(\tR\tnativeUrl\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn:\x02\x18\x01\"~\n\x1e\x43reateDownloadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt:\x02\x18\x01\"\xfa\x01\n\x19\x43reateDownloadLinkRequest\x12\x43\n\rartifact_type\x18\x01 \x01(\x0e\x32\x1e.flyteidl.service.ArtifactTypeR\x0c\x61rtifactType\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12T\n\x11node_execution_id\x18\x03 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x0fnodeExecutionIdB\x08\n\x06source\"\xc7\x01\n\x1a\x43reateDownloadLinkResponse\x12!\n\nsigned_url\x18\x01 \x03(\tB\x02\x18\x01R\tsignedUrl\x12=\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01R\texpiresAt\x12G\n\x0fpre_signed_urls\x18\x03 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsR\rpreSignedUrls\"i\n\rPreSignedURLs\x12\x1d\n\nsigned_url\x18\x01 \x03(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"-\n\x0eGetDataRequest\x12\x1b\n\tflyte_url\x18\x01 \x01(\tR\x08\x66lyteUrl\"\xd6\x01\n\x0fGetDataResponse\x12<\n\x0bliteral_map\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\nliteralMap\x12I\n\x0fpre_signed_urls\x18\x02 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsH\x00R\rpreSignedUrls\x12\x32\n\x07literal\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07literalB\x06\n\x04\x64\x61ta*C\n\x0c\x41rtifactType\x12\x1b\n\x17\x41RTIFACT_TYPE_UNDEFINED\x10\x00\x12\x16\n\x12\x41RTIFACT_TYPE_DECK\x10\x01\x32\xe2\x04\n\x10\x44\x61taProxyService\x12\xa0\x01\n\x14\x43reateUploadLocation\x12-.flyteidl.service.CreateUploadLocationRequest\x1a..flyteidl.service.CreateUploadLocationResponse\")\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/v1/dataproxy/artifact_urn\x12\xa6\x01\n\x16\x43reateDownloadLocation\x12/.flyteidl.service.CreateDownloadLocationRequest\x1a\x30.flyteidl.service.CreateDownloadLocationResponse\")\x88\x02\x01\x82\xd3\xe4\x93\x02 \x12\x1e/api/v1/dataproxy/artifact_urn\x12\x9b\x01\n\x12\x43reateDownloadLink\x12+.flyteidl.service.CreateDownloadLinkRequest\x1a,.flyteidl.service.CreateDownloadLinkResponse\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v1/dataproxy/artifact_link\x12\x64\n\x07GetData\x12 .flyteidl.service.GetDataRequest\x1a!.flyteidl.service.GetDataResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/v1/dataB\xc0\x01\n\x14\x63om.flyteidl.serviceB\x0e\x44\x61taproxyProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.dataproxy_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\016DataproxyProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _CREATEDOWNLOADLOCATIONREQUEST._options = None + _CREATEDOWNLOADLOCATIONREQUEST._serialized_options = b'\030\001' + _CREATEDOWNLOADLOCATIONRESPONSE._options = None + _CREATEDOWNLOADLOCATIONRESPONSE._serialized_options = b'\030\001' + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._options = None + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._serialized_options = b'\030\001' + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._options = None + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._serialized_options = b'\030\001' + _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._options = None + _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._serialized_options = b'\202\323\344\223\002#:\001*\"\036/api/v1/dataproxy/artifact_urn' + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._options = None + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._serialized_options = b'\210\002\001\202\323\344\223\002 \022\036/api/v1/dataproxy/artifact_urn' + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._options = None + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._serialized_options = b'\202\323\344\223\002$:\001*\"\037/api/v1/dataproxy/artifact_link' + _DATAPROXYSERVICE.methods_by_name['GetData']._options = None + _DATAPROXYSERVICE.methods_by_name['GetData']._serialized_options = b'\202\323\344\223\002\016\022\014/api/v1/data' + _globals['_ARTIFACTTYPE']._serialized_start=1683 + _globals['_ARTIFACTTYPE']._serialized_end=1750 + _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_start=212 + _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_end=363 + _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_start=366 + _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_end=601 + _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_start=603 + _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_end=727 + _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_start=729 + _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_end=855 + _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_start=858 + _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_end=1108 + _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_start=1111 + _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_end=1310 + _globals['_PRESIGNEDURLS']._serialized_start=1312 + _globals['_PRESIGNEDURLS']._serialized_end=1417 + _globals['_GETDATAREQUEST']._serialized_start=1419 + _globals['_GETDATAREQUEST']._serialized_end=1464 + _globals['_GETDATARESPONSE']._serialized_start=1467 + _globals['_GETDATARESPONSE']._serialized_end=1681 + _globals['_DATAPROXYSERVICE']._serialized_start=1753 + _globals['_DATAPROXYSERVICE']._serialized_end=2363 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi new file mode 100644 index 0000000000..820034751f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi @@ -0,0 +1,105 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ArtifactType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ARTIFACT_TYPE_UNDEFINED: _ClassVar[ArtifactType] + ARTIFACT_TYPE_DECK: _ClassVar[ArtifactType] +ARTIFACT_TYPE_UNDEFINED: ArtifactType +ARTIFACT_TYPE_DECK: ArtifactType + +class CreateUploadLocationResponse(_message.Message): + __slots__ = ["signed_url", "native_url", "expires_at"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + NATIVE_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + signed_url: str + native_url: str + expires_at: _timestamp_pb2.Timestamp + def __init__(self, signed_url: _Optional[str] = ..., native_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class CreateUploadLocationRequest(_message.Message): + __slots__ = ["project", "domain", "filename", "expires_in", "content_md5", "filename_root"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + FILENAME_FIELD_NUMBER: _ClassVar[int] + EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] + CONTENT_MD5_FIELD_NUMBER: _ClassVar[int] + FILENAME_ROOT_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + filename: str + expires_in: _duration_pb2.Duration + content_md5: bytes + filename_root: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., filename: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., content_md5: _Optional[bytes] = ..., filename_root: _Optional[str] = ...) -> None: ... + +class CreateDownloadLocationRequest(_message.Message): + __slots__ = ["native_url", "expires_in"] + NATIVE_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] + native_url: str + expires_in: _duration_pb2.Duration + def __init__(self, native_url: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class CreateDownloadLocationResponse(_message.Message): + __slots__ = ["signed_url", "expires_at"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + signed_url: str + expires_at: _timestamp_pb2.Timestamp + def __init__(self, signed_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class CreateDownloadLinkRequest(_message.Message): + __slots__ = ["artifact_type", "expires_in", "node_execution_id"] + ARTIFACT_TYPE_FIELD_NUMBER: _ClassVar[int] + EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] + NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + artifact_type: ArtifactType + expires_in: _duration_pb2.Duration + node_execution_id: _identifier_pb2.NodeExecutionIdentifier + def __init__(self, artifact_type: _Optional[_Union[ArtifactType, str]] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class CreateDownloadLinkResponse(_message.Message): + __slots__ = ["signed_url", "expires_at", "pre_signed_urls"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] + signed_url: _containers.RepeatedScalarFieldContainer[str] + expires_at: _timestamp_pb2.Timestamp + pre_signed_urls: PreSignedURLs + def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ...) -> None: ... + +class PreSignedURLs(_message.Message): + __slots__ = ["signed_url", "expires_at"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + signed_url: _containers.RepeatedScalarFieldContainer[str] + expires_at: _timestamp_pb2.Timestamp + def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class GetDataRequest(_message.Message): + __slots__ = ["flyte_url"] + FLYTE_URL_FIELD_NUMBER: _ClassVar[int] + flyte_url: str + def __init__(self, flyte_url: _Optional[str] = ...) -> None: ... + +class GetDataResponse(_message.Message): + __slots__ = ["literal_map", "pre_signed_urls", "literal"] + LITERAL_MAP_FIELD_NUMBER: _ClassVar[int] + PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] + LITERAL_FIELD_NUMBER: _ClassVar[int] + literal_map: _literals_pb2.LiteralMap + pre_signed_urls: PreSignedURLs + literal: _literals_pb2.Literal + def __init__(self, literal_map: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ..., literal: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py new file mode 100644 index 0000000000..601d1cbf56 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py @@ -0,0 +1,171 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import dataproxy_pb2 as flyteidl_dot_service_dot_dataproxy__pb2 + + +class DataProxyServiceStub(object): + """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateUploadLocation = channel.unary_unary( + '/flyteidl.service.DataProxyService/CreateUploadLocation', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, + ) + self.CreateDownloadLocation = channel.unary_unary( + '/flyteidl.service.DataProxyService/CreateDownloadLocation', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, + ) + self.CreateDownloadLink = channel.unary_unary( + '/flyteidl.service.DataProxyService/CreateDownloadLink', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, + ) + self.GetData = channel.unary_unary( + '/flyteidl.service.DataProxyService/GetData', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, + ) + + +class DataProxyServiceServicer(object): + """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + """ + + def CreateUploadLocation(self, request, context): + """CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDownloadLocation(self, request, context): + """CreateDownloadLocation creates a signed url to download artifacts. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDownloadLink(self, request, context): + """CreateDownloadLocation creates a signed url to download artifacts. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DataProxyServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateUploadLocation': grpc.unary_unary_rpc_method_handler( + servicer.CreateUploadLocation, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.SerializeToString, + ), + 'CreateDownloadLocation': grpc.unary_unary_rpc_method_handler( + servicer.CreateDownloadLocation, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.SerializeToString, + ), + 'CreateDownloadLink': grpc.unary_unary_rpc_method_handler( + servicer.CreateDownloadLink, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.SerializeToString, + ), + 'GetData': grpc.unary_unary_rpc_method_handler( + servicer.GetData, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.DataProxyService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DataProxyService(object): + """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + """ + + @staticmethod + def CreateUploadLocation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateUploadLocation', + flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDownloadLocation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLocation', + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDownloadLink(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLink', + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/GetData', + flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py new file mode 100644 index 0000000000..a6558228d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/external_plugin_service.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/service/external_plugin_service.proto\x12\x10\x66lyteidl.service\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1d\x66lyteidl/core/interface.proto\"\xa8\x01\n\x11TaskCreateRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix:\x02\x18\x01\"/\n\x12TaskCreateResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId:\x02\x18\x01\"H\n\x0eTaskGetRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"y\n\x0fTaskGetResponse\x12-\n\x05state\x18\x01 \x01(\x0e\x32\x17.flyteidl.service.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs:\x02\x18\x01\"K\n\x11TaskDeleteRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"\x18\n\x12TaskDeleteResponse:\x02\x18\x01*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x32\xa8\x02\n\x15\x45xternalPluginService\x12\\\n\nCreateTask\x12#.flyteidl.service.TaskCreateRequest\x1a$.flyteidl.service.TaskCreateResponse\"\x03\x88\x02\x01\x12S\n\x07GetTask\x12 .flyteidl.service.TaskGetRequest\x1a!.flyteidl.service.TaskGetResponse\"\x03\x88\x02\x01\x12\\\n\nDeleteTask\x12#.flyteidl.service.TaskDeleteRequest\x1a$.flyteidl.service.TaskDeleteResponse\"\x03\x88\x02\x01\x42\xcc\x01\n\x14\x63om.flyteidl.serviceB\x1a\x45xternalPluginServiceProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.external_plugin_service_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\032ExternalPluginServiceProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _STATE._options = None + _STATE._serialized_options = b'\030\001' + _TASKCREATEREQUEST._options = None + _TASKCREATEREQUEST._serialized_options = b'\030\001' + _TASKCREATERESPONSE._options = None + _TASKCREATERESPONSE._serialized_options = b'\030\001' + _TASKGETREQUEST._options = None + _TASKGETREQUEST._serialized_options = b'\030\001' + _TASKGETRESPONSE._options = None + _TASKGETRESPONSE._serialized_options = b'\030\001' + _TASKDELETEREQUEST._options = None + _TASKDELETEREQUEST._serialized_options = b'\030\001' + _TASKDELETERESPONSE._options = None + _TASKDELETERESPONSE._serialized_options = b'\030\001' + _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._options = None + _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._serialized_options = b'\210\002\001' + _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._options = None + _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._serialized_options = b'\210\002\001' + _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._options = None + _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._serialized_options = b'\210\002\001' + _globals['_STATE']._serialized_start=676 + _globals['_STATE']._serialized_end=774 + _globals['_TASKCREATEREQUEST']._serialized_start=157 + _globals['_TASKCREATEREQUEST']._serialized_end=325 + _globals['_TASKCREATERESPONSE']._serialized_start=327 + _globals['_TASKCREATERESPONSE']._serialized_end=374 + _globals['_TASKGETREQUEST']._serialized_start=376 + _globals['_TASKGETREQUEST']._serialized_end=448 + _globals['_TASKGETRESPONSE']._serialized_start=450 + _globals['_TASKGETRESPONSE']._serialized_end=571 + _globals['_TASKDELETEREQUEST']._serialized_start=573 + _globals['_TASKDELETEREQUEST']._serialized_end=648 + _globals['_TASKDELETERESPONSE']._serialized_start=650 + _globals['_TASKDELETERESPONSE']._serialized_end=674 + _globals['_EXTERNALPLUGINSERVICE']._serialized_start=777 + _globals['_EXTERNALPLUGINSERVICE']._serialized_end=1073 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi new file mode 100644 index 0000000000..b5163a8bfe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi @@ -0,0 +1,66 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RETRYABLE_FAILURE: _ClassVar[State] + PERMANENT_FAILURE: _ClassVar[State] + PENDING: _ClassVar[State] + RUNNING: _ClassVar[State] + SUCCEEDED: _ClassVar[State] +RETRYABLE_FAILURE: State +PERMANENT_FAILURE: State +PENDING: State +RUNNING: State +SUCCEEDED: State + +class TaskCreateRequest(_message.Message): + __slots__ = ["inputs", "template", "output_prefix"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] + inputs: _literals_pb2.LiteralMap + template: _tasks_pb2.TaskTemplate + output_prefix: str + def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ...) -> None: ... + +class TaskCreateResponse(_message.Message): + __slots__ = ["job_id"] + JOB_ID_FIELD_NUMBER: _ClassVar[int] + job_id: str + def __init__(self, job_id: _Optional[str] = ...) -> None: ... + +class TaskGetRequest(_message.Message): + __slots__ = ["task_type", "job_id"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + JOB_ID_FIELD_NUMBER: _ClassVar[int] + task_type: str + job_id: str + def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... + +class TaskGetResponse(_message.Message): + __slots__ = ["state", "outputs"] + STATE_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + state: State + outputs: _literals_pb2.LiteralMap + def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class TaskDeleteRequest(_message.Message): + __slots__ = ["task_type", "job_id"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + JOB_ID_FIELD_NUMBER: _ClassVar[int] + task_type: str + job_id: str + def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... + +class TaskDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py new file mode 100644 index 0000000000..6607d36710 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import external_plugin_service_pb2 as flyteidl_dot_service_dot_external__plugin__service__pb2 + + +class ExternalPluginServiceStub(object): + """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateTask = channel.unary_unary( + '/flyteidl.service.ExternalPluginService/CreateTask', + request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, + ) + self.GetTask = channel.unary_unary( + '/flyteidl.service.ExternalPluginService/GetTask', + request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, + ) + self.DeleteTask = channel.unary_unary( + '/flyteidl.service.ExternalPluginService/DeleteTask', + request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, + ) + + +class ExternalPluginServiceServicer(object): + """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. + """ + + def CreateTask(self, request, context): + """Send a task create request to the backend plugin server. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTask(self, request, context): + """Get job status. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteTask(self, request, context): + """Delete the task resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ExternalPluginServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateTask': grpc.unary_unary_rpc_method_handler( + servicer.CreateTask, + request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.FromString, + response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.SerializeToString, + ), + 'GetTask': grpc.unary_unary_rpc_method_handler( + servicer.GetTask, + request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.FromString, + response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.SerializeToString, + ), + 'DeleteTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.FromString, + response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.ExternalPluginService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ExternalPluginService(object): + """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. + """ + + @staticmethod + def CreateTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/CreateTask', + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/GetTask', + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/DeleteTask', + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore new file mode 100644 index 0000000000..a655050c26 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore @@ -0,0 +1,64 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore new file mode 100644 index 0000000000..c5fa491b4c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION new file mode 100644 index 0000000000..6cecc1a68f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.6-SNAPSHOT \ No newline at end of file diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml new file mode 100644 index 0000000000..86211e2d4a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml @@ -0,0 +1,14 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + #- "3.5-dev" # 3.5 development branch + #- "nightly" # points to the latest development branch e.g. 3.6-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: nosetests diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md new file mode 100644 index 0000000000..fc2ba486ac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md @@ -0,0 +1,410 @@ +# flyteadmin +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: + +- API version: version not set +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on Github, you can install directly from Github + +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) + +Then import the package: +```python +import flyteadmin +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import flyteadmin +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import flyteadmin +from flyteadmin.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = flyteadmin.AdminServiceApi(flyteadmin.ApiClient(configuration)) +body = flyteadmin.AdminExecutionCreateRequest() # AdminExecutionCreateRequest | + +try: + # Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + api_response = api_instance.create_execution(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminServiceApi->create_execution: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdminServiceApi* | [**create_execution**](docs/AdminServiceApi.md#create_execution) | **POST** /api/v1/executions | Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` +*AdminServiceApi* | [**create_launch_plan**](docs/AdminServiceApi.md#create_launch_plan) | **POST** /api/v1/launch_plans | Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition +*AdminServiceApi* | [**create_node_event**](docs/AdminServiceApi.md#create_node_event) | **POST** /api/v1/events/nodes | Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. +*AdminServiceApi* | [**create_task**](docs/AdminServiceApi.md#create_task) | **POST** /api/v1/tasks | Create and upload a :ref:`ref_flyteidl.admin.Task` definition +*AdminServiceApi* | [**create_task_event**](docs/AdminServiceApi.md#create_task_event) | **POST** /api/v1/events/tasks | Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. +*AdminServiceApi* | [**create_workflow**](docs/AdminServiceApi.md#create_workflow) | **POST** /api/v1/workflows | Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition +*AdminServiceApi* | [**create_workflow_event**](docs/AdminServiceApi.md#create_workflow_event) | **POST** /api/v1/events/workflows | Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. +*AdminServiceApi* | [**delete_project_attributes**](docs/AdminServiceApi.md#delete_project_attributes) | **DELETE** /api/v1/project_attributes/{project} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**delete_project_domain_attributes**](docs/AdminServiceApi.md#delete_project_domain_attributes) | **DELETE** /api/v1/project_domain_attributes/{project}/{domain} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**delete_workflow_attributes**](docs/AdminServiceApi.md#delete_workflow_attributes) | **DELETE** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. +*AdminServiceApi* | [**get_active_launch_plan**](docs/AdminServiceApi.md#get_active_launch_plan) | **GET** /api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name} | Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. +*AdminServiceApi* | [**get_description_entity**](docs/AdminServiceApi.md#get_description_entity) | **GET** /api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. +*AdminServiceApi* | [**get_execution**](docs/AdminServiceApi.md#get_execution) | **GET** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Fetches a :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**get_execution_data**](docs/AdminServiceApi.md#get_execution_data) | **GET** /api/v1/data/executions/{id.project}/{id.domain}/{id.name} | Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**get_execution_metrics**](docs/AdminServiceApi.md#get_execution_metrics) | **GET** /api/v1/metrics/executions/{id.project}/{id.domain}/{id.name} | Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**get_launch_plan**](docs/AdminServiceApi.md#get_launch_plan) | **GET** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. +*AdminServiceApi* | [**get_named_entity**](docs/AdminServiceApi.md#get_named_entity) | **GET** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. +*AdminServiceApi* | [**get_node_execution**](docs/AdminServiceApi.md#get_node_execution) | **GET** /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. +*AdminServiceApi* | [**get_node_execution_data**](docs/AdminServiceApi.md#get_node_execution_data) | **GET** /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. +*AdminServiceApi* | [**get_project_attributes**](docs/AdminServiceApi.md#get_project_attributes) | **GET** /api/v1/project_attributes/{project} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**get_project_domain_attributes**](docs/AdminServiceApi.md#get_project_domain_attributes) | **GET** /api/v1/project_domain_attributes/{project}/{domain} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**get_task**](docs/AdminServiceApi.md#get_task) | **GET** /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Task` definition. +*AdminServiceApi* | [**get_task_execution**](docs/AdminServiceApi.md#get_task_execution) | **GET** /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**get_task_execution_data**](docs/AdminServiceApi.md#get_task_execution_data) | **GET** /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**get_version**](docs/AdminServiceApi.md#get_version) | **GET** /api/v1/version | +*AdminServiceApi* | [**get_workflow**](docs/AdminServiceApi.md#get_workflow) | **GET** /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. +*AdminServiceApi* | [**get_workflow_attributes**](docs/AdminServiceApi.md#get_workflow_attributes) | **GET** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. +*AdminServiceApi* | [**list_active_launch_plans**](docs/AdminServiceApi.md#list_active_launch_plans) | **GET** /api/v1/active_launch_plans/{project}/{domain} | List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. +*AdminServiceApi* | [**list_description_entities**](docs/AdminServiceApi.md#list_description_entities) | **GET** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. +*AdminServiceApi* | [**list_description_entities2**](docs/AdminServiceApi.md#list_description_entities2) | **GET** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. +*AdminServiceApi* | [**list_executions**](docs/AdminServiceApi.md#list_executions) | **GET** /api/v1/executions/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**list_launch_plan_ids**](docs/AdminServiceApi.md#list_launch_plan_ids) | **GET** /api/v1/launch_plan_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. +*AdminServiceApi* | [**list_launch_plans**](docs/AdminServiceApi.md#list_launch_plans) | **GET** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. +*AdminServiceApi* | [**list_launch_plans2**](docs/AdminServiceApi.md#list_launch_plans2) | **GET** /api/v1/launch_plans/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. +*AdminServiceApi* | [**list_matchable_attributes**](docs/AdminServiceApi.md#list_matchable_attributes) | **GET** /api/v1/matchable_attributes | Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. +*AdminServiceApi* | [**list_named_entities**](docs/AdminServiceApi.md#list_named_entities) | **GET** /api/v1/named_entities/{resource_type}/{project}/{domain} | Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. +*AdminServiceApi* | [**list_node_executions**](docs/AdminServiceApi.md#list_node_executions) | **GET** /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. +*AdminServiceApi* | [**list_node_executions_for_task**](docs/AdminServiceApi.md#list_node_executions_for_task) | **GET** /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**list_projects**](docs/AdminServiceApi.md#list_projects) | **GET** /api/v1/projects | Fetches a list of :ref:`ref_flyteidl.admin.Project` +*AdminServiceApi* | [**list_task_executions**](docs/AdminServiceApi.md#list_task_executions) | **GET** /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} | Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. +*AdminServiceApi* | [**list_task_ids**](docs/AdminServiceApi.md#list_task_ids) | **GET** /api/v1/task_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. +*AdminServiceApi* | [**list_tasks**](docs/AdminServiceApi.md#list_tasks) | **GET** /api/v1/tasks/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. +*AdminServiceApi* | [**list_tasks2**](docs/AdminServiceApi.md#list_tasks2) | **GET** /api/v1/tasks/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. +*AdminServiceApi* | [**list_workflow_ids**](docs/AdminServiceApi.md#list_workflow_ids) | **GET** /api/v1/workflow_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. +*AdminServiceApi* | [**list_workflows**](docs/AdminServiceApi.md#list_workflows) | **GET** /api/v1/workflows/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. +*AdminServiceApi* | [**list_workflows2**](docs/AdminServiceApi.md#list_workflows2) | **GET** /api/v1/workflows/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. +*AdminServiceApi* | [**recover_execution**](docs/AdminServiceApi.md#recover_execution) | **POST** /api/v1/executions/recover | Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. +*AdminServiceApi* | [**register_project**](docs/AdminServiceApi.md#register_project) | **POST** /api/v1/projects | Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. +*AdminServiceApi* | [**relaunch_execution**](docs/AdminServiceApi.md#relaunch_execution) | **POST** /api/v1/executions/relaunch | Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` +*AdminServiceApi* | [**terminate_execution**](docs/AdminServiceApi.md#terminate_execution) | **DELETE** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**update_execution**](docs/AdminServiceApi.md#update_execution) | **PUT** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. +*AdminServiceApi* | [**update_launch_plan**](docs/AdminServiceApi.md#update_launch_plan) | **PUT** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. +*AdminServiceApi* | [**update_named_entity**](docs/AdminServiceApi.md#update_named_entity) | **PUT** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. +*AdminServiceApi* | [**update_project**](docs/AdminServiceApi.md#update_project) | **PUT** /api/v1/projects/{id} | Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. +*AdminServiceApi* | [**update_project_attributes**](docs/AdminServiceApi.md#update_project_attributes) | **PUT** /api/v1/project_attributes/{attributes.project} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level +*AdminServiceApi* | [**update_project_domain_attributes**](docs/AdminServiceApi.md#update_project_domain_attributes) | **PUT** /api/v1/project_domain_attributes/{attributes.project}/{attributes.domain} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. +*AdminServiceApi* | [**update_workflow_attributes**](docs/AdminServiceApi.md#update_workflow_attributes) | **PUT** /api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + + +## Documentation For Models + + - [AdminAbortMetadata](docs/AdminAbortMetadata.md) + - [AdminAnnotations](docs/AdminAnnotations.md) + - [AdminAuth](docs/AdminAuth.md) + - [AdminAuthRole](docs/AdminAuthRole.md) + - [AdminClusterAssignment](docs/AdminClusterAssignment.md) + - [AdminClusterResourceAttributes](docs/AdminClusterResourceAttributes.md) + - [AdminCronSchedule](docs/AdminCronSchedule.md) + - [AdminDescription](docs/AdminDescription.md) + - [AdminDescriptionEntity](docs/AdminDescriptionEntity.md) + - [AdminDescriptionEntityList](docs/AdminDescriptionEntityList.md) + - [AdminDescriptionFormat](docs/AdminDescriptionFormat.md) + - [AdminDomain](docs/AdminDomain.md) + - [AdminEmailNotification](docs/AdminEmailNotification.md) + - [AdminEnvs](docs/AdminEnvs.md) + - [AdminExecution](docs/AdminExecution.md) + - [AdminExecutionClosure](docs/AdminExecutionClosure.md) + - [AdminExecutionClusterLabel](docs/AdminExecutionClusterLabel.md) + - [AdminExecutionCreateRequest](docs/AdminExecutionCreateRequest.md) + - [AdminExecutionCreateResponse](docs/AdminExecutionCreateResponse.md) + - [AdminExecutionList](docs/AdminExecutionList.md) + - [AdminExecutionMetadata](docs/AdminExecutionMetadata.md) + - [AdminExecutionQueueAttributes](docs/AdminExecutionQueueAttributes.md) + - [AdminExecutionRecoverRequest](docs/AdminExecutionRecoverRequest.md) + - [AdminExecutionRelaunchRequest](docs/AdminExecutionRelaunchRequest.md) + - [AdminExecutionSpec](docs/AdminExecutionSpec.md) + - [AdminExecutionState](docs/AdminExecutionState.md) + - [AdminExecutionStateChangeDetails](docs/AdminExecutionStateChangeDetails.md) + - [AdminExecutionTerminateRequest](docs/AdminExecutionTerminateRequest.md) + - [AdminExecutionTerminateResponse](docs/AdminExecutionTerminateResponse.md) + - [AdminExecutionUpdateRequest](docs/AdminExecutionUpdateRequest.md) + - [AdminExecutionUpdateResponse](docs/AdminExecutionUpdateResponse.md) + - [AdminFixedRate](docs/AdminFixedRate.md) + - [AdminFixedRateUnit](docs/AdminFixedRateUnit.md) + - [AdminFlyteURLs](docs/AdminFlyteURLs.md) + - [AdminGetVersionResponse](docs/AdminGetVersionResponse.md) + - [AdminLabels](docs/AdminLabels.md) + - [AdminLaunchPlan](docs/AdminLaunchPlan.md) + - [AdminLaunchPlanClosure](docs/AdminLaunchPlanClosure.md) + - [AdminLaunchPlanCreateRequest](docs/AdminLaunchPlanCreateRequest.md) + - [AdminLaunchPlanCreateResponse](docs/AdminLaunchPlanCreateResponse.md) + - [AdminLaunchPlanList](docs/AdminLaunchPlanList.md) + - [AdminLaunchPlanMetadata](docs/AdminLaunchPlanMetadata.md) + - [AdminLaunchPlanSpec](docs/AdminLaunchPlanSpec.md) + - [AdminLaunchPlanState](docs/AdminLaunchPlanState.md) + - [AdminLaunchPlanUpdateRequest](docs/AdminLaunchPlanUpdateRequest.md) + - [AdminLaunchPlanUpdateResponse](docs/AdminLaunchPlanUpdateResponse.md) + - [AdminListMatchableAttributesResponse](docs/AdminListMatchableAttributesResponse.md) + - [AdminLiteralMapBlob](docs/AdminLiteralMapBlob.md) + - [AdminMatchableAttributesConfiguration](docs/AdminMatchableAttributesConfiguration.md) + - [AdminMatchableResource](docs/AdminMatchableResource.md) + - [AdminMatchingAttributes](docs/AdminMatchingAttributes.md) + - [AdminNamedEntity](docs/AdminNamedEntity.md) + - [AdminNamedEntityIdentifier](docs/AdminNamedEntityIdentifier.md) + - [AdminNamedEntityIdentifierList](docs/AdminNamedEntityIdentifierList.md) + - [AdminNamedEntityList](docs/AdminNamedEntityList.md) + - [AdminNamedEntityMetadata](docs/AdminNamedEntityMetadata.md) + - [AdminNamedEntityState](docs/AdminNamedEntityState.md) + - [AdminNamedEntityUpdateRequest](docs/AdminNamedEntityUpdateRequest.md) + - [AdminNamedEntityUpdateResponse](docs/AdminNamedEntityUpdateResponse.md) + - [AdminNodeExecutionClosure](docs/AdminNodeExecutionClosure.md) + - [AdminNodeExecutionEventRequest](docs/AdminNodeExecutionEventRequest.md) + - [AdminNodeExecutionEventResponse](docs/AdminNodeExecutionEventResponse.md) + - [AdminNodeExecutionGetDataResponse](docs/AdminNodeExecutionGetDataResponse.md) + - [AdminNodeExecutionList](docs/AdminNodeExecutionList.md) + - [AdminNodeExecutionMetaData](docs/AdminNodeExecutionMetaData.md) + - [AdminNotification](docs/AdminNotification.md) + - [AdminNotificationList](docs/AdminNotificationList.md) + - [AdminPagerDutyNotification](docs/AdminPagerDutyNotification.md) + - [AdminPluginOverride](docs/AdminPluginOverride.md) + - [AdminPluginOverrides](docs/AdminPluginOverrides.md) + - [AdminProject](docs/AdminProject.md) + - [AdminProjectAttributes](docs/AdminProjectAttributes.md) + - [AdminProjectAttributesDeleteRequest](docs/AdminProjectAttributesDeleteRequest.md) + - [AdminProjectAttributesDeleteResponse](docs/AdminProjectAttributesDeleteResponse.md) + - [AdminProjectAttributesGetResponse](docs/AdminProjectAttributesGetResponse.md) + - [AdminProjectAttributesUpdateRequest](docs/AdminProjectAttributesUpdateRequest.md) + - [AdminProjectAttributesUpdateResponse](docs/AdminProjectAttributesUpdateResponse.md) + - [AdminProjectDomainAttributes](docs/AdminProjectDomainAttributes.md) + - [AdminProjectDomainAttributesDeleteRequest](docs/AdminProjectDomainAttributesDeleteRequest.md) + - [AdminProjectDomainAttributesDeleteResponse](docs/AdminProjectDomainAttributesDeleteResponse.md) + - [AdminProjectDomainAttributesGetResponse](docs/AdminProjectDomainAttributesGetResponse.md) + - [AdminProjectDomainAttributesUpdateRequest](docs/AdminProjectDomainAttributesUpdateRequest.md) + - [AdminProjectDomainAttributesUpdateResponse](docs/AdminProjectDomainAttributesUpdateResponse.md) + - [AdminProjectRegisterRequest](docs/AdminProjectRegisterRequest.md) + - [AdminProjectRegisterResponse](docs/AdminProjectRegisterResponse.md) + - [AdminProjectUpdateResponse](docs/AdminProjectUpdateResponse.md) + - [AdminProjects](docs/AdminProjects.md) + - [AdminRawOutputDataConfig](docs/AdminRawOutputDataConfig.md) + - [AdminReason](docs/AdminReason.md) + - [AdminSchedule](docs/AdminSchedule.md) + - [AdminSlackNotification](docs/AdminSlackNotification.md) + - [AdminSort](docs/AdminSort.md) + - [AdminSourceCode](docs/AdminSourceCode.md) + - [AdminSystemMetadata](docs/AdminSystemMetadata.md) + - [AdminTask](docs/AdminTask.md) + - [AdminTaskClosure](docs/AdminTaskClosure.md) + - [AdminTaskExecutionClosure](docs/AdminTaskExecutionClosure.md) + - [AdminTaskExecutionEventRequest](docs/AdminTaskExecutionEventRequest.md) + - [AdminTaskExecutionEventResponse](docs/AdminTaskExecutionEventResponse.md) + - [AdminTaskExecutionGetDataResponse](docs/AdminTaskExecutionGetDataResponse.md) + - [AdminTaskExecutionList](docs/AdminTaskExecutionList.md) + - [AdminTaskList](docs/AdminTaskList.md) + - [AdminTaskResourceAttributes](docs/AdminTaskResourceAttributes.md) + - [AdminTaskResourceSpec](docs/AdminTaskResourceSpec.md) + - [AdminTaskSpec](docs/AdminTaskSpec.md) + - [AdminUrlBlob](docs/AdminUrlBlob.md) + - [AdminVersion](docs/AdminVersion.md) + - [AdminWorkflow](docs/AdminWorkflow.md) + - [AdminWorkflowAttributes](docs/AdminWorkflowAttributes.md) + - [AdminWorkflowAttributesDeleteRequest](docs/AdminWorkflowAttributesDeleteRequest.md) + - [AdminWorkflowAttributesDeleteResponse](docs/AdminWorkflowAttributesDeleteResponse.md) + - [AdminWorkflowAttributesGetResponse](docs/AdminWorkflowAttributesGetResponse.md) + - [AdminWorkflowAttributesUpdateRequest](docs/AdminWorkflowAttributesUpdateRequest.md) + - [AdminWorkflowAttributesUpdateResponse](docs/AdminWorkflowAttributesUpdateResponse.md) + - [AdminWorkflowClosure](docs/AdminWorkflowClosure.md) + - [AdminWorkflowCreateRequest](docs/AdminWorkflowCreateRequest.md) + - [AdminWorkflowCreateResponse](docs/AdminWorkflowCreateResponse.md) + - [AdminWorkflowExecutionConfig](docs/AdminWorkflowExecutionConfig.md) + - [AdminWorkflowExecutionEventRequest](docs/AdminWorkflowExecutionEventRequest.md) + - [AdminWorkflowExecutionEventResponse](docs/AdminWorkflowExecutionEventResponse.md) + - [AdminWorkflowExecutionGetDataResponse](docs/AdminWorkflowExecutionGetDataResponse.md) + - [AdminWorkflowExecutionGetMetricsResponse](docs/AdminWorkflowExecutionGetMetricsResponse.md) + - [AdminWorkflowList](docs/AdminWorkflowList.md) + - [AdminWorkflowSpec](docs/AdminWorkflowSpec.md) + - [BlobTypeBlobDimensionality](docs/BlobTypeBlobDimensionality.md) + - [CatalogReservationStatus](docs/CatalogReservationStatus.md) + - [ComparisonExpressionOperator](docs/ComparisonExpressionOperator.md) + - [ConjunctionExpressionLogicalOperator](docs/ConjunctionExpressionLogicalOperator.md) + - [ConnectionSetIdList](docs/ConnectionSetIdList.md) + - [ContainerArchitecture](docs/ContainerArchitecture.md) + - [CoreAlias](docs/CoreAlias.md) + - [CoreApproveCondition](docs/CoreApproveCondition.md) + - [CoreArrayNode](docs/CoreArrayNode.md) + - [CoreBinary](docs/CoreBinary.md) + - [CoreBinding](docs/CoreBinding.md) + - [CoreBindingData](docs/CoreBindingData.md) + - [CoreBindingDataCollection](docs/CoreBindingDataCollection.md) + - [CoreBindingDataMap](docs/CoreBindingDataMap.md) + - [CoreBlob](docs/CoreBlob.md) + - [CoreBlobMetadata](docs/CoreBlobMetadata.md) + - [CoreBlobType](docs/CoreBlobType.md) + - [CoreBooleanExpression](docs/CoreBooleanExpression.md) + - [CoreBranchNode](docs/CoreBranchNode.md) + - [CoreCatalogArtifactTag](docs/CoreCatalogArtifactTag.md) + - [CoreCatalogCacheStatus](docs/CoreCatalogCacheStatus.md) + - [CoreCatalogMetadata](docs/CoreCatalogMetadata.md) + - [CoreComparisonExpression](docs/CoreComparisonExpression.md) + - [CoreCompiledTask](docs/CoreCompiledTask.md) + - [CoreCompiledWorkflow](docs/CoreCompiledWorkflow.md) + - [CoreCompiledWorkflowClosure](docs/CoreCompiledWorkflowClosure.md) + - [CoreConjunctionExpression](docs/CoreConjunctionExpression.md) + - [CoreConnectionSet](docs/CoreConnectionSet.md) + - [CoreContainer](docs/CoreContainer.md) + - [CoreContainerPort](docs/CoreContainerPort.md) + - [CoreDataLoadingConfig](docs/CoreDataLoadingConfig.md) + - [CoreEnumType](docs/CoreEnumType.md) + - [CoreError](docs/CoreError.md) + - [CoreExecutionError](docs/CoreExecutionError.md) + - [CoreGateNode](docs/CoreGateNode.md) + - [CoreIOStrategy](docs/CoreIOStrategy.md) + - [CoreIdentifier](docs/CoreIdentifier.md) + - [CoreIdentity](docs/CoreIdentity.md) + - [CoreIfBlock](docs/CoreIfBlock.md) + - [CoreIfElseBlock](docs/CoreIfElseBlock.md) + - [CoreK8sObjectMetadata](docs/CoreK8sObjectMetadata.md) + - [CoreK8sPod](docs/CoreK8sPod.md) + - [CoreKeyValuePair](docs/CoreKeyValuePair.md) + - [CoreLiteral](docs/CoreLiteral.md) + - [CoreLiteralCollection](docs/CoreLiteralCollection.md) + - [CoreLiteralMap](docs/CoreLiteralMap.md) + - [CoreLiteralType](docs/CoreLiteralType.md) + - [CoreNode](docs/CoreNode.md) + - [CoreNodeExecutionIdentifier](docs/CoreNodeExecutionIdentifier.md) + - [CoreNodeExecutionPhase](docs/CoreNodeExecutionPhase.md) + - [CoreNodeMetadata](docs/CoreNodeMetadata.md) + - [CoreOAuth2Client](docs/CoreOAuth2Client.md) + - [CoreOAuth2TokenRequest](docs/CoreOAuth2TokenRequest.md) + - [CoreOAuth2TokenRequestType](docs/CoreOAuth2TokenRequestType.md) + - [CoreOperand](docs/CoreOperand.md) + - [CoreOutputReference](docs/CoreOutputReference.md) + - [CoreParameter](docs/CoreParameter.md) + - [CoreParameterMap](docs/CoreParameterMap.md) + - [CorePrimitive](docs/CorePrimitive.md) + - [CoreQualityOfService](docs/CoreQualityOfService.md) + - [CoreQualityOfServiceSpec](docs/CoreQualityOfServiceSpec.md) + - [CoreResourceType](docs/CoreResourceType.md) + - [CoreResources](docs/CoreResources.md) + - [CoreRetryStrategy](docs/CoreRetryStrategy.md) + - [CoreRuntimeMetadata](docs/CoreRuntimeMetadata.md) + - [CoreScalar](docs/CoreScalar.md) + - [CoreSchema](docs/CoreSchema.md) + - [CoreSchemaType](docs/CoreSchemaType.md) + - [CoreSecret](docs/CoreSecret.md) + - [CoreSecurityContext](docs/CoreSecurityContext.md) + - [CoreSignalCondition](docs/CoreSignalCondition.md) + - [CoreSimpleType](docs/CoreSimpleType.md) + - [CoreSleepCondition](docs/CoreSleepCondition.md) + - [CoreSpan](docs/CoreSpan.md) + - [CoreSql](docs/CoreSql.md) + - [CoreStructuredDataset](docs/CoreStructuredDataset.md) + - [CoreStructuredDatasetMetadata](docs/CoreStructuredDatasetMetadata.md) + - [CoreStructuredDatasetType](docs/CoreStructuredDatasetType.md) + - [CoreTaskExecutionIdentifier](docs/CoreTaskExecutionIdentifier.md) + - [CoreTaskExecutionPhase](docs/CoreTaskExecutionPhase.md) + - [CoreTaskLog](docs/CoreTaskLog.md) + - [CoreTaskMetadata](docs/CoreTaskMetadata.md) + - [CoreTaskNode](docs/CoreTaskNode.md) + - [CoreTaskNodeOverrides](docs/CoreTaskNodeOverrides.md) + - [CoreTaskTemplate](docs/CoreTaskTemplate.md) + - [CoreTypeAnnotation](docs/CoreTypeAnnotation.md) + - [CoreTypeStructure](docs/CoreTypeStructure.md) + - [CoreTypedInterface](docs/CoreTypedInterface.md) + - [CoreUnion](docs/CoreUnion.md) + - [CoreUnionInfo](docs/CoreUnionInfo.md) + - [CoreUnionType](docs/CoreUnionType.md) + - [CoreVariable](docs/CoreVariable.md) + - [CoreVariableMap](docs/CoreVariableMap.md) + - [CoreVoid](docs/CoreVoid.md) + - [CoreWorkflowExecutionIdentifier](docs/CoreWorkflowExecutionIdentifier.md) + - [CoreWorkflowExecutionPhase](docs/CoreWorkflowExecutionPhase.md) + - [CoreWorkflowMetadata](docs/CoreWorkflowMetadata.md) + - [CoreWorkflowMetadataDefaults](docs/CoreWorkflowMetadataDefaults.md) + - [CoreWorkflowNode](docs/CoreWorkflowNode.md) + - [CoreWorkflowTemplate](docs/CoreWorkflowTemplate.md) + - [DataLoadingConfigLiteralMapFormat](docs/DataLoadingConfigLiteralMapFormat.md) + - [EventExternalResourceInfo](docs/EventExternalResourceInfo.md) + - [EventNodeExecutionEvent](docs/EventNodeExecutionEvent.md) + - [EventParentNodeExecutionMetadata](docs/EventParentNodeExecutionMetadata.md) + - [EventParentTaskExecutionMetadata](docs/EventParentTaskExecutionMetadata.md) + - [EventResourcePoolInfo](docs/EventResourcePoolInfo.md) + - [EventTaskExecutionEvent](docs/EventTaskExecutionEvent.md) + - [EventWorkflowExecutionEvent](docs/EventWorkflowExecutionEvent.md) + - [ExecutionErrorErrorKind](docs/ExecutionErrorErrorKind.md) + - [ExecutionMetadataExecutionMode](docs/ExecutionMetadataExecutionMode.md) + - [FlyteidladminDynamicWorkflowNodeMetadata](docs/FlyteidladminDynamicWorkflowNodeMetadata.md) + - [FlyteidladminNodeExecution](docs/FlyteidladminNodeExecution.md) + - [FlyteidladminTaskCreateRequest](docs/FlyteidladminTaskCreateRequest.md) + - [FlyteidladminTaskCreateResponse](docs/FlyteidladminTaskCreateResponse.md) + - [FlyteidladminTaskExecution](docs/FlyteidladminTaskExecution.md) + - [FlyteidladminTaskNodeMetadata](docs/FlyteidladminTaskNodeMetadata.md) + - [FlyteidladminWorkflowNodeMetadata](docs/FlyteidladminWorkflowNodeMetadata.md) + - [FlyteidleventDynamicWorkflowNodeMetadata](docs/FlyteidleventDynamicWorkflowNodeMetadata.md) + - [FlyteidleventTaskExecutionMetadata](docs/FlyteidleventTaskExecutionMetadata.md) + - [FlyteidleventTaskNodeMetadata](docs/FlyteidleventTaskNodeMetadata.md) + - [FlyteidleventWorkflowNodeMetadata](docs/FlyteidleventWorkflowNodeMetadata.md) + - [IOStrategyDownloadMode](docs/IOStrategyDownloadMode.md) + - [IOStrategyUploadMode](docs/IOStrategyUploadMode.md) + - [PluginOverrideMissingPluginBehavior](docs/PluginOverrideMissingPluginBehavior.md) + - [ProjectProjectState](docs/ProjectProjectState.md) + - [ProtobufListValue](docs/ProtobufListValue.md) + - [ProtobufNullValue](docs/ProtobufNullValue.md) + - [ProtobufStruct](docs/ProtobufStruct.md) + - [ProtobufValue](docs/ProtobufValue.md) + - [QualityOfServiceTier](docs/QualityOfServiceTier.md) + - [ResourcesResourceEntry](docs/ResourcesResourceEntry.md) + - [ResourcesResourceName](docs/ResourcesResourceName.md) + - [RuntimeMetadataRuntimeType](docs/RuntimeMetadataRuntimeType.md) + - [SchemaColumnSchemaColumnType](docs/SchemaColumnSchemaColumnType.md) + - [SchemaTypeSchemaColumn](docs/SchemaTypeSchemaColumn.md) + - [SecretMountType](docs/SecretMountType.md) + - [SortDirection](docs/SortDirection.md) + - [SqlDialect](docs/SqlDialect.md) + - [StructuredDatasetTypeDatasetColumn](docs/StructuredDatasetTypeDatasetColumn.md) + - [TaskExecutionMetadataInstanceClass](docs/TaskExecutionMetadataInstanceClass.md) + - [TaskLogMessageFormat](docs/TaskLogMessageFormat.md) + - [WorkflowMetadataOnFailurePolicy](docs/WorkflowMetadataOnFailurePolicy.md) + + +## Documentation For Authorization + + All endpoints do not require authorization. + + +## Author + + + diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py new file mode 100644 index 0000000000..4aaa8791f4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +# flake8: noqa + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import apis into sdk package +from flyteadmin.api.admin_service_api import AdminServiceApi + +# import ApiClient +from flyteadmin.api_client import ApiClient +from flyteadmin.configuration import Configuration +# import models into sdk package +from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata +from flyteadmin.models.admin_annotations import AdminAnnotations +from flyteadmin.models.admin_auth import AdminAuth +from flyteadmin.models.admin_auth_role import AdminAuthRole +from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment +from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes +from flyteadmin.models.admin_cron_schedule import AdminCronSchedule +from flyteadmin.models.admin_description import AdminDescription +from flyteadmin.models.admin_description_entity import AdminDescriptionEntity +from flyteadmin.models.admin_description_entity_list import AdminDescriptionEntityList +from flyteadmin.models.admin_description_format import AdminDescriptionFormat +from flyteadmin.models.admin_domain import AdminDomain +from flyteadmin.models.admin_email_notification import AdminEmailNotification +from flyteadmin.models.admin_envs import AdminEnvs +from flyteadmin.models.admin_execution import AdminExecution +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure +from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel +from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest +from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse +from flyteadmin.models.admin_execution_list import AdminExecutionList +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata +from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes +from flyteadmin.models.admin_execution_recover_request import AdminExecutionRecoverRequest +from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec +from flyteadmin.models.admin_execution_state import AdminExecutionState +from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails +from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest +from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse +from flyteadmin.models.admin_execution_update_request import AdminExecutionUpdateRequest +from flyteadmin.models.admin_execution_update_response import AdminExecutionUpdateResponse +from flyteadmin.models.admin_fixed_rate import AdminFixedRate +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit +from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs +from flyteadmin.models.admin_get_version_response import AdminGetVersionResponse +from flyteadmin.models.admin_labels import AdminLabels +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure +from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest +from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse +from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState +from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest +from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse +from flyteadmin.models.admin_list_matchable_attributes_response import AdminListMatchableAttributesResponse +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob +from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration +from flyteadmin.models.admin_matchable_resource import AdminMatchableResource +from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes +from flyteadmin.models.admin_named_entity import AdminNamedEntity +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier +from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList +from flyteadmin.models.admin_named_entity_list import AdminNamedEntityList +from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata +from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState +from flyteadmin.models.admin_named_entity_update_request import AdminNamedEntityUpdateRequest +from flyteadmin.models.admin_named_entity_update_response import AdminNamedEntityUpdateResponse +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure +from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest +from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse +from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse +from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList +from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData +from flyteadmin.models.admin_notification import AdminNotification +from flyteadmin.models.admin_notification_list import AdminNotificationList +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification +from flyteadmin.models.admin_plugin_override import AdminPluginOverride +from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides +from flyteadmin.models.admin_project import AdminProject +from flyteadmin.models.admin_project_attributes import AdminProjectAttributes +from flyteadmin.models.admin_project_attributes_delete_request import AdminProjectAttributesDeleteRequest +from flyteadmin.models.admin_project_attributes_delete_response import AdminProjectAttributesDeleteResponse +from flyteadmin.models.admin_project_attributes_get_response import AdminProjectAttributesGetResponse +from flyteadmin.models.admin_project_attributes_update_request import AdminProjectAttributesUpdateRequest +from flyteadmin.models.admin_project_attributes_update_response import AdminProjectAttributesUpdateResponse +from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes +from flyteadmin.models.admin_project_domain_attributes_delete_request import AdminProjectDomainAttributesDeleteRequest +from flyteadmin.models.admin_project_domain_attributes_delete_response import AdminProjectDomainAttributesDeleteResponse +from flyteadmin.models.admin_project_domain_attributes_get_response import AdminProjectDomainAttributesGetResponse +from flyteadmin.models.admin_project_domain_attributes_update_request import AdminProjectDomainAttributesUpdateRequest +from flyteadmin.models.admin_project_domain_attributes_update_response import AdminProjectDomainAttributesUpdateResponse +from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest +from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse +from flyteadmin.models.admin_project_update_response import AdminProjectUpdateResponse +from flyteadmin.models.admin_projects import AdminProjects +from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig +from flyteadmin.models.admin_reason import AdminReason +from flyteadmin.models.admin_schedule import AdminSchedule +from flyteadmin.models.admin_slack_notification import AdminSlackNotification +from flyteadmin.models.admin_sort import AdminSort +from flyteadmin.models.admin_source_code import AdminSourceCode +from flyteadmin.models.admin_system_metadata import AdminSystemMetadata +from flyteadmin.models.admin_task import AdminTask +from flyteadmin.models.admin_task_closure import AdminTaskClosure +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure +from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest +from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse +from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse +from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList +from flyteadmin.models.admin_task_list import AdminTaskList +from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes +from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec +from flyteadmin.models.admin_task_spec import AdminTaskSpec +from flyteadmin.models.admin_url_blob import AdminUrlBlob +from flyteadmin.models.admin_version import AdminVersion +from flyteadmin.models.admin_workflow import AdminWorkflow +from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes +from flyteadmin.models.admin_workflow_attributes_delete_request import AdminWorkflowAttributesDeleteRequest +from flyteadmin.models.admin_workflow_attributes_delete_response import AdminWorkflowAttributesDeleteResponse +from flyteadmin.models.admin_workflow_attributes_get_response import AdminWorkflowAttributesGetResponse +from flyteadmin.models.admin_workflow_attributes_update_request import AdminWorkflowAttributesUpdateRequest +from flyteadmin.models.admin_workflow_attributes_update_response import AdminWorkflowAttributesUpdateResponse +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure +from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest +from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse +from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig +from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest +from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse +from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse +from flyteadmin.models.admin_workflow_execution_get_metrics_response import AdminWorkflowExecutionGetMetricsResponse +from flyteadmin.models.admin_workflow_list import AdminWorkflowList +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality +from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList +from flyteadmin.models.container_architecture import ContainerArchitecture +from flyteadmin.models.core_alias import CoreAlias +from flyteadmin.models.core_approve_condition import CoreApproveCondition +from flyteadmin.models.core_array_node import CoreArrayNode +from flyteadmin.models.core_binary import CoreBinary +from flyteadmin.models.core_binding import CoreBinding +from flyteadmin.models.core_binding_data import CoreBindingData +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap +from flyteadmin.models.core_blob import CoreBlob +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata +from flyteadmin.models.core_blob_type import CoreBlobType +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression +from flyteadmin.models.core_branch_node import CoreBranchNode +from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag +from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus +from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression +from flyteadmin.models.core_compiled_task import CoreCompiledTask +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression +from flyteadmin.models.core_connection_set import CoreConnectionSet +from flyteadmin.models.core_container import CoreContainer +from flyteadmin.models.core_container_port import CoreContainerPort +from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig +from flyteadmin.models.core_enum_type import CoreEnumType +from flyteadmin.models.core_error import CoreError +from flyteadmin.models.core_execution_error import CoreExecutionError +from flyteadmin.models.core_gate_node import CoreGateNode +from flyteadmin.models.core_io_strategy import CoreIOStrategy +from flyteadmin.models.core_identifier import CoreIdentifier +from flyteadmin.models.core_identity import CoreIdentity +from flyteadmin.models.core_if_block import CoreIfBlock +from flyteadmin.models.core_if_else_block import CoreIfElseBlock +from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata +from flyteadmin.models.core_k8s_pod import CoreK8sPod +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair +from flyteadmin.models.core_literal import CoreLiteral +from flyteadmin.models.core_literal_collection import CoreLiteralCollection +from flyteadmin.models.core_literal_map import CoreLiteralMap +from flyteadmin.models.core_literal_type import CoreLiteralType +from flyteadmin.models.core_node import CoreNode +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase +from flyteadmin.models.core_node_metadata import CoreNodeMetadata +from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client +from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest +from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType +from flyteadmin.models.core_operand import CoreOperand +from flyteadmin.models.core_output_reference import CoreOutputReference +from flyteadmin.models.core_parameter import CoreParameter +from flyteadmin.models.core_parameter_map import CoreParameterMap +from flyteadmin.models.core_primitive import CorePrimitive +from flyteadmin.models.core_quality_of_service import CoreQualityOfService +from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec +from flyteadmin.models.core_resource_type import CoreResourceType +from flyteadmin.models.core_resources import CoreResources +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata +from flyteadmin.models.core_scalar import CoreScalar +from flyteadmin.models.core_schema import CoreSchema +from flyteadmin.models.core_schema_type import CoreSchemaType +from flyteadmin.models.core_secret import CoreSecret +from flyteadmin.models.core_security_context import CoreSecurityContext +from flyteadmin.models.core_signal_condition import CoreSignalCondition +from flyteadmin.models.core_simple_type import CoreSimpleType +from flyteadmin.models.core_sleep_condition import CoreSleepCondition +from flyteadmin.models.core_span import CoreSpan +from flyteadmin.models.core_sql import CoreSql +from flyteadmin.models.core_structured_dataset import CoreStructuredDataset +from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata +from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase +from flyteadmin.models.core_task_log import CoreTaskLog +from flyteadmin.models.core_task_metadata import CoreTaskMetadata +from flyteadmin.models.core_task_node import CoreTaskNode +from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides +from flyteadmin.models.core_task_template import CoreTaskTemplate +from flyteadmin.models.core_type_annotation import CoreTypeAnnotation +from flyteadmin.models.core_type_structure import CoreTypeStructure +from flyteadmin.models.core_typed_interface import CoreTypedInterface +from flyteadmin.models.core_union import CoreUnion +from flyteadmin.models.core_union_info import CoreUnionInfo +from flyteadmin.models.core_union_type import CoreUnionType +from flyteadmin.models.core_variable import CoreVariable +from flyteadmin.models.core_variable_map import CoreVariableMap +from flyteadmin.models.core_void import CoreVoid +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata +from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults +from flyteadmin.models.core_workflow_node import CoreWorkflowNode +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate +from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat +from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent +from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata +from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent +from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode +from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution +from flyteadmin.models.flyteidladmin_task_create_request import FlyteidladminTaskCreateRequest +from flyteadmin.models.flyteidladmin_task_create_response import FlyteidladminTaskCreateResponse +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution +from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata +from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata +from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata +from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata +from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode +from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode +from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior +from flyteadmin.models.project_project_state import ProjectProjectState +from flyteadmin.models.protobuf_list_value import ProtobufListValue +from flyteadmin.models.protobuf_null_value import ProtobufNullValue +from flyteadmin.models.protobuf_struct import ProtobufStruct +from flyteadmin.models.protobuf_value import ProtobufValue +from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry +from flyteadmin.models.resources_resource_name import ResourcesResourceName +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn +from flyteadmin.models.secret_mount_type import SecretMountType +from flyteadmin.models.sort_direction import SortDirection +from flyteadmin.models.sql_dialect import SqlDialect +from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn +from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat +from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py new file mode 100644 index 0000000000..3da695695e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py @@ -0,0 +1,6 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from flyteadmin.api.admin_service_api import AdminServiceApi diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py new file mode 100644 index 0000000000..01e9838ee5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py @@ -0,0 +1,6843 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from flyteadmin.api_client import ApiClient + + +class AdminServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_execution(self, body, **kwargs): # noqa: E501 + """Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_execution(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionCreateRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_execution_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_execution_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_execution_with_http_info(self, body, **kwargs): # noqa: E501 + """Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_execution_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionCreateRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_launch_plan(self, body, **kwargs): # noqa: E501 + """Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_launch_plan(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminLaunchPlanCreateRequest body: (required) + :return: AdminLaunchPlanCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_launch_plan_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_launch_plan_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_launch_plan_with_http_info(self, body, **kwargs): # noqa: E501 + """Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_launch_plan_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminLaunchPlanCreateRequest body: (required) + :return: AdminLaunchPlanCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_launch_plan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_launch_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_node_event(self, body, **kwargs): # noqa: E501 + """Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_node_event(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminNodeExecutionEventRequest body: (required) + :return: AdminNodeExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_node_event_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_node_event_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_node_event_with_http_info(self, body, **kwargs): # noqa: E501 + """Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_node_event_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminNodeExecutionEventRequest body: (required) + :return: AdminNodeExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_node_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_node_event`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/events/nodes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionEventResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_task(self, body, **kwargs): # noqa: E501 + """Create and upload a :ref:`ref_flyteidl.admin.Task` definition # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FlyteidladminTaskCreateRequest body: (required) + :return: FlyteidladminTaskCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_task_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_task_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_task_with_http_info(self, body, **kwargs): # noqa: E501 + """Create and upload a :ref:`ref_flyteidl.admin.Task` definition # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param FlyteidladminTaskCreateRequest body: (required) + :return: FlyteidladminTaskCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_task" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_task`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FlyteidladminTaskCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_task_event(self, body, **kwargs): # noqa: E501 + """Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task_event(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminTaskExecutionEventRequest body: (required) + :return: AdminTaskExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_task_event_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_task_event_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_task_event_with_http_info(self, body, **kwargs): # noqa: E501 + """Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task_event_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminTaskExecutionEventRequest body: (required) + :return: AdminTaskExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_task_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_task_event`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/events/tasks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskExecutionEventResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_workflow(self, body, **kwargs): # noqa: E501 + """Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowCreateRequest body: (required) + :return: AdminWorkflowCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_workflow_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_workflow_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_workflow_with_http_info(self, body, **kwargs): # noqa: E501 + """Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowCreateRequest body: (required) + :return: AdminWorkflowCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_workflow" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_workflow`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_workflow_event(self, body, **kwargs): # noqa: E501 + """Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow_event(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowExecutionEventRequest body: (required) + :return: AdminWorkflowExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_workflow_event_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_workflow_event_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_workflow_event_with_http_info(self, body, **kwargs): # noqa: E501 + """Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow_event_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowExecutionEventRequest body: (required) + :return: AdminWorkflowExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_workflow_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_workflow_event`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/events/workflows', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowExecutionEventResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_project_attributes(self, project, body, **kwargs): # noqa: E501 + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project_attributes(project, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param AdminProjectAttributesDeleteRequest body: (required) + :return: AdminProjectAttributesDeleteResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_project_attributes_with_http_info(project, body, **kwargs) # noqa: E501 + else: + (data) = self.delete_project_attributes_with_http_info(project, body, **kwargs) # noqa: E501 + return data + + def delete_project_attributes_with_http_info(self, project, body, **kwargs): # noqa: E501 + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project_attributes_with_http_info(project, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param AdminProjectAttributesDeleteRequest body: (required) + :return: AdminProjectAttributesDeleteResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_project_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `delete_project_attributes`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_project_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/project_attributes/{project}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectAttributesDeleteResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_project_domain_attributes(self, project, domain, body, **kwargs): # noqa: E501 + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project_domain_attributes(project, domain, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param AdminProjectDomainAttributesDeleteRequest body: (required) + :return: AdminProjectDomainAttributesDeleteResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_project_domain_attributes_with_http_info(project, domain, body, **kwargs) # noqa: E501 + else: + (data) = self.delete_project_domain_attributes_with_http_info(project, domain, body, **kwargs) # noqa: E501 + return data + + def delete_project_domain_attributes_with_http_info(self, project, domain, body, **kwargs): # noqa: E501 + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_project_domain_attributes_with_http_info(project, domain, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param AdminProjectDomainAttributesDeleteRequest body: (required) + :return: AdminProjectDomainAttributesDeleteResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_project_domain_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `delete_project_domain_attributes`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `delete_project_domain_attributes`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_project_domain_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/project_domain_attributes/{project}/{domain}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectDomainAttributesDeleteResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_workflow_attributes(self, project, domain, workflow, body, **kwargs): # noqa: E501 + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_workflow_attributes(project, domain, workflow, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param str workflow: Workflow name which this set of attributes references. +required (required) + :param AdminWorkflowAttributesDeleteRequest body: (required) + :return: AdminWorkflowAttributesDeleteResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_workflow_attributes_with_http_info(project, domain, workflow, body, **kwargs) # noqa: E501 + else: + (data) = self.delete_workflow_attributes_with_http_info(project, domain, workflow, body, **kwargs) # noqa: E501 + return data + + def delete_workflow_attributes_with_http_info(self, project, domain, workflow, body, **kwargs): # noqa: E501 + """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_workflow_attributes_with_http_info(project, domain, workflow, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param str workflow: Workflow name which this set of attributes references. +required (required) + :param AdminWorkflowAttributesDeleteRequest body: (required) + :return: AdminWorkflowAttributesDeleteResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'workflow', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_workflow_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `delete_workflow_attributes`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `delete_workflow_attributes`") # noqa: E501 + # verify the required parameter 'workflow' is set + if ('workflow' not in params or + params['workflow'] is None): + raise ValueError("Missing the required parameter `workflow` when calling `delete_workflow_attributes`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_workflow_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + if 'workflow' in params: + path_params['workflow'] = params['workflow'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflow_attributes/{project}/{domain}/{workflow}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowAttributesDeleteResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_active_launch_plan(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_active_launch_plan(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :return: AdminLaunchPlan + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_active_launch_plan_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.get_active_launch_plan_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def get_active_launch_plan_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_active_launch_plan_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :return: AdminLaunchPlan + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_active_launch_plan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_active_launch_plan`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_active_launch_plan`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_active_launch_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlan', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_description_entity(self, id_resource_type, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_description_entity(id_resource_type, id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :return: AdminDescriptionEntity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_description_entity_with_http_info(id_resource_type, id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + else: + (data) = self.get_description_entity_with_http_info(id_resource_type, id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + return data + + def get_description_entity_with_http_info(self, id_resource_type, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_description_entity_with_http_info(id_resource_type, id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :return: AdminDescriptionEntity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_resource_type', 'id_project', 'id_domain', 'id_name', 'id_version'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_description_entity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_resource_type' is set + if ('id_resource_type' not in params or + params['id_resource_type'] is None): + raise ValueError("Missing the required parameter `id_resource_type` when calling `get_description_entity`") # noqa: E501 + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_description_entity`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_description_entity`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_description_entity`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `get_description_entity`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_resource_type' in params: + path_params['id.resource_type'] = params['id_resource_type'] # noqa: E501 + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminDescriptionEntity', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_execution(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetches a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminExecution + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_execution_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.get_execution_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def get_execution_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetches a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminExecution + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_execution`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_execution`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecution', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_execution_data(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_data(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminWorkflowExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_execution_data_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.get_execution_data_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def get_execution_data_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_data_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminWorkflowExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_execution_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_execution_data`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_execution_data`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_execution_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/data/executions/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowExecutionGetDataResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_execution_metrics(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_metrics(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param int depth: depth defines the number of Flyte entity levels to traverse when breaking down execution details. + :return: AdminWorkflowExecutionGetMetricsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_execution_metrics_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.get_execution_metrics_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def get_execution_metrics_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_metrics_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param int depth: depth defines the number of Flyte entity levels to traverse when breaking down execution details. + :return: AdminWorkflowExecutionGetMetricsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'depth'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_execution_metrics" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_execution_metrics`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_execution_metrics`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_execution_metrics`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'depth' in params: + query_params.append(('depth', params['depth'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowExecutionGetMetricsResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_launch_plan(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_launch_plan(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminLaunchPlan + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + else: + (data) = self.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + return data + + def get_launch_plan_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminLaunchPlan + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_launch_plan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_launch_plan`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_launch_plan`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_launch_plan`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `get_launch_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + if 'id_resource_type' in params: + query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlan', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_named_entity(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_named_entity(resource_type, id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. +required (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :return: AdminNamedEntity + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.get_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def get_named_entity_with_http_info(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. +required (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :return: AdminNamedEntity + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['resource_type', 'id_project', 'id_domain', 'id_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_named_entity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'resource_type' is set + if ('resource_type' not in params or + params['resource_type'] is None): + raise ValueError("Missing the required parameter `resource_type` when calling `get_named_entity`") # noqa: E501 + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_named_entity`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_named_entity`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_named_entity`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'resource_type' in params: + path_params['resource_type'] = params['resource_type'] # noqa: E501 + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntity', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_node_execution(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: FlyteidladminNodeExecution + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + else: + (data) = self.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + return data + + def get_node_execution_with_http_info(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: FlyteidladminNodeExecution + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_execution_id_project', 'id_execution_id_domain', 'id_execution_id_name', 'id_node_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_execution_id_project' is set + if ('id_execution_id_project' not in params or + params['id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_execution_id_project` when calling `get_node_execution`") # noqa: E501 + # verify the required parameter 'id_execution_id_domain' is set + if ('id_execution_id_domain' not in params or + params['id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_execution_id_domain` when calling `get_node_execution`") # noqa: E501 + # verify the required parameter 'id_execution_id_name' is set + if ('id_execution_id_name' not in params or + params['id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_execution_id_name` when calling `get_node_execution`") # noqa: E501 + # verify the required parameter 'id_node_id' is set + if ('id_node_id' not in params or + params['id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_id` when calling `get_node_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_execution_id_project' in params: + path_params['id.execution_id.project'] = params['id_execution_id_project'] # noqa: E501 + if 'id_execution_id_domain' in params: + path_params['id.execution_id.domain'] = params['id_execution_id_domain'] # noqa: E501 + if 'id_execution_id_name' in params: + path_params['id.execution_id.name'] = params['id_execution_id_name'] # noqa: E501 + if 'id_node_id' in params: + path_params['id.node_id'] = params['id_node_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FlyteidladminNodeExecution', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_node_execution_data(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution_data(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: AdminNodeExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + else: + (data) = self.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + return data + + def get_node_execution_data_with_http_info(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: AdminNodeExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_execution_id_project', 'id_execution_id_domain', 'id_execution_id_name', 'id_node_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_execution_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_execution_id_project' is set + if ('id_execution_id_project' not in params or + params['id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_execution_id_project` when calling `get_node_execution_data`") # noqa: E501 + # verify the required parameter 'id_execution_id_domain' is set + if ('id_execution_id_domain' not in params or + params['id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_execution_id_domain` when calling `get_node_execution_data`") # noqa: E501 + # verify the required parameter 'id_execution_id_name' is set + if ('id_execution_id_name' not in params or + params['id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_execution_id_name` when calling `get_node_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_id' is set + if ('id_node_id' not in params or + params['id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_id` when calling `get_node_execution_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_execution_id_project' in params: + path_params['id.execution_id.project'] = params['id_execution_id_project'] # noqa: E501 + if 'id_execution_id_domain' in params: + path_params['id.execution_id.domain'] = params['id_execution_id_domain'] # noqa: E501 + if 'id_execution_id_name' in params: + path_params['id.execution_id.name'] = params['id_execution_id_name'] # noqa: E501 + if 'id_node_id' in params: + path_params['id.node_id'] = params['id_node_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionGetDataResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_project_attributes(self, project, **kwargs): # noqa: E501 + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_project_attributes(project, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminProjectAttributesGetResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_project_attributes_with_http_info(project, **kwargs) # noqa: E501 + else: + (data) = self.get_project_attributes_with_http_info(project, **kwargs) # noqa: E501 + return data + + def get_project_attributes_with_http_info(self, project, **kwargs): # noqa: E501 + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_project_attributes_with_http_info(project, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminProjectAttributesGetResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_project_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `get_project_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + + query_params = [] + if 'resource_type' in params: + query_params.append(('resource_type', params['resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/project_attributes/{project}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectAttributesGetResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_project_domain_attributes(self, project, domain, **kwargs): # noqa: E501 + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_project_domain_attributes(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminProjectDomainAttributesGetResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_project_domain_attributes_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.get_project_domain_attributes_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def get_project_domain_attributes_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_project_domain_attributes_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminProjectDomainAttributesGetResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_project_domain_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `get_project_domain_attributes`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `get_project_domain_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'resource_type' in params: + query_params.append(('resource_type', params['resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/project_domain_attributes/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectDomainAttributesGetResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_task(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.Task` definition. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminTask + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_task_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + else: + (data) = self.get_task_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + return data + + def get_task_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.Task` definition. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminTask + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_task" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_task`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_task`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_task`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `get_task`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + if 'id_resource_type' in params: + query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTask', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_task_execution(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: FlyteidladminTaskExecution + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + else: + (data) = self.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + return data + + def get_task_execution_with_http_info(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: FlyteidladminTaskExecution + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_node_execution_id_execution_id_project', 'id_node_execution_id_execution_id_domain', 'id_node_execution_id_execution_id_name', 'id_node_execution_id_node_id', 'id_task_id_project', 'id_task_id_domain', 'id_task_id_name', 'id_task_id_version', 'id_retry_attempt', 'id_task_id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_task_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_node_execution_id_execution_id_project' is set + if ('id_node_execution_id_execution_id_project' not in params or + params['id_node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_project` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_domain' is set + if ('id_node_execution_id_execution_id_domain' not in params or + params['id_node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_domain` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_name' is set + if ('id_node_execution_id_execution_id_name' not in params or + params['id_node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_name` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_node_id' is set + if ('id_node_execution_id_node_id' not in params or + params['id_node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_node_id` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_project' is set + if ('id_task_id_project' not in params or + params['id_task_id_project'] is None): + raise ValueError("Missing the required parameter `id_task_id_project` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_domain' is set + if ('id_task_id_domain' not in params or + params['id_task_id_domain'] is None): + raise ValueError("Missing the required parameter `id_task_id_domain` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_name' is set + if ('id_task_id_name' not in params or + params['id_task_id_name'] is None): + raise ValueError("Missing the required parameter `id_task_id_name` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_version' is set + if ('id_task_id_version' not in params or + params['id_task_id_version'] is None): + raise ValueError("Missing the required parameter `id_task_id_version` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_retry_attempt' is set + if ('id_retry_attempt' not in params or + params['id_retry_attempt'] is None): + raise ValueError("Missing the required parameter `id_retry_attempt` when calling `get_task_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_node_execution_id_execution_id_project' in params: + path_params['id.node_execution_id.execution_id.project'] = params['id_node_execution_id_execution_id_project'] # noqa: E501 + if 'id_node_execution_id_execution_id_domain' in params: + path_params['id.node_execution_id.execution_id.domain'] = params['id_node_execution_id_execution_id_domain'] # noqa: E501 + if 'id_node_execution_id_execution_id_name' in params: + path_params['id.node_execution_id.execution_id.name'] = params['id_node_execution_id_execution_id_name'] # noqa: E501 + if 'id_node_execution_id_node_id' in params: + path_params['id.node_execution_id.node_id'] = params['id_node_execution_id_node_id'] # noqa: E501 + if 'id_task_id_project' in params: + path_params['id.task_id.project'] = params['id_task_id_project'] # noqa: E501 + if 'id_task_id_domain' in params: + path_params['id.task_id.domain'] = params['id_task_id_domain'] # noqa: E501 + if 'id_task_id_name' in params: + path_params['id.task_id.name'] = params['id_task_id_name'] # noqa: E501 + if 'id_task_id_version' in params: + path_params['id.task_id.version'] = params['id_task_id_version'] # noqa: E501 + if 'id_retry_attempt' in params: + path_params['id.retry_attempt'] = params['id_retry_attempt'] # noqa: E501 + + query_params = [] + if 'id_task_id_resource_type' in params: + query_params.append(('id.task_id.resource_type', params['id_task_id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FlyteidladminTaskExecution', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_task_execution_data(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution_data(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminTaskExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + else: + (data) = self.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + return data + + def get_task_execution_data_with_http_info(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminTaskExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_node_execution_id_execution_id_project', 'id_node_execution_id_execution_id_domain', 'id_node_execution_id_execution_id_name', 'id_node_execution_id_node_id', 'id_task_id_project', 'id_task_id_domain', 'id_task_id_name', 'id_task_id_version', 'id_retry_attempt', 'id_task_id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_task_execution_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_node_execution_id_execution_id_project' is set + if ('id_node_execution_id_execution_id_project' not in params or + params['id_node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_project` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_domain' is set + if ('id_node_execution_id_execution_id_domain' not in params or + params['id_node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_domain` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_name' is set + if ('id_node_execution_id_execution_id_name' not in params or + params['id_node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_name` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_node_id' is set + if ('id_node_execution_id_node_id' not in params or + params['id_node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_node_id` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_project' is set + if ('id_task_id_project' not in params or + params['id_task_id_project'] is None): + raise ValueError("Missing the required parameter `id_task_id_project` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_domain' is set + if ('id_task_id_domain' not in params or + params['id_task_id_domain'] is None): + raise ValueError("Missing the required parameter `id_task_id_domain` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_name' is set + if ('id_task_id_name' not in params or + params['id_task_id_name'] is None): + raise ValueError("Missing the required parameter `id_task_id_name` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_version' is set + if ('id_task_id_version' not in params or + params['id_task_id_version'] is None): + raise ValueError("Missing the required parameter `id_task_id_version` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_retry_attempt' is set + if ('id_retry_attempt' not in params or + params['id_retry_attempt'] is None): + raise ValueError("Missing the required parameter `id_retry_attempt` when calling `get_task_execution_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_node_execution_id_execution_id_project' in params: + path_params['id.node_execution_id.execution_id.project'] = params['id_node_execution_id_execution_id_project'] # noqa: E501 + if 'id_node_execution_id_execution_id_domain' in params: + path_params['id.node_execution_id.execution_id.domain'] = params['id_node_execution_id_execution_id_domain'] # noqa: E501 + if 'id_node_execution_id_execution_id_name' in params: + path_params['id.node_execution_id.execution_id.name'] = params['id_node_execution_id_execution_id_name'] # noqa: E501 + if 'id_node_execution_id_node_id' in params: + path_params['id.node_execution_id.node_id'] = params['id_node_execution_id_node_id'] # noqa: E501 + if 'id_task_id_project' in params: + path_params['id.task_id.project'] = params['id_task_id_project'] # noqa: E501 + if 'id_task_id_domain' in params: + path_params['id.task_id.domain'] = params['id_task_id_domain'] # noqa: E501 + if 'id_task_id_name' in params: + path_params['id.task_id.name'] = params['id_task_id_name'] # noqa: E501 + if 'id_task_id_version' in params: + path_params['id.task_id.version'] = params['id_task_id_version'] # noqa: E501 + if 'id_retry_attempt' in params: + path_params['id.retry_attempt'] = params['id_retry_attempt'] # noqa: E501 + + query_params = [] + if 'id_task_id_resource_type' in params: + query_params.append(('id.task_id.resource_type', params['id_task_id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskExecutionGetDataResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_version(self, **kwargs): # noqa: E501 + """get_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_version(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: AdminGetVersionResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_version_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_version_with_http_info(**kwargs) # noqa: E501 + return data + + def get_version_with_http_info(self, **kwargs): # noqa: E501 + """get_version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_version_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: AdminGetVersionResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_version" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/version', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminGetVersionResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_workflow(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminWorkflow + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + else: + (data) = self.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + return data + + def get_workflow_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :return: AdminWorkflow + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_workflow" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_workflow`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_workflow`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_workflow`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `get_workflow`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + if 'id_resource_type' in params: + query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflow', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_workflow_attributes(self, project, domain, workflow, **kwargs): # noqa: E501 + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow_attributes(project, domain, workflow, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param str workflow: Workflow name which this set of attributes references. +required (required) + :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminWorkflowAttributesGetResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_workflow_attributes_with_http_info(project, domain, workflow, **kwargs) # noqa: E501 + else: + (data) = self.get_workflow_attributes_with_http_info(project, domain, workflow, **kwargs) # noqa: E501 + return data + + def get_workflow_attributes_with_http_info(self, project, domain, workflow, **kwargs): # noqa: E501 + """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow_attributes_with_http_info(project, domain, workflow, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Unique project id which this set of attributes references. +required (required) + :param str domain: Unique domain id which this set of attributes references. +required (required) + :param str workflow: Workflow name which this set of attributes references. +required (required) + :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminWorkflowAttributesGetResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'workflow', 'resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_workflow_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `get_workflow_attributes`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `get_workflow_attributes`") # noqa: E501 + # verify the required parameter 'workflow' is set + if ('workflow' not in params or + params['workflow'] is None): + raise ValueError("Missing the required parameter `workflow` when calling `get_workflow_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + if 'workflow' in params: + path_params['workflow'] = params['workflow'] # noqa: E501 + + query_params = [] + if 'resource_type' in params: + query_params.append(('resource_type', params['resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflow_attributes/{project}/{domain}/{workflow}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowAttributesGetResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_active_launch_plans(self, project, domain, **kwargs): # noqa: E501 + """List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_active_launch_plans(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required. (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_active_launch_plans_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_active_launch_plans_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def list_active_launch_plans_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_active_launch_plans_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required. (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_active_launch_plans" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_active_launch_plans`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_active_launch_plans`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/active_launch_plans/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_description_entities(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_description_entities(resource_type, id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminDescriptionEntityList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_description_entities_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_description_entities_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def list_description_entities_with_http_info(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_description_entities_with_http_info(resource_type, id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminDescriptionEntityList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['resource_type', 'id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_description_entities" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'resource_type' is set + if ('resource_type' not in params or + params['resource_type'] is None): + raise ValueError("Missing the required parameter `resource_type` when calling `list_description_entities`") # noqa: E501 + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_description_entities`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_description_entities`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `list_description_entities`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'resource_type' in params: + path_params['resource_type'] = params['resource_type'] # noqa: E501 + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminDescriptionEntityList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_description_entities2(self, resource_type, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_description_entities2(resource_type, id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminDescriptionEntityList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_description_entities2_with_http_info(resource_type, id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_description_entities2_with_http_info(resource_type, id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_description_entities2_with_http_info(self, resource_type, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_description_entities2_with_http_info(resource_type, id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminDescriptionEntityList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['resource_type', 'id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_description_entities2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'resource_type' is set + if ('resource_type' not in params or + params['resource_type'] is None): + raise ValueError("Missing the required parameter `resource_type` when calling `list_description_entities2`") # noqa: E501 + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_description_entities2`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_description_entities2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'resource_type' in params: + path_params['resource_type'] = params['resource_type'] # noqa: E501 + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminDescriptionEntityList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_executions(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_executions(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_executions_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_executions_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_executions_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_executions_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_executions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_executions`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_executions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_launch_plan_ids(self, project, domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plan_ids(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_launch_plan_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_launch_plan_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def list_launch_plan_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plan_ids_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_launch_plan_ids" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_launch_plan_ids`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_launch_plan_ids`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plan_ids/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityIdentifierList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_launch_plans(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_launch_plans_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_launch_plans_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def list_launch_plans_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_launch_plans" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_launch_plans`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_launch_plans`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `list_launch_plans`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_launch_plans2(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans2(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_launch_plans2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_launch_plans2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_launch_plans2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans2_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_launch_plans2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_launch_plans2`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_launch_plans2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_matchable_attributes(self, **kwargs): # noqa: E501 + """Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_matchable_attributes(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminListMatchableAttributesResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_matchable_attributes_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_matchable_attributes_with_http_info(**kwargs) # noqa: E501 + return data + + def list_matchable_attributes_with_http_info(self, **kwargs): # noqa: E501 + """Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_matchable_attributes_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. + :return: AdminListMatchableAttributesResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_matchable_attributes" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'resource_type' in params: + query_params.append(('resource_type', params['resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/matchable_attributes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminListMatchableAttributesResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_named_entities(self, resource_type, project, domain, **kwargs): # noqa: E501 + """Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_named_entities(resource_type, project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. +required (required) + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_named_entities_with_http_info(resource_type, project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_named_entities_with_http_info(resource_type, project, domain, **kwargs) # noqa: E501 + return data + + def list_named_entities_with_http_info(self, resource_type, project, domain, **kwargs): # noqa: E501 + """Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_named_entities_with_http_info(resource_type, project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. +required (required) + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['resource_type', 'project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_named_entities" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'resource_type' is set + if ('resource_type' not in params or + params['resource_type'] is None): + raise ValueError("Missing the required parameter `resource_type` when calling `list_named_entities`") # noqa: E501 + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_named_entities`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_named_entities`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'resource_type' in params: + path_params['resource_type'] = params['resource_type'] # noqa: E501 + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/named_entities/{resource_type}/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_node_executions(self, workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str workflow_execution_id_project: Name of the project the resource belongs to. (required) + :param str workflow_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str workflow_execution_id_name: User or system provided value for the resource. (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str unique_parent_id: Unique identifier of the parent node in the execution +optional. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs) # noqa: E501 + return data + + def list_node_executions_with_http_info(self, workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str workflow_execution_id_project: Name of the project the resource belongs to. (required) + :param str workflow_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str workflow_execution_id_name: User or system provided value for the resource. (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str unique_parent_id: Unique identifier of the parent node in the execution +optional. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['workflow_execution_id_project', 'workflow_execution_id_domain', 'workflow_execution_id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction', 'unique_parent_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_node_executions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'workflow_execution_id_project' is set + if ('workflow_execution_id_project' not in params or + params['workflow_execution_id_project'] is None): + raise ValueError("Missing the required parameter `workflow_execution_id_project` when calling `list_node_executions`") # noqa: E501 + # verify the required parameter 'workflow_execution_id_domain' is set + if ('workflow_execution_id_domain' not in params or + params['workflow_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `workflow_execution_id_domain` when calling `list_node_executions`") # noqa: E501 + # verify the required parameter 'workflow_execution_id_name' is set + if ('workflow_execution_id_name' not in params or + params['workflow_execution_id_name'] is None): + raise ValueError("Missing the required parameter `workflow_execution_id_name` when calling `list_node_executions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'workflow_execution_id_project' in params: + path_params['workflow_execution_id.project'] = params['workflow_execution_id_project'] # noqa: E501 + if 'workflow_execution_id_domain' in params: + path_params['workflow_execution_id.domain'] = params['workflow_execution_id_domain'] # noqa: E501 + if 'workflow_execution_id_name' in params: + path_params['workflow_execution_id.name'] = params['workflow_execution_id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + if 'unique_parent_id' in params: + query_params.append(('unique_parent_id', params['unique_parent_id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_node_executions_for_task(self, task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions_for_task(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str task_execution_id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str task_execution_id_node_execution_id_node_id: (required) + :param str task_execution_id_task_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_task_id_name: User provided value for the resource. (required) + :param str task_execution_id_task_id_version: Specific version of the resource. (required) + :param int task_execution_id_retry_attempt: (required) + :param str task_execution_id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs) # noqa: E501 + else: + (data) = self.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs) # noqa: E501 + return data + + def list_node_executions_for_task_with_http_info(self, task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str task_execution_id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str task_execution_id_node_execution_id_node_id: (required) + :param str task_execution_id_task_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_task_id_name: User provided value for the resource. (required) + :param str task_execution_id_task_id_version: Specific version of the resource. (required) + :param int task_execution_id_retry_attempt: (required) + :param str task_execution_id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['task_execution_id_node_execution_id_execution_id_project', 'task_execution_id_node_execution_id_execution_id_domain', 'task_execution_id_node_execution_id_execution_id_name', 'task_execution_id_node_execution_id_node_id', 'task_execution_id_task_id_project', 'task_execution_id_task_id_domain', 'task_execution_id_task_id_name', 'task_execution_id_task_id_version', 'task_execution_id_retry_attempt', 'task_execution_id_task_id_resource_type', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_node_executions_for_task" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'task_execution_id_node_execution_id_execution_id_project' is set + if ('task_execution_id_node_execution_id_execution_id_project' not in params or + params['task_execution_id_node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_project` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_node_execution_id_execution_id_domain' is set + if ('task_execution_id_node_execution_id_execution_id_domain' not in params or + params['task_execution_id_node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_domain` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_node_execution_id_execution_id_name' is set + if ('task_execution_id_node_execution_id_execution_id_name' not in params or + params['task_execution_id_node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_name` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_node_execution_id_node_id' is set + if ('task_execution_id_node_execution_id_node_id' not in params or + params['task_execution_id_node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_node_id` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_project' is set + if ('task_execution_id_task_id_project' not in params or + params['task_execution_id_task_id_project'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_project` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_domain' is set + if ('task_execution_id_task_id_domain' not in params or + params['task_execution_id_task_id_domain'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_domain` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_name' is set + if ('task_execution_id_task_id_name' not in params or + params['task_execution_id_task_id_name'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_name` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_version' is set + if ('task_execution_id_task_id_version' not in params or + params['task_execution_id_task_id_version'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_version` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_retry_attempt' is set + if ('task_execution_id_retry_attempt' not in params or + params['task_execution_id_retry_attempt'] is None): + raise ValueError("Missing the required parameter `task_execution_id_retry_attempt` when calling `list_node_executions_for_task`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'task_execution_id_node_execution_id_execution_id_project' in params: + path_params['task_execution_id.node_execution_id.execution_id.project'] = params['task_execution_id_node_execution_id_execution_id_project'] # noqa: E501 + if 'task_execution_id_node_execution_id_execution_id_domain' in params: + path_params['task_execution_id.node_execution_id.execution_id.domain'] = params['task_execution_id_node_execution_id_execution_id_domain'] # noqa: E501 + if 'task_execution_id_node_execution_id_execution_id_name' in params: + path_params['task_execution_id.node_execution_id.execution_id.name'] = params['task_execution_id_node_execution_id_execution_id_name'] # noqa: E501 + if 'task_execution_id_node_execution_id_node_id' in params: + path_params['task_execution_id.node_execution_id.node_id'] = params['task_execution_id_node_execution_id_node_id'] # noqa: E501 + if 'task_execution_id_task_id_project' in params: + path_params['task_execution_id.task_id.project'] = params['task_execution_id_task_id_project'] # noqa: E501 + if 'task_execution_id_task_id_domain' in params: + path_params['task_execution_id.task_id.domain'] = params['task_execution_id_task_id_domain'] # noqa: E501 + if 'task_execution_id_task_id_name' in params: + path_params['task_execution_id.task_id.name'] = params['task_execution_id_task_id_name'] # noqa: E501 + if 'task_execution_id_task_id_version' in params: + path_params['task_execution_id.task_id.version'] = params['task_execution_id_task_id_version'] # noqa: E501 + if 'task_execution_id_retry_attempt' in params: + path_params['task_execution_id.retry_attempt'] = params['task_execution_id_retry_attempt'] # noqa: E501 + + query_params = [] + if 'task_execution_id_task_id_resource_type' in params: + query_params.append(('task_execution_id.task_id.resource_type', params['task_execution_id_task_id_resource_type'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_projects(self, **kwargs): # noqa: E501 + """Fetches a list of :ref:`ref_flyteidl.admin.Project` # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_projects(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Indicates the number of projects to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminProjects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_projects_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_projects_with_http_info(**kwargs) # noqa: E501 + return data + + def list_projects_with_http_info(self, **kwargs): # noqa: E501 + """Fetches a list of :ref:`ref_flyteidl.admin.Project` # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_projects_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Indicates the number of projects to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminProjects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_projects" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/projects', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjects', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_task_executions(self, node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs): # noqa: E501 + """Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_executions(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str node_execution_id_node_id: (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminTaskExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs) # noqa: E501 + else: + (data) = self.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs) # noqa: E501 + return data + + def list_task_executions_with_http_info(self, node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs): # noqa: E501 + """Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str node_execution_id_node_id: (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminTaskExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_execution_id_execution_id_project', 'node_execution_id_execution_id_domain', 'node_execution_id_execution_id_name', 'node_execution_id_node_id', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_task_executions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'node_execution_id_execution_id_project' is set + if ('node_execution_id_execution_id_project' not in params or + params['node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `node_execution_id_execution_id_project` when calling `list_task_executions`") # noqa: E501 + # verify the required parameter 'node_execution_id_execution_id_domain' is set + if ('node_execution_id_execution_id_domain' not in params or + params['node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `node_execution_id_execution_id_domain` when calling `list_task_executions`") # noqa: E501 + # verify the required parameter 'node_execution_id_execution_id_name' is set + if ('node_execution_id_execution_id_name' not in params or + params['node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `node_execution_id_execution_id_name` when calling `list_task_executions`") # noqa: E501 + # verify the required parameter 'node_execution_id_node_id' is set + if ('node_execution_id_node_id' not in params or + params['node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `node_execution_id_node_id` when calling `list_task_executions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'node_execution_id_execution_id_project' in params: + path_params['node_execution_id.execution_id.project'] = params['node_execution_id_execution_id_project'] # noqa: E501 + if 'node_execution_id_execution_id_domain' in params: + path_params['node_execution_id.execution_id.domain'] = params['node_execution_id_execution_id_domain'] # noqa: E501 + if 'node_execution_id_execution_id_name' in params: + path_params['node_execution_id.execution_id.name'] = params['node_execution_id_execution_id_name'] # noqa: E501 + if 'node_execution_id_node_id' in params: + path_params['node_execution_id.node_id'] = params['node_execution_id_node_id'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_task_ids(self, project, domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_ids(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_task_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_task_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def list_task_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_ids_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_task_ids" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_task_ids`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_task_ids`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/task_ids/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityIdentifierList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_tasks(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_tasks_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_tasks_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def list_tasks_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_tasks" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_tasks`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_tasks`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `list_tasks`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_tasks2(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks2(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_tasks2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_tasks2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_tasks2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks2_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_tasks2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_tasks2`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_tasks2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_workflow_ids(self, project, domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflow_ids(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_workflow_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_workflow_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def list_workflow_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflow_ids_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. +required (required) + :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :param str filters: Indicates a list of filters passed as string. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_workflow_ids" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_workflow_ids`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_workflow_ids`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflow_ids/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityIdentifierList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_workflows(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_workflows_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_workflows_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def list_workflows_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_workflows" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_workflows`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_workflows`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `list_workflows`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_workflows2(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows2(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_workflows2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_workflows2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_workflows2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows2_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. +required. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. +required. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_workflows2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_workflows2`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_workflows2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def recover_execution(self, body, **kwargs): # noqa: E501 + """Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.recover_execution(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionRecoverRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.recover_execution_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.recover_execution_with_http_info(body, **kwargs) # noqa: E501 + return data + + def recover_execution_with_http_info(self, body, **kwargs): # noqa: E501 + """Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.recover_execution_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionRecoverRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method recover_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `recover_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/recover', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def register_project(self, body, **kwargs): # noqa: E501 + """Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.register_project(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminProjectRegisterRequest body: (required) + :return: AdminProjectRegisterResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.register_project_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.register_project_with_http_info(body, **kwargs) # noqa: E501 + return data + + def register_project_with_http_info(self, body, **kwargs): # noqa: E501 + """Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.register_project_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminProjectRegisterRequest body: (required) + :return: AdminProjectRegisterResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method register_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `register_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/projects', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectRegisterResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def relaunch_execution(self, body, **kwargs): # noqa: E501 + """Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.relaunch_execution(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionRelaunchRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.relaunch_execution_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.relaunch_execution_with_http_info(body, **kwargs) # noqa: E501 + return data + + def relaunch_execution_with_http_info(self, body, **kwargs): # noqa: E501 + """Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.relaunch_execution_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionRelaunchRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method relaunch_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `relaunch_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/relaunch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def terminate_execution(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.terminate_execution(id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param AdminExecutionTerminateRequest body: (required) + :return: AdminExecutionTerminateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.terminate_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + else: + (data) = self.terminate_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + return data + + def terminate_execution_with_http_info(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.terminate_execution_with_http_info(id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param AdminExecutionTerminateRequest body: (required) + :return: AdminExecutionTerminateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method terminate_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `terminate_execution`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `terminate_execution`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `terminate_execution`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `terminate_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionTerminateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_execution(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_execution(id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param AdminExecutionUpdateRequest body: (required) + :return: AdminExecutionUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + else: + (data) = self.update_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + return data + + def update_execution_with_http_info(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_execution_with_http_info(id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param AdminExecutionUpdateRequest body: (required) + :return: AdminExecutionUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `update_execution`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `update_execution`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `update_execution`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_launch_plan(self, id_project, id_domain, id_name, id_version, body, **kwargs): # noqa: E501 + """Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_launch_plan(id_project, id_domain, id_name, id_version, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param AdminLaunchPlanUpdateRequest body: (required) + :return: AdminLaunchPlanUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, **kwargs) # noqa: E501 + else: + (data) = self.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, **kwargs) # noqa: E501 + return data + + def update_launch_plan_with_http_info(self, id_project, id_domain, id_name, id_version, body, **kwargs): # noqa: E501 + """Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param AdminLaunchPlanUpdateRequest body: (required) + :return: AdminLaunchPlanUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_launch_plan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_launch_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_named_entity(self, resource_type, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_named_entity(resource_type, id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Resource type of the metadata to update +required (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param AdminNamedEntityUpdateRequest body: (required) + :return: AdminNamedEntityUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + else: + (data) = self.update_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + return data + + def update_named_entity_with_http_info(self, resource_type, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str resource_type: Resource type of the metadata to update +required (required) + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param AdminNamedEntityUpdateRequest body: (required) + :return: AdminNamedEntityUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['resource_type', 'id_project', 'id_domain', 'id_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_named_entity" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'resource_type' is set + if ('resource_type' not in params or + params['resource_type'] is None): + raise ValueError("Missing the required parameter `resource_type` when calling `update_named_entity`") # noqa: E501 + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `update_named_entity`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `update_named_entity`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `update_named_entity`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_named_entity`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'resource_type' in params: + path_params['resource_type'] = params['resource_type'] # noqa: E501 + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_project(self, id, body, **kwargs): # noqa: E501 + """Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_project(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Globally unique project name. (required) + :param AdminProject body: (required) + :return: AdminProjectUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_project_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.update_project_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def update_project_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_project_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Globally unique project name. (required) + :param AdminProject body: (required) + :return: AdminProjectUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `update_project`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/projects/{id}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_project_attributes(self, attributes_project, body, **kwargs): # noqa: E501 + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_project_attributes(attributes_project, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) + :param AdminProjectAttributesUpdateRequest body: (required) + :return: AdminProjectAttributesUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_project_attributes_with_http_info(attributes_project, body, **kwargs) # noqa: E501 + else: + (data) = self.update_project_attributes_with_http_info(attributes_project, body, **kwargs) # noqa: E501 + return data + + def update_project_attributes_with_http_info(self, attributes_project, body, **kwargs): # noqa: E501 + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_project_attributes_with_http_info(attributes_project, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) + :param AdminProjectAttributesUpdateRequest body: (required) + :return: AdminProjectAttributesUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['attributes_project', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_project_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'attributes_project' is set + if ('attributes_project' not in params or + params['attributes_project'] is None): + raise ValueError("Missing the required parameter `attributes_project` when calling `update_project_attributes`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_project_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'attributes_project' in params: + path_params['attributes.project'] = params['attributes_project'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/project_attributes/{attributes.project}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectAttributesUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_project_domain_attributes(self, attributes_project, attributes_domain, body, **kwargs): # noqa: E501 + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_project_domain_attributes(attributes_project, attributes_domain, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) + :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) + :param AdminProjectDomainAttributesUpdateRequest body: (required) + :return: AdminProjectDomainAttributesUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_project_domain_attributes_with_http_info(attributes_project, attributes_domain, body, **kwargs) # noqa: E501 + else: + (data) = self.update_project_domain_attributes_with_http_info(attributes_project, attributes_domain, body, **kwargs) # noqa: E501 + return data + + def update_project_domain_attributes_with_http_info(self, attributes_project, attributes_domain, body, **kwargs): # noqa: E501 + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_project_domain_attributes_with_http_info(attributes_project, attributes_domain, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) + :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) + :param AdminProjectDomainAttributesUpdateRequest body: (required) + :return: AdminProjectDomainAttributesUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['attributes_project', 'attributes_domain', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_project_domain_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'attributes_project' is set + if ('attributes_project' not in params or + params['attributes_project'] is None): + raise ValueError("Missing the required parameter `attributes_project` when calling `update_project_domain_attributes`") # noqa: E501 + # verify the required parameter 'attributes_domain' is set + if ('attributes_domain' not in params or + params['attributes_domain'] is None): + raise ValueError("Missing the required parameter `attributes_domain` when calling `update_project_domain_attributes`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_project_domain_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'attributes_project' in params: + path_params['attributes.project'] = params['attributes_project'] # noqa: E501 + if 'attributes_domain' in params: + path_params['attributes.domain'] = params['attributes_domain'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectDomainAttributesUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_workflow_attributes(self, attributes_project, attributes_domain, attributes_workflow, body, **kwargs): # noqa: E501 + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_workflow_attributes(attributes_project, attributes_domain, attributes_workflow, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) + :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) + :param str attributes_workflow: Workflow name for which this set of attributes will be applied. (required) + :param AdminWorkflowAttributesUpdateRequest body: (required) + :return: AdminWorkflowAttributesUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_workflow_attributes_with_http_info(attributes_project, attributes_domain, attributes_workflow, body, **kwargs) # noqa: E501 + else: + (data) = self.update_workflow_attributes_with_http_info(attributes_project, attributes_domain, attributes_workflow, body, **kwargs) # noqa: E501 + return data + + def update_workflow_attributes_with_http_info(self, attributes_project, attributes_domain, attributes_workflow, body, **kwargs): # noqa: E501 + """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_workflow_attributes_with_http_info(attributes_project, attributes_domain, attributes_workflow, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) + :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) + :param str attributes_workflow: Workflow name for which this set of attributes will be applied. (required) + :param AdminWorkflowAttributesUpdateRequest body: (required) + :return: AdminWorkflowAttributesUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['attributes_project', 'attributes_domain', 'attributes_workflow', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_workflow_attributes" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'attributes_project' is set + if ('attributes_project' not in params or + params['attributes_project'] is None): + raise ValueError("Missing the required parameter `attributes_project` when calling `update_workflow_attributes`") # noqa: E501 + # verify the required parameter 'attributes_domain' is set + if ('attributes_domain' not in params or + params['attributes_domain'] is None): + raise ValueError("Missing the required parameter `attributes_domain` when calling `update_workflow_attributes`") # noqa: E501 + # verify the required parameter 'attributes_workflow' is set + if ('attributes_workflow' not in params or + params['attributes_workflow'] is None): + raise ValueError("Missing the required parameter `attributes_workflow` when calling `update_workflow_attributes`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_workflow_attributes`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'attributes_project' in params: + path_params['attributes.project'] = params['attributes_project'] # noqa: E501 + if 'attributes_domain' in params: + path_params['attributes.domain'] = params['attributes_domain'] # noqa: E501 + if 'attributes_workflow' in params: + path_params['attributes.workflow'] = params['attributes_workflow'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowAttributesUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py new file mode 100644 index 0000000000..9a7091b08f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py @@ -0,0 +1,638 @@ +# coding: utf-8 +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from flyteadmin.configuration import Configuration +import flyteadmin.models +from flyteadmin import rest + + +class ApiClient(object): + """Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0/python' + + def __del__(self): + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.configuration.host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(flyteadmin.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, _request_timeout)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): + return data + + kwargs = {} + if klass.swagger_types is not None: + for attr, attr_type in six.iteritems(klass.swagger_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py new file mode 100644 index 0000000000..e6773bd5f1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class Configuration(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + _default = None + + def __init__(self): + """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + + # Default Base url + self.host = "http://localhost" + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("flyteadmin") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API + # from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + + @classmethod + def set_default(cls, default): + cls._default = default + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + if self.logger_stream_handler: + logger.removeHandler(self.logger_stream_handler) + else: + # If not set logging file, + # then add stream handler and remove file handler. + self.logger_stream_handler = logging.StreamHandler() + self.logger_stream_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_stream_handler) + if self.logger_file_handler: + logger.removeHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if (self.api_key.get(identifier) and + self.api_key_prefix.get(identifier)): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: version not set\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py new file mode 100644 index 0000000000..d8a797cdff --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +# flake8: noqa +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import models into model package +from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata +from flyteadmin.models.admin_annotations import AdminAnnotations +from flyteadmin.models.admin_auth import AdminAuth +from flyteadmin.models.admin_auth_role import AdminAuthRole +from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment +from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes +from flyteadmin.models.admin_cron_schedule import AdminCronSchedule +from flyteadmin.models.admin_description import AdminDescription +from flyteadmin.models.admin_description_entity import AdminDescriptionEntity +from flyteadmin.models.admin_description_entity_list import AdminDescriptionEntityList +from flyteadmin.models.admin_description_format import AdminDescriptionFormat +from flyteadmin.models.admin_domain import AdminDomain +from flyteadmin.models.admin_email_notification import AdminEmailNotification +from flyteadmin.models.admin_envs import AdminEnvs +from flyteadmin.models.admin_execution import AdminExecution +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure +from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel +from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest +from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse +from flyteadmin.models.admin_execution_list import AdminExecutionList +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata +from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes +from flyteadmin.models.admin_execution_recover_request import AdminExecutionRecoverRequest +from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec +from flyteadmin.models.admin_execution_state import AdminExecutionState +from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails +from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest +from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse +from flyteadmin.models.admin_execution_update_request import AdminExecutionUpdateRequest +from flyteadmin.models.admin_execution_update_response import AdminExecutionUpdateResponse +from flyteadmin.models.admin_fixed_rate import AdminFixedRate +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit +from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs +from flyteadmin.models.admin_get_version_response import AdminGetVersionResponse +from flyteadmin.models.admin_labels import AdminLabels +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure +from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest +from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse +from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState +from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest +from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse +from flyteadmin.models.admin_list_matchable_attributes_response import AdminListMatchableAttributesResponse +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob +from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration +from flyteadmin.models.admin_matchable_resource import AdminMatchableResource +from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes +from flyteadmin.models.admin_named_entity import AdminNamedEntity +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier +from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList +from flyteadmin.models.admin_named_entity_list import AdminNamedEntityList +from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata +from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState +from flyteadmin.models.admin_named_entity_update_request import AdminNamedEntityUpdateRequest +from flyteadmin.models.admin_named_entity_update_response import AdminNamedEntityUpdateResponse +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure +from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest +from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse +from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse +from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList +from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData +from flyteadmin.models.admin_notification import AdminNotification +from flyteadmin.models.admin_notification_list import AdminNotificationList +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification +from flyteadmin.models.admin_plugin_override import AdminPluginOverride +from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides +from flyteadmin.models.admin_project import AdminProject +from flyteadmin.models.admin_project_attributes import AdminProjectAttributes +from flyteadmin.models.admin_project_attributes_delete_request import AdminProjectAttributesDeleteRequest +from flyteadmin.models.admin_project_attributes_delete_response import AdminProjectAttributesDeleteResponse +from flyteadmin.models.admin_project_attributes_get_response import AdminProjectAttributesGetResponse +from flyteadmin.models.admin_project_attributes_update_request import AdminProjectAttributesUpdateRequest +from flyteadmin.models.admin_project_attributes_update_response import AdminProjectAttributesUpdateResponse +from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes +from flyteadmin.models.admin_project_domain_attributes_delete_request import AdminProjectDomainAttributesDeleteRequest +from flyteadmin.models.admin_project_domain_attributes_delete_response import AdminProjectDomainAttributesDeleteResponse +from flyteadmin.models.admin_project_domain_attributes_get_response import AdminProjectDomainAttributesGetResponse +from flyteadmin.models.admin_project_domain_attributes_update_request import AdminProjectDomainAttributesUpdateRequest +from flyteadmin.models.admin_project_domain_attributes_update_response import AdminProjectDomainAttributesUpdateResponse +from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest +from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse +from flyteadmin.models.admin_project_update_response import AdminProjectUpdateResponse +from flyteadmin.models.admin_projects import AdminProjects +from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig +from flyteadmin.models.admin_reason import AdminReason +from flyteadmin.models.admin_schedule import AdminSchedule +from flyteadmin.models.admin_slack_notification import AdminSlackNotification +from flyteadmin.models.admin_sort import AdminSort +from flyteadmin.models.admin_source_code import AdminSourceCode +from flyteadmin.models.admin_system_metadata import AdminSystemMetadata +from flyteadmin.models.admin_task import AdminTask +from flyteadmin.models.admin_task_closure import AdminTaskClosure +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure +from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest +from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse +from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse +from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList +from flyteadmin.models.admin_task_list import AdminTaskList +from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes +from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec +from flyteadmin.models.admin_task_spec import AdminTaskSpec +from flyteadmin.models.admin_url_blob import AdminUrlBlob +from flyteadmin.models.admin_version import AdminVersion +from flyteadmin.models.admin_workflow import AdminWorkflow +from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes +from flyteadmin.models.admin_workflow_attributes_delete_request import AdminWorkflowAttributesDeleteRequest +from flyteadmin.models.admin_workflow_attributes_delete_response import AdminWorkflowAttributesDeleteResponse +from flyteadmin.models.admin_workflow_attributes_get_response import AdminWorkflowAttributesGetResponse +from flyteadmin.models.admin_workflow_attributes_update_request import AdminWorkflowAttributesUpdateRequest +from flyteadmin.models.admin_workflow_attributes_update_response import AdminWorkflowAttributesUpdateResponse +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure +from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest +from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse +from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig +from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest +from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse +from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse +from flyteadmin.models.admin_workflow_execution_get_metrics_response import AdminWorkflowExecutionGetMetricsResponse +from flyteadmin.models.admin_workflow_list import AdminWorkflowList +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality +from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList +from flyteadmin.models.container_architecture import ContainerArchitecture +from flyteadmin.models.core_alias import CoreAlias +from flyteadmin.models.core_approve_condition import CoreApproveCondition +from flyteadmin.models.core_array_node import CoreArrayNode +from flyteadmin.models.core_binary import CoreBinary +from flyteadmin.models.core_binding import CoreBinding +from flyteadmin.models.core_binding_data import CoreBindingData +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap +from flyteadmin.models.core_blob import CoreBlob +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata +from flyteadmin.models.core_blob_type import CoreBlobType +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression +from flyteadmin.models.core_branch_node import CoreBranchNode +from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag +from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus +from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression +from flyteadmin.models.core_compiled_task import CoreCompiledTask +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression +from flyteadmin.models.core_connection_set import CoreConnectionSet +from flyteadmin.models.core_container import CoreContainer +from flyteadmin.models.core_container_port import CoreContainerPort +from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig +from flyteadmin.models.core_enum_type import CoreEnumType +from flyteadmin.models.core_error import CoreError +from flyteadmin.models.core_execution_error import CoreExecutionError +from flyteadmin.models.core_gate_node import CoreGateNode +from flyteadmin.models.core_io_strategy import CoreIOStrategy +from flyteadmin.models.core_identifier import CoreIdentifier +from flyteadmin.models.core_identity import CoreIdentity +from flyteadmin.models.core_if_block import CoreIfBlock +from flyteadmin.models.core_if_else_block import CoreIfElseBlock +from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata +from flyteadmin.models.core_k8s_pod import CoreK8sPod +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair +from flyteadmin.models.core_literal import CoreLiteral +from flyteadmin.models.core_literal_collection import CoreLiteralCollection +from flyteadmin.models.core_literal_map import CoreLiteralMap +from flyteadmin.models.core_literal_type import CoreLiteralType +from flyteadmin.models.core_node import CoreNode +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase +from flyteadmin.models.core_node_metadata import CoreNodeMetadata +from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client +from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest +from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType +from flyteadmin.models.core_operand import CoreOperand +from flyteadmin.models.core_output_reference import CoreOutputReference +from flyteadmin.models.core_parameter import CoreParameter +from flyteadmin.models.core_parameter_map import CoreParameterMap +from flyteadmin.models.core_primitive import CorePrimitive +from flyteadmin.models.core_quality_of_service import CoreQualityOfService +from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec +from flyteadmin.models.core_resource_type import CoreResourceType +from flyteadmin.models.core_resources import CoreResources +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata +from flyteadmin.models.core_scalar import CoreScalar +from flyteadmin.models.core_schema import CoreSchema +from flyteadmin.models.core_schema_type import CoreSchemaType +from flyteadmin.models.core_secret import CoreSecret +from flyteadmin.models.core_security_context import CoreSecurityContext +from flyteadmin.models.core_signal_condition import CoreSignalCondition +from flyteadmin.models.core_simple_type import CoreSimpleType +from flyteadmin.models.core_sleep_condition import CoreSleepCondition +from flyteadmin.models.core_span import CoreSpan +from flyteadmin.models.core_sql import CoreSql +from flyteadmin.models.core_structured_dataset import CoreStructuredDataset +from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata +from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase +from flyteadmin.models.core_task_log import CoreTaskLog +from flyteadmin.models.core_task_metadata import CoreTaskMetadata +from flyteadmin.models.core_task_node import CoreTaskNode +from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides +from flyteadmin.models.core_task_template import CoreTaskTemplate +from flyteadmin.models.core_type_annotation import CoreTypeAnnotation +from flyteadmin.models.core_type_structure import CoreTypeStructure +from flyteadmin.models.core_typed_interface import CoreTypedInterface +from flyteadmin.models.core_union import CoreUnion +from flyteadmin.models.core_union_info import CoreUnionInfo +from flyteadmin.models.core_union_type import CoreUnionType +from flyteadmin.models.core_variable import CoreVariable +from flyteadmin.models.core_variable_map import CoreVariableMap +from flyteadmin.models.core_void import CoreVoid +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata +from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults +from flyteadmin.models.core_workflow_node import CoreWorkflowNode +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate +from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat +from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent +from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata +from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent +from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode +from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution +from flyteadmin.models.flyteidladmin_task_create_request import FlyteidladminTaskCreateRequest +from flyteadmin.models.flyteidladmin_task_create_response import FlyteidladminTaskCreateResponse +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution +from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata +from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata +from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata +from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata +from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode +from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode +from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior +from flyteadmin.models.project_project_state import ProjectProjectState +from flyteadmin.models.protobuf_list_value import ProtobufListValue +from flyteadmin.models.protobuf_null_value import ProtobufNullValue +from flyteadmin.models.protobuf_struct import ProtobufStruct +from flyteadmin.models.protobuf_value import ProtobufValue +from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry +from flyteadmin.models.resources_resource_name import ResourcesResourceName +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn +from flyteadmin.models.secret_mount_type import SecretMountType +from flyteadmin.models.sort_direction import SortDirection +from flyteadmin.models.sql_dialect import SqlDialect +from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn +from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat +from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_abort_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_abort_metadata.py new file mode 100644 index 0000000000..406ea90476 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_abort_metadata.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminAbortMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cause': 'str', + 'principal': 'str' + } + + attribute_map = { + 'cause': 'cause', + 'principal': 'principal' + } + + def __init__(self, cause=None, principal=None): # noqa: E501 + """AdminAbortMetadata - a model defined in Swagger""" # noqa: E501 + + self._cause = None + self._principal = None + self.discriminator = None + + if cause is not None: + self.cause = cause + if principal is not None: + self.principal = principal + + @property + def cause(self): + """Gets the cause of this AdminAbortMetadata. # noqa: E501 + + In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 + + :return: The cause of this AdminAbortMetadata. # noqa: E501 + :rtype: str + """ + return self._cause + + @cause.setter + def cause(self, cause): + """Sets the cause of this AdminAbortMetadata. + + In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 + + :param cause: The cause of this AdminAbortMetadata. # noqa: E501 + :type: str + """ + + self._cause = cause + + @property + def principal(self): + """Gets the principal of this AdminAbortMetadata. # noqa: E501 + + + :return: The principal of this AdminAbortMetadata. # noqa: E501 + :rtype: str + """ + return self._principal + + @principal.setter + def principal(self, principal): + """Sets the principal of this AdminAbortMetadata. + + + :param principal: The principal of this AdminAbortMetadata. # noqa: E501 + :type: str + """ + + self._principal = principal + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminAbortMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminAbortMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py new file mode 100644 index 0000000000..c0aeceade3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminAnnotations(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'dict(str, str)' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """AdminAnnotations - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this AdminAnnotations. # noqa: E501 + + Map of custom annotations to be applied to the execution resource. # noqa: E501 + + :return: The values of this AdminAnnotations. # noqa: E501 + :rtype: dict(str, str) + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AdminAnnotations. + + Map of custom annotations to be applied to the execution resource. # noqa: E501 + + :param values: The values of this AdminAnnotations. # noqa: E501 + :type: dict(str, str) + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminAnnotations, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminAnnotations): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py new file mode 100644 index 0000000000..a994ca210e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminAuth(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'assumable_iam_role': 'str', + 'kubernetes_service_account': 'str' + } + + attribute_map = { + 'assumable_iam_role': 'assumable_iam_role', + 'kubernetes_service_account': 'kubernetes_service_account' + } + + def __init__(self, assumable_iam_role=None, kubernetes_service_account=None): # noqa: E501 + """AdminAuth - a model defined in Swagger""" # noqa: E501 + + self._assumable_iam_role = None + self._kubernetes_service_account = None + self.discriminator = None + + if assumable_iam_role is not None: + self.assumable_iam_role = assumable_iam_role + if kubernetes_service_account is not None: + self.kubernetes_service_account = kubernetes_service_account + + @property + def assumable_iam_role(self): + """Gets the assumable_iam_role of this AdminAuth. # noqa: E501 + + Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :return: The assumable_iam_role of this AdminAuth. # noqa: E501 + :rtype: str + """ + return self._assumable_iam_role + + @assumable_iam_role.setter + def assumable_iam_role(self, assumable_iam_role): + """Sets the assumable_iam_role of this AdminAuth. + + Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :param assumable_iam_role: The assumable_iam_role of this AdminAuth. # noqa: E501 + :type: str + """ + + self._assumable_iam_role = assumable_iam_role + + @property + def kubernetes_service_account(self): + """Gets the kubernetes_service_account of this AdminAuth. # noqa: E501 + + Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :return: The kubernetes_service_account of this AdminAuth. # noqa: E501 + :rtype: str + """ + return self._kubernetes_service_account + + @kubernetes_service_account.setter + def kubernetes_service_account(self, kubernetes_service_account): + """Sets the kubernetes_service_account of this AdminAuth. + + Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :param kubernetes_service_account: The kubernetes_service_account of this AdminAuth. # noqa: E501 + :type: str + """ + + self._kubernetes_service_account = kubernetes_service_account + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminAuth, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminAuth): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth_role.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth_role.py new file mode 100644 index 0000000000..2cfde51be6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth_role.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminAuthRole(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'assumable_iam_role': 'str', + 'kubernetes_service_account': 'str' + } + + attribute_map = { + 'assumable_iam_role': 'assumable_iam_role', + 'kubernetes_service_account': 'kubernetes_service_account' + } + + def __init__(self, assumable_iam_role=None, kubernetes_service_account=None): # noqa: E501 + """AdminAuthRole - a model defined in Swagger""" # noqa: E501 + + self._assumable_iam_role = None + self._kubernetes_service_account = None + self.discriminator = None + + if assumable_iam_role is not None: + self.assumable_iam_role = assumable_iam_role + if kubernetes_service_account is not None: + self.kubernetes_service_account = kubernetes_service_account + + @property + def assumable_iam_role(self): + """Gets the assumable_iam_role of this AdminAuthRole. # noqa: E501 + + Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :return: The assumable_iam_role of this AdminAuthRole. # noqa: E501 + :rtype: str + """ + return self._assumable_iam_role + + @assumable_iam_role.setter + def assumable_iam_role(self, assumable_iam_role): + """Sets the assumable_iam_role of this AdminAuthRole. + + Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :param assumable_iam_role: The assumable_iam_role of this AdminAuthRole. # noqa: E501 + :type: str + """ + + self._assumable_iam_role = assumable_iam_role + + @property + def kubernetes_service_account(self): + """Gets the kubernetes_service_account of this AdminAuthRole. # noqa: E501 + + Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :return: The kubernetes_service_account of this AdminAuthRole. # noqa: E501 + :rtype: str + """ + return self._kubernetes_service_account + + @kubernetes_service_account.setter + def kubernetes_service_account(self, kubernetes_service_account): + """Sets the kubernetes_service_account of this AdminAuthRole. + + Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 + + :param kubernetes_service_account: The kubernetes_service_account of this AdminAuthRole. # noqa: E501 + :type: str + """ + + self._kubernetes_service_account = kubernetes_service_account + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminAuthRole, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminAuthRole): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_assignment.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_assignment.py new file mode 100644 index 0000000000..15f5fd96f0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_assignment.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminClusterAssignment(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cluster_pool_name': 'str' + } + + attribute_map = { + 'cluster_pool_name': 'cluster_pool_name' + } + + def __init__(self, cluster_pool_name=None): # noqa: E501 + """AdminClusterAssignment - a model defined in Swagger""" # noqa: E501 + + self._cluster_pool_name = None + self.discriminator = None + + if cluster_pool_name is not None: + self.cluster_pool_name = cluster_pool_name + + @property + def cluster_pool_name(self): + """Gets the cluster_pool_name of this AdminClusterAssignment. # noqa: E501 + + + :return: The cluster_pool_name of this AdminClusterAssignment. # noqa: E501 + :rtype: str + """ + return self._cluster_pool_name + + @cluster_pool_name.setter + def cluster_pool_name(self, cluster_pool_name): + """Sets the cluster_pool_name of this AdminClusterAssignment. + + + :param cluster_pool_name: The cluster_pool_name of this AdminClusterAssignment. # noqa: E501 + :type: str + """ + + self._cluster_pool_name = cluster_pool_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminClusterAssignment, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminClusterAssignment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_resource_attributes.py new file mode 100644 index 0000000000..8b9627b37a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_resource_attributes.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminClusterResourceAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'dict(str, str)' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): # noqa: E501 + """AdminClusterResourceAttributes - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this AdminClusterResourceAttributes. # noqa: E501 + + Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). Map keys are the *case-sensitive* names of variables in templatized resource files. Map values should be the custom values which get substituted during resource creation. # noqa: E501 + + :return: The attributes of this AdminClusterResourceAttributes. # noqa: E501 + :rtype: dict(str, str) + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminClusterResourceAttributes. + + Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). Map keys are the *case-sensitive* names of variables in templatized resource files. Map values should be the custom values which get substituted during resource creation. # noqa: E501 + + :param attributes: The attributes of this AdminClusterResourceAttributes. # noqa: E501 + :type: dict(str, str) + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminClusterResourceAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminClusterResourceAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cron_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cron_schedule.py new file mode 100644 index 0000000000..7f86dcaafb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cron_schedule.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminCronSchedule(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'schedule': 'str', + 'offset': 'str' + } + + attribute_map = { + 'schedule': 'schedule', + 'offset': 'offset' + } + + def __init__(self, schedule=None, offset=None): # noqa: E501 + """AdminCronSchedule - a model defined in Swagger""" # noqa: E501 + + self._schedule = None + self._offset = None + self.discriminator = None + + if schedule is not None: + self.schedule = schedule + if offset is not None: + self.offset = offset + + @property + def schedule(self): + """Gets the schedule of this AdminCronSchedule. # noqa: E501 + + + :return: The schedule of this AdminCronSchedule. # noqa: E501 + :rtype: str + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this AdminCronSchedule. + + + :param schedule: The schedule of this AdminCronSchedule. # noqa: E501 + :type: str + """ + + self._schedule = schedule + + @property + def offset(self): + """Gets the offset of this AdminCronSchedule. # noqa: E501 + + + :return: The offset of this AdminCronSchedule. # noqa: E501 + :rtype: str + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this AdminCronSchedule. + + + :param offset: The offset of this AdminCronSchedule. # noqa: E501 + :type: str + """ + + self._offset = offset + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminCronSchedule, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminCronSchedule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description.py new file mode 100644 index 0000000000..d6188543b7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_description_format import AdminDescriptionFormat # noqa: F401,E501 + + +class AdminDescription(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'uri': 'str', + 'format': 'AdminDescriptionFormat', + 'icon_link': 'str' + } + + attribute_map = { + 'value': 'value', + 'uri': 'uri', + 'format': 'format', + 'icon_link': 'icon_link' + } + + def __init__(self, value=None, uri=None, format=None, icon_link=None): # noqa: E501 + """AdminDescription - a model defined in Swagger""" # noqa: E501 + + self._value = None + self._uri = None + self._format = None + self._icon_link = None + self.discriminator = None + + if value is not None: + self.value = value + if uri is not None: + self.uri = uri + if format is not None: + self.format = format + if icon_link is not None: + self.icon_link = icon_link + + @property + def value(self): + """Gets the value of this AdminDescription. # noqa: E501 + + + :return: The value of this AdminDescription. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this AdminDescription. + + + :param value: The value of this AdminDescription. # noqa: E501 + :type: str + """ + + self._value = value + + @property + def uri(self): + """Gets the uri of this AdminDescription. # noqa: E501 + + + :return: The uri of this AdminDescription. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this AdminDescription. + + + :param uri: The uri of this AdminDescription. # noqa: E501 + :type: str + """ + + self._uri = uri + + @property + def format(self): + """Gets the format of this AdminDescription. # noqa: E501 + + + :return: The format of this AdminDescription. # noqa: E501 + :rtype: AdminDescriptionFormat + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this AdminDescription. + + + :param format: The format of this AdminDescription. # noqa: E501 + :type: AdminDescriptionFormat + """ + + self._format = format + + @property + def icon_link(self): + """Gets the icon_link of this AdminDescription. # noqa: E501 + + + :return: The icon_link of this AdminDescription. # noqa: E501 + :rtype: str + """ + return self._icon_link + + @icon_link.setter + def icon_link(self, icon_link): + """Sets the icon_link of this AdminDescription. + + + :param icon_link: The icon_link of this AdminDescription. # noqa: E501 + :type: str + """ + + self._icon_link = icon_link + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminDescription, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminDescription): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity.py new file mode 100644 index 0000000000..87438a1a93 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_description import AdminDescription # noqa: F401,E501 +from flyteadmin.models.admin_source_code import AdminSourceCode # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminDescriptionEntity(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'short_description': 'str', + 'long_description': 'AdminDescription', + 'source_code': 'AdminSourceCode', + 'tags': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'short_description': 'short_description', + 'long_description': 'long_description', + 'source_code': 'source_code', + 'tags': 'tags' + } + + def __init__(self, id=None, short_description=None, long_description=None, source_code=None, tags=None): # noqa: E501 + """AdminDescriptionEntity - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._short_description = None + self._long_description = None + self._source_code = None + self._tags = None + self.discriminator = None + + if id is not None: + self.id = id + if short_description is not None: + self.short_description = short_description + if long_description is not None: + self.long_description = long_description + if source_code is not None: + self.source_code = source_code + if tags is not None: + self.tags = tags + + @property + def id(self): + """Gets the id of this AdminDescriptionEntity. # noqa: E501 + + id represents the unique identifier of the description entity. # noqa: E501 + + :return: The id of this AdminDescriptionEntity. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminDescriptionEntity. + + id represents the unique identifier of the description entity. # noqa: E501 + + :param id: The id of this AdminDescriptionEntity. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def short_description(self): + """Gets the short_description of this AdminDescriptionEntity. # noqa: E501 + + One-liner overview of the entity. # noqa: E501 + + :return: The short_description of this AdminDescriptionEntity. # noqa: E501 + :rtype: str + """ + return self._short_description + + @short_description.setter + def short_description(self, short_description): + """Sets the short_description of this AdminDescriptionEntity. + + One-liner overview of the entity. # noqa: E501 + + :param short_description: The short_description of this AdminDescriptionEntity. # noqa: E501 + :type: str + """ + + self._short_description = short_description + + @property + def long_description(self): + """Gets the long_description of this AdminDescriptionEntity. # noqa: E501 + + Full user description with formatting preserved. # noqa: E501 + + :return: The long_description of this AdminDescriptionEntity. # noqa: E501 + :rtype: AdminDescription + """ + return self._long_description + + @long_description.setter + def long_description(self, long_description): + """Sets the long_description of this AdminDescriptionEntity. + + Full user description with formatting preserved. # noqa: E501 + + :param long_description: The long_description of this AdminDescriptionEntity. # noqa: E501 + :type: AdminDescription + """ + + self._long_description = long_description + + @property + def source_code(self): + """Gets the source_code of this AdminDescriptionEntity. # noqa: E501 + + Optional link to source code used to define this entity. # noqa: E501 + + :return: The source_code of this AdminDescriptionEntity. # noqa: E501 + :rtype: AdminSourceCode + """ + return self._source_code + + @source_code.setter + def source_code(self, source_code): + """Sets the source_code of this AdminDescriptionEntity. + + Optional link to source code used to define this entity. # noqa: E501 + + :param source_code: The source_code of this AdminDescriptionEntity. # noqa: E501 + :type: AdminSourceCode + """ + + self._source_code = source_code + + @property + def tags(self): + """Gets the tags of this AdminDescriptionEntity. # noqa: E501 + + User-specified tags. These are arbitrary and can be used for searching filtering and discovering tasks. # noqa: E501 + + :return: The tags of this AdminDescriptionEntity. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this AdminDescriptionEntity. + + User-specified tags. These are arbitrary and can be used for searching filtering and discovering tasks. # noqa: E501 + + :param tags: The tags of this AdminDescriptionEntity. # noqa: E501 + :type: list[str] + """ + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminDescriptionEntity, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminDescriptionEntity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity_list.py new file mode 100644 index 0000000000..60ba9535e4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: F401,E501 + + +class AdminDescriptionEntityList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description_entities': 'list[AdminDescriptionEntity]', + 'token': 'str' + } + + attribute_map = { + 'description_entities': 'descriptionEntities', + 'token': 'token' + } + + def __init__(self, description_entities=None, token=None): # noqa: E501 + """AdminDescriptionEntityList - a model defined in Swagger""" # noqa: E501 + + self._description_entities = None + self._token = None + self.discriminator = None + + if description_entities is not None: + self.description_entities = description_entities + if token is not None: + self.token = token + + @property + def description_entities(self): + """Gets the description_entities of this AdminDescriptionEntityList. # noqa: E501 + + A list of DescriptionEntities returned based on the request. # noqa: E501 + + :return: The description_entities of this AdminDescriptionEntityList. # noqa: E501 + :rtype: list[AdminDescriptionEntity] + """ + return self._description_entities + + @description_entities.setter + def description_entities(self, description_entities): + """Sets the description_entities of this AdminDescriptionEntityList. + + A list of DescriptionEntities returned based on the request. # noqa: E501 + + :param description_entities: The description_entities of this AdminDescriptionEntityList. # noqa: E501 + :type: list[AdminDescriptionEntity] + """ + + self._description_entities = description_entities + + @property + def token(self): + """Gets the token of this AdminDescriptionEntityList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminDescriptionEntityList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminDescriptionEntityList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminDescriptionEntityList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminDescriptionEntityList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminDescriptionEntityList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_format.py new file mode 100644 index 0000000000..882ff02fe7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_format.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminDescriptionFormat(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN = "DESCRIPTION_FORMAT_UNKNOWN" + MARKDOWN = "DESCRIPTION_FORMAT_MARKDOWN" + HTML = "DESCRIPTION_FORMAT_HTML" + RST = "DESCRIPTION_FORMAT_RST" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminDescriptionFormat - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminDescriptionFormat, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminDescriptionFormat): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py new file mode 100644 index 0000000000..9c500ee740 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminDomain(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): # noqa: E501 + """AdminDomain - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this AdminDomain. # noqa: E501 + + Globally unique domain name. # noqa: E501 + + :return: The id of this AdminDomain. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminDomain. + + Globally unique domain name. # noqa: E501 + + :param id: The id of this AdminDomain. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AdminDomain. # noqa: E501 + + Display name. # noqa: E501 + + :return: The name of this AdminDomain. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminDomain. + + Display name. # noqa: E501 + + :param name: The name of this AdminDomain. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminDomain, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminDomain): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py new file mode 100644 index 0000000000..f97f626653 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminEmailNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'recipients_email': 'list[str]' + } + + attribute_map = { + 'recipients_email': 'recipients_email' + } + + def __init__(self, recipients_email=None): # noqa: E501 + """AdminEmailNotification - a model defined in Swagger""" # noqa: E501 + + self._recipients_email = None + self.discriminator = None + + if recipients_email is not None: + self.recipients_email = recipients_email + + @property + def recipients_email(self): + """Gets the recipients_email of this AdminEmailNotification. # noqa: E501 + + + :return: The recipients_email of this AdminEmailNotification. # noqa: E501 + :rtype: list[str] + """ + return self._recipients_email + + @recipients_email.setter + def recipients_email(self, recipients_email): + """Sets the recipients_email of this AdminEmailNotification. + + + :param recipients_email: The recipients_email of this AdminEmailNotification. # noqa: E501 + :type: list[str] + """ + + self._recipients_email = recipients_email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminEmailNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminEmailNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_envs.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_envs.py new file mode 100644 index 0000000000..c4531a9b68 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_envs.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: F401,E501 + + +class AdminEnvs(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'list[CoreKeyValuePair]' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """AdminEnvs - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this AdminEnvs. # noqa: E501 + + Map of custom environment variables to be applied to the execution resource. # noqa: E501 + + :return: The values of this AdminEnvs. # noqa: E501 + :rtype: list[CoreKeyValuePair] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AdminEnvs. + + Map of custom environment variables to be applied to the execution resource. # noqa: E501 + + :param values: The values of this AdminEnvs. # noqa: E501 + :type: list[CoreKeyValuePair] + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminEnvs, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminEnvs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py new file mode 100644 index 0000000000..1de4f19d97 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure # noqa: F401,E501 +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecution(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'spec': 'AdminExecutionSpec', + 'closure': 'AdminExecutionClosure' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec', + 'closure': 'closure' + } + + def __init__(self, id=None, spec=None, closure=None): # noqa: E501 + """AdminExecution - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self._closure = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + if closure is not None: + self.closure = closure + + @property + def id(self): + """Gets the id of this AdminExecution. # noqa: E501 + + Unique identifier of the workflow execution. # noqa: E501 + + :return: The id of this AdminExecution. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecution. + + Unique identifier of the workflow execution. # noqa: E501 + + :param id: The id of this AdminExecution. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminExecution. # noqa: E501 + + User-provided configuration and inputs for launching the execution. # noqa: E501 + + :return: The spec of this AdminExecution. # noqa: E501 + :rtype: AdminExecutionSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminExecution. + + User-provided configuration and inputs for launching the execution. # noqa: E501 + + :param spec: The spec of this AdminExecution. # noqa: E501 + :type: AdminExecutionSpec + """ + + self._spec = spec + + @property + def closure(self): + """Gets the closure of this AdminExecution. # noqa: E501 + + Execution results. # noqa: E501 + + :return: The closure of this AdminExecution. # noqa: E501 + :rtype: AdminExecutionClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminExecution. + + Execution results. # noqa: E501 + + :param closure: The closure of this AdminExecution. # noqa: E501 + :type: AdminExecutionClosure + """ + + self._closure = closure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecution, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py new file mode 100644 index 0000000000..a08f3ca1d8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py @@ -0,0 +1,486 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata # noqa: F401,E501 +from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails # noqa: F401,E501 +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob # noqa: F401,E501 +from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 + + +class AdminExecutionClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'outputs': 'AdminLiteralMapBlob', + 'error': 'CoreExecutionError', + 'abort_cause': 'str', + 'abort_metadata': 'AdminAbortMetadata', + 'output_data': 'CoreLiteralMap', + 'computed_inputs': 'CoreLiteralMap', + 'phase': 'CoreWorkflowExecutionPhase', + 'started_at': 'datetime', + 'duration': 'str', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'notifications': 'list[AdminNotification]', + 'workflow_id': 'CoreIdentifier', + 'state_change_details': 'AdminExecutionStateChangeDetails' + } + + attribute_map = { + 'outputs': 'outputs', + 'error': 'error', + 'abort_cause': 'abort_cause', + 'abort_metadata': 'abort_metadata', + 'output_data': 'output_data', + 'computed_inputs': 'computed_inputs', + 'phase': 'phase', + 'started_at': 'started_at', + 'duration': 'duration', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'notifications': 'notifications', + 'workflow_id': 'workflow_id', + 'state_change_details': 'state_change_details' + } + + def __init__(self, outputs=None, error=None, abort_cause=None, abort_metadata=None, output_data=None, computed_inputs=None, phase=None, started_at=None, duration=None, created_at=None, updated_at=None, notifications=None, workflow_id=None, state_change_details=None): # noqa: E501 + """AdminExecutionClosure - a model defined in Swagger""" # noqa: E501 + + self._outputs = None + self._error = None + self._abort_cause = None + self._abort_metadata = None + self._output_data = None + self._computed_inputs = None + self._phase = None + self._started_at = None + self._duration = None + self._created_at = None + self._updated_at = None + self._notifications = None + self._workflow_id = None + self._state_change_details = None + self.discriminator = None + + if outputs is not None: + self.outputs = outputs + if error is not None: + self.error = error + if abort_cause is not None: + self.abort_cause = abort_cause + if abort_metadata is not None: + self.abort_metadata = abort_metadata + if output_data is not None: + self.output_data = output_data + if computed_inputs is not None: + self.computed_inputs = computed_inputs + if phase is not None: + self.phase = phase + if started_at is not None: + self.started_at = started_at + if duration is not None: + self.duration = duration + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if notifications is not None: + self.notifications = notifications + if workflow_id is not None: + self.workflow_id = workflow_id + if state_change_details is not None: + self.state_change_details = state_change_details + + @property + def outputs(self): + """Gets the outputs of this AdminExecutionClosure. # noqa: E501 + + Output URI in the case of a successful execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 + + :return: The outputs of this AdminExecutionClosure. # noqa: E501 + :rtype: AdminLiteralMapBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminExecutionClosure. + + Output URI in the case of a successful execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 + + :param outputs: The outputs of this AdminExecutionClosure. # noqa: E501 + :type: AdminLiteralMapBlob + """ + + self._outputs = outputs + + @property + def error(self): + """Gets the error of this AdminExecutionClosure. # noqa: E501 + + Error information in the case of a failed execution. # noqa: E501 + + :return: The error of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this AdminExecutionClosure. + + Error information in the case of a failed execution. # noqa: E501 + + :param error: The error of this AdminExecutionClosure. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def abort_cause(self): + """Gets the abort_cause of this AdminExecutionClosure. # noqa: E501 + + In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 + + :return: The abort_cause of this AdminExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._abort_cause + + @abort_cause.setter + def abort_cause(self, abort_cause): + """Sets the abort_cause of this AdminExecutionClosure. + + In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 + + :param abort_cause: The abort_cause of this AdminExecutionClosure. # noqa: E501 + :type: str + """ + + self._abort_cause = abort_cause + + @property + def abort_metadata(self): + """Gets the abort_metadata of this AdminExecutionClosure. # noqa: E501 + + In the case of a user-specified abort, this will pass along the user and their supplied cause. # noqa: E501 + + :return: The abort_metadata of this AdminExecutionClosure. # noqa: E501 + :rtype: AdminAbortMetadata + """ + return self._abort_metadata + + @abort_metadata.setter + def abort_metadata(self, abort_metadata): + """Sets the abort_metadata of this AdminExecutionClosure. + + In the case of a user-specified abort, this will pass along the user and their supplied cause. # noqa: E501 + + :param abort_metadata: The abort_metadata of this AdminExecutionClosure. # noqa: E501 + :type: AdminAbortMetadata + """ + + self._abort_metadata = abort_metadata + + @property + def output_data(self): + """Gets the output_data of this AdminExecutionClosure. # noqa: E501 + + Raw output data produced by this execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 + + :return: The output_data of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._output_data + + @output_data.setter + def output_data(self, output_data): + """Sets the output_data of this AdminExecutionClosure. + + Raw output data produced by this execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 + + :param output_data: The output_data of this AdminExecutionClosure. # noqa: E501 + :type: CoreLiteralMap + """ + + self._output_data = output_data + + @property + def computed_inputs(self): + """Gets the computed_inputs of this AdminExecutionClosure. # noqa: E501 + + + :return: The computed_inputs of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._computed_inputs + + @computed_inputs.setter + def computed_inputs(self, computed_inputs): + """Sets the computed_inputs of this AdminExecutionClosure. + + + :param computed_inputs: The computed_inputs of this AdminExecutionClosure. # noqa: E501 + :type: CoreLiteralMap + """ + + self._computed_inputs = computed_inputs + + @property + def phase(self): + """Gets the phase of this AdminExecutionClosure. # noqa: E501 + + Most recent recorded phase for the execution. # noqa: E501 + + :return: The phase of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreWorkflowExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this AdminExecutionClosure. + + Most recent recorded phase for the execution. # noqa: E501 + + :param phase: The phase of this AdminExecutionClosure. # noqa: E501 + :type: CoreWorkflowExecutionPhase + """ + + self._phase = phase + + @property + def started_at(self): + """Gets the started_at of this AdminExecutionClosure. # noqa: E501 + + Reported time at which the execution began running. # noqa: E501 + + :return: The started_at of this AdminExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this AdminExecutionClosure. + + Reported time at which the execution began running. # noqa: E501 + + :param started_at: The started_at of this AdminExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._started_at = started_at + + @property + def duration(self): + """Gets the duration of this AdminExecutionClosure. # noqa: E501 + + The amount of time the execution spent running. # noqa: E501 + + :return: The duration of this AdminExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this AdminExecutionClosure. + + The amount of time the execution spent running. # noqa: E501 + + :param duration: The duration of this AdminExecutionClosure. # noqa: E501 + :type: str + """ + + self._duration = duration + + @property + def created_at(self): + """Gets the created_at of this AdminExecutionClosure. # noqa: E501 + + Reported time at which the execution was created. # noqa: E501 + + :return: The created_at of this AdminExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminExecutionClosure. + + Reported time at which the execution was created. # noqa: E501 + + :param created_at: The created_at of this AdminExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminExecutionClosure. # noqa: E501 + + Reported time at which the execution was last updated. # noqa: E501 + + :return: The updated_at of this AdminExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminExecutionClosure. + + Reported time at which the execution was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def notifications(self): + """Gets the notifications of this AdminExecutionClosure. # noqa: E501 + + The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. # noqa: E501 + + :return: The notifications of this AdminExecutionClosure. # noqa: E501 + :rtype: list[AdminNotification] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminExecutionClosure. + + The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. # noqa: E501 + + :param notifications: The notifications of this AdminExecutionClosure. # noqa: E501 + :type: list[AdminNotification] + """ + + self._notifications = notifications + + @property + def workflow_id(self): + """Gets the workflow_id of this AdminExecutionClosure. # noqa: E501 + + Identifies the workflow definition for this execution. # noqa: E501 + + :return: The workflow_id of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._workflow_id + + @workflow_id.setter + def workflow_id(self, workflow_id): + """Sets the workflow_id of this AdminExecutionClosure. + + Identifies the workflow definition for this execution. # noqa: E501 + + :param workflow_id: The workflow_id of this AdminExecutionClosure. # noqa: E501 + :type: CoreIdentifier + """ + + self._workflow_id = workflow_id + + @property + def state_change_details(self): + """Gets the state_change_details of this AdminExecutionClosure. # noqa: E501 + + + :return: The state_change_details of this AdminExecutionClosure. # noqa: E501 + :rtype: AdminExecutionStateChangeDetails + """ + return self._state_change_details + + @state_change_details.setter + def state_change_details(self, state_change_details): + """Sets the state_change_details of this AdminExecutionClosure. + + + :param state_change_details: The state_change_details of this AdminExecutionClosure. # noqa: E501 + :type: AdminExecutionStateChangeDetails + """ + + self._state_change_details = state_change_details + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_cluster_label.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_cluster_label.py new file mode 100644 index 0000000000..974d71ed67 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_cluster_label.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminExecutionClusterLabel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str' + } + + attribute_map = { + 'value': 'value' + } + + def __init__(self, value=None): # noqa: E501 + """AdminExecutionClusterLabel - a model defined in Swagger""" # noqa: E501 + + self._value = None + self.discriminator = None + + if value is not None: + self.value = value + + @property + def value(self): + """Gets the value of this AdminExecutionClusterLabel. # noqa: E501 + + + :return: The value of this AdminExecutionClusterLabel. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this AdminExecutionClusterLabel. + + + :param value: The value of this AdminExecutionClusterLabel. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionClusterLabel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionClusterLabel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py new file mode 100644 index 0000000000..5c5373a88d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 + + +class AdminExecutionCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'name': 'str', + 'spec': 'AdminExecutionSpec', + 'inputs': 'CoreLiteralMap' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'name': 'name', + 'spec': 'spec', + 'inputs': 'inputs' + } + + def __init__(self, project=None, domain=None, name=None, spec=None, inputs=None): # noqa: E501 + """AdminExecutionCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._name = None + self._spec = None + self._inputs = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + if spec is not None: + self.spec = spec + if inputs is not None: + self.inputs = inputs + + @property + def project(self): + """Gets the project of this AdminExecutionCreateRequest. # noqa: E501 + + + :return: The project of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminExecutionCreateRequest. + + + :param project: The project of this AdminExecutionCreateRequest. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminExecutionCreateRequest. # noqa: E501 + + + :return: The domain of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminExecutionCreateRequest. + + + :param domain: The domain of this AdminExecutionCreateRequest. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this AdminExecutionCreateRequest. # noqa: E501 + + + :return: The name of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminExecutionCreateRequest. + + + :param name: The name of this AdminExecutionCreateRequest. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def spec(self): + """Gets the spec of this AdminExecutionCreateRequest. # noqa: E501 + + + :return: The spec of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: AdminExecutionSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminExecutionCreateRequest. + + + :param spec: The spec of this AdminExecutionCreateRequest. # noqa: E501 + :type: AdminExecutionSpec + """ + + self._spec = spec + + @property + def inputs(self): + """Gets the inputs of this AdminExecutionCreateRequest. # noqa: E501 + + + :return: The inputs of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminExecutionCreateRequest. + + + :param inputs: The inputs of this AdminExecutionCreateRequest. # noqa: E501 + :type: CoreLiteralMap + """ + + self._inputs = inputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py new file mode 100644 index 0000000000..664459cde6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """AdminExecutionCreateResponse - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this AdminExecutionCreateResponse. # noqa: E501 + + + :return: The id of this AdminExecutionCreateResponse. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionCreateResponse. + + + :param id: The id of this AdminExecutionCreateResponse. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py new file mode 100644 index 0000000000..3821efb2f6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution import AdminExecution # noqa: F401,E501 + + +class AdminExecutionList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'executions': 'list[AdminExecution]', + 'token': 'str' + } + + attribute_map = { + 'executions': 'executions', + 'token': 'token' + } + + def __init__(self, executions=None, token=None): # noqa: E501 + """AdminExecutionList - a model defined in Swagger""" # noqa: E501 + + self._executions = None + self._token = None + self.discriminator = None + + if executions is not None: + self.executions = executions + if token is not None: + self.token = token + + @property + def executions(self): + """Gets the executions of this AdminExecutionList. # noqa: E501 + + + :return: The executions of this AdminExecutionList. # noqa: E501 + :rtype: list[AdminExecution] + """ + return self._executions + + @executions.setter + def executions(self, executions): + """Sets the executions of this AdminExecutionList. + + + :param executions: The executions of this AdminExecutionList. # noqa: E501 + :type: list[AdminExecution] + """ + + self._executions = executions + + @property + def token(self): + """Gets the token of this AdminExecutionList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminExecutionList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminExecutionList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminExecutionList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py new file mode 100644 index 0000000000..7deb9f109b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py @@ -0,0 +1,286 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_system_metadata import AdminSystemMetadata # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode # noqa: F401,E501 + + +class AdminExecutionMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mode': 'ExecutionMetadataExecutionMode', + 'principal': 'str', + 'nesting': 'int', + 'scheduled_at': 'datetime', + 'parent_node_execution': 'CoreNodeExecutionIdentifier', + 'reference_execution': 'CoreWorkflowExecutionIdentifier', + 'system_metadata': 'AdminSystemMetadata' + } + + attribute_map = { + 'mode': 'mode', + 'principal': 'principal', + 'nesting': 'nesting', + 'scheduled_at': 'scheduled_at', + 'parent_node_execution': 'parent_node_execution', + 'reference_execution': 'reference_execution', + 'system_metadata': 'system_metadata' + } + + def __init__(self, mode=None, principal=None, nesting=None, scheduled_at=None, parent_node_execution=None, reference_execution=None, system_metadata=None): # noqa: E501 + """AdminExecutionMetadata - a model defined in Swagger""" # noqa: E501 + + self._mode = None + self._principal = None + self._nesting = None + self._scheduled_at = None + self._parent_node_execution = None + self._reference_execution = None + self._system_metadata = None + self.discriminator = None + + if mode is not None: + self.mode = mode + if principal is not None: + self.principal = principal + if nesting is not None: + self.nesting = nesting + if scheduled_at is not None: + self.scheduled_at = scheduled_at + if parent_node_execution is not None: + self.parent_node_execution = parent_node_execution + if reference_execution is not None: + self.reference_execution = reference_execution + if system_metadata is not None: + self.system_metadata = system_metadata + + @property + def mode(self): + """Gets the mode of this AdminExecutionMetadata. # noqa: E501 + + + :return: The mode of this AdminExecutionMetadata. # noqa: E501 + :rtype: ExecutionMetadataExecutionMode + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this AdminExecutionMetadata. + + + :param mode: The mode of this AdminExecutionMetadata. # noqa: E501 + :type: ExecutionMetadataExecutionMode + """ + + self._mode = mode + + @property + def principal(self): + """Gets the principal of this AdminExecutionMetadata. # noqa: E501 + + Identifier of the entity that triggered this execution. For systems using back-end authentication any value set here will be discarded in favor of the authenticated user context. # noqa: E501 + + :return: The principal of this AdminExecutionMetadata. # noqa: E501 + :rtype: str + """ + return self._principal + + @principal.setter + def principal(self, principal): + """Sets the principal of this AdminExecutionMetadata. + + Identifier of the entity that triggered this execution. For systems using back-end authentication any value set here will be discarded in favor of the authenticated user context. # noqa: E501 + + :param principal: The principal of this AdminExecutionMetadata. # noqa: E501 + :type: str + """ + + self._principal = principal + + @property + def nesting(self): + """Gets the nesting of this AdminExecutionMetadata. # noqa: E501 + + Indicates the nestedness of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. # noqa: E501 + + :return: The nesting of this AdminExecutionMetadata. # noqa: E501 + :rtype: int + """ + return self._nesting + + @nesting.setter + def nesting(self, nesting): + """Sets the nesting of this AdminExecutionMetadata. + + Indicates the nestedness of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. # noqa: E501 + + :param nesting: The nesting of this AdminExecutionMetadata. # noqa: E501 + :type: int + """ + + self._nesting = nesting + + @property + def scheduled_at(self): + """Gets the scheduled_at of this AdminExecutionMetadata. # noqa: E501 + + For scheduled executions, the requested time for execution for this specific schedule invocation. # noqa: E501 + + :return: The scheduled_at of this AdminExecutionMetadata. # noqa: E501 + :rtype: datetime + """ + return self._scheduled_at + + @scheduled_at.setter + def scheduled_at(self, scheduled_at): + """Sets the scheduled_at of this AdminExecutionMetadata. + + For scheduled executions, the requested time for execution for this specific schedule invocation. # noqa: E501 + + :param scheduled_at: The scheduled_at of this AdminExecutionMetadata. # noqa: E501 + :type: datetime + """ + + self._scheduled_at = scheduled_at + + @property + def parent_node_execution(self): + """Gets the parent_node_execution of this AdminExecutionMetadata. # noqa: E501 + + + :return: The parent_node_execution of this AdminExecutionMetadata. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._parent_node_execution + + @parent_node_execution.setter + def parent_node_execution(self, parent_node_execution): + """Sets the parent_node_execution of this AdminExecutionMetadata. + + + :param parent_node_execution: The parent_node_execution of this AdminExecutionMetadata. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._parent_node_execution = parent_node_execution + + @property + def reference_execution(self): + """Gets the reference_execution of this AdminExecutionMetadata. # noqa: E501 + + Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. # noqa: E501 + + :return: The reference_execution of this AdminExecutionMetadata. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._reference_execution + + @reference_execution.setter + def reference_execution(self, reference_execution): + """Sets the reference_execution of this AdminExecutionMetadata. + + Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. # noqa: E501 + + :param reference_execution: The reference_execution of this AdminExecutionMetadata. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._reference_execution = reference_execution + + @property + def system_metadata(self): + """Gets the system_metadata of this AdminExecutionMetadata. # noqa: E501 + + Optional, platform-specific metadata about the execution. In this the future this may be gated behind an ACL or some sort of authorization. # noqa: E501 + + :return: The system_metadata of this AdminExecutionMetadata. # noqa: E501 + :rtype: AdminSystemMetadata + """ + return self._system_metadata + + @system_metadata.setter + def system_metadata(self, system_metadata): + """Sets the system_metadata of this AdminExecutionMetadata. + + Optional, platform-specific metadata about the execution. In this the future this may be gated behind an ACL or some sort of authorization. # noqa: E501 + + :param system_metadata: The system_metadata of this AdminExecutionMetadata. # noqa: E501 + :type: AdminSystemMetadata + """ + + self._system_metadata = system_metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_queue_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_queue_attributes.py new file mode 100644 index 0000000000..c8ac3d9d23 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_queue_attributes.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminExecutionQueueAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tags': 'list[str]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): # noqa: E501 + """AdminExecutionQueueAttributes - a model defined in Swagger""" # noqa: E501 + + self._tags = None + self.discriminator = None + + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this AdminExecutionQueueAttributes. # noqa: E501 + + Tags used for assigning execution queues for tasks defined within this project. # noqa: E501 + + :return: The tags of this AdminExecutionQueueAttributes. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this AdminExecutionQueueAttributes. + + Tags used for assigning execution queues for tasks defined within this project. # noqa: E501 + + :param tags: The tags of this AdminExecutionQueueAttributes. # noqa: E501 + :type: list[str] + """ + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionQueueAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionQueueAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_recover_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_recover_request.py new file mode 100644 index 0000000000..acd856ada5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_recover_request.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionRecoverRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'name': 'str', + 'metadata': 'AdminExecutionMetadata' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'metadata': 'metadata' + } + + def __init__(self, id=None, name=None, metadata=None): # noqa: E501 + """AdminExecutionRecoverRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._metadata = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if metadata is not None: + self.metadata = metadata + + @property + def id(self): + """Gets the id of this AdminExecutionRecoverRequest. # noqa: E501 + + Identifier of the workflow execution to recover. # noqa: E501 + + :return: The id of this AdminExecutionRecoverRequest. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionRecoverRequest. + + Identifier of the workflow execution to recover. # noqa: E501 + + :param id: The id of this AdminExecutionRecoverRequest. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AdminExecutionRecoverRequest. # noqa: E501 + + + :return: The name of this AdminExecutionRecoverRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminExecutionRecoverRequest. + + + :param name: The name of this AdminExecutionRecoverRequest. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def metadata(self): + """Gets the metadata of this AdminExecutionRecoverRequest. # noqa: E501 + + Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. # noqa: E501 + + :return: The metadata of this AdminExecutionRecoverRequest. # noqa: E501 + :rtype: AdminExecutionMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this AdminExecutionRecoverRequest. + + Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. # noqa: E501 + + :param metadata: The metadata of this AdminExecutionRecoverRequest. # noqa: E501 + :type: AdminExecutionMetadata + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionRecoverRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionRecoverRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py new file mode 100644 index 0000000000..699c21288b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionRelaunchRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'name': 'str', + 'overwrite_cache': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'overwrite_cache': 'overwrite_cache' + } + + def __init__(self, id=None, name=None, overwrite_cache=None): # noqa: E501 + """AdminExecutionRelaunchRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._overwrite_cache = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if overwrite_cache is not None: + self.overwrite_cache = overwrite_cache + + @property + def id(self): + """Gets the id of this AdminExecutionRelaunchRequest. # noqa: E501 + + + :return: The id of this AdminExecutionRelaunchRequest. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionRelaunchRequest. + + + :param id: The id of this AdminExecutionRelaunchRequest. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AdminExecutionRelaunchRequest. # noqa: E501 + + + :return: The name of this AdminExecutionRelaunchRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminExecutionRelaunchRequest. + + + :param name: The name of this AdminExecutionRelaunchRequest. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def overwrite_cache(self): + """Gets the overwrite_cache of this AdminExecutionRelaunchRequest. # noqa: E501 + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :return: The overwrite_cache of this AdminExecutionRelaunchRequest. # noqa: E501 + :rtype: bool + """ + return self._overwrite_cache + + @overwrite_cache.setter + def overwrite_cache(self, overwrite_cache): + """Sets the overwrite_cache of this AdminExecutionRelaunchRequest. + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :param overwrite_cache: The overwrite_cache of this AdminExecutionRelaunchRequest. # noqa: E501 + :type: bool + """ + + self._overwrite_cache = overwrite_cache + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionRelaunchRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionRelaunchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py new file mode 100644 index 0000000000..5f1e5407a5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py @@ -0,0 +1,570 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 +from flyteadmin.models.admin_auth_role import AdminAuthRole # noqa: F401,E501 +from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment # noqa: F401,E501 +from flyteadmin.models.admin_envs import AdminEnvs # noqa: F401,E501 +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 +from flyteadmin.models.admin_notification_list import AdminNotificationList # noqa: F401,E501 +from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 +from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 + + +class AdminExecutionSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'launch_plan': 'CoreIdentifier', + 'inputs': 'CoreLiteralMap', + 'metadata': 'AdminExecutionMetadata', + 'notifications': 'AdminNotificationList', + 'disable_all': 'bool', + 'labels': 'AdminLabels', + 'annotations': 'AdminAnnotations', + 'security_context': 'CoreSecurityContext', + 'auth_role': 'AdminAuthRole', + 'quality_of_service': 'CoreQualityOfService', + 'max_parallelism': 'int', + 'raw_output_data_config': 'AdminRawOutputDataConfig', + 'cluster_assignment': 'AdminClusterAssignment', + 'interruptible': 'bool', + 'overwrite_cache': 'bool', + 'envs': 'AdminEnvs', + 'tags': 'list[str]' + } + + attribute_map = { + 'launch_plan': 'launch_plan', + 'inputs': 'inputs', + 'metadata': 'metadata', + 'notifications': 'notifications', + 'disable_all': 'disable_all', + 'labels': 'labels', + 'annotations': 'annotations', + 'security_context': 'security_context', + 'auth_role': 'auth_role', + 'quality_of_service': 'quality_of_service', + 'max_parallelism': 'max_parallelism', + 'raw_output_data_config': 'raw_output_data_config', + 'cluster_assignment': 'cluster_assignment', + 'interruptible': 'interruptible', + 'overwrite_cache': 'overwrite_cache', + 'envs': 'envs', + 'tags': 'tags' + } + + def __init__(self, launch_plan=None, inputs=None, metadata=None, notifications=None, disable_all=None, labels=None, annotations=None, security_context=None, auth_role=None, quality_of_service=None, max_parallelism=None, raw_output_data_config=None, cluster_assignment=None, interruptible=None, overwrite_cache=None, envs=None, tags=None): # noqa: E501 + """AdminExecutionSpec - a model defined in Swagger""" # noqa: E501 + + self._launch_plan = None + self._inputs = None + self._metadata = None + self._notifications = None + self._disable_all = None + self._labels = None + self._annotations = None + self._security_context = None + self._auth_role = None + self._quality_of_service = None + self._max_parallelism = None + self._raw_output_data_config = None + self._cluster_assignment = None + self._interruptible = None + self._overwrite_cache = None + self._envs = None + self._tags = None + self.discriminator = None + + if launch_plan is not None: + self.launch_plan = launch_plan + if inputs is not None: + self.inputs = inputs + if metadata is not None: + self.metadata = metadata + if notifications is not None: + self.notifications = notifications + if disable_all is not None: + self.disable_all = disable_all + if labels is not None: + self.labels = labels + if annotations is not None: + self.annotations = annotations + if security_context is not None: + self.security_context = security_context + if auth_role is not None: + self.auth_role = auth_role + if quality_of_service is not None: + self.quality_of_service = quality_of_service + if max_parallelism is not None: + self.max_parallelism = max_parallelism + if raw_output_data_config is not None: + self.raw_output_data_config = raw_output_data_config + if cluster_assignment is not None: + self.cluster_assignment = cluster_assignment + if interruptible is not None: + self.interruptible = interruptible + if overwrite_cache is not None: + self.overwrite_cache = overwrite_cache + if envs is not None: + self.envs = envs + if tags is not None: + self.tags = tags + + @property + def launch_plan(self): + """Gets the launch_plan of this AdminExecutionSpec. # noqa: E501 + + + :return: The launch_plan of this AdminExecutionSpec. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._launch_plan + + @launch_plan.setter + def launch_plan(self, launch_plan): + """Sets the launch_plan of this AdminExecutionSpec. + + + :param launch_plan: The launch_plan of this AdminExecutionSpec. # noqa: E501 + :type: CoreIdentifier + """ + + self._launch_plan = launch_plan + + @property + def inputs(self): + """Gets the inputs of this AdminExecutionSpec. # noqa: E501 + + + :return: The inputs of this AdminExecutionSpec. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminExecutionSpec. + + + :param inputs: The inputs of this AdminExecutionSpec. # noqa: E501 + :type: CoreLiteralMap + """ + + self._inputs = inputs + + @property + def metadata(self): + """Gets the metadata of this AdminExecutionSpec. # noqa: E501 + + + :return: The metadata of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminExecutionMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this AdminExecutionSpec. + + + :param metadata: The metadata of this AdminExecutionSpec. # noqa: E501 + :type: AdminExecutionMetadata + """ + + self._metadata = metadata + + @property + def notifications(self): + """Gets the notifications of this AdminExecutionSpec. # noqa: E501 + + List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. # noqa: E501 + + :return: The notifications of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminNotificationList + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminExecutionSpec. + + List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. # noqa: E501 + + :param notifications: The notifications of this AdminExecutionSpec. # noqa: E501 + :type: AdminNotificationList + """ + + self._notifications = notifications + + @property + def disable_all(self): + """Gets the disable_all of this AdminExecutionSpec. # noqa: E501 + + This should be set to true if all notifications are intended to be disabled for this execution. # noqa: E501 + + :return: The disable_all of this AdminExecutionSpec. # noqa: E501 + :rtype: bool + """ + return self._disable_all + + @disable_all.setter + def disable_all(self, disable_all): + """Sets the disable_all of this AdminExecutionSpec. + + This should be set to true if all notifications are intended to be disabled for this execution. # noqa: E501 + + :param disable_all: The disable_all of this AdminExecutionSpec. # noqa: E501 + :type: bool + """ + + self._disable_all = disable_all + + @property + def labels(self): + """Gets the labels of this AdminExecutionSpec. # noqa: E501 + + Labels to apply to the execution resource. # noqa: E501 + + :return: The labels of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this AdminExecutionSpec. + + Labels to apply to the execution resource. # noqa: E501 + + :param labels: The labels of this AdminExecutionSpec. # noqa: E501 + :type: AdminLabels + """ + + self._labels = labels + + @property + def annotations(self): + """Gets the annotations of this AdminExecutionSpec. # noqa: E501 + + Annotations to apply to the execution resource. # noqa: E501 + + :return: The annotations of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminAnnotations + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this AdminExecutionSpec. + + Annotations to apply to the execution resource. # noqa: E501 + + :param annotations: The annotations of this AdminExecutionSpec. # noqa: E501 + :type: AdminAnnotations + """ + + self._annotations = annotations + + @property + def security_context(self): + """Gets the security_context of this AdminExecutionSpec. # noqa: E501 + + Optional: security context override to apply this execution. # noqa: E501 + + :return: The security_context of this AdminExecutionSpec. # noqa: E501 + :rtype: CoreSecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """Sets the security_context of this AdminExecutionSpec. + + Optional: security context override to apply this execution. # noqa: E501 + + :param security_context: The security_context of this AdminExecutionSpec. # noqa: E501 + :type: CoreSecurityContext + """ + + self._security_context = security_context + + @property + def auth_role(self): + """Gets the auth_role of this AdminExecutionSpec. # noqa: E501 + + Optional: auth override to apply this execution. # noqa: E501 + + :return: The auth_role of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminAuthRole + """ + return self._auth_role + + @auth_role.setter + def auth_role(self, auth_role): + """Sets the auth_role of this AdminExecutionSpec. + + Optional: auth override to apply this execution. # noqa: E501 + + :param auth_role: The auth_role of this AdminExecutionSpec. # noqa: E501 + :type: AdminAuthRole + """ + + self._auth_role = auth_role + + @property + def quality_of_service(self): + """Gets the quality_of_service of this AdminExecutionSpec. # noqa: E501 + + Indicates the runtime priority of the execution. # noqa: E501 + + :return: The quality_of_service of this AdminExecutionSpec. # noqa: E501 + :rtype: CoreQualityOfService + """ + return self._quality_of_service + + @quality_of_service.setter + def quality_of_service(self, quality_of_service): + """Sets the quality_of_service of this AdminExecutionSpec. + + Indicates the runtime priority of the execution. # noqa: E501 + + :param quality_of_service: The quality_of_service of this AdminExecutionSpec. # noqa: E501 + :type: CoreQualityOfService + """ + + self._quality_of_service = quality_of_service + + @property + def max_parallelism(self): + """Gets the max_parallelism of this AdminExecutionSpec. # noqa: E501 + + Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 + + :return: The max_parallelism of this AdminExecutionSpec. # noqa: E501 + :rtype: int + """ + return self._max_parallelism + + @max_parallelism.setter + def max_parallelism(self, max_parallelism): + """Sets the max_parallelism of this AdminExecutionSpec. + + Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 + + :param max_parallelism: The max_parallelism of this AdminExecutionSpec. # noqa: E501 + :type: int + """ + + self._max_parallelism = max_parallelism + + @property + def raw_output_data_config(self): + """Gets the raw_output_data_config of this AdminExecutionSpec. # noqa: E501 + + + :return: The raw_output_data_config of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminRawOutputDataConfig + """ + return self._raw_output_data_config + + @raw_output_data_config.setter + def raw_output_data_config(self, raw_output_data_config): + """Sets the raw_output_data_config of this AdminExecutionSpec. + + + :param raw_output_data_config: The raw_output_data_config of this AdminExecutionSpec. # noqa: E501 + :type: AdminRawOutputDataConfig + """ + + self._raw_output_data_config = raw_output_data_config + + @property + def cluster_assignment(self): + """Gets the cluster_assignment of this AdminExecutionSpec. # noqa: E501 + + Controls how to select an available cluster on which this execution should run. # noqa: E501 + + :return: The cluster_assignment of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminClusterAssignment + """ + return self._cluster_assignment + + @cluster_assignment.setter + def cluster_assignment(self, cluster_assignment): + """Sets the cluster_assignment of this AdminExecutionSpec. + + Controls how to select an available cluster on which this execution should run. # noqa: E501 + + :param cluster_assignment: The cluster_assignment of this AdminExecutionSpec. # noqa: E501 + :type: AdminClusterAssignment + """ + + self._cluster_assignment = cluster_assignment + + @property + def interruptible(self): + """Gets the interruptible of this AdminExecutionSpec. # noqa: E501 + + Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 + + :return: The interruptible of this AdminExecutionSpec. # noqa: E501 + :rtype: bool + """ + return self._interruptible + + @interruptible.setter + def interruptible(self, interruptible): + """Sets the interruptible of this AdminExecutionSpec. + + Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 + + :param interruptible: The interruptible of this AdminExecutionSpec. # noqa: E501 + :type: bool + """ + + self._interruptible = interruptible + + @property + def overwrite_cache(self): + """Gets the overwrite_cache of this AdminExecutionSpec. # noqa: E501 + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :return: The overwrite_cache of this AdminExecutionSpec. # noqa: E501 + :rtype: bool + """ + return self._overwrite_cache + + @overwrite_cache.setter + def overwrite_cache(self, overwrite_cache): + """Sets the overwrite_cache of this AdminExecutionSpec. + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :param overwrite_cache: The overwrite_cache of this AdminExecutionSpec. # noqa: E501 + :type: bool + """ + + self._overwrite_cache = overwrite_cache + + @property + def envs(self): + """Gets the envs of this AdminExecutionSpec. # noqa: E501 + + Environment variables to be set for the execution. # noqa: E501 + + :return: The envs of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminEnvs + """ + return self._envs + + @envs.setter + def envs(self, envs): + """Sets the envs of this AdminExecutionSpec. + + Environment variables to be set for the execution. # noqa: E501 + + :param envs: The envs of this AdminExecutionSpec. # noqa: E501 + :type: AdminEnvs + """ + + self._envs = envs + + @property + def tags(self): + """Gets the tags of this AdminExecutionSpec. # noqa: E501 + + Tags to be set for the execution. # noqa: E501 + + :return: The tags of this AdminExecutionSpec. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this AdminExecutionSpec. + + Tags to be set for the execution. # noqa: E501 + + :param tags: The tags of this AdminExecutionSpec. # noqa: E501 + :type: list[str] + """ + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state.py new file mode 100644 index 0000000000..7f3d281b86 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminExecutionState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + ACTIVE = "EXECUTION_ACTIVE" + ARCHIVED = "EXECUTION_ARCHIVED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminExecutionState - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state_change_details.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state_change_details.py new file mode 100644 index 0000000000..a82156027e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state_change_details.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution_state import AdminExecutionState # noqa: F401,E501 + + +class AdminExecutionStateChangeDetails(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'state': 'AdminExecutionState', + 'occurred_at': 'datetime', + 'principal': 'str' + } + + attribute_map = { + 'state': 'state', + 'occurred_at': 'occurred_at', + 'principal': 'principal' + } + + def __init__(self, state=None, occurred_at=None, principal=None): # noqa: E501 + """AdminExecutionStateChangeDetails - a model defined in Swagger""" # noqa: E501 + + self._state = None + self._occurred_at = None + self._principal = None + self.discriminator = None + + if state is not None: + self.state = state + if occurred_at is not None: + self.occurred_at = occurred_at + if principal is not None: + self.principal = principal + + @property + def state(self): + """Gets the state of this AdminExecutionStateChangeDetails. # noqa: E501 + + The state of the execution is used to control its visibility in the UI/CLI. # noqa: E501 + + :return: The state of this AdminExecutionStateChangeDetails. # noqa: E501 + :rtype: AdminExecutionState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminExecutionStateChangeDetails. + + The state of the execution is used to control its visibility in the UI/CLI. # noqa: E501 + + :param state: The state of this AdminExecutionStateChangeDetails. # noqa: E501 + :type: AdminExecutionState + """ + + self._state = state + + @property + def occurred_at(self): + """Gets the occurred_at of this AdminExecutionStateChangeDetails. # noqa: E501 + + This timestamp represents when the state changed. # noqa: E501 + + :return: The occurred_at of this AdminExecutionStateChangeDetails. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this AdminExecutionStateChangeDetails. + + This timestamp represents when the state changed. # noqa: E501 + + :param occurred_at: The occurred_at of this AdminExecutionStateChangeDetails. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def principal(self): + """Gets the principal of this AdminExecutionStateChangeDetails. # noqa: E501 + + + :return: The principal of this AdminExecutionStateChangeDetails. # noqa: E501 + :rtype: str + """ + return self._principal + + @principal.setter + def principal(self, principal): + """Sets the principal of this AdminExecutionStateChangeDetails. + + + :param principal: The principal of this AdminExecutionStateChangeDetails. # noqa: E501 + :type: str + """ + + self._principal = principal + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionStateChangeDetails, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionStateChangeDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py new file mode 100644 index 0000000000..a2fb097d43 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionTerminateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'cause': 'str' + } + + attribute_map = { + 'id': 'id', + 'cause': 'cause' + } + + def __init__(self, id=None, cause=None): # noqa: E501 + """AdminExecutionTerminateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._cause = None + self.discriminator = None + + if id is not None: + self.id = id + if cause is not None: + self.cause = cause + + @property + def id(self): + """Gets the id of this AdminExecutionTerminateRequest. # noqa: E501 + + Uniquely identifies the individual workflow execution to be terminated. # noqa: E501 + + :return: The id of this AdminExecutionTerminateRequest. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionTerminateRequest. + + Uniquely identifies the individual workflow execution to be terminated. # noqa: E501 + + :param id: The id of this AdminExecutionTerminateRequest. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def cause(self): + """Gets the cause of this AdminExecutionTerminateRequest. # noqa: E501 + + Optional reason for aborting. # noqa: E501 + + :return: The cause of this AdminExecutionTerminateRequest. # noqa: E501 + :rtype: str + """ + return self._cause + + @cause.setter + def cause(self, cause): + """Sets the cause of this AdminExecutionTerminateRequest. + + Optional reason for aborting. # noqa: E501 + + :param cause: The cause of this AdminExecutionTerminateRequest. # noqa: E501 + :type: str + """ + + self._cause = cause + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionTerminateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionTerminateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py new file mode 100644 index 0000000000..b7e68c83d4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminExecutionTerminateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminExecutionTerminateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionTerminateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionTerminateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_request.py new file mode 100644 index 0000000000..5bbddc57b0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_request.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution_state import AdminExecutionState # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionUpdateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'state': 'AdminExecutionState' + } + + attribute_map = { + 'id': 'id', + 'state': 'state' + } + + def __init__(self, id=None, state=None): # noqa: E501 + """AdminExecutionUpdateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._state = None + self.discriminator = None + + if id is not None: + self.id = id + if state is not None: + self.state = state + + @property + def id(self): + """Gets the id of this AdminExecutionUpdateRequest. # noqa: E501 + + + :return: The id of this AdminExecutionUpdateRequest. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionUpdateRequest. + + + :param id: The id of this AdminExecutionUpdateRequest. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def state(self): + """Gets the state of this AdminExecutionUpdateRequest. # noqa: E501 + + + :return: The state of this AdminExecutionUpdateRequest. # noqa: E501 + :rtype: AdminExecutionState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminExecutionUpdateRequest. + + + :param state: The state of this AdminExecutionUpdateRequest. # noqa: E501 + :type: AdminExecutionState + """ + + self._state = state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionUpdateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_response.py new file mode 100644 index 0000000000..9e9f90ee7e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminExecutionUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminExecutionUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py new file mode 100644 index 0000000000..5eacbeebca --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit # noqa: F401,E501 + + +class AdminFixedRate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'int', + 'unit': 'AdminFixedRateUnit' + } + + attribute_map = { + 'value': 'value', + 'unit': 'unit' + } + + def __init__(self, value=None, unit=None): # noqa: E501 + """AdminFixedRate - a model defined in Swagger""" # noqa: E501 + + self._value = None + self._unit = None + self.discriminator = None + + if value is not None: + self.value = value + if unit is not None: + self.unit = unit + + @property + def value(self): + """Gets the value of this AdminFixedRate. # noqa: E501 + + + :return: The value of this AdminFixedRate. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this AdminFixedRate. + + + :param value: The value of this AdminFixedRate. # noqa: E501 + :type: int + """ + + self._value = value + + @property + def unit(self): + """Gets the unit of this AdminFixedRate. # noqa: E501 + + + :return: The unit of this AdminFixedRate. # noqa: E501 + :rtype: AdminFixedRateUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this AdminFixedRate. + + + :param unit: The unit of this AdminFixedRate. # noqa: E501 + :type: AdminFixedRateUnit + """ + + self._unit = unit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminFixedRate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminFixedRate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py new file mode 100644 index 0000000000..2c65b556bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminFixedRateUnit(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + MINUTE = "MINUTE" + HOUR = "HOUR" + DAY = "DAY" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminFixedRateUnit - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminFixedRateUnit, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminFixedRateUnit): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_flyte_ur_ls.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_flyte_ur_ls.py new file mode 100644 index 0000000000..f99e18dc4c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_flyte_ur_ls.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminFlyteURLs(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inputs': 'str', + 'outputs': 'str', + 'deck': 'str' + } + + attribute_map = { + 'inputs': 'inputs', + 'outputs': 'outputs', + 'deck': 'deck' + } + + def __init__(self, inputs=None, outputs=None, deck=None): # noqa: E501 + """AdminFlyteURLs - a model defined in Swagger""" # noqa: E501 + + self._inputs = None + self._outputs = None + self._deck = None + self.discriminator = None + + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + if deck is not None: + self.deck = deck + + @property + def inputs(self): + """Gets the inputs of this AdminFlyteURLs. # noqa: E501 + + + :return: The inputs of this AdminFlyteURLs. # noqa: E501 + :rtype: str + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminFlyteURLs. + + + :param inputs: The inputs of this AdminFlyteURLs. # noqa: E501 + :type: str + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this AdminFlyteURLs. # noqa: E501 + + + :return: The outputs of this AdminFlyteURLs. # noqa: E501 + :rtype: str + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminFlyteURLs. + + + :param outputs: The outputs of this AdminFlyteURLs. # noqa: E501 + :type: str + """ + + self._outputs = outputs + + @property + def deck(self): + """Gets the deck of this AdminFlyteURLs. # noqa: E501 + + + :return: The deck of this AdminFlyteURLs. # noqa: E501 + :rtype: str + """ + return self._deck + + @deck.setter + def deck(self, deck): + """Sets the deck of this AdminFlyteURLs. + + + :param deck: The deck of this AdminFlyteURLs. # noqa: E501 + :type: str + """ + + self._deck = deck + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminFlyteURLs, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminFlyteURLs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_get_version_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_get_version_response.py new file mode 100644 index 0000000000..622a522562 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_get_version_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_version import AdminVersion # noqa: F401,E501 + + +class AdminGetVersionResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'control_plane_version': 'AdminVersion' + } + + attribute_map = { + 'control_plane_version': 'control_plane_version' + } + + def __init__(self, control_plane_version=None): # noqa: E501 + """AdminGetVersionResponse - a model defined in Swagger""" # noqa: E501 + + self._control_plane_version = None + self.discriminator = None + + if control_plane_version is not None: + self.control_plane_version = control_plane_version + + @property + def control_plane_version(self): + """Gets the control_plane_version of this AdminGetVersionResponse. # noqa: E501 + + + :return: The control_plane_version of this AdminGetVersionResponse. # noqa: E501 + :rtype: AdminVersion + """ + return self._control_plane_version + + @control_plane_version.setter + def control_plane_version(self, control_plane_version): + """Sets the control_plane_version of this AdminGetVersionResponse. + + + :param control_plane_version: The control_plane_version of this AdminGetVersionResponse. # noqa: E501 + :type: AdminVersion + """ + + self._control_plane_version = control_plane_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminGetVersionResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminGetVersionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py new file mode 100644 index 0000000000..1391051e4b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLabels(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'dict(str, str)' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """AdminLabels - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this AdminLabels. # noqa: E501 + + Map of custom labels to be applied to the execution resource. # noqa: E501 + + :return: The values of this AdminLabels. # noqa: E501 + :rtype: dict(str, str) + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AdminLabels. + + Map of custom labels to be applied to the execution resource. # noqa: E501 + + :param values: The values of this AdminLabels. # noqa: E501 + :type: dict(str, str) + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLabels, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLabels): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py new file mode 100644 index 0000000000..84a6eef482 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure # noqa: F401,E501 +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminLaunchPlan(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminLaunchPlanSpec', + 'closure': 'AdminLaunchPlanClosure' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec', + 'closure': 'closure' + } + + def __init__(self, id=None, spec=None, closure=None): # noqa: E501 + """AdminLaunchPlan - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self._closure = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + if closure is not None: + self.closure = closure + + @property + def id(self): + """Gets the id of this AdminLaunchPlan. # noqa: E501 + + Uniquely identifies a launch plan entity. # noqa: E501 + + :return: The id of this AdminLaunchPlan. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminLaunchPlan. + + Uniquely identifies a launch plan entity. # noqa: E501 + + :param id: The id of this AdminLaunchPlan. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminLaunchPlan. # noqa: E501 + + User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 + + :return: The spec of this AdminLaunchPlan. # noqa: E501 + :rtype: AdminLaunchPlanSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminLaunchPlan. + + User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 + + :param spec: The spec of this AdminLaunchPlan. # noqa: E501 + :type: AdminLaunchPlanSpec + """ + + self._spec = spec + + @property + def closure(self): + """Gets the closure of this AdminLaunchPlan. # noqa: E501 + + Values computed by the flyte platform after launch plan registration. # noqa: E501 + + :return: The closure of this AdminLaunchPlan. # noqa: E501 + :rtype: AdminLaunchPlanClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminLaunchPlan. + + Values computed by the flyte platform after launch plan registration. # noqa: E501 + + :param closure: The closure of this AdminLaunchPlan. # noqa: E501 + :type: AdminLaunchPlanClosure + """ + + self._closure = closure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlan, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlan): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py new file mode 100644 index 0000000000..2464c1fa42 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: F401,E501 +from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: F401,E501 +from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: F401,E501 + + +class AdminLaunchPlanClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'state': 'AdminLaunchPlanState', + 'expected_inputs': 'CoreParameterMap', + 'expected_outputs': 'CoreVariableMap', + 'created_at': 'datetime', + 'updated_at': 'datetime' + } + + attribute_map = { + 'state': 'state', + 'expected_inputs': 'expected_inputs', + 'expected_outputs': 'expected_outputs', + 'created_at': 'created_at', + 'updated_at': 'updated_at' + } + + def __init__(self, state=None, expected_inputs=None, expected_outputs=None, created_at=None, updated_at=None): # noqa: E501 + """AdminLaunchPlanClosure - a model defined in Swagger""" # noqa: E501 + + self._state = None + self._expected_inputs = None + self._expected_outputs = None + self._created_at = None + self._updated_at = None + self.discriminator = None + + if state is not None: + self.state = state + if expected_inputs is not None: + self.expected_inputs = expected_inputs + if expected_outputs is not None: + self.expected_outputs = expected_outputs + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + + @property + def state(self): + """Gets the state of this AdminLaunchPlanClosure. # noqa: E501 + + Indicate the Launch plan state. # noqa: E501 + + :return: The state of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: AdminLaunchPlanState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminLaunchPlanClosure. + + Indicate the Launch plan state. # noqa: E501 + + :param state: The state of this AdminLaunchPlanClosure. # noqa: E501 + :type: AdminLaunchPlanState + """ + + self._state = state + + @property + def expected_inputs(self): + """Gets the expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 + + + :return: The expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: CoreParameterMap + """ + return self._expected_inputs + + @expected_inputs.setter + def expected_inputs(self, expected_inputs): + """Sets the expected_inputs of this AdminLaunchPlanClosure. + + + :param expected_inputs: The expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 + :type: CoreParameterMap + """ + + self._expected_inputs = expected_inputs + + @property + def expected_outputs(self): + """Gets the expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 + + + :return: The expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: CoreVariableMap + """ + return self._expected_outputs + + @expected_outputs.setter + def expected_outputs(self, expected_outputs): + """Sets the expected_outputs of this AdminLaunchPlanClosure. + + + :param expected_outputs: The expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 + :type: CoreVariableMap + """ + + self._expected_outputs = expected_outputs + + @property + def created_at(self): + """Gets the created_at of this AdminLaunchPlanClosure. # noqa: E501 + + Time at which the launch plan was created. # noqa: E501 + + :return: The created_at of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminLaunchPlanClosure. + + Time at which the launch plan was created. # noqa: E501 + + :param created_at: The created_at of this AdminLaunchPlanClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminLaunchPlanClosure. # noqa: E501 + + Time at which the launch plan was last updated. # noqa: E501 + + :return: The updated_at of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminLaunchPlanClosure. + + Time at which the launch plan was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminLaunchPlanClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py new file mode 100644 index 0000000000..888fa5b2fd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminLaunchPlanCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminLaunchPlanSpec' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec' + } + + def __init__(self, id=None, spec=None): # noqa: E501 + """AdminLaunchPlanCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + + @property + def id(self): + """Gets the id of this AdminLaunchPlanCreateRequest. # noqa: E501 + + Uniquely identifies a launch plan entity. # noqa: E501 + + :return: The id of this AdminLaunchPlanCreateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminLaunchPlanCreateRequest. + + Uniquely identifies a launch plan entity. # noqa: E501 + + :param id: The id of this AdminLaunchPlanCreateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminLaunchPlanCreateRequest. # noqa: E501 + + User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 + + :return: The spec of this AdminLaunchPlanCreateRequest. # noqa: E501 + :rtype: AdminLaunchPlanSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminLaunchPlanCreateRequest. + + User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 + + :param spec: The spec of this AdminLaunchPlanCreateRequest. # noqa: E501 + :type: AdminLaunchPlanSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py new file mode 100644 index 0000000000..8bc8d4a761 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLaunchPlanCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminLaunchPlanCreateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py new file mode 100644 index 0000000000..9c337f347e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan # noqa: F401,E501 + + +class AdminLaunchPlanList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'launch_plans': 'list[AdminLaunchPlan]', + 'token': 'str' + } + + attribute_map = { + 'launch_plans': 'launch_plans', + 'token': 'token' + } + + def __init__(self, launch_plans=None, token=None): # noqa: E501 + """AdminLaunchPlanList - a model defined in Swagger""" # noqa: E501 + + self._launch_plans = None + self._token = None + self.discriminator = None + + if launch_plans is not None: + self.launch_plans = launch_plans + if token is not None: + self.token = token + + @property + def launch_plans(self): + """Gets the launch_plans of this AdminLaunchPlanList. # noqa: E501 + + + :return: The launch_plans of this AdminLaunchPlanList. # noqa: E501 + :rtype: list[AdminLaunchPlan] + """ + return self._launch_plans + + @launch_plans.setter + def launch_plans(self, launch_plans): + """Sets the launch_plans of this AdminLaunchPlanList. + + + :param launch_plans: The launch_plans of this AdminLaunchPlanList. # noqa: E501 + :type: list[AdminLaunchPlan] + """ + + self._launch_plans = launch_plans + + @property + def token(self): + """Gets the token of this AdminLaunchPlanList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminLaunchPlanList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminLaunchPlanList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminLaunchPlanList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py new file mode 100644 index 0000000000..d4ebda5dc7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 +from flyteadmin.models.admin_schedule import AdminSchedule # noqa: F401,E501 + + +class AdminLaunchPlanMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'schedule': 'AdminSchedule', + 'notifications': 'list[AdminNotification]' + } + + attribute_map = { + 'schedule': 'schedule', + 'notifications': 'notifications' + } + + def __init__(self, schedule=None, notifications=None): # noqa: E501 + """AdminLaunchPlanMetadata - a model defined in Swagger""" # noqa: E501 + + self._schedule = None + self._notifications = None + self.discriminator = None + + if schedule is not None: + self.schedule = schedule + if notifications is not None: + self.notifications = notifications + + @property + def schedule(self): + """Gets the schedule of this AdminLaunchPlanMetadata. # noqa: E501 + + + :return: The schedule of this AdminLaunchPlanMetadata. # noqa: E501 + :rtype: AdminSchedule + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this AdminLaunchPlanMetadata. + + + :param schedule: The schedule of this AdminLaunchPlanMetadata. # noqa: E501 + :type: AdminSchedule + """ + + self._schedule = schedule + + @property + def notifications(self): + """Gets the notifications of this AdminLaunchPlanMetadata. # noqa: E501 + + + :return: The notifications of this AdminLaunchPlanMetadata. # noqa: E501 + :rtype: list[AdminNotification] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminLaunchPlanMetadata. + + + :param notifications: The notifications of this AdminLaunchPlanMetadata. # noqa: E501 + :type: list[AdminNotification] + """ + + self._notifications = notifications + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py new file mode 100644 index 0000000000..8eb1aed4fd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py @@ -0,0 +1,540 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 +from flyteadmin.models.admin_auth import AdminAuth # noqa: F401,E501 +from flyteadmin.models.admin_auth_role import AdminAuthRole # noqa: F401,E501 +from flyteadmin.models.admin_envs import AdminEnvs # noqa: F401,E501 +from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata # noqa: F401,E501 +from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: F401,E501 +from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 +from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 + + +class AdminLaunchPlanSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'workflow_id': 'CoreIdentifier', + 'entity_metadata': 'AdminLaunchPlanMetadata', + 'default_inputs': 'CoreParameterMap', + 'fixed_inputs': 'CoreLiteralMap', + 'role': 'str', + 'labels': 'AdminLabels', + 'annotations': 'AdminAnnotations', + 'auth': 'AdminAuth', + 'auth_role': 'AdminAuthRole', + 'security_context': 'CoreSecurityContext', + 'quality_of_service': 'CoreQualityOfService', + 'raw_output_data_config': 'AdminRawOutputDataConfig', + 'max_parallelism': 'int', + 'interruptible': 'bool', + 'overwrite_cache': 'bool', + 'envs': 'AdminEnvs' + } + + attribute_map = { + 'workflow_id': 'workflow_id', + 'entity_metadata': 'entity_metadata', + 'default_inputs': 'default_inputs', + 'fixed_inputs': 'fixed_inputs', + 'role': 'role', + 'labels': 'labels', + 'annotations': 'annotations', + 'auth': 'auth', + 'auth_role': 'auth_role', + 'security_context': 'security_context', + 'quality_of_service': 'quality_of_service', + 'raw_output_data_config': 'raw_output_data_config', + 'max_parallelism': 'max_parallelism', + 'interruptible': 'interruptible', + 'overwrite_cache': 'overwrite_cache', + 'envs': 'envs' + } + + def __init__(self, workflow_id=None, entity_metadata=None, default_inputs=None, fixed_inputs=None, role=None, labels=None, annotations=None, auth=None, auth_role=None, security_context=None, quality_of_service=None, raw_output_data_config=None, max_parallelism=None, interruptible=None, overwrite_cache=None, envs=None): # noqa: E501 + """AdminLaunchPlanSpec - a model defined in Swagger""" # noqa: E501 + + self._workflow_id = None + self._entity_metadata = None + self._default_inputs = None + self._fixed_inputs = None + self._role = None + self._labels = None + self._annotations = None + self._auth = None + self._auth_role = None + self._security_context = None + self._quality_of_service = None + self._raw_output_data_config = None + self._max_parallelism = None + self._interruptible = None + self._overwrite_cache = None + self._envs = None + self.discriminator = None + + if workflow_id is not None: + self.workflow_id = workflow_id + if entity_metadata is not None: + self.entity_metadata = entity_metadata + if default_inputs is not None: + self.default_inputs = default_inputs + if fixed_inputs is not None: + self.fixed_inputs = fixed_inputs + if role is not None: + self.role = role + if labels is not None: + self.labels = labels + if annotations is not None: + self.annotations = annotations + if auth is not None: + self.auth = auth + if auth_role is not None: + self.auth_role = auth_role + if security_context is not None: + self.security_context = security_context + if quality_of_service is not None: + self.quality_of_service = quality_of_service + if raw_output_data_config is not None: + self.raw_output_data_config = raw_output_data_config + if max_parallelism is not None: + self.max_parallelism = max_parallelism + if interruptible is not None: + self.interruptible = interruptible + if overwrite_cache is not None: + self.overwrite_cache = overwrite_cache + if envs is not None: + self.envs = envs + + @property + def workflow_id(self): + """Gets the workflow_id of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The workflow_id of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._workflow_id + + @workflow_id.setter + def workflow_id(self, workflow_id): + """Sets the workflow_id of this AdminLaunchPlanSpec. + + + :param workflow_id: The workflow_id of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreIdentifier + """ + + self._workflow_id = workflow_id + + @property + def entity_metadata(self): + """Gets the entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminLaunchPlanMetadata + """ + return self._entity_metadata + + @entity_metadata.setter + def entity_metadata(self, entity_metadata): + """Sets the entity_metadata of this AdminLaunchPlanSpec. + + + :param entity_metadata: The entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminLaunchPlanMetadata + """ + + self._entity_metadata = entity_metadata + + @property + def default_inputs(self): + """Gets the default_inputs of this AdminLaunchPlanSpec. # noqa: E501 + + Input values to be passed for the execution. These can be overriden when an execution is created with this launch plan. # noqa: E501 + + :return: The default_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreParameterMap + """ + return self._default_inputs + + @default_inputs.setter + def default_inputs(self, default_inputs): + """Sets the default_inputs of this AdminLaunchPlanSpec. + + Input values to be passed for the execution. These can be overriden when an execution is created with this launch plan. # noqa: E501 + + :param default_inputs: The default_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreParameterMap + """ + + self._default_inputs = default_inputs + + @property + def fixed_inputs(self): + """Gets the fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 + + Fixed, non-overridable inputs for the Launch Plan. These can not be overriden when an execution is created with this launch plan. # noqa: E501 + + :return: The fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._fixed_inputs + + @fixed_inputs.setter + def fixed_inputs(self, fixed_inputs): + """Sets the fixed_inputs of this AdminLaunchPlanSpec. + + Fixed, non-overridable inputs for the Launch Plan. These can not be overriden when an execution is created with this launch plan. # noqa: E501 + + :param fixed_inputs: The fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreLiteralMap + """ + + self._fixed_inputs = fixed_inputs + + @property + def role(self): + """Gets the role of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The role of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this AdminLaunchPlanSpec. + + + :param role: The role of this AdminLaunchPlanSpec. # noqa: E501 + :type: str + """ + + self._role = role + + @property + def labels(self): + """Gets the labels of this AdminLaunchPlanSpec. # noqa: E501 + + Custom labels to be applied to the execution resource. # noqa: E501 + + :return: The labels of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this AdminLaunchPlanSpec. + + Custom labels to be applied to the execution resource. # noqa: E501 + + :param labels: The labels of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminLabels + """ + + self._labels = labels + + @property + def annotations(self): + """Gets the annotations of this AdminLaunchPlanSpec. # noqa: E501 + + Custom annotations to be applied to the execution resource. # noqa: E501 + + :return: The annotations of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminAnnotations + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this AdminLaunchPlanSpec. + + Custom annotations to be applied to the execution resource. # noqa: E501 + + :param annotations: The annotations of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminAnnotations + """ + + self._annotations = annotations + + @property + def auth(self): + """Gets the auth of this AdminLaunchPlanSpec. # noqa: E501 + + Indicates the permission associated with workflow executions triggered with this launch plan. # noqa: E501 + + :return: The auth of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminAuth + """ + return self._auth + + @auth.setter + def auth(self, auth): + """Sets the auth of this AdminLaunchPlanSpec. + + Indicates the permission associated with workflow executions triggered with this launch plan. # noqa: E501 + + :param auth: The auth of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminAuth + """ + + self._auth = auth + + @property + def auth_role(self): + """Gets the auth_role of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The auth_role of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminAuthRole + """ + return self._auth_role + + @auth_role.setter + def auth_role(self, auth_role): + """Sets the auth_role of this AdminLaunchPlanSpec. + + + :param auth_role: The auth_role of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminAuthRole + """ + + self._auth_role = auth_role + + @property + def security_context(self): + """Gets the security_context of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The security_context of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreSecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """Sets the security_context of this AdminLaunchPlanSpec. + + + :param security_context: The security_context of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreSecurityContext + """ + + self._security_context = security_context + + @property + def quality_of_service(self): + """Gets the quality_of_service of this AdminLaunchPlanSpec. # noqa: E501 + + Indicates the runtime priority of the execution. # noqa: E501 + + :return: The quality_of_service of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreQualityOfService + """ + return self._quality_of_service + + @quality_of_service.setter + def quality_of_service(self, quality_of_service): + """Sets the quality_of_service of this AdminLaunchPlanSpec. + + Indicates the runtime priority of the execution. # noqa: E501 + + :param quality_of_service: The quality_of_service of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreQualityOfService + """ + + self._quality_of_service = quality_of_service + + @property + def raw_output_data_config(self): + """Gets the raw_output_data_config of this AdminLaunchPlanSpec. # noqa: E501 + + Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 + + :return: The raw_output_data_config of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminRawOutputDataConfig + """ + return self._raw_output_data_config + + @raw_output_data_config.setter + def raw_output_data_config(self, raw_output_data_config): + """Sets the raw_output_data_config of this AdminLaunchPlanSpec. + + Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 + + :param raw_output_data_config: The raw_output_data_config of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminRawOutputDataConfig + """ + + self._raw_output_data_config = raw_output_data_config + + @property + def max_parallelism(self): + """Gets the max_parallelism of this AdminLaunchPlanSpec. # noqa: E501 + + Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 + + :return: The max_parallelism of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: int + """ + return self._max_parallelism + + @max_parallelism.setter + def max_parallelism(self, max_parallelism): + """Sets the max_parallelism of this AdminLaunchPlanSpec. + + Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 + + :param max_parallelism: The max_parallelism of this AdminLaunchPlanSpec. # noqa: E501 + :type: int + """ + + self._max_parallelism = max_parallelism + + @property + def interruptible(self): + """Gets the interruptible of this AdminLaunchPlanSpec. # noqa: E501 + + Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 + + :return: The interruptible of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: bool + """ + return self._interruptible + + @interruptible.setter + def interruptible(self, interruptible): + """Sets the interruptible of this AdminLaunchPlanSpec. + + Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 + + :param interruptible: The interruptible of this AdminLaunchPlanSpec. # noqa: E501 + :type: bool + """ + + self._interruptible = interruptible + + @property + def overwrite_cache(self): + """Gets the overwrite_cache of this AdminLaunchPlanSpec. # noqa: E501 + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :return: The overwrite_cache of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: bool + """ + return self._overwrite_cache + + @overwrite_cache.setter + def overwrite_cache(self, overwrite_cache): + """Sets the overwrite_cache of this AdminLaunchPlanSpec. + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :param overwrite_cache: The overwrite_cache of this AdminLaunchPlanSpec. # noqa: E501 + :type: bool + """ + + self._overwrite_cache = overwrite_cache + + @property + def envs(self): + """Gets the envs of this AdminLaunchPlanSpec. # noqa: E501 + + Environment variables to be set for the execution. # noqa: E501 + + :return: The envs of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminEnvs + """ + return self._envs + + @envs.setter + def envs(self, envs): + """Sets the envs of this AdminLaunchPlanSpec. + + Environment variables to be set for the execution. # noqa: E501 + + :param envs: The envs of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminEnvs + """ + + self._envs = envs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py new file mode 100644 index 0000000000..49b1828a80 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLaunchPlanState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + INACTIVE = "INACTIVE" + ACTIVE = "ACTIVE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminLaunchPlanState - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py new file mode 100644 index 0000000000..bfd79c3a1d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminLaunchPlanUpdateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'state': 'AdminLaunchPlanState' + } + + attribute_map = { + 'id': 'id', + 'state': 'state' + } + + def __init__(self, id=None, state=None): # noqa: E501 + """AdminLaunchPlanUpdateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._state = None + self.discriminator = None + + if id is not None: + self.id = id + if state is not None: + self.state = state + + @property + def id(self): + """Gets the id of this AdminLaunchPlanUpdateRequest. # noqa: E501 + + Identifier of launch plan for which to change state. +required. # noqa: E501 + + :return: The id of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminLaunchPlanUpdateRequest. + + Identifier of launch plan for which to change state. +required. # noqa: E501 + + :param id: The id of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def state(self): + """Gets the state of this AdminLaunchPlanUpdateRequest. # noqa: E501 + + Desired state to apply to the launch plan. +required. # noqa: E501 + + :return: The state of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :rtype: AdminLaunchPlanState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminLaunchPlanUpdateRequest. + + Desired state to apply to the launch plan. +required. # noqa: E501 + + :param state: The state of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :type: AdminLaunchPlanState + """ + + self._state = state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanUpdateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py new file mode 100644 index 0000000000..03932d5cd2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLaunchPlanUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminLaunchPlanUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_list_matchable_attributes_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_list_matchable_attributes_response.py new file mode 100644 index 0000000000..c1efcb34b6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_list_matchable_attributes_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration # noqa: F401,E501 + + +class AdminListMatchableAttributesResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'configurations': 'list[AdminMatchableAttributesConfiguration]' + } + + attribute_map = { + 'configurations': 'configurations' + } + + def __init__(self, configurations=None): # noqa: E501 + """AdminListMatchableAttributesResponse - a model defined in Swagger""" # noqa: E501 + + self._configurations = None + self.discriminator = None + + if configurations is not None: + self.configurations = configurations + + @property + def configurations(self): + """Gets the configurations of this AdminListMatchableAttributesResponse. # noqa: E501 + + + :return: The configurations of this AdminListMatchableAttributesResponse. # noqa: E501 + :rtype: list[AdminMatchableAttributesConfiguration] + """ + return self._configurations + + @configurations.setter + def configurations(self, configurations): + """Sets the configurations of this AdminListMatchableAttributesResponse. + + + :param configurations: The configurations of this AdminListMatchableAttributesResponse. # noqa: E501 + :type: list[AdminMatchableAttributesConfiguration] + """ + + self._configurations = configurations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminListMatchableAttributesResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminListMatchableAttributesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py new file mode 100644 index 0000000000..6d7c78b497 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 + + +class AdminLiteralMapBlob(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'CoreLiteralMap', + 'uri': 'str' + } + + attribute_map = { + 'values': 'values', + 'uri': 'uri' + } + + def __init__(self, values=None, uri=None): # noqa: E501 + """AdminLiteralMapBlob - a model defined in Swagger""" # noqa: E501 + + self._values = None + self._uri = None + self.discriminator = None + + if values is not None: + self.values = values + if uri is not None: + self.uri = uri + + @property + def values(self): + """Gets the values of this AdminLiteralMapBlob. # noqa: E501 + + + :return: The values of this AdminLiteralMapBlob. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AdminLiteralMapBlob. + + + :param values: The values of this AdminLiteralMapBlob. # noqa: E501 + :type: CoreLiteralMap + """ + + self._values = values + + @property + def uri(self): + """Gets the uri of this AdminLiteralMapBlob. # noqa: E501 + + + :return: The uri of this AdminLiteralMapBlob. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this AdminLiteralMapBlob. + + + :param uri: The uri of this AdminLiteralMapBlob. # noqa: E501 + :type: str + """ + + self._uri = uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLiteralMapBlob, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLiteralMapBlob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_attributes_configuration.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_attributes_configuration.py new file mode 100644 index 0000000000..a9be455f25 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_attributes_configuration.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 + + +class AdminMatchableAttributesConfiguration(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'AdminMatchingAttributes', + 'domain': 'str', + 'project': 'str', + 'workflow': 'str', + 'launch_plan': 'str' + } + + attribute_map = { + 'attributes': 'attributes', + 'domain': 'domain', + 'project': 'project', + 'workflow': 'workflow', + 'launch_plan': 'launch_plan' + } + + def __init__(self, attributes=None, domain=None, project=None, workflow=None, launch_plan=None): # noqa: E501 + """AdminMatchableAttributesConfiguration - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self._domain = None + self._project = None + self._workflow = None + self._launch_plan = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + if domain is not None: + self.domain = domain + if project is not None: + self.project = project + if workflow is not None: + self.workflow = workflow + if launch_plan is not None: + self.launch_plan = launch_plan + + @property + def attributes(self): + """Gets the attributes of this AdminMatchableAttributesConfiguration. # noqa: E501 + + + :return: The attributes of this AdminMatchableAttributesConfiguration. # noqa: E501 + :rtype: AdminMatchingAttributes + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminMatchableAttributesConfiguration. + + + :param attributes: The attributes of this AdminMatchableAttributesConfiguration. # noqa: E501 + :type: AdminMatchingAttributes + """ + + self._attributes = attributes + + @property + def domain(self): + """Gets the domain of this AdminMatchableAttributesConfiguration. # noqa: E501 + + + :return: The domain of this AdminMatchableAttributesConfiguration. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminMatchableAttributesConfiguration. + + + :param domain: The domain of this AdminMatchableAttributesConfiguration. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def project(self): + """Gets the project of this AdminMatchableAttributesConfiguration. # noqa: E501 + + + :return: The project of this AdminMatchableAttributesConfiguration. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminMatchableAttributesConfiguration. + + + :param project: The project of this AdminMatchableAttributesConfiguration. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def workflow(self): + """Gets the workflow of this AdminMatchableAttributesConfiguration. # noqa: E501 + + + :return: The workflow of this AdminMatchableAttributesConfiguration. # noqa: E501 + :rtype: str + """ + return self._workflow + + @workflow.setter + def workflow(self, workflow): + """Sets the workflow of this AdminMatchableAttributesConfiguration. + + + :param workflow: The workflow of this AdminMatchableAttributesConfiguration. # noqa: E501 + :type: str + """ + + self._workflow = workflow + + @property + def launch_plan(self): + """Gets the launch_plan of this AdminMatchableAttributesConfiguration. # noqa: E501 + + + :return: The launch_plan of this AdminMatchableAttributesConfiguration. # noqa: E501 + :rtype: str + """ + return self._launch_plan + + @launch_plan.setter + def launch_plan(self, launch_plan): + """Sets the launch_plan of this AdminMatchableAttributesConfiguration. + + + :param launch_plan: The launch_plan of this AdminMatchableAttributesConfiguration. # noqa: E501 + :type: str + """ + + self._launch_plan = launch_plan + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminMatchableAttributesConfiguration, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminMatchableAttributesConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py new file mode 100644 index 0000000000..2c234614f3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminMatchableResource(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + TASK_RESOURCE = "TASK_RESOURCE" + CLUSTER_RESOURCE = "CLUSTER_RESOURCE" + EXECUTION_QUEUE = "EXECUTION_QUEUE" + EXECUTION_CLUSTER_LABEL = "EXECUTION_CLUSTER_LABEL" + QUALITY_OF_SERVICE_SPECIFICATION = "QUALITY_OF_SERVICE_SPECIFICATION" + PLUGIN_OVERRIDE = "PLUGIN_OVERRIDE" + WORKFLOW_EXECUTION_CONFIG = "WORKFLOW_EXECUTION_CONFIG" + CLUSTER_ASSIGNMENT = "CLUSTER_ASSIGNMENT" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminMatchableResource - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminMatchableResource, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminMatchableResource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matching_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matching_attributes.py new file mode 100644 index 0000000000..aadcc1d21c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matching_attributes.py @@ -0,0 +1,306 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment # noqa: F401,E501 +from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes # noqa: F401,E501 +from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel # noqa: F401,E501 +from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes # noqa: F401,E501 +from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides # noqa: F401,E501 +from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes # noqa: F401,E501 +from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig # noqa: F401,E501 +from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 + + +class AdminMatchingAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_resource_attributes': 'AdminTaskResourceAttributes', + 'cluster_resource_attributes': 'AdminClusterResourceAttributes', + 'execution_queue_attributes': 'AdminExecutionQueueAttributes', + 'execution_cluster_label': 'AdminExecutionClusterLabel', + 'quality_of_service': 'CoreQualityOfService', + 'plugin_overrides': 'AdminPluginOverrides', + 'workflow_execution_config': 'AdminWorkflowExecutionConfig', + 'cluster_assignment': 'AdminClusterAssignment' + } + + attribute_map = { + 'task_resource_attributes': 'task_resource_attributes', + 'cluster_resource_attributes': 'cluster_resource_attributes', + 'execution_queue_attributes': 'execution_queue_attributes', + 'execution_cluster_label': 'execution_cluster_label', + 'quality_of_service': 'quality_of_service', + 'plugin_overrides': 'plugin_overrides', + 'workflow_execution_config': 'workflow_execution_config', + 'cluster_assignment': 'cluster_assignment' + } + + def __init__(self, task_resource_attributes=None, cluster_resource_attributes=None, execution_queue_attributes=None, execution_cluster_label=None, quality_of_service=None, plugin_overrides=None, workflow_execution_config=None, cluster_assignment=None): # noqa: E501 + """AdminMatchingAttributes - a model defined in Swagger""" # noqa: E501 + + self._task_resource_attributes = None + self._cluster_resource_attributes = None + self._execution_queue_attributes = None + self._execution_cluster_label = None + self._quality_of_service = None + self._plugin_overrides = None + self._workflow_execution_config = None + self._cluster_assignment = None + self.discriminator = None + + if task_resource_attributes is not None: + self.task_resource_attributes = task_resource_attributes + if cluster_resource_attributes is not None: + self.cluster_resource_attributes = cluster_resource_attributes + if execution_queue_attributes is not None: + self.execution_queue_attributes = execution_queue_attributes + if execution_cluster_label is not None: + self.execution_cluster_label = execution_cluster_label + if quality_of_service is not None: + self.quality_of_service = quality_of_service + if plugin_overrides is not None: + self.plugin_overrides = plugin_overrides + if workflow_execution_config is not None: + self.workflow_execution_config = workflow_execution_config + if cluster_assignment is not None: + self.cluster_assignment = cluster_assignment + + @property + def task_resource_attributes(self): + """Gets the task_resource_attributes of this AdminMatchingAttributes. # noqa: E501 + + + :return: The task_resource_attributes of this AdminMatchingAttributes. # noqa: E501 + :rtype: AdminTaskResourceAttributes + """ + return self._task_resource_attributes + + @task_resource_attributes.setter + def task_resource_attributes(self, task_resource_attributes): + """Sets the task_resource_attributes of this AdminMatchingAttributes. + + + :param task_resource_attributes: The task_resource_attributes of this AdminMatchingAttributes. # noqa: E501 + :type: AdminTaskResourceAttributes + """ + + self._task_resource_attributes = task_resource_attributes + + @property + def cluster_resource_attributes(self): + """Gets the cluster_resource_attributes of this AdminMatchingAttributes. # noqa: E501 + + + :return: The cluster_resource_attributes of this AdminMatchingAttributes. # noqa: E501 + :rtype: AdminClusterResourceAttributes + """ + return self._cluster_resource_attributes + + @cluster_resource_attributes.setter + def cluster_resource_attributes(self, cluster_resource_attributes): + """Sets the cluster_resource_attributes of this AdminMatchingAttributes. + + + :param cluster_resource_attributes: The cluster_resource_attributes of this AdminMatchingAttributes. # noqa: E501 + :type: AdminClusterResourceAttributes + """ + + self._cluster_resource_attributes = cluster_resource_attributes + + @property + def execution_queue_attributes(self): + """Gets the execution_queue_attributes of this AdminMatchingAttributes. # noqa: E501 + + + :return: The execution_queue_attributes of this AdminMatchingAttributes. # noqa: E501 + :rtype: AdminExecutionQueueAttributes + """ + return self._execution_queue_attributes + + @execution_queue_attributes.setter + def execution_queue_attributes(self, execution_queue_attributes): + """Sets the execution_queue_attributes of this AdminMatchingAttributes. + + + :param execution_queue_attributes: The execution_queue_attributes of this AdminMatchingAttributes. # noqa: E501 + :type: AdminExecutionQueueAttributes + """ + + self._execution_queue_attributes = execution_queue_attributes + + @property + def execution_cluster_label(self): + """Gets the execution_cluster_label of this AdminMatchingAttributes. # noqa: E501 + + + :return: The execution_cluster_label of this AdminMatchingAttributes. # noqa: E501 + :rtype: AdminExecutionClusterLabel + """ + return self._execution_cluster_label + + @execution_cluster_label.setter + def execution_cluster_label(self, execution_cluster_label): + """Sets the execution_cluster_label of this AdminMatchingAttributes. + + + :param execution_cluster_label: The execution_cluster_label of this AdminMatchingAttributes. # noqa: E501 + :type: AdminExecutionClusterLabel + """ + + self._execution_cluster_label = execution_cluster_label + + @property + def quality_of_service(self): + """Gets the quality_of_service of this AdminMatchingAttributes. # noqa: E501 + + + :return: The quality_of_service of this AdminMatchingAttributes. # noqa: E501 + :rtype: CoreQualityOfService + """ + return self._quality_of_service + + @quality_of_service.setter + def quality_of_service(self, quality_of_service): + """Sets the quality_of_service of this AdminMatchingAttributes. + + + :param quality_of_service: The quality_of_service of this AdminMatchingAttributes. # noqa: E501 + :type: CoreQualityOfService + """ + + self._quality_of_service = quality_of_service + + @property + def plugin_overrides(self): + """Gets the plugin_overrides of this AdminMatchingAttributes. # noqa: E501 + + + :return: The plugin_overrides of this AdminMatchingAttributes. # noqa: E501 + :rtype: AdminPluginOverrides + """ + return self._plugin_overrides + + @plugin_overrides.setter + def plugin_overrides(self, plugin_overrides): + """Sets the plugin_overrides of this AdminMatchingAttributes. + + + :param plugin_overrides: The plugin_overrides of this AdminMatchingAttributes. # noqa: E501 + :type: AdminPluginOverrides + """ + + self._plugin_overrides = plugin_overrides + + @property + def workflow_execution_config(self): + """Gets the workflow_execution_config of this AdminMatchingAttributes. # noqa: E501 + + + :return: The workflow_execution_config of this AdminMatchingAttributes. # noqa: E501 + :rtype: AdminWorkflowExecutionConfig + """ + return self._workflow_execution_config + + @workflow_execution_config.setter + def workflow_execution_config(self, workflow_execution_config): + """Sets the workflow_execution_config of this AdminMatchingAttributes. + + + :param workflow_execution_config: The workflow_execution_config of this AdminMatchingAttributes. # noqa: E501 + :type: AdminWorkflowExecutionConfig + """ + + self._workflow_execution_config = workflow_execution_config + + @property + def cluster_assignment(self): + """Gets the cluster_assignment of this AdminMatchingAttributes. # noqa: E501 + + + :return: The cluster_assignment of this AdminMatchingAttributes. # noqa: E501 + :rtype: AdminClusterAssignment + """ + return self._cluster_assignment + + @cluster_assignment.setter + def cluster_assignment(self, cluster_assignment): + """Sets the cluster_assignment of this AdminMatchingAttributes. + + + :param cluster_assignment: The cluster_assignment of this AdminMatchingAttributes. # noqa: E501 + :type: AdminClusterAssignment + """ + + self._cluster_assignment = cluster_assignment + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminMatchingAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminMatchingAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity.py new file mode 100644 index 0000000000..9a8600de92 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: F401,E501 +from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata # noqa: F401,E501 +from flyteadmin.models.core_resource_type import CoreResourceType # noqa: F401,E501 + + +class AdminNamedEntity(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_type': 'CoreResourceType', + 'id': 'AdminNamedEntityIdentifier', + 'metadata': 'AdminNamedEntityMetadata' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'id': 'id', + 'metadata': 'metadata' + } + + def __init__(self, resource_type=None, id=None, metadata=None): # noqa: E501 + """AdminNamedEntity - a model defined in Swagger""" # noqa: E501 + + self._resource_type = None + self._id = None + self._metadata = None + self.discriminator = None + + if resource_type is not None: + self.resource_type = resource_type + if id is not None: + self.id = id + if metadata is not None: + self.metadata = metadata + + @property + def resource_type(self): + """Gets the resource_type of this AdminNamedEntity. # noqa: E501 + + Resource type of the named entity. One of Task, Workflow or LaunchPlan. # noqa: E501 + + :return: The resource_type of this AdminNamedEntity. # noqa: E501 + :rtype: CoreResourceType + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this AdminNamedEntity. + + Resource type of the named entity. One of Task, Workflow or LaunchPlan. # noqa: E501 + + :param resource_type: The resource_type of this AdminNamedEntity. # noqa: E501 + :type: CoreResourceType + """ + + self._resource_type = resource_type + + @property + def id(self): + """Gets the id of this AdminNamedEntity. # noqa: E501 + + + :return: The id of this AdminNamedEntity. # noqa: E501 + :rtype: AdminNamedEntityIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminNamedEntity. + + + :param id: The id of this AdminNamedEntity. # noqa: E501 + :type: AdminNamedEntityIdentifier + """ + + self._id = id + + @property + def metadata(self): + """Gets the metadata of this AdminNamedEntity. # noqa: E501 + + Additional metadata around a named entity. # noqa: E501 + + :return: The metadata of this AdminNamedEntity. # noqa: E501 + :rtype: AdminNamedEntityMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this AdminNamedEntity. + + Additional metadata around a named entity. # noqa: E501 + + :param metadata: The metadata of this AdminNamedEntity. # noqa: E501 + :type: AdminNamedEntityMetadata + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntity, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py new file mode 100644 index 0000000000..8a06241403 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminNamedEntityIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'name': 'str' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'name': 'name' + } + + def __init__(self, project=None, domain=None, name=None): # noqa: E501 + """AdminNamedEntityIdentifier - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._name = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + + @property + def project(self): + """Gets the project of this AdminNamedEntityIdentifier. # noqa: E501 + + Name of the project the resource belongs to. # noqa: E501 + + :return: The project of this AdminNamedEntityIdentifier. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminNamedEntityIdentifier. + + Name of the project the resource belongs to. # noqa: E501 + + :param project: The project of this AdminNamedEntityIdentifier. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminNamedEntityIdentifier. # noqa: E501 + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :return: The domain of this AdminNamedEntityIdentifier. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminNamedEntityIdentifier. + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :param domain: The domain of this AdminNamedEntityIdentifier. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this AdminNamedEntityIdentifier. # noqa: E501 + + + :return: The name of this AdminNamedEntityIdentifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminNamedEntityIdentifier. + + + :param name: The name of this AdminNamedEntityIdentifier. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py new file mode 100644 index 0000000000..04a4ad0284 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: F401,E501 + + +class AdminNamedEntityIdentifierList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'entities': 'list[AdminNamedEntityIdentifier]', + 'token': 'str' + } + + attribute_map = { + 'entities': 'entities', + 'token': 'token' + } + + def __init__(self, entities=None, token=None): # noqa: E501 + """AdminNamedEntityIdentifierList - a model defined in Swagger""" # noqa: E501 + + self._entities = None + self._token = None + self.discriminator = None + + if entities is not None: + self.entities = entities + if token is not None: + self.token = token + + @property + def entities(self): + """Gets the entities of this AdminNamedEntityIdentifierList. # noqa: E501 + + A list of identifiers. # noqa: E501 + + :return: The entities of this AdminNamedEntityIdentifierList. # noqa: E501 + :rtype: list[AdminNamedEntityIdentifier] + """ + return self._entities + + @entities.setter + def entities(self, entities): + """Sets the entities of this AdminNamedEntityIdentifierList. + + A list of identifiers. # noqa: E501 + + :param entities: The entities of this AdminNamedEntityIdentifierList. # noqa: E501 + :type: list[AdminNamedEntityIdentifier] + """ + + self._entities = entities + + @property + def token(self): + """Gets the token of this AdminNamedEntityIdentifierList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminNamedEntityIdentifierList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminNamedEntityIdentifierList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminNamedEntityIdentifierList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityIdentifierList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityIdentifierList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_list.py new file mode 100644 index 0000000000..6a97699882 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_named_entity import AdminNamedEntity # noqa: F401,E501 + + +class AdminNamedEntityList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'entities': 'list[AdminNamedEntity]', + 'token': 'str' + } + + attribute_map = { + 'entities': 'entities', + 'token': 'token' + } + + def __init__(self, entities=None, token=None): # noqa: E501 + """AdminNamedEntityList - a model defined in Swagger""" # noqa: E501 + + self._entities = None + self._token = None + self.discriminator = None + + if entities is not None: + self.entities = entities + if token is not None: + self.token = token + + @property + def entities(self): + """Gets the entities of this AdminNamedEntityList. # noqa: E501 + + + :return: The entities of this AdminNamedEntityList. # noqa: E501 + :rtype: list[AdminNamedEntity] + """ + return self._entities + + @entities.setter + def entities(self, entities): + """Sets the entities of this AdminNamedEntityList. + + + :param entities: The entities of this AdminNamedEntityList. # noqa: E501 + :type: list[AdminNamedEntity] + """ + + self._entities = entities + + @property + def token(self): + """Gets the token of this AdminNamedEntityList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminNamedEntityList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminNamedEntityList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminNamedEntityList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_metadata.py new file mode 100644 index 0000000000..e7e538e04c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_metadata.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState # noqa: F401,E501 + + +class AdminNamedEntityMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'state': 'AdminNamedEntityState' + } + + attribute_map = { + 'description': 'description', + 'state': 'state' + } + + def __init__(self, description=None, state=None): # noqa: E501 + """AdminNamedEntityMetadata - a model defined in Swagger""" # noqa: E501 + + self._description = None + self._state = None + self.discriminator = None + + if description is not None: + self.description = description + if state is not None: + self.state = state + + @property + def description(self): + """Gets the description of this AdminNamedEntityMetadata. # noqa: E501 + + + :return: The description of this AdminNamedEntityMetadata. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AdminNamedEntityMetadata. + + + :param description: The description of this AdminNamedEntityMetadata. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def state(self): + """Gets the state of this AdminNamedEntityMetadata. # noqa: E501 + + Shared state across all version of the entity At this point in time, only workflow entities can have their state archived. # noqa: E501 + + :return: The state of this AdminNamedEntityMetadata. # noqa: E501 + :rtype: AdminNamedEntityState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminNamedEntityMetadata. + + Shared state across all version of the entity At this point in time, only workflow entities can have their state archived. # noqa: E501 + + :param state: The state of this AdminNamedEntityMetadata. # noqa: E501 + :type: AdminNamedEntityState + """ + + self._state = state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_state.py new file mode 100644 index 0000000000..c2739d2331 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_state.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminNamedEntityState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NAMED_ENTITY_ACTIVE = "NAMED_ENTITY_ACTIVE" + NAMED_ENTITY_ARCHIVED = "NAMED_ENTITY_ARCHIVED" + SYSTEM_GENERATED = "SYSTEM_GENERATED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminNamedEntityState - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_request.py new file mode 100644 index 0000000000..92b851213d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_request.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: F401,E501 +from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata # noqa: F401,E501 +from flyteadmin.models.core_resource_type import CoreResourceType # noqa: F401,E501 + + +class AdminNamedEntityUpdateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_type': 'CoreResourceType', + 'id': 'AdminNamedEntityIdentifier', + 'metadata': 'AdminNamedEntityMetadata' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'id': 'id', + 'metadata': 'metadata' + } + + def __init__(self, resource_type=None, id=None, metadata=None): # noqa: E501 + """AdminNamedEntityUpdateRequest - a model defined in Swagger""" # noqa: E501 + + self._resource_type = None + self._id = None + self._metadata = None + self.discriminator = None + + if resource_type is not None: + self.resource_type = resource_type + if id is not None: + self.id = id + if metadata is not None: + self.metadata = metadata + + @property + def resource_type(self): + """Gets the resource_type of this AdminNamedEntityUpdateRequest. # noqa: E501 + + + :return: The resource_type of this AdminNamedEntityUpdateRequest. # noqa: E501 + :rtype: CoreResourceType + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this AdminNamedEntityUpdateRequest. + + + :param resource_type: The resource_type of this AdminNamedEntityUpdateRequest. # noqa: E501 + :type: CoreResourceType + """ + + self._resource_type = resource_type + + @property + def id(self): + """Gets the id of this AdminNamedEntityUpdateRequest. # noqa: E501 + + + :return: The id of this AdminNamedEntityUpdateRequest. # noqa: E501 + :rtype: AdminNamedEntityIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminNamedEntityUpdateRequest. + + + :param id: The id of this AdminNamedEntityUpdateRequest. # noqa: E501 + :type: AdminNamedEntityIdentifier + """ + + self._id = id + + @property + def metadata(self): + """Gets the metadata of this AdminNamedEntityUpdateRequest. # noqa: E501 + + + :return: The metadata of this AdminNamedEntityUpdateRequest. # noqa: E501 + :rtype: AdminNamedEntityMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this AdminNamedEntityUpdateRequest. + + + :param metadata: The metadata of this AdminNamedEntityUpdateRequest. # noqa: E501 + :type: AdminNamedEntityMetadata + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityUpdateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_response.py new file mode 100644 index 0000000000..fc86d9ea88 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminNamedEntityUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminNamedEntityUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py new file mode 100644 index 0000000000..67eb4c68b8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py @@ -0,0 +1,423 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: F401,E501 +from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata # noqa: F401,E501 +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata # noqa: F401,E501 + + +class AdminNodeExecutionClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'output_data': 'CoreLiteralMap', + 'phase': 'CoreNodeExecutionPhase', + 'started_at': 'datetime', + 'duration': 'str', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'workflow_node_metadata': 'FlyteidladminWorkflowNodeMetadata', + 'task_node_metadata': 'FlyteidladminTaskNodeMetadata', + 'deck_uri': 'str', + 'dynamic_job_spec_uri': 'str' + } + + attribute_map = { + 'output_uri': 'output_uri', + 'error': 'error', + 'output_data': 'output_data', + 'phase': 'phase', + 'started_at': 'started_at', + 'duration': 'duration', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'workflow_node_metadata': 'workflow_node_metadata', + 'task_node_metadata': 'task_node_metadata', + 'deck_uri': 'deck_uri', + 'dynamic_job_spec_uri': 'dynamic_job_spec_uri' + } + + def __init__(self, output_uri=None, error=None, output_data=None, phase=None, started_at=None, duration=None, created_at=None, updated_at=None, workflow_node_metadata=None, task_node_metadata=None, deck_uri=None, dynamic_job_spec_uri=None): # noqa: E501 + """AdminNodeExecutionClosure - a model defined in Swagger""" # noqa: E501 + + self._output_uri = None + self._error = None + self._output_data = None + self._phase = None + self._started_at = None + self._duration = None + self._created_at = None + self._updated_at = None + self._workflow_node_metadata = None + self._task_node_metadata = None + self._deck_uri = None + self._dynamic_job_spec_uri = None + self.discriminator = None + + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if output_data is not None: + self.output_data = output_data + if phase is not None: + self.phase = phase + if started_at is not None: + self.started_at = started_at + if duration is not None: + self.duration = duration + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if workflow_node_metadata is not None: + self.workflow_node_metadata = workflow_node_metadata + if task_node_metadata is not None: + self.task_node_metadata = task_node_metadata + if deck_uri is not None: + self.deck_uri = deck_uri + if dynamic_job_spec_uri is not None: + self.dynamic_job_spec_uri = dynamic_job_spec_uri + + @property + def output_uri(self): + """Gets the output_uri of this AdminNodeExecutionClosure. # noqa: E501 + + Links to a remotely stored, serialized core.LiteralMap of node execution outputs. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 + + :return: The output_uri of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this AdminNodeExecutionClosure. + + Links to a remotely stored, serialized core.LiteralMap of node execution outputs. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 + + :param output_uri: The output_uri of this AdminNodeExecutionClosure. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this AdminNodeExecutionClosure. # noqa: E501 + + + :return: The error of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this AdminNodeExecutionClosure. + + + :param error: The error of this AdminNodeExecutionClosure. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def output_data(self): + """Gets the output_data of this AdminNodeExecutionClosure. # noqa: E501 + + Raw output data produced by this node execution. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 + + :return: The output_data of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._output_data + + @output_data.setter + def output_data(self, output_data): + """Sets the output_data of this AdminNodeExecutionClosure. + + Raw output data produced by this node execution. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 + + :param output_data: The output_data of this AdminNodeExecutionClosure. # noqa: E501 + :type: CoreLiteralMap + """ + + self._output_data = output_data + + @property + def phase(self): + """Gets the phase of this AdminNodeExecutionClosure. # noqa: E501 + + The last recorded phase for this node execution. # noqa: E501 + + :return: The phase of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: CoreNodeExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this AdminNodeExecutionClosure. + + The last recorded phase for this node execution. # noqa: E501 + + :param phase: The phase of this AdminNodeExecutionClosure. # noqa: E501 + :type: CoreNodeExecutionPhase + """ + + self._phase = phase + + @property + def started_at(self): + """Gets the started_at of this AdminNodeExecutionClosure. # noqa: E501 + + Time at which the node execution began running. # noqa: E501 + + :return: The started_at of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this AdminNodeExecutionClosure. + + Time at which the node execution began running. # noqa: E501 + + :param started_at: The started_at of this AdminNodeExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._started_at = started_at + + @property + def duration(self): + """Gets the duration of this AdminNodeExecutionClosure. # noqa: E501 + + The amount of time the node execution spent running. # noqa: E501 + + :return: The duration of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this AdminNodeExecutionClosure. + + The amount of time the node execution spent running. # noqa: E501 + + :param duration: The duration of this AdminNodeExecutionClosure. # noqa: E501 + :type: str + """ + + self._duration = duration + + @property + def created_at(self): + """Gets the created_at of this AdminNodeExecutionClosure. # noqa: E501 + + Time at which the node execution was created. # noqa: E501 + + :return: The created_at of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminNodeExecutionClosure. + + Time at which the node execution was created. # noqa: E501 + + :param created_at: The created_at of this AdminNodeExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminNodeExecutionClosure. # noqa: E501 + + Time at which the node execution was last updated. # noqa: E501 + + :return: The updated_at of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminNodeExecutionClosure. + + Time at which the node execution was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminNodeExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def workflow_node_metadata(self): + """Gets the workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + + + :return: The workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: FlyteidladminWorkflowNodeMetadata + """ + return self._workflow_node_metadata + + @workflow_node_metadata.setter + def workflow_node_metadata(self, workflow_node_metadata): + """Sets the workflow_node_metadata of this AdminNodeExecutionClosure. + + + :param workflow_node_metadata: The workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + :type: FlyteidladminWorkflowNodeMetadata + """ + + self._workflow_node_metadata = workflow_node_metadata + + @property + def task_node_metadata(self): + """Gets the task_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + + + :return: The task_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: FlyteidladminTaskNodeMetadata + """ + return self._task_node_metadata + + @task_node_metadata.setter + def task_node_metadata(self, task_node_metadata): + """Sets the task_node_metadata of this AdminNodeExecutionClosure. + + + :param task_node_metadata: The task_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + :type: FlyteidladminTaskNodeMetadata + """ + + self._task_node_metadata = task_node_metadata + + @property + def deck_uri(self): + """Gets the deck_uri of this AdminNodeExecutionClosure. # noqa: E501 + + + :return: The deck_uri of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._deck_uri + + @deck_uri.setter + def deck_uri(self, deck_uri): + """Sets the deck_uri of this AdminNodeExecutionClosure. + + + :param deck_uri: The deck_uri of this AdminNodeExecutionClosure. # noqa: E501 + :type: str + """ + + self._deck_uri = deck_uri + + @property + def dynamic_job_spec_uri(self): + """Gets the dynamic_job_spec_uri of this AdminNodeExecutionClosure. # noqa: E501 + + dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 + + :return: The dynamic_job_spec_uri of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._dynamic_job_spec_uri + + @dynamic_job_spec_uri.setter + def dynamic_job_spec_uri(self, dynamic_job_spec_uri): + """Sets the dynamic_job_spec_uri of this AdminNodeExecutionClosure. + + dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 + + :param dynamic_job_spec_uri: The dynamic_job_spec_uri of this AdminNodeExecutionClosure. # noqa: E501 + :type: str + """ + + self._dynamic_job_spec_uri = dynamic_job_spec_uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py new file mode 100644 index 0000000000..1b0555a030 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent # noqa: F401,E501 + + +class AdminNodeExecutionEventRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'request_id': 'str', + 'event': 'EventNodeExecutionEvent' + } + + attribute_map = { + 'request_id': 'request_id', + 'event': 'event' + } + + def __init__(self, request_id=None, event=None): # noqa: E501 + """AdminNodeExecutionEventRequest - a model defined in Swagger""" # noqa: E501 + + self._request_id = None + self._event = None + self.discriminator = None + + if request_id is not None: + self.request_id = request_id + if event is not None: + self.event = event + + @property + def request_id(self): + """Gets the request_id of this AdminNodeExecutionEventRequest. # noqa: E501 + + + :return: The request_id of this AdminNodeExecutionEventRequest. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this AdminNodeExecutionEventRequest. + + + :param request_id: The request_id of this AdminNodeExecutionEventRequest. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def event(self): + """Gets the event of this AdminNodeExecutionEventRequest. # noqa: E501 + + Details about the event that occurred. # noqa: E501 + + :return: The event of this AdminNodeExecutionEventRequest. # noqa: E501 + :rtype: EventNodeExecutionEvent + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this AdminNodeExecutionEventRequest. + + Details about the event that occurred. # noqa: E501 + + :param event: The event of this AdminNodeExecutionEventRequest. # noqa: E501 + :type: EventNodeExecutionEvent + """ + + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionEventRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py new file mode 100644 index 0000000000..bc409dd130 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminNodeExecutionEventResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminNodeExecutionEventResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionEventResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py new file mode 100644 index 0000000000..8460332961 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs # noqa: F401,E501 +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata # noqa: F401,E501 + + +class AdminNodeExecutionGetDataResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inputs': 'AdminUrlBlob', + 'outputs': 'AdminUrlBlob', + 'full_inputs': 'CoreLiteralMap', + 'full_outputs': 'CoreLiteralMap', + 'dynamic_workflow': 'FlyteidladminDynamicWorkflowNodeMetadata', + 'flyte_urls': 'AdminFlyteURLs' + } + + attribute_map = { + 'inputs': 'inputs', + 'outputs': 'outputs', + 'full_inputs': 'full_inputs', + 'full_outputs': 'full_outputs', + 'dynamic_workflow': 'dynamic_workflow', + 'flyte_urls': 'flyte_urls' + } + + def __init__(self, inputs=None, outputs=None, full_inputs=None, full_outputs=None, dynamic_workflow=None, flyte_urls=None): # noqa: E501 + """AdminNodeExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 + + self._inputs = None + self._outputs = None + self._full_inputs = None + self._full_outputs = None + self._dynamic_workflow = None + self._flyte_urls = None + self.discriminator = None + + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + if full_inputs is not None: + self.full_inputs = full_inputs + if full_outputs is not None: + self.full_outputs = full_outputs + if dynamic_workflow is not None: + self.dynamic_workflow = dynamic_workflow + if flyte_urls is not None: + self.flyte_urls = flyte_urls + + @property + def inputs(self): + """Gets the inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of node execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 + + :return: The inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminNodeExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of node execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 + + :param inputs: The inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of node execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 + + :return: The outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminNodeExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of node execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 + + :param outputs: The outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._outputs = outputs + + @property + def full_inputs(self): + """Gets the full_inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :return: The full_inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._full_inputs + + @full_inputs.setter + def full_inputs(self, full_inputs): + """Sets the full_inputs of this AdminNodeExecutionGetDataResponse. + + Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :param full_inputs: The full_inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: CoreLiteralMap + """ + + self._full_inputs = full_inputs + + @property + def full_outputs(self): + """Gets the full_outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :return: The full_outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._full_outputs + + @full_outputs.setter + def full_outputs(self, full_outputs): + """Sets the full_outputs of this AdminNodeExecutionGetDataResponse. + + Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :param full_outputs: The full_outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: CoreLiteralMap + """ + + self._full_outputs = full_outputs + + @property + def dynamic_workflow(self): + """Gets the dynamic_workflow of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. # noqa: E501 + + :return: The dynamic_workflow of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: FlyteidladminDynamicWorkflowNodeMetadata + """ + return self._dynamic_workflow + + @dynamic_workflow.setter + def dynamic_workflow(self, dynamic_workflow): + """Sets the dynamic_workflow of this AdminNodeExecutionGetDataResponse. + + Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. # noqa: E501 + + :param dynamic_workflow: The dynamic_workflow of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: FlyteidladminDynamicWorkflowNodeMetadata + """ + + self._dynamic_workflow = dynamic_workflow + + @property + def flyte_urls(self): + """Gets the flyte_urls of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + + :return: The flyte_urls of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: AdminFlyteURLs + """ + return self._flyte_urls + + @flyte_urls.setter + def flyte_urls(self, flyte_urls): + """Sets the flyte_urls of this AdminNodeExecutionGetDataResponse. + + + :param flyte_urls: The flyte_urls of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: AdminFlyteURLs + """ + + self._flyte_urls = flyte_urls + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionGetDataResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionGetDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py new file mode 100644 index 0000000000..8f23e8cd48 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution # noqa: F401,E501 + + +class AdminNodeExecutionList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_executions': 'list[FlyteidladminNodeExecution]', + 'token': 'str' + } + + attribute_map = { + 'node_executions': 'node_executions', + 'token': 'token' + } + + def __init__(self, node_executions=None, token=None): # noqa: E501 + """AdminNodeExecutionList - a model defined in Swagger""" # noqa: E501 + + self._node_executions = None + self._token = None + self.discriminator = None + + if node_executions is not None: + self.node_executions = node_executions + if token is not None: + self.token = token + + @property + def node_executions(self): + """Gets the node_executions of this AdminNodeExecutionList. # noqa: E501 + + + :return: The node_executions of this AdminNodeExecutionList. # noqa: E501 + :rtype: list[FlyteidladminNodeExecution] + """ + return self._node_executions + + @node_executions.setter + def node_executions(self, node_executions): + """Sets the node_executions of this AdminNodeExecutionList. + + + :param node_executions: The node_executions of this AdminNodeExecutionList. # noqa: E501 + :type: list[FlyteidladminNodeExecution] + """ + + self._node_executions = node_executions + + @property + def token(self): + """Gets the token of this AdminNodeExecutionList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminNodeExecutionList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminNodeExecutionList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminNodeExecutionList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_meta_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_meta_data.py new file mode 100644 index 0000000000..659ad1f3c3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_meta_data.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminNodeExecutionMetaData(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'retry_group': 'str', + 'is_parent_node': 'bool', + 'spec_node_id': 'str', + 'is_dynamic': 'bool' + } + + attribute_map = { + 'retry_group': 'retry_group', + 'is_parent_node': 'is_parent_node', + 'spec_node_id': 'spec_node_id', + 'is_dynamic': 'is_dynamic' + } + + def __init__(self, retry_group=None, is_parent_node=None, spec_node_id=None, is_dynamic=None): # noqa: E501 + """AdminNodeExecutionMetaData - a model defined in Swagger""" # noqa: E501 + + self._retry_group = None + self._is_parent_node = None + self._spec_node_id = None + self._is_dynamic = None + self.discriminator = None + + if retry_group is not None: + self.retry_group = retry_group + if is_parent_node is not None: + self.is_parent_node = is_parent_node + if spec_node_id is not None: + self.spec_node_id = spec_node_id + if is_dynamic is not None: + self.is_dynamic = is_dynamic + + @property + def retry_group(self): + """Gets the retry_group of this AdminNodeExecutionMetaData. # noqa: E501 + + Node executions are grouped depending on retries of the parent Retry group is unique within the context of a parent node. # noqa: E501 + + :return: The retry_group of this AdminNodeExecutionMetaData. # noqa: E501 + :rtype: str + """ + return self._retry_group + + @retry_group.setter + def retry_group(self, retry_group): + """Sets the retry_group of this AdminNodeExecutionMetaData. + + Node executions are grouped depending on retries of the parent Retry group is unique within the context of a parent node. # noqa: E501 + + :param retry_group: The retry_group of this AdminNodeExecutionMetaData. # noqa: E501 + :type: str + """ + + self._retry_group = retry_group + + @property + def is_parent_node(self): + """Gets the is_parent_node of this AdminNodeExecutionMetaData. # noqa: E501 + + Boolean flag indicating if the node has child nodes under it This can be true when a node contains a dynamic workflow which then produces child nodes. # noqa: E501 + + :return: The is_parent_node of this AdminNodeExecutionMetaData. # noqa: E501 + :rtype: bool + """ + return self._is_parent_node + + @is_parent_node.setter + def is_parent_node(self, is_parent_node): + """Sets the is_parent_node of this AdminNodeExecutionMetaData. + + Boolean flag indicating if the node has child nodes under it This can be true when a node contains a dynamic workflow which then produces child nodes. # noqa: E501 + + :param is_parent_node: The is_parent_node of this AdminNodeExecutionMetaData. # noqa: E501 + :type: bool + """ + + self._is_parent_node = is_parent_node + + @property + def spec_node_id(self): + """Gets the spec_node_id of this AdminNodeExecutionMetaData. # noqa: E501 + + + :return: The spec_node_id of this AdminNodeExecutionMetaData. # noqa: E501 + :rtype: str + """ + return self._spec_node_id + + @spec_node_id.setter + def spec_node_id(self, spec_node_id): + """Sets the spec_node_id of this AdminNodeExecutionMetaData. + + + :param spec_node_id: The spec_node_id of this AdminNodeExecutionMetaData. # noqa: E501 + :type: str + """ + + self._spec_node_id = spec_node_id + + @property + def is_dynamic(self): + """Gets the is_dynamic of this AdminNodeExecutionMetaData. # noqa: E501 + + Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. # noqa: E501 + + :return: The is_dynamic of this AdminNodeExecutionMetaData. # noqa: E501 + :rtype: bool + """ + return self._is_dynamic + + @is_dynamic.setter + def is_dynamic(self, is_dynamic): + """Sets the is_dynamic of this AdminNodeExecutionMetaData. + + Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. # noqa: E501 + + :param is_dynamic: The is_dynamic of this AdminNodeExecutionMetaData. # noqa: E501 + :type: bool + """ + + self._is_dynamic = is_dynamic + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionMetaData, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionMetaData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py new file mode 100644 index 0000000000..8232eed6bb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_email_notification import AdminEmailNotification # noqa: F401,E501 +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification # noqa: F401,E501 +from flyteadmin.models.admin_slack_notification import AdminSlackNotification # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 + + +class AdminNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'phases': 'list[CoreWorkflowExecutionPhase]', + 'email': 'AdminEmailNotification', + 'pager_duty': 'AdminPagerDutyNotification', + 'slack': 'AdminSlackNotification' + } + + attribute_map = { + 'phases': 'phases', + 'email': 'email', + 'pager_duty': 'pager_duty', + 'slack': 'slack' + } + + def __init__(self, phases=None, email=None, pager_duty=None, slack=None): # noqa: E501 + """AdminNotification - a model defined in Swagger""" # noqa: E501 + + self._phases = None + self._email = None + self._pager_duty = None + self._slack = None + self.discriminator = None + + if phases is not None: + self.phases = phases + if email is not None: + self.email = email + if pager_duty is not None: + self.pager_duty = pager_duty + if slack is not None: + self.slack = slack + + @property + def phases(self): + """Gets the phases of this AdminNotification. # noqa: E501 + + + :return: The phases of this AdminNotification. # noqa: E501 + :rtype: list[CoreWorkflowExecutionPhase] + """ + return self._phases + + @phases.setter + def phases(self, phases): + """Sets the phases of this AdminNotification. + + + :param phases: The phases of this AdminNotification. # noqa: E501 + :type: list[CoreWorkflowExecutionPhase] + """ + + self._phases = phases + + @property + def email(self): + """Gets the email of this AdminNotification. # noqa: E501 + + + :return: The email of this AdminNotification. # noqa: E501 + :rtype: AdminEmailNotification + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this AdminNotification. + + + :param email: The email of this AdminNotification. # noqa: E501 + :type: AdminEmailNotification + """ + + self._email = email + + @property + def pager_duty(self): + """Gets the pager_duty of this AdminNotification. # noqa: E501 + + + :return: The pager_duty of this AdminNotification. # noqa: E501 + :rtype: AdminPagerDutyNotification + """ + return self._pager_duty + + @pager_duty.setter + def pager_duty(self, pager_duty): + """Sets the pager_duty of this AdminNotification. + + + :param pager_duty: The pager_duty of this AdminNotification. # noqa: E501 + :type: AdminPagerDutyNotification + """ + + self._pager_duty = pager_duty + + @property + def slack(self): + """Gets the slack of this AdminNotification. # noqa: E501 + + + :return: The slack of this AdminNotification. # noqa: E501 + :rtype: AdminSlackNotification + """ + return self._slack + + @slack.setter + def slack(self, slack): + """Sets the slack of this AdminNotification. + + + :param slack: The slack of this AdminNotification. # noqa: E501 + :type: AdminSlackNotification + """ + + self._slack = slack + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py new file mode 100644 index 0000000000..200a0b1fee --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 + + +class AdminNotificationList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'notifications': 'list[AdminNotification]' + } + + attribute_map = { + 'notifications': 'notifications' + } + + def __init__(self, notifications=None): # noqa: E501 + """AdminNotificationList - a model defined in Swagger""" # noqa: E501 + + self._notifications = None + self.discriminator = None + + if notifications is not None: + self.notifications = notifications + + @property + def notifications(self): + """Gets the notifications of this AdminNotificationList. # noqa: E501 + + + :return: The notifications of this AdminNotificationList. # noqa: E501 + :rtype: list[AdminNotification] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminNotificationList. + + + :param notifications: The notifications of this AdminNotificationList. # noqa: E501 + :type: list[AdminNotification] + """ + + self._notifications = notifications + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNotificationList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNotificationList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py new file mode 100644 index 0000000000..4dccfa645d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminPagerDutyNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'recipients_email': 'list[str]' + } + + attribute_map = { + 'recipients_email': 'recipients_email' + } + + def __init__(self, recipients_email=None): # noqa: E501 + """AdminPagerDutyNotification - a model defined in Swagger""" # noqa: E501 + + self._recipients_email = None + self.discriminator = None + + if recipients_email is not None: + self.recipients_email = recipients_email + + @property + def recipients_email(self): + """Gets the recipients_email of this AdminPagerDutyNotification. # noqa: E501 + + + :return: The recipients_email of this AdminPagerDutyNotification. # noqa: E501 + :rtype: list[str] + """ + return self._recipients_email + + @recipients_email.setter + def recipients_email(self, recipients_email): + """Sets the recipients_email of this AdminPagerDutyNotification. + + + :param recipients_email: The recipients_email of this AdminPagerDutyNotification. # noqa: E501 + :type: list[str] + """ + + self._recipients_email = recipients_email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminPagerDutyNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminPagerDutyNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_override.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_override.py new file mode 100644 index 0000000000..b339f7c515 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_override.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior # noqa: F401,E501 + + +class AdminPluginOverride(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_type': 'str', + 'plugin_id': 'list[str]', + 'missing_plugin_behavior': 'PluginOverrideMissingPluginBehavior' + } + + attribute_map = { + 'task_type': 'task_type', + 'plugin_id': 'plugin_id', + 'missing_plugin_behavior': 'missing_plugin_behavior' + } + + def __init__(self, task_type=None, plugin_id=None, missing_plugin_behavior=None): # noqa: E501 + """AdminPluginOverride - a model defined in Swagger""" # noqa: E501 + + self._task_type = None + self._plugin_id = None + self._missing_plugin_behavior = None + self.discriminator = None + + if task_type is not None: + self.task_type = task_type + if plugin_id is not None: + self.plugin_id = plugin_id + if missing_plugin_behavior is not None: + self.missing_plugin_behavior = missing_plugin_behavior + + @property + def task_type(self): + """Gets the task_type of this AdminPluginOverride. # noqa: E501 + + A predefined yet extensible Task type identifier. # noqa: E501 + + :return: The task_type of this AdminPluginOverride. # noqa: E501 + :rtype: str + """ + return self._task_type + + @task_type.setter + def task_type(self, task_type): + """Sets the task_type of this AdminPluginOverride. + + A predefined yet extensible Task type identifier. # noqa: E501 + + :param task_type: The task_type of this AdminPluginOverride. # noqa: E501 + :type: str + """ + + self._task_type = task_type + + @property + def plugin_id(self): + """Gets the plugin_id of this AdminPluginOverride. # noqa: E501 + + A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. # noqa: E501 + + :return: The plugin_id of this AdminPluginOverride. # noqa: E501 + :rtype: list[str] + """ + return self._plugin_id + + @plugin_id.setter + def plugin_id(self, plugin_id): + """Sets the plugin_id of this AdminPluginOverride. + + A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. # noqa: E501 + + :param plugin_id: The plugin_id of this AdminPluginOverride. # noqa: E501 + :type: list[str] + """ + + self._plugin_id = plugin_id + + @property + def missing_plugin_behavior(self): + """Gets the missing_plugin_behavior of this AdminPluginOverride. # noqa: E501 + + Defines the behavior when no plugin from the plugin_id list is not found. # noqa: E501 + + :return: The missing_plugin_behavior of this AdminPluginOverride. # noqa: E501 + :rtype: PluginOverrideMissingPluginBehavior + """ + return self._missing_plugin_behavior + + @missing_plugin_behavior.setter + def missing_plugin_behavior(self, missing_plugin_behavior): + """Sets the missing_plugin_behavior of this AdminPluginOverride. + + Defines the behavior when no plugin from the plugin_id list is not found. # noqa: E501 + + :param missing_plugin_behavior: The missing_plugin_behavior of this AdminPluginOverride. # noqa: E501 + :type: PluginOverrideMissingPluginBehavior + """ + + self._missing_plugin_behavior = missing_plugin_behavior + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminPluginOverride, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminPluginOverride): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_overrides.py new file mode 100644 index 0000000000..3831ab8d71 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_overrides.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_plugin_override import AdminPluginOverride # noqa: F401,E501 + + +class AdminPluginOverrides(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'overrides': 'list[AdminPluginOverride]' + } + + attribute_map = { + 'overrides': 'overrides' + } + + def __init__(self, overrides=None): # noqa: E501 + """AdminPluginOverrides - a model defined in Swagger""" # noqa: E501 + + self._overrides = None + self.discriminator = None + + if overrides is not None: + self.overrides = overrides + + @property + def overrides(self): + """Gets the overrides of this AdminPluginOverrides. # noqa: E501 + + + :return: The overrides of this AdminPluginOverrides. # noqa: E501 + :rtype: list[AdminPluginOverride] + """ + return self._overrides + + @overrides.setter + def overrides(self, overrides): + """Sets the overrides of this AdminPluginOverrides. + + + :param overrides: The overrides of this AdminPluginOverrides. # noqa: E501 + :type: list[AdminPluginOverride] + """ + + self._overrides = overrides + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminPluginOverrides, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminPluginOverrides): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py new file mode 100644 index 0000000000..1d64553b8f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_domain import AdminDomain # noqa: F401,E501 +from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 +from flyteadmin.models.project_project_state import ProjectProjectState # noqa: F401,E501 + + +class AdminProject(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'domains': 'list[AdminDomain]', + 'description': 'str', + 'labels': 'AdminLabels', + 'state': 'ProjectProjectState' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'domains': 'domains', + 'description': 'description', + 'labels': 'labels', + 'state': 'state' + } + + def __init__(self, id=None, name=None, domains=None, description=None, labels=None, state=None): # noqa: E501 + """AdminProject - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._domains = None + self._description = None + self._labels = None + self._state = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if domains is not None: + self.domains = domains + if description is not None: + self.description = description + if labels is not None: + self.labels = labels + if state is not None: + self.state = state + + @property + def id(self): + """Gets the id of this AdminProject. # noqa: E501 + + Globally unique project name. # noqa: E501 + + :return: The id of this AdminProject. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminProject. + + Globally unique project name. # noqa: E501 + + :param id: The id of this AdminProject. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AdminProject. # noqa: E501 + + Display name. # noqa: E501 + + :return: The name of this AdminProject. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminProject. + + Display name. # noqa: E501 + + :param name: The name of this AdminProject. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def domains(self): + """Gets the domains of this AdminProject. # noqa: E501 + + + :return: The domains of this AdminProject. # noqa: E501 + :rtype: list[AdminDomain] + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this AdminProject. + + + :param domains: The domains of this AdminProject. # noqa: E501 + :type: list[AdminDomain] + """ + + self._domains = domains + + @property + def description(self): + """Gets the description of this AdminProject. # noqa: E501 + + + :return: The description of this AdminProject. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AdminProject. + + + :param description: The description of this AdminProject. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def labels(self): + """Gets the labels of this AdminProject. # noqa: E501 + + Leverage Labels from flyteidl.admin.common.proto to tag projects with ownership information. # noqa: E501 + + :return: The labels of this AdminProject. # noqa: E501 + :rtype: AdminLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this AdminProject. + + Leverage Labels from flyteidl.admin.common.proto to tag projects with ownership information. # noqa: E501 + + :param labels: The labels of this AdminProject. # noqa: E501 + :type: AdminLabels + """ + + self._labels = labels + + @property + def state(self): + """Gets the state of this AdminProject. # noqa: E501 + + + :return: The state of this AdminProject. # noqa: E501 + :rtype: ProjectProjectState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminProject. + + + :param state: The state of this AdminProject. # noqa: E501 + :type: ProjectProjectState + """ + + self._state = state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProject, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes.py new file mode 100644 index 0000000000..a892f96441 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 + + +class AdminProjectAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'matching_attributes': 'AdminMatchingAttributes' + } + + attribute_map = { + 'project': 'project', + 'matching_attributes': 'matching_attributes' + } + + def __init__(self, project=None, matching_attributes=None): # noqa: E501 + """AdminProjectAttributes - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._matching_attributes = None + self.discriminator = None + + if project is not None: + self.project = project + if matching_attributes is not None: + self.matching_attributes = matching_attributes + + @property + def project(self): + """Gets the project of this AdminProjectAttributes. # noqa: E501 + + Unique project id for which this set of attributes will be applied. # noqa: E501 + + :return: The project of this AdminProjectAttributes. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminProjectAttributes. + + Unique project id for which this set of attributes will be applied. # noqa: E501 + + :param project: The project of this AdminProjectAttributes. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def matching_attributes(self): + """Gets the matching_attributes of this AdminProjectAttributes. # noqa: E501 + + + :return: The matching_attributes of this AdminProjectAttributes. # noqa: E501 + :rtype: AdminMatchingAttributes + """ + return self._matching_attributes + + @matching_attributes.setter + def matching_attributes(self, matching_attributes): + """Sets the matching_attributes of this AdminProjectAttributes. + + + :param matching_attributes: The matching_attributes of this AdminProjectAttributes. # noqa: E501 + :type: AdminMatchingAttributes + """ + + self._matching_attributes = matching_attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_request.py new file mode 100644 index 0000000000..5b41e2c590 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: F401,E501 + + +class AdminProjectAttributesDeleteRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'resource_type': 'AdminMatchableResource' + } + + attribute_map = { + 'project': 'project', + 'resource_type': 'resource_type' + } + + def __init__(self, project=None, resource_type=None): # noqa: E501 + """AdminProjectAttributesDeleteRequest - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._resource_type = None + self.discriminator = None + + if project is not None: + self.project = project + if resource_type is not None: + self.resource_type = resource_type + + @property + def project(self): + """Gets the project of this AdminProjectAttributesDeleteRequest. # noqa: E501 + + + :return: The project of this AdminProjectAttributesDeleteRequest. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminProjectAttributesDeleteRequest. + + + :param project: The project of this AdminProjectAttributesDeleteRequest. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def resource_type(self): + """Gets the resource_type of this AdminProjectAttributesDeleteRequest. # noqa: E501 + + + :return: The resource_type of this AdminProjectAttributesDeleteRequest. # noqa: E501 + :rtype: AdminMatchableResource + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this AdminProjectAttributesDeleteRequest. + + + :param resource_type: The resource_type of this AdminProjectAttributesDeleteRequest. # noqa: E501 + :type: AdminMatchableResource + """ + + self._resource_type = resource_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectAttributesDeleteRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectAttributesDeleteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_response.py new file mode 100644 index 0000000000..209a2a9e77 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminProjectAttributesDeleteResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminProjectAttributesDeleteResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectAttributesDeleteResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectAttributesDeleteResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_get_response.py new file mode 100644 index 0000000000..4f9491dc32 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_get_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project_attributes import AdminProjectAttributes # noqa: F401,E501 + + +class AdminProjectAttributesGetResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'AdminProjectAttributes' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): # noqa: E501 + """AdminProjectAttributesGetResponse - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this AdminProjectAttributesGetResponse. # noqa: E501 + + + :return: The attributes of this AdminProjectAttributesGetResponse. # noqa: E501 + :rtype: AdminProjectAttributes + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminProjectAttributesGetResponse. + + + :param attributes: The attributes of this AdminProjectAttributesGetResponse. # noqa: E501 + :type: AdminProjectAttributes + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectAttributesGetResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectAttributesGetResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_request.py new file mode 100644 index 0000000000..2f177136d8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project_attributes import AdminProjectAttributes # noqa: F401,E501 + + +class AdminProjectAttributesUpdateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'AdminProjectAttributes' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): # noqa: E501 + """AdminProjectAttributesUpdateRequest - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this AdminProjectAttributesUpdateRequest. # noqa: E501 + + + :return: The attributes of this AdminProjectAttributesUpdateRequest. # noqa: E501 + :rtype: AdminProjectAttributes + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminProjectAttributesUpdateRequest. + + + :param attributes: The attributes of this AdminProjectAttributesUpdateRequest. # noqa: E501 + :type: AdminProjectAttributes + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectAttributesUpdateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectAttributesUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_response.py new file mode 100644 index 0000000000..dcaa484fbb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminProjectAttributesUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminProjectAttributesUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectAttributesUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectAttributesUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes.py new file mode 100644 index 0000000000..0c7d6e4559 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 + + +class AdminProjectDomainAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'matching_attributes': 'AdminMatchingAttributes' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'matching_attributes': 'matching_attributes' + } + + def __init__(self, project=None, domain=None, matching_attributes=None): # noqa: E501 + """AdminProjectDomainAttributes - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._matching_attributes = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if matching_attributes is not None: + self.matching_attributes = matching_attributes + + @property + def project(self): + """Gets the project of this AdminProjectDomainAttributes. # noqa: E501 + + Unique project id for which this set of attributes will be applied. # noqa: E501 + + :return: The project of this AdminProjectDomainAttributes. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminProjectDomainAttributes. + + Unique project id for which this set of attributes will be applied. # noqa: E501 + + :param project: The project of this AdminProjectDomainAttributes. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminProjectDomainAttributes. # noqa: E501 + + Unique domain id for which this set of attributes will be applied. # noqa: E501 + + :return: The domain of this AdminProjectDomainAttributes. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminProjectDomainAttributes. + + Unique domain id for which this set of attributes will be applied. # noqa: E501 + + :param domain: The domain of this AdminProjectDomainAttributes. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def matching_attributes(self): + """Gets the matching_attributes of this AdminProjectDomainAttributes. # noqa: E501 + + + :return: The matching_attributes of this AdminProjectDomainAttributes. # noqa: E501 + :rtype: AdminMatchingAttributes + """ + return self._matching_attributes + + @matching_attributes.setter + def matching_attributes(self, matching_attributes): + """Sets the matching_attributes of this AdminProjectDomainAttributes. + + + :param matching_attributes: The matching_attributes of this AdminProjectDomainAttributes. # noqa: E501 + :type: AdminMatchingAttributes + """ + + self._matching_attributes = matching_attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectDomainAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectDomainAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_request.py new file mode 100644 index 0000000000..aef8bfa14f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_request.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: F401,E501 + + +class AdminProjectDomainAttributesDeleteRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'resource_type': 'AdminMatchableResource' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'resource_type': 'resource_type' + } + + def __init__(self, project=None, domain=None, resource_type=None): # noqa: E501 + """AdminProjectDomainAttributesDeleteRequest - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._resource_type = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if resource_type is not None: + self.resource_type = resource_type + + @property + def project(self): + """Gets the project of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + + + :return: The project of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminProjectDomainAttributesDeleteRequest. + + + :param project: The project of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + + + :return: The domain of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminProjectDomainAttributesDeleteRequest. + + + :param domain: The domain of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def resource_type(self): + """Gets the resource_type of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + + + :return: The resource_type of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + :rtype: AdminMatchableResource + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this AdminProjectDomainAttributesDeleteRequest. + + + :param resource_type: The resource_type of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 + :type: AdminMatchableResource + """ + + self._resource_type = resource_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectDomainAttributesDeleteRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectDomainAttributesDeleteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_response.py new file mode 100644 index 0000000000..7226075a04 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminProjectDomainAttributesDeleteResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminProjectDomainAttributesDeleteResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectDomainAttributesDeleteResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectDomainAttributesDeleteResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_get_response.py new file mode 100644 index 0000000000..e73d95a829 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_get_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes # noqa: F401,E501 + + +class AdminProjectDomainAttributesGetResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'AdminProjectDomainAttributes' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): # noqa: E501 + """AdminProjectDomainAttributesGetResponse - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this AdminProjectDomainAttributesGetResponse. # noqa: E501 + + + :return: The attributes of this AdminProjectDomainAttributesGetResponse. # noqa: E501 + :rtype: AdminProjectDomainAttributes + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminProjectDomainAttributesGetResponse. + + + :param attributes: The attributes of this AdminProjectDomainAttributesGetResponse. # noqa: E501 + :type: AdminProjectDomainAttributes + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectDomainAttributesGetResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectDomainAttributesGetResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_request.py new file mode 100644 index 0000000000..983e8d3ae4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes # noqa: F401,E501 + + +class AdminProjectDomainAttributesUpdateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'AdminProjectDomainAttributes' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): # noqa: E501 + """AdminProjectDomainAttributesUpdateRequest - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this AdminProjectDomainAttributesUpdateRequest. # noqa: E501 + + + :return: The attributes of this AdminProjectDomainAttributesUpdateRequest. # noqa: E501 + :rtype: AdminProjectDomainAttributes + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminProjectDomainAttributesUpdateRequest. + + + :param attributes: The attributes of this AdminProjectDomainAttributesUpdateRequest. # noqa: E501 + :type: AdminProjectDomainAttributes + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectDomainAttributesUpdateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectDomainAttributesUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_response.py new file mode 100644 index 0000000000..aa2ed8327f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminProjectDomainAttributesUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminProjectDomainAttributesUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectDomainAttributesUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectDomainAttributesUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py new file mode 100644 index 0000000000..bbc2a0d94c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project import AdminProject # noqa: F401,E501 + + +class AdminProjectRegisterRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'AdminProject' + } + + attribute_map = { + 'project': 'project' + } + + def __init__(self, project=None): # noqa: E501 + """AdminProjectRegisterRequest - a model defined in Swagger""" # noqa: E501 + + self._project = None + self.discriminator = None + + if project is not None: + self.project = project + + @property + def project(self): + """Gets the project of this AdminProjectRegisterRequest. # noqa: E501 + + + :return: The project of this AdminProjectRegisterRequest. # noqa: E501 + :rtype: AdminProject + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminProjectRegisterRequest. + + + :param project: The project of this AdminProjectRegisterRequest. # noqa: E501 + :type: AdminProject + """ + + self._project = project + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectRegisterRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectRegisterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py new file mode 100644 index 0000000000..e6868b0516 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminProjectRegisterResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminProjectRegisterResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectRegisterResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectRegisterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_update_response.py new file mode 100644 index 0000000000..4b48a4ac22 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminProjectUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminProjectUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py new file mode 100644 index 0000000000..cff2ec4084 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project import AdminProject # noqa: F401,E501 + + +class AdminProjects(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'projects': 'list[AdminProject]', + 'token': 'str' + } + + attribute_map = { + 'projects': 'projects', + 'token': 'token' + } + + def __init__(self, projects=None, token=None): # noqa: E501 + """AdminProjects - a model defined in Swagger""" # noqa: E501 + + self._projects = None + self._token = None + self.discriminator = None + + if projects is not None: + self.projects = projects + if token is not None: + self.token = token + + @property + def projects(self): + """Gets the projects of this AdminProjects. # noqa: E501 + + + :return: The projects of this AdminProjects. # noqa: E501 + :rtype: list[AdminProject] + """ + return self._projects + + @projects.setter + def projects(self, projects): + """Sets the projects of this AdminProjects. + + + :param projects: The projects of this AdminProjects. # noqa: E501 + :type: list[AdminProject] + """ + + self._projects = projects + + @property + def token(self): + """Gets the token of this AdminProjects. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminProjects. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminProjects. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminProjects. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjects, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjects): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_raw_output_data_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_raw_output_data_config.py new file mode 100644 index 0000000000..4d7e209660 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_raw_output_data_config.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminRawOutputDataConfig(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'output_location_prefix': 'str' + } + + attribute_map = { + 'output_location_prefix': 'output_location_prefix' + } + + def __init__(self, output_location_prefix=None): # noqa: E501 + """AdminRawOutputDataConfig - a model defined in Swagger""" # noqa: E501 + + self._output_location_prefix = None + self.discriminator = None + + if output_location_prefix is not None: + self.output_location_prefix = output_location_prefix + + @property + def output_location_prefix(self): + """Gets the output_location_prefix of this AdminRawOutputDataConfig. # noqa: E501 + + + :return: The output_location_prefix of this AdminRawOutputDataConfig. # noqa: E501 + :rtype: str + """ + return self._output_location_prefix + + @output_location_prefix.setter + def output_location_prefix(self, output_location_prefix): + """Sets the output_location_prefix of this AdminRawOutputDataConfig. + + + :param output_location_prefix: The output_location_prefix of this AdminRawOutputDataConfig. # noqa: E501 + :type: str + """ + + self._output_location_prefix = output_location_prefix + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminRawOutputDataConfig, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminRawOutputDataConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_reason.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_reason.py new file mode 100644 index 0000000000..bf839c6b14 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_reason.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminReason(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'occurred_at': 'datetime', + 'message': 'str' + } + + attribute_map = { + 'occurred_at': 'occurred_at', + 'message': 'message' + } + + def __init__(self, occurred_at=None, message=None): # noqa: E501 + """AdminReason - a model defined in Swagger""" # noqa: E501 + + self._occurred_at = None + self._message = None + self.discriminator = None + + if occurred_at is not None: + self.occurred_at = occurred_at + if message is not None: + self.message = message + + @property + def occurred_at(self): + """Gets the occurred_at of this AdminReason. # noqa: E501 + + occurred_at is the timestamp indicating the instant that this reason happened. # noqa: E501 + + :return: The occurred_at of this AdminReason. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this AdminReason. + + occurred_at is the timestamp indicating the instant that this reason happened. # noqa: E501 + + :param occurred_at: The occurred_at of this AdminReason. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def message(self): + """Gets the message of this AdminReason. # noqa: E501 + + message is the explanation for the most recent phase transition or status update. # noqa: E501 + + :return: The message of this AdminReason. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this AdminReason. + + message is the explanation for the most recent phase transition or status update. # noqa: E501 + + :param message: The message of this AdminReason. # noqa: E501 + :type: str + """ + + self._message = message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminReason, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminReason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py new file mode 100644 index 0000000000..835766fa8b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_cron_schedule import AdminCronSchedule # noqa: F401,E501 +from flyteadmin.models.admin_fixed_rate import AdminFixedRate # noqa: F401,E501 + + +class AdminSchedule(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cron_expression': 'str', + 'rate': 'AdminFixedRate', + 'cron_schedule': 'AdminCronSchedule', + 'kickoff_time_input_arg': 'str' + } + + attribute_map = { + 'cron_expression': 'cron_expression', + 'rate': 'rate', + 'cron_schedule': 'cron_schedule', + 'kickoff_time_input_arg': 'kickoff_time_input_arg' + } + + def __init__(self, cron_expression=None, rate=None, cron_schedule=None, kickoff_time_input_arg=None): # noqa: E501 + """AdminSchedule - a model defined in Swagger""" # noqa: E501 + + self._cron_expression = None + self._rate = None + self._cron_schedule = None + self._kickoff_time_input_arg = None + self.discriminator = None + + if cron_expression is not None: + self.cron_expression = cron_expression + if rate is not None: + self.rate = rate + if cron_schedule is not None: + self.cron_schedule = cron_schedule + if kickoff_time_input_arg is not None: + self.kickoff_time_input_arg = kickoff_time_input_arg + + @property + def cron_expression(self): + """Gets the cron_expression of this AdminSchedule. # noqa: E501 + + + :return: The cron_expression of this AdminSchedule. # noqa: E501 + :rtype: str + """ + return self._cron_expression + + @cron_expression.setter + def cron_expression(self, cron_expression): + """Sets the cron_expression of this AdminSchedule. + + + :param cron_expression: The cron_expression of this AdminSchedule. # noqa: E501 + :type: str + """ + + self._cron_expression = cron_expression + + @property + def rate(self): + """Gets the rate of this AdminSchedule. # noqa: E501 + + + :return: The rate of this AdminSchedule. # noqa: E501 + :rtype: AdminFixedRate + """ + return self._rate + + @rate.setter + def rate(self, rate): + """Sets the rate of this AdminSchedule. + + + :param rate: The rate of this AdminSchedule. # noqa: E501 + :type: AdminFixedRate + """ + + self._rate = rate + + @property + def cron_schedule(self): + """Gets the cron_schedule of this AdminSchedule. # noqa: E501 + + + :return: The cron_schedule of this AdminSchedule. # noqa: E501 + :rtype: AdminCronSchedule + """ + return self._cron_schedule + + @cron_schedule.setter + def cron_schedule(self, cron_schedule): + """Sets the cron_schedule of this AdminSchedule. + + + :param cron_schedule: The cron_schedule of this AdminSchedule. # noqa: E501 + :type: AdminCronSchedule + """ + + self._cron_schedule = cron_schedule + + @property + def kickoff_time_input_arg(self): + """Gets the kickoff_time_input_arg of this AdminSchedule. # noqa: E501 + + Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. # noqa: E501 + + :return: The kickoff_time_input_arg of this AdminSchedule. # noqa: E501 + :rtype: str + """ + return self._kickoff_time_input_arg + + @kickoff_time_input_arg.setter + def kickoff_time_input_arg(self, kickoff_time_input_arg): + """Sets the kickoff_time_input_arg of this AdminSchedule. + + Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. # noqa: E501 + + :param kickoff_time_input_arg: The kickoff_time_input_arg of this AdminSchedule. # noqa: E501 + :type: str + """ + + self._kickoff_time_input_arg = kickoff_time_input_arg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSchedule, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSchedule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py new file mode 100644 index 0000000000..d282c7f687 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminSlackNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'recipients_email': 'list[str]' + } + + attribute_map = { + 'recipients_email': 'recipients_email' + } + + def __init__(self, recipients_email=None): # noqa: E501 + """AdminSlackNotification - a model defined in Swagger""" # noqa: E501 + + self._recipients_email = None + self.discriminator = None + + if recipients_email is not None: + self.recipients_email = recipients_email + + @property + def recipients_email(self): + """Gets the recipients_email of this AdminSlackNotification. # noqa: E501 + + + :return: The recipients_email of this AdminSlackNotification. # noqa: E501 + :rtype: list[str] + """ + return self._recipients_email + + @recipients_email.setter + def recipients_email(self, recipients_email): + """Sets the recipients_email of this AdminSlackNotification. + + + :param recipients_email: The recipients_email of this AdminSlackNotification. # noqa: E501 + :type: list[str] + """ + + self._recipients_email = recipients_email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSlackNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSlackNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py new file mode 100644 index 0000000000..98d6a62bc7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.sort_direction import SortDirection # noqa: F401,E501 + + +class AdminSort(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'direction': 'SortDirection' + } + + attribute_map = { + 'key': 'key', + 'direction': 'direction' + } + + def __init__(self, key=None, direction=None): # noqa: E501 + """AdminSort - a model defined in Swagger""" # noqa: E501 + + self._key = None + self._direction = None + self.discriminator = None + + if key is not None: + self.key = key + if direction is not None: + self.direction = direction + + @property + def key(self): + """Gets the key of this AdminSort. # noqa: E501 + + + :return: The key of this AdminSort. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this AdminSort. + + + :param key: The key of this AdminSort. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def direction(self): + """Gets the direction of this AdminSort. # noqa: E501 + + + :return: The direction of this AdminSort. # noqa: E501 + :rtype: SortDirection + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this AdminSort. + + + :param direction: The direction of this AdminSort. # noqa: E501 + :type: SortDirection + """ + + self._direction = direction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSort, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSort): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_source_code.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_source_code.py new file mode 100644 index 0000000000..4f96d6165f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_source_code.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminSourceCode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'link': 'str' + } + + attribute_map = { + 'link': 'link' + } + + def __init__(self, link=None): # noqa: E501 + """AdminSourceCode - a model defined in Swagger""" # noqa: E501 + + self._link = None + self.discriminator = None + + if link is not None: + self.link = link + + @property + def link(self): + """Gets the link of this AdminSourceCode. # noqa: E501 + + + :return: The link of this AdminSourceCode. # noqa: E501 + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this AdminSourceCode. + + + :param link: The link of this AdminSourceCode. # noqa: E501 + :type: str + """ + + self._link = link + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSourceCode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSourceCode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_system_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_system_metadata.py new file mode 100644 index 0000000000..b5f2200a2f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_system_metadata.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminSystemMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_cluster': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'execution_cluster': 'execution_cluster', + 'namespace': 'namespace' + } + + def __init__(self, execution_cluster=None, namespace=None): # noqa: E501 + """AdminSystemMetadata - a model defined in Swagger""" # noqa: E501 + + self._execution_cluster = None + self._namespace = None + self.discriminator = None + + if execution_cluster is not None: + self.execution_cluster = execution_cluster + if namespace is not None: + self.namespace = namespace + + @property + def execution_cluster(self): + """Gets the execution_cluster of this AdminSystemMetadata. # noqa: E501 + + Which execution cluster this execution ran on. # noqa: E501 + + :return: The execution_cluster of this AdminSystemMetadata. # noqa: E501 + :rtype: str + """ + return self._execution_cluster + + @execution_cluster.setter + def execution_cluster(self, execution_cluster): + """Sets the execution_cluster of this AdminSystemMetadata. + + Which execution cluster this execution ran on. # noqa: E501 + + :param execution_cluster: The execution_cluster of this AdminSystemMetadata. # noqa: E501 + :type: str + """ + + self._execution_cluster = execution_cluster + + @property + def namespace(self): + """Gets the namespace of this AdminSystemMetadata. # noqa: E501 + + Which kubernetes namespace the execution ran under. # noqa: E501 + + :return: The namespace of this AdminSystemMetadata. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this AdminSystemMetadata. + + Which kubernetes namespace the execution ran under. # noqa: E501 + + :param namespace: The namespace of this AdminSystemMetadata. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSystemMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSystemMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py new file mode 100644 index 0000000000..11bc5e1cae --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task_closure import AdminTaskClosure # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminTask(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'closure': 'AdminTaskClosure', + 'short_description': 'str' + } + + attribute_map = { + 'id': 'id', + 'closure': 'closure', + 'short_description': 'short_description' + } + + def __init__(self, id=None, closure=None, short_description=None): # noqa: E501 + """AdminTask - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._closure = None + self._short_description = None + self.discriminator = None + + if id is not None: + self.id = id + if closure is not None: + self.closure = closure + if short_description is not None: + self.short_description = short_description + + @property + def id(self): + """Gets the id of this AdminTask. # noqa: E501 + + id represents the unique identifier of the task. # noqa: E501 + + :return: The id of this AdminTask. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminTask. + + id represents the unique identifier of the task. # noqa: E501 + + :param id: The id of this AdminTask. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def closure(self): + """Gets the closure of this AdminTask. # noqa: E501 + + closure encapsulates all the fields that maps to a compiled version of the task. # noqa: E501 + + :return: The closure of this AdminTask. # noqa: E501 + :rtype: AdminTaskClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminTask. + + closure encapsulates all the fields that maps to a compiled version of the task. # noqa: E501 + + :param closure: The closure of this AdminTask. # noqa: E501 + :type: AdminTaskClosure + """ + + self._closure = closure + + @property + def short_description(self): + """Gets the short_description of this AdminTask. # noqa: E501 + + One-liner overview of the entity. # noqa: E501 + + :return: The short_description of this AdminTask. # noqa: E501 + :rtype: str + """ + return self._short_description + + @short_description.setter + def short_description(self, short_description): + """Sets the short_description of this AdminTask. + + One-liner overview of the entity. # noqa: E501 + + :param short_description: The short_description of this AdminTask. # noqa: E501 + :type: str + """ + + self._short_description = short_description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTask, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTask): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py new file mode 100644 index 0000000000..d43a096309 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: F401,E501 + + +class AdminTaskClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'compiled_task': 'CoreCompiledTask', + 'created_at': 'datetime' + } + + attribute_map = { + 'compiled_task': 'compiled_task', + 'created_at': 'created_at' + } + + def __init__(self, compiled_task=None, created_at=None): # noqa: E501 + """AdminTaskClosure - a model defined in Swagger""" # noqa: E501 + + self._compiled_task = None + self._created_at = None + self.discriminator = None + + if compiled_task is not None: + self.compiled_task = compiled_task + if created_at is not None: + self.created_at = created_at + + @property + def compiled_task(self): + """Gets the compiled_task of this AdminTaskClosure. # noqa: E501 + + Represents the compiled representation of the task from the specification provided. # noqa: E501 + + :return: The compiled_task of this AdminTaskClosure. # noqa: E501 + :rtype: CoreCompiledTask + """ + return self._compiled_task + + @compiled_task.setter + def compiled_task(self, compiled_task): + """Sets the compiled_task of this AdminTaskClosure. + + Represents the compiled representation of the task from the specification provided. # noqa: E501 + + :param compiled_task: The compiled_task of this AdminTaskClosure. # noqa: E501 + :type: CoreCompiledTask + """ + + self._compiled_task = compiled_task + + @property + def created_at(self): + """Gets the created_at of this AdminTaskClosure. # noqa: E501 + + Time at which the task was created. # noqa: E501 + + :return: The created_at of this AdminTaskClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminTaskClosure. + + Time at which the task was created. # noqa: E501 + + :param created_at: The created_at of this AdminTaskClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py new file mode 100644 index 0000000000..f008dc64b4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py @@ -0,0 +1,517 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_reason import AdminReason # noqa: F401,E501 +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 +from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 +from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class AdminTaskExecutionClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'output_data': 'CoreLiteralMap', + 'phase': 'CoreTaskExecutionPhase', + 'logs': 'list[CoreTaskLog]', + 'started_at': 'datetime', + 'duration': 'str', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'custom_info': 'ProtobufStruct', + 'reason': 'str', + 'task_type': 'str', + 'metadata': 'FlyteidleventTaskExecutionMetadata', + 'event_version': 'int', + 'reasons': 'list[AdminReason]' + } + + attribute_map = { + 'output_uri': 'output_uri', + 'error': 'error', + 'output_data': 'output_data', + 'phase': 'phase', + 'logs': 'logs', + 'started_at': 'started_at', + 'duration': 'duration', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'custom_info': 'custom_info', + 'reason': 'reason', + 'task_type': 'task_type', + 'metadata': 'metadata', + 'event_version': 'event_version', + 'reasons': 'reasons' + } + + def __init__(self, output_uri=None, error=None, output_data=None, phase=None, logs=None, started_at=None, duration=None, created_at=None, updated_at=None, custom_info=None, reason=None, task_type=None, metadata=None, event_version=None, reasons=None): # noqa: E501 + """AdminTaskExecutionClosure - a model defined in Swagger""" # noqa: E501 + + self._output_uri = None + self._error = None + self._output_data = None + self._phase = None + self._logs = None + self._started_at = None + self._duration = None + self._created_at = None + self._updated_at = None + self._custom_info = None + self._reason = None + self._task_type = None + self._metadata = None + self._event_version = None + self._reasons = None + self.discriminator = None + + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if output_data is not None: + self.output_data = output_data + if phase is not None: + self.phase = phase + if logs is not None: + self.logs = logs + if started_at is not None: + self.started_at = started_at + if duration is not None: + self.duration = duration + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if custom_info is not None: + self.custom_info = custom_info + if reason is not None: + self.reason = reason + if task_type is not None: + self.task_type = task_type + if metadata is not None: + self.metadata = metadata + if event_version is not None: + self.event_version = event_version + if reasons is not None: + self.reasons = reasons + + @property + def output_uri(self): + """Gets the output_uri of this AdminTaskExecutionClosure. # noqa: E501 + + Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 + + :return: The output_uri of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this AdminTaskExecutionClosure. + + Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 + + :param output_uri: The output_uri of this AdminTaskExecutionClosure. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this AdminTaskExecutionClosure. # noqa: E501 + + Error information for the task execution. Populated if the execution failed. # noqa: E501 + + :return: The error of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this AdminTaskExecutionClosure. + + Error information for the task execution. Populated if the execution failed. # noqa: E501 + + :param error: The error of this AdminTaskExecutionClosure. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def output_data(self): + """Gets the output_data of this AdminTaskExecutionClosure. # noqa: E501 + + Raw output data produced by this task execution. DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 + + :return: The output_data of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._output_data + + @output_data.setter + def output_data(self, output_data): + """Sets the output_data of this AdminTaskExecutionClosure. + + Raw output data produced by this task execution. DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 + + :param output_data: The output_data of this AdminTaskExecutionClosure. # noqa: E501 + :type: CoreLiteralMap + """ + + self._output_data = output_data + + @property + def phase(self): + """Gets the phase of this AdminTaskExecutionClosure. # noqa: E501 + + The last recorded phase for this task execution. # noqa: E501 + + :return: The phase of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: CoreTaskExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this AdminTaskExecutionClosure. + + The last recorded phase for this task execution. # noqa: E501 + + :param phase: The phase of this AdminTaskExecutionClosure. # noqa: E501 + :type: CoreTaskExecutionPhase + """ + + self._phase = phase + + @property + def logs(self): + """Gets the logs of this AdminTaskExecutionClosure. # noqa: E501 + + Detailed log information output by the task execution. # noqa: E501 + + :return: The logs of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: list[CoreTaskLog] + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this AdminTaskExecutionClosure. + + Detailed log information output by the task execution. # noqa: E501 + + :param logs: The logs of this AdminTaskExecutionClosure. # noqa: E501 + :type: list[CoreTaskLog] + """ + + self._logs = logs + + @property + def started_at(self): + """Gets the started_at of this AdminTaskExecutionClosure. # noqa: E501 + + Time at which the task execution began running. # noqa: E501 + + :return: The started_at of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this AdminTaskExecutionClosure. + + Time at which the task execution began running. # noqa: E501 + + :param started_at: The started_at of this AdminTaskExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._started_at = started_at + + @property + def duration(self): + """Gets the duration of this AdminTaskExecutionClosure. # noqa: E501 + + The amount of time the task execution spent running. # noqa: E501 + + :return: The duration of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this AdminTaskExecutionClosure. + + The amount of time the task execution spent running. # noqa: E501 + + :param duration: The duration of this AdminTaskExecutionClosure. # noqa: E501 + :type: str + """ + + self._duration = duration + + @property + def created_at(self): + """Gets the created_at of this AdminTaskExecutionClosure. # noqa: E501 + + Time at which the task execution was created. # noqa: E501 + + :return: The created_at of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminTaskExecutionClosure. + + Time at which the task execution was created. # noqa: E501 + + :param created_at: The created_at of this AdminTaskExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminTaskExecutionClosure. # noqa: E501 + + Time at which the task execution was last updated. # noqa: E501 + + :return: The updated_at of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminTaskExecutionClosure. + + Time at which the task execution was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminTaskExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def custom_info(self): + """Gets the custom_info of this AdminTaskExecutionClosure. # noqa: E501 + + Custom data specific to the task plugin. # noqa: E501 + + :return: The custom_info of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._custom_info + + @custom_info.setter + def custom_info(self, custom_info): + """Sets the custom_info of this AdminTaskExecutionClosure. + + Custom data specific to the task plugin. # noqa: E501 + + :param custom_info: The custom_info of this AdminTaskExecutionClosure. # noqa: E501 + :type: ProtobufStruct + """ + + self._custom_info = custom_info + + @property + def reason(self): + """Gets the reason of this AdminTaskExecutionClosure. # noqa: E501 + + If there is an explanation for the most recent phase transition, the reason will capture it. # noqa: E501 + + :return: The reason of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this AdminTaskExecutionClosure. + + If there is an explanation for the most recent phase transition, the reason will capture it. # noqa: E501 + + :param reason: The reason of this AdminTaskExecutionClosure. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def task_type(self): + """Gets the task_type of this AdminTaskExecutionClosure. # noqa: E501 + + A predefined yet extensible Task type identifier. # noqa: E501 + + :return: The task_type of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._task_type + + @task_type.setter + def task_type(self, task_type): + """Sets the task_type of this AdminTaskExecutionClosure. + + A predefined yet extensible Task type identifier. # noqa: E501 + + :param task_type: The task_type of this AdminTaskExecutionClosure. # noqa: E501 + :type: str + """ + + self._task_type = task_type + + @property + def metadata(self): + """Gets the metadata of this AdminTaskExecutionClosure. # noqa: E501 + + Metadata around how a task was executed. # noqa: E501 + + :return: The metadata of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: FlyteidleventTaskExecutionMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this AdminTaskExecutionClosure. + + Metadata around how a task was executed. # noqa: E501 + + :param metadata: The metadata of this AdminTaskExecutionClosure. # noqa: E501 + :type: FlyteidleventTaskExecutionMetadata + """ + + self._metadata = metadata + + @property + def event_version(self): + """Gets the event_version of this AdminTaskExecutionClosure. # noqa: E501 + + The event version is used to indicate versioned changes in how data is maintained using this proto message. For example, event_verison > 0 means that maps tasks logs use the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 + + :return: The event_version of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: int + """ + return self._event_version + + @event_version.setter + def event_version(self, event_version): + """Sets the event_version of this AdminTaskExecutionClosure. + + The event version is used to indicate versioned changes in how data is maintained using this proto message. For example, event_verison > 0 means that maps tasks logs use the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 + + :param event_version: The event_version of this AdminTaskExecutionClosure. # noqa: E501 + :type: int + """ + + self._event_version = event_version + + @property + def reasons(self): + """Gets the reasons of this AdminTaskExecutionClosure. # noqa: E501 + + A time-series of the phase transition or update explanations. This, when compared to storing a singular reason as previously done, is much more valuable in visualizing and understanding historical evaluations. # noqa: E501 + + :return: The reasons of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: list[AdminReason] + """ + return self._reasons + + @reasons.setter + def reasons(self, reasons): + """Sets the reasons of this AdminTaskExecutionClosure. + + A time-series of the phase transition or update explanations. This, when compared to storing a singular reason as previously done, is much more valuable in visualizing and understanding historical evaluations. # noqa: E501 + + :param reasons: The reasons of this AdminTaskExecutionClosure. # noqa: E501 + :type: list[AdminReason] + """ + + self._reasons = reasons + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py new file mode 100644 index 0000000000..d8d650d41d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent # noqa: F401,E501 + + +class AdminTaskExecutionEventRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'request_id': 'str', + 'event': 'EventTaskExecutionEvent' + } + + attribute_map = { + 'request_id': 'request_id', + 'event': 'event' + } + + def __init__(self, request_id=None, event=None): # noqa: E501 + """AdminTaskExecutionEventRequest - a model defined in Swagger""" # noqa: E501 + + self._request_id = None + self._event = None + self.discriminator = None + + if request_id is not None: + self.request_id = request_id + if event is not None: + self.event = event + + @property + def request_id(self): + """Gets the request_id of this AdminTaskExecutionEventRequest. # noqa: E501 + + + :return: The request_id of this AdminTaskExecutionEventRequest. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this AdminTaskExecutionEventRequest. + + + :param request_id: The request_id of this AdminTaskExecutionEventRequest. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def event(self): + """Gets the event of this AdminTaskExecutionEventRequest. # noqa: E501 + + Details about the event that occurred. # noqa: E501 + + :return: The event of this AdminTaskExecutionEventRequest. # noqa: E501 + :rtype: EventTaskExecutionEvent + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this AdminTaskExecutionEventRequest. + + Details about the event that occurred. # noqa: E501 + + :param event: The event of this AdminTaskExecutionEventRequest. # noqa: E501 + :type: EventTaskExecutionEvent + """ + + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionEventRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py new file mode 100644 index 0000000000..9e8bd3882a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminTaskExecutionEventResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminTaskExecutionEventResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionEventResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py new file mode 100644 index 0000000000..fb095426c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs # noqa: F401,E501 +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 + + +class AdminTaskExecutionGetDataResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inputs': 'AdminUrlBlob', + 'outputs': 'AdminUrlBlob', + 'full_inputs': 'CoreLiteralMap', + 'full_outputs': 'CoreLiteralMap', + 'flyte_urls': 'AdminFlyteURLs' + } + + attribute_map = { + 'inputs': 'inputs', + 'outputs': 'outputs', + 'full_inputs': 'full_inputs', + 'full_outputs': 'full_outputs', + 'flyte_urls': 'flyte_urls' + } + + def __init__(self, inputs=None, outputs=None, full_inputs=None, full_outputs=None, flyte_urls=None): # noqa: E501 + """AdminTaskExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 + + self._inputs = None + self._outputs = None + self._full_inputs = None + self._full_outputs = None + self._flyte_urls = None + self.discriminator = None + + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + if full_inputs is not None: + self.full_inputs = full_inputs + if full_outputs is not None: + self.full_outputs = full_outputs + if flyte_urls is not None: + self.flyte_urls = flyte_urls + + @property + def inputs(self): + """Gets the inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of task execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 + + :return: The inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminTaskExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of task execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 + + :param inputs: The inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of task execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 + + :return: The outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminTaskExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of task execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 + + :param outputs: The outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._outputs = outputs + + @property + def full_inputs(self): + """Gets the full_inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + + Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :return: The full_inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._full_inputs + + @full_inputs.setter + def full_inputs(self, full_inputs): + """Sets the full_inputs of this AdminTaskExecutionGetDataResponse. + + Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :param full_inputs: The full_inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :type: CoreLiteralMap + """ + + self._full_inputs = full_inputs + + @property + def full_outputs(self): + """Gets the full_outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + + Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :return: The full_outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._full_outputs + + @full_outputs.setter + def full_outputs(self, full_outputs): + """Sets the full_outputs of this AdminTaskExecutionGetDataResponse. + + Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :param full_outputs: The full_outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :type: CoreLiteralMap + """ + + self._full_outputs = full_outputs + + @property + def flyte_urls(self): + """Gets the flyte_urls of this AdminTaskExecutionGetDataResponse. # noqa: E501 + + + :return: The flyte_urls of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :rtype: AdminFlyteURLs + """ + return self._flyte_urls + + @flyte_urls.setter + def flyte_urls(self, flyte_urls): + """Sets the flyte_urls of this AdminTaskExecutionGetDataResponse. + + + :param flyte_urls: The flyte_urls of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :type: AdminFlyteURLs + """ + + self._flyte_urls = flyte_urls + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionGetDataResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionGetDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py new file mode 100644 index 0000000000..4c3a8e7c1d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution # noqa: F401,E501 + + +class AdminTaskExecutionList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_executions': 'list[FlyteidladminTaskExecution]', + 'token': 'str' + } + + attribute_map = { + 'task_executions': 'task_executions', + 'token': 'token' + } + + def __init__(self, task_executions=None, token=None): # noqa: E501 + """AdminTaskExecutionList - a model defined in Swagger""" # noqa: E501 + + self._task_executions = None + self._token = None + self.discriminator = None + + if task_executions is not None: + self.task_executions = task_executions + if token is not None: + self.token = token + + @property + def task_executions(self): + """Gets the task_executions of this AdminTaskExecutionList. # noqa: E501 + + + :return: The task_executions of this AdminTaskExecutionList. # noqa: E501 + :rtype: list[FlyteidladminTaskExecution] + """ + return self._task_executions + + @task_executions.setter + def task_executions(self, task_executions): + """Sets the task_executions of this AdminTaskExecutionList. + + + :param task_executions: The task_executions of this AdminTaskExecutionList. # noqa: E501 + :type: list[FlyteidladminTaskExecution] + """ + + self._task_executions = task_executions + + @property + def token(self): + """Gets the token of this AdminTaskExecutionList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminTaskExecutionList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminTaskExecutionList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminTaskExecutionList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py new file mode 100644 index 0000000000..ea9212b92b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task import AdminTask # noqa: F401,E501 + + +class AdminTaskList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tasks': 'list[AdminTask]', + 'token': 'str' + } + + attribute_map = { + 'tasks': 'tasks', + 'token': 'token' + } + + def __init__(self, tasks=None, token=None): # noqa: E501 + """AdminTaskList - a model defined in Swagger""" # noqa: E501 + + self._tasks = None + self._token = None + self.discriminator = None + + if tasks is not None: + self.tasks = tasks + if token is not None: + self.token = token + + @property + def tasks(self): + """Gets the tasks of this AdminTaskList. # noqa: E501 + + A list of tasks returned based on the request. # noqa: E501 + + :return: The tasks of this AdminTaskList. # noqa: E501 + :rtype: list[AdminTask] + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Sets the tasks of this AdminTaskList. + + A list of tasks returned based on the request. # noqa: E501 + + :param tasks: The tasks of this AdminTaskList. # noqa: E501 + :type: list[AdminTask] + """ + + self._tasks = tasks + + @property + def token(self): + """Gets the token of this AdminTaskList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminTaskList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminTaskList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminTaskList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_attributes.py new file mode 100644 index 0000000000..664761775f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_attributes.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec # noqa: F401,E501 + + +class AdminTaskResourceAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'defaults': 'AdminTaskResourceSpec', + 'limits': 'AdminTaskResourceSpec' + } + + attribute_map = { + 'defaults': 'defaults', + 'limits': 'limits' + } + + def __init__(self, defaults=None, limits=None): # noqa: E501 + """AdminTaskResourceAttributes - a model defined in Swagger""" # noqa: E501 + + self._defaults = None + self._limits = None + self.discriminator = None + + if defaults is not None: + self.defaults = defaults + if limits is not None: + self.limits = limits + + @property + def defaults(self): + """Gets the defaults of this AdminTaskResourceAttributes. # noqa: E501 + + + :return: The defaults of this AdminTaskResourceAttributes. # noqa: E501 + :rtype: AdminTaskResourceSpec + """ + return self._defaults + + @defaults.setter + def defaults(self, defaults): + """Sets the defaults of this AdminTaskResourceAttributes. + + + :param defaults: The defaults of this AdminTaskResourceAttributes. # noqa: E501 + :type: AdminTaskResourceSpec + """ + + self._defaults = defaults + + @property + def limits(self): + """Gets the limits of this AdminTaskResourceAttributes. # noqa: E501 + + + :return: The limits of this AdminTaskResourceAttributes. # noqa: E501 + :rtype: AdminTaskResourceSpec + """ + return self._limits + + @limits.setter + def limits(self, limits): + """Sets the limits of this AdminTaskResourceAttributes. + + + :param limits: The limits of this AdminTaskResourceAttributes. # noqa: E501 + :type: AdminTaskResourceSpec + """ + + self._limits = limits + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskResourceAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskResourceAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_spec.py new file mode 100644 index 0000000000..1b13a28ec2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_spec.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminTaskResourceSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cpu': 'str', + 'gpu': 'str', + 'memory': 'str', + 'storage': 'str', + 'ephemeral_storage': 'str' + } + + attribute_map = { + 'cpu': 'cpu', + 'gpu': 'gpu', + 'memory': 'memory', + 'storage': 'storage', + 'ephemeral_storage': 'ephemeral_storage' + } + + def __init__(self, cpu=None, gpu=None, memory=None, storage=None, ephemeral_storage=None): # noqa: E501 + """AdminTaskResourceSpec - a model defined in Swagger""" # noqa: E501 + + self._cpu = None + self._gpu = None + self._memory = None + self._storage = None + self._ephemeral_storage = None + self.discriminator = None + + if cpu is not None: + self.cpu = cpu + if gpu is not None: + self.gpu = gpu + if memory is not None: + self.memory = memory + if storage is not None: + self.storage = storage + if ephemeral_storage is not None: + self.ephemeral_storage = ephemeral_storage + + @property + def cpu(self): + """Gets the cpu of this AdminTaskResourceSpec. # noqa: E501 + + + :return: The cpu of this AdminTaskResourceSpec. # noqa: E501 + :rtype: str + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """Sets the cpu of this AdminTaskResourceSpec. + + + :param cpu: The cpu of this AdminTaskResourceSpec. # noqa: E501 + :type: str + """ + + self._cpu = cpu + + @property + def gpu(self): + """Gets the gpu of this AdminTaskResourceSpec. # noqa: E501 + + + :return: The gpu of this AdminTaskResourceSpec. # noqa: E501 + :rtype: str + """ + return self._gpu + + @gpu.setter + def gpu(self, gpu): + """Sets the gpu of this AdminTaskResourceSpec. + + + :param gpu: The gpu of this AdminTaskResourceSpec. # noqa: E501 + :type: str + """ + + self._gpu = gpu + + @property + def memory(self): + """Gets the memory of this AdminTaskResourceSpec. # noqa: E501 + + + :return: The memory of this AdminTaskResourceSpec. # noqa: E501 + :rtype: str + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this AdminTaskResourceSpec. + + + :param memory: The memory of this AdminTaskResourceSpec. # noqa: E501 + :type: str + """ + + self._memory = memory + + @property + def storage(self): + """Gets the storage of this AdminTaskResourceSpec. # noqa: E501 + + + :return: The storage of this AdminTaskResourceSpec. # noqa: E501 + :rtype: str + """ + return self._storage + + @storage.setter + def storage(self, storage): + """Sets the storage of this AdminTaskResourceSpec. + + + :param storage: The storage of this AdminTaskResourceSpec. # noqa: E501 + :type: str + """ + + self._storage = storage + + @property + def ephemeral_storage(self): + """Gets the ephemeral_storage of this AdminTaskResourceSpec. # noqa: E501 + + + :return: The ephemeral_storage of this AdminTaskResourceSpec. # noqa: E501 + :rtype: str + """ + return self._ephemeral_storage + + @ephemeral_storage.setter + def ephemeral_storage(self, ephemeral_storage): + """Sets the ephemeral_storage of this AdminTaskResourceSpec. + + + :param ephemeral_storage: The ephemeral_storage of this AdminTaskResourceSpec. # noqa: E501 + :type: str + """ + + self._ephemeral_storage = ephemeral_storage + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskResourceSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskResourceSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py new file mode 100644 index 0000000000..36beba2ffe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: F401,E501 +from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: F401,E501 + + +class AdminTaskSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreTaskTemplate', + 'description': 'AdminDescriptionEntity' + } + + attribute_map = { + 'template': 'template', + 'description': 'description' + } + + def __init__(self, template=None, description=None): # noqa: E501 + """AdminTaskSpec - a model defined in Swagger""" # noqa: E501 + + self._template = None + self._description = None + self.discriminator = None + + if template is not None: + self.template = template + if description is not None: + self.description = description + + @property + def template(self): + """Gets the template of this AdminTaskSpec. # noqa: E501 + + Template of the task that encapsulates all the metadata of the task. # noqa: E501 + + :return: The template of this AdminTaskSpec. # noqa: E501 + :rtype: CoreTaskTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this AdminTaskSpec. + + Template of the task that encapsulates all the metadata of the task. # noqa: E501 + + :param template: The template of this AdminTaskSpec. # noqa: E501 + :type: CoreTaskTemplate + """ + + self._template = template + + @property + def description(self): + """Gets the description of this AdminTaskSpec. # noqa: E501 + + Represents the specification for description entity. # noqa: E501 + + :return: The description of this AdminTaskSpec. # noqa: E501 + :rtype: AdminDescriptionEntity + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AdminTaskSpec. + + Represents the specification for description entity. # noqa: E501 + + :param description: The description of this AdminTaskSpec. # noqa: E501 + :type: AdminDescriptionEntity + """ + + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py new file mode 100644 index 0000000000..7d0bb6ef92 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminUrlBlob(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'url': 'str', + 'bytes': 'str' + } + + attribute_map = { + 'url': 'url', + 'bytes': 'bytes' + } + + def __init__(self, url=None, bytes=None): # noqa: E501 + """AdminUrlBlob - a model defined in Swagger""" # noqa: E501 + + self._url = None + self._bytes = None + self.discriminator = None + + if url is not None: + self.url = url + if bytes is not None: + self.bytes = bytes + + @property + def url(self): + """Gets the url of this AdminUrlBlob. # noqa: E501 + + Actual url value. # noqa: E501 + + :return: The url of this AdminUrlBlob. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this AdminUrlBlob. + + Actual url value. # noqa: E501 + + :param url: The url of this AdminUrlBlob. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def bytes(self): + """Gets the bytes of this AdminUrlBlob. # noqa: E501 + + Represents the size of the file accessible at the above url. # noqa: E501 + + :return: The bytes of this AdminUrlBlob. # noqa: E501 + :rtype: str + """ + return self._bytes + + @bytes.setter + def bytes(self, bytes): + """Sets the bytes of this AdminUrlBlob. + + Represents the size of the file accessible at the above url. # noqa: E501 + + :param bytes: The bytes of this AdminUrlBlob. # noqa: E501 + :type: str + """ + + self._bytes = bytes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminUrlBlob, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminUrlBlob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_version.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_version.py new file mode 100644 index 0000000000..bdbad41bb1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_version.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminVersion(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'build': 'str', + 'version': 'str', + 'build_time': 'str' + } + + attribute_map = { + 'build': 'Build', + 'version': 'Version', + 'build_time': 'BuildTime' + } + + def __init__(self, build=None, version=None, build_time=None): # noqa: E501 + """AdminVersion - a model defined in Swagger""" # noqa: E501 + + self._build = None + self._version = None + self._build_time = None + self.discriminator = None + + if build is not None: + self.build = build + if version is not None: + self.version = version + if build_time is not None: + self.build_time = build_time + + @property + def build(self): + """Gets the build of this AdminVersion. # noqa: E501 + + + :return: The build of this AdminVersion. # noqa: E501 + :rtype: str + """ + return self._build + + @build.setter + def build(self, build): + """Sets the build of this AdminVersion. + + + :param build: The build of this AdminVersion. # noqa: E501 + :type: str + """ + + self._build = build + + @property + def version(self): + """Gets the version of this AdminVersion. # noqa: E501 + + + :return: The version of this AdminVersion. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this AdminVersion. + + + :param version: The version of this AdminVersion. # noqa: E501 + :type: str + """ + + self._version = version + + @property + def build_time(self): + """Gets the build_time of this AdminVersion. # noqa: E501 + + + :return: The build_time of this AdminVersion. # noqa: E501 + :rtype: str + """ + return self._build_time + + @build_time.setter + def build_time(self, build_time): + """Sets the build_time of this AdminVersion. + + + :param build_time: The build_time of this AdminVersion. # noqa: E501 + :type: str + """ + + self._build_time = build_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminVersion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminVersion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py new file mode 100644 index 0000000000..3b744bb0f7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminWorkflow(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'closure': 'AdminWorkflowClosure', + 'short_description': 'str' + } + + attribute_map = { + 'id': 'id', + 'closure': 'closure', + 'short_description': 'short_description' + } + + def __init__(self, id=None, closure=None, short_description=None): # noqa: E501 + """AdminWorkflow - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._closure = None + self._short_description = None + self.discriminator = None + + if id is not None: + self.id = id + if closure is not None: + self.closure = closure + if short_description is not None: + self.short_description = short_description + + @property + def id(self): + """Gets the id of this AdminWorkflow. # noqa: E501 + + id represents the unique identifier of the workflow. # noqa: E501 + + :return: The id of this AdminWorkflow. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminWorkflow. + + id represents the unique identifier of the workflow. # noqa: E501 + + :param id: The id of this AdminWorkflow. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def closure(self): + """Gets the closure of this AdminWorkflow. # noqa: E501 + + closure encapsulates all the fields that maps to a compiled version of the workflow. # noqa: E501 + + :return: The closure of this AdminWorkflow. # noqa: E501 + :rtype: AdminWorkflowClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminWorkflow. + + closure encapsulates all the fields that maps to a compiled version of the workflow. # noqa: E501 + + :param closure: The closure of this AdminWorkflow. # noqa: E501 + :type: AdminWorkflowClosure + """ + + self._closure = closure + + @property + def short_description(self): + """Gets the short_description of this AdminWorkflow. # noqa: E501 + + One-liner overview of the entity. # noqa: E501 + + :return: The short_description of this AdminWorkflow. # noqa: E501 + :rtype: str + """ + return self._short_description + + @short_description.setter + def short_description(self, short_description): + """Sets the short_description of this AdminWorkflow. + + One-liner overview of the entity. # noqa: E501 + + :param short_description: The short_description of this AdminWorkflow. # noqa: E501 + :type: str + """ + + self._short_description = short_description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflow, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflow): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes.py new file mode 100644 index 0000000000..e5dc389073 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 + + +class AdminWorkflowAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'workflow': 'str', + 'matching_attributes': 'AdminMatchingAttributes' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'workflow': 'workflow', + 'matching_attributes': 'matching_attributes' + } + + def __init__(self, project=None, domain=None, workflow=None, matching_attributes=None): # noqa: E501 + """AdminWorkflowAttributes - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._workflow = None + self._matching_attributes = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if workflow is not None: + self.workflow = workflow + if matching_attributes is not None: + self.matching_attributes = matching_attributes + + @property + def project(self): + """Gets the project of this AdminWorkflowAttributes. # noqa: E501 + + Unique project id for which this set of attributes will be applied. # noqa: E501 + + :return: The project of this AdminWorkflowAttributes. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminWorkflowAttributes. + + Unique project id for which this set of attributes will be applied. # noqa: E501 + + :param project: The project of this AdminWorkflowAttributes. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminWorkflowAttributes. # noqa: E501 + + Unique domain id for which this set of attributes will be applied. # noqa: E501 + + :return: The domain of this AdminWorkflowAttributes. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminWorkflowAttributes. + + Unique domain id for which this set of attributes will be applied. # noqa: E501 + + :param domain: The domain of this AdminWorkflowAttributes. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def workflow(self): + """Gets the workflow of this AdminWorkflowAttributes. # noqa: E501 + + Workflow name for which this set of attributes will be applied. # noqa: E501 + + :return: The workflow of this AdminWorkflowAttributes. # noqa: E501 + :rtype: str + """ + return self._workflow + + @workflow.setter + def workflow(self, workflow): + """Sets the workflow of this AdminWorkflowAttributes. + + Workflow name for which this set of attributes will be applied. # noqa: E501 + + :param workflow: The workflow of this AdminWorkflowAttributes. # noqa: E501 + :type: str + """ + + self._workflow = workflow + + @property + def matching_attributes(self): + """Gets the matching_attributes of this AdminWorkflowAttributes. # noqa: E501 + + + :return: The matching_attributes of this AdminWorkflowAttributes. # noqa: E501 + :rtype: AdminMatchingAttributes + """ + return self._matching_attributes + + @matching_attributes.setter + def matching_attributes(self, matching_attributes): + """Sets the matching_attributes of this AdminWorkflowAttributes. + + + :param matching_attributes: The matching_attributes of this AdminWorkflowAttributes. # noqa: E501 + :type: AdminMatchingAttributes + """ + + self._matching_attributes = matching_attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_request.py new file mode 100644 index 0000000000..348cd98213 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_request.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: F401,E501 + + +class AdminWorkflowAttributesDeleteRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'workflow': 'str', + 'resource_type': 'AdminMatchableResource' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'workflow': 'workflow', + 'resource_type': 'resource_type' + } + + def __init__(self, project=None, domain=None, workflow=None, resource_type=None): # noqa: E501 + """AdminWorkflowAttributesDeleteRequest - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._workflow = None + self._resource_type = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if workflow is not None: + self.workflow = workflow + if resource_type is not None: + self.resource_type = resource_type + + @property + def project(self): + """Gets the project of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + + + :return: The project of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminWorkflowAttributesDeleteRequest. + + + :param project: The project of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + + + :return: The domain of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminWorkflowAttributesDeleteRequest. + + + :param domain: The domain of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def workflow(self): + """Gets the workflow of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + + + :return: The workflow of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :rtype: str + """ + return self._workflow + + @workflow.setter + def workflow(self, workflow): + """Sets the workflow of this AdminWorkflowAttributesDeleteRequest. + + + :param workflow: The workflow of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :type: str + """ + + self._workflow = workflow + + @property + def resource_type(self): + """Gets the resource_type of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + + + :return: The resource_type of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :rtype: AdminMatchableResource + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this AdminWorkflowAttributesDeleteRequest. + + + :param resource_type: The resource_type of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 + :type: AdminMatchableResource + """ + + self._resource_type = resource_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowAttributesDeleteRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowAttributesDeleteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_response.py new file mode 100644 index 0000000000..7d2f277cbf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminWorkflowAttributesDeleteResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminWorkflowAttributesDeleteResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowAttributesDeleteResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowAttributesDeleteResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_get_response.py new file mode 100644 index 0000000000..6d0b4971d4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_get_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes # noqa: F401,E501 + + +class AdminWorkflowAttributesGetResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'AdminWorkflowAttributes' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): # noqa: E501 + """AdminWorkflowAttributesGetResponse - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this AdminWorkflowAttributesGetResponse. # noqa: E501 + + + :return: The attributes of this AdminWorkflowAttributesGetResponse. # noqa: E501 + :rtype: AdminWorkflowAttributes + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminWorkflowAttributesGetResponse. + + + :param attributes: The attributes of this AdminWorkflowAttributesGetResponse. # noqa: E501 + :type: AdminWorkflowAttributes + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowAttributesGetResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowAttributesGetResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_request.py new file mode 100644 index 0000000000..2f5ae0956b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes # noqa: F401,E501 + + +class AdminWorkflowAttributesUpdateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attributes': 'AdminWorkflowAttributes' + } + + attribute_map = { + 'attributes': 'attributes' + } + + def __init__(self, attributes=None): # noqa: E501 + """AdminWorkflowAttributesUpdateRequest - a model defined in Swagger""" # noqa: E501 + + self._attributes = None + self.discriminator = None + + if attributes is not None: + self.attributes = attributes + + @property + def attributes(self): + """Gets the attributes of this AdminWorkflowAttributesUpdateRequest. # noqa: E501 + + + :return: The attributes of this AdminWorkflowAttributesUpdateRequest. # noqa: E501 + :rtype: AdminWorkflowAttributes + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this AdminWorkflowAttributesUpdateRequest. + + + :param attributes: The attributes of this AdminWorkflowAttributesUpdateRequest. # noqa: E501 + :type: AdminWorkflowAttributes + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowAttributesUpdateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowAttributesUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_response.py new file mode 100644 index 0000000000..871461df54 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminWorkflowAttributesUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminWorkflowAttributesUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowAttributesUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowAttributesUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py new file mode 100644 index 0000000000..41b674b65e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: F401,E501 + + +class AdminWorkflowClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'compiled_workflow': 'CoreCompiledWorkflowClosure', + 'created_at': 'datetime' + } + + attribute_map = { + 'compiled_workflow': 'compiled_workflow', + 'created_at': 'created_at' + } + + def __init__(self, compiled_workflow=None, created_at=None): # noqa: E501 + """AdminWorkflowClosure - a model defined in Swagger""" # noqa: E501 + + self._compiled_workflow = None + self._created_at = None + self.discriminator = None + + if compiled_workflow is not None: + self.compiled_workflow = compiled_workflow + if created_at is not None: + self.created_at = created_at + + @property + def compiled_workflow(self): + """Gets the compiled_workflow of this AdminWorkflowClosure. # noqa: E501 + + Represents the compiled representation of the workflow from the specification provided. # noqa: E501 + + :return: The compiled_workflow of this AdminWorkflowClosure. # noqa: E501 + :rtype: CoreCompiledWorkflowClosure + """ + return self._compiled_workflow + + @compiled_workflow.setter + def compiled_workflow(self, compiled_workflow): + """Sets the compiled_workflow of this AdminWorkflowClosure. + + Represents the compiled representation of the workflow from the specification provided. # noqa: E501 + + :param compiled_workflow: The compiled_workflow of this AdminWorkflowClosure. # noqa: E501 + :type: CoreCompiledWorkflowClosure + """ + + self._compiled_workflow = compiled_workflow + + @property + def created_at(self): + """Gets the created_at of this AdminWorkflowClosure. # noqa: E501 + + Time at which the workflow was created. # noqa: E501 + + :return: The created_at of this AdminWorkflowClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminWorkflowClosure. + + Time at which the workflow was created. # noqa: E501 + + :param created_at: The created_at of this AdminWorkflowClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py new file mode 100644 index 0000000000..d806cd1b69 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminWorkflowCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminWorkflowSpec' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec' + } + + def __init__(self, id=None, spec=None): # noqa: E501 + """AdminWorkflowCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + + @property + def id(self): + """Gets the id of this AdminWorkflowCreateRequest. # noqa: E501 + + + :return: The id of this AdminWorkflowCreateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminWorkflowCreateRequest. + + + :param id: The id of this AdminWorkflowCreateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminWorkflowCreateRequest. # noqa: E501 + + + :return: The spec of this AdminWorkflowCreateRequest. # noqa: E501 + :rtype: AdminWorkflowSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminWorkflowCreateRequest. + + + :param spec: The spec of this AdminWorkflowCreateRequest. # noqa: E501 + :type: AdminWorkflowSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py new file mode 100644 index 0000000000..63dfaa0329 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminWorkflowCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminWorkflowCreateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_config.py new file mode 100644 index 0000000000..b8b89d4266 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_config.py @@ -0,0 +1,319 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 +from flyteadmin.models.admin_envs import AdminEnvs # noqa: F401,E501 +from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 +from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: F401,E501 +from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 + + +class AdminWorkflowExecutionConfig(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'max_parallelism': 'int', + 'security_context': 'CoreSecurityContext', + 'raw_output_data_config': 'AdminRawOutputDataConfig', + 'labels': 'AdminLabels', + 'annotations': 'AdminAnnotations', + 'interruptible': 'bool', + 'overwrite_cache': 'bool', + 'envs': 'AdminEnvs' + } + + attribute_map = { + 'max_parallelism': 'max_parallelism', + 'security_context': 'security_context', + 'raw_output_data_config': 'raw_output_data_config', + 'labels': 'labels', + 'annotations': 'annotations', + 'interruptible': 'interruptible', + 'overwrite_cache': 'overwrite_cache', + 'envs': 'envs' + } + + def __init__(self, max_parallelism=None, security_context=None, raw_output_data_config=None, labels=None, annotations=None, interruptible=None, overwrite_cache=None, envs=None): # noqa: E501 + """AdminWorkflowExecutionConfig - a model defined in Swagger""" # noqa: E501 + + self._max_parallelism = None + self._security_context = None + self._raw_output_data_config = None + self._labels = None + self._annotations = None + self._interruptible = None + self._overwrite_cache = None + self._envs = None + self.discriminator = None + + if max_parallelism is not None: + self.max_parallelism = max_parallelism + if security_context is not None: + self.security_context = security_context + if raw_output_data_config is not None: + self.raw_output_data_config = raw_output_data_config + if labels is not None: + self.labels = labels + if annotations is not None: + self.annotations = annotations + if interruptible is not None: + self.interruptible = interruptible + if overwrite_cache is not None: + self.overwrite_cache = overwrite_cache + if envs is not None: + self.envs = envs + + @property + def max_parallelism(self): + """Gets the max_parallelism of this AdminWorkflowExecutionConfig. # noqa: E501 + + Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. # noqa: E501 + + :return: The max_parallelism of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: int + """ + return self._max_parallelism + + @max_parallelism.setter + def max_parallelism(self, max_parallelism): + """Sets the max_parallelism of this AdminWorkflowExecutionConfig. + + Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. # noqa: E501 + + :param max_parallelism: The max_parallelism of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: int + """ + + self._max_parallelism = max_parallelism + + @property + def security_context(self): + """Gets the security_context of this AdminWorkflowExecutionConfig. # noqa: E501 + + Indicates security context permissions for executions triggered with this matchable attribute. # noqa: E501 + + :return: The security_context of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: CoreSecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """Sets the security_context of this AdminWorkflowExecutionConfig. + + Indicates security context permissions for executions triggered with this matchable attribute. # noqa: E501 + + :param security_context: The security_context of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: CoreSecurityContext + """ + + self._security_context = security_context + + @property + def raw_output_data_config(self): + """Gets the raw_output_data_config of this AdminWorkflowExecutionConfig. # noqa: E501 + + Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 + + :return: The raw_output_data_config of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: AdminRawOutputDataConfig + """ + return self._raw_output_data_config + + @raw_output_data_config.setter + def raw_output_data_config(self, raw_output_data_config): + """Sets the raw_output_data_config of this AdminWorkflowExecutionConfig. + + Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 + + :param raw_output_data_config: The raw_output_data_config of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: AdminRawOutputDataConfig + """ + + self._raw_output_data_config = raw_output_data_config + + @property + def labels(self): + """Gets the labels of this AdminWorkflowExecutionConfig. # noqa: E501 + + Custom labels to be applied to a triggered execution resource. # noqa: E501 + + :return: The labels of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: AdminLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this AdminWorkflowExecutionConfig. + + Custom labels to be applied to a triggered execution resource. # noqa: E501 + + :param labels: The labels of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: AdminLabels + """ + + self._labels = labels + + @property + def annotations(self): + """Gets the annotations of this AdminWorkflowExecutionConfig. # noqa: E501 + + Custom annotations to be applied to a triggered execution resource. # noqa: E501 + + :return: The annotations of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: AdminAnnotations + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this AdminWorkflowExecutionConfig. + + Custom annotations to be applied to a triggered execution resource. # noqa: E501 + + :param annotations: The annotations of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: AdminAnnotations + """ + + self._annotations = annotations + + @property + def interruptible(self): + """Gets the interruptible of this AdminWorkflowExecutionConfig. # noqa: E501 + + Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 + + :return: The interruptible of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: bool + """ + return self._interruptible + + @interruptible.setter + def interruptible(self, interruptible): + """Sets the interruptible of this AdminWorkflowExecutionConfig. + + Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 + + :param interruptible: The interruptible of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: bool + """ + + self._interruptible = interruptible + + @property + def overwrite_cache(self): + """Gets the overwrite_cache of this AdminWorkflowExecutionConfig. # noqa: E501 + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :return: The overwrite_cache of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: bool + """ + return self._overwrite_cache + + @overwrite_cache.setter + def overwrite_cache(self, overwrite_cache): + """Sets the overwrite_cache of this AdminWorkflowExecutionConfig. + + Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 + + :param overwrite_cache: The overwrite_cache of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: bool + """ + + self._overwrite_cache = overwrite_cache + + @property + def envs(self): + """Gets the envs of this AdminWorkflowExecutionConfig. # noqa: E501 + + Environment variables to be set for the execution. # noqa: E501 + + :return: The envs of this AdminWorkflowExecutionConfig. # noqa: E501 + :rtype: AdminEnvs + """ + return self._envs + + @envs.setter + def envs(self, envs): + """Sets the envs of this AdminWorkflowExecutionConfig. + + Environment variables to be set for the execution. # noqa: E501 + + :param envs: The envs of this AdminWorkflowExecutionConfig. # noqa: E501 + :type: AdminEnvs + """ + + self._envs = envs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionConfig, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py new file mode 100644 index 0000000000..5b49fb3631 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent # noqa: F401,E501 + + +class AdminWorkflowExecutionEventRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'request_id': 'str', + 'event': 'EventWorkflowExecutionEvent' + } + + attribute_map = { + 'request_id': 'request_id', + 'event': 'event' + } + + def __init__(self, request_id=None, event=None): # noqa: E501 + """AdminWorkflowExecutionEventRequest - a model defined in Swagger""" # noqa: E501 + + self._request_id = None + self._event = None + self.discriminator = None + + if request_id is not None: + self.request_id = request_id + if event is not None: + self.event = event + + @property + def request_id(self): + """Gets the request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 + + + :return: The request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this AdminWorkflowExecutionEventRequest. + + + :param request_id: The request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def event(self): + """Gets the event of this AdminWorkflowExecutionEventRequest. # noqa: E501 + + Details about the event that occurred. # noqa: E501 + + :return: The event of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :rtype: EventWorkflowExecutionEvent + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this AdminWorkflowExecutionEventRequest. + + Details about the event that occurred. # noqa: E501 + + :param event: The event of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :type: EventWorkflowExecutionEvent + """ + + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionEventRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py new file mode 100644 index 0000000000..e4ddc78b69 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminWorkflowExecutionEventResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminWorkflowExecutionEventResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionEventResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py new file mode 100644 index 0000000000..7b08ce32c7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 + + +class AdminWorkflowExecutionGetDataResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'outputs': 'AdminUrlBlob', + 'inputs': 'AdminUrlBlob', + 'full_inputs': 'CoreLiteralMap', + 'full_outputs': 'CoreLiteralMap' + } + + attribute_map = { + 'outputs': 'outputs', + 'inputs': 'inputs', + 'full_inputs': 'full_inputs', + 'full_outputs': 'full_outputs' + } + + def __init__(self, outputs=None, inputs=None, full_inputs=None, full_outputs=None): # noqa: E501 + """AdminWorkflowExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 + + self._outputs = None + self._inputs = None + self._full_inputs = None + self._full_outputs = None + self.discriminator = None + + if outputs is not None: + self.outputs = outputs + if inputs is not None: + self.inputs = inputs + if full_inputs is not None: + self.full_inputs = full_inputs + if full_outputs is not None: + self.full_outputs = full_outputs + + @property + def outputs(self): + """Gets the outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 + + :return: The outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminWorkflowExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 + + :param outputs: The outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._outputs = outputs + + @property + def inputs(self): + """Gets the inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 + + :return: The inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminWorkflowExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 + + :param inputs: The inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._inputs = inputs + + @property + def full_inputs(self): + """Gets the full_inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + + Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :return: The full_inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._full_inputs + + @full_inputs.setter + def full_inputs(self, full_inputs): + """Sets the full_inputs of this AdminWorkflowExecutionGetDataResponse. + + Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :param full_inputs: The full_inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :type: CoreLiteralMap + """ + + self._full_inputs = full_inputs + + @property + def full_outputs(self): + """Gets the full_outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + + Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :return: The full_outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._full_outputs + + @full_outputs.setter + def full_outputs(self, full_outputs): + """Sets the full_outputs of this AdminWorkflowExecutionGetDataResponse. + + Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 + + :param full_outputs: The full_outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :type: CoreLiteralMap + """ + + self._full_outputs = full_outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionGetDataResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionGetDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_metrics_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_metrics_response.py new file mode 100644 index 0000000000..64d71f5cdb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_metrics_response.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_span import CoreSpan # noqa: F401,E501 + + +class AdminWorkflowExecutionGetMetricsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'span': 'CoreSpan' + } + + attribute_map = { + 'span': 'span' + } + + def __init__(self, span=None): # noqa: E501 + """AdminWorkflowExecutionGetMetricsResponse - a model defined in Swagger""" # noqa: E501 + + self._span = None + self.discriminator = None + + if span is not None: + self.span = span + + @property + def span(self): + """Gets the span of this AdminWorkflowExecutionGetMetricsResponse. # noqa: E501 + + Span defines the top-level breakdown of the workflows execution. More precise information is nested in a hierarchical structure using Flyte entity references. # noqa: E501 + + :return: The span of this AdminWorkflowExecutionGetMetricsResponse. # noqa: E501 + :rtype: CoreSpan + """ + return self._span + + @span.setter + def span(self, span): + """Sets the span of this AdminWorkflowExecutionGetMetricsResponse. + + Span defines the top-level breakdown of the workflows execution. More precise information is nested in a hierarchical structure using Flyte entity references. # noqa: E501 + + :param span: The span of this AdminWorkflowExecutionGetMetricsResponse. # noqa: E501 + :type: CoreSpan + """ + + self._span = span + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionGetMetricsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionGetMetricsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py new file mode 100644 index 0000000000..65fe9fb331 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow import AdminWorkflow # noqa: F401,E501 + + +class AdminWorkflowList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'workflows': 'list[AdminWorkflow]', + 'token': 'str' + } + + attribute_map = { + 'workflows': 'workflows', + 'token': 'token' + } + + def __init__(self, workflows=None, token=None): # noqa: E501 + """AdminWorkflowList - a model defined in Swagger""" # noqa: E501 + + self._workflows = None + self._token = None + self.discriminator = None + + if workflows is not None: + self.workflows = workflows + if token is not None: + self.token = token + + @property + def workflows(self): + """Gets the workflows of this AdminWorkflowList. # noqa: E501 + + A list of workflows returned based on the request. # noqa: E501 + + :return: The workflows of this AdminWorkflowList. # noqa: E501 + :rtype: list[AdminWorkflow] + """ + return self._workflows + + @workflows.setter + def workflows(self, workflows): + """Sets the workflows of this AdminWorkflowList. + + A list of workflows returned based on the request. # noqa: E501 + + :param workflows: The workflows of this AdminWorkflowList. # noqa: E501 + :type: list[AdminWorkflow] + """ + + self._workflows = workflows + + @property + def token(self): + """Gets the token of this AdminWorkflowList. # noqa: E501 + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :return: The token of this AdminWorkflowList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminWorkflowList. + + In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 + + :param token: The token of this AdminWorkflowList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py new file mode 100644 index 0000000000..42b990d1c0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: F401,E501 +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: F401,E501 + + +class AdminWorkflowSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreWorkflowTemplate', + 'sub_workflows': 'list[CoreWorkflowTemplate]', + 'description': 'AdminDescriptionEntity' + } + + attribute_map = { + 'template': 'template', + 'sub_workflows': 'sub_workflows', + 'description': 'description' + } + + def __init__(self, template=None, sub_workflows=None, description=None): # noqa: E501 + """AdminWorkflowSpec - a model defined in Swagger""" # noqa: E501 + + self._template = None + self._sub_workflows = None + self._description = None + self.discriminator = None + + if template is not None: + self.template = template + if sub_workflows is not None: + self.sub_workflows = sub_workflows + if description is not None: + self.description = description + + @property + def template(self): + """Gets the template of this AdminWorkflowSpec. # noqa: E501 + + Template of the task that encapsulates all the metadata of the workflow. # noqa: E501 + + :return: The template of this AdminWorkflowSpec. # noqa: E501 + :rtype: CoreWorkflowTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this AdminWorkflowSpec. + + Template of the task that encapsulates all the metadata of the workflow. # noqa: E501 + + :param template: The template of this AdminWorkflowSpec. # noqa: E501 + :type: CoreWorkflowTemplate + """ + + self._template = template + + @property + def sub_workflows(self): + """Gets the sub_workflows of this AdminWorkflowSpec. # noqa: E501 + + Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. # noqa: E501 + + :return: The sub_workflows of this AdminWorkflowSpec. # noqa: E501 + :rtype: list[CoreWorkflowTemplate] + """ + return self._sub_workflows + + @sub_workflows.setter + def sub_workflows(self, sub_workflows): + """Sets the sub_workflows of this AdminWorkflowSpec. + + Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. # noqa: E501 + + :param sub_workflows: The sub_workflows of this AdminWorkflowSpec. # noqa: E501 + :type: list[CoreWorkflowTemplate] + """ + + self._sub_workflows = sub_workflows + + @property + def description(self): + """Gets the description of this AdminWorkflowSpec. # noqa: E501 + + Represents the specification for description entity. # noqa: E501 + + :return: The description of this AdminWorkflowSpec. # noqa: E501 + :rtype: AdminDescriptionEntity + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AdminWorkflowSpec. + + Represents the specification for description entity. # noqa: E501 + + :param description: The description of this AdminWorkflowSpec. # noqa: E501 + :type: AdminDescriptionEntity + """ + + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py new file mode 100644 index 0000000000..94a5d768f7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlobTypeBlobDimensionality(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + SINGLE = "SINGLE" + MULTIPART = "MULTIPART" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """BlobTypeBlobDimensionality - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BlobTypeBlobDimensionality, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlobTypeBlobDimensionality): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/catalog_reservation_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/catalog_reservation_status.py new file mode 100644 index 0000000000..f518595426 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/catalog_reservation_status.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CatalogReservationStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DISABLED = "RESERVATION_DISABLED" + ACQUIRED = "RESERVATION_ACQUIRED" + EXISTS = "RESERVATION_EXISTS" + RELEASED = "RESERVATION_RELEASED" + FAILURE = "RESERVATION_FAILURE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CatalogReservationStatus - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CatalogReservationStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CatalogReservationStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py new file mode 100644 index 0000000000..b141515185 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ComparisonExpressionOperator(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + EQ = "EQ" + NEQ = "NEQ" + GT = "GT" + GTE = "GTE" + LT = "LT" + LTE = "LTE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ComparisonExpressionOperator - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ComparisonExpressionOperator, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComparisonExpressionOperator): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py new file mode 100644 index 0000000000..95bbfe7148 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ConjunctionExpressionLogicalOperator(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + AND = "AND" + OR = "OR" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ConjunctionExpressionLogicalOperator - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConjunctionExpressionLogicalOperator, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConjunctionExpressionLogicalOperator): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py new file mode 100644 index 0000000000..75c0232481 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ConnectionSetIdList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ids': 'list[str]' + } + + attribute_map = { + 'ids': 'ids' + } + + def __init__(self, ids=None): # noqa: E501 + """ConnectionSetIdList - a model defined in Swagger""" # noqa: E501 + + self._ids = None + self.discriminator = None + + if ids is not None: + self.ids = ids + + @property + def ids(self): + """Gets the ids of this ConnectionSetIdList. # noqa: E501 + + + :return: The ids of this ConnectionSetIdList. # noqa: E501 + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this ConnectionSetIdList. + + + :param ids: The ids of this ConnectionSetIdList. # noqa: E501 + :type: list[str] + """ + + self._ids = ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConnectionSetIdList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConnectionSetIdList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/container_architecture.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/container_architecture.py new file mode 100644 index 0000000000..eb0f6d3987 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/container_architecture.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ContainerArchitecture(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN = "UNKNOWN" + AMD64 = "AMD64" + ARM64 = "ARM64" + ARM_V6 = "ARM_V6" + ARM_V7 = "ARM_V7" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ContainerArchitecture - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ContainerArchitecture, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerArchitecture): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py new file mode 100644 index 0000000000..e838fed4ee --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreAlias(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'var': 'str', + 'alias': 'str' + } + + attribute_map = { + 'var': 'var', + 'alias': 'alias' + } + + def __init__(self, var=None, alias=None): # noqa: E501 + """CoreAlias - a model defined in Swagger""" # noqa: E501 + + self._var = None + self._alias = None + self.discriminator = None + + if var is not None: + self.var = var + if alias is not None: + self.alias = alias + + @property + def var(self): + """Gets the var of this CoreAlias. # noqa: E501 + + Must match one of the output variable names on a node. # noqa: E501 + + :return: The var of this CoreAlias. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreAlias. + + Must match one of the output variable names on a node. # noqa: E501 + + :param var: The var of this CoreAlias. # noqa: E501 + :type: str + """ + + self._var = var + + @property + def alias(self): + """Gets the alias of this CoreAlias. # noqa: E501 + + A workflow-level unique alias that downstream nodes can refer to in their input. # noqa: E501 + + :return: The alias of this CoreAlias. # noqa: E501 + :rtype: str + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this CoreAlias. + + A workflow-level unique alias that downstream nodes can refer to in their input. # noqa: E501 + + :param alias: The alias of this CoreAlias. # noqa: E501 + :type: str + """ + + self._alias = alias + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreAlias, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreAlias): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_approve_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_approve_condition.py new file mode 100644 index 0000000000..56146e7219 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_approve_condition.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreApproveCondition(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'signal_id': 'str' + } + + attribute_map = { + 'signal_id': 'signal_id' + } + + def __init__(self, signal_id=None): # noqa: E501 + """CoreApproveCondition - a model defined in Swagger""" # noqa: E501 + + self._signal_id = None + self.discriminator = None + + if signal_id is not None: + self.signal_id = signal_id + + @property + def signal_id(self): + """Gets the signal_id of this CoreApproveCondition. # noqa: E501 + + A unique identifier for the requested boolean signal. # noqa: E501 + + :return: The signal_id of this CoreApproveCondition. # noqa: E501 + :rtype: str + """ + return self._signal_id + + @signal_id.setter + def signal_id(self, signal_id): + """Sets the signal_id of this CoreApproveCondition. + + A unique identifier for the requested boolean signal. # noqa: E501 + + :param signal_id: The signal_id of this CoreApproveCondition. # noqa: E501 + :type: str + """ + + self._signal_id = signal_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreApproveCondition, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreApproveCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_array_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_array_node.py new file mode 100644 index 0000000000..7922966896 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_array_node.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 + + +class CoreArrayNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node': 'CoreNode', + 'parallelism': 'int', + 'min_successes': 'int', + 'min_success_ratio': 'float' + } + + attribute_map = { + 'node': 'node', + 'parallelism': 'parallelism', + 'min_successes': 'min_successes', + 'min_success_ratio': 'min_success_ratio' + } + + def __init__(self, node=None, parallelism=None, min_successes=None, min_success_ratio=None): # noqa: E501 + """CoreArrayNode - a model defined in Swagger""" # noqa: E501 + + self._node = None + self._parallelism = None + self._min_successes = None + self._min_success_ratio = None + self.discriminator = None + + if node is not None: + self.node = node + if parallelism is not None: + self.parallelism = parallelism + if min_successes is not None: + self.min_successes = min_successes + if min_success_ratio is not None: + self.min_success_ratio = min_success_ratio + + @property + def node(self): + """Gets the node of this CoreArrayNode. # noqa: E501 + + node is the sub-node that will be executed for each element in the array. # noqa: E501 + + :return: The node of this CoreArrayNode. # noqa: E501 + :rtype: CoreNode + """ + return self._node + + @node.setter + def node(self, node): + """Sets the node of this CoreArrayNode. + + node is the sub-node that will be executed for each element in the array. # noqa: E501 + + :param node: The node of this CoreArrayNode. # noqa: E501 + :type: CoreNode + """ + + self._node = node + + @property + def parallelism(self): + """Gets the parallelism of this CoreArrayNode. # noqa: E501 + + parallelism defines the minimum number of instances to bring up concurrently at any given point. Note that this is an optimistic restriction and that, due to network partitioning or other failures, the actual number of currently running instances might be more. This has to be a positive number if assigned. Default value is size. # noqa: E501 + + :return: The parallelism of this CoreArrayNode. # noqa: E501 + :rtype: int + """ + return self._parallelism + + @parallelism.setter + def parallelism(self, parallelism): + """Sets the parallelism of this CoreArrayNode. + + parallelism defines the minimum number of instances to bring up concurrently at any given point. Note that this is an optimistic restriction and that, due to network partitioning or other failures, the actual number of currently running instances might be more. This has to be a positive number if assigned. Default value is size. # noqa: E501 + + :param parallelism: The parallelism of this CoreArrayNode. # noqa: E501 + :type: int + """ + + self._parallelism = parallelism + + @property + def min_successes(self): + """Gets the min_successes of this CoreArrayNode. # noqa: E501 + + min_successes is an absolute number of the minimum number of successful completions of sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful and outputs will be computed. This has to be a non-negative number if assigned. Default value is size (if specified). # noqa: E501 + + :return: The min_successes of this CoreArrayNode. # noqa: E501 + :rtype: int + """ + return self._min_successes + + @min_successes.setter + def min_successes(self, min_successes): + """Sets the min_successes of this CoreArrayNode. + + min_successes is an absolute number of the minimum number of successful completions of sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful and outputs will be computed. This has to be a non-negative number if assigned. Default value is size (if specified). # noqa: E501 + + :param min_successes: The min_successes of this CoreArrayNode. # noqa: E501 + :type: int + """ + + self._min_successes = min_successes + + @property + def min_success_ratio(self): + """Gets the min_success_ratio of this CoreArrayNode. # noqa: E501 + + If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an ArrayNode can be marked successful. # noqa: E501 + + :return: The min_success_ratio of this CoreArrayNode. # noqa: E501 + :rtype: float + """ + return self._min_success_ratio + + @min_success_ratio.setter + def min_success_ratio(self, min_success_ratio): + """Sets the min_success_ratio of this CoreArrayNode. + + If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an ArrayNode can be marked successful. # noqa: E501 + + :param min_success_ratio: The min_success_ratio of this CoreArrayNode. # noqa: E501 + :type: float + """ + + self._min_success_ratio = min_success_ratio + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreArrayNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreArrayNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py new file mode 100644 index 0000000000..3712928191 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreBinary(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'tag': 'str' + } + + attribute_map = { + 'value': 'value', + 'tag': 'tag' + } + + def __init__(self, value=None, tag=None): # noqa: E501 + """CoreBinary - a model defined in Swagger""" # noqa: E501 + + self._value = None + self._tag = None + self.discriminator = None + + if value is not None: + self.value = value + if tag is not None: + self.tag = tag + + @property + def value(self): + """Gets the value of this CoreBinary. # noqa: E501 + + + :return: The value of this CoreBinary. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CoreBinary. + + + :param value: The value of this CoreBinary. # noqa: E501 + :type: str + """ + if value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value): # noqa: E501 + raise ValueError(r"Invalid value for `value`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._value = value + + @property + def tag(self): + """Gets the tag of this CoreBinary. # noqa: E501 + + + :return: The tag of this CoreBinary. # noqa: E501 + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this CoreBinary. + + + :param tag: The tag of this CoreBinary. # noqa: E501 + :type: str + """ + + self._tag = tag + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBinary, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBinary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py new file mode 100644 index 0000000000..e865a23dc7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 + + +class CoreBinding(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'var': 'str', + 'binding': 'CoreBindingData' + } + + attribute_map = { + 'var': 'var', + 'binding': 'binding' + } + + def __init__(self, var=None, binding=None): # noqa: E501 + """CoreBinding - a model defined in Swagger""" # noqa: E501 + + self._var = None + self._binding = None + self.discriminator = None + + if var is not None: + self.var = var + if binding is not None: + self.binding = binding + + @property + def var(self): + """Gets the var of this CoreBinding. # noqa: E501 + + Variable name must match an input/output variable of the node. # noqa: E501 + + :return: The var of this CoreBinding. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreBinding. + + Variable name must match an input/output variable of the node. # noqa: E501 + + :param var: The var of this CoreBinding. # noqa: E501 + :type: str + """ + + self._var = var + + @property + def binding(self): + """Gets the binding of this CoreBinding. # noqa: E501 + + Data to use to bind this variable. # noqa: E501 + + :return: The binding of this CoreBinding. # noqa: E501 + :rtype: CoreBindingData + """ + return self._binding + + @binding.setter + def binding(self, binding): + """Sets the binding of this CoreBinding. + + Data to use to bind this variable. # noqa: E501 + + :param binding: The binding of this CoreBinding. # noqa: E501 + :type: CoreBindingData + """ + + self._binding = binding + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBinding, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py new file mode 100644 index 0000000000..611a1aca53 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection # noqa: F401,E501 +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap # noqa: F401,E501 +from flyteadmin.models.core_output_reference import CoreOutputReference # noqa: F401,E501 +from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 +from flyteadmin.models.core_union_info import CoreUnionInfo # noqa: F401,E501 + + +class CoreBindingData(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'scalar': 'CoreScalar', + 'collection': 'CoreBindingDataCollection', + 'promise': 'CoreOutputReference', + 'map': 'CoreBindingDataMap', + 'union': 'CoreUnionInfo' + } + + attribute_map = { + 'scalar': 'scalar', + 'collection': 'collection', + 'promise': 'promise', + 'map': 'map', + 'union': 'union' + } + + def __init__(self, scalar=None, collection=None, promise=None, map=None, union=None): # noqa: E501 + """CoreBindingData - a model defined in Swagger""" # noqa: E501 + + self._scalar = None + self._collection = None + self._promise = None + self._map = None + self._union = None + self.discriminator = None + + if scalar is not None: + self.scalar = scalar + if collection is not None: + self.collection = collection + if promise is not None: + self.promise = promise + if map is not None: + self.map = map + if union is not None: + self.union = union + + @property + def scalar(self): + """Gets the scalar of this CoreBindingData. # noqa: E501 + + A simple scalar value. # noqa: E501 + + :return: The scalar of this CoreBindingData. # noqa: E501 + :rtype: CoreScalar + """ + return self._scalar + + @scalar.setter + def scalar(self, scalar): + """Sets the scalar of this CoreBindingData. + + A simple scalar value. # noqa: E501 + + :param scalar: The scalar of this CoreBindingData. # noqa: E501 + :type: CoreScalar + """ + + self._scalar = scalar + + @property + def collection(self): + """Gets the collection of this CoreBindingData. # noqa: E501 + + A collection of binding data. This allows nesting of binding data to any number of levels. # noqa: E501 + + :return: The collection of this CoreBindingData. # noqa: E501 + :rtype: CoreBindingDataCollection + """ + return self._collection + + @collection.setter + def collection(self, collection): + """Sets the collection of this CoreBindingData. + + A collection of binding data. This allows nesting of binding data to any number of levels. # noqa: E501 + + :param collection: The collection of this CoreBindingData. # noqa: E501 + :type: CoreBindingDataCollection + """ + + self._collection = collection + + @property + def promise(self): + """Gets the promise of this CoreBindingData. # noqa: E501 + + References an output promised by another node. # noqa: E501 + + :return: The promise of this CoreBindingData. # noqa: E501 + :rtype: CoreOutputReference + """ + return self._promise + + @promise.setter + def promise(self, promise): + """Sets the promise of this CoreBindingData. + + References an output promised by another node. # noqa: E501 + + :param promise: The promise of this CoreBindingData. # noqa: E501 + :type: CoreOutputReference + """ + + self._promise = promise + + @property + def map(self): + """Gets the map of this CoreBindingData. # noqa: E501 + + A map of bindings. The key is always a string. # noqa: E501 + + :return: The map of this CoreBindingData. # noqa: E501 + :rtype: CoreBindingDataMap + """ + return self._map + + @map.setter + def map(self, map): + """Sets the map of this CoreBindingData. + + A map of bindings. The key is always a string. # noqa: E501 + + :param map: The map of this CoreBindingData. # noqa: E501 + :type: CoreBindingDataMap + """ + + self._map = map + + @property + def union(self): + """Gets the union of this CoreBindingData. # noqa: E501 + + + :return: The union of this CoreBindingData. # noqa: E501 + :rtype: CoreUnionInfo + """ + return self._union + + @union.setter + def union(self, union): + """Sets the union of this CoreBindingData. + + + :param union: The union of this CoreBindingData. # noqa: E501 + :type: CoreUnionInfo + """ + + self._union = union + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBindingData, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBindingData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py new file mode 100644 index 0000000000..a2e765d7fa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 + + +class CoreBindingDataCollection(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bindings': 'list[CoreBindingData]' + } + + attribute_map = { + 'bindings': 'bindings' + } + + def __init__(self, bindings=None): # noqa: E501 + """CoreBindingDataCollection - a model defined in Swagger""" # noqa: E501 + + self._bindings = None + self.discriminator = None + + if bindings is not None: + self.bindings = bindings + + @property + def bindings(self): + """Gets the bindings of this CoreBindingDataCollection. # noqa: E501 + + + :return: The bindings of this CoreBindingDataCollection. # noqa: E501 + :rtype: list[CoreBindingData] + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this CoreBindingDataCollection. + + + :param bindings: The bindings of this CoreBindingDataCollection. # noqa: E501 + :type: list[CoreBindingData] + """ + + self._bindings = bindings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBindingDataCollection, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBindingDataCollection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py new file mode 100644 index 0000000000..d3d00d4044 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 + + +class CoreBindingDataMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bindings': 'dict(str, CoreBindingData)' + } + + attribute_map = { + 'bindings': 'bindings' + } + + def __init__(self, bindings=None): # noqa: E501 + """CoreBindingDataMap - a model defined in Swagger""" # noqa: E501 + + self._bindings = None + self.discriminator = None + + if bindings is not None: + self.bindings = bindings + + @property + def bindings(self): + """Gets the bindings of this CoreBindingDataMap. # noqa: E501 + + + :return: The bindings of this CoreBindingDataMap. # noqa: E501 + :rtype: dict(str, CoreBindingData) + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this CoreBindingDataMap. + + + :param bindings: The bindings of this CoreBindingDataMap. # noqa: E501 + :type: dict(str, CoreBindingData) + """ + + self._bindings = bindings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBindingDataMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBindingDataMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py new file mode 100644 index 0000000000..270ae7060e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata # noqa: F401,E501 + + +class CoreBlob(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metadata': 'CoreBlobMetadata', + 'uri': 'str' + } + + attribute_map = { + 'metadata': 'metadata', + 'uri': 'uri' + } + + def __init__(self, metadata=None, uri=None): # noqa: E501 + """CoreBlob - a model defined in Swagger""" # noqa: E501 + + self._metadata = None + self._uri = None + self.discriminator = None + + if metadata is not None: + self.metadata = metadata + if uri is not None: + self.uri = uri + + @property + def metadata(self): + """Gets the metadata of this CoreBlob. # noqa: E501 + + + :return: The metadata of this CoreBlob. # noqa: E501 + :rtype: CoreBlobMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreBlob. + + + :param metadata: The metadata of this CoreBlob. # noqa: E501 + :type: CoreBlobMetadata + """ + + self._metadata = metadata + + @property + def uri(self): + """Gets the uri of this CoreBlob. # noqa: E501 + + + :return: The uri of this CoreBlob. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this CoreBlob. + + + :param uri: The uri of this CoreBlob. # noqa: E501 + :type: str + """ + + self._uri = uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBlob, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBlob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py new file mode 100644 index 0000000000..3a12b7f987 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_blob_type import CoreBlobType # noqa: F401,E501 + + +class CoreBlobMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'CoreBlobType' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): # noqa: E501 + """CoreBlobMetadata - a model defined in Swagger""" # noqa: E501 + + self._type = None + self.discriminator = None + + if type is not None: + self.type = type + + @property + def type(self): + """Gets the type of this CoreBlobMetadata. # noqa: E501 + + + :return: The type of this CoreBlobMetadata. # noqa: E501 + :rtype: CoreBlobType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreBlobMetadata. + + + :param type: The type of this CoreBlobMetadata. # noqa: E501 + :type: CoreBlobType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBlobMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBlobMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py new file mode 100644 index 0000000000..a81b58c44f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality # noqa: F401,E501 + + +class CoreBlobType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'format': 'str', + 'dimensionality': 'BlobTypeBlobDimensionality' + } + + attribute_map = { + 'format': 'format', + 'dimensionality': 'dimensionality' + } + + def __init__(self, format=None, dimensionality=None): # noqa: E501 + """CoreBlobType - a model defined in Swagger""" # noqa: E501 + + self._format = None + self._dimensionality = None + self.discriminator = None + + if format is not None: + self.format = format + if dimensionality is not None: + self.dimensionality = dimensionality + + @property + def format(self): + """Gets the format of this CoreBlobType. # noqa: E501 + + + :return: The format of this CoreBlobType. # noqa: E501 + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this CoreBlobType. + + + :param format: The format of this CoreBlobType. # noqa: E501 + :type: str + """ + + self._format = format + + @property + def dimensionality(self): + """Gets the dimensionality of this CoreBlobType. # noqa: E501 + + + :return: The dimensionality of this CoreBlobType. # noqa: E501 + :rtype: BlobTypeBlobDimensionality + """ + return self._dimensionality + + @dimensionality.setter + def dimensionality(self, dimensionality): + """Sets the dimensionality of this CoreBlobType. + + + :param dimensionality: The dimensionality of this CoreBlobType. # noqa: E501 + :type: BlobTypeBlobDimensionality + """ + + self._dimensionality = dimensionality + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBlobType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBlobType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py new file mode 100644 index 0000000000..f7eaff6130 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression # noqa: F401,E501 +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression # noqa: F401,E501 + + +class CoreBooleanExpression(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conjunction': 'CoreConjunctionExpression', + 'comparison': 'CoreComparisonExpression' + } + + attribute_map = { + 'conjunction': 'conjunction', + 'comparison': 'comparison' + } + + def __init__(self, conjunction=None, comparison=None): # noqa: E501 + """CoreBooleanExpression - a model defined in Swagger""" # noqa: E501 + + self._conjunction = None + self._comparison = None + self.discriminator = None + + if conjunction is not None: + self.conjunction = conjunction + if comparison is not None: + self.comparison = comparison + + @property + def conjunction(self): + """Gets the conjunction of this CoreBooleanExpression. # noqa: E501 + + + :return: The conjunction of this CoreBooleanExpression. # noqa: E501 + :rtype: CoreConjunctionExpression + """ + return self._conjunction + + @conjunction.setter + def conjunction(self, conjunction): + """Sets the conjunction of this CoreBooleanExpression. + + + :param conjunction: The conjunction of this CoreBooleanExpression. # noqa: E501 + :type: CoreConjunctionExpression + """ + + self._conjunction = conjunction + + @property + def comparison(self): + """Gets the comparison of this CoreBooleanExpression. # noqa: E501 + + + :return: The comparison of this CoreBooleanExpression. # noqa: E501 + :rtype: CoreComparisonExpression + """ + return self._comparison + + @comparison.setter + def comparison(self, comparison): + """Sets the comparison of this CoreBooleanExpression. + + + :param comparison: The comparison of this CoreBooleanExpression. # noqa: E501 + :type: CoreComparisonExpression + """ + + self._comparison = comparison + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBooleanExpression, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBooleanExpression): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py new file mode 100644 index 0000000000..db7cc3c71d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_if_else_block import CoreIfElseBlock # noqa: F401,E501 + + +class CoreBranchNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'if_else': 'CoreIfElseBlock' + } + + attribute_map = { + 'if_else': 'if_else' + } + + def __init__(self, if_else=None): # noqa: E501 + """CoreBranchNode - a model defined in Swagger""" # noqa: E501 + + self._if_else = None + self.discriminator = None + + if if_else is not None: + self.if_else = if_else + + @property + def if_else(self): + """Gets the if_else of this CoreBranchNode. # noqa: E501 + + + :return: The if_else of this CoreBranchNode. # noqa: E501 + :rtype: CoreIfElseBlock + """ + return self._if_else + + @if_else.setter + def if_else(self, if_else): + """Sets the if_else of this CoreBranchNode. + + + :param if_else: The if_else of this CoreBranchNode. # noqa: E501 + :type: CoreIfElseBlock + """ + + self._if_else = if_else + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBranchNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBranchNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_artifact_tag.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_artifact_tag.py new file mode 100644 index 0000000000..77fb0a950a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_artifact_tag.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreCatalogArtifactTag(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'artifact_id': 'str', + 'name': 'str' + } + + attribute_map = { + 'artifact_id': 'artifact_id', + 'name': 'name' + } + + def __init__(self, artifact_id=None, name=None): # noqa: E501 + """CoreCatalogArtifactTag - a model defined in Swagger""" # noqa: E501 + + self._artifact_id = None + self._name = None + self.discriminator = None + + if artifact_id is not None: + self.artifact_id = artifact_id + if name is not None: + self.name = name + + @property + def artifact_id(self): + """Gets the artifact_id of this CoreCatalogArtifactTag. # noqa: E501 + + + :return: The artifact_id of this CoreCatalogArtifactTag. # noqa: E501 + :rtype: str + """ + return self._artifact_id + + @artifact_id.setter + def artifact_id(self, artifact_id): + """Sets the artifact_id of this CoreCatalogArtifactTag. + + + :param artifact_id: The artifact_id of this CoreCatalogArtifactTag. # noqa: E501 + :type: str + """ + + self._artifact_id = artifact_id + + @property + def name(self): + """Gets the name of this CoreCatalogArtifactTag. # noqa: E501 + + + :return: The name of this CoreCatalogArtifactTag. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreCatalogArtifactTag. + + + :param name: The name of this CoreCatalogArtifactTag. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCatalogArtifactTag, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCatalogArtifactTag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_cache_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_cache_status.py new file mode 100644 index 0000000000..03e6e78ab8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_cache_status.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreCatalogCacheStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DISABLED = "CACHE_DISABLED" + MISS = "CACHE_MISS" + HIT = "CACHE_HIT" + POPULATED = "CACHE_POPULATED" + LOOKUP_FAILURE = "CACHE_LOOKUP_FAILURE" + PUT_FAILURE = "CACHE_PUT_FAILURE" + SKIPPED = "CACHE_SKIPPED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreCatalogCacheStatus - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCatalogCacheStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCatalogCacheStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_metadata.py new file mode 100644 index 0000000000..ae3d5f81f5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_metadata.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 + + +class CoreCatalogMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'dataset_id': 'CoreIdentifier', + 'artifact_tag': 'CoreCatalogArtifactTag', + 'source_task_execution': 'CoreTaskExecutionIdentifier' + } + + attribute_map = { + 'dataset_id': 'dataset_id', + 'artifact_tag': 'artifact_tag', + 'source_task_execution': 'source_task_execution' + } + + def __init__(self, dataset_id=None, artifact_tag=None, source_task_execution=None): # noqa: E501 + """CoreCatalogMetadata - a model defined in Swagger""" # noqa: E501 + + self._dataset_id = None + self._artifact_tag = None + self._source_task_execution = None + self.discriminator = None + + if dataset_id is not None: + self.dataset_id = dataset_id + if artifact_tag is not None: + self.artifact_tag = artifact_tag + if source_task_execution is not None: + self.source_task_execution = source_task_execution + + @property + def dataset_id(self): + """Gets the dataset_id of this CoreCatalogMetadata. # noqa: E501 + + + :return: The dataset_id of this CoreCatalogMetadata. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._dataset_id + + @dataset_id.setter + def dataset_id(self, dataset_id): + """Sets the dataset_id of this CoreCatalogMetadata. + + + :param dataset_id: The dataset_id of this CoreCatalogMetadata. # noqa: E501 + :type: CoreIdentifier + """ + + self._dataset_id = dataset_id + + @property + def artifact_tag(self): + """Gets the artifact_tag of this CoreCatalogMetadata. # noqa: E501 + + + :return: The artifact_tag of this CoreCatalogMetadata. # noqa: E501 + :rtype: CoreCatalogArtifactTag + """ + return self._artifact_tag + + @artifact_tag.setter + def artifact_tag(self, artifact_tag): + """Sets the artifact_tag of this CoreCatalogMetadata. + + + :param artifact_tag: The artifact_tag of this CoreCatalogMetadata. # noqa: E501 + :type: CoreCatalogArtifactTag + """ + + self._artifact_tag = artifact_tag + + @property + def source_task_execution(self): + """Gets the source_task_execution of this CoreCatalogMetadata. # noqa: E501 + + + :return: The source_task_execution of this CoreCatalogMetadata. # noqa: E501 + :rtype: CoreTaskExecutionIdentifier + """ + return self._source_task_execution + + @source_task_execution.setter + def source_task_execution(self, source_task_execution): + """Sets the source_task_execution of this CoreCatalogMetadata. + + + :param source_task_execution: The source_task_execution of this CoreCatalogMetadata. # noqa: E501 + :type: CoreTaskExecutionIdentifier + """ + + self._source_task_execution = source_task_execution + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCatalogMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCatalogMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py new file mode 100644 index 0000000000..76e06e75c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator # noqa: F401,E501 +from flyteadmin.models.core_operand import CoreOperand # noqa: F401,E501 + + +class CoreComparisonExpression(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'operator': 'ComparisonExpressionOperator', + 'left_value': 'CoreOperand', + 'right_value': 'CoreOperand' + } + + attribute_map = { + 'operator': 'operator', + 'left_value': 'left_value', + 'right_value': 'right_value' + } + + def __init__(self, operator=None, left_value=None, right_value=None): # noqa: E501 + """CoreComparisonExpression - a model defined in Swagger""" # noqa: E501 + + self._operator = None + self._left_value = None + self._right_value = None + self.discriminator = None + + if operator is not None: + self.operator = operator + if left_value is not None: + self.left_value = left_value + if right_value is not None: + self.right_value = right_value + + @property + def operator(self): + """Gets the operator of this CoreComparisonExpression. # noqa: E501 + + + :return: The operator of this CoreComparisonExpression. # noqa: E501 + :rtype: ComparisonExpressionOperator + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this CoreComparisonExpression. + + + :param operator: The operator of this CoreComparisonExpression. # noqa: E501 + :type: ComparisonExpressionOperator + """ + + self._operator = operator + + @property + def left_value(self): + """Gets the left_value of this CoreComparisonExpression. # noqa: E501 + + + :return: The left_value of this CoreComparisonExpression. # noqa: E501 + :rtype: CoreOperand + """ + return self._left_value + + @left_value.setter + def left_value(self, left_value): + """Sets the left_value of this CoreComparisonExpression. + + + :param left_value: The left_value of this CoreComparisonExpression. # noqa: E501 + :type: CoreOperand + """ + + self._left_value = left_value + + @property + def right_value(self): + """Gets the right_value of this CoreComparisonExpression. # noqa: E501 + + + :return: The right_value of this CoreComparisonExpression. # noqa: E501 + :rtype: CoreOperand + """ + return self._right_value + + @right_value.setter + def right_value(self, right_value): + """Sets the right_value of this CoreComparisonExpression. + + + :param right_value: The right_value of this CoreComparisonExpression. # noqa: E501 + :type: CoreOperand + """ + + self._right_value = right_value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreComparisonExpression, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreComparisonExpression): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py new file mode 100644 index 0000000000..e7bb749c0f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: F401,E501 + + +class CoreCompiledTask(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreTaskTemplate' + } + + attribute_map = { + 'template': 'template' + } + + def __init__(self, template=None): # noqa: E501 + """CoreCompiledTask - a model defined in Swagger""" # noqa: E501 + + self._template = None + self.discriminator = None + + if template is not None: + self.template = template + + @property + def template(self): + """Gets the template of this CoreCompiledTask. # noqa: E501 + + + :return: The template of this CoreCompiledTask. # noqa: E501 + :rtype: CoreTaskTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this CoreCompiledTask. + + + :param template: The template of this CoreCompiledTask. # noqa: E501 + :type: CoreTaskTemplate + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCompiledTask, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCompiledTask): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py new file mode 100644 index 0000000000..2b7de1f256 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_connection_set import CoreConnectionSet # noqa: F401,E501 +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: F401,E501 + + +class CoreCompiledWorkflow(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreWorkflowTemplate', + 'connections': 'CoreConnectionSet' + } + + attribute_map = { + 'template': 'template', + 'connections': 'connections' + } + + def __init__(self, template=None, connections=None): # noqa: E501 + """CoreCompiledWorkflow - a model defined in Swagger""" # noqa: E501 + + self._template = None + self._connections = None + self.discriminator = None + + if template is not None: + self.template = template + if connections is not None: + self.connections = connections + + @property + def template(self): + """Gets the template of this CoreCompiledWorkflow. # noqa: E501 + + + :return: The template of this CoreCompiledWorkflow. # noqa: E501 + :rtype: CoreWorkflowTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this CoreCompiledWorkflow. + + + :param template: The template of this CoreCompiledWorkflow. # noqa: E501 + :type: CoreWorkflowTemplate + """ + + self._template = template + + @property + def connections(self): + """Gets the connections of this CoreCompiledWorkflow. # noqa: E501 + + For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. # noqa: E501 + + :return: The connections of this CoreCompiledWorkflow. # noqa: E501 + :rtype: CoreConnectionSet + """ + return self._connections + + @connections.setter + def connections(self, connections): + """Sets the connections of this CoreCompiledWorkflow. + + For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. # noqa: E501 + + :param connections: The connections of this CoreCompiledWorkflow. # noqa: E501 + :type: CoreConnectionSet + """ + + self._connections = connections + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCompiledWorkflow, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCompiledWorkflow): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py new file mode 100644 index 0000000000..48afd2e2cc --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: F401,E501 +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow # noqa: F401,E501 + + +class CoreCompiledWorkflowClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'primary': 'CoreCompiledWorkflow', + 'sub_workflows': 'list[CoreCompiledWorkflow]', + 'tasks': 'list[CoreCompiledTask]' + } + + attribute_map = { + 'primary': 'primary', + 'sub_workflows': 'sub_workflows', + 'tasks': 'tasks' + } + + def __init__(self, primary=None, sub_workflows=None, tasks=None): # noqa: E501 + """CoreCompiledWorkflowClosure - a model defined in Swagger""" # noqa: E501 + + self._primary = None + self._sub_workflows = None + self._tasks = None + self.discriminator = None + + if primary is not None: + self.primary = primary + if sub_workflows is not None: + self.sub_workflows = sub_workflows + if tasks is not None: + self.tasks = tasks + + @property + def primary(self): + """Gets the primary of this CoreCompiledWorkflowClosure. # noqa: E501 + + + :return: The primary of this CoreCompiledWorkflowClosure. # noqa: E501 + :rtype: CoreCompiledWorkflow + """ + return self._primary + + @primary.setter + def primary(self, primary): + """Sets the primary of this CoreCompiledWorkflowClosure. + + + :param primary: The primary of this CoreCompiledWorkflowClosure. # noqa: E501 + :type: CoreCompiledWorkflow + """ + + self._primary = primary + + @property + def sub_workflows(self): + """Gets the sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 + + + :return: The sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 + :rtype: list[CoreCompiledWorkflow] + """ + return self._sub_workflows + + @sub_workflows.setter + def sub_workflows(self, sub_workflows): + """Sets the sub_workflows of this CoreCompiledWorkflowClosure. + + + :param sub_workflows: The sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 + :type: list[CoreCompiledWorkflow] + """ + + self._sub_workflows = sub_workflows + + @property + def tasks(self): + """Gets the tasks of this CoreCompiledWorkflowClosure. # noqa: E501 + + + :return: The tasks of this CoreCompiledWorkflowClosure. # noqa: E501 + :rtype: list[CoreCompiledTask] + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Sets the tasks of this CoreCompiledWorkflowClosure. + + + :param tasks: The tasks of this CoreCompiledWorkflowClosure. # noqa: E501 + :type: list[CoreCompiledTask] + """ + + self._tasks = tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCompiledWorkflowClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCompiledWorkflowClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py new file mode 100644 index 0000000000..d28a2ac830 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator # noqa: F401,E501 +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: F401,E501 + + +class CoreConjunctionExpression(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'operator': 'ConjunctionExpressionLogicalOperator', + 'left_expression': 'CoreBooleanExpression', + 'right_expression': 'CoreBooleanExpression' + } + + attribute_map = { + 'operator': 'operator', + 'left_expression': 'left_expression', + 'right_expression': 'right_expression' + } + + def __init__(self, operator=None, left_expression=None, right_expression=None): # noqa: E501 + """CoreConjunctionExpression - a model defined in Swagger""" # noqa: E501 + + self._operator = None + self._left_expression = None + self._right_expression = None + self.discriminator = None + + if operator is not None: + self.operator = operator + if left_expression is not None: + self.left_expression = left_expression + if right_expression is not None: + self.right_expression = right_expression + + @property + def operator(self): + """Gets the operator of this CoreConjunctionExpression. # noqa: E501 + + + :return: The operator of this CoreConjunctionExpression. # noqa: E501 + :rtype: ConjunctionExpressionLogicalOperator + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this CoreConjunctionExpression. + + + :param operator: The operator of this CoreConjunctionExpression. # noqa: E501 + :type: ConjunctionExpressionLogicalOperator + """ + + self._operator = operator + + @property + def left_expression(self): + """Gets the left_expression of this CoreConjunctionExpression. # noqa: E501 + + + :return: The left_expression of this CoreConjunctionExpression. # noqa: E501 + :rtype: CoreBooleanExpression + """ + return self._left_expression + + @left_expression.setter + def left_expression(self, left_expression): + """Sets the left_expression of this CoreConjunctionExpression. + + + :param left_expression: The left_expression of this CoreConjunctionExpression. # noqa: E501 + :type: CoreBooleanExpression + """ + + self._left_expression = left_expression + + @property + def right_expression(self): + """Gets the right_expression of this CoreConjunctionExpression. # noqa: E501 + + + :return: The right_expression of this CoreConjunctionExpression. # noqa: E501 + :rtype: CoreBooleanExpression + """ + return self._right_expression + + @right_expression.setter + def right_expression(self, right_expression): + """Sets the right_expression of this CoreConjunctionExpression. + + + :param right_expression: The right_expression of this CoreConjunctionExpression. # noqa: E501 + :type: CoreBooleanExpression + """ + + self._right_expression = right_expression + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreConjunctionExpression, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreConjunctionExpression): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py new file mode 100644 index 0000000000..05361c4a1e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList # noqa: F401,E501 + + +class CoreConnectionSet(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'downstream': 'dict(str, ConnectionSetIdList)', + 'upstream': 'dict(str, ConnectionSetIdList)' + } + + attribute_map = { + 'downstream': 'downstream', + 'upstream': 'upstream' + } + + def __init__(self, downstream=None, upstream=None): # noqa: E501 + """CoreConnectionSet - a model defined in Swagger""" # noqa: E501 + + self._downstream = None + self._upstream = None + self.discriminator = None + + if downstream is not None: + self.downstream = downstream + if upstream is not None: + self.upstream = upstream + + @property + def downstream(self): + """Gets the downstream of this CoreConnectionSet. # noqa: E501 + + + :return: The downstream of this CoreConnectionSet. # noqa: E501 + :rtype: dict(str, ConnectionSetIdList) + """ + return self._downstream + + @downstream.setter + def downstream(self, downstream): + """Sets the downstream of this CoreConnectionSet. + + + :param downstream: The downstream of this CoreConnectionSet. # noqa: E501 + :type: dict(str, ConnectionSetIdList) + """ + + self._downstream = downstream + + @property + def upstream(self): + """Gets the upstream of this CoreConnectionSet. # noqa: E501 + + + :return: The upstream of this CoreConnectionSet. # noqa: E501 + :rtype: dict(str, ConnectionSetIdList) + """ + return self._upstream + + @upstream.setter + def upstream(self, upstream): + """Sets the upstream of this CoreConnectionSet. + + + :param upstream: The upstream of this CoreConnectionSet. # noqa: E501 + :type: dict(str, ConnectionSetIdList) + """ + + self._upstream = upstream + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreConnectionSet, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreConnectionSet): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py new file mode 100644 index 0000000000..d62eb07977 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py @@ -0,0 +1,339 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.container_architecture import ContainerArchitecture # noqa: F401,E501 +from flyteadmin.models.core_container_port import CoreContainerPort # noqa: F401,E501 +from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig # noqa: F401,E501 +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: F401,E501 +from flyteadmin.models.core_resources import CoreResources # noqa: F401,E501 + + +class CoreContainer(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'image': 'str', + 'command': 'list[str]', + 'args': 'list[str]', + 'resources': 'CoreResources', + 'env': 'list[CoreKeyValuePair]', + 'config': 'list[CoreKeyValuePair]', + 'ports': 'list[CoreContainerPort]', + 'data_config': 'CoreDataLoadingConfig', + 'architecture': 'ContainerArchitecture' + } + + attribute_map = { + 'image': 'image', + 'command': 'command', + 'args': 'args', + 'resources': 'resources', + 'env': 'env', + 'config': 'config', + 'ports': 'ports', + 'data_config': 'data_config', + 'architecture': 'architecture' + } + + def __init__(self, image=None, command=None, args=None, resources=None, env=None, config=None, ports=None, data_config=None, architecture=None): # noqa: E501 + """CoreContainer - a model defined in Swagger""" # noqa: E501 + + self._image = None + self._command = None + self._args = None + self._resources = None + self._env = None + self._config = None + self._ports = None + self._data_config = None + self._architecture = None + self.discriminator = None + + if image is not None: + self.image = image + if command is not None: + self.command = command + if args is not None: + self.args = args + if resources is not None: + self.resources = resources + if env is not None: + self.env = env + if config is not None: + self.config = config + if ports is not None: + self.ports = ports + if data_config is not None: + self.data_config = data_config + if architecture is not None: + self.architecture = architecture + + @property + def image(self): + """Gets the image of this CoreContainer. # noqa: E501 + + + :return: The image of this CoreContainer. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this CoreContainer. + + + :param image: The image of this CoreContainer. # noqa: E501 + :type: str + """ + + self._image = image + + @property + def command(self): + """Gets the command of this CoreContainer. # noqa: E501 + + Command to be executed, if not provided, the default entrypoint in the container image will be used. # noqa: E501 + + :return: The command of this CoreContainer. # noqa: E501 + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this CoreContainer. + + Command to be executed, if not provided, the default entrypoint in the container image will be used. # noqa: E501 + + :param command: The command of this CoreContainer. # noqa: E501 + :type: list[str] + """ + + self._command = command + + @property + def args(self): + """Gets the args of this CoreContainer. # noqa: E501 + + These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. # noqa: E501 + + :return: The args of this CoreContainer. # noqa: E501 + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """Sets the args of this CoreContainer. + + These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. # noqa: E501 + + :param args: The args of this CoreContainer. # noqa: E501 + :type: list[str] + """ + + self._args = args + + @property + def resources(self): + """Gets the resources of this CoreContainer. # noqa: E501 + + Container resources requirement as specified by the container engine. # noqa: E501 + + :return: The resources of this CoreContainer. # noqa: E501 + :rtype: CoreResources + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this CoreContainer. + + Container resources requirement as specified by the container engine. # noqa: E501 + + :param resources: The resources of this CoreContainer. # noqa: E501 + :type: CoreResources + """ + + self._resources = resources + + @property + def env(self): + """Gets the env of this CoreContainer. # noqa: E501 + + Environment variables will be set as the container is starting up. # noqa: E501 + + :return: The env of this CoreContainer. # noqa: E501 + :rtype: list[CoreKeyValuePair] + """ + return self._env + + @env.setter + def env(self, env): + """Sets the env of this CoreContainer. + + Environment variables will be set as the container is starting up. # noqa: E501 + + :param env: The env of this CoreContainer. # noqa: E501 + :type: list[CoreKeyValuePair] + """ + + self._env = env + + @property + def config(self): + """Gets the config of this CoreContainer. # noqa: E501 + + Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. Deprecated, please use TaskTemplate.config instead. # noqa: E501 + + :return: The config of this CoreContainer. # noqa: E501 + :rtype: list[CoreKeyValuePair] + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this CoreContainer. + + Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. Deprecated, please use TaskTemplate.config instead. # noqa: E501 + + :param config: The config of this CoreContainer. # noqa: E501 + :type: list[CoreKeyValuePair] + """ + + self._config = config + + @property + def ports(self): + """Gets the ports of this CoreContainer. # noqa: E501 + + + :return: The ports of this CoreContainer. # noqa: E501 + :rtype: list[CoreContainerPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """Sets the ports of this CoreContainer. + + + :param ports: The ports of this CoreContainer. # noqa: E501 + :type: list[CoreContainerPort] + """ + + self._ports = ports + + @property + def data_config(self): + """Gets the data_config of this CoreContainer. # noqa: E501 + + + :return: The data_config of this CoreContainer. # noqa: E501 + :rtype: CoreDataLoadingConfig + """ + return self._data_config + + @data_config.setter + def data_config(self, data_config): + """Sets the data_config of this CoreContainer. + + + :param data_config: The data_config of this CoreContainer. # noqa: E501 + :type: CoreDataLoadingConfig + """ + + self._data_config = data_config + + @property + def architecture(self): + """Gets the architecture of this CoreContainer. # noqa: E501 + + + :return: The architecture of this CoreContainer. # noqa: E501 + :rtype: ContainerArchitecture + """ + return self._architecture + + @architecture.setter + def architecture(self, architecture): + """Sets the architecture of this CoreContainer. + + + :param architecture: The architecture of this CoreContainer. # noqa: E501 + :type: ContainerArchitecture + """ + + self._architecture = architecture + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreContainer, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreContainer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py new file mode 100644 index 0000000000..812da5c31e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreContainerPort(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'container_port': 'int' + } + + attribute_map = { + 'container_port': 'container_port' + } + + def __init__(self, container_port=None): # noqa: E501 + """CoreContainerPort - a model defined in Swagger""" # noqa: E501 + + self._container_port = None + self.discriminator = None + + if container_port is not None: + self.container_port = container_port + + @property + def container_port(self): + """Gets the container_port of this CoreContainerPort. # noqa: E501 + + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 + + :return: The container_port of this CoreContainerPort. # noqa: E501 + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this CoreContainerPort. + + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 + + :param container_port: The container_port of this CoreContainerPort. # noqa: E501 + :type: int + """ + + self._container_port = container_port + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreContainerPort, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreContainerPort): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_data_loading_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_data_loading_config.py new file mode 100644 index 0000000000..83e4629d4a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_data_loading_config.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_io_strategy import CoreIOStrategy # noqa: F401,E501 +from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat # noqa: F401,E501 + + +class CoreDataLoadingConfig(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool', + 'input_path': 'str', + 'output_path': 'str', + 'format': 'DataLoadingConfigLiteralMapFormat', + 'io_strategy': 'CoreIOStrategy' + } + + attribute_map = { + 'enabled': 'enabled', + 'input_path': 'input_path', + 'output_path': 'output_path', + 'format': 'format', + 'io_strategy': 'io_strategy' + } + + def __init__(self, enabled=None, input_path=None, output_path=None, format=None, io_strategy=None): # noqa: E501 + """CoreDataLoadingConfig - a model defined in Swagger""" # noqa: E501 + + self._enabled = None + self._input_path = None + self._output_path = None + self._format = None + self._io_strategy = None + self.discriminator = None + + if enabled is not None: + self.enabled = enabled + if input_path is not None: + self.input_path = input_path + if output_path is not None: + self.output_path = output_path + if format is not None: + self.format = format + if io_strategy is not None: + self.io_strategy = io_strategy + + @property + def enabled(self): + """Gets the enabled of this CoreDataLoadingConfig. # noqa: E501 + + + :return: The enabled of this CoreDataLoadingConfig. # noqa: E501 + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this CoreDataLoadingConfig. + + + :param enabled: The enabled of this CoreDataLoadingConfig. # noqa: E501 + :type: bool + """ + + self._enabled = enabled + + @property + def input_path(self): + """Gets the input_path of this CoreDataLoadingConfig. # noqa: E501 + + + :return: The input_path of this CoreDataLoadingConfig. # noqa: E501 + :rtype: str + """ + return self._input_path + + @input_path.setter + def input_path(self, input_path): + """Sets the input_path of this CoreDataLoadingConfig. + + + :param input_path: The input_path of this CoreDataLoadingConfig. # noqa: E501 + :type: str + """ + + self._input_path = input_path + + @property + def output_path(self): + """Gets the output_path of this CoreDataLoadingConfig. # noqa: E501 + + + :return: The output_path of this CoreDataLoadingConfig. # noqa: E501 + :rtype: str + """ + return self._output_path + + @output_path.setter + def output_path(self, output_path): + """Sets the output_path of this CoreDataLoadingConfig. + + + :param output_path: The output_path of this CoreDataLoadingConfig. # noqa: E501 + :type: str + """ + + self._output_path = output_path + + @property + def format(self): + """Gets the format of this CoreDataLoadingConfig. # noqa: E501 + + + :return: The format of this CoreDataLoadingConfig. # noqa: E501 + :rtype: DataLoadingConfigLiteralMapFormat + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this CoreDataLoadingConfig. + + + :param format: The format of this CoreDataLoadingConfig. # noqa: E501 + :type: DataLoadingConfigLiteralMapFormat + """ + + self._format = format + + @property + def io_strategy(self): + """Gets the io_strategy of this CoreDataLoadingConfig. # noqa: E501 + + + :return: The io_strategy of this CoreDataLoadingConfig. # noqa: E501 + :rtype: CoreIOStrategy + """ + return self._io_strategy + + @io_strategy.setter + def io_strategy(self, io_strategy): + """Sets the io_strategy of this CoreDataLoadingConfig. + + + :param io_strategy: The io_strategy of this CoreDataLoadingConfig. # noqa: E501 + :type: CoreIOStrategy + """ + + self._io_strategy = io_strategy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreDataLoadingConfig, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreDataLoadingConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_enum_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_enum_type.py new file mode 100644 index 0000000000..bf9e6f85c6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_enum_type.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreEnumType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'list[str]' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """CoreEnumType - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this CoreEnumType. # noqa: E501 + + Predefined set of enum values. # noqa: E501 + + :return: The values of this CoreEnumType. # noqa: E501 + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this CoreEnumType. + + Predefined set of enum values. # noqa: E501 + + :param values: The values of this CoreEnumType. # noqa: E501 + :type: list[str] + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreEnumType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreEnumType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py new file mode 100644 index 0000000000..50537e11db --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreError(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'failed_node_id': 'str', + 'message': 'str' + } + + attribute_map = { + 'failed_node_id': 'failed_node_id', + 'message': 'message' + } + + def __init__(self, failed_node_id=None, message=None): # noqa: E501 + """CoreError - a model defined in Swagger""" # noqa: E501 + + self._failed_node_id = None + self._message = None + self.discriminator = None + + if failed_node_id is not None: + self.failed_node_id = failed_node_id + if message is not None: + self.message = message + + @property + def failed_node_id(self): + """Gets the failed_node_id of this CoreError. # noqa: E501 + + The node id that threw the error. # noqa: E501 + + :return: The failed_node_id of this CoreError. # noqa: E501 + :rtype: str + """ + return self._failed_node_id + + @failed_node_id.setter + def failed_node_id(self, failed_node_id): + """Sets the failed_node_id of this CoreError. + + The node id that threw the error. # noqa: E501 + + :param failed_node_id: The failed_node_id of this CoreError. # noqa: E501 + :type: str + """ + + self._failed_node_id = failed_node_id + + @property + def message(self): + """Gets the message of this CoreError. # noqa: E501 + + Error message thrown. # noqa: E501 + + :return: The message of this CoreError. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CoreError. + + Error message thrown. # noqa: E501 + + :param message: The message of this CoreError. # noqa: E501 + :type: str + """ + + self._message = message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreError, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py new file mode 100644 index 0000000000..b71cd287df --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind # noqa: F401,E501 + + +class CoreExecutionError(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'message': 'str', + 'error_uri': 'str', + 'kind': 'ExecutionErrorErrorKind' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'error_uri': 'error_uri', + 'kind': 'kind' + } + + def __init__(self, code=None, message=None, error_uri=None, kind=None): # noqa: E501 + """CoreExecutionError - a model defined in Swagger""" # noqa: E501 + + self._code = None + self._message = None + self._error_uri = None + self._kind = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if error_uri is not None: + self.error_uri = error_uri + if kind is not None: + self.kind = kind + + @property + def code(self): + """Gets the code of this CoreExecutionError. # noqa: E501 + + + :return: The code of this CoreExecutionError. # noqa: E501 + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CoreExecutionError. + + + :param code: The code of this CoreExecutionError. # noqa: E501 + :type: str + """ + + self._code = code + + @property + def message(self): + """Gets the message of this CoreExecutionError. # noqa: E501 + + Detailed description of the error - including stack trace. # noqa: E501 + + :return: The message of this CoreExecutionError. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CoreExecutionError. + + Detailed description of the error - including stack trace. # noqa: E501 + + :param message: The message of this CoreExecutionError. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def error_uri(self): + """Gets the error_uri of this CoreExecutionError. # noqa: E501 + + + :return: The error_uri of this CoreExecutionError. # noqa: E501 + :rtype: str + """ + return self._error_uri + + @error_uri.setter + def error_uri(self, error_uri): + """Sets the error_uri of this CoreExecutionError. + + + :param error_uri: The error_uri of this CoreExecutionError. # noqa: E501 + :type: str + """ + + self._error_uri = error_uri + + @property + def kind(self): + """Gets the kind of this CoreExecutionError. # noqa: E501 + + + :return: The kind of this CoreExecutionError. # noqa: E501 + :rtype: ExecutionErrorErrorKind + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this CoreExecutionError. + + + :param kind: The kind of this CoreExecutionError. # noqa: E501 + :type: ExecutionErrorErrorKind + """ + + self._kind = kind + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreExecutionError, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreExecutionError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gate_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gate_node.py new file mode 100644 index 0000000000..87d54a2580 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gate_node.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_approve_condition import CoreApproveCondition # noqa: F401,E501 +from flyteadmin.models.core_signal_condition import CoreSignalCondition # noqa: F401,E501 +from flyteadmin.models.core_sleep_condition import CoreSleepCondition # noqa: F401,E501 + + +class CoreGateNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'approve': 'CoreApproveCondition', + 'signal': 'CoreSignalCondition', + 'sleep': 'CoreSleepCondition' + } + + attribute_map = { + 'approve': 'approve', + 'signal': 'signal', + 'sleep': 'sleep' + } + + def __init__(self, approve=None, signal=None, sleep=None): # noqa: E501 + """CoreGateNode - a model defined in Swagger""" # noqa: E501 + + self._approve = None + self._signal = None + self._sleep = None + self.discriminator = None + + if approve is not None: + self.approve = approve + if signal is not None: + self.signal = signal + if sleep is not None: + self.sleep = sleep + + @property + def approve(self): + """Gets the approve of this CoreGateNode. # noqa: E501 + + ApproveCondition represents a dependency on an external approval provided by a boolean signal. # noqa: E501 + + :return: The approve of this CoreGateNode. # noqa: E501 + :rtype: CoreApproveCondition + """ + return self._approve + + @approve.setter + def approve(self, approve): + """Sets the approve of this CoreGateNode. + + ApproveCondition represents a dependency on an external approval provided by a boolean signal. # noqa: E501 + + :param approve: The approve of this CoreGateNode. # noqa: E501 + :type: CoreApproveCondition + """ + + self._approve = approve + + @property + def signal(self): + """Gets the signal of this CoreGateNode. # noqa: E501 + + SignalCondition represents a dependency on an signal. # noqa: E501 + + :return: The signal of this CoreGateNode. # noqa: E501 + :rtype: CoreSignalCondition + """ + return self._signal + + @signal.setter + def signal(self, signal): + """Sets the signal of this CoreGateNode. + + SignalCondition represents a dependency on an signal. # noqa: E501 + + :param signal: The signal of this CoreGateNode. # noqa: E501 + :type: CoreSignalCondition + """ + + self._signal = signal + + @property + def sleep(self): + """Gets the sleep of this CoreGateNode. # noqa: E501 + + SleepCondition represents a dependency on waiting for the specified duration. # noqa: E501 + + :return: The sleep of this CoreGateNode. # noqa: E501 + :rtype: CoreSleepCondition + """ + return self._sleep + + @sleep.setter + def sleep(self, sleep): + """Sets the sleep of this CoreGateNode. + + SleepCondition represents a dependency on waiting for the specified duration. # noqa: E501 + + :param sleep: The sleep of this CoreGateNode. # noqa: E501 + :type: CoreSleepCondition + """ + + self._sleep = sleep + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreGateNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreGateNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py new file mode 100644 index 0000000000..ae03fc69e6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_resource_type import CoreResourceType # noqa: F401,E501 + + +class CoreIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_type': 'CoreResourceType', + 'project': 'str', + 'domain': 'str', + 'name': 'str', + 'version': 'str' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'project': 'project', + 'domain': 'domain', + 'name': 'name', + 'version': 'version' + } + + def __init__(self, resource_type=None, project=None, domain=None, name=None, version=None): # noqa: E501 + """CoreIdentifier - a model defined in Swagger""" # noqa: E501 + + self._resource_type = None + self._project = None + self._domain = None + self._name = None + self._version = None + self.discriminator = None + + if resource_type is not None: + self.resource_type = resource_type + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + if version is not None: + self.version = version + + @property + def resource_type(self): + """Gets the resource_type of this CoreIdentifier. # noqa: E501 + + Identifies the specific type of resource that this identifier corresponds to. # noqa: E501 + + :return: The resource_type of this CoreIdentifier. # noqa: E501 + :rtype: CoreResourceType + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this CoreIdentifier. + + Identifies the specific type of resource that this identifier corresponds to. # noqa: E501 + + :param resource_type: The resource_type of this CoreIdentifier. # noqa: E501 + :type: CoreResourceType + """ + + self._resource_type = resource_type + + @property + def project(self): + """Gets the project of this CoreIdentifier. # noqa: E501 + + Name of the project the resource belongs to. # noqa: E501 + + :return: The project of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this CoreIdentifier. + + Name of the project the resource belongs to. # noqa: E501 + + :param project: The project of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this CoreIdentifier. # noqa: E501 + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :return: The domain of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this CoreIdentifier. + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :param domain: The domain of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this CoreIdentifier. # noqa: E501 + + User provided value for the resource. # noqa: E501 + + :return: The name of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreIdentifier. + + User provided value for the resource. # noqa: E501 + + :param name: The name of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def version(self): + """Gets the version of this CoreIdentifier. # noqa: E501 + + Specific version of the resource. # noqa: E501 + + :return: The version of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CoreIdentifier. + + Specific version of the resource. # noqa: E501 + + :param version: The version of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identity.py new file mode 100644 index 0000000000..8ca7ce92b7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identity.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client # noqa: F401,E501 + + +class CoreIdentity(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'iam_role': 'str', + 'k8s_service_account': 'str', + 'oauth2_client': 'CoreOAuth2Client', + 'execution_identity': 'str' + } + + attribute_map = { + 'iam_role': 'iam_role', + 'k8s_service_account': 'k8s_service_account', + 'oauth2_client': 'oauth2_client', + 'execution_identity': 'execution_identity' + } + + def __init__(self, iam_role=None, k8s_service_account=None, oauth2_client=None, execution_identity=None): # noqa: E501 + """CoreIdentity - a model defined in Swagger""" # noqa: E501 + + self._iam_role = None + self._k8s_service_account = None + self._oauth2_client = None + self._execution_identity = None + self.discriminator = None + + if iam_role is not None: + self.iam_role = iam_role + if k8s_service_account is not None: + self.k8s_service_account = k8s_service_account + if oauth2_client is not None: + self.oauth2_client = oauth2_client + if execution_identity is not None: + self.execution_identity = execution_identity + + @property + def iam_role(self): + """Gets the iam_role of this CoreIdentity. # noqa: E501 + + iam_role references the fully qualified name of Identity & Access Management role to impersonate. # noqa: E501 + + :return: The iam_role of this CoreIdentity. # noqa: E501 + :rtype: str + """ + return self._iam_role + + @iam_role.setter + def iam_role(self, iam_role): + """Sets the iam_role of this CoreIdentity. + + iam_role references the fully qualified name of Identity & Access Management role to impersonate. # noqa: E501 + + :param iam_role: The iam_role of this CoreIdentity. # noqa: E501 + :type: str + """ + + self._iam_role = iam_role + + @property + def k8s_service_account(self): + """Gets the k8s_service_account of this CoreIdentity. # noqa: E501 + + k8s_service_account references a kubernetes service account to impersonate. # noqa: E501 + + :return: The k8s_service_account of this CoreIdentity. # noqa: E501 + :rtype: str + """ + return self._k8s_service_account + + @k8s_service_account.setter + def k8s_service_account(self, k8s_service_account): + """Sets the k8s_service_account of this CoreIdentity. + + k8s_service_account references a kubernetes service account to impersonate. # noqa: E501 + + :param k8s_service_account: The k8s_service_account of this CoreIdentity. # noqa: E501 + :type: str + """ + + self._k8s_service_account = k8s_service_account + + @property + def oauth2_client(self): + """Gets the oauth2_client of this CoreIdentity. # noqa: E501 + + oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when making external calls. # noqa: E501 + + :return: The oauth2_client of this CoreIdentity. # noqa: E501 + :rtype: CoreOAuth2Client + """ + return self._oauth2_client + + @oauth2_client.setter + def oauth2_client(self, oauth2_client): + """Sets the oauth2_client of this CoreIdentity. + + oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when making external calls. # noqa: E501 + + :param oauth2_client: The oauth2_client of this CoreIdentity. # noqa: E501 + :type: CoreOAuth2Client + """ + + self._oauth2_client = oauth2_client + + @property + def execution_identity(self): + """Gets the execution_identity of this CoreIdentity. # noqa: E501 + + + :return: The execution_identity of this CoreIdentity. # noqa: E501 + :rtype: str + """ + return self._execution_identity + + @execution_identity.setter + def execution_identity(self, execution_identity): + """Sets the execution_identity of this CoreIdentity. + + + :param execution_identity: The execution_identity of this CoreIdentity. # noqa: E501 + :type: str + """ + + self._execution_identity = execution_identity + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIdentity, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIdentity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py new file mode 100644 index 0000000000..5368a70365 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: F401,E501 +from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 + + +class CoreIfBlock(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'condition': 'CoreBooleanExpression', + 'then_node': 'CoreNode' + } + + attribute_map = { + 'condition': 'condition', + 'then_node': 'then_node' + } + + def __init__(self, condition=None, then_node=None): # noqa: E501 + """CoreIfBlock - a model defined in Swagger""" # noqa: E501 + + self._condition = None + self._then_node = None + self.discriminator = None + + if condition is not None: + self.condition = condition + if then_node is not None: + self.then_node = then_node + + @property + def condition(self): + """Gets the condition of this CoreIfBlock. # noqa: E501 + + + :return: The condition of this CoreIfBlock. # noqa: E501 + :rtype: CoreBooleanExpression + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this CoreIfBlock. + + + :param condition: The condition of this CoreIfBlock. # noqa: E501 + :type: CoreBooleanExpression + """ + + self._condition = condition + + @property + def then_node(self): + """Gets the then_node of this CoreIfBlock. # noqa: E501 + + + :return: The then_node of this CoreIfBlock. # noqa: E501 + :rtype: CoreNode + """ + return self._then_node + + @then_node.setter + def then_node(self, then_node): + """Sets the then_node of this CoreIfBlock. + + + :param then_node: The then_node of this CoreIfBlock. # noqa: E501 + :type: CoreNode + """ + + self._then_node = then_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIfBlock, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIfBlock): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py new file mode 100644 index 0000000000..bff092a8a8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_error import CoreError # noqa: F401,E501 +from flyteadmin.models.core_if_block import CoreIfBlock # noqa: F401,E501 +from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 + + +class CoreIfElseBlock(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'case': 'CoreIfBlock', + 'other': 'list[CoreIfBlock]', + 'else_node': 'CoreNode', + 'error': 'CoreError' + } + + attribute_map = { + 'case': 'case', + 'other': 'other', + 'else_node': 'else_node', + 'error': 'error' + } + + def __init__(self, case=None, other=None, else_node=None, error=None): # noqa: E501 + """CoreIfElseBlock - a model defined in Swagger""" # noqa: E501 + + self._case = None + self._other = None + self._else_node = None + self._error = None + self.discriminator = None + + if case is not None: + self.case = case + if other is not None: + self.other = other + if else_node is not None: + self.else_node = else_node + if error is not None: + self.error = error + + @property + def case(self): + """Gets the case of this CoreIfElseBlock. # noqa: E501 + + +required. First condition to evaluate. # noqa: E501 + + :return: The case of this CoreIfElseBlock. # noqa: E501 + :rtype: CoreIfBlock + """ + return self._case + + @case.setter + def case(self, case): + """Sets the case of this CoreIfElseBlock. + + +required. First condition to evaluate. # noqa: E501 + + :param case: The case of this CoreIfElseBlock. # noqa: E501 + :type: CoreIfBlock + """ + + self._case = case + + @property + def other(self): + """Gets the other of this CoreIfElseBlock. # noqa: E501 + + +optional. Additional branches to evaluate. # noqa: E501 + + :return: The other of this CoreIfElseBlock. # noqa: E501 + :rtype: list[CoreIfBlock] + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this CoreIfElseBlock. + + +optional. Additional branches to evaluate. # noqa: E501 + + :param other: The other of this CoreIfElseBlock. # noqa: E501 + :type: list[CoreIfBlock] + """ + + self._other = other + + @property + def else_node(self): + """Gets the else_node of this CoreIfElseBlock. # noqa: E501 + + The node to execute in case none of the branches were taken. # noqa: E501 + + :return: The else_node of this CoreIfElseBlock. # noqa: E501 + :rtype: CoreNode + """ + return self._else_node + + @else_node.setter + def else_node(self, else_node): + """Sets the else_node of this CoreIfElseBlock. + + The node to execute in case none of the branches were taken. # noqa: E501 + + :param else_node: The else_node of this CoreIfElseBlock. # noqa: E501 + :type: CoreNode + """ + + self._else_node = else_node + + @property + def error(self): + """Gets the error of this CoreIfElseBlock. # noqa: E501 + + An error to throw in case none of the branches were taken. # noqa: E501 + + :return: The error of this CoreIfElseBlock. # noqa: E501 + :rtype: CoreError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this CoreIfElseBlock. + + An error to throw in case none of the branches were taken. # noqa: E501 + + :param error: The error of this CoreIfElseBlock. # noqa: E501 + :type: CoreError + """ + + self._error = error + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIfElseBlock, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIfElseBlock): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_io_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_io_strategy.py new file mode 100644 index 0000000000..8260e8eb17 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_io_strategy.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode # noqa: F401,E501 +from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode # noqa: F401,E501 + + +class CoreIOStrategy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'download_mode': 'IOStrategyDownloadMode', + 'upload_mode': 'IOStrategyUploadMode' + } + + attribute_map = { + 'download_mode': 'download_mode', + 'upload_mode': 'upload_mode' + } + + def __init__(self, download_mode=None, upload_mode=None): # noqa: E501 + """CoreIOStrategy - a model defined in Swagger""" # noqa: E501 + + self._download_mode = None + self._upload_mode = None + self.discriminator = None + + if download_mode is not None: + self.download_mode = download_mode + if upload_mode is not None: + self.upload_mode = upload_mode + + @property + def download_mode(self): + """Gets the download_mode of this CoreIOStrategy. # noqa: E501 + + + :return: The download_mode of this CoreIOStrategy. # noqa: E501 + :rtype: IOStrategyDownloadMode + """ + return self._download_mode + + @download_mode.setter + def download_mode(self, download_mode): + """Sets the download_mode of this CoreIOStrategy. + + + :param download_mode: The download_mode of this CoreIOStrategy. # noqa: E501 + :type: IOStrategyDownloadMode + """ + + self._download_mode = download_mode + + @property + def upload_mode(self): + """Gets the upload_mode of this CoreIOStrategy. # noqa: E501 + + + :return: The upload_mode of this CoreIOStrategy. # noqa: E501 + :rtype: IOStrategyUploadMode + """ + return self._upload_mode + + @upload_mode.setter + def upload_mode(self, upload_mode): + """Sets the upload_mode of this CoreIOStrategy. + + + :param upload_mode: The upload_mode of this CoreIOStrategy. # noqa: E501 + :type: IOStrategyUploadMode + """ + + self._upload_mode = upload_mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIOStrategy, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIOStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_object_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_object_metadata.py new file mode 100644 index 0000000000..439e7a5db1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_object_metadata.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreK8sObjectMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'labels': 'dict(str, str)', + 'annotations': 'dict(str, str)' + } + + attribute_map = { + 'labels': 'labels', + 'annotations': 'annotations' + } + + def __init__(self, labels=None, annotations=None): # noqa: E501 + """CoreK8sObjectMetadata - a model defined in Swagger""" # noqa: E501 + + self._labels = None + self._annotations = None + self.discriminator = None + + if labels is not None: + self.labels = labels + if annotations is not None: + self.annotations = annotations + + @property + def labels(self): + """Gets the labels of this CoreK8sObjectMetadata. # noqa: E501 + + Optional labels to add to the pod definition. # noqa: E501 + + :return: The labels of this CoreK8sObjectMetadata. # noqa: E501 + :rtype: dict(str, str) + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this CoreK8sObjectMetadata. + + Optional labels to add to the pod definition. # noqa: E501 + + :param labels: The labels of this CoreK8sObjectMetadata. # noqa: E501 + :type: dict(str, str) + """ + + self._labels = labels + + @property + def annotations(self): + """Gets the annotations of this CoreK8sObjectMetadata. # noqa: E501 + + Optional annotations to add to the pod definition. # noqa: E501 + + :return: The annotations of this CoreK8sObjectMetadata. # noqa: E501 + :rtype: dict(str, str) + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this CoreK8sObjectMetadata. + + Optional annotations to add to the pod definition. # noqa: E501 + + :param annotations: The annotations of this CoreK8sObjectMetadata. # noqa: E501 + :type: dict(str, str) + """ + + self._annotations = annotations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreK8sObjectMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreK8sObjectMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_pod.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_pod.py new file mode 100644 index 0000000000..5333af8df0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_pod.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig # noqa: F401,E501 +from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreK8sPod(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metadata': 'CoreK8sObjectMetadata', + 'pod_spec': 'ProtobufStruct', + 'data_config': 'CoreDataLoadingConfig' + } + + attribute_map = { + 'metadata': 'metadata', + 'pod_spec': 'pod_spec', + 'data_config': 'data_config' + } + + def __init__(self, metadata=None, pod_spec=None, data_config=None): # noqa: E501 + """CoreK8sPod - a model defined in Swagger""" # noqa: E501 + + self._metadata = None + self._pod_spec = None + self._data_config = None + self.discriminator = None + + if metadata is not None: + self.metadata = metadata + if pod_spec is not None: + self.pod_spec = pod_spec + if data_config is not None: + self.data_config = data_config + + @property + def metadata(self): + """Gets the metadata of this CoreK8sPod. # noqa: E501 + + Contains additional metadata for building a kubernetes pod. # noqa: E501 + + :return: The metadata of this CoreK8sPod. # noqa: E501 + :rtype: CoreK8sObjectMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreK8sPod. + + Contains additional metadata for building a kubernetes pod. # noqa: E501 + + :param metadata: The metadata of this CoreK8sPod. # noqa: E501 + :type: CoreK8sObjectMetadata + """ + + self._metadata = metadata + + @property + def pod_spec(self): + """Gets the pod_spec of this CoreK8sPod. # noqa: E501 + + + :return: The pod_spec of this CoreK8sPod. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._pod_spec + + @pod_spec.setter + def pod_spec(self, pod_spec): + """Sets the pod_spec of this CoreK8sPod. + + + :param pod_spec: The pod_spec of this CoreK8sPod. # noqa: E501 + :type: ProtobufStruct + """ + + self._pod_spec = pod_spec + + @property + def data_config(self): + """Gets the data_config of this CoreK8sPod. # noqa: E501 + + + :return: The data_config of this CoreK8sPod. # noqa: E501 + :rtype: CoreDataLoadingConfig + """ + return self._data_config + + @data_config.setter + def data_config(self, data_config): + """Sets the data_config of this CoreK8sPod. + + + :param data_config: The data_config of this CoreK8sPod. # noqa: E501 + :type: CoreDataLoadingConfig + """ + + self._data_config = data_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreK8sPod, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreK8sPod): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py new file mode 100644 index 0000000000..cd985c0fec --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreKeyValuePair(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): # noqa: E501 + """CoreKeyValuePair - a model defined in Swagger""" # noqa: E501 + + self._key = None + self._value = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this CoreKeyValuePair. # noqa: E501 + + required. # noqa: E501 + + :return: The key of this CoreKeyValuePair. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CoreKeyValuePair. + + required. # noqa: E501 + + :param key: The key of this CoreKeyValuePair. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def value(self): + """Gets the value of this CoreKeyValuePair. # noqa: E501 + + +optional. # noqa: E501 + + :return: The value of this CoreKeyValuePair. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CoreKeyValuePair. + + +optional. # noqa: E501 + + :param value: The value of this CoreKeyValuePair. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreKeyValuePair, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreKeyValuePair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py new file mode 100644 index 0000000000..a0099dacf3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_collection import CoreLiteralCollection # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 + + +class CoreLiteral(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'scalar': 'CoreScalar', + 'collection': 'CoreLiteralCollection', + 'map': 'CoreLiteralMap', + 'hash': 'str' + } + + attribute_map = { + 'scalar': 'scalar', + 'collection': 'collection', + 'map': 'map', + 'hash': 'hash' + } + + def __init__(self, scalar=None, collection=None, map=None, hash=None): # noqa: E501 + """CoreLiteral - a model defined in Swagger""" # noqa: E501 + + self._scalar = None + self._collection = None + self._map = None + self._hash = None + self.discriminator = None + + if scalar is not None: + self.scalar = scalar + if collection is not None: + self.collection = collection + if map is not None: + self.map = map + if hash is not None: + self.hash = hash + + @property + def scalar(self): + """Gets the scalar of this CoreLiteral. # noqa: E501 + + A simple value. # noqa: E501 + + :return: The scalar of this CoreLiteral. # noqa: E501 + :rtype: CoreScalar + """ + return self._scalar + + @scalar.setter + def scalar(self, scalar): + """Sets the scalar of this CoreLiteral. + + A simple value. # noqa: E501 + + :param scalar: The scalar of this CoreLiteral. # noqa: E501 + :type: CoreScalar + """ + + self._scalar = scalar + + @property + def collection(self): + """Gets the collection of this CoreLiteral. # noqa: E501 + + A collection of literals to allow nesting. # noqa: E501 + + :return: The collection of this CoreLiteral. # noqa: E501 + :rtype: CoreLiteralCollection + """ + return self._collection + + @collection.setter + def collection(self, collection): + """Sets the collection of this CoreLiteral. + + A collection of literals to allow nesting. # noqa: E501 + + :param collection: The collection of this CoreLiteral. # noqa: E501 + :type: CoreLiteralCollection + """ + + self._collection = collection + + @property + def map(self): + """Gets the map of this CoreLiteral. # noqa: E501 + + A map of strings to literals. # noqa: E501 + + :return: The map of this CoreLiteral. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._map + + @map.setter + def map(self, map): + """Sets the map of this CoreLiteral. + + A map of strings to literals. # noqa: E501 + + :param map: The map of this CoreLiteral. # noqa: E501 + :type: CoreLiteralMap + """ + + self._map = map + + @property + def hash(self): + """Gets the hash of this CoreLiteral. # noqa: E501 + + + :return: The hash of this CoreLiteral. # noqa: E501 + :rtype: str + """ + return self._hash + + @hash.setter + def hash(self, hash): + """Sets the hash of this CoreLiteral. + + + :param hash: The hash of this CoreLiteral. # noqa: E501 + :type: str + """ + + self._hash = hash + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteral, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteral): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py new file mode 100644 index 0000000000..325550f749 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 + + +class CoreLiteralCollection(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'literals': 'list[CoreLiteral]' + } + + attribute_map = { + 'literals': 'literals' + } + + def __init__(self, literals=None): # noqa: E501 + """CoreLiteralCollection - a model defined in Swagger""" # noqa: E501 + + self._literals = None + self.discriminator = None + + if literals is not None: + self.literals = literals + + @property + def literals(self): + """Gets the literals of this CoreLiteralCollection. # noqa: E501 + + + :return: The literals of this CoreLiteralCollection. # noqa: E501 + :rtype: list[CoreLiteral] + """ + return self._literals + + @literals.setter + def literals(self, literals): + """Sets the literals of this CoreLiteralCollection. + + + :param literals: The literals of this CoreLiteralCollection. # noqa: E501 + :type: list[CoreLiteral] + """ + + self._literals = literals + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteralCollection, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteralCollection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py new file mode 100644 index 0000000000..bdcf7cc370 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 + + +class CoreLiteralMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'literals': 'dict(str, CoreLiteral)' + } + + attribute_map = { + 'literals': 'literals' + } + + def __init__(self, literals=None): # noqa: E501 + """CoreLiteralMap - a model defined in Swagger""" # noqa: E501 + + self._literals = None + self.discriminator = None + + if literals is not None: + self.literals = literals + + @property + def literals(self): + """Gets the literals of this CoreLiteralMap. # noqa: E501 + + + :return: The literals of this CoreLiteralMap. # noqa: E501 + :rtype: dict(str, CoreLiteral) + """ + return self._literals + + @literals.setter + def literals(self, literals): + """Sets the literals of this CoreLiteralMap. + + + :param literals: The literals of this CoreLiteralMap. # noqa: E501 + :type: dict(str, CoreLiteral) + """ + + self._literals = literals + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteralMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteralMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py new file mode 100644 index 0000000000..efa49c9ce1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py @@ -0,0 +1,406 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_blob_type import CoreBlobType # noqa: F401,E501 +from flyteadmin.models.core_enum_type import CoreEnumType # noqa: F401,E501 +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 +from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: F401,E501 +from flyteadmin.models.core_simple_type import CoreSimpleType # noqa: F401,E501 +from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType # noqa: F401,E501 +from flyteadmin.models.core_type_annotation import CoreTypeAnnotation # noqa: F401,E501 +from flyteadmin.models.core_type_structure import CoreTypeStructure # noqa: F401,E501 +from flyteadmin.models.core_union_type import CoreUnionType # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreLiteralType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'simple': 'CoreSimpleType', + 'schema': 'CoreSchemaType', + 'collection_type': 'CoreLiteralType', + 'map_value_type': 'CoreLiteralType', + 'blob': 'CoreBlobType', + 'enum_type': 'CoreEnumType', + 'structured_dataset_type': 'CoreStructuredDatasetType', + 'union_type': 'CoreUnionType', + 'metadata': 'ProtobufStruct', + 'annotation': 'CoreTypeAnnotation', + 'structure': 'CoreTypeStructure' + } + + attribute_map = { + 'simple': 'simple', + 'schema': 'schema', + 'collection_type': 'collection_type', + 'map_value_type': 'map_value_type', + 'blob': 'blob', + 'enum_type': 'enum_type', + 'structured_dataset_type': 'structured_dataset_type', + 'union_type': 'union_type', + 'metadata': 'metadata', + 'annotation': 'annotation', + 'structure': 'structure' + } + + def __init__(self, simple=None, schema=None, collection_type=None, map_value_type=None, blob=None, enum_type=None, structured_dataset_type=None, union_type=None, metadata=None, annotation=None, structure=None): # noqa: E501 + """CoreLiteralType - a model defined in Swagger""" # noqa: E501 + + self._simple = None + self._schema = None + self._collection_type = None + self._map_value_type = None + self._blob = None + self._enum_type = None + self._structured_dataset_type = None + self._union_type = None + self._metadata = None + self._annotation = None + self._structure = None + self.discriminator = None + + if simple is not None: + self.simple = simple + if schema is not None: + self.schema = schema + if collection_type is not None: + self.collection_type = collection_type + if map_value_type is not None: + self.map_value_type = map_value_type + if blob is not None: + self.blob = blob + if enum_type is not None: + self.enum_type = enum_type + if structured_dataset_type is not None: + self.structured_dataset_type = structured_dataset_type + if union_type is not None: + self.union_type = union_type + if metadata is not None: + self.metadata = metadata + if annotation is not None: + self.annotation = annotation + if structure is not None: + self.structure = structure + + @property + def simple(self): + """Gets the simple of this CoreLiteralType. # noqa: E501 + + A simple type that can be compared one-to-one with another. # noqa: E501 + + :return: The simple of this CoreLiteralType. # noqa: E501 + :rtype: CoreSimpleType + """ + return self._simple + + @simple.setter + def simple(self, simple): + """Sets the simple of this CoreLiteralType. + + A simple type that can be compared one-to-one with another. # noqa: E501 + + :param simple: The simple of this CoreLiteralType. # noqa: E501 + :type: CoreSimpleType + """ + + self._simple = simple + + @property + def schema(self): + """Gets the schema of this CoreLiteralType. # noqa: E501 + + A complex type that requires matching of inner fields. # noqa: E501 + + :return: The schema of this CoreLiteralType. # noqa: E501 + :rtype: CoreSchemaType + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this CoreLiteralType. + + A complex type that requires matching of inner fields. # noqa: E501 + + :param schema: The schema of this CoreLiteralType. # noqa: E501 + :type: CoreSchemaType + """ + + self._schema = schema + + @property + def collection_type(self): + """Gets the collection_type of this CoreLiteralType. # noqa: E501 + + Defines the type of the value of a collection. Only homogeneous collections are allowed. # noqa: E501 + + :return: The collection_type of this CoreLiteralType. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._collection_type + + @collection_type.setter + def collection_type(self, collection_type): + """Sets the collection_type of this CoreLiteralType. + + Defines the type of the value of a collection. Only homogeneous collections are allowed. # noqa: E501 + + :param collection_type: The collection_type of this CoreLiteralType. # noqa: E501 + :type: CoreLiteralType + """ + + self._collection_type = collection_type + + @property + def map_value_type(self): + """Gets the map_value_type of this CoreLiteralType. # noqa: E501 + + Defines the type of the value of a map type. The type of the key is always a string. # noqa: E501 + + :return: The map_value_type of this CoreLiteralType. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._map_value_type + + @map_value_type.setter + def map_value_type(self, map_value_type): + """Sets the map_value_type of this CoreLiteralType. + + Defines the type of the value of a map type. The type of the key is always a string. # noqa: E501 + + :param map_value_type: The map_value_type of this CoreLiteralType. # noqa: E501 + :type: CoreLiteralType + """ + + self._map_value_type = map_value_type + + @property + def blob(self): + """Gets the blob of this CoreLiteralType. # noqa: E501 + + A blob might have specialized implementation details depending on associated metadata. # noqa: E501 + + :return: The blob of this CoreLiteralType. # noqa: E501 + :rtype: CoreBlobType + """ + return self._blob + + @blob.setter + def blob(self, blob): + """Sets the blob of this CoreLiteralType. + + A blob might have specialized implementation details depending on associated metadata. # noqa: E501 + + :param blob: The blob of this CoreLiteralType. # noqa: E501 + :type: CoreBlobType + """ + + self._blob = blob + + @property + def enum_type(self): + """Gets the enum_type of this CoreLiteralType. # noqa: E501 + + Defines an enum with pre-defined string values. # noqa: E501 + + :return: The enum_type of this CoreLiteralType. # noqa: E501 + :rtype: CoreEnumType + """ + return self._enum_type + + @enum_type.setter + def enum_type(self, enum_type): + """Sets the enum_type of this CoreLiteralType. + + Defines an enum with pre-defined string values. # noqa: E501 + + :param enum_type: The enum_type of this CoreLiteralType. # noqa: E501 + :type: CoreEnumType + """ + + self._enum_type = enum_type + + @property + def structured_dataset_type(self): + """Gets the structured_dataset_type of this CoreLiteralType. # noqa: E501 + + + :return: The structured_dataset_type of this CoreLiteralType. # noqa: E501 + :rtype: CoreStructuredDatasetType + """ + return self._structured_dataset_type + + @structured_dataset_type.setter + def structured_dataset_type(self, structured_dataset_type): + """Sets the structured_dataset_type of this CoreLiteralType. + + + :param structured_dataset_type: The structured_dataset_type of this CoreLiteralType. # noqa: E501 + :type: CoreStructuredDatasetType + """ + + self._structured_dataset_type = structured_dataset_type + + @property + def union_type(self): + """Gets the union_type of this CoreLiteralType. # noqa: E501 + + Defines an union type with pre-defined LiteralTypes. # noqa: E501 + + :return: The union_type of this CoreLiteralType. # noqa: E501 + :rtype: CoreUnionType + """ + return self._union_type + + @union_type.setter + def union_type(self, union_type): + """Sets the union_type of this CoreLiteralType. + + Defines an union type with pre-defined LiteralTypes. # noqa: E501 + + :param union_type: The union_type of this CoreLiteralType. # noqa: E501 + :type: CoreUnionType + """ + + self._union_type = union_type + + @property + def metadata(self): + """Gets the metadata of this CoreLiteralType. # noqa: E501 + + This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. # noqa: E501 + + :return: The metadata of this CoreLiteralType. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreLiteralType. + + This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. # noqa: E501 + + :param metadata: The metadata of this CoreLiteralType. # noqa: E501 + :type: ProtobufStruct + """ + + self._metadata = metadata + + @property + def annotation(self): + """Gets the annotation of this CoreLiteralType. # noqa: E501 + + This field contains arbitrary data that might have special semantic meaning for the client but does not effect internal flyte behavior. # noqa: E501 + + :return: The annotation of this CoreLiteralType. # noqa: E501 + :rtype: CoreTypeAnnotation + """ + return self._annotation + + @annotation.setter + def annotation(self, annotation): + """Sets the annotation of this CoreLiteralType. + + This field contains arbitrary data that might have special semantic meaning for the client but does not effect internal flyte behavior. # noqa: E501 + + :param annotation: The annotation of this CoreLiteralType. # noqa: E501 + :type: CoreTypeAnnotation + """ + + self._annotation = annotation + + @property + def structure(self): + """Gets the structure of this CoreLiteralType. # noqa: E501 + + Hints to improve type matching. # noqa: E501 + + :return: The structure of this CoreLiteralType. # noqa: E501 + :rtype: CoreTypeStructure + """ + return self._structure + + @structure.setter + def structure(self, structure): + """Sets the structure of this CoreLiteralType. + + Hints to improve type matching. # noqa: E501 + + :param structure: The structure of this CoreLiteralType. # noqa: E501 + :type: CoreTypeStructure + """ + + self._structure = structure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteralType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteralType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py new file mode 100644 index 0000000000..c3b7c06deb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py @@ -0,0 +1,378 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_alias import CoreAlias # noqa: F401,E501 +from flyteadmin.models.core_array_node import CoreArrayNode # noqa: F401,E501 +from flyteadmin.models.core_binding import CoreBinding # noqa: F401,E501 +from flyteadmin.models.core_branch_node import CoreBranchNode # noqa: F401,E501 +from flyteadmin.models.core_gate_node import CoreGateNode # noqa: F401,E501 +from flyteadmin.models.core_node_metadata import CoreNodeMetadata # noqa: F401,E501 +from flyteadmin.models.core_task_node import CoreTaskNode # noqa: F401,E501 +from flyteadmin.models.core_workflow_node import CoreWorkflowNode # noqa: F401,E501 + + +class CoreNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'metadata': 'CoreNodeMetadata', + 'inputs': 'list[CoreBinding]', + 'upstream_node_ids': 'list[str]', + 'output_aliases': 'list[CoreAlias]', + 'task_node': 'CoreTaskNode', + 'workflow_node': 'CoreWorkflowNode', + 'branch_node': 'CoreBranchNode', + 'gate_node': 'CoreGateNode', + 'array_node': 'CoreArrayNode' + } + + attribute_map = { + 'id': 'id', + 'metadata': 'metadata', + 'inputs': 'inputs', + 'upstream_node_ids': 'upstream_node_ids', + 'output_aliases': 'output_aliases', + 'task_node': 'task_node', + 'workflow_node': 'workflow_node', + 'branch_node': 'branch_node', + 'gate_node': 'gate_node', + 'array_node': 'array_node' + } + + def __init__(self, id=None, metadata=None, inputs=None, upstream_node_ids=None, output_aliases=None, task_node=None, workflow_node=None, branch_node=None, gate_node=None, array_node=None): # noqa: E501 + """CoreNode - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._metadata = None + self._inputs = None + self._upstream_node_ids = None + self._output_aliases = None + self._task_node = None + self._workflow_node = None + self._branch_node = None + self._gate_node = None + self._array_node = None + self.discriminator = None + + if id is not None: + self.id = id + if metadata is not None: + self.metadata = metadata + if inputs is not None: + self.inputs = inputs + if upstream_node_ids is not None: + self.upstream_node_ids = upstream_node_ids + if output_aliases is not None: + self.output_aliases = output_aliases + if task_node is not None: + self.task_node = task_node + if workflow_node is not None: + self.workflow_node = workflow_node + if branch_node is not None: + self.branch_node = branch_node + if gate_node is not None: + self.gate_node = gate_node + if array_node is not None: + self.array_node = array_node + + @property + def id(self): + """Gets the id of this CoreNode. # noqa: E501 + + A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved node ids that cannot be used by other nodes. # noqa: E501 + + :return: The id of this CoreNode. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CoreNode. + + A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved node ids that cannot be used by other nodes. # noqa: E501 + + :param id: The id of this CoreNode. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def metadata(self): + """Gets the metadata of this CoreNode. # noqa: E501 + + Extra metadata about the node. # noqa: E501 + + :return: The metadata of this CoreNode. # noqa: E501 + :rtype: CoreNodeMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreNode. + + Extra metadata about the node. # noqa: E501 + + :param metadata: The metadata of this CoreNode. # noqa: E501 + :type: CoreNodeMetadata + """ + + self._metadata = metadata + + @property + def inputs(self): + """Gets the inputs of this CoreNode. # noqa: E501 + + Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fulfilled. # noqa: E501 + + :return: The inputs of this CoreNode. # noqa: E501 + :rtype: list[CoreBinding] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this CoreNode. + + Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fulfilled. # noqa: E501 + + :param inputs: The inputs of this CoreNode. # noqa: E501 + :type: list[CoreBinding] + """ + + self._inputs = inputs + + @property + def upstream_node_ids(self): + """Gets the upstream_node_ids of this CoreNode. # noqa: E501 + + +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs field. # noqa: E501 + + :return: The upstream_node_ids of this CoreNode. # noqa: E501 + :rtype: list[str] + """ + return self._upstream_node_ids + + @upstream_node_ids.setter + def upstream_node_ids(self, upstream_node_ids): + """Sets the upstream_node_ids of this CoreNode. + + +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs field. # noqa: E501 + + :param upstream_node_ids: The upstream_node_ids of this CoreNode. # noqa: E501 + :type: list[str] + """ + + self._upstream_node_ids = upstream_node_ids + + @property + def output_aliases(self): + """Gets the output_aliases of this CoreNode. # noqa: E501 + + +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. # noqa: E501 + + :return: The output_aliases of this CoreNode. # noqa: E501 + :rtype: list[CoreAlias] + """ + return self._output_aliases + + @output_aliases.setter + def output_aliases(self, output_aliases): + """Sets the output_aliases of this CoreNode. + + +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. # noqa: E501 + + :param output_aliases: The output_aliases of this CoreNode. # noqa: E501 + :type: list[CoreAlias] + """ + + self._output_aliases = output_aliases + + @property + def task_node(self): + """Gets the task_node of this CoreNode. # noqa: E501 + + Information about the Task to execute in this node. # noqa: E501 + + :return: The task_node of this CoreNode. # noqa: E501 + :rtype: CoreTaskNode + """ + return self._task_node + + @task_node.setter + def task_node(self, task_node): + """Sets the task_node of this CoreNode. + + Information about the Task to execute in this node. # noqa: E501 + + :param task_node: The task_node of this CoreNode. # noqa: E501 + :type: CoreTaskNode + """ + + self._task_node = task_node + + @property + def workflow_node(self): + """Gets the workflow_node of this CoreNode. # noqa: E501 + + Information about the Workflow to execute in this mode. # noqa: E501 + + :return: The workflow_node of this CoreNode. # noqa: E501 + :rtype: CoreWorkflowNode + """ + return self._workflow_node + + @workflow_node.setter + def workflow_node(self, workflow_node): + """Sets the workflow_node of this CoreNode. + + Information about the Workflow to execute in this mode. # noqa: E501 + + :param workflow_node: The workflow_node of this CoreNode. # noqa: E501 + :type: CoreWorkflowNode + """ + + self._workflow_node = workflow_node + + @property + def branch_node(self): + """Gets the branch_node of this CoreNode. # noqa: E501 + + Information about the branch node to evaluate in this node. # noqa: E501 + + :return: The branch_node of this CoreNode. # noqa: E501 + :rtype: CoreBranchNode + """ + return self._branch_node + + @branch_node.setter + def branch_node(self, branch_node): + """Sets the branch_node of this CoreNode. + + Information about the branch node to evaluate in this node. # noqa: E501 + + :param branch_node: The branch_node of this CoreNode. # noqa: E501 + :type: CoreBranchNode + """ + + self._branch_node = branch_node + + @property + def gate_node(self): + """Gets the gate_node of this CoreNode. # noqa: E501 + + Information about the condition to evaluate in this node. # noqa: E501 + + :return: The gate_node of this CoreNode. # noqa: E501 + :rtype: CoreGateNode + """ + return self._gate_node + + @gate_node.setter + def gate_node(self, gate_node): + """Sets the gate_node of this CoreNode. + + Information about the condition to evaluate in this node. # noqa: E501 + + :param gate_node: The gate_node of this CoreNode. # noqa: E501 + :type: CoreGateNode + """ + + self._gate_node = gate_node + + @property + def array_node(self): + """Gets the array_node of this CoreNode. # noqa: E501 + + Information about the sub-node executions for each value in the list of this nodes inputs values. # noqa: E501 + + :return: The array_node of this CoreNode. # noqa: E501 + :rtype: CoreArrayNode + """ + return self._array_node + + @array_node.setter + def array_node(self, array_node): + """Sets the array_node of this CoreNode. + + Information about the sub-node executions for each value in the list of this nodes inputs values. # noqa: E501 + + :param array_node: The array_node of this CoreNode. # noqa: E501 + :type: CoreArrayNode + """ + + self._array_node = array_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py new file mode 100644 index 0000000000..0c3ea4e60f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class CoreNodeExecutionIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_id': 'str', + 'execution_id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'node_id': 'node_id', + 'execution_id': 'execution_id' + } + + def __init__(self, node_id=None, execution_id=None): # noqa: E501 + """CoreNodeExecutionIdentifier - a model defined in Swagger""" # noqa: E501 + + self._node_id = None + self._execution_id = None + self.discriminator = None + + if node_id is not None: + self.node_id = node_id + if execution_id is not None: + self.execution_id = execution_id + + @property + def node_id(self): + """Gets the node_id of this CoreNodeExecutionIdentifier. # noqa: E501 + + + :return: The node_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this CoreNodeExecutionIdentifier. + + + :param node_id: The node_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._node_id = node_id + + @property + def execution_id(self): + """Gets the execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 + + + :return: The execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this CoreNodeExecutionIdentifier. + + + :param execution_id: The execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNodeExecutionIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNodeExecutionIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py new file mode 100644 index 0000000000..5b03e7e486 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreNodeExecutionPhase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + QUEUED = "QUEUED" + RUNNING = "RUNNING" + SUCCEEDED = "SUCCEEDED" + FAILING = "FAILING" + FAILED = "FAILED" + ABORTED = "ABORTED" + SKIPPED = "SKIPPED" + TIMED_OUT = "TIMED_OUT" + DYNAMIC_RUNNING = "DYNAMIC_RUNNING" + RECOVERED = "RECOVERED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreNodeExecutionPhase - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNodeExecutionPhase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNodeExecutionPhase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py new file mode 100644 index 0000000000..d23c04290d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: F401,E501 + + +class CoreNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'timeout': 'str', + 'retries': 'CoreRetryStrategy', + 'interruptible': 'bool' + } + + attribute_map = { + 'name': 'name', + 'timeout': 'timeout', + 'retries': 'retries', + 'interruptible': 'interruptible' + } + + def __init__(self, name=None, timeout=None, retries=None, interruptible=None): # noqa: E501 + """CoreNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._timeout = None + self._retries = None + self._interruptible = None + self.discriminator = None + + if name is not None: + self.name = name + if timeout is not None: + self.timeout = timeout + if retries is not None: + self.retries = retries + if interruptible is not None: + self.interruptible = interruptible + + @property + def name(self): + """Gets the name of this CoreNodeMetadata. # noqa: E501 + + + :return: The name of this CoreNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreNodeMetadata. + + + :param name: The name of this CoreNodeMetadata. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def timeout(self): + """Gets the timeout of this CoreNodeMetadata. # noqa: E501 + + The overall timeout of a task. # noqa: E501 + + :return: The timeout of this CoreNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._timeout + + @timeout.setter + def timeout(self, timeout): + """Sets the timeout of this CoreNodeMetadata. + + The overall timeout of a task. # noqa: E501 + + :param timeout: The timeout of this CoreNodeMetadata. # noqa: E501 + :type: str + """ + + self._timeout = timeout + + @property + def retries(self): + """Gets the retries of this CoreNodeMetadata. # noqa: E501 + + Number of retries per task. # noqa: E501 + + :return: The retries of this CoreNodeMetadata. # noqa: E501 + :rtype: CoreRetryStrategy + """ + return self._retries + + @retries.setter + def retries(self, retries): + """Sets the retries of this CoreNodeMetadata. + + Number of retries per task. # noqa: E501 + + :param retries: The retries of this CoreNodeMetadata. # noqa: E501 + :type: CoreRetryStrategy + """ + + self._retries = retries + + @property + def interruptible(self): + """Gets the interruptible of this CoreNodeMetadata. # noqa: E501 + + + :return: The interruptible of this CoreNodeMetadata. # noqa: E501 + :rtype: bool + """ + return self._interruptible + + @interruptible.setter + def interruptible(self, interruptible): + """Sets the interruptible of this CoreNodeMetadata. + + + :param interruptible: The interruptible of this CoreNodeMetadata. # noqa: E501 + :type: bool + """ + + self._interruptible = interruptible + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_client.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_client.py new file mode 100644 index 0000000000..520dfdee32 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_client.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_secret import CoreSecret # noqa: F401,E501 + + +class CoreOAuth2Client(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'client_id': 'str', + 'client_secret': 'CoreSecret' + } + + attribute_map = { + 'client_id': 'client_id', + 'client_secret': 'client_secret' + } + + def __init__(self, client_id=None, client_secret=None): # noqa: E501 + """CoreOAuth2Client - a model defined in Swagger""" # noqa: E501 + + self._client_id = None + self._client_secret = None + self.discriminator = None + + if client_id is not None: + self.client_id = client_id + if client_secret is not None: + self.client_secret = client_secret + + @property + def client_id(self): + """Gets the client_id of this CoreOAuth2Client. # noqa: E501 + + + :return: The client_id of this CoreOAuth2Client. # noqa: E501 + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """Sets the client_id of this CoreOAuth2Client. + + + :param client_id: The client_id of this CoreOAuth2Client. # noqa: E501 + :type: str + """ + + self._client_id = client_id + + @property + def client_secret(self): + """Gets the client_secret of this CoreOAuth2Client. # noqa: E501 + + + :return: The client_secret of this CoreOAuth2Client. # noqa: E501 + :rtype: CoreSecret + """ + return self._client_secret + + @client_secret.setter + def client_secret(self, client_secret): + """Sets the client_secret of this CoreOAuth2Client. + + + :param client_secret: The client_secret of this CoreOAuth2Client. # noqa: E501 + :type: CoreSecret + """ + + self._client_secret = client_secret + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreOAuth2Client, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreOAuth2Client): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request.py new file mode 100644 index 0000000000..22ea5676cf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client # noqa: F401,E501 +from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType # noqa: F401,E501 + + +class CoreOAuth2TokenRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'type': 'CoreOAuth2TokenRequestType', + 'client': 'CoreOAuth2Client', + 'idp_discovery_endpoint': 'str', + 'token_endpoint': 'str' + } + + attribute_map = { + 'name': 'name', + 'type': 'type', + 'client': 'client', + 'idp_discovery_endpoint': 'idp_discovery_endpoint', + 'token_endpoint': 'token_endpoint' + } + + def __init__(self, name=None, type=None, client=None, idp_discovery_endpoint=None, token_endpoint=None): # noqa: E501 + """CoreOAuth2TokenRequest - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._type = None + self._client = None + self._idp_discovery_endpoint = None + self._token_endpoint = None + self.discriminator = None + + if name is not None: + self.name = name + if type is not None: + self.type = type + if client is not None: + self.client = client + if idp_discovery_endpoint is not None: + self.idp_discovery_endpoint = idp_discovery_endpoint + if token_endpoint is not None: + self.token_endpoint = token_endpoint + + @property + def name(self): + """Gets the name of this CoreOAuth2TokenRequest. # noqa: E501 + + + :return: The name of this CoreOAuth2TokenRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreOAuth2TokenRequest. + + + :param name: The name of this CoreOAuth2TokenRequest. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def type(self): + """Gets the type of this CoreOAuth2TokenRequest. # noqa: E501 + + + :return: The type of this CoreOAuth2TokenRequest. # noqa: E501 + :rtype: CoreOAuth2TokenRequestType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreOAuth2TokenRequest. + + + :param type: The type of this CoreOAuth2TokenRequest. # noqa: E501 + :type: CoreOAuth2TokenRequestType + """ + + self._type = type + + @property + def client(self): + """Gets the client of this CoreOAuth2TokenRequest. # noqa: E501 + + + :return: The client of this CoreOAuth2TokenRequest. # noqa: E501 + :rtype: CoreOAuth2Client + """ + return self._client + + @client.setter + def client(self, client): + """Sets the client of this CoreOAuth2TokenRequest. + + + :param client: The client of this CoreOAuth2TokenRequest. # noqa: E501 + :type: CoreOAuth2Client + """ + + self._client = client + + @property + def idp_discovery_endpoint(self): + """Gets the idp_discovery_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 + + + :return: The idp_discovery_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 + :rtype: str + """ + return self._idp_discovery_endpoint + + @idp_discovery_endpoint.setter + def idp_discovery_endpoint(self, idp_discovery_endpoint): + """Sets the idp_discovery_endpoint of this CoreOAuth2TokenRequest. + + + :param idp_discovery_endpoint: The idp_discovery_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 + :type: str + """ + + self._idp_discovery_endpoint = idp_discovery_endpoint + + @property + def token_endpoint(self): + """Gets the token_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 + + + :return: The token_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 + :rtype: str + """ + return self._token_endpoint + + @token_endpoint.setter + def token_endpoint(self, token_endpoint): + """Sets the token_endpoint of this CoreOAuth2TokenRequest. + + + :param token_endpoint: The token_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 + :type: str + """ + + self._token_endpoint = token_endpoint + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreOAuth2TokenRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreOAuth2TokenRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request_type.py new file mode 100644 index 0000000000..39f87fb6f7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request_type.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreOAuth2TokenRequestType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreOAuth2TokenRequestType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreOAuth2TokenRequestType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreOAuth2TokenRequestType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py new file mode 100644 index 0000000000..cf2e4a2464 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_primitive import CorePrimitive # noqa: F401,E501 +from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 + + +class CoreOperand(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'primitive': 'CorePrimitive', + 'var': 'str', + 'scalar': 'CoreScalar' + } + + attribute_map = { + 'primitive': 'primitive', + 'var': 'var', + 'scalar': 'scalar' + } + + def __init__(self, primitive=None, var=None, scalar=None): # noqa: E501 + """CoreOperand - a model defined in Swagger""" # noqa: E501 + + self._primitive = None + self._var = None + self._scalar = None + self.discriminator = None + + if primitive is not None: + self.primitive = primitive + if var is not None: + self.var = var + if scalar is not None: + self.scalar = scalar + + @property + def primitive(self): + """Gets the primitive of this CoreOperand. # noqa: E501 + + + :return: The primitive of this CoreOperand. # noqa: E501 + :rtype: CorePrimitive + """ + return self._primitive + + @primitive.setter + def primitive(self, primitive): + """Sets the primitive of this CoreOperand. + + + :param primitive: The primitive of this CoreOperand. # noqa: E501 + :type: CorePrimitive + """ + + self._primitive = primitive + + @property + def var(self): + """Gets the var of this CoreOperand. # noqa: E501 + + + :return: The var of this CoreOperand. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreOperand. + + + :param var: The var of this CoreOperand. # noqa: E501 + :type: str + """ + + self._var = var + + @property + def scalar(self): + """Gets the scalar of this CoreOperand. # noqa: E501 + + + :return: The scalar of this CoreOperand. # noqa: E501 + :rtype: CoreScalar + """ + return self._scalar + + @scalar.setter + def scalar(self, scalar): + """Sets the scalar of this CoreOperand. + + + :param scalar: The scalar of this CoreOperand. # noqa: E501 + :type: CoreScalar + """ + + self._scalar = scalar + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreOperand, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreOperand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py new file mode 100644 index 0000000000..801fd4552c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreOutputReference(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_id': 'str', + 'var': 'str' + } + + attribute_map = { + 'node_id': 'node_id', + 'var': 'var' + } + + def __init__(self, node_id=None, var=None): # noqa: E501 + """CoreOutputReference - a model defined in Swagger""" # noqa: E501 + + self._node_id = None + self._var = None + self.discriminator = None + + if node_id is not None: + self.node_id = node_id + if var is not None: + self.var = var + + @property + def node_id(self): + """Gets the node_id of this CoreOutputReference. # noqa: E501 + + Node id must exist at the graph layer. # noqa: E501 + + :return: The node_id of this CoreOutputReference. # noqa: E501 + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this CoreOutputReference. + + Node id must exist at the graph layer. # noqa: E501 + + :param node_id: The node_id of this CoreOutputReference. # noqa: E501 + :type: str + """ + + self._node_id = node_id + + @property + def var(self): + """Gets the var of this CoreOutputReference. # noqa: E501 + + Variable name must refer to an output variable for the node. # noqa: E501 + + :return: The var of this CoreOutputReference. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreOutputReference. + + Variable name must refer to an output variable for the node. # noqa: E501 + + :param var: The var of this CoreOutputReference. # noqa: E501 + :type: str + """ + + self._var = var + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreOutputReference, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreOutputReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py new file mode 100644 index 0000000000..a6e71104f4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 +from flyteadmin.models.core_variable import CoreVariable # noqa: F401,E501 + + +class CoreParameter(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'var': 'CoreVariable', + 'default': 'CoreLiteral', + 'required': 'bool' + } + + attribute_map = { + 'var': 'var', + 'default': 'default', + 'required': 'required' + } + + def __init__(self, var=None, default=None, required=None): # noqa: E501 + """CoreParameter - a model defined in Swagger""" # noqa: E501 + + self._var = None + self._default = None + self._required = None + self.discriminator = None + + if var is not None: + self.var = var + if default is not None: + self.default = default + if required is not None: + self.required = required + + @property + def var(self): + """Gets the var of this CoreParameter. # noqa: E501 + + +required Variable. Defines the type of the variable backing this parameter. # noqa: E501 + + :return: The var of this CoreParameter. # noqa: E501 + :rtype: CoreVariable + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreParameter. + + +required Variable. Defines the type of the variable backing this parameter. # noqa: E501 + + :param var: The var of this CoreParameter. # noqa: E501 + :type: CoreVariable + """ + + self._var = var + + @property + def default(self): + """Gets the default of this CoreParameter. # noqa: E501 + + Defines a default value that has to match the variable type defined. # noqa: E501 + + :return: The default of this CoreParameter. # noqa: E501 + :rtype: CoreLiteral + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this CoreParameter. + + Defines a default value that has to match the variable type defined. # noqa: E501 + + :param default: The default of this CoreParameter. # noqa: E501 + :type: CoreLiteral + """ + + self._default = default + + @property + def required(self): + """Gets the required of this CoreParameter. # noqa: E501 + + +optional, is this value required to be filled. # noqa: E501 + + :return: The required of this CoreParameter. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this CoreParameter. + + +optional, is this value required to be filled. # noqa: E501 + + :param required: The required of this CoreParameter. # noqa: E501 + :type: bool + """ + + self._required = required + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py new file mode 100644 index 0000000000..f2ca84c2e1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_parameter import CoreParameter # noqa: F401,E501 + + +class CoreParameterMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parameters': 'dict(str, CoreParameter)' + } + + attribute_map = { + 'parameters': 'parameters' + } + + def __init__(self, parameters=None): # noqa: E501 + """CoreParameterMap - a model defined in Swagger""" # noqa: E501 + + self._parameters = None + self.discriminator = None + + if parameters is not None: + self.parameters = parameters + + @property + def parameters(self): + """Gets the parameters of this CoreParameterMap. # noqa: E501 + + Defines a map of parameter names to parameters. # noqa: E501 + + :return: The parameters of this CoreParameterMap. # noqa: E501 + :rtype: dict(str, CoreParameter) + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this CoreParameterMap. + + Defines a map of parameter names to parameters. # noqa: E501 + + :param parameters: The parameters of this CoreParameterMap. # noqa: E501 + :type: dict(str, CoreParameter) + """ + + self._parameters = parameters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreParameterMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreParameterMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py new file mode 100644 index 0000000000..8a834e28d7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CorePrimitive(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'integer': 'str', + 'float_value': 'float', + 'string_value': 'str', + 'boolean': 'bool', + '_datetime': 'datetime', + 'duration': 'str' + } + + attribute_map = { + 'integer': 'integer', + 'float_value': 'float_value', + 'string_value': 'string_value', + 'boolean': 'boolean', + '_datetime': 'datetime', + 'duration': 'duration' + } + + def __init__(self, integer=None, float_value=None, string_value=None, boolean=None, _datetime=None, duration=None): # noqa: E501 + """CorePrimitive - a model defined in Swagger""" # noqa: E501 + + self._integer = None + self._float_value = None + self._string_value = None + self._boolean = None + self.__datetime = None + self._duration = None + self.discriminator = None + + if integer is not None: + self.integer = integer + if float_value is not None: + self.float_value = float_value + if string_value is not None: + self.string_value = string_value + if boolean is not None: + self.boolean = boolean + if _datetime is not None: + self._datetime = _datetime + if duration is not None: + self.duration = duration + + @property + def integer(self): + """Gets the integer of this CorePrimitive. # noqa: E501 + + + :return: The integer of this CorePrimitive. # noqa: E501 + :rtype: str + """ + return self._integer + + @integer.setter + def integer(self, integer): + """Sets the integer of this CorePrimitive. + + + :param integer: The integer of this CorePrimitive. # noqa: E501 + :type: str + """ + + self._integer = integer + + @property + def float_value(self): + """Gets the float_value of this CorePrimitive. # noqa: E501 + + + :return: The float_value of this CorePrimitive. # noqa: E501 + :rtype: float + """ + return self._float_value + + @float_value.setter + def float_value(self, float_value): + """Sets the float_value of this CorePrimitive. + + + :param float_value: The float_value of this CorePrimitive. # noqa: E501 + :type: float + """ + + self._float_value = float_value + + @property + def string_value(self): + """Gets the string_value of this CorePrimitive. # noqa: E501 + + + :return: The string_value of this CorePrimitive. # noqa: E501 + :rtype: str + """ + return self._string_value + + @string_value.setter + def string_value(self, string_value): + """Sets the string_value of this CorePrimitive. + + + :param string_value: The string_value of this CorePrimitive. # noqa: E501 + :type: str + """ + + self._string_value = string_value + + @property + def boolean(self): + """Gets the boolean of this CorePrimitive. # noqa: E501 + + + :return: The boolean of this CorePrimitive. # noqa: E501 + :rtype: bool + """ + return self._boolean + + @boolean.setter + def boolean(self, boolean): + """Sets the boolean of this CorePrimitive. + + + :param boolean: The boolean of this CorePrimitive. # noqa: E501 + :type: bool + """ + + self._boolean = boolean + + @property + def _datetime(self): + """Gets the _datetime of this CorePrimitive. # noqa: E501 + + + :return: The _datetime of this CorePrimitive. # noqa: E501 + :rtype: datetime + """ + return self.__datetime + + @_datetime.setter + def _datetime(self, _datetime): + """Sets the _datetime of this CorePrimitive. + + + :param _datetime: The _datetime of this CorePrimitive. # noqa: E501 + :type: datetime + """ + + self.__datetime = _datetime + + @property + def duration(self): + """Gets the duration of this CorePrimitive. # noqa: E501 + + + :return: The duration of this CorePrimitive. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this CorePrimitive. + + + :param duration: The duration of this CorePrimitive. # noqa: E501 + :type: str + """ + + self._duration = duration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CorePrimitive, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CorePrimitive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service.py new file mode 100644 index 0000000000..b9bb2aadb9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec # noqa: F401,E501 +from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier # noqa: F401,E501 + + +class CoreQualityOfService(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tier': 'QualityOfServiceTier', + 'spec': 'CoreQualityOfServiceSpec' + } + + attribute_map = { + 'tier': 'tier', + 'spec': 'spec' + } + + def __init__(self, tier=None, spec=None): # noqa: E501 + """CoreQualityOfService - a model defined in Swagger""" # noqa: E501 + + self._tier = None + self._spec = None + self.discriminator = None + + if tier is not None: + self.tier = tier + if spec is not None: + self.spec = spec + + @property + def tier(self): + """Gets the tier of this CoreQualityOfService. # noqa: E501 + + + :return: The tier of this CoreQualityOfService. # noqa: E501 + :rtype: QualityOfServiceTier + """ + return self._tier + + @tier.setter + def tier(self, tier): + """Sets the tier of this CoreQualityOfService. + + + :param tier: The tier of this CoreQualityOfService. # noqa: E501 + :type: QualityOfServiceTier + """ + + self._tier = tier + + @property + def spec(self): + """Gets the spec of this CoreQualityOfService. # noqa: E501 + + + :return: The spec of this CoreQualityOfService. # noqa: E501 + :rtype: CoreQualityOfServiceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this CoreQualityOfService. + + + :param spec: The spec of this CoreQualityOfService. # noqa: E501 + :type: CoreQualityOfServiceSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreQualityOfService, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreQualityOfService): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service_spec.py new file mode 100644 index 0000000000..070989b167 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service_spec.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreQualityOfServiceSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'queueing_budget': 'str' + } + + attribute_map = { + 'queueing_budget': 'queueing_budget' + } + + def __init__(self, queueing_budget=None): # noqa: E501 + """CoreQualityOfServiceSpec - a model defined in Swagger""" # noqa: E501 + + self._queueing_budget = None + self.discriminator = None + + if queueing_budget is not None: + self.queueing_budget = queueing_budget + + @property + def queueing_budget(self): + """Gets the queueing_budget of this CoreQualityOfServiceSpec. # noqa: E501 + + Indicates how much queueing delay an execution can tolerate. # noqa: E501 + + :return: The queueing_budget of this CoreQualityOfServiceSpec. # noqa: E501 + :rtype: str + """ + return self._queueing_budget + + @queueing_budget.setter + def queueing_budget(self, queueing_budget): + """Sets the queueing_budget of this CoreQualityOfServiceSpec. + + Indicates how much queueing delay an execution can tolerate. # noqa: E501 + + :param queueing_budget: The queueing_budget of this CoreQualityOfServiceSpec. # noqa: E501 + :type: str + """ + + self._queueing_budget = queueing_budget + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreQualityOfServiceSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreQualityOfServiceSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py new file mode 100644 index 0000000000..4a748c1064 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreResourceType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNSPECIFIED = "UNSPECIFIED" + TASK = "TASK" + WORKFLOW = "WORKFLOW" + LAUNCH_PLAN = "LAUNCH_PLAN" + DATASET = "DATASET" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreResourceType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreResourceType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreResourceType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py new file mode 100644 index 0000000000..0e14879b03 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry # noqa: F401,E501 + + +class CoreResources(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'requests': 'list[ResourcesResourceEntry]', + 'limits': 'list[ResourcesResourceEntry]' + } + + attribute_map = { + 'requests': 'requests', + 'limits': 'limits' + } + + def __init__(self, requests=None, limits=None): # noqa: E501 + """CoreResources - a model defined in Swagger""" # noqa: E501 + + self._requests = None + self._limits = None + self.discriminator = None + + if requests is not None: + self.requests = requests + if limits is not None: + self.limits = limits + + @property + def requests(self): + """Gets the requests of this CoreResources. # noqa: E501 + + The desired set of resources requested. ResourceNames must be unique within the list. # noqa: E501 + + :return: The requests of this CoreResources. # noqa: E501 + :rtype: list[ResourcesResourceEntry] + """ + return self._requests + + @requests.setter + def requests(self, requests): + """Sets the requests of this CoreResources. + + The desired set of resources requested. ResourceNames must be unique within the list. # noqa: E501 + + :param requests: The requests of this CoreResources. # noqa: E501 + :type: list[ResourcesResourceEntry] + """ + + self._requests = requests + + @property + def limits(self): + """Gets the limits of this CoreResources. # noqa: E501 + + Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. # noqa: E501 + + :return: The limits of this CoreResources. # noqa: E501 + :rtype: list[ResourcesResourceEntry] + """ + return self._limits + + @limits.setter + def limits(self, limits): + """Sets the limits of this CoreResources. + + Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. # noqa: E501 + + :param limits: The limits of this CoreResources. # noqa: E501 + :type: list[ResourcesResourceEntry] + """ + + self._limits = limits + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreResources, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreResources): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py new file mode 100644 index 0000000000..45ba6d22f4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreRetryStrategy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'retries': 'int' + } + + attribute_map = { + 'retries': 'retries' + } + + def __init__(self, retries=None): # noqa: E501 + """CoreRetryStrategy - a model defined in Swagger""" # noqa: E501 + + self._retries = None + self.discriminator = None + + if retries is not None: + self.retries = retries + + @property + def retries(self): + """Gets the retries of this CoreRetryStrategy. # noqa: E501 + + Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. # noqa: E501 + + :return: The retries of this CoreRetryStrategy. # noqa: E501 + :rtype: int + """ + return self._retries + + @retries.setter + def retries(self, retries): + """Sets the retries of this CoreRetryStrategy. + + Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. # noqa: E501 + + :param retries: The retries of this CoreRetryStrategy. # noqa: E501 + :type: int + """ + + self._retries = retries + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreRetryStrategy, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreRetryStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py new file mode 100644 index 0000000000..b14a330293 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType # noqa: F401,E501 + + +class CoreRuntimeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'RuntimeMetadataRuntimeType', + 'version': 'str', + 'flavor': 'str' + } + + attribute_map = { + 'type': 'type', + 'version': 'version', + 'flavor': 'flavor' + } + + def __init__(self, type=None, version=None, flavor=None): # noqa: E501 + """CoreRuntimeMetadata - a model defined in Swagger""" # noqa: E501 + + self._type = None + self._version = None + self._flavor = None + self.discriminator = None + + if type is not None: + self.type = type + if version is not None: + self.version = version + if flavor is not None: + self.flavor = flavor + + @property + def type(self): + """Gets the type of this CoreRuntimeMetadata. # noqa: E501 + + Type of runtime. # noqa: E501 + + :return: The type of this CoreRuntimeMetadata. # noqa: E501 + :rtype: RuntimeMetadataRuntimeType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreRuntimeMetadata. + + Type of runtime. # noqa: E501 + + :param type: The type of this CoreRuntimeMetadata. # noqa: E501 + :type: RuntimeMetadataRuntimeType + """ + + self._type = type + + @property + def version(self): + """Gets the version of this CoreRuntimeMetadata. # noqa: E501 + + Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. # noqa: E501 + + :return: The version of this CoreRuntimeMetadata. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CoreRuntimeMetadata. + + Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. # noqa: E501 + + :param version: The version of this CoreRuntimeMetadata. # noqa: E501 + :type: str + """ + + self._version = version + + @property + def flavor(self): + """Gets the flavor of this CoreRuntimeMetadata. # noqa: E501 + + +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). # noqa: E501 + + :return: The flavor of this CoreRuntimeMetadata. # noqa: E501 + :rtype: str + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this CoreRuntimeMetadata. + + +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). # noqa: E501 + + :param flavor: The flavor of this CoreRuntimeMetadata. # noqa: E501 + :type: str + """ + + self._flavor = flavor + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreRuntimeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreRuntimeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py new file mode 100644 index 0000000000..ad4d291290 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py @@ -0,0 +1,333 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binary import CoreBinary # noqa: F401,E501 +from flyteadmin.models.core_blob import CoreBlob # noqa: F401,E501 +from flyteadmin.models.core_error import CoreError # noqa: F401,E501 +from flyteadmin.models.core_primitive import CorePrimitive # noqa: F401,E501 +from flyteadmin.models.core_schema import CoreSchema # noqa: F401,E501 +from flyteadmin.models.core_structured_dataset import CoreStructuredDataset # noqa: F401,E501 +from flyteadmin.models.core_union import CoreUnion # noqa: F401,E501 +from flyteadmin.models.core_void import CoreVoid # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreScalar(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'primitive': 'CorePrimitive', + 'blob': 'CoreBlob', + 'binary': 'CoreBinary', + 'schema': 'CoreSchema', + 'none_type': 'CoreVoid', + 'error': 'CoreError', + 'generic': 'ProtobufStruct', + 'structured_dataset': 'CoreStructuredDataset', + 'union': 'CoreUnion' + } + + attribute_map = { + 'primitive': 'primitive', + 'blob': 'blob', + 'binary': 'binary', + 'schema': 'schema', + 'none_type': 'none_type', + 'error': 'error', + 'generic': 'generic', + 'structured_dataset': 'structured_dataset', + 'union': 'union' + } + + def __init__(self, primitive=None, blob=None, binary=None, schema=None, none_type=None, error=None, generic=None, structured_dataset=None, union=None): # noqa: E501 + """CoreScalar - a model defined in Swagger""" # noqa: E501 + + self._primitive = None + self._blob = None + self._binary = None + self._schema = None + self._none_type = None + self._error = None + self._generic = None + self._structured_dataset = None + self._union = None + self.discriminator = None + + if primitive is not None: + self.primitive = primitive + if blob is not None: + self.blob = blob + if binary is not None: + self.binary = binary + if schema is not None: + self.schema = schema + if none_type is not None: + self.none_type = none_type + if error is not None: + self.error = error + if generic is not None: + self.generic = generic + if structured_dataset is not None: + self.structured_dataset = structured_dataset + if union is not None: + self.union = union + + @property + def primitive(self): + """Gets the primitive of this CoreScalar. # noqa: E501 + + + :return: The primitive of this CoreScalar. # noqa: E501 + :rtype: CorePrimitive + """ + return self._primitive + + @primitive.setter + def primitive(self, primitive): + """Sets the primitive of this CoreScalar. + + + :param primitive: The primitive of this CoreScalar. # noqa: E501 + :type: CorePrimitive + """ + + self._primitive = primitive + + @property + def blob(self): + """Gets the blob of this CoreScalar. # noqa: E501 + + + :return: The blob of this CoreScalar. # noqa: E501 + :rtype: CoreBlob + """ + return self._blob + + @blob.setter + def blob(self, blob): + """Sets the blob of this CoreScalar. + + + :param blob: The blob of this CoreScalar. # noqa: E501 + :type: CoreBlob + """ + + self._blob = blob + + @property + def binary(self): + """Gets the binary of this CoreScalar. # noqa: E501 + + + :return: The binary of this CoreScalar. # noqa: E501 + :rtype: CoreBinary + """ + return self._binary + + @binary.setter + def binary(self, binary): + """Sets the binary of this CoreScalar. + + + :param binary: The binary of this CoreScalar. # noqa: E501 + :type: CoreBinary + """ + + self._binary = binary + + @property + def schema(self): + """Gets the schema of this CoreScalar. # noqa: E501 + + + :return: The schema of this CoreScalar. # noqa: E501 + :rtype: CoreSchema + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this CoreScalar. + + + :param schema: The schema of this CoreScalar. # noqa: E501 + :type: CoreSchema + """ + + self._schema = schema + + @property + def none_type(self): + """Gets the none_type of this CoreScalar. # noqa: E501 + + + :return: The none_type of this CoreScalar. # noqa: E501 + :rtype: CoreVoid + """ + return self._none_type + + @none_type.setter + def none_type(self, none_type): + """Sets the none_type of this CoreScalar. + + + :param none_type: The none_type of this CoreScalar. # noqa: E501 + :type: CoreVoid + """ + + self._none_type = none_type + + @property + def error(self): + """Gets the error of this CoreScalar. # noqa: E501 + + + :return: The error of this CoreScalar. # noqa: E501 + :rtype: CoreError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this CoreScalar. + + + :param error: The error of this CoreScalar. # noqa: E501 + :type: CoreError + """ + + self._error = error + + @property + def generic(self): + """Gets the generic of this CoreScalar. # noqa: E501 + + + :return: The generic of this CoreScalar. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._generic + + @generic.setter + def generic(self, generic): + """Sets the generic of this CoreScalar. + + + :param generic: The generic of this CoreScalar. # noqa: E501 + :type: ProtobufStruct + """ + + self._generic = generic + + @property + def structured_dataset(self): + """Gets the structured_dataset of this CoreScalar. # noqa: E501 + + + :return: The structured_dataset of this CoreScalar. # noqa: E501 + :rtype: CoreStructuredDataset + """ + return self._structured_dataset + + @structured_dataset.setter + def structured_dataset(self, structured_dataset): + """Sets the structured_dataset of this CoreScalar. + + + :param structured_dataset: The structured_dataset of this CoreScalar. # noqa: E501 + :type: CoreStructuredDataset + """ + + self._structured_dataset = structured_dataset + + @property + def union(self): + """Gets the union of this CoreScalar. # noqa: E501 + + + :return: The union of this CoreScalar. # noqa: E501 + :rtype: CoreUnion + """ + return self._union + + @union.setter + def union(self, union): + """Sets the union of this CoreScalar. + + + :param union: The union of this CoreScalar. # noqa: E501 + :type: CoreUnion + """ + + self._union = union + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreScalar, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreScalar): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema.py new file mode 100644 index 0000000000..4ede8e6c52 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: F401,E501 + + +class CoreSchema(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'uri': 'str', + 'type': 'CoreSchemaType' + } + + attribute_map = { + 'uri': 'uri', + 'type': 'type' + } + + def __init__(self, uri=None, type=None): # noqa: E501 + """CoreSchema - a model defined in Swagger""" # noqa: E501 + + self._uri = None + self._type = None + self.discriminator = None + + if uri is not None: + self.uri = uri + if type is not None: + self.type = type + + @property + def uri(self): + """Gets the uri of this CoreSchema. # noqa: E501 + + + :return: The uri of this CoreSchema. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this CoreSchema. + + + :param uri: The uri of this CoreSchema. # noqa: E501 + :type: str + """ + + self._uri = uri + + @property + def type(self): + """Gets the type of this CoreSchema. # noqa: E501 + + + :return: The type of this CoreSchema. # noqa: E501 + :rtype: CoreSchemaType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreSchema. + + + :param type: The type of this CoreSchema. # noqa: E501 + :type: CoreSchemaType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSchema, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py new file mode 100644 index 0000000000..679e617a9e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn # noqa: F401,E501 + + +class CoreSchemaType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'columns': 'list[SchemaTypeSchemaColumn]' + } + + attribute_map = { + 'columns': 'columns' + } + + def __init__(self, columns=None): # noqa: E501 + """CoreSchemaType - a model defined in Swagger""" # noqa: E501 + + self._columns = None + self.discriminator = None + + if columns is not None: + self.columns = columns + + @property + def columns(self): + """Gets the columns of this CoreSchemaType. # noqa: E501 + + A list of ordered columns this schema comprises of. # noqa: E501 + + :return: The columns of this CoreSchemaType. # noqa: E501 + :rtype: list[SchemaTypeSchemaColumn] + """ + return self._columns + + @columns.setter + def columns(self, columns): + """Sets the columns of this CoreSchemaType. + + A list of ordered columns this schema comprises of. # noqa: E501 + + :param columns: The columns of this CoreSchemaType. # noqa: E501 + :type: list[SchemaTypeSchemaColumn] + """ + + self._columns = columns + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSchemaType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSchemaType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_secret.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_secret.py new file mode 100644 index 0000000000..378c51c4b2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_secret.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.secret_mount_type import SecretMountType # noqa: F401,E501 + + +class CoreSecret(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'group': 'str', + 'group_version': 'str', + 'key': 'str', + 'mount_requirement': 'SecretMountType' + } + + attribute_map = { + 'group': 'group', + 'group_version': 'group_version', + 'key': 'key', + 'mount_requirement': 'mount_requirement' + } + + def __init__(self, group=None, group_version=None, key=None, mount_requirement=None): # noqa: E501 + """CoreSecret - a model defined in Swagger""" # noqa: E501 + + self._group = None + self._group_version = None + self._key = None + self._mount_requirement = None + self.discriminator = None + + if group is not None: + self.group = group + if group_version is not None: + self.group_version = group_version + if key is not None: + self.key = key + if mount_requirement is not None: + self.mount_requirement = mount_requirement + + @property + def group(self): + """Gets the group of this CoreSecret. # noqa: E501 + + + :return: The group of this CoreSecret. # noqa: E501 + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this CoreSecret. + + + :param group: The group of this CoreSecret. # noqa: E501 + :type: str + """ + + self._group = group + + @property + def group_version(self): + """Gets the group_version of this CoreSecret. # noqa: E501 + + + :return: The group_version of this CoreSecret. # noqa: E501 + :rtype: str + """ + return self._group_version + + @group_version.setter + def group_version(self, group_version): + """Sets the group_version of this CoreSecret. + + + :param group_version: The group_version of this CoreSecret. # noqa: E501 + :type: str + """ + + self._group_version = group_version + + @property + def key(self): + """Gets the key of this CoreSecret. # noqa: E501 + + + :return: The key of this CoreSecret. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CoreSecret. + + + :param key: The key of this CoreSecret. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def mount_requirement(self): + """Gets the mount_requirement of this CoreSecret. # noqa: E501 + + + :return: The mount_requirement of this CoreSecret. # noqa: E501 + :rtype: SecretMountType + """ + return self._mount_requirement + + @mount_requirement.setter + def mount_requirement(self, mount_requirement): + """Sets the mount_requirement of this CoreSecret. + + + :param mount_requirement: The mount_requirement of this CoreSecret. # noqa: E501 + :type: SecretMountType + """ + + self._mount_requirement = mount_requirement + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSecret, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSecret): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_security_context.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_security_context.py new file mode 100644 index 0000000000..c6df3b44f7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_security_context.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_identity import CoreIdentity # noqa: F401,E501 +from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest # noqa: F401,E501 +from flyteadmin.models.core_secret import CoreSecret # noqa: F401,E501 + + +class CoreSecurityContext(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'run_as': 'CoreIdentity', + 'secrets': 'list[CoreSecret]', + 'tokens': 'list[CoreOAuth2TokenRequest]' + } + + attribute_map = { + 'run_as': 'run_as', + 'secrets': 'secrets', + 'tokens': 'tokens' + } + + def __init__(self, run_as=None, secrets=None, tokens=None): # noqa: E501 + """CoreSecurityContext - a model defined in Swagger""" # noqa: E501 + + self._run_as = None + self._secrets = None + self._tokens = None + self.discriminator = None + + if run_as is not None: + self.run_as = run_as + if secrets is not None: + self.secrets = secrets + if tokens is not None: + self.tokens = tokens + + @property + def run_as(self): + """Gets the run_as of this CoreSecurityContext. # noqa: E501 + + run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on. # noqa: E501 + + :return: The run_as of this CoreSecurityContext. # noqa: E501 + :rtype: CoreIdentity + """ + return self._run_as + + @run_as.setter + def run_as(self, run_as): + """Sets the run_as of this CoreSecurityContext. + + run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on. # noqa: E501 + + :param run_as: The run_as of this CoreSecurityContext. # noqa: E501 + :type: CoreIdentity + """ + + self._run_as = run_as + + @property + def secrets(self): + """Gets the secrets of this CoreSecurityContext. # noqa: E501 + + secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 + + :return: The secrets of this CoreSecurityContext. # noqa: E501 + :rtype: list[CoreSecret] + """ + return self._secrets + + @secrets.setter + def secrets(self, secrets): + """Sets the secrets of this CoreSecurityContext. + + secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 + + :param secrets: The secrets of this CoreSecurityContext. # noqa: E501 + :type: list[CoreSecret] + """ + + self._secrets = secrets + + @property + def tokens(self): + """Gets the tokens of this CoreSecurityContext. # noqa: E501 + + tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 + + :return: The tokens of this CoreSecurityContext. # noqa: E501 + :rtype: list[CoreOAuth2TokenRequest] + """ + return self._tokens + + @tokens.setter + def tokens(self, tokens): + """Sets the tokens of this CoreSecurityContext. + + tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 + + :param tokens: The tokens of this CoreSecurityContext. # noqa: E501 + :type: list[CoreOAuth2TokenRequest] + """ + + self._tokens = tokens + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSecurityContext, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSecurityContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_signal_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_signal_condition.py new file mode 100644 index 0000000000..1ccd927b9d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_signal_condition.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 + + +class CoreSignalCondition(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'signal_id': 'str', + 'type': 'CoreLiteralType', + 'output_variable_name': 'str' + } + + attribute_map = { + 'signal_id': 'signal_id', + 'type': 'type', + 'output_variable_name': 'output_variable_name' + } + + def __init__(self, signal_id=None, type=None, output_variable_name=None): # noqa: E501 + """CoreSignalCondition - a model defined in Swagger""" # noqa: E501 + + self._signal_id = None + self._type = None + self._output_variable_name = None + self.discriminator = None + + if signal_id is not None: + self.signal_id = signal_id + if type is not None: + self.type = type + if output_variable_name is not None: + self.output_variable_name = output_variable_name + + @property + def signal_id(self): + """Gets the signal_id of this CoreSignalCondition. # noqa: E501 + + A unique identifier for the requested signal. # noqa: E501 + + :return: The signal_id of this CoreSignalCondition. # noqa: E501 + :rtype: str + """ + return self._signal_id + + @signal_id.setter + def signal_id(self, signal_id): + """Sets the signal_id of this CoreSignalCondition. + + A unique identifier for the requested signal. # noqa: E501 + + :param signal_id: The signal_id of this CoreSignalCondition. # noqa: E501 + :type: str + """ + + self._signal_id = signal_id + + @property + def type(self): + """Gets the type of this CoreSignalCondition. # noqa: E501 + + A type denoting the required value type for this signal. # noqa: E501 + + :return: The type of this CoreSignalCondition. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreSignalCondition. + + A type denoting the required value type for this signal. # noqa: E501 + + :param type: The type of this CoreSignalCondition. # noqa: E501 + :type: CoreLiteralType + """ + + self._type = type + + @property + def output_variable_name(self): + """Gets the output_variable_name of this CoreSignalCondition. # noqa: E501 + + The variable name for the signal value in this nodes outputs. # noqa: E501 + + :return: The output_variable_name of this CoreSignalCondition. # noqa: E501 + :rtype: str + """ + return self._output_variable_name + + @output_variable_name.setter + def output_variable_name(self, output_variable_name): + """Sets the output_variable_name of this CoreSignalCondition. + + The variable name for the signal value in this nodes outputs. # noqa: E501 + + :param output_variable_name: The output_variable_name of this CoreSignalCondition. # noqa: E501 + :type: str + """ + + self._output_variable_name = output_variable_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSignalCondition, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSignalCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py new file mode 100644 index 0000000000..1a98e893f3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreSimpleType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NONE = "NONE" + INTEGER = "INTEGER" + FLOAT = "FLOAT" + STRING = "STRING" + BOOLEAN = "BOOLEAN" + DATETIME = "DATETIME" + DURATION = "DURATION" + BINARY = "BINARY" + ERROR = "ERROR" + STRUCT = "STRUCT" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreSimpleType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSimpleType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSimpleType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sleep_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sleep_condition.py new file mode 100644 index 0000000000..aa3a244b8f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sleep_condition.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreSleepCondition(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'duration': 'str' + } + + attribute_map = { + 'duration': 'duration' + } + + def __init__(self, duration=None): # noqa: E501 + """CoreSleepCondition - a model defined in Swagger""" # noqa: E501 + + self._duration = None + self.discriminator = None + + if duration is not None: + self.duration = duration + + @property + def duration(self): + """Gets the duration of this CoreSleepCondition. # noqa: E501 + + The overall duration for this sleep. # noqa: E501 + + :return: The duration of this CoreSleepCondition. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this CoreSleepCondition. + + The overall duration for this sleep. # noqa: E501 + + :param duration: The duration of this CoreSleepCondition. # noqa: E501 + :type: str + """ + + self._duration = duration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSleepCondition, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSleepCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_span.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_span.py new file mode 100644 index 0000000000..c9d36d9bbd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_span.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_span import CoreSpan # noqa: F401,E501 +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class CoreSpan(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'start_time': 'datetime', + 'end_time': 'datetime', + 'workflow_id': 'CoreWorkflowExecutionIdentifier', + 'node_id': 'CoreNodeExecutionIdentifier', + 'task_id': 'CoreTaskExecutionIdentifier', + 'operation_id': 'str', + 'spans': 'list[CoreSpan]' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'workflow_id': 'workflow_id', + 'node_id': 'node_id', + 'task_id': 'task_id', + 'operation_id': 'operation_id', + 'spans': 'spans' + } + + def __init__(self, start_time=None, end_time=None, workflow_id=None, node_id=None, task_id=None, operation_id=None, spans=None): # noqa: E501 + """CoreSpan - a model defined in Swagger""" # noqa: E501 + + self._start_time = None + self._end_time = None + self._workflow_id = None + self._node_id = None + self._task_id = None + self._operation_id = None + self._spans = None + self.discriminator = None + + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if workflow_id is not None: + self.workflow_id = workflow_id + if node_id is not None: + self.node_id = node_id + if task_id is not None: + self.task_id = task_id + if operation_id is not None: + self.operation_id = operation_id + if spans is not None: + self.spans = spans + + @property + def start_time(self): + """Gets the start_time of this CoreSpan. # noqa: E501 + + start_time defines the instance this span began. # noqa: E501 + + :return: The start_time of this CoreSpan. # noqa: E501 + :rtype: datetime + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this CoreSpan. + + start_time defines the instance this span began. # noqa: E501 + + :param start_time: The start_time of this CoreSpan. # noqa: E501 + :type: datetime + """ + + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this CoreSpan. # noqa: E501 + + end_time defines the instance this span completed. # noqa: E501 + + :return: The end_time of this CoreSpan. # noqa: E501 + :rtype: datetime + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this CoreSpan. + + end_time defines the instance this span completed. # noqa: E501 + + :param end_time: The end_time of this CoreSpan. # noqa: E501 + :type: datetime + """ + + self._end_time = end_time + + @property + def workflow_id(self): + """Gets the workflow_id of this CoreSpan. # noqa: E501 + + workflow_id is the id of the workflow execution this Span represents. # noqa: E501 + + :return: The workflow_id of this CoreSpan. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._workflow_id + + @workflow_id.setter + def workflow_id(self, workflow_id): + """Sets the workflow_id of this CoreSpan. + + workflow_id is the id of the workflow execution this Span represents. # noqa: E501 + + :param workflow_id: The workflow_id of this CoreSpan. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._workflow_id = workflow_id + + @property + def node_id(self): + """Gets the node_id of this CoreSpan. # noqa: E501 + + node_id is the id of the node execution this Span represents. # noqa: E501 + + :return: The node_id of this CoreSpan. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this CoreSpan. + + node_id is the id of the node execution this Span represents. # noqa: E501 + + :param node_id: The node_id of this CoreSpan. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._node_id = node_id + + @property + def task_id(self): + """Gets the task_id of this CoreSpan. # noqa: E501 + + task_id is the id of the task execution this Span represents. # noqa: E501 + + :return: The task_id of this CoreSpan. # noqa: E501 + :rtype: CoreTaskExecutionIdentifier + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this CoreSpan. + + task_id is the id of the task execution this Span represents. # noqa: E501 + + :param task_id: The task_id of this CoreSpan. # noqa: E501 + :type: CoreTaskExecutionIdentifier + """ + + self._task_id = task_id + + @property + def operation_id(self): + """Gets the operation_id of this CoreSpan. # noqa: E501 + + operation_id is the id of a unique operation that this Span represents. # noqa: E501 + + :return: The operation_id of this CoreSpan. # noqa: E501 + :rtype: str + """ + return self._operation_id + + @operation_id.setter + def operation_id(self, operation_id): + """Sets the operation_id of this CoreSpan. + + operation_id is the id of a unique operation that this Span represents. # noqa: E501 + + :param operation_id: The operation_id of this CoreSpan. # noqa: E501 + :type: str + """ + + self._operation_id = operation_id + + @property + def spans(self): + """Gets the spans of this CoreSpan. # noqa: E501 + + spans defines a collection of Spans that breakdown this execution. # noqa: E501 + + :return: The spans of this CoreSpan. # noqa: E501 + :rtype: list[CoreSpan] + """ + return self._spans + + @spans.setter + def spans(self, spans): + """Sets the spans of this CoreSpan. + + spans defines a collection of Spans that breakdown this execution. # noqa: E501 + + :param spans: The spans of this CoreSpan. # noqa: E501 + :type: list[CoreSpan] + """ + + self._spans = spans + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSpan, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSpan): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sql.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sql.py new file mode 100644 index 0000000000..e688a08362 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sql.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.sql_dialect import SqlDialect # noqa: F401,E501 + + +class CoreSql(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'statement': 'str', + 'dialect': 'SqlDialect' + } + + attribute_map = { + 'statement': 'statement', + 'dialect': 'dialect' + } + + def __init__(self, statement=None, dialect=None): # noqa: E501 + """CoreSql - a model defined in Swagger""" # noqa: E501 + + self._statement = None + self._dialect = None + self.discriminator = None + + if statement is not None: + self.statement = statement + if dialect is not None: + self.dialect = dialect + + @property + def statement(self): + """Gets the statement of this CoreSql. # noqa: E501 + + + :return: The statement of this CoreSql. # noqa: E501 + :rtype: str + """ + return self._statement + + @statement.setter + def statement(self, statement): + """Sets the statement of this CoreSql. + + + :param statement: The statement of this CoreSql. # noqa: E501 + :type: str + """ + + self._statement = statement + + @property + def dialect(self): + """Gets the dialect of this CoreSql. # noqa: E501 + + + :return: The dialect of this CoreSql. # noqa: E501 + :rtype: SqlDialect + """ + return self._dialect + + @dialect.setter + def dialect(self, dialect): + """Sets the dialect of this CoreSql. + + + :param dialect: The dialect of this CoreSql. # noqa: E501 + :type: SqlDialect + """ + + self._dialect = dialect + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSql, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSql): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset.py new file mode 100644 index 0000000000..af3e3c7a03 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata # noqa: F401,E501 + + +class CoreStructuredDataset(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'uri': 'str', + 'metadata': 'CoreStructuredDatasetMetadata' + } + + attribute_map = { + 'uri': 'uri', + 'metadata': 'metadata' + } + + def __init__(self, uri=None, metadata=None): # noqa: E501 + """CoreStructuredDataset - a model defined in Swagger""" # noqa: E501 + + self._uri = None + self._metadata = None + self.discriminator = None + + if uri is not None: + self.uri = uri + if metadata is not None: + self.metadata = metadata + + @property + def uri(self): + """Gets the uri of this CoreStructuredDataset. # noqa: E501 + + + :return: The uri of this CoreStructuredDataset. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this CoreStructuredDataset. + + + :param uri: The uri of this CoreStructuredDataset. # noqa: E501 + :type: str + """ + + self._uri = uri + + @property + def metadata(self): + """Gets the metadata of this CoreStructuredDataset. # noqa: E501 + + + :return: The metadata of this CoreStructuredDataset. # noqa: E501 + :rtype: CoreStructuredDatasetMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreStructuredDataset. + + + :param metadata: The metadata of this CoreStructuredDataset. # noqa: E501 + :type: CoreStructuredDatasetMetadata + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreStructuredDataset, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreStructuredDataset): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_metadata.py new file mode 100644 index 0000000000..100da8fd51 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_metadata.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType # noqa: F401,E501 + + +class CoreStructuredDatasetMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'structured_dataset_type': 'CoreStructuredDatasetType' + } + + attribute_map = { + 'structured_dataset_type': 'structured_dataset_type' + } + + def __init__(self, structured_dataset_type=None): # noqa: E501 + """CoreStructuredDatasetMetadata - a model defined in Swagger""" # noqa: E501 + + self._structured_dataset_type = None + self.discriminator = None + + if structured_dataset_type is not None: + self.structured_dataset_type = structured_dataset_type + + @property + def structured_dataset_type(self): + """Gets the structured_dataset_type of this CoreStructuredDatasetMetadata. # noqa: E501 + + Bundle the type information along with the literal. This is here because StructuredDatasets can often be more defined at run time than at compile time. That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, without any column information, but at run time, you might have that column information. flytekit python will copy this type information into the literal, from the type information, if not provided by the various plugins (encoders). Since this field is run time generated, it's not used for any type checking. # noqa: E501 + + :return: The structured_dataset_type of this CoreStructuredDatasetMetadata. # noqa: E501 + :rtype: CoreStructuredDatasetType + """ + return self._structured_dataset_type + + @structured_dataset_type.setter + def structured_dataset_type(self, structured_dataset_type): + """Sets the structured_dataset_type of this CoreStructuredDatasetMetadata. + + Bundle the type information along with the literal. This is here because StructuredDatasets can often be more defined at run time than at compile time. That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, without any column information, but at run time, you might have that column information. flytekit python will copy this type information into the literal, from the type information, if not provided by the various plugins (encoders). Since this field is run time generated, it's not used for any type checking. # noqa: E501 + + :param structured_dataset_type: The structured_dataset_type of this CoreStructuredDatasetMetadata. # noqa: E501 + :type: CoreStructuredDatasetType + """ + + self._structured_dataset_type = structured_dataset_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreStructuredDatasetMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreStructuredDatasetMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_type.py new file mode 100644 index 0000000000..86e7427947 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_type.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn # noqa: F401,E501 + + +class CoreStructuredDatasetType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'columns': 'list[StructuredDatasetTypeDatasetColumn]', + 'format': 'str', + 'external_schema_type': 'str', + 'external_schema_bytes': 'str' + } + + attribute_map = { + 'columns': 'columns', + 'format': 'format', + 'external_schema_type': 'external_schema_type', + 'external_schema_bytes': 'external_schema_bytes' + } + + def __init__(self, columns=None, format=None, external_schema_type=None, external_schema_bytes=None): # noqa: E501 + """CoreStructuredDatasetType - a model defined in Swagger""" # noqa: E501 + + self._columns = None + self._format = None + self._external_schema_type = None + self._external_schema_bytes = None + self.discriminator = None + + if columns is not None: + self.columns = columns + if format is not None: + self.format = format + if external_schema_type is not None: + self.external_schema_type = external_schema_type + if external_schema_bytes is not None: + self.external_schema_bytes = external_schema_bytes + + @property + def columns(self): + """Gets the columns of this CoreStructuredDatasetType. # noqa: E501 + + A list of ordered columns this schema comprises of. # noqa: E501 + + :return: The columns of this CoreStructuredDatasetType. # noqa: E501 + :rtype: list[StructuredDatasetTypeDatasetColumn] + """ + return self._columns + + @columns.setter + def columns(self, columns): + """Sets the columns of this CoreStructuredDatasetType. + + A list of ordered columns this schema comprises of. # noqa: E501 + + :param columns: The columns of this CoreStructuredDatasetType. # noqa: E501 + :type: list[StructuredDatasetTypeDatasetColumn] + """ + + self._columns = columns + + @property + def format(self): + """Gets the format of this CoreStructuredDatasetType. # noqa: E501 + + This is the storage format, the format of the bits at rest parquet, feather, csv, etc. For two types to be compatible, the format will need to be an exact match. # noqa: E501 + + :return: The format of this CoreStructuredDatasetType. # noqa: E501 + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this CoreStructuredDatasetType. + + This is the storage format, the format of the bits at rest parquet, feather, csv, etc. For two types to be compatible, the format will need to be an exact match. # noqa: E501 + + :param format: The format of this CoreStructuredDatasetType. # noqa: E501 + :type: str + """ + + self._format = format + + @property + def external_schema_type(self): + """Gets the external_schema_type of this CoreStructuredDatasetType. # noqa: E501 + + This is a string representing the type that the bytes in external_schema_bytes are formatted in. This is an optional field that will not be used for type checking. # noqa: E501 + + :return: The external_schema_type of this CoreStructuredDatasetType. # noqa: E501 + :rtype: str + """ + return self._external_schema_type + + @external_schema_type.setter + def external_schema_type(self, external_schema_type): + """Sets the external_schema_type of this CoreStructuredDatasetType. + + This is a string representing the type that the bytes in external_schema_bytes are formatted in. This is an optional field that will not be used for type checking. # noqa: E501 + + :param external_schema_type: The external_schema_type of this CoreStructuredDatasetType. # noqa: E501 + :type: str + """ + + self._external_schema_type = external_schema_type + + @property + def external_schema_bytes(self): + """Gets the external_schema_bytes of this CoreStructuredDatasetType. # noqa: E501 + + The serialized bytes of a third-party schema library like Arrow. This is an optional field that will not be used for type checking. # noqa: E501 + + :return: The external_schema_bytes of this CoreStructuredDatasetType. # noqa: E501 + :rtype: str + """ + return self._external_schema_bytes + + @external_schema_bytes.setter + def external_schema_bytes(self, external_schema_bytes): + """Sets the external_schema_bytes of this CoreStructuredDatasetType. + + The serialized bytes of a third-party schema library like Arrow. This is an optional field that will not be used for type checking. # noqa: E501 + + :param external_schema_bytes: The external_schema_bytes of this CoreStructuredDatasetType. # noqa: E501 + :type: str + """ + if external_schema_bytes is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', external_schema_bytes): # noqa: E501 + raise ValueError(r"Invalid value for `external_schema_bytes`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._external_schema_bytes = external_schema_bytes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreStructuredDatasetType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreStructuredDatasetType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py new file mode 100644 index 0000000000..766ccccee7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 + + +class CoreTaskExecutionIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_id': 'CoreIdentifier', + 'node_execution_id': 'CoreNodeExecutionIdentifier', + 'retry_attempt': 'int' + } + + attribute_map = { + 'task_id': 'task_id', + 'node_execution_id': 'node_execution_id', + 'retry_attempt': 'retry_attempt' + } + + def __init__(self, task_id=None, node_execution_id=None, retry_attempt=None): # noqa: E501 + """CoreTaskExecutionIdentifier - a model defined in Swagger""" # noqa: E501 + + self._task_id = None + self._node_execution_id = None + self._retry_attempt = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + if node_execution_id is not None: + self.node_execution_id = node_execution_id + if retry_attempt is not None: + self.retry_attempt = retry_attempt + + @property + def task_id(self): + """Gets the task_id of this CoreTaskExecutionIdentifier. # noqa: E501 + + + :return: The task_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this CoreTaskExecutionIdentifier. + + + :param task_id: The task_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :type: CoreIdentifier + """ + + self._task_id = task_id + + @property + def node_execution_id(self): + """Gets the node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 + + + :return: The node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._node_execution_id + + @node_execution_id.setter + def node_execution_id(self, node_execution_id): + """Sets the node_execution_id of this CoreTaskExecutionIdentifier. + + + :param node_execution_id: The node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._node_execution_id = node_execution_id + + @property + def retry_attempt(self): + """Gets the retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 + + + :return: The retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 + :rtype: int + """ + return self._retry_attempt + + @retry_attempt.setter + def retry_attempt(self, retry_attempt): + """Sets the retry_attempt of this CoreTaskExecutionIdentifier. + + + :param retry_attempt: The retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 + :type: int + """ + + self._retry_attempt = retry_attempt + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskExecutionIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskExecutionIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py new file mode 100644 index 0000000000..5a8dbce0d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreTaskExecutionPhase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + QUEUED = "QUEUED" + RUNNING = "RUNNING" + SUCCEEDED = "SUCCEEDED" + ABORTED = "ABORTED" + FAILED = "FAILED" + INITIALIZING = "INITIALIZING" + WAITING_FOR_RESOURCES = "WAITING_FOR_RESOURCES" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreTaskExecutionPhase - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskExecutionPhase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskExecutionPhase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py new file mode 100644 index 0000000000..a219028ae2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat # noqa: F401,E501 + + +class CoreTaskLog(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'uri': 'str', + 'name': 'str', + 'message_format': 'TaskLogMessageFormat', + 'ttl': 'str' + } + + attribute_map = { + 'uri': 'uri', + 'name': 'name', + 'message_format': 'message_format', + 'ttl': 'ttl' + } + + def __init__(self, uri=None, name=None, message_format=None, ttl=None): # noqa: E501 + """CoreTaskLog - a model defined in Swagger""" # noqa: E501 + + self._uri = None + self._name = None + self._message_format = None + self._ttl = None + self.discriminator = None + + if uri is not None: + self.uri = uri + if name is not None: + self.name = name + if message_format is not None: + self.message_format = message_format + if ttl is not None: + self.ttl = ttl + + @property + def uri(self): + """Gets the uri of this CoreTaskLog. # noqa: E501 + + + :return: The uri of this CoreTaskLog. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this CoreTaskLog. + + + :param uri: The uri of this CoreTaskLog. # noqa: E501 + :type: str + """ + + self._uri = uri + + @property + def name(self): + """Gets the name of this CoreTaskLog. # noqa: E501 + + + :return: The name of this CoreTaskLog. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreTaskLog. + + + :param name: The name of this CoreTaskLog. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def message_format(self): + """Gets the message_format of this CoreTaskLog. # noqa: E501 + + + :return: The message_format of this CoreTaskLog. # noqa: E501 + :rtype: TaskLogMessageFormat + """ + return self._message_format + + @message_format.setter + def message_format(self, message_format): + """Sets the message_format of this CoreTaskLog. + + + :param message_format: The message_format of this CoreTaskLog. # noqa: E501 + :type: TaskLogMessageFormat + """ + + self._message_format = message_format + + @property + def ttl(self): + """Gets the ttl of this CoreTaskLog. # noqa: E501 + + + :return: The ttl of this CoreTaskLog. # noqa: E501 + :rtype: str + """ + return self._ttl + + @ttl.setter + def ttl(self, ttl): + """Sets the ttl of this CoreTaskLog. + + + :param ttl: The ttl of this CoreTaskLog. # noqa: E501 + :type: str + """ + + self._ttl = ttl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskLog, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskLog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py new file mode 100644 index 0000000000..fdc8331bbb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py @@ -0,0 +1,394 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: F401,E501 +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata # noqa: F401,E501 + + +class CoreTaskMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'discoverable': 'bool', + 'runtime': 'CoreRuntimeMetadata', + 'timeout': 'str', + 'retries': 'CoreRetryStrategy', + 'discovery_version': 'str', + 'deprecated_error_message': 'str', + 'interruptible': 'bool', + 'cache_serializable': 'bool', + 'generates_deck': 'bool', + 'tags': 'dict(str, str)', + 'pod_template_name': 'str' + } + + attribute_map = { + 'discoverable': 'discoverable', + 'runtime': 'runtime', + 'timeout': 'timeout', + 'retries': 'retries', + 'discovery_version': 'discovery_version', + 'deprecated_error_message': 'deprecated_error_message', + 'interruptible': 'interruptible', + 'cache_serializable': 'cache_serializable', + 'generates_deck': 'generates_deck', + 'tags': 'tags', + 'pod_template_name': 'pod_template_name' + } + + def __init__(self, discoverable=None, runtime=None, timeout=None, retries=None, discovery_version=None, deprecated_error_message=None, interruptible=None, cache_serializable=None, generates_deck=None, tags=None, pod_template_name=None): # noqa: E501 + """CoreTaskMetadata - a model defined in Swagger""" # noqa: E501 + + self._discoverable = None + self._runtime = None + self._timeout = None + self._retries = None + self._discovery_version = None + self._deprecated_error_message = None + self._interruptible = None + self._cache_serializable = None + self._generates_deck = None + self._tags = None + self._pod_template_name = None + self.discriminator = None + + if discoverable is not None: + self.discoverable = discoverable + if runtime is not None: + self.runtime = runtime + if timeout is not None: + self.timeout = timeout + if retries is not None: + self.retries = retries + if discovery_version is not None: + self.discovery_version = discovery_version + if deprecated_error_message is not None: + self.deprecated_error_message = deprecated_error_message + if interruptible is not None: + self.interruptible = interruptible + if cache_serializable is not None: + self.cache_serializable = cache_serializable + if generates_deck is not None: + self.generates_deck = generates_deck + if tags is not None: + self.tags = tags + if pod_template_name is not None: + self.pod_template_name = pod_template_name + + @property + def discoverable(self): + """Gets the discoverable of this CoreTaskMetadata. # noqa: E501 + + Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. # noqa: E501 + + :return: The discoverable of this CoreTaskMetadata. # noqa: E501 + :rtype: bool + """ + return self._discoverable + + @discoverable.setter + def discoverable(self, discoverable): + """Sets the discoverable of this CoreTaskMetadata. + + Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. # noqa: E501 + + :param discoverable: The discoverable of this CoreTaskMetadata. # noqa: E501 + :type: bool + """ + + self._discoverable = discoverable + + @property + def runtime(self): + """Gets the runtime of this CoreTaskMetadata. # noqa: E501 + + Runtime information about the task. # noqa: E501 + + :return: The runtime of this CoreTaskMetadata. # noqa: E501 + :rtype: CoreRuntimeMetadata + """ + return self._runtime + + @runtime.setter + def runtime(self, runtime): + """Sets the runtime of this CoreTaskMetadata. + + Runtime information about the task. # noqa: E501 + + :param runtime: The runtime of this CoreTaskMetadata. # noqa: E501 + :type: CoreRuntimeMetadata + """ + + self._runtime = runtime + + @property + def timeout(self): + """Gets the timeout of this CoreTaskMetadata. # noqa: E501 + + The overall timeout of a task including user-triggered retries. # noqa: E501 + + :return: The timeout of this CoreTaskMetadata. # noqa: E501 + :rtype: str + """ + return self._timeout + + @timeout.setter + def timeout(self, timeout): + """Sets the timeout of this CoreTaskMetadata. + + The overall timeout of a task including user-triggered retries. # noqa: E501 + + :param timeout: The timeout of this CoreTaskMetadata. # noqa: E501 + :type: str + """ + + self._timeout = timeout + + @property + def retries(self): + """Gets the retries of this CoreTaskMetadata. # noqa: E501 + + Number of retries per task. # noqa: E501 + + :return: The retries of this CoreTaskMetadata. # noqa: E501 + :rtype: CoreRetryStrategy + """ + return self._retries + + @retries.setter + def retries(self, retries): + """Sets the retries of this CoreTaskMetadata. + + Number of retries per task. # noqa: E501 + + :param retries: The retries of this CoreTaskMetadata. # noqa: E501 + :type: CoreRetryStrategy + """ + + self._retries = retries + + @property + def discovery_version(self): + """Gets the discovery_version of this CoreTaskMetadata. # noqa: E501 + + Indicates a logical version to apply to this task for the purpose of discovery. # noqa: E501 + + :return: The discovery_version of this CoreTaskMetadata. # noqa: E501 + :rtype: str + """ + return self._discovery_version + + @discovery_version.setter + def discovery_version(self, discovery_version): + """Sets the discovery_version of this CoreTaskMetadata. + + Indicates a logical version to apply to this task for the purpose of discovery. # noqa: E501 + + :param discovery_version: The discovery_version of this CoreTaskMetadata. # noqa: E501 + :type: str + """ + + self._discovery_version = discovery_version + + @property + def deprecated_error_message(self): + """Gets the deprecated_error_message of this CoreTaskMetadata. # noqa: E501 + + If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. # noqa: E501 + + :return: The deprecated_error_message of this CoreTaskMetadata. # noqa: E501 + :rtype: str + """ + return self._deprecated_error_message + + @deprecated_error_message.setter + def deprecated_error_message(self, deprecated_error_message): + """Sets the deprecated_error_message of this CoreTaskMetadata. + + If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. # noqa: E501 + + :param deprecated_error_message: The deprecated_error_message of this CoreTaskMetadata. # noqa: E501 + :type: str + """ + + self._deprecated_error_message = deprecated_error_message + + @property + def interruptible(self): + """Gets the interruptible of this CoreTaskMetadata. # noqa: E501 + + + :return: The interruptible of this CoreTaskMetadata. # noqa: E501 + :rtype: bool + """ + return self._interruptible + + @interruptible.setter + def interruptible(self, interruptible): + """Sets the interruptible of this CoreTaskMetadata. + + + :param interruptible: The interruptible of this CoreTaskMetadata. # noqa: E501 + :type: bool + """ + + self._interruptible = interruptible + + @property + def cache_serializable(self): + """Gets the cache_serializable of this CoreTaskMetadata. # noqa: E501 + + + :return: The cache_serializable of this CoreTaskMetadata. # noqa: E501 + :rtype: bool + """ + return self._cache_serializable + + @cache_serializable.setter + def cache_serializable(self, cache_serializable): + """Sets the cache_serializable of this CoreTaskMetadata. + + + :param cache_serializable: The cache_serializable of this CoreTaskMetadata. # noqa: E501 + :type: bool + """ + + self._cache_serializable = cache_serializable + + @property + def generates_deck(self): + """Gets the generates_deck of this CoreTaskMetadata. # noqa: E501 + + Indicates whether the task will generate a Deck URI when it finishes executing. # noqa: E501 + + :return: The generates_deck of this CoreTaskMetadata. # noqa: E501 + :rtype: bool + """ + return self._generates_deck + + @generates_deck.setter + def generates_deck(self, generates_deck): + """Sets the generates_deck of this CoreTaskMetadata. + + Indicates whether the task will generate a Deck URI when it finishes executing. # noqa: E501 + + :param generates_deck: The generates_deck of this CoreTaskMetadata. # noqa: E501 + :type: bool + """ + + self._generates_deck = generates_deck + + @property + def tags(self): + """Gets the tags of this CoreTaskMetadata. # noqa: E501 + + + :return: The tags of this CoreTaskMetadata. # noqa: E501 + :rtype: dict(str, str) + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CoreTaskMetadata. + + + :param tags: The tags of this CoreTaskMetadata. # noqa: E501 + :type: dict(str, str) + """ + + self._tags = tags + + @property + def pod_template_name(self): + """Gets the pod_template_name of this CoreTaskMetadata. # noqa: E501 + + pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied identically as, the default PodTemplate configured in FlytePropeller. # noqa: E501 + + :return: The pod_template_name of this CoreTaskMetadata. # noqa: E501 + :rtype: str + """ + return self._pod_template_name + + @pod_template_name.setter + def pod_template_name(self, pod_template_name): + """Sets the pod_template_name of this CoreTaskMetadata. + + pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied identically as, the default PodTemplate configured in FlytePropeller. # noqa: E501 + + :param pod_template_name: The pod_template_name of this CoreTaskMetadata. # noqa: E501 + :type: str + """ + + self._pod_template_name = pod_template_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py new file mode 100644 index 0000000000..db307f7405 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides # noqa: F401,E501 + + +class CoreTaskNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reference_id': 'CoreIdentifier', + 'overrides': 'CoreTaskNodeOverrides' + } + + attribute_map = { + 'reference_id': 'reference_id', + 'overrides': 'overrides' + } + + def __init__(self, reference_id=None, overrides=None): # noqa: E501 + """CoreTaskNode - a model defined in Swagger""" # noqa: E501 + + self._reference_id = None + self._overrides = None + self.discriminator = None + + if reference_id is not None: + self.reference_id = reference_id + if overrides is not None: + self.overrides = overrides + + @property + def reference_id(self): + """Gets the reference_id of this CoreTaskNode. # noqa: E501 + + A globally unique identifier for the task. # noqa: E501 + + :return: The reference_id of this CoreTaskNode. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._reference_id + + @reference_id.setter + def reference_id(self, reference_id): + """Sets the reference_id of this CoreTaskNode. + + A globally unique identifier for the task. # noqa: E501 + + :param reference_id: The reference_id of this CoreTaskNode. # noqa: E501 + :type: CoreIdentifier + """ + + self._reference_id = reference_id + + @property + def overrides(self): + """Gets the overrides of this CoreTaskNode. # noqa: E501 + + Optional overrides applied at task execution time. # noqa: E501 + + :return: The overrides of this CoreTaskNode. # noqa: E501 + :rtype: CoreTaskNodeOverrides + """ + return self._overrides + + @overrides.setter + def overrides(self, overrides): + """Sets the overrides of this CoreTaskNode. + + Optional overrides applied at task execution time. # noqa: E501 + + :param overrides: The overrides of this CoreTaskNode. # noqa: E501 + :type: CoreTaskNodeOverrides + """ + + self._overrides = overrides + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node_overrides.py new file mode 100644 index 0000000000..7320a6d6e8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node_overrides.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_resources import CoreResources # noqa: F401,E501 + + +class CoreTaskNodeOverrides(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resources': 'CoreResources' + } + + attribute_map = { + 'resources': 'resources' + } + + def __init__(self, resources=None): # noqa: E501 + """CoreTaskNodeOverrides - a model defined in Swagger""" # noqa: E501 + + self._resources = None + self.discriminator = None + + if resources is not None: + self.resources = resources + + @property + def resources(self): + """Gets the resources of this CoreTaskNodeOverrides. # noqa: E501 + + A customizable interface to convey resources requested for a task container. # noqa: E501 + + :return: The resources of this CoreTaskNodeOverrides. # noqa: E501 + :rtype: CoreResources + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this CoreTaskNodeOverrides. + + A customizable interface to convey resources requested for a task container. # noqa: E501 + + :param resources: The resources of this CoreTaskNodeOverrides. # noqa: E501 + :type: CoreResources + """ + + self._resources = resources + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskNodeOverrides, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskNodeOverrides): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py new file mode 100644 index 0000000000..870777f995 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_container import CoreContainer # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_k8s_pod import CoreK8sPod # noqa: F401,E501 +from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 +from flyteadmin.models.core_sql import CoreSql # noqa: F401,E501 +from flyteadmin.models.core_task_metadata import CoreTaskMetadata # noqa: F401,E501 +from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreTaskTemplate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'type': 'str', + 'metadata': 'CoreTaskMetadata', + 'interface': 'CoreTypedInterface', + 'custom': 'ProtobufStruct', + 'container': 'CoreContainer', + 'k8s_pod': 'CoreK8sPod', + 'sql': 'CoreSql', + 'task_type_version': 'int', + 'security_context': 'CoreSecurityContext', + 'config': 'dict(str, str)' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'metadata': 'metadata', + 'interface': 'interface', + 'custom': 'custom', + 'container': 'container', + 'k8s_pod': 'k8s_pod', + 'sql': 'sql', + 'task_type_version': 'task_type_version', + 'security_context': 'security_context', + 'config': 'config' + } + + def __init__(self, id=None, type=None, metadata=None, interface=None, custom=None, container=None, k8s_pod=None, sql=None, task_type_version=None, security_context=None, config=None): # noqa: E501 + """CoreTaskTemplate - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._type = None + self._metadata = None + self._interface = None + self._custom = None + self._container = None + self._k8s_pod = None + self._sql = None + self._task_type_version = None + self._security_context = None + self._config = None + self.discriminator = None + + if id is not None: + self.id = id + if type is not None: + self.type = type + if metadata is not None: + self.metadata = metadata + if interface is not None: + self.interface = interface + if custom is not None: + self.custom = custom + if container is not None: + self.container = container + if k8s_pod is not None: + self.k8s_pod = k8s_pod + if sql is not None: + self.sql = sql + if task_type_version is not None: + self.task_type_version = task_type_version + if security_context is not None: + self.security_context = security_context + if config is not None: + self.config = config + + @property + def id(self): + """Gets the id of this CoreTaskTemplate. # noqa: E501 + + Auto generated taskId by the system. Task Id uniquely identifies this task globally. # noqa: E501 + + :return: The id of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CoreTaskTemplate. + + Auto generated taskId by the system. Task Id uniquely identifies this task globally. # noqa: E501 + + :param id: The id of this CoreTaskTemplate. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def type(self): + """Gets the type of this CoreTaskTemplate. # noqa: E501 + + A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. # noqa: E501 + + :return: The type of this CoreTaskTemplate. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreTaskTemplate. + + A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. # noqa: E501 + + :param type: The type of this CoreTaskTemplate. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def metadata(self): + """Gets the metadata of this CoreTaskTemplate. # noqa: E501 + + Extra metadata about the task. # noqa: E501 + + :return: The metadata of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreTaskMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreTaskTemplate. + + Extra metadata about the task. # noqa: E501 + + :param metadata: The metadata of this CoreTaskTemplate. # noqa: E501 + :type: CoreTaskMetadata + """ + + self._metadata = metadata + + @property + def interface(self): + """Gets the interface of this CoreTaskTemplate. # noqa: E501 + + A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures. # noqa: E501 + + :return: The interface of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreTypedInterface + """ + return self._interface + + @interface.setter + def interface(self, interface): + """Sets the interface of this CoreTaskTemplate. + + A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures. # noqa: E501 + + :param interface: The interface of this CoreTaskTemplate. # noqa: E501 + :type: CoreTypedInterface + """ + + self._interface = interface + + @property + def custom(self): + """Gets the custom of this CoreTaskTemplate. # noqa: E501 + + Custom data about the task. This is extensible to allow various plugins in the system. # noqa: E501 + + :return: The custom of this CoreTaskTemplate. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._custom + + @custom.setter + def custom(self, custom): + """Sets the custom of this CoreTaskTemplate. + + Custom data about the task. This is extensible to allow various plugins in the system. # noqa: E501 + + :param custom: The custom of this CoreTaskTemplate. # noqa: E501 + :type: ProtobufStruct + """ + + self._custom = custom + + @property + def container(self): + """Gets the container of this CoreTaskTemplate. # noqa: E501 + + + :return: The container of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreContainer + """ + return self._container + + @container.setter + def container(self, container): + """Sets the container of this CoreTaskTemplate. + + + :param container: The container of this CoreTaskTemplate. # noqa: E501 + :type: CoreContainer + """ + + self._container = container + + @property + def k8s_pod(self): + """Gets the k8s_pod of this CoreTaskTemplate. # noqa: E501 + + + :return: The k8s_pod of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreK8sPod + """ + return self._k8s_pod + + @k8s_pod.setter + def k8s_pod(self, k8s_pod): + """Sets the k8s_pod of this CoreTaskTemplate. + + + :param k8s_pod: The k8s_pod of this CoreTaskTemplate. # noqa: E501 + :type: CoreK8sPod + """ + + self._k8s_pod = k8s_pod + + @property + def sql(self): + """Gets the sql of this CoreTaskTemplate. # noqa: E501 + + + :return: The sql of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreSql + """ + return self._sql + + @sql.setter + def sql(self, sql): + """Sets the sql of this CoreTaskTemplate. + + + :param sql: The sql of this CoreTaskTemplate. # noqa: E501 + :type: CoreSql + """ + + self._sql = sql + + @property + def task_type_version(self): + """Gets the task_type_version of this CoreTaskTemplate. # noqa: E501 + + This can be used to customize task handling at execution time for the same task type. # noqa: E501 + + :return: The task_type_version of this CoreTaskTemplate. # noqa: E501 + :rtype: int + """ + return self._task_type_version + + @task_type_version.setter + def task_type_version(self, task_type_version): + """Sets the task_type_version of this CoreTaskTemplate. + + This can be used to customize task handling at execution time for the same task type. # noqa: E501 + + :param task_type_version: The task_type_version of this CoreTaskTemplate. # noqa: E501 + :type: int + """ + + self._task_type_version = task_type_version + + @property + def security_context(self): + """Gets the security_context of this CoreTaskTemplate. # noqa: E501 + + security_context encapsulates security attributes requested to run this task. # noqa: E501 + + :return: The security_context of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreSecurityContext + """ + return self._security_context + + @security_context.setter + def security_context(self, security_context): + """Sets the security_context of this CoreTaskTemplate. + + security_context encapsulates security attributes requested to run this task. # noqa: E501 + + :param security_context: The security_context of this CoreTaskTemplate. # noqa: E501 + :type: CoreSecurityContext + """ + + self._security_context = security_context + + @property + def config(self): + """Gets the config of this CoreTaskTemplate. # noqa: E501 + + + :return: The config of this CoreTaskTemplate. # noqa: E501 + :rtype: dict(str, str) + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this CoreTaskTemplate. + + + :param config: The config of this CoreTaskTemplate. # noqa: E501 + :type: dict(str, str) + """ + + self._config = config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskTemplate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_annotation.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_annotation.py new file mode 100644 index 0000000000..3289feeabb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_annotation.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreTypeAnnotation(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'annotations': 'ProtobufStruct' + } + + attribute_map = { + 'annotations': 'annotations' + } + + def __init__(self, annotations=None): # noqa: E501 + """CoreTypeAnnotation - a model defined in Swagger""" # noqa: E501 + + self._annotations = None + self.discriminator = None + + if annotations is not None: + self.annotations = annotations + + @property + def annotations(self): + """Gets the annotations of this CoreTypeAnnotation. # noqa: E501 + + A arbitrary JSON payload to describe a type. # noqa: E501 + + :return: The annotations of this CoreTypeAnnotation. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this CoreTypeAnnotation. + + A arbitrary JSON payload to describe a type. # noqa: E501 + + :param annotations: The annotations of this CoreTypeAnnotation. # noqa: E501 + :type: ProtobufStruct + """ + + self._annotations = annotations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTypeAnnotation, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTypeAnnotation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_structure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_structure.py new file mode 100644 index 0000000000..46273f72e4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_structure.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreTypeStructure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tag': 'str' + } + + attribute_map = { + 'tag': 'tag' + } + + def __init__(self, tag=None): # noqa: E501 + """CoreTypeStructure - a model defined in Swagger""" # noqa: E501 + + self._tag = None + self.discriminator = None + + if tag is not None: + self.tag = tag + + @property + def tag(self): + """Gets the tag of this CoreTypeStructure. # noqa: E501 + + + :return: The tag of this CoreTypeStructure. # noqa: E501 + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this CoreTypeStructure. + + + :param tag: The tag of this CoreTypeStructure. # noqa: E501 + :type: str + """ + + self._tag = tag + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTypeStructure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTypeStructure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py new file mode 100644 index 0000000000..8864814f4b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: F401,E501 + + +class CoreTypedInterface(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inputs': 'CoreVariableMap', + 'outputs': 'CoreVariableMap' + } + + attribute_map = { + 'inputs': 'inputs', + 'outputs': 'outputs' + } + + def __init__(self, inputs=None, outputs=None): # noqa: E501 + """CoreTypedInterface - a model defined in Swagger""" # noqa: E501 + + self._inputs = None + self._outputs = None + self.discriminator = None + + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + + @property + def inputs(self): + """Gets the inputs of this CoreTypedInterface. # noqa: E501 + + + :return: The inputs of this CoreTypedInterface. # noqa: E501 + :rtype: CoreVariableMap + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this CoreTypedInterface. + + + :param inputs: The inputs of this CoreTypedInterface. # noqa: E501 + :type: CoreVariableMap + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this CoreTypedInterface. # noqa: E501 + + + :return: The outputs of this CoreTypedInterface. # noqa: E501 + :rtype: CoreVariableMap + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this CoreTypedInterface. + + + :param outputs: The outputs of this CoreTypedInterface. # noqa: E501 + :type: CoreVariableMap + """ + + self._outputs = outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTypedInterface, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTypedInterface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union.py new file mode 100644 index 0000000000..9b96a71d06 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 + + +class CoreUnion(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'CoreLiteral', + 'type': 'CoreLiteralType' + } + + attribute_map = { + 'value': 'value', + 'type': 'type' + } + + def __init__(self, value=None, type=None): # noqa: E501 + """CoreUnion - a model defined in Swagger""" # noqa: E501 + + self._value = None + self._type = None + self.discriminator = None + + if value is not None: + self.value = value + if type is not None: + self.type = type + + @property + def value(self): + """Gets the value of this CoreUnion. # noqa: E501 + + + :return: The value of this CoreUnion. # noqa: E501 + :rtype: CoreLiteral + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CoreUnion. + + + :param value: The value of this CoreUnion. # noqa: E501 + :type: CoreLiteral + """ + + self._value = value + + @property + def type(self): + """Gets the type of this CoreUnion. # noqa: E501 + + + :return: The type of this CoreUnion. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreUnion. + + + :param type: The type of this CoreUnion. # noqa: E501 + :type: CoreLiteralType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreUnion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreUnion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_info.py new file mode 100644 index 0000000000..361c967c3c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_info.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 + + +class CoreUnionInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'target_type': 'CoreLiteralType' + } + + attribute_map = { + 'target_type': 'targetType' + } + + def __init__(self, target_type=None): # noqa: E501 + """CoreUnionInfo - a model defined in Swagger""" # noqa: E501 + + self._target_type = None + self.discriminator = None + + if target_type is not None: + self.target_type = target_type + + @property + def target_type(self): + """Gets the target_type of this CoreUnionInfo. # noqa: E501 + + + :return: The target_type of this CoreUnionInfo. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this CoreUnionInfo. + + + :param target_type: The target_type of this CoreUnionInfo. # noqa: E501 + :type: CoreLiteralType + """ + + self._target_type = target_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreUnionInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreUnionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_type.py new file mode 100644 index 0000000000..3fb360d055 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_type.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 + + +class CoreUnionType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'variants': 'list[CoreLiteralType]' + } + + attribute_map = { + 'variants': 'variants' + } + + def __init__(self, variants=None): # noqa: E501 + """CoreUnionType - a model defined in Swagger""" # noqa: E501 + + self._variants = None + self.discriminator = None + + if variants is not None: + self.variants = variants + + @property + def variants(self): + """Gets the variants of this CoreUnionType. # noqa: E501 + + Predefined set of variants in union. # noqa: E501 + + :return: The variants of this CoreUnionType. # noqa: E501 + :rtype: list[CoreLiteralType] + """ + return self._variants + + @variants.setter + def variants(self, variants): + """Sets the variants of this CoreUnionType. + + Predefined set of variants in union. # noqa: E501 + + :param variants: The variants of this CoreUnionType. # noqa: E501 + :type: list[CoreLiteralType] + """ + + self._variants = variants + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreUnionType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreUnionType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py new file mode 100644 index 0000000000..186179d2ce --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 + + +class CoreVariable(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'CoreLiteralType', + 'description': 'str' + } + + attribute_map = { + 'type': 'type', + 'description': 'description' + } + + def __init__(self, type=None, description=None): # noqa: E501 + """CoreVariable - a model defined in Swagger""" # noqa: E501 + + self._type = None + self._description = None + self.discriminator = None + + if type is not None: + self.type = type + if description is not None: + self.description = description + + @property + def type(self): + """Gets the type of this CoreVariable. # noqa: E501 + + Variable literal type. # noqa: E501 + + :return: The type of this CoreVariable. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreVariable. + + Variable literal type. # noqa: E501 + + :param type: The type of this CoreVariable. # noqa: E501 + :type: CoreLiteralType + """ + + self._type = type + + @property + def description(self): + """Gets the description of this CoreVariable. # noqa: E501 + + + :return: The description of this CoreVariable. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CoreVariable. + + + :param description: The description of this CoreVariable. # noqa: E501 + :type: str + """ + + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreVariable, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreVariable): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py new file mode 100644 index 0000000000..a2a15f83f6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_variable import CoreVariable # noqa: F401,E501 + + +class CoreVariableMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'variables': 'dict(str, CoreVariable)' + } + + attribute_map = { + 'variables': 'variables' + } + + def __init__(self, variables=None): # noqa: E501 + """CoreVariableMap - a model defined in Swagger""" # noqa: E501 + + self._variables = None + self.discriminator = None + + if variables is not None: + self.variables = variables + + @property + def variables(self): + """Gets the variables of this CoreVariableMap. # noqa: E501 + + Defines a map of variable names to variables. # noqa: E501 + + :return: The variables of this CoreVariableMap. # noqa: E501 + :rtype: dict(str, CoreVariable) + """ + return self._variables + + @variables.setter + def variables(self, variables): + """Sets the variables of this CoreVariableMap. + + Defines a map of variable names to variables. # noqa: E501 + + :param variables: The variables of this CoreVariableMap. # noqa: E501 + :type: dict(str, CoreVariable) + """ + + self._variables = variables + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreVariableMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreVariableMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py new file mode 100644 index 0000000000..709f5a55e3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreVoid(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreVoid - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreVoid, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreVoid): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py new file mode 100644 index 0000000000..09bd015a36 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreWorkflowExecutionIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'name': 'str' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'name': 'name' + } + + def __init__(self, project=None, domain=None, name=None): # noqa: E501 + """CoreWorkflowExecutionIdentifier - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._name = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + + @property + def project(self): + """Gets the project of this CoreWorkflowExecutionIdentifier. # noqa: E501 + + Name of the project the resource belongs to. # noqa: E501 + + :return: The project of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this CoreWorkflowExecutionIdentifier. + + Name of the project the resource belongs to. # noqa: E501 + + :param project: The project of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :return: The domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this CoreWorkflowExecutionIdentifier. + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :param domain: The domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this CoreWorkflowExecutionIdentifier. # noqa: E501 + + User or system provided value for the resource. # noqa: E501 + + :return: The name of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreWorkflowExecutionIdentifier. + + User or system provided value for the resource. # noqa: E501 + + :param name: The name of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowExecutionIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowExecutionIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py new file mode 100644 index 0000000000..d2cdbd69dd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreWorkflowExecutionPhase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + QUEUED = "QUEUED" + RUNNING = "RUNNING" + SUCCEEDING = "SUCCEEDING" + SUCCEEDED = "SUCCEEDED" + FAILING = "FAILING" + FAILED = "FAILED" + ABORTED = "ABORTED" + TIMED_OUT = "TIMED_OUT" + ABORTING = "ABORTING" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreWorkflowExecutionPhase - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowExecutionPhase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowExecutionPhase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py new file mode 100644 index 0000000000..9c6b873be9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 +from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy # noqa: F401,E501 + + +class CoreWorkflowMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'quality_of_service': 'CoreQualityOfService', + 'on_failure': 'WorkflowMetadataOnFailurePolicy', + 'tags': 'dict(str, str)' + } + + attribute_map = { + 'quality_of_service': 'quality_of_service', + 'on_failure': 'on_failure', + 'tags': 'tags' + } + + def __init__(self, quality_of_service=None, on_failure=None, tags=None): # noqa: E501 + """CoreWorkflowMetadata - a model defined in Swagger""" # noqa: E501 + + self._quality_of_service = None + self._on_failure = None + self._tags = None + self.discriminator = None + + if quality_of_service is not None: + self.quality_of_service = quality_of_service + if on_failure is not None: + self.on_failure = on_failure + if tags is not None: + self.tags = tags + + @property + def quality_of_service(self): + """Gets the quality_of_service of this CoreWorkflowMetadata. # noqa: E501 + + Indicates the runtime priority of workflow executions. # noqa: E501 + + :return: The quality_of_service of this CoreWorkflowMetadata. # noqa: E501 + :rtype: CoreQualityOfService + """ + return self._quality_of_service + + @quality_of_service.setter + def quality_of_service(self, quality_of_service): + """Sets the quality_of_service of this CoreWorkflowMetadata. + + Indicates the runtime priority of workflow executions. # noqa: E501 + + :param quality_of_service: The quality_of_service of this CoreWorkflowMetadata. # noqa: E501 + :type: CoreQualityOfService + """ + + self._quality_of_service = quality_of_service + + @property + def on_failure(self): + """Gets the on_failure of this CoreWorkflowMetadata. # noqa: E501 + + Defines how the system should behave when a failure is detected in the workflow execution. # noqa: E501 + + :return: The on_failure of this CoreWorkflowMetadata. # noqa: E501 + :rtype: WorkflowMetadataOnFailurePolicy + """ + return self._on_failure + + @on_failure.setter + def on_failure(self, on_failure): + """Sets the on_failure of this CoreWorkflowMetadata. + + Defines how the system should behave when a failure is detected in the workflow execution. # noqa: E501 + + :param on_failure: The on_failure of this CoreWorkflowMetadata. # noqa: E501 + :type: WorkflowMetadataOnFailurePolicy + """ + + self._on_failure = on_failure + + @property + def tags(self): + """Gets the tags of this CoreWorkflowMetadata. # noqa: E501 + + + :return: The tags of this CoreWorkflowMetadata. # noqa: E501 + :rtype: dict(str, str) + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CoreWorkflowMetadata. + + + :param tags: The tags of this CoreWorkflowMetadata. # noqa: E501 + :type: dict(str, str) + """ + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata_defaults.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata_defaults.py new file mode 100644 index 0000000000..6f9762be88 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata_defaults.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreWorkflowMetadataDefaults(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'interruptible': 'bool' + } + + attribute_map = { + 'interruptible': 'interruptible' + } + + def __init__(self, interruptible=None): # noqa: E501 + """CoreWorkflowMetadataDefaults - a model defined in Swagger""" # noqa: E501 + + self._interruptible = None + self.discriminator = None + + if interruptible is not None: + self.interruptible = interruptible + + @property + def interruptible(self): + """Gets the interruptible of this CoreWorkflowMetadataDefaults. # noqa: E501 + + Whether child nodes of the workflow are interruptible. # noqa: E501 + + :return: The interruptible of this CoreWorkflowMetadataDefaults. # noqa: E501 + :rtype: bool + """ + return self._interruptible + + @interruptible.setter + def interruptible(self, interruptible): + """Sets the interruptible of this CoreWorkflowMetadataDefaults. + + Whether child nodes of the workflow are interruptible. # noqa: E501 + + :param interruptible: The interruptible of this CoreWorkflowMetadataDefaults. # noqa: E501 + :type: bool + """ + + self._interruptible = interruptible + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowMetadataDefaults, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowMetadataDefaults): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py new file mode 100644 index 0000000000..9d35249385 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class CoreWorkflowNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'launchplan_ref': 'CoreIdentifier', + 'sub_workflow_ref': 'CoreIdentifier' + } + + attribute_map = { + 'launchplan_ref': 'launchplan_ref', + 'sub_workflow_ref': 'sub_workflow_ref' + } + + def __init__(self, launchplan_ref=None, sub_workflow_ref=None): # noqa: E501 + """CoreWorkflowNode - a model defined in Swagger""" # noqa: E501 + + self._launchplan_ref = None + self._sub_workflow_ref = None + self.discriminator = None + + if launchplan_ref is not None: + self.launchplan_ref = launchplan_ref + if sub_workflow_ref is not None: + self.sub_workflow_ref = sub_workflow_ref + + @property + def launchplan_ref(self): + """Gets the launchplan_ref of this CoreWorkflowNode. # noqa: E501 + + A globally unique identifier for the launch plan. # noqa: E501 + + :return: The launchplan_ref of this CoreWorkflowNode. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._launchplan_ref + + @launchplan_ref.setter + def launchplan_ref(self, launchplan_ref): + """Sets the launchplan_ref of this CoreWorkflowNode. + + A globally unique identifier for the launch plan. # noqa: E501 + + :param launchplan_ref: The launchplan_ref of this CoreWorkflowNode. # noqa: E501 + :type: CoreIdentifier + """ + + self._launchplan_ref = launchplan_ref + + @property + def sub_workflow_ref(self): + """Gets the sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 + + + :return: The sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._sub_workflow_ref + + @sub_workflow_ref.setter + def sub_workflow_ref(self, sub_workflow_ref): + """Sets the sub_workflow_ref of this CoreWorkflowNode. + + + :param sub_workflow_ref: The sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 + :type: CoreIdentifier + """ + + self._sub_workflow_ref = sub_workflow_ref + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py new file mode 100644 index 0000000000..ead72237b9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py @@ -0,0 +1,290 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding import CoreBinding # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 +from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: F401,E501 +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata # noqa: F401,E501 +from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults # noqa: F401,E501 + + +class CoreWorkflowTemplate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'metadata': 'CoreWorkflowMetadata', + 'interface': 'CoreTypedInterface', + 'nodes': 'list[CoreNode]', + 'outputs': 'list[CoreBinding]', + 'failure_node': 'CoreNode', + 'metadata_defaults': 'CoreWorkflowMetadataDefaults' + } + + attribute_map = { + 'id': 'id', + 'metadata': 'metadata', + 'interface': 'interface', + 'nodes': 'nodes', + 'outputs': 'outputs', + 'failure_node': 'failure_node', + 'metadata_defaults': 'metadata_defaults' + } + + def __init__(self, id=None, metadata=None, interface=None, nodes=None, outputs=None, failure_node=None, metadata_defaults=None): # noqa: E501 + """CoreWorkflowTemplate - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._metadata = None + self._interface = None + self._nodes = None + self._outputs = None + self._failure_node = None + self._metadata_defaults = None + self.discriminator = None + + if id is not None: + self.id = id + if metadata is not None: + self.metadata = metadata + if interface is not None: + self.interface = interface + if nodes is not None: + self.nodes = nodes + if outputs is not None: + self.outputs = outputs + if failure_node is not None: + self.failure_node = failure_node + if metadata_defaults is not None: + self.metadata_defaults = metadata_defaults + + @property + def id(self): + """Gets the id of this CoreWorkflowTemplate. # noqa: E501 + + A globally unique identifier for the workflow. # noqa: E501 + + :return: The id of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CoreWorkflowTemplate. + + A globally unique identifier for the workflow. # noqa: E501 + + :param id: The id of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def metadata(self): + """Gets the metadata of this CoreWorkflowTemplate. # noqa: E501 + + Extra metadata about the workflow. # noqa: E501 + + :return: The metadata of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreWorkflowMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreWorkflowTemplate. + + Extra metadata about the workflow. # noqa: E501 + + :param metadata: The metadata of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreWorkflowMetadata + """ + + self._metadata = metadata + + @property + def interface(self): + """Gets the interface of this CoreWorkflowTemplate. # noqa: E501 + + Defines a strongly typed interface for the Workflow. This can include some optional parameters. # noqa: E501 + + :return: The interface of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreTypedInterface + """ + return self._interface + + @interface.setter + def interface(self, interface): + """Sets the interface of this CoreWorkflowTemplate. + + Defines a strongly typed interface for the Workflow. This can include some optional parameters. # noqa: E501 + + :param interface: The interface of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreTypedInterface + """ + + self._interface = interface + + @property + def nodes(self): + """Gets the nodes of this CoreWorkflowTemplate. # noqa: E501 + + A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. # noqa: E501 + + :return: The nodes of this CoreWorkflowTemplate. # noqa: E501 + :rtype: list[CoreNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this CoreWorkflowTemplate. + + A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. # noqa: E501 + + :param nodes: The nodes of this CoreWorkflowTemplate. # noqa: E501 + :type: list[CoreNode] + """ + + self._nodes = nodes + + @property + def outputs(self): + """Gets the outputs of this CoreWorkflowTemplate. # noqa: E501 + + A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. # noqa: E501 + + :return: The outputs of this CoreWorkflowTemplate. # noqa: E501 + :rtype: list[CoreBinding] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this CoreWorkflowTemplate. + + A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. # noqa: E501 + + :param outputs: The outputs of this CoreWorkflowTemplate. # noqa: E501 + :type: list[CoreBinding] + """ + + self._outputs = outputs + + @property + def failure_node(self): + """Gets the failure_node of this CoreWorkflowTemplate. # noqa: E501 + + +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named 'error' of type pb.lyft.flyte.core.Error. # noqa: E501 + + :return: The failure_node of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreNode + """ + return self._failure_node + + @failure_node.setter + def failure_node(self, failure_node): + """Sets the failure_node of this CoreWorkflowTemplate. + + +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named 'error' of type pb.lyft.flyte.core.Error. # noqa: E501 + + :param failure_node: The failure_node of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreNode + """ + + self._failure_node = failure_node + + @property + def metadata_defaults(self): + """Gets the metadata_defaults of this CoreWorkflowTemplate. # noqa: E501 + + + :return: The metadata_defaults of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreWorkflowMetadataDefaults + """ + return self._metadata_defaults + + @metadata_defaults.setter + def metadata_defaults(self, metadata_defaults): + """Sets the metadata_defaults of this CoreWorkflowTemplate. + + + :param metadata_defaults: The metadata_defaults of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreWorkflowMetadataDefaults + """ + + self._metadata_defaults = metadata_defaults + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowTemplate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/data_loading_config_literal_map_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/data_loading_config_literal_map_format.py new file mode 100644 index 0000000000..1606391004 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/data_loading_config_literal_map_format.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DataLoadingConfigLiteralMapFormat(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + JSON = "JSON" + YAML = "YAML" + PROTO = "PROTO" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """DataLoadingConfigLiteralMapFormat - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DataLoadingConfigLiteralMapFormat, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DataLoadingConfigLiteralMapFormat): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_external_resource_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_external_resource_info.py new file mode 100644 index 0000000000..e170aa4c0a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_external_resource_info.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: F401,E501 +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 +from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 + + +class EventExternalResourceInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'external_id': 'str', + 'index': 'int', + 'retry_attempt': 'int', + 'phase': 'CoreTaskExecutionPhase', + 'cache_status': 'CoreCatalogCacheStatus', + 'logs': 'list[CoreTaskLog]' + } + + attribute_map = { + 'external_id': 'external_id', + 'index': 'index', + 'retry_attempt': 'retry_attempt', + 'phase': 'phase', + 'cache_status': 'cache_status', + 'logs': 'logs' + } + + def __init__(self, external_id=None, index=None, retry_attempt=None, phase=None, cache_status=None, logs=None): # noqa: E501 + """EventExternalResourceInfo - a model defined in Swagger""" # noqa: E501 + + self._external_id = None + self._index = None + self._retry_attempt = None + self._phase = None + self._cache_status = None + self._logs = None + self.discriminator = None + + if external_id is not None: + self.external_id = external_id + if index is not None: + self.index = index + if retry_attempt is not None: + self.retry_attempt = retry_attempt + if phase is not None: + self.phase = phase + if cache_status is not None: + self.cache_status = cache_status + if logs is not None: + self.logs = logs + + @property + def external_id(self): + """Gets the external_id of this EventExternalResourceInfo. # noqa: E501 + + Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. # noqa: E501 + + :return: The external_id of this EventExternalResourceInfo. # noqa: E501 + :rtype: str + """ + return self._external_id + + @external_id.setter + def external_id(self, external_id): + """Sets the external_id of this EventExternalResourceInfo. + + Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. # noqa: E501 + + :param external_id: The external_id of this EventExternalResourceInfo. # noqa: E501 + :type: str + """ + + self._external_id = external_id + + @property + def index(self): + """Gets the index of this EventExternalResourceInfo. # noqa: E501 + + A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports. # noqa: E501 + + :return: The index of this EventExternalResourceInfo. # noqa: E501 + :rtype: int + """ + return self._index + + @index.setter + def index(self, index): + """Sets the index of this EventExternalResourceInfo. + + A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports. # noqa: E501 + + :param index: The index of this EventExternalResourceInfo. # noqa: E501 + :type: int + """ + + self._index = index + + @property + def retry_attempt(self): + """Gets the retry_attempt of this EventExternalResourceInfo. # noqa: E501 + + + :return: The retry_attempt of this EventExternalResourceInfo. # noqa: E501 + :rtype: int + """ + return self._retry_attempt + + @retry_attempt.setter + def retry_attempt(self, retry_attempt): + """Sets the retry_attempt of this EventExternalResourceInfo. + + + :param retry_attempt: The retry_attempt of this EventExternalResourceInfo. # noqa: E501 + :type: int + """ + + self._retry_attempt = retry_attempt + + @property + def phase(self): + """Gets the phase of this EventExternalResourceInfo. # noqa: E501 + + + :return: The phase of this EventExternalResourceInfo. # noqa: E501 + :rtype: CoreTaskExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this EventExternalResourceInfo. + + + :param phase: The phase of this EventExternalResourceInfo. # noqa: E501 + :type: CoreTaskExecutionPhase + """ + + self._phase = phase + + @property + def cache_status(self): + """Gets the cache_status of this EventExternalResourceInfo. # noqa: E501 + + Captures the status of caching for this external resource execution. # noqa: E501 + + :return: The cache_status of this EventExternalResourceInfo. # noqa: E501 + :rtype: CoreCatalogCacheStatus + """ + return self._cache_status + + @cache_status.setter + def cache_status(self, cache_status): + """Sets the cache_status of this EventExternalResourceInfo. + + Captures the status of caching for this external resource execution. # noqa: E501 + + :param cache_status: The cache_status of this EventExternalResourceInfo. # noqa: E501 + :type: CoreCatalogCacheStatus + """ + + self._cache_status = cache_status + + @property + def logs(self): + """Gets the logs of this EventExternalResourceInfo. # noqa: E501 + + + :return: The logs of this EventExternalResourceInfo. # noqa: E501 + :rtype: list[CoreTaskLog] + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this EventExternalResourceInfo. + + + :param logs: The logs of this EventExternalResourceInfo. # noqa: E501 + :type: list[CoreTaskLog] + """ + + self._logs = logs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventExternalResourceInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventExternalResourceInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py new file mode 100644 index 0000000000..c62cabff79 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py @@ -0,0 +1,662 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: F401,E501 +from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata # noqa: F401,E501 +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata # noqa: F401,E501 + + +class EventNodeExecutionEvent(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreNodeExecutionIdentifier', + 'producer_id': 'str', + 'phase': 'CoreNodeExecutionPhase', + 'occurred_at': 'datetime', + 'input_uri': 'str', + 'input_data': 'CoreLiteralMap', + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'output_data': 'CoreLiteralMap', + 'workflow_node_metadata': 'FlyteidleventWorkflowNodeMetadata', + 'task_node_metadata': 'FlyteidleventTaskNodeMetadata', + 'parent_task_metadata': 'EventParentTaskExecutionMetadata', + 'parent_node_metadata': 'EventParentNodeExecutionMetadata', + 'retry_group': 'str', + 'spec_node_id': 'str', + 'node_name': 'str', + 'event_version': 'int', + 'is_parent': 'bool', + 'is_dynamic': 'bool', + 'deck_uri': 'str', + 'reported_at': 'datetime' + } + + attribute_map = { + 'id': 'id', + 'producer_id': 'producer_id', + 'phase': 'phase', + 'occurred_at': 'occurred_at', + 'input_uri': 'input_uri', + 'input_data': 'input_data', + 'output_uri': 'output_uri', + 'error': 'error', + 'output_data': 'output_data', + 'workflow_node_metadata': 'workflow_node_metadata', + 'task_node_metadata': 'task_node_metadata', + 'parent_task_metadata': 'parent_task_metadata', + 'parent_node_metadata': 'parent_node_metadata', + 'retry_group': 'retry_group', + 'spec_node_id': 'spec_node_id', + 'node_name': 'node_name', + 'event_version': 'event_version', + 'is_parent': 'is_parent', + 'is_dynamic': 'is_dynamic', + 'deck_uri': 'deck_uri', + 'reported_at': 'reported_at' + } + + def __init__(self, id=None, producer_id=None, phase=None, occurred_at=None, input_uri=None, input_data=None, output_uri=None, error=None, output_data=None, workflow_node_metadata=None, task_node_metadata=None, parent_task_metadata=None, parent_node_metadata=None, retry_group=None, spec_node_id=None, node_name=None, event_version=None, is_parent=None, is_dynamic=None, deck_uri=None, reported_at=None): # noqa: E501 + """EventNodeExecutionEvent - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._producer_id = None + self._phase = None + self._occurred_at = None + self._input_uri = None + self._input_data = None + self._output_uri = None + self._error = None + self._output_data = None + self._workflow_node_metadata = None + self._task_node_metadata = None + self._parent_task_metadata = None + self._parent_node_metadata = None + self._retry_group = None + self._spec_node_id = None + self._node_name = None + self._event_version = None + self._is_parent = None + self._is_dynamic = None + self._deck_uri = None + self._reported_at = None + self.discriminator = None + + if id is not None: + self.id = id + if producer_id is not None: + self.producer_id = producer_id + if phase is not None: + self.phase = phase + if occurred_at is not None: + self.occurred_at = occurred_at + if input_uri is not None: + self.input_uri = input_uri + if input_data is not None: + self.input_data = input_data + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if output_data is not None: + self.output_data = output_data + if workflow_node_metadata is not None: + self.workflow_node_metadata = workflow_node_metadata + if task_node_metadata is not None: + self.task_node_metadata = task_node_metadata + if parent_task_metadata is not None: + self.parent_task_metadata = parent_task_metadata + if parent_node_metadata is not None: + self.parent_node_metadata = parent_node_metadata + if retry_group is not None: + self.retry_group = retry_group + if spec_node_id is not None: + self.spec_node_id = spec_node_id + if node_name is not None: + self.node_name = node_name + if event_version is not None: + self.event_version = event_version + if is_parent is not None: + self.is_parent = is_parent + if is_dynamic is not None: + self.is_dynamic = is_dynamic + if deck_uri is not None: + self.deck_uri = deck_uri + if reported_at is not None: + self.reported_at = reported_at + + @property + def id(self): + """Gets the id of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The id of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this EventNodeExecutionEvent. + + + :param id: The id of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._id = id + + @property + def producer_id(self): + """Gets the producer_id of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The producer_id of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._producer_id + + @producer_id.setter + def producer_id(self, producer_id): + """Sets the producer_id of this EventNodeExecutionEvent. + + + :param producer_id: The producer_id of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._producer_id = producer_id + + @property + def phase(self): + """Gets the phase of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The phase of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreNodeExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this EventNodeExecutionEvent. + + + :param phase: The phase of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreNodeExecutionPhase + """ + + self._phase = phase + + @property + def occurred_at(self): + """Gets the occurred_at of this EventNodeExecutionEvent. # noqa: E501 + + This timestamp represents when the original event occurred, it is generated by the executor of the node. # noqa: E501 + + :return: The occurred_at of this EventNodeExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this EventNodeExecutionEvent. + + This timestamp represents when the original event occurred, it is generated by the executor of the node. # noqa: E501 + + :param occurred_at: The occurred_at of this EventNodeExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def input_uri(self): + """Gets the input_uri of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The input_uri of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this EventNodeExecutionEvent. + + + :param input_uri: The input_uri of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def input_data(self): + """Gets the input_data of this EventNodeExecutionEvent. # noqa: E501 + + Raw input data consumed by this node execution. # noqa: E501 + + :return: The input_data of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._input_data + + @input_data.setter + def input_data(self, input_data): + """Sets the input_data of this EventNodeExecutionEvent. + + Raw input data consumed by this node execution. # noqa: E501 + + :param input_data: The input_data of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreLiteralMap + """ + + self._input_data = input_data + + @property + def output_uri(self): + """Gets the output_uri of this EventNodeExecutionEvent. # noqa: E501 + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The output_uri of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this EventNodeExecutionEvent. + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param output_uri: The output_uri of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The error of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this EventNodeExecutionEvent. + + + :param error: The error of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def output_data(self): + """Gets the output_data of this EventNodeExecutionEvent. # noqa: E501 + + Raw output data produced by this node execution. # noqa: E501 + + :return: The output_data of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._output_data + + @output_data.setter + def output_data(self, output_data): + """Sets the output_data of this EventNodeExecutionEvent. + + Raw output data produced by this node execution. # noqa: E501 + + :param output_data: The output_data of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreLiteralMap + """ + + self._output_data = output_data + + @property + def workflow_node_metadata(self): + """Gets the workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :rtype: FlyteidleventWorkflowNodeMetadata + """ + return self._workflow_node_metadata + + @workflow_node_metadata.setter + def workflow_node_metadata(self, workflow_node_metadata): + """Sets the workflow_node_metadata of this EventNodeExecutionEvent. + + + :param workflow_node_metadata: The workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :type: FlyteidleventWorkflowNodeMetadata + """ + + self._workflow_node_metadata = workflow_node_metadata + + @property + def task_node_metadata(self): + """Gets the task_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The task_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :rtype: FlyteidleventTaskNodeMetadata + """ + return self._task_node_metadata + + @task_node_metadata.setter + def task_node_metadata(self, task_node_metadata): + """Sets the task_node_metadata of this EventNodeExecutionEvent. + + + :param task_node_metadata: The task_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :type: FlyteidleventTaskNodeMetadata + """ + + self._task_node_metadata = task_node_metadata + + @property + def parent_task_metadata(self): + """Gets the parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 + + [To be deprecated] Specifies which task (if any) launched this node. # noqa: E501 + + :return: The parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 + :rtype: EventParentTaskExecutionMetadata + """ + return self._parent_task_metadata + + @parent_task_metadata.setter + def parent_task_metadata(self, parent_task_metadata): + """Sets the parent_task_metadata of this EventNodeExecutionEvent. + + [To be deprecated] Specifies which task (if any) launched this node. # noqa: E501 + + :param parent_task_metadata: The parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 + :type: EventParentTaskExecutionMetadata + """ + + self._parent_task_metadata = parent_task_metadata + + @property + def parent_node_metadata(self): + """Gets the parent_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + + Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. # noqa: E501 + + :return: The parent_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :rtype: EventParentNodeExecutionMetadata + """ + return self._parent_node_metadata + + @parent_node_metadata.setter + def parent_node_metadata(self, parent_node_metadata): + """Sets the parent_node_metadata of this EventNodeExecutionEvent. + + Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. # noqa: E501 + + :param parent_node_metadata: The parent_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :type: EventParentNodeExecutionMetadata + """ + + self._parent_node_metadata = parent_node_metadata + + @property + def retry_group(self): + """Gets the retry_group of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The retry_group of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._retry_group + + @retry_group.setter + def retry_group(self, retry_group): + """Sets the retry_group of this EventNodeExecutionEvent. + + + :param retry_group: The retry_group of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._retry_group = retry_group + + @property + def spec_node_id(self): + """Gets the spec_node_id of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The spec_node_id of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._spec_node_id + + @spec_node_id.setter + def spec_node_id(self, spec_node_id): + """Sets the spec_node_id of this EventNodeExecutionEvent. + + + :param spec_node_id: The spec_node_id of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._spec_node_id = spec_node_id + + @property + def node_name(self): + """Gets the node_name of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The node_name of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._node_name + + @node_name.setter + def node_name(self, node_name): + """Sets the node_name of this EventNodeExecutionEvent. + + + :param node_name: The node_name of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._node_name = node_name + + @property + def event_version(self): + """Gets the event_version of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The event_version of this EventNodeExecutionEvent. # noqa: E501 + :rtype: int + """ + return self._event_version + + @event_version.setter + def event_version(self, event_version): + """Sets the event_version of this EventNodeExecutionEvent. + + + :param event_version: The event_version of this EventNodeExecutionEvent. # noqa: E501 + :type: int + """ + + self._event_version = event_version + + @property + def is_parent(self): + """Gets the is_parent of this EventNodeExecutionEvent. # noqa: E501 + + Whether this node launched a subworkflow. # noqa: E501 + + :return: The is_parent of this EventNodeExecutionEvent. # noqa: E501 + :rtype: bool + """ + return self._is_parent + + @is_parent.setter + def is_parent(self, is_parent): + """Sets the is_parent of this EventNodeExecutionEvent. + + Whether this node launched a subworkflow. # noqa: E501 + + :param is_parent: The is_parent of this EventNodeExecutionEvent. # noqa: E501 + :type: bool + """ + + self._is_parent = is_parent + + @property + def is_dynamic(self): + """Gets the is_dynamic of this EventNodeExecutionEvent. # noqa: E501 + + Whether this node yielded a dynamic workflow. # noqa: E501 + + :return: The is_dynamic of this EventNodeExecutionEvent. # noqa: E501 + :rtype: bool + """ + return self._is_dynamic + + @is_dynamic.setter + def is_dynamic(self, is_dynamic): + """Sets the is_dynamic of this EventNodeExecutionEvent. + + Whether this node yielded a dynamic workflow. # noqa: E501 + + :param is_dynamic: The is_dynamic of this EventNodeExecutionEvent. # noqa: E501 + :type: bool + """ + + self._is_dynamic = is_dynamic + + @property + def deck_uri(self): + """Gets the deck_uri of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The deck_uri of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._deck_uri + + @deck_uri.setter + def deck_uri(self, deck_uri): + """Sets the deck_uri of this EventNodeExecutionEvent. + + + :param deck_uri: The deck_uri of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._deck_uri = deck_uri + + @property + def reported_at(self): + """Gets the reported_at of this EventNodeExecutionEvent. # noqa: E501 + + This timestamp represents the instant when the event was reported by the executing framework. For example, when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when literal inputs are initially copied. The event however will not be sent until after the copy completes. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 + + :return: The reported_at of this EventNodeExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._reported_at + + @reported_at.setter + def reported_at(self, reported_at): + """Sets the reported_at of this EventNodeExecutionEvent. + + This timestamp represents the instant when the event was reported by the executing framework. For example, when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when literal inputs are initially copied. The event however will not be sent until after the copy completes. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 + + :param reported_at: The reported_at of this EventNodeExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._reported_at = reported_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventNodeExecutionEvent, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventNodeExecutionEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_node_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_node_execution_metadata.py new file mode 100644 index 0000000000..8ca2ec7492 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_node_execution_metadata.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class EventParentNodeExecutionMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_id': 'str' + } + + attribute_map = { + 'node_id': 'node_id' + } + + def __init__(self, node_id=None): # noqa: E501 + """EventParentNodeExecutionMetadata - a model defined in Swagger""" # noqa: E501 + + self._node_id = None + self.discriminator = None + + if node_id is not None: + self.node_id = node_id + + @property + def node_id(self): + """Gets the node_id of this EventParentNodeExecutionMetadata. # noqa: E501 + + + :return: The node_id of this EventParentNodeExecutionMetadata. # noqa: E501 + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this EventParentNodeExecutionMetadata. + + + :param node_id: The node_id of this EventParentNodeExecutionMetadata. # noqa: E501 + :type: str + """ + + self._node_id = node_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventParentNodeExecutionMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventParentNodeExecutionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py new file mode 100644 index 0000000000..9d640fcd1f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 + + +class EventParentTaskExecutionMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreTaskExecutionIdentifier' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """EventParentTaskExecutionMetadata - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this EventParentTaskExecutionMetadata. # noqa: E501 + + + :return: The id of this EventParentTaskExecutionMetadata. # noqa: E501 + :rtype: CoreTaskExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this EventParentTaskExecutionMetadata. + + + :param id: The id of this EventParentTaskExecutionMetadata. # noqa: E501 + :type: CoreTaskExecutionIdentifier + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventParentTaskExecutionMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventParentTaskExecutionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_resource_pool_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_resource_pool_info.py new file mode 100644 index 0000000000..f15bb90a1a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_resource_pool_info.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class EventResourcePoolInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'allocation_token': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'allocation_token': 'allocation_token', + 'namespace': 'namespace' + } + + def __init__(self, allocation_token=None, namespace=None): # noqa: E501 + """EventResourcePoolInfo - a model defined in Swagger""" # noqa: E501 + + self._allocation_token = None + self._namespace = None + self.discriminator = None + + if allocation_token is not None: + self.allocation_token = allocation_token + if namespace is not None: + self.namespace = namespace + + @property + def allocation_token(self): + """Gets the allocation_token of this EventResourcePoolInfo. # noqa: E501 + + Unique resource ID used to identify this execution when allocating a token. # noqa: E501 + + :return: The allocation_token of this EventResourcePoolInfo. # noqa: E501 + :rtype: str + """ + return self._allocation_token + + @allocation_token.setter + def allocation_token(self, allocation_token): + """Sets the allocation_token of this EventResourcePoolInfo. + + Unique resource ID used to identify this execution when allocating a token. # noqa: E501 + + :param allocation_token: The allocation_token of this EventResourcePoolInfo. # noqa: E501 + :type: str + """ + + self._allocation_token = allocation_token + + @property + def namespace(self): + """Gets the namespace of this EventResourcePoolInfo. # noqa: E501 + + Namespace under which this task execution requested an allocation token. # noqa: E501 + + :return: The namespace of this EventResourcePoolInfo. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this EventResourcePoolInfo. + + Namespace under which this task execution requested an allocation token. # noqa: E501 + + :param namespace: The namespace of this EventResourcePoolInfo. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventResourcePoolInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventResourcePoolInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py new file mode 100644 index 0000000000..d80680d7d8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py @@ -0,0 +1,618 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 +from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 +from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class EventTaskExecutionEvent(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_id': 'CoreIdentifier', + 'parent_node_execution_id': 'CoreNodeExecutionIdentifier', + 'retry_attempt': 'int', + 'phase': 'CoreTaskExecutionPhase', + 'producer_id': 'str', + 'logs': 'list[CoreTaskLog]', + 'occurred_at': 'datetime', + 'input_uri': 'str', + 'input_data': 'CoreLiteralMap', + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'output_data': 'CoreLiteralMap', + 'custom_info': 'ProtobufStruct', + 'phase_version': 'int', + 'reason': 'str', + 'task_type': 'str', + 'metadata': 'FlyteidleventTaskExecutionMetadata', + 'event_version': 'int', + 'reported_at': 'datetime' + } + + attribute_map = { + 'task_id': 'task_id', + 'parent_node_execution_id': 'parent_node_execution_id', + 'retry_attempt': 'retry_attempt', + 'phase': 'phase', + 'producer_id': 'producer_id', + 'logs': 'logs', + 'occurred_at': 'occurred_at', + 'input_uri': 'input_uri', + 'input_data': 'input_data', + 'output_uri': 'output_uri', + 'error': 'error', + 'output_data': 'output_data', + 'custom_info': 'custom_info', + 'phase_version': 'phase_version', + 'reason': 'reason', + 'task_type': 'task_type', + 'metadata': 'metadata', + 'event_version': 'event_version', + 'reported_at': 'reported_at' + } + + def __init__(self, task_id=None, parent_node_execution_id=None, retry_attempt=None, phase=None, producer_id=None, logs=None, occurred_at=None, input_uri=None, input_data=None, output_uri=None, error=None, output_data=None, custom_info=None, phase_version=None, reason=None, task_type=None, metadata=None, event_version=None, reported_at=None): # noqa: E501 + """EventTaskExecutionEvent - a model defined in Swagger""" # noqa: E501 + + self._task_id = None + self._parent_node_execution_id = None + self._retry_attempt = None + self._phase = None + self._producer_id = None + self._logs = None + self._occurred_at = None + self._input_uri = None + self._input_data = None + self._output_uri = None + self._error = None + self._output_data = None + self._custom_info = None + self._phase_version = None + self._reason = None + self._task_type = None + self._metadata = None + self._event_version = None + self._reported_at = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + if parent_node_execution_id is not None: + self.parent_node_execution_id = parent_node_execution_id + if retry_attempt is not None: + self.retry_attempt = retry_attempt + if phase is not None: + self.phase = phase + if producer_id is not None: + self.producer_id = producer_id + if logs is not None: + self.logs = logs + if occurred_at is not None: + self.occurred_at = occurred_at + if input_uri is not None: + self.input_uri = input_uri + if input_data is not None: + self.input_data = input_data + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if output_data is not None: + self.output_data = output_data + if custom_info is not None: + self.custom_info = custom_info + if phase_version is not None: + self.phase_version = phase_version + if reason is not None: + self.reason = reason + if task_type is not None: + self.task_type = task_type + if metadata is not None: + self.metadata = metadata + if event_version is not None: + self.event_version = event_version + if reported_at is not None: + self.reported_at = reported_at + + @property + def task_id(self): + """Gets the task_id of this EventTaskExecutionEvent. # noqa: E501 + + ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. # noqa: E501 + + :return: The task_id of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this EventTaskExecutionEvent. + + ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. # noqa: E501 + + :param task_id: The task_id of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreIdentifier + """ + + self._task_id = task_id + + @property + def parent_node_execution_id(self): + """Gets the parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._parent_node_execution_id + + @parent_node_execution_id.setter + def parent_node_execution_id(self, parent_node_execution_id): + """Sets the parent_node_execution_id of this EventTaskExecutionEvent. + + + :param parent_node_execution_id: The parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._parent_node_execution_id = parent_node_execution_id + + @property + def retry_attempt(self): + """Gets the retry_attempt of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The retry_attempt of this EventTaskExecutionEvent. # noqa: E501 + :rtype: int + """ + return self._retry_attempt + + @retry_attempt.setter + def retry_attempt(self, retry_attempt): + """Sets the retry_attempt of this EventTaskExecutionEvent. + + + :param retry_attempt: The retry_attempt of this EventTaskExecutionEvent. # noqa: E501 + :type: int + """ + + self._retry_attempt = retry_attempt + + @property + def phase(self): + """Gets the phase of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The phase of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreTaskExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this EventTaskExecutionEvent. + + + :param phase: The phase of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreTaskExecutionPhase + """ + + self._phase = phase + + @property + def producer_id(self): + """Gets the producer_id of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The producer_id of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._producer_id + + @producer_id.setter + def producer_id(self, producer_id): + """Sets the producer_id of this EventTaskExecutionEvent. + + + :param producer_id: The producer_id of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._producer_id = producer_id + + @property + def logs(self): + """Gets the logs of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The logs of this EventTaskExecutionEvent. # noqa: E501 + :rtype: list[CoreTaskLog] + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this EventTaskExecutionEvent. + + + :param logs: The logs of this EventTaskExecutionEvent. # noqa: E501 + :type: list[CoreTaskLog] + """ + + self._logs = logs + + @property + def occurred_at(self): + """Gets the occurred_at of this EventTaskExecutionEvent. # noqa: E501 + + This timestamp represents when the original event occurred, it is generated by the executor of the task. # noqa: E501 + + :return: The occurred_at of this EventTaskExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this EventTaskExecutionEvent. + + This timestamp represents when the original event occurred, it is generated by the executor of the task. # noqa: E501 + + :param occurred_at: The occurred_at of this EventTaskExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def input_uri(self): + """Gets the input_uri of this EventTaskExecutionEvent. # noqa: E501 + + URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The input_uri of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this EventTaskExecutionEvent. + + URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param input_uri: The input_uri of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def input_data(self): + """Gets the input_data of this EventTaskExecutionEvent. # noqa: E501 + + Raw input data consumed by this task execution. # noqa: E501 + + :return: The input_data of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._input_data + + @input_data.setter + def input_data(self, input_data): + """Sets the input_data of this EventTaskExecutionEvent. + + Raw input data consumed by this task execution. # noqa: E501 + + :param input_data: The input_data of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreLiteralMap + """ + + self._input_data = input_data + + @property + def output_uri(self): + """Gets the output_uri of this EventTaskExecutionEvent. # noqa: E501 + + URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The output_uri of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this EventTaskExecutionEvent. + + URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param output_uri: The output_uri of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The error of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this EventTaskExecutionEvent. + + + :param error: The error of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def output_data(self): + """Gets the output_data of this EventTaskExecutionEvent. # noqa: E501 + + Raw output data produced by this task execution. # noqa: E501 + + :return: The output_data of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._output_data + + @output_data.setter + def output_data(self, output_data): + """Sets the output_data of this EventTaskExecutionEvent. + + Raw output data produced by this task execution. # noqa: E501 + + :param output_data: The output_data of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreLiteralMap + """ + + self._output_data = output_data + + @property + def custom_info(self): + """Gets the custom_info of this EventTaskExecutionEvent. # noqa: E501 + + Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. # noqa: E501 + + :return: The custom_info of this EventTaskExecutionEvent. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._custom_info + + @custom_info.setter + def custom_info(self, custom_info): + """Sets the custom_info of this EventTaskExecutionEvent. + + Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. # noqa: E501 + + :param custom_info: The custom_info of this EventTaskExecutionEvent. # noqa: E501 + :type: ProtobufStruct + """ + + self._custom_info = custom_info + + @property + def phase_version(self): + """Gets the phase_version of this EventTaskExecutionEvent. # noqa: E501 + + Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. # noqa: E501 + + :return: The phase_version of this EventTaskExecutionEvent. # noqa: E501 + :rtype: int + """ + return self._phase_version + + @phase_version.setter + def phase_version(self, phase_version): + """Sets the phase_version of this EventTaskExecutionEvent. + + Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. # noqa: E501 + + :param phase_version: The phase_version of this EventTaskExecutionEvent. # noqa: E501 + :type: int + """ + + self._phase_version = phase_version + + @property + def reason(self): + """Gets the reason of this EventTaskExecutionEvent. # noqa: E501 + + An optional explanation for the phase transition. # noqa: E501 + + :return: The reason of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this EventTaskExecutionEvent. + + An optional explanation for the phase transition. # noqa: E501 + + :param reason: The reason of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def task_type(self): + """Gets the task_type of this EventTaskExecutionEvent. # noqa: E501 + + A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc. # noqa: E501 + + :return: The task_type of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._task_type + + @task_type.setter + def task_type(self, task_type): + """Sets the task_type of this EventTaskExecutionEvent. + + A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc. # noqa: E501 + + :param task_type: The task_type of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._task_type = task_type + + @property + def metadata(self): + """Gets the metadata of this EventTaskExecutionEvent. # noqa: E501 + + Metadata around how a task was executed. # noqa: E501 + + :return: The metadata of this EventTaskExecutionEvent. # noqa: E501 + :rtype: FlyteidleventTaskExecutionMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this EventTaskExecutionEvent. + + Metadata around how a task was executed. # noqa: E501 + + :param metadata: The metadata of this EventTaskExecutionEvent. # noqa: E501 + :type: FlyteidleventTaskExecutionMetadata + """ + + self._metadata = metadata + + @property + def event_version(self): + """Gets the event_version of this EventTaskExecutionEvent. # noqa: E501 + + The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 + + :return: The event_version of this EventTaskExecutionEvent. # noqa: E501 + :rtype: int + """ + return self._event_version + + @event_version.setter + def event_version(self, event_version): + """Sets the event_version of this EventTaskExecutionEvent. + + The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 + + :param event_version: The event_version of this EventTaskExecutionEvent. # noqa: E501 + :type: int + """ + + self._event_version = event_version + + @property + def reported_at(self): + """Gets the reported_at of this EventTaskExecutionEvent. # noqa: E501 + + This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 + + :return: The reported_at of this EventTaskExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._reported_at + + @reported_at.setter + def reported_at(self, reported_at): + """Sets the reported_at of this EventTaskExecutionEvent. + + This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 + + :param reported_at: The reported_at of this EventTaskExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._reported_at = reported_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventTaskExecutionEvent, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventTaskExecutionEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py new file mode 100644 index 0000000000..97331dfbbb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 + + +class EventWorkflowExecutionEvent(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_id': 'CoreWorkflowExecutionIdentifier', + 'producer_id': 'str', + 'phase': 'CoreWorkflowExecutionPhase', + 'occurred_at': 'datetime', + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'output_data': 'CoreLiteralMap' + } + + attribute_map = { + 'execution_id': 'execution_id', + 'producer_id': 'producer_id', + 'phase': 'phase', + 'occurred_at': 'occurred_at', + 'output_uri': 'output_uri', + 'error': 'error', + 'output_data': 'output_data' + } + + def __init__(self, execution_id=None, producer_id=None, phase=None, occurred_at=None, output_uri=None, error=None, output_data=None): # noqa: E501 + """EventWorkflowExecutionEvent - a model defined in Swagger""" # noqa: E501 + + self._execution_id = None + self._producer_id = None + self._phase = None + self._occurred_at = None + self._output_uri = None + self._error = None + self._output_data = None + self.discriminator = None + + if execution_id is not None: + self.execution_id = execution_id + if producer_id is not None: + self.producer_id = producer_id + if phase is not None: + self.phase = phase + if occurred_at is not None: + self.occurred_at = occurred_at + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if output_data is not None: + self.output_data = output_data + + @property + def execution_id(self): + """Gets the execution_id of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The execution_id of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this EventWorkflowExecutionEvent. + + + :param execution_id: The execution_id of this EventWorkflowExecutionEvent. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + @property + def producer_id(self): + """Gets the producer_id of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The producer_id of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._producer_id + + @producer_id.setter + def producer_id(self, producer_id): + """Sets the producer_id of this EventWorkflowExecutionEvent. + + + :param producer_id: The producer_id of this EventWorkflowExecutionEvent. # noqa: E501 + :type: str + """ + + self._producer_id = producer_id + + @property + def phase(self): + """Gets the phase of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The phase of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: CoreWorkflowExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this EventWorkflowExecutionEvent. + + + :param phase: The phase of this EventWorkflowExecutionEvent. # noqa: E501 + :type: CoreWorkflowExecutionPhase + """ + + self._phase = phase + + @property + def occurred_at(self): + """Gets the occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 + + This timestamp represents when the original event occurred, it is generated by the executor of the workflow. # noqa: E501 + + :return: The occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this EventWorkflowExecutionEvent. + + This timestamp represents when the original event occurred, it is generated by the executor of the workflow. # noqa: E501 + + :param occurred_at: The occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def output_uri(self): + """Gets the output_uri of this EventWorkflowExecutionEvent. # noqa: E501 + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The output_uri of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this EventWorkflowExecutionEvent. + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param output_uri: The output_uri of this EventWorkflowExecutionEvent. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The error of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this EventWorkflowExecutionEvent. + + + :param error: The error of this EventWorkflowExecutionEvent. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def output_data(self): + """Gets the output_data of this EventWorkflowExecutionEvent. # noqa: E501 + + Raw output data produced by this workflow execution. # noqa: E501 + + :return: The output_data of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._output_data + + @output_data.setter + def output_data(self, output_data): + """Sets the output_data of this EventWorkflowExecutionEvent. + + Raw output data produced by this workflow execution. # noqa: E501 + + :param output_data: The output_data of this EventWorkflowExecutionEvent. # noqa: E501 + :type: CoreLiteralMap + """ + + self._output_data = output_data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventWorkflowExecutionEvent, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventWorkflowExecutionEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_error_error_kind.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_error_error_kind.py new file mode 100644 index 0000000000..91504474a9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_error_error_kind.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ExecutionErrorErrorKind(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN = "UNKNOWN" + USER = "USER" + SYSTEM = "SYSTEM" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ExecutionErrorErrorKind - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ExecutionErrorErrorKind, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExecutionErrorErrorKind): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py new file mode 100644 index 0000000000..cca95359f2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ExecutionMetadataExecutionMode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + MANUAL = "MANUAL" + SCHEDULED = "SCHEDULED" + SYSTEM = "SYSTEM" + RELAUNCH = "RELAUNCH" + CHILD_WORKFLOW = "CHILD_WORKFLOW" + RECOVERED = "RECOVERED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ExecutionMetadataExecutionMode - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ExecutionMetadataExecutionMode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExecutionMetadataExecutionMode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_dynamic_workflow_node_metadata.py new file mode 100644 index 0000000000..44dfceb5fc --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_dynamic_workflow_node_metadata.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class FlyteidladminDynamicWorkflowNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'compiled_workflow': 'CoreCompiledWorkflowClosure', + 'dynamic_job_spec_uri': 'str' + } + + attribute_map = { + 'id': 'id', + 'compiled_workflow': 'compiled_workflow', + 'dynamic_job_spec_uri': 'dynamic_job_spec_uri' + } + + def __init__(self, id=None, compiled_workflow=None, dynamic_job_spec_uri=None): # noqa: E501 + """FlyteidladminDynamicWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._compiled_workflow = None + self._dynamic_job_spec_uri = None + self.discriminator = None + + if id is not None: + self.id = id + if compiled_workflow is not None: + self.compiled_workflow = compiled_workflow + if dynamic_job_spec_uri is not None: + self.dynamic_job_spec_uri = dynamic_job_spec_uri + + @property + def id(self): + """Gets the id of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + + id represents the unique identifier of the workflow. # noqa: E501 + + :return: The id of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FlyteidladminDynamicWorkflowNodeMetadata. + + id represents the unique identifier of the workflow. # noqa: E501 + + :param id: The id of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def compiled_workflow(self): + """Gets the compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + + Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 + + :return: The compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreCompiledWorkflowClosure + """ + return self._compiled_workflow + + @compiled_workflow.setter + def compiled_workflow(self, compiled_workflow): + """Sets the compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. + + Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 + + :param compiled_workflow: The compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + :type: CoreCompiledWorkflowClosure + """ + + self._compiled_workflow = compiled_workflow + + @property + def dynamic_job_spec_uri(self): + """Gets the dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + + dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 + + :return: The dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._dynamic_job_spec_uri + + @dynamic_job_spec_uri.setter + def dynamic_job_spec_uri(self, dynamic_job_spec_uri): + """Sets the dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. + + dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 + + :param dynamic_job_spec_uri: The dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 + :type: str + """ + + self._dynamic_job_spec_uri = dynamic_job_spec_uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminDynamicWorkflowNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminDynamicWorkflowNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py new file mode 100644 index 0000000000..f1c1d0cb72 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure # noqa: F401,E501 +from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 + + +class FlyteidladminNodeExecution(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreNodeExecutionIdentifier', + 'input_uri': 'str', + 'closure': 'AdminNodeExecutionClosure', + 'metadata': 'AdminNodeExecutionMetaData' + } + + attribute_map = { + 'id': 'id', + 'input_uri': 'input_uri', + 'closure': 'closure', + 'metadata': 'metadata' + } + + def __init__(self, id=None, input_uri=None, closure=None, metadata=None): # noqa: E501 + """FlyteidladminNodeExecution - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._input_uri = None + self._closure = None + self._metadata = None + self.discriminator = None + + if id is not None: + self.id = id + if input_uri is not None: + self.input_uri = input_uri + if closure is not None: + self.closure = closure + if metadata is not None: + self.metadata = metadata + + @property + def id(self): + """Gets the id of this FlyteidladminNodeExecution. # noqa: E501 + + Uniquely identifies an individual node execution. # noqa: E501 + + :return: The id of this FlyteidladminNodeExecution. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FlyteidladminNodeExecution. + + Uniquely identifies an individual node execution. # noqa: E501 + + :param id: The id of this FlyteidladminNodeExecution. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._id = id + + @property + def input_uri(self): + """Gets the input_uri of this FlyteidladminNodeExecution. # noqa: E501 + + Path to remote data store where input blob is stored. # noqa: E501 + + :return: The input_uri of this FlyteidladminNodeExecution. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this FlyteidladminNodeExecution. + + Path to remote data store where input blob is stored. # noqa: E501 + + :param input_uri: The input_uri of this FlyteidladminNodeExecution. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def closure(self): + """Gets the closure of this FlyteidladminNodeExecution. # noqa: E501 + + Computed results associated with this node execution. # noqa: E501 + + :return: The closure of this FlyteidladminNodeExecution. # noqa: E501 + :rtype: AdminNodeExecutionClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this FlyteidladminNodeExecution. + + Computed results associated with this node execution. # noqa: E501 + + :param closure: The closure of this FlyteidladminNodeExecution. # noqa: E501 + :type: AdminNodeExecutionClosure + """ + + self._closure = closure + + @property + def metadata(self): + """Gets the metadata of this FlyteidladminNodeExecution. # noqa: E501 + + + :return: The metadata of this FlyteidladminNodeExecution. # noqa: E501 + :rtype: AdminNodeExecutionMetaData + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this FlyteidladminNodeExecution. + + + :param metadata: The metadata of this FlyteidladminNodeExecution. # noqa: E501 + :type: AdminNodeExecutionMetaData + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminNodeExecution, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminNodeExecution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_request.py new file mode 100644 index 0000000000..4fa700a481 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_request.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task_spec import AdminTaskSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class FlyteidladminTaskCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminTaskSpec' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec' + } + + def __init__(self, id=None, spec=None): # noqa: E501 + """FlyteidladminTaskCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + + @property + def id(self): + """Gets the id of this FlyteidladminTaskCreateRequest. # noqa: E501 + + + :return: The id of this FlyteidladminTaskCreateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FlyteidladminTaskCreateRequest. + + + :param id: The id of this FlyteidladminTaskCreateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this FlyteidladminTaskCreateRequest. # noqa: E501 + + + :return: The spec of this FlyteidladminTaskCreateRequest. # noqa: E501 + :rtype: AdminTaskSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this FlyteidladminTaskCreateRequest. + + + :param spec: The spec of this FlyteidladminTaskCreateRequest. # noqa: E501 + :type: AdminTaskSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminTaskCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminTaskCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_response.py new file mode 100644 index 0000000000..00389aca08 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FlyteidladminTaskCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """FlyteidladminTaskCreateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminTaskCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminTaskCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py new file mode 100644 index 0000000000..bbb30485c7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure # noqa: F401,E501 +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 + + +class FlyteidladminTaskExecution(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreTaskExecutionIdentifier', + 'input_uri': 'str', + 'closure': 'AdminTaskExecutionClosure', + 'is_parent': 'bool' + } + + attribute_map = { + 'id': 'id', + 'input_uri': 'input_uri', + 'closure': 'closure', + 'is_parent': 'is_parent' + } + + def __init__(self, id=None, input_uri=None, closure=None, is_parent=None): # noqa: E501 + """FlyteidladminTaskExecution - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._input_uri = None + self._closure = None + self._is_parent = None + self.discriminator = None + + if id is not None: + self.id = id + if input_uri is not None: + self.input_uri = input_uri + if closure is not None: + self.closure = closure + if is_parent is not None: + self.is_parent = is_parent + + @property + def id(self): + """Gets the id of this FlyteidladminTaskExecution. # noqa: E501 + + Unique identifier for the task execution. # noqa: E501 + + :return: The id of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: CoreTaskExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FlyteidladminTaskExecution. + + Unique identifier for the task execution. # noqa: E501 + + :param id: The id of this FlyteidladminTaskExecution. # noqa: E501 + :type: CoreTaskExecutionIdentifier + """ + + self._id = id + + @property + def input_uri(self): + """Gets the input_uri of this FlyteidladminTaskExecution. # noqa: E501 + + Path to remote data store where input blob is stored. # noqa: E501 + + :return: The input_uri of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this FlyteidladminTaskExecution. + + Path to remote data store where input blob is stored. # noqa: E501 + + :param input_uri: The input_uri of this FlyteidladminTaskExecution. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def closure(self): + """Gets the closure of this FlyteidladminTaskExecution. # noqa: E501 + + Task execution details and results. # noqa: E501 + + :return: The closure of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: AdminTaskExecutionClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this FlyteidladminTaskExecution. + + Task execution details and results. # noqa: E501 + + :param closure: The closure of this FlyteidladminTaskExecution. # noqa: E501 + :type: AdminTaskExecutionClosure + """ + + self._closure = closure + + @property + def is_parent(self): + """Gets the is_parent of this FlyteidladminTaskExecution. # noqa: E501 + + Whether this task spawned nodes. # noqa: E501 + + :return: The is_parent of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: bool + """ + return self._is_parent + + @is_parent.setter + def is_parent(self, is_parent): + """Sets the is_parent of this FlyteidladminTaskExecution. + + Whether this task spawned nodes. # noqa: E501 + + :param is_parent: The is_parent of this FlyteidladminTaskExecution. # noqa: E501 + :type: bool + """ + + self._is_parent = is_parent + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminTaskExecution, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminTaskExecution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_node_metadata.py new file mode 100644 index 0000000000..aa6a447467 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_node_metadata.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: F401,E501 +from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata # noqa: F401,E501 + + +class FlyteidladminTaskNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cache_status': 'CoreCatalogCacheStatus', + 'catalog_key': 'CoreCatalogMetadata', + 'checkpoint_uri': 'str' + } + + attribute_map = { + 'cache_status': 'cache_status', + 'catalog_key': 'catalog_key', + 'checkpoint_uri': 'checkpoint_uri' + } + + def __init__(self, cache_status=None, catalog_key=None, checkpoint_uri=None): # noqa: E501 + """FlyteidladminTaskNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._cache_status = None + self._catalog_key = None + self._checkpoint_uri = None + self.discriminator = None + + if cache_status is not None: + self.cache_status = cache_status + if catalog_key is not None: + self.catalog_key = catalog_key + if checkpoint_uri is not None: + self.checkpoint_uri = checkpoint_uri + + @property + def cache_status(self): + """Gets the cache_status of this FlyteidladminTaskNodeMetadata. # noqa: E501 + + Captures the status of caching for this execution. # noqa: E501 + + :return: The cache_status of this FlyteidladminTaskNodeMetadata. # noqa: E501 + :rtype: CoreCatalogCacheStatus + """ + return self._cache_status + + @cache_status.setter + def cache_status(self, cache_status): + """Sets the cache_status of this FlyteidladminTaskNodeMetadata. + + Captures the status of caching for this execution. # noqa: E501 + + :param cache_status: The cache_status of this FlyteidladminTaskNodeMetadata. # noqa: E501 + :type: CoreCatalogCacheStatus + """ + + self._cache_status = cache_status + + @property + def catalog_key(self): + """Gets the catalog_key of this FlyteidladminTaskNodeMetadata. # noqa: E501 + + + :return: The catalog_key of this FlyteidladminTaskNodeMetadata. # noqa: E501 + :rtype: CoreCatalogMetadata + """ + return self._catalog_key + + @catalog_key.setter + def catalog_key(self, catalog_key): + """Sets the catalog_key of this FlyteidladminTaskNodeMetadata. + + + :param catalog_key: The catalog_key of this FlyteidladminTaskNodeMetadata. # noqa: E501 + :type: CoreCatalogMetadata + """ + + self._catalog_key = catalog_key + + @property + def checkpoint_uri(self): + """Gets the checkpoint_uri of this FlyteidladminTaskNodeMetadata. # noqa: E501 + + + :return: The checkpoint_uri of this FlyteidladminTaskNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._checkpoint_uri + + @checkpoint_uri.setter + def checkpoint_uri(self, checkpoint_uri): + """Sets the checkpoint_uri of this FlyteidladminTaskNodeMetadata. + + + :param checkpoint_uri: The checkpoint_uri of this FlyteidladminTaskNodeMetadata. # noqa: E501 + :type: str + """ + + self._checkpoint_uri = checkpoint_uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminTaskNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminTaskNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py new file mode 100644 index 0000000000..fccdeee5b8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class FlyteidladminWorkflowNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'execution_id': 'executionId' + } + + def __init__(self, execution_id=None): # noqa: E501 + """FlyteidladminWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._execution_id = None + self.discriminator = None + + if execution_id is not None: + self.execution_id = execution_id + + @property + def execution_id(self): + """Gets the execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 + + The identifier for a workflow execution launched by a node. # noqa: E501 + + :return: The execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this FlyteidladminWorkflowNodeMetadata. + + The identifier for a workflow execution launched by a node. # noqa: E501 + + :param execution_id: The execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminWorkflowNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminWorkflowNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_dynamic_workflow_node_metadata.py new file mode 100644 index 0000000000..fbba35e3fe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_dynamic_workflow_node_metadata.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class FlyteidleventDynamicWorkflowNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'compiled_workflow': 'CoreCompiledWorkflowClosure', + 'dynamic_job_spec_uri': 'str' + } + + attribute_map = { + 'id': 'id', + 'compiled_workflow': 'compiled_workflow', + 'dynamic_job_spec_uri': 'dynamic_job_spec_uri' + } + + def __init__(self, id=None, compiled_workflow=None, dynamic_job_spec_uri=None): # noqa: E501 + """FlyteidleventDynamicWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._compiled_workflow = None + self._dynamic_job_spec_uri = None + self.discriminator = None + + if id is not None: + self.id = id + if compiled_workflow is not None: + self.compiled_workflow = compiled_workflow + if dynamic_job_spec_uri is not None: + self.dynamic_job_spec_uri = dynamic_job_spec_uri + + @property + def id(self): + """Gets the id of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + + id represents the unique identifier of the workflow. # noqa: E501 + + :return: The id of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FlyteidleventDynamicWorkflowNodeMetadata. + + id represents the unique identifier of the workflow. # noqa: E501 + + :param id: The id of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def compiled_workflow(self): + """Gets the compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + + Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 + + :return: The compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreCompiledWorkflowClosure + """ + return self._compiled_workflow + + @compiled_workflow.setter + def compiled_workflow(self, compiled_workflow): + """Sets the compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. + + Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 + + :param compiled_workflow: The compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + :type: CoreCompiledWorkflowClosure + """ + + self._compiled_workflow = compiled_workflow + + @property + def dynamic_job_spec_uri(self): + """Gets the dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + + dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the workflow has already been compiled. # noqa: E501 + + :return: The dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._dynamic_job_spec_uri + + @dynamic_job_spec_uri.setter + def dynamic_job_spec_uri(self, dynamic_job_spec_uri): + """Sets the dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. + + dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the workflow has already been compiled. # noqa: E501 + + :param dynamic_job_spec_uri: The dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 + :type: str + """ + + self._dynamic_job_spec_uri = dynamic_job_spec_uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidleventDynamicWorkflowNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidleventDynamicWorkflowNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_execution_metadata.py new file mode 100644 index 0000000000..302bc9cfcc --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_execution_metadata.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo # noqa: F401,E501 +from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo # noqa: F401,E501 +from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass # noqa: F401,E501 + + +class FlyteidleventTaskExecutionMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'generated_name': 'str', + 'external_resources': 'list[EventExternalResourceInfo]', + 'resource_pool_info': 'list[EventResourcePoolInfo]', + 'plugin_identifier': 'str', + 'instance_class': 'TaskExecutionMetadataInstanceClass' + } + + attribute_map = { + 'generated_name': 'generated_name', + 'external_resources': 'external_resources', + 'resource_pool_info': 'resource_pool_info', + 'plugin_identifier': 'plugin_identifier', + 'instance_class': 'instance_class' + } + + def __init__(self, generated_name=None, external_resources=None, resource_pool_info=None, plugin_identifier=None, instance_class=None): # noqa: E501 + """FlyteidleventTaskExecutionMetadata - a model defined in Swagger""" # noqa: E501 + + self._generated_name = None + self._external_resources = None + self._resource_pool_info = None + self._plugin_identifier = None + self._instance_class = None + self.discriminator = None + + if generated_name is not None: + self.generated_name = generated_name + if external_resources is not None: + self.external_resources = external_resources + if resource_pool_info is not None: + self.resource_pool_info = resource_pool_info + if plugin_identifier is not None: + self.plugin_identifier = plugin_identifier + if instance_class is not None: + self.instance_class = instance_class + + @property + def generated_name(self): + """Gets the generated_name of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + + Unique, generated name for this task execution used by the backend. # noqa: E501 + + :return: The generated_name of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :rtype: str + """ + return self._generated_name + + @generated_name.setter + def generated_name(self, generated_name): + """Sets the generated_name of this FlyteidleventTaskExecutionMetadata. + + Unique, generated name for this task execution used by the backend. # noqa: E501 + + :param generated_name: The generated_name of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :type: str + """ + + self._generated_name = generated_name + + @property + def external_resources(self): + """Gets the external_resources of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + + Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. # noqa: E501 + + :return: The external_resources of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :rtype: list[EventExternalResourceInfo] + """ + return self._external_resources + + @external_resources.setter + def external_resources(self, external_resources): + """Sets the external_resources of this FlyteidleventTaskExecutionMetadata. + + Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. # noqa: E501 + + :param external_resources: The external_resources of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :type: list[EventExternalResourceInfo] + """ + + self._external_resources = external_resources + + @property + def resource_pool_info(self): + """Gets the resource_pool_info of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + + Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution. # noqa: E501 + + :return: The resource_pool_info of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :rtype: list[EventResourcePoolInfo] + """ + return self._resource_pool_info + + @resource_pool_info.setter + def resource_pool_info(self, resource_pool_info): + """Sets the resource_pool_info of this FlyteidleventTaskExecutionMetadata. + + Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution. # noqa: E501 + + :param resource_pool_info: The resource_pool_info of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :type: list[EventResourcePoolInfo] + """ + + self._resource_pool_info = resource_pool_info + + @property + def plugin_identifier(self): + """Gets the plugin_identifier of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + + The identifier of the plugin used to execute this task. # noqa: E501 + + :return: The plugin_identifier of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :rtype: str + """ + return self._plugin_identifier + + @plugin_identifier.setter + def plugin_identifier(self, plugin_identifier): + """Sets the plugin_identifier of this FlyteidleventTaskExecutionMetadata. + + The identifier of the plugin used to execute this task. # noqa: E501 + + :param plugin_identifier: The plugin_identifier of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :type: str + """ + + self._plugin_identifier = plugin_identifier + + @property + def instance_class(self): + """Gets the instance_class of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + + + :return: The instance_class of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :rtype: TaskExecutionMetadataInstanceClass + """ + return self._instance_class + + @instance_class.setter + def instance_class(self, instance_class): + """Sets the instance_class of this FlyteidleventTaskExecutionMetadata. + + + :param instance_class: The instance_class of this FlyteidleventTaskExecutionMetadata. # noqa: E501 + :type: TaskExecutionMetadataInstanceClass + """ + + self._instance_class = instance_class + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidleventTaskExecutionMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidleventTaskExecutionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_node_metadata.py new file mode 100644 index 0000000000..2f5787964f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_node_metadata.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus # noqa: F401,E501 +from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: F401,E501 +from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata # noqa: F401,E501 +from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata # noqa: F401,E501 + + +class FlyteidleventTaskNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cache_status': 'CoreCatalogCacheStatus', + 'catalog_key': 'CoreCatalogMetadata', + 'reservation_status': 'CatalogReservationStatus', + 'checkpoint_uri': 'str', + 'dynamic_workflow': 'FlyteidleventDynamicWorkflowNodeMetadata' + } + + attribute_map = { + 'cache_status': 'cache_status', + 'catalog_key': 'catalog_key', + 'reservation_status': 'reservation_status', + 'checkpoint_uri': 'checkpoint_uri', + 'dynamic_workflow': 'dynamic_workflow' + } + + def __init__(self, cache_status=None, catalog_key=None, reservation_status=None, checkpoint_uri=None, dynamic_workflow=None): # noqa: E501 + """FlyteidleventTaskNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._cache_status = None + self._catalog_key = None + self._reservation_status = None + self._checkpoint_uri = None + self._dynamic_workflow = None + self.discriminator = None + + if cache_status is not None: + self.cache_status = cache_status + if catalog_key is not None: + self.catalog_key = catalog_key + if reservation_status is not None: + self.reservation_status = reservation_status + if checkpoint_uri is not None: + self.checkpoint_uri = checkpoint_uri + if dynamic_workflow is not None: + self.dynamic_workflow = dynamic_workflow + + @property + def cache_status(self): + """Gets the cache_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 + + Captures the status of caching for this execution. # noqa: E501 + + :return: The cache_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :rtype: CoreCatalogCacheStatus + """ + return self._cache_status + + @cache_status.setter + def cache_status(self, cache_status): + """Sets the cache_status of this FlyteidleventTaskNodeMetadata. + + Captures the status of caching for this execution. # noqa: E501 + + :param cache_status: The cache_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :type: CoreCatalogCacheStatus + """ + + self._cache_status = cache_status + + @property + def catalog_key(self): + """Gets the catalog_key of this FlyteidleventTaskNodeMetadata. # noqa: E501 + + + :return: The catalog_key of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :rtype: CoreCatalogMetadata + """ + return self._catalog_key + + @catalog_key.setter + def catalog_key(self, catalog_key): + """Sets the catalog_key of this FlyteidleventTaskNodeMetadata. + + + :param catalog_key: The catalog_key of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :type: CoreCatalogMetadata + """ + + self._catalog_key = catalog_key + + @property + def reservation_status(self): + """Gets the reservation_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 + + Captures the status of cache reservations for this execution. # noqa: E501 + + :return: The reservation_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :rtype: CatalogReservationStatus + """ + return self._reservation_status + + @reservation_status.setter + def reservation_status(self, reservation_status): + """Sets the reservation_status of this FlyteidleventTaskNodeMetadata. + + Captures the status of cache reservations for this execution. # noqa: E501 + + :param reservation_status: The reservation_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :type: CatalogReservationStatus + """ + + self._reservation_status = reservation_status + + @property + def checkpoint_uri(self): + """Gets the checkpoint_uri of this FlyteidleventTaskNodeMetadata. # noqa: E501 + + + :return: The checkpoint_uri of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._checkpoint_uri + + @checkpoint_uri.setter + def checkpoint_uri(self, checkpoint_uri): + """Sets the checkpoint_uri of this FlyteidleventTaskNodeMetadata. + + + :param checkpoint_uri: The checkpoint_uri of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :type: str + """ + + self._checkpoint_uri = checkpoint_uri + + @property + def dynamic_workflow(self): + """Gets the dynamic_workflow of this FlyteidleventTaskNodeMetadata. # noqa: E501 + + In the case this task launched a dynamic workflow we capture its structure here. # noqa: E501 + + :return: The dynamic_workflow of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :rtype: FlyteidleventDynamicWorkflowNodeMetadata + """ + return self._dynamic_workflow + + @dynamic_workflow.setter + def dynamic_workflow(self, dynamic_workflow): + """Sets the dynamic_workflow of this FlyteidleventTaskNodeMetadata. + + In the case this task launched a dynamic workflow we capture its structure here. # noqa: E501 + + :param dynamic_workflow: The dynamic_workflow of this FlyteidleventTaskNodeMetadata. # noqa: E501 + :type: FlyteidleventDynamicWorkflowNodeMetadata + """ + + self._dynamic_workflow = dynamic_workflow + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidleventTaskNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidleventTaskNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py new file mode 100644 index 0000000000..0492d7c68c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class FlyteidleventWorkflowNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'execution_id': 'execution_id' + } + + def __init__(self, execution_id=None): # noqa: E501 + """FlyteidleventWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._execution_id = None + self.discriminator = None + + if execution_id is not None: + self.execution_id = execution_id + + @property + def execution_id(self): + """Gets the execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 + + + :return: The execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this FlyteidleventWorkflowNodeMetadata. + + + :param execution_id: The execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidleventWorkflowNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidleventWorkflowNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_download_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_download_mode.py new file mode 100644 index 0000000000..6210f026ef --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_download_mode.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class IOStrategyDownloadMode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DOWNLOAD_EAGER = "DOWNLOAD_EAGER" + DOWNLOAD_STREAM = "DOWNLOAD_STREAM" + DO_NOT_DOWNLOAD = "DO_NOT_DOWNLOAD" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """IOStrategyDownloadMode - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(IOStrategyDownloadMode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IOStrategyDownloadMode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_upload_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_upload_mode.py new file mode 100644 index 0000000000..95cfe6e357 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_upload_mode.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class IOStrategyUploadMode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UPLOAD_ON_EXIT = "UPLOAD_ON_EXIT" + UPLOAD_EAGER = "UPLOAD_EAGER" + DO_NOT_UPLOAD = "DO_NOT_UPLOAD" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """IOStrategyUploadMode - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(IOStrategyUploadMode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IOStrategyUploadMode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/plugin_override_missing_plugin_behavior.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/plugin_override_missing_plugin_behavior.py new file mode 100644 index 0000000000..cccdae26bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/plugin_override_missing_plugin_behavior.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PluginOverrideMissingPluginBehavior(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + FAIL = "FAIL" + USE_DEFAULT = "USE_DEFAULT" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """PluginOverrideMissingPluginBehavior - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PluginOverrideMissingPluginBehavior, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PluginOverrideMissingPluginBehavior): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/project_project_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/project_project_state.py new file mode 100644 index 0000000000..e134025986 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/project_project_state.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ProjectProjectState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + ACTIVE = "ACTIVE" + ARCHIVED = "ARCHIVED" + SYSTEM_GENERATED = "SYSTEM_GENERATED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ProjectProjectState - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProjectProjectState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProjectProjectState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py new file mode 100644 index 0000000000..2d75531ff7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.protobuf_value import ProtobufValue # noqa: F401,E501 + + +class ProtobufListValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'list[ProtobufValue]' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """ProtobufListValue - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this ProtobufListValue. # noqa: E501 + + Repeated field of dynamically typed values. # noqa: E501 + + :return: The values of this ProtobufListValue. # noqa: E501 + :rtype: list[ProtobufValue] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this ProtobufListValue. + + Repeated field of dynamically typed values. # noqa: E501 + + :param values: The values of this ProtobufListValue. # noqa: E501 + :type: list[ProtobufValue] + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufListValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufListValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py new file mode 100644 index 0000000000..87d63153de --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ProtobufNullValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NULL_VALUE = "NULL_VALUE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ProtobufNullValue - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufNullValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufNullValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py new file mode 100644 index 0000000000..ff81a5b69d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.protobuf_value import ProtobufValue # noqa: F401,E501 + + +class ProtobufStruct(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'fields': 'dict(str, ProtobufValue)' + } + + attribute_map = { + 'fields': 'fields' + } + + def __init__(self, fields=None): # noqa: E501 + """ProtobufStruct - a model defined in Swagger""" # noqa: E501 + + self._fields = None + self.discriminator = None + + if fields is not None: + self.fields = fields + + @property + def fields(self): + """Gets the fields of this ProtobufStruct. # noqa: E501 + + Unordered map of dynamically typed values. # noqa: E501 + + :return: The fields of this ProtobufStruct. # noqa: E501 + :rtype: dict(str, ProtobufValue) + """ + return self._fields + + @fields.setter + def fields(self, fields): + """Sets the fields of this ProtobufStruct. + + Unordered map of dynamically typed values. # noqa: E501 + + :param fields: The fields of this ProtobufStruct. # noqa: E501 + :type: dict(str, ProtobufValue) + """ + + self._fields = fields + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufStruct, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufStruct): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py new file mode 100644 index 0000000000..8e2dc6fdac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.protobuf_list_value import ProtobufListValue # noqa: F401,E501 +from flyteadmin.models.protobuf_null_value import ProtobufNullValue # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class ProtobufValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'null_value': 'ProtobufNullValue', + 'number_value': 'float', + 'string_value': 'str', + 'bool_value': 'bool', + 'struct_value': 'ProtobufStruct', + 'list_value': 'ProtobufListValue' + } + + attribute_map = { + 'null_value': 'null_value', + 'number_value': 'number_value', + 'string_value': 'string_value', + 'bool_value': 'bool_value', + 'struct_value': 'struct_value', + 'list_value': 'list_value' + } + + def __init__(self, null_value=None, number_value=None, string_value=None, bool_value=None, struct_value=None, list_value=None): # noqa: E501 + """ProtobufValue - a model defined in Swagger""" # noqa: E501 + + self._null_value = None + self._number_value = None + self._string_value = None + self._bool_value = None + self._struct_value = None + self._list_value = None + self.discriminator = None + + if null_value is not None: + self.null_value = null_value + if number_value is not None: + self.number_value = number_value + if string_value is not None: + self.string_value = string_value + if bool_value is not None: + self.bool_value = bool_value + if struct_value is not None: + self.struct_value = struct_value + if list_value is not None: + self.list_value = list_value + + @property + def null_value(self): + """Gets the null_value of this ProtobufValue. # noqa: E501 + + Represents a null value. # noqa: E501 + + :return: The null_value of this ProtobufValue. # noqa: E501 + :rtype: ProtobufNullValue + """ + return self._null_value + + @null_value.setter + def null_value(self, null_value): + """Sets the null_value of this ProtobufValue. + + Represents a null value. # noqa: E501 + + :param null_value: The null_value of this ProtobufValue. # noqa: E501 + :type: ProtobufNullValue + """ + + self._null_value = null_value + + @property + def number_value(self): + """Gets the number_value of this ProtobufValue. # noqa: E501 + + Represents a double value. # noqa: E501 + + :return: The number_value of this ProtobufValue. # noqa: E501 + :rtype: float + """ + return self._number_value + + @number_value.setter + def number_value(self, number_value): + """Sets the number_value of this ProtobufValue. + + Represents a double value. # noqa: E501 + + :param number_value: The number_value of this ProtobufValue. # noqa: E501 + :type: float + """ + + self._number_value = number_value + + @property + def string_value(self): + """Gets the string_value of this ProtobufValue. # noqa: E501 + + Represents a string value. # noqa: E501 + + :return: The string_value of this ProtobufValue. # noqa: E501 + :rtype: str + """ + return self._string_value + + @string_value.setter + def string_value(self, string_value): + """Sets the string_value of this ProtobufValue. + + Represents a string value. # noqa: E501 + + :param string_value: The string_value of this ProtobufValue. # noqa: E501 + :type: str + """ + + self._string_value = string_value + + @property + def bool_value(self): + """Gets the bool_value of this ProtobufValue. # noqa: E501 + + Represents a boolean value. # noqa: E501 + + :return: The bool_value of this ProtobufValue. # noqa: E501 + :rtype: bool + """ + return self._bool_value + + @bool_value.setter + def bool_value(self, bool_value): + """Sets the bool_value of this ProtobufValue. + + Represents a boolean value. # noqa: E501 + + :param bool_value: The bool_value of this ProtobufValue. # noqa: E501 + :type: bool + """ + + self._bool_value = bool_value + + @property + def struct_value(self): + """Gets the struct_value of this ProtobufValue. # noqa: E501 + + Represents a structured value. # noqa: E501 + + :return: The struct_value of this ProtobufValue. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._struct_value + + @struct_value.setter + def struct_value(self, struct_value): + """Sets the struct_value of this ProtobufValue. + + Represents a structured value. # noqa: E501 + + :param struct_value: The struct_value of this ProtobufValue. # noqa: E501 + :type: ProtobufStruct + """ + + self._struct_value = struct_value + + @property + def list_value(self): + """Gets the list_value of this ProtobufValue. # noqa: E501 + + Represents a repeated `Value`. # noqa: E501 + + :return: The list_value of this ProtobufValue. # noqa: E501 + :rtype: ProtobufListValue + """ + return self._list_value + + @list_value.setter + def list_value(self, list_value): + """Sets the list_value of this ProtobufValue. + + Represents a repeated `Value`. # noqa: E501 + + :param list_value: The list_value of this ProtobufValue. # noqa: E501 + :type: ProtobufListValue + """ + + self._list_value = list_value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/quality_of_service_tier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/quality_of_service_tier.py new file mode 100644 index 0000000000..9b8a45f842 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/quality_of_service_tier.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class QualityOfServiceTier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + HIGH = "HIGH" + MEDIUM = "MEDIUM" + LOW = "LOW" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """QualityOfServiceTier - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(QualityOfServiceTier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QualityOfServiceTier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py new file mode 100644 index 0000000000..481c772cad --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.resources_resource_name import ResourcesResourceName # noqa: F401,E501 + + +class ResourcesResourceEntry(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'ResourcesResourceName', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): # noqa: E501 + """ResourcesResourceEntry - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this ResourcesResourceEntry. # noqa: E501 + + Resource name. # noqa: E501 + + :return: The name of this ResourcesResourceEntry. # noqa: E501 + :rtype: ResourcesResourceName + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ResourcesResourceEntry. + + Resource name. # noqa: E501 + + :param name: The name of this ResourcesResourceEntry. # noqa: E501 + :type: ResourcesResourceName + """ + + self._name = name + + @property + def value(self): + """Gets the value of this ResourcesResourceEntry. # noqa: E501 + + + :return: The value of this ResourcesResourceEntry. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResourcesResourceEntry. + + + :param value: The value of this ResourcesResourceEntry. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResourcesResourceEntry, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResourcesResourceEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py new file mode 100644 index 0000000000..eea896d3d6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ResourcesResourceName(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN = "UNKNOWN" + CPU = "CPU" + GPU = "GPU" + MEMORY = "MEMORY" + STORAGE = "STORAGE" + EPHEMERAL_STORAGE = "EPHEMERAL_STORAGE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ResourcesResourceName - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResourcesResourceName, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResourcesResourceName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py new file mode 100644 index 0000000000..f49edcf0e0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RuntimeMetadataRuntimeType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + OTHER = "OTHER" + FLYTE_SDK = "FLYTE_SDK" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """RuntimeMetadataRuntimeType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RuntimeMetadataRuntimeType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RuntimeMetadataRuntimeType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py new file mode 100644 index 0000000000..895d2439b4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SchemaColumnSchemaColumnType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + INTEGER = "INTEGER" + FLOAT = "FLOAT" + STRING = "STRING" + BOOLEAN = "BOOLEAN" + DATETIME = "DATETIME" + DURATION = "DURATION" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """SchemaColumnSchemaColumnType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SchemaColumnSchemaColumnType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SchemaColumnSchemaColumnType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py new file mode 100644 index 0000000000..b200eef8fa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType # noqa: F401,E501 + + +class SchemaTypeSchemaColumn(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'type': 'SchemaColumnSchemaColumnType' + } + + attribute_map = { + 'name': 'name', + 'type': 'type' + } + + def __init__(self, name=None, type=None): # noqa: E501 + """SchemaTypeSchemaColumn - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._type = None + self.discriminator = None + + if name is not None: + self.name = name + if type is not None: + self.type = type + + @property + def name(self): + """Gets the name of this SchemaTypeSchemaColumn. # noqa: E501 + + + :return: The name of this SchemaTypeSchemaColumn. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SchemaTypeSchemaColumn. + + + :param name: The name of this SchemaTypeSchemaColumn. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def type(self): + """Gets the type of this SchemaTypeSchemaColumn. # noqa: E501 + + The column type. This allows a limited set of types currently. # noqa: E501 + + :return: The type of this SchemaTypeSchemaColumn. # noqa: E501 + :rtype: SchemaColumnSchemaColumnType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this SchemaTypeSchemaColumn. + + The column type. This allows a limited set of types currently. # noqa: E501 + + :param type: The type of this SchemaTypeSchemaColumn. # noqa: E501 + :type: SchemaColumnSchemaColumnType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SchemaTypeSchemaColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SchemaTypeSchemaColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/secret_mount_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/secret_mount_type.py new file mode 100644 index 0000000000..2331d3ba26 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/secret_mount_type.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SecretMountType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + ANY = "ANY" + ENV_VAR = "ENV_VAR" + FILE = "FILE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """SecretMountType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SecretMountType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecretMountType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py new file mode 100644 index 0000000000..f9e955e818 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SortDirection(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DESCENDING = "DESCENDING" + ASCENDING = "ASCENDING" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """SortDirection - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SortDirection, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SortDirection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sql_dialect.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sql_dialect.py new file mode 100644 index 0000000000..00a361f1ba --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sql_dialect.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SqlDialect(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + ANSI = "ANSI" + HIVE = "HIVE" + OTHER = "OTHER" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """SqlDialect - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SqlDialect, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SqlDialect): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/structured_dataset_type_dataset_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/structured_dataset_type_dataset_column.py new file mode 100644 index 0000000000..0092cebcba --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/structured_dataset_type_dataset_column.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 + + +class StructuredDatasetTypeDatasetColumn(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'literal_type': 'CoreLiteralType' + } + + attribute_map = { + 'name': 'name', + 'literal_type': 'literal_type' + } + + def __init__(self, name=None, literal_type=None): # noqa: E501 + """StructuredDatasetTypeDatasetColumn - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._literal_type = None + self.discriminator = None + + if name is not None: + self.name = name + if literal_type is not None: + self.literal_type = literal_type + + @property + def name(self): + """Gets the name of this StructuredDatasetTypeDatasetColumn. # noqa: E501 + + A unique name within the schema type for the column. # noqa: E501 + + :return: The name of this StructuredDatasetTypeDatasetColumn. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this StructuredDatasetTypeDatasetColumn. + + A unique name within the schema type for the column. # noqa: E501 + + :param name: The name of this StructuredDatasetTypeDatasetColumn. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def literal_type(self): + """Gets the literal_type of this StructuredDatasetTypeDatasetColumn. # noqa: E501 + + The column type. # noqa: E501 + + :return: The literal_type of this StructuredDatasetTypeDatasetColumn. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._literal_type + + @literal_type.setter + def literal_type(self, literal_type): + """Sets the literal_type of this StructuredDatasetTypeDatasetColumn. + + The column type. # noqa: E501 + + :param literal_type: The literal_type of this StructuredDatasetTypeDatasetColumn. # noqa: E501 + :type: CoreLiteralType + """ + + self._literal_type = literal_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(StructuredDatasetTypeDatasetColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StructuredDatasetTypeDatasetColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_execution_metadata_instance_class.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_execution_metadata_instance_class.py new file mode 100644 index 0000000000..c0bd3b3366 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_execution_metadata_instance_class.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TaskExecutionMetadataInstanceClass(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DEFAULT = "DEFAULT" + INTERRUPTIBLE = "INTERRUPTIBLE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """TaskExecutionMetadataInstanceClass - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskExecutionMetadataInstanceClass, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskExecutionMetadataInstanceClass): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py new file mode 100644 index 0000000000..258d227425 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TaskLogMessageFormat(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN = "UNKNOWN" + CSV = "CSV" + JSON = "JSON" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """TaskLogMessageFormat - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskLogMessageFormat, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskLogMessageFormat): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/workflow_metadata_on_failure_policy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/workflow_metadata_on_failure_policy.py new file mode 100644 index 0000000000..e0cffe7a99 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/workflow_metadata_on_failure_policy.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WorkflowMetadataOnFailurePolicy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + IMMEDIATELY = "FAIL_IMMEDIATELY" + AFTER_EXECUTABLE_NODES_COMPLETE = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """WorkflowMetadataOnFailurePolicy - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(WorkflowMetadataOnFailurePolicy, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WorkflowMetadataOnFailurePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py new file mode 100644 index 0000000000..885a2be8a0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh new file mode 100644 index 0000000000..ae01b182ae --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt new file mode 100644 index 0000000000..bafdc07532 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py new file mode 100644 index 0000000000..ba03cf5291 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "flyteadmin" +VERSION = "1.0.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = [ + "certifi>=2017.4.17", + "python-dateutil>=2.1", + "six>=1.10", + "urllib3>=1.23" +] + + +setup( + name=NAME, + version=VERSION, + description="flyteidl/service/admin.proto", + author_email="", + url="", + keywords=["Swagger", "flyteidl/service/admin.proto"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + """ +) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt new file mode 100644 index 0000000000..2702246c0e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_abort_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_abort_metadata.py new file mode 100644 index 0000000000..b617a7b7d1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_abort_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminAbortMetadata(unittest.TestCase): + """AdminAbortMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminAbortMetadata(self): + """Test AdminAbortMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_abort_metadata.AdminAbortMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py new file mode 100644 index 0000000000..53f87816b6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminAnnotations(unittest.TestCase): + """AdminAnnotations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminAnnotations(self): + """Test AdminAnnotations""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_annotations.AdminAnnotations() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py new file mode 100644 index 0000000000..1425547087 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_auth import AdminAuth # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminAuth(unittest.TestCase): + """AdminAuth unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminAuth(self): + """Test AdminAuth""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_auth.AdminAuth() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth_role.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth_role.py new file mode 100644 index 0000000000..3b91984c12 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth_role.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_auth_role import AdminAuthRole # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminAuthRole(unittest.TestCase): + """AdminAuthRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminAuthRole(self): + """Test AdminAuthRole""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_auth_role.AdminAuthRole() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_assignment.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_assignment.py new file mode 100644 index 0000000000..1762f31b70 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_assignment.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminClusterAssignment(unittest.TestCase): + """AdminClusterAssignment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminClusterAssignment(self): + """Test AdminClusterAssignment""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_cluster_assignment.AdminClusterAssignment() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_resource_attributes.py new file mode 100644 index 0000000000..ab1e51e9c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_resource_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminClusterResourceAttributes(unittest.TestCase): + """AdminClusterResourceAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminClusterResourceAttributes(self): + """Test AdminClusterResourceAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_cluster_resource_attributes.AdminClusterResourceAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cron_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cron_schedule.py new file mode 100644 index 0000000000..f423f248dc --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cron_schedule.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_cron_schedule import AdminCronSchedule # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminCronSchedule(unittest.TestCase): + """AdminCronSchedule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminCronSchedule(self): + """Test AdminCronSchedule""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_cron_schedule.AdminCronSchedule() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description.py new file mode 100644 index 0000000000..28488b15bd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_description import AdminDescription # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminDescription(unittest.TestCase): + """AdminDescription unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminDescription(self): + """Test AdminDescription""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_description.AdminDescription() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity.py new file mode 100644 index 0000000000..7e8d926bad --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminDescriptionEntity(unittest.TestCase): + """AdminDescriptionEntity unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminDescriptionEntity(self): + """Test AdminDescriptionEntity""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_description_entity.AdminDescriptionEntity() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity_list.py new file mode 100644 index 0000000000..2592aec393 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_description_entity_list import AdminDescriptionEntityList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminDescriptionEntityList(unittest.TestCase): + """AdminDescriptionEntityList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminDescriptionEntityList(self): + """Test AdminDescriptionEntityList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_description_entity_list.AdminDescriptionEntityList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_format.py new file mode 100644 index 0000000000..79efa9a405 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_format.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_description_format import AdminDescriptionFormat # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminDescriptionFormat(unittest.TestCase): + """AdminDescriptionFormat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminDescriptionFormat(self): + """Test AdminDescriptionFormat""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_description_format.AdminDescriptionFormat() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py new file mode 100644 index 0000000000..8c53f01712 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_domain import AdminDomain # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminDomain(unittest.TestCase): + """AdminDomain unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminDomain(self): + """Test AdminDomain""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_domain.AdminDomain() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py new file mode 100644 index 0000000000..f39df1233e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_email_notification import AdminEmailNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminEmailNotification(unittest.TestCase): + """AdminEmailNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminEmailNotification(self): + """Test AdminEmailNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_email_notification.AdminEmailNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_envs.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_envs.py new file mode 100644 index 0000000000..b3d472b8bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_envs.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_envs import AdminEnvs # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminEnvs(unittest.TestCase): + """AdminEnvs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminEnvs(self): + """Test AdminEnvs""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_envs.AdminEnvs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py new file mode 100644 index 0000000000..8da444e5ec --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution import AdminExecution # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecution(unittest.TestCase): + """AdminExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecution(self): + """Test AdminExecution""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution.AdminExecution() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py new file mode 100644 index 0000000000..af1d7119ca --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionClosure(unittest.TestCase): + """AdminExecutionClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionClosure(self): + """Test AdminExecutionClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_closure.AdminExecutionClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_cluster_label.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_cluster_label.py new file mode 100644 index 0000000000..325f951e12 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_cluster_label.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionClusterLabel(unittest.TestCase): + """AdminExecutionClusterLabel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionClusterLabel(self): + """Test AdminExecutionClusterLabel""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_cluster_label.AdminExecutionClusterLabel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py new file mode 100644 index 0000000000..45a0026e37 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionCreateRequest(unittest.TestCase): + """AdminExecutionCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionCreateRequest(self): + """Test AdminExecutionCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_create_request.AdminExecutionCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py new file mode 100644 index 0000000000..d3f0537048 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionCreateResponse(unittest.TestCase): + """AdminExecutionCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionCreateResponse(self): + """Test AdminExecutionCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_create_response.AdminExecutionCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py new file mode 100644 index 0000000000..7387280caa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_list import AdminExecutionList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionList(unittest.TestCase): + """AdminExecutionList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionList(self): + """Test AdminExecutionList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_list.AdminExecutionList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py new file mode 100644 index 0000000000..c4f9c66562 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionMetadata(unittest.TestCase): + """AdminExecutionMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionMetadata(self): + """Test AdminExecutionMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_metadata.AdminExecutionMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_queue_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_queue_attributes.py new file mode 100644 index 0000000000..f84572c389 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_queue_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionQueueAttributes(unittest.TestCase): + """AdminExecutionQueueAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionQueueAttributes(self): + """Test AdminExecutionQueueAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_queue_attributes.AdminExecutionQueueAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_recover_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_recover_request.py new file mode 100644 index 0000000000..8bdff0915f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_recover_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_recover_request import AdminExecutionRecoverRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionRecoverRequest(unittest.TestCase): + """AdminExecutionRecoverRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionRecoverRequest(self): + """Test AdminExecutionRecoverRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_recover_request.AdminExecutionRecoverRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py new file mode 100644 index 0000000000..170c8149c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionRelaunchRequest(unittest.TestCase): + """AdminExecutionRelaunchRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionRelaunchRequest(self): + """Test AdminExecutionRelaunchRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_relaunch_request.AdminExecutionRelaunchRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py new file mode 100644 index 0000000000..1a0d62cfec --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionSpec(unittest.TestCase): + """AdminExecutionSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionSpec(self): + """Test AdminExecutionSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_spec.AdminExecutionSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state.py new file mode 100644 index 0000000000..6df975e3c2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_state import AdminExecutionState # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionState(unittest.TestCase): + """AdminExecutionState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionState(self): + """Test AdminExecutionState""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_state.AdminExecutionState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state_change_details.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state_change_details.py new file mode 100644 index 0000000000..1a116ff73b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state_change_details.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionStateChangeDetails(unittest.TestCase): + """AdminExecutionStateChangeDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionStateChangeDetails(self): + """Test AdminExecutionStateChangeDetails""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_state_change_details.AdminExecutionStateChangeDetails() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py new file mode 100644 index 0000000000..5233d9f6d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionTerminateRequest(unittest.TestCase): + """AdminExecutionTerminateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionTerminateRequest(self): + """Test AdminExecutionTerminateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_terminate_request.AdminExecutionTerminateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py new file mode 100644 index 0000000000..939b551e66 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionTerminateResponse(unittest.TestCase): + """AdminExecutionTerminateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionTerminateResponse(self): + """Test AdminExecutionTerminateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_terminate_response.AdminExecutionTerminateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_request.py new file mode 100644 index 0000000000..320cba4fe6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_update_request import AdminExecutionUpdateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionUpdateRequest(unittest.TestCase): + """AdminExecutionUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionUpdateRequest(self): + """Test AdminExecutionUpdateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_update_request.AdminExecutionUpdateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_response.py new file mode 100644 index 0000000000..955420f043 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_update_response import AdminExecutionUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionUpdateResponse(unittest.TestCase): + """AdminExecutionUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionUpdateResponse(self): + """Test AdminExecutionUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_update_response.AdminExecutionUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py new file mode 100644 index 0000000000..5558212367 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_fixed_rate import AdminFixedRate # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminFixedRate(unittest.TestCase): + """AdminFixedRate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminFixedRate(self): + """Test AdminFixedRate""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_fixed_rate.AdminFixedRate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py new file mode 100644 index 0000000000..a30eec5452 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminFixedRateUnit(unittest.TestCase): + """AdminFixedRateUnit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminFixedRateUnit(self): + """Test AdminFixedRateUnit""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_fixed_rate_unit.AdminFixedRateUnit() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_flyte_ur_ls.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_flyte_ur_ls.py new file mode 100644 index 0000000000..581bc38333 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_flyte_ur_ls.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminFlyteURLs(unittest.TestCase): + """AdminFlyteURLs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminFlyteURLs(self): + """Test AdminFlyteURLs""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_flyte_ur_ls.AdminFlyteURLs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_get_version_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_get_version_response.py new file mode 100644 index 0000000000..930d65711e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_get_version_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_get_version_response import AdminGetVersionResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminGetVersionResponse(unittest.TestCase): + """AdminGetVersionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminGetVersionResponse(self): + """Test AdminGetVersionResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_get_version_response.AdminGetVersionResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py new file mode 100644 index 0000000000..32733ca584 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_labels import AdminLabels # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLabels(unittest.TestCase): + """AdminLabels unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLabels(self): + """Test AdminLabels""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_labels.AdminLabels() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py new file mode 100644 index 0000000000..ef28673e27 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlan(unittest.TestCase): + """AdminLaunchPlan unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlan(self): + """Test AdminLaunchPlan""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan.AdminLaunchPlan() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py new file mode 100644 index 0000000000..e23aadda1d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanClosure(unittest.TestCase): + """AdminLaunchPlanClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanClosure(self): + """Test AdminLaunchPlanClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_closure.AdminLaunchPlanClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py new file mode 100644 index 0000000000..95aa42532c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanCreateRequest(unittest.TestCase): + """AdminLaunchPlanCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanCreateRequest(self): + """Test AdminLaunchPlanCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_create_request.AdminLaunchPlanCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py new file mode 100644 index 0000000000..2c855a1d6f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanCreateResponse(unittest.TestCase): + """AdminLaunchPlanCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanCreateResponse(self): + """Test AdminLaunchPlanCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_create_response.AdminLaunchPlanCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py new file mode 100644 index 0000000000..61a9d149fd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanList(unittest.TestCase): + """AdminLaunchPlanList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanList(self): + """Test AdminLaunchPlanList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_list.AdminLaunchPlanList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py new file mode 100644 index 0000000000..2fa217de17 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanMetadata(unittest.TestCase): + """AdminLaunchPlanMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanMetadata(self): + """Test AdminLaunchPlanMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_metadata.AdminLaunchPlanMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py new file mode 100644 index 0000000000..9c18b3d2fa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanSpec(unittest.TestCase): + """AdminLaunchPlanSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanSpec(self): + """Test AdminLaunchPlanSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_spec.AdminLaunchPlanSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py new file mode 100644 index 0000000000..565c353308 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanState(unittest.TestCase): + """AdminLaunchPlanState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanState(self): + """Test AdminLaunchPlanState""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_state.AdminLaunchPlanState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py new file mode 100644 index 0000000000..4423d250d8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanUpdateRequest(unittest.TestCase): + """AdminLaunchPlanUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanUpdateRequest(self): + """Test AdminLaunchPlanUpdateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_update_request.AdminLaunchPlanUpdateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py new file mode 100644 index 0000000000..16f59ce1d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanUpdateResponse(unittest.TestCase): + """AdminLaunchPlanUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanUpdateResponse(self): + """Test AdminLaunchPlanUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_update_response.AdminLaunchPlanUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_list_matchable_attributes_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_list_matchable_attributes_response.py new file mode 100644 index 0000000000..a7f0ded960 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_list_matchable_attributes_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_list_matchable_attributes_response import AdminListMatchableAttributesResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminListMatchableAttributesResponse(unittest.TestCase): + """AdminListMatchableAttributesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminListMatchableAttributesResponse(self): + """Test AdminListMatchableAttributesResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_list_matchable_attributes_response.AdminListMatchableAttributesResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py new file mode 100644 index 0000000000..e0cb1dd8ab --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLiteralMapBlob(unittest.TestCase): + """AdminLiteralMapBlob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLiteralMapBlob(self): + """Test AdminLiteralMapBlob""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_literal_map_blob.AdminLiteralMapBlob() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_attributes_configuration.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_attributes_configuration.py new file mode 100644 index 0000000000..4c26d21035 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_attributes_configuration.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminMatchableAttributesConfiguration(unittest.TestCase): + """AdminMatchableAttributesConfiguration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminMatchableAttributesConfiguration(self): + """Test AdminMatchableAttributesConfiguration""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_matchable_attributes_configuration.AdminMatchableAttributesConfiguration() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_resource.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_resource.py new file mode 100644 index 0000000000..c20e671fcf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_resource.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminMatchableResource(unittest.TestCase): + """AdminMatchableResource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminMatchableResource(self): + """Test AdminMatchableResource""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_matchable_resource.AdminMatchableResource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matching_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matching_attributes.py new file mode 100644 index 0000000000..1614512f80 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matching_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminMatchingAttributes(unittest.TestCase): + """AdminMatchingAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminMatchingAttributes(self): + """Test AdminMatchingAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_matching_attributes.AdminMatchingAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity.py new file mode 100644 index 0000000000..06702eed0a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity import AdminNamedEntity # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntity(unittest.TestCase): + """AdminNamedEntity unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntity(self): + """Test AdminNamedEntity""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity.AdminNamedEntity() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py new file mode 100644 index 0000000000..6d376e75ea --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityIdentifier(unittest.TestCase): + """AdminNamedEntityIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityIdentifier(self): + """Test AdminNamedEntityIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_identifier.AdminNamedEntityIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py new file mode 100644 index 0000000000..b93b1d4328 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityIdentifierList(unittest.TestCase): + """AdminNamedEntityIdentifierList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityIdentifierList(self): + """Test AdminNamedEntityIdentifierList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_identifier_list.AdminNamedEntityIdentifierList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_list.py new file mode 100644 index 0000000000..977750e8bc --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_list import AdminNamedEntityList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityList(unittest.TestCase): + """AdminNamedEntityList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityList(self): + """Test AdminNamedEntityList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_list.AdminNamedEntityList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_metadata.py new file mode 100644 index 0000000000..07d29106a3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityMetadata(unittest.TestCase): + """AdminNamedEntityMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityMetadata(self): + """Test AdminNamedEntityMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_metadata.AdminNamedEntityMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_state.py new file mode 100644 index 0000000000..1bdc21796a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityState(unittest.TestCase): + """AdminNamedEntityState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityState(self): + """Test AdminNamedEntityState""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_state.AdminNamedEntityState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_request.py new file mode 100644 index 0000000000..140bea29e0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_update_request import AdminNamedEntityUpdateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityUpdateRequest(unittest.TestCase): + """AdminNamedEntityUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityUpdateRequest(self): + """Test AdminNamedEntityUpdateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_update_request.AdminNamedEntityUpdateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_response.py new file mode 100644 index 0000000000..48fec8e195 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_update_response import AdminNamedEntityUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityUpdateResponse(unittest.TestCase): + """AdminNamedEntityUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityUpdateResponse(self): + """Test AdminNamedEntityUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_update_response.AdminNamedEntityUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py new file mode 100644 index 0000000000..1cb387243e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionClosure(unittest.TestCase): + """AdminNodeExecutionClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionClosure(self): + """Test AdminNodeExecutionClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_closure.AdminNodeExecutionClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py new file mode 100644 index 0000000000..f9932fede3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionEventRequest(unittest.TestCase): + """AdminNodeExecutionEventRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionEventRequest(self): + """Test AdminNodeExecutionEventRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_event_request.AdminNodeExecutionEventRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py new file mode 100644 index 0000000000..09e9f94608 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionEventResponse(unittest.TestCase): + """AdminNodeExecutionEventResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionEventResponse(self): + """Test AdminNodeExecutionEventResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_event_response.AdminNodeExecutionEventResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py new file mode 100644 index 0000000000..d84069a2c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionGetDataResponse(unittest.TestCase): + """AdminNodeExecutionGetDataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionGetDataResponse(self): + """Test AdminNodeExecutionGetDataResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_get_data_response.AdminNodeExecutionGetDataResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py new file mode 100644 index 0000000000..ce996eb9a5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionList(unittest.TestCase): + """AdminNodeExecutionList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionList(self): + """Test AdminNodeExecutionList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_list.AdminNodeExecutionList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_meta_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_meta_data.py new file mode 100644 index 0000000000..94e08096e2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_meta_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionMetaData(unittest.TestCase): + """AdminNodeExecutionMetaData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionMetaData(self): + """Test AdminNodeExecutionMetaData""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_meta_data.AdminNodeExecutionMetaData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py new file mode 100644 index 0000000000..50123dee60 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_notification import AdminNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNotification(unittest.TestCase): + """AdminNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNotification(self): + """Test AdminNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_notification.AdminNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py new file mode 100644 index 0000000000..b80edebf43 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_notification_list import AdminNotificationList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNotificationList(unittest.TestCase): + """AdminNotificationList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNotificationList(self): + """Test AdminNotificationList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_notification_list.AdminNotificationList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py new file mode 100644 index 0000000000..79062cc22e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminPagerDutyNotification(unittest.TestCase): + """AdminPagerDutyNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminPagerDutyNotification(self): + """Test AdminPagerDutyNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_pager_duty_notification.AdminPagerDutyNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_override.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_override.py new file mode 100644 index 0000000000..8e0232a5e5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_override.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_plugin_override import AdminPluginOverride # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminPluginOverride(unittest.TestCase): + """AdminPluginOverride unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminPluginOverride(self): + """Test AdminPluginOverride""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_plugin_override.AdminPluginOverride() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_overrides.py new file mode 100644 index 0000000000..f6b33d0d00 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_overrides.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminPluginOverrides(unittest.TestCase): + """AdminPluginOverrides unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminPluginOverrides(self): + """Test AdminPluginOverrides""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_plugin_overrides.AdminPluginOverrides() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py new file mode 100644 index 0000000000..94ec8dbda8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project import AdminProject # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProject(unittest.TestCase): + """AdminProject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProject(self): + """Test AdminProject""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project.AdminProject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes.py new file mode 100644 index 0000000000..dcd720970e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_attributes import AdminProjectAttributes # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectAttributes(unittest.TestCase): + """AdminProjectAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectAttributes(self): + """Test AdminProjectAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_attributes.AdminProjectAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_request.py new file mode 100644 index 0000000000..2e57eebdc5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_attributes_delete_request import AdminProjectAttributesDeleteRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectAttributesDeleteRequest(unittest.TestCase): + """AdminProjectAttributesDeleteRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectAttributesDeleteRequest(self): + """Test AdminProjectAttributesDeleteRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_attributes_delete_request.AdminProjectAttributesDeleteRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_response.py new file mode 100644 index 0000000000..18289b5029 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_attributes_delete_response import AdminProjectAttributesDeleteResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectAttributesDeleteResponse(unittest.TestCase): + """AdminProjectAttributesDeleteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectAttributesDeleteResponse(self): + """Test AdminProjectAttributesDeleteResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_attributes_delete_response.AdminProjectAttributesDeleteResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_get_response.py new file mode 100644 index 0000000000..228892f109 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_get_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_attributes_get_response import AdminProjectAttributesGetResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectAttributesGetResponse(unittest.TestCase): + """AdminProjectAttributesGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectAttributesGetResponse(self): + """Test AdminProjectAttributesGetResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_attributes_get_response.AdminProjectAttributesGetResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_request.py new file mode 100644 index 0000000000..f7a5a3b047 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_attributes_update_request import AdminProjectAttributesUpdateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectAttributesUpdateRequest(unittest.TestCase): + """AdminProjectAttributesUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectAttributesUpdateRequest(self): + """Test AdminProjectAttributesUpdateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_attributes_update_request.AdminProjectAttributesUpdateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_response.py new file mode 100644 index 0000000000..8a1ce67357 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_attributes_update_response import AdminProjectAttributesUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectAttributesUpdateResponse(unittest.TestCase): + """AdminProjectAttributesUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectAttributesUpdateResponse(self): + """Test AdminProjectAttributesUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_attributes_update_response.AdminProjectAttributesUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes.py new file mode 100644 index 0000000000..fe261ca67a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectDomainAttributes(unittest.TestCase): + """AdminProjectDomainAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectDomainAttributes(self): + """Test AdminProjectDomainAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_domain_attributes.AdminProjectDomainAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_request.py new file mode 100644 index 0000000000..2e87c3220b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_domain_attributes_delete_request import AdminProjectDomainAttributesDeleteRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectDomainAttributesDeleteRequest(unittest.TestCase): + """AdminProjectDomainAttributesDeleteRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectDomainAttributesDeleteRequest(self): + """Test AdminProjectDomainAttributesDeleteRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_domain_attributes_delete_request.AdminProjectDomainAttributesDeleteRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_response.py new file mode 100644 index 0000000000..dceb0a4106 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_domain_attributes_delete_response import AdminProjectDomainAttributesDeleteResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectDomainAttributesDeleteResponse(unittest.TestCase): + """AdminProjectDomainAttributesDeleteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectDomainAttributesDeleteResponse(self): + """Test AdminProjectDomainAttributesDeleteResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_domain_attributes_delete_response.AdminProjectDomainAttributesDeleteResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_get_response.py new file mode 100644 index 0000000000..c17b959a76 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_get_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_domain_attributes_get_response import AdminProjectDomainAttributesGetResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectDomainAttributesGetResponse(unittest.TestCase): + """AdminProjectDomainAttributesGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectDomainAttributesGetResponse(self): + """Test AdminProjectDomainAttributesGetResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_domain_attributes_get_response.AdminProjectDomainAttributesGetResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_request.py new file mode 100644 index 0000000000..1d13f4505e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_domain_attributes_update_request import AdminProjectDomainAttributesUpdateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectDomainAttributesUpdateRequest(unittest.TestCase): + """AdminProjectDomainAttributesUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectDomainAttributesUpdateRequest(self): + """Test AdminProjectDomainAttributesUpdateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_domain_attributes_update_request.AdminProjectDomainAttributesUpdateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_response.py new file mode 100644 index 0000000000..1381af95a9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_domain_attributes_update_response import AdminProjectDomainAttributesUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectDomainAttributesUpdateResponse(unittest.TestCase): + """AdminProjectDomainAttributesUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectDomainAttributesUpdateResponse(self): + """Test AdminProjectDomainAttributesUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_domain_attributes_update_response.AdminProjectDomainAttributesUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py new file mode 100644 index 0000000000..21a49c3f35 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectRegisterRequest(unittest.TestCase): + """AdminProjectRegisterRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectRegisterRequest(self): + """Test AdminProjectRegisterRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_register_request.AdminProjectRegisterRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py new file mode 100644 index 0000000000..773ec50efd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectRegisterResponse(unittest.TestCase): + """AdminProjectRegisterResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectRegisterResponse(self): + """Test AdminProjectRegisterResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_register_response.AdminProjectRegisterResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_update_response.py new file mode 100644 index 0000000000..d3d3a31dc0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_update_response import AdminProjectUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectUpdateResponse(unittest.TestCase): + """AdminProjectUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectUpdateResponse(self): + """Test AdminProjectUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_update_response.AdminProjectUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py new file mode 100644 index 0000000000..195a493cbb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_projects import AdminProjects # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjects(unittest.TestCase): + """AdminProjects unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjects(self): + """Test AdminProjects""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_projects.AdminProjects() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_raw_output_data_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_raw_output_data_config.py new file mode 100644 index 0000000000..1fc1b9a3b2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_raw_output_data_config.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminRawOutputDataConfig(unittest.TestCase): + """AdminRawOutputDataConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminRawOutputDataConfig(self): + """Test AdminRawOutputDataConfig""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_raw_output_data_config.AdminRawOutputDataConfig() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_reason.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_reason.py new file mode 100644 index 0000000000..9c8dff4220 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_reason.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_reason import AdminReason # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminReason(unittest.TestCase): + """AdminReason unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminReason(self): + """Test AdminReason""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_reason.AdminReason() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py new file mode 100644 index 0000000000..78bd6c3fb1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_schedule import AdminSchedule # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSchedule(unittest.TestCase): + """AdminSchedule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSchedule(self): + """Test AdminSchedule""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_schedule.AdminSchedule() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py new file mode 100644 index 0000000000..680b2cd5f5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py @@ -0,0 +1,432 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.api.admin_service_api import AdminServiceApi # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminServiceApi(unittest.TestCase): + """AdminServiceApi unit test stubs""" + + def setUp(self): + self.api = flyteadmin.api.admin_service_api.AdminServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_execution(self): + """Test case for create_execution + + Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` # noqa: E501 + """ + pass + + def test_create_launch_plan(self): + """Test case for create_launch_plan + + Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition # noqa: E501 + """ + pass + + def test_create_node_event(self): + """Test case for create_node_event + + Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. # noqa: E501 + """ + pass + + def test_create_task(self): + """Test case for create_task + + Create and upload a :ref:`ref_flyteidl.admin.Task` definition # noqa: E501 + """ + pass + + def test_create_task_event(self): + """Test case for create_task_event + + Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. # noqa: E501 + """ + pass + + def test_create_workflow(self): + """Test case for create_workflow + + Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition # noqa: E501 + """ + pass + + def test_create_workflow_event(self): + """Test case for create_workflow_event + + Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. # noqa: E501 + """ + pass + + def test_delete_project_attributes(self): + """Test case for delete_project_attributes + + Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + """ + pass + + def test_delete_project_domain_attributes(self): + """Test case for delete_project_domain_attributes + + Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + """ + pass + + def test_delete_workflow_attributes(self): + """Test case for delete_workflow_attributes + + Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + """ + pass + + def test_get_active_launch_plan(self): + """Test case for get_active_launch_plan + + Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + """ + pass + + def test_get_description_entity(self): + """Test case for get_description_entity + + Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. # noqa: E501 + """ + pass + + def test_get_execution(self): + """Test case for get_execution + + Fetches a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + """ + pass + + def test_get_execution_data(self): + """Test case for get_execution_data + + Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + """ + pass + + def test_get_execution_metrics(self): + """Test case for get_execution_metrics + + Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + """ + pass + + def test_get_launch_plan(self): + """Test case for get_launch_plan + + Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. # noqa: E501 + """ + pass + + def test_get_named_entity(self): + """Test case for get_named_entity + + Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 + """ + pass + + def test_get_node_execution(self): + """Test case for get_node_execution + + Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + """ + pass + + def test_get_node_execution_data(self): + """Test case for get_node_execution_data + + Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + """ + pass + + def test_get_project_attributes(self): + """Test case for get_project_attributes + + Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + """ + pass + + def test_get_project_domain_attributes(self): + """Test case for get_project_domain_attributes + + Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + """ + pass + + def test_get_task(self): + """Test case for get_task + + Fetch a :ref:`ref_flyteidl.admin.Task` definition. # noqa: E501 + """ + pass + + def test_get_task_execution(self): + """Test case for get_task_execution + + Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + """ + pass + + def test_get_task_execution_data(self): + """Test case for get_task_execution_data + + Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + """ + pass + + def test_get_version(self): + """Test case for get_version + + """ + pass + + def test_get_workflow(self): + """Test case for get_workflow + + Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. # noqa: E501 + """ + pass + + def test_get_workflow_attributes(self): + """Test case for get_workflow_attributes + + Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + """ + pass + + def test_list_active_launch_plans(self): + """Test case for list_active_launch_plans + + List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + """ + pass + + def test_list_description_entities(self): + """Test case for list_description_entities + + Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 + """ + pass + + def test_list_description_entities2(self): + """Test case for list_description_entities2 + + Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 + """ + pass + + def test_list_executions(self): + """Test case for list_executions + + Fetch a list of :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + """ + pass + + def test_list_launch_plan_ids(self): + """Test case for list_launch_plan_ids + + Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. # noqa: E501 + """ + pass + + def test_list_launch_plans(self): + """Test case for list_launch_plans + + Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 + """ + pass + + def test_list_launch_plans2(self): + """Test case for list_launch_plans2 + + Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 + """ + pass + + def test_list_matchable_attributes(self): + """Test case for list_matchable_attributes + + Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. # noqa: E501 + """ + pass + + def test_list_named_entities(self): + """Test case for list_named_entities + + Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. # noqa: E501 + """ + pass + + def test_list_node_executions(self): + """Test case for list_node_executions + + Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 + """ + pass + + def test_list_node_executions_for_task(self): + """Test case for list_node_executions_for_task + + Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + """ + pass + + def test_list_projects(self): + """Test case for list_projects + + Fetches a list of :ref:`ref_flyteidl.admin.Project` # noqa: E501 + """ + pass + + def test_list_task_executions(self): + """Test case for list_task_executions + + Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 + """ + pass + + def test_list_task_ids(self): + """Test case for list_task_ids + + Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. # noqa: E501 + """ + pass + + def test_list_tasks(self): + """Test case for list_tasks + + Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 + """ + pass + + def test_list_tasks2(self): + """Test case for list_tasks2 + + Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 + """ + pass + + def test_list_workflow_ids(self): + """Test case for list_workflow_ids + + Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. # noqa: E501 + """ + pass + + def test_list_workflows(self): + """Test case for list_workflows + + Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 + """ + pass + + def test_list_workflows2(self): + """Test case for list_workflows2 + + Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 + """ + pass + + def test_recover_execution(self): + """Test case for recover_execution + + Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. # noqa: E501 + """ + pass + + def test_register_project(self): + """Test case for register_project + + Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. # noqa: E501 + """ + pass + + def test_relaunch_execution(self): + """Test case for relaunch_execution + + Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` # noqa: E501 + """ + pass + + def test_terminate_execution(self): + """Test case for terminate_execution + + Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + """ + pass + + def test_update_execution(self): + """Test case for update_execution + + Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 + """ + pass + + def test_update_launch_plan(self): + """Test case for update_launch_plan + + Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 + """ + pass + + def test_update_named_entity(self): + """Test case for update_named_entity + + Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 + """ + pass + + def test_update_project(self): + """Test case for update_project + + Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. # noqa: E501 + """ + pass + + def test_update_project_attributes(self): + """Test case for update_project_attributes + + Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level # noqa: E501 + """ + pass + + def test_update_project_domain_attributes(self): + """Test case for update_project_domain_attributes + + Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 + """ + pass + + def test_update_workflow_attributes(self): + """Test case for update_workflow_attributes + + Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py new file mode 100644 index 0000000000..606a207587 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_slack_notification import AdminSlackNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSlackNotification(unittest.TestCase): + """AdminSlackNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSlackNotification(self): + """Test AdminSlackNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_slack_notification.AdminSlackNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py new file mode 100644 index 0000000000..e92f5cf94e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_sort import AdminSort # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSort(unittest.TestCase): + """AdminSort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSort(self): + """Test AdminSort""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_sort.AdminSort() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_source_code.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_source_code.py new file mode 100644 index 0000000000..9c9a649de7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_source_code.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_source_code import AdminSourceCode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSourceCode(unittest.TestCase): + """AdminSourceCode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSourceCode(self): + """Test AdminSourceCode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_source_code.AdminSourceCode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_system_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_system_metadata.py new file mode 100644 index 0000000000..0f81cd491b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_system_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_system_metadata import AdminSystemMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSystemMetadata(unittest.TestCase): + """AdminSystemMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSystemMetadata(self): + """Test AdminSystemMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_system_metadata.AdminSystemMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py new file mode 100644 index 0000000000..6d7db76462 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task import AdminTask # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTask(unittest.TestCase): + """AdminTask unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTask(self): + """Test AdminTask""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task.AdminTask() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py new file mode 100644 index 0000000000..f9ea4c263e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_closure import AdminTaskClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskClosure(unittest.TestCase): + """AdminTaskClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskClosure(self): + """Test AdminTaskClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_closure.AdminTaskClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py new file mode 100644 index 0000000000..182a6e9c39 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionClosure(unittest.TestCase): + """AdminTaskExecutionClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionClosure(self): + """Test AdminTaskExecutionClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_closure.AdminTaskExecutionClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py new file mode 100644 index 0000000000..0c4208e35b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionEventRequest(unittest.TestCase): + """AdminTaskExecutionEventRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionEventRequest(self): + """Test AdminTaskExecutionEventRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_event_request.AdminTaskExecutionEventRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py new file mode 100644 index 0000000000..8d0ed7621f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionEventResponse(unittest.TestCase): + """AdminTaskExecutionEventResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionEventResponse(self): + """Test AdminTaskExecutionEventResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_event_response.AdminTaskExecutionEventResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py new file mode 100644 index 0000000000..d8f7588c71 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionGetDataResponse(unittest.TestCase): + """AdminTaskExecutionGetDataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionGetDataResponse(self): + """Test AdminTaskExecutionGetDataResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_get_data_response.AdminTaskExecutionGetDataResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py new file mode 100644 index 0000000000..d331a05ee8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionList(unittest.TestCase): + """AdminTaskExecutionList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionList(self): + """Test AdminTaskExecutionList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_list.AdminTaskExecutionList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py new file mode 100644 index 0000000000..8cc379d203 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_list import AdminTaskList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskList(unittest.TestCase): + """AdminTaskList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskList(self): + """Test AdminTaskList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_list.AdminTaskList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_attributes.py new file mode 100644 index 0000000000..718c67e3f8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskResourceAttributes(unittest.TestCase): + """AdminTaskResourceAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskResourceAttributes(self): + """Test AdminTaskResourceAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_resource_attributes.AdminTaskResourceAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_spec.py new file mode 100644 index 0000000000..3f02df671e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskResourceSpec(unittest.TestCase): + """AdminTaskResourceSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskResourceSpec(self): + """Test AdminTaskResourceSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_resource_spec.AdminTaskResourceSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py new file mode 100644 index 0000000000..1103ee9280 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_spec import AdminTaskSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskSpec(unittest.TestCase): + """AdminTaskSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskSpec(self): + """Test AdminTaskSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_spec.AdminTaskSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py new file mode 100644 index 0000000000..a990bf14dd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminUrlBlob(unittest.TestCase): + """AdminUrlBlob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminUrlBlob(self): + """Test AdminUrlBlob""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_url_blob.AdminUrlBlob() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_version.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_version.py new file mode 100644 index 0000000000..d89f6acf1f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_version.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_version import AdminVersion # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminVersion(unittest.TestCase): + """AdminVersion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminVersion(self): + """Test AdminVersion""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_version.AdminVersion() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py new file mode 100644 index 0000000000..c6f05d6f69 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow import AdminWorkflow # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflow(unittest.TestCase): + """AdminWorkflow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflow(self): + """Test AdminWorkflow""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow.AdminWorkflow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes.py new file mode 100644 index 0000000000..14d1a17087 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowAttributes(unittest.TestCase): + """AdminWorkflowAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowAttributes(self): + """Test AdminWorkflowAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_attributes.AdminWorkflowAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_request.py new file mode 100644 index 0000000000..1371760db0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_attributes_delete_request import AdminWorkflowAttributesDeleteRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowAttributesDeleteRequest(unittest.TestCase): + """AdminWorkflowAttributesDeleteRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowAttributesDeleteRequest(self): + """Test AdminWorkflowAttributesDeleteRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_attributes_delete_request.AdminWorkflowAttributesDeleteRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_response.py new file mode 100644 index 0000000000..2fd4861012 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_attributes_delete_response import AdminWorkflowAttributesDeleteResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowAttributesDeleteResponse(unittest.TestCase): + """AdminWorkflowAttributesDeleteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowAttributesDeleteResponse(self): + """Test AdminWorkflowAttributesDeleteResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_attributes_delete_response.AdminWorkflowAttributesDeleteResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_get_response.py new file mode 100644 index 0000000000..14eb77de4b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_get_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_attributes_get_response import AdminWorkflowAttributesGetResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowAttributesGetResponse(unittest.TestCase): + """AdminWorkflowAttributesGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowAttributesGetResponse(self): + """Test AdminWorkflowAttributesGetResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_attributes_get_response.AdminWorkflowAttributesGetResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_request.py new file mode 100644 index 0000000000..ce0e546c20 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_attributes_update_request import AdminWorkflowAttributesUpdateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowAttributesUpdateRequest(unittest.TestCase): + """AdminWorkflowAttributesUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowAttributesUpdateRequest(self): + """Test AdminWorkflowAttributesUpdateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_attributes_update_request.AdminWorkflowAttributesUpdateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_response.py new file mode 100644 index 0000000000..6e299cfeb7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_attributes_update_response import AdminWorkflowAttributesUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowAttributesUpdateResponse(unittest.TestCase): + """AdminWorkflowAttributesUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowAttributesUpdateResponse(self): + """Test AdminWorkflowAttributesUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_attributes_update_response.AdminWorkflowAttributesUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py new file mode 100644 index 0000000000..21e36219f9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowClosure(unittest.TestCase): + """AdminWorkflowClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowClosure(self): + """Test AdminWorkflowClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_closure.AdminWorkflowClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py new file mode 100644 index 0000000000..891580dcb5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowCreateRequest(unittest.TestCase): + """AdminWorkflowCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowCreateRequest(self): + """Test AdminWorkflowCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_create_request.AdminWorkflowCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py new file mode 100644 index 0000000000..0c0225f054 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowCreateResponse(unittest.TestCase): + """AdminWorkflowCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowCreateResponse(self): + """Test AdminWorkflowCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_create_response.AdminWorkflowCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_config.py new file mode 100644 index 0000000000..02ebdcb454 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_config.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionConfig(unittest.TestCase): + """AdminWorkflowExecutionConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionConfig(self): + """Test AdminWorkflowExecutionConfig""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_config.AdminWorkflowExecutionConfig() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py new file mode 100644 index 0000000000..c7d3b3833c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionEventRequest(unittest.TestCase): + """AdminWorkflowExecutionEventRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionEventRequest(self): + """Test AdminWorkflowExecutionEventRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_event_request.AdminWorkflowExecutionEventRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py new file mode 100644 index 0000000000..7341cc1a6d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionEventResponse(unittest.TestCase): + """AdminWorkflowExecutionEventResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionEventResponse(self): + """Test AdminWorkflowExecutionEventResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_event_response.AdminWorkflowExecutionEventResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py new file mode 100644 index 0000000000..8223916f6f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionGetDataResponse(unittest.TestCase): + """AdminWorkflowExecutionGetDataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionGetDataResponse(self): + """Test AdminWorkflowExecutionGetDataResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_get_data_response.AdminWorkflowExecutionGetDataResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_metrics_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_metrics_response.py new file mode 100644 index 0000000000..58eeaa0baf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_metrics_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_get_metrics_response import AdminWorkflowExecutionGetMetricsResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionGetMetricsResponse(unittest.TestCase): + """AdminWorkflowExecutionGetMetricsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionGetMetricsResponse(self): + """Test AdminWorkflowExecutionGetMetricsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_get_metrics_response.AdminWorkflowExecutionGetMetricsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py new file mode 100644 index 0000000000..83162478f2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_list import AdminWorkflowList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowList(unittest.TestCase): + """AdminWorkflowList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowList(self): + """Test AdminWorkflowList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_list.AdminWorkflowList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py new file mode 100644 index 0000000000..1734a4f999 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowSpec(unittest.TestCase): + """AdminWorkflowSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowSpec(self): + """Test AdminWorkflowSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_spec.AdminWorkflowSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py new file mode 100644 index 0000000000..d20ddcca9e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestBlobTypeBlobDimensionality(unittest.TestCase): + """BlobTypeBlobDimensionality unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlobTypeBlobDimensionality(self): + """Test BlobTypeBlobDimensionality""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.blob_type_blob_dimensionality.BlobTypeBlobDimensionality() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_catalog_reservation_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_catalog_reservation_status.py new file mode 100644 index 0000000000..1e797b8aaf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_catalog_reservation_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCatalogReservationStatus(unittest.TestCase): + """CatalogReservationStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCatalogReservationStatus(self): + """Test CatalogReservationStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.catalog_reservation_status.CatalogReservationStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py new file mode 100644 index 0000000000..577750bcb9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestComparisonExpressionOperator(unittest.TestCase): + """ComparisonExpressionOperator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComparisonExpressionOperator(self): + """Test ComparisonExpressionOperator""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.comparison_expression_operator.ComparisonExpressionOperator() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py new file mode 100644 index 0000000000..cb10dbf8af --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestConjunctionExpressionLogicalOperator(unittest.TestCase): + """ConjunctionExpressionLogicalOperator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConjunctionExpressionLogicalOperator(self): + """Test ConjunctionExpressionLogicalOperator""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.conjunction_expression_logical_operator.ConjunctionExpressionLogicalOperator() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py new file mode 100644 index 0000000000..8b32f6860c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestConnectionSetIdList(unittest.TestCase): + """ConnectionSetIdList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConnectionSetIdList(self): + """Test ConnectionSetIdList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.connection_set_id_list.ConnectionSetIdList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_container_architecture.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_container_architecture.py new file mode 100644 index 0000000000..ab878f4053 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_container_architecture.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.container_architecture import ContainerArchitecture # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestContainerArchitecture(unittest.TestCase): + """ContainerArchitecture unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerArchitecture(self): + """Test ContainerArchitecture""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.container_architecture.ContainerArchitecture() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py new file mode 100644 index 0000000000..e08d977e7f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_alias import CoreAlias # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreAlias(unittest.TestCase): + """CoreAlias unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreAlias(self): + """Test CoreAlias""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_alias.CoreAlias() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_approve_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_approve_condition.py new file mode 100644 index 0000000000..5ae11c3eb9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_approve_condition.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_approve_condition import CoreApproveCondition # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreApproveCondition(unittest.TestCase): + """CoreApproveCondition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreApproveCondition(self): + """Test CoreApproveCondition""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_approve_condition.CoreApproveCondition() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_array_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_array_node.py new file mode 100644 index 0000000000..5b3cb828c8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_array_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_array_node import CoreArrayNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreArrayNode(unittest.TestCase): + """CoreArrayNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreArrayNode(self): + """Test CoreArrayNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_array_node.CoreArrayNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py new file mode 100644 index 0000000000..939b79064b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binary import CoreBinary # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBinary(unittest.TestCase): + """CoreBinary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBinary(self): + """Test CoreBinary""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binary.CoreBinary() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py new file mode 100644 index 0000000000..3219ef5387 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding import CoreBinding # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBinding(unittest.TestCase): + """CoreBinding unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBinding(self): + """Test CoreBinding""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding.CoreBinding() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py new file mode 100644 index 0000000000..77b747420f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBindingData(unittest.TestCase): + """CoreBindingData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBindingData(self): + """Test CoreBindingData""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding_data.CoreBindingData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py new file mode 100644 index 0000000000..70d9c49bff --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBindingDataCollection(unittest.TestCase): + """CoreBindingDataCollection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBindingDataCollection(self): + """Test CoreBindingDataCollection""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding_data_collection.CoreBindingDataCollection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py new file mode 100644 index 0000000000..51ce1d0f1e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBindingDataMap(unittest.TestCase): + """CoreBindingDataMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBindingDataMap(self): + """Test CoreBindingDataMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding_data_map.CoreBindingDataMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py new file mode 100644 index 0000000000..eccd729f96 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_blob import CoreBlob # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBlob(unittest.TestCase): + """CoreBlob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBlob(self): + """Test CoreBlob""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_blob.CoreBlob() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py new file mode 100644 index 0000000000..c71578301a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBlobMetadata(unittest.TestCase): + """CoreBlobMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBlobMetadata(self): + """Test CoreBlobMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_blob_metadata.CoreBlobMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py new file mode 100644 index 0000000000..fbfd0e531e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_blob_type import CoreBlobType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBlobType(unittest.TestCase): + """CoreBlobType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBlobType(self): + """Test CoreBlobType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_blob_type.CoreBlobType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py new file mode 100644 index 0000000000..8cc7da37bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBooleanExpression(unittest.TestCase): + """CoreBooleanExpression unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBooleanExpression(self): + """Test CoreBooleanExpression""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_boolean_expression.CoreBooleanExpression() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py new file mode 100644 index 0000000000..229ef6e41a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_branch_node import CoreBranchNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBranchNode(unittest.TestCase): + """CoreBranchNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBranchNode(self): + """Test CoreBranchNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_branch_node.CoreBranchNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_artifact_tag.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_artifact_tag.py new file mode 100644 index 0000000000..c97c55bbf2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_artifact_tag.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCatalogArtifactTag(unittest.TestCase): + """CoreCatalogArtifactTag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCatalogArtifactTag(self): + """Test CoreCatalogArtifactTag""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_catalog_artifact_tag.CoreCatalogArtifactTag() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_cache_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_cache_status.py new file mode 100644 index 0000000000..e478da8890 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_cache_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCatalogCacheStatus(unittest.TestCase): + """CoreCatalogCacheStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCatalogCacheStatus(self): + """Test CoreCatalogCacheStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_catalog_cache_status.CoreCatalogCacheStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_metadata.py new file mode 100644 index 0000000000..9bc47d8d6e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCatalogMetadata(unittest.TestCase): + """CoreCatalogMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCatalogMetadata(self): + """Test CoreCatalogMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_catalog_metadata.CoreCatalogMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py new file mode 100644 index 0000000000..15bdc2da37 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreComparisonExpression(unittest.TestCase): + """CoreComparisonExpression unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreComparisonExpression(self): + """Test CoreComparisonExpression""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_comparison_expression.CoreComparisonExpression() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py new file mode 100644 index 0000000000..8823c3e148 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCompiledTask(unittest.TestCase): + """CoreCompiledTask unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCompiledTask(self): + """Test CoreCompiledTask""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_compiled_task.CoreCompiledTask() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py new file mode 100644 index 0000000000..f19d9cdab8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCompiledWorkflow(unittest.TestCase): + """CoreCompiledWorkflow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCompiledWorkflow(self): + """Test CoreCompiledWorkflow""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_compiled_workflow.CoreCompiledWorkflow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py new file mode 100644 index 0000000000..86de9922b6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCompiledWorkflowClosure(unittest.TestCase): + """CoreCompiledWorkflowClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCompiledWorkflowClosure(self): + """Test CoreCompiledWorkflowClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_compiled_workflow_closure.CoreCompiledWorkflowClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py new file mode 100644 index 0000000000..1aa1a0d3bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreConjunctionExpression(unittest.TestCase): + """CoreConjunctionExpression unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreConjunctionExpression(self): + """Test CoreConjunctionExpression""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_conjunction_expression.CoreConjunctionExpression() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py new file mode 100644 index 0000000000..55039a322b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_connection_set import CoreConnectionSet # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreConnectionSet(unittest.TestCase): + """CoreConnectionSet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreConnectionSet(self): + """Test CoreConnectionSet""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_connection_set.CoreConnectionSet() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py new file mode 100644 index 0000000000..0d067c6c4d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_container import CoreContainer # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreContainer(unittest.TestCase): + """CoreContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreContainer(self): + """Test CoreContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_container.CoreContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py new file mode 100644 index 0000000000..df6d682e2d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_container_port import CoreContainerPort # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreContainerPort(unittest.TestCase): + """CoreContainerPort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreContainerPort(self): + """Test CoreContainerPort""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_container_port.CoreContainerPort() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_data_loading_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_data_loading_config.py new file mode 100644 index 0000000000..3e66fb838a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_data_loading_config.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreDataLoadingConfig(unittest.TestCase): + """CoreDataLoadingConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreDataLoadingConfig(self): + """Test CoreDataLoadingConfig""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_data_loading_config.CoreDataLoadingConfig() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_enum_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_enum_type.py new file mode 100644 index 0000000000..f13f76b41e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_enum_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_enum_type import CoreEnumType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreEnumType(unittest.TestCase): + """CoreEnumType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreEnumType(self): + """Test CoreEnumType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_enum_type.CoreEnumType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py new file mode 100644 index 0000000000..bf094e6568 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_error import CoreError # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreError(unittest.TestCase): + """CoreError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreError(self): + """Test CoreError""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_error.CoreError() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py new file mode 100644 index 0000000000..b802fdfc5b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreExecutionError(unittest.TestCase): + """CoreExecutionError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreExecutionError(self): + """Test CoreExecutionError""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_execution_error.CoreExecutionError() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gate_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gate_node.py new file mode 100644 index 0000000000..bc6a966ffe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gate_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_gate_node import CoreGateNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreGateNode(unittest.TestCase): + """CoreGateNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreGateNode(self): + """Test CoreGateNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_gate_node.CoreGateNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py new file mode 100644 index 0000000000..67d59d762f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIdentifier(unittest.TestCase): + """CoreIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIdentifier(self): + """Test CoreIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_identifier.CoreIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identity.py new file mode 100644 index 0000000000..cfcfa86b90 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identity.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_identity import CoreIdentity # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIdentity(unittest.TestCase): + """CoreIdentity unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIdentity(self): + """Test CoreIdentity""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_identity.CoreIdentity() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py new file mode 100644 index 0000000000..de10f6131b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_if_block import CoreIfBlock # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIfBlock(unittest.TestCase): + """CoreIfBlock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIfBlock(self): + """Test CoreIfBlock""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_if_block.CoreIfBlock() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py new file mode 100644 index 0000000000..c0807d2e55 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_if_else_block import CoreIfElseBlock # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIfElseBlock(unittest.TestCase): + """CoreIfElseBlock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIfElseBlock(self): + """Test CoreIfElseBlock""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_if_else_block.CoreIfElseBlock() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_io_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_io_strategy.py new file mode 100644 index 0000000000..ce24dadfd2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_io_strategy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_io_strategy import CoreIOStrategy # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIOStrategy(unittest.TestCase): + """CoreIOStrategy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIOStrategy(self): + """Test CoreIOStrategy""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_io_strategy.CoreIOStrategy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_object_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_object_metadata.py new file mode 100644 index 0000000000..8659bc5603 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_object_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreK8sObjectMetadata(unittest.TestCase): + """CoreK8sObjectMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreK8sObjectMetadata(self): + """Test CoreK8sObjectMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_k8s_object_metadata.CoreK8sObjectMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_pod.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_pod.py new file mode 100644 index 0000000000..d462530260 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_pod.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_k8s_pod import CoreK8sPod # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreK8sPod(unittest.TestCase): + """CoreK8sPod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreK8sPod(self): + """Test CoreK8sPod""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_k8s_pod.CoreK8sPod() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py new file mode 100644 index 0000000000..9d8101b241 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreKeyValuePair(unittest.TestCase): + """CoreKeyValuePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreKeyValuePair(self): + """Test CoreKeyValuePair""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_key_value_pair.CoreKeyValuePair() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py new file mode 100644 index 0000000000..4340c97ec9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal import CoreLiteral # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteral(unittest.TestCase): + """CoreLiteral unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteral(self): + """Test CoreLiteral""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal.CoreLiteral() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py new file mode 100644 index 0000000000..d365b0ae7d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal_collection import CoreLiteralCollection # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteralCollection(unittest.TestCase): + """CoreLiteralCollection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteralCollection(self): + """Test CoreLiteralCollection""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal_collection.CoreLiteralCollection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py new file mode 100644 index 0000000000..d9e8d764e8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteralMap(unittest.TestCase): + """CoreLiteralMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteralMap(self): + """Test CoreLiteralMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal_map.CoreLiteralMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py new file mode 100644 index 0000000000..82c222dfa4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteralType(unittest.TestCase): + """CoreLiteralType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteralType(self): + """Test CoreLiteralType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal_type.CoreLiteralType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py new file mode 100644 index 0000000000..735b1e75e7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node import CoreNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNode(unittest.TestCase): + """CoreNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNode(self): + """Test CoreNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node.CoreNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py new file mode 100644 index 0000000000..995b4a879f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNodeExecutionIdentifier(unittest.TestCase): + """CoreNodeExecutionIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNodeExecutionIdentifier(self): + """Test CoreNodeExecutionIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node_execution_identifier.CoreNodeExecutionIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py new file mode 100644 index 0000000000..b07efd43c3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNodeExecutionPhase(unittest.TestCase): + """CoreNodeExecutionPhase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNodeExecutionPhase(self): + """Test CoreNodeExecutionPhase""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node_execution_phase.CoreNodeExecutionPhase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py new file mode 100644 index 0000000000..21511eeb13 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node_metadata import CoreNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNodeMetadata(unittest.TestCase): + """CoreNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNodeMetadata(self): + """Test CoreNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node_metadata.CoreNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_client.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_client.py new file mode 100644 index 0000000000..dc0001bbd4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_client.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreOAuth2Client(unittest.TestCase): + """CoreOAuth2Client unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreOAuth2Client(self): + """Test CoreOAuth2Client""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_o_auth2_client.CoreOAuth2Client() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request.py new file mode 100644 index 0000000000..492200f7f8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreOAuth2TokenRequest(unittest.TestCase): + """CoreOAuth2TokenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreOAuth2TokenRequest(self): + """Test CoreOAuth2TokenRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_o_auth2_token_request.CoreOAuth2TokenRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request_type.py new file mode 100644 index 0000000000..87c81de602 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreOAuth2TokenRequestType(unittest.TestCase): + """CoreOAuth2TokenRequestType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreOAuth2TokenRequestType(self): + """Test CoreOAuth2TokenRequestType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_o_auth2_token_request_type.CoreOAuth2TokenRequestType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py new file mode 100644 index 0000000000..f160e48f3e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_operand import CoreOperand # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreOperand(unittest.TestCase): + """CoreOperand unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreOperand(self): + """Test CoreOperand""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_operand.CoreOperand() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py new file mode 100644 index 0000000000..8860a35b25 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_output_reference import CoreOutputReference # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreOutputReference(unittest.TestCase): + """CoreOutputReference unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreOutputReference(self): + """Test CoreOutputReference""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_output_reference.CoreOutputReference() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py new file mode 100644 index 0000000000..6821a39782 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_parameter import CoreParameter # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreParameter(unittest.TestCase): + """CoreParameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreParameter(self): + """Test CoreParameter""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_parameter.CoreParameter() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py new file mode 100644 index 0000000000..901cadf694 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreParameterMap(unittest.TestCase): + """CoreParameterMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreParameterMap(self): + """Test CoreParameterMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_parameter_map.CoreParameterMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py new file mode 100644 index 0000000000..3162d68971 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_primitive import CorePrimitive # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCorePrimitive(unittest.TestCase): + """CorePrimitive unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCorePrimitive(self): + """Test CorePrimitive""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_primitive.CorePrimitive() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service.py new file mode 100644 index 0000000000..127aa3f11d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreQualityOfService(unittest.TestCase): + """CoreQualityOfService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreQualityOfService(self): + """Test CoreQualityOfService""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_quality_of_service.CoreQualityOfService() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service_spec.py new file mode 100644 index 0000000000..0a4234ebd6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreQualityOfServiceSpec(unittest.TestCase): + """CoreQualityOfServiceSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreQualityOfServiceSpec(self): + """Test CoreQualityOfServiceSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_quality_of_service_spec.CoreQualityOfServiceSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py new file mode 100644 index 0000000000..f69fbff104 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_resource_type import CoreResourceType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreResourceType(unittest.TestCase): + """CoreResourceType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreResourceType(self): + """Test CoreResourceType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_resource_type.CoreResourceType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py new file mode 100644 index 0000000000..144c2a03f9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_resources import CoreResources # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreResources(unittest.TestCase): + """CoreResources unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreResources(self): + """Test CoreResources""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_resources.CoreResources() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py new file mode 100644 index 0000000000..c64f4b370d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreRetryStrategy(unittest.TestCase): + """CoreRetryStrategy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreRetryStrategy(self): + """Test CoreRetryStrategy""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_retry_strategy.CoreRetryStrategy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py new file mode 100644 index 0000000000..1db01a110a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreRuntimeMetadata(unittest.TestCase): + """CoreRuntimeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreRuntimeMetadata(self): + """Test CoreRuntimeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_runtime_metadata.CoreRuntimeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py new file mode 100644 index 0000000000..3eda847bc9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_scalar import CoreScalar # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreScalar(unittest.TestCase): + """CoreScalar unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreScalar(self): + """Test CoreScalar""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_scalar.CoreScalar() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema.py new file mode 100644 index 0000000000..fa3d7ce39b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_schema import CoreSchema # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSchema(unittest.TestCase): + """CoreSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSchema(self): + """Test CoreSchema""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_schema.CoreSchema() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py new file mode 100644 index 0000000000..b74b186689 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSchemaType(unittest.TestCase): + """CoreSchemaType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSchemaType(self): + """Test CoreSchemaType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_schema_type.CoreSchemaType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_secret.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_secret.py new file mode 100644 index 0000000000..891702bef7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_secret.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_secret import CoreSecret # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSecret(unittest.TestCase): + """CoreSecret unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSecret(self): + """Test CoreSecret""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_secret.CoreSecret() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_security_context.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_security_context.py new file mode 100644 index 0000000000..1ee669ba52 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_security_context.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSecurityContext(unittest.TestCase): + """CoreSecurityContext unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSecurityContext(self): + """Test CoreSecurityContext""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_security_context.CoreSecurityContext() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_signal_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_signal_condition.py new file mode 100644 index 0000000000..4d05f4a9dd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_signal_condition.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_signal_condition import CoreSignalCondition # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSignalCondition(unittest.TestCase): + """CoreSignalCondition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSignalCondition(self): + """Test CoreSignalCondition""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_signal_condition.CoreSignalCondition() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py new file mode 100644 index 0000000000..49c7d3229b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_simple_type import CoreSimpleType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSimpleType(unittest.TestCase): + """CoreSimpleType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSimpleType(self): + """Test CoreSimpleType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_simple_type.CoreSimpleType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sleep_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sleep_condition.py new file mode 100644 index 0000000000..703fb1c9c1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sleep_condition.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_sleep_condition import CoreSleepCondition # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSleepCondition(unittest.TestCase): + """CoreSleepCondition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSleepCondition(self): + """Test CoreSleepCondition""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_sleep_condition.CoreSleepCondition() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_span.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_span.py new file mode 100644 index 0000000000..0e445a9696 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_span.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_span import CoreSpan # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSpan(unittest.TestCase): + """CoreSpan unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSpan(self): + """Test CoreSpan""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_span.CoreSpan() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sql.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sql.py new file mode 100644 index 0000000000..458b1172ca --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sql.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_sql import CoreSql # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSql(unittest.TestCase): + """CoreSql unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSql(self): + """Test CoreSql""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_sql.CoreSql() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset.py new file mode 100644 index 0000000000..c9de25a4d8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_structured_dataset import CoreStructuredDataset # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreStructuredDataset(unittest.TestCase): + """CoreStructuredDataset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreStructuredDataset(self): + """Test CoreStructuredDataset""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_structured_dataset.CoreStructuredDataset() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_metadata.py new file mode 100644 index 0000000000..49fc7f96ac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreStructuredDatasetMetadata(unittest.TestCase): + """CoreStructuredDatasetMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreStructuredDatasetMetadata(self): + """Test CoreStructuredDatasetMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_structured_dataset_metadata.CoreStructuredDatasetMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_type.py new file mode 100644 index 0000000000..98b5cd71c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreStructuredDatasetType(unittest.TestCase): + """CoreStructuredDatasetType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreStructuredDatasetType(self): + """Test CoreStructuredDatasetType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_structured_dataset_type.CoreStructuredDatasetType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py new file mode 100644 index 0000000000..f1054997e3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskExecutionIdentifier(unittest.TestCase): + """CoreTaskExecutionIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskExecutionIdentifier(self): + """Test CoreTaskExecutionIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_execution_identifier.CoreTaskExecutionIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py new file mode 100644 index 0000000000..72103d0d28 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskExecutionPhase(unittest.TestCase): + """CoreTaskExecutionPhase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskExecutionPhase(self): + """Test CoreTaskExecutionPhase""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_execution_phase.CoreTaskExecutionPhase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py new file mode 100644 index 0000000000..16af90f74c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_log import CoreTaskLog # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskLog(unittest.TestCase): + """CoreTaskLog unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskLog(self): + """Test CoreTaskLog""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_log.CoreTaskLog() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py new file mode 100644 index 0000000000..0c837f31fd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_metadata import CoreTaskMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskMetadata(unittest.TestCase): + """CoreTaskMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskMetadata(self): + """Test CoreTaskMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_metadata.CoreTaskMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py new file mode 100644 index 0000000000..c333213d22 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_node import CoreTaskNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskNode(unittest.TestCase): + """CoreTaskNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskNode(self): + """Test CoreTaskNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_node.CoreTaskNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node_overrides.py new file mode 100644 index 0000000000..0124d5fe38 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node_overrides.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskNodeOverrides(unittest.TestCase): + """CoreTaskNodeOverrides unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskNodeOverrides(self): + """Test CoreTaskNodeOverrides""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_node_overrides.CoreTaskNodeOverrides() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py new file mode 100644 index 0000000000..0d91a59cde --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskTemplate(unittest.TestCase): + """CoreTaskTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskTemplate(self): + """Test CoreTaskTemplate""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_template.CoreTaskTemplate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_annotation.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_annotation.py new file mode 100644 index 0000000000..91b76ec7a6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_annotation.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_type_annotation import CoreTypeAnnotation # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTypeAnnotation(unittest.TestCase): + """CoreTypeAnnotation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTypeAnnotation(self): + """Test CoreTypeAnnotation""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_type_annotation.CoreTypeAnnotation() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_structure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_structure.py new file mode 100644 index 0000000000..853bc08363 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_structure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_type_structure import CoreTypeStructure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTypeStructure(unittest.TestCase): + """CoreTypeStructure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTypeStructure(self): + """Test CoreTypeStructure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_type_structure.CoreTypeStructure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py new file mode 100644 index 0000000000..62d303ae96 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTypedInterface(unittest.TestCase): + """CoreTypedInterface unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTypedInterface(self): + """Test CoreTypedInterface""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_typed_interface.CoreTypedInterface() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union.py new file mode 100644 index 0000000000..c36c63b00d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_union import CoreUnion # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreUnion(unittest.TestCase): + """CoreUnion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreUnion(self): + """Test CoreUnion""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_union.CoreUnion() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_info.py new file mode 100644 index 0000000000..8cf030acc6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_union_info import CoreUnionInfo # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreUnionInfo(unittest.TestCase): + """CoreUnionInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreUnionInfo(self): + """Test CoreUnionInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_union_info.CoreUnionInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_type.py new file mode 100644 index 0000000000..4de1e428ec --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_union_type import CoreUnionType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreUnionType(unittest.TestCase): + """CoreUnionType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreUnionType(self): + """Test CoreUnionType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_union_type.CoreUnionType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py new file mode 100644 index 0000000000..38a04b0084 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_variable import CoreVariable # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreVariable(unittest.TestCase): + """CoreVariable unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreVariable(self): + """Test CoreVariable""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_variable.CoreVariable() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py new file mode 100644 index 0000000000..0d190536e2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreVariableMap(unittest.TestCase): + """CoreVariableMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreVariableMap(self): + """Test CoreVariableMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_variable_map.CoreVariableMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py new file mode 100644 index 0000000000..ff951ae6e6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_void import CoreVoid # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreVoid(unittest.TestCase): + """CoreVoid unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreVoid(self): + """Test CoreVoid""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_void.CoreVoid() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py new file mode 100644 index 0000000000..16e58b654d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowExecutionIdentifier(unittest.TestCase): + """CoreWorkflowExecutionIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowExecutionIdentifier(self): + """Test CoreWorkflowExecutionIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_execution_identifier.CoreWorkflowExecutionIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py new file mode 100644 index 0000000000..7926ebcded --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowExecutionPhase(unittest.TestCase): + """CoreWorkflowExecutionPhase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowExecutionPhase(self): + """Test CoreWorkflowExecutionPhase""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_execution_phase.CoreWorkflowExecutionPhase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py new file mode 100644 index 0000000000..8c3c210d80 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowMetadata(unittest.TestCase): + """CoreWorkflowMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowMetadata(self): + """Test CoreWorkflowMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_metadata.CoreWorkflowMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata_defaults.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata_defaults.py new file mode 100644 index 0000000000..d738a2ca53 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata_defaults.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowMetadataDefaults(unittest.TestCase): + """CoreWorkflowMetadataDefaults unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowMetadataDefaults(self): + """Test CoreWorkflowMetadataDefaults""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_metadata_defaults.CoreWorkflowMetadataDefaults() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py new file mode 100644 index 0000000000..4500cf70cf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_node import CoreWorkflowNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowNode(unittest.TestCase): + """CoreWorkflowNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowNode(self): + """Test CoreWorkflowNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_node.CoreWorkflowNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py new file mode 100644 index 0000000000..847fd2ae70 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowTemplate(unittest.TestCase): + """CoreWorkflowTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowTemplate(self): + """Test CoreWorkflowTemplate""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_template.CoreWorkflowTemplate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_data_loading_config_literal_map_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_data_loading_config_literal_map_format.py new file mode 100644 index 0000000000..1f96ce5d92 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_data_loading_config_literal_map_format.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestDataLoadingConfigLiteralMapFormat(unittest.TestCase): + """DataLoadingConfigLiteralMapFormat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDataLoadingConfigLiteralMapFormat(self): + """Test DataLoadingConfigLiteralMapFormat""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.data_loading_config_literal_map_format.DataLoadingConfigLiteralMapFormat() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_external_resource_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_external_resource_info.py new file mode 100644 index 0000000000..bcfedce651 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_external_resource_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventExternalResourceInfo(unittest.TestCase): + """EventExternalResourceInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventExternalResourceInfo(self): + """Test EventExternalResourceInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_external_resource_info.EventExternalResourceInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py new file mode 100644 index 0000000000..2eebbd100d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventNodeExecutionEvent(unittest.TestCase): + """EventNodeExecutionEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventNodeExecutionEvent(self): + """Test EventNodeExecutionEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_node_execution_event.EventNodeExecutionEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_node_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_node_execution_metadata.py new file mode 100644 index 0000000000..3e91fb9a11 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_node_execution_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventParentNodeExecutionMetadata(unittest.TestCase): + """EventParentNodeExecutionMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventParentNodeExecutionMetadata(self): + """Test EventParentNodeExecutionMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_parent_node_execution_metadata.EventParentNodeExecutionMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py new file mode 100644 index 0000000000..bbeae47143 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventParentTaskExecutionMetadata(unittest.TestCase): + """EventParentTaskExecutionMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventParentTaskExecutionMetadata(self): + """Test EventParentTaskExecutionMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_parent_task_execution_metadata.EventParentTaskExecutionMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_resource_pool_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_resource_pool_info.py new file mode 100644 index 0000000000..78d2169435 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_resource_pool_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventResourcePoolInfo(unittest.TestCase): + """EventResourcePoolInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventResourcePoolInfo(self): + """Test EventResourcePoolInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_resource_pool_info.EventResourcePoolInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py new file mode 100644 index 0000000000..ba834223be --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventTaskExecutionEvent(unittest.TestCase): + """EventTaskExecutionEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventTaskExecutionEvent(self): + """Test EventTaskExecutionEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_task_execution_event.EventTaskExecutionEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py new file mode 100644 index 0000000000..e2a33aa7b1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventWorkflowExecutionEvent(unittest.TestCase): + """EventWorkflowExecutionEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventWorkflowExecutionEvent(self): + """Test EventWorkflowExecutionEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_workflow_execution_event.EventWorkflowExecutionEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_error_error_kind.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_error_error_kind.py new file mode 100644 index 0000000000..b3f036bed5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_error_error_kind.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestExecutionErrorErrorKind(unittest.TestCase): + """ExecutionErrorErrorKind unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExecutionErrorErrorKind(self): + """Test ExecutionErrorErrorKind""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.execution_error_error_kind.ExecutionErrorErrorKind() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py new file mode 100644 index 0000000000..02ebaea8e9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestExecutionMetadataExecutionMode(unittest.TestCase): + """ExecutionMetadataExecutionMode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExecutionMetadataExecutionMode(self): + """Test ExecutionMetadataExecutionMode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.execution_metadata_execution_mode.ExecutionMetadataExecutionMode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_dynamic_workflow_node_metadata.py new file mode 100644 index 0000000000..e423e0c99f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_dynamic_workflow_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminDynamicWorkflowNodeMetadata(unittest.TestCase): + """FlyteidladminDynamicWorkflowNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminDynamicWorkflowNodeMetadata(self): + """Test FlyteidladminDynamicWorkflowNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata.FlyteidladminDynamicWorkflowNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py new file mode 100644 index 0000000000..f841bad233 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminNodeExecution(unittest.TestCase): + """FlyteidladminNodeExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminNodeExecution(self): + """Test FlyteidladminNodeExecution""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_node_execution.FlyteidladminNodeExecution() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_request.py new file mode 100644 index 0000000000..f48dc0d868 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_task_create_request import FlyteidladminTaskCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminTaskCreateRequest(unittest.TestCase): + """FlyteidladminTaskCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminTaskCreateRequest(self): + """Test FlyteidladminTaskCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_task_create_request.FlyteidladminTaskCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_response.py new file mode 100644 index 0000000000..3dbeb80b81 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_task_create_response import FlyteidladminTaskCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminTaskCreateResponse(unittest.TestCase): + """FlyteidladminTaskCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminTaskCreateResponse(self): + """Test FlyteidladminTaskCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_task_create_response.FlyteidladminTaskCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py new file mode 100644 index 0000000000..a354b9fa0a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminTaskExecution(unittest.TestCase): + """FlyteidladminTaskExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminTaskExecution(self): + """Test FlyteidladminTaskExecution""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_task_execution.FlyteidladminTaskExecution() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_node_metadata.py new file mode 100644 index 0000000000..fc2d570e28 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminTaskNodeMetadata(unittest.TestCase): + """FlyteidladminTaskNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminTaskNodeMetadata(self): + """Test FlyteidladminTaskNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_task_node_metadata.FlyteidladminTaskNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py new file mode 100644 index 0000000000..7bea00e6e4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminWorkflowNodeMetadata(unittest.TestCase): + """FlyteidladminWorkflowNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminWorkflowNodeMetadata(self): + """Test FlyteidladminWorkflowNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_workflow_node_metadata.FlyteidladminWorkflowNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_dynamic_workflow_node_metadata.py new file mode 100644 index 0000000000..6ed67696e8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_dynamic_workflow_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidleventDynamicWorkflowNodeMetadata(unittest.TestCase): + """FlyteidleventDynamicWorkflowNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidleventDynamicWorkflowNodeMetadata(self): + """Test FlyteidleventDynamicWorkflowNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata.FlyteidleventDynamicWorkflowNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_execution_metadata.py new file mode 100644 index 0000000000..d72265cec5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_execution_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidleventTaskExecutionMetadata(unittest.TestCase): + """FlyteidleventTaskExecutionMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidleventTaskExecutionMetadata(self): + """Test FlyteidleventTaskExecutionMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidlevent_task_execution_metadata.FlyteidleventTaskExecutionMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_node_metadata.py new file mode 100644 index 0000000000..53d81ca99c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidleventTaskNodeMetadata(unittest.TestCase): + """FlyteidleventTaskNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidleventTaskNodeMetadata(self): + """Test FlyteidleventTaskNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidlevent_task_node_metadata.FlyteidleventTaskNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py new file mode 100644 index 0000000000..b61456adee --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidleventWorkflowNodeMetadata(unittest.TestCase): + """FlyteidleventWorkflowNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidleventWorkflowNodeMetadata(self): + """Test FlyteidleventWorkflowNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidlevent_workflow_node_metadata.FlyteidleventWorkflowNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_download_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_download_mode.py new file mode 100644 index 0000000000..12192e4964 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_download_mode.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestIOStrategyDownloadMode(unittest.TestCase): + """IOStrategyDownloadMode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIOStrategyDownloadMode(self): + """Test IOStrategyDownloadMode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.io_strategy_download_mode.IOStrategyDownloadMode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_upload_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_upload_mode.py new file mode 100644 index 0000000000..25e3179cdb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_upload_mode.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestIOStrategyUploadMode(unittest.TestCase): + """IOStrategyUploadMode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIOStrategyUploadMode(self): + """Test IOStrategyUploadMode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.io_strategy_upload_mode.IOStrategyUploadMode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_plugin_override_missing_plugin_behavior.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_plugin_override_missing_plugin_behavior.py new file mode 100644 index 0000000000..664029dc9a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_plugin_override_missing_plugin_behavior.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestPluginOverrideMissingPluginBehavior(unittest.TestCase): + """PluginOverrideMissingPluginBehavior unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPluginOverrideMissingPluginBehavior(self): + """Test PluginOverrideMissingPluginBehavior""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.plugin_override_missing_plugin_behavior.PluginOverrideMissingPluginBehavior() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_project_project_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_project_project_state.py new file mode 100644 index 0000000000..fa711af55f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_project_project_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.project_project_state import ProjectProjectState # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProjectProjectState(unittest.TestCase): + """ProjectProjectState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProjectProjectState(self): + """Test ProjectProjectState""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.project_project_state.ProjectProjectState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py new file mode 100644 index 0000000000..0f37fce300 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_list_value import ProtobufListValue # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufListValue(unittest.TestCase): + """ProtobufListValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufListValue(self): + """Test ProtobufListValue""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_list_value.ProtobufListValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py new file mode 100644 index 0000000000..876b115cc0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_null_value import ProtobufNullValue # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufNullValue(unittest.TestCase): + """ProtobufNullValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufNullValue(self): + """Test ProtobufNullValue""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_null_value.ProtobufNullValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py new file mode 100644 index 0000000000..8edcc32145 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufStruct(unittest.TestCase): + """ProtobufStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufStruct(self): + """Test ProtobufStruct""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_struct.ProtobufStruct() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py new file mode 100644 index 0000000000..6cbae9d155 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_value import ProtobufValue # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufValue(unittest.TestCase): + """ProtobufValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufValue(self): + """Test ProtobufValue""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_value.ProtobufValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_quality_of_service_tier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_quality_of_service_tier.py new file mode 100644 index 0000000000..d655c725ab --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_quality_of_service_tier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestQualityOfServiceTier(unittest.TestCase): + """QualityOfServiceTier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testQualityOfServiceTier(self): + """Test QualityOfServiceTier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.quality_of_service_tier.QualityOfServiceTier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py new file mode 100644 index 0000000000..8b141bd69a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestResourcesResourceEntry(unittest.TestCase): + """ResourcesResourceEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourcesResourceEntry(self): + """Test ResourcesResourceEntry""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.resources_resource_entry.ResourcesResourceEntry() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py new file mode 100644 index 0000000000..0ce5f04e55 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.resources_resource_name import ResourcesResourceName # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestResourcesResourceName(unittest.TestCase): + """ResourcesResourceName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourcesResourceName(self): + """Test ResourcesResourceName""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.resources_resource_name.ResourcesResourceName() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py new file mode 100644 index 0000000000..695ff97ea9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestRuntimeMetadataRuntimeType(unittest.TestCase): + """RuntimeMetadataRuntimeType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRuntimeMetadataRuntimeType(self): + """Test RuntimeMetadataRuntimeType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.runtime_metadata_runtime_type.RuntimeMetadataRuntimeType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py new file mode 100644 index 0000000000..9faafc840c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSchemaColumnSchemaColumnType(unittest.TestCase): + """SchemaColumnSchemaColumnType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchemaColumnSchemaColumnType(self): + """Test SchemaColumnSchemaColumnType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.schema_column_schema_column_type.SchemaColumnSchemaColumnType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py new file mode 100644 index 0000000000..e503ceb525 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSchemaTypeSchemaColumn(unittest.TestCase): + """SchemaTypeSchemaColumn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchemaTypeSchemaColumn(self): + """Test SchemaTypeSchemaColumn""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.schema_type_schema_column.SchemaTypeSchemaColumn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_secret_mount_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_secret_mount_type.py new file mode 100644 index 0000000000..8e0b686f6d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_secret_mount_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.secret_mount_type import SecretMountType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSecretMountType(unittest.TestCase): + """SecretMountType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSecretMountType(self): + """Test SecretMountType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.secret_mount_type.SecretMountType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py new file mode 100644 index 0000000000..74b27825dd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.sort_direction import SortDirection # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSortDirection(unittest.TestCase): + """SortDirection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSortDirection(self): + """Test SortDirection""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.sort_direction.SortDirection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sql_dialect.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sql_dialect.py new file mode 100644 index 0000000000..943c2b8c99 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sql_dialect.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.sql_dialect import SqlDialect # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSqlDialect(unittest.TestCase): + """SqlDialect unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSqlDialect(self): + """Test SqlDialect""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.sql_dialect.SqlDialect() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_structured_dataset_type_dataset_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_structured_dataset_type_dataset_column.py new file mode 100644 index 0000000000..d801f1fd88 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_structured_dataset_type_dataset_column.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestStructuredDatasetTypeDatasetColumn(unittest.TestCase): + """StructuredDatasetTypeDatasetColumn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStructuredDatasetTypeDatasetColumn(self): + """Test StructuredDatasetTypeDatasetColumn""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.structured_dataset_type_dataset_column.StructuredDatasetTypeDatasetColumn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_execution_metadata_instance_class.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_execution_metadata_instance_class.py new file mode 100644 index 0000000000..9129b45d97 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_execution_metadata_instance_class.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestTaskExecutionMetadataInstanceClass(unittest.TestCase): + """TaskExecutionMetadataInstanceClass unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskExecutionMetadataInstanceClass(self): + """Test TaskExecutionMetadataInstanceClass""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.task_execution_metadata_instance_class.TaskExecutionMetadataInstanceClass() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py new file mode 100644 index 0000000000..4adfba3c53 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestTaskLogMessageFormat(unittest.TestCase): + """TaskLogMessageFormat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskLogMessageFormat(self): + """Test TaskLogMessageFormat""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.task_log_message_format.TaskLogMessageFormat() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_workflow_metadata_on_failure_policy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_workflow_metadata_on_failure_policy.py new file mode 100644 index 0000000000..e0e403763c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_workflow_metadata_on_failure_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestWorkflowMetadataOnFailurePolicy(unittest.TestCase): + """WorkflowMetadataOnFailurePolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWorkflowMetadataOnFailurePolicy(self): + """Test WorkflowMetadataOnFailurePolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.workflow_metadata_on_failure_policy.WorkflowMetadataOnFailurePolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini new file mode 100644 index 0000000000..3d0be613cf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py new file mode 100644 index 0000000000..a030b6ad66 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/identity.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/service/identity.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x11\n\x0fUserInfoRequest\"\xa5\x02\n\x10UserInfoResponse\x12\x18\n\x07subject\x18\x01 \x01(\tR\x07subject\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12-\n\x12preferred_username\x18\x03 \x01(\tR\x11preferredUsername\x12\x1d\n\ngiven_name\x18\x04 \x01(\tR\tgivenName\x12\x1f\n\x0b\x66\x61mily_name\x18\x05 \x01(\tR\nfamilyName\x12\x14\n\x05\x65mail\x18\x06 \x01(\tR\x05\x65mail\x12\x18\n\x07picture\x18\x07 \x01(\tR\x07picture\x12\x44\n\x11\x61\x64\x64itional_claims\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructR\x10\x61\x64\x64itionalClaims2q\n\x0fIdentityService\x12^\n\x08UserInfo\x12!.flyteidl.service.UserInfoRequest\x1a\".flyteidl.service.UserInfoResponse\"\x0b\x82\xd3\xe4\x93\x02\x05\x12\x03/meB\xbf\x01\n\x14\x63om.flyteidl.serviceB\rIdentityProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.identity_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\rIdentityProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _IDENTITYSERVICE.methods_by_name['UserInfo']._options = None + _IDENTITYSERVICE.methods_by_name['UserInfo']._serialized_options = b'\202\323\344\223\002\005\022\003/me' + _globals['_USERINFOREQUEST']._serialized_start=113 + _globals['_USERINFOREQUEST']._serialized_end=130 + _globals['_USERINFORESPONSE']._serialized_start=133 + _globals['_USERINFORESPONSE']._serialized_end=426 + _globals['_IDENTITYSERVICE']._serialized_start=428 + _globals['_IDENTITYSERVICE']._serialized_end=541 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi new file mode 100644 index 0000000000..34b64ae3a1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi @@ -0,0 +1,31 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class UserInfoRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class UserInfoResponse(_message.Message): + __slots__ = ["subject", "name", "preferred_username", "given_name", "family_name", "email", "picture", "additional_claims"] + SUBJECT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + PREFERRED_USERNAME_FIELD_NUMBER: _ClassVar[int] + GIVEN_NAME_FIELD_NUMBER: _ClassVar[int] + FAMILY_NAME_FIELD_NUMBER: _ClassVar[int] + EMAIL_FIELD_NUMBER: _ClassVar[int] + PICTURE_FIELD_NUMBER: _ClassVar[int] + ADDITIONAL_CLAIMS_FIELD_NUMBER: _ClassVar[int] + subject: str + name: str + preferred_username: str + given_name: str + family_name: str + email: str + picture: str + additional_claims: _struct_pb2.Struct + def __init__(self, subject: _Optional[str] = ..., name: _Optional[str] = ..., preferred_username: _Optional[str] = ..., given_name: _Optional[str] = ..., family_name: _Optional[str] = ..., email: _Optional[str] = ..., picture: _Optional[str] = ..., additional_claims: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py new file mode 100644 index 0000000000..0754d44ffe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py @@ -0,0 +1,70 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import identity_pb2 as flyteidl_dot_service_dot_identity__pb2 + + +class IdentityServiceStub(object): + """IdentityService defines an RPC Service that interacts with user/app identities. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UserInfo = channel.unary_unary( + '/flyteidl.service.IdentityService/UserInfo', + request_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, + ) + + +class IdentityServiceServicer(object): + """IdentityService defines an RPC Service that interacts with user/app identities. + """ + + def UserInfo(self, request, context): + """Retrieves user information about the currently logged in user. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_IdentityServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UserInfo': grpc.unary_unary_rpc_method_handler( + servicer.UserInfo, + request_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.FromString, + response_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.IdentityService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class IdentityService(object): + """IdentityService defines an RPC Service that interacts with user/app identities. + """ + + @staticmethod + def UserInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.IdentityService/UserInfo', + flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, + flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py new file mode 100644 index 0000000000..193e7d21db --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/signal.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/service/signal.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1b\x66lyteidl/admin/signal.proto2\x9a\x03\n\rSignalService\x12W\n\x11GetOrCreateSignal\x12(.flyteidl.admin.SignalGetOrCreateRequest\x1a\x16.flyteidl.admin.Signal\"\x00\x12\xc1\x01\n\x0bListSignals\x12!.flyteidl.admin.SignalListRequest\x1a\x1a.flyteidl.admin.SignalList\"s\x82\xd3\xe4\x93\x02m\x12k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12l\n\tSetSignal\x12 .flyteidl.admin.SignalSetRequest\x1a!.flyteidl.admin.SignalSetResponse\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/api/v1/signalsB\xbd\x01\n\x14\x63om.flyteidl.serviceB\x0bSignalProtoP\x01Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.signal_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\013SignalProtoP\001Z7github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _SIGNALSERVICE.methods_by_name['ListSignals']._options = None + _SIGNALSERVICE.methods_by_name['ListSignals']._serialized_options = b'\202\323\344\223\002m\022k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' + _SIGNALSERVICE.methods_by_name['SetSignal']._options = None + _SIGNALSERVICE.methods_by_name['SetSignal']._serialized_options = b'\202\323\344\223\002\024:\001*\"\017/api/v1/signals' + _globals['_SIGNALSERVICE']._serialized_start=111 + _globals['_SIGNALSERVICE']._serialized_end=521 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi new file mode 100644 index 0000000000..794a8d4d3f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi @@ -0,0 +1,6 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from flyteidl.admin import signal_pb2 as _signal_pb2 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py new file mode 100644 index 0000000000..05c27fb001 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py @@ -0,0 +1,145 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 + + +class SignalServiceStub(object): + """SignalService defines an RPC Service that may create, update, and retrieve signal(s). + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetOrCreateSignal = channel.unary_unary( + '/flyteidl.service.SignalService/GetOrCreateSignal', + request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, + ) + self.ListSignals = channel.unary_unary( + '/flyteidl.service.SignalService/ListSignals', + request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, + ) + self.SetSignal = channel.unary_unary( + '/flyteidl.service.SignalService/SetSignal', + request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, + ) + + +class SignalServiceServicer(object): + """SignalService defines an RPC Service that may create, update, and retrieve signal(s). + """ + + def GetOrCreateSignal(self, request, context): + """Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve + a signal, meaning the first call will create the signal and all subsequent calls will + fetch the existing signal. This is only useful during Flyte Workflow execution and therefore + is not exposed to mitigate unintended behavior. + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + description: "Retrieve a signal, creating it if it does not exist." + }; + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListSignals(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetSignal(self, request, context): + """Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SignalServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetOrCreateSignal': grpc.unary_unary_rpc_method_handler( + servicer.GetOrCreateSignal, + request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_signal__pb2.Signal.SerializeToString, + ), + 'ListSignals': grpc.unary_unary_rpc_method_handler( + servicer.ListSignals, + request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.SerializeToString, + ), + 'SetSignal': grpc.unary_unary_rpc_method_handler( + servicer.SetSignal, + request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.SignalService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class SignalService(object): + """SignalService defines an RPC Service that may create, update, and retrieve signal(s). + """ + + @staticmethod + def GetOrCreateSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/GetOrCreateSignal', + flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, + flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListSignals(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/ListSignals', + flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, + flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/SetSignal', + flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, + flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/validate/__init__.py b/flyteidl/gen/pb_python/validate/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/validate/validate_pb2.py b/flyteidl/gen/pb_python/validate/validate_pb2.py new file mode 100644 index 0000000000..73988e7c38 --- /dev/null +++ b/flyteidl/gen/pb_python/validate/validate_pb2.py @@ -0,0 +1,2366 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: validate/validate.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='validate/validate.proto', + package='validate', + syntax='proto2', + serialized_options=_b('\n\032io.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate'), + serialized_pb=_b('\n\x17validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x07\n\nFieldRules\x12\'\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"\x7f\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xfd\x03\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0b\n\x03len\x18\x13 \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tlen_bytes\x18\x14 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\x14\n\x0cnot_contains\x18\x17 \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x12\x11\n\x07\x61\x64\x64ress\x18\x15 \x01(\x08H\x00\x12\x0e\n\x04uuid\x18\x16 \x01(\x08H\x00\x12\x30\n\x10well_known_regex\x18\x18 \x01(\x0e\x32\x14.validate.KnownRegexH\x00\x12\x14\n\x06strict\x18\x19 \x01(\x08:\x04true\x12\x14\n\x0cignore_empty\x18\x1a \x01(\x08\x42\x0c\n\nwell_known\"\xfb\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0b\n\x03len\x18\r \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x12\x14\n\x0cignore_empty\x18\x0e \x01(\x08\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"\x80\x01\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x05 \x01(\x08\"\xa3\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x06 \x01(\x08\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration*F\n\nKnownRegex\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x14\n\x10HTTP_HEADER_NAME\x10\x01\x12\x15\n\x11HTTP_HEADER_VALUE\x10\x02:2\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\xaf\x08 \x01(\x08:1\n\x07ignored\x12\x1f.google.protobuf.MessageOptions\x18\xb0\x08 \x01(\x08:0\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\xaf\x08 \x01(\x08:C\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\xaf\x08 \x01(\x0b\x32\x14.validate.FieldRulesBP\n\x1aio.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate') + , + dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + +_KNOWNREGEX = _descriptor.EnumDescriptor( + name='KnownRegex', + full_name='validate.KnownRegex', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_NAME', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_VALUE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=4541, + serialized_end=4611, +) +_sym_db.RegisterEnumDescriptor(_KNOWNREGEX) + +KnownRegex = enum_type_wrapper.EnumTypeWrapper(_KNOWNREGEX) +UNKNOWN = 0 +HTTP_HEADER_NAME = 1 +HTTP_HEADER_VALUE = 2 + +DISABLED_FIELD_NUMBER = 1071 +disabled = _descriptor.FieldDescriptor( + name='disabled', full_name='validate.disabled', index=0, + number=1071, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +IGNORED_FIELD_NUMBER = 1072 +ignored = _descriptor.FieldDescriptor( + name='ignored', full_name='validate.ignored', index=1, + number=1072, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +REQUIRED_FIELD_NUMBER = 1071 +required = _descriptor.FieldDescriptor( + name='required', full_name='validate.required', index=2, + number=1071, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +RULES_FIELD_NUMBER = 1071 +rules = _descriptor.FieldDescriptor( + name='rules', full_name='validate.rules', index=3, + number=1071, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) + + +_FIELDRULES = _descriptor.Descriptor( + name='FieldRules', + full_name='validate.FieldRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='message', full_name='validate.FieldRules.message', index=0, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='float', full_name='validate.FieldRules.float', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='double', full_name='validate.FieldRules.double', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int32', full_name='validate.FieldRules.int32', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int64', full_name='validate.FieldRules.int64', index=4, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint32', full_name='validate.FieldRules.uint32', index=5, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint64', full_name='validate.FieldRules.uint64', index=6, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint32', full_name='validate.FieldRules.sint32', index=7, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint64', full_name='validate.FieldRules.sint64', index=8, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed32', full_name='validate.FieldRules.fixed32', index=9, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed64', full_name='validate.FieldRules.fixed64', index=10, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed32', full_name='validate.FieldRules.sfixed32', index=11, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed64', full_name='validate.FieldRules.sfixed64', index=12, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bool', full_name='validate.FieldRules.bool', index=13, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string', full_name='validate.FieldRules.string', index=14, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bytes', full_name='validate.FieldRules.bytes', index=15, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enum', full_name='validate.FieldRules.enum', index=16, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repeated', full_name='validate.FieldRules.repeated', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='map', full_name='validate.FieldRules.map', index=18, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='any', full_name='validate.FieldRules.any', index=19, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='validate.FieldRules.duration', index=20, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='timestamp', full_name='validate.FieldRules.timestamp', index=21, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='type', full_name='validate.FieldRules.type', + index=0, containing_type=None, fields=[]), + ], + serialized_start=137, + serialized_end=1057, +) + + +_FLOATRULES = _descriptor.Descriptor( + name='FloatRules', + full_name='validate.FloatRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.FloatRules.const', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.FloatRules.lt', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.FloatRules.lte', index=2, + number=3, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.FloatRules.gt', index=3, + number=4, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.FloatRules.gte', index=4, + number=5, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.FloatRules.in', index=5, + number=6, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.FloatRules.not_in', index=6, + number=7, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.FloatRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1059, + serialized_end=1186, +) + + +_DOUBLERULES = _descriptor.Descriptor( + name='DoubleRules', + full_name='validate.DoubleRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.DoubleRules.const', index=0, + number=1, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DoubleRules.lt', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DoubleRules.lte', index=2, + number=3, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DoubleRules.gt', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DoubleRules.gte', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DoubleRules.in', index=5, + number=6, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DoubleRules.not_in', index=6, + number=7, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.DoubleRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1189, + serialized_end=1317, +) + + +_INT32RULES = _descriptor.Descriptor( + name='Int32Rules', + full_name='validate.Int32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int32Rules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int32Rules.lt', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int32Rules.lte', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int32Rules.gt', index=3, + number=4, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int32Rules.gte', index=4, + number=5, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int32Rules.in', index=5, + number=6, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int32Rules.not_in', index=6, + number=7, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1319, + serialized_end=1446, +) + + +_INT64RULES = _descriptor.Descriptor( + name='Int64Rules', + full_name='validate.Int64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int64Rules.const', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int64Rules.lt', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int64Rules.lte', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int64Rules.gt', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int64Rules.gte', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int64Rules.in', index=5, + number=6, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int64Rules.not_in', index=6, + number=7, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1448, + serialized_end=1575, +) + + +_UINT32RULES = _descriptor.Descriptor( + name='UInt32Rules', + full_name='validate.UInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt32Rules.const', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt32Rules.lt', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt32Rules.lte', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt32Rules.gt', index=3, + number=4, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt32Rules.gte', index=4, + number=5, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt32Rules.in', index=5, + number=6, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt32Rules.not_in', index=6, + number=7, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1578, + serialized_end=1706, +) + + +_UINT64RULES = _descriptor.Descriptor( + name='UInt64Rules', + full_name='validate.UInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt64Rules.const', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt64Rules.lt', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt64Rules.lte', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt64Rules.gt', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt64Rules.gte', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt64Rules.in', index=5, + number=6, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt64Rules.not_in', index=6, + number=7, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1709, + serialized_end=1837, +) + + +_SINT32RULES = _descriptor.Descriptor( + name='SInt32Rules', + full_name='validate.SInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt32Rules.const', index=0, + number=1, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt32Rules.lt', index=1, + number=2, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt32Rules.lte', index=2, + number=3, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt32Rules.gt', index=3, + number=4, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt32Rules.gte', index=4, + number=5, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt32Rules.in', index=5, + number=6, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt32Rules.not_in', index=6, + number=7, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1840, + serialized_end=1968, +) + + +_SINT64RULES = _descriptor.Descriptor( + name='SInt64Rules', + full_name='validate.SInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt64Rules.const', index=0, + number=1, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt64Rules.lt', index=1, + number=2, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt64Rules.lte', index=2, + number=3, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt64Rules.gt', index=3, + number=4, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt64Rules.gte', index=4, + number=5, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt64Rules.in', index=5, + number=6, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt64Rules.not_in', index=6, + number=7, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1971, + serialized_end=2099, +) + + +_FIXED32RULES = _descriptor.Descriptor( + name='Fixed32Rules', + full_name='validate.Fixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed32Rules.const', index=0, + number=1, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed32Rules.lt', index=1, + number=2, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed32Rules.lte', index=2, + number=3, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed32Rules.gt', index=3, + number=4, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed32Rules.gte', index=4, + number=5, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed32Rules.in', index=5, + number=6, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed32Rules.not_in', index=6, + number=7, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2102, + serialized_end=2231, +) + + +_FIXED64RULES = _descriptor.Descriptor( + name='Fixed64Rules', + full_name='validate.Fixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed64Rules.const', index=0, + number=1, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed64Rules.lt', index=1, + number=2, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed64Rules.lte', index=2, + number=3, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed64Rules.gt', index=3, + number=4, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed64Rules.gte', index=4, + number=5, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed64Rules.in', index=5, + number=6, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed64Rules.not_in', index=6, + number=7, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2234, + serialized_end=2363, +) + + +_SFIXED32RULES = _descriptor.Descriptor( + name='SFixed32Rules', + full_name='validate.SFixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed32Rules.const', index=0, + number=1, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed32Rules.lt', index=1, + number=2, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed32Rules.lte', index=2, + number=3, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed32Rules.gt', index=3, + number=4, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed32Rules.gte', index=4, + number=5, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed32Rules.in', index=5, + number=6, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed32Rules.not_in', index=6, + number=7, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2366, + serialized_end=2496, +) + + +_SFIXED64RULES = _descriptor.Descriptor( + name='SFixed64Rules', + full_name='validate.SFixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed64Rules.const', index=0, + number=1, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed64Rules.lt', index=1, + number=2, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed64Rules.lte', index=2, + number=3, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed64Rules.gt', index=3, + number=4, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed64Rules.gte', index=4, + number=5, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed64Rules.in', index=5, + number=6, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed64Rules.not_in', index=6, + number=7, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2499, + serialized_end=2629, +) + + +_BOOLRULES = _descriptor.Descriptor( + name='BoolRules', + full_name='validate.BoolRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BoolRules.const', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2631, + serialized_end=2657, +) + + +_STRINGRULES = _descriptor.Descriptor( + name='StringRules', + full_name='validate.StringRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.StringRules.const', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='len', full_name='validate.StringRules.len', index=1, + number=19, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.StringRules.min_len', index=2, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.StringRules.max_len', index=3, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='len_bytes', full_name='validate.StringRules.len_bytes', index=4, + number=20, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_bytes', full_name='validate.StringRules.min_bytes', index=5, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_bytes', full_name='validate.StringRules.max_bytes', index=6, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.StringRules.pattern', index=7, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.StringRules.prefix', index=8, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.StringRules.suffix', index=9, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.StringRules.contains', index=10, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_contains', full_name='validate.StringRules.not_contains', index=11, + number=23, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.StringRules.in', index=12, + number=10, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.StringRules.not_in', index=13, + number=11, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='email', full_name='validate.StringRules.email', index=14, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hostname', full_name='validate.StringRules.hostname', index=15, + number=13, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.StringRules.ip', index=16, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.StringRules.ipv4', index=17, + number=15, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.StringRules.ipv6', index=18, + number=16, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri', full_name='validate.StringRules.uri', index=19, + number=17, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri_ref', full_name='validate.StringRules.uri_ref', index=20, + number=18, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='address', full_name='validate.StringRules.address', index=21, + number=21, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uuid', full_name='validate.StringRules.uuid', index=22, + number=22, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='well_known_regex', full_name='validate.StringRules.well_known_regex', index=23, + number=24, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='strict', full_name='validate.StringRules.strict', index=24, + number=25, type=8, cpp_type=7, label=1, + has_default_value=True, default_value=True, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.StringRules.ignore_empty', index=25, + number=26, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.StringRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2660, + serialized_end=3169, +) + + +_BYTESRULES = _descriptor.Descriptor( + name='BytesRules', + full_name='validate.BytesRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BytesRules.const', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='len', full_name='validate.BytesRules.len', index=1, + number=13, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.BytesRules.min_len', index=2, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.BytesRules.max_len', index=3, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.BytesRules.pattern', index=4, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.BytesRules.prefix', index=5, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.BytesRules.suffix', index=6, + number=6, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.BytesRules.contains', index=7, + number=7, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.BytesRules.in', index=8, + number=8, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.BytesRules.not_in', index=9, + number=9, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.BytesRules.ip', index=10, + number=10, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.BytesRules.ipv4', index=11, + number=11, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.BytesRules.ipv6', index=12, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.BytesRules.ignore_empty', index=13, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.BytesRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=3172, + serialized_end=3423, +) + + +_ENUMRULES = _descriptor.Descriptor( + name='EnumRules', + full_name='validate.EnumRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.EnumRules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='defined_only', full_name='validate.EnumRules.defined_only', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.EnumRules.in', index=2, + number=3, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.EnumRules.not_in', index=3, + number=4, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3425, + serialized_end=3501, +) + + +_MESSAGERULES = _descriptor.Descriptor( + name='MessageRules', + full_name='validate.MessageRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='skip', full_name='validate.MessageRules.skip', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='required', full_name='validate.MessageRules.required', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3503, + serialized_end=3549, +) + + +_REPEATEDRULES = _descriptor.Descriptor( + name='RepeatedRules', + full_name='validate.RepeatedRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_items', full_name='validate.RepeatedRules.min_items', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_items', full_name='validate.RepeatedRules.max_items', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='unique', full_name='validate.RepeatedRules.unique', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='items', full_name='validate.RepeatedRules.items', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.RepeatedRules.ignore_empty', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3552, + serialized_end=3680, +) + + +_MAPRULES = _descriptor.Descriptor( + name='MapRules', + full_name='validate.MapRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_pairs', full_name='validate.MapRules.min_pairs', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_pairs', full_name='validate.MapRules.max_pairs', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='no_sparse', full_name='validate.MapRules.no_sparse', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keys', full_name='validate.MapRules.keys', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='values', full_name='validate.MapRules.values', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.MapRules.ignore_empty', index=5, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3683, + serialized_end=3846, +) + + +_ANYRULES = _descriptor.Descriptor( + name='AnyRules', + full_name='validate.AnyRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.AnyRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.AnyRules.in', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.AnyRules.not_in', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3848, + serialized_end=3904, +) + + +_DURATIONRULES = _descriptor.Descriptor( + name='DurationRules', + full_name='validate.DurationRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.DurationRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.DurationRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DurationRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DurationRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DurationRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DurationRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DurationRules.in', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DurationRules.not_in', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3907, + serialized_end=4222, +) + + +_TIMESTAMPRULES = _descriptor.Descriptor( + name='TimestampRules', + full_name='validate.TimestampRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.TimestampRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.TimestampRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.TimestampRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.TimestampRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.TimestampRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.TimestampRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt_now', full_name='validate.TimestampRules.lt_now', index=6, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt_now', full_name='validate.TimestampRules.gt_now', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='within', full_name='validate.TimestampRules.within', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4225, + serialized_end=4539, +) + +_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES +_FIELDRULES.fields_by_name['float'].message_type = _FLOATRULES +_FIELDRULES.fields_by_name['double'].message_type = _DOUBLERULES +_FIELDRULES.fields_by_name['int32'].message_type = _INT32RULES +_FIELDRULES.fields_by_name['int64'].message_type = _INT64RULES +_FIELDRULES.fields_by_name['uint32'].message_type = _UINT32RULES +_FIELDRULES.fields_by_name['uint64'].message_type = _UINT64RULES +_FIELDRULES.fields_by_name['sint32'].message_type = _SINT32RULES +_FIELDRULES.fields_by_name['sint64'].message_type = _SINT64RULES +_FIELDRULES.fields_by_name['fixed32'].message_type = _FIXED32RULES +_FIELDRULES.fields_by_name['fixed64'].message_type = _FIXED64RULES +_FIELDRULES.fields_by_name['sfixed32'].message_type = _SFIXED32RULES +_FIELDRULES.fields_by_name['sfixed64'].message_type = _SFIXED64RULES +_FIELDRULES.fields_by_name['bool'].message_type = _BOOLRULES +_FIELDRULES.fields_by_name['string'].message_type = _STRINGRULES +_FIELDRULES.fields_by_name['bytes'].message_type = _BYTESRULES +_FIELDRULES.fields_by_name['enum'].message_type = _ENUMRULES +_FIELDRULES.fields_by_name['repeated'].message_type = _REPEATEDRULES +_FIELDRULES.fields_by_name['map'].message_type = _MAPRULES +_FIELDRULES.fields_by_name['any'].message_type = _ANYRULES +_FIELDRULES.fields_by_name['duration'].message_type = _DURATIONRULES +_FIELDRULES.fields_by_name['timestamp'].message_type = _TIMESTAMPRULES +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['float']) +_FIELDRULES.fields_by_name['float'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['double']) +_FIELDRULES.fields_by_name['double'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int32']) +_FIELDRULES.fields_by_name['int32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int64']) +_FIELDRULES.fields_by_name['int64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint32']) +_FIELDRULES.fields_by_name['uint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint64']) +_FIELDRULES.fields_by_name['uint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint32']) +_FIELDRULES.fields_by_name['sint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint64']) +_FIELDRULES.fields_by_name['sint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed32']) +_FIELDRULES.fields_by_name['fixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed64']) +_FIELDRULES.fields_by_name['fixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed32']) +_FIELDRULES.fields_by_name['sfixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed64']) +_FIELDRULES.fields_by_name['sfixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bool']) +_FIELDRULES.fields_by_name['bool'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['string']) +_FIELDRULES.fields_by_name['string'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bytes']) +_FIELDRULES.fields_by_name['bytes'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['enum']) +_FIELDRULES.fields_by_name['enum'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['repeated']) +_FIELDRULES.fields_by_name['repeated'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['map']) +_FIELDRULES.fields_by_name['map'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['any']) +_FIELDRULES.fields_by_name['any'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['duration']) +_FIELDRULES.fields_by_name['duration'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['timestamp']) +_FIELDRULES.fields_by_name['timestamp'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_STRINGRULES.fields_by_name['well_known_regex'].enum_type = _KNOWNREGEX +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['email']) +_STRINGRULES.fields_by_name['email'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['hostname']) +_STRINGRULES.fields_by_name['hostname'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ip']) +_STRINGRULES.fields_by_name['ip'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv4']) +_STRINGRULES.fields_by_name['ipv4'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv6']) +_STRINGRULES.fields_by_name['ipv6'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri']) +_STRINGRULES.fields_by_name['uri'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri_ref']) +_STRINGRULES.fields_by_name['uri_ref'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['address']) +_STRINGRULES.fields_by_name['address'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uuid']) +_STRINGRULES.fields_by_name['uuid'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['well_known_regex']) +_STRINGRULES.fields_by_name['well_known_regex'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ip']) +_BYTESRULES.fields_by_name['ip'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv4']) +_BYTESRULES.fields_by_name['ipv4'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv6']) +_BYTESRULES.fields_by_name['ipv6'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_REPEATEDRULES.fields_by_name['items'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['keys'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['values'].message_type = _FIELDRULES +_DURATIONRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['not_in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TIMESTAMPRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['within'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name['FieldRules'] = _FIELDRULES +DESCRIPTOR.message_types_by_name['FloatRules'] = _FLOATRULES +DESCRIPTOR.message_types_by_name['DoubleRules'] = _DOUBLERULES +DESCRIPTOR.message_types_by_name['Int32Rules'] = _INT32RULES +DESCRIPTOR.message_types_by_name['Int64Rules'] = _INT64RULES +DESCRIPTOR.message_types_by_name['UInt32Rules'] = _UINT32RULES +DESCRIPTOR.message_types_by_name['UInt64Rules'] = _UINT64RULES +DESCRIPTOR.message_types_by_name['SInt32Rules'] = _SINT32RULES +DESCRIPTOR.message_types_by_name['SInt64Rules'] = _SINT64RULES +DESCRIPTOR.message_types_by_name['Fixed32Rules'] = _FIXED32RULES +DESCRIPTOR.message_types_by_name['Fixed64Rules'] = _FIXED64RULES +DESCRIPTOR.message_types_by_name['SFixed32Rules'] = _SFIXED32RULES +DESCRIPTOR.message_types_by_name['SFixed64Rules'] = _SFIXED64RULES +DESCRIPTOR.message_types_by_name['BoolRules'] = _BOOLRULES +DESCRIPTOR.message_types_by_name['StringRules'] = _STRINGRULES +DESCRIPTOR.message_types_by_name['BytesRules'] = _BYTESRULES +DESCRIPTOR.message_types_by_name['EnumRules'] = _ENUMRULES +DESCRIPTOR.message_types_by_name['MessageRules'] = _MESSAGERULES +DESCRIPTOR.message_types_by_name['RepeatedRules'] = _REPEATEDRULES +DESCRIPTOR.message_types_by_name['MapRules'] = _MAPRULES +DESCRIPTOR.message_types_by_name['AnyRules'] = _ANYRULES +DESCRIPTOR.message_types_by_name['DurationRules'] = _DURATIONRULES +DESCRIPTOR.message_types_by_name['TimestampRules'] = _TIMESTAMPRULES +DESCRIPTOR.enum_types_by_name['KnownRegex'] = _KNOWNREGEX +DESCRIPTOR.extensions_by_name['disabled'] = disabled +DESCRIPTOR.extensions_by_name['ignored'] = ignored +DESCRIPTOR.extensions_by_name['required'] = required +DESCRIPTOR.extensions_by_name['rules'] = rules +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FieldRules = _reflection.GeneratedProtocolMessageType('FieldRules', (_message.Message,), dict( + DESCRIPTOR = _FIELDRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FieldRules) + )) +_sym_db.RegisterMessage(FieldRules) + +FloatRules = _reflection.GeneratedProtocolMessageType('FloatRules', (_message.Message,), dict( + DESCRIPTOR = _FLOATRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FloatRules) + )) +_sym_db.RegisterMessage(FloatRules) + +DoubleRules = _reflection.GeneratedProtocolMessageType('DoubleRules', (_message.Message,), dict( + DESCRIPTOR = _DOUBLERULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DoubleRules) + )) +_sym_db.RegisterMessage(DoubleRules) + +Int32Rules = _reflection.GeneratedProtocolMessageType('Int32Rules', (_message.Message,), dict( + DESCRIPTOR = _INT32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int32Rules) + )) +_sym_db.RegisterMessage(Int32Rules) + +Int64Rules = _reflection.GeneratedProtocolMessageType('Int64Rules', (_message.Message,), dict( + DESCRIPTOR = _INT64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int64Rules) + )) +_sym_db.RegisterMessage(Int64Rules) + +UInt32Rules = _reflection.GeneratedProtocolMessageType('UInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt32Rules) + )) +_sym_db.RegisterMessage(UInt32Rules) + +UInt64Rules = _reflection.GeneratedProtocolMessageType('UInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt64Rules) + )) +_sym_db.RegisterMessage(UInt64Rules) + +SInt32Rules = _reflection.GeneratedProtocolMessageType('SInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt32Rules) + )) +_sym_db.RegisterMessage(SInt32Rules) + +SInt64Rules = _reflection.GeneratedProtocolMessageType('SInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt64Rules) + )) +_sym_db.RegisterMessage(SInt64Rules) + +Fixed32Rules = _reflection.GeneratedProtocolMessageType('Fixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed32Rules) + )) +_sym_db.RegisterMessage(Fixed32Rules) + +Fixed64Rules = _reflection.GeneratedProtocolMessageType('Fixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed64Rules) + )) +_sym_db.RegisterMessage(Fixed64Rules) + +SFixed32Rules = _reflection.GeneratedProtocolMessageType('SFixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed32Rules) + )) +_sym_db.RegisterMessage(SFixed32Rules) + +SFixed64Rules = _reflection.GeneratedProtocolMessageType('SFixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed64Rules) + )) +_sym_db.RegisterMessage(SFixed64Rules) + +BoolRules = _reflection.GeneratedProtocolMessageType('BoolRules', (_message.Message,), dict( + DESCRIPTOR = _BOOLRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BoolRules) + )) +_sym_db.RegisterMessage(BoolRules) + +StringRules = _reflection.GeneratedProtocolMessageType('StringRules', (_message.Message,), dict( + DESCRIPTOR = _STRINGRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.StringRules) + )) +_sym_db.RegisterMessage(StringRules) + +BytesRules = _reflection.GeneratedProtocolMessageType('BytesRules', (_message.Message,), dict( + DESCRIPTOR = _BYTESRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BytesRules) + )) +_sym_db.RegisterMessage(BytesRules) + +EnumRules = _reflection.GeneratedProtocolMessageType('EnumRules', (_message.Message,), dict( + DESCRIPTOR = _ENUMRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.EnumRules) + )) +_sym_db.RegisterMessage(EnumRules) + +MessageRules = _reflection.GeneratedProtocolMessageType('MessageRules', (_message.Message,), dict( + DESCRIPTOR = _MESSAGERULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MessageRules) + )) +_sym_db.RegisterMessage(MessageRules) + +RepeatedRules = _reflection.GeneratedProtocolMessageType('RepeatedRules', (_message.Message,), dict( + DESCRIPTOR = _REPEATEDRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.RepeatedRules) + )) +_sym_db.RegisterMessage(RepeatedRules) + +MapRules = _reflection.GeneratedProtocolMessageType('MapRules', (_message.Message,), dict( + DESCRIPTOR = _MAPRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MapRules) + )) +_sym_db.RegisterMessage(MapRules) + +AnyRules = _reflection.GeneratedProtocolMessageType('AnyRules', (_message.Message,), dict( + DESCRIPTOR = _ANYRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.AnyRules) + )) +_sym_db.RegisterMessage(AnyRules) + +DurationRules = _reflection.GeneratedProtocolMessageType('DurationRules', (_message.Message,), dict( + DESCRIPTOR = _DURATIONRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DurationRules) + )) +_sym_db.RegisterMessage(DurationRules) + +TimestampRules = _reflection.GeneratedProtocolMessageType('TimestampRules', (_message.Message,), dict( + DESCRIPTOR = _TIMESTAMPRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.TimestampRules) + )) +_sym_db.RegisterMessage(TimestampRules) + +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(disabled) +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(ignored) +google_dot_protobuf_dot_descriptor__pb2.OneofOptions.RegisterExtension(required) +rules.message_type = _FIELDRULES +google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(rules) + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_rust/datacatalog.rs b/flyteidl/gen/pb_rust/datacatalog.rs new file mode 100644 index 0000000000..01464d01c8 --- /dev/null +++ b/flyteidl/gen/pb_rust/datacatalog.rs @@ -0,0 +1,556 @@ +// @generated +/// +/// Request message for creating a Dataset. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDatasetRequest { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, +} +/// +/// Response message for creating a Dataset +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDatasetResponse { +} +/// +/// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier +/// which is a combination of several fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDatasetRequest { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, +} +/// +/// Response message for retrieving a Dataset. The response will include the metadata for the +/// Dataset. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDatasetResponse { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, +} +/// +/// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that +/// can be one of artifact_id or tag. The result returned will include the artifact data and metadata +/// associated with the artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetArtifactRequest { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, + #[prost(oneof="get_artifact_request::QueryHandle", tags="2, 3")] + pub query_handle: ::core::option::Option, +} +/// Nested message and enum types in `GetArtifactRequest`. +pub mod get_artifact_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum QueryHandle { + #[prost(string, tag="2")] + ArtifactId(::prost::alloc::string::String), + #[prost(string, tag="3")] + TagName(::prost::alloc::string::String), + } +} +/// +/// Response message for retrieving an Artifact. The result returned will include the artifact data +/// and metadata associated with the artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetArtifactResponse { + #[prost(message, optional, tag="1")] + pub artifact: ::core::option::Option, +} +/// +/// Request message for creating an Artifact and its associated artifact Data. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateArtifactRequest { + #[prost(message, optional, tag="1")] + pub artifact: ::core::option::Option, +} +/// +/// Response message for creating an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateArtifactResponse { +} +/// +/// Request message for tagging an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AddTagRequest { + #[prost(message, optional, tag="1")] + pub tag: ::core::option::Option, +} +/// +/// Response message for tagging an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AddTagResponse { +} +/// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListArtifactsRequest { + /// Use a datasetID for which you want to retrieve the artifacts + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, + /// Apply the filter expression to this query + #[prost(message, optional, tag="2")] + pub filter: ::core::option::Option, + /// Pagination options to get a page of artifacts + #[prost(message, optional, tag="3")] + pub pagination: ::core::option::Option, +} +/// Response to list artifacts +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListArtifactsResponse { + /// The list of artifacts + #[prost(message, repeated, tag="1")] + pub artifacts: ::prost::alloc::vec::Vec, + /// Token to use to request the next page, pass this into the next requests PaginationOptions + #[prost(string, tag="2")] + pub next_token: ::prost::alloc::string::String, +} +/// List the datasets for the given query +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListDatasetsRequest { + /// Apply the filter expression to this query + #[prost(message, optional, tag="1")] + pub filter: ::core::option::Option, + /// Pagination options to get a page of datasets + #[prost(message, optional, tag="2")] + pub pagination: ::core::option::Option, +} +/// List the datasets response with token for next pagination +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListDatasetsResponse { + /// The list of datasets + #[prost(message, repeated, tag="1")] + pub datasets: ::prost::alloc::vec::Vec, + /// Token to use to request the next page, pass this into the next requests PaginationOptions + #[prost(string, tag="2")] + pub next_token: ::prost::alloc::string::String, +} +/// +/// Request message for updating an Artifact and overwriting its associated ArtifactData. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateArtifactRequest { + /// ID of dataset the artifact is associated with + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, + /// List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + /// ArtifactData entries will be removed from the underlying blob storage and database. + #[prost(message, repeated, tag="4")] + pub data: ::prost::alloc::vec::Vec, + /// Either ID of artifact or name of tag to retrieve existing artifact from + #[prost(oneof="update_artifact_request::QueryHandle", tags="2, 3")] + pub query_handle: ::core::option::Option, +} +/// Nested message and enum types in `UpdateArtifactRequest`. +pub mod update_artifact_request { + /// Either ID of artifact or name of tag to retrieve existing artifact from + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum QueryHandle { + #[prost(string, tag="2")] + ArtifactId(::prost::alloc::string::String), + #[prost(string, tag="3")] + TagName(::prost::alloc::string::String), + } +} +/// +/// Response message for updating an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateArtifactResponse { + /// The unique ID of the artifact updated + #[prost(string, tag="1")] + pub artifact_id: ::prost::alloc::string::String, +} +/// +/// ReservationID message that is composed of several string fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReservationId { + /// The unique ID for the reserved dataset + #[prost(message, optional, tag="1")] + pub dataset_id: ::core::option::Option, + /// The specific artifact tag for the reservation + #[prost(string, tag="2")] + pub tag_name: ::prost::alloc::string::String, +} +/// Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetOrExtendReservationRequest { + /// The unique ID for the reservation + #[prost(message, optional, tag="1")] + pub reservation_id: ::core::option::Option, + /// The unique ID of the owner for the reservation + #[prost(string, tag="2")] + pub owner_id: ::prost::alloc::string::String, + /// Requested reservation extension heartbeat interval + #[prost(message, optional, tag="3")] + pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, +} +/// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Reservation { + /// The unique ID for the reservation + #[prost(message, optional, tag="1")] + pub reservation_id: ::core::option::Option, + /// The unique ID of the owner for the reservation + #[prost(string, tag="2")] + pub owner_id: ::prost::alloc::string::String, + /// Recommended heartbeat interval to extend reservation + #[prost(message, optional, tag="3")] + pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, + /// Expiration timestamp of this reservation + #[prost(message, optional, tag="4")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, + /// Free-form metadata associated with the artifact + #[prost(message, optional, tag="6")] + pub metadata: ::core::option::Option, +} +/// Response including either a newly minted reservation or the existing reservation +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetOrExtendReservationResponse { + /// The reservation to be acquired or extended + #[prost(message, optional, tag="1")] + pub reservation: ::core::option::Option, +} +/// Request to release reservation +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReleaseReservationRequest { + /// The unique ID for the reservation + #[prost(message, optional, tag="1")] + pub reservation_id: ::core::option::Option, + /// The unique ID of the owner for the reservation + #[prost(string, tag="2")] + pub owner_id: ::prost::alloc::string::String, +} +/// Response to release reservation +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReleaseReservationResponse { +} +/// +/// Dataset message. It is uniquely identified by DatasetID. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Dataset { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, + #[prost(string, repeated, tag="3")] + pub partition_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// +/// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Partition { + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, +} +/// +/// DatasetID message that is composed of several string fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DatasetId { + /// The name of the project + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// The name of the dataset + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + /// The domain (eg. environment) + #[prost(string, tag="3")] + pub domain: ::prost::alloc::string::String, + /// Version of the data schema + #[prost(string, tag="4")] + pub version: ::prost::alloc::string::String, + /// UUID for the dataset (if set the above fields are optional) + #[prost(string, tag="5")] + pub uuid: ::prost::alloc::string::String, +} +/// +/// Artifact message. It is composed of several string fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Artifact { + /// The unique ID of the artifact + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// The Dataset that the artifact belongs to + #[prost(message, optional, tag="2")] + pub dataset: ::core::option::Option, + /// A list of data that is associated with the artifact + #[prost(message, repeated, tag="3")] + pub data: ::prost::alloc::vec::Vec, + /// Free-form metadata associated with the artifact + #[prost(message, optional, tag="4")] + pub metadata: ::core::option::Option, + #[prost(message, repeated, tag="5")] + pub partitions: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="6")] + pub tags: ::prost::alloc::vec::Vec, + /// creation timestamp of artifact, autogenerated by service + #[prost(message, optional, tag="7")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// +/// ArtifactData that belongs to an artifact +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactData { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub value: ::core::option::Option, +} +/// +/// Tag message that is unique to a Dataset. It is associated to a single artifact and +/// can be retrieved by name later. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Tag { + /// Name of tag + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The tagged artifact + #[prost(string, tag="2")] + pub artifact_id: ::prost::alloc::string::String, + /// The Dataset that this tag belongs to + #[prost(message, optional, tag="3")] + pub dataset: ::core::option::Option, +} +/// +/// Metadata representation for artifacts and datasets +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Metadata { + /// key map is a dictionary of key/val strings that represent metadata + #[prost(map="string, string", tag="1")] + pub key_map: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Filter expression that is composed of a combination of single filters +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct FilterExpression { + #[prost(message, repeated, tag="1")] + pub filters: ::prost::alloc::vec::Vec, +} +/// A single property to filter on. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SinglePropertyFilter { + /// field 10 in case we add more entities to query + #[prost(enumeration="single_property_filter::ComparisonOperator", tag="10")] + pub operator: i32, + #[prost(oneof="single_property_filter::PropertyFilter", tags="1, 2, 3, 4")] + pub property_filter: ::core::option::Option, +} +/// Nested message and enum types in `SinglePropertyFilter`. +pub mod single_property_filter { + /// as use-cases come up we can add more operators, ex: gte, like, not eq etc. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ComparisonOperator { + Equals = 0, + } + impl ComparisonOperator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ComparisonOperator::Equals => "EQUALS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "EQUALS" => Some(Self::Equals), + _ => None, + } + } + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum PropertyFilter { + #[prost(message, tag="1")] + TagFilter(super::TagPropertyFilter), + #[prost(message, tag="2")] + PartitionFilter(super::PartitionPropertyFilter), + #[prost(message, tag="3")] + ArtifactFilter(super::ArtifactPropertyFilter), + #[prost(message, tag="4")] + DatasetFilter(super::DatasetPropertyFilter), + } +} +/// Artifact properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactPropertyFilter { + /// oneof because we can add more properties in the future + #[prost(oneof="artifact_property_filter::Property", tags="1")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `ArtifactPropertyFilter`. +pub mod artifact_property_filter { + /// oneof because we can add more properties in the future + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(string, tag="1")] + ArtifactId(::prost::alloc::string::String), + } +} +/// Tag properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TagPropertyFilter { + #[prost(oneof="tag_property_filter::Property", tags="1")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `TagPropertyFilter`. +pub mod tag_property_filter { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(string, tag="1")] + TagName(::prost::alloc::string::String), + } +} +/// Partition properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PartitionPropertyFilter { + #[prost(oneof="partition_property_filter::Property", tags="1")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `PartitionPropertyFilter`. +pub mod partition_property_filter { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(message, tag="1")] + KeyVal(super::KeyValuePair), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct KeyValuePair { + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, +} +/// Dataset properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DatasetPropertyFilter { + #[prost(oneof="dataset_property_filter::Property", tags="1, 2, 3, 4")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `DatasetPropertyFilter`. +pub mod dataset_property_filter { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(string, tag="1")] + Project(::prost::alloc::string::String), + #[prost(string, tag="2")] + Name(::prost::alloc::string::String), + #[prost(string, tag="3")] + Domain(::prost::alloc::string::String), + #[prost(string, tag="4")] + Version(::prost::alloc::string::String), + } +} +/// Pagination options for making list requests +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PaginationOptions { + /// the max number of results to return + #[prost(uint32, tag="1")] + pub limit: u32, + /// the token to pass to fetch the next page + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, + /// the property that we want to sort the results by + #[prost(enumeration="pagination_options::SortKey", tag="3")] + pub sort_key: i32, + /// the sort order of the results + #[prost(enumeration="pagination_options::SortOrder", tag="4")] + pub sort_order: i32, +} +/// Nested message and enum types in `PaginationOptions`. +pub mod pagination_options { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum SortOrder { + Descending = 0, + Ascending = 1, + } + impl SortOrder { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SortOrder::Descending => "DESCENDING", + SortOrder::Ascending => "ASCENDING", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DESCENDING" => Some(Self::Descending), + "ASCENDING" => Some(Self::Ascending), + _ => None, + } + } + } + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum SortKey { + CreationTime = 0, + } + impl SortKey { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SortKey::CreationTime => "CREATION_TIME", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CREATION_TIME" => Some(Self::CreationTime), + _ => None, + } + } + } +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs new file mode 100644 index 0000000000..a6acaa9277 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -0,0 +1,2978 @@ +// @generated +/// Represents a subset of runtime task execution metadata that are relevant to external plugins. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionMetadata { + /// ID of the task execution + #[prost(message, optional, tag="1")] + pub task_execution_id: ::core::option::Option, + /// k8s namespace where the task is executed in + #[prost(string, tag="2")] + pub namespace: ::prost::alloc::string::String, + /// Labels attached to the task execution + #[prost(map="string, string", tag="3")] + pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Annotations attached to the task execution + #[prost(map="string, string", tag="4")] + pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// k8s service account associated with the task execution + #[prost(string, tag="5")] + pub k8s_service_account: ::prost::alloc::string::String, + /// Environment variables attached to the task execution + #[prost(map="string, string", tag="6")] + pub environment_variables: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Represents a request structure to create task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateTaskRequest { + /// The inputs required to start the execution. All required inputs must be + /// included in this map. If not required and not provided, defaults apply. + /// +optional + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="2")] + pub template: ::core::option::Option, + /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + #[prost(string, tag="3")] + pub output_prefix: ::prost::alloc::string::String, + /// subset of runtime task execution metadata. + #[prost(message, optional, tag="4")] + pub task_execution_metadata: ::core::option::Option, +} +/// Represents a create response structure. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateTaskResponse { + /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + #[prost(bytes="vec", tag="1")] + pub resource_meta: ::prost::alloc::vec::Vec, +} +/// A message used to fetch a job resource from flyte agent server. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// Metadata about the resource to be pass to the agent. + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, +} +/// Response to get an individual task resource. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskResponse { + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Resource { + /// The state of the execution is used to control its visibility in the UI/CLI. + #[prost(enumeration="State", tag="1")] + pub state: i32, + /// The outputs of the execution. It's typically used by sql task. Agent service will create a + /// Structured dataset pointing to the query result table. + /// +optional + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, +} +/// A message used to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteTaskRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// Metadata about the resource to be pass to the agent. + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, +} +/// Response to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteTaskResponse { +} +/// The state of the execution is used to control its visibility in the UI/CLI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum State { + RetryableFailure = 0, + PermanentFailure = 1, + Pending = 2, + Running = 3, + Succeeded = 4, +} +impl State { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + State::RetryableFailure => "RETRYABLE_FAILURE", + State::PermanentFailure => "PERMANENT_FAILURE", + State::Pending => "PENDING", + State::Running => "RUNNING", + State::Succeeded => "SUCCEEDED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), + "PERMANENT_FAILURE" => Some(Self::PermanentFailure), + "PENDING" => Some(Self::Pending), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + _ => None, + } + } +} +/// Encapsulates specifications for routing an execution onto a specific cluster. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ClusterAssignment { + #[prost(string, tag="3")] + pub cluster_pool_name: ::prost::alloc::string::String, +} +/// Encapsulation of fields that identifies a Flyte resource. +/// A Flyte resource can be a task, workflow or launch plan. +/// A resource can internally have multiple versions and is uniquely identified +/// by project, domain, and name. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityIdentifier { + /// Name of the project the resource belongs to. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the resource belongs to. + /// A domain can be considered as a subset within a specific project. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// User provided value for the resource. + /// The combination of project + domain + name uniquely identifies the resource. + /// +optional - in certain contexts - like 'List API', 'Launch plans' + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, +} +/// Additional metadata around a named entity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityMetadata { + /// Common description across all versions of the entity + /// +optional + #[prost(string, tag="1")] + pub description: ::prost::alloc::string::String, + /// Shared state across all version of the entity + /// At this point in time, only workflow entities can have their state archived. + #[prost(enumeration="NamedEntityState", tag="2")] + pub state: i32, +} +/// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, +/// workflow or launch plan. A NamedEntity is exclusively identified by its resource type +/// and identifier. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntity { + /// Resource type of the named entity. One of Task, Workflow or LaunchPlan. + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, + /// Additional metadata around a named entity. + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, +} +/// Specifies sort ordering in a list request. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Sort { + /// Indicates an attribute to sort the response values. + /// +required + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + /// Indicates the direction to apply sort key for response values. + /// +optional + #[prost(enumeration="sort::Direction", tag="2")] + pub direction: i32, +} +/// Nested message and enum types in `Sort`. +pub mod sort { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Direction { + /// By default, fields are sorted in descending order. + Descending = 0, + Ascending = 1, + } + impl Direction { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Direction::Descending => "DESCENDING", + Direction::Ascending => "ASCENDING", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DESCENDING" => Some(Self::Descending), + "ASCENDING" => Some(Self::Ascending), + _ => None, + } + } + } +} +/// Represents a request structure to list NamedEntityIdentifiers. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityIdentifierListRequest { + /// Name of the project that contains the identifiers. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the identifiers belongs to within the project. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="3")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, + /// Specifies how listed entities should be sorted in the response. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, + /// Indicates a list of filters passed as string. + /// +optional + #[prost(string, tag="6")] + pub filters: ::prost::alloc::string::String, +} +/// Represents a request structure to list NamedEntity objects +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityListRequest { + /// Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. + /// +required + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// Name of the project that contains the identifiers. + /// +required + #[prost(string, tag="2")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the identifiers belongs to within the project. + #[prost(string, tag="3")] + pub domain: ::prost::alloc::string::String, + /// Indicates the number of resources to be returned. + #[prost(uint32, tag="4")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="5")] + pub token: ::prost::alloc::string::String, + /// Specifies how listed entities should be sorted in the response. + /// +optional + #[prost(message, optional, tag="6")] + pub sort_by: ::core::option::Option, + /// Indicates a list of filters passed as string. + /// +optional + #[prost(string, tag="7")] + pub filters: ::prost::alloc::string::String, +} +/// Represents a list of NamedEntityIdentifiers. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityIdentifierList { + /// A list of identifiers. + #[prost(message, repeated, tag="1")] + pub entities: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a list of NamedEntityIdentifiers. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityList { + /// A list of NamedEntity objects + #[prost(message, repeated, tag="1")] + pub entities: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// A request to retrieve the metadata associated with a NamedEntityIdentifier +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityGetRequest { + /// Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. + /// +required + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// The identifier for the named entity for which to fetch metadata. + /// +required + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, +} +/// Request to set the referenced named entity state to the configured value. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityUpdateRequest { + /// Resource type of the metadata to update + /// +required + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// Identifier of the metadata to update + /// +required + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, + /// Metadata object to set as the new value + /// +required + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityUpdateResponse { +} +/// Shared request structure to fetch a single resource. +/// Resources include: Task, Workflow, LaunchPlan +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ObjectGetRequest { + /// Indicates a unique version of resource. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Shared request structure to retrieve a list of resources. +/// Resources include: Task, Workflow, LaunchPlan +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourceListRequest { + /// id represents the unique identifier of the resource. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// Defines an email notification specification. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EmailNotification { + /// The list of email addresses recipients for this notification. + /// +required + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Defines a pager duty notification specification. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PagerDutyNotification { + /// Currently, PagerDuty notifications leverage email to trigger a notification. + /// +required + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Defines a slack notification specification. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SlackNotification { + /// Currently, Slack notifications leverage email to trigger a notification. + /// +required + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Represents a structure for notifications based on execution status. +/// The notification content is configured within flyte admin but can be templatized. +/// Future iterations could expose configuring notifications with custom content. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Notification { + /// A list of phases to which users can associate the notifications to. + /// +required + #[prost(enumeration="super::core::workflow_execution::Phase", repeated, tag="1")] + pub phases: ::prost::alloc::vec::Vec, + /// The type of notification to trigger. + /// +required + #[prost(oneof="notification::Type", tags="2, 3, 4")] + pub r#type: ::core::option::Option, +} +/// Nested message and enum types in `Notification`. +pub mod notification { + /// The type of notification to trigger. + /// +required + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Type { + #[prost(message, tag="2")] + Email(super::EmailNotification), + #[prost(message, tag="3")] + PagerDuty(super::PagerDutyNotification), + #[prost(message, tag="4")] + Slack(super::SlackNotification), + } +} +/// Represents a string url and associated metadata used throughout the platform. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UrlBlob { + /// Actual url value. + #[prost(string, tag="1")] + pub url: ::prost::alloc::string::String, + /// Represents the size of the file accessible at the above url. + #[prost(int64, tag="2")] + pub bytes: i64, +} +/// Label values to be applied to an execution resource. +/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +/// to specify how to merge labels defined at registration and execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Labels { + /// Map of custom labels to be applied to the execution resource. + #[prost(map="string, string", tag="1")] + pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Annotation values to be applied to an execution resource. +/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +/// to specify how to merge annotations defined at registration and execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Annotations { + /// Map of custom annotations to be applied to the execution resource. + #[prost(map="string, string", tag="1")] + pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Environment variable values to be applied to an execution resource. +/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +/// to specify how to merge environment variables defined at registration and execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Envs { + /// Map of custom environment variables to be applied to the execution resource. + #[prost(message, repeated, tag="1")] + pub values: ::prost::alloc::vec::Vec, +} +/// Defines permissions associated with executions created by this launch plan spec. +/// Use either of these roles when they have permissions required by your workflow execution. +/// Deprecated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AuthRole { + /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="1")] + pub assumable_iam_role: ::prost::alloc::string::String, + /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="2")] + pub kubernetes_service_account: ::prost::alloc::string::String, +} +/// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). +/// See for more background information. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RawOutputDataConfig { + /// Prefix for where offloaded data from user workflows will be written + /// e.g. s3://bucket/key or s3://bucket/ + #[prost(string, tag="1")] + pub output_location_prefix: ::prost::alloc::string::String, +} +/// These URLs are returned as part of node and task execution data requests. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct FlyteUrLs { + #[prost(string, tag="1")] + pub inputs: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub outputs: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub deck: ::prost::alloc::string::String, +} +/// The status of the named entity is used to control its visibility in the UI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum NamedEntityState { + /// By default, all named entities are considered active and under development. + NamedEntityActive = 0, + /// Archived named entities are no longer visible in the UI. + NamedEntityArchived = 1, + /// System generated entities that aren't explicitly created or managed by a user. + SystemGenerated = 2, +} +impl NamedEntityState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + NamedEntityState::NamedEntityActive => "NAMED_ENTITY_ACTIVE", + NamedEntityState::NamedEntityArchived => "NAMED_ENTITY_ARCHIVED", + NamedEntityState::SystemGenerated => "SYSTEM_GENERATED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "NAMED_ENTITY_ACTIVE" => Some(Self::NamedEntityActive), + "NAMED_ENTITY_ARCHIVED" => Some(Self::NamedEntityArchived), + "SYSTEM_GENERATED" => Some(Self::SystemGenerated), + _ => None, + } + } +} +/// DescriptionEntity contains detailed description for the task/workflow. +/// Documentation could provide insight into the algorithms, business use case, etc. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DescriptionEntity { + /// id represents the unique identifier of the description entity. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// One-liner overview of the entity. + #[prost(string, tag="2")] + pub short_description: ::prost::alloc::string::String, + /// Full user description with formatting preserved. + #[prost(message, optional, tag="3")] + pub long_description: ::core::option::Option, + /// Optional link to source code used to define this entity. + #[prost(message, optional, tag="4")] + pub source_code: ::core::option::Option, + /// User-specified tags. These are arbitrary and can be used for searching + /// filtering and discovering tasks. + #[prost(string, repeated, tag="5")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Full user description with formatting preserved. This can be rendered +/// by clients, such as the console or command line tools with in-tact +/// formatting. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Description { + /// Format of the long description + #[prost(enumeration="DescriptionFormat", tag="3")] + pub format: i32, + /// Optional link to an icon for the entity + #[prost(string, tag="4")] + pub icon_link: ::prost::alloc::string::String, + #[prost(oneof="description::Content", tags="1, 2")] + pub content: ::core::option::Option, +} +/// Nested message and enum types in `Description`. +pub mod description { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Content { + /// long description - no more than 4KB + #[prost(string, tag="1")] + Value(::prost::alloc::string::String), + /// if the description sizes exceed some threshold we can offload the entire + /// description proto altogether to an external data store, like S3 rather than store inline in the db + #[prost(string, tag="2")] + Uri(::prost::alloc::string::String), + } +} +/// Link to source code used to define this entity +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SourceCode { + #[prost(string, tag="1")] + pub link: ::prost::alloc::string::String, +} +/// Represents a list of DescriptionEntities returned from the admin. +/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DescriptionEntityList { + /// A list of DescriptionEntities returned based on the request. + #[prost(message, repeated, tag="1")] + pub description_entities: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a request structure to retrieve a list of DescriptionEntities. +/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DescriptionEntityListRequest { + /// Identifies the specific type of resource that this identifier corresponds to. + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// The identifier for the description entity. + /// +required + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="3")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="5")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering for returned list. + /// +optional + #[prost(message, optional, tag="6")] + pub sort_by: ::core::option::Option, +} +/// The format of the long description +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum DescriptionFormat { + Unknown = 0, + Markdown = 1, + Html = 2, + /// python default documentation - comments is rst + Rst = 3, +} +impl DescriptionFormat { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + DescriptionFormat::Unknown => "DESCRIPTION_FORMAT_UNKNOWN", + DescriptionFormat::Markdown => "DESCRIPTION_FORMAT_MARKDOWN", + DescriptionFormat::Html => "DESCRIPTION_FORMAT_HTML", + DescriptionFormat::Rst => "DESCRIPTION_FORMAT_RST", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DESCRIPTION_FORMAT_UNKNOWN" => Some(Self::Unknown), + "DESCRIPTION_FORMAT_MARKDOWN" => Some(Self::Markdown), + "DESCRIPTION_FORMAT_HTML" => Some(Self::Html), + "DESCRIPTION_FORMAT_RST" => Some(Self::Rst), + _ => None, + } + } +} +/// Indicates that a sent event was not used to update execution state due to +/// the referenced execution already being terminated (and therefore ineligible +/// for further state transitions). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventErrorAlreadyInTerminalState { + /// +required + #[prost(string, tag="1")] + pub current_phase: ::prost::alloc::string::String, +} +/// Indicates an event was rejected because it came from a different cluster than +/// is on record as running the execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventErrorIncompatibleCluster { + /// The cluster which has been recorded as processing the execution. + /// +required + #[prost(string, tag="1")] + pub cluster: ::prost::alloc::string::String, +} +/// Indicates why a sent event was not used to update execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventFailureReason { + /// +required + #[prost(oneof="event_failure_reason::Reason", tags="1, 2")] + pub reason: ::core::option::Option, +} +/// Nested message and enum types in `EventFailureReason`. +pub mod event_failure_reason { + /// +required + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reason { + #[prost(message, tag="1")] + AlreadyInTerminalState(super::EventErrorAlreadyInTerminalState), + #[prost(message, tag="2")] + IncompatibleCluster(super::EventErrorIncompatibleCluster), + } +} +/// Request to send a notification that a workflow execution event has occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionEventRequest { + /// Unique ID for this request that can be traced between services + #[prost(string, tag="1")] + pub request_id: ::prost::alloc::string::String, + /// Details about the event that occurred. + #[prost(message, optional, tag="2")] + pub event: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionEventResponse { +} +/// Request to send a notification that a node execution event has occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionEventRequest { + /// Unique ID for this request that can be traced between services + #[prost(string, tag="1")] + pub request_id: ::prost::alloc::string::String, + /// Details about the event that occurred. + #[prost(message, optional, tag="2")] + pub event: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionEventResponse { +} +/// Request to send a notification that a task execution event has occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionEventRequest { + /// Unique ID for this request that can be traced between services + #[prost(string, tag="1")] + pub request_id: ::prost::alloc::string::String, + /// Details about the event that occurred. + #[prost(message, optional, tag="2")] + pub event: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionEventResponse { +} +/// Request to launch an execution with the given project, domain and optionally-assigned name. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionCreateRequest { + /// Name of the project the execution belongs to. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the execution belongs to. + /// A domain can be considered as a subset within a specific project. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// User provided value for the resource. + /// If none is provided the system will generate a unique string. + /// +optional + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + /// Additional fields necessary to launch the execution. + /// +optional + #[prost(message, optional, tag="4")] + pub spec: ::core::option::Option, + /// The inputs required to start the execution. All required inputs must be + /// included in this map. If not required and not provided, defaults apply. + /// +optional + #[prost(message, optional, tag="5")] + pub inputs: ::core::option::Option, +} +/// Request to relaunch the referenced execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionRelaunchRequest { + /// Identifier of the workflow execution to relaunch. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User provided value for the relaunched execution. + /// If none is provided the system will generate a unique string. + /// +optional + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="4")] + pub overwrite_cache: bool, +} +/// Request to recover the referenced execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionRecoverRequest { + /// Identifier of the workflow execution to recover. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User provided value for the recovered execution. + /// If none is provided the system will generate a unique string. + /// +optional + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + /// Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, +} +/// The unique identifier for a successfully created execution. +/// If the name was *not* specified in the create request, this identifier will include a generated name. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionCreateResponse { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// A message used to fetch a single workflow execution entity. +/// See :ref:`ref_flyteidl.admin.Execution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetRequest { + /// Uniquely identifies an individual workflow execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// A workflow execution represents an instantiated workflow, including all inputs and additional +/// metadata as well as computed results included state, outputs, and duration-based attributes. +/// Used as a response object used in Get and List execution requests. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Execution { + /// Unique identifier of the workflow execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User-provided configuration and inputs for launching the execution. + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, + /// Execution results. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, +} +/// Used as a response for request to list executions. +/// See :ref:`ref_flyteidl.admin.Execution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionList { + #[prost(message, repeated, tag="1")] + pub executions: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Input/output data can represented by actual values or a link to where values are stored +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralMapBlob { + #[prost(oneof="literal_map_blob::Data", tags="1, 2")] + pub data: ::core::option::Option, +} +/// Nested message and enum types in `LiteralMapBlob`. +pub mod literal_map_blob { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Data { + /// Data in LiteralMap format + #[prost(message, tag="1")] + Values(super::super::core::LiteralMap), + /// In the event that the map is too large, we return a uri to the data + #[prost(string, tag="2")] + Uri(::prost::alloc::string::String), + } +} +/// Specifies metadata around an aborted workflow execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AbortMetadata { + /// In the case of a user-specified abort, this will pass along the user-supplied cause. + #[prost(string, tag="1")] + pub cause: ::prost::alloc::string::String, + /// Identifies the entity (if any) responsible for terminating the execution + #[prost(string, tag="2")] + pub principal: ::prost::alloc::string::String, +} +/// Encapsulates the results of the Execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionClosure { + /// Inputs computed and passed for execution. + /// computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + #[deprecated] + #[prost(message, optional, tag="3")] + pub computed_inputs: ::core::option::Option, + /// Most recent recorded phase for the execution. + #[prost(enumeration="super::core::workflow_execution::Phase", tag="4")] + pub phase: i32, + /// Reported time at which the execution began running. + #[prost(message, optional, tag="5")] + pub started_at: ::core::option::Option<::prost_types::Timestamp>, + /// The amount of time the execution spent running. + #[prost(message, optional, tag="6")] + pub duration: ::core::option::Option<::prost_types::Duration>, + /// Reported time at which the execution was created. + #[prost(message, optional, tag="7")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Reported time at which the execution was last updated. + #[prost(message, optional, tag="8")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, + /// The notification settings to use after merging the CreateExecutionRequest and the launch plan + /// notification settings. An execution launched with notifications will always prefer that definition + /// to notifications defined statically in a launch plan. + #[prost(message, repeated, tag="9")] + pub notifications: ::prost::alloc::vec::Vec, + /// Identifies the workflow definition for this execution. + #[prost(message, optional, tag="11")] + pub workflow_id: ::core::option::Option, + /// Provides the details of the last stage change + #[prost(message, optional, tag="14")] + pub state_change_details: ::core::option::Option, + /// A result produced by a terminated execution. + /// A pending (non-terminal) execution will not have any output result. + #[prost(oneof="execution_closure::OutputResult", tags="1, 2, 10, 12, 13")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `ExecutionClosure`. +pub mod execution_closure { + /// A result produced by a terminated execution. + /// A pending (non-terminal) execution will not have any output result. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// Output URI in the case of a successful execution. + /// DEPRECATED. Use GetExecutionData to fetch output data instead. + #[prost(message, tag="1")] + Outputs(super::LiteralMapBlob), + /// Error information in the case of a failed execution. + #[prost(message, tag="2")] + Error(super::super::core::ExecutionError), + /// In the case of a user-specified abort, this will pass along the user-supplied cause. + #[prost(string, tag="10")] + AbortCause(::prost::alloc::string::String), + /// In the case of a user-specified abort, this will pass along the user and their supplied cause. + #[prost(message, tag="12")] + AbortMetadata(super::AbortMetadata), + /// Raw output data produced by this execution. + /// DEPRECATED. Use GetExecutionData to fetch output data instead. + #[prost(message, tag="13")] + OutputData(super::super::core::LiteralMap), + } +} +/// Represents system, rather than user-facing, metadata about an execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SystemMetadata { + /// Which execution cluster this execution ran on. + #[prost(string, tag="1")] + pub execution_cluster: ::prost::alloc::string::String, + /// Which kubernetes namespace the execution ran under. + #[prost(string, tag="2")] + pub namespace: ::prost::alloc::string::String, +} +/// Represents attributes about an execution which are not required to launch the execution but are useful to record. +/// These attributes are assigned at launch time and do not change. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionMetadata { + #[prost(enumeration="execution_metadata::ExecutionMode", tag="1")] + pub mode: i32, + /// Identifier of the entity that triggered this execution. + /// For systems using back-end authentication any value set here will be discarded in favor of the + /// authenticated user context. + #[prost(string, tag="2")] + pub principal: ::prost::alloc::string::String, + /// Indicates the nestedness of this execution. + /// If a user launches a workflow execution, the default nesting is 0. + /// If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + /// Generally, if workflow at nesting level k launches a workflow then the child workflow will have + /// nesting = k + 1. + #[prost(uint32, tag="3")] + pub nesting: u32, + /// For scheduled executions, the requested time for execution for this specific schedule invocation. + #[prost(message, optional, tag="4")] + pub scheduled_at: ::core::option::Option<::prost_types::Timestamp>, + /// Which subworkflow node (if any) launched this execution + #[prost(message, optional, tag="5")] + pub parent_node_execution: ::core::option::Option, + /// Optional, a reference workflow execution related to this execution. + /// In the case of a relaunch, this references the original workflow execution. + #[prost(message, optional, tag="16")] + pub reference_execution: ::core::option::Option, + /// Optional, platform-specific metadata about the execution. + /// In this the future this may be gated behind an ACL or some sort of authorization. + #[prost(message, optional, tag="17")] + pub system_metadata: ::core::option::Option, +} +/// Nested message and enum types in `ExecutionMetadata`. +pub mod execution_metadata { + /// The method by which this execution was launched. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ExecutionMode { + /// The default execution mode, MANUAL implies that an execution was launched by an individual. + Manual = 0, + /// A schedule triggered this execution launch. + Scheduled = 1, + /// A system process was responsible for launching this execution rather an individual. + System = 2, + /// This execution was launched with identical inputs as a previous execution. + Relaunch = 3, + /// This execution was triggered by another execution. + ChildWorkflow = 4, + /// This execution was recovered from another execution. + Recovered = 5, + } + impl ExecutionMode { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ExecutionMode::Manual => "MANUAL", + ExecutionMode::Scheduled => "SCHEDULED", + ExecutionMode::System => "SYSTEM", + ExecutionMode::Relaunch => "RELAUNCH", + ExecutionMode::ChildWorkflow => "CHILD_WORKFLOW", + ExecutionMode::Recovered => "RECOVERED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "MANUAL" => Some(Self::Manual), + "SCHEDULED" => Some(Self::Scheduled), + "SYSTEM" => Some(Self::System), + "RELAUNCH" => Some(Self::Relaunch), + "CHILD_WORKFLOW" => Some(Self::ChildWorkflow), + "RECOVERED" => Some(Self::Recovered), + _ => None, + } + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NotificationList { + #[prost(message, repeated, tag="1")] + pub notifications: ::prost::alloc::vec::Vec, +} +/// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +/// of an execution as it progresses across phase changes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionSpec { + /// Launch plan to be executed + #[prost(message, optional, tag="1")] + pub launch_plan: ::core::option::Option, + /// Input values to be passed for the execution + #[deprecated] + #[prost(message, optional, tag="2")] + pub inputs: ::core::option::Option, + /// Metadata for the execution + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, + /// Labels to apply to the execution resource. + #[prost(message, optional, tag="7")] + pub labels: ::core::option::Option, + /// Annotations to apply to the execution resource. + #[prost(message, optional, tag="8")] + pub annotations: ::core::option::Option, + /// Optional: security context override to apply this execution. + #[prost(message, optional, tag="10")] + pub security_context: ::core::option::Option, + /// Optional: auth override to apply this execution. + #[deprecated] + #[prost(message, optional, tag="16")] + pub auth_role: ::core::option::Option, + /// Indicates the runtime priority of the execution. + #[prost(message, optional, tag="17")] + pub quality_of_service: ::core::option::Option, + /// Controls the maximum number of task nodes that can be run in parallel for the entire workflow. + /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + /// and parallelism/concurrency of MapTasks is independent from this. + #[prost(int32, tag="18")] + pub max_parallelism: i32, + /// User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). + /// This should be a prefix like s3://my-bucket/my-data + #[prost(message, optional, tag="19")] + pub raw_output_data_config: ::core::option::Option, + /// Controls how to select an available cluster on which this execution should run. + #[prost(message, optional, tag="20")] + pub cluster_assignment: ::core::option::Option, + /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. + /// Omitting this field uses the workflow's value as a default. + /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + /// around the bool field. + #[prost(message, optional, tag="21")] + pub interruptible: ::core::option::Option, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="22")] + pub overwrite_cache: bool, + /// Environment variables to be set for the execution. + #[prost(message, optional, tag="23")] + pub envs: ::core::option::Option, + /// Tags to be set for the execution. + #[prost(string, repeated, tag="24")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(oneof="execution_spec::NotificationOverrides", tags="5, 6")] + pub notification_overrides: ::core::option::Option, +} +/// Nested message and enum types in `ExecutionSpec`. +pub mod execution_spec { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum NotificationOverrides { + /// List of notifications based on Execution status transitions + /// When this list is not empty it is used rather than any notifications defined in the referenced launch plan. + /// When this list is empty, the notifications defined for the launch plan will be applied. + #[prost(message, tag="5")] + Notifications(super::NotificationList), + /// This should be set to true if all notifications are intended to be disabled for this execution. + #[prost(bool, tag="6")] + DisableAll(bool), + } +} +/// Request to terminate an in-progress execution. This action is irreversible. +/// If an execution is already terminated, this request will simply be a no-op. +/// This request will fail if it references a non-existent execution. +/// If the request succeeds the phase "ABORTED" will be recorded for the termination +/// with the optional cause added to the output_result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionTerminateRequest { + /// Uniquely identifies the individual workflow execution to be terminated. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Optional reason for aborting. + #[prost(string, tag="2")] + pub cause: ::prost::alloc::string::String, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionTerminateResponse { +} +/// Request structure to fetch inputs, output and other data produced by an execution. +/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetDataRequest { + /// The identifier of the execution for which to fetch inputs and outputs. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetDataResponse { + /// Signed url to fetch a core.LiteralMap of execution outputs. + /// Deprecated: Please use full_outputs instead. + #[deprecated] + #[prost(message, optional, tag="1")] + pub outputs: ::core::option::Option, + /// Signed url to fetch a core.LiteralMap of execution inputs. + /// Deprecated: Please use full_inputs instead. + #[deprecated] + #[prost(message, optional, tag="2")] + pub inputs: ::core::option::Option, + /// Full_inputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="3")] + pub full_inputs: ::core::option::Option, + /// Full_outputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="4")] + pub full_outputs: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionUpdateRequest { + /// Identifier of the execution to update + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// State to set as the new value active/archive + #[prost(enumeration="ExecutionState", tag="2")] + pub state: i32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionStateChangeDetails { + /// The state of the execution is used to control its visibility in the UI/CLI. + #[prost(enumeration="ExecutionState", tag="1")] + pub state: i32, + /// This timestamp represents when the state changed. + #[prost(message, optional, tag="2")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// Identifies the entity (if any) responsible for causing the state change of the execution + #[prost(string, tag="3")] + pub principal: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionUpdateResponse { +} +/// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetMetricsRequest { + /// id defines the workflow execution to query for. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// depth defines the number of Flyte entity levels to traverse when breaking down execution details. + #[prost(int32, tag="2")] + pub depth: i32, +} +/// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetMetricsResponse { + /// Span defines the top-level breakdown of the workflows execution. More precise information is nested in a + /// hierarchical structure using Flyte entity references. + #[prost(message, optional, tag="1")] + pub span: ::core::option::Option, +} +/// The state of the execution is used to control its visibility in the UI/CLI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ExecutionState { + /// By default, all executions are considered active. + ExecutionActive = 0, + /// Archived executions are no longer visible in the UI. + ExecutionArchived = 1, +} +impl ExecutionState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ExecutionState::ExecutionActive => "EXECUTION_ACTIVE", + ExecutionState::ExecutionArchived => "EXECUTION_ARCHIVED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "EXECUTION_ACTIVE" => Some(Self::ExecutionActive), + "EXECUTION_ARCHIVED" => Some(Self::ExecutionArchived), + _ => None, + } + } +} +/// Option for schedules run at a certain frequency e.g. every 2 minutes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct FixedRate { + #[prost(uint32, tag="1")] + pub value: u32, + #[prost(enumeration="FixedRateUnit", tag="2")] + pub unit: i32, +} +/// Options for schedules to run according to a cron expression. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CronSchedule { + /// Standard/default cron implementation as described by + /// Also supports nonstandard predefined scheduling definitions + /// as described by + /// except @reboot + #[prost(string, tag="1")] + pub schedule: ::prost::alloc::string::String, + /// ISO 8601 duration as described by + #[prost(string, tag="2")] + pub offset: ::prost::alloc::string::String, +} +/// Defines complete set of information required to trigger an execution on a schedule. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Schedule { + /// Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + #[prost(string, tag="3")] + pub kickoff_time_input_arg: ::prost::alloc::string::String, + #[prost(oneof="schedule::ScheduleExpression", tags="1, 2, 4")] + pub schedule_expression: ::core::option::Option, +} +/// Nested message and enum types in `Schedule`. +pub mod schedule { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum ScheduleExpression { + /// Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year + /// e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * + #[prost(string, tag="1")] + CronExpression(::prost::alloc::string::String), + #[prost(message, tag="2")] + Rate(super::FixedRate), + #[prost(message, tag="4")] + CronSchedule(super::CronSchedule), + } +} +/// Represents a frequency at which to run a schedule. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum FixedRateUnit { + Minute = 0, + Hour = 1, + Day = 2, +} +impl FixedRateUnit { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + FixedRateUnit::Minute => "MINUTE", + FixedRateUnit::Hour => "HOUR", + FixedRateUnit::Day => "DAY", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "MINUTE" => Some(Self::Minute), + "HOUR" => Some(Self::Hour), + "DAY" => Some(Self::Day), + _ => None, + } + } +} +/// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required +/// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +/// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanCreateRequest { + /// Uniquely identifies a launch plan entity. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User-provided launch plan details, including reference workflow, inputs and other metadata. + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanCreateResponse { +} +/// A LaunchPlan provides the capability to templatize workflow executions. +/// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +/// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +/// definition doesn't necessarily have a default value for said input. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlan { + /// Uniquely identifies a launch plan entity. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User-provided launch plan details, including reference workflow, inputs and other metadata. + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, + /// Values computed by the flyte platform after launch plan registration. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, +} +/// Response object for list launch plan requests. +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanList { + #[prost(message, repeated, tag="1")] + pub launch_plans: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Defines permissions associated with executions created by this launch plan spec. +/// Use either of these roles when they have permissions required by your workflow execution. +/// Deprecated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Auth { + /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="1")] + pub assumable_iam_role: ::prost::alloc::string::String, + /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="2")] + pub kubernetes_service_account: ::prost::alloc::string::String, +} +/// User-provided launch plan definition and configuration values. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanSpec { + /// Reference to the Workflow template that the launch plan references + #[prost(message, optional, tag="1")] + pub workflow_id: ::core::option::Option, + /// Metadata for the Launch Plan + #[prost(message, optional, tag="2")] + pub entity_metadata: ::core::option::Option, + /// Input values to be passed for the execution. + /// These can be overriden when an execution is created with this launch plan. + #[prost(message, optional, tag="3")] + pub default_inputs: ::core::option::Option, + /// Fixed, non-overridable inputs for the Launch Plan. + /// These can not be overriden when an execution is created with this launch plan. + #[prost(message, optional, tag="4")] + pub fixed_inputs: ::core::option::Option, + /// String to indicate the role to use to execute the workflow underneath + #[deprecated] + #[prost(string, tag="5")] + pub role: ::prost::alloc::string::String, + /// Custom labels to be applied to the execution resource. + #[prost(message, optional, tag="6")] + pub labels: ::core::option::Option, + /// Custom annotations to be applied to the execution resource. + #[prost(message, optional, tag="7")] + pub annotations: ::core::option::Option, + /// Indicates the permission associated with workflow executions triggered with this launch plan. + #[deprecated] + #[prost(message, optional, tag="8")] + pub auth: ::core::option::Option, + #[deprecated] + #[prost(message, optional, tag="9")] + pub auth_role: ::core::option::Option, + /// Indicates security context for permissions triggered with this launch plan + #[prost(message, optional, tag="10")] + pub security_context: ::core::option::Option, + /// Indicates the runtime priority of the execution. + #[prost(message, optional, tag="16")] + pub quality_of_service: ::core::option::Option, + /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + #[prost(message, optional, tag="17")] + pub raw_output_data_config: ::core::option::Option, + /// Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. + /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + /// and parallelism/concurrency of MapTasks is independent from this. + #[prost(int32, tag="18")] + pub max_parallelism: i32, + /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. + /// Omitting this field uses the workflow's value as a default. + /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + /// around the bool field. + #[prost(message, optional, tag="19")] + pub interruptible: ::core::option::Option, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="20")] + pub overwrite_cache: bool, + /// Environment variables to be set for the execution. + #[prost(message, optional, tag="21")] + pub envs: ::core::option::Option, +} +/// Values computed by the flyte platform after launch plan registration. +/// These include expected_inputs required to be present in a CreateExecutionRequest +/// to launch the reference workflow as well timestamp values associated with the launch plan. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanClosure { + /// Indicate the Launch plan state. + #[prost(enumeration="LaunchPlanState", tag="1")] + pub state: i32, + /// Indicates the set of inputs expected when creating an execution with the Launch plan + #[prost(message, optional, tag="2")] + pub expected_inputs: ::core::option::Option, + /// Indicates the set of outputs expected to be produced by creating an execution with the Launch plan + #[prost(message, optional, tag="3")] + pub expected_outputs: ::core::option::Option, + /// Time at which the launch plan was created. + #[prost(message, optional, tag="4")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Time at which the launch plan was last updated. + #[prost(message, optional, tag="5")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +/// the reference workflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanMetadata { + /// Schedule to execute the Launch Plan + #[prost(message, optional, tag="1")] + pub schedule: ::core::option::Option, + /// List of notifications based on Execution status transitions + #[prost(message, repeated, tag="2")] + pub notifications: ::prost::alloc::vec::Vec, +} +/// Request to set the referenced launch plan state to the configured value. +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanUpdateRequest { + /// Identifier of launch plan for which to change state. + /// +required. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Desired state to apply to the launch plan. + /// +required. + #[prost(enumeration="LaunchPlanState", tag="2")] + pub state: i32, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanUpdateResponse { +} +/// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ActiveLaunchPlanRequest { + /// +required. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Represents a request structure to list active launch plans within a project/domain. +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ActiveLaunchPlanListRequest { + /// Name of the project that contains the identifiers. + /// +required. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the identifiers belongs to within the project. + /// +required. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Indicates the number of resources to be returned. + /// +required. + #[prost(uint32, tag="3")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// By default any launch plan regardless of state can be used to launch a workflow execution. +/// However, at most one version of a launch plan +/// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +/// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +/// group will be observed and trigger executions at a defined cadence. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum LaunchPlanState { + Inactive = 0, + Active = 1, +} +impl LaunchPlanState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LaunchPlanState::Inactive => "INACTIVE", + LaunchPlanState::Active => "ACTIVE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "INACTIVE" => Some(Self::Inactive), + "ACTIVE" => Some(Self::Active), + _ => None, + } + } +} +/// Defines a set of overridable task resource attributes set during task registration. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskResourceSpec { + #[prost(string, tag="1")] + pub cpu: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub gpu: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub memory: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub storage: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub ephemeral_storage: ::prost::alloc::string::String, +} +/// Defines task resource defaults and limits that will be applied at task registration. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskResourceAttributes { + #[prost(message, optional, tag="1")] + pub defaults: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub limits: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ClusterResourceAttributes { + /// Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). + /// Map keys are the *case-sensitive* names of variables in templatized resource files. + /// Map values should be the custom values which get substituted during resource creation. + #[prost(map="string, string", tag="1")] + pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionQueueAttributes { + /// Tags used for assigning execution queues for tasks defined within this project. + #[prost(string, repeated, tag="1")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionClusterLabel { + /// Label value to determine where the execution will be run + #[prost(string, tag="1")] + pub value: ::prost::alloc::string::String, +} +/// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. +/// In addition to an override implementation a selection of fallbacks can be provided or other modes +/// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PluginOverride { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. + #[prost(string, repeated, tag="2")] + pub plugin_id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Defines the behavior when no plugin from the plugin_id list is not found. + #[prost(enumeration="plugin_override::MissingPluginBehavior", tag="4")] + pub missing_plugin_behavior: i32, +} +/// Nested message and enum types in `PluginOverride`. +pub mod plugin_override { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum MissingPluginBehavior { + /// By default, if this plugin is not enabled for a Flyte deployment then execution will fail. + Fail = 0, + /// Uses the system-configured default implementation. + UseDefault = 1, + } + impl MissingPluginBehavior { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MissingPluginBehavior::Fail => "FAIL", + MissingPluginBehavior::UseDefault => "USE_DEFAULT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "FAIL" => Some(Self::Fail), + "USE_DEFAULT" => Some(Self::UseDefault), + _ => None, + } + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PluginOverrides { + #[prost(message, repeated, tag="1")] + pub overrides: ::prost::alloc::vec::Vec, +} +/// Adds defaults for customizable workflow-execution specifications and overrides. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionConfig { + /// Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. + #[prost(int32, tag="1")] + pub max_parallelism: i32, + /// Indicates security context permissions for executions triggered with this matchable attribute. + #[prost(message, optional, tag="2")] + pub security_context: ::core::option::Option, + /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + #[prost(message, optional, tag="3")] + pub raw_output_data_config: ::core::option::Option, + /// Custom labels to be applied to a triggered execution resource. + #[prost(message, optional, tag="4")] + pub labels: ::core::option::Option, + /// Custom annotations to be applied to a triggered execution resource. + #[prost(message, optional, tag="5")] + pub annotations: ::core::option::Option, + /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. + /// Omitting this field uses the workflow's value as a default. + /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + /// around the bool field. + #[prost(message, optional, tag="6")] + pub interruptible: ::core::option::Option, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="7")] + pub overwrite_cache: bool, + /// Environment variables to be set for the execution. + #[prost(message, optional, tag="8")] + pub envs: ::core::option::Option, +} +/// Generic container for encapsulating all types of the above attributes messages. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MatchingAttributes { + #[prost(oneof="matching_attributes::Target", tags="1, 2, 3, 4, 5, 6, 7, 8")] + pub target: ::core::option::Option, +} +/// Nested message and enum types in `MatchingAttributes`. +pub mod matching_attributes { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Target { + #[prost(message, tag="1")] + TaskResourceAttributes(super::TaskResourceAttributes), + #[prost(message, tag="2")] + ClusterResourceAttributes(super::ClusterResourceAttributes), + #[prost(message, tag="3")] + ExecutionQueueAttributes(super::ExecutionQueueAttributes), + #[prost(message, tag="4")] + ExecutionClusterLabel(super::ExecutionClusterLabel), + #[prost(message, tag="5")] + QualityOfService(super::super::core::QualityOfService), + #[prost(message, tag="6")] + PluginOverrides(super::PluginOverrides), + #[prost(message, tag="7")] + WorkflowExecutionConfig(super::WorkflowExecutionConfig), + #[prost(message, tag="8")] + ClusterAssignment(super::ClusterAssignment), + } +} +/// Represents a custom set of attributes applied for either a domain; a domain and project; or +/// domain, project and workflow name. +/// These are used to override system level defaults for kubernetes cluster resource management, +/// default execution values, and more all across different levels of specificity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MatchableAttributesConfiguration { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub project: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub workflow: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub launch_plan: ::prost::alloc::string::String, +} +/// Request all matching resource attributes for a resource type. +/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMatchableAttributesRequest { + /// +required + #[prost(enumeration="MatchableResource", tag="1")] + pub resource_type: i32, +} +/// Response for a request for all matching resource attributes for a resource type. +/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMatchableAttributesResponse { + #[prost(message, repeated, tag="1")] + pub configurations: ::prost::alloc::vec::Vec, +} +/// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes +/// based on matching tags. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum MatchableResource { + /// Applies to customizable task resource requests and limits. + TaskResource = 0, + /// Applies to configuring templated kubernetes cluster resources. + ClusterResource = 1, + /// Configures task and dynamic task execution queue assignment. + ExecutionQueue = 2, + /// Configures the K8s cluster label to be used for execution to be run + ExecutionClusterLabel = 3, + /// Configures default quality of service when undefined in an execution spec. + QualityOfServiceSpecification = 4, + /// Selects configurable plugin implementation behavior for a given task type. + PluginOverride = 5, + /// Adds defaults for customizable workflow-execution specifications and overrides. + WorkflowExecutionConfig = 6, + /// Controls how to select an available cluster on which this execution should run. + ClusterAssignment = 7, +} +impl MatchableResource { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MatchableResource::TaskResource => "TASK_RESOURCE", + MatchableResource::ClusterResource => "CLUSTER_RESOURCE", + MatchableResource::ExecutionQueue => "EXECUTION_QUEUE", + MatchableResource::ExecutionClusterLabel => "EXECUTION_CLUSTER_LABEL", + MatchableResource::QualityOfServiceSpecification => "QUALITY_OF_SERVICE_SPECIFICATION", + MatchableResource::PluginOverride => "PLUGIN_OVERRIDE", + MatchableResource::WorkflowExecutionConfig => "WORKFLOW_EXECUTION_CONFIG", + MatchableResource::ClusterAssignment => "CLUSTER_ASSIGNMENT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "TASK_RESOURCE" => Some(Self::TaskResource), + "CLUSTER_RESOURCE" => Some(Self::ClusterResource), + "EXECUTION_QUEUE" => Some(Self::ExecutionQueue), + "EXECUTION_CLUSTER_LABEL" => Some(Self::ExecutionClusterLabel), + "QUALITY_OF_SERVICE_SPECIFICATION" => Some(Self::QualityOfServiceSpecification), + "PLUGIN_OVERRIDE" => Some(Self::PluginOverride), + "WORKFLOW_EXECUTION_CONFIG" => Some(Self::WorkflowExecutionConfig), + "CLUSTER_ASSIGNMENT" => Some(Self::ClusterAssignment), + _ => None, + } + } +} +/// A message used to fetch a single node execution entity. +/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionGetRequest { + /// Uniquely identifies an individual node execution. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Represents a request structure to retrieve a list of node execution entities. +/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionListRequest { + /// Indicates the workflow execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub workflow_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, + /// Unique identifier of the parent node in the execution + /// +optional + #[prost(string, tag="6")] + pub unique_parent_id: ::prost::alloc::string::String, +} +/// Represents a request structure to retrieve a list of node execution entities launched by a specific task. +/// This can arise when a task yields a subworkflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionForTaskListRequest { + /// Indicates the node execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub task_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// Encapsulates all details for a single node execution entity. +/// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +/// sub-workflow, or even a separate child-workflow execution. +/// The same task can be called repeatedly in a single workflow but each node is unique. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecution { + /// Uniquely identifies an individual node execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Path to remote data store where input blob is stored. + #[prost(string, tag="2")] + pub input_uri: ::prost::alloc::string::String, + /// Computed results associated with this node execution. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, + /// Metadata for Node Execution + #[prost(message, optional, tag="4")] + pub metadata: ::core::option::Option, +} +/// Represents additional attributes related to a Node Execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionMetaData { + /// Node executions are grouped depending on retries of the parent + /// Retry group is unique within the context of a parent node. + #[prost(string, tag="1")] + pub retry_group: ::prost::alloc::string::String, + /// Boolean flag indicating if the node has child nodes under it + /// This can be true when a node contains a dynamic workflow which then produces + /// child nodes. + #[prost(bool, tag="2")] + pub is_parent_node: bool, + /// Node id of the node in the original workflow + /// This maps to value of WorkflowTemplate.nodes\[X\].id + #[prost(string, tag="3")] + pub spec_node_id: ::prost::alloc::string::String, + /// Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. + /// This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. + #[prost(bool, tag="4")] + pub is_dynamic: bool, +} +/// Request structure to retrieve a list of node execution entities. +/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionList { + #[prost(message, repeated, tag="1")] + pub node_executions: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Container for node execution details and results. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionClosure { + /// The last recorded phase for this node execution. + #[prost(enumeration="super::core::node_execution::Phase", tag="3")] + pub phase: i32, + /// Time at which the node execution began running. + #[prost(message, optional, tag="4")] + pub started_at: ::core::option::Option<::prost_types::Timestamp>, + /// The amount of time the node execution spent running. + #[prost(message, optional, tag="5")] + pub duration: ::core::option::Option<::prost_types::Duration>, + /// Time at which the node execution was created. + #[prost(message, optional, tag="6")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Time at which the node execution was last updated. + #[prost(message, optional, tag="7")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, + /// String location uniquely identifying where the deck HTML file is. + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="11")] + pub deck_uri: ::prost::alloc::string::String, + /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required + /// to correctly recover partially completed executions where the subworkflow has already been compiled. + #[prost(string, tag="12")] + pub dynamic_job_spec_uri: ::prost::alloc::string::String, + /// Only a node in a terminal state will have a non-empty output_result. + #[prost(oneof="node_execution_closure::OutputResult", tags="1, 2, 10")] + pub output_result: ::core::option::Option, + /// Store metadata for what the node launched. + /// for ex: if this is a workflow node, we store information for the launched workflow. + #[prost(oneof="node_execution_closure::TargetMetadata", tags="8, 9")] + pub target_metadata: ::core::option::Option, +} +/// Nested message and enum types in `NodeExecutionClosure`. +pub mod node_execution_closure { + /// Only a node in a terminal state will have a non-empty output_result. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// Links to a remotely stored, serialized core.LiteralMap of node execution outputs. + /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + #[prost(string, tag="1")] + OutputUri(::prost::alloc::string::String), + /// Error information for the Node + #[prost(message, tag="2")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this node execution. + /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + #[prost(message, tag="10")] + OutputData(super::super::core::LiteralMap), + } + /// Store metadata for what the node launched. + /// for ex: if this is a workflow node, we store information for the launched workflow. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum TargetMetadata { + #[prost(message, tag="8")] + WorkflowNodeMetadata(super::WorkflowNodeMetadata), + #[prost(message, tag="9")] + TaskNodeMetadata(super::TaskNodeMetadata), + } +} +/// Metadata for a WorkflowNode +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowNodeMetadata { + /// The identifier for a workflow execution launched by a node. + #[prost(message, optional, tag="1")] + pub execution_id: ::core::option::Option, +} +/// Metadata for the case in which the node is a TaskNode +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNodeMetadata { + /// Captures the status of caching for this execution. + #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] + pub cache_status: i32, + /// This structure carries the catalog artifact information + #[prost(message, optional, tag="2")] + pub catalog_key: ::core::option::Option, + /// The latest checkpoint location + #[prost(string, tag="4")] + pub checkpoint_uri: ::prost::alloc::string::String, +} +/// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DynamicWorkflowNodeMetadata { + /// id represents the unique identifier of the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the compiled representation of the embedded dynamic workflow. + #[prost(message, optional, tag="2")] + pub compiled_workflow: ::core::option::Option, + /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + /// required to correctly recover partially completed executions where the subworkflow has already been compiled. + #[prost(string, tag="3")] + pub dynamic_job_spec_uri: ::prost::alloc::string::String, +} +/// Request structure to fetch inputs and output for a node execution. +/// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionGetDataRequest { + /// The identifier of the node execution for which to fetch inputs and outputs. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionGetDataResponse { + /// Signed url to fetch a core.LiteralMap of node execution inputs. + /// Deprecated: Please use full_inputs instead. + #[deprecated] + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Signed url to fetch a core.LiteralMap of node execution outputs. + /// Deprecated: Please use full_outputs instead. + #[deprecated] + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, + /// Full_inputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="3")] + pub full_inputs: ::core::option::Option, + /// Full_outputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="4")] + pub full_outputs: ::core::option::Option, + /// Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. + #[prost(message, optional, tag="16")] + pub dynamic_workflow: ::core::option::Option, + #[prost(message, optional, tag="17")] + pub flyte_urls: ::core::option::Option, +} +/// Represents the Email object that is sent to a publisher/subscriber +/// to forward the notification. +/// Note: This is internal to Admin and doesn't need to be exposed to other components. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EmailMessage { + /// The list of email addresses to receive an email with the content populated in the other fields. + /// Currently, each email recipient will receive its own email. + /// This populates the TO field. + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// The email of the sender. + /// This populates the FROM field. + #[prost(string, tag="2")] + pub sender_email: ::prost::alloc::string::String, + /// The content of the subject line. + /// This populates the SUBJECT field. + #[prost(string, tag="3")] + pub subject_line: ::prost::alloc::string::String, + /// The content of the email body. + /// This populates the BODY field. + #[prost(string, tag="4")] + pub body: ::prost::alloc::string::String, +} +/// Namespace within a project commonly used to differentiate between different service instances. +/// e.g. "production", "development", etc. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Domain { + /// Globally unique domain name. + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// Display name. + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, +} +/// Top-level namespace used to classify different entities like workflows and executions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Project { + /// Globally unique project name. + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// Display name. + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub domains: ::prost::alloc::vec::Vec, + #[prost(string, tag="4")] + pub description: ::prost::alloc::string::String, + /// Leverage Labels from flyteidl.admin.common.proto to + /// tag projects with ownership information. + #[prost(message, optional, tag="5")] + pub labels: ::core::option::Option, + #[prost(enumeration="project::ProjectState", tag="6")] + pub state: i32, +} +/// Nested message and enum types in `Project`. +pub mod project { + /// The state of the project is used to control its visibility in the UI and validity. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ProjectState { + /// By default, all projects are considered active. + Active = 0, + /// Archived projects are no longer visible in the UI and no longer valid. + Archived = 1, + /// System generated projects that aren't explicitly created or managed by a user. + SystemGenerated = 2, + } + impl ProjectState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ProjectState::Active => "ACTIVE", + ProjectState::Archived => "ARCHIVED", + ProjectState::SystemGenerated => "SYSTEM_GENERATED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ACTIVE" => Some(Self::Active), + "ARCHIVED" => Some(Self::Archived), + "SYSTEM_GENERATED" => Some(Self::SystemGenerated), + _ => None, + } + } + } +} +/// Represents a list of projects. +/// See :ref:`ref_flyteidl.admin.Project` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Projects { + #[prost(message, repeated, tag="1")] + pub projects: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Request to retrieve a list of projects matching specified filters. +/// See :ref:`ref_flyteidl.admin.Project` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectListRequest { + /// Indicates the number of projects to be returned. + /// +required + #[prost(uint32, tag="1")] + pub limit: u32, + /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="3")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="4")] + pub sort_by: ::core::option::Option, +} +/// Adds a new user-project within the Flyte deployment. +/// See :ref:`ref_flyteidl.admin.Project` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectRegisterRequest { + /// +required + #[prost(message, optional, tag="1")] + pub project: ::core::option::Option, +} +/// Purposefully empty, may be updated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectRegisterResponse { +} +/// Purposefully empty, may be updated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectUpdateResponse { +} +/// Defines a set of custom matching attributes at the project level. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributes { + /// Unique project id for which this set of attributes will be applied. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub matching_attributes: ::core::option::Option, +} +/// Sets custom attributes for a project +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesUpdateRequest { + /// +required + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesUpdateResponse { +} +/// Request to get an individual project level attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesGetRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Which type of matchable attributes to return. + /// +required + #[prost(enumeration="MatchableResource", tag="2")] + pub resource_type: i32, +} +/// Response to get an individual project level attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesGetResponse { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Request to delete a set matchable project level attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesDeleteRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Which type of matchable attributes to delete. + /// +required + #[prost(enumeration="MatchableResource", tag="2")] + pub resource_type: i32, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesDeleteResponse { +} +/// Defines a set of custom matching attributes which defines resource defaults for a project and domain. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributes { + /// Unique project id for which this set of attributes will be applied. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id for which this set of attributes will be applied. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub matching_attributes: ::core::option::Option, +} +/// Sets custom attributes for a project-domain combination. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesUpdateRequest { + /// +required + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesUpdateResponse { +} +/// Request to get an individual project domain attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesGetRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Which type of matchable attributes to return. + /// +required + #[prost(enumeration="MatchableResource", tag="3")] + pub resource_type: i32, +} +/// Response to get an individual project domain attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesGetResponse { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Request to delete a set matchable project domain attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesDeleteRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Which type of matchable attributes to delete. + /// +required + #[prost(enumeration="MatchableResource", tag="3")] + pub resource_type: i32, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesDeleteResponse { +} +/// SignalGetOrCreateRequest represents a request structure to retrive or create a signal. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalGetOrCreateRequest { + /// A unique identifier for the requested signal. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// A type denoting the required value type for this signal. + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, +} +/// SignalListRequest represents a request structure to retrieve a collection of signals. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalListRequest { + /// Indicates the workflow execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub workflow_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// SignalList represents collection of signals along with the token of the last result. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalList { + /// A list of signals matching the input filters. + #[prost(message, repeated, tag="1")] + pub signals: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal +/// effetively satisfies the signal condition within a Flyte workflow. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalSetRequest { + /// A unique identifier for the requested signal. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// The value of this signal, must match the defining signal type. + #[prost(message, optional, tag="2")] + pub value: ::core::option::Option, +} +/// SignalSetResponse represents a response structure if signal setting succeeds. +/// +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalSetResponse { +} +/// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte +/// signal. Signals may exist either without a set value (representing a signal request) or with a +/// populated value (indicating the signal has been given). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Signal { + /// A unique identifier for the requested signal. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// A type denoting the required value type for this signal. + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, + /// The value of the signal. This is only available if the signal has been "set" and must match + /// the defined the type. + #[prost(message, optional, tag="3")] + pub value: ::core::option::Option, +} +/// Represents a request structure to create a revision of a task. +/// See :ref:`ref_flyteidl.admin.Task` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateRequest { + /// id represents the unique identifier of the task. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the specification for task. + /// +required + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, +} +/// Represents a response structure if task creation succeeds. +/// +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateResponse { +} +/// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +/// arranged to process workflow inputs and produce a deterministic set of outputs. +/// Tasks can come in many varieties tuned for specialized behavior. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Task { + /// id represents the unique identifier of the task. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// closure encapsulates all the fields that maps to a compiled version of the task. + #[prost(message, optional, tag="2")] + pub closure: ::core::option::Option, + /// One-liner overview of the entity. + #[prost(string, tag="3")] + pub short_description: ::prost::alloc::string::String, +} +/// Represents a list of tasks returned from the admin. +/// See :ref:`ref_flyteidl.admin.Task` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskList { + /// A list of tasks returned based on the request. + #[prost(message, repeated, tag="1")] + pub tasks: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a structure that encapsulates the user-configured specification of the task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskSpec { + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// Represents the specification for description entity. + #[prost(message, optional, tag="2")] + pub description: ::core::option::Option, +} +/// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +/// and task metadata. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskClosure { + /// Represents the compiled representation of the task from the specification provided. + #[prost(message, optional, tag="1")] + pub compiled_task: ::core::option::Option, + /// Time at which the task was created. + #[prost(message, optional, tag="2")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// A message used to fetch a single task execution entity. +/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionGetRequest { + /// Unique identifier for the task execution. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. +/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionListRequest { + /// Indicates the node execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub node_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering for returned list. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// Encapsulates all details for a single task execution entity. +/// A task execution represents an instantiated task, including all inputs and additional +/// metadata as well as computed results included state, outputs, and duration-based attributes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecution { + /// Unique identifier for the task execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Path to remote data store where input blob is stored. + #[prost(string, tag="2")] + pub input_uri: ::prost::alloc::string::String, + /// Task execution details and results. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, + /// Whether this task spawned nodes. + #[prost(bool, tag="4")] + pub is_parent: bool, +} +/// Response structure for a query to list of task execution entities. +/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionList { + #[prost(message, repeated, tag="1")] + pub task_executions: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Container for task execution details and results. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionClosure { + /// The last recorded phase for this task execution. + #[prost(enumeration="super::core::task_execution::Phase", tag="3")] + pub phase: i32, + /// Detailed log information output by the task execution. + #[prost(message, repeated, tag="4")] + pub logs: ::prost::alloc::vec::Vec, + /// Time at which the task execution began running. + #[prost(message, optional, tag="5")] + pub started_at: ::core::option::Option<::prost_types::Timestamp>, + /// The amount of time the task execution spent running. + #[prost(message, optional, tag="6")] + pub duration: ::core::option::Option<::prost_types::Duration>, + /// Time at which the task execution was created. + #[prost(message, optional, tag="7")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Time at which the task execution was last updated. + #[prost(message, optional, tag="8")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, + /// Custom data specific to the task plugin. + #[prost(message, optional, tag="9")] + pub custom_info: ::core::option::Option<::prost_types::Struct>, + /// If there is an explanation for the most recent phase transition, the reason will capture it. + #[prost(string, tag="10")] + pub reason: ::prost::alloc::string::String, + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="11")] + pub task_type: ::prost::alloc::string::String, + /// Metadata around how a task was executed. + #[prost(message, optional, tag="16")] + pub metadata: ::core::option::Option, + /// The event version is used to indicate versioned changes in how data is maintained using this + /// proto message. For example, event_verison > 0 means that maps tasks logs use the + /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + /// in this message. + #[prost(int32, tag="17")] + pub event_version: i32, + /// A time-series of the phase transition or update explanations. This, when compared to storing a singular reason + /// as previously done, is much more valuable in visualizing and understanding historical evaluations. + #[prost(message, repeated, tag="18")] + pub reasons: ::prost::alloc::vec::Vec, + #[prost(oneof="task_execution_closure::OutputResult", tags="1, 2, 12")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `TaskExecutionClosure`. +pub mod task_execution_closure { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + #[prost(string, tag="1")] + OutputUri(::prost::alloc::string::String), + /// Error information for the task execution. Populated if the execution failed. + #[prost(message, tag="2")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this task execution. + /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + #[prost(message, tag="12")] + OutputData(super::super::core::LiteralMap), + } +} +/// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Reason { + /// occurred_at is the timestamp indicating the instant that this reason happened. + #[prost(message, optional, tag="1")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// message is the explanation for the most recent phase transition or status update. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, +} +/// Request structure to fetch inputs and output for a task execution. +/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionGetDataRequest { + /// The identifier of the task execution for which to fetch inputs and outputs. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionGetDataResponse { + /// Signed url to fetch a core.LiteralMap of task execution inputs. + /// Deprecated: Please use full_inputs instead. + #[deprecated] + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Signed url to fetch a core.LiteralMap of task execution outputs. + /// Deprecated: Please use full_outputs instead. + #[deprecated] + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, + /// Full_inputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="3")] + pub full_inputs: ::core::option::Option, + /// Full_outputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="4")] + pub full_outputs: ::core::option::Option, + /// flyte tiny url to fetch a core.LiteralMap of task execution's IO + /// Deck will be empty for task + #[prost(message, optional, tag="5")] + pub flyte_urls: ::core::option::Option, +} +/// Response for the GetVersion API +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetVersionResponse { + /// The control plane version information. FlyteAdmin and related components + /// form the control plane of Flyte + #[prost(message, optional, tag="1")] + pub control_plane_version: ::core::option::Option, +} +/// Provides Version information for a component +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Version { + /// Specifies the GIT sha of the build + #[prost(string, tag="1")] + pub build: ::prost::alloc::string::String, + /// Version for the build, should follow a semver + #[prost(string, tag="2")] + pub version: ::prost::alloc::string::String, + /// Build timestamp + #[prost(string, tag="3")] + pub build_time: ::prost::alloc::string::String, +} +/// Empty request for GetVersion +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetVersionRequest { +} +/// Represents a request structure to create a revision of a workflow. +/// See :ref:`ref_flyteidl.admin.Workflow` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowCreateRequest { + /// id represents the unique identifier of the workflow. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the specification for workflow. + /// +required + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowCreateResponse { +} +/// Represents the workflow structure stored in the Admin +/// A workflow is created by ordering tasks and associating outputs to inputs +/// in order to produce a directed-acyclic execution graph. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Workflow { + /// id represents the unique identifier of the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// closure encapsulates all the fields that maps to a compiled version of the workflow. + #[prost(message, optional, tag="2")] + pub closure: ::core::option::Option, + /// One-liner overview of the entity. + #[prost(string, tag="3")] + pub short_description: ::prost::alloc::string::String, +} +/// Represents a list of workflows returned from the admin. +/// See :ref:`ref_flyteidl.admin.Workflow` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowList { + /// A list of workflows returned based on the request. + #[prost(message, repeated, tag="1")] + pub workflows: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a structure that encapsulates the specification of the workflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowSpec { + /// Template of the task that encapsulates all the metadata of the workflow. + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the + /// propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out + /// to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. + #[prost(message, repeated, tag="2")] + pub sub_workflows: ::prost::alloc::vec::Vec, + /// Represents the specification for description entity. + #[prost(message, optional, tag="3")] + pub description: ::core::option::Option, +} +/// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowClosure { + /// Represents the compiled representation of the workflow from the specification provided. + #[prost(message, optional, tag="1")] + pub compiled_workflow: ::core::option::Option, + /// Time at which the workflow was created. + #[prost(message, optional, tag="2")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// The workflow id is already used and the structure is different +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowErrorExistsDifferentStructure { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// The workflow id is already used with an identical sctructure +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowErrorExistsIdenticalStructure { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// When a CreateWorkflowRequest failes due to matching id +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateWorkflowFailureReason { + #[prost(oneof="create_workflow_failure_reason::Reason", tags="1, 2")] + pub reason: ::core::option::Option, +} +/// Nested message and enum types in `CreateWorkflowFailureReason`. +pub mod create_workflow_failure_reason { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reason { + #[prost(message, tag="1")] + ExistsDifferentStructure(super::WorkflowErrorExistsDifferentStructure), + #[prost(message, tag="2")] + ExistsIdenticalStructure(super::WorkflowErrorExistsIdenticalStructure), + } +} +/// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributes { + /// Unique project id for which this set of attributes will be applied. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id for which this set of attributes will be applied. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Workflow name for which this set of attributes will be applied. + #[prost(string, tag="3")] + pub workflow: ::prost::alloc::string::String, + #[prost(message, optional, tag="4")] + pub matching_attributes: ::core::option::Option, +} +/// Sets custom attributes for a project, domain and workflow combination. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesUpdateRequest { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesUpdateResponse { +} +/// Request to get an individual workflow attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesGetRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Workflow name which this set of attributes references. + /// +required + #[prost(string, tag="3")] + pub workflow: ::prost::alloc::string::String, + /// Which type of matchable attributes to return. + /// +required + #[prost(enumeration="MatchableResource", tag="4")] + pub resource_type: i32, +} +/// Response to get an individual workflow attribute override. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesGetResponse { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Request to delete a set matchable workflow attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesDeleteRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Workflow name which this set of attributes references. + /// +required + #[prost(string, tag="3")] + pub workflow: ::prost::alloc::string::String, + /// Which type of matchable attributes to delete. + /// +required + #[prost(enumeration="MatchableResource", tag="4")] + pub resource_type: i32, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesDeleteResponse { +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs new file mode 100644 index 0000000000..ae1ce08820 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -0,0 +1,2643 @@ +// @generated +/// Defines schema columns and types to strongly type-validate schemas interoperability. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SchemaType { + /// A list of ordered columns this schema comprises of. + #[prost(message, repeated, tag="3")] + pub columns: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `SchemaType`. +pub mod schema_type { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct SchemaColumn { + /// A unique name -within the schema type- for the column + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The column type. This allows a limited set of types currently. + #[prost(enumeration="schema_column::SchemaColumnType", tag="2")] + pub r#type: i32, + } + /// Nested message and enum types in `SchemaColumn`. + pub mod schema_column { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum SchemaColumnType { + Integer = 0, + Float = 1, + String = 2, + Boolean = 3, + Datetime = 4, + Duration = 5, + } + impl SchemaColumnType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SchemaColumnType::Integer => "INTEGER", + SchemaColumnType::Float => "FLOAT", + SchemaColumnType::String => "STRING", + SchemaColumnType::Boolean => "BOOLEAN", + SchemaColumnType::Datetime => "DATETIME", + SchemaColumnType::Duration => "DURATION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "INTEGER" => Some(Self::Integer), + "FLOAT" => Some(Self::Float), + "STRING" => Some(Self::String), + "BOOLEAN" => Some(Self::Boolean), + "DATETIME" => Some(Self::Datetime), + "DURATION" => Some(Self::Duration), + _ => None, + } + } + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct StructuredDatasetType { + /// A list of ordered columns this schema comprises of. + #[prost(message, repeated, tag="1")] + pub columns: ::prost::alloc::vec::Vec, + /// This is the storage format, the format of the bits at rest + /// parquet, feather, csv, etc. + /// For two types to be compatible, the format will need to be an exact match. + #[prost(string, tag="2")] + pub format: ::prost::alloc::string::String, + /// This is a string representing the type that the bytes in external_schema_bytes are formatted in. + /// This is an optional field that will not be used for type checking. + #[prost(string, tag="3")] + pub external_schema_type: ::prost::alloc::string::String, + /// The serialized bytes of a third-party schema library like Arrow. + /// This is an optional field that will not be used for type checking. + #[prost(bytes="vec", tag="4")] + pub external_schema_bytes: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `StructuredDatasetType`. +pub mod structured_dataset_type { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct DatasetColumn { + /// A unique name within the schema type for the column. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The column type. + #[prost(message, optional, tag="2")] + pub literal_type: ::core::option::Option, + } +} +/// Defines type behavior for blob objects +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BlobType { + /// Format can be a free form string understood by SDK/UI etc like + /// csv, parquet etc + #[prost(string, tag="1")] + pub format: ::prost::alloc::string::String, + #[prost(enumeration="blob_type::BlobDimensionality", tag="2")] + pub dimensionality: i32, +} +/// Nested message and enum types in `BlobType`. +pub mod blob_type { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum BlobDimensionality { + Single = 0, + Multipart = 1, + } + impl BlobDimensionality { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + BlobDimensionality::Single => "SINGLE", + BlobDimensionality::Multipart => "MULTIPART", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "SINGLE" => Some(Self::Single), + "MULTIPART" => Some(Self::Multipart), + _ => None, + } + } + } +} +/// Enables declaring enum types, with predefined string values +/// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish +/// To provide no defaults, make the first value as undefined. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EnumType { + /// Predefined set of enum values. + #[prost(string, repeated, tag="1")] + pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Defines a tagged union type, also known as a variant (and formally as the sum type). +/// +/// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag +/// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by +/// storing the varaint's tag with the literal value and can be examined in runtime. +/// +/// Type S is typically written as +/// S := Apple A | Banana B | Cantaloupe C | ... +/// +/// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: +/// Optional X := X | Null +/// +/// See also: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnionType { + /// Predefined set of variants in union. + #[prost(message, repeated, tag="1")] + pub variants: ::prost::alloc::vec::Vec, +} +/// Hints to improve type matching +/// e.g. allows distinguishing output from custom type transformers +/// even if the underlying IDL serialization matches. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TypeStructure { + /// Must exactly match for types to be castable + #[prost(string, tag="1")] + pub tag: ::prost::alloc::string::String, +} +/// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TypeAnnotation { + /// A arbitrary JSON payload to describe a type. + #[prost(message, optional, tag="1")] + pub annotations: ::core::option::Option<::prost_types::Struct>, +} +/// Defines a strong type to allow type checking between interfaces. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralType { + /// This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + /// consumers to identify special behavior or display extended information for the type. + #[prost(message, optional, tag="6")] + pub metadata: ::core::option::Option<::prost_types::Struct>, + /// This field contains arbitrary data that might have special semantic + /// meaning for the client but does not effect internal flyte behavior. + #[prost(message, optional, tag="9")] + pub annotation: ::core::option::Option, + /// Hints to improve type matching. + #[prost(message, optional, tag="11")] + pub structure: ::core::option::Option, + #[prost(oneof="literal_type::Type", tags="1, 2, 3, 4, 5, 7, 8, 10")] + pub r#type: ::core::option::Option, +} +/// Nested message and enum types in `LiteralType`. +pub mod literal_type { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Type { + /// A simple type that can be compared one-to-one with another. + #[prost(enumeration="super::SimpleType", tag="1")] + Simple(i32), + /// A complex type that requires matching of inner fields. + #[prost(message, tag="2")] + Schema(super::SchemaType), + /// Defines the type of the value of a collection. Only homogeneous collections are allowed. + #[prost(message, tag="3")] + CollectionType(::prost::alloc::boxed::Box), + /// Defines the type of the value of a map type. The type of the key is always a string. + #[prost(message, tag="4")] + MapValueType(::prost::alloc::boxed::Box), + /// A blob might have specialized implementation details depending on associated metadata. + #[prost(message, tag="5")] + Blob(super::BlobType), + /// Defines an enum with pre-defined string values. + #[prost(message, tag="7")] + EnumType(super::EnumType), + /// Generalized schema support + #[prost(message, tag="8")] + StructuredDatasetType(super::StructuredDatasetType), + /// Defines an union type with pre-defined LiteralTypes. + #[prost(message, tag="10")] + UnionType(super::UnionType), + } +} +/// A reference to an output produced by a node. The type can be retrieved -and validated- from +/// the underlying interface of the node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OutputReference { + /// Node id must exist at the graph layer. + #[prost(string, tag="1")] + pub node_id: ::prost::alloc::string::String, + /// Variable name must refer to an output variable for the node. + #[prost(string, tag="2")] + pub var: ::prost::alloc::string::String, +} +/// Represents an error thrown from a node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Error { + /// The node id that threw the error. + #[prost(string, tag="1")] + pub failed_node_id: ::prost::alloc::string::String, + /// Error message thrown. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, +} +/// Define a set of simple types. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum SimpleType { + None = 0, + Integer = 1, + Float = 2, + String = 3, + Boolean = 4, + Datetime = 5, + Duration = 6, + Binary = 7, + Error = 8, + Struct = 9, +} +impl SimpleType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SimpleType::None => "NONE", + SimpleType::Integer => "INTEGER", + SimpleType::Float => "FLOAT", + SimpleType::String => "STRING", + SimpleType::Boolean => "BOOLEAN", + SimpleType::Datetime => "DATETIME", + SimpleType::Duration => "DURATION", + SimpleType::Binary => "BINARY", + SimpleType::Error => "ERROR", + SimpleType::Struct => "STRUCT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "NONE" => Some(Self::None), + "INTEGER" => Some(Self::Integer), + "FLOAT" => Some(Self::Float), + "STRING" => Some(Self::String), + "BOOLEAN" => Some(Self::Boolean), + "DATETIME" => Some(Self::Datetime), + "DURATION" => Some(Self::Duration), + "BINARY" => Some(Self::Binary), + "ERROR" => Some(Self::Error), + "STRUCT" => Some(Self::Struct), + _ => None, + } + } +} +/// Primitive Types +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Primitive { + /// Defines one of simple primitive types. These types will get translated into different programming languages as + /// described in + #[prost(oneof="primitive::Value", tags="1, 2, 3, 4, 5, 6")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `Primitive`. +pub mod primitive { + /// Defines one of simple primitive types. These types will get translated into different programming languages as + /// described in + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(int64, tag="1")] + Integer(i64), + #[prost(double, tag="2")] + FloatValue(f64), + #[prost(string, tag="3")] + StringValue(::prost::alloc::string::String), + #[prost(bool, tag="4")] + Boolean(bool), + #[prost(message, tag="5")] + Datetime(::prost_types::Timestamp), + #[prost(message, tag="6")] + Duration(::prost_types::Duration), + } +} +/// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +/// undefined since it can be assigned to a scalar of any LiteralType. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Void { +} +/// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +/// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Blob { + #[prost(message, optional, tag="1")] + pub metadata: ::core::option::Option, + #[prost(string, tag="3")] + pub uri: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BlobMetadata { + #[prost(message, optional, tag="1")] + pub r#type: ::core::option::Option, +} +/// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +/// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Binary { + #[prost(bytes="vec", tag="1")] + pub value: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub tag: ::prost::alloc::string::String, +} +/// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Schema { + #[prost(string, tag="1")] + pub uri: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub r#type: ::core::option::Option, +} +/// The runtime representation of a tagged union value. See `UnionType` for more details. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Union { + #[prost(message, optional, boxed, tag="1")] + pub value: ::core::option::Option<::prost::alloc::boxed::Box>, + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct StructuredDatasetMetadata { + /// Bundle the type information along with the literal. + /// This is here because StructuredDatasets can often be more defined at run time than at compile time. + /// That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, + /// without any column information, but at run time, you might have that column information. + /// flytekit python will copy this type information into the literal, from the type information, if not provided by + /// the various plugins (encoders). + /// Since this field is run time generated, it's not used for any type checking. + #[prost(message, optional, tag="1")] + pub structured_dataset_type: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct StructuredDataset { + /// String location uniquely identifying where the data is. + /// Should start with the storage location (e.g. s3://, gs://, bq://, etc.) + #[prost(string, tag="1")] + pub uri: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Scalar { + #[prost(oneof="scalar::Value", tags="1, 2, 3, 4, 5, 6, 7, 8, 9")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `Scalar`. +pub mod scalar { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(message, tag="1")] + Primitive(super::Primitive), + #[prost(message, tag="2")] + Blob(super::Blob), + #[prost(message, tag="3")] + Binary(super::Binary), + #[prost(message, tag="4")] + Schema(super::Schema), + #[prost(message, tag="5")] + NoneType(super::Void), + #[prost(message, tag="6")] + Error(super::Error), + #[prost(message, tag="7")] + Generic(::prost_types::Struct), + #[prost(message, tag="8")] + StructuredDataset(super::StructuredDataset), + #[prost(message, tag="9")] + Union(::prost::alloc::boxed::Box), + } +} +/// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Literal { + /// A hash representing this literal. + /// This is used for caching purposes. For more details refer to RFC 1893 + /// () + #[prost(string, tag="4")] + pub hash: ::prost::alloc::string::String, + #[prost(oneof="literal::Value", tags="1, 2, 3")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `Literal`. +pub mod literal { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + /// A simple value. + #[prost(message, tag="1")] + Scalar(::prost::alloc::boxed::Box), + /// A collection of literals to allow nesting. + #[prost(message, tag="2")] + Collection(super::LiteralCollection), + /// A map of strings to literals. + #[prost(message, tag="3")] + Map(super::LiteralMap), + } +} +/// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralCollection { + #[prost(message, repeated, tag="1")] + pub literals: ::prost::alloc::vec::Vec, +} +/// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralMap { + #[prost(map="string, message", tag="1")] + pub literals: ::std::collections::HashMap<::prost::alloc::string::String, Literal>, +} +/// A collection of BindingData items. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BindingDataCollection { + #[prost(message, repeated, tag="1")] + pub bindings: ::prost::alloc::vec::Vec, +} +/// A map of BindingData items. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BindingDataMap { + #[prost(map="string, message", tag="1")] + pub bindings: ::std::collections::HashMap<::prost::alloc::string::String, BindingData>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnionInfo { + #[prost(message, optional, tag="1")] + pub target_type: ::core::option::Option, +} +/// Specifies either a simple value or a reference to another output. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BindingData { + #[prost(message, optional, tag="5")] + pub union: ::core::option::Option, + #[prost(oneof="binding_data::Value", tags="1, 2, 3, 4")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `BindingData`. +pub mod binding_data { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + /// A simple scalar value. + #[prost(message, tag="1")] + Scalar(super::Scalar), + /// A collection of binding data. This allows nesting of binding data to any number + /// of levels. + #[prost(message, tag="2")] + Collection(super::BindingDataCollection), + /// References an output promised by another node. + #[prost(message, tag="3")] + Promise(super::OutputReference), + /// A map of bindings. The key is always a string. + #[prost(message, tag="4")] + Map(super::BindingDataMap), + } +} +/// An input/output binding of a variable to either static value or a node output. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Binding { + /// Variable name must match an input/output variable of the node. + #[prost(string, tag="1")] + pub var: ::prost::alloc::string::String, + /// Data to use to bind this variable. + #[prost(message, optional, tag="2")] + pub binding: ::core::option::Option, +} +/// A generic key value pair. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct KeyValuePair { + /// required. + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + /// +optional. + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, +} +/// Retry strategy associated with an executable unit. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RetryStrategy { + /// Number of retries. Retries will be consumed when the job fails with a recoverable error. + /// The number of retries must be less than or equals to 10. + #[prost(uint32, tag="5")] + pub retries: u32, +} +/// Encapsulation of fields that uniquely identifies a Flyte resource. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Identifier { + /// Identifies the specific type of resource that this identifier corresponds to. + #[prost(enumeration="ResourceType", tag="1")] + pub resource_type: i32, + /// Name of the project the resource belongs to. + #[prost(string, tag="2")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the resource belongs to. + /// A domain can be considered as a subset within a specific project. + #[prost(string, tag="3")] + pub domain: ::prost::alloc::string::String, + /// User provided value for the resource. + #[prost(string, tag="4")] + pub name: ::prost::alloc::string::String, + /// Specific version of the resource. + #[prost(string, tag="5")] + pub version: ::prost::alloc::string::String, +} +/// Encapsulation of fields that uniquely identifies a Flyte workflow execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionIdentifier { + /// Name of the project the resource belongs to. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the resource belongs to. + /// A domain can be considered as a subset within a specific project. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// User or system provided value for the resource. + #[prost(string, tag="4")] + pub name: ::prost::alloc::string::String, +} +/// Encapsulation of fields that identify a Flyte node execution entity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionIdentifier { + #[prost(string, tag="1")] + pub node_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub execution_id: ::core::option::Option, +} +/// Encapsulation of fields that identify a Flyte task execution entity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionIdentifier { + #[prost(message, optional, tag="1")] + pub task_id: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub node_execution_id: ::core::option::Option, + #[prost(uint32, tag="3")] + pub retry_attempt: u32, +} +/// Encapsulation of fields the uniquely identify a signal. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalIdentifier { + /// Unique identifier for a signal. + #[prost(string, tag="1")] + pub signal_id: ::prost::alloc::string::String, + /// Identifies the Flyte workflow execution this signal belongs to. + #[prost(message, optional, tag="2")] + pub execution_id: ::core::option::Option, +} +/// Indicates a resource type within Flyte. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ResourceType { + Unspecified = 0, + Task = 1, + Workflow = 2, + LaunchPlan = 3, + /// A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. + /// Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects + /// in a similar manner to other Flyte objects + Dataset = 4, +} +impl ResourceType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ResourceType::Unspecified => "UNSPECIFIED", + ResourceType::Task => "TASK", + ResourceType::Workflow => "WORKFLOW", + ResourceType::LaunchPlan => "LAUNCH_PLAN", + ResourceType::Dataset => "DATASET", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNSPECIFIED" => Some(Self::Unspecified), + "TASK" => Some(Self::Task), + "WORKFLOW" => Some(Self::Workflow), + "LAUNCH_PLAN" => Some(Self::LaunchPlan), + "DATASET" => Some(Self::Dataset), + _ => None, + } + } +} +/// Defines a strongly typed variable. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Variable { + /// Variable literal type. + #[prost(message, optional, tag="1")] + pub r#type: ::core::option::Option, + /// +optional string describing input variable + #[prost(string, tag="2")] + pub description: ::prost::alloc::string::String, +} +/// A map of Variables +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct VariableMap { + /// Defines a map of variable names to variables. + #[prost(map="string, message", tag="1")] + pub variables: ::std::collections::HashMap<::prost::alloc::string::String, Variable>, +} +/// Defines strongly typed inputs and outputs. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TypedInterface { + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, +} +/// A parameter is used as input to a launch plan and has +/// the special ability to have a default value or mark itself as required. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Parameter { + /// +required Variable. Defines the type of the variable backing this parameter. + #[prost(message, optional, tag="1")] + pub var: ::core::option::Option, + /// +optional + #[prost(oneof="parameter::Behavior", tags="2, 3")] + pub behavior: ::core::option::Option, +} +/// Nested message and enum types in `Parameter`. +pub mod parameter { + /// +optional + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Behavior { + /// Defines a default value that has to match the variable type defined. + #[prost(message, tag="2")] + Default(super::Literal), + /// +optional, is this value required to be filled. + #[prost(bool, tag="3")] + Required(bool), + } +} +/// A map of Parameters. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParameterMap { + /// Defines a map of parameter names to parameters. + #[prost(map="string, message", tag="1")] + pub parameters: ::std::collections::HashMap<::prost::alloc::string::String, Parameter>, +} +/// Secret encapsulates information about the secret a task needs to proceed. An environment variable +/// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +/// secrets are passed through environment variables. +/// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets +/// are passed through file mounts. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Secret { + /// The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of + /// the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. + /// For AWS Secret Manager, this should be the name of the secret. + /// +required + #[prost(string, tag="1")] + pub group: ::prost::alloc::string::String, + /// The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones + /// that do not support it. + /// +optional + #[prost(string, tag="2")] + pub group_version: ::prost::alloc::string::String, + /// The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation + /// of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should + /// match one of the keys inside the secret. For AWS Secret Manager, it's ignored. + /// +optional + #[prost(string, tag="3")] + pub key: ::prost::alloc::string::String, + /// mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail + /// if the underlying key management system cannot satisfy that requirement. If not provided, the default location + /// will depend on the key management system. + /// +optional + #[prost(enumeration="secret::MountType", tag="4")] + pub mount_requirement: i32, +} +/// Nested message and enum types in `Secret`. +pub mod secret { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum MountType { + /// Default case, indicates the client can tolerate either mounting options. + Any = 0, + /// ENV_VAR indicates the secret needs to be mounted as an environment variable. + EnvVar = 1, + /// FILE indicates the secret needs to be mounted as a file. + File = 2, + } + impl MountType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MountType::Any => "ANY", + MountType::EnvVar => "ENV_VAR", + MountType::File => "FILE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ANY" => Some(Self::Any), + "ENV_VAR" => Some(Self::EnvVar), + "FILE" => Some(Self::File), + _ => None, + } + } + } +} +/// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2Client { + /// client_id is the public id for the client to use. The system will not perform any pre-auth validation that the + /// secret requested matches the client_id indicated here. + /// +required + #[prost(string, tag="1")] + pub client_id: ::prost::alloc::string::String, + /// client_secret is a reference to the secret used to authenticate the OAuth2 client. + /// +required + #[prost(message, optional, tag="2")] + pub client_secret: ::core::option::Option, +} +/// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the +/// right identity for the execution environment. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Identity { + /// iam_role references the fully qualified name of Identity & Access Management role to impersonate. + #[prost(string, tag="1")] + pub iam_role: ::prost::alloc::string::String, + /// k8s_service_account references a kubernetes service account to impersonate. + #[prost(string, tag="2")] + pub k8s_service_account: ::prost::alloc::string::String, + /// oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when + /// making external calls. + #[prost(message, optional, tag="3")] + pub oauth2_client: ::core::option::Option, + /// execution_identity references the subject who makes the execution + #[prost(string, tag="4")] + pub execution_identity: ::prost::alloc::string::String, +} +/// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. +/// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +/// tokens are passed through environment variables. +/// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens +/// are passed through file mounts. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2TokenRequest { + /// name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for + /// environment variables and as a filename for mounting tokens as files. + /// +required + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. + /// +required + #[prost(enumeration="o_auth2_token_request::Type", tag="2")] + pub r#type: i32, + /// client references the client_id/secret to use to request the OAuth2 token. + /// +required + #[prost(message, optional, tag="3")] + pub client: ::core::option::Option, + /// idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related + /// information. + /// +optional + #[prost(string, tag="4")] + pub idp_discovery_endpoint: ::prost::alloc::string::String, + /// token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is + /// mandatory. + /// +optional + #[prost(string, tag="5")] + pub token_endpoint: ::prost::alloc::string::String, +} +/// Nested message and enum types in `OAuth2TokenRequest`. +pub mod o_auth2_token_request { + /// Type of the token requested. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Type { + /// CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. + ClientCredentials = 0, + } + impl Type { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Type::ClientCredentials => "CLIENT_CREDENTIALS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CLIENT_CREDENTIALS" => Some(Self::ClientCredentials), + _ => None, + } + } + } +} +/// SecurityContext holds security attributes that apply to tasks. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SecurityContext { + /// run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the + /// backend plugin to choose the appropriate identity for the execution engine the task will run on. + #[prost(message, optional, tag="1")] + pub run_as: ::core::option::Option, + /// secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the + /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + /// to the secret) and to pass it to the remote execution engine. + #[prost(message, repeated, tag="2")] + pub secrets: ::prost::alloc::vec::Vec, + /// tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the + /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + /// to the secret) and to pass it to the remote execution engine. + #[prost(message, repeated, tag="3")] + pub tokens: ::prost::alloc::vec::Vec, +} +/// A customizable interface to convey resources requested for a container. This can be interpreted differently for different +/// container engines. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Resources { + /// The desired set of resources requested. ResourceNames must be unique within the list. + #[prost(message, repeated, tag="1")] + pub requests: ::prost::alloc::vec::Vec, + /// Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + /// within the list. + #[prost(message, repeated, tag="2")] + pub limits: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `Resources`. +pub mod resources { + /// Encapsulates a resource name and value. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct ResourceEntry { + /// Resource name. + #[prost(enumeration="ResourceName", tag="1")] + pub name: i32, + /// Value must be a valid k8s quantity. See + /// + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, + } + /// Known resource names. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ResourceName { + Unknown = 0, + Cpu = 1, + Gpu = 2, + Memory = 3, + Storage = 4, + /// For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. + EphemeralStorage = 5, + } + impl ResourceName { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ResourceName::Unknown => "UNKNOWN", + ResourceName::Cpu => "CPU", + ResourceName::Gpu => "GPU", + ResourceName::Memory => "MEMORY", + ResourceName::Storage => "STORAGE", + ResourceName::EphemeralStorage => "EPHEMERAL_STORAGE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "CPU" => Some(Self::Cpu), + "GPU" => Some(Self::Gpu), + "MEMORY" => Some(Self::Memory), + "STORAGE" => Some(Self::Storage), + "EPHEMERAL_STORAGE" => Some(Self::EphemeralStorage), + _ => None, + } + } + } +} +/// Runtime information. This is loosely defined to allow for extensibility. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RuntimeMetadata { + /// Type of runtime. + #[prost(enumeration="runtime_metadata::RuntimeType", tag="1")] + pub r#type: i32, + /// Version of the runtime. All versions should be backward compatible. However, certain cases call for version + /// checks to ensure tighter validation or setting expectations. + #[prost(string, tag="2")] + pub version: ::prost::alloc::string::String, + /// +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + #[prost(string, tag="3")] + pub flavor: ::prost::alloc::string::String, +} +/// Nested message and enum types in `RuntimeMetadata`. +pub mod runtime_metadata { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum RuntimeType { + Other = 0, + FlyteSdk = 1, + } + impl RuntimeType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + RuntimeType::Other => "OTHER", + RuntimeType::FlyteSdk => "FLYTE_SDK", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "OTHER" => Some(Self::Other), + "FLYTE_SDK" => Some(Self::FlyteSdk), + _ => None, + } + } + } +} +/// Task Metadata +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskMetadata { + /// Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + #[prost(bool, tag="1")] + pub discoverable: bool, + /// Runtime information about the task. + #[prost(message, optional, tag="2")] + pub runtime: ::core::option::Option, + /// The overall timeout of a task including user-triggered retries. + #[prost(message, optional, tag="4")] + pub timeout: ::core::option::Option<::prost_types::Duration>, + /// Number of retries per task. + #[prost(message, optional, tag="5")] + pub retries: ::core::option::Option, + /// Indicates a logical version to apply to this task for the purpose of discovery. + #[prost(string, tag="6")] + pub discovery_version: ::prost::alloc::string::String, + /// If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + /// of the ending of support for a given task. + #[prost(string, tag="7")] + pub deprecated_error_message: ::prost::alloc::string::String, + /// Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work + #[prost(bool, tag="9")] + pub cache_serializable: bool, + /// Indicates whether the task will generate a Deck URI when it finishes executing. + #[prost(bool, tag="10")] + pub generates_deck: bool, + /// Arbitrary tags that allow users and the platform to store small but arbitrary labels + #[prost(map="string, string", tag="11")] + pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this + /// task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied + /// identically as, the default PodTemplate configured in FlytePropeller. + #[prost(string, tag="12")] + pub pod_template_name: ::prost::alloc::string::String, + // For interruptible we will populate it at the node level but require it be part of TaskMetadata + // for a user to set the value. + // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being + // set by the user or defaulting to false. + // The logic of handling precedence will be done as part of flytepropeller. + + /// Identify whether task is interruptible + #[prost(oneof="task_metadata::InterruptibleValue", tags="8")] + pub interruptible_value: ::core::option::Option, +} +/// Nested message and enum types in `TaskMetadata`. +pub mod task_metadata { + // For interruptible we will populate it at the node level but require it be part of TaskMetadata + // for a user to set the value. + // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being + // set by the user or defaulting to false. + // The logic of handling precedence will be done as part of flytepropeller. + + /// Identify whether task is interruptible + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InterruptibleValue { + #[prost(bool, tag="8")] + Interruptible(bool), + } +} +/// A Task structure that uniquely identifies a task in the system +/// Tasks are registered as a first step in the system. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskTemplate { + /// Auto generated taskId by the system. Task Id uniquely identifies this task globally. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + /// extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + /// implementation registered for the TaskCategory. + #[prost(string, tag="2")] + pub r#type: ::prost::alloc::string::String, + /// Extra metadata about the task. + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, + /// A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees + /// compile-time validation of the workflow to avoid costly runtime failures. + #[prost(message, optional, tag="4")] + pub interface: ::core::option::Option, + /// Custom data about the task. This is extensible to allow various plugins in the system. + #[prost(message, optional, tag="5")] + pub custom: ::core::option::Option<::prost_types::Struct>, + /// This can be used to customize task handling at execution time for the same task type. + #[prost(int32, tag="7")] + pub task_type_version: i32, + /// security_context encapsulates security attributes requested to run this task. + #[prost(message, optional, tag="8")] + pub security_context: ::core::option::Option, + /// Metadata about the custom defined for this task. This is extensible to allow various plugins in the system + /// to use as required. + /// reserve the field numbers 1 through 15 for very frequently occurring message elements + #[prost(map="string, string", tag="16")] + pub config: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + /// handlers. + #[prost(oneof="task_template::Target", tags="6, 17, 18")] + pub target: ::core::option::Option, +} +/// Nested message and enum types in `TaskTemplate`. +pub mod task_template { + /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + /// handlers. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Target { + #[prost(message, tag="6")] + Container(super::Container), + #[prost(message, tag="17")] + K8sPod(super::K8sPod), + #[prost(message, tag="18")] + Sql(super::Sql), + } +} +// ----------------- First class Plugins + +/// Defines port properties for a container. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ContainerPort { + /// Number of port to expose on the pod's IP address. + /// This must be a valid port number, 0 < x < 65536. + #[prost(uint32, tag="1")] + pub container_port: u32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Container { + /// Container image url. Eg: docker/redis:latest + #[prost(string, tag="1")] + pub image: ::prost::alloc::string::String, + /// Command to be executed, if not provided, the default entrypoint in the container image will be used. + #[prost(string, repeated, tag="2")] + pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + /// needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + /// system will populate these before executing the container. + #[prost(string, repeated, tag="3")] + pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Container resources requirement as specified by the container engine. + #[prost(message, optional, tag="4")] + pub resources: ::core::option::Option, + /// Environment variables will be set as the container is starting up. + #[prost(message, repeated, tag="5")] + pub env: ::prost::alloc::vec::Vec, + /// Allows extra configs to be available for the container. + /// TODO: elaborate on how configs will become available. + /// Deprecated, please use TaskTemplate.config instead. + #[deprecated] + #[prost(message, repeated, tag="6")] + pub config: ::prost::alloc::vec::Vec, + /// Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + /// not supported on AWS Batch) + /// Only K8s + #[prost(message, repeated, tag="7")] + pub ports: ::prost::alloc::vec::Vec, + /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. + /// This makes it possible to to run a completely portable container, that uses inputs and outputs + /// only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. + /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + /// to understand the default paths. + /// Only K8s + #[prost(message, optional, tag="9")] + pub data_config: ::core::option::Option, + #[prost(enumeration="container::Architecture", tag="10")] + pub architecture: i32, +} +/// Nested message and enum types in `Container`. +pub mod container { + /// Architecture-type the container image supports. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Architecture { + Unknown = 0, + Amd64 = 1, + Arm64 = 2, + ArmV6 = 3, + ArmV7 = 4, + } + impl Architecture { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Architecture::Unknown => "UNKNOWN", + Architecture::Amd64 => "AMD64", + Architecture::Arm64 => "ARM64", + Architecture::ArmV6 => "ARM_V6", + Architecture::ArmV7 => "ARM_V7", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "AMD64" => Some(Self::Amd64), + "ARM64" => Some(Self::Arm64), + "ARM_V6" => Some(Self::ArmV6), + "ARM_V7" => Some(Self::ArmV7), + _ => None, + } + } + } +} +/// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IoStrategy { + /// Mode to use to manage downloads + #[prost(enumeration="io_strategy::DownloadMode", tag="1")] + pub download_mode: i32, + /// Mode to use to manage uploads + #[prost(enumeration="io_strategy::UploadMode", tag="2")] + pub upload_mode: i32, +} +/// Nested message and enum types in `IOStrategy`. +pub mod io_strategy { + /// Mode to use for downloading + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum DownloadMode { + /// All data will be downloaded before the main container is executed + DownloadEager = 0, + /// Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details + DownloadStream = 1, + /// Large objects (offloaded) will not be downloaded + DoNotDownload = 2, + } + impl DownloadMode { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + DownloadMode::DownloadEager => "DOWNLOAD_EAGER", + DownloadMode::DownloadStream => "DOWNLOAD_STREAM", + DownloadMode::DoNotDownload => "DO_NOT_DOWNLOAD", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DOWNLOAD_EAGER" => Some(Self::DownloadEager), + "DOWNLOAD_STREAM" => Some(Self::DownloadStream), + "DO_NOT_DOWNLOAD" => Some(Self::DoNotDownload), + _ => None, + } + } + } + /// Mode to use for uploading + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum UploadMode { + /// All data will be uploaded after the main container exits + UploadOnExit = 0, + /// Data will be uploaded as it appears. Refer to protocol specification for details + UploadEager = 1, + /// Data will not be uploaded, only references will be written + DoNotUpload = 2, + } + impl UploadMode { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + UploadMode::UploadOnExit => "UPLOAD_ON_EXIT", + UploadMode::UploadEager => "UPLOAD_EAGER", + UploadMode::DoNotUpload => "DO_NOT_UPLOAD", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UPLOAD_ON_EXIT" => Some(Self::UploadOnExit), + "UPLOAD_EAGER" => Some(Self::UploadEager), + "DO_NOT_UPLOAD" => Some(Self::DoNotUpload), + _ => None, + } + } + } +} +/// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. +/// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path +/// Any outputs generated by the user container - within output_path are automatically uploaded. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DataLoadingConfig { + /// Flag enables DataLoading Config. If this is not set, data loading will not be used! + #[prost(bool, tag="1")] + pub enabled: bool, + /// File system path (start at root). This folder will contain all the inputs exploded to a separate file. + /// Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like + /// /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations + /// /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format + /// /var/flyte/inputs/y -> Y is a file in Binary format + /// /var/flyte/inputs/z/... -> Note Z itself is a directory + /// More information about the protocol - refer to docs #TODO reference docs here + #[prost(string, tag="2")] + pub input_path: ::prost::alloc::string::String, + /// File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file + #[prost(string, tag="3")] + pub output_path: ::prost::alloc::string::String, + /// In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. + /// This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding + #[prost(enumeration="data_loading_config::LiteralMapFormat", tag="4")] + pub format: i32, + #[prost(message, optional, tag="5")] + pub io_strategy: ::core::option::Option, +} +/// Nested message and enum types in `DataLoadingConfig`. +pub mod data_loading_config { + /// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. + /// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. + /// JSON and YAML do not need any protobuf definitions to read it + /// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum LiteralMapFormat { + /// JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - + Json = 0, + Yaml = 1, + /// Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core + Proto = 2, + } + impl LiteralMapFormat { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LiteralMapFormat::Json => "JSON", + LiteralMapFormat::Yaml => "YAML", + LiteralMapFormat::Proto => "PROTO", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "JSON" => Some(Self::Json), + "YAML" => Some(Self::Yaml), + "PROTO" => Some(Self::Proto), + _ => None, + } + } + } +} +/// Defines a pod spec and additional pod metadata that is created when a task is executed. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct K8sPod { + /// Contains additional metadata for building a kubernetes pod. + #[prost(message, optional, tag="1")] + pub metadata: ::core::option::Option, + /// Defines the primary pod spec created when a task is executed. + /// This should be a JSON-marshalled pod spec, which can be defined in + /// - go, using: + /// - python: using + #[prost(message, optional, tag="2")] + pub pod_spec: ::core::option::Option<::prost_types::Struct>, + /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. + /// This makes it possible to to run a completely portable container, that uses inputs and outputs + /// only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. + /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + /// to understand the default paths. + /// Only K8s + #[prost(message, optional, tag="3")] + pub data_config: ::core::option::Option, +} +/// Metadata for building a kubernetes object when a task is executed. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct K8sObjectMetadata { + /// Optional labels to add to the pod definition. + #[prost(map="string, string", tag="1")] + pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Optional annotations to add to the pod definition. + #[prost(map="string, string", tag="2")] + pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Sql represents a generic sql workload with a statement and dialect. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Sql { + /// The actual query to run, the query can have templated parameters. + /// We use Flyte's Golang templating format for Query templating. + /// Refer to the templating documentation. + /// + /// For example, + /// insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet + /// select * + /// from my_table + /// where ds = '{{ .Inputs.ds }}' + #[prost(string, tag="1")] + pub statement: ::prost::alloc::string::String, + #[prost(enumeration="sql::Dialect", tag="2")] + pub dialect: i32, +} +/// Nested message and enum types in `Sql`. +pub mod sql { + /// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid + /// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. + /// We support the following dialect: ansi, hive. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Dialect { + Undefined = 0, + Ansi = 1, + Hive = 2, + Other = 3, + } + impl Dialect { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Dialect::Undefined => "UNDEFINED", + Dialect::Ansi => "ANSI", + Dialect::Hive => "HIVE", + Dialect::Other => "OTHER", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "ANSI" => Some(Self::Ansi), + "HIVE" => Some(Self::Hive), + "OTHER" => Some(Self::Other), + _ => None, + } + } + } +} +/// Indicates various phases of Workflow Execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecution { +} +/// Nested message and enum types in `WorkflowExecution`. +pub mod workflow_execution { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Phase { + Undefined = 0, + Queued = 1, + Running = 2, + Succeeding = 3, + Succeeded = 4, + Failing = 5, + Failed = 6, + Aborted = 7, + TimedOut = 8, + Aborting = 9, + } + impl Phase { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Phase::Undefined => "UNDEFINED", + Phase::Queued => "QUEUED", + Phase::Running => "RUNNING", + Phase::Succeeding => "SUCCEEDING", + Phase::Succeeded => "SUCCEEDED", + Phase::Failing => "FAILING", + Phase::Failed => "FAILED", + Phase::Aborted => "ABORTED", + Phase::TimedOut => "TIMED_OUT", + Phase::Aborting => "ABORTING", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "QUEUED" => Some(Self::Queued), + "RUNNING" => Some(Self::Running), + "SUCCEEDING" => Some(Self::Succeeding), + "SUCCEEDED" => Some(Self::Succeeded), + "FAILING" => Some(Self::Failing), + "FAILED" => Some(Self::Failed), + "ABORTED" => Some(Self::Aborted), + "TIMED_OUT" => Some(Self::TimedOut), + "ABORTING" => Some(Self::Aborting), + _ => None, + } + } + } +} +/// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecution { +} +/// Nested message and enum types in `NodeExecution`. +pub mod node_execution { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Phase { + Undefined = 0, + Queued = 1, + Running = 2, + Succeeded = 3, + Failing = 4, + Failed = 5, + Aborted = 6, + Skipped = 7, + TimedOut = 8, + DynamicRunning = 9, + Recovered = 10, + } + impl Phase { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Phase::Undefined => "UNDEFINED", + Phase::Queued => "QUEUED", + Phase::Running => "RUNNING", + Phase::Succeeded => "SUCCEEDED", + Phase::Failing => "FAILING", + Phase::Failed => "FAILED", + Phase::Aborted => "ABORTED", + Phase::Skipped => "SKIPPED", + Phase::TimedOut => "TIMED_OUT", + Phase::DynamicRunning => "DYNAMIC_RUNNING", + Phase::Recovered => "RECOVERED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "QUEUED" => Some(Self::Queued), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + "FAILING" => Some(Self::Failing), + "FAILED" => Some(Self::Failed), + "ABORTED" => Some(Self::Aborted), + "SKIPPED" => Some(Self::Skipped), + "TIMED_OUT" => Some(Self::TimedOut), + "DYNAMIC_RUNNING" => Some(Self::DynamicRunning), + "RECOVERED" => Some(Self::Recovered), + _ => None, + } + } + } +} +/// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +/// but this is the cumulative list that customers may want to know about for their task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecution { +} +/// Nested message and enum types in `TaskExecution`. +pub mod task_execution { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Phase { + Undefined = 0, + Queued = 1, + Running = 2, + Succeeded = 3, + Aborted = 4, + Failed = 5, + /// To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing + Initializing = 6, + /// To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded + WaitingForResources = 7, + } + impl Phase { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Phase::Undefined => "UNDEFINED", + Phase::Queued => "QUEUED", + Phase::Running => "RUNNING", + Phase::Succeeded => "SUCCEEDED", + Phase::Aborted => "ABORTED", + Phase::Failed => "FAILED", + Phase::Initializing => "INITIALIZING", + Phase::WaitingForResources => "WAITING_FOR_RESOURCES", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "QUEUED" => Some(Self::Queued), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + "ABORTED" => Some(Self::Aborted), + "FAILED" => Some(Self::Failed), + "INITIALIZING" => Some(Self::Initializing), + "WAITING_FOR_RESOURCES" => Some(Self::WaitingForResources), + _ => None, + } + } + } +} +/// Represents the error message from the execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionError { + /// Error code indicates a grouping of a type of error. + /// More Info: + #[prost(string, tag="1")] + pub code: ::prost::alloc::string::String, + /// Detailed description of the error - including stack trace. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, + /// Full error contents accessible via a URI + #[prost(string, tag="3")] + pub error_uri: ::prost::alloc::string::String, + #[prost(enumeration="execution_error::ErrorKind", tag="4")] + pub kind: i32, +} +/// Nested message and enum types in `ExecutionError`. +pub mod execution_error { + /// Error type: System or User + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ErrorKind { + Unknown = 0, + User = 1, + System = 2, + } + impl ErrorKind { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ErrorKind::Unknown => "UNKNOWN", + ErrorKind::User => "USER", + ErrorKind::System => "SYSTEM", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "USER" => Some(Self::User), + "SYSTEM" => Some(Self::System), + _ => None, + } + } + } +} +/// Log information for the task that is specific to a log sink +/// When our log story is flushed out, we may have more metadata here like log link expiry +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskLog { + #[prost(string, tag="1")] + pub uri: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(enumeration="task_log::MessageFormat", tag="3")] + pub message_format: i32, + #[prost(message, optional, tag="4")] + pub ttl: ::core::option::Option<::prost_types::Duration>, +} +/// Nested message and enum types in `TaskLog`. +pub mod task_log { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum MessageFormat { + Unknown = 0, + Csv = 1, + Json = 2, + } + impl MessageFormat { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MessageFormat::Unknown => "UNKNOWN", + MessageFormat::Csv => "CSV", + MessageFormat::Json => "JSON", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "CSV" => Some(Self::Csv), + "JSON" => Some(Self::Json), + _ => None, + } + } + } +} +/// Represents customized execution run-time attributes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct QualityOfServiceSpec { + /// Indicates how much queueing delay an execution can tolerate. + #[prost(message, optional, tag="1")] + pub queueing_budget: ::core::option::Option<::prost_types::Duration>, +} +/// Indicates the priority of an execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct QualityOfService { + #[prost(oneof="quality_of_service::Designation", tags="1, 2")] + pub designation: ::core::option::Option, +} +/// Nested message and enum types in `QualityOfService`. +pub mod quality_of_service { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Tier { + /// Default: no quality of service specified. + Undefined = 0, + High = 1, + Medium = 2, + Low = 3, + } + impl Tier { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Tier::Undefined => "UNDEFINED", + Tier::High => "HIGH", + Tier::Medium => "MEDIUM", + Tier::Low => "LOW", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "HIGH" => Some(Self::High), + "MEDIUM" => Some(Self::Medium), + "LOW" => Some(Self::Low), + _ => None, + } + } + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Designation { + #[prost(enumeration="Tier", tag="1")] + Tier(i32), + #[prost(message, tag="2")] + Spec(super::QualityOfServiceSpec), + } +} +/// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. +/// Each expression results in a boolean result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ComparisonExpression { + #[prost(enumeration="comparison_expression::Operator", tag="1")] + pub operator: i32, + #[prost(message, optional, tag="2")] + pub left_value: ::core::option::Option, + #[prost(message, optional, tag="3")] + pub right_value: ::core::option::Option, +} +/// Nested message and enum types in `ComparisonExpression`. +pub mod comparison_expression { + /// Binary Operator for each expression + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Operator { + Eq = 0, + Neq = 1, + /// Greater Than + Gt = 2, + Gte = 3, + /// Less Than + Lt = 4, + Lte = 5, + } + impl Operator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Operator::Eq => "EQ", + Operator::Neq => "NEQ", + Operator::Gt => "GT", + Operator::Gte => "GTE", + Operator::Lt => "LT", + Operator::Lte => "LTE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "EQ" => Some(Self::Eq), + "NEQ" => Some(Self::Neq), + "GT" => Some(Self::Gt), + "GTE" => Some(Self::Gte), + "LT" => Some(Self::Lt), + "LTE" => Some(Self::Lte), + _ => None, + } + } + } +} +/// Defines an operand to a comparison expression. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Operand { + #[prost(oneof="operand::Val", tags="1, 2, 3")] + pub val: ::core::option::Option, +} +/// Nested message and enum types in `Operand`. +pub mod operand { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Val { + /// Can be a constant + #[prost(message, tag="1")] + Primitive(super::Primitive), + /// Or one of this node's input variables + #[prost(string, tag="2")] + Var(::prost::alloc::string::String), + /// Replace the primitive field + #[prost(message, tag="3")] + Scalar(super::Scalar), + } +} +/// Defines a boolean expression tree. It can be a simple or a conjunction expression. +/// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BooleanExpression { + #[prost(oneof="boolean_expression::Expr", tags="1, 2")] + pub expr: ::core::option::Option, +} +/// Nested message and enum types in `BooleanExpression`. +pub mod boolean_expression { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Expr { + #[prost(message, tag="1")] + Conjunction(::prost::alloc::boxed::Box), + #[prost(message, tag="2")] + Comparison(super::ComparisonExpression), + } +} +/// Defines a conjunction expression of two boolean expressions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ConjunctionExpression { + #[prost(enumeration="conjunction_expression::LogicalOperator", tag="1")] + pub operator: i32, + #[prost(message, optional, boxed, tag="2")] + pub left_expression: ::core::option::Option<::prost::alloc::boxed::Box>, + #[prost(message, optional, boxed, tag="3")] + pub right_expression: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Nested message and enum types in `ConjunctionExpression`. +pub mod conjunction_expression { + /// Nested conditions. They can be conjoined using AND / OR + /// Order of evaluation is not important as the operators are Commutative + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum LogicalOperator { + /// Conjunction + And = 0, + Or = 1, + } + impl LogicalOperator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LogicalOperator::And => "AND", + LogicalOperator::Or => "OR", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "AND" => Some(Self::And), + "OR" => Some(Self::Or), + _ => None, + } + } + } +} +/// Defines a condition and the execution unit that should be executed if the condition is satisfied. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IfBlock { + #[prost(message, optional, tag="1")] + pub condition: ::core::option::Option, + #[prost(message, optional, boxed, tag="2")] + pub then_node: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +/// If no conditions were satisfied, the else_node or the error will execute. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IfElseBlock { + /// +required. First condition to evaluate. + #[prost(message, optional, boxed, tag="1")] + pub case: ::core::option::Option<::prost::alloc::boxed::Box>, + /// +optional. Additional branches to evaluate. + #[prost(message, repeated, tag="2")] + pub other: ::prost::alloc::vec::Vec, + /// +required. + #[prost(oneof="if_else_block::Default", tags="3, 4")] + pub default: ::core::option::Option, +} +/// Nested message and enum types in `IfElseBlock`. +pub mod if_else_block { + /// +required. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Default { + /// The node to execute in case none of the branches were taken. + #[prost(message, tag="3")] + ElseNode(::prost::alloc::boxed::Box), + /// An error to throw in case none of the branches were taken. + #[prost(message, tag="4")] + Error(super::Error), + } +} +/// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +/// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BranchNode { + /// +required + #[prost(message, optional, boxed, tag="1")] + pub if_else: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Refers to the task that the Node is to execute. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNode { + /// Optional overrides applied at task execution time. + #[prost(message, optional, tag="2")] + pub overrides: ::core::option::Option, + #[prost(oneof="task_node::Reference", tags="1")] + pub reference: ::core::option::Option, +} +/// Nested message and enum types in `TaskNode`. +pub mod task_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reference { + /// A globally unique identifier for the task. + #[prost(message, tag="1")] + ReferenceId(super::Identifier), + } +} +/// Refers to a the workflow the node is to execute. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowNode { + #[prost(oneof="workflow_node::Reference", tags="1, 2")] + pub reference: ::core::option::Option, +} +/// Nested message and enum types in `WorkflowNode`. +pub mod workflow_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reference { + /// A globally unique identifier for the launch plan. + #[prost(message, tag="1")] + LaunchplanRef(super::Identifier), + /// Reference to a subworkflow, that should be defined with the compiler context + #[prost(message, tag="2")] + SubWorkflowRef(super::Identifier), + } +} +/// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean +/// signal with the provided signal_id. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ApproveCondition { + /// A unique identifier for the requested boolean signal. + #[prost(string, tag="1")] + pub signal_id: ::prost::alloc::string::String, +} +/// SignalCondition represents a dependency on an signal. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalCondition { + /// A unique identifier for the requested signal. + #[prost(string, tag="1")] + pub signal_id: ::prost::alloc::string::String, + /// A type denoting the required value type for this signal. + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, + /// The variable name for the signal value in this nodes outputs. + #[prost(string, tag="3")] + pub output_variable_name: ::prost::alloc::string::String, +} +/// SleepCondition represents a dependency on waiting for the specified duration. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SleepCondition { + /// The overall duration for this sleep. + #[prost(message, optional, tag="1")] + pub duration: ::core::option::Option<::prost_types::Duration>, +} +/// GateNode refers to the condition that is required for the gate to successfully complete. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GateNode { + #[prost(oneof="gate_node::Condition", tags="1, 2, 3")] + pub condition: ::core::option::Option, +} +/// Nested message and enum types in `GateNode`. +pub mod gate_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Condition { + /// ApproveCondition represents a dependency on an external approval provided by a boolean signal. + #[prost(message, tag="1")] + Approve(super::ApproveCondition), + /// SignalCondition represents a dependency on an signal. + #[prost(message, tag="2")] + Signal(super::SignalCondition), + /// SleepCondition represents a dependency on waiting for the specified duration. + #[prost(message, tag="3")] + Sleep(super::SleepCondition), + } +} +/// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input +/// values. An ArrayNode can be executed with configurable parallelism (separate from the parent +/// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArrayNode { + /// node is the sub-node that will be executed for each element in the array. + #[prost(message, optional, boxed, tag="1")] + pub node: ::core::option::Option<::prost::alloc::boxed::Box>, + /// parallelism defines the minimum number of instances to bring up concurrently at any given + /// point. Note that this is an optimistic restriction and that, due to network partitioning or + /// other failures, the actual number of currently running instances might be more. This has to + /// be a positive number if assigned. Default value is size. + #[prost(uint32, tag="2")] + pub parallelism: u32, + #[prost(oneof="array_node::SuccessCriteria", tags="3, 4")] + pub success_criteria: ::core::option::Option, +} +/// Nested message and enum types in `ArrayNode`. +pub mod array_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum SuccessCriteria { + /// min_successes is an absolute number of the minimum number of successful completions of + /// sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful + /// and outputs will be computed. This has to be a non-negative number if assigned. Default + /// value is size (if specified). + #[prost(uint32, tag="3")] + MinSuccesses(u32), + /// If the array job size is not known beforehand, the min_success_ratio can instead be used + /// to determine when an ArrayNode can be marked successful. + #[prost(float, tag="4")] + MinSuccessRatio(f32), + } +} +/// Defines extra information about the Node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeMetadata { + /// A friendly name for the Node + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The overall timeout of a task. + #[prost(message, optional, tag="4")] + pub timeout: ::core::option::Option<::prost_types::Duration>, + /// Number of retries per task. + #[prost(message, optional, tag="5")] + pub retries: ::core::option::Option, + /// Identify whether node is interruptible + #[prost(oneof="node_metadata::InterruptibleValue", tags="6")] + pub interruptible_value: ::core::option::Option, +} +/// Nested message and enum types in `NodeMetadata`. +pub mod node_metadata { + /// Identify whether node is interruptible + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InterruptibleValue { + #[prost(bool, tag="6")] + Interruptible(bool), + } +} +/// Links a variable to an alias. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Alias { + /// Must match one of the output variable names on a node. + #[prost(string, tag="1")] + pub var: ::prost::alloc::string::String, + /// A workflow-level unique alias that downstream nodes can refer to in their input. + #[prost(string, tag="2")] + pub alias: ::prost::alloc::string::String, +} +/// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +/// node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Node { + /// A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved + /// node ids that cannot be used by other nodes. + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// Extra metadata about the node. + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, + /// Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + /// must be fulfilled. + #[prost(message, repeated, tag="3")] + pub inputs: ::prost::alloc::vec::Vec, + /// +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its + /// upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs + /// field. + #[prost(string, repeated, tag="4")] + pub upstream_node_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + /// need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + /// nodes outputs using the alias if one's specified. + #[prost(message, repeated, tag="5")] + pub output_aliases: ::prost::alloc::vec::Vec, + /// Information about the target to execute in this node. + #[prost(oneof="node::Target", tags="6, 7, 8, 9, 10")] + pub target: ::core::option::Option, +} +/// Nested message and enum types in `Node`. +pub mod node { + /// Information about the target to execute in this node. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Target { + /// Information about the Task to execute in this node. + #[prost(message, tag="6")] + TaskNode(super::TaskNode), + /// Information about the Workflow to execute in this mode. + #[prost(message, tag="7")] + WorkflowNode(super::WorkflowNode), + /// Information about the branch node to evaluate in this node. + #[prost(message, tag="8")] + BranchNode(::prost::alloc::boxed::Box), + /// Information about the condition to evaluate in this node. + #[prost(message, tag="9")] + GateNode(super::GateNode), + /// Information about the sub-node executions for each value in the list of this nodes + /// inputs values. + #[prost(message, tag="10")] + ArrayNode(::prost::alloc::boxed::Box), + } +} +/// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not +/// percolate down to child entities (like tasks) launched by the workflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowMetadata { + /// Indicates the runtime priority of workflow executions. + #[prost(message, optional, tag="1")] + pub quality_of_service: ::core::option::Option, + /// Defines how the system should behave when a failure is detected in the workflow execution. + #[prost(enumeration="workflow_metadata::OnFailurePolicy", tag="2")] + pub on_failure: i32, + /// Arbitrary tags that allow users and the platform to store small but arbitrary labels + #[prost(map="string, string", tag="3")] + pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Nested message and enum types in `WorkflowMetadata`. +pub mod workflow_metadata { + /// Failure Handling Strategy + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum OnFailurePolicy { + /// FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically + /// abort all currently running nodes and clean up resources before finally marking the workflow executions as + /// failed. + FailImmediately = 0, + /// FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will + /// not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. + /// Other nodes that will be executed to completion before cleaning up resources and marking the workflow + /// execution as failed. + FailAfterExecutableNodesComplete = 1, + } + impl OnFailurePolicy { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + OnFailurePolicy::FailImmediately => "FAIL_IMMEDIATELY", + OnFailurePolicy::FailAfterExecutableNodesComplete => "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "FAIL_IMMEDIATELY" => Some(Self::FailImmediately), + "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" => Some(Self::FailAfterExecutableNodesComplete), + _ => None, + } + } + } +} +/// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to +/// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it +/// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes +/// unless explicitly overridden at the node layer. +/// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be +/// added to both this object and the WorkflowMetadata object above. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowMetadataDefaults { + /// Whether child nodes of the workflow are interruptible. + #[prost(bool, tag="1")] + pub interruptible: bool, +} +/// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +/// directed acyclic graph. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowTemplate { + /// A globally unique identifier for the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Extra metadata about the workflow. + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, + /// Defines a strongly typed interface for the Workflow. This can include some optional parameters. + #[prost(message, optional, tag="3")] + pub interface: ::core::option::Option, + /// A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. + #[prost(message, repeated, tag="4")] + pub nodes: ::prost::alloc::vec::Vec, + /// A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + /// specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + /// to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + /// bind final outputs. + /// Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + /// just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + /// outputs from the output of a task. + #[prost(message, repeated, tag="5")] + pub outputs: ::prost::alloc::vec::Vec, + /// +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + /// The interface of this node must match the Workflow interface with an additional input named 'error' of type + /// pb.lyft.flyte.core.Error. + #[prost(message, optional, tag="6")] + pub failure_node: ::core::option::Option, + /// workflow defaults + #[prost(message, optional, tag="7")] + pub metadata_defaults: ::core::option::Option, +} +/// Optional task node overrides that will be applied at task execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNodeOverrides { + /// A customizable interface to convey resources requested for a task container. + #[prost(message, optional, tag="1")] + pub resources: ::core::option::Option, +} +/// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +/// step uses this created ConnectionSet +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ConnectionSet { + /// A list of all the node ids that are downstream from a given node id + #[prost(map="string, message", tag="7")] + pub downstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, + /// A list of all the node ids, that are upstream of this node id + #[prost(map="string, message", tag="8")] + pub upstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, +} +/// Nested message and enum types in `ConnectionSet`. +pub mod connection_set { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct IdList { + #[prost(string, repeated, tag="1")] + pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + } +} +/// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledWorkflow { + /// Completely contained Workflow Template + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + #[prost(message, optional, tag="2")] + pub connections: ::core::option::Option, +} +/// Output of the Compilation step. This object represent one Task. We store more metadata at this layer +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledTask { + /// Completely contained TaskTemplate + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, +} +/// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +/// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +/// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +/// compiled subworkflows. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledWorkflowClosure { + /// +required + #[prost(message, optional, tag="1")] + pub primary: ::core::option::Option, + /// Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + /// unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + /// as an inlined workflow + /// +optional + #[prost(message, repeated, tag="2")] + pub sub_workflows: ::prost::alloc::vec::Vec, + /// Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + /// +required (at least 1) + #[prost(message, repeated, tag="3")] + pub tasks: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CatalogArtifactTag { + /// Artifact ID is generated name + #[prost(string, tag="1")] + pub artifact_id: ::prost::alloc::string::String, + /// Flyte computes the tag automatically, as the hash of the values + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, +} +/// Catalog artifact information with specific metadata +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CatalogMetadata { + /// Dataset ID in the catalog + #[prost(message, optional, tag="1")] + pub dataset_id: ::core::option::Option, + /// Artifact tag in the catalog + #[prost(message, optional, tag="2")] + pub artifact_tag: ::core::option::Option, + /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + #[prost(oneof="catalog_metadata::SourceExecution", tags="3")] + pub source_execution: ::core::option::Option, +} +/// Nested message and enum types in `CatalogMetadata`. +pub mod catalog_metadata { + /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum SourceExecution { + /// Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions + #[prost(message, tag="3")] + SourceTaskExecution(super::TaskExecutionIdentifier), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CatalogReservation { +} +/// Nested message and enum types in `CatalogReservation`. +pub mod catalog_reservation { + /// Indicates the status of a catalog reservation operation. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Status { + /// Used to indicate that reservations are disabled + ReservationDisabled = 0, + /// Used to indicate that a reservation was successfully acquired or extended + ReservationAcquired = 1, + /// Used to indicate that an active reservation currently exists + ReservationExists = 2, + /// Used to indicate that the reservation has been successfully released + ReservationReleased = 3, + /// Used to indicate that a reservation operation resulted in failure + ReservationFailure = 4, + } + impl Status { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Status::ReservationDisabled => "RESERVATION_DISABLED", + Status::ReservationAcquired => "RESERVATION_ACQUIRED", + Status::ReservationExists => "RESERVATION_EXISTS", + Status::ReservationReleased => "RESERVATION_RELEASED", + Status::ReservationFailure => "RESERVATION_FAILURE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RESERVATION_DISABLED" => Some(Self::ReservationDisabled), + "RESERVATION_ACQUIRED" => Some(Self::ReservationAcquired), + "RESERVATION_EXISTS" => Some(Self::ReservationExists), + "RESERVATION_RELEASED" => Some(Self::ReservationReleased), + "RESERVATION_FAILURE" => Some(Self::ReservationFailure), + _ => None, + } + } + } +} +/// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum CatalogCacheStatus { + /// Used to indicate that caching was disabled + CacheDisabled = 0, + /// Used to indicate that the cache lookup resulted in no matches + CacheMiss = 1, + /// used to indicate that the associated artifact was a result of a previous execution + CacheHit = 2, + /// used to indicate that the resultant artifact was added to the cache + CachePopulated = 3, + /// Used to indicate that cache lookup failed because of an error + CacheLookupFailure = 4, + /// Used to indicate that cache lookup failed because of an error + CachePutFailure = 5, + /// Used to indicate the cache lookup was skipped + CacheSkipped = 6, +} +impl CatalogCacheStatus { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + CatalogCacheStatus::CacheDisabled => "CACHE_DISABLED", + CatalogCacheStatus::CacheMiss => "CACHE_MISS", + CatalogCacheStatus::CacheHit => "CACHE_HIT", + CatalogCacheStatus::CachePopulated => "CACHE_POPULATED", + CatalogCacheStatus::CacheLookupFailure => "CACHE_LOOKUP_FAILURE", + CatalogCacheStatus::CachePutFailure => "CACHE_PUT_FAILURE", + CatalogCacheStatus::CacheSkipped => "CACHE_SKIPPED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CACHE_DISABLED" => Some(Self::CacheDisabled), + "CACHE_MISS" => Some(Self::CacheMiss), + "CACHE_HIT" => Some(Self::CacheHit), + "CACHE_POPULATED" => Some(Self::CachePopulated), + "CACHE_LOOKUP_FAILURE" => Some(Self::CacheLookupFailure), + "CACHE_PUT_FAILURE" => Some(Self::CachePutFailure), + "CACHE_SKIPPED" => Some(Self::CacheSkipped), + _ => None, + } + } +} +/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation +/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more +/// precise definitions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Span { + /// start_time defines the instance this span began. + #[prost(message, optional, tag="1")] + pub start_time: ::core::option::Option<::prost_types::Timestamp>, + /// end_time defines the instance this span completed. + #[prost(message, optional, tag="2")] + pub end_time: ::core::option::Option<::prost_types::Timestamp>, + /// spans defines a collection of Spans that breakdown this execution. + #[prost(message, repeated, tag="7")] + pub spans: ::prost::alloc::vec::Vec, + #[prost(oneof="span::Id", tags="3, 4, 5, 6")] + pub id: ::core::option::Option, +} +/// Nested message and enum types in `Span`. +pub mod span { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Id { + /// workflow_id is the id of the workflow execution this Span represents. + #[prost(message, tag="3")] + WorkflowId(super::WorkflowExecutionIdentifier), + /// node_id is the id of the node execution this Span represents. + #[prost(message, tag="4")] + NodeId(super::NodeExecutionIdentifier), + /// task_id is the id of the task execution this Span represents. + #[prost(message, tag="5")] + TaskId(super::TaskExecutionIdentifier), + /// operation_id is the id of a unique operation that this Span represents. + #[prost(string, tag="6")] + OperationId(::prost::alloc::string::String), + } +} +/// Describes a set of tasks to execute and how the final outputs are produced. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DynamicJobSpec { + /// A collection of nodes to execute. + #[prost(message, repeated, tag="1")] + pub nodes: ::prost::alloc::vec::Vec, + /// An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + /// criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + /// becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + /// min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + /// specified, is the count of nodes repeated field. + #[prost(int64, tag="2")] + pub min_successes: i64, + /// Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + /// in bindings should have the generated id for the subtask. + #[prost(message, repeated, tag="3")] + pub outputs: ::prost::alloc::vec::Vec, + /// \[Optional\] A complete list of task specs referenced in nodes. + #[prost(message, repeated, tag="4")] + pub tasks: ::prost::alloc::vec::Vec, + /// \[Optional\] A complete list of task specs referenced in nodes. + #[prost(message, repeated, tag="5")] + pub subworkflows: ::prost::alloc::vec::Vec, +} +/// Error message to propagate detailed errors from container executions to the execution +/// engine. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ContainerError { + /// A simplified code for errors, so that we can provide a glossary of all possible errors. + #[prost(string, tag="1")] + pub code: ::prost::alloc::string::String, + /// A detailed error message. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, + /// An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + #[prost(enumeration="container_error::Kind", tag="3")] + pub kind: i32, + /// Defines the origin of the error (system, user, unknown). + #[prost(enumeration="execution_error::ErrorKind", tag="4")] + pub origin: i32, +} +/// Nested message and enum types in `ContainerError`. +pub mod container_error { + /// Defines a generic error type that dictates the behavior of the retry strategy. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Kind { + NonRecoverable = 0, + Recoverable = 1, + } + impl Kind { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Kind::NonRecoverable => "NON_RECOVERABLE", + Kind::Recoverable => "RECOVERABLE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "NON_RECOVERABLE" => Some(Self::NonRecoverable), + "RECOVERABLE" => Some(Self::Recoverable), + _ => None, + } + } + } +} +/// Defines the errors.pb file format the container can produce to communicate +/// failure reasons to the execution engine. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ErrorDocument { + /// The error raised during execution. + #[prost(message, optional, tag="1")] + pub error: ::core::option::Option, +} +/// Defines an enclosed package of workflow and tasks it references. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowClosure { + /// required. Workflow template. + #[prost(message, optional, tag="1")] + pub workflow: ::core::option::Option, + /// optional. A collection of tasks referenced by the workflow. Only needed if the workflow + /// references tasks. + #[prost(message, repeated, tag="2")] + pub tasks: ::prost::alloc::vec::Vec, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.event.rs b/flyteidl/gen/pb_rust/flyteidl.event.rs new file mode 100644 index 0000000000..879decf0a7 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.event.rs @@ -0,0 +1,370 @@ +// @generated +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionEvent { + /// Workflow execution id + #[prost(message, optional, tag="1")] + pub execution_id: ::core::option::Option, + /// the id of the originator (Propeller) of the event + #[prost(string, tag="2")] + pub producer_id: ::prost::alloc::string::String, + #[prost(enumeration="super::core::workflow_execution::Phase", tag="3")] + pub phase: i32, + /// This timestamp represents when the original event occurred, it is generated + /// by the executor of the workflow. + #[prost(message, optional, tag="4")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + #[prost(oneof="workflow_execution_event::OutputResult", tags="5, 6, 7")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `WorkflowExecutionEvent`. +pub mod workflow_execution_event { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// URL to the output of the execution, it encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="5")] + OutputUri(::prost::alloc::string::String), + /// Error information for the execution + #[prost(message, tag="6")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this workflow execution. + #[prost(message, tag="7")] + OutputData(super::super::core::LiteralMap), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionEvent { + /// Unique identifier for this node execution + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// the id of the originator (Propeller) of the event + #[prost(string, tag="2")] + pub producer_id: ::prost::alloc::string::String, + #[prost(enumeration="super::core::node_execution::Phase", tag="3")] + pub phase: i32, + /// This timestamp represents when the original event occurred, it is generated + /// by the executor of the node. + #[prost(message, optional, tag="4")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// [To be deprecated] Specifies which task (if any) launched this node. + #[prost(message, optional, tag="9")] + pub parent_task_metadata: ::core::option::Option, + /// Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. + #[prost(message, optional, tag="10")] + pub parent_node_metadata: ::core::option::Option, + /// Retry group to indicate grouping of nodes by retries + #[prost(string, tag="11")] + pub retry_group: ::prost::alloc::string::String, + /// Identifier of the node in the original workflow/graph + /// This maps to value of WorkflowTemplate.nodes\[X\].id + #[prost(string, tag="12")] + pub spec_node_id: ::prost::alloc::string::String, + /// Friendly readable name for the node + #[prost(string, tag="13")] + pub node_name: ::prost::alloc::string::String, + #[prost(int32, tag="16")] + pub event_version: i32, + /// Whether this node launched a subworkflow. + #[prost(bool, tag="17")] + pub is_parent: bool, + /// Whether this node yielded a dynamic workflow. + #[prost(bool, tag="18")] + pub is_dynamic: bool, + /// String location uniquely identifying where the deck HTML file is + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="19")] + pub deck_uri: ::prost::alloc::string::String, + /// This timestamp represents the instant when the event was reported by the executing framework. For example, + /// when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when + /// literal inputs are initially copied. The event however will not be sent until after the copy completes. + /// Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + #[prost(message, optional, tag="21")] + pub reported_at: ::core::option::Option<::prost_types::Timestamp>, + #[prost(oneof="node_execution_event::InputValue", tags="5, 20")] + pub input_value: ::core::option::Option, + #[prost(oneof="node_execution_event::OutputResult", tags="6, 7, 15")] + pub output_result: ::core::option::Option, + /// Additional metadata to do with this event's node target based + /// on the node type + #[prost(oneof="node_execution_event::TargetMetadata", tags="8, 14")] + pub target_metadata: ::core::option::Option, +} +/// Nested message and enum types in `NodeExecutionEvent`. +pub mod node_execution_event { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InputValue { + #[prost(string, tag="5")] + InputUri(::prost::alloc::string::String), + /// Raw input data consumed by this node execution. + #[prost(message, tag="20")] + InputData(super::super::core::LiteralMap), + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// URL to the output of the execution, it encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="6")] + OutputUri(::prost::alloc::string::String), + /// Error information for the execution + #[prost(message, tag="7")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this node execution. + #[prost(message, tag="15")] + OutputData(super::super::core::LiteralMap), + } + /// Additional metadata to do with this event's node target based + /// on the node type + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum TargetMetadata { + #[prost(message, tag="8")] + WorkflowNodeMetadata(super::WorkflowNodeMetadata), + #[prost(message, tag="14")] + TaskNodeMetadata(super::TaskNodeMetadata), + } +} +/// For Workflow Nodes we need to send information about the workflow that's launched +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowNodeMetadata { + #[prost(message, optional, tag="1")] + pub execution_id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNodeMetadata { + /// Captures the status of caching for this execution. + #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] + pub cache_status: i32, + /// This structure carries the catalog artifact information + #[prost(message, optional, tag="2")] + pub catalog_key: ::core::option::Option, + /// Captures the status of cache reservations for this execution. + #[prost(enumeration="super::core::catalog_reservation::Status", tag="3")] + pub reservation_status: i32, + /// The latest checkpoint location + #[prost(string, tag="4")] + pub checkpoint_uri: ::prost::alloc::string::String, + /// In the case this task launched a dynamic workflow we capture its structure here. + #[prost(message, optional, tag="16")] + pub dynamic_workflow: ::core::option::Option, +} +/// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DynamicWorkflowNodeMetadata { + /// id represents the unique identifier of the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the compiled representation of the embedded dynamic workflow. + #[prost(message, optional, tag="2")] + pub compiled_workflow: ::core::option::Option, + /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + /// required to correctly recover partially completed executions where the workflow has already been compiled. + #[prost(string, tag="3")] + pub dynamic_job_spec_uri: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParentTaskExecutionMetadata { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParentNodeExecutionMetadata { + /// Unique identifier of the parent node id within the execution + /// This is value of core.NodeExecutionIdentifier.node_id of the parent node + #[prost(string, tag="1")] + pub node_id: ::prost::alloc::string::String, +} +/// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionEvent { + /// ID of the task. In combination with the retryAttempt this will indicate + /// the task execution uniquely for a given parent node execution. + #[prost(message, optional, tag="1")] + pub task_id: ::core::option::Option, + /// A task execution is always kicked off by a node execution, the event consumer + /// will use the parent_id to relate the task to it's parent node execution + #[prost(message, optional, tag="2")] + pub parent_node_execution_id: ::core::option::Option, + /// retry attempt number for this task, ie., 2 for the second attempt + #[prost(uint32, tag="3")] + pub retry_attempt: u32, + /// Phase associated with the event + #[prost(enumeration="super::core::task_execution::Phase", tag="4")] + pub phase: i32, + /// id of the process that sent this event, mainly for trace debugging + #[prost(string, tag="5")] + pub producer_id: ::prost::alloc::string::String, + /// log information for the task execution + #[prost(message, repeated, tag="6")] + pub logs: ::prost::alloc::vec::Vec, + /// This timestamp represents when the original event occurred, it is generated + /// by the executor of the task. + #[prost(message, optional, tag="7")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + #[prost(message, optional, tag="11")] + pub custom_info: ::core::option::Option<::prost_types::Struct>, + /// Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + /// that should be recorded regardless of the lack of phase change. + /// The version field should be incremented when metadata changes across the duration of an individual phase. + #[prost(uint32, tag="12")] + pub phase_version: u32, + /// An optional explanation for the phase transition. + #[prost(string, tag="13")] + pub reason: ::prost::alloc::string::String, + /// A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin + /// this type will be identical, but not all task executions necessarily use pre-registered definitions and this + /// type is useful to render the task in the UI, filter task executions, etc. + #[prost(string, tag="14")] + pub task_type: ::prost::alloc::string::String, + /// Metadata around how a task was executed. + #[prost(message, optional, tag="16")] + pub metadata: ::core::option::Option, + /// The event version is used to indicate versioned changes in how data is reported using this + /// proto message. For example, event_verison > 0 means that maps tasks report logs using the + /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + /// in this message. + #[prost(int32, tag="18")] + pub event_version: i32, + /// This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s + /// pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, + /// but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps + /// facilitates a more accurate portrayal of the evaluation time-series. + #[prost(message, optional, tag="20")] + pub reported_at: ::core::option::Option<::prost_types::Timestamp>, + #[prost(oneof="task_execution_event::InputValue", tags="8, 19")] + pub input_value: ::core::option::Option, + #[prost(oneof="task_execution_event::OutputResult", tags="9, 10, 17")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `TaskExecutionEvent`. +pub mod task_execution_event { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InputValue { + /// URI of the input file, it encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="8")] + InputUri(::prost::alloc::string::String), + /// Raw input data consumed by this task execution. + #[prost(message, tag="19")] + InputData(super::super::core::LiteralMap), + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// URI to the output of the execution, it will be in a format that encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="9")] + OutputUri(::prost::alloc::string::String), + /// Error information for the execution + #[prost(message, tag="10")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this task execution. + #[prost(message, tag="17")] + OutputData(super::super::core::LiteralMap), + } +} +/// This message contains metadata about external resources produced or used by a specific task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExternalResourceInfo { + /// Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. + #[prost(string, tag="1")] + pub external_id: ::prost::alloc::string::String, + /// A unique index for the external resource with respect to all external resources for this task. Although the + /// identifier may change between task reporting events or retries, this will remain the same to enable aggregating + /// information from multiple reports. + #[prost(uint32, tag="2")] + pub index: u32, + /// Retry attempt number for this external resource, ie., 2 for the second attempt + #[prost(uint32, tag="3")] + pub retry_attempt: u32, + /// Phase associated with the external resource + #[prost(enumeration="super::core::task_execution::Phase", tag="4")] + pub phase: i32, + /// Captures the status of caching for this external resource execution. + #[prost(enumeration="super::core::CatalogCacheStatus", tag="5")] + pub cache_status: i32, + /// log information for the external resource execution + #[prost(message, repeated, tag="6")] + pub logs: ::prost::alloc::vec::Vec, +} +/// This message holds task execution metadata specific to resource allocation used to manage concurrent +/// executions for a project namespace. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourcePoolInfo { + /// Unique resource ID used to identify this execution when allocating a token. + #[prost(string, tag="1")] + pub allocation_token: ::prost::alloc::string::String, + /// Namespace under which this task execution requested an allocation token. + #[prost(string, tag="2")] + pub namespace: ::prost::alloc::string::String, +} +/// Holds metadata around how a task was executed. +/// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, +/// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. +/// Metadata is a container for these attributes across the task execution lifecycle. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionMetadata { + /// Unique, generated name for this task execution used by the backend. + #[prost(string, tag="1")] + pub generated_name: ::prost::alloc::string::String, + /// Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. + #[prost(message, repeated, tag="2")] + pub external_resources: ::prost::alloc::vec::Vec, + /// Includes additional data on concurrent resource management used during execution.. + /// This is a repeated field because a plugin can request multiple resource allocations during execution. + #[prost(message, repeated, tag="3")] + pub resource_pool_info: ::prost::alloc::vec::Vec, + /// The identifier of the plugin used to execute this task. + #[prost(string, tag="4")] + pub plugin_identifier: ::prost::alloc::string::String, + #[prost(enumeration="task_execution_metadata::InstanceClass", tag="16")] + pub instance_class: i32, +} +/// Nested message and enum types in `TaskExecutionMetadata`. +pub mod task_execution_metadata { + /// Includes the broad category of machine used for this specific task execution. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum InstanceClass { + /// The default instance class configured for the flyte application platform. + Default = 0, + /// The instance class configured for interruptible tasks. + Interruptible = 1, + } + impl InstanceClass { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + InstanceClass::Default => "DEFAULT", + InstanceClass::Interruptible => "INTERRUPTIBLE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DEFAULT" => Some(Self::Default), + "INTERRUPTIBLE" => Some(Self::Interruptible), + _ => None, + } + } + } +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs new file mode 100644 index 0000000000..59c1f681a0 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs @@ -0,0 +1,202 @@ +// @generated +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RunPolicy { + /// Defines the policy to kill pods after the job completes. Default to None. + #[prost(enumeration="CleanPodPolicy", tag="1")] + pub clean_pod_policy: i32, + /// TTL to clean up jobs. Default to infinite. + #[prost(int32, tag="2")] + pub ttl_seconds_after_finished: i32, + /// Specifies the duration in seconds relative to the startTime that the job may be active + /// before the system tries to terminate it; value must be positive integer. + #[prost(int32, tag="3")] + pub active_deadline_seconds: i32, + /// Number of retries before marking this job failed. + #[prost(int32, tag="4")] + pub backoff_limit: i32, +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum RestartPolicy { + Never = 0, + OnFailure = 1, + Always = 2, +} +impl RestartPolicy { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + RestartPolicy::Never => "RESTART_POLICY_NEVER", + RestartPolicy::OnFailure => "RESTART_POLICY_ON_FAILURE", + RestartPolicy::Always => "RESTART_POLICY_ALWAYS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RESTART_POLICY_NEVER" => Some(Self::Never), + "RESTART_POLICY_ON_FAILURE" => Some(Self::OnFailure), + "RESTART_POLICY_ALWAYS" => Some(Self::Always), + _ => None, + } + } +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum CleanPodPolicy { + CleanpodPolicyNone = 0, + CleanpodPolicyRunning = 1, + CleanpodPolicyAll = 2, +} +impl CleanPodPolicy { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + CleanPodPolicy::CleanpodPolicyNone => "CLEANPOD_POLICY_NONE", + CleanPodPolicy::CleanpodPolicyRunning => "CLEANPOD_POLICY_RUNNING", + CleanPodPolicy::CleanpodPolicyAll => "CLEANPOD_POLICY_ALL", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CLEANPOD_POLICY_NONE" => Some(Self::CleanpodPolicyNone), + "CLEANPOD_POLICY_RUNNING" => Some(Self::CleanpodPolicyRunning), + "CLEANPOD_POLICY_ALL" => Some(Self::CleanpodPolicyAll), + _ => None, + } + } +} +/// Proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedMpiTrainingTask { + /// Worker replicas spec + #[prost(message, optional, tag="1")] + pub worker_replicas: ::core::option::Option, + /// Master replicas spec + #[prost(message, optional, tag="2")] + pub launcher_replicas: ::core::option::Option, + /// RunPolicy encapsulates various runtime policies of the distributed training + /// job, for example how to clean up resources and how long the job can stay + /// active. + #[prost(message, optional, tag="3")] + pub run_policy: ::core::option::Option, + /// Number of slots per worker + #[prost(int32, tag="4")] + pub slots: i32, +} +/// Replica specification for distributed MPI training +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedMpiTrainingReplicaSpec { + /// Number of replicas + #[prost(int32, tag="1")] + pub replicas: i32, + /// Image used for the replica group + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources required for the replica group + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, + /// Restart policy determines whether pods will be restarted when they exit + #[prost(enumeration="RestartPolicy", tag="4")] + pub restart_policy: i32, + /// MPI sometimes requires different command set for different replica groups + #[prost(string, repeated, tag="5")] + pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Custom proto for torch elastic config for distributed training using +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ElasticConfig { + #[prost(string, tag="1")] + pub rdzv_backend: ::prost::alloc::string::String, + #[prost(int32, tag="2")] + pub min_replicas: i32, + #[prost(int32, tag="3")] + pub max_replicas: i32, + #[prost(int32, tag="4")] + pub nproc_per_node: i32, + #[prost(int32, tag="5")] + pub max_restarts: i32, +} +/// Proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedPyTorchTrainingTask { + /// Worker replicas spec + #[prost(message, optional, tag="1")] + pub worker_replicas: ::core::option::Option, + /// Master replicas spec, master replicas can only have 1 replica + #[prost(message, optional, tag="2")] + pub master_replicas: ::core::option::Option, + /// RunPolicy encapsulates various runtime policies of the distributed training + /// job, for example how to clean up resources and how long the job can stay + /// active. + #[prost(message, optional, tag="3")] + pub run_policy: ::core::option::Option, + /// config for an elastic pytorch job + #[prost(message, optional, tag="4")] + pub elastic_config: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedPyTorchTrainingReplicaSpec { + /// Number of replicas + #[prost(int32, tag="1")] + pub replicas: i32, + /// Image used for the replica group + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources required for the replica group + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, + /// RestartPolicy determines whether pods will be restarted when they exit + #[prost(enumeration="RestartPolicy", tag="4")] + pub restart_policy: i32, +} +/// Proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedTensorflowTrainingTask { + /// Worker replicas spec + #[prost(message, optional, tag="1")] + pub worker_replicas: ::core::option::Option, + /// Parameter server replicas spec + #[prost(message, optional, tag="2")] + pub ps_replicas: ::core::option::Option, + /// Chief replicas spec + #[prost(message, optional, tag="3")] + pub chief_replicas: ::core::option::Option, + /// RunPolicy encapsulates various runtime policies of the distributed training + /// job, for example how to clean up resources and how long the job can stay + /// active. + #[prost(message, optional, tag="4")] + pub run_policy: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedTensorflowTrainingReplicaSpec { + /// Number of replicas + #[prost(int32, tag="1")] + pub replicas: i32, + /// Image used for the replica group + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources required for the replica group + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, + /// RestartPolicy Determines whether pods will be restarted when they exit + #[prost(enumeration="RestartPolicy", tag="4")] + pub restart_policy: i32, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.rs new file mode 100644 index 0000000000..5c7873b5d2 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.plugins.rs @@ -0,0 +1,313 @@ +// @generated +/// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +/// will be executed concurrently. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArrayJob { + /// Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an + /// optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + /// running instances might be more. This has to be a positive number if assigned. Default value is size. + #[prost(int64, tag="1")] + pub parallelism: i64, + /// Defines the number of instances to launch at most. This number should match the size of the input if the job + /// requires processing of all input data. This has to be a positive number. + /// In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. + #[prost(int64, tag="2")] + pub size: i64, + #[prost(oneof="array_job::SuccessCriteria", tags="3, 4")] + pub success_criteria: ::core::option::Option, +} +/// Nested message and enum types in `ArrayJob`. +pub mod array_job { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum SuccessCriteria { + /// An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + /// the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + /// assigned. Default value is size (if specified). + #[prost(int64, tag="3")] + MinSuccesses(i64), + /// If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array + /// job can be marked successful. + #[prost(float, tag="4")] + MinSuccessRatio(f32), + } +} +/// Custom Proto for Dask Plugin. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DaskJob { + /// Spec for the scheduler pod. + #[prost(message, optional, tag="1")] + pub scheduler: ::core::option::Option, + /// Spec of the default worker group. + #[prost(message, optional, tag="2")] + pub workers: ::core::option::Option, +} +/// Specification for the scheduler pod. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DaskScheduler { + /// Optional image to use. If unset, will use the default image. + #[prost(string, tag="1")] + pub image: ::prost::alloc::string::String, + /// Resources assigned to the scheduler pod. + #[prost(message, optional, tag="2")] + pub resources: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DaskWorkerGroup { + /// Number of workers in the group. + #[prost(uint32, tag="1")] + pub number_of_workers: u32, + /// Optional image to use for the pods of the worker group. If unset, will use the default image. + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources assigned to the all pods of the worker group. + /// As per + /// it is advised to only set limits. If requests are not explicitly set, the plugin will make + /// sure to set requests==limits. + /// The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, +} +/// MPI operator proposal +/// Custom proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedMpiTrainingTask { + /// number of worker spawned in the cluster for this job + #[prost(int32, tag="1")] + pub num_workers: i32, + /// number of launcher replicas spawned in the cluster for this job + /// The launcher pod invokes mpirun and communicates with worker pods through MPI. + #[prost(int32, tag="2")] + pub num_launcher_replicas: i32, + /// number of slots per worker used in hostfile. + /// The available slots (GPUs) in each pod. + #[prost(int32, tag="3")] + pub slots: i32, +} +/// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field +/// of a Presto task's TaskTemplate +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PrestoQuery { + #[prost(string, tag="1")] + pub routing_group: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub catalog: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub schema: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub statement: ::prost::alloc::string::String, +} +/// Custom proto for torch elastic config for distributed training using +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ElasticConfig { + #[prost(string, tag="1")] + pub rdzv_backend: ::prost::alloc::string::String, + #[prost(int32, tag="2")] + pub min_replicas: i32, + #[prost(int32, tag="3")] + pub max_replicas: i32, + #[prost(int32, tag="4")] + pub nproc_per_node: i32, + #[prost(int32, tag="5")] + pub max_restarts: i32, +} +/// Custom proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedPyTorchTrainingTask { + /// number of worker replicas spawned in the cluster for this job + #[prost(int32, tag="1")] + pub workers: i32, + /// config for an elastic pytorch job + /// + #[prost(message, optional, tag="2")] + pub elastic_config: ::core::option::Option, +} +/// Defines a query to execute on a hive cluster. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HiveQuery { + #[prost(string, tag="1")] + pub query: ::prost::alloc::string::String, + #[prost(uint32, tag="2")] + pub timeout_sec: u32, + #[prost(uint32, tag="3")] + pub retry_count: u32, +} +/// Defines a collection of hive queries. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HiveQueryCollection { + #[prost(message, repeated, tag="2")] + pub queries: ::prost::alloc::vec::Vec, +} +/// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +/// of a hive task's TaskTemplate +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct QuboleHiveJob { + #[prost(string, tag="1")] + pub cluster_label: ::prost::alloc::string::String, + #[deprecated] + #[prost(message, optional, tag="2")] + pub query_collection: ::core::option::Option, + #[prost(string, repeated, tag="3")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(message, optional, tag="4")] + pub query: ::core::option::Option, +} +/// RayJobSpec defines the desired state of RayJob +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RayJob { + /// RayClusterSpec is the cluster template to run the job + #[prost(message, optional, tag="1")] + pub ray_cluster: ::core::option::Option, + /// runtime_env is base64 encoded. + /// Ray runtime environments: + #[prost(string, tag="2")] + pub runtime_env: ::prost::alloc::string::String, +} +/// Define Ray cluster defines the desired state of RayCluster +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RayCluster { + /// HeadGroupSpecs are the spec for the head pod + #[prost(message, optional, tag="1")] + pub head_group_spec: ::core::option::Option, + /// WorkerGroupSpecs are the specs for the worker pods + #[prost(message, repeated, tag="2")] + pub worker_group_spec: ::prost::alloc::vec::Vec, +} +/// HeadGroupSpec are the spec for the head pod +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HeadGroupSpec { + /// Optional. RayStartParams are the params of the start command: address, object-store-memory. + /// Refer to + #[prost(map="string, string", tag="1")] + pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// WorkerGroupSpec are the specs for the worker pods +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkerGroupSpec { + /// Required. RayCluster can have multiple worker groups, and it distinguishes them by name + #[prost(string, tag="1")] + pub group_name: ::prost::alloc::string::String, + /// Required. Desired replicas of the worker group. Defaults to 1. + #[prost(int32, tag="2")] + pub replicas: i32, + /// Optional. Min replicas of the worker group. MinReplicas defaults to 1. + #[prost(int32, tag="3")] + pub min_replicas: i32, + /// Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 + #[prost(int32, tag="4")] + pub max_replicas: i32, + /// Optional. RayStartParams are the params of the start command: address, object-store-memory. + /// Refer to + #[prost(map="string, string", tag="5")] + pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SparkApplication { +} +/// Nested message and enum types in `SparkApplication`. +pub mod spark_application { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Type { + Python = 0, + Java = 1, + Scala = 2, + R = 3, + } + impl Type { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Type::Python => "PYTHON", + Type::Java => "JAVA", + Type::Scala => "SCALA", + Type::R => "R", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "PYTHON" => Some(Self::Python), + "JAVA" => Some(Self::Java), + "SCALA" => Some(Self::Scala), + "R" => Some(Self::R), + _ => None, + } + } + } +} +/// Custom Proto for Spark Plugin. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SparkJob { + #[prost(enumeration="spark_application::Type", tag="1")] + pub application_type: i32, + #[prost(string, tag="2")] + pub main_application_file: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub main_class: ::prost::alloc::string::String, + #[prost(map="string, string", tag="4")] + pub spark_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(map="string, string", tag="5")] + pub hadoop_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Executor path for Python jobs. + #[prost(string, tag="6")] + pub executor_path: ::prost::alloc::string::String, + /// Databricks job configuration. + /// Config structure can be found here. + #[prost(message, optional, tag="7")] + pub databricks_conf: ::core::option::Option<::prost_types::Struct>, + /// Databricks access token. + /// This token can be set in either flytepropeller or flytekit. + #[prost(string, tag="8")] + pub databricks_token: ::prost::alloc::string::String, + /// Domain name of your deployment. Use the form .cloud.databricks.com. + /// This instance name can be set in either flytepropeller or flytekit. + #[prost(string, tag="9")] + pub databricks_instance: ::prost::alloc::string::String, +} +/// Custom proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedTensorflowTrainingTask { + /// number of worker, ps, chief replicas spawned in the cluster for this job + #[prost(int32, tag="1")] + pub workers: i32, + /// PS -> Parameter server + #[prost(int32, tag="2")] + pub ps_replicas: i32, + #[prost(int32, tag="3")] + pub chief_replicas: i32, +} +/// Represents an Execution that was launched and could be waited on. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Waitable { + #[prost(message, optional, tag="1")] + pub wf_exec_id: ::core::option::Option, + #[prost(enumeration="super::core::workflow_execution::Phase", tag="2")] + pub phase: i32, + #[prost(string, tag="3")] + pub workflow_id: ::prost::alloc::string::String, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.sagemaker.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.sagemaker.rs new file mode 100644 index 0000000000..1b89dd28f2 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.plugins.sagemaker.rs @@ -0,0 +1,493 @@ +// @generated +/// HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter +/// For details, refer to: +/// See examples of these scaling type, refer to: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HyperparameterScalingType { +} +/// Nested message and enum types in `HyperparameterScalingType`. +pub mod hyperparameter_scaling_type { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + Auto = 0, + Linear = 1, + Logarithmic = 2, + Reverselogarithmic = 3, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::Auto => "AUTO", + Value::Linear => "LINEAR", + Value::Logarithmic => "LOGARITHMIC", + Value::Reverselogarithmic => "REVERSELOGARITHMIC", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "AUTO" => Some(Self::Auto), + "LINEAR" => Some(Self::Linear), + "LOGARITHMIC" => Some(Self::Logarithmic), + "REVERSELOGARITHMIC" => Some(Self::Reverselogarithmic), + _ => None, + } + } + } +} +/// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +/// users to specify the search space of a floating-point hyperparameter +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ContinuousParameterRange { + #[prost(double, tag="1")] + pub max_value: f64, + #[prost(double, tag="2")] + pub min_value: f64, + #[prost(enumeration="hyperparameter_scaling_type::Value", tag="3")] + pub scaling_type: i32, +} +/// IntegerParameterRange refers to a discrete range of hyperparameter values, allowing +/// users to specify the search space of an integer hyperparameter +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IntegerParameterRange { + #[prost(int64, tag="1")] + pub max_value: i64, + #[prost(int64, tag="2")] + pub min_value: i64, + #[prost(enumeration="hyperparameter_scaling_type::Value", tag="3")] + pub scaling_type: i32, +} +/// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +/// users to specify the search space of a floating-point hyperparameter +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CategoricalParameterRange { + #[prost(string, repeated, tag="1")] + pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of +/// the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange. +/// This one-of structure in Flyte enables specifying a Parameter in a type-safe manner +/// See: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParameterRangeOneOf { + #[prost(oneof="parameter_range_one_of::ParameterRangeType", tags="1, 2, 3")] + pub parameter_range_type: ::core::option::Option, +} +/// Nested message and enum types in `ParameterRangeOneOf`. +pub mod parameter_range_one_of { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum ParameterRangeType { + #[prost(message, tag="1")] + ContinuousParameterRange(super::ContinuousParameterRange), + #[prost(message, tag="2")] + IntegerParameterRange(super::IntegerParameterRange), + #[prost(message, tag="3")] + CategoricalParameterRange(super::CategoricalParameterRange), + } +} +/// ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParameterRanges { + #[prost(map="string, message", tag="1")] + pub parameter_range_map: ::std::collections::HashMap<::prost::alloc::string::String, ParameterRangeOneOf>, +} +/// The input mode that the algorithm supports. When using the File input mode, SageMaker downloads +/// the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker +/// volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly +/// from S3 to the container. +/// See: +/// For the input modes that different SageMaker algorithms support, see: +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct InputMode { +} +/// Nested message and enum types in `InputMode`. +pub mod input_mode { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + File = 0, + Pipe = 1, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::File => "FILE", + Value::Pipe => "PIPE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "FILE" => Some(Self::File), + "PIPE" => Some(Self::Pipe), + _ => None, + } + } + } +} +/// The algorithm name is used for deciding which pre-built image to point to. +/// This is only required for use cases where SageMaker's built-in algorithm mode is used. +/// While we currently only support a subset of the algorithms, more will be added to the list. +/// See: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AlgorithmName { +} +/// Nested message and enum types in `AlgorithmName`. +pub mod algorithm_name { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + Custom = 0, + Xgboost = 1, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::Custom => "CUSTOM", + Value::Xgboost => "XGBOOST", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CUSTOM" => Some(Self::Custom), + "XGBOOST" => Some(Self::Xgboost), + _ => None, + } + } + } +} +/// Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data +/// See +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct InputContentType { +} +/// Nested message and enum types in `InputContentType`. +pub mod input_content_type { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + TextCsv = 0, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::TextCsv => "TEXT_CSV", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "TEXT_CSV" => Some(Self::TextCsv), + _ => None, + } + } + } +} +/// Specifies a metric that the training algorithm writes to stderr or stdout. +/// This object is a pass-through. +/// See this for details: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MetricDefinition { + /// User-defined name of the metric + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics + #[prost(string, tag="2")] + pub regex: ::prost::alloc::string::String, +} +/// Specifies the training algorithm to be used in the training job +/// This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify +/// TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm +/// name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to +/// CUSTOM. In this case, the value of the algorithm_version field has no effect +/// For pass-through use cases: refer to this AWS official document for more details +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AlgorithmSpecification { + /// The input mode can be either PIPE or FILE + #[prost(enumeration="input_mode::Value", tag="1")] + pub input_mode: i32, + /// The algorithm name is used for deciding which pre-built image to point to + #[prost(enumeration="algorithm_name::Value", tag="2")] + pub algorithm_name: i32, + /// The algorithm version field is used for deciding which pre-built image to point to + /// This is only needed for use cases where SageMaker's built-in algorithm mode is chosen + #[prost(string, tag="3")] + pub algorithm_version: ::prost::alloc::string::String, + /// A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + /// See this: + /// and this: + #[prost(message, repeated, tag="4")] + pub metric_definitions: ::prost::alloc::vec::Vec, + /// The content type of the input + /// See + /// + #[prost(enumeration="input_content_type::Value", tag="5")] + pub input_content_type: i32, +} +/// When enabling distributed training on a training job, the user should use this message to tell Flyte and SageMaker +/// what kind of distributed protocol he/she wants to use to distribute the work. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedProtocol { +} +/// Nested message and enum types in `DistributedProtocol`. +pub mod distributed_protocol { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + /// Use this value if the user wishes to use framework-native distributed training interfaces. + /// If this value is used, Flyte won't configure SageMaker to initialize unnecessary components such as + /// OpenMPI or Parameter Server. + Unspecified = 0, + /// Use this value if the user wishes to use MPI as the underlying protocol for her distributed training job + /// MPI is a framework-agnostic distributed protocol. It has multiple implementations. Currently, we have only + /// tested the OpenMPI implementation, which is the recommended implementation for Horovod. + Mpi = 1, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::Unspecified => "UNSPECIFIED", + Value::Mpi => "MPI", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNSPECIFIED" => Some(Self::Unspecified), + "MPI" => Some(Self::Mpi), + _ => None, + } + } + } +} +/// TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the +/// number of instances to launch, and the size of the ML storage volume the user wants to provision +/// Refer to SageMaker official doc for more details: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TrainingJobResourceConfig { + /// The number of ML compute instances to use. For distributed training, provide a value greater than 1. + #[prost(int64, tag="1")] + pub instance_count: i64, + /// The ML compute instance type + #[prost(string, tag="2")] + pub instance_type: ::prost::alloc::string::String, + /// The size of the ML storage volume that you want to provision. + #[prost(int64, tag="3")] + pub volume_size_in_gb: i64, + /// When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training. + /// If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this + /// field should be set to the corresponding enum value + #[prost(enumeration="distributed_protocol::Value", tag="4")] + pub distributed_protocol: i32, +} +/// The spec of a training job. This is mostly a pass-through object +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TrainingJob { + #[prost(message, optional, tag="1")] + pub algorithm_specification: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub training_job_resource_config: ::core::option::Option, +} +/// A pass-through for SageMaker's hyperparameter tuning job +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HyperparameterTuningJob { + /// The underlying training job that the hyperparameter tuning job will launch during the process + #[prost(message, optional, tag="1")] + pub training_job: ::core::option::Option, + /// The maximum number of training jobs that an hpo job can launch. For resource limit purpose. + /// + #[prost(int64, tag="2")] + pub max_number_of_training_jobs: i64, + /// The maximum number of concurrent training job that an hpo job can launch + /// + #[prost(int64, tag="3")] + pub max_parallel_training_jobs: i64, +} +/// HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job +/// with respect to the specified metric. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HyperparameterTuningObjectiveType { +} +/// Nested message and enum types in `HyperparameterTuningObjectiveType`. +pub mod hyperparameter_tuning_objective_type { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + Minimize = 0, + Maximize = 1, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::Minimize => "MINIMIZE", + Value::Maximize => "MAXIMIZE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "MINIMIZE" => Some(Self::Minimize), + "MAXIMIZE" => Some(Self::Maximize), + _ => None, + } + } + } +} +/// The target metric and the objective of the hyperparameter tuning. +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HyperparameterTuningObjective { + /// HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job + /// with respect to the specified metric. + #[prost(enumeration="hyperparameter_tuning_objective_type::Value", tag="1")] + pub objective_type: i32, + /// The target metric name, which is the user-defined name of the metric specified in the + /// training job's algorithm specification + #[prost(string, tag="2")] + pub metric_name: ::prost::alloc::string::String, +} +/// Setting the strategy used when searching in the hyperparameter space +/// Refer this doc for more details: +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HyperparameterTuningStrategy { +} +/// Nested message and enum types in `HyperparameterTuningStrategy`. +pub mod hyperparameter_tuning_strategy { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + Bayesian = 0, + Random = 1, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::Bayesian => "BAYESIAN", + Value::Random => "RANDOM", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "BAYESIAN" => Some(Self::Bayesian), + "RANDOM" => Some(Self::Random), + _ => None, + } + } + } +} +/// When the training jobs launched by the hyperparameter tuning job are not improving significantly, +/// a hyperparameter tuning job can be stopping early. +/// Note that there's only a subset of built-in algorithms that supports early stopping. +/// see: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TrainingJobEarlyStoppingType { +} +/// Nested message and enum types in `TrainingJobEarlyStoppingType`. +pub mod training_job_early_stopping_type { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Value { + Off = 0, + Auto = 1, + } + impl Value { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Value::Off => "OFF", + Value::Auto => "AUTO", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "OFF" => Some(Self::Off), + "AUTO" => Some(Self::Auto), + _ => None, + } + } + } +} +/// The specification of the hyperparameter tuning process +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HyperparameterTuningJobConfig { + /// ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range + #[prost(message, optional, tag="1")] + pub hyperparameter_ranges: ::core::option::Option, + /// Setting the strategy used when searching in the hyperparameter space + #[prost(enumeration="hyperparameter_tuning_strategy::Value", tag="2")] + pub tuning_strategy: i32, + /// The target metric and the objective of the hyperparameter tuning. + #[prost(message, optional, tag="3")] + pub tuning_objective: ::core::option::Option, + /// When the training jobs launched by the hyperparameter tuning job are not improving significantly, + /// a hyperparameter tuning job can be stopping early. + #[prost(enumeration="training_job_early_stopping_type::Value", tag="4")] + pub training_job_early_stopping_type: i32, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.service.rs b/flyteidl/gen/pb_rust/flyteidl.service.rs new file mode 100644 index 0000000000..197e99055a --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.service.rs @@ -0,0 +1,400 @@ +// @generated +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2MetadataRequest { +} +/// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata +/// as defined in +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2MetadataResponse { + /// Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external + /// issuer. + #[prost(string, tag="1")] + pub issuer: ::prost::alloc::string::String, + /// URL of the authorization server's authorization endpoint \[RFC6749\]. This is REQUIRED unless no grant types are + /// supported that use the authorization endpoint. + #[prost(string, tag="2")] + pub authorization_endpoint: ::prost::alloc::string::String, + /// URL of the authorization server's token endpoint \[RFC6749\]. + #[prost(string, tag="3")] + pub token_endpoint: ::prost::alloc::string::String, + /// Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. + #[prost(string, repeated, tag="4")] + pub response_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// JSON array containing a list of the OAuth 2.0 \[RFC6749\] scope values that this authorization server supports. + #[prost(string, repeated, tag="5")] + pub scopes_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// JSON array containing a list of client authentication methods supported by this token endpoint. + #[prost(string, repeated, tag="6")] + pub token_endpoint_auth_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// URL of the authorization server's JWK Set \[JWK\] document. The referenced document contains the signing key(s) the + /// client uses to validate signatures from the authorization server. + #[prost(string, tag="7")] + pub jwks_uri: ::prost::alloc::string::String, + /// JSON array containing a list of Proof Key for Code Exchange (PKCE) \[RFC7636\] code challenge methods supported by + /// this authorization server. + #[prost(string, repeated, tag="8")] + pub code_challenge_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. + #[prost(string, repeated, tag="9")] + pub grant_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of \[RFC8628\] + #[prost(string, tag="10")] + pub device_authorization_endpoint: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PublicClientAuthConfigRequest { +} +/// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PublicClientAuthConfigResponse { + /// client_id to use when initiating OAuth2 authorization requests. + #[prost(string, tag="1")] + pub client_id: ::prost::alloc::string::String, + /// redirect uri to use when initiating OAuth2 authorization requests. + #[prost(string, tag="2")] + pub redirect_uri: ::prost::alloc::string::String, + /// scopes to request when initiating OAuth2 authorization requests. + #[prost(string, repeated, tag="3")] + pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the + /// default http `Authorization` header. + #[prost(string, tag="4")] + pub authorization_metadata_key: ::prost::alloc::string::String, + /// ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used + /// to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between + /// SSL or no SSL connections. + #[prost(string, tag="5")] + pub service_http_endpoint: ::prost::alloc::string::String, + /// audience to use when initiating OAuth2 authorization requests. + #[prost(string, tag="6")] + pub audience: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUploadLocationResponse { + /// SignedUrl specifies the url to use to upload content to (e.g. ) + #[prost(string, tag="1")] + pub signed_url: ::prost::alloc::string::String, + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="2")] + pub native_url: ::prost::alloc::string::String, + /// ExpiresAt defines when will the signed URL expires. + #[prost(message, optional, tag="3")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// CreateUploadLocationRequest specified request for the CreateUploadLocation API. +/// The implementation in data proxy service will create the s3 location with some server side configured prefixes, +/// and then: +/// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR +/// - project/domain/filename_root (if present)/filename (if present). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUploadLocationRequest { + /// Project to create the upload location for + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Domain to create the upload location for. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. + /// +optional. By default, the service will generate a consistent name based on the provided parameters. + #[prost(string, tag="3")] + pub filename: ::prost::alloc::string::String, + /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + /// exceeds the platform allowed max. + /// +optional. The default value comes from a global config. + #[prost(message, optional, tag="4")] + pub expires_in: ::core::option::Option<::prost_types::Duration>, + /// ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the + /// generated path. + /// +required + #[prost(bytes="vec", tag="5")] + pub content_md5: ::prost::alloc::vec::Vec, + /// If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included + /// this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix + /// in data proxy config. This option is useful when uploading multiple files. + /// +optional + #[prost(string, tag="6")] + pub filename_root: ::prost::alloc::string::String, +} +/// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLocationRequest { + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="1")] + pub native_url: ::prost::alloc::string::String, + /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + /// exceeds the platform allowed max. + /// +optional. The default value comes from a global config. + #[prost(message, optional, tag="2")] + pub expires_in: ::core::option::Option<::prost_types::Duration>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLocationResponse { + /// SignedUrl specifies the url to use to download content from (e.g. ) + #[prost(string, tag="1")] + pub signed_url: ::prost::alloc::string::String, + /// ExpiresAt defines when will the signed URL expires. + #[prost(message, optional, tag="2")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLinkRequest { + /// ArtifactType of the artifact requested. + #[prost(enumeration="ArtifactType", tag="1")] + pub artifact_type: i32, + /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + /// exceeds the platform allowed max. + /// +optional. The default value comes from a global config. + #[prost(message, optional, tag="2")] + pub expires_in: ::core::option::Option<::prost_types::Duration>, + #[prost(oneof="create_download_link_request::Source", tags="3")] + pub source: ::core::option::Option, +} +/// Nested message and enum types in `CreateDownloadLinkRequest`. +pub mod create_download_link_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Source { + /// NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the + /// most recent attempt of the task. + #[prost(message, tag="3")] + NodeExecutionId(super::super::core::NodeExecutionIdentifier), + } +} +/// CreateDownloadLinkResponse defines the response for the generated links +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLinkResponse { + /// SignedUrl specifies the url to use to download content from (e.g. ) + #[deprecated] + #[prost(string, repeated, tag="1")] + pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// ExpiresAt defines when will the signed URL expire. + #[deprecated] + #[prost(message, optional, tag="2")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, + /// New wrapper object containing the signed urls and expiration time + #[prost(message, optional, tag="3")] + pub pre_signed_urls: ::core::option::Option, +} +/// Wrapper object since the message is shared across this and the GetDataResponse +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PreSignedUrLs { + /// SignedUrl specifies the url to use to download content from (e.g. ) + #[prost(string, repeated, tag="1")] + pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// ExpiresAt defines when will the signed URL expire. + #[prost(message, optional, tag="2")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// General request artifact to retrieve data from a Flyte artifact url. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDataRequest { + /// A unique identifier in the form of flyte:// that uniquely, for a given Flyte + /// backend, identifies a Flyte artifact (\[i\]nput, \[o\]utput, flyte \[d\]eck, etc.). + /// e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) + /// flyte://v1/proj/development/execid/n2/i (for node execution input) + /// flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) + #[prost(string, tag="1")] + pub flyte_url: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDataResponse { + #[prost(oneof="get_data_response::Data", tags="1, 2, 3")] + pub data: ::core::option::Option, +} +/// Nested message and enum types in `GetDataResponse`. +pub mod get_data_response { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Data { + /// literal map data will be returned + #[prost(message, tag="1")] + LiteralMap(super::super::core::LiteralMap), + /// Flyte deck html will be returned as a signed url users can download + #[prost(message, tag="2")] + PreSignedUrls(super::PreSignedUrLs), + /// Single literal will be returned. This is returned when the user/url requests a specific output or input + /// by name. See the o3 example above. + #[prost(message, tag="3")] + Literal(super::super::core::Literal), + } +} +/// ArtifactType +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ArtifactType { + /// ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. + Undefined = 0, + /// ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan + /// finishes executing. + Deck = 1, +} +impl ArtifactType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ArtifactType::Undefined => "ARTIFACT_TYPE_UNDEFINED", + ArtifactType::Deck => "ARTIFACT_TYPE_DECK", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ARTIFACT_TYPE_UNDEFINED" => Some(Self::Undefined), + "ARTIFACT_TYPE_DECK" => Some(Self::Deck), + _ => None, + } + } +} +/// Represents a request structure to create task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateRequest { + /// The inputs required to start the execution. All required inputs must be + /// included in this map. If not required and not provided, defaults apply. + /// +optional + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="2")] + pub template: ::core::option::Option, + /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + #[prost(string, tag="3")] + pub output_prefix: ::prost::alloc::string::String, +} +/// Represents a create response structure. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateResponse { + #[prost(string, tag="1")] + pub job_id: ::prost::alloc::string::String, +} +/// A message used to fetch a job state from backend plugin server. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskGetRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// The unique id identifying the job. + #[prost(string, tag="2")] + pub job_id: ::prost::alloc::string::String, +} +/// Response to get an individual task state. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskGetResponse { + /// The state of the execution is used to control its visibility in the UI/CLI. + #[prost(enumeration="State", tag="1")] + pub state: i32, + /// The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a + /// Structured dataset pointing to the query result table. + /// +optional + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, +} +/// A message used to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskDeleteRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// The unique id identifying the job. + #[prost(string, tag="2")] + pub job_id: ::prost::alloc::string::String, +} +/// Response to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskDeleteResponse { +} +/// The state of the execution is used to control its visibility in the UI/CLI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum State { + RetryableFailure = 0, + PermanentFailure = 1, + Pending = 2, + Running = 3, + Succeeded = 4, +} +impl State { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + State::RetryableFailure => "RETRYABLE_FAILURE", + State::PermanentFailure => "PERMANENT_FAILURE", + State::Pending => "PENDING", + State::Running => "RUNNING", + State::Succeeded => "SUCCEEDED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), + "PERMANENT_FAILURE" => Some(Self::PermanentFailure), + "PENDING" => Some(Self::Pending), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + _ => None, + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UserInfoRequest { +} +/// See the OpenID Connect spec at for more information. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UserInfoResponse { + /// Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed + /// by the Client. + #[prost(string, tag="1")] + pub subject: ::prost::alloc::string::String, + /// Full name + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + /// Shorthand name by which the End-User wishes to be referred to + #[prost(string, tag="3")] + pub preferred_username: ::prost::alloc::string::String, + /// Given name(s) or first name(s) + #[prost(string, tag="4")] + pub given_name: ::prost::alloc::string::String, + /// Surname(s) or last name(s) + #[prost(string, tag="5")] + pub family_name: ::prost::alloc::string::String, + /// Preferred e-mail address + #[prost(string, tag="6")] + pub email: ::prost::alloc::string::String, + /// Profile picture URL + #[prost(string, tag="7")] + pub picture: ::prost::alloc::string::String, + /// Additional claims + #[prost(message, optional, tag="8")] + pub additional_claims: ::core::option::Option<::prost_types::Struct>, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/generate_mocks.sh b/flyteidl/generate_mocks.sh new file mode 100755 index 0000000000..4ada054af1 --- /dev/null +++ b/flyteidl/generate_mocks.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +set -x + +mockery -dir=gen/pb-go/flyteidl/service/ -all -output=clients/go/admin/mocks +mockery -dir=gen/pb-go/flyteidl/datacatalog/ -name=DataCatalogClient -output=clients/go/datacatalog/mocks diff --git a/flyteidl/generate_protos.sh b/flyteidl/generate_protos.sh new file mode 100755 index 0000000000..0f3cfb3c5f --- /dev/null +++ b/flyteidl/generate_protos.sh @@ -0,0 +1,115 @@ +#!/bin/bash +set -e + +DIR=`pwd` +rm -rf $DIR/gen +LYFT_IMAGE="lyft/protocgenerator:8167e11d3b3439373c2f033080a4b550078884a2" +SWAGGER_CLI_IMAGE="ghcr.io/flyteorg/swagger-codegen-cli:latest" +PROTOC_GEN_DOC_IMAGE="pseudomuto/protoc-gen-doc:1.4.1" + +# Override system locale during protos/docs generation to ensure consistent sorting (differences in system locale could e.g. lead to differently ordered docs) +export LC_ALL=C.UTF-8 + +docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/service --with_gateway -l go --go_source_relative +docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/admin --with_gateway -l go --go_source_relative --validate_out +docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/core --with_gateway -l go --go_source_relative --validate_out +docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/event --with_gateway -l go --go_source_relative --validate_out +docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/plugins -l go --go_source_relative --validate_out +docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/datacatalog -l go --go_source_relative --validate_out + +languages=("cpp" "java") +idlfolders=("service" "admin" "core" "event" "plugins" "datacatalog") + +for lang in "${languages[@]}" +do + for folder in "${idlfolders[@]}" + do + docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/$folder -l $lang + done +done + +# Buf migration +docker run -u $(id -u):$(id -g) -e "BUF_CACHE_DIR=/tmp/cache" --volume "$(pwd):/workspace" --workdir /workspace bufbuild/buf generate + +# Unfortunately the python protoc plugin does not add __init__.py files to the generated code +# (as described in https://github.com/protocolbuffers/protobuf/issues/881). One of the +# suggestions is to manually create such files, which is what we do here: +find gen/pb_python -type d -exec touch {}/__init__.py \; + +# Docs generated + +# # Remove any currently generated core docs file +# ls -d protos/docs/core/* | grep -v index.rst | xargs rm +# # Use list of proto files in core directory to generate the RST files required for sphinx conversion. Additionally generate for google.protobuf.[timestamp | struct | duration]. +# docker run --rm -u $(id -u):$(id -g) -v $DIR/protos:/protos:ro -v $DIR/protos/docs/core:/out:rw -v $DIR/tmp/doc_gen_deps:/tmp/doc_gen_deps:ro $PROTOC_GEN_DOC_IMAGE --doc_opt=protos/docs/restructuredtext.tmpl,core.rst -I=tmp/doc_gen_deps -I=protos `ls protos/flyteidl/core/*.proto | xargs` tmp/doc_gen_deps/google/protobuf/timestamp.proto tmp/doc_gen_deps/google/protobuf/duration.proto tmp/doc_gen_deps/google/protobuf/struct.proto + +# # Remove any currently generated admin docs file +# ls -d protos/docs/admin/* | grep -v index.rst | xargs rm +# # Use list of proto files in admin directory to generate the RST files required for sphinx conversion. Additionally generate for google.protobuf.[duration | wrappers]. +# docker run --rm -u $(id -u):$(id -g) -v $DIR/protos:/protos:ro -v $DIR/protos/docs/admin:/out:rw -v $DIR/tmp/doc_gen_deps:/tmp/doc_gen_deps:ro $PROTOC_GEN_DOC_IMAGE --doc_opt=protos/docs/withoutscalar_restructuredtext.tmpl,admin.rst -I=tmp/doc_gen_deps -I=protos `ls protos/flyteidl/admin/*.proto | xargs` tmp/doc_gen_deps/google/protobuf/duration.proto tmp/doc_gen_deps/google/protobuf/wrappers.proto + +# # Remove any currently generated datacatalog docs file +# ls -d protos/docs/datacatalog/* | grep -v index.rst | xargs rm +# # Use list of proto files in datacatalog directory to generate the RST files required for sphinx conversion. Additionally generate for google.protobuf.[timestamp | struct | duration]. +# docker run --rm -u $(id -u):$(id -g) -v $DIR/protos:/protos:ro -v $DIR/protos/docs/datacatalog:/out:rw -v $DIR/tmp/doc_gen_deps:/tmp/doc_gen_deps:ro $PROTOC_GEN_DOC_IMAGE --doc_opt=protos/docs/withoutscalar_restructuredtext.tmpl,datacatalog.rst -I=tmp/doc_gen_deps -I=protos `ls protos/flyteidl/datacatalog/*.proto | xargs` tmp/doc_gen_deps/google/protobuf/timestamp.proto tmp/doc_gen_deps/google/protobuf/duration.proto tmp/doc_gen_deps/google/protobuf/struct.proto + +# # Remove any currently generated event docs file +# ls -d protos/docs/event/* | grep -v index.rst | xargs rm +# # Use list of proto files in event directory to generate the RST files required for sphinx conversion. Additionally generate for google.protobuf.[timestamp | struct | duration]. +# docker run --rm -u $(id -u):$(id -g) -v $DIR/protos:/protos:ro -v $DIR/protos/docs/event:/out:rw -v $DIR/tmp/doc_gen_deps:/tmp/doc_gen_deps:ro $PROTOC_GEN_DOC_IMAGE --doc_opt=protos/docs/withoutscalar_restructuredtext.tmpl,event.rst -I=tmp/doc_gen_deps -I=protos `ls protos/flyteidl/event/*.proto | xargs` tmp/doc_gen_deps/google/protobuf/timestamp.proto tmp/doc_gen_deps/google/protobuf/duration.proto tmp/doc_gen_deps/google/protobuf/struct.proto + +# # Remove any currently generated plugins docs file +# ls -d protos/docs/plugins/* | grep -v index.rst | xargs rm +# # Use list of proto files in plugins directory to generate the RST files required for sphinx conversion +# docker run --rm -u $(id -u):$(id -g) -v $DIR/protos:/protos:ro -v $DIR/protos/docs/plugins:/out:rw -v $DIR/tmp/doc_gen_deps:/tmp/doc_gen_deps:ro $PROTOC_GEN_DOC_IMAGE --doc_opt=protos/docs/withoutscalar_restructuredtext.tmpl,plugins.rst -I=protos -I=tmp/doc_gen_deps `ls protos/flyteidl/plugins/*.proto | xargs` + +# # Remove any currently generated service docs file +# ls -d protos/docs/service/* | grep -v index.rst | xargs rm +# # Use list of proto files in service directory to generate the RST files required for sphinx conversion +# docker run --rm -u $(id -u):$(id -g) -v $DIR/protos:/protos:ro -v $DIR/protos/docs/service:/out:rw -v $DIR/tmp/doc_gen_deps:/tmp/doc_gen_deps:ro $PROTOC_GEN_DOC_IMAGE --doc_opt=protos/docs/withoutscalar_restructuredtext.tmpl,service.rst -I=protos -I=tmp/doc_gen_deps `ls protos/flyteidl/service/*.proto | xargs` + +# Generate binary data from OpenAPI 2 file +docker run --rm -u $(id -u):$(id -g) -v $DIR/gen/pb-go/flyteidl/service:/service --entrypoint go-bindata $LYFT_IMAGE -pkg service -o /service/openapi.go -prefix /service/ -modtime 1562572800 /service/admin.swagger.json + +# Generate JS code +docker run --rm -u $(id -u):$(id -g) -v $DIR:/defs schottra/docker-protobufjs:v0.0.2 --module-name flyteidl -d protos/flyteidl/core -d protos/flyteidl/event -d protos/flyteidl/admin -d protos/flyteidl/service -- --root flyteidl -t static-module -w default --no-delimited --force-long --no-convert -p /defs/protos + +# Generate GO API client code +docker run --rm -u $(id -u):$(id -g) --rm -v $DIR:/defs $SWAGGER_CLI_IMAGE generate -i /defs/gen/pb-go/flyteidl/service/admin.swagger.json -l go -o /defs/gen/pb-go/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + +# # Generate Python API client code +docker run --rm -u $(id -u):$(id -g) --rm -v $DIR:/defs $SWAGGER_CLI_IMAGE generate -i /defs/gen/pb-go/flyteidl/service/admin.swagger.json -l python -o /defs/gen/pb_python/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + +# Remove documentation generated from the swagger-codegen-cli +rm -rf gen/pb-go/flyteidl/service/flyteadmin/docs +rm -rf gen/pb_python/flyteidl/service/flyteadmin/docs + + +# Unfortunately, the `--grpc-gateway-out` plugin doesn’t yet support the `source_relative` option. Until it does, we need to move the files from the autogenerated location to the source_relative location. +cp -r gen/pb-go/github.com/flyteorg/flyteidl/gen/* gen/ +rm -rf gen/pb-go/github.com + +# Copy the validate.py protos. +mkdir -p gen/pb_python/validate +cp -r validate/* gen/pb_python/validate/ + +# Update the service code manually because the code generated by protoc is incorrect +# More detail, check https://github.com/flyteorg/flyteidl/pull/303#discussion_r1002151053 +sed -i -e 's/protoReq.Id.ResourceType = ResourceType(e)/protoReq.Id.ResourceType = core.ResourceType(e)/g' gen/pb-go/flyteidl/service/admin.pb.gw.go +rm -f gen/pb-go/flyteidl/service/admin.pb.gw.go-e + +# This section is used by Travis CI to ensure that the generation step was run +if [ -n "$DELTA_CHECK" ]; then + DIRTY=$(git status --porcelain) + if [ -n "$DIRTY" ]; then + echo "FAILED: Protos updated without commiting generated code." + echo "Ensure make generate has run and all changes are committed." + DIFF=$(git diff) + echo "diff detected: $DIFF" + DIFF=$(git diff --name-only) + echo "files different: $DIFF" + exit 1 + else + echo "SUCCESS: Generated code is up to date." + fi +fi diff --git a/flyteidl/go.mod b/flyteidl/go.mod new file mode 100644 index 0000000000..3aacab7964 --- /dev/null +++ b/flyteidl/go.mod @@ -0,0 +1,91 @@ +module github.com/flyteorg/flyteidl + +go 1.19 + +require ( + github.com/antihax/optional v1.0.0 + github.com/flyteorg/flytestdlib v1.0.0 + github.com/go-test/deep v1.0.7 + github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b + github.com/golang/protobuf v1.4.3 + github.com/grpc-ecosystem/go-grpc-middleware v1.1.0 + github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 + github.com/grpc-ecosystem/grpc-gateway v1.16.0 + github.com/jinzhu/copier v0.3.5 + github.com/mitchellh/mapstructure v1.4.1 + github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 + github.com/pkg/errors v0.9.1 + github.com/spf13/pflag v1.0.5 + github.com/stretchr/testify v1.7.0 + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f + golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013 + google.golang.org/api v0.38.0 + google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506 + google.golang.org/grpc v1.35.0 + k8s.io/apimachinery v0.20.2 +) + +require ( + cloud.google.com/go v0.75.0 // indirect + cloud.google.com/go/storage v1.12.0 // indirect + github.com/Azure/azure-sdk-for-go v62.3.0+incompatible // indirect + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 // indirect + github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 // indirect + github.com/Azure/go-autorest v14.2.0+incompatible // indirect + github.com/Azure/go-autorest/autorest v0.11.17 // indirect + github.com/Azure/go-autorest/autorest/adal v0.9.10 // indirect + github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect + github.com/Azure/go-autorest/logger v0.2.0 // indirect + github.com/Azure/go-autorest/tracing v0.6.0 // indirect + github.com/aws/aws-sdk-go v1.37.1 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.1.1 // indirect + github.com/coocood/freecache v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/fatih/color v1.10.0 // indirect + github.com/flyteorg/stow v0.3.3 // indirect + github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect + github.com/ghodss/yaml v1.0.0 // indirect + github.com/go-logr/logr v0.4.0 // indirect + github.com/gofrs/uuid v4.2.0+incompatible // indirect + github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect + github.com/googleapis/gax-go/v2 v2.0.5 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/jstemmer/go-junit-report v0.9.1 // indirect + github.com/mattn/go-colorable v0.1.8 // indirect + github.com/mattn/go-isatty v0.0.12 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/ncw/swift v1.0.53 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_golang v1.9.0 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/prometheus/common v0.15.0 // indirect + github.com/prometheus/procfs v0.3.0 // indirect + github.com/sirupsen/logrus v1.7.0 // indirect + github.com/spf13/cobra v1.1.1 // indirect + github.com/stretchr/objx v0.3.0 // indirect + go.opencensus.io v0.22.6 // indirect + golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect + golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect + golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect + golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect + golang.org/x/tools v0.1.10 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/protobuf v1.25.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect + k8s.io/client-go v0.0.0-20210217172142-7279fc64d847 // indirect + k8s.io/klog/v2 v2.5.0 // indirect +) + +// These 2 versions were wrongly published. +retract ( + v1.4.2 + v1.4.0 +) diff --git a/flyteidl/go.sum b/flyteidl/go.sum new file mode 100644 index 0000000000..b2eab61f10 --- /dev/null +++ b/flyteidl/go.sum @@ -0,0 +1,971 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.66.0/go.mod h1:dgqGAjKCDxyhGTtC9dAREQGUJpkceNm1yt590Qno0Ko= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0 h1:XgtDnVJRCPEUG21gjFiRPz4zI1Mjg16R+NYQjfmU4XY= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.12.0 h1:4y3gHptW1EHVtcPAVE0eBBlFuGqEejTTG3KdIE0lUX4= +cloud.google.com/go/storage v1.12.0/go.mod h1:fFLk2dp2oAhDz8QFKwqrjdJvxSp/W2g7nillojlL5Ho= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/Azure/azure-sdk-for-go v62.3.0+incompatible h1:Ctfsn9UoA/BB4HMYQlbPPgNXdX0tZ4tmb85+KFb2+RE= +github.com/Azure/azure-sdk-for-go v62.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 h1:qoVeMsc9/fh/yhxVaA0obYjVH/oI/ihrOoMwsLS9KSA= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 h1:Px2UA+2RvSSvv+RvJNuUB6n7rs5Wsel4dXLe90Um2n4= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= +github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= +github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= +github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= +github.com/Azure/go-autorest/autorest v0.11.17 h1:2zCdHwNgRH+St1J+ZMf66xI8aLr/5KMy+wWLH97zwYM= +github.com/Azure/go-autorest/autorest v0.11.17/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw= +github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= +github.com/Azure/go-autorest/autorest/adal v0.9.10 h1:r6fZHMaHD8B6LDCn0o5vyBFHIHrM6Ywwx7mb49lPItI= +github.com/Azure/go-autorest/autorest/adal v0.9.10/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= +github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw= +github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= +github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk= +github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/to v0.4.0 h1:oXVqrxakqqV1UZdSazDOPOLvOIz+XA683u8EctwboHk= +github.com/Azure/go-autorest/logger v0.2.0 h1:e4RVHVZKC5p6UANLJHkM4OfR1UKZPj8Wt8Pcx+3oqrE= +github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= +github.com/Azure/go-autorest/tracing v0.6.0 h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo= +github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= +github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= +github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.37.1 h1:BTHmuN+gzhxkvU9sac2tZvaY0gV9ihbHw+KxZOecYvY= +github.com/aws/aws-sdk-go v1.37.1/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= +github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 h1:SKI1/fuSdodxmNNyVBR8d7X/HuLnRpvvFO0AgyQk764= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/coocood/freecache v1.1.1 h1:uukNF7QKCZEdZ9gAV7WQzvh0SbjwdMF6m3x3rxEkaPc= +github.com/coocood/freecache v1.1.1/go.mod h1:OKrEjkGVoxZhyWAJoeFi5BMLUJm2Tit0kpGkIr7NGYY= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= +github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= +github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= +github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= +github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg= +github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/flyteorg/flytestdlib v1.0.0 h1:gb99ignMsVcNTUmWzArtcIDdkRjyzQQVBkWNOQakiFg= +github.com/flyteorg/flytestdlib v1.0.0/go.mod h1:QSVN5wIM1lM9d60eAEbX7NwweQXW96t5x4jbyftn89c= +github.com/flyteorg/stow v0.3.3 h1:tzeNl8mSZFL3oJDi0ACZj6FAineQAF4qyEp6bXtIdQY= +github.com/flyteorg/stow v0.3.3/go.mod h1:HBld7ud0i4khMHwJjkO8v+NSP7ddKa/ruhf4I8fliaA= +github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk= +github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= +github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= +github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-logr/logr v0.4.0 h1:K7/B1jt6fIBQVd4Owv2MqGQClcgf0R266+7C/QjRcLc= +github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= +github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= +github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= +github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= +github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-test/deep v1.0.7 h1:/VSMRlnY/JSyqxQUzQLKVMAskpY/NZKFA5j2P+0pP2M= +github.com/go-test/deep v1.0.7/go.mod h1:QV8Hv/iy04NyLBxAdO9njL0iVPN1S4d/A3NVv1V36o8= +github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= +github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0 h1:wCKgOCHuUEVfsaQLpPSJb7VdYCdTVZQAuOdYm1yc/60= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200905233945-acf8798be1f7/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= +github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.1.0 h1:THDBEeQ9xZ8JEaCLyLQqXMMdRqNr0QAUJTIkQAUtFjg= +github.com/grpc-ecosystem/go-grpc-middleware v1.1.0/go.mod h1:f5nM7jw/oeRSadq3xCzHAvxcr8HZnzsqU6ILg/0NiiE= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= +github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/jinzhu/copier v0.3.5 h1:GlvfUwHk62RokgqVNvYsku0TATCF7bAHVwEXoBh3iJg= +github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= +github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= +github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= +github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= +github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= +github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= +github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= +github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= +github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= +github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= +github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= +github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/ncw/swift v1.0.53 h1:luHjjTNtekIEvHg5KdAFIBaH7bWfNkefwFnpDffSIks= +github.com/ncw/swift v1.0.53/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= +github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= +github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= +github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= +github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= +github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.9.0 h1:Rrch9mh17XcxvEu9D9DEpb4isxjGBtcevQjKvxPRQIU= +github.com/prometheus/client_golang v1.9.0/go.mod h1:FqZLKOZnGdFAhOK4nqGHa7D66IdsO+O441Eve7ptJDU= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.15.0 h1:4fgOnadei3EZvgRwxJ7RMpG1k1pOZth5Pc13tyspaKM= +github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.3.0 h1:Uehi/mxLK0eiUc0H0++5tpMGTexB8wZ598MIgU8VpDM= +github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4= +github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.3.0 h1:NGXK3lHquSN08v5vWalVI/L8XU9hdzE/G6xsrze47As= +github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.22.6 h1:BdkrbWrzDlV9dnbzoP7sfN+dHheJ4J9JOaYxcUDL+ok= +go.opencensus.io v0.22.6/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 h1:2M3HP5CCK1Si9FQhwnzYhXdG6DXeebvUHFpre8QvbyI= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013 h1:55H5j7lotzuFCEOKDsMch+fRNUQ9DgtyHOUP31FNqKc= +golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 h1:Hir2P/De0WpUhtrKGGjvSb2YxUgyZ7EFOSLIcSSpiwE= +golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200828161849-5deb26317202/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20200915173823-2db8f0ff891c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.0.0-20200918232735-d647fc253266/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.31.0/go.mod h1:CL+9IBCa2WWU6gRuBWaKqGWLFFwbEUXkfeMkHLQWYWo= +google.golang.org/api v0.32.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.38.0 h1:vDyWk6eup8eQAidaZ31sNWIn8tZEL8qpbtGkBD4ytQo= +google.golang.org/api v0.38.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200831141814-d751682dd103/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200914193844-75d14daec038/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200921151605-7abf4a1a14d5/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506 h1:uLBY0yHDCj2PMQ98KWDSIDFwn9zK2zh+tgWtbvPPBjI= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0 h1:TwIQcH3es+MojMVojxxfQ3l3OF2KzlRxML2xZq0kRo8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +k8s.io/api v0.0.0-20210217171935-8e2decd92398/go.mod h1:60tmSUpHxGPFerNHbo/ayI2lKxvtrhbxFyXuEIWJd78= +k8s.io/apimachinery v0.0.0-20210217011835-527a61b4dffe/go.mod h1:Z7ps/g0rjlTeMstYrMOUttJfT2Gg34DEaG/f2PYLCWY= +k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg= +k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= +k8s.io/client-go v0.0.0-20210217172142-7279fc64d847 h1:d+LBRNY3c/KGp7lDblRlUJkayx4Vla7WUTIazoGMdYo= +k8s.io/client-go v0.0.0-20210217172142-7279fc64d847/go.mod h1:q0EaghmVye2uui19vxSZ2NG6ssgUWgjudO6vrwXneSI= +k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= +k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= +k8s.io/klog/v2 v2.5.0 h1:8mOnjf1RmUPW6KRqQCfYSZq/K20Unmp3IhuZUhxl8KI= +k8s.io/klog/v2 v2.5.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= +k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= +k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= +sigs.k8s.io/structured-merge-diff/v4 v4.0.3/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/flyteidl/index.rst b/flyteidl/index.rst new file mode 100644 index 0000000000..f06f0e0e50 --- /dev/null +++ b/flyteidl/index.rst @@ -0,0 +1,37 @@ +.. flyteidl documentation master file, created by + +Flyteidl: Flyte's Core Language Specification +============================================== + +``Flyteidl`` contains the core language specification of Flyte, using `Google's Protocol Buffers `_. +The Specification contains: + +#. The core specification for Flyte workflows, tasks, and the type system +#. The specification for FlyteAdmin's `gRPC `_ and ``REST`` endpoints +#. Some of the core plugin APIs like - Spark, Sagemaker, etc. + +This specification is used to generate client stubs for `Flytekit `_, `Flytekit Java `_, `Flytectl `_ and the `FlyteAdmin Service `_. + + +.. toctree:: + :maxdepth: 1 + :hidden: + + |plane| Getting Started + |book-reader| User Guide + |chalkboard| Tutorials + |project-diagram| Concepts + |rocket| Deployment + |book| API Reference + |hands-helping| Community + +.. NOTE: the caption text is important for the sphinx theme to correctly render the nav header +.. https://github.com/flyteorg/furo +.. toctree:: + :maxdepth: -1 + :caption: FlyteIDL + :hidden: + + Flyteidl + protos/index + Contributing Guide diff --git a/flyteidl/jsonschema/README.md b/flyteidl/jsonschema/README.md new file mode 100644 index 0000000000..0d9ee7b4a4 --- /dev/null +++ b/flyteidl/jsonschema/README.md @@ -0,0 +1,17 @@ +# JSON SCHEMA + +This folder contains the JSON Schema of execution event, and this schema will +be used by [cloudevent publisher](https://github.com/flyteorg/flyteadmin/blob/a0ca4b07d3b1c3cccfe3830307df50bc73152ddb/pkg/async/cloudevent/implementations/cloudevent_publisher.go#L96). + +The URL for the JSON file will be included with the cloudevent message. For example +```json +{ + "specversion" : "1.0", + "type" : "com.flyte.resource.workflow", + "source" : "https://github.com/flyteorg/flyteadmin", + "id" : "D234-1234-1234", + "time" : "2018-04-05T17:31:00Z", + "jsonschemaurl": "https://github.com/flyteorg/flyteidl/blob/master/jsonschema/workflow_execution.json", + "data" : "workflow execution event" +} +``` \ No newline at end of file diff --git a/flyteidl/jsonschema/workflow_execution.json b/flyteidl/jsonschema/workflow_execution.json new file mode 100644 index 0000000000..97b197d14f --- /dev/null +++ b/flyteidl/jsonschema/workflow_execution.json @@ -0,0 +1,90 @@ +{ + "$schema": "http://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin/workflow-execution-event-request", + "properties": { + "RequestId": { + "type": "string" + }, + "Event": { + "type": "object", + "properties": { + "execution_id": { + "$ref": "#/$defs/WorkflowExecutionIdentifier" + }, + "producer_id": { + "type": "string" + }, + "phase": { + "type": "integer" + }, + "occurred_at": { + "$ref": "#/$defs/Timestamp" + }, + "output_result": { + "oneOf": [ + { + "type": "object", + "properties": { + "output_uri": { + "type": "string" + } + } + }, + { + "$ref": "#/$defs/ExecutionError" + } + ] + } + } + } + }, + "$defs": { + "WorkflowExecutionIdentifier": { + "properties": { + "project": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "type": "object" + }, + "Timestamp": { + "properties": { + "seconds": { + "type": "integer" + }, + "nanos": { + "type": "integer" + } + }, + "additionalProperties": false, + "type": "object" + }, + "ExecutionError": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "error_uri": { + "type": "string" + }, + "kind": { + "type": "integer" + } + }, + "additionalProperties": false, + "type": "object" + } + }, + "additionalProperties": false, + "type": "object" +} \ No newline at end of file diff --git a/flyteidl/package.json b/flyteidl/package.json new file mode 100644 index 0000000000..0d4709c001 --- /dev/null +++ b/flyteidl/package.json @@ -0,0 +1,20 @@ +{ + "name": "@flyteorg/flyteidl", + "version": "0.0.0-develop", + "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs", + "repository": { + "type": "git", + "url": "git@github.com:flyteorg/flyteidl" + }, + "author": "Flyte Bot ", + "license": "Apache-2.0", + "keywords": [ + "flyte", + "lyft" + ], + "files": [ + "example", + "protos", + "gen/pb-js" + ] +} diff --git a/flyteidl/protos/buf.lock b/flyteidl/protos/buf.lock new file mode 100644 index 0000000000..783187c995 --- /dev/null +++ b/flyteidl/protos/buf.lock @@ -0,0 +1,11 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: googleapis + repository: googleapis + commit: 62f35d8aed1149c291d606d958a7ce32 + - remote: buf.build + owner: unionai + repository: protoc-gen-swagger + commit: fd9d94dc48154d5c94ccc43695df150f diff --git a/flyteidl/protos/buf.yaml b/flyteidl/protos/buf.yaml new file mode 100644 index 0000000000..adc1f7a898 --- /dev/null +++ b/flyteidl/protos/buf.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/flyteorg/flyteidl +lint: + use: + - DEFAULT +breaking: + use: + - FILE +deps: + - buf.build/googleapis/googleapis:62f35d8aed1149c291d606d958a7ce32 + - buf.build/unionai/protoc-gen-swagger diff --git a/flyteidl/protos/docs/admin/admin.rst b/flyteidl/protos/docs/admin/admin.rst new file mode 100644 index 0000000000..99b5b4096d --- /dev/null +++ b/flyteidl/protos/docs/admin/admin.rst @@ -0,0 +1,4623 @@ +###################### +Protocol Documentation +###################### + + + + +.. _ref_flyteidl/admin/cluster_assignment.proto: + +flyteidl/admin/cluster_assignment.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.ClusterAssignment: + +ClusterAssignment +------------------------------------------------------------------ + +Encapsulates specifications for routing an execution onto a specific cluster. + + + +.. csv-table:: ClusterAssignment type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cluster_pool_name", ":ref:`ref_string`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/common.proto: + +flyteidl/admin/common.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.Annotations: + +Annotations +------------------------------------------------------------------ + +Annotation values to be applied to an execution resource. +In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +to specify how to merge annotations defined at registration and execution time. + + + +.. csv-table:: Annotations type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "values", ":ref:`ref_flyteidl.admin.Annotations.ValuesEntry`", "repeated", "Map of custom annotations to be applied to the execution resource." + + + + + + + +.. _ref_flyteidl.admin.Annotations.ValuesEntry: + +Annotations.ValuesEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: Annotations.ValuesEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.admin.AuthRole: + +AuthRole +------------------------------------------------------------------ + +Defines permissions associated with executions created by this launch plan spec. +Use either of these roles when they have permissions required by your workflow execution. +Deprecated. + + + +.. csv-table:: AuthRole type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "assumable_iam_role", ":ref:`ref_string`", "", "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." + "kubernetes_service_account", ":ref:`ref_string`", "", "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." + + + + + + + +.. _ref_flyteidl.admin.EmailNotification: + +EmailNotification +------------------------------------------------------------------ + +Defines an email notification specification. + + + +.. csv-table:: EmailNotification type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "recipients_email", ":ref:`ref_string`", "repeated", "The list of email addresses recipients for this notification. +required" + + + + + + + +.. _ref_flyteidl.admin.Labels: + +Labels +------------------------------------------------------------------ + +Label values to be applied to an execution resource. +In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +to specify how to merge labels defined at registration and execution time. + + + +.. csv-table:: Labels type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "values", ":ref:`ref_flyteidl.admin.Labels.ValuesEntry`", "repeated", "Map of custom labels to be applied to the execution resource." + + + + + + + +.. _ref_flyteidl.admin.Labels.ValuesEntry: + +Labels.ValuesEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: Labels.ValuesEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.admin.NamedEntity: + +NamedEntity +------------------------------------------------------------------ + +Encapsulates information common to a NamedEntity, a Flyte resource such as a task, +workflow or launch plan. A NamedEntity is exclusively identified by its resource type +and identifier. + + + +.. csv-table:: NamedEntity type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resource_type", ":ref:`ref_flyteidl.core.ResourceType`", "", "Resource type of the named entity. One of Task, Workflow or LaunchPlan." + "id", ":ref:`ref_flyteidl.admin.NamedEntityIdentifier`", "", "" + "metadata", ":ref:`ref_flyteidl.admin.NamedEntityMetadata`", "", "Additional metadata around a named entity." + + + + + + + +.. _ref_flyteidl.admin.NamedEntityGetRequest: + +NamedEntityGetRequest +------------------------------------------------------------------ + +A request to retrieve the metadata associated with a NamedEntityIdentifier + + + +.. csv-table:: NamedEntityGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resource_type", ":ref:`ref_flyteidl.core.ResourceType`", "", "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. +required" + "id", ":ref:`ref_flyteidl.admin.NamedEntityIdentifier`", "", "The identifier for the named entity for which to fetch metadata. +required" + + + + + + + +.. _ref_flyteidl.admin.NamedEntityIdentifier: + +NamedEntityIdentifier +------------------------------------------------------------------ + +Encapsulation of fields that identifies a Flyte resource. +A Flyte resource can be a task, workflow or launch plan. +A resource can internally have multiple versions and is uniquely identified +by project, domain, and name. + + + +.. csv-table:: NamedEntityIdentifier type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Name of the project the resource belongs to." + "domain", ":ref:`ref_string`", "", "Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project." + "name", ":ref:`ref_string`", "", "User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'" + + + + + + + +.. _ref_flyteidl.admin.NamedEntityIdentifierList: + +NamedEntityIdentifierList +------------------------------------------------------------------ + +Represents a list of NamedEntityIdentifiers. + + + +.. csv-table:: NamedEntityIdentifierList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "entities", ":ref:`ref_flyteidl.admin.NamedEntityIdentifier`", "repeated", "A list of identifiers." + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.NamedEntityIdentifierListRequest: + +NamedEntityIdentifierListRequest +------------------------------------------------------------------ + +Represents a request structure to list NamedEntityIdentifiers. + + + +.. csv-table:: NamedEntityIdentifierListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Name of the project that contains the identifiers. +required" + "domain", ":ref:`ref_string`", "", "Name of the domain the identifiers belongs to within the project. +required" + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Specifies how listed entities should be sorted in the response. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. +optional" + + + + + + + +.. _ref_flyteidl.admin.NamedEntityList: + +NamedEntityList +------------------------------------------------------------------ + +Represents a list of NamedEntityIdentifiers. + + + +.. csv-table:: NamedEntityList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "entities", ":ref:`ref_flyteidl.admin.NamedEntity`", "repeated", "A list of NamedEntity objects" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.NamedEntityListRequest: + +NamedEntityListRequest +------------------------------------------------------------------ + +Represents a request structure to list NamedEntity objects + + + +.. csv-table:: NamedEntityListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resource_type", ":ref:`ref_flyteidl.core.ResourceType`", "", "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. +required" + "project", ":ref:`ref_string`", "", "Name of the project that contains the identifiers. +required" + "domain", ":ref:`ref_string`", "", "Name of the domain the identifiers belongs to within the project." + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned." + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Specifies how listed entities should be sorted in the response. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. +optional" + + + + + + + +.. _ref_flyteidl.admin.NamedEntityMetadata: + +NamedEntityMetadata +------------------------------------------------------------------ + +Additional metadata around a named entity. + + + +.. csv-table:: NamedEntityMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "description", ":ref:`ref_string`", "", "Common description across all versions of the entity +optional" + "state", ":ref:`ref_flyteidl.admin.NamedEntityState`", "", "Shared state across all version of the entity At this point in time, only workflow entities can have their state archived." + + + + + + + +.. _ref_flyteidl.admin.NamedEntityUpdateRequest: + +NamedEntityUpdateRequest +------------------------------------------------------------------ + +Request to set the referenced named entity state to the configured value. + + + +.. csv-table:: NamedEntityUpdateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resource_type", ":ref:`ref_flyteidl.core.ResourceType`", "", "Resource type of the metadata to update +required" + "id", ":ref:`ref_flyteidl.admin.NamedEntityIdentifier`", "", "Identifier of the metadata to update +required" + "metadata", ":ref:`ref_flyteidl.admin.NamedEntityMetadata`", "", "Metadata object to set as the new value +required" + + + + + + + +.. _ref_flyteidl.admin.NamedEntityUpdateResponse: + +NamedEntityUpdateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.Notification: + +Notification +------------------------------------------------------------------ + +Represents a structure for notifications based on execution status. +The notification content is configured within flyte admin but can be templatized. +Future iterations could expose configuring notifications with custom content. + + + +.. csv-table:: Notification type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "phases", ":ref:`ref_flyteidl.core.WorkflowExecution.Phase`", "repeated", "A list of phases to which users can associate the notifications to. +required" + "email", ":ref:`ref_flyteidl.admin.EmailNotification`", "", "" + "pager_duty", ":ref:`ref_flyteidl.admin.PagerDutyNotification`", "", "" + "slack", ":ref:`ref_flyteidl.admin.SlackNotification`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ObjectGetRequest: + +ObjectGetRequest +------------------------------------------------------------------ + +Shared request structure to fetch a single resource. +Resources include: Task, Workflow, LaunchPlan + + + +.. csv-table:: ObjectGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "Indicates a unique version of resource. +required" + + + + + + + +.. _ref_flyteidl.admin.PagerDutyNotification: + +PagerDutyNotification +------------------------------------------------------------------ + +Defines a pager duty notification specification. + + + +.. csv-table:: PagerDutyNotification type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "recipients_email", ":ref:`ref_string`", "repeated", "Currently, PagerDuty notifications leverage email to trigger a notification. +required" + + + + + + + +.. _ref_flyteidl.admin.RawOutputDataConfig: + +RawOutputDataConfig +------------------------------------------------------------------ + +Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). +See https://github.com/flyteorg/flyte/issues/211 for more background information. + + + +.. csv-table:: RawOutputDataConfig type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "output_location_prefix", ":ref:`ref_string`", "", "Prefix for where offloaded data from user workflows will be written e.g. s3://bucket/key or s3://bucket/" + + + + + + + +.. _ref_flyteidl.admin.ResourceListRequest: + +ResourceListRequest +------------------------------------------------------------------ + +Shared request structure to retrieve a list of resources. +Resources include: Task, Workflow, LaunchPlan + + + +.. csv-table:: ResourceListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.admin.NamedEntityIdentifier`", "", "id represents the unique identifier of the resource. +required" + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. More info on constructing filters : +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering. +optional" + + + + + + + +.. _ref_flyteidl.admin.SlackNotification: + +SlackNotification +------------------------------------------------------------------ + +Defines a slack notification specification. + + + +.. csv-table:: SlackNotification type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "recipients_email", ":ref:`ref_string`", "repeated", "Currently, Slack notifications leverage email to trigger a notification. +required" + + + + + + + +.. _ref_flyteidl.admin.Sort: + +Sort +------------------------------------------------------------------ + +Specifies sort ordering in a list request. + + + +.. csv-table:: Sort type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "Indicates an attribute to sort the response values. +required" + "direction", ":ref:`ref_flyteidl.admin.Sort.Direction`", "", "Indicates the direction to apply sort key for response values. +optional" + + + + + + + +.. _ref_flyteidl.admin.UrlBlob: + +UrlBlob +------------------------------------------------------------------ + +Represents a string url and associated metadata used throughout the platform. + + + +.. csv-table:: UrlBlob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "url", ":ref:`ref_string`", "", "Actual url value." + "bytes", ":ref:`ref_int64`", "", "Represents the size of the file accessible at the above url." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.admin.NamedEntityState: + +NamedEntityState +------------------------------------------------------------------ + +The status of the named entity is used to control its visibility in the UI. + +.. csv-table:: Enum NamedEntityState values + :header: "Name", "Number", "Description" + :widths: auto + + "NAMED_ENTITY_ACTIVE", "0", "By default, all named entities are considered active and under development." + "NAMED_ENTITY_ARCHIVED", "1", "Archived named entities are no longer visible in the UI." + "SYSTEM_GENERATED", "2", "System generated entities that aren't explicitly created or managed by a user." + + + +.. _ref_flyteidl.admin.Sort.Direction: + +Sort.Direction +------------------------------------------------------------------ + + + +.. csv-table:: Enum Sort.Direction values + :header: "Name", "Number", "Description" + :widths: auto + + "DESCENDING", "0", "By default, fields are sorted in descending order." + "ASCENDING", "1", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/description_entity.proto: + +flyteidl/admin/description_entity.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.Description: + +Description +------------------------------------------------------------------ + +Full user description with formatting preserved. This can be rendered +by clients, such as the console or command line tools with in-tact +formatting. + + + +.. csv-table:: Description type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_string`", "", "long description - no more than 4KB" + "uri", ":ref:`ref_string`", "", "if the description sizes exceed some threshold we can offload the entire description proto altogether to an external data store, like S3 rather than store inline in the db" + "format", ":ref:`ref_flyteidl.admin.DescriptionFormat`", "", "Format of the long description" + "icon_link", ":ref:`ref_string`", "", "Optional link to an icon for the entity" + + + + + + + +.. _ref_flyteidl.admin.DescriptionEntity: + +DescriptionEntity +------------------------------------------------------------------ + +DescriptionEntity contains detailed description for the task/workflow. +Documentation could provide insight into the algorithms, business use case, etc. + + + +.. csv-table:: DescriptionEntity type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the description entity." + "short_description", ":ref:`ref_string`", "", "One-liner overview of the entity." + "long_description", ":ref:`ref_flyteidl.admin.Description`", "", "Full user description with formatting preserved." + "source_code", ":ref:`ref_flyteidl.admin.SourceCode`", "", "Optional link to source code used to define this entity." + "tags", ":ref:`ref_string`", "repeated", "User-specified tags. These are arbitrary and can be used for searching filtering and discovering tasks." + + + + + + + +.. _ref_flyteidl.admin.DescriptionEntityList: + +DescriptionEntityList +------------------------------------------------------------------ + +Represents a list of DescriptionEntities returned from the admin. +See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details + + + +.. csv-table:: DescriptionEntityList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "descriptionEntities", ":ref:`ref_flyteidl.admin.DescriptionEntity`", "repeated", "A list of DescriptionEntities returned based on the request." + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.DescriptionEntityListRequest: + +DescriptionEntityListRequest +------------------------------------------------------------------ + +Represents a request structure to retrieve a list of DescriptionEntities. +See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details + + + +.. csv-table:: DescriptionEntityListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resource_type", ":ref:`ref_flyteidl.core.ResourceType`", "", "Identifies the specific type of resource that this identifier corresponds to." + "id", ":ref:`ref_flyteidl.admin.NamedEntityIdentifier`", "", "The identifier for the description entity. +required" + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. More info on constructing filters : +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering for returned list. +optional" + + + + + + + +.. _ref_flyteidl.admin.SourceCode: + +SourceCode +------------------------------------------------------------------ + +Link to source code used to define this entity + + + +.. csv-table:: SourceCode type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "link", ":ref:`ref_string`", "", "" + + + + + + +.. + end messages + + + +.. _ref_flyteidl.admin.DescriptionFormat: + +DescriptionFormat +------------------------------------------------------------------ + +The format of the long description + +.. csv-table:: Enum DescriptionFormat values + :header: "Name", "Number", "Description" + :widths: auto + + "DESCRIPTION_FORMAT_UNKNOWN", "0", "" + "DESCRIPTION_FORMAT_MARKDOWN", "1", "" + "DESCRIPTION_FORMAT_HTML", "2", "" + "DESCRIPTION_FORMAT_RST", "3", "python default documentation - comments is rst" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/event.proto: + +flyteidl/admin/event.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.EventErrorAlreadyInTerminalState: + +EventErrorAlreadyInTerminalState +------------------------------------------------------------------ + +Indicates that a sent event was not used to update execution state due to +the referenced execution already being terminated (and therefore ineligible +for further state transitions). + + + +.. csv-table:: EventErrorAlreadyInTerminalState type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "current_phase", ":ref:`ref_string`", "", "+required" + + + + + + + +.. _ref_flyteidl.admin.EventErrorIncompatibleCluster: + +EventErrorIncompatibleCluster +------------------------------------------------------------------ + +Indicates an event was rejected because it came from a different cluster than +is on record as running the execution. + + + +.. csv-table:: EventErrorIncompatibleCluster type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cluster", ":ref:`ref_string`", "", "The cluster which has been recorded as processing the execution. +required" + + + + + + + +.. _ref_flyteidl.admin.EventFailureReason: + +EventFailureReason +------------------------------------------------------------------ + +Indicates why a sent event was not used to update execution. + + + +.. csv-table:: EventFailureReason type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "already_in_terminal_state", ":ref:`ref_flyteidl.admin.EventErrorAlreadyInTerminalState`", "", "" + "incompatible_cluster", ":ref:`ref_flyteidl.admin.EventErrorIncompatibleCluster`", "", "" + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionEventRequest: + +NodeExecutionEventRequest +------------------------------------------------------------------ + +Request to send a notification that a node execution event has occurred. + + + +.. csv-table:: NodeExecutionEventRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "request_id", ":ref:`ref_string`", "", "Unique ID for this request that can be traced between services" + "event", ":ref:`ref_flyteidl.event.NodeExecutionEvent`", "", "Details about the event that occurred." + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionEventResponse: + +NodeExecutionEventResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionEventRequest: + +TaskExecutionEventRequest +------------------------------------------------------------------ + +Request to send a notification that a task execution event has occurred. + + + +.. csv-table:: TaskExecutionEventRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "request_id", ":ref:`ref_string`", "", "Unique ID for this request that can be traced between services" + "event", ":ref:`ref_flyteidl.event.TaskExecutionEvent`", "", "Details about the event that occurred." + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionEventResponse: + +TaskExecutionEventResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.WorkflowExecutionEventRequest: + +WorkflowExecutionEventRequest +------------------------------------------------------------------ + +Request to send a notification that a workflow execution event has occurred. + + + +.. csv-table:: WorkflowExecutionEventRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "request_id", ":ref:`ref_string`", "", "Unique ID for this request that can be traced between services" + "event", ":ref:`ref_flyteidl.event.WorkflowExecutionEvent`", "", "Details about the event that occurred." + + + + + + + +.. _ref_flyteidl.admin.WorkflowExecutionEventResponse: + +WorkflowExecutionEventResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/execution.proto: + +flyteidl/admin/execution.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.AbortMetadata: + +AbortMetadata +------------------------------------------------------------------ + +Specifies metadata around an aborted workflow execution. + + + +.. csv-table:: AbortMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cause", ":ref:`ref_string`", "", "In the case of a user-specified abort, this will pass along the user-supplied cause." + "principal", ":ref:`ref_string`", "", "Identifies the entity (if any) responsible for terminating the execution" + + + + + + + +.. _ref_flyteidl.admin.Execution: + +Execution +------------------------------------------------------------------ + +A workflow execution represents an instantiated workflow, including all inputs and additional +metadata as well as computed results included state, outputs, and duration-based attributes. +Used as a response object used in Get and List execution requests. + + + +.. csv-table:: Execution type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Unique identifier of the workflow execution." + "spec", ":ref:`ref_flyteidl.admin.ExecutionSpec`", "", "User-provided configuration and inputs for launching the execution." + "closure", ":ref:`ref_flyteidl.admin.ExecutionClosure`", "", "Execution results." + + + + + + + +.. _ref_flyteidl.admin.ExecutionClosure: + +ExecutionClosure +------------------------------------------------------------------ + +Encapsulates the results of the Execution + + + +.. csv-table:: ExecutionClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "outputs", ":ref:`ref_flyteidl.admin.LiteralMapBlob`", "", "**Deprecated.** Output URI in the case of a successful execution. DEPRECATED. Use GetExecutionData to fetch output data instead." + "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information in the case of a failed execution." + "abort_cause", ":ref:`ref_string`", "", "**Deprecated.** In the case of a user-specified abort, this will pass along the user-supplied cause." + "abort_metadata", ":ref:`ref_flyteidl.admin.AbortMetadata`", "", "In the case of a user-specified abort, this will pass along the user and their supplied cause." + "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "**Deprecated.** Raw output data produced by this execution. DEPRECATED. Use GetExecutionData to fetch output data instead." + "computed_inputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "**Deprecated.** Inputs computed and passed for execution. computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan" + "phase", ":ref:`ref_flyteidl.core.WorkflowExecution.Phase`", "", "Most recent recorded phase for the execution." + "started_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Reported time at which the execution began running." + "duration", ":ref:`ref_google.protobuf.Duration`", "", "The amount of time the execution spent running." + "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Reported time at which the execution was created." + "updated_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Reported time at which the execution was last updated." + "notifications", ":ref:`ref_flyteidl.admin.Notification`", "repeated", "The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan." + "workflow_id", ":ref:`ref_flyteidl.core.Identifier`", "", "Identifies the workflow definition for this execution." + "state_change_details", ":ref:`ref_flyteidl.admin.ExecutionStateChangeDetails`", "", "Provides the details of the last stage change" + + + + + + + +.. _ref_flyteidl.admin.ExecutionCreateRequest: + +ExecutionCreateRequest +------------------------------------------------------------------ + +Request to launch an execution with the given project, domain and optionally-assigned name. + + + +.. csv-table:: ExecutionCreateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Name of the project the execution belongs to. +required" + "domain", ":ref:`ref_string`", "", "Name of the domain the execution belongs to. A domain can be considered as a subset within a specific project. +required" + "name", ":ref:`ref_string`", "", "User provided value for the resource. If none is provided the system will generate a unique string. +optional" + "spec", ":ref:`ref_flyteidl.admin.ExecutionSpec`", "", "Additional fields necessary to launch the execution. +optional" + "inputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "The inputs required to start the execution. All required inputs must be included in this map. If not required and not provided, defaults apply. +optional" + + + + + + + +.. _ref_flyteidl.admin.ExecutionCreateResponse: + +ExecutionCreateResponse +------------------------------------------------------------------ + +The unique identifier for a successfully created execution. +If the name was *not* specified in the create request, this identifier will include a generated name. + + + +.. csv-table:: ExecutionCreateResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ExecutionList: + +ExecutionList +------------------------------------------------------------------ + +Used as a response for request to list executions. +See :ref:`ref_flyteidl.admin.Execution` for more details + + + +.. csv-table:: ExecutionList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "executions", ":ref:`ref_flyteidl.admin.Execution`", "repeated", "" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.ExecutionMetadata: + +ExecutionMetadata +------------------------------------------------------------------ + +Represents attributes about an execution which are not required to launch the execution but are useful to record. +These attributes are assigned at launch time and do not change. + + + +.. csv-table:: ExecutionMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "mode", ":ref:`ref_flyteidl.admin.ExecutionMetadata.ExecutionMode`", "", "" + "principal", ":ref:`ref_string`", "", "Identifier of the entity that triggered this execution. For systems using back-end authentication any value set here will be discarded in favor of the authenticated user context." + "nesting", ":ref:`ref_uint32`", "", "Indicates the nestedness of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1." + "scheduled_at", ":ref:`ref_google.protobuf.Timestamp`", "", "For scheduled executions, the requested time for execution for this specific schedule invocation." + "parent_node_execution", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "Which subworkflow node (if any) launched this execution" + "reference_execution", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution." + "system_metadata", ":ref:`ref_flyteidl.admin.SystemMetadata`", "", "Optional, platform-specific metadata about the execution. In this the future this may be gated behind an ACL or some sort of authorization." + + + + + + + +.. _ref_flyteidl.admin.ExecutionRecoverRequest: + +ExecutionRecoverRequest +------------------------------------------------------------------ + +Request to recover the referenced execution. + + + +.. csv-table:: ExecutionRecoverRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Identifier of the workflow execution to recover." + "name", ":ref:`ref_string`", "", "User provided value for the recovered execution. If none is provided the system will generate a unique string. +optional" + "metadata", ":ref:`ref_flyteidl.admin.ExecutionMetadata`", "", "Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution." + + + + + + + +.. _ref_flyteidl.admin.ExecutionRelaunchRequest: + +ExecutionRelaunchRequest +------------------------------------------------------------------ + +Request to relaunch the referenced execution. + + + +.. csv-table:: ExecutionRelaunchRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Identifier of the workflow execution to relaunch. +required" + "name", ":ref:`ref_string`", "", "User provided value for the relaunched execution. If none is provided the system will generate a unique string. +optional" + "overwrite_cache", ":ref:`ref_bool`", "", "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully." + + + + + + + +.. _ref_flyteidl.admin.ExecutionSpec: + +ExecutionSpec +------------------------------------------------------------------ + +An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +of an execution as it progresses across phase changes. + + + +.. csv-table:: ExecutionSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "launch_plan", ":ref:`ref_flyteidl.core.Identifier`", "", "Launch plan to be executed" + "inputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "**Deprecated.** Input values to be passed for the execution" + "metadata", ":ref:`ref_flyteidl.admin.ExecutionMetadata`", "", "Metadata for the execution" + "notifications", ":ref:`ref_flyteidl.admin.NotificationList`", "", "List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied." + "disable_all", ":ref:`ref_bool`", "", "This should be set to true if all notifications are intended to be disabled for this execution." + "labels", ":ref:`ref_flyteidl.admin.Labels`", "", "Labels to apply to the execution resource." + "annotations", ":ref:`ref_flyteidl.admin.Annotations`", "", "Annotations to apply to the execution resource." + "security_context", ":ref:`ref_flyteidl.core.SecurityContext`", "", "Optional: security context override to apply this execution." + "auth_role", ":ref:`ref_flyteidl.admin.AuthRole`", "", "**Deprecated.** Optional: auth override to apply this execution." + "quality_of_service", ":ref:`ref_flyteidl.core.QualityOfService`", "", "Indicates the runtime priority of the execution." + "max_parallelism", ":ref:`ref_int32`", "", "Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this." + "raw_output_data_config", ":ref:`ref_flyteidl.admin.RawOutputDataConfig`", "", "User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). This should be a prefix like s3://my-bucket/my-data" + "cluster_assignment", ":ref:`ref_flyteidl.admin.ClusterAssignment`", "", "Controls how to select an available cluster on which this execution should run." + "interruptible", ":ref:`ref_google.protobuf.BoolValue`", "", "Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field." + "overwrite_cache", ":ref:`ref_bool`", "", "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully." + + + + + + + +.. _ref_flyteidl.admin.ExecutionStateChangeDetails: + +ExecutionStateChangeDetails +------------------------------------------------------------------ + + + + + +.. csv-table:: ExecutionStateChangeDetails type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "state", ":ref:`ref_flyteidl.admin.ExecutionState`", "", "The state of the execution is used to control its visibility in the UI/CLI." + "occurred_at", ":ref:`ref_google.protobuf.Timestamp`", "", "This timestamp represents when the state changed." + "principal", ":ref:`ref_string`", "", "Identifies the entity (if any) responsible for causing the state change of the execution" + + + + + + + +.. _ref_flyteidl.admin.ExecutionTerminateRequest: + +ExecutionTerminateRequest +------------------------------------------------------------------ + +Request to terminate an in-progress execution. This action is irreversible. +If an execution is already terminated, this request will simply be a no-op. +This request will fail if it references a non-existent execution. +If the request succeeds the phase "ABORTED" will be recorded for the termination +with the optional cause added to the output_result. + + + +.. csv-table:: ExecutionTerminateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Uniquely identifies the individual workflow execution to be terminated." + "cause", ":ref:`ref_string`", "", "Optional reason for aborting." + + + + + + + +.. _ref_flyteidl.admin.ExecutionTerminateResponse: + +ExecutionTerminateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.ExecutionUpdateRequest: + +ExecutionUpdateRequest +------------------------------------------------------------------ + + + + + +.. csv-table:: ExecutionUpdateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Identifier of the execution to update" + "state", ":ref:`ref_flyteidl.admin.ExecutionState`", "", "State to set as the new value active/archive" + + + + + + + +.. _ref_flyteidl.admin.ExecutionUpdateResponse: + +ExecutionUpdateResponse +------------------------------------------------------------------ + + + + + + + + + + +.. _ref_flyteidl.admin.LiteralMapBlob: + +LiteralMapBlob +------------------------------------------------------------------ + +Input/output data can represented by actual values or a link to where values are stored + + + +.. csv-table:: LiteralMapBlob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "values", ":ref:`ref_flyteidl.core.LiteralMap`", "", "**Deprecated.** Data in LiteralMap format" + "uri", ":ref:`ref_string`", "", "In the event that the map is too large, we return a uri to the data" + + + + + + + +.. _ref_flyteidl.admin.NotificationList: + +NotificationList +------------------------------------------------------------------ + + + + + +.. csv-table:: NotificationList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "notifications", ":ref:`ref_flyteidl.admin.Notification`", "repeated", "" + + + + + + + +.. _ref_flyteidl.admin.SystemMetadata: + +SystemMetadata +------------------------------------------------------------------ + +Represents system, rather than user-facing, metadata about an execution. + + + +.. csv-table:: SystemMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "execution_cluster", ":ref:`ref_string`", "", "Which execution cluster this execution ran on." + + + + + + + +.. _ref_flyteidl.admin.WorkflowExecutionGetDataRequest: + +WorkflowExecutionGetDataRequest +------------------------------------------------------------------ + +Request structure to fetch inputs, output and other data produced by an execution. +By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` + + + +.. csv-table:: WorkflowExecutionGetDataRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "The identifier of the execution for which to fetch inputs and outputs." + + + + + + + +.. _ref_flyteidl.admin.WorkflowExecutionGetDataResponse: + +WorkflowExecutionGetDataResponse +------------------------------------------------------------------ + +Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. + + + +.. csv-table:: WorkflowExecutionGetDataResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "outputs", ":ref:`ref_flyteidl.admin.UrlBlob`", "", "**Deprecated.** Signed url to fetch a core.LiteralMap of execution outputs. Deprecated: Please use full_outputs instead." + "inputs", ":ref:`ref_flyteidl.admin.UrlBlob`", "", "**Deprecated.** Signed url to fetch a core.LiteralMap of execution inputs. Deprecated: Please use full_inputs instead." + "full_inputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Full_inputs will only be populated if they are under a configured size threshold." + "full_outputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Full_outputs will only be populated if they are under a configured size threshold." + + + + + + + +.. _ref_flyteidl.admin.WorkflowExecutionGetRequest: + +WorkflowExecutionGetRequest +------------------------------------------------------------------ + +A message used to fetch a single workflow execution entity. +See :ref:`ref_flyteidl.admin.Execution` for more details + + + +.. csv-table:: WorkflowExecutionGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Uniquely identifies an individual workflow execution." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.admin.ExecutionMetadata.ExecutionMode: + +ExecutionMetadata.ExecutionMode +------------------------------------------------------------------ + +The method by which this execution was launched. + +.. csv-table:: Enum ExecutionMetadata.ExecutionMode values + :header: "Name", "Number", "Description" + :widths: auto + + "MANUAL", "0", "The default execution mode, MANUAL implies that an execution was launched by an individual." + "SCHEDULED", "1", "A schedule triggered this execution launch." + "SYSTEM", "2", "A system process was responsible for launching this execution rather an individual." + "RELAUNCH", "3", "This execution was launched with identical inputs as a previous execution." + "CHILD_WORKFLOW", "4", "This execution was triggered by another execution." + "RECOVERED", "5", "This execution was recovered from another execution." + + + +.. _ref_flyteidl.admin.ExecutionState: + +ExecutionState +------------------------------------------------------------------ + +The state of the execution is used to control its visibility in the UI/CLI. + +.. csv-table:: Enum ExecutionState values + :header: "Name", "Number", "Description" + :widths: auto + + "EXECUTION_ACTIVE", "0", "By default, all executions are considered active." + "EXECUTION_ARCHIVED", "1", "Archived executions are no longer visible in the UI." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/launch_plan.proto: + +flyteidl/admin/launch_plan.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.ActiveLaunchPlanListRequest: + +ActiveLaunchPlanListRequest +------------------------------------------------------------------ + +Represents a request structure to list active launch plans within a project/domain. +See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + + + +.. csv-table:: ActiveLaunchPlanListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Name of the project that contains the identifiers. +required." + "domain", ":ref:`ref_string`", "", "Name of the domain the identifiers belongs to within the project. +required." + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required." + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering. +optional" + + + + + + + +.. _ref_flyteidl.admin.ActiveLaunchPlanRequest: + +ActiveLaunchPlanRequest +------------------------------------------------------------------ + +Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier +See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + + + +.. csv-table:: ActiveLaunchPlanRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.admin.NamedEntityIdentifier`", "", "+required." + + + + + + + +.. _ref_flyteidl.admin.Auth: + +Auth +------------------------------------------------------------------ + +Defines permissions associated with executions created by this launch plan spec. +Use either of these roles when they have permissions required by your workflow execution. +Deprecated. + + + +.. csv-table:: Auth type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "assumable_iam_role", ":ref:`ref_string`", "", "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." + "kubernetes_service_account", ":ref:`ref_string`", "", "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." + + + + + + + +.. _ref_flyteidl.admin.LaunchPlan: + +LaunchPlan +------------------------------------------------------------------ + +A LaunchPlan provides the capability to templatize workflow executions. +Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +definition doesn't necessarily have a default value for said input. + + + +.. csv-table:: LaunchPlan type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "Uniquely identifies a launch plan entity." + "spec", ":ref:`ref_flyteidl.admin.LaunchPlanSpec`", "", "User-provided launch plan details, including reference workflow, inputs and other metadata." + "closure", ":ref:`ref_flyteidl.admin.LaunchPlanClosure`", "", "Values computed by the flyte platform after launch plan registration." + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanClosure: + +LaunchPlanClosure +------------------------------------------------------------------ + +Values computed by the flyte platform after launch plan registration. +These include expected_inputs required to be present in a CreateExecutionRequest +to launch the reference workflow as well timestamp values associated with the launch plan. + + + +.. csv-table:: LaunchPlanClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "state", ":ref:`ref_flyteidl.admin.LaunchPlanState`", "", "Indicate the Launch plan state." + "expected_inputs", ":ref:`ref_flyteidl.core.ParameterMap`", "", "Indicates the set of inputs expected when creating an execution with the Launch plan" + "expected_outputs", ":ref:`ref_flyteidl.core.VariableMap`", "", "Indicates the set of outputs expected to be produced by creating an execution with the Launch plan" + "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the launch plan was created." + "updated_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the launch plan was last updated." + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanCreateRequest: + +LaunchPlanCreateRequest +------------------------------------------------------------------ + +Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required +to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. + + + +.. csv-table:: LaunchPlanCreateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "Uniquely identifies a launch plan entity." + "spec", ":ref:`ref_flyteidl.admin.LaunchPlanSpec`", "", "User-provided launch plan details, including reference workflow, inputs and other metadata." + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanCreateResponse: + +LaunchPlanCreateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanList: + +LaunchPlanList +------------------------------------------------------------------ + +Response object for list launch plan requests. +See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + + + +.. csv-table:: LaunchPlanList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "launch_plans", ":ref:`ref_flyteidl.admin.LaunchPlan`", "repeated", "" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanMetadata: + +LaunchPlanMetadata +------------------------------------------------------------------ + +Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +the reference workflow. + + + +.. csv-table:: LaunchPlanMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "schedule", ":ref:`ref_flyteidl.admin.Schedule`", "", "Schedule to execute the Launch Plan" + "notifications", ":ref:`ref_flyteidl.admin.Notification`", "repeated", "List of notifications based on Execution status transitions" + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanSpec: + +LaunchPlanSpec +------------------------------------------------------------------ + +User-provided launch plan definition and configuration values. + + + +.. csv-table:: LaunchPlanSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "workflow_id", ":ref:`ref_flyteidl.core.Identifier`", "", "Reference to the Workflow template that the launch plan references" + "entity_metadata", ":ref:`ref_flyteidl.admin.LaunchPlanMetadata`", "", "Metadata for the Launch Plan" + "default_inputs", ":ref:`ref_flyteidl.core.ParameterMap`", "", "Input values to be passed for the execution. These can be overriden when an execution is created with this launch plan." + "fixed_inputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Fixed, non-overridable inputs for the Launch Plan. These can not be overriden when an execution is created with this launch plan." + "role", ":ref:`ref_string`", "", "**Deprecated.** String to indicate the role to use to execute the workflow underneath" + "labels", ":ref:`ref_flyteidl.admin.Labels`", "", "Custom labels to be applied to the execution resource." + "annotations", ":ref:`ref_flyteidl.admin.Annotations`", "", "Custom annotations to be applied to the execution resource." + "auth", ":ref:`ref_flyteidl.admin.Auth`", "", "**Deprecated.** Indicates the permission associated with workflow executions triggered with this launch plan." + "auth_role", ":ref:`ref_flyteidl.admin.AuthRole`", "", "**Deprecated.** " + "security_context", ":ref:`ref_flyteidl.core.SecurityContext`", "", "Indicates security context for permissions triggered with this launch plan" + "quality_of_service", ":ref:`ref_flyteidl.core.QualityOfService`", "", "Indicates the runtime priority of the execution." + "raw_output_data_config", ":ref:`ref_flyteidl.admin.RawOutputDataConfig`", "", "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." + "max_parallelism", ":ref:`ref_int32`", "", "Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this." + "interruptible", ":ref:`ref_google.protobuf.BoolValue`", "", "Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field." + "overwrite_cache", ":ref:`ref_bool`", "", "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully." + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanUpdateRequest: + +LaunchPlanUpdateRequest +------------------------------------------------------------------ + +Request to set the referenced launch plan state to the configured value. +See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + + + +.. csv-table:: LaunchPlanUpdateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "Identifier of launch plan for which to change state. +required." + "state", ":ref:`ref_flyteidl.admin.LaunchPlanState`", "", "Desired state to apply to the launch plan. +required." + + + + + + + +.. _ref_flyteidl.admin.LaunchPlanUpdateResponse: + +LaunchPlanUpdateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + +.. + end messages + + + +.. _ref_flyteidl.admin.LaunchPlanState: + +LaunchPlanState +------------------------------------------------------------------ + +By default any launch plan regardless of state can be used to launch a workflow execution. +However, at most one version of a launch plan +(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +group will be observed and trigger executions at a defined cadence. + +.. csv-table:: Enum LaunchPlanState values + :header: "Name", "Number", "Description" + :widths: auto + + "INACTIVE", "0", "" + "ACTIVE", "1", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/matchable_resource.proto: + +flyteidl/admin/matchable_resource.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.ClusterResourceAttributes: + +ClusterResourceAttributes +------------------------------------------------------------------ + + + + + +.. csv-table:: ClusterResourceAttributes type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.ClusterResourceAttributes.AttributesEntry`", "repeated", "Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). Map keys are the *case-sensitive* names of variables in templatized resource files. Map values should be the custom values which get substituted during resource creation." + + + + + + + +.. _ref_flyteidl.admin.ClusterResourceAttributes.AttributesEntry: + +ClusterResourceAttributes.AttributesEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: ClusterResourceAttributes.AttributesEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ExecutionClusterLabel: + +ExecutionClusterLabel +------------------------------------------------------------------ + + + + + +.. csv-table:: ExecutionClusterLabel type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_string`", "", "Label value to determine where the execution will be run" + + + + + + + +.. _ref_flyteidl.admin.ExecutionQueueAttributes: + +ExecutionQueueAttributes +------------------------------------------------------------------ + + + + + +.. csv-table:: ExecutionQueueAttributes type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "tags", ":ref:`ref_string`", "repeated", "Tags used for assigning execution queues for tasks defined within this project." + + + + + + + +.. _ref_flyteidl.admin.ListMatchableAttributesRequest: + +ListMatchableAttributesRequest +------------------------------------------------------------------ + +Request all matching resource attributes for a resource type. +See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details + + + +.. csv-table:: ListMatchableAttributesRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resource_type", ":ref:`ref_flyteidl.admin.MatchableResource`", "", "+required" + + + + + + + +.. _ref_flyteidl.admin.ListMatchableAttributesResponse: + +ListMatchableAttributesResponse +------------------------------------------------------------------ + +Response for a request for all matching resource attributes for a resource type. +See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details + + + +.. csv-table:: ListMatchableAttributesResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "configurations", ":ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`", "repeated", "" + + + + + + + +.. _ref_flyteidl.admin.MatchableAttributesConfiguration: + +MatchableAttributesConfiguration +------------------------------------------------------------------ + +Represents a custom set of attributes applied for either a domain; a domain and project; or +domain, project and workflow name. +These are used to override system level defaults for kubernetes cluster resource management, +default execution values, and more all across different levels of specificity. + + + +.. csv-table:: MatchableAttributesConfiguration type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.MatchingAttributes`", "", "" + "domain", ":ref:`ref_string`", "", "" + "project", ":ref:`ref_string`", "", "" + "workflow", ":ref:`ref_string`", "", "" + "launch_plan", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.admin.MatchingAttributes: + +MatchingAttributes +------------------------------------------------------------------ + +Generic container for encapsulating all types of the above attributes messages. + + + +.. csv-table:: MatchingAttributes type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "task_resource_attributes", ":ref:`ref_flyteidl.admin.TaskResourceAttributes`", "", "" + "cluster_resource_attributes", ":ref:`ref_flyteidl.admin.ClusterResourceAttributes`", "", "" + "execution_queue_attributes", ":ref:`ref_flyteidl.admin.ExecutionQueueAttributes`", "", "" + "execution_cluster_label", ":ref:`ref_flyteidl.admin.ExecutionClusterLabel`", "", "" + "quality_of_service", ":ref:`ref_flyteidl.core.QualityOfService`", "", "" + "plugin_overrides", ":ref:`ref_flyteidl.admin.PluginOverrides`", "", "" + "workflow_execution_config", ":ref:`ref_flyteidl.admin.WorkflowExecutionConfig`", "", "" + "cluster_assignment", ":ref:`ref_flyteidl.admin.ClusterAssignment`", "", "" + + + + + + + +.. _ref_flyteidl.admin.PluginOverride: + +PluginOverride +------------------------------------------------------------------ + +This MatchableAttribute configures selecting alternate plugin implementations for a given task type. +In addition to an override implementation a selection of fallbacks can be provided or other modes +for handling cases where the desired plugin override is not enabled in a given Flyte deployment. + + + +.. csv-table:: PluginOverride type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "task_type", ":ref:`ref_string`", "", "A predefined yet extensible Task type identifier." + "plugin_id", ":ref:`ref_string`", "repeated", "A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id." + "missing_plugin_behavior", ":ref:`ref_flyteidl.admin.PluginOverride.MissingPluginBehavior`", "", "Defines the behavior when no plugin from the plugin_id list is not found." + + + + + + + +.. _ref_flyteidl.admin.PluginOverrides: + +PluginOverrides +------------------------------------------------------------------ + + + + + +.. csv-table:: PluginOverrides type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "overrides", ":ref:`ref_flyteidl.admin.PluginOverride`", "repeated", "" + + + + + + + +.. _ref_flyteidl.admin.TaskResourceAttributes: + +TaskResourceAttributes +------------------------------------------------------------------ + +Defines task resource defaults and limits that will be applied at task registration. + + + +.. csv-table:: TaskResourceAttributes type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "defaults", ":ref:`ref_flyteidl.admin.TaskResourceSpec`", "", "" + "limits", ":ref:`ref_flyteidl.admin.TaskResourceSpec`", "", "" + + + + + + + +.. _ref_flyteidl.admin.TaskResourceSpec: + +TaskResourceSpec +------------------------------------------------------------------ + +Defines a set of overridable task resource attributes set during task registration. + + + +.. csv-table:: TaskResourceSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cpu", ":ref:`ref_string`", "", "" + "gpu", ":ref:`ref_string`", "", "" + "memory", ":ref:`ref_string`", "", "" + "storage", ":ref:`ref_string`", "", "" + "ephemeral_storage", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.admin.WorkflowExecutionConfig: + +WorkflowExecutionConfig +------------------------------------------------------------------ + +Adds defaults for customizable workflow-execution specifications and overrides. + + + +.. csv-table:: WorkflowExecutionConfig type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "max_parallelism", ":ref:`ref_int32`", "", "Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness." + "security_context", ":ref:`ref_flyteidl.core.SecurityContext`", "", "Indicates security context permissions for executions triggered with this matchable attribute." + "raw_output_data_config", ":ref:`ref_flyteidl.admin.RawOutputDataConfig`", "", "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." + "labels", ":ref:`ref_flyteidl.admin.Labels`", "", "Custom labels to be applied to a triggered execution resource." + "annotations", ":ref:`ref_flyteidl.admin.Annotations`", "", "Custom annotations to be applied to a triggered execution resource." + "interruptible", ":ref:`ref_google.protobuf.BoolValue`", "", "Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field." + "overwrite_cache", ":ref:`ref_bool`", "", "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.admin.MatchableResource: + +MatchableResource +------------------------------------------------------------------ + +Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes +based on matching tags. + +.. csv-table:: Enum MatchableResource values + :header: "Name", "Number", "Description" + :widths: auto + + "TASK_RESOURCE", "0", "Applies to customizable task resource requests and limits." + "CLUSTER_RESOURCE", "1", "Applies to configuring templated kubernetes cluster resources." + "EXECUTION_QUEUE", "2", "Configures task and dynamic task execution queue assignment." + "EXECUTION_CLUSTER_LABEL", "3", "Configures the K8s cluster label to be used for execution to be run" + "QUALITY_OF_SERVICE_SPECIFICATION", "4", "Configures default quality of service when undefined in an execution spec." + "PLUGIN_OVERRIDE", "5", "Selects configurable plugin implementation behavior for a given task type." + "WORKFLOW_EXECUTION_CONFIG", "6", "Adds defaults for customizable workflow-execution specifications and overrides." + "CLUSTER_ASSIGNMENT", "7", "Controls how to select an available cluster on which this execution should run." + + + +.. _ref_flyteidl.admin.PluginOverride.MissingPluginBehavior: + +PluginOverride.MissingPluginBehavior +------------------------------------------------------------------ + + + +.. csv-table:: Enum PluginOverride.MissingPluginBehavior values + :header: "Name", "Number", "Description" + :widths: auto + + "FAIL", "0", "By default, if this plugin is not enabled for a Flyte deployment then execution will fail." + "USE_DEFAULT", "1", "Uses the system-configured default implementation." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/node_execution.proto: + +flyteidl/admin/node_execution.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.DynamicWorkflowNodeMetadata: + +DynamicWorkflowNodeMetadata +------------------------------------------------------------------ + +For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. + + + +.. csv-table:: DynamicWorkflowNodeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the workflow." + "compiled_workflow", ":ref:`ref_flyteidl.core.CompiledWorkflowClosure`", "", "Represents the compiled representation of the embedded dynamic workflow." + + + + + + + +.. _ref_flyteidl.admin.NodeExecution: + +NodeExecution +------------------------------------------------------------------ + +Encapsulates all details for a single node execution entity. +A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +sub-workflow, or even a separate child-workflow execution. +The same task can be called repeatedly in a single workflow but each node is unique. + + + +.. csv-table:: NodeExecution type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "Uniquely identifies an individual node execution." + "input_uri", ":ref:`ref_string`", "", "Path to remote data store where input blob is stored." + "closure", ":ref:`ref_flyteidl.admin.NodeExecutionClosure`", "", "Computed results associated with this node execution." + "metadata", ":ref:`ref_flyteidl.admin.NodeExecutionMetaData`", "", "Metadata for Node Execution" + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionClosure: + +NodeExecutionClosure +------------------------------------------------------------------ + +Container for node execution details and results. + + + +.. csv-table:: NodeExecutionClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "output_uri", ":ref:`ref_string`", "", "**Deprecated.** Links to a remotely stored, serialized core.LiteralMap of node execution outputs. DEPRECATED. Use GetNodeExecutionData to fetch output data instead." + "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the Node" + "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "**Deprecated.** Raw output data produced by this node execution. DEPRECATED. Use GetNodeExecutionData to fetch output data instead." + "phase", ":ref:`ref_flyteidl.core.NodeExecution.Phase`", "", "The last recorded phase for this node execution." + "started_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the node execution began running." + "duration", ":ref:`ref_google.protobuf.Duration`", "", "The amount of time the node execution spent running." + "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the node execution was created." + "updated_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the node execution was last updated." + "workflow_node_metadata", ":ref:`ref_flyteidl.admin.WorkflowNodeMetadata`", "", "" + "task_node_metadata", ":ref:`ref_flyteidl.admin.TaskNodeMetadata`", "", "" + "deck_uri", ":ref:`ref_string`", "", "String location uniquely identifying where the deck HTML file is. NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionForTaskListRequest: + +NodeExecutionForTaskListRequest +------------------------------------------------------------------ + +Represents a request structure to retrieve a list of node execution entities launched by a specific task. +This can arise when a task yields a subworkflow. + + + +.. csv-table:: NodeExecutionForTaskListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "task_execution_id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "Indicates the node execution to filter by. +required" + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. More info on constructing filters : +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering. +optional" + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionGetDataRequest: + +NodeExecutionGetDataRequest +------------------------------------------------------------------ + +Request structure to fetch inputs and output for a node execution. +By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` + + + +.. csv-table:: NodeExecutionGetDataRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "The identifier of the node execution for which to fetch inputs and outputs." + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionGetDataResponse: + +NodeExecutionGetDataResponse +------------------------------------------------------------------ + +Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. + + + +.. csv-table:: NodeExecutionGetDataResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "inputs", ":ref:`ref_flyteidl.admin.UrlBlob`", "", "**Deprecated.** Signed url to fetch a core.LiteralMap of node execution inputs. Deprecated: Please use full_inputs instead." + "outputs", ":ref:`ref_flyteidl.admin.UrlBlob`", "", "**Deprecated.** Signed url to fetch a core.LiteralMap of node execution outputs. Deprecated: Please use full_outputs instead." + "full_inputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Full_inputs will only be populated if they are under a configured size threshold." + "full_outputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Full_outputs will only be populated if they are under a configured size threshold." + "dynamic_workflow", ":ref:`ref_flyteidl.admin.DynamicWorkflowNodeMetadata`", "", "Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here." + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionGetRequest: + +NodeExecutionGetRequest +------------------------------------------------------------------ + +A message used to fetch a single node execution entity. +See :ref:`ref_flyteidl.admin.NodeExecution` for more details + + + +.. csv-table:: NodeExecutionGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "Uniquely identifies an individual node execution. +required" + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionList: + +NodeExecutionList +------------------------------------------------------------------ + +Request structure to retrieve a list of node execution entities. +See :ref:`ref_flyteidl.admin.NodeExecution` for more details + + + +.. csv-table:: NodeExecutionList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "node_executions", ":ref:`ref_flyteidl.admin.NodeExecution`", "repeated", "" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionListRequest: + +NodeExecutionListRequest +------------------------------------------------------------------ + +Represents a request structure to retrieve a list of node execution entities. +See :ref:`ref_flyteidl.admin.NodeExecution` for more details + + + +.. csv-table:: NodeExecutionListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "workflow_execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Indicates the workflow execution to filter by. +required" + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required" + "token", ":ref:`ref_string`", "", "" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. More info on constructing filters : +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering. +optional" + "unique_parent_id", ":ref:`ref_string`", "", "Unique identifier of the parent node in the execution +optional" + + + + + + + +.. _ref_flyteidl.admin.NodeExecutionMetaData: + +NodeExecutionMetaData +------------------------------------------------------------------ + +Represents additional attributes related to a Node Execution + + + +.. csv-table:: NodeExecutionMetaData type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "retry_group", ":ref:`ref_string`", "", "Node executions are grouped depending on retries of the parent Retry group is unique within the context of a parent node." + "is_parent_node", ":ref:`ref_bool`", "", "Boolean flag indicating if the node has child nodes under it This can be true when a node contains a dynamic workflow which then produces child nodes." + "spec_node_id", ":ref:`ref_string`", "", "Node id of the node in the original workflow This maps to value of WorkflowTemplate.nodes[X].id" + "is_dynamic", ":ref:`ref_bool`", "", "Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true." + + + + + + + +.. _ref_flyteidl.admin.TaskNodeMetadata: + +TaskNodeMetadata +------------------------------------------------------------------ + +Metadata for the case in which the node is a TaskNode + + + +.. csv-table:: TaskNodeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cache_status", ":ref:`ref_flyteidl.core.CatalogCacheStatus`", "", "Captures the status of caching for this execution." + "catalog_key", ":ref:`ref_flyteidl.core.CatalogMetadata`", "", "This structure carries the catalog artifact information" + "checkpoint_uri", ":ref:`ref_string`", "", "The latest checkpoint location" + + + + + + + +.. _ref_flyteidl.admin.WorkflowNodeMetadata: + +WorkflowNodeMetadata +------------------------------------------------------------------ + +Metadata for a WorkflowNode + + + +.. csv-table:: WorkflowNodeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "executionId", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "The identifier for a workflow execution launched by a node." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/notification.proto: + +flyteidl/admin/notification.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.EmailMessage: + +EmailMessage +------------------------------------------------------------------ + +Represents the Email object that is sent to a publisher/subscriber +to forward the notification. +Note: This is internal to Admin and doesn't need to be exposed to other components. + + + +.. csv-table:: EmailMessage type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "recipients_email", ":ref:`ref_string`", "repeated", "The list of email addresses to receive an email with the content populated in the other fields. Currently, each email recipient will receive its own email. This populates the TO field." + "sender_email", ":ref:`ref_string`", "", "The email of the sender. This populates the FROM field." + "subject_line", ":ref:`ref_string`", "", "The content of the subject line. This populates the SUBJECT field." + "body", ":ref:`ref_string`", "", "The content of the email body. This populates the BODY field." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/project.proto: + +flyteidl/admin/project.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.Domain: + +Domain +------------------------------------------------------------------ + +Namespace within a project commonly used to differentiate between different service instances. +e.g. "production", "development", etc. + + + +.. csv-table:: Domain type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_string`", "", "Globally unique domain name." + "name", ":ref:`ref_string`", "", "Display name." + + + + + + + +.. _ref_flyteidl.admin.Project: + +Project +------------------------------------------------------------------ + +Top-level namespace used to classify different entities like workflows and executions. + + + +.. csv-table:: Project type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_string`", "", "Globally unique project name." + "name", ":ref:`ref_string`", "", "Display name." + "domains", ":ref:`ref_flyteidl.admin.Domain`", "repeated", "" + "description", ":ref:`ref_string`", "", "" + "labels", ":ref:`ref_flyteidl.admin.Labels`", "", "Leverage Labels from flyteidl.admin.common.proto to tag projects with ownership information." + "state", ":ref:`ref_flyteidl.admin.Project.ProjectState`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ProjectListRequest: + +ProjectListRequest +------------------------------------------------------------------ + +Request to retrieve a list of projects matching specified filters. +See :ref:`ref_flyteidl.admin.Project` for more details + + + +.. csv-table:: ProjectListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "limit", ":ref:`ref_uint32`", "", "Indicates the number of projects to be returned. +required" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. More info on constructing filters : +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering. +optional" + + + + + + + +.. _ref_flyteidl.admin.ProjectRegisterRequest: + +ProjectRegisterRequest +------------------------------------------------------------------ + +Adds a new user-project within the Flyte deployment. +See :ref:`ref_flyteidl.admin.Project` for more details + + + +.. csv-table:: ProjectRegisterRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_flyteidl.admin.Project`", "", "+required" + + + + + + + +.. _ref_flyteidl.admin.ProjectRegisterResponse: + +ProjectRegisterResponse +------------------------------------------------------------------ + +Purposefully empty, may be updated in the future. + + + + + + + + +.. _ref_flyteidl.admin.ProjectUpdateResponse: + +ProjectUpdateResponse +------------------------------------------------------------------ + +Purposefully empty, may be updated in the future. + + + + + + + + +.. _ref_flyteidl.admin.Projects: + +Projects +------------------------------------------------------------------ + +Represents a list of projects. +See :ref:`ref_flyteidl.admin.Project` for more details + + + +.. csv-table:: Projects type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "projects", ":ref:`ref_flyteidl.admin.Project`", "repeated", "" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.admin.Project.ProjectState: + +Project.ProjectState +------------------------------------------------------------------ + +The state of the project is used to control its visibility in the UI and validity. + +.. csv-table:: Enum Project.ProjectState values + :header: "Name", "Number", "Description" + :widths: auto + + "ACTIVE", "0", "By default, all projects are considered active." + "ARCHIVED", "1", "Archived projects are no longer visible in the UI and no longer valid." + "SYSTEM_GENERATED", "2", "System generated projects that aren't explicitly created or managed by a user." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/project_attributes.proto: + +flyteidl/admin/project_attributes.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.ProjectAttributes: + +ProjectAttributes +------------------------------------------------------------------ + +Defines a set of custom matching attributes at the project level. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectAttributes type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id for which this set of attributes will be applied." + "matching_attributes", ":ref:`ref_flyteidl.admin.MatchingAttributes`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ProjectAttributesDeleteRequest: + +ProjectAttributesDeleteRequest +------------------------------------------------------------------ + +Request to delete a set matchable project level attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectAttributesDeleteRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id which this set of attributes references. +required" + "resource_type", ":ref:`ref_flyteidl.admin.MatchableResource`", "", "Which type of matchable attributes to delete. +required" + + + + + + + +.. _ref_flyteidl.admin.ProjectAttributesDeleteResponse: + +ProjectAttributesDeleteResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.ProjectAttributesGetRequest: + +ProjectAttributesGetRequest +------------------------------------------------------------------ + +Request to get an individual project level attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectAttributesGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id which this set of attributes references. +required" + "resource_type", ":ref:`ref_flyteidl.admin.MatchableResource`", "", "Which type of matchable attributes to return. +required" + + + + + + + +.. _ref_flyteidl.admin.ProjectAttributesGetResponse: + +ProjectAttributesGetResponse +------------------------------------------------------------------ + +Response to get an individual project level attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectAttributesGetResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.ProjectAttributes`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ProjectAttributesUpdateRequest: + +ProjectAttributesUpdateRequest +------------------------------------------------------------------ + +Sets custom attributes for a project +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectAttributesUpdateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.ProjectAttributes`", "", "+required" + + + + + + + +.. _ref_flyteidl.admin.ProjectAttributesUpdateResponse: + +ProjectAttributesUpdateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/project_domain_attributes.proto: + +flyteidl/admin/project_domain_attributes.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.ProjectDomainAttributes: + +ProjectDomainAttributes +------------------------------------------------------------------ + +Defines a set of custom matching attributes which defines resource defaults for a project and domain. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectDomainAttributes type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id for which this set of attributes will be applied." + "domain", ":ref:`ref_string`", "", "Unique domain id for which this set of attributes will be applied." + "matching_attributes", ":ref:`ref_flyteidl.admin.MatchingAttributes`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ProjectDomainAttributesDeleteRequest: + +ProjectDomainAttributesDeleteRequest +------------------------------------------------------------------ + +Request to delete a set matchable project domain attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectDomainAttributesDeleteRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id which this set of attributes references. +required" + "domain", ":ref:`ref_string`", "", "Unique domain id which this set of attributes references. +required" + "resource_type", ":ref:`ref_flyteidl.admin.MatchableResource`", "", "Which type of matchable attributes to delete. +required" + + + + + + + +.. _ref_flyteidl.admin.ProjectDomainAttributesDeleteResponse: + +ProjectDomainAttributesDeleteResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.ProjectDomainAttributesGetRequest: + +ProjectDomainAttributesGetRequest +------------------------------------------------------------------ + +Request to get an individual project domain attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectDomainAttributesGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id which this set of attributes references. +required" + "domain", ":ref:`ref_string`", "", "Unique domain id which this set of attributes references. +required" + "resource_type", ":ref:`ref_flyteidl.admin.MatchableResource`", "", "Which type of matchable attributes to return. +required" + + + + + + + +.. _ref_flyteidl.admin.ProjectDomainAttributesGetResponse: + +ProjectDomainAttributesGetResponse +------------------------------------------------------------------ + +Response to get an individual project domain attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectDomainAttributesGetResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.ProjectDomainAttributes`", "", "" + + + + + + + +.. _ref_flyteidl.admin.ProjectDomainAttributesUpdateRequest: + +ProjectDomainAttributesUpdateRequest +------------------------------------------------------------------ + +Sets custom attributes for a project-domain combination. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: ProjectDomainAttributesUpdateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.ProjectDomainAttributes`", "", "+required" + + + + + + + +.. _ref_flyteidl.admin.ProjectDomainAttributesUpdateResponse: + +ProjectDomainAttributesUpdateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/schedule.proto: + +flyteidl/admin/schedule.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.CronSchedule: + +CronSchedule +------------------------------------------------------------------ + +Options for schedules to run according to a cron expression. + + + +.. csv-table:: CronSchedule type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "schedule", ":ref:`ref_string`", "", "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; Also supports nonstandard predefined scheduling definitions as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions except @reboot" + "offset", ":ref:`ref_string`", "", "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" + + + + + + + +.. _ref_flyteidl.admin.FixedRate: + +FixedRate +------------------------------------------------------------------ + +Option for schedules run at a certain frequency e.g. every 2 minutes. + + + +.. csv-table:: FixedRate type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_uint32`", "", "" + "unit", ":ref:`ref_flyteidl.admin.FixedRateUnit`", "", "" + + + + + + + +.. _ref_flyteidl.admin.Schedule: + +Schedule +------------------------------------------------------------------ + +Defines complete set of information required to trigger an execution on a schedule. + + + +.. csv-table:: Schedule type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cron_expression", ":ref:`ref_string`", "", "**Deprecated.** Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" + "rate", ":ref:`ref_flyteidl.admin.FixedRate`", "", "" + "cron_schedule", ":ref:`ref_flyteidl.admin.CronSchedule`", "", "" + "kickoff_time_input_arg", ":ref:`ref_string`", "", "Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.admin.FixedRateUnit: + +FixedRateUnit +------------------------------------------------------------------ + +Represents a frequency at which to run a schedule. + +.. csv-table:: Enum FixedRateUnit values + :header: "Name", "Number", "Description" + :widths: auto + + "MINUTE", "0", "" + "HOUR", "1", "" + "DAY", "2", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/signal.proto: + +flyteidl/admin/signal.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.Signal: + +Signal +------------------------------------------------------------------ + +Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte +signal. Signals may exist either without a set value (representing a signal request) or with a +populated value (indicating the signal has been given). + + + +.. csv-table:: Signal type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.SignalIdentifier`", "", "A unique identifier for the requested signal." + "type", ":ref:`ref_flyteidl.core.LiteralType`", "", "A type denoting the required value type for this signal." + "value", ":ref:`ref_flyteidl.core.Literal`", "", "The value of the signal. This is only available if the signal has been "set" and must match the defined the type." + + + + + + + +.. _ref_flyteidl.admin.SignalGetOrCreateRequest: + +SignalGetOrCreateRequest +------------------------------------------------------------------ + +SignalGetOrCreateRequest represents a request structure to retrive or create a signal. +See :ref:`ref_flyteidl.admin.Signal` for more details + + + +.. csv-table:: SignalGetOrCreateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.SignalIdentifier`", "", "A unique identifier for the requested signal." + "type", ":ref:`ref_flyteidl.core.LiteralType`", "", "A type denoting the required value type for this signal." + + + + + + + +.. _ref_flyteidl.admin.SignalList: + +SignalList +------------------------------------------------------------------ + +SignalList represents collection of signals along with the token of the last result. +See :ref:`ref_flyteidl.admin.Signal` for more details + + + +.. csv-table:: SignalList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "signals", ":ref:`ref_flyteidl.admin.Signal`", "repeated", "A list of signals matching the input filters." + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.SignalListRequest: + +SignalListRequest +------------------------------------------------------------------ + +SignalListRequest represents a request structure to retrieve a collection of signals. +See :ref:`ref_flyteidl.admin.Signal` for more details + + + +.. csv-table:: SignalListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "workflow_execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Indicates the workflow execution to filter by. +required" + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering. +optional" + + + + + + + +.. _ref_flyteidl.admin.SignalSetRequest: + +SignalSetRequest +------------------------------------------------------------------ + +SignalSetRequest represents a request structure to set the value on a signal. Setting a signal +effetively satisfies the signal condition within a Flyte workflow. +See :ref:`ref_flyteidl.admin.Signal` for more details + + + +.. csv-table:: SignalSetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.SignalIdentifier`", "", "A unique identifier for the requested signal." + "value", ":ref:`ref_flyteidl.core.Literal`", "", "The value of this signal, must match the defining signal type." + + + + + + + +.. _ref_flyteidl.admin.SignalSetResponse: + +SignalSetResponse +------------------------------------------------------------------ + +SignalSetResponse represents a response structure if signal setting succeeds. + +Purposefully empty, may be populated in the future. + + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/task.proto: + +flyteidl/admin/task.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.Task: + +Task +------------------------------------------------------------------ + +Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +arranged to process workflow inputs and produce a deterministic set of outputs. +Tasks can come in many varieties tuned for specialized behavior. + + + +.. csv-table:: Task type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the task." + "closure", ":ref:`ref_flyteidl.admin.TaskClosure`", "", "closure encapsulates all the fields that maps to a compiled version of the task." + "short_description", ":ref:`ref_string`", "", "One-liner overview of the entity." + + + + + + + +.. _ref_flyteidl.admin.TaskClosure: + +TaskClosure +------------------------------------------------------------------ + +Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +and task metadata. + + + +.. csv-table:: TaskClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "compiled_task", ":ref:`ref_flyteidl.core.CompiledTask`", "", "Represents the compiled representation of the task from the specification provided." + "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the task was created." + + + + + + + +.. _ref_flyteidl.admin.TaskCreateRequest: + +TaskCreateRequest +------------------------------------------------------------------ + +Represents a request structure to create a revision of a task. +See :ref:`ref_flyteidl.admin.Task` for more details + + + +.. csv-table:: TaskCreateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the task. +required" + "spec", ":ref:`ref_flyteidl.admin.TaskSpec`", "", "Represents the specification for task. +required" + + + + + + + +.. _ref_flyteidl.admin.TaskCreateResponse: + +TaskCreateResponse +------------------------------------------------------------------ + +Represents a response structure if task creation succeeds. + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.TaskList: + +TaskList +------------------------------------------------------------------ + +Represents a list of tasks returned from the admin. +See :ref:`ref_flyteidl.admin.Task` for more details + + + +.. csv-table:: TaskList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "tasks", ":ref:`ref_flyteidl.admin.Task`", "repeated", "A list of tasks returned based on the request." + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.TaskSpec: + +TaskSpec +------------------------------------------------------------------ + +Represents a structure that encapsulates the user-configured specification of the task. + + + +.. csv-table:: TaskSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "template", ":ref:`ref_flyteidl.core.TaskTemplate`", "", "Template of the task that encapsulates all the metadata of the task." + "description", ":ref:`ref_flyteidl.admin.DescriptionEntity`", "", "Represents the specification for description entity." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/task_execution.proto: + +flyteidl/admin/task_execution.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.TaskExecution: + +TaskExecution +------------------------------------------------------------------ + +Encapsulates all details for a single task execution entity. +A task execution represents an instantiated task, including all inputs and additional +metadata as well as computed results included state, outputs, and duration-based attributes. + + + +.. csv-table:: TaskExecution type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "Unique identifier for the task execution." + "input_uri", ":ref:`ref_string`", "", "Path to remote data store where input blob is stored." + "closure", ":ref:`ref_flyteidl.admin.TaskExecutionClosure`", "", "Task execution details and results." + "is_parent", ":ref:`ref_bool`", "", "Whether this task spawned nodes." + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionClosure: + +TaskExecutionClosure +------------------------------------------------------------------ + +Container for task execution details and results. + + + +.. csv-table:: TaskExecutionClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "output_uri", ":ref:`ref_string`", "", "**Deprecated.** Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). DEPRECATED. Use GetTaskExecutionData to fetch output data instead." + "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the task execution. Populated if the execution failed." + "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "**Deprecated.** Raw output data produced by this task execution. DEPRECATED. Use GetTaskExecutionData to fetch output data instead." + "phase", ":ref:`ref_flyteidl.core.TaskExecution.Phase`", "", "The last recorded phase for this task execution." + "logs", ":ref:`ref_flyteidl.core.TaskLog`", "repeated", "Detailed log information output by the task execution." + "started_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the task execution began running." + "duration", ":ref:`ref_google.protobuf.Duration`", "", "The amount of time the task execution spent running." + "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the task execution was created." + "updated_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the task execution was last updated." + "custom_info", ":ref:`ref_google.protobuf.Struct`", "", "Custom data specific to the task plugin." + "reason", ":ref:`ref_string`", "", "If there is an explanation for the most recent phase transition, the reason will capture it." + "task_type", ":ref:`ref_string`", "", "A predefined yet extensible Task type identifier." + "metadata", ":ref:`ref_flyteidl.event.TaskExecutionMetadata`", "", "Metadata around how a task was executed." + "event_version", ":ref:`ref_int32`", "", "The event version is used to indicate versioned changes in how data is maintained using this proto message. For example, event_verison > 0 means that maps tasks logs use the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message." + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionGetDataRequest: + +TaskExecutionGetDataRequest +------------------------------------------------------------------ + +Request structure to fetch inputs and output for a task execution. +By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` + + + +.. csv-table:: TaskExecutionGetDataRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "The identifier of the task execution for which to fetch inputs and outputs. +required" + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionGetDataResponse: + +TaskExecutionGetDataResponse +------------------------------------------------------------------ + +Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. + + + +.. csv-table:: TaskExecutionGetDataResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "inputs", ":ref:`ref_flyteidl.admin.UrlBlob`", "", "**Deprecated.** Signed url to fetch a core.LiteralMap of task execution inputs. Deprecated: Please use full_inputs instead." + "outputs", ":ref:`ref_flyteidl.admin.UrlBlob`", "", "**Deprecated.** Signed url to fetch a core.LiteralMap of task execution outputs. Deprecated: Please use full_outputs instead." + "full_inputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Full_inputs will only be populated if they are under a configured size threshold." + "full_outputs", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Full_outputs will only be populated if they are under a configured size threshold." + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionGetRequest: + +TaskExecutionGetRequest +------------------------------------------------------------------ + +A message used to fetch a single task execution entity. +See :ref:`ref_flyteidl.admin.TaskExecution` for more details + + + +.. csv-table:: TaskExecutionGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "Unique identifier for the task execution. +required" + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionList: + +TaskExecutionList +------------------------------------------------------------------ + +Response structure for a query to list of task execution entities. +See :ref:`ref_flyteidl.admin.TaskExecution` for more details + + + +.. csv-table:: TaskExecutionList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "task_executions", ":ref:`ref_flyteidl.admin.TaskExecution`", "repeated", "" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.TaskExecutionListRequest: + +TaskExecutionListRequest +------------------------------------------------------------------ + +Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. +See :ref:`ref_flyteidl.admin.TaskExecution` for more details + + + +.. csv-table:: TaskExecutionListRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "node_execution_id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "Indicates the node execution to filter by. +required" + "limit", ":ref:`ref_uint32`", "", "Indicates the number of resources to be returned. +required" + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional" + "filters", ":ref:`ref_string`", "", "Indicates a list of filters passed as string. More info on constructing filters : +optional" + "sort_by", ":ref:`ref_flyteidl.admin.Sort`", "", "Sort ordering for returned list. +optional" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/version.proto: + +flyteidl/admin/version.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.GetVersionRequest: + +GetVersionRequest +------------------------------------------------------------------ + +Empty request for GetVersion + + + + + + + + +.. _ref_flyteidl.admin.GetVersionResponse: + +GetVersionResponse +------------------------------------------------------------------ + +Response for the GetVersion API + + + +.. csv-table:: GetVersionResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "control_plane_version", ":ref:`ref_flyteidl.admin.Version`", "", "The control plane version information. FlyteAdmin and related components form the control plane of Flyte" + + + + + + + +.. _ref_flyteidl.admin.Version: + +Version +------------------------------------------------------------------ + +Provides Version information for a component + + + +.. csv-table:: Version type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "Build", ":ref:`ref_string`", "", "Specifies the GIT sha of the build" + "Version", ":ref:`ref_string`", "", "Version for the build, should follow a semver" + "BuildTime", ":ref:`ref_string`", "", "Build timestamp" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/workflow.proto: + +flyteidl/admin/workflow.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.CreateWorkflowFailureReason: + +CreateWorkflowFailureReason +------------------------------------------------------------------ + +When a CreateWorkflowRequest failes due to matching id + + + +.. csv-table:: CreateWorkflowFailureReason type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "exists_different_structure", ":ref:`ref_flyteidl.admin.WorkflowErrorExistsDifferentStructure`", "", "" + "exists_identical_structure", ":ref:`ref_flyteidl.admin.WorkflowErrorExistsIdenticalStructure`", "", "" + + + + + + + +.. _ref_flyteidl.admin.Workflow: + +Workflow +------------------------------------------------------------------ + +Represents the workflow structure stored in the Admin +A workflow is created by ordering tasks and associating outputs to inputs +in order to produce a directed-acyclic execution graph. + + + +.. csv-table:: Workflow type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the workflow." + "closure", ":ref:`ref_flyteidl.admin.WorkflowClosure`", "", "closure encapsulates all the fields that maps to a compiled version of the workflow." + "short_description", ":ref:`ref_string`", "", "One-liner overview of the entity." + + + + + + + +.. _ref_flyteidl.admin.WorkflowClosure: + +WorkflowClosure +------------------------------------------------------------------ + +A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. + + + +.. csv-table:: WorkflowClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "compiled_workflow", ":ref:`ref_flyteidl.core.CompiledWorkflowClosure`", "", "Represents the compiled representation of the workflow from the specification provided." + "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Time at which the workflow was created." + + + + + + + +.. _ref_flyteidl.admin.WorkflowCreateRequest: + +WorkflowCreateRequest +------------------------------------------------------------------ + +Represents a request structure to create a revision of a workflow. +See :ref:`ref_flyteidl.admin.Workflow` for more details + + + +.. csv-table:: WorkflowCreateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the workflow. +required" + "spec", ":ref:`ref_flyteidl.admin.WorkflowSpec`", "", "Represents the specification for workflow. +required" + + + + + + + +.. _ref_flyteidl.admin.WorkflowCreateResponse: + +WorkflowCreateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.WorkflowErrorExistsDifferentStructure: + +WorkflowErrorExistsDifferentStructure +------------------------------------------------------------------ + +The workflow id is already used and the structure is different + + + +.. csv-table:: WorkflowErrorExistsDifferentStructure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "" + + + + + + + +.. _ref_flyteidl.admin.WorkflowErrorExistsIdenticalStructure: + +WorkflowErrorExistsIdenticalStructure +------------------------------------------------------------------ + +The workflow id is already used with an identical sctructure + + + +.. csv-table:: WorkflowErrorExistsIdenticalStructure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "" + + + + + + + +.. _ref_flyteidl.admin.WorkflowList: + +WorkflowList +------------------------------------------------------------------ + +Represents a list of workflows returned from the admin. +See :ref:`ref_flyteidl.admin.Workflow` for more details + + + +.. csv-table:: WorkflowList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "workflows", ":ref:`ref_flyteidl.admin.Workflow`", "repeated", "A list of workflows returned based on the request." + "token", ":ref:`ref_string`", "", "In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty." + + + + + + + +.. _ref_flyteidl.admin.WorkflowSpec: + +WorkflowSpec +------------------------------------------------------------------ + +Represents a structure that encapsulates the specification of the workflow. + + + +.. csv-table:: WorkflowSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "template", ":ref:`ref_flyteidl.core.WorkflowTemplate`", "", "Template of the task that encapsulates all the metadata of the workflow." + "sub_workflows", ":ref:`ref_flyteidl.core.WorkflowTemplate`", "repeated", "Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered." + "description", ":ref:`ref_flyteidl.admin.DescriptionEntity`", "", "Represents the specification for description entity." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/admin/workflow_attributes.proto: + +flyteidl/admin/workflow_attributes.proto +================================================================== + + + + + +.. _ref_flyteidl.admin.WorkflowAttributes: + +WorkflowAttributes +------------------------------------------------------------------ + +Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: WorkflowAttributes type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id for which this set of attributes will be applied." + "domain", ":ref:`ref_string`", "", "Unique domain id for which this set of attributes will be applied." + "workflow", ":ref:`ref_string`", "", "Workflow name for which this set of attributes will be applied." + "matching_attributes", ":ref:`ref_flyteidl.admin.MatchingAttributes`", "", "" + + + + + + + +.. _ref_flyteidl.admin.WorkflowAttributesDeleteRequest: + +WorkflowAttributesDeleteRequest +------------------------------------------------------------------ + +Request to delete a set matchable workflow attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: WorkflowAttributesDeleteRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id which this set of attributes references. +required" + "domain", ":ref:`ref_string`", "", "Unique domain id which this set of attributes references. +required" + "workflow", ":ref:`ref_string`", "", "Workflow name which this set of attributes references. +required" + "resource_type", ":ref:`ref_flyteidl.admin.MatchableResource`", "", "Which type of matchable attributes to delete. +required" + + + + + + + +.. _ref_flyteidl.admin.WorkflowAttributesDeleteResponse: + +WorkflowAttributesDeleteResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + + +.. _ref_flyteidl.admin.WorkflowAttributesGetRequest: + +WorkflowAttributesGetRequest +------------------------------------------------------------------ + +Request to get an individual workflow attribute override. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: WorkflowAttributesGetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Unique project id which this set of attributes references. +required" + "domain", ":ref:`ref_string`", "", "Unique domain id which this set of attributes references. +required" + "workflow", ":ref:`ref_string`", "", "Workflow name which this set of attributes references. +required" + "resource_type", ":ref:`ref_flyteidl.admin.MatchableResource`", "", "Which type of matchable attributes to return. +required" + + + + + + + +.. _ref_flyteidl.admin.WorkflowAttributesGetResponse: + +WorkflowAttributesGetResponse +------------------------------------------------------------------ + +Response to get an individual workflow attribute override. + + + +.. csv-table:: WorkflowAttributesGetResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.WorkflowAttributes`", "", "" + + + + + + + +.. _ref_flyteidl.admin.WorkflowAttributesUpdateRequest: + +WorkflowAttributesUpdateRequest +------------------------------------------------------------------ + +Sets custom attributes for a project, domain and workflow combination. +For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + + + +.. csv-table:: WorkflowAttributesUpdateRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "attributes", ":ref:`ref_flyteidl.admin.WorkflowAttributes`", "", "" + + + + + + + +.. _ref_flyteidl.admin.WorkflowAttributesUpdateResponse: + +WorkflowAttributesUpdateResponse +------------------------------------------------------------------ + +Purposefully empty, may be populated in the future. + + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/duration.proto: + +google/protobuf/duration.proto +================================================================== + + + + + +.. _ref_google.protobuf.Duration: + +Duration +------------------------------------------------------------------ + +A Duration represents a signed, fixed-length span of time represented +as a count of seconds and fractions of seconds at nanosecond +resolution. It is independent of any calendar and concepts like "day" +or "month". It is related to Timestamp in that the difference between +two Timestamp values is a Duration and it can be added or subtracted +from a Timestamp. Range is approximately +-10,000 years. + +# Examples + +Example 1: Compute Duration from two Timestamps in pseudo code. + + Timestamp start = ...; + Timestamp end = ...; + Duration duration = ...; + + duration.seconds = end.seconds - start.seconds; + duration.nanos = end.nanos - start.nanos; + + if (duration.seconds < 0 && duration.nanos > 0) { + duration.seconds += 1; + duration.nanos -= 1000000000; + } else if (duration.seconds > 0 && duration.nanos < 0) { + duration.seconds -= 1; + duration.nanos += 1000000000; + } + +Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + + Timestamp start = ...; + Duration duration = ...; + Timestamp end = ...; + + end.seconds = start.seconds + duration.seconds; + end.nanos = start.nanos + duration.nanos; + + if (end.nanos < 0) { + end.seconds -= 1; + end.nanos += 1000000000; + } else if (end.nanos >= 1000000000) { + end.seconds += 1; + end.nanos -= 1000000000; + } + +Example 3: Compute Duration from datetime.timedelta in Python. + + td = datetime.timedelta(days=3, minutes=10) + duration = Duration() + duration.FromTimedelta(td) + +# JSON Mapping + +In JSON format, the Duration type is encoded as a string rather than an +object, where the string ends in the suffix "s" (indicating seconds) and +is preceded by the number of seconds, with nanoseconds expressed as +fractional seconds. For example, 3 seconds with 0 nanoseconds should be +encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +microsecond should be expressed in JSON format as "3.000001s". + + + +.. csv-table:: Duration type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "seconds", ":ref:`ref_int64`", "", "Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + "nanos", ":ref:`ref_int32`", "", "Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/wrappers.proto: + +google/protobuf/wrappers.proto +================================================================== + + + + + +.. _ref_google.protobuf.BoolValue: + +BoolValue +------------------------------------------------------------------ + +Wrapper message for `bool`. + +The JSON representation for `BoolValue` is JSON `true` and `false`. + + + +.. csv-table:: BoolValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_bool`", "", "The bool value." + + + + + + + +.. _ref_google.protobuf.BytesValue: + +BytesValue +------------------------------------------------------------------ + +Wrapper message for `bytes`. + +The JSON representation for `BytesValue` is JSON string. + + + +.. csv-table:: BytesValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_bytes`", "", "The bytes value." + + + + + + + +.. _ref_google.protobuf.DoubleValue: + +DoubleValue +------------------------------------------------------------------ + +Wrapper message for `double`. + +The JSON representation for `DoubleValue` is JSON number. + + + +.. csv-table:: DoubleValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_double`", "", "The double value." + + + + + + + +.. _ref_google.protobuf.FloatValue: + +FloatValue +------------------------------------------------------------------ + +Wrapper message for `float`. + +The JSON representation for `FloatValue` is JSON number. + + + +.. csv-table:: FloatValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_float`", "", "The float value." + + + + + + + +.. _ref_google.protobuf.Int32Value: + +Int32Value +------------------------------------------------------------------ + +Wrapper message for `int32`. + +The JSON representation for `Int32Value` is JSON number. + + + +.. csv-table:: Int32Value type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_int32`", "", "The int32 value." + + + + + + + +.. _ref_google.protobuf.Int64Value: + +Int64Value +------------------------------------------------------------------ + +Wrapper message for `int64`. + +The JSON representation for `Int64Value` is JSON string. + + + +.. csv-table:: Int64Value type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_int64`", "", "The int64 value." + + + + + + + +.. _ref_google.protobuf.StringValue: + +StringValue +------------------------------------------------------------------ + +Wrapper message for `string`. + +The JSON representation for `StringValue` is JSON string. + + + +.. csv-table:: StringValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_string`", "", "The string value." + + + + + + + +.. _ref_google.protobuf.UInt32Value: + +UInt32Value +------------------------------------------------------------------ + +Wrapper message for `uint32`. + +The JSON representation for `UInt32Value` is JSON number. + + + +.. csv-table:: UInt32Value type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_uint32`", "", "The uint32 value." + + + + + + + +.. _ref_google.protobuf.UInt64Value: + +UInt64Value +------------------------------------------------------------------ + +Wrapper message for `uint64`. + +The JSON representation for `UInt64Value` is JSON string. + + + +.. csv-table:: UInt64Value type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_uint64`", "", "The uint64 value." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + diff --git a/flyteidl/protos/docs/admin/index.rst b/flyteidl/protos/docs/admin/index.rst new file mode 100644 index 0000000000..6518e82dbb --- /dev/null +++ b/flyteidl/protos/docs/admin/index.rst @@ -0,0 +1,13 @@ +Flyte Admin Service entities +============================ + +These are the control plane entities that can be used to communicate with the +FlyteAdmin service over gRPC or REST. The endpoint specification is defined in the +`Admin raw protos `__ + +.. toctree:: + :maxdepth: 1 + :caption: admin + :name: admintoc + + admin diff --git a/flyteidl/protos/docs/core/core.rst b/flyteidl/protos/docs/core/core.rst new file mode 100644 index 0000000000..43bf4c9c6e --- /dev/null +++ b/flyteidl/protos/docs/core/core.rst @@ -0,0 +1,3952 @@ +###################### +Protocol Documentation +###################### + + + + +.. _ref_flyteidl/core/catalog.proto: + +flyteidl/core/catalog.proto +================================================================== + + + + + +.. _ref_flyteidl.core.CatalogArtifactTag: + +CatalogArtifactTag +------------------------------------------------------------------ + + + + + +.. csv-table:: CatalogArtifactTag type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "artifact_id", ":ref:`ref_string`", "", "Artifact ID is generated name" + "name", ":ref:`ref_string`", "", "Flyte computes the tag automatically, as the hash of the values" + + + + + + + +.. _ref_flyteidl.core.CatalogMetadata: + +CatalogMetadata +------------------------------------------------------------------ + +Catalog artifact information with specific metadata + + + +.. csv-table:: CatalogMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset_id", ":ref:`ref_flyteidl.core.Identifier`", "", "Dataset ID in the catalog" + "artifact_tag", ":ref:`ref_flyteidl.core.CatalogArtifactTag`", "", "Artifact tag in the catalog" + "source_task_execution", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions" + + + + + + + +.. _ref_flyteidl.core.CatalogReservation: + +CatalogReservation +------------------------------------------------------------------ + + + + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.CatalogCacheStatus: + +CatalogCacheStatus +------------------------------------------------------------------ + +Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future + +.. csv-table:: Enum CatalogCacheStatus values + :header: "Name", "Number", "Description" + :widths: auto + + "CACHE_DISABLED", "0", "Used to indicate that caching was disabled" + "CACHE_MISS", "1", "Used to indicate that the cache lookup resulted in no matches" + "CACHE_HIT", "2", "used to indicate that the associated artifact was a result of a previous execution" + "CACHE_POPULATED", "3", "used to indicate that the resultant artifact was added to the cache" + "CACHE_LOOKUP_FAILURE", "4", "Used to indicate that cache lookup failed because of an error" + "CACHE_PUT_FAILURE", "5", "Used to indicate that cache lookup failed because of an error" + "CACHE_SKIPPED", "6", "Used to indicate the cache lookup was skipped" + + + +.. _ref_flyteidl.core.CatalogReservation.Status: + +CatalogReservation.Status +------------------------------------------------------------------ + +Indicates the status of a catalog reservation operation. + +.. csv-table:: Enum CatalogReservation.Status values + :header: "Name", "Number", "Description" + :widths: auto + + "RESERVATION_DISABLED", "0", "Used to indicate that reservations are disabled" + "RESERVATION_ACQUIRED", "1", "Used to indicate that a reservation was successfully acquired or extended" + "RESERVATION_EXISTS", "2", "Used to indicate that an active reservation currently exists" + "RESERVATION_RELEASED", "3", "Used to indicate that the reservation has been successfully released" + "RESERVATION_FAILURE", "4", "Used to indicate that a reservation operation resulted in failure" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/compiler.proto: + +flyteidl/core/compiler.proto +================================================================== + + + + + +.. _ref_flyteidl.core.CompiledTask: + +CompiledTask +------------------------------------------------------------------ + +Output of the Compilation step. This object represent one Task. We store more metadata at this layer + + + +.. csv-table:: CompiledTask type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "template", ":ref:`ref_flyteidl.core.TaskTemplate`", "", "Completely contained TaskTemplate" + + + + + + + +.. _ref_flyteidl.core.CompiledWorkflow: + +CompiledWorkflow +------------------------------------------------------------------ + +Output of the compilation Step. This object represents one workflow. We store more metadata at this layer + + + +.. csv-table:: CompiledWorkflow type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "template", ":ref:`ref_flyteidl.core.WorkflowTemplate`", "", "Completely contained Workflow Template" + "connections", ":ref:`ref_flyteidl.core.ConnectionSet`", "", "For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored." + + + + + + + +.. _ref_flyteidl.core.CompiledWorkflowClosure: + +CompiledWorkflowClosure +------------------------------------------------------------------ + +A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +compiled subworkflows. + + + +.. csv-table:: CompiledWorkflowClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "primary", ":ref:`ref_flyteidl.core.CompiledWorkflow`", "", "+required" + "sub_workflows", ":ref:`ref_flyteidl.core.CompiledWorkflow`", "repeated", "Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow as an inlined workflow +optional" + "tasks", ":ref:`ref_flyteidl.core.CompiledTask`", "repeated", "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id +required (at least 1)" + + + + + + + +.. _ref_flyteidl.core.ConnectionSet: + +ConnectionSet +------------------------------------------------------------------ + +Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +step uses this created ConnectionSet + + + +.. csv-table:: ConnectionSet type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "downstream", ":ref:`ref_flyteidl.core.ConnectionSet.DownstreamEntry`", "repeated", "A list of all the node ids that are downstream from a given node id" + "upstream", ":ref:`ref_flyteidl.core.ConnectionSet.UpstreamEntry`", "repeated", "A list of all the node ids, that are upstream of this node id" + + + + + + + +.. _ref_flyteidl.core.ConnectionSet.DownstreamEntry: + +ConnectionSet.DownstreamEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: ConnectionSet.DownstreamEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_flyteidl.core.ConnectionSet.IdList`", "", "" + + + + + + + +.. _ref_flyteidl.core.ConnectionSet.IdList: + +ConnectionSet.IdList +------------------------------------------------------------------ + + + + + +.. csv-table:: ConnectionSet.IdList type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "ids", ":ref:`ref_string`", "repeated", "" + + + + + + + +.. _ref_flyteidl.core.ConnectionSet.UpstreamEntry: + +ConnectionSet.UpstreamEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: ConnectionSet.UpstreamEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_flyteidl.core.ConnectionSet.IdList`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/condition.proto: + +flyteidl/core/condition.proto +================================================================== + + + + + +.. _ref_flyteidl.core.BooleanExpression: + +BooleanExpression +------------------------------------------------------------------ + +Defines a boolean expression tree. It can be a simple or a conjunction expression. +Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. + + + +.. csv-table:: BooleanExpression type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "conjunction", ":ref:`ref_flyteidl.core.ConjunctionExpression`", "", "" + "comparison", ":ref:`ref_flyteidl.core.ComparisonExpression`", "", "" + + + + + + + +.. _ref_flyteidl.core.ComparisonExpression: + +ComparisonExpression +------------------------------------------------------------------ + +Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. +Each expression results in a boolean result. + + + +.. csv-table:: ComparisonExpression type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "operator", ":ref:`ref_flyteidl.core.ComparisonExpression.Operator`", "", "" + "left_value", ":ref:`ref_flyteidl.core.Operand`", "", "" + "right_value", ":ref:`ref_flyteidl.core.Operand`", "", "" + + + + + + + +.. _ref_flyteidl.core.ConjunctionExpression: + +ConjunctionExpression +------------------------------------------------------------------ + +Defines a conjunction expression of two boolean expressions. + + + +.. csv-table:: ConjunctionExpression type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "operator", ":ref:`ref_flyteidl.core.ConjunctionExpression.LogicalOperator`", "", "" + "left_expression", ":ref:`ref_flyteidl.core.BooleanExpression`", "", "" + "right_expression", ":ref:`ref_flyteidl.core.BooleanExpression`", "", "" + + + + + + + +.. _ref_flyteidl.core.Operand: + +Operand +------------------------------------------------------------------ + +Defines an operand to a comparison expression. + + + +.. csv-table:: Operand type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "primitive", ":ref:`ref_flyteidl.core.Primitive`", "", "Can be a constant" + "var", ":ref:`ref_string`", "", "Or one of this node's input variables" + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.ComparisonExpression.Operator: + +ComparisonExpression.Operator +------------------------------------------------------------------ + +Binary Operator for each expression + +.. csv-table:: Enum ComparisonExpression.Operator values + :header: "Name", "Number", "Description" + :widths: auto + + "EQ", "0", "" + "NEQ", "1", "" + "GT", "2", "Greater Than" + "GTE", "3", "" + "LT", "4", "Less Than" + "LTE", "5", "" + + + +.. _ref_flyteidl.core.ConjunctionExpression.LogicalOperator: + +ConjunctionExpression.LogicalOperator +------------------------------------------------------------------ + +Nested conditions. They can be conjoined using AND / OR +Order of evaluation is not important as the operators are Commutative + +.. csv-table:: Enum ConjunctionExpression.LogicalOperator values + :header: "Name", "Number", "Description" + :widths: auto + + "AND", "0", "Conjunction" + "OR", "1", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/dynamic_job.proto: + +flyteidl/core/dynamic_job.proto +================================================================== + + + + + +.. _ref_flyteidl.core.DynamicJobSpec: + +DynamicJobSpec +------------------------------------------------------------------ + +Describes a set of tasks to execute and how the final outputs are produced. + + + +.. csv-table:: DynamicJobSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "nodes", ":ref:`ref_flyteidl.core.Node`", "repeated", "A collection of nodes to execute." + "min_successes", ":ref:`ref_int64`", "", "An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not specified, is the count of nodes repeated field." + "outputs", ":ref:`ref_flyteidl.core.Binding`", "repeated", "Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids in bindings should have the generated id for the subtask." + "tasks", ":ref:`ref_flyteidl.core.TaskTemplate`", "repeated", "[Optional] A complete list of task specs referenced in nodes." + "subworkflows", ":ref:`ref_flyteidl.core.WorkflowTemplate`", "repeated", "[Optional] A complete list of task specs referenced in nodes." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/errors.proto: + +flyteidl/core/errors.proto +================================================================== + + + + + +.. _ref_flyteidl.core.ContainerError: + +ContainerError +------------------------------------------------------------------ + +Error message to propagate detailed errors from container executions to the execution +engine. + + + +.. csv-table:: ContainerError type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "code", ":ref:`ref_string`", "", "A simplified code for errors, so that we can provide a glossary of all possible errors." + "message", ":ref:`ref_string`", "", "A detailed error message." + "kind", ":ref:`ref_flyteidl.core.ContainerError.Kind`", "", "An abstract error kind for this error. Defaults to Non_Recoverable if not specified." + "origin", ":ref:`ref_flyteidl.core.ExecutionError.ErrorKind`", "", "Defines the origin of the error (system, user, unknown)." + + + + + + + +.. _ref_flyteidl.core.ErrorDocument: + +ErrorDocument +------------------------------------------------------------------ + +Defines the errors.pb file format the container can produce to communicate +failure reasons to the execution engine. + + + +.. csv-table:: ErrorDocument type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "error", ":ref:`ref_flyteidl.core.ContainerError`", "", "The error raised during execution." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.ContainerError.Kind: + +ContainerError.Kind +------------------------------------------------------------------ + +Defines a generic error type that dictates the behavior of the retry strategy. + +.. csv-table:: Enum ContainerError.Kind values + :header: "Name", "Number", "Description" + :widths: auto + + "NON_RECOVERABLE", "0", "" + "RECOVERABLE", "1", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/execution.proto: + +flyteidl/core/execution.proto +================================================================== + + + + + +.. _ref_flyteidl.core.ExecutionError: + +ExecutionError +------------------------------------------------------------------ + +Represents the error message from the execution. + + + +.. csv-table:: ExecutionError type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "code", ":ref:`ref_string`", "", "Error code indicates a grouping of a type of error. More Info: " + "message", ":ref:`ref_string`", "", "Detailed description of the error - including stack trace." + "error_uri", ":ref:`ref_string`", "", "Full error contents accessible via a URI" + "kind", ":ref:`ref_flyteidl.core.ExecutionError.ErrorKind`", "", "" + + + + + + + +.. _ref_flyteidl.core.NodeExecution: + +NodeExecution +------------------------------------------------------------------ + +Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows + + + + + + + + +.. _ref_flyteidl.core.QualityOfService: + +QualityOfService +------------------------------------------------------------------ + +Indicates the priority of an execution. + + + +.. csv-table:: QualityOfService type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "tier", ":ref:`ref_flyteidl.core.QualityOfService.Tier`", "", "" + "spec", ":ref:`ref_flyteidl.core.QualityOfServiceSpec`", "", "" + + + + + + + +.. _ref_flyteidl.core.QualityOfServiceSpec: + +QualityOfServiceSpec +------------------------------------------------------------------ + +Represents customized execution run-time attributes. + + + +.. csv-table:: QualityOfServiceSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "queueing_budget", ":ref:`ref_google.protobuf.Duration`", "", "Indicates how much queueing delay an execution can tolerate." + + + + + + + +.. _ref_flyteidl.core.TaskExecution: + +TaskExecution +------------------------------------------------------------------ + +Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +but this is the cumulative list that customers may want to know about for their task. + + + + + + + + +.. _ref_flyteidl.core.TaskLog: + +TaskLog +------------------------------------------------------------------ + +Log information for the task that is specific to a log sink +When our log story is flushed out, we may have more metadata here like log link expiry + + + +.. csv-table:: TaskLog type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "uri", ":ref:`ref_string`", "", "" + "name", ":ref:`ref_string`", "", "" + "message_format", ":ref:`ref_flyteidl.core.TaskLog.MessageFormat`", "", "" + "ttl", ":ref:`ref_google.protobuf.Duration`", "", "" + + + + + + + +.. _ref_flyteidl.core.WorkflowExecution: + +WorkflowExecution +------------------------------------------------------------------ + +Indicates various phases of Workflow Execution + + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.ExecutionError.ErrorKind: + +ExecutionError.ErrorKind +------------------------------------------------------------------ + +Error type: System or User + +.. csv-table:: Enum ExecutionError.ErrorKind values + :header: "Name", "Number", "Description" + :widths: auto + + "UNKNOWN", "0", "" + "USER", "1", "" + "SYSTEM", "2", "" + + + +.. _ref_flyteidl.core.NodeExecution.Phase: + +NodeExecution.Phase +------------------------------------------------------------------ + + + +.. csv-table:: Enum NodeExecution.Phase values + :header: "Name", "Number", "Description" + :widths: auto + + "UNDEFINED", "0", "" + "QUEUED", "1", "" + "RUNNING", "2", "" + "SUCCEEDED", "3", "" + "FAILING", "4", "" + "FAILED", "5", "" + "ABORTED", "6", "" + "SKIPPED", "7", "" + "TIMED_OUT", "8", "" + "DYNAMIC_RUNNING", "9", "" + "RECOVERED", "10", "" + + + +.. _ref_flyteidl.core.QualityOfService.Tier: + +QualityOfService.Tier +------------------------------------------------------------------ + + + +.. csv-table:: Enum QualityOfService.Tier values + :header: "Name", "Number", "Description" + :widths: auto + + "UNDEFINED", "0", "Default: no quality of service specified." + "HIGH", "1", "" + "MEDIUM", "2", "" + "LOW", "3", "" + + + +.. _ref_flyteidl.core.TaskExecution.Phase: + +TaskExecution.Phase +------------------------------------------------------------------ + + + +.. csv-table:: Enum TaskExecution.Phase values + :header: "Name", "Number", "Description" + :widths: auto + + "UNDEFINED", "0", "" + "QUEUED", "1", "" + "RUNNING", "2", "" + "SUCCEEDED", "3", "" + "ABORTED", "4", "" + "FAILED", "5", "" + "INITIALIZING", "6", "To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing" + "WAITING_FOR_RESOURCES", "7", "To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded" + + + +.. _ref_flyteidl.core.TaskLog.MessageFormat: + +TaskLog.MessageFormat +------------------------------------------------------------------ + + + +.. csv-table:: Enum TaskLog.MessageFormat values + :header: "Name", "Number", "Description" + :widths: auto + + "UNKNOWN", "0", "" + "CSV", "1", "" + "JSON", "2", "" + + + +.. _ref_flyteidl.core.WorkflowExecution.Phase: + +WorkflowExecution.Phase +------------------------------------------------------------------ + + + +.. csv-table:: Enum WorkflowExecution.Phase values + :header: "Name", "Number", "Description" + :widths: auto + + "UNDEFINED", "0", "" + "QUEUED", "1", "" + "RUNNING", "2", "" + "SUCCEEDING", "3", "" + "SUCCEEDED", "4", "" + "FAILING", "5", "" + "FAILED", "6", "" + "ABORTED", "7", "" + "TIMED_OUT", "8", "" + "ABORTING", "9", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/identifier.proto: + +flyteidl/core/identifier.proto +================================================================== + + + + + +.. _ref_flyteidl.core.Identifier: + +Identifier +------------------------------------------------------------------ + +Encapsulation of fields that uniquely identifies a Flyte resource. + + + +.. csv-table:: Identifier type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resource_type", ":ref:`ref_flyteidl.core.ResourceType`", "", "Identifies the specific type of resource that this identifier corresponds to." + "project", ":ref:`ref_string`", "", "Name of the project the resource belongs to." + "domain", ":ref:`ref_string`", "", "Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project." + "name", ":ref:`ref_string`", "", "User provided value for the resource." + "version", ":ref:`ref_string`", "", "Specific version of the resource." + + + + + + + +.. _ref_flyteidl.core.NodeExecutionIdentifier: + +NodeExecutionIdentifier +------------------------------------------------------------------ + +Encapsulation of fields that identify a Flyte node execution entity. + + + +.. csv-table:: NodeExecutionIdentifier type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "node_id", ":ref:`ref_string`", "", "" + "execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "" + + + + + + + +.. _ref_flyteidl.core.SignalIdentifier: + +SignalIdentifier +------------------------------------------------------------------ + +Encapsulation of fields the uniquely identify a signal. + + + +.. csv-table:: SignalIdentifier type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "signal_id", ":ref:`ref_string`", "", "Unique identifier for a signal." + "execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Identifies the Flyte workflow execution this signal belongs to." + + + + + + + +.. _ref_flyteidl.core.TaskExecutionIdentifier: + +TaskExecutionIdentifier +------------------------------------------------------------------ + +Encapsulation of fields that identify a Flyte task execution entity. + + + +.. csv-table:: TaskExecutionIdentifier type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "task_id", ":ref:`ref_flyteidl.core.Identifier`", "", "" + "node_execution_id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "" + "retry_attempt", ":ref:`ref_uint32`", "", "" + + + + + + + +.. _ref_flyteidl.core.WorkflowExecutionIdentifier: + +WorkflowExecutionIdentifier +------------------------------------------------------------------ + +Encapsulation of fields that uniquely identifies a Flyte workflow execution + + + +.. csv-table:: WorkflowExecutionIdentifier type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Name of the project the resource belongs to." + "domain", ":ref:`ref_string`", "", "Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project." + "name", ":ref:`ref_string`", "", "User or system provided value for the resource." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.ResourceType: + +ResourceType +------------------------------------------------------------------ + +Indicates a resource type within Flyte. + +.. csv-table:: Enum ResourceType values + :header: "Name", "Number", "Description" + :widths: auto + + "UNSPECIFIED", "0", "" + "TASK", "1", "" + "WORKFLOW", "2", "" + "LAUNCH_PLAN", "3", "" + "DATASET", "4", "A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/interface.proto: + +flyteidl/core/interface.proto +================================================================== + + + + + +.. _ref_flyteidl.core.Parameter: + +Parameter +------------------------------------------------------------------ + +A parameter is used as input to a launch plan and has +the special ability to have a default value or mark itself as required. + + + +.. csv-table:: Parameter type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "var", ":ref:`ref_flyteidl.core.Variable`", "", "+required Variable. Defines the type of the variable backing this parameter." + "default", ":ref:`ref_flyteidl.core.Literal`", "", "Defines a default value that has to match the variable type defined." + "required", ":ref:`ref_bool`", "", "+optional, is this value required to be filled." + + + + + + + +.. _ref_flyteidl.core.ParameterMap: + +ParameterMap +------------------------------------------------------------------ + +A map of Parameters. + + + +.. csv-table:: ParameterMap type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "parameters", ":ref:`ref_flyteidl.core.ParameterMap.ParametersEntry`", "repeated", "Defines a map of parameter names to parameters." + + + + + + + +.. _ref_flyteidl.core.ParameterMap.ParametersEntry: + +ParameterMap.ParametersEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: ParameterMap.ParametersEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_flyteidl.core.Parameter`", "", "" + + + + + + + +.. _ref_flyteidl.core.TypedInterface: + +TypedInterface +------------------------------------------------------------------ + +Defines strongly typed inputs and outputs. + + + +.. csv-table:: TypedInterface type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "inputs", ":ref:`ref_flyteidl.core.VariableMap`", "", "" + "outputs", ":ref:`ref_flyteidl.core.VariableMap`", "", "" + + + + + + + +.. _ref_flyteidl.core.Variable: + +Variable +------------------------------------------------------------------ + +Defines a strongly typed variable. + + + +.. csv-table:: Variable type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "type", ":ref:`ref_flyteidl.core.LiteralType`", "", "Variable literal type." + "description", ":ref:`ref_string`", "", "+optional string describing input variable" + + + + + + + +.. _ref_flyteidl.core.VariableMap: + +VariableMap +------------------------------------------------------------------ + +A map of Variables + + + +.. csv-table:: VariableMap type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "variables", ":ref:`ref_flyteidl.core.VariableMap.VariablesEntry`", "repeated", "Defines a map of variable names to variables." + + + + + + + +.. _ref_flyteidl.core.VariableMap.VariablesEntry: + +VariableMap.VariablesEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: VariableMap.VariablesEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_flyteidl.core.Variable`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/literals.proto: + +flyteidl/core/literals.proto +================================================================== + + + + + +.. _ref_flyteidl.core.Binary: + +Binary +------------------------------------------------------------------ + +A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. + + + +.. csv-table:: Binary type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_bytes`", "", "" + "tag", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.core.Binding: + +Binding +------------------------------------------------------------------ + +An input/output binding of a variable to either static value or a node output. + + + +.. csv-table:: Binding type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "var", ":ref:`ref_string`", "", "Variable name must match an input/output variable of the node." + "binding", ":ref:`ref_flyteidl.core.BindingData`", "", "Data to use to bind this variable." + + + + + + + +.. _ref_flyteidl.core.BindingData: + +BindingData +------------------------------------------------------------------ + +Specifies either a simple value or a reference to another output. + + + +.. csv-table:: BindingData type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "scalar", ":ref:`ref_flyteidl.core.Scalar`", "", "A simple scalar value." + "collection", ":ref:`ref_flyteidl.core.BindingDataCollection`", "", "A collection of binding data. This allows nesting of binding data to any number of levels." + "promise", ":ref:`ref_flyteidl.core.OutputReference`", "", "References an output promised by another node." + "map", ":ref:`ref_flyteidl.core.BindingDataMap`", "", "A map of bindings. The key is always a string." + "union", ":ref:`ref_flyteidl.core.UnionInfo`", "", "" + + + + + + + +.. _ref_flyteidl.core.BindingDataCollection: + +BindingDataCollection +------------------------------------------------------------------ + +A collection of BindingData items. + + + +.. csv-table:: BindingDataCollection type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "bindings", ":ref:`ref_flyteidl.core.BindingData`", "repeated", "" + + + + + + + +.. _ref_flyteidl.core.BindingDataMap: + +BindingDataMap +------------------------------------------------------------------ + +A map of BindingData items. + + + +.. csv-table:: BindingDataMap type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "bindings", ":ref:`ref_flyteidl.core.BindingDataMap.BindingsEntry`", "repeated", "" + + + + + + + +.. _ref_flyteidl.core.BindingDataMap.BindingsEntry: + +BindingDataMap.BindingsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: BindingDataMap.BindingsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_flyteidl.core.BindingData`", "", "" + + + + + + + +.. _ref_flyteidl.core.Blob: + +Blob +------------------------------------------------------------------ + +Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. + + + +.. csv-table:: Blob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "metadata", ":ref:`ref_flyteidl.core.BlobMetadata`", "", "" + "uri", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.core.BlobMetadata: + +BlobMetadata +------------------------------------------------------------------ + + + + + +.. csv-table:: BlobMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "type", ":ref:`ref_flyteidl.core.BlobType`", "", "" + + + + + + + +.. _ref_flyteidl.core.KeyValuePair: + +KeyValuePair +------------------------------------------------------------------ + +A generic key value pair. + + + +.. csv-table:: KeyValuePair type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "required." + "value", ":ref:`ref_string`", "", "+optional." + + + + + + + +.. _ref_flyteidl.core.Literal: + +Literal +------------------------------------------------------------------ + +A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. + + + +.. csv-table:: Literal type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "scalar", ":ref:`ref_flyteidl.core.Scalar`", "", "A simple value." + "collection", ":ref:`ref_flyteidl.core.LiteralCollection`", "", "A collection of literals to allow nesting." + "map", ":ref:`ref_flyteidl.core.LiteralMap`", "", "A map of strings to literals." + "hash", ":ref:`ref_string`", "", "A hash representing this literal. This is used for caching purposes. For more details refer to RFC 1893 (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + + + + + + + +.. _ref_flyteidl.core.LiteralCollection: + +LiteralCollection +------------------------------------------------------------------ + +A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. + + + +.. csv-table:: LiteralCollection type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "literals", ":ref:`ref_flyteidl.core.Literal`", "repeated", "" + + + + + + + +.. _ref_flyteidl.core.LiteralMap: + +LiteralMap +------------------------------------------------------------------ + +A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. + + + +.. csv-table:: LiteralMap type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "literals", ":ref:`ref_flyteidl.core.LiteralMap.LiteralsEntry`", "repeated", "" + + + + + + + +.. _ref_flyteidl.core.LiteralMap.LiteralsEntry: + +LiteralMap.LiteralsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: LiteralMap.LiteralsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_flyteidl.core.Literal`", "", "" + + + + + + + +.. _ref_flyteidl.core.Primitive: + +Primitive +------------------------------------------------------------------ + +Primitive Types + + + +.. csv-table:: Primitive type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "integer", ":ref:`ref_int64`", "", "" + "float_value", ":ref:`ref_double`", "", "" + "string_value", ":ref:`ref_string`", "", "" + "boolean", ":ref:`ref_bool`", "", "" + "datetime", ":ref:`ref_google.protobuf.Timestamp`", "", "" + "duration", ":ref:`ref_google.protobuf.Duration`", "", "" + + + + + + + +.. _ref_flyteidl.core.RetryStrategy: + +RetryStrategy +------------------------------------------------------------------ + +Retry strategy associated with an executable unit. + + + +.. csv-table:: RetryStrategy type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "retries", ":ref:`ref_uint32`", "", "Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10." + + + + + + + +.. _ref_flyteidl.core.Scalar: + +Scalar +------------------------------------------------------------------ + + + + + +.. csv-table:: Scalar type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "primitive", ":ref:`ref_flyteidl.core.Primitive`", "", "" + "blob", ":ref:`ref_flyteidl.core.Blob`", "", "" + "binary", ":ref:`ref_flyteidl.core.Binary`", "", "" + "schema", ":ref:`ref_flyteidl.core.Schema`", "", "" + "none_type", ":ref:`ref_flyteidl.core.Void`", "", "" + "error", ":ref:`ref_flyteidl.core.Error`", "", "" + "generic", ":ref:`ref_google.protobuf.Struct`", "", "" + "structured_dataset", ":ref:`ref_flyteidl.core.StructuredDataset`", "", "" + "union", ":ref:`ref_flyteidl.core.Union`", "", "" + + + + + + + +.. _ref_flyteidl.core.Schema: + +Schema +------------------------------------------------------------------ + +A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. + + + +.. csv-table:: Schema type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "uri", ":ref:`ref_string`", "", "" + "type", ":ref:`ref_flyteidl.core.SchemaType`", "", "" + + + + + + + +.. _ref_flyteidl.core.StructuredDataset: + +StructuredDataset +------------------------------------------------------------------ + + + + + +.. csv-table:: StructuredDataset type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "uri", ":ref:`ref_string`", "", "String location uniquely identifying where the data is. Should start with the storage location (e.g. s3://, gs://, bq://, etc.)" + "metadata", ":ref:`ref_flyteidl.core.StructuredDatasetMetadata`", "", "" + + + + + + + +.. _ref_flyteidl.core.StructuredDatasetMetadata: + +StructuredDatasetMetadata +------------------------------------------------------------------ + + + + + +.. csv-table:: StructuredDatasetMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "structured_dataset_type", ":ref:`ref_flyteidl.core.StructuredDatasetType`", "", "Bundle the type information along with the literal. This is here because StructuredDatasets can often be more defined at run time than at compile time. That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, without any column information, but at run time, you might have that column information. flytekit python will copy this type information into the literal, from the type information, if not provided by the various plugins (encoders). Since this field is run time generated, it's not used for any type checking." + + + + + + + +.. _ref_flyteidl.core.Union: + +Union +------------------------------------------------------------------ + +The runtime representation of a tagged union value. See `UnionType` for more details. + + + +.. csv-table:: Union type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "value", ":ref:`ref_flyteidl.core.Literal`", "", "" + "type", ":ref:`ref_flyteidl.core.LiteralType`", "", "" + + + + + + + +.. _ref_flyteidl.core.UnionInfo: + +UnionInfo +------------------------------------------------------------------ + + + + + +.. csv-table:: UnionInfo type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "targetType", ":ref:`ref_flyteidl.core.LiteralType`", "", "" + + + + + + + +.. _ref_flyteidl.core.Void: + +Void +------------------------------------------------------------------ + +Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +undefined since it can be assigned to a scalar of any LiteralType. + + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/security.proto: + +flyteidl/core/security.proto +================================================================== + + + + + +.. _ref_flyteidl.core.Identity: + +Identity +------------------------------------------------------------------ + +Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the +right identity for the execution environment. + + + +.. csv-table:: Identity type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "iam_role", ":ref:`ref_string`", "", "iam_role references the fully qualified name of Identity & Access Management role to impersonate." + "k8s_service_account", ":ref:`ref_string`", "", "k8s_service_account references a kubernetes service account to impersonate." + "oauth2_client", ":ref:`ref_flyteidl.core.OAuth2Client`", "", "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when making external calls." + + + + + + + +.. _ref_flyteidl.core.OAuth2Client: + +OAuth2Client +------------------------------------------------------------------ + +OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. + + + +.. csv-table:: OAuth2Client type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "client_id", ":ref:`ref_string`", "", "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the secret requested matches the client_id indicated here. +required" + "client_secret", ":ref:`ref_flyteidl.core.Secret`", "", "client_secret is a reference to the secret used to authenticate the OAuth2 client. +required" + + + + + + + +.. _ref_flyteidl.core.OAuth2TokenRequest: + +OAuth2TokenRequest +------------------------------------------------------------------ + +OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. +FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +tokens are passed through environment variables. +FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens +are passed through file mounts. + + + +.. csv-table:: OAuth2TokenRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "name", ":ref:`ref_string`", "", "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for environment variables and as a filename for mounting tokens as files. +required" + "type", ":ref:`ref_flyteidl.core.OAuth2TokenRequest.Type`", "", "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. +required" + "client", ":ref:`ref_flyteidl.core.OAuth2Client`", "", "client references the client_id/secret to use to request the OAuth2 token. +required" + "idp_discovery_endpoint", ":ref:`ref_string`", "", "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related information. +optional" + "token_endpoint", ":ref:`ref_string`", "", "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is mandatory. +optional" + + + + + + + +.. _ref_flyteidl.core.Secret: + +Secret +------------------------------------------------------------------ + +Secret encapsulates information about the secret a task needs to proceed. An environment variable +FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +secrets are passed through environment variables. +FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets +are passed through file mounts. + + + +.. csv-table:: Secret type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "group", ":ref:`ref_string`", "", "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. For AWS Secret Manager, this should be the name of the secret. +required" + "group_version", ":ref:`ref_string`", "", "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones that do not support it. +optional" + "key", ":ref:`ref_string`", "", "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should match one of the keys inside the secret. For AWS Secret Manager, it's ignored. +optional" + "mount_requirement", ":ref:`ref_flyteidl.core.Secret.MountType`", "", "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail if the underlying key management system cannot satisfy that requirement. If not provided, the default location will depend on the key management system. +optional" + + + + + + + +.. _ref_flyteidl.core.SecurityContext: + +SecurityContext +------------------------------------------------------------------ + +SecurityContext holds security attributes that apply to tasks. + + + +.. csv-table:: SecurityContext type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "run_as", ":ref:`ref_flyteidl.core.Identity`", "", "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on." + "secrets", ":ref:`ref_flyteidl.core.Secret`", "repeated", "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine." + "tokens", ":ref:`ref_flyteidl.core.OAuth2TokenRequest`", "repeated", "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.OAuth2TokenRequest.Type: + +OAuth2TokenRequest.Type +------------------------------------------------------------------ + +Type of the token requested. + +.. csv-table:: Enum OAuth2TokenRequest.Type values + :header: "Name", "Number", "Description" + :widths: auto + + "CLIENT_CREDENTIALS", "0", "CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + + + +.. _ref_flyteidl.core.Secret.MountType: + +Secret.MountType +------------------------------------------------------------------ + + + +.. csv-table:: Enum Secret.MountType values + :header: "Name", "Number", "Description" + :widths: auto + + "ANY", "0", "Default case, indicates the client can tolerate either mounting options." + "ENV_VAR", "1", "ENV_VAR indicates the secret needs to be mounted as an environment variable." + "FILE", "2", "FILE indicates the secret needs to be mounted as a file." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/tasks.proto: + +flyteidl/core/tasks.proto +================================================================== + + + + + +.. _ref_flyteidl.core.Container: + +Container +------------------------------------------------------------------ + + + + + +.. csv-table:: Container type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "image", ":ref:`ref_string`", "", "Container image url. Eg: docker/redis:latest" + "command", ":ref:`ref_string`", "repeated", "Command to be executed, if not provided, the default entrypoint in the container image will be used." + "args", ":ref:`ref_string`", "repeated", "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container." + "resources", ":ref:`ref_flyteidl.core.Resources`", "", "Container resources requirement as specified by the container engine." + "env", ":ref:`ref_flyteidl.core.KeyValuePair`", "repeated", "Environment variables will be set as the container is starting up." + "config", ":ref:`ref_flyteidl.core.KeyValuePair`", "repeated", "**Deprecated.** Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. Deprecated, please use TaskTemplate.config instead." + "ports", ":ref:`ref_flyteidl.core.ContainerPort`", "repeated", "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but not supported on AWS Batch) Only K8s" + "data_config", ":ref:`ref_flyteidl.core.DataLoadingConfig`", "", "BETA: Optional configuration for DataLoading. If not specified, then default values are used. This makes it possible to to run a completely portable container, that uses inputs and outputs only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation to understand the default paths. Only K8s" + "architecture", ":ref:`ref_flyteidl.core.Container.Architecture`", "", "" + + + + + + + +.. _ref_flyteidl.core.ContainerPort: + +ContainerPort +------------------------------------------------------------------ + +Defines port properties for a container. + + + +.. csv-table:: ContainerPort type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "container_port", ":ref:`ref_uint32`", "", "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536." + + + + + + + +.. _ref_flyteidl.core.DataLoadingConfig: + +DataLoadingConfig +------------------------------------------------------------------ + +This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. +Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path +Any outputs generated by the user container - within output_path are automatically uploaded. + + + +.. csv-table:: DataLoadingConfig type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "enabled", ":ref:`ref_bool`", "", "Flag enables DataLoading Config. If this is not set, data loading will not be used!" + "input_path", ":ref:`ref_string`", "", "File system path (start at root). This folder will contain all the inputs exploded to a separate file. Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format /var/flyte/inputs/y -> Y is a file in Binary format /var/flyte/inputs/z/... -> Note Z itself is a directory More information about the protocol - refer to docs #TODO reference docs here" + "output_path", ":ref:`ref_string`", "", "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" + "format", ":ref:`ref_flyteidl.core.DataLoadingConfig.LiteralMapFormat`", "", "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" + "io_strategy", ":ref:`ref_flyteidl.core.IOStrategy`", "", "" + + + + + + + +.. _ref_flyteidl.core.IOStrategy: + +IOStrategy +------------------------------------------------------------------ + +Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) + + + +.. csv-table:: IOStrategy type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "download_mode", ":ref:`ref_flyteidl.core.IOStrategy.DownloadMode`", "", "Mode to use to manage downloads" + "upload_mode", ":ref:`ref_flyteidl.core.IOStrategy.UploadMode`", "", "Mode to use to manage uploads" + + + + + + + +.. _ref_flyteidl.core.K8sObjectMetadata: + +K8sObjectMetadata +------------------------------------------------------------------ + +Metadata for building a kubernetes object when a task is executed. + + + +.. csv-table:: K8sObjectMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "labels", ":ref:`ref_flyteidl.core.K8sObjectMetadata.LabelsEntry`", "repeated", "Optional labels to add to the pod definition." + "annotations", ":ref:`ref_flyteidl.core.K8sObjectMetadata.AnnotationsEntry`", "repeated", "Optional annotations to add to the pod definition." + + + + + + + +.. _ref_flyteidl.core.K8sObjectMetadata.AnnotationsEntry: + +K8sObjectMetadata.AnnotationsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: K8sObjectMetadata.AnnotationsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.core.K8sObjectMetadata.LabelsEntry: + +K8sObjectMetadata.LabelsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: K8sObjectMetadata.LabelsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.core.K8sPod: + +K8sPod +------------------------------------------------------------------ + +Defines a pod spec and additional pod metadata that is created when a task is executed. + + + +.. csv-table:: K8sPod type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "metadata", ":ref:`ref_flyteidl.core.K8sObjectMetadata`", "", "Contains additional metadata for building a kubernetes pod." + "pod_spec", ":ref:`ref_google.protobuf.Struct`", "", "Defines the primary pod spec created when a task is executed. This should be a JSON-marshalled pod spec, which can be defined in - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + + + + + + + +.. _ref_flyteidl.core.Resources: + +Resources +------------------------------------------------------------------ + +A customizable interface to convey resources requested for a container. This can be interpreted differently for different +container engines. + + + +.. csv-table:: Resources type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "requests", ":ref:`ref_flyteidl.core.Resources.ResourceEntry`", "repeated", "The desired set of resources requested. ResourceNames must be unique within the list." + "limits", ":ref:`ref_flyteidl.core.Resources.ResourceEntry`", "repeated", "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list." + + + + + + + +.. _ref_flyteidl.core.Resources.ResourceEntry: + +Resources.ResourceEntry +------------------------------------------------------------------ + +Encapsulates a resource name and value. + + + +.. csv-table:: Resources.ResourceEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "name", ":ref:`ref_flyteidl.core.Resources.ResourceName`", "", "Resource name." + "value", ":ref:`ref_string`", "", "Value must be a valid k8s quantity. See https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + + + + + + + +.. _ref_flyteidl.core.RuntimeMetadata: + +RuntimeMetadata +------------------------------------------------------------------ + +Runtime information. This is loosely defined to allow for extensibility. + + + +.. csv-table:: RuntimeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "type", ":ref:`ref_flyteidl.core.RuntimeMetadata.RuntimeType`", "", "Type of runtime." + "version", ":ref:`ref_string`", "", "Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations." + "flavor", ":ref:`ref_string`", "", "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + + + + + + + +.. _ref_flyteidl.core.Sql: + +Sql +------------------------------------------------------------------ + +Sql represents a generic sql workload with a statement and dialect. + + + +.. csv-table:: Sql type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "statement", ":ref:`ref_string`", "", "The actual query to run, the query can have templated parameters. We use Flyte's Golang templating format for Query templating. Refer to the templating documentation. https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py For example, insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet select * from my_table where ds = '{{ .Inputs.ds }}'" + "dialect", ":ref:`ref_flyteidl.core.Sql.Dialect`", "", "" + + + + + + + +.. _ref_flyteidl.core.TaskMetadata: + +TaskMetadata +------------------------------------------------------------------ + +Task Metadata + + + +.. csv-table:: TaskMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "discoverable", ":ref:`ref_bool`", "", "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + "runtime", ":ref:`ref_flyteidl.core.RuntimeMetadata`", "", "Runtime information about the task." + "timeout", ":ref:`ref_google.protobuf.Duration`", "", "The overall timeout of a task including user-triggered retries." + "retries", ":ref:`ref_flyteidl.core.RetryStrategy`", "", "Number of retries per task." + "discovery_version", ":ref:`ref_string`", "", "Indicates a logical version to apply to this task for the purpose of discovery." + "deprecated_error_message", ":ref:`ref_string`", "", "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task." + "interruptible", ":ref:`ref_bool`", "", "" + "cache_serializable", ":ref:`ref_bool`", "", "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + "generates_deck", ":ref:`ref_bool`", "", "Indicates whether the task will generate a Deck URI when it finishes executing." + "tags", ":ref:`ref_flyteidl.core.TaskMetadata.TagsEntry`", "repeated", "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + + + + + + + +.. _ref_flyteidl.core.TaskMetadata.TagsEntry: + +TaskMetadata.TagsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: TaskMetadata.TagsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.core.TaskTemplate: + +TaskTemplate +------------------------------------------------------------------ + +A Task structure that uniquely identifies a task in the system +Tasks are registered as a first step in the system. + + + +.. csv-table:: TaskTemplate type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + "type", ":ref:`ref_string`", "", "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory." + "metadata", ":ref:`ref_flyteidl.core.TaskMetadata`", "", "Extra metadata about the task." + "interface", ":ref:`ref_flyteidl.core.TypedInterface`", "", "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures." + "custom", ":ref:`ref_google.protobuf.Struct`", "", "Custom data about the task. This is extensible to allow various plugins in the system." + "container", ":ref:`ref_flyteidl.core.Container`", "", "" + "k8s_pod", ":ref:`ref_flyteidl.core.K8sPod`", "", "" + "sql", ":ref:`ref_flyteidl.core.Sql`", "", "" + "task_type_version", ":ref:`ref_int32`", "", "This can be used to customize task handling at execution time for the same task type." + "security_context", ":ref:`ref_flyteidl.core.SecurityContext`", "", "security_context encapsulates security attributes requested to run this task." + "config", ":ref:`ref_flyteidl.core.TaskTemplate.ConfigEntry`", "repeated", "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system to use as required. reserve the field numbers 1 through 15 for very frequently occurring message elements" + + + + + + + +.. _ref_flyteidl.core.TaskTemplate.ConfigEntry: + +TaskTemplate.ConfigEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: TaskTemplate.ConfigEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.Container.Architecture: + +Container.Architecture +------------------------------------------------------------------ + +Architecture-type the container image supports. + +.. csv-table:: Enum Container.Architecture values + :header: "Name", "Number", "Description" + :widths: auto + + "UNKNOWN", "0", "" + "AMD64", "1", "" + "ARM64", "2", "" + "ARM_V6", "3", "" + "ARM_V7", "4", "" + + + +.. _ref_flyteidl.core.DataLoadingConfig.LiteralMapFormat: + +DataLoadingConfig.LiteralMapFormat +------------------------------------------------------------------ + +LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. +If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. +JSON and YAML do not need any protobuf definitions to read it +All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) + +.. csv-table:: Enum DataLoadingConfig.LiteralMapFormat values + :header: "Name", "Number", "Description" + :widths: auto + + "JSON", "0", "JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html" + "YAML", "1", "" + "PROTO", "2", "Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core" + + + +.. _ref_flyteidl.core.IOStrategy.DownloadMode: + +IOStrategy.DownloadMode +------------------------------------------------------------------ + +Mode to use for downloading + +.. csv-table:: Enum IOStrategy.DownloadMode values + :header: "Name", "Number", "Description" + :widths: auto + + "DOWNLOAD_EAGER", "0", "All data will be downloaded before the main container is executed" + "DOWNLOAD_STREAM", "1", "Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details" + "DO_NOT_DOWNLOAD", "2", "Large objects (offloaded) will not be downloaded" + + + +.. _ref_flyteidl.core.IOStrategy.UploadMode: + +IOStrategy.UploadMode +------------------------------------------------------------------ + +Mode to use for uploading + +.. csv-table:: Enum IOStrategy.UploadMode values + :header: "Name", "Number", "Description" + :widths: auto + + "UPLOAD_ON_EXIT", "0", "All data will be uploaded after the main container exits" + "UPLOAD_EAGER", "1", "Data will be uploaded as it appears. Refer to protocol specification for details" + "DO_NOT_UPLOAD", "2", "Data will not be uploaded, only references will be written" + + + +.. _ref_flyteidl.core.Resources.ResourceName: + +Resources.ResourceName +------------------------------------------------------------------ + +Known resource names. + +.. csv-table:: Enum Resources.ResourceName values + :header: "Name", "Number", "Description" + :widths: auto + + "UNKNOWN", "0", "" + "CPU", "1", "" + "GPU", "2", "" + "MEMORY", "3", "" + "STORAGE", "4", "" + "EPHEMERAL_STORAGE", "5", "For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." + + + +.. _ref_flyteidl.core.RuntimeMetadata.RuntimeType: + +RuntimeMetadata.RuntimeType +------------------------------------------------------------------ + + + +.. csv-table:: Enum RuntimeMetadata.RuntimeType values + :header: "Name", "Number", "Description" + :widths: auto + + "OTHER", "0", "" + "FLYTE_SDK", "1", "" + + + +.. _ref_flyteidl.core.Sql.Dialect: + +Sql.Dialect +------------------------------------------------------------------ + +The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid +expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. +We support the following dialect: ansi, hive. + +.. csv-table:: Enum Sql.Dialect values + :header: "Name", "Number", "Description" + :widths: auto + + "UNDEFINED", "0", "" + "ANSI", "1", "" + "HIVE", "2", "" + "OTHER", "3", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/types.proto: + +flyteidl/core/types.proto +================================================================== + + + + + +.. _ref_flyteidl.core.BlobType: + +BlobType +------------------------------------------------------------------ + +Defines type behavior for blob objects + + + +.. csv-table:: BlobType type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "format", ":ref:`ref_string`", "", "Format can be a free form string understood by SDK/UI etc like csv, parquet etc" + "dimensionality", ":ref:`ref_flyteidl.core.BlobType.BlobDimensionality`", "", "" + + + + + + + +.. _ref_flyteidl.core.EnumType: + +EnumType +------------------------------------------------------------------ + +Enables declaring enum types, with predefined string values +For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish +To provide no defaults, make the first value as undefined. + + + +.. csv-table:: EnumType type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "values", ":ref:`ref_string`", "repeated", "Predefined set of enum values." + + + + + + + +.. _ref_flyteidl.core.Error: + +Error +------------------------------------------------------------------ + +Represents an error thrown from a node. + + + +.. csv-table:: Error type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "failed_node_id", ":ref:`ref_string`", "", "The node id that threw the error." + "message", ":ref:`ref_string`", "", "Error message thrown." + + + + + + + +.. _ref_flyteidl.core.LiteralType: + +LiteralType +------------------------------------------------------------------ + +Defines a strong type to allow type checking between interfaces. + + + +.. csv-table:: LiteralType type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "simple", ":ref:`ref_flyteidl.core.SimpleType`", "", "A simple type that can be compared one-to-one with another." + "schema", ":ref:`ref_flyteidl.core.SchemaType`", "", "A complex type that requires matching of inner fields." + "collection_type", ":ref:`ref_flyteidl.core.LiteralType`", "", "Defines the type of the value of a collection. Only homogeneous collections are allowed." + "map_value_type", ":ref:`ref_flyteidl.core.LiteralType`", "", "Defines the type of the value of a map type. The type of the key is always a string." + "blob", ":ref:`ref_flyteidl.core.BlobType`", "", "A blob might have specialized implementation details depending on associated metadata." + "enum_type", ":ref:`ref_flyteidl.core.EnumType`", "", "Defines an enum with pre-defined string values." + "structured_dataset_type", ":ref:`ref_flyteidl.core.StructuredDatasetType`", "", "Generalized schema support" + "union_type", ":ref:`ref_flyteidl.core.UnionType`", "", "Defines an union type with pre-defined LiteralTypes." + "metadata", ":ref:`ref_google.protobuf.Struct`", "", "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type." + "annotation", ":ref:`ref_flyteidl.core.TypeAnnotation`", "", "This field contains arbitrary data that might have special semantic meaning for the client but does not effect internal flyte behavior." + "structure", ":ref:`ref_flyteidl.core.TypeStructure`", "", "Hints to improve type matching." + + + + + + + +.. _ref_flyteidl.core.OutputReference: + +OutputReference +------------------------------------------------------------------ + +A reference to an output produced by a node. The type can be retrieved -and validated- from +the underlying interface of the node. + + + +.. csv-table:: OutputReference type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "node_id", ":ref:`ref_string`", "", "Node id must exist at the graph layer." + "var", ":ref:`ref_string`", "", "Variable name must refer to an output variable for the node." + + + + + + + +.. _ref_flyteidl.core.SchemaType: + +SchemaType +------------------------------------------------------------------ + +Defines schema columns and types to strongly type-validate schemas interoperability. + + + +.. csv-table:: SchemaType type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "columns", ":ref:`ref_flyteidl.core.SchemaType.SchemaColumn`", "repeated", "A list of ordered columns this schema comprises of." + + + + + + + +.. _ref_flyteidl.core.SchemaType.SchemaColumn: + +SchemaType.SchemaColumn +------------------------------------------------------------------ + + + + + +.. csv-table:: SchemaType.SchemaColumn type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "name", ":ref:`ref_string`", "", "A unique name -within the schema type- for the column" + "type", ":ref:`ref_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType`", "", "The column type. This allows a limited set of types currently." + + + + + + + +.. _ref_flyteidl.core.StructuredDatasetType: + +StructuredDatasetType +------------------------------------------------------------------ + + + + + +.. csv-table:: StructuredDatasetType type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "columns", ":ref:`ref_flyteidl.core.StructuredDatasetType.DatasetColumn`", "repeated", "A list of ordered columns this schema comprises of." + "format", ":ref:`ref_string`", "", "This is the storage format, the format of the bits at rest parquet, feather, csv, etc. For two types to be compatible, the format will need to be an exact match." + "external_schema_type", ":ref:`ref_string`", "", "This is a string representing the type that the bytes in external_schema_bytes are formatted in. This is an optional field that will not be used for type checking." + "external_schema_bytes", ":ref:`ref_bytes`", "", "The serialized bytes of a third-party schema library like Arrow. This is an optional field that will not be used for type checking." + + + + + + + +.. _ref_flyteidl.core.StructuredDatasetType.DatasetColumn: + +StructuredDatasetType.DatasetColumn +------------------------------------------------------------------ + + + + + +.. csv-table:: StructuredDatasetType.DatasetColumn type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "name", ":ref:`ref_string`", "", "A unique name within the schema type for the column." + "literal_type", ":ref:`ref_flyteidl.core.LiteralType`", "", "The column type." + + + + + + + +.. _ref_flyteidl.core.TypeAnnotation: + +TypeAnnotation +------------------------------------------------------------------ + +TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. + + + +.. csv-table:: TypeAnnotation type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "annotations", ":ref:`ref_google.protobuf.Struct`", "", "A arbitrary JSON payload to describe a type." + + + + + + + +.. _ref_flyteidl.core.TypeStructure: + +TypeStructure +------------------------------------------------------------------ + +Hints to improve type matching +e.g. allows distinguishing output from custom type transformers +even if the underlying IDL serialization matches. + + + +.. csv-table:: TypeStructure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "tag", ":ref:`ref_string`", "", "Must exactly match for types to be castable" + + + + + + + +.. _ref_flyteidl.core.UnionType: + +UnionType +------------------------------------------------------------------ + +Defines a tagged union type, also known as a variant (and formally as the sum type). + +A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag +A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by +storing the varaint's tag with the literal value and can be examined in runtime. + +Type S is typically written as +S := Apple A | Banana B | Cantaloupe C | ... + +Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: +Optional X := X | Null + +See also: https://en.wikipedia.org/wiki/Tagged_union + + + +.. csv-table:: UnionType type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "variants", ":ref:`ref_flyteidl.core.LiteralType`", "repeated", "Predefined set of variants in union." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.BlobType.BlobDimensionality: + +BlobType.BlobDimensionality +------------------------------------------------------------------ + + + +.. csv-table:: Enum BlobType.BlobDimensionality values + :header: "Name", "Number", "Description" + :widths: auto + + "SINGLE", "0", "" + "MULTIPART", "1", "" + + + +.. _ref_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType: + +SchemaType.SchemaColumn.SchemaColumnType +------------------------------------------------------------------ + + + +.. csv-table:: Enum SchemaType.SchemaColumn.SchemaColumnType values + :header: "Name", "Number", "Description" + :widths: auto + + "INTEGER", "0", "" + "FLOAT", "1", "" + "STRING", "2", "" + "BOOLEAN", "3", "" + "DATETIME", "4", "" + "DURATION", "5", "" + + + +.. _ref_flyteidl.core.SimpleType: + +SimpleType +------------------------------------------------------------------ + +Define a set of simple types. + +.. csv-table:: Enum SimpleType values + :header: "Name", "Number", "Description" + :widths: auto + + "NONE", "0", "" + "INTEGER", "1", "" + "FLOAT", "2", "" + "STRING", "3", "" + "BOOLEAN", "4", "" + "DATETIME", "5", "" + "DURATION", "6", "" + "BINARY", "7", "" + "ERROR", "8", "" + "STRUCT", "9", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/workflow.proto: + +flyteidl/core/workflow.proto +================================================================== + + + + + +.. _ref_flyteidl.core.Alias: + +Alias +------------------------------------------------------------------ + +Links a variable to an alias. + + + +.. csv-table:: Alias type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "var", ":ref:`ref_string`", "", "Must match one of the output variable names on a node." + "alias", ":ref:`ref_string`", "", "A workflow-level unique alias that downstream nodes can refer to in their input." + + + + + + + +.. _ref_flyteidl.core.ApproveCondition: + +ApproveCondition +------------------------------------------------------------------ + +ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean +signal with the provided signal_id. + + + +.. csv-table:: ApproveCondition type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "signal_id", ":ref:`ref_string`", "", "A unique identifier for the requested boolean signal." + + + + + + + +.. _ref_flyteidl.core.BranchNode: + +BranchNode +------------------------------------------------------------------ + +BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). + + + +.. csv-table:: BranchNode type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "if_else", ":ref:`ref_flyteidl.core.IfElseBlock`", "", "+required" + + + + + + + +.. _ref_flyteidl.core.GateNode: + +GateNode +------------------------------------------------------------------ + +GateNode refers to the condition that is required for the gate to successfully complete. + + + +.. csv-table:: GateNode type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "approve", ":ref:`ref_flyteidl.core.ApproveCondition`", "", "ApproveCondition represents a dependency on an external approval provided by a boolean signal." + "signal", ":ref:`ref_flyteidl.core.SignalCondition`", "", "SignalCondition represents a dependency on an signal." + "sleep", ":ref:`ref_flyteidl.core.SleepCondition`", "", "SleepCondition represents a dependency on waiting for the specified duration." + + + + + + + +.. _ref_flyteidl.core.IfBlock: + +IfBlock +------------------------------------------------------------------ + +Defines a condition and the execution unit that should be executed if the condition is satisfied. + + + +.. csv-table:: IfBlock type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "condition", ":ref:`ref_flyteidl.core.BooleanExpression`", "", "" + "then_node", ":ref:`ref_flyteidl.core.Node`", "", "" + + + + + + + +.. _ref_flyteidl.core.IfElseBlock: + +IfElseBlock +------------------------------------------------------------------ + +Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +If no conditions were satisfied, the else_node or the error will execute. + + + +.. csv-table:: IfElseBlock type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "case", ":ref:`ref_flyteidl.core.IfBlock`", "", "+required. First condition to evaluate." + "other", ":ref:`ref_flyteidl.core.IfBlock`", "repeated", "+optional. Additional branches to evaluate." + "else_node", ":ref:`ref_flyteidl.core.Node`", "", "The node to execute in case none of the branches were taken." + "error", ":ref:`ref_flyteidl.core.Error`", "", "An error to throw in case none of the branches were taken." + + + + + + + +.. _ref_flyteidl.core.Node: + +Node +------------------------------------------------------------------ + +A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +node. + + + +.. csv-table:: Node type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_string`", "", "A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved node ids that cannot be used by other nodes." + "metadata", ":ref:`ref_flyteidl.core.NodeMetadata`", "", "Extra metadata about the node." + "inputs", ":ref:`ref_flyteidl.core.Binding`", "repeated", "Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fulfilled." + "upstream_node_ids", ":ref:`ref_string`", "repeated", "+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs field." + "output_aliases", ":ref:`ref_flyteidl.core.Alias`", "repeated", "+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified." + "task_node", ":ref:`ref_flyteidl.core.TaskNode`", "", "Information about the Task to execute in this node." + "workflow_node", ":ref:`ref_flyteidl.core.WorkflowNode`", "", "Information about the Workflow to execute in this mode." + "branch_node", ":ref:`ref_flyteidl.core.BranchNode`", "", "Information about the branch node to evaluate in this node." + "gate_node", ":ref:`ref_flyteidl.core.GateNode`", "", "Information about the condition to evaluate in this node." + + + + + + + +.. _ref_flyteidl.core.NodeMetadata: + +NodeMetadata +------------------------------------------------------------------ + +Defines extra information about the Node. + + + +.. csv-table:: NodeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "name", ":ref:`ref_string`", "", "A friendly name for the Node" + "timeout", ":ref:`ref_google.protobuf.Duration`", "", "The overall timeout of a task." + "retries", ":ref:`ref_flyteidl.core.RetryStrategy`", "", "Number of retries per task." + "interruptible", ":ref:`ref_bool`", "", "" + + + + + + + +.. _ref_flyteidl.core.SignalCondition: + +SignalCondition +------------------------------------------------------------------ + +SignalCondition represents a dependency on an signal. + + + +.. csv-table:: SignalCondition type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "signal_id", ":ref:`ref_string`", "", "A unique identifier for the requested signal." + "type", ":ref:`ref_flyteidl.core.LiteralType`", "", "A type denoting the required value type for this signal." + "output_variable_name", ":ref:`ref_string`", "", "The variable name for the signal value in this nodes outputs." + + + + + + + +.. _ref_flyteidl.core.SleepCondition: + +SleepCondition +------------------------------------------------------------------ + +SleepCondition represents a dependency on waiting for the specified duration. + + + +.. csv-table:: SleepCondition type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "duration", ":ref:`ref_google.protobuf.Duration`", "", "The overall duration for this sleep." + + + + + + + +.. _ref_flyteidl.core.TaskNode: + +TaskNode +------------------------------------------------------------------ + +Refers to the task that the Node is to execute. + + + +.. csv-table:: TaskNode type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "reference_id", ":ref:`ref_flyteidl.core.Identifier`", "", "A globally unique identifier for the task." + "overrides", ":ref:`ref_flyteidl.core.TaskNodeOverrides`", "", "Optional overrides applied at task execution time." + + + + + + + +.. _ref_flyteidl.core.TaskNodeOverrides: + +TaskNodeOverrides +------------------------------------------------------------------ + +Optional task node overrides that will be applied at task execution time. + + + +.. csv-table:: TaskNodeOverrides type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "resources", ":ref:`ref_flyteidl.core.Resources`", "", "A customizable interface to convey resources requested for a task container." + + + + + + + +.. _ref_flyteidl.core.WorkflowMetadata: + +WorkflowMetadata +------------------------------------------------------------------ + +This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not +percolate down to child entities (like tasks) launched by the workflow. + + + +.. csv-table:: WorkflowMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "quality_of_service", ":ref:`ref_flyteidl.core.QualityOfService`", "", "Indicates the runtime priority of workflow executions." + "on_failure", ":ref:`ref_flyteidl.core.WorkflowMetadata.OnFailurePolicy`", "", "Defines how the system should behave when a failure is detected in the workflow execution." + "tags", ":ref:`ref_flyteidl.core.WorkflowMetadata.TagsEntry`", "repeated", "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + + + + + + + +.. _ref_flyteidl.core.WorkflowMetadata.TagsEntry: + +WorkflowMetadata.TagsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: WorkflowMetadata.TagsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.core.WorkflowMetadataDefaults: + +WorkflowMetadataDefaults +------------------------------------------------------------------ + +The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to +a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it +is only relevant when a task executes. The settings here are the defaults that are passed to all nodes +unless explicitly overridden at the node layer. +If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be +added to both this object and the WorkflowMetadata object above. + + + +.. csv-table:: WorkflowMetadataDefaults type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "interruptible", ":ref:`ref_bool`", "", "Whether child nodes of the workflow are interruptible." + + + + + + + +.. _ref_flyteidl.core.WorkflowNode: + +WorkflowNode +------------------------------------------------------------------ + +Refers to a the workflow the node is to execute. + + + +.. csv-table:: WorkflowNode type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "launchplan_ref", ":ref:`ref_flyteidl.core.Identifier`", "", "A globally unique identifier for the launch plan." + "sub_workflow_ref", ":ref:`ref_flyteidl.core.Identifier`", "", "Reference to a subworkflow, that should be defined with the compiler context" + + + + + + + +.. _ref_flyteidl.core.WorkflowTemplate: + +WorkflowTemplate +------------------------------------------------------------------ + +Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +directed acyclic graph. + + + +.. csv-table:: WorkflowTemplate type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "A globally unique identifier for the workflow." + "metadata", ":ref:`ref_flyteidl.core.WorkflowMetadata`", "", "Extra metadata about the workflow." + "interface", ":ref:`ref_flyteidl.core.TypedInterface`", "", "Defines a strongly typed interface for the Workflow. This can include some optional parameters." + "nodes", ":ref:`ref_flyteidl.core.Node`", "repeated", "A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs." + "outputs", ":ref:`ref_flyteidl.core.Binding`", "repeated", "A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task." + "failure_node", ":ref:`ref_flyteidl.core.Node`", "", "+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named 'error' of type pb.lyft.flyte.core.Error." + "metadata_defaults", ":ref:`ref_flyteidl.core.WorkflowMetadataDefaults`", "", "workflow defaults" + + + + + + +.. + end messages + + + +.. _ref_flyteidl.core.WorkflowMetadata.OnFailurePolicy: + +WorkflowMetadata.OnFailurePolicy +------------------------------------------------------------------ + +Failure Handling Strategy + +.. csv-table:: Enum WorkflowMetadata.OnFailurePolicy values + :header: "Name", "Number", "Description" + :widths: auto + + "FAIL_IMMEDIATELY", "0", "FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically abort all currently running nodes and clean up resources before finally marking the workflow executions as failed." + "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", "1", "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. Other nodes that will be executed to completion before cleaning up resources and marking the workflow execution as failed." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/core/workflow_closure.proto: + +flyteidl/core/workflow_closure.proto +================================================================== + + + + + +.. _ref_flyteidl.core.WorkflowClosure: + +WorkflowClosure +------------------------------------------------------------------ + +Defines an enclosed package of workflow and tasks it references. + + + +.. csv-table:: WorkflowClosure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "workflow", ":ref:`ref_flyteidl.core.WorkflowTemplate`", "", "required. Workflow template." + "tasks", ":ref:`ref_flyteidl.core.TaskTemplate`", "repeated", "optional. A collection of tasks referenced by the workflow. Only needed if the workflow references tasks." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/timestamp.proto: + +google/protobuf/timestamp.proto +================================================================== + + + + + +.. _ref_google.protobuf.Timestamp: + +Timestamp +------------------------------------------------------------------ + +A Timestamp represents a point in time independent of any time zone or local +calendar, encoded as a count of seconds and fractions of seconds at +nanosecond resolution. The count is relative to an epoch at UTC midnight on +January 1, 1970, in the proleptic Gregorian calendar which extends the +Gregorian calendar backwards to year one. + +All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +second table is needed for interpretation, using a [24-hour linear +smear](https://developers.google.com/time/smear). + +The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +restricting to that range, we ensure that we can convert to and from [RFC +3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + +# Examples + +Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + +Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + +Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + +Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + +Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + +Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + +# JSON Mapping + +In JSON format, the Timestamp type is encoded as a string in the +[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +where {year} is always expressed using four digits while {month}, {day}, +{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +is required. A proto3 JSON serializer should always use UTC (as indicated by +"Z") when printing the Timestamp type and a proto3 JSON parser should be +able to accept both UTC and other timezones (as indicated by an offset). + +For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +01:30 UTC on January 15, 2017. + +In JavaScript, one can convert a Date object to this format using the +standard +[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +method. In Python, a standard `datetime.datetime` object can be converted +to this format using +[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +the Joda Time's [`ISODateTimeFormat.dateTime()`]( +http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D +) to obtain a formatter capable of generating timestamps in this format. + + + +.. csv-table:: Timestamp type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "seconds", ":ref:`ref_int64`", "", "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive." + "nanos", ":ref:`ref_int32`", "", "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/duration.proto: + +google/protobuf/duration.proto +================================================================== + + + + + +.. _ref_google.protobuf.Duration: + +Duration +------------------------------------------------------------------ + +A Duration represents a signed, fixed-length span of time represented +as a count of seconds and fractions of seconds at nanosecond +resolution. It is independent of any calendar and concepts like "day" +or "month". It is related to Timestamp in that the difference between +two Timestamp values is a Duration and it can be added or subtracted +from a Timestamp. Range is approximately +-10,000 years. + +# Examples + +Example 1: Compute Duration from two Timestamps in pseudo code. + + Timestamp start = ...; + Timestamp end = ...; + Duration duration = ...; + + duration.seconds = end.seconds - start.seconds; + duration.nanos = end.nanos - start.nanos; + + if (duration.seconds < 0 && duration.nanos > 0) { + duration.seconds += 1; + duration.nanos -= 1000000000; + } else if (duration.seconds > 0 && duration.nanos < 0) { + duration.seconds -= 1; + duration.nanos += 1000000000; + } + +Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + + Timestamp start = ...; + Duration duration = ...; + Timestamp end = ...; + + end.seconds = start.seconds + duration.seconds; + end.nanos = start.nanos + duration.nanos; + + if (end.nanos < 0) { + end.seconds -= 1; + end.nanos += 1000000000; + } else if (end.nanos >= 1000000000) { + end.seconds += 1; + end.nanos -= 1000000000; + } + +Example 3: Compute Duration from datetime.timedelta in Python. + + td = datetime.timedelta(days=3, minutes=10) + duration = Duration() + duration.FromTimedelta(td) + +# JSON Mapping + +In JSON format, the Duration type is encoded as a string rather than an +object, where the string ends in the suffix "s" (indicating seconds) and +is preceded by the number of seconds, with nanoseconds expressed as +fractional seconds. For example, 3 seconds with 0 nanoseconds should be +encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +microsecond should be expressed in JSON format as "3.000001s". + + + +.. csv-table:: Duration type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "seconds", ":ref:`ref_int64`", "", "Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + "nanos", ":ref:`ref_int32`", "", "Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/struct.proto: + +google/protobuf/struct.proto +================================================================== + + + + + +.. _ref_google.protobuf.ListValue: + +ListValue +------------------------------------------------------------------ + +`ListValue` is a wrapper around a repeated field of values. + +The JSON representation for `ListValue` is JSON array. + + + +.. csv-table:: ListValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "values", ":ref:`ref_google.protobuf.Value`", "repeated", "Repeated field of dynamically typed values." + + + + + + + +.. _ref_google.protobuf.Struct: + +Struct +------------------------------------------------------------------ + +`Struct` represents a structured data value, consisting of fields +which map to dynamically typed values. In some languages, `Struct` +might be supported by a native representation. For example, in +scripting languages like JS a struct is represented as an +object. The details of that representation are described together +with the proto support for the language. + +The JSON representation for `Struct` is JSON object. + + + +.. csv-table:: Struct type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "fields", ":ref:`ref_google.protobuf.Struct.FieldsEntry`", "repeated", "Unordered map of dynamically typed values." + + + + + + + +.. _ref_google.protobuf.Struct.FieldsEntry: + +Struct.FieldsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: Struct.FieldsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_google.protobuf.Value`", "", "" + + + + + + + +.. _ref_google.protobuf.Value: + +Value +------------------------------------------------------------------ + +`Value` represents a dynamically typed value which can be either +null, a number, a string, a boolean, a recursive struct value, or a +list of values. A producer of value is expected to set one of these +variants. Absence of any variant indicates an error. + +The JSON representation for `Value` is JSON value. + + + +.. csv-table:: Value type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "null_value", ":ref:`ref_google.protobuf.NullValue`", "", "Represents a null value." + "number_value", ":ref:`ref_double`", "", "Represents a double value." + "string_value", ":ref:`ref_string`", "", "Represents a string value." + "bool_value", ":ref:`ref_bool`", "", "Represents a boolean value." + "struct_value", ":ref:`ref_google.protobuf.Struct`", "", "Represents a structured value." + "list_value", ":ref:`ref_google.protobuf.ListValue`", "", "Represents a repeated `Value`." + + + + + + +.. + end messages + + + +.. _ref_google.protobuf.NullValue: + +NullValue +------------------------------------------------------------------ + +`NullValue` is a singleton enumeration to represent the null value for the +`Value` type union. + + The JSON representation for `NullValue` is JSON `null`. + +.. csv-table:: Enum NullValue values + :header: "Name", "Number", "Description" + :widths: auto + + "NULL_VALUE", "0", "Null value." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + +.. _ref_scala_types: + +Scalar Value Types +================== + + + +.. _ref_double: + +double +----------------------------- + + + +.. csv-table:: double language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "double", "double", "double", "float", "float64", "double", "float", "Float" + + + +.. _ref_float: + +float +----------------------------- + + + +.. csv-table:: float language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "float", "float", "float", "float", "float32", "float", "float", "Float" + + + +.. _ref_int32: + +int32 +----------------------------- + +Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. + +.. csv-table:: int32 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "int32", "int32", "int", "int", "int32", "int", "integer", "Bignum or Fixnum (as required)" + + + +.. _ref_int64: + +int64 +----------------------------- + +Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. + +.. csv-table:: int64 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "int64", "int64", "long", "int/long", "int64", "long", "integer/string", "Bignum" + + + +.. _ref_uint32: + +uint32 +----------------------------- + +Uses variable-length encoding. + +.. csv-table:: uint32 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "uint32", "uint32", "int", "int/long", "uint32", "uint", "integer", "Bignum or Fixnum (as required)" + + + +.. _ref_uint64: + +uint64 +----------------------------- + +Uses variable-length encoding. + +.. csv-table:: uint64 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "uint64", "uint64", "long", "int/long", "uint64", "ulong", "integer/string", "Bignum or Fixnum (as required)" + + + +.. _ref_sint32: + +sint32 +----------------------------- + +Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. + +.. csv-table:: sint32 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "sint32", "int32", "int", "int", "int32", "int", "integer", "Bignum or Fixnum (as required)" + + + +.. _ref_sint64: + +sint64 +----------------------------- + +Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. + +.. csv-table:: sint64 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "sint64", "int64", "long", "int/long", "int64", "long", "integer/string", "Bignum" + + + +.. _ref_fixed32: + +fixed32 +----------------------------- + +Always four bytes. More efficient than uint32 if values are often greater than 2^28. + +.. csv-table:: fixed32 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "fixed32", "uint32", "int", "int", "uint32", "uint", "integer", "Bignum or Fixnum (as required)" + + + +.. _ref_fixed64: + +fixed64 +----------------------------- + +Always eight bytes. More efficient than uint64 if values are often greater than 2^56. + +.. csv-table:: fixed64 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "fixed64", "uint64", "long", "int/long", "uint64", "ulong", "integer/string", "Bignum" + + + +.. _ref_sfixed32: + +sfixed32 +----------------------------- + +Always four bytes. + +.. csv-table:: sfixed32 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "sfixed32", "int32", "int", "int", "int32", "int", "integer", "Bignum or Fixnum (as required)" + + + +.. _ref_sfixed64: + +sfixed64 +----------------------------- + +Always eight bytes. + +.. csv-table:: sfixed64 language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "sfixed64", "int64", "long", "int/long", "int64", "long", "integer/string", "Bignum" + + + +.. _ref_bool: + +bool +----------------------------- + + + +.. csv-table:: bool language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "bool", "bool", "boolean", "boolean", "bool", "bool", "boolean", "TrueClass/FalseClass" + + + +.. _ref_string: + +string +----------------------------- + +A string must always contain UTF-8 encoded or 7-bit ASCII text. + +.. csv-table:: string language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "string", "string", "String", "str/unicode", "string", "string", "string", "String (UTF-8)" + + + +.. _ref_bytes: + +bytes +----------------------------- + +May contain any arbitrary sequence of bytes. + +.. csv-table:: bytes language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "bytes", "string", "ByteString", "str", "[]byte", "ByteString", "string", "String (ASCII-8BIT)" + + +.. + end scalars \ No newline at end of file diff --git a/flyteidl/protos/docs/core/index.rst b/flyteidl/protos/docs/core/index.rst new file mode 100644 index 0000000000..7d2ce06617 --- /dev/null +++ b/flyteidl/protos/docs/core/index.rst @@ -0,0 +1,15 @@ +Core Flyte language specification +================================= + +Protocol buffers provide details about core data +structures like :ref:`workflows `, :ref:`tasks `, :ref:`nodes `, and Literals. They are the specifications +of the various entities in Flyte and the type system. + +`Core raw protos `__ + +.. toctree:: + :maxdepth: 1 + :caption: core + :name: coretoc + + core diff --git a/flyteidl/protos/docs/datacatalog/datacatalog.rst b/flyteidl/protos/docs/datacatalog/datacatalog.rst new file mode 100644 index 0000000000..a699b88378 --- /dev/null +++ b/flyteidl/protos/docs/datacatalog/datacatalog.rst @@ -0,0 +1,1313 @@ +###################### +Protocol Documentation +###################### + + + + +.. _ref_flyteidl/datacatalog/datacatalog.proto: + +flyteidl/datacatalog/datacatalog.proto +================================================================== + + + + + +.. _ref_datacatalog.AddTagRequest: + +AddTagRequest +------------------------------------------------------------------ + +Request message for tagging an Artifact. + + + +.. csv-table:: AddTagRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "tag", ":ref:`ref_datacatalog.Tag`", "", "" + + + + + + + +.. _ref_datacatalog.AddTagResponse: + +AddTagResponse +------------------------------------------------------------------ + +Response message for tagging an Artifact. + + + + + + + + +.. _ref_datacatalog.Artifact: + +Artifact +------------------------------------------------------------------ + +Artifact message. It is composed of several string fields. + + + +.. csv-table:: Artifact type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_string`", "", "The unique ID of the artifact" + "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "The Dataset that the artifact belongs to" + "data", ":ref:`ref_datacatalog.ArtifactData`", "repeated", "A list of data that is associated with the artifact" + "metadata", ":ref:`ref_datacatalog.Metadata`", "", "Free-form metadata associated with the artifact" + "partitions", ":ref:`ref_datacatalog.Partition`", "repeated", "" + "tags", ":ref:`ref_datacatalog.Tag`", "repeated", "" + "created_at", ":ref:`ref_google.protobuf.Timestamp`", "", "creation timestamp of artifact, autogenerated by service" + + + + + + + +.. _ref_datacatalog.ArtifactData: + +ArtifactData +------------------------------------------------------------------ + +ArtifactData that belongs to an artifact + + + +.. csv-table:: ArtifactData type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "name", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_flyteidl.core.Literal`", "", "" + + + + + + + +.. _ref_datacatalog.ArtifactPropertyFilter: + +ArtifactPropertyFilter +------------------------------------------------------------------ + +Artifact properties we can filter by + + + +.. csv-table:: ArtifactPropertyFilter type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "artifact_id", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.CreateArtifactRequest: + +CreateArtifactRequest +------------------------------------------------------------------ + +Request message for creating an Artifact and its associated artifact Data. + + + +.. csv-table:: CreateArtifactRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "artifact", ":ref:`ref_datacatalog.Artifact`", "", "" + + + + + + + +.. _ref_datacatalog.CreateArtifactResponse: + +CreateArtifactResponse +------------------------------------------------------------------ + +Response message for creating an Artifact. + + + + + + + + +.. _ref_datacatalog.CreateDatasetRequest: + +CreateDatasetRequest +------------------------------------------------------------------ + +Request message for creating a Dataset. + + + +.. csv-table:: CreateDatasetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset", ":ref:`ref_datacatalog.Dataset`", "", "" + + + + + + + +.. _ref_datacatalog.CreateDatasetResponse: + +CreateDatasetResponse +------------------------------------------------------------------ + +Response message for creating a Dataset + + + + + + + + +.. _ref_datacatalog.Dataset: + +Dataset +------------------------------------------------------------------ + +Dataset message. It is uniquely identified by DatasetID. + + + +.. csv-table:: Dataset type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_datacatalog.DatasetID`", "", "" + "metadata", ":ref:`ref_datacatalog.Metadata`", "", "" + "partitionKeys", ":ref:`ref_string`", "repeated", "" + + + + + + + +.. _ref_datacatalog.DatasetID: + +DatasetID +------------------------------------------------------------------ + +DatasetID message that is composed of several string fields. + + + +.. csv-table:: DatasetID type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "The name of the project" + "name", ":ref:`ref_string`", "", "The name of the dataset" + "domain", ":ref:`ref_string`", "", "The domain (eg. environment)" + "version", ":ref:`ref_string`", "", "Version of the data schema" + "UUID", ":ref:`ref_string`", "", "UUID for the dataset (if set the above fields are optional)" + + + + + + + +.. _ref_datacatalog.DatasetPropertyFilter: + +DatasetPropertyFilter +------------------------------------------------------------------ + +Dataset properties we can filter by + + + +.. csv-table:: DatasetPropertyFilter type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "" + "name", ":ref:`ref_string`", "", "" + "domain", ":ref:`ref_string`", "", "" + "version", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.FilterExpression: + +FilterExpression +------------------------------------------------------------------ + +Filter expression that is composed of a combination of single filters + + + +.. csv-table:: FilterExpression type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "filters", ":ref:`ref_datacatalog.SinglePropertyFilter`", "repeated", "" + + + + + + + +.. _ref_datacatalog.GetArtifactRequest: + +GetArtifactRequest +------------------------------------------------------------------ + +Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that +can be one of artifact_id or tag. The result returned will include the artifact data and metadata +associated with the artifact. + + + +.. csv-table:: GetArtifactRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "" + "artifact_id", ":ref:`ref_string`", "", "" + "tag_name", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.GetArtifactResponse: + +GetArtifactResponse +------------------------------------------------------------------ + +Response message for retrieving an Artifact. The result returned will include the artifact data +and metadata associated with the artifact. + + + +.. csv-table:: GetArtifactResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "artifact", ":ref:`ref_datacatalog.Artifact`", "", "" + + + + + + + +.. _ref_datacatalog.GetDatasetRequest: + +GetDatasetRequest +------------------------------------------------------------------ + +Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier +which is a combination of several fields. + + + +.. csv-table:: GetDatasetRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "" + + + + + + + +.. _ref_datacatalog.GetDatasetResponse: + +GetDatasetResponse +------------------------------------------------------------------ + +Response message for retrieving a Dataset. The response will include the metadata for the +Dataset. + + + +.. csv-table:: GetDatasetResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset", ":ref:`ref_datacatalog.Dataset`", "", "" + + + + + + + +.. _ref_datacatalog.GetOrExtendReservationRequest: + +GetOrExtendReservationRequest +------------------------------------------------------------------ + +Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance. + + + +.. csv-table:: GetOrExtendReservationRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "reservation_id", ":ref:`ref_datacatalog.ReservationID`", "", "" + "owner_id", ":ref:`ref_string`", "", "" + "heartbeat_interval", ":ref:`ref_google.protobuf.Duration`", "", "Requested reservation extension heartbeat interval" + + + + + + + +.. _ref_datacatalog.GetOrExtendReservationResponse: + +GetOrExtendReservationResponse +------------------------------------------------------------------ + +Response including either a newly minted reservation or the existing reservation + + + +.. csv-table:: GetOrExtendReservationResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "reservation", ":ref:`ref_datacatalog.Reservation`", "", "" + + + + + + + +.. _ref_datacatalog.KeyValuePair: + +KeyValuePair +------------------------------------------------------------------ + + + + + +.. csv-table:: KeyValuePair type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.ListArtifactsRequest: + +ListArtifactsRequest +------------------------------------------------------------------ + +List the artifacts that belong to the Dataset, optionally filtered using filtered expression. + + + +.. csv-table:: ListArtifactsRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "Use a datasetID for which you want to retrieve the artifacts" + "filter", ":ref:`ref_datacatalog.FilterExpression`", "", "Apply the filter expression to this query" + "pagination", ":ref:`ref_datacatalog.PaginationOptions`", "", "Pagination options to get a page of artifacts" + + + + + + + +.. _ref_datacatalog.ListArtifactsResponse: + +ListArtifactsResponse +------------------------------------------------------------------ + +Response to list artifacts + + + +.. csv-table:: ListArtifactsResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "artifacts", ":ref:`ref_datacatalog.Artifact`", "repeated", "The list of artifacts" + "next_token", ":ref:`ref_string`", "", "Token to use to request the next page, pass this into the next requests PaginationOptions" + + + + + + + +.. _ref_datacatalog.ListDatasetsRequest: + +ListDatasetsRequest +------------------------------------------------------------------ + +List the datasets for the given query + + + +.. csv-table:: ListDatasetsRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "filter", ":ref:`ref_datacatalog.FilterExpression`", "", "Apply the filter expression to this query" + "pagination", ":ref:`ref_datacatalog.PaginationOptions`", "", "Pagination options to get a page of datasets" + + + + + + + +.. _ref_datacatalog.ListDatasetsResponse: + +ListDatasetsResponse +------------------------------------------------------------------ + +List the datasets response with token for next pagination + + + +.. csv-table:: ListDatasetsResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "datasets", ":ref:`ref_datacatalog.Dataset`", "repeated", "The list of datasets" + "next_token", ":ref:`ref_string`", "", "Token to use to request the next page, pass this into the next requests PaginationOptions" + + + + + + + +.. _ref_datacatalog.Metadata: + +Metadata +------------------------------------------------------------------ + +Metadata representation for artifacts and datasets + + + +.. csv-table:: Metadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key_map", ":ref:`ref_datacatalog.Metadata.KeyMapEntry`", "repeated", "key map is a dictionary of key/val strings that represent metadata" + + + + + + + +.. _ref_datacatalog.Metadata.KeyMapEntry: + +Metadata.KeyMapEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: Metadata.KeyMapEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.PaginationOptions: + +PaginationOptions +------------------------------------------------------------------ + +Pagination options for making list requests + + + +.. csv-table:: PaginationOptions type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "limit", ":ref:`ref_uint32`", "", "the max number of results to return" + "token", ":ref:`ref_string`", "", "the token to pass to fetch the next page" + "sortKey", ":ref:`ref_datacatalog.PaginationOptions.SortKey`", "", "the property that we want to sort the results by" + "sortOrder", ":ref:`ref_datacatalog.PaginationOptions.SortOrder`", "", "the sort order of the results" + + + + + + + +.. _ref_datacatalog.Partition: + +Partition +------------------------------------------------------------------ + +An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair + + + +.. csv-table:: Partition type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.PartitionPropertyFilter: + +PartitionPropertyFilter +------------------------------------------------------------------ + +Partition properties we can filter by + + + +.. csv-table:: PartitionPropertyFilter type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key_val", ":ref:`ref_datacatalog.KeyValuePair`", "", "" + + + + + + + +.. _ref_datacatalog.ReleaseReservationRequest: + +ReleaseReservationRequest +------------------------------------------------------------------ + +Request to release reservation + + + +.. csv-table:: ReleaseReservationRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "reservation_id", ":ref:`ref_datacatalog.ReservationID`", "", "" + "owner_id", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.ReleaseReservationResponse: + +ReleaseReservationResponse +------------------------------------------------------------------ + +Response to release reservation + + + + + + + + +.. _ref_datacatalog.Reservation: + +Reservation +------------------------------------------------------------------ + +A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. + + + +.. csv-table:: Reservation type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "reservation_id", ":ref:`ref_datacatalog.ReservationID`", "", "" + "owner_id", ":ref:`ref_string`", "", "" + "heartbeat_interval", ":ref:`ref_google.protobuf.Duration`", "", "Recommended heartbeat interval to extend reservation" + "expires_at", ":ref:`ref_google.protobuf.Timestamp`", "", "Expiration timestamp of this reservation" + "metadata", ":ref:`ref_datacatalog.Metadata`", "", "" + + + + + + + +.. _ref_datacatalog.ReservationID: + +ReservationID +------------------------------------------------------------------ + +ReservationID message that is composed of several string fields. + + + +.. csv-table:: ReservationID type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset_id", ":ref:`ref_datacatalog.DatasetID`", "", "" + "tag_name", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.SinglePropertyFilter: + +SinglePropertyFilter +------------------------------------------------------------------ + +A single property to filter on. + + + +.. csv-table:: SinglePropertyFilter type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "tag_filter", ":ref:`ref_datacatalog.TagPropertyFilter`", "", "" + "partition_filter", ":ref:`ref_datacatalog.PartitionPropertyFilter`", "", "" + "artifact_filter", ":ref:`ref_datacatalog.ArtifactPropertyFilter`", "", "" + "dataset_filter", ":ref:`ref_datacatalog.DatasetPropertyFilter`", "", "" + "operator", ":ref:`ref_datacatalog.SinglePropertyFilter.ComparisonOperator`", "", "field 10 in case we add more entities to query" + + + + + + + +.. _ref_datacatalog.Tag: + +Tag +------------------------------------------------------------------ + +Tag message that is unique to a Dataset. It is associated to a single artifact and +can be retrieved by name later. + + + +.. csv-table:: Tag type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "name", ":ref:`ref_string`", "", "Name of tag" + "artifact_id", ":ref:`ref_string`", "", "The tagged artifact" + "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "The Dataset that this tag belongs to" + + + + + + + +.. _ref_datacatalog.TagPropertyFilter: + +TagPropertyFilter +------------------------------------------------------------------ + +Tag properties we can filter by + + + +.. csv-table:: TagPropertyFilter type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "tag_name", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_datacatalog.UpdateArtifactRequest: + +UpdateArtifactRequest +------------------------------------------------------------------ + +Request message for updating an Artifact and overwriting its associated ArtifactData. + + + +.. csv-table:: UpdateArtifactRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "dataset", ":ref:`ref_datacatalog.DatasetID`", "", "ID of dataset the artifact is associated with" + "artifact_id", ":ref:`ref_string`", "", "" + "tag_name", ":ref:`ref_string`", "", "" + "data", ":ref:`ref_datacatalog.ArtifactData`", "repeated", "List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing ArtifactData entries will be removed from the underlying blob storage and database." + + + + + + + +.. _ref_datacatalog.UpdateArtifactResponse: + +UpdateArtifactResponse +------------------------------------------------------------------ + +Response message for updating an Artifact. + + + +.. csv-table:: UpdateArtifactResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "artifact_id", ":ref:`ref_string`", "", "The unique ID of the artifact updated" + + + + + + +.. + end messages + + + +.. _ref_datacatalog.PaginationOptions.SortKey: + +PaginationOptions.SortKey +------------------------------------------------------------------ + + + +.. csv-table:: Enum PaginationOptions.SortKey values + :header: "Name", "Number", "Description" + :widths: auto + + "CREATION_TIME", "0", "" + + + +.. _ref_datacatalog.PaginationOptions.SortOrder: + +PaginationOptions.SortOrder +------------------------------------------------------------------ + + + +.. csv-table:: Enum PaginationOptions.SortOrder values + :header: "Name", "Number", "Description" + :widths: auto + + "DESCENDING", "0", "" + "ASCENDING", "1", "" + + + +.. _ref_datacatalog.SinglePropertyFilter.ComparisonOperator: + +SinglePropertyFilter.ComparisonOperator +------------------------------------------------------------------ + +as use-cases come up we can add more operators, ex: gte, like, not eq etc. + +.. csv-table:: Enum SinglePropertyFilter.ComparisonOperator values + :header: "Name", "Number", "Description" + :widths: auto + + "EQUALS", "0", "" + + +.. + end enums + + +.. + end HasExtensions + + + +.. _ref_datacatalog.DataCatalog: + +DataCatalog +------------------------------------------------------------------ + +Data Catalog service definition +Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. +Artifacts are associated with a Dataset, and can be tagged for retrieval. + +.. csv-table:: DataCatalog service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto + + "CreateDataset", ":ref:`ref_datacatalog.CreateDatasetRequest`", ":ref:`ref_datacatalog.CreateDatasetResponse`", "Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. Each dataset can have one or more artifacts" + "GetDataset", ":ref:`ref_datacatalog.GetDatasetRequest`", ":ref:`ref_datacatalog.GetDatasetResponse`", "Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata." + "CreateArtifact", ":ref:`ref_datacatalog.CreateArtifactRequest`", ":ref:`ref_datacatalog.CreateArtifactResponse`", "Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary files or data values" + "GetArtifact", ":ref:`ref_datacatalog.GetArtifactRequest`", ":ref:`ref_datacatalog.GetArtifactResponse`", "Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data." + "AddTag", ":ref:`ref_datacatalog.AddTagRequest`", ":ref:`ref_datacatalog.AddTagResponse`", "Associate a tag with an artifact. Tags are unique within a Dataset." + "ListArtifacts", ":ref:`ref_datacatalog.ListArtifactsRequest`", ":ref:`ref_datacatalog.ListArtifactsResponse`", "Return a paginated list of artifacts" + "ListDatasets", ":ref:`ref_datacatalog.ListDatasetsRequest`", ":ref:`ref_datacatalog.ListDatasetsResponse`", "Return a paginated list of datasets" + "UpdateArtifact", ":ref:`ref_datacatalog.UpdateArtifactRequest`", ":ref:`ref_datacatalog.UpdateArtifactResponse`", "Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage." + "GetOrExtendReservation", ":ref:`ref_datacatalog.GetOrExtendReservationRequest`", ":ref:`ref_datacatalog.GetOrExtendReservationResponse`", "Attempts to get or extend a reservation for the corresponding artifact. If one already exists (ie. another entity owns the reservation) then that reservation is retrieved. Once you acquire a reservation, you need to periodically extend the reservation with an identical call. If the reservation is not extended before the defined expiration, it may be acquired by another task. Note: We may have multiple concurrent tasks with the same signature and the same input that try to populate the same artifact at the same time. Thus with reservation, only one task can run at a time, until the reservation expires. Note: If task A does not extend the reservation in time and the reservation expires, another task B may take over the reservation, resulting in two tasks A and B running in parallel. So a third task C may get the Artifact from A or B, whichever writes last." + "ReleaseReservation", ":ref:`ref_datacatalog.ReleaseReservationRequest`", ":ref:`ref_datacatalog.ReleaseReservationResponse`", "Release the reservation when the task holding the spot fails so that the other tasks can grab the spot." + +.. + end services + + + + +.. _ref_google/protobuf/timestamp.proto: + +google/protobuf/timestamp.proto +================================================================== + + + + + +.. _ref_google.protobuf.Timestamp: + +Timestamp +------------------------------------------------------------------ + +A Timestamp represents a point in time independent of any time zone or local +calendar, encoded as a count of seconds and fractions of seconds at +nanosecond resolution. The count is relative to an epoch at UTC midnight on +January 1, 1970, in the proleptic Gregorian calendar which extends the +Gregorian calendar backwards to year one. + +All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +second table is needed for interpretation, using a [24-hour linear +smear](https://developers.google.com/time/smear). + +The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +restricting to that range, we ensure that we can convert to and from [RFC +3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + +# Examples + +Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + +Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + +Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + +Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + +Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + +Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + +# JSON Mapping + +In JSON format, the Timestamp type is encoded as a string in the +[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +where {year} is always expressed using four digits while {month}, {day}, +{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +is required. A proto3 JSON serializer should always use UTC (as indicated by +"Z") when printing the Timestamp type and a proto3 JSON parser should be +able to accept both UTC and other timezones (as indicated by an offset). + +For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +01:30 UTC on January 15, 2017. + +In JavaScript, one can convert a Date object to this format using the +standard +[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +method. In Python, a standard `datetime.datetime` object can be converted +to this format using +[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +the Joda Time's [`ISODateTimeFormat.dateTime()`]( +http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D +) to obtain a formatter capable of generating timestamps in this format. + + + +.. csv-table:: Timestamp type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "seconds", ":ref:`ref_int64`", "", "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive." + "nanos", ":ref:`ref_int32`", "", "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/duration.proto: + +google/protobuf/duration.proto +================================================================== + + + + + +.. _ref_google.protobuf.Duration: + +Duration +------------------------------------------------------------------ + +A Duration represents a signed, fixed-length span of time represented +as a count of seconds and fractions of seconds at nanosecond +resolution. It is independent of any calendar and concepts like "day" +or "month". It is related to Timestamp in that the difference between +two Timestamp values is a Duration and it can be added or subtracted +from a Timestamp. Range is approximately +-10,000 years. + +# Examples + +Example 1: Compute Duration from two Timestamps in pseudo code. + + Timestamp start = ...; + Timestamp end = ...; + Duration duration = ...; + + duration.seconds = end.seconds - start.seconds; + duration.nanos = end.nanos - start.nanos; + + if (duration.seconds < 0 && duration.nanos > 0) { + duration.seconds += 1; + duration.nanos -= 1000000000; + } else if (duration.seconds > 0 && duration.nanos < 0) { + duration.seconds -= 1; + duration.nanos += 1000000000; + } + +Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + + Timestamp start = ...; + Duration duration = ...; + Timestamp end = ...; + + end.seconds = start.seconds + duration.seconds; + end.nanos = start.nanos + duration.nanos; + + if (end.nanos < 0) { + end.seconds -= 1; + end.nanos += 1000000000; + } else if (end.nanos >= 1000000000) { + end.seconds += 1; + end.nanos -= 1000000000; + } + +Example 3: Compute Duration from datetime.timedelta in Python. + + td = datetime.timedelta(days=3, minutes=10) + duration = Duration() + duration.FromTimedelta(td) + +# JSON Mapping + +In JSON format, the Duration type is encoded as a string rather than an +object, where the string ends in the suffix "s" (indicating seconds) and +is preceded by the number of seconds, with nanoseconds expressed as +fractional seconds. For example, 3 seconds with 0 nanoseconds should be +encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +microsecond should be expressed in JSON format as "3.000001s". + + + +.. csv-table:: Duration type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "seconds", ":ref:`ref_int64`", "", "Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + "nanos", ":ref:`ref_int32`", "", "Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/struct.proto: + +google/protobuf/struct.proto +================================================================== + + + + + +.. _ref_google.protobuf.ListValue: + +ListValue +------------------------------------------------------------------ + +`ListValue` is a wrapper around a repeated field of values. + +The JSON representation for `ListValue` is JSON array. + + + +.. csv-table:: ListValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "values", ":ref:`ref_google.protobuf.Value`", "repeated", "Repeated field of dynamically typed values." + + + + + + + +.. _ref_google.protobuf.Struct: + +Struct +------------------------------------------------------------------ + +`Struct` represents a structured data value, consisting of fields +which map to dynamically typed values. In some languages, `Struct` +might be supported by a native representation. For example, in +scripting languages like JS a struct is represented as an +object. The details of that representation are described together +with the proto support for the language. + +The JSON representation for `Struct` is JSON object. + + + +.. csv-table:: Struct type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "fields", ":ref:`ref_google.protobuf.Struct.FieldsEntry`", "repeated", "Unordered map of dynamically typed values." + + + + + + + +.. _ref_google.protobuf.Struct.FieldsEntry: + +Struct.FieldsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: Struct.FieldsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_google.protobuf.Value`", "", "" + + + + + + + +.. _ref_google.protobuf.Value: + +Value +------------------------------------------------------------------ + +`Value` represents a dynamically typed value which can be either +null, a number, a string, a boolean, a recursive struct value, or a +list of values. A producer of value is expected to set one of these +variants. Absence of any variant indicates an error. + +The JSON representation for `Value` is JSON value. + + + +.. csv-table:: Value type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "null_value", ":ref:`ref_google.protobuf.NullValue`", "", "Represents a null value." + "number_value", ":ref:`ref_double`", "", "Represents a double value." + "string_value", ":ref:`ref_string`", "", "Represents a string value." + "bool_value", ":ref:`ref_bool`", "", "Represents a boolean value." + "struct_value", ":ref:`ref_google.protobuf.Struct`", "", "Represents a structured value." + "list_value", ":ref:`ref_google.protobuf.ListValue`", "", "Represents a repeated `Value`." + + + + + + +.. + end messages + + + +.. _ref_google.protobuf.NullValue: + +NullValue +------------------------------------------------------------------ + +`NullValue` is a singleton enumeration to represent the null value for the +`Value` type union. + + The JSON representation for `NullValue` is JSON `null`. + +.. csv-table:: Enum NullValue values + :header: "Name", "Number", "Description" + :widths: auto + + "NULL_VALUE", "0", "Null value." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + diff --git a/flyteidl/protos/docs/datacatalog/index.rst b/flyteidl/protos/docs/datacatalog/index.rst new file mode 100644 index 0000000000..d64c2ddd9f --- /dev/null +++ b/flyteidl/protos/docs/datacatalog/index.rst @@ -0,0 +1,16 @@ +Flyte Data Catalog Service +============================ + +Protos provides the interface definition for the Data Catalog Service. Data Catalog is a service to +index parameterized, strongly-typed data artifacts across revisions. It is used in the Flyte ecosystem +to catalog artifacts generated by the task executions. The output generated by a task can be stored as artifact +data and tagged by the user so as to be retrieved later by that tag. + +`Datacatalog raw proto `__ + +.. toctree:: + :maxdepth: 1 + :caption: datacatalog + :name: datacatalogtoc + + datacatalog diff --git a/flyteidl/protos/docs/event/event.rst b/flyteidl/protos/docs/event/event.rst new file mode 100644 index 0000000000..df0a3b2e8b --- /dev/null +++ b/flyteidl/protos/docs/event/event.rst @@ -0,0 +1,726 @@ +###################### +Protocol Documentation +###################### + + + + +.. _ref_flyteidl/event/event.proto: + +flyteidl/event/event.proto +================================================================== + + + + + +.. _ref_flyteidl.event.DynamicWorkflowNodeMetadata: + +DynamicWorkflowNodeMetadata +------------------------------------------------------------------ + +For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. + + + +.. csv-table:: DynamicWorkflowNodeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "id represents the unique identifier of the workflow." + "compiled_workflow", ":ref:`ref_flyteidl.core.CompiledWorkflowClosure`", "", "Represents the compiled representation of the embedded dynamic workflow." + + + + + + + +.. _ref_flyteidl.event.ExternalResourceInfo: + +ExternalResourceInfo +------------------------------------------------------------------ + +This message contains metadata about external resources produced or used by a specific task execution. + + + +.. csv-table:: ExternalResourceInfo type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "external_id", ":ref:`ref_string`", "", "Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids." + "index", ":ref:`ref_uint32`", "", "A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports." + "retry_attempt", ":ref:`ref_uint32`", "", "Retry attempt number for this external resource, ie., 2 for the second attempt" + "phase", ":ref:`ref_flyteidl.core.TaskExecution.Phase`", "", "Phase associated with the external resource" + "cache_status", ":ref:`ref_flyteidl.core.CatalogCacheStatus`", "", "Captures the status of caching for this external resource execution." + "logs", ":ref:`ref_flyteidl.core.TaskLog`", "repeated", "log information for the external resource execution" + + + + + + + +.. _ref_flyteidl.event.NodeExecutionEvent: + +NodeExecutionEvent +------------------------------------------------------------------ + + + + + +.. csv-table:: NodeExecutionEvent type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "Unique identifier for this node execution" + "producer_id", ":ref:`ref_string`", "", "the id of the originator (Propeller) of the event" + "phase", ":ref:`ref_flyteidl.core.NodeExecution.Phase`", "", "" + "occurred_at", ":ref:`ref_google.protobuf.Timestamp`", "", "This timestamp represents when the original event occurred, it is generated by the executor of the node." + "input_uri", ":ref:`ref_string`", "", "" + "output_uri", ":ref:`ref_string`", "", "URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://..." + "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the execution" + "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Raw output data produced by this node execution." + "workflow_node_metadata", ":ref:`ref_flyteidl.event.WorkflowNodeMetadata`", "", "" + "task_node_metadata", ":ref:`ref_flyteidl.event.TaskNodeMetadata`", "", "" + "parent_task_metadata", ":ref:`ref_flyteidl.event.ParentTaskExecutionMetadata`", "", "[To be deprecated] Specifies which task (if any) launched this node." + "parent_node_metadata", ":ref:`ref_flyteidl.event.ParentNodeExecutionMetadata`", "", "Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node." + "retry_group", ":ref:`ref_string`", "", "Retry group to indicate grouping of nodes by retries" + "spec_node_id", ":ref:`ref_string`", "", "Identifier of the node in the original workflow/graph This maps to value of WorkflowTemplate.nodes[X].id" + "node_name", ":ref:`ref_string`", "", "Friendly readable name for the node" + "event_version", ":ref:`ref_int32`", "", "" + "is_parent", ":ref:`ref_bool`", "", "Whether this node launched a subworkflow." + "is_dynamic", ":ref:`ref_bool`", "", "Whether this node yielded a dynamic workflow." + "deck_uri", ":ref:`ref_string`", "", "String location uniquely identifying where the deck HTML file is NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + + + + + + + +.. _ref_flyteidl.event.ParentNodeExecutionMetadata: + +ParentNodeExecutionMetadata +------------------------------------------------------------------ + + + + + +.. csv-table:: ParentNodeExecutionMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "node_id", ":ref:`ref_string`", "", "Unique identifier of the parent node id within the execution This is value of core.NodeExecutionIdentifier.node_id of the parent node" + + + + + + + +.. _ref_flyteidl.event.ParentTaskExecutionMetadata: + +ParentTaskExecutionMetadata +------------------------------------------------------------------ + + + + + +.. csv-table:: ParentTaskExecutionMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.TaskExecutionIdentifier`", "", "" + + + + + + + +.. _ref_flyteidl.event.ResourcePoolInfo: + +ResourcePoolInfo +------------------------------------------------------------------ + +This message holds task execution metadata specific to resource allocation used to manage concurrent +executions for a project namespace. + + + +.. csv-table:: ResourcePoolInfo type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "allocation_token", ":ref:`ref_string`", "", "Unique resource ID used to identify this execution when allocating a token." + "namespace", ":ref:`ref_string`", "", "Namespace under which this task execution requested an allocation token." + + + + + + + +.. _ref_flyteidl.event.TaskExecutionEvent: + +TaskExecutionEvent +------------------------------------------------------------------ + +Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. + + + +.. csv-table:: TaskExecutionEvent type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "task_id", ":ref:`ref_flyteidl.core.Identifier`", "", "ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution." + "parent_node_execution_id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "A task execution is always kicked off by a node execution, the event consumer will use the parent_id to relate the task to it's parent node execution" + "retry_attempt", ":ref:`ref_uint32`", "", "retry attempt number for this task, ie., 2 for the second attempt" + "phase", ":ref:`ref_flyteidl.core.TaskExecution.Phase`", "", "Phase associated with the event" + "producer_id", ":ref:`ref_string`", "", "id of the process that sent this event, mainly for trace debugging" + "logs", ":ref:`ref_flyteidl.core.TaskLog`", "repeated", "log information for the task execution" + "occurred_at", ":ref:`ref_google.protobuf.Timestamp`", "", "This timestamp represents when the original event occurred, it is generated by the executor of the task." + "input_uri", ":ref:`ref_string`", "", "URI of the input file, it encodes all the information including Cloud source provider. ie., s3://..." + "output_uri", ":ref:`ref_string`", "", "URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://..." + "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the execution" + "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Raw output data produced by this task execution." + "custom_info", ":ref:`ref_google.protobuf.Struct`", "", "Custom data that the task plugin sends back. This is extensible to allow various plugins in the system." + "phase_version", ":ref:`ref_uint32`", "", "Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase." + "reason", ":ref:`ref_string`", "", "An optional explanation for the phase transition." + "task_type", ":ref:`ref_string`", "", "A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc." + "metadata", ":ref:`ref_flyteidl.event.TaskExecutionMetadata`", "", "Metadata around how a task was executed." + "event_version", ":ref:`ref_int32`", "", "The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message." + + + + + + + +.. _ref_flyteidl.event.TaskExecutionMetadata: + +TaskExecutionMetadata +------------------------------------------------------------------ + +Holds metadata around how a task was executed. +As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, +and more may grow in size but not change necessarily based on the phase transition that sparked the event update. +Metadata is a container for these attributes across the task execution lifecycle. + + + +.. csv-table:: TaskExecutionMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "generated_name", ":ref:`ref_string`", "", "Unique, generated name for this task execution used by the backend." + "external_resources", ":ref:`ref_flyteidl.event.ExternalResourceInfo`", "repeated", "Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution." + "resource_pool_info", ":ref:`ref_flyteidl.event.ResourcePoolInfo`", "repeated", "Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution." + "plugin_identifier", ":ref:`ref_string`", "", "The identifier of the plugin used to execute this task." + "instance_class", ":ref:`ref_flyteidl.event.TaskExecutionMetadata.InstanceClass`", "", "" + + + + + + + +.. _ref_flyteidl.event.TaskNodeMetadata: + +TaskNodeMetadata +------------------------------------------------------------------ + + + + + +.. csv-table:: TaskNodeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cache_status", ":ref:`ref_flyteidl.core.CatalogCacheStatus`", "", "Captures the status of caching for this execution." + "catalog_key", ":ref:`ref_flyteidl.core.CatalogMetadata`", "", "This structure carries the catalog artifact information" + "reservation_status", ":ref:`ref_flyteidl.core.CatalogReservation.Status`", "", "Captures the status of cache reservations for this execution." + "checkpoint_uri", ":ref:`ref_string`", "", "The latest checkpoint location" + "dynamic_workflow", ":ref:`ref_flyteidl.event.DynamicWorkflowNodeMetadata`", "", "In the case this task launched a dynamic workflow we capture its structure here." + + + + + + + +.. _ref_flyteidl.event.WorkflowExecutionEvent: + +WorkflowExecutionEvent +------------------------------------------------------------------ + + + + + +.. csv-table:: WorkflowExecutionEvent type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "Workflow execution id" + "producer_id", ":ref:`ref_string`", "", "the id of the originator (Propeller) of the event" + "phase", ":ref:`ref_flyteidl.core.WorkflowExecution.Phase`", "", "" + "occurred_at", ":ref:`ref_google.protobuf.Timestamp`", "", "This timestamp represents when the original event occurred, it is generated by the executor of the workflow." + "output_uri", ":ref:`ref_string`", "", "URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://..." + "error", ":ref:`ref_flyteidl.core.ExecutionError`", "", "Error information for the execution" + "output_data", ":ref:`ref_flyteidl.core.LiteralMap`", "", "Raw output data produced by this workflow execution." + + + + + + + +.. _ref_flyteidl.event.WorkflowNodeMetadata: + +WorkflowNodeMetadata +------------------------------------------------------------------ + +For Workflow Nodes we need to send information about the workflow that's launched + + + +.. csv-table:: WorkflowNodeMetadata type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "execution_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "" + + + + + + +.. + end messages + + + +.. _ref_flyteidl.event.TaskExecutionMetadata.InstanceClass: + +TaskExecutionMetadata.InstanceClass +------------------------------------------------------------------ + +Includes the broad category of machine used for this specific task execution. + +.. csv-table:: Enum TaskExecutionMetadata.InstanceClass values + :header: "Name", "Number", "Description" + :widths: auto + + "DEFAULT", "0", "The default instance class configured for the flyte application platform." + "INTERRUPTIBLE", "1", "The instance class configured for interruptible tasks." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/timestamp.proto: + +google/protobuf/timestamp.proto +================================================================== + + + + + +.. _ref_google.protobuf.Timestamp: + +Timestamp +------------------------------------------------------------------ + +A Timestamp represents a point in time independent of any time zone or local +calendar, encoded as a count of seconds and fractions of seconds at +nanosecond resolution. The count is relative to an epoch at UTC midnight on +January 1, 1970, in the proleptic Gregorian calendar which extends the +Gregorian calendar backwards to year one. + +All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +second table is needed for interpretation, using a [24-hour linear +smear](https://developers.google.com/time/smear). + +The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +restricting to that range, we ensure that we can convert to and from [RFC +3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + +# Examples + +Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + +Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + +Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + +Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + +Example 5: Compute Timestamp from Java `Instant.now()`. + + Instant now = Instant.now(); + + Timestamp timestamp = + Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + .setNanos(now.getNano()).build(); + +Example 6: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + +# JSON Mapping + +In JSON format, the Timestamp type is encoded as a string in the +[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +where {year} is always expressed using four digits while {month}, {day}, +{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +is required. A proto3 JSON serializer should always use UTC (as indicated by +"Z") when printing the Timestamp type and a proto3 JSON parser should be +able to accept both UTC and other timezones (as indicated by an offset). + +For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +01:30 UTC on January 15, 2017. + +In JavaScript, one can convert a Date object to this format using the +standard +[toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +method. In Python, a standard `datetime.datetime` object can be converted +to this format using +[`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +the Joda Time's [`ISODateTimeFormat.dateTime()`]( +http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D +) to obtain a formatter capable of generating timestamps in this format. + + + +.. csv-table:: Timestamp type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "seconds", ":ref:`ref_int64`", "", "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive." + "nanos", ":ref:`ref_int32`", "", "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/duration.proto: + +google/protobuf/duration.proto +================================================================== + + + + + +.. _ref_google.protobuf.Duration: + +Duration +------------------------------------------------------------------ + +A Duration represents a signed, fixed-length span of time represented +as a count of seconds and fractions of seconds at nanosecond +resolution. It is independent of any calendar and concepts like "day" +or "month". It is related to Timestamp in that the difference between +two Timestamp values is a Duration and it can be added or subtracted +from a Timestamp. Range is approximately +-10,000 years. + +# Examples + +Example 1: Compute Duration from two Timestamps in pseudo code. + + Timestamp start = ...; + Timestamp end = ...; + Duration duration = ...; + + duration.seconds = end.seconds - start.seconds; + duration.nanos = end.nanos - start.nanos; + + if (duration.seconds < 0 && duration.nanos > 0) { + duration.seconds += 1; + duration.nanos -= 1000000000; + } else if (duration.seconds > 0 && duration.nanos < 0) { + duration.seconds -= 1; + duration.nanos += 1000000000; + } + +Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + + Timestamp start = ...; + Duration duration = ...; + Timestamp end = ...; + + end.seconds = start.seconds + duration.seconds; + end.nanos = start.nanos + duration.nanos; + + if (end.nanos < 0) { + end.seconds -= 1; + end.nanos += 1000000000; + } else if (end.nanos >= 1000000000) { + end.seconds += 1; + end.nanos -= 1000000000; + } + +Example 3: Compute Duration from datetime.timedelta in Python. + + td = datetime.timedelta(days=3, minutes=10) + duration = Duration() + duration.FromTimedelta(td) + +# JSON Mapping + +In JSON format, the Duration type is encoded as a string rather than an +object, where the string ends in the suffix "s" (indicating seconds) and +is preceded by the number of seconds, with nanoseconds expressed as +fractional seconds. For example, 3 seconds with 0 nanoseconds should be +encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +microsecond should be expressed in JSON format as "3.000001s". + + + +.. csv-table:: Duration type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "seconds", ":ref:`ref_int64`", "", "Signed seconds of the span of time. Must be from -315,576,000,000 to +315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years" + "nanos", ":ref:`ref_int32`", "", "Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_google/protobuf/struct.proto: + +google/protobuf/struct.proto +================================================================== + + + + + +.. _ref_google.protobuf.ListValue: + +ListValue +------------------------------------------------------------------ + +`ListValue` is a wrapper around a repeated field of values. + +The JSON representation for `ListValue` is JSON array. + + + +.. csv-table:: ListValue type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "values", ":ref:`ref_google.protobuf.Value`", "repeated", "Repeated field of dynamically typed values." + + + + + + + +.. _ref_google.protobuf.Struct: + +Struct +------------------------------------------------------------------ + +`Struct` represents a structured data value, consisting of fields +which map to dynamically typed values. In some languages, `Struct` +might be supported by a native representation. For example, in +scripting languages like JS a struct is represented as an +object. The details of that representation are described together +with the proto support for the language. + +The JSON representation for `Struct` is JSON object. + + + +.. csv-table:: Struct type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "fields", ":ref:`ref_google.protobuf.Struct.FieldsEntry`", "repeated", "Unordered map of dynamically typed values." + + + + + + + +.. _ref_google.protobuf.Struct.FieldsEntry: + +Struct.FieldsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: Struct.FieldsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_google.protobuf.Value`", "", "" + + + + + + + +.. _ref_google.protobuf.Value: + +Value +------------------------------------------------------------------ + +`Value` represents a dynamically typed value which can be either +null, a number, a string, a boolean, a recursive struct value, or a +list of values. A producer of value is expected to set one of these +variants. Absence of any variant indicates an error. + +The JSON representation for `Value` is JSON value. + + + +.. csv-table:: Value type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "null_value", ":ref:`ref_google.protobuf.NullValue`", "", "Represents a null value." + "number_value", ":ref:`ref_double`", "", "Represents a double value." + "string_value", ":ref:`ref_string`", "", "Represents a string value." + "bool_value", ":ref:`ref_bool`", "", "Represents a boolean value." + "struct_value", ":ref:`ref_google.protobuf.Struct`", "", "Represents a structured value." + "list_value", ":ref:`ref_google.protobuf.ListValue`", "", "Represents a repeated `Value`." + + + + + + +.. + end messages + + + +.. _ref_google.protobuf.NullValue: + +NullValue +------------------------------------------------------------------ + +`NullValue` is a singleton enumeration to represent the null value for the +`Value` type union. + + The JSON representation for `NullValue` is JSON `null`. + +.. csv-table:: Enum NullValue values + :header: "Name", "Number", "Description" + :widths: auto + + "NULL_VALUE", "0", "Null value." + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + diff --git a/flyteidl/protos/docs/event/index.rst b/flyteidl/protos/docs/event/index.rst new file mode 100644 index 0000000000..b2c8abe50c --- /dev/null +++ b/flyteidl/protos/docs/event/index.rst @@ -0,0 +1,27 @@ + +############################################## +Flyte Internal and External Eventing interface +############################################## + +This section contains all the protocol buffer definitions for Internal and +External Eventing system. + +Flyte Internal Eventing +======================== + +This is the interface used by the dataplane (execution engine) to communicate with the control plane admin service about the workflow and task progress. + +Flyte External Eventing - Event Egress +======================================= + +This refers to the interface for all the event messages leaving the Flyte +**control plane** and reaching on the configured pubsub channel. + +`Event raw proto `__ + +.. toctree:: + :maxdepth: 1 + :caption: event + :name: eventtoc + + event diff --git a/flyteidl/protos/docs/plugins/index.rst b/flyteidl/protos/docs/plugins/index.rst new file mode 100644 index 0000000000..90924ae451 --- /dev/null +++ b/flyteidl/protos/docs/plugins/index.rst @@ -0,0 +1,14 @@ +Flyte Task Plugins +================== + +These protocol buffer specifications provide information about the various Task +Plugins available in the Flyte system. + +`Plugins raw protos `__ + +.. toctree:: + :maxdepth: 1 + :caption: plugins + :name: pluginstoc + + plugins diff --git a/flyteidl/protos/docs/plugins/plugins.rst b/flyteidl/protos/docs/plugins/plugins.rst new file mode 100644 index 0000000000..995dc7c084 --- /dev/null +++ b/flyteidl/protos/docs/plugins/plugins.rst @@ -0,0 +1,780 @@ +###################### +Protocol Documentation +###################### + + + + +.. _ref_flyteidl/plugins/array_job.proto: + +flyteidl/plugins/array_job.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.ArrayJob: + +ArrayJob +------------------------------------------------------------------ + +Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +will be executed concurrently. + + + +.. csv-table:: ArrayJob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "parallelism", ":ref:`ref_int64`", "", "Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an optimistic restriction and that, due to network partitioning or other failures, the actual number of currently running instances might be more. This has to be a positive number if assigned. Default value is size." + "size", ":ref:`ref_int64`", "", "Defines the number of instances to launch at most. This number should match the size of the input if the job requires processing of all input data. This has to be a positive number. In the case this is not defined, the back-end will determine the size at run-time by reading the inputs." + "min_successes", ":ref:`ref_int64`", "", "An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if assigned. Default value is size (if specified)." + "min_success_ratio", ":ref:`ref_float`", "", "If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array job can be marked successful." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/dask.proto: + +flyteidl/plugins/dask.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.DaskCluster: + +DaskCluster +------------------------------------------------------------------ + + + + + +.. csv-table:: DaskCluster type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "image", ":ref:`ref_string`", "", "Optional image to use for the scheduler as well as the default worker group. If unset, will use the default image." + "nWorkers", ":ref:`ref_int32`", "", "Number of workers in the default worker group" + "resources", ":ref:`ref_flyteidl.core.Resources`", "", "Resources assigned to the scheduler as well as all pods of the default worker group. As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices it is advised to only set limits. If requests are not explicitly set, the plugin will make sure to set requests==limits. The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit." + + + + + + + +.. _ref_flyteidl.plugins.DaskJob: + +DaskJob +------------------------------------------------------------------ + +Custom Proto for Dask Plugin + + + +.. csv-table:: DaskJob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "namespace", ":ref:`ref_string`", "", "Optional namespace to use for the dask pods. If none is given, the namespace of the Flyte task is used" + "jobPodSpec", ":ref:`ref_flyteidl.plugins.JobPodSpec`", "", "Spec for the job pod" + "cluster", ":ref:`ref_flyteidl.plugins.DaskCluster`", "", "Cluster" + + + + + + + +.. _ref_flyteidl.plugins.JobPodSpec: + +JobPodSpec +------------------------------------------------------------------ + +Specification for the job pod + + + +.. csv-table:: JobPodSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "image", ":ref:`ref_string`", "", "Optional image to use. If unset, will use the default image." + "resources", ":ref:`ref_flyteidl.core.Resources`", "", "Resources assigned to the job pod." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/mpi.proto: + +flyteidl/plugins/mpi.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.DistributedMPITrainingTask: + +DistributedMPITrainingTask +------------------------------------------------------------------ + +MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md +Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator + + + +.. csv-table:: DistributedMPITrainingTask type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "num_workers", ":ref:`ref_int32`", "", "number of worker spawned in the cluster for this job" + "num_launcher_replicas", ":ref:`ref_int32`", "", "number of launcher replicas spawned in the cluster for this job The launcher pod invokes mpirun and communicates with worker pods through MPI." + "slots", ":ref:`ref_int32`", "", "number of slots per worker used in hostfile. The available slots (GPUs) in each pod." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/presto.proto: + +flyteidl/plugins/presto.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.PrestoQuery: + +PrestoQuery +------------------------------------------------------------------ + +This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field +of a Presto task's TaskTemplate + + + +.. csv-table:: PrestoQuery type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "routing_group", ":ref:`ref_string`", "", "" + "catalog", ":ref:`ref_string`", "", "" + "schema", ":ref:`ref_string`", "", "" + "statement", ":ref:`ref_string`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/pytorch.proto: + +flyteidl/plugins/pytorch.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.DistributedPyTorchTrainingTask: + +DistributedPyTorchTrainingTask +------------------------------------------------------------------ + +Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator + + + +.. csv-table:: DistributedPyTorchTrainingTask type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "workers", ":ref:`ref_int32`", "", "number of worker replicas spawned in the cluster for this job" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/qubole.proto: + +flyteidl/plugins/qubole.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.HiveQuery: + +HiveQuery +------------------------------------------------------------------ + +Defines a query to execute on a hive cluster. + + + +.. csv-table:: HiveQuery type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "query", ":ref:`ref_string`", "", "" + "timeout_sec", ":ref:`ref_uint32`", "", "" + "retryCount", ":ref:`ref_uint32`", "", "" + + + + + + + +.. _ref_flyteidl.plugins.HiveQueryCollection: + +HiveQueryCollection +------------------------------------------------------------------ + +Defines a collection of hive queries. + + + +.. csv-table:: HiveQueryCollection type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "queries", ":ref:`ref_flyteidl.plugins.HiveQuery`", "repeated", "" + + + + + + + +.. _ref_flyteidl.plugins.QuboleHiveJob: + +QuboleHiveJob +------------------------------------------------------------------ + +This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +of a hive task's TaskTemplate + + + +.. csv-table:: QuboleHiveJob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "cluster_label", ":ref:`ref_string`", "", "" + "query_collection", ":ref:`ref_flyteidl.plugins.HiveQueryCollection`", "", "**Deprecated.** " + "tags", ":ref:`ref_string`", "repeated", "" + "query", ":ref:`ref_flyteidl.plugins.HiveQuery`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/ray.proto: + +flyteidl/plugins/ray.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.HeadGroupSpec: + +HeadGroupSpec +------------------------------------------------------------------ + +HeadGroupSpec are the spec for the head pod + + + +.. csv-table:: HeadGroupSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "ray_start_params", ":ref:`ref_flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry`", "repeated", "Optional. RayStartParams are the params of the start command: address, object-store-memory. Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start" + + + + + + + +.. _ref_flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry: + +HeadGroupSpec.RayStartParamsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: HeadGroupSpec.RayStartParamsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.plugins.RayCluster: + +RayCluster +------------------------------------------------------------------ + +Define Ray cluster defines the desired state of RayCluster + + + +.. csv-table:: RayCluster type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "head_group_spec", ":ref:`ref_flyteidl.plugins.HeadGroupSpec`", "", "HeadGroupSpecs are the spec for the head pod" + "worker_group_spec", ":ref:`ref_flyteidl.plugins.WorkerGroupSpec`", "repeated", "WorkerGroupSpecs are the specs for the worker pods" + + + + + + + +.. _ref_flyteidl.plugins.RayJob: + +RayJob +------------------------------------------------------------------ + +RayJobSpec defines the desired state of RayJob + + + +.. csv-table:: RayJob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "ray_cluster", ":ref:`ref_flyteidl.plugins.RayCluster`", "", "RayClusterSpec is the cluster template to run the job" + "runtime_env", ":ref:`ref_string`", "", "runtime_env is base64 encoded. Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments" + + + + + + + +.. _ref_flyteidl.plugins.WorkerGroupSpec: + +WorkerGroupSpec +------------------------------------------------------------------ + +WorkerGroupSpec are the specs for the worker pods + + + +.. csv-table:: WorkerGroupSpec type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "group_name", ":ref:`ref_string`", "", "Required. RayCluster can have multiple worker groups, and it distinguishes them by name" + "replicas", ":ref:`ref_int32`", "", "Required. Desired replicas of the worker group. Defaults to 1." + "min_replicas", ":ref:`ref_int32`", "", "Optional. Min replicas of the worker group. MinReplicas defaults to 1." + "max_replicas", ":ref:`ref_int32`", "", "Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32" + "ray_start_params", ":ref:`ref_flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry`", "repeated", "Optional. RayStartParams are the params of the start command: address, object-store-memory. Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start" + + + + + + + +.. _ref_flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry: + +WorkerGroupSpec.RayStartParamsEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: WorkerGroupSpec.RayStartParamsEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/spark.proto: + +flyteidl/plugins/spark.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.SparkApplication: + +SparkApplication +------------------------------------------------------------------ + + + + + + + + + + +.. _ref_flyteidl.plugins.SparkJob: + +SparkJob +------------------------------------------------------------------ + +Custom Proto for Spark Plugin. + + + +.. csv-table:: SparkJob type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "applicationType", ":ref:`ref_flyteidl.plugins.SparkApplication.Type`", "", "" + "mainApplicationFile", ":ref:`ref_string`", "", "" + "mainClass", ":ref:`ref_string`", "", "" + "sparkConf", ":ref:`ref_flyteidl.plugins.SparkJob.SparkConfEntry`", "repeated", "" + "hadoopConf", ":ref:`ref_flyteidl.plugins.SparkJob.HadoopConfEntry`", "repeated", "" + "executorPath", ":ref:`ref_string`", "", "Executor path for Python jobs." + "databricksConf", ":ref:`ref_string`", "", "databricksConf is base64 encoded string which stores databricks job configuration. Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure The config is automatically encoded by flytekit, and decoded in the propeller." + + + + + + + +.. _ref_flyteidl.plugins.SparkJob.HadoopConfEntry: + +SparkJob.HadoopConfEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: SparkJob.HadoopConfEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + + +.. _ref_flyteidl.plugins.SparkJob.SparkConfEntry: + +SparkJob.SparkConfEntry +------------------------------------------------------------------ + + + + + +.. csv-table:: SparkJob.SparkConfEntry type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "key", ":ref:`ref_string`", "", "" + "value", ":ref:`ref_string`", "", "" + + + + + + +.. + end messages + + + +.. _ref_flyteidl.plugins.SparkApplication.Type: + +SparkApplication.Type +------------------------------------------------------------------ + + + +.. csv-table:: Enum SparkApplication.Type values + :header: "Name", "Number", "Description" + :widths: auto + + "PYTHON", "0", "" + "JAVA", "1", "" + "SCALA", "2", "" + "R", "3", "" + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/tensorflow.proto: + +flyteidl/plugins/tensorflow.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.DistributedTensorflowTrainingTask: + +DistributedTensorflowTrainingTask +------------------------------------------------------------------ + +Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator + + + +.. csv-table:: DistributedTensorflowTrainingTask type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "workers", ":ref:`ref_int32`", "", "number of worker, ps, chief replicas spawned in the cluster for this job" + "ps_replicas", ":ref:`ref_int32`", "", "PS -> Parameter server" + "chief_replicas", ":ref:`ref_int32`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + + + +.. _ref_flyteidl/plugins/waitable.proto: + +flyteidl/plugins/waitable.proto +================================================================== + + + + + +.. _ref_flyteidl.plugins.Waitable: + +Waitable +------------------------------------------------------------------ + +Represents an Execution that was launched and could be waited on. + + + +.. csv-table:: Waitable type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "wf_exec_id", ":ref:`ref_flyteidl.core.WorkflowExecutionIdentifier`", "", "" + "phase", ":ref:`ref_flyteidl.core.WorkflowExecution.Phase`", "", "" + "workflow_id", ":ref:`ref_string`", "", "" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + +.. + end services + + diff --git a/flyteidl/protos/docs/restructuredtext.tmpl b/flyteidl/protos/docs/restructuredtext.tmpl new file mode 100644 index 0000000000..a408a70db0 --- /dev/null +++ b/flyteidl/protos/docs/restructuredtext.tmpl @@ -0,0 +1,129 @@ +###################### +Protocol Documentation +###################### + +{{range .Files}} +{{$file_name := .Name}} + +.. _ref_{{.Name}}: + +{{.Name}} +================================================================== + +{{.Description}} + +{{range .Messages}} + +.. _ref_{{.FullName}}: + +{{.LongName}} +------------------------------------------------------------------ + +{{.Description}} + +{{if .HasFields}} + +.. csv-table:: {{.LongName}} type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto +{{range .Fields }} + "{{.Name}}", ":ref:`ref_{{.FullType}}`", "{{.Label}}", "{{if (index .Options "deprecated"|default false)}}**Deprecated.** {{end}}{{nobr .Description}}{{if .DefaultValue}} Default: {{.DefaultValue}}{{end}}" +{{- end}} +{{end}} + + +{{if .HasExtensions}} + +.. csv-table:: {{.LongName}} type extensions + :header: "Extension", "Type", "Base", "Number", "Description" + :widths: auto +{{range .Extensions }} + "{{.Name}}", "{{.LongType}}", "{{.ContainingLongType}}", "{{.Number}}", "{{nobr .Description}}{{if .DefaultValue}} Default: {{.DefaultValue}}{{end}}" +{{- end}} +{{end}} + +{{end}} +.. + end messages + +{{range .Enums}} + +.. _ref_{{.FullName}}: + +{{.LongName}} +------------------------------------------------------------------ + +{{.Description}} + +.. csv-table:: Enum {{.LongName}} values + :header: "Name", "Number", "Description" + :widths: auto +{{range .Values }} + "{{.Name}}", "{{.Number}}", "{{nobr .Description}}" +{{- end}} + +{{end}} +.. + end enums + +{{if .HasExtensions}} + +.. _ref_{{$file_name}}_extensions: + +File-level Extensions +-------------------------------------------------------------------------------- + +.. csv-table:: {{.Name}} file-level Extensions + :header: "Extension", "Type", "Base", "Number", "Description" + :widths: auto +{{range .Extensions}} + "{{.Name}}", "{{.LongType}}", "{{.ContainingLongType}}", "{{.Number}}", "{{nobr .Description}}{{if .DefaultValue}} Default: `{{.DefaultValue}}`{{end}}" +{{- end}} +{{end}} +.. + end HasExtensions + +{{range .Services}} + +.. _ref_{{.FullName}}: + +{{.Name}} +------------------------------------------------------------------ + +{{.Description}} + +.. csv-table:: {{.Name}} service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto +{{range .Methods}} + "{{.Name}}", ":ref:`ref_{{.RequestFullType}}`{{if .RequestStreaming}} stream{{end}}", ":ref:`ref_{{.ResponseFullType}}`{{if .ResponseStreaming}} stream{{end}}", "{{nobr .Description}}" +{{- end}} +{{end}} +.. + end services + +{{end}} + +.. _ref_scala_types: + +Scalar Value Types +================== + +{{range .Scalars}} + +.. _ref_{{.ProtoType}}: + +{{.ProtoType}} +----------------------------- + +{{.Notes}} + +.. csv-table:: {{.ProtoType}} language representation + :header: ".proto Type", "C++", "Java", "Python", "Go", "C#", "PHP", "Ruby" + :widths: auto + + "{{.ProtoType}}", "{{.CppType}}", "{{.JavaType}}", "{{.PythonType}}", "{{.GoType}}", "{{.CSharp}}", "{{.PhpType}}", "{{.RubyType}}" + +{{end}} +.. + end scalars \ No newline at end of file diff --git a/flyteidl/protos/docs/service/index.rst b/flyteidl/protos/docs/service/index.rst new file mode 100644 index 0000000000..8bcf45d9c4 --- /dev/null +++ b/flyteidl/protos/docs/service/index.rst @@ -0,0 +1,13 @@ +REST and gRPC interface for the Flyte Admin Service +=================================================== + +This section provides all endpoint defintions that are implemented by the Admin service. + +`Admin service raw protos `__ + +.. toctree:: + :maxdepth: 1 + :caption: service + :name: servicetoc + + service diff --git a/flyteidl/protos/docs/service/service.rst b/flyteidl/protos/docs/service/service.rst new file mode 100644 index 0000000000..3ca8ff500c --- /dev/null +++ b/flyteidl/protos/docs/service/service.rst @@ -0,0 +1,543 @@ +###################### +Protocol Documentation +###################### + + + + +.. _ref_flyteidl/service/admin.proto: + +flyteidl/service/admin.proto +================================================================== + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + + +.. _ref_flyteidl.service.AdminService: + +AdminService +------------------------------------------------------------------ + +The following defines an RPC service that is also served over HTTP via grpc-gateway. +Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + +.. csv-table:: AdminService service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto + + "CreateTask", ":ref:`ref_flyteidl.admin.TaskCreateRequest`", ":ref:`ref_flyteidl.admin.TaskCreateResponse`", "Create and upload a :ref:`ref_flyteidl.admin.Task` definition" + "GetTask", ":ref:`ref_flyteidl.admin.ObjectGetRequest`", ":ref:`ref_flyteidl.admin.Task`", "Fetch a :ref:`ref_flyteidl.admin.Task` definition." + "ListTaskIds", ":ref:`ref_flyteidl.admin.NamedEntityIdentifierListRequest`", ":ref:`ref_flyteidl.admin.NamedEntityIdentifierList`", "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects." + "ListTasks", ":ref:`ref_flyteidl.admin.ResourceListRequest`", ":ref:`ref_flyteidl.admin.TaskList`", "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions." + "CreateWorkflow", ":ref:`ref_flyteidl.admin.WorkflowCreateRequest`", ":ref:`ref_flyteidl.admin.WorkflowCreateResponse`", "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition" + "GetWorkflow", ":ref:`ref_flyteidl.admin.ObjectGetRequest`", ":ref:`ref_flyteidl.admin.Workflow`", "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition." + "ListWorkflowIds", ":ref:`ref_flyteidl.admin.NamedEntityIdentifierListRequest`", ":ref:`ref_flyteidl.admin.NamedEntityIdentifierList`", "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects." + "ListWorkflows", ":ref:`ref_flyteidl.admin.ResourceListRequest`", ":ref:`ref_flyteidl.admin.WorkflowList`", "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions." + "CreateLaunchPlan", ":ref:`ref_flyteidl.admin.LaunchPlanCreateRequest`", ":ref:`ref_flyteidl.admin.LaunchPlanCreateResponse`", "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition" + "GetLaunchPlan", ":ref:`ref_flyteidl.admin.ObjectGetRequest`", ":ref:`ref_flyteidl.admin.LaunchPlan`", "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition." + "GetActiveLaunchPlan", ":ref:`ref_flyteidl.admin.ActiveLaunchPlanRequest`", ":ref:`ref_flyteidl.admin.LaunchPlan`", "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`." + "ListActiveLaunchPlans", ":ref:`ref_flyteidl.admin.ActiveLaunchPlanListRequest`", ":ref:`ref_flyteidl.admin.LaunchPlanList`", "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`." + "ListLaunchPlanIds", ":ref:`ref_flyteidl.admin.NamedEntityIdentifierListRequest`", ":ref:`ref_flyteidl.admin.NamedEntityIdentifierList`", "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects." + "ListLaunchPlans", ":ref:`ref_flyteidl.admin.ResourceListRequest`", ":ref:`ref_flyteidl.admin.LaunchPlanList`", "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions." + "UpdateLaunchPlan", ":ref:`ref_flyteidl.admin.LaunchPlanUpdateRequest`", ":ref:`ref_flyteidl.admin.LaunchPlanUpdateResponse`", "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`." + "CreateExecution", ":ref:`ref_flyteidl.admin.ExecutionCreateRequest`", ":ref:`ref_flyteidl.admin.ExecutionCreateResponse`", "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`" + "RelaunchExecution", ":ref:`ref_flyteidl.admin.ExecutionRelaunchRequest`", ":ref:`ref_flyteidl.admin.ExecutionCreateResponse`", "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`" + "RecoverExecution", ":ref:`ref_flyteidl.admin.ExecutionRecoverRequest`", ":ref:`ref_flyteidl.admin.ExecutionCreateResponse`", "Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details." + "GetExecution", ":ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest`", ":ref:`ref_flyteidl.admin.Execution`", "Fetches a :ref:`ref_flyteidl.admin.Execution`." + "UpdateExecution", ":ref:`ref_flyteidl.admin.ExecutionUpdateRequest`", ":ref:`ref_flyteidl.admin.ExecutionUpdateResponse`", "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`." + "GetExecutionData", ":ref:`ref_flyteidl.admin.WorkflowExecutionGetDataRequest`", ":ref:`ref_flyteidl.admin.WorkflowExecutionGetDataResponse`", "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`." + "ListExecutions", ":ref:`ref_flyteidl.admin.ResourceListRequest`", ":ref:`ref_flyteidl.admin.ExecutionList`", "Fetch a list of :ref:`ref_flyteidl.admin.Execution`." + "TerminateExecution", ":ref:`ref_flyteidl.admin.ExecutionTerminateRequest`", ":ref:`ref_flyteidl.admin.ExecutionTerminateResponse`", "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`." + "GetNodeExecution", ":ref:`ref_flyteidl.admin.NodeExecutionGetRequest`", ":ref:`ref_flyteidl.admin.NodeExecution`", "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`." + "ListNodeExecutions", ":ref:`ref_flyteidl.admin.NodeExecutionListRequest`", ":ref:`ref_flyteidl.admin.NodeExecutionList`", "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`." + "ListNodeExecutionsForTask", ":ref:`ref_flyteidl.admin.NodeExecutionForTaskListRequest`", ":ref:`ref_flyteidl.admin.NodeExecutionList`", "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`." + "GetNodeExecutionData", ":ref:`ref_flyteidl.admin.NodeExecutionGetDataRequest`", ":ref:`ref_flyteidl.admin.NodeExecutionGetDataResponse`", "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`." + "RegisterProject", ":ref:`ref_flyteidl.admin.ProjectRegisterRequest`", ":ref:`ref_flyteidl.admin.ProjectRegisterResponse`", "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment." + "UpdateProject", ":ref:`ref_flyteidl.admin.Project`", ":ref:`ref_flyteidl.admin.ProjectUpdateResponse`", "Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API." + "ListProjects", ":ref:`ref_flyteidl.admin.ProjectListRequest`", ":ref:`ref_flyteidl.admin.Projects`", "Fetches a list of :ref:`ref_flyteidl.admin.Project`" + "CreateWorkflowEvent", ":ref:`ref_flyteidl.admin.WorkflowExecutionEventRequest`", ":ref:`ref_flyteidl.admin.WorkflowExecutionEventResponse`", "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred." + "CreateNodeEvent", ":ref:`ref_flyteidl.admin.NodeExecutionEventRequest`", ":ref:`ref_flyteidl.admin.NodeExecutionEventResponse`", "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred." + "CreateTaskEvent", ":ref:`ref_flyteidl.admin.TaskExecutionEventRequest`", ":ref:`ref_flyteidl.admin.TaskExecutionEventResponse`", "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred." + "GetTaskExecution", ":ref:`ref_flyteidl.admin.TaskExecutionGetRequest`", ":ref:`ref_flyteidl.admin.TaskExecution`", "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`." + "ListTaskExecutions", ":ref:`ref_flyteidl.admin.TaskExecutionListRequest`", ":ref:`ref_flyteidl.admin.TaskExecutionList`", "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`." + "GetTaskExecutionData", ":ref:`ref_flyteidl.admin.TaskExecutionGetDataRequest`", ":ref:`ref_flyteidl.admin.TaskExecutionGetDataResponse`", "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`." + "UpdateProjectDomainAttributes", ":ref:`ref_flyteidl.admin.ProjectDomainAttributesUpdateRequest`", ":ref:`ref_flyteidl.admin.ProjectDomainAttributesUpdateResponse`", "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain." + "GetProjectDomainAttributes", ":ref:`ref_flyteidl.admin.ProjectDomainAttributesGetRequest`", ":ref:`ref_flyteidl.admin.ProjectDomainAttributesGetResponse`", "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain." + "DeleteProjectDomainAttributes", ":ref:`ref_flyteidl.admin.ProjectDomainAttributesDeleteRequest`", ":ref:`ref_flyteidl.admin.ProjectDomainAttributesDeleteResponse`", "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain." + "UpdateProjectAttributes", ":ref:`ref_flyteidl.admin.ProjectAttributesUpdateRequest`", ":ref:`ref_flyteidl.admin.ProjectAttributesUpdateResponse`", "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level" + "GetProjectAttributes", ":ref:`ref_flyteidl.admin.ProjectAttributesGetRequest`", ":ref:`ref_flyteidl.admin.ProjectAttributesGetResponse`", "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain." + "DeleteProjectAttributes", ":ref:`ref_flyteidl.admin.ProjectAttributesDeleteRequest`", ":ref:`ref_flyteidl.admin.ProjectAttributesDeleteResponse`", "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain." + "UpdateWorkflowAttributes", ":ref:`ref_flyteidl.admin.WorkflowAttributesUpdateRequest`", ":ref:`ref_flyteidl.admin.WorkflowAttributesUpdateResponse`", "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow." + "GetWorkflowAttributes", ":ref:`ref_flyteidl.admin.WorkflowAttributesGetRequest`", ":ref:`ref_flyteidl.admin.WorkflowAttributesGetResponse`", "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow." + "DeleteWorkflowAttributes", ":ref:`ref_flyteidl.admin.WorkflowAttributesDeleteRequest`", ":ref:`ref_flyteidl.admin.WorkflowAttributesDeleteResponse`", "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow." + "ListMatchableAttributes", ":ref:`ref_flyteidl.admin.ListMatchableAttributesRequest`", ":ref:`ref_flyteidl.admin.ListMatchableAttributesResponse`", "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type." + "ListNamedEntities", ":ref:`ref_flyteidl.admin.NamedEntityListRequest`", ":ref:`ref_flyteidl.admin.NamedEntityList`", "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects." + "GetNamedEntity", ":ref:`ref_flyteidl.admin.NamedEntityGetRequest`", ":ref:`ref_flyteidl.admin.NamedEntity`", "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object." + "UpdateNamedEntity", ":ref:`ref_flyteidl.admin.NamedEntityUpdateRequest`", ":ref:`ref_flyteidl.admin.NamedEntityUpdateResponse`", "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object." + "GetVersion", ":ref:`ref_flyteidl.admin.GetVersionRequest`", ":ref:`ref_flyteidl.admin.GetVersionResponse`", "" + "GetDescriptionEntity", ":ref:`ref_flyteidl.admin.ObjectGetRequest`", ":ref:`ref_flyteidl.admin.DescriptionEntity`", "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object." + "ListDescriptionEntities", ":ref:`ref_flyteidl.admin.DescriptionEntityListRequest`", ":ref:`ref_flyteidl.admin.DescriptionEntityList`", "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions." + +.. + end services + + + + +.. _ref_flyteidl/service/auth.proto: + +flyteidl/service/auth.proto +================================================================== + + + + + +.. _ref_flyteidl.service.OAuth2MetadataRequest: + +OAuth2MetadataRequest +------------------------------------------------------------------ + + + + + + + + + + +.. _ref_flyteidl.service.OAuth2MetadataResponse: + +OAuth2MetadataResponse +------------------------------------------------------------------ + +OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata +as defined in https://tools.ietf.org/html/rfc8414 + + + +.. csv-table:: OAuth2MetadataResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "issuer", ":ref:`ref_string`", "", "Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external issuer." + "authorization_endpoint", ":ref:`ref_string`", "", "URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are supported that use the authorization endpoint." + "token_endpoint", ":ref:`ref_string`", "", "URL of the authorization server's token endpoint [RFC6749]." + "response_types_supported", ":ref:`ref_string`", "repeated", "Array containing a list of the OAuth 2.0 response_type values that this authorization server supports." + "scopes_supported", ":ref:`ref_string`", "repeated", "JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports." + "token_endpoint_auth_methods_supported", ":ref:`ref_string`", "repeated", "JSON array containing a list of client authentication methods supported by this token endpoint." + "jwks_uri", ":ref:`ref_string`", "", "URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the client uses to validate signatures from the authorization server." + "code_challenge_methods_supported", ":ref:`ref_string`", "repeated", "JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by this authorization server." + "grant_types_supported", ":ref:`ref_string`", "repeated", "JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports." + "device_authorization_endpoint", ":ref:`ref_string`", "", "URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]" + + + + + + + +.. _ref_flyteidl.service.PublicClientAuthConfigRequest: + +PublicClientAuthConfigRequest +------------------------------------------------------------------ + + + + + + + + + + +.. _ref_flyteidl.service.PublicClientAuthConfigResponse: + +PublicClientAuthConfigResponse +------------------------------------------------------------------ + +FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. + + + +.. csv-table:: PublicClientAuthConfigResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "client_id", ":ref:`ref_string`", "", "client_id to use when initiating OAuth2 authorization requests." + "redirect_uri", ":ref:`ref_string`", "", "redirect uri to use when initiating OAuth2 authorization requests." + "scopes", ":ref:`ref_string`", "repeated", "scopes to request when initiating OAuth2 authorization requests." + "authorization_metadata_key", ":ref:`ref_string`", "", "Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the default http `Authorization` header." + "service_http_endpoint", ":ref:`ref_string`", "", "ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between SSL or no SSL connections." + "audience", ":ref:`ref_string`", "", "audience to use when initiating OAuth2 authorization requests." + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + + +.. _ref_flyteidl.service.AuthMetadataService: + +AuthMetadataService +------------------------------------------------------------------ + +The following defines an RPC service that is also served over HTTP via grpc-gateway. +Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go +RPCs defined in this service must be anonymously accessible. + +.. csv-table:: AuthMetadataService service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto + + "GetOAuth2Metadata", ":ref:`ref_flyteidl.service.OAuth2MetadataRequest`", ":ref:`ref_flyteidl.service.OAuth2MetadataResponse`", "Anonymously accessible. Retrieves local or external oauth authorization server metadata." + "GetPublicClientConfig", ":ref:`ref_flyteidl.service.PublicClientAuthConfigRequest`", ":ref:`ref_flyteidl.service.PublicClientAuthConfigResponse`", "Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization requests." + +.. + end services + + + + +.. _ref_flyteidl/service/dataproxy.proto: + +flyteidl/service/dataproxy.proto +================================================================== + + + + + +.. _ref_flyteidl.service.CreateDownloadLinkRequest: + +CreateDownloadLinkRequest +------------------------------------------------------------------ + +CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) + + + +.. csv-table:: CreateDownloadLinkRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "artifact_type", ":ref:`ref_flyteidl.service.ArtifactType`", "", "ArtifactType of the artifact requested." + "expires_in", ":ref:`ref_google.protobuf.Duration`", "", "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this exceeds the platform allowed max. +optional. The default value comes from a global config." + "node_execution_id", ":ref:`ref_flyteidl.core.NodeExecutionIdentifier`", "", "NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the most recent attempt of the task." + + + + + + + +.. _ref_flyteidl.service.CreateDownloadLinkResponse: + +CreateDownloadLinkResponse +------------------------------------------------------------------ + +CreateDownloadLinkResponse defines the response for the generated links + + + +.. csv-table:: CreateDownloadLinkResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "signed_url", ":ref:`ref_string`", "repeated", "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + "expires_at", ":ref:`ref_google.protobuf.Timestamp`", "", "ExpiresAt defines when will the signed URL expire." + + + + + + + +.. _ref_flyteidl.service.CreateDownloadLocationRequest: + +CreateDownloadLocationRequest +------------------------------------------------------------------ + +CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. + + + +.. csv-table:: CreateDownloadLocationRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "native_url", ":ref:`ref_string`", "", "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + "expires_in", ":ref:`ref_google.protobuf.Duration`", "", "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this exceeds the platform allowed max. +optional. The default value comes from a global config." + + + + + + + +.. _ref_flyteidl.service.CreateDownloadLocationResponse: + +CreateDownloadLocationResponse +------------------------------------------------------------------ + + + + + +.. csv-table:: CreateDownloadLocationResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "signed_url", ":ref:`ref_string`", "", "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + "expires_at", ":ref:`ref_google.protobuf.Timestamp`", "", "ExpiresAt defines when will the signed URL expires." + + + + + + + +.. _ref_flyteidl.service.CreateUploadLocationRequest: + +CreateUploadLocationRequest +------------------------------------------------------------------ + +CreateUploadLocationRequest specified request for the CreateUploadLocation API. + + + +.. csv-table:: CreateUploadLocationRequest type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "project", ":ref:`ref_string`", "", "Project to create the upload location for +required" + "domain", ":ref:`ref_string`", "", "Domain to create the upload location for. +required" + "filename", ":ref:`ref_string`", "", "Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. +optional. By default, the service will generate a consistent name based on the provided parameters." + "expires_in", ":ref:`ref_google.protobuf.Duration`", "", "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this exceeds the platform allowed max. +optional. The default value comes from a global config." + "content_md5", ":ref:`ref_bytes`", "", "ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the generated path. +required" + + + + + + + +.. _ref_flyteidl.service.CreateUploadLocationResponse: + +CreateUploadLocationResponse +------------------------------------------------------------------ + + + + + +.. csv-table:: CreateUploadLocationResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "signed_url", ":ref:`ref_string`", "", "SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + "native_url", ":ref:`ref_string`", "", "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + "expires_at", ":ref:`ref_google.protobuf.Timestamp`", "", "ExpiresAt defines when will the signed URL expires." + + + + + + +.. + end messages + + + +.. _ref_flyteidl.service.ArtifactType: + +ArtifactType +------------------------------------------------------------------ + +ArtifactType + +.. csv-table:: Enum ArtifactType values + :header: "Name", "Number", "Description" + :widths: auto + + "ARTIFACT_TYPE_UNDEFINED", "0", "ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum." + "ARTIFACT_TYPE_DECK", "1", "ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan finishes executing." + + +.. + end enums + + +.. + end HasExtensions + + + +.. _ref_flyteidl.service.DataProxyService: + +DataProxyService +------------------------------------------------------------------ + +DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + +.. csv-table:: DataProxyService service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto + + "CreateUploadLocation", ":ref:`ref_flyteidl.service.CreateUploadLocationRequest`", ":ref:`ref_flyteidl.service.CreateUploadLocationResponse`", "CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain." + "CreateDownloadLocation", ":ref:`ref_flyteidl.service.CreateDownloadLocationRequest`", ":ref:`ref_flyteidl.service.CreateDownloadLocationResponse`", "CreateDownloadLocation creates a signed url to download artifacts." + "CreateDownloadLink", ":ref:`ref_flyteidl.service.CreateDownloadLinkRequest`", ":ref:`ref_flyteidl.service.CreateDownloadLinkResponse`", "CreateDownloadLocation creates a signed url to download artifacts." + +.. + end services + + + + +.. _ref_flyteidl/service/identity.proto: + +flyteidl/service/identity.proto +================================================================== + + + + + +.. _ref_flyteidl.service.UserInfoRequest: + +UserInfoRequest +------------------------------------------------------------------ + + + + + + + + + + +.. _ref_flyteidl.service.UserInfoResponse: + +UserInfoResponse +------------------------------------------------------------------ + +See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. + + + +.. csv-table:: UserInfoResponse type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "subject", ":ref:`ref_string`", "", "Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed by the Client." + "name", ":ref:`ref_string`", "", "Full name" + "preferred_username", ":ref:`ref_string`", "", "Shorthand name by which the End-User wishes to be referred to" + "given_name", ":ref:`ref_string`", "", "Given name(s) or first name(s)" + "family_name", ":ref:`ref_string`", "", "Surname(s) or last name(s)" + "email", ":ref:`ref_string`", "", "Preferred e-mail address" + "picture", ":ref:`ref_string`", "", "Profile picture URL" + + + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + + +.. _ref_flyteidl.service.IdentityService: + +IdentityService +------------------------------------------------------------------ + +IdentityService defines an RPC Service that interacts with user/app identities. + +.. csv-table:: IdentityService service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto + + "UserInfo", ":ref:`ref_flyteidl.service.UserInfoRequest`", ":ref:`ref_flyteidl.service.UserInfoResponse`", "Retrieves user information about the currently logged in user." + +.. + end services + + + + +.. _ref_flyteidl/service/signal.proto: + +flyteidl/service/signal.proto +================================================================== + + + + +.. + end messages + + +.. + end enums + + +.. + end HasExtensions + + + +.. _ref_flyteidl.service.SignalService: + +SignalService +------------------------------------------------------------------ + +SignalService defines an RPC Service that may create, update, and retrieve signal(s). + +.. csv-table:: SignalService service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto + + "GetOrCreateSignal", ":ref:`ref_flyteidl.admin.SignalGetOrCreateRequest`", ":ref:`ref_flyteidl.admin.Signal`", "Fetches or creates a :ref:`ref_flyteidl.admin.Signal`." + "ListSignals", ":ref:`ref_flyteidl.admin.SignalListRequest`", ":ref:`ref_flyteidl.admin.SignalList`", "Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions." + "SetSignal", ":ref:`ref_flyteidl.admin.SignalSetRequest`", ":ref:`ref_flyteidl.admin.SignalSetResponse`", "Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition" + +.. + end services + + diff --git a/flyteidl/protos/docs/withoutscalar_restructuredtext.tmpl b/flyteidl/protos/docs/withoutscalar_restructuredtext.tmpl new file mode 100644 index 0000000000..9fef938d99 --- /dev/null +++ b/flyteidl/protos/docs/withoutscalar_restructuredtext.tmpl @@ -0,0 +1,105 @@ +###################### +Protocol Documentation +###################### + +{{range .Files}} +{{$file_name := .Name}} + +.. _ref_{{.Name}}: + +{{.Name}} +================================================================== + +{{.Description}} + +{{range .Messages}} + +.. _ref_{{.FullName}}: + +{{.LongName}} +------------------------------------------------------------------ + +{{.Description}} + +{{if .HasFields}} + +.. csv-table:: {{.LongName}} type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto +{{range .Fields }} + "{{.Name}}", ":ref:`ref_{{.FullType}}`", "{{.Label}}", "{{if (index .Options "deprecated"|default false)}}**Deprecated.** {{end}}{{nobr .Description}}{{if .DefaultValue}} Default: {{.DefaultValue}}{{end}}" +{{- end}} +{{end}} + + +{{if .HasExtensions}} + +.. csv-table:: {{.LongName}} type extensions + :header: "Extension", "Type", "Base", "Number", "Description" + :widths: auto +{{range .Extensions }} + "{{.Name}}", "{{.LongType}}", "{{.ContainingLongType}}", "{{.Number}}", "{{nobr .Description}}{{if .DefaultValue}} Default: {{.DefaultValue}}{{end}}" +{{- end}} +{{end}} + +{{end}} +.. + end messages + +{{range .Enums}} + +.. _ref_{{.FullName}}: + +{{.LongName}} +------------------------------------------------------------------ + +{{.Description}} + +.. csv-table:: Enum {{.LongName}} values + :header: "Name", "Number", "Description" + :widths: auto +{{range .Values }} + "{{.Name}}", "{{.Number}}", "{{nobr .Description}}" +{{- end}} + +{{end}} +.. + end enums + +{{if .HasExtensions}} + +.. _ref_{{$file_name}}_extensions: + +File-level Extensions +-------------------------------------------------------------------------------- + +.. csv-table:: {{.Name}} file-level Extensions + :header: "Extension", "Type", "Base", "Number", "Description" + :widths: auto +{{range .Extensions}} + "{{.Name}}", "{{.LongType}}", "{{.ContainingLongType}}", "{{.Number}}", "{{nobr .Description}}{{if .DefaultValue}} Default: `{{.DefaultValue}}`{{end}}" +{{- end}} +{{end}} +.. + end HasExtensions + +{{range .Services}} + +.. _ref_{{.FullName}}: + +{{.Name}} +------------------------------------------------------------------ + +{{.Description}} + +.. csv-table:: {{.Name}} service methods + :header: "Method Name", "Request Type", "Response Type", "Description" + :widths: auto +{{range .Methods}} + "{{.Name}}", ":ref:`ref_{{.RequestFullType}}`{{if .RequestStreaming}} stream{{end}}", ":ref:`ref_{{.ResponseFullType}}`{{if .ResponseStreaming}} stream{{end}}", "{{nobr .Description}}" +{{- end}} +{{end}} +.. + end services + +{{end}} diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto new file mode 100644 index 0000000000..e9a4849172 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -0,0 +1,88 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/literals.proto"; +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/interface.proto"; +import "flyteidl/core/identifier.proto"; + +// The state of the execution is used to control its visibility in the UI/CLI. +enum State { + RETRYABLE_FAILURE = 0; + PERMANENT_FAILURE = 1; + PENDING = 2; + RUNNING = 3; + SUCCEEDED = 4; +} + +// Represents a subset of runtime task execution metadata that are relevant to external plugins. +message TaskExecutionMetadata { + // ID of the task execution + core.TaskExecutionIdentifier task_execution_id = 1; + // k8s namespace where the task is executed in + string namespace = 2; + // Labels attached to the task execution + map labels = 3; + // Annotations attached to the task execution + map annotations = 4; + // k8s service account associated with the task execution + string k8s_service_account = 5; + // Environment variables attached to the task execution + map environment_variables = 6; +} + +// Represents a request structure to create task. +message CreateTaskRequest { + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + core.LiteralMap inputs = 1; + // Template of the task that encapsulates all the metadata of the task. + core.TaskTemplate template = 2; + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + string output_prefix = 3; + // subset of runtime task execution metadata. + TaskExecutionMetadata task_execution_metadata = 4; +} + +// Represents a create response structure. +message CreateTaskResponse { + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 1; +} + +// A message used to fetch a job resource from flyte agent server. +message GetTaskRequest { + // A predefined yet extensible Task type identifier. + string task_type = 1; + // Metadata about the resource to be pass to the agent. + bytes resource_meta = 2; +} + +// Response to get an individual task resource. +message GetTaskResponse { + Resource resource = 1; +} + +message Resource { + // The state of the execution is used to control its visibility in the UI/CLI. + State state = 1; + // The outputs of the execution. It's typically used by sql task. Agent service will create a + // Structured dataset pointing to the query result table. + // +optional + core.LiteralMap outputs = 2; +} + +// A message used to delete a task. +message DeleteTaskRequest { + // A predefined yet extensible Task type identifier. + string task_type = 1; + // Metadata about the resource to be pass to the agent. + bytes resource_meta = 2; +} + +// Response to delete a task. +message DeleteTaskResponse { +} diff --git a/flyteidl/protos/flyteidl/admin/cluster_assignment.proto b/flyteidl/protos/flyteidl/admin/cluster_assignment.proto new file mode 100644 index 0000000000..85a6a4ef8d --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/cluster_assignment.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + + +// Encapsulates specifications for routing an execution onto a specific cluster. +message ClusterAssignment { + reserved 1, 2; + string cluster_pool_name = 3; +} diff --git a/flyteidl/protos/flyteidl/admin/common.proto b/flyteidl/protos/flyteidl/admin/common.proto new file mode 100644 index 0000000000..dbfb412853 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/common.proto @@ -0,0 +1,319 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/literals.proto"; +import "google/protobuf/timestamp.proto"; + +// Encapsulation of fields that identifies a Flyte resource. +// A Flyte resource can be a task, workflow or launch plan. +// A resource can internally have multiple versions and is uniquely identified +// by project, domain, and name. +message NamedEntityIdentifier { + // Name of the project the resource belongs to. + string project = 1; + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + string domain = 2; + // User provided value for the resource. + // The combination of project + domain + name uniquely identifies the resource. + // +optional - in certain contexts - like 'List API', 'Launch plans' + string name = 3; +} + +// The status of the named entity is used to control its visibility in the UI. +enum NamedEntityState { + // By default, all named entities are considered active and under development. + NAMED_ENTITY_ACTIVE = 0; + + // Archived named entities are no longer visible in the UI. + NAMED_ENTITY_ARCHIVED = 1; + + // System generated entities that aren't explicitly created or managed by a user. + SYSTEM_GENERATED = 2; +} + +// Additional metadata around a named entity. +message NamedEntityMetadata { + // Common description across all versions of the entity + // +optional + string description = 1; + + // Shared state across all version of the entity + // At this point in time, only workflow entities can have their state archived. + NamedEntityState state = 2; +} + +// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, +// workflow or launch plan. A NamedEntity is exclusively identified by its resource type +// and identifier. +message NamedEntity { + // Resource type of the named entity. One of Task, Workflow or LaunchPlan. + flyteidl.core.ResourceType resource_type = 1; + NamedEntityIdentifier id = 2; + + // Additional metadata around a named entity. + NamedEntityMetadata metadata = 3; +} + +// Specifies sort ordering in a list request. +message Sort { + enum Direction { + + // By default, fields are sorted in descending order. + DESCENDING = 0; + ASCENDING = 1; + } + // Indicates an attribute to sort the response values. + // +required + string key = 1; + + // Indicates the direction to apply sort key for response values. + // +optional + Direction direction = 2; +} + +// Represents a request structure to list NamedEntityIdentifiers. +message NamedEntityIdentifierListRequest { + // Name of the project that contains the identifiers. + // +required + string project = 1; + + // Name of the domain the identifiers belongs to within the project. + // +required + string domain = 2; + + // Indicates the number of resources to be returned. + // +required + uint32 limit = 3; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 4; + + // Specifies how listed entities should be sorted in the response. + // +optional + Sort sort_by = 5; + + // Indicates a list of filters passed as string. + // +optional + string filters = 6; +} + +// Represents a request structure to list NamedEntity objects +message NamedEntityListRequest { + // Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. + // +required + flyteidl.core.ResourceType resource_type = 1; + // Name of the project that contains the identifiers. + // +required + string project = 2; + // Name of the domain the identifiers belongs to within the project. + string domain = 3; + // Indicates the number of resources to be returned. + uint32 limit = 4; + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 5; + + // Specifies how listed entities should be sorted in the response. + // +optional + Sort sort_by = 6; + + // Indicates a list of filters passed as string. + // +optional + string filters = 7; + +} + +// Represents a list of NamedEntityIdentifiers. +message NamedEntityIdentifierList { + // A list of identifiers. + repeated NamedEntityIdentifier entities = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Represents a list of NamedEntityIdentifiers. +message NamedEntityList { + // A list of NamedEntity objects + repeated NamedEntity entities = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// A request to retrieve the metadata associated with a NamedEntityIdentifier +message NamedEntityGetRequest { + // Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. + // +required + flyteidl.core.ResourceType resource_type = 1; + + // The identifier for the named entity for which to fetch metadata. + // +required + NamedEntityIdentifier id = 2; +} + +// Request to set the referenced named entity state to the configured value. +message NamedEntityUpdateRequest { + // Resource type of the metadata to update + // +required + flyteidl.core.ResourceType resource_type = 1; + + // Identifier of the metadata to update + // +required + NamedEntityIdentifier id = 2; + + // Metadata object to set as the new value + // +required + NamedEntityMetadata metadata = 3; +} + +// Purposefully empty, may be populated in the future. +message NamedEntityUpdateResponse { +} + +// Shared request structure to fetch a single resource. +// Resources include: Task, Workflow, LaunchPlan +message ObjectGetRequest { + // Indicates a unique version of resource. + // +required + core.Identifier id = 1; +} + +// Shared request structure to retrieve a list of resources. +// Resources include: Task, Workflow, LaunchPlan +message ResourceListRequest { + // id represents the unique identifier of the resource. + // +required + NamedEntityIdentifier id = 1; + + // Indicates the number of resources to be returned. + // +required + uint32 limit = 2; + + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} + +// Defines an email notification specification. +message EmailNotification { + // The list of email addresses recipients for this notification. + // +required + repeated string recipients_email = 1; +} + +// Defines a pager duty notification specification. +message PagerDutyNotification { + // Currently, PagerDuty notifications leverage email to trigger a notification. + // +required + repeated string recipients_email = 1; +} + +// Defines a slack notification specification. +message SlackNotification { + // Currently, Slack notifications leverage email to trigger a notification. + // +required + repeated string recipients_email = 1; +} + +// Represents a structure for notifications based on execution status. +// The notification content is configured within flyte admin but can be templatized. +// Future iterations could expose configuring notifications with custom content. +message Notification { + // A list of phases to which users can associate the notifications to. + // +required + repeated core.WorkflowExecution.Phase phases = 1; + + // The type of notification to trigger. + // +required + oneof type { + EmailNotification email = 2; + PagerDutyNotification pager_duty = 3; + SlackNotification slack = 4; + } + +} + +// Represents a string url and associated metadata used throughout the platform. +message UrlBlob { + option deprecated = true; + + // Actual url value. + string url = 1; + + // Represents the size of the file accessible at the above url. + int64 bytes = 2; +} + +// Label values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge labels defined at registration and execution time. +message Labels { + // Map of custom labels to be applied to the execution resource. + map values = 1; +} + +// Annotation values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge annotations defined at registration and execution time. +message Annotations { + // Map of custom annotations to be applied to the execution resource. + map values = 1; +} + +// Environment variable values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge environment variables defined at registration and execution time. +message Envs { + // Map of custom environment variables to be applied to the execution resource. + repeated flyteidl.core.KeyValuePair values = 1; +} + +// Defines permissions associated with executions created by this launch plan spec. +// Use either of these roles when they have permissions required by your workflow execution. +// Deprecated. +message AuthRole { + option deprecated = true; + + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + string assumable_iam_role = 1; + + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + string kubernetes_service_account = 2; +} + + +// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). +// See https://github.com/flyteorg/flyte/issues/211 for more background information. +message RawOutputDataConfig { + // Prefix for where offloaded data from user workflows will be written + // e.g. s3://bucket/key or s3://bucket/ + string output_location_prefix = 1; +} + +// These URLs are returned as part of node and task execution data requests. +message FlyteURLs { + string inputs = 1; + string outputs = 2; + string deck = 3; +} diff --git a/flyteidl/protos/flyteidl/admin/description_entity.proto b/flyteidl/protos/flyteidl/admin/description_entity.proto new file mode 100644 index 0000000000..fcf4e1a466 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/description_entity.proto @@ -0,0 +1,95 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/identifier.proto"; +import "flyteidl/admin/common.proto"; + +// DescriptionEntity contains detailed description for the task/workflow. +// Documentation could provide insight into the algorithms, business use case, etc. +message DescriptionEntity { + // id represents the unique identifier of the description entity. + core.Identifier id = 1; + // One-liner overview of the entity. + string short_description = 2; + // Full user description with formatting preserved. + Description long_description = 3; + // Optional link to source code used to define this entity. + SourceCode source_code = 4; + // User-specified tags. These are arbitrary and can be used for searching + // filtering and discovering tasks. + repeated string tags = 5; +} + +// The format of the long description +enum DescriptionFormat { + DESCRIPTION_FORMAT_UNKNOWN = 0; + DESCRIPTION_FORMAT_MARKDOWN = 1; + DESCRIPTION_FORMAT_HTML = 2; + // python default documentation - comments is rst + DESCRIPTION_FORMAT_RST = 3; +} + +// Full user description with formatting preserved. This can be rendered +// by clients, such as the console or command line tools with in-tact +// formatting. +message Description { + oneof content { + // long description - no more than 4KB + string value = 1; + // if the description sizes exceed some threshold we can offload the entire + // description proto altogether to an external data store, like S3 rather than store inline in the db + string uri = 2; + } + + // Format of the long description + DescriptionFormat format = 3; + // Optional link to an icon for the entity + string icon_link = 4; +} + +// Link to source code used to define this entity +message SourceCode { + string link = 1; +} + +// Represents a list of DescriptionEntities returned from the admin. +// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +message DescriptionEntityList { + // A list of DescriptionEntities returned based on the request. + repeated DescriptionEntity descriptionEntities = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Represents a request structure to retrieve a list of DescriptionEntities. +// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +message DescriptionEntityListRequest { + // Identifies the specific type of resource that this identifier corresponds to. + flyteidl.core.ResourceType resource_type = 1; + + // The identifier for the description entity. + // +required + NamedEntityIdentifier id = 2; + + // Indicates the number of resources to be returned. + // +required + uint32 limit = 3; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 4; + + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 5; + + // Sort ordering for returned list. + // +optional + Sort sort_by = 6; +} diff --git a/flyteidl/protos/flyteidl/admin/event.proto b/flyteidl/protos/flyteidl/admin/event.proto new file mode 100644 index 0000000000..483454921e --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/event.proto @@ -0,0 +1,70 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/event/event.proto"; + +// Indicates that a sent event was not used to update execution state due to +// the referenced execution already being terminated (and therefore ineligible +// for further state transitions). +message EventErrorAlreadyInTerminalState { + // +required + string current_phase = 1; +} + +// Indicates an event was rejected because it came from a different cluster than +// is on record as running the execution. +message EventErrorIncompatibleCluster { + // The cluster which has been recorded as processing the execution. + // +required + string cluster = 1; +} + +// Indicates why a sent event was not used to update execution. +message EventFailureReason { + // +required + oneof reason { + EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + EventErrorIncompatibleCluster incompatible_cluster = 2; + } +} + +// Request to send a notification that a workflow execution event has occurred. +message WorkflowExecutionEventRequest { + // Unique ID for this request that can be traced between services + string request_id = 1; + + // Details about the event that occurred. + event.WorkflowExecutionEvent event = 2; +} + +message WorkflowExecutionEventResponse { + // Purposefully empty, may be populated in the future. +} + +// Request to send a notification that a node execution event has occurred. +message NodeExecutionEventRequest { + // Unique ID for this request that can be traced between services + string request_id = 1; + + // Details about the event that occurred. + event.NodeExecutionEvent event = 2; +} + +message NodeExecutionEventResponse { + // Purposefully empty, may be populated in the future. +} + +// Request to send a notification that a task execution event has occurred. +message TaskExecutionEventRequest { + // Unique ID for this request that can be traced between services + string request_id = 1; + + // Details about the event that occurred. + event.TaskExecutionEvent event = 2; +} + +message TaskExecutionEventResponse { + // Purposefully empty, may be populated in the future. +} diff --git a/flyteidl/protos/flyteidl/admin/execution.proto b/flyteidl/protos/flyteidl/admin/execution.proto new file mode 100644 index 0000000000..55933d4709 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/execution.proto @@ -0,0 +1,408 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/cluster_assignment.proto"; +import "flyteidl/admin/common.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/metrics.proto"; +import "flyteidl/core/security.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; + +// Request to launch an execution with the given project, domain and optionally-assigned name. +message ExecutionCreateRequest { + // Name of the project the execution belongs to. + // +required + string project = 1; + + // Name of the domain the execution belongs to. + // A domain can be considered as a subset within a specific project. + // +required + string domain = 2; + + // User provided value for the resource. + // If none is provided the system will generate a unique string. + // +optional + string name = 3; + + // Additional fields necessary to launch the execution. + // +optional + ExecutionSpec spec = 4; + + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + core.LiteralMap inputs = 5; +} + +// Request to relaunch the referenced execution. +message ExecutionRelaunchRequest { + // Identifier of the workflow execution to relaunch. + // +required + core.WorkflowExecutionIdentifier id = 1; + + // Deprecated field, do not use. + reserved 2; + + // User provided value for the relaunched execution. + // If none is provided the system will generate a unique string. + // +optional + string name = 3; + + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + bool overwrite_cache = 4; +} + +// Request to recover the referenced execution. +message ExecutionRecoverRequest { + // Identifier of the workflow execution to recover. + core.WorkflowExecutionIdentifier id = 1; + + // User provided value for the recovered execution. + // If none is provided the system will generate a unique string. + // +optional + string name = 2; + + // Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. + ExecutionMetadata metadata = 3; +} + +// The unique identifier for a successfully created execution. +// If the name was *not* specified in the create request, this identifier will include a generated name. +message ExecutionCreateResponse { + core.WorkflowExecutionIdentifier id = 1; +} + +// A message used to fetch a single workflow execution entity. +// See :ref:`ref_flyteidl.admin.Execution` for more details +message WorkflowExecutionGetRequest { + // Uniquely identifies an individual workflow execution. + core.WorkflowExecutionIdentifier id = 1; +} + +// A workflow execution represents an instantiated workflow, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +// Used as a response object used in Get and List execution requests. +message Execution { + // Unique identifier of the workflow execution. + core.WorkflowExecutionIdentifier id = 1; + + // User-provided configuration and inputs for launching the execution. + ExecutionSpec spec = 2; + + // Execution results. + ExecutionClosure closure = 3; +} + +// Used as a response for request to list executions. +// See :ref:`ref_flyteidl.admin.Execution` for more details +message ExecutionList { + repeated Execution executions = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Input/output data can represented by actual values or a link to where values are stored +message LiteralMapBlob { + oneof data { + // Data in LiteralMap format + core.LiteralMap values = 1 [deprecated = true]; + + // In the event that the map is too large, we return a uri to the data + string uri = 2; + } +} + +// Specifies metadata around an aborted workflow execution. +message AbortMetadata { + // In the case of a user-specified abort, this will pass along the user-supplied cause. + string cause = 1; + + // Identifies the entity (if any) responsible for terminating the execution + string principal = 2; +} + +// Encapsulates the results of the Execution +message ExecutionClosure { + // A result produced by a terminated execution. + // A pending (non-terminal) execution will not have any output result. + oneof output_result { + // Output URI in the case of a successful execution. + // DEPRECATED. Use GetExecutionData to fetch output data instead. + LiteralMapBlob outputs = 1 [deprecated = true]; + + // Error information in the case of a failed execution. + core.ExecutionError error = 2; + + // In the case of a user-specified abort, this will pass along the user-supplied cause. + string abort_cause = 10 [deprecated = true]; + + // In the case of a user-specified abort, this will pass along the user and their supplied cause. + AbortMetadata abort_metadata = 12; + + // Raw output data produced by this execution. + // DEPRECATED. Use GetExecutionData to fetch output data instead. + core.LiteralMap output_data = 13 [deprecated = true]; + } + + // Inputs computed and passed for execution. + // computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + core.LiteralMap computed_inputs = 3 [deprecated = true]; + + // Most recent recorded phase for the execution. + core.WorkflowExecution.Phase phase = 4; + + // Reported time at which the execution began running. + google.protobuf.Timestamp started_at = 5; + + // The amount of time the execution spent running. + google.protobuf.Duration duration = 6; + + // Reported time at which the execution was created. + google.protobuf.Timestamp created_at = 7; + + // Reported time at which the execution was last updated. + google.protobuf.Timestamp updated_at = 8; + + // The notification settings to use after merging the CreateExecutionRequest and the launch plan + // notification settings. An execution launched with notifications will always prefer that definition + // to notifications defined statically in a launch plan. + repeated Notification notifications = 9; + + // Identifies the workflow definition for this execution. + core.Identifier workflow_id = 11; + + // Provides the details of the last stage change + ExecutionStateChangeDetails state_change_details = 14; +} + +// Represents system, rather than user-facing, metadata about an execution. +message SystemMetadata { + + // Which execution cluster this execution ran on. + string execution_cluster = 1; + + // Which kubernetes namespace the execution ran under. + string namespace = 2; +} + +// Represents attributes about an execution which are not required to launch the execution but are useful to record. +// These attributes are assigned at launch time and do not change. +message ExecutionMetadata { + // The method by which this execution was launched. + enum ExecutionMode { + // The default execution mode, MANUAL implies that an execution was launched by an individual. + MANUAL = 0; + + // A schedule triggered this execution launch. + SCHEDULED = 1; + + // A system process was responsible for launching this execution rather an individual. + SYSTEM = 2; + + // This execution was launched with identical inputs as a previous execution. + RELAUNCH = 3; + + // This execution was triggered by another execution. + CHILD_WORKFLOW = 4; + + // This execution was recovered from another execution. + RECOVERED = 5; + } + ExecutionMode mode = 1; + + // Identifier of the entity that triggered this execution. + // For systems using back-end authentication any value set here will be discarded in favor of the + // authenticated user context. + string principal = 2; + + // Indicates the nestedness of this execution. + // If a user launches a workflow execution, the default nesting is 0. + // If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + // Generally, if workflow at nesting level k launches a workflow then the child workflow will have + // nesting = k + 1. + uint32 nesting = 3; + + // For scheduled executions, the requested time for execution for this specific schedule invocation. + google.protobuf.Timestamp scheduled_at = 4; + + // Which subworkflow node (if any) launched this execution + core.NodeExecutionIdentifier parent_node_execution = 5; + + // Optional, a reference workflow execution related to this execution. + // In the case of a relaunch, this references the original workflow execution. + core.WorkflowExecutionIdentifier reference_execution = 16; + + // Optional, platform-specific metadata about the execution. + // In this the future this may be gated behind an ACL or some sort of authorization. + SystemMetadata system_metadata = 17; +} + +message NotificationList { + repeated Notification notifications = 1; +} + +// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +// of an execution as it progresses across phase changes. +message ExecutionSpec { + // Launch plan to be executed + core.Identifier launch_plan = 1; + + // Input values to be passed for the execution + core.LiteralMap inputs = 2 [deprecated = true]; + + // Metadata for the execution + ExecutionMetadata metadata = 3; + + // This field is deprecated. Do not use. + reserved 4; + + oneof notification_overrides { + // List of notifications based on Execution status transitions + // When this list is not empty it is used rather than any notifications defined in the referenced launch plan. + // When this list is empty, the notifications defined for the launch plan will be applied. + NotificationList notifications = 5; + + // This should be set to true if all notifications are intended to be disabled for this execution. + bool disable_all = 6; + } + + // Labels to apply to the execution resource. + Labels labels = 7; + + // Annotations to apply to the execution resource. + Annotations annotations = 8; + + // Optional: security context override to apply this execution. + core.SecurityContext security_context = 10; + + // Optional: auth override to apply this execution. + AuthRole auth_role = 16 [deprecated = true]; + + // Indicates the runtime priority of the execution. + core.QualityOfService quality_of_service = 17; + + // Controls the maximum number of task nodes that can be run in parallel for the entire workflow. + // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + // and parallelism/concurrency of MapTasks is independent from this. + int32 max_parallelism = 18; + + // User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). + // This should be a prefix like s3://my-bucket/my-data + RawOutputDataConfig raw_output_data_config = 19; + + // Controls how to select an available cluster on which this execution should run. + ClusterAssignment cluster_assignment = 20; + + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + google.protobuf.BoolValue interruptible = 21; + + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + bool overwrite_cache = 22; + + // Environment variables to be set for the execution. + Envs envs = 23; + // Tags to be set for the execution. + repeated string tags = 24; +} + +// Request to terminate an in-progress execution. This action is irreversible. +// If an execution is already terminated, this request will simply be a no-op. +// This request will fail if it references a non-existent execution. +// If the request succeeds the phase "ABORTED" will be recorded for the termination +// with the optional cause added to the output_result. +message ExecutionTerminateRequest { + // Uniquely identifies the individual workflow execution to be terminated. + core.WorkflowExecutionIdentifier id = 1; + + // Optional reason for aborting. + string cause = 2; +} + +message ExecutionTerminateResponse { + // Purposefully empty, may be populated in the future. +} + +// Request structure to fetch inputs, output and other data produced by an execution. +// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` +message WorkflowExecutionGetDataRequest { + // The identifier of the execution for which to fetch inputs and outputs. + core.WorkflowExecutionIdentifier id = 1; +} + +// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +message WorkflowExecutionGetDataResponse { + // Signed url to fetch a core.LiteralMap of execution outputs. + // Deprecated: Please use full_outputs instead. + UrlBlob outputs = 1 [deprecated = true]; + + // Signed url to fetch a core.LiteralMap of execution inputs. + // Deprecated: Please use full_inputs instead. + UrlBlob inputs = 2 [deprecated = true]; + + // Full_inputs will only be populated if they are under a configured size threshold. + core.LiteralMap full_inputs = 3; + + // Full_outputs will only be populated if they are under a configured size threshold. + core.LiteralMap full_outputs = 4; +} + +// The state of the execution is used to control its visibility in the UI/CLI. +enum ExecutionState { + // By default, all executions are considered active. + EXECUTION_ACTIVE = 0; + + // Archived executions are no longer visible in the UI. + EXECUTION_ARCHIVED = 1; +} + +message ExecutionUpdateRequest { + // Identifier of the execution to update + core.WorkflowExecutionIdentifier id = 1; + + // State to set as the new value active/archive + ExecutionState state = 2; +} + +message ExecutionStateChangeDetails { + // The state of the execution is used to control its visibility in the UI/CLI. + ExecutionState state = 1; + + // This timestamp represents when the state changed. + google.protobuf.Timestamp occurred_at = 2; + + // Identifies the entity (if any) responsible for causing the state change of the execution + string principal = 3; +} + +message ExecutionUpdateResponse {} + +// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. +message WorkflowExecutionGetMetricsRequest { + // id defines the workflow execution to query for. + core.WorkflowExecutionIdentifier id = 1; + + // depth defines the number of Flyte entity levels to traverse when breaking down execution details. + int32 depth = 2; +} + +// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. +message WorkflowExecutionGetMetricsResponse { + // Span defines the top-level breakdown of the workflows execution. More precise information is nested in a + // hierarchical structure using Flyte entity references. + core.Span span = 1; +} diff --git a/flyteidl/protos/flyteidl/admin/launch_plan.proto b/flyteidl/protos/flyteidl/admin/launch_plan.proto new file mode 100644 index 0000000000..2164be31fd --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/launch_plan.proto @@ -0,0 +1,214 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/execution.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/interface.proto"; +import "flyteidl/core/security.proto"; +import "flyteidl/admin/schedule.proto"; +import "flyteidl/admin/common.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; + +// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required +// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. +message LaunchPlanCreateRequest { + // Uniquely identifies a launch plan entity. + core.Identifier id = 1; + + // User-provided launch plan details, including reference workflow, inputs and other metadata. + LaunchPlanSpec spec = 2; +} + +message LaunchPlanCreateResponse { + // Purposefully empty, may be populated in the future. +} + +// By default any launch plan regardless of state can be used to launch a workflow execution. +// However, at most one version of a launch plan +// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +// group will be observed and trigger executions at a defined cadence. +enum LaunchPlanState { + INACTIVE = 0; + ACTIVE = 1; +} + +// A LaunchPlan provides the capability to templatize workflow executions. +// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +// definition doesn't necessarily have a default value for said input. +message LaunchPlan { + // Uniquely identifies a launch plan entity. + core.Identifier id = 1; + + // User-provided launch plan details, including reference workflow, inputs and other metadata. + LaunchPlanSpec spec = 2; + + // Values computed by the flyte platform after launch plan registration. + LaunchPlanClosure closure = 3; +} + +// Response object for list launch plan requests. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +message LaunchPlanList { + repeated LaunchPlan launch_plans = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Defines permissions associated with executions created by this launch plan spec. +// Use either of these roles when they have permissions required by your workflow execution. +// Deprecated. +message Auth { + option deprecated = true; + + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + string assumable_iam_role = 1; + + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + string kubernetes_service_account = 2; +} + +// User-provided launch plan definition and configuration values. +message LaunchPlanSpec { + // Reference to the Workflow template that the launch plan references + core.Identifier workflow_id = 1; + + // Metadata for the Launch Plan + LaunchPlanMetadata entity_metadata = 2; + + // Input values to be passed for the execution. + // These can be overriden when an execution is created with this launch plan. + core.ParameterMap default_inputs = 3; + + // Fixed, non-overridable inputs for the Launch Plan. + // These can not be overriden when an execution is created with this launch plan. + core.LiteralMap fixed_inputs = 4; + + // String to indicate the role to use to execute the workflow underneath + string role = 5 [deprecated = true]; + + // Custom labels to be applied to the execution resource. + Labels labels = 6; + + // Custom annotations to be applied to the execution resource. + Annotations annotations = 7; + + // Indicates the permission associated with workflow executions triggered with this launch plan. + Auth auth = 8 [deprecated = true]; + + AuthRole auth_role = 9 [deprecated = true]; + + // Indicates security context for permissions triggered with this launch plan + core.SecurityContext security_context = 10; + + // Indicates the runtime priority of the execution. + core.QualityOfService quality_of_service = 16; + + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig raw_output_data_config = 17; + + // Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. + // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + // and parallelism/concurrency of MapTasks is independent from this. + int32 max_parallelism = 18; + + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + google.protobuf.BoolValue interruptible = 19; + + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + bool overwrite_cache = 20; + + // Environment variables to be set for the execution. + Envs envs = 21; +} + +// Values computed by the flyte platform after launch plan registration. +// These include expected_inputs required to be present in a CreateExecutionRequest +// to launch the reference workflow as well timestamp values associated with the launch plan. +message LaunchPlanClosure { + // Indicate the Launch plan state. + LaunchPlanState state = 1; + + // Indicates the set of inputs expected when creating an execution with the Launch plan + core.ParameterMap expected_inputs = 2; + + // Indicates the set of outputs expected to be produced by creating an execution with the Launch plan + core.VariableMap expected_outputs = 3; + + // Time at which the launch plan was created. + google.protobuf.Timestamp created_at = 4; + + // Time at which the launch plan was last updated. + google.protobuf.Timestamp updated_at = 5; +} + +// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +// the reference workflow. +message LaunchPlanMetadata { + // Schedule to execute the Launch Plan + Schedule schedule = 1; + + // List of notifications based on Execution status transitions + repeated Notification notifications = 2; +} + +// Request to set the referenced launch plan state to the configured value. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +message LaunchPlanUpdateRequest { + // Identifier of launch plan for which to change state. + // +required. + core.Identifier id = 1; + + // Desired state to apply to the launch plan. + // +required. + LaunchPlanState state = 2; +} + +// Purposefully empty, may be populated in the future. +message LaunchPlanUpdateResponse { +} + +// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +message ActiveLaunchPlanRequest { + // +required. + NamedEntityIdentifier id = 1; +} + +// Represents a request structure to list active launch plans within a project/domain. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +message ActiveLaunchPlanListRequest { + // Name of the project that contains the identifiers. + // +required. + string project = 1; + + // Name of the domain the identifiers belongs to within the project. + // +required. + string domain = 2; + + // Indicates the number of resources to be returned. + // +required. + uint32 limit = 3; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} diff --git a/flyteidl/protos/flyteidl/admin/matchable_resource.proto b/flyteidl/protos/flyteidl/admin/matchable_resource.proto new file mode 100644 index 0000000000..4ab6be6aa5 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/matchable_resource.proto @@ -0,0 +1,184 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/common.proto"; +import "flyteidl/admin/cluster_assignment.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/security.proto"; +import "google/protobuf/wrappers.proto"; + +// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes +// based on matching tags. +enum MatchableResource { + // Applies to customizable task resource requests and limits. + TASK_RESOURCE = 0; + + // Applies to configuring templated kubernetes cluster resources. + CLUSTER_RESOURCE = 1; + + // Configures task and dynamic task execution queue assignment. + EXECUTION_QUEUE = 2; + + // Configures the K8s cluster label to be used for execution to be run + EXECUTION_CLUSTER_LABEL = 3; + + // Configures default quality of service when undefined in an execution spec. + QUALITY_OF_SERVICE_SPECIFICATION = 4; + + // Selects configurable plugin implementation behavior for a given task type. + PLUGIN_OVERRIDE = 5; + + // Adds defaults for customizable workflow-execution specifications and overrides. + WORKFLOW_EXECUTION_CONFIG = 6; + + // Controls how to select an available cluster on which this execution should run. + CLUSTER_ASSIGNMENT = 7; +} + +// Defines a set of overridable task resource attributes set during task registration. +message TaskResourceSpec { + string cpu = 1; + + string gpu = 2; + + string memory = 3; + + string storage = 4; + + string ephemeral_storage = 5; +} + +// Defines task resource defaults and limits that will be applied at task registration. +message TaskResourceAttributes { + TaskResourceSpec defaults = 1; + + TaskResourceSpec limits = 2; +} + +message ClusterResourceAttributes { + // Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). + // Map keys are the *case-sensitive* names of variables in templatized resource files. + // Map values should be the custom values which get substituted during resource creation. + map attributes = 1; +} + +message ExecutionQueueAttributes { + // Tags used for assigning execution queues for tasks defined within this project. + repeated string tags = 1; +} + +message ExecutionClusterLabel { + // Label value to determine where the execution will be run + string value = 1; +} + +// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. +// In addition to an override implementation a selection of fallbacks can be provided or other modes +// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. +message PluginOverride { + // A predefined yet extensible Task type identifier. + string task_type = 1; + + // A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. + repeated string plugin_id = 2; + + enum MissingPluginBehavior { + // By default, if this plugin is not enabled for a Flyte deployment then execution will fail. + FAIL = 0; + + // Uses the system-configured default implementation. + USE_DEFAULT = 1; + } + + // Defines the behavior when no plugin from the plugin_id list is not found. + MissingPluginBehavior missing_plugin_behavior = 4; +} + + +message PluginOverrides { + repeated PluginOverride overrides = 1; +} + +// Adds defaults for customizable workflow-execution specifications and overrides. +message WorkflowExecutionConfig { + // Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. + int32 max_parallelism = 1; + + // Indicates security context permissions for executions triggered with this matchable attribute. + core.SecurityContext security_context = 2; + + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig raw_output_data_config = 3; + + // Custom labels to be applied to a triggered execution resource. + Labels labels = 4; + + // Custom annotations to be applied to a triggered execution resource. + Annotations annotations = 5; + + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + google.protobuf.BoolValue interruptible = 6; + + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + bool overwrite_cache = 7; + + // Environment variables to be set for the execution. + Envs envs = 8; +} + +// Generic container for encapsulating all types of the above attributes messages. +message MatchingAttributes { + oneof target { + TaskResourceAttributes task_resource_attributes = 1; + + ClusterResourceAttributes cluster_resource_attributes = 2; + + ExecutionQueueAttributes execution_queue_attributes = 3; + + ExecutionClusterLabel execution_cluster_label = 4; + + core.QualityOfService quality_of_service = 5; + + PluginOverrides plugin_overrides = 6; + + WorkflowExecutionConfig workflow_execution_config = 7; + + ClusterAssignment cluster_assignment = 8; + } +} + +// Represents a custom set of attributes applied for either a domain; a domain and project; or +// domain, project and workflow name. +// These are used to override system level defaults for kubernetes cluster resource management, +// default execution values, and more all across different levels of specificity. +message MatchableAttributesConfiguration { + MatchingAttributes attributes = 1; + + string domain = 2; + + string project = 3; + + string workflow = 4; + + string launch_plan = 5; +} + +// Request all matching resource attributes for a resource type. +// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +message ListMatchableAttributesRequest { + // +required + MatchableResource resource_type = 1; +} + +// Response for a request for all matching resource attributes for a resource type. +// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +message ListMatchableAttributesResponse { + repeated MatchableAttributesConfiguration configurations = 1; +} diff --git a/flyteidl/protos/flyteidl/admin/node_execution.proto b/flyteidl/protos/flyteidl/admin/node_execution.proto new file mode 100644 index 0000000000..fe71699a8b --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/node_execution.proto @@ -0,0 +1,233 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/common.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/catalog.proto"; +import "flyteidl/core/compiler.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/literals.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; + +// A message used to fetch a single node execution entity. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +message NodeExecutionGetRequest { + + // Uniquely identifies an individual node execution. + // +required + core.NodeExecutionIdentifier id = 1; +} + +// Represents a request structure to retrieve a list of node execution entities. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +message NodeExecutionListRequest { + // Indicates the workflow execution to filter by. + // +required + core.WorkflowExecutionIdentifier workflow_execution_id = 1; + + // Indicates the number of resources to be returned. + // +required + uint32 limit = 2; + + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + + string token = 3; + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; + + // Unique identifier of the parent node in the execution + // +optional + string unique_parent_id = 6; +} + +// Represents a request structure to retrieve a list of node execution entities launched by a specific task. +// This can arise when a task yields a subworkflow. +message NodeExecutionForTaskListRequest { + // Indicates the node execution to filter by. + // +required + core.TaskExecutionIdentifier task_execution_id = 1; + + // Indicates the number of resources to be returned. + // +required + uint32 limit = 2; + + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} + +// Encapsulates all details for a single node execution entity. +// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +// sub-workflow, or even a separate child-workflow execution. +// The same task can be called repeatedly in a single workflow but each node is unique. +message NodeExecution { + + // Uniquely identifies an individual node execution. + core.NodeExecutionIdentifier id = 1; + + // Path to remote data store where input blob is stored. + string input_uri = 2; + + // Computed results associated with this node execution. + NodeExecutionClosure closure = 3; + + // Metadata for Node Execution + NodeExecutionMetaData metadata = 4; +} + +// Represents additional attributes related to a Node Execution +message NodeExecutionMetaData { + // Node executions are grouped depending on retries of the parent + // Retry group is unique within the context of a parent node. + string retry_group = 1; + + // Boolean flag indicating if the node has child nodes under it + // This can be true when a node contains a dynamic workflow which then produces + // child nodes. + bool is_parent_node = 2; + + // Node id of the node in the original workflow + // This maps to value of WorkflowTemplate.nodes[X].id + string spec_node_id = 3; + + // Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. + // This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. + bool is_dynamic = 4; +} + +// Request structure to retrieve a list of node execution entities. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +message NodeExecutionList { + repeated NodeExecution node_executions = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Container for node execution details and results. +message NodeExecutionClosure { + // Only a node in a terminal state will have a non-empty output_result. + oneof output_result { + // Links to a remotely stored, serialized core.LiteralMap of node execution outputs. + // DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + string output_uri = 1 [deprecated = true]; + + // Error information for the Node + core.ExecutionError error = 2; + + // Raw output data produced by this node execution. + // DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + core.LiteralMap output_data = 10 [deprecated = true]; + } + + // The last recorded phase for this node execution. + core.NodeExecution.Phase phase = 3; + + // Time at which the node execution began running. + google.protobuf.Timestamp started_at = 4; + + // The amount of time the node execution spent running. + google.protobuf.Duration duration = 5; + + // Time at which the node execution was created. + google.protobuf.Timestamp created_at = 6; + + // Time at which the node execution was last updated. + google.protobuf.Timestamp updated_at = 7; + + // Store metadata for what the node launched. + // for ex: if this is a workflow node, we store information for the launched workflow. + oneof target_metadata { + WorkflowNodeMetadata workflow_node_metadata = 8; + TaskNodeMetadata task_node_metadata = 9; + } + + // String location uniquely identifying where the deck HTML file is. + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + string deck_uri = 11; + + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required + // to correctly recover partially completed executions where the subworkflow has already been compiled. + string dynamic_job_spec_uri = 12; +} + +// Metadata for a WorkflowNode +message WorkflowNodeMetadata { + // The identifier for a workflow execution launched by a node. + core.WorkflowExecutionIdentifier executionId = 1; +} + +// Metadata for the case in which the node is a TaskNode +message TaskNodeMetadata { + // Captures the status of caching for this execution. + core.CatalogCacheStatus cache_status = 1; + // This structure carries the catalog artifact information + core.CatalogMetadata catalog_key = 2; + // The latest checkpoint location + string checkpoint_uri = 4; +} + +// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. +message DynamicWorkflowNodeMetadata { + // id represents the unique identifier of the workflow. + core.Identifier id = 1; + + // Represents the compiled representation of the embedded dynamic workflow. + core.CompiledWorkflowClosure compiled_workflow = 2; + + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + // required to correctly recover partially completed executions where the subworkflow has already been compiled. + string dynamic_job_spec_uri = 3; +} + +// Request structure to fetch inputs and output for a node execution. +// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` +message NodeExecutionGetDataRequest { + // The identifier of the node execution for which to fetch inputs and outputs. + core.NodeExecutionIdentifier id = 1; +} + +// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +message NodeExecutionGetDataResponse { + // Signed url to fetch a core.LiteralMap of node execution inputs. + // Deprecated: Please use full_inputs instead. + UrlBlob inputs = 1 [deprecated = true]; + + // Signed url to fetch a core.LiteralMap of node execution outputs. + // Deprecated: Please use full_outputs instead. + UrlBlob outputs = 2 [deprecated = true]; + + // Full_inputs will only be populated if they are under a configured size threshold. + core.LiteralMap full_inputs = 3; + + // Full_outputs will only be populated if they are under a configured size threshold. + core.LiteralMap full_outputs = 4; + + // Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. + DynamicWorkflowNodeMetadata dynamic_workflow = 16; + + FlyteURLs flyte_urls = 17; + +} diff --git a/flyteidl/protos/flyteidl/admin/notification.proto b/flyteidl/protos/flyteidl/admin/notification.proto new file mode 100644 index 0000000000..b7478d7e2e --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/notification.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package flyteidl.admin; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +// Represents the Email object that is sent to a publisher/subscriber +// to forward the notification. +// Note: This is internal to Admin and doesn't need to be exposed to other components. +message EmailMessage { + // The list of email addresses to receive an email with the content populated in the other fields. + // Currently, each email recipient will receive its own email. + // This populates the TO field. + repeated string recipients_email = 1; + + // The email of the sender. + // This populates the FROM field. + string sender_email = 2; + + // The content of the subject line. + // This populates the SUBJECT field. + string subject_line = 3; + + // The content of the email body. + // This populates the BODY field. + string body = 4; +} diff --git a/flyteidl/protos/flyteidl/admin/project.proto b/flyteidl/protos/flyteidl/admin/project.proto new file mode 100644 index 0000000000..8d1d02959b --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/project.proto @@ -0,0 +1,95 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + + +import "flyteidl/admin/common.proto"; + +// Namespace within a project commonly used to differentiate between different service instances. +// e.g. "production", "development", etc. +message Domain { + // Globally unique domain name. + string id = 1; + + // Display name. + string name = 2; +} + + +// Top-level namespace used to classify different entities like workflows and executions. +message Project { + // Globally unique project name. + string id = 1; + + // Display name. + string name = 2; + + repeated Domain domains = 3; + + string description = 4; + + // Leverage Labels from flyteidl.admin.common.proto to + // tag projects with ownership information. + Labels labels = 5; + + // The state of the project is used to control its visibility in the UI and validity. + enum ProjectState { + // By default, all projects are considered active. + ACTIVE = 0; + + // Archived projects are no longer visible in the UI and no longer valid. + ARCHIVED = 1; + + // System generated projects that aren't explicitly created or managed by a user. + SYSTEM_GENERATED = 2; + } + ProjectState state = 6; +} + +// Represents a list of projects. +// See :ref:`ref_flyteidl.admin.Project` for more details +message Projects { + repeated Project projects = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Request to retrieve a list of projects matching specified filters. +// See :ref:`ref_flyteidl.admin.Project` for more details +message ProjectListRequest { + // Indicates the number of projects to be returned. + // +required + uint32 limit = 1; + + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 2; + + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 3; + + // Sort ordering. + // +optional + Sort sort_by = 4; +} + +// Adds a new user-project within the Flyte deployment. +// See :ref:`ref_flyteidl.admin.Project` for more details +message ProjectRegisterRequest { + // +required + Project project = 1; +} + +// Purposefully empty, may be updated in the future. +message ProjectRegisterResponse { +} + +// Purposefully empty, may be updated in the future. +message ProjectUpdateResponse { +} diff --git a/flyteidl/protos/flyteidl/admin/project_attributes.proto b/flyteidl/protos/flyteidl/admin/project_attributes.proto new file mode 100644 index 0000000000..de6f7a17ef --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/project_attributes.proto @@ -0,0 +1,60 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/matchable_resource.proto"; + +// Defines a set of custom matching attributes at the project level. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectAttributes { + // Unique project id for which this set of attributes will be applied. + string project = 1; + + MatchingAttributes matching_attributes = 2; +} + +// Sets custom attributes for a project +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectAttributesUpdateRequest { + // +required + ProjectAttributes attributes = 1; +} + +// Purposefully empty, may be populated in the future. +message ProjectAttributesUpdateResponse { +} + +// Request to get an individual project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectAttributesGetRequest { + // Unique project id which this set of attributes references. + // +required + string project = 1; + + // Which type of matchable attributes to return. + // +required + MatchableResource resource_type = 2; +} + +// Response to get an individual project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectAttributesGetResponse { + ProjectAttributes attributes = 1; +} + +// Request to delete a set matchable project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectAttributesDeleteRequest { + // Unique project id which this set of attributes references. + // +required + string project = 1; + + // Which type of matchable attributes to delete. + // +required + MatchableResource resource_type = 2; +} + +// Purposefully empty, may be populated in the future. +message ProjectAttributesDeleteResponse { +} diff --git a/flyteidl/protos/flyteidl/admin/project_domain_attributes.proto b/flyteidl/protos/flyteidl/admin/project_domain_attributes.proto new file mode 100644 index 0000000000..d45adaa69b --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/project_domain_attributes.proto @@ -0,0 +1,71 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/matchable_resource.proto"; + +// Defines a set of custom matching attributes which defines resource defaults for a project and domain. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectDomainAttributes { + // Unique project id for which this set of attributes will be applied. + string project = 1; + + // Unique domain id for which this set of attributes will be applied. + string domain = 2; + + MatchingAttributes matching_attributes = 3; +} + +// Sets custom attributes for a project-domain combination. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectDomainAttributesUpdateRequest { + // +required + ProjectDomainAttributes attributes = 1; +} + +// Purposefully empty, may be populated in the future. +message ProjectDomainAttributesUpdateResponse { +} + +// Request to get an individual project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectDomainAttributesGetRequest { + // Unique project id which this set of attributes references. + // +required + string project = 1; + + // Unique domain id which this set of attributes references. + // +required + string domain = 2; + + // Which type of matchable attributes to return. + // +required + MatchableResource resource_type = 3; +} + +// Response to get an individual project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectDomainAttributesGetResponse { + ProjectDomainAttributes attributes = 1; +} + +// Request to delete a set matchable project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message ProjectDomainAttributesDeleteRequest { + // Unique project id which this set of attributes references. + // +required + string project = 1; + + // Unique domain id which this set of attributes references. + // +required + string domain = 2; + + // Which type of matchable attributes to delete. + // +required + MatchableResource resource_type = 3; +} + +// Purposefully empty, may be populated in the future. +message ProjectDomainAttributesDeleteResponse { +} diff --git a/flyteidl/protos/flyteidl/admin/schedule.proto b/flyteidl/protos/flyteidl/admin/schedule.proto new file mode 100644 index 0000000000..f8d8529e9e --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/schedule.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +// Represents a frequency at which to run a schedule. +enum FixedRateUnit { + MINUTE = 0; + HOUR = 1; + DAY = 2; +} + +// Option for schedules run at a certain frequency e.g. every 2 minutes. +message FixedRate { + uint32 value = 1; + FixedRateUnit unit = 2; +} + +// Options for schedules to run according to a cron expression. +message CronSchedule { + // Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; + // Also supports nonstandard predefined scheduling definitions + // as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions + // except @reboot + string schedule = 1; + // ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations + string offset = 2; +} + +// Defines complete set of information required to trigger an execution on a schedule. +message Schedule { + + oneof ScheduleExpression { + // Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year + // e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * + string cron_expression = 1 [deprecated=true]; + FixedRate rate = 2; + CronSchedule cron_schedule = 4; + } + + // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + string kickoff_time_input_arg = 3; +} diff --git a/flyteidl/protos/flyteidl/admin/signal.proto b/flyteidl/protos/flyteidl/admin/signal.proto new file mode 100644 index 0000000000..8fc1c83e58 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/signal.proto @@ -0,0 +1,86 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/common.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/types.proto"; + +// SignalGetOrCreateRequest represents a request structure to retrive or create a signal. +// See :ref:`ref_flyteidl.admin.Signal` for more details +message SignalGetOrCreateRequest { + // A unique identifier for the requested signal. + core.SignalIdentifier id = 1; + + // A type denoting the required value type for this signal. + core.LiteralType type = 2; +} + +// SignalListRequest represents a request structure to retrieve a collection of signals. +// See :ref:`ref_flyteidl.admin.Signal` for more details +message SignalListRequest { + // Indicates the workflow execution to filter by. + // +required + core.WorkflowExecutionIdentifier workflow_execution_id = 1; + + // Indicates the number of resources to be returned. + // +required + uint32 limit = 2; + + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + + // Indicates a list of filters passed as string. + // +optional + string filters = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} + +// SignalList represents collection of signals along with the token of the last result. +// See :ref:`ref_flyteidl.admin.Signal` for more details +message SignalList { + // A list of signals matching the input filters. + repeated Signal signals = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal +// effetively satisfies the signal condition within a Flyte workflow. +// See :ref:`ref_flyteidl.admin.Signal` for more details +message SignalSetRequest { + // A unique identifier for the requested signal. + core.SignalIdentifier id = 1; + + // The value of this signal, must match the defining signal type. + core.Literal value = 2; +} + +// SignalSetResponse represents a response structure if signal setting succeeds. +message SignalSetResponse { + // Purposefully empty, may be populated in the future. +} + +// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte +// signal. Signals may exist either without a set value (representing a signal request) or with a +// populated value (indicating the signal has been given). +message Signal { + // A unique identifier for the requested signal. + core.SignalIdentifier id = 1; + + // A type denoting the required value type for this signal. + core.LiteralType type = 2; + + // The value of the signal. This is only available if the signal has been "set" and must match + // the defined the type. + core.Literal value = 3; +} diff --git a/flyteidl/protos/flyteidl/admin/task.proto b/flyteidl/protos/flyteidl/admin/task.proto new file mode 100644 index 0000000000..b768bc0102 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/task.proto @@ -0,0 +1,71 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/compiler.proto"; +import "flyteidl/admin/description_entity.proto"; +import "google/protobuf/timestamp.proto"; + +// Represents a request structure to create a revision of a task. +// See :ref:`ref_flyteidl.admin.Task` for more details +message TaskCreateRequest { + // id represents the unique identifier of the task. + // +required + core.Identifier id = 1; + + // Represents the specification for task. + // +required + TaskSpec spec = 2; +} + +// Represents a response structure if task creation succeeds. +message TaskCreateResponse { + // Purposefully empty, may be populated in the future. +} + +// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +// arranged to process workflow inputs and produce a deterministic set of outputs. +// Tasks can come in many varieties tuned for specialized behavior. +message Task { + // id represents the unique identifier of the task. + core.Identifier id = 1; + + // closure encapsulates all the fields that maps to a compiled version of the task. + TaskClosure closure = 2; + + // One-liner overview of the entity. + string short_description = 3; +} + +// Represents a list of tasks returned from the admin. +// See :ref:`ref_flyteidl.admin.Task` for more details +message TaskList { + // A list of tasks returned based on the request. + repeated Task tasks = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Represents a structure that encapsulates the user-configured specification of the task. +message TaskSpec { + // Template of the task that encapsulates all the metadata of the task. + core.TaskTemplate template = 1; + + // Represents the specification for description entity. + DescriptionEntity description = 2; +} + +// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +// and task metadata. +message TaskClosure { + // Represents the compiled representation of the task from the specification provided. + core.CompiledTask compiled_task = 1; + + // Time at which the task was created. + google.protobuf.Timestamp created_at = 2; +} diff --git a/flyteidl/protos/flyteidl/admin/task_execution.proto b/flyteidl/protos/flyteidl/admin/task_execution.proto new file mode 100644 index 0000000000..6706a12837 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/task_execution.proto @@ -0,0 +1,168 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/common.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/event/event.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; + +// A message used to fetch a single task execution entity. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +message TaskExecutionGetRequest { + // Unique identifier for the task execution. + // +required + core.TaskExecutionIdentifier id = 1; +} + +// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +message TaskExecutionListRequest { + // Indicates the node execution to filter by. + // +required + core.NodeExecutionIdentifier node_execution_id = 1; + + // Indicates the number of resources to be returned. + // +required + uint32 limit = 2; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering for returned list. + // +optional + Sort sort_by = 5; +} + +// Encapsulates all details for a single task execution entity. +// A task execution represents an instantiated task, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +message TaskExecution { + // Unique identifier for the task execution. + core.TaskExecutionIdentifier id = 1; + + // Path to remote data store where input blob is stored. + string input_uri = 2; + + // Task execution details and results. + TaskExecutionClosure closure = 3; + + // Whether this task spawned nodes. + bool is_parent = 4; +} + +// Response structure for a query to list of task execution entities. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +message TaskExecutionList { + repeated TaskExecution task_executions = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Container for task execution details and results. +message TaskExecutionClosure { + oneof output_result { + // Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + // DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + string output_uri = 1 [deprecated = true]; + + // Error information for the task execution. Populated if the execution failed. + core.ExecutionError error = 2; + + // Raw output data produced by this task execution. + // DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + core.LiteralMap output_data = 12 [deprecated = true]; + } + + // The last recorded phase for this task execution. + core.TaskExecution.Phase phase = 3; + + // Detailed log information output by the task execution. + repeated core.TaskLog logs = 4; + + // Time at which the task execution began running. + google.protobuf.Timestamp started_at = 5; + + // The amount of time the task execution spent running. + google.protobuf.Duration duration = 6; + + // Time at which the task execution was created. + google.protobuf.Timestamp created_at = 7; + + // Time at which the task execution was last updated. + google.protobuf.Timestamp updated_at = 8; + + // Custom data specific to the task plugin. + google.protobuf.Struct custom_info = 9; + + // If there is an explanation for the most recent phase transition, the reason will capture it. + string reason = 10; + + // A predefined yet extensible Task type identifier. + string task_type = 11; + + // Metadata around how a task was executed. + event.TaskExecutionMetadata metadata = 16; + + // The event version is used to indicate versioned changes in how data is maintained using this + // proto message. For example, event_verison > 0 means that maps tasks logs use the + // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + // in this message. + int32 event_version = 17; + + // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason + // as previously done, is much more valuable in visualizing and understanding historical evaluations. + repeated Reason reasons = 18; +} + +// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. +message Reason { + // occurred_at is the timestamp indicating the instant that this reason happened. + google.protobuf.Timestamp occurred_at = 1; + + // message is the explanation for the most recent phase transition or status update. + string message = 2; +} + +// Request structure to fetch inputs and output for a task execution. +// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` +message TaskExecutionGetDataRequest { + // The identifier of the task execution for which to fetch inputs and outputs. + // +required + core.TaskExecutionIdentifier id = 1; +} + +// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +message TaskExecutionGetDataResponse { + // Signed url to fetch a core.LiteralMap of task execution inputs. + // Deprecated: Please use full_inputs instead. + UrlBlob inputs = 1 [deprecated = true]; + + // Signed url to fetch a core.LiteralMap of task execution outputs. + // Deprecated: Please use full_outputs instead. + UrlBlob outputs = 2 [deprecated = true]; + + // Full_inputs will only be populated if they are under a configured size threshold. + core.LiteralMap full_inputs = 3; + + // Full_outputs will only be populated if they are under a configured size threshold. + core.LiteralMap full_outputs = 4; + + // flyte tiny url to fetch a core.LiteralMap of task execution's IO + // Deck will be empty for task + FlyteURLs flyte_urls = 5; +} diff --git a/flyteidl/protos/flyteidl/admin/version.proto b/flyteidl/protos/flyteidl/admin/version.proto new file mode 100644 index 0000000000..7632112e2e --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/version.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +// Response for the GetVersion API +message GetVersionResponse { + // The control plane version information. FlyteAdmin and related components + // form the control plane of Flyte + Version control_plane_version = 1; +} + +// Provides Version information for a component +message Version { + // Specifies the GIT sha of the build + string Build = 1; + + // Version for the build, should follow a semver + string Version = 2; + + // Build timestamp + string BuildTime = 3; +} + +// Empty request for GetVersion +message GetVersionRequest { +} diff --git a/flyteidl/protos/flyteidl/admin/workflow.proto b/flyteidl/protos/flyteidl/admin/workflow.proto new file mode 100644 index 0000000000..b768cf9601 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/workflow.proto @@ -0,0 +1,92 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/compiler.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/workflow.proto"; +import "flyteidl/admin/description_entity.proto"; +import "google/protobuf/timestamp.proto"; + +// Represents a request structure to create a revision of a workflow. +// See :ref:`ref_flyteidl.admin.Workflow` for more details +message WorkflowCreateRequest { + // id represents the unique identifier of the workflow. + // +required + core.Identifier id = 1; + + // Represents the specification for workflow. + // +required + WorkflowSpec spec = 2; +} + +message WorkflowCreateResponse { + // Purposefully empty, may be populated in the future. +} + +// Represents the workflow structure stored in the Admin +// A workflow is created by ordering tasks and associating outputs to inputs +// in order to produce a directed-acyclic execution graph. +message Workflow { + // id represents the unique identifier of the workflow. + core.Identifier id = 1; + + // closure encapsulates all the fields that maps to a compiled version of the workflow. + WorkflowClosure closure = 2; + + // One-liner overview of the entity. + string short_description = 3; +} + +// Represents a list of workflows returned from the admin. +// See :ref:`ref_flyteidl.admin.Workflow` for more details +message WorkflowList { + // A list of workflows returned based on the request. + repeated Workflow workflows = 1; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + string token = 2; +} + +// Represents a structure that encapsulates the specification of the workflow. +message WorkflowSpec { + // Template of the task that encapsulates all the metadata of the workflow. + core.WorkflowTemplate template = 1; + + // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the + // propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out + // to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. + repeated core.WorkflowTemplate sub_workflows = 2; + + // Represents the specification for description entity. + DescriptionEntity description = 3; +} + +// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +message WorkflowClosure { + // Represents the compiled representation of the workflow from the specification provided. + core.CompiledWorkflowClosure compiled_workflow = 1; + + // Time at which the workflow was created. + google.protobuf.Timestamp created_at = 2; +} + +// The workflow id is already used and the structure is different +message WorkflowErrorExistsDifferentStructure { + core.Identifier id = 1; +} + +// The workflow id is already used with an identical sctructure +message WorkflowErrorExistsIdenticalStructure { + core.Identifier id = 1; +} + +// When a CreateWorkflowRequest failes due to matching id +message CreateWorkflowFailureReason { + oneof reason { + WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + } +} diff --git a/flyteidl/protos/flyteidl/admin/workflow_attributes.proto b/flyteidl/protos/flyteidl/admin/workflow_attributes.proto new file mode 100644 index 0000000000..379bc6ac0d --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/workflow_attributes.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/matchable_resource.proto"; + +// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message WorkflowAttributes { + // Unique project id for which this set of attributes will be applied. + string project = 1; + + // Unique domain id for which this set of attributes will be applied. + string domain = 2; + + // Workflow name for which this set of attributes will be applied. + string workflow = 3; + + MatchingAttributes matching_attributes = 4; +} + +// Sets custom attributes for a project, domain and workflow combination. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message WorkflowAttributesUpdateRequest { + WorkflowAttributes attributes = 1; +} + +// Purposefully empty, may be populated in the future. +message WorkflowAttributesUpdateResponse { +} + +// Request to get an individual workflow attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message WorkflowAttributesGetRequest { + // Unique project id which this set of attributes references. + // +required + string project = 1; + + // Unique domain id which this set of attributes references. + // +required + string domain = 2; + + // Workflow name which this set of attributes references. + // +required + string workflow = 3; + + // Which type of matchable attributes to return. + // +required + MatchableResource resource_type = 4; +} + +// Response to get an individual workflow attribute override. +message WorkflowAttributesGetResponse { + WorkflowAttributes attributes = 1; +} + +// Request to delete a set matchable workflow attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +message WorkflowAttributesDeleteRequest { + // Unique project id which this set of attributes references. + // +required + string project = 1; + + // Unique domain id which this set of attributes references. + // +required + string domain = 2; + + // Workflow name which this set of attributes references. + // +required + string workflow = 3; + + // Which type of matchable attributes to delete. + // +required + MatchableResource resource_type = 4; +} + +// Purposefully empty, may be populated in the future. +message WorkflowAttributesDeleteResponse { +} diff --git a/flyteidl/protos/flyteidl/core/catalog.proto b/flyteidl/protos/flyteidl/core/catalog.proto new file mode 100644 index 0000000000..80cc044324 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/catalog.proto @@ -0,0 +1,61 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/identifier.proto"; + +// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future +enum CatalogCacheStatus { + // Used to indicate that caching was disabled + CACHE_DISABLED = 0; + // Used to indicate that the cache lookup resulted in no matches + CACHE_MISS = 1; + // used to indicate that the associated artifact was a result of a previous execution + CACHE_HIT = 2; + // used to indicate that the resultant artifact was added to the cache + CACHE_POPULATED = 3; + // Used to indicate that cache lookup failed because of an error + CACHE_LOOKUP_FAILURE = 4; + // Used to indicate that cache lookup failed because of an error + CACHE_PUT_FAILURE = 5; + // Used to indicate the cache lookup was skipped + CACHE_SKIPPED = 6; +}; + +message CatalogArtifactTag { + // Artifact ID is generated name + string artifact_id = 1; + // Flyte computes the tag automatically, as the hash of the values + string name = 2; +}; + +// Catalog artifact information with specific metadata +message CatalogMetadata { + // Dataset ID in the catalog + Identifier dataset_id = 1; + // Artifact tag in the catalog + CatalogArtifactTag artifact_tag = 2; + // Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + oneof source_execution { + // Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions + TaskExecutionIdentifier source_task_execution = 3; + } +}; + +message CatalogReservation { + // Indicates the status of a catalog reservation operation. + enum Status { + // Used to indicate that reservations are disabled + RESERVATION_DISABLED = 0; + // Used to indicate that a reservation was successfully acquired or extended + RESERVATION_ACQUIRED = 1; + // Used to indicate that an active reservation currently exists + RESERVATION_EXISTS = 2; + // Used to indicate that the reservation has been successfully released + RESERVATION_RELEASED = 3; + // Used to indicate that a reservation operation resulted in failure + RESERVATION_FAILURE = 4; + } +} diff --git a/flyteidl/protos/flyteidl/core/compiler.proto b/flyteidl/protos/flyteidl/core/compiler.proto new file mode 100644 index 0000000000..b1e393640f --- /dev/null +++ b/flyteidl/protos/flyteidl/core/compiler.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/workflow.proto"; +import "flyteidl/core/tasks.proto"; + +// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +// step uses this created ConnectionSet +message ConnectionSet { + message IdList { + repeated string ids = 1; + } + + // A list of all the node ids that are downstream from a given node id + map downstream = 7; + + // A list of all the node ids, that are upstream of this node id + map upstream = 8; +} + +// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer +message CompiledWorkflow { + // Completely contained Workflow Template + WorkflowTemplate template = 1; + // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + ConnectionSet connections = 2; +} + +// Output of the Compilation step. This object represent one Task. We store more metadata at this layer +message CompiledTask { + // Completely contained TaskTemplate + TaskTemplate template = 1; +} + +// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +// compiled subworkflows. +message CompiledWorkflowClosure { + //+required + CompiledWorkflow primary = 1; + // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + // as an inlined workflow + //+optional + repeated CompiledWorkflow sub_workflows = 2; + // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + //+required (at least 1) + repeated CompiledTask tasks = 3; +} diff --git a/flyteidl/protos/flyteidl/core/condition.proto b/flyteidl/protos/flyteidl/core/condition.proto new file mode 100644 index 0000000000..247618713d --- /dev/null +++ b/flyteidl/protos/flyteidl/core/condition.proto @@ -0,0 +1,63 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/literals.proto"; + +// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. +// Each expression results in a boolean result. +message ComparisonExpression { + // Binary Operator for each expression + enum Operator { + EQ = 0; + NEQ = 1; + // Greater Than + GT = 2; + GTE = 3; + // Less Than + LT = 4; + LTE = 5; + } + + Operator operator = 1; + Operand left_value = 2; + Operand right_value = 3; +} + +// Defines an operand to a comparison expression. +message Operand { + oneof val { + // Can be a constant + core.Primitive primitive = 1 [deprecated = true]; + // Or one of this node's input variables + string var = 2; + // Replace the primitive field + core.Scalar scalar = 3; + } +} + +// Defines a boolean expression tree. It can be a simple or a conjunction expression. +// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +message BooleanExpression { + oneof expr { + ConjunctionExpression conjunction = 1; + ComparisonExpression comparison = 2; + } +} + +// Defines a conjunction expression of two boolean expressions. +message ConjunctionExpression { + // Nested conditions. They can be conjoined using AND / OR + // Order of evaluation is not important as the operators are Commutative + enum LogicalOperator { + // Conjunction + AND = 0; + OR = 1; + } + + LogicalOperator operator = 1; + BooleanExpression left_expression = 2; + BooleanExpression right_expression = 3; +} diff --git a/flyteidl/protos/flyteidl/core/dynamic_job.proto b/flyteidl/protos/flyteidl/core/dynamic_job.proto new file mode 100644 index 0000000000..05d0731a18 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/dynamic_job.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; + +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/workflow.proto"; +import "flyteidl/core/literals.proto"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +// Describes a set of tasks to execute and how the final outputs are produced. +message DynamicJobSpec { + // A collection of nodes to execute. + repeated Node nodes = 1; + + // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + // specified, is the count of nodes repeated field. + int64 min_successes = 2; + + // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + // in bindings should have the generated id for the subtask. + repeated Binding outputs = 3; + + // [Optional] A complete list of task specs referenced in nodes. + repeated TaskTemplate tasks = 4; + + // [Optional] A complete list of task specs referenced in nodes. + repeated WorkflowTemplate subworkflows = 5; +} diff --git a/flyteidl/protos/flyteidl/core/errors.proto b/flyteidl/protos/flyteidl/core/errors.proto new file mode 100644 index 0000000000..d9a76d97dc --- /dev/null +++ b/flyteidl/protos/flyteidl/core/errors.proto @@ -0,0 +1,35 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/execution.proto"; + +// Error message to propagate detailed errors from container executions to the execution +// engine. +message ContainerError { + // A simplified code for errors, so that we can provide a glossary of all possible errors. + string code = 1; + // A detailed error message. + string message = 2; + + // Defines a generic error type that dictates the behavior of the retry strategy. + enum Kind { + NON_RECOVERABLE = 0; + RECOVERABLE = 1; + } + + // An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + Kind kind = 3; + + // Defines the origin of the error (system, user, unknown). + ExecutionError.ErrorKind origin = 4; +} + +// Defines the errors.pb file format the container can produce to communicate +// failure reasons to the execution engine. +message ErrorDocument { + // The error raised during execution. + ContainerError error = 1; +} diff --git a/flyteidl/protos/flyteidl/core/execution.proto b/flyteidl/protos/flyteidl/core/execution.proto new file mode 100644 index 0000000000..0c3787b66b --- /dev/null +++ b/flyteidl/protos/flyteidl/core/execution.proto @@ -0,0 +1,116 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "google/protobuf/duration.proto"; + +// Indicates various phases of Workflow Execution +message WorkflowExecution { + enum Phase { + UNDEFINED = 0; + QUEUED = 1; + RUNNING = 2; + SUCCEEDING = 3; + SUCCEEDED = 4; + FAILING = 5; + FAILED = 6; + ABORTED = 7; + TIMED_OUT = 8; + ABORTING = 9; + } +} + +// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows +message NodeExecution { + enum Phase { + UNDEFINED = 0; + QUEUED = 1; + RUNNING = 2; + SUCCEEDED = 3; + FAILING = 4; + FAILED = 5; + ABORTED = 6; + SKIPPED = 7; + TIMED_OUT = 8; + DYNAMIC_RUNNING = 9; + RECOVERED = 10; + } +} + +// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +// but this is the cumulative list that customers may want to know about for their task. +message TaskExecution{ + enum Phase { + UNDEFINED = 0; + QUEUED = 1; + RUNNING = 2; + SUCCEEDED = 3; + ABORTED = 4; + FAILED = 5; + // To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing + INITIALIZING = 6; + // To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded + WAITING_FOR_RESOURCES = 7; + } +} + + +// Represents the error message from the execution. +message ExecutionError { + // Error code indicates a grouping of a type of error. + // More Info: + string code = 1; + // Detailed description of the error - including stack trace. + string message = 2; + // Full error contents accessible via a URI + string error_uri = 3; + // Error type: System or User + enum ErrorKind { + UNKNOWN = 0; + USER = 1; + SYSTEM = 2; + } + ErrorKind kind = 4; +} + +// Log information for the task that is specific to a log sink +// When our log story is flushed out, we may have more metadata here like log link expiry +message TaskLog { + + enum MessageFormat { + UNKNOWN = 0; + CSV = 1; + JSON = 2; + } + + string uri = 1; + string name = 2; + MessageFormat message_format = 3; + google.protobuf.Duration ttl = 4; +} + +// Represents customized execution run-time attributes. +message QualityOfServiceSpec { + // Indicates how much queueing delay an execution can tolerate. + google.protobuf.Duration queueing_budget = 1; + + // Add future, user-configurable options here +} + +// Indicates the priority of an execution. +message QualityOfService { + enum Tier { + // Default: no quality of service specified. + UNDEFINED = 0; + HIGH = 1; + MEDIUM = 2; + LOW = 3; + } + + oneof designation { + Tier tier = 1; + QualityOfServiceSpec spec = 2; + } +} diff --git a/flyteidl/protos/flyteidl/core/identifier.proto b/flyteidl/protos/flyteidl/core/identifier.proto new file mode 100644 index 0000000000..ef8ca4494c --- /dev/null +++ b/flyteidl/protos/flyteidl/core/identifier.proto @@ -0,0 +1,74 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +// Indicates a resource type within Flyte. +enum ResourceType { + UNSPECIFIED = 0; + TASK = 1; + WORKFLOW = 2; + LAUNCH_PLAN = 3; + // A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. + // Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects + // in a similar manner to other Flyte objects + DATASET = 4; +} + +// Encapsulation of fields that uniquely identifies a Flyte resource. +message Identifier { + // Identifies the specific type of resource that this identifier corresponds to. + core.ResourceType resource_type = 1; + + // Name of the project the resource belongs to. + string project = 2; + + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + string domain = 3; + + // User provided value for the resource. + string name = 4; + + // Specific version of the resource. + string version = 5; +} + +// Encapsulation of fields that uniquely identifies a Flyte workflow execution +message WorkflowExecutionIdentifier { + // Name of the project the resource belongs to. + string project = 1; + + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + string domain = 2; + + // User or system provided value for the resource. + string name = 4; +} + +// Encapsulation of fields that identify a Flyte node execution entity. +message NodeExecutionIdentifier { + string node_id = 1; + + WorkflowExecutionIdentifier execution_id = 2; +} + +// Encapsulation of fields that identify a Flyte task execution entity. +message TaskExecutionIdentifier { + core.Identifier task_id = 1; + + core.NodeExecutionIdentifier node_execution_id = 2; + + uint32 retry_attempt = 3; +} + +// Encapsulation of fields the uniquely identify a signal. +message SignalIdentifier { + // Unique identifier for a signal. + string signal_id = 1; + + // Identifies the Flyte workflow execution this signal belongs to. + WorkflowExecutionIdentifier execution_id = 2; +} diff --git a/flyteidl/protos/flyteidl/core/interface.proto b/flyteidl/protos/flyteidl/core/interface.proto new file mode 100644 index 0000000000..2ee0c3f70a --- /dev/null +++ b/flyteidl/protos/flyteidl/core/interface.proto @@ -0,0 +1,51 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/types.proto"; +import "flyteidl/core/literals.proto"; + +// Defines a strongly typed variable. +message Variable { + // Variable literal type. + LiteralType type = 1; + + //+optional string describing input variable + string description = 2; +} + +// A map of Variables +message VariableMap { + // Defines a map of variable names to variables. + map variables = 1; +} + +// Defines strongly typed inputs and outputs. +message TypedInterface { + VariableMap inputs = 1; + VariableMap outputs = 2; +} + +// A parameter is used as input to a launch plan and has +// the special ability to have a default value or mark itself as required. +message Parameter { + //+required Variable. Defines the type of the variable backing this parameter. + Variable var = 1; + + //+optional + oneof behavior { + // Defines a default value that has to match the variable type defined. + Literal default = 2; + + //+optional, is this value required to be filled. + bool required = 3; + } +} + +// A map of Parameters. +message ParameterMap { + // Defines a map of parameter names to parameters. + map parameters = 1; +} diff --git a/flyteidl/protos/flyteidl/core/literals.proto b/flyteidl/protos/flyteidl/core/literals.proto new file mode 100644 index 0000000000..06af80335d --- /dev/null +++ b/flyteidl/protos/flyteidl/core/literals.proto @@ -0,0 +1,180 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "flyteidl/core/types.proto"; + +// Primitive Types +message Primitive { + // Defines one of simple primitive types. These types will get translated into different programming languages as + // described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + oneof value { + int64 integer = 1; + double float_value = 2; + string string_value = 3; + bool boolean = 4; + google.protobuf.Timestamp datetime = 5; + google.protobuf.Duration duration = 6; + } +} + +// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +// undefined since it can be assigned to a scalar of any LiteralType. +message Void { +} + +// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +message Blob { + BlobMetadata metadata = 1; + string uri = 3; +} + +message BlobMetadata { + BlobType type = 1; +} + +// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +message Binary { + bytes value = 1; + string tag = 2; +} + +// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +message Schema { + string uri = 1; + SchemaType type = 3; +} + +// The runtime representation of a tagged union value. See `UnionType` for more details. +message Union { + Literal value = 1; + LiteralType type = 2; +} + +message StructuredDatasetMetadata { + // Bundle the type information along with the literal. + // This is here because StructuredDatasets can often be more defined at run time than at compile time. + // That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, + // without any column information, but at run time, you might have that column information. + // flytekit python will copy this type information into the literal, from the type information, if not provided by + // the various plugins (encoders). + // Since this field is run time generated, it's not used for any type checking. + StructuredDatasetType structured_dataset_type = 1; +} + +message StructuredDataset { + // String location uniquely identifying where the data is. + // Should start with the storage location (e.g. s3://, gs://, bq://, etc.) + string uri = 1; + + StructuredDatasetMetadata metadata = 2; +} + +message Scalar { + oneof value { + Primitive primitive = 1; + Blob blob = 2; + Binary binary = 3; + Schema schema = 4; + Void none_type = 5; + Error error = 6; + google.protobuf.Struct generic = 7; + StructuredDataset structured_dataset = 8; + Union union = 9; + } +} + +// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +message Literal { + oneof value { + // A simple value. + Scalar scalar = 1; + + // A collection of literals to allow nesting. + LiteralCollection collection = 2; + + // A map of strings to literals. + LiteralMap map = 3; + } + + // A hash representing this literal. + // This is used for caching purposes. For more details refer to RFC 1893 + // (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md) + string hash = 4; +} + +// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +message LiteralCollection { + repeated Literal literals = 1; +} + +// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +message LiteralMap { + map literals = 1; +} + +// A collection of BindingData items. +message BindingDataCollection { + repeated BindingData bindings = 1; +} + +// A map of BindingData items. +message BindingDataMap { + map bindings = 1; +} + +message UnionInfo { + LiteralType targetType = 1; +} + +// Specifies either a simple value or a reference to another output. +message BindingData { + oneof value { + // A simple scalar value. + Scalar scalar = 1; + + // A collection of binding data. This allows nesting of binding data to any number + // of levels. + BindingDataCollection collection = 2; + + // References an output promised by another node. + OutputReference promise = 3; + + // A map of bindings. The key is always a string. + BindingDataMap map = 4; + } + + UnionInfo union = 5; +} + +// An input/output binding of a variable to either static value or a node output. +message Binding { + // Variable name must match an input/output variable of the node. + string var = 1; + + // Data to use to bind this variable. + BindingData binding = 2; +} + +// A generic key value pair. +message KeyValuePair { + //required. + string key = 1; + + //+optional. + string value = 2; +} + +// Retry strategy associated with an executable unit. +message RetryStrategy { + // Number of retries. Retries will be consumed when the job fails with a recoverable error. + // The number of retries must be less than or equals to 10. + uint32 retries = 5; +} diff --git a/flyteidl/protos/flyteidl/core/metrics.proto b/flyteidl/protos/flyteidl/core/metrics.proto new file mode 100644 index 0000000000..c96a599886 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/metrics.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/identifier.proto"; +import "google/protobuf/timestamp.proto"; + +// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation +// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more +// precise definitions. +message Span { + // start_time defines the instance this span began. + google.protobuf.Timestamp start_time = 1; + + // end_time defines the instance this span completed. + google.protobuf.Timestamp end_time = 2; + + oneof id { + // workflow_id is the id of the workflow execution this Span represents. + flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + + // node_id is the id of the node execution this Span represents. + flyteidl.core.NodeExecutionIdentifier node_id = 4; + + // task_id is the id of the task execution this Span represents. + flyteidl.core.TaskExecutionIdentifier task_id = 5; + + // operation_id is the id of a unique operation that this Span represents. + string operation_id = 6; + } + + // spans defines a collection of Spans that breakdown this execution. + repeated Span spans = 7; +} diff --git a/flyteidl/protos/flyteidl/core/security.proto b/flyteidl/protos/flyteidl/core/security.proto new file mode 100644 index 0000000000..f9830bf6bd --- /dev/null +++ b/flyteidl/protos/flyteidl/core/security.proto @@ -0,0 +1,130 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +// Secret encapsulates information about the secret a task needs to proceed. An environment variable +// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +// secrets are passed through environment variables. +// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets +// are passed through file mounts. +message Secret { + enum MountType { + // Default case, indicates the client can tolerate either mounting options. + ANY = 0; + + // ENV_VAR indicates the secret needs to be mounted as an environment variable. + ENV_VAR = 1; + + // FILE indicates the secret needs to be mounted as a file. + FILE = 2; + } + + // The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of + // the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. + // For AWS Secret Manager, this should be the name of the secret. + // +required + string group = 1; + + // The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones + // that do not support it. + // +optional + string group_version = 2; + + // The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation + // of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should + // match one of the keys inside the secret. For AWS Secret Manager, it's ignored. + // +optional + string key = 3; + + // mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail + // if the underlying key management system cannot satisfy that requirement. If not provided, the default location + // will depend on the key management system. + // +optional + MountType mount_requirement = 4; +} + +// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. +message OAuth2Client { + // client_id is the public id for the client to use. The system will not perform any pre-auth validation that the + // secret requested matches the client_id indicated here. + // +required + string client_id = 1; + + // client_secret is a reference to the secret used to authenticate the OAuth2 client. + // +required + Secret client_secret = 2; +} + +// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the +// right identity for the execution environment. +message Identity { + // iam_role references the fully qualified name of Identity & Access Management role to impersonate. + string iam_role = 1; + + // k8s_service_account references a kubernetes service account to impersonate. + string k8s_service_account = 2; + + // oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when + // making external calls. + OAuth2Client oauth2_client = 3; + + // execution_identity references the subject who makes the execution + string execution_identity = 4; +} + +// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. +// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +// tokens are passed through environment variables. +// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens +// are passed through file mounts. +message OAuth2TokenRequest { + // Type of the token requested. + enum Type { + // CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. + CLIENT_CREDENTIALS = 0; + } + + // name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for + // environment variables and as a filename for mounting tokens as files. + // +required + string name = 1; + + // type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. + // +required + Type type = 2; + + // client references the client_id/secret to use to request the OAuth2 token. + // +required + OAuth2Client client = 3; + + // idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related + // information. + // +optional + string idp_discovery_endpoint = 4; + + // token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is + // mandatory. + // +optional + string token_endpoint = 5; +} + +// SecurityContext holds security attributes that apply to tasks. +message SecurityContext { + // run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the + // backend plugin to choose the appropriate identity for the execution engine the task will run on. + Identity run_as = 1; + + // secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the + // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + // to the secret) and to pass it to the remote execution engine. + repeated Secret secrets = 2; + + // tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the + // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + // to the secret) and to pass it to the remote execution engine. + repeated OAuth2TokenRequest tokens = 3; +} diff --git a/flyteidl/protos/flyteidl/core/tasks.proto b/flyteidl/protos/flyteidl/core/tasks.proto new file mode 100644 index 0000000000..808c196d14 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/tasks.proto @@ -0,0 +1,321 @@ +syntax = "proto3"; + +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/interface.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/security.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +// A customizable interface to convey resources requested for a container. This can be interpreted differently for different +// container engines. +message Resources { + // Known resource names. + enum ResourceName { + UNKNOWN = 0; + CPU = 1; + GPU = 2; + MEMORY = 3; + STORAGE = 4; + // For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. + EPHEMERAL_STORAGE = 5; + } + + // Encapsulates a resource name and value. + message ResourceEntry { + // Resource name. + ResourceName name = 1; + + // Value must be a valid k8s quantity. See + // https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 + string value = 2; + } + + // The desired set of resources requested. ResourceNames must be unique within the list. + repeated ResourceEntry requests = 1; + + // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + // within the list. + repeated ResourceEntry limits = 2; +} + +// Runtime information. This is loosely defined to allow for extensibility. +message RuntimeMetadata { + enum RuntimeType { + OTHER = 0; + FLYTE_SDK = 1; + } + + // Type of runtime. + RuntimeType type = 1; + + // Version of the runtime. All versions should be backward compatible. However, certain cases call for version + // checks to ensure tighter validation or setting expectations. + string version = 2; + + //+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + string flavor = 3; +} + +// Task Metadata +message TaskMetadata { + // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + bool discoverable = 1; + + // Runtime information about the task. + RuntimeMetadata runtime = 2; + + // The overall timeout of a task including user-triggered retries. + google.protobuf.Duration timeout = 4; + + // Number of retries per task. + RetryStrategy retries = 5; + + // Indicates a logical version to apply to this task for the purpose of discovery. + string discovery_version = 6; + + // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + // of the ending of support for a given task. + string deprecated_error_message = 7; + + // For interruptible we will populate it at the node level but require it be part of TaskMetadata + // for a user to set the value. + // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being + // set by the user or defaulting to false. + // The logic of handling precedence will be done as part of flytepropeller. + + // Identify whether task is interruptible + oneof interruptible_value { + bool interruptible = 8; + }; + + // Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work + bool cache_serializable = 9; + + // Indicates whether the task will generate a Deck URI when it finishes executing. + bool generates_deck = 10; + + // Arbitrary tags that allow users and the platform to store small but arbitrary labels + map tags = 11; + + // pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this + // task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied + // identically as, the default PodTemplate configured in FlytePropeller. + string pod_template_name = 12; +} + +// A Task structure that uniquely identifies a task in the system +// Tasks are registered as a first step in the system. +message TaskTemplate { + // Auto generated taskId by the system. Task Id uniquely identifies this task globally. + Identifier id = 1; + + // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + // extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + // implementation registered for the TaskCategory. + string type = 2; + + // Extra metadata about the task. + TaskMetadata metadata = 3; + + // A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees + // compile-time validation of the workflow to avoid costly runtime failures. + TypedInterface interface = 4; + + // Custom data about the task. This is extensible to allow various plugins in the system. + google.protobuf.Struct custom = 5; + + // Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + // If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + // handlers. + oneof target { + Container container = 6; + K8sPod k8s_pod = 17; + Sql sql = 18; + } + + // This can be used to customize task handling at execution time for the same task type. + int32 task_type_version = 7; + + // security_context encapsulates security attributes requested to run this task. + SecurityContext security_context = 8; + + // Metadata about the custom defined for this task. This is extensible to allow various plugins in the system + // to use as required. + // reserve the field numbers 1 through 15 for very frequently occurring message elements + map config = 16; +} + +// ----------------- First class Plugins + +// Defines port properties for a container. +message ContainerPort { + // Number of port to expose on the pod's IP address. + // This must be a valid port number, 0 < x < 65536. + uint32 container_port = 1; +} + +message Container { + // Container image url. Eg: docker/redis:latest + string image = 1; + + // Command to be executed, if not provided, the default entrypoint in the container image will be used. + repeated string command = 2; + + // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + // needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + // system will populate these before executing the container. + repeated string args = 3; + + // Container resources requirement as specified by the container engine. + Resources resources = 4; + + // Environment variables will be set as the container is starting up. + repeated KeyValuePair env = 5; + + // Allows extra configs to be available for the container. + // TODO: elaborate on how configs will become available. + // Deprecated, please use TaskTemplate.config instead. + repeated KeyValuePair config = 6 [deprecated = true]; + + // Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + // not supported on AWS Batch) + // Only K8s + repeated ContainerPort ports = 7; + + // BETA: Optional configuration for DataLoading. If not specified, then default values are used. + // This makes it possible to to run a completely portable container, that uses inputs and outputs + // only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. + // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + // to understand the default paths. + // Only K8s + DataLoadingConfig data_config = 9; + + // Architecture-type the container image supports. + enum Architecture { + UNKNOWN = 0; + AMD64 = 1; + ARM64 = 2; + ARM_V6 = 3; + ARM_V7 = 4; + } + Architecture architecture = 10; +} + +// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) +message IOStrategy { + // Mode to use for downloading + enum DownloadMode { + // All data will be downloaded before the main container is executed + DOWNLOAD_EAGER = 0; + // Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details + DOWNLOAD_STREAM = 1; + // Large objects (offloaded) will not be downloaded + DO_NOT_DOWNLOAD = 2; + } + // Mode to use for uploading + enum UploadMode { + // All data will be uploaded after the main container exits + UPLOAD_ON_EXIT = 0; + // Data will be uploaded as it appears. Refer to protocol specification for details + UPLOAD_EAGER = 1; + // Data will not be uploaded, only references will be written + DO_NOT_UPLOAD = 2; + } + // Mode to use to manage downloads + DownloadMode download_mode = 1; + // Mode to use to manage uploads + UploadMode upload_mode = 2; +} + +// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. +// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path +// Any outputs generated by the user container - within output_path are automatically uploaded. +message DataLoadingConfig { + // LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. + // If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. + // JSON and YAML do not need any protobuf definitions to read it + // All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) + enum LiteralMapFormat { + // JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html + JSON = 0; + YAML = 1; + // Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core + PROTO = 2; + } + // Flag enables DataLoading Config. If this is not set, data loading will not be used! + bool enabled = 1; + // File system path (start at root). This folder will contain all the inputs exploded to a separate file. + // Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like + // /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations + // /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format + // /var/flyte/inputs/y -> Y is a file in Binary format + // /var/flyte/inputs/z/... -> Note Z itself is a directory + // More information about the protocol - refer to docs #TODO reference docs here + string input_path = 2; + // File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file + string output_path = 3; + // In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. + // This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding + LiteralMapFormat format = 4; + IOStrategy io_strategy = 5; +} + +// Defines a pod spec and additional pod metadata that is created when a task is executed. +message K8sPod { + // Contains additional metadata for building a kubernetes pod. + K8sObjectMetadata metadata = 1; + + // Defines the primary pod spec created when a task is executed. + // This should be a JSON-marshalled pod spec, which can be defined in + // - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 + // - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py + google.protobuf.Struct pod_spec = 2; + + // BETA: Optional configuration for DataLoading. If not specified, then default values are used. + // This makes it possible to to run a completely portable container, that uses inputs and outputs + // only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. + // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + // to understand the default paths. + // Only K8s + DataLoadingConfig data_config = 3; +} + +// Metadata for building a kubernetes object when a task is executed. +message K8sObjectMetadata { + // Optional labels to add to the pod definition. + map labels = 1; + + // Optional annotations to add to the pod definition. + map annotations = 2; +} + +// Sql represents a generic sql workload with a statement and dialect. +message Sql { + // The actual query to run, the query can have templated parameters. + // We use Flyte's Golang templating format for Query templating. + // Refer to the templating documentation. + // https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py + // For example, + // insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet + // select * + // from my_table + // where ds = '{{ .Inputs.ds }}' + string statement = 1; + // The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid + // expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. + // We support the following dialect: ansi, hive. + enum Dialect { + UNDEFINED = 0; + ANSI = 1; + HIVE = 2; + OTHER = 3; + } + Dialect dialect = 2; +} diff --git a/flyteidl/protos/flyteidl/core/types.proto b/flyteidl/protos/flyteidl/core/types.proto new file mode 100644 index 0000000000..a2babe783e --- /dev/null +++ b/flyteidl/protos/flyteidl/core/types.proto @@ -0,0 +1,182 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "google/protobuf/struct.proto"; + +// Define a set of simple types. +enum SimpleType { + NONE = 0; + INTEGER = 1; + FLOAT = 2; + STRING = 3; + BOOLEAN = 4; + DATETIME = 5; + DURATION = 6; + BINARY = 7; + ERROR = 8; + STRUCT = 9; +} + +// Defines schema columns and types to strongly type-validate schemas interoperability. +message SchemaType { + message SchemaColumn { + // A unique name -within the schema type- for the column + string name = 1; + + enum SchemaColumnType { + INTEGER = 0; + FLOAT = 1; + STRING = 2; + BOOLEAN = 3; + DATETIME = 4; + DURATION = 5; + } + + // The column type. This allows a limited set of types currently. + SchemaColumnType type = 2; + } + + // A list of ordered columns this schema comprises of. + repeated SchemaColumn columns = 3; +} + +message StructuredDatasetType { + message DatasetColumn { + // A unique name within the schema type for the column. + string name = 1; + + // The column type. + LiteralType literal_type = 2; + } + + // A list of ordered columns this schema comprises of. + repeated DatasetColumn columns = 1; + + // This is the storage format, the format of the bits at rest + // parquet, feather, csv, etc. + // For two types to be compatible, the format will need to be an exact match. + string format = 2; + + // This is a string representing the type that the bytes in external_schema_bytes are formatted in. + // This is an optional field that will not be used for type checking. + string external_schema_type = 3; + + // The serialized bytes of a third-party schema library like Arrow. + // This is an optional field that will not be used for type checking. + bytes external_schema_bytes = 4; +} + +// Defines type behavior for blob objects +message BlobType { + enum BlobDimensionality { + SINGLE = 0; + MULTIPART = 1; + } + + // Format can be a free form string understood by SDK/UI etc like + // csv, parquet etc + string format = 1; + BlobDimensionality dimensionality = 2; +} + +// Enables declaring enum types, with predefined string values +// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish +// To provide no defaults, make the first value as undefined. +message EnumType { + // Predefined set of enum values. + repeated string values = 1; +} + +// Defines a tagged union type, also known as a variant (and formally as the sum type). +// +// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag +// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by +// storing the varaint's tag with the literal value and can be examined in runtime. +// +// Type S is typically written as +// S := Apple A | Banana B | Cantaloupe C | ... +// +// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: +// Optional X := X | Null +// +// See also: https://en.wikipedia.org/wiki/Tagged_union +message UnionType { + // Predefined set of variants in union. + repeated LiteralType variants = 1; +} + +// Hints to improve type matching +// e.g. allows distinguishing output from custom type transformers +// even if the underlying IDL serialization matches. +message TypeStructure { + // Must exactly match for types to be castable + string tag = 1; +} + +// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. +message TypeAnnotation { + // A arbitrary JSON payload to describe a type. + google.protobuf.Struct annotations = 1; +} + +// Defines a strong type to allow type checking between interfaces. +message LiteralType { + oneof type { + // A simple type that can be compared one-to-one with another. + SimpleType simple = 1; + + // A complex type that requires matching of inner fields. + SchemaType schema = 2; + + // Defines the type of the value of a collection. Only homogeneous collections are allowed. + LiteralType collection_type = 3; + + // Defines the type of the value of a map type. The type of the key is always a string. + LiteralType map_value_type = 4; + + // A blob might have specialized implementation details depending on associated metadata. + BlobType blob = 5; + + // Defines an enum with pre-defined string values. + EnumType enum_type = 7; + + // Generalized schema support + StructuredDatasetType structured_dataset_type = 8; + + // Defines an union type with pre-defined LiteralTypes. + UnionType union_type = 10; + } + + // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + // consumers to identify special behavior or display extended information for the type. + google.protobuf.Struct metadata = 6; + + // This field contains arbitrary data that might have special semantic + // meaning for the client but does not effect internal flyte behavior. + TypeAnnotation annotation = 9; + + // Hints to improve type matching. + TypeStructure structure = 11; +} + +// A reference to an output produced by a node. The type can be retrieved -and validated- from +// the underlying interface of the node. +message OutputReference { + // Node id must exist at the graph layer. + string node_id = 1; + + // Variable name must refer to an output variable for the node. + string var = 2; +} + +// Represents an error thrown from a node. +message Error { + // The node id that threw the error. + string failed_node_id = 1; + + // Error message thrown. + string message = 2; +} diff --git a/flyteidl/protos/flyteidl/core/workflow.proto b/flyteidl/protos/flyteidl/core/workflow.proto new file mode 100644 index 0000000000..37d39182e4 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/workflow.proto @@ -0,0 +1,282 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/condition.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/interface.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/types.proto"; +import "flyteidl/core/security.proto"; +import "google/protobuf/duration.proto"; + +// Defines a condition and the execution unit that should be executed if the condition is satisfied. +message IfBlock { + core.BooleanExpression condition = 1; + Node then_node = 2; +} + +// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +// If no conditions were satisfied, the else_node or the error will execute. +message IfElseBlock { + //+required. First condition to evaluate. + IfBlock case = 1; + + //+optional. Additional branches to evaluate. + repeated IfBlock other = 2; + + //+required. + oneof default { + // The node to execute in case none of the branches were taken. + Node else_node = 3; + + // An error to throw in case none of the branches were taken. + Error error = 4; + } +} + +// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). +message BranchNode { + //+required + IfElseBlock if_else = 1; +} + +// Refers to the task that the Node is to execute. +message TaskNode { + oneof reference { + // A globally unique identifier for the task. + Identifier reference_id = 1; + } + + // Optional overrides applied at task execution time. + TaskNodeOverrides overrides = 2; +} + +// Refers to a the workflow the node is to execute. +message WorkflowNode { + oneof reference { + // A globally unique identifier for the launch plan. + Identifier launchplan_ref = 1; + + // Reference to a subworkflow, that should be defined with the compiler context + Identifier sub_workflow_ref = 2; + } +} + +// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean +// signal with the provided signal_id. +message ApproveCondition { + // A unique identifier for the requested boolean signal. + string signal_id = 1; +} + +// SignalCondition represents a dependency on an signal. +message SignalCondition { + // A unique identifier for the requested signal. + string signal_id = 1; + + // A type denoting the required value type for this signal. + LiteralType type = 2; + + // The variable name for the signal value in this nodes outputs. + string output_variable_name = 3; +} + +// SleepCondition represents a dependency on waiting for the specified duration. +message SleepCondition { + // The overall duration for this sleep. + google.protobuf.Duration duration = 1; +} + +// GateNode refers to the condition that is required for the gate to successfully complete. +message GateNode { + oneof condition { + // ApproveCondition represents a dependency on an external approval provided by a boolean signal. + ApproveCondition approve = 1; + + // SignalCondition represents a dependency on an signal. + SignalCondition signal = 2; + + // SleepCondition represents a dependency on waiting for the specified duration. + SleepCondition sleep = 3; + } +} + +// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input +// values. An ArrayNode can be executed with configurable parallelism (separate from the parent +// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. +message ArrayNode { + // node is the sub-node that will be executed for each element in the array. + Node node = 1; + + // parallelism defines the minimum number of instances to bring up concurrently at any given + // point. Note that this is an optimistic restriction and that, due to network partitioning or + // other failures, the actual number of currently running instances might be more. This has to + // be a positive number if assigned. Default value is size. + uint32 parallelism = 2; + + oneof success_criteria { + // min_successes is an absolute number of the minimum number of successful completions of + // sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful + // and outputs will be computed. This has to be a non-negative number if assigned. Default + // value is size (if specified). + uint32 min_successes = 3; + + // If the array job size is not known beforehand, the min_success_ratio can instead be used + // to determine when an ArrayNode can be marked successful. + float min_success_ratio = 4; + } +} + +// Defines extra information about the Node. +message NodeMetadata { + // A friendly name for the Node + string name = 1; + + // The overall timeout of a task. + google.protobuf.Duration timeout = 4; + + // Number of retries per task. + RetryStrategy retries = 5; + + // Identify whether node is interruptible + oneof interruptible_value { + bool interruptible = 6; + }; + +} + +// Links a variable to an alias. +message Alias { + // Must match one of the output variable names on a node. + string var = 1; + + // A workflow-level unique alias that downstream nodes can refer to in their input. + string alias = 2; +} + +// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +// node. +message Node { + // A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved + // node ids that cannot be used by other nodes. + string id = 1; + + // Extra metadata about the node. + NodeMetadata metadata = 2; + + // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + // must be fulfilled. + repeated Binding inputs = 3; + + //+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its + // upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs + // field. + repeated string upstream_node_ids = 4; + + //+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + // need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + // nodes outputs using the alias if one's specified. + repeated Alias output_aliases = 5; + + // Information about the target to execute in this node. + oneof target { + // Information about the Task to execute in this node. + TaskNode task_node = 6; + + // Information about the Workflow to execute in this mode. + WorkflowNode workflow_node = 7; + + // Information about the branch node to evaluate in this node. + BranchNode branch_node = 8; + + // Information about the condition to evaluate in this node. + GateNode gate_node = 9; + + // Information about the sub-node executions for each value in the list of this nodes + // inputs values. + ArrayNode array_node = 10; + } +} + +// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not +// percolate down to child entities (like tasks) launched by the workflow. +message WorkflowMetadata { + // Indicates the runtime priority of workflow executions. + QualityOfService quality_of_service = 1; + + // Failure Handling Strategy + enum OnFailurePolicy { + // FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically + // abort all currently running nodes and clean up resources before finally marking the workflow executions as + // failed. + FAIL_IMMEDIATELY = 0; + + // FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will + // not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. + // Other nodes that will be executed to completion before cleaning up resources and marking the workflow + // execution as failed. + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + } + + // Defines how the system should behave when a failure is detected in the workflow execution. + OnFailurePolicy on_failure = 2; + + // Arbitrary tags that allow users and the platform to store small but arbitrary labels + map tags = 3; +} + +// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to +// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it +// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes +// unless explicitly overridden at the node layer. +// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be +// added to both this object and the WorkflowMetadata object above. +message WorkflowMetadataDefaults { + // Whether child nodes of the workflow are interruptible. + bool interruptible = 1; +} + +// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +// directed acyclic graph. +message WorkflowTemplate { + // A globally unique identifier for the workflow. + Identifier id = 1; + + // Extra metadata about the workflow. + WorkflowMetadata metadata = 2; + + // Defines a strongly typed interface for the Workflow. This can include some optional parameters. + TypedInterface interface = 3; + + // A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. + repeated Node nodes = 4; + + // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + // specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + // to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + // bind final outputs. + // Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + // just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + // outputs from the output of a task. + repeated Binding outputs = 5; + + //+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + // The interface of this node must match the Workflow interface with an additional input named 'error' of type + // pb.lyft.flyte.core.Error. + Node failure_node = 6; + + // workflow defaults + WorkflowMetadataDefaults metadata_defaults = 7; +} + +// Optional task node overrides that will be applied at task execution time. +message TaskNodeOverrides { + // A customizable interface to convey resources requested for a task container. + Resources resources = 1; +} diff --git a/flyteidl/protos/flyteidl/core/workflow_closure.proto b/flyteidl/protos/flyteidl/core/workflow_closure.proto new file mode 100644 index 0000000000..e00b2ccf68 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/workflow_closure.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/workflow.proto"; +import "flyteidl/core/tasks.proto"; + +// Defines an enclosed package of workflow and tasks it references. +message WorkflowClosure { + //required. Workflow template. + WorkflowTemplate workflow = 1; + + //optional. A collection of tasks referenced by the workflow. Only needed if the workflow + // references tasks. + repeated TaskTemplate tasks = 2; +} diff --git a/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto new file mode 100644 index 0000000000..6f059159f3 --- /dev/null +++ b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto @@ -0,0 +1,412 @@ +syntax = "proto3"; + +package datacatalog; + +import "flyteidl/core/literals.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/datacatalog"; + +/* + * Data Catalog service definition + * Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + * Artifacts are associated with a Dataset, and can be tagged for retrieval. + */ +service DataCatalog { + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + rpc CreateDataset (CreateDatasetRequest) returns (CreateDatasetResponse); + + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + rpc GetDataset (GetDatasetRequest) returns (GetDatasetResponse); + + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + rpc CreateArtifact (CreateArtifactRequest) returns (CreateArtifactResponse); + + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + rpc GetArtifact (GetArtifactRequest) returns (GetArtifactResponse); + + // Associate a tag with an artifact. Tags are unique within a Dataset. + rpc AddTag (AddTagRequest) returns (AddTagResponse); + + // Return a paginated list of artifacts + rpc ListArtifacts (ListArtifactsRequest) returns (ListArtifactsResponse); + + // Return a paginated list of datasets + rpc ListDatasets (ListDatasetsRequest) returns (ListDatasetsResponse); + + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + rpc UpdateArtifact (UpdateArtifactRequest) returns (UpdateArtifactResponse); + + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + rpc GetOrExtendReservation (GetOrExtendReservationRequest) returns (GetOrExtendReservationResponse); + + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + rpc ReleaseReservation (ReleaseReservationRequest) returns (ReleaseReservationResponse); +} + +/* + * Request message for creating a Dataset. + */ +message CreateDatasetRequest { + Dataset dataset = 1; +} + +/* + * Response message for creating a Dataset + */ +message CreateDatasetResponse { + +} + +/* + * Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier + * which is a combination of several fields. + */ +message GetDatasetRequest { + DatasetID dataset = 1; +} + +/* + * Response message for retrieving a Dataset. The response will include the metadata for the + * Dataset. + */ +message GetDatasetResponse { + Dataset dataset = 1; +} + +/* + * Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that + * can be one of artifact_id or tag. The result returned will include the artifact data and metadata + * associated with the artifact. + */ +message GetArtifactRequest { + DatasetID dataset = 1; + + oneof query_handle { + string artifact_id = 2; + string tag_name = 3; + } +} + +/* + * Response message for retrieving an Artifact. The result returned will include the artifact data + * and metadata associated with the artifact. + */ +message GetArtifactResponse { + Artifact artifact = 1; +} + +/* + * Request message for creating an Artifact and its associated artifact Data. + */ +message CreateArtifactRequest { + Artifact artifact = 1; +} + +/* + * Response message for creating an Artifact. + */ +message CreateArtifactResponse { + +} + +/* + * Request message for tagging an Artifact. + */ +message AddTagRequest { + Tag tag = 1; +} + +/* + * Response message for tagging an Artifact. + */ +message AddTagResponse { + +} + +// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. +message ListArtifactsRequest { + // Use a datasetID for which you want to retrieve the artifacts + DatasetID dataset = 1; + + // Apply the filter expression to this query + FilterExpression filter = 2; + // Pagination options to get a page of artifacts + PaginationOptions pagination = 3; +} + +// Response to list artifacts +message ListArtifactsResponse { + // The list of artifacts + repeated Artifact artifacts = 1; + // Token to use to request the next page, pass this into the next requests PaginationOptions + string next_token = 2; +} + +// List the datasets for the given query +message ListDatasetsRequest { + // Apply the filter expression to this query + FilterExpression filter = 1; + // Pagination options to get a page of datasets + PaginationOptions pagination = 2; +} + +// List the datasets response with token for next pagination +message ListDatasetsResponse { + // The list of datasets + repeated Dataset datasets = 1; + // Token to use to request the next page, pass this into the next requests PaginationOptions + string next_token = 2; +} + +/* + * Request message for updating an Artifact and overwriting its associated ArtifactData. + */ +message UpdateArtifactRequest { + // ID of dataset the artifact is associated with + DatasetID dataset = 1; + + // Either ID of artifact or name of tag to retrieve existing artifact from + oneof query_handle { + string artifact_id = 2; + string tag_name = 3; + } + + // List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + // ArtifactData entries will be removed from the underlying blob storage and database. + repeated ArtifactData data = 4; +} + +/* + * Response message for updating an Artifact. + */ +message UpdateArtifactResponse { + // The unique ID of the artifact updated + string artifact_id = 1; +} + +/* + * ReservationID message that is composed of several string fields. + */ +message ReservationID { + // The unique ID for the reserved dataset + DatasetID dataset_id = 1; + + // The specific artifact tag for the reservation + string tag_name = 2; +} + +// Try to acquire or extend an artifact reservation. If an active reservation exists, retreive that instance. +message GetOrExtendReservationRequest { + // The unique ID for the reservation + ReservationID reservation_id = 1; + + // The unique ID of the owner for the reservation + string owner_id = 2; + + // Requested reservation extension heartbeat interval + google.protobuf.Duration heartbeat_interval = 3; +} + +// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. +message Reservation { + // The unique ID for the reservation + ReservationID reservation_id = 1; + + // The unique ID of the owner for the reservation + string owner_id = 2; + + // Recommended heartbeat interval to extend reservation + google.protobuf.Duration heartbeat_interval = 3; + + // Expiration timestamp of this reservation + google.protobuf.Timestamp expires_at = 4; + + // Free-form metadata associated with the artifact + Metadata metadata = 6; +} + +// Response including either a newly minted reservation or the existing reservation +message GetOrExtendReservationResponse { + // The reservation to be acquired or extended + Reservation reservation = 1; +} + +// Request to release reservation +message ReleaseReservationRequest { + // The unique ID for the reservation + ReservationID reservation_id = 1; + + // The unique ID of the owner for the reservation + string owner_id = 2; +} + +// Response to release reservation +message ReleaseReservationResponse { + +} + +/* + * Dataset message. It is uniquely identified by DatasetID. + */ +message Dataset { + DatasetID id = 1; + Metadata metadata = 2; + repeated string partitionKeys = 3; +} + +/* + * An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair + */ +message Partition { + string key = 1; + string value = 2; +} + +/* + * DatasetID message that is composed of several string fields. + */ +message DatasetID { + string project = 1; // The name of the project + string name = 2; // The name of the dataset + string domain = 3; // The domain (eg. environment) + string version = 4; // Version of the data schema + string UUID = 5; // UUID for the dataset (if set the above fields are optional) +} + +/* + * Artifact message. It is composed of several string fields. + */ +message Artifact { + string id = 1; // The unique ID of the artifact + DatasetID dataset = 2; // The Dataset that the artifact belongs to + repeated ArtifactData data = 3; // A list of data that is associated with the artifact + Metadata metadata = 4; // Free-form metadata associated with the artifact + repeated Partition partitions = 5; + repeated Tag tags = 6; + google.protobuf.Timestamp created_at = 7; // creation timestamp of artifact, autogenerated by service +} + +/* + * ArtifactData that belongs to an artifact + */ +message ArtifactData { + string name = 1; + flyteidl.core.Literal value = 2; +} + +/* + * Tag message that is unique to a Dataset. It is associated to a single artifact and + * can be retrieved by name later. + */ +message Tag { + string name = 1; // Name of tag + string artifact_id = 2; // The tagged artifact + DatasetID dataset = 3; // The Dataset that this tag belongs to +} + +/* + * Metadata representation for artifacts and datasets + */ +message Metadata { + map key_map = 1; // key map is a dictionary of key/val strings that represent metadata +} + +// Filter expression that is composed of a combination of single filters +message FilterExpression { + repeated SinglePropertyFilter filters = 1; +} + +// A single property to filter on. +message SinglePropertyFilter { + oneof property_filter { + TagPropertyFilter tag_filter = 1; + PartitionPropertyFilter partition_filter = 2; + ArtifactPropertyFilter artifact_filter = 3; + DatasetPropertyFilter dataset_filter = 4; + } + + // as use-cases come up we can add more operators, ex: gte, like, not eq etc. + enum ComparisonOperator { + EQUALS = 0; + } + + ComparisonOperator operator = 10; // field 10 in case we add more entities to query + // Next field number: 11 +} + +// Artifact properties we can filter by +message ArtifactPropertyFilter { + // oneof because we can add more properties in the future + oneof property { + string artifact_id = 1; + } +} + +// Tag properties we can filter by +message TagPropertyFilter { + oneof property { + string tag_name = 1; + } +} + +// Partition properties we can filter by +message PartitionPropertyFilter { + oneof property { + KeyValuePair key_val = 1; + } +} + +message KeyValuePair { + string key = 1; + string value = 2; +} + +// Dataset properties we can filter by +message DatasetPropertyFilter { + oneof property { + string project = 1; + string name = 2; + string domain = 3; + string version = 4; + } +} + +// Pagination options for making list requests +message PaginationOptions { + + // the max number of results to return + uint32 limit = 1; + + // the token to pass to fetch the next page + string token = 2; + + // the property that we want to sort the results by + SortKey sortKey = 3; + + // the sort order of the results + SortOrder sortOrder = 4; + + enum SortOrder { + DESCENDING = 0; + ASCENDING = 1; + } + + enum SortKey { + CREATION_TIME = 0; + } +} diff --git a/flyteidl/protos/flyteidl/event/event.proto b/flyteidl/protos/flyteidl/event/event.proto new file mode 100644 index 0000000000..71fa0799e7 --- /dev/null +++ b/flyteidl/protos/flyteidl/event/event.proto @@ -0,0 +1,301 @@ +syntax = "proto3"; + +package flyteidl.event; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/event"; + +import "flyteidl/core/literals.proto"; +import "flyteidl/core/compiler.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/catalog.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/struct.proto"; + +message WorkflowExecutionEvent { + // Workflow execution id + core.WorkflowExecutionIdentifier execution_id = 1; + + // the id of the originator (Propeller) of the event + string producer_id = 2; + + core.WorkflowExecution.Phase phase = 3; + + // This timestamp represents when the original event occurred, it is generated + // by the executor of the workflow. + google.protobuf.Timestamp occurred_at = 4; + + oneof output_result { + // URL to the output of the execution, it encodes all the information + // including Cloud source provider. ie., s3://... + string output_uri = 5; + + // Error information for the execution + core.ExecutionError error = 6; + + // Raw output data produced by this workflow execution. + core.LiteralMap output_data = 7; + } +} + +message NodeExecutionEvent { + // Unique identifier for this node execution + core.NodeExecutionIdentifier id = 1; + + // the id of the originator (Propeller) of the event + string producer_id = 2; + + core.NodeExecution.Phase phase = 3; + + // This timestamp represents when the original event occurred, it is generated + // by the executor of the node. + google.protobuf.Timestamp occurred_at = 4; + + oneof input_value { + string input_uri = 5; + + // Raw input data consumed by this node execution. + core.LiteralMap input_data = 20; + } + + oneof output_result { + // URL to the output of the execution, it encodes all the information + // including Cloud source provider. ie., s3://... + string output_uri = 6; + + // Error information for the execution + core.ExecutionError error = 7; + + // Raw output data produced by this node execution. + core.LiteralMap output_data = 15; + } + + // Additional metadata to do with this event's node target based + // on the node type + oneof target_metadata { + WorkflowNodeMetadata workflow_node_metadata = 8; + TaskNodeMetadata task_node_metadata = 14; + } + + // [To be deprecated] Specifies which task (if any) launched this node. + ParentTaskExecutionMetadata parent_task_metadata = 9; + + // Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. + ParentNodeExecutionMetadata parent_node_metadata = 10; + + // Retry group to indicate grouping of nodes by retries + string retry_group = 11; + + // Identifier of the node in the original workflow/graph + // This maps to value of WorkflowTemplate.nodes[X].id + string spec_node_id = 12; + + // Friendly readable name for the node + string node_name = 13; + + int32 event_version = 16; + + // Whether this node launched a subworkflow. + bool is_parent = 17; + + // Whether this node yielded a dynamic workflow. + bool is_dynamic = 18; + + // String location uniquely identifying where the deck HTML file is + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + string deck_uri = 19; + + // This timestamp represents the instant when the event was reported by the executing framework. For example, + // when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when + // literal inputs are initially copied. The event however will not be sent until after the copy completes. + // Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + google.protobuf.Timestamp reported_at = 21; +} + +// For Workflow Nodes we need to send information about the workflow that's launched +message WorkflowNodeMetadata { + core.WorkflowExecutionIdentifier execution_id = 1; +} + +message TaskNodeMetadata { + // Captures the status of caching for this execution. + core.CatalogCacheStatus cache_status = 1; + // This structure carries the catalog artifact information + core.CatalogMetadata catalog_key = 2; + // Captures the status of cache reservations for this execution. + core.CatalogReservation.Status reservation_status = 3; + // The latest checkpoint location + string checkpoint_uri = 4; + + // In the case this task launched a dynamic workflow we capture its structure here. + DynamicWorkflowNodeMetadata dynamic_workflow = 16; +} + +// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. +message DynamicWorkflowNodeMetadata { + // id represents the unique identifier of the workflow. + core.Identifier id = 1; + + // Represents the compiled representation of the embedded dynamic workflow. + core.CompiledWorkflowClosure compiled_workflow = 2; + + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + // required to correctly recover partially completed executions where the workflow has already been compiled. + string dynamic_job_spec_uri = 3; +} + +message ParentTaskExecutionMetadata { + core.TaskExecutionIdentifier id = 1; +} + +message ParentNodeExecutionMetadata { + // Unique identifier of the parent node id within the execution + // This is value of core.NodeExecutionIdentifier.node_id of the parent node + string node_id = 1; +} + +// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +message TaskExecutionEvent { + // ID of the task. In combination with the retryAttempt this will indicate + // the task execution uniquely for a given parent node execution. + core.Identifier task_id = 1; + + // A task execution is always kicked off by a node execution, the event consumer + // will use the parent_id to relate the task to it's parent node execution + core.NodeExecutionIdentifier parent_node_execution_id = 2; + + // retry attempt number for this task, ie., 2 for the second attempt + uint32 retry_attempt = 3; + + // Phase associated with the event + core.TaskExecution.Phase phase = 4; + + // id of the process that sent this event, mainly for trace debugging + string producer_id = 5; + + // log information for the task execution + repeated core.TaskLog logs = 6; + + // This timestamp represents when the original event occurred, it is generated + // by the executor of the task. + google.protobuf.Timestamp occurred_at = 7; + + + oneof input_value { + // URI of the input file, it encodes all the information + // including Cloud source provider. ie., s3://... + string input_uri = 8; + + // Raw input data consumed by this task execution. + core.LiteralMap input_data = 19; + } + + oneof output_result { + // URI to the output of the execution, it will be in a format that encodes all the information + // including Cloud source provider. ie., s3://... + string output_uri = 9; + + // Error information for the execution + core.ExecutionError error = 10; + + // Raw output data produced by this task execution. + core.LiteralMap output_data = 17; + } + + // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + google.protobuf.Struct custom_info = 11; + + // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + // that should be recorded regardless of the lack of phase change. + // The version field should be incremented when metadata changes across the duration of an individual phase. + uint32 phase_version = 12; + + // An optional explanation for the phase transition. + string reason = 13; + + + // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin + // this type will be identical, but not all task executions necessarily use pre-registered definitions and this + // type is useful to render the task in the UI, filter task executions, etc. + string task_type = 14; + + // Metadata around how a task was executed. + TaskExecutionMetadata metadata = 16; + + // The event version is used to indicate versioned changes in how data is reported using this + // proto message. For example, event_verison > 0 means that maps tasks report logs using the + // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + // in this message. + int32 event_version = 18; + + // This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s + // pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, + // but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps + // facilitates a more accurate portrayal of the evaluation time-series. + google.protobuf.Timestamp reported_at = 20; +} + +// This message contains metadata about external resources produced or used by a specific task execution. +message ExternalResourceInfo { + + // Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. + string external_id = 1; + + // A unique index for the external resource with respect to all external resources for this task. Although the + // identifier may change between task reporting events or retries, this will remain the same to enable aggregating + // information from multiple reports. + uint32 index = 2; + + // Retry attempt number for this external resource, ie., 2 for the second attempt + uint32 retry_attempt = 3; + + // Phase associated with the external resource + core.TaskExecution.Phase phase = 4; + + // Captures the status of caching for this external resource execution. + core.CatalogCacheStatus cache_status = 5; + + // log information for the external resource execution + repeated core.TaskLog logs = 6; +} + + +// This message holds task execution metadata specific to resource allocation used to manage concurrent +// executions for a project namespace. +message ResourcePoolInfo { + // Unique resource ID used to identify this execution when allocating a token. + string allocation_token = 1; + + // Namespace under which this task execution requested an allocation token. + string namespace = 2; +} + +// Holds metadata around how a task was executed. +// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, +// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. +// Metadata is a container for these attributes across the task execution lifecycle. +message TaskExecutionMetadata { + + // Unique, generated name for this task execution used by the backend. + string generated_name = 1; + + // Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. + repeated ExternalResourceInfo external_resources = 2; + + // Includes additional data on concurrent resource management used during execution.. + // This is a repeated field because a plugin can request multiple resource allocations during execution. + repeated ResourcePoolInfo resource_pool_info = 3; + + // The identifier of the plugin used to execute this task. + string plugin_identifier = 4; + + // Includes the broad category of machine used for this specific task execution. + enum InstanceClass { + // The default instance class configured for the flyte application platform. + DEFAULT = 0; + + // The instance class configured for interruptible tasks. + INTERRUPTIBLE = 1; + } + InstanceClass instance_class = 16; +} diff --git a/flyteidl/protos/flyteidl/plugins/array_job.proto b/flyteidl/protos/flyteidl/plugins/array_job.proto new file mode 100644 index 0000000000..b46fee1104 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/array_job.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +// will be executed concurrently. +message ArrayJob { + // Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an + // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + // running instances might be more. This has to be a positive number if assigned. Default value is size. + int64 parallelism = 1; + + // Defines the number of instances to launch at most. This number should match the size of the input if the job + // requires processing of all input data. This has to be a positive number. + // In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. + int64 size = 2; + + oneof success_criteria { + // An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + // the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + // assigned. Default value is size (if specified). + int64 min_successes = 3; + + // If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array + // job can be marked successful. + float min_success_ratio = 4; + } +} diff --git a/flyteidl/protos/flyteidl/plugins/dask.proto b/flyteidl/protos/flyteidl/plugins/dask.proto new file mode 100644 index 0000000000..32707b64a3 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/dask.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +import "flyteidl/core/tasks.proto"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + + +// Custom Proto for Dask Plugin. +message DaskJob { + // Spec for the scheduler pod. + DaskScheduler scheduler = 1; + + // Spec of the default worker group. + DaskWorkerGroup workers = 2; +} + +// Specification for the scheduler pod. +message DaskScheduler { + // Optional image to use. If unset, will use the default image. + string image = 1; + + // Resources assigned to the scheduler pod. + core.Resources resources = 2; +} + +message DaskWorkerGroup { + // Number of workers in the group. + uint32 number_of_workers = 1; + + // Optional image to use for the pods of the worker group. If unset, will use the default image. + string image = 2; + + // Resources assigned to the all pods of the worker group. + // As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices + // it is advised to only set limits. If requests are not explicitly set, the plugin will make + // sure to set requests==limits. + // The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. + core.Resources resources = 3; +} diff --git a/flyteidl/protos/flyteidl/plugins/kubeflow/common.proto b/flyteidl/protos/flyteidl/plugins/kubeflow/common.proto new file mode 100644 index 0000000000..99a3a8e8c2 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/kubeflow/common.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; + +package flyteidl.plugins.kubeflow; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + + +enum RestartPolicy { + RESTART_POLICY_NEVER = 0; + RESTART_POLICY_ON_FAILURE = 1; + RESTART_POLICY_ALWAYS = 2; +} + +enum CleanPodPolicy { + CLEANPOD_POLICY_NONE = 0; + CLEANPOD_POLICY_RUNNING = 1; + CLEANPOD_POLICY_ALL = 2; +} + +message RunPolicy { + // Defines the policy to kill pods after the job completes. Default to None. + CleanPodPolicy clean_pod_policy = 1; + + // TTL to clean up jobs. Default to infinite. + int32 ttl_seconds_after_finished = 2; + + // Specifies the duration in seconds relative to the startTime that the job may be active + // before the system tries to terminate it; value must be positive integer. + int32 active_deadline_seconds = 3; + + // Number of retries before marking this job failed. + int32 backoff_limit = 4; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/plugins/kubeflow/mpi.proto b/flyteidl/protos/flyteidl/plugins/kubeflow/mpi.proto new file mode 100644 index 0000000000..0013ceeb0a --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/kubeflow/mpi.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; + +package flyteidl.plugins.kubeflow; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +import "flyteidl/core/tasks.proto"; +import "flyteidl/plugins/kubeflow/common.proto"; + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator +message DistributedMPITrainingTask { + // Worker replicas spec + DistributedMPITrainingReplicaSpec worker_replicas = 1; + + // Master replicas spec + DistributedMPITrainingReplicaSpec launcher_replicas = 2; + + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy run_policy = 3; + + // Number of slots per worker + int32 slots = 4; +} + +// Replica specification for distributed MPI training +message DistributedMPITrainingReplicaSpec { + // Number of replicas + int32 replicas = 1; + + // Image used for the replica group + string image = 2; + + // Resources required for the replica group + core.Resources resources = 3; + + // Restart policy determines whether pods will be restarted when they exit + RestartPolicy restart_policy = 4; + + // MPI sometimes requires different command set for different replica groups + repeated string command = 5; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/plugins/kubeflow/pytorch.proto b/flyteidl/protos/flyteidl/plugins/kubeflow/pytorch.proto new file mode 100644 index 0000000000..0e69d890b1 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/kubeflow/pytorch.proto @@ -0,0 +1,49 @@ +syntax = "proto3"; + +package flyteidl.plugins.kubeflow; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +import "flyteidl/core/tasks.proto"; +import "flyteidl/plugins/kubeflow/common.proto"; + +// Custom proto for torch elastic config for distributed training using +// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go +message ElasticConfig { + string rdzv_backend = 1; + int32 min_replicas = 2; + int32 max_replicas = 3; + int32 nproc_per_node = 4; + int32 max_restarts = 5; +} + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator +message DistributedPyTorchTrainingTask { + // Worker replicas spec + DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + + // Master replicas spec, master replicas can only have 1 replica + DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy run_policy = 3; + + // config for an elastic pytorch job + ElasticConfig elastic_config = 4; +} + +message DistributedPyTorchTrainingReplicaSpec { + // Number of replicas + int32 replicas = 1; + + // Image used for the replica group + string image = 2; + + // Resources required for the replica group + core.Resources resources = 3; + + // RestartPolicy determines whether pods will be restarted when they exit + RestartPolicy restart_policy = 4; +} diff --git a/flyteidl/protos/flyteidl/plugins/kubeflow/tensorflow.proto b/flyteidl/protos/flyteidl/plugins/kubeflow/tensorflow.proto new file mode 100644 index 0000000000..ae44ac6a2e --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/kubeflow/tensorflow.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; + +package flyteidl.plugins.kubeflow; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +import "flyteidl/core/tasks.proto"; +import "flyteidl/plugins/kubeflow/common.proto"; + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator +message DistributedTensorflowTrainingTask { + // Worker replicas spec + DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + + // Parameter server replicas spec + DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + + // Chief replicas spec + DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy run_policy = 4; +} + +message DistributedTensorflowTrainingReplicaSpec { + // Number of replicas + int32 replicas = 1; + + // Image used for the replica group + string image = 2; + + // Resources required for the replica group + core.Resources resources = 3; + + // RestartPolicy Determines whether pods will be restarted when they exit + RestartPolicy restart_policy = 4; +} diff --git a/flyteidl/protos/flyteidl/plugins/mpi.proto b/flyteidl/protos/flyteidl/plugins/mpi.proto new file mode 100644 index 0000000000..8467d3de01 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/mpi.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator +message DistributedMPITrainingTask { + // number of worker spawned in the cluster for this job + int32 num_workers = 1; + + // number of launcher replicas spawned in the cluster for this job + // The launcher pod invokes mpirun and communicates with worker pods through MPI. + int32 num_launcher_replicas = 2; + + // number of slots per worker used in hostfile. + // The available slots (GPUs) in each pod. + int32 slots = 3; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/plugins/presto.proto b/flyteidl/protos/flyteidl/plugins/presto.proto new file mode 100644 index 0000000000..e9a7a14b05 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/presto.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field +// of a Presto task's TaskTemplate +message PrestoQuery { + string routing_group = 1; + string catalog = 2; + string schema = 3; + string statement = 4; +} diff --git a/flyteidl/protos/flyteidl/plugins/pytorch.proto b/flyteidl/protos/flyteidl/plugins/pytorch.proto new file mode 100644 index 0000000000..2e219d82bc --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/pytorch.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Custom proto for torch elastic config for distributed training using +// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go +message ElasticConfig { + string rdzv_backend = 1; + int32 min_replicas = 2; + int32 max_replicas = 3; + int32 nproc_per_node = 4; + int32 max_restarts = 5; +} + +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator +message DistributedPyTorchTrainingTask { + // number of worker replicas spawned in the cluster for this job + int32 workers = 1; + + // config for an elastic pytorch job + // + ElasticConfig elastic_config = 2; +} diff --git a/flyteidl/protos/flyteidl/plugins/qubole.proto b/flyteidl/protos/flyteidl/plugins/qubole.proto new file mode 100644 index 0000000000..5196e823e7 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/qubole.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Defines a query to execute on a hive cluster. +message HiveQuery { + string query = 1; + uint32 timeout_sec = 2; + uint32 retryCount = 3; +} + +// Defines a collection of hive queries. +message HiveQueryCollection { + repeated HiveQuery queries = 2; +} + +// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +// of a hive task's TaskTemplate +message QuboleHiveJob { + string cluster_label = 1; + HiveQueryCollection query_collection = 2 [deprecated=true]; + repeated string tags = 3; + HiveQuery query = 4; +} diff --git a/flyteidl/protos/flyteidl/plugins/ray.proto b/flyteidl/protos/flyteidl/plugins/ray.proto new file mode 100644 index 0000000000..a0a06b4e98 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/ray.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// RayJobSpec defines the desired state of RayJob +message RayJob { + // RayClusterSpec is the cluster template to run the job + RayCluster ray_cluster = 1; + // runtime_env is base64 encoded. + // Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments + string runtime_env = 2; +} + +// Define Ray cluster defines the desired state of RayCluster +message RayCluster { + // HeadGroupSpecs are the spec for the head pod + HeadGroupSpec head_group_spec = 1; + // WorkerGroupSpecs are the specs for the worker pods + repeated WorkerGroupSpec worker_group_spec = 2; +} + +// HeadGroupSpec are the spec for the head pod +message HeadGroupSpec { + // Optional. RayStartParams are the params of the start command: address, object-store-memory. + // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + map ray_start_params = 1; +} + +// WorkerGroupSpec are the specs for the worker pods +message WorkerGroupSpec { + // Required. RayCluster can have multiple worker groups, and it distinguishes them by name + string group_name = 1; + // Required. Desired replicas of the worker group. Defaults to 1. + int32 replicas = 2; + // Optional. Min replicas of the worker group. MinReplicas defaults to 1. + int32 min_replicas = 3; + // Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 + int32 max_replicas = 4; + // Optional. RayStartParams are the params of the start command: address, object-store-memory. + // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + map ray_start_params = 5; +} diff --git a/flyteidl/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto b/flyteidl/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto new file mode 100644 index 0000000000..d12ca832ca --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/sagemaker/hyperparameter_tuning_job.proto @@ -0,0 +1,83 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +import "flyteidl/plugins/sagemaker/parameter_ranges.proto"; +import "flyteidl/plugins/sagemaker/training_job.proto"; + +// A pass-through for SageMaker's hyperparameter tuning job +message HyperparameterTuningJob { + // The underlying training job that the hyperparameter tuning job will launch during the process + TrainingJob training_job = 1; + + // The maximum number of training jobs that an hpo job can launch. For resource limit purpose. + // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html + int64 max_number_of_training_jobs = 2; + + // The maximum number of concurrent training job that an hpo job can launch + // https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ResourceLimits.html + int64 max_parallel_training_jobs = 3; +} + +// HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job +// with respect to the specified metric. +message HyperparameterTuningObjectiveType { + enum Value { + MINIMIZE = 0; + MAXIMIZE = 1; + } +} + +// The target metric and the objective of the hyperparameter tuning. +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html +message HyperparameterTuningObjective { + + // HyperparameterTuningObjectiveType determines the direction of the tuning of the Hyperparameter Tuning Job + // with respect to the specified metric. + HyperparameterTuningObjectiveType.Value objective_type = 1; + + // The target metric name, which is the user-defined name of the metric specified in the + // training job's algorithm specification + string metric_name = 2; +} + + +// Setting the strategy used when searching in the hyperparameter space +// Refer this doc for more details: +// https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ +message HyperparameterTuningStrategy { + enum Value { + BAYESIAN = 0; + RANDOM = 1; + } +} + +// When the training jobs launched by the hyperparameter tuning job are not improving significantly, +// a hyperparameter tuning job can be stopping early. +// Note that there's only a subset of built-in algorithms that supports early stopping. +// see: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-early-stopping.html +message TrainingJobEarlyStoppingType { + enum Value { + OFF = 0; + AUTO = 1; + } +} + +// The specification of the hyperparameter tuning process +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-ex-tuning-job.html#automatic-model-tuning-ex-low-tuning-config +message HyperparameterTuningJobConfig { + // ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range + ParameterRanges hyperparameter_ranges = 1; + + // Setting the strategy used when searching in the hyperparameter space + HyperparameterTuningStrategy.Value tuning_strategy = 2; + + // The target metric and the objective of the hyperparameter tuning. + HyperparameterTuningObjective tuning_objective = 3; + + // When the training jobs launched by the hyperparameter tuning job are not improving significantly, + // a hyperparameter tuning job can be stopping early. + TrainingJobEarlyStoppingType.Value training_job_early_stopping_type = 4; +} diff --git a/flyteidl/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto b/flyteidl/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto new file mode 100644 index 0000000000..39f758eded --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/sagemaker/parameter_ranges.proto @@ -0,0 +1,61 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// HyperparameterScalingType defines the way to increase or decrease the value of the hyperparameter +// For details, refer to: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +// See examples of these scaling type, refer to: https://aws.amazon.com/blogs/machine-learning/amazon-sagemaker-automatic-model-tuning-now-supports-random-search-and-hyperparameter-scaling/ +message HyperparameterScalingType { + enum Value { + AUTO = 0; + LINEAR = 1; + LOGARITHMIC = 2; + REVERSELOGARITHMIC = 3; + } +} + +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +message ContinuousParameterRange { + double max_value = 1; + double min_value = 2; + HyperparameterScalingType.Value scaling_type = 3; +} + +// IntegerParameterRange refers to a discrete range of hyperparameter values, allowing +// users to specify the search space of an integer hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +message IntegerParameterRange { + int64 max_value = 1; + int64 min_value = 2; + HyperparameterScalingType.Value scaling_type = 3; +} + +// ContinuousParameterRange refers to a continuous range of hyperparameter values, allowing +// users to specify the search space of a floating-point hyperparameter +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +message CategoricalParameterRange { + repeated string values = 1; +} + + +// ParameterRangeOneOf describes a single ParameterRange, which is a one-of structure that can be one of +// the three possible types: ContinuousParameterRange, IntegerParameterRange, and CategoricalParameterRange. +// This one-of structure in Flyte enables specifying a Parameter in a type-safe manner +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +message ParameterRangeOneOf { + oneof parameter_range_type { + ContinuousParameterRange continuous_parameter_range = 1; + IntegerParameterRange integer_parameter_range = 2; + CategoricalParameterRange categorical_parameter_range = 3; + } +} + +// ParameterRanges is a map that maps hyperparameter name to the corresponding hyperparameter range +// https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-ranges.html +message ParameterRanges { + map parameter_range_map = 1; +} diff --git a/flyteidl/protos/flyteidl/plugins/sagemaker/training_job.proto b/flyteidl/protos/flyteidl/plugins/sagemaker/training_job.proto new file mode 100644 index 0000000000..9c6545c1e7 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/sagemaker/training_job.proto @@ -0,0 +1,119 @@ +syntax = "proto3"; + +package flyteidl.plugins.sagemaker; + +import "google/protobuf/duration.proto"; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// The input mode that the algorithm supports. When using the File input mode, SageMaker downloads +// the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker +// volume for training container. When using Pipe input mode, Amazon SageMaker streams data directly +// from S3 to the container. +// See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html +// For the input modes that different SageMaker algorithms support, see: +// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html +message InputMode { + enum Value { + FILE = 0; + PIPE = 1; + } +} + +// The algorithm name is used for deciding which pre-built image to point to. +// This is only required for use cases where SageMaker's built-in algorithm mode is used. +// While we currently only support a subset of the algorithms, more will be added to the list. +// See: https://docs.aws.amazon.com/sagemaker/latest/dg/algos.html +message AlgorithmName { + enum Value { + CUSTOM = 0; + XGBOOST = 1; + } +} + + +// Specifies the type of file for input data. Different SageMaker built-in algorithms require different file types of input data +// See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html +// https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html +message InputContentType { + enum Value { + TEXT_CSV = 0; + } +} + +// Specifies a metric that the training algorithm writes to stderr or stdout. +// This object is a pass-through. +// See this for details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_MetricDefinition.html +message MetricDefinition { + // User-defined name of the metric + string name = 1; + // SageMaker hyperparameter tuning parses your algorithm’s stdout and stderr streams to find algorithm metrics + string regex = 2; +} + + +// Specifies the training algorithm to be used in the training job +// This object is mostly a pass-through, with a couple of exceptions include: (1) in Flyte, users don't need to specify +// TrainingImage; either use the built-in algorithm mode by using Flytekit's Simple Training Job and specifying an algorithm +// name and an algorithm version or (2) when users want to supply custom algorithms they should set algorithm_name field to +// CUSTOM. In this case, the value of the algorithm_version field has no effect +// For pass-through use cases: refer to this AWS official document for more details +// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html +message AlgorithmSpecification { + // The input mode can be either PIPE or FILE + InputMode.Value input_mode = 1; + + // The algorithm name is used for deciding which pre-built image to point to + AlgorithmName.Value algorithm_name = 2; + // The algorithm version field is used for deciding which pre-built image to point to + // This is only needed for use cases where SageMaker's built-in algorithm mode is chosen + string algorithm_version = 3; + + // A list of metric definitions for SageMaker to evaluate/track on the progress of the training job + // See this: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AlgorithmSpecification.html + // and this: https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html + repeated MetricDefinition metric_definitions = 4; + + // The content type of the input + // See https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html + // https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html + InputContentType.Value input_content_type = 5; +} + +// When enabling distributed training on a training job, the user should use this message to tell Flyte and SageMaker +// what kind of distributed protocol he/she wants to use to distribute the work. +message DistributedProtocol { + enum Value { + // Use this value if the user wishes to use framework-native distributed training interfaces. + // If this value is used, Flyte won't configure SageMaker to initialize unnecessary components such as + // OpenMPI or Parameter Server. + UNSPECIFIED = 0; + // Use this value if the user wishes to use MPI as the underlying protocol for her distributed training job + // MPI is a framework-agnostic distributed protocol. It has multiple implementations. Currently, we have only + // tested the OpenMPI implementation, which is the recommended implementation for Horovod. + MPI = 1; + } +} + +// TrainingJobResourceConfig is a pass-through, specifying the instance type to use for the training job, the +// number of instances to launch, and the size of the ML storage volume the user wants to provision +// Refer to SageMaker official doc for more details: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html +message TrainingJobResourceConfig { + // The number of ML compute instances to use. For distributed training, provide a value greater than 1. + int64 instance_count = 1; + // The ML compute instance type + string instance_type = 2; + // The size of the ML storage volume that you want to provision. + int64 volume_size_in_gb = 3; + // When users specify an instance_count > 1, Flyte will try to configure SageMaker to enable distributed training. + // If the users wish to use framework-agnostic distributed protocol such as MPI or Parameter Server, this + // field should be set to the corresponding enum value + DistributedProtocol.Value distributed_protocol = 4; +} + +// The spec of a training job. This is mostly a pass-through object +// https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html +message TrainingJob { + AlgorithmSpecification algorithm_specification = 1; + TrainingJobResourceConfig training_job_resource_config = 2; +} diff --git a/flyteidl/protos/flyteidl/plugins/spark.proto b/flyteidl/protos/flyteidl/plugins/spark.proto new file mode 100644 index 0000000000..6ba00fe051 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/spark.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +package flyteidl.plugins; +import "google/protobuf/struct.proto"; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +message SparkApplication { + enum Type { + PYTHON = 0; + JAVA = 1; + SCALA = 2; + R = 3; + } +} + +// Custom Proto for Spark Plugin. +message SparkJob { + SparkApplication.Type applicationType = 1; + string mainApplicationFile = 2; + string mainClass = 3; + map sparkConf = 4; + map hadoopConf = 5; + string executorPath = 6; // Executor path for Python jobs. + // Databricks job configuration. + // Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure. + google.protobuf.Struct databricksConf = 7; + // Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html + // This token can be set in either flytepropeller or flytekit. + string databricksToken = 8; + // Domain name of your deployment. Use the form .cloud.databricks.com. + // This instance name can be set in either flytepropeller or flytekit. + string databricksInstance = 9; +} diff --git a/flyteidl/protos/flyteidl/plugins/tensorflow.proto b/flyteidl/protos/flyteidl/plugins/tensorflow.proto new file mode 100644 index 0000000000..a24f871def --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/tensorflow.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator +message DistributedTensorflowTrainingTask { + // number of worker, ps, chief replicas spawned in the cluster for this job + int32 workers = 1; + // PS -> Parameter server + int32 ps_replicas = 2; + int32 chief_replicas = 3; +} diff --git a/flyteidl/protos/flyteidl/plugins/waitable.proto b/flyteidl/protos/flyteidl/plugins/waitable.proto new file mode 100644 index 0000000000..83f5f46b69 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/waitable.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; + +package flyteidl.plugins; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Represents an Execution that was launched and could be waited on. +message Waitable { + core.WorkflowExecutionIdentifier wf_exec_id = 1; + core.WorkflowExecution.Phase phase = 2; + string workflow_id = 3; +} diff --git a/flyteidl/protos/flyteidl/service/admin.proto b/flyteidl/protos/flyteidl/service/admin.proto new file mode 100644 index 0000000000..a99a9818b9 --- /dev/null +++ b/flyteidl/protos/flyteidl/service/admin.proto @@ -0,0 +1,639 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; + +import "google/api/annotations.proto"; +import "flyteidl/admin/project.proto"; +import "flyteidl/admin/project_domain_attributes.proto"; +import "flyteidl/admin/project_attributes.proto"; +import "flyteidl/admin/task.proto"; +import "flyteidl/admin/workflow.proto"; +import "flyteidl/admin/workflow_attributes.proto"; +import "flyteidl/admin/launch_plan.proto"; +import "flyteidl/admin/event.proto"; +import "flyteidl/admin/execution.proto"; +import "flyteidl/admin/matchable_resource.proto"; +import "flyteidl/admin/node_execution.proto"; +import "flyteidl/admin/task_execution.proto"; +import "flyteidl/admin/version.proto"; +import "flyteidl/admin/common.proto"; +import "flyteidl/admin/description_entity.proto"; +// import "protoc-gen-swagger/options/annotations.proto"; + +// The following defines an RPC service that is also served over HTTP via grpc-gateway. +// Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go +service AdminService { + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + rpc CreateTask (flyteidl.admin.TaskCreateRequest) returns (flyteidl.admin.TaskCreateResponse) { + option (google.api.http) = { + post: "/api/v1/tasks" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Create and register a task definition." + // responses: { + // key: "400" + // value: { + // description: "Returned for bad request that may have failed validation." + // } + // } + // responses: { + // key: "409" + // value: { + // description: "Returned for a request that references an identical entity that has already been registered." + // } + // } + // }; + } + + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + rpc GetTask (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.Task) { + option (google.api.http) = { + get: "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve an existing task definition." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + rpc ListTaskIds (flyteidl.admin.NamedEntityIdentifierListRequest) returns (flyteidl.admin.NamedEntityIdentifierList) { + option (google.api.http) = { + get: "/api/v1/task_ids/{project}/{domain}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing task definition identifiers matching input filters." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + rpc ListTasks (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.TaskList) { + option (google.api.http) = { + get: "/api/v1/tasks/{id.project}/{id.domain}/{id.name}" + additional_bindings { + get: "/api/v1/tasks/{id.project}/{id.domain}" + } + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing task definitions matching input filters." + // }; + } + + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + rpc CreateWorkflow (flyteidl.admin.WorkflowCreateRequest) returns (flyteidl.admin.WorkflowCreateResponse) { + option (google.api.http) = { + post: "/api/v1/workflows" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Create and register a workflow definition." + // responses: { + // key: "400" + // value: { + // description: "Returned for bad request that may have failed validation." + // } + // } + // responses: { + // key: "409" + // value: { + // description: "Returned for a request that references an identical entity that has already been registered." + // } + // } + // }; + } + + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + rpc GetWorkflow (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.Workflow) { + option (google.api.http) = { + get: "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve an existing workflow definition." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + rpc ListWorkflowIds (flyteidl.admin.NamedEntityIdentifierListRequest) returns (flyteidl.admin.NamedEntityIdentifierList) { + option (google.api.http) = { + get: "/api/v1/workflow_ids/{project}/{domain}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch an existing workflow definition identifiers matching input filters." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + rpc ListWorkflows (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.WorkflowList) { + option (google.api.http) = { + get: "/api/v1/workflows/{id.project}/{id.domain}/{id.name}" + additional_bindings { + get: "/api/v1/workflows/{id.project}/{id.domain}" + } + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing workflow definitions matching input filters." + // }; + } + + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + rpc CreateLaunchPlan (flyteidl.admin.LaunchPlanCreateRequest) returns (flyteidl.admin.LaunchPlanCreateResponse) { + option (google.api.http) = { + post: "/api/v1/launch_plans" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Create and register a launch plan definition." + // responses: { + // key: "400" + // value: { + // description: "Returned for bad request that may have failed validation." + // } + // } + // responses: { + // key: "409" + // value: { + // description: "Returned for a request that references an identical entity that has already been registered." + // } + // } + // }; + } + + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + rpc GetLaunchPlan (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.LaunchPlan) { + option (google.api.http) = { + get: "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve an existing launch plan definition." + // }; + } + + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + rpc GetActiveLaunchPlan (flyteidl.admin.ActiveLaunchPlanRequest) returns (flyteidl.admin.LaunchPlan) { + option (google.api.http) = { + get: "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve the active launch plan version specified by input request filters." + // }; + } + + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + rpc ListActiveLaunchPlans (flyteidl.admin.ActiveLaunchPlanListRequest) returns (flyteidl.admin.LaunchPlanList) { + option (google.api.http) = { + get: "/api/v1/active_launch_plans/{project}/{domain}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch the active launch plan versions specified by input request filters." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + rpc ListLaunchPlanIds (flyteidl.admin.NamedEntityIdentifierListRequest) returns (flyteidl.admin.NamedEntityIdentifierList) { + option (google.api.http) = { + get: "/api/v1/launch_plan_ids/{project}/{domain}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing launch plan definition identifiers matching input filters." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + rpc ListLaunchPlans (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.LaunchPlanList) { + option (google.api.http) = { + get: "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}" + additional_bindings { + get: "/api/v1/launch_plans/{id.project}/{id.domain}" + } + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing launch plan definitions matching input filters." + // }; + } + + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + rpc UpdateLaunchPlan (flyteidl.admin.LaunchPlanUpdateRequest) returns (flyteidl.admin.LaunchPlanUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Update the status of an existing launch plan definition. " + // "At most one launch plan version for a given {project, domain, name} can be active at a time. " + // "If this call sets a launch plan to active and existing version is already active, the result of this call will be that the " + // "formerly active launch plan will be made inactive and specified launch plan in this request will be made active. " + // "In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. " + // "If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled." + // }; + } + + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + rpc CreateExecution (flyteidl.admin.ExecutionCreateRequest) returns (flyteidl.admin.ExecutionCreateResponse) { + option (google.api.http) = { + post: "/api/v1/executions" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Create a workflow execution." + // }; + } + + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + rpc RelaunchExecution (flyteidl.admin.ExecutionRelaunchRequest) returns (flyteidl.admin.ExecutionCreateResponse) { + option (google.api.http) = { + post: "/api/v1/executions/relaunch" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Relaunch a workflow execution." + // }; + } + + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + rpc RecoverExecution (flyteidl.admin.ExecutionRecoverRequest) returns (flyteidl.admin.ExecutionCreateResponse) { + option (google.api.http) = { + post: "/api/v1/executions/recover" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Recreates a previously-run workflow execution that will only start executing from the last known failure point. " + // "In Recover mode, users cannot change any input parameters or update the version of the execution. " + // "This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, " + // "downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again." + + // }; + } + + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + rpc GetExecution (flyteidl.admin.WorkflowExecutionGetRequest) returns (flyteidl.admin.Execution) { + option (google.api.http) = { + get: "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve an existing workflow execution." + // }; + } + + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + rpc UpdateExecution (flyteidl.admin.ExecutionUpdateRequest) returns (flyteidl.admin.ExecutionUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Update execution belonging to project domain." + // }; + } + + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + rpc GetExecutionData (flyteidl.admin.WorkflowExecutionGetDataRequest) returns (flyteidl.admin.WorkflowExecutionGetDataResponse) { + option (google.api.http) = { + get: "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve input and output data from an existing workflow execution." + // }; + }; + + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + rpc ListExecutions (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.ExecutionList) { + option (google.api.http) = { + get: "/api/v1/executions/{id.project}/{id.domain}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing workflow executions matching input filters." + // }; + } + + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + rpc TerminateExecution (flyteidl.admin.ExecutionTerminateRequest) returns (flyteidl.admin.ExecutionTerminateResponse) { + option (google.api.http) = { + delete: "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Terminate the active workflow execution specified in the request." + // }; + } + + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + rpc GetNodeExecution (flyteidl.admin.NodeExecutionGetRequest) returns (flyteidl.admin.NodeExecution) { + option (google.api.http) = { + get: "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve an existing node execution." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + rpc ListNodeExecutions (flyteidl.admin.NodeExecutionListRequest) returns (flyteidl.admin.NodeExecutionList) { + option (google.api.http) = { + get: "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing node executions matching input filters." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + rpc ListNodeExecutionsForTask (flyteidl.admin.NodeExecutionForTaskListRequest) returns (flyteidl.admin.NodeExecutionList) { + option (google.api.http) = { + get: "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch child node executions launched by the specified task execution." + // }; + } + + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + rpc GetNodeExecutionData (flyteidl.admin.NodeExecutionGetDataRequest) returns (flyteidl.admin.NodeExecutionGetDataResponse) { + option (google.api.http) = { + get: "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve input and output data from an existing node execution." + // }; + }; + + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + rpc RegisterProject (flyteidl.admin.ProjectRegisterRequest) returns (flyteidl.admin.ProjectRegisterResponse) { + option (google.api.http) = { + post: "/api/v1/projects" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Register a project." + // }; + } + + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + rpc UpdateProject (flyteidl.admin.Project) returns (flyteidl.admin.ProjectUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/projects/{id}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Update a project." + // }; + } + + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + rpc ListProjects (flyteidl.admin.ProjectListRequest) returns (flyteidl.admin.Projects) { + option (google.api.http) = { + get: "/api/v1/projects" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch registered projects." + // }; + } + + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + rpc CreateWorkflowEvent (flyteidl.admin.WorkflowExecutionEventRequest) returns (flyteidl.admin.WorkflowExecutionEventResponse) { + option (google.api.http) = { + post: "/api/v1/events/workflows" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Create a workflow execution event recording a phase transition." + // }; + } + + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + rpc CreateNodeEvent (flyteidl.admin.NodeExecutionEventRequest) returns (flyteidl.admin.NodeExecutionEventResponse) { + option (google.api.http) = { + post: "/api/v1/events/nodes" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Create a node execution event recording a phase transition." + // }; + } + + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + rpc CreateTaskEvent (flyteidl.admin.TaskExecutionEventRequest) returns (flyteidl.admin.TaskExecutionEventResponse) { + option (google.api.http) = { + post: "/api/v1/events/tasks" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Create a task execution event recording a phase transition." + // }; + } + + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + rpc GetTaskExecution (flyteidl.admin.TaskExecutionGetRequest) returns (flyteidl.admin.TaskExecution) { + option (google.api.http) = { + get: "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve an existing task execution." + // }; + } + + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + rpc ListTaskExecutions (flyteidl.admin.TaskExecutionListRequest) returns (flyteidl.admin.TaskExecutionList) { + option (google.api.http) = { + get: "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing task executions matching input filters." + // }; + + } + + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + rpc GetTaskExecutionData (flyteidl.admin.TaskExecutionGetDataRequest) returns (flyteidl.admin.TaskExecutionGetDataResponse) { + option (google.api.http) = { + get: "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve input and output data from an existing task execution." + // }; + } + + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + rpc UpdateProjectDomainAttributes (flyteidl.admin.ProjectDomainAttributesUpdateRequest) returns (flyteidl.admin.ProjectDomainAttributesUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Update the customized resource attributes associated with a project-domain combination" + // }; + } + + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + rpc GetProjectDomainAttributes (flyteidl.admin.ProjectDomainAttributesGetRequest) returns (flyteidl.admin.ProjectDomainAttributesGetResponse) { + option (google.api.http) = { + get: "/api/v1/project_domain_attributes/{project}/{domain}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve the customized resource attributes associated with a project-domain combination" + // }; + } + + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + rpc DeleteProjectDomainAttributes (flyteidl.admin.ProjectDomainAttributesDeleteRequest) returns (flyteidl.admin.ProjectDomainAttributesDeleteResponse) { + option (google.api.http) = { + delete: "/api/v1/project_domain_attributes/{project}/{domain}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Delete the customized resource attributes associated with a project-domain combination" + // }; + } + + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + rpc UpdateProjectAttributes (flyteidl.admin.ProjectAttributesUpdateRequest) returns (flyteidl.admin.ProjectAttributesUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/project_attributes/{attributes.project}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Update the customized resource attributes associated with a project" + // }; + } + + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + rpc GetProjectAttributes (flyteidl.admin.ProjectAttributesGetRequest) returns (flyteidl.admin.ProjectAttributesGetResponse) { + option (google.api.http) = { + get: "/api/v1/project_attributes/{project}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve the customized resource attributes associated with a project" + // }; + } + + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + rpc DeleteProjectAttributes (flyteidl.admin.ProjectAttributesDeleteRequest) returns (flyteidl.admin.ProjectAttributesDeleteResponse) { + option (google.api.http) = { + delete: "/api/v1/project_attributes/{project}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Delete the customized resource attributes associated with a project" + // }; + } + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + rpc UpdateWorkflowAttributes (flyteidl.admin.WorkflowAttributesUpdateRequest) returns (flyteidl.admin.WorkflowAttributesUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Update the customized resource attributes associated with a project, domain and workflow combination" + // }; + } + + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + rpc GetWorkflowAttributes (flyteidl.admin.WorkflowAttributesGetRequest) returns (flyteidl.admin.WorkflowAttributesGetResponse) { + option (google.api.http) = { + get: "/api/v1/workflow_attributes/{project}/{domain}/{workflow}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve the customized resource attributes associated with a project, domain and workflow combination" + // }; + } + + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + rpc DeleteWorkflowAttributes (flyteidl.admin.WorkflowAttributesDeleteRequest) returns (flyteidl.admin.WorkflowAttributesDeleteResponse) { + option (google.api.http) = { + delete: "/api/v1/workflow_attributes/{project}/{domain}/{workflow}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Delete the customized resource attributes associated with a project, domain and workflow combination" + // }; + } + + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + rpc ListMatchableAttributes (flyteidl.admin.ListMatchableAttributesRequest) returns (flyteidl.admin.ListMatchableAttributesResponse) { + option (google.api.http) = { + get: "/api/v1/matchable_attributes" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve a list of MatchableAttributesConfiguration objects." + // }; + } + + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + rpc ListNamedEntities (flyteidl.admin.NamedEntityListRequest) returns (flyteidl.admin.NamedEntityList) { + option (google.api.http) = { + get: "/api/v1/named_entities/{resource_type}/{project}/{domain}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve a list of NamedEntity objects sharing a common resource type, project, and domain." + // }; + } + + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + rpc GetNamedEntity (flyteidl.admin.NamedEntityGetRequest) returns (flyteidl.admin.NamedEntity) { + option (google.api.http) = { + get: "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve a NamedEntity object." + // }; + } + + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + rpc UpdateNamedEntity (flyteidl.admin.NamedEntityUpdateRequest) returns (flyteidl.admin.NamedEntityUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Update the fields associated with a NamedEntity" + // }; + } + + rpc GetVersion (flyteidl.admin.GetVersionRequest) returns (flyteidl.admin.GetVersionResponse) { + option (google.api.http) = { + get: "/api/v1/version" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve the Version (including the Build information) for FlyteAdmin service" + // }; + } + + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + rpc GetDescriptionEntity (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.DescriptionEntity) { + option (google.api.http) = { + get: "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve an existing description entity description." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + rpc ListDescriptionEntities (flyteidl.admin.DescriptionEntityListRequest) returns (flyteidl.admin.DescriptionEntityList) { + option (google.api.http) = { + get: "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" + additional_bindings { + get: "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}" + } + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing description entity definitions matching input filters." + // }; + } + + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + rpc GetExecutionMetrics (flyteidl.admin.WorkflowExecutionGetMetricsRequest) returns (flyteidl.admin.WorkflowExecutionGetMetricsResponse) { + option (google.api.http) = { + get: "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve metrics from an existing workflow execution." + // }; + }; +} diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto new file mode 100644 index 0000000000..2a1a143705 --- /dev/null +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; +import "flyteidl/admin/agent.proto"; + +// AgentService defines an RPC Service that allows propeller to send the request to the agent server. +service AsyncAgentService { + // Send a task create request to the agent server. + rpc CreateTask (flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){}; + // Get job status. + rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){}; + // Delete the task resource. + rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){}; +} diff --git a/flyteidl/protos/flyteidl/service/auth.proto b/flyteidl/protos/flyteidl/service/auth.proto new file mode 100644 index 0000000000..2d11e7fa35 --- /dev/null +++ b/flyteidl/protos/flyteidl/service/auth.proto @@ -0,0 +1,94 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; + +import "google/api/annotations.proto"; +// import "protoc-gen-swagger/options/annotations.proto"; + +message OAuth2MetadataRequest {} + +// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata +// as defined in https://tools.ietf.org/html/rfc8414 +message OAuth2MetadataResponse { + // Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external + // issuer. + string issuer = 1; + + // URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are + // supported that use the authorization endpoint. + string authorization_endpoint = 2; + + // URL of the authorization server's token endpoint [RFC6749]. + string token_endpoint = 3; + + // Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. + repeated string response_types_supported = 4; + + // JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports. + repeated string scopes_supported = 5; + + // JSON array containing a list of client authentication methods supported by this token endpoint. + repeated string token_endpoint_auth_methods_supported = 6; + + // URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the + // client uses to validate signatures from the authorization server. + string jwks_uri = 7; + + // JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by + // this authorization server. + repeated string code_challenge_methods_supported = 8; + + // JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. + repeated string grant_types_supported = 9; + + // URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628] + string device_authorization_endpoint = 10; +} + +message PublicClientAuthConfigRequest {} + +// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. +message PublicClientAuthConfigResponse { + // client_id to use when initiating OAuth2 authorization requests. + string client_id = 1; + // redirect uri to use when initiating OAuth2 authorization requests. + string redirect_uri = 2; + // scopes to request when initiating OAuth2 authorization requests. + repeated string scopes = 3; + // Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the + // default http `Authorization` header. + string authorization_metadata_key = 4; + // ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used + // to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between + // SSL or no SSL connections. + string service_http_endpoint = 5; + // audience to use when initiating OAuth2 authorization requests. + string audience = 6; +} + +// The following defines an RPC service that is also served over HTTP via grpc-gateway. +// Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go +// RPCs defined in this service must be anonymously accessible. +service AuthMetadataService { + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + rpc GetOAuth2Metadata (OAuth2MetadataRequest) returns (OAuth2MetadataResponse) { + option (google.api.http) = { + get: "/.well-known/oauth-authorization-server" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieves OAuth2 authorization server metadata. This endpoint is anonymously accessible." + // }; + } + + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + rpc GetPublicClientConfig (PublicClientAuthConfigRequest) returns (PublicClientAuthConfigResponse) { + option (google.api.http) = { + get: "/config/v1/flyte_client" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieves public flyte client info. This endpoint is anonymously accessible." + // }; + } +} diff --git a/flyteidl/protos/flyteidl/service/dataproxy.proto b/flyteidl/protos/flyteidl/service/dataproxy.proto new file mode 100644 index 0000000000..8972d4f6de --- /dev/null +++ b/flyteidl/protos/flyteidl/service/dataproxy.proto @@ -0,0 +1,194 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; + +import "google/api/annotations.proto"; +// import "protoc-gen-swagger/options/annotations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/literals.proto"; + + +message CreateUploadLocationResponse { + // SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + string signed_url = 1; + + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + string native_url = 2; + + // ExpiresAt defines when will the signed URL expires. + google.protobuf.Timestamp expires_at = 3; +} + +// CreateUploadLocationRequest specified request for the CreateUploadLocation API. +// The implementation in data proxy service will create the s3 location with some server side configured prefixes, +// and then: +// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR +// - project/domain/filename_root (if present)/filename (if present). +message CreateUploadLocationRequest { + // Project to create the upload location for + // +required + string project = 1; + + // Domain to create the upload location for. + // +required + string domain = 2; + + // Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. + // +optional. By default, the service will generate a consistent name based on the provided parameters. + string filename = 3; + + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + google.protobuf.Duration expires_in = 4; + + // ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the + // generated path. + // +required + bytes content_md5 = 5; + + // If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included + // this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix + // in data proxy config. This option is useful when uploading multiple files. + // +optional + string filename_root = 6; +} + +// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. +message CreateDownloadLocationRequest { + option deprecated = true; + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + string native_url = 1; + + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + google.protobuf.Duration expires_in = 2; + +} + +message CreateDownloadLocationResponse { + option deprecated = true; + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + string signed_url = 1; + // ExpiresAt defines when will the signed URL expires. + google.protobuf.Timestamp expires_at = 2; +} + +// ArtifactType +enum ArtifactType { + // ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. + ARTIFACT_TYPE_UNDEFINED = 0; + + // ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan + // finishes executing. + ARTIFACT_TYPE_DECK = 1; +} + +// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) +message CreateDownloadLinkRequest { + // ArtifactType of the artifact requested. + ArtifactType artifact_type = 1; + + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + google.protobuf.Duration expires_in = 2; + + oneof source { + // NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the + // most recent attempt of the task. + core.NodeExecutionIdentifier node_execution_id = 3; + } +} + +// CreateDownloadLinkResponse defines the response for the generated links +message CreateDownloadLinkResponse { + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + repeated string signed_url = 1 [deprecated = true]; + + // ExpiresAt defines when will the signed URL expire. + google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + + // New wrapper object containing the signed urls and expiration time + PreSignedURLs pre_signed_urls = 3; +} + +// Wrapper object since the message is shared across this and the GetDataResponse +message PreSignedURLs { + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + repeated string signed_url = 1; + + // ExpiresAt defines when will the signed URL expire. + google.protobuf.Timestamp expires_at = 2; +} + +// General request artifact to retrieve data from a Flyte artifact url. +message GetDataRequest { + // A unique identifier in the form of flyte:// that uniquely, for a given Flyte + // backend, identifies a Flyte artifact ([i]nput, [o]utput, flyte [d]eck, etc.). + // e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) + // flyte://v1/proj/development/execid/n2/i (for node execution input) + // flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) + string flyte_url = 1; +} + +message GetDataResponse { + oneof data { + // literal map data will be returned + core.LiteralMap literal_map = 1; + + // Flyte deck html will be returned as a signed url users can download + PreSignedURLs pre_signed_urls = 2; + + // Single literal will be returned. This is returned when the user/url requests a specific output or input + // by name. See the o3 example above. + core.Literal literal = 3; + } +} + +// DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. +service DataProxyService { + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + rpc CreateUploadLocation (CreateUploadLocationRequest) returns (CreateUploadLocationResponse) { + option (google.api.http) = { + post: "/api/v1/dataproxy/artifact_urn" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Creates a write-only http location that is accessible for tasks at runtime." + // }; + } + + // CreateDownloadLocation creates a signed url to download artifacts. + rpc CreateDownloadLocation (CreateDownloadLocationRequest) returns (CreateDownloadLocationResponse) { + option deprecated = true; + option (google.api.http) = { + get: "/api/v1/dataproxy/artifact_urn" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime." + // }; + } + + // CreateDownloadLocation creates a signed url to download artifacts. + rpc CreateDownloadLink (CreateDownloadLinkRequest) returns (CreateDownloadLinkResponse) { + option (google.api.http) = { + post: "/api/v1/dataproxy/artifact_link" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Creates a read-only http location that is accessible for tasks at runtime." + // }; + } + + rpc GetData (GetDataRequest) returns (GetDataResponse) { + // Takes an address like flyte://v1/proj/development/execid/n2/0/i and return the actual data + option (google.api.http) = { + get: "/api/v1/data" + }; + } +} diff --git a/flyteidl/protos/flyteidl/service/external_plugin_service.proto b/flyteidl/protos/flyteidl/service/external_plugin_service.proto new file mode 100644 index 0000000000..18f60a7d93 --- /dev/null +++ b/flyteidl/protos/flyteidl/service/external_plugin_service.proto @@ -0,0 +1,80 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/interface.proto"; + +// ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. +service ExternalPluginService { + // Send a task create request to the backend plugin server. + rpc CreateTask (TaskCreateRequest) returns (TaskCreateResponse){option deprecated = true;}; + // Get job status. + rpc GetTask (TaskGetRequest) returns (TaskGetResponse){option deprecated = true;}; + // Delete the task resource. + rpc DeleteTask (TaskDeleteRequest) returns (TaskDeleteResponse){option deprecated = true;}; +} + +// The state of the execution is used to control its visibility in the UI/CLI. +enum State { + option deprecated = true; + RETRYABLE_FAILURE = 0; + PERMANENT_FAILURE = 1; + PENDING = 2; + RUNNING = 3; + SUCCEEDED = 4; +} + +// Represents a request structure to create task. +message TaskCreateRequest { + option deprecated = true; + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + core.LiteralMap inputs = 1; + // Template of the task that encapsulates all the metadata of the task. + core.TaskTemplate template = 2; + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + string output_prefix = 3; +} + +// Represents a create response structure. +message TaskCreateResponse { + option deprecated = true; + string job_id = 1; +} + +// A message used to fetch a job state from backend plugin server. +message TaskGetRequest { + option deprecated = true; + // A predefined yet extensible Task type identifier. + string task_type = 1; + // The unique id identifying the job. + string job_id = 2; +} + +// Response to get an individual task state. +message TaskGetResponse { + option deprecated = true; + // The state of the execution is used to control its visibility in the UI/CLI. + State state = 1; + // The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a + // Structured dataset pointing to the query result table. + // +optional + core.LiteralMap outputs = 2; +} + +// A message used to delete a task. +message TaskDeleteRequest { + option deprecated = true; + // A predefined yet extensible Task type identifier. + string task_type = 1; + // The unique id identifying the job. + string job_id = 2; +} + +// Response to delete a task. +message TaskDeleteResponse { + option deprecated = true; +} diff --git a/flyteidl/protos/flyteidl/service/identity.proto b/flyteidl/protos/flyteidl/service/identity.proto new file mode 100644 index 0000000000..e4bc5dcb0a --- /dev/null +++ b/flyteidl/protos/flyteidl/service/identity.proto @@ -0,0 +1,51 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; + +import "google/api/annotations.proto"; +import "google/protobuf/struct.proto"; +// import "protoc-gen-swagger/options/annotations.proto"; + +message UserInfoRequest {} + +// See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. +message UserInfoResponse { + // Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed + // by the Client. + string subject = 1; + + // Full name + string name = 2; + + // Shorthand name by which the End-User wishes to be referred to + string preferred_username = 3; + + // Given name(s) or first name(s) + string given_name = 4; + + // Surname(s) or last name(s) + string family_name = 5; + + // Preferred e-mail address + string email = 6; + + // Profile picture URL + string picture = 7; + + // Additional claims + google.protobuf.Struct additional_claims = 8; +} + +// IdentityService defines an RPC Service that interacts with user/app identities. +service IdentityService { + // Retrieves user information about the currently logged in user. + rpc UserInfo (UserInfoRequest) returns (UserInfoResponse) { + option (google.api.http) = { + get: "/me" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieves authenticated identity info." + // }; + } +} diff --git a/flyteidl/protos/flyteidl/service/signal.proto b/flyteidl/protos/flyteidl/service/signal.proto new file mode 100644 index 0000000000..6344407157 --- /dev/null +++ b/flyteidl/protos/flyteidl/service/signal.proto @@ -0,0 +1,55 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service"; + +import "google/api/annotations.proto"; +import "flyteidl/admin/signal.proto"; +// import "protoc-gen-swagger/options/annotations.proto"; + +// SignalService defines an RPC Service that may create, update, and retrieve signal(s). +service SignalService { + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + rpc GetOrCreateSignal (flyteidl.admin.SignalGetOrCreateRequest) returns (flyteidl.admin.Signal) { + // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve + // a signal, meaning the first call will create the signal and all subsequent calls will + // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore + // is not exposed to mitigate unintended behavior. + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Retrieve a signal, creating it if it does not exist." + // }; + } + + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + rpc ListSignals (flyteidl.admin.SignalListRequest) returns (flyteidl.admin.SignalList) { + option (google.api.http) = { + get: "/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Fetch existing signal definitions matching the input signal id filters." + // }; + } + + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + rpc SetSignal (flyteidl.admin.SignalSetRequest) returns (flyteidl.admin.SignalSetResponse) { + option (google.api.http) = { + post: "/api/v1/signals" + body: "*" + }; + // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + // description: "Set a signal value." + // responses: { + // key: "400" + // value: { + // description: "Returned for bad request that may have failed validation." + // } + // } + // responses: { + // key: "409" + // value: { + // description: "Returned for a request that references an identical entity that has already been registered." + // } + // } + // }; + } +} diff --git a/flyteidl/protos/index.rst b/flyteidl/protos/index.rst new file mode 100644 index 0000000000..39544bcc2e --- /dev/null +++ b/flyteidl/protos/index.rst @@ -0,0 +1,18 @@ +Flyte Language and API specification +==================================== + +The protocol buffers defined here provide a high level specification of various +entities in Flyte control plane and data plane. It provides detailed definition +and documentation of all these entities. + +.. toctree:: + :maxdepth: 1 + :caption: flyteidl + :name: flyteidltoc + + docs/admin/index + docs/core/index + docs/datacatalog/index + docs/event/index + docs/plugins/index + docs/service/index diff --git a/flyteidl/pull_request_template.md b/flyteidl/pull_request_template.md new file mode 100644 index 0000000000..9cdab99b46 --- /dev/null +++ b/flyteidl/pull_request_template.md @@ -0,0 +1,35 @@ +## _Read then delete this section_ + +_- Make sure to use a concise title for the pull-request._ + +_- Use #patch, #minor or #major in the pull-request title to bump the corresponding version. Otherwise, the patch version +will be bumped. [More details](https://github.com/marketplace/actions/github-tag-bump)_ + +# TL;DR +_Please replace this text with a description of what this PR accomplishes._ + +## Type + - [ ] Bug Fix + - [ ] Feature + - [ ] Plugin + +## Are all requirements met? + + - [ ] Code completed + - [ ] Smoke tested + - [ ] Unit tests added + - [ ] Code documentation added + - [ ] Any pending items have an associated Issue + +## Complete description + _How did you fix the bug, make the feature etc. Link to any design docs etc_ + +## Tracking Issue +_Remove the '*fixes*' keyword if there will be multiple PRs to fix the linked issue_ + +fixes https://github.com/flyteorg/flyte/issues/ + +## Follow-up issue +_NA_ +OR +_https://github.com/flyteorg/flyte/issues/_ diff --git a/flyteidl/scripts/doc_gen_deps.sh b/flyteidl/scripts/doc_gen_deps.sh new file mode 100755 index 0000000000..4832706009 --- /dev/null +++ b/flyteidl/scripts/doc_gen_deps.sh @@ -0,0 +1,31 @@ +#!/bin/bash +set -x + +TMP_DEPS_FOLDER=tmp/doc_gen_deps +TMP_DEPS_PROTOBUF_FOLDER=tmp/protocolbuffers +TMP_DEPS_GRPC_GATEWAY_FOLDER=tmp/grpc-gateway +TMP_DEPS_K8S_IO=tmp/k8s.io + +# clear all the tmp deps folder +rm -rf $TMP_DEPS_FOLDER $TMP_DEPS_PROTOBUF_FOLDER $TMP_DEPS_GRPC_GATEWAY_FOLDER $TMP_DEPS_K8S_IO + +# clone deps and move them to TMP_DEPS_FOLDER +# googleapi deps +git clone --depth 1 https://github.com/googleapis/googleapis $TMP_DEPS_FOLDER +rm -rf $TMP_DEPS_FOLDER/.git + +# protobuf deps +git clone --depth 1 https://github.com/protocolbuffers/protobuf $TMP_DEPS_PROTOBUF_FOLDER +cp -r $TMP_DEPS_PROTOBUF_FOLDER/src/* $TMP_DEPS_FOLDER +rm -rf $TMP_DEPS_PROTOBUF_FOLDER + +# grpc-gateway deps +git -c advice.detachedHead=false clone --depth 1 --branch v1.15.2 https://github.com/grpc-ecosystem/grpc-gateway $TMP_DEPS_GRPC_GATEWAY_FOLDER #v1.15.2 is used to keep the grpc-gateway version in sync with generated protos which is using the LYFT image +cp -r $TMP_DEPS_GRPC_GATEWAY_FOLDER/protoc-gen-swagger $TMP_DEPS_FOLDER +rm -rf $TMP_DEPS_GRPC_GATEWAY_FOLDER + +# k8 dependencies +git clone --depth 1 https://github.com/kubernetes/api $TMP_DEPS_K8S_IO/api +git clone --depth 1 https://github.com/kubernetes/apimachinery $TMP_DEPS_K8S_IO/apimachinery +cp -r $TMP_DEPS_K8S_IO $TMP_DEPS_FOLDER +rm -rf $TMP_DEPS_K8S_IO diff --git a/flyteidl/scripts/test_diff.sh b/flyteidl/scripts/test_diff.sh new file mode 100755 index 0000000000..3c79d24870 --- /dev/null +++ b/flyteidl/scripts/test_diff.sh @@ -0,0 +1,35 @@ +#!/bin/bash +set -e +set -x + +# Remove documentation generated from the swagger-codegen-cli +rm -rf gen/pb-go/flyteidl/service/flyteadmin/docs +rm -rf gen/pb_python/flyteidl/service/flyteadmin/docs + + +# Unfortunately, the `--grpc-gateway-out` plugin doesn’t yet support the `source_relative` option. Until it does, we need to move the files from the autogenerated location to the source_relative location. +cp -r gen/pb-go/github.com/flyteorg/flyteidl/gen/* gen/ +rm -rf gen/pb-go/github.com + +# Copy the validate.py protos. +mkdir -p gen/pb_python/validate +cp -r validate/* gen/pb_python/validate/ + +# Update the service code manually because the code generated by protoc is incorrect +# More detail, check https://github.com/flyteorg/flyteidl/pull/303#discussion_r1002151053 +sed -i -e 's/protoReq.Id.ResourceType = ResourceType(e)/protoReq.Id.ResourceType = core.ResourceType(e)/g' gen/pb-go/flyteidl/service/admin.pb.gw.go +rm -f gen/pb-go/flyteidl/service/admin.pb.gw.go-e + + +DIRTY=$(git status --porcelain) +if [ -n "$DIRTY" ]; then + echo "FAILED: Protos updated without committing generated code." + echo "Ensure make generate has run and all changes are committed." + DIFF=$(git diff) + echo "diff detected: $DIFF" + DIFF=$(git diff --name-only) + echo "files different: $DIFF" + exit 1 +else + echo "SUCCESS: Generated code is up to date." +fi diff --git a/flyteidl/setup.cfg b/flyteidl/setup.cfg new file mode 100644 index 0000000000..209e3f82c0 --- /dev/null +++ b/flyteidl/setup.cfg @@ -0,0 +1,38 @@ +[flake8] +format = pylint +exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv +max-complexity = 10 +max-line-length = 79 +ignore = NONE + +# flake8-tidy-imports rules +banned-modules = + dateutil.parser = Use `ciso8601` instead + flask.ext.restful = Use `flask_restful` + flask.ext.script = Use `flask_script` + haversine = Use `from fast_distance import haversine` + py.test = Use `pytest` + python-s3file = Use `boto` + +[pep8] +max-line-length = 79 + +[tool:pytest] +addopts = --cov=flyteidl --cov-fail-under=100 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv + +[coverage:run] +branch = True + +[coverage:xml] +output = build/coverage.xml + +[coverage:html] +directory = build/coverage_html + +[mypy] +disallow_untyped_defs = False +ignore_missing_imports = True +strict_optional = True +warn_no_return = True + +scripts_are_modules = True diff --git a/flyteidl/setup.py b/flyteidl/setup.py new file mode 100644 index 0000000000..343006932f --- /dev/null +++ b/flyteidl/setup.py @@ -0,0 +1,42 @@ +from setuptools import setup, find_packages + +__version__ = "0.0.0+develop" + +setup( + name='flyteidl', + version=__version__, + description='IDL for Flyte Platform', + url='https://www.github.com/flyteorg/flyteidl', + maintainer='FlyteOrg', + maintainer_email='admin@flyte.org', + packages=find_packages('gen/pb_python'), + package_dir={'': 'gen/pb_python'}, + # https://github.com/pypa/setuptools/issues/3136 describes an extension to + # setuptools that would involve a simpler way to specify this, but while + # that does not happen we have to package the pyi files manually like so: + package_data={'flyteidl': ["*.pyi", "**/*.pyi"]}, + dependency_links=[], + install_requires=[ + 'googleapis-common-protos', + 'protoc_gen_swagger', + 'protobuf>=4.21.1,<5.0.0', + # Packages in here should rarely be pinned. This is because these + # packages (at the specified version) are required for project + # consuming this library. By pinning to a specific version you are the + # number of projects that can consume this or forcing them to + # upgrade/downgrade any dependencies pinned here in their project. + # + # Generally packages listed here are pinned to a major version range. + # + # e.g. + # Python FooBar package for foobaring + # pyfoobar>=1.0, <2.0 + # + # This will allow for any consuming projects to use this library as + # long as they have a version of pyfoobar equal to or greater than 1.x + # and less than 2.x installed. + ], + extras_require={ + ':python_version=="2.7"': ['typing>=3.6'], # allow typehinting PY2 + }, +) diff --git a/flyteidl/validate/__init__.py b/flyteidl/validate/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/validate/validate_pb2.py b/flyteidl/validate/validate_pb2.py new file mode 100644 index 0000000000..73988e7c38 --- /dev/null +++ b/flyteidl/validate/validate_pb2.py @@ -0,0 +1,2366 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: validate/validate.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='validate/validate.proto', + package='validate', + syntax='proto2', + serialized_options=_b('\n\032io.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate'), + serialized_pb=_b('\n\x17validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x07\n\nFieldRules\x12\'\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"\x7f\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x7f\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x80\x01\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x81\x01\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x82\x01\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\x12\x14\n\x0cignore_empty\x18\x08 \x01(\x08\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xfd\x03\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0b\n\x03len\x18\x13 \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tlen_bytes\x18\x14 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\x14\n\x0cnot_contains\x18\x17 \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x12\x11\n\x07\x61\x64\x64ress\x18\x15 \x01(\x08H\x00\x12\x0e\n\x04uuid\x18\x16 \x01(\x08H\x00\x12\x30\n\x10well_known_regex\x18\x18 \x01(\x0e\x32\x14.validate.KnownRegexH\x00\x12\x14\n\x06strict\x18\x19 \x01(\x08:\x04true\x12\x14\n\x0cignore_empty\x18\x1a \x01(\x08\x42\x0c\n\nwell_known\"\xfb\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0b\n\x03len\x18\r \x01(\x04\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x12\x14\n\x0cignore_empty\x18\x0e \x01(\x08\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"\x80\x01\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x05 \x01(\x08\"\xa3\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\x12\x14\n\x0cignore_empty\x18\x06 \x01(\x08\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration*F\n\nKnownRegex\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x14\n\x10HTTP_HEADER_NAME\x10\x01\x12\x15\n\x11HTTP_HEADER_VALUE\x10\x02:2\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\xaf\x08 \x01(\x08:1\n\x07ignored\x12\x1f.google.protobuf.MessageOptions\x18\xb0\x08 \x01(\x08:0\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\xaf\x08 \x01(\x08:C\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\xaf\x08 \x01(\x0b\x32\x14.validate.FieldRulesBP\n\x1aio.envoyproxy.pgv.validateZ2github.com/envoyproxy/protoc-gen-validate/validate') + , + dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + +_KNOWNREGEX = _descriptor.EnumDescriptor( + name='KnownRegex', + full_name='validate.KnownRegex', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_NAME', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTTP_HEADER_VALUE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=4541, + serialized_end=4611, +) +_sym_db.RegisterEnumDescriptor(_KNOWNREGEX) + +KnownRegex = enum_type_wrapper.EnumTypeWrapper(_KNOWNREGEX) +UNKNOWN = 0 +HTTP_HEADER_NAME = 1 +HTTP_HEADER_VALUE = 2 + +DISABLED_FIELD_NUMBER = 1071 +disabled = _descriptor.FieldDescriptor( + name='disabled', full_name='validate.disabled', index=0, + number=1071, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +IGNORED_FIELD_NUMBER = 1072 +ignored = _descriptor.FieldDescriptor( + name='ignored', full_name='validate.ignored', index=1, + number=1072, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +REQUIRED_FIELD_NUMBER = 1071 +required = _descriptor.FieldDescriptor( + name='required', full_name='validate.required', index=2, + number=1071, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +RULES_FIELD_NUMBER = 1071 +rules = _descriptor.FieldDescriptor( + name='rules', full_name='validate.rules', index=3, + number=1071, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) + + +_FIELDRULES = _descriptor.Descriptor( + name='FieldRules', + full_name='validate.FieldRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='message', full_name='validate.FieldRules.message', index=0, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='float', full_name='validate.FieldRules.float', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='double', full_name='validate.FieldRules.double', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int32', full_name='validate.FieldRules.int32', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int64', full_name='validate.FieldRules.int64', index=4, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint32', full_name='validate.FieldRules.uint32', index=5, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint64', full_name='validate.FieldRules.uint64', index=6, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint32', full_name='validate.FieldRules.sint32', index=7, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint64', full_name='validate.FieldRules.sint64', index=8, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed32', full_name='validate.FieldRules.fixed32', index=9, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed64', full_name='validate.FieldRules.fixed64', index=10, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed32', full_name='validate.FieldRules.sfixed32', index=11, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed64', full_name='validate.FieldRules.sfixed64', index=12, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bool', full_name='validate.FieldRules.bool', index=13, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string', full_name='validate.FieldRules.string', index=14, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bytes', full_name='validate.FieldRules.bytes', index=15, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enum', full_name='validate.FieldRules.enum', index=16, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repeated', full_name='validate.FieldRules.repeated', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='map', full_name='validate.FieldRules.map', index=18, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='any', full_name='validate.FieldRules.any', index=19, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='validate.FieldRules.duration', index=20, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='timestamp', full_name='validate.FieldRules.timestamp', index=21, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='type', full_name='validate.FieldRules.type', + index=0, containing_type=None, fields=[]), + ], + serialized_start=137, + serialized_end=1057, +) + + +_FLOATRULES = _descriptor.Descriptor( + name='FloatRules', + full_name='validate.FloatRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.FloatRules.const', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.FloatRules.lt', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.FloatRules.lte', index=2, + number=3, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.FloatRules.gt', index=3, + number=4, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.FloatRules.gte', index=4, + number=5, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.FloatRules.in', index=5, + number=6, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.FloatRules.not_in', index=6, + number=7, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.FloatRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1059, + serialized_end=1186, +) + + +_DOUBLERULES = _descriptor.Descriptor( + name='DoubleRules', + full_name='validate.DoubleRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.DoubleRules.const', index=0, + number=1, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DoubleRules.lt', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DoubleRules.lte', index=2, + number=3, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DoubleRules.gt', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DoubleRules.gte', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DoubleRules.in', index=5, + number=6, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DoubleRules.not_in', index=6, + number=7, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.DoubleRules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1189, + serialized_end=1317, +) + + +_INT32RULES = _descriptor.Descriptor( + name='Int32Rules', + full_name='validate.Int32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int32Rules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int32Rules.lt', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int32Rules.lte', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int32Rules.gt', index=3, + number=4, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int32Rules.gte', index=4, + number=5, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int32Rules.in', index=5, + number=6, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int32Rules.not_in', index=6, + number=7, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1319, + serialized_end=1446, +) + + +_INT64RULES = _descriptor.Descriptor( + name='Int64Rules', + full_name='validate.Int64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int64Rules.const', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int64Rules.lt', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int64Rules.lte', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int64Rules.gt', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int64Rules.gte', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int64Rules.in', index=5, + number=6, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int64Rules.not_in', index=6, + number=7, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Int64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1448, + serialized_end=1575, +) + + +_UINT32RULES = _descriptor.Descriptor( + name='UInt32Rules', + full_name='validate.UInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt32Rules.const', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt32Rules.lt', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt32Rules.lte', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt32Rules.gt', index=3, + number=4, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt32Rules.gte', index=4, + number=5, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt32Rules.in', index=5, + number=6, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt32Rules.not_in', index=6, + number=7, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1578, + serialized_end=1706, +) + + +_UINT64RULES = _descriptor.Descriptor( + name='UInt64Rules', + full_name='validate.UInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt64Rules.const', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt64Rules.lt', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt64Rules.lte', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt64Rules.gt', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt64Rules.gte', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt64Rules.in', index=5, + number=6, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt64Rules.not_in', index=6, + number=7, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.UInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1709, + serialized_end=1837, +) + + +_SINT32RULES = _descriptor.Descriptor( + name='SInt32Rules', + full_name='validate.SInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt32Rules.const', index=0, + number=1, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt32Rules.lt', index=1, + number=2, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt32Rules.lte', index=2, + number=3, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt32Rules.gt', index=3, + number=4, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt32Rules.gte', index=4, + number=5, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt32Rules.in', index=5, + number=6, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt32Rules.not_in', index=6, + number=7, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1840, + serialized_end=1968, +) + + +_SINT64RULES = _descriptor.Descriptor( + name='SInt64Rules', + full_name='validate.SInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt64Rules.const', index=0, + number=1, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt64Rules.lt', index=1, + number=2, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt64Rules.lte', index=2, + number=3, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt64Rules.gt', index=3, + number=4, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt64Rules.gte', index=4, + number=5, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt64Rules.in', index=5, + number=6, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt64Rules.not_in', index=6, + number=7, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SInt64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1971, + serialized_end=2099, +) + + +_FIXED32RULES = _descriptor.Descriptor( + name='Fixed32Rules', + full_name='validate.Fixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed32Rules.const', index=0, + number=1, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed32Rules.lt', index=1, + number=2, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed32Rules.lte', index=2, + number=3, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed32Rules.gt', index=3, + number=4, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed32Rules.gte', index=4, + number=5, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed32Rules.in', index=5, + number=6, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed32Rules.not_in', index=6, + number=7, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2102, + serialized_end=2231, +) + + +_FIXED64RULES = _descriptor.Descriptor( + name='Fixed64Rules', + full_name='validate.Fixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed64Rules.const', index=0, + number=1, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed64Rules.lt', index=1, + number=2, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed64Rules.lte', index=2, + number=3, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed64Rules.gt', index=3, + number=4, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed64Rules.gte', index=4, + number=5, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed64Rules.in', index=5, + number=6, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed64Rules.not_in', index=6, + number=7, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.Fixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2234, + serialized_end=2363, +) + + +_SFIXED32RULES = _descriptor.Descriptor( + name='SFixed32Rules', + full_name='validate.SFixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed32Rules.const', index=0, + number=1, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed32Rules.lt', index=1, + number=2, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed32Rules.lte', index=2, + number=3, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed32Rules.gt', index=3, + number=4, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed32Rules.gte', index=4, + number=5, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed32Rules.in', index=5, + number=6, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed32Rules.not_in', index=6, + number=7, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed32Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2366, + serialized_end=2496, +) + + +_SFIXED64RULES = _descriptor.Descriptor( + name='SFixed64Rules', + full_name='validate.SFixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed64Rules.const', index=0, + number=1, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed64Rules.lt', index=1, + number=2, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed64Rules.lte', index=2, + number=3, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed64Rules.gt', index=3, + number=4, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed64Rules.gte', index=4, + number=5, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed64Rules.in', index=5, + number=6, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed64Rules.not_in', index=6, + number=7, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.SFixed64Rules.ignore_empty', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2499, + serialized_end=2629, +) + + +_BOOLRULES = _descriptor.Descriptor( + name='BoolRules', + full_name='validate.BoolRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BoolRules.const', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2631, + serialized_end=2657, +) + + +_STRINGRULES = _descriptor.Descriptor( + name='StringRules', + full_name='validate.StringRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.StringRules.const', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='len', full_name='validate.StringRules.len', index=1, + number=19, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.StringRules.min_len', index=2, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.StringRules.max_len', index=3, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='len_bytes', full_name='validate.StringRules.len_bytes', index=4, + number=20, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_bytes', full_name='validate.StringRules.min_bytes', index=5, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_bytes', full_name='validate.StringRules.max_bytes', index=6, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.StringRules.pattern', index=7, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.StringRules.prefix', index=8, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.StringRules.suffix', index=9, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.StringRules.contains', index=10, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_contains', full_name='validate.StringRules.not_contains', index=11, + number=23, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.StringRules.in', index=12, + number=10, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.StringRules.not_in', index=13, + number=11, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='email', full_name='validate.StringRules.email', index=14, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hostname', full_name='validate.StringRules.hostname', index=15, + number=13, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.StringRules.ip', index=16, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.StringRules.ipv4', index=17, + number=15, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.StringRules.ipv6', index=18, + number=16, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri', full_name='validate.StringRules.uri', index=19, + number=17, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri_ref', full_name='validate.StringRules.uri_ref', index=20, + number=18, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='address', full_name='validate.StringRules.address', index=21, + number=21, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uuid', full_name='validate.StringRules.uuid', index=22, + number=22, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='well_known_regex', full_name='validate.StringRules.well_known_regex', index=23, + number=24, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='strict', full_name='validate.StringRules.strict', index=24, + number=25, type=8, cpp_type=7, label=1, + has_default_value=True, default_value=True, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.StringRules.ignore_empty', index=25, + number=26, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.StringRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2660, + serialized_end=3169, +) + + +_BYTESRULES = _descriptor.Descriptor( + name='BytesRules', + full_name='validate.BytesRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BytesRules.const', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='len', full_name='validate.BytesRules.len', index=1, + number=13, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.BytesRules.min_len', index=2, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.BytesRules.max_len', index=3, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.BytesRules.pattern', index=4, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.BytesRules.prefix', index=5, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.BytesRules.suffix', index=6, + number=6, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.BytesRules.contains', index=7, + number=7, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.BytesRules.in', index=8, + number=8, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.BytesRules.not_in', index=9, + number=9, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.BytesRules.ip', index=10, + number=10, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.BytesRules.ipv4', index=11, + number=11, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.BytesRules.ipv6', index=12, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.BytesRules.ignore_empty', index=13, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.BytesRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=3172, + serialized_end=3423, +) + + +_ENUMRULES = _descriptor.Descriptor( + name='EnumRules', + full_name='validate.EnumRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.EnumRules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='defined_only', full_name='validate.EnumRules.defined_only', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.EnumRules.in', index=2, + number=3, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.EnumRules.not_in', index=3, + number=4, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3425, + serialized_end=3501, +) + + +_MESSAGERULES = _descriptor.Descriptor( + name='MessageRules', + full_name='validate.MessageRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='skip', full_name='validate.MessageRules.skip', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='required', full_name='validate.MessageRules.required', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3503, + serialized_end=3549, +) + + +_REPEATEDRULES = _descriptor.Descriptor( + name='RepeatedRules', + full_name='validate.RepeatedRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_items', full_name='validate.RepeatedRules.min_items', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_items', full_name='validate.RepeatedRules.max_items', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='unique', full_name='validate.RepeatedRules.unique', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='items', full_name='validate.RepeatedRules.items', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.RepeatedRules.ignore_empty', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3552, + serialized_end=3680, +) + + +_MAPRULES = _descriptor.Descriptor( + name='MapRules', + full_name='validate.MapRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_pairs', full_name='validate.MapRules.min_pairs', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_pairs', full_name='validate.MapRules.max_pairs', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='no_sparse', full_name='validate.MapRules.no_sparse', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keys', full_name='validate.MapRules.keys', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='values', full_name='validate.MapRules.values', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ignore_empty', full_name='validate.MapRules.ignore_empty', index=5, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3683, + serialized_end=3846, +) + + +_ANYRULES = _descriptor.Descriptor( + name='AnyRules', + full_name='validate.AnyRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.AnyRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.AnyRules.in', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.AnyRules.not_in', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3848, + serialized_end=3904, +) + + +_DURATIONRULES = _descriptor.Descriptor( + name='DurationRules', + full_name='validate.DurationRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.DurationRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.DurationRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DurationRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DurationRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DurationRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DurationRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DurationRules.in', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DurationRules.not_in', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3907, + serialized_end=4222, +) + + +_TIMESTAMPRULES = _descriptor.Descriptor( + name='TimestampRules', + full_name='validate.TimestampRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.TimestampRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.TimestampRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.TimestampRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.TimestampRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.TimestampRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.TimestampRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt_now', full_name='validate.TimestampRules.lt_now', index=6, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt_now', full_name='validate.TimestampRules.gt_now', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='within', full_name='validate.TimestampRules.within', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4225, + serialized_end=4539, +) + +_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES +_FIELDRULES.fields_by_name['float'].message_type = _FLOATRULES +_FIELDRULES.fields_by_name['double'].message_type = _DOUBLERULES +_FIELDRULES.fields_by_name['int32'].message_type = _INT32RULES +_FIELDRULES.fields_by_name['int64'].message_type = _INT64RULES +_FIELDRULES.fields_by_name['uint32'].message_type = _UINT32RULES +_FIELDRULES.fields_by_name['uint64'].message_type = _UINT64RULES +_FIELDRULES.fields_by_name['sint32'].message_type = _SINT32RULES +_FIELDRULES.fields_by_name['sint64'].message_type = _SINT64RULES +_FIELDRULES.fields_by_name['fixed32'].message_type = _FIXED32RULES +_FIELDRULES.fields_by_name['fixed64'].message_type = _FIXED64RULES +_FIELDRULES.fields_by_name['sfixed32'].message_type = _SFIXED32RULES +_FIELDRULES.fields_by_name['sfixed64'].message_type = _SFIXED64RULES +_FIELDRULES.fields_by_name['bool'].message_type = _BOOLRULES +_FIELDRULES.fields_by_name['string'].message_type = _STRINGRULES +_FIELDRULES.fields_by_name['bytes'].message_type = _BYTESRULES +_FIELDRULES.fields_by_name['enum'].message_type = _ENUMRULES +_FIELDRULES.fields_by_name['repeated'].message_type = _REPEATEDRULES +_FIELDRULES.fields_by_name['map'].message_type = _MAPRULES +_FIELDRULES.fields_by_name['any'].message_type = _ANYRULES +_FIELDRULES.fields_by_name['duration'].message_type = _DURATIONRULES +_FIELDRULES.fields_by_name['timestamp'].message_type = _TIMESTAMPRULES +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['float']) +_FIELDRULES.fields_by_name['float'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['double']) +_FIELDRULES.fields_by_name['double'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int32']) +_FIELDRULES.fields_by_name['int32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int64']) +_FIELDRULES.fields_by_name['int64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint32']) +_FIELDRULES.fields_by_name['uint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint64']) +_FIELDRULES.fields_by_name['uint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint32']) +_FIELDRULES.fields_by_name['sint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint64']) +_FIELDRULES.fields_by_name['sint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed32']) +_FIELDRULES.fields_by_name['fixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed64']) +_FIELDRULES.fields_by_name['fixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed32']) +_FIELDRULES.fields_by_name['sfixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed64']) +_FIELDRULES.fields_by_name['sfixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bool']) +_FIELDRULES.fields_by_name['bool'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['string']) +_FIELDRULES.fields_by_name['string'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bytes']) +_FIELDRULES.fields_by_name['bytes'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['enum']) +_FIELDRULES.fields_by_name['enum'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['repeated']) +_FIELDRULES.fields_by_name['repeated'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['map']) +_FIELDRULES.fields_by_name['map'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['any']) +_FIELDRULES.fields_by_name['any'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['duration']) +_FIELDRULES.fields_by_name['duration'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['timestamp']) +_FIELDRULES.fields_by_name['timestamp'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_STRINGRULES.fields_by_name['well_known_regex'].enum_type = _KNOWNREGEX +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['email']) +_STRINGRULES.fields_by_name['email'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['hostname']) +_STRINGRULES.fields_by_name['hostname'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ip']) +_STRINGRULES.fields_by_name['ip'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv4']) +_STRINGRULES.fields_by_name['ipv4'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv6']) +_STRINGRULES.fields_by_name['ipv6'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri']) +_STRINGRULES.fields_by_name['uri'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri_ref']) +_STRINGRULES.fields_by_name['uri_ref'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['address']) +_STRINGRULES.fields_by_name['address'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uuid']) +_STRINGRULES.fields_by_name['uuid'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['well_known_regex']) +_STRINGRULES.fields_by_name['well_known_regex'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ip']) +_BYTESRULES.fields_by_name['ip'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv4']) +_BYTESRULES.fields_by_name['ipv4'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv6']) +_BYTESRULES.fields_by_name['ipv6'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_REPEATEDRULES.fields_by_name['items'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['keys'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['values'].message_type = _FIELDRULES +_DURATIONRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['not_in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TIMESTAMPRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['within'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name['FieldRules'] = _FIELDRULES +DESCRIPTOR.message_types_by_name['FloatRules'] = _FLOATRULES +DESCRIPTOR.message_types_by_name['DoubleRules'] = _DOUBLERULES +DESCRIPTOR.message_types_by_name['Int32Rules'] = _INT32RULES +DESCRIPTOR.message_types_by_name['Int64Rules'] = _INT64RULES +DESCRIPTOR.message_types_by_name['UInt32Rules'] = _UINT32RULES +DESCRIPTOR.message_types_by_name['UInt64Rules'] = _UINT64RULES +DESCRIPTOR.message_types_by_name['SInt32Rules'] = _SINT32RULES +DESCRIPTOR.message_types_by_name['SInt64Rules'] = _SINT64RULES +DESCRIPTOR.message_types_by_name['Fixed32Rules'] = _FIXED32RULES +DESCRIPTOR.message_types_by_name['Fixed64Rules'] = _FIXED64RULES +DESCRIPTOR.message_types_by_name['SFixed32Rules'] = _SFIXED32RULES +DESCRIPTOR.message_types_by_name['SFixed64Rules'] = _SFIXED64RULES +DESCRIPTOR.message_types_by_name['BoolRules'] = _BOOLRULES +DESCRIPTOR.message_types_by_name['StringRules'] = _STRINGRULES +DESCRIPTOR.message_types_by_name['BytesRules'] = _BYTESRULES +DESCRIPTOR.message_types_by_name['EnumRules'] = _ENUMRULES +DESCRIPTOR.message_types_by_name['MessageRules'] = _MESSAGERULES +DESCRIPTOR.message_types_by_name['RepeatedRules'] = _REPEATEDRULES +DESCRIPTOR.message_types_by_name['MapRules'] = _MAPRULES +DESCRIPTOR.message_types_by_name['AnyRules'] = _ANYRULES +DESCRIPTOR.message_types_by_name['DurationRules'] = _DURATIONRULES +DESCRIPTOR.message_types_by_name['TimestampRules'] = _TIMESTAMPRULES +DESCRIPTOR.enum_types_by_name['KnownRegex'] = _KNOWNREGEX +DESCRIPTOR.extensions_by_name['disabled'] = disabled +DESCRIPTOR.extensions_by_name['ignored'] = ignored +DESCRIPTOR.extensions_by_name['required'] = required +DESCRIPTOR.extensions_by_name['rules'] = rules +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FieldRules = _reflection.GeneratedProtocolMessageType('FieldRules', (_message.Message,), dict( + DESCRIPTOR = _FIELDRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FieldRules) + )) +_sym_db.RegisterMessage(FieldRules) + +FloatRules = _reflection.GeneratedProtocolMessageType('FloatRules', (_message.Message,), dict( + DESCRIPTOR = _FLOATRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FloatRules) + )) +_sym_db.RegisterMessage(FloatRules) + +DoubleRules = _reflection.GeneratedProtocolMessageType('DoubleRules', (_message.Message,), dict( + DESCRIPTOR = _DOUBLERULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DoubleRules) + )) +_sym_db.RegisterMessage(DoubleRules) + +Int32Rules = _reflection.GeneratedProtocolMessageType('Int32Rules', (_message.Message,), dict( + DESCRIPTOR = _INT32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int32Rules) + )) +_sym_db.RegisterMessage(Int32Rules) + +Int64Rules = _reflection.GeneratedProtocolMessageType('Int64Rules', (_message.Message,), dict( + DESCRIPTOR = _INT64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int64Rules) + )) +_sym_db.RegisterMessage(Int64Rules) + +UInt32Rules = _reflection.GeneratedProtocolMessageType('UInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt32Rules) + )) +_sym_db.RegisterMessage(UInt32Rules) + +UInt64Rules = _reflection.GeneratedProtocolMessageType('UInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt64Rules) + )) +_sym_db.RegisterMessage(UInt64Rules) + +SInt32Rules = _reflection.GeneratedProtocolMessageType('SInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt32Rules) + )) +_sym_db.RegisterMessage(SInt32Rules) + +SInt64Rules = _reflection.GeneratedProtocolMessageType('SInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt64Rules) + )) +_sym_db.RegisterMessage(SInt64Rules) + +Fixed32Rules = _reflection.GeneratedProtocolMessageType('Fixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed32Rules) + )) +_sym_db.RegisterMessage(Fixed32Rules) + +Fixed64Rules = _reflection.GeneratedProtocolMessageType('Fixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed64Rules) + )) +_sym_db.RegisterMessage(Fixed64Rules) + +SFixed32Rules = _reflection.GeneratedProtocolMessageType('SFixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED32RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed32Rules) + )) +_sym_db.RegisterMessage(SFixed32Rules) + +SFixed64Rules = _reflection.GeneratedProtocolMessageType('SFixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED64RULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed64Rules) + )) +_sym_db.RegisterMessage(SFixed64Rules) + +BoolRules = _reflection.GeneratedProtocolMessageType('BoolRules', (_message.Message,), dict( + DESCRIPTOR = _BOOLRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BoolRules) + )) +_sym_db.RegisterMessage(BoolRules) + +StringRules = _reflection.GeneratedProtocolMessageType('StringRules', (_message.Message,), dict( + DESCRIPTOR = _STRINGRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.StringRules) + )) +_sym_db.RegisterMessage(StringRules) + +BytesRules = _reflection.GeneratedProtocolMessageType('BytesRules', (_message.Message,), dict( + DESCRIPTOR = _BYTESRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BytesRules) + )) +_sym_db.RegisterMessage(BytesRules) + +EnumRules = _reflection.GeneratedProtocolMessageType('EnumRules', (_message.Message,), dict( + DESCRIPTOR = _ENUMRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.EnumRules) + )) +_sym_db.RegisterMessage(EnumRules) + +MessageRules = _reflection.GeneratedProtocolMessageType('MessageRules', (_message.Message,), dict( + DESCRIPTOR = _MESSAGERULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MessageRules) + )) +_sym_db.RegisterMessage(MessageRules) + +RepeatedRules = _reflection.GeneratedProtocolMessageType('RepeatedRules', (_message.Message,), dict( + DESCRIPTOR = _REPEATEDRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.RepeatedRules) + )) +_sym_db.RegisterMessage(RepeatedRules) + +MapRules = _reflection.GeneratedProtocolMessageType('MapRules', (_message.Message,), dict( + DESCRIPTOR = _MAPRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MapRules) + )) +_sym_db.RegisterMessage(MapRules) + +AnyRules = _reflection.GeneratedProtocolMessageType('AnyRules', (_message.Message,), dict( + DESCRIPTOR = _ANYRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.AnyRules) + )) +_sym_db.RegisterMessage(AnyRules) + +DurationRules = _reflection.GeneratedProtocolMessageType('DurationRules', (_message.Message,), dict( + DESCRIPTOR = _DURATIONRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DurationRules) + )) +_sym_db.RegisterMessage(DurationRules) + +TimestampRules = _reflection.GeneratedProtocolMessageType('TimestampRules', (_message.Message,), dict( + DESCRIPTOR = _TIMESTAMPRULES, + __module__ = 'validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.TimestampRules) + )) +_sym_db.RegisterMessage(TimestampRules) + +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(disabled) +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(ignored) +google_dot_protobuf_dot_descriptor__pb2.OneofOptions.RegisterExtension(required) +rules.message_type = _FIELDRULES +google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(rules) + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope)